imm-element-ui 0.3.0 → 0.3.3
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/crumb-action/crumb-action.component.mjs +10 -14
- package/esm2022/lib/grid/actions/actions.component.mjs +13 -3
- package/esm2022/lib/grid/grid/grid.component.mjs +3 -6
- package/esm2022/lib/grid/grid-utils.mjs +2 -2
- package/esm2022/lib/head/head.component.mjs +4 -3
- package/esm2022/lib/page-form/page-form.component.mjs +19 -18
- package/esm2022/lib/page-form/page-form.interface.mjs +1 -1
- package/esm2022/lib/page-grid-list/page-grid-list.component.mjs +3 -3
- package/fesm2022/imm-element-ui.mjs +44 -39
- package/fesm2022/imm-element-ui.mjs.map +1 -1
- package/lib/crumb-action/crumb-action.component.d.ts +4 -4
- package/lib/grid/actions/actions.component.d.ts +3 -1
- package/lib/grid/grid/grid.component.d.ts +1 -1
- package/lib/head/head.component.d.ts +2 -1
- package/lib/page-form/page-form.component.d.ts +2 -2
- package/lib/page-form/page-form.interface.d.ts +5 -4
- package/package.json +1 -1
|
@@ -1,14 +1,13 @@
|
|
|
1
|
+
import { AmComponent } from './../am/am.component';
|
|
1
2
|
import { OnInit, TemplateRef } from '@angular/core';
|
|
2
3
|
import { UserHistoryService, HistoryItem, ActionService } from '../../public-api';
|
|
3
|
-
import { Router } from '@angular/router';
|
|
4
4
|
import { Popover } from 'primeng/popover';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class CrumbActionComponent implements OnInit {
|
|
6
|
+
export declare class CrumbActionComponent extends AmComponent implements OnInit {
|
|
7
7
|
userHistoryService: UserHistoryService;
|
|
8
8
|
action: ActionService;
|
|
9
9
|
crumbList: import("@angular/core").Signal<any>;
|
|
10
10
|
crumbTitle: import("@angular/core").WritableSignal<any>;
|
|
11
|
-
router: Router;
|
|
12
11
|
isNew: boolean;
|
|
13
12
|
isShowCog: import("@angular/core").InputSignal<boolean>;
|
|
14
13
|
crumbFront: HistoryItem[];
|
|
@@ -26,6 +25,7 @@ export declare class CrumbActionComponent implements OnInit {
|
|
|
26
25
|
cancelEvent: import("@angular/core").OutputEmitterRef<void>;
|
|
27
26
|
actionList: import("@angular/core").InputSignal<any>;
|
|
28
27
|
actionEvent: import("@angular/core").OutputEmitterRef<void>;
|
|
28
|
+
data: import("@angular/core").InputSignal<any>;
|
|
29
29
|
showAct: boolean;
|
|
30
30
|
newBtnTemplateRef: TemplateRef<any> | undefined;
|
|
31
31
|
listOpItems: {
|
|
@@ -47,5 +47,5 @@ export declare class CrumbActionComponent implements OnInit {
|
|
|
47
47
|
actEvent(item: any): void;
|
|
48
48
|
toggleAct(event: any): void;
|
|
49
49
|
static ɵfac: i0.ɵɵFactoryDeclaration<CrumbActionComponent, never>;
|
|
50
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CrumbActionComponent, "app-crumb-action", never, { "isShowCog": { "alias": "isShowCog"; "required": false; "isSignal": true; }; "addVisible": { "alias": "addVisible"; "required": false; "isSignal": true; }; "newUrl": { "alias": "newUrl"; "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; }; }, { "saveEvent": "saveEvent"; "cancelEvent": "cancelEvent"; "actionEvent": "actionEvent"; }, ["newBtnTemplateRef"], never, true, never>;
|
|
50
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CrumbActionComponent, "app-crumb-action", never, { "isShowCog": { "alias": "isShowCog"; "required": false; "isSignal": true; }; "addVisible": { "alias": "addVisible"; "required": false; "isSignal": true; }; "newUrl": { "alias": "newUrl"; "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; }; }, { "saveEvent": "saveEvent"; "cancelEvent": "cancelEvent"; "actionEvent": "actionEvent"; }, ["newBtnTemplateRef"], never, true, never>;
|
|
51
51
|
}
|
|
@@ -6,9 +6,11 @@ export declare class ActionsComponent {
|
|
|
6
6
|
grid: import("@angular/core").InputSignal<GridComponent | undefined>;
|
|
7
7
|
actions: import("@angular/core").InputSignal<any[] | undefined>;
|
|
8
8
|
isCancel: import("@angular/core").InputSignal<boolean>;
|
|
9
|
+
authLevel: import("@angular/core").InputSignal<number | undefined>;
|
|
9
10
|
selectedRows: any[];
|
|
10
11
|
constructor(action: ActionService);
|
|
12
|
+
getClass(action: any): "hidden" | "block";
|
|
11
13
|
doCancelAction(): void;
|
|
12
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<ActionsComponent, never>;
|
|
13
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ActionsComponent, "custom-actions", never, { "grid": { "alias": "grid"; "required": false; "isSignal": true; }; "actions": { "alias": "actions"; "required": false; "isSignal": true; }; "isCancel": { "alias": "isCancel"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ActionsComponent, "custom-actions", never, { "grid": { "alias": "grid"; "required": false; "isSignal": true; }; "actions": { "alias": "actions"; "required": false; "isSignal": true; }; "isCancel": { "alias": "isCancel"; "required": false; "isSignal": true; }; "authLevel": { "alias": "authLevel"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
14
16
|
}
|
|
@@ -244,7 +244,7 @@ export declare class GridComponent {
|
|
|
244
244
|
searchPrm: import("@angular/core").ModelSignal<Search>;
|
|
245
245
|
deleteEmit: import("@angular/core").OutputEmitterRef<number[]>;
|
|
246
246
|
addEmit: import("@angular/core").OutputEmitterRef<void>;
|
|
247
|
-
addType: import("@angular/core").InputSignal<"
|
|
247
|
+
addType: import("@angular/core").InputSignal<"handle" | "select" | undefined>;
|
|
248
248
|
selectData: import("@angular/core").InputSignal<any[] | undefined>;
|
|
249
249
|
showAct: import("@angular/core").InputSignal<boolean>;
|
|
250
250
|
actPos: import("@angular/core").InputSignal<"top" | "bottom">;
|
|
@@ -9,9 +9,10 @@ export declare class HeadComponent {
|
|
|
9
9
|
gridOptions: import("@angular/core").InputSignal<GridOptions | undefined>;
|
|
10
10
|
grid: import("@angular/core").InputSignal<GridComponent | undefined>;
|
|
11
11
|
actions: import("@angular/core").InputSignal<any[] | undefined>;
|
|
12
|
+
authLevel: import("@angular/core").InputSignal<number | undefined>;
|
|
12
13
|
rowSelected: boolean;
|
|
13
14
|
constructor(action: ActionService);
|
|
14
15
|
toggleChildren(): void;
|
|
15
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<HeadComponent, never>;
|
|
16
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<HeadComponent, "custom-head", never, { "gridOptions": { "alias": "gridOptions"; "required": false; "isSignal": true; }; "grid": { "alias": "grid"; "required": false; "isSignal": true; }; "actions": { "alias": "actions"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HeadComponent, "custom-head", never, { "gridOptions": { "alias": "gridOptions"; "required": false; "isSignal": true; }; "grid": { "alias": "grid"; "required": false; "isSignal": true; }; "actions": { "alias": "actions"; "required": false; "isSignal": true; }; "authLevel": { "alias": "authLevel"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
17
18
|
}
|
|
@@ -10,6 +10,8 @@ import { I18nService } from '../service/i18n.service';
|
|
|
10
10
|
import { PermissionBtn } from './page-form.interface';
|
|
11
11
|
import * as i0 from "@angular/core";
|
|
12
12
|
export declare class PageFormComponent extends AmComponent implements OnInit {
|
|
13
|
+
cForm: FormComponent;
|
|
14
|
+
customGrid: GridComponent;
|
|
13
15
|
addVisible: import("@angular/core").InputSignal<boolean | undefined>;
|
|
14
16
|
gridList: import("@angular/core").InputSignal<GridList[]>;
|
|
15
17
|
form: import("@angular/core").InputSignal<FormOptions>;
|
|
@@ -21,8 +23,6 @@ export declare class PageFormComponent extends AmComponent implements OnInit {
|
|
|
21
23
|
actionList: import("@angular/core").InputSignal<PermissionBtn[]>;
|
|
22
24
|
modelLog: import("@angular/core").InputSignal<boolean>;
|
|
23
25
|
formDisabled: import("@angular/core").InputSignal<Function | undefined>;
|
|
24
|
-
customGrid: GridComponent;
|
|
25
|
-
cForm: FormComponent;
|
|
26
26
|
userHistoryService: UserHistoryService;
|
|
27
27
|
indexValue: number;
|
|
28
28
|
visible: boolean;
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { GridOptions } from '../grid/grid/grid.component';
|
|
2
|
-
import { Search } from
|
|
3
|
-
import { Button } from
|
|
2
|
+
import { Search } from '../am/am.component';
|
|
3
|
+
import { Button } from 'primeng/button';
|
|
4
4
|
export interface HrefBtnList extends Partial<Button> {
|
|
5
5
|
url?: string;
|
|
6
6
|
i18nKey?: string;
|
|
7
7
|
idKey?: string;
|
|
8
8
|
}
|
|
9
9
|
export interface PermissionBtn extends Partial<Button> {
|
|
10
|
-
auth:
|
|
11
|
-
|
|
10
|
+
auth: number;
|
|
11
|
+
onClick?: any;
|
|
12
12
|
btnDisabled?: Function;
|
|
13
|
+
btnHidden?: Function;
|
|
13
14
|
i18nKey?: string;
|
|
14
15
|
}
|
|
15
16
|
export interface GridList {
|