@acorex/data-grid 6.5.29 → 6.5.32
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +2 -2
- package/acorex-data-grid.d.ts +5 -5
- package/esm2020/acorex-data-grid.mjs +4 -4
- package/esm2020/lib/data-grid/columns/check-column.component.mjs +117 -117
- package/esm2020/lib/data-grid/columns/column.component.mjs +164 -164
- package/esm2020/lib/data-grid/columns/command-column.component.mjs +115 -115
- package/esm2020/lib/data-grid/columns/date-column.component.mjs +111 -111
- package/esm2020/lib/data-grid/columns/row-number-column.component.mjs +37 -37
- package/esm2020/lib/data-grid/columns/selection-column.component.mjs +42 -42
- package/esm2020/lib/data-grid/columns/text-column.component.mjs +89 -89
- package/esm2020/lib/data-grid/datagrid.component.mjs +667 -667
- package/esm2020/lib/data-grid/datagrid.events.mjs +2 -2
- package/esm2020/lib/data-grid/datagrid.module.mjs +145 -145
- package/esm2020/lib/data-grid/filters/filter.component.mjs +39 -39
- package/esm2020/lib/data-grid/templates/cell-template.component.mjs +53 -53
- package/esm2020/lib/data-grid/templates/detail-template.component.mjs +46 -46
- package/esm2020/lib/data-grid/templates/row-template.component.mjs +43 -43
- package/esm2020/lib/data-lov/data-lov-popup/data-lov-popup.component.mjs +114 -114
- package/esm2020/lib/data-lov/data-lov.component.mjs +165 -165
- package/esm2020/lib/data-lov/data-lov.module.mjs +23 -23
- package/esm2020/public-api.mjs +18 -18
- package/fesm2015/acorex-data-grid.mjs +1833 -1833
- package/fesm2015/acorex-data-grid.mjs.map +1 -1
- package/fesm2020/acorex-data-grid.mjs +1833 -1833
- package/fesm2020/acorex-data-grid.mjs.map +1 -1
- package/lib/data-grid/columns/check-column.component.d.ts +37 -37
- package/lib/data-grid/columns/column.component.d.ts +32 -32
- package/lib/data-grid/columns/command-column.component.d.ts +27 -27
- package/lib/data-grid/columns/date-column.component.d.ts +32 -32
- package/lib/data-grid/columns/row-number-column.component.d.ts +10 -10
- package/lib/data-grid/columns/selection-column.component.d.ts +12 -12
- package/lib/data-grid/columns/text-column.component.d.ts +25 -25
- package/lib/data-grid/datagrid.component.d.ts +142 -142
- package/lib/data-grid/datagrid.events.d.ts +20 -20
- package/lib/data-grid/datagrid.module.d.ts +23 -23
- package/lib/data-grid/filters/filter.component.d.ts +5 -5
- package/lib/data-grid/templates/cell-template.component.d.ts +22 -22
- package/lib/data-grid/templates/detail-template.component.d.ts +21 -21
- package/lib/data-grid/templates/row-template.component.d.ts +20 -20
- package/lib/data-lov/data-lov-popup/data-lov-popup.component.d.ts +33 -33
- package/lib/data-lov/data-lov.component.d.ts +43 -43
- package/lib/data-lov/data-lov.module.d.ts +12 -12
- package/package.json +1 -1
- package/public-api.d.ts +17 -17
@@ -1,46 +1,46 @@
|
|
1
|
-
import { Component, ContentChild, TemplateRef, Input } from '@angular/core';
|
2
|
-
import * as i0 from "@angular/core";
|
3
|
-
import * as i1 from "@angular/common";
|
4
|
-
export class AXDataGridDetailTemplateComponent {
|
5
|
-
constructor() {
|
6
|
-
this.height = 100;
|
7
|
-
this.renderer = AXDataGridDetailTemplateRenderer;
|
8
|
-
}
|
9
|
-
ngOnInit() {
|
10
|
-
this.params = {
|
11
|
-
templateRef: this.templateRef
|
12
|
-
};
|
13
|
-
}
|
14
|
-
}
|
15
|
-
AXDataGridDetailTemplateComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXDataGridDetailTemplateComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
16
|
-
AXDataGridDetailTemplateComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: AXDataGridDetailTemplateComponent, selector: "ax-grid-detail-template", inputs: { height: "height" }, queries: [{ propertyName: "templateRef", first: true, predicate: TemplateRef, descendants: true, static: true }], ngImport: i0, template: `<ng-content></ng-content>`, isInline: true });
|
17
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXDataGridDetailTemplateComponent, decorators: [{
|
18
|
-
type: Component,
|
19
|
-
args: [{
|
20
|
-
selector: 'ax-grid-detail-template',
|
21
|
-
template: `<ng-content></ng-content>`
|
22
|
-
}]
|
23
|
-
}], ctorParameters: function () { return []; }, propDecorators: { templateRef: [{
|
24
|
-
type: ContentChild,
|
25
|
-
args: [TemplateRef, { static: true }]
|
26
|
-
}], height: [{
|
27
|
-
type: Input
|
28
|
-
}] } });
|
29
|
-
export class AXDataGridDetailTemplateRenderer {
|
30
|
-
refresh(params) {
|
31
|
-
return false;
|
32
|
-
}
|
33
|
-
agInit(params) {
|
34
|
-
this.data = params.data;
|
35
|
-
this.templateRef = params.templateRef;
|
36
|
-
}
|
37
|
-
}
|
38
|
-
AXDataGridDetailTemplateRenderer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXDataGridDetailTemplateRenderer, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
39
|
-
AXDataGridDetailTemplateRenderer.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: AXDataGridDetailTemplateRenderer, selector: "ng-component", ngImport: i0, template: `<ng-container *ngTemplateOutlet='templateRef; context: { $implicit: data }'></ng-container>`, isInline: true, directives: [{ type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
|
40
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXDataGridDetailTemplateRenderer, decorators: [{
|
41
|
-
type: Component,
|
42
|
-
args: [{
|
43
|
-
template: `<ng-container *ngTemplateOutlet='templateRef; context: { $implicit: data }'></ng-container>`
|
44
|
-
}]
|
45
|
-
}] });
|
46
|
-
//# sourceMappingURL=data:application/json;base64,
|
1
|
+
import { Component, ContentChild, TemplateRef, Input } from '@angular/core';
|
2
|
+
import * as i0 from "@angular/core";
|
3
|
+
import * as i1 from "@angular/common";
|
4
|
+
export class AXDataGridDetailTemplateComponent {
|
5
|
+
constructor() {
|
6
|
+
this.height = 100;
|
7
|
+
this.renderer = AXDataGridDetailTemplateRenderer;
|
8
|
+
}
|
9
|
+
ngOnInit() {
|
10
|
+
this.params = {
|
11
|
+
templateRef: this.templateRef
|
12
|
+
};
|
13
|
+
}
|
14
|
+
}
|
15
|
+
AXDataGridDetailTemplateComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXDataGridDetailTemplateComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
16
|
+
AXDataGridDetailTemplateComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: AXDataGridDetailTemplateComponent, selector: "ax-grid-detail-template", inputs: { height: "height" }, queries: [{ propertyName: "templateRef", first: true, predicate: TemplateRef, descendants: true, static: true }], ngImport: i0, template: `<ng-content></ng-content>`, isInline: true });
|
17
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXDataGridDetailTemplateComponent, decorators: [{
|
18
|
+
type: Component,
|
19
|
+
args: [{
|
20
|
+
selector: 'ax-grid-detail-template',
|
21
|
+
template: `<ng-content></ng-content>`
|
22
|
+
}]
|
23
|
+
}], ctorParameters: function () { return []; }, propDecorators: { templateRef: [{
|
24
|
+
type: ContentChild,
|
25
|
+
args: [TemplateRef, { static: true }]
|
26
|
+
}], height: [{
|
27
|
+
type: Input
|
28
|
+
}] } });
|
29
|
+
export class AXDataGridDetailTemplateRenderer {
|
30
|
+
refresh(params) {
|
31
|
+
return false;
|
32
|
+
}
|
33
|
+
agInit(params) {
|
34
|
+
this.data = params.data;
|
35
|
+
this.templateRef = params.templateRef;
|
36
|
+
}
|
37
|
+
}
|
38
|
+
AXDataGridDetailTemplateRenderer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXDataGridDetailTemplateRenderer, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
39
|
+
AXDataGridDetailTemplateRenderer.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: AXDataGridDetailTemplateRenderer, selector: "ng-component", ngImport: i0, template: `<ng-container *ngTemplateOutlet='templateRef; context: { $implicit: data }'></ng-container>`, isInline: true, directives: [{ type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
|
40
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXDataGridDetailTemplateRenderer, decorators: [{
|
41
|
+
type: Component,
|
42
|
+
args: [{
|
43
|
+
template: `<ng-container *ngTemplateOutlet='templateRef; context: { $implicit: data }'></ng-container>`
|
44
|
+
}]
|
45
|
+
}] });
|
46
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGV0YWlsLXRlbXBsYXRlLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Fjb3JleC9kYXRhLWdyaWQvc3JjL2xpYi9kYXRhLWdyaWQvdGVtcGxhdGVzL2RldGFpbC10ZW1wbGF0ZS5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxZQUFZLEVBQUUsV0FBVyxFQUFFLEtBQUssRUFBcUIsTUFBTSxlQUFlLENBQUM7OztBQVEvRixNQUFNLE9BQU8saUNBQWlDO0lBSTFDO1FBVUEsV0FBTSxHQUFXLEdBQUcsQ0FBQztRQVRqQixJQUFJLENBQUMsUUFBUSxHQUFHLGdDQUFnQyxDQUFDO0lBQ3JELENBQUM7SUFDRCxRQUFRO1FBQ0osSUFBSSxDQUFDLE1BQU0sR0FBRztZQUNWLFdBQV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bml0KHBhcmFtczogYW55KTogdm9pZCB7XG4gICAgICAgIHRoaXMuZGF0YSA9IHBhcmFtcy5kYXRhO1xuICAgICAgICB0aGlzLnRlbXBsYXRlUmVmID0gcGFyYW1zLnRlbXBsYXRlUmVmO1xuICAgIH1cbn0iXX0=
|
@@ -1,43 +1,43 @@
|
|
1
|
-
import { Component, ContentChild, TemplateRef } from '@angular/core';
|
2
|
-
import * as i0 from "@angular/core";
|
3
|
-
import * as i1 from "@angular/common";
|
4
|
-
export class AXDataGridRowTemplateComponent {
|
5
|
-
constructor() {
|
6
|
-
this.renderer = AXDataGridRowTemplateRenderer;
|
7
|
-
}
|
8
|
-
ngOnInit() {
|
9
|
-
this.params = {
|
10
|
-
templateRef: this.templateRef
|
11
|
-
};
|
12
|
-
}
|
13
|
-
}
|
14
|
-
AXDataGridRowTemplateComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXDataGridRowTemplateComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
15
|
-
AXDataGridRowTemplateComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: AXDataGridRowTemplateComponent, selector: "ax-row-template", queries: [{ propertyName: "templateRef", first: true, predicate: TemplateRef, descendants: true, static: true }], ngImport: i0, template: `<ng-content></ng-content>`, isInline: true });
|
16
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXDataGridRowTemplateComponent, decorators: [{
|
17
|
-
type: Component,
|
18
|
-
args: [{
|
19
|
-
selector: 'ax-row-template',
|
20
|
-
template: `<ng-content></ng-content>`
|
21
|
-
}]
|
22
|
-
}], ctorParameters: function () { return []; }, propDecorators: { templateRef: [{
|
23
|
-
type: ContentChild,
|
24
|
-
args: [TemplateRef, { static: true }]
|
25
|
-
}] } });
|
26
|
-
export class AXDataGridRowTemplateRenderer {
|
27
|
-
refresh(params) {
|
28
|
-
return false;
|
29
|
-
}
|
30
|
-
agInit(params) {
|
31
|
-
this.data = params.data.callRecords;
|
32
|
-
this.templateRef = params.templateRef;
|
33
|
-
}
|
34
|
-
}
|
35
|
-
AXDataGridRowTemplateRenderer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXDataGridRowTemplateRenderer, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
36
|
-
AXDataGridRowTemplateRenderer.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: AXDataGridRowTemplateRenderer, selector: "ng-component", ngImport: i0, template: `<ng-container *ngTemplateOutlet='templateRef; context: { $implicit: data }'></ng-container>`, isInline: true, directives: [{ type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
|
37
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXDataGridRowTemplateRenderer, decorators: [{
|
38
|
-
type: Component,
|
39
|
-
args: [{
|
40
|
-
template: `<ng-container *ngTemplateOutlet='templateRef; context: { $implicit: data }'></ng-container>`
|
41
|
-
}]
|
42
|
-
}] });
|
43
|
-
//# sourceMappingURL=data:application/json;base64,
|
1
|
+
import { Component, ContentChild, TemplateRef } from '@angular/core';
|
2
|
+
import * as i0 from "@angular/core";
|
3
|
+
import * as i1 from "@angular/common";
|
4
|
+
export class AXDataGridRowTemplateComponent {
|
5
|
+
constructor() {
|
6
|
+
this.renderer = AXDataGridRowTemplateRenderer;
|
7
|
+
}
|
8
|
+
ngOnInit() {
|
9
|
+
this.params = {
|
10
|
+
templateRef: this.templateRef
|
11
|
+
};
|
12
|
+
}
|
13
|
+
}
|
14
|
+
AXDataGridRowTemplateComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXDataGridRowTemplateComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
15
|
+
AXDataGridRowTemplateComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: AXDataGridRowTemplateComponent, selector: "ax-row-template", queries: [{ propertyName: "templateRef", first: true, predicate: TemplateRef, descendants: true, static: true }], ngImport: i0, template: `<ng-content></ng-content>`, isInline: true });
|
16
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXDataGridRowTemplateComponent, decorators: [{
|
17
|
+
type: Component,
|
18
|
+
args: [{
|
19
|
+
selector: 'ax-row-template',
|
20
|
+
template: `<ng-content></ng-content>`
|
21
|
+
}]
|
22
|
+
}], ctorParameters: function () { return []; }, propDecorators: { templateRef: [{
|
23
|
+
type: ContentChild,
|
24
|
+
args: [TemplateRef, { static: true }]
|
25
|
+
}] } });
|
26
|
+
export class AXDataGridRowTemplateRenderer {
|
27
|
+
refresh(params) {
|
28
|
+
return false;
|
29
|
+
}
|
30
|
+
agInit(params) {
|
31
|
+
this.data = params.data.callRecords;
|
32
|
+
this.templateRef = params.templateRef;
|
33
|
+
}
|
34
|
+
}
|
35
|
+
AXDataGridRowTemplateRenderer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXDataGridRowTemplateRenderer, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
36
|
+
AXDataGridRowTemplateRenderer.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: AXDataGridRowTemplateRenderer, selector: "ng-component", ngImport: i0, template: `<ng-container *ngTemplateOutlet='templateRef; context: { $implicit: data }'></ng-container>`, isInline: true, directives: [{ type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
|
37
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXDataGridRowTemplateRenderer, decorators: [{
|
38
|
+
type: Component,
|
39
|
+
args: [{
|
40
|
+
template: `<ng-container *ngTemplateOutlet='templateRef; context: { $implicit: data }'></ng-container>`
|
41
|
+
}]
|
42
|
+
}] });
|
43
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicm93LXRlbXBsYXRlLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Fjb3JleC9kYXRhLWdyaWQvc3JjL2xpYi9kYXRhLWdyaWQvdGVtcGxhdGVzL3Jvdy10ZW1wbGF0ZS5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxZQUFZLEVBQUUsV0FBVyxFQUFTLE1BQU0sZUFBZSxDQUFDOzs7QUFRNUUsTUFBTSxPQUFPLDhCQUE4QjtJQUl2QztRQUNJLElBQUksQ0FBQyxRQUFRLEdBQUcsNkJBQTZCLENBQUM7SUFDbEQsQ0FBQztJQUNELFFBQVE7UUFDSixJQUFJLENBQUMsTUFBTSxHQUFHO1lBQ1YsV0FBVyxFQUFFLElBQUksQ0FBQyxXQUFXO1NBQ2hDLENBQUE7SUFDTCxDQUFDOzs0SEFYUSw4QkFBOEI7Z0hBQTlCLDhCQUE4QixnR0FDekIsV0FBVyw4REFKZiwyQkFBMkI7NEZBRzVCLDhCQUE4QjtrQkFMMUMsU0FBUzttQkFBQztvQkFDUCxRQUFRLEVBQUUsaUJBQWlCO29CQUMzQixRQUFRLEVBQUUsMkJBQTJCO2lCQUN4QzswRUFHZ0QsV0FBVztzQkFBdkQsWUFBWTt1QkFBQyxXQUFXLEVBQUUsRUFBRSxNQUFNLEVBQUUsSUFBSSxFQUFFOztBQWlCL0MsTUFBTSxPQUFPLDZCQUE2QjtJQU10QyxPQUFPLENBQUMsTUFBVztRQUNmLE9BQU8s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iAgICAgICAgICAgIHRlbXBsYXRlUmVmOiB0aGlzLnRlbXBsYXRlUmVmXG4gICAgICAgIH1cbiAgICB9XG59XG5cbkBDb21wb25lbnQoe1xuICAgIHRlbXBsYXRlOiBgPG5nLWNvbnRhaW5lciAqbmdUZW1wbGF0ZU91dGxldD0ndGVtcGxhdGVSZWY7IGNvbnRleHQ6IHsgJGltcGxpY2l0OiBkYXRhIH0nPjwvbmctY29udGFpbmVyPmBcbn0pXG5cbmV4cG9ydCBjbGFzcyBBWERhdGFHcmlkUm93VGVtcGxhdGVSZW5kZXJlciBpbXBsZW1lbnRzIElDZWxsUmVuZGVyZXJBbmd1bGFyQ29tcCB7XG5cbiAgICB0ZW1wbGF0ZVJlZjogVGVtcGxhdGVSZWY8YW55PjtcblxuICAgIGRhdGE6IGFueTtcblxuICAgIHJlZnJlc2gocGFyYW1zOiBhbnkpOiBib29sZWFuIHtcbiAgICAgICAgcmV0dXJuIGZhbHNlO1xuICAgIH1cblxuICAgIGFnSW5pdChwYXJhbXM6IGFueSk6IHZvaWQge1xuICAgICAgICB0aGlzLmRhdGEgPSBwYXJhbXMuZGF0YS5jYWxsUmVjb3JkcztcbiAgICAgICAgdGhpcy50ZW1wbGF0ZVJlZiA9IHBhcmFtcy50ZW1wbGF0ZVJlZjtcbiAgICB9XG59Il19
|
@@ -1,114 +1,114 @@
|
|
1
|
-
import { Component, ViewChild, ChangeDetectorRef, ElementRef } from '@angular/core';
|
2
|
-
import { AXDataGridComponent } from '../../data-grid/datagrid.component';
|
3
|
-
import { AXTranslator, AXConfig } from '@acorex/core';
|
4
|
-
import { AXToolbarSearchComponent, AXBasePopupPageComponent } from '@acorex/components';
|
5
|
-
import * as i0 from "@angular/core";
|
6
|
-
import * as i1 from "../../data-grid/datagrid.component";
|
7
|
-
import * as i2 from "@acorex/components";
|
8
|
-
import * as i3 from "../../data-grid/columns/selection-column.component";
|
9
|
-
import * as i4 from "@angular/common";
|
10
|
-
export class AXDataLovPopupComponent extends AXBasePopupPageComponent {
|
11
|
-
constructor(cdr, ref) {
|
12
|
-
super();
|
13
|
-
this.cdr = cdr;
|
14
|
-
this.ref = ref;
|
15
|
-
this.columns = [];
|
16
|
-
this.selectedItems = [];
|
17
|
-
this.keyField = '';
|
18
|
-
this.allowNull = true;
|
19
|
-
this.rtl = AXConfig.get('layout.rtl');
|
20
|
-
this.selectedRows = [];
|
21
|
-
this.pagination = true;
|
22
|
-
}
|
23
|
-
ngOnInit() {
|
24
|
-
if (this.rtl == null) {
|
25
|
-
this.rtl = window.getComputedStyle(this.ref.nativeElement, null).getPropertyValue('direction') === 'rtl';
|
26
|
-
}
|
27
|
-
}
|
28
|
-
onDoneClick() {
|
29
|
-
if (this.selectedItems) {
|
30
|
-
this.close(this.selectedItems);
|
31
|
-
}
|
32
|
-
else {
|
33
|
-
this.close();
|
34
|
-
}
|
35
|
-
}
|
36
|
-
rowDoubleClicked(e) {
|
37
|
-
if (this.selectionMode == 'single') {
|
38
|
-
this.selectedItems = [];
|
39
|
-
}
|
40
|
-
this.selectedItems = this.selectedItems.filter((c) => c[this.keyField] != e.data.data[this.keyField]);
|
41
|
-
this.selectedItems.push(e.data.data);
|
42
|
-
this.onDoneClick();
|
43
|
-
}
|
44
|
-
onCancelClick() {
|
45
|
-
this.close();
|
46
|
-
}
|
47
|
-
rowSelectionChange(e) {
|
48
|
-
if (e.data.node.selected == true) {
|
49
|
-
this.selectedItems = this.selectedItems.filter((c) => c[this.keyField] != e.data.node.data[this.keyField]);
|
50
|
-
this.selectedItems.push(e.data.node.data);
|
51
|
-
}
|
52
|
-
else {
|
53
|
-
if (this.allowNull == true || (this.allowNull == false && this.selectedItems.length > 1)) {
|
54
|
-
this.selectedItems = this.selectedItems.filter((c) => c[this.keyField] != e.data.node.data[this.keyField]);
|
55
|
-
}
|
56
|
-
}
|
57
|
-
}
|
58
|
-
ngAfterViewInit() {
|
59
|
-
this.selectedItems.forEach((ele) => {
|
60
|
-
this.selectedRows.push(ele);
|
61
|
-
});
|
62
|
-
this.searchBox.focus();
|
63
|
-
if (this.dataSource.onDataReceived) {
|
64
|
-
this.dataSource.onDataReceived.subscribe((arg) => {
|
65
|
-
this.cdr.markForCheck();
|
66
|
-
this.cdr.detectChanges();
|
67
|
-
});
|
68
|
-
}
|
69
|
-
}
|
70
|
-
// onValueSearchChanged(e) {
|
71
|
-
// const params: AXDataSourceReadParams = {}
|
72
|
-
// params.searchText = e.value;
|
73
|
-
// // params.take = 100;
|
74
|
-
// // params.skip = 0
|
75
|
-
// this.dataSource.fetch(params);
|
76
|
-
// }
|
77
|
-
getFooterButtons() {
|
78
|
-
return [
|
79
|
-
{
|
80
|
-
text: AXTranslator.get('common.confirm'),
|
81
|
-
name: 'confirm',
|
82
|
-
style: 'ax primary',
|
83
|
-
icon: 'far fa-check-circle'
|
84
|
-
},
|
85
|
-
{
|
86
|
-
text: AXTranslator.get('common.cancel'),
|
87
|
-
name: 'cancel',
|
88
|
-
style: 'ax light',
|
89
|
-
icon: 'far fa-times'
|
90
|
-
}
|
91
|
-
];
|
92
|
-
}
|
93
|
-
onFooterButtonClick(e) {
|
94
|
-
if (e.name === 'confirm') {
|
95
|
-
this.onDoneClick();
|
96
|
-
}
|
97
|
-
if (e.name === 'cancel') {
|
98
|
-
this.onCancelClick();
|
99
|
-
}
|
100
|
-
}
|
101
|
-
}
|
102
|
-
AXDataLovPopupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXDataLovPopupComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
103
|
-
AXDataLovPopupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: AXDataLovPopupComponent, selector: "ng-component", viewQueries: [{ propertyName: "grid", first: true, predicate: ["grid"], descendants: true, static: true }, { propertyName: "searchBox", first: true, predicate: ["searchBox"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<div style=\"height: 70vh; padding: 0.5em;\">\
|
104
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXDataLovPopupComponent, decorators: [{
|
105
|
-
type: Component,
|
106
|
-
args: [{ template: "<div style=\"height: 70vh; padding: 0.5em;\">\
|
107
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }]; }, propDecorators: { grid: [{
|
108
|
-
type: ViewChild,
|
109
|
-
args: ['grid', { static: true }]
|
110
|
-
}], searchBox: [{
|
111
|
-
type: ViewChild,
|
112
|
-
args: ['searchBox']
|
113
|
-
}] } });
|
114
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0YS1sb3YtcG9wdXAuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYWNvcmV4L2RhdGEtZ3JpZC9zcmMvbGliL2RhdGEtbG92L2RhdGEtbG92LXBvcHVwL2RhdGEtbG92LXBvcHVwLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Fjb3JleC9kYXRhLWdyaWQvc3JjL2xpYi9kYXRhLWxvdi9kYXRhLWxvdi1wb3B1cC9kYXRhLWxvdi1wb3B1cC5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLFNBQVMsRUFBRSxpQkFBaUIsRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDcEYsT0FBTyxFQUFFLG1CQUFtQixFQUFrQyxNQUFNLG9DQUFvQyxDQUFDO0FBRXpHLE9BQU8sRUFBRSxZQUFZLEVBQWdCLFFBQVEsRUFBRSxNQUFNLGNBQWMsQ0FBQztBQUNwRSxPQUFPLEVBQ0w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ocm93RGJDbGljayk9XCJyb3dEb3VibGVDbGlja2VkKCRldmVudClcIlxyXG4gICAgICAgICAgICAocm93U2VsZWN0aW9uQ2hhbmdlKT1cInJvd1NlbGVjdGlvbkNoYW5nZSgkZXZlbnQpXCIgW2RhdGFTb3VyY2VdPVwiZGF0YVNvdXJjZVwiPlxyXG4gICAgICAgICAgICA8YXgtdG9vbGJhcj5cclxuICAgICAgICAgICAgICAgIDxheC10b29sYmFyLXNlYXJjaCAjc2VhcmNoQm94IHN0eWxlPVwid2lkdGg6IDEwMCU7XCI+PC9heC10b29sYmFyLXNlYXJjaD5cclxuICAgICAgICAgICAgPC9heC10b29sYmFyPlxyXG4gICAgICAgICAgICA8YXgtc2VsZWN0aW9uLWNvbHVtbiAqbmdJZj1cInNlbGVjdGlvbk1vZGU9PSAnc2luZ2xlJz8gZmFsc2UgOiB0cnVlXCI+PC9heC1zZWxlY3Rpb24tY29sdW1uPlxyXG4gICAgICAgICAgICA8IS0tIDxheC1kYXRhLXNvdXJjZSBbcHJvdmlkZURhdGFdPVwiZGF0YVNvdXJjZS5wcm92aWRlRGF0YVwiPlxyXG4gICAgICAgICAgICA8L2F4LWRhdGEtc291cmNlPiAtLT5cclxuICAgICAgICA8L2F4LWRhdGEtZ3JpZD5cclxuICAgIDwvZGl2PlxyXG48L2Rpdj4iXX0=
|
1
|
+
import { Component, ViewChild, ChangeDetectorRef, ElementRef } from '@angular/core';
|
2
|
+
import { AXDataGridComponent } from '../../data-grid/datagrid.component';
|
3
|
+
import { AXTranslator, AXConfig } from '@acorex/core';
|
4
|
+
import { AXToolbarSearchComponent, AXBasePopupPageComponent } from '@acorex/components';
|
5
|
+
import * as i0 from "@angular/core";
|
6
|
+
import * as i1 from "../../data-grid/datagrid.component";
|
7
|
+
import * as i2 from "@acorex/components";
|
8
|
+
import * as i3 from "../../data-grid/columns/selection-column.component";
|
9
|
+
import * as i4 from "@angular/common";
|
10
|
+
export class AXDataLovPopupComponent extends AXBasePopupPageComponent {
|
11
|
+
constructor(cdr, ref) {
|
12
|
+
super();
|
13
|
+
this.cdr = cdr;
|
14
|
+
this.ref = ref;
|
15
|
+
this.columns = [];
|
16
|
+
this.selectedItems = [];
|
17
|
+
this.keyField = '';
|
18
|
+
this.allowNull = true;
|
19
|
+
this.rtl = AXConfig.get('layout.rtl');
|
20
|
+
this.selectedRows = [];
|
21
|
+
this.pagination = true;
|
22
|
+
}
|
23
|
+
ngOnInit() {
|
24
|
+
if (this.rtl == null) {
|
25
|
+
this.rtl = window.getComputedStyle(this.ref.nativeElement, null).getPropertyValue('direction') === 'rtl';
|
26
|
+
}
|
27
|
+
}
|
28
|
+
onDoneClick() {
|
29
|
+
if (this.selectedItems) {
|
30
|
+
this.close(this.selectedItems);
|
31
|
+
}
|
32
|
+
else {
|
33
|
+
this.close();
|
34
|
+
}
|
35
|
+
}
|
36
|
+
rowDoubleClicked(e) {
|
37
|
+
if (this.selectionMode == 'single') {
|
38
|
+
this.selectedItems = [];
|
39
|
+
}
|
40
|
+
this.selectedItems = this.selectedItems.filter((c) => c[this.keyField] != e.data.data[this.keyField]);
|
41
|
+
this.selectedItems.push(e.data.data);
|
42
|
+
this.onDoneClick();
|
43
|
+
}
|
44
|
+
onCancelClick() {
|
45
|
+
this.close();
|
46
|
+
}
|
47
|
+
rowSelectionChange(e) {
|
48
|
+
if (e.data.node.selected == true) {
|
49
|
+
this.selectedItems = this.selectedItems.filter((c) => c[this.keyField] != e.data.node.data[this.keyField]);
|
50
|
+
this.selectedItems.push(e.data.node.data);
|
51
|
+
}
|
52
|
+
else {
|
53
|
+
if (this.allowNull == true || (this.allowNull == false && this.selectedItems.length > 1)) {
|
54
|
+
this.selectedItems = this.selectedItems.filter((c) => c[this.keyField] != e.data.node.data[this.keyField]);
|
55
|
+
}
|
56
|
+
}
|
57
|
+
}
|
58
|
+
ngAfterViewInit() {
|
59
|
+
this.selectedItems.forEach((ele) => {
|
60
|
+
this.selectedRows.push(ele);
|
61
|
+
});
|
62
|
+
this.searchBox.focus();
|
63
|
+
if (this.dataSource.onDataReceived) {
|
64
|
+
this.dataSource.onDataReceived.subscribe((arg) => {
|
65
|
+
this.cdr.markForCheck();
|
66
|
+
this.cdr.detectChanges();
|
67
|
+
});
|
68
|
+
}
|
69
|
+
}
|
70
|
+
// onValueSearchChanged(e) {
|
71
|
+
// const params: AXDataSourceReadParams = {}
|
72
|
+
// params.searchText = e.value;
|
73
|
+
// // params.take = 100;
|
74
|
+
// // params.skip = 0
|
75
|
+
// this.dataSource.fetch(params);
|
76
|
+
// }
|
77
|
+
getFooterButtons() {
|
78
|
+
return [
|
79
|
+
{
|
80
|
+
text: AXTranslator.get('common.confirm'),
|
81
|
+
name: 'confirm',
|
82
|
+
style: 'ax primary',
|
83
|
+
icon: 'far fa-check-circle'
|
84
|
+
},
|
85
|
+
{
|
86
|
+
text: AXTranslator.get('common.cancel'),
|
87
|
+
name: 'cancel',
|
88
|
+
style: 'ax light',
|
89
|
+
icon: 'far fa-times'
|
90
|
+
}
|
91
|
+
];
|
92
|
+
}
|
93
|
+
onFooterButtonClick(e) {
|
94
|
+
if (e.name === 'confirm') {
|
95
|
+
this.onDoneClick();
|
96
|
+
}
|
97
|
+
if (e.name === 'cancel') {
|
98
|
+
this.onCancelClick();
|
99
|
+
}
|
100
|
+
}
|
101
|
+
}
|
102
|
+
AXDataLovPopupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXDataLovPopupComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
103
|
+
AXDataLovPopupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: AXDataLovPopupComponent, selector: "ng-component", viewQueries: [{ propertyName: "grid", first: true, predicate: ["grid"], descendants: true, static: true }, { propertyName: "searchBox", first: true, predicate: ["searchBox"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<div style=\"height: 70vh; padding: 0.5em;\">\n <div style=\"height: calc(100%);\">\n\n <ax-data-grid [pagination]=\"pagination\" [rtl]=\"rtl\" [suppressRowClickSelection]=\"false\" [keyField]=\"keyField\"\n [hasChildField]=\"hasChildField\" [selectRow]=\"selectedItems\" #grid [columns]=\"columns\"\n [remoteOperation]=\"true\" [selectionMode]=\"selectionMode\" (rowDbClick)=\"rowDoubleClicked($event)\"\n (rowSelectionChange)=\"rowSelectionChange($event)\" [dataSource]=\"dataSource\">\n <ax-toolbar>\n <ax-toolbar-search #searchBox style=\"width: 100%;\"></ax-toolbar-search>\n </ax-toolbar>\n <ax-selection-column *ngIf=\"selectionMode== 'single'? false : true\"></ax-selection-column>\n <!-- <ax-data-source [provideData]=\"dataSource.provideData\">\n </ax-data-source> -->\n </ax-data-grid>\n </div>\n</div>", components: [{ type: i1.AXDataGridComponent, selector: "ax-data-grid", inputs: ["remoteOperation", "rowMultiSelectWithClick", "suppressRowClickSelection", "suppressCellSelection", "sizeColumnsToFit", "showCheckBox", "floatingFilter", "selectionMode", "pagination", "selectRow", "rowGroupPanelShow", "loadOnInit", "keyField", "hasChildField", "searchText", "filter", "columns", "rowHeight", "dataSource", "groupHideOpenParents", "rowClass", "rtl"], outputs: ["columnsChange", "cellClick", "cellDbClick", "cellFocuse", "rowClick", "rowDbClick", "selectionChanged", "rowSelectionChange", "onRowSelectionChanged"] }, { type: i2.AXToolbarComponent, selector: "ax-toolbar" }, { type: i2.AXToolbarSearchComponent, selector: "ax-toolbar-search", inputs: ["text"], outputs: ["onValueChanged"] }, { type: i3.AXGridSelectionColumn, selector: "ax-selection-column", inputs: ["condition", "pinned", "width"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
104
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXDataLovPopupComponent, decorators: [{
|
105
|
+
type: Component,
|
106
|
+
args: [{ template: "<div style=\"height: 70vh; padding: 0.5em;\">\n <div style=\"height: calc(100%);\">\n\n <ax-data-grid [pagination]=\"pagination\" [rtl]=\"rtl\" [suppressRowClickSelection]=\"false\" [keyField]=\"keyField\"\n [hasChildField]=\"hasChildField\" [selectRow]=\"selectedItems\" #grid [columns]=\"columns\"\n [remoteOperation]=\"true\" [selectionMode]=\"selectionMode\" (rowDbClick)=\"rowDoubleClicked($event)\"\n (rowSelectionChange)=\"rowSelectionChange($event)\" [dataSource]=\"dataSource\">\n <ax-toolbar>\n <ax-toolbar-search #searchBox style=\"width: 100%;\"></ax-toolbar-search>\n </ax-toolbar>\n <ax-selection-column *ngIf=\"selectionMode== 'single'? false : true\"></ax-selection-column>\n <!-- <ax-data-source [provideData]=\"dataSource.provideData\">\n </ax-data-source> -->\n </ax-data-grid>\n </div>\n</div>" }]
|
107
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }]; }, propDecorators: { grid: [{
|
108
|
+
type: ViewChild,
|
109
|
+
args: ['grid', { static: true }]
|
110
|
+
}], searchBox: [{
|
111
|
+
type: ViewChild,
|
112
|
+
args: ['searchBox']
|
113
|
+
}] } });
|
114
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0YS1sb3YtcG9wdXAuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYWNvcmV4L2RhdGEtZ3JpZC9zcmMvbGliL2RhdGEtbG92L2RhdGEtbG92LXBvcHVwL2RhdGEtbG92LXBvcHVwLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Fjb3JleC9kYXRhLWdyaWQvc3JjL2xpYi9kYXRhLWxvdi9kYXRhLWxvdi1wb3B1cC9kYXRhLWxvdi1wb3B1cC5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10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