imm-element-ui 0.9.3 → 0.9.4
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/form/form/form.component.mjs +30 -3
- package/esm2022/lib/form/form-field/field-utils.mjs +9 -1
- package/esm2022/lib/form/form-type/image.type.mjs +15 -1
- package/fesm2022/imm-element-ui.mjs +51 -2
- package/fesm2022/imm-element-ui.mjs.map +1 -1
- package/lib/crumb-action/crumb-action.component.d.ts +1 -1
- package/lib/form/form/form.component.d.ts +22 -0
- package/lib/form/form-field/field-utils.d.ts +1 -0
- package/lib/form/form-type/image.type.d.ts +2 -0
- package/package.json +1 -1
|
@@ -50,7 +50,7 @@ export declare class CrumbActionComponent extends AmComponent implements OnInit
|
|
|
50
50
|
listAct(item: any): void;
|
|
51
51
|
actEvent(item: any): void;
|
|
52
52
|
toggleAct(event: any): void;
|
|
53
|
-
setSaveClass(): "
|
|
53
|
+
setSaveClass(): "secondary" | "danger";
|
|
54
54
|
ngOnDestroy(): void;
|
|
55
55
|
static ɵfac: i0.ɵɵFactoryDeclaration<CrumbActionComponent, never>;
|
|
56
56
|
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; }; "saveBtnDisable": { "alias": "saveBtnDisable"; "required": false; "isSignal": true; }; }, { "saveEvent": "saveEvent"; "cancelEvent": "cancelEvent"; "actionEvent": "actionEvent"; }, ["newBtnTemplateRef"], never, true, never>;
|
|
@@ -19,6 +19,11 @@ export interface FormOptions {
|
|
|
19
19
|
type?: string;
|
|
20
20
|
fk?: string;
|
|
21
21
|
}
|
|
22
|
+
export interface ExternalData {
|
|
23
|
+
key?: string;
|
|
24
|
+
value?: any;
|
|
25
|
+
label?: string;
|
|
26
|
+
}
|
|
22
27
|
export declare class FormComponent {
|
|
23
28
|
private cdr;
|
|
24
29
|
private datePipe;
|
|
@@ -57,7 +62,24 @@ export declare class FormComponent {
|
|
|
57
62
|
reCalcLabelSize(): void;
|
|
58
63
|
handleFieldLabels(): void;
|
|
59
64
|
getFieldLabels(fieldComponents: QueryList<FormFieldComponent> | undefined, fieldLabels: ElementRef[]): void;
|
|
65
|
+
/**
|
|
66
|
+
* 触发模型变动,针对表单字段数据
|
|
67
|
+
* @param model 需要变动的数据
|
|
68
|
+
*/
|
|
60
69
|
triggerModelEffect(model: any): void;
|
|
70
|
+
/**
|
|
71
|
+
* 触发数据变动,针对非表单字段数据
|
|
72
|
+
* @param dataList 外部数据列表
|
|
73
|
+
*/
|
|
74
|
+
triggerDataEffect(dataList: ExternalData[]): void;
|
|
75
|
+
/**
|
|
76
|
+
* 动态设置字段禁用,禁用前清除字段dirty标记
|
|
77
|
+
* @param key 字段key
|
|
78
|
+
*/
|
|
79
|
+
setFieldDisabled(key: string): void;
|
|
80
|
+
/**
|
|
81
|
+
* 表单提交后的收尾处理,一般在提交接口的回调函数执行
|
|
82
|
+
*/
|
|
61
83
|
finalize(): void;
|
|
62
84
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormComponent, never>;
|
|
63
85
|
static ɵcmp: i0.ɵɵComponentDeclaration<FormComponent, "custom-form", never, { "options": { "alias": "options"; "required": false; "isSignal": true; }; "model": { "alias": "model"; "required": false; "isSignal": true; }; "upsert": { "alias": "upsert"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
@@ -4,6 +4,7 @@ import { I18nService } from '../../service/i18n.service';
|
|
|
4
4
|
export declare const fieldUtils: {
|
|
5
5
|
props: (field: FormField) => FieldProps;
|
|
6
6
|
label: (field: FormField, i18nService: I18nService) => string | undefined;
|
|
7
|
+
fieldHandler: (field: FormField) => void;
|
|
7
8
|
triggerHookAndSetValue: (field: FormField, value: any, emitEvent: boolean, detectModelChange: boolean, hookObservers: any[], callback: any, datePipe: DatePipe) => void;
|
|
8
9
|
fromFieldValue: (field: FormField, target: any, datePipe: DatePipe) => any;
|
|
9
10
|
preloadLog: (rawModel: any, fieldList: FormField[], datePipe: DatePipe) => any;
|
|
@@ -18,6 +18,7 @@ export interface ImageProps extends FieldProps {
|
|
|
18
18
|
cancelStyleClass?: string;
|
|
19
19
|
removeStyleClass?: string;
|
|
20
20
|
chooseStyleClass?: string;
|
|
21
|
+
adjustable?: boolean;
|
|
21
22
|
onBeforeUpload?: AttributeEvent;
|
|
22
23
|
onSend?: AttributeEvent;
|
|
23
24
|
onUpload?: AttributeEvent;
|
|
@@ -45,6 +46,7 @@ export declare class ImageComponent {
|
|
|
45
46
|
handleModelChange(): void;
|
|
46
47
|
afterSubmit(): void;
|
|
47
48
|
handleDisabled(): void;
|
|
49
|
+
ajustedImage(event: any): void;
|
|
48
50
|
static ɵfac: i0.ɵɵFactoryDeclaration<ImageComponent, never>;
|
|
49
51
|
static ɵcmp: i0.ɵɵComponentDeclaration<ImageComponent, "form-image", never, { "field": { "alias": "field"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
50
52
|
}
|