@acorex/data-grid 3.0.66 → 4.1.2

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 +3 -0
  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 -2261
  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 -734
  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 -792
  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 -1939
  85. package/fesm2015/acorex-data-grid.js.map +0 -1
  86. package/fesm5/acorex-data-grid.js +0 -2017
  87. package/fesm5/acorex-data-grid.js.map +0 -1
@@ -1,212 +0,0 @@
1
- var AXLOVComponent_1;
2
- import { __decorate, __metadata } from "tslib";
3
- import { Component, Input, ContentChildren, QueryList, Output, EventEmitter, ContentChild, ViewChild, ViewEncapsulation, ElementRef, TemplateRef } from '@angular/core';
4
- import { AXPopupService, AXBaseInputComponent, AXBaseSizableComponent, AXElementSize, AXValidation } from '@acorex/components';
5
- import { AXDataSourceComponent, AXSelectBoxComponent, AXValidatableComponent } from '@acorex/components';
6
- import { AXDataLovPopupComponent } from './data-lov-popup/data-lov-popup.component';
7
- import { AXGridDataColumn } from '../data-grid/columns/column.component';
8
- import { AXConfig } from '@acorex/core';
9
- let AXLOVComponent = AXLOVComponent_1 = class AXLOVComponent extends AXValidatableComponent {
10
- constructor(popup, ref) {
11
- super();
12
- this.popup = popup;
13
- this.ref = ref;
14
- this.textField = '';
15
- this.allowSearch = true;
16
- this.valueField = '';
17
- this.hasChildField = 'null';
18
- this.allowNull = true;
19
- this.popupSize = 'md';
20
- this.selectedItems = [];
21
- // @Input()
22
- // selectedValues: any[] = [];
23
- this.readonly = false;
24
- this.disabled = false;
25
- this.chipsWidth = '';
26
- this.size = 'md';
27
- this.mode = 'single';
28
- this.onSelectionChange = new EventEmitter();
29
- this.rtl = AXConfig.get('layout.rtl');
30
- }
31
- get validation() {
32
- return this._validation ? this._validation : this._contentValidation;
33
- }
34
- set validation(v) {
35
- this._validation = v;
36
- }
37
- focus() {
38
- this.selectBox.focus();
39
- }
40
- refresh() {
41
- this.selectBox.refresh();
42
- }
43
- handleButtonClick() {
44
- this.open();
45
- }
46
- ngOnInit() {
47
- if (this.rtl == null) {
48
- this.rtl = window.getComputedStyle(this.ref.nativeElement, null).getPropertyValue('direction') === 'rtl';
49
- }
50
- // this.selectVal = this.selectedValues;
51
- this.onSelectionChange.subscribe((c) => {
52
- this.clearValidationStyle(this.ref.nativeElement);
53
- });
54
- }
55
- ngAfterContentInit() {
56
- this.initValidation(this.ref, 'selectedItems', this.validation);
57
- }
58
- handleSelectChange(e) {
59
- // console.log('se' + JSON.stringify(e));
60
- this.onSelectionChange.emit({ data: this.selectedItems, component: this, htmlElement: this.ref.nativeElement });
61
- }
62
- open() {
63
- return new Promise((resolve) => {
64
- this.selectBox.dropdown.close();
65
- this.popup
66
- .open(AXDataLovPopupComponent, {
67
- size: this.popupSize,
68
- // closable: false,
69
- data: {
70
- dataSource: this.dataSource,
71
- selectionMode: this.mode,
72
- columns: this.columns.toArray(),
73
- // selectedItems: this.selectedValues,
74
- selectedItems: this.selectedItems,
75
- keyField: this.valueField,
76
- allowNull: this.allowNull,
77
- hasChildField: this.hasChildField,
78
- rtl: this.rtl
79
- },
80
- title: this.caption
81
- // size: this.size,
82
- })
83
- .then((c) => {
84
- if (c.data) {
85
- // this.selectedValues = [];
86
- this.selectedItems = [];
87
- c.data.forEach((elm) => {
88
- this.selectedItems.push(elm);
89
- });
90
- // this.selectedItems = c.data;
91
- // this.selectBox.refresh();
92
- // console.log('se' + JSON.stringify(this.selectedItems));
93
- this.onSelectionChange.emit({ data: this.selectedItems, component: this, htmlElement: this.ref.nativeElement });
94
- if (resolve) {
95
- resolve(c.data);
96
- }
97
- }
98
- else {
99
- if (resolve) {
100
- resolve(this.selectedItems);
101
- }
102
- }
103
- this.selectBox.refresh();
104
- });
105
- });
106
- }
107
- };
108
- AXLOVComponent.ctorParameters = () => [
109
- { type: AXPopupService },
110
- { type: ElementRef }
111
- ];
112
- __decorate([
113
- ContentChild(AXValidation, { static: true }),
114
- __metadata("design:type", AXValidation)
115
- ], AXLOVComponent.prototype, "_contentValidation", void 0);
116
- __decorate([
117
- Input(),
118
- __metadata("design:type", AXValidation),
119
- __metadata("design:paramtypes", [AXValidation])
120
- ], AXLOVComponent.prototype, "validation", null);
121
- __decorate([
122
- ViewChild('selectBox', { static: true }),
123
- __metadata("design:type", AXSelectBoxComponent)
124
- ], AXLOVComponent.prototype, "selectBox", void 0);
125
- __decorate([
126
- ContentChild(AXDataSourceComponent, { static: true }),
127
- __metadata("design:type", AXDataSourceComponent)
128
- ], AXLOVComponent.prototype, "dataSource", void 0);
129
- __decorate([
130
- ContentChildren(AXGridDataColumn),
131
- __metadata("design:type", QueryList)
132
- ], AXLOVComponent.prototype, "columns", void 0);
133
- __decorate([
134
- ContentChild('itemTemplate', { static: true }),
135
- __metadata("design:type", TemplateRef)
136
- ], AXLOVComponent.prototype, "rowTemplate", void 0);
137
- __decorate([
138
- Input(),
139
- __metadata("design:type", String)
140
- ], AXLOVComponent.prototype, "textField", void 0);
141
- __decorate([
142
- Input(),
143
- __metadata("design:type", Boolean)
144
- ], AXLOVComponent.prototype, "allowSearch", void 0);
145
- __decorate([
146
- Input(),
147
- __metadata("design:type", String)
148
- ], AXLOVComponent.prototype, "valueField", void 0);
149
- __decorate([
150
- Input(),
151
- __metadata("design:type", String)
152
- ], AXLOVComponent.prototype, "hasChildField", void 0);
153
- __decorate([
154
- Input(),
155
- __metadata("design:type", Boolean)
156
- ], AXLOVComponent.prototype, "allowNull", void 0);
157
- __decorate([
158
- Input(),
159
- __metadata("design:type", String)
160
- ], AXLOVComponent.prototype, "popupSize", void 0);
161
- __decorate([
162
- Input(),
163
- __metadata("design:type", Array)
164
- ], AXLOVComponent.prototype, "selectedItems", void 0);
165
- __decorate([
166
- Input(),
167
- __metadata("design:type", Boolean)
168
- ], AXLOVComponent.prototype, "readonly", void 0);
169
- __decorate([
170
- Input(),
171
- __metadata("design:type", Boolean)
172
- ], AXLOVComponent.prototype, "disabled", void 0);
173
- __decorate([
174
- Input(),
175
- __metadata("design:type", String)
176
- ], AXLOVComponent.prototype, "chipsWidth", void 0);
177
- __decorate([
178
- Input(),
179
- __metadata("design:type", String)
180
- ], AXLOVComponent.prototype, "size", void 0);
181
- __decorate([
182
- Input(),
183
- __metadata("design:type", String)
184
- ], AXLOVComponent.prototype, "caption", void 0);
185
- __decorate([
186
- Input(),
187
- __metadata("design:type", String)
188
- ], AXLOVComponent.prototype, "mode", void 0);
189
- __decorate([
190
- Input(),
191
- __metadata("design:type", String)
192
- ], AXLOVComponent.prototype, "placeholder", void 0);
193
- __decorate([
194
- Output(),
195
- __metadata("design:type", EventEmitter)
196
- ], AXLOVComponent.prototype, "onSelectionChange", void 0);
197
- __decorate([
198
- Input(),
199
- __metadata("design:type", Boolean)
200
- ], AXLOVComponent.prototype, "rtl", void 0);
201
- AXLOVComponent = AXLOVComponent_1 = __decorate([
202
- Component({
203
- selector: 'ax-lov',
204
- template: "<ax-select-box [rowInputTemplate]=\"rowTemplate\" [rtl]=\"rtl\" [allowSearch]=\"allowSearch\" #selectBox [showDropDownButton]=\"false\" [allowNull]=\"allowNull\"\r\n [remoteOperation]=\"true\" [placeholder]=\"placeholder\" [size]=\"size\" [textField]=\"textField\" [valueField]=\"valueField\"\r\n [disabled]=\"disabled\" [mode]=\"mode\" [(selectedItems)]=\"selectedItems\"\r\n (selectionChanged)=\"handleSelectChange($event)\" [dataSource]=\"dataSource\">\r\n <ng-container start>\r\n <ng-content select=\"[start]\">\r\n </ng-content>\r\n </ng-container>\r\n <ng-container end>\r\n <ax-button icon=\"far fa-bars icon\" [disabled]=\"disabled\" type=\"light blank\" (click)=\"handleButtonClick()\" end\r\n [tabIndex]=\"-1\">\r\n </ax-button>\r\n <ng-content select=\"[end]\">\r\n </ng-content>\r\n </ng-container>\r\n</ax-select-box>\r\n\r\n\r\n<!-- <ax-select-box2 [rtl]=\"rtl\" [allowSearch]=\"allowSearch\" #selectBox [showDropDownButton]=\"false\" [allowNull]=\"allowNull\"\r\n [remoteOperation]=\"true\" [placeholder]=\"placeholder\" [size]=\"size\" [textField]=\"textField\" [valueField]=\"valueField\"\r\n [disabled]=\"disabled\" [selectionMode]=\"mode\" (onValueChanged)=\"handleSelectChange($event)\" [dataSource]=\"dataSource\"\r\n [(value)]=\"selectedItems\" selectionDataMode=\"item\">\r\n <ng-container start>\r\n <ng-content select=\"[start]\">\r\n </ng-content>\r\n </ng-container>\r\n <ng-container end>\r\n <ax-button icon=\"far fa-bars icon\" [disabled]=\"disabled\" type=\"primary blank\" (click)=\"handleButtonClick()\" end\r\n [tabIndex]=\"-1\">\r\n </ax-button>\r\n <ng-content select=\"[end]\">\r\n </ng-content>\r\n </ng-container>\r\n</ax-select-box2> -->\r\n\r\n\r\n<!-- <div class=\"ax-lov-box\" [style.display]=\"mode=='hidden' ? 'none':'unset'\">\r\n <div class=\"ax-field-set\">\r\n <div class=\"ax-field-set-wrapper\" [ngClass]=\"{ 'no-label': !label }\">\r\n <fieldset [ngClass]=\"{ 'input-focused': isFocused, 'input-error': errorText }\">\r\n <legend *ngIf=\"label\">\r\n {{ label }}\r\n </legend>\r\n </fieldset>\r\n <input type=\"text\" [(ngModel)]=\"text\" [placeholder]=\"placeholder\" (keyup)=\"handleKeyEvent($event)\"\r\n (blur)=\"handleBlurEvent($event)\" (focus)=\"handleFocusEvent($event)\" class=\"ax-text-box\" disabled />\r\n <div class=\"ax-field-set-button\">\r\n <button *ngIf=\"text && allowClear\" type=\"button\" class=\"btn btn-light\" (click)=\"clearText()\">\r\n <i class=\"far fa-times\"></i>\r\n </button>\r\n <button type=\"button\" class=\" btn btn-primary\" (click)=\"handleButtonClick($event)\">\r\n <i class=\"far fa-check-circle\"></i>\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"validation-text\" *ngIf=\"errorText\">\r\n {{ errorText }}\r\n </div>\r\n\r\n</div> -->",
205
- encapsulation: ViewEncapsulation.None,
206
- host: { style: 'width: 100%' },
207
- providers: [{ provide: AXValidatableComponent, useExisting: AXLOVComponent_1 }]
208
- }),
209
- __metadata("design:paramtypes", [AXPopupService, ElementRef])
210
- ], AXLOVComponent);
211
- export { AXLOVComponent };
212
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0YS1sb3YuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGFjb3JleC9kYXRhLWdyaWQvIiwic291cmNlcyI6WyJsaWIvZGF0YS1sb3YvZGF0YS1sb3YuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsT0FBTyxFQUNMLFNBQVMsRUFDVCxLQUFLLEVBQ0wsZUFBZSxFQUNmLFNBQVMsRUFDVCxNQUFNLEVBQ04sWUFBWSxFQUNaLFlBQVksRUFDWixTQUFTLEVBQ1QsaUJBQWlCLEVBQ2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B0aXRsZTogdGhpcy5jYXB0aW9uXHJcbiAgICAgICAgICAvLyBzaXplOiB0aGlzLnNpemUsXHJcbiAgICAgICAgfSlcclxuICAgICAgICAudGhlbigoYykgPT4ge1xyXG4gICAgICAgICAgaWYgKGMuZGF0YSkge1xyXG4gICAgICAgICAgICAvLyB0aGlzLnNlbGVjdGVkVmFsdWVzID0gW107XHJcbiAgICAgICAgICAgIHRoaXMuc2VsZWN0ZWRJdGVtcyA9IFtdO1xyXG4gICAgICAgICAgICBjLmRhdGEuZm9yRWFjaCgoZWxtKSA9PiB7XHJcbiAgICAgICAgICAgICAgdGhpcy5zZWxlY3RlZEl0ZW1zLnB1c2goZWxtKTtcclxuICAgICAgICAgICAgfSk7XHJcbiAgICAgICAgICAgIC8vICB0aGlzLnNlbGVjdGVkSXRlbXMgPSBjLmRhdGE7XHJcbiAgICAgICAgICAgIC8vICB0aGlzLnNlbGVjdEJveC5yZWZyZXNoKCk7XHJcbiAgICAgICAgICAgIC8vICAgIGNvbnNvbGUubG9nKCdzZScgKyBKU09OLnN0cmluZ2lmeSh0aGlzLnNlbGVjdGVkSXRlbXMpKTtcclxuICAgICAgICAgICAgdGhpcy5vblNlbGVjdGlvbkNoYW5nZS5lbWl0KHsgZGF0YTogdGhpcy5zZWxlY3RlZEl0ZW1zLCBjb21wb25lbnQ6IHRoaXMsIGh0bWxFbGVtZW50OiB0aGlzLnJlZi5uYXRpdmVFbGVtZW50IH0pO1xyXG4gICAgICAgICAgICBpZiAocmVzb2x2ZSkge1xyXG4gICAgICAgICAgICAgIHJlc29sdmUoYy5kYXRhKTtcclxuICAgICAgICAgICAgfVxyXG4gICAgICAgICAgfSBlbHNlIHtcclxuICAgICAgICAgICAgaWYgKHJlc29sdmUpIHtcclxuICAgICAgICAgICAgICByZXNvbHZlKHRoaXMuc2VsZWN0ZWRJdGVtcyk7XHJcbiAgICAgICAgICAgIH1cclxuICAgICAgICAgIH1cclxuXHJcbiAgICAgICAgICB0aGlzLnNlbGVjdEJveC5yZWZyZXNoKCk7XHJcbiAgICAgICAgfSk7XHJcbiAgICB9KTtcclxuICB9XHJcbn1cclxuIl19
@@ -1,21 +0,0 @@
1
- import { __decorate } from "tslib";
2
- import { NgModule } from '@angular/core';
3
- import { CommonModule } from '@angular/common';
4
- import { AXLOVComponent } from './data-lov.component';
5
- import { FormsModule } from '@angular/forms';
6
- import { AXDataLovPopupComponent } from './data-lov-popup/data-lov-popup.component';
7
- import { AXDataGridModule } from '../data-grid/datagrid.module';
8
- import { AXDataSourceModule, AXButtonModule, AXToolbarModule, AXSearchBoxModule, AXSelectBoxModule } from '@acorex/components';
9
- let AXLOVModule = class AXLOVModule {
10
- };
11
- AXLOVModule = __decorate([
12
- NgModule({
13
- declarations: [AXLOVComponent, AXDataLovPopupComponent],
14
- imports: [CommonModule, FormsModule, AXDataGridModule, AXDataSourceModule, AXButtonModule, AXToolbarModule, AXSelectBoxModule, AXSearchBoxModule],
15
- exports: [AXLOVComponent, AXDataLovPopupComponent],
16
- providers: [],
17
- entryComponents: [AXDataLovPopupComponent]
18
- })
19
- ], AXLOVModule);
20
- export { AXLOVModule };
21
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0YS1sb3YubW9kdWxlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGFjb3JleC9kYXRhLWdyaWQvIiwic291cmNlcyI6WyJsaWIvZGF0YS1sb3YvZGF0YS1sb3YubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3pDLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUMvQyxPQUFPLEVBQUUsY0FBYyxFQUFFLE1BQU0sc0JBQXNCLENBQUM7QUFDdEQsT0FBTyxFQUFFLFdBQVcsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBQzd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nLi9kYXRhLWxvdi1wb3B1cC9kYXRhLWxvdi1wb3B1cC5jb21wb25lbnQnO1xyXG5pbXBvcnQgeyBBWERhdGFHcmlkTW9kdWxlIH0gZnJvbSAnLi4vZGF0YS1ncmlkL2RhdGFncmlkLm1vZHVsZSc7XHJcbmltcG9ydCB7IEFYRGF0YVNvdXJjZU1vZHVsZSwgQVhCdXR0b25Nb2R1bGUsIEFYVG9vbGJhck1vZHVsZSwgQVhTZWFyY2hCb3hNb2R1bGUsIEFYU2VsZWN0Qm94TW9kdWxlIH0gZnJvbSAnQGFjb3JleC9jb21wb25lbnRzJztcclxuXHJcblxyXG5ATmdNb2R1bGUoe1xyXG4gICAgZGVjbGFyYXRpb25zOiBbQVhMT1ZDb21wb25lbnQsIEFYRGF0YUxvdlBvcHVwQ29tcG9uZW50XSxcclxuICAgIGltcG9ydHM6IFtDb21tb25Nb2R1bGUsIEZvcm1zTW9kdWxlLCBBWERhdGFHcmlkTW9kdWxlLCBBWERhdGFTb3VyY2VNb2R1bGUsIEFYQnV0dG9uTW9kdWxlLCBBWFRvb2xiYXJNb2R1bGUsIEFYU2VsZWN0Qm94TW9kdWxlLCBBWFNlYXJjaEJveE1vZHVsZV0sXHJcbiAgICBleHBvcnRzOiBbQVhMT1ZDb21wb25lbnQsIEFYRGF0YUxvdlBvcHVwQ29tcG9uZW50XSxcclxuICAgIHByb3ZpZGVyczogW10sXHJcbiAgICBlbnRyeUNvbXBvbmVudHM6IFtBWERhdGFMb3ZQb3B1cENvbXBvbmVudF1cclxufSlcclxuZXhwb3J0IGNsYXNzIEFYTE9WTW9kdWxlIHsgfSJdfQ==
@@ -1,17 +0,0 @@
1
- export * from './lib/data-grid/columns/check-column.component';
2
- export * from './lib/data-grid/columns/column.component';
3
- export * from './lib/data-grid/columns/command-column.component';
4
- export * from './lib/data-grid/columns/date-column.component';
5
- export * from './lib/data-grid/columns/selection-column.component';
6
- export * from './lib/data-grid/columns/text-column.component';
7
- export * from './lib/data-grid/columns/row-number-column.component';
8
- export * from './lib/data-grid/datagrid.component';
9
- export * from './lib/data-grid/datagrid.module';
10
- export * from './lib/data-grid/filters/filter.component';
11
- export * from './lib/data-grid/templates/cell-template.component';
12
- export * from './lib/data-grid/templates/row-template.component';
13
- export * from './lib/data-grid/templates/detail-template.component';
14
- export * from './lib/data-lov/data-lov-popup/data-lov-popup.component';
15
- export * from './lib/data-lov/data-lov.component';
16
- export * from './lib/data-lov/data-lov.module';
17
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BhY29yZXgvZGF0YS1ncmlkLyIsInNvdXJjZXMiOlsicHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLGdEQUFnRCxDQUFDO0FBQy9ELGNBQWMsMENBQTBDLENBQUM7QUFDekQsY0FBYyxrREFBa0QsQ0FBQztBQUNqRSxjQUFjLCtDQUErQyxDQUFDO0FBQzlELGNBQWMsb0RBQW9ELENBQUM7QUFDbkUsY0FBYywrQ0FBK0MsQ0FBQztBQUM5RCxjQUFjLHFEQUFxRCxDQUFDO0FBRXBFLGNBQWMsb0NBQW9DLENBQUM7QUFFbkQsY0FBYyxpQ0FBaUMsQ0FBQztBQUVoRCxjQUFjLDBDQUEwQyxDQUFDO0FBQ3pELGNBQWMsbURBQW1ELENBQUM7QUFDbEUsY0FBYyxrREFBa0QsQ0FBQztBQUNqRSxjQUFjLHFEQUFxRCxDQUFDO0FBRXBFLGNBQWMsd0RBQXdELENBQUM7QUFDdkUsY0FBYyxtQ0FBbUMsQ0FBQztBQUNsRCxjQUFjLGdDQUFnQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9saWIvZGF0YS1ncmlkL2NvbHVtbnMvY2hlY2stY29sdW1uLmNvbXBvbmVudCc7XHJcbmV4cG9ydCAqIGZyb20gJy4vbG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ZW1wbGF0ZS5jb21wb25lbnQnO1xyXG5cclxuZXhwb3J0ICogZnJvbSAnLi9saWIvZGF0YS1sb3YvZGF0YS1sb3YtcG9wdXAvZGF0YS1sb3YtcG9wdXAuY29tcG9uZW50JztcclxuZXhwb3J0ICogZnJvbSAnLi9saWIvZGF0YS1sb3YvZGF0YS1sb3YuY29tcG9uZW50JztcclxuZXhwb3J0ICogZnJvbSAnLi9saWIvZGF0YS1sb3YvZGF0YS1sb3YubW9kdWxlJztcclxuIl19
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- export * from './public-api';
5
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWNvcmV4LWRhdGEtZ3JpZC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BhY29yZXgvZGF0YS1ncmlkLyIsInNvdXJjZXMiOlsiYWNvcmV4LWRhdGEtZ3JpZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsY0FBYyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL3B1YmxpYy1hcGknO1xuIl19
@@ -1,102 +0,0 @@
1
- import { __decorate, __extends, __metadata } from "tslib";
2
- import { Component, ChangeDetectionStrategy, ViewChild, ViewContainerRef } from '@angular/core';
3
- import { AXGridDataColumn } from './column.component';
4
- var AXGridCheckColumn = /** @class */ (function (_super) {
5
- __extends(AXGridCheckColumn, _super);
6
- function AXGridCheckColumn() {
7
- return _super.call(this) || this;
8
- }
9
- AXGridCheckColumn_1 = AXGridCheckColumn;
10
- AXGridCheckColumn.prototype.render = function () {
11
- var col = _super.prototype.render.call(this);
12
- if (!col.cellRendererFramework) {
13
- col.cellRendererFramework = BooleanRenderer;
14
- }
15
- if (this.allowFiltering) {
16
- col.filterFramework = BooleanFilterRenderer;
17
- }
18
- return col;
19
- };
20
- var AXGridCheckColumn_1;
21
- AXGridCheckColumn = AXGridCheckColumn_1 = __decorate([
22
- Component({
23
- selector: 'ax-check-column',
24
- template: '',
25
- providers: [{ provide: AXGridDataColumn, useExisting: AXGridCheckColumn_1 }],
26
- changeDetection: ChangeDetectionStrategy.OnPush
27
- }),
28
- __metadata("design:paramtypes", [])
29
- ], AXGridCheckColumn);
30
- return AXGridCheckColumn;
31
- }(AXGridDataColumn));
32
- export { AXGridCheckColumn };
33
- var BooleanRenderer = /** @class */ (function () {
34
- function BooleanRenderer() {
35
- }
36
- BooleanRenderer.prototype.agInit = function (params) {
37
- this.value = params.value;
38
- };
39
- BooleanRenderer.prototype.refresh = function (params) {
40
- this.value = params.value;
41
- return true;
42
- };
43
- BooleanRenderer = __decorate([
44
- Component({
45
- template: "\n <ax-check-box [value]='value' readonly='true'></ax-check-box>\n ",
46
- changeDetection: ChangeDetectionStrategy.OnPush
47
- }),
48
- __metadata("design:paramtypes", [])
49
- ], BooleanRenderer);
50
- return BooleanRenderer;
51
- }());
52
- export { BooleanRenderer };
53
- var BooleanFilterRenderer = /** @class */ (function () {
54
- function BooleanFilterRenderer() {
55
- this.value = null;
56
- this.selectItem = [
57
- { value: 0, label: 'True' },
58
- { value: 1, label: 'False' },
59
- ];
60
- }
61
- BooleanFilterRenderer.prototype.agInit = function (params) {
62
- this.params = params;
63
- this.valueGetter = params.valueGetter;
64
- };
65
- BooleanFilterRenderer.prototype.isFilterActive = function () {
66
- return this.value !== null && this.value !== undefined;
67
- };
68
- BooleanFilterRenderer.prototype.doesFilterPass = function (params) {
69
- return this.value === this.valueGetter(params.node);
70
- };
71
- BooleanFilterRenderer.prototype.getModel = function () {
72
- return { value: this.value };
73
- };
74
- BooleanFilterRenderer.prototype.setModel = function (model) {
75
- this.value = model ? model.value : null;
76
- };
77
- BooleanFilterRenderer.prototype.ngAfterViewInit = function (params) {
78
- var _this = this;
79
- window.setTimeout(function () {
80
- _this.input.element.nativeElement.focus();
81
- });
82
- };
83
- BooleanFilterRenderer.prototype.onChange = function (newValue) {
84
- if (this.value !== newValue) {
85
- this.value = newValue;
86
- this.params.filterChangedCallback();
87
- }
88
- };
89
- __decorate([
90
- ViewChild('input', { static: true, read: ViewContainerRef }),
91
- __metadata("design:type", Object)
92
- ], BooleanFilterRenderer.prototype, "input", void 0);
93
- BooleanFilterRenderer = __decorate([
94
- Component({
95
- template: "\n <ax-data-grid-filter>\n <ax-select-box\n label='Select Box'\n [items]='selectItem'\n ></ax-select-box>\n </ax-data-grid-filter>\n ",
96
- changeDetection: ChangeDetectionStrategy.OnPush
97
- })
98
- ], BooleanFilterRenderer);
99
- return BooleanFilterRenderer;
100
- }());
101
- export { BooleanFilterRenderer };
102
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hlY2stY29sdW1uLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BhY29yZXgvZGF0YS1ncmlkLyIsInNvdXJjZXMiOlsibGliL2RhdGEtZ3JpZC9jb2x1bW5zL2NoZWNrLWNvbHVtbi5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFDTCxTQUFTLEVBQ1QsdUJBQXVCLEVBQ3ZCLFNBQVMsRUFDVCxnQkFBZ0IsRUFDakIsTUFBTSxlQUFlLENBQUM7QUFDdkIsT0FBTyxFQUFFLGdCQUFnQixFQUFFLE1BQU0sb0JBQW9CLENBQUM7QUFpQnREO0lBQXVDLHFDQUFnQjtJQUNyRDtlQUNFLGlCQUFPO0lBQ1QsQ0FBQzswQkFIVSxpQkFBaUI7SUFLNUIsa0NBQU0sR0FBTjtRQUNFLElBQU0sR0FBRyxHQUFHLGlCQUFNLE1BQU0sV0FBRSxDQUFDO1FBQzNCLElBQUksQ0FBQyxHQUFHLENBQUMscUJBQXFCLEVBQUU7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WNoZWRQYXJhbXMpOiB2b2lkIHtcclxuICAgIHdpbmRvdy5zZXRUaW1lb3V0KCgpID0+IHtcclxuICAgICAgdGhpcy5pbnB1dC5lbGVtZW50Lm5hdGl2ZUVsZW1lbnQuZm9jdXMoKTtcclxuICAgIH0pO1xyXG4gIH1cclxuXHJcbiAgb25DaGFuZ2UobmV3VmFsdWUpOiB2b2lkIHtcclxuICAgIGlmICh0aGlzLnZhbHVlICE9PSBuZXdWYWx1ZSkge1xyXG4gICAgICB0aGlzLnZhbHVlID0gbmV3VmFsdWU7XHJcbiAgICAgIHRoaXMucGFyYW1zLmZpbHRlckNoYW5nZWRDYWxsYmFjaygpO1xyXG4gICAgfVxyXG4gIH1cclxufVxyXG4iXX0=
@@ -1,206 +0,0 @@
1
- import { __decorate, __metadata } from "tslib";
2
- import { AXConfig } from '@acorex/core';
3
- import { Input, ContentChild } from '@angular/core';
4
- import { AXDataGridCellTemplateComponent } from '../templates/cell-template.component';
5
- var AXGridDataColumn = /** @class */ (function () {
6
- function AXGridDataColumn() {
7
- this.width = 100;
8
- this.pinned = null;
9
- this.allowSorting = true;
10
- this.allowFiltering = AXConfig.get('datagrid.allowFiltering') || false;
11
- this.sort = null;
12
- this.field = '';
13
- this.caption = '';
14
- this.checkbox = false;
15
- this.headerCheckbox = false;
16
- this.groupIndex = -1;
17
- this.treeIndex = -1;
18
- this.enableRowGroup = false;
19
- this.hide = false;
20
- this.floatingFilter = AXConfig.get('datagrid.floatingFilter') || false;
21
- this.disableMenu = false;
22
- this.resizable = true;
23
- this.menuColumnDisable = false;
24
- this.menuItemDisable = false;
25
- }
26
- ;
27
- AXGridDataColumn.prototype.render = function () {
28
- var col = {
29
- field: this.field,
30
- width: this.width,
31
- };
32
- col.resizable = this.resizable;
33
- col.suppressMenu = this.disableMenu;
34
- col.menuTabs = ['filterMenuTab', 'columnsMenuTab', 'generalMenuTab'];
35
- col.floatingFilter = this.floatingFilter;
36
- if (!this.allowFiltering) {
37
- col.filter = false;
38
- col.menuTabs = col.menuTabs.filter(function (c) { return c != 'filterMenuTab'; });
39
- col.floatingFilter = false;
40
- }
41
- if (this.menuColumnDisable == true) {
42
- col.menuTabs = col.menuTabs.filter(function (c) { return c != 'columnsMenuTab'; });
43
- }
44
- if (this.menuItemDisable == true) {
45
- col.menuTabs = col.menuTabs.filter(function (c) { return c != 'generalMenuTab'; });
46
- }
47
- if (this.caption) {
48
- col.headerName = this.caption;
49
- }
50
- if (this.minWidth) {
51
- col.minWidth = this.minWidth;
52
- }
53
- if (this.maxWidth) {
54
- col.maxWidth = this.maxWidth;
55
- }
56
- if (this.pinned) {
57
- col.pinned = this.pinned === 'start' ? 'right' : 'left';
58
- // TODO: Change based on layout
59
- }
60
- if (this.allowSorting) {
61
- col.sortable = this.allowSorting;
62
- }
63
- if (this.sort) {
64
- col.sort = this.sort;
65
- }
66
- if (this.groupIndex >= 0) {
67
- col.rowGroupIndex = this.groupIndex;
68
- col.rowGroup = true;
69
- this.enableRowGroup = true;
70
- }
71
- if (this.treeIndex >= 0) {
72
- col.rowGroupIndex = this.treeIndex;
73
- col.rowGroup = false;
74
- }
75
- if (this.hide) {
76
- col.hide = true;
77
- }
78
- if (this.enableRowGroup) {
79
- col.enableRowGroup = this.enableRowGroup;
80
- }
81
- if (this.cellClass) {
82
- var THAT_1 = this;
83
- if (this.cellClass instanceof Function) {
84
- col.cellClass = function (p) {
85
- return THAT_1.cellClass({
86
- column: THAT_1,
87
- rowIndex: p.node.rowIndex,
88
- rowLevel: p.node.level,
89
- data: p.data,
90
- value: p.value
91
- });
92
- };
93
- }
94
- else {
95
- col.cellClass = this.cellClass;
96
- }
97
- }
98
- //
99
- if (this.cellTemplate != null) {
100
- col.cellRendererFramework = this.cellTemplate.renderer;
101
- col.cellRendererParams = this.cellTemplate.params;
102
- }
103
- if (this.checkbox) {
104
- col.checkboxSelection = function (params) {
105
- return true;
106
- };
107
- // col.headerCheckboxSelection = this.headerCheckbox;
108
- }
109
- return col;
110
- };
111
- __decorate([
112
- ContentChild(AXDataGridCellTemplateComponent),
113
- __metadata("design:type", AXDataGridCellTemplateComponent)
114
- ], AXGridDataColumn.prototype, "cellTemplate", void 0);
115
- __decorate([
116
- Input(),
117
- __metadata("design:type", Number)
118
- ], AXGridDataColumn.prototype, "width", void 0);
119
- __decorate([
120
- Input(),
121
- __metadata("design:type", Number)
122
- ], AXGridDataColumn.prototype, "maxWidth", void 0);
123
- __decorate([
124
- Input(),
125
- __metadata("design:type", Number)
126
- ], AXGridDataColumn.prototype, "minWidth", void 0);
127
- __decorate([
128
- Input(),
129
- __metadata("design:type", String)
130
- ], AXGridDataColumn.prototype, "pinned", void 0);
131
- __decorate([
132
- Input(),
133
- __metadata("design:type", Boolean)
134
- ], AXGridDataColumn.prototype, "allowSorting", void 0);
135
- __decorate([
136
- Input(),
137
- __metadata("design:type", Boolean)
138
- ], AXGridDataColumn.prototype, "allowFiltering", void 0);
139
- __decorate([
140
- Input(),
141
- __metadata("design:type", Function)
142
- ], AXGridDataColumn.prototype, "cellClass", void 0);
143
- __decorate([
144
- Input(),
145
- __metadata("design:type", String)
146
- ], AXGridDataColumn.prototype, "sort", void 0);
147
- __decorate([
148
- Input(),
149
- __metadata("design:type", String)
150
- ], AXGridDataColumn.prototype, "field", void 0);
151
- __decorate([
152
- Input(),
153
- __metadata("design:type", String)
154
- ], AXGridDataColumn.prototype, "caption", void 0);
155
- __decorate([
156
- Input(),
157
- __metadata("design:type", Object)
158
- ], AXGridDataColumn.prototype, "cellRendererParams", void 0);
159
- __decorate([
160
- Input(),
161
- __metadata("design:type", Boolean)
162
- ], AXGridDataColumn.prototype, "checkbox", void 0);
163
- __decorate([
164
- Input(),
165
- __metadata("design:type", Boolean)
166
- ], AXGridDataColumn.prototype, "headerCheckbox", void 0);
167
- __decorate([
168
- Input(),
169
- __metadata("design:type", Number)
170
- ], AXGridDataColumn.prototype, "groupIndex", void 0);
171
- __decorate([
172
- Input(),
173
- __metadata("design:type", Number)
174
- ], AXGridDataColumn.prototype, "treeIndex", void 0);
175
- __decorate([
176
- Input(),
177
- __metadata("design:type", Boolean)
178
- ], AXGridDataColumn.prototype, "enableRowGroup", void 0);
179
- __decorate([
180
- Input(),
181
- __metadata("design:type", Boolean)
182
- ], AXGridDataColumn.prototype, "hide", void 0);
183
- __decorate([
184
- Input(),
185
- __metadata("design:type", Boolean)
186
- ], AXGridDataColumn.prototype, "floatingFilter", void 0);
187
- __decorate([
188
- Input(),
189
- __metadata("design:type", Boolean)
190
- ], AXGridDataColumn.prototype, "disableMenu", void 0);
191
- __decorate([
192
- Input(),
193
- __metadata("design:type", Boolean)
194
- ], AXGridDataColumn.prototype, "resizable", void 0);
195
- __decorate([
196
- Input(),
197
- __metadata("design:type", Boolean)
198
- ], AXGridDataColumn.prototype, "menuColumnDisable", void 0);
199
- __decorate([
200
- Input(),
201
- __metadata("design:type", Boolean)
202
- ], AXGridDataColumn.prototype, "menuItemDisable", void 0);
203
- return AXGridDataColumn;
204
- }());
205
- export { AXGridDataColumn };
206
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29sdW1uLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BhY29yZXgvZGF0YS1ncmlkLyIsInNvdXJjZXMiOlsibGliL2RhdGEtZ3JpZC9jb2x1bW5zL2NvbHVtbi5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxjQUFjLENBQUM7QUFDeEMsT0FBTyxFQUFFLEtBQUssRUFBRSxZQUFZLEVBQWUsTUFBTSxlQUFlLENBQUM7QUFFakUsT0FBTyxFQUFFLCtCQUErQixFQUFFLE1BQU0sc0NBQXNDLENBQUM7QUFJdkY7SUF3RUk7UUFqRUEsVUFBSyxHQUFXLEdBQUcsQ0FBQztRQVNwQixXQUFNLEdBQTJCLElBQUksQ0FBQztRQUd0QyxpQkFBWSxHQUF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lzYWJsZTogYm9vbGVhbiA9IGZhbHNlO1xyXG5cclxuICAgIEBJbnB1dCgpXHJcbiAgICBtZW51SXRlbURpc2FibGU6IGJvb2xlYW4gPSBmYWxzZTtcclxuXHJcbiAgICBjb25zdHJ1Y3RvcigpIHsgfVxyXG5cclxuICAgIHJlbmRlcigpOiBhbnkge1xyXG4gICAgICAgIGNvbnN0IGNvbDogYW55ID0ge1xyXG4gICAgICAgICAgICBmaWVsZDogdGhpcy5maWVsZCxcclxuICAgICAgICAgICAgd2lkdGg6IHRoaXMud2lkdGgsXHJcbiAgICAgICAgfTtcclxuICAgICAgICBjb2wucmVzaXphYmxlID0gdGhpcy5yZXNpemFibGU7XHJcbiAgICAgICAgY29sLnN1cHByZXNzTWVudSA9IHRoaXMuZGlzYWJsZU1lbnU7XHJcbiAgICAgICAgY29sLm1lbnVUYWJzID0gWydmaWx0ZXJNZW51VGFiJywgJ2NvbHVtbnNNZW51VGFiJywgJ2dlbmVyYWxNZW51VGFiJ11cclxuICAgICAgICBjb2wuZmxvYXRpbmdGaWx0ZXIgPSB0aGlzLmZsb2F0aW5nRmlsdGVyO1xyXG5cclxuICAgICAgICBpZiAoIXRoaXMuYWxsb3dGaWx0ZXJpbmcpIHtcclxuICAgICAgICAgICAgY29sLmZpbHRlciA9IGZhbHNlO1xyXG4gICAgICAgICAgICBjb2wubWVudVRhYnMgPSBjb2wubWVudVRhYnMuZmlsdGVyKGMgPT4gYyAhPSAnZmlsdGVyTWVudVRhYicpO1xyXG4gICAgICAgICAgICBjb2wuZmxvYXRpbmdGaWx0ZXIgPSBmYWxzZTtcclxuICAgICAgICB9XHJcbiAgICAgICAgaWYgKHRoaXMubWVudUNvbHVtbkRpc2FibGUgPT0gdHJ1ZSkge1xyXG4gICAgICAgICAgICBjb2wubWVudVRhYnMgPSBjb2wubWVudVRhYnMuZmlsdGVyKGMgPT4gYyAhPSAnY29sdW1uc01lbnVUYWInKTtcclxuICAgICAgICB9XHJcbiAgICAgICAgaWYgKHRoaXMubWVudUl0ZW1EaXNhYmxlID09IHRydWUpIHtcclxuICAgICAgICAgICAgY29sLm1lbnVUYWJzID0gY29sLm1lbnVUYWJzLmZpbHRlcihjID0+IGMgIT0gJ2dlbmVyYWxNZW51VGFiJyk7XHJcbiAgICAgICAgfVxyXG4gICAgICAgIGlmICh0aGlzLmNhcHRpb24pIHtcclxuICAgICAgICAgICAgY29sLmhlYWRlck5hbWUgPSB0aGlzLmNhcHRpb247XHJcbiAgICAgICAgfVxyXG4gICAgICAgIGlmICh0aGlzLm1pbldpZHRoKSB7XHJcbiAgICAgICAgICAgIGNvbC5taW5XaWR0aCA9IHRoaXMubWluV2lkdGg7XHJcbiAgICAgICAgfVxyXG4gICAgICAgIGlmICh0aGlzLm1heFdpZHRoKSB7XHJcbiAgICAgICAgICAgIGNvbC5tYXhXaWR0aCA9IHRoaXMubWF4V2lkdGg7XHJcbiAgICAgICAgfVxyXG4gICAgICAgIGlmICh0aGlzLnBpbm5lZCkge1xyXG4gICAgICAgICAgICBjb2wucGlubmVkID0gdGhpcy5waW5uZWQgPT09ICdzdGFydCcgPyAncmlnaHQnIDogJ2xlZnQnO1xyXG4gICAgICAgICAgICAvLyBUT0RPOiBDaGFuZ2UgYmFzZWQgb24gbGF5b3V0XHJcbiAgICAgICAgfVxyXG4gICAgICAgIGlmICh0aGlzLmFsbG93U29ydGluZykge1xyXG4gICAgICAgICAgICBjb2wuc29ydGFibGUgPSB0aGlzLmFsbG93U29ydGluZztcclxuICAgICAgICB9XHJcbiAgICAgICAgaWYgKHRoaXMuc29ydCkge1xyXG4gICAgICAgICAgICBjb2wuc29ydCA9IHRoaXMuc29ydDtcclxuICAgICAgICB9XHJcblxyXG4gICAgICAgIGlmICh0aGlzLmdyb3VwSW5kZXggPj0gMCkge1xyXG4gICAgICAgICAgICBjb2wucm93R3JvdXBJbmRleCA9IHRoaXMuZ3JvdXBJbmRleDtcclxuICAgICAgICAgICAgY29sLnJvd0dyb3VwID0gdHJ1ZTtcclxuICAgICAgICAgICAgdGhpcy5lbmFibGVSb3dHcm91cCA9IHRydWU7XHJcbiAgICAgICAgfVxyXG5cclxuICAgICAgICBpZiAodGhpcy50cmVlSW5kZXggPj0gMCkge1xyXG4gICAgICAgICAgICBjb2wucm93R3JvdXBJbmRleCA9IHRoaXMudHJlZUluZGV4O1xyXG4gICAgICAgICAgICBjb2wucm93R3JvdXAgPSBmYWxzZTtcclxuICAgICAgICB9XHJcbiAgICAgICAgaWYgKHRoaXMuaGlkZSkge1xyXG4gICAgICAgICAgICBjb2wuaGlkZSA9IHRydWU7XHJcblxyXG4gICAgICAgIH1cclxuICAgICAgICBpZiAodGhpcy5lbmFibGVSb3dHcm91cCkge1xyXG4gICAgICAgICAgICBjb2wuZW5hYmxlUm93R3JvdXAgPSB0aGlzLmVuYWJsZVJvd0dyb3VwO1xyXG4gICAgICAgIH1cclxuXHJcbiAgICAgICAgaWYgKHRoaXMuY2VsbENsYXNzKSB7XHJcbiAgICAgICAgICAgIGNvbnN0IFRIQVQgPSB0aGlzO1xyXG4gICAgICAgICAgICBpZiAodGhpcy5jZWxsQ2xhc3MgaW5zdGFuY2VvZiBGdW5jdGlvbikge1xyXG4gICAgICAgICAgICAgICAgY29sLmNlbGxDbGFzcyA9IChwKSA9PiB7XHJcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIFRIQVQuY2VsbENsYXNzKHtcclxuICAgICAgICAgICAgICAgICAgICAgICAgY29sdW1uOiBUSEFULFxyXG4gICAgICAgICAgICAgICAgICAgICAgICByb3dJbmRleDogcC5ub2RlLnJvd0luZGV4LFxyXG4gICAgICAgICAgICAgICAgICAgICAgICByb3dMZXZlbDogcC5ub2RlLmxldmVsLFxyXG4gICAgICAgICAgICAgICAgICAgICAgICBkYXRhOiBwLmRhdGEsXHJcbiAgICAgICAgICAgICAgICAgICAgICAgIHZhbHVlOiBwLnZhbHVlXHJcbiAgICAgICAgICAgICAgICAgICAgfSk7XHJcbiAgICAgICAgICAgICAgICB9O1xyXG4gICAgICAgICAgICB9XHJcbiAgICAgICAgICAgIGVsc2Uge1xyXG4gICAgICAgICAgICAgICAgY29sLmNlbGxDbGFzcyA9IHRoaXMuY2VsbENsYXNzO1xyXG5cclxuICAgICAgICAgICAgfVxyXG4gICAgICAgIH1cclxuICAgICAgICAvL1xyXG4gICAgICAgIGlmICh0aGlzLmNlbGxUZW1wbGF0ZSAhPSBudWxsKSB7XHJcbiAgICAgICAgICAgIGNvbC5jZWxsUmVuZGVyZXJGcmFtZXdvcmsgPSB0aGlzLmNlbGxUZW1wbGF0ZS5yZW5kZXJlcjtcclxuICAgICAgICAgICAgY29sLmNlbGxSZW5kZXJlclBhcmFtcyA9IHRoaXMuY2VsbFRlbXBsYXRlLnBhcmFtcztcclxuICAgICAgICB9XHJcblxyXG4gICAgICAgIGlmICh0aGlzLmNoZWNrYm94KSB7XHJcbiAgICAgICAgICAgIGNvbC5jaGVja2JveFNlbGVjdGlvbiA9IChwYXJhbXMpID0+IHtcclxuICAgICAgICAgICAgICAgIHJldHVybiB0cnVlO1xyXG4gICAgICAgICAgICB9O1xyXG4gICAgICAgICAgICAvLyAgY29sLmhlYWRlckNoZWNrYm94U2VsZWN0aW9uID0gdGhpcy5oZWFkZXJDaGVja2JveDtcclxuICAgICAgICB9XHJcbiAgICAgICAgcmV0dXJuIGNvbDtcclxuICAgIH1cclxufVxyXG5cclxuXHJcblxyXG5cclxuXHJcblxyXG5cclxuXHJcbiJdfQ==