imm-element-ui 2.9.9 → 3.0.2

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">;
@@ -124,7 +124,7 @@ export declare class GridComponent {
124
124
  onSelectionChanged(event: any): any;
125
125
  onRowGroupOpened(): void;
126
126
  private hasDynamicSelectDataColumn;
127
- private refreshColumnDefs;
127
+ refreshColumnDefs(options?: GridOptions): Promise<void>;
128
128
  private refreshColumnHideExpressions;
129
129
  private resolveColumnHideExpressions;
130
130
  private resolveColumnHideExpression;
@@ -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.9",
3
+ "version": "3.0.2",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^18.2.0",
6
6
  "@angular/core": "^18.2.0"