cnhis-design-vue 3.1.44-release.5 → 3.1.44

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 (169) hide show
  1. package/README.md +87 -87
  2. package/es/components/base-search/index.d.ts +0 -6
  3. package/es/components/base-search/src/index.vue.d.ts +0 -6
  4. package/es/components/base-search/src/index.vue2.js +1 -1
  5. package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
  6. package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +1 -0
  7. package/es/components/bpmn-workflow/types/ModelingModule.d.ts +1 -0
  8. package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +1 -0
  9. package/es/components/classification/index.d.ts +553 -75
  10. package/es/components/classification/src/components/search-filter/index.vue.d.ts +551 -61
  11. package/es/components/classification/src/components/search-filter/index.vue2.js +1 -1
  12. package/es/components/classification/src/components/set-classification/index.vue.d.ts +553 -75
  13. package/es/components/classification/src/components/set-classification/index.vue2.js +1 -1
  14. package/es/components/classification/src/components/table-modal/index.vue.d.ts +1 -1
  15. package/es/components/classification/src/const/index.d.ts +2 -2
  16. package/es/components/classification/src/index.vue.d.ts +553 -75
  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/fabric-chart/src/FabricChart.vue2.js +1 -1
  20. package/es/components/fabric-chart/src/hooks/useBirthProcess.d.ts +1 -1
  21. package/es/components/fabric-chart/src/hooks/useBirthProcess.js +1 -1
  22. package/es/components/fabric-chart/src/hooks/useBirthProcessChart.d.ts +1 -1
  23. package/es/components/fabric-chart/src/hooks/useBirthProcessChart.js +1 -1
  24. package/es/components/fabric-chart/src/hooks/useBottom.d.ts +1 -1
  25. package/es/components/fabric-chart/src/hooks/useBottom.js +1 -1
  26. package/es/components/fabric-chart/src/hooks/useCenter.d.ts +1 -1
  27. package/es/components/fabric-chart/src/hooks/useCenter.js +1 -1
  28. package/es/components/fabric-chart/src/hooks/useCommon.d.ts +1 -1
  29. package/es/components/fabric-chart/src/hooks/useCumputedPoint.js +1 -1
  30. package/es/components/fabric-chart/src/hooks/useDraw.d.ts +1 -1
  31. package/es/components/fabric-chart/src/hooks/useDraw.js +1 -1
  32. package/es/components/fabric-chart/src/hooks/useEvent.d.ts +1 -1
  33. package/es/components/fabric-chart/src/hooks/useEvent.js +1 -1
  34. package/es/components/fabric-chart/src/hooks/useGrid.d.ts +1 -1
  35. package/es/components/fabric-chart/src/hooks/useGrid.js +1 -1
  36. package/es/components/fabric-chart/src/hooks/useLeft.d.ts +1 -1
  37. package/es/components/fabric-chart/src/hooks/useLeft.js +1 -1
  38. package/es/components/fabric-chart/src/hooks/useOther.d.ts +1 -1
  39. package/es/components/fabric-chart/src/hooks/useOther.js +1 -1
  40. package/es/components/fabric-chart/src/hooks/useRight.d.ts +1 -1
  41. package/es/components/fabric-chart/src/hooks/useRight.js +1 -1
  42. package/es/components/fabric-chart/src/hooks/useScaleColumn.d.ts +1 -1
  43. package/es/components/fabric-chart/src/hooks/useScaleColumn.js +1 -1
  44. package/es/components/fabric-chart/src/hooks/useShadow.d.ts +1 -1
  45. package/es/components/fabric-chart/src/hooks/useShadow.js +1 -1
  46. package/es/components/fabric-chart/src/hooks/useTemperatureChart.d.ts +1 -1
  47. package/es/components/fabric-chart/src/hooks/useTemperatureChart.js +1 -1
  48. package/es/components/fabric-chart/src/hooks/useTop.d.ts +1 -1
  49. package/es/components/fabric-chart/src/hooks/useTop.js +1 -1
  50. package/es/components/fabric-chart/src/interface.d.ts +2 -2
  51. package/es/components/fabric-chart/src/utils/index.js +1 -1
  52. package/es/components/form-config/index.d.ts +0 -2
  53. package/es/components/form-config/src/FormConfig.vue.d.ts +0 -2
  54. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +0 -1
  55. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +0 -1
  56. package/es/components/form-render/index.d.ts +0 -1
  57. package/es/components/form-render/src/FormRender.vue.d.ts +0 -1
  58. package/es/components/form-render/src/FormRender.vue2.js +1 -1
  59. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +0 -1
  60. package/es/components/form-render/src/components/renderer/input.d.ts +4 -4
  61. package/es/components/form-render/src/components/renderer/input.js +1 -1
  62. package/es/components/form-render/src/components/renderer/inputNumber.d.ts +4 -4
  63. package/es/components/form-render/src/components/renderer/inputNumber.js +1 -1
  64. package/es/components/form-render/src/types/index.d.ts +2 -0
  65. package/es/components/iho-table/index.d.ts +2 -0
  66. package/es/components/iho-table/src/IhoTable.vue.d.ts +2 -0
  67. package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks.d.ts +1 -0
  68. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue2.js +1 -1
  69. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/index.js +1 -1
  70. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useAutoFocus.d.ts +3 -4
  71. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useAutoFocus.js +1 -1
  72. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +1 -1
  73. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -1
  74. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.vue2.js +1 -1
  75. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.js +1 -1
  76. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue2.js +1 -1
  77. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/index.js +1 -1
  78. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/checkRendererPlugin.js +1 -1
  79. package/es/components/iho-table/src/types/index.d.ts +1 -0
  80. package/es/components/iho-table/style/index.css +1 -1
  81. package/es/components/index.css +1 -1
  82. package/es/components/index.d.ts +2 -1
  83. package/es/components/index.js +1 -1
  84. package/es/components/info-header/index.d.ts +8 -2
  85. package/es/components/info-header/src/InfoHeader.vue.d.ts +8 -2
  86. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +0 -1
  87. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +0 -1
  88. package/es/components/picture-clipper/index.d.ts +59 -0
  89. package/es/components/picture-clipper/index.js +1 -0
  90. package/es/components/picture-clipper/src/PictureClipper.vue.d.ts +59 -0
  91. package/es/components/picture-clipper/src/PictureClipper.vue.js +1 -0
  92. package/es/components/picture-clipper/src/PictureClipper.vue2.js +1 -0
  93. package/es/components/picture-clipper/style/index.css +1 -0
  94. package/es/components/quick-search/index.d.ts +0 -6
  95. package/es/components/quick-search/src/index.vue.d.ts +0 -6
  96. package/es/components/quick-search/src/index.vue2.js +1 -1
  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 +0 -6
  101. package/es/components/shortcut-setter/index.d.ts +0 -1
  102. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +0 -1
  103. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +551 -48
  104. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue2.js +1 -1
  105. package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +134 -0
  106. package/es/components/table-filter/src/components/classify-filter/components/Date.vue.js +1 -0
  107. package/es/components/table-filter/src/components/classify-filter/components/Date.vue2.js +1 -0
  108. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +140 -0
  109. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.js +1 -0
  110. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue2.js +1 -0
  111. package/es/components/table-filter/src/components/classify-filter/components/InputFilter.vue.d.ts +28 -0
  112. package/es/components/table-filter/src/components/classify-filter/components/InputFilter.vue.js +1 -0
  113. package/es/components/table-filter/src/components/classify-filter/components/InputFilter.vue2.js +1 -0
  114. package/es/components/table-filter/src/components/classify-filter/components/InputNumber.vue.d.ts +28 -0
  115. package/es/components/table-filter/src/components/classify-filter/components/InputNumber.vue.js +1 -0
  116. package/es/components/table-filter/src/components/classify-filter/components/InputNumber.vue2.js +1 -0
  117. package/es/components/table-filter/src/components/classify-filter/components/InputNumberGroup.vue.d.ts +54 -0
  118. package/es/components/table-filter/src/components/classify-filter/components/InputNumberGroup.vue.js +1 -0
  119. package/es/components/table-filter/src/components/classify-filter/components/InputNumberGroup.vue2.js +1 -0
  120. package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue.d.ts +61 -0
  121. package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue.js +1 -0
  122. package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue2.js +1 -0
  123. package/es/components/table-filter/src/components/classify-filter/components/SelectFilter.vue.d.ts +68 -0
  124. package/es/components/table-filter/src/components/classify-filter/components/SelectFilter.vue.js +1 -0
  125. package/es/components/table-filter/src/components/classify-filter/components/SelectFilter.vue2.js +1 -0
  126. package/es/components/table-filter/src/components/classify-filter/components/SelectLabel.vue.d.ts +47 -0
  127. package/es/components/table-filter/src/components/classify-filter/components/SelectLabel.vue2.js +1 -0
  128. package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +551 -0
  129. package/es/components/table-filter/src/components/classify-filter/components/index.js +1 -0
  130. package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +551 -48
  131. package/es/components/table-filter/src/components/render-widget/components/Date.vue2.js +1 -1
  132. package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue2.js +1 -1
  133. package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue2.js +1 -1
  134. package/es/components/table-filter/src/components/render-widget/components/{Label.vue.d.ts → LabelInner.vue.d.ts} +1 -9
  135. package/es/components/table-filter/src/components/render-widget/components/LabelInner.vue.js +1 -0
  136. package/es/components/table-filter/src/components/render-widget/components/LabelInner.vue2.js +1 -0
  137. package/es/components/table-filter/src/components/render-widget/components/{SelectLabel.vue.d.ts → LabelOut.vue.d.ts} +1 -9
  138. package/es/components/table-filter/src/components/render-widget/components/LabelOut.vue.js +1 -0
  139. package/es/components/table-filter/src/components/render-widget/components/LabelOut.vue2.js +1 -0
  140. package/es/components/table-filter/src/components/render-widget/components/Select.vue.d.ts +1 -9
  141. package/es/components/table-filter/src/components/render-widget/components/Select.vue2.js +1 -1
  142. package/es/components/table-filter/src/components/render-widget/components/index.d.ts +713 -8
  143. package/es/components/table-filter/src/components/render-widget/components/index.js +1 -1
  144. package/es/components/table-filter/src/components/render-widget/index.vue.d.ts +0 -6
  145. package/es/components/table-filter/src/components/render-widget/index.vue.js +1 -1
  146. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +3 -27
  147. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +1 -1
  148. package/es/components/table-filter/src/constants/index.d.ts +3 -0
  149. package/es/components/table-filter/src/constants/index.js +1 -0
  150. package/es/components/table-filter/src/directive/resize.js +1 -1
  151. package/es/components/table-filter/src/tool/baseOptions.d.ts +4 -0
  152. package/es/components/table-filter/src/tool/baseOptions.js +1 -1
  153. package/es/components/table-filter/src/tool/transformData.d.ts +1 -0
  154. package/es/components/table-filter/src/tool/transformData.js +1 -1
  155. package/es/components/table-filter/src/types/enums.d.ts +1 -0
  156. package/es/components/table-filter/src/types/enums.js +1 -1
  157. package/es/env.d.ts +25 -25
  158. package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +86 -0
  159. package/es/shared/package.json.js +1 -1
  160. package/es/shared/utils/fabricjs/index.d.ts +6823 -0
  161. package/es/shared/utils/fabricjs/index.js +1 -0
  162. package/es/shared/utils/tapable/index.d.ts +139 -0
  163. package/package.json +2 -2
  164. package/es/components/fabric-chart/src/utils/utils.js +0 -1
  165. package/es/components/table-filter/src/components/render-widget/components/Label.vue.js +0 -1
  166. package/es/components/table-filter/src/components/render-widget/components/Label.vue2.js +0 -1
  167. package/es/components/table-filter/src/components/render-widget/components/SelectLabel.vue2.js +0 -1
  168. /package/es/components/fabric-chart/src/utils/{utils.d.ts → index.d.ts} +0 -0
  169. /package/es/components/table-filter/src/components/{render-widget → classify-filter}/components/SelectLabel.vue.js +0 -0
@@ -153,16 +153,556 @@ declare const _default: import("vue").DefineComponent<{
153
153
  valueCp: import("vue").WritableComputedRef<any>;
154
154
  presetValCp: import("vue").WritableComputedRef<string>;
155
155
  widgetType: import("vue").ComputedRef<any>;
156
- optionSetting: import("vue").ComputedRef<any>;
157
- mappingConfig: import("vue").ComputedRef<any>;
158
- widgetOptions: import("vue").ComputedRef<{
159
- label: string;
160
- value: string;
161
- }[]>;
162
- NInputNumber: any;
163
- NInput: any;
164
- NSelect: any;
165
- NDatePicker: any;
156
+ Date: import("vue").DefineComponent<{
157
+ paramCfg: {
158
+ type: ObjectConstructor;
159
+ default: null;
160
+ };
161
+ modelValue: {
162
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
163
+ default: null;
164
+ };
165
+ presetVal: {
166
+ type: StringConstructor;
167
+ default: null;
168
+ };
169
+ }, {
170
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
171
+ paramCfg: {
172
+ type: ObjectConstructor;
173
+ default: null;
174
+ };
175
+ modelValue: {
176
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
177
+ default: null;
178
+ };
179
+ presetVal: {
180
+ type: StringConstructor;
181
+ default: null;
182
+ };
183
+ }>> & {
184
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
185
+ "onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
186
+ }>>;
187
+ emit: (event: "update:modelValue" | "update:presetVal", ...args: any[]) => void;
188
+ valueCp: import("vue").WritableComputedRef<any>;
189
+ presetValCp: import("vue").WritableComputedRef<string>;
190
+ dateType: any;
191
+ valueFormat: import("vue").ComputedRef<string>;
192
+ compType: import("vue").ComputedRef<any>;
193
+ mappingConfig: import("vue").ComputedRef<any>;
194
+ widgetOptions: import("vue").ComputedRef<{
195
+ label: string;
196
+ value: string;
197
+ }[]>;
198
+ CDatePicker: import("../../../..").SFCWithInstall<import("vue").DefineComponent<{
199
+ updateUnchangedValue: {
200
+ type: BooleanConstructor;
201
+ };
202
+ onConfirm: {
203
+ type: FunctionConstructor;
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
+ }>> & {}>>;
217
+ datePickerRef: import("vue").Ref<import("../../../..").AnyObject | null>;
218
+ panelInstRef: import("vue").Ref<null>;
219
+ isDateTime: import("vue").ComputedRef<boolean>;
220
+ formatRef: import("vue").ComputedRef<string>;
221
+ panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
222
+ focus: () => any;
223
+ blur: () => any;
224
+ onUpdateShow: (show: boolean) => void;
225
+ onConfirm: (...args: any[]) => void;
226
+ NDatePicker: any;
227
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
228
+ updateUnchangedValue: {
229
+ type: BooleanConstructor;
230
+ };
231
+ onConfirm: {
232
+ type: FunctionConstructor;
233
+ };
234
+ }>>, {
235
+ updateUnchangedValue: boolean;
236
+ }>>;
237
+ NSelect: any;
238
+ WidgetValEnums: {
239
+ CUSTOM: string;
240
+ FIRST_VAL: string;
241
+ NOW: string;
242
+ TODAY: string;
243
+ TODAY_START: string;
244
+ TODAY_END: string;
245
+ TOMORROW: string;
246
+ TOMORROW_START: string;
247
+ TOMORROW_END: string;
248
+ YESTERDAY: string;
249
+ YESTERDAY_START: string;
250
+ YESTERDAY_END: string;
251
+ THIS_WEEK: string;
252
+ WEEK_START: string;
253
+ WEEK_END: string;
254
+ NEXT_WEEK: string;
255
+ LAST_WEEK: string;
256
+ THIS_MONTH: string;
257
+ MONTH_START: string;
258
+ MONTH_END: string;
259
+ NEXT_MONTH: string;
260
+ LAST_MONTH: string;
261
+ THIS_QUARTER: string;
262
+ NEXT_QUARTER: string;
263
+ LAST_QUARTER: string;
264
+ THIS_YEAR: string;
265
+ NEXT_YEAR: string;
266
+ LAST_YEAR: string;
267
+ };
268
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:presetVal")[], "update:modelValue" | "update:presetVal", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
269
+ paramCfg: {
270
+ type: ObjectConstructor;
271
+ default: null;
272
+ };
273
+ modelValue: {
274
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
275
+ default: null;
276
+ };
277
+ presetVal: {
278
+ type: StringConstructor;
279
+ default: null;
280
+ };
281
+ }>> & {
282
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
283
+ "onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
284
+ }, {
285
+ modelValue: string | number | unknown[];
286
+ presetVal: string;
287
+ paramCfg: Record<string, any>;
288
+ }>;
289
+ InputFilter: import("vue").DefineComponent<{
290
+ modelValue: {
291
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
292
+ default: null;
293
+ };
294
+ }, {
295
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
296
+ modelValue: {
297
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
298
+ default: null;
299
+ };
300
+ }>> & {
301
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
302
+ }>>;
303
+ emit: (event: "update:modelValue", ...args: any[]) => void;
304
+ valueCp: import("vue").WritableComputedRef<any>;
305
+ NInput: any;
306
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
307
+ modelValue: {
308
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
309
+ default: null;
310
+ };
311
+ }>> & {
312
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
313
+ }, {
314
+ modelValue: string | number | unknown[];
315
+ }>;
316
+ InputNumber: import("vue").DefineComponent<{
317
+ modelValue: {
318
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
319
+ default: null;
320
+ };
321
+ }, {
322
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
323
+ modelValue: {
324
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
325
+ default: null;
326
+ };
327
+ }>> & {
328
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
329
+ }>>;
330
+ emit: (event: "update:modelValue", ...args: any[]) => void;
331
+ valueCp: import("vue").WritableComputedRef<any>;
332
+ NInputNumber: any;
333
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
334
+ modelValue: {
335
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
336
+ default: null;
337
+ };
338
+ }>> & {
339
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
340
+ }, {
341
+ modelValue: string | number | unknown[];
342
+ }>;
343
+ SelectFilter: import("vue").DefineComponent<{
344
+ paramCfg: {
345
+ type: ObjectConstructor;
346
+ default: null;
347
+ };
348
+ modelValue: {
349
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
350
+ default: null;
351
+ };
352
+ widgetType: {
353
+ type: StringConstructor;
354
+ default: string;
355
+ };
356
+ }, {
357
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
358
+ paramCfg: {
359
+ type: ObjectConstructor;
360
+ default: null;
361
+ };
362
+ modelValue: {
363
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
364
+ default: null;
365
+ };
366
+ widgetType: {
367
+ type: StringConstructor;
368
+ default: string;
369
+ };
370
+ }>> & {
371
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
372
+ }>>;
373
+ emit: (event: "update:modelValue", ...args: any[]) => void;
374
+ valueCp: import("vue").WritableComputedRef<any>;
375
+ optionSetting: import("vue").ComputedRef<any>;
376
+ mappingConfig: import("vue").ComputedRef<any>;
377
+ widgetOptions: import("vue").ComputedRef<{
378
+ label: string;
379
+ value: string;
380
+ }[]>;
381
+ NSelect: any;
382
+ WidgetOptionEnums: {
383
+ RADIO: string;
384
+ MULTIPLE: string;
385
+ ALL: string;
386
+ SELECT_TIME: string;
387
+ PAST_TIME: string;
388
+ FUTURE_TIME: string;
389
+ };
390
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
391
+ paramCfg: {
392
+ type: ObjectConstructor;
393
+ default: null;
394
+ };
395
+ modelValue: {
396
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
397
+ default: null;
398
+ };
399
+ widgetType: {
400
+ type: StringConstructor;
401
+ default: string;
402
+ };
403
+ }>> & {
404
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
405
+ }, {
406
+ modelValue: string | number | unknown[];
407
+ widgetType: string;
408
+ paramCfg: Record<string, any>;
409
+ }>;
410
+ SelectDynamic: import("vue").DefineComponent<{
411
+ paramCfg: {
412
+ type: ObjectConstructor;
413
+ default: null;
414
+ };
415
+ modelValue: {
416
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
417
+ default: null;
418
+ };
419
+ }, {
420
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
421
+ paramCfg: {
422
+ type: ObjectConstructor;
423
+ default: null;
424
+ };
425
+ modelValue: {
426
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
427
+ default: null;
428
+ };
429
+ }>> & {
430
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
431
+ }>>;
432
+ handleGetConfigApi: (params: any, key: string, config: {} | undefined, filterApiConfigVal: any) => Promise<any>;
433
+ $attrs: {
434
+ [x: string]: unknown;
435
+ };
436
+ emit: (event: "update:modelValue", ...args: any[]) => void;
437
+ selectOptions: import("vue").Ref<any[]>;
438
+ isLoading: import("vue").Ref<boolean>;
439
+ filterApiConfig: import("../../../..").AnyObject;
440
+ valueCp: import("vue").WritableComputedRef<any>;
441
+ optionSetting: import("vue").ComputedRef<any>;
442
+ isMultiple: import("vue").ComputedRef<boolean>;
443
+ searchOptions: (keyword: string) => Promise<any>;
444
+ _handleSearch: (query: string) => Promise<void>;
445
+ handleSearch: (query: string) => Promise<void>;
446
+ handleInitData: () => Promise<void>;
447
+ renderLabel: (option: import("naive-ui").SelectOption) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
448
+ [key: string]: any;
449
+ }>;
450
+ renderTag: ({ option, handleClose }: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
451
+ [key: string]: any;
452
+ }>;
453
+ NSelect: any;
454
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
455
+ paramCfg: {
456
+ type: ObjectConstructor;
457
+ default: null;
458
+ };
459
+ modelValue: {
460
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
461
+ default: null;
462
+ };
463
+ }>> & {
464
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
465
+ }, {
466
+ modelValue: string | number | unknown[];
467
+ paramCfg: Record<string, any>;
468
+ }>;
469
+ InputNumberGroup: import("vue").DefineComponent<{
470
+ paramCfg: {
471
+ type: ObjectConstructor;
472
+ default: null;
473
+ };
474
+ modelValue: {
475
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
476
+ default: null;
477
+ };
478
+ }, {
479
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
480
+ paramCfg: {
481
+ type: ObjectConstructor;
482
+ default: null;
483
+ };
484
+ modelValue: {
485
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
486
+ default: null;
487
+ };
488
+ }>> & {
489
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
490
+ }>>;
491
+ startNumber: import("vue").Ref<any>;
492
+ endNumber: import("vue").Ref<any>;
493
+ emit: (event: "update:modelValue", ...args: any[]) => void;
494
+ handleChange: (val: number | null, key: string) => void;
495
+ NInputGroup: import("vue").DefineComponent<{
496
+ [x: string]: never;
497
+ [x: number]: never;
498
+ [x: symbol]: never;
499
+ }, {
500
+ mergedClsPrefix: import("vue").ComputedRef<string>;
501
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
502
+ [x: string]: never;
503
+ [x: number]: never;
504
+ [x: symbol]: never;
505
+ }>>, {}>;
506
+ NInputNumber: any;
507
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
508
+ paramCfg: {
509
+ type: ObjectConstructor;
510
+ default: null;
511
+ };
512
+ modelValue: {
513
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
514
+ default: null;
515
+ };
516
+ }>> & {
517
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
518
+ }, {
519
+ modelValue: string | number | unknown[];
520
+ paramCfg: Record<string, any>;
521
+ }>;
522
+ DateRange: import("vue").DefineComponent<{
523
+ paramCfg: {
524
+ type: ObjectConstructor;
525
+ default: null;
526
+ };
527
+ modelValue: {
528
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
529
+ default: null;
530
+ };
531
+ presetVal: {
532
+ type: StringConstructor;
533
+ default: null;
534
+ };
535
+ }, {
536
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
537
+ paramCfg: {
538
+ type: ObjectConstructor;
539
+ default: null;
540
+ };
541
+ modelValue: {
542
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
543
+ default: null;
544
+ };
545
+ presetVal: {
546
+ type: StringConstructor;
547
+ default: null;
548
+ };
549
+ }>> & {
550
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
551
+ "onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
552
+ }>>;
553
+ emit: (event: "update:modelValue" | "update:presetVal", ...args: any[]) => void;
554
+ startDate: import("vue").Ref<any>;
555
+ endDate: import("vue").Ref<any>;
556
+ valueFormat: import("vue").ComputedRef<string>;
557
+ dateFormat: import("vue").ComputedRef<string>;
558
+ compType: import("vue").ComputedRef<any>;
559
+ startPlaceholder: import("vue").ComputedRef<"初始日期" | "初始时间">;
560
+ endPlaceholder: import("vue").ComputedRef<"截止日期" | "截止时间">;
561
+ dateType: any;
562
+ widgetOptions: import("vue").ComputedRef<{
563
+ label: string;
564
+ value: string;
565
+ }[]>;
566
+ presetValCp: import("vue").WritableComputedRef<string>;
567
+ handleChange: (val: any, type: "end" | "start") => void;
568
+ isStartDateDisabled: (ts: number) => boolean;
569
+ isEndDateDisabled: (ts: number) => boolean;
570
+ NSelect: any;
571
+ CDatePicker: import("../../../..").SFCWithInstall<import("vue").DefineComponent<{
572
+ updateUnchangedValue: {
573
+ type: BooleanConstructor;
574
+ };
575
+ onConfirm: {
576
+ type: FunctionConstructor;
577
+ };
578
+ }, {
579
+ attrs: {
580
+ [x: string]: unknown;
581
+ };
582
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
583
+ updateUnchangedValue: {
584
+ type: BooleanConstructor;
585
+ };
586
+ onConfirm: {
587
+ type: FunctionConstructor;
588
+ };
589
+ }>> & {}>>;
590
+ datePickerRef: import("vue").Ref<import("../../../..").AnyObject | null>;
591
+ panelInstRef: import("vue").Ref<null>;
592
+ isDateTime: import("vue").ComputedRef<boolean>;
593
+ formatRef: import("vue").ComputedRef<string>;
594
+ panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
595
+ focus: () => any;
596
+ blur: () => any;
597
+ onUpdateShow: (show: boolean) => void;
598
+ onConfirm: (...args: any[]) => void;
599
+ NDatePicker: any;
600
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
601
+ updateUnchangedValue: {
602
+ type: BooleanConstructor;
603
+ };
604
+ onConfirm: {
605
+ type: FunctionConstructor;
606
+ };
607
+ }>>, {
608
+ updateUnchangedValue: boolean;
609
+ }>>;
610
+ WidgetValEnums: {
611
+ CUSTOM: string;
612
+ FIRST_VAL: string;
613
+ NOW: string;
614
+ TODAY: string;
615
+ TODAY_START: string;
616
+ TODAY_END: string;
617
+ TOMORROW: string;
618
+ TOMORROW_START: string;
619
+ TOMORROW_END: string;
620
+ YESTERDAY: string;
621
+ YESTERDAY_START: string;
622
+ YESTERDAY_END: string;
623
+ THIS_WEEK: string;
624
+ WEEK_START: string;
625
+ WEEK_END: string;
626
+ NEXT_WEEK: string;
627
+ LAST_WEEK: string;
628
+ THIS_MONTH: string;
629
+ MONTH_START: string;
630
+ MONTH_END: string;
631
+ NEXT_MONTH: string;
632
+ LAST_MONTH: string;
633
+ THIS_QUARTER: string;
634
+ NEXT_QUARTER: string;
635
+ LAST_QUARTER: string;
636
+ THIS_YEAR: string;
637
+ NEXT_YEAR: string;
638
+ LAST_YEAR: string;
639
+ };
640
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:presetVal")[], "update:modelValue" | "update:presetVal", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
641
+ paramCfg: {
642
+ type: ObjectConstructor;
643
+ default: null;
644
+ };
645
+ modelValue: {
646
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
647
+ default: null;
648
+ };
649
+ presetVal: {
650
+ type: StringConstructor;
651
+ default: null;
652
+ };
653
+ }>> & {
654
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
655
+ "onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
656
+ }, {
657
+ modelValue: string | number | unknown[];
658
+ presetVal: string;
659
+ paramCfg: Record<string, any>;
660
+ }>;
661
+ SelectLabel: import("vue").DefineComponent<{
662
+ paramCfg: {
663
+ type: ObjectConstructor;
664
+ default: null;
665
+ };
666
+ modelValue: {
667
+ type: StringConstructor;
668
+ default: null;
669
+ };
670
+ }, {
671
+ handleGetConfigApi: (params: any, key: string, config: {} | undefined, filterApiConfigVal: any) => Promise<any>;
672
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
673
+ paramCfg: {
674
+ type: ObjectConstructor;
675
+ default: null;
676
+ };
677
+ modelValue: {
678
+ type: StringConstructor;
679
+ default: null;
680
+ };
681
+ }>> & {
682
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
683
+ }>>;
684
+ emit: (event: "update:modelValue", ...args: any[]) => void;
685
+ tagList: import("vue").Ref<never[]>;
686
+ filterApiConfig: import("../../../..").AnyObject;
687
+ valueCp: import("vue").WritableComputedRef<string[]>;
688
+ optionList: import("vue").ComputedRef<import("naive-ui").SelectOption[]>;
689
+ initTagList: () => Promise<void>;
690
+ NSelect: any;
691
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
692
+ paramCfg: {
693
+ type: ObjectConstructor;
694
+ default: null;
695
+ };
696
+ modelValue: {
697
+ type: StringConstructor;
698
+ default: null;
699
+ };
700
+ }>> & {
701
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
702
+ }, {
703
+ modelValue: string;
704
+ paramCfg: Record<string, any>;
705
+ }>;
166
706
  WidgetTypeEnums: {
167
707
  INPUT_NUMBER: string;
168
708
  INPUT: string;
@@ -177,44 +717,7 @@ declare const _default: import("vue").DefineComponent<{
177
717
  DATETIME_RANGE_INNER: string;
178
718
  LABEL: string;
179
719
  SELECTLABEL: string;
180
- };
181
- WidgetValEnums: {
182
- CUSTOM: string;
183
- FIRST_VAL: string;
184
- NOW: string;
185
- TODAY: string;
186
- TODAY_START: string;
187
- TODAY_END: string;
188
- TOMORROW: string;
189
- TOMORROW_START: string;
190
- TOMORROW_END: string;
191
- YESTERDAY: string;
192
- YESTERDAY_START: string;
193
- YESTERDAY_END: string;
194
- THIS_WEEK: string;
195
- WEEK_START: string;
196
- WEEK_END: string;
197
- NEXT_WEEK: string;
198
- LAST_WEEK: string;
199
- THIS_MONTH: string;
200
- MONTH_START: string;
201
- MONTH_END: string;
202
- NEXT_MONTH: string;
203
- LAST_MONTH: string;
204
- THIS_QUARTER: string;
205
- NEXT_QUARTER: string;
206
- LAST_QUARTER: string;
207
- THIS_YEAR: string;
208
- NEXT_YEAR: string;
209
- LAST_YEAR: string;
210
- };
211
- WidgetOptionEnums: {
212
- RADIO: string;
213
- MULTIPLE: string;
214
- ALL: string;
215
- SELECT_TIME: string;
216
- PAST_TIME: string;
217
- FUTURE_TIME: string;
720
+ SELECTDYNAMIC: string;
218
721
  };
219
722
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:presetVal")[], "update:modelValue" | "update:presetVal", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
220
723
  paramCfg: {
@@ -1 +1 @@
1
- import{defineComponent as e,ref as a,computed as t,watch as l,openBlock as r,createBlock as u,unref as o}from"vue";import p from"../../../../../date-picker/index.js";import m from"moment";import{isString as d}from"lodash-es";var v=e({__name:"Date",props:{type:{type:String,default:"date"},clearable:{type:Boolean,default:!1},valueFormat:{type:String,default:"yyyy-MM-dd"},placeholder:{type:String,default:"请输入"},value:{type:String,default:""}},emits:["update:value"],setup(e,{emit:v}){const i=e,n=a(),c=t((()=>{let e="";switch(i.type){case"date":e="YYYY-MM-DD";break;case"datetime":e="YYYY-MM-DD HH:mm:ss"}return e}));function s(e){n.value=e;const a=e?m(e).format(c.value):e;v("update:value",a)}return l((()=>i.value),(e=>{e&&d(e)?n.value=m(e).valueOf():n.value=null}),{immediate:!0}),(a,t)=>(r(),u(o(p),{type:e.type,clearable:e.clearable,valueFormat:e.valueFormat,placeholder:e.placeholder,value:n.value,"onUpdate:value":s},null,8,["type","clearable","valueFormat","placeholder","value"]))}});export{v as default};
1
+ import{defineComponent as e,ref as a,computed as t,watch as l,openBlock as r,createBlock as u,unref as o}from"vue";import p from"../../../../../date-picker/index.js";import d from"moment";import{isString as m}from"lodash-es";var v=e({__name:"Date",props:{type:{type:String,default:"date"},clearable:{type:Boolean,default:!1},valueFormat:{type:String,default:"yyyy-MM-dd"},placeholder:{type:String,default:"请输入"},value:{type:String,default:""}},emits:["update:value"],setup(e,{emit:v}){const i=e,n=a(),c=t((()=>{let e="";switch(i.type){case"date":e="YYYY-MM-DD";break;case"datetime":e="YYYY-MM-DD HH:mm:ss"}return e}));function y(e){n.value=e;const a=e?d(e).format(c.value):e;v("update:value",a)}return l((()=>i.value),(e=>{e&&m(e)?n.value=d(e).valueOf():n.value=null}),{immediate:!0}),(a,t)=>(r(),u(o(p),{to:"body",type:e.type,clearable:e.clearable,valueFormat:e.valueFormat,placeholder:e.placeholder,value:n.value,"onUpdate:value":y},null,8,["type","clearable","valueFormat","placeholder","value"]))}});export{v as default};
@@ -1 +1 @@
1
- import{defineComponent as e,ref as a,computed as l,watch as t,openBlock as u,createElementBlock as r,Fragment as v,renderList as d,normalizeClass as i,toDisplayString as n,createCommentVNode as o,createVNode as s,unref as c,withCtx as m,createTextVNode as p,createElementVNode as f}from"vue";import{NButton as y}from"naive-ui";import h from"../../../../../date-picker/index.js";import b from"moment";import{isString as g}from"lodash-es";import{getAllDateRangeInfo as k}from"../helpers/presetValToTimestamp.js";const Y={class:"render-widget-date-range"},F={key:0,class:"radio-date-group"},M=["onClick"],D={key:1,class:"date-detail-range"},S=f("span",{class:"divider"},null,-1);var w=e({__name:"DateRangeInner",props:{type:{type:String,default:"date"},clearable:{type:Boolean,default:!1},valueFormat:{type:String,default:"yyyy-MM-dd"},startPlaceholder:{type:String,default:"起始"},endPlaceholder:{type:String,default:"截止"},value:{type:String,default:""}},emits:["update:value"],setup(e,{emit:f}){const w=e,P=a([]),C=a(!1),_=a(""),j=a(),x=a(),H=l((()=>{let e="";switch(w.type){case"date":e="YYYY-MM-DD";break;case"datetime":e="YYYY-MM-DD HH:mm:ss"}return e})),O=l((()=>{let e="";switch(w.type){case"date":e="选择日期";break;case"datetime":e="选择时间"}return e}));function T(e,a){switch(a){case"start":j.value=e;break;case"end":x.value=e}const l=j.value?b(j.value).format(H.value):null,t=x.value?b(x.value).format(H.value):null;f("update:value",l||t?`${null!=l?l:""} ~ ${null!=t?t:""}`:"")}function U(e){return!!x.value&&e>x.value}function $(e){return!!j.value&&e<j.value}return t((()=>w.value),(e=>{if(e&&g(e)&&e.includes("~")){const[a,l]=e.split("~");return a.trim()&&(j.value=b(a.trim()).valueOf()),void(l.trim()&&(x.value=b(l.trim()).valueOf()))}j.value=x.value=null,_.value=""}),{immediate:!0}),function(){const e=k(H.value);P.value=e}(),(a,l)=>(u(),r("div",Y,[C.value?o("v-if",!0):(u(),r("div",F,[(u(!0),r(v,null,d(P.value,(e=>(u(),r("span",{key:e.value,class:i(["radio-date-item",_.value===e.value?"radio-date-item-active":""]),onClick:a=>{return l=e.value,_.value===l?_.value="":_.value=l,void(_.value&&f("update:value",_.value));var l}},n(e.label),11,M)))),128))])),s(c(y),{secondary:"",class:i(C.value?"select-date-right":"select-date-left"),onClick:l[0]||(l[0]=e=>C.value=!C.value)},{default:m((()=>[p(n(c(O)),1)])),_:1},8,["class"]),C.value?(u(),r("div",D,[s(c(h),{type:e.type,"default-time":"00:00:00",clearable:e.clearable,valueFormat:e.valueFormat,placeholder:e.startPlaceholder,value:j.value,"is-date-disabled":U,"onUpdate:value":l[1]||(l[1]=e=>T(e,"start"))},null,8,["type","clearable","valueFormat","placeholder","value"]),S,s(c(h),{type:e.type,"default-time":"23:59:59",clearable:e.clearable,valueFormat:e.valueFormat,placeholder:e.endPlaceholder,value:x.value,"is-date-disabled":$,"onUpdate:value":l[2]||(l[2]=e=>T(e,"end"))},null,8,["type","clearable","valueFormat","placeholder","value"])])):o("v-if",!0)]))}});export{w as default};
1
+ import{defineComponent as e,ref as a,computed as l,watch as t,openBlock as u,createElementBlock as r,Fragment as v,renderList as d,normalizeClass as i,toDisplayString as o,createCommentVNode as n,createVNode as s,unref as c,withCtx as m,createTextVNode as p,createElementVNode as f}from"vue";import{NButton as y}from"naive-ui";import b from"../../../../../date-picker/index.js";import h from"moment";import{isString as g}from"lodash-es";import{getAllDateRangeInfo as k}from"../helpers/presetValToTimestamp.js";const Y={class:"render-widget-date-range"},F={key:0,class:"radio-date-group"},M=["onClick"],D={key:1,class:"date-detail-range"},S=f("span",{class:"divider"},null,-1);var w=e({__name:"DateRangeInner",props:{type:{type:String,default:"date"},clearable:{type:Boolean,default:!1},valueFormat:{type:String,default:"yyyy-MM-dd"},startPlaceholder:{type:String,default:"起始"},endPlaceholder:{type:String,default:"截止"},value:{type:String,default:""}},emits:["update:value"],setup(e,{emit:f}){const w=e,P=a([]),C=a(!1),_=a(""),j=a(),x=a(),H=l((()=>{let e="";switch(w.type){case"date":e="YYYY-MM-DD";break;case"datetime":e="YYYY-MM-DD HH:mm:ss"}return e})),O=l((()=>{let e="";switch(w.type){case"date":e="选择日期";break;case"datetime":e="选择时间"}return e}));function T(e,a){switch(a){case"start":j.value=e;break;case"end":x.value=e}const l=j.value?h(j.value).format(H.value):null,t=x.value?h(x.value).format(H.value):null;f("update:value",l||t?`${null!=l?l:""} ~ ${null!=t?t:""}`:"")}function U(e){return!!x.value&&e>x.value}function $(e){return!!j.value&&e<j.value}return t((()=>w.value),(e=>{if(e&&g(e)&&e.includes("~")){const[a,l]=e.split("~");return a.trim()&&(j.value=h(a.trim()).valueOf()),void(l.trim()&&(x.value=h(l.trim()).valueOf()))}j.value=x.value=null,_.value=""}),{immediate:!0}),function(){const e=k(H.value);P.value=e}(),(a,l)=>(u(),r("div",Y,[C.value?n("v-if",!0):(u(),r("div",F,[(u(!0),r(v,null,d(P.value,(e=>(u(),r("span",{key:e.value,class:i(["radio-date-item",_.value===e.value?"radio-date-item-active":""]),onClick:a=>{return l=e.value,_.value===l?_.value="":_.value=l,void(_.value&&f("update:value",_.value));var l}},o(e.label),11,M)))),128))])),s(c(y),{secondary:"",class:i(C.value?"select-date-right":"select-date-left"),onClick:l[0]||(l[0]=e=>C.value=!C.value)},{default:m((()=>[p(o(c(O)),1)])),_:1},8,["class"]),C.value?(u(),r("div",D,[s(c(b),{type:e.type,to:"body","default-time":"00:00:00",clearable:e.clearable,valueFormat:e.valueFormat,placeholder:e.startPlaceholder,value:j.value,"is-date-disabled":U,"onUpdate:value":l[1]||(l[1]=e=>T(e,"start"))},null,8,["type","clearable","valueFormat","placeholder","value"]),S,s(c(b),{type:e.type,to:"body","default-time":"23:59:59",clearable:e.clearable,valueFormat:e.valueFormat,placeholder:e.endPlaceholder,value:x.value,"is-date-disabled":$,"onUpdate:value":l[2]||(l[2]=e=>T(e,"end"))},null,8,["type","clearable","valueFormat","placeholder","value"])])):n("v-if",!0)]))}});export{w as default};
@@ -1 +1 @@
1
- import{defineComponent as e,ref as a,computed as t,watch as l,openBlock as r,createBlock as u,unref as d}from"vue";import s from"../../../../../date-picker/index.js";import f from"moment";import{isString as n}from"lodash-es";var o=e({__name:"DateRangeOut",props:{type:{type:String,default:"daterange"},clearable:{type:Boolean,default:!1},startPlaceholder:{type:String,default:"起始"},endPlaceholder:{type:String,default:"截止"},componentCfg:{type:Object,default:()=>({})},value:{type:String,default:""}},emits:["update:value"],setup(e,{emit:o}){const c=e,p=a(),v=t((()=>{let e="";switch(c.type){case"daterange":e="YYYY-MM-DD";break;case"datetimerange":e="YYYY-MM-DD HH:mm:ss"}return e})),m={"今天":[f().startOf("day").valueOf(),f().endOf("day").valueOf()],"昨天":[f().subtract(1,"days").startOf("day").valueOf(),f().subtract(1,"days").endOf("day").valueOf()],"近一周":[f().subtract(1,"w").startOf("day").valueOf(),f().endOf("day").valueOf()],"近一月":[f().subtract(1,"months").startOf("day").valueOf(),f().endOf("day").valueOf()]};function i(e){if(e){const[a,t]=e,l=`${f(a).format(v.value)} ~ ${f(t).format(v.value)}`;o("update:value",l)}else o("update:value",e)}return l((()=>c.value),(e=>{if(e&&n(e)&&e.includes("~")){const[a,t]=e.split("~");p.value=[f(a.trim()).valueOf(),f(t.trim()).valueOf()]}else p.value=null}),{immediate:!0}),(a,t)=>(r(),u(d(s),{type:e.type,clearable:e.clearable,startPlaceholder:e.startPlaceholder,endPlaceholder:e.endPlaceholder,value:p.value,shortcuts:m,"onUpdate:value":i},null,8,["type","clearable","startPlaceholder","endPlaceholder","value"]))}});export{o as default};
1
+ import{defineComponent as e,ref as a,computed as t,watch as l,openBlock as r,createBlock as u,unref as d}from"vue";import s from"../../../../../date-picker/index.js";import f from"moment";import{isString as o}from"lodash-es";var n=e({__name:"DateRangeOut",props:{type:{type:String,default:"daterange"},clearable:{type:Boolean,default:!1},startPlaceholder:{type:String,default:"起始"},endPlaceholder:{type:String,default:"截止"},componentCfg:{type:Object,default:()=>({})},value:{type:String,default:""}},emits:["update:value"],setup(e,{emit:n}){const c=e,p=a(),v=t((()=>{let e="";switch(c.type){case"daterange":e="YYYY-MM-DD";break;case"datetimerange":e="YYYY-MM-DD HH:mm:ss"}return e})),m={"今天":[f().startOf("day").valueOf(),f().endOf("day").valueOf()],"昨天":[f().subtract(1,"days").startOf("day").valueOf(),f().subtract(1,"days").endOf("day").valueOf()],"近一周":[f().subtract(1,"w").startOf("day").valueOf(),f().endOf("day").valueOf()],"近一月":[f().subtract(1,"months").startOf("day").valueOf(),f().endOf("day").valueOf()]};function i(e){if(e){const[a,t]=e,l=`${f(a).format(v.value)} ~ ${f(t).format(v.value)}`;n("update:value",l)}else n("update:value",e)}return l((()=>c.value),(e=>{if(e&&o(e)&&e.includes("~")){const[a,t]=e.split("~");p.value=[f(a.trim()).valueOf(),f(t.trim()).valueOf()]}else p.value=null}),{immediate:!0}),(a,t)=>(r(),u(d(s),{to:"body",type:e.type,clearable:e.clearable,startPlaceholder:e.startPlaceholder,endPlaceholder:e.endPlaceholder,value:p.value,shortcuts:m,"onUpdate:value":i},null,8,["type","clearable","startPlaceholder","endPlaceholder","value"]))}});export{n as default};