@skyux/ag-grid 13.11.4 → 13.12.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/fesm2022/skyux-ag-grid-testing.mjs +69 -0
- package/fesm2022/skyux-ag-grid-testing.mjs.map +1 -0
- package/fesm2022/skyux-ag-grid.mjs +53 -18
- package/fesm2022/skyux-ag-grid.mjs.map +1 -1
- package/index.d.ts +28 -12
- package/package.json +18 -13
- package/testing/index.d.ts +39 -0
package/index.d.ts
CHANGED
|
@@ -51,7 +51,7 @@ declare class SkyAgGridWrapperComponent implements AfterContentInit, AfterViewIn
|
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
/**
|
|
54
|
-
*
|
|
54
|
+
* Connects `SkyAgGridWrapperComponent` with a `SkyDataViewComponent` to control the grid using a `SkyDataManagerService` instance.
|
|
55
55
|
*/
|
|
56
56
|
declare class SkyAgGridDataManagerAdapterDirective implements OnDestroy {
|
|
57
57
|
#private;
|
|
@@ -93,6 +93,11 @@ interface SkyAgGridRowDeleteConfirmArgs {
|
|
|
93
93
|
id: string;
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
+
/**
|
|
97
|
+
* Enables inline row delete functionality for an AG Grid when included
|
|
98
|
+
* on the `SkyAgGridWrapperComponent` element. The directive uses
|
|
99
|
+
* `rowDeleteIds` to determine which rows to add inline delete options to.
|
|
100
|
+
*/
|
|
96
101
|
declare class SkyAgGridRowDeleteDirective implements AfterContentInit, AfterViewInit, OnDestroy {
|
|
97
102
|
#private;
|
|
98
103
|
/**
|
|
@@ -116,6 +121,17 @@ declare class SkyAgGridRowDeleteDirective implements AfterContentInit, AfterView
|
|
|
116
121
|
static ɵdir: i0.ɵɵDirectiveDeclaration<SkyAgGridRowDeleteDirective, "[skyAgGridRowDelete]", never, { "rowDeleteIds": { "alias": "rowDeleteIds"; "required": false; "isSignal": true; }; }, { "rowDeleteIds": "rowDeleteIdsChange"; "rowDeleteCancel": "rowDeleteCancel"; "rowDeleteConfirm": "rowDeleteConfirm"; }, ["agGrid"], never, true, never>;
|
|
117
122
|
}
|
|
118
123
|
|
|
124
|
+
/**
|
|
125
|
+
* Provides `SkyAgGridWrapperComponent` and `SkyAgGridRowDeleteDirective`, but to use
|
|
126
|
+
* AG Grid in your application, you must also load `AgGridAngular` from `ag-grid-angular` and
|
|
127
|
+
* `ModuleRegistry` from `ag-grid-community`. For more information, see
|
|
128
|
+
* [AG Grid modules](https://www.ag-grid.com/angular-data-grid/modules/).
|
|
129
|
+
*
|
|
130
|
+
* @example
|
|
131
|
+
* ```typescript
|
|
132
|
+
* ModuleRegistry.registerModules([AllCommunityModule]);
|
|
133
|
+
* ```
|
|
134
|
+
*/
|
|
119
135
|
declare class SkyAgGridModule {
|
|
120
136
|
static ɵfac: i0.ɵɵFactoryDeclaration<SkyAgGridModule, never>;
|
|
121
137
|
static ɵmod: i0.ɵɵNgModuleDeclaration<SkyAgGridModule, never, [typeof i1$1.AgGridAngular, typeof i2.CommonModule, typeof SkyAgGridDataManagerAdapterDirective, typeof SkyAgGridResourcesModule, typeof SkyAgGridRowDeleteDirective, typeof SkyAgGridWrapperComponent], [typeof SkyAgGridDataManagerAdapterDirective, typeof SkyAgGridRowDeleteDirective, typeof SkyAgGridWrapperComponent]>;
|
|
@@ -139,7 +155,7 @@ declare class SkyAgGridAdapterService {
|
|
|
139
155
|
|
|
140
156
|
interface SkyGetGridOptionsArgs<T = any> {
|
|
141
157
|
/**
|
|
142
|
-
* The [AG Grid `gridOptions`](https://www.ag-grid.com/
|
|
158
|
+
* The [AG Grid `gridOptions`](https://www.ag-grid.com/angular-data-grid/grid-options/) that override default SKY UX `gridOptions`. SKY UX column types for components and column `cellClassRules` enforce required cell styling and cannot be overridden.
|
|
143
159
|
*/
|
|
144
160
|
gridOptions: GridOptions<T>;
|
|
145
161
|
/**
|
|
@@ -161,13 +177,13 @@ declare class SkyAgGridService implements OnDestroy {
|
|
|
161
177
|
constructor(agGridAdapterService: SkyAgGridAdapterService, themeSvc?: SkyThemeService, resources?: SkyLibResourcesService);
|
|
162
178
|
ngOnDestroy(): void;
|
|
163
179
|
/**
|
|
164
|
-
* Returns [AG Grid `gridOptions`](https://www.ag-grid.com/
|
|
180
|
+
* Returns [AG Grid `gridOptions`](https://www.ag-grid.com/angular-data-grid/grid-options/) with default SKY UX options, styling, and cell renderers registered for read-only grids.
|
|
165
181
|
* @param args
|
|
166
182
|
* @returns
|
|
167
183
|
*/
|
|
168
184
|
getGridOptions<T = any>(args: SkyGetGridOptionsArgs<T>): GridOptions<T>;
|
|
169
185
|
/**
|
|
170
|
-
* Returns [AG Grid `gridOptions`](https://www.ag-grid.com/
|
|
186
|
+
* Returns [AG Grid `gridOptions`](https://www.ag-grid.com/angular-data-grid/grid-options/) with default SKY UX options, styling, and cell editors registered for editable grids.
|
|
171
187
|
* @param args
|
|
172
188
|
* @returns
|
|
173
189
|
*/
|
|
@@ -451,17 +467,17 @@ declare class SkyAgGridCellEditorUtils {
|
|
|
451
467
|
|
|
452
468
|
/**
|
|
453
469
|
* These column types can be used by setting the AG Grid [column definition `type`](https://www.ag-grid.com/angular-data-grid/column-properties/#reference-editing) to one of the following values.
|
|
454
|
-
* Any [SKY UX component](https://developer.blackbaud.com/skyux/components) can be made into a [cell editor](https://www.ag-grid.com/
|
|
470
|
+
* Any [SKY UX component](https://developer.blackbaud.com/skyux/components) can be made into a [cell editor](https://www.ag-grid.com/angular-data-grid/cell-editors/) or [cell renderer](https://www.ag-grid.com/angular-data-grid/component-cell-renderer/) component. If you would like to use a component that does not have a column definition yet, please consider [contributing it](https://github.com/blackbaud/skyux/blob/main/CONTRIBUTING.md) to the SKY UX data entry grid module.
|
|
455
471
|
*/
|
|
456
472
|
declare enum SkyCellType {
|
|
457
473
|
/**
|
|
458
474
|
* **Edit mode**
|
|
459
475
|
*
|
|
460
|
-
* 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/
|
|
476
|
+
* 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/angular-data-grid/cell-editing/) based on other cell values. See the demo for an example. Text can be entered and a value selected from the provided list.
|
|
461
477
|
*
|
|
462
478
|
* **Read-only mode**
|
|
463
479
|
*
|
|
464
|
-
* 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/
|
|
480
|
+
* 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/angular-data-grid/value-formatters/) on the column definition.
|
|
465
481
|
*/
|
|
466
482
|
Autocomplete = "skyCellAutocomplete",
|
|
467
483
|
/**
|
|
@@ -483,21 +499,21 @@ declare enum SkyCellType {
|
|
|
483
499
|
/**
|
|
484
500
|
* **Edit mode**
|
|
485
501
|
*
|
|
486
|
-
* 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/
|
|
502
|
+
* 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/angular-data-grid/cell-editing/) based on other cell values. See the demo for an example. Date values can be entered.
|
|
487
503
|
*
|
|
488
504
|
* **Read-only mode**
|
|
489
505
|
*
|
|
490
|
-
* 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/
|
|
506
|
+
* 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/angular-data-grid/value-formatters/) on the column definition. See the demo for an example.
|
|
491
507
|
*/
|
|
492
508
|
Date = "skyCellDate",
|
|
493
509
|
/**
|
|
494
510
|
* **Edit mode**
|
|
495
511
|
*
|
|
496
|
-
* 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/
|
|
512
|
+
* 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/angular-data-grid/cell-editing/) based on other cell values. See the demo for an example. Text can be entered and a value selected from the provided list.
|
|
497
513
|
*
|
|
498
514
|
* **Read-only mode**
|
|
499
515
|
*
|
|
500
|
-
* 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/
|
|
516
|
+
* 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/angular-data-grid/value-formatters/) on the column definition.
|
|
501
517
|
*/
|
|
502
518
|
Lookup = "skyCellLookup",
|
|
503
519
|
/**
|
|
@@ -525,7 +541,7 @@ declare enum SkyCellType {
|
|
|
525
541
|
/**
|
|
526
542
|
* **Edit and read-only modes**
|
|
527
543
|
*
|
|
528
|
-
* 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/
|
|
544
|
+
* 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/angular-data-grid/row-object/) will be updated to reflect the selected state.
|
|
529
545
|
*/
|
|
530
546
|
RowSelector = "skyCellRowSelector",
|
|
531
547
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skyux/ag-grid",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.12.0",
|
|
4
4
|
"author": "Blackbaud, Inc.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"blackbaud",
|
|
@@ -25,24 +25,29 @@
|
|
|
25
25
|
".": {
|
|
26
26
|
"types": "./index.d.ts",
|
|
27
27
|
"default": "./fesm2022/skyux-ag-grid.mjs"
|
|
28
|
+
},
|
|
29
|
+
"./testing": {
|
|
30
|
+
"types": "./testing/index.d.ts",
|
|
31
|
+
"default": "./fesm2022/skyux-ag-grid-testing.mjs"
|
|
28
32
|
}
|
|
29
33
|
},
|
|
30
34
|
"peerDependencies": {
|
|
35
|
+
"@angular/cdk": "^20.2.14",
|
|
31
36
|
"@angular/common": "^20.3.15",
|
|
32
37
|
"@angular/core": "^20.3.15",
|
|
33
38
|
"@angular/forms": "^20.3.15",
|
|
34
|
-
"@skyux/autonumeric": "13.
|
|
35
|
-
"@skyux/core": "13.
|
|
36
|
-
"@skyux/data-manager": "13.
|
|
37
|
-
"@skyux/datetime": "13.
|
|
38
|
-
"@skyux/forms": "13.
|
|
39
|
-
"@skyux/i18n": "13.
|
|
40
|
-
"@skyux/icon": "13.
|
|
41
|
-
"@skyux/indicators": "13.
|
|
42
|
-
"@skyux/layout": "13.
|
|
43
|
-
"@skyux/lookup": "13.
|
|
44
|
-
"@skyux/popovers": "13.
|
|
45
|
-
"@skyux/theme": "13.
|
|
39
|
+
"@skyux/autonumeric": "13.12.0",
|
|
40
|
+
"@skyux/core": "13.12.0",
|
|
41
|
+
"@skyux/data-manager": "13.12.0",
|
|
42
|
+
"@skyux/datetime": "13.12.0",
|
|
43
|
+
"@skyux/forms": "13.12.0",
|
|
44
|
+
"@skyux/i18n": "13.12.0",
|
|
45
|
+
"@skyux/icon": "13.12.0",
|
|
46
|
+
"@skyux/indicators": "13.12.0",
|
|
47
|
+
"@skyux/layout": "13.12.0",
|
|
48
|
+
"@skyux/lookup": "13.12.0",
|
|
49
|
+
"@skyux/popovers": "13.12.0",
|
|
50
|
+
"@skyux/theme": "13.12.0",
|
|
46
51
|
"ag-grid-angular": "^34.3.1",
|
|
47
52
|
"ag-grid-community": "^34.3.1"
|
|
48
53
|
},
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { HarnessPredicate } from '@angular/cdk/testing';
|
|
2
|
+
import { SkyHarnessFilters, SkyComponentHarness } from '@skyux/core/testing';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* A set of criteria that can be used to filter a list of `SkyAgGridWrapperHarness` instances.
|
|
6
|
+
*/
|
|
7
|
+
interface SkyAgGridWrapperHarnessFilters extends SkyHarnessFilters {
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Harness for interacting with SKY UX AG Grid components in tests.
|
|
12
|
+
*/
|
|
13
|
+
declare class SkyAgGridWrapperHarness extends SkyComponentHarness {
|
|
14
|
+
#private;
|
|
15
|
+
/**
|
|
16
|
+
* @internal
|
|
17
|
+
*/
|
|
18
|
+
static hostSelector: string;
|
|
19
|
+
/**
|
|
20
|
+
* Gets a `HarnessPredicate` that can be used to search for a
|
|
21
|
+
* `SkyAgGridWrapperHarness` that meets certain criteria
|
|
22
|
+
*/
|
|
23
|
+
static with(filters: SkyAgGridWrapperHarnessFilters): HarnessPredicate<SkyAgGridWrapperHarness>;
|
|
24
|
+
/**
|
|
25
|
+
* Checks whether the grid is ready.
|
|
26
|
+
*/
|
|
27
|
+
isGridReady(): Promise<boolean>;
|
|
28
|
+
/**
|
|
29
|
+
* Retrieves the IDs of the currently displayed columns.
|
|
30
|
+
*/
|
|
31
|
+
getDisplayedColumnIds(): Promise<string[]>;
|
|
32
|
+
/**
|
|
33
|
+
* Retrieves the header names of the currently displayed columns.
|
|
34
|
+
*/
|
|
35
|
+
getDisplayedColumnHeaderNames(): Promise<string[]>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export { SkyAgGridWrapperHarness };
|
|
39
|
+
export type { SkyAgGridWrapperHarnessFilters };
|