pivot-grid.d.ts 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476
  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 DxPivotGrid from 'devextreme/ui/pivot_grid';
  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 PivotGrid is a widget that allows you to display and analyze multi-dimensional data from a local storage or an OLAP cube.
  24. */
  25. export declare class DxPivotGridComponent extends DxComponent implements OnDestroy, OnChanges, DoCheck {
  26. private _watcherHelper;
  27. private _idh;
  28. instance: DxPivotGrid;
  29. /**
  30. * Allows an end-user to expand/collapse all header items within a header level.
  31. */
  32. allowExpandAll: boolean;
  33. /**
  34. * Allows a user to filter fields by selecting or deselecting values in the popup menu.
  35. */
  36. allowFiltering: boolean;
  37. /**
  38. * Allows an end-user to change sorting options.
  39. */
  40. allowSorting: boolean;
  41. /**
  42. * Allows an end-user to sort columns by summary values.
  43. */
  44. allowSortingBySummary: boolean;
  45. /**
  46. * Specifies the area to which data field headers must belong.
  47. */
  48. dataFieldArea: string;
  49. /**
  50. * Binds the widget to data.
  51. */
  52. dataSource: DevExpress.data.PivotGridDataSource | DevExpress.data.PivotGridDataSourceOptions | Array<any>;
  53. /**
  54. * Specifies whether the widget responds to user interaction.
  55. */
  56. disabled: boolean;
  57. /**
  58. * Specifies the attributes to be attached to the widget's root element.
  59. */
  60. elementAttr: any;
  61. /**
  62. * Configures client-side exporting.
  63. */
  64. export: {
  65. enabled?: boolean;
  66. fileName?: string;
  67. ignoreExcelErrors?: boolean;
  68. proxyUrl?: string;
  69. };
  70. /**
  71. * The Field Chooser configuration options.
  72. */
  73. fieldChooser: {
  74. allowSearch?: boolean;
  75. applyChangesMode?: string;
  76. enabled?: boolean;
  77. height?: number;
  78. layout?: number | string;
  79. searchTimeout?: number;
  80. texts?: {
  81. allFields?: string;
  82. columnFields?: string;
  83. dataFields?: string;
  84. filterFields?: string;
  85. rowFields?: string;
  86. };
  87. title?: string;
  88. width?: number;
  89. };
  90. /**
  91. * Configures the field panel.
  92. */
  93. fieldPanel: {
  94. allowFieldDragging?: boolean;
  95. showColumnFields?: boolean;
  96. showDataFields?: boolean;
  97. showFilterFields?: boolean;
  98. showRowFields?: boolean;
  99. texts?: {
  100. columnFieldArea?: string;
  101. dataFieldArea?: string;
  102. filterFieldArea?: string;
  103. rowFieldArea?: string;
  104. };
  105. visible?: boolean;
  106. };
  107. /**
  108. * Configures the header filter feature.
  109. */
  110. headerFilter: {
  111. allowSearch?: boolean;
  112. height?: number;
  113. searchTimeout?: number;
  114. showRelevantValues?: boolean;
  115. texts?: {
  116. cancel?: string;
  117. emptyValue?: string;
  118. ok?: string;
  119. };
  120. width?: number;
  121. };
  122. /**
  123. * Specifies the widget's height.
  124. */
  125. height: number | Function | string;
  126. /**
  127. * Specifies whether or not to hide rows and columns with no data.
  128. */
  129. hideEmptySummaryCells: boolean;
  130. /**
  131. * Specifies text for a hint that appears when a user pauses on the widget.
  132. */
  133. hint: string;
  134. /**
  135. * Specifies options configuring the load panel.
  136. */
  137. loadPanel: {
  138. enabled?: boolean;
  139. height?: number;
  140. indicatorSrc?: string;
  141. showIndicator?: boolean;
  142. showPane?: boolean;
  143. text?: string;
  144. width?: number;
  145. };
  146. /**
  147. * Specifies the layout of items in the row header.
  148. */
  149. rowHeaderLayout: string;
  150. /**
  151. * Switches the widget to a right-to-left representation.
  152. */
  153. rtlEnabled: boolean;
  154. /**
  155. * A configuration object specifying scrolling options.
  156. */
  157. scrolling: {
  158. mode?: string;
  159. useNative?: boolean;
  160. };
  161. /**
  162. * Specifies whether the outer borders of the grid are visible or not.
  163. */
  164. showBorders: boolean;
  165. /**
  166. * Specifies whether to display the Grand Total column.
  167. */
  168. showColumnGrandTotals: boolean;
  169. /**
  170. * Specifies whether to display the Total columns.
  171. */
  172. showColumnTotals: boolean;
  173. /**
  174. * Specifies whether to display the Grand Total row.
  175. */
  176. showRowGrandTotals: boolean;
  177. /**
  178. * Specifies whether to display the Total rows. Applies only if rowHeaderLayout is "standard".
  179. */
  180. showRowTotals: boolean;
  181. /**
  182. * Specifies where to show the total rows or columns. Applies only if rowHeaderLayout is "standard".
  183. */
  184. showTotalsPrior: string;
  185. /**
  186. * A configuration object specifying options related to state storing.
  187. */
  188. stateStoring: {
  189. customLoad?: Function;
  190. customSave?: Function;
  191. enabled?: boolean;
  192. savingTimeout?: number;
  193. storageKey?: string;
  194. type?: string;
  195. };
  196. /**
  197. * Specifies the number of the element when the Tab key is used for navigating.
  198. */
  199. tabIndex: number;
  200. /**
  201. * Strings that can be changed or localized in the PivotGrid widget.
  202. */
  203. texts: {
  204. collapseAll?: string;
  205. dataNotAvailable?: string;
  206. expandAll?: string;
  207. exportToExcel?: string;
  208. grandTotal?: string;
  209. noData?: string;
  210. removeAllSorting?: string;
  211. showFieldChooser?: string;
  212. sortColumnBySummary?: string;
  213. sortRowBySummary?: string;
  214. total?: string;
  215. };
  216. /**
  217. * Specifies whether the widget is visible.
  218. */
  219. visible: boolean;
  220. /**
  221. * Specifies the widget's width.
  222. */
  223. width: number | Function | string;
  224. /**
  225. * Specifies whether long text in header items should be wrapped.
  226. */
  227. wordWrapEnabled: boolean;
  228. /**
  229. * A function that is executed when a pivot grid cell is clicked or tapped.
  230. */
  231. onCellClick: EventEmitter<any>;
  232. /**
  233. * A function that is executed after a pivot grid cell is created.
  234. */
  235. onCellPrepared: EventEmitter<any>;
  236. /**
  237. * A function that is executed when the widget's content is ready and each time the content is changed.
  238. */
  239. onContentReady: EventEmitter<any>;
  240. /**
  241. * A function that is executed before the context menu is rendered.
  242. */
  243. onContextMenuPreparing: EventEmitter<any>;
  244. /**
  245. * A function that is executed before the widget is disposed of.
  246. */
  247. onDisposing: EventEmitter<any>;
  248. /**
  249. * A function that is executed after data is exported.
  250. */
  251. onExported: EventEmitter<any>;
  252. /**
  253. * A function that is executed before data is exported.
  254. */
  255. onExporting: EventEmitter<any>;
  256. /**
  257. * A function that is executed before a file with exported data is saved to the user's local storage.
  258. */
  259. onFileSaving: EventEmitter<any>;
  260. /**
  261. * A function used in JavaScript frameworks to save the widget instance.
  262. */
  263. onInitialized: EventEmitter<any>;
  264. /**
  265. * A function that is executed after a widget option is changed.
  266. */
  267. onOptionChanged: EventEmitter<any>;
  268. /**
  269. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  270. */
  271. allowExpandAllChange: EventEmitter<boolean>;
  272. /**
  273. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  274. */
  275. allowFilteringChange: EventEmitter<boolean>;
  276. /**
  277. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  278. */
  279. allowSortingChange: EventEmitter<boolean>;
  280. /**
  281. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  282. */
  283. allowSortingBySummaryChange: EventEmitter<boolean>;
  284. /**
  285. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  286. */
  287. dataFieldAreaChange: EventEmitter<string>;
  288. /**
  289. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  290. */
  291. dataSourceChange: EventEmitter<DevExpress.data.PivotGridDataSource | DevExpress.data.PivotGridDataSourceOptions | Array<any>>;
  292. /**
  293. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  294. */
  295. disabledChange: EventEmitter<boolean>;
  296. /**
  297. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  298. */
  299. elementAttrChange: EventEmitter<any>;
  300. /**
  301. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  302. */
  303. exportChange: EventEmitter<{
  304. enabled?: boolean;
  305. fileName?: string;
  306. ignoreExcelErrors?: boolean;
  307. proxyUrl?: string;
  308. }>;
  309. /**
  310. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  311. */
  312. fieldChooserChange: EventEmitter<{
  313. allowSearch?: boolean;
  314. applyChangesMode?: string;
  315. enabled?: boolean;
  316. height?: number;
  317. layout?: number | string;
  318. searchTimeout?: number;
  319. texts?: {
  320. allFields?: string;
  321. columnFields?: string;
  322. dataFields?: string;
  323. filterFields?: string;
  324. rowFields?: string;
  325. };
  326. title?: string;
  327. width?: number;
  328. }>;
  329. /**
  330. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  331. */
  332. fieldPanelChange: EventEmitter<{
  333. allowFieldDragging?: boolean;
  334. showColumnFields?: boolean;
  335. showDataFields?: boolean;
  336. showFilterFields?: boolean;
  337. showRowFields?: boolean;
  338. texts?: {
  339. columnFieldArea?: string;
  340. dataFieldArea?: string;
  341. filterFieldArea?: string;
  342. rowFieldArea?: string;
  343. };
  344. visible?: boolean;
  345. }>;
  346. /**
  347. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  348. */
  349. headerFilterChange: EventEmitter<{
  350. allowSearch?: boolean;
  351. height?: number;
  352. searchTimeout?: number;
  353. showRelevantValues?: boolean;
  354. texts?: {
  355. cancel?: string;
  356. emptyValue?: string;
  357. ok?: string;
  358. };
  359. width?: number;
  360. }>;
  361. /**
  362. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  363. */
  364. heightChange: EventEmitter<number | Function | string>;
  365. /**
  366. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  367. */
  368. hideEmptySummaryCellsChange: EventEmitter<boolean>;
  369. /**
  370. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  371. */
  372. hintChange: EventEmitter<string>;
  373. /**
  374. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  375. */
  376. loadPanelChange: EventEmitter<{
  377. enabled?: boolean;
  378. height?: number;
  379. indicatorSrc?: string;
  380. showIndicator?: boolean;
  381. showPane?: boolean;
  382. text?: string;
  383. width?: number;
  384. }>;
  385. /**
  386. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  387. */
  388. rowHeaderLayoutChange: EventEmitter<string>;
  389. /**
  390. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  391. */
  392. rtlEnabledChange: EventEmitter<boolean>;
  393. /**
  394. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  395. */
  396. scrollingChange: EventEmitter<{
  397. mode?: string;
  398. useNative?: boolean;
  399. }>;
  400. /**
  401. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  402. */
  403. showBordersChange: EventEmitter<boolean>;
  404. /**
  405. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  406. */
  407. showColumnGrandTotalsChange: EventEmitter<boolean>;
  408. /**
  409. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  410. */
  411. showColumnTotalsChange: EventEmitter<boolean>;
  412. /**
  413. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  414. */
  415. showRowGrandTotalsChange: EventEmitter<boolean>;
  416. /**
  417. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  418. */
  419. showRowTotalsChange: EventEmitter<boolean>;
  420. /**
  421. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  422. */
  423. showTotalsPriorChange: EventEmitter<string>;
  424. /**
  425. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  426. */
  427. stateStoringChange: EventEmitter<{
  428. customLoad?: Function;
  429. customSave?: Function;
  430. enabled?: boolean;
  431. savingTimeout?: number;
  432. storageKey?: string;
  433. type?: string;
  434. }>;
  435. /**
  436. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  437. */
  438. tabIndexChange: EventEmitter<number>;
  439. /**
  440. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  441. */
  442. textsChange: EventEmitter<{
  443. collapseAll?: string;
  444. dataNotAvailable?: string;
  445. expandAll?: string;
  446. exportToExcel?: string;
  447. grandTotal?: string;
  448. noData?: string;
  449. removeAllSorting?: string;
  450. showFieldChooser?: string;
  451. sortColumnBySummary?: string;
  452. sortRowBySummary?: string;
  453. total?: string;
  454. }>;
  455. /**
  456. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  457. */
  458. visibleChange: EventEmitter<boolean>;
  459. /**
  460. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  461. */
  462. widthChange: EventEmitter<number | Function | string>;
  463. /**
  464. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  465. */
  466. wordWrapEnabledChange: EventEmitter<boolean>;
  467. constructor(elementRef: ElementRef, ngZone: NgZone, templateHost: DxTemplateHost, _watcherHelper: WatcherHelper, _idh: IterableDifferHelper, optionHost: NestedOptionHost, transferState: TransferState, platformId: any);
  468. protected _createInstance(element: any, options: any): DxPivotGrid;
  469. ngOnDestroy(): void;
  470. ngOnChanges(changes: SimpleChanges): void;
  471. setupChanges(prop: string, changes: SimpleChanges): void;
  472. ngDoCheck(): void;
  473. _setOption(name: string, value: any): void;
  474. }
  475. export declare class DxPivotGridModule {
  476. }