@skyux/ag-grid 5.7.1 → 5.8.1

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 (34) hide show
  1. package/bundles/skyux-ag-grid.umd.js +63 -35
  2. package/documentation.json +57 -57
  3. package/esm2015/lib/modules/ag-grid/ag-grid-wrapper.component.js +8 -1
  4. package/esm2015/lib/modules/ag-grid/ag-grid-wrapper.component.js.map +1 -1
  5. package/esm2015/lib/modules/ag-grid/ag-grid.service.js +4 -2
  6. package/esm2015/lib/modules/ag-grid/ag-grid.service.js.map +1 -1
  7. package/esm2015/lib/modules/ag-grid/cell-editors/cell-editor-currency/cell-editor-currency.component.js +8 -1
  8. package/esm2015/lib/modules/ag-grid/cell-editors/cell-editor-currency/cell-editor-currency.component.js.map +1 -1
  9. package/esm2015/lib/modules/ag-grid/cell-editors/cell-editor-number/cell-editor-number.component.js +4 -1
  10. package/esm2015/lib/modules/ag-grid/cell-editors/cell-editor-number/cell-editor-number.component.js.map +1 -1
  11. package/esm2015/lib/modules/ag-grid/cell-editors/cell-editor-text/cell-editor-text.component.js +3 -1
  12. package/esm2015/lib/modules/ag-grid/cell-editors/cell-editor-text/cell-editor-text.component.js.map +1 -1
  13. package/esm2015/lib/modules/ag-grid/cell-validator/ag-grid-cell-validator-tooltip.component.js +31 -24
  14. package/esm2015/lib/modules/ag-grid/cell-validator/ag-grid-cell-validator-tooltip.component.js.map +1 -1
  15. package/esm2015/lib/modules/ag-grid/types/cell-editor-number-params.js +2 -0
  16. package/esm2015/lib/modules/ag-grid/types/cell-editor-number-params.js.map +1 -0
  17. package/esm2015/lib/modules/ag-grid/types/cell-editor-text-params.js +2 -0
  18. package/esm2015/lib/modules/ag-grid/types/cell-editor-text-params.js.map +1 -0
  19. package/esm2015/lib/modules/ag-grid/types/number-properties.js +2 -0
  20. package/esm2015/lib/modules/ag-grid/types/number-properties.js.map +1 -0
  21. package/esm2015/lib/modules/ag-grid/types/text-properties.js +2 -0
  22. package/esm2015/lib/modules/ag-grid/types/text-properties.js.map +1 -0
  23. package/fesm2015/skyux-ag-grid.js +57 -28
  24. package/fesm2015/skyux-ag-grid.js.map +1 -1
  25. package/lib/modules/ag-grid/ag-grid-wrapper.component.d.ts +4 -0
  26. package/lib/modules/ag-grid/cell-editors/cell-editor-currency/cell-editor-currency.component.d.ts +4 -0
  27. package/lib/modules/ag-grid/cell-editors/cell-editor-number/cell-editor-number.component.d.ts +4 -2
  28. package/lib/modules/ag-grid/cell-editors/cell-editor-text/cell-editor-text.component.d.ts +3 -2
  29. package/lib/modules/ag-grid/cell-validator/ag-grid-cell-validator-tooltip.component.d.ts +5 -6
  30. package/lib/modules/ag-grid/types/cell-editor-number-params.d.ts +5 -0
  31. package/lib/modules/ag-grid/types/cell-editor-text-params.d.ts +5 -0
  32. package/lib/modules/ag-grid/types/number-properties.d.ts +7 -0
  33. package/lib/modules/ag-grid/types/text-properties.d.ts +6 -0
  34. package/package.json +13 -13
@@ -18,6 +18,10 @@ export declare class SkyAgGridWrapperComponent implements AfterContentInit {
18
18
  private _viewkeeperClasses;
19
19
  constructor(adapterService: SkyAgGridAdapterService, changeDetector: ChangeDetectorRef, elementRef: ElementRef);
20
20
  ngAfterContentInit(): void;
21
+ /**
22
+ * Prevent closing a modal when focused in AG Grid.
23
+ */
24
+ onKeyUpEscape($event: Event): void;
21
25
  onGridKeydown(event: KeyboardEvent): void;
22
26
  onAnchorFocus(event: FocusEvent): void;
23
27
  private get isInEditMode();
@@ -27,6 +27,10 @@ export declare class SkyAgGridCellEditorCurrencyComponent implements ICellEditor
27
27
  * getValue is called by agGrid when editing is stopped to get the new value of the cell.
28
28
  */
29
29
  getValue(): number;
30
+ /**
31
+ * The autoNumeric library's event handler suppresses the escape key event. This additional handler re-enables AG Grid's default functionality.
32
+ */
33
+ onPressEscape(): void;
30
34
  static ɵfac: i0.ɵɵFactoryDeclaration<SkyAgGridCellEditorCurrencyComponent, never>;
31
35
  static ɵcmp: i0.ɵɵComponentDeclaration<SkyAgGridCellEditorCurrencyComponent, "sky-ag-grid-cell-editor-currency", never, {}, {}, never, never>;
32
36
  }
@@ -1,5 +1,5 @@
1
1
  import { ICellEditorAngularComp } from 'ag-grid-angular';
2
- import { ICellEditorParams } from 'ag-grid-community';
2
+ import { SkyCellEditorNumberParams } from '../../types/cell-editor-number-params';
3
3
  import * as i0 from "@angular/core";
4
4
  /**
5
5
  * @internal
@@ -10,13 +10,15 @@ export declare class SkyAgGridCellEditorNumberComponent implements ICellEditorAn
10
10
  columnWidth: number;
11
11
  rowHeightWithoutBorders: number;
12
12
  rowNumber: number;
13
+ max: number;
14
+ min: number;
13
15
  private params;
14
16
  private input;
15
17
  /**
16
18
  * agInit is called by agGrid once after the editor is created and provides the editor with the information it needs.
17
19
  * @param params The cell editor params that include data about the cell, column, row, and grid.
18
20
  */
19
- agInit(params: ICellEditorParams): void;
21
+ agInit(params: SkyCellEditorNumberParams): void;
20
22
  /**
21
23
  * afterGuiAttached is called by agGrid after the editor is rendered in the DOM. Once it is attached the editor is ready to be focused on.
22
24
  */
@@ -1,5 +1,5 @@
1
1
  import { ICellEditorAngularComp } from 'ag-grid-angular';
2
- import { ICellEditorParams } from 'ag-grid-community';
2
+ import { SkyCellEditorTextParams } from '../../types/cell-editor-text-params';
3
3
  import * as i0 from "@angular/core";
4
4
  /**
5
5
  * @internal
@@ -11,13 +11,14 @@ export declare class SkyAgGridCellEditorTextComponent implements ICellEditorAngu
11
11
  columnWidth: number;
12
12
  rowHeightWithoutBorders: number;
13
13
  rowNumber: number;
14
+ maxlength: number;
14
15
  private params;
15
16
  private input;
16
17
  /**
17
18
  * agInit is called by agGrid once after the editor is created and provides the editor with the information it needs.
18
19
  * @param params The cell editor params that include data about the cell, column, row, and grid.
19
20
  */
20
- agInit(params: ICellEditorParams): void;
21
+ agInit(params: SkyCellEditorTextParams): void;
21
22
  /**
22
23
  * afterGuiAttached is called by agGrid after the editor is rendered in the DOM. Once it is attached the editor is ready to be focused on.
23
24
  */
@@ -1,4 +1,4 @@
1
- import { ChangeDetectorRef, NgZone } from '@angular/core';
1
+ import { ChangeDetectorRef } from '@angular/core';
2
2
  import { SkyPopoverMessage } from '@skyux/popovers';
3
3
  import { Subject } from 'rxjs';
4
4
  import { SkyCellRendererValidatorParams } from '../types/cell-renderer-validator-params';
@@ -8,17 +8,16 @@ import * as i0 from "@angular/core";
8
8
  */
9
9
  export declare class SkyAgGridCellValidatorTooltipComponent {
10
10
  private changeDetector;
11
- private zone;
12
11
  set params(value: SkyCellRendererValidatorParams);
13
- indicatorShouldShow: boolean;
14
12
  popoverMessageStream: Subject<SkyPopoverMessage>;
15
13
  validatorMessage: string;
16
14
  cellRendererParams: SkyCellRendererValidatorParams;
17
- constructor(changeDetector: ChangeDetectorRef, zone: NgZone);
18
- hideIndicator(): void;
15
+ private _hoverTimeout;
16
+ constructor(changeDetector: ChangeDetectorRef);
19
17
  hidePopover(): void;
20
- showIndicator(): void;
21
18
  showPopover(): void;
19
+ private scheduleDelayedPopover;
20
+ private cancelDelayedPopover;
22
21
  static ɵfac: i0.ɵɵFactoryDeclaration<SkyAgGridCellValidatorTooltipComponent, never>;
23
22
  static ɵcmp: i0.ɵɵComponentDeclaration<SkyAgGridCellValidatorTooltipComponent, "sky-ag-grid-cell-validator-tooltip", never, { "params": "params"; }, {}, never, ["*"]>;
24
23
  }
@@ -0,0 +1,5 @@
1
+ import { ICellEditorParams } from 'ag-grid-community';
2
+ import { SkyNumberProperties } from './number-properties';
3
+ export interface SkyCellEditorNumberParams extends ICellEditorParams {
4
+ skyComponentProperties?: SkyNumberProperties;
5
+ }
@@ -0,0 +1,5 @@
1
+ import { ICellEditorParams } from 'ag-grid-community';
2
+ import { SkyTextProperties } from './text-properties';
3
+ export interface SkyCellEditorTextParams extends ICellEditorParams {
4
+ skyComponentProperties?: SkyTextProperties;
5
+ }
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @internal
3
+ */
4
+ export interface SkyNumberProperties {
5
+ max?: number;
6
+ min?: number;
7
+ }
@@ -0,0 +1,6 @@
1
+ /**
2
+ * @internal
3
+ */
4
+ export interface SkyTextProperties {
5
+ maxlength?: number;
6
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skyux/ag-grid",
3
- "version": "5.7.1",
3
+ "version": "5.8.1",
4
4
  "author": "Blackbaud, Inc.",
5
5
  "keywords": [
6
6
  "blackbaud",
@@ -19,17 +19,17 @@
19
19
  "@angular/common": "^12.2.16",
20
20
  "@angular/core": "^12.2.16",
21
21
  "@angular/forms": "^12.2.16",
22
- "@skyux/autonumeric": "5.7.1",
23
- "@skyux/core": "5.7.1",
24
- "@skyux/data-manager": "5.7.1",
25
- "@skyux/datetime": "5.7.1",
26
- "@skyux/forms": "5.7.1",
27
- "@skyux/i18n": "5.7.1",
28
- "@skyux/indicators": "5.7.1",
29
- "@skyux/layout": "5.7.1",
30
- "@skyux/lookup": "5.7.1",
31
- "@skyux/popovers": "5.7.1",
32
- "@skyux/theme": "5.7.1",
22
+ "@skyux/autonumeric": "5.8.1",
23
+ "@skyux/core": "5.8.1",
24
+ "@skyux/data-manager": "5.8.1",
25
+ "@skyux/datetime": "5.8.1",
26
+ "@skyux/forms": "5.8.1",
27
+ "@skyux/i18n": "5.8.1",
28
+ "@skyux/indicators": "5.8.1",
29
+ "@skyux/layout": "5.8.1",
30
+ "@skyux/lookup": "5.8.1",
31
+ "@skyux/popovers": "5.8.1",
32
+ "@skyux/theme": "5.8.1",
33
33
  "ag-grid-angular": "^26.0.0",
34
34
  "ag-grid-community": "^26.0.0"
35
35
  },
@@ -43,4 +43,4 @@
43
43
  "fesm2015": "fesm2015/skyux-ag-grid.js",
44
44
  "typings": "skyux-ag-grid.d.ts",
45
45
  "sideEffects": false
46
- }
46
+ }