data-grid.js 62 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563
  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 data_grid_1 = require("devextreme/ui/data_grid");
  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 column_chooser_1 = require("./nested/column-chooser");
  37. var column_fixing_1 = require("./nested/column-fixing");
  38. var texts_1 = require("./nested/texts");
  39. var column_dxi_1 = require("./nested/column-dxi");
  40. var button_dxi_1 = require("./nested/button-dxi");
  41. var header_filter_1 = require("./nested/header-filter");
  42. var lookup_1 = require("./nested/lookup");
  43. var format_1 = require("./nested/format");
  44. var form_item_1 = require("./nested/form-item");
  45. var label_1 = require("./nested/label");
  46. var validation_rule_dxi_1 = require("./nested/validation-rule-dxi");
  47. var editing_1 = require("./nested/editing");
  48. var form_1 = require("./nested/form");
  49. var col_count_by_screen_1 = require("./nested/col-count-by-screen");
  50. var item_dxi_1 = require("./nested/item-dxi");
  51. var tab_panel_options_1 = require("./nested/tab-panel-options");
  52. var tab_dxi_1 = require("./nested/tab-dxi");
  53. var button_options_1 = require("./nested/button-options");
  54. var popup_1 = require("./nested/popup");
  55. var animation_1 = require("./nested/animation");
  56. var hide_1 = require("./nested/hide");
  57. var show_1 = require("./nested/show");
  58. var position_1 = require("./nested/position");
  59. var at_1 = require("./nested/at");
  60. var boundary_offset_1 = require("./nested/boundary-offset");
  61. var collision_1 = require("./nested/collision");
  62. var my_1 = require("./nested/my");
  63. var offset_1 = require("./nested/offset");
  64. var toolbar_item_dxi_1 = require("./nested/toolbar-item-dxi");
  65. var export_1 = require("./nested/export");
  66. var filter_builder_1 = require("./nested/filter-builder");
  67. var custom_operation_dxi_1 = require("./nested/custom-operation-dxi");
  68. var field_dxi_1 = require("./nested/field-dxi");
  69. var filter_operation_descriptions_1 = require("./nested/filter-operation-descriptions");
  70. var group_operation_descriptions_1 = require("./nested/group-operation-descriptions");
  71. var filter_builder_popup_1 = require("./nested/filter-builder-popup");
  72. var filter_panel_1 = require("./nested/filter-panel");
  73. var filter_row_1 = require("./nested/filter-row");
  74. var operation_descriptions_1 = require("./nested/operation-descriptions");
  75. var grouping_1 = require("./nested/grouping");
  76. var group_panel_1 = require("./nested/group-panel");
  77. var keyboard_navigation_1 = require("./nested/keyboard-navigation");
  78. var load_panel_1 = require("./nested/load-panel");
  79. var master_detail_1 = require("./nested/master-detail");
  80. var pager_1 = require("./nested/pager");
  81. var paging_1 = require("./nested/paging");
  82. var remote_operations_1 = require("./nested/remote-operations");
  83. var scrolling_1 = require("./nested/scrolling");
  84. var search_panel_1 = require("./nested/search-panel");
  85. var selection_1 = require("./nested/selection");
  86. var sort_by_group_summary_info_dxi_1 = require("./nested/sort-by-group-summary-info-dxi");
  87. var sorting_1 = require("./nested/sorting");
  88. var state_storing_1 = require("./nested/state-storing");
  89. var summary_1 = require("./nested/summary");
  90. var group_item_dxi_1 = require("./nested/group-item-dxi");
  91. var value_format_1 = require("./nested/value-format");
  92. var total_item_dxi_1 = require("./nested/total-item-dxi");
  93. var column_dxi_2 = require("./nested/column-dxi");
  94. var sort_by_group_summary_info_dxi_2 = require("./nested/sort-by-group-summary-info-dxi");
  95. /**
  96. * The DataGrid is a widget that represents data from a local or remote source in the form of a grid. This widget offers such basic features as sorting, grouping, filtering, as well as more advanced capabilities, like state storing, export to Excel, master-detail interface, and many others.
  97. */
  98. var DxDataGridComponent = (function (_super) {
  99. __extends(DxDataGridComponent, _super);
  100. function DxDataGridComponent(elementRef, ngZone, templateHost, _watcherHelper, _idh, optionHost, transferState, platformId) {
  101. var _this = _super.call(this, elementRef, ngZone, templateHost, _watcherHelper, transferState, platformId) || this;
  102. _this._watcherHelper = _watcherHelper;
  103. _this._idh = _idh;
  104. _this._createEventEmitters([
  105. { subscribe: 'adaptiveDetailRowPreparing', emit: 'onAdaptiveDetailRowPreparing' },
  106. { subscribe: 'cellClick', emit: 'onCellClick' },
  107. { subscribe: 'cellDblClick', emit: 'onCellDblClick' },
  108. { subscribe: 'cellHoverChanged', emit: 'onCellHoverChanged' },
  109. { subscribe: 'cellPrepared', emit: 'onCellPrepared' },
  110. { subscribe: 'contentReady', emit: 'onContentReady' },
  111. { subscribe: 'contextMenuPreparing', emit: 'onContextMenuPreparing' },
  112. { subscribe: 'dataErrorOccurred', emit: 'onDataErrorOccurred' },
  113. { subscribe: 'disposing', emit: 'onDisposing' },
  114. { subscribe: 'editingStart', emit: 'onEditingStart' },
  115. { subscribe: 'editorPrepared', emit: 'onEditorPrepared' },
  116. { subscribe: 'editorPreparing', emit: 'onEditorPreparing' },
  117. { subscribe: 'exported', emit: 'onExported' },
  118. { subscribe: 'exporting', emit: 'onExporting' },
  119. { subscribe: 'fileSaving', emit: 'onFileSaving' },
  120. { subscribe: 'focusedCellChanged', emit: 'onFocusedCellChanged' },
  121. { subscribe: 'focusedCellChanging', emit: 'onFocusedCellChanging' },
  122. { subscribe: 'focusedRowChanged', emit: 'onFocusedRowChanged' },
  123. { subscribe: 'focusedRowChanging', emit: 'onFocusedRowChanging' },
  124. { subscribe: 'initialized', emit: 'onInitialized' },
  125. { subscribe: 'initNewRow', emit: 'onInitNewRow' },
  126. { subscribe: 'keyDown', emit: 'onKeyDown' },
  127. { subscribe: 'optionChanged', emit: 'onOptionChanged' },
  128. { subscribe: 'rowClick', emit: 'onRowClick' },
  129. { subscribe: 'rowCollapsed', emit: 'onRowCollapsed' },
  130. { subscribe: 'rowCollapsing', emit: 'onRowCollapsing' },
  131. { subscribe: 'rowDblClick', emit: 'onRowDblClick' },
  132. { subscribe: 'rowExpanded', emit: 'onRowExpanded' },
  133. { subscribe: 'rowExpanding', emit: 'onRowExpanding' },
  134. { subscribe: 'rowInserted', emit: 'onRowInserted' },
  135. { subscribe: 'rowInserting', emit: 'onRowInserting' },
  136. { subscribe: 'rowPrepared', emit: 'onRowPrepared' },
  137. { subscribe: 'rowRemoved', emit: 'onRowRemoved' },
  138. { subscribe: 'rowRemoving', emit: 'onRowRemoving' },
  139. { subscribe: 'rowUpdated', emit: 'onRowUpdated' },
  140. { subscribe: 'rowUpdating', emit: 'onRowUpdating' },
  141. { subscribe: 'rowValidating', emit: 'onRowValidating' },
  142. { subscribe: 'selectionChanged', emit: 'onSelectionChanged' },
  143. { subscribe: 'toolbarPreparing', emit: 'onToolbarPreparing' },
  144. { emit: 'accessKeyChange' },
  145. { emit: 'activeStateEnabledChange' },
  146. { emit: 'allowColumnReorderingChange' },
  147. { emit: 'allowColumnResizingChange' },
  148. { emit: 'cacheEnabledChange' },
  149. { emit: 'cellHintEnabledChange' },
  150. { emit: 'columnAutoWidthChange' },
  151. { emit: 'columnChooserChange' },
  152. { emit: 'columnFixingChange' },
  153. { emit: 'columnHidingEnabledChange' },
  154. { emit: 'columnMinWidthChange' },
  155. { emit: 'columnResizingModeChange' },
  156. { emit: 'columnsChange' },
  157. { emit: 'columnWidthChange' },
  158. { emit: 'customizeColumnsChange' },
  159. { emit: 'customizeExportDataChange' },
  160. { emit: 'dataSourceChange' },
  161. { emit: 'dateSerializationFormatChange' },
  162. { emit: 'disabledChange' },
  163. { emit: 'editingChange' },
  164. { emit: 'elementAttrChange' },
  165. { emit: 'errorRowEnabledChange' },
  166. { emit: 'exportChange' },
  167. { emit: 'filterBuilderChange' },
  168. { emit: 'filterBuilderPopupChange' },
  169. { emit: 'filterPanelChange' },
  170. { emit: 'filterRowChange' },
  171. { emit: 'filterSyncEnabledChange' },
  172. { emit: 'filterValueChange' },
  173. { emit: 'focusedColumnIndexChange' },
  174. { emit: 'focusedRowEnabledChange' },
  175. { emit: 'focusedRowIndexChange' },
  176. { emit: 'focusedRowKeyChange' },
  177. { emit: 'focusStateEnabledChange' },
  178. { emit: 'groupingChange' },
  179. { emit: 'groupPanelChange' },
  180. { emit: 'headerFilterChange' },
  181. { emit: 'heightChange' },
  182. { emit: 'highlightChangesChange' },
  183. { emit: 'hintChange' },
  184. { emit: 'hoverStateEnabledChange' },
  185. { emit: 'keyboardNavigationChange' },
  186. { emit: 'keyExprChange' },
  187. { emit: 'loadPanelChange' },
  188. { emit: 'masterDetailChange' },
  189. { emit: 'noDataTextChange' },
  190. { emit: 'pagerChange' },
  191. { emit: 'pagingChange' },
  192. { emit: 'remoteOperationsChange' },
  193. { emit: 'renderAsyncChange' },
  194. { emit: 'repaintChangesOnlyChange' },
  195. { emit: 'rowAlternationEnabledChange' },
  196. { emit: 'rowTemplateChange' },
  197. { emit: 'rtlEnabledChange' },
  198. { emit: 'scrollingChange' },
  199. { emit: 'searchPanelChange' },
  200. { emit: 'selectedRowKeysChange' },
  201. { emit: 'selectionChange' },
  202. { emit: 'selectionFilterChange' },
  203. { emit: 'showBordersChange' },
  204. { emit: 'showColumnHeadersChange' },
  205. { emit: 'showColumnLinesChange' },
  206. { emit: 'showRowLinesChange' },
  207. { emit: 'sortByGroupSummaryInfoChange' },
  208. { emit: 'sortingChange' },
  209. { emit: 'stateStoringChange' },
  210. { emit: 'summaryChange' },
  211. { emit: 'tabIndexChange' },
  212. { emit: 'twoWayBindingEnabledChange' },
  213. { emit: 'visibleChange' },
  214. { emit: 'widthChange' },
  215. { emit: 'wordWrapEnabledChange' }
  216. ]);
  217. _this._idh.setHost(_this);
  218. optionHost.setHost(_this);
  219. return _this;
  220. }
  221. Object.defineProperty(DxDataGridComponent.prototype, "accessKey", {
  222. get: /**
  223. * Specifies the shortcut key that sets focus on the widget.
  224. */
  225. function () {
  226. return this._getOption('accessKey');
  227. },
  228. set: function (value) {
  229. this._setOption('accessKey', value);
  230. },
  231. enumerable: true,
  232. configurable: true
  233. });
  234. Object.defineProperty(DxDataGridComponent.prototype, "activeStateEnabled", {
  235. get: /**
  236. * Specifies whether or not the widget changes its state when interacting with a user.
  237. */
  238. function () {
  239. return this._getOption('activeStateEnabled');
  240. },
  241. set: function (value) {
  242. this._setOption('activeStateEnabled', value);
  243. },
  244. enumerable: true,
  245. configurable: true
  246. });
  247. Object.defineProperty(DxDataGridComponent.prototype, "allowColumnReordering", {
  248. get: /**
  249. * Specifies whether a user can reorder columns.
  250. */
  251. function () {
  252. return this._getOption('allowColumnReordering');
  253. },
  254. set: function (value) {
  255. this._setOption('allowColumnReordering', value);
  256. },
  257. enumerable: true,
  258. configurable: true
  259. });
  260. Object.defineProperty(DxDataGridComponent.prototype, "allowColumnResizing", {
  261. get: /**
  262. * Specifies whether a user can resize columns.
  263. */
  264. function () {
  265. return this._getOption('allowColumnResizing');
  266. },
  267. set: function (value) {
  268. this._setOption('allowColumnResizing', value);
  269. },
  270. enumerable: true,
  271. configurable: true
  272. });
  273. Object.defineProperty(DxDataGridComponent.prototype, "cacheEnabled", {
  274. get: /**
  275. * Specifies whether data should be cached.
  276. */
  277. function () {
  278. return this._getOption('cacheEnabled');
  279. },
  280. set: function (value) {
  281. this._setOption('cacheEnabled', value);
  282. },
  283. enumerable: true,
  284. configurable: true
  285. });
  286. Object.defineProperty(DxDataGridComponent.prototype, "cellHintEnabled", {
  287. get: /**
  288. * Enables a hint that appears when a user hovers the mouse pointer over a cell with truncated content.
  289. */
  290. function () {
  291. return this._getOption('cellHintEnabled');
  292. },
  293. set: function (value) {
  294. this._setOption('cellHintEnabled', value);
  295. },
  296. enumerable: true,
  297. configurable: true
  298. });
  299. Object.defineProperty(DxDataGridComponent.prototype, "columnAutoWidth", {
  300. get: /**
  301. * Specifies whether columns should adjust their widths to the content.
  302. */
  303. function () {
  304. return this._getOption('columnAutoWidth');
  305. },
  306. set: function (value) {
  307. this._setOption('columnAutoWidth', value);
  308. },
  309. enumerable: true,
  310. configurable: true
  311. });
  312. Object.defineProperty(DxDataGridComponent.prototype, "columnChooser", {
  313. get: /**
  314. * Configures the column chooser.
  315. */
  316. function () {
  317. return this._getOption('columnChooser');
  318. },
  319. set: function (value) {
  320. this._setOption('columnChooser', value);
  321. },
  322. enumerable: true,
  323. configurable: true
  324. });
  325. Object.defineProperty(DxDataGridComponent.prototype, "columnFixing", {
  326. get: /**
  327. * Configures column fixing.
  328. */
  329. function () {
  330. return this._getOption('columnFixing');
  331. },
  332. set: function (value) {
  333. this._setOption('columnFixing', value);
  334. },
  335. enumerable: true,
  336. configurable: true
  337. });
  338. Object.defineProperty(DxDataGridComponent.prototype, "columnHidingEnabled", {
  339. get: /**
  340. * Specifies whether the widget should hide columns to adapt to the screen or container size. Ignored if allowColumnResizing is true and columnResizingMode is "widget".
  341. */
  342. function () {
  343. return this._getOption('columnHidingEnabled');
  344. },
  345. set: function (value) {
  346. this._setOption('columnHidingEnabled', value);
  347. },
  348. enumerable: true,
  349. configurable: true
  350. });
  351. Object.defineProperty(DxDataGridComponent.prototype, "columnMinWidth", {
  352. get: /**
  353. * Specifies the minimum width of columns.
  354. */
  355. function () {
  356. return this._getOption('columnMinWidth');
  357. },
  358. set: function (value) {
  359. this._setOption('columnMinWidth', value);
  360. },
  361. enumerable: true,
  362. configurable: true
  363. });
  364. Object.defineProperty(DxDataGridComponent.prototype, "columnResizingMode", {
  365. get: /**
  366. * Specifies how the widget resizes columns. Applies only if allowColumnResizing is true.
  367. */
  368. function () {
  369. return this._getOption('columnResizingMode');
  370. },
  371. set: function (value) {
  372. this._setOption('columnResizingMode', value);
  373. },
  374. enumerable: true,
  375. configurable: true
  376. });
  377. Object.defineProperty(DxDataGridComponent.prototype, "columns", {
  378. get: /**
  379. * An array of grid columns.
  380. */
  381. function () {
  382. return this._getOption('columns');
  383. },
  384. set: function (value) {
  385. this._setOption('columns', value);
  386. },
  387. enumerable: true,
  388. configurable: true
  389. });
  390. Object.defineProperty(DxDataGridComponent.prototype, "columnWidth", {
  391. get: /**
  392. * Specifies the width for all data columns. Has a lower priority than the column.width option.
  393. */
  394. function () {
  395. return this._getOption('columnWidth');
  396. },
  397. set: function (value) {
  398. this._setOption('columnWidth', value);
  399. },
  400. enumerable: true,
  401. configurable: true
  402. });
  403. Object.defineProperty(DxDataGridComponent.prototype, "customizeColumns", {
  404. get: /**
  405. * Customizes columns after they are created.
  406. */
  407. function () {
  408. return this._getOption('customizeColumns');
  409. },
  410. set: function (value) {
  411. this._setOption('customizeColumns', value);
  412. },
  413. enumerable: true,
  414. configurable: true
  415. });
  416. Object.defineProperty(DxDataGridComponent.prototype, "customizeExportData", {
  417. get: /**
  418. * Customizes data before export. You can use the export.customizeExcelCell function instead.
  419. */
  420. function () {
  421. return this._getOption('customizeExportData');
  422. },
  423. set: function (value) {
  424. this._setOption('customizeExportData', value);
  425. },
  426. enumerable: true,
  427. configurable: true
  428. });
  429. Object.defineProperty(DxDataGridComponent.prototype, "dataSource", {
  430. get: /**
  431. * Binds the widget to data.
  432. */
  433. function () {
  434. return this._getOption('dataSource');
  435. },
  436. set: function (value) {
  437. this._setOption('dataSource', value);
  438. },
  439. enumerable: true,
  440. configurable: true
  441. });
  442. Object.defineProperty(DxDataGridComponent.prototype, "dateSerializationFormat", {
  443. get: /**
  444. * Specifies the format in which date-time values should be sent to the server. Use it only if you do not specify the dataSource at design time.
  445. */
  446. function () {
  447. return this._getOption('dateSerializationFormat');
  448. },
  449. set: function (value) {
  450. this._setOption('dateSerializationFormat', value);
  451. },
  452. enumerable: true,
  453. configurable: true
  454. });
  455. Object.defineProperty(DxDataGridComponent.prototype, "disabled", {
  456. get: /**
  457. * Specifies whether the widget responds to user interaction.
  458. */
  459. function () {
  460. return this._getOption('disabled');
  461. },
  462. set: function (value) {
  463. this._setOption('disabled', value);
  464. },
  465. enumerable: true,
  466. configurable: true
  467. });
  468. Object.defineProperty(DxDataGridComponent.prototype, "editing", {
  469. get: /**
  470. * Configures editing.
  471. */
  472. function () {
  473. return this._getOption('editing');
  474. },
  475. set: function (value) {
  476. this._setOption('editing', value);
  477. },
  478. enumerable: true,
  479. configurable: true
  480. });
  481. Object.defineProperty(DxDataGridComponent.prototype, "elementAttr", {
  482. get: /**
  483. * Specifies the attributes to be attached to the widget's root element.
  484. */
  485. function () {
  486. return this._getOption('elementAttr');
  487. },
  488. set: function (value) {
  489. this._setOption('elementAttr', value);
  490. },
  491. enumerable: true,
  492. configurable: true
  493. });
  494. Object.defineProperty(DxDataGridComponent.prototype, "errorRowEnabled", {
  495. get: /**
  496. * Indicates whether to show the error row.
  497. */
  498. function () {
  499. return this._getOption('errorRowEnabled');
  500. },
  501. set: function (value) {
  502. this._setOption('errorRowEnabled', value);
  503. },
  504. enumerable: true,
  505. configurable: true
  506. });
  507. Object.defineProperty(DxDataGridComponent.prototype, "export", {
  508. get: /**
  509. * Configures client-side exporting.
  510. */
  511. function () {
  512. return this._getOption('export');
  513. },
  514. set: function (value) {
  515. this._setOption('export', value);
  516. },
  517. enumerable: true,
  518. configurable: true
  519. });
  520. Object.defineProperty(DxDataGridComponent.prototype, "filterBuilder", {
  521. get: /**
  522. * Configures the integrated filter builder.
  523. */
  524. function () {
  525. return this._getOption('filterBuilder');
  526. },
  527. set: function (value) {
  528. this._setOption('filterBuilder', value);
  529. },
  530. enumerable: true,
  531. configurable: true
  532. });
  533. Object.defineProperty(DxDataGridComponent.prototype, "filterBuilderPopup", {
  534. get: /**
  535. * Configures the popup in which the integrated filter builder is shown.
  536. */
  537. function () {
  538. return this._getOption('filterBuilderPopup');
  539. },
  540. set: function (value) {
  541. this._setOption('filterBuilderPopup', value);
  542. },
  543. enumerable: true,
  544. configurable: true
  545. });
  546. Object.defineProperty(DxDataGridComponent.prototype, "filterPanel", {
  547. get: /**
  548. * Configures the filter panel.
  549. */
  550. function () {
  551. return this._getOption('filterPanel');
  552. },
  553. set: function (value) {
  554. this._setOption('filterPanel', value);
  555. },
  556. enumerable: true,
  557. configurable: true
  558. });
  559. Object.defineProperty(DxDataGridComponent.prototype, "filterRow", {
  560. get: /**
  561. * Configures the filter row.
  562. */
  563. function () {
  564. return this._getOption('filterRow');
  565. },
  566. set: function (value) {
  567. this._setOption('filterRow', value);
  568. },
  569. enumerable: true,
  570. configurable: true
  571. });
  572. Object.defineProperty(DxDataGridComponent.prototype, "filterSyncEnabled", {
  573. get: /**
  574. * Specifies whether to synchronize the filter row, header filter, and filter builder. The synchronized filter expression is stored in the filterValue option.
  575. */
  576. function () {
  577. return this._getOption('filterSyncEnabled');
  578. },
  579. set: function (value) {
  580. this._setOption('filterSyncEnabled', value);
  581. },
  582. enumerable: true,
  583. configurable: true
  584. });
  585. Object.defineProperty(DxDataGridComponent.prototype, "filterValue", {
  586. get: /**
  587. * Specifies a filter expression.
  588. */
  589. function () {
  590. return this._getOption('filterValue');
  591. },
  592. set: function (value) {
  593. this._setOption('filterValue', value);
  594. },
  595. enumerable: true,
  596. configurable: true
  597. });
  598. Object.defineProperty(DxDataGridComponent.prototype, "focusedColumnIndex", {
  599. get: /**
  600. * Specifies the index of the column focused initially or currently in the data row area.
  601. */
  602. function () {
  603. return this._getOption('focusedColumnIndex');
  604. },
  605. set: function (value) {
  606. this._setOption('focusedColumnIndex', value);
  607. },
  608. enumerable: true,
  609. configurable: true
  610. });
  611. Object.defineProperty(DxDataGridComponent.prototype, "focusedRowEnabled", {
  612. get: /**
  613. * Specifies whether the focused row feature is enabled.
  614. */
  615. function () {
  616. return this._getOption('focusedRowEnabled');
  617. },
  618. set: function (value) {
  619. this._setOption('focusedRowEnabled', value);
  620. },
  621. enumerable: true,
  622. configurable: true
  623. });
  624. Object.defineProperty(DxDataGridComponent.prototype, "focusedRowIndex", {
  625. get: /**
  626. * Specifies the initially or currently focused grid row's index. Use it when focusedRowEnabled is true.
  627. */
  628. function () {
  629. return this._getOption('focusedRowIndex');
  630. },
  631. set: function (value) {
  632. this._setOption('focusedRowIndex', value);
  633. },
  634. enumerable: true,
  635. configurable: true
  636. });
  637. Object.defineProperty(DxDataGridComponent.prototype, "focusedRowKey", {
  638. get: /**
  639. * Specifies initially or currently focused grid row's key. Use it when focusedRowEnabled is true.
  640. */
  641. function () {
  642. return this._getOption('focusedRowKey');
  643. },
  644. set: function (value) {
  645. this._setOption('focusedRowKey', value);
  646. },
  647. enumerable: true,
  648. configurable: true
  649. });
  650. Object.defineProperty(DxDataGridComponent.prototype, "focusStateEnabled", {
  651. get: /**
  652. * Specifies whether the widget can be focused using keyboard navigation.
  653. */
  654. function () {
  655. return this._getOption('focusStateEnabled');
  656. },
  657. set: function (value) {
  658. this._setOption('focusStateEnabled', value);
  659. },
  660. enumerable: true,
  661. configurable: true
  662. });
  663. Object.defineProperty(DxDataGridComponent.prototype, "grouping", {
  664. get: /**
  665. * Configures grouping.
  666. */
  667. function () {
  668. return this._getOption('grouping');
  669. },
  670. set: function (value) {
  671. this._setOption('grouping', value);
  672. },
  673. enumerable: true,
  674. configurable: true
  675. });
  676. Object.defineProperty(DxDataGridComponent.prototype, "groupPanel", {
  677. get: /**
  678. * Configures the group panel.
  679. */
  680. function () {
  681. return this._getOption('groupPanel');
  682. },
  683. set: function (value) {
  684. this._setOption('groupPanel', value);
  685. },
  686. enumerable: true,
  687. configurable: true
  688. });
  689. Object.defineProperty(DxDataGridComponent.prototype, "headerFilter", {
  690. get: /**
  691. * Configures the header filter feature.
  692. */
  693. function () {
  694. return this._getOption('headerFilter');
  695. },
  696. set: function (value) {
  697. this._setOption('headerFilter', value);
  698. },
  699. enumerable: true,
  700. configurable: true
  701. });
  702. Object.defineProperty(DxDataGridComponent.prototype, "height", {
  703. get: /**
  704. * Specifies the widget's height.
  705. */
  706. function () {
  707. return this._getOption('height');
  708. },
  709. set: function (value) {
  710. this._setOption('height', value);
  711. },
  712. enumerable: true,
  713. configurable: true
  714. });
  715. Object.defineProperty(DxDataGridComponent.prototype, "highlightChanges", {
  716. get: /**
  717. * Specifies whether to highlight rows and cells with edited data. repaintChangesOnly should be true.
  718. */
  719. function () {
  720. return this._getOption('highlightChanges');
  721. },
  722. set: function (value) {
  723. this._setOption('highlightChanges', value);
  724. },
  725. enumerable: true,
  726. configurable: true
  727. });
  728. Object.defineProperty(DxDataGridComponent.prototype, "hint", {
  729. get: /**
  730. * Specifies text for a hint that appears when a user pauses on the widget.
  731. */
  732. function () {
  733. return this._getOption('hint');
  734. },
  735. set: function (value) {
  736. this._setOption('hint', value);
  737. },
  738. enumerable: true,
  739. configurable: true
  740. });
  741. Object.defineProperty(DxDataGridComponent.prototype, "hoverStateEnabled", {
  742. get: /**
  743. * Specifies whether the widget changes its state when a user pauses on it.
  744. */
  745. function () {
  746. return this._getOption('hoverStateEnabled');
  747. },
  748. set: function (value) {
  749. this._setOption('hoverStateEnabled', value);
  750. },
  751. enumerable: true,
  752. configurable: true
  753. });
  754. Object.defineProperty(DxDataGridComponent.prototype, "keyboardNavigation", {
  755. get: /**
  756. * Configures keyboard navigation.
  757. */
  758. function () {
  759. return this._getOption('keyboardNavigation');
  760. },
  761. set: function (value) {
  762. this._setOption('keyboardNavigation', value);
  763. },
  764. enumerable: true,
  765. configurable: true
  766. });
  767. Object.defineProperty(DxDataGridComponent.prototype, "keyExpr", {
  768. get: /**
  769. * Specifies which data field provides keys for data items. Applies only if data is a simple array.
  770. */
  771. function () {
  772. return this._getOption('keyExpr');
  773. },
  774. set: function (value) {
  775. this._setOption('keyExpr', value);
  776. },
  777. enumerable: true,
  778. configurable: true
  779. });
  780. Object.defineProperty(DxDataGridComponent.prototype, "loadPanel", {
  781. get: /**
  782. * Configures the load panel.
  783. */
  784. function () {
  785. return this._getOption('loadPanel');
  786. },
  787. set: function (value) {
  788. this._setOption('loadPanel', value);
  789. },
  790. enumerable: true,
  791. configurable: true
  792. });
  793. Object.defineProperty(DxDataGridComponent.prototype, "masterDetail", {
  794. get: /**
  795. * Allows you to build a master-detail interface in the grid.
  796. */
  797. function () {
  798. return this._getOption('masterDetail');
  799. },
  800. set: function (value) {
  801. this._setOption('masterDetail', value);
  802. },
  803. enumerable: true,
  804. configurable: true
  805. });
  806. Object.defineProperty(DxDataGridComponent.prototype, "noDataText", {
  807. get: /**
  808. * Specifies text shown when the widget does not display any data.
  809. */
  810. function () {
  811. return this._getOption('noDataText');
  812. },
  813. set: function (value) {
  814. this._setOption('noDataText', value);
  815. },
  816. enumerable: true,
  817. configurable: true
  818. });
  819. Object.defineProperty(DxDataGridComponent.prototype, "pager", {
  820. get: /**
  821. * Configures the pager.
  822. */
  823. function () {
  824. return this._getOption('pager');
  825. },
  826. set: function (value) {
  827. this._setOption('pager', value);
  828. },
  829. enumerable: true,
  830. configurable: true
  831. });
  832. Object.defineProperty(DxDataGridComponent.prototype, "paging", {
  833. get: /**
  834. * Configures paging.
  835. */
  836. function () {
  837. return this._getOption('paging');
  838. },
  839. set: function (value) {
  840. this._setOption('paging', value);
  841. },
  842. enumerable: true,
  843. configurable: true
  844. });
  845. Object.defineProperty(DxDataGridComponent.prototype, "remoteOperations", {
  846. get: /**
  847. * Notifies the DataGrid of the server's data processing operations.
  848. */
  849. function () {
  850. return this._getOption('remoteOperations');
  851. },
  852. set: function (value) {
  853. this._setOption('remoteOperations', value);
  854. },
  855. enumerable: true,
  856. configurable: true
  857. });
  858. Object.defineProperty(DxDataGridComponent.prototype, "renderAsync", {
  859. get: /**
  860. * Specifies whether to render the filter row, command columns, and columns with showEditorAlways set to true after other elements.
  861. */
  862. function () {
  863. return this._getOption('renderAsync');
  864. },
  865. set: function (value) {
  866. this._setOption('renderAsync', value);
  867. },
  868. enumerable: true,
  869. configurable: true
  870. });
  871. Object.defineProperty(DxDataGridComponent.prototype, "repaintChangesOnly", {
  872. get: /**
  873. * Specifies whether to repaint only those cells whose data changed.
  874. */
  875. function () {
  876. return this._getOption('repaintChangesOnly');
  877. },
  878. set: function (value) {
  879. this._setOption('repaintChangesOnly', value);
  880. },
  881. enumerable: true,
  882. configurable: true
  883. });
  884. Object.defineProperty(DxDataGridComponent.prototype, "rowAlternationEnabled", {
  885. get: /**
  886. * Specifies whether rows should be shaded differently.
  887. */
  888. function () {
  889. return this._getOption('rowAlternationEnabled');
  890. },
  891. set: function (value) {
  892. this._setOption('rowAlternationEnabled', value);
  893. },
  894. enumerable: true,
  895. configurable: true
  896. });
  897. Object.defineProperty(DxDataGridComponent.prototype, "rowTemplate", {
  898. get: /**
  899. * Specifies a custom template for rows.
  900. */
  901. function () {
  902. return this._getOption('rowTemplate');
  903. },
  904. set: function (value) {
  905. this._setOption('rowTemplate', value);
  906. },
  907. enumerable: true,
  908. configurable: true
  909. });
  910. Object.defineProperty(DxDataGridComponent.prototype, "rtlEnabled", {
  911. get: /**
  912. * Switches the widget to a right-to-left representation.
  913. */
  914. function () {
  915. return this._getOption('rtlEnabled');
  916. },
  917. set: function (value) {
  918. this._setOption('rtlEnabled', value);
  919. },
  920. enumerable: true,
  921. configurable: true
  922. });
  923. Object.defineProperty(DxDataGridComponent.prototype, "scrolling", {
  924. get: /**
  925. * Configures scrolling.
  926. */
  927. function () {
  928. return this._getOption('scrolling');
  929. },
  930. set: function (value) {
  931. this._setOption('scrolling', value);
  932. },
  933. enumerable: true,
  934. configurable: true
  935. });
  936. Object.defineProperty(DxDataGridComponent.prototype, "searchPanel", {
  937. get: /**
  938. * Configures the search panel.
  939. */
  940. function () {
  941. return this._getOption('searchPanel');
  942. },
  943. set: function (value) {
  944. this._setOption('searchPanel', value);
  945. },
  946. enumerable: true,
  947. configurable: true
  948. });
  949. Object.defineProperty(DxDataGridComponent.prototype, "selectedRowKeys", {
  950. get: /**
  951. * Allows you to select rows or determine which rows are selected.
  952. */
  953. function () {
  954. return this._getOption('selectedRowKeys');
  955. },
  956. set: function (value) {
  957. this._setOption('selectedRowKeys', value);
  958. },
  959. enumerable: true,
  960. configurable: true
  961. });
  962. Object.defineProperty(DxDataGridComponent.prototype, "selection", {
  963. get: /**
  964. * Configures runtime selection.
  965. */
  966. function () {
  967. return this._getOption('selection');
  968. },
  969. set: function (value) {
  970. this._setOption('selection', value);
  971. },
  972. enumerable: true,
  973. configurable: true
  974. });
  975. Object.defineProperty(DxDataGridComponent.prototype, "selectionFilter", {
  976. get: /**
  977. * Specifies filters for the rows that must be selected initially. Applies only if selection.deferred is true.
  978. */
  979. function () {
  980. return this._getOption('selectionFilter');
  981. },
  982. set: function (value) {
  983. this._setOption('selectionFilter', value);
  984. },
  985. enumerable: true,
  986. configurable: true
  987. });
  988. Object.defineProperty(DxDataGridComponent.prototype, "showBorders", {
  989. get: /**
  990. * Specifies whether the outer borders of the widget are visible.
  991. */
  992. function () {
  993. return this._getOption('showBorders');
  994. },
  995. set: function (value) {
  996. this._setOption('showBorders', value);
  997. },
  998. enumerable: true,
  999. configurable: true
  1000. });
  1001. Object.defineProperty(DxDataGridComponent.prototype, "showColumnHeaders", {
  1002. get: /**
  1003. * Specifies whether column headers are visible.
  1004. */
  1005. function () {
  1006. return this._getOption('showColumnHeaders');
  1007. },
  1008. set: function (value) {
  1009. this._setOption('showColumnHeaders', value);
  1010. },
  1011. enumerable: true,
  1012. configurable: true
  1013. });
  1014. Object.defineProperty(DxDataGridComponent.prototype, "showColumnLines", {
  1015. get: /**
  1016. * Specifies whether vertical lines that separate one column from another are visible.
  1017. */
  1018. function () {
  1019. return this._getOption('showColumnLines');
  1020. },
  1021. set: function (value) {
  1022. this._setOption('showColumnLines', value);
  1023. },
  1024. enumerable: true,
  1025. configurable: true
  1026. });
  1027. Object.defineProperty(DxDataGridComponent.prototype, "showRowLines", {
  1028. get: /**
  1029. * Specifies whether horizontal lines that separate one row from another are visible.
  1030. */
  1031. function () {
  1032. return this._getOption('showRowLines');
  1033. },
  1034. set: function (value) {
  1035. this._setOption('showRowLines', value);
  1036. },
  1037. enumerable: true,
  1038. configurable: true
  1039. });
  1040. Object.defineProperty(DxDataGridComponent.prototype, "sortByGroupSummaryInfo", {
  1041. get: /**
  1042. * Allows you to sort groups according to the values of group summary items.
  1043. */
  1044. function () {
  1045. return this._getOption('sortByGroupSummaryInfo');
  1046. },
  1047. set: function (value) {
  1048. this._setOption('sortByGroupSummaryInfo', value);
  1049. },
  1050. enumerable: true,
  1051. configurable: true
  1052. });
  1053. Object.defineProperty(DxDataGridComponent.prototype, "sorting", {
  1054. get: /**
  1055. * Configures runtime sorting.
  1056. */
  1057. function () {
  1058. return this._getOption('sorting');
  1059. },
  1060. set: function (value) {
  1061. this._setOption('sorting', value);
  1062. },
  1063. enumerable: true,
  1064. configurable: true
  1065. });
  1066. Object.defineProperty(DxDataGridComponent.prototype, "stateStoring", {
  1067. get: /**
  1068. * Configures state storing.
  1069. */
  1070. function () {
  1071. return this._getOption('stateStoring');
  1072. },
  1073. set: function (value) {
  1074. this._setOption('stateStoring', value);
  1075. },
  1076. enumerable: true,
  1077. configurable: true
  1078. });
  1079. Object.defineProperty(DxDataGridComponent.prototype, "summary", {
  1080. get: /**
  1081. * Specifies the options of the grid summary.
  1082. */
  1083. function () {
  1084. return this._getOption('summary');
  1085. },
  1086. set: function (value) {
  1087. this._setOption('summary', value);
  1088. },
  1089. enumerable: true,
  1090. configurable: true
  1091. });
  1092. Object.defineProperty(DxDataGridComponent.prototype, "tabIndex", {
  1093. get: /**
  1094. * Specifies the number of the element when the Tab key is used for navigating.
  1095. */
  1096. function () {
  1097. return this._getOption('tabIndex');
  1098. },
  1099. set: function (value) {
  1100. this._setOption('tabIndex', value);
  1101. },
  1102. enumerable: true,
  1103. configurable: true
  1104. });
  1105. Object.defineProperty(DxDataGridComponent.prototype, "twoWayBindingEnabled", {
  1106. get: /**
  1107. * Specifies whether to enable two-way data binding.
  1108. */
  1109. function () {
  1110. return this._getOption('twoWayBindingEnabled');
  1111. },
  1112. set: function (value) {
  1113. this._setOption('twoWayBindingEnabled', value);
  1114. },
  1115. enumerable: true,
  1116. configurable: true
  1117. });
  1118. Object.defineProperty(DxDataGridComponent.prototype, "visible", {
  1119. get: /**
  1120. * Specifies whether the widget is visible.
  1121. */
  1122. function () {
  1123. return this._getOption('visible');
  1124. },
  1125. set: function (value) {
  1126. this._setOption('visible', value);
  1127. },
  1128. enumerable: true,
  1129. configurable: true
  1130. });
  1131. Object.defineProperty(DxDataGridComponent.prototype, "width", {
  1132. get: /**
  1133. * Specifies the widget's width.
  1134. */
  1135. function () {
  1136. return this._getOption('width');
  1137. },
  1138. set: function (value) {
  1139. this._setOption('width', value);
  1140. },
  1141. enumerable: true,
  1142. configurable: true
  1143. });
  1144. Object.defineProperty(DxDataGridComponent.prototype, "wordWrapEnabled", {
  1145. get: /**
  1146. * Specifies whether text that does not fit into a column should be wrapped.
  1147. */
  1148. function () {
  1149. return this._getOption('wordWrapEnabled');
  1150. },
  1151. set: function (value) {
  1152. this._setOption('wordWrapEnabled', value);
  1153. },
  1154. enumerable: true,
  1155. configurable: true
  1156. });
  1157. Object.defineProperty(DxDataGridComponent.prototype, "columnsChildren", {
  1158. get: function () {
  1159. return this._getOption('columns');
  1160. },
  1161. set: function (value) {
  1162. this.setChildren('columns', value);
  1163. },
  1164. enumerable: true,
  1165. configurable: true
  1166. });
  1167. Object.defineProperty(DxDataGridComponent.prototype, "sortByGroupSummaryInfoChildren", {
  1168. get: function () {
  1169. return this._getOption('sortByGroupSummaryInfo');
  1170. },
  1171. set: function (value) {
  1172. this.setChildren('sortByGroupSummaryInfo', value);
  1173. },
  1174. enumerable: true,
  1175. configurable: true
  1176. });
  1177. DxDataGridComponent.prototype._createInstance = function (element, options) {
  1178. return new data_grid_1.default(element, options);
  1179. };
  1180. DxDataGridComponent.prototype.ngOnDestroy = function () {
  1181. this._destroyWidget();
  1182. };
  1183. DxDataGridComponent.prototype.ngOnChanges = function (changes) {
  1184. _super.prototype.ngOnChanges.call(this, changes);
  1185. this.setupChanges('columns', changes);
  1186. this.setupChanges('dataSource', changes);
  1187. this.setupChanges('keyExpr', changes);
  1188. this.setupChanges('selectedRowKeys', changes);
  1189. this.setupChanges('sortByGroupSummaryInfo', changes);
  1190. };
  1191. DxDataGridComponent.prototype.setupChanges = function (prop, changes) {
  1192. if (!(prop in this._optionsToUpdate)) {
  1193. this._idh.setup(prop, changes);
  1194. }
  1195. };
  1196. DxDataGridComponent.prototype.ngDoCheck = function () {
  1197. this._idh.doCheck('columns');
  1198. this._idh.doCheck('dataSource');
  1199. this._idh.doCheck('keyExpr');
  1200. this._idh.doCheck('selectedRowKeys');
  1201. this._idh.doCheck('sortByGroupSummaryInfo');
  1202. this._watcherHelper.checkWatchers();
  1203. _super.prototype.ngDoCheck.call(this);
  1204. _super.prototype.clearChangedOptions.call(this);
  1205. };
  1206. DxDataGridComponent.prototype._setOption = function (name, value) {
  1207. var isSetup = this._idh.setupSingle(name, value);
  1208. var isChanged = this._idh.getChanges(name, value) !== null;
  1209. if (isSetup || isChanged) {
  1210. _super.prototype._setOption.call(this, name, value);
  1211. }
  1212. };
  1213. DxDataGridComponent.decorators = [
  1214. { type: core_1.Component, args: [{
  1215. selector: 'dx-data-grid',
  1216. template: '',
  1217. providers: [
  1218. template_host_1.DxTemplateHost,
  1219. watcher_helper_1.WatcherHelper,
  1220. nested_option_1.NestedOptionHost,
  1221. iterable_differ_helper_1.IterableDifferHelper
  1222. ]
  1223. },] },
  1224. ];
  1225. /** @nocollapse */
  1226. DxDataGridComponent.ctorParameters = function () { return [
  1227. { type: core_1.ElementRef, },
  1228. { type: core_1.NgZone, },
  1229. { type: template_host_1.DxTemplateHost, },
  1230. { type: watcher_helper_1.WatcherHelper, },
  1231. { type: iterable_differ_helper_1.IterableDifferHelper, },
  1232. { type: nested_option_1.NestedOptionHost, },
  1233. { type: platform_browser_2.TransferState, },
  1234. { type: undefined, decorators: [{ type: core_1.Inject, args: [core_1.PLATFORM_ID,] },] },
  1235. ]; };
  1236. DxDataGridComponent.propDecorators = {
  1237. "accessKey": [{ type: core_1.Input },],
  1238. "activeStateEnabled": [{ type: core_1.Input },],
  1239. "allowColumnReordering": [{ type: core_1.Input },],
  1240. "allowColumnResizing": [{ type: core_1.Input },],
  1241. "cacheEnabled": [{ type: core_1.Input },],
  1242. "cellHintEnabled": [{ type: core_1.Input },],
  1243. "columnAutoWidth": [{ type: core_1.Input },],
  1244. "columnChooser": [{ type: core_1.Input },],
  1245. "columnFixing": [{ type: core_1.Input },],
  1246. "columnHidingEnabled": [{ type: core_1.Input },],
  1247. "columnMinWidth": [{ type: core_1.Input },],
  1248. "columnResizingMode": [{ type: core_1.Input },],
  1249. "columns": [{ type: core_1.Input },],
  1250. "columnWidth": [{ type: core_1.Input },],
  1251. "customizeColumns": [{ type: core_1.Input },],
  1252. "customizeExportData": [{ type: core_1.Input },],
  1253. "dataSource": [{ type: core_1.Input },],
  1254. "dateSerializationFormat": [{ type: core_1.Input },],
  1255. "disabled": [{ type: core_1.Input },],
  1256. "editing": [{ type: core_1.Input },],
  1257. "elementAttr": [{ type: core_1.Input },],
  1258. "errorRowEnabled": [{ type: core_1.Input },],
  1259. "export": [{ type: core_1.Input },],
  1260. "filterBuilder": [{ type: core_1.Input },],
  1261. "filterBuilderPopup": [{ type: core_1.Input },],
  1262. "filterPanel": [{ type: core_1.Input },],
  1263. "filterRow": [{ type: core_1.Input },],
  1264. "filterSyncEnabled": [{ type: core_1.Input },],
  1265. "filterValue": [{ type: core_1.Input },],
  1266. "focusedColumnIndex": [{ type: core_1.Input },],
  1267. "focusedRowEnabled": [{ type: core_1.Input },],
  1268. "focusedRowIndex": [{ type: core_1.Input },],
  1269. "focusedRowKey": [{ type: core_1.Input },],
  1270. "focusStateEnabled": [{ type: core_1.Input },],
  1271. "grouping": [{ type: core_1.Input },],
  1272. "groupPanel": [{ type: core_1.Input },],
  1273. "headerFilter": [{ type: core_1.Input },],
  1274. "height": [{ type: core_1.Input },],
  1275. "highlightChanges": [{ type: core_1.Input },],
  1276. "hint": [{ type: core_1.Input },],
  1277. "hoverStateEnabled": [{ type: core_1.Input },],
  1278. "keyboardNavigation": [{ type: core_1.Input },],
  1279. "keyExpr": [{ type: core_1.Input },],
  1280. "loadPanel": [{ type: core_1.Input },],
  1281. "masterDetail": [{ type: core_1.Input },],
  1282. "noDataText": [{ type: core_1.Input },],
  1283. "pager": [{ type: core_1.Input },],
  1284. "paging": [{ type: core_1.Input },],
  1285. "remoteOperations": [{ type: core_1.Input },],
  1286. "renderAsync": [{ type: core_1.Input },],
  1287. "repaintChangesOnly": [{ type: core_1.Input },],
  1288. "rowAlternationEnabled": [{ type: core_1.Input },],
  1289. "rowTemplate": [{ type: core_1.Input },],
  1290. "rtlEnabled": [{ type: core_1.Input },],
  1291. "scrolling": [{ type: core_1.Input },],
  1292. "searchPanel": [{ type: core_1.Input },],
  1293. "selectedRowKeys": [{ type: core_1.Input },],
  1294. "selection": [{ type: core_1.Input },],
  1295. "selectionFilter": [{ type: core_1.Input },],
  1296. "showBorders": [{ type: core_1.Input },],
  1297. "showColumnHeaders": [{ type: core_1.Input },],
  1298. "showColumnLines": [{ type: core_1.Input },],
  1299. "showRowLines": [{ type: core_1.Input },],
  1300. "sortByGroupSummaryInfo": [{ type: core_1.Input },],
  1301. "sorting": [{ type: core_1.Input },],
  1302. "stateStoring": [{ type: core_1.Input },],
  1303. "summary": [{ type: core_1.Input },],
  1304. "tabIndex": [{ type: core_1.Input },],
  1305. "twoWayBindingEnabled": [{ type: core_1.Input },],
  1306. "visible": [{ type: core_1.Input },],
  1307. "width": [{ type: core_1.Input },],
  1308. "wordWrapEnabled": [{ type: core_1.Input },],
  1309. "onAdaptiveDetailRowPreparing": [{ type: core_1.Output },],
  1310. "onCellClick": [{ type: core_1.Output },],
  1311. "onCellDblClick": [{ type: core_1.Output },],
  1312. "onCellHoverChanged": [{ type: core_1.Output },],
  1313. "onCellPrepared": [{ type: core_1.Output },],
  1314. "onContentReady": [{ type: core_1.Output },],
  1315. "onContextMenuPreparing": [{ type: core_1.Output },],
  1316. "onDataErrorOccurred": [{ type: core_1.Output },],
  1317. "onDisposing": [{ type: core_1.Output },],
  1318. "onEditingStart": [{ type: core_1.Output },],
  1319. "onEditorPrepared": [{ type: core_1.Output },],
  1320. "onEditorPreparing": [{ type: core_1.Output },],
  1321. "onExported": [{ type: core_1.Output },],
  1322. "onExporting": [{ type: core_1.Output },],
  1323. "onFileSaving": [{ type: core_1.Output },],
  1324. "onFocusedCellChanged": [{ type: core_1.Output },],
  1325. "onFocusedCellChanging": [{ type: core_1.Output },],
  1326. "onFocusedRowChanged": [{ type: core_1.Output },],
  1327. "onFocusedRowChanging": [{ type: core_1.Output },],
  1328. "onInitialized": [{ type: core_1.Output },],
  1329. "onInitNewRow": [{ type: core_1.Output },],
  1330. "onKeyDown": [{ type: core_1.Output },],
  1331. "onOptionChanged": [{ type: core_1.Output },],
  1332. "onRowClick": [{ type: core_1.Output },],
  1333. "onRowCollapsed": [{ type: core_1.Output },],
  1334. "onRowCollapsing": [{ type: core_1.Output },],
  1335. "onRowDblClick": [{ type: core_1.Output },],
  1336. "onRowExpanded": [{ type: core_1.Output },],
  1337. "onRowExpanding": [{ type: core_1.Output },],
  1338. "onRowInserted": [{ type: core_1.Output },],
  1339. "onRowInserting": [{ type: core_1.Output },],
  1340. "onRowPrepared": [{ type: core_1.Output },],
  1341. "onRowRemoved": [{ type: core_1.Output },],
  1342. "onRowRemoving": [{ type: core_1.Output },],
  1343. "onRowUpdated": [{ type: core_1.Output },],
  1344. "onRowUpdating": [{ type: core_1.Output },],
  1345. "onRowValidating": [{ type: core_1.Output },],
  1346. "onSelectionChanged": [{ type: core_1.Output },],
  1347. "onToolbarPreparing": [{ type: core_1.Output },],
  1348. "accessKeyChange": [{ type: core_1.Output },],
  1349. "activeStateEnabledChange": [{ type: core_1.Output },],
  1350. "allowColumnReorderingChange": [{ type: core_1.Output },],
  1351. "allowColumnResizingChange": [{ type: core_1.Output },],
  1352. "cacheEnabledChange": [{ type: core_1.Output },],
  1353. "cellHintEnabledChange": [{ type: core_1.Output },],
  1354. "columnAutoWidthChange": [{ type: core_1.Output },],
  1355. "columnChooserChange": [{ type: core_1.Output },],
  1356. "columnFixingChange": [{ type: core_1.Output },],
  1357. "columnHidingEnabledChange": [{ type: core_1.Output },],
  1358. "columnMinWidthChange": [{ type: core_1.Output },],
  1359. "columnResizingModeChange": [{ type: core_1.Output },],
  1360. "columnsChange": [{ type: core_1.Output },],
  1361. "columnWidthChange": [{ type: core_1.Output },],
  1362. "customizeColumnsChange": [{ type: core_1.Output },],
  1363. "customizeExportDataChange": [{ type: core_1.Output },],
  1364. "dataSourceChange": [{ type: core_1.Output },],
  1365. "dateSerializationFormatChange": [{ type: core_1.Output },],
  1366. "disabledChange": [{ type: core_1.Output },],
  1367. "editingChange": [{ type: core_1.Output },],
  1368. "elementAttrChange": [{ type: core_1.Output },],
  1369. "errorRowEnabledChange": [{ type: core_1.Output },],
  1370. "exportChange": [{ type: core_1.Output },],
  1371. "filterBuilderChange": [{ type: core_1.Output },],
  1372. "filterBuilderPopupChange": [{ type: core_1.Output },],
  1373. "filterPanelChange": [{ type: core_1.Output },],
  1374. "filterRowChange": [{ type: core_1.Output },],
  1375. "filterSyncEnabledChange": [{ type: core_1.Output },],
  1376. "filterValueChange": [{ type: core_1.Output },],
  1377. "focusedColumnIndexChange": [{ type: core_1.Output },],
  1378. "focusedRowEnabledChange": [{ type: core_1.Output },],
  1379. "focusedRowIndexChange": [{ type: core_1.Output },],
  1380. "focusedRowKeyChange": [{ type: core_1.Output },],
  1381. "focusStateEnabledChange": [{ type: core_1.Output },],
  1382. "groupingChange": [{ type: core_1.Output },],
  1383. "groupPanelChange": [{ type: core_1.Output },],
  1384. "headerFilterChange": [{ type: core_1.Output },],
  1385. "heightChange": [{ type: core_1.Output },],
  1386. "highlightChangesChange": [{ type: core_1.Output },],
  1387. "hintChange": [{ type: core_1.Output },],
  1388. "hoverStateEnabledChange": [{ type: core_1.Output },],
  1389. "keyboardNavigationChange": [{ type: core_1.Output },],
  1390. "keyExprChange": [{ type: core_1.Output },],
  1391. "loadPanelChange": [{ type: core_1.Output },],
  1392. "masterDetailChange": [{ type: core_1.Output },],
  1393. "noDataTextChange": [{ type: core_1.Output },],
  1394. "pagerChange": [{ type: core_1.Output },],
  1395. "pagingChange": [{ type: core_1.Output },],
  1396. "remoteOperationsChange": [{ type: core_1.Output },],
  1397. "renderAsyncChange": [{ type: core_1.Output },],
  1398. "repaintChangesOnlyChange": [{ type: core_1.Output },],
  1399. "rowAlternationEnabledChange": [{ type: core_1.Output },],
  1400. "rowTemplateChange": [{ type: core_1.Output },],
  1401. "rtlEnabledChange": [{ type: core_1.Output },],
  1402. "scrollingChange": [{ type: core_1.Output },],
  1403. "searchPanelChange": [{ type: core_1.Output },],
  1404. "selectedRowKeysChange": [{ type: core_1.Output },],
  1405. "selectionChange": [{ type: core_1.Output },],
  1406. "selectionFilterChange": [{ type: core_1.Output },],
  1407. "showBordersChange": [{ type: core_1.Output },],
  1408. "showColumnHeadersChange": [{ type: core_1.Output },],
  1409. "showColumnLinesChange": [{ type: core_1.Output },],
  1410. "showRowLinesChange": [{ type: core_1.Output },],
  1411. "sortByGroupSummaryInfoChange": [{ type: core_1.Output },],
  1412. "sortingChange": [{ type: core_1.Output },],
  1413. "stateStoringChange": [{ type: core_1.Output },],
  1414. "summaryChange": [{ type: core_1.Output },],
  1415. "tabIndexChange": [{ type: core_1.Output },],
  1416. "twoWayBindingEnabledChange": [{ type: core_1.Output },],
  1417. "visibleChange": [{ type: core_1.Output },],
  1418. "widthChange": [{ type: core_1.Output },],
  1419. "wordWrapEnabledChange": [{ type: core_1.Output },],
  1420. "columnsChildren": [{ type: core_1.ContentChildren, args: [column_dxi_2.DxiColumnComponent,] },],
  1421. "sortByGroupSummaryInfoChildren": [{ type: core_1.ContentChildren, args: [sort_by_group_summary_info_dxi_2.DxiSortByGroupSummaryInfoComponent,] },],
  1422. };
  1423. return DxDataGridComponent;
  1424. }(component_1.DxComponent));
  1425. exports.DxDataGridComponent = DxDataGridComponent;
  1426. var DxDataGridModule = (function () {
  1427. function DxDataGridModule() {
  1428. }
  1429. DxDataGridModule.decorators = [
  1430. { type: core_1.NgModule, args: [{
  1431. imports: [
  1432. column_chooser_1.DxoColumnChooserModule,
  1433. column_fixing_1.DxoColumnFixingModule,
  1434. texts_1.DxoTextsModule,
  1435. column_dxi_1.DxiColumnModule,
  1436. button_dxi_1.DxiButtonModule,
  1437. header_filter_1.DxoHeaderFilterModule,
  1438. lookup_1.DxoLookupModule,
  1439. format_1.DxoFormatModule,
  1440. form_item_1.DxoFormItemModule,
  1441. label_1.DxoLabelModule,
  1442. validation_rule_dxi_1.DxiValidationRuleModule,
  1443. editing_1.DxoEditingModule,
  1444. form_1.DxoFormModule,
  1445. col_count_by_screen_1.DxoColCountByScreenModule,
  1446. item_dxi_1.DxiItemModule,
  1447. tab_panel_options_1.DxoTabPanelOptionsModule,
  1448. tab_dxi_1.DxiTabModule,
  1449. button_options_1.DxoButtonOptionsModule,
  1450. popup_1.DxoPopupModule,
  1451. animation_1.DxoAnimationModule,
  1452. hide_1.DxoHideModule,
  1453. show_1.DxoShowModule,
  1454. position_1.DxoPositionModule,
  1455. at_1.DxoAtModule,
  1456. boundary_offset_1.DxoBoundaryOffsetModule,
  1457. collision_1.DxoCollisionModule,
  1458. my_1.DxoMyModule,
  1459. offset_1.DxoOffsetModule,
  1460. toolbar_item_dxi_1.DxiToolbarItemModule,
  1461. export_1.DxoExportModule,
  1462. filter_builder_1.DxoFilterBuilderModule,
  1463. custom_operation_dxi_1.DxiCustomOperationModule,
  1464. field_dxi_1.DxiFieldModule,
  1465. filter_operation_descriptions_1.DxoFilterOperationDescriptionsModule,
  1466. group_operation_descriptions_1.DxoGroupOperationDescriptionsModule,
  1467. filter_builder_popup_1.DxoFilterBuilderPopupModule,
  1468. filter_panel_1.DxoFilterPanelModule,
  1469. filter_row_1.DxoFilterRowModule,
  1470. operation_descriptions_1.DxoOperationDescriptionsModule,
  1471. grouping_1.DxoGroupingModule,
  1472. group_panel_1.DxoGroupPanelModule,
  1473. keyboard_navigation_1.DxoKeyboardNavigationModule,
  1474. load_panel_1.DxoLoadPanelModule,
  1475. master_detail_1.DxoMasterDetailModule,
  1476. pager_1.DxoPagerModule,
  1477. paging_1.DxoPagingModule,
  1478. remote_operations_1.DxoRemoteOperationsModule,
  1479. scrolling_1.DxoScrollingModule,
  1480. search_panel_1.DxoSearchPanelModule,
  1481. selection_1.DxoSelectionModule,
  1482. sort_by_group_summary_info_dxi_1.DxiSortByGroupSummaryInfoModule,
  1483. sorting_1.DxoSortingModule,
  1484. state_storing_1.DxoStateStoringModule,
  1485. summary_1.DxoSummaryModule,
  1486. group_item_dxi_1.DxiGroupItemModule,
  1487. value_format_1.DxoValueFormatModule,
  1488. total_item_dxi_1.DxiTotalItemModule,
  1489. integration_1.DxIntegrationModule,
  1490. template_1.DxTemplateModule,
  1491. platform_browser_1.BrowserTransferStateModule
  1492. ],
  1493. declarations: [
  1494. DxDataGridComponent
  1495. ],
  1496. exports: [
  1497. DxDataGridComponent,
  1498. column_chooser_1.DxoColumnChooserModule,
  1499. column_fixing_1.DxoColumnFixingModule,
  1500. texts_1.DxoTextsModule,
  1501. column_dxi_1.DxiColumnModule,
  1502. button_dxi_1.DxiButtonModule,
  1503. header_filter_1.DxoHeaderFilterModule,
  1504. lookup_1.DxoLookupModule,
  1505. format_1.DxoFormatModule,
  1506. form_item_1.DxoFormItemModule,
  1507. label_1.DxoLabelModule,
  1508. validation_rule_dxi_1.DxiValidationRuleModule,
  1509. editing_1.DxoEditingModule,
  1510. form_1.DxoFormModule,
  1511. col_count_by_screen_1.DxoColCountByScreenModule,
  1512. item_dxi_1.DxiItemModule,
  1513. tab_panel_options_1.DxoTabPanelOptionsModule,
  1514. tab_dxi_1.DxiTabModule,
  1515. button_options_1.DxoButtonOptionsModule,
  1516. popup_1.DxoPopupModule,
  1517. animation_1.DxoAnimationModule,
  1518. hide_1.DxoHideModule,
  1519. show_1.DxoShowModule,
  1520. position_1.DxoPositionModule,
  1521. at_1.DxoAtModule,
  1522. boundary_offset_1.DxoBoundaryOffsetModule,
  1523. collision_1.DxoCollisionModule,
  1524. my_1.DxoMyModule,
  1525. offset_1.DxoOffsetModule,
  1526. toolbar_item_dxi_1.DxiToolbarItemModule,
  1527. export_1.DxoExportModule,
  1528. filter_builder_1.DxoFilterBuilderModule,
  1529. custom_operation_dxi_1.DxiCustomOperationModule,
  1530. field_dxi_1.DxiFieldModule,
  1531. filter_operation_descriptions_1.DxoFilterOperationDescriptionsModule,
  1532. group_operation_descriptions_1.DxoGroupOperationDescriptionsModule,
  1533. filter_builder_popup_1.DxoFilterBuilderPopupModule,
  1534. filter_panel_1.DxoFilterPanelModule,
  1535. filter_row_1.DxoFilterRowModule,
  1536. operation_descriptions_1.DxoOperationDescriptionsModule,
  1537. grouping_1.DxoGroupingModule,
  1538. group_panel_1.DxoGroupPanelModule,
  1539. keyboard_navigation_1.DxoKeyboardNavigationModule,
  1540. load_panel_1.DxoLoadPanelModule,
  1541. master_detail_1.DxoMasterDetailModule,
  1542. pager_1.DxoPagerModule,
  1543. paging_1.DxoPagingModule,
  1544. remote_operations_1.DxoRemoteOperationsModule,
  1545. scrolling_1.DxoScrollingModule,
  1546. search_panel_1.DxoSearchPanelModule,
  1547. selection_1.DxoSelectionModule,
  1548. sort_by_group_summary_info_dxi_1.DxiSortByGroupSummaryInfoModule,
  1549. sorting_1.DxoSortingModule,
  1550. state_storing_1.DxoStateStoringModule,
  1551. summary_1.DxoSummaryModule,
  1552. group_item_dxi_1.DxiGroupItemModule,
  1553. value_format_1.DxoValueFormatModule,
  1554. total_item_dxi_1.DxiTotalItemModule,
  1555. template_1.DxTemplateModule
  1556. ]
  1557. },] },
  1558. ];
  1559. return DxDataGridModule;
  1560. }());
  1561. exports.DxDataGridModule = DxDataGridModule;
  1562. //# sourceMappingURL=data-grid.js.map