cnhis-design-vue 3.2.10-beta.1 → 3.2.10-beta.18
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/ai-chat/index.d.ts +2 -2
- package/es/components/ai-chat/src/Index.vue.d.ts +2 -2
- package/es/components/ai-chat/src/components/ChatFooter.vue.d.ts +2 -2
- package/es/components/ai-chat/src/components/ChatFooter.vue2.js +1 -1
- package/es/components/ai-chat/src/components/ChatMain.js +1 -1
- package/es/components/ai-chat/style/index.css +1 -1
- package/es/components/base-search/index.d.ts +3 -0
- package/es/components/base-search/src/index.vue.d.ts +3 -0
- package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
- package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +1 -0
- package/es/components/bpmn-workflow/types/ModelingModule.d.ts +1 -0
- package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +1 -0
- package/es/components/button-print/src/utils/print.js +1 -1
- package/es/components/card-reader-sdk/src/insuranceSDK.js +1 -1
- package/es/components/card-reader-sdk/src/utils/index.js +1 -1
- package/es/components/classification/index.d.ts +1 -1
- package/es/components/classification/src/components/search-filter/index.vue.d.ts +1 -1
- package/es/components/classification/src/components/set-classification/index.vue.d.ts +1 -1
- package/es/components/classification/src/components/table-modal/index.vue.d.ts +0 -3
- package/es/components/classification/src/index.vue.d.ts +1 -1
- package/es/components/date-picker/src/DatePicker.vue2.js +1 -1
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +1 -1
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +1 -1
- package/es/components/field-set/index.d.ts +13 -0
- package/es/components/field-set/src/FieldColor.vue.d.ts +73 -27
- package/es/components/field-set/src/FieldColor.vue2.js +1 -1
- package/es/components/field-set/src/FieldFilter.vue.d.ts +20 -5
- package/es/components/field-set/src/FieldFilter.vue2.js +1 -1
- package/es/components/field-set/src/FieldSet.vue.d.ts +6 -3
- package/es/components/field-set/src/Index.vue.d.ts +13 -0
- package/es/components/field-set/src/Index.vue2.js +1 -1
- package/es/components/field-set/src/components/condition.vue.d.ts +18 -4
- package/es/components/field-set/src/components/condition.vue2.js +1 -1
- package/es/components/field-set/src/components/edit-dialog.vue.d.ts +63 -22
- package/es/components/field-set/src/components/edit-dialog.vue2.js +1 -1
- package/es/components/field-set/src/components/edit-filter.vue.d.ts +44 -44
- package/es/components/field-set/src/components/edit-filter.vue2.js +1 -1
- package/es/components/field-set/src/components/table-row.vue.d.ts +6 -3
- package/es/components/field-set/src/components/table-row.vue2.js +1 -1
- package/es/components/field-set/style/index.css +1 -1
- package/es/components/form-config/index.d.ts +3 -3
- package/es/components/form-config/src/FormConfig.vue.d.ts +3 -3
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +3 -3
- package/es/components/form-render/index.js +1 -1
- package/es/components/form-render/src/components/renderer/combination/combination.d.ts +1 -1
- package/es/components/form-render/src/components/renderer/combination/jsonCombination.d.ts +1 -1
- package/es/components/form-render/src/components/renderer/combination/tableCombination.d.ts +1 -1
- package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.d.ts +1 -1
- package/es/components/form-render/src/components/renderer/lineBar/index.d.ts +1 -1
- package/es/components/form-render/src/components/renderer/text.d.ts +1 -1
- package/es/components/form-render/src/components/renderer/text.js +1 -1
- package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
- package/es/components/form-render/src/hooks/useFieldNormalize.js +1 -1
- package/es/components/form-render/src/types/fieldItem.d.ts +1 -1
- package/es/components/form-render/src/types/index.d.ts +4 -3
- package/es/components/form-render/src/utils/index.d.ts +2 -0
- package/es/components/form-render/src/utils/index.js +1 -1
- package/es/components/iho-chat/index.d.ts +8 -8
- package/es/components/iho-chat/src/Index.vue.d.ts +8 -8
- package/es/components/iho-chat/src/components/ChatAdd.vue.d.ts +1 -1
- package/es/components/iho-chat/src/components/ChatFile.vue.d.ts +1 -1
- package/es/components/iho-chat/src/components/ChatFooter.vue.d.ts +1 -1
- package/es/components/iho-chat/src/components/ChatFooter.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatHeader.vue.d.ts +3 -3
- package/es/components/iho-chat/src/components/ChatMain.vue.d.ts +2 -2
- package/es/components/iho-chat/src/components/ChatMain.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatSet.vue.d.ts +1 -1
- package/es/components/iho-chat/src/components/ContextMenu.js +1 -1
- package/es/components/iho-chat/src/components/MultipleVideo.vue.d.ts +1 -1
- package/es/components/iho-chat/src/components/PersonProfile.vue2.js +1 -1
- package/es/components/iho-chat/src/utils/index.d.ts +1 -1
- package/es/components/iho-chat/src/utils/index.js +1 -1
- package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.d.ts +1 -0
- package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue2.js +1 -1
- package/es/components/iho-table/src/plugins/filterRenderPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/filterTextPlugin/filter.vue.d.ts +30 -0
- package/es/components/iho-table/src/plugins/filterTextPlugin/filter.vue.js +1 -0
- package/es/components/iho-table/src/plugins/filterTextPlugin/filter.vue2.js +1 -0
- package/es/components/iho-table/src/plugins/filterTextPlugin/index.d.ts +1 -0
- package/es/components/iho-table/src/plugins/filterTextPlugin/index.js +1 -0
- package/es/components/iho-table/src/plugins/headerPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/index.js +1 -1
- package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/inputRendererPlugin.js +1 -1
- package/es/components/iho-table/src/plugins/verticalTablePlugin/src/utils.js +1 -1
- package/es/components/iho-table/src/types/index.d.ts +1 -0
- package/es/components/iho-table/src/utils/index.d.ts +3 -1
- package/es/components/iho-table/src/utils/index.js +1 -1
- package/es/components/index.css +1 -1
- package/es/components/index.js +1 -1
- package/es/components/quick-search/index.d.ts +18 -0
- package/es/components/quick-search/src/index.vue.d.ts +18 -0
- package/es/components/quick-search/src/index.vue2.js +1 -1
- package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
- package/es/components/scale-view/src/components/formitem/r-upload.d.ts +4 -4
- package/es/components/scale-view/src/components/formitem/r-upload.js +1 -1
- package/es/components/scale-view/src/components/formitem/standard-modal.d.ts +1 -1
- package/es/components/scale-view/src/hooks/use-component.d.ts +10 -8
- package/es/components/scale-view/style/index.css +1 -1
- package/es/components/select-label/src/LabelFormContent.vue2.js +1 -1
- package/es/components/shortcut-setter/index.d.ts +1 -1
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/bi-filter/helpers/options.d.ts +1 -7
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/classify-filter/components/SelectTreeDynamic.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +1 -1
- package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/render-widget/components/SelectTreeDynamic.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/render-widget/components/index.d.ts +5 -5
- package/es/components/table-filter/src/components/render-widget/helpers/dateExtraMap.d.ts +3 -49
- package/es/components/table-filter/src/components/render-widget/helpers/enums.d.ts +1 -18
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +5 -5
- package/es/components/table-filter/src/hooks/useAdvanced.d.ts +1 -0
- package/es/components/table-filter/src/hooks/useAdvanced.js +1 -1
- package/es/components/table-filter/src/hooks/useMixins.d.ts +1 -1
- package/es/components/table-filter/src/hooks/useRenderWidget.js +1 -1
- package/es/components/table-filter/src/types/index.d.ts +3 -0
- package/es/components/vod-chunk-upload/index.d.ts +2 -0
- package/es/components/vod-chunk-upload/src/chunk-upload-new.vue.d.ts +18 -4
- package/es/components/vod-chunk-upload/src/chunk-upload-new.vue2.js +1 -1
- package/es/components/vod-chunk-upload/src/hooks/upload-data.d.ts +5 -1
- package/es/components/vod-chunk-upload/src/hooks/upload-data.js +1 -1
- package/es/components/vod-chunk-upload/src/hooks/vod-computed.js +1 -1
- package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.d.ts +2 -0
- package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue2.js +1 -1
- package/es/env.d.ts +25 -25
- package/es/shared/assets/img/ai__avatar.png.js +1 -1
- package/es/shared/assets/img/defaultCover/10review_successful.png.js +1 -1
- package/es/shared/assets/img/defaultCover/11review_fail.png.js +1 -1
- package/es/shared/assets/img/defaultCover/12no_setting.png.js +1 -1
- package/es/shared/assets/img/defaultCover/13no_menu_setting.png.js +1 -1
- package/es/shared/assets/img/defaultCover/14no_call_setting.png.js +1 -1
- package/es/shared/assets/img/defaultCover/15no_use_tag.png.js +1 -1
- package/es/shared/assets/img/defaultCover/16no_table_data.png.js +1 -1
- package/es/shared/assets/img/defaultCover/1location.png.js +1 -1
- package/es/shared/assets/img/defaultCover/2notfound.png.js +1 -1
- package/es/shared/assets/img/defaultCover/3loading.png.js +1 -1
- package/es/shared/assets/img/defaultCover/4no_permission.png.js +1 -1
- package/es/shared/assets/img/defaultCover/5no_data.png.js +1 -1
- package/es/shared/assets/img/defaultCover/6no_network.png.js +1 -1
- package/es/shared/assets/img/defaultCover/7no_doctor.png.js +1 -1
- package/es/shared/assets/img/defaultCover/8system_error.png.js +1 -1
- package/es/shared/assets/img/defaultCover/9system_upgrade.png.js +1 -1
- package/es/shared/assets/img/failure.png.js +1 -1
- package/es/shared/assets/img/logo.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/table_style_2.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/components/VueDraggable/src/vuedraggable.d.ts +86 -0
- package/es/shared/package.json.js +1 -1
- package/es/shared/utils/fabricjs/index.d.ts +6823 -0
- package/es/shared/utils/index.js +1 -1
- package/es/shared/utils/tapable/index.d.ts +139 -0
- package/package.json +2 -2
@@ -1,24 +1,15 @@
|
|
1
|
-
import { AnyObject } from '../../../../shared/types';
|
2
1
|
import { PropType } from 'vue';
|
3
2
|
declare const _default: import("vue").DefineComponent<{
|
4
3
|
visible: {
|
5
4
|
type: BooleanConstructor;
|
6
5
|
default: boolean;
|
7
6
|
};
|
8
|
-
model: {
|
9
|
-
type: PropType<AnyObject>;
|
10
|
-
default: null;
|
11
|
-
};
|
12
7
|
}, {
|
13
8
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
14
9
|
visible: {
|
15
10
|
type: BooleanConstructor;
|
16
11
|
default: boolean;
|
17
12
|
};
|
18
|
-
model: {
|
19
|
-
type: PropType<AnyObject>;
|
20
|
-
default: null;
|
21
|
-
};
|
22
13
|
}>> & {
|
23
14
|
onConfirm?: ((...args: any[]) => any) | undefined;
|
24
15
|
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
@@ -29,20 +20,28 @@ declare const _default: import("vue").DefineComponent<{
|
|
29
20
|
onClose: () => void;
|
30
21
|
NModal: any;
|
31
22
|
Condition: import("vue").DefineComponent<{
|
32
|
-
|
33
|
-
type: PropType<AnyObject>;
|
23
|
+
model: {
|
24
|
+
type: PropType<import("../../../../shared/types").AnyObject>;
|
34
25
|
default: null;
|
35
26
|
};
|
27
|
+
readonly: {
|
28
|
+
type: BooleanConstructor;
|
29
|
+
default: boolean;
|
30
|
+
};
|
36
31
|
}, {
|
37
32
|
customValue: string;
|
38
|
-
cssVars: import("vue").ComputedRef<AnyObject>;
|
33
|
+
cssVars: import("vue").ComputedRef<import("../../../../shared/types").AnyObject>;
|
39
34
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
40
|
-
|
41
|
-
type: PropType<AnyObject>;
|
35
|
+
model: {
|
36
|
+
type: PropType<import("../../../../shared/types").AnyObject>;
|
42
37
|
default: null;
|
43
38
|
};
|
39
|
+
readonly: {
|
40
|
+
type: BooleanConstructor;
|
41
|
+
default: boolean;
|
42
|
+
};
|
44
43
|
}>> & {}>>;
|
45
|
-
fieldList: AnyObject[];
|
44
|
+
fieldList: import("../../../../shared/types").AnyObject[];
|
46
45
|
queryWordbookData: ((params: import("../types").ColorSetWordbook) => Promise<{
|
47
46
|
[key: string]: any;
|
48
47
|
label: string;
|
@@ -59,8 +58,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
59
58
|
numberValue: number | null;
|
60
59
|
dateValue: string | [string, string] | null;
|
61
60
|
fieldType: string;
|
62
|
-
conOptions: AnyObject[];
|
63
|
-
compareFieldOptions: AnyObject[];
|
61
|
+
conOptions: import("../../../../shared/types").AnyObject[];
|
62
|
+
compareFieldOptions: import("../../../../shared/types").AnyObject[];
|
64
63
|
unit: string | null;
|
65
64
|
multiple: boolean;
|
66
65
|
}[]>;
|
@@ -69,9 +68,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
69
68
|
numberValue: number | null;
|
70
69
|
dateValue: string | [string, string] | null;
|
71
70
|
fieldType: string;
|
72
|
-
conOptions: AnyObject[];
|
71
|
+
conOptions: import("../../../../shared/types").AnyObject[];
|
73
72
|
compare_field: any;
|
74
|
-
compareFieldOptions: AnyObject[];
|
73
|
+
compareFieldOptions: import("../../../../shared/types").AnyObject[];
|
75
74
|
unit: string | null;
|
76
75
|
multiple: boolean;
|
77
76
|
}, isInit?: boolean) => void;
|
@@ -79,9 +78,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
79
78
|
numberValue: number | null;
|
80
79
|
dateValue: string | [string, string] | null;
|
81
80
|
fieldType: string;
|
82
|
-
conOptions: AnyObject[];
|
81
|
+
conOptions: import("../../../../shared/types").AnyObject[];
|
83
82
|
compare_field: any;
|
84
|
-
compareFieldOptions: AnyObject[];
|
83
|
+
compareFieldOptions: import("../../../../shared/types").AnyObject[];
|
85
84
|
unit: string | null;
|
86
85
|
multiple: boolean;
|
87
86
|
}, isInit?: boolean) => Promise<void>;
|
@@ -89,9 +88,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
89
88
|
numberValue: number | null;
|
90
89
|
dateValue: string | [string, string] | null;
|
91
90
|
fieldType: string;
|
92
|
-
conOptions: AnyObject[];
|
91
|
+
conOptions: import("../../../../shared/types").AnyObject[];
|
93
92
|
compare_field: any;
|
94
|
-
compareFieldOptions: AnyObject[];
|
93
|
+
compareFieldOptions: import("../../../../shared/types").AnyObject[];
|
95
94
|
unit: string | null;
|
96
95
|
multiple: boolean;
|
97
96
|
}) => void;
|
@@ -99,9 +98,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
99
98
|
numberValue: number | null;
|
100
99
|
dateValue: string | [string, string] | null;
|
101
100
|
fieldType: string;
|
102
|
-
conOptions: AnyObject[];
|
101
|
+
conOptions: import("../../../../shared/types").AnyObject[];
|
103
102
|
compare_field: any;
|
104
|
-
compareFieldOptions: AnyObject[];
|
103
|
+
compareFieldOptions: import("../../../../shared/types").AnyObject[];
|
105
104
|
unit: string | null;
|
106
105
|
multiple: boolean;
|
107
106
|
}) => boolean | "";
|
@@ -109,9 +108,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
109
108
|
numberValue: number | null;
|
110
109
|
dateValue: string | [string, string] | null;
|
111
110
|
fieldType: string;
|
112
|
-
conOptions: AnyObject[];
|
111
|
+
conOptions: import("../../../../shared/types").AnyObject[];
|
113
112
|
compare_field: any;
|
114
|
-
compareFieldOptions: AnyObject[];
|
113
|
+
compareFieldOptions: import("../../../../shared/types").AnyObject[];
|
115
114
|
unit: string | null;
|
116
115
|
multiple: boolean;
|
117
116
|
}) => boolean;
|
@@ -119,9 +118,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
119
118
|
numberValue: number | null;
|
120
119
|
dateValue: string | [string, string] | null;
|
121
120
|
fieldType: string;
|
122
|
-
conOptions: AnyObject[];
|
121
|
+
conOptions: import("../../../../shared/types").AnyObject[];
|
123
122
|
compare_field: any;
|
124
|
-
compareFieldOptions: AnyObject[];
|
123
|
+
compareFieldOptions: import("../../../../shared/types").AnyObject[];
|
125
124
|
unit: string | null;
|
126
125
|
multiple: boolean;
|
127
126
|
}) => boolean;
|
@@ -129,9 +128,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
129
128
|
numberValue: number | null;
|
130
129
|
dateValue: string | [string, string] | null;
|
131
130
|
fieldType: string;
|
132
|
-
conOptions: AnyObject[];
|
131
|
+
conOptions: import("../../../../shared/types").AnyObject[];
|
133
132
|
compare_field: any;
|
134
|
-
compareFieldOptions: AnyObject[];
|
133
|
+
compareFieldOptions: import("../../../../shared/types").AnyObject[];
|
135
134
|
unit: string | null;
|
136
135
|
multiple: boolean;
|
137
136
|
}) => boolean;
|
@@ -139,9 +138,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
139
138
|
numberValue: number | null;
|
140
139
|
dateValue: string | [string, string] | null;
|
141
140
|
fieldType: string;
|
142
|
-
conOptions: AnyObject[];
|
141
|
+
conOptions: import("../../../../shared/types").AnyObject[];
|
143
142
|
compare_field: any;
|
144
|
-
compareFieldOptions: AnyObject[];
|
143
|
+
compareFieldOptions: import("../../../../shared/types").AnyObject[];
|
145
144
|
unit: string | null;
|
146
145
|
multiple: boolean;
|
147
146
|
}) => boolean;
|
@@ -149,9 +148,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
149
148
|
numberValue: number | null;
|
150
149
|
dateValue: string | [string, string] | null;
|
151
150
|
fieldType: string;
|
152
|
-
conOptions: AnyObject[];
|
151
|
+
conOptions: import("../../../../shared/types").AnyObject[];
|
153
152
|
compare_field: any;
|
154
|
-
compareFieldOptions: AnyObject[];
|
153
|
+
compareFieldOptions: import("../../../../shared/types").AnyObject[];
|
155
154
|
unit: string | null;
|
156
155
|
multiple: boolean;
|
157
156
|
}) => "datetime" | "datetimerange";
|
@@ -174,6 +173,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
174
173
|
NInputNumber: any;
|
175
174
|
NSelect: any;
|
176
175
|
NIcon: any;
|
176
|
+
NButton: any;
|
177
177
|
AddCircleSharp: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
178
178
|
RemoveCircle: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
179
179
|
UNIT_OPTIONS: {
|
@@ -248,7 +248,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
248
248
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
249
249
|
}>>;
|
250
250
|
emit: (event: "update:formatted-value", ...args: any[]) => void;
|
251
|
-
datePickerRef: import("vue").Ref<AnyObject | null>;
|
251
|
+
datePickerRef: import("vue").Ref<import("../../../../shared/types").AnyObject | null>;
|
252
252
|
panelInstRef: import("vue").Ref<null>;
|
253
253
|
placeholderRef: import("vue").Ref<any>;
|
254
254
|
oldValue: string;
|
@@ -304,27 +304,27 @@ declare const _default: import("vue").DefineComponent<{
|
|
304
304
|
holidays: Date[];
|
305
305
|
}>>;
|
306
306
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
307
|
-
|
308
|
-
type: PropType<AnyObject>;
|
307
|
+
model: {
|
308
|
+
type: PropType<import("../../../../shared/types").AnyObject>;
|
309
309
|
default: null;
|
310
310
|
};
|
311
|
+
readonly: {
|
312
|
+
type: BooleanConstructor;
|
313
|
+
default: boolean;
|
314
|
+
};
|
311
315
|
}>>, {
|
312
|
-
|
316
|
+
model: import("../../../../shared/types").AnyObject;
|
317
|
+
readonly: boolean;
|
313
318
|
}>;
|
314
319
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("confirm" | "update:visible")[], "confirm" | "update:visible", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
315
320
|
visible: {
|
316
321
|
type: BooleanConstructor;
|
317
322
|
default: boolean;
|
318
323
|
};
|
319
|
-
model: {
|
320
|
-
type: PropType<AnyObject>;
|
321
|
-
default: null;
|
322
|
-
};
|
323
324
|
}>> & {
|
324
325
|
onConfirm?: ((...args: any[]) => any) | undefined;
|
325
326
|
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
326
327
|
}, {
|
327
328
|
visible: boolean;
|
328
|
-
model: AnyObject;
|
329
329
|
}>;
|
330
330
|
export default _default;
|
@@ -1 +1 @@
|
|
1
|
-
import{defineComponent as e,ref as t,openBlock as i,createBlock as o,unref as
|
1
|
+
import{defineComponent as e,ref as t,openBlock as i,createBlock as o,unref as s,withCtx as l,createVNode as n,mergeProps as a}from"vue";import{NModal as r}from"naive-ui";import u from"./condition.vue.js";var f=e({__name:"edit-filter",props:{visible:{type:Boolean,default:!1}},emits:["update:visible","confirm"],setup(e,{emit:f}){const v=t();function c(){var e;f("confirm",null==(e=v.value)?void 0:e.getData()),p()}function p(){f("update:visible",!1)}return(t,f)=>(i(),o(s(r),{preset:"dialog",style:{width:"860px"},title:"设置分类","close-on-esc":!1,"show-icon":!1,"mask-closable":!1,"positive-text":"确定","negative-text":"取消","trap-focus":!1,show:e.visible,onPositiveClick:c,onNegativeClick:p,onClose:p},{default:l((()=>[n(u,a({ref_key:"conditionRef",ref:v},t.$attrs),null,16)])),_:1},8,["show"]))}});export{f as default};
|
@@ -204,7 +204,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
204
204
|
}>>;
|
205
205
|
emit: (event: "edit" | "updateChecked", ...args: any[]) => void;
|
206
206
|
onRemove: () => void;
|
207
|
-
onEdit: () => void;
|
207
|
+
onEdit: (param?: AnyObject) => void;
|
208
208
|
isRenderTooltip: (field: string) => any;
|
209
209
|
getTooltipContent: () => any;
|
210
210
|
getTextValue: (field: string) => any;
|
@@ -216,7 +216,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
216
216
|
label: string;
|
217
217
|
value: number;
|
218
218
|
}[];
|
219
|
-
getSelectText: (field: string) =>
|
219
|
+
getSelectText: (field: string) => any;
|
220
220
|
selectProps: (field: string) => {
|
221
221
|
valueField: string;
|
222
222
|
labelField: string;
|
@@ -236,6 +236,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
236
236
|
NPopconfirm: any;
|
237
237
|
NPopover: any;
|
238
238
|
NSpace: any;
|
239
|
+
NButton: any;
|
239
240
|
setStyle: typeof setStyle;
|
240
241
|
setColorInfo: typeof setColorInfo;
|
241
242
|
ReorderTwoOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
@@ -243,6 +244,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
243
244
|
CreateOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
244
245
|
HelpCircleOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
245
246
|
CaretDownOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
247
|
+
EyeOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
248
|
+
CopyOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
246
249
|
isFunction: (value: any) => value is (...args: any[]) => any;
|
247
250
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("edit" | "updateChecked")[], "edit" | "updateChecked", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
248
251
|
element: {
|
@@ -380,9 +383,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
380
383
|
}>;
|
381
384
|
developMode: boolean;
|
382
385
|
draggable: boolean;
|
386
|
+
isHighlightRow: boolean;
|
383
387
|
idx: number;
|
384
388
|
isHighlight: boolean;
|
385
|
-
isHighlightRow: boolean;
|
386
389
|
isFieldSet: boolean;
|
387
390
|
fieldDescribeMode: "column" | "tooltip";
|
388
391
|
hideExpressionOption: AnyObject[];
|
@@ -1 +1 @@
|
|
1
|
-
import{defineComponent as e,openBlock as
|
1
|
+
import{defineComponent as e,openBlock as l,createElementBlock as t,Fragment as i,renderList as n,normalizeStyle as o,unref as a,createBlock as r,withCtx as d,createVNode as u,createCommentVNode as s,createElementVNode as c,toDisplayString as f,resolveDynamicComponent as p,normalizeClass as m,withDirectives as y,vShow as v,mergeProps as g,createTextVNode as h}from"vue";import{NTooltip as b,NIcon as k,NCheckbox as x,NPopover as E,NSpace as S,NSelect as T,NColorPicker as w,NInput as D,NInputNumber as _,NButton as C,NPopconfirm as O}from"naive-ui";import{setStyle as R,setColorInfo as F,isShowExplicitRequired as M,isDisable as N}from"../utils/index.js";import{ReorderTwoOutline as U,HelpCircleOutline as P,CaretDownOutline as j,EyeOutline as A,CopyOutline as L,CreateOutline as H,TrashOutline as I}from"@vicons/ionicons5";import{isFunction as V,isArray as B,range as W}from"lodash-es";import{COLOR_MAP as q}from"../constants/index.js";import{WIDGET_MAP as K,SELECT_TYPE as $,WIDGET_TYPE as z,SELECT_MAP as G,SELECT_DEFAULT_MAP as J,DATE_MAP as Q,DATETIME_MAP as X}from"../constants/filter.js";const Y={class:"row"},Z=["title"],ee=c("span",null,"拖拽调整顺序",-1),le={key:0};var te=e({__name:"table-row",props:{element:{type:Object,default:()=>({})},columns:{type:Array,default:()=>[]},idx:{type:Number,default:1},data:{type:Array,default:()=>[]},isHighlight:{type:Boolean},index:{type:Number,default:0},isHighlightRow:{type:Boolean,default:!1},draggable:{type:Boolean,default:!0},isFieldSet:{type:Boolean,default:!1},fieldDescribeMode:{type:String,default:"tooltip"},developMode:{type:Boolean},columnWidthProps:{type:Object},hideExpressionOption:{type:Array,default:()=>[]},primaryKey:{type:String,default:"id"},titleRender:{type:Function}},emits:["updateChecked","edit"],setup(e,{emit:te}){const ie=e,ne=[{label:"不固定",value:"NONE"},{label:"左固定",value:"LEFT"},{label:"右固定",value:"RIGHT"}],oe=[{label:"不排序",value:"NONE"},{label:"升序",value:"ASC"},{label:"降序",value:"DESC"}],ae=[{label:"字体",value:"font"},{label:"背景",value:"background"}],re=Object.entries(q).map((([e])=>e));function de(){ie.data.splice(ie.index,1)}function ue(e={}){te("edit",{row:ie.element,...e})}function se(){var e;return ie.element.feildDescribe||(null==(e=ie.element.settingObj)?void 0:e.fieldDescDev)}function ce(e){return"seq"===e?ie.idx:"type"===e?K[ie.element[e]]:ie.element[e]}function fe(e){if("defaultValue"===e){const{optionType:e}=ie.element;return e===$.SELECT_MULTIPLE}return!1}function pe(e){if("0001"==ie.element.id&&"fixedWay"!=e)return!1;const{isConfiguredHeaderFilter:l}=ie.element;return"isShowHeaderFilter"===e?!!l:!(["explicitRequired","defaultValue"].includes(e)&&![z.DATE,z.DATETIME,z.SELECT].includes(ie.element.type)||["editable"].includes(e)&&ie.element[`${e}Hide`])}function me(e){return["explicitRequired","defaultValue"].includes(e)?M(ie.element):!["isSum","isAvg"].includes(e)||"NUMBER"===ie.element.fieldType}function ye(e){const{relation:l}=ie.element;return"isSearch"===e&&B(null==l?void 0:l.fieldList)&&l.fieldList.length>0}function ve(e){var l,t;return"optionType"===e?(null==(t=null==(l=ie.element)?void 0:l.optionTypeConfig)?void 0:t.option)?"":ie.element[e]&&ie.element.type===z.SELECT?G[ie.element[e]]:" ":"hideExpression"===e?"PASSWORD"===ie.element.attrType?"密码无需设置":ie.element.name===ie.primaryKey||ie.element.columnName===ie.primaryKey?"主键不可设置":ie.element.disableDesensitization||ie.element[`${e}Disabled`]?"不支持脱敏设置":void 0:void 0}function ge(e){const l={valueField:"value",labelField:"label"};return"hideExpression"===e&&(l.valueField="ruleId",l.labelField="name"),l}function he(e){var l,t;switch(e.field){case"fixedWay":return ne;case"sortDirection":return oe;case"sortPriority":return function(){const e=W(1,ie.data.length+1).map((e=>({label:e.toString(),value:e}))),l=ie.data.filter((e=>!!e.sortPriority&&e.uuid!==ie.element.uuid)).map((e=>e.sortPriority));return e.filter((e=>!l.includes(e.value)))}();case"colorScope":return ae;case"hideExpression":return null==(l=ie.hideExpressionOption)?void 0:l.map((e=>({...e,ruleId:`ruleId#${e.code}`})));case"optionType":return(null==(t=ie.element.optionTypeConfig)?void 0:t.option)||[];case"defaultValue":{const{relatedFields:e=[]}=ie.element.optionTypeConfig||{},l=e.find((e=>"defaultValue"===e.field));if(V(null==l?void 0:l.getOption))return l.getOption(ie.element);const{type:t,optionInfo:i}=ie.element;return t===z.SELECT?B(null==i?void 0:i.list)&&i.list.length>0?i.list.map((e=>({...e,label:e.name}))):Object.entries(J).map((([e,l])=>({value:e,label:l}))):t===z.DATE?Object.entries(Q).map((([e,l])=>({value:e,label:l}))):t===z.DATETIME?Object.entries(X).map((([e,l])=>({value:e,label:l}))):[]}default:return[]}}function be(e){var l;if(1==ie.element.defaultMark||"color"===e.type&&ie.isHighlightRow)return!0;if("checkbox"===e.type){if("show"===e.field&&e.fieldShowMaxValue)return!ie.element[e.field]&&(null==(l=ie.data.filter((l=>l[e.field])))?void 0:l.length)===e.fieldShowMaxValue;if(["isSearch","isSum","isAvg"].includes(e.field)){if(Reflect.has(ie.element,"isMerge"))return 1==ie.element.isMerge;if("isSearch"===e.field&&Reflect.has(ie.element,"notParticipatingSearch"))return 1==ie.element.notParticipatingSearch}return N(ie.element,e.field)}if("sortPriority"===e.field){const{sortDirection:e}=ie.element;return!e||"NONE"===e}return N(ie.element,e.field)}function ke(e){return["title","result"].includes(e.field)&&ie.element.style||{}}return(M,N)=>(l(),t("div",Y,[(l(!0),t(i,null,n(e.columns,((M,B)=>{return l(),t(i,{key:B},[M.isShow?(l(),t("span",{key:0,class:"table-cell",title:e.element[M.field],style:o(a(R)(M,B,e.columnWidthProps))},["text"===M.type?(l(),t(i,{key:0},[0===B?(l(),t(i,{key:0},[!e.isFieldSet||e.draggable&&e.isFieldSet?(l(),r(a(b),{key:0,trigger:"hover"},{trigger:d((()=>[u(a(k),{style:{"margin-right":"5px",top:"2px"},component:a(U)},null,8,["component"])])),default:d((()=>[ee])),_:1})):s("v-if",!0),(W=M.field,"title"===W&&("tooltip"===ie.fieldDescribeMode&&ie.element.feildDescribe||ie.developMode&&(null==(q=ie.element.settingObj)?void 0:q.fieldDescDev))?(l(),r(a(b),{key:1,trigger:"hover"},{trigger:d((()=>[u(a(k),{style:{"margin-right":"5px",top:"2px"},component:a(P)},null,8,["component"])])),default:d((()=>[c("span",null,f(se()),1)])),_:1})):s("v-if",!0)),a(V)(e.titleRender)?(l(),r(p((()=>e.titleRender(e.element))),{key:2})):s("v-if",!0)],64)):s("v-if",!0),0===B&&a(V)(e.titleRender)?s("v-if",!0):(l(),t("span",{key:1,class:m([e.isHighlight&&"title"===M.field?"highlight":""]),style:o(ke(M))},f(ce(M.field)),7))],64)):s("v-if",!0),"checkbox"===M.type&&pe(M.field)?(l(),t(i,{key:1},[y(u(a(x),{disabled:be(M),checked:e.element[M.field],"onUpdate:checked":[l=>e.element[M.field]=l,e=>function(e,l){te("updateChecked",{checked:e,column:l})}(e,M)]},null,8,["disabled","checked","onUpdate:checked"]),[[v,me(M.field)]]),ye(M.field)?(l(),r(a(E),{key:0,placement:"right-start","show-arrow":!1},{trigger:d((()=>[u(a(k),{style:{"margin-left":"5px",top:"2px"},component:a(j)},null,8,["component"])])),default:d((()=>[c("div",null,[c("span",null,f(e.element.relation.tableName),1),u(a(S),{"wrap-item":!1,vertical:""},{default:d((()=>[(l(!0),t(i,null,n(e.element.relation.fieldList,(e=>y((l(),r(a(x),{key:e.id,checked:e.checked,"onUpdate:checked":l=>e.checked=l,label:e.title},null,8,["checked","onUpdate:checked","label"])),[[v,"0001"!==e.sid]]))),128))])),_:1})])])),_:1})):s("v-if",!0)],64)):s("v-if",!0),"select"===M.type&&pe(M.field)?(l(),t(i,{key:2},[ve(M.field)?(l(),t("span",le,f(ve(M.field)),1)):y((l(),r(a(T),g({key:1},ge(M.field),{clearable:"",multiple:fe(M.field),disabled:be(M),value:e.element[M.field],"onUpdate:value":[l=>e.element[M.field]=l,e=>function(e,l){if("sortDirection"!==l.field||"NONE"!==e&&e||(ie.element.sortPriority=null),"colorScope"===l.field&&F(ie.element),"optionType"===l.field){const{relatedFields:e=[]}=ie.element.optionTypeConfig||{};e.forEach((e=>{ie.element[e.field]=null}))}}(e,M)],options:he(M)}),null,16,["multiple","disabled","value","onUpdate:value","options"])),[[v,me(M.field)]])],64)):s("v-if",!0),"color"===M.type?(l(),r(a(w),{key:3,class:"c-field-set__color-picker",clearable:"",disabled:be(M),value:e.element[M.field],"onUpdate:value":[l=>e.element[M.field]=l,N[0]||(N[0]=l=>a(F)(e.element))],"show-preview":"",modes:["hex"],swatches:a(re)},null,8,["disabled","value","onUpdate:value","swatches"])):s("v-if",!0),"input"===M.type?y((l(),r(a(D),{key:4,value:e.element[M.field],"onUpdate:value":l=>e.element[M.field]=l,clearable:""},null,8,["value","onUpdate:value"])),[[v,"0001"!=e.element.id]]):s("v-if",!0),"inputNumber"===M.type?(l(),r(a(_),{key:5,value:e.element[M.field],"onUpdate:value":l=>e.element[M.field]=l},null,8,["value","onUpdate:value"])):s("v-if",!0),"custom"===M.type&&a(V)(M.contentRender)?(l(),r(p((()=>M.contentRender(M,e.element))),{key:6})):s("v-if",!0),e.isFieldSet||"custom"!==M.type||"opt"!==M.field?s("v-if",!0):(l(),t(i,{key:7},[1==e.element.defaultMark?(l(),t(i,{key:0},[u(a(b),null,{trigger:d((()=>[u(a(C),{text:""},{default:d((()=>[u(a(k),{component:a(A),onClick:N[1]||(N[1]=()=>ue({readonly:!0}))},null,8,["component"])])),_:1})])),default:d((()=>[h(" 查看 ")])),_:1}),e.isHighlightRow?s("v-if",!0):(l(),r(a(b),{key:0},{trigger:d((()=>[u(a(C),{text:""},{default:d((()=>[u(a(k),{component:a(L),onClick:N[2]||(N[2]=()=>ue({add:!0}))},null,8,["component"])])),_:1})])),default:d((()=>[h(" 复制 ")])),_:1}))],64)):(l(),t(i,{key:1},[u(a(b),null,{trigger:d((()=>[u(a(C),{text:""},{default:d((()=>[u(a(k),{component:a(H),onClick:N[3]||(N[3]=()=>ue())},null,8,["component"])])),_:1})])),default:d((()=>[h(" 编辑 ")])),_:1}),u(a(O),{onPositiveClick:de},{trigger:d((()=>[u(a(b),null,{trigger:d((()=>[u(a(C),{text:""},{default:d((()=>[u(a(k),{component:a(I)},null,8,["component"])])),_:1})])),default:d((()=>[h(" 删除 ")])),_:1})])),default:d((()=>[h(" 是否确认删除? ")])),_:1})],64))],64))],12,Z)):s("v-if",!0)],64);var W,q})),128))]))}});export{te as default};
|
@@ -1 +1 @@
|
|
1
|
-
.c-field-set{height:100%;width:100%}.c-field-set__color-picker .n-color-picker-trigger__value{display:none}.c-field-set .main-wrapper{box-sizing:border-box;display:flex;flex-flow:column nowrap;height:var(--main-height)!important;width:100%}.c-field-set .main-wrapper__search-wrapper.n-input{margin-bottom:12px;width:50%}.c-field-set .main-wrapper .item{background:#fff}.c-field-set .main-wrapper .item:active{background:#f2f2f2;box-shadow:0 0 10px 0 #d5d5d5}.c-field-set .main-wrapper .item:focus{background-color:#f2f2f2}.c-field-set .main-wrapper .item.disabled{cursor:not-allowed}.c-field-set .main-wrapper .item .row{align-items:center;border-bottom:1px solid #e8e8e8;display:flex;height:var(--row-height);padding:8px 0}.c-field-set .main-wrapper .table-cell{word-wrap:break-word;box-sizing:border-box;color:inherit;display:inline-block;padding:0 5px}.c-field-set .main-wrapper .table-cell .highlight{background-color:var(--primary-color);color:#fff}.c-field-set .main-wrapper .table-cell .c-field-set__color-picker{display:block}.c-field-set .main-wrapper__table{box-sizing:border-box;display:flex;flex:1;flex-flow:column nowrap;min-height:0;overflow:auto;width:100%}.c-field-set .main-wrapper__table-header{align-items:center;background:#f2f2f4;border:1px solid #f2f2f2;display:flex;flex:0 0 52px;position:sticky;top:0;z-index:1}.c-field-set .main-wrapper__table-header .n-checkbox.n-checkbox--disabled .n-checkbox__label{color:var(--n-text-color)}.c-field-set .main-wrapper__table-header .table-cell{align-items:center;background:#f2f2f4;display:flex;height:100%}.c-field-set .main-wrapper__table-body{flex:1}.c-field-set .main-wrapper__table-footer{border-top:1px solid #d5d5d5;padding:12px 0}.c-field-set .main-wrapper .set-item{padding:10px 0}.c-field-set .main-wrapper .set-item.table-item{border-top:1px solid #e8e8e8;width:50%}.c-field-set .main-wrapper .set-item.table-item h4{font-size:16px;font-weight:400;margin-bottom:12px}.c-field-set .main-wrapper .set-item.table-item .table-style{background:#e5e5e5;border:2px solid #cfcfcf;border-radius:4px;cursor:pointer;margin-bottom:10px;padding:20px 0 0}.c-field-set .main-wrapper .set-item.table-item .table-style .table-bg{background:#fff;border-radius:5px;margin:0 20px 20px;padding:10px}.c-field-set .main-wrapper .set-item.table-item .table-style .table-bg img{width:100%}.c-field-set .main-wrapper .set-item.table-item .table-style__desc{align-items:center;background:#fff;display:flex;padding:10px}.c-field-set .main-wrapper .set-item.table-item .table-style__desc .n-icon{color:var(--c-primary-color);font-size:20px}.c-field-set .main-wrapper .set-item.table-item .table-style__desc .circle{border:1px solid #d5d5d5;border-radius:50%;display:inline-block;height:18px;width:18px}.c-field-set .main-wrapper .set-item.table-item .table-style__desc span{margin-left:5px}.c-field-set .main-wrapper .set-item.table-item .table-style.active{background:#e2ebfa;border:2px solid var(--c-primary-color)}.c-field-set__color-block{display:inline-block;margin-left:20px;position:relative}.c-field-set__color-block:before{background-color:var(--color);border-radius:2px;content:"";height:14px;left:-20px;position:absolute;top:3px;width:14px}.c-field-set__space{width:100%}.c-field-set__space>div:first-child{width:80%}.c-field-set__space .filter-btn{color:var(--c-primary-color);cursor:pointer}.c-field-set__condition .
|
1
|
+
.c-field-set{height:100%;width:100%}.c-field-set__color-picker .n-color-picker-trigger__value{display:none}.c-field-set .main-wrapper{box-sizing:border-box;display:flex;flex-flow:column nowrap;height:var(--main-height)!important;width:100%}.c-field-set .main-wrapper__search-wrapper.n-input{margin-bottom:12px;width:50%}.c-field-set .main-wrapper .item{background:#fff}.c-field-set .main-wrapper .item:active{background:#f2f2f2;box-shadow:0 0 10px 0 #d5d5d5}.c-field-set .main-wrapper .item:focus{background-color:#f2f2f2}.c-field-set .main-wrapper .item.disabled{cursor:not-allowed}.c-field-set .main-wrapper .item .row{align-items:center;border-bottom:1px solid #e8e8e8;display:flex;height:var(--row-height);padding:8px 0}.c-field-set .main-wrapper .table-cell{word-wrap:break-word;box-sizing:border-box;color:inherit;display:inline-block;padding:0 5px}.c-field-set .main-wrapper .table-cell>.n-button{margin-right:5px}.c-field-set .main-wrapper .table-cell>.n-button:last-child{margin-right:0}.c-field-set .main-wrapper .table-cell .highlight{background-color:var(--primary-color);color:#fff}.c-field-set .main-wrapper .table-cell .c-field-set__color-picker{display:block}.c-field-set .main-wrapper__table{box-sizing:border-box;display:flex;flex:1;flex-flow:column nowrap;min-height:0;overflow:auto;width:100%}.c-field-set .main-wrapper__table-header{align-items:center;background:#f2f2f4;border:1px solid #f2f2f2;display:flex;flex:0 0 52px;position:sticky;top:0;z-index:1}.c-field-set .main-wrapper__table-header .n-checkbox.n-checkbox--disabled .n-checkbox__label{color:var(--n-text-color)}.c-field-set .main-wrapper__table-header .table-cell{align-items:center;background:#f2f2f4;display:flex;height:100%}.c-field-set .main-wrapper__table-body{flex:1}.c-field-set .main-wrapper__table-footer{border-top:1px solid #d5d5d5;padding:12px 0}.c-field-set .main-wrapper .set-item{padding:10px 0}.c-field-set .main-wrapper .set-item.table-item{border-top:1px solid #e8e8e8;width:50%}.c-field-set .main-wrapper .set-item.table-item h4{font-size:16px;font-weight:400;margin-bottom:12px}.c-field-set .main-wrapper .set-item.table-item .table-style{background:#e5e5e5;border:2px solid #cfcfcf;border-radius:4px;cursor:pointer;margin-bottom:10px;padding:20px 0 0}.c-field-set .main-wrapper .set-item.table-item .table-style .table-bg{background:#fff;border-radius:5px;margin:0 20px 20px;padding:10px}.c-field-set .main-wrapper .set-item.table-item .table-style .table-bg img{width:100%}.c-field-set .main-wrapper .set-item.table-item .table-style__desc{align-items:center;background:#fff;display:flex;padding:10px}.c-field-set .main-wrapper .set-item.table-item .table-style__desc .n-icon{color:var(--c-primary-color);font-size:20px}.c-field-set .main-wrapper .set-item.table-item .table-style__desc .circle{border:1px solid #d5d5d5;border-radius:50%;display:inline-block;height:18px;width:18px}.c-field-set .main-wrapper .set-item.table-item .table-style__desc span{margin-left:5px}.c-field-set .main-wrapper .set-item.table-item .table-style.active{background:#e2ebfa;border:2px solid var(--c-primary-color)}.c-field-set__color-block{display:inline-block;margin-left:20px;position:relative}.c-field-set__color-block:before{background-color:var(--color);border-radius:2px;content:"";height:14px;left:-20px;position:absolute;top:3px;width:14px}.c-field-set__space{width:100%}.c-field-set__space>div:first-child{width:80%}.c-field-set__space .filter-btn{color:var(--c-primary-color);cursor:pointer}.c-field-set__condition .condition-wrapper__item{align-items:center;display:flex;margin-top:10px}.c-field-set__condition .condition-wrapper__item .item-index{margin-right:10px}.c-field-set__condition .condition-wrapper__item>.n-date-picker,.c-field-set__condition .condition-wrapper__item>.n-input,.c-field-set__condition .condition-wrapper__item>.n-input-number,.c-field-set__condition .condition-wrapper__item>.n-select{margin-right:10px;width:20%}.c-field-set__condition .sql-expression-wrapper{margin-top:10px}
|
@@ -1900,7 +1900,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
1900
1900
|
prefix?: string | import("../../shared/types").AnyObject | (() => any) | undefined;
|
1901
1901
|
suffix?: string | import("../../shared/types").AnyObject | (() => any) | undefined;
|
1902
1902
|
allowSlash?: string | boolean | undefined;
|
1903
|
-
allowModify?: "
|
1903
|
+
allowModify?: import("..").FormCommonState | undefined;
|
1904
1904
|
show_key?: string | undefined;
|
1905
1905
|
whiteList?: string[] | undefined;
|
1906
1906
|
bordered?: string | boolean | undefined;
|
@@ -2148,7 +2148,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
2148
2148
|
prefix?: string | import("../../shared/types").AnyObject | (() => any) | undefined;
|
2149
2149
|
suffix?: string | import("../../shared/types").AnyObject | (() => any) | undefined;
|
2150
2150
|
allowSlash?: string | boolean | undefined;
|
2151
|
-
allowModify?: "
|
2151
|
+
allowModify?: import("..").FormCommonState | undefined;
|
2152
2152
|
show_key?: string | undefined;
|
2153
2153
|
whiteList?: string[] | undefined;
|
2154
2154
|
bordered?: string | boolean | undefined;
|
@@ -2367,7 +2367,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
2367
2367
|
prefix?: string | import("../../shared/types").AnyObject | (() => any) | undefined;
|
2368
2368
|
suffix?: string | import("../../shared/types").AnyObject | (() => any) | undefined;
|
2369
2369
|
allowSlash?: string | boolean | undefined;
|
2370
|
-
allowModify?: "
|
2370
|
+
allowModify?: import("..").FormCommonState | undefined;
|
2371
2371
|
show_key?: string | undefined;
|
2372
2372
|
whiteList?: string[] | undefined;
|
2373
2373
|
bordered?: string | boolean | undefined;
|
@@ -1903,7 +1903,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
1903
1903
|
prefix?: string | import("../../../shared/types").AnyObject | (() => any) | undefined;
|
1904
1904
|
suffix?: string | import("../../../shared/types").AnyObject | (() => any) | undefined;
|
1905
1905
|
allowSlash?: string | boolean | undefined;
|
1906
|
-
allowModify?: "
|
1906
|
+
allowModify?: import("../../../components/form-render").FormCommonState | undefined;
|
1907
1907
|
show_key?: string | undefined;
|
1908
1908
|
whiteList?: string[] | undefined;
|
1909
1909
|
bordered?: string | boolean | undefined;
|
@@ -2151,7 +2151,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
2151
2151
|
prefix?: string | import("../../../shared/types").AnyObject | (() => any) | undefined;
|
2152
2152
|
suffix?: string | import("../../../shared/types").AnyObject | (() => any) | undefined;
|
2153
2153
|
allowSlash?: string | boolean | undefined;
|
2154
|
-
allowModify?: "
|
2154
|
+
allowModify?: import("../../../components/form-render").FormCommonState | undefined;
|
2155
2155
|
show_key?: string | undefined;
|
2156
2156
|
whiteList?: string[] | undefined;
|
2157
2157
|
bordered?: string | boolean | undefined;
|
@@ -2370,7 +2370,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
2370
2370
|
prefix?: string | import("../../../shared/types").AnyObject | (() => any) | undefined;
|
2371
2371
|
suffix?: string | import("../../../shared/types").AnyObject | (() => any) | undefined;
|
2372
2372
|
allowSlash?: string | boolean | undefined;
|
2373
|
-
allowModify?: "
|
2373
|
+
allowModify?: import("../../../components/form-render").FormCommonState | undefined;
|
2374
2374
|
show_key?: string | undefined;
|
2375
2375
|
whiteList?: string[] | undefined;
|
2376
2376
|
bordered?: string | boolean | undefined;
|
@@ -389,7 +389,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
389
389
|
prefix?: string | import("../../../../shared/types").AnyObject | (() => any) | undefined;
|
390
390
|
suffix?: string | import("../../../../shared/types").AnyObject | (() => any) | undefined;
|
391
391
|
allowSlash?: string | boolean | undefined;
|
392
|
-
allowModify?: "
|
392
|
+
allowModify?: import("../../../../components/form-render").FormCommonState | undefined;
|
393
393
|
show_key?: string | undefined;
|
394
394
|
whiteList?: string[] | undefined;
|
395
395
|
bordered?: string | boolean | undefined;
|
@@ -637,7 +637,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
637
637
|
prefix?: string | import("../../../../shared/types").AnyObject | (() => any) | undefined;
|
638
638
|
suffix?: string | import("../../../../shared/types").AnyObject | (() => any) | undefined;
|
639
639
|
allowSlash?: string | boolean | undefined;
|
640
|
-
allowModify?: "
|
640
|
+
allowModify?: import("../../../../components/form-render").FormCommonState | undefined;
|
641
641
|
show_key?: string | undefined;
|
642
642
|
whiteList?: string[] | undefined;
|
643
643
|
bordered?: string | boolean | undefined;
|
@@ -856,7 +856,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
856
856
|
prefix?: string | import("../../../../shared/types").AnyObject | (() => any) | undefined;
|
857
857
|
suffix?: string | import("../../../../shared/types").AnyObject | (() => any) | undefined;
|
858
858
|
allowSlash?: string | boolean | undefined;
|
859
|
-
allowModify?: "
|
859
|
+
allowModify?: import("../../../../components/form-render").FormCommonState | undefined;
|
860
860
|
show_key?: string | undefined;
|
861
861
|
whiteList?: string[] | undefined;
|
862
862
|
bordered?: string | boolean | undefined;
|
@@ -1 +1 @@
|
|
1
|
-
import{COMPONENT_NAMESPACE as e}from"../../shared/global/variable.js";import{safeComponentRegister as o}from"../../shared/utils/index.js";import s from"./src/FormRenderWrapper.vue.js";export{useAnchor}from"./src/hooks/useAnchor.js";export{BusinessCollector,useBusinessBinding}from"./src/hooks/useBusinessBinding.js";export{ContextCollector,useChangeContext}from"./src/hooks/useChangeContext.js";export{useCommonInjection,useSelectOptionProps}from"./src/hooks/useCommonInjection.js";export{useCommonLog}from"./src/hooks/useCommonLog.js";export{useComplexOptions,useComplexOptionsSpan}from"./src/hooks/useComplexOptions.js";export{useFieldListAdaptor}from"./src/hooks/useFieldListAdaptor.js";export{useFieldNormalize}from"./src/hooks/useFieldNormalize.js";export{useFieldVisitor}from"./src/hooks/useFieldVisitor.js";export{useFormContext}from"./src/hooks/useFormContext.js";export{useFormDomEvent,useFormExposeEvent}from"./src/hooks/useFormEvent.js";export{useFormField}from"./src/hooks/useFormField.js";export{useFormGraph}from"./src/hooks/useFormGraph.js";export{FormItemDepsCollector,useFormItemDeps}from"./src/hooks/useFormItemDeps.js";export{useFormRenderLifeCycle}from"./src/hooks/useFormRenderLifeCycle.js";export{useAutographOptions,useRecommendOptions,useUrlConfigOptions}from"./src/hooks/useFormRenderOptions.js";export{useFormValidator,validateMessageLocale}from"./src/hooks/useFormValidator.js";export{useLowCodeEvent}from"./src/hooks/useLowCodeEvent.js";export{useLowCodeReactions}from"./src/hooks/useLowCodeReactions.js";export{useNuiThemeOverrides}from"./src/hooks/useNuiThemeOverrides.js";export{useOperationalForm}from"./src/hooks/useOperationalForm.js";export{usePresetScope}from"./src/hooks/usePresetScope.js";export{useWordbookSetting,wordbookSettingHandler}from"./src/hooks/useWordbookSetting.js";export{useNewLowCodeReactions}from"./src/hooks/useNewLowCodeReactions.js";export{useSelectedSetting}from"./src/hooks/useSelectedSetting.js";export{FieldListFilter,combineExtendKey,createInputSlot,createSlot,editorUnescape,findItemByValCondition,formRenderLog,getAbsoluteKey,injectOrProvide,isEnter,isNestedFieldType,isNestedType,mergeDeepProperties,parseEnhanceText,parseNumberFromMaybeString,renderDescOption,replace2Any,splitExtendKey,validateMessageParser}from"./src/utils/index.js";export{businessDateParser,isForeignerID,isIdCard,isMobile,parseAge2Birthday,parseAgeFromContext,parseBirthday,parseIdCard,transformDateFormat}from"./src/utils/business.js";export{findNextWidget,queryDecoratorByAddress,queryDecoratorByFieldKey,queryInput}from"./src/utils/dom.js";export{assignClearBindVisited,assignUpdateValue,assignValueBindKey,createFieldAddressId,createLinebarId,createObjSchema,createVisitedSetter,dotEscape,fieldKeyEscape,getParentLinebar,traverseDependKey,traverseSchema}from"./src/utils/schema.js";const r=s;r.install=function(s){o(s,r,e+"FormRender")};export{r as default};
|
1
|
+
import{COMPONENT_NAMESPACE as e}from"../../shared/global/variable.js";import{safeComponentRegister as o}from"../../shared/utils/index.js";import s from"./src/FormRenderWrapper.vue.js";export{useAnchor}from"./src/hooks/useAnchor.js";export{BusinessCollector,useBusinessBinding}from"./src/hooks/useBusinessBinding.js";export{ContextCollector,useChangeContext}from"./src/hooks/useChangeContext.js";export{useCommonInjection,useSelectOptionProps}from"./src/hooks/useCommonInjection.js";export{useCommonLog}from"./src/hooks/useCommonLog.js";export{useComplexOptions,useComplexOptionsSpan}from"./src/hooks/useComplexOptions.js";export{useFieldListAdaptor}from"./src/hooks/useFieldListAdaptor.js";export{useFieldNormalize}from"./src/hooks/useFieldNormalize.js";export{useFieldVisitor}from"./src/hooks/useFieldVisitor.js";export{useFormContext}from"./src/hooks/useFormContext.js";export{useFormDomEvent,useFormExposeEvent}from"./src/hooks/useFormEvent.js";export{useFormField}from"./src/hooks/useFormField.js";export{useFormGraph}from"./src/hooks/useFormGraph.js";export{FormItemDepsCollector,useFormItemDeps}from"./src/hooks/useFormItemDeps.js";export{useFormRenderLifeCycle}from"./src/hooks/useFormRenderLifeCycle.js";export{useAutographOptions,useRecommendOptions,useUrlConfigOptions}from"./src/hooks/useFormRenderOptions.js";export{useFormValidator,validateMessageLocale}from"./src/hooks/useFormValidator.js";export{useLowCodeEvent}from"./src/hooks/useLowCodeEvent.js";export{useLowCodeReactions}from"./src/hooks/useLowCodeReactions.js";export{useNuiThemeOverrides}from"./src/hooks/useNuiThemeOverrides.js";export{useOperationalForm}from"./src/hooks/useOperationalForm.js";export{usePresetScope}from"./src/hooks/usePresetScope.js";export{useWordbookSetting,wordbookSettingHandler}from"./src/hooks/useWordbookSetting.js";export{useNewLowCodeReactions}from"./src/hooks/useNewLowCodeReactions.js";export{useSelectedSetting}from"./src/hooks/useSelectedSetting.js";export{FieldListFilter,combineExtendKey,createInputSlot,createSlot,editorUnescape,findItemByValCondition,formRenderLog,getAbsoluteKey,injectOrProvide,isEnter,isNegative,isNestedFieldType,isNestedType,isPositive,mergeDeepProperties,parseEnhanceText,parseNumberFromMaybeString,renderDescOption,replace2Any,splitExtendKey,validateMessageParser}from"./src/utils/index.js";export{businessDateParser,isForeignerID,isIdCard,isMobile,parseAge2Birthday,parseAgeFromContext,parseBirthday,parseIdCard,transformDateFormat}from"./src/utils/business.js";export{findNextWidget,queryDecoratorByAddress,queryDecoratorByFieldKey,queryInput}from"./src/utils/dom.js";export{assignClearBindVisited,assignUpdateValue,assignValueBindKey,createFieldAddressId,createLinebarId,createObjSchema,createVisitedSetter,dotEscape,fieldKeyEscape,getParentLinebar,traverseDependKey,traverseSchema}from"./src/utils/schema.js";const r=s;r.install=function(s){o(s,r,e+"FormRender")};export{r as default};
|
@@ -63,10 +63,10 @@ export declare const COMBINATION: import("vue").DefineComponent<{
|
|
63
63
|
}>> & {
|
64
64
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
65
65
|
}, {
|
66
|
+
title: string;
|
66
67
|
disabled: boolean;
|
67
68
|
minGroupNum: number;
|
68
69
|
combinationItemDeletable: boolean | CombinationItemDeletableFn;
|
69
70
|
properties: FieldItem[];
|
70
|
-
title: string;
|
71
71
|
showLabel: boolean;
|
72
72
|
}>;
|
@@ -49,8 +49,8 @@ export declare const JSON_COMBINATION: import("vue").DefineComponent<{
|
|
49
49
|
}>> & {
|
50
50
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
51
51
|
}, {
|
52
|
+
title: string;
|
52
53
|
minGroupNum: number;
|
53
54
|
properties: FieldItem[];
|
54
|
-
title: string;
|
55
55
|
showLabel: boolean;
|
56
56
|
}>;
|
@@ -62,9 +62,9 @@ export declare const TABLE_COMBINATION: import("vue").DefineComponent<{
|
|
62
62
|
}>> & {
|
63
63
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
64
64
|
}, {
|
65
|
+
title: string;
|
65
66
|
disabled: boolean;
|
66
67
|
minGroupNum: number;
|
67
68
|
combinationItemDeletable: boolean | CombinationItemDeletableFn;
|
68
69
|
properties: FieldItem[];
|
69
|
-
title: string;
|
70
70
|
}>;
|
@@ -7,7 +7,7 @@ export declare const TEXT: import("vue").DefineComponent<{
|
|
7
7
|
};
|
8
8
|
value: {};
|
9
9
|
onChange: {};
|
10
|
-
}, () =>
|
10
|
+
}, () => any, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
11
11
|
content: {};
|
12
12
|
fieldItem: {
|
13
13
|
type: PropType<FieldItem>;
|
@@ -1 +1 @@
|
|
1
|
-
import{defineComponent as e,computed as t,inject as n,createVNode as o}from"vue";import{connect as r,mapProps as l,RecursionField as i}from"@formily/vue";import{isString as s}from"lodash-es";import"../../../index.js";import{InjectionBusinessCollector as a,InjectionFormGlobalProps as u}from"../../constants/index.js";import{createSlot as m,replace2Any as c}from"../../utils/index.js";import{useFieldListAdaptor as p}from"../../hooks/useFieldListAdaptor.js";import{createObjSchema as d}from"../../utils/schema.js";const f=r(e({name:"FORM_TEXT",props:{content:{},fieldItem:{type:Object},value:{},onChange:{}},setup(e){function r(t,n=!1){
|
1
|
+
import{defineComponent as e,computed as t,inject as n,createVNode as o}from"vue";import{connect as r,mapProps as l,RecursionField as i}from"@formily/vue";import{isString as s}from"lodash-es";import"../../../index.js";import{InjectionBusinessCollector as a,InjectionFormGlobalProps as u}from"../../constants/index.js";import{createSlot as m,replace2Any as c}from"../../utils/index.js";import{useFieldListAdaptor as p}from"../../hooks/useFieldListAdaptor.js";import{createObjSchema as d}from"../../utils/schema.js";const f=r(e({name:"FORM_TEXT",props:{content:{},fieldItem:{type:Object},value:{},onChange:{}},setup(e){function r(t,n=!1,r=!0){return r?o("div",{style:n?{display:"flex",alignItems:"center"}:{}},[l()]):l();function l(){var n,r;return null==(r=(n=m(t,e,(e=>s(e)?e=c(e.replace("\n","<br>"),[{from:"<br>",to:o("i",{style:{width:"100%",height:"4px"}},null)},{from:" ",to:o("i",{style:{display:"inline-block",width:"4px"}},null)}]):[e]))).default)?void 0:r.call(n)}}const l=t((()=>{var t,n;return null!=(n=null==(t=e.fieldItem)?void 0:t.__textEnhance)?n:[]})),f=t((()=>l.value.length&&l.value.some((e=>"widget"===e.type)))),v=n(a),h=n(u),{schemaAdaptor:y}=p(v,h.lifeCycle);return()=>{var t;return f.value?o("div",{style:{display:"flex",alignItems:"center"}},[l.value.map((e=>{if("text"===e.type)return r(e.content,!0,!1);if(s(e.content))return r(e.content,!0,!1);const t={...e.content};return t.decoratorProps={...t.decoratorProps,showLabel:!1,showFeedback:!1},o(i,{basePath:".",schema:d(y([t]))},null)}))]):r(null!=(t=e.content)?t:e.value)}}}),l((e=>{var t;return{...e,content:null==(t=e.fieldItem)?void 0:t.content}})));export{f as TEXT};
|
@@ -1 +1 @@
|
|
1
|
-
import{arrayed as e,deepOmit as o}from"../../../../shared/utils/index.js";import{cloneDeep as t,castArray as n,pick as i}from"lodash-es";import"../../index.js";import{
|
1
|
+
import{arrayed as e,deepOmit as o}from"../../../../shared/utils/index.js";import{cloneDeep as t,castArray as n,pick as i}from"lodash-es";import"../../index.js";import{isPositive as r,isNegative as s,parseNumberFromMaybeString as l,formRenderLog as a}from"../utils/index.js";import{useFieldNormalize as p}from"./useFieldNormalize.js";import{traverseSchema as c,fieldKeyEscape as d,createLinebarId as m}from"../utils/schema.js";import{useFormValidator as u}from"./useFormValidator.js";import{transformDateFormat as f}from"../utils/business.js";function x(e,o){Object.assign(e["x-component-props"],{...i(o,["wordbook","autograph"])})}function _(e,o){Object.assign(e["x-component-props"],{...i(o,["urlConfig","wordbook"])})}function h(n,h){const{createValidatorSchema:g}=u(),v=e=>{var o;const t={name:e.val_key,type:null!=(o=e.fieldType)?o:"string",title:e.alias||e.name,"x-component":e.html_type,default:e.default_val,"x-component-props":{placeholder:e.placeholder,clearable:s(e.is_empty),...e.componentProps||{}},"x-content":e.slots,"x-display":s(e.is_show)?"hidden":"visible","x-pattern":s(e.is_edit)?"disabled":"editable","x-compile-omitted":["title","x-component-props","x-decorator-props"]};e.reactions&&(t["x-reactions"]=e.reactions),e.noDecorator||Object.assign(t,{"x-decorator":"FORM_ITEM","x-decorator-props":{fieldItem:e,beforeSetValue:null==h?void 0:h.beforeSetValue,span:2*(e.elem_width||3),showLabel:!r(e.hide_title),remark:e.remark,propertyKey:e.val_key,annotation:e.annotation,...e.decoratorProps||{}}});const n=g(e);return n&&(t["x-validator"]=n),s(e.is_null)&&(t.required=!0),t},y=e=>{var o,t,n,s,a,p,c,d,m,u,f,h,b,g;const y=v(e);e.urlConfig?_(y,e):e.autograph&&x(y,e);const w=!!e.__multiple,C=r(null!=(t=null==(o=e.componentProps)?void 0:o.allowModify)?t:e.allowModify),O=r(null!=(s=null==(n=e.componentProps)?void 0:n.selectAll)?s:e.selectAll),A=r(null!=(p=null==(a=e.componentProps)?void 0:a.shouldSave)?p:e.save_free_entry),E=r(null!=(d=null==(c=e.componentProps)?void 0:c.allowCreate)?d:e.free_entry),j=null!=(u=null==(m=e.componentProps)?void 0:m.showField)?u:e.show_key,k=null!=(h=null==(f=e.componentProps)?void 0:f.options)?h:e.option,N=null!=(g=l(e.multi_select_value))?g:null==(b=e.componentProps)?void 0:b.maxTagCount;return Object.assign(y["x-component-props"],{multiple:w,options:k,allowModify:C,allowCreate:E||C,shouldSave:A,showField:j,maxTagCount:N,selectAll:O,...i(e,["lazyRequest","requestCache"])}),w&&(y.type="array"),y},w=e=>{var o,t;const n=v(e),i=null!=(t=null==(o=e.componentProps)?void 0:o.selectAll)?t:e.selectAll;return Object.assign(n["x-component-props"],{options:e.option,childFieldStrategy:e.childFieldStrategy,childWidthMode:e.childWidthMode,vertical:e.__vertical,selectAll:r(i)}),e.urlConfig?_(n,e):e.autograph&&x(n,e),n},C=e=>{const t=v(e);return Object.assign(t["x-component-props"],{fieldItem:o(e,["reactions"])}),t},O=e=>({name:e.val_key,type:"void",title:e.alias||e.name,"x-component":"LINEBAR","x-display":"visible","x-component-props":{linebarTextDirection:e.linebarTextDirection,linebarDirection:e.linebarDirection,linebarWidth:e.linebarWidth,disabled:r(e.is_not_fold),id:m(e.val_key),show:!s(e.is_show),remark:e.remark},"x-content":e.slots}),A=new Map([["LINEBAR",O],["LINE_BREAKS",e=>({name:e.val_key,type:"void",title:e.alias||e.name,"x-component":"LINE_BREAKS","x-component-props":{border:e.lineBreaksBorder},"x-display":s(e.is_show)?"hidden":"visible"})],["INPUT",e=>{const o=v(e);return Object.assign(o["x-component-props"],{...i(e,["prefix","suffix"])}),o}],["TEXTAREA",e=>{const o=v(e);return Object.assign(o["x-component-props"],{rows:e.initialize_high||3}),o}],["INPUT_NUMBER",e=>{const o=v(e),{decimal_length:t,validate:n,allowSlash:i}=e;return r(i)&&(o["x-component"]="INPUT_NUMBER_SLASH",o.type="string"),Object.assign(o["x-component-props"],{precision:l(null!=t?t:null==n?void 0:n.decimal_length),whiteList:e.whiteList,prefix:e.prefix,suffix:e.suffix}),o}],["SELECT",y],["REMOTE_SEARCH",y],["DATE",e=>{const o=v(e);return Object.assign(o["x-component-props"],{valueFormat:e.date_format,type:f(e.date_format),validate:e.validate}),o}],["TIME",e=>{const o=v(e);return Object.assign(o["x-component-props"],{format:e.date_format,type:f(e.date_format),validate:e.validate}),o}],["LEVEL_SEARCH_CASCADER",e=>{const o=v(e);return Object.assign(o["x-component-props"],{...i(e,["wordbook","lazyRequest","autograph"])}),r(e.is_allow_check_mid)&&e.allow_check_mid_level&&(o["x-component-props"].checkAbleLevel=+e.allow_check_mid_level),o}],["SEARCH_CASCADER",e=>{var o;const t=v(e);return Object.assign(t["x-component-props"],{urlConfig:e.urlConfig,depth:null==(o=e.wordbook)?void 0:o.level_num,options:e.option}),t}],["COMBINATION",e=>{const o=v(e);return o.type="array","table"===e.displayMode?o["x-component"]="TABLE_COMBINATION":!1!==e.jsonCombination&&(o["x-component"]="JSON_COMBINATION"),Object.assign(o["x-decorator-props"],{showLabel:!1,showFeedback:!1}),Object.assign(o["x-component-props"],{title:e.alias||e.name,maxGroupNum:e.maxGroupNum,minGroupNum:e.minGroupNum,showLabel:!r(e.hide_title),properties:e.children||[],combinationItemDeletable:e.combinationItemDeletable}),o}],["RADIO",w],["CHECKBOX",w],["SWITCH",e=>{const o=v(e);return Object.assign(o["x-component-props"],{openDescription:e.open,closeDescription:e.close,showMode:e.show_mode}),o}],["SLIDER",e=>{const o=v(e);return Object.assign(o["x-component-props"],{step:l(e.step_length),max:l(e.max_length),min:l(e.min_length),option:e.option}),o}],["COMPLEX",e=>{const o=v(e);Array.isArray(e.properties)&&a("COMPLEX控件的properties属性已经废弃, 请使用children作为替代, 在之后的版本中properties属性将不再支持");const t=Array.isArray(e.properties||e.children)?I(e.properties||e.children):{};return o.type=e.fieldType||"void",o.properties=t,Object.assign(o["x-decorator-props"],{showFeedback:!1}),Object.assign(o["x-component-props"],i(e,["wrapperStyle","display"])),o}]]),E=e=>{if(e.suffixConfig||e.prefixConfig)return j(e);return(A.get(e.html_type)||C)(e)},j=o=>{if(!o.suffixConfig&&!o.prefixConfig)return E(o);const t=v(o),n=o.suffixConfig?e(o.suffixConfig):[],i=[...(o.prefixConfig?e(o.prefixConfig):[]).map((e=>({elem_width:o.elem_width,...e,hide_title:"1",is_show:s(e.is_show)?"0":o.is_show}))),{...o,hide_title:"1",suffixConfig:void 0,prefixConfig:void 0},...n.map((e=>({elem_width:o.elem_width,...e,hide_title:"1",is_show:s(e.is_show)?"0":o.is_show})))],r=i.reduce(((e,o)=>e+2*(o.elem_width||3)),0);return Object.assign(t,{type:"void",name:d(i),title:o.alias||o.name,"x-component":"INPUT_GROUP","x-component-props":{span:r},"x-decorator-props":{...t["x-decorator-props"],showFeedback:!1,suffixFields:i.map((e=>e.val_key))},properties:I(i)}),t},{FieldNormalizeWaterfallHook:k,FieldListNormalizeWaterfallHook:N}=p();function I(o,i={column:9999}){let r=null;const s=N.call(t(o),i).reduce(((e,o,s)=>{var p;const c=null==(p=(o=k.call(o,i)).validate)?void 0:p.obj_type;return c&&n&&n.collect(c,t(o)),"LINEBAR"===o.html_type?(e[a(o)]=l(O(o),s),r=e[a(o)].properties={}):r?r[a(o)]=l(E(o),s):(r=null,e[a(o)]=l(E(o),s)),e}),{});return i.linebarAutoHidden&&Object.values(s).forEach((e=>{"LINEBAR"===e["x-component"]&&b(e)})),c({properties:s,"x-root":!0},((e,o)=>{"INPUT_GROUP"===e["x-component"]&&b(e,!!o&&!o["x-root"])})),s;function l(e,o){return e["x-index"]=o,e["x-decorator-props"]={_index:o,...e["x-decorator-props"]},e}function a(o){if(o.suffixConfig||o.prefixConfig){const t=[...e(o.prefixConfig),o,...e(o.suffixConfig)].filter(Boolean);return d(t)}return o.val_key}}return{schemaAdaptor:I}}function b(e,o=!1){e["x-reactions"]?e["x-reactions"]=n(e["x-reactions"]):e["x-reactions"]=[];const t=Object.keys(e.properties||{}).map((t=>`${o?"*.":"."}${e.name}.${t}#selfDisplay`));e["x-reactions"].push({dependencies:t,fulfill:{state:{visible:"{{hasVisible($deps)}}"}}})}export{h as useFieldListAdaptor};
|