imm-element-ui 2.9.8 → 3.0.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.
@@ -76,7 +76,7 @@ export declare class GridComponent {
76
76
  deleteEmit: import("@angular/core").OutputEmitterRef<number[]>;
77
77
  addEmit: import("@angular/core").OutputEmitterRef<void>;
78
78
  gridDataChanged: import("@angular/core").OutputEmitterRef<void>;
79
- addType: import("@angular/core").InputSignal<"none" | "select" | "handle" | undefined>;
79
+ addType: import("@angular/core").InputSignal<"none" | "select" | "handle" | "custom" | undefined>;
80
80
  selectData: import("@angular/core").InputSignal<any[] | undefined>;
81
81
  showAct: import("@angular/core").InputSignal<boolean>;
82
82
  actPos: import("@angular/core").InputSignal<"top" | "bottom">;
@@ -118,6 +118,7 @@ export declare class GridComponent {
118
118
  ngAfterViewInit(): void;
119
119
  ngOnDestroy(): void;
120
120
  getGrid(): AgGridAngular;
121
+ getLeafRowData(): any[];
121
122
  private isMobileOrTabletBrowser;
122
123
  onGridReady(e: any): void;
123
124
  onSelectionChanged(event: any): any;
@@ -186,7 +186,7 @@ export declare class PageFormComponent extends AmComponent implements OnInit, On
186
186
  private getCurrentFormComponent;
187
187
  canShowCurrentTabSave(grid?: GridList | null): boolean;
188
188
  getCurrentTabSaveLabel(grid?: GridList | null): any;
189
- private createSubButtonHiddenContext;
189
+ private createSubGridContext;
190
190
  private resolveSubButtonHidden;
191
191
  isSubSaveHidden(grid?: GridList | null): boolean;
192
192
  isSubAddHidden(grid?: GridList | null): boolean;
@@ -10,6 +10,17 @@ export interface SubSaveConfig {
10
10
  saveFunc?: any;
11
11
  }
12
12
  export type GridDeleteFunc = (ids: any[], grid: GridList, cb?: Function) => void;
13
+ export interface SubAddContext {
14
+ data: any;
15
+ grid: GridList;
16
+ pageForm: PageFormComponent;
17
+ component: any;
18
+ index: number;
19
+ authLevel: number;
20
+ getPrm: any;
21
+ runtimeContext: Record<string, any>;
22
+ }
23
+ export type GridAddFunc = (context: SubAddContext) => void;
13
24
  export interface HrefBtnList extends Partial<Button> {
14
25
  url?: string;
15
26
  i18nKey?: string;
@@ -25,7 +36,7 @@ export interface PermissionBtn extends Partial<Button> {
25
36
  export interface GridList {
26
37
  gridOptions: GridOptions;
27
38
  subTable: string;
28
- subTableSource?: 'handle' | 'select';
39
+ subTableSource?: 'handle' | 'select' | 'custom' | 'none';
29
40
  selectOptions?: GridOptions;
30
41
  subDataKey: string;
31
42
  slotKey?: string;
@@ -34,6 +45,7 @@ export interface GridList {
34
45
  selectDataCb?: Function;
35
46
  searchPrm?: Search;
36
47
  deleteFunc?: GridDeleteFunc;
48
+ addFunc?: GridAddFunc;
37
49
  deleteHidden?: Function;
38
50
  addHidden?: Function;
39
51
  selectData?: any[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "imm-element-ui",
3
- "version": "2.9.8",
3
+ "version": "3.0.1",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^18.2.0",
6
6
  "@angular/core": "^18.2.0"