imm-element-ui 0.3.5 → 0.3.7
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 +21 -12
- package/esm2022/lib/grid/actions/actions.component.mjs +3 -3
- package/esm2022/lib/grid/grid/grid.component.mjs +20 -8
- package/esm2022/lib/head/head.component.mjs +2 -2
- package/esm2022/lib/page-form/page-form.component.mjs +2 -2
- package/esm2022/lib/page-grid-list/page-grid-list.component.mjs +10 -6
- package/esm2022/lib/search/pop-date/pop-date.component.mjs +3 -1
- package/esm2022/lib/search/pop-list/pop-list.component.mjs +3 -1
- package/esm2022/lib/search/pop-panel/pop-panel.component.mjs +3 -3
- package/esm2022/lib/search/pop-select/pop-select.component.mjs +3 -1
- package/esm2022/lib/search/search/search.component.mjs +10 -6
- package/esm2022/lib/search/search-utils.mjs +2 -2
- package/esm2022/lib/service/action.service.mjs +12 -8
- package/fesm2022/imm-element-ui.mjs +77 -38
- package/fesm2022/imm-element-ui.mjs.map +1 -1
- package/lib/crumb-action/crumb-action.component.d.ts +5 -3
- package/lib/grid/grid/grid.component.d.ts +6 -2
- package/lib/page-grid-list/page-grid-list.component.d.ts +4 -2
- package/lib/service/action.service.d.ts +2 -2
- package/package.json +1 -1
- package/src/lib/crumb-action/crumb-action.component.scss +5 -0
- package/src/lib/grid/grid/grid.component.scss +9 -1
|
@@ -27,12 +27,14 @@ export declare class CrumbActionComponent extends AmComponent implements OnInit
|
|
|
27
27
|
actionEvent: import("@angular/core").OutputEmitterRef<void>;
|
|
28
28
|
data: import("@angular/core").InputSignal<any>;
|
|
29
29
|
showAct: boolean;
|
|
30
|
+
menus: import("@angular/core").InputSignal<any[]>;
|
|
31
|
+
displayOpItems: import("@angular/core").Signal<any[]>;
|
|
30
32
|
newBtnTemplateRef: TemplateRef<any> | undefined;
|
|
31
33
|
listOpItems: {
|
|
32
34
|
label: string;
|
|
33
35
|
type: string;
|
|
34
36
|
icon: string;
|
|
35
|
-
|
|
37
|
+
auth: number;
|
|
36
38
|
}[];
|
|
37
39
|
constructor();
|
|
38
40
|
resize(event: any): void;
|
|
@@ -43,9 +45,9 @@ export declare class CrumbActionComponent extends AmComponent implements OnInit
|
|
|
43
45
|
back(item: any): void;
|
|
44
46
|
toggle(event: any): void;
|
|
45
47
|
toggleListOp(event: any): void;
|
|
46
|
-
listAct(
|
|
48
|
+
listAct(item: any): void;
|
|
47
49
|
actEvent(item: any): void;
|
|
48
50
|
toggleAct(event: any): void;
|
|
49
51
|
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; }; "data": { "alias": "data"; "required": false; "isSignal": true; }; }, { "saveEvent": "saveEvent"; "cancelEvent": "cancelEvent"; "actionEvent": "actionEvent"; }, ["newBtnTemplateRef"], never, true, never>;
|
|
52
|
+
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; }; "menus": { "alias": "menus"; "required": false; "isSignal": true; }; }, { "saveEvent": "saveEvent"; "cancelEvent": "cancelEvent"; "actionEvent": "actionEvent"; }, ["newBtnTemplateRef"], never, true, never>;
|
|
51
53
|
}
|
|
@@ -9,8 +9,8 @@ import { Observable } from 'rxjs';
|
|
|
9
9
|
import { HttpClient } from '@angular/common/http';
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
11
11
|
export interface GridOptions extends RawGridOptions {
|
|
12
|
-
serverFunc?: (search: Search) => Observable<any
|
|
13
|
-
clientFunc?: (search: Search) => Observable<any
|
|
12
|
+
serverFunc?: (search: Search) => Observable<any>;
|
|
13
|
+
clientFunc?: (search: Search) => Observable<any>;
|
|
14
14
|
preSearch?: Search;
|
|
15
15
|
treeDataField?: string;
|
|
16
16
|
treeLevel?: number;
|
|
@@ -256,6 +256,9 @@ export declare class GridComponent {
|
|
|
256
256
|
richMultMap: Record<string, any>;
|
|
257
257
|
horizontalScrollBarObserver: any;
|
|
258
258
|
horizontalScrollBarWidth: number;
|
|
259
|
+
selectedRows: import("@angular/core").WritableSignal<any[]>;
|
|
260
|
+
noRows: boolean;
|
|
261
|
+
showHorizontal: boolean;
|
|
259
262
|
constructor(action: ActionService);
|
|
260
263
|
ngOnInit(): void;
|
|
261
264
|
ngAfterViewInit(): void;
|
|
@@ -278,6 +281,7 @@ export declare class GridComponent {
|
|
|
278
281
|
delRows(): void;
|
|
279
282
|
initGridHeight(): void;
|
|
280
283
|
ajustGridHeight(): void;
|
|
284
|
+
ajustGridState(height: number): void;
|
|
281
285
|
editingFix(): void;
|
|
282
286
|
static ɵfac: i0.ɵɵFactoryDeclaration<GridComponent, never>;
|
|
283
287
|
static ɵcmp: i0.ɵɵComponentDeclaration<GridComponent, "custom-grid", never, { "gridOptions": { "alias": "gridOptions"; "required": false; "isSignal": true; }; "upsert": { "alias": "upsert"; "required": false; "isSignal": true; }; "rowData": { "alias": "rowData"; "required": false; "isSignal": true; }; "searchPrm": { "alias": "searchPrm"; "required": false; "isSignal": true; }; "addType": { "alias": "addType"; "required": false; "isSignal": true; }; "selectData": { "alias": "selectData"; "required": false; "isSignal": true; }; "showAct": { "alias": "showAct"; "required": false; "isSignal": true; }; "actPos": { "alias": "actPos"; "required": false; "isSignal": true; }; "authLevel": { "alias": "authLevel"; "required": false; "isSignal": true; }; }, { "searchPrm": "searchPrmChange"; "deleteEmit": "deleteEmit"; "addEmit": "addEmit"; }, never, never, true, never>;
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
import { GridOptions } from '../grid/grid/grid.component';
|
|
1
|
+
import { GridComponent, GridOptions } from '../grid/grid/grid.component';
|
|
2
2
|
import { AmComponent } from '../am/am.component';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class PageGridListComponent extends AmComponent {
|
|
5
|
+
customGrid: GridComponent;
|
|
5
6
|
params: import("@angular/core").InputSignal<any>;
|
|
6
7
|
actions: import("@angular/core").InputSignal<any[]>;
|
|
8
|
+
menus: import("@angular/core").InputSignal<any[]>;
|
|
7
9
|
gridOptions: import("@angular/core").InputSignal<GridOptions | undefined>;
|
|
8
10
|
authLevel: import("@angular/core").InputSignal<number>;
|
|
9
11
|
constructor();
|
|
10
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<PageGridListComponent, never>;
|
|
11
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PageGridListComponent, "app-page-grid-list", never, { "params": { "alias": "params"; "required": false; "isSignal": true; }; "actions": { "alias": "actions"; "required": false; "isSignal": true; }; "gridOptions": { "alias": "gridOptions"; "required": false; "isSignal": true; }; "authLevel": { "alias": "authLevel"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PageGridListComponent, "app-page-grid-list", never, { "params": { "alias": "params"; "required": false; "isSignal": true; }; "actions": { "alias": "actions"; "required": false; "isSignal": true; }; "menus": { "alias": "menus"; "required": false; "isSignal": true; }; "gridOptions": { "alias": "gridOptions"; "required": false; "isSignal": true; }; "authLevel": { "alias": "authLevel"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
12
14
|
}
|
|
@@ -18,6 +18,7 @@ export interface FieldLabelAction {
|
|
|
18
18
|
}
|
|
19
19
|
export declare class ActionService {
|
|
20
20
|
private router;
|
|
21
|
+
modelNameForSearch: import("@angular/core").WritableSignal<String | undefined>;
|
|
21
22
|
searchList: import("@angular/core").WritableSignal<SearchRow[]>;
|
|
22
23
|
searchItem: import("@angular/core").WritableSignal<SearchItem | undefined>;
|
|
23
24
|
groupItem: import("@angular/core").WritableSignal<SearchItem | undefined>;
|
|
@@ -32,6 +33,7 @@ export declare class ActionService {
|
|
|
32
33
|
clearSearch(modelName: string | undefined): void;
|
|
33
34
|
setSearch(search: Search, modelName: string | undefined): void;
|
|
34
35
|
getSearch(modelName: string | undefined): Search | undefined;
|
|
36
|
+
searchMonitor(modelName: string | undefined): boolean;
|
|
35
37
|
setSearchItem(searchItem: SearchItem | undefined): void;
|
|
36
38
|
getSearchItem(): SearchItem | undefined;
|
|
37
39
|
setGroupItem(groupItem: SearchItem | undefined): void;
|
|
@@ -40,8 +42,6 @@ export declare class ActionService {
|
|
|
40
42
|
getSearchClear(): String | undefined;
|
|
41
43
|
setGroupClear(groupClear: Boolean | undefined): void;
|
|
42
44
|
getGroupClear(): Boolean | undefined;
|
|
43
|
-
setSelectedRows(selectedRows: any[]): void;
|
|
44
|
-
getSelectedRows(): any[];
|
|
45
45
|
setPage(page: Page): void;
|
|
46
46
|
getPage(): Page | undefined;
|
|
47
47
|
setFieldLabelAction(key: string, type: 'mouseenter' | 'mouseleave' | 'click' | 'dblclick'): void;
|
package/package.json
CHANGED