data-grid-column-dxi.js 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664
  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 nested_option_1 = require("../../../core/nested-option");
  26. var DxiDataGridColumn = (function (_super) {
  27. __extends(DxiDataGridColumn, _super);
  28. function DxiDataGridColumn() {
  29. return _super !== null && _super.apply(this, arguments) || this;
  30. }
  31. Object.defineProperty(DxiDataGridColumn.prototype, "alignment", {
  32. get: function () {
  33. return this._getOption('alignment');
  34. },
  35. set: function (value) {
  36. this._setOption('alignment', value);
  37. },
  38. enumerable: true,
  39. configurable: true
  40. });
  41. Object.defineProperty(DxiDataGridColumn.prototype, "allowEditing", {
  42. get: function () {
  43. return this._getOption('allowEditing');
  44. },
  45. set: function (value) {
  46. this._setOption('allowEditing', value);
  47. },
  48. enumerable: true,
  49. configurable: true
  50. });
  51. Object.defineProperty(DxiDataGridColumn.prototype, "allowExporting", {
  52. get: function () {
  53. return this._getOption('allowExporting');
  54. },
  55. set: function (value) {
  56. this._setOption('allowExporting', value);
  57. },
  58. enumerable: true,
  59. configurable: true
  60. });
  61. Object.defineProperty(DxiDataGridColumn.prototype, "allowFiltering", {
  62. get: function () {
  63. return this._getOption('allowFiltering');
  64. },
  65. set: function (value) {
  66. this._setOption('allowFiltering', value);
  67. },
  68. enumerable: true,
  69. configurable: true
  70. });
  71. Object.defineProperty(DxiDataGridColumn.prototype, "allowFixing", {
  72. get: function () {
  73. return this._getOption('allowFixing');
  74. },
  75. set: function (value) {
  76. this._setOption('allowFixing', value);
  77. },
  78. enumerable: true,
  79. configurable: true
  80. });
  81. Object.defineProperty(DxiDataGridColumn.prototype, "allowGrouping", {
  82. get: function () {
  83. return this._getOption('allowGrouping');
  84. },
  85. set: function (value) {
  86. this._setOption('allowGrouping', value);
  87. },
  88. enumerable: true,
  89. configurable: true
  90. });
  91. Object.defineProperty(DxiDataGridColumn.prototype, "allowHeaderFiltering", {
  92. get: function () {
  93. return this._getOption('allowHeaderFiltering');
  94. },
  95. set: function (value) {
  96. this._setOption('allowHeaderFiltering', value);
  97. },
  98. enumerable: true,
  99. configurable: true
  100. });
  101. Object.defineProperty(DxiDataGridColumn.prototype, "allowHiding", {
  102. get: function () {
  103. return this._getOption('allowHiding');
  104. },
  105. set: function (value) {
  106. this._setOption('allowHiding', value);
  107. },
  108. enumerable: true,
  109. configurable: true
  110. });
  111. Object.defineProperty(DxiDataGridColumn.prototype, "allowReordering", {
  112. get: function () {
  113. return this._getOption('allowReordering');
  114. },
  115. set: function (value) {
  116. this._setOption('allowReordering', value);
  117. },
  118. enumerable: true,
  119. configurable: true
  120. });
  121. Object.defineProperty(DxiDataGridColumn.prototype, "allowResizing", {
  122. get: function () {
  123. return this._getOption('allowResizing');
  124. },
  125. set: function (value) {
  126. this._setOption('allowResizing', value);
  127. },
  128. enumerable: true,
  129. configurable: true
  130. });
  131. Object.defineProperty(DxiDataGridColumn.prototype, "allowSearch", {
  132. get: function () {
  133. return this._getOption('allowSearch');
  134. },
  135. set: function (value) {
  136. this._setOption('allowSearch', value);
  137. },
  138. enumerable: true,
  139. configurable: true
  140. });
  141. Object.defineProperty(DxiDataGridColumn.prototype, "allowSorting", {
  142. get: function () {
  143. return this._getOption('allowSorting');
  144. },
  145. set: function (value) {
  146. this._setOption('allowSorting', value);
  147. },
  148. enumerable: true,
  149. configurable: true
  150. });
  151. Object.defineProperty(DxiDataGridColumn.prototype, "autoExpandGroup", {
  152. get: function () {
  153. return this._getOption('autoExpandGroup');
  154. },
  155. set: function (value) {
  156. this._setOption('autoExpandGroup', value);
  157. },
  158. enumerable: true,
  159. configurable: true
  160. });
  161. Object.defineProperty(DxiDataGridColumn.prototype, "buttons", {
  162. get: function () {
  163. return this._getOption('buttons');
  164. },
  165. set: function (value) {
  166. this._setOption('buttons', value);
  167. },
  168. enumerable: true,
  169. configurable: true
  170. });
  171. Object.defineProperty(DxiDataGridColumn.prototype, "calculateCellValue", {
  172. get: function () {
  173. return this._getOption('calculateCellValue');
  174. },
  175. set: function (value) {
  176. this._setOption('calculateCellValue', value);
  177. },
  178. enumerable: true,
  179. configurable: true
  180. });
  181. Object.defineProperty(DxiDataGridColumn.prototype, "calculateDisplayValue", {
  182. get: function () {
  183. return this._getOption('calculateDisplayValue');
  184. },
  185. set: function (value) {
  186. this._setOption('calculateDisplayValue', value);
  187. },
  188. enumerable: true,
  189. configurable: true
  190. });
  191. Object.defineProperty(DxiDataGridColumn.prototype, "calculateFilterExpression", {
  192. get: function () {
  193. return this._getOption('calculateFilterExpression');
  194. },
  195. set: function (value) {
  196. this._setOption('calculateFilterExpression', value);
  197. },
  198. enumerable: true,
  199. configurable: true
  200. });
  201. Object.defineProperty(DxiDataGridColumn.prototype, "calculateGroupValue", {
  202. get: function () {
  203. return this._getOption('calculateGroupValue');
  204. },
  205. set: function (value) {
  206. this._setOption('calculateGroupValue', value);
  207. },
  208. enumerable: true,
  209. configurable: true
  210. });
  211. Object.defineProperty(DxiDataGridColumn.prototype, "calculateSortValue", {
  212. get: function () {
  213. return this._getOption('calculateSortValue');
  214. },
  215. set: function (value) {
  216. this._setOption('calculateSortValue', value);
  217. },
  218. enumerable: true,
  219. configurable: true
  220. });
  221. Object.defineProperty(DxiDataGridColumn.prototype, "caption", {
  222. get: function () {
  223. return this._getOption('caption');
  224. },
  225. set: function (value) {
  226. this._setOption('caption', value);
  227. },
  228. enumerable: true,
  229. configurable: true
  230. });
  231. Object.defineProperty(DxiDataGridColumn.prototype, "cellTemplate", {
  232. get: function () {
  233. return this._getOption('cellTemplate');
  234. },
  235. set: function (value) {
  236. this._setOption('cellTemplate', value);
  237. },
  238. enumerable: true,
  239. configurable: true
  240. });
  241. Object.defineProperty(DxiDataGridColumn.prototype, "columns", {
  242. get: function () {
  243. return this._getOption('columns');
  244. },
  245. set: function (value) {
  246. this._setOption('columns', value);
  247. },
  248. enumerable: true,
  249. configurable: true
  250. });
  251. Object.defineProperty(DxiDataGridColumn.prototype, "cssClass", {
  252. get: function () {
  253. return this._getOption('cssClass');
  254. },
  255. set: function (value) {
  256. this._setOption('cssClass', value);
  257. },
  258. enumerable: true,
  259. configurable: true
  260. });
  261. Object.defineProperty(DxiDataGridColumn.prototype, "customizeText", {
  262. get: function () {
  263. return this._getOption('customizeText');
  264. },
  265. set: function (value) {
  266. this._setOption('customizeText', value);
  267. },
  268. enumerable: true,
  269. configurable: true
  270. });
  271. Object.defineProperty(DxiDataGridColumn.prototype, "dataField", {
  272. get: function () {
  273. return this._getOption('dataField');
  274. },
  275. set: function (value) {
  276. this._setOption('dataField', value);
  277. },
  278. enumerable: true,
  279. configurable: true
  280. });
  281. Object.defineProperty(DxiDataGridColumn.prototype, "dataType", {
  282. get: function () {
  283. return this._getOption('dataType');
  284. },
  285. set: function (value) {
  286. this._setOption('dataType', value);
  287. },
  288. enumerable: true,
  289. configurable: true
  290. });
  291. Object.defineProperty(DxiDataGridColumn.prototype, "editCellTemplate", {
  292. get: function () {
  293. return this._getOption('editCellTemplate');
  294. },
  295. set: function (value) {
  296. this._setOption('editCellTemplate', value);
  297. },
  298. enumerable: true,
  299. configurable: true
  300. });
  301. Object.defineProperty(DxiDataGridColumn.prototype, "editorOptions", {
  302. get: function () {
  303. return this._getOption('editorOptions');
  304. },
  305. set: function (value) {
  306. this._setOption('editorOptions', value);
  307. },
  308. enumerable: true,
  309. configurable: true
  310. });
  311. Object.defineProperty(DxiDataGridColumn.prototype, "encodeHtml", {
  312. get: function () {
  313. return this._getOption('encodeHtml');
  314. },
  315. set: function (value) {
  316. this._setOption('encodeHtml', value);
  317. },
  318. enumerable: true,
  319. configurable: true
  320. });
  321. Object.defineProperty(DxiDataGridColumn.prototype, "falseText", {
  322. get: function () {
  323. return this._getOption('falseText');
  324. },
  325. set: function (value) {
  326. this._setOption('falseText', value);
  327. },
  328. enumerable: true,
  329. configurable: true
  330. });
  331. Object.defineProperty(DxiDataGridColumn.prototype, "filterOperations", {
  332. get: function () {
  333. return this._getOption('filterOperations');
  334. },
  335. set: function (value) {
  336. this._setOption('filterOperations', value);
  337. },
  338. enumerable: true,
  339. configurable: true
  340. });
  341. Object.defineProperty(DxiDataGridColumn.prototype, "filterType", {
  342. get: function () {
  343. return this._getOption('filterType');
  344. },
  345. set: function (value) {
  346. this._setOption('filterType', value);
  347. },
  348. enumerable: true,
  349. configurable: true
  350. });
  351. Object.defineProperty(DxiDataGridColumn.prototype, "filterValue", {
  352. get: function () {
  353. return this._getOption('filterValue');
  354. },
  355. set: function (value) {
  356. this._setOption('filterValue', value);
  357. },
  358. enumerable: true,
  359. configurable: true
  360. });
  361. Object.defineProperty(DxiDataGridColumn.prototype, "filterValues", {
  362. get: function () {
  363. return this._getOption('filterValues');
  364. },
  365. set: function (value) {
  366. this._setOption('filterValues', value);
  367. },
  368. enumerable: true,
  369. configurable: true
  370. });
  371. Object.defineProperty(DxiDataGridColumn.prototype, "fixed", {
  372. get: function () {
  373. return this._getOption('fixed');
  374. },
  375. set: function (value) {
  376. this._setOption('fixed', value);
  377. },
  378. enumerable: true,
  379. configurable: true
  380. });
  381. Object.defineProperty(DxiDataGridColumn.prototype, "fixedPosition", {
  382. get: function () {
  383. return this._getOption('fixedPosition');
  384. },
  385. set: function (value) {
  386. this._setOption('fixedPosition', value);
  387. },
  388. enumerable: true,
  389. configurable: true
  390. });
  391. Object.defineProperty(DxiDataGridColumn.prototype, "format", {
  392. get: function () {
  393. return this._getOption('format');
  394. },
  395. set: function (value) {
  396. this._setOption('format', value);
  397. },
  398. enumerable: true,
  399. configurable: true
  400. });
  401. Object.defineProperty(DxiDataGridColumn.prototype, "formItem", {
  402. get: function () {
  403. return this._getOption('formItem');
  404. },
  405. set: function (value) {
  406. this._setOption('formItem', value);
  407. },
  408. enumerable: true,
  409. configurable: true
  410. });
  411. Object.defineProperty(DxiDataGridColumn.prototype, "groupCellTemplate", {
  412. get: function () {
  413. return this._getOption('groupCellTemplate');
  414. },
  415. set: function (value) {
  416. this._setOption('groupCellTemplate', value);
  417. },
  418. enumerable: true,
  419. configurable: true
  420. });
  421. Object.defineProperty(DxiDataGridColumn.prototype, "groupIndex", {
  422. get: function () {
  423. return this._getOption('groupIndex');
  424. },
  425. set: function (value) {
  426. this._setOption('groupIndex', value);
  427. },
  428. enumerable: true,
  429. configurable: true
  430. });
  431. Object.defineProperty(DxiDataGridColumn.prototype, "headerCellTemplate", {
  432. get: function () {
  433. return this._getOption('headerCellTemplate');
  434. },
  435. set: function (value) {
  436. this._setOption('headerCellTemplate', value);
  437. },
  438. enumerable: true,
  439. configurable: true
  440. });
  441. Object.defineProperty(DxiDataGridColumn.prototype, "headerFilter", {
  442. get: function () {
  443. return this._getOption('headerFilter');
  444. },
  445. set: function (value) {
  446. this._setOption('headerFilter', value);
  447. },
  448. enumerable: true,
  449. configurable: true
  450. });
  451. Object.defineProperty(DxiDataGridColumn.prototype, "hidingPriority", {
  452. get: function () {
  453. return this._getOption('hidingPriority');
  454. },
  455. set: function (value) {
  456. this._setOption('hidingPriority', value);
  457. },
  458. enumerable: true,
  459. configurable: true
  460. });
  461. Object.defineProperty(DxiDataGridColumn.prototype, "isBand", {
  462. get: function () {
  463. return this._getOption('isBand');
  464. },
  465. set: function (value) {
  466. this._setOption('isBand', value);
  467. },
  468. enumerable: true,
  469. configurable: true
  470. });
  471. Object.defineProperty(DxiDataGridColumn.prototype, "lookup", {
  472. get: function () {
  473. return this._getOption('lookup');
  474. },
  475. set: function (value) {
  476. this._setOption('lookup', value);
  477. },
  478. enumerable: true,
  479. configurable: true
  480. });
  481. Object.defineProperty(DxiDataGridColumn.prototype, "minWidth", {
  482. get: function () {
  483. return this._getOption('minWidth');
  484. },
  485. set: function (value) {
  486. this._setOption('minWidth', value);
  487. },
  488. enumerable: true,
  489. configurable: true
  490. });
  491. Object.defineProperty(DxiDataGridColumn.prototype, "name", {
  492. get: function () {
  493. return this._getOption('name');
  494. },
  495. set: function (value) {
  496. this._setOption('name', value);
  497. },
  498. enumerable: true,
  499. configurable: true
  500. });
  501. Object.defineProperty(DxiDataGridColumn.prototype, "ownerBand", {
  502. get: function () {
  503. return this._getOption('ownerBand');
  504. },
  505. set: function (value) {
  506. this._setOption('ownerBand', value);
  507. },
  508. enumerable: true,
  509. configurable: true
  510. });
  511. Object.defineProperty(DxiDataGridColumn.prototype, "renderAsync", {
  512. get: function () {
  513. return this._getOption('renderAsync');
  514. },
  515. set: function (value) {
  516. this._setOption('renderAsync', value);
  517. },
  518. enumerable: true,
  519. configurable: true
  520. });
  521. Object.defineProperty(DxiDataGridColumn.prototype, "selectedFilterOperation", {
  522. get: function () {
  523. return this._getOption('selectedFilterOperation');
  524. },
  525. set: function (value) {
  526. this._setOption('selectedFilterOperation', value);
  527. },
  528. enumerable: true,
  529. configurable: true
  530. });
  531. Object.defineProperty(DxiDataGridColumn.prototype, "setCellValue", {
  532. get: function () {
  533. return this._getOption('setCellValue');
  534. },
  535. set: function (value) {
  536. this._setOption('setCellValue', value);
  537. },
  538. enumerable: true,
  539. configurable: true
  540. });
  541. Object.defineProperty(DxiDataGridColumn.prototype, "showEditorAlways", {
  542. get: function () {
  543. return this._getOption('showEditorAlways');
  544. },
  545. set: function (value) {
  546. this._setOption('showEditorAlways', value);
  547. },
  548. enumerable: true,
  549. configurable: true
  550. });
  551. Object.defineProperty(DxiDataGridColumn.prototype, "showInColumnChooser", {
  552. get: function () {
  553. return this._getOption('showInColumnChooser');
  554. },
  555. set: function (value) {
  556. this._setOption('showInColumnChooser', value);
  557. },
  558. enumerable: true,
  559. configurable: true
  560. });
  561. Object.defineProperty(DxiDataGridColumn.prototype, "showWhenGrouped", {
  562. get: function () {
  563. return this._getOption('showWhenGrouped');
  564. },
  565. set: function (value) {
  566. this._setOption('showWhenGrouped', value);
  567. },
  568. enumerable: true,
  569. configurable: true
  570. });
  571. Object.defineProperty(DxiDataGridColumn.prototype, "sortIndex", {
  572. get: function () {
  573. return this._getOption('sortIndex');
  574. },
  575. set: function (value) {
  576. this._setOption('sortIndex', value);
  577. },
  578. enumerable: true,
  579. configurable: true
  580. });
  581. Object.defineProperty(DxiDataGridColumn.prototype, "sortingMethod", {
  582. get: function () {
  583. return this._getOption('sortingMethod');
  584. },
  585. set: function (value) {
  586. this._setOption('sortingMethod', value);
  587. },
  588. enumerable: true,
  589. configurable: true
  590. });
  591. Object.defineProperty(DxiDataGridColumn.prototype, "sortOrder", {
  592. get: function () {
  593. return this._getOption('sortOrder');
  594. },
  595. set: function (value) {
  596. this._setOption('sortOrder', value);
  597. },
  598. enumerable: true,
  599. configurable: true
  600. });
  601. Object.defineProperty(DxiDataGridColumn.prototype, "trueText", {
  602. get: function () {
  603. return this._getOption('trueText');
  604. },
  605. set: function (value) {
  606. this._setOption('trueText', value);
  607. },
  608. enumerable: true,
  609. configurable: true
  610. });
  611. Object.defineProperty(DxiDataGridColumn.prototype, "type", {
  612. get: function () {
  613. return this._getOption('type');
  614. },
  615. set: function (value) {
  616. this._setOption('type', value);
  617. },
  618. enumerable: true,
  619. configurable: true
  620. });
  621. Object.defineProperty(DxiDataGridColumn.prototype, "validationRules", {
  622. get: function () {
  623. return this._getOption('validationRules');
  624. },
  625. set: function (value) {
  626. this._setOption('validationRules', value);
  627. },
  628. enumerable: true,
  629. configurable: true
  630. });
  631. Object.defineProperty(DxiDataGridColumn.prototype, "visible", {
  632. get: function () {
  633. return this._getOption('visible');
  634. },
  635. set: function (value) {
  636. this._setOption('visible', value);
  637. },
  638. enumerable: true,
  639. configurable: true
  640. });
  641. Object.defineProperty(DxiDataGridColumn.prototype, "visibleIndex", {
  642. get: function () {
  643. return this._getOption('visibleIndex');
  644. },
  645. set: function (value) {
  646. this._setOption('visibleIndex', value);
  647. },
  648. enumerable: true,
  649. configurable: true
  650. });
  651. Object.defineProperty(DxiDataGridColumn.prototype, "width", {
  652. get: function () {
  653. return this._getOption('width');
  654. },
  655. set: function (value) {
  656. this._setOption('width', value);
  657. },
  658. enumerable: true,
  659. configurable: true
  660. });
  661. return DxiDataGridColumn;
  662. }(nested_option_1.CollectionNestedOption));
  663. exports.DxiDataGridColumn = DxiDataGridColumn;
  664. //# sourceMappingURL=data-grid-column-dxi.js.map