@skyux/ag-grid 5.1.0 → 5.1.4
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 +485 -364
- package/bundles/skyux-ag-grid.umd.js.map +1 -1
- package/documentation.json +125 -5785
- 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 +36 -26
- 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 +66 -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 +15 -9
- 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 +487 -363
- 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
|
@@ -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.14", ngImport: i0, type: SkyAgGridAdapterService, deps: [{ token: i1.SkyCoreAdapterService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
76
|
+
SkyAgGridAdapterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyAgGridAdapterService, providedIn: 'root' });
|
|
77
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", 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.14", 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.14", 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.14", 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.14", ngImport: i0, type: SkyAgGridCellEditorAutocompleteComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
196
|
+
SkyAgGridCellEditorAutocompleteComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.14", 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.14", 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.11", 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.14", ngImport: i0, type: AgGridResourcesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
253
|
+
AgGridResourcesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: AgGridResourcesModule, exports: [SkyI18nModule] });
|
|
254
|
+
AgGridResourcesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.14", 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.14", 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.11", ngImport: i0, type: SkyAgGridCellEditorAutocompleteModule, imports: [[
|
|
242
|
-
FormsModule,
|
|
243
|
-
AgGridResourcesModule,
|
|
244
|
-
SkyAutocompleteModule
|
|
245
|
-
]] });
|
|
246
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0, type: SkyAgGridCellEditorAutocompleteModule, decorators: [{
|
|
277
|
+
SkyAgGridCellEditorAutocompleteModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyAgGridCellEditorAutocompleteModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
278
|
+
SkyAgGridCellEditorAutocompleteModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyAgGridCellEditorAutocompleteModule, declarations: [SkyAgGridCellEditorAutocompleteComponent], imports: [FormsModule, AgGridResourcesModule, SkyAutocompleteModule], exports: [SkyAgGridCellEditorAutocompleteComponent] });
|
|
279
|
+
SkyAgGridCellEditorAutocompleteModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyAgGridCellEditorAutocompleteModule, imports: [[FormsModule, AgGridResourcesModule, SkyAutocompleteModule]] });
|
|
280
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", 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.14", 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.14", 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"] }], 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.14", 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.11", 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.11", ngImport: i0, type: SkyAgGridCellEditorDatepickerModule, decorators: [{
|
|
361
|
+
SkyAgGridCellEditorDatepickerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyAgGridCellEditorDatepickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
362
|
+
SkyAgGridCellEditorDatepickerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyAgGridCellEditorDatepickerModule, declarations: [SkyAgGridCellEditorDatepickerComponent], imports: [SkyDatepickerModule, FormsModule], exports: [SkyAgGridCellEditorDatepickerComponent] });
|
|
363
|
+
SkyAgGridCellEditorDatepickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyAgGridCellEditorDatepickerModule, imports: [[SkyDatepickerModule, FormsModule]] });
|
|
364
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", 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.14", 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.14", 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.14", 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.14", ngImport: i0, type: SkyAgGridCellEditorLookupModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
462
|
+
SkyAgGridCellEditorLookupModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.14", 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.14", 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.14", 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.11", 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.14", ngImport: i0, type: SkyAgGridCellEditorNumberComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
520
|
+
SkyAgGridCellEditorNumberComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.14", 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.14", 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.11", 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.11", ngImport: i0, type: SkyAgGridCellEditorNumberModule, decorators: [{
|
|
536
|
+
SkyAgGridCellEditorNumberModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyAgGridCellEditorNumberModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
537
|
+
SkyAgGridCellEditorNumberModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyAgGridCellEditorNumberModule, declarations: [SkyAgGridCellEditorNumberComponent], imports: [AgGridResourcesModule, FormsModule], exports: [SkyAgGridCellEditorNumberComponent] });
|
|
538
|
+
SkyAgGridCellEditorNumberModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyAgGridCellEditorNumberModule, imports: [[AgGridResourcesModule, FormsModule]] });
|
|
539
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", 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.14", ngImport: i0, type: SkyAgGridCellEditorTextComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
579
|
+
SkyAgGridCellEditorTextComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.14", 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.14", 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.11", 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.11", ngImport: i0, type: SkyAgGridCellEditorTextModule, decorators: [{
|
|
595
|
+
SkyAgGridCellEditorTextModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyAgGridCellEditorTextModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
596
|
+
SkyAgGridCellEditorTextModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyAgGridCellEditorTextModule, declarations: [SkyAgGridCellEditorTextComponent], imports: [AgGridResourcesModule, FormsModule], exports: [SkyAgGridCellEditorTextComponent] });
|
|
597
|
+
SkyAgGridCellEditorTextModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyAgGridCellEditorTextModule, imports: [[AgGridResourcesModule, FormsModule]] });
|
|
598
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", 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,10 +637,12 @@ 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
|
}
|
|
@@ -652,20 +665,23 @@ class SkyAgGridCellValidatorTooltipComponent {
|
|
|
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.14", 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.14", 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.14", 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.14", ngImport: i0, type: SkyAgGridCellRendererCurrencyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
719
|
+
SkyAgGridCellRendererCurrencyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.14", 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.14", 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.14", ngImport: i0, type: SkyAgGridCellRendererCurrencyValidatorComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
758
|
+
SkyAgGridCellRendererCurrencyValidatorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.14", 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.14", 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.14", ngImport: i0, type: SkyAgGridCellRendererLookupComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
789
|
+
SkyAgGridCellRendererLookupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.14", 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.14", 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.14", ngImport: i0, type: SkyAgGridCellRendererLookupModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
803
|
+
SkyAgGridCellRendererLookupModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyAgGridCellRendererLookupModule, declarations: [SkyAgGridCellRendererLookupComponent], imports: [CommonModule, AgGridResourcesModule], exports: [SkyAgGridCellRendererLookupComponent] });
|
|
804
|
+
SkyAgGridCellRendererLookupModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyAgGridCellRendererLookupModule, imports: [[CommonModule, AgGridResourcesModule]] });
|
|
805
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", 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.14", ngImport: i0, type: SkyAgGridCellRendererRowSelectorComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
864
|
+
SkyAgGridCellRendererRowSelectorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.14", 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.14", 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.11", ngImport: i0, type: SkyAgGridCellRendererRowSelectorModule, imports: [[
|
|
860
|
-
AgGridResourcesModule,
|
|
861
|
-
SkyCheckboxModule,
|
|
862
|
-
FormsModule
|
|
863
|
-
]] });
|
|
864
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0, type: SkyAgGridCellRendererRowSelectorModule, decorators: [{
|
|
878
|
+
SkyAgGridCellRendererRowSelectorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyAgGridCellRendererRowSelectorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
879
|
+
SkyAgGridCellRendererRowSelectorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyAgGridCellRendererRowSelectorModule, declarations: [SkyAgGridCellRendererRowSelectorComponent], imports: [AgGridResourcesModule, SkyCheckboxModule, FormsModule], exports: [SkyAgGridCellRendererRowSelectorComponent] });
|
|
880
|
+
SkyAgGridCellRendererRowSelectorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyAgGridCellRendererRowSelectorModule, imports: [[AgGridResourcesModule, SkyCheckboxModule, FormsModule]] });
|
|
881
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", 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.14", 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.14", 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.14", 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.11", 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.11", ngImport: i0, type: SkyAgGridCellValidatorModule, imports: [[
|
|
1066
|
-
CommonModule,
|
|
1067
|
-
SkyPopoverModule,
|
|
1068
|
-
SkyStatusIndicatorModule
|
|
1069
|
-
]] });
|
|
1070
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0, type: SkyAgGridCellValidatorModule, decorators: [{
|
|
1096
|
+
SkyAgGridCellValidatorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyAgGridCellValidatorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1097
|
+
SkyAgGridCellValidatorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyAgGridCellValidatorModule, declarations: [SkyAgGridCellValidatorTooltipComponent], imports: [CommonModule, SkyPopoverModule, SkyStatusIndicatorModule], exports: [SkyAgGridCellValidatorTooltipComponent] });
|
|
1098
|
+
SkyAgGridCellValidatorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyAgGridCellValidatorModule, imports: [[CommonModule, SkyPopoverModule, SkyStatusIndicatorModule]] });
|
|
1099
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", 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.14", ngImport: i0, type: SkyAgGridCellRendererCurrencyModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1111
|
+
SkyAgGridCellRendererCurrencyModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.14", 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.14", 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.14", 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.11", 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.11", 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.14", ngImport: i0, type: SkyAgGridRowDeleteComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1153
|
+
SkyAgGridRowDeleteComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.14", 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.14", 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.11", 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.11", 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.11", 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,24 +1348,27 @@ 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
|
-
let rowElement = this.elementRef.nativeElement.querySelector(
|
|
1368
|
+
let rowElement = this.elementRef.nativeElement.querySelector(`
|
|
1369
|
+
[row-id="${id}"] div[aria-colindex="1"],
|
|
1370
|
+
.ag-row.sky-ag-grid-row-${id} div[aria-colindex="1"]
|
|
1371
|
+
`);
|
|
1341
1372
|
// This covers cases where AG Grid places the column index on an inner element (such as with the `enableCellTextSelection` option)
|
|
1342
1373
|
// This appears to have been fixed by AG Grid in version 24 and so it is not testable after that version.
|
|
1343
1374
|
/* istanbul ignore if */
|
|
@@ -1356,7 +1387,7 @@ class SkyAgGridRowDeleteDirective {
|
|
|
1356
1387
|
placement: 'above',
|
|
1357
1388
|
verticalAlignment: 'top',
|
|
1358
1389
|
horizontalAlignment: 'left',
|
|
1359
|
-
enableAutoFit: false
|
|
1390
|
+
enableAutoFit: false,
|
|
1360
1391
|
});
|
|
1361
1392
|
}
|
|
1362
1393
|
destroyRowDelete(id) {
|
|
@@ -1368,8 +1399,8 @@ class SkyAgGridRowDeleteDirective {
|
|
|
1368
1399
|
rowDeleteContents.affixer.destroy();
|
|
1369
1400
|
this.overlayService.close(rowDeleteContents.overlay);
|
|
1370
1401
|
delete this.rowDeleteContents[id];
|
|
1371
|
-
this.rowDeleteConfigs = this.rowDeleteConfigs.filter(config => config.id !== id);
|
|
1372
|
-
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);
|
|
1373
1404
|
this.rowDeleteIdsChange.emit(this._rowDeleteIds);
|
|
1374
1405
|
}
|
|
1375
1406
|
}
|
|
@@ -1387,12 +1418,12 @@ class SkyAgGridRowDeleteDirective {
|
|
|
1387
1418
|
this.changeDetector.markForCheck();
|
|
1388
1419
|
}
|
|
1389
1420
|
}
|
|
1390
|
-
SkyAgGridRowDeleteDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
1391
|
-
SkyAgGridRowDeleteDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.
|
|
1392
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
1421
|
+
SkyAgGridRowDeleteDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", 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.14", 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.14", ngImport: i0, type: SkyAgGridRowDeleteDirective, decorators: [{
|
|
1393
1424
|
type: Directive,
|
|
1394
1425
|
args: [{
|
|
1395
|
-
selector: '[skyAgGridRowDelete]'
|
|
1426
|
+
selector: '[skyAgGridRowDelete]',
|
|
1396
1427
|
}]
|
|
1397
1428
|
}], ctorParameters: function () { return [{ type: i1.SkyAffixService }, { type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.ComponentFactoryResolver }, { type: i1.SkyOverlayService }, { type: i0.ViewContainerRef }]; }, propDecorators: { rowDeleteIds: [{
|
|
1398
1429
|
type: Input
|
|
@@ -1407,6 +1438,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.11", ngImpo
|
|
|
1407
1438
|
args: [AgGridAngular]
|
|
1408
1439
|
}] } });
|
|
1409
1440
|
|
|
1441
|
+
/**
|
|
1442
|
+
* @internal
|
|
1443
|
+
*/
|
|
1410
1444
|
class SkyAgGridCellEditorCurrencyComponent {
|
|
1411
1445
|
constructor() {
|
|
1412
1446
|
this.skyComponentProperties = {};
|
|
@@ -1421,8 +1455,12 @@ class SkyAgGridCellEditorCurrencyComponent {
|
|
|
1421
1455
|
this.columnHeader = this.params.colDef.headerName;
|
|
1422
1456
|
this.rowNumber = this.params.rowIndex + 1;
|
|
1423
1457
|
this.columnWidth = this.params.column.getActualWidth();
|
|
1424
|
-
this.rowHeightWithoutBorders =
|
|
1425
|
-
|
|
1458
|
+
this.rowHeightWithoutBorders =
|
|
1459
|
+
this.params.node && this.params.node.rowHeight - 4;
|
|
1460
|
+
this.skyComponentProperties = this.params.skyComponentProperties || {
|
|
1461
|
+
decimalPlaces: 2,
|
|
1462
|
+
currencySymbol: '$',
|
|
1463
|
+
};
|
|
1426
1464
|
}
|
|
1427
1465
|
/**
|
|
1428
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.
|
|
@@ -1437,15 +1475,15 @@ class SkyAgGridCellEditorCurrencyComponent {
|
|
|
1437
1475
|
return this.value;
|
|
1438
1476
|
}
|
|
1439
1477
|
}
|
|
1440
|
-
SkyAgGridCellEditorCurrencyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
1441
|
-
SkyAgGridCellEditorCurrencyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
1442
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
1478
|
+
SkyAgGridCellEditorCurrencyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyAgGridCellEditorCurrencyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1479
|
+
SkyAgGridCellEditorCurrencyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.14", 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.14", ngImport: i0, type: SkyAgGridCellEditorCurrencyComponent, decorators: [{
|
|
1443
1481
|
type: Component,
|
|
1444
1482
|
args: [{
|
|
1445
1483
|
selector: 'sky-ag-grid-cell-editor-currency',
|
|
1446
1484
|
templateUrl: './cell-editor-currency.component.html',
|
|
1447
1485
|
styleUrls: ['./cell-editor-currency.component.scss'],
|
|
1448
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
1486
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1449
1487
|
}]
|
|
1450
1488
|
}], propDecorators: { input: [{
|
|
1451
1489
|
type: ViewChild,
|
|
@@ -1454,32 +1492,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.11", ngImpo
|
|
|
1454
1492
|
|
|
1455
1493
|
class SkyAgGridCellEditorCurrencyModule {
|
|
1456
1494
|
}
|
|
1457
|
-
SkyAgGridCellEditorCurrencyModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
1458
|
-
SkyAgGridCellEditorCurrencyModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
SkyAgGridCellEditorCurrencyModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0, type: SkyAgGridCellEditorCurrencyModule, imports: [[
|
|
1462
|
-
AgGridResourcesModule,
|
|
1463
|
-
FormsModule,
|
|
1464
|
-
SkyAutonumericModule
|
|
1465
|
-
]] });
|
|
1466
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0, type: SkyAgGridCellEditorCurrencyModule, decorators: [{
|
|
1495
|
+
SkyAgGridCellEditorCurrencyModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyAgGridCellEditorCurrencyModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1496
|
+
SkyAgGridCellEditorCurrencyModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyAgGridCellEditorCurrencyModule, declarations: [SkyAgGridCellEditorCurrencyComponent], imports: [AgGridResourcesModule, FormsModule, SkyAutonumericModule], exports: [SkyAgGridCellEditorCurrencyComponent] });
|
|
1497
|
+
SkyAgGridCellEditorCurrencyModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyAgGridCellEditorCurrencyModule, imports: [[AgGridResourcesModule, FormsModule, SkyAutonumericModule]] });
|
|
1498
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyAgGridCellEditorCurrencyModule, decorators: [{
|
|
1467
1499
|
type: NgModule,
|
|
1468
1500
|
args: [{
|
|
1469
|
-
imports: [
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
SkyAutonumericModule
|
|
1473
|
-
],
|
|
1474
|
-
declarations: [
|
|
1475
|
-
SkyAgGridCellEditorCurrencyComponent
|
|
1476
|
-
],
|
|
1477
|
-
exports: [
|
|
1478
|
-
SkyAgGridCellEditorCurrencyComponent
|
|
1479
|
-
]
|
|
1501
|
+
imports: [AgGridResourcesModule, FormsModule, SkyAutonumericModule],
|
|
1502
|
+
declarations: [SkyAgGridCellEditorCurrencyComponent],
|
|
1503
|
+
exports: [SkyAgGridCellEditorCurrencyComponent],
|
|
1480
1504
|
}]
|
|
1481
1505
|
}] });
|
|
1482
1506
|
|
|
1507
|
+
/**
|
|
1508
|
+
* @internal
|
|
1509
|
+
*/
|
|
1483
1510
|
class SkyAgGridCellRendererValidatorTooltipComponent {
|
|
1484
1511
|
constructor(changeDetector) {
|
|
1485
1512
|
this.changeDetector = changeDetector;
|
|
@@ -1502,14 +1529,14 @@ class SkyAgGridCellRendererValidatorTooltipComponent {
|
|
|
1502
1529
|
return false;
|
|
1503
1530
|
}
|
|
1504
1531
|
}
|
|
1505
|
-
SkyAgGridCellRendererValidatorTooltipComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
1506
|
-
SkyAgGridCellRendererValidatorTooltipComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
1507
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
1532
|
+
SkyAgGridCellRendererValidatorTooltipComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyAgGridCellRendererValidatorTooltipComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
1533
|
+
SkyAgGridCellRendererValidatorTooltipComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.14", 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.14", ngImport: i0, type: SkyAgGridCellRendererValidatorTooltipComponent, decorators: [{
|
|
1508
1535
|
type: Component,
|
|
1509
1536
|
args: [{
|
|
1510
1537
|
selector: 'sky-ag-grid-cell-renderer-validator-tooltip',
|
|
1511
1538
|
templateUrl: 'cell-renderer-validator-tooltip.component.html',
|
|
1512
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
1539
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1513
1540
|
}]
|
|
1514
1541
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { params: [{
|
|
1515
1542
|
type: Input
|
|
@@ -1517,30 +1544,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.11", ngImpo
|
|
|
1517
1544
|
|
|
1518
1545
|
class SkyAgGridCellRendererValidatorTooltipModule {
|
|
1519
1546
|
}
|
|
1520
|
-
SkyAgGridCellRendererValidatorTooltipModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
1521
|
-
SkyAgGridCellRendererValidatorTooltipModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
|
1522
|
-
SkyAgGridCellRendererValidatorTooltipModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.
|
|
1523
|
-
|
|
1524
|
-
]] });
|
|
1525
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0, type: SkyAgGridCellRendererValidatorTooltipModule, decorators: [{
|
|
1547
|
+
SkyAgGridCellRendererValidatorTooltipModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyAgGridCellRendererValidatorTooltipModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1548
|
+
SkyAgGridCellRendererValidatorTooltipModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyAgGridCellRendererValidatorTooltipModule, declarations: [SkyAgGridCellRendererValidatorTooltipComponent], imports: [SkyAgGridCellValidatorModule], exports: [SkyAgGridCellRendererValidatorTooltipComponent] });
|
|
1549
|
+
SkyAgGridCellRendererValidatorTooltipModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyAgGridCellRendererValidatorTooltipModule, imports: [[SkyAgGridCellValidatorModule]] });
|
|
1550
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyAgGridCellRendererValidatorTooltipModule, decorators: [{
|
|
1526
1551
|
type: NgModule,
|
|
1527
1552
|
args: [{
|
|
1528
|
-
declarations: [
|
|
1529
|
-
|
|
1530
|
-
],
|
|
1531
|
-
exports: [
|
|
1532
|
-
SkyAgGridCellRendererValidatorTooltipComponent
|
|
1533
|
-
],
|
|
1534
|
-
imports: [
|
|
1535
|
-
SkyAgGridCellValidatorModule
|
|
1536
|
-
]
|
|
1553
|
+
declarations: [SkyAgGridCellRendererValidatorTooltipComponent],
|
|
1554
|
+
exports: [SkyAgGridCellRendererValidatorTooltipComponent],
|
|
1555
|
+
imports: [SkyAgGridCellValidatorModule],
|
|
1537
1556
|
}]
|
|
1538
1557
|
}] });
|
|
1539
1558
|
|
|
1540
1559
|
class SkyAgGridModule {
|
|
1541
1560
|
}
|
|
1542
|
-
SkyAgGridModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
1543
|
-
SkyAgGridModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
|
1561
|
+
SkyAgGridModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyAgGridModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1562
|
+
SkyAgGridModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyAgGridModule, declarations: [SkyAgGridDataManagerAdapterDirective,
|
|
1544
1563
|
SkyAgGridRowDeleteComponent,
|
|
1545
1564
|
SkyAgGridRowDeleteDirective,
|
|
1546
1565
|
SkyAgGridWrapperComponent], imports: [AgGridModule,
|
|
@@ -1562,7 +1581,7 @@ SkyAgGridModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version
|
|
|
1562
1581
|
SkyAgGridRowDeleteComponent,
|
|
1563
1582
|
SkyAgGridRowDeleteDirective,
|
|
1564
1583
|
SkyAgGridWrapperComponent] });
|
|
1565
|
-
SkyAgGridModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.
|
|
1584
|
+
SkyAgGridModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyAgGridModule, imports: [[
|
|
1566
1585
|
AgGridModule,
|
|
1567
1586
|
CommonModule,
|
|
1568
1587
|
SkyAgGridCellEditorAutocompleteModule,
|
|
@@ -1578,16 +1597,16 @@ SkyAgGridModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version
|
|
|
1578
1597
|
SkyAgGridCellEditorTextModule,
|
|
1579
1598
|
SkyDataManagerModule,
|
|
1580
1599
|
SkyInlineDeleteModule,
|
|
1581
|
-
SkyViewkeeperModule
|
|
1600
|
+
SkyViewkeeperModule,
|
|
1582
1601
|
]] });
|
|
1583
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
1602
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyAgGridModule, decorators: [{
|
|
1584
1603
|
type: NgModule,
|
|
1585
1604
|
args: [{
|
|
1586
1605
|
declarations: [
|
|
1587
1606
|
SkyAgGridDataManagerAdapterDirective,
|
|
1588
1607
|
SkyAgGridRowDeleteComponent,
|
|
1589
1608
|
SkyAgGridRowDeleteDirective,
|
|
1590
|
-
SkyAgGridWrapperComponent
|
|
1609
|
+
SkyAgGridWrapperComponent,
|
|
1591
1610
|
],
|
|
1592
1611
|
imports: [
|
|
1593
1612
|
AgGridModule,
|
|
@@ -1605,13 +1624,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.11", ngImpo
|
|
|
1605
1624
|
SkyAgGridCellEditorTextModule,
|
|
1606
1625
|
SkyDataManagerModule,
|
|
1607
1626
|
SkyInlineDeleteModule,
|
|
1608
|
-
SkyViewkeeperModule
|
|
1627
|
+
SkyViewkeeperModule,
|
|
1609
1628
|
],
|
|
1610
1629
|
exports: [
|
|
1611
1630
|
SkyAgGridDataManagerAdapterDirective,
|
|
1612
1631
|
SkyAgGridRowDeleteComponent,
|
|
1613
1632
|
SkyAgGridRowDeleteDirective,
|
|
1614
|
-
SkyAgGridWrapperComponent
|
|
1633
|
+
SkyAgGridWrapperComponent,
|
|
1615
1634
|
],
|
|
1616
1635
|
entryComponents: [
|
|
1617
1636
|
SkyAgGridCellEditorAutocompleteComponent,
|
|
@@ -1623,11 +1642,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.11", ngImpo
|
|
|
1623
1642
|
SkyAgGridCellRendererRowSelectorComponent,
|
|
1624
1643
|
SkyAgGridCellRendererValidatorTooltipComponent,
|
|
1625
1644
|
SkyAgGridCellEditorTextComponent,
|
|
1626
|
-
SkyAgGridRowDeleteComponent
|
|
1627
|
-
]
|
|
1645
|
+
SkyAgGridRowDeleteComponent,
|
|
1646
|
+
],
|
|
1628
1647
|
}]
|
|
1629
1648
|
}] });
|
|
1630
1649
|
|
|
1650
|
+
/**
|
|
1651
|
+
* @internal
|
|
1652
|
+
*/
|
|
1631
1653
|
var SkyCellClass;
|
|
1632
1654
|
(function (SkyCellClass) {
|
|
1633
1655
|
SkyCellClass["Autocomplete"] = "sky-ag-grid-cell-autocomplete";
|
|
@@ -1642,20 +1664,93 @@ var SkyCellClass;
|
|
|
1642
1664
|
SkyCellClass["Uneditable"] = "sky-ag-grid-cell-uneditable";
|
|
1643
1665
|
})(SkyCellClass || (SkyCellClass = {}));
|
|
1644
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
|
+
*/
|
|
1645
1672
|
var SkyCellType;
|
|
1646
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
|
+
*/
|
|
1647
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
|
+
*/
|
|
1648
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
|
+
*/
|
|
1649
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
|
+
*/
|
|
1650
1709
|
SkyCellType["Date"] = "skyCellDate";
|
|
1651
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
|
+
*/
|
|
1652
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
|
+
*/
|
|
1653
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
|
+
*/
|
|
1654
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
|
+
*/
|
|
1655
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
|
+
*/
|
|
1656
1748
|
SkyCellType["Validator"] = "skyCellValidator";
|
|
1657
1749
|
})(SkyCellType || (SkyCellType = {}));
|
|
1658
1750
|
|
|
1751
|
+
/**
|
|
1752
|
+
* @internal
|
|
1753
|
+
*/
|
|
1659
1754
|
var SkyHeaderClass;
|
|
1660
1755
|
(function (SkyHeaderClass) {
|
|
1661
1756
|
SkyHeaderClass["RightAligned"] = "sky-ag-grid-header-right-aligned";
|
|
@@ -1699,19 +1794,21 @@ function dateComparator(date1, date2) {
|
|
|
1699
1794
|
function getValidatorCellRendererSelector(component, fallback) {
|
|
1700
1795
|
return (params) => {
|
|
1701
1796
|
var _a, _b;
|
|
1702
|
-
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') {
|
|
1703
1799
|
if (!params.colDef.cellRendererParams.skyComponentProperties.validator(params.value, params.data, params.rowIndex)) {
|
|
1704
1800
|
return {
|
|
1705
1801
|
component,
|
|
1706
|
-
params: Object.assign({}, params.colDef.cellRendererParams)
|
|
1802
|
+
params: Object.assign({}, params.colDef.cellRendererParams),
|
|
1707
1803
|
};
|
|
1708
1804
|
}
|
|
1709
1805
|
}
|
|
1710
1806
|
return fallback;
|
|
1711
1807
|
};
|
|
1712
1808
|
}
|
|
1809
|
+
let rowNodeId = 1;
|
|
1713
1810
|
/**
|
|
1714
|
-
*
|
|
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.
|
|
1715
1812
|
*/
|
|
1716
1813
|
class SkyAgGridService {
|
|
1717
1814
|
constructor(agGridAdapterService, themeSvc, resources) {
|
|
@@ -1723,7 +1820,7 @@ class SkyAgGridService {
|
|
|
1723
1820
|
if (this.themeSvc) {
|
|
1724
1821
|
this.themeSvc.settingsChange
|
|
1725
1822
|
.pipe(takeUntil(this.ngUnsubscribe))
|
|
1726
|
-
.subscribe(settingsChange => this.currentTheme = settingsChange.currentSettings);
|
|
1823
|
+
.subscribe((settingsChange) => (this.currentTheme = settingsChange.currentSettings));
|
|
1727
1824
|
}
|
|
1728
1825
|
}
|
|
1729
1826
|
ngOnDestroy() {
|
|
@@ -1731,14 +1828,20 @@ class SkyAgGridService {
|
|
|
1731
1828
|
this.ngUnsubscribe.complete();
|
|
1732
1829
|
}
|
|
1733
1830
|
/**
|
|
1734
|
-
*
|
|
1735
|
-
* @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
|
|
1736
1834
|
*/
|
|
1737
1835
|
getGridOptions(args) {
|
|
1738
1836
|
const defaultGridOptions = this.getDefaultGridOptions(args);
|
|
1739
1837
|
const mergedGridOptions = this.mergeGridOptions(defaultGridOptions, args.gridOptions);
|
|
1740
1838
|
return mergedGridOptions;
|
|
1741
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
|
+
*/
|
|
1742
1845
|
getEditableGridOptions(args) {
|
|
1743
1846
|
const defaultGridOptions = this.getDefaultEditableGridOptions(args);
|
|
1744
1847
|
const mergedGridOptions = this.mergeGridOptions(defaultGridOptions, args.gridOptions);
|
|
@@ -1766,19 +1869,20 @@ class SkyAgGridService {
|
|
|
1766
1869
|
}
|
|
1767
1870
|
const editableCellClassRules = {
|
|
1768
1871
|
[SkyCellClass.Editable]: getEditableFn(),
|
|
1769
|
-
[SkyCellClass.Uneditable]: getEditableFn(true)
|
|
1872
|
+
[SkyCellClass.Uneditable]: getEditableFn(true),
|
|
1770
1873
|
};
|
|
1771
1874
|
function getValidatorFn() {
|
|
1772
1875
|
return function (param) {
|
|
1773
1876
|
var _a, _b;
|
|
1774
|
-
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') {
|
|
1775
1879
|
return !param.colDef.cellRendererParams.skyComponentProperties.validator(param.value, param.data, param.rowIndex);
|
|
1776
1880
|
}
|
|
1777
1881
|
return false;
|
|
1778
1882
|
};
|
|
1779
1883
|
}
|
|
1780
1884
|
const validatorCellClassRules = {
|
|
1781
|
-
[SkyCellClass.Invalid]: getValidatorFn()
|
|
1885
|
+
[SkyCellClass.Invalid]: getValidatorFn(),
|
|
1782
1886
|
};
|
|
1783
1887
|
const defaultSkyGridOptions = {
|
|
1784
1888
|
columnTypes: {
|
|
@@ -1787,21 +1891,21 @@ class SkyAgGridService {
|
|
|
1787
1891
|
cellEditorFramework: SkyAgGridCellEditorAutocompleteComponent,
|
|
1788
1892
|
valueFormatter: autocompleteFormatter,
|
|
1789
1893
|
comparator: autocompleteComparator,
|
|
1790
|
-
minWidth: 185
|
|
1894
|
+
minWidth: 185,
|
|
1791
1895
|
},
|
|
1792
1896
|
[SkyCellType.Currency]: {
|
|
1793
1897
|
cellClassRules: Object.assign(Object.assign({ [SkyCellClass.Currency]: cellClassRuleTrueExpression }, validatorCellClassRules), editableCellClassRules),
|
|
1794
1898
|
cellRendererSelector: getValidatorCellRendererSelector('sky-ag-grid-cell-renderer-currency-validator', { component: 'sky-ag-grid-cell-renderer-currency' }),
|
|
1795
1899
|
cellEditorFramework: SkyAgGridCellEditorCurrencyComponent,
|
|
1796
1900
|
headerClass: SkyHeaderClass.RightAligned,
|
|
1797
|
-
minWidth: 185
|
|
1901
|
+
minWidth: 185,
|
|
1798
1902
|
},
|
|
1799
1903
|
[SkyCellType.Date]: {
|
|
1800
1904
|
cellClassRules: Object.assign({ [SkyCellClass.Date]: cellClassRuleTrueExpression }, editableCellClassRules),
|
|
1801
1905
|
cellEditorFramework: SkyAgGridCellEditorDatepickerComponent,
|
|
1802
1906
|
comparator: dateComparator,
|
|
1803
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,
|
|
1804
|
-
valueFormatter: (params) => this.dateFormatter(params, args.locale)
|
|
1908
|
+
valueFormatter: (params) => this.dateFormatter(params, args.locale),
|
|
1805
1909
|
},
|
|
1806
1910
|
[SkyCellType.Lookup]: {
|
|
1807
1911
|
cellClassRules: Object.assign({ [SkyCellClass.Lookup]: cellClassRuleTrueExpression }, editableCellClassRules),
|
|
@@ -1816,47 +1920,61 @@ class SkyAgGridService {
|
|
|
1816
1920
|
.filter((value) => value !== '' && value !== undefined)
|
|
1817
1921
|
.join('; ');
|
|
1818
1922
|
},
|
|
1819
|
-
minWidth: 185
|
|
1923
|
+
minWidth: 185,
|
|
1820
1924
|
},
|
|
1821
1925
|
[SkyCellType.Number]: {
|
|
1822
1926
|
cellClassRules: Object.assign({ [SkyCellClass.Number]: cellClassRuleTrueExpression }, editableCellClassRules),
|
|
1823
1927
|
cellEditorFramework: SkyAgGridCellEditorNumberComponent,
|
|
1824
|
-
headerClass: SkyHeaderClass.RightAligned
|
|
1928
|
+
headerClass: SkyHeaderClass.RightAligned,
|
|
1825
1929
|
},
|
|
1826
1930
|
[SkyCellType.RowSelector]: {
|
|
1827
1931
|
cellClassRules: {
|
|
1828
1932
|
[SkyCellClass.RowSelector]: cellClassRuleTrueExpression,
|
|
1829
|
-
[SkyCellClass.Uneditable]: cellClassRuleTrueExpression
|
|
1933
|
+
[SkyCellClass.Uneditable]: cellClassRuleTrueExpression,
|
|
1830
1934
|
},
|
|
1831
1935
|
cellRendererFramework: SkyAgGridCellRendererRowSelectorComponent,
|
|
1832
1936
|
headerName: '',
|
|
1833
1937
|
minWidth: 55,
|
|
1834
1938
|
maxWidth: 55,
|
|
1835
1939
|
sortable: false,
|
|
1836
|
-
width: 55
|
|
1940
|
+
width: 55,
|
|
1837
1941
|
},
|
|
1838
1942
|
[SkyCellType.Text]: {
|
|
1839
1943
|
cellClassRules: Object.assign({ [SkyCellClass.Text]: cellClassRuleTrueExpression }, editableCellClassRules),
|
|
1840
|
-
cellEditorFramework: SkyAgGridCellEditorTextComponent
|
|
1944
|
+
cellEditorFramework: SkyAgGridCellEditorTextComponent,
|
|
1841
1945
|
},
|
|
1842
1946
|
[SkyCellType.Validator]: {
|
|
1843
1947
|
cellClassRules: Object.assign(Object.assign({}, validatorCellClassRules), editableCellClassRules),
|
|
1844
|
-
cellRendererSelector: getValidatorCellRendererSelector('sky-ag-grid-cell-renderer-validator-tooltip')
|
|
1845
|
-
}
|
|
1948
|
+
cellRendererSelector: getValidatorCellRendererSelector('sky-ag-grid-cell-renderer-validator-tooltip'),
|
|
1949
|
+
},
|
|
1846
1950
|
},
|
|
1847
1951
|
defaultColDef: {
|
|
1848
1952
|
cellClassRules: editableCellClassRules,
|
|
1849
1953
|
minWidth: 100,
|
|
1850
1954
|
resizable: true,
|
|
1851
1955
|
sortable: true,
|
|
1852
|
-
suppressKeyboardEvent: (keypress) => this.suppressTab(keypress)
|
|
1956
|
+
suppressKeyboardEvent: (keypress) => this.suppressTab(keypress),
|
|
1853
1957
|
},
|
|
1854
1958
|
domLayout: 'autoHeight',
|
|
1855
1959
|
enterMovesDownAfterEdit: true,
|
|
1856
1960
|
frameworkComponents: {
|
|
1857
1961
|
'sky-ag-grid-cell-renderer-currency': SkyAgGridCellRendererCurrencyComponent,
|
|
1858
1962
|
'sky-ag-grid-cell-renderer-currency-validator': SkyAgGridCellRendererCurrencyValidatorComponent,
|
|
1859
|
-
'sky-ag-grid-cell-renderer-validator-tooltip': SkyAgGridCellRendererValidatorTooltipComponent
|
|
1963
|
+
'sky-ag-grid-cell-renderer-validator-tooltip': SkyAgGridCellRendererValidatorTooltipComponent,
|
|
1964
|
+
},
|
|
1965
|
+
getRowNodeId(data) {
|
|
1966
|
+
if ('id' in data && data.id) {
|
|
1967
|
+
return `${data.id}`;
|
|
1968
|
+
}
|
|
1969
|
+
return `${rowNodeId++}`;
|
|
1970
|
+
},
|
|
1971
|
+
getRowClass: (params) => {
|
|
1972
|
+
if (params.node.id) {
|
|
1973
|
+
return `sky-ag-grid-row-${params.node.id}`;
|
|
1974
|
+
}
|
|
1975
|
+
else {
|
|
1976
|
+
return undefined;
|
|
1977
|
+
}
|
|
1860
1978
|
},
|
|
1861
1979
|
headerHeight: ((_d = (_c = this.currentTheme) === null || _c === void 0 ? void 0 : _c.theme) === null || _d === void 0 ? void 0 : _d.name) === 'modern' ? 60 : 37,
|
|
1862
1980
|
icons: {
|
|
@@ -1866,7 +1984,7 @@ class SkyAgGridService {
|
|
|
1866
1984
|
columnMoveHide: this.getIconTemplate('arrows'),
|
|
1867
1985
|
columnMoveLeft: this.getIconTemplate('arrows'),
|
|
1868
1986
|
columnMoveRight: this.getIconTemplate('arrows'),
|
|
1869
|
-
columnMovePin: this.getIconTemplate('arrows')
|
|
1987
|
+
columnMovePin: this.getIconTemplate('arrows'),
|
|
1870
1988
|
},
|
|
1871
1989
|
onCellFocused: () => this.onCellFocused(),
|
|
1872
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,
|
|
@@ -1877,33 +1995,38 @@ class SkyAgGridService {
|
|
|
1877
1995
|
sortingOrder: ['desc', 'asc', null],
|
|
1878
1996
|
stopEditingWhenGridLosesFocus: false,
|
|
1879
1997
|
suppressRowClickSelection: true,
|
|
1880
|
-
suppressDragLeaveHidesColumns: true
|
|
1998
|
+
suppressDragLeaveHidesColumns: true,
|
|
1881
1999
|
};
|
|
1882
2000
|
defaultSkyGridOptions.columnTypes[SkyCellType.CurrencyValidator] = Object.assign(Object.assign({}, defaultSkyGridOptions.columnTypes[SkyCellType.Currency]), { cellRendererParams: {
|
|
1883
2001
|
skyComponentProperties: {
|
|
1884
2002
|
validator: (value, data, rowIndex) => {
|
|
1885
2003
|
return !!`${value || ''}`.match(/^[^0-9]*(\d+[,.]?)+\d*[^0-9]*$/);
|
|
1886
2004
|
},
|
|
1887
|
-
validatorMessage: 'Please enter a valid currency'
|
|
1888
|
-
}
|
|
2005
|
+
validatorMessage: 'Please enter a valid currency',
|
|
2006
|
+
},
|
|
1889
2007
|
} });
|
|
1890
2008
|
/*istanbul ignore else*/
|
|
1891
2009
|
if (this.resources) {
|
|
1892
|
-
this.resources
|
|
2010
|
+
this.resources
|
|
2011
|
+
.getString('sky_ag_grid_cell_renderer_currency_validator_message')
|
|
2012
|
+
.subscribe((value) => {
|
|
1893
2013
|
defaultSkyGridOptions.columnTypes[SkyCellType.CurrencyValidator].cellRendererParams.skyComponentProperties.validatorMessage = value;
|
|
1894
2014
|
});
|
|
1895
2015
|
}
|
|
1896
|
-
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: {
|
|
1897
2018
|
skyComponentProperties: {
|
|
1898
2019
|
validator: (value, data, rowIndex) => {
|
|
1899
2020
|
return !!value && !isNaN(parseFloat(value));
|
|
1900
2021
|
},
|
|
1901
|
-
validatorMessage: 'Please enter a valid number'
|
|
1902
|
-
}
|
|
2022
|
+
validatorMessage: 'Please enter a valid number',
|
|
2023
|
+
},
|
|
1903
2024
|
} });
|
|
1904
2025
|
/*istanbul ignore else*/
|
|
1905
2026
|
if (this.resources) {
|
|
1906
|
-
this.resources
|
|
2027
|
+
this.resources
|
|
2028
|
+
.getString('sky_ag_grid_cell_renderer_number_validator_message')
|
|
2029
|
+
.subscribe((value) => {
|
|
1907
2030
|
defaultSkyGridOptions.columnTypes[SkyCellType.NumberValidator].cellRendererParams.skyComponentProperties.validatorMessage = value;
|
|
1908
2031
|
});
|
|
1909
2032
|
}
|
|
@@ -1924,8 +2047,9 @@ class SkyAgGridService {
|
|
|
1924
2047
|
if (date && typeof date === 'string') {
|
|
1925
2048
|
date = new Date(params.value);
|
|
1926
2049
|
}
|
|
1927
|
-
|
|
1928
|
-
|
|
2050
|
+
let formattedDate = date &&
|
|
2051
|
+
date.toLocaleDateString &&
|
|
2052
|
+
date.toLocaleDateString(locale, dateConfig);
|
|
1929
2053
|
if (date && date.getTime && !isNaN(date.getTime())) {
|
|
1930
2054
|
return formattedDate;
|
|
1931
2055
|
}
|
|
@@ -1949,12 +2073,12 @@ class SkyAgGridService {
|
|
|
1949
2073
|
return false;
|
|
1950
2074
|
}
|
|
1951
2075
|
}
|
|
1952
|
-
SkyAgGridService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
1953
|
-
SkyAgGridService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
1954
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
2076
|
+
SkyAgGridService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", 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.14", ngImport: i0, type: SkyAgGridService, providedIn: 'root' });
|
|
2078
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyAgGridService, decorators: [{
|
|
1955
2079
|
type: Injectable,
|
|
1956
2080
|
args: [{
|
|
1957
|
-
providedIn: 'root'
|
|
2081
|
+
providedIn: 'root',
|
|
1958
2082
|
}]
|
|
1959
2083
|
}], ctorParameters: function () { return [{ type: SkyAgGridAdapterService }, { type: i1$3.SkyThemeService, decorators: [{
|
|
1960
2084
|
type: Optional
|