@acorex/data-grid 6.5.28 → 6.5.29
Sign up to get free protection for your applications and to get access to all the features.
- package/acorex-data-grid.d.ts +5 -0
- package/esm2020/acorex-data-grid.mjs +5 -0
- package/esm2020/lib/data-grid/columns/check-column.component.mjs +117 -0
- package/esm2020/lib/data-grid/columns/column.component.mjs +164 -0
- package/esm2020/lib/data-grid/columns/command-column.component.mjs +115 -0
- package/esm2020/lib/data-grid/columns/date-column.component.mjs +111 -0
- package/esm2020/lib/data-grid/columns/row-number-column.component.mjs +37 -0
- package/esm2020/lib/data-grid/columns/selection-column.component.mjs +42 -0
- package/esm2020/lib/data-grid/columns/text-column.component.mjs +89 -0
- package/esm2020/lib/data-grid/datagrid.component.mjs +667 -0
- package/esm2020/lib/data-grid/datagrid.events.mjs +2 -0
- package/esm2020/lib/data-grid/datagrid.module.mjs +145 -0
- package/esm2020/lib/data-grid/filters/filter.component.mjs +39 -0
- package/esm2020/lib/data-grid/templates/cell-template.component.mjs +53 -0
- package/esm2020/lib/data-grid/templates/detail-template.component.mjs +46 -0
- package/esm2020/lib/data-grid/templates/row-template.component.mjs +43 -0
- package/esm2020/lib/data-lov/data-lov-popup/data-lov-popup.component.mjs +114 -0
- package/esm2020/lib/data-lov/data-lov.component.mjs +165 -0
- package/esm2020/lib/data-lov/data-lov.module.mjs +23 -0
- package/esm2020/public-api.mjs +18 -0
- package/fesm2015/acorex-data-grid.mjs +1881 -0
- package/fesm2015/acorex-data-grid.mjs.map +1 -0
- package/fesm2020/acorex-data-grid.mjs +1881 -0
- package/fesm2020/acorex-data-grid.mjs.map +1 -0
- package/lib/data-grid/columns/check-column.component.d.ts +37 -0
- package/lib/data-grid/columns/column.component.d.ts +32 -0
- package/lib/data-grid/columns/command-column.component.d.ts +27 -0
- package/lib/data-grid/columns/date-column.component.d.ts +32 -0
- package/lib/data-grid/columns/row-number-column.component.d.ts +10 -0
- package/lib/data-grid/columns/selection-column.component.d.ts +12 -0
- package/lib/data-grid/columns/text-column.component.d.ts +25 -0
- package/lib/data-grid/datagrid.component.d.ts +142 -0
- package/{src/lib/data-grid/datagrid.events.ts → lib/data-grid/datagrid.events.d.ts} +1 -4
- package/lib/data-grid/datagrid.module.d.ts +23 -0
- package/lib/data-grid/filters/filter.component.d.ts +5 -0
- package/lib/data-grid/templates/cell-template.component.d.ts +22 -0
- package/lib/data-grid/templates/detail-template.component.d.ts +21 -0
- package/lib/data-grid/templates/row-template.component.d.ts +20 -0
- package/lib/data-lov/data-lov-popup/data-lov-popup.component.d.ts +33 -0
- package/lib/data-lov/data-lov.component.d.ts +43 -0
- package/lib/data-lov/data-lov.module.d.ts +12 -0
- package/package.json +36 -16
- package/{src/public-api.ts → public-api.d.ts} +0 -3
- package/karma.conf.js +0 -32
- package/ng-package.json +0 -12
- package/src/lib/data-grid/columns/check-column.component.ts +0 -113
- package/src/lib/data-grid/columns/column.component.ts +0 -182
- package/src/lib/data-grid/columns/command-column.component.ts +0 -101
- package/src/lib/data-grid/columns/date-column.component.ts +0 -118
- package/src/lib/data-grid/columns/row-number-column.component.ts +0 -36
- package/src/lib/data-grid/columns/selection-column.component.ts +0 -39
- package/src/lib/data-grid/columns/text-column.component.ts +0 -92
- package/src/lib/data-grid/datagrid.component.html +0 -27
- package/src/lib/data-grid/datagrid.component.ts +0 -769
- package/src/lib/data-grid/datagrid.module.ts +0 -81
- package/src/lib/data-grid/filters/filter.component.ts +0 -21
- package/src/lib/data-grid/templates/cell-template.component.ts +0 -47
- package/src/lib/data-grid/templates/detail-template.component.ts +0 -43
- package/src/lib/data-grid/templates/row-template.component.ts +0 -41
- package/src/lib/data-lov/data-lov-popup/data-lov-popup.component.html +0 -16
- package/src/lib/data-lov/data-lov-popup/data-lov-popup.component.ts +0 -130
- package/src/lib/data-lov/data-lov.component.html +0 -61
- package/src/lib/data-lov/data-lov.component.ts +0 -184
- package/src/lib/data-lov/data-lov.module.ts +0 -16
- package/src/test.ts +0 -28
- package/tsconfig.lib.json +0 -23
- package/tsconfig.lib.prod.json +0 -6
- package/tsconfig.spec.json +0 -17
- package/tslint.json +0 -17
@@ -0,0 +1,42 @@
|
|
1
|
+
import { AXGridDataColumn } from './column.component';
|
2
|
+
import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
export class AXGridSelectionColumn extends AXGridDataColumn {
|
5
|
+
constructor() {
|
6
|
+
super();
|
7
|
+
this.pinned = 'start';
|
8
|
+
this.width = 40;
|
9
|
+
}
|
10
|
+
ngOnInit() { }
|
11
|
+
render() {
|
12
|
+
const col = super.render();
|
13
|
+
col.checkboxSelection = this.condition ? this.condition : true;
|
14
|
+
// col.headerCheckboxSelection = true;
|
15
|
+
col.pinned = this.pinned === 'start' ? 'right' : 'left';
|
16
|
+
col.filter = false;
|
17
|
+
col.resizable = true;
|
18
|
+
col.sortable = false;
|
19
|
+
col.minWidth = 5;
|
20
|
+
col.width = this.width;
|
21
|
+
col.floatingFilter = false;
|
22
|
+
return col;
|
23
|
+
}
|
24
|
+
}
|
25
|
+
AXGridSelectionColumn.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXGridSelectionColumn, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
26
|
+
AXGridSelectionColumn.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: AXGridSelectionColumn, selector: "ax-selection-column", inputs: { condition: "condition", pinned: "pinned", width: "width" }, providers: [{ provide: AXGridDataColumn, useExisting: AXGridSelectionColumn }], usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
27
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXGridSelectionColumn, decorators: [{
|
28
|
+
type: Component,
|
29
|
+
args: [{
|
30
|
+
selector: 'ax-selection-column',
|
31
|
+
template: '',
|
32
|
+
providers: [{ provide: AXGridDataColumn, useExisting: AXGridSelectionColumn }],
|
33
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
34
|
+
}]
|
35
|
+
}], ctorParameters: function () { return []; }, propDecorators: { condition: [{
|
36
|
+
type: Input
|
37
|
+
}], pinned: [{
|
38
|
+
type: Input
|
39
|
+
}], width: [{
|
40
|
+
type: Input
|
41
|
+
}] } });
|
42
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VsZWN0aW9uLWNvbHVtbi5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hY29yZXgvZGF0YS1ncmlkL3NyYy9saWIvZGF0YS1ncmlkL2NvbHVtbnMvc2VsZWN0aW9uLWNvbHVtbi5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLGdCQUFnQixFQUFFLE1BQU0sb0JBQW9CLENBQUM7QUFDdEQsT0FBTyxFQUFFLHVCQUF1QixFQUFFLFNBQVMsRUFBRSxLQUFLLEVBQUUsTUFBTSxlQUFlLENBQUM7O0FBUTFFLE1BQU0sT0FBTyxxQkFBc0IsU0FBUSxnQkFBZ0I7SUFDekQ7UUFDRSxLQUFLLEVBQUUsQ0FBQztRQVNWLFdBQU0sR0FBb0IsT0FBTyxDQUFDO1FBR2xDLFVBQUssR0FBVyxFQUFFLENBQUM7SUFYbkIsQ0FBQztJQUVELFFBQVEsS0FBVSxDQUFDO0lBV25CLE1BQU07UUFDSixNQUFNLEdBQUcsR0FBRyxLQUFLLENBQUMsTUFBTSxFQUFFLENBQUM7UUFDM0IsR0FBRyxDQUFDLGlCQUFpQixHQUFHLElBQUksQ0FBQyxTQUFTLENBQUMsQ0FBQyxDQUFDLElBQUksQ0FBQyxTQUFTLENBQUMsQ0FBQyxDQUFDLElBQUksQ0FBQztRQUMvRCx1Q0FBdUM7UUFDdkMsR0FBRyxDQUFD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GVmdCc7XHJcbiAgICBjb2wuZmlsdGVyID0gZmFsc2U7XHJcbiAgICBjb2wucmVzaXphYmxlID0gdHJ1ZTtcclxuICAgIGNvbC5zb3J0YWJsZSA9IGZhbHNlO1xyXG4gICAgY29sLm1pbldpZHRoID0gNTtcclxuICAgIGNvbC53aWR0aCA9IHRoaXMud2lkdGg7XHJcbiAgICBjb2wuZmxvYXRpbmdGaWx0ZXIgPSBmYWxzZTtcclxuICAgIHJldHVybiBjb2w7XHJcbiAgfVxyXG59XHJcbiJdfQ==
|
@@ -0,0 +1,89 @@
|
|
1
|
+
import { AXGridDataColumn } from './column.component';
|
2
|
+
import { ChangeDetectionStrategy, Component, ViewChild } from '@angular/core';
|
3
|
+
import { AXTextBoxComponent } from '@acorex/components';
|
4
|
+
import * as i0 from "@angular/core";
|
5
|
+
import * as i1 from "../filters/filter.component";
|
6
|
+
import * as i2 from "@acorex/components";
|
7
|
+
export class AXGridTextColumn extends AXGridDataColumn {
|
8
|
+
constructor() {
|
9
|
+
super();
|
10
|
+
}
|
11
|
+
render() {
|
12
|
+
const col = super.render();
|
13
|
+
// if (this.allowFiltering) {
|
14
|
+
// col.filterFramework = TextFilterRenderer;
|
15
|
+
// }
|
16
|
+
col.filter = 'agTextColumnFilter';
|
17
|
+
return col;
|
18
|
+
}
|
19
|
+
}
|
20
|
+
AXGridTextColumn.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXGridTextColumn, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
21
|
+
AXGridTextColumn.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: AXGridTextColumn, selector: "ax-text-column", providers: [{ provide: AXGridDataColumn, useExisting: AXGridTextColumn }], usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
22
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXGridTextColumn, decorators: [{
|
23
|
+
type: Component,
|
24
|
+
args: [{
|
25
|
+
selector: 'ax-text-column',
|
26
|
+
template: '',
|
27
|
+
providers: [{ provide: AXGridDataColumn, useExisting: AXGridTextColumn }],
|
28
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
29
|
+
}]
|
30
|
+
}], ctorParameters: function () { return []; } });
|
31
|
+
export class TextFilterRenderer {
|
32
|
+
constructor() {
|
33
|
+
this.value = null;
|
34
|
+
}
|
35
|
+
agInit(params) {
|
36
|
+
this.params = params;
|
37
|
+
this.valueGetter = (params.valueGetter);
|
38
|
+
}
|
39
|
+
isFilterActive() {
|
40
|
+
return this.value !== null && this.value !== undefined;
|
41
|
+
}
|
42
|
+
doesFilterPass(params) {
|
43
|
+
return this.value === this.valueGetter(params.node);
|
44
|
+
}
|
45
|
+
getModel() {
|
46
|
+
return { value: this.value };
|
47
|
+
}
|
48
|
+
setModel(model) {
|
49
|
+
;
|
50
|
+
this.onChange(model ? model.value : null);
|
51
|
+
}
|
52
|
+
ngAfterViewInit(params) {
|
53
|
+
window.setTimeout(() => {
|
54
|
+
this.input.focus();
|
55
|
+
});
|
56
|
+
}
|
57
|
+
onChange(newValue) {
|
58
|
+
if (this.value !== newValue) {
|
59
|
+
this.value = newValue;
|
60
|
+
if (this.value === '') {
|
61
|
+
this.value = null;
|
62
|
+
}
|
63
|
+
this.params.filterChangedCallback();
|
64
|
+
}
|
65
|
+
}
|
66
|
+
}
|
67
|
+
TextFilterRenderer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TextFilterRenderer, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
68
|
+
TextFilterRenderer.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: TextFilterRenderer, selector: "ng-component", viewQueries: [{ propertyName: "input", first: true, predicate: AXTextBoxComponent, descendants: true, static: true }], ngImport: i0, template: `
|
69
|
+
<ax-data-grid-filter>
|
70
|
+
<ax-text-box label='Filter' allowClear='true' (textChange)='onChange($event)'>
|
71
|
+
</ax-text-box>
|
72
|
+
</ax-data-grid-filter>
|
73
|
+
`, isInline: true, components: [{ type: i1.AXDataGridFilterComponent, selector: "ax-data-grid-filter" }, { type: i2.AXTextBoxComponent, selector: "ax-text-box", inputs: ["mask", "type", "showMask", "maxLength", "maskGuid", "maskPlaceholder", "maskKeepCharPositions"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
74
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TextFilterRenderer, decorators: [{
|
75
|
+
type: Component,
|
76
|
+
args: [{
|
77
|
+
template: `
|
78
|
+
<ax-data-grid-filter>
|
79
|
+
<ax-text-box label='Filter' allowClear='true' (textChange)='onChange($event)'>
|
80
|
+
</ax-text-box>
|
81
|
+
</ax-data-grid-filter>
|
82
|
+
`,
|
83
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
84
|
+
}]
|
85
|
+
}], propDecorators: { input: [{
|
86
|
+
type: ViewChild,
|
87
|
+
args: [AXTextBoxComponent, { static: true }]
|
88
|
+
}] } });
|
89
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGV4dC1jb2x1bW4uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYWNvcmV4L2RhdGEtZ3JpZC9zcmMvbGliL2RhdGEtZ3JpZC9jb2x1bW5zL3RleHQtY29sdW1uLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSxvQkFBb0IsQ0FBQztBQUN0RCxPQUFPLEVBQ0wsdUJBQXVCLEVBQ3ZCLFNBQVMsRUFFVCxTQUFTLEVBQ1Y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