cnhis-design-vue 3.1.54-beta.2 → 3.1.54-beta.21

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.
Files changed (158) hide show
  1. package/README.md +87 -87
  2. package/es/components/body-select/src/hooks/renderCanvas.js +1 -1
  3. package/es/components/body-select/src/index.vue2.js +1 -1
  4. package/es/components/button-print/index.d.ts +13 -0
  5. package/es/components/button-print/src/ButtonPrint.vue.d.ts +16 -1
  6. package/es/components/button-print/src/ButtonPrint.vue2.js +1 -1
  7. package/es/components/callback/src/components/render/popupMaps.d.ts +54 -14
  8. package/es/components/chat-sdk/index.d.ts +2 -0
  9. package/es/components/chat-sdk/index.js +1 -0
  10. package/es/components/chat-sdk/src/chatSDK.d.ts +7 -0
  11. package/es/components/chat-sdk/src/chatSDK.js +1 -0
  12. package/es/components/classification/index.d.ts +498 -1
  13. package/es/components/classification/src/components/search-filter/index.vue.d.ts +485 -1
  14. package/es/components/classification/src/components/search-filter/index.vue2.js +1 -1
  15. package/es/components/classification/src/components/set-classification/index.vue.d.ts +485 -1
  16. package/es/components/classification/src/index.vue.d.ts +500 -1
  17. package/es/components/classification/src/index.vue2.js +1 -1
  18. package/es/components/classification/style/index.css +1 -1
  19. package/es/components/expand-field/src/components/form.vue2.js +1 -1
  20. package/es/components/fabric-chart/index.d.ts +1 -0
  21. package/es/components/fabric-chart/src/FabricChart.vue.d.ts +1 -0
  22. package/es/components/fabric-chart/src/FabricChart.vue2.js +1 -1
  23. package/es/components/fabric-chart/src/constants/index.d.ts +1 -0
  24. package/es/components/fabric-chart/src/constants/index.js +1 -1
  25. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +1 -1
  26. package/es/components/fabric-chart/src/hooks/electrocardiogram/hooks/useDetailEvent.d.ts +18 -1
  27. package/es/components/fabric-chart/src/hooks/electrocardiogram/hooks/useDetailEvent.js +1 -1
  28. package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogram.js +1 -1
  29. package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.d.ts +5 -0
  30. package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.js +1 -1
  31. package/es/components/fabric-chart/src/hooks/electrocardiogram/useMeasureInstrument.js +1 -1
  32. package/es/components/fabric-chart/src/hooks/index.js +1 -1
  33. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.js +1 -1
  34. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useOther.js +1 -1
  35. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.js +1 -1
  36. package/es/components/fabric-chart/src/hooks/temperature/useCenter.d.ts +1 -1
  37. package/es/components/fabric-chart/src/hooks/temperature/useLeft.d.ts +1 -1
  38. package/es/components/fabric-chart/src/hooks/temperature/useLeft.js +1 -1
  39. package/es/components/fabric-chart/src/hooks/temperature/useOther.d.ts +1 -1
  40. package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
  41. package/es/components/fabric-chart/src/hooks/useCumputedPoint.d.ts +10 -4
  42. package/es/components/fabric-chart/src/hooks/useCumputedPoint.js +1 -1
  43. package/es/components/form-config/index.d.ts +135 -111
  44. package/es/components/form-config/src/FormConfig.vue.d.ts +136 -112
  45. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +26 -14
  46. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +53 -41
  47. package/es/components/form-config/src/components/FormConfigEventSetting.vue.d.ts +17 -17
  48. package/es/components/form-config/src/constants/index.d.ts +4 -4
  49. package/es/components/form-config/src/types/index.d.ts +3 -3
  50. package/es/components/form-render/index.d.ts +26 -14
  51. package/es/components/form-render/index.js +1 -1
  52. package/es/components/form-render/src/FormRender.vue.d.ts +27 -15
  53. package/es/components/form-render/src/FormRender.vue2.js +1 -1
  54. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +26 -14
  55. package/es/components/form-render/src/components/renderer/date.js +1 -1
  56. package/es/components/form-render/src/components/renderer/formItem.js +1 -1
  57. package/es/components/form-render/src/components/renderer/searchCascade.js +1 -1
  58. package/es/components/form-render/src/components/renderer/select.js +1 -1
  59. package/es/components/form-render/src/hooks/index.d.ts +20 -9
  60. package/es/components/form-render/src/hooks/index.js +1 -1
  61. package/es/components/form-render/src/hooks/useBusinessBinding.d.ts +1 -1
  62. package/es/components/form-render/src/hooks/useBusinessBinding.js +1 -1
  63. package/es/components/form-render/src/hooks/useFieldNormalize.d.ts +4 -4
  64. package/es/components/form-render/src/hooks/useFieldVisitor.js +1 -1
  65. package/es/components/form-render/src/hooks/useFormEvent.d.ts +12 -3
  66. package/es/components/form-render/src/hooks/useFormEvent.js +1 -1
  67. package/es/components/form-render/src/hooks/useFormItemDeps.d.ts +1 -1
  68. package/es/components/form-render/src/hooks/useFormItemDeps.js +1 -1
  69. package/es/components/form-render/src/hooks/useFormRenderOptions.d.ts +2 -2
  70. package/es/components/form-render/src/hooks/useLowCodeReactions.d.ts +2 -2
  71. package/es/components/form-render/src/hooks/useOperationalForm.d.ts +7 -5
  72. package/es/components/form-render/src/hooks/useOperationalForm.js +1 -1
  73. package/es/components/form-render/src/hooks/useWordbookSetting.d.ts +13 -4
  74. package/es/components/form-render/src/hooks/useWordbookSetting.js +1 -1
  75. package/es/components/form-render/src/types/fieldItem.d.ts +3 -3
  76. package/es/components/form-render/src/types/index.d.ts +6 -6
  77. package/es/components/iho-table/index.d.ts +28 -0
  78. package/es/components/iho-table/src/IhoTable.vue.d.ts +28 -0
  79. package/es/components/iho-table/src/plugins/bindEventSettingPlugin/index.js +1 -1
  80. package/es/components/iho-table/src/plugins/operationalFormPlugin/index.js +1 -1
  81. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +1 -1
  82. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue2.js +1 -1
  83. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/index.js +1 -1
  84. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.d.ts +8 -3
  85. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue2.js +1 -1
  86. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/defaultRendererPlugin.js +1 -1
  87. package/es/components/iho-table/src/types/index.d.ts +7 -5
  88. package/es/components/index.css +1 -1
  89. package/es/components/index.d.ts +1 -0
  90. package/es/components/index.js +1 -1
  91. package/es/components/info-header/index.d.ts +62 -38
  92. package/es/components/info-header/src/InfoHeader.vue.d.ts +62 -38
  93. package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +2 -2
  94. package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +2 -2
  95. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +28 -16
  96. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +26 -14
  97. package/es/components/quick-search/style/index.css +1 -1
  98. package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
  99. package/es/components/select-label/src/LabelFormContent.vue2.js +1 -1
  100. package/es/components/select-person/src/SearchMultiple.vue.d.ts +6 -0
  101. package/es/components/shortcut-setter/index.d.ts +33 -21
  102. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +33 -21
  103. package/es/components/table-export-field/src/components/ExportModal.vue.d.ts +0 -3
  104. package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue.d.ts +332 -0
  105. package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue.js +1 -0
  106. package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue2.js +1 -0
  107. package/es/components/table-filter/src/components/bi-filter/components/Date.vue.d.ts +127 -0
  108. package/es/components/table-filter/src/components/bi-filter/components/Date.vue.js +1 -0
  109. package/es/components/table-filter/src/components/bi-filter/components/Date.vue2.js +1 -0
  110. package/es/components/table-filter/src/components/bi-filter/components/InputFilter.vue.d.ts +41 -0
  111. package/es/components/table-filter/src/components/bi-filter/components/InputFilter.vue.js +1 -0
  112. package/es/components/table-filter/src/components/bi-filter/components/InputFilter.vue2.js +1 -0
  113. package/es/components/table-filter/src/components/bi-filter/components/InputNumber.vue.d.ts +28 -0
  114. package/es/components/table-filter/src/components/bi-filter/components/InputNumber.vue.js +1 -0
  115. package/es/components/table-filter/src/components/bi-filter/components/InputNumber.vue2.js +1 -0
  116. package/es/components/table-filter/src/components/bi-filter/components/SelectFilter.vue.d.ts +51 -0
  117. package/es/components/table-filter/src/components/bi-filter/components/SelectFilter.vue.js +1 -0
  118. package/es/components/table-filter/src/components/bi-filter/components/SelectFilter.vue2.js +1 -0
  119. package/es/components/table-filter/src/components/bi-filter/components/index.d.ts +244 -0
  120. package/es/components/table-filter/src/components/bi-filter/components/index.js +1 -0
  121. package/es/components/table-filter/src/components/bi-filter/helpers/options.d.ts +14 -0
  122. package/es/components/table-filter/src/components/bi-filter/helpers/options.js +1 -0
  123. package/es/components/table-filter/src/components/bi-filter/hooks/useBiConditions.d.ts +13 -0
  124. package/es/components/table-filter/src/components/bi-filter/hooks/useBiConditions.js +1 -0
  125. package/es/components/table-filter/src/components/bi-filter/index.vue.d.ts +486 -0
  126. package/es/components/table-filter/src/components/bi-filter/index.vue.js +1 -0
  127. package/es/components/table-filter/src/components/bi-filter/index.vue2.js +1 -0
  128. package/es/components/table-filter/src/components/classify-filter/hooks/useFilterConditions.js +1 -1
  129. package/es/components/table-filter/src/constants/index.d.ts +1 -0
  130. package/es/components/table-filter/src/constants/index.js +1 -1
  131. package/es/components/table-filter/src/hooks/useAdvanced.js +1 -1
  132. package/es/env.d.ts +25 -25
  133. package/es/shared/assets/img/failure.png.js +1 -1
  134. package/es/shared/assets/img/no-permission.png.js +1 -1
  135. package/es/shared/assets/img/nodata.png.js +1 -1
  136. package/es/shared/assets/img/notfound.png.js +1 -1
  137. package/es/shared/assets/img/qr.png.js +1 -1
  138. package/es/shared/assets/img/success.png.js +1 -1
  139. package/es/shared/assets/img/video.png.js +1 -1
  140. package/es/shared/assets/img/video_default_cover.png.js +1 -1
  141. package/es/shared/assets/img/xb_big.png.js +1 -1
  142. package/es/shared/assets/img/xb_small.png.js +1 -1
  143. package/es/shared/hooks/useLevelSearchCascader.d.ts +2 -2
  144. package/es/shared/package.json.js +1 -1
  145. package/es/shared/types/business.d.ts +61 -53
  146. package/es/shared/utils/business.d.ts +11 -7
  147. package/es/shared/utils/business.js +1 -1
  148. package/es/shared/utils/index.js +1 -1
  149. package/package.json +2 -2
  150. package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
  151. package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
  152. package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
  153. package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
  154. package/es/components/fabric-chart/src/hooks/electrocardiogram/constants/index.d.ts +0 -2
  155. package/es/components/fabric-chart/src/hooks/electrocardiogram/constants/index.js +0 -1
  156. package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
  157. package/es/shared/utils/fabricjs/index.d.ts +0 -6823
  158. package/es/shared/utils/tapable/index.d.ts +0 -139
@@ -0,0 +1,244 @@
1
+ declare const Date: import("vue").DefineComponent<{
2
+ componentCfg: {
3
+ type: ObjectConstructor;
4
+ };
5
+ paramCfg: {
6
+ type: ObjectConstructor;
7
+ default: null;
8
+ };
9
+ modelValue: {
10
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
11
+ default: null;
12
+ };
13
+ }, {
14
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
15
+ componentCfg: {
16
+ type: ObjectConstructor;
17
+ };
18
+ paramCfg: {
19
+ type: ObjectConstructor;
20
+ default: null;
21
+ };
22
+ modelValue: {
23
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
24
+ default: null;
25
+ };
26
+ }>> & {
27
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
28
+ }>>;
29
+ emit: (event: "update:modelValue", ...args: any[]) => void;
30
+ valueCp: import("vue").WritableComputedRef<any>;
31
+ dateType: any;
32
+ valueFormat: import("vue").ComputedRef<string>;
33
+ compType: import("vue").ComputedRef<any>;
34
+ CDatePicker: import("../../../../..").SFCWithInstall<import("vue").DefineComponent<{
35
+ updateUnchangedValue: {
36
+ type: BooleanConstructor;
37
+ };
38
+ onConfirm: {
39
+ type: FunctionConstructor;
40
+ };
41
+ formattedValue: {
42
+ type: import("vue").PropType<(string | [string, string]) | null | undefined>;
43
+ };
44
+ placeholder: {
45
+ type: StringConstructor;
46
+ };
47
+ allowedInvalidValue: {
48
+ type: StringConstructor;
49
+ };
50
+ }, {
51
+ attrs: {
52
+ [x: string]: unknown;
53
+ };
54
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
55
+ updateUnchangedValue: {
56
+ type: BooleanConstructor;
57
+ };
58
+ onConfirm: {
59
+ type: FunctionConstructor;
60
+ };
61
+ formattedValue: {
62
+ type: import("vue").PropType<(string | [string, string]) | null | undefined>;
63
+ };
64
+ placeholder: {
65
+ type: StringConstructor;
66
+ };
67
+ allowedInvalidValue: {
68
+ type: StringConstructor;
69
+ };
70
+ }>> & {
71
+ "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
72
+ }>>;
73
+ emit: (event: "update:formatted-value", ...args: any[]) => void;
74
+ datePickerRef: import("vue").Ref<import("../../../../..").AnyObject | null>;
75
+ panelInstRef: import("vue").Ref<null>;
76
+ placeholderRef: import("vue").Ref<any>;
77
+ currentFormattedValue: import("vue").WritableComputedRef<(string | [string, string]) | null | undefined>;
78
+ isDateTime: import("vue").ComputedRef<boolean>;
79
+ formatRef: import("vue").ComputedRef<string>;
80
+ panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
81
+ focus: () => any;
82
+ blur: () => any;
83
+ handleConfirm: (target: HTMLInputElement) => void;
84
+ onUpdateShow: (show: boolean) => void;
85
+ onConfirm: (...args: any[]) => Promise<void>;
86
+ isAllowedInvalidValue: (value: (string | [string, string]) | null | undefined) => boolean | "" | undefined;
87
+ NDatePicker: any;
88
+ }, 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<{
89
+ updateUnchangedValue: {
90
+ type: BooleanConstructor;
91
+ };
92
+ onConfirm: {
93
+ type: FunctionConstructor;
94
+ };
95
+ formattedValue: {
96
+ type: import("vue").PropType<(string | [string, string]) | null | undefined>;
97
+ };
98
+ placeholder: {
99
+ type: StringConstructor;
100
+ };
101
+ allowedInvalidValue: {
102
+ type: StringConstructor;
103
+ };
104
+ }>> & {
105
+ "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
106
+ }, {
107
+ updateUnchangedValue: boolean;
108
+ }>>;
109
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
110
+ componentCfg: {
111
+ type: ObjectConstructor;
112
+ };
113
+ paramCfg: {
114
+ type: ObjectConstructor;
115
+ default: null;
116
+ };
117
+ modelValue: {
118
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
119
+ default: null;
120
+ };
121
+ }>> & {
122
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
123
+ }, {
124
+ modelValue: string | number | unknown[];
125
+ paramCfg: Record<string, any>;
126
+ }>;
127
+ declare const InputFilter: import("vue").DefineComponent<{
128
+ paramCfg: {
129
+ type: ObjectConstructor;
130
+ default: null;
131
+ };
132
+ modelValue: {
133
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
134
+ default: null;
135
+ };
136
+ }, {
137
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
138
+ paramCfg: {
139
+ type: ObjectConstructor;
140
+ default: null;
141
+ };
142
+ modelValue: {
143
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
144
+ default: null;
145
+ };
146
+ }>> & {
147
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
148
+ }>>;
149
+ emit: (event: "update:modelValue", ...args: any[]) => void;
150
+ valueCp: import("vue").WritableComputedRef<any>;
151
+ NInput: any;
152
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
153
+ paramCfg: {
154
+ type: ObjectConstructor;
155
+ default: null;
156
+ };
157
+ modelValue: {
158
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
159
+ default: null;
160
+ };
161
+ }>> & {
162
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
163
+ }, {
164
+ modelValue: string | number | unknown[];
165
+ paramCfg: Record<string, any>;
166
+ }>;
167
+ declare const InputNumber: import("vue").DefineComponent<{
168
+ modelValue: {
169
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
170
+ default: null;
171
+ };
172
+ }, {
173
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
174
+ modelValue: {
175
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
176
+ default: null;
177
+ };
178
+ }>> & {
179
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
180
+ }>>;
181
+ emit: (event: "update:modelValue", ...args: any[]) => void;
182
+ valueCp: import("vue").WritableComputedRef<any>;
183
+ NInputNumber: any;
184
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
185
+ modelValue: {
186
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
187
+ default: null;
188
+ };
189
+ }>> & {
190
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
191
+ }, {
192
+ modelValue: string | number | unknown[];
193
+ }>;
194
+ declare const SelectFilter: import("vue").DefineComponent<{
195
+ paramCfg: {
196
+ type: ObjectConstructor;
197
+ default: null;
198
+ };
199
+ modelValue: {
200
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
201
+ default: null;
202
+ };
203
+ }, {
204
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
205
+ paramCfg: {
206
+ type: ObjectConstructor;
207
+ default: null;
208
+ };
209
+ modelValue: {
210
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
211
+ default: null;
212
+ };
213
+ }>> & {
214
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
215
+ }>>;
216
+ emit: (event: "update:modelValue", ...args: any[]) => void;
217
+ valueCp: import("vue").WritableComputedRef<any>;
218
+ optionSetting: import("vue").ComputedRef<any>;
219
+ widgetOptions: import("vue").ComputedRef<any>;
220
+ NSelect: any;
221
+ WidgetOptionEnums: {
222
+ RADIO: string;
223
+ MULTIPLE: string;
224
+ ALL: string;
225
+ SELECT_TIME: string;
226
+ PAST_TIME: string;
227
+ FUTURE_TIME: string;
228
+ };
229
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
230
+ paramCfg: {
231
+ type: ObjectConstructor;
232
+ default: null;
233
+ };
234
+ modelValue: {
235
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
236
+ default: null;
237
+ };
238
+ }>> & {
239
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
240
+ }, {
241
+ modelValue: string | number | unknown[];
242
+ paramCfg: Record<string, any>;
243
+ }>;
244
+ export { Date, InputFilter, InputNumber, SelectFilter };
@@ -0,0 +1 @@
1
+ import{defineAsyncComponent as t}from"vue";const e=t((()=>import("./Date.vue.js"))),r=t((()=>import("./InputFilter.vue.js"))),o=t((()=>import("./InputNumber.vue.js"))),p=t((()=>import("./SelectFilter.vue.js")));export{e as Date,r as InputFilter,o as InputNumber,p as SelectFilter};
@@ -0,0 +1,14 @@
1
+ export declare const filterConditionTypeOptions: {
2
+ type: string;
3
+ options: {
4
+ label: string;
5
+ value: string;
6
+ }[];
7
+ }[];
8
+ export declare const typeMappingOptions: {
9
+ TEXT: string;
10
+ SELECT: string;
11
+ NUMBER: string;
12
+ DATE: string;
13
+ DATETIME: string;
14
+ };
@@ -0,0 +1 @@
1
+ import{WidgetTypeEnums as l}from"../../../types/enums.js";const e=[{label:"为空",value:"NULL"},{label:"不为空",value:"NOT_NULL"},{label:"等于",value:"IN"},{label:"今天",value:"TODAY"},{label:"明天",value:"TOMORROW"},{label:"昨天",value:"YESTERDAY"},{label:"本周",value:"THIS_WEEK"},{label:"下周",value:"NEXT_WEEK"},{label:"上周",value:"UP_WEEK"},{label:"本月",value:"THIS_MONTH"},{label:"下月",value:"NEXT_MONTH"},{label:"上月",value:"UP_MONTH"},{label:"本季度",value:"THIS_SEASON"},{label:"下季度",value:"NEXT_SEASON"},{label:"上季度",value:"UP_SEASON"},{label:"本年",value:"THIS_YEAR"},{label:"下年",value:"NEXT_YEAR"},{label:"上年",value:"UP_YEAR"},{label:"大于",value:"BIG"},{label:"小于",value:"LESS"},{label:"大于等于",value:"BIGEQ"},{label:"小于等于",value:"LESSEQ"}],a=[{type:"DATE",options:e},{type:"DATETIME",options:e},{type:"TEXT",options:[{label:"为空",value:"NULL"},{label:"不为空",value:"NOT_NULL"},{label:"包含",value:"CL"},{label:"不包含",value:"NC"},{label:"等于",value:"EQ"},{label:"不等于",value:"NEQ"}]},{type:"NUMBER",options:[{label:"为空",value:"NULL"},{label:"不为空",value:"NOT_NULL"},{label:"等于",value:"EQ"},{label:"大于",value:"BIG"},{label:"小于",value:"LESS"}]}],E={TEXT:l.INPUT,SELECT:l.INPUT,NUMBER:l.INPUT_NUMBER,DATE:l.DATE,DATETIME:l.DATE_TIME};export{a as filterConditionTypeOptions,E as typeMappingOptions};
@@ -0,0 +1,13 @@
1
+ import { Ref } from 'vue';
2
+ import { ISearchConfigType } from '../../../../../../../es/components/table-filter/src/types';
3
+ export declare const useBiConditions: (filterConditions: Ref, selectList: any, dataType: string) => {
4
+ State: any;
5
+ paramOptions: import("vue").ComputedRef<any>;
6
+ addFilterCondition: () => void;
7
+ delFilterCondition: (index: number) => void;
8
+ updateKey: (index: number, val: any) => void;
9
+ updateCondition: (index: number, val: any) => void;
10
+ getParamCfg: (key: string) => any;
11
+ initFilterConditions: (tableId: string, rawConditions: ISearchConfigType[]) => Promise<void>;
12
+ getRawFilterConditions: () => any;
13
+ };
@@ -0,0 +1 @@
1
+ import{reactive as e,computed as t}from"vue";import{WidgetTypeEnums as i,ConditionEnums as n}from"../../../types/enums.js";import{transformDataToFront as a}from"../../../tool/transformData.js";import{typeMappingOptions as o,filterConditionTypeOptions as l}from"../helpers/options.js";import{DatePresetValEnums as r}from"../../render-widget/enums.js";import{presetValToTimestamp as p}from"../../render-widget/helpers/presetValToTimestamp.js";const s=(s,d,u)=>{const f=e({params:[]}),m=t((()=>f.params.map((({p_name:e,title:t})=>({label:t||e,value:e}))))),c=e=>f.params.find((t=>t.p_name===e)),y=e=>{e.con=e.value="";[i.DATE,i.DATE_TIME].includes(e.fieldType)&&(e.value=null)};return{State:f,paramOptions:m,addFilterCondition:()=>{s.value.push({fieldId:"",fieldType:"",con:"",value:"",biTypeOptions:[]})},delFilterCondition:e=>{s.value.splice(e,1)},updateKey:(e,t)=>{const i=s.value[e];i&&(y(i),i.fieldId=t,(e=>{const t=c(e.fieldId)._rawData.type,i=o[t];if(!i)return!1;e.fieldType=i;const n=l.find((e=>e.type===i));n&&(e.biTypeOptions=n.options)})(i))},updateCondition:(e,t)=>{const i=s.value[e];i&&(y(i),i.con=t)},getParamCfg:c,initFilterConditions:async(e,t)=>{const m=await(async e=>{try{return a(u,d)}catch(e){return[]}})();f.params=m,s.value=(e=>e.map((e=>{if(e.field_key){const t=c(e.field_key)._rawData.type;if(!o[t])return null;const a=o[t];e.unit&&e.unit!==r.CUSTOM&&(a===i.DATE&&(e.value=p(e.unit,"YYYY-MM-DD")),a===i.DATE_TIME&&(e.value=p(e.unit,"YYYY-MM-DD HH:mm:ss")));const s=[i.DATE,i.DATE_TIME];e.con=e.con===n.EQUAL&&s.includes(a)?"IN":e.con;let d=[];const u=l.find((e=>e.type===a));return u&&(d=u.options),{fieldId:e.field_key,fieldType:a,biTypeOptions:d,con:e.con,value:Array.isArray(e.value)?e.value.join(","):e.value}}return e})).filter((e=>null!=e)))(t)},getRawFilterConditions:()=>s.value.map((e=>({fieldId:e.fieldId,fieldType:e.fieldType,con:e.con,value:e.value})))}};export{s as useBiConditions};