@skyux/ag-grid 7.4.2 → 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 +14 -14
- package/esm2020/lib/modules/ag-grid/ag-grid-row-delete.directive.mjs +2 -2
- package/esm2020/lib/modules/ag-grid/cell-editors/cell-editor-datepicker/cell-editor-datepicker.component.mjs +3 -3
- package/esm2020/lib/modules/ag-grid/cell-renderers/cell-renderer-row-selector/cell-renderer-row-selector.component.mjs +2 -2
- package/esm2020/lib/modules/ag-grid/header/header-group.component.mjs +6 -6
- package/esm2020/lib/modules/ag-grid/header/header.component.mjs +11 -9
- package/esm2020/lib/modules/ag-grid/types/cell-editor-initial-action.mjs +2 -2
- package/esm2020/lib/modules/ag-grid/types/cell-editor-utils.mjs +2 -2
- 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 +35 -33
- package/fesm2015/skyux-ag-grid.mjs.map +1 -1
- package/fesm2020/skyux-ag-grid.mjs +34 -32
- 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/cell-renderers/cell-renderer-row-selector/cell-renderer-row-selector.component.d.ts +1 -1
- package/lib/modules/ag-grid/types/cell-editor-initial-action.d.ts +1 -1
- package/lib/modules/ag-grid/types/cell-editor-utils.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
|
@@ -121,7 +121,7 @@ function applySkyLookupPropertiesDefaults(skyLookupProperties) {
|
|
|
121
121
|
};
|
|
122
122
|
}
|
|
123
123
|
|
|
124
|
-
/** The
|
|
124
|
+
/** The initial action that a cell editor should take when initialized. */
|
|
125
125
|
var SkyAgGridCellEditorInitialAction;
|
|
126
126
|
(function (SkyAgGridCellEditorInitialAction) {
|
|
127
127
|
/** The cell should be cleared. */
|
|
@@ -136,7 +136,7 @@ var SkyAgGridCellEditorInitialAction;
|
|
|
136
136
|
|
|
137
137
|
class SkyAgGridCellEditorUtils {
|
|
138
138
|
/**
|
|
139
|
-
* Gets the
|
|
139
|
+
* Gets the initial action that a cell editor should take when initialized.
|
|
140
140
|
* @param params The editor's initializing parameters.
|
|
141
141
|
*/
|
|
142
142
|
static getEditorInitialAction(params) {
|
|
@@ -400,8 +400,8 @@ class SkyAgGridCellEditorDatepickerComponent extends PopupComponent {
|
|
|
400
400
|
const datepickerInputEl = (_a = this.datepickerInput) === null || _a === void 0 ? void 0 : _a.nativeElement;
|
|
401
401
|
if (datepickerInputEl) {
|
|
402
402
|
datepickerInputEl.focus();
|
|
403
|
-
//
|
|
404
|
-
// Watch for the first blur and fire a 'change' event as
|
|
403
|
+
// programmatically set the value of in the input; however, do not do this via the form control so that the value is not formatted when editing starts.
|
|
404
|
+
// Watch for the first blur and fire a 'change' event as programmatic changes won't queue a change event, but we need to do this so that formatting happens if the user tabs to the calendar button.
|
|
405
405
|
if (__classPrivateFieldGet(this, _SkyAgGridCellEditorDatepickerComponent_triggerType, "f") === SkyAgGridCellEditorInitialAction.Replace) {
|
|
406
406
|
fromEvent(datepickerInputEl, 'blur')
|
|
407
407
|
.pipe(first())
|
|
@@ -932,7 +932,7 @@ class SkyAgGridCellRendererRowSelectorComponent {
|
|
|
932
932
|
/**
|
|
933
933
|
* Used by agGrid to update cell value after a user triggers a refresh. It updates the cell DOM and returns true when the refresh is
|
|
934
934
|
* successful, or false if the cell should be destroyed and rerendered. If consumers have external logic that changes the value of a
|
|
935
|
-
* checkbox cell, rerendering it will
|
|
935
|
+
* checkbox cell, rerendering it will guarantee the change applies without knowing the consumer's implementation.
|
|
936
936
|
*/
|
|
937
937
|
refresh() {
|
|
938
938
|
return false;
|
|
@@ -1012,7 +1012,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.11", ngImpo
|
|
|
1012
1012
|
type: Injectable
|
|
1013
1013
|
}] });
|
|
1014
1014
|
|
|
1015
|
-
var _SkyAgGridHeaderGroupComponent_instances, _SkyAgGridHeaderGroupComponent_columnGroup, _SkyAgGridHeaderGroupComponent_isExpandedSubject, _SkyAgGridHeaderGroupComponent_subscriptions, _SkyAgGridHeaderGroupComponent_changeDetector, _SkyAgGridHeaderGroupComponent_dynamicComponentService, _SkyAgGridHeaderGroupComponent_viewInitialized,
|
|
1015
|
+
var _SkyAgGridHeaderGroupComponent_instances, _SkyAgGridHeaderGroupComponent_columnGroup, _SkyAgGridHeaderGroupComponent_isExpandedSubject, _SkyAgGridHeaderGroupComponent_subscriptions, _SkyAgGridHeaderGroupComponent_changeDetector, _SkyAgGridHeaderGroupComponent_dynamicComponentService, _SkyAgGridHeaderGroupComponent_viewInitialized, _SkyAgGridHeaderGroupComponent_agInitialized, _SkyAgGridHeaderGroupComponent_updateInlineHelp;
|
|
1016
1016
|
/**
|
|
1017
1017
|
* @internal
|
|
1018
1018
|
*/
|
|
@@ -1026,7 +1026,7 @@ class SkyAgGridHeaderGroupComponent {
|
|
|
1026
1026
|
_SkyAgGridHeaderGroupComponent_changeDetector.set(this, void 0);
|
|
1027
1027
|
_SkyAgGridHeaderGroupComponent_dynamicComponentService.set(this, void 0);
|
|
1028
1028
|
_SkyAgGridHeaderGroupComponent_viewInitialized.set(this, false);
|
|
1029
|
-
|
|
1029
|
+
_SkyAgGridHeaderGroupComponent_agInitialized.set(this, false);
|
|
1030
1030
|
__classPrivateFieldSet(this, _SkyAgGridHeaderGroupComponent_changeDetector, changeDetector, "f");
|
|
1031
1031
|
__classPrivateFieldSet(this, _SkyAgGridHeaderGroupComponent_dynamicComponentService, dynamicComponentService, "f");
|
|
1032
1032
|
this.isExpanded$ = __classPrivateFieldGet(this, _SkyAgGridHeaderGroupComponent_isExpandedSubject, "f").asObservable();
|
|
@@ -1040,7 +1040,7 @@ class SkyAgGridHeaderGroupComponent {
|
|
|
1040
1040
|
__classPrivateFieldGet(this, _SkyAgGridHeaderGroupComponent_subscriptions, "f").unsubscribe();
|
|
1041
1041
|
}
|
|
1042
1042
|
agInit(params) {
|
|
1043
|
-
__classPrivateFieldSet(this,
|
|
1043
|
+
__classPrivateFieldSet(this, _SkyAgGridHeaderGroupComponent_agInitialized, true, "f");
|
|
1044
1044
|
this.params = params;
|
|
1045
1045
|
__classPrivateFieldGet(this, _SkyAgGridHeaderGroupComponent_subscriptions, "f").unsubscribe();
|
|
1046
1046
|
if (!params) {
|
|
@@ -1063,9 +1063,9 @@ class SkyAgGridHeaderGroupComponent {
|
|
|
1063
1063
|
(_a = this.params) === null || _a === void 0 ? void 0 : _a.setExpanded($event);
|
|
1064
1064
|
}
|
|
1065
1065
|
}
|
|
1066
|
-
_SkyAgGridHeaderGroupComponent_columnGroup = new WeakMap(), _SkyAgGridHeaderGroupComponent_isExpandedSubject = new WeakMap(), _SkyAgGridHeaderGroupComponent_subscriptions = new WeakMap(), _SkyAgGridHeaderGroupComponent_changeDetector = new WeakMap(), _SkyAgGridHeaderGroupComponent_dynamicComponentService = new WeakMap(), _SkyAgGridHeaderGroupComponent_viewInitialized = new WeakMap(),
|
|
1066
|
+
_SkyAgGridHeaderGroupComponent_columnGroup = new WeakMap(), _SkyAgGridHeaderGroupComponent_isExpandedSubject = new WeakMap(), _SkyAgGridHeaderGroupComponent_subscriptions = new WeakMap(), _SkyAgGridHeaderGroupComponent_changeDetector = new WeakMap(), _SkyAgGridHeaderGroupComponent_dynamicComponentService = new WeakMap(), _SkyAgGridHeaderGroupComponent_viewInitialized = new WeakMap(), _SkyAgGridHeaderGroupComponent_agInitialized = new WeakMap(), _SkyAgGridHeaderGroupComponent_instances = new WeakSet(), _SkyAgGridHeaderGroupComponent_updateInlineHelp = function _SkyAgGridHeaderGroupComponent_updateInlineHelp() {
|
|
1067
1067
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
1068
|
-
if (!__classPrivateFieldGet(this, _SkyAgGridHeaderGroupComponent_viewInitialized, "f") || !__classPrivateFieldGet(this,
|
|
1068
|
+
if (!__classPrivateFieldGet(this, _SkyAgGridHeaderGroupComponent_viewInitialized, "f") || !__classPrivateFieldGet(this, _SkyAgGridHeaderGroupComponent_agInitialized, "f")) {
|
|
1069
1069
|
return;
|
|
1070
1070
|
}
|
|
1071
1071
|
const colGroupDef = (_b = (_a = this.params) === null || _a === void 0 ? void 0 : _a.columnGroup) === null || _b === void 0 ? void 0 : _b.getColGroupDef();
|
|
@@ -1111,7 +1111,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.11", ngImpo
|
|
|
1111
1111
|
type: Injectable
|
|
1112
1112
|
}] });
|
|
1113
1113
|
|
|
1114
|
-
var _SkyAgGridHeaderComponent_instances, _SkyAgGridHeaderComponent_subscriptions, _SkyAgGridHeaderComponent_changeDetector, _SkyAgGridHeaderComponent_dynamicComponentService, _SkyAgGridHeaderComponent_inlineHelpComponentRef, _SkyAgGridHeaderComponent_viewInitialized,
|
|
1114
|
+
var _SkyAgGridHeaderComponent_instances, _SkyAgGridHeaderComponent_subscriptions, _SkyAgGridHeaderComponent_changeDetector, _SkyAgGridHeaderComponent_dynamicComponentService, _SkyAgGridHeaderComponent_inlineHelpComponentRef, _SkyAgGridHeaderComponent_viewInitialized, _SkyAgGridHeaderComponent_agInitialized, _SkyAgGridHeaderComponent_updateInlineHelp, _SkyAgGridHeaderComponent_updateSort, _SkyAgGridHeaderComponent_updateSortIndex;
|
|
1115
1115
|
/**
|
|
1116
1116
|
* @internal
|
|
1117
1117
|
*/
|
|
@@ -1128,7 +1128,7 @@ class SkyAgGridHeaderComponent {
|
|
|
1128
1128
|
_SkyAgGridHeaderComponent_dynamicComponentService.set(this, void 0);
|
|
1129
1129
|
_SkyAgGridHeaderComponent_inlineHelpComponentRef.set(this, void 0);
|
|
1130
1130
|
_SkyAgGridHeaderComponent_viewInitialized.set(this, false);
|
|
1131
|
-
|
|
1131
|
+
_SkyAgGridHeaderComponent_agInitialized.set(this, false);
|
|
1132
1132
|
__classPrivateFieldSet(this, _SkyAgGridHeaderComponent_changeDetector, changeDetector, "f");
|
|
1133
1133
|
__classPrivateFieldSet(this, _SkyAgGridHeaderComponent_dynamicComponentService, dynamicComponentService, "f");
|
|
1134
1134
|
}
|
|
@@ -1140,7 +1140,7 @@ class SkyAgGridHeaderComponent {
|
|
|
1140
1140
|
__classPrivateFieldGet(this, _SkyAgGridHeaderComponent_subscriptions, "f").unsubscribe();
|
|
1141
1141
|
}
|
|
1142
1142
|
agInit(params) {
|
|
1143
|
-
__classPrivateFieldSet(this,
|
|
1143
|
+
__classPrivateFieldSet(this, _SkyAgGridHeaderComponent_agInitialized, true, "f");
|
|
1144
1144
|
this.params = params;
|
|
1145
1145
|
__classPrivateFieldGet(this, _SkyAgGridHeaderComponent_subscriptions, "f").unsubscribe();
|
|
1146
1146
|
if (!params) {
|
|
@@ -1175,17 +1175,19 @@ class SkyAgGridHeaderComponent {
|
|
|
1175
1175
|
(_a = this.params) === null || _a === void 0 ? void 0 : _a.showColumnMenu($event.target);
|
|
1176
1176
|
}
|
|
1177
1177
|
onSortRequested(event) {
|
|
1178
|
-
var _a;
|
|
1179
|
-
(_a = this.params) === null || _a === void 0 ? void 0 : _a.
|
|
1178
|
+
var _a, _b;
|
|
1179
|
+
if ((_a = this.params) === null || _a === void 0 ? void 0 : _a.enableSorting) {
|
|
1180
|
+
(_b = this.params) === null || _b === void 0 ? void 0 : _b.progressSort(event.shiftKey);
|
|
1181
|
+
}
|
|
1180
1182
|
}
|
|
1181
1183
|
refresh(params) {
|
|
1182
1184
|
this.agInit(params);
|
|
1183
1185
|
return false;
|
|
1184
1186
|
}
|
|
1185
1187
|
}
|
|
1186
|
-
_SkyAgGridHeaderComponent_subscriptions = new WeakMap(), _SkyAgGridHeaderComponent_changeDetector = new WeakMap(), _SkyAgGridHeaderComponent_dynamicComponentService = new WeakMap(), _SkyAgGridHeaderComponent_inlineHelpComponentRef = new WeakMap(), _SkyAgGridHeaderComponent_viewInitialized = new WeakMap(),
|
|
1188
|
+
_SkyAgGridHeaderComponent_subscriptions = new WeakMap(), _SkyAgGridHeaderComponent_changeDetector = new WeakMap(), _SkyAgGridHeaderComponent_dynamicComponentService = new WeakMap(), _SkyAgGridHeaderComponent_inlineHelpComponentRef = new WeakMap(), _SkyAgGridHeaderComponent_viewInitialized = new WeakMap(), _SkyAgGridHeaderComponent_agInitialized = new WeakMap(), _SkyAgGridHeaderComponent_instances = new WeakSet(), _SkyAgGridHeaderComponent_updateInlineHelp = function _SkyAgGridHeaderComponent_updateInlineHelp() {
|
|
1187
1189
|
var _a, _b, _c, _d, _e;
|
|
1188
|
-
if (!__classPrivateFieldGet(this, _SkyAgGridHeaderComponent_viewInitialized, "f") || !__classPrivateFieldGet(this,
|
|
1190
|
+
if (!__classPrivateFieldGet(this, _SkyAgGridHeaderComponent_viewInitialized, "f") || !__classPrivateFieldGet(this, _SkyAgGridHeaderComponent_agInitialized, "f")) {
|
|
1189
1191
|
return;
|
|
1190
1192
|
}
|
|
1191
1193
|
const inlineHelpComponent = (_a = this.params) === null || _a === void 0 ? void 0 : _a.inlineHelpComponent;
|
|
@@ -1230,10 +1232,10 @@ _SkyAgGridHeaderComponent_subscriptions = new WeakMap(), _SkyAgGridHeaderCompone
|
|
|
1230
1232
|
}
|
|
1231
1233
|
};
|
|
1232
1234
|
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 });
|
|
1233
|
-
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 });
|
|
1235
|
+
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 });
|
|
1234
1236
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.11", ngImport: i0, type: SkyAgGridHeaderComponent, decorators: [{
|
|
1235
1237
|
type: Component,
|
|
1236
|
-
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"] }]
|
|
1238
|
+
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"] }]
|
|
1237
1239
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i1.SkyDynamicComponentService }]; }, propDecorators: { inlineHelpContainer: [{
|
|
1238
1240
|
type: ViewChild,
|
|
1239
1241
|
args: ['inlineHelpContainer', { read: ElementRef, static: true }]
|
|
@@ -1266,17 +1268,17 @@ var SkyCellType;
|
|
|
1266
1268
|
/**
|
|
1267
1269
|
* **Edit mode**
|
|
1268
1270
|
* <br/>
|
|
1269
|
-
*
|
|
1271
|
+
* 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.
|
|
1270
1272
|
* <br/><br/>
|
|
1271
1273
|
* **Read-only mode**
|
|
1272
1274
|
* <br/>
|
|
1273
|
-
*
|
|
1275
|
+
* 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.
|
|
1274
1276
|
*/
|
|
1275
1277
|
SkyCellType["Autocomplete"] = "skyCellAutocomplete";
|
|
1276
1278
|
/**
|
|
1277
1279
|
* **Edit mode**
|
|
1278
1280
|
* <br/>
|
|
1279
|
-
*
|
|
1281
|
+
* Cells in the column will be edited as a currency amount.
|
|
1280
1282
|
* <br/><br/>
|
|
1281
1283
|
* **Read-only mode**
|
|
1282
1284
|
* <br/>
|
|
@@ -1292,31 +1294,31 @@ var SkyCellType;
|
|
|
1292
1294
|
/**
|
|
1293
1295
|
* **Edit mode**
|
|
1294
1296
|
* <br/>
|
|
1295
|
-
*
|
|
1297
|
+
* 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.
|
|
1296
1298
|
* <br/><br/>
|
|
1297
1299
|
* **Read-only mode**
|
|
1298
1300
|
* <br/>
|
|
1299
|
-
*
|
|
1301
|
+
* 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.
|
|
1300
1302
|
*/
|
|
1301
1303
|
SkyCellType["Date"] = "skyCellDate";
|
|
1302
1304
|
/**
|
|
1303
1305
|
* **Edit mode**
|
|
1304
1306
|
* <br/>
|
|
1305
|
-
*
|
|
1307
|
+
* 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.
|
|
1306
1308
|
* <br/><br/>
|
|
1307
1309
|
* **Read-only mode**
|
|
1308
1310
|
* <br/>
|
|
1309
|
-
*
|
|
1311
|
+
* 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.
|
|
1310
1312
|
*/
|
|
1311
1313
|
SkyCellType["Lookup"] = "skyCellLookup";
|
|
1312
1314
|
/**
|
|
1313
1315
|
* **Edit mode**
|
|
1314
1316
|
* <br/>
|
|
1315
|
-
*
|
|
1317
|
+
* Cells in the column will be edited as HTML number `inputs`. Only numbers can be entered.
|
|
1316
1318
|
* <br/><br/>
|
|
1317
1319
|
* **Read-only mode**
|
|
1318
1320
|
* <br/>
|
|
1319
|
-
*
|
|
1321
|
+
* Cells in the column will render as the number value.
|
|
1320
1322
|
*/
|
|
1321
1323
|
SkyCellType["Number"] = "skyCellNumber";
|
|
1322
1324
|
/**
|
|
@@ -1328,23 +1330,23 @@ var SkyCellType;
|
|
|
1328
1330
|
/**
|
|
1329
1331
|
* **Edit and read-only modes**
|
|
1330
1332
|
* <br/>
|
|
1331
|
-
*
|
|
1333
|
+
* 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.
|
|
1332
1334
|
*/
|
|
1333
1335
|
SkyCellType["RowSelector"] = "skyCellRowSelector";
|
|
1334
1336
|
/**
|
|
1335
1337
|
* **Edit mode**
|
|
1336
1338
|
* <br/>
|
|
1337
|
-
*
|
|
1339
|
+
* Cells in the column will be edited as HTML text `inputs`. Any characters can be entered.
|
|
1338
1340
|
* <br/><br/>
|
|
1339
1341
|
* **Read-only mode**
|
|
1340
1342
|
* <br/>
|
|
1341
|
-
*
|
|
1343
|
+
* Cells in the column will render as their string value.
|
|
1342
1344
|
*/
|
|
1343
1345
|
SkyCellType["Text"] = "skyCellText";
|
|
1344
1346
|
/**
|
|
1345
1347
|
* **Edit and read-only modes**
|
|
1346
1348
|
* <br/>
|
|
1347
|
-
*
|
|
1349
|
+
* 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).
|
|
1348
1350
|
*/
|
|
1349
1351
|
SkyCellType["Validator"] = "skyCellValidator";
|
|
1350
1352
|
})(SkyCellType || (SkyCellType = {}));
|
|
@@ -2265,7 +2267,7 @@ class SkyAgGridRowDeleteDirective {
|
|
|
2265
2267
|
__classPrivateFieldSet(this, _SkyAgGridRowDeleteDirective_viewContainerRef, viewContainerRef, "f");
|
|
2266
2268
|
}
|
|
2267
2269
|
/**
|
|
2268
|
-
*
|
|
2270
|
+
* The IDs of the data in the rows where the inline delete appears.
|
|
2269
2271
|
*/
|
|
2270
2272
|
set rowDeleteIds(value) {
|
|
2271
2273
|
__classPrivateFieldSet(this, _SkyAgGridRowDeleteDirective_rowDeleteIdsInternal, value, "f");
|