@acorex/data-grid 6.5.71 → 6.5.73
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +7 -2
- package/esm2022/acorex-data-grid.mjs +5 -0
- package/esm2022/index.mjs +18 -0
- package/esm2022/lib/data-grid/columns/check-column.component.mjs +109 -0
- package/esm2022/lib/data-grid/columns/column.component.mjs +168 -0
- package/esm2022/lib/data-grid/columns/command-column.component.mjs +115 -0
- package/esm2022/lib/data-grid/columns/date-column.component.mjs +115 -0
- package/esm2022/lib/data-grid/columns/row-number-column.component.mjs +38 -0
- package/esm2022/lib/data-grid/columns/selection-column.component.mjs +43 -0
- package/esm2022/lib/data-grid/columns/text-column.component.mjs +97 -0
- package/esm2022/lib/data-grid/datagrid.component.mjs +721 -0
- package/esm2022/lib/data-grid/datagrid.events.mjs +2 -0
- package/esm2022/lib/data-grid/datagrid.module.mjs +143 -0
- package/esm2022/lib/data-grid/filters/filter.component.mjs +39 -0
- package/esm2022/lib/data-grid/templates/cell-template.component.mjs +58 -0
- package/esm2022/lib/data-grid/templates/detail-template.component.mjs +51 -0
- package/esm2022/lib/data-grid/templates/row-template.component.mjs +48 -0
- package/esm2022/lib/data-lov/data-lov-popup/data-lov-popup.component.mjs +121 -0
- package/esm2022/lib/data-lov/data-lov.component.mjs +175 -0
- package/esm2022/lib/data-lov/data-lov.module.mjs +23 -0
- package/{fesm2020 → fesm2022}/acorex-data-grid.mjs +380 -319
- package/fesm2022/acorex-data-grid.mjs.map +1 -0
- package/lib/data-grid/columns/check-column.component.d.ts +4 -4
- package/lib/data-grid/columns/column.component.d.ts +1 -1
- package/lib/data-grid/columns/command-column.component.d.ts +3 -3
- package/lib/data-grid/columns/date-column.component.d.ts +2 -2
- package/lib/data-grid/columns/row-number-column.component.d.ts +1 -1
- package/lib/data-grid/columns/selection-column.component.d.ts +1 -1
- package/lib/data-grid/columns/text-column.component.d.ts +3 -3
- package/lib/data-grid/datagrid.component.d.ts +1 -1
- package/lib/data-grid/filters/filter.component.d.ts +1 -1
- package/lib/data-grid/templates/cell-template.component.d.ts +2 -2
- package/lib/data-grid/templates/detail-template.component.d.ts +2 -2
- package/lib/data-grid/templates/row-template.component.d.ts +2 -2
- package/lib/data-lov/data-lov-popup/data-lov-popup.component.d.ts +1 -1
- package/lib/data-lov/data-lov.component.d.ts +1 -1
- package/package.json +12 -21
- package/acorex-data-grid.d.ts +0 -5
- package/esm2020/acorex-data-grid.mjs +0 -5
- package/esm2020/lib/data-grid/columns/check-column.component.mjs +0 -117
- package/esm2020/lib/data-grid/columns/column.component.mjs +0 -164
- package/esm2020/lib/data-grid/columns/command-column.component.mjs +0 -117
- package/esm2020/lib/data-grid/columns/date-column.component.mjs +0 -111
- package/esm2020/lib/data-grid/columns/row-number-column.component.mjs +0 -37
- package/esm2020/lib/data-grid/columns/selection-column.component.mjs +0 -42
- package/esm2020/lib/data-grid/columns/text-column.component.mjs +0 -89
- package/esm2020/lib/data-grid/datagrid.component.mjs +0 -698
- package/esm2020/lib/data-grid/datagrid.events.mjs +0 -2
- package/esm2020/lib/data-grid/datagrid.module.mjs +0 -145
- package/esm2020/lib/data-grid/filters/filter.component.mjs +0 -39
- package/esm2020/lib/data-grid/templates/cell-template.component.mjs +0 -53
- package/esm2020/lib/data-grid/templates/detail-template.component.mjs +0 -46
- package/esm2020/lib/data-grid/templates/row-template.component.mjs +0 -43
- package/esm2020/lib/data-lov/data-lov-popup/data-lov-popup.component.mjs +0 -114
- package/esm2020/lib/data-lov/data-lov.component.mjs +0 -165
- package/esm2020/lib/data-lov/data-lov.module.mjs +0 -23
- package/esm2020/public-api.mjs +0 -18
- package/fesm2015/acorex-data-grid.mjs +0 -1915
- package/fesm2015/acorex-data-grid.mjs.map +0 -1
- package/fesm2020/acorex-data-grid.mjs.map +0 -1
- /package/{public-api.d.ts → index.d.ts} +0 -0
package/package.json
CHANGED
@@ -1,37 +1,28 @@
|
|
1
1
|
{
|
2
2
|
"name": "@acorex/data-grid",
|
3
|
-
"version": "6.5.
|
3
|
+
"version": "6.5.73",
|
4
4
|
"peerDependencies": {
|
5
|
-
"@angular/common": "^
|
6
|
-
"@angular/core": "^
|
5
|
+
"@angular/common": "^16.2.0",
|
6
|
+
"@angular/core": "^16.2.0",
|
7
7
|
"ag-grid-angular": "^28.2.1",
|
8
8
|
"ag-grid-community": "^28.2.1",
|
9
9
|
"ag-grid-enterprise": "^28.2.1"
|
10
10
|
},
|
11
11
|
"dependencies": {
|
12
|
-
"
|
13
|
-
"ag-grid-community": "^28.2.1",
|
14
|
-
"ag-grid-enterprise": "^28.2.1",
|
15
|
-
"tslib": "^2.0.0"
|
12
|
+
"tslib": "^2.3.0"
|
16
13
|
},
|
17
|
-
"
|
18
|
-
"
|
19
|
-
"
|
20
|
-
"fesm2020": "fesm2020/acorex-data-grid.mjs",
|
21
|
-
"fesm2015": "fesm2015/acorex-data-grid.mjs",
|
22
|
-
"typings": "acorex-data-grid.d.ts",
|
14
|
+
"sideEffects": false,
|
15
|
+
"module": "fesm2022/acorex-data-grid.mjs",
|
16
|
+
"typings": "index.d.ts",
|
23
17
|
"exports": {
|
24
18
|
"./package.json": {
|
25
19
|
"default": "./package.json"
|
26
20
|
},
|
27
21
|
".": {
|
28
|
-
"types": "./
|
29
|
-
"
|
30
|
-
"
|
31
|
-
"
|
32
|
-
"node": "./fesm2015/acorex-data-grid.mjs",
|
33
|
-
"default": "./fesm2020/acorex-data-grid.mjs"
|
22
|
+
"types": "./index.d.ts",
|
23
|
+
"esm2022": "./esm2022/acorex-data-grid.mjs",
|
24
|
+
"esm": "./esm2022/acorex-data-grid.mjs",
|
25
|
+
"default": "./fesm2022/acorex-data-grid.mjs"
|
34
26
|
}
|
35
|
-
}
|
36
|
-
"sideEffects": false
|
27
|
+
}
|
37
28
|
}
|
package/acorex-data-grid.d.ts
DELETED
@@ -1,5 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Generated bundle index. Do not edit.
|
3
|
-
*/
|
4
|
-
export * from './public-api';
|
5
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWNvcmV4LWRhdGEtZ3JpZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL2Fjb3JleC9kYXRhLWdyaWQvc3JjL2Fjb3JleC1kYXRhLWdyaWQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWMtYXBpJztcbiJdfQ==
|
@@ -1,117 +0,0 @@
|
|
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.11", ngImport: i0, type: AXGridCheckColumn, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
22
|
-
AXGridCheckColumn.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", 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.11", 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.11", ngImport: i0, type: BooleanRenderer, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
43
|
-
BooleanRenderer.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", 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.11", 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.11", ngImport: i0, type: BooleanFilterRenderer, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
92
|
-
BooleanFilterRenderer.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", 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", "fitParent", "dropdownWidth", "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.11", 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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hlY2stY29sdW1uLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Fjb3JleC9kYXRhLWdyaWQvc3JjL2xpYi9kYXRhLWdyaWQvY29sdW1ucy9jaGVjay1jb2x1bW4uY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFDTCxTQUFTLEVBQ1Qs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c2V0TW9kZWwobW9kZWw6IGFueSk6IHZvaWQge1xuICAgIHRoaXMudmFsdWUgPSBtb2RlbCA/IG1vZGVsLnZhbHVlIDogbnVsbDtcbiAgfVxuXG4gIG5nQWZ0ZXJWaWV3SW5pdChwYXJhbXM6IElBZnRlckd1aUF0dGFjaGVkUGFyYW1zKTogdm9pZCB7XG4gICAgd2luZG93LnNldFRpbWVvdXQoKCkgPT4ge1xuICAgICAgdGhpcy5pbnB1dC5lbGVtZW50Lm5hdGl2ZUVsZW1lbnQuZm9jdXMoKTtcbiAgICB9KTtcbiAgfVxuXG4gIG9uQ2hhbmdlKG5ld1ZhbHVlKTogdm9pZCB7XG4gICAgaWYgKHRoaXMudmFsdWUgIT09IG5ld1ZhbHVlKSB7XG4gICAgICB0aGlzLnZhbHVlID0gbmV3VmFsdWU7XG4gICAgICB0aGlzLnBhcmFtcy5maWx0ZXJDaGFuZ2VkQ2FsbGJhY2soKTtcbiAgICB9XG4gIH1cbn1cbiJdfQ==
|
@@ -1,164 +0,0 @@
|
|
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.11", ngImport: i0, type: AXGridDataColumn, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
113
|
-
AXGridDataColumn.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", 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.11", 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
|
-
//# sourceM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NZW51VGFiJyk7XG4gICAgICAgICAgICBjb2wuZmxvYXRpbmdGaWx0ZXIgPSBmYWxzZTtcbiAgICAgICAgfVxuICAgICAgICBpZiAodGhpcy5tZW51Q29sdW1uRGlzYWJsZSA9PSB0cnVlKSB7XG4gICAgICAgICAgICBjb2wubWVudVRhYnMgPSBjb2wubWVudVRhYnMuZmlsdGVyKGMgPT4gYyAhPSAnY29sdW1uc01lbnVUYWInKTtcbiAgICAgICAgfVxuICAgICAgICBpZiAodGhpcy5tZW51SXRlbURpc2FibGUgPT0gdHJ1ZSkge1xuICAgICAgICAgICAgY29sLm1lbnVUYWJzID0gY29sLm1lbnVUYWJzLmZpbHRlcihjID0+IGMgIT0gJ2dlbmVyYWxNZW51VGFiJyk7XG4gICAgICAgIH1cbiAgICAgICAgaWYgKHRoaXMuY2FwdGlvbikge1xuICAgICAgICAgICAgY29sLmhlYWRlck5hbWUgPSB0aGlzLmNhcHRpb247XG4gICAgICAgIH1cbiAgICAgICAgaWYgKHRoaXMubWluV2lkdGgpIHtcbiAgICAgICAgICAgIGNvbC5taW5XaWR0aCA9IHRoaXMubWluV2lkdGg7XG4gICAgICAgIH1cbiAgICAgICAgaWYgKHRoaXMubWF4V2lkdGgpIHtcbiAgICAgICAgICAgIGNvbC5tYXhXaWR0aCA9IHRoaXMubWF4V2lkdGg7XG4gICAgICAgIH1cbiAgICAgICAgaWYgKHRoaXMucGlubmVkKSB7XG4gICAgICAgICAgICBjb2wucGlubmVkID0gdGhpcy5waW5uZWQgPT09ICdzdGFydCcgPyAncmlnaHQnIDogJ2xlZnQnO1xuICAgICAgICAgICAgLy8gVE9ETzogQ2hhbmdlIGJhc2VkIG9uIGxheW91dFxuICAgICAgICB9XG4gICAgICAgIGlmICh0aGlzLmFsbG93U29ydGluZykge1xuICAgICAgICAgICAgY29sLnNvcnRhYmxlID0gdGhpcy5hbGxvd1NvcnRpbmc7XG4gICAgICAgIH1cbiAgICAgICAgaWYgKHRoaXMuc29ydCkge1xuICAgICAgICAgICAgY29sLnNvcnQgPSB0aGlzLnNvcnQ7XG4gICAgICAgIH1cblxuICAgICAgICBpZiAodGhpcy5ncm91cEluZGV4ID49IDApIHtcbiAgICAgICAgICAgIGNvbC5yb3dHcm91cEluZGV4ID0gdGhpcy5ncm91cEluZGV4O1xuICAgICAgICAgICAgY29sLnJvd0dyb3VwID0gdHJ1ZTtcbiAgICAgICAgICAgIHRoaXMuZW5hYmxlUm93R3JvdXAgPSB0cnVlO1xuICAgICAgICB9XG5cbiAgICAgICAgaWYgKHRoaXMudHJlZUluZGV4ID49IDApIHtcbiAgICAgICAgICAgIGNvbC5yb3dHcm91cEluZGV4ID0gdGhpcy50cmVlSW5kZXg7XG4gICAgICAgICAgICBjb2wucm93R3JvdXAgPSBmYWxzZTtcbiAgICAgICAgfVxuICAgICAgICBpZiAodGhpcy5oaWRlKSB7XG4gICAgICAgICAgICBjb2wuaGlkZSA9IHRydWU7XG5cbiAgICAgICAgfVxuICAgICAgICBpZiAodGhpcy5lbmFibGVSb3dHcm91cCkge1xuICAgICAgICAgICAgY29sLmVuYWJsZVJvd0dyb3VwID0gdGhpcy5lbmFibGVSb3dHcm91cDtcbiAgICAgICAgfVxuXG4gICAgICAgIGlmICh0aGlzLmNlbGxDbGFzcykge1xuICAgICAgICAgICAgY29uc3QgVEhBVCA9IHRoaXM7XG4gICAgICAgICAgICBpZiAodGhpcy5jZWxsQ2xhc3MgaW5zdGFuY2VvZiBGdW5jdGlvbikge1xuICAgICAgICAgICAgICAgIGNvbC5jZWxsQ2xhc3MgPSAocCkgPT4ge1xuICAgICAgICAgICAgICAgICAgICByZXR1cm4gVEhBVC5jZWxsQ2xhc3Moe1xuICAgICAgICAgICAgICAgICAgICAgICAgY29sdW1uOiBUSEFULFxuICAgICAgICAgICAgICAgICAgICAgICAgcm93SW5kZXg6IHAubm9kZS5yb3dJbmRleCxcbiAgICAgICAgICAgICAgICAgICAgICAgIHJvd0xldmVsOiBwLm5vZGUubGV2ZWwsXG4gICAgICAgICAgICAgICAgICAgICAgICBkYXRhOiBwLmRhdGEsXG4gICAgICAgICAgICAgICAgICAgICAgICB2YWx1ZTogcC52YWx1ZVxuICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICB9O1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgZWxzZSB7XG4gICAgICAgICAgICAgICAgY29sLmNlbGxDbGFzcyA9IHRoaXMuY2VsbENsYXNzO1xuXG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgICAgLy9cbiAgICAgICAgaWYgKHRoaXMuY2VsbFRlbXBsYXRlICE9IG51bGwpIHtcbiAgICAgICAgICAgIGNvbC5jZWxsUmVuZGVyZXJGcmFtZXdvcmsgPSB0aGlzLmNlbGxUZW1wbGF0ZS5yZW5kZXJlcjtcbiAgICAgICAgICAgIGNvbC5jZWxsUmVuZGVyZXJQYXJhbXMgPSB0aGlzLmNlbGxUZW1wbGF0ZS5wYXJhbXM7XG4gICAgICAgIH1cblxuICAgICAgICBpZiAodGhpcy5jaGVja2JveCkge1xuICAgICAgICAgICAgY29sLmNoZWNrYm94U2VsZWN0aW9uID0gKHBhcmFtcykgPT4ge1xuICAgICAgICAgICAgICAgIHJldHVybiB0cnVlO1xuICAgICAgICAgICAgfTtcbiAgICAgICAgICAgIC8vICBjb2wuaGVhZGVyQ2hlY2tib3hTZWxlY3Rpb24gPSB0aGlzLmhlYWRlckNoZWNrYm94O1xuICAgICAgICB9XG4gICAgICAgIHJldHVybiBjb2w7XG4gICAgfVxufVxuXG5cblxuXG5cblxuXG5cbiJdfQ==
|
@@ -1,117 +0,0 @@
|
|
1
|
-
import { AXGridDataColumn } from './column.component';
|
2
|
-
import { ChangeDetectionStrategy, Component, Input, EventEmitter, ViewEncapsulation, Output } from '@angular/core';
|
3
|
-
import * as i0 from "@angular/core";
|
4
|
-
import * as i1 from "@angular/common";
|
5
|
-
export class AXGridCommandColumn extends AXGridDataColumn {
|
6
|
-
constructor() {
|
7
|
-
super(...arguments);
|
8
|
-
this.items = [];
|
9
|
-
this.onItemClick = new EventEmitter();
|
10
|
-
}
|
11
|
-
render() {
|
12
|
-
const col = super.render();
|
13
|
-
if (!col.cellRendererFramework) {
|
14
|
-
col.cellRendererFramework = CommandRenderer;
|
15
|
-
}
|
16
|
-
col.cellRendererParams = {
|
17
|
-
items: this.items,
|
18
|
-
onClick: (e) => {
|
19
|
-
this.onItemClick.emit({
|
20
|
-
command: e.name,
|
21
|
-
data: e.data,
|
22
|
-
rowIndex: e.rowIndex,
|
23
|
-
rowLevel: e.rowLevel,
|
24
|
-
htmlEvent: e.htmlEvent
|
25
|
-
});
|
26
|
-
}
|
27
|
-
};
|
28
|
-
col.sortable = false;
|
29
|
-
col.filter = false;
|
30
|
-
col.valueGetter = (params) => {
|
31
|
-
return this.items;
|
32
|
-
};
|
33
|
-
return col;
|
34
|
-
}
|
35
|
-
}
|
36
|
-
AXGridCommandColumn.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXGridCommandColumn, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
37
|
-
AXGridCommandColumn.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", 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.11", 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 {
|
53
|
-
constructor() {
|
54
|
-
this.items = [];
|
55
|
-
}
|
56
|
-
agInit(params) {
|
57
|
-
this.mapParams(params);
|
58
|
-
}
|
59
|
-
refresh(params) {
|
60
|
-
this.mapParams(params);
|
61
|
-
return true;
|
62
|
-
}
|
63
|
-
mapParams(params) {
|
64
|
-
this.node = params.node;
|
65
|
-
this.items = typeof params.items == 'function' ? params.items({ data: this.node.data }) : Array.isArray(params.items) ? params.items : [];
|
66
|
-
this.clickCallback = params.onClick;
|
67
|
-
}
|
68
|
-
onClick(item, e) {
|
69
|
-
if (this.clickCallback && !item.disable) {
|
70
|
-
this.clickCallback({
|
71
|
-
name: item.name,
|
72
|
-
rowLevel: this.node.level,
|
73
|
-
rowIndex: this.node.rowIndex,
|
74
|
-
data: this.node.data,
|
75
|
-
htmlEvent: e
|
76
|
-
});
|
77
|
-
}
|
78
|
-
}
|
79
|
-
}
|
80
|
-
CommandRenderer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CommandRenderer, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
81
|
-
CommandRenderer.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: CommandRenderer, selector: "ax-command-cell", ngImport: i0, template: `
|
82
|
-
<ng-container *ngFor="let item of items; let i = index">
|
83
|
-
<button *ngIf="item.visible !== false"
|
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
|
-
</ng-container>
|
94
|
-
`, isInline: true, directives: [{ type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
95
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CommandRenderer, decorators: [{
|
96
|
-
type: Component,
|
97
|
-
args: [{
|
98
|
-
selector: 'ax-command-cell',
|
99
|
-
template: `
|
100
|
-
<ng-container *ngFor="let item of items; let i = index">
|
101
|
-
<button *ngIf="item.visible !== false"
|
102
|
-
class="ax button md ax-grid-command-button {{ item.style || 'ax primary blank' }}"
|
103
|
-
[class.disabled]="item.disable"
|
104
|
-
type="button"
|
105
|
-
[title]="item.tooltip"
|
106
|
-
[attr.tabindex]="i"
|
107
|
-
(click)="onClick(item, $event)"
|
108
|
-
>
|
109
|
-
<i [ngClass]="item.icon"></i>{{ item.text }}
|
110
|
-
</button>
|
111
|
-
</ng-container>
|
112
|
-
`,
|
113
|
-
encapsulation: ViewEncapsulation.None,
|
114
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
115
|
-
}]
|
116
|
-
}], ctorParameters: function () { return []; } });
|
117
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tbWFuZC1jb2x1bW4uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYWNvcmV4L2RhdGEtZ3JpZC9zcmMvbGliL2RhdGEtZ3JpZC9jb2x1bW5zL2NvbW1hbmQtY29sdW1uLmN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RlLmRhdGEsXG4gICAgICAgIGh0bWxFdmVudDogZVxuICAgICAgfSk7XG4gICAgfVxuICB9XG59XG4iXX0=
|
@@ -1,111 +0,0 @@
|
|
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.11", ngImport: i0, type: AXGridDateColumn, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
47
|
-
AXGridDateColumn.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", 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.11", 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
|
-
}
|
73
|
-
onDateChanged(selectedDates) {
|
74
|
-
//this.date = selectedDates[0] || null;
|
75
|
-
this.params.onDateChanged();
|
76
|
-
}
|
77
|
-
getDate() {
|
78
|
-
return this.date;
|
79
|
-
}
|
80
|
-
setDate(date) {
|
81
|
-
this.date = date || null;
|
82
|
-
//this.picker.setDate(date);
|
83
|
-
}
|
84
|
-
setInputPlaceholder(placeholder) {
|
85
|
-
//this.div.nativeElement.setAttribute('placeholder', placeholder);
|
86
|
-
}
|
87
|
-
onValueChanged(e) {
|
88
|
-
this.setDate(e.value);
|
89
|
-
this.onDateChanged(e.value);
|
90
|
-
}
|
91
|
-
}
|
92
|
-
AXDatePickerFilterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXDatePickerFilterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
93
|
-
AXDatePickerFilterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", 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">
|
94
|
-
</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 });
|
95
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXDatePickerFilterComponent, decorators: [{
|
96
|
-
type: Component,
|
97
|
-
args: [{
|
98
|
-
selector: 'ax-data-picker-filter',
|
99
|
-
template: `<ax-date-picker [selectableHoliday]="selectableHoliday" [allowClear]="true" (onValueChanged)="onValueChanged($event)" size="sm">
|
100
|
-
</ax-date-picker>`,
|
101
|
-
host: {},
|
102
|
-
encapsulation: ViewEncapsulation.None
|
103
|
-
}]
|
104
|
-
}], propDecorators: { datePicker: [{
|
105
|
-
type: ViewChild,
|
106
|
-
args: [AXDatePickerComponent]
|
107
|
-
}], div: [{
|
108
|
-
type: ViewChild,
|
109
|
-
args: ['div', { read: ElementRef }]
|
110
|
-
}] } });
|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