@acorex/data-grid 16.18.1 → 16.18.2
Sign up to get free protection for your applications and to get access to all the features.
- package/esm2022/lib/data-grid/columns/check-column.component.mjs +3 -3
- package/esm2022/lib/data-grid/columns/column.component.mjs +2 -2
- package/esm2022/lib/data-grid/columns/command-column.component.mjs +45 -34
- package/esm2022/lib/data-grid/datagrid.component.mjs +5 -5
- package/fesm2022/acorex-data-grid.mjs +49 -38
- package/fesm2022/acorex-data-grid.mjs.map +1 -1
- package/lib/data-grid/columns/command-column.component.d.ts +3 -3
- package/package.json +1 -1
@@ -9,8 +9,8 @@ export class AXGridCheckColumn extends AXGridDataColumn {
|
|
9
9
|
}
|
10
10
|
render() {
|
11
11
|
const col = super.render();
|
12
|
-
if (!col.
|
13
|
-
col.
|
12
|
+
if (!col.cellRenderer) {
|
13
|
+
col.cellRenderer = BooleanRenderer;
|
14
14
|
}
|
15
15
|
if (this.allowFiltering) {
|
16
16
|
col.filterFramework = BooleanFilterRenderer;
|
@@ -106,4 +106,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.5", ngImpor
|
|
106
106
|
type: ViewChild,
|
107
107
|
args: ['input', { static: true, read: ViewContainerRef }]
|
108
108
|
}] } });
|
109
|
-
//# sourceMappingURL=data:application/json;base64,
|
109
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hlY2stY29sdW1uLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvZGF0YS1ncmlkL3NyYy9saWIvZGF0YS1ncmlkL2NvbHVtbnMvY2hlY2stY29sdW1uLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQ0wsU0FBUyxFQUNULHVCQUF1QixFQUN2QixTQUFTLEVBQ1QsZ0JBQWdCLEdBQ2pCLE1BQU0sZUFBZSxDQUFDO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ueSk6IHZvaWQge1xuICAgIHRoaXMudmFsdWUgPSBtb2RlbCA/IG1vZGVsLnZhbHVlIDogbnVsbDtcbiAgfVxuXG4gIG5nQWZ0ZXJWaWV3SW5pdChwYXJhbXM6IElBZnRlckd1aUF0dGFjaGVkUGFyYW1zKTogdm9pZCB7XG4gICAgd2luZG93LnNldFRpbWVvdXQoKCkgPT4ge1xuICAgICAgdGhpcy5pbnB1dC5lbGVtZW50Lm5hdGl2ZUVsZW1lbnQuZm9jdXMoKTtcbiAgICB9KTtcbiAgfVxuXG4gIG9uQ2hhbmdlKG5ld1ZhbHVlKTogdm9pZCB7XG4gICAgaWYgKHRoaXMudmFsdWUgIT09IG5ld1ZhbHVlKSB7XG4gICAgICB0aGlzLnZhbHVlID0gbmV3VmFsdWU7XG4gICAgICB0aGlzLnBhcmFtcy5maWx0ZXJDaGFuZ2VkQ2FsbGJhY2soKTtcbiAgICB9XG4gIH1cbn1cbiJdfQ==
|
@@ -108,7 +108,7 @@ export class AXGridDataColumn {
|
|
108
108
|
}
|
109
109
|
//
|
110
110
|
if (this.cellTemplate != null) {
|
111
|
-
col.
|
111
|
+
col.cellRenderer = this.cellTemplate.renderer;
|
112
112
|
col.cellRendererParams = this.cellTemplate.params;
|
113
113
|
}
|
114
114
|
if (this.columnGroupShow) {
|
@@ -179,4 +179,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.5", ngImpor
|
|
179
179
|
}], wrapText: [{
|
180
180
|
type: Input
|
181
181
|
}] } });
|
182
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29sdW1uLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvZGF0YS1ncmlkL3NyYy9saWIvZGF0YS1ncmlkL2NvbHVtbnMvY29sdW1uLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10s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xsKSB7XG4gICAgICBjb2wuY2VsbFJlbmRlcmVyID0gdGhpcy5jZWxsVGVtcGxhdGUucmVuZGVyZXI7XG4gICAgICBjb2wuY2VsbFJlbmRlcmVyUGFyYW1zID0gdGhpcy5jZWxsVGVtcGxhdGUucGFyYW1zO1xuICAgIH1cblxuICAgIGlmICh0aGlzLmNvbHVtbkdyb3VwU2hvdykge1xuICAgICAgY29sLmNvbHVtbkdyb3VwU2hvdyA9IHRoaXMuY29sdW1uR3JvdXBTaG93O1xuICAgIH1cblxuICAgIGlmICh0aGlzLmNoZWNrYm94KSB7XG4gICAgICBjb2wuY2hlY2tib3hTZWxlY3Rpb24gPSAocGFyYW1zKSA9PiB7XG4gICAgICAgIHJldHVybiB0cnVlO1xuICAgICAgfTtcbiAgICAgIC8vICBjb2wuaGVhZGVyQ2hlY2tib3hTZWxlY3Rpb24gPSB0aGlzLmhlYWRlckNoZWNrYm94O1xuICAgIH1cbiAgICByZXR1cm4gY29sO1xuICB9XG59XG4iXX0=
|
@@ -1,5 +1,5 @@
|
|
1
|
+
import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output, ViewEncapsulation, } from '@angular/core';
|
1
2
|
import { AXGridDataColumn } from './column.component';
|
2
|
-
import { ChangeDetectionStrategy, Component, Input, EventEmitter, ViewEncapsulation, Output } from '@angular/core';
|
3
3
|
import * as i0 from "@angular/core";
|
4
4
|
import * as i1 from "@angular/common";
|
5
5
|
export class AXGridCommandColumn extends AXGridDataColumn {
|
@@ -7,8 +7,8 @@ export class AXGridCommandColumn extends AXGridDataColumn {
|
|
7
7
|
onItemClick = new EventEmitter();
|
8
8
|
render() {
|
9
9
|
const col = super.render();
|
10
|
-
if (!col.
|
11
|
-
col.
|
10
|
+
if (!col.cellRenderer) {
|
11
|
+
col.cellRenderer = CommandRenderer;
|
12
12
|
}
|
13
13
|
col.cellRendererParams = {
|
14
14
|
items: this.items,
|
@@ -18,9 +18,9 @@ export class AXGridCommandColumn extends AXGridDataColumn {
|
|
18
18
|
data: e.data,
|
19
19
|
rowIndex: e.rowIndex,
|
20
20
|
rowLevel: e.rowLevel,
|
21
|
-
htmlEvent: e.htmlEvent
|
21
|
+
htmlEvent: e.htmlEvent,
|
22
22
|
});
|
23
|
-
}
|
23
|
+
},
|
24
24
|
};
|
25
25
|
col.sortable = false;
|
26
26
|
col.filter = false;
|
@@ -39,7 +39,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.5", ngImpor
|
|
39
39
|
template: '',
|
40
40
|
providers: [{ provide: AXGridDataColumn, useExisting: AXGridCommandColumn }],
|
41
41
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
42
|
-
encapsulation: ViewEncapsulation.None
|
42
|
+
encapsulation: ViewEncapsulation.None,
|
43
43
|
}]
|
44
44
|
}], propDecorators: { items: [{
|
45
45
|
type: Input
|
@@ -60,7 +60,12 @@ export class CommandRenderer {
|
|
60
60
|
}
|
61
61
|
mapParams(params) {
|
62
62
|
this.node = params.node;
|
63
|
-
this.items =
|
63
|
+
this.items =
|
64
|
+
typeof params.items == 'function'
|
65
|
+
? params.items({ data: this.node.data })
|
66
|
+
: Array.isArray(params.items)
|
67
|
+
? params.items
|
68
|
+
: [];
|
64
69
|
this.clickCallback = params.onClick;
|
65
70
|
}
|
66
71
|
onClick(item, e) {
|
@@ -70,24 +75,27 @@ export class CommandRenderer {
|
|
70
75
|
rowLevel: this.node.level,
|
71
76
|
rowIndex: this.node.rowIndex,
|
72
77
|
data: this.node.data,
|
73
|
-
htmlEvent: e
|
78
|
+
htmlEvent: e,
|
74
79
|
});
|
75
80
|
}
|
76
81
|
}
|
77
82
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.5", ngImport: i0, type: CommandRenderer, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
78
83
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.0.5", type: CommandRenderer, selector: "ax-command-cell", ngImport: i0, template: `
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
84
|
+
<ng-container *ngFor="let item of items; let i = index">
|
85
|
+
<button
|
86
|
+
*ngIf="item.visible !== false"
|
87
|
+
class="ax button md ax-grid-command-button {{
|
88
|
+
item.style || 'ax primary blank'
|
89
|
+
}}"
|
90
|
+
[class.disabled]="item.disable"
|
91
|
+
type="button"
|
92
|
+
[title]="item.tooltip"
|
93
|
+
[attr.tabindex]="i"
|
94
|
+
(click)="onClick(item, $event)"
|
95
|
+
>
|
96
|
+
<i [ngClass]="item.icon"></i>{{ item.text }}
|
97
|
+
</button>
|
98
|
+
</ng-container>
|
91
99
|
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
92
100
|
}
|
93
101
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.5", ngImport: i0, type: CommandRenderer, decorators: [{
|
@@ -95,21 +103,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.5", ngImpor
|
|
95
103
|
args: [{
|
96
104
|
selector: 'ax-command-cell',
|
97
105
|
template: `
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
106
|
+
<ng-container *ngFor="let item of items; let i = index">
|
107
|
+
<button
|
108
|
+
*ngIf="item.visible !== false"
|
109
|
+
class="ax button md ax-grid-command-button {{
|
110
|
+
item.style || 'ax primary blank'
|
111
|
+
}}"
|
112
|
+
[class.disabled]="item.disable"
|
113
|
+
type="button"
|
114
|
+
[title]="item.tooltip"
|
115
|
+
[attr.tabindex]="i"
|
116
|
+
(click)="onClick(item, $event)"
|
117
|
+
>
|
118
|
+
<i [ngClass]="item.icon"></i>{{ item.text }}
|
119
|
+
</button>
|
120
|
+
</ng-container>
|
110
121
|
`,
|
111
122
|
encapsulation: ViewEncapsulation.None,
|
112
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
123
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
113
124
|
}]
|
114
125
|
}], ctorParameters: () => [] });
|
115
|
-
//# sourceMappingURL=data:application/json;base64,
|
126
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tbWFuZC1jb2x1bW4uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9kYXRhLWdyaWQvc3JjL2xpYi9kYXRhLWdyaWQvY29sdW1ucy9jb21tYW5kLWNvbHVtbi5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsT0FBTyxFQUNMLHVCQUF1QixFQUN2QixTQUFTLEVBQ1QsWUFBWSxFQUNaLEtBQUssRUFDTCxNQUFNLEVBQ04saUJBQWlCLEdBQ2xCLE1BQU0sZUFBZSxDQUFDO0FBSXZCLE9BQU8sRUFBRSxnQkFBZ0IsRUFBRSxNQUFNLG9CQUFvQixDQUFDOzs7QUFXdEQsTUFBTSxPQUFPLG1CQUFvQixTQUFRLGdCQUFnQjtJQUV2RCxLQUFLLEdBQTRDLEVBQUUsQ0FBQztJQUdwRCxXQUFXLEdBQ1QsSUFBSSxZQUFZLEVBQXlCLENBQUM7SUFFNUMsTUFBTTtRQUNKLE1BQU0sR0FBRyxHQUFHLEtBQUssQ0FBQyxNQUFNL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