cnhis-design-vue 3.2.7-release.0 → 3.2.7-release.2
Sign up to get free protection for your applications and to get access to all the features.
- package/es/components/button-print/src/components/NewPrintComponent.vue2.js +1 -1
- package/es/components/classification/index.d.ts +60 -5
- package/es/components/classification/src/components/search-filter/index.vue.d.ts +60 -5
- package/es/components/classification/src/components/set-classification/index.vue.d.ts +60 -5
- package/es/components/classification/src/index.vue.d.ts +60 -5
- package/es/components/date-picker/index.d.ts +13 -0
- package/es/components/date-picker/src/DatePicker.vue.d.ts +13 -0
- package/es/components/date-picker/src/DatePicker.vue2.js +1 -1
- package/es/components/fabric-chart/src/constants/index.d.ts +3 -1
- package/es/components/fabric-chart/src/constants/index.js +1 -1
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +1 -1
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.d.ts +8 -3
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.d.ts +9 -6
- package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/newBirthProcess/useNewBirthProcess.js +1 -1
- package/es/components/fabric-chart/src/hooks/newBirthProcess/useNewBirthProcessChart.d.ts +0 -2
- package/es/components/fabric-chart/src/hooks/newBirthProcess/useNewBirthProcessChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.d.ts +8 -3
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useLeft.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.d.ts +8 -3
- package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/useScaleColumn.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/useScaleColumn.js +1 -1
- package/es/components/fabric-chart/src/interface.d.ts +11 -1
- package/es/components/field-set/src/FieldColor.vue.d.ts +26 -0
- package/es/components/field-set/src/components/condition.vue.d.ts +13 -0
- package/es/components/field-set/src/components/edit-dialog.vue.d.ts +26 -0
- package/es/components/field-set/src/components/edit-filter.vue.d.ts +13 -0
- 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-config/src/components/FormConfigEdit.vue2.js +1 -1
- package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
- package/es/components/form-render/src/hooks/useFormValidator.js +1 -1
- package/es/components/form-render/src/types/fieldItem.d.ts +2 -1
- package/es/components/form-render/src/types/index.d.ts +1 -1
- package/es/components/form-render/src/utils/business.js +1 -1
- package/es/components/form-render/src/utils/schema.d.ts +1 -1
- package/es/components/form-render/src/utils/schema.js +1 -1
- package/es/components/iho-chat/index.d.ts +204 -69
- package/es/components/iho-chat/src/Index.vue.d.ts +204 -69
- package/es/components/iho-chat/src/Index.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatAdd.vue.d.ts +34 -13
- package/es/components/iho-chat/src/components/ChatAdd.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatFooter.vue.d.ts +38 -13
- package/es/components/iho-chat/src/components/ChatFooter.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatHeader.vue.d.ts +48 -14
- package/es/components/iho-chat/src/components/ChatHeader.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatMain.vue.d.ts +20 -3
- package/es/components/iho-chat/src/components/ChatMain.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatRecord.vue.d.ts +13 -0
- package/es/components/iho-chat/src/components/ChatRecord.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatSearch.vue.d.ts +3 -10
- package/es/components/iho-chat/src/components/ChatSearch.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ContextMenu.d.ts +15 -2
- package/es/components/iho-chat/src/components/ContextMenu.js +1 -1
- package/es/components/iho-chat/src/components/MultipleVideo.vue.d.ts +47 -22
- package/es/components/iho-chat/src/components/MultipleVideo.vue2.js +1 -1
- package/es/components/iho-chat/src/hooks/useScrollLoading.d.ts +1 -1
- package/es/components/iho-chat/src/hooks/useScrollLoading.js +1 -1
- package/es/components/iho-chat/src/hooks/useSearchUserList.d.ts +11 -0
- package/es/components/iho-chat/src/hooks/useSearchUserList.js +1 -0
- package/es/components/iho-chat/src/types/index.d.ts +0 -1
- package/es/components/iho-chat/style/index.css +1 -1
- package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue.d.ts +13 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +13 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.d.ts +20 -2
- package/es/components/index.css +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/ValueCfg.vue.d.ts +13 -0
- package/es/components/table-filter/src/components/bi-filter/components/Date.vue.d.ts +13 -0
- package/es/components/table-filter/src/components/bi-filter/components/index.d.ts +13 -0
- package/es/components/table-filter/src/components/bi-filter/index.vue.d.ts +13 -0
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +47 -5
- package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +13 -0
- package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +13 -0
- package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue.d.ts +37 -19
- package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue2.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +47 -5
- package/es/components/table-filter/src/components/classify-filter/hooks/useFilterConditions.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +47 -5
- package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +13 -0
- package/es/components/table-filter/src/components/render-widget/components/DateOut.vue.d.ts +13 -0
- package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +13 -0
- package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.d.ts +13 -0
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue.d.ts +33 -18
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue2.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue.d.ts +13 -0
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue2.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/index.d.ts +69 -4
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +69 -4
- package/es/components/table-filter/src/tool/transformData.js +1 -1
- package/es/components/table-filter/src/types/index.d.ts +1 -0
- package/es/components/time-picker/index.d.ts +20 -2
- package/es/components/time-picker/src/TimePicker.vue.d.ts +21 -2
- package/es/components/time-picker/src/TimePicker.vue2.js +1 -1
- package/es/shared/package.json.js +1 -1
- package/es/shared/utils/business.js +1 -1
- package/package.json +2 -2
@@ -219,7 +219,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
219
219
|
wrapperStyle?: Record<string, string> | undefined;
|
220
220
|
childFieldStrategy?: "checked" | "all" | undefined;
|
221
221
|
childWidthMode?: "inner" | "outer" | undefined;
|
222
|
-
validator?: ((value: unknown, fieldItem: import("..").FieldItem) => string | void) | undefined;
|
222
|
+
validator?: ((value: unknown, fieldItem: import("..").FieldItem, field: import("@formily/core").Field<any, any, any, any>) => string | void) | undefined;
|
223
223
|
reactions?: {
|
224
224
|
[x: string]: any;
|
225
225
|
dependencies?: string[] | undefined;
|
@@ -222,7 +222,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
222
222
|
wrapperStyle?: Record<string, string> | undefined;
|
223
223
|
childFieldStrategy?: "checked" | "all" | undefined;
|
224
224
|
childWidthMode?: "inner" | "outer" | undefined;
|
225
|
-
validator?: ((value: unknown, fieldItem: FieldItem) => string | void) | undefined;
|
225
|
+
validator?: ((value: unknown, fieldItem: FieldItem, field: import("@formily/core").Field<any, any, any, any>) => string | void) | undefined;
|
226
226
|
reactions?: {
|
227
227
|
[x: string]: any;
|
228
228
|
dependencies?: string[] | undefined;
|
@@ -84,6 +84,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
84
84
|
allowedInvalidValue: {
|
85
85
|
type: StringConstructor;
|
86
86
|
};
|
87
|
+
to: {
|
88
|
+
type: import("vue").PropType<string | false | HTMLElement>;
|
89
|
+
default: string;
|
90
|
+
};
|
87
91
|
}, {
|
88
92
|
attrs: {
|
89
93
|
[x: string]: unknown;
|
@@ -104,6 +108,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
104
108
|
allowedInvalidValue: {
|
105
109
|
type: StringConstructor;
|
106
110
|
};
|
111
|
+
to: {
|
112
|
+
type: import("vue").PropType<string | false | HTMLElement>;
|
113
|
+
default: string;
|
114
|
+
};
|
107
115
|
}>> & {
|
108
116
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
109
117
|
}>>;
|
@@ -140,10 +148,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
140
148
|
allowedInvalidValue: {
|
141
149
|
type: StringConstructor;
|
142
150
|
};
|
151
|
+
to: {
|
152
|
+
type: import("vue").PropType<string | false | HTMLElement>;
|
153
|
+
default: string;
|
154
|
+
};
|
143
155
|
}>> & {
|
144
156
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
145
157
|
}, {
|
146
158
|
updateUnchangedValue: boolean;
|
159
|
+
to: string | false | HTMLElement;
|
147
160
|
}>>;
|
148
161
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
149
162
|
componentCfg: {
|
@@ -47,6 +47,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
47
47
|
allowedInvalidValue: {
|
48
48
|
type: StringConstructor;
|
49
49
|
};
|
50
|
+
to: {
|
51
|
+
type: import("vue").PropType<string | false | HTMLElement>;
|
52
|
+
default: string;
|
53
|
+
};
|
50
54
|
}, {
|
51
55
|
attrs: {
|
52
56
|
[x: string]: unknown;
|
@@ -67,6 +71,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
67
71
|
allowedInvalidValue: {
|
68
72
|
type: StringConstructor;
|
69
73
|
};
|
74
|
+
to: {
|
75
|
+
type: import("vue").PropType<string | false | HTMLElement>;
|
76
|
+
default: string;
|
77
|
+
};
|
70
78
|
}>> & {
|
71
79
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
72
80
|
}>>;
|
@@ -103,10 +111,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
103
111
|
allowedInvalidValue: {
|
104
112
|
type: StringConstructor;
|
105
113
|
};
|
114
|
+
to: {
|
115
|
+
type: import("vue").PropType<string | false | HTMLElement>;
|
116
|
+
default: string;
|
117
|
+
};
|
106
118
|
}>> & {
|
107
119
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
108
120
|
}, {
|
109
121
|
updateUnchangedValue: boolean;
|
122
|
+
to: string | false | HTMLElement;
|
110
123
|
}>>;
|
111
124
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
112
125
|
componentCfg: {
|
@@ -47,6 +47,10 @@ declare const Date: import("vue").DefineComponent<{
|
|
47
47
|
allowedInvalidValue: {
|
48
48
|
type: StringConstructor;
|
49
49
|
};
|
50
|
+
to: {
|
51
|
+
type: import("vue").PropType<string | false | HTMLElement>;
|
52
|
+
default: string;
|
53
|
+
};
|
50
54
|
}, {
|
51
55
|
attrs: {
|
52
56
|
[x: string]: unknown;
|
@@ -67,6 +71,10 @@ declare const Date: import("vue").DefineComponent<{
|
|
67
71
|
allowedInvalidValue: {
|
68
72
|
type: StringConstructor;
|
69
73
|
};
|
74
|
+
to: {
|
75
|
+
type: import("vue").PropType<string | false | HTMLElement>;
|
76
|
+
default: string;
|
77
|
+
};
|
70
78
|
}>> & {
|
71
79
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
72
80
|
}>>;
|
@@ -103,10 +111,15 @@ declare const Date: import("vue").DefineComponent<{
|
|
103
111
|
allowedInvalidValue: {
|
104
112
|
type: StringConstructor;
|
105
113
|
};
|
114
|
+
to: {
|
115
|
+
type: import("vue").PropType<string | false | HTMLElement>;
|
116
|
+
default: string;
|
117
|
+
};
|
106
118
|
}>> & {
|
107
119
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
108
120
|
}, {
|
109
121
|
updateUnchangedValue: boolean;
|
122
|
+
to: string | false | HTMLElement;
|
110
123
|
}>>;
|
111
124
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
112
125
|
componentCfg: {
|
@@ -202,6 +202,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
202
202
|
allowedInvalidValue: {
|
203
203
|
type: StringConstructor;
|
204
204
|
};
|
205
|
+
to: {
|
206
|
+
type: PropType<string | false | HTMLElement>;
|
207
|
+
default: string;
|
208
|
+
};
|
205
209
|
}, {
|
206
210
|
attrs: {
|
207
211
|
[x: string]: unknown;
|
@@ -222,6 +226,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
222
226
|
allowedInvalidValue: {
|
223
227
|
type: StringConstructor;
|
224
228
|
};
|
229
|
+
to: {
|
230
|
+
type: PropType<string | false | HTMLElement>;
|
231
|
+
default: string;
|
232
|
+
};
|
225
233
|
}>> & {
|
226
234
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
227
235
|
}>>;
|
@@ -258,10 +266,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
258
266
|
allowedInvalidValue: {
|
259
267
|
type: StringConstructor;
|
260
268
|
};
|
269
|
+
to: {
|
270
|
+
type: PropType<string | false | HTMLElement>;
|
271
|
+
default: string;
|
272
|
+
};
|
261
273
|
}>> & {
|
262
274
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
263
275
|
}, {
|
264
276
|
updateUnchangedValue: boolean;
|
277
|
+
to: string | false | HTMLElement;
|
265
278
|
}>>;
|
266
279
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
267
280
|
componentCfg: {
|
@@ -111,6 +111,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
111
111
|
allowedInvalidValue: {
|
112
112
|
type: StringConstructor;
|
113
113
|
};
|
114
|
+
to: {
|
115
|
+
type: import("vue").PropType<string | false | HTMLElement>;
|
116
|
+
default: string;
|
117
|
+
};
|
114
118
|
}, {
|
115
119
|
attrs: {
|
116
120
|
[x: string]: unknown;
|
@@ -131,6 +135,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
131
135
|
allowedInvalidValue: {
|
132
136
|
type: StringConstructor;
|
133
137
|
};
|
138
|
+
to: {
|
139
|
+
type: import("vue").PropType<string | false | HTMLElement>;
|
140
|
+
default: string;
|
141
|
+
};
|
134
142
|
}>> & {
|
135
143
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
136
144
|
}>>;
|
@@ -167,10 +175,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
167
175
|
allowedInvalidValue: {
|
168
176
|
type: StringConstructor;
|
169
177
|
};
|
178
|
+
to: {
|
179
|
+
type: import("vue").PropType<string | false | HTMLElement>;
|
180
|
+
default: string;
|
181
|
+
};
|
170
182
|
}>> & {
|
171
183
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
172
184
|
}, {
|
173
185
|
updateUnchangedValue: boolean;
|
186
|
+
to: string | false | HTMLElement;
|
174
187
|
}>>;
|
175
188
|
NSelect: any;
|
176
189
|
WidgetValEnums: {
|
@@ -383,7 +396,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
383
396
|
default: null;
|
384
397
|
};
|
385
398
|
modelValue: {
|
386
|
-
type: (
|
399
|
+
type: import("vue").PropType<import("../../../../../shared/types").AnyObject[]>;
|
387
400
|
default: null;
|
388
401
|
};
|
389
402
|
}, {
|
@@ -394,7 +407,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
394
407
|
default: null;
|
395
408
|
};
|
396
409
|
modelValue: {
|
397
|
-
type: (
|
410
|
+
type: import("vue").PropType<import("../../../../../shared/types").AnyObject[]>;
|
398
411
|
default: null;
|
399
412
|
};
|
400
413
|
}>> & {
|
@@ -402,6 +415,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
402
415
|
}>>;
|
403
416
|
getDynamicSelectData: (params: any, filterApiConfig: any) => Promise<any>;
|
404
417
|
emit: (event: "update:modelValue", ...args: any[]) => void;
|
418
|
+
selectDynamicRef: any;
|
405
419
|
isLoading: import("vue").Ref<boolean>;
|
406
420
|
filterApiConfig: import("../../../../../shared/types").AnyObject;
|
407
421
|
classifyFilterList: import("vue").Ref<import("../../../../../shared/types").AnyObject[]>;
|
@@ -417,7 +431,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
417
431
|
isMultiple: import("vue").ComputedRef<boolean>;
|
418
432
|
dynamicOptionInfos: import("vue").ComputedRef<any>;
|
419
433
|
isLastPage: import("vue").ComputedRef<boolean>;
|
420
|
-
|
434
|
+
originList: import("vue").ComputedRef<any[]>;
|
435
|
+
valueCp: import("vue").ComputedRef<string | any[]>;
|
421
436
|
isInitRequest: import("vue").ComputedRef<boolean>;
|
422
437
|
setOptionActive: (selectIds: string[]) => void;
|
423
438
|
handleUpdateSelect: (value: string[] | null) => void;
|
@@ -433,8 +448,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
433
448
|
[key: string]: any;
|
434
449
|
}>;
|
435
450
|
init: () => void;
|
451
|
+
saveDynamicBaseList: (selectValue: any[] | null) => void;
|
436
452
|
NSelect: any;
|
437
453
|
SelectDynamicOption: import("vue").DefineComponent<{
|
454
|
+
oldValue: {
|
455
|
+
type: import("vue").PropType<import("../../../../../shared/types").AnyObject[]>;
|
456
|
+
default: () => never[];
|
457
|
+
};
|
438
458
|
dynamicOptionInfo: {
|
439
459
|
type: import("vue").PropType<import("../../../../../shared/types").AnyObject>;
|
440
460
|
default: () => {};
|
@@ -470,6 +490,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
470
490
|
}, {
|
471
491
|
selectMinWidth: number;
|
472
492
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
493
|
+
oldValue: {
|
494
|
+
type: import("vue").PropType<import("../../../../../shared/types").AnyObject[]>;
|
495
|
+
default: () => never[];
|
496
|
+
};
|
473
497
|
dynamicOptionInfo: {
|
474
498
|
type: import("vue").PropType<import("../../../../../shared/types").AnyObject>;
|
475
499
|
default: () => {};
|
@@ -558,6 +582,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
558
582
|
ArrowBack: 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<{}>>, {}>;
|
559
583
|
ArrowForward: 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<{}>>, {}>;
|
560
584
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("updateSelect" | "updatePage")[], "updateSelect" | "updatePage", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
585
|
+
oldValue: {
|
586
|
+
type: import("vue").PropType<import("../../../../../shared/types").AnyObject[]>;
|
587
|
+
default: () => never[];
|
588
|
+
};
|
561
589
|
dynamicOptionInfo: {
|
562
590
|
type: import("vue").PropType<import("../../../../../shared/types").AnyObject>;
|
563
591
|
default: () => {};
|
@@ -596,6 +624,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
596
624
|
}, {
|
597
625
|
isMultiple: boolean;
|
598
626
|
loading: boolean;
|
627
|
+
oldValue: import("../../../../../shared/types").AnyObject[];
|
599
628
|
dynamicOptionInfo: import("../../../../../shared/types").AnyObject;
|
600
629
|
fieldTitleList: import("../../../../../shared/types").AnyObject[];
|
601
630
|
optionList: import("../../../../../shared/types").AnyObject[];
|
@@ -609,13 +638,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
609
638
|
default: null;
|
610
639
|
};
|
611
640
|
modelValue: {
|
612
|
-
type: (
|
641
|
+
type: import("vue").PropType<import("../../../../../shared/types").AnyObject[]>;
|
613
642
|
default: null;
|
614
643
|
};
|
615
644
|
}>> & {
|
616
645
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
617
646
|
}, {
|
618
|
-
modelValue:
|
647
|
+
modelValue: import("../../../../../shared/types").AnyObject[];
|
619
648
|
paramCfg: Record<string, any>;
|
620
649
|
}>;
|
621
650
|
InputNumberGroup: import("vue").DefineComponent<{
|
@@ -744,6 +773,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
744
773
|
allowedInvalidValue: {
|
745
774
|
type: StringConstructor;
|
746
775
|
};
|
776
|
+
to: {
|
777
|
+
type: import("vue").PropType<string | false | HTMLElement>;
|
778
|
+
default: string;
|
779
|
+
};
|
747
780
|
}, {
|
748
781
|
attrs: {
|
749
782
|
[x: string]: unknown;
|
@@ -764,6 +797,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
764
797
|
allowedInvalidValue: {
|
765
798
|
type: StringConstructor;
|
766
799
|
};
|
800
|
+
to: {
|
801
|
+
type: import("vue").PropType<string | false | HTMLElement>;
|
802
|
+
default: string;
|
803
|
+
};
|
767
804
|
}>> & {
|
768
805
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
769
806
|
}>>;
|
@@ -800,10 +837,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
800
837
|
allowedInvalidValue: {
|
801
838
|
type: StringConstructor;
|
802
839
|
};
|
840
|
+
to: {
|
841
|
+
type: import("vue").PropType<string | false | HTMLElement>;
|
842
|
+
default: string;
|
843
|
+
};
|
803
844
|
}>> & {
|
804
845
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
805
846
|
}, {
|
806
847
|
updateUnchangedValue: boolean;
|
848
|
+
to: string | false | HTMLElement;
|
807
849
|
}>>;
|
808
850
|
WidgetValEnums: {
|
809
851
|
CUSTOM: string;
|
@@ -68,6 +68,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
68
68
|
allowedInvalidValue: {
|
69
69
|
type: StringConstructor;
|
70
70
|
};
|
71
|
+
to: {
|
72
|
+
type: import("vue").PropType<string | false | HTMLElement>;
|
73
|
+
default: string;
|
74
|
+
};
|
71
75
|
}, {
|
72
76
|
attrs: {
|
73
77
|
[x: string]: unknown;
|
@@ -88,6 +92,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
88
92
|
allowedInvalidValue: {
|
89
93
|
type: StringConstructor;
|
90
94
|
};
|
95
|
+
to: {
|
96
|
+
type: import("vue").PropType<string | false | HTMLElement>;
|
97
|
+
default: string;
|
98
|
+
};
|
91
99
|
}>> & {
|
92
100
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
93
101
|
}>>;
|
@@ -124,10 +132,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
124
132
|
allowedInvalidValue: {
|
125
133
|
type: StringConstructor;
|
126
134
|
};
|
135
|
+
to: {
|
136
|
+
type: import("vue").PropType<string | false | HTMLElement>;
|
137
|
+
default: string;
|
138
|
+
};
|
127
139
|
}>> & {
|
128
140
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
129
141
|
}, {
|
130
142
|
updateUnchangedValue: boolean;
|
143
|
+
to: string | false | HTMLElement;
|
131
144
|
}>>;
|
132
145
|
NSelect: any;
|
133
146
|
WidgetValEnums: {
|
package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts
CHANGED
@@ -82,6 +82,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
82
82
|
allowedInvalidValue: {
|
83
83
|
type: StringConstructor;
|
84
84
|
};
|
85
|
+
to: {
|
86
|
+
type: PropType<string | false | HTMLElement>;
|
87
|
+
default: string;
|
88
|
+
};
|
85
89
|
}, {
|
86
90
|
attrs: {
|
87
91
|
[x: string]: unknown;
|
@@ -102,6 +106,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
102
106
|
allowedInvalidValue: {
|
103
107
|
type: StringConstructor;
|
104
108
|
};
|
109
|
+
to: {
|
110
|
+
type: PropType<string | false | HTMLElement>;
|
111
|
+
default: string;
|
112
|
+
};
|
105
113
|
}>> & {
|
106
114
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
107
115
|
}>>;
|
@@ -138,10 +146,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
138
146
|
allowedInvalidValue: {
|
139
147
|
type: StringConstructor;
|
140
148
|
};
|
149
|
+
to: {
|
150
|
+
type: PropType<string | false | HTMLElement>;
|
151
|
+
default: string;
|
152
|
+
};
|
141
153
|
}>> & {
|
142
154
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
143
155
|
}, {
|
144
156
|
updateUnchangedValue: boolean;
|
157
|
+
to: string | false | HTMLElement;
|
145
158
|
}>>;
|
146
159
|
WidgetValEnums: {
|
147
160
|
CUSTOM: string;
|
package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue.d.ts
CHANGED
@@ -1,10 +1,12 @@
|
|
1
|
+
import { PropType } from 'vue';
|
2
|
+
import { AnyObject } from '../../../../../../shared/types';
|
1
3
|
declare const _default: import("vue").DefineComponent<{
|
2
4
|
paramCfg: {
|
3
5
|
type: ObjectConstructor;
|
4
6
|
default: null;
|
5
7
|
};
|
6
8
|
modelValue: {
|
7
|
-
type:
|
9
|
+
type: PropType<AnyObject[]>;
|
8
10
|
default: null;
|
9
11
|
};
|
10
12
|
}, {
|
@@ -15,7 +17,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
15
17
|
default: null;
|
16
18
|
};
|
17
19
|
modelValue: {
|
18
|
-
type:
|
20
|
+
type: PropType<AnyObject[]>;
|
19
21
|
default: null;
|
20
22
|
};
|
21
23
|
}>> & {
|
@@ -23,9 +25,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
23
25
|
}>>;
|
24
26
|
getDynamicSelectData: (params: any, filterApiConfig: any) => Promise<any>;
|
25
27
|
emit: (event: "update:modelValue", ...args: any[]) => void;
|
28
|
+
selectDynamicRef: any;
|
26
29
|
isLoading: import("vue").Ref<boolean>;
|
27
|
-
filterApiConfig:
|
28
|
-
classifyFilterList: import("vue").Ref<
|
30
|
+
filterApiConfig: AnyObject;
|
31
|
+
classifyFilterList: import("vue").Ref<AnyObject[]>;
|
29
32
|
totalPage: import("vue").Ref<number>;
|
30
33
|
menuProps: {
|
31
34
|
class: string;
|
@@ -38,7 +41,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
38
41
|
isMultiple: import("vue").ComputedRef<boolean>;
|
39
42
|
dynamicOptionInfos: import("vue").ComputedRef<any>;
|
40
43
|
isLastPage: import("vue").ComputedRef<boolean>;
|
41
|
-
|
44
|
+
originList: import("vue").ComputedRef<any[]>;
|
45
|
+
valueCp: import("vue").ComputedRef<string | any[]>;
|
42
46
|
isInitRequest: import("vue").ComputedRef<boolean>;
|
43
47
|
setOptionActive: (selectIds: string[]) => void;
|
44
48
|
handleUpdateSelect: (value: string[] | null) => void;
|
@@ -54,18 +58,23 @@ declare const _default: import("vue").DefineComponent<{
|
|
54
58
|
[key: string]: any;
|
55
59
|
}>;
|
56
60
|
init: () => void;
|
61
|
+
saveDynamicBaseList: (selectValue: any[] | null) => void;
|
57
62
|
NSelect: any;
|
58
63
|
SelectDynamicOption: import("vue").DefineComponent<{
|
64
|
+
oldValue: {
|
65
|
+
type: PropType<AnyObject[]>;
|
66
|
+
default: () => never[];
|
67
|
+
};
|
59
68
|
dynamicOptionInfo: {
|
60
|
-
type:
|
69
|
+
type: PropType<AnyObject>;
|
61
70
|
default: () => {};
|
62
71
|
};
|
63
72
|
fieldTitleList: {
|
64
|
-
type:
|
73
|
+
type: PropType<AnyObject[]>;
|
65
74
|
default: () => never[];
|
66
75
|
};
|
67
76
|
optionList: {
|
68
|
-
type:
|
77
|
+
type: PropType<AnyObject[]>;
|
69
78
|
default: () => never[];
|
70
79
|
};
|
71
80
|
isMultiple: {
|
@@ -91,16 +100,20 @@ declare const _default: import("vue").DefineComponent<{
|
|
91
100
|
}, {
|
92
101
|
selectMinWidth: number;
|
93
102
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
103
|
+
oldValue: {
|
104
|
+
type: PropType<AnyObject[]>;
|
105
|
+
default: () => never[];
|
106
|
+
};
|
94
107
|
dynamicOptionInfo: {
|
95
|
-
type:
|
108
|
+
type: PropType<AnyObject>;
|
96
109
|
default: () => {};
|
97
110
|
};
|
98
111
|
fieldTitleList: {
|
99
|
-
type:
|
112
|
+
type: PropType<AnyObject[]>;
|
100
113
|
default: () => never[];
|
101
114
|
};
|
102
115
|
optionList: {
|
103
|
-
type:
|
116
|
+
type: PropType<AnyObject[]>;
|
104
117
|
default: () => never[];
|
105
118
|
};
|
106
119
|
isMultiple: {
|
@@ -179,16 +192,20 @@ declare const _default: import("vue").DefineComponent<{
|
|
179
192
|
ArrowBack: 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<{}>>, {}>;
|
180
193
|
ArrowForward: 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<{}>>, {}>;
|
181
194
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("updateSelect" | "updatePage")[], "updateSelect" | "updatePage", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
195
|
+
oldValue: {
|
196
|
+
type: PropType<AnyObject[]>;
|
197
|
+
default: () => never[];
|
198
|
+
};
|
182
199
|
dynamicOptionInfo: {
|
183
|
-
type:
|
200
|
+
type: PropType<AnyObject>;
|
184
201
|
default: () => {};
|
185
202
|
};
|
186
203
|
fieldTitleList: {
|
187
|
-
type:
|
204
|
+
type: PropType<AnyObject[]>;
|
188
205
|
default: () => never[];
|
189
206
|
};
|
190
207
|
optionList: {
|
191
|
-
type:
|
208
|
+
type: PropType<AnyObject[]>;
|
192
209
|
default: () => never[];
|
193
210
|
};
|
194
211
|
isMultiple: {
|
@@ -217,9 +234,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
217
234
|
}, {
|
218
235
|
isMultiple: boolean;
|
219
236
|
loading: boolean;
|
220
|
-
|
221
|
-
|
222
|
-
|
237
|
+
oldValue: AnyObject[];
|
238
|
+
dynamicOptionInfo: AnyObject;
|
239
|
+
fieldTitleList: AnyObject[];
|
240
|
+
optionList: AnyObject[];
|
223
241
|
curPage: number;
|
224
242
|
isLastPage: boolean;
|
225
243
|
isShowWhole: boolean;
|
@@ -230,13 +248,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
230
248
|
default: null;
|
231
249
|
};
|
232
250
|
modelValue: {
|
233
|
-
type:
|
251
|
+
type: PropType<AnyObject[]>;
|
234
252
|
default: null;
|
235
253
|
};
|
236
254
|
}>> & {
|
237
255
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
238
256
|
}, {
|
239
|
-
modelValue:
|
257
|
+
modelValue: AnyObject[];
|
240
258
|
paramCfg: Record<string, any>;
|
241
259
|
}>;
|
242
260
|
export default _default;
|
package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue2.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
import{defineComponent as e,ref as a,inject as l,computed as t,openBlock as
|
1
|
+
import{defineComponent as e,ref as a,inject as l,computed as t,openBlock as u,createBlock as n,unref as o,isRef as i,withModifiers as r,withCtx as s,createVNode as v,h as c}from"vue";import{useMessage as d,NSelect as p,NTag as f}from"naive-ui";import{WidgetOptionEnums as m,WidgetValEnums as y}from"../../../types/enums.js";import{useDebounceFn as g}from"@vueuse/core";import h from"../../../hooks/useAsyncData.js";import{InjectionFilterApiConfig as V,InjectionClassifyFilterList as w}from"../../../constants/index.js";import{judgmentVariable as k}from"../../render-widget/helpers/setDefaultValue.js";import b from"../../render-widget/components/SelectDynamicOption/index.vue.js";import{uniqBy as L,isEqual as O}from"lodash-es";var C=e({__name:"SelectDynamic",props:{paramCfg:{type:Object,default:null},modelValue:{type:Array,default:null}},emits:["update:modelValue"],setup(e,{emit:C}){const S=e,A=d(),{getDynamicSelectData:j}=h(),P=a(null),D=a(!1),x=l(V),I=l(w),_=a(0),K={class:"select-dynamic-popover"},T=a(1),E=a(),U=a([]),M=a(),$=t((()=>{var e;return null==(e=S.paramCfg)?void 0:e.optionSetting})),B=t((()=>$.value===m.MULTIPLE)),F=t((()=>{const{dynamicOptionInfo:e={}}=S.paramCfg.optionInfo;return e})),J=t((()=>_.value>0&&T.value>=_.value)),N=t((()=>{let e=[];const a=I.value.find((e=>e.key===S.paramCfg.p_name));return a&&a.value&&(e=a.dynamicBaseList||[]),L([...e,...U.value],"value")})),H=t((()=>{var e;if(Array.isArray(S.modelValue)&&S.modelValue.length>0){const e=S.modelValue;if(W(e),!B.value&&1==e.length){const a=N.value.find((a=>a.value===e[0]));return JSON.stringify(a)}return N.value.filter((a=>e.includes(a.value)))}return W([]),null!=(e=S.modelValue)?e:null})),R=t((()=>{if(Object.keys(F.value).length>0){const{defaultParams:e=[]}=F.value;return!k(e)}return!0}));function W(e){U.value.forEach((a=>{a.actived=!1,Array.isArray(e)&&e.includes(a.value)&&(a.actived=!0)}))}function q(e){var a;const{defaultValue:l}=S.paramCfg._rawData;(null==(a=null==l?void 0:l.linkageFieldKeys)?void 0:a.length)>0&&l.linkageFieldKeys.forEach((e=>{const a=I.value.find((a=>a.key===e));a&&a.value&&(a.value=a.presetVal=null)})),O(S.modelValue,e)||(C("update:modelValue",e),ae(e))}async function z(e){var a;T.value=e,null==(a=null==P?void 0:P.value)||a.focus(),await G(M.value,T.value)}async function G(e,a){try{if(Object.keys(F.value).length>0){const{autograph:l,dataSourceId:t,dataSourceType:u,filterKeys:n,defaultParams:o=[],showKeys:i,valueKey:r}=F.value;let s={wordbookId:t,autograph:l,wordbookType:u,fieldKeys:n,page:a};n.length>0&&(s[n[0]]=e),D.value=!0;if(k(o)){const e=o.map((e=>e.value)).filter((e=>e.includes("${")));e.map((e=>e.match(/\$\{(.+?)\}/)[1])).forEach((e=>{const a=I.value.find((a=>a.key===e));a&&a.value&&a.value!==y.WHOLE&&(s[e]=a.value)}))}let v=await j(s,x);if(v){const{fieldList:e=[],rows:a=[],total:l=0}=v.map,t=a.map((e=>({...e,label:e[i[0]],value:e[r]})));return E.value=null!=e?e:[],U.value=null!=t?t:[],_.value=l,t}}}catch(e){A.error(`异步数据源下拉框数据请求失败:${e}`),console.log(e)}finally{D.value=!1}}const Q=g((async e=>{await async function(e){M.value=e.trim(),T.value=1,await G(M.value,T.value)}(e)}),300);async function X(){Object.keys(F.value).length>0&&x&&await G("",T.value)}async function Y(){C("update:modelValue",null),ae(null),await X()}function Z(e){M.value="",e&&(T.value=1,X())}function ee({option:e,handleClose:a}){if(B.value){const l=e.value;return c(f,{style:{padding:"0 8px"},closable:!0,onClose:e=>{if(e.stopPropagation(),a(),Array.isArray(S.modelValue)&&S.modelValue.length>0){const e=S.modelValue,a=e.indexOf(l.value);a>-1&&(e.splice(a,1),C("update:modelValue",e.length>0?e:null),ae(e.length>0?e:null))}}},{default:()=>c("div",l.label)})}const l=e.value?JSON.parse(e.value):{label:""};return c("div",l.label)}function ae(e){let a=[];Array.isArray(e)&&e.length>0&&(B.value||1!=e.length||(a=N.value.filter((a=>a.value===e[0]))),a=N.value.filter((a=>e.includes(a.value))));const l=I.value.find((e=>e.key===S.paramCfg.p_name));l&&l.value&&(l.dynamicBaseList=a)}return R.value&&X(),(e,a)=>(u(),n(o(p),{id:"select-dynamic-popover",ref_key:"selectDynamicRef",ref:P,style:{width:"200px"},value:o(H),"onUpdate:value":a[0]||(a[0]=e=>i(H)?H.value=e:null),remote:"",clearable:"",filterable:"",maxTagCount:"responsive",loading:D.value,multiple:o(B),"menu-props":K,"render-tag":ee,onSearch:o(Q),onClear:Y,"onUpdate:show":Z,onClick:a[1]||(a[1]=r((()=>{}),["stop"]))},{empty:s((()=>[v(b,{oldValue:S.modelValue,dynamicOptionInfo:o(F),fieldTitleList:E.value,optionList:U.value,isMultiple:o(B),curPage:T.value,isLastPage:o(J),onUpdateSelect:q,onUpdatePage:z},null,8,["oldValue","dynamicOptionInfo","fieldTitleList","optionList","isMultiple","curPage","isLastPage"])])),_:1},8,["value","loading","multiple","onSearch"]))}});export{C as default};
|