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
@@ -0,0 +1,250 @@
1
+ import { defineComponent, ref, computed, watch, openBlock, createElementBlock, Fragment, createVNode, unref, isRef, createCommentVNode, createElementVNode } from 'vue';
2
+ import { isString } from 'lodash-es';
3
+ import { NInputNumber, NSelect } from 'naive-ui';
4
+
5
+ const _hoisted_1 = {
6
+ style: {
7
+ "display": "flex"
8
+ }
9
+ };
10
+ const _hoisted_2 = {
11
+ style: {
12
+ "display": "flex"
13
+ }
14
+ };
15
+ var _sfc_main = /* @__PURE__ */ defineComponent({
16
+ __name: "DateOption",
17
+ props: {
18
+ filterType: {
19
+ type: String,
20
+ required: true
21
+ },
22
+ modelValue: {
23
+ type: [String, Number, Array],
24
+ default: null
25
+ },
26
+ presetVal: {
27
+ type: String,
28
+ default: null
29
+ },
30
+ dateType: {
31
+ type: String
32
+ },
33
+ isDateDisabled: {
34
+ type: Function
35
+ },
36
+ timeDisabled: {
37
+ type: Function
38
+ },
39
+ valueFormat: {
40
+ type: String
41
+ }
42
+ },
43
+ emits: ["update:modelValue", "update:presetVal"],
44
+ setup(__props, {
45
+ emit
46
+ }) {
47
+ const props = __props;
48
+ const widgetOptions = [{
49
+ label: function() {
50
+ var _a, _b, _c;
51
+ try {
52
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.144")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.144")) || "\u5929";
53
+ } catch (e) {
54
+ return "\u5929";
55
+ }
56
+ }(),
57
+ value: "DAY"
58
+ }, {
59
+ label: function() {
60
+ var _a, _b, _c;
61
+ try {
62
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.346")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.346")) || "\u5468";
63
+ } catch (e) {
64
+ return "\u5468";
65
+ }
66
+ }(),
67
+ value: "WEEK"
68
+ }, {
69
+ label: function() {
70
+ var _a, _b, _c;
71
+ try {
72
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.347")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.347")) || "\u6708";
73
+ } catch (e) {
74
+ return "\u6708";
75
+ }
76
+ }(),
77
+ value: "MONTH"
78
+ }, {
79
+ label: function() {
80
+ var _a, _b, _c;
81
+ try {
82
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.348")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.348")) || "\u5B63\u5EA6";
83
+ } catch (e) {
84
+ return "\u5B63\u5EA6";
85
+ }
86
+ }(),
87
+ value: "QUARTER"
88
+ }, {
89
+ label: function() {
90
+ var _a, _b, _c;
91
+ try {
92
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.349")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.349")) || "\u5E74";
93
+ } catch (e) {
94
+ return "\u5E74";
95
+ }
96
+ }(),
97
+ value: "YEAR"
98
+ }, {
99
+ label: function() {
100
+ var _a, _b, _c;
101
+ try {
102
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.350")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.350")) || "\u5C0F\u65F6";
103
+ } catch (e) {
104
+ return "\u5C0F\u65F6";
105
+ }
106
+ }(),
107
+ value: "HOUR"
108
+ }];
109
+ const widgetRangeOptions = [{
110
+ label: function() {
111
+ var _a, _b, _c;
112
+ try {
113
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.144")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.144")) || "\u5929";
114
+ } catch (e) {
115
+ return "\u5929";
116
+ }
117
+ }(),
118
+ value: "DAY"
119
+ }, {
120
+ label: function() {
121
+ var _a, _b, _c;
122
+ try {
123
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.346")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.346")) || "\u5468";
124
+ } catch (e) {
125
+ return "\u5468";
126
+ }
127
+ }(),
128
+ value: "WEEK"
129
+ }, {
130
+ label: function() {
131
+ var _a, _b, _c;
132
+ try {
133
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.347")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.347")) || "\u6708";
134
+ } catch (e) {
135
+ return "\u6708";
136
+ }
137
+ }(),
138
+ value: "MONTH"
139
+ }, {
140
+ label: function() {
141
+ var _a, _b, _c;
142
+ try {
143
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.349")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.349")) || "\u5E74";
144
+ } catch (e) {
145
+ return "\u5E74";
146
+ }
147
+ }(),
148
+ value: "YEAR"
149
+ }];
150
+ const startDateNum = ref();
151
+ const endDateNum = ref();
152
+ const valueCp = computed({
153
+ set(val) {
154
+ if (props.filterType === "3") {
155
+ emit("update:modelValue", val);
156
+ }
157
+ },
158
+ get() {
159
+ return props.filterType === "3" && typeof props.modelValue === "string" ? Number(props.modelValue) : props.modelValue;
160
+ }
161
+ });
162
+ const presetValCp = computed({
163
+ set(val) {
164
+ emit("update:presetVal", val);
165
+ },
166
+ get() {
167
+ return props.presetVal;
168
+ }
169
+ });
170
+ function handleChange(val, type) {
171
+ var _a, _b;
172
+ switch (type) {
173
+ case "start":
174
+ startDateNum.value = val;
175
+ break;
176
+ case "end":
177
+ endDateNum.value = val;
178
+ break;
179
+ }
180
+ const result = startDateNum.value || endDateNum.value ? `${(_a = startDateNum.value) != null ? _a : ""} ~ ${(_b = endDateNum.value) != null ? _b : ""}` : "";
181
+ emit("update:modelValue", result);
182
+ }
183
+ watch(() => props.modelValue, (val) => {
184
+ if (val && props.filterType === "2" && isString(val) && val.includes("~")) {
185
+ const [start, end] = val.split("~");
186
+ if (start.trim())
187
+ startDateNum.value = Number(start);
188
+ if (end.trim())
189
+ endDateNum.value = Number(end);
190
+ return;
191
+ }
192
+ startDateNum.value = endDateNum.value = null;
193
+ }, {
194
+ immediate: true
195
+ });
196
+ return (_ctx, _cache) => {
197
+ return openBlock(), createElementBlock("div", _hoisted_1, [__props.filterType === "3" ? (openBlock(), createElementBlock(Fragment, {
198
+ key: 0
199
+ }, [createVNode(unref(NInputNumber), {
200
+ style: {
201
+ "width": "80px"
202
+ },
203
+ class: "form-item",
204
+ value: unref(valueCp),
205
+ "onUpdate:value": _cache[0] || (_cache[0] = ($event) => isRef(valueCp) ? valueCp.value = $event : null),
206
+ "show-button": false
207
+ }, null, 8, ["value"]), createVNode(unref(NSelect), {
208
+ style: {
209
+ "width": "120px"
210
+ },
211
+ class: "form-item",
212
+ to: "body",
213
+ value: unref(presetValCp),
214
+ "onUpdate:value": _cache[1] || (_cache[1] = ($event) => isRef(presetValCp) ? presetValCp.value = $event : null),
215
+ options: widgetOptions
216
+ }, null, 8, ["value"])], 64)) : __props.filterType === "2" ? (openBlock(), createElementBlock(Fragment, {
217
+ key: 1
218
+ }, [createCommentVNode(" \u65E5\u671F\u5F00\u59CB\u7ED3\u675F\u7684\u8303\u56F4 "), createElementVNode("div", _hoisted_2, [createVNode(unref(NInputNumber), {
219
+ style: {
220
+ "width": "100px"
221
+ },
222
+ class: "form-item",
223
+ value: startDateNum.value,
224
+ "show-button": false,
225
+ placeholder: "\u5F00\u59CB\u6570\u91CF",
226
+ "onUpdate:value": _cache[2] || (_cache[2] = (val) => handleChange(val, "start"))
227
+ }, null, 8, ["value"]), createVNode(unref(NInputNumber), {
228
+ style: {
229
+ "width": "100px"
230
+ },
231
+ class: "form-item",
232
+ value: endDateNum.value,
233
+ "show-button": false,
234
+ placeholder: "\u7ED3\u675F\u6570\u91CF",
235
+ "onUpdate:value": _cache[3] || (_cache[3] = (val) => handleChange(val, "end"))
236
+ }, null, 8, ["value"]), createVNode(unref(NSelect), {
237
+ style: {
238
+ "width": "120px"
239
+ },
240
+ class: "form-item",
241
+ to: "body",
242
+ value: unref(presetValCp),
243
+ "onUpdate:value": _cache[4] || (_cache[4] = ($event) => isRef(presetValCp) ? presetValCp.value = $event : null),
244
+ options: widgetRangeOptions
245
+ }, null, 8, ["value"])])], 2112)) : createCommentVNode("v-if", true), createCommentVNode(' <c-date-picker\r\n v-else\r\n class="form-item"\r\n :type="dateType"\r\n clearable\r\n to="body"\r\n :is-date-disabled="isDateDisabled"\r\n :is-time-disabled="timeDisabled"\r\n :valueFormat="valueFormat"\r\n v-model:formatted-value="valueCp"\r\n /> ')]);
246
+ };
247
+ }
248
+ });
249
+
250
+ export { _sfc_main as default };
@@ -2,6 +2,10 @@ declare const _default: import("vue").DefineComponent<{
2
2
  componentCfg: {
3
3
  type: ObjectConstructor;
4
4
  };
5
+ item: {
6
+ type: ObjectConstructor;
7
+ required: true;
8
+ };
5
9
  paramCfg: {
6
10
  type: ObjectConstructor;
7
11
  default: null;
@@ -23,6 +27,10 @@ declare const _default: import("vue").DefineComponent<{
23
27
  componentCfg: {
24
28
  type: ObjectConstructor;
25
29
  };
30
+ item: {
31
+ type: ObjectConstructor;
32
+ required: true;
33
+ };
26
34
  paramCfg: {
27
35
  type: ObjectConstructor;
28
36
  default: null;
@@ -45,6 +53,7 @@ declare const _default: import("vue").DefineComponent<{
45
53
  "onUpdate:customDate"?: ((...args: any[]) => any) | undefined;
46
54
  }>>;
47
55
  emit: (event: "update:modelValue" | "update:presetVal" | "update:customDate", ...args: any[]) => void;
56
+ filterType: import("vue").ComputedRef<"1" | "2" | "3">;
48
57
  valueCp: import("vue").WritableComputedRef<any>;
49
58
  presetValCp: import("vue").WritableComputedRef<string>;
50
59
  dateType: any;
@@ -191,6 +200,109 @@ declare const _default: import("vue").DefineComponent<{
191
200
  holidays: Date[];
192
201
  }>>;
193
202
  NSelect: any;
203
+ DateOption: import("vue").DefineComponent<{
204
+ filterType: {
205
+ type: StringConstructor;
206
+ required: true;
207
+ };
208
+ modelValue: {
209
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
210
+ default: null;
211
+ };
212
+ presetVal: {
213
+ type: StringConstructor;
214
+ default: null;
215
+ };
216
+ dateType: {
217
+ type: StringConstructor;
218
+ };
219
+ isDateDisabled: {
220
+ type: FunctionConstructor;
221
+ };
222
+ timeDisabled: {
223
+ type: FunctionConstructor;
224
+ };
225
+ valueFormat: {
226
+ type: StringConstructor;
227
+ };
228
+ }, {
229
+ widgetOptions: {
230
+ label: string;
231
+ value: string;
232
+ }[];
233
+ widgetRangeOptions: {
234
+ label: string;
235
+ value: string;
236
+ }[];
237
+ startDateNum: import("vue").Ref<any>;
238
+ endDateNum: import("vue").Ref<any>;
239
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
240
+ filterType: {
241
+ type: StringConstructor;
242
+ required: true;
243
+ };
244
+ modelValue: {
245
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
246
+ default: null;
247
+ };
248
+ presetVal: {
249
+ type: StringConstructor;
250
+ default: null;
251
+ };
252
+ dateType: {
253
+ type: StringConstructor;
254
+ };
255
+ isDateDisabled: {
256
+ type: FunctionConstructor;
257
+ };
258
+ timeDisabled: {
259
+ type: FunctionConstructor;
260
+ };
261
+ valueFormat: {
262
+ type: StringConstructor;
263
+ };
264
+ }>> & {
265
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
266
+ "onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
267
+ }>>;
268
+ emit: (event: "update:modelValue" | "update:presetVal", ...args: any[]) => void;
269
+ valueCp: import("vue").WritableComputedRef<any>;
270
+ presetValCp: import("vue").WritableComputedRef<string>;
271
+ handleChange: (val: any, type: "start" | "end") => void;
272
+ NSelect: any;
273
+ NInputNumber: any;
274
+ }, 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<{
275
+ filterType: {
276
+ type: StringConstructor;
277
+ required: true;
278
+ };
279
+ modelValue: {
280
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
281
+ default: null;
282
+ };
283
+ presetVal: {
284
+ type: StringConstructor;
285
+ default: null;
286
+ };
287
+ dateType: {
288
+ type: StringConstructor;
289
+ };
290
+ isDateDisabled: {
291
+ type: FunctionConstructor;
292
+ };
293
+ timeDisabled: {
294
+ type: FunctionConstructor;
295
+ };
296
+ valueFormat: {
297
+ type: StringConstructor;
298
+ };
299
+ }>> & {
300
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
301
+ "onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
302
+ }, {
303
+ modelValue: string | number | unknown[];
304
+ presetVal: string;
305
+ }>;
194
306
  WidgetValEnums: {
195
307
  CUSTOM: string;
196
308
  FIRST_VAL: string;
@@ -226,6 +338,10 @@ declare const _default: import("vue").DefineComponent<{
226
338
  componentCfg: {
227
339
  type: ObjectConstructor;
228
340
  };
341
+ item: {
342
+ type: ObjectConstructor;
343
+ required: true;
344
+ };
229
345
  paramCfg: {
230
346
  type: ObjectConstructor;
231
347
  default: null;
@@ -1,7 +1,8 @@
1
- import { defineComponent, computed, openBlock, createElementBlock, createVNode, unref, isRef, createBlock, createCommentVNode } from 'vue';
1
+ import { defineComponent, computed, openBlock, createElementBlock, unref, Fragment, createVNode, isRef, createBlock, createCommentVNode } from 'vue';
2
2
  import DatePicker from '../../../../../date-picker/index.js';
3
3
  import { NSelect } from 'naive-ui';
4
- import { WidgetOptionEnums, WidgetTypeEnums, WidgetValEnums } from '../../../types/enums.js';
4
+ import DateOption from './Base/DateOption.vue.js';
5
+ import { ConditionEnums, WidgetOptionEnums, WidgetTypeEnums, WidgetValEnums } from '../../../types/enums.js';
5
6
  import { WidgetDateOptionEnums } from '../../render-widget/helpers/enums.js';
6
7
  import { widgetDateValOptions } from '../../render-widget/helpers/dateExtraMap.js';
7
8
  import { setDateDisabled, setTimeDisabled } from '../../render-widget/helpers/dateDisabled.js';
@@ -18,6 +19,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
18
19
  componentCfg: {
19
20
  type: Object
20
21
  },
22
+ item: {
23
+ type: Object,
24
+ required: true
25
+ },
21
26
  paramCfg: {
22
27
  type: Object,
23
28
  default: null
@@ -40,6 +45,27 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
40
45
  emit
41
46
  }) {
42
47
  const props = __props;
48
+ const filterType = computed(() => {
49
+ switch (props.item.condition) {
50
+ case ConditionEnums.EQUAL:
51
+ case ConditionEnums.NEQ:
52
+ return "1";
53
+ case ConditionEnums.BIG:
54
+ case ConditionEnums.LESS:
55
+ case ConditionEnums.BIGEQ:
56
+ case ConditionEnums.LESSEQ:
57
+ return "2";
58
+ case ConditionEnums.L_:
59
+ case ConditionEnums.N_:
60
+ case ConditionEnums.IN_THE_PAST:
61
+ case ConditionEnums.IN_THE_FUTURE:
62
+ case ConditionEnums.IN_THE_PAST_DI:
63
+ case ConditionEnums.IN_THE_FUTURE_DI:
64
+ return "3";
65
+ default:
66
+ return "1";
67
+ }
68
+ });
43
69
  const valueCp = computed({
44
70
  set(val) {
45
71
  emit("update:modelValue", val);
@@ -141,7 +167,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
141
167
  return setTimeDisabled(ts, optionSetting.value);
142
168
  }
143
169
  return (_ctx, _cache) => {
144
- return openBlock(), createElementBlock("div", _hoisted_1, [createVNode(unref(NSelect), {
170
+ return openBlock(), createElementBlock("div", _hoisted_1, [unref(filterType) === "1" ? (openBlock(), createElementBlock(Fragment, {
171
+ key: 0
172
+ }, [createVNode(unref(NSelect), {
145
173
  style: {
146
174
  "width": "120px"
147
175
  },
@@ -161,7 +189,18 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
161
189
  valueFormat: unref(valueFormat),
162
190
  "formatted-value": unref(valueCp),
163
191
  "onUpdate:formatted-value": _cache[1] || (_cache[1] = ($event) => isRef(valueCp) ? valueCp.value = $event : null)
164
- }, null, 8, ["type", "valueFormat", "formatted-value"])) : createCommentVNode("v-if", true)]);
192
+ }, null, 8, ["type", "valueFormat", "formatted-value"])) : createCommentVNode("v-if", true)], 64)) : (openBlock(), createBlock(DateOption, {
193
+ key: 1,
194
+ filterType: unref(filterType),
195
+ dateType: unref(dateType),
196
+ isDateDisabled,
197
+ timeDisabled,
198
+ valueFormat: unref(valueFormat),
199
+ modelValue: unref(valueCp),
200
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => isRef(valueCp) ? valueCp.value = $event : null),
201
+ presetVal: unref(presetValCp),
202
+ "onUpdate:presetVal": _cache[3] || (_cache[3] = ($event) => isRef(presetValCp) ? presetValCp.value = $event : null)
203
+ }, null, 8, ["filterType", "dateType", "valueFormat", "modelValue", "presetVal"]))]);
165
204
  };
166
205
  }
167
206
  });
@@ -1,5 +1,9 @@
1
1
  import { PropType } from 'vue';
2
2
  declare const _default: import("vue").DefineComponent<{
3
+ item: {
4
+ type: ObjectConstructor;
5
+ required: true;
6
+ };
3
7
  paramCfg: {
4
8
  type: ObjectConstructor;
5
9
  default: null;
@@ -18,6 +22,10 @@ declare const _default: import("vue").DefineComponent<{
18
22
  };
19
23
  }, {
20
24
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
25
+ item: {
26
+ type: ObjectConstructor;
27
+ required: true;
28
+ };
21
29
  paramCfg: {
22
30
  type: ObjectConstructor;
23
31
  default: null;
@@ -42,6 +50,7 @@ declare const _default: import("vue").DefineComponent<{
42
50
  emit: (event: "update:modelValue" | "update:presetVal" | "update:customDate", ...args: any[]) => void;
43
51
  startDate: import("vue").Ref<any>;
44
52
  endDate: import("vue").Ref<any>;
53
+ filterType: import("vue").ComputedRef<"1" | "2" | "3">;
45
54
  valueFormat: import("vue").ComputedRef<string>;
46
55
  dateFormat: import("vue").ComputedRef<string>;
47
56
  compType: import("vue").ComputedRef<any>;
@@ -60,7 +69,7 @@ declare const _default: import("vue").DefineComponent<{
60
69
  value: string;
61
70
  }[]>;
62
71
  presetValCp: import("vue").WritableComputedRef<string>;
63
- customDateCp: import("vue").WritableComputedRef<string>;
72
+ valueDateCp: import("vue").WritableComputedRef<unknown>;
64
73
  handleChange: (val: any, type: 'start' | 'end') => void;
65
74
  isStartDateDisabled: (ts: number) => boolean;
66
75
  timeStartDisabled: (ts: number) => {
@@ -205,6 +214,109 @@ declare const _default: import("vue").DefineComponent<{
205
214
  to: string | false | HTMLElement;
206
215
  holidays: Date[];
207
216
  }>>;
217
+ DateOption: import("vue").DefineComponent<{
218
+ filterType: {
219
+ type: StringConstructor;
220
+ required: true;
221
+ };
222
+ modelValue: {
223
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
224
+ default: null;
225
+ };
226
+ presetVal: {
227
+ type: StringConstructor;
228
+ default: null;
229
+ };
230
+ dateType: {
231
+ type: StringConstructor;
232
+ };
233
+ isDateDisabled: {
234
+ type: FunctionConstructor;
235
+ };
236
+ timeDisabled: {
237
+ type: FunctionConstructor;
238
+ };
239
+ valueFormat: {
240
+ type: StringConstructor;
241
+ };
242
+ }, {
243
+ widgetOptions: {
244
+ label: string;
245
+ value: string;
246
+ }[];
247
+ widgetRangeOptions: {
248
+ label: string;
249
+ value: string;
250
+ }[];
251
+ startDateNum: import("vue").Ref<any>;
252
+ endDateNum: import("vue").Ref<any>;
253
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
254
+ filterType: {
255
+ type: StringConstructor;
256
+ required: true;
257
+ };
258
+ modelValue: {
259
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
260
+ default: null;
261
+ };
262
+ presetVal: {
263
+ type: StringConstructor;
264
+ default: null;
265
+ };
266
+ dateType: {
267
+ type: StringConstructor;
268
+ };
269
+ isDateDisabled: {
270
+ type: FunctionConstructor;
271
+ };
272
+ timeDisabled: {
273
+ type: FunctionConstructor;
274
+ };
275
+ valueFormat: {
276
+ type: StringConstructor;
277
+ };
278
+ }>> & {
279
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
280
+ "onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
281
+ }>>;
282
+ emit: (event: "update:modelValue" | "update:presetVal", ...args: any[]) => void;
283
+ valueCp: import("vue").WritableComputedRef<any>;
284
+ presetValCp: import("vue").WritableComputedRef<string>;
285
+ handleChange: (val: any, type: "start" | "end") => void;
286
+ NSelect: any;
287
+ NInputNumber: any;
288
+ }, 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<{
289
+ filterType: {
290
+ type: StringConstructor;
291
+ required: true;
292
+ };
293
+ modelValue: {
294
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
295
+ default: null;
296
+ };
297
+ presetVal: {
298
+ type: StringConstructor;
299
+ default: null;
300
+ };
301
+ dateType: {
302
+ type: StringConstructor;
303
+ };
304
+ isDateDisabled: {
305
+ type: FunctionConstructor;
306
+ };
307
+ timeDisabled: {
308
+ type: FunctionConstructor;
309
+ };
310
+ valueFormat: {
311
+ type: StringConstructor;
312
+ };
313
+ }>> & {
314
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
315
+ "onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
316
+ }, {
317
+ modelValue: string | number | unknown[];
318
+ presetVal: string;
319
+ }>;
208
320
  WidgetValEnums: {
209
321
  CUSTOM: string;
210
322
  FIRST_VAL: string;
@@ -237,6 +349,10 @@ declare const _default: import("vue").DefineComponent<{
237
349
  LAST_YEAR: string;
238
350
  };
239
351
  }, 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<{
352
+ item: {
353
+ type: ObjectConstructor;
354
+ required: true;
355
+ };
240
356
  paramCfg: {
241
357
  type: ObjectConstructor;
242
358
  default: null;