@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.
Files changed (61) hide show
  1. package/README.md +7 -2
  2. package/esm2022/acorex-data-grid.mjs +5 -0
  3. package/esm2022/index.mjs +18 -0
  4. package/esm2022/lib/data-grid/columns/check-column.component.mjs +109 -0
  5. package/esm2022/lib/data-grid/columns/column.component.mjs +168 -0
  6. package/esm2022/lib/data-grid/columns/command-column.component.mjs +115 -0
  7. package/esm2022/lib/data-grid/columns/date-column.component.mjs +115 -0
  8. package/esm2022/lib/data-grid/columns/row-number-column.component.mjs +38 -0
  9. package/esm2022/lib/data-grid/columns/selection-column.component.mjs +43 -0
  10. package/esm2022/lib/data-grid/columns/text-column.component.mjs +97 -0
  11. package/esm2022/lib/data-grid/datagrid.component.mjs +721 -0
  12. package/esm2022/lib/data-grid/datagrid.events.mjs +2 -0
  13. package/esm2022/lib/data-grid/datagrid.module.mjs +143 -0
  14. package/esm2022/lib/data-grid/filters/filter.component.mjs +39 -0
  15. package/esm2022/lib/data-grid/templates/cell-template.component.mjs +58 -0
  16. package/esm2022/lib/data-grid/templates/detail-template.component.mjs +51 -0
  17. package/esm2022/lib/data-grid/templates/row-template.component.mjs +48 -0
  18. package/esm2022/lib/data-lov/data-lov-popup/data-lov-popup.component.mjs +121 -0
  19. package/esm2022/lib/data-lov/data-lov.component.mjs +175 -0
  20. package/esm2022/lib/data-lov/data-lov.module.mjs +23 -0
  21. package/{fesm2020 → fesm2022}/acorex-data-grid.mjs +380 -319
  22. package/fesm2022/acorex-data-grid.mjs.map +1 -0
  23. package/lib/data-grid/columns/check-column.component.d.ts +4 -4
  24. package/lib/data-grid/columns/column.component.d.ts +1 -1
  25. package/lib/data-grid/columns/command-column.component.d.ts +3 -3
  26. package/lib/data-grid/columns/date-column.component.d.ts +2 -2
  27. package/lib/data-grid/columns/row-number-column.component.d.ts +1 -1
  28. package/lib/data-grid/columns/selection-column.component.d.ts +1 -1
  29. package/lib/data-grid/columns/text-column.component.d.ts +3 -3
  30. package/lib/data-grid/datagrid.component.d.ts +1 -1
  31. package/lib/data-grid/filters/filter.component.d.ts +1 -1
  32. package/lib/data-grid/templates/cell-template.component.d.ts +2 -2
  33. package/lib/data-grid/templates/detail-template.component.d.ts +2 -2
  34. package/lib/data-grid/templates/row-template.component.d.ts +2 -2
  35. package/lib/data-lov/data-lov-popup/data-lov-popup.component.d.ts +1 -1
  36. package/lib/data-lov/data-lov.component.d.ts +1 -1
  37. package/package.json +12 -21
  38. package/acorex-data-grid.d.ts +0 -5
  39. package/esm2020/acorex-data-grid.mjs +0 -5
  40. package/esm2020/lib/data-grid/columns/check-column.component.mjs +0 -117
  41. package/esm2020/lib/data-grid/columns/column.component.mjs +0 -164
  42. package/esm2020/lib/data-grid/columns/command-column.component.mjs +0 -117
  43. package/esm2020/lib/data-grid/columns/date-column.component.mjs +0 -111
  44. package/esm2020/lib/data-grid/columns/row-number-column.component.mjs +0 -37
  45. package/esm2020/lib/data-grid/columns/selection-column.component.mjs +0 -42
  46. package/esm2020/lib/data-grid/columns/text-column.component.mjs +0 -89
  47. package/esm2020/lib/data-grid/datagrid.component.mjs +0 -698
  48. package/esm2020/lib/data-grid/datagrid.events.mjs +0 -2
  49. package/esm2020/lib/data-grid/datagrid.module.mjs +0 -145
  50. package/esm2020/lib/data-grid/filters/filter.component.mjs +0 -39
  51. package/esm2020/lib/data-grid/templates/cell-template.component.mjs +0 -53
  52. package/esm2020/lib/data-grid/templates/detail-template.component.mjs +0 -46
  53. package/esm2020/lib/data-grid/templates/row-template.component.mjs +0 -43
  54. package/esm2020/lib/data-lov/data-lov-popup/data-lov-popup.component.mjs +0 -114
  55. package/esm2020/lib/data-lov/data-lov.component.mjs +0 -165
  56. package/esm2020/lib/data-lov/data-lov.module.mjs +0 -23
  57. package/esm2020/public-api.mjs +0 -18
  58. package/fesm2015/acorex-data-grid.mjs +0 -1915
  59. package/fesm2015/acorex-data-grid.mjs.map +0 -1
  60. package/fesm2020/acorex-data-grid.mjs.map +0 -1
  61. /package/{public-api.d.ts → index.d.ts} +0 -0
@@ -1,37 +0,0 @@
1
- import { AXGridDataColumn } from './column.component';
2
- import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
3
- import { AXConfig } from '@acorex/core';
4
- import * as i0 from "@angular/core";
5
- export class AXGridRowNumberColumn extends AXGridDataColumn {
6
- constructor() {
7
- super();
8
- }
9
- ngOnInit() { }
10
- render() {
11
- const col = super.render();
12
- // col.checkboxSelection = this.condition ? this.condition : true;
13
- // col.headerCheckboxSelection = true;
14
- (col.headerName = this.caption ? this.caption : AXConfig.get('layout.rtl') ? 'ردیف' : 'Row'),
15
- (col.valueGetter = 'node.rowIndex + 1'),
16
- (col.pinned = this.pinned == null ? null : this.pinned === 'start' ? 'right' : 'left'),
17
- (col.filter = false);
18
- col.resizable = true;
19
- col.sortable = false;
20
- col.width = this.width;
21
- return col;
22
- }
23
- }
24
- AXGridRowNumberColumn.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXGridRowNumberColumn, deps: [], target: i0.ɵɵFactoryTarget.Component });
25
- AXGridRowNumberColumn.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: AXGridRowNumberColumn, selector: "ax-row-number-column", inputs: { condition: "condition" }, providers: [{ provide: AXGridDataColumn, useExisting: AXGridRowNumberColumn }], usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
26
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXGridRowNumberColumn, decorators: [{
27
- type: Component,
28
- args: [{
29
- selector: 'ax-row-number-column',
30
- template: '',
31
- providers: [{ provide: AXGridDataColumn, useExisting: AXGridRowNumberColumn }],
32
- changeDetection: ChangeDetectionStrategy.OnPush
33
- }]
34
- }], ctorParameters: function () { return []; }, propDecorators: { condition: [{
35
- type: Input
36
- }] } });
37
- //# sourceMappingURL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JyA6ICdsZWZ0JyksXG4gICAgICAoY29sLmZpbHRlciA9IGZhbHNlKTtcbiAgICBjb2wucmVzaXphYmxlID0gdHJ1ZTtcbiAgICBjb2wuc29ydGFibGUgPSBmYWxzZTtcbiAgICBjb2wud2lkdGggPSB0aGlzLndpZHRoO1xuXG4gICAgcmV0dXJuIGNvbDtcbiAgfVxufVxuIl19
@@ -1,42 +0,0 @@
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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VsZWN0aW9uLWNvbHVtbi5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hY29yZXgvZGF0YS1ncmlkL3NyYy9saWIvZGF0YS1ncmlkL2NvbHVtbnMvc2VsZWN0aW9uLWNvbHVtbi5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLGdCQUFnQixFQUFFLE1BQU0sb0JBQW9CLENBQUM7QUFDdEQsT0FBTyxFQUFFLHVCQUF1QixFQUFFLFNBQVMsRUFBRSxLQUFLLEVBQUUsTUFBTSxlQUFlLENBQUM7O0FBUTFFLE1BQU0sT0FBTyxxQkFBc0IsU0FBUSxnQkFBZ0I7SUFDekQ7UUFDRSxLQUFLLEVBQUUsQ0FBQztRQVNWLFdBQU0sR0FBb0IsT0FBTyxDQUFDO1FBR2xDLFVBQUssR0FBVyxFQUFFLENBQUM7SUFYbkIsQ0FBQztJQUVELFFBQVEsS0FBVSxDQUFDO0lBV25CLE1BQU07UUFDSixNQUFNLEdBQUcsR0FBRyxLQUFLLENBQUMsTUFBTSxFQUFFLENBQUM7UUFDM0IsR0FBRyxDQUFDLGlCQUFpQixHQUFHLElBQUksQ0FBQyxTQUFTLENBQUMsQ0FBQyxDQUFDLElBQUksQ0FBQyxTQUFTLENBQUMsQ0FBQyxDQUFDLElBQUksQ0FBQztRQUMvRCx1Q0FBdUM7UUFDdkMsR0FBRyxDQUFDLE1BQU0sR0FBRyxJQUFJLENBQUMsTUFBTSxLQUFLLE9BQU8sQ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iAgICBjb2wud2lkdGggPSB0aGlzLndpZHRoO1xuICAgIGNvbC5mbG9hdGluZ0ZpbHRlciA9IGZhbHNlO1xuICAgIHJldHVybiBjb2w7XG4gIH1cbn1cbiJdfQ==
@@ -1,89 +0,0 @@
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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