@acorex/data-grid 3.0.63 → 4.1.0

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 +8 -1
  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 -2249
  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 -722
  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 -780
  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 -1927
  85. package/fesm2015/acorex-data-grid.js.map +0 -1
  86. package/fesm5/acorex-data-grid.js +0 -2005
  87. package/fesm5/acorex-data-grid.js.map +0 -1
@@ -1,4 +1,5 @@
1
1
  /**
2
2
  * Generated bundle index. Do not edit.
3
3
  */
4
+ /// <amd-module name="@acorex/data-grid" />
4
5
  export * from './public-api';
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ export * from './public-api';
5
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWNvcmV4LWRhdGEtZ3JpZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL2Fjb3JleC9kYXRhLWdyaWQvc3JjL2Fjb3JleC1kYXRhLWdyaWQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWMtYXBpJztcbiJdfQ==
@@ -0,0 +1,117 @@
1
+ import { Component, ChangeDetectionStrategy, ViewChild, ViewContainerRef } from '@angular/core';
2
+ import { AXGridDataColumn } from './column.component';
3
+ import * as i0 from "@angular/core";
4
+ import * as i1 from "@acorex/components";
5
+ import * as i2 from "../filters/filter.component";
6
+ export class AXGridCheckColumn extends AXGridDataColumn {
7
+ constructor() {
8
+ super();
9
+ }
10
+ render() {
11
+ const col = super.render();
12
+ if (!col.cellRendererFramework) {
13
+ col.cellRendererFramework = BooleanRenderer;
14
+ }
15
+ if (this.allowFiltering) {
16
+ col.filterFramework = BooleanFilterRenderer;
17
+ }
18
+ return col;
19
+ }
20
+ }
21
+ AXGridCheckColumn.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.8", ngImport: i0, type: AXGridCheckColumn, deps: [], target: i0.ɵɵFactoryTarget.Component });
22
+ AXGridCheckColumn.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.8", type: AXGridCheckColumn, selector: "ax-check-column", providers: [{ provide: AXGridDataColumn, useExisting: AXGridCheckColumn }], usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
23
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.8", ngImport: i0, type: AXGridCheckColumn, decorators: [{
24
+ type: Component,
25
+ args: [{
26
+ selector: 'ax-check-column',
27
+ template: '',
28
+ providers: [{ provide: AXGridDataColumn, useExisting: AXGridCheckColumn }],
29
+ changeDetection: ChangeDetectionStrategy.OnPush
30
+ }]
31
+ }], ctorParameters: function () { return []; } });
32
+ export class BooleanRenderer {
33
+ constructor() { }
34
+ agInit(params) {
35
+ this.value = params.value;
36
+ }
37
+ refresh(params) {
38
+ this.value = params.value;
39
+ return true;
40
+ }
41
+ }
42
+ BooleanRenderer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.8", ngImport: i0, type: BooleanRenderer, deps: [], target: i0.ɵɵFactoryTarget.Component });
43
+ BooleanRenderer.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.8", type: BooleanRenderer, selector: "ng-component", ngImport: i0, template: `
44
+ <ax-check-box [value]='value' readonly='true'></ax-check-box>
45
+ `, isInline: true, components: [{ type: i1.AXCheckBoxComponent, selector: "ax-check-box", inputs: ["readonly", "disabled", "size", "label", "tabIndex", "indeterminate", "value"], outputs: ["onValueChanged", "valueChange", "onClick"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
46
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.8", ngImport: i0, type: BooleanRenderer, decorators: [{
47
+ type: Component,
48
+ args: [{
49
+ template: `
50
+ <ax-check-box [value]='value' readonly='true'></ax-check-box>
51
+ `,
52
+ changeDetection: ChangeDetectionStrategy.OnPush
53
+ }]
54
+ }], ctorParameters: function () { return []; } });
55
+ export class BooleanFilterRenderer {
56
+ constructor() {
57
+ this.value = null;
58
+ this.selectItem = [
59
+ { value: 0, label: 'True' },
60
+ { value: 1, label: 'False' },
61
+ ];
62
+ }
63
+ agInit(params) {
64
+ this.params = params;
65
+ this.valueGetter = params.valueGetter;
66
+ }
67
+ isFilterActive() {
68
+ return this.value !== null && this.value !== undefined;
69
+ }
70
+ doesFilterPass(params) {
71
+ return this.value === this.valueGetter(params.node);
72
+ }
73
+ getModel() {
74
+ return { value: this.value };
75
+ }
76
+ setModel(model) {
77
+ this.value = model ? model.value : null;
78
+ }
79
+ ngAfterViewInit(params) {
80
+ window.setTimeout(() => {
81
+ this.input.element.nativeElement.focus();
82
+ });
83
+ }
84
+ onChange(newValue) {
85
+ if (this.value !== newValue) {
86
+ this.value = newValue;
87
+ this.params.filterChangedCallback();
88
+ }
89
+ }
90
+ }
91
+ BooleanFilterRenderer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.8", ngImport: i0, type: BooleanFilterRenderer, deps: [], target: i0.ɵɵFactoryTarget.Component });
92
+ BooleanFilterRenderer.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.8", type: BooleanFilterRenderer, selector: "ng-component", viewQueries: [{ propertyName: "input", first: true, predicate: ["input"], descendants: true, read: ViewContainerRef, static: true }], ngImport: i0, template: `
93
+ <ax-data-grid-filter>
94
+ <ax-select-box
95
+ label='Select Box'
96
+ [items]='selectItem'
97
+ ></ax-select-box>
98
+ </ax-data-grid-filter>
99
+ `, isInline: true, components: [{ type: i2.AXDataGridFilterComponent, selector: "ax-data-grid-filter" }, { type: i1.AXSelectBoxComponent, selector: "ax-select-box", inputs: ["showDropDownButton", "rowInputTemplate", "showCheckBox", "readonly", "rtl", "disabled", "placeholder", "size", "allowNull", "textAlign", "bufferSize", "remoteOperation", "dataSource", "validation", "disabledCallback", "allowSearch", "textField", "valueField", "disabledField", "mode", "items", "selectedItems", "selectedValues"], outputs: ["dropdownToggle", "itemsChange", "onBlur", "onFocus", "selectionChanged", "selectedItemsChange", "selectedValuesChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
100
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.8", ngImport: i0, type: BooleanFilterRenderer, decorators: [{
101
+ type: Component,
102
+ args: [{
103
+ template: `
104
+ <ax-data-grid-filter>
105
+ <ax-select-box
106
+ label='Select Box'
107
+ [items]='selectItem'
108
+ ></ax-select-box>
109
+ </ax-data-grid-filter>
110
+ `,
111
+ changeDetection: ChangeDetectionStrategy.OnPush
112
+ }]
113
+ }], propDecorators: { input: [{
114
+ type: ViewChild,
115
+ args: ['input', { static: true, read: ViewContainerRef }]
116
+ }] } });
117
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hlY2stY29sdW1uLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Fjb3JleC9kYXRhLWdyaWQvc3JjL2xpYi9kYXRhLWdyaWQvY29sdW1ucy9jaGVjay1jb2x1bW4uY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFDTCxTQUFTLEVBQ1QsdUJBQXVCLEVBQ3ZCLFNBQVMsRUFDVCxnQkFBZ0IsRUFDakIsTUFBTSxlQUFlLENBQUM7QUFDdkIsT0FBTyxFQUFFLGdCQUFnQixFQUFFLE1BQU0sb0JBQW9CLENBQUM7Ozs7QUFpQnRELE1BQU0sT0FBTyxpQkFBa0IsU0FBUSxnQkFBZ0I7SUFDckQ7UUFDRSxLQUFLLEVBQUUsQ0FBQztJQUNWLENBQUM7SUFFRCxNQUFNO1FBQ0osTUFBTSxHQUFHLEdBQUcsS0FBSyxDQUFDLE1BQU0sRUFBRSxDQUFDO1FBQzNCLElBQUksQ0FBQyxHQUFHLENBQUMscUJBQXFCLEVBQUU7WUFDOUIsR0FBRyxDQUFDLHFCQUFxQixHQUFHLGVBQWUsQ0FBQztTQUM3QztRQUNELElBQUksSUFBSSxDQUFDLGNBQWMsRUFBRTtZQUN2QixHQUFHLENBQUMsZUFBZSxHQUFHLHFCQUFxQixDQUFDO1NBQzdDO1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aXZlRWxlbWVudC5mb2N1cygpO1xyXG4gICAgfSk7XHJcbiAgfVxyXG5cclxuICBvbkNoYW5nZShuZXdWYWx1ZSk6IHZvaWQge1xyXG4gICAgaWYgKHRoaXMudmFsdWUgIT09IG5ld1ZhbHVlKSB7XHJcbiAgICAgIHRoaXMudmFsdWUgPSBuZXdWYWx1ZTtcclxuICAgICAgdGhpcy5wYXJhbXMuZmlsdGVyQ2hhbmdlZENhbGxiYWNrKCk7XHJcbiAgICB9XHJcbiAgfVxyXG59XHJcbiJdfQ==
@@ -0,0 +1,164 @@
1
+ import { AXConfig } from '@acorex/core';
2
+ import { Input, ContentChild, Directive } from '@angular/core';
3
+ import { AXDataGridCellTemplateComponent } from '../templates/cell-template.component';
4
+ import * as i0 from "@angular/core";
5
+ export class AXGridDataColumn {
6
+ constructor() {
7
+ this.width = 100;
8
+ this.pinned = null;
9
+ this.allowSorting = true;
10
+ this.allowFiltering = AXConfig.get('datagrid.allowFiltering') || false;
11
+ this.sort = null;
12
+ this.field = '';
13
+ this.caption = '';
14
+ this.checkbox = false;
15
+ this.headerCheckbox = false;
16
+ this.groupIndex = -1;
17
+ this.treeIndex = -1;
18
+ this.enableRowGroup = false;
19
+ this.hide = false;
20
+ this.floatingFilter = AXConfig.get('datagrid.floatingFilter') || false;
21
+ this.disableMenu = false;
22
+ this.resizable = true;
23
+ this.menuColumnDisable = false;
24
+ this.menuItemDisable = false;
25
+ }
26
+ ;
27
+ render() {
28
+ const col = {
29
+ field: this.field,
30
+ width: this.width,
31
+ };
32
+ col.resizable = this.resizable;
33
+ col.suppressMenu = this.disableMenu;
34
+ col.menuTabs = ['filterMenuTab', 'columnsMenuTab', 'generalMenuTab'];
35
+ col.floatingFilter = this.floatingFilter;
36
+ if (!this.allowFiltering) {
37
+ col.filter = false;
38
+ col.menuTabs = col.menuTabs.filter(c => c != 'filterMenuTab');
39
+ col.floatingFilter = false;
40
+ }
41
+ if (this.menuColumnDisable == true) {
42
+ col.menuTabs = col.menuTabs.filter(c => c != 'columnsMenuTab');
43
+ }
44
+ if (this.menuItemDisable == true) {
45
+ col.menuTabs = col.menuTabs.filter(c => c != 'generalMenuTab');
46
+ }
47
+ if (this.caption) {
48
+ col.headerName = this.caption;
49
+ }
50
+ if (this.minWidth) {
51
+ col.minWidth = this.minWidth;
52
+ }
53
+ if (this.maxWidth) {
54
+ col.maxWidth = this.maxWidth;
55
+ }
56
+ if (this.pinned) {
57
+ col.pinned = this.pinned === 'start' ? 'right' : 'left';
58
+ // TODO: Change based on layout
59
+ }
60
+ if (this.allowSorting) {
61
+ col.sortable = this.allowSorting;
62
+ }
63
+ if (this.sort) {
64
+ col.sort = this.sort;
65
+ }
66
+ if (this.groupIndex >= 0) {
67
+ col.rowGroupIndex = this.groupIndex;
68
+ col.rowGroup = true;
69
+ this.enableRowGroup = true;
70
+ }
71
+ if (this.treeIndex >= 0) {
72
+ col.rowGroupIndex = this.treeIndex;
73
+ col.rowGroup = false;
74
+ }
75
+ if (this.hide) {
76
+ col.hide = true;
77
+ }
78
+ if (this.enableRowGroup) {
79
+ col.enableRowGroup = this.enableRowGroup;
80
+ }
81
+ if (this.cellClass) {
82
+ const THAT = this;
83
+ if (this.cellClass instanceof Function) {
84
+ col.cellClass = (p) => {
85
+ return THAT.cellClass({
86
+ column: THAT,
87
+ rowIndex: p.node.rowIndex,
88
+ rowLevel: p.node.level,
89
+ data: p.data,
90
+ value: p.value
91
+ });
92
+ };
93
+ }
94
+ else {
95
+ col.cellClass = this.cellClass;
96
+ }
97
+ }
98
+ //
99
+ if (this.cellTemplate != null) {
100
+ col.cellRendererFramework = this.cellTemplate.renderer;
101
+ col.cellRendererParams = this.cellTemplate.params;
102
+ }
103
+ if (this.checkbox) {
104
+ col.checkboxSelection = (params) => {
105
+ return true;
106
+ };
107
+ // col.headerCheckboxSelection = this.headerCheckbox;
108
+ }
109
+ return col;
110
+ }
111
+ }
112
+ AXGridDataColumn.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.8", ngImport: i0, type: AXGridDataColumn, deps: [], target: i0.ɵɵFactoryTarget.Directive });
113
+ AXGridDataColumn.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.8", type: AXGridDataColumn, inputs: { width: "width", maxWidth: "maxWidth", minWidth: "minWidth", pinned: "pinned", allowSorting: "allowSorting", allowFiltering: "allowFiltering", cellClass: "cellClass", sort: "sort", field: "field", caption: "caption", cellRendererParams: "cellRendererParams", checkbox: "checkbox", headerCheckbox: "headerCheckbox", groupIndex: "groupIndex", treeIndex: "treeIndex", enableRowGroup: "enableRowGroup", hide: "hide", floatingFilter: "floatingFilter", disableMenu: "disableMenu", resizable: "resizable", menuColumnDisable: "menuColumnDisable", menuItemDisable: "menuItemDisable" }, queries: [{ propertyName: "cellTemplate", first: true, predicate: AXDataGridCellTemplateComponent, descendants: true }], ngImport: i0 });
114
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.8", ngImport: i0, type: AXGridDataColumn, decorators: [{
115
+ type: Directive
116
+ }], ctorParameters: function () { return []; }, propDecorators: { cellTemplate: [{
117
+ type: ContentChild,
118
+ args: [AXDataGridCellTemplateComponent]
119
+ }], width: [{
120
+ type: Input
121
+ }], maxWidth: [{
122
+ type: Input
123
+ }], minWidth: [{
124
+ type: Input
125
+ }], pinned: [{
126
+ type: Input
127
+ }], allowSorting: [{
128
+ type: Input
129
+ }], allowFiltering: [{
130
+ type: Input
131
+ }], cellClass: [{
132
+ type: Input
133
+ }], sort: [{
134
+ type: Input
135
+ }], field: [{
136
+ type: Input
137
+ }], caption: [{
138
+ type: Input
139
+ }], cellRendererParams: [{
140
+ type: Input
141
+ }], checkbox: [{
142
+ type: Input
143
+ }], headerCheckbox: [{
144
+ type: Input
145
+ }], groupIndex: [{
146
+ type: Input
147
+ }], treeIndex: [{
148
+ type: Input
149
+ }], enableRowGroup: [{
150
+ type: Input
151
+ }], hide: [{
152
+ type: Input
153
+ }], floatingFilter: [{
154
+ type: Input
155
+ }], disableMenu: [{
156
+ type: Input
157
+ }], resizable: [{
158
+ type: Input
159
+ }], menuColumnDisable: [{
160
+ type: Input
161
+ }], menuItemDisable: [{
162
+ type: Input
163
+ }] } });
164
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29sdW1uLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Fjb3JleC9kYXRhLWdyaWQvc3JjL2xpYi9kYXRhLWdyaWQvY29sdW1ucy9jb2x1bW4uY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxjQUFjLENBQUM7QUFDeEMsT0FBTyxFQUFFLEtBQUssRUFBRSxZQUFZLEVBQWUsU0FBUyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBRTVFLE9BQU8sRUFBRSwrQkFBK0IsRUFBRSxNQUFNLHNDQUFzQyxDQUFDOztBQUt2RixNQUFNLE9BQWdCLGdCQUFnQjtJQXdFbEM7UUFqRUEsVUFBSyxHQUFXLEdBQUcsQ0FBQztRQVNwQixXQUFNLEdBQTJCLElBQUksQ0FBQztRQUd0QyxpQkFBWSxHQUFZLElBQUksQ0FBQztRQUc3QixtQkFBYyxHQUFZLFFBQVEsQ0FBQyxHQUFHLENBQUMseUJBQXlCLENBQUMsSUFBSSxLQUFLLENBQUM7UUFNM0UsU0FBSSxHQUEwQixJQUFJLENBQUM7UUFHbkMsVUFBSyxHQUFXLEVBQUUsQ0FBQztRQUduQixZQUFPLEdBQVcsRUFBRSxDQUFDO1FBTXJCLGFBQVEsR0FBWSxLQUFLLENBQUM7UUFHMUIsbUJBQWMsR0FBWSxLQUFLLENBQUM7UUFHaEMsZUFBVSxHQUFXLENBQUMsQ0FBQyxDQUFDO1FBR3hCL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gICAgaGVhZGVyQ2hlY2tib3g6IGJvb2xlYW4gPSBmYWxzZTtcclxuXHJcbiAgICBASW5wdXQoKVxyXG4gICAgZ3JvdXBJbmRleDogbnVtYmVyID0gLTE7XHJcblxyXG4gICAgQElucHV0KClcclxuICAgIHRyZWVJbmRleDogbnVtYmVyID0gLTE7XHJcblxyXG4gICAgQElucHV0KClcclxuICAgIGVuYWJsZVJvd0dyb3VwOiBib29sZWFuID0gZmFsc2U7XHJcblxyXG4gICAgQElucHV0KClcclxuICAgIGhpZGU6IGJvb2xlYW4gPSBmYWxzZTtcclxuXHJcbiAgICBASW5wdXQoKVxyXG4gICAgZmxvYXRpbmdGaWx0ZXI6IGJvb2xlYW4gPSBBWENvbmZpZy5nZXQoJ2RhdGFncmlkLmZsb2F0aW5nRmlsdGVyJykgfHwgZmFsc2U7XHJcblxyXG4gICAgQElucHV0KClcclxuICAgIGRpc2FibGVNZW51OiBib29sZWFuID0gZmFsc2U7XHJcblxyXG4gICAgQElucHV0KClcclxuICAgIHJlc2l6YWJsZTogYm9vbGVhbiA9IHRydWU7XHJcblxyXG4gICAgQElucHV0KClcclxuICAgIG1lbnVDb2x1bW5EaXNhYmxlOiBib29sZWFuID0gZmFsc2U7XHJcblxyXG4gICAgQElucHV0KClcclxuICAgIG1lbnVJdGVtRGlzYWJsZTogYm9vbGVhbiA9IGZhbHNlO1xyXG5cclxuICAgIGNvbnN0cnVjdG9yKCkgeyB9XHJcblxyXG4gICAgcmVuZGVyKCk6IGFueSB7XHJcbiAgICAgICAgY29uc3QgY29sOiBhbnkgPSB7XHJcbiAgICAgICAgICAgIGZpZWxkOiB0aGlzLmZpZWxkLFxyXG4gICAgICAgICAgICB3aWR0aDogdGhpcy53aWR0aCxcclxuICAgICAgICB9O1xyXG4gICAgICAgIGNvbC5yZXNpemFibGUgPSB0aGlzLnJlc2l6YWJsZTtcclxuICAgICAgICBjb2wuc3VwcHJlc3NNZW51ID0gdGhpcy5kaXNhYmxlTWVudTtcclxuICAgICAgICBjb2wubWVudVRhYnMgPSBbJ2ZpbHRlck1lbnVUYWInLCAnY29sdW1uc01lbnVUYWInLCAnZ2VuZXJhbE1lbnVUYWInXVxyXG4gICAgICAgIGNvbC5mbG9hdGluZ0ZpbHRlciA9IHRoaXMuZmxvYXRpbmdGaWx0ZXI7XHJcblxyXG4gICAgICAgIGlmICghdGhpcy5hbGxvd0ZpbHRlcmluZykge1xyXG4gICAgICAgICAgICBjb2wuZmlsdGVyID0gZmFsc2U7XHJcbiAgICAgICAgICAgIGNvbC5tZW51VGFicyA9IGNvbC5tZW51VGFicy5maWx0ZXIoYyA9PiBjICE9ICdmaWx0ZXJNZW51VGFiJyk7XHJcbiAgICAgICAgICAgIGNvbC5mbG9hdGluZ0ZpbHRlciA9IGZhbHNlO1xyXG4gICAgICAgIH1cclxuICAgICAgICBpZiAodGhpcy5tZW51Q29sdW1uRGlzYWJsZSA9PSB0cnVlKSB7XHJcbiAgICAgICAgICAgIGNvbC5tZW51VGFicyA9IGNvbC5tZW51VGFicy5maWx0ZXIoYyA9PiBjICE9ICdjb2x1bW5zTWVudVRhYicpO1xyXG4gICAgICAgIH1cclxuICAgICAgICBpZiAodGhpcy5tZW51SXRlbURpc2FibGUgPT0gdHJ1ZSkge1xyXG4gICAgICAgICAgICBjb2wubWVudVRhYnMgPSBjb2wubWVudVRhYnMuZmlsdGVyKGMgPT4gYyAhPSAnZ2VuZXJhbE1lbnVUYWInKTtcclxuICAgICAgICB9XHJcbiAgICAgICAgaWYgKHRoaXMuY2FwdGlvbikge1xyXG4gICAgICAgICAgICBjb2wuaGVhZGVyTmFtZSA9IHRoaXMuY2FwdGlvbjtcclxuICAgICAgICB9XHJcbiAgICAgICAgaWYgKHRoaXMubWluV2lkdGgpIHtcclxuICAgICAgICAgICAgY29sLm1pbldpZHRoID0gdGhpcy5taW5XaWR0aDtcclxuICAgICAgICB9XHJcbiAgICAgICAgaWYgKHRoaXMubWF4V2lkdGgpIHtcclxuICAgICAgICAgICAgY29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NvbC5lbmFibGVSb3dHcm91cCA9IHRoaXMuZW5hYmxlUm93R3JvdXA7XHJcbiAgICAgICAgfVxyXG5cclxuICAgICAgICBpZiAodGhpcy5jZWxsQ2xhc3MpIHtcclxuICAgICAgICAgICAgY29uc3QgVEhBVCA9IHRoaXM7XHJcbiAgICAgICAgICAgIGlmICh0aGlzLmNlbGxDbGFzcyBpbnN0YW5jZW9mIEZ1bmN0aW9uKSB7XHJcbiAgICAgICAgICAgICAgICBjb2wuY2VsbENsYXNzID0gKHApID0+IHtcclxuICAgICAgICAgICAgICAgICAgICByZXR1cm4gVEhBVC5jZWxsQ2xhc3Moe1xyXG4gICAgICAgICAgICAgICAgICAgICAgICBjb2x1bW46IFRIQVQsXHJcbiAgICAgICAgICAgICAgICAgICAgICAgIHJvd0luZGV4OiBwLm5vZGUucm93SW5kZXgsXHJcbiAgICAgICAgICAgICAgICAgICAgICAgIHJvd0xldmVsOiBwLm5vZGUubGV2ZWwsXHJcbiAgICAgICAgICAgICAgICAgICAgICAgIGRhdGE6IHAuZGF0YSxcclxuICAgICAgICAgICAgICAgICAgICAgICAgdmFsdWU6IHAudmFsdWVcclxuICAgICAgICAgICAgICAgICAgICB9KTtcclxuICAgICAgICAgICAgICAgIH07XHJcbiAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgZWxzZSB7XHJcbiAgICAgICAgICAgICAgICBjb2wuY2VsbENsYXNzID0gdGhpcy5jZWxsQ2xhc3M7XHJcblxyXG4gICAgICAgICAgICB9XHJcbiAgICAgICAgfVxyXG4gICAgICAgIC8vXHJcbiAgICAgICAgaWYgKHRoaXMuY2VsbFRlbXBsYXRlICE9IG51bGwpIHtcclxuICAgICAgICAgICAgY29sLmNlbGxSZW5kZXJlckZyYW1ld29yayA9IHRoaXMuY2VsbFRlbXBsYXRlLnJlbmRlcmVyO1xyXG4gICAgICAgICAgICBjb2wuY2VsbFJlbmRlcmVyUGFyYW1zID0gdGhpcy5jZWxsVGVtcGxhdGUucGFyYW1zO1xyXG4gICAgICAgIH1cclxuXHJcbiAgICAgICAgaWYgKHRoaXMuY2hlY2tib3gpIHtcclxuICAgICAgICAgICAgY29sLmNoZWNrYm94U2VsZWN0aW9uID0gKHBhcmFtcykgPT4ge1xyXG4gICAgICAgICAgICAgICAgcmV0dXJuIHRydWU7XHJcbiAgICAgICAgICAgIH07XHJcbiAgICAgICAgICAgIC8vICBjb2wuaGVhZGVyQ2hlY2tib3hTZWxlY3Rpb24gPSB0aGlzLmhlYWRlckNoZWNrYm94O1xyXG4gICAgICAgIH1cclxuICAgICAgICByZXR1cm4gY29sO1xyXG4gICAgfVxyXG59XHJcblxyXG5cclxuXHJcblxyXG5cclxuXHJcblxyXG5cclxuIl19
@@ -1,8 +1,8 @@
1
- var AXGridCommandColumn_1;
2
- import { __decorate, __metadata } from "tslib";
3
1
  import { AXGridDataColumn } from './column.component';
4
2
  import { ChangeDetectionStrategy, Component, Input, EventEmitter, ViewEncapsulation, Output } from '@angular/core';
5
- let AXGridCommandColumn = AXGridCommandColumn_1 = class AXGridCommandColumn extends AXGridDataColumn {
3
+ import * as i0 from "@angular/core";
4
+ import * as i1 from "@angular/common";
5
+ export class AXGridCommandColumn extends AXGridDataColumn {
6
6
  constructor() {
7
7
  super(...arguments);
8
8
  this.items = [];
@@ -32,26 +32,24 @@ let AXGridCommandColumn = AXGridCommandColumn_1 = class AXGridCommandColumn exte
32
32
  };
33
33
  return col;
34
34
  }
35
- };
36
- __decorate([
37
- Input(),
38
- __metadata("design:type", Object)
39
- ], AXGridCommandColumn.prototype, "items", void 0);
40
- __decorate([
41
- Output(),
42
- __metadata("design:type", EventEmitter)
43
- ], AXGridCommandColumn.prototype, "onItemClick", void 0);
44
- AXGridCommandColumn = AXGridCommandColumn_1 = __decorate([
45
- Component({
46
- selector: 'ax-command-column',
47
- template: '',
48
- providers: [{ provide: AXGridDataColumn, useExisting: AXGridCommandColumn_1 }],
49
- changeDetection: ChangeDetectionStrategy.OnPush,
50
- encapsulation: ViewEncapsulation.None
51
- })
52
- ], AXGridCommandColumn);
53
- export { AXGridCommandColumn };
54
- let CommandRenderer = class CommandRenderer {
35
+ }
36
+ AXGridCommandColumn.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.8", ngImport: i0, type: AXGridCommandColumn, deps: null, target: i0.ɵɵFactoryTarget.Component });
37
+ AXGridCommandColumn.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.8", type: AXGridCommandColumn, selector: "ax-command-column", inputs: { items: "items" }, outputs: { onItemClick: "onItemClick" }, providers: [{ provide: AXGridDataColumn, useExisting: AXGridCommandColumn }], usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
38
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.8", ngImport: i0, type: AXGridCommandColumn, decorators: [{
39
+ type: Component,
40
+ args: [{
41
+ selector: 'ax-command-column',
42
+ template: '',
43
+ providers: [{ provide: AXGridDataColumn, useExisting: AXGridCommandColumn }],
44
+ changeDetection: ChangeDetectionStrategy.OnPush,
45
+ encapsulation: ViewEncapsulation.None
46
+ }]
47
+ }], propDecorators: { items: [{
48
+ type: Input
49
+ }], onItemClick: [{
50
+ type: Output
51
+ }] } });
52
+ export class CommandRenderer {
55
53
  constructor() {
56
54
  this.items = [];
57
55
  }
@@ -78,11 +76,26 @@ let CommandRenderer = class CommandRenderer {
78
76
  });
79
77
  }
80
78
  }
81
- };
82
- CommandRenderer = __decorate([
83
- Component({
84
- selector: 'ax-command-cell',
85
- template: `
79
+ }
80
+ CommandRenderer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.8", ngImport: i0, type: CommandRenderer, deps: [], target: i0.ɵɵFactoryTarget.Component });
81
+ CommandRenderer.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.8", type: CommandRenderer, selector: "ax-command-cell", ngImport: i0, template: `
82
+ <button
83
+ *ngFor="let item of items; let i = index"
84
+ class="ax button md ax-grid-command-button {{ item.style || 'ax primary blank' }}"
85
+ [class.disabled]="item.disable"
86
+ type="button"
87
+ [title]="item.tooltip"
88
+ [attr.tabindex]="i"
89
+ (click)="onClick(item, $event)"
90
+ >
91
+ <i [ngClass]="item.icon"></i>{{ item.text }}
92
+ </button>
93
+ `, isInline: true, directives: [{ type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
94
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.8", ngImport: i0, type: CommandRenderer, decorators: [{
95
+ type: Component,
96
+ args: [{
97
+ selector: 'ax-command-cell',
98
+ template: `
86
99
  <button
87
100
  *ngFor="let item of items; let i = index"
88
101
  class="ax button md ax-grid-command-button {{ item.style || 'ax primary blank' }}"
@@ -95,10 +108,8 @@ CommandRenderer = __decorate([
95
108
  <i [ngClass]="item.icon"></i>{{ item.text }}
96
109
  </button>
97
110
  `,
98
- encapsulation: ViewEncapsulation.None,
99
- changeDetection: ChangeDetectionStrategy.OnPush
100
- }),
101
- __metadata("design:paramtypes", [])
102
- ], CommandRenderer);
103
- export { CommandRenderer };
104
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tbWFuZC1jb2x1bW4uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGFjb3JleC9kYXRhLWdyaWQvIiwic291cmNlcyI6WyJsaWIvZGF0YS1ncmlkL2NvbHVtbnMvY29tbWFuZC1jb2x1bW4uY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsT0FBTyxFQUFFLGdCQUFnQixFQUFFLE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dGEsXHJcbiAgICAgICAgaHRtbEV2ZW50OiBlXHJcbiAgICAgIH0pO1xyXG4gICAgfVxyXG4gIH1cclxufVxyXG4iXX0=
111
+ encapsulation: ViewEncapsulation.None,
112
+ changeDetection: ChangeDetectionStrategy.OnPush
113
+ }]
114
+ }], ctorParameters: function () { return []; } });
115
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tbWFuZC1jb2x1bW4uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYWNvcmV4L2RhdGEtZ3JpZC9zcmMvbGliL2RhdGEtZ3JpZC9jb2x1bW5zL2NvbW1hbmQtY29sdW1uLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSxvQkFBb0IsQ0FBQztBQUN0RCxPQUFPLEVBQUUsdUJBQXVCLEVBQUUsU0FBUyxFQUFFLEtBQUssRUFBRSxZQUFZLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSxFQUFxQixNQUFNLGVBQWUsQ0FBQzs7O0FBZXRJLE1BQU0sT0FBTyxtQkFBb0IsU0FBUSxnQkFBZ0I7SUFQekQ7O1FBU0UsVUFBSyxHQUE0QyxFQUFFLENBQUM7UUFHcEQsZ0JBQVcsR0FBd0MsSUFBSSxZQUFZLEVBQXlCLENBQUM7S0EwQjlGO0lBeEJDLE1BQU07UUFDSixNQUFNLEdBQUcsR0FBRyxLQUFLLENBQUMsTUFBTSxFQUFFLENBQUM7UUFDM0IsSUFBSSxDQUFDLEdBQUcsQ0FBQyxxQkFBcUIsRUFBRTtZQUM5QixHQUFHLENBQUMscUJBQXFCLEdBQUcsZUFBZSxDQUFDO1NBQzdDO1FBQ0QsR0FBRyxDQUFDLGtCQUFrQixHQUFHO1lBQ3ZCLEtBQUss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GlvbicgPyBwYXJhbXMuaXRlbXMoeyBkYXRhOiB0aGlzLm5vZGUuZGF0YSB9KSA6IEFycmF5LmlzQXJyYXkocGFyYW1zLml0ZW1zKSA/IHBhcmFtcy5pdGVtcyA6IFtdO1xyXG4gICAgdGhpcy5jbGlja0NhbGxiYWNrID0gcGFyYW1zLm9uQ2xpY2s7XHJcbiAgfVxyXG5cclxuICBvbkNsaWNrKGl0ZW06IEFYTWVudUl0ZW0sIGU6IE1vdXNlRXZlbnQpIHtcclxuICAgIGlmICh0aGlzLmNsaWNrQ2FsbGJhY2sgJiYgIWl0ZW0uZGlzYWJsZSkge1xyXG4gICAgICB0aGlzLmNsaWNrQ2FsbGJhY2soe1xyXG4gICAgICAgIG5hbWU6IGl0ZW0ubmFtZSxcclxuICAgICAgICByb3dMZXZlbDogdGhpcy5ub2RlLmxldmVsLFxyXG4gICAgICAgIHJvd0luZGV4OiB0aGlzLm5vZGUucm93SW5kZXgsXHJcbiAgICAgICAgZGF0YTogdGhpcy5ub2RlLmRhdGEsXHJcbiAgICAgICAgaHRtbEV2ZW50OiBlXHJcbiAgICAgIH0pO1xyXG4gICAgfVxyXG4gIH1cclxufVxyXG4iXX0=
@@ -0,0 +1,112 @@
1
+ import { Component, ChangeDetectionStrategy, Input, ViewEncapsulation, ViewChild, ElementRef } from '@angular/core';
2
+ import { AXGridDataColumn } from './column.component';
3
+ import { AXDateTime, AXConfig } from '@acorex/core';
4
+ import { AXDatePickerComponent } from '@acorex/components';
5
+ import * as i0 from "@angular/core";
6
+ import * as i1 from "@acorex/components";
7
+ export 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
+ AXGridDateColumn.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.8", ngImport: i0, type: AXGridDateColumn, deps: [], target: i0.ɵɵFactoryTarget.Component });
47
+ AXGridDateColumn.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.8", type: AXGridDateColumn, selector: "ax-date-column", inputs: { format: "format", type: "type" }, providers: [{ provide: AXGridDataColumn, useExisting: AXGridDateColumn }], usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
48
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.8", ngImport: i0, type: AXGridDateColumn, decorators: [{
49
+ type: Component,
50
+ args: [{
51
+ selector: 'ax-date-column',
52
+ template: '',
53
+ providers: [{ provide: AXGridDataColumn, useExisting: AXGridDateColumn }],
54
+ changeDetection: ChangeDetectionStrategy.OnPush
55
+ }]
56
+ }], ctorParameters: function () { return []; }, propDecorators: { format: [{
57
+ type: Input
58
+ }], type: [{
59
+ type: Input
60
+ }] } });
61
+ export class AXDatePickerFilterComponent {
62
+ constructor() {
63
+ this.selectableHoliday = false;
64
+ this.type = 'jalali';
65
+ }
66
+ agInit(params) {
67
+ this.params = params;
68
+ }
69
+ ngAfterViewInit() {
70
+ }
71
+ ngOnDestroy() {
72
+ console.log(`Destroying DateComponent`);
73
+ }
74
+ onDateChanged(selectedDates) {
75
+ //this.date = selectedDates[0] || null;
76
+ this.params.onDateChanged();
77
+ }
78
+ getDate() {
79
+ return this.date;
80
+ }
81
+ setDate(date) {
82
+ this.date = date || null;
83
+ //this.picker.setDate(date);
84
+ }
85
+ setInputPlaceholder(placeholder) {
86
+ //this.div.nativeElement.setAttribute('placeholder', placeholder);
87
+ }
88
+ onValueChanged(e) {
89
+ this.setDate(e.value);
90
+ this.onDateChanged(e.value);
91
+ }
92
+ }
93
+ AXDatePickerFilterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.8", ngImport: i0, type: AXDatePickerFilterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
94
+ AXDatePickerFilterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.8", type: AXDatePickerFilterComponent, selector: "ax-data-picker-filter", viewQueries: [{ propertyName: "datePicker", first: true, predicate: AXDatePickerComponent, descendants: true }, { propertyName: "div", first: true, predicate: ["div"], descendants: true, read: ElementRef }], ngImport: i0, template: `<ax-date-picker [selectableHoliday]="selectableHoliday" [allowClear]="true" (onValueChanged)="onValueChanged($event)" size="sm">
95
+ </ax-date-picker>`, isInline: true, components: [{ type: i1.AXDatePickerComponent, selector: "ax-date-picker", inputs: ["dayStyle", "dayMinMaxResoan", "validation", "placeholder", "min", "max", "readonly", "disabled", "allowClear", "textAlign", "showToday", "selectableHoliday", "dateType", "showTodayButton", "openByClick", "size", "type", "value"], outputs: ["typeChange", "onValueChanged", "valueChange"] }], encapsulation: i0.ViewEncapsulation.None });
96
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.8", ngImport: i0, type: AXDatePickerFilterComponent, decorators: [{
97
+ type: Component,
98
+ args: [{
99
+ selector: 'ax-data-picker-filter',
100
+ template: `<ax-date-picker [selectableHoliday]="selectableHoliday" [allowClear]="true" (onValueChanged)="onValueChanged($event)" size="sm">
101
+ </ax-date-picker>`,
102
+ host: {},
103
+ encapsulation: ViewEncapsulation.None
104
+ }]
105
+ }], propDecorators: { datePicker: [{
106
+ type: ViewChild,
107
+ args: [AXDatePickerComponent]
108
+ }], div: [{
109
+ type: ViewChild,
110
+ args: ['div', { read: ElementRef }]
111
+ }] } });
112
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0ZS1jb2x1bW4uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYWNvcmV4L2RhdGEtZ3JpZC9zcmMvbGliL2RhdGEtZ3JpZC9jb2x1bW5zL2RhdGUtY29sdW1uLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFDQSxPQUFPLEVBQ0wsU0FBUyxFQUNULHVCQUF1QixFQUN2QixLQUFLLEVBQ0wsaUJBQWlCLEVBQ2pCLFNBQVMsRUFDVCxVQUFVLEVBQ1gsTUFBTSxlQUFlLENBQUM7QUFDdkIsT0FBTyxFQUFFLGdCQUFnQixFQUFFLE1BQU0sb0JBQW9CLENBQUM7QUFDdEQsT0FBTyxFQUFFLFVBQVUsRUFBRSxRQUFRLEVBQWtCLE1BQU0sY0FBYyxDQUFDO0FBQ3BFLE9BQU8sRUFBRSxxQkFBcUIsRUFBRSxNQUFNLG9CQUFvQixDQUFDOzs7QUFPM0QsTUFBTSxPQUFPLGdCQUFpQixTQUFRLGdCQUFnQjtJQUNwRDtRQUNFLEtBQUssRUFBRSxDQUFDO1FBT1YsU0FBSSxHQUFtQixRQUFRLENBQUMsR0FBRyxDQUFDLGVBQWUsQ0FBQyxDQUFDO0lBTnJELENBQUM7SUFRRCxNQUFNO1FBQ0osTUFBTSxHQUFHLEdBQUcsS0FBSyxDQUFDLE1BQU0sRUFBRSxDQUFDO1FBQzNCLEdBQUcsQ0FBQyxrQkFBa0IsR0FBRztZQUN2QixNQUFNLEVBQUUsSUFBSSxDQUFDLE1BQU07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