@acorex/data-grid 3.0.63 → 4.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (87) hide show
  1. package/acorex-data-grid.d.ts +1 -0
  2. package/esm2020/acorex-data-grid.mjs +5 -0
  3. package/esm2020/lib/data-grid/columns/check-column.component.mjs +117 -0
  4. package/esm2020/lib/data-grid/columns/column.component.mjs +164 -0
  5. package/{esm2015/lib/data-grid/columns/command-column.component.js → esm2020/lib/data-grid/columns/command-column.component.mjs} +46 -35
  6. package/esm2020/lib/data-grid/columns/date-column.component.mjs +112 -0
  7. package/esm2020/lib/data-grid/columns/row-number-column.component.mjs +37 -0
  8. package/esm2020/lib/data-grid/columns/selection-column.component.mjs +42 -0
  9. package/esm2020/lib/data-grid/columns/text-column.component.mjs +89 -0
  10. package/esm2020/lib/data-grid/datagrid.component.mjs +658 -0
  11. package/esm2020/lib/data-grid/datagrid.events.mjs +2 -0
  12. package/esm2020/lib/data-grid/datagrid.module.mjs +145 -0
  13. package/esm2020/lib/data-grid/filters/filter.component.mjs +39 -0
  14. package/esm2020/lib/data-grid/templates/cell-template.component.mjs +53 -0
  15. package/esm2020/lib/data-grid/templates/detail-template.component.mjs +46 -0
  16. package/esm2020/lib/data-grid/templates/row-template.component.mjs +43 -0
  17. package/esm2020/lib/data-lov/data-lov-popup/data-lov-popup.component.mjs +118 -0
  18. package/esm2020/lib/data-lov/data-lov.component.mjs +163 -0
  19. package/esm2020/lib/data-lov/data-lov.module.mjs +23 -0
  20. package/esm2020/public-api.mjs +18 -0
  21. package/fesm2015/acorex-data-grid.mjs +1875 -0
  22. package/fesm2015/acorex-data-grid.mjs.map +1 -0
  23. package/fesm2020/acorex-data-grid.mjs +1875 -0
  24. package/fesm2020/acorex-data-grid.mjs.map +1 -0
  25. package/lib/data-grid/columns/check-column.component.d.ts +7 -0
  26. package/lib/data-grid/columns/column.component.d.ts +3 -0
  27. package/lib/data-grid/columns/command-column.component.d.ts +5 -0
  28. package/lib/data-grid/columns/date-column.component.d.ts +5 -0
  29. package/lib/data-grid/columns/row-number-column.component.d.ts +3 -0
  30. package/lib/data-grid/columns/selection-column.component.d.ts +3 -0
  31. package/lib/data-grid/columns/text-column.component.d.ts +5 -0
  32. package/lib/data-grid/datagrid.component.d.ts +8 -1
  33. package/lib/data-grid/datagrid.module.d.ts +20 -0
  34. package/lib/data-grid/filters/filter.component.d.ts +3 -0
  35. package/lib/data-grid/templates/cell-template.component.d.ts +5 -0
  36. package/lib/data-grid/templates/detail-template.component.d.ts +5 -0
  37. package/lib/data-grid/templates/row-template.component.d.ts +5 -0
  38. package/lib/data-lov/data-lov-popup/data-lov-popup.component.d.ts +3 -0
  39. package/lib/data-lov/data-lov.component.d.ts +3 -0
  40. package/lib/data-lov/data-lov.module.d.ts +10 -0
  41. package/package.json +23 -13
  42. package/acorex-data-grid.metadata.json +0 -1
  43. package/bundles/acorex-data-grid.umd.js +0 -2249
  44. package/bundles/acorex-data-grid.umd.js.map +0 -1
  45. package/bundles/acorex-data-grid.umd.min.js +0 -16
  46. package/bundles/acorex-data-grid.umd.min.js.map +0 -1
  47. package/esm2015/acorex-data-grid.js +0 -5
  48. package/esm2015/lib/data-grid/columns/check-column.component.js +0 -104
  49. package/esm2015/lib/data-grid/columns/column.component.js +0 -204
  50. package/esm2015/lib/data-grid/columns/date-column.component.js +0 -114
  51. package/esm2015/lib/data-grid/columns/row-number-column.component.js +0 -39
  52. package/esm2015/lib/data-grid/columns/selection-column.component.js +0 -48
  53. package/esm2015/lib/data-grid/columns/text-column.component.js +0 -81
  54. package/esm2015/lib/data-grid/datagrid.component.js +0 -722
  55. package/esm2015/lib/data-grid/datagrid.events.js +0 -1
  56. package/esm2015/lib/data-grid/datagrid.module.js +0 -98
  57. package/esm2015/lib/data-grid/filters/filter.component.js +0 -25
  58. package/esm2015/lib/data-grid/templates/cell-template.component.js +0 -47
  59. package/esm2015/lib/data-grid/templates/detail-template.component.js +0 -45
  60. package/esm2015/lib/data-grid/templates/row-template.component.js +0 -40
  61. package/esm2015/lib/data-lov/data-lov-popup/data-lov-popup.component.js +0 -121
  62. package/esm2015/lib/data-lov/data-lov.component.js +0 -212
  63. package/esm2015/lib/data-lov/data-lov.module.js +0 -21
  64. package/esm2015/public-api.js +0 -17
  65. package/esm5/acorex-data-grid.js +0 -5
  66. package/esm5/lib/data-grid/columns/check-column.component.js +0 -102
  67. package/esm5/lib/data-grid/columns/column.component.js +0 -206
  68. package/esm5/lib/data-grid/columns/command-column.component.js +0 -98
  69. package/esm5/lib/data-grid/columns/date-column.component.js +0 -119
  70. package/esm5/lib/data-grid/columns/row-number-column.component.js +0 -42
  71. package/esm5/lib/data-grid/columns/selection-column.component.js +0 -52
  72. package/esm5/lib/data-grid/columns/text-column.component.js +0 -81
  73. package/esm5/lib/data-grid/datagrid.component.js +0 -780
  74. package/esm5/lib/data-grid/datagrid.events.js +0 -1
  75. package/esm5/lib/data-grid/datagrid.module.js +0 -101
  76. package/esm5/lib/data-grid/filters/filter.component.js +0 -16
  77. package/esm5/lib/data-grid/templates/cell-template.component.js +0 -46
  78. package/esm5/lib/data-grid/templates/detail-template.component.js +0 -49
  79. package/esm5/lib/data-grid/templates/row-template.component.js +0 -44
  80. package/esm5/lib/data-lov/data-lov-popup/data-lov-popup.component.js +0 -127
  81. package/esm5/lib/data-lov/data-lov.component.js +0 -222
  82. package/esm5/lib/data-lov/data-lov.module.js +0 -24
  83. package/esm5/public-api.js +0 -17
  84. package/fesm2015/acorex-data-grid.js +0 -1927
  85. package/fesm2015/acorex-data-grid.js.map +0 -1
  86. package/fesm5/acorex-data-grid.js +0 -2005
  87. package/fesm5/acorex-data-grid.js.map +0 -1
@@ -1,98 +0,0 @@
1
- import { __decorate, __extends, __metadata } from "tslib";
2
- import { AXGridDataColumn } from './column.component';
3
- import { ChangeDetectionStrategy, Component, Input, EventEmitter, ViewEncapsulation, Output } from '@angular/core';
4
- var AXGridCommandColumn = /** @class */ (function (_super) {
5
- __extends(AXGridCommandColumn, _super);
6
- function AXGridCommandColumn() {
7
- var _this = _super !== null && _super.apply(this, arguments) || this;
8
- _this.items = [];
9
- _this.onItemClick = new EventEmitter();
10
- return _this;
11
- }
12
- AXGridCommandColumn_1 = AXGridCommandColumn;
13
- AXGridCommandColumn.prototype.render = function () {
14
- var _this = this;
15
- var col = _super.prototype.render.call(this);
16
- if (!col.cellRendererFramework) {
17
- col.cellRendererFramework = CommandRenderer;
18
- }
19
- col.cellRendererParams = {
20
- items: this.items,
21
- onClick: function (e) {
22
- _this.onItemClick.emit({
23
- command: e.name,
24
- data: e.data,
25
- rowIndex: e.rowIndex,
26
- rowLevel: e.rowLevel,
27
- htmlEvent: e.htmlEvent
28
- });
29
- }
30
- };
31
- col.sortable = false;
32
- col.filter = false;
33
- col.valueGetter = function (params) {
34
- return _this.items;
35
- };
36
- return col;
37
- };
38
- var AXGridCommandColumn_1;
39
- __decorate([
40
- Input(),
41
- __metadata("design:type", Object)
42
- ], AXGridCommandColumn.prototype, "items", void 0);
43
- __decorate([
44
- Output(),
45
- __metadata("design:type", EventEmitter)
46
- ], AXGridCommandColumn.prototype, "onItemClick", void 0);
47
- AXGridCommandColumn = AXGridCommandColumn_1 = __decorate([
48
- Component({
49
- selector: 'ax-command-column',
50
- template: '',
51
- providers: [{ provide: AXGridDataColumn, useExisting: AXGridCommandColumn_1 }],
52
- changeDetection: ChangeDetectionStrategy.OnPush,
53
- encapsulation: ViewEncapsulation.None
54
- })
55
- ], AXGridCommandColumn);
56
- return AXGridCommandColumn;
57
- }(AXGridDataColumn));
58
- export { AXGridCommandColumn };
59
- var CommandRenderer = /** @class */ (function () {
60
- function CommandRenderer() {
61
- this.items = [];
62
- }
63
- CommandRenderer.prototype.agInit = function (params) {
64
- this.mapParams(params);
65
- };
66
- CommandRenderer.prototype.refresh = function (params) {
67
- this.mapParams(params);
68
- return true;
69
- };
70
- CommandRenderer.prototype.mapParams = function (params) {
71
- this.node = params.node;
72
- this.items = typeof params.items == 'function' ? params.items({ data: this.node.data }) : Array.isArray(params.items) ? params.items : [];
73
- this.clickCallback = params.onClick;
74
- };
75
- CommandRenderer.prototype.onClick = function (item, e) {
76
- if (this.clickCallback && !item.disable) {
77
- this.clickCallback({
78
- name: item.name,
79
- rowLevel: this.node.level,
80
- rowIndex: this.node.rowIndex,
81
- data: this.node.data,
82
- htmlEvent: e
83
- });
84
- }
85
- };
86
- CommandRenderer = __decorate([
87
- Component({
88
- selector: 'ax-command-cell',
89
- template: "\n <button\n *ngFor=\"let item of items; let i = index\"\n class=\"ax button md ax-grid-command-button {{ item.style || 'ax primary blank' }}\"\n [class.disabled]=\"item.disable\"\n type=\"button\"\n [title]=\"item.tooltip\"\n [attr.tabindex]=\"i\"\n (click)=\"onClick(item, $event)\"\n >\n <i [ngClass]=\"item.icon\"></i>{{ item.text }}\n </button>\n ",
90
- encapsulation: ViewEncapsulation.None,
91
- changeDetection: ChangeDetectionStrategy.OnPush
92
- }),
93
- __metadata("design:paramtypes", [])
94
- ], CommandRenderer);
95
- return CommandRenderer;
96
- }());
97
- export { CommandRenderer };
98
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tbWFuZC1jb2x1bW4uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGFjb3JleC9kYXRhLWdyaWQvIiwic291cmNlcyI6WyJsaWIvZGF0YS1ncmlkL2NvbHVtbnMvY29tbWFuZC1jb2x1bW4uY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSxvQkFBb0IsQ0FBQztBQUN0RCxPQUFPLEVBQUUsdUJBQXVCLEVBQUUsU0FBUyxFQUFFLEtBQUssRUFBRSxZQUFZLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSxFQUFxQixNQUFNLGVBQWUsQ0FBQztBQWV0STtJQUF5Qyx1Q0FBZ0I7SUFBekQ7UUFBQSxxRUErQkM7UUE3QkMsV0FBSyxHQUE0Qy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2gocGFyYW1zOiBJQ2VsbFJlbmRlcmVyUGFyYW1zKTogYm9vbGVhbiB7XHJcbiAgICB0aGlzLm1hcFBhcmFtcyhwYXJhbXMpO1xyXG4gICAgcmV0dXJuIHRydWU7XHJcbiAgfVxyXG5cclxuICBwcml2YXRlIG1hcFBhcmFtcyhwYXJhbXM6IGFueSkge1xyXG4gICAgdGhpcy5ub2RlID0gcGFyYW1zLm5vZGU7XHJcbiAgICB0aGlzLml0ZW1zID0gdHlwZW9mIHBhcmFtcy5pdGVtcyA9PSAnZnVuY3Rpb24nID8gcGFyYW1zLml0ZW1zKHsgZGF0YTogdGhpcy5ub2RlLmRhdGEgfSkgOiBBcnJheS5pc0FycmF5KHBhcmFtcy5pdGVtcykgPyBwYXJhbXMuaXRlbXMgOiBbXTtcclxuICAgIHRoaXMuY2xpY2tDYWxsYmFjayA9IHBhcmFtcy5vbkNsaWNrO1xyXG4gIH1cclxuXHJcbiAgb25DbGljayhpdGVtOiBBWE1lbnVJdGVtLCBlOiBNb3VzZUV2ZW50KSB7XHJcbiAgICBpZiAodGhpcy5jbGlja0NhbGxiYWNrICYmICFpdGVtLmRpc2FibGUpIHtcclxuICAgICAgdGhpcy5jbGlja0NhbGxiYWNrKHtcclxuICAgICAgICBuYW1lOiBpdGVtLm5hbWUsXHJcbiAgICAgICAgcm93TGV2ZWw6IHRoaXMubm9kZS5sZXZlbCxcclxuICAgICAgICByb3dJbmRleDogdGhpcy5ub2RlLnJvd0luZGV4LFxyXG4gICAgICAgIGRhdGE6IHRoaXMubm9kZS5kYXRhLFxyXG4gICAgICAgIGh0bWxFdmVudDogZVxyXG4gICAgICB9KTtcclxuICAgIH1cclxuICB9XHJcbn1cclxuIl19
@@ -1,119 +0,0 @@
1
- import { __decorate, __extends, __metadata } from "tslib";
2
- import { Component, ChangeDetectionStrategy, Input, ViewEncapsulation, ViewChild, ElementRef } from '@angular/core';
3
- import { AXGridDataColumn } from './column.component';
4
- import { AXDateTime, AXConfig } from '@acorex/core';
5
- import { AXDatePickerComponent } from '@acorex/components';
6
- var AXGridDateColumn = /** @class */ (function (_super) {
7
- __extends(AXGridDateColumn, _super);
8
- function AXGridDateColumn() {
9
- var _this = _super.call(this) || this;
10
- _this.type = AXConfig.get('dateTime.type');
11
- return _this;
12
- }
13
- AXGridDateColumn_1 = AXGridDateColumn;
14
- AXGridDateColumn.prototype.render = function () {
15
- var _this = this;
16
- var col = _super.prototype.render.call(this);
17
- col.cellRendererParams = {
18
- format: this.format,
19
- };
20
- col.comparator = function (valueA, valueB) {
21
- var date1 = AXDateTime.convert(valueA);
22
- var date2 = AXDateTime.convert(valueB);
23
- //
24
- if (date1 === null && date2 === null) {
25
- return 0;
26
- }
27
- if (date1 === null) {
28
- return -1;
29
- }
30
- if (date2 === null) {
31
- return 1;
32
- }
33
- return (date1.date.getTime() - date2.date.getTime());
34
- };
35
- col.valueFormatter = function (params) {
36
- var date = AXDateTime.convert(params.value, _this.type);
37
- if (date) {
38
- return date.format(_this.format);
39
- }
40
- else {
41
- return null;
42
- }
43
- };
44
- col.filter = 'agDateColumnFilter';
45
- // col.floatingFilter = true;
46
- return col;
47
- };
48
- var AXGridDateColumn_1;
49
- __decorate([
50
- Input(),
51
- __metadata("design:type", String)
52
- ], AXGridDateColumn.prototype, "format", void 0);
53
- __decorate([
54
- Input(),
55
- __metadata("design:type", String)
56
- ], AXGridDateColumn.prototype, "type", void 0);
57
- AXGridDateColumn = AXGridDateColumn_1 = __decorate([
58
- Component({
59
- selector: 'ax-date-column',
60
- template: '',
61
- providers: [{ provide: AXGridDataColumn, useExisting: AXGridDateColumn_1 }],
62
- changeDetection: ChangeDetectionStrategy.OnPush
63
- }),
64
- __metadata("design:paramtypes", [])
65
- ], AXGridDateColumn);
66
- return AXGridDateColumn;
67
- }(AXGridDataColumn));
68
- export { AXGridDateColumn };
69
- var AXDatePickerFilterComponent = /** @class */ (function () {
70
- function AXDatePickerFilterComponent() {
71
- this.selectableHoliday = false;
72
- this.type = 'jalali';
73
- }
74
- AXDatePickerFilterComponent.prototype.agInit = function (params) {
75
- this.params = params;
76
- };
77
- AXDatePickerFilterComponent.prototype.ngAfterViewInit = function () {
78
- };
79
- AXDatePickerFilterComponent.prototype.ngOnDestroy = function () {
80
- console.log("Destroying DateComponent");
81
- };
82
- AXDatePickerFilterComponent.prototype.onDateChanged = function (selectedDates) {
83
- //this.date = selectedDates[0] || null;
84
- this.params.onDateChanged();
85
- };
86
- AXDatePickerFilterComponent.prototype.getDate = function () {
87
- return this.date;
88
- };
89
- AXDatePickerFilterComponent.prototype.setDate = function (date) {
90
- this.date = date || null;
91
- //this.picker.setDate(date);
92
- };
93
- AXDatePickerFilterComponent.prototype.setInputPlaceholder = function (placeholder) {
94
- //this.div.nativeElement.setAttribute('placeholder', placeholder);
95
- };
96
- AXDatePickerFilterComponent.prototype.onValueChanged = function (e) {
97
- this.setDate(e.value);
98
- this.onDateChanged(e.value);
99
- };
100
- __decorate([
101
- ViewChild(AXDatePickerComponent),
102
- __metadata("design:type", AXDatePickerComponent)
103
- ], AXDatePickerFilterComponent.prototype, "datePicker", void 0);
104
- __decorate([
105
- ViewChild('div', { read: ElementRef }),
106
- __metadata("design:type", ElementRef)
107
- ], AXDatePickerFilterComponent.prototype, "div", void 0);
108
- AXDatePickerFilterComponent = __decorate([
109
- Component({
110
- selector: 'ax-data-picker-filter',
111
- template: "<ax-date-picker [selectableHoliday]=\"selectableHoliday\" [allowClear]=\"true\" (onValueChanged)=\"onValueChanged($event)\" size=\"sm\">\n </ax-date-picker>",
112
- host: {},
113
- encapsulation: ViewEncapsulation.None
114
- })
115
- ], AXDatePickerFilterComponent);
116
- return AXDatePickerFilterComponent;
117
- }());
118
- export { AXDatePickerFilterComponent };
119
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0ZS1jb2x1bW4uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGFjb3JleC9kYXRhLWdyaWQvIiwic291cmN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WNlaG9sZGVyOiBzdHJpbmcpOiB2b2lkIHtcclxuICAgIC8vdGhpcy5kaXYubmF0aXZlRWxlbWVudC5zZXRBdHRyaWJ1dGUoJ3BsYWNlaG9sZGVyJywgcGxhY2Vob2xkZXIpO1xyXG4gIH1cclxuICBvblZhbHVlQ2hhbmdlZChlKSB7XHJcblxyXG4gICAgdGhpcy5zZXREYXRlKGUudmFsdWUpO1xyXG4gICAgdGhpcy5vbkRhdGVDaGFuZ2VkKGUudmFsdWUpO1xyXG4gIH1cclxuXHJcbn1cclxuIl19
@@ -1,42 +0,0 @@
1
- import { __decorate, __extends, __metadata } from "tslib";
2
- import { AXGridDataColumn } from './column.component';
3
- import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
4
- import { AXConfig } from '@acorex/core';
5
- var AXGridRowNumberColumn = /** @class */ (function (_super) {
6
- __extends(AXGridRowNumberColumn, _super);
7
- function AXGridRowNumberColumn() {
8
- return _super.call(this) || this;
9
- }
10
- AXGridRowNumberColumn_1 = AXGridRowNumberColumn;
11
- AXGridRowNumberColumn.prototype.ngOnInit = function () { };
12
- AXGridRowNumberColumn.prototype.render = function () {
13
- var col = _super.prototype.render.call(this);
14
- // col.checkboxSelection = this.condition ? this.condition : true;
15
- // col.headerCheckboxSelection = true;
16
- (col.headerName = this.caption ? this.caption : AXConfig.get('layout.rtl') ? 'ردیف' : 'Row'),
17
- (col.valueGetter = 'node.rowIndex + 1'),
18
- (col.pinned = this.pinned == null ? null : this.pinned === 'start' ? 'right' : 'left'),
19
- (col.filter = false);
20
- col.resizable = true;
21
- col.sortable = false;
22
- col.width = this.width;
23
- return col;
24
- };
25
- var AXGridRowNumberColumn_1;
26
- __decorate([
27
- Input(),
28
- __metadata("design:type", Function)
29
- ], AXGridRowNumberColumn.prototype, "condition", void 0);
30
- AXGridRowNumberColumn = AXGridRowNumberColumn_1 = __decorate([
31
- Component({
32
- selector: 'ax-row-number-column',
33
- template: '',
34
- providers: [{ provide: AXGridDataColumn, useExisting: AXGridRowNumberColumn_1 }],
35
- changeDetection: ChangeDetectionStrategy.OnPush
36
- }),
37
- __metadata("design:paramtypes", [])
38
- ], AXGridRowNumberColumn);
39
- return AXGridRowNumberColumn;
40
- }(AXGridDataColumn));
41
- export { AXGridRowNumberColumn };
42
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicm93LW51bWJlci1jb2x1bW4uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGFjb3JleC9kYXRhLWdyaWQvIiwic291cmNlcyI6WyJsaWIvZGF0YS1ncmlkL2NvbHVtbnMvcm93LW51bWJlci1jb2x1bW4uY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSxvQkFBb0IsQ0FBQztBQUN0RCxPQUFPLEVBQUUsdUJBQXVCLEVBQUUsU0FBUyxFQUFFLEtBQUssRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUMxRSxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0sY0FBYyxDQUFDO0FBUXhDO0lBQTJDLHlDQUFnQjtJQUN6RDtlQUNFLGlCQUFPO0lBQ1QsQ0FBQzs4QkFIVSxxQkFBcUI7SUFLaEMsd0NBQVEsR0FBUixjQUFrQixDQUFDO0lBS25CLHNDQUFNLEdBQU47UUFDRSxJQUFNLEdBQUcsR0FBRyxpQkFBTSxNQUFNLFdBQUUsQ0FBQztRQUMzQixtRUFBbUU7UUFDbkUsdUNBQXVDO1FBRXZDLENBQUMsR0FBRyxDQUFDLFVBQVUsR0FBRyxJQUFJLENBQUMsT0FBTyxDQUFDLENBQUMsQ0FBQyxJQUFJLENBQUMsT0FBTyxDQUFDLENBQUMsQ0FBQyxRQUFRLENBQUMsR0FBRyxDQUFDLFlBQVksQ0FBQyxDQUFDLENBQUMsQ0FBQyxNQUFNLENBQUMsQ0FBQyxDQUFDLEtBQUssQ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ICAgIChjb2wudmFsdWVHZXR0ZXIgPSAnbm9kZS5yb3dJbmRleCArIDEnKSxcclxuICAgICAgKGNvbC5waW5uZWQgPSB0aGlzLnBpbm5lZCA9PSBudWxsID8gbnVsbCA6IHRoaXMucGlubmVkID09PSAnc3RhcnQnID8gJ3JpZ2h0JyA6ICdsZWZ0JyksXHJcbiAgICAgIChjb2wuZmlsdGVyID0gZmFsc2UpO1xyXG4gICAgY29sLnJlc2l6YWJsZSA9IHRydWU7XHJcbiAgICBjb2wuc29ydGFibGUgPSBmYWxzZTtcclxuICAgIGNvbC53aWR0aCA9IHRoaXMud2lkdGg7XHJcblxyXG4gICAgcmV0dXJuIGNvbDtcclxuICB9XHJcbn1cclxuIl19
@@ -1,52 +0,0 @@
1
- import { __decorate, __extends, __metadata } from "tslib";
2
- import { AXGridDataColumn } from './column.component';
3
- import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
4
- var AXGridSelectionColumn = /** @class */ (function (_super) {
5
- __extends(AXGridSelectionColumn, _super);
6
- function AXGridSelectionColumn() {
7
- var _this = _super.call(this) || this;
8
- _this.pinned = 'start';
9
- _this.width = 40;
10
- return _this;
11
- }
12
- AXGridSelectionColumn_1 = AXGridSelectionColumn;
13
- AXGridSelectionColumn.prototype.ngOnInit = function () { };
14
- AXGridSelectionColumn.prototype.render = function () {
15
- var col = _super.prototype.render.call(this);
16
- col.checkboxSelection = this.condition ? this.condition : true;
17
- // col.headerCheckboxSelection = true;
18
- col.pinned = this.pinned === 'start' ? 'right' : 'left';
19
- col.filter = false;
20
- col.resizable = true;
21
- col.sortable = false;
22
- col.minWidth = 5;
23
- col.width = this.width;
24
- col.floatingFilter = false;
25
- return col;
26
- };
27
- var AXGridSelectionColumn_1;
28
- __decorate([
29
- Input(),
30
- __metadata("design:type", Function)
31
- ], AXGridSelectionColumn.prototype, "condition", void 0);
32
- __decorate([
33
- Input(),
34
- __metadata("design:type", String)
35
- ], AXGridSelectionColumn.prototype, "pinned", void 0);
36
- __decorate([
37
- Input(),
38
- __metadata("design:type", Number)
39
- ], AXGridSelectionColumn.prototype, "width", void 0);
40
- AXGridSelectionColumn = AXGridSelectionColumn_1 = __decorate([
41
- Component({
42
- selector: 'ax-selection-column',
43
- template: '',
44
- providers: [{ provide: AXGridDataColumn, useExisting: AXGridSelectionColumn_1 }],
45
- changeDetection: ChangeDetectionStrategy.OnPush
46
- }),
47
- __metadata("design:paramtypes", [])
48
- ], AXGridSelectionColumn);
49
- return AXGridSelectionColumn;
50
- }(AXGridDataColumn));
51
- export { AXGridSelectionColumn };
52
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VsZWN0aW9uLWNvbHVtbi5jb21wb25lbnQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AYWNvcmV4L2RhdGEtZ3JpZC8iLCJzb3VyY2VzIjpbImxpYi9kYXRhLWdyaWQvY29sdW1ucy9zZWxlY3Rpb24tY29sdW1uLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLGdCQUFnQixFQUFFLE1BQU0sb0JBQW9CLENBQUM7QUFDdEQsT0FBTyxFQUFFLHVCQUF1QixFQUFFLFNBQVMsRUFBRSxLQUFLLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFRMUU7SUFBMkMseUNBQWdCO0lBQ3pEO1FBQUEsWUFDRSxpQkFBTyxTQUNSO1FBUUQsWUFBTSxHQUFvQixPQUFPLENBQUM7UUFHbEMsV0FBSyxHQUFXLEVBQUUsQ0FBQzs7SUFYbkIsQ0FBQzs4QkFIVSxxQkFBcUI7SUFLaEMsd0NBQVEsR0FBUixjQUFrQixDQUFDO0lBV25CLHNDQUFNLEdBQU47UUFDRSxJQUFNLEdBQUcsR0FBRyxpQkFBTSxNQUFNLFdBQUUsQ0FBQztRQUMzQixHQUFHLENBQUMsaUJBQWlCLEdBQUcsSUFBSSxDQUFDLFNBQVMsQ0FBQyxDQUF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sLnBpbm5lZCA9IHRoaXMucGlubmVkID09PSAnc3RhcnQnID8gJ3JpZ2h0JyA6ICdsZWZ0JztcclxuICAgIGNvbC5maWx0ZXIgPSBmYWxzZTtcclxuICAgIGNvbC5yZXNpemFibGUgPSB0cnVlO1xyXG4gICAgY29sLnNvcnRhYmxlID0gZmFsc2U7XHJcbiAgICBjb2wubWluV2lkdGggPSA1O1xyXG4gICAgY29sLndpZHRoID0gdGhpcy53aWR0aDtcclxuICAgIGNvbC5mbG9hdGluZ0ZpbHRlciA9IGZhbHNlO1xyXG4gICAgcmV0dXJuIGNvbDtcclxuICB9XHJcbn1cclxuIl19
@@ -1,81 +0,0 @@
1
- import { __decorate, __extends, __metadata } from "tslib";
2
- import { AXGridDataColumn } from './column.component';
3
- import { ChangeDetectionStrategy, Component, ViewChild } from '@angular/core';
4
- import { AXTextBoxComponent } from '@acorex/components';
5
- var AXGridTextColumn = /** @class */ (function (_super) {
6
- __extends(AXGridTextColumn, _super);
7
- function AXGridTextColumn() {
8
- return _super.call(this) || this;
9
- }
10
- AXGridTextColumn_1 = AXGridTextColumn;
11
- AXGridTextColumn.prototype.render = function () {
12
- var col = _super.prototype.render.call(this);
13
- // if (this.allowFiltering) {
14
- // col.filterFramework = TextFilterRenderer;
15
- // }
16
- col.filter = 'agTextColumnFilter';
17
- return col;
18
- };
19
- var AXGridTextColumn_1;
20
- AXGridTextColumn = AXGridTextColumn_1 = __decorate([
21
- Component({
22
- selector: 'ax-text-column',
23
- template: '',
24
- providers: [{ provide: AXGridDataColumn, useExisting: AXGridTextColumn_1 }],
25
- changeDetection: ChangeDetectionStrategy.OnPush
26
- }),
27
- __metadata("design:paramtypes", [])
28
- ], AXGridTextColumn);
29
- return AXGridTextColumn;
30
- }(AXGridDataColumn));
31
- export { AXGridTextColumn };
32
- var TextFilterRenderer = /** @class */ (function () {
33
- function TextFilterRenderer() {
34
- this.value = null;
35
- }
36
- TextFilterRenderer.prototype.agInit = function (params) {
37
- this.params = params;
38
- this.valueGetter = params.valueGetter;
39
- };
40
- TextFilterRenderer.prototype.isFilterActive = function () {
41
- return this.value !== null && this.value !== undefined;
42
- };
43
- TextFilterRenderer.prototype.doesFilterPass = function (params) {
44
- return this.value === this.valueGetter(params.node);
45
- };
46
- TextFilterRenderer.prototype.getModel = function () {
47
- return { value: this.value };
48
- };
49
- TextFilterRenderer.prototype.setModel = function (model) {
50
- ;
51
- this.onChange(model ? model.value : null);
52
- };
53
- TextFilterRenderer.prototype.ngAfterViewInit = function (params) {
54
- var _this = this;
55
- window.setTimeout(function () {
56
- _this.input.focus();
57
- });
58
- };
59
- TextFilterRenderer.prototype.onChange = function (newValue) {
60
- if (this.value !== newValue) {
61
- this.value = newValue;
62
- if (this.value === '') {
63
- this.value = null;
64
- }
65
- this.params.filterChangedCallback();
66
- }
67
- };
68
- __decorate([
69
- ViewChild(AXTextBoxComponent, { static: true }),
70
- __metadata("design:type", AXTextBoxComponent)
71
- ], TextFilterRenderer.prototype, "input", void 0);
72
- TextFilterRenderer = __decorate([
73
- Component({
74
- template: "\n <ax-data-grid-filter>\n <ax-text-box label='Filter' allowClear='true' (textChange)='onChange($event)'>\n </ax-text-box>\n </ax-data-grid-filter>\n ",
75
- changeDetection: ChangeDetectionStrategy.OnPush
76
- })
77
- ], TextFilterRenderer);
78
- return TextFilterRenderer;
79
- }());
80
- export { TextFilterRenderer };
81
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGV4dC1jb2x1bW4uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGFjb3JleC9kYXRhLWdyaWQvIiwic291cmNlcyI6WyJsaWIvZGF0YS1ncmlkL2NvbHVtbnMvdGV4dC1jb2x1bW4uY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSxvQkFBb0IsQ0FBQztBQUN0RCxPQUFPLEVBQ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