imm-element-ui 2.8.4 → 2.8.6
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 +38 -33
- package/esm2022/lib/form/form-field/field-utils.mjs +4 -1
- package/esm2022/lib/form/form-field/form-field.mjs +1 -1
- package/esm2022/lib/form/form-field/form-type.mjs +10 -2
- package/esm2022/lib/form/form-type/imagepreview.type.mjs +87 -0
- package/esm2022/lib/form/form-type/index.mjs +2 -1
- package/esm2022/lib/page-form/page-form.component.mjs +4 -3
- package/esm2022/lib/page-form/page-form.interface.mjs +2 -1
- package/esm2022/lib/page-grid-list/page-grid-list.component.mjs +2 -2
- package/esm2022/lib/service/userHistory.service.mjs +11 -6
- package/fesm2022/imm-element-ui.mjs +148 -42
- package/fesm2022/imm-element-ui.mjs.map +1 -1
- package/lib/crumb-action/crumb-action.component.d.ts +7 -3
- package/lib/form/form-field/form-field.d.ts +3 -2
- package/lib/form/form-field/form-type.d.ts +2 -1
- package/lib/form/form-type/imagepreview.type.d.ts +24 -0
- package/lib/form/form-type/index.d.ts +1 -0
- package/lib/grid/grid/grid.component.d.ts +1 -1
- package/lib/page-form/page-form.component.d.ts +2 -1
- package/lib/search/pop-date/pop-date.component.d.ts +1 -1
- package/package.json +1 -1
|
@@ -6,8 +6,11 @@ import * as i0 from "@angular/core";
|
|
|
6
6
|
export declare class CrumbActionComponent extends AmComponent implements OnInit {
|
|
7
7
|
userHistoryService: UserHistoryService;
|
|
8
8
|
action: ActionService;
|
|
9
|
-
crumbList: import("@angular/core").Signal<
|
|
10
|
-
|
|
9
|
+
crumbList: import("@angular/core").Signal<HistoryItem[]>;
|
|
10
|
+
breadcrumbList: import("@angular/core").Signal<HistoryItem[]>;
|
|
11
|
+
showCloseButton: import("@angular/core").Signal<boolean>;
|
|
12
|
+
private readonly emptyCrumbTitle;
|
|
13
|
+
crumbTitle: import("@angular/core").WritableSignal<HistoryItem>;
|
|
11
14
|
isNew: boolean;
|
|
12
15
|
isShowCog: import("@angular/core").InputSignal<boolean>;
|
|
13
16
|
crumbFront: HistoryItem[];
|
|
@@ -21,6 +24,7 @@ export declare class CrumbActionComponent extends AmComponent implements OnInit
|
|
|
21
24
|
exportVisible: import("@angular/core").InputSignal<boolean>;
|
|
22
25
|
newUrl: import("@angular/core").InputSignal<string>;
|
|
23
26
|
configNewPath: import("@angular/core").InputSignal<string>;
|
|
27
|
+
closeFallbackUrl: import("@angular/core").InputSignal<string>;
|
|
24
28
|
onExport: import("@angular/core").InputSignal<Function | undefined>;
|
|
25
29
|
outlined: import("@angular/core").InputSignal<boolean>;
|
|
26
30
|
isList: import("@angular/core").InputSignal<boolean>;
|
|
@@ -53,5 +57,5 @@ export declare class CrumbActionComponent extends AmComponent implements OnInit
|
|
|
53
57
|
setSaveClass(): "danger" | "secondary";
|
|
54
58
|
ngOnDestroy(): void;
|
|
55
59
|
static ɵfac: i0.ɵɵFactoryDeclaration<CrumbActionComponent, never>;
|
|
56
|
-
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; }; "showSaveButton": { "alias": "showSaveButton"; "required": false; "isSignal": true; }; }, { "saveEvent": "saveEvent"; "cancelEvent": "cancelEvent"; "actionEvent": "actionEvent"; }, ["newBtnTemplateRef"], never, true, never>;
|
|
60
|
+
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; }; "closeFallbackUrl": { "alias": "closeFallbackUrl"; "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; }; "showSaveButton": { "alias": "showSaveButton"; "required": false; "isSignal": true; }; }, { "saveEvent": "saveEvent"; "cancelEvent": "cancelEvent"; "actionEvent": "actionEvent"; }, ["newBtnTemplateRef"], never, true, never>;
|
|
57
61
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ElementRef, QueryList, WritableSignal } from '@angular/core';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
-
import { InputTextProps, InputNumberProps, SelectProps, TreeSelectProps, DatePickerProps, AutoCompleteProps, MultiSelectProps, RadioProps, TextAreaProps, UploadProps, ImageProps, CodeMirrorProps } from './form-type';
|
|
3
|
+
import { InputTextProps, InputNumberProps, SelectProps, TreeSelectProps, DatePickerProps, AutoCompleteProps, MultiSelectProps, RadioProps, TextAreaProps, UploadProps, ImageProps, ImagePreviewProps, CodeMirrorProps } from './form-type';
|
|
4
4
|
import { FieldControl } from './field-control';
|
|
5
5
|
import { FormComponent } from '../form/form.component';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export interface FormField {
|
|
8
8
|
key?: string;
|
|
9
|
-
type?: 'inputtext' | 'inputnumber' | 'select' | 'treeselect' | 'datepicker' | 'autocomplete' | 'multiselect' | 'radio' | 'textarea' | 'upload' | 'image' | 'codemirror' | 'rowselector';
|
|
9
|
+
type?: 'inputtext' | 'inputnumber' | 'select' | 'treeselect' | 'datepicker' | 'autocomplete' | 'multiselect' | 'radio' | 'textarea' | 'upload' | 'image' | 'imagepreview' | 'codemirror' | 'rowselector';
|
|
10
10
|
default?: any;
|
|
11
11
|
id?: string;
|
|
12
12
|
name?: string;
|
|
@@ -26,6 +26,7 @@ export interface FormField {
|
|
|
26
26
|
textAreaProps?: TextAreaProps;
|
|
27
27
|
uploadProps?: UploadProps;
|
|
28
28
|
imageProps?: ImageProps;
|
|
29
|
+
imagePreviewProps?: ImagePreviewProps;
|
|
29
30
|
codeMirrorProps?: CodeMirrorProps;
|
|
30
31
|
rowSelectorProps?: any;
|
|
31
32
|
hide?: boolean;
|
|
@@ -10,10 +10,11 @@ import { RadioProps } from '../form-type/radio.type';
|
|
|
10
10
|
import { TextAreaProps } from '../form-type/textarea.type';
|
|
11
11
|
import { UploadProps } from '../form-type/upload.type';
|
|
12
12
|
import { ImageProps } from '../form-type/image.type';
|
|
13
|
+
import { ImagePreviewProps } from '../form-type/imagepreview.type';
|
|
13
14
|
import { CodeMirrorProps } from '../form-type/codemirror.type';
|
|
14
15
|
import { RowSelectorProps } from '../form-type/rowselector.type';
|
|
15
16
|
import * as i0 from "@angular/core";
|
|
16
|
-
export { InputTextProps, InputNumberProps, SelectProps, TreeSelectProps, DatePickerProps, AutoCompleteProps, MultiSelectProps, RadioProps, TextAreaProps, UploadProps, ImageProps, CodeMirrorProps, RowSelectorProps, };
|
|
17
|
+
export { InputTextProps, InputNumberProps, SelectProps, TreeSelectProps, DatePickerProps, AutoCompleteProps, MultiSelectProps, RadioProps, TextAreaProps, UploadProps, ImageProps, ImagePreviewProps, CodeMirrorProps, RowSelectorProps, };
|
|
17
18
|
export declare class FormTypeComponent {
|
|
18
19
|
field: import("@angular/core").InputSignal<FormField | undefined>;
|
|
19
20
|
constructor();
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { FormField, FieldProps } from '../form-field/form-field';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export interface ImagePreviewProps extends FieldProps {
|
|
4
|
+
baseUrl?: string;
|
|
5
|
+
separator?: string;
|
|
6
|
+
width?: number | string;
|
|
7
|
+
height?: number | string;
|
|
8
|
+
imageStyle?: any;
|
|
9
|
+
alt?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare class ImagePreviewComponent {
|
|
12
|
+
field: import("@angular/core").InputSignal<FormField | undefined>;
|
|
13
|
+
props: ImagePreviewProps;
|
|
14
|
+
private readonly defaultBaseUrl;
|
|
15
|
+
constructor();
|
|
16
|
+
imageList(): string[];
|
|
17
|
+
resolveSrc(image: string): string;
|
|
18
|
+
imageWidth(): string;
|
|
19
|
+
imageHeight(): string;
|
|
20
|
+
previewImageStyle(): any;
|
|
21
|
+
private normalizeSize;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ImagePreviewComponent, never>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ImagePreviewComponent, "form-imagepreview", never, { "field": { "alias": "field"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
24
|
+
}
|
|
@@ -79,7 +79,7 @@ export declare class GridComponent {
|
|
|
79
79
|
addType: import("@angular/core").InputSignal<"none" | "select" | "handle" | undefined>;
|
|
80
80
|
selectData: import("@angular/core").InputSignal<any[] | undefined>;
|
|
81
81
|
showAct: import("@angular/core").InputSignal<boolean>;
|
|
82
|
-
actPos: import("@angular/core").InputSignal<"
|
|
82
|
+
actPos: import("@angular/core").InputSignal<"bottom" | "top">;
|
|
83
83
|
authLevel: import("@angular/core").InputSignal<number>;
|
|
84
84
|
http: HttpClient;
|
|
85
85
|
renderer: Renderer2;
|
|
@@ -36,6 +36,7 @@ export declare class PageFormComponent extends AmComponent implements OnInit, On
|
|
|
36
36
|
saveFunc: import("@angular/core").InputSignal<any>;
|
|
37
37
|
showMainSaveButton: import("@angular/core").InputSignal<boolean>;
|
|
38
38
|
configNewPath: import("@angular/core").InputSignal<any>;
|
|
39
|
+
closeFallbackUrl: import("@angular/core").InputSignal<string>;
|
|
39
40
|
runtimeContextInput: import("@angular/core").InputSignal<any>;
|
|
40
41
|
customLeftPanel: import("@angular/core").InputSignal<TemplateRef<any> | null>;
|
|
41
42
|
customListFormTemplateMap: import("@angular/core").InputSignal<Record<string, TemplateRef<CustomListFormTemplateContext>> | null>;
|
|
@@ -204,5 +205,5 @@ export declare class PageFormComponent extends AmComponent implements OnInit, On
|
|
|
204
205
|
addRowClickHandler(grid: GridList): void;
|
|
205
206
|
delRowClickHandler(grid: GridList): void;
|
|
206
207
|
static ɵfac: i0.ɵɵFactoryDeclaration<PageFormComponent, never>;
|
|
207
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PageFormComponent, "app-page-form", never, { "addVisible": { "alias": "addVisible"; "required": false; "isSignal": true; }; "gridList": { "alias": "gridList"; "required": false; "isSignal": true; }; "form": { "alias": "form"; "required": true; "isSignal": true; }; "getPrmInput": { "alias": "getPrmInput"; "required": true; "isSignal": true; }; "statusSteps": { "alias": "statusSteps"; "required": false; "isSignal": true; }; "statusKey": { "alias": "statusKey"; "required": false; "isSignal": true; }; "hrefBtnList": { "alias": "hrefBtnList"; "required": false; "isSignal": true; }; "setTitle": { "alias": "setTitle"; "required": false; "isSignal": true; }; "actionList": { "alias": "actionList"; "required": false; "isSignal": true; }; "modelLog": { "alias": "modelLog"; "required": false; "isSignal": true; }; "formDisabled": { "alias": "formDisabled"; "required": false; "isSignal": true; }; "statusConf": { "alias": "statusConf"; "required": false; "isSignal": true; }; "formDetail": { "alias": "formDetail"; "required": false; "isSignal": true; }; "saveFunc": { "alias": "saveFunc"; "required": false; "isSignal": true; }; "showMainSaveButton": { "alias": "showMainSaveButton"; "required": false; "isSignal": true; }; "configNewPath": { "alias": "configNewPath"; "required": false; "isSignal": true; }; "runtimeContextInput": { "alias": "runtimeContextInput"; "required": false; "isSignal": true; }; "customLeftPanel": { "alias": "customLeftPanel"; "required": false; "isSignal": true; }; "customListFormTemplateMap": { "alias": "customListFormTemplateMap"; "required": false; "isSignal": true; }; "customListFormInstanceMap": { "alias": "customListFormInstanceMap"; "required": false; "isSignal": true; }; "leftPanel": { "alias": "leftPanel"; "required": false; "isSignal": true; }; "panelSelectedData": { "alias": "panelSelectedData"; "required": false; "isSignal": true; }; "authLevel": { "alias": "authLevel"; "required": false; "isSignal": true; }; }, {}, ["pageFormSlots"], never, true, never>;
|
|
208
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PageFormComponent, "app-page-form", never, { "addVisible": { "alias": "addVisible"; "required": false; "isSignal": true; }; "gridList": { "alias": "gridList"; "required": false; "isSignal": true; }; "form": { "alias": "form"; "required": true; "isSignal": true; }; "getPrmInput": { "alias": "getPrmInput"; "required": true; "isSignal": true; }; "statusSteps": { "alias": "statusSteps"; "required": false; "isSignal": true; }; "statusKey": { "alias": "statusKey"; "required": false; "isSignal": true; }; "hrefBtnList": { "alias": "hrefBtnList"; "required": false; "isSignal": true; }; "setTitle": { "alias": "setTitle"; "required": false; "isSignal": true; }; "actionList": { "alias": "actionList"; "required": false; "isSignal": true; }; "modelLog": { "alias": "modelLog"; "required": false; "isSignal": true; }; "formDisabled": { "alias": "formDisabled"; "required": false; "isSignal": true; }; "statusConf": { "alias": "statusConf"; "required": false; "isSignal": true; }; "formDetail": { "alias": "formDetail"; "required": false; "isSignal": true; }; "saveFunc": { "alias": "saveFunc"; "required": false; "isSignal": true; }; "showMainSaveButton": { "alias": "showMainSaveButton"; "required": false; "isSignal": true; }; "configNewPath": { "alias": "configNewPath"; "required": false; "isSignal": true; }; "closeFallbackUrl": { "alias": "closeFallbackUrl"; "required": false; "isSignal": true; }; "runtimeContextInput": { "alias": "runtimeContextInput"; "required": false; "isSignal": true; }; "customLeftPanel": { "alias": "customLeftPanel"; "required": false; "isSignal": true; }; "customListFormTemplateMap": { "alias": "customListFormTemplateMap"; "required": false; "isSignal": true; }; "customListFormInstanceMap": { "alias": "customListFormInstanceMap"; "required": false; "isSignal": true; }; "leftPanel": { "alias": "leftPanel"; "required": false; "isSignal": true; }; "panelSelectedData": { "alias": "panelSelectedData"; "required": false; "isSignal": true; }; "authLevel": { "alias": "authLevel"; "required": false; "isSignal": true; }; }, {}, ["pageFormSlots"], never, true, never>;
|
|
208
209
|
}
|
|
@@ -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;
|