sparkline.d.ts 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388
  1. /*!
  2. * devextreme-angular
  3. * Version: 19.1.16
  4. * Build date: Tue Oct 18 2022
  5. *
  6. * Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED
  7. *
  8. * This software may be modified and distributed under the terms
  9. * of the MIT license. See the LICENSE file in the root of the project for details.
  10. *
  11. * https://github.com/DevExpress/devextreme-angular
  12. */
  13. import { TransferState } from '@angular/platform-browser';
  14. import { ElementRef, NgZone, OnDestroy, EventEmitter, OnChanges, DoCheck, SimpleChanges } from '@angular/core';
  15. import DevExpress from 'devextreme/bundles/dx.all';
  16. import DxSparkline from 'devextreme/viz/sparkline';
  17. import { DxComponent } from '../core/component';
  18. import { DxTemplateHost } from '../core/template-host';
  19. import { NestedOptionHost } from '../core/nested-option';
  20. import { WatcherHelper } from '../core/watcher-helper';
  21. import { IterableDifferHelper } from '../core/iterable-differ-helper';
  22. /**
  23. * 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.
  24. */
  25. export declare class DxSparklineComponent extends DxComponent implements OnDestroy, OnChanges, DoCheck {
  26. private _watcherHelper;
  27. private _idh;
  28. instance: DxSparkline;
  29. /**
  30. * Specifies the data source field that provides arguments for a sparkline.
  31. */
  32. argumentField: string;
  33. /**
  34. * Sets a color for the bars indicating negative values. Available for a sparkline of the bar type only.
  35. */
  36. barNegativeColor: string;
  37. /**
  38. * Sets a color for the bars indicating positive values. Available for a sparkline of the bar type only.
  39. */
  40. barPositiveColor: string;
  41. /**
  42. * Binds the widget to data.
  43. */
  44. dataSource: DevExpress.data.DataSource | DevExpress.data.DataSourceOptions | string | Array<any>;
  45. /**
  46. * Specifies whether the widget responds to the user interaction.
  47. */
  48. disabled: boolean;
  49. /**
  50. * Specifies the attributes to be attached to the widget's root element.
  51. */
  52. elementAttr: any;
  53. /**
  54. * Sets a color for the boundary of both the first and last points on a sparkline.
  55. */
  56. firstLastColor: string;
  57. /**
  58. * Specifies whether the sparkline should ignore null data points.
  59. */
  60. ignoreEmptyPoints: boolean;
  61. /**
  62. * Sets a color for a line on a sparkline. Available for the sparklines of the line- and area-like types.
  63. */
  64. lineColor: string;
  65. /**
  66. * Specifies a width for a line on a sparkline. Available for the sparklines of the line- and area-like types.
  67. */
  68. lineWidth: number;
  69. /**
  70. * 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.
  71. */
  72. lossColor: string;
  73. /**
  74. * Generates space around the widget.
  75. */
  76. margin: {
  77. bottom?: number;
  78. left?: number;
  79. right?: number;
  80. top?: number;
  81. };
  82. /**
  83. * Sets a color for the boundary of the maximum point on a sparkline.
  84. */
  85. maxColor: string;
  86. /**
  87. * Specifies the maximum value of the sparkline's value axis.
  88. */
  89. maxValue: number;
  90. /**
  91. * Sets a color for the boundary of the minimum point on a sparkline.
  92. */
  93. minColor: string;
  94. /**
  95. * Specifies the minimum value of the sparkline value axis.
  96. */
  97. minValue: number;
  98. /**
  99. * Notifies the widget that it is embedded into an HTML page that uses a tag modifying the path.
  100. */
  101. pathModified: boolean;
  102. /**
  103. * Sets a color for points on a sparkline. Available for the sparklines of the line- and area-like types.
  104. */
  105. pointColor: string;
  106. /**
  107. * Specifies the diameter of sparkline points in pixels. Available for the sparklines of line- and area-like types.
  108. */
  109. pointSize: number;
  110. /**
  111. * Specifies a symbol to use as a point marker on a sparkline. Available for the sparklines of the line- and area-like types.
  112. */
  113. pointSymbol: string;
  114. /**
  115. * Switches the widget to a right-to-left representation.
  116. */
  117. rtlEnabled: boolean;
  118. /**
  119. * Specifies whether or not to indicate both the first and last values on a sparkline.
  120. */
  121. showFirstLast: boolean;
  122. /**
  123. * Specifies whether or not to indicate both the minimum and maximum values on a sparkline.
  124. */
  125. showMinMax: boolean;
  126. /**
  127. * Specifies the widget's size in pixels.
  128. */
  129. size: {
  130. height?: number;
  131. width?: number;
  132. };
  133. /**
  134. * Sets the name of the theme the widget uses.
  135. */
  136. theme: string;
  137. /**
  138. * Configures the tooltip.
  139. */
  140. tooltip: {
  141. arrowLength?: number;
  142. border?: {
  143. color?: string;
  144. dashStyle?: string;
  145. opacity?: number;
  146. visible?: boolean;
  147. width?: number;
  148. };
  149. color?: string;
  150. container?: Element | JQuery;
  151. cornerRadius?: number;
  152. customizeTooltip?: Function;
  153. enabled?: boolean;
  154. font?: DevExpress.viz.Font;
  155. format?: DevExpress.ui.format | string;
  156. opacity?: number;
  157. paddingLeftRight?: number;
  158. paddingTopBottom?: number;
  159. shadow?: {
  160. blur?: number;
  161. color?: string;
  162. offsetX?: number;
  163. offsetY?: number;
  164. opacity?: number;
  165. };
  166. zIndex?: number;
  167. };
  168. /**
  169. * Determines the type of a sparkline.
  170. */
  171. type: string;
  172. /**
  173. * Specifies the data source field that provides values for a sparkline.
  174. */
  175. valueField: string;
  176. /**
  177. * Sets a color for the bars indicating the values greater than a winloss threshold. Available for a sparkline of the winloss type only.
  178. */
  179. winColor: string;
  180. /**
  181. * Specifies a value that serves as a threshold for the sparkline of the winloss type.
  182. */
  183. winlossThreshold: number;
  184. /**
  185. * A function that is executed before the widget is disposed of.
  186. */
  187. onDisposing: EventEmitter<any>;
  188. /**
  189. * A function that is executed when the widget's rendering has finished.
  190. */
  191. onDrawn: EventEmitter<any>;
  192. /**
  193. * A function that is executed after the widget is exported.
  194. */
  195. onExported: EventEmitter<any>;
  196. /**
  197. * A function that is executed before the widget is exported.
  198. */
  199. onExporting: EventEmitter<any>;
  200. /**
  201. * A function that is executed before a file with exported widget is saved to the user's local storage.
  202. */
  203. onFileSaving: EventEmitter<any>;
  204. /**
  205. * A function that is executed when an error or warning occurs.
  206. */
  207. onIncidentOccurred: EventEmitter<any>;
  208. /**
  209. * A function used in JavaScript frameworks to save the widget instance.
  210. */
  211. onInitialized: EventEmitter<any>;
  212. /**
  213. * A function that is executed after a widget option is changed.
  214. */
  215. onOptionChanged: EventEmitter<any>;
  216. /**
  217. * A function that is executed when a tooltip becomes hidden.
  218. */
  219. onTooltipHidden: EventEmitter<any>;
  220. /**
  221. * A function that is executed when a tooltip appears.
  222. */
  223. onTooltipShown: EventEmitter<any>;
  224. /**
  225. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  226. */
  227. argumentFieldChange: EventEmitter<string>;
  228. /**
  229. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  230. */
  231. barNegativeColorChange: EventEmitter<string>;
  232. /**
  233. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  234. */
  235. barPositiveColorChange: EventEmitter<string>;
  236. /**
  237. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  238. */
  239. dataSourceChange: EventEmitter<DevExpress.data.DataSource | DevExpress.data.DataSourceOptions | string | Array<any>>;
  240. /**
  241. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  242. */
  243. disabledChange: EventEmitter<boolean>;
  244. /**
  245. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  246. */
  247. elementAttrChange: EventEmitter<any>;
  248. /**
  249. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  250. */
  251. firstLastColorChange: EventEmitter<string>;
  252. /**
  253. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  254. */
  255. ignoreEmptyPointsChange: EventEmitter<boolean>;
  256. /**
  257. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  258. */
  259. lineColorChange: EventEmitter<string>;
  260. /**
  261. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  262. */
  263. lineWidthChange: EventEmitter<number>;
  264. /**
  265. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  266. */
  267. lossColorChange: EventEmitter<string>;
  268. /**
  269. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  270. */
  271. marginChange: EventEmitter<{
  272. bottom?: number;
  273. left?: number;
  274. right?: number;
  275. top?: number;
  276. }>;
  277. /**
  278. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  279. */
  280. maxColorChange: EventEmitter<string>;
  281. /**
  282. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  283. */
  284. maxValueChange: EventEmitter<number>;
  285. /**
  286. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  287. */
  288. minColorChange: EventEmitter<string>;
  289. /**
  290. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  291. */
  292. minValueChange: EventEmitter<number>;
  293. /**
  294. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  295. */
  296. pathModifiedChange: EventEmitter<boolean>;
  297. /**
  298. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  299. */
  300. pointColorChange: EventEmitter<string>;
  301. /**
  302. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  303. */
  304. pointSizeChange: EventEmitter<number>;
  305. /**
  306. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  307. */
  308. pointSymbolChange: EventEmitter<string>;
  309. /**
  310. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  311. */
  312. rtlEnabledChange: EventEmitter<boolean>;
  313. /**
  314. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  315. */
  316. showFirstLastChange: EventEmitter<boolean>;
  317. /**
  318. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  319. */
  320. showMinMaxChange: EventEmitter<boolean>;
  321. /**
  322. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  323. */
  324. sizeChange: EventEmitter<{
  325. height?: number;
  326. width?: number;
  327. }>;
  328. /**
  329. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  330. */
  331. themeChange: EventEmitter<string>;
  332. /**
  333. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  334. */
  335. tooltipChange: EventEmitter<{
  336. arrowLength?: number;
  337. border?: {
  338. color?: string;
  339. dashStyle?: string;
  340. opacity?: number;
  341. visible?: boolean;
  342. width?: number;
  343. };
  344. color?: string;
  345. container?: Element | JQuery;
  346. cornerRadius?: number;
  347. customizeTooltip?: Function;
  348. enabled?: boolean;
  349. font?: DevExpress.viz.Font;
  350. format?: DevExpress.ui.format | string;
  351. opacity?: number;
  352. paddingLeftRight?: number;
  353. paddingTopBottom?: number;
  354. shadow?: {
  355. blur?: number;
  356. color?: string;
  357. offsetX?: number;
  358. offsetY?: number;
  359. opacity?: number;
  360. };
  361. zIndex?: number;
  362. }>;
  363. /**
  364. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  365. */
  366. typeChange: EventEmitter<string>;
  367. /**
  368. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  369. */
  370. valueFieldChange: EventEmitter<string>;
  371. /**
  372. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  373. */
  374. winColorChange: EventEmitter<string>;
  375. /**
  376. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  377. */
  378. winlossThresholdChange: EventEmitter<number>;
  379. constructor(elementRef: ElementRef, ngZone: NgZone, templateHost: DxTemplateHost, _watcherHelper: WatcherHelper, _idh: IterableDifferHelper, optionHost: NestedOptionHost, transferState: TransferState, platformId: any);
  380. protected _createInstance(element: any, options: any): DxSparkline;
  381. ngOnDestroy(): void;
  382. ngOnChanges(changes: SimpleChanges): void;
  383. setupChanges(prop: string, changes: SimpleChanges): void;
  384. ngDoCheck(): void;
  385. _setOption(name: string, value: any): void;
  386. }
  387. export declare class DxSparklineModule {
  388. }