cnhis-design-vue 3.3.3-release.9 → 3.4.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (243) hide show
  1. package/es/components/big-table/src/hooks/useBatchEditing.js +25 -24
  2. package/es/components/button-print/index.d.ts +98 -8
  3. package/es/components/button-print/src/ButtonPrint.vue.d.ts +98 -8
  4. package/es/components/button-print/src/ButtonPrint.vue2.js +12 -1
  5. package/es/components/button-print/src/components/IdentityVerification.vue.d.ts +11 -2
  6. package/es/components/button-print/src/components/IdentityVerification.vue2.js +3 -2
  7. package/es/components/button-print/src/components/NewPrintComponent.vue.d.ts +44 -6
  8. package/es/components/button-print/src/components/NewPrintComponent.vue2.js +194 -41
  9. package/es/components/button-print/src/components/OldPrintComponent.vue.d.ts +29 -2
  10. package/es/components/button-print/src/components/OldPrintComponent.vue2.js +34 -5
  11. package/es/components/button-print/src/utils/print.d.ts +7 -5
  12. package/es/components/button-print/src/utils/print.js +183 -7
  13. package/es/components/button-print/style/index.css +1 -1
  14. package/es/components/calendar/src/Calendar.vue2.js +15 -5
  15. package/es/components/callback/src/components/render/popupMaps.d.ts +5 -0
  16. package/es/components/card-render/src/components/index.d.ts +23 -23
  17. package/es/components/classification/index.d.ts +258 -5
  18. package/es/components/classification/src/components/search-filter/index.vue.d.ts +258 -5
  19. package/es/components/classification/src/components/set-classification/index.vue.d.ts +258 -5
  20. package/es/components/classification/src/index.vue.d.ts +258 -5
  21. package/es/components/fabric-chart/src/components/PopupMenu.js +1 -1
  22. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +6 -2
  23. package/es/components/fabric-chart/src/hooks/temperature/useLeft.js +3 -2
  24. package/es/components/fabric-chart/src/hooks/temperature/useOther.d.ts +1 -1
  25. package/es/components/fabric-chart/src/hooks/temperature/useOther.js +58 -15
  26. package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +4 -3
  27. package/es/components/field-editor/index.d.ts +5 -0
  28. package/es/components/field-editor/src/FieldEditor.vue.d.ts +5 -0
  29. package/es/components/field-set/src/FieldColor.vue.d.ts +4 -1
  30. package/es/components/field-set/src/FieldFilter.vue.d.ts +4 -1
  31. package/es/components/field-set/src/FieldSet.vue.d.ts +4 -1
  32. package/es/components/field-set/src/components/table-row.vue.d.ts +2 -1
  33. package/es/components/field-set/src/components/table-row.vue2.js +21 -6
  34. package/es/components/field-set/src/constants/index.js +4 -4
  35. package/es/components/field-set/src/types/index.d.ts +2 -1
  36. package/es/components/form-config/index.d.ts +63 -0
  37. package/es/components/form-config/src/FormConfig.vue.d.ts +63 -0
  38. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +5 -0
  39. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +50 -0
  40. package/es/components/form-config/src/components/FormConfigEdit.vue2.js +4 -4
  41. package/es/components/form-config/src/components/FormConfigEventSetting.vue.d.ts +5 -0
  42. package/es/components/form-config/src/constants/index.d.ts +31 -1
  43. package/es/components/form-config/src/constants/index.js +150 -1
  44. package/es/components/form-config/src/hooks/useConfigurationField.d.ts +2 -2
  45. package/es/components/form-config/src/hooks/useConfigurationField.js +53 -6
  46. package/es/components/form-config/src/hooks/useLocale.d.ts +6 -0
  47. package/es/components/form-config/src/hooks/useLocale.js +34 -0
  48. package/es/components/form-config/src/types/index.d.ts +12 -0
  49. package/es/components/form-render/index.d.ts +5 -0
  50. package/es/components/form-render/src/FormRender.vue.d.ts +5 -0
  51. package/es/components/form-render/src/FormRender.vue2.js +1 -0
  52. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +5 -0
  53. package/es/components/form-render/src/components/renderer/date.d.ts +3 -1
  54. package/es/components/form-render/src/components/renderer/date.js +12 -10
  55. package/es/components/form-render/src/components/renderer/formItem.d.ts +2 -0
  56. package/es/components/form-render/src/components/renderer/formItem.js +10 -3
  57. package/es/components/form-render/src/components/renderer/levelSearchCascader/index.js +4 -2
  58. package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.d.ts +1 -0
  59. package/es/components/form-render/src/components/renderer/lineBar/index.d.ts +1 -0
  60. package/es/components/form-render/src/components/renderer/radio_checkbox.js +9 -3
  61. package/es/components/form-render/src/constants/index.d.ts +1 -1
  62. package/es/components/form-render/src/hooks/useFieldListAdaptor.js +5 -2
  63. package/es/components/form-render/src/hooks/useFieldNormalize.d.ts +2 -0
  64. package/es/components/form-render/src/hooks/useFieldNormalize.js +15 -0
  65. package/es/components/form-render/src/hooks/useNuiThemeOverrides.d.ts +1 -2
  66. package/es/components/form-render/src/types/index.d.ts +1 -0
  67. package/es/components/form-render/style/index.css +1 -1
  68. package/es/components/iho-chat/index.d.ts +897 -97
  69. package/es/components/iho-chat/src/Index.vue.d.ts +897 -97
  70. package/es/components/iho-chat/src/Index.vue2.js +14 -6
  71. package/es/components/iho-chat/src/components/ChatAdd.vue.d.ts +24 -1
  72. package/es/components/iho-chat/src/components/ChatFile.vue.d.ts +179 -6
  73. package/es/components/iho-chat/src/components/ChatFile.vue2.js +48 -28
  74. package/es/components/iho-chat/src/components/ChatFooter.vue.d.ts +61 -5
  75. package/es/components/iho-chat/src/components/ChatFooter.vue2.js +106 -44
  76. package/es/components/iho-chat/src/components/ChatHeader.vue.d.ts +327 -13
  77. package/es/components/iho-chat/src/components/ChatHeader.vue2.js +18 -17
  78. package/es/components/iho-chat/src/components/ChatMain.vue.d.ts +232 -17
  79. package/es/components/iho-chat/src/components/ChatMain.vue2.js +299 -272
  80. package/es/components/iho-chat/src/components/ChatRecord.vue.d.ts +49 -3
  81. package/es/components/iho-chat/src/components/ChatSearch.vue.d.ts +24 -1
  82. package/es/components/iho-chat/src/components/ChatSet.vue.d.ts +48 -2
  83. package/es/components/iho-chat/src/components/ContextMenu.js +33 -18
  84. package/es/components/iho-chat/src/components/ImageLightbox.vue.d.ts +104 -0
  85. package/es/components/iho-chat/src/components/ImageLightbox.vue.js +6 -0
  86. package/es/components/iho-chat/src/components/ImageLightbox.vue2.js +307 -0
  87. package/es/components/iho-chat/src/components/MessageEvent.vue.d.ts +24 -1
  88. package/es/components/iho-chat/src/components/MessageMergeForward.vue.d.ts +51 -4
  89. package/es/components/iho-chat/src/components/MultipleVideo.vue.d.ts +77 -31
  90. package/es/components/iho-chat/src/components/MultipleVideo.vue2.js +223 -98
  91. package/es/components/iho-chat/src/components/PersonProfile.vue.d.ts +24 -1
  92. package/es/components/iho-chat/src/components/SelectLabel.vue.d.ts +1 -1
  93. package/es/components/iho-chat/src/components/SiderList.vue.d.ts +24 -1
  94. package/es/components/iho-chat/src/components/Video.vue.d.ts +44 -26
  95. package/es/components/iho-chat/src/components/Video.vue2.js +56 -49
  96. package/es/components/iho-chat/src/hooks/useData.d.ts +51 -4
  97. package/es/components/iho-chat/src/hooks/useVideo.d.ts +83 -16
  98. package/es/components/iho-chat/src/hooks/useVideo.js +439 -43
  99. package/es/components/iho-chat/src/types/index.d.ts +37 -1
  100. package/es/components/iho-chat/src/utils/emoji.d.ts +1 -1
  101. package/es/components/iho-chat/src/utils/emoji.js +1 -1
  102. package/es/components/iho-chat/src/utils/index.d.ts +2 -0
  103. package/es/components/iho-chat/src/utils/index.js +14 -1
  104. package/es/components/iho-chat/style/index.css +1 -1
  105. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/index.js +1 -1
  106. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useAutoFocus.js +0 -22
  107. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/inputRendererPlugin.js +1 -1
  108. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/levelSearchCascadePlugin/index.js +1 -1
  109. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/numberRendererPlugin.js +1 -1
  110. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -1
  111. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.js +1 -1
  112. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.d.ts +36 -4
  113. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/index.js +1 -1
  114. package/es/components/index.css +1 -1
  115. package/es/components/index.d.ts +2 -0
  116. package/es/components/index.js +2 -1
  117. package/es/components/info-header/index.d.ts +24 -17
  118. package/es/components/info-header/src/InfoHeader.vue.d.ts +24 -17
  119. package/es/components/info-header/src/InfoHeader.vue2.js +2 -2
  120. package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +1 -0
  121. package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue2.js +56 -22
  122. package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +4 -2
  123. package/es/components/info-header/src/components/infoDescription/DescriptionList.vue2.js +1 -1
  124. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +15 -17
  125. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +5 -0
  126. package/es/components/info-header/src/constants/index.d.ts +1 -1
  127. package/es/components/info-header/src/hooks/useThemeOverrides.d.ts +1 -2
  128. package/es/components/keyboard/index.d.ts +9 -0
  129. package/es/components/keyboard/src/Keyboard.vue.d.ts +9 -0
  130. package/es/components/keyboard/src/Keyboard.vue2.js +33 -9
  131. package/es/components/keyboard/src/components/NumberPanel.vue.d.ts +4 -0
  132. package/es/components/keyboard/src/components/NumberPanel.vue2.js +50 -17
  133. package/es/components/keyboard/src/types.d.ts +17 -0
  134. package/es/components/keyboard/src/types.js +1 -0
  135. package/es/components/scale-view/index.d.ts +13 -0
  136. package/es/components/scale-view/src/ScaleView.vue.d.ts +13 -0
  137. package/es/components/scale-view/src/hooks/scaleview-computed.js +2 -1
  138. package/es/components/scale-view/src/hooks/scaleview-props.d.ts +4 -0
  139. package/es/components/scale-view/src/hooks/scaleview-props.js +4 -0
  140. package/es/components/search-cascader/src/utils/index.d.ts +1 -1
  141. package/es/components/select-person/src/SelectPerson.vue2.js +8 -1
  142. package/es/components/shortcut-provider/src/hooks/useShortcuts.js +1 -1
  143. package/es/components/shortcut-provider/src/types/index.d.ts +1 -0
  144. package/es/components/shortcut-provider/src/utils/index.d.ts +1 -1
  145. package/es/components/shortcut-provider/src/utils/index.js +3 -1
  146. package/es/components/shortcut-setter/index.d.ts +5 -0
  147. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +5 -0
  148. package/es/components/table-filter/index.js +1 -1
  149. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +246 -1
  150. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue2.js +8 -2
  151. package/es/components/table-filter/src/components/classify-filter/components/Base/DateOption.vue.d.ts +104 -0
  152. package/es/components/table-filter/src/components/classify-filter/components/Base/DateOption.vue.js +6 -0
  153. package/es/components/table-filter/src/components/classify-filter/components/Base/DateOption.vue2.js +250 -0
  154. package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +116 -0
  155. package/es/components/table-filter/src/components/classify-filter/components/Date.vue2.js +43 -4
  156. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +117 -1
  157. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue2.js +45 -8
  158. package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +233 -1
  159. package/es/components/table-filter/src/components/classify-filter/helpers/options.d.ts +5 -1
  160. package/es/components/table-filter/src/components/classify-filter/helpers/options.js +74 -2
  161. package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +258 -5
  162. package/es/components/table-filter/src/components/classify-filter/index.vue2.js +15 -6
  163. package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +1 -1
  164. package/es/components/table-filter/src/components/render-widget/components/DateOut.vue.d.ts +1 -1
  165. package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue2.js +1 -1
  166. package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +1 -1
  167. package/es/components/table-filter/src/components/render-widget/components/index.d.ts +3 -3
  168. package/es/components/table-filter/src/components/render-widget/helpers/dateExtraMap.js +32 -4
  169. package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.d.ts +1 -0
  170. package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.js +38 -2
  171. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +3 -3
  172. package/es/components/table-filter/src/hooks/useAdvanced.js +5 -4
  173. package/es/components/table-filter/src/tool/baseOptions.js +8 -1
  174. package/es/components/table-filter/src/types/enums.d.ts +5 -0
  175. package/es/components/table-filter/src/types/enums.js +6 -1
  176. package/es/components/time-picker/index.d.ts +36 -4
  177. package/es/components/time-picker/src/TimePicker.vue.d.ts +36 -4
  178. package/es/components/time-picker/src/TimePicker.vue2.js +98 -13
  179. package/es/components/vertify/index.d.ts +1 -0
  180. package/es/components/vertify/index.js +1 -0
  181. package/es/components/vertify/src/components/IdentityVerification.vue.d.ts +89 -0
  182. package/es/components/vertify/src/components/IdentityVerification.vue.js +6 -0
  183. package/es/components/vertify/src/components/IdentityVerification.vue2.js +256 -0
  184. package/es/components/vertify/src/utils/dialog.d.ts +7 -0
  185. package/es/components/vertify/src/utils/dialog.js +73 -0
  186. package/es/components/vertify/src/utils/index.d.ts +11 -0
  187. package/es/components/vertify/src/utils/index.js +24 -0
  188. package/es/components/vod-chunk-upload/index.d.ts +13 -0
  189. package/es/components/vod-chunk-upload/src/chunk-upload-new.vue.d.ts +19 -2
  190. package/es/components/vod-chunk-upload/src/chunk-upload-new.vue2.js +104 -75
  191. package/es/components/vod-chunk-upload/src/hooks/upload-computed.d.ts +1 -0
  192. package/es/components/vod-chunk-upload/src/hooks/upload-computed.js +20 -3
  193. package/es/components/vod-chunk-upload/src/hooks/upload-data.d.ts +4 -0
  194. package/es/components/vod-chunk-upload/src/hooks/upload-data.js +6 -2
  195. package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.d.ts +13 -0
  196. package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue2.js +6 -1
  197. package/es/components/vod-chunk-upload/style/index.css +1 -1
  198. package/es/shared/assets/img/defaultCover/10review_successful.png.js +1 -1
  199. package/es/shared/assets/img/defaultCover/11review_fail.png.js +1 -1
  200. package/es/shared/assets/img/defaultCover/12no_setting.png.js +1 -1
  201. package/es/shared/assets/img/defaultCover/13no_menu_setting.png.js +1 -1
  202. package/es/shared/assets/img/defaultCover/14no_call_setting.png.js +1 -1
  203. package/es/shared/assets/img/defaultCover/15no_use_tag.png.js +1 -1
  204. package/es/shared/assets/img/defaultCover/16no_table_data.png.js +1 -1
  205. package/es/shared/assets/img/defaultCover/1location.png.js +1 -1
  206. package/es/shared/assets/img/defaultCover/2notfound.png.js +1 -1
  207. package/es/shared/assets/img/defaultCover/3loading.png.js +1 -1
  208. package/es/shared/assets/img/defaultCover/4no_permission.png.js +1 -1
  209. package/es/shared/assets/img/defaultCover/5no_data.png.js +1 -1
  210. package/es/shared/assets/img/defaultCover/6no_network.png.js +1 -1
  211. package/es/shared/assets/img/defaultCover/7no_doctor.png.js +1 -1
  212. package/es/shared/assets/img/defaultCover/8system_error.png.js +1 -1
  213. package/es/shared/assets/img/defaultCover/9system_upgrade.png.js +1 -1
  214. package/es/shared/assets/img/failure.png.js +1 -1
  215. package/es/shared/assets/img/no-permission.png.js +1 -1
  216. package/es/shared/assets/img/nodata.png.js +1 -1
  217. package/es/shared/assets/img/notfound.png.js +1 -1
  218. package/es/shared/assets/img/qr.png.js +1 -1
  219. package/es/shared/assets/img/success.png.js +1 -1
  220. package/es/shared/assets/img/table_style_2.png.js +1 -1
  221. package/es/shared/assets/img/video.png.js +1 -1
  222. package/es/shared/assets/img/video_default_cover.png.js +1 -1
  223. package/es/shared/assets/img/xb_big.png.js +1 -1
  224. package/es/shared/assets/img/xb_small.png.js +1 -1
  225. package/es/shared/components/InputNumberSlash/InputNumberSlash.js +1 -1
  226. package/es/shared/hooks/useDateTime.d.ts +1 -1
  227. package/es/shared/hooks/useDateTime.js +1 -1
  228. package/es/shared/hooks/useLevelSearchCascader.js +3 -3
  229. package/es/shared/package.json.js +2 -2
  230. package/es/shared/utils/fabricjs/index.js +1 -1
  231. package/package.json +5 -5
  232. package/es/components/audio-sdk/src/utils/recorder/fft.d.ts +0 -4
  233. package/es/components/audio-sdk/src/utils/recorder/mp3-engine.d.ts +0 -4
  234. package/es/components/audio-sdk/src/utils/recorder/mp3.d.ts +0 -4
  235. package/es/components/audio-sdk/src/utils/recorder/recorder.d.ts +0 -4
  236. package/es/components/audio-sdk/src/utils/recorder/wave.d.ts +0 -4
  237. package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
  238. package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
  239. package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
  240. package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
  241. package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
  242. package/es/shared/utils/fabricjs/index.d.ts +0 -6823
  243. package/es/shared/utils/tapable/index.d.ts +0 -139
@@ -30,6 +30,8 @@ declare const _default: import("vue").DefineComponent<{
30
30
  menuProps: {
31
31
  class: string;
32
32
  };
33
+ specialDateRange: string[];
34
+ specialCustomDateRange: string[];
33
35
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
34
36
  actionList_prop: {
35
37
  type: PropType<IClassifyListType>;
@@ -104,6 +106,11 @@ declare const _default: import("vue").DefineComponent<{
104
106
  getParamCfg: (key: string) => any;
105
107
  initFilterConditions: (tableId: string, rawConditions: import("../../../../../components/table-filter/src/types").ISearchConfigType) => Promise<void>;
106
108
  getRawFilterConditions: () => any[];
109
+ dateTypeList: string[];
110
+ getOptions: (key: string) => {
111
+ label: string;
112
+ value: string;
113
+ }[];
107
114
  handleEditDisplayCategory: (item: ICategoryItemType) => void;
108
115
  handleDisplayCategoryAddState: () => void;
109
116
  findConditionByDisplayCategory: (sid: string) => unknown;
@@ -124,6 +131,10 @@ declare const _default: import("vue").DefineComponent<{
124
131
  AddCircleSharp: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
125
132
  CloseOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
126
133
  ValueCfg: import("vue").DefineComponent<{
134
+ item: {
135
+ type: ObjectConstructor;
136
+ default: null;
137
+ };
127
138
  paramCfg: {
128
139
  type: ObjectConstructor;
129
140
  default: null;
@@ -145,6 +156,10 @@ declare const _default: import("vue").DefineComponent<{
145
156
  };
146
157
  }, {
147
158
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
159
+ item: {
160
+ type: ObjectConstructor;
161
+ default: null;
162
+ };
148
163
  paramCfg: {
149
164
  type: ObjectConstructor;
150
165
  default: null;
@@ -180,6 +195,10 @@ declare const _default: import("vue").DefineComponent<{
180
195
  componentCfg: {
181
196
  type: ObjectConstructor;
182
197
  };
198
+ item: {
199
+ type: ObjectConstructor;
200
+ required: true;
201
+ };
183
202
  paramCfg: {
184
203
  type: ObjectConstructor;
185
204
  default: null;
@@ -201,6 +220,10 @@ declare const _default: import("vue").DefineComponent<{
201
220
  componentCfg: {
202
221
  type: ObjectConstructor;
203
222
  };
223
+ item: {
224
+ type: ObjectConstructor;
225
+ required: true;
226
+ };
204
227
  paramCfg: {
205
228
  type: ObjectConstructor;
206
229
  default: null;
@@ -223,6 +246,7 @@ declare const _default: import("vue").DefineComponent<{
223
246
  "onUpdate:customDate"?: ((...args: any[]) => any) | undefined;
224
247
  }>>;
225
248
  emit: (event: "update:modelValue" | "update:presetVal" | "update:customDate", ...args: any[]) => void;
249
+ filterType: import("vue").ComputedRef<"1" | "2" | "3">;
226
250
  valueCp: import("vue").WritableComputedRef<any>;
227
251
  presetValCp: import("vue").WritableComputedRef<string>;
228
252
  dateType: any;
@@ -369,6 +393,109 @@ declare const _default: import("vue").DefineComponent<{
369
393
  holidays: Date[];
370
394
  }>>;
371
395
  NSelect: any;
396
+ DateOption: import("vue").DefineComponent<{
397
+ filterType: {
398
+ type: StringConstructor;
399
+ required: true;
400
+ };
401
+ modelValue: {
402
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
403
+ default: null;
404
+ };
405
+ presetVal: {
406
+ type: StringConstructor;
407
+ default: null;
408
+ };
409
+ dateType: {
410
+ type: StringConstructor;
411
+ };
412
+ isDateDisabled: {
413
+ type: FunctionConstructor;
414
+ };
415
+ timeDisabled: {
416
+ type: FunctionConstructor;
417
+ };
418
+ valueFormat: {
419
+ type: StringConstructor;
420
+ };
421
+ }, {
422
+ widgetOptions: {
423
+ label: string;
424
+ value: string;
425
+ }[];
426
+ widgetRangeOptions: {
427
+ label: string;
428
+ value: string;
429
+ }[];
430
+ startDateNum: import("vue").Ref<any>;
431
+ endDateNum: import("vue").Ref<any>;
432
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
433
+ filterType: {
434
+ type: StringConstructor;
435
+ required: true;
436
+ };
437
+ modelValue: {
438
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
439
+ default: null;
440
+ };
441
+ presetVal: {
442
+ type: StringConstructor;
443
+ default: null;
444
+ };
445
+ dateType: {
446
+ type: StringConstructor;
447
+ };
448
+ isDateDisabled: {
449
+ type: FunctionConstructor;
450
+ };
451
+ timeDisabled: {
452
+ type: FunctionConstructor;
453
+ };
454
+ valueFormat: {
455
+ type: StringConstructor;
456
+ };
457
+ }>> & {
458
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
459
+ "onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
460
+ }>>;
461
+ emit: (event: "update:modelValue" | "update:presetVal", ...args: any[]) => void;
462
+ valueCp: import("vue").WritableComputedRef<any>;
463
+ presetValCp: import("vue").WritableComputedRef<string>;
464
+ handleChange: (val: any, type: "start" | "end") => void;
465
+ NSelect: any;
466
+ NInputNumber: any;
467
+ }, 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<{
468
+ filterType: {
469
+ type: StringConstructor;
470
+ required: true;
471
+ };
472
+ modelValue: {
473
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
474
+ default: null;
475
+ };
476
+ presetVal: {
477
+ type: StringConstructor;
478
+ default: null;
479
+ };
480
+ dateType: {
481
+ type: StringConstructor;
482
+ };
483
+ isDateDisabled: {
484
+ type: FunctionConstructor;
485
+ };
486
+ timeDisabled: {
487
+ type: FunctionConstructor;
488
+ };
489
+ valueFormat: {
490
+ type: StringConstructor;
491
+ };
492
+ }>> & {
493
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
494
+ "onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
495
+ }, {
496
+ modelValue: string | number | unknown[];
497
+ presetVal: string;
498
+ }>;
372
499
  WidgetValEnums: {
373
500
  CUSTOM: string;
374
501
  FIRST_VAL: string;
@@ -404,6 +531,10 @@ declare const _default: import("vue").DefineComponent<{
404
531
  componentCfg: {
405
532
  type: ObjectConstructor;
406
533
  };
534
+ item: {
535
+ type: ObjectConstructor;
536
+ required: true;
537
+ };
407
538
  paramCfg: {
408
539
  type: ObjectConstructor;
409
540
  default: null;
@@ -881,6 +1012,10 @@ declare const _default: import("vue").DefineComponent<{
881
1012
  paramCfg: Record<string, any>;
882
1013
  }>;
883
1014
  DateRange: import("vue").DefineComponent<{
1015
+ item: {
1016
+ type: ObjectConstructor;
1017
+ required: true;
1018
+ };
884
1019
  paramCfg: {
885
1020
  type: ObjectConstructor;
886
1021
  default: null;
@@ -899,6 +1034,10 @@ declare const _default: import("vue").DefineComponent<{
899
1034
  };
900
1035
  }, {
901
1036
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
1037
+ item: {
1038
+ type: ObjectConstructor;
1039
+ required: true;
1040
+ };
902
1041
  paramCfg: {
903
1042
  type: ObjectConstructor;
904
1043
  default: null;
@@ -923,6 +1062,7 @@ declare const _default: import("vue").DefineComponent<{
923
1062
  emit: (event: "update:modelValue" | "update:presetVal" | "update:customDate", ...args: any[]) => void;
924
1063
  startDate: import("vue").Ref<any>;
925
1064
  endDate: import("vue").Ref<any>;
1065
+ filterType: import("vue").ComputedRef<"1" | "2" | "3">;
926
1066
  valueFormat: import("vue").ComputedRef<string>;
927
1067
  dateFormat: import("vue").ComputedRef<string>;
928
1068
  compType: import("vue").ComputedRef<any>;
@@ -941,7 +1081,7 @@ declare const _default: import("vue").DefineComponent<{
941
1081
  value: string;
942
1082
  }[]>;
943
1083
  presetValCp: import("vue").WritableComputedRef<string>;
944
- customDateCp: import("vue").WritableComputedRef<string>;
1084
+ valueDateCp: import("vue").WritableComputedRef<unknown>;
945
1085
  handleChange: (val: any, type: "start" | "end") => void;
946
1086
  isStartDateDisabled: (ts: number) => boolean;
947
1087
  timeStartDisabled: (ts: number) => {
@@ -1086,6 +1226,109 @@ declare const _default: import("vue").DefineComponent<{
1086
1226
  to: string | false | HTMLElement;
1087
1227
  holidays: Date[];
1088
1228
  }>>;
1229
+ DateOption: import("vue").DefineComponent<{
1230
+ filterType: {
1231
+ type: StringConstructor;
1232
+ required: true;
1233
+ };
1234
+ modelValue: {
1235
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
1236
+ default: null;
1237
+ };
1238
+ presetVal: {
1239
+ type: StringConstructor;
1240
+ default: null;
1241
+ };
1242
+ dateType: {
1243
+ type: StringConstructor;
1244
+ };
1245
+ isDateDisabled: {
1246
+ type: FunctionConstructor;
1247
+ };
1248
+ timeDisabled: {
1249
+ type: FunctionConstructor;
1250
+ };
1251
+ valueFormat: {
1252
+ type: StringConstructor;
1253
+ };
1254
+ }, {
1255
+ widgetOptions: {
1256
+ label: string;
1257
+ value: string;
1258
+ }[];
1259
+ widgetRangeOptions: {
1260
+ label: string;
1261
+ value: string;
1262
+ }[];
1263
+ startDateNum: import("vue").Ref<any>;
1264
+ endDateNum: import("vue").Ref<any>;
1265
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
1266
+ filterType: {
1267
+ type: StringConstructor;
1268
+ required: true;
1269
+ };
1270
+ modelValue: {
1271
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
1272
+ default: null;
1273
+ };
1274
+ presetVal: {
1275
+ type: StringConstructor;
1276
+ default: null;
1277
+ };
1278
+ dateType: {
1279
+ type: StringConstructor;
1280
+ };
1281
+ isDateDisabled: {
1282
+ type: FunctionConstructor;
1283
+ };
1284
+ timeDisabled: {
1285
+ type: FunctionConstructor;
1286
+ };
1287
+ valueFormat: {
1288
+ type: StringConstructor;
1289
+ };
1290
+ }>> & {
1291
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
1292
+ "onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
1293
+ }>>;
1294
+ emit: (event: "update:modelValue" | "update:presetVal", ...args: any[]) => void;
1295
+ valueCp: import("vue").WritableComputedRef<any>;
1296
+ presetValCp: import("vue").WritableComputedRef<string>;
1297
+ handleChange: (val: any, type: "start" | "end") => void;
1298
+ NSelect: any;
1299
+ NInputNumber: any;
1300
+ }, 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<{
1301
+ filterType: {
1302
+ type: StringConstructor;
1303
+ required: true;
1304
+ };
1305
+ modelValue: {
1306
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
1307
+ default: null;
1308
+ };
1309
+ presetVal: {
1310
+ type: StringConstructor;
1311
+ default: null;
1312
+ };
1313
+ dateType: {
1314
+ type: StringConstructor;
1315
+ };
1316
+ isDateDisabled: {
1317
+ type: FunctionConstructor;
1318
+ };
1319
+ timeDisabled: {
1320
+ type: FunctionConstructor;
1321
+ };
1322
+ valueFormat: {
1323
+ type: StringConstructor;
1324
+ };
1325
+ }>> & {
1326
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
1327
+ "onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
1328
+ }, {
1329
+ modelValue: string | number | unknown[];
1330
+ presetVal: string;
1331
+ }>;
1089
1332
  WidgetValEnums: {
1090
1333
  CUSTOM: string;
1091
1334
  FIRST_VAL: string;
@@ -1118,6 +1361,10 @@ declare const _default: import("vue").DefineComponent<{
1118
1361
  LAST_YEAR: string;
1119
1362
  };
1120
1363
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:presetVal" | "update:customDate")[], "update:modelValue" | "update:presetVal" | "update:customDate", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1364
+ item: {
1365
+ type: ObjectConstructor;
1366
+ required: true;
1367
+ };
1121
1368
  paramCfg: {
1122
1369
  type: ObjectConstructor;
1123
1370
  default: null;
@@ -1270,6 +1517,10 @@ declare const _default: import("vue").DefineComponent<{
1270
1517
  SELECTTREEDYNAMIC: string;
1271
1518
  };
1272
1519
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:isAccurate" | "update:presetVal" | "update:customDate")[], "update:modelValue" | "update:isAccurate" | "update:presetVal" | "update:customDate", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1520
+ item: {
1521
+ type: ObjectConstructor;
1522
+ default: null;
1523
+ };
1273
1524
  paramCfg: {
1274
1525
  type: ObjectConstructor;
1275
1526
  default: null;
@@ -1296,6 +1547,7 @@ declare const _default: import("vue").DefineComponent<{
1296
1547
  "onUpdate:customDate"?: ((...args: any[]) => any) | undefined;
1297
1548
  }, {
1298
1549
  modelValue: string | number | unknown[];
1550
+ item: Record<string, any>;
1299
1551
  paramCfg: Record<string, any>;
1300
1552
  presetVal: string;
1301
1553
  isAccurate: boolean;
@@ -1304,11 +1556,12 @@ declare const _default: import("vue").DefineComponent<{
1304
1556
  ConditionEnums: {
1305
1557
  NULL: string;
1306
1558
  EQUAL: string;
1559
+ CUSTOM_RANGE: string;
1560
+ IN_THE_PAST: string;
1561
+ IN_THE_FUTURE: string;
1562
+ IN_THE_PAST_DI: string;
1563
+ IN_THE_FUTURE_DI: string;
1307
1564
  };
1308
- conditionOptions: {
1309
- label: string;
1310
- value: string;
1311
- }[];
1312
1565
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("cancelSaveAdd" | "saveAdd")[], "cancelSaveAdd" | "saveAdd", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1313
1566
  actionList_prop: {
1314
1567
  type: PropType<IClassifyListType>;
@@ -2,10 +2,10 @@ import { createElementVNode, defineComponent, useAttrs, reactive, ref, provide,
2
2
  import { useMessage, NSpin, NInput, NIcon, NButton, NSelect, NTooltip } from 'naive-ui';
3
3
  import { CloseOutline, AddOutline, AddCircleSharp } from '@vicons/ionicons5';
4
4
  import ValueCfg from './ValueCfg.vue.js';
5
- import { ConditionEnums, DataTypeEnums } from '../../types/enums.js';
5
+ import { ConditionEnums, DataTypeEnums, WidgetTypeEnums } from '../../types/enums.js';
6
6
  import { useDisplayCategory } from './hooks/useDisplayCategory.js';
7
7
  import { useFilterConditions } from './hooks/useFilterConditions.js';
8
- import { conditionOptions } from './helpers/options.js';
8
+ import { dateConditionOptions, baseConditionOptions } from './helpers/options.js';
9
9
  import { InjectionClassifyFilterList } from '../../constants/index.js';
10
10
 
11
11
  const _hoisted_1 = {
@@ -93,6 +93,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
93
93
  const menuProps = {
94
94
  class: "classify-fieldkey-popover"
95
95
  };
96
+ const specialDateRange = [ConditionEnums.IN_THE_PAST, ConditionEnums.IN_THE_FUTURE, ConditionEnums.IN_THE_PAST_DI, ConditionEnums.IN_THE_FUTURE_DI];
97
+ const specialCustomDateRange = [ConditionEnums.CUSTOM_RANGE];
96
98
  const $attrs = useAttrs();
97
99
  const FormState = reactive({
98
100
  className: "",
@@ -126,6 +128,11 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
126
128
  initFilterConditions,
127
129
  getRawFilterConditions
128
130
  } = useFilterConditions(toRef(FormState, "filterConditions"), props.searchFieldList, DataTypeEnums.API);
131
+ const dateTypeList = [WidgetTypeEnums.DATE_RANGE_INNER, WidgetTypeEnums.DATETIME_RANGE_INNER];
132
+ function getOptions(key) {
133
+ const item = getParamCfg(key);
134
+ return dateTypeList.includes(item.type) ? dateConditionOptions : baseConditionOptions;
135
+ }
129
136
  function handleEditDisplayCategory(item) {
130
137
  item.disabled = false;
131
138
  setTimeout(() => {
@@ -203,7 +210,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
203
210
  presetVal,
204
211
  customDate
205
212
  }) => {
206
- return !key || !condition || condition === ConditionEnums.EQUAL && !value && !presetVal && !customDate;
213
+ var _a;
214
+ return !key || !condition || condition === ConditionEnums.EQUAL && !value && !presetVal && !customDate || specialDateRange.includes(condition) && (!value || !presetVal) || specialCustomDateRange.includes(condition) && (!value || ((_a = (value != null ? value : "").split("~")) == null ? void 0 : _a.length) < 2 || !presetVal);
207
215
  });
208
216
  if (isEmpty) {
209
217
  $message.warning(function() {
@@ -381,7 +389,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
381
389
  value: item.condition,
382
390
  to: "body",
383
391
  filterable: "",
384
- options: unref(conditionOptions),
392
+ options: getOptions(item.key),
385
393
  "onUpdate:value": ($event) => unref(updateCondition)(index, $event)
386
394
  }, null, 8, ["value", "options", "onUpdate:value"])) : createCommentVNode("v-if", true), createCommentVNode(function() {
387
395
  var _a, _b, _c;
@@ -390,7 +398,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
390
398
  } catch (e) {
391
399
  return "\u81EA\u5B9A\u4E49";
392
400
  }
393
- }()), item.key && item.condition && item.condition !== unref(ConditionEnums).NULL ? (openBlock(), createBlock(ValueCfg, {
401
+ }()), item.key && item.condition && item.condition !== unref(ConditionEnums).NULL && item.condition !== unref(ConditionEnums).NOT_NULL ? (openBlock(), createBlock(ValueCfg, {
394
402
  key: 1,
395
403
  modelValue: item.value,
396
404
  "onUpdate:modelValue": ($event) => item.value = $event,
@@ -400,8 +408,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
400
408
  "onUpdate:isAccurate": ($event) => item.isAccurateSearch = $event,
401
409
  customDate: item.customDate,
402
410
  "onUpdate:customDate": ($event) => item.customDate = $event,
411
+ item,
403
412
  "param-cfg": unref(getParamCfg)(item.key)
404
- }, null, 8, ["modelValue", "onUpdate:modelValue", "presetVal", "onUpdate:presetVal", "isAccurate", "onUpdate:isAccurate", "customDate", "onUpdate:customDate", "param-cfg"])) : createCommentVNode("v-if", true), createVNode(unref(NTooltip), {
413
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "presetVal", "onUpdate:presetVal", "isAccurate", "onUpdate:isAccurate", "customDate", "onUpdate:customDate", "item", "param-cfg"])) : createCommentVNode("v-if", true), createVNode(unref(NTooltip), {
405
414
  title: function() {
406
415
  var _a, _b, _c;
407
416
  try {
@@ -315,7 +315,7 @@ declare const _default: import("vue").DefineComponent<{
315
315
  value: string;
316
316
  placeholder: string;
317
317
  unit: string;
318
- clearable: boolean;
319
318
  valueFormat: string;
319
+ clearable: boolean;
320
320
  }>;
321
321
  export default _default;
@@ -225,7 +225,7 @@ declare const _default: import("vue").DefineComponent<{
225
225
  type: ITypeDate;
226
226
  value: string;
227
227
  placeholder: string;
228
- clearable: boolean;
229
228
  valueFormat: string;
229
+ clearable: boolean;
230
230
  }>;
231
231
  export default _default;
@@ -72,7 +72,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
72
72
  return;
73
73
  }
74
74
  let resultDate = null;
75
- const quickBtnVal = props.radioValue === (date == null ? void 0 : date.value) ? "" : date.value;
75
+ const quickBtnVal = props.radioValue === (date == null ? void 0 : date.con) ? "" : date.con;
76
76
  if (quickBtnVal) {
77
77
  resultDate = isRange.value ? formatDateRangeInfo(quickBtnVal, props.dateFormat, optionSetting.value) : presetValToTimestamp(quickBtnVal, props.dateFormat);
78
78
  }
@@ -336,8 +336,8 @@ declare const _default: import("vue").DefineComponent<{
336
336
  type: ITypeDate;
337
337
  value: string;
338
338
  unit: string;
339
- clearable: boolean;
340
339
  valueFormat: string;
340
+ clearable: boolean;
341
341
  startPlaceholder: string;
342
342
  endPlaceholder: string;
343
343
  }>;
@@ -420,8 +420,8 @@ declare const DateInner: import("vue").DefineComponent<{
420
420
  value: string;
421
421
  placeholder: string;
422
422
  unit: string;
423
- clearable: boolean;
424
423
  valueFormat: string;
424
+ clearable: boolean;
425
425
  }>;
426
426
  declare const DateOut: import("vue").DefineComponent<{
427
427
  componentCfg: {
@@ -647,8 +647,8 @@ declare const DateOut: import("vue").DefineComponent<{
647
647
  type: "date" | "datetime";
648
648
  value: string;
649
649
  placeholder: string;
650
- clearable: boolean;
651
650
  valueFormat: string;
651
+ clearable: boolean;
652
652
  }>;
653
653
  declare const DateRangeInner: import("vue").DefineComponent<{
654
654
  componentCfg: {
@@ -985,8 +985,8 @@ declare const DateRangeInner: import("vue").DefineComponent<{
985
985
  type: "date" | "datetime";
986
986
  value: string;
987
987
  unit: string;
988
- clearable: boolean;
989
988
  valueFormat: string;
989
+ clearable: boolean;
990
990
  startPlaceholder: string;
991
991
  endPlaceholder: string;
992
992
  }>;
@@ -595,8 +595,22 @@ const baseDateRangeInner = {
595
595
  }(),
596
596
  con: WidgetValEnums.PAST_HALF_YEAR
597
597
  }, {
598
- name: "\u8FD1\u4E00\u5E74",
599
- title: "\u8FD1\u4E00\u5E74",
598
+ name: function() {
599
+ var _a, _b, _c;
600
+ try {
601
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.667")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.667")) || "\u8FD1\u4E00\u5E74";
602
+ } catch (e) {
603
+ return "\u8FD1\u4E00\u5E74";
604
+ }
605
+ }(),
606
+ title: function() {
607
+ var _a, _b, _c;
608
+ try {
609
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.667")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.667")) || "\u8FD1\u4E00\u5E74";
610
+ } catch (e) {
611
+ return "\u8FD1\u4E00\u5E74";
612
+ }
613
+ }(),
600
614
  con: WidgetValEnums.PAST_YEAR
601
615
  }],
602
616
  [WidgetOptionEnums.PAST_TIME]: [{
@@ -834,8 +848,22 @@ const baseDateRangeInner = {
834
848
  }(),
835
849
  con: WidgetValEnums.PAST_HALF_YEAR
836
850
  }, {
837
- name: "\u8FD1\u4E00\u5E74",
838
- title: "\u8FD1\u4E00\u5E74",
851
+ name: function() {
852
+ var _a, _b, _c;
853
+ try {
854
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.667")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.667")) || "\u8FD1\u4E00\u5E74";
855
+ } catch (e) {
856
+ return "\u8FD1\u4E00\u5E74";
857
+ }
858
+ }(),
859
+ title: function() {
860
+ var _a, _b, _c;
861
+ try {
862
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.667")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.667")) || "\u8FD1\u4E00\u5E74";
863
+ } catch (e) {
864
+ return "\u8FD1\u4E00\u5E74";
865
+ }
866
+ }(),
839
867
  con: WidgetValEnums.PAST_YEAR
840
868
  }],
841
869
  [WidgetOptionEnums.FUTURE_TIME]: [{
@@ -1,3 +1,4 @@
1
1
  export declare const presetValToTimestamp: (presetVal: string, format?: string, isOrigin?: boolean) => any;
2
2
  export declare const formatDateRangeInfo: (key: string, format?: string, optionSetting?: string, isOrigin?: boolean) => string | number | any[];
3
+ export declare const formatSpecialDateRange: (conObj: any, format?: string) => string;
3
4
  export declare const presetValToDateRangestr: (presetVal: string, format?: string) => string | null;
@@ -1,5 +1,5 @@
1
1
  import { DateRangeOutDefEnums, DatePresetValEnums, DateRangeInnerValEnums } from '../enums.js';
2
- import { WidgetOptionEnums } from '../../../types/enums.js';
2
+ import { WidgetOptionEnums, ConditionEnums } from '../../../types/enums.js';
3
3
  import { dateDisabledCollect } from './dateDisabled.js';
4
4
  import moment from 'moment';
5
5
 
@@ -142,6 +142,42 @@ const formatDateRangeInfo = (key, format = "x", optionSetting = WidgetOptionEnum
142
142
  }
143
143
  return [];
144
144
  };
145
+ const formatSpecialDateRange = (conObj, format = "x") => {
146
+ if (Array.isArray(conObj.value) && conObj.con && conObj.unit) {
147
+ let num = 0;
148
+ let startNum = 0;
149
+ let endNum = 0;
150
+ const getStartAndEndValue = (result) => {
151
+ const [start, end] = result.split("~");
152
+ if (start.trim())
153
+ startNum = Number(start.trim());
154
+ if (end.trim())
155
+ endNum = Number(end.trim());
156
+ };
157
+ ConditionEnums.CUSTOM_RANGE === conObj.con ? getStartAndEndValue(conObj.value[0]) : num = Number(conObj.value);
158
+ const unit = conObj.unit.toLowerCase();
159
+ switch (conObj.con) {
160
+ case ConditionEnums.CUSTOM_RANGE: {
161
+ const startResult = startNum < 0 ? moment().subtract(Math.abs(startNum), unit).startOf("day").format(format) : moment().add(startNum, unit).startOf("day").format(format);
162
+ const endResult = endNum < 0 ? moment().subtract(Math.abs(endNum), unit).endOf("day").format(format) : moment().add(endNum, unit).endOf("day").format(format);
163
+ return `${startResult} ~ ${endResult}`;
164
+ }
165
+ case ConditionEnums.IN_THE_PAST: {
166
+ return `${moment().subtract(num, unit).startOf("day").format(format)} ~ ${moment().format(format)}`;
167
+ }
168
+ case ConditionEnums.IN_THE_FUTURE: {
169
+ return `${moment().format(format)} ~ ${moment().add(num, unit).endOf("day").format(format)}`;
170
+ }
171
+ case ConditionEnums.IN_THE_PAST_DI: {
172
+ return `${moment().subtract(num, unit).startOf("day").format(format)} ~ ${moment().subtract(num, unit).endOf("day").format(format)}`;
173
+ }
174
+ case ConditionEnums.IN_THE_FUTURE_DI: {
175
+ return `${moment().add(num, unit).startOf("day").format(format)} ~ ${moment().add(num, unit).endOf("day").format(format)}`;
176
+ }
177
+ }
178
+ }
179
+ return "";
180
+ };
145
181
  const dateRangeOutMap = new Map([...dateRangeMapInner, [DateRangeOutDefEnums.PAST_WEEK, () => [moment().subtract(6, "days").startOf("day"), moment().endOf("day")]], [DateRangeOutDefEnums.PAST_MONTH, () => [moment().subtract(1, "months").startOf("day"), moment().endOf("day")]], [DateRangeOutDefEnums.PAST_HALF_YEAR, () => [moment().subtract(6, "months").startOf("day"), moment().endOf("day")]]]);
146
182
  const presetValToDateRangestr = (presetVal, format = "x") => {
147
183
  if (!dateRangeOutMap.has(presetVal))
@@ -155,4 +191,4 @@ const presetValToDateRangestr = (presetVal, format = "x") => {
155
191
  return null;
156
192
  };
157
193
 
158
- export { formatDateRangeInfo, presetValToDateRangestr, presetValToTimestamp };
194
+ export { formatDateRangeInfo, formatSpecialDateRange, presetValToDateRangestr, presetValToTimestamp };
@@ -735,8 +735,8 @@ export declare const WidgetCfgMaps: Map<string, {
735
735
  value: string;
736
736
  placeholder: string;
737
737
  unit: string;
738
- clearable: boolean;
739
738
  valueFormat: string;
739
+ clearable: boolean;
740
740
  }>;
741
741
  props: {
742
742
  type: string;
@@ -976,8 +976,8 @@ export declare const WidgetCfgMaps: Map<string, {
976
976
  type: "date" | "datetime";
977
977
  value: string;
978
978
  placeholder: string;
979
- clearable: boolean;
980
979
  valueFormat: string;
980
+ clearable: boolean;
981
981
  }>;
982
982
  props: {
983
983
  type: string;
@@ -1328,8 +1328,8 @@ export declare const WidgetCfgMaps: Map<string, {
1328
1328
  type: "date" | "datetime";
1329
1329
  value: string;
1330
1330
  unit: string;
1331
- clearable: boolean;
1332
1331
  valueFormat: string;
1332
+ clearable: boolean;
1333
1333
  startPlaceholder: string;
1334
1334
  endPlaceholder: string;
1335
1335
  }>;