cnhis-design-vue 3.1.50-beta.11 → 3.1.50-beta.13
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/README.md +87 -87
- package/es/components/expand-field/src/components/form.vue2.js +1 -1
- package/es/components/expand-field/src/index.vue2.js +1 -1
- package/es/components/form-config/index.d.ts +186 -6
- package/es/components/form-config/src/FormConfig.vue.d.ts +186 -6
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +90 -3
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +93 -3
- package/es/components/form-config/src/hooks/useConfigurationField.js +1 -1
- package/es/components/form-render/index.d.ts +90 -3
- package/es/components/form-render/src/FormRender.vue.d.ts +90 -3
- package/es/components/form-render/src/FormRender.vue2.js +1 -1
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +90 -3
- package/es/components/form-render/src/components/renderer/select.d.ts +3 -0
- package/es/components/form-render/src/components/renderer/select.js +1 -1
- package/es/components/form-render/src/hooks/useFieldListAdaptor.d.ts +2 -5
- package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
- package/es/components/form-render/src/hooks/useFieldNormalize.d.ts +173 -4
- package/es/components/form-render/src/hooks/useFieldNormalize.js +1 -1
- package/es/components/form-render/src/types/index.d.ts +1 -0
- package/es/components/iho-table/index.d.ts +26 -0
- package/es/components/iho-table/src/IhoTable.vue.d.ts +26 -0
- package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks.d.ts +3 -1
- package/es/components/iho-table/src/plugins/keyboardEventPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/checkRendererPlugin.js +1 -1
- package/es/components/iho-table/src/plugins/varialbleHeightPlugin/index.js +1 -1
- package/es/components/iho-table/src/types/index.d.ts +4 -0
- package/es/components/info-header/index.d.ts +270 -9
- package/es/components/info-header/src/InfoHeader.vue.d.ts +270 -9
- package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +86 -3
- package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +86 -3
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +176 -6
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +90 -3
- package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
- package/es/components/select-label/src/LabelFormContent.vue2.js +1 -1
- package/es/components/select-person/src/SearchMultiple.vue.d.ts +6 -0
- package/es/components/shortcut-setter/index.d.ts +90 -3
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +90 -3
- package/es/components/table-export-field/src/components/ExportModal.vue.d.ts +0 -3
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +28 -0
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +1 -1
- package/es/env.d.ts +25 -25
- package/es/shared/assets/img/failure.png.js +1 -1
- package/es/shared/assets/img/no-permission.png.js +1 -1
- package/es/shared/assets/img/nodata.png.js +1 -1
- package/es/shared/assets/img/notfound.png.js +1 -1
- package/es/shared/assets/img/qr.png.js +1 -1
- package/es/shared/assets/img/success.png.js +1 -1
- package/es/shared/assets/img/video.png.js +1 -1
- package/es/shared/assets/img/video_default_cover.png.js +1 -1
- package/es/shared/assets/img/xb_big.png.js +1 -1
- package/es/shared/assets/img/xb_small.png.js +1 -1
- package/es/shared/package.json.js +1 -1
- package/es/shared/utils/index.d.ts +3 -3
- package/package.json +2 -2
- package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
- package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
- package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
- package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
- package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
- package/es/shared/utils/fabricjs/index.d.ts +0 -6823
- package/es/shared/utils/tapable/index.d.ts +0 -139
|
@@ -105,6 +105,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
105
105
|
uniqueCacheData: boolean;
|
|
106
106
|
operationalForm: import("../../../../es/shared/types").FormOperationalConfig[];
|
|
107
107
|
outBordered: boolean;
|
|
108
|
+
forceClearable: boolean;
|
|
108
109
|
}>>>;
|
|
109
110
|
};
|
|
110
111
|
}, {
|
|
@@ -210,6 +211,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
210
211
|
uniqueCacheData: boolean;
|
|
211
212
|
operationalForm: import("../../../../es/shared/types").FormOperationalConfig[];
|
|
212
213
|
outBordered: boolean;
|
|
214
|
+
forceClearable: boolean;
|
|
213
215
|
}>>>;
|
|
214
216
|
};
|
|
215
217
|
}>> & {
|
|
@@ -7407,6 +7409,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
7407
7409
|
type: BooleanConstructor;
|
|
7408
7410
|
default: boolean;
|
|
7409
7411
|
};
|
|
7412
|
+
forceClearable: BooleanConstructor;
|
|
7410
7413
|
}, {
|
|
7411
7414
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
7412
7415
|
fieldList: {
|
|
@@ -7551,6 +7554,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
7551
7554
|
type: BooleanConstructor;
|
|
7552
7555
|
default: boolean;
|
|
7553
7556
|
};
|
|
7557
|
+
forceClearable: BooleanConstructor;
|
|
7554
7558
|
}>> & {
|
|
7555
7559
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
|
7556
7560
|
onScroll?: ((...args: any[]) => any) | undefined;
|
|
@@ -7600,10 +7604,93 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
7600
7604
|
operationalFormHandler: (field: string) => void;
|
|
7601
7605
|
triggerAllOperationalFormHandler: () => void;
|
|
7602
7606
|
wordbookSettingHandler: (fieldKey: string, value: unknown) => void;
|
|
7603
|
-
schemaAdaptor: (fieldList: import("../../../../es/components/form-render").FieldItem[], options?: {
|
|
7607
|
+
schemaAdaptor: (fieldList: import("../../../../es/components/form-render").FieldItem[], options?: Partial<{
|
|
7608
|
+
fieldList: import("../../../../es/components/form-render").FieldItem[];
|
|
7609
|
+
initialData: import("../../../../es/shared/types").AnyObject;
|
|
7610
|
+
fieldVisitor: import("../../../../es/components/form-render").FieldVisitor;
|
|
7604
7611
|
column: number;
|
|
7605
|
-
|
|
7606
|
-
|
|
7612
|
+
maxHeight: string | number;
|
|
7613
|
+
anchor: boolean;
|
|
7614
|
+
parallelism: number;
|
|
7615
|
+
schema: import("@formily/json-schema").Stringify<{
|
|
7616
|
+
[key: symbol]: any;
|
|
7617
|
+
[key: `x-${string}`]: any;
|
|
7618
|
+
[key: `x-${number}`]: any;
|
|
7619
|
+
version?: string | undefined;
|
|
7620
|
+
name?: import("@formily/json-schema").SchemaKey | undefined;
|
|
7621
|
+
title?: any;
|
|
7622
|
+
description?: any;
|
|
7623
|
+
default?: any;
|
|
7624
|
+
readOnly?: boolean | undefined;
|
|
7625
|
+
writeOnly?: boolean | undefined;
|
|
7626
|
+
type?: import("@formily/json-schema").SchemaTypes | undefined;
|
|
7627
|
+
enum?: import("@formily/json-schema").SchemaEnum<any> | undefined;
|
|
7628
|
+
const?: any;
|
|
7629
|
+
multipleOf?: number | undefined;
|
|
7630
|
+
maximum?: number | undefined;
|
|
7631
|
+
exclusiveMaximum?: number | undefined;
|
|
7632
|
+
minimum?: number | undefined;
|
|
7633
|
+
exclusiveMinimum?: number | undefined;
|
|
7634
|
+
maxLength?: number | undefined;
|
|
7635
|
+
minLength?: number | undefined;
|
|
7636
|
+
pattern?: string | RegExp | undefined;
|
|
7637
|
+
maxItems?: number | undefined;
|
|
7638
|
+
minItems?: number | undefined;
|
|
7639
|
+
uniqueItems?: boolean | undefined;
|
|
7640
|
+
maxProperties?: number | undefined;
|
|
7641
|
+
minProperties?: number | undefined;
|
|
7642
|
+
required?: string | boolean | string[] | undefined;
|
|
7643
|
+
format?: string | undefined;
|
|
7644
|
+
$ref?: string | undefined;
|
|
7645
|
+
$namespace?: string | undefined;
|
|
7646
|
+
definitions?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
|
|
7647
|
+
properties?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
|
|
7648
|
+
items?: import("@formily/json-schema").SchemaItems<any, any, any, any, any, any, any, any> | undefined;
|
|
7649
|
+
additionalItems?: import("@formily/json-schema").Stringify<any> | undefined;
|
|
7650
|
+
patternProperties?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
|
|
7651
|
+
additionalProperties?: import("@formily/json-schema").Stringify<any> | undefined;
|
|
7652
|
+
"x-value"?: any;
|
|
7653
|
+
"x-index"?: number | undefined;
|
|
7654
|
+
"x-pattern"?: any;
|
|
7655
|
+
"x-display"?: any;
|
|
7656
|
+
"x-validator"?: any;
|
|
7657
|
+
"x-decorator"?: any;
|
|
7658
|
+
"x-decorator-props"?: any;
|
|
7659
|
+
"x-component"?: any;
|
|
7660
|
+
"x-component-props"?: any;
|
|
7661
|
+
"x-reactions"?: import("@formily/json-schema").SchemaReactions<any> | undefined;
|
|
7662
|
+
"x-content"?: any;
|
|
7663
|
+
"x-data"?: any;
|
|
7664
|
+
"x-visible"?: boolean | undefined;
|
|
7665
|
+
"x-hidden"?: boolean | undefined;
|
|
7666
|
+
"x-disabled"?: boolean | undefined;
|
|
7667
|
+
"x-editable"?: boolean | undefined;
|
|
7668
|
+
"x-read-only"?: boolean | undefined;
|
|
7669
|
+
"x-read-pretty"?: boolean | undefined;
|
|
7670
|
+
"x-compile-omitted"?: string[] | undefined;
|
|
7671
|
+
}>;
|
|
7672
|
+
components: Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>>;
|
|
7673
|
+
scope: import("../../../../es/shared/types").AnyObject;
|
|
7674
|
+
annotation: import("../../../../es/shared/types").AnyObject;
|
|
7675
|
+
consumer: boolean;
|
|
7676
|
+
uuid: string;
|
|
7677
|
+
lifeCycle: Partial<{
|
|
7678
|
+
onSetup(): void;
|
|
7679
|
+
beforeRequest(fieldKey: string, params?: import("../../../../es/shared/types").AnyObject | undefined, payload?: import("../../../../es/shared/types").AnyObject | undefined): void | import("../../../../es/shared/types").UndefinedAble<import("../../../../es/shared/types").AnyObject>;
|
|
7680
|
+
afterRequest(fieldKey: string, res?: any, payload?: import("../../../../es/shared/types").AnyObject | undefined): import("../../../../es/shared/types").AnyObject[];
|
|
7681
|
+
afterOptionInit(fieldKey: string, options: import("../../../../es/shared/types").AnyObject[], payload?: import("../../../../es/shared/types").AnyObject | undefined): void;
|
|
7682
|
+
}>;
|
|
7683
|
+
businessFormatter: import("../../../../es/components/form-render").FormBusinessFormatter;
|
|
7684
|
+
requestInstance: import("../../../../es/components/form-render").RequestInstance;
|
|
7685
|
+
enterToNextWidget: boolean | ((fieldItem: import("../../../../es/components/form-render").FieldItem) => boolean | void);
|
|
7686
|
+
lowCodeReactions: import("../../../../es/components/form-render").FormLowCodeReactions.Config[];
|
|
7687
|
+
linebarAutoHidden: boolean;
|
|
7688
|
+
bordered: string | boolean;
|
|
7689
|
+
uniqueCacheData: boolean;
|
|
7690
|
+
operationalForm: import("../../../../es/shared/types").FormOperationalConfig[];
|
|
7691
|
+
outBordered: boolean;
|
|
7692
|
+
forceClearable: boolean;
|
|
7693
|
+
}>) => Record<string, import("@formily/json-schema").Stringify<{
|
|
7607
7694
|
[key: symbol]: any;
|
|
7608
7695
|
[key: `x-${string}`]: any;
|
|
7609
7696
|
[key: `x-${number}`]: any;
|
|
@@ -8027,6 +8114,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
8027
8114
|
type: BooleanConstructor;
|
|
8028
8115
|
default: boolean;
|
|
8029
8116
|
};
|
|
8117
|
+
forceClearable: BooleanConstructor;
|
|
8030
8118
|
}>> & {
|
|
8031
8119
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
|
8032
8120
|
onScroll?: ((...args: any[]) => any) | undefined;
|
|
@@ -8035,6 +8123,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
8035
8123
|
anchor: boolean;
|
|
8036
8124
|
maxHeight: string | number;
|
|
8037
8125
|
column: number;
|
|
8126
|
+
forceClearable: boolean;
|
|
8038
8127
|
components: Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>>;
|
|
8039
8128
|
initialData: import("../../../../es/shared/types").AnyObject;
|
|
8040
8129
|
parallelism: number;
|
|
@@ -8251,6 +8340,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
8251
8340
|
uniqueCacheData: boolean;
|
|
8252
8341
|
operationalForm: import("../../../../es/shared/types").FormOperationalConfig[];
|
|
8253
8342
|
outBordered: boolean;
|
|
8343
|
+
forceClearable: boolean;
|
|
8254
8344
|
}>>>;
|
|
8255
8345
|
};
|
|
8256
8346
|
}, {
|
|
@@ -8348,6 +8438,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
8348
8438
|
uniqueCacheData: boolean;
|
|
8349
8439
|
operationalForm: import("../../../../es/shared/types").FormOperationalConfig[];
|
|
8350
8440
|
outBordered: boolean;
|
|
8441
|
+
forceClearable: boolean;
|
|
8351
8442
|
}>>>;
|
|
8352
8443
|
};
|
|
8353
8444
|
}>> & {}>>;
|
|
@@ -13687,6 +13778,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
13687
13778
|
type: BooleanConstructor;
|
|
13688
13779
|
default: boolean;
|
|
13689
13780
|
};
|
|
13781
|
+
forceClearable: BooleanConstructor;
|
|
13690
13782
|
}, {
|
|
13691
13783
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
13692
13784
|
fieldList: {
|
|
@@ -13831,6 +13923,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
13831
13923
|
type: BooleanConstructor;
|
|
13832
13924
|
default: boolean;
|
|
13833
13925
|
};
|
|
13926
|
+
forceClearable: BooleanConstructor;
|
|
13834
13927
|
}>> & {
|
|
13835
13928
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
|
13836
13929
|
onScroll?: ((...args: any[]) => any) | undefined;
|
|
@@ -13880,10 +13973,93 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
13880
13973
|
operationalFormHandler: (field: string) => void;
|
|
13881
13974
|
triggerAllOperationalFormHandler: () => void;
|
|
13882
13975
|
wordbookSettingHandler: (fieldKey: string, value: unknown) => void;
|
|
13883
|
-
schemaAdaptor: (fieldList: import("../../../../es/components/form-render").FieldItem[], options?: {
|
|
13976
|
+
schemaAdaptor: (fieldList: import("../../../../es/components/form-render").FieldItem[], options?: Partial<{
|
|
13977
|
+
fieldList: import("../../../../es/components/form-render").FieldItem[];
|
|
13978
|
+
initialData: import("../../../../es/shared/types").AnyObject;
|
|
13979
|
+
fieldVisitor: import("../../../../es/components/form-render").FieldVisitor;
|
|
13884
13980
|
column: number;
|
|
13885
|
-
|
|
13886
|
-
|
|
13981
|
+
maxHeight: string | number;
|
|
13982
|
+
anchor: boolean;
|
|
13983
|
+
parallelism: number;
|
|
13984
|
+
schema: import("@formily/json-schema").Stringify<{
|
|
13985
|
+
[key: symbol]: any;
|
|
13986
|
+
[key: `x-${string}`]: any;
|
|
13987
|
+
[key: `x-${number}`]: any;
|
|
13988
|
+
version?: string | undefined;
|
|
13989
|
+
name?: import("@formily/json-schema").SchemaKey | undefined;
|
|
13990
|
+
title?: any;
|
|
13991
|
+
description?: any;
|
|
13992
|
+
default?: any;
|
|
13993
|
+
readOnly?: boolean | undefined;
|
|
13994
|
+
writeOnly?: boolean | undefined;
|
|
13995
|
+
type?: import("@formily/json-schema").SchemaTypes | undefined;
|
|
13996
|
+
enum?: import("@formily/json-schema").SchemaEnum<any> | undefined;
|
|
13997
|
+
const?: any;
|
|
13998
|
+
multipleOf?: number | undefined;
|
|
13999
|
+
maximum?: number | undefined;
|
|
14000
|
+
exclusiveMaximum?: number | undefined;
|
|
14001
|
+
minimum?: number | undefined;
|
|
14002
|
+
exclusiveMinimum?: number | undefined;
|
|
14003
|
+
maxLength?: number | undefined;
|
|
14004
|
+
minLength?: number | undefined;
|
|
14005
|
+
pattern?: string | RegExp | undefined;
|
|
14006
|
+
maxItems?: number | undefined;
|
|
14007
|
+
minItems?: number | undefined;
|
|
14008
|
+
uniqueItems?: boolean | undefined;
|
|
14009
|
+
maxProperties?: number | undefined;
|
|
14010
|
+
minProperties?: number | undefined;
|
|
14011
|
+
required?: string | boolean | string[] | undefined;
|
|
14012
|
+
format?: string | undefined;
|
|
14013
|
+
$ref?: string | undefined;
|
|
14014
|
+
$namespace?: string | undefined;
|
|
14015
|
+
definitions?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
|
|
14016
|
+
properties?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
|
|
14017
|
+
items?: import("@formily/json-schema").SchemaItems<any, any, any, any, any, any, any, any> | undefined;
|
|
14018
|
+
additionalItems?: import("@formily/json-schema").Stringify<any> | undefined;
|
|
14019
|
+
patternProperties?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
|
|
14020
|
+
additionalProperties?: import("@formily/json-schema").Stringify<any> | undefined;
|
|
14021
|
+
"x-value"?: any;
|
|
14022
|
+
"x-index"?: number | undefined;
|
|
14023
|
+
"x-pattern"?: any;
|
|
14024
|
+
"x-display"?: any;
|
|
14025
|
+
"x-validator"?: any;
|
|
14026
|
+
"x-decorator"?: any;
|
|
14027
|
+
"x-decorator-props"?: any;
|
|
14028
|
+
"x-component"?: any;
|
|
14029
|
+
"x-component-props"?: any;
|
|
14030
|
+
"x-reactions"?: import("@formily/json-schema").SchemaReactions<any> | undefined;
|
|
14031
|
+
"x-content"?: any;
|
|
14032
|
+
"x-data"?: any;
|
|
14033
|
+
"x-visible"?: boolean | undefined;
|
|
14034
|
+
"x-hidden"?: boolean | undefined;
|
|
14035
|
+
"x-disabled"?: boolean | undefined;
|
|
14036
|
+
"x-editable"?: boolean | undefined;
|
|
14037
|
+
"x-read-only"?: boolean | undefined;
|
|
14038
|
+
"x-read-pretty"?: boolean | undefined;
|
|
14039
|
+
"x-compile-omitted"?: string[] | undefined;
|
|
14040
|
+
}>;
|
|
14041
|
+
components: Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>>;
|
|
14042
|
+
scope: import("../../../../es/shared/types").AnyObject;
|
|
14043
|
+
annotation: import("../../../../es/shared/types").AnyObject;
|
|
14044
|
+
consumer: boolean;
|
|
14045
|
+
uuid: string;
|
|
14046
|
+
lifeCycle: Partial<{
|
|
14047
|
+
onSetup(): void;
|
|
14048
|
+
beforeRequest(fieldKey: string, params?: import("../../../../es/shared/types").AnyObject | undefined, payload?: import("../../../../es/shared/types").AnyObject | undefined): void | import("../../../../es/shared/types").UndefinedAble<import("../../../../es/shared/types").AnyObject>;
|
|
14049
|
+
afterRequest(fieldKey: string, res?: any, payload?: import("../../../../es/shared/types").AnyObject | undefined): import("../../../../es/shared/types").AnyObject[];
|
|
14050
|
+
afterOptionInit(fieldKey: string, options: import("../../../../es/shared/types").AnyObject[], payload?: import("../../../../es/shared/types").AnyObject | undefined): void;
|
|
14051
|
+
}>;
|
|
14052
|
+
businessFormatter: import("../../../../es/components/form-render").FormBusinessFormatter;
|
|
14053
|
+
requestInstance: import("../../../../es/components/form-render").RequestInstance;
|
|
14054
|
+
enterToNextWidget: boolean | ((fieldItem: import("../../../../es/components/form-render").FieldItem) => boolean | void);
|
|
14055
|
+
lowCodeReactions: import("../../../../es/components/form-render").FormLowCodeReactions.Config[];
|
|
14056
|
+
linebarAutoHidden: boolean;
|
|
14057
|
+
bordered: string | boolean;
|
|
14058
|
+
uniqueCacheData: boolean;
|
|
14059
|
+
operationalForm: import("../../../../es/shared/types").FormOperationalConfig[];
|
|
14060
|
+
outBordered: boolean;
|
|
14061
|
+
forceClearable: boolean;
|
|
14062
|
+
}>) => Record<string, import("@formily/json-schema").Stringify<{
|
|
13887
14063
|
[key: symbol]: any;
|
|
13888
14064
|
[key: `x-${string}`]: any;
|
|
13889
14065
|
[key: `x-${number}`]: any;
|
|
@@ -14307,6 +14483,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
14307
14483
|
type: BooleanConstructor;
|
|
14308
14484
|
default: boolean;
|
|
14309
14485
|
};
|
|
14486
|
+
forceClearable: BooleanConstructor;
|
|
14310
14487
|
}>> & {
|
|
14311
14488
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
|
14312
14489
|
onScroll?: ((...args: any[]) => any) | undefined;
|
|
@@ -14315,6 +14492,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
14315
14492
|
anchor: boolean;
|
|
14316
14493
|
maxHeight: string | number;
|
|
14317
14494
|
column: number;
|
|
14495
|
+
forceClearable: boolean;
|
|
14318
14496
|
components: Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>>;
|
|
14319
14497
|
initialData: import("../../../../es/shared/types").AnyObject;
|
|
14320
14498
|
parallelism: number;
|
|
@@ -14421,6 +14599,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
14421
14599
|
uniqueCacheData: boolean;
|
|
14422
14600
|
operationalForm: import("../../../../es/shared/types").FormOperationalConfig[];
|
|
14423
14601
|
outBordered: boolean;
|
|
14602
|
+
forceClearable: boolean;
|
|
14424
14603
|
}>>>;
|
|
14425
14604
|
};
|
|
14426
14605
|
}>>, {}>;
|
|
@@ -14557,6 +14736,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
14557
14736
|
uniqueCacheData: boolean;
|
|
14558
14737
|
operationalForm: import("../../../../es/shared/types").FormOperationalConfig[];
|
|
14559
14738
|
outBordered: boolean;
|
|
14739
|
+
forceClearable: boolean;
|
|
14560
14740
|
}>>>;
|
|
14561
14741
|
};
|
|
14562
14742
|
}>> & {
|
|
@@ -164,6 +164,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
164
164
|
type: BooleanConstructor;
|
|
165
165
|
default: boolean;
|
|
166
166
|
};
|
|
167
|
+
forceClearable: BooleanConstructor;
|
|
167
168
|
}, {
|
|
168
169
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
169
170
|
fieldList: {
|
|
@@ -308,6 +309,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
308
309
|
type: BooleanConstructor;
|
|
309
310
|
default: boolean;
|
|
310
311
|
};
|
|
312
|
+
forceClearable: BooleanConstructor;
|
|
311
313
|
}>> & {
|
|
312
314
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
|
313
315
|
onScroll?: ((...args: any[]) => any) | undefined;
|
|
@@ -357,10 +359,93 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
357
359
|
operationalFormHandler: (field: string) => void;
|
|
358
360
|
triggerAllOperationalFormHandler: () => void;
|
|
359
361
|
wordbookSettingHandler: (fieldKey: string, value: unknown) => void;
|
|
360
|
-
schemaAdaptor: (fieldList: FieldItem[], options?: {
|
|
362
|
+
schemaAdaptor: (fieldList: FieldItem[], options?: Partial<{
|
|
363
|
+
fieldList: FieldItem[];
|
|
364
|
+
initialData: AnyObject;
|
|
365
|
+
fieldVisitor: import("../../../../../es/components/form-render").FieldVisitor;
|
|
361
366
|
column: number;
|
|
362
|
-
|
|
363
|
-
|
|
367
|
+
maxHeight: string | number;
|
|
368
|
+
anchor: boolean;
|
|
369
|
+
parallelism: number;
|
|
370
|
+
schema: import("@formily/json-schema").Stringify<{
|
|
371
|
+
[key: symbol]: any;
|
|
372
|
+
[key: `x-${string}`]: any;
|
|
373
|
+
[key: `x-${number}`]: any;
|
|
374
|
+
version?: string | undefined;
|
|
375
|
+
name?: import("@formily/json-schema").SchemaKey | undefined;
|
|
376
|
+
title?: any;
|
|
377
|
+
description?: any;
|
|
378
|
+
default?: any;
|
|
379
|
+
readOnly?: boolean | undefined;
|
|
380
|
+
writeOnly?: boolean | undefined;
|
|
381
|
+
type?: import("@formily/json-schema").SchemaTypes | undefined;
|
|
382
|
+
enum?: import("@formily/json-schema").SchemaEnum<any> | undefined;
|
|
383
|
+
const?: any;
|
|
384
|
+
multipleOf?: number | undefined;
|
|
385
|
+
maximum?: number | undefined;
|
|
386
|
+
exclusiveMaximum?: number | undefined;
|
|
387
|
+
minimum?: number | undefined;
|
|
388
|
+
exclusiveMinimum?: number | undefined;
|
|
389
|
+
maxLength?: number | undefined;
|
|
390
|
+
minLength?: number | undefined;
|
|
391
|
+
pattern?: string | RegExp | undefined;
|
|
392
|
+
maxItems?: number | undefined;
|
|
393
|
+
minItems?: number | undefined;
|
|
394
|
+
uniqueItems?: boolean | undefined;
|
|
395
|
+
maxProperties?: number | undefined;
|
|
396
|
+
minProperties?: number | undefined;
|
|
397
|
+
required?: string | boolean | string[] | undefined;
|
|
398
|
+
format?: string | undefined;
|
|
399
|
+
$ref?: string | undefined;
|
|
400
|
+
$namespace?: string | undefined;
|
|
401
|
+
definitions?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
|
|
402
|
+
properties?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
|
|
403
|
+
items?: import("@formily/json-schema").SchemaItems<any, any, any, any, any, any, any, any> | undefined;
|
|
404
|
+
additionalItems?: import("@formily/json-schema").Stringify<any> | undefined;
|
|
405
|
+
patternProperties?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
|
|
406
|
+
additionalProperties?: import("@formily/json-schema").Stringify<any> | undefined;
|
|
407
|
+
"x-value"?: any;
|
|
408
|
+
"x-index"?: number | undefined;
|
|
409
|
+
"x-pattern"?: any;
|
|
410
|
+
"x-display"?: any;
|
|
411
|
+
"x-validator"?: any;
|
|
412
|
+
"x-decorator"?: any;
|
|
413
|
+
"x-decorator-props"?: any;
|
|
414
|
+
"x-component"?: any;
|
|
415
|
+
"x-component-props"?: any;
|
|
416
|
+
"x-reactions"?: import("@formily/json-schema").SchemaReactions<any> | undefined;
|
|
417
|
+
"x-content"?: any;
|
|
418
|
+
"x-data"?: any;
|
|
419
|
+
"x-visible"?: boolean | undefined;
|
|
420
|
+
"x-hidden"?: boolean | undefined;
|
|
421
|
+
"x-disabled"?: boolean | undefined;
|
|
422
|
+
"x-editable"?: boolean | undefined;
|
|
423
|
+
"x-read-only"?: boolean | undefined;
|
|
424
|
+
"x-read-pretty"?: boolean | undefined;
|
|
425
|
+
"x-compile-omitted"?: string[] | undefined;
|
|
426
|
+
}>;
|
|
427
|
+
components: Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>>;
|
|
428
|
+
scope: AnyObject;
|
|
429
|
+
annotation: AnyObject;
|
|
430
|
+
consumer: boolean;
|
|
431
|
+
uuid: string;
|
|
432
|
+
lifeCycle: Partial<{
|
|
433
|
+
onSetup(): void;
|
|
434
|
+
beforeRequest(fieldKey: string, params?: AnyObject | undefined, payload?: AnyObject | undefined): void | import("../../..").UndefinedAble<AnyObject>;
|
|
435
|
+
afterRequest(fieldKey: string, res?: any, payload?: AnyObject | undefined): AnyObject[];
|
|
436
|
+
afterOptionInit(fieldKey: string, options: AnyObject[], payload?: AnyObject | undefined): void;
|
|
437
|
+
}>;
|
|
438
|
+
businessFormatter: import("../../../../../es/components/form-render").FormBusinessFormatter;
|
|
439
|
+
requestInstance: import("../../../../../es/components/form-render").RequestInstance;
|
|
440
|
+
enterToNextWidget: boolean | ((fieldItem: FieldItem) => boolean | void);
|
|
441
|
+
lowCodeReactions: import("../../../../../es/components/form-render").FormLowCodeReactions.Config[];
|
|
442
|
+
linebarAutoHidden: boolean;
|
|
443
|
+
bordered: string | boolean;
|
|
444
|
+
uniqueCacheData: boolean;
|
|
445
|
+
operationalForm: import("../../..").FormOperationalConfig[];
|
|
446
|
+
outBordered: boolean;
|
|
447
|
+
forceClearable: boolean;
|
|
448
|
+
}>) => Record<string, import("@formily/json-schema").Stringify<{
|
|
364
449
|
[key: symbol]: any;
|
|
365
450
|
[key: `x-${string}`]: any;
|
|
366
451
|
[key: `x-${number}`]: any;
|
|
@@ -784,6 +869,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
784
869
|
type: BooleanConstructor;
|
|
785
870
|
default: boolean;
|
|
786
871
|
};
|
|
872
|
+
forceClearable: BooleanConstructor;
|
|
787
873
|
}>> & {
|
|
788
874
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
|
789
875
|
onScroll?: ((...args: any[]) => any) | undefined;
|
|
@@ -792,6 +878,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
792
878
|
anchor: boolean;
|
|
793
879
|
maxHeight: string | number;
|
|
794
880
|
column: number;
|
|
881
|
+
forceClearable: boolean;
|
|
795
882
|
components: Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>>;
|
|
796
883
|
initialData: AnyObject;
|
|
797
884
|
parallelism: number;
|
|
@@ -95,6 +95,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
95
95
|
uniqueCacheData: boolean;
|
|
96
96
|
operationalForm: import("../../../../../es/shared/types").FormOperationalConfig[];
|
|
97
97
|
outBordered: boolean;
|
|
98
|
+
forceClearable: boolean;
|
|
98
99
|
}>>>;
|
|
99
100
|
};
|
|
100
101
|
}, {
|
|
@@ -192,6 +193,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
192
193
|
uniqueCacheData: boolean;
|
|
193
194
|
operationalForm: import("../../../../../es/shared/types").FormOperationalConfig[];
|
|
194
195
|
outBordered: boolean;
|
|
196
|
+
forceClearable: boolean;
|
|
195
197
|
}>>>;
|
|
196
198
|
};
|
|
197
199
|
}>> & {}>>;
|
|
@@ -5531,6 +5533,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
5531
5533
|
type: BooleanConstructor;
|
|
5532
5534
|
default: boolean;
|
|
5533
5535
|
};
|
|
5536
|
+
forceClearable: BooleanConstructor;
|
|
5534
5537
|
}, {
|
|
5535
5538
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
5536
5539
|
fieldList: {
|
|
@@ -5675,6 +5678,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
5675
5678
|
type: BooleanConstructor;
|
|
5676
5679
|
default: boolean;
|
|
5677
5680
|
};
|
|
5681
|
+
forceClearable: BooleanConstructor;
|
|
5678
5682
|
}>> & {
|
|
5679
5683
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
|
5680
5684
|
onScroll?: ((...args: any[]) => any) | undefined;
|
|
@@ -5724,10 +5728,93 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
5724
5728
|
operationalFormHandler: (field: string) => void;
|
|
5725
5729
|
triggerAllOperationalFormHandler: () => void;
|
|
5726
5730
|
wordbookSettingHandler: (fieldKey: string, value: unknown) => void;
|
|
5727
|
-
schemaAdaptor: (fieldList: FieldItem[], options?: {
|
|
5731
|
+
schemaAdaptor: (fieldList: FieldItem[], options?: Partial<{
|
|
5732
|
+
fieldList: FieldItem[];
|
|
5733
|
+
initialData: import("../../../../../es/shared/types").AnyObject;
|
|
5734
|
+
fieldVisitor: import("../../../../../es/components/form-render").FieldVisitor;
|
|
5728
5735
|
column: number;
|
|
5729
|
-
|
|
5730
|
-
|
|
5736
|
+
maxHeight: string | number;
|
|
5737
|
+
anchor: boolean;
|
|
5738
|
+
parallelism: number;
|
|
5739
|
+
schema: import("@formily/json-schema").Stringify<{
|
|
5740
|
+
[key: symbol]: any;
|
|
5741
|
+
[key: `x-${string}`]: any;
|
|
5742
|
+
[key: `x-${number}`]: any;
|
|
5743
|
+
version?: string | undefined;
|
|
5744
|
+
name?: import("@formily/json-schema").SchemaKey | undefined;
|
|
5745
|
+
title?: any;
|
|
5746
|
+
description?: any;
|
|
5747
|
+
default?: any;
|
|
5748
|
+
readOnly?: boolean | undefined;
|
|
5749
|
+
writeOnly?: boolean | undefined;
|
|
5750
|
+
type?: import("@formily/json-schema").SchemaTypes | undefined;
|
|
5751
|
+
enum?: import("@formily/json-schema").SchemaEnum<any> | undefined;
|
|
5752
|
+
const?: any;
|
|
5753
|
+
multipleOf?: number | undefined;
|
|
5754
|
+
maximum?: number | undefined;
|
|
5755
|
+
exclusiveMaximum?: number | undefined;
|
|
5756
|
+
minimum?: number | undefined;
|
|
5757
|
+
exclusiveMinimum?: number | undefined;
|
|
5758
|
+
maxLength?: number | undefined;
|
|
5759
|
+
minLength?: number | undefined;
|
|
5760
|
+
pattern?: string | RegExp | undefined;
|
|
5761
|
+
maxItems?: number | undefined;
|
|
5762
|
+
minItems?: number | undefined;
|
|
5763
|
+
uniqueItems?: boolean | undefined;
|
|
5764
|
+
maxProperties?: number | undefined;
|
|
5765
|
+
minProperties?: number | undefined;
|
|
5766
|
+
required?: string | boolean | string[] | undefined;
|
|
5767
|
+
format?: string | undefined;
|
|
5768
|
+
$ref?: string | undefined;
|
|
5769
|
+
$namespace?: string | undefined;
|
|
5770
|
+
definitions?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
|
|
5771
|
+
properties?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
|
|
5772
|
+
items?: import("@formily/json-schema").SchemaItems<any, any, any, any, any, any, any, any> | undefined;
|
|
5773
|
+
additionalItems?: import("@formily/json-schema").Stringify<any> | undefined;
|
|
5774
|
+
patternProperties?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
|
|
5775
|
+
additionalProperties?: import("@formily/json-schema").Stringify<any> | undefined;
|
|
5776
|
+
"x-value"?: any;
|
|
5777
|
+
"x-index"?: number | undefined;
|
|
5778
|
+
"x-pattern"?: any;
|
|
5779
|
+
"x-display"?: any;
|
|
5780
|
+
"x-validator"?: any;
|
|
5781
|
+
"x-decorator"?: any;
|
|
5782
|
+
"x-decorator-props"?: any;
|
|
5783
|
+
"x-component"?: any;
|
|
5784
|
+
"x-component-props"?: any;
|
|
5785
|
+
"x-reactions"?: import("@formily/json-schema").SchemaReactions<any> | undefined;
|
|
5786
|
+
"x-content"?: any;
|
|
5787
|
+
"x-data"?: any;
|
|
5788
|
+
"x-visible"?: boolean | undefined;
|
|
5789
|
+
"x-hidden"?: boolean | undefined;
|
|
5790
|
+
"x-disabled"?: boolean | undefined;
|
|
5791
|
+
"x-editable"?: boolean | undefined;
|
|
5792
|
+
"x-read-only"?: boolean | undefined;
|
|
5793
|
+
"x-read-pretty"?: boolean | undefined;
|
|
5794
|
+
"x-compile-omitted"?: string[] | undefined;
|
|
5795
|
+
}>;
|
|
5796
|
+
components: Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>>;
|
|
5797
|
+
scope: import("../../../../../es/shared/types").AnyObject;
|
|
5798
|
+
annotation: import("../../../../../es/shared/types").AnyObject;
|
|
5799
|
+
consumer: boolean;
|
|
5800
|
+
uuid: string;
|
|
5801
|
+
lifeCycle: Partial<{
|
|
5802
|
+
onSetup(): void;
|
|
5803
|
+
beforeRequest(fieldKey: string, params?: import("../../../../../es/shared/types").AnyObject | undefined, payload?: import("../../../../../es/shared/types").AnyObject | undefined): void | import("../../../../../es/shared/types").UndefinedAble<import("../../../../../es/shared/types").AnyObject>;
|
|
5804
|
+
afterRequest(fieldKey: string, res?: any, payload?: import("../../../../../es/shared/types").AnyObject | undefined): import("../../../../../es/shared/types").AnyObject[];
|
|
5805
|
+
afterOptionInit(fieldKey: string, options: import("../../../../../es/shared/types").AnyObject[], payload?: import("../../../../../es/shared/types").AnyObject | undefined): void;
|
|
5806
|
+
}>;
|
|
5807
|
+
businessFormatter: import("../../../../../es/components/form-render").FormBusinessFormatter;
|
|
5808
|
+
requestInstance: import("../../../../../es/components/form-render").RequestInstance;
|
|
5809
|
+
enterToNextWidget: boolean | ((fieldItem: FieldItem) => boolean | void);
|
|
5810
|
+
lowCodeReactions: import("../../../../../es/components/form-render").FormLowCodeReactions.Config[];
|
|
5811
|
+
linebarAutoHidden: boolean;
|
|
5812
|
+
bordered: string | boolean;
|
|
5813
|
+
uniqueCacheData: boolean;
|
|
5814
|
+
operationalForm: import("../../../../../es/shared/types").FormOperationalConfig[];
|
|
5815
|
+
outBordered: boolean;
|
|
5816
|
+
forceClearable: boolean;
|
|
5817
|
+
}>) => Record<string, import("@formily/json-schema").Stringify<{
|
|
5731
5818
|
[key: symbol]: any;
|
|
5732
5819
|
[key: `x-${string}`]: any;
|
|
5733
5820
|
[key: `x-${number}`]: any;
|
|
@@ -6151,6 +6238,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
6151
6238
|
type: BooleanConstructor;
|
|
6152
6239
|
default: boolean;
|
|
6153
6240
|
};
|
|
6241
|
+
forceClearable: BooleanConstructor;
|
|
6154
6242
|
}>> & {
|
|
6155
6243
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
|
6156
6244
|
onScroll?: ((...args: any[]) => any) | undefined;
|
|
@@ -6159,6 +6247,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
6159
6247
|
anchor: boolean;
|
|
6160
6248
|
maxHeight: string | number;
|
|
6161
6249
|
column: number;
|
|
6250
|
+
forceClearable: boolean;
|
|
6162
6251
|
components: Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>>;
|
|
6163
6252
|
initialData: import("../../../../../es/shared/types").AnyObject;
|
|
6164
6253
|
parallelism: number;
|
|
@@ -6265,6 +6354,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
6265
6354
|
uniqueCacheData: boolean;
|
|
6266
6355
|
operationalForm: import("../../../../../es/shared/types").FormOperationalConfig[];
|
|
6267
6356
|
outBordered: boolean;
|
|
6357
|
+
forceClearable: boolean;
|
|
6268
6358
|
}>>>;
|
|
6269
6359
|
};
|
|
6270
6360
|
}>>, {}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{omit as e,pick as t}from"lodash-es";import{EditAbleField as l,widgetWidthOptionConfig as i,isShowOptionConfig as _,isNotFoldOptionConfig as a,isEditOptionConfig as o,isNullOptionConfig as m,isVisibleOptionConfig as s,rowsOptionConfig as n}from"../constants/index.js";import"../../../form-render/index.js";import{useFieldNormalize as r}from"../../../form-render/src/hooks/useFieldNormalize.js";const{FieldNormalizeWaterfallHook:d}=r();function E(){const r=new Map([[l.NAME,()=>({alias:"名称",elem_width:6,is_null:"0",html_type:"INPUT"})],[l.NOTES,()=>({alias:"问号提示",elem_width:6,html_type:"INPUT",is_empty:"0"})],[l.DEFAULT_VALUE,(l,i)=>{const _=d.call(Object.assign({},null==l?void 0:l.originalSetting,i));return{alias:"默认值",elem_width:6,html_type:"INPUT",is_empty:"0",componentProps:e(_.componentProps,["class","style","disabled"]),...t(_,["html_type","validate","option","multi_select","multi_select_value","wordbook","open","close","date_format","step_length","urlConfig","autograph","defined_error_msg","free_entry","validator","is_allow_check_mid","allow_check_mid_level"])}}],[l.LAYOUT_WIDTH_ENUM,()=>({alias:"宽度",fieldType:"number",html_type:"SELECT",elem_width:6,...i()})],[l.DESC,()=>({alias:"说明文本",elem_width:6,html_type:"INPUT",is_empty:"0",validate:{max_length:30}})],[l.DEFAULT_EXPAND,()=>({alias:"是否默认展开",html_type:"SWITCH",elem_width:6,..._()})],[l.FOLD,()=>({alias:"是否可折叠",html_type:"SWITCH",elem_width:6,...a()})],[l.EDITABLE,e=>({alias:"是否可编辑",html_type:"SWITCH",elem_width:6,is_edit:(null==e?void 0:e.editableDisabled)?"0":"1",...o()})],[l.REQUIRED,e=>({alias:"是否必填",html_type:"SWITCH",elem_width:6,is_edit:(null==e?void 0:e.requiredDisabled)?"0":"1",...m()})],[l.SHOW,e=>({alias:"是否显示",html_type:"SWITCH",elem_width:6,is_show:(null==e?void 0:e.__isCombinationChild)?"1":"0",...s()})],[l.ROWS,()=>({alias:"高度",elem_width:6,remark:"默认为3行高度,可调整为1-10行高度",default_val:3,is_empty:"0",html_type:"SELECT",...n()})]]);function E(e,t,l){return e.map((e=>{var i,_;return{...null!=(_=null==(i=r.get(e))?void 0:i(t,l))?_:{},val_key:e}}))}const p=new Map([["LINE_BAR",[l.NAME,l.LAYOUT_WIDTH_ENUM,l.NOTES,l.DEFAULT_EXPAND,l.FOLD]],...["NEWLINE","COMPLEX","COMBINATION"].map((e=>[e,[l.NAME,l.LAYOUT_WIDTH_ENUM]]))]),h=[l.NAME,l.DEFAULT_VALUE,l.LAYOUT_WIDTH_ENUM,l.DESC,l.NOTES,l.EDITABLE,l.REQUIRED,l.SHOW];return{generateFieldListByKeys:E,generateFieldListByFormConfigItem:function(e,t){var i;const _=p.get(e.type)||h;return"TEXTAREA"===(t?t.html_type:null==(i=e.originalSetting)?void 0:i.html_type)&&_.splice(3,0,l.ROWS),E(_,e,t)}}}export{E as useConfigurationField};
|
|
1
|
+
import{omit as e,pick as t}from"lodash-es";import{EditAbleField as l,widgetWidthOptionConfig as i,isShowOptionConfig as _,isNotFoldOptionConfig as a,isEditOptionConfig as o,isNullOptionConfig as m,isVisibleOptionConfig as s,rowsOptionConfig as n}from"../constants/index.js";import"../../../form-render/index.js";import{useFieldNormalize as r}from"../../../form-render/src/hooks/useFieldNormalize.js";const{FieldNormalizeWaterfallHook:d}=r();function E(){const r=new Map([[l.NAME,()=>({alias:"名称",elem_width:6,is_null:"0",html_type:"INPUT"})],[l.NOTES,()=>({alias:"问号提示",elem_width:6,html_type:"INPUT",is_empty:"0"})],[l.DEFAULT_VALUE,(l,i)=>{const _=d.call(Object.assign({},null==l?void 0:l.originalSetting,i),{});return{alias:"默认值",elem_width:6,html_type:"INPUT",is_empty:"0",componentProps:e(_.componentProps,["class","style","disabled"]),...t(_,["html_type","validate","option","multi_select","multi_select_value","wordbook","open","close","date_format","step_length","urlConfig","autograph","defined_error_msg","free_entry","validator","is_allow_check_mid","allow_check_mid_level"])}}],[l.LAYOUT_WIDTH_ENUM,()=>({alias:"宽度",fieldType:"number",html_type:"SELECT",elem_width:6,...i()})],[l.DESC,()=>({alias:"说明文本",elem_width:6,html_type:"INPUT",is_empty:"0",validate:{max_length:30}})],[l.DEFAULT_EXPAND,()=>({alias:"是否默认展开",html_type:"SWITCH",elem_width:6,..._()})],[l.FOLD,()=>({alias:"是否可折叠",html_type:"SWITCH",elem_width:6,...a()})],[l.EDITABLE,e=>({alias:"是否可编辑",html_type:"SWITCH",elem_width:6,is_edit:(null==e?void 0:e.editableDisabled)?"0":"1",...o()})],[l.REQUIRED,e=>({alias:"是否必填",html_type:"SWITCH",elem_width:6,is_edit:(null==e?void 0:e.requiredDisabled)?"0":"1",...m()})],[l.SHOW,e=>({alias:"是否显示",html_type:"SWITCH",elem_width:6,is_show:(null==e?void 0:e.__isCombinationChild)?"1":"0",...s()})],[l.ROWS,()=>({alias:"高度",elem_width:6,remark:"默认为3行高度,可调整为1-10行高度",default_val:3,is_empty:"0",html_type:"SELECT",...n()})]]);function E(e,t,l){return e.map((e=>{var i,_;return{...null!=(_=null==(i=r.get(e))?void 0:i(t,l))?_:{},val_key:e}}))}const p=new Map([["LINE_BAR",[l.NAME,l.LAYOUT_WIDTH_ENUM,l.NOTES,l.DEFAULT_EXPAND,l.FOLD]],...["NEWLINE","COMPLEX","COMBINATION"].map((e=>[e,[l.NAME,l.LAYOUT_WIDTH_ENUM]]))]),h=[l.NAME,l.DEFAULT_VALUE,l.LAYOUT_WIDTH_ENUM,l.DESC,l.NOTES,l.EDITABLE,l.REQUIRED,l.SHOW];return{generateFieldListByKeys:E,generateFieldListByFormConfigItem:function(e,t){var i;const _=p.get(e.type)||h;return"TEXTAREA"===(t?t.html_type:null==(i=e.originalSetting)?void 0:i.html_type)&&_.splice(3,0,l.ROWS),E(_,e,t)}}}export{E as useConfigurationField};
|