cnhis-design-vue 3.1.45-beta.9 → 3.1.45-release.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (204) hide show
  1. package/README.md +87 -87
  2. package/es/components/annotation-edit/src/AnnotationEdit.js +1 -1
  3. package/es/components/base-search/index.d.ts +0 -2
  4. package/es/components/base-search/src/index.vue.d.ts +0 -2
  5. package/es/components/base-search/style/index.css +1 -1
  6. package/es/components/classification/index.d.ts +11 -165
  7. package/es/components/classification/src/components/search-filter/index.vue.d.ts +11 -165
  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 +11 -165
  10. package/es/components/classification/src/index.vue.d.ts +11 -165
  11. package/es/components/fabric-chart/index.d.ts +5 -40
  12. package/es/components/fabric-chart/src/FabricChart.vue.d.ts +5 -40
  13. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +1 -1
  14. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.d.ts +0 -20
  15. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.js +1 -1
  16. package/es/components/fabric-chart/src/hooks/temperature/useLeft.js +1 -1
  17. package/es/components/fabric-chart/src/hooks/temperature/useRight.js +1 -1
  18. package/es/components/fabric-chart/src/hooks/temperature/useTop.js +1 -1
  19. package/es/components/fabric-chart/src/hooks/useDraw.d.ts +1 -1
  20. package/es/components/fabric-chart/src/hooks/useDraw.js +1 -1
  21. package/es/components/fabric-chart/src/hooks/useGrid.d.ts +1 -1
  22. package/es/components/fabric-chart/src/hooks/useGrid.js +1 -1
  23. package/es/components/fabric-chart/src/interface.d.ts +0 -13
  24. package/es/components/fabric-chart/src/utils/index.d.ts +1 -2
  25. package/es/components/fabric-chart/src/utils/index.js +1 -1
  26. package/es/components/field-set/index.d.ts +38 -157
  27. package/es/components/field-set/src/FieldSet.vue.d.ts +23 -160
  28. package/es/components/field-set/src/FieldSet.vue2.js +1 -1
  29. package/es/components/field-set/src/types/index.d.ts +0 -1
  30. package/es/components/field-set/style/index.css +1 -1
  31. package/es/components/form-config/index.d.ts +48 -3561
  32. package/es/components/form-config/src/FormConfig.vue.d.ts +48 -3561
  33. package/es/components/form-config/src/FormConfig.vue2.js +1 -1
  34. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +4 -31
  35. package/es/components/form-config/src/components/FormConfigDragDisplay.vue2.js +1 -1
  36. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +4 -33
  37. package/es/components/form-config/src/components/FormConfigMaterialItem.d.ts +1 -11
  38. package/es/components/form-config/src/components/FormConfigMaterialItem.js +1 -1
  39. package/es/components/form-config/src/components/renderer/DefaultNode.vue.d.ts +0 -2
  40. package/es/components/form-config/src/components/renderer/DefaultNode.vue2.js +1 -1
  41. package/es/components/form-config/src/constants/index.d.ts +0 -1
  42. package/es/components/form-config/src/constants/index.js +1 -1
  43. package/es/components/form-config/src/hooks/useSortalbeConfig.js +1 -1
  44. package/es/components/form-config/src/types/index.d.ts +0 -2
  45. package/es/components/form-config/style/index.css +1 -1
  46. package/es/components/form-render/index.d.ts +4 -31
  47. package/es/components/form-render/src/FormRender.vue.d.ts +4 -31
  48. package/es/components/form-render/src/FormRender.vue2.js +1 -1
  49. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +4 -31
  50. package/es/components/form-render/src/components/renderer/combination.d.ts +5 -5
  51. package/es/components/form-render/src/components/renderer/combination.js +1 -1
  52. package/es/components/form-render/src/components/renderer/jsonCombination/index.d.ts +5 -5
  53. package/es/components/form-render/src/components/renderer/jsonCombination/index.js +1 -1
  54. package/es/components/form-render/src/components/renderer/levelSearchCascader.js +1 -1
  55. package/es/components/form-render/src/constants/index.d.ts +0 -2
  56. package/es/components/form-render/src/constants/index.js +1 -1
  57. package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
  58. package/es/components/form-render/src/hooks/useFormAsyncQueue.d.ts +1 -1
  59. package/es/components/form-render/src/hooks/useFormAsyncQueue.js +1 -1
  60. package/es/components/form-render/src/hooks/useFormContext.js +1 -1
  61. package/es/components/form-render/src/hooks/useFormRenderLifeCycle.d.ts +1 -3
  62. package/es/components/form-render/src/hooks/useFormRenderOptions.d.ts +1 -1
  63. package/es/components/form-render/src/hooks/useFormRenderOptions.js +1 -1
  64. package/es/components/form-render/src/hooks/useNuiThemeOverrides.js +1 -1
  65. package/es/components/form-render/src/types/index.d.ts +0 -2
  66. package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.js +1 -1
  67. package/es/components/index.css +1 -1
  68. package/es/components/info-header/index.d.ts +10 -72
  69. package/es/components/info-header/src/InfoHeader.vue.d.ts +10 -72
  70. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +4 -31
  71. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +4 -31
  72. package/es/components/keyboard/index.d.ts +1 -1
  73. package/es/components/keyboard/src/Keyboard.vue.d.ts +1 -1
  74. package/es/components/quick-search/index.d.ts +0 -2
  75. package/es/components/quick-search/src/index.vue.d.ts +0 -2
  76. package/es/components/quick-search/style/index.css +1 -1
  77. package/es/components/recommend-search/index.d.ts +2 -2
  78. package/es/components/recommend-search/src/RecommendSearch.vue.d.ts +2 -2
  79. package/es/components/recommend-search/src/components/BaseSearch.d.ts +1 -1
  80. package/es/components/recommend-search/src/components/RecommendInput.vue.d.ts +1 -1
  81. package/es/components/recommend-search/src/components/RecommendSelect.vue.d.ts +1 -1
  82. package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
  83. package/es/components/search-cascader/index.d.ts +3 -16
  84. package/es/components/search-cascader/src/SearchCascader.vue.d.ts +3 -16
  85. package/es/components/search-cascader/src/SearchCascader.vue2.js +1 -1
  86. package/es/components/search-cascader/src/hooks/index.d.ts +1 -0
  87. package/es/components/search-cascader/src/hooks/index.js +1 -0
  88. package/es/components/search-cascader/src/hooks/useCssVariable.d.ts +3 -0
  89. package/es/components/search-cascader/src/hooks/useCssVariable.js +1 -0
  90. package/es/components/select-label/src/LabelFormContent.vue2.js +1 -1
  91. package/es/components/select-person/src/SearchMultiple.vue.d.ts +6 -0
  92. package/es/components/shortcut-setter/index.d.ts +4 -31
  93. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +4 -31
  94. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +10 -165
  95. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue2.js +1 -1
  96. package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +1 -16
  97. package/es/components/table-filter/src/components/classify-filter/components/Date.vue2.js +1 -1
  98. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +0 -18
  99. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue2.js +1 -1
  100. package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue.d.ts +10 -128
  101. package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue2.js +1 -1
  102. package/es/components/table-filter/src/components/classify-filter/components/SelectLabel.vue.d.ts +0 -1
  103. package/es/components/table-filter/src/components/classify-filter/components/SelectLabel.vue2.js +1 -1
  104. package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +10 -163
  105. package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +10 -165
  106. package/es/components/table-filter/src/components/render-widget/basicData.d.ts +4 -0
  107. package/es/components/table-filter/src/components/render-widget/basicData.js +1 -0
  108. package/es/components/table-filter/src/components/render-widget/components/{DateOut.vue.d.ts → Date.vue.d.ts} +2 -21
  109. package/es/components/table-filter/src/components/render-widget/components/Date.vue.js +1 -0
  110. package/es/components/table-filter/src/components/render-widget/components/Date.vue2.js +1 -0
  111. package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +5 -99
  112. package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue2.js +1 -1
  113. package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.d.ts +9 -13
  114. package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue2.js +1 -1
  115. package/es/components/table-filter/src/components/render-widget/components/LabelInner.vue.d.ts +5 -7
  116. package/es/components/table-filter/src/components/render-widget/components/LabelInner.vue2.js +1 -1
  117. package/es/components/table-filter/src/components/render-widget/components/LabelOut.vue.d.ts +5 -6
  118. package/es/components/table-filter/src/components/render-widget/components/LabelOut.vue2.js +1 -1
  119. package/es/components/table-filter/src/components/render-widget/components/Select.vue.d.ts +25 -15
  120. package/es/components/table-filter/src/components/render-widget/components/Select.vue2.js +1 -1
  121. package/es/components/table-filter/src/components/render-widget/components/index.d.ts +25 -520
  122. package/es/components/table-filter/src/components/render-widget/components/index.js +1 -1
  123. package/es/components/table-filter/src/components/render-widget/enums.d.ts +3 -10
  124. package/es/components/table-filter/src/components/render-widget/enums.js +1 -1
  125. package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.d.ts +6 -2
  126. package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.js +1 -1
  127. package/es/components/table-filter/src/components/render-widget/index.vue.js +1 -1
  128. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +24 -548
  129. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +1 -1
  130. package/es/components/table-filter/src/hooks/useAdvanced.d.ts +0 -2
  131. package/es/components/table-filter/src/hooks/useAdvanced.js +1 -1
  132. package/es/components/table-filter/src/hooks/useRenderWidget.js +1 -1
  133. package/es/components/table-filter/src/tool/baseOptions.js +1 -1
  134. package/es/components/table-filter/src/types/enums.d.ts +0 -2
  135. package/es/components/table-filter/src/types/enums.js +1 -1
  136. package/es/env.d.ts +25 -25
  137. package/es/shared/assets/img/failure.png.js +1 -1
  138. package/es/shared/assets/img/no-permission.png.js +1 -1
  139. package/es/shared/assets/img/nodata.png.js +1 -1
  140. package/es/shared/assets/img/notfound.png.js +1 -1
  141. package/es/shared/assets/img/qr.png.js +1 -1
  142. package/es/shared/assets/img/success.png.js +1 -1
  143. package/es/shared/assets/img/video.png.js +1 -1
  144. package/es/shared/assets/img/video_default_cover.png.js +1 -1
  145. package/es/shared/assets/img/xb_big.png.js +1 -1
  146. package/es/shared/assets/img/xb_small.png.js +1 -1
  147. package/es/shared/hooks/useAsyncQueue.d.ts +1 -3
  148. package/es/shared/hooks/useAsyncQueue.js +1 -1
  149. package/es/shared/package.json.js +1 -1
  150. package/package.json +2 -2
  151. package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
  152. package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
  153. package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
  154. package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
  155. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/index.d.ts +0 -2
  156. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/index.js +0 -1
  157. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.d.ts +0 -4
  158. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.js +0 -1
  159. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.d.ts +0 -4
  160. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.js +0 -1
  161. package/es/components/field-set/src/components/Row.vue.d.ts +0 -132
  162. package/es/components/field-set/src/components/Row.vue.js +0 -1
  163. package/es/components/field-set/src/components/Row.vue2.js +0 -1
  164. package/es/components/field-set/src/utils/index.d.ts +0 -7
  165. package/es/components/field-set/src/utils/index.js +0 -1
  166. package/es/components/form-render/src/components/renderer/dist/levelSearchCascader.d.ts +0 -77
  167. package/es/components/form-render/src/components/renderer/dist/searchCascade.d.ts +0 -93
  168. package/es/components/iho-table/src/plugins/dist/highLightSetPlugin.d.ts +0 -3
  169. package/es/components/iho-table/src/plugins/filterRenderPlugin/dist/index.d.ts +0 -3
  170. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/dist/index.d.ts +0 -3
  171. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/dist/defaultRendererPlugin.d.ts +0 -3
  172. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/dist/seqRendererPlugin.d.ts +0 -3
  173. package/es/components/iho-table/src/plugins/varialbleHeightPlugin/dist/index.d.ts +0 -3
  174. package/es/components/iho-table/src/utils/dist/index.d.ts +0 -44
  175. package/es/components/scale-view/src/components/formitem/dist/r-address.d.ts +0 -36
  176. package/es/components/scale-view/src/components/formitem/dist/r-sign.d.ts +0 -36
  177. package/es/components/scale-view/src/components/formitem/dist/standard-modal.d.ts +0 -82
  178. package/es/components/search-cascader/src/components/dist/SearchMenu.d.ts +0 -57
  179. package/es/components/search-cascader/src/components/dist/SearchMenu1.d.ts +0 -57
  180. package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic1.vue.d.ts +0 -61
  181. package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +0 -218
  182. package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.js +0 -1
  183. package/es/components/table-filter/src/components/render-widget/components/DateInner.vue2.js +0 -1
  184. package/es/components/table-filter/src/components/render-widget/components/DateOut.vue.js +0 -1
  185. package/es/components/table-filter/src/components/render-widget/components/DateOut.vue2.js +0 -1
  186. package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue.d.ts +0 -71
  187. package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue.js +0 -1
  188. package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue2.js +0 -1
  189. package/es/components/table-filter/src/components/render-widget/components/Select1.vue.d.ts +0 -45
  190. package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue.d.ts +0 -175
  191. package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue.js +0 -1
  192. package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue2.js +0 -1
  193. package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue.d.ts +0 -114
  194. package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue.js +0 -1
  195. package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue2.js +0 -1
  196. package/es/components/table-filter/src/components/render-widget/helpers/dateDisabled.d.ts +0 -27
  197. package/es/components/table-filter/src/components/render-widget/helpers/dateDisabled.js +0 -1
  198. package/es/components/table-filter/src/components/render-widget/helpers/dateExtraMap.d.ts +0 -55
  199. package/es/components/table-filter/src/components/render-widget/helpers/dateExtraMap.js +0 -1
  200. package/es/components/table-filter/src/components/render-widget/helpers/enums.d.ts +0 -56
  201. package/es/components/table-filter/src/components/render-widget/helpers/enums.js +0 -1
  202. package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
  203. package/es/shared/utils/fabricjs/index.d.ts +0 -6823
  204. package/es/shared/utils/tapable/index.d.ts +0 -139
@@ -154,9 +154,6 @@ declare const _default: import("vue").DefineComponent<{
154
154
  presetValCp: import("vue").WritableComputedRef<string>;
155
155
  widgetType: import("vue").ComputedRef<any>;
156
156
  Date: import("vue").DefineComponent<{
157
- componentCfg: {
158
- type: ObjectConstructor;
159
- };
160
157
  paramCfg: {
161
158
  type: ObjectConstructor;
162
159
  default: null;
@@ -171,9 +168,6 @@ declare const _default: import("vue").DefineComponent<{
171
168
  };
172
169
  }, {
173
170
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
174
- componentCfg: {
175
- type: ObjectConstructor;
176
- };
177
171
  paramCfg: {
178
172
  type: ObjectConstructor;
179
173
  default: null;
@@ -196,17 +190,11 @@ declare const _default: import("vue").DefineComponent<{
196
190
  dateType: any;
197
191
  valueFormat: import("vue").ComputedRef<string>;
198
192
  compType: import("vue").ComputedRef<any>;
199
- optionSetting: import("vue").ComputedRef<any>;
193
+ mappingConfig: import("vue").ComputedRef<any>;
200
194
  widgetOptions: import("vue").ComputedRef<{
201
195
  label: string;
202
196
  value: string;
203
197
  }[]>;
204
- isDateDisabled: (ts: number) => boolean;
205
- timeDisabled: (ts: number) => {
206
- isHourDisabled(hour: number): boolean | undefined;
207
- isMinuteDisabled(minute: number, hour: number | null): boolean | undefined;
208
- isSecondDisabled(second: number, minute: number | null, hour: number | null): boolean | undefined;
209
- };
210
198
  CDatePicker: import("../../../..").SFCWithInstall<import("vue").DefineComponent<{
211
199
  updateUnchangedValue: {
212
200
  type: BooleanConstructor;
@@ -278,9 +266,6 @@ declare const _default: import("vue").DefineComponent<{
278
266
  LAST_YEAR: string;
279
267
  };
280
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<{
281
- componentCfg: {
282
- type: ObjectConstructor;
283
- };
284
269
  paramCfg: {
285
270
  type: ObjectConstructor;
286
271
  default: null;
@@ -432,7 +417,6 @@ declare const _default: import("vue").DefineComponent<{
432
417
  default: null;
433
418
  };
434
419
  }, {
435
- message: import("naive-ui").MessageApi;
436
420
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
437
421
  paramCfg: {
438
422
  type: ObjectConstructor;
@@ -446,145 +430,27 @@ declare const _default: import("vue").DefineComponent<{
446
430
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
447
431
  }>>;
448
432
  handleGetConfigApi: (params: any, key: string, config: {} | undefined, filterApiConfigVal: any) => Promise<any>;
433
+ $attrs: {
434
+ [x: string]: unknown;
435
+ };
449
436
  emit: (event: "update:modelValue", ...args: any[]) => void;
437
+ selectOptions: import("vue").Ref<any[]>;
450
438
  isLoading: import("vue").Ref<boolean>;
451
439
  filterApiConfig: import("../../../..").AnyObject;
452
- totalPage: import("vue").Ref<number>;
453
- menuProps: {
454
- class: string;
455
- };
456
- curPage: import("vue").Ref<number>;
457
- fieldTitleList: import("vue").Ref<any>;
458
- selectOptions: import("vue").Ref<any[]>;
459
- keywordVal: import("vue").Ref<any>;
440
+ valueCp: import("vue").WritableComputedRef<any>;
460
441
  optionSetting: import("vue").ComputedRef<any>;
461
442
  isMultiple: import("vue").ComputedRef<boolean>;
462
- dynamicOptionInfos: import("vue").ComputedRef<any>;
463
- isLastPage: import("vue").ComputedRef<boolean>;
464
- valueCp: import("vue").ComputedRef<string | number | any[]>;
465
- setOptionActive: (selectIds: string[]) => void;
466
- handleUpdateSelect: (value: string[] | null) => void;
467
- handleUpdatePage: (page: number) => Promise<void>;
468
- getOptionsData: (keyword: string, curPage: number) => Promise<any>;
443
+ searchOptions: (keyword: string) => Promise<any>;
469
444
  _handleSearch: (query: string) => Promise<void>;
470
445
  handleSearch: (query: string) => Promise<void>;
471
446
  handleInitData: () => Promise<void>;
472
- handleClear: () => Promise<void>;
447
+ renderLabel: (option: import("naive-ui").SelectOption) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
448
+ [key: string]: any;
449
+ }>;
473
450
  renderTag: ({ option, handleClose }: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
474
451
  [key: string]: any;
475
452
  }>;
476
453
  NSelect: any;
477
- SelectDynamicOption: import("vue").DefineComponent<{
478
- dynamicOptionInfo: {
479
- type: PropType<import("../../../..").AnyObject>;
480
- default: () => {};
481
- };
482
- fieldTitleList: {
483
- type: PropType<import("../../../..").AnyObject[]>;
484
- default: () => never[];
485
- };
486
- optionList: {
487
- type: PropType<import("../../../..").AnyObject[]>;
488
- default: () => never[];
489
- };
490
- isMultiple: {
491
- type: BooleanConstructor;
492
- default: boolean;
493
- };
494
- curPage: {
495
- type: NumberConstructor;
496
- default: number;
497
- };
498
- isLastPage: {
499
- type: BooleanConstructor;
500
- default: boolean;
501
- };
502
- }, {
503
- selectMinWidth: number;
504
- props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
505
- dynamicOptionInfo: {
506
- type: PropType<import("../../../..").AnyObject>;
507
- default: () => {};
508
- };
509
- fieldTitleList: {
510
- type: PropType<import("../../../..").AnyObject[]>;
511
- default: () => never[];
512
- };
513
- optionList: {
514
- type: PropType<import("../../../..").AnyObject[]>;
515
- default: () => never[];
516
- };
517
- isMultiple: {
518
- type: BooleanConstructor;
519
- default: boolean;
520
- };
521
- curPage: {
522
- type: NumberConstructor;
523
- default: number;
524
- };
525
- isLastPage: {
526
- type: BooleanConstructor;
527
- default: boolean;
528
- };
529
- }>> & {
530
- onUpdateSelect?: ((...args: any[]) => any) | undefined;
531
- onUpdatePage?: ((...args: any[]) => any) | undefined;
532
- }>>;
533
- emit: (event: "updateSelect" | "updatePage", ...args: any[]) => void;
534
- dragEndWidth: import("vue").Ref<number>;
535
- showKeys: import("vue").ComputedRef<any>;
536
- titleList: import("vue").ComputedRef<string[]>;
537
- handleSelect: (option: any) => void;
538
- searchByPage: (onePage: number) => void;
539
- changeWidth: ({ distance }: any) => void;
540
- saveWidth: () => void;
541
- NEmpty: any;
542
- NButtonGroup: any;
543
- NButton: any;
544
- NIcon: any;
545
- NPopover: any;
546
- vFlexibleResize: {
547
- mounted(el: any, { value }: any): void;
548
- beforeUnmount(el: any): void;
549
- };
550
- 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<{}>>, {}>;
551
- 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<{}>>, {}>;
552
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("updateSelect" | "updatePage")[], "updateSelect" | "updatePage", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
553
- dynamicOptionInfo: {
554
- type: PropType<import("../../../..").AnyObject>;
555
- default: () => {};
556
- };
557
- fieldTitleList: {
558
- type: PropType<import("../../../..").AnyObject[]>;
559
- default: () => never[];
560
- };
561
- optionList: {
562
- type: PropType<import("../../../..").AnyObject[]>;
563
- default: () => never[];
564
- };
565
- isMultiple: {
566
- type: BooleanConstructor;
567
- default: boolean;
568
- };
569
- curPage: {
570
- type: NumberConstructor;
571
- default: number;
572
- };
573
- isLastPage: {
574
- type: BooleanConstructor;
575
- default: boolean;
576
- };
577
- }>> & {
578
- onUpdateSelect?: ((...args: any[]) => any) | undefined;
579
- onUpdatePage?: ((...args: any[]) => any) | undefined;
580
- }, {
581
- dynamicOptionInfo: import("../../../..").AnyObject;
582
- fieldTitleList: import("../../../..").AnyObject[];
583
- optionList: import("../../../..").AnyObject[];
584
- isMultiple: boolean;
585
- curPage: number;
586
- isLastPage: boolean;
587
- }>;
588
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<{
589
455
  paramCfg: {
590
456
  type: ObjectConstructor;
@@ -690,15 +556,8 @@ declare const _default: import("vue").DefineComponent<{
690
556
  valueFormat: import("vue").ComputedRef<string>;
691
557
  dateFormat: import("vue").ComputedRef<string>;
692
558
  compType: import("vue").ComputedRef<any>;
693
- optionSetting: import("vue").ComputedRef<any>;
694
- isPastTime: import("vue").ComputedRef<boolean>;
695
- isFutureTime: import("vue").ComputedRef<boolean>;
696
559
  startPlaceholder: import("vue").ComputedRef<"初始日期" | "初始时间">;
697
560
  endPlaceholder: import("vue").ComputedRef<"截止日期" | "截止时间">;
698
- startDefault: import("vue").ComputedRef<string>;
699
- endDefault: import("vue").ComputedRef<string>;
700
- startDateFormat: import("vue").ComputedRef<string | null>;
701
- endDateFormat: import("vue").ComputedRef<string | null>;
702
561
  dateType: any;
703
562
  widgetOptions: import("vue").ComputedRef<{
704
563
  label: string;
@@ -707,19 +566,8 @@ declare const _default: import("vue").DefineComponent<{
707
566
  presetValCp: import("vue").WritableComputedRef<string>;
708
567
  handleChange: (val: any, type: "end" | "start") => void;
709
568
  isStartDateDisabled: (ts: number) => boolean;
710
- timeStartDisabled: (ts: number) => {
711
- isHourDisabled(hour: number): boolean | 0;
712
- isMinuteDisabled(minute: number, hour: number | null): boolean | 0;
713
- isSecondDisabled(second: number, minute: number | null, hour: number | null): boolean | 0;
714
- };
715
569
  isEndDateDisabled: (ts: number) => boolean;
716
- timeEndDisabled: (ts: number) => {
717
- isHourDisabled(hour: number): boolean | 0;
718
- isMinuteDisabled(minute: number, hour: number | null): boolean | 0;
719
- isSecondDisabled(second: number, minute: number | null, hour: number | null): boolean | 0;
720
- };
721
570
  NSelect: any;
722
- NPopover: any;
723
571
  CDatePicker: import("../../../..").SFCWithInstall<import("vue").DefineComponent<{
724
572
  updateUnchangedValue: {
725
573
  type: BooleanConstructor;
@@ -821,7 +669,6 @@ declare const _default: import("vue").DefineComponent<{
821
669
  };
822
670
  }, {
823
671
  handleGetConfigApi: (params: any, key: string, config: {} | undefined, filterApiConfigVal: any) => Promise<any>;
824
- message: import("naive-ui").MessageApi;
825
672
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
826
673
  paramCfg: {
827
674
  type: ObjectConstructor;
@@ -861,9 +708,7 @@ declare const _default: import("vue").DefineComponent<{
861
708
  INPUT: string;
862
709
  SELECT: string;
863
710
  DATE: string;
864
- DATE_OUT: string;
865
711
  DATE_TIME: string;
866
- DATETIME_OUT: string;
867
712
  CHECKBOX_GROUP: string;
868
713
  INPUTNUMBER_RANGE: string;
869
714
  DATE_RANGE_OUT: string;
@@ -0,0 +1,4 @@
1
+ export declare const DateRangeOptions: {
2
+ value: string;
3
+ label: string;
4
+ }[];
@@ -0,0 +1 @@
1
+ const l=[{value:"TODAY",label:"今天"},{value:"TOMORROW",label:"明天"},{value:"YESTERDAY",label:"昨天"},{value:"THIS_WEEK",label:"本周"},{value:"NEXT_WEEK",label:"下周"},{value:"LAST_WEEK",label:"上周"},{value:"THIS_MONTH",label:"本月"},{value:"NEXT_MONTH",label:"下月"},{value:"LAST_MONTH",label:"上月"},{value:"THIS_QUARTER",label:"本季度"},{value:"NEXT_QUARTER",label:"下季度"},{value:"LAST_QUARTER",label:"上季度"},{value:"THIS_YEAR",label:"本年"},{value:"NEXT_YEAR",label:"下年"},{value:"LAST_YEAR",label:"上年"}];export{l as DateRangeOptions};
@@ -1,10 +1,6 @@
1
1
  import { PropType } from 'vue';
2
- import { AnyObject } from '../../../../../../../es/shared/types';
3
2
  declare type ITypeDate = 'date' | 'datetime';
4
3
  declare const _default: import("vue").DefineComponent<{
5
- componentCfg: {
6
- type: PropType<AnyObject>;
7
- };
8
4
  type: {
9
5
  type: PropType<ITypeDate>;
10
6
  default: string;
@@ -27,9 +23,6 @@ declare const _default: import("vue").DefineComponent<{
27
23
  };
28
24
  }, {
29
25
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
30
- componentCfg: {
31
- type: PropType<AnyObject>;
32
- };
33
26
  type: {
34
27
  type: PropType<ITypeDate>;
35
28
  default: string;
@@ -55,18 +48,9 @@ declare const _default: import("vue").DefineComponent<{
55
48
  }>>;
56
49
  emit: (event: "update:value", ...args: any[]) => void;
57
50
  valueCp: import("vue").Ref<any>;
58
- rangeShortcuts: import("vue").Ref<any>;
59
51
  dateFormat: import("vue").ComputedRef<string>;
60
- optionSetting: import("vue").ComputedRef<any>;
61
52
  handleChange: (val: any) => void;
62
- isDateDisabled: (ts: number) => boolean;
63
- timeDisabled: (ts: number) => {
64
- isHourDisabled(hour: number): boolean | undefined;
65
- isMinuteDisabled(minute: number, hour: number | null): boolean | undefined;
66
- isSecondDisabled(second: number, minute: number | null, hour: number | null): boolean | undefined;
67
- };
68
- init: () => void;
69
- CDatePicker: import("../../../../../../../es/shared/types").SFCWithInstall<import("vue").DefineComponent<{
53
+ CDatePicker: import("../../../../..").SFCWithInstall<import("vue").DefineComponent<{
70
54
  updateUnchangedValue: {
71
55
  type: BooleanConstructor;
72
56
  };
@@ -85,7 +69,7 @@ declare const _default: import("vue").DefineComponent<{
85
69
  type: FunctionConstructor;
86
70
  };
87
71
  }>> & {}>>;
88
- datePickerRef: import("vue").Ref<AnyObject | null>;
72
+ datePickerRef: import("vue").Ref<import("../../../../..").AnyObject | null>;
89
73
  panelInstRef: import("vue").Ref<null>;
90
74
  isDateTime: import("vue").ComputedRef<boolean>;
91
75
  formatRef: import("vue").ComputedRef<string>;
@@ -106,9 +90,6 @@ declare const _default: import("vue").DefineComponent<{
106
90
  updateUnchangedValue: boolean;
107
91
  }>>;
108
92
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:value"[], "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
109
- componentCfg: {
110
- type: PropType<AnyObject>;
111
- };
112
93
  type: {
113
94
  type: PropType<ITypeDate>;
114
95
  default: string;
@@ -0,0 +1 @@
1
+ import e from"./Date.vue2.js";import r from"../../../../../../_virtual/_plugin-vue_export-helper.js";var t=r(e,[["__file","Date.vue"]]);export{t as default};
@@ -0,0 +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 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,10 +1,6 @@
1
1
  import { PropType } from 'vue';
2
- import { AnyObject } from '../../../../../../../es/shared/types';
3
2
  declare type ITypeDate = 'date' | 'datetime';
4
3
  declare const _default: import("vue").DefineComponent<{
5
- componentCfg: {
6
- type: PropType<AnyObject>;
7
- };
8
4
  type: {
9
5
  type: PropType<ITypeDate>;
10
6
  default: string;
@@ -31,9 +27,6 @@ declare const _default: import("vue").DefineComponent<{
31
27
  };
32
28
  }, {
33
29
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
34
- componentCfg: {
35
- type: PropType<AnyObject>;
36
- };
37
30
  type: {
38
31
  type: PropType<ITypeDate>;
39
32
  default: string;
@@ -62,37 +55,20 @@ declare const _default: import("vue").DefineComponent<{
62
55
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
63
56
  }>>;
64
57
  emit: (event: "update:value", ...args: any[]) => void;
58
+ dateList: import("vue").Ref<any[]>;
65
59
  isShowDateRange: import("vue").Ref<boolean>;
66
60
  radioValue: import("vue").Ref<string>;
67
61
  startDate: import("vue").Ref<any>;
68
62
  endDate: import("vue").Ref<any>;
69
- optionSetting: import("vue").ComputedRef<any>;
70
- onlyRadio: import("vue").ComputedRef<boolean>;
71
- isPastTime: import("vue").ComputedRef<boolean>;
72
- isFutureTime: import("vue").ComputedRef<boolean>;
73
63
  dateFormat: import("vue").ComputedRef<string>;
74
64
  showTabStr: import("vue").ComputedRef<string>;
75
- startDefault: import("vue").ComputedRef<string>;
76
- endDefault: import("vue").ComputedRef<string>;
77
- handleClickQuickBtn: (result: string) => void;
78
- changeRadioValue: (value: string) => void;
79
- changeDateShowType: () => void;
65
+ initData: () => void;
66
+ handleRadioClick: (value: string) => void;
80
67
  handleChange: (val: any, type: 'start' | 'end') => void;
81
68
  isStartDateDisabled: (ts: number) => boolean;
82
- timeStartDisabled: (ts: number) => {
83
- isHourDisabled(hour: number): boolean | 0;
84
- isMinuteDisabled(minute: number, hour: number | null): boolean | 0;
85
- isSecondDisabled(second: number, minute: number | null, hour: number | null): boolean | 0;
86
- };
87
69
  isEndDateDisabled: (ts: number) => boolean;
88
- timeEndDisabled: (ts: number) => {
89
- isHourDisabled(hour: number): boolean | 0;
90
- isMinuteDisabled(minute: number, hour: number | null): boolean | 0;
91
- isSecondDisabled(second: number, minute: number | null, hour: number | null): boolean | 0;
92
- };
93
- init: () => void;
94
70
  NButton: any;
95
- CDatePicker: import("../../../../../../../es/shared/types").SFCWithInstall<import("vue").DefineComponent<{
71
+ CDatePicker: import("../../../../..").SFCWithInstall<import("vue").DefineComponent<{
96
72
  updateUnchangedValue: {
97
73
  type: BooleanConstructor;
98
74
  };
@@ -111,7 +87,7 @@ declare const _default: import("vue").DefineComponent<{
111
87
  type: FunctionConstructor;
112
88
  };
113
89
  }>> & {}>>;
114
- datePickerRef: import("vue").Ref<AnyObject | null>;
90
+ datePickerRef: import("vue").Ref<import("../../../../..").AnyObject | null>;
115
91
  panelInstRef: import("vue").Ref<null>;
116
92
  isDateTime: import("vue").ComputedRef<boolean>;
117
93
  formatRef: import("vue").ComputedRef<string>;
@@ -131,77 +107,7 @@ declare const _default: import("vue").DefineComponent<{
131
107
  }>>, {
132
108
  updateUnchangedValue: boolean;
133
109
  }>>;
134
- DateQuickBtn: import("vue").DefineComponent<{
135
- componentCfg: {
136
- type: PropType<AnyObject>;
137
- };
138
- type: {
139
- type: PropType<"date" | "datetime">;
140
- default: string;
141
- };
142
- dateFormat: {
143
- type: StringConstructor;
144
- default: string;
145
- };
146
- radioValue: {
147
- type: StringConstructor;
148
- default: string;
149
- };
150
- }, {
151
- props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
152
- componentCfg: {
153
- type: PropType<AnyObject>;
154
- };
155
- type: {
156
- type: PropType<"date" | "datetime">;
157
- default: string;
158
- };
159
- dateFormat: {
160
- type: StringConstructor;
161
- default: string;
162
- };
163
- radioValue: {
164
- type: StringConstructor;
165
- default: string;
166
- };
167
- }>> & {
168
- onClickQuickBtn?: ((...args: any[]) => any) | undefined;
169
- onChangeRadioValue?: ((...args: any[]) => any) | undefined;
170
- }>>;
171
- emit: (event: "clickQuickBtn" | "changeRadioValue", ...args: any[]) => void;
172
- dateList: import("vue").Ref<any[]>;
173
- optionSetting: import("vue").ComputedRef<any>;
174
- isRange: import("vue").ComputedRef<any>;
175
- initData: () => void;
176
- handleRadioClick: (value: string) => void;
177
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clickQuickBtn" | "changeRadioValue")[], "clickQuickBtn" | "changeRadioValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
178
- componentCfg: {
179
- type: PropType<AnyObject>;
180
- };
181
- type: {
182
- type: PropType<"date" | "datetime">;
183
- default: string;
184
- };
185
- dateFormat: {
186
- type: StringConstructor;
187
- default: string;
188
- };
189
- radioValue: {
190
- type: StringConstructor;
191
- default: string;
192
- };
193
- }>> & {
194
- onClickQuickBtn?: ((...args: any[]) => any) | undefined;
195
- onChangeRadioValue?: ((...args: any[]) => any) | undefined;
196
- }, {
197
- type: "date" | "datetime";
198
- dateFormat: string;
199
- radioValue: string;
200
- }>;
201
110
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:value"[], "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
202
- componentCfg: {
203
- type: PropType<AnyObject>;
204
- };
205
111
  type: {
206
112
  type: PropType<ITypeDate>;
207
113
  default: string;
@@ -1 +1 @@
1
- import{defineComponent as e,ref as a,computed as t,watch as l,openBlock as u,createElementBlock as r,unref as n,createBlock as i,createCommentVNode as o,normalizeClass as d,withCtx as v,createTextVNode as c,toDisplayString as m,createVNode as s,createElementVNode as p}from"vue";import{NButton as f}from"naive-ui";import y from"../../../../../date-picker/index.js";import g from"moment";import{isString as b}from"lodash-es";import{WidgetOptionEnums as h}from"../../../types/enums.js";import{dateDisabledCollect as k,isStartDateRangeDisabled as C,isTimeStartRangeDisabled as F,isEndDateRangeDisabled as M,isTimeEndRangeDisabled as S}from"../helpers/dateDisabled.js";import T from"./DateQuickBtn/index.vue.js";const Y={class:"render-widget-date-range"},D={key:2,class:"date-detail-range"},E=p("span",{class:"divider"},null,-1);var _=e({__name:"DateRangeInner",props:{componentCfg:{type:Object},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:p}){const _=e,j=a(!1),w=a(""),P=a(),I=a(),U=t((()=>{var e;return null==(e=_.componentCfg)?void 0:e.widgetCfg.optionSetting})),x=t((()=>U.value!==h.SELECT_TIME)),B=t((()=>U.value===h.PAST_TIME)),O=t((()=>U.value===h.FUTURE_TIME)),R=t((()=>{let e="";switch(_.type){case"date":e="YYYY-MM-DD";break;case"datetime":e="YYYY-MM-DD HH:mm:ss"}return e})),V=t((()=>{let e="";switch(_.type){case"date":e="选择日期";break;case"datetime":e="选择时间"}return e})),H=t((()=>O.value?k.curTime:"00:00:00")),Q=t((()=>B.value?k.curTime:"23:59:59"));function $(e){p("update:value",e)}function A(e){w.value=e}function L(){x.value&&(j.value=!j.value)}function q(e,a){switch(a){case"start":P.value=e;break;case"end":I.value=e}const t=P.value?g(P.value).format(R.value):null,l=I.value?g(I.value).format(R.value):null;p("update:value",t||l?`${null!=t?t:""} ~ ${null!=l?l:""}`:"")}function z(e){return C(e,U.value,I.value)}function G(e){return F(e,U.value,I.value)}function J(e){return M(e,U.value,P.value)}function K(e){return S(e,U.value,P.value)}return l((()=>_.value),(e=>{if(e&&b(e)&&e.includes("~")){const[a,t]=e.split("~");return a.trim()&&(P.value=g(a.trim()).valueOf()),void(t.trim()&&(I.value=g(t.trim()).valueOf()))}P.value=I.value=null,w.value=""}),{immediate:!0}),x.value||(j.value=!0),(a,t)=>(u(),r("div",Y,[n(x)&&!j.value?(u(),i(T,{key:0,componentCfg:e.componentCfg,type:e.type,dateFormat:n(R),radioValue:w.value,onClickQuickBtn:$,onChangeRadioValue:A},null,8,["componentCfg","type","dateFormat","radioValue"])):o("v-if",!0),n(x)?(u(),i(n(f),{key:1,secondary:"",class:d(j.value?"select-date-right":"select-date-left"),onClick:L},{default:v((()=>[c(m(n(V)),1)])),_:1},8,["class"])):o("v-if",!0),o(' default-time="23:59:59" '),!n(x)||j.value?(u(),r("div",D,[s(n(y),{type:e.type,to:"body","default-time":n(H),clearable:e.clearable,valueFormat:e.valueFormat,placeholder:e.startPlaceholder,value:P.value,"is-date-disabled":z,"is-time-disabled":G,"onUpdate:value":t[0]||(t[0]=e=>q(e,"start"))},null,8,["type","default-time","clearable","valueFormat","placeholder","value"]),E,s(n(y),{type:e.type,to:"body","default-time":n(Q),clearable:e.clearable,valueFormat:e.valueFormat,placeholder:e.endPlaceholder,value:I.value,"is-date-disabled":J,"is-time-disabled":K,"onUpdate:value":t[1]||(t[1]=e=>q(e,"end"))},null,8,["type","default-time","clearable","valueFormat","placeholder","value"])])):o("v-if",!0)]))}});export{_ 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,5 +1,4 @@
1
1
  import { PropType } from 'vue';
2
- import { AnyObject } from '../../../../../../../es/shared/types';
3
2
  declare type ITypeDate = 'daterange' | 'datetimerange';
4
3
  declare const _default: import("vue").DefineComponent<{
5
4
  type: {
@@ -57,18 +56,15 @@ declare const _default: import("vue").DefineComponent<{
57
56
  }>>;
58
57
  emit: (event: "update:value", ...args: any[]) => void;
59
58
  valueCp: import("vue").Ref<any>;
60
- rangeShortcuts: import("vue").Ref<any>;
61
59
  dateFormat: import("vue").ComputedRef<string>;
62
- optionSetting: import("vue").ComputedRef<any>;
63
- handleChange: (val: any) => void;
64
- isDateDisabled: (ts: number) => boolean;
65
- timeDisabled: (ts: number) => {
66
- isHourDisabled(hour: number): boolean | undefined;
67
- isMinuteDisabled(minute: number, hour: number | null): boolean | undefined;
68
- isSecondDisabled(second: number, minute: number | null, hour: number | null): boolean | undefined;
60
+ rangeShortcuts: {
61
+ 今天: number[];
62
+ 昨天: number[];
63
+ 近一周: number[];
64
+ 近一月: number[];
69
65
  };
70
- init: () => void;
71
- CDatePicker: import("../../../../../../../es/shared/types").SFCWithInstall<import("vue").DefineComponent<{
66
+ handleChange: (val: any) => void;
67
+ CDatePicker: import("../../../../..").SFCWithInstall<import("vue").DefineComponent<{
72
68
  updateUnchangedValue: {
73
69
  type: BooleanConstructor;
74
70
  };
@@ -87,7 +83,7 @@ declare const _default: import("vue").DefineComponent<{
87
83
  type: FunctionConstructor;
88
84
  };
89
85
  }>> & {}>>;
90
- datePickerRef: import("vue").Ref<AnyObject | null>;
86
+ datePickerRef: import("vue").Ref<import("../../../../..").AnyObject | null>;
91
87
  panelInstRef: import("vue").Ref<null>;
92
88
  isDateTime: import("vue").ComputedRef<boolean>;
93
89
  formatRef: import("vue").ComputedRef<string>;
@@ -137,9 +133,9 @@ declare const _default: import("vue").DefineComponent<{
137
133
  }, {
138
134
  type: ITypeDate;
139
135
  value: string;
140
- componentCfg: Record<string, any>;
141
136
  clearable: boolean;
142
137
  startPlaceholder: string;
143
138
  endPlaceholder: string;
139
+ componentCfg: Record<string, any>;
144
140
  }>;
145
141
  export default _default;
@@ -1 +1 @@
1
- import{defineComponent as e,ref as t,computed as a,watch as l,openBlock as r,createBlock as o,unref as u}from"vue";import n from"../../../../../date-picker/index.js";import i from"moment";import{isString as s}from"lodash-es";import{WidgetOptionEnums as d}from"../../../types/enums.js";import{DateExtraOptions as p,DateExtraMap as m}from"../helpers/dateExtraMap.js";import{formatDateRangeInfo as c}from"../helpers/presetValToTimestamp.js";import{setDateDisabled as f,setTimeDisabled as v}from"../helpers/dateDisabled.js";var g=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:g}){const h=e,y=t(),b=t(),P=a((()=>{let e="";switch(h.type){case"daterange":e="YYYY-MM-DD";break;case"datetimerange":e="YYYY-MM-DD HH:mm:ss"}return e})),Y=a((()=>{var e;return null==(e=h.componentCfg)?void 0:e.widgetCfg.optionSetting}));function j(e){if(e){const[t,a]=e,l=`${i(t).format(P.value)} ~ ${i(a).format(P.value)}`;g("update:value",l)}else g("update:value",e)}function D(e){return f(e,Y.value)}function O(e){return v(e,Y.value)}return l((()=>h.value),(e=>{if(e&&s(e)&&e.includes("~")){const[t,a]=e.split("~");y.value=[i(t.trim()).valueOf(),i(a.trim()).valueOf()]}else y.value=null}),{immediate:!0}),function(){var e,t;const{originType:a}=null==(e=h.componentCfg)?void 0:e.widgetCfg,l=`${a}_${Y.value||d.ALL}_RANGE`,r=null!=(t=p[m[l]])?t:[];let o={};r.forEach((({label:e,value:t})=>{const a=c(t,P.value,Y.value,!0);if(a){const[t,l]=a;o[e]=[t.valueOf(),l.valueOf()]}})),b.value=o}(),(t,a)=>(r(),o(u(n),{to:"body",type:e.type,clearable:e.clearable,startPlaceholder:e.startPlaceholder,endPlaceholder:e.endPlaceholder,value:y.value,"is-date-disabled":D,"is-time-disabled":O,shortcuts:b.value,"onUpdate:value":j},null,8,["type","clearable","startPlaceholder","endPlaceholder","value","shortcuts"]))}});export{g 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};
@@ -1,9 +1,8 @@
1
1
  import { PropType } from 'vue';
2
- import { IFilterCategoryLabelItemType, IhoFilterTabLabelItemType } from '../../../../../../../es/components/table-filter/src/types';
3
- import { AnyObject } from '../../../../../../../es/shared/types';
2
+ import { IFilterCategoryLabelItemType, IhoFilterTabLabelItemType, ISearchType } from '../../../../../../../es/components/table-filter/src/types';
4
3
  declare const _default: import("vue").DefineComponent<{
5
4
  componentCfg: {
6
- type: PropType<AnyObject>;
5
+ type: PropType<ISearchType>;
7
6
  };
8
7
  value: {
9
8
  type: StringConstructor;
@@ -11,11 +10,10 @@ declare const _default: import("vue").DefineComponent<{
11
10
  };
12
11
  }, {
13
12
  handleGetConfigApi: (params: any, key: string, config: {} | undefined, filterApiConfigVal: any) => Promise<any>;
14
- message: import("naive-ui").MessageApi;
15
13
  baseActiveColor: string;
16
14
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
17
15
  componentCfg: {
18
- type: PropType<AnyObject>;
16
+ type: PropType<ISearchType>;
19
17
  };
20
18
  value: {
21
19
  type: StringConstructor;
@@ -27,7 +25,7 @@ declare const _default: import("vue").DefineComponent<{
27
25
  emit: (event: "update:value", ...args: any[]) => void;
28
26
  selectedList: import("vue").Ref<string[]>;
29
27
  tagList: import("vue").Ref<never[]>;
30
- filterApiConfig: AnyObject;
28
+ filterApiConfig: import("../../../../..").AnyObject;
31
29
  categoryList: import("vue").ComputedRef<IFilterCategoryLabelItemType[]>;
32
30
  onResize: (el: HTMLElement, categoryItem: IFilterCategoryLabelItemType) => void;
33
31
  handleLabelUpfold: (categoryItem: IFilterCategoryLabelItemType) => void;
@@ -50,7 +48,7 @@ declare const _default: import("vue").DefineComponent<{
50
48
  };
51
49
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:value"[], "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
52
50
  componentCfg: {
53
- type: PropType<AnyObject>;
51
+ type: PropType<ISearchType>;
54
52
  };
55
53
  value: {
56
54
  type: StringConstructor;