@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) {
|
|
@@ -391,8 +391,8 @@ class SkyAgGridCellEditorDatepickerComponent extends PopupComponent {
|
|
|
391
391
|
const datepickerInputEl = this.datepickerInput?.nativeElement;
|
|
392
392
|
if (datepickerInputEl) {
|
|
393
393
|
datepickerInputEl.focus();
|
|
394
|
-
//
|
|
395
|
-
// Watch for the first blur and fire a 'change' event as
|
|
394
|
+
// 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.
|
|
395
|
+
// 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.
|
|
396
396
|
if (__classPrivateFieldGet(this, _SkyAgGridCellEditorDatepickerComponent_triggerType, "f") === SkyAgGridCellEditorInitialAction.Replace) {
|
|
397
397
|
fromEvent(datepickerInputEl, 'blur')
|
|
398
398
|
.pipe(first())
|
|
@@ -908,7 +908,7 @@ class SkyAgGridCellRendererRowSelectorComponent {
|
|
|
908
908
|
/**
|
|
909
909
|
* 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
|
|
910
910
|
* successful, or false if the cell should be destroyed and rerendered. If consumers have external logic that changes the value of a
|
|
911
|
-
* checkbox cell, rerendering it will
|
|
911
|
+
* checkbox cell, rerendering it will guarantee the change applies without knowing the consumer's implementation.
|
|
912
912
|
*/
|
|
913
913
|
refresh() {
|
|
914
914
|
return false;
|
|
@@ -987,7 +987,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.11", ngImpo
|
|
|
987
987
|
type: Injectable
|
|
988
988
|
}] });
|
|
989
989
|
|
|
990
|
-
var _SkyAgGridHeaderGroupComponent_instances, _SkyAgGridHeaderGroupComponent_columnGroup, _SkyAgGridHeaderGroupComponent_isExpandedSubject, _SkyAgGridHeaderGroupComponent_subscriptions, _SkyAgGridHeaderGroupComponent_changeDetector, _SkyAgGridHeaderGroupComponent_dynamicComponentService, _SkyAgGridHeaderGroupComponent_viewInitialized,
|
|
990
|
+
var _SkyAgGridHeaderGroupComponent_instances, _SkyAgGridHeaderGroupComponent_columnGroup, _SkyAgGridHeaderGroupComponent_isExpandedSubject, _SkyAgGridHeaderGroupComponent_subscriptions, _SkyAgGridHeaderGroupComponent_changeDetector, _SkyAgGridHeaderGroupComponent_dynamicComponentService, _SkyAgGridHeaderGroupComponent_viewInitialized, _SkyAgGridHeaderGroupComponent_agInitialized, _SkyAgGridHeaderGroupComponent_updateInlineHelp;
|
|
991
991
|
/**
|
|
992
992
|
* @internal
|
|
993
993
|
*/
|
|
@@ -1001,7 +1001,7 @@ class SkyAgGridHeaderGroupComponent {
|
|
|
1001
1001
|
_SkyAgGridHeaderGroupComponent_changeDetector.set(this, void 0);
|
|
1002
1002
|
_SkyAgGridHeaderGroupComponent_dynamicComponentService.set(this, void 0);
|
|
1003
1003
|
_SkyAgGridHeaderGroupComponent_viewInitialized.set(this, false);
|
|
1004
|
-
|
|
1004
|
+
_SkyAgGridHeaderGroupComponent_agInitialized.set(this, false);
|
|
1005
1005
|
__classPrivateFieldSet(this, _SkyAgGridHeaderGroupComponent_changeDetector, changeDetector, "f");
|
|
1006
1006
|
__classPrivateFieldSet(this, _SkyAgGridHeaderGroupComponent_dynamicComponentService, dynamicComponentService, "f");
|
|
1007
1007
|
this.isExpanded$ = __classPrivateFieldGet(this, _SkyAgGridHeaderGroupComponent_isExpandedSubject, "f").asObservable();
|
|
@@ -1015,7 +1015,7 @@ class SkyAgGridHeaderGroupComponent {
|
|
|
1015
1015
|
__classPrivateFieldGet(this, _SkyAgGridHeaderGroupComponent_subscriptions, "f").unsubscribe();
|
|
1016
1016
|
}
|
|
1017
1017
|
agInit(params) {
|
|
1018
|
-
__classPrivateFieldSet(this,
|
|
1018
|
+
__classPrivateFieldSet(this, _SkyAgGridHeaderGroupComponent_agInitialized, true, "f");
|
|
1019
1019
|
this.params = params;
|
|
1020
1020
|
__classPrivateFieldGet(this, _SkyAgGridHeaderGroupComponent_subscriptions, "f").unsubscribe();
|
|
1021
1021
|
if (!params) {
|
|
@@ -1037,8 +1037,8 @@ class SkyAgGridHeaderGroupComponent {
|
|
|
1037
1037
|
this.params?.setExpanded($event);
|
|
1038
1038
|
}
|
|
1039
1039
|
}
|
|
1040
|
-
_SkyAgGridHeaderGroupComponent_columnGroup = new WeakMap(), _SkyAgGridHeaderGroupComponent_isExpandedSubject = new WeakMap(), _SkyAgGridHeaderGroupComponent_subscriptions = new WeakMap(), _SkyAgGridHeaderGroupComponent_changeDetector = new WeakMap(), _SkyAgGridHeaderGroupComponent_dynamicComponentService = new WeakMap(), _SkyAgGridHeaderGroupComponent_viewInitialized = new WeakMap(),
|
|
1041
|
-
if (!__classPrivateFieldGet(this, _SkyAgGridHeaderGroupComponent_viewInitialized, "f") || !__classPrivateFieldGet(this,
|
|
1040
|
+
_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() {
|
|
1041
|
+
if (!__classPrivateFieldGet(this, _SkyAgGridHeaderGroupComponent_viewInitialized, "f") || !__classPrivateFieldGet(this, _SkyAgGridHeaderGroupComponent_agInitialized, "f")) {
|
|
1042
1042
|
return;
|
|
1043
1043
|
}
|
|
1044
1044
|
const colGroupDef = this.params?.columnGroup?.getColGroupDef();
|
|
@@ -1084,7 +1084,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.11", ngImpo
|
|
|
1084
1084
|
type: Injectable
|
|
1085
1085
|
}] });
|
|
1086
1086
|
|
|
1087
|
-
var _SkyAgGridHeaderComponent_instances, _SkyAgGridHeaderComponent_subscriptions, _SkyAgGridHeaderComponent_changeDetector, _SkyAgGridHeaderComponent_dynamicComponentService, _SkyAgGridHeaderComponent_inlineHelpComponentRef, _SkyAgGridHeaderComponent_viewInitialized,
|
|
1087
|
+
var _SkyAgGridHeaderComponent_instances, _SkyAgGridHeaderComponent_subscriptions, _SkyAgGridHeaderComponent_changeDetector, _SkyAgGridHeaderComponent_dynamicComponentService, _SkyAgGridHeaderComponent_inlineHelpComponentRef, _SkyAgGridHeaderComponent_viewInitialized, _SkyAgGridHeaderComponent_agInitialized, _SkyAgGridHeaderComponent_updateInlineHelp, _SkyAgGridHeaderComponent_updateSort, _SkyAgGridHeaderComponent_updateSortIndex;
|
|
1088
1088
|
/**
|
|
1089
1089
|
* @internal
|
|
1090
1090
|
*/
|
|
@@ -1101,7 +1101,7 @@ class SkyAgGridHeaderComponent {
|
|
|
1101
1101
|
_SkyAgGridHeaderComponent_dynamicComponentService.set(this, void 0);
|
|
1102
1102
|
_SkyAgGridHeaderComponent_inlineHelpComponentRef.set(this, void 0);
|
|
1103
1103
|
_SkyAgGridHeaderComponent_viewInitialized.set(this, false);
|
|
1104
|
-
|
|
1104
|
+
_SkyAgGridHeaderComponent_agInitialized.set(this, false);
|
|
1105
1105
|
__classPrivateFieldSet(this, _SkyAgGridHeaderComponent_changeDetector, changeDetector, "f");
|
|
1106
1106
|
__classPrivateFieldSet(this, _SkyAgGridHeaderComponent_dynamicComponentService, dynamicComponentService, "f");
|
|
1107
1107
|
}
|
|
@@ -1113,7 +1113,7 @@ class SkyAgGridHeaderComponent {
|
|
|
1113
1113
|
__classPrivateFieldGet(this, _SkyAgGridHeaderComponent_subscriptions, "f").unsubscribe();
|
|
1114
1114
|
}
|
|
1115
1115
|
agInit(params) {
|
|
1116
|
-
__classPrivateFieldSet(this,
|
|
1116
|
+
__classPrivateFieldSet(this, _SkyAgGridHeaderComponent_agInitialized, true, "f");
|
|
1117
1117
|
this.params = params;
|
|
1118
1118
|
__classPrivateFieldGet(this, _SkyAgGridHeaderComponent_subscriptions, "f").unsubscribe();
|
|
1119
1119
|
if (!params) {
|
|
@@ -1147,15 +1147,17 @@ 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);
|
|
1154
1156
|
return false;
|
|
1155
1157
|
}
|
|
1156
1158
|
}
|
|
1157
|
-
_SkyAgGridHeaderComponent_subscriptions = new WeakMap(), _SkyAgGridHeaderComponent_changeDetector = new WeakMap(), _SkyAgGridHeaderComponent_dynamicComponentService = new WeakMap(), _SkyAgGridHeaderComponent_inlineHelpComponentRef = new WeakMap(), _SkyAgGridHeaderComponent_viewInitialized = new WeakMap(),
|
|
1158
|
-
if (!__classPrivateFieldGet(this, _SkyAgGridHeaderComponent_viewInitialized, "f") || !__classPrivateFieldGet(this,
|
|
1159
|
+
_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() {
|
|
1160
|
+
if (!__classPrivateFieldGet(this, _SkyAgGridHeaderComponent_viewInitialized, "f") || !__classPrivateFieldGet(this, _SkyAgGridHeaderComponent_agInitialized, "f")) {
|
|
1159
1161
|
return;
|
|
1160
1162
|
}
|
|
1161
1163
|
const inlineHelpComponent = this.params?.inlineHelpComponent;
|
|
@@ -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");
|