@skyux/ag-grid 6.2.1 → 6.3.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.
Files changed (35) hide show
  1. package/documentation.json +520 -329
  2. package/esm2020/index.mjs +3 -1
  3. package/esm2020/lib/modules/ag-grid/ag-grid.service.mjs +2 -2
  4. package/esm2020/lib/modules/ag-grid/cell-editors/cell-editor-autocomplete/cell-editor-autocomplete.component.mjs +38 -5
  5. package/esm2020/lib/modules/ag-grid/cell-editors/cell-editor-autocomplete/cell-editor-autocomplete.module.mjs +15 -5
  6. package/esm2020/lib/modules/ag-grid/cell-editors/cell-editor-currency/cell-editor-currency.component.mjs +44 -9
  7. package/esm2020/lib/modules/ag-grid/cell-editors/cell-editor-currency/cell-editor-currency.module.mjs +15 -5
  8. package/esm2020/lib/modules/ag-grid/cell-editors/cell-editor-datepicker/cell-editor-datepicker.component.mjs +60 -13
  9. package/esm2020/lib/modules/ag-grid/cell-editors/cell-editor-datepicker/cell-editor-datepicker.module.mjs +5 -5
  10. package/esm2020/lib/modules/ag-grid/cell-editors/cell-editor-lookup/cell-editor-lookup.component.mjs +37 -10
  11. package/esm2020/lib/modules/ag-grid/cell-editors/cell-editor-number/cell-editor-number.component.mjs +35 -5
  12. package/esm2020/lib/modules/ag-grid/cell-editors/cell-editor-number/cell-editor-number.module.mjs +5 -5
  13. package/esm2020/lib/modules/ag-grid/cell-editors/cell-editor-text/cell-editor-text.component.mjs +34 -5
  14. package/esm2020/lib/modules/ag-grid/cell-editors/cell-editor-text/cell-editor-text.module.mjs +5 -5
  15. package/esm2020/lib/modules/ag-grid/types/cell-editor-initial-action.mjs +13 -0
  16. package/esm2020/lib/modules/ag-grid/types/cell-editor-utils.mjs +31 -0
  17. package/fesm2015/skyux-ag-grid.mjs +301 -63
  18. package/fesm2015/skyux-ag-grid.mjs.map +1 -1
  19. package/fesm2020/skyux-ag-grid.mjs +299 -60
  20. package/fesm2020/skyux-ag-grid.mjs.map +1 -1
  21. package/index.d.ts +2 -0
  22. package/lib/modules/ag-grid/cell-editors/cell-editor-autocomplete/cell-editor-autocomplete.component.d.ts +4 -2
  23. package/lib/modules/ag-grid/cell-editors/cell-editor-autocomplete/cell-editor-autocomplete.module.d.ts +1 -1
  24. package/lib/modules/ag-grid/cell-editors/cell-editor-currency/cell-editor-currency.component.d.ts +8 -3
  25. package/lib/modules/ag-grid/cell-editors/cell-editor-currency/cell-editor-currency.module.d.ts +1 -1
  26. package/lib/modules/ag-grid/cell-editors/cell-editor-datepicker/cell-editor-datepicker.component.d.ts +7 -4
  27. package/lib/modules/ag-grid/cell-editors/cell-editor-datepicker/cell-editor-datepicker.module.d.ts +1 -1
  28. package/lib/modules/ag-grid/cell-editors/cell-editor-lookup/cell-editor-lookup.component.d.ts +2 -1
  29. package/lib/modules/ag-grid/cell-editors/cell-editor-number/cell-editor-number.component.d.ts +4 -2
  30. package/lib/modules/ag-grid/cell-editors/cell-editor-number/cell-editor-number.module.d.ts +1 -1
  31. package/lib/modules/ag-grid/cell-editors/cell-editor-text/cell-editor-text.component.d.ts +4 -2
  32. package/lib/modules/ag-grid/cell-editors/cell-editor-text/cell-editor-text.module.d.ts +1 -1
  33. package/lib/modules/ag-grid/types/cell-editor-initial-action.d.ts +11 -0
  34. package/lib/modules/ag-grid/types/cell-editor-utils.d.ts +9 -0
  35. package/package.json +12 -12
package/index.d.ts CHANGED
@@ -4,6 +4,8 @@ export * from './lib/modules/ag-grid/types/ag-grid-row-delete-cancel-args';
4
4
  export * from './lib/modules/ag-grid/types/ag-grid-row-delete-confirm-args';
5
5
  export * from './lib/modules/ag-grid/types/autocomplete-properties';
6
6
  export * from './lib/modules/ag-grid/types/cell-class';
7
+ export * from './lib/modules/ag-grid/types/cell-editor-initial-action';
8
+ export * from './lib/modules/ag-grid/types/cell-editor-utils';
7
9
  export * from './lib/modules/ag-grid/types/cell-type';
8
10
  export * from './lib/modules/ag-grid/types/currency-properties';
9
11
  export * from './lib/modules/ag-grid/types/datepicker-properties';
@@ -1,4 +1,5 @@
1
1
  import { ElementRef } from '@angular/core';
2
+ import { FormGroup } from '@angular/forms';
2
3
  import { ICellEditorAngularComp } from 'ag-grid-angular';
3
4
  import { SkyAgGridAutocompleteProperties } from '../../types/autocomplete-properties';
4
5
  import { SkyCellEditorAutocompleteParams } from '../../types/cell-editor-autocomplete-params';
@@ -7,15 +8,16 @@ import * as i0 from "@angular/core";
7
8
  * @internal
8
9
  */
9
10
  export declare class SkyAgGridCellEditorAutocompleteComponent implements ICellEditorAngularComp {
10
- currentSelection: any;
11
+ #private;
11
12
  columnHeader: string;
13
+ editorForm: FormGroup;
12
14
  rowNumber: number;
13
15
  skyComponentProperties: SkyAgGridAutocompleteProperties;
14
16
  private params;
15
17
  input: ElementRef;
16
18
  agInit(params: SkyCellEditorAutocompleteParams): void;
17
19
  afterGuiAttached(): void;
18
- getValue(): any;
20
+ getValue(): any | undefined;
19
21
  static ɵfac: i0.ɵɵFactoryDeclaration<SkyAgGridCellEditorAutocompleteComponent, never>;
20
22
  static ɵcmp: i0.ɵɵComponentDeclaration<SkyAgGridCellEditorAutocompleteComponent, "sky-ag-grid-cell-editor-autocomplete", never, {}, {}, never, never>;
21
23
  }
@@ -5,6 +5,6 @@ import * as i3 from "../../../shared/sky-ag-grid-resources.module";
5
5
  import * as i4 from "@skyux/lookup";
6
6
  export declare class SkyAgGridCellEditorAutocompleteModule {
7
7
  static ɵfac: i0.ɵɵFactoryDeclaration<SkyAgGridCellEditorAutocompleteModule, never>;
8
- static ɵmod: i0.ɵɵNgModuleDeclaration<SkyAgGridCellEditorAutocompleteModule, [typeof i1.SkyAgGridCellEditorAutocompleteComponent], [typeof i2.FormsModule, typeof i3.SkyAgGridResourcesModule, typeof i4.SkyAutocompleteModule], [typeof i1.SkyAgGridCellEditorAutocompleteComponent]>;
8
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SkyAgGridCellEditorAutocompleteModule, [typeof i1.SkyAgGridCellEditorAutocompleteComponent], [typeof i2.ReactiveFormsModule, typeof i3.SkyAgGridResourcesModule, typeof i4.SkyAutocompleteModule], [typeof i1.SkyAgGridCellEditorAutocompleteComponent]>;
9
9
  static ɵinj: i0.ɵɵInjectorDeclaration<SkyAgGridCellEditorAutocompleteModule>;
10
10
  }
@@ -1,3 +1,5 @@
1
+ import { ChangeDetectorRef } from '@angular/core';
2
+ import { FormGroup } from '@angular/forms';
1
3
  import { ICellEditorAngularComp } from 'ag-grid-angular';
2
4
  import { SkyCellEditorCurrencyParams } from '../../types/cell-editor-currency-params';
3
5
  import { SkyAgGridCurrencyProperties } from '../../types/currency-properties';
@@ -6,14 +8,17 @@ import * as i0 from "@angular/core";
6
8
  * @internal
7
9
  */
8
10
  export declare class SkyAgGridCellEditorCurrencyComponent implements ICellEditorAngularComp {
9
- value: number;
11
+ #private;
12
+ private changeDetector;
10
13
  skyComponentProperties: SkyAgGridCurrencyProperties;
11
14
  columnHeader: string;
12
15
  columnWidth: number;
16
+ editorForm: FormGroup;
17
+ params: SkyCellEditorCurrencyParams;
13
18
  rowHeightWithoutBorders: number;
14
19
  rowNumber: number;
15
- private params;
16
20
  private input;
21
+ constructor(changeDetector: ChangeDetectorRef);
17
22
  /**
18
23
  * agInit is called by agGrid once after the editor is created and provides the editor with the information it needs.
19
24
  * @param params The cell editor params that include data about the cell, column, row, and grid.
@@ -26,7 +31,7 @@ export declare class SkyAgGridCellEditorCurrencyComponent implements ICellEditor
26
31
  /**
27
32
  * getValue is called by agGrid when editing is stopped to get the new value of the cell.
28
33
  */
29
- getValue(): number;
34
+ getValue(): number | undefined;
30
35
  /**
31
36
  * The autoNumeric library's event handler suppresses the escape key event. This additional handler re-enables AG Grid's default functionality.
32
37
  */
@@ -5,6 +5,6 @@ import * as i3 from "@angular/forms";
5
5
  import * as i4 from "@skyux/autonumeric";
6
6
  export declare class SkyAgGridCellEditorCurrencyModule {
7
7
  static ɵfac: i0.ɵɵFactoryDeclaration<SkyAgGridCellEditorCurrencyModule, never>;
8
- static ɵmod: i0.ɵɵNgModuleDeclaration<SkyAgGridCellEditorCurrencyModule, [typeof i1.SkyAgGridCellEditorCurrencyComponent], [typeof i2.SkyAgGridResourcesModule, typeof i3.FormsModule, typeof i4.SkyAutonumericModule], [typeof i1.SkyAgGridCellEditorCurrencyComponent]>;
8
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SkyAgGridCellEditorCurrencyModule, [typeof i1.SkyAgGridCellEditorCurrencyComponent], [typeof i2.SkyAgGridResourcesModule, typeof i3.ReactiveFormsModule, typeof i4.SkyAutonumericModule], [typeof i1.SkyAgGridCellEditorCurrencyComponent]>;
9
9
  static ɵinj: i0.ɵɵInjectorDeclaration<SkyAgGridCellEditorCurrencyModule>;
10
10
  }
@@ -1,3 +1,5 @@
1
+ import { ChangeDetectorRef } from '@angular/core';
2
+ import { FormGroup } from '@angular/forms';
1
3
  import { SkyThemeService } from '@skyux/theme';
2
4
  import { ICellEditorAngularComp } from 'ag-grid-angular';
3
5
  import { PopupComponent } from 'ag-grid-community';
@@ -8,15 +10,17 @@ import * as i0 from "@angular/core";
8
10
  * @internal
9
11
  */
10
12
  export declare class SkyAgGridCellEditorDatepickerComponent extends PopupComponent implements ICellEditorAngularComp {
13
+ #private;
14
+ private changeDetector;
11
15
  private themeSvc?;
12
16
  columnWidth: number;
13
- currentDate: Date;
14
17
  columnWidthWithoutBorders: number;
18
+ editorForm: FormGroup;
15
19
  rowHeightWithoutBorders: number;
16
20
  skyComponentProperties: SkyAgGridDatepickerProperties;
17
21
  private params;
18
22
  private datepickerInput;
19
- constructor(themeSvc?: SkyThemeService);
23
+ constructor(changeDetector: ChangeDetectorRef, themeSvc?: SkyThemeService);
20
24
  /**
21
25
  * agInit is called by agGrid once after the editor is created and provides the editor with the information it needs.
22
26
  * @param params The cell editor params that include data about the cell, column, row, and grid.
@@ -30,7 +34,6 @@ export declare class SkyAgGridCellEditorDatepickerComponent extends PopupCompone
30
34
  * getValue is called by agGrid when editing is stopped to get the new value of the cell.
31
35
  */
32
36
  getValue(): Date;
33
- focusOnDatepickerInput(): void;
34
- static ɵfac: i0.ɵɵFactoryDeclaration<SkyAgGridCellEditorDatepickerComponent, [{ optional: true; }]>;
37
+ static ɵfac: i0.ɵɵFactoryDeclaration<SkyAgGridCellEditorDatepickerComponent, [null, { optional: true; }]>;
35
38
  static ɵcmp: i0.ɵɵComponentDeclaration<SkyAgGridCellEditorDatepickerComponent, "sky-ag-grid-cell-editor-datepicker", never, {}, {}, never, never>;
36
39
  }
@@ -4,6 +4,6 @@ import * as i2 from "@skyux/datetime";
4
4
  import * as i3 from "@angular/forms";
5
5
  export declare class SkyAgGridCellEditorDatepickerModule {
6
6
  static ɵfac: i0.ɵɵFactoryDeclaration<SkyAgGridCellEditorDatepickerModule, never>;
7
- static ɵmod: i0.ɵɵNgModuleDeclaration<SkyAgGridCellEditorDatepickerModule, [typeof i1.SkyAgGridCellEditorDatepickerComponent], [typeof i2.SkyDatepickerModule, typeof i3.FormsModule], [typeof i1.SkyAgGridCellEditorDatepickerComponent]>;
7
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SkyAgGridCellEditorDatepickerModule, [typeof i1.SkyAgGridCellEditorDatepickerComponent], [typeof i2.SkyDatepickerModule, typeof i3.ReactiveFormsModule], [typeof i1.SkyAgGridCellEditorDatepickerComponent]>;
8
8
  static ɵinj: i0.ɵɵInjectorDeclaration<SkyAgGridCellEditorDatepickerModule>;
9
9
  }
@@ -9,12 +9,13 @@ import * as i0 from "@angular/core";
9
9
  * @internal
10
10
  */
11
11
  export declare class SkyAgGridCellEditorLookupComponent implements ICellEditorAngularComp, IPopupComponent<any> {
12
+ #private;
12
13
  private changeDetector;
13
14
  private elementRef;
14
15
  width: number;
15
16
  skyComponentProperties?: SkyAgGridLookupProperties;
16
17
  isAlive: boolean;
17
- lookupForm: FormGroup;
18
+ editorForm: FormGroup;
18
19
  useAsyncSearch: boolean;
19
20
  private params;
20
21
  constructor(changeDetector: ChangeDetectorRef, elementRef: ElementRef);
@@ -1,3 +1,4 @@
1
+ import { FormGroup } from '@angular/forms';
1
2
  import { ICellEditorAngularComp } from 'ag-grid-angular';
2
3
  import { SkyCellEditorNumberParams } from '../../types/cell-editor-number-params';
3
4
  import * as i0 from "@angular/core";
@@ -5,9 +6,10 @@ import * as i0 from "@angular/core";
5
6
  * @internal
6
7
  */
7
8
  export declare class SkyAgGridCellEditorNumberComponent implements ICellEditorAngularComp {
8
- value: number;
9
+ #private;
9
10
  columnHeader: string;
10
11
  columnWidth: number;
12
+ editorForm: FormGroup;
11
13
  rowHeightWithoutBorders: number;
12
14
  rowNumber: number;
13
15
  max: number;
@@ -26,7 +28,7 @@ export declare class SkyAgGridCellEditorNumberComponent implements ICellEditorAn
26
28
  /**
27
29
  * getValue is called by agGrid when editing is stopped to get the new value of the cell.
28
30
  */
29
- getValue(): number;
31
+ getValue(): number | undefined;
30
32
  static ɵfac: i0.ɵɵFactoryDeclaration<SkyAgGridCellEditorNumberComponent, never>;
31
33
  static ɵcmp: i0.ɵɵComponentDeclaration<SkyAgGridCellEditorNumberComponent, "sky-ag-grid-cell-editor-number", never, {}, {}, never, never>;
32
34
  }
@@ -4,6 +4,6 @@ import * as i2 from "../../../shared/sky-ag-grid-resources.module";
4
4
  import * as i3 from "@angular/forms";
5
5
  export declare class SkyAgGridCellEditorNumberModule {
6
6
  static ɵfac: i0.ɵɵFactoryDeclaration<SkyAgGridCellEditorNumberModule, never>;
7
- static ɵmod: i0.ɵɵNgModuleDeclaration<SkyAgGridCellEditorNumberModule, [typeof i1.SkyAgGridCellEditorNumberComponent], [typeof i2.SkyAgGridResourcesModule, typeof i3.FormsModule], [typeof i1.SkyAgGridCellEditorNumberComponent]>;
7
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SkyAgGridCellEditorNumberModule, [typeof i1.SkyAgGridCellEditorNumberComponent], [typeof i2.SkyAgGridResourcesModule, typeof i3.ReactiveFormsModule], [typeof i1.SkyAgGridCellEditorNumberComponent]>;
8
8
  static ɵinj: i0.ɵɵInjectorDeclaration<SkyAgGridCellEditorNumberModule>;
9
9
  }
@@ -1,3 +1,4 @@
1
+ import { FormGroup } from '@angular/forms';
1
2
  import { ICellEditorAngularComp } from 'ag-grid-angular';
2
3
  import { SkyCellEditorTextParams } from '../../types/cell-editor-text-params';
3
4
  import * as i0 from "@angular/core";
@@ -5,10 +6,11 @@ import * as i0 from "@angular/core";
5
6
  * @internal
6
7
  */
7
8
  export declare class SkyAgGridCellEditorTextComponent implements ICellEditorAngularComp {
8
- value: string;
9
+ #private;
9
10
  textInputLabel: string;
10
11
  columnHeader: string;
11
12
  columnWidth: number;
13
+ editorForm: FormGroup;
12
14
  rowHeightWithoutBorders: number;
13
15
  rowNumber: number;
14
16
  maxlength: number;
@@ -26,7 +28,7 @@ export declare class SkyAgGridCellEditorTextComponent implements ICellEditorAngu
26
28
  /**
27
29
  * getValue is called by agGrid when editing is stopped to get the new value of the cell.
28
30
  */
29
- getValue(): string;
31
+ getValue(): string | undefined;
30
32
  static ɵfac: i0.ɵɵFactoryDeclaration<SkyAgGridCellEditorTextComponent, never>;
31
33
  static ɵcmp: i0.ɵɵComponentDeclaration<SkyAgGridCellEditorTextComponent, "sky-ag-grid-cell-editor-text", never, {}, {}, never, never>;
32
34
  }
@@ -4,6 +4,6 @@ import * as i2 from "../../../shared/sky-ag-grid-resources.module";
4
4
  import * as i3 from "@angular/forms";
5
5
  export declare class SkyAgGridCellEditorTextModule {
6
6
  static ɵfac: i0.ɵɵFactoryDeclaration<SkyAgGridCellEditorTextModule, never>;
7
- static ɵmod: i0.ɵɵNgModuleDeclaration<SkyAgGridCellEditorTextModule, [typeof i1.SkyAgGridCellEditorTextComponent], [typeof i2.SkyAgGridResourcesModule, typeof i3.FormsModule], [typeof i1.SkyAgGridCellEditorTextComponent]>;
7
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SkyAgGridCellEditorTextModule, [typeof i1.SkyAgGridCellEditorTextComponent], [typeof i2.SkyAgGridResourcesModule, typeof i3.ReactiveFormsModule], [typeof i1.SkyAgGridCellEditorTextComponent]>;
8
8
  static ɵinj: i0.ɵɵInjectorDeclaration<SkyAgGridCellEditorTextModule>;
9
9
  }
@@ -0,0 +1,11 @@
1
+ /** The intiial action that a cell editor should take when initialized. */
2
+ export declare enum SkyAgGridCellEditorInitialAction {
3
+ /** The cell should be cleared. */
4
+ Delete = 0,
5
+ /** The cell value should be highlighted. */
6
+ Highlighted = 1,
7
+ /** The cell value should be replaced with the initializing value. */
8
+ Replace = 2,
9
+ /** The cell should not be modified and the cursor is placed at the end of the value. */
10
+ Untouched = 3
11
+ }
@@ -0,0 +1,9 @@
1
+ import { ICellEditorParams } from 'ag-grid-community';
2
+ import { SkyAgGridCellEditorInitialAction } from './cell-editor-initial-action';
3
+ export declare class SkyAgGridCellEditorUtils {
4
+ /**
5
+ * Gets the intiial action that a cell editor should take when initialized.
6
+ * @param params The editor's initializing parameters.
7
+ */
8
+ static getEditorInitialAction(params: ICellEditorParams): SkyAgGridCellEditorInitialAction;
9
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skyux/ag-grid",
3
- "version": "6.2.1",
3
+ "version": "6.3.0",
4
4
  "author": "Blackbaud, Inc.",
5
5
  "keywords": [
6
6
  "blackbaud",
@@ -35,17 +35,17 @@
35
35
  "@angular/common": "^13.3.2",
36
36
  "@angular/core": "^13.3.2",
37
37
  "@angular/forms": "^13.3.2",
38
- "@skyux/autonumeric": "6.2.1",
39
- "@skyux/core": "6.2.1",
40
- "@skyux/data-manager": "6.2.1",
41
- "@skyux/datetime": "6.2.1",
42
- "@skyux/forms": "6.2.1",
43
- "@skyux/i18n": "6.2.1",
44
- "@skyux/indicators": "6.2.1",
45
- "@skyux/layout": "6.2.1",
46
- "@skyux/lookup": "6.2.1",
47
- "@skyux/popovers": "6.2.1",
48
- "@skyux/theme": "6.2.1",
38
+ "@skyux/autonumeric": "6.3.0",
39
+ "@skyux/core": "6.3.0",
40
+ "@skyux/data-manager": "6.3.0",
41
+ "@skyux/datetime": "6.3.0",
42
+ "@skyux/forms": "6.3.0",
43
+ "@skyux/i18n": "6.3.0",
44
+ "@skyux/indicators": "6.3.0",
45
+ "@skyux/layout": "6.3.0",
46
+ "@skyux/lookup": "6.3.0",
47
+ "@skyux/popovers": "6.3.0",
48
+ "@skyux/theme": "6.3.0",
49
49
  "ag-grid-angular": "^27.2.0",
50
50
  "ag-grid-community": "^27.2.0"
51
51
  },