@skyux/ag-grid 12.5.0 → 12.7.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.
@@ -0,0 +1,20 @@
1
+ import { ElementRef, InjectionToken, Signal, WritableSignal } from '@angular/core';
2
+ import { GridApi } from 'ag-grid-community';
3
+ import { Subject, Subscription } from 'rxjs';
4
+ /**
5
+ * @internal
6
+ */
7
+ export declare const SKY_AG_GRID_ROW_DELETE_CONTEXT: InjectionToken<SkyAgGridRowDeleteContext>;
8
+ /**
9
+ * Used to provide dependencies to the `SkyAgGridRowDeleteComponent` overlay.
10
+ * @internal
11
+ */
12
+ export declare class SkyAgGridRowDeleteContext {
13
+ readonly rows: Signal<string[]>;
14
+ readonly gridElement: Signal<ElementRef<HTMLElement>[] | undefined>;
15
+ readonly gridApi: WritableSignal<GridApi | undefined>;
16
+ readonly cancelRowDelete: Subject<string>;
17
+ readonly confirmRowDelete: Subject<string>;
18
+ readonly subscription: Subscription;
19
+ constructor(rows: Signal<string[]>, gridElement: Signal<ElementRef<HTMLElement>[] | undefined>, gridApi: WritableSignal<GridApi | undefined>);
20
+ }
@@ -1,12 +1,23 @@
1
- import { ElementRef, TemplateRef } from '@angular/core';
2
1
  import * as i0 from "@angular/core";
3
2
  /**
4
3
  * Component for rendering the inline delete template in the overlay.
5
4
  * @internal
6
5
  */
7
6
  export declare class SkyAgGridRowDeleteComponent {
8
- readonly inlineDeleteRefs: import("@angular/core").Signal<readonly ElementRef<HTMLDivElement>[]>;
9
- readonly inlineDeleteTemplateRef: import("@angular/core").Signal<TemplateRef<unknown> | undefined>;
7
+ #private;
8
+ readonly service: import("./ag-grid-row-delete-context").SkyAgGridRowDeleteContext;
9
+ protected tableWidthStyle: import("@angular/core").Signal<string>;
10
+ protected rowsWithElements: import("@angular/core").Signal<{
11
+ rowId: string;
12
+ increment: string;
13
+ element: HTMLElement | null;
14
+ }[]>;
15
+ protected readonly pending: import("@angular/core").WritableSignal<string[]>;
16
+ protected readonly tableWidth: import("@angular/core").WritableSignal<number>;
17
+ protected readonly gridChanges: import("@angular/core").Signal<number>;
18
+ constructor();
19
+ protected cancelDelete(rowId: string): void;
20
+ protected confirmDelete(rowId: string): void;
10
21
  static ɵfac: i0.ɵɵFactoryDeclaration<SkyAgGridRowDeleteComponent, never>;
11
22
  static ɵcmp: i0.ɵɵComponentDeclaration<SkyAgGridRowDeleteComponent, "sky-ag-grid-row-delete", never, {}, {}, never, never, true, never>;
12
23
  }
@@ -1,8 +1,7 @@
1
- import { AfterContentInit, AfterViewInit, OnDestroy } from '@angular/core';
1
+ import { AfterContentInit, AfterViewInit, ElementRef, OnDestroy } from '@angular/core';
2
2
  import { AgGridAngular } from 'ag-grid-angular';
3
- import { IRowNode } from 'ag-grid-community';
3
+ import { BehaviorSubject } from 'rxjs';
4
4
  import { SkyAgGridRowDeleteCancelArgs } from './types/ag-grid-row-delete-cancel-args';
5
- import { SkyAgGridRowDeleteConfig } from './types/ag-grid-row-delete-config';
6
5
  import { SkyAgGridRowDeleteConfirmArgs } from './types/ag-grid-row-delete-confirm-args';
7
6
  import * as i0 from "@angular/core";
8
7
  export declare class SkyAgGridRowDeleteDirective implements AfterContentInit, AfterViewInit, OnDestroy {
@@ -10,8 +9,7 @@ export declare class SkyAgGridRowDeleteDirective implements AfterContentInit, Af
10
9
  /**
11
10
  * The IDs of the data in the rows where the inline delete appears.
12
11
  */
13
- readonly rowDeleteIds: import("@angular/core").InputSignalWithTransform<string[], unknown>;
14
- readonly rowDeleteIdsChange: import("@angular/core").OutputEmitterRef<string[]>;
12
+ readonly rowDeleteIds: import("@angular/core").ModelSignal<string[]>;
15
13
  /**
16
14
  * Emits a `SkyAgGridRowDeleteCancelArgs` object when a row's inline delete is cancelled.
17
15
  */
@@ -21,13 +19,11 @@ export declare class SkyAgGridRowDeleteDirective implements AfterContentInit, Af
21
19
  */
22
20
  rowDeleteConfirm: import("@angular/core").OutputEmitterRef<SkyAgGridRowDeleteConfirmArgs>;
23
21
  protected readonly agGrid: import("@angular/core").Signal<AgGridAngular<any, any> | undefined>;
22
+ protected readonly agGridBodyViewport: BehaviorSubject<ElementRef<HTMLDivElement>[]>;
24
23
  constructor();
25
24
  ngAfterContentInit(): void;
26
25
  ngAfterViewInit(): void;
27
26
  ngOnDestroy(): void;
28
- cancelRowDelete(row: IRowNode): void;
29
- confirmRowDelete(row: IRowNode): void;
30
- getRowDeleteItem(row: IRowNode): SkyAgGridRowDeleteConfig;
31
27
  static ɵfac: i0.ɵɵFactoryDeclaration<SkyAgGridRowDeleteDirective, never>;
32
- static ɵdir: i0.ɵɵDirectiveDeclaration<SkyAgGridRowDeleteDirective, "[skyAgGridRowDelete]", never, { "rowDeleteIds": { "alias": "rowDeleteIds"; "required": false; "isSignal": true; }; }, { "rowDeleteIdsChange": "rowDeleteIdsChange"; "rowDeleteCancel": "rowDeleteCancel"; "rowDeleteConfirm": "rowDeleteConfirm"; }, ["agGrid"], never, true, never>;
28
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SkyAgGridRowDeleteDirective, "[skyAgGridRowDelete]", never, { "rowDeleteIds": { "alias": "rowDeleteIds"; "required": false; "isSignal": true; }; }, { "rowDeleteIds": "rowDeleteIdsChange"; "rowDeleteCancel": "rowDeleteCancel"; "rowDeleteConfirm": "rowDeleteConfirm"; }, ["agGrid"], never, true, never>;
33
29
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skyux/ag-grid",
3
- "version": "12.5.0",
3
+ "version": "12.7.0",
4
4
  "author": "Blackbaud, Inc.",
5
5
  "keywords": [
6
6
  "blackbaud",
@@ -31,18 +31,18 @@
31
31
  "@angular/common": "^19.2.7",
32
32
  "@angular/core": "^19.2.7",
33
33
  "@angular/forms": "^19.2.7",
34
- "@skyux/autonumeric": "12.5.0",
35
- "@skyux/core": "12.5.0",
36
- "@skyux/data-manager": "12.5.0",
37
- "@skyux/datetime": "12.5.0",
38
- "@skyux/forms": "12.5.0",
39
- "@skyux/i18n": "12.5.0",
40
- "@skyux/icon": "12.5.0",
41
- "@skyux/indicators": "12.5.0",
42
- "@skyux/layout": "12.5.0",
43
- "@skyux/lookup": "12.5.0",
44
- "@skyux/popovers": "12.5.0",
45
- "@skyux/theme": "12.5.0",
34
+ "@skyux/autonumeric": "12.7.0",
35
+ "@skyux/core": "12.7.0",
36
+ "@skyux/data-manager": "12.7.0",
37
+ "@skyux/datetime": "12.7.0",
38
+ "@skyux/forms": "12.7.0",
39
+ "@skyux/i18n": "12.7.0",
40
+ "@skyux/icon": "12.7.0",
41
+ "@skyux/indicators": "12.7.0",
42
+ "@skyux/layout": "12.7.0",
43
+ "@skyux/lookup": "12.7.0",
44
+ "@skyux/popovers": "12.7.0",
45
+ "@skyux/theme": "12.7.0",
46
46
  "ag-grid-angular": "^33.2.1",
47
47
  "ag-grid-community": "^33.2.1"
48
48
  },
@@ -1,10 +0,0 @@
1
- /**
2
- * Information for internally tracking what inline deletes are currently shown.
3
- * @internal
4
- */
5
- export interface SkyAgGridRowDeleteConfig {
6
- /** The id of the data in the row. */
7
- id: string;
8
- /** The pending status of the inline delete. */
9
- pending: boolean;
10
- }
@@ -1,10 +0,0 @@
1
- import { SkyAffixer, SkyOverlayInstance } from '@skyux/core';
2
- /**
3
- * Model for tracking the affixer and overlay of a row delete's inline delete.
4
- * @internal
5
- */
6
- export interface SkyAgGridRowDeleteContents {
7
- id: string;
8
- affixer: SkyAffixer;
9
- overlay: SkyOverlayInstance;
10
- }