@skyux/ag-grid 7.5.0 → 7.6.0
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/documentation.json +12 -12
- package/esm2020/lib/modules/ag-grid/ag-grid-row-delete.directive.mjs +2 -2
- package/esm2020/lib/modules/ag-grid/header/header.component.mjs +6 -4
- package/esm2020/lib/modules/ag-grid/types/cell-type.mjs +14 -14
- package/esm2020/lib/modules/ag-grid/types/sky-grid-options.mjs +1 -1
- package/fesm2015/skyux-ag-grid.mjs +20 -18
- package/fesm2015/skyux-ag-grid.mjs.map +1 -1
- package/fesm2020/skyux-ag-grid.mjs +19 -17
- package/fesm2020/skyux-ag-grid.mjs.map +1 -1
- package/lib/modules/ag-grid/ag-grid-row-delete.directive.d.ts +1 -1
- package/lib/modules/ag-grid/types/cell-type.d.ts +13 -13
- package/lib/modules/ag-grid/types/sky-grid-options.d.ts +2 -2
- package/package.json +12 -12
|
@@ -1147,7 +1147,9 @@ class SkyAgGridHeaderComponent {
|
|
|
1147
1147
|
this.params?.showColumnMenu($event.target);
|
|
1148
1148
|
}
|
|
1149
1149
|
onSortRequested(event) {
|
|
1150
|
-
this.params?.
|
|
1150
|
+
if (this.params?.enableSorting) {
|
|
1151
|
+
this.params?.progressSort(event.shiftKey);
|
|
1152
|
+
}
|
|
1151
1153
|
}
|
|
1152
1154
|
refresh(params) {
|
|
1153
1155
|
this.agInit(params);
|
|
@@ -1197,10 +1199,10 @@ _SkyAgGridHeaderComponent_subscriptions = new WeakMap(), _SkyAgGridHeaderCompone
|
|
|
1197
1199
|
}
|
|
1198
1200
|
};
|
|
1199
1201
|
SkyAgGridHeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.11", ngImport: i0, type: SkyAgGridHeaderComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1.SkyDynamicComponentService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1200
|
-
SkyAgGridHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.11", type: SkyAgGridHeaderComponent, selector: "sky-ag-grid-header", viewQueries: [{ propertyName: "inlineHelpContainer", first: true, predicate: ["inlineHelpContainer"], descendants: true, read: ElementRef, static: true }], ngImport: i0, template: "<div class=\"ag-cell-label-container\" role=\"presentation\">\n <span\n *ngIf=\"params?.enableMenu\"\n class=\"ag-header-icon ag-header-cell-menu-button\"\n aria-hidden=\"true\"\n (click)=\"onMenuClick($event)\"\n >\n <sky-icon *skyThemeIf=\"'default'\" icon=\"menu\"></sky-icon>\n <sky-icon *skyThemeIf=\"'modern'\" icon=\"menu\" iconType=\"skyux\"></sky-icon>\n </span>\n <div\n class=\"ag-header-cell-label\"\n role=\"presentation\"\n (click)=\"onSortRequested($event)\"\n >\n <span class=\"ag-header-cell-text\">{{ params?.displayName }}</span>\n <span\n *ngIf=\"filterEnabled$ | async\"\n class=\"ag-header-icon ag-header-label-icon ag-filter-icon\"\n aria-hidden=\"true\"\n >\n <sky-icon *skyThemeIf=\"'default'\" icon=\"filter\"></sky-icon>\n <sky-icon\n *skyThemeIf=\"'modern'\"\n icon=\"filter\"\n iconType=\"skyux\"\n ></sky-icon>\n </span>\n <span *ngIf=\"params?.enableSorting\" class=\"ag-sort-indicator-container\">\n <sky-icon\n *ngIf=\"(sortOrder$ | async) === 'desc'\"\n icon=\"caret-down\"\n class=\"ag-header-label-icon\"\n ></sky-icon>\n <sky-icon\n *ngIf=\"(sortOrder$ | async) === 'asc'\"\n icon=\"caret-up\"\n class=\"ag-header-label-icon\"\n ></sky-icon>\n <span\n *ngIf=\"sortIndexDisplay$ | async as sortIndexDisplay\"\n class=\"ag-sort-indicator-icon ag-sort-order\"\n aria-hidden=\"true\"\n >{{ sortIndexDisplay }}</span\n >\n </span>\n </div>\n</div>\n<span class=\"sky-control-help-container\" #inlineHelpContainer></span>\n", styles: [":host{display:flex;max-width:100%;align-items:center;align-content:center}.ag-header-cell-label{padding-right:0;padding-left:0}button{cursor:pointer;flex-grow:0;flex-shrink:0}\n"], dependencies: [{ kind: "directive", type: i2$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3$2.λ4, selector: "sky-icon", inputs: ["icon", "iconType", "size", "fixedWidth", "variant"] }, { kind: "directive", type: i1$2.λ3, selector: "[skyThemeIf]", inputs: ["skyThemeIf"] }, { kind: "pipe", type: i2$3.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1202
|
+
SkyAgGridHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.11", type: SkyAgGridHeaderComponent, selector: "sky-ag-grid-header", viewQueries: [{ propertyName: "inlineHelpContainer", first: true, predicate: ["inlineHelpContainer"], descendants: true, read: ElementRef, static: true }], ngImport: i0, template: "<div class=\"ag-cell-label-container\" role=\"presentation\">\n <span\n *ngIf=\"params?.enableMenu\"\n class=\"ag-header-icon ag-header-cell-menu-button\"\n aria-hidden=\"true\"\n (click)=\"onMenuClick($event)\"\n >\n <sky-icon *skyThemeIf=\"'default'\" icon=\"menu\"></sky-icon>\n <sky-icon *skyThemeIf=\"'modern'\" icon=\"menu\" iconType=\"skyux\"></sky-icon>\n </span>\n <div\n [class.ag-header-cell-label-sortable]=\"params?.enableSorting\"\n class=\"ag-header-cell-label\"\n role=\"presentation\"\n (click)=\"onSortRequested($event)\"\n >\n <span class=\"ag-header-cell-text\">\n <ng-template #notSortingHeaderText>{{ params?.displayName }}</ng-template>\n <button\n *ngIf=\"params?.enableSorting; else notSortingHeaderText\"\n class=\"sky-btn-link-inline\"\n (click)=\"onSortRequested($event)\"\n >\n <ng-container *ngTemplateOutlet=\"notSortingHeaderText\"></ng-container>\n </button>\n </span>\n <span\n *ngIf=\"filterEnabled$ | async\"\n class=\"ag-header-icon ag-header-label-icon ag-filter-icon\"\n aria-hidden=\"true\"\n >\n <sky-icon *skyThemeIf=\"'default'\" icon=\"filter\"></sky-icon>\n <sky-icon\n *skyThemeIf=\"'modern'\"\n icon=\"filter\"\n iconType=\"skyux\"\n ></sky-icon>\n </span>\n <span *ngIf=\"params?.enableSorting\" class=\"ag-sort-indicator-container\">\n <sky-icon\n *ngIf=\"(sortOrder$ | async) === 'desc'\"\n icon=\"caret-down\"\n class=\"ag-header-label-icon\"\n ></sky-icon>\n <sky-icon\n *ngIf=\"(sortOrder$ | async) === 'asc'\"\n icon=\"caret-up\"\n class=\"ag-header-label-icon\"\n ></sky-icon>\n <span\n *ngIf=\"sortIndexDisplay$ | async as sortIndexDisplay\"\n class=\"ag-sort-indicator-icon ag-sort-order\"\n aria-hidden=\"true\"\n >{{ sortIndexDisplay }}</span\n >\n </span>\n </div>\n</div>\n<span class=\"sky-control-help-container\" #inlineHelpContainer></span>\n", styles: [":host{display:flex;max-width:100%;align-items:center;align-content:center}.ag-header-cell-label{padding-right:0;padding-left:0}.ag-header-cell-label button{text-transform:inherit}button{cursor:pointer;flex-grow:0;flex-shrink:0}\n"], dependencies: [{ kind: "directive", type: i2$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2$3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i3$2.λ4, selector: "sky-icon", inputs: ["icon", "iconType", "size", "fixedWidth", "variant"] }, { kind: "directive", type: i1$2.λ3, selector: "[skyThemeIf]", inputs: ["skyThemeIf"] }, { kind: "pipe", type: i2$3.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1201
1203
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.11", ngImport: i0, type: SkyAgGridHeaderComponent, decorators: [{
|
|
1202
1204
|
type: Component,
|
|
1203
|
-
args: [{ selector: 'sky-ag-grid-header', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"ag-cell-label-container\" role=\"presentation\">\n <span\n *ngIf=\"params?.enableMenu\"\n class=\"ag-header-icon ag-header-cell-menu-button\"\n aria-hidden=\"true\"\n (click)=\"onMenuClick($event)\"\n >\n <sky-icon *skyThemeIf=\"'default'\" icon=\"menu\"></sky-icon>\n <sky-icon *skyThemeIf=\"'modern'\" icon=\"menu\" iconType=\"skyux\"></sky-icon>\n </span>\n <div\n class=\"ag-header-cell-label\"\n role=\"presentation\"\n (click)=\"onSortRequested($event)\"\n >\n <span class=\"ag-header-cell-text\">{{ params?.displayName }}</span>\n <span\n *ngIf=\"filterEnabled$ | async\"\n class=\"ag-header-icon ag-header-label-icon ag-filter-icon\"\n aria-hidden=\"true\"\n >\n <sky-icon *skyThemeIf=\"'default'\" icon=\"filter\"></sky-icon>\n <sky-icon\n *skyThemeIf=\"'modern'\"\n icon=\"filter\"\n iconType=\"skyux\"\n ></sky-icon>\n </span>\n <span *ngIf=\"params?.enableSorting\" class=\"ag-sort-indicator-container\">\n <sky-icon\n *ngIf=\"(sortOrder$ | async) === 'desc'\"\n icon=\"caret-down\"\n class=\"ag-header-label-icon\"\n ></sky-icon>\n <sky-icon\n *ngIf=\"(sortOrder$ | async) === 'asc'\"\n icon=\"caret-up\"\n class=\"ag-header-label-icon\"\n ></sky-icon>\n <span\n *ngIf=\"sortIndexDisplay$ | async as sortIndexDisplay\"\n class=\"ag-sort-indicator-icon ag-sort-order\"\n aria-hidden=\"true\"\n >{{ sortIndexDisplay }}</span\n >\n </span>\n </div>\n</div>\n<span class=\"sky-control-help-container\" #inlineHelpContainer></span>\n", styles: [":host{display:flex;max-width:100%;align-items:center;align-content:center}.ag-header-cell-label{padding-right:0;padding-left:0}button{cursor:pointer;flex-grow:0;flex-shrink:0}\n"] }]
|
|
1205
|
+
args: [{ selector: 'sky-ag-grid-header', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"ag-cell-label-container\" role=\"presentation\">\n <span\n *ngIf=\"params?.enableMenu\"\n class=\"ag-header-icon ag-header-cell-menu-button\"\n aria-hidden=\"true\"\n (click)=\"onMenuClick($event)\"\n >\n <sky-icon *skyThemeIf=\"'default'\" icon=\"menu\"></sky-icon>\n <sky-icon *skyThemeIf=\"'modern'\" icon=\"menu\" iconType=\"skyux\"></sky-icon>\n </span>\n <div\n [class.ag-header-cell-label-sortable]=\"params?.enableSorting\"\n class=\"ag-header-cell-label\"\n role=\"presentation\"\n (click)=\"onSortRequested($event)\"\n >\n <span class=\"ag-header-cell-text\">\n <ng-template #notSortingHeaderText>{{ params?.displayName }}</ng-template>\n <button\n *ngIf=\"params?.enableSorting; else notSortingHeaderText\"\n class=\"sky-btn-link-inline\"\n (click)=\"onSortRequested($event)\"\n >\n <ng-container *ngTemplateOutlet=\"notSortingHeaderText\"></ng-container>\n </button>\n </span>\n <span\n *ngIf=\"filterEnabled$ | async\"\n class=\"ag-header-icon ag-header-label-icon ag-filter-icon\"\n aria-hidden=\"true\"\n >\n <sky-icon *skyThemeIf=\"'default'\" icon=\"filter\"></sky-icon>\n <sky-icon\n *skyThemeIf=\"'modern'\"\n icon=\"filter\"\n iconType=\"skyux\"\n ></sky-icon>\n </span>\n <span *ngIf=\"params?.enableSorting\" class=\"ag-sort-indicator-container\">\n <sky-icon\n *ngIf=\"(sortOrder$ | async) === 'desc'\"\n icon=\"caret-down\"\n class=\"ag-header-label-icon\"\n ></sky-icon>\n <sky-icon\n *ngIf=\"(sortOrder$ | async) === 'asc'\"\n icon=\"caret-up\"\n class=\"ag-header-label-icon\"\n ></sky-icon>\n <span\n *ngIf=\"sortIndexDisplay$ | async as sortIndexDisplay\"\n class=\"ag-sort-indicator-icon ag-sort-order\"\n aria-hidden=\"true\"\n >{{ sortIndexDisplay }}</span\n >\n </span>\n </div>\n</div>\n<span class=\"sky-control-help-container\" #inlineHelpContainer></span>\n", styles: [":host{display:flex;max-width:100%;align-items:center;align-content:center}.ag-header-cell-label{padding-right:0;padding-left:0}.ag-header-cell-label button{text-transform:inherit}button{cursor:pointer;flex-grow:0;flex-shrink:0}\n"] }]
|
|
1204
1206
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i1.SkyDynamicComponentService }]; }, propDecorators: { inlineHelpContainer: [{
|
|
1205
1207
|
type: ViewChild,
|
|
1206
1208
|
args: ['inlineHelpContainer', { read: ElementRef, static: true }]
|
|
@@ -1233,17 +1235,17 @@ var SkyCellType;
|
|
|
1233
1235
|
/**
|
|
1234
1236
|
* **Edit mode**
|
|
1235
1237
|
* <br/>
|
|
1236
|
-
*
|
|
1238
|
+
* 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 `SkyCellEditorAutocompleteParams` in the [column definition's `cellEditorParams` property](https://www.ag-grid.com/angular-data-grid/column-properties/#reference-editing). 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.
|
|
1237
1239
|
* <br/><br/>
|
|
1238
1240
|
* **Read-only mode**
|
|
1239
1241
|
* <br/>
|
|
1240
|
-
*
|
|
1242
|
+
* 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.
|
|
1241
1243
|
*/
|
|
1242
1244
|
SkyCellType["Autocomplete"] = "skyCellAutocomplete";
|
|
1243
1245
|
/**
|
|
1244
1246
|
* **Edit mode**
|
|
1245
1247
|
* <br/>
|
|
1246
|
-
*
|
|
1248
|
+
* Cells in the column will be edited as a currency amount.
|
|
1247
1249
|
* <br/><br/>
|
|
1248
1250
|
* **Read-only mode**
|
|
1249
1251
|
* <br/>
|
|
@@ -1259,31 +1261,31 @@ var SkyCellType;
|
|
|
1259
1261
|
/**
|
|
1260
1262
|
* **Edit mode**
|
|
1261
1263
|
* <br/>
|
|
1262
|
-
*
|
|
1264
|
+
* 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 `SkyCellEditorDatepickerParams` in the [column definition's `cellEditorParams` property](https://www.ag-grid.com/angular-data-grid/column-properties/#reference-editing). 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.
|
|
1263
1265
|
* <br/><br/>
|
|
1264
1266
|
* **Read-only mode**
|
|
1265
1267
|
* <br/>
|
|
1266
|
-
*
|
|
1268
|
+
* 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.
|
|
1267
1269
|
*/
|
|
1268
1270
|
SkyCellType["Date"] = "skyCellDate";
|
|
1269
1271
|
/**
|
|
1270
1272
|
* **Edit mode**
|
|
1271
1273
|
* <br/>
|
|
1272
|
-
*
|
|
1274
|
+
* Cells in the column will be edited as [SKY UX lookup components](https://developer.blackbaud.com/skyux-v5/components/lookup). You can set any of the lookup component's properties by passing `SkyCellEditorLookupParams` in the [column definition's `cellEditorParams` property](https://www.ag-grid.com/angular-data-grid/column-properties/#reference-editing). 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.
|
|
1273
1275
|
* <br/><br/>
|
|
1274
1276
|
* **Read-only mode**
|
|
1275
1277
|
* <br/>
|
|
1276
|
-
*
|
|
1278
|
+
* Cells the column will display, by default, either: the name(s) of the selected value(s) if there are less than 6, or a summary count of the values if there are more than 5. If the lookup 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.
|
|
1277
1279
|
*/
|
|
1278
1280
|
SkyCellType["Lookup"] = "skyCellLookup";
|
|
1279
1281
|
/**
|
|
1280
1282
|
* **Edit mode**
|
|
1281
1283
|
* <br/>
|
|
1282
|
-
*
|
|
1284
|
+
* Cells in the column will be edited as HTML number `inputs`. Only numbers can be entered.
|
|
1283
1285
|
* <br/><br/>
|
|
1284
1286
|
* **Read-only mode**
|
|
1285
1287
|
* <br/>
|
|
1286
|
-
*
|
|
1288
|
+
* Cells in the column will render as the number value.
|
|
1287
1289
|
*/
|
|
1288
1290
|
SkyCellType["Number"] = "skyCellNumber";
|
|
1289
1291
|
/**
|
|
@@ -1295,23 +1297,23 @@ var SkyCellType;
|
|
|
1295
1297
|
/**
|
|
1296
1298
|
* **Edit and read-only modes**
|
|
1297
1299
|
* <br/>
|
|
1298
|
-
*
|
|
1300
|
+
* 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.
|
|
1299
1301
|
*/
|
|
1300
1302
|
SkyCellType["RowSelector"] = "skyCellRowSelector";
|
|
1301
1303
|
/**
|
|
1302
1304
|
* **Edit mode**
|
|
1303
1305
|
* <br/>
|
|
1304
|
-
*
|
|
1306
|
+
* Cells in the column will be edited as HTML text `inputs`. Any characters can be entered.
|
|
1305
1307
|
* <br/><br/>
|
|
1306
1308
|
* **Read-only mode**
|
|
1307
1309
|
* <br/>
|
|
1308
|
-
*
|
|
1310
|
+
* Cells in the column will render as their string value.
|
|
1309
1311
|
*/
|
|
1310
1312
|
SkyCellType["Text"] = "skyCellText";
|
|
1311
1313
|
/**
|
|
1312
1314
|
* **Edit and read-only modes**
|
|
1313
1315
|
* <br/>
|
|
1314
|
-
*
|
|
1316
|
+
* Cells in the column will be passed to a validator function that 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/angular-data-grid/column-properties/#reference-editing) 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/angular-data-grid/column-properties/#reference-editing).
|
|
1315
1317
|
*/
|
|
1316
1318
|
SkyCellType["Validator"] = "skyCellValidator";
|
|
1317
1319
|
})(SkyCellType || (SkyCellType = {}));
|
|
@@ -2283,7 +2285,7 @@ class SkyAgGridRowDeleteDirective {
|
|
|
2283
2285
|
__classPrivateFieldSet(this, _SkyAgGridRowDeleteDirective_viewContainerRef, viewContainerRef, "f");
|
|
2284
2286
|
}
|
|
2285
2287
|
/**
|
|
2286
|
-
*
|
|
2288
|
+
* The IDs of the data in the rows where the inline delete appears.
|
|
2287
2289
|
*/
|
|
2288
2290
|
set rowDeleteIds(value) {
|
|
2289
2291
|
__classPrivateFieldSet(this, _SkyAgGridRowDeleteDirective_rowDeleteIdsInternal, value, "f");
|