@acorex/data-grid 3.0.65 → 4.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (87) hide show
  1. package/acorex-data-grid.d.ts +1 -0
  2. package/esm2020/acorex-data-grid.mjs +5 -0
  3. package/esm2020/lib/data-grid/columns/check-column.component.mjs +117 -0
  4. package/esm2020/lib/data-grid/columns/column.component.mjs +164 -0
  5. package/{esm2015/lib/data-grid/columns/command-column.component.js → esm2020/lib/data-grid/columns/command-column.component.mjs} +46 -35
  6. package/esm2020/lib/data-grid/columns/date-column.component.mjs +112 -0
  7. package/esm2020/lib/data-grid/columns/row-number-column.component.mjs +37 -0
  8. package/esm2020/lib/data-grid/columns/selection-column.component.mjs +42 -0
  9. package/esm2020/lib/data-grid/columns/text-column.component.mjs +89 -0
  10. package/esm2020/lib/data-grid/datagrid.component.mjs +658 -0
  11. package/esm2020/lib/data-grid/datagrid.events.mjs +2 -0
  12. package/esm2020/lib/data-grid/datagrid.module.mjs +145 -0
  13. package/esm2020/lib/data-grid/filters/filter.component.mjs +39 -0
  14. package/esm2020/lib/data-grid/templates/cell-template.component.mjs +53 -0
  15. package/esm2020/lib/data-grid/templates/detail-template.component.mjs +46 -0
  16. package/esm2020/lib/data-grid/templates/row-template.component.mjs +43 -0
  17. package/esm2020/lib/data-lov/data-lov-popup/data-lov-popup.component.mjs +118 -0
  18. package/esm2020/lib/data-lov/data-lov.component.mjs +163 -0
  19. package/esm2020/lib/data-lov/data-lov.module.mjs +23 -0
  20. package/esm2020/public-api.mjs +18 -0
  21. package/fesm2015/acorex-data-grid.mjs +1875 -0
  22. package/fesm2015/acorex-data-grid.mjs.map +1 -0
  23. package/fesm2020/acorex-data-grid.mjs +1875 -0
  24. package/fesm2020/acorex-data-grid.mjs.map +1 -0
  25. package/lib/data-grid/columns/check-column.component.d.ts +7 -0
  26. package/lib/data-grid/columns/column.component.d.ts +3 -0
  27. package/lib/data-grid/columns/command-column.component.d.ts +5 -0
  28. package/lib/data-grid/columns/date-column.component.d.ts +5 -0
  29. package/lib/data-grid/columns/row-number-column.component.d.ts +3 -0
  30. package/lib/data-grid/columns/selection-column.component.d.ts +3 -0
  31. package/lib/data-grid/columns/text-column.component.d.ts +5 -0
  32. package/lib/data-grid/datagrid.component.d.ts +3 -0
  33. package/lib/data-grid/datagrid.module.d.ts +20 -0
  34. package/lib/data-grid/filters/filter.component.d.ts +3 -0
  35. package/lib/data-grid/templates/cell-template.component.d.ts +5 -0
  36. package/lib/data-grid/templates/detail-template.component.d.ts +5 -0
  37. package/lib/data-grid/templates/row-template.component.d.ts +5 -0
  38. package/lib/data-lov/data-lov-popup/data-lov-popup.component.d.ts +3 -0
  39. package/lib/data-lov/data-lov.component.d.ts +3 -0
  40. package/lib/data-lov/data-lov.module.d.ts +10 -0
  41. package/package.json +23 -13
  42. package/acorex-data-grid.metadata.json +0 -1
  43. package/bundles/acorex-data-grid.umd.js +0 -2261
  44. package/bundles/acorex-data-grid.umd.js.map +0 -1
  45. package/bundles/acorex-data-grid.umd.min.js +0 -16
  46. package/bundles/acorex-data-grid.umd.min.js.map +0 -1
  47. package/esm2015/acorex-data-grid.js +0 -5
  48. package/esm2015/lib/data-grid/columns/check-column.component.js +0 -104
  49. package/esm2015/lib/data-grid/columns/column.component.js +0 -204
  50. package/esm2015/lib/data-grid/columns/date-column.component.js +0 -114
  51. package/esm2015/lib/data-grid/columns/row-number-column.component.js +0 -39
  52. package/esm2015/lib/data-grid/columns/selection-column.component.js +0 -48
  53. package/esm2015/lib/data-grid/columns/text-column.component.js +0 -81
  54. package/esm2015/lib/data-grid/datagrid.component.js +0 -734
  55. package/esm2015/lib/data-grid/datagrid.events.js +0 -1
  56. package/esm2015/lib/data-grid/datagrid.module.js +0 -98
  57. package/esm2015/lib/data-grid/filters/filter.component.js +0 -25
  58. package/esm2015/lib/data-grid/templates/cell-template.component.js +0 -47
  59. package/esm2015/lib/data-grid/templates/detail-template.component.js +0 -45
  60. package/esm2015/lib/data-grid/templates/row-template.component.js +0 -40
  61. package/esm2015/lib/data-lov/data-lov-popup/data-lov-popup.component.js +0 -121
  62. package/esm2015/lib/data-lov/data-lov.component.js +0 -212
  63. package/esm2015/lib/data-lov/data-lov.module.js +0 -21
  64. package/esm2015/public-api.js +0 -17
  65. package/esm5/acorex-data-grid.js +0 -5
  66. package/esm5/lib/data-grid/columns/check-column.component.js +0 -102
  67. package/esm5/lib/data-grid/columns/column.component.js +0 -206
  68. package/esm5/lib/data-grid/columns/command-column.component.js +0 -98
  69. package/esm5/lib/data-grid/columns/date-column.component.js +0 -119
  70. package/esm5/lib/data-grid/columns/row-number-column.component.js +0 -42
  71. package/esm5/lib/data-grid/columns/selection-column.component.js +0 -52
  72. package/esm5/lib/data-grid/columns/text-column.component.js +0 -81
  73. package/esm5/lib/data-grid/datagrid.component.js +0 -792
  74. package/esm5/lib/data-grid/datagrid.events.js +0 -1
  75. package/esm5/lib/data-grid/datagrid.module.js +0 -101
  76. package/esm5/lib/data-grid/filters/filter.component.js +0 -16
  77. package/esm5/lib/data-grid/templates/cell-template.component.js +0 -46
  78. package/esm5/lib/data-grid/templates/detail-template.component.js +0 -49
  79. package/esm5/lib/data-grid/templates/row-template.component.js +0 -44
  80. package/esm5/lib/data-lov/data-lov-popup/data-lov-popup.component.js +0 -127
  81. package/esm5/lib/data-lov/data-lov.component.js +0 -222
  82. package/esm5/lib/data-lov/data-lov.module.js +0 -24
  83. package/esm5/public-api.js +0 -17
  84. package/fesm2015/acorex-data-grid.js +0 -1939
  85. package/fesm2015/acorex-data-grid.js.map +0 -1
  86. package/fesm5/acorex-data-grid.js +0 -2017
  87. package/fesm5/acorex-data-grid.js.map +0 -1
@@ -1,114 +0,0 @@
1
- var AXGridDateColumn_1;
2
- import { __decorate, __metadata } from "tslib";
3
- import { Component, ChangeDetectionStrategy, Input, ViewEncapsulation, ViewChild, ElementRef } from '@angular/core';
4
- import { AXGridDataColumn } from './column.component';
5
- import { AXDateTime, AXConfig } from '@acorex/core';
6
- import { AXDatePickerComponent } from '@acorex/components';
7
- let AXGridDateColumn = AXGridDateColumn_1 = class AXGridDateColumn extends AXGridDataColumn {
8
- constructor() {
9
- super();
10
- this.type = AXConfig.get('dateTime.type');
11
- }
12
- render() {
13
- const col = super.render();
14
- col.cellRendererParams = {
15
- format: this.format,
16
- };
17
- col.comparator = (valueA, valueB) => {
18
- const date1 = AXDateTime.convert(valueA);
19
- const date2 = AXDateTime.convert(valueB);
20
- //
21
- if (date1 === null && date2 === null) {
22
- return 0;
23
- }
24
- if (date1 === null) {
25
- return -1;
26
- }
27
- if (date2 === null) {
28
- return 1;
29
- }
30
- return (date1.date.getTime() - date2.date.getTime());
31
- };
32
- col.valueFormatter = (params) => {
33
- const date = AXDateTime.convert(params.value, this.type);
34
- if (date) {
35
- return date.format(this.format);
36
- }
37
- else {
38
- return null;
39
- }
40
- };
41
- col.filter = 'agDateColumnFilter';
42
- // col.floatingFilter = true;
43
- return col;
44
- }
45
- };
46
- __decorate([
47
- Input(),
48
- __metadata("design:type", String)
49
- ], AXGridDateColumn.prototype, "format", void 0);
50
- __decorate([
51
- Input(),
52
- __metadata("design:type", String)
53
- ], AXGridDateColumn.prototype, "type", void 0);
54
- AXGridDateColumn = AXGridDateColumn_1 = __decorate([
55
- Component({
56
- selector: 'ax-date-column',
57
- template: '',
58
- providers: [{ provide: AXGridDataColumn, useExisting: AXGridDateColumn_1 }],
59
- changeDetection: ChangeDetectionStrategy.OnPush
60
- }),
61
- __metadata("design:paramtypes", [])
62
- ], AXGridDateColumn);
63
- export { AXGridDateColumn };
64
- let AXDatePickerFilterComponent = class AXDatePickerFilterComponent {
65
- constructor() {
66
- this.selectableHoliday = false;
67
- this.type = 'jalali';
68
- }
69
- agInit(params) {
70
- this.params = params;
71
- }
72
- ngAfterViewInit() {
73
- }
74
- ngOnDestroy() {
75
- console.log(`Destroying DateComponent`);
76
- }
77
- onDateChanged(selectedDates) {
78
- //this.date = selectedDates[0] || null;
79
- this.params.onDateChanged();
80
- }
81
- getDate() {
82
- return this.date;
83
- }
84
- setDate(date) {
85
- this.date = date || null;
86
- //this.picker.setDate(date);
87
- }
88
- setInputPlaceholder(placeholder) {
89
- //this.div.nativeElement.setAttribute('placeholder', placeholder);
90
- }
91
- onValueChanged(e) {
92
- this.setDate(e.value);
93
- this.onDateChanged(e.value);
94
- }
95
- };
96
- __decorate([
97
- ViewChild(AXDatePickerComponent),
98
- __metadata("design:type", AXDatePickerComponent)
99
- ], AXDatePickerFilterComponent.prototype, "datePicker", void 0);
100
- __decorate([
101
- ViewChild('div', { read: ElementRef }),
102
- __metadata("design:type", ElementRef)
103
- ], AXDatePickerFilterComponent.prototype, "div", void 0);
104
- AXDatePickerFilterComponent = __decorate([
105
- Component({
106
- selector: 'ax-data-picker-filter',
107
- template: `<ax-date-picker [selectableHoliday]="selectableHoliday" [allowClear]="true" (onValueChanged)="onValueChanged($event)" size="sm">
108
- </ax-date-picker>`,
109
- host: {},
110
- encapsulation: ViewEncapsulation.None
111
- })
112
- ], AXDatePickerFilterComponent);
113
- export { AXDatePickerFilterComponent };
114
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0ZS1jb2x1bW4uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGFjb3JleC9kYXRhLWdyaWQvIiwic291cmNlcyI6WyJsaWIvZGF0YS1ncmlkL2NvbHVtbnMvZGF0ZS1jb2x1bW4uY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQ0EsT0FBTyxFQUNMLFNBQVMsRUFDVCx1QkFBdUIsRUFDdkIsS0FBSyxFQUNMLGlCQUFpQixFQUNqQixTQUFTLEVBQ1QsVUFBVSxFQUNYLE1BQU0sZUFBZSxDQUFDO0FBQ3ZCLE9BQU8sRUFBRSxnQkFBZ0IsRUFBRSxNQUFNLG9CQUFvQixDQUFDO0FBQ3RELE9BQU8sRUFBRSxVQUFVLEVBQUUsUUFBUSxFQUFrQixNQUFNLGNBQWMsQ0FB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uICAgIHRoaXMucGFyYW1zID0gcGFyYW1zO1xyXG4gIH1cclxuXHJcbiAgbmdBZnRlclZpZXdJbml0KCkge1xyXG5cclxuICB9XHJcbiAgbmdPbkRlc3Ryb3koKSB7XHJcbiAgICBjb25zb2xlLmxvZyhgRGVzdHJveWluZyBEYXRlQ29tcG9uZW50YCk7XHJcbiAgfVxyXG5cclxuICBvbkRhdGVDaGFuZ2VkKHNlbGVjdGVkRGF0ZXMpIHtcclxuICAgIC8vdGhpcy5kYXRlID0gc2VsZWN0ZWREYXRlc1swXSB8fCBudWxsO1xyXG4gICAgdGhpcy5wYXJhbXMub25EYXRlQ2hhbmdlZCgpO1xyXG4gIH1cclxuXHJcbiAgZ2V0RGF0ZSgpOiBEYXRlIHtcclxuICAgIHJldHVybiB0aGlzLmRhdGU7XHJcbiAgfVxyXG5cclxuICBzZXREYXRlKGRhdGU6IERhdGUpOiB2b2lkIHtcclxuICAgIHRoaXMuZGF0ZSA9IGRhdGUgfHwgbnVsbDtcclxuICAgIC8vdGhpcy5waWNrZXIuc2V0RGF0ZShkYXRlKTtcclxuICB9XHJcblxyXG4gIHNldElucHV0UGxhY2Vob2xkZXIocGxhY2Vob2xkZXI6IHN0cmluZyk6IHZvaWQge1xyXG4gICAgLy90aGlzLmRpdi5uYXRpdmVFbGVtZW50LnNldEF0dHJpYnV0ZSgncGxhY2Vob2xkZXInLCBwbGFjZWhvbGRlcik7XHJcbiAgfVxyXG4gIG9uVmFsdWVDaGFuZ2VkKGUpIHtcclxuXHJcbiAgICB0aGlzLnNldERhdGUoZS52YWx1ZSk7XHJcbiAgICB0aGlzLm9uRGF0ZUNoYW5nZWQoZS52YWx1ZSk7XHJcbiAgfVxyXG5cclxufVxyXG4iXX0=
@@ -1,39 +0,0 @@
1
- var AXGridRowNumberColumn_1;
2
- import { __decorate, __metadata } from "tslib";
3
- import { AXGridDataColumn } from './column.component';
4
- import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
5
- import { AXConfig } from '@acorex/core';
6
- let AXGridRowNumberColumn = AXGridRowNumberColumn_1 = class AXGridRowNumberColumn extends AXGridDataColumn {
7
- constructor() {
8
- super();
9
- }
10
- ngOnInit() { }
11
- render() {
12
- const col = super.render();
13
- // col.checkboxSelection = this.condition ? this.condition : true;
14
- // col.headerCheckboxSelection = true;
15
- (col.headerName = this.caption ? this.caption : AXConfig.get('layout.rtl') ? 'ردیف' : 'Row'),
16
- (col.valueGetter = 'node.rowIndex + 1'),
17
- (col.pinned = this.pinned == null ? null : this.pinned === 'start' ? 'right' : 'left'),
18
- (col.filter = false);
19
- col.resizable = true;
20
- col.sortable = false;
21
- col.width = this.width;
22
- return col;
23
- }
24
- };
25
- __decorate([
26
- Input(),
27
- __metadata("design:type", Function)
28
- ], AXGridRowNumberColumn.prototype, "condition", void 0);
29
- AXGridRowNumberColumn = AXGridRowNumberColumn_1 = __decorate([
30
- Component({
31
- selector: 'ax-row-number-column',
32
- template: '',
33
- providers: [{ provide: AXGridDataColumn, useExisting: AXGridRowNumberColumn_1 }],
34
- changeDetection: ChangeDetectionStrategy.OnPush
35
- }),
36
- __metadata("design:paramtypes", [])
37
- ], AXGridRowNumberColumn);
38
- export { AXGridRowNumberColumn };
39
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicm93LW51bWJlci1jb2x1bW4uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGFjb3JleC9kYXRhLWdyaWQvIiwic291cmNlcyI6WyJsaWIvZGF0YS1ncmlkL2NvbHVtbnMvcm93LW51bWJlci1jb2x1bW4uY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsT0FBTyxFQUFFLGdCQUFnQixFQUFFLE1BQU0sb0JBQW9CLENBQUM7QUFDdEQsT0FBTyxFQUFFLHVCQUF1QixFQUFFLFNBQVMsRUFBRSxLQUFLLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDMUUsT0FBTy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5cclxuICBuZ09uSW5pdCgpOiB2b2lkIHt9XHJcblxyXG4gIEBJbnB1dCgpXHJcbiAgY29uZGl0aW9uOiAocGFyYW1zKSA9PiBib29sZWFuO1xyXG5cclxuICByZW5kZXIoKSB7XHJcbiAgICBjb25zdCBjb2wgPSBzdXBlci5yZW5kZXIoKTtcclxuICAgIC8vICBjb2wuY2hlY2tib3hTZWxlY3Rpb24gPSB0aGlzLmNvbmRpdGlvbiA/IHRoaXMuY29uZGl0aW9uIDogdHJ1ZTtcclxuICAgIC8vICBjb2wuaGVhZGVyQ2hlY2tib3hTZWxlY3Rpb24gPSB0cnVlO1xyXG5cclxuICAgIChjb2wuaGVhZGVyTmFtZSA9IHRoaXMuY2FwdGlvbiA/IHRoaXMuY2FwdGlvbiA6IEFYQ29uZmlnLmdldCgnbGF5b3V0LnJ0bCcpID8gJ9ix2K/bjNmBJyA6ICdSb3cnKSxcclxuICAgICAgKGNvbC52YWx1ZUdldHRlciA9ICdub2RlLnJvd0luZGV4ICsgMScpLFxyXG4gICAgICAoY29sLnBpbm5lZCA9IHRoaXMucGlubmVkID09IG51bGwgPyBudWxsIDogdGhpcy5waW5uZWQgPT09ICdzdGFydCcgPyAncmlnaHQnIDogJ2xlZnQnKSxcclxuICAgICAgKGNvbC5maWx0ZXIgPSBmYWxzZSk7XHJcbiAgICBjb2wucmVzaXphYmxlID0gdHJ1ZTtcclxuICAgIGNvbC5zb3J0YWJsZSA9IGZhbHNlO1xyXG4gICAgY29sLndpZHRoID0gdGhpcy53aWR0aDtcclxuXHJcbiAgICByZXR1cm4gY29sO1xyXG4gIH1cclxufVxyXG4iXX0=
@@ -1,48 +0,0 @@
1
- var AXGridSelectionColumn_1;
2
- import { __decorate, __metadata } from "tslib";
3
- import { AXGridDataColumn } from './column.component';
4
- import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
5
- let AXGridSelectionColumn = AXGridSelectionColumn_1 = class AXGridSelectionColumn extends AXGridDataColumn {
6
- constructor() {
7
- super();
8
- this.pinned = 'start';
9
- this.width = 40;
10
- }
11
- ngOnInit() { }
12
- render() {
13
- const col = super.render();
14
- col.checkboxSelection = this.condition ? this.condition : true;
15
- // col.headerCheckboxSelection = true;
16
- col.pinned = this.pinned === 'start' ? 'right' : 'left';
17
- col.filter = false;
18
- col.resizable = true;
19
- col.sortable = false;
20
- col.minWidth = 5;
21
- col.width = this.width;
22
- col.floatingFilter = false;
23
- return col;
24
- }
25
- };
26
- __decorate([
27
- Input(),
28
- __metadata("design:type", Function)
29
- ], AXGridSelectionColumn.prototype, "condition", void 0);
30
- __decorate([
31
- Input(),
32
- __metadata("design:type", String)
33
- ], AXGridSelectionColumn.prototype, "pinned", void 0);
34
- __decorate([
35
- Input(),
36
- __metadata("design:type", Number)
37
- ], AXGridSelectionColumn.prototype, "width", void 0);
38
- AXGridSelectionColumn = AXGridSelectionColumn_1 = __decorate([
39
- Component({
40
- selector: 'ax-selection-column',
41
- template: '',
42
- providers: [{ provide: AXGridDataColumn, useExisting: AXGridSelectionColumn_1 }],
43
- changeDetection: ChangeDetectionStrategy.OnPush
44
- }),
45
- __metadata("design:paramtypes", [])
46
- ], AXGridSelectionColumn);
47
- export { AXGridSelectionColumn };
48
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VsZWN0aW9uLWNvbHVtbi5jb21wb25lbnQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AYWNvcmV4L2RhdGEtZ3JpZC8iLCJzb3VyY2VzIjpbImxpYi9kYXRhLWdyaWQvY29sdW1ucy9zZWxlY3Rpb24tY29sdW1uLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLE9BQU8sRUFBRSxnQkFBZ0IsRUFBRSxNQUFNLG9CQUFvQixDQUFDO0FBQ3RELE9BQU8sRUFBRSx1QkFBdUIsRUFBRSxTQUFTLEVBQUUsS0FBSyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBUTFF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gPSAnc3RhcnQnO1xyXG5cclxuICBASW5wdXQoKVxyXG4gIHdpZHRoOiBudW1iZXIgPSA0MDtcclxuXHJcbiAgcmVuZGVyKCkge1xyXG4gICAgY29uc3QgY29sID0gc3VwZXIucmVuZGVyKCk7XHJcbiAgICBjb2wuY2hlY2tib3hTZWxlY3Rpb24gPSB0aGlzLmNvbmRpdGlvbiA/IHRoaXMuY29uZGl0aW9uIDogdHJ1ZTtcclxuICAgIC8vICBjb2wuaGVhZGVyQ2hlY2tib3hTZWxlY3Rpb24gPSB0cnVlO1xyXG4gICAgY29sLnBpbm5lZCA9IHRoaXMucGlubmVkID09PSAnc3RhcnQnID8gJ3JpZ2h0JyA6ICdsZWZ0JztcclxuICAgIGNvbC5maWx0ZXIgPSBmYWxzZTtcclxuICAgIGNvbC5yZXNpemFibGUgPSB0cnVlO1xyXG4gICAgY29sLnNvcnRhYmxlID0gZmFsc2U7XHJcbiAgICBjb2wubWluV2lkdGggPSA1O1xyXG4gICAgY29sLndpZHRoID0gdGhpcy53aWR0aDtcclxuICAgIGNvbC5mbG9hdGluZ0ZpbHRlciA9IGZhbHNlO1xyXG4gICAgcmV0dXJuIGNvbDtcclxuICB9XHJcbn1cclxuIl19
@@ -1,81 +0,0 @@
1
- var AXGridTextColumn_1;
2
- import { __decorate, __metadata } from "tslib";
3
- import { AXGridDataColumn } from './column.component';
4
- import { ChangeDetectionStrategy, Component, ViewChild } from '@angular/core';
5
- import { AXTextBoxComponent } from '@acorex/components';
6
- let AXGridTextColumn = AXGridTextColumn_1 = class AXGridTextColumn extends AXGridDataColumn {
7
- constructor() {
8
- super();
9
- }
10
- render() {
11
- const col = super.render();
12
- // if (this.allowFiltering) {
13
- // col.filterFramework = TextFilterRenderer;
14
- // }
15
- col.filter = 'agTextColumnFilter';
16
- return col;
17
- }
18
- };
19
- AXGridTextColumn = AXGridTextColumn_1 = __decorate([
20
- Component({
21
- selector: 'ax-text-column',
22
- template: '',
23
- providers: [{ provide: AXGridDataColumn, useExisting: AXGridTextColumn_1 }],
24
- changeDetection: ChangeDetectionStrategy.OnPush
25
- }),
26
- __metadata("design:paramtypes", [])
27
- ], AXGridTextColumn);
28
- export { AXGridTextColumn };
29
- let TextFilterRenderer = class TextFilterRenderer {
30
- constructor() {
31
- this.value = null;
32
- }
33
- agInit(params) {
34
- this.params = params;
35
- this.valueGetter = params.valueGetter;
36
- }
37
- isFilterActive() {
38
- return this.value !== null && this.value !== undefined;
39
- }
40
- doesFilterPass(params) {
41
- return this.value === this.valueGetter(params.node);
42
- }
43
- getModel() {
44
- return { value: this.value };
45
- }
46
- setModel(model) {
47
- ;
48
- this.onChange(model ? model.value : null);
49
- }
50
- ngAfterViewInit(params) {
51
- window.setTimeout(() => {
52
- this.input.focus();
53
- });
54
- }
55
- onChange(newValue) {
56
- if (this.value !== newValue) {
57
- this.value = newValue;
58
- if (this.value === '') {
59
- this.value = null;
60
- }
61
- this.params.filterChangedCallback();
62
- }
63
- }
64
- };
65
- __decorate([
66
- ViewChild(AXTextBoxComponent, { static: true }),
67
- __metadata("design:type", AXTextBoxComponent)
68
- ], TextFilterRenderer.prototype, "input", void 0);
69
- TextFilterRenderer = __decorate([
70
- Component({
71
- template: `
72
- <ax-data-grid-filter>
73
- <ax-text-box label='Filter' allowClear='true' (textChange)='onChange($event)'>
74
- </ax-text-box>
75
- </ax-data-grid-filter>
76
- `,
77
- changeDetection: ChangeDetectionStrategy.OnPush
78
- })
79
- ], TextFilterRenderer);
80
- export { TextFilterRenderer };
81
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGV4dC1jb2x1bW4uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGFjb3JleC9kYXRhLWdyaWQvIiwic291cmNlcyI6WyJsaWIvZGF0YS1ncmlkL2NvbHVtbnMvdGV4dC1jb2x1bW4uY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsT0FBT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