sparkline.js 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651
  1. "use strict";
  2. var __extends = (this && this.__extends) || (function () {
  3. var extendStatics = Object.setPrototypeOf ||
  4. ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
  5. function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
  6. return function (d, b) {
  7. extendStatics(d, b);
  8. function __() { this.constructor = d; }
  9. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  10. };
  11. })();
  12. /*!
  13. * devextreme-angular
  14. * Version: 19.1.16
  15. * Build date: Tue Oct 18 2022
  16. *
  17. * Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED
  18. *
  19. * This software may be modified and distributed under the terms
  20. * of the MIT license. See the LICENSE file in the root of the project for details.
  21. *
  22. * https://github.com/DevExpress/devextreme-angular
  23. */
  24. Object.defineProperty(exports, "__esModule", { value: true });
  25. var platform_browser_1 = require("@angular/platform-browser");
  26. var platform_browser_2 = require("@angular/platform-browser");
  27. var core_1 = require("@angular/core");
  28. var sparkline_1 = require("devextreme/viz/sparkline");
  29. var component_1 = require("../core/component");
  30. var template_host_1 = require("../core/template-host");
  31. var integration_1 = require("../core/integration");
  32. var template_1 = require("../core/template");
  33. var nested_option_1 = require("../core/nested-option");
  34. var watcher_helper_1 = require("../core/watcher-helper");
  35. var iterable_differ_helper_1 = require("../core/iterable-differ-helper");
  36. var margin_1 = require("./nested/margin");
  37. var size_1 = require("./nested/size");
  38. var tooltip_1 = require("./nested/tooltip");
  39. var border_1 = require("./nested/border");
  40. var font_1 = require("./nested/font");
  41. var format_1 = require("./nested/format");
  42. var shadow_1 = require("./nested/shadow");
  43. /**
  44. * The Sparkline widget is a compact chart that contains only one series. Owing to their size, sparklines occupy very little space and can be easily collected in a table or embedded straight in text.
  45. */
  46. var DxSparklineComponent = (function (_super) {
  47. __extends(DxSparklineComponent, _super);
  48. function DxSparklineComponent(elementRef, ngZone, templateHost, _watcherHelper, _idh, optionHost, transferState, platformId) {
  49. var _this = _super.call(this, elementRef, ngZone, templateHost, _watcherHelper, transferState, platformId) || this;
  50. _this._watcherHelper = _watcherHelper;
  51. _this._idh = _idh;
  52. _this._createEventEmitters([
  53. { subscribe: 'disposing', emit: 'onDisposing' },
  54. { subscribe: 'drawn', emit: 'onDrawn' },
  55. { subscribe: 'exported', emit: 'onExported' },
  56. { subscribe: 'exporting', emit: 'onExporting' },
  57. { subscribe: 'fileSaving', emit: 'onFileSaving' },
  58. { subscribe: 'incidentOccurred', emit: 'onIncidentOccurred' },
  59. { subscribe: 'initialized', emit: 'onInitialized' },
  60. { subscribe: 'optionChanged', emit: 'onOptionChanged' },
  61. { subscribe: 'tooltipHidden', emit: 'onTooltipHidden' },
  62. { subscribe: 'tooltipShown', emit: 'onTooltipShown' },
  63. { emit: 'argumentFieldChange' },
  64. { emit: 'barNegativeColorChange' },
  65. { emit: 'barPositiveColorChange' },
  66. { emit: 'dataSourceChange' },
  67. { emit: 'disabledChange' },
  68. { emit: 'elementAttrChange' },
  69. { emit: 'firstLastColorChange' },
  70. { emit: 'ignoreEmptyPointsChange' },
  71. { emit: 'lineColorChange' },
  72. { emit: 'lineWidthChange' },
  73. { emit: 'lossColorChange' },
  74. { emit: 'marginChange' },
  75. { emit: 'maxColorChange' },
  76. { emit: 'maxValueChange' },
  77. { emit: 'minColorChange' },
  78. { emit: 'minValueChange' },
  79. { emit: 'pathModifiedChange' },
  80. { emit: 'pointColorChange' },
  81. { emit: 'pointSizeChange' },
  82. { emit: 'pointSymbolChange' },
  83. { emit: 'rtlEnabledChange' },
  84. { emit: 'showFirstLastChange' },
  85. { emit: 'showMinMaxChange' },
  86. { emit: 'sizeChange' },
  87. { emit: 'themeChange' },
  88. { emit: 'tooltipChange' },
  89. { emit: 'typeChange' },
  90. { emit: 'valueFieldChange' },
  91. { emit: 'winColorChange' },
  92. { emit: 'winlossThresholdChange' }
  93. ]);
  94. _this._idh.setHost(_this);
  95. optionHost.setHost(_this);
  96. return _this;
  97. }
  98. Object.defineProperty(DxSparklineComponent.prototype, "argumentField", {
  99. get: /**
  100. * Specifies the data source field that provides arguments for a sparkline.
  101. */
  102. function () {
  103. return this._getOption('argumentField');
  104. },
  105. set: function (value) {
  106. this._setOption('argumentField', value);
  107. },
  108. enumerable: true,
  109. configurable: true
  110. });
  111. Object.defineProperty(DxSparklineComponent.prototype, "barNegativeColor", {
  112. get: /**
  113. * Sets a color for the bars indicating negative values. Available for a sparkline of the bar type only.
  114. */
  115. function () {
  116. return this._getOption('barNegativeColor');
  117. },
  118. set: function (value) {
  119. this._setOption('barNegativeColor', value);
  120. },
  121. enumerable: true,
  122. configurable: true
  123. });
  124. Object.defineProperty(DxSparklineComponent.prototype, "barPositiveColor", {
  125. get: /**
  126. * Sets a color for the bars indicating positive values. Available for a sparkline of the bar type only.
  127. */
  128. function () {
  129. return this._getOption('barPositiveColor');
  130. },
  131. set: function (value) {
  132. this._setOption('barPositiveColor', value);
  133. },
  134. enumerable: true,
  135. configurable: true
  136. });
  137. Object.defineProperty(DxSparklineComponent.prototype, "dataSource", {
  138. get: /**
  139. * Binds the widget to data.
  140. */
  141. function () {
  142. return this._getOption('dataSource');
  143. },
  144. set: function (value) {
  145. this._setOption('dataSource', value);
  146. },
  147. enumerable: true,
  148. configurable: true
  149. });
  150. Object.defineProperty(DxSparklineComponent.prototype, "disabled", {
  151. get: /**
  152. * Specifies whether the widget responds to the user interaction.
  153. */
  154. function () {
  155. return this._getOption('disabled');
  156. },
  157. set: function (value) {
  158. this._setOption('disabled', value);
  159. },
  160. enumerable: true,
  161. configurable: true
  162. });
  163. Object.defineProperty(DxSparklineComponent.prototype, "elementAttr", {
  164. get: /**
  165. * Specifies the attributes to be attached to the widget's root element.
  166. */
  167. function () {
  168. return this._getOption('elementAttr');
  169. },
  170. set: function (value) {
  171. this._setOption('elementAttr', value);
  172. },
  173. enumerable: true,
  174. configurable: true
  175. });
  176. Object.defineProperty(DxSparklineComponent.prototype, "firstLastColor", {
  177. get: /**
  178. * Sets a color for the boundary of both the first and last points on a sparkline.
  179. */
  180. function () {
  181. return this._getOption('firstLastColor');
  182. },
  183. set: function (value) {
  184. this._setOption('firstLastColor', value);
  185. },
  186. enumerable: true,
  187. configurable: true
  188. });
  189. Object.defineProperty(DxSparklineComponent.prototype, "ignoreEmptyPoints", {
  190. get: /**
  191. * Specifies whether the sparkline should ignore null data points.
  192. */
  193. function () {
  194. return this._getOption('ignoreEmptyPoints');
  195. },
  196. set: function (value) {
  197. this._setOption('ignoreEmptyPoints', value);
  198. },
  199. enumerable: true,
  200. configurable: true
  201. });
  202. Object.defineProperty(DxSparklineComponent.prototype, "lineColor", {
  203. get: /**
  204. * Sets a color for a line on a sparkline. Available for the sparklines of the line- and area-like types.
  205. */
  206. function () {
  207. return this._getOption('lineColor');
  208. },
  209. set: function (value) {
  210. this._setOption('lineColor', value);
  211. },
  212. enumerable: true,
  213. configurable: true
  214. });
  215. Object.defineProperty(DxSparklineComponent.prototype, "lineWidth", {
  216. get: /**
  217. * Specifies a width for a line on a sparkline. Available for the sparklines of the line- and area-like types.
  218. */
  219. function () {
  220. return this._getOption('lineWidth');
  221. },
  222. set: function (value) {
  223. this._setOption('lineWidth', value);
  224. },
  225. enumerable: true,
  226. configurable: true
  227. });
  228. Object.defineProperty(DxSparklineComponent.prototype, "lossColor", {
  229. get: /**
  230. * Sets a color for the bars indicating the values that are less than the winloss threshold. Available for a sparkline of the winloss type only.
  231. */
  232. function () {
  233. return this._getOption('lossColor');
  234. },
  235. set: function (value) {
  236. this._setOption('lossColor', value);
  237. },
  238. enumerable: true,
  239. configurable: true
  240. });
  241. Object.defineProperty(DxSparklineComponent.prototype, "margin", {
  242. get: /**
  243. * Generates space around the widget.
  244. */
  245. function () {
  246. return this._getOption('margin');
  247. },
  248. set: function (value) {
  249. this._setOption('margin', value);
  250. },
  251. enumerable: true,
  252. configurable: true
  253. });
  254. Object.defineProperty(DxSparklineComponent.prototype, "maxColor", {
  255. get: /**
  256. * Sets a color for the boundary of the maximum point on a sparkline.
  257. */
  258. function () {
  259. return this._getOption('maxColor');
  260. },
  261. set: function (value) {
  262. this._setOption('maxColor', value);
  263. },
  264. enumerable: true,
  265. configurable: true
  266. });
  267. Object.defineProperty(DxSparklineComponent.prototype, "maxValue", {
  268. get: /**
  269. * Specifies the maximum value of the sparkline's value axis.
  270. */
  271. function () {
  272. return this._getOption('maxValue');
  273. },
  274. set: function (value) {
  275. this._setOption('maxValue', value);
  276. },
  277. enumerable: true,
  278. configurable: true
  279. });
  280. Object.defineProperty(DxSparklineComponent.prototype, "minColor", {
  281. get: /**
  282. * Sets a color for the boundary of the minimum point on a sparkline.
  283. */
  284. function () {
  285. return this._getOption('minColor');
  286. },
  287. set: function (value) {
  288. this._setOption('minColor', value);
  289. },
  290. enumerable: true,
  291. configurable: true
  292. });
  293. Object.defineProperty(DxSparklineComponent.prototype, "minValue", {
  294. get: /**
  295. * Specifies the minimum value of the sparkline value axis.
  296. */
  297. function () {
  298. return this._getOption('minValue');
  299. },
  300. set: function (value) {
  301. this._setOption('minValue', value);
  302. },
  303. enumerable: true,
  304. configurable: true
  305. });
  306. Object.defineProperty(DxSparklineComponent.prototype, "pathModified", {
  307. get: /**
  308. * Notifies the widget that it is embedded into an HTML page that uses a tag modifying the path.
  309. */
  310. function () {
  311. return this._getOption('pathModified');
  312. },
  313. set: function (value) {
  314. this._setOption('pathModified', value);
  315. },
  316. enumerable: true,
  317. configurable: true
  318. });
  319. Object.defineProperty(DxSparklineComponent.prototype, "pointColor", {
  320. get: /**
  321. * Sets a color for points on a sparkline. Available for the sparklines of the line- and area-like types.
  322. */
  323. function () {
  324. return this._getOption('pointColor');
  325. },
  326. set: function (value) {
  327. this._setOption('pointColor', value);
  328. },
  329. enumerable: true,
  330. configurable: true
  331. });
  332. Object.defineProperty(DxSparklineComponent.prototype, "pointSize", {
  333. get: /**
  334. * Specifies the diameter of sparkline points in pixels. Available for the sparklines of line- and area-like types.
  335. */
  336. function () {
  337. return this._getOption('pointSize');
  338. },
  339. set: function (value) {
  340. this._setOption('pointSize', value);
  341. },
  342. enumerable: true,
  343. configurable: true
  344. });
  345. Object.defineProperty(DxSparklineComponent.prototype, "pointSymbol", {
  346. get: /**
  347. * Specifies a symbol to use as a point marker on a sparkline. Available for the sparklines of the line- and area-like types.
  348. */
  349. function () {
  350. return this._getOption('pointSymbol');
  351. },
  352. set: function (value) {
  353. this._setOption('pointSymbol', value);
  354. },
  355. enumerable: true,
  356. configurable: true
  357. });
  358. Object.defineProperty(DxSparklineComponent.prototype, "rtlEnabled", {
  359. get: /**
  360. * Switches the widget to a right-to-left representation.
  361. */
  362. function () {
  363. return this._getOption('rtlEnabled');
  364. },
  365. set: function (value) {
  366. this._setOption('rtlEnabled', value);
  367. },
  368. enumerable: true,
  369. configurable: true
  370. });
  371. Object.defineProperty(DxSparklineComponent.prototype, "showFirstLast", {
  372. get: /**
  373. * Specifies whether or not to indicate both the first and last values on a sparkline.
  374. */
  375. function () {
  376. return this._getOption('showFirstLast');
  377. },
  378. set: function (value) {
  379. this._setOption('showFirstLast', value);
  380. },
  381. enumerable: true,
  382. configurable: true
  383. });
  384. Object.defineProperty(DxSparklineComponent.prototype, "showMinMax", {
  385. get: /**
  386. * Specifies whether or not to indicate both the minimum and maximum values on a sparkline.
  387. */
  388. function () {
  389. return this._getOption('showMinMax');
  390. },
  391. set: function (value) {
  392. this._setOption('showMinMax', value);
  393. },
  394. enumerable: true,
  395. configurable: true
  396. });
  397. Object.defineProperty(DxSparklineComponent.prototype, "size", {
  398. get: /**
  399. * Specifies the widget's size in pixels.
  400. */
  401. function () {
  402. return this._getOption('size');
  403. },
  404. set: function (value) {
  405. this._setOption('size', value);
  406. },
  407. enumerable: true,
  408. configurable: true
  409. });
  410. Object.defineProperty(DxSparklineComponent.prototype, "theme", {
  411. get: /**
  412. * Sets the name of the theme the widget uses.
  413. */
  414. function () {
  415. return this._getOption('theme');
  416. },
  417. set: function (value) {
  418. this._setOption('theme', value);
  419. },
  420. enumerable: true,
  421. configurable: true
  422. });
  423. Object.defineProperty(DxSparklineComponent.prototype, "tooltip", {
  424. get: /**
  425. * Configures the tooltip.
  426. */
  427. function () {
  428. return this._getOption('tooltip');
  429. },
  430. set: function (value) {
  431. this._setOption('tooltip', value);
  432. },
  433. enumerable: true,
  434. configurable: true
  435. });
  436. Object.defineProperty(DxSparklineComponent.prototype, "type", {
  437. get: /**
  438. * Determines the type of a sparkline.
  439. */
  440. function () {
  441. return this._getOption('type');
  442. },
  443. set: function (value) {
  444. this._setOption('type', value);
  445. },
  446. enumerable: true,
  447. configurable: true
  448. });
  449. Object.defineProperty(DxSparklineComponent.prototype, "valueField", {
  450. get: /**
  451. * Specifies the data source field that provides values for a sparkline.
  452. */
  453. function () {
  454. return this._getOption('valueField');
  455. },
  456. set: function (value) {
  457. this._setOption('valueField', value);
  458. },
  459. enumerable: true,
  460. configurable: true
  461. });
  462. Object.defineProperty(DxSparklineComponent.prototype, "winColor", {
  463. get: /**
  464. * Sets a color for the bars indicating the values greater than a winloss threshold. Available for a sparkline of the winloss type only.
  465. */
  466. function () {
  467. return this._getOption('winColor');
  468. },
  469. set: function (value) {
  470. this._setOption('winColor', value);
  471. },
  472. enumerable: true,
  473. configurable: true
  474. });
  475. Object.defineProperty(DxSparklineComponent.prototype, "winlossThreshold", {
  476. get: /**
  477. * Specifies a value that serves as a threshold for the sparkline of the winloss type.
  478. */
  479. function () {
  480. return this._getOption('winlossThreshold');
  481. },
  482. set: function (value) {
  483. this._setOption('winlossThreshold', value);
  484. },
  485. enumerable: true,
  486. configurable: true
  487. });
  488. DxSparklineComponent.prototype._createInstance = function (element, options) {
  489. return new sparkline_1.default(element, options);
  490. };
  491. DxSparklineComponent.prototype.ngOnDestroy = function () {
  492. this._destroyWidget();
  493. };
  494. DxSparklineComponent.prototype.ngOnChanges = function (changes) {
  495. _super.prototype.ngOnChanges.call(this, changes);
  496. this.setupChanges('dataSource', changes);
  497. };
  498. DxSparklineComponent.prototype.setupChanges = function (prop, changes) {
  499. if (!(prop in this._optionsToUpdate)) {
  500. this._idh.setup(prop, changes);
  501. }
  502. };
  503. DxSparklineComponent.prototype.ngDoCheck = function () {
  504. this._idh.doCheck('dataSource');
  505. this._watcherHelper.checkWatchers();
  506. _super.prototype.ngDoCheck.call(this);
  507. _super.prototype.clearChangedOptions.call(this);
  508. };
  509. DxSparklineComponent.prototype._setOption = function (name, value) {
  510. var isSetup = this._idh.setupSingle(name, value);
  511. var isChanged = this._idh.getChanges(name, value) !== null;
  512. if (isSetup || isChanged) {
  513. _super.prototype._setOption.call(this, name, value);
  514. }
  515. };
  516. DxSparklineComponent.decorators = [
  517. { type: core_1.Component, args: [{
  518. selector: 'dx-sparkline',
  519. template: '',
  520. styles: [' :host { display: block; }'],
  521. providers: [
  522. template_host_1.DxTemplateHost,
  523. watcher_helper_1.WatcherHelper,
  524. nested_option_1.NestedOptionHost,
  525. iterable_differ_helper_1.IterableDifferHelper
  526. ]
  527. },] },
  528. ];
  529. /** @nocollapse */
  530. DxSparklineComponent.ctorParameters = function () { return [
  531. { type: core_1.ElementRef, },
  532. { type: core_1.NgZone, },
  533. { type: template_host_1.DxTemplateHost, },
  534. { type: watcher_helper_1.WatcherHelper, },
  535. { type: iterable_differ_helper_1.IterableDifferHelper, },
  536. { type: nested_option_1.NestedOptionHost, },
  537. { type: platform_browser_2.TransferState, },
  538. { type: undefined, decorators: [{ type: core_1.Inject, args: [core_1.PLATFORM_ID,] },] },
  539. ]; };
  540. DxSparklineComponent.propDecorators = {
  541. "argumentField": [{ type: core_1.Input },],
  542. "barNegativeColor": [{ type: core_1.Input },],
  543. "barPositiveColor": [{ type: core_1.Input },],
  544. "dataSource": [{ type: core_1.Input },],
  545. "disabled": [{ type: core_1.Input },],
  546. "elementAttr": [{ type: core_1.Input },],
  547. "firstLastColor": [{ type: core_1.Input },],
  548. "ignoreEmptyPoints": [{ type: core_1.Input },],
  549. "lineColor": [{ type: core_1.Input },],
  550. "lineWidth": [{ type: core_1.Input },],
  551. "lossColor": [{ type: core_1.Input },],
  552. "margin": [{ type: core_1.Input },],
  553. "maxColor": [{ type: core_1.Input },],
  554. "maxValue": [{ type: core_1.Input },],
  555. "minColor": [{ type: core_1.Input },],
  556. "minValue": [{ type: core_1.Input },],
  557. "pathModified": [{ type: core_1.Input },],
  558. "pointColor": [{ type: core_1.Input },],
  559. "pointSize": [{ type: core_1.Input },],
  560. "pointSymbol": [{ type: core_1.Input },],
  561. "rtlEnabled": [{ type: core_1.Input },],
  562. "showFirstLast": [{ type: core_1.Input },],
  563. "showMinMax": [{ type: core_1.Input },],
  564. "size": [{ type: core_1.Input },],
  565. "theme": [{ type: core_1.Input },],
  566. "tooltip": [{ type: core_1.Input },],
  567. "type": [{ type: core_1.Input },],
  568. "valueField": [{ type: core_1.Input },],
  569. "winColor": [{ type: core_1.Input },],
  570. "winlossThreshold": [{ type: core_1.Input },],
  571. "onDisposing": [{ type: core_1.Output },],
  572. "onDrawn": [{ type: core_1.Output },],
  573. "onExported": [{ type: core_1.Output },],
  574. "onExporting": [{ type: core_1.Output },],
  575. "onFileSaving": [{ type: core_1.Output },],
  576. "onIncidentOccurred": [{ type: core_1.Output },],
  577. "onInitialized": [{ type: core_1.Output },],
  578. "onOptionChanged": [{ type: core_1.Output },],
  579. "onTooltipHidden": [{ type: core_1.Output },],
  580. "onTooltipShown": [{ type: core_1.Output },],
  581. "argumentFieldChange": [{ type: core_1.Output },],
  582. "barNegativeColorChange": [{ type: core_1.Output },],
  583. "barPositiveColorChange": [{ type: core_1.Output },],
  584. "dataSourceChange": [{ type: core_1.Output },],
  585. "disabledChange": [{ type: core_1.Output },],
  586. "elementAttrChange": [{ type: core_1.Output },],
  587. "firstLastColorChange": [{ type: core_1.Output },],
  588. "ignoreEmptyPointsChange": [{ type: core_1.Output },],
  589. "lineColorChange": [{ type: core_1.Output },],
  590. "lineWidthChange": [{ type: core_1.Output },],
  591. "lossColorChange": [{ type: core_1.Output },],
  592. "marginChange": [{ type: core_1.Output },],
  593. "maxColorChange": [{ type: core_1.Output },],
  594. "maxValueChange": [{ type: core_1.Output },],
  595. "minColorChange": [{ type: core_1.Output },],
  596. "minValueChange": [{ type: core_1.Output },],
  597. "pathModifiedChange": [{ type: core_1.Output },],
  598. "pointColorChange": [{ type: core_1.Output },],
  599. "pointSizeChange": [{ type: core_1.Output },],
  600. "pointSymbolChange": [{ type: core_1.Output },],
  601. "rtlEnabledChange": [{ type: core_1.Output },],
  602. "showFirstLastChange": [{ type: core_1.Output },],
  603. "showMinMaxChange": [{ type: core_1.Output },],
  604. "sizeChange": [{ type: core_1.Output },],
  605. "themeChange": [{ type: core_1.Output },],
  606. "tooltipChange": [{ type: core_1.Output },],
  607. "typeChange": [{ type: core_1.Output },],
  608. "valueFieldChange": [{ type: core_1.Output },],
  609. "winColorChange": [{ type: core_1.Output },],
  610. "winlossThresholdChange": [{ type: core_1.Output },],
  611. };
  612. return DxSparklineComponent;
  613. }(component_1.DxComponent));
  614. exports.DxSparklineComponent = DxSparklineComponent;
  615. var DxSparklineModule = (function () {
  616. function DxSparklineModule() {
  617. }
  618. DxSparklineModule.decorators = [
  619. { type: core_1.NgModule, args: [{
  620. imports: [
  621. margin_1.DxoMarginModule,
  622. size_1.DxoSizeModule,
  623. tooltip_1.DxoTooltipModule,
  624. border_1.DxoBorderModule,
  625. font_1.DxoFontModule,
  626. format_1.DxoFormatModule,
  627. shadow_1.DxoShadowModule,
  628. integration_1.DxIntegrationModule,
  629. template_1.DxTemplateModule,
  630. platform_browser_1.BrowserTransferStateModule
  631. ],
  632. declarations: [
  633. DxSparklineComponent
  634. ],
  635. exports: [
  636. DxSparklineComponent,
  637. margin_1.DxoMarginModule,
  638. size_1.DxoSizeModule,
  639. tooltip_1.DxoTooltipModule,
  640. border_1.DxoBorderModule,
  641. font_1.DxoFontModule,
  642. format_1.DxoFormatModule,
  643. shadow_1.DxoShadowModule,
  644. template_1.DxTemplateModule
  645. ]
  646. },] },
  647. ];
  648. return DxSparklineModule;
  649. }());
  650. exports.DxSparklineModule = DxSparklineModule;
  651. //# sourceMappingURL=sparkline.js.map