cnhis-design-vue 3.1.46-beta.8 → 3.1.46-release.0

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 (168) hide show
  1. package/README.md +87 -87
  2. package/es/components/base-search/index.d.ts +8 -17
  3. package/es/components/base-search/src/index.vue.d.ts +8 -17
  4. package/es/components/base-search/src/index.vue2.js +1 -1
  5. package/es/components/base-search/style/index.css +1 -1
  6. package/es/components/classification/index.d.ts +18 -219
  7. package/es/components/classification/src/components/search-filter/index.vue.d.ts +18 -219
  8. package/es/components/classification/src/components/search-filter/index.vue2.js +1 -1
  9. package/es/components/classification/src/components/set-classification/index.vue.d.ts +18 -219
  10. package/es/components/classification/src/index.vue.d.ts +18 -219
  11. package/es/components/fabric-chart/src/FabricChart.vue2.js +1 -1
  12. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +1 -1
  13. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.js +1 -1
  14. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.js +1 -1
  15. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.js +1 -1
  16. package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +1 -1
  17. package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
  18. package/es/components/fabric-chart/src/hooks/useCumputedPoint.js +1 -1
  19. package/es/components/fabric-chart/src/utils/index.d.ts +0 -1
  20. package/es/components/fabric-chart/src/utils/index.js +1 -1
  21. package/es/components/form-render/src/components/renderer/radio_checkbox.js +1 -1
  22. package/es/components/iho-table/src/hooks/tapHooks/useSetupHooks.d.ts +1 -1
  23. package/es/components/iho-table/src/hooks/tapHooks/useSetupHooks.js +1 -1
  24. package/es/components/index.css +1 -1
  25. package/es/components/index.d.ts +1 -2
  26. package/es/components/index.js +1 -1
  27. package/es/components/quick-search/index.d.ts +7 -21
  28. package/es/components/quick-search/src/index.vue.d.ts +7 -21
  29. package/es/components/quick-search/src/index.vue2.js +1 -1
  30. package/es/components/quick-search/style/index.css +1 -1
  31. package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
  32. package/es/components/select-label/src/LabelFormContent.vue2.js +1 -1
  33. package/es/components/select-person/src/SearchMultiple.vue.d.ts +6 -0
  34. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +17 -219
  35. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue2.js +1 -1
  36. package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +1 -17
  37. package/es/components/table-filter/src/components/classify-filter/components/Date.vue2.js +1 -1
  38. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +0 -19
  39. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue2.js +1 -1
  40. package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue.d.ts +11 -178
  41. package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue2.js +1 -1
  42. package/es/components/table-filter/src/components/classify-filter/components/SelectFilter.vue.d.ts +5 -1
  43. package/es/components/table-filter/src/components/classify-filter/components/SelectFilter.vue2.js +1 -1
  44. package/es/components/table-filter/src/components/classify-filter/components/SelectLabel.vue.d.ts +1 -2
  45. package/es/components/table-filter/src/components/classify-filter/components/SelectLabel.vue2.js +1 -1
  46. package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +17 -217
  47. package/es/components/table-filter/src/components/classify-filter/hooks/useFilterConditions.js +1 -1
  48. package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +17 -219
  49. package/es/components/table-filter/src/components/classify-filter/index.vue2.js +1 -1
  50. package/es/components/table-filter/src/components/render-widget/basicData.d.ts +4 -0
  51. package/es/components/table-filter/src/components/render-widget/basicData.js +1 -0
  52. package/es/components/table-filter/src/components/render-widget/components/{DateOut.vue.d.ts → Date.vue.d.ts} +2 -21
  53. package/es/components/table-filter/src/components/render-widget/components/Date.vue.js +1 -0
  54. package/es/components/table-filter/src/components/render-widget/components/Date.vue2.js +1 -0
  55. package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +8 -117
  56. package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue2.js +1 -1
  57. package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.d.ts +9 -13
  58. package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue2.js +1 -1
  59. package/es/components/table-filter/src/components/render-widget/components/LabelInner.vue.d.ts +6 -8
  60. package/es/components/table-filter/src/components/render-widget/components/LabelInner.vue2.js +1 -1
  61. package/es/components/table-filter/src/components/render-widget/components/LabelOut.vue.d.ts +6 -7
  62. package/es/components/table-filter/src/components/render-widget/components/LabelOut.vue2.js +1 -1
  63. package/es/components/table-filter/src/components/render-widget/components/Select.vue.d.ts +25 -19
  64. package/es/components/table-filter/src/components/render-widget/components/Select.vue2.js +1 -1
  65. package/es/components/table-filter/src/components/render-widget/components/index.d.ts +36 -611
  66. package/es/components/table-filter/src/components/render-widget/components/index.js +1 -1
  67. package/es/components/table-filter/src/components/render-widget/enums.d.ts +3 -10
  68. package/es/components/table-filter/src/components/render-widget/enums.js +1 -1
  69. package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.d.ts +6 -2
  70. package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.js +1 -1
  71. package/es/components/table-filter/src/components/render-widget/index.vue.d.ts +3 -4
  72. package/es/components/table-filter/src/components/render-widget/index.vue.js +1 -1
  73. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +35 -639
  74. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +1 -1
  75. package/es/components/table-filter/src/constants/index.d.ts +1 -3
  76. package/es/components/table-filter/src/constants/index.js +1 -1
  77. package/es/components/table-filter/src/hooks/useAdvanced.d.ts +4 -9
  78. package/es/components/table-filter/src/hooks/useAdvanced.js +1 -1
  79. package/es/components/table-filter/src/hooks/useRenderWidget.d.ts +3 -3
  80. package/es/components/table-filter/src/hooks/useRenderWidget.js +1 -1
  81. package/es/components/table-filter/src/tool/baseOptions.d.ts +8 -0
  82. package/es/components/table-filter/src/tool/baseOptions.js +1 -1
  83. package/es/components/table-filter/src/tool/generateDefOptions.d.ts +7 -0
  84. package/es/components/table-filter/src/tool/generateDefOptions.js +1 -0
  85. package/es/components/table-filter/src/tool/transformData.d.ts +1 -0
  86. package/es/components/table-filter/src/tool/transformData.js +1 -1
  87. package/es/components/table-filter/src/types/enums.d.ts +0 -3
  88. package/es/components/table-filter/src/types/enums.js +1 -1
  89. package/es/components/table-filter/src/types/index.d.ts +0 -7
  90. package/es/env.d.ts +25 -25
  91. package/es/shared/assets/img/failure.png.js +1 -1
  92. package/es/shared/assets/img/no-permission.png.js +1 -1
  93. package/es/shared/assets/img/nodata.png.js +1 -1
  94. package/es/shared/assets/img/notfound.png.js +1 -1
  95. package/es/shared/assets/img/qr.png.js +1 -1
  96. package/es/shared/assets/img/success.png.js +1 -1
  97. package/es/shared/assets/img/video.png.js +1 -1
  98. package/es/shared/assets/img/video_default_cover.png.js +1 -1
  99. package/es/shared/assets/img/xb_big.png.js +1 -1
  100. package/es/shared/assets/img/xb_small.png.js +1 -1
  101. package/es/shared/package.json.js +1 -1
  102. package/es/shared/utils/fabricjs/index.js +1 -1
  103. package/package.json +2 -2
  104. package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
  105. package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
  106. package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
  107. package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
  108. package/es/components/form-render/src/components/renderer/dist/levelSearchCascader.d.ts +0 -77
  109. package/es/components/form-render/src/components/renderer/dist/searchCascade.d.ts +0 -93
  110. package/es/components/iho-table/src/plugins/dist/highLightSetPlugin.d.ts +0 -3
  111. package/es/components/iho-table/src/plugins/filterRenderPlugin/dist/index.d.ts +0 -3
  112. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/dist/index.d.ts +0 -3
  113. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/dist/defaultRendererPlugin.d.ts +0 -3
  114. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/dist/seqRendererPlugin.d.ts +0 -3
  115. package/es/components/iho-table/src/plugins/varialbleHeightPlugin/dist/index.d.ts +0 -3
  116. package/es/components/iho-table/src/utils/dist/index.d.ts +0 -44
  117. package/es/components/scale-view/src/components/formitem/dist/r-address.d.ts +0 -36
  118. package/es/components/scale-view/src/components/formitem/dist/r-sign.d.ts +0 -36
  119. package/es/components/scale-view/src/components/formitem/dist/standard-modal.d.ts +0 -82
  120. package/es/components/search-cascader/src/components/dist/SearchMenu.d.ts +0 -57
  121. package/es/components/search-cascader/src/components/dist/SearchMenu1.d.ts +0 -57
  122. package/es/components/table-export-field/index.d.ts +0 -967
  123. package/es/components/table-export-field/index.js +0 -1
  124. package/es/components/table-export-field/src/components/ExportModal.vue.d.ts +0 -192
  125. package/es/components/table-export-field/src/components/ExportModal.vue.js +0 -1
  126. package/es/components/table-export-field/src/components/ExportModal.vue2.js +0 -1
  127. package/es/components/table-export-field/src/components/SaveProjectModal.vue.d.ts +0 -687
  128. package/es/components/table-export-field/src/components/SaveProjectModal.vue.js +0 -1
  129. package/es/components/table-export-field/src/components/SaveProjectModal.vue2.js +0 -1
  130. package/es/components/table-export-field/src/constants/index.d.ts +0 -3
  131. package/es/components/table-export-field/src/constants/index.js +0 -1
  132. package/es/components/table-export-field/src/hooks/useAsyncData.d.ts +0 -6
  133. package/es/components/table-export-field/src/hooks/useAsyncData.js +0 -1
  134. package/es/components/table-export-field/src/index.vue.d.ts +0 -968
  135. package/es/components/table-export-field/src/index.vue.js +0 -1
  136. package/es/components/table-export-field/src/index.vue2.js +0 -1
  137. package/es/components/table-export-field/src/types/index.d.ts +0 -6
  138. package/es/components/table-export-field/src/types/index.js +0 -1
  139. package/es/components/table-export-field/style/index.css +0 -1
  140. package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +0 -231
  141. package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.js +0 -1
  142. package/es/components/table-filter/src/components/render-widget/components/DateInner.vue2.js +0 -1
  143. package/es/components/table-filter/src/components/render-widget/components/DateOut.vue.js +0 -1
  144. package/es/components/table-filter/src/components/render-widget/components/DateOut.vue2.js +0 -1
  145. package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue.d.ts +0 -71
  146. package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue.js +0 -1
  147. package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue2.js +0 -1
  148. package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue.d.ts +0 -223
  149. package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue.js +0 -1
  150. package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue2.js +0 -1
  151. package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue.d.ts +0 -158
  152. package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue.js +0 -1
  153. package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue2.js +0 -1
  154. package/es/components/table-filter/src/components/render-widget/helpers/dateDisabled.d.ts +0 -27
  155. package/es/components/table-filter/src/components/render-widget/helpers/dateDisabled.js +0 -1
  156. package/es/components/table-filter/src/components/render-widget/helpers/dateExtraMap.d.ts +0 -55
  157. package/es/components/table-filter/src/components/render-widget/helpers/dateExtraMap.js +0 -1
  158. package/es/components/table-filter/src/components/render-widget/helpers/enums.d.ts +0 -56
  159. package/es/components/table-filter/src/components/render-widget/helpers/enums.js +0 -1
  160. package/es/components/table-filter/src/components/render-widget/helpers/selectExtraMap.d.ts +0 -4
  161. package/es/components/table-filter/src/components/render-widget/helpers/selectExtraMap.js +0 -1
  162. package/es/components/table-filter/src/components/render-widget/helpers/setDefaultValue.d.ts +0 -4
  163. package/es/components/table-filter/src/components/render-widget/helpers/setDefaultValue.js +0 -1
  164. package/es/components/table-filter/src/hooks/useAsyncData.d.ts +0 -4
  165. package/es/components/table-filter/src/hooks/useAsyncData.js +0 -1
  166. package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
  167. package/es/shared/utils/fabricjs/index.d.ts +0 -6823
  168. package/es/shared/utils/tapable/index.d.ts +0 -139
@@ -34,9 +34,6 @@ declare const _default: import("vue").DefineComponent<{
34
34
  presetValCp: import("vue").WritableComputedRef<string>;
35
35
  widgetType: import("vue").ComputedRef<any>;
36
36
  Date: import("vue").DefineComponent<{
37
- componentCfg: {
38
- type: ObjectConstructor;
39
- };
40
37
  paramCfg: {
41
38
  type: ObjectConstructor;
42
39
  default: null;
@@ -51,9 +48,6 @@ declare const _default: import("vue").DefineComponent<{
51
48
  };
52
49
  }, {
53
50
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
54
- componentCfg: {
55
- type: ObjectConstructor;
56
- };
57
51
  paramCfg: {
58
52
  type: ObjectConstructor;
59
53
  default: null;
@@ -76,17 +70,11 @@ declare const _default: import("vue").DefineComponent<{
76
70
  dateType: any;
77
71
  valueFormat: import("vue").ComputedRef<string>;
78
72
  compType: import("vue").ComputedRef<any>;
79
- optionSetting: import("vue").ComputedRef<any>;
73
+ mappingConfig: import("vue").ComputedRef<any>;
80
74
  widgetOptions: import("vue").ComputedRef<{
81
75
  label: string;
82
76
  value: string;
83
77
  }[]>;
84
- isDateDisabled: (ts: number) => boolean;
85
- timeDisabled: (ts: number) => {
86
- isHourDisabled(hour: number): boolean | undefined;
87
- isMinuteDisabled(minute: number, hour: number | null): boolean | undefined;
88
- isSecondDisabled(second: number, minute: number | null, hour: number | null): boolean | undefined;
89
- };
90
78
  CDatePicker: import("../../../..").SFCWithInstall<import("vue").DefineComponent<{
91
79
  updateUnchangedValue: {
92
80
  type: BooleanConstructor;
@@ -130,7 +118,6 @@ declare const _default: import("vue").DefineComponent<{
130
118
  WidgetValEnums: {
131
119
  CUSTOM: string;
132
120
  FIRST_VAL: string;
133
- WHOLE: string;
134
121
  NOW: string;
135
122
  TODAY: string;
136
123
  TODAY_START: string;
@@ -159,9 +146,6 @@ declare const _default: import("vue").DefineComponent<{
159
146
  LAST_YEAR: string;
160
147
  };
161
148
  }, 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<{
162
- componentCfg: {
163
- type: ObjectConstructor;
164
- };
165
149
  paramCfg: {
166
150
  type: ObjectConstructor;
167
151
  default: null;
@@ -269,7 +253,11 @@ declare const _default: import("vue").DefineComponent<{
269
253
  emit: (event: "update:modelValue", ...args: any[]) => void;
270
254
  valueCp: import("vue").WritableComputedRef<any>;
271
255
  optionSetting: import("vue").ComputedRef<any>;
272
- widgetOptions: import("vue").ComputedRef<any>;
256
+ mappingConfig: import("vue").ComputedRef<any>;
257
+ widgetOptions: import("vue").ComputedRef<{
258
+ label: string;
259
+ value: string;
260
+ }[]>;
273
261
  NSelect: any;
274
262
  WidgetOptionEnums: {
275
263
  RADIO: string;
@@ -309,7 +297,6 @@ declare const _default: import("vue").DefineComponent<{
309
297
  default: null;
310
298
  };
311
299
  }, {
312
- message: import("naive-ui").MessageApi;
313
300
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
314
301
  paramCfg: {
315
302
  type: ObjectConstructor;
@@ -322,195 +309,28 @@ declare const _default: import("vue").DefineComponent<{
322
309
  }>> & {
323
310
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
324
311
  }>>;
325
- getDynamicSelectData: (params: any, filterApiConfig: any) => Promise<any>;
312
+ handleGetConfigApi: (params: any, key: string, config: {} | undefined, filterApiConfigVal: any) => Promise<any>;
313
+ $attrs: {
314
+ [x: string]: unknown;
315
+ };
326
316
  emit: (event: "update:modelValue", ...args: any[]) => void;
317
+ selectOptions: import("vue").Ref<any[]>;
327
318
  isLoading: import("vue").Ref<boolean>;
328
319
  filterApiConfig: import("../../../..").AnyObject;
329
- classifyFilterList: import("vue").Ref<import("../../../..").AnyObject[]>;
330
- totalPage: import("vue").Ref<number>;
331
- menuProps: {
332
- class: string;
333
- };
334
- curPage: import("vue").Ref<number>;
335
- fieldTitleList: import("vue").Ref<any>;
336
- selectOptions: import("vue").Ref<any[]>;
337
- keywordVal: import("vue").Ref<any>;
320
+ valueCp: import("vue").WritableComputedRef<any>;
338
321
  optionSetting: import("vue").ComputedRef<any>;
339
322
  isMultiple: import("vue").ComputedRef<boolean>;
340
- dynamicOptionInfos: import("vue").ComputedRef<any>;
341
- isLastPage: import("vue").ComputedRef<boolean>;
342
- valueCp: import("vue").ComputedRef<string | number | any[]>;
343
- isInitRequest: import("vue").ComputedRef<boolean>;
344
- setOptionActive: (selectIds: string[]) => void;
345
- handleUpdateSelect: (value: string[] | null) => void;
346
- handleUpdatePage: (page: number) => Promise<void>;
347
- getOptionsData: (keyword: string, curPage: number) => Promise<any>;
348
- isWhole: (value: string) => boolean;
323
+ searchOptions: (keyword: string) => Promise<any>;
349
324
  _handleSearch: (query: string) => Promise<void>;
350
325
  handleSearch: (query: string) => Promise<void>;
351
326
  handleInitData: () => Promise<void>;
352
- handleClear: () => Promise<void>;
353
- handleUpdateShow: (show: boolean) => void;
327
+ renderLabel: (option: import("naive-ui").SelectOption) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
328
+ [key: string]: any;
329
+ }>;
354
330
  renderTag: ({ option, handleClose }: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
355
331
  [key: string]: any;
356
332
  }>;
357
- init: () => void;
358
333
  NSelect: any;
359
- SelectDynamicOption: import("vue").DefineComponent<{
360
- dynamicOptionInfo: {
361
- type: import("vue").PropType<import("../../../..").AnyObject>;
362
- default: () => {};
363
- };
364
- fieldTitleList: {
365
- type: import("vue").PropType<import("../../../..").AnyObject[]>;
366
- default: () => never[];
367
- };
368
- optionList: {
369
- type: import("vue").PropType<import("../../../..").AnyObject[]>;
370
- default: () => never[];
371
- };
372
- isMultiple: {
373
- type: BooleanConstructor;
374
- default: boolean;
375
- };
376
- curPage: {
377
- type: NumberConstructor;
378
- default: number;
379
- };
380
- isLastPage: {
381
- type: BooleanConstructor;
382
- default: boolean;
383
- };
384
- isShowWhole: {
385
- type: BooleanConstructor;
386
- default: boolean;
387
- };
388
- }, {
389
- selectMinWidth: number;
390
- props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
391
- dynamicOptionInfo: {
392
- type: import("vue").PropType<import("../../../..").AnyObject>;
393
- default: () => {};
394
- };
395
- fieldTitleList: {
396
- type: import("vue").PropType<import("../../../..").AnyObject[]>;
397
- default: () => never[];
398
- };
399
- optionList: {
400
- type: import("vue").PropType<import("../../../..").AnyObject[]>;
401
- default: () => never[];
402
- };
403
- isMultiple: {
404
- type: BooleanConstructor;
405
- default: boolean;
406
- };
407
- curPage: {
408
- type: NumberConstructor;
409
- default: number;
410
- };
411
- isLastPage: {
412
- type: BooleanConstructor;
413
- default: boolean;
414
- };
415
- isShowWhole: {
416
- type: BooleanConstructor;
417
- default: boolean;
418
- };
419
- }>> & {
420
- onUpdateSelect?: ((...args: any[]) => any) | undefined;
421
- onUpdatePage?: ((...args: any[]) => any) | undefined;
422
- }>>;
423
- emit: (event: "updateSelect" | "updatePage", ...args: any[]) => void;
424
- dragEndWidth: import("vue").Ref<number>;
425
- showKeys: import("vue").ComputedRef<any>;
426
- titleList: import("vue").ComputedRef<string[]>;
427
- handleSelect: (option: any) => void;
428
- searchByPage: (onePage: number) => void;
429
- changeWidth: ({ distance }: any) => void;
430
- saveWidth: () => void;
431
- NEmpty: any;
432
- NButtonGroup: any;
433
- NButton: any;
434
- NIcon: any;
435
- NPopover: any;
436
- vFlexibleResize: {
437
- mounted(el: any, { value }: any): void;
438
- beforeUnmount(el: any): void;
439
- };
440
- WidgetValEnums: {
441
- CUSTOM: string;
442
- FIRST_VAL: string;
443
- WHOLE: string;
444
- NOW: string;
445
- TODAY: string;
446
- TODAY_START: string;
447
- TODAY_END: string;
448
- TOMORROW: string;
449
- TOMORROW_START: string;
450
- TOMORROW_END: string;
451
- YESTERDAY: string;
452
- YESTERDAY_START: string;
453
- YESTERDAY_END: string;
454
- THIS_WEEK: string;
455
- WEEK_START: string;
456
- WEEK_END: string;
457
- NEXT_WEEK: string;
458
- LAST_WEEK: string;
459
- THIS_MONTH: string;
460
- MONTH_START: string;
461
- MONTH_END: string;
462
- NEXT_MONTH: string;
463
- LAST_MONTH: string;
464
- THIS_QUARTER: string;
465
- NEXT_QUARTER: string;
466
- LAST_QUARTER: string;
467
- THIS_YEAR: string;
468
- NEXT_YEAR: string;
469
- LAST_YEAR: string;
470
- };
471
- ArrowBack: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
472
- ArrowForward: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
473
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("updateSelect" | "updatePage")[], "updateSelect" | "updatePage", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
474
- dynamicOptionInfo: {
475
- type: import("vue").PropType<import("../../../..").AnyObject>;
476
- default: () => {};
477
- };
478
- fieldTitleList: {
479
- type: import("vue").PropType<import("../../../..").AnyObject[]>;
480
- default: () => never[];
481
- };
482
- optionList: {
483
- type: import("vue").PropType<import("../../../..").AnyObject[]>;
484
- default: () => never[];
485
- };
486
- isMultiple: {
487
- type: BooleanConstructor;
488
- default: boolean;
489
- };
490
- curPage: {
491
- type: NumberConstructor;
492
- default: number;
493
- };
494
- isLastPage: {
495
- type: BooleanConstructor;
496
- default: boolean;
497
- };
498
- isShowWhole: {
499
- type: BooleanConstructor;
500
- default: boolean;
501
- };
502
- }>> & {
503
- onUpdateSelect?: ((...args: any[]) => any) | undefined;
504
- onUpdatePage?: ((...args: any[]) => any) | undefined;
505
- }, {
506
- dynamicOptionInfo: import("../../../..").AnyObject;
507
- fieldTitleList: import("../../../..").AnyObject[];
508
- optionList: import("../../../..").AnyObject[];
509
- isMultiple: boolean;
510
- curPage: number;
511
- isLastPage: boolean;
512
- isShowWhole: boolean;
513
- }>;
514
334
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
515
335
  paramCfg: {
516
336
  type: ObjectConstructor;
@@ -616,15 +436,8 @@ declare const _default: import("vue").DefineComponent<{
616
436
  valueFormat: import("vue").ComputedRef<string>;
617
437
  dateFormat: import("vue").ComputedRef<string>;
618
438
  compType: import("vue").ComputedRef<any>;
619
- optionSetting: import("vue").ComputedRef<any>;
620
- isPastTime: import("vue").ComputedRef<boolean>;
621
- isFutureTime: import("vue").ComputedRef<boolean>;
622
439
  startPlaceholder: import("vue").ComputedRef<"初始日期" | "初始时间">;
623
440
  endPlaceholder: import("vue").ComputedRef<"截止日期" | "截止时间">;
624
- startDefault: import("vue").ComputedRef<string>;
625
- endDefault: import("vue").ComputedRef<string>;
626
- startDateFormat: import("vue").ComputedRef<string | null>;
627
- endDateFormat: import("vue").ComputedRef<string | null>;
628
441
  dateType: any;
629
442
  widgetOptions: import("vue").ComputedRef<{
630
443
  label: string;
@@ -633,19 +446,8 @@ declare const _default: import("vue").DefineComponent<{
633
446
  presetValCp: import("vue").WritableComputedRef<string>;
634
447
  handleChange: (val: any, type: "end" | "start") => void;
635
448
  isStartDateDisabled: (ts: number) => boolean;
636
- timeStartDisabled: (ts: number) => {
637
- isHourDisabled(hour: number): boolean | 0;
638
- isMinuteDisabled(minute: number, hour: number | null): boolean | 0;
639
- isSecondDisabled(second: number, minute: number | null, hour: number | null): boolean | 0;
640
- };
641
449
  isEndDateDisabled: (ts: number) => boolean;
642
- timeEndDisabled: (ts: number) => {
643
- isHourDisabled(hour: number): boolean | 0;
644
- isMinuteDisabled(minute: number, hour: number | null): boolean | 0;
645
- isSecondDisabled(second: number, minute: number | null, hour: number | null): boolean | 0;
646
- };
647
450
  NSelect: any;
648
- NPopover: any;
649
451
  CDatePicker: import("../../../..").SFCWithInstall<import("vue").DefineComponent<{
650
452
  updateUnchangedValue: {
651
453
  type: BooleanConstructor;
@@ -688,7 +490,6 @@ declare const _default: import("vue").DefineComponent<{
688
490
  WidgetValEnums: {
689
491
  CUSTOM: string;
690
492
  FIRST_VAL: string;
691
- WHOLE: string;
692
493
  NOW: string;
693
494
  TODAY: string;
694
495
  TODAY_START: string;
@@ -747,8 +548,7 @@ declare const _default: import("vue").DefineComponent<{
747
548
  default: null;
748
549
  };
749
550
  }, {
750
- getDynamicLabelData: (params: any, filterApiConfig: any) => Promise<any>;
751
- message: import("naive-ui").MessageApi;
551
+ handleGetConfigApi: (params: any, key: string, config: {} | undefined, filterApiConfigVal: any) => Promise<any>;
752
552
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
753
553
  paramCfg: {
754
554
  type: ObjectConstructor;
@@ -788,9 +588,7 @@ declare const _default: import("vue").DefineComponent<{
788
588
  INPUT: string;
789
589
  SELECT: string;
790
590
  DATE: string;
791
- DATE_OUT: string;
792
591
  DATE_TIME: string;
793
- DATETIME_OUT: string;
794
592
  CHECKBOX_GROUP: string;
795
593
  INPUTNUMBER_RANGE: string;
796
594
  DATE_RANGE_OUT: string;
@@ -1 +1 @@
1
- import{defineComponent as e,computed as l,openBlock as a,createElementBlock as u,createCommentVNode as p,unref as m,createBlock as t,isRef as d}from"vue";import{InputNumber as o,InputFilter as r,SelectFilter as n,Date as V,SelectDynamic as f,InputNumberGroup as g,DateRange as s,SelectLabel as C}from"./components/index.js";import{WidgetTypeEnums as v}from"../../types/enums.js";const i={class:"value-cfg_wrapper"};var E=e({__name:"ValueCfg",props:{paramCfg:{type:Object,default:null},modelValue:{type:[String,Number,Array],default:null},presetVal:{type:String,default:null}},emits:["update:modelValue","update:presetVal"],setup(e,{emit:E}){const y=e,U=l({set(e){E("update:modelValue",e)},get:()=>y.modelValue}),N=l({set(e){E("update:presetVal",e)},get:()=>y.presetVal}),T=l((()=>{var e;return null==(e=y.paramCfg)?void 0:e.type}));return(l,E)=>(a(),u("div",i,[p(" 数字框 "),m(T)===m(v).INPUT_NUMBER?(a(),t(m(o),{key:0,modelValue:m(U),"onUpdate:modelValue":E[0]||(E[0]=e=>d(U)?U.value=e:null)},null,8,["modelValue"])):p("v-if",!0),p(" 文本框 "),m(T)===m(v).INPUT?(a(),t(m(r),{key:1,modelValue:m(U),"onUpdate:modelValue":E[1]||(E[1]=e=>d(U)?U.value=e:null)},null,8,["modelValue"])):p("v-if",!0),p(" 普通下拉框 "),m(T)===m(v).SELECT?(a(),t(m(n),{key:2,paramCfg:e.paramCfg,widgetType:m(T),modelValue:m(U),"onUpdate:modelValue":E[2]||(E[2]=e=>d(U)?U.value=e:null)},null,8,["paramCfg","widgetType","modelValue"])):p("v-if",!0),p(" 日期框、日期时间框 "),m(T)===m(v).DATE||m(T)===m(v).DATE_TIME?(a(),t(m(V),{key:3,paramCfg:e.paramCfg,modelValue:m(U),"onUpdate:modelValue":E[3]||(E[3]=e=>d(U)?U.value=e:null),presetVal:m(N),"onUpdate:presetVal":E[4]||(E[4]=e=>d(N)?N.value=e:null)},null,8,["paramCfg","modelValue","presetVal"])):p("v-if",!0),p(" 异步数据源下拉框 "),m(T)===m(v).SELECTDYNAMIC?(a(),t(m(f),{key:4,paramCfg:e.paramCfg,modelValue:m(U),"onUpdate:modelValue":E[5]||(E[5]=e=>d(U)?U.value=e:null)},null,8,["paramCfg","modelValue"])):p("v-if",!0),p(" 数字框范围 "),m(T)===m(v).INPUTNUMBER_RANGE?(a(),t(m(g),{key:5,paramCfg:e.paramCfg,modelValue:m(U),"onUpdate:modelValue":E[6]||(E[6]=e=>d(U)?U.value=e:null)},null,8,["paramCfg","modelValue"])):p("v-if",!0),p(" 日期、日期时间范围 "),m(T)===m(v).DATE_RANGE_INNER||m(T)===m(v).DATETIME_RANGE_INNER?(a(),t(m(s),{key:6,paramCfg:e.paramCfg,modelValue:m(U),"onUpdate:modelValue":E[7]||(E[7]=e=>d(U)?U.value=e:null),presetVal:m(N),"onUpdate:presetVal":E[8]||(E[8]=e=>d(N)?N.value=e:null)},null,8,["paramCfg","modelValue","presetVal"])):p("v-if",!0),p(" label标签选择 "),m(T)===m(v).SELECTLABEL?(a(),t(m(C),{key:7,paramCfg:e.paramCfg,modelValue:m(U),"onUpdate:modelValue":E[9]||(E[9]=e=>d(U)?U.value=e:null)},null,8,["paramCfg","modelValue"])):p("v-if",!0)]))}});export{E as default};
1
+ import{defineComponent as e,computed as l,openBlock as a,createElementBlock as u,createCommentVNode as p,unref as m,createBlock as t,isRef as d}from"vue";import{InputNumber as o,InputFilter as r,SelectFilter as n,Date as V,SelectDynamic as f,InputNumberGroup as g,DateRange as s,SelectLabel as C}from"./components/index.js";import{WidgetTypeEnums as v}from"../../types/enums.js";const i={class:"value-cfg_wrapper"};var E=e({__name:"ValueCfg",props:{paramCfg:{type:Object,default:null},modelValue:{type:[String,Number,Array],default:null},presetVal:{type:String,default:null}},emits:["update:modelValue","update:presetVal"],setup(e,{emit:E}){const y=e,U=l({set(e){E("update:modelValue",e)},get:()=>y.modelValue}),N=l({set(e){E("update:presetVal",e)},get:()=>y.presetVal}),T=l((()=>{var e;return null==(e=y.paramCfg)?void 0:e.type}));return(l,E)=>(a(),u("div",i,[p(" 数字框 "),m(T)===m(v).INPUT_NUMBER?(a(),t(m(o),{key:0,modelValue:m(U),"onUpdate:modelValue":E[0]||(E[0]=e=>d(U)?U.value=e:null)},null,8,["modelValue"])):p("v-if",!0),p(" 文本框 "),m(T)===m(v).INPUT?(a(),t(m(r),{key:1,modelValue:m(U),"onUpdate:modelValue":E[1]||(E[1]=e=>d(U)?U.value=e:null)},null,8,["modelValue"])):p("v-if",!0),p(" 下拉框 "),m(T)===m(v).SELECT?(a(),t(m(n),{key:2,paramCfg:e.paramCfg,widgetType:m(T),modelValue:m(U),"onUpdate:modelValue":E[2]||(E[2]=e=>d(U)?U.value=e:null)},null,8,["paramCfg","widgetType","modelValue"])):p("v-if",!0),p(" 日期框、日期时间框 "),m(T)===m(v).DATE||m(T)===m(v).DATE_TIME?(a(),t(m(V),{key:3,paramCfg:e.paramCfg,modelValue:m(U),"onUpdate:modelValue":E[3]||(E[3]=e=>d(U)?U.value=e:null),presetVal:m(N),"onUpdate:presetVal":E[4]||(E[4]=e=>d(N)?N.value=e:null)},null,8,["paramCfg","modelValue","presetVal"])):p("v-if",!0),p(" 异步数据源下拉框 "),m(T)===m(v).SELECTDYNAMIC?(a(),t(m(f),{key:4,paramCfg:e.paramCfg,modelValue:m(U),"onUpdate:modelValue":E[5]||(E[5]=e=>d(U)?U.value=e:null)},null,8,["paramCfg","modelValue"])):p("v-if",!0),p(" 数字框范围 "),m(T)===m(v).INPUTNUMBER_RANGE?(a(),t(m(g),{key:5,paramCfg:e.paramCfg,modelValue:m(U),"onUpdate:modelValue":E[6]||(E[6]=e=>d(U)?U.value=e:null)},null,8,["paramCfg","modelValue"])):p("v-if",!0),p(" 日期、日期时间范围 "),m(T)===m(v).DATE_RANGE_INNER||m(T)===m(v).DATETIME_RANGE_INNER?(a(),t(m(s),{key:6,paramCfg:e.paramCfg,modelValue:m(U),"onUpdate:modelValue":E[7]||(E[7]=e=>d(U)?U.value=e:null),presetVal:m(N),"onUpdate:presetVal":E[8]||(E[8]=e=>d(N)?N.value=e:null)},null,8,["paramCfg","modelValue","presetVal"])):p("v-if",!0),p(" label标签选择 "),m(T)===m(v).SELECTLABEL?(a(),t(m(C),{key:7,paramCfg:e.paramCfg,modelValue:m(U),"onUpdate:modelValue":E[9]||(E[9]=e=>d(U)?U.value=e:null)},null,8,["paramCfg","modelValue"])):p("v-if",!0)]))}});export{E as default};
@@ -1,7 +1,4 @@
1
1
  declare const _default: import("vue").DefineComponent<{
2
- componentCfg: {
3
- type: ObjectConstructor;
4
- };
5
2
  paramCfg: {
6
3
  type: ObjectConstructor;
7
4
  default: null;
@@ -16,9 +13,6 @@ declare const _default: import("vue").DefineComponent<{
16
13
  };
17
14
  }, {
18
15
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
19
- componentCfg: {
20
- type: ObjectConstructor;
21
- };
22
16
  paramCfg: {
23
17
  type: ObjectConstructor;
24
18
  default: null;
@@ -41,17 +35,11 @@ declare const _default: import("vue").DefineComponent<{
41
35
  dateType: any;
42
36
  valueFormat: import("vue").ComputedRef<string>;
43
37
  compType: import("vue").ComputedRef<any>;
44
- optionSetting: import("vue").ComputedRef<any>;
38
+ mappingConfig: import("vue").ComputedRef<any>;
45
39
  widgetOptions: import("vue").ComputedRef<{
46
40
  label: string;
47
41
  value: string;
48
42
  }[]>;
49
- isDateDisabled: (ts: number) => boolean;
50
- timeDisabled: (ts: number) => {
51
- isHourDisabled(hour: number): boolean | undefined;
52
- isMinuteDisabled(minute: number, hour: number | null): boolean | undefined;
53
- isSecondDisabled(second: number, minute: number | null, hour: number | null): boolean | undefined;
54
- };
55
43
  CDatePicker: import("../../../../..").SFCWithInstall<import("vue").DefineComponent<{
56
44
  updateUnchangedValue: {
57
45
  type: BooleanConstructor;
@@ -95,7 +83,6 @@ declare const _default: import("vue").DefineComponent<{
95
83
  WidgetValEnums: {
96
84
  CUSTOM: string;
97
85
  FIRST_VAL: string;
98
- WHOLE: string;
99
86
  NOW: string;
100
87
  TODAY: string;
101
88
  TODAY_START: string;
@@ -124,9 +111,6 @@ declare const _default: import("vue").DefineComponent<{
124
111
  LAST_YEAR: string;
125
112
  };
126
113
  }, 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<{
127
- componentCfg: {
128
- type: ObjectConstructor;
129
- };
130
114
  paramCfg: {
131
115
  type: ObjectConstructor;
132
116
  default: null;
@@ -1 +1 @@
1
- import{defineComponent as e,computed as t,openBlock as a,createElementBlock as l,createVNode as r,unref as u,isRef as o,createBlock as s,createCommentVNode as p}from"vue";import d from"../../../../../date-picker/index.js";import{NSelect as n}from"naive-ui";import{WidgetTypeEnums as i,WidgetOptionEnums as m,WidgetValEnums as v}from"../../../types/enums.js";import{WidgetDateOptionEnums as f}from"../../render-widget/helpers/enums.js";import{widgetDateValOptions as y}from"../../render-widget/helpers/dateExtraMap.js";import{setDateDisabled as c,setTimeDisabled as b}from"../../render-widget/helpers/dateDisabled.js";const g={style:{display:"flex"}};var w=e({__name:"Date",props:{componentCfg:{type:Object},paramCfg:{type:Object,default:null},modelValue:{type:[String,Number,Array],default:null},presetVal:{type:String,default:null}},emits:["update:modelValue","update:presetVal"],setup(e,{emit:w}){const C=e,M=t({set(e){w("update:modelValue",e)},get:()=>C.modelValue}),V=t({set(e){w("update:presetVal",e)},get:()=>C.presetVal}),j=t((()=>T.value.toLowerCase()||i.DATE.toLowerCase())),D=t((()=>{let e="";switch(T.value){case i.DATE:e="yyyy-MM-dd";break;case i.DATE_TIME:e="yyyy-MM-dd HH:mm:ss"}return e})),T=t((()=>C.paramCfg._rawData.type)),h=t((()=>{var e,t;return null==(t=null==(e=C.paramCfg)?void 0:e._rawData)?void 0:t.optionType})),_=t((()=>{var e;const t=h.value||m.ALL;if(T.value&&t){const a=`${T.value}_${t}`,l=f[a];let r=(null!=(e=y[l])?e:[]).map((e=>({label:e.title,value:e.con})));return r.unshift({label:"自定义输入",value:v.CUSTOM}),r}return[]}));function x(e){return c(e,h.value)}function A(e){return b(e,h.value)}return(e,t)=>(a(),l("div",g,[r(u(n),{style:{width:"120px"},class:"form-item",to:"body",value:u(V),"onUpdate:value":t[0]||(t[0]=e=>o(V)?V.value=e:null),options:u(_)},null,8,["value","options"]),u(V)===u(v).CUSTOM?(a(),s(u(d),{key:0,class:"form-item",type:u(j),clearable:"",to:"body","is-date-disabled":x,"is-time-disabled":A,valueFormat:u(D),"formatted-value":u(M),"onUpdate:formatted-value":t[1]||(t[1]=e=>o(M)?M.value=e:null)},null,8,["type","valueFormat","formatted-value"])):p("v-if",!0)]))}});export{w as default};
1
+ import{defineComponent as e,computed as t,openBlock as a,createElementBlock as l,Fragment as r,createVNode as u,unref as o,isRef as p,createBlock as m,createCommentVNode as s}from"vue";import n from"../../../../../date-picker/index.js";import{NSelect as d}from"naive-ui";import{WidgetTypeEnums as i,WidgetValEnums as v}from"../../../types/enums.js";import{generateDefOptionsInApi as f}from"../../../tool/generateDefOptions.js";var y=e({__name:"Date",props:{paramCfg:{type:Object,default:null},modelValue:{type:[String,Number,Array],default:null},presetVal:{type:String,default:null}},emits:["update:modelValue","update:presetVal"],setup(e,{emit:y}){const c=e,g=t({set(e){y("update:modelValue",e)},get:()=>c.modelValue}),T=t({set(e){y("update:presetVal",e)},get:()=>c.presetVal}),C=t((()=>M.value.toLowerCase()||i.DATE.toLowerCase())),D=t((()=>{let e="";switch(M.value){case i.DATE:e="yyyy-MM-dd";break;case i.DATE_TIME:e="yyyy-MM-dd HH:mm:ss"}return e})),M=t((()=>c.paramCfg._rawData.type)),V=t((()=>{var e;return null==(e=c.paramCfg)?void 0:e.mappingConfig})),b=t((()=>{const e=f(M.value,V.value).slice(0);return M.value!==i.DATE&&M.value!==i.DATE_TIME||e.unshift({label:"自定义输入",value:v.CUSTOM}),e}));return(e,t)=>(a(),l(r,null,[u(o(d),{style:{width:"120px"},class:"form-item",to:"body",value:o(T),"onUpdate:value":t[0]||(t[0]=e=>p(T)?T.value=e:null),options:o(b)},null,8,["value","options"]),o(T)===o(v).CUSTOM?(a(),m(o(n),{key:0,class:"form-item",type:o(C),clearable:"",to:"body",valueFormat:o(D),"formatted-value":o(g),"onUpdate:formatted-value":t[1]||(t[1]=e=>p(g)?g.value=e:null)},null,8,["type","valueFormat","formatted-value"])):s("v-if",!0)],64))}});export{y as default};
@@ -35,15 +35,8 @@ declare const _default: import("vue").DefineComponent<{
35
35
  valueFormat: import("vue").ComputedRef<string>;
36
36
  dateFormat: import("vue").ComputedRef<string>;
37
37
  compType: import("vue").ComputedRef<any>;
38
- optionSetting: import("vue").ComputedRef<any>;
39
- isPastTime: import("vue").ComputedRef<boolean>;
40
- isFutureTime: import("vue").ComputedRef<boolean>;
41
38
  startPlaceholder: import("vue").ComputedRef<"初始日期" | "初始时间">;
42
39
  endPlaceholder: import("vue").ComputedRef<"截止日期" | "截止时间">;
43
- startDefault: import("vue").ComputedRef<string>;
44
- endDefault: import("vue").ComputedRef<string>;
45
- startDateFormat: import("vue").ComputedRef<string | null>;
46
- endDateFormat: import("vue").ComputedRef<string | null>;
47
40
  dateType: any;
48
41
  widgetOptions: import("vue").ComputedRef<{
49
42
  label: string;
@@ -52,19 +45,8 @@ declare const _default: import("vue").DefineComponent<{
52
45
  presetValCp: import("vue").WritableComputedRef<string>;
53
46
  handleChange: (val: any, type: 'start' | 'end') => void;
54
47
  isStartDateDisabled: (ts: number) => boolean;
55
- timeStartDisabled: (ts: number) => {
56
- isHourDisabled(hour: number): boolean | 0;
57
- isMinuteDisabled(minute: number, hour: number | null): boolean | 0;
58
- isSecondDisabled(second: number, minute: number | null, hour: number | null): boolean | 0;
59
- };
60
48
  isEndDateDisabled: (ts: number) => boolean;
61
- timeEndDisabled: (ts: number) => {
62
- isHourDisabled(hour: number): boolean | 0;
63
- isMinuteDisabled(minute: number, hour: number | null): boolean | 0;
64
- isSecondDisabled(second: number, minute: number | null, hour: number | null): boolean | 0;
65
- };
66
49
  NSelect: any;
67
- NPopover: any;
68
50
  CDatePicker: import("../../../../..").SFCWithInstall<import("vue").DefineComponent<{
69
51
  updateUnchangedValue: {
70
52
  type: BooleanConstructor;
@@ -107,7 +89,6 @@ declare const _default: import("vue").DefineComponent<{
107
89
  WidgetValEnums: {
108
90
  CUSTOM: string;
109
91
  FIRST_VAL: string;
110
- WHOLE: string;
111
92
  NOW: string;
112
93
  TODAY: string;
113
94
  TODAY_START: string;
@@ -1 +1 @@
1
- import{defineComponent as e,ref as a,computed as l,watch as t,openBlock as u,createElementBlock as r,createVNode as i,unref as d,isRef as o,withCtx as s,toDisplayString as v,createCommentVNode as n}from"vue";import{NSelect as m,NPopover as p}from"naive-ui";import f from"../../../../../date-picker/index.js";import c from"moment";import{isString as y}from"lodash-es";import{WidgetOptionEnums as b,WidgetTypeEnums as g,WidgetValEnums as T}from"../../../types/enums.js";import{WidgetDateOptionEnums as h}from"../../render-widget/helpers/enums.js";import{widgetDateValOptions as D}from"../../render-widget/helpers/dateExtraMap.js";import{dateDisabledCollect as M,isStartDateRangeDisabled as E,isTimeStartRangeDisabled as _,isEndDateRangeDisabled as w,isTimeEndRangeDisabled as A}from"../../render-widget/helpers/dateDisabled.js";const V={style:{display:"flex"}},Y={key:0,style:{display:"flex"}},k={key:0},x={key:0};var C=e({__name:"DateRange",props:{paramCfg:{type:Object,default:null},modelValue:{type:[String,Number,Array],default:null},presetVal:{type:String,default:null}},emits:["update:modelValue","update:presetVal"],setup(e,{emit:C}){const U=e,j=a(),F=a(),O=l((()=>{let e="";switch(H.value){case g.DATE:e="yyyy-MM-dd";break;case g.DATE_TIME:e="yyyy-MM-dd HH:mm:ss"}return e})),S=l((()=>{let e="";switch(H.value){case g.DATE:e="YYYY-MM-DD";break;case g.DATE_TIME:e="YYYY-MM-DD HH:mm:ss"}return e})),H=l((()=>U.paramCfg._rawData.type)),I=l((()=>{var e,a;return null==(a=null==(e=U.paramCfg)?void 0:e._rawData)?void 0:a.optionType})),L=l((()=>I.value===b.PAST_TIME)),$=l((()=>I.value===b.FUTURE_TIME)),R=l((()=>H.value===g.DATE?"初始日期":"初始时间")),N=l((()=>H.value===g.DATE?"截止日期":"截止时间")),G=l((()=>$.value?M.curTime:"00:00:00")),P=l((()=>L.value?M.curTime:"23:59:59")),q=l((()=>j.value?c(j.value).format(S.value):null)),z=l((()=>F.value?c(F.value).format(S.value):null)),B=l((()=>H.value.toLowerCase()||g.DATE.toLowerCase())),J=l((()=>{var e;const a=I.value||b.ALL;if(H.value&&a){const l=`${H.value}_${a}_RANGE`,t=h[l];let u=(null!=(e=D[t])?e:[]).map((e=>({label:e.title,value:e.con})));return u.unshift({label:"自定义输入",value:T.CUSTOM}),u}return[]})),K=l({set(e){C("update:presetVal",e)},get:()=>U.presetVal});function Q(e,a){var l,t;switch(a){case"start":j.value=e;break;case"end":F.value=e}const u=q.value||z.value?`${null!=(l=q.value)?l:""} ~ ${null!=(t=z.value)?t:""}`:"";C("update:modelValue",u)}function W(e){return E(e,I.value,F.value)}function X(e){return _(e,I.value,F.value)}function Z(e){return w(e,I.value,j.value)}function ee(e){return A(e,I.value,j.value)}return t((()=>U.modelValue),(e=>{if(e&&y(e)&&e.includes("~")){const[a,l]=e.split("~");return a.trim()&&(j.value=c(a.trim()).valueOf()),void(l.trim()&&(F.value=c(l.trim()).valueOf()))}j.value=F.value=null}),{immediate:!0}),(e,a)=>(u(),r("div",V,[i(d(m),{style:{width:"120px"},class:"form-item",to:"body",value:d(K),"onUpdate:value":a[0]||(a[0]=e=>o(K)?K.value=e:null),options:d(J)},null,8,["value","options"]),d(K)===d(T).CUSTOM?(u(),r("div",Y,[i(d(p),{trigger:"hover",disabled:!d(q)},{trigger:s((()=>[i(d(f),{type:d(B),"default-time":d(G),clearable:"",to:"body",valueFormat:d(O),placeholder:d(R),value:j.value,"is-date-disabled":W,"is-time-disabled":X,"onUpdate:value":a[1]||(a[1]=e=>Q(e,"start"))},null,8,["type","default-time","valueFormat","placeholder","value"])])),default:s((()=>[d(q)?(u(),r("span",k,v(d(q)),1)):n("v-if",!0)])),_:1},8,["disabled"]),i(d(p),{trigger:"hover",disabled:!d(z)},{trigger:s((()=>[i(d(f),{style:{"margin-left":"5px"},type:d(B),"default-time":d(P),clearable:"",to:"body",valueFormat:d(O),placeholder:d(N),value:F.value,"is-date-disabled":Z,"is-time-disabled":ee,"onUpdate:value":a[2]||(a[2]=e=>Q(e,"end"))},null,8,["type","default-time","valueFormat","placeholder","value"])])),default:s((()=>[d(z)?(u(),r("span",x,v(d(z)),1)):n("v-if",!0)])),_:1},8,["disabled"])])):n("v-if",!0)]))}});export{C as default};
1
+ import{defineComponent as e,ref as a,computed as l,watch as t,openBlock as u,createElementBlock as r,Fragment as o,createVNode as s,unref as n,isRef as m,createCommentVNode as i}from"vue";import{NSelect as v}from"naive-ui";import d from"../../../../../date-picker/index.js";import p from"moment";import{cloneDeep as f,isString as c}from"lodash-es";import{WidgetTypeEnums as y,WidgetValEnums as b}from"../../../types/enums.js";import{widgetDateRangeOptions as D}from"../../../tool/baseOptions.js";const M={key:0,style:{display:"flex"}};var T=e({__name:"DateRange",props:{paramCfg:{type:Object,default:null},modelValue:{type:[String,Number,Array],default:null},presetVal:{type:String,default:null}},emits:["update:modelValue","update:presetVal"],setup(e,{emit:T}){const h=e,E=a(),A=a(),V=l((()=>{let e="";switch(g.value){case y.DATE:e="yyyy-MM-dd";break;case y.DATE_TIME:e="yyyy-MM-dd HH:mm:ss"}return e})),Y=l((()=>{let e="";switch(g.value){case y.DATE:e="YYYY-MM-DD";break;case y.DATE_TIME:e="YYYY-MM-DD HH:mm:ss"}return e})),g=l((()=>h.paramCfg._rawData.type)),w=l((()=>g.value===y.DATE?"初始日期":"初始时间")),C=l((()=>g.value===y.DATE?"截止日期":"截止时间")),O=l((()=>g.value.toLowerCase()||y.DATE.toLowerCase())),k=l((()=>{const e=f(D);return e.unshift({label:"自定义输入",value:b.CUSTOM}),e})),x=l({set(e){T("update:presetVal",e)},get:()=>h.presetVal});function U(e,a){switch(a){case"start":E.value=e;break;case"end":A.value=e}const l=E.value?p(E.value).format(Y.value):null,t=A.value?p(A.value).format(Y.value):null;T("update:modelValue",l||t?`${null!=l?l:""} ~ ${null!=t?t:""}`:"")}function _(e){return!!A.value&&e>A.value}function j(e){return!!E.value&&e<E.value}return t((()=>h.modelValue),(e=>{if(e&&c(e)&&e.includes("~")){const[a,l]=e.split("~");return a.trim()&&(E.value=p(a.trim()).valueOf()),void(l.trim()&&(A.value=p(l.trim()).valueOf()))}E.value=A.value=null}),{immediate:!0}),(e,a)=>(u(),r(o,null,[s(n(v),{style:{width:"120px"},class:"form-item",to:"body",value:n(x),"onUpdate:value":a[0]||(a[0]=e=>m(x)?x.value=e:null),options:n(k)},null,8,["value","options"]),n(x)===n(b).CUSTOM?(u(),r("div",M,[s(n(d),{type:n(O),"default-time":"00:00:00",clearable:"",to:"body",valueFormat:n(V),placeholder:n(w),value:E.value,"is-date-disabled":_,"onUpdate:value":a[1]||(a[1]=e=>U(e,"start"))},null,8,["type","valueFormat","placeholder","value"]),s(n(d),{style:{"margin-left":"5px"},type:n(O),"default-time":"23:59:59",clearable:"",to:"body",valueFormat:n(V),placeholder:n(C),value:A.value,"is-date-disabled":j,"onUpdate:value":a[2]||(a[2]=e=>U(e,"end"))},null,8,["type","valueFormat","placeholder","value"])])):i("v-if",!0)],64))}});export{T as default};