@skyux/ag-grid 5.1.1 → 5.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/skyux-ag-grid.umd.js +471 -365
- package/css/sky-ag-grid.css +42 -8
- package/documentation.json +133 -5793
- package/esm2015/modules/ag-grid/ag-grid-adapter.service.js +10 -7
- package/esm2015/modules/ag-grid/ag-grid-data-manager-adapter.directive.js +48 -22
- package/esm2015/modules/ag-grid/ag-grid-row-delete.component.js +16 -16
- package/esm2015/modules/ag-grid/ag-grid-row-delete.directive.js +32 -25
- package/esm2015/modules/ag-grid/ag-grid-wrapper.component.js +17 -10
- package/esm2015/modules/ag-grid/ag-grid.module.js +11 -11
- package/esm2015/modules/ag-grid/ag-grid.service.js +51 -37
- package/esm2015/modules/ag-grid/cell-editors/cell-editor-autocomplete/cell-editor-autocomplete.component.js +9 -6
- package/esm2015/modules/ag-grid/cell-editors/cell-editor-autocomplete/cell-editor-autocomplete.module.js +8 -22
- package/esm2015/modules/ag-grid/cell-editors/cell-editor-currency/cell-editor-currency.component.js +15 -8
- package/esm2015/modules/ag-grid/cell-editors/cell-editor-currency/cell-editor-currency.module.js +8 -22
- package/esm2015/modules/ag-grid/cell-editors/cell-editor-datepicker/cell-editor-datepicker.component.js +15 -9
- package/esm2015/modules/ag-grid/cell-editors/cell-editor-datepicker/cell-editor-datepicker.module.js +8 -19
- package/esm2015/modules/ag-grid/cell-editors/cell-editor-lookup/cell-editor-lookup.component.js +9 -9
- package/esm2015/modules/ag-grid/cell-editors/cell-editor-lookup/cell-editor-lookup.module.js +8 -8
- package/esm2015/modules/ag-grid/cell-editors/cell-editor-number/cell-editor-number.component.js +11 -7
- package/esm2015/modules/ag-grid/cell-editors/cell-editor-number/cell-editor-number.module.js +8 -19
- package/esm2015/modules/ag-grid/cell-editors/cell-editor-text/cell-editor-text.component.js +11 -7
- package/esm2015/modules/ag-grid/cell-editors/cell-editor-text/cell-editor-text.module.js +8 -19
- package/esm2015/modules/ag-grid/cell-renderers/cell-renderer-currency/cell-renderer-currency-validator.component.js +9 -6
- package/esm2015/modules/ag-grid/cell-renderers/cell-renderer-currency/cell-renderer-currency.component.js +10 -6
- package/esm2015/modules/ag-grid/cell-renderers/cell-renderer-currency/cell-renderer-currency.module.js +10 -10
- package/esm2015/modules/ag-grid/cell-renderers/cell-renderer-lookup/cell-renderer-lookup.component.js +7 -7
- package/esm2015/modules/ag-grid/cell-renderers/cell-renderer-lookup/cell-renderer-lookup.module.js +6 -6
- package/esm2015/modules/ag-grid/cell-renderers/cell-renderer-row-selector/cell-renderer-row-selector.component.js +10 -7
- package/esm2015/modules/ag-grid/cell-renderers/cell-renderer-row-selector/cell-renderer-row-selector.module.js +8 -22
- package/esm2015/modules/ag-grid/cell-renderers/cell-renderer-validator-tooltip/cell-renderer-validator-tooltip.component.js +9 -6
- package/esm2015/modules/ag-grid/cell-renderers/cell-renderer-validator-tooltip/cell-renderer-validator-tooltip.module.js +8 -16
- package/esm2015/modules/ag-grid/cell-validator/ag-grid-cell-validator-tooltip.component.js +17 -11
- package/esm2015/modules/ag-grid/cell-validator/ag-grid-cell-validator.module.js +8 -22
- package/esm2015/modules/ag-grid/types/ag-grid-row-delete-cancel-args.js +1 -1
- package/esm2015/modules/ag-grid/types/{ag-gird-row-delete-config.js → ag-grid-row-delete-config.js} +1 -1
- package/esm2015/modules/ag-grid/types/ag-grid-row-delete-confirm-args.js +1 -1
- package/esm2015/modules/ag-grid/types/ag-grid-row-delete-contents.js +1 -1
- package/esm2015/modules/ag-grid/types/autocomplete-properties.js +1 -1
- package/esm2015/modules/ag-grid/types/cell-class.js +4 -1
- package/esm2015/modules/ag-grid/types/cell-editor-autocomplete-params.js +1 -1
- package/esm2015/modules/ag-grid/types/cell-editor-currency-params.js +1 -1
- package/esm2015/modules/ag-grid/types/cell-editor-datepicker-params.js +1 -1
- package/esm2015/modules/ag-grid/types/cell-renderer-currency-params.js +1 -1
- package/esm2015/modules/ag-grid/types/cell-type.js +71 -1
- package/esm2015/modules/ag-grid/types/datepicker-properties.js +1 -1
- package/esm2015/modules/ag-grid/types/header-class.js +4 -1
- package/esm2015/modules/ag-grid/types/lookup-properties.js +2 -2
- package/esm2015/modules/ag-grid/types/sky-grid-options.js +1 -1
- package/esm2015/modules/ag-grid/types/validator-options.js +1 -1
- package/esm2015/modules/shared/ag-grid-resources.module.js +39 -12
- package/fesm2015/skyux-ag-grid.js +470 -364
- package/fesm2015/skyux-ag-grid.js.map +1 -1
- package/modules/ag-grid/ag-grid-data-manager-adapter.directive.d.ts +5 -0
- package/modules/ag-grid/ag-grid-row-delete.directive.d.ts +4 -1
- package/modules/ag-grid/ag-grid-wrapper.component.d.ts +3 -0
- package/modules/ag-grid/ag-grid.service.d.ts +12 -3
- package/modules/ag-grid/cell-editors/cell-editor-autocomplete/cell-editor-autocomplete.component.d.ts +3 -0
- package/modules/ag-grid/cell-editors/cell-editor-currency/cell-editor-currency.component.d.ts +3 -0
- package/modules/ag-grid/cell-editors/cell-editor-datepicker/cell-editor-datepicker.component.d.ts +3 -0
- package/modules/ag-grid/cell-editors/cell-editor-number/cell-editor-number.component.d.ts +3 -0
- package/modules/ag-grid/cell-editors/cell-editor-text/cell-editor-text.component.d.ts +3 -0
- package/modules/ag-grid/cell-renderers/cell-renderer-currency/cell-renderer-currency-validator.component.d.ts +3 -0
- package/modules/ag-grid/cell-renderers/cell-renderer-currency/cell-renderer-currency.component.d.ts +3 -0
- package/modules/ag-grid/cell-renderers/cell-renderer-row-selector/cell-renderer-row-selector.component.d.ts +3 -0
- package/modules/ag-grid/cell-renderers/cell-renderer-validator-tooltip/cell-renderer-validator-tooltip.component.d.ts +3 -0
- package/modules/ag-grid/cell-validator/ag-grid-cell-validator-tooltip.component.d.ts +3 -0
- package/modules/ag-grid/types/ag-grid-row-delete-cancel-args.d.ts +1 -0
- package/modules/ag-grid/types/{ag-gird-row-delete-config.d.ts → ag-grid-row-delete-config.d.ts} +0 -0
- package/modules/ag-grid/types/ag-grid-row-delete-confirm-args.d.ts +1 -0
- package/modules/ag-grid/types/autocomplete-properties.d.ts +3 -0
- package/modules/ag-grid/types/cell-class.d.ts +3 -0
- package/modules/ag-grid/types/cell-type.d.ts +70 -0
- package/modules/ag-grid/types/datepicker-properties.d.ts +3 -0
- package/modules/ag-grid/types/header-class.d.ts +3 -0
- package/modules/ag-grid/types/sky-grid-options.d.ts +2 -2
- package/package.json +12 -12
- package/bundles/skyux-ag-grid.umd.js.map +0 -1
|
@@ -26,7 +26,7 @@ import { SkyPopoverMessageType, SkyPopoverModule } from '@skyux/popovers';
|
|
|
26
26
|
import { Subject } from 'rxjs';
|
|
27
27
|
import * as i1$5 from '@skyux/indicators';
|
|
28
28
|
import { SkyStatusIndicatorModule } from '@skyux/indicators';
|
|
29
|
-
import { takeUntil } from 'rxjs/operators';
|
|
29
|
+
import { takeUntil, filter } from 'rxjs/operators';
|
|
30
30
|
import * as i2$2 from '@skyux/autonumeric';
|
|
31
31
|
import { SkyAutonumericModule } from '@skyux/autonumeric';
|
|
32
32
|
|
|
@@ -56,8 +56,11 @@ class SkyAgGridAdapterService {
|
|
|
56
56
|
if (parentEl) {
|
|
57
57
|
const focusableChildren = this.skyAdapterService.getFocusableChildren(parentEl);
|
|
58
58
|
const currentElementIndex = focusableChildren.indexOf(currentEl);
|
|
59
|
-
const nextIndex = moveFocusLeft
|
|
60
|
-
|
|
59
|
+
const nextIndex = moveFocusLeft
|
|
60
|
+
? currentElementIndex - 1
|
|
61
|
+
: currentElementIndex + 1;
|
|
62
|
+
if ((!moveFocusLeft && focusableChildren.length >= nextIndex) ||
|
|
63
|
+
(moveFocusLeft && nextIndex >= 0)) {
|
|
61
64
|
return focusableChildren[nextIndex];
|
|
62
65
|
}
|
|
63
66
|
}
|
|
@@ -69,16 +72,19 @@ class SkyAgGridAdapterService {
|
|
|
69
72
|
}
|
|
70
73
|
}
|
|
71
74
|
}
|
|
72
|
-
SkyAgGridAdapterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
73
|
-
SkyAgGridAdapterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
74
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
75
|
+
SkyAgGridAdapterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SkyAgGridAdapterService, deps: [{ token: i1.SkyCoreAdapterService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
76
|
+
SkyAgGridAdapterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SkyAgGridAdapterService, providedIn: 'root' });
|
|
77
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SkyAgGridAdapterService, decorators: [{
|
|
75
78
|
type: Injectable,
|
|
76
79
|
args: [{
|
|
77
|
-
providedIn: 'root'
|
|
80
|
+
providedIn: 'root',
|
|
78
81
|
}]
|
|
79
82
|
}], ctorParameters: function () { return [{ type: i1.SkyCoreAdapterService }]; } });
|
|
80
83
|
|
|
81
84
|
let idIndex = 0;
|
|
85
|
+
/**
|
|
86
|
+
* @internal
|
|
87
|
+
*/
|
|
82
88
|
class SkyAgGridWrapperComponent {
|
|
83
89
|
constructor(adapterService, changeDetector, elementRef) {
|
|
84
90
|
this.adapterService = adapterService;
|
|
@@ -98,13 +104,16 @@ class SkyAgGridWrapperComponent {
|
|
|
98
104
|
this.changeDetector.markForCheck();
|
|
99
105
|
}
|
|
100
106
|
ngAfterContentInit() {
|
|
101
|
-
if (this.agGrid.gridOptions &&
|
|
107
|
+
if (this.agGrid.gridOptions &&
|
|
108
|
+
this.agGrid.gridOptions.domLayout === 'autoHeight') {
|
|
102
109
|
this.viewkeeperClasses.push('.ag-header');
|
|
103
110
|
}
|
|
104
111
|
}
|
|
105
112
|
onGridKeydown(event) {
|
|
106
113
|
if (this.agGrid && !this.isInEditMode && event.key === 'Tab') {
|
|
107
|
-
const idToFocus = event.shiftKey
|
|
114
|
+
const idToFocus = event.shiftKey
|
|
115
|
+
? this.beforeAnchorId
|
|
116
|
+
: this.afterAnchorId;
|
|
108
117
|
this.adapterService.setFocusedElementById(this.elementRef.nativeElement, idToFocus);
|
|
109
118
|
}
|
|
110
119
|
}
|
|
@@ -112,7 +121,8 @@ class SkyAgGridWrapperComponent {
|
|
|
112
121
|
const gridId = this.gridId;
|
|
113
122
|
const relatedTarget = event.relatedTarget;
|
|
114
123
|
const previousFocusedId = relatedTarget && relatedTarget.id;
|
|
115
|
-
const previousWasCell = relatedTarget &&
|
|
124
|
+
const previousWasCell = relatedTarget &&
|
|
125
|
+
!!this.adapterService.getElementOrParentWithClass(relatedTarget, 'ag-cell');
|
|
116
126
|
if (previousFocusedId !== gridId && !previousWasCell) {
|
|
117
127
|
const columns = this.agGrid.columnApi.getAllDisplayedColumns();
|
|
118
128
|
const firstColumn = columns && columns[0];
|
|
@@ -145,22 +155,25 @@ class SkyAgGridWrapperComponent {
|
|
|
145
155
|
}
|
|
146
156
|
}
|
|
147
157
|
}
|
|
148
|
-
SkyAgGridWrapperComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
149
|
-
SkyAgGridWrapperComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
150
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
158
|
+
SkyAgGridWrapperComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SkyAgGridWrapperComponent, deps: [{ token: SkyAgGridAdapterService }, { token: i0.ChangeDetectorRef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
159
|
+
SkyAgGridWrapperComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: SkyAgGridWrapperComponent, selector: "sky-ag-grid-wrapper", queries: [{ propertyName: "agGrid", first: true, predicate: AgGridAngular, descendants: true, static: true }], ngImport: i0, template: "<span\n class=\"nav-anchor\"\n tabindex=\"0\"\n [id]=\"beforeAnchorId\"\n (focusin)=\"onAnchorFocus($event)\"\n>\n</span>\n<div\n class=\"sky-ag-grid\"\n tabindex=\"0\"\n [id]=\"gridId\"\n [skyViewkeeper]=\"viewkeeperClasses\"\n (keydown)=\"onGridKeydown($event)\"\n>\n <ng-content></ng-content>\n</div>\n<span\n tabindex=\"0\"\n class=\"nav-anchor\"\n [id]=\"afterAnchorId\"\n (focusin)=\"onAnchorFocus($event)\"\n>\n</span>\n", directives: [{ type: i1.λ3, selector: "[skyViewkeeper]", inputs: ["skyViewkeeper"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
160
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SkyAgGridWrapperComponent, decorators: [{
|
|
151
161
|
type: Component,
|
|
152
162
|
args: [{
|
|
153
163
|
selector: 'sky-ag-grid-wrapper',
|
|
154
164
|
templateUrl: './ag-grid-wrapper.component.html',
|
|
155
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
165
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
156
166
|
}]
|
|
157
167
|
}], ctorParameters: function () { return [{ type: SkyAgGridAdapterService }, { type: i0.ChangeDetectorRef }, { type: i0.ElementRef }]; }, propDecorators: { agGrid: [{
|
|
158
168
|
type: ContentChild,
|
|
159
169
|
args: [AgGridAngular, {
|
|
160
|
-
static: true
|
|
170
|
+
static: true,
|
|
161
171
|
}]
|
|
162
172
|
}] } });
|
|
163
173
|
|
|
174
|
+
/**
|
|
175
|
+
* @internal
|
|
176
|
+
*/
|
|
164
177
|
class SkyAgGridCellEditorAutocompleteComponent {
|
|
165
178
|
constructor() {
|
|
166
179
|
this.skyComponentProperties = {};
|
|
@@ -179,15 +192,15 @@ class SkyAgGridCellEditorAutocompleteComponent {
|
|
|
179
192
|
return this.currentSelection;
|
|
180
193
|
}
|
|
181
194
|
}
|
|
182
|
-
SkyAgGridCellEditorAutocompleteComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
183
|
-
SkyAgGridCellEditorAutocompleteComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
184
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
195
|
+
SkyAgGridCellEditorAutocompleteComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SkyAgGridCellEditorAutocompleteComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
196
|
+
SkyAgGridCellEditorAutocompleteComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: SkyAgGridCellEditorAutocompleteComponent, selector: "sky-ag-grid-cell-editor-autocomplete", viewQueries: [{ propertyName: "input", first: true, predicate: ["skyCellEditorAutocomplete"], descendants: true, read: ElementRef }], ngImport: i0, template: "<div class=\"sky-ag-grid-cell-editor-autocomplete\">\n <sky-autocomplete\n [data]=\"skyComponentProperties.data\"\n [debounceTime]=\"skyComponentProperties.debounceTime\"\n [descriptorProperty]=\"skyComponentProperties.descriptorProperty\"\n [propertiesToSearch]=\"skyComponentProperties.propertiesToSearch\"\n [search]=\"skyComponentProperties.search\"\n [searchFilters]=\"skyComponentProperties.searchFilters\"\n [searchResultsLimit]=\"skyComponentProperties.searchResultsLimit\"\n [searchResultTemplate]=\"skyComponentProperties.searchResultTemplate\"\n [searchTextMinimumCharacters]=\"\n skyComponentProperties.searchTextMinimumCharacters\n \"\n (selectionChange)=\"\n skyComponentProperties.selectionChange &&\n skyComponentProperties.selectionChange($event)\n \"\n >\n <input\n skyAutocomplete\n #skyCellEditorAutocomplete\n type=\"text\"\n [(ngModel)]=\"currentSelection\"\n [attr.aria-label]=\"\n 'sky_ag_grid_cell_editor_autocomplete_aria_label'\n | skyLibResources: columnHeader:rowNumber\n \"\n />\n </sky-autocomplete>\n</div>\n", styles: ["sky-autocomplete input{border:none;box-shadow:none}\n"], components: [{ type: i1$1.λ2, selector: "sky-autocomplete", inputs: ["ariaLabelledBy", "data", "debounceTime", "descriptorProperty", "enableShowMore", "messageStream", "wrapperClass", "propertiesToSearch", "search", "searchResultTemplate", "searchTextMinimumCharacters", "searchFilters", "searchResultsLimit", "showAddButton", "noResultsFoundText"], outputs: ["addClick", "showMoreClick", "selectionChange"] }], directives: [{ type: i1$1.λ1, selector: "input[skyAutocomplete], textarea[skyAutocomplete]", inputs: ["autocompleteAttribute", "disabled"] }, { type: i1$2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], pipes: { "skyLibResources": i3.SkyLibResourcesPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
197
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SkyAgGridCellEditorAutocompleteComponent, decorators: [{
|
|
185
198
|
type: Component,
|
|
186
199
|
args: [{
|
|
187
200
|
selector: 'sky-ag-grid-cell-editor-autocomplete',
|
|
188
201
|
templateUrl: './cell-editor-autocomplete.component.html',
|
|
189
202
|
styleUrls: ['./cell-editor-autocomplete.component.scss'],
|
|
190
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
203
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
191
204
|
}]
|
|
192
205
|
}], propDecorators: { input: [{
|
|
193
206
|
type: ViewChild,
|
|
@@ -201,7 +214,30 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImpo
|
|
|
201
214
|
* To update this file, simply rerun the command.
|
|
202
215
|
*/
|
|
203
216
|
const RESOURCES = {
|
|
204
|
-
'EN-US': {
|
|
217
|
+
'EN-US': {
|
|
218
|
+
sky_ag_grid_row_selector_aria_label: {
|
|
219
|
+
message: 'Row selector for row {0}',
|
|
220
|
+
},
|
|
221
|
+
sky_ag_grid_cell_editor_number_aria_label: {
|
|
222
|
+
message: 'Editable number {0} for row {1}',
|
|
223
|
+
},
|
|
224
|
+
sky_ag_grid_cell_editor_text_aria_label: {
|
|
225
|
+
message: 'Editable text {0} for row {1}',
|
|
226
|
+
},
|
|
227
|
+
sky_ag_grid_cell_editor_autocomplete_aria_label: {
|
|
228
|
+
message: 'Editable autocomplete {0} for row {1}',
|
|
229
|
+
},
|
|
230
|
+
sky_ag_grid_cell_renderer_currency_aria_label: {
|
|
231
|
+
message: 'Editable currency {0} for row {1}',
|
|
232
|
+
},
|
|
233
|
+
sky_ag_grid_cell_renderer_number_validator_message: {
|
|
234
|
+
message: 'Please enter a valid number',
|
|
235
|
+
},
|
|
236
|
+
sky_ag_grid_cell_renderer_currency_validator_message: {
|
|
237
|
+
message: 'Please enter a valid currency',
|
|
238
|
+
},
|
|
239
|
+
skyux_lookup_tokens_summary: { message: '{0} items selected' },
|
|
240
|
+
},
|
|
205
241
|
};
|
|
206
242
|
class AgGridResourcesProvider {
|
|
207
243
|
getString(localeInfo, name) {
|
|
@@ -213,53 +249,46 @@ class AgGridResourcesProvider {
|
|
|
213
249
|
*/
|
|
214
250
|
class AgGridResourcesModule {
|
|
215
251
|
}
|
|
216
|
-
AgGridResourcesModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
217
|
-
AgGridResourcesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
|
218
|
-
AgGridResourcesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.
|
|
252
|
+
AgGridResourcesModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: AgGridResourcesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
253
|
+
AgGridResourcesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: AgGridResourcesModule, exports: [SkyI18nModule] });
|
|
254
|
+
AgGridResourcesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: AgGridResourcesModule, providers: [
|
|
255
|
+
{
|
|
219
256
|
provide: SKY_LIB_RESOURCES_PROVIDERS,
|
|
220
257
|
useClass: AgGridResourcesProvider,
|
|
221
|
-
multi: true
|
|
222
|
-
}
|
|
223
|
-
|
|
258
|
+
multi: true,
|
|
259
|
+
},
|
|
260
|
+
], imports: [SkyI18nModule] });
|
|
261
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: AgGridResourcesModule, decorators: [{
|
|
224
262
|
type: NgModule,
|
|
225
263
|
args: [{
|
|
226
264
|
exports: [SkyI18nModule],
|
|
227
|
-
providers: [
|
|
265
|
+
providers: [
|
|
266
|
+
{
|
|
228
267
|
provide: SKY_LIB_RESOURCES_PROVIDERS,
|
|
229
268
|
useClass: AgGridResourcesProvider,
|
|
230
|
-
multi: true
|
|
231
|
-
}
|
|
269
|
+
multi: true,
|
|
270
|
+
},
|
|
271
|
+
],
|
|
232
272
|
}]
|
|
233
273
|
}] });
|
|
234
274
|
|
|
235
275
|
class SkyAgGridCellEditorAutocompleteModule {
|
|
236
276
|
}
|
|
237
|
-
SkyAgGridCellEditorAutocompleteModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
238
|
-
SkyAgGridCellEditorAutocompleteModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
SkyAgGridCellEditorAutocompleteModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyAgGridCellEditorAutocompleteModule, imports: [[
|
|
242
|
-
FormsModule,
|
|
243
|
-
AgGridResourcesModule,
|
|
244
|
-
SkyAutocompleteModule
|
|
245
|
-
]] });
|
|
246
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyAgGridCellEditorAutocompleteModule, decorators: [{
|
|
277
|
+
SkyAgGridCellEditorAutocompleteModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SkyAgGridCellEditorAutocompleteModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
278
|
+
SkyAgGridCellEditorAutocompleteModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SkyAgGridCellEditorAutocompleteModule, declarations: [SkyAgGridCellEditorAutocompleteComponent], imports: [FormsModule, AgGridResourcesModule, SkyAutocompleteModule], exports: [SkyAgGridCellEditorAutocompleteComponent] });
|
|
279
|
+
SkyAgGridCellEditorAutocompleteModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SkyAgGridCellEditorAutocompleteModule, imports: [[FormsModule, AgGridResourcesModule, SkyAutocompleteModule]] });
|
|
280
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SkyAgGridCellEditorAutocompleteModule, decorators: [{
|
|
247
281
|
type: NgModule,
|
|
248
282
|
args: [{
|
|
249
|
-
imports: [
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
SkyAutocompleteModule
|
|
253
|
-
],
|
|
254
|
-
declarations: [
|
|
255
|
-
SkyAgGridCellEditorAutocompleteComponent
|
|
256
|
-
],
|
|
257
|
-
exports: [
|
|
258
|
-
SkyAgGridCellEditorAutocompleteComponent
|
|
259
|
-
]
|
|
283
|
+
imports: [FormsModule, AgGridResourcesModule, SkyAutocompleteModule],
|
|
284
|
+
declarations: [SkyAgGridCellEditorAutocompleteComponent],
|
|
285
|
+
exports: [SkyAgGridCellEditorAutocompleteComponent],
|
|
260
286
|
}]
|
|
261
287
|
}] });
|
|
262
288
|
|
|
289
|
+
/**
|
|
290
|
+
* @internal
|
|
291
|
+
*/
|
|
263
292
|
class SkyAgGridCellEditorDatepickerComponent extends PopupComponent {
|
|
264
293
|
constructor(themeSvc) {
|
|
265
294
|
super();
|
|
@@ -277,15 +306,18 @@ class SkyAgGridCellEditorDatepickerComponent extends PopupComponent {
|
|
|
277
306
|
this.skyComponentProperties = this.params.skyComponentProperties || {};
|
|
278
307
|
this.columnWidth = this.params.column.getActualWidth();
|
|
279
308
|
this.columnWidthWithoutBorders = this.columnWidth - 2;
|
|
280
|
-
this.rowHeightWithoutBorders =
|
|
309
|
+
this.rowHeightWithoutBorders =
|
|
310
|
+
this.params.node && this.params.node.rowHeight - 3;
|
|
281
311
|
(_a = this.themeSvc) === null || _a === void 0 ? void 0 : _a.settingsChange.subscribe((themeSettings) => {
|
|
282
312
|
if (themeSettings.currentSettings.theme.name === 'modern') {
|
|
283
313
|
this.columnWidthWithoutBorders = this.columnWidth;
|
|
284
|
-
this.rowHeightWithoutBorders =
|
|
314
|
+
this.rowHeightWithoutBorders =
|
|
315
|
+
this.params.node && this.params.node.rowHeight;
|
|
285
316
|
}
|
|
286
317
|
else {
|
|
287
318
|
this.columnWidthWithoutBorders = this.columnWidth - 2;
|
|
288
|
-
this.rowHeightWithoutBorders =
|
|
319
|
+
this.rowHeightWithoutBorders =
|
|
320
|
+
this.params.node && this.params.node.rowHeight - 3;
|
|
289
321
|
}
|
|
290
322
|
});
|
|
291
323
|
}
|
|
@@ -306,16 +338,16 @@ class SkyAgGridCellEditorDatepickerComponent extends PopupComponent {
|
|
|
306
338
|
this.datepickerInput.nativeElement.focus();
|
|
307
339
|
}
|
|
308
340
|
}
|
|
309
|
-
SkyAgGridCellEditorDatepickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
310
|
-
SkyAgGridCellEditorDatepickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
311
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
341
|
+
SkyAgGridCellEditorDatepickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SkyAgGridCellEditorDatepickerComponent, deps: [{ token: i1$3.SkyThemeService, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
342
|
+
SkyAgGridCellEditorDatepickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: SkyAgGridCellEditorDatepickerComponent, selector: "sky-ag-grid-cell-editor-datepicker", viewQueries: [{ propertyName: "datepickerInput", first: true, predicate: ["skyCellEditorDatepickerInput"], descendants: true, read: ElementRef }], usesInheritance: true, ngImport: i0, template: "<div\n class=\"sky-ag-grid-cell-editor-datepicker\"\n [style.width.px]=\"columnWidthWithoutBorders\"\n>\n <sky-datepicker\n data-sky-id=\"cell-datepicker\"\n pickerClass=\"ag-custom-component-popup\"\n >\n <input\n skyDatepickerInput\n [disabled]=\"skyComponentProperties.disabled\"\n [minDate]=\"skyComponentProperties.minDate\"\n [maxDate]=\"skyComponentProperties.maxDate\"\n [dateFormat]=\"skyComponentProperties.dateFormat\"\n [startingDay]=\"skyComponentProperties.startingDay\"\n [skyDatepickerNoValidate]=\"skyComponentProperties.skyDatepickerNoValidate\"\n [style.height.px]=\"rowHeightWithoutBorders\"\n [(ngModel)]=\"currentDate\"\n #skyCellEditorDatepickerInput\n />\n </sky-datepicker>\n</div>\n", styles: [".sky-ag-grid-cell-editor-datepicker{position:relative;top:1px;left:1px}.sky-ag-grid-cell-editor-datepicker sky-datepicker input.sky-form-control{box-shadow:none;border-width:1px;border-style:solid;border-color:transparent #cdcfd2 transparent transparent}.sky-ag-grid-cell-editor-datepicker sky-datepicker .sky-input-group-datepicker-btn{border-radius:0}:host-context(.sky-theme-modern) .sky-ag-grid-cell-editor-datepicker{position:static;top:initial;left:initial}:host-context(.sky-theme-modern) .sky-ag-grid-cell-editor-datepicker sky-datepicker input.sky-form-control{border-radius:0;border:1px solid #1870B8}:host-context(.sky-theme-modern) .sky-ag-grid-cell-editor-datepicker sky-datepicker input.sky-form-control:focus{border-width:2px!important}.sky-theme-modern .sky-ag-grid-cell-editor-datepicker{position:static;top:initial;left:initial}.sky-theme-modern .sky-ag-grid-cell-editor-datepicker sky-datepicker input.sky-form-control{border-radius:0;border:1px solid #1870B8}.sky-theme-modern .sky-ag-grid-cell-editor-datepicker sky-datepicker input.sky-form-control:focus{border-width:2px!important}\n"], components: [{ type: i2.λ2, selector: "sky-datepicker", inputs: ["pickerClass"], outputs: ["calendarDateRangeChange"] }], directives: [{ type: i1$2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i2.λ3, selector: "[skyDatepickerInput]", inputs: ["dateFormat", "disabled", "maxDate", "minDate", "skyDatepickerInput", "skyDatepickerNoValidate", "startingDay", "strict"] }, { type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
343
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SkyAgGridCellEditorDatepickerComponent, decorators: [{
|
|
312
344
|
type: Component,
|
|
313
345
|
args: [{
|
|
314
346
|
selector: 'sky-ag-grid-cell-editor-datepicker',
|
|
315
347
|
templateUrl: './cell-editor-datepicker.component.html',
|
|
316
348
|
styleUrls: ['./cell-editor-datepicker.component.scss'],
|
|
317
349
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
318
|
-
encapsulation: ViewEncapsulation.None
|
|
350
|
+
encapsulation: ViewEncapsulation.None,
|
|
319
351
|
}]
|
|
320
352
|
}], ctorParameters: function () { return [{ type: i1$3.SkyThemeService, decorators: [{
|
|
321
353
|
type: Optional
|
|
@@ -326,26 +358,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImpo
|
|
|
326
358
|
|
|
327
359
|
class SkyAgGridCellEditorDatepickerModule {
|
|
328
360
|
}
|
|
329
|
-
SkyAgGridCellEditorDatepickerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
330
|
-
SkyAgGridCellEditorDatepickerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
SkyDatepickerModule,
|
|
334
|
-
FormsModule
|
|
335
|
-
]] });
|
|
336
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyAgGridCellEditorDatepickerModule, decorators: [{
|
|
361
|
+
SkyAgGridCellEditorDatepickerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SkyAgGridCellEditorDatepickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
362
|
+
SkyAgGridCellEditorDatepickerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SkyAgGridCellEditorDatepickerModule, declarations: [SkyAgGridCellEditorDatepickerComponent], imports: [SkyDatepickerModule, FormsModule], exports: [SkyAgGridCellEditorDatepickerComponent] });
|
|
363
|
+
SkyAgGridCellEditorDatepickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SkyAgGridCellEditorDatepickerModule, imports: [[SkyDatepickerModule, FormsModule]] });
|
|
364
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SkyAgGridCellEditorDatepickerModule, decorators: [{
|
|
337
365
|
type: NgModule,
|
|
338
366
|
args: [{
|
|
339
|
-
imports: [
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
],
|
|
343
|
-
declarations: [
|
|
344
|
-
SkyAgGridCellEditorDatepickerComponent
|
|
345
|
-
],
|
|
346
|
-
exports: [
|
|
347
|
-
SkyAgGridCellEditorDatepickerComponent
|
|
348
|
-
]
|
|
367
|
+
imports: [SkyDatepickerModule, FormsModule],
|
|
368
|
+
declarations: [SkyAgGridCellEditorDatepickerComponent],
|
|
369
|
+
exports: [SkyAgGridCellEditorDatepickerComponent],
|
|
349
370
|
}]
|
|
350
371
|
}] });
|
|
351
372
|
|
|
@@ -369,7 +390,7 @@ function applySkyLookupPropertiesDefaults(skyLookupProperties) {
|
|
|
369
390
|
selectMode: skyLookupProperties.selectMode || undefined,
|
|
370
391
|
showAddButton: skyLookupProperties.showAddButton || false,
|
|
371
392
|
showMoreConfig: skyLookupProperties.showMoreConfig || {},
|
|
372
|
-
wrapperClass: 'ag-custom-component-popup'
|
|
393
|
+
wrapperClass: 'ag-custom-component-popup',
|
|
373
394
|
};
|
|
374
395
|
}
|
|
375
396
|
|
|
@@ -381,8 +402,8 @@ class SkyAgGridCellEditorLookupComponent {
|
|
|
381
402
|
this.lookupForm = new FormGroup({
|
|
382
403
|
currentSelection: new FormControl({
|
|
383
404
|
value: [],
|
|
384
|
-
disabled: false
|
|
385
|
-
})
|
|
405
|
+
disabled: false,
|
|
406
|
+
}),
|
|
386
407
|
});
|
|
387
408
|
}
|
|
388
409
|
agInit(params) {
|
|
@@ -423,34 +444,34 @@ class SkyAgGridCellEditorLookupComponent {
|
|
|
423
444
|
return applySkyLookupPropertiesDefaults(skyLookupProperties);
|
|
424
445
|
}
|
|
425
446
|
}
|
|
426
|
-
SkyAgGridCellEditorLookupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
427
|
-
SkyAgGridCellEditorLookupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
428
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
447
|
+
SkyAgGridCellEditorLookupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SkyAgGridCellEditorLookupComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
448
|
+
SkyAgGridCellEditorLookupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: SkyAgGridCellEditorLookupComponent, selector: "sky-ag-grid-cell-editor-lookup", ngImport: i0, template: "<sky-input-box\n *ngIf=\"isAlive\"\n [disabled]=\"skyComponentProperties?.disabled\"\n [formGroup]=\"lookupForm\"\n>\n <sky-lookup\n [ariaLabel]=\"skyComponentProperties?.ariaLabel\"\n [autocompleteAttribute]=\"skyComponentProperties?.autocompleteAttribute\"\n [data]=\"skyComponentProperties?.data\"\n [debounceTime]=\"skyComponentProperties?.debounceTime\"\n [descriptorProperty]=\"skyComponentProperties?.descriptorProperty\"\n [enableShowMore]=\"skyComponentProperties?.enableShowMore\"\n formControlName=\"currentSelection\"\n [idProperty]=\"skyComponentProperties?.idProperty\"\n [placeholderText]=\"skyComponentProperties?.placeholderText\"\n [propertiesToSearch]=\"skyComponentProperties?.propertiesToSearch\"\n [search]=\"skyComponentProperties?.search\"\n [searchFilters]=\"skyComponentProperties?.searchFilters\"\n [searchResultsLimit]=\"skyComponentProperties?.searchResultsLimit\"\n [searchResultTemplate]=\"skyComponentProperties?.searchResultTemplate\"\n [searchTextMinimumCharacters]=\"\n skyComponentProperties?.searchTextMinimumCharacters\n \"\n [selectMode]=\"skyComponentProperties?.selectMode\"\n [showAddButton]=\"skyComponentProperties?.showAddButton\"\n [showMoreConfig]=\"skyComponentProperties?.showMoreConfig\"\n [wrapperClass]=\"skyComponentProperties?.wrapperClass\"\n >\n </sky-lookup>\n</sky-input-box>\n", styles: [":host{display:block}\n"], components: [{ type: i1$4.λ10, selector: "sky-input-box", inputs: ["hasErrors", "disabled"] }, { type: i1$1.λ4, selector: "sky-lookup", inputs: ["ariaLabel", "ariaLabelledBy", "autocompleteAttribute", "data", "disabled", "enableShowMore", "placeholderText", "idProperty", "showAddButton", "showMoreConfig", "selectMode", "wrapperClass"], outputs: ["addClick"] }], directives: [{ type: i3$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i1$2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1$2.FormControlName, selector: "[formControlName]", inputs: ["disabled", "formControlName", "ngModel"], outputs: ["ngModelChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
449
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SkyAgGridCellEditorLookupComponent, decorators: [{
|
|
429
450
|
type: Component,
|
|
430
451
|
args: [{
|
|
431
452
|
selector: 'sky-ag-grid-cell-editor-lookup',
|
|
432
453
|
templateUrl: './cell-editor-lookup.component.html',
|
|
433
454
|
styleUrls: ['./cell-editor-lookup.component.scss'],
|
|
434
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
455
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
435
456
|
}]
|
|
436
457
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }]; } });
|
|
437
458
|
|
|
438
459
|
class SkyAgGridCellEditorLookupModule {
|
|
439
460
|
}
|
|
440
|
-
SkyAgGridCellEditorLookupModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
441
|
-
SkyAgGridCellEditorLookupModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
|
461
|
+
SkyAgGridCellEditorLookupModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SkyAgGridCellEditorLookupModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
462
|
+
SkyAgGridCellEditorLookupModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SkyAgGridCellEditorLookupModule, declarations: [SkyAgGridCellEditorLookupComponent], imports: [CommonModule,
|
|
442
463
|
ReactiveFormsModule,
|
|
443
464
|
SkyI18nModule,
|
|
444
465
|
SkyInputBoxModule,
|
|
445
466
|
SkyLookupModule], exports: [SkyAgGridCellEditorLookupComponent] });
|
|
446
|
-
SkyAgGridCellEditorLookupModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.
|
|
467
|
+
SkyAgGridCellEditorLookupModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SkyAgGridCellEditorLookupModule, imports: [[
|
|
447
468
|
CommonModule,
|
|
448
469
|
ReactiveFormsModule,
|
|
449
470
|
SkyI18nModule,
|
|
450
471
|
SkyInputBoxModule,
|
|
451
|
-
SkyLookupModule
|
|
472
|
+
SkyLookupModule,
|
|
452
473
|
]] });
|
|
453
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
474
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SkyAgGridCellEditorLookupModule, decorators: [{
|
|
454
475
|
type: NgModule,
|
|
455
476
|
args: [{
|
|
456
477
|
declarations: [SkyAgGridCellEditorLookupComponent],
|
|
@@ -460,11 +481,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImpo
|
|
|
460
481
|
ReactiveFormsModule,
|
|
461
482
|
SkyI18nModule,
|
|
462
483
|
SkyInputBoxModule,
|
|
463
|
-
SkyLookupModule
|
|
464
|
-
]
|
|
484
|
+
SkyLookupModule,
|
|
485
|
+
],
|
|
465
486
|
}]
|
|
466
487
|
}] });
|
|
467
488
|
|
|
489
|
+
/**
|
|
490
|
+
* @internal
|
|
491
|
+
*/
|
|
468
492
|
class SkyAgGridCellEditorNumberComponent {
|
|
469
493
|
/**
|
|
470
494
|
* agInit is called by agGrid once after the editor is created and provides the editor with the information it needs.
|
|
@@ -476,7 +500,8 @@ class SkyAgGridCellEditorNumberComponent {
|
|
|
476
500
|
this.columnHeader = this.params.colDef.headerName;
|
|
477
501
|
this.rowNumber = this.params.rowIndex + 1;
|
|
478
502
|
this.columnWidth = this.params.column.getActualWidth();
|
|
479
|
-
this.rowHeightWithoutBorders =
|
|
503
|
+
this.rowHeightWithoutBorders =
|
|
504
|
+
this.params.node && this.params.node.rowHeight - 4;
|
|
480
505
|
}
|
|
481
506
|
/**
|
|
482
507
|
* afterGuiAttached is called by agGrid after the editor is rendered in the DOM. Once it is attached the editor is ready to be focused on.
|
|
@@ -491,15 +516,15 @@ class SkyAgGridCellEditorNumberComponent {
|
|
|
491
516
|
return this.value;
|
|
492
517
|
}
|
|
493
518
|
}
|
|
494
|
-
SkyAgGridCellEditorNumberComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
495
|
-
SkyAgGridCellEditorNumberComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
496
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
519
|
+
SkyAgGridCellEditorNumberComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SkyAgGridCellEditorNumberComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
520
|
+
SkyAgGridCellEditorNumberComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: SkyAgGridCellEditorNumberComponent, selector: "sky-ag-grid-cell-editor-number", viewQueries: [{ propertyName: "input", first: true, predicate: ["skyCellEditorNumber"], descendants: true, read: ElementRef }], ngImport: i0, template: "<input\n type=\"number\"\n [attr.aria-label]=\"\n 'skyux_ag_grid_cell_editor_number_aria_label'\n | skyLibResources: columnHeader:rowNumber\n \"\n [style.width.px]=\"columnWidth\"\n [style.height.px]=\"rowHeightWithoutBorders\"\n [(ngModel)]=\"value\"\n #skyCellEditorNumber\n/>\n", styles: ["input{border:none;text-align:right}\n"], directives: [{ type: i1$2.NumberValueAccessor, selector: "input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]" }, { type: i1$2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], pipes: { "skyLibResources": i3.SkyLibResourcesPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
521
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SkyAgGridCellEditorNumberComponent, decorators: [{
|
|
497
522
|
type: Component,
|
|
498
523
|
args: [{
|
|
499
524
|
selector: 'sky-ag-grid-cell-editor-number',
|
|
500
525
|
templateUrl: './cell-editor-number.component.html',
|
|
501
526
|
styleUrls: ['./cell-editor-number.component.scss'],
|
|
502
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
527
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
503
528
|
}]
|
|
504
529
|
}], propDecorators: { input: [{
|
|
505
530
|
type: ViewChild,
|
|
@@ -508,29 +533,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImpo
|
|
|
508
533
|
|
|
509
534
|
class SkyAgGridCellEditorNumberModule {
|
|
510
535
|
}
|
|
511
|
-
SkyAgGridCellEditorNumberModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
512
|
-
SkyAgGridCellEditorNumberModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
AgGridResourcesModule,
|
|
516
|
-
FormsModule
|
|
517
|
-
]] });
|
|
518
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyAgGridCellEditorNumberModule, decorators: [{
|
|
536
|
+
SkyAgGridCellEditorNumberModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SkyAgGridCellEditorNumberModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
537
|
+
SkyAgGridCellEditorNumberModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SkyAgGridCellEditorNumberModule, declarations: [SkyAgGridCellEditorNumberComponent], imports: [AgGridResourcesModule, FormsModule], exports: [SkyAgGridCellEditorNumberComponent] });
|
|
538
|
+
SkyAgGridCellEditorNumberModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SkyAgGridCellEditorNumberModule, imports: [[AgGridResourcesModule, FormsModule]] });
|
|
539
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SkyAgGridCellEditorNumberModule, decorators: [{
|
|
519
540
|
type: NgModule,
|
|
520
541
|
args: [{
|
|
521
|
-
imports: [
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
],
|
|
525
|
-
declarations: [
|
|
526
|
-
SkyAgGridCellEditorNumberComponent
|
|
527
|
-
],
|
|
528
|
-
exports: [
|
|
529
|
-
SkyAgGridCellEditorNumberComponent
|
|
530
|
-
]
|
|
542
|
+
imports: [AgGridResourcesModule, FormsModule],
|
|
543
|
+
declarations: [SkyAgGridCellEditorNumberComponent],
|
|
544
|
+
exports: [SkyAgGridCellEditorNumberComponent],
|
|
531
545
|
}]
|
|
532
546
|
}] });
|
|
533
547
|
|
|
548
|
+
/**
|
|
549
|
+
* @internal
|
|
550
|
+
*/
|
|
534
551
|
class SkyAgGridCellEditorTextComponent {
|
|
535
552
|
/**
|
|
536
553
|
* agInit is called by agGrid once after the editor is created and provides the editor with the information it needs.
|
|
@@ -542,7 +559,8 @@ class SkyAgGridCellEditorTextComponent {
|
|
|
542
559
|
this.columnHeader = this.params.colDef.headerName;
|
|
543
560
|
this.rowNumber = this.params.rowIndex + 1;
|
|
544
561
|
this.columnWidth = this.params.column.getActualWidth();
|
|
545
|
-
this.rowHeightWithoutBorders =
|
|
562
|
+
this.rowHeightWithoutBorders =
|
|
563
|
+
this.params.node && this.params.node.rowHeight - 4;
|
|
546
564
|
}
|
|
547
565
|
/**
|
|
548
566
|
* afterGuiAttached is called by agGrid after the editor is rendered in the DOM. Once it is attached the editor is ready to be focused on.
|
|
@@ -557,15 +575,15 @@ class SkyAgGridCellEditorTextComponent {
|
|
|
557
575
|
return this.value;
|
|
558
576
|
}
|
|
559
577
|
}
|
|
560
|
-
SkyAgGridCellEditorTextComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
561
|
-
SkyAgGridCellEditorTextComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
562
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
578
|
+
SkyAgGridCellEditorTextComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SkyAgGridCellEditorTextComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
579
|
+
SkyAgGridCellEditorTextComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: SkyAgGridCellEditorTextComponent, selector: "sky-ag-grid-cell-editor-text", viewQueries: [{ propertyName: "input", first: true, predicate: ["skyCellEditorText"], descendants: true, read: ElementRef }], ngImport: i0, template: "<input\n type=\"text\"\n [attr.aria-label]=\"\n 'skyux_ag_grid_cell_editor_text_aria_label'\n | skyLibResources: columnHeader:rowNumber\n \"\n [style.width.px]=\"columnWidth\"\n [style.height.px]=\"rowHeightWithoutBorders\"\n [(ngModel)]=\"value\"\n #skyCellEditorText\n/>\n", styles: ["input{border:none;padding-left:11px}\n"], directives: [{ type: i1$2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], pipes: { "skyLibResources": i3.SkyLibResourcesPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
580
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SkyAgGridCellEditorTextComponent, decorators: [{
|
|
563
581
|
type: Component,
|
|
564
582
|
args: [{
|
|
565
583
|
selector: 'sky-ag-grid-cell-editor-text',
|
|
566
584
|
templateUrl: './cell-editor-text.component.html',
|
|
567
585
|
styleUrls: ['./cell-editor-text.component.scss'],
|
|
568
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
586
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
569
587
|
}]
|
|
570
588
|
}], propDecorators: { input: [{
|
|
571
589
|
type: ViewChild,
|
|
@@ -574,29 +592,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImpo
|
|
|
574
592
|
|
|
575
593
|
class SkyAgGridCellEditorTextModule {
|
|
576
594
|
}
|
|
577
|
-
SkyAgGridCellEditorTextModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
578
|
-
SkyAgGridCellEditorTextModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
AgGridResourcesModule,
|
|
582
|
-
FormsModule
|
|
583
|
-
]] });
|
|
584
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyAgGridCellEditorTextModule, decorators: [{
|
|
595
|
+
SkyAgGridCellEditorTextModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SkyAgGridCellEditorTextModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
596
|
+
SkyAgGridCellEditorTextModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SkyAgGridCellEditorTextModule, declarations: [SkyAgGridCellEditorTextComponent], imports: [AgGridResourcesModule, FormsModule], exports: [SkyAgGridCellEditorTextComponent] });
|
|
597
|
+
SkyAgGridCellEditorTextModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SkyAgGridCellEditorTextModule, imports: [[AgGridResourcesModule, FormsModule]] });
|
|
598
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SkyAgGridCellEditorTextModule, decorators: [{
|
|
585
599
|
type: NgModule,
|
|
586
600
|
args: [{
|
|
587
|
-
imports: [
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
],
|
|
591
|
-
declarations: [
|
|
592
|
-
SkyAgGridCellEditorTextComponent
|
|
593
|
-
],
|
|
594
|
-
exports: [
|
|
595
|
-
SkyAgGridCellEditorTextComponent
|
|
596
|
-
]
|
|
601
|
+
imports: [AgGridResourcesModule, FormsModule],
|
|
602
|
+
declarations: [SkyAgGridCellEditorTextComponent],
|
|
603
|
+
exports: [SkyAgGridCellEditorTextComponent],
|
|
597
604
|
}]
|
|
598
605
|
}] });
|
|
599
606
|
|
|
607
|
+
/**
|
|
608
|
+
* @internal
|
|
609
|
+
*/
|
|
600
610
|
class SkyAgGridCellValidatorTooltipComponent {
|
|
601
611
|
constructor(changeDetector, zone) {
|
|
602
612
|
this.changeDetector = changeDetector;
|
|
@@ -610,7 +620,8 @@ class SkyAgGridCellValidatorTooltipComponent {
|
|
|
610
620
|
/*istanbul ignore next*/
|
|
611
621
|
(_a = this.cellRendererParams.api) === null || _a === void 0 ? void 0 : _a.addEventListener(Events.EVENT_CELL_FOCUSED, (eventParams) => {
|
|
612
622
|
// We want to close any popovers that are opened when other cells are focused, but open a popover if the current cell is focused.
|
|
613
|
-
if (eventParams.column.getColId() !==
|
|
623
|
+
if (eventParams.column.getColId() !==
|
|
624
|
+
this.cellRendererParams.column.getColId() ||
|
|
614
625
|
eventParams.rowIndex !== this.cellRendererParams.rowIndex) {
|
|
615
626
|
this.hidePopover();
|
|
616
627
|
}
|
|
@@ -626,17 +637,19 @@ class SkyAgGridCellValidatorTooltipComponent {
|
|
|
626
637
|
this.hidePopover();
|
|
627
638
|
});
|
|
628
639
|
if (typeof ((_d = this.cellRendererParams.skyComponentProperties) === null || _d === void 0 ? void 0 : _d.validatorMessage) === 'function') {
|
|
629
|
-
this.validatorMessage =
|
|
640
|
+
this.validatorMessage =
|
|
641
|
+
this.cellRendererParams.skyComponentProperties.validatorMessage(this.cellRendererParams.value, this.cellRendererParams.data, this.cellRendererParams.rowIndex);
|
|
630
642
|
}
|
|
631
643
|
else {
|
|
632
|
-
this.validatorMessage =
|
|
644
|
+
this.validatorMessage =
|
|
645
|
+
(_e = this.cellRendererParams.skyComponentProperties) === null || _e === void 0 ? void 0 : _e.validatorMessage;
|
|
633
646
|
}
|
|
634
647
|
this.changeDetector.markForCheck();
|
|
635
648
|
}
|
|
636
649
|
hideIndicator() {
|
|
637
650
|
this.zone.run(() => {
|
|
638
651
|
this.indicatorShouldShow = false;
|
|
639
|
-
this.changeDetector.
|
|
652
|
+
this.changeDetector.detectChanges();
|
|
640
653
|
});
|
|
641
654
|
}
|
|
642
655
|
hidePopover() {
|
|
@@ -645,27 +658,30 @@ class SkyAgGridCellValidatorTooltipComponent {
|
|
|
645
658
|
showIndicator() {
|
|
646
659
|
this.zone.run(() => {
|
|
647
660
|
this.indicatorShouldShow = true;
|
|
648
|
-
this.changeDetector.
|
|
661
|
+
this.changeDetector.detectChanges();
|
|
649
662
|
});
|
|
650
663
|
}
|
|
651
664
|
showPopover() {
|
|
652
665
|
this.popoverMessageStream.next({ type: SkyPopoverMessageType.Open });
|
|
653
666
|
}
|
|
654
667
|
}
|
|
655
|
-
SkyAgGridCellValidatorTooltipComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
656
|
-
SkyAgGridCellValidatorTooltipComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
657
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
668
|
+
SkyAgGridCellValidatorTooltipComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SkyAgGridCellValidatorTooltipComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
669
|
+
SkyAgGridCellValidatorTooltipComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: SkyAgGridCellValidatorTooltipComponent, selector: "sky-ag-grid-cell-validator-tooltip", inputs: { params: "params" }, ngImport: i0, template: "<div\n [skyPopover]=\"validatorPopover\"\n [skyPopoverMessageStream]=\"popoverMessageStream\"\n class=\"sky-validator-cell\"\n>\n <ng-content></ng-content>\n <sky-status-indicator\n *ngIf=\"indicatorShouldShow\"\n descriptionType=\"none\"\n indicatorType=\"danger\"\n class=\"sky-pull-right\"\n ></sky-status-indicator>\n</div>\n<sky-popover\n #validatorPopover\n (popoverClosed)=\"showIndicator()\"\n (popoverOpened)=\"hideIndicator()\"\n popoverType=\"danger\"\n>\n {{ validatorMessage }}\n</sky-popover>\n", styles: [":host div.sky-validator-cell{height:100%;width:100%}:host div.sky-validator-cell:focus{outline:none}\n"], components: [{ type: i1$5.λ10, selector: "sky-status-indicator", inputs: ["indicatorType", "descriptionType", "customDescription"] }, { type: i2$1.λ6, selector: "sky-popover", inputs: ["alignment", "dismissOnBlur", "placement", "popoverTitle", "popoverType"], outputs: ["popoverClosed", "popoverOpened"] }], directives: [{ type: i2$1.λ7, selector: "[skyPopover]", inputs: ["skyPopover", "skyPopoverAlignment", "skyPopoverMessageStream", "skyPopoverPlacement", "skyPopoverTrigger"] }, { type: i3$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
670
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SkyAgGridCellValidatorTooltipComponent, decorators: [{
|
|
658
671
|
type: Component,
|
|
659
672
|
args: [{
|
|
660
673
|
selector: 'sky-ag-grid-cell-validator-tooltip',
|
|
661
674
|
styleUrls: ['ag-grid-cell-validator-tooltip.component.scss'],
|
|
662
675
|
templateUrl: 'ag-grid-cell-validator-tooltip.component.html',
|
|
663
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
676
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
664
677
|
}]
|
|
665
678
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.NgZone }]; }, propDecorators: { params: [{
|
|
666
679
|
type: Input
|
|
667
680
|
}] } });
|
|
668
681
|
|
|
682
|
+
/**
|
|
683
|
+
* @internal
|
|
684
|
+
*/
|
|
669
685
|
class SkyAgGridCellRendererCurrencyComponent {
|
|
670
686
|
constructor() {
|
|
671
687
|
this.skyComponentProperties = {};
|
|
@@ -691,27 +707,31 @@ class SkyAgGridCellRendererCurrencyComponent {
|
|
|
691
707
|
this.columnHeader = this._params.colDef && this._params.colDef.headerName;
|
|
692
708
|
this.rowNumber = this._params.rowIndex + 1;
|
|
693
709
|
this.columnWidth = (_a = this._params.column) === null || _a === void 0 ? void 0 : _a.getActualWidth();
|
|
694
|
-
this.rowHeightWithoutBorders =
|
|
710
|
+
this.rowHeightWithoutBorders =
|
|
711
|
+
this._params.node && this._params.node.rowHeight - 4;
|
|
695
712
|
this.skyComponentProperties = this._params.skyComponentProperties || {};
|
|
696
713
|
this.skyComponentProperties.format = 'currency';
|
|
697
714
|
this.skyComponentProperties.minDigits = 2;
|
|
698
715
|
this.skyComponentProperties.truncate = false;
|
|
699
716
|
}
|
|
700
717
|
}
|
|
701
|
-
SkyAgGridCellRendererCurrencyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
702
|
-
SkyAgGridCellRendererCurrencyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
703
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
718
|
+
SkyAgGridCellRendererCurrencyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SkyAgGridCellRendererCurrencyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
719
|
+
SkyAgGridCellRendererCurrencyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: SkyAgGridCellRendererCurrencyComponent, selector: "sky-ag-grid-cell-renderer-currency", inputs: { params: "params" }, ngImport: i0, template: "<span\n [attr.aria-label]=\"\n 'sky_ag_grid_cell_renderer_currency_aria_label'\n | skyLibResources: columnHeader:rowNumber\n \"\n [style.width.px]=\"columnWidth\"\n [style.height.px]=\"rowHeightWithoutBorders\"\n>\n {{ value | skyNumeric: skyComponentProperties }}\n</span>\n", styles: ["input{border:none;padding-left:11px}\n"], pipes: { "skyLibResources": i3.SkyLibResourcesPipe, "skyNumeric": i1.SkyNumericPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
720
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SkyAgGridCellRendererCurrencyComponent, decorators: [{
|
|
704
721
|
type: Component,
|
|
705
722
|
args: [{
|
|
706
723
|
selector: 'sky-ag-grid-cell-renderer-currency',
|
|
707
724
|
templateUrl: './cell-renderer-currency.component.html',
|
|
708
725
|
styleUrls: ['./cell-renderer-currency.component.scss'],
|
|
709
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
726
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
710
727
|
}]
|
|
711
728
|
}], propDecorators: { params: [{
|
|
712
729
|
type: Input
|
|
713
730
|
}] } });
|
|
714
731
|
|
|
732
|
+
/**
|
|
733
|
+
* @internal
|
|
734
|
+
*/
|
|
715
735
|
class SkyAgGridCellRendererCurrencyValidatorComponent {
|
|
716
736
|
constructor(changeDetector) {
|
|
717
737
|
this.changeDetector = changeDetector;
|
|
@@ -734,14 +754,14 @@ class SkyAgGridCellRendererCurrencyValidatorComponent {
|
|
|
734
754
|
return false;
|
|
735
755
|
}
|
|
736
756
|
}
|
|
737
|
-
SkyAgGridCellRendererCurrencyValidatorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
738
|
-
SkyAgGridCellRendererCurrencyValidatorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
739
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
757
|
+
SkyAgGridCellRendererCurrencyValidatorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SkyAgGridCellRendererCurrencyValidatorComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
758
|
+
SkyAgGridCellRendererCurrencyValidatorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: SkyAgGridCellRendererCurrencyValidatorComponent, selector: "sky-ag-grid-cell-renderer-currency-validator", inputs: { parameters: "parameters" }, ngImport: i0, template: "<sky-ag-grid-cell-validator-tooltip [params]=\"cellRendererParams\">\n <sky-ag-grid-cell-renderer-currency\n *ngIf=\"isNumeric(cellRendererParams.value); else rawValue\"\n [params]=\"cellRendererParams\"\n ></sky-ag-grid-cell-renderer-currency>\n <ng-template #rawValue>{{ cellRendererParams.value }}</ng-template>\n</sky-ag-grid-cell-validator-tooltip>\n", components: [{ type: SkyAgGridCellValidatorTooltipComponent, selector: "sky-ag-grid-cell-validator-tooltip", inputs: ["params"] }, { type: SkyAgGridCellRendererCurrencyComponent, selector: "sky-ag-grid-cell-renderer-currency", inputs: ["params"] }], directives: [{ type: i3$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
759
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SkyAgGridCellRendererCurrencyValidatorComponent, decorators: [{
|
|
740
760
|
type: Component,
|
|
741
761
|
args: [{
|
|
742
762
|
selector: 'sky-ag-grid-cell-renderer-currency-validator',
|
|
743
763
|
templateUrl: 'cell-renderer-currency-validator.component.html',
|
|
744
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
764
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
745
765
|
}]
|
|
746
766
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { parameters: [{
|
|
747
767
|
type: Input
|
|
@@ -765,32 +785,35 @@ class SkyAgGridCellRendererLookupComponent {
|
|
|
765
785
|
return true;
|
|
766
786
|
}
|
|
767
787
|
}
|
|
768
|
-
SkyAgGridCellRendererLookupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
769
|
-
SkyAgGridCellRendererLookupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
770
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
788
|
+
SkyAgGridCellRendererLookupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SkyAgGridCellRendererLookupComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
789
|
+
SkyAgGridCellRendererLookupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: SkyAgGridCellRendererLookupComponent, selector: "sky-cell-renderer-lookup", ngImport: i0, template: "<ng-container *ngIf=\"summaryCount > 5; else showValue\">\n {{ 'skyux_lookup_tokens_summary' | skyLibResources: summaryCount }}\n</ng-container>\n<ng-template #showValue>{{ value }}</ng-template>\n", styles: [":host{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}\n"], directives: [{ type: i3$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "skyLibResources": i3.SkyLibResourcesPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
790
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SkyAgGridCellRendererLookupComponent, decorators: [{
|
|
771
791
|
type: Component,
|
|
772
792
|
args: [{
|
|
773
793
|
selector: 'sky-cell-renderer-lookup',
|
|
774
794
|
templateUrl: './cell-renderer-lookup.component.html',
|
|
775
795
|
styleUrls: ['./cell-renderer-lookup.component.scss'],
|
|
776
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
796
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
777
797
|
}]
|
|
778
798
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; } });
|
|
779
799
|
|
|
780
800
|
class SkyAgGridCellRendererLookupModule {
|
|
781
801
|
}
|
|
782
|
-
SkyAgGridCellRendererLookupModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
783
|
-
SkyAgGridCellRendererLookupModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
|
784
|
-
SkyAgGridCellRendererLookupModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.
|
|
785
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
802
|
+
SkyAgGridCellRendererLookupModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SkyAgGridCellRendererLookupModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
803
|
+
SkyAgGridCellRendererLookupModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SkyAgGridCellRendererLookupModule, declarations: [SkyAgGridCellRendererLookupComponent], imports: [CommonModule, AgGridResourcesModule], exports: [SkyAgGridCellRendererLookupComponent] });
|
|
804
|
+
SkyAgGridCellRendererLookupModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SkyAgGridCellRendererLookupModule, imports: [[CommonModule, AgGridResourcesModule]] });
|
|
805
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SkyAgGridCellRendererLookupModule, decorators: [{
|
|
786
806
|
type: NgModule,
|
|
787
807
|
args: [{
|
|
788
808
|
declarations: [SkyAgGridCellRendererLookupComponent],
|
|
789
809
|
exports: [SkyAgGridCellRendererLookupComponent],
|
|
790
|
-
imports: [CommonModule, AgGridResourcesModule]
|
|
810
|
+
imports: [CommonModule, AgGridResourcesModule],
|
|
791
811
|
}]
|
|
792
812
|
}] });
|
|
793
813
|
|
|
814
|
+
/**
|
|
815
|
+
* @internal
|
|
816
|
+
*/
|
|
794
817
|
class SkyAgGridCellRendererRowSelectorComponent {
|
|
795
818
|
constructor(changeDetection) {
|
|
796
819
|
this.changeDetection = changeDetection;
|
|
@@ -837,47 +860,36 @@ class SkyAgGridCellRendererRowSelectorComponent {
|
|
|
837
860
|
this.changeDetection.markForCheck();
|
|
838
861
|
}
|
|
839
862
|
}
|
|
840
|
-
SkyAgGridCellRendererRowSelectorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
841
|
-
SkyAgGridCellRendererRowSelectorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
842
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
863
|
+
SkyAgGridCellRendererRowSelectorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SkyAgGridCellRendererRowSelectorComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
864
|
+
SkyAgGridCellRendererRowSelectorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: SkyAgGridCellRendererRowSelectorComponent, selector: "sky-ag-grid-cell-renderer-row-selector", ngImport: i0, template: "<sky-checkbox\n data-sky-id=\"row-checkbox\"\n tabindex=\"-1\"\n [label]=\"'skyux_ag_grid_row_selector_aria_label' | skyLibResources: rowNumber\"\n [attr.aria-label]=\"\n 'skyux_ag_grid_row_selector_aria_label' | skyLibResources: rowNumber\n \"\n [(ngModel)]=\"checked\"\n (change)=\"updateRow()\"\n>\n</sky-checkbox>\n", styles: [".sky-ag-grid-cell-row-selector .sky-switch-control{top:-6px}\n"], components: [{ type: i1$4.λ3, selector: "sky-checkbox", inputs: ["label", "labelledBy", "id", "disabled", "tabindex", "name", "icon", "checkboxType", "checked", "required"], outputs: ["change", "checkedChange", "disabledChange"] }], directives: [{ type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], pipes: { "skyLibResources": i3.SkyLibResourcesPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
865
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SkyAgGridCellRendererRowSelectorComponent, decorators: [{
|
|
843
866
|
type: Component,
|
|
844
867
|
args: [{
|
|
845
868
|
selector: 'sky-ag-grid-cell-renderer-row-selector',
|
|
846
869
|
templateUrl: './cell-renderer-row-selector.component.html',
|
|
847
870
|
styleUrls: ['./cell-renderer-row-selector.component.scss'],
|
|
848
871
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
849
|
-
encapsulation: ViewEncapsulation.None
|
|
872
|
+
encapsulation: ViewEncapsulation.None,
|
|
850
873
|
}]
|
|
851
874
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; } });
|
|
852
875
|
|
|
853
876
|
class SkyAgGridCellRendererRowSelectorModule {
|
|
854
877
|
}
|
|
855
|
-
SkyAgGridCellRendererRowSelectorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
856
|
-
SkyAgGridCellRendererRowSelectorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
SkyAgGridCellRendererRowSelectorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyAgGridCellRendererRowSelectorModule, imports: [[
|
|
860
|
-
AgGridResourcesModule,
|
|
861
|
-
SkyCheckboxModule,
|
|
862
|
-
FormsModule
|
|
863
|
-
]] });
|
|
864
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyAgGridCellRendererRowSelectorModule, decorators: [{
|
|
878
|
+
SkyAgGridCellRendererRowSelectorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SkyAgGridCellRendererRowSelectorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
879
|
+
SkyAgGridCellRendererRowSelectorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SkyAgGridCellRendererRowSelectorModule, declarations: [SkyAgGridCellRendererRowSelectorComponent], imports: [AgGridResourcesModule, SkyCheckboxModule, FormsModule], exports: [SkyAgGridCellRendererRowSelectorComponent] });
|
|
880
|
+
SkyAgGridCellRendererRowSelectorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SkyAgGridCellRendererRowSelectorModule, imports: [[AgGridResourcesModule, SkyCheckboxModule, FormsModule]] });
|
|
881
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SkyAgGridCellRendererRowSelectorModule, decorators: [{
|
|
865
882
|
type: NgModule,
|
|
866
883
|
args: [{
|
|
867
|
-
imports: [
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
FormsModule
|
|
871
|
-
],
|
|
872
|
-
declarations: [
|
|
873
|
-
SkyAgGridCellRendererRowSelectorComponent
|
|
874
|
-
],
|
|
875
|
-
exports: [
|
|
876
|
-
SkyAgGridCellRendererRowSelectorComponent
|
|
877
|
-
]
|
|
884
|
+
imports: [AgGridResourcesModule, SkyCheckboxModule, FormsModule],
|
|
885
|
+
declarations: [SkyAgGridCellRendererRowSelectorComponent],
|
|
886
|
+
exports: [SkyAgGridCellRendererRowSelectorComponent],
|
|
878
887
|
}]
|
|
879
888
|
}] });
|
|
880
889
|
|
|
890
|
+
/**
|
|
891
|
+
* @internal
|
|
892
|
+
*/
|
|
881
893
|
class SkyAgGridDataManagerAdapterDirective {
|
|
882
894
|
constructor(changeDetector, dataManagerSvc) {
|
|
883
895
|
this.changeDetector = changeDetector;
|
|
@@ -949,13 +961,12 @@ class SkyAgGridDataManagerAdapterDirective {
|
|
|
949
961
|
this.unregisterAgGrid();
|
|
950
962
|
const agGrid = this.agGridList.first;
|
|
951
963
|
this.currentAgGrid = agGrid;
|
|
952
|
-
agGrid.gridReady
|
|
953
|
-
.pipe(takeUntil(this.ngUnsubscribe))
|
|
954
|
-
.subscribe(() => {
|
|
964
|
+
agGrid.gridReady.pipe(takeUntil(this.ngUnsubscribe)).subscribe(() => {
|
|
955
965
|
this.viewConfig.onSelectAllClick = this.selectAll.bind(this);
|
|
956
966
|
this.viewConfig.onClearAllClick = this.clearAll.bind(this);
|
|
957
967
|
this.dataManagerSvc.updateViewConfig(this.viewConfig);
|
|
958
|
-
this.dataStateSub = this.dataManagerSvc
|
|
968
|
+
this.dataStateSub = this.dataManagerSvc
|
|
969
|
+
.getDataStateUpdates(this.viewConfig.id)
|
|
959
970
|
.pipe(takeUntil(this.ngUnsubscribe))
|
|
960
971
|
.subscribe((dataState) => {
|
|
961
972
|
this.currentDataState = dataState;
|
|
@@ -964,13 +975,28 @@ class SkyAgGridDataManagerAdapterDirective {
|
|
|
964
975
|
agGrid.api.sizeColumnsToFit();
|
|
965
976
|
});
|
|
966
977
|
agGrid.columnMoved
|
|
978
|
+
.pipe(takeUntil(this.ngUnsubscribe), filter((event) => ![
|
|
979
|
+
'gridInitializing',
|
|
980
|
+
'uiColumnResized',
|
|
981
|
+
'uiColumnDragged',
|
|
982
|
+
'api',
|
|
983
|
+
].includes(event.source)))
|
|
984
|
+
.subscribe((value) => {
|
|
985
|
+
this.updateColumnsInCurrentDataState(value.columnApi);
|
|
986
|
+
});
|
|
987
|
+
let currentColumns;
|
|
988
|
+
agGrid.dragStarted
|
|
967
989
|
.pipe(takeUntil(this.ngUnsubscribe))
|
|
968
|
-
.subscribe((
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
990
|
+
.subscribe((value) => {
|
|
991
|
+
currentColumns = this.getColumnOrder(value.columnApi);
|
|
992
|
+
});
|
|
993
|
+
agGrid.dragStopped
|
|
994
|
+
.pipe(takeUntil(this.ngUnsubscribe))
|
|
995
|
+
.subscribe((value) => {
|
|
996
|
+
const newColumns = this.getColumnOrder(value.columnApi);
|
|
997
|
+
const hasChanged = currentColumns.findIndex((colId, i) => colId !== newColumns[i]);
|
|
998
|
+
if (hasChanged > -1) {
|
|
999
|
+
this.updateColumnsInCurrentDataState(value.columnApi);
|
|
974
1000
|
}
|
|
975
1001
|
});
|
|
976
1002
|
agGrid.rowSelected
|
|
@@ -989,9 +1015,7 @@ class SkyAgGridDataManagerAdapterDirective {
|
|
|
989
1015
|
this.dataManagerSvc.updateDataState(this.currentDataState, this.viewConfig.id);
|
|
990
1016
|
this.changeDetector.markForCheck();
|
|
991
1017
|
});
|
|
992
|
-
agGrid.sortChanged
|
|
993
|
-
.pipe(takeUntil(this.ngUnsubscribe))
|
|
994
|
-
.subscribe(() => {
|
|
1018
|
+
agGrid.sortChanged.pipe(takeUntil(this.ngUnsubscribe)).subscribe(() => {
|
|
995
1019
|
const gridSortModel = agGrid.api.getSortModel();
|
|
996
1020
|
let sortOption;
|
|
997
1021
|
/* istanbul ignore else */
|
|
@@ -1002,8 +1026,8 @@ class SkyAgGridDataManagerAdapterDirective {
|
|
|
1002
1026
|
/* istanbul ignore else */
|
|
1003
1027
|
if (dataManagerConfig.sortOptions) {
|
|
1004
1028
|
sortOption = dataManagerConfig.sortOptions.find((option) => {
|
|
1005
|
-
return option.propertyName === activeSortColumn.getColDef().field &&
|
|
1006
|
-
option.descending === (activeSortModel.sort === 'desc');
|
|
1029
|
+
return (option.propertyName === activeSortColumn.getColDef().field &&
|
|
1030
|
+
option.descending === (activeSortModel.sort === 'desc'));
|
|
1007
1031
|
});
|
|
1008
1032
|
}
|
|
1009
1033
|
else {
|
|
@@ -1014,6 +1038,17 @@ class SkyAgGridDataManagerAdapterDirective {
|
|
|
1014
1038
|
this.dataManagerSvc.updateDataState(this.currentDataState, this.viewConfig.id);
|
|
1015
1039
|
});
|
|
1016
1040
|
}
|
|
1041
|
+
updateColumnsInCurrentDataState(columnApi) {
|
|
1042
|
+
const columnOrder = this.getColumnOrder(columnApi);
|
|
1043
|
+
const viewState = this.currentDataState.getViewStateById(this.viewConfig.id);
|
|
1044
|
+
viewState.displayedColumnIds = columnOrder;
|
|
1045
|
+
this.dataManagerSvc.updateDataState(this.currentDataState.addOrUpdateView(this.viewConfig.id, viewState), this.viewConfig.id);
|
|
1046
|
+
}
|
|
1047
|
+
getColumnOrder(columnApi) {
|
|
1048
|
+
return columnApi
|
|
1049
|
+
.getAllDisplayedVirtualColumns()
|
|
1050
|
+
.map((col) => col.getColDef().colId);
|
|
1051
|
+
}
|
|
1017
1052
|
displayColumns(dataState) {
|
|
1018
1053
|
const agGrid = this.currentAgGrid;
|
|
1019
1054
|
const viewState = dataState.getViewStateById(this.viewConfig.id);
|
|
@@ -1039,12 +1074,12 @@ class SkyAgGridDataManagerAdapterDirective {
|
|
|
1039
1074
|
agGrid.api.deselectAll();
|
|
1040
1075
|
}
|
|
1041
1076
|
}
|
|
1042
|
-
SkyAgGridDataManagerAdapterDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
1043
|
-
SkyAgGridDataManagerAdapterDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.
|
|
1044
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
1077
|
+
SkyAgGridDataManagerAdapterDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SkyAgGridDataManagerAdapterDirective, deps: [{ token: i0.ChangeDetectorRef }, { token: i1$6.SkyDataManagerService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1078
|
+
SkyAgGridDataManagerAdapterDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.15", type: SkyAgGridDataManagerAdapterDirective, selector: "[skyAgGridDataManagerAdapter]", inputs: { viewId: "viewId" }, queries: [{ propertyName: "agGridList", predicate: AgGridAngular, descendants: true }, { propertyName: "skyAgGridWrapperList", predicate: SkyAgGridWrapperComponent, descendants: true }], ngImport: i0 });
|
|
1079
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SkyAgGridDataManagerAdapterDirective, decorators: [{
|
|
1045
1080
|
type: Directive,
|
|
1046
1081
|
args: [{
|
|
1047
|
-
selector: '[skyAgGridDataManagerAdapter]'
|
|
1082
|
+
selector: '[skyAgGridDataManagerAdapter]',
|
|
1048
1083
|
}]
|
|
1049
1084
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i1$6.SkyDataManagerService }]; }, propDecorators: { viewId: [{
|
|
1050
1085
|
type: Input
|
|
@@ -1058,50 +1093,36 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImpo
|
|
|
1058
1093
|
|
|
1059
1094
|
class SkyAgGridCellValidatorModule {
|
|
1060
1095
|
}
|
|
1061
|
-
SkyAgGridCellValidatorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
1062
|
-
SkyAgGridCellValidatorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
SkyAgGridCellValidatorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyAgGridCellValidatorModule, imports: [[
|
|
1066
|
-
CommonModule,
|
|
1067
|
-
SkyPopoverModule,
|
|
1068
|
-
SkyStatusIndicatorModule
|
|
1069
|
-
]] });
|
|
1070
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyAgGridCellValidatorModule, decorators: [{
|
|
1096
|
+
SkyAgGridCellValidatorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SkyAgGridCellValidatorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1097
|
+
SkyAgGridCellValidatorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SkyAgGridCellValidatorModule, declarations: [SkyAgGridCellValidatorTooltipComponent], imports: [CommonModule, SkyPopoverModule, SkyStatusIndicatorModule], exports: [SkyAgGridCellValidatorTooltipComponent] });
|
|
1098
|
+
SkyAgGridCellValidatorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SkyAgGridCellValidatorModule, imports: [[CommonModule, SkyPopoverModule, SkyStatusIndicatorModule]] });
|
|
1099
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SkyAgGridCellValidatorModule, decorators: [{
|
|
1071
1100
|
type: NgModule,
|
|
1072
1101
|
args: [{
|
|
1073
|
-
declarations: [
|
|
1074
|
-
|
|
1075
|
-
],
|
|
1076
|
-
exports: [
|
|
1077
|
-
SkyAgGridCellValidatorTooltipComponent
|
|
1078
|
-
],
|
|
1079
|
-
imports: [
|
|
1080
|
-
CommonModule,
|
|
1081
|
-
SkyPopoverModule,
|
|
1082
|
-
SkyStatusIndicatorModule
|
|
1083
|
-
]
|
|
1102
|
+
declarations: [SkyAgGridCellValidatorTooltipComponent],
|
|
1103
|
+
exports: [SkyAgGridCellValidatorTooltipComponent],
|
|
1104
|
+
imports: [CommonModule, SkyPopoverModule, SkyStatusIndicatorModule],
|
|
1084
1105
|
}]
|
|
1085
1106
|
}] });
|
|
1086
1107
|
|
|
1087
1108
|
class SkyAgGridCellRendererCurrencyModule {
|
|
1088
1109
|
}
|
|
1089
|
-
SkyAgGridCellRendererCurrencyModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
1090
|
-
SkyAgGridCellRendererCurrencyModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
|
1110
|
+
SkyAgGridCellRendererCurrencyModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SkyAgGridCellRendererCurrencyModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1111
|
+
SkyAgGridCellRendererCurrencyModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SkyAgGridCellRendererCurrencyModule, declarations: [SkyAgGridCellRendererCurrencyComponent,
|
|
1091
1112
|
SkyAgGridCellRendererCurrencyValidatorComponent], imports: [CommonModule,
|
|
1092
1113
|
AgGridResourcesModule,
|
|
1093
1114
|
SkyAgGridCellValidatorModule,
|
|
1094
1115
|
FormsModule,
|
|
1095
1116
|
SkyNumericModule], exports: [SkyAgGridCellRendererCurrencyComponent,
|
|
1096
1117
|
SkyAgGridCellRendererCurrencyValidatorComponent] });
|
|
1097
|
-
SkyAgGridCellRendererCurrencyModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.
|
|
1118
|
+
SkyAgGridCellRendererCurrencyModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SkyAgGridCellRendererCurrencyModule, imports: [[
|
|
1098
1119
|
CommonModule,
|
|
1099
1120
|
AgGridResourcesModule,
|
|
1100
1121
|
SkyAgGridCellValidatorModule,
|
|
1101
1122
|
FormsModule,
|
|
1102
|
-
SkyNumericModule
|
|
1123
|
+
SkyNumericModule,
|
|
1103
1124
|
]] });
|
|
1104
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
1125
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SkyAgGridCellRendererCurrencyModule, decorators: [{
|
|
1105
1126
|
type: NgModule,
|
|
1106
1127
|
args: [{
|
|
1107
1128
|
imports: [
|
|
@@ -1109,16 +1130,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImpo
|
|
|
1109
1130
|
AgGridResourcesModule,
|
|
1110
1131
|
SkyAgGridCellValidatorModule,
|
|
1111
1132
|
FormsModule,
|
|
1112
|
-
SkyNumericModule
|
|
1133
|
+
SkyNumericModule,
|
|
1113
1134
|
],
|
|
1114
1135
|
declarations: [
|
|
1115
1136
|
SkyAgGridCellRendererCurrencyComponent,
|
|
1116
|
-
SkyAgGridCellRendererCurrencyValidatorComponent
|
|
1137
|
+
SkyAgGridCellRendererCurrencyValidatorComponent,
|
|
1117
1138
|
],
|
|
1118
1139
|
exports: [
|
|
1119
1140
|
SkyAgGridCellRendererCurrencyComponent,
|
|
1120
|
-
SkyAgGridCellRendererCurrencyValidatorComponent
|
|
1121
|
-
]
|
|
1141
|
+
SkyAgGridCellRendererCurrencyValidatorComponent,
|
|
1142
|
+
],
|
|
1122
1143
|
}]
|
|
1123
1144
|
}] });
|
|
1124
1145
|
|
|
@@ -1128,8 +1149,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImpo
|
|
|
1128
1149
|
*/
|
|
1129
1150
|
class SkyAgGridRowDeleteComponent {
|
|
1130
1151
|
}
|
|
1131
|
-
SkyAgGridRowDeleteComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
1132
|
-
SkyAgGridRowDeleteComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
1152
|
+
SkyAgGridRowDeleteComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SkyAgGridRowDeleteComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1153
|
+
SkyAgGridRowDeleteComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: SkyAgGridRowDeleteComponent, selector: "ng-component", viewQueries: [{ propertyName: "inlineDeleteTemplateRef", first: true, predicate: ["inlineDeleteTemplateRef"], descendants: true, read: TemplateRef }, { propertyName: "inlineDeleteRefs", predicate: ["inlineDeleteRef"], descendants: true }], ngImport: i0, template: `
|
|
1133
1154
|
<ng-template
|
|
1134
1155
|
let-row
|
|
1135
1156
|
let-tableWidth="tableWidth()"
|
|
@@ -1141,11 +1162,11 @@ SkyAgGridRowDeleteComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.
|
|
|
1141
1162
|
<div
|
|
1142
1163
|
class="sky-ag-grid-row-delete"
|
|
1143
1164
|
[id]="'row-delete-ref-' + row.id"
|
|
1144
|
-
[ngStyle]=
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
}
|
|
1165
|
+
[ngStyle]="{
|
|
1166
|
+
height: row.rowHeight + 'px',
|
|
1167
|
+
position: 'fixed',
|
|
1168
|
+
width: tableWidth + 'px'
|
|
1169
|
+
}"
|
|
1149
1170
|
#inlineDeleteRef
|
|
1150
1171
|
>
|
|
1151
1172
|
<sky-inline-delete
|
|
@@ -1156,7 +1177,7 @@ SkyAgGridRowDeleteComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.
|
|
|
1156
1177
|
</div>
|
|
1157
1178
|
</ng-template>
|
|
1158
1179
|
`, isInline: true, components: [{ type: i1$7.λ8, selector: "sky-inline-delete", inputs: ["pending"], outputs: ["cancelTriggered", "deleteTriggered"] }], directives: [{ type: i3$1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] });
|
|
1159
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
1180
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SkyAgGridRowDeleteComponent, decorators: [{
|
|
1160
1181
|
type: Component,
|
|
1161
1182
|
args: [{
|
|
1162
1183
|
template: `
|
|
@@ -1171,11 +1192,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImpo
|
|
|
1171
1192
|
<div
|
|
1172
1193
|
class="sky-ag-grid-row-delete"
|
|
1173
1194
|
[id]="'row-delete-ref-' + row.id"
|
|
1174
|
-
[ngStyle]=
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
}
|
|
1195
|
+
[ngStyle]="{
|
|
1196
|
+
height: row.rowHeight + 'px',
|
|
1197
|
+
position: 'fixed',
|
|
1198
|
+
width: tableWidth + 'px'
|
|
1199
|
+
}"
|
|
1179
1200
|
#inlineDeleteRef
|
|
1180
1201
|
>
|
|
1181
1202
|
<sky-inline-delete
|
|
@@ -1185,7 +1206,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImpo
|
|
|
1185
1206
|
></sky-inline-delete>
|
|
1186
1207
|
</div>
|
|
1187
1208
|
</ng-template>
|
|
1188
|
-
|
|
1209
|
+
`,
|
|
1189
1210
|
}]
|
|
1190
1211
|
}], propDecorators: { inlineDeleteRefs: [{
|
|
1191
1212
|
type: ViewChildren,
|
|
@@ -1195,6 +1216,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImpo
|
|
|
1195
1216
|
args: ['inlineDeleteTemplateRef', { read: TemplateRef }]
|
|
1196
1217
|
}] } });
|
|
1197
1218
|
|
|
1219
|
+
/**
|
|
1220
|
+
* @internal
|
|
1221
|
+
*/
|
|
1198
1222
|
class SkyAgGridRowDeleteDirective {
|
|
1199
1223
|
constructor(affixService, changeDetector, elementRef, resolver, overlayService, viewContainerRef) {
|
|
1200
1224
|
this.affixService = affixService;
|
|
@@ -1232,29 +1256,30 @@ class SkyAgGridRowDeleteDirective {
|
|
|
1232
1256
|
return;
|
|
1233
1257
|
}
|
|
1234
1258
|
for (let id of value) {
|
|
1235
|
-
const existingConfig = this.rowDeleteConfigs
|
|
1236
|
-
.find(config => config.id === id);
|
|
1259
|
+
const existingConfig = this.rowDeleteConfigs.find((config) => config.id === id);
|
|
1237
1260
|
if (existingConfig) {
|
|
1238
1261
|
existingConfig.pending = false;
|
|
1239
1262
|
}
|
|
1240
1263
|
else {
|
|
1241
1264
|
this.rowDeleteConfigs.push({
|
|
1242
1265
|
id: id,
|
|
1243
|
-
pending: false
|
|
1266
|
+
pending: false,
|
|
1244
1267
|
});
|
|
1245
1268
|
let overlay = this.overlayService.create({
|
|
1246
1269
|
enableScroll: true,
|
|
1247
1270
|
showBackdrop: false,
|
|
1248
1271
|
closeOnNavigation: true,
|
|
1249
1272
|
enableClose: false,
|
|
1250
|
-
enablePointerEvents: true
|
|
1273
|
+
enablePointerEvents: true,
|
|
1251
1274
|
});
|
|
1252
1275
|
overlay.attachTemplate(this.rowDeleteComponent.inlineDeleteTemplateRef, {
|
|
1253
1276
|
$implicit: this.agGrid.api.getRowNode(id),
|
|
1254
|
-
tableWidth: () => {
|
|
1277
|
+
tableWidth: () => {
|
|
1278
|
+
return this.tableWidth;
|
|
1279
|
+
},
|
|
1255
1280
|
getRowDeleteItem: (row) => this.getRowDeleteItem(row),
|
|
1256
1281
|
cancelRowDelete: (row) => this.cancelRowDelete(row),
|
|
1257
|
-
confirmRowDelete: (row) => this.confirmRowDelete(row)
|
|
1282
|
+
confirmRowDelete: (row) => this.confirmRowDelete(row),
|
|
1258
1283
|
});
|
|
1259
1284
|
/**
|
|
1260
1285
|
* We are manually setting the z-index here because overlays will always be on top of
|
|
@@ -1264,15 +1289,16 @@ class SkyAgGridRowDeleteDirective {
|
|
|
1264
1289
|
*/
|
|
1265
1290
|
overlay.componentRef.instance.zIndex = '998';
|
|
1266
1291
|
setTimeout(() => {
|
|
1267
|
-
const inlineDeleteRef = this.rowDeleteComponent.inlineDeleteRefs
|
|
1268
|
-
.
|
|
1292
|
+
const inlineDeleteRef = this.rowDeleteComponent.inlineDeleteRefs
|
|
1293
|
+
.toArray()
|
|
1294
|
+
.find((elRef) => {
|
|
1269
1295
|
return elRef.nativeElement.id === 'row-delete-ref-' + id;
|
|
1270
1296
|
});
|
|
1271
1297
|
let affixer = this.affixService.createAffixer(inlineDeleteRef);
|
|
1272
1298
|
this.affixToRow(affixer, id);
|
|
1273
1299
|
this.rowDeleteContents[id] = {
|
|
1274
1300
|
affixer: affixer,
|
|
1275
|
-
overlay: overlay
|
|
1301
|
+
overlay: overlay,
|
|
1276
1302
|
};
|
|
1277
1303
|
});
|
|
1278
1304
|
}
|
|
@@ -1288,11 +1314,13 @@ class SkyAgGridRowDeleteDirective {
|
|
|
1288
1314
|
return this._rowDeleteIds;
|
|
1289
1315
|
}
|
|
1290
1316
|
get tableWidth() {
|
|
1291
|
-
return this.elementRef.nativeElement.querySelectorAll('.sky-ag-grid')[0]
|
|
1317
|
+
return this.elementRef.nativeElement.querySelectorAll('.sky-ag-grid')[0]
|
|
1318
|
+
.offsetWidth;
|
|
1292
1319
|
}
|
|
1293
1320
|
ngAfterContentInit() {
|
|
1294
1321
|
const factory = this.resolver.resolveComponentFactory(SkyAgGridRowDeleteComponent);
|
|
1295
|
-
this.rowDeleteComponent =
|
|
1322
|
+
this.rowDeleteComponent =
|
|
1323
|
+
this.viewContainerRef.createComponent(factory).instance;
|
|
1296
1324
|
this.agGrid.rowDataChanged
|
|
1297
1325
|
.pipe(takeUntil(this.ngUnsubscribe))
|
|
1298
1326
|
.subscribe(() => {
|
|
@@ -1320,21 +1348,21 @@ class SkyAgGridRowDeleteDirective {
|
|
|
1320
1348
|
ngOnDestroy() {
|
|
1321
1349
|
this.ngUnsubscribe.next();
|
|
1322
1350
|
this.ngUnsubscribe.complete();
|
|
1323
|
-
Object.keys(this.rowDeleteContents).forEach(id => {
|
|
1351
|
+
Object.keys(this.rowDeleteContents).forEach((id) => {
|
|
1324
1352
|
this.destroyRowDelete(id);
|
|
1325
1353
|
});
|
|
1326
1354
|
}
|
|
1327
1355
|
cancelRowDelete(row) {
|
|
1328
|
-
this.rowDeleteConfigs = this.rowDeleteConfigs.filter(config => config.id !== row.id);
|
|
1356
|
+
this.rowDeleteConfigs = this.rowDeleteConfigs.filter((config) => config.id !== row.id);
|
|
1329
1357
|
this.rowDeleteCancel.emit({ id: row.id });
|
|
1330
1358
|
this.destroyRowDelete(row.id);
|
|
1331
1359
|
}
|
|
1332
1360
|
confirmRowDelete(row) {
|
|
1333
|
-
this.rowDeleteConfigs.find(config => config.id === row.id).pending = true;
|
|
1361
|
+
this.rowDeleteConfigs.find((config) => config.id === row.id).pending = true;
|
|
1334
1362
|
this.rowDeleteConfirm.emit({ id: row.id });
|
|
1335
1363
|
}
|
|
1336
1364
|
getRowDeleteItem(row) {
|
|
1337
|
-
return this.rowDeleteConfigs.find(rowDelete => rowDelete.id === row.id);
|
|
1365
|
+
return this.rowDeleteConfigs.find((rowDelete) => rowDelete.id === row.id);
|
|
1338
1366
|
}
|
|
1339
1367
|
affixToRow(affixer, id) {
|
|
1340
1368
|
let rowElement = this.elementRef.nativeElement.querySelector(`
|
|
@@ -1359,7 +1387,7 @@ class SkyAgGridRowDeleteDirective {
|
|
|
1359
1387
|
placement: 'above',
|
|
1360
1388
|
verticalAlignment: 'top',
|
|
1361
1389
|
horizontalAlignment: 'left',
|
|
1362
|
-
enableAutoFit: false
|
|
1390
|
+
enableAutoFit: false,
|
|
1363
1391
|
});
|
|
1364
1392
|
}
|
|
1365
1393
|
destroyRowDelete(id) {
|
|
@@ -1371,8 +1399,8 @@ class SkyAgGridRowDeleteDirective {
|
|
|
1371
1399
|
rowDeleteContents.affixer.destroy();
|
|
1372
1400
|
this.overlayService.close(rowDeleteContents.overlay);
|
|
1373
1401
|
delete this.rowDeleteContents[id];
|
|
1374
|
-
this.rowDeleteConfigs = this.rowDeleteConfigs.filter(config => config.id !== id);
|
|
1375
|
-
this._rowDeleteIds = (_a = this.rowDeleteIds) === null || _a === void 0 ? void 0 : _a.filter(arrayId => arrayId !== id);
|
|
1402
|
+
this.rowDeleteConfigs = this.rowDeleteConfigs.filter((config) => config.id !== id);
|
|
1403
|
+
this._rowDeleteIds = (_a = this.rowDeleteIds) === null || _a === void 0 ? void 0 : _a.filter((arrayId) => arrayId !== id);
|
|
1376
1404
|
this.rowDeleteIdsChange.emit(this._rowDeleteIds);
|
|
1377
1405
|
}
|
|
1378
1406
|
}
|
|
@@ -1390,12 +1418,12 @@ class SkyAgGridRowDeleteDirective {
|
|
|
1390
1418
|
this.changeDetector.markForCheck();
|
|
1391
1419
|
}
|
|
1392
1420
|
}
|
|
1393
|
-
SkyAgGridRowDeleteDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
1394
|
-
SkyAgGridRowDeleteDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.
|
|
1395
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
1421
|
+
SkyAgGridRowDeleteDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SkyAgGridRowDeleteDirective, deps: [{ token: i1.SkyAffixService }, { token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.ComponentFactoryResolver }, { token: i1.SkyOverlayService }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1422
|
+
SkyAgGridRowDeleteDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.15", type: SkyAgGridRowDeleteDirective, selector: "[skyAgGridRowDelete]", inputs: { rowDeleteIds: "rowDeleteIds" }, outputs: { rowDeleteCancel: "rowDeleteCancel", rowDeleteConfirm: "rowDeleteConfirm", rowDeleteIdsChange: "rowDeleteIdsChange" }, queries: [{ propertyName: "agGrid", first: true, predicate: AgGridAngular, descendants: true }], ngImport: i0 });
|
|
1423
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SkyAgGridRowDeleteDirective, decorators: [{
|
|
1396
1424
|
type: Directive,
|
|
1397
1425
|
args: [{
|
|
1398
|
-
selector: '[skyAgGridRowDelete]'
|
|
1426
|
+
selector: '[skyAgGridRowDelete]',
|
|
1399
1427
|
}]
|
|
1400
1428
|
}], ctorParameters: function () { return [{ type: i1.SkyAffixService }, { type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.ComponentFactoryResolver }, { type: i1.SkyOverlayService }, { type: i0.ViewContainerRef }]; }, propDecorators: { rowDeleteIds: [{
|
|
1401
1429
|
type: Input
|
|
@@ -1410,6 +1438,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImpo
|
|
|
1410
1438
|
args: [AgGridAngular]
|
|
1411
1439
|
}] } });
|
|
1412
1440
|
|
|
1441
|
+
/**
|
|
1442
|
+
* @internal
|
|
1443
|
+
*/
|
|
1413
1444
|
class SkyAgGridCellEditorCurrencyComponent {
|
|
1414
1445
|
constructor() {
|
|
1415
1446
|
this.skyComponentProperties = {};
|
|
@@ -1424,8 +1455,12 @@ class SkyAgGridCellEditorCurrencyComponent {
|
|
|
1424
1455
|
this.columnHeader = this.params.colDef.headerName;
|
|
1425
1456
|
this.rowNumber = this.params.rowIndex + 1;
|
|
1426
1457
|
this.columnWidth = this.params.column.getActualWidth();
|
|
1427
|
-
this.rowHeightWithoutBorders =
|
|
1428
|
-
|
|
1458
|
+
this.rowHeightWithoutBorders =
|
|
1459
|
+
this.params.node && this.params.node.rowHeight - 4;
|
|
1460
|
+
this.skyComponentProperties = this.params.skyComponentProperties || {
|
|
1461
|
+
decimalPlaces: 2,
|
|
1462
|
+
currencySymbol: '$',
|
|
1463
|
+
};
|
|
1429
1464
|
}
|
|
1430
1465
|
/**
|
|
1431
1466
|
* afterGuiAttached is called by agGrid after the editor is rendered in the DOM. Once it is attached the editor is ready to be focused on.
|
|
@@ -1440,15 +1475,15 @@ class SkyAgGridCellEditorCurrencyComponent {
|
|
|
1440
1475
|
return this.value;
|
|
1441
1476
|
}
|
|
1442
1477
|
}
|
|
1443
|
-
SkyAgGridCellEditorCurrencyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
1444
|
-
SkyAgGridCellEditorCurrencyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
1445
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
1478
|
+
SkyAgGridCellEditorCurrencyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SkyAgGridCellEditorCurrencyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1479
|
+
SkyAgGridCellEditorCurrencyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: SkyAgGridCellEditorCurrencyComponent, selector: "sky-ag-grid-cell-editor-currency", viewQueries: [{ propertyName: "input", first: true, predicate: ["skyCellEditorCurrency"], descendants: true, read: ElementRef }], ngImport: i0, template: "<input\n type=\"text\"\n [attr.aria-label]=\"\n 'skyux_ag_grid_cell_editor_currency_aria_label'\n | skyLibResources: columnHeader:rowNumber\n \"\n [style.width.px]=\"columnWidth\"\n [style.height.px]=\"rowHeightWithoutBorders\"\n [(ngModel)]=\"value\"\n [skyAutonumeric]=\"skyComponentProperties\"\n #skyCellEditorCurrency\n/>\n", styles: ["input{border:none;padding-left:11px}\n"], directives: [{ type: i1$2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i2$2.λ1, selector: "input[skyAutonumeric]", inputs: ["skyAutonumeric"] }, { type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], pipes: { "skyLibResources": i3.SkyLibResourcesPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1480
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SkyAgGridCellEditorCurrencyComponent, decorators: [{
|
|
1446
1481
|
type: Component,
|
|
1447
1482
|
args: [{
|
|
1448
1483
|
selector: 'sky-ag-grid-cell-editor-currency',
|
|
1449
1484
|
templateUrl: './cell-editor-currency.component.html',
|
|
1450
1485
|
styleUrls: ['./cell-editor-currency.component.scss'],
|
|
1451
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
1486
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1452
1487
|
}]
|
|
1453
1488
|
}], propDecorators: { input: [{
|
|
1454
1489
|
type: ViewChild,
|
|
@@ -1457,32 +1492,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImpo
|
|
|
1457
1492
|
|
|
1458
1493
|
class SkyAgGridCellEditorCurrencyModule {
|
|
1459
1494
|
}
|
|
1460
|
-
SkyAgGridCellEditorCurrencyModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
1461
|
-
SkyAgGridCellEditorCurrencyModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
SkyAgGridCellEditorCurrencyModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyAgGridCellEditorCurrencyModule, imports: [[
|
|
1465
|
-
AgGridResourcesModule,
|
|
1466
|
-
FormsModule,
|
|
1467
|
-
SkyAutonumericModule
|
|
1468
|
-
]] });
|
|
1469
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyAgGridCellEditorCurrencyModule, decorators: [{
|
|
1495
|
+
SkyAgGridCellEditorCurrencyModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SkyAgGridCellEditorCurrencyModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1496
|
+
SkyAgGridCellEditorCurrencyModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SkyAgGridCellEditorCurrencyModule, declarations: [SkyAgGridCellEditorCurrencyComponent], imports: [AgGridResourcesModule, FormsModule, SkyAutonumericModule], exports: [SkyAgGridCellEditorCurrencyComponent] });
|
|
1497
|
+
SkyAgGridCellEditorCurrencyModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SkyAgGridCellEditorCurrencyModule, imports: [[AgGridResourcesModule, FormsModule, SkyAutonumericModule]] });
|
|
1498
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SkyAgGridCellEditorCurrencyModule, decorators: [{
|
|
1470
1499
|
type: NgModule,
|
|
1471
1500
|
args: [{
|
|
1472
|
-
imports: [
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
SkyAutonumericModule
|
|
1476
|
-
],
|
|
1477
|
-
declarations: [
|
|
1478
|
-
SkyAgGridCellEditorCurrencyComponent
|
|
1479
|
-
],
|
|
1480
|
-
exports: [
|
|
1481
|
-
SkyAgGridCellEditorCurrencyComponent
|
|
1482
|
-
]
|
|
1501
|
+
imports: [AgGridResourcesModule, FormsModule, SkyAutonumericModule],
|
|
1502
|
+
declarations: [SkyAgGridCellEditorCurrencyComponent],
|
|
1503
|
+
exports: [SkyAgGridCellEditorCurrencyComponent],
|
|
1483
1504
|
}]
|
|
1484
1505
|
}] });
|
|
1485
1506
|
|
|
1507
|
+
/**
|
|
1508
|
+
* @internal
|
|
1509
|
+
*/
|
|
1486
1510
|
class SkyAgGridCellRendererValidatorTooltipComponent {
|
|
1487
1511
|
constructor(changeDetector) {
|
|
1488
1512
|
this.changeDetector = changeDetector;
|
|
@@ -1505,14 +1529,14 @@ class SkyAgGridCellRendererValidatorTooltipComponent {
|
|
|
1505
1529
|
return false;
|
|
1506
1530
|
}
|
|
1507
1531
|
}
|
|
1508
|
-
SkyAgGridCellRendererValidatorTooltipComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
1509
|
-
SkyAgGridCellRendererValidatorTooltipComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
1510
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
1532
|
+
SkyAgGridCellRendererValidatorTooltipComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SkyAgGridCellRendererValidatorTooltipComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
1533
|
+
SkyAgGridCellRendererValidatorTooltipComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: SkyAgGridCellRendererValidatorTooltipComponent, selector: "sky-ag-grid-cell-renderer-validator-tooltip", inputs: { params: "params" }, ngImport: i0, template: "<sky-ag-grid-cell-validator-tooltip [params]=\"cellRendererParams\">\n {{ value }}\n</sky-ag-grid-cell-validator-tooltip>\n", components: [{ type: SkyAgGridCellValidatorTooltipComponent, selector: "sky-ag-grid-cell-validator-tooltip", inputs: ["params"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1534
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SkyAgGridCellRendererValidatorTooltipComponent, decorators: [{
|
|
1511
1535
|
type: Component,
|
|
1512
1536
|
args: [{
|
|
1513
1537
|
selector: 'sky-ag-grid-cell-renderer-validator-tooltip',
|
|
1514
1538
|
templateUrl: 'cell-renderer-validator-tooltip.component.html',
|
|
1515
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
1539
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1516
1540
|
}]
|
|
1517
1541
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { params: [{
|
|
1518
1542
|
type: Input
|
|
@@ -1520,30 +1544,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImpo
|
|
|
1520
1544
|
|
|
1521
1545
|
class SkyAgGridCellRendererValidatorTooltipModule {
|
|
1522
1546
|
}
|
|
1523
|
-
SkyAgGridCellRendererValidatorTooltipModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
1524
|
-
SkyAgGridCellRendererValidatorTooltipModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
|
1525
|
-
SkyAgGridCellRendererValidatorTooltipModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.
|
|
1526
|
-
|
|
1527
|
-
]] });
|
|
1528
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyAgGridCellRendererValidatorTooltipModule, decorators: [{
|
|
1547
|
+
SkyAgGridCellRendererValidatorTooltipModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SkyAgGridCellRendererValidatorTooltipModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1548
|
+
SkyAgGridCellRendererValidatorTooltipModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SkyAgGridCellRendererValidatorTooltipModule, declarations: [SkyAgGridCellRendererValidatorTooltipComponent], imports: [SkyAgGridCellValidatorModule], exports: [SkyAgGridCellRendererValidatorTooltipComponent] });
|
|
1549
|
+
SkyAgGridCellRendererValidatorTooltipModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SkyAgGridCellRendererValidatorTooltipModule, imports: [[SkyAgGridCellValidatorModule]] });
|
|
1550
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SkyAgGridCellRendererValidatorTooltipModule, decorators: [{
|
|
1529
1551
|
type: NgModule,
|
|
1530
1552
|
args: [{
|
|
1531
|
-
declarations: [
|
|
1532
|
-
|
|
1533
|
-
],
|
|
1534
|
-
exports: [
|
|
1535
|
-
SkyAgGridCellRendererValidatorTooltipComponent
|
|
1536
|
-
],
|
|
1537
|
-
imports: [
|
|
1538
|
-
SkyAgGridCellValidatorModule
|
|
1539
|
-
]
|
|
1553
|
+
declarations: [SkyAgGridCellRendererValidatorTooltipComponent],
|
|
1554
|
+
exports: [SkyAgGridCellRendererValidatorTooltipComponent],
|
|
1555
|
+
imports: [SkyAgGridCellValidatorModule],
|
|
1540
1556
|
}]
|
|
1541
1557
|
}] });
|
|
1542
1558
|
|
|
1543
1559
|
class SkyAgGridModule {
|
|
1544
1560
|
}
|
|
1545
|
-
SkyAgGridModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
1546
|
-
SkyAgGridModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
|
1561
|
+
SkyAgGridModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SkyAgGridModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1562
|
+
SkyAgGridModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SkyAgGridModule, declarations: [SkyAgGridDataManagerAdapterDirective,
|
|
1547
1563
|
SkyAgGridRowDeleteComponent,
|
|
1548
1564
|
SkyAgGridRowDeleteDirective,
|
|
1549
1565
|
SkyAgGridWrapperComponent], imports: [AgGridModule,
|
|
@@ -1565,7 +1581,7 @@ SkyAgGridModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version
|
|
|
1565
1581
|
SkyAgGridRowDeleteComponent,
|
|
1566
1582
|
SkyAgGridRowDeleteDirective,
|
|
1567
1583
|
SkyAgGridWrapperComponent] });
|
|
1568
|
-
SkyAgGridModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.
|
|
1584
|
+
SkyAgGridModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SkyAgGridModule, imports: [[
|
|
1569
1585
|
AgGridModule,
|
|
1570
1586
|
CommonModule,
|
|
1571
1587
|
SkyAgGridCellEditorAutocompleteModule,
|
|
@@ -1581,16 +1597,16 @@ SkyAgGridModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version
|
|
|
1581
1597
|
SkyAgGridCellEditorTextModule,
|
|
1582
1598
|
SkyDataManagerModule,
|
|
1583
1599
|
SkyInlineDeleteModule,
|
|
1584
|
-
SkyViewkeeperModule
|
|
1600
|
+
SkyViewkeeperModule,
|
|
1585
1601
|
]] });
|
|
1586
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
1602
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SkyAgGridModule, decorators: [{
|
|
1587
1603
|
type: NgModule,
|
|
1588
1604
|
args: [{
|
|
1589
1605
|
declarations: [
|
|
1590
1606
|
SkyAgGridDataManagerAdapterDirective,
|
|
1591
1607
|
SkyAgGridRowDeleteComponent,
|
|
1592
1608
|
SkyAgGridRowDeleteDirective,
|
|
1593
|
-
SkyAgGridWrapperComponent
|
|
1609
|
+
SkyAgGridWrapperComponent,
|
|
1594
1610
|
],
|
|
1595
1611
|
imports: [
|
|
1596
1612
|
AgGridModule,
|
|
@@ -1608,13 +1624,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImpo
|
|
|
1608
1624
|
SkyAgGridCellEditorTextModule,
|
|
1609
1625
|
SkyDataManagerModule,
|
|
1610
1626
|
SkyInlineDeleteModule,
|
|
1611
|
-
SkyViewkeeperModule
|
|
1627
|
+
SkyViewkeeperModule,
|
|
1612
1628
|
],
|
|
1613
1629
|
exports: [
|
|
1614
1630
|
SkyAgGridDataManagerAdapterDirective,
|
|
1615
1631
|
SkyAgGridRowDeleteComponent,
|
|
1616
1632
|
SkyAgGridRowDeleteDirective,
|
|
1617
|
-
SkyAgGridWrapperComponent
|
|
1633
|
+
SkyAgGridWrapperComponent,
|
|
1618
1634
|
],
|
|
1619
1635
|
entryComponents: [
|
|
1620
1636
|
SkyAgGridCellEditorAutocompleteComponent,
|
|
@@ -1626,11 +1642,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImpo
|
|
|
1626
1642
|
SkyAgGridCellRendererRowSelectorComponent,
|
|
1627
1643
|
SkyAgGridCellRendererValidatorTooltipComponent,
|
|
1628
1644
|
SkyAgGridCellEditorTextComponent,
|
|
1629
|
-
SkyAgGridRowDeleteComponent
|
|
1630
|
-
]
|
|
1645
|
+
SkyAgGridRowDeleteComponent,
|
|
1646
|
+
],
|
|
1631
1647
|
}]
|
|
1632
1648
|
}] });
|
|
1633
1649
|
|
|
1650
|
+
/**
|
|
1651
|
+
* @internal
|
|
1652
|
+
*/
|
|
1634
1653
|
var SkyCellClass;
|
|
1635
1654
|
(function (SkyCellClass) {
|
|
1636
1655
|
SkyCellClass["Autocomplete"] = "sky-ag-grid-cell-autocomplete";
|
|
@@ -1645,20 +1664,93 @@ var SkyCellClass;
|
|
|
1645
1664
|
SkyCellClass["Uneditable"] = "sky-ag-grid-cell-uneditable";
|
|
1646
1665
|
})(SkyCellClass || (SkyCellClass = {}));
|
|
1647
1666
|
|
|
1667
|
+
/**
|
|
1668
|
+
* These column types can be used by setting the AG Grid [column definition `type`](https://www.ag-grid.com/javascript-grid-column-properties/) to one of the following values.
|
|
1669
|
+
* <br/>
|
|
1670
|
+
* Any [SKY UX component](https://developer.blackbaud.com/skyux/components can be made into a [cell editor](https://www.ag-grid.com/javascript-grid-cell-editor/) or [cell renderer](https://www.ag-grid.com/javascript-grid-cell-rendering-components/) component. If you would like to use a component that does not have a column definition yet, please consider [contributing it](https://developer.blackbaud.com/skyux/contribute/contribution-process) to the SKY UX data entry grid module, or [file an issue](https://developer.blackbaud.com/skyux/contribute/contribution-process/file-issue) in the [`@skyux/ag-grid` repo](https://github.com/blackbaud/skyux-ag-grid).
|
|
1671
|
+
*/
|
|
1648
1672
|
var SkyCellType;
|
|
1649
1673
|
(function (SkyCellType) {
|
|
1674
|
+
/**
|
|
1675
|
+
* **Edit mode**
|
|
1676
|
+
* <br/>
|
|
1677
|
+
* Specifies that cells in the column will be edited as [SKY UX autocomplete components](https://developer.blackbaud.com/skyux/components/autocomplete). You can set any of the autocomplete component's properties by passing them in the [column definition's `cellEditorParams` property](https://www.ag-grid.com/javascript-grid-column-properties/). These params can be updated as other cell edits are made or [provided dynamically](https://www.ag-grid.com/javascript-grid-cell-editing/#dynamic-parameters) based on other cell values. See the demo for an example. Text can be entered and a value selected from the provided list.
|
|
1678
|
+
* <br/><br/>
|
|
1679
|
+
* **Read-only mode**
|
|
1680
|
+
* <br/>
|
|
1681
|
+
* Specifies that cells the column will display the currently selected value's name property by default. If the autocomplete needs to show a different property or needs to be formatted in any way, you can [define a `valueFormatter`](https://www.ag-grid.com/javascript-grid-value-formatters/) on the column definition.
|
|
1682
|
+
*/
|
|
1650
1683
|
SkyCellType["Autocomplete"] = "skyCellAutocomplete";
|
|
1684
|
+
/**
|
|
1685
|
+
* **Edit mode**
|
|
1686
|
+
* <br/>
|
|
1687
|
+
* Specifies that cells in the column will be edited as a currency amount.
|
|
1688
|
+
* <br/><br/>
|
|
1689
|
+
* **Read-only mode**
|
|
1690
|
+
* <br/>
|
|
1691
|
+
* Formats the display as currency using [SKY UX numeric components](https://developer.blackbaud.com/skyux/components/numeric).
|
|
1692
|
+
*/
|
|
1651
1693
|
SkyCellType["Currency"] = "skyCellCurrency";
|
|
1694
|
+
/**
|
|
1695
|
+
* **Edit and read-only modes**
|
|
1696
|
+
* <br/>
|
|
1697
|
+
* Combines SkyCellType.Currency and SkyCellType.Validator, where the value is displayed as a currency and passed to a validator function.
|
|
1698
|
+
*/
|
|
1652
1699
|
SkyCellType["CurrencyValidator"] = "skyCellCurrencyValidator";
|
|
1700
|
+
/**
|
|
1701
|
+
* **Edit mode**
|
|
1702
|
+
* <br/>
|
|
1703
|
+
* Specifies that cells in the column will be edited as [SKY UX datepicker components](https://developer.blackbaud.com/skyux/components/datepicker). You can set any of the datepicker component's properties by passing them in the [column definition's `cellEditorParams` property](https://www.ag-grid.com/javascript-grid-column-properties/). These params can be updated as other cell edits are made or [provided dynamically](https://www.ag-grid.com/javascript-grid-cell-editing/#dynamic-parameters) based on other cell values. See the demo for an example. Date values can be entered.
|
|
1704
|
+
* <br/><br/>
|
|
1705
|
+
* **Read-only mode**
|
|
1706
|
+
* <br/>
|
|
1707
|
+
* Specifies that cells in the column will display the currently selected date formatted as `MM-DD-YYYY`, or the date format of the locale passed to `getGridOptions()`. If you would like to overwrite this format, you can [define a `valueFormatter`](https://www.ag-grid.com/javascript-grid-value-formatters/) on the column definition. See the demo for an example.
|
|
1708
|
+
*/
|
|
1653
1709
|
SkyCellType["Date"] = "skyCellDate";
|
|
1654
1710
|
SkyCellType["Lookup"] = "skyCellLookup";
|
|
1711
|
+
/**
|
|
1712
|
+
* **Edit mode**
|
|
1713
|
+
* <br/>
|
|
1714
|
+
* Specifies that cells in the column will be edited as HTML number `inputs`. Only numbers can be entered.
|
|
1715
|
+
* <br/><br/>
|
|
1716
|
+
* **Read-only mode**
|
|
1717
|
+
* <br/>
|
|
1718
|
+
* Specifies that cells in the column will render as the number value.
|
|
1719
|
+
*/
|
|
1655
1720
|
SkyCellType["Number"] = "skyCellNumber";
|
|
1721
|
+
/**
|
|
1722
|
+
* **Edit and read-only modes**
|
|
1723
|
+
* <br/>
|
|
1724
|
+
* Combines SkyCellType.Number and SkyCellType.Validator, where the value is displayed as a number and passed to a validator function.
|
|
1725
|
+
*/
|
|
1656
1726
|
SkyCellType["NumberValidator"] = "skyCellNumberValidator";
|
|
1727
|
+
/**
|
|
1728
|
+
* **Edit and read-only modes**
|
|
1729
|
+
* <br/>
|
|
1730
|
+
* Specifies that cells in the column will render as [SKY UX checkbox components](https://developer.blackbaud.com/skyux/components/checkbox). It allows the user to select multiple rows, and adds a highlight to selected rows. The [Ag Grid `rowNode`](https://www.ag-grid.com/javascript-grid-row-node/) will be updated to reflect the selected state.
|
|
1731
|
+
*/
|
|
1657
1732
|
SkyCellType["RowSelector"] = "skyCellRowSelector";
|
|
1733
|
+
/**
|
|
1734
|
+
* **Edit mode**
|
|
1735
|
+
* <br/>
|
|
1736
|
+
* Specifies that cells in the column will be edited as HTML text `inputs`. Any characters can be entered.
|
|
1737
|
+
* <br/><br/>
|
|
1738
|
+
* **Read-only mode**
|
|
1739
|
+
* <br/>
|
|
1740
|
+
* Specifies cells in the column will render as their string value.
|
|
1741
|
+
*/
|
|
1658
1742
|
SkyCellType["Text"] = "skyCellText";
|
|
1743
|
+
/**
|
|
1744
|
+
* **Edit and read-only modes**
|
|
1745
|
+
* <br/>
|
|
1746
|
+
* Specifies cell in the column will be passed to a validator function which flags erroneous entries. You can set the validator function and message by passing them to [column definition's `cellRendererParams` property](https://www.ag-grid.com/javascript-grid-column-properties/) as `skyComponentProperties.validator` and `skyComponentProperties.validatorMessage`. SkyCellType.Validator can be combined with other cell types, such as SkyCellType.Autocomplete or SkyCellType.Date, by using the array syntax for the [column definition's `type` property](https://www.ag-grid.com/javascript-grid-column-properties/).
|
|
1747
|
+
*/
|
|
1659
1748
|
SkyCellType["Validator"] = "skyCellValidator";
|
|
1660
1749
|
})(SkyCellType || (SkyCellType = {}));
|
|
1661
1750
|
|
|
1751
|
+
/**
|
|
1752
|
+
* @internal
|
|
1753
|
+
*/
|
|
1662
1754
|
var SkyHeaderClass;
|
|
1663
1755
|
(function (SkyHeaderClass) {
|
|
1664
1756
|
SkyHeaderClass["RightAligned"] = "sky-ag-grid-header-right-aligned";
|
|
@@ -1702,11 +1794,12 @@ function dateComparator(date1, date2) {
|
|
|
1702
1794
|
function getValidatorCellRendererSelector(component, fallback) {
|
|
1703
1795
|
return (params) => {
|
|
1704
1796
|
var _a, _b;
|
|
1705
|
-
if (params.colDef &&
|
|
1797
|
+
if (params.colDef &&
|
|
1798
|
+
typeof ((_b = (_a = params.colDef.cellRendererParams) === null || _a === void 0 ? void 0 : _a.skyComponentProperties) === null || _b === void 0 ? void 0 : _b.validator) === 'function') {
|
|
1706
1799
|
if (!params.colDef.cellRendererParams.skyComponentProperties.validator(params.value, params.data, params.rowIndex)) {
|
|
1707
1800
|
return {
|
|
1708
1801
|
component,
|
|
1709
|
-
params: Object.assign({}, params.colDef.cellRendererParams)
|
|
1802
|
+
params: Object.assign({}, params.colDef.cellRendererParams),
|
|
1710
1803
|
};
|
|
1711
1804
|
}
|
|
1712
1805
|
}
|
|
@@ -1715,7 +1808,7 @@ function getValidatorCellRendererSelector(component, fallback) {
|
|
|
1715
1808
|
}
|
|
1716
1809
|
let rowNodeId = 1;
|
|
1717
1810
|
/**
|
|
1718
|
-
*
|
|
1811
|
+
* `SkyAgGridService` provides methods to get AG Grid `gridOptions` to ensure grids match SKY UX functionality. The `gridOptions` can be overridden, and include registered SKY UX column types.
|
|
1719
1812
|
*/
|
|
1720
1813
|
class SkyAgGridService {
|
|
1721
1814
|
constructor(agGridAdapterService, themeSvc, resources) {
|
|
@@ -1727,7 +1820,7 @@ class SkyAgGridService {
|
|
|
1727
1820
|
if (this.themeSvc) {
|
|
1728
1821
|
this.themeSvc.settingsChange
|
|
1729
1822
|
.pipe(takeUntil(this.ngUnsubscribe))
|
|
1730
|
-
.subscribe(settingsChange => this.currentTheme = settingsChange.currentSettings);
|
|
1823
|
+
.subscribe((settingsChange) => (this.currentTheme = settingsChange.currentSettings));
|
|
1731
1824
|
}
|
|
1732
1825
|
}
|
|
1733
1826
|
ngOnDestroy() {
|
|
@@ -1735,14 +1828,20 @@ class SkyAgGridService {
|
|
|
1735
1828
|
this.ngUnsubscribe.complete();
|
|
1736
1829
|
}
|
|
1737
1830
|
/**
|
|
1738
|
-
*
|
|
1739
|
-
* @param args
|
|
1831
|
+
* Returns [AG Grid `gridOptions`](https://www.ag-grid.com/javascript-grid-properties/) with default SKY UX options, styling, and cell renderers registered for read-only grids.
|
|
1832
|
+
* @param args
|
|
1833
|
+
* @returns
|
|
1740
1834
|
*/
|
|
1741
1835
|
getGridOptions(args) {
|
|
1742
1836
|
const defaultGridOptions = this.getDefaultGridOptions(args);
|
|
1743
1837
|
const mergedGridOptions = this.mergeGridOptions(defaultGridOptions, args.gridOptions);
|
|
1744
1838
|
return mergedGridOptions;
|
|
1745
1839
|
}
|
|
1840
|
+
/**
|
|
1841
|
+
* Returns [AG Grid `gridOptions`](https://www.ag-grid.com/javascript-grid-properties/) with default SKY UX options, styling, and cell editors registered for editable grids.
|
|
1842
|
+
* @param args
|
|
1843
|
+
* @returns
|
|
1844
|
+
*/
|
|
1746
1845
|
getEditableGridOptions(args) {
|
|
1747
1846
|
const defaultGridOptions = this.getDefaultEditableGridOptions(args);
|
|
1748
1847
|
const mergedGridOptions = this.mergeGridOptions(defaultGridOptions, args.gridOptions);
|
|
@@ -1770,19 +1869,20 @@ class SkyAgGridService {
|
|
|
1770
1869
|
}
|
|
1771
1870
|
const editableCellClassRules = {
|
|
1772
1871
|
[SkyCellClass.Editable]: getEditableFn(),
|
|
1773
|
-
[SkyCellClass.Uneditable]: getEditableFn(true)
|
|
1872
|
+
[SkyCellClass.Uneditable]: getEditableFn(true),
|
|
1774
1873
|
};
|
|
1775
1874
|
function getValidatorFn() {
|
|
1776
1875
|
return function (param) {
|
|
1777
1876
|
var _a, _b;
|
|
1778
|
-
if (param.colDef &&
|
|
1877
|
+
if (param.colDef &&
|
|
1878
|
+
typeof ((_b = (_a = param.colDef.cellRendererParams) === null || _a === void 0 ? void 0 : _a.skyComponentProperties) === null || _b === void 0 ? void 0 : _b.validator) === 'function') {
|
|
1779
1879
|
return !param.colDef.cellRendererParams.skyComponentProperties.validator(param.value, param.data, param.rowIndex);
|
|
1780
1880
|
}
|
|
1781
1881
|
return false;
|
|
1782
1882
|
};
|
|
1783
1883
|
}
|
|
1784
1884
|
const validatorCellClassRules = {
|
|
1785
|
-
[SkyCellClass.Invalid]: getValidatorFn()
|
|
1885
|
+
[SkyCellClass.Invalid]: getValidatorFn(),
|
|
1786
1886
|
};
|
|
1787
1887
|
const defaultSkyGridOptions = {
|
|
1788
1888
|
columnTypes: {
|
|
@@ -1791,21 +1891,21 @@ class SkyAgGridService {
|
|
|
1791
1891
|
cellEditorFramework: SkyAgGridCellEditorAutocompleteComponent,
|
|
1792
1892
|
valueFormatter: autocompleteFormatter,
|
|
1793
1893
|
comparator: autocompleteComparator,
|
|
1794
|
-
minWidth: 185
|
|
1894
|
+
minWidth: 185,
|
|
1795
1895
|
},
|
|
1796
1896
|
[SkyCellType.Currency]: {
|
|
1797
1897
|
cellClassRules: Object.assign(Object.assign({ [SkyCellClass.Currency]: cellClassRuleTrueExpression }, validatorCellClassRules), editableCellClassRules),
|
|
1798
1898
|
cellRendererSelector: getValidatorCellRendererSelector('sky-ag-grid-cell-renderer-currency-validator', { component: 'sky-ag-grid-cell-renderer-currency' }),
|
|
1799
1899
|
cellEditorFramework: SkyAgGridCellEditorCurrencyComponent,
|
|
1800
1900
|
headerClass: SkyHeaderClass.RightAligned,
|
|
1801
|
-
minWidth: 185
|
|
1901
|
+
minWidth: 185,
|
|
1802
1902
|
},
|
|
1803
1903
|
[SkyCellType.Date]: {
|
|
1804
1904
|
cellClassRules: Object.assign({ [SkyCellClass.Date]: cellClassRuleTrueExpression }, editableCellClassRules),
|
|
1805
1905
|
cellEditorFramework: SkyAgGridCellEditorDatepickerComponent,
|
|
1806
1906
|
comparator: dateComparator,
|
|
1807
1907
|
minWidth: ((_b = (_a = this.currentTheme) === null || _a === void 0 ? void 0 : _a.theme) === null || _b === void 0 ? void 0 : _b.name) === 'modern' ? 180 : 160,
|
|
1808
|
-
valueFormatter: (params) => this.dateFormatter(params, args.locale)
|
|
1908
|
+
valueFormatter: (params) => this.dateFormatter(params, args.locale),
|
|
1809
1909
|
},
|
|
1810
1910
|
[SkyCellType.Lookup]: {
|
|
1811
1911
|
cellClassRules: Object.assign({ [SkyCellClass.Lookup]: cellClassRuleTrueExpression }, editableCellClassRules),
|
|
@@ -1820,47 +1920,47 @@ class SkyAgGridService {
|
|
|
1820
1920
|
.filter((value) => value !== '' && value !== undefined)
|
|
1821
1921
|
.join('; ');
|
|
1822
1922
|
},
|
|
1823
|
-
minWidth: 185
|
|
1923
|
+
minWidth: 185,
|
|
1824
1924
|
},
|
|
1825
1925
|
[SkyCellType.Number]: {
|
|
1826
1926
|
cellClassRules: Object.assign({ [SkyCellClass.Number]: cellClassRuleTrueExpression }, editableCellClassRules),
|
|
1827
1927
|
cellEditorFramework: SkyAgGridCellEditorNumberComponent,
|
|
1828
|
-
headerClass: SkyHeaderClass.RightAligned
|
|
1928
|
+
headerClass: SkyHeaderClass.RightAligned,
|
|
1829
1929
|
},
|
|
1830
1930
|
[SkyCellType.RowSelector]: {
|
|
1831
1931
|
cellClassRules: {
|
|
1832
1932
|
[SkyCellClass.RowSelector]: cellClassRuleTrueExpression,
|
|
1833
|
-
[SkyCellClass.Uneditable]: cellClassRuleTrueExpression
|
|
1933
|
+
[SkyCellClass.Uneditable]: cellClassRuleTrueExpression,
|
|
1834
1934
|
},
|
|
1835
1935
|
cellRendererFramework: SkyAgGridCellRendererRowSelectorComponent,
|
|
1836
1936
|
headerName: '',
|
|
1837
1937
|
minWidth: 55,
|
|
1838
1938
|
maxWidth: 55,
|
|
1839
1939
|
sortable: false,
|
|
1840
|
-
width: 55
|
|
1940
|
+
width: 55,
|
|
1841
1941
|
},
|
|
1842
1942
|
[SkyCellType.Text]: {
|
|
1843
1943
|
cellClassRules: Object.assign({ [SkyCellClass.Text]: cellClassRuleTrueExpression }, editableCellClassRules),
|
|
1844
|
-
cellEditorFramework: SkyAgGridCellEditorTextComponent
|
|
1944
|
+
cellEditorFramework: SkyAgGridCellEditorTextComponent,
|
|
1845
1945
|
},
|
|
1846
1946
|
[SkyCellType.Validator]: {
|
|
1847
1947
|
cellClassRules: Object.assign(Object.assign({}, validatorCellClassRules), editableCellClassRules),
|
|
1848
|
-
cellRendererSelector: getValidatorCellRendererSelector('sky-ag-grid-cell-renderer-validator-tooltip')
|
|
1849
|
-
}
|
|
1948
|
+
cellRendererSelector: getValidatorCellRendererSelector('sky-ag-grid-cell-renderer-validator-tooltip'),
|
|
1949
|
+
},
|
|
1850
1950
|
},
|
|
1851
1951
|
defaultColDef: {
|
|
1852
1952
|
cellClassRules: editableCellClassRules,
|
|
1853
1953
|
minWidth: 100,
|
|
1854
1954
|
resizable: true,
|
|
1855
1955
|
sortable: true,
|
|
1856
|
-
suppressKeyboardEvent: (keypress) => this.suppressTab(keypress)
|
|
1956
|
+
suppressKeyboardEvent: (keypress) => this.suppressTab(keypress),
|
|
1857
1957
|
},
|
|
1858
1958
|
domLayout: 'autoHeight',
|
|
1859
1959
|
enterMovesDownAfterEdit: true,
|
|
1860
1960
|
frameworkComponents: {
|
|
1861
1961
|
'sky-ag-grid-cell-renderer-currency': SkyAgGridCellRendererCurrencyComponent,
|
|
1862
1962
|
'sky-ag-grid-cell-renderer-currency-validator': SkyAgGridCellRendererCurrencyValidatorComponent,
|
|
1863
|
-
'sky-ag-grid-cell-renderer-validator-tooltip': SkyAgGridCellRendererValidatorTooltipComponent
|
|
1963
|
+
'sky-ag-grid-cell-renderer-validator-tooltip': SkyAgGridCellRendererValidatorTooltipComponent,
|
|
1864
1964
|
},
|
|
1865
1965
|
getRowNodeId(data) {
|
|
1866
1966
|
if ('id' in data && data.id) {
|
|
@@ -1884,7 +1984,7 @@ class SkyAgGridService {
|
|
|
1884
1984
|
columnMoveHide: this.getIconTemplate('arrows'),
|
|
1885
1985
|
columnMoveLeft: this.getIconTemplate('arrows'),
|
|
1886
1986
|
columnMoveRight: this.getIconTemplate('arrows'),
|
|
1887
|
-
columnMovePin: this.getIconTemplate('arrows')
|
|
1987
|
+
columnMovePin: this.getIconTemplate('arrows'),
|
|
1888
1988
|
},
|
|
1889
1989
|
onCellFocused: () => this.onCellFocused(),
|
|
1890
1990
|
rowHeight: ((_f = (_e = this.currentTheme) === null || _e === void 0 ? void 0 : _e.theme) === null || _f === void 0 ? void 0 : _f.name) === 'modern' ? 60 : 38,
|
|
@@ -1895,33 +1995,38 @@ class SkyAgGridService {
|
|
|
1895
1995
|
sortingOrder: ['desc', 'asc', null],
|
|
1896
1996
|
stopEditingWhenGridLosesFocus: false,
|
|
1897
1997
|
suppressRowClickSelection: true,
|
|
1898
|
-
suppressDragLeaveHidesColumns: true
|
|
1998
|
+
suppressDragLeaveHidesColumns: true,
|
|
1899
1999
|
};
|
|
1900
2000
|
defaultSkyGridOptions.columnTypes[SkyCellType.CurrencyValidator] = Object.assign(Object.assign({}, defaultSkyGridOptions.columnTypes[SkyCellType.Currency]), { cellRendererParams: {
|
|
1901
2001
|
skyComponentProperties: {
|
|
1902
2002
|
validator: (value, data, rowIndex) => {
|
|
1903
2003
|
return !!`${value || ''}`.match(/^[^0-9]*(\d+[,.]?)+\d*[^0-9]*$/);
|
|
1904
2004
|
},
|
|
1905
|
-
validatorMessage: 'Please enter a valid currency'
|
|
1906
|
-
}
|
|
2005
|
+
validatorMessage: 'Please enter a valid currency',
|
|
2006
|
+
},
|
|
1907
2007
|
} });
|
|
1908
2008
|
/*istanbul ignore else*/
|
|
1909
2009
|
if (this.resources) {
|
|
1910
|
-
this.resources
|
|
2010
|
+
this.resources
|
|
2011
|
+
.getString('sky_ag_grid_cell_renderer_currency_validator_message')
|
|
2012
|
+
.subscribe((value) => {
|
|
1911
2013
|
defaultSkyGridOptions.columnTypes[SkyCellType.CurrencyValidator].cellRendererParams.skyComponentProperties.validatorMessage = value;
|
|
1912
2014
|
});
|
|
1913
2015
|
}
|
|
1914
|
-
defaultSkyGridOptions.columnTypes[SkyCellType.NumberValidator] = Object.assign(Object.assign(Object.assign({}, defaultSkyGridOptions.columnTypes[SkyCellType.Validator]), defaultSkyGridOptions.columnTypes[SkyCellType.Number]), { cellClassRules: Object.assign(Object.assign({}, defaultSkyGridOptions.columnTypes[SkyCellType.Validator]
|
|
2016
|
+
defaultSkyGridOptions.columnTypes[SkyCellType.NumberValidator] = Object.assign(Object.assign(Object.assign({}, defaultSkyGridOptions.columnTypes[SkyCellType.Validator]), defaultSkyGridOptions.columnTypes[SkyCellType.Number]), { cellClassRules: Object.assign(Object.assign({}, defaultSkyGridOptions.columnTypes[SkyCellType.Validator]
|
|
2017
|
+
.cellClassRules), defaultSkyGridOptions.columnTypes[SkyCellType.Number].cellClassRules), cellRendererParams: {
|
|
1915
2018
|
skyComponentProperties: {
|
|
1916
2019
|
validator: (value, data, rowIndex) => {
|
|
1917
2020
|
return !!value && !isNaN(parseFloat(value));
|
|
1918
2021
|
},
|
|
1919
|
-
validatorMessage: 'Please enter a valid number'
|
|
1920
|
-
}
|
|
2022
|
+
validatorMessage: 'Please enter a valid number',
|
|
2023
|
+
},
|
|
1921
2024
|
} });
|
|
1922
2025
|
/*istanbul ignore else*/
|
|
1923
2026
|
if (this.resources) {
|
|
1924
|
-
this.resources
|
|
2027
|
+
this.resources
|
|
2028
|
+
.getString('sky_ag_grid_cell_renderer_number_validator_message')
|
|
2029
|
+
.subscribe((value) => {
|
|
1925
2030
|
defaultSkyGridOptions.columnTypes[SkyCellType.NumberValidator].cellRendererParams.skyComponentProperties.validatorMessage = value;
|
|
1926
2031
|
});
|
|
1927
2032
|
}
|
|
@@ -1942,8 +2047,9 @@ class SkyAgGridService {
|
|
|
1942
2047
|
if (date && typeof date === 'string') {
|
|
1943
2048
|
date = new Date(params.value);
|
|
1944
2049
|
}
|
|
1945
|
-
|
|
1946
|
-
|
|
2050
|
+
let formattedDate = date &&
|
|
2051
|
+
date.toLocaleDateString &&
|
|
2052
|
+
date.toLocaleDateString(locale, dateConfig);
|
|
1947
2053
|
if (date && date.getTime && !isNaN(date.getTime())) {
|
|
1948
2054
|
return formattedDate;
|
|
1949
2055
|
}
|
|
@@ -1967,12 +2073,12 @@ class SkyAgGridService {
|
|
|
1967
2073
|
return false;
|
|
1968
2074
|
}
|
|
1969
2075
|
}
|
|
1970
|
-
SkyAgGridService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
1971
|
-
SkyAgGridService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
1972
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
2076
|
+
SkyAgGridService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SkyAgGridService, deps: [{ token: SkyAgGridAdapterService }, { token: i1$3.SkyThemeService, optional: true }, { token: i3.SkyLibResourcesService, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2077
|
+
SkyAgGridService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SkyAgGridService, providedIn: 'root' });
|
|
2078
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SkyAgGridService, decorators: [{
|
|
1973
2079
|
type: Injectable,
|
|
1974
2080
|
args: [{
|
|
1975
|
-
providedIn: 'root'
|
|
2081
|
+
providedIn: 'root',
|
|
1976
2082
|
}]
|
|
1977
2083
|
}], ctorParameters: function () { return [{ type: SkyAgGridAdapterService }, { type: i1$3.SkyThemeService, decorators: [{
|
|
1978
2084
|
type: Optional
|