imm-element-ui 2.3.3 → 2.3.5
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.
- package/esm2022/lib/page-form/page-form.component.mjs +72 -4
- package/esm2022/lib/page-form/page-form.interface.mjs +1 -1
- package/fesm2022/imm-element-ui.mjs +71 -3
- package/fesm2022/imm-element-ui.mjs.map +1 -1
- package/lib/crumb-action/crumb-action.component.d.ts +1 -1
- package/lib/grid/grid/grid.component.d.ts +2 -2
- package/lib/page-form/page-form.component.d.ts +1 -0
- package/lib/page-form/page-form.interface.d.ts +16 -0
- package/lib/search/pop-date/pop-date.component.d.ts +1 -1
- package/package.json +1 -1
|
@@ -49,7 +49,7 @@ export declare class CrumbActionComponent extends AmComponent implements OnInit
|
|
|
49
49
|
listAct(item: any): void;
|
|
50
50
|
actEvent(item: any): void;
|
|
51
51
|
toggleAct(event: any): void;
|
|
52
|
-
setSaveClass(): "
|
|
52
|
+
setSaveClass(): "danger" | "secondary";
|
|
53
53
|
ngOnDestroy(): void;
|
|
54
54
|
static ɵfac: i0.ɵɵFactoryDeclaration<CrumbActionComponent, never>;
|
|
55
55
|
static ɵcmp: i0.ɵɵComponentDeclaration<CrumbActionComponent, "app-crumb-action", never, { "isShowCog": { "alias": "isShowCog"; "required": false; "isSignal": true; }; "addVisible": { "alias": "addVisible"; "required": false; "isSignal": true; }; "importVisible": { "alias": "importVisible"; "required": false; "isSignal": true; }; "exportVisible": { "alias": "exportVisible"; "required": false; "isSignal": true; }; "newUrl": { "alias": "newUrl"; "required": false; "isSignal": true; }; "configNewPath": { "alias": "configNewPath"; "required": false; "isSignal": true; }; "onExport": { "alias": "onExport"; "required": false; "isSignal": true; }; "outlined": { "alias": "outlined"; "required": false; "isSignal": true; }; "isList": { "alias": "isList"; "required": false; "isSignal": true; }; "authLevel": { "alias": "authLevel"; "required": false; "isSignal": true; }; "actionList": { "alias": "actionList"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": false; "isSignal": true; }; "menus": { "alias": "menus"; "required": false; "isSignal": true; }; "saveBtnDisable": { "alias": "saveBtnDisable"; "required": false; "isSignal": true; }; }, { "saveEvent": "saveEvent"; "cancelEvent": "cancelEvent"; "actionEvent": "actionEvent"; }, ["newBtnTemplateRef"], never, true, never>;
|
|
@@ -66,10 +66,10 @@ export declare class GridComponent {
|
|
|
66
66
|
rawPrm?: Search;
|
|
67
67
|
deleteEmit: import("@angular/core").OutputEmitterRef<number[]>;
|
|
68
68
|
addEmit: import("@angular/core").OutputEmitterRef<void>;
|
|
69
|
-
addType: import("@angular/core").InputSignal<"
|
|
69
|
+
addType: import("@angular/core").InputSignal<"handle" | "select" | "none" | undefined>;
|
|
70
70
|
selectData: import("@angular/core").InputSignal<any[] | undefined>;
|
|
71
71
|
showAct: import("@angular/core").InputSignal<boolean>;
|
|
72
|
-
actPos: import("@angular/core").InputSignal<"
|
|
72
|
+
actPos: import("@angular/core").InputSignal<"bottom" | "top">;
|
|
73
73
|
authLevel: import("@angular/core").InputSignal<number>;
|
|
74
74
|
http: HttpClient;
|
|
75
75
|
renderer: Renderer2;
|
|
@@ -69,6 +69,7 @@ export declare class PageFormComponent extends AmComponent implements OnInit, On
|
|
|
69
69
|
private bindPageFormService;
|
|
70
70
|
private mergePageFormData;
|
|
71
71
|
private syncSubFormModelFromData;
|
|
72
|
+
private mergeUpsert;
|
|
72
73
|
ngAfterViewInit(): void;
|
|
73
74
|
submitForm(): any;
|
|
74
75
|
delRows(e: any): void;
|
|
@@ -2,6 +2,7 @@ import { GridOptions } from '../grid/grid/grid.component';
|
|
|
2
2
|
import { Search } from '../am/am.component';
|
|
3
3
|
import { Button } from 'primeng/button';
|
|
4
4
|
import type { PageFormComponent } from './page-form.component';
|
|
5
|
+
import { SafeAny } from 'imm-bi';
|
|
5
6
|
export interface HrefBtnList extends Partial<Button> {
|
|
6
7
|
url?: string;
|
|
7
8
|
i18nKey?: string;
|
|
@@ -41,5 +42,20 @@ export interface PageFormSlotContext {
|
|
|
41
42
|
model: unknown;
|
|
42
43
|
upsert: unknown;
|
|
43
44
|
active: boolean;
|
|
45
|
+
gridDisable: boolean;
|
|
44
46
|
}
|
|
45
47
|
export declare const formTypeToProps: any;
|
|
48
|
+
export interface PageFormSlot {
|
|
49
|
+
handleAdd: (action?: unknown) => void;
|
|
50
|
+
handleRemove: (action?: unknown) => void;
|
|
51
|
+
}
|
|
52
|
+
export interface PayloadUpsert {
|
|
53
|
+
action: 'add' | 'edit' | 'delete';
|
|
54
|
+
field: string;
|
|
55
|
+
headerName: string;
|
|
56
|
+
newValue: SafeAny;
|
|
57
|
+
oldValue: SafeAny;
|
|
58
|
+
recordIndex: number;
|
|
59
|
+
index: number;
|
|
60
|
+
data: Record<string, SafeAny>;
|
|
61
|
+
}
|
|
@@ -8,7 +8,7 @@ export declare class PopDateComponent {
|
|
|
8
8
|
private action;
|
|
9
9
|
private i18n;
|
|
10
10
|
item: import("@angular/core").InputSignal<SearchItem>;
|
|
11
|
-
view: import("@angular/core").Signal<"
|
|
11
|
+
view: import("@angular/core").Signal<"date" | "year" | "month">;
|
|
12
12
|
modelName: import("@angular/core").InputSignal<string | undefined>;
|
|
13
13
|
isActive: boolean;
|
|
14
14
|
value: any;
|