cnhis-design-vue 3.1.54 → 3.1.55-beta.1
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/es/components/body-select/src/hooks/renderCanvas.js +1 -1
- package/es/components/body-select/src/index.vue2.js +1 -1
- package/es/components/button-print/index.d.ts +13 -0
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +13 -0
- package/es/components/button-print/src/ButtonPrint.vue2.js +1 -1
- package/es/components/callback/src/components/render/popupMaps.d.ts +13 -6
- package/es/components/chat-sdk/index.d.ts +2 -0
- package/es/components/chat-sdk/index.js +1 -0
- package/es/components/chat-sdk/src/chatSDK.d.ts +24 -0
- package/es/components/chat-sdk/src/chatSDK.js +1 -0
- package/es/components/chat-sdk/src/components/recordingDialog.vue.d.ts +26 -0
- package/es/components/chat-sdk/src/components/recordingDialog.vue.js +1 -0
- package/es/components/chat-sdk/src/components/recordingDialog.vue2.js +1 -0
- package/es/components/chat-sdk/src/utils/recordingDialog.d.ts +8 -0
- package/es/components/chat-sdk/src/utils/recordingDialog.js +1 -0
- package/es/components/chat-sdk/style/index.css +1 -0
- package/es/components/classification/index.d.ts +486 -1
- package/es/components/classification/src/components/search-filter/index.vue.d.ts +473 -1
- package/es/components/classification/src/components/search-filter/index.vue2.js +1 -1
- package/es/components/classification/src/components/set-classification/index.vue.d.ts +473 -1
- package/es/components/classification/src/index.vue.d.ts +486 -1
- package/es/components/classification/src/index.vue2.js +1 -1
- package/es/components/classification/style/index.css +1 -1
- package/es/components/fabric-chart/index.d.ts +1 -0
- package/es/components/fabric-chart/src/FabricChart.vue.d.ts +1 -0
- package/es/components/fabric-chart/src/FabricChart.vue2.js +1 -1
- package/es/components/fabric-chart/src/constants/index.d.ts +1 -0
- 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/electrocardiogram/hooks/useDetailEvent.js +1 -1
- package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogram.js +1 -1
- package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.d.ts +5 -0
- package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useCenter.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useLeft.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/useCumputedPoint.d.ts +3 -3
- package/es/components/fabric-chart/src/hooks/useCumputedPoint.js +1 -1
- package/es/components/form-config/index.d.ts +78 -57
- package/es/components/form-config/src/FormConfig.vue.d.ts +78 -57
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +13 -6
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +31 -21
- package/es/components/form-config/src/components/FormConfigEventSetting.vue.d.ts +5 -5
- package/es/components/form-render/index.d.ts +13 -6
- package/es/components/form-render/index.js +1 -1
- package/es/components/form-render/src/FormRender.vue.d.ts +13 -6
- package/es/components/form-render/src/FormRender.vue2.js +1 -1
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +13 -6
- package/es/components/form-render/src/components/renderer/formItem.js +1 -1
- package/es/components/form-render/src/components/renderer/searchCascade.js +1 -1
- package/es/components/form-render/src/components/renderer/select.js +1 -1
- package/es/components/form-render/src/hooks/index.d.ts +20 -9
- package/es/components/form-render/src/hooks/index.js +1 -1
- package/es/components/form-render/src/hooks/useBusinessBinding.d.ts +1 -1
- package/es/components/form-render/src/hooks/useBusinessBinding.js +1 -1
- package/es/components/form-render/src/hooks/useFieldVisitor.js +1 -1
- package/es/components/form-render/src/hooks/useFormEvent.d.ts +14 -3
- package/es/components/form-render/src/hooks/useFormEvent.js +1 -1
- package/es/components/form-render/src/hooks/useFormItemDeps.d.ts +1 -1
- package/es/components/form-render/src/hooks/useFormItemDeps.js +1 -1
- package/es/components/form-render/src/hooks/useFormRenderOptions.d.ts +1 -0
- package/es/components/form-render/src/hooks/useFormRenderOptions.js +1 -1
- package/es/components/form-render/src/hooks/useOperationalForm.d.ts +3 -2
- package/es/components/form-render/src/hooks/useOperationalForm.js +1 -1
- package/es/components/form-render/src/hooks/useWordbookSetting.d.ts +13 -4
- package/es/components/form-render/src/hooks/useWordbookSetting.js +1 -1
- package/es/components/form-render/src/types/fieldItem.d.ts +1 -0
- package/es/components/form-render/src/types/index.d.ts +10 -5
- package/es/components/form-render/src/utils/index.d.ts +1 -0
- package/es/components/iho-table/src/plugins/bindEventSettingPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/colorAndIconPlugin.d.ts +1 -0
- package/es/components/iho-table/src/plugins/colorAndIconPlugin.js +1 -0
- package/es/components/iho-table/src/plugins/index.js +1 -1
- package/es/components/iho-table/src/plugins/operationalFormPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/levelSearchCascadePlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.d.ts +7 -3
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue2.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/defaultRendererPlugin.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/htmlRendererPlugin.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/labelRendererPlugin.js +1 -1
- package/es/components/iho-table/src/types/index.d.ts +2 -0
- package/es/components/iho-table/src/utils/index.d.ts +1 -1
- package/es/components/iho-table/src/utils/index.js +1 -1
- package/es/components/iho-table/style/index.css +1 -1
- package/es/components/index.css +1 -1
- package/es/components/index.d.ts +1 -0
- package/es/components/index.js +1 -1
- package/es/components/info-header/index.d.ts +26 -12
- package/es/components/info-header/src/InfoHeader.vue.d.ts +26 -12
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +13 -6
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +13 -6
- package/es/components/quick-search/style/index.css +1 -1
- package/es/components/shortcut-setter/index.d.ts +19 -11
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +19 -11
- package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue.d.ts +320 -0
- package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue.js +1 -0
- package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue2.js +1 -0
- package/es/components/table-filter/src/components/bi-filter/components/Date.vue.d.ts +127 -0
- package/es/components/table-filter/src/components/bi-filter/components/Date.vue.js +1 -0
- package/es/components/table-filter/src/components/bi-filter/components/Date.vue2.js +1 -0
- package/es/components/table-filter/src/components/bi-filter/components/InputFilter.vue.d.ts +41 -0
- package/es/components/table-filter/src/components/bi-filter/components/InputFilter.vue.js +1 -0
- package/es/components/table-filter/src/components/bi-filter/components/InputFilter.vue2.js +1 -0
- package/es/components/table-filter/src/components/bi-filter/components/InputNumber.vue.d.ts +28 -0
- package/es/components/table-filter/src/components/bi-filter/components/InputNumber.vue.js +1 -0
- package/es/components/table-filter/src/components/bi-filter/components/InputNumber.vue2.js +1 -0
- package/es/components/table-filter/src/components/bi-filter/components/SelectFilter.vue.d.ts +51 -0
- package/es/components/table-filter/src/components/bi-filter/components/SelectFilter.vue.js +1 -0
- package/es/components/table-filter/src/components/bi-filter/components/SelectFilter.vue2.js +1 -0
- package/es/components/table-filter/src/components/bi-filter/components/index.d.ts +244 -0
- package/es/components/table-filter/src/components/bi-filter/components/index.js +1 -0
- package/es/components/table-filter/src/components/bi-filter/helpers/options.d.ts +14 -0
- package/es/components/table-filter/src/components/bi-filter/helpers/options.js +1 -0
- package/es/components/table-filter/src/components/bi-filter/hooks/useBiConditions.d.ts +13 -0
- package/es/components/table-filter/src/components/bi-filter/hooks/useBiConditions.js +1 -0
- package/es/components/table-filter/src/components/bi-filter/index.vue.d.ts +474 -0
- package/es/components/table-filter/src/components/bi-filter/index.vue.js +1 -0
- package/es/components/table-filter/src/components/bi-filter/index.vue2.js +1 -0
- package/es/components/table-filter/src/constants/index.d.ts +1 -0
- package/es/components/table-filter/src/constants/index.js +1 -1
- package/es/shared/package.json.js +1 -1
- package/es/shared/utils/business.d.ts +1 -0
- package/es/shared/utils/business.js +1 -1
- package/es/shared/utils/index.js +1 -1
- package/package.json +3 -2
|
@@ -0,0 +1,474 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { IClassifyListType, ICategoryItemType } from '../../../../../../es/components/table-filter/src/types';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
|
+
actionList_prop: {
|
|
5
|
+
type: PropType<IClassifyListType>;
|
|
6
|
+
default: () => {};
|
|
7
|
+
};
|
|
8
|
+
conditionList: {
|
|
9
|
+
type: ArrayConstructor;
|
|
10
|
+
default: () => never[];
|
|
11
|
+
};
|
|
12
|
+
tableId: {
|
|
13
|
+
type: StringConstructor;
|
|
14
|
+
default: string;
|
|
15
|
+
};
|
|
16
|
+
searchFieldList: {
|
|
17
|
+
type: ArrayConstructor;
|
|
18
|
+
default: () => never[];
|
|
19
|
+
};
|
|
20
|
+
showItemName: {
|
|
21
|
+
type: BooleanConstructor;
|
|
22
|
+
default: boolean;
|
|
23
|
+
};
|
|
24
|
+
hideAddBtn: {
|
|
25
|
+
type: BooleanConstructor;
|
|
26
|
+
default: boolean;
|
|
27
|
+
};
|
|
28
|
+
}, {
|
|
29
|
+
$message: import("naive-ui").MessageApi;
|
|
30
|
+
menuProps: {
|
|
31
|
+
class: string;
|
|
32
|
+
};
|
|
33
|
+
dateCons: string[];
|
|
34
|
+
textCons: string[];
|
|
35
|
+
numberCons: string[];
|
|
36
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
37
|
+
actionList_prop: {
|
|
38
|
+
type: PropType<IClassifyListType>;
|
|
39
|
+
default: () => {};
|
|
40
|
+
};
|
|
41
|
+
conditionList: {
|
|
42
|
+
type: ArrayConstructor;
|
|
43
|
+
default: () => never[];
|
|
44
|
+
};
|
|
45
|
+
tableId: {
|
|
46
|
+
type: StringConstructor;
|
|
47
|
+
default: string;
|
|
48
|
+
};
|
|
49
|
+
searchFieldList: {
|
|
50
|
+
type: ArrayConstructor;
|
|
51
|
+
default: () => never[];
|
|
52
|
+
};
|
|
53
|
+
showItemName: {
|
|
54
|
+
type: BooleanConstructor;
|
|
55
|
+
default: boolean;
|
|
56
|
+
};
|
|
57
|
+
hideAddBtn: {
|
|
58
|
+
type: BooleanConstructor;
|
|
59
|
+
default: boolean;
|
|
60
|
+
};
|
|
61
|
+
}>> & {
|
|
62
|
+
onCancelSaveAdd?: ((...args: any[]) => any) | undefined;
|
|
63
|
+
onSaveAdd?: ((...args: any[]) => any) | undefined;
|
|
64
|
+
}>>;
|
|
65
|
+
emit: (event: "cancelSaveAdd" | "saveAdd", ...args: any[]) => void;
|
|
66
|
+
$attrs: {
|
|
67
|
+
[x: string]: unknown;
|
|
68
|
+
};
|
|
69
|
+
FormState: any;
|
|
70
|
+
loading: import("vue").Ref<boolean>;
|
|
71
|
+
parentInputRef: import("vue").Ref<any>;
|
|
72
|
+
parentInputAddRef: import("vue").Ref<any>;
|
|
73
|
+
sqlExpression: any;
|
|
74
|
+
DisplayCategoryState: {
|
|
75
|
+
addDisplayCategory: string;
|
|
76
|
+
displayCategories: {
|
|
77
|
+
disabled: boolean;
|
|
78
|
+
value: string;
|
|
79
|
+
}[];
|
|
80
|
+
displayCategoryOriginLen: number;
|
|
81
|
+
showAdd: boolean;
|
|
82
|
+
};
|
|
83
|
+
isEnableAddDisplayCategory: import("vue").ComputedRef<boolean>;
|
|
84
|
+
editDisplayCategory: (item: ICategoryItemType, cb?: any) => void;
|
|
85
|
+
handleDisplayCategorySelect: (item: ICategoryItemType) => void;
|
|
86
|
+
handleDisplayCategoryRemove: (index: number, item: ICategoryItemType) => void;
|
|
87
|
+
handleDisplayCategoryAdd: (cb?: any) => void;
|
|
88
|
+
handlerBlur: () => void;
|
|
89
|
+
initDisplayCategories: (rawDataDisplayCategories: any, displayCategory: any) => void;
|
|
90
|
+
FilterConditionsState: any;
|
|
91
|
+
paramOptions: import("vue").ComputedRef<any>;
|
|
92
|
+
addFilterCondition: () => void;
|
|
93
|
+
delFilterCondition: (index: number) => void;
|
|
94
|
+
updateKey: (index: number, val: any) => void;
|
|
95
|
+
updateCondition: (index: number, val: any) => void;
|
|
96
|
+
getParamCfg: (key: string) => any;
|
|
97
|
+
initFilterConditions: (tableId: string, rawConditions: import("../../../../../../es/components/table-filter/src/types").ISearchConfigType[]) => Promise<void>;
|
|
98
|
+
getRawFilterConditions: () => any;
|
|
99
|
+
isShowValueCfg: (con: string) => boolean;
|
|
100
|
+
handleEditDisplayCategory: (item: ICategoryItemType) => void;
|
|
101
|
+
handleDisplayCategoryAddState: () => void;
|
|
102
|
+
findConditionByDisplayCategory: (sid: string) => unknown;
|
|
103
|
+
handleDisplayCategorySelectProxy: (item: ICategoryItemType) => void;
|
|
104
|
+
clearFormData: () => void;
|
|
105
|
+
handleInitConditions: () => Promise<void>;
|
|
106
|
+
validate: () => Promise<unknown>;
|
|
107
|
+
saveAdd: () => void;
|
|
108
|
+
cancelSaveAdd: () => void;
|
|
109
|
+
checkActionList: () => any;
|
|
110
|
+
NSpin: any;
|
|
111
|
+
NIcon: any;
|
|
112
|
+
NInput: any;
|
|
113
|
+
NButton: any;
|
|
114
|
+
NTooltip: any;
|
|
115
|
+
NSelect: any;
|
|
116
|
+
AddOutline: 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<{}>>, {}>;
|
|
117
|
+
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<{}>>, {}>;
|
|
118
|
+
CloseOutline: 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<{}>>, {}>;
|
|
119
|
+
ValueCfg: import("vue").DefineComponent<{
|
|
120
|
+
paramCfg: {
|
|
121
|
+
type: ObjectConstructor;
|
|
122
|
+
default: null;
|
|
123
|
+
};
|
|
124
|
+
modelValue: {
|
|
125
|
+
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
126
|
+
default: null;
|
|
127
|
+
};
|
|
128
|
+
modelValues: {
|
|
129
|
+
type: ArrayConstructor;
|
|
130
|
+
default: () => never[];
|
|
131
|
+
};
|
|
132
|
+
}, {
|
|
133
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
134
|
+
paramCfg: {
|
|
135
|
+
type: ObjectConstructor;
|
|
136
|
+
default: null;
|
|
137
|
+
};
|
|
138
|
+
modelValue: {
|
|
139
|
+
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
140
|
+
default: null;
|
|
141
|
+
};
|
|
142
|
+
modelValues: {
|
|
143
|
+
type: ArrayConstructor;
|
|
144
|
+
default: () => never[];
|
|
145
|
+
};
|
|
146
|
+
}>> & {
|
|
147
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
148
|
+
"onUpdate:modelValues"?: ((...args: any[]) => any) | undefined;
|
|
149
|
+
}>>;
|
|
150
|
+
emit: (event: "update:modelValue" | "update:modelValues", ...args: any[]) => void;
|
|
151
|
+
valueCp: import("vue").WritableComputedRef<any>;
|
|
152
|
+
valuesCp: import("vue").WritableComputedRef<any>;
|
|
153
|
+
isSelectMode: import("vue").ComputedRef<boolean>;
|
|
154
|
+
isSelectMultiple: import("vue").ComputedRef<boolean>;
|
|
155
|
+
biType: import("vue").ComputedRef<any>;
|
|
156
|
+
Date: import("vue").DefineComponent<{
|
|
157
|
+
componentCfg: {
|
|
158
|
+
type: ObjectConstructor;
|
|
159
|
+
};
|
|
160
|
+
paramCfg: {
|
|
161
|
+
type: ObjectConstructor;
|
|
162
|
+
default: null;
|
|
163
|
+
};
|
|
164
|
+
modelValue: {
|
|
165
|
+
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
166
|
+
default: null;
|
|
167
|
+
};
|
|
168
|
+
}, {
|
|
169
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
170
|
+
componentCfg: {
|
|
171
|
+
type: ObjectConstructor;
|
|
172
|
+
};
|
|
173
|
+
paramCfg: {
|
|
174
|
+
type: ObjectConstructor;
|
|
175
|
+
default: null;
|
|
176
|
+
};
|
|
177
|
+
modelValue: {
|
|
178
|
+
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
179
|
+
default: null;
|
|
180
|
+
};
|
|
181
|
+
}>> & {
|
|
182
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
183
|
+
}>>;
|
|
184
|
+
emit: (event: "update:modelValue", ...args: any[]) => void;
|
|
185
|
+
valueCp: import("vue").WritableComputedRef<any>;
|
|
186
|
+
dateType: any;
|
|
187
|
+
valueFormat: import("vue").ComputedRef<string>;
|
|
188
|
+
compType: import("vue").ComputedRef<any>;
|
|
189
|
+
CDatePicker: import("../../../..").SFCWithInstall<import("vue").DefineComponent<{
|
|
190
|
+
updateUnchangedValue: {
|
|
191
|
+
type: BooleanConstructor;
|
|
192
|
+
};
|
|
193
|
+
onConfirm: {
|
|
194
|
+
type: FunctionConstructor;
|
|
195
|
+
};
|
|
196
|
+
formattedValue: {
|
|
197
|
+
type: PropType<(string | [string, string]) | null | undefined>;
|
|
198
|
+
};
|
|
199
|
+
placeholder: {
|
|
200
|
+
type: StringConstructor;
|
|
201
|
+
};
|
|
202
|
+
allowedInvalidValue: {
|
|
203
|
+
type: StringConstructor;
|
|
204
|
+
};
|
|
205
|
+
}, {
|
|
206
|
+
attrs: {
|
|
207
|
+
[x: string]: unknown;
|
|
208
|
+
};
|
|
209
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
210
|
+
updateUnchangedValue: {
|
|
211
|
+
type: BooleanConstructor;
|
|
212
|
+
};
|
|
213
|
+
onConfirm: {
|
|
214
|
+
type: FunctionConstructor;
|
|
215
|
+
};
|
|
216
|
+
formattedValue: {
|
|
217
|
+
type: PropType<(string | [string, string]) | null | undefined>;
|
|
218
|
+
};
|
|
219
|
+
placeholder: {
|
|
220
|
+
type: StringConstructor;
|
|
221
|
+
};
|
|
222
|
+
allowedInvalidValue: {
|
|
223
|
+
type: StringConstructor;
|
|
224
|
+
};
|
|
225
|
+
}>> & {
|
|
226
|
+
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
|
227
|
+
}>>;
|
|
228
|
+
emit: (event: "update:formatted-value", ...args: any[]) => void;
|
|
229
|
+
datePickerRef: import("vue").Ref<import("../../../..").AnyObject | null>;
|
|
230
|
+
panelInstRef: import("vue").Ref<null>;
|
|
231
|
+
placeholderRef: import("vue").Ref<any>;
|
|
232
|
+
currentFormattedValue: import("vue").WritableComputedRef<(string | [string, string]) | null | undefined>;
|
|
233
|
+
isDateTime: import("vue").ComputedRef<boolean>;
|
|
234
|
+
formatRef: import("vue").ComputedRef<string>;
|
|
235
|
+
panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
|
|
236
|
+
focus: () => any;
|
|
237
|
+
blur: () => any;
|
|
238
|
+
handleConfirm: (target: HTMLInputElement) => void;
|
|
239
|
+
onUpdateShow: (show: boolean) => void;
|
|
240
|
+
onConfirm: (...args: any[]) => Promise<void>;
|
|
241
|
+
isAllowedInvalidValue: (value: (string | [string, string]) | null | undefined) => boolean | "" | undefined;
|
|
242
|
+
NDatePicker: any;
|
|
243
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:formatted-value"[], "update:formatted-value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
244
|
+
updateUnchangedValue: {
|
|
245
|
+
type: BooleanConstructor;
|
|
246
|
+
};
|
|
247
|
+
onConfirm: {
|
|
248
|
+
type: FunctionConstructor;
|
|
249
|
+
};
|
|
250
|
+
formattedValue: {
|
|
251
|
+
type: PropType<(string | [string, string]) | null | undefined>;
|
|
252
|
+
};
|
|
253
|
+
placeholder: {
|
|
254
|
+
type: StringConstructor;
|
|
255
|
+
};
|
|
256
|
+
allowedInvalidValue: {
|
|
257
|
+
type: StringConstructor;
|
|
258
|
+
};
|
|
259
|
+
}>> & {
|
|
260
|
+
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
|
261
|
+
}, {
|
|
262
|
+
updateUnchangedValue: boolean;
|
|
263
|
+
}>>;
|
|
264
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
265
|
+
componentCfg: {
|
|
266
|
+
type: ObjectConstructor;
|
|
267
|
+
};
|
|
268
|
+
paramCfg: {
|
|
269
|
+
type: ObjectConstructor;
|
|
270
|
+
default: null;
|
|
271
|
+
};
|
|
272
|
+
modelValue: {
|
|
273
|
+
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
274
|
+
default: null;
|
|
275
|
+
};
|
|
276
|
+
}>> & {
|
|
277
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
278
|
+
}, {
|
|
279
|
+
modelValue: string | number | unknown[];
|
|
280
|
+
paramCfg: Record<string, any>;
|
|
281
|
+
}>;
|
|
282
|
+
InputFilter: import("vue").DefineComponent<{
|
|
283
|
+
paramCfg: {
|
|
284
|
+
type: ObjectConstructor;
|
|
285
|
+
default: null;
|
|
286
|
+
};
|
|
287
|
+
modelValue: {
|
|
288
|
+
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
289
|
+
default: null;
|
|
290
|
+
};
|
|
291
|
+
}, {
|
|
292
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
293
|
+
paramCfg: {
|
|
294
|
+
type: ObjectConstructor;
|
|
295
|
+
default: null;
|
|
296
|
+
};
|
|
297
|
+
modelValue: {
|
|
298
|
+
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
299
|
+
default: null;
|
|
300
|
+
};
|
|
301
|
+
}>> & {
|
|
302
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
303
|
+
}>>;
|
|
304
|
+
emit: (event: "update:modelValue", ...args: any[]) => void;
|
|
305
|
+
valueCp: import("vue").WritableComputedRef<any>;
|
|
306
|
+
NInput: any;
|
|
307
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
308
|
+
paramCfg: {
|
|
309
|
+
type: ObjectConstructor;
|
|
310
|
+
default: null;
|
|
311
|
+
};
|
|
312
|
+
modelValue: {
|
|
313
|
+
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
314
|
+
default: null;
|
|
315
|
+
};
|
|
316
|
+
}>> & {
|
|
317
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
318
|
+
}, {
|
|
319
|
+
modelValue: string | number | unknown[];
|
|
320
|
+
paramCfg: Record<string, any>;
|
|
321
|
+
}>;
|
|
322
|
+
InputNumber: import("vue").DefineComponent<{
|
|
323
|
+
modelValue: {
|
|
324
|
+
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
325
|
+
default: null;
|
|
326
|
+
};
|
|
327
|
+
}, {
|
|
328
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
329
|
+
modelValue: {
|
|
330
|
+
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
331
|
+
default: null;
|
|
332
|
+
};
|
|
333
|
+
}>> & {
|
|
334
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
335
|
+
}>>;
|
|
336
|
+
emit: (event: "update:modelValue", ...args: any[]) => void;
|
|
337
|
+
valueCp: import("vue").WritableComputedRef<any>;
|
|
338
|
+
NInputNumber: any;
|
|
339
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
340
|
+
modelValue: {
|
|
341
|
+
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
342
|
+
default: null;
|
|
343
|
+
};
|
|
344
|
+
}>> & {
|
|
345
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
346
|
+
}, {
|
|
347
|
+
modelValue: string | number | unknown[];
|
|
348
|
+
}>;
|
|
349
|
+
SelectFilter: import("vue").DefineComponent<{
|
|
350
|
+
paramCfg: {
|
|
351
|
+
type: ObjectConstructor;
|
|
352
|
+
default: null;
|
|
353
|
+
};
|
|
354
|
+
modelValue: {
|
|
355
|
+
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
356
|
+
default: null;
|
|
357
|
+
};
|
|
358
|
+
}, {
|
|
359
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
360
|
+
paramCfg: {
|
|
361
|
+
type: ObjectConstructor;
|
|
362
|
+
default: null;
|
|
363
|
+
};
|
|
364
|
+
modelValue: {
|
|
365
|
+
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
366
|
+
default: null;
|
|
367
|
+
};
|
|
368
|
+
}>> & {
|
|
369
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
370
|
+
}>>;
|
|
371
|
+
emit: (event: "update:modelValue", ...args: any[]) => void;
|
|
372
|
+
valueCp: import("vue").WritableComputedRef<any>;
|
|
373
|
+
optionSetting: import("vue").ComputedRef<any>;
|
|
374
|
+
widgetOptions: import("vue").ComputedRef<any>;
|
|
375
|
+
NSelect: any;
|
|
376
|
+
WidgetOptionEnums: {
|
|
377
|
+
RADIO: string;
|
|
378
|
+
MULTIPLE: string;
|
|
379
|
+
ALL: string;
|
|
380
|
+
SELECT_TIME: string;
|
|
381
|
+
PAST_TIME: string;
|
|
382
|
+
FUTURE_TIME: string;
|
|
383
|
+
};
|
|
384
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
385
|
+
paramCfg: {
|
|
386
|
+
type: ObjectConstructor;
|
|
387
|
+
default: null;
|
|
388
|
+
};
|
|
389
|
+
modelValue: {
|
|
390
|
+
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
391
|
+
default: null;
|
|
392
|
+
};
|
|
393
|
+
}>> & {
|
|
394
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
395
|
+
}, {
|
|
396
|
+
modelValue: string | number | unknown[];
|
|
397
|
+
paramCfg: Record<string, any>;
|
|
398
|
+
}>;
|
|
399
|
+
WidgetTypeEnums: {
|
|
400
|
+
INPUT_NUMBER: string;
|
|
401
|
+
INPUT: string;
|
|
402
|
+
SELECT: string;
|
|
403
|
+
DATE: string;
|
|
404
|
+
DATE_OUT: string;
|
|
405
|
+
DATE_TIME: string;
|
|
406
|
+
DATETIME_OUT: string;
|
|
407
|
+
CHECKBOX_GROUP: string;
|
|
408
|
+
INPUTNUMBER_RANGE: string;
|
|
409
|
+
DATE_RANGE_OUT: string;
|
|
410
|
+
DATE_RANGE_INNER: string;
|
|
411
|
+
DATETIME_RANGE_OUT: string;
|
|
412
|
+
DATETIME_RANGE_INNER: string;
|
|
413
|
+
LABEL: string;
|
|
414
|
+
SELECTLABEL: string;
|
|
415
|
+
SELECTDYNAMIC: string;
|
|
416
|
+
};
|
|
417
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:modelValues")[], "update:modelValue" | "update:modelValues", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
418
|
+
paramCfg: {
|
|
419
|
+
type: ObjectConstructor;
|
|
420
|
+
default: null;
|
|
421
|
+
};
|
|
422
|
+
modelValue: {
|
|
423
|
+
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
424
|
+
default: null;
|
|
425
|
+
};
|
|
426
|
+
modelValues: {
|
|
427
|
+
type: ArrayConstructor;
|
|
428
|
+
default: () => never[];
|
|
429
|
+
};
|
|
430
|
+
}>> & {
|
|
431
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
432
|
+
"onUpdate:modelValues"?: ((...args: any[]) => any) | undefined;
|
|
433
|
+
}, {
|
|
434
|
+
modelValue: string | number | unknown[];
|
|
435
|
+
paramCfg: Record<string, any>;
|
|
436
|
+
modelValues: unknown[];
|
|
437
|
+
}>;
|
|
438
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("cancelSaveAdd" | "saveAdd")[], "cancelSaveAdd" | "saveAdd", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
439
|
+
actionList_prop: {
|
|
440
|
+
type: PropType<IClassifyListType>;
|
|
441
|
+
default: () => {};
|
|
442
|
+
};
|
|
443
|
+
conditionList: {
|
|
444
|
+
type: ArrayConstructor;
|
|
445
|
+
default: () => never[];
|
|
446
|
+
};
|
|
447
|
+
tableId: {
|
|
448
|
+
type: StringConstructor;
|
|
449
|
+
default: string;
|
|
450
|
+
};
|
|
451
|
+
searchFieldList: {
|
|
452
|
+
type: ArrayConstructor;
|
|
453
|
+
default: () => never[];
|
|
454
|
+
};
|
|
455
|
+
showItemName: {
|
|
456
|
+
type: BooleanConstructor;
|
|
457
|
+
default: boolean;
|
|
458
|
+
};
|
|
459
|
+
hideAddBtn: {
|
|
460
|
+
type: BooleanConstructor;
|
|
461
|
+
default: boolean;
|
|
462
|
+
};
|
|
463
|
+
}>> & {
|
|
464
|
+
onCancelSaveAdd?: ((...args: any[]) => any) | undefined;
|
|
465
|
+
onSaveAdd?: ((...args: any[]) => any) | undefined;
|
|
466
|
+
}, {
|
|
467
|
+
searchFieldList: unknown[];
|
|
468
|
+
tableId: string;
|
|
469
|
+
conditionList: unknown[];
|
|
470
|
+
actionList_prop: IClassifyListType;
|
|
471
|
+
showItemName: boolean;
|
|
472
|
+
hideAddBtn: boolean;
|
|
473
|
+
}>;
|
|
474
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"./index.vue2.js";import r from"../../../../../_virtual/_plugin-vue_export-helper.js";var i=r(e,[["__file","index.vue"]]);export{i as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{defineComponent as e,useAttrs as l,reactive as a,ref as i,provide as t,toRef as n,openBlock as o,createElementBlock as s,createVNode as d,unref as r,withCtx as c,createElementVNode as p,createCommentVNode as u,Fragment as f,renderList as m,normalizeClass as v,toDisplayString as y,createBlock as C,withDirectives as g,createTextVNode as h,vShow as b}from"vue";import{useMessage as k,NSpin as A,NInput as I,NIcon as L,NButton as _,NSelect as w,NTooltip as N}from"naive-ui";import{CloseOutline as x,AddOutline as S,AddCircleSharp as B}from"@vicons/ionicons5";import D from"./ValueCfg.vue.js";import{DataTypeEnums as U}from"../../types/enums.js";import{useDisplayCategory as E}from"../classify-filter/hooks/useDisplayCategory.js";import{useBiConditions as V}from"./hooks/useBiConditions.js";import{InjectionClassifyFilterList as j}from"../../constants/index.js";const O={class:"searchConditionByApi_wrapper"},F={class:"class-filter-content"},z={key:0,class:"item-name"},Q=p("span",{class:"label"},"筛选分类名称:",-1),R={key:1,class:"quickSearch-content"},q=p("span",{class:"label"},"父类名称:",-1),T=["onClick"],G=["onDblclick"],P={class:"s-content"},J={key:2,class:"item-name"},K=p("span",{class:"label"}," 过滤条件: ",-1),M=p("span",null,"添加",-1),H={class:"select-item-list"},W={class:"index-span"},X=["onClick"],Y={class:"filter-expression"},Z=p("span",null,"筛选器逻辑编辑,不设置默认为AND",-1),$=p("span",null,"例子 (1 AND 2) OR 3",-1);var ee=e({__name:"index",props:{actionList_prop:{type:Object,default:()=>({})},conditionList:{type:Array,default:()=>[]},tableId:{type:String,default:""},searchFieldList:{type:Array,default:()=>[]},showItemName:{type:Boolean,default:!0},hideAddBtn:{type:Boolean,default:!1}},emits:["saveAdd","cancelSaveAdd"],setup(e,{expose:ee,emit:le}){const ae=e,ie=k(),te={class:"classify-fieldkey-popover"},ne=["IN","BIG","LESS","BIGEQ","LESSEQ"],oe=["CL","NC","EQ","NEQ"],se=["EQ","BIG","LESS"],de=l(),re=a({className:"",displayCategory:"",filterConditions:[]}),ce=i(!1),pe=i(),ue=i(),fe=i(ae.actionList_prop.sqlExpression||"");t(j,n(re,"filterConditions"));const{State:me,isEnableAddDisplayCategory:ve,editDisplayCategory:ye,handleDisplayCategorySelect:Ce,handleDisplayCategoryRemove:ge,handleDisplayCategoryAdd:he,handlerBlur:be,initDisplayCategories:ke}=E(n(re,"displayCategory"),{conditionList:ae.conditionList},ie),{State:Ae,paramOptions:Ie,addFilterCondition:Le,delFilterCondition:_e,updateKey:we,updateCondition:Ne,getParamCfg:xe,initFilterConditions:Se,getRawFilterConditions:Be}=V(n(re,"filterConditions"),ae.searchFieldList,U.API);function De(e){return[...ne,...oe,...se].includes(e)}function Ue(){he((()=>{setTimeout((()=>{ue.value&&ue.value.focus()}),100)}))}function Ee(){re.className="",re.displayCategory="",re.filterConditions=[]}async function Ve(){var e;try{if(Ee(),ce.value=!0,ke(de.displayCategoryList,ae.actionList_prop.displayCategory||void 0),ae.actionList_prop){re.className=ae.actionList_prop.name,await Se(ae.tableId,null!=(e=ae.actionList_prop.conObj)?e:[]);re.filterConditions.length<1&&Ie.value&&Ie.value.length>0&&Le()}}finally{ce.value=!1}}return Ve(),ee({handleInitConditions:Ve,saveAdd:function(){new Promise((e=>{re.className||!ae.showItemName?0!==re.filterConditions.length?re.filterConditions.some((({fieldId:e,fieldType:l,value:a,values:i,con:t})=>!e||!t||De(t)&&!a&&!i.length))?ie.warning("请补充完整条件内容"):e(!0):ie.warning("请至少添加一个条件"):ie.warning("请输入分类名称")})).then((()=>{let e;var l;"edit"===ae.actionList_prop.from&&(l=ae.actionList_prop.sid,e=null==ae?void 0:ae.conditionList.find((e=>e.sid===l)));const a={displayCategory:re.displayCategory,name:re.className||"",conObj:Be(),sqlExpression:fe.value},i={id:e?e.sid:"",tableId:ae.tableId,setting:JSON.stringify(a)};le("saveAdd",i,!1)}))},cancelSaveAdd:function(){Ee(),le("cancelSaveAdd")},addAction:Le,checkActionList:function(){return re.filterConditions.every((e=>!e.field_key))}}),(l,a)=>(o(),s("div",O,[d(r(A),{show:ce.value},{default:c((()=>[p("div",F,[e.showItemName?(o(),s("div",z,[Q,d(r(I),{value:re.className,"onUpdate:value":a[0]||(a[0]=e=>re.className=e),placeholder:"请输入分类名称",style:{width:"250px"},maxlength:"10"},null,8,["value"])])):u("v-if",!0),e.showItemName?(o(),s("div",R,[q,(o(!0),s(f,null,m(r(me).displayCategories,((e,l)=>(o(),s("div",{class:"parent-name",key:l,onClick:l=>function(e){Ce(e)}(e)},[e.disabled?(o(),s("div",{key:0,class:v(["edit-tag",{"edit-tag-select":e.value===re.displayCategory&&e.disabled}]),onDblclick:l=>function(e){e.disabled=!1,setTimeout((()=>{pe.value.length>0&&pe.value[0].focus()}),100)}(e)},[p("div",P,y(e.value),1),d(r(L),{component:r(x),class:"anticon-close",size:"20",onClick:a=>r(ge)(l,e)},null,8,["component","onClick"])],42,G)):(o(),C(r(I),{key:1,ref_for:!0,ref_key:"parentInputRef",ref:pe,class:"parent-input",style:{width:"100px"},disabled:e.disabled,onBlur:()=>e.disabled=!0,value:e.value,"onUpdate:value":l=>e.value=l,maxlength:20},null,8,["disabled","onBlur","value","onUpdate:value"]))],8,T)))),128)),r(ve)?(o(),s(f,{key:0},[g(d(r(_),{class:"ant-btn",icon:"plus",dashed:"",onClick:Ue},{default:c((()=>[d(r(L),{component:r(S),size:"20"},null,8,["component"]),h(" "+y("添加父类"))])),_:1},512),[[b,!r(me).showAdd]]),g(d(r(I),{ref_key:"parentInputAddRef",ref:ue,class:"parent-input",value:r(me).addDisplayCategory,"onUpdate:value":a[1]||(a[1]=e=>r(me).addDisplayCategory=e),valueModifiers:{trim:!0},style:{width:"100px"},onBlur:r(be),maxlength:20},null,8,["value","onBlur"]),[[b,r(me).showAdd]])],64)):u("v-if",!0)])):u("v-if",!0),e.hideAddBtn?u("v-if",!0):(o(),s("div",J,[K,p("span",{class:"addAction",onClick:a[2]||(a[2]=(...e)=>r(Le)&&r(Le)(...e)),style:{cursor:"pointer"}},[d(r(L),{component:r(B),class:"blue",size:"18"},null,8,["component"]),M])])),p("ul",H,[(o(!0),s(f,null,m(re.filterConditions,((e,l)=>(o(),s("li",{key:l},[p("span",W,y(l+1),1),u(" 选择 field_key "),d(r(w),{class:"form-item",placeholder:"请选择",value:e.fieldId,"menu-props":te,to:"body",filterable:"",options:r(Ie),"onUpdate:value":e=>r(we)(l,e)},null,8,["value","options","onUpdate:value"]),u(" 选择 关系 "),e.fieldId?(o(),C(r(w),{key:0,class:"form-item",placeholder:"请选择",value:e.con,to:"body",filterable:"",options:e.biTypeOptions,"onUpdate:value":e=>r(Ne)(l,e)},null,8,["value","options","onUpdate:value"])):u("v-if",!0),u(" 自定义 "),e.fieldId&&e.con&&De(e.con)?(o(),C(D,{key:1,modelValue:e.value,"onUpdate:modelValue":l=>e.value=l,modelValues:e.values,"onUpdate:modelValues":l=>e.values=l,"param-cfg":r(xe)(e.fieldId)},null,8,["modelValue","onUpdate:modelValue","modelValues","onUpdate:modelValues","param-cfg"])):u("v-if",!0),d(r(N),{title:"删除",trigger:"hover"},{trigger:c((()=>[p("i",{onClick:e=>r(_e)(l),class:"iconfont-table-filter delete-item-icon icon-table-filter-menzhenyishengzhananniuqingchu"},null,8,X)])),default:c((()=>[h(" 删除 ")])),_:2},1024)])))),128))]),p("div",Y,[Z,$,d(r(I),{class:"textarea",value:fe.value,"onUpdate:value":a[3]||(a[3]=e=>fe.value=e),type:"textarea",placeholder:"请输入表达式"},null,8,["value"])])])])),_:1},8,["show"])]))}});export{ee as default};
|
|
@@ -3,3 +3,4 @@ import { InjectionKey, Ref } from 'vue';
|
|
|
3
3
|
export declare const InjectionFilterApiConfig: InjectionKey<AnyObject>;
|
|
4
4
|
export declare const InjectionFilterSearchConfig: InjectionKey<Ref<AnyObject[]>>;
|
|
5
5
|
export declare const InjectionClassifyFilterList: InjectionKey<Ref<AnyObject[]>>;
|
|
6
|
+
export declare const InjectionClassifyfilterType: InjectionKey<String>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const i=Symbol("InjectionFilterApiConfig"),o=Symbol("InjectionFilterSearchConfig"),
|
|
1
|
+
const i=Symbol("InjectionFilterApiConfig"),o=Symbol("InjectionFilterSearchConfig"),e=Symbol("InjectionClassifyFilterList"),n=Symbol("InjectionClassifyfilterType");export{e as InjectionClassifyFilterList,n as InjectionClassifyfilterType,i as InjectionFilterApiConfig,o as InjectionFilterSearchConfig};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var e="@cnhis-design-vue/shared",i="3.1.
|
|
1
|
+
var e="@cnhis-design-vue/shared",i="3.1.55-beta.1",s="index.ts",n={"naive-ui":"^2.30.0",vue:"^3.2.0"},a={"@vicons/ionicons5":"^0.12.0","lodash-es":"^4.17.21",moment:"^2.29.1","video.js":"^7.19.2","videojs-contrib-hls":"^5.15.0",viewerjs:"^1.10.5","xe-utils":"^3.5.4"},d={name:e,version:"3.1.55-beta.1",private:!0,main:"index.ts",peerDependencies:n,dependencies:a};export{d as default,a as dependencies,s as main,e as name,n as peerDependencies,i as version};
|
|
@@ -4,6 +4,7 @@ export declare function isMatchLowCodeCondition(value: unknown, condition: {
|
|
|
4
4
|
con: LowCodeTypes.VALUE_RELATION;
|
|
5
5
|
value: unknown;
|
|
6
6
|
}, overwriteCompareMap?: LowCodeTypes.BindEventSettingItem['compareMap']): boolean;
|
|
7
|
+
export declare function isConditionsMatchSqlExpression(conditions: boolean[], sqlExpression?: string): any;
|
|
7
8
|
export declare function isMatchLowCodeConditionsWithSqlExpression(formData: AnyObject, config: LowCodeTypes.reactionsConfig): any;
|
|
8
9
|
declare function handleFieldTriggerSetValue(bindEventSetting: LowCodeTypes.BindEventSettingItem, { getter, setter }: {
|
|
9
10
|
setter: (key: string, value: unknown) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Path as e}from"@formily/path";import{isArray as
|
|
1
|
+
import{Path as e}from"@formily/path";import{isArray as t,isString as n,includes as r,negate as a,gt as o,gte as i,isNumber as l,lt as c,lte as f,identity as u,noop as s,isObject as d}from"lodash-es";import{unref as p}from"vue";import{add as m,differenceInMilliseconds as F}from"date-fns";function D(e){return null==e||""==e}const h={EQ:(e,t)=>`${e}`===t,NEQ:(e,t)=>`${e}`!==t,CL:(e,a)=>!(!t(e)&&!n(e))&&r(e,a),NC:(e,a)=>!t(e)&&!n(e)||!r(e,a),NULL:D,NOT_NULL:a(D),BIG:o,BIGEQ:i,LESS:(e,t)=>!!(l(e)||n(e)&&e)&&c(e,t),LESSEQ:(e,t)=>!!(l(e)||n(e)&&e)&&f(e,t)};function E(e,t,n={}){return(n[t.con]||h[t.con]||(()=>!1))(e,`${t.value}`)}function g(e,t){if(!t||!n(t))return e.every(u);try{return new Function("return "+t.replace(/OR/g,"||").replace(/AND/g,"&&").replace(/[a-zA-Z]/g,"").replace(/\d+/g,(t=>e[+t-1]?"true":"false")))()}catch(e){return console.error("表达式错误=>",t),!1}}function A(n,r){if(!t(r.conObj))return!1;return g(r.conObj.map((t=>E(e.getIn(n,t.field_key),t,r.compareMap))),r.sqlExpression)}const N=Object.freeze({SET_VALUE:function(e,{getter:t,setter:r}){if(!d(e))return;const{results:a=[],params:o=[],compareMap:i={}}=e;if(!a.length)return;function l(e){var r;if(!n(e))return e;const a=e.trim().match(/^\$\{([a-zA-Z\d\s]+)}$/);return a?t(null==(r=a[1])?void 0:r.trim()):e}o.every((e=>e&&e.p_name&&E(t(e.p_name),{con:e.p_select,value:l(e.p_value)},i)))&&a.forEach((e=>r(e.p_name,l(e.p_value))))},REPEAT_VALIDATE:s,IS_SHOW_FIELD:s,SQLSAVE:s,API:s});function L(e){return N[e]||s}function V(e,r,a){function o(e){return t(e)&&!!e.length}function i(e,t=!0){e.forEach((e=>{if(!e.operationalResult||!t&&null!=r(e.operationalResult))return;const o=e.operationFormParam.reduce(((e,t)=>(e[t=t.replace(/^table\./,"")]=+r(t),e)),{}),i=e.operationalRule.replace(/\${(.+?)}/g,"$1");let c=new Function("table",`return ${i}`)(o);n(c)&&(c=+c),c=l(c)?isNaN(c)?"":c.toFixed(+e.operationalPrecision):"",a(e.operationalResult,c)}))}return{operationalFormHandler:function(t){if(!o(p(e)))return;const n=p(e).filter((e=>e.operationFormParam.includes(`table.${t}`)));n.length&&i(n)},triggerAllOperationalFormHandler:function(){o(p(e))&&i(p(e),!1)}}}function $(e,n,r){function a(e){return t(e)&&!!e.length}function o(e,t=!0){e.forEach((e=>{e.diffValField&&e.diffValUnit&&e.scene&&(t||null==n(e.diffValField))&&("DIFF"===e.scene?function({startDateField:e,endDateField:t,diffValField:a,diffValUnit:o,precision:i="0"}){const l=n(e),c=n(t);if(l&&c){const e=F(new Date(c),new Date(l))/1e3/60,t=e/60,n=t/24;let f="";switch(o){case"DAY":f=n.toFixed(+i);break;case"HOUR":f=t.toFixed(+i);break;case"MIN":f=e.toFixed(+i);break;case"DHM":f=`${Math.floor(n)}天${Math.floor(t%24)}小时${Math.floor(e%60)}分钟`;break}r(a,f)}else r(a,null)}(e):"CALC"===e.scene&&function(e){const t=+e.diffValField;if(!l(t)||Number.isNaN(t))return;const a=n(e.endDateField);if(a){const n=m(new Date(a),{days:"DAY"===e.diffValUnit?t:0,hours:"HOUR"===e.diffValUnit?t:0,minutes:"MIN"===e.diffValUnit?t:0});r(e.startDateField,n)}else r(e.startDateField,null)}(e))}))}return{dateOperationalFormHandler:function(t){if(!a(p(e)))return;const n=p(e).filter((e=>"DIFF"===e.scene&&e.startDateField===t||e.endDateField===t));n.length&&o(n)},triggerAllDateOperationalFormHandler:function(){a(p(e))&&o(p(e),!1)}}}export{L as getBindEventSettingTrigger,$ as getDateOperationalFormHandler,V as getOperationalFormHandler,g as isConditionsMatchSqlExpression,E as isMatchLowCodeCondition,A as isMatchLowCodeConditionsWithSqlExpression};
|
package/es/shared/utils/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{getCurrentInstance as t,defineComponent as e,provide as n,createVNode as r}from"vue";import{useMemoize as o}from"@vueuse/core";import{isString as i,isObject as
|
|
1
|
+
import{getCurrentInstance as t,defineComponent as e,provide as n,createVNode as r}from"vue";import{useMemoize as o}from"@vueuse/core";import{isString as i,isObject as s,isNumber as u,isArray as c,isFunction as f}from"lodash-es";import a from"../package.json.js";export{getBindEventSettingTrigger,getDateOperationalFormHandler,getOperationalFormHandler,isConditionsMatchSqlExpression,isMatchLowCodeCondition,isMatchLowCodeConditionsWithSqlExpression}from"./business.js";function l(t,e,n="children",r){let o=!1;function i(){o=!0}!function t(e,n,r="children",s){r=x(r),e=x(e);for(let u=0;u<e.length;u++){if(n(e[u],i,s),o)return;for(let i=0;i<r.length;i++){const s=e[u][r[i]];if(Array.isArray(s)&&t(s,n,r,e[u]),o)return}}}(t,e,n,r)}function d(t,e,n=e.name,r){if(!n)throw new Error(`[CUI]: invalid component name for ${e}`);const{components:o={}}=t._context;o[n]||(!Reflect.get(t,"__cnhis_version")&&s(a)&&Reflect.set(t,"__cnhis_version",a.version),r?r():t.component(n,e))}function p(t){if(!i(t))return;const e=t.match(/[Hms:]+/);return e?e[0]:void 0}function x(t){return Array.isArray(t)?t:[t]}function m(){return`key${"xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){const e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)}))}`}const h=o((function(t){if(!t)return 0;let e="";return[...t].reduce(((t,n)=>{const r=e;return e=n,/[a-z]/.test(n)?t+8.05:/[A-Z]/.test(n)?t+9.13:/\d/.test(n)?t+8.9:/[.,]/.test(n)?t+4.03:/[)(]/.test(n)?t+5.17:/[\u4e00-\u9fa5():,。]/.test(n)?t+13.95:/[-+]/.test(n)?t+7.51:/[/\\]/.test(n)?t+4.11:/%/.test(n)?t+12.68:/‰/.test(n)?t+17.75:" "===n?" "===r?t:t+4:t+6}),0)})),g=Object.seal(Object.create(null));function v(t,e){return function t(e,n){return s(e)?c(e)?e.map((e=>t(e,n))):Object.entries(e).reduce(((e,[r,o])=>(n.includes(r)||(s(o)&&!f(o)?e[r]=t(o,n):e[r]=o),e)),{}):e}(t,e)}function y(t){return Object.values(t).reduce(((t,e)=>Object.assign(t,e)),{})}function O(t,e){if(!t)return t;if(e(t))return t;let n=t.parentElement;for(;n&&!e(n);)n=n.parentElement;return n}function b(t,e="px"){if(u(t))return`${t}${e}`;if(i(t))return t.endsWith(e)?t:`${t}${e}`;throw new Error(`invalid width value ${t}, it need to be a string or number!`)}const j=o((t=>{try{return JSON.parse(t)}catch(t){return{}}}),{getKey:t=>t});function w(t,e){if(!s(t))return t;const n={...t};for(let t=0;t<e.length;t++)Reflect.deleteProperty(n,e[t]);return n}function E(e){if(!t())throw new Error(e||"can't use this hook out of setup environment")}function $(t,e=1){const[n,r,o,i,s]=t.match(/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i)||[];if(!n)return[255,255,255,e];const c=s&&parseInt(s,16)/255;return[parseInt(r,16),parseInt(o,16),parseInt(i,16),+(u(c)?c.toFixed(2):e)]}function _(t){return e({setup(e,{slots:o}){let i=(null==t?void 0:t.parent)&&Reflect.get(t.parent,"provides");const s=[];for(;i;)Object.entries(i).forEach((([t,e])=>{s.includes(t)||(s.push(t),n(t,e))})),i=Object.getPrototypeOf(i);return()=>{var t;return r("div",null,[null==(t=o.default)?void 0:t.call(o)])}}})}const S=o((function(t,e){return!(!i(e)||!i(t))&&e.split(",").some((e=>e.trim().includes(t)))}),{getKey:(...t)=>t.reduce(((t,e)=>String(t)+"_"+String(e)),"")});export{g as DMZ,x as arrayed,E as checkInSetupEnv,_ as createProviderWrapper,v as deepOmit,O as findAncestor,p as generateTimeFormat,h as getStringWidth,$ as hex2rgba,j as jsonParse,S as keywordMatcher,d as safeComponentRegister,y as separateMetaModule,w as shallowOmit,l as traverse,m as uuidGenerator,b as widthAppend};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cnhis-design-vue",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.55-beta.1",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"module": "./es/components/index.js",
|
|
6
6
|
"main": "./es/components/index.js",
|
|
@@ -42,6 +42,7 @@
|
|
|
42
42
|
"min-dom": "^3.2.1",
|
|
43
43
|
"moment": "^2.29.1",
|
|
44
44
|
"naive-ui": "^2.30.0",
|
|
45
|
+
"recorder-core": "^1.2.23070100",
|
|
45
46
|
"sockjs-client": "^1.6.1",
|
|
46
47
|
"sortablejs": "^1.15.0",
|
|
47
48
|
"spark-md5": "^3.0.2",
|
|
@@ -63,5 +64,5 @@
|
|
|
63
64
|
"iOS 7",
|
|
64
65
|
"last 3 iOS versions"
|
|
65
66
|
],
|
|
66
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "c58113697ad681f3e0b577a0628a17d013caad40"
|
|
67
68
|
}
|