@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.
Files changed (44) hide show
  1. package/README.md +2 -2
  2. package/acorex-data-grid.d.ts +5 -5
  3. package/esm2020/acorex-data-grid.mjs +4 -4
  4. package/esm2020/lib/data-grid/columns/check-column.component.mjs +117 -117
  5. package/esm2020/lib/data-grid/columns/column.component.mjs +164 -164
  6. package/esm2020/lib/data-grid/columns/command-column.component.mjs +115 -115
  7. package/esm2020/lib/data-grid/columns/date-column.component.mjs +111 -111
  8. package/esm2020/lib/data-grid/columns/row-number-column.component.mjs +37 -37
  9. package/esm2020/lib/data-grid/columns/selection-column.component.mjs +42 -42
  10. package/esm2020/lib/data-grid/columns/text-column.component.mjs +89 -89
  11. package/esm2020/lib/data-grid/datagrid.component.mjs +667 -667
  12. package/esm2020/lib/data-grid/datagrid.events.mjs +2 -2
  13. package/esm2020/lib/data-grid/datagrid.module.mjs +145 -145
  14. package/esm2020/lib/data-grid/filters/filter.component.mjs +39 -39
  15. package/esm2020/lib/data-grid/templates/cell-template.component.mjs +53 -53
  16. package/esm2020/lib/data-grid/templates/detail-template.component.mjs +46 -46
  17. package/esm2020/lib/data-grid/templates/row-template.component.mjs +43 -43
  18. package/esm2020/lib/data-lov/data-lov-popup/data-lov-popup.component.mjs +114 -114
  19. package/esm2020/lib/data-lov/data-lov.component.mjs +165 -165
  20. package/esm2020/lib/data-lov/data-lov.module.mjs +23 -23
  21. package/esm2020/public-api.mjs +18 -18
  22. package/fesm2015/acorex-data-grid.mjs +1833 -1833
  23. package/fesm2015/acorex-data-grid.mjs.map +1 -1
  24. package/fesm2020/acorex-data-grid.mjs +1833 -1833
  25. package/fesm2020/acorex-data-grid.mjs.map +1 -1
  26. package/lib/data-grid/columns/check-column.component.d.ts +37 -37
  27. package/lib/data-grid/columns/column.component.d.ts +32 -32
  28. package/lib/data-grid/columns/command-column.component.d.ts +27 -27
  29. package/lib/data-grid/columns/date-column.component.d.ts +32 -32
  30. package/lib/data-grid/columns/row-number-column.component.d.ts +10 -10
  31. package/lib/data-grid/columns/selection-column.component.d.ts +12 -12
  32. package/lib/data-grid/columns/text-column.component.d.ts +25 -25
  33. package/lib/data-grid/datagrid.component.d.ts +142 -142
  34. package/lib/data-grid/datagrid.events.d.ts +20 -20
  35. package/lib/data-grid/datagrid.module.d.ts +23 -23
  36. package/lib/data-grid/filters/filter.component.d.ts +5 -5
  37. package/lib/data-grid/templates/cell-template.component.d.ts +22 -22
  38. package/lib/data-grid/templates/detail-template.component.d.ts +21 -21
  39. package/lib/data-grid/templates/row-template.component.d.ts +20 -20
  40. package/lib/data-lov/data-lov-popup/data-lov-popup.component.d.ts +33 -33
  41. package/lib/data-lov/data-lov.component.d.ts +43 -43
  42. package/lib/data-lov/data-lov.module.d.ts +12 -12
  43. package/package.json +1 -1
  44. package/public-api.d.ts +17 -17
@@ -1,111 +1,111 @@
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
- }] } });
111
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0ZS1jb2x1bW4uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYWNvcmV4L2RhdGEtZ3JpZC9zcmMvbGliL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XHJcbiAgICB0aGlzLnNldERhdGUoZS52YWx1ZSk7XHJcbiAgICB0aGlzLm9uRGF0ZUNoYW5nZWQoZS52YWx1ZSk7XHJcbiAgfVxyXG5cclxufVxyXG4iXX0=
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
+ }] } });
111
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0ZS1jb2x1bW4uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYWNvcmV4L2RhdGEtZ3JpZC9zcmMvbGliL2RhdGEtZ3JpZC9jb2x1bW5zL2RhdGUtY29sdW1uLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFDQSxPQUFPLEVBQ0wsU0FBUyxFQUNULHVCQUF1QixFQUN2QixLQUFLLEVBQ0wsaUJBQWlCLEVBQ2pCLFNBQVMsRUFDVCxVQUFVLEVBQ1gsTUFBTSxlQUFlLENBQUM7QUFDdkIsT0F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mdlZChzZWxlY3RlZERhdGVzKSB7XG4gICAgLy90aGlzLmRhdGUgPSBzZWxlY3RlZERhdGVzWzBdIHx8IG51bGw7XG4gICAgdGhpcy5wYXJhbXMub25EYXRlQ2hhbmdlZCgpO1xuICB9XG5cbiAgZ2V0RGF0ZSgpOiBEYXRlIHtcbiAgICByZXR1cm4gdGhpcy5kYXRlO1xuICB9XG5cbiAgc2V0RGF0ZShkYXRlOiBEYXRlKTogdm9pZCB7XG4gICAgdGhpcy5kYXRlID0gZGF0ZSB8fCBudWxsO1xuICAgIC8vdGhpcy5waWNrZXIuc2V0RGF0ZShkYXRlKTtcbiAgfVxuXG4gIHNldElucHV0UGxhY2Vob2xkZXIocGxhY2Vob2xkZXI6IHN0cmluZyk6IHZvaWQge1xuICAgIC8vdGhpcy5kaXYubmF0aXZlRWxlbWVudC5zZXRBdHRyaWJ1dGUoJ3BsYWNlaG9sZGVyJywgcGxhY2Vob2xkZXIpO1xuICB9XG4gIG9uVmFsdWVDaGFuZ2VkKGUpIHtcblxuICAgIHRoaXMuc2V0RGF0ZShlLnZhbHVlKTtcbiAgICB0aGlzLm9uRGF0ZUNoYW5nZWQoZS52YWx1ZSk7XG4gIH1cblxufVxuIl19
@@ -1,37 +1,37 @@
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=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicm93LW51bWJlci1jb2x1bW4uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYWNvcmV4L2RhdGEtZ3JpZC9zcmMvbGliL2RhdGEtZ3JpZC9jb2x1bW5zL3Jvdy1udW1iZXItY29sdW1uLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSxvQkFBb0IsQ0FBQztBQUN0RCxPQUFPLEVBQUUsdUJBQXVCLEVBQUUsU0FBUyxFQUFFLEtBQUssRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUMxRSxPQ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ydWN0b3IoKSB7XHJcbiAgICBzdXBlcigpO1xyXG4gIH1cclxuXHJcbiAgbmdPbkluaXQoKTogdm9pZCB7fVxyXG5cclxuICBASW5wdXQoKVxyXG4gIGNvbmRpdGlvbjogKHBhcmFtcykgPT4gYm9vbGVhbjtcclxuXHJcbiAgcmVuZGVyKCkge1xyXG4gICAgY29uc3QgY29sID0gc3VwZXIucmVuZGVyKCk7XHJcbiAgICAvLyAgY29sLmNoZWNrYm94U2VsZWN0aW9uID0gdGhpcy5jb25kaXRpb24gPyB0aGlzLmNvbmRpdGlvbiA6IHRydWU7XHJcbiAgICAvLyAgY29sLmhlYWRlckNoZWNrYm94U2VsZWN0aW9uID0gdHJ1ZTtcclxuXHJcbiAgICAoY29sLmhlYWRlck5hbWUgPSB0aGlzLmNhcHRpb24gPyB0aGlzLmNhcHRpb24gOiBBWENvbmZpZy5nZXQoJ2xheW91dC5ydGwnKSA/ICfYsdiv24zZgScgOiAnUm93JyksXHJcbiAgICAgIChjb2wudmFsdWVHZXR0ZXIgPSAnbm9kZS5yb3dJbmRleCArIDEnKSxcclxuICAgICAgKGNvbC5waW5uZWQgPSB0aGlzLnBpbm5lZCA9PSBudWxsID8gbnVsbCA6IHRoaXMucGlubmVkID09PSAnc3RhcnQnID8gJ3JpZ2h0JyA6ICdsZWZ0JyksXHJcbiAgICAgIChjb2wuZmlsdGVyID0gZmFsc2UpO1xyXG4gICAgY29sLnJlc2l6YWJsZSA9IHRydWU7XHJcbiAgICBjb2wuc29ydGFibGUgPSBmYWxzZTtcclxuICAgIGNvbC53aWR0aCA9IHRoaXMud2lkdGg7XHJcblxyXG4gICAgcmV0dXJuIGNvbDtcclxuICB9XHJcbn1cclxuIl19
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=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicm93LW51bWJlci1jb2x1bW4uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYWNvcmV4L2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gICAgcmV0dXJuIGNvbDtcbiAgfVxufVxuIl19
@@ -1,42 +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,eyJ2ZX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dGaWx0ZXIgPSBmYWxzZTtcclxuICAgIHJldHVybiBjb2w7XHJcbiAgfVxyXG59XHJcbiJdfQ==
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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