column-dxi.js 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  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 core_1 = require("@angular/core");
  26. var nested_option_1 = require("../../core/nested-option");
  27. var data_grid_column_dxi_1 = require("./base/data-grid-column-dxi");
  28. var button_dxi_1 = require("./button-dxi");
  29. var validation_rule_dxi_1 = require("./validation-rule-dxi");
  30. var DxiColumnComponent = (function (_super) {
  31. __extends(DxiColumnComponent, _super);
  32. function DxiColumnComponent(parentOptionHost, optionHost) {
  33. var _this = _super.call(this) || this;
  34. _this._createEventEmitters([
  35. { emit: 'filterValueChange' },
  36. { emit: 'filterValuesChange' },
  37. { emit: 'groupIndexChange' },
  38. { emit: 'selectedFilterOperationChange' },
  39. { emit: 'sortIndexChange' },
  40. { emit: 'sortOrderChange' },
  41. { emit: 'visibleChange' },
  42. { emit: 'visibleIndexChange' }
  43. ]);
  44. parentOptionHost.setNestedOption(_this);
  45. optionHost.setHost(_this, _this._fullOptionPath.bind(_this));
  46. return _this;
  47. }
  48. Object.defineProperty(DxiColumnComponent.prototype, "_optionPath", {
  49. get: function () {
  50. return 'columns';
  51. },
  52. enumerable: true,
  53. configurable: true
  54. });
  55. Object.defineProperty(DxiColumnComponent.prototype, "buttonsChildren", {
  56. get: function () {
  57. return this._getOption('buttons');
  58. },
  59. set: function (value) {
  60. this.setChildren('buttons', value);
  61. },
  62. enumerable: true,
  63. configurable: true
  64. });
  65. Object.defineProperty(DxiColumnComponent.prototype, "columnsChildren", {
  66. get: function () {
  67. return this._getOption('columns');
  68. },
  69. set: function (value) {
  70. this.setChildren('columns', value);
  71. },
  72. enumerable: true,
  73. configurable: true
  74. });
  75. Object.defineProperty(DxiColumnComponent.prototype, "validationRulesChildren", {
  76. get: function () {
  77. return this._getOption('validationRules');
  78. },
  79. set: function (value) {
  80. this.setChildren('validationRules', value);
  81. },
  82. enumerable: true,
  83. configurable: true
  84. });
  85. DxiColumnComponent.decorators = [
  86. { type: core_1.Component, args: [{
  87. selector: 'dxi-column',
  88. template: '',
  89. styles: [''],
  90. providers: [nested_option_1.NestedOptionHost],
  91. inputs: [
  92. 'alignment',
  93. 'allowEditing',
  94. 'allowExporting',
  95. 'allowFiltering',
  96. 'allowFixing',
  97. 'allowGrouping',
  98. 'allowHeaderFiltering',
  99. 'allowHiding',
  100. 'allowReordering',
  101. 'allowResizing',
  102. 'allowSearch',
  103. 'allowSorting',
  104. 'autoExpandGroup',
  105. 'buttons',
  106. 'calculateCellValue',
  107. 'calculateDisplayValue',
  108. 'calculateFilterExpression',
  109. 'calculateGroupValue',
  110. 'calculateSortValue',
  111. 'caption',
  112. 'cellTemplate',
  113. 'columns',
  114. 'cssClass',
  115. 'customizeText',
  116. 'dataField',
  117. 'dataType',
  118. 'editCellTemplate',
  119. 'editorOptions',
  120. 'encodeHtml',
  121. 'falseText',
  122. 'filterOperations',
  123. 'filterType',
  124. 'filterValue',
  125. 'filterValues',
  126. 'fixed',
  127. 'fixedPosition',
  128. 'format',
  129. 'formItem',
  130. 'groupCellTemplate',
  131. 'groupIndex',
  132. 'headerCellTemplate',
  133. 'headerFilter',
  134. 'hidingPriority',
  135. 'isBand',
  136. 'lookup',
  137. 'minWidth',
  138. 'name',
  139. 'ownerBand',
  140. 'renderAsync',
  141. 'selectedFilterOperation',
  142. 'setCellValue',
  143. 'showEditorAlways',
  144. 'showInColumnChooser',
  145. 'showWhenGrouped',
  146. 'sortIndex',
  147. 'sortingMethod',
  148. 'sortOrder',
  149. 'trueText',
  150. 'type',
  151. 'validationRules',
  152. 'visible',
  153. 'visibleIndex',
  154. 'width'
  155. ]
  156. },] },
  157. ];
  158. /** @nocollapse */
  159. DxiColumnComponent.ctorParameters = function () { return [
  160. { type: nested_option_1.NestedOptionHost, decorators: [{ type: core_1.SkipSelf }, { type: core_1.Host },] },
  161. { type: nested_option_1.NestedOptionHost, decorators: [{ type: core_1.Host },] },
  162. ]; };
  163. DxiColumnComponent.propDecorators = {
  164. "filterValueChange": [{ type: core_1.Output },],
  165. "filterValuesChange": [{ type: core_1.Output },],
  166. "groupIndexChange": [{ type: core_1.Output },],
  167. "selectedFilterOperationChange": [{ type: core_1.Output },],
  168. "sortIndexChange": [{ type: core_1.Output },],
  169. "sortOrderChange": [{ type: core_1.Output },],
  170. "visibleChange": [{ type: core_1.Output },],
  171. "visibleIndexChange": [{ type: core_1.Output },],
  172. "buttonsChildren": [{ type: core_1.ContentChildren, args: [core_1.forwardRef(function () { return button_dxi_1.DxiButtonComponent; }),] },],
  173. "columnsChildren": [{ type: core_1.ContentChildren, args: [core_1.forwardRef(function () { return DxiColumnComponent; }),] },],
  174. "validationRulesChildren": [{ type: core_1.ContentChildren, args: [core_1.forwardRef(function () { return validation_rule_dxi_1.DxiValidationRuleComponent; }),] },],
  175. };
  176. return DxiColumnComponent;
  177. }(data_grid_column_dxi_1.DxiDataGridColumn));
  178. exports.DxiColumnComponent = DxiColumnComponent;
  179. var DxiColumnModule = (function () {
  180. function DxiColumnModule() {
  181. }
  182. DxiColumnModule.decorators = [
  183. { type: core_1.NgModule, args: [{
  184. declarations: [
  185. DxiColumnComponent
  186. ],
  187. exports: [
  188. DxiColumnComponent
  189. ],
  190. },] },
  191. ];
  192. return DxiColumnModule;
  193. }());
  194. exports.DxiColumnModule = DxiColumnModule;
  195. //# sourceMappingURL=column-dxi.js.map