@das-fed/upf-ui 6.4.0-dev.307 → 6.4.0-dev.309

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 (234) hide show
  1. package/front-end/i18n/front-end-page/dasui_en-US.js +2 -2
  2. package/front-end/i18n/front-end-page/dasui_zh-CN.js +2 -2
  3. package/front-end/i18n/front-end-page/dasui_zh-MO.js +2 -2
  4. package/package.json +9 -9
  5. package/packages/business-components/ai-panel/{index-C1XseEkL.js → index-BdLFU3HT.js} +1 -1
  6. package/packages/business-components/ai-panel/index-BdLFU3HT.js.gz +0 -0
  7. package/packages/business-components/ai-panel/{index-_XzaXcle.js → index-Cc1_Wpca.js} +1154 -1136
  8. package/packages/business-components/ai-panel/index-Cc1_Wpca.js.gz +0 -0
  9. package/packages/business-components/ai-panel/index.js +1 -1
  10. package/packages/business-components/ai-panel/src/dasAI/hooks/audio.d.ts +1 -1
  11. package/packages/business-components/app-container/index.js +56 -56
  12. package/packages/business-components/app-container/index.js.gz +0 -0
  13. package/packages/business-components/area-phone-select/index.d.ts +30 -30
  14. package/packages/business-components/area-phone-select/index.js +87 -87
  15. package/packages/business-components/area-phone-select/index.js.gz +0 -0
  16. package/packages/business-components/area-phone-select/src/area-popover/index.vue.d.ts +4 -4
  17. package/packages/business-components/change-enterprises/index.js +20 -20
  18. package/packages/business-components/change-enterprises/index.js.gz +0 -0
  19. package/packages/business-components/change-pwd/index.js +15 -15
  20. package/packages/business-components/change-pwd/index.js.gz +0 -0
  21. package/packages/business-components/change-pwd/src/hooks/use-changePwd.d.ts +14 -14
  22. package/packages/business-components/currency-page/index.js +39 -39
  23. package/packages/business-components/currency-page/index.js.gz +0 -0
  24. package/packages/business-components/device-panel/index.js +46 -46
  25. package/packages/business-components/device-panel/index.js.gz +0 -0
  26. package/packages/business-components/device-panel/style.css +1 -1
  27. package/packages/business-components/device-panel/style.css.gz +0 -0
  28. package/packages/business-components/export-button/index.js +92 -92
  29. package/packages/business-components/export-button/index.js.gz +0 -0
  30. package/packages/business-components/import-button/index.js +171 -171
  31. package/packages/business-components/import-button/index.js.gz +0 -0
  32. package/packages/business-components/layout-breadcrumb/index.js +42 -42
  33. package/packages/business-components/layout-breadcrumb/index.js.gz +0 -0
  34. package/packages/business-components/model-table-dialog/index.d.ts +4 -4
  35. package/packages/business-components/model-table-dialog/index.js +233 -233
  36. package/packages/business-components/model-table-dialog/index.js.gz +0 -0
  37. package/packages/business-components/payment/index.js +44 -44
  38. package/packages/business-components/payment/index.js.gz +0 -0
  39. package/packages/business-components/process-form/index.js +939 -939
  40. package/packages/business-components/process-form/index.js.gz +0 -0
  41. package/packages/business-components/process-form/src/hooks/useForm.d.ts +14 -14
  42. package/packages/business-components/process-log/index.js +331 -331
  43. package/packages/business-components/process-log/index.js.gz +0 -0
  44. package/packages/business-components/process-log/style.css +1 -1
  45. package/packages/business-components/process-log/style.css.gz +0 -0
  46. package/packages/business-components/process-search-form/hooks/useSearchOptions.d.ts +2 -2
  47. package/packages/business-components/process-table/index.d.ts +14 -14
  48. package/packages/business-components/upload-file/index.js +43 -43
  49. package/packages/business-components/upload-file/index.js.gz +0 -0
  50. package/packages/business-components/upload-file/style.css +1 -1
  51. package/packages/business-components/urgent-panel/index.js +340 -340
  52. package/packages/business-components/urgent-panel/index.js.gz +0 -0
  53. package/packages/business-components/video-dialog/index.js +17 -17
  54. package/packages/business-components/video-dialog/index.js.gz +0 -0
  55. package/packages/business-components/video-dialog/style.css +1 -1
  56. package/packages/business-components/video-dialog/style.css.gz +0 -0
  57. package/packages/components/alert/index.d.ts +4 -4
  58. package/packages/components/alert/index.js +5 -5
  59. package/packages/components/alert/index.js.gz +0 -0
  60. package/packages/components/audio-video/index.js +141 -141
  61. package/packages/components/audio-video/index.js.gz +0 -0
  62. package/packages/components/autocomplete/index.d.ts +6 -6
  63. package/packages/components/autocomplete/index.js +162 -162
  64. package/packages/components/autocomplete/index.js.gz +0 -0
  65. package/packages/components/autocomplete/style.css +1 -1
  66. package/packages/components/autocomplete/style.css.gz +0 -0
  67. package/packages/components/breadcrumb/index.js +37 -37
  68. package/packages/components/breadcrumb/index.js.gz +0 -0
  69. package/packages/components/button/index.js +223 -223
  70. package/packages/components/button/index.js.gz +0 -0
  71. package/packages/components/calendar/index.js +164 -164
  72. package/packages/components/calendar/index.js.gz +0 -0
  73. package/packages/components/cascader/index.d.ts +8 -8
  74. package/packages/components/cascader/index.js +89 -89
  75. package/packages/components/cascader/index.js.gz +0 -0
  76. package/packages/components/cascader/style.css +1 -1
  77. package/packages/components/cascader/style.css.gz +0 -0
  78. package/packages/components/checkbox/index.d.ts +12 -12
  79. package/packages/components/checkbox/index.js +180 -180
  80. package/packages/components/checkbox/index.js.gz +0 -0
  81. package/packages/components/checkbox/style.css +1 -1
  82. package/packages/components/checkbox/style.css.gz +0 -0
  83. package/packages/components/collapse-panel/index.js +12 -12
  84. package/packages/components/collapse-panel/index.js.gz +0 -0
  85. package/packages/components/collaspe/index.d.ts +4 -4
  86. package/packages/components/collaspe/index.js +22 -22
  87. package/packages/components/collaspe/index.js.gz +0 -0
  88. package/packages/components/custom-search-item/index.d.ts +4 -4
  89. package/packages/components/custom-search-item/index.js +36 -36
  90. package/packages/components/custom-search-item/index.js.gz +0 -0
  91. package/packages/components/date-picker/index.js +658 -658
  92. package/packages/components/date-picker/index.js.gz +0 -0
  93. package/packages/components/date-picker/style.css +1 -1
  94. package/packages/components/date-picker/style.css.gz +0 -0
  95. package/packages/components/dialog/index.js +1 -1
  96. package/packages/components/dialog/index.js.gz +0 -0
  97. package/packages/components/dialog/style.css +1 -1
  98. package/packages/components/dialog/style.css.gz +0 -0
  99. package/packages/components/dimple-layout/index.js +73 -31
  100. package/packages/components/dimple-layout/index.js.gz +0 -0
  101. package/packages/components/dropdown/index.js +33 -33
  102. package/packages/components/dropdown/index.js.gz +0 -0
  103. package/packages/components/edit-table/index.d.ts +4 -4
  104. package/packages/components/edit-table/index.js +190 -190
  105. package/packages/components/edit-table/index.js.gz +0 -0
  106. package/packages/components/empty/index.js +29 -29
  107. package/packages/components/empty/index.js.gz +0 -0
  108. package/packages/components/error-overlay-model/index.js +31 -31
  109. package/packages/components/error-overlay-model/index.js.gz +0 -0
  110. package/packages/components/form/index.d.ts +14 -14
  111. package/packages/components/form/index.js +23 -23
  112. package/packages/components/form/index.js.gz +0 -0
  113. package/packages/components/form-item/index.js +771 -771
  114. package/packages/components/form-item/index.js.gz +0 -0
  115. package/packages/components/form-item/style.css +1 -1
  116. package/packages/components/form-item/style.css.gz +0 -0
  117. package/packages/components/image-upload/index.js +90 -90
  118. package/packages/components/image-upload/index.js.gz +0 -0
  119. package/packages/components/image-viewer/index.js +418 -418
  120. package/packages/components/image-viewer/index.js.gz +0 -0
  121. package/packages/components/infinite-scroll/index.d.ts +3 -1
  122. package/packages/components/infinite-scroll/index.js +509 -509
  123. package/packages/components/infinite-scroll/index.js.gz +0 -0
  124. package/packages/components/infinite-scroll/src/index.vue.d.ts +3 -1
  125. package/packages/components/infinite-scroll/src/type.d.ts +78 -78
  126. package/packages/components/infinite-scroll/style.css +1 -1
  127. package/packages/components/infinite-scroll/style.css.gz +0 -0
  128. package/packages/components/input/index.js +544 -544
  129. package/packages/components/input/index.js.gz +0 -0
  130. package/packages/components/input/src/index.vue.d.ts +2 -2
  131. package/packages/components/input/style.css +1 -1
  132. package/packages/components/input/style.css.gz +0 -0
  133. package/packages/components/input-dialog-select/index.js +82 -82
  134. package/packages/components/input-dialog-select/index.js.gz +0 -0
  135. package/packages/components/input-number/index.js +103 -103
  136. package/packages/components/input-number/index.js.gz +0 -0
  137. package/packages/components/input-number/style.css +1 -1
  138. package/packages/components/input-number/style.css.gz +0 -0
  139. package/packages/components/live-player/index.d.ts +4 -4
  140. package/packages/components/loading/index.js +1 -1
  141. package/packages/components/loading/index.js.gz +0 -0
  142. package/packages/components/menu-aside/index.js +600 -600
  143. package/packages/components/menu-aside/index.js.gz +0 -0
  144. package/packages/components/menu-header/index.js +17 -17
  145. package/packages/components/menu-header/index.js.gz +0 -0
  146. package/packages/components/notification/style.css +1 -1
  147. package/packages/components/notification/style.css.gz +0 -0
  148. package/packages/components/pagination/index.js +91 -91
  149. package/packages/components/pagination/index.js.gz +0 -0
  150. package/packages/components/pagination/style.css +1 -1
  151. package/packages/components/pagination/style.css.gz +0 -0
  152. package/packages/components/popover/index.d.ts +4 -4
  153. package/packages/components/popover/index.js +33 -33
  154. package/packages/components/popover/index.js.gz +0 -0
  155. package/packages/components/popup-mask/index.js +13 -13
  156. package/packages/components/popup-mask/index.js.gz +0 -0
  157. package/packages/components/progress/index.js +93 -93
  158. package/packages/components/progress/index.js.gz +0 -0
  159. package/packages/components/progress/style.css +1 -1
  160. package/packages/components/progress/style.css.gz +0 -0
  161. package/packages/components/radio/index.d.ts +10 -10
  162. package/packages/components/radio/index.js +175 -175
  163. package/packages/components/radio/index.js.gz +0 -0
  164. package/packages/components/rich-editor/index.js +234 -234
  165. package/packages/components/rich-editor/index.js.gz +0 -0
  166. package/packages/components/scrollbar/index.js +2 -2
  167. package/packages/components/scrollbar/index.js.gz +0 -0
  168. package/packages/components/search/index.js +68 -68
  169. package/packages/components/search/index.js.gz +0 -0
  170. package/packages/components/search-form/index.js +736 -736
  171. package/packages/components/search-form/index.js.gz +0 -0
  172. package/packages/components/search-form/style.css +1 -1
  173. package/packages/components/search-form/style.css.gz +0 -0
  174. package/packages/components/select/index.js +212 -212
  175. package/packages/components/select/index.js.gz +0 -0
  176. package/packages/components/select/style.css +1 -1
  177. package/packages/components/select/style.css.gz +0 -0
  178. package/packages/components/select-input/index.js +77 -77
  179. package/packages/components/select-input/index.js.gz +0 -0
  180. package/packages/components/select-list/index.js +430 -430
  181. package/packages/components/select-list/index.js.gz +0 -0
  182. package/packages/components/select-list/style.css +1 -1
  183. package/packages/components/select-list/style.css.gz +0 -0
  184. package/packages/components/special-range-picker-month/index.js +140 -140
  185. package/packages/components/special-range-picker-month/index.js.gz +0 -0
  186. package/packages/components/special-range-picker-month/style.css +1 -1
  187. package/packages/components/special-range-picker-month/style.css.gz +0 -0
  188. package/packages/components/special-range-picker-year/index.js +169 -169
  189. package/packages/components/special-range-picker-year/index.js.gz +0 -0
  190. package/packages/components/special-range-picker-year/style.css +1 -1
  191. package/packages/components/special-range-picker-year/style.css.gz +0 -0
  192. package/packages/components/spin/index.js +37 -37
  193. package/packages/components/spin/index.js.gz +0 -0
  194. package/packages/components/split-panel/index.d.ts +8 -8
  195. package/packages/components/split-panel/index.js +27 -27
  196. package/packages/components/split-panel/index.js.gz +0 -0
  197. package/packages/components/switch/style.css +1 -1
  198. package/packages/components/switch/style.css.gz +0 -0
  199. package/packages/components/table/index.d.ts +103 -103
  200. package/packages/components/table/index.js +1869 -1869
  201. package/packages/components/table/index.js.gz +0 -0
  202. package/packages/components/table/src/Table.vue.d.ts +9 -9
  203. package/packages/components/tabs/index.js +101 -101
  204. package/packages/components/tabs/index.js.gz +0 -0
  205. package/packages/components/text-tooltip/src/type.d.ts +5 -5
  206. package/packages/components/time-line/index.js +35 -35
  207. package/packages/components/time-line/index.js.gz +0 -0
  208. package/packages/components/tooltip/index.d.ts +6 -6
  209. package/packages/components/tooltip/index.js +62 -62
  210. package/packages/components/tooltip/index.js.gz +0 -0
  211. package/packages/components/tooltip/style.css +1 -1
  212. package/packages/components/tooltip/style.css.gz +0 -0
  213. package/packages/components/tree/index.js +426 -426
  214. package/packages/components/tree/index.js.gz +0 -0
  215. package/packages/components/tree-select/index.js +233 -233
  216. package/packages/components/tree-select/index.js.gz +0 -0
  217. package/packages/components/tree-select/src/App.vue.d.ts +14 -14
  218. package/packages/components/tree-select/src/hooks/use-tree-select.d.ts +12 -12
  219. package/packages/components/tree-table/index.d.ts +2 -2
  220. package/packages/components/tree-table/index.js +181 -181
  221. package/packages/components/tree-table/index.js.gz +0 -0
  222. package/packages/components/tree-v2/index.js +1308 -1308
  223. package/packages/components/tree-v2/index.js.gz +0 -0
  224. package/packages/components/tree-v2/src/App.vue.d.ts +155 -145
  225. package/packages/components/tree-v2/style.css +1 -1
  226. package/packages/components/tree-v2/style.css.gz +0 -0
  227. package/packages/components/upload/index.js +98 -98
  228. package/packages/components/upload/index.js.gz +0 -0
  229. package/packages/components/virtual-tree/index.js +62 -62
  230. package/packages/components/virtual-tree/index.js.gz +0 -0
  231. package/packages/components/virtual-tree/src/App.vue.d.ts +140 -140
  232. package/release-meta.json +6 -6
  233. package/packages/business-components/ai-panel/index-C1XseEkL.js.gz +0 -0
  234. package/packages/business-components/ai-panel/index-_XzaXcle.js.gz +0 -0
@@ -1,18 +1,18 @@
1
1
  import { withInstall as Ae } from "@das-fed/upf-utils/with-install/index";
2
- import { defineComponent as Ee, useCssVars as Be, ref as n, watch as ce, computed as o, useAttrs as Re, onBeforeUnmount as je, openBlock as y, createElementBlock as I, normalizeClass as Ie, unref as d, normalizeStyle as he, createVNode as L, withCtx as h, withDirectives as Ne, createBlock as ve, mergeProps as $e, createSlots as pt, renderSlot as P, normalizeProps as qe, guardReactiveProps as Ke, createElementVNode as J, toDisplayString as ae, Fragment as Me, createCommentVNode as z, nextTick as Te, createTextVNode as at, renderList as lt, withModifiers as vt } from "vue";
3
- import { ConfigProvider as He, DatePicker as ft, RangePicker as mt, Dropdown as ht, Menu as yt, MenuItem as kt, TimePicker as bt, TimeRangePicker as gt } from "ant-design-vue";
2
+ import { defineComponent as Ee, useCssVars as Be, ref as u, watch as ce, computed as a, useAttrs as Re, onBeforeUnmount as qe, openBlock as k, createElementBlock as V, normalizeClass as Ve, unref as d, normalizeStyle as he, createVNode as F, withCtx as y, withDirectives as Ne, createBlock as fe, mergeProps as Ie, createSlots as vt, renderSlot as L, normalizeProps as Ke, guardReactiveProps as He, createElementVNode as Q, toDisplayString as oe, Fragment as De, createCommentVNode as x, nextTick as Te, createTextVNode as ot, renderList as lt, withModifiers as ft } from "vue";
3
+ import { ConfigProvider as Ue, DatePicker as pt, RangePicker as mt, Dropdown as ht, Menu as yt, MenuItem as kt, TimePicker as bt, TimeRangePicker as gt } from "ant-design-vue";
4
4
  import { DasAutoRegisterIcon as rt, DasIcon as Se } from "@das-fed/upf-ui/packages/components/icon/index";
5
- import { DasTooltip as Ue } from "@das-fed/upf-ui/packages/components/tooltip/index";
5
+ import { DasTooltip as Xe } from "@das-fed/upf-ui/packages/components/tooltip/index";
6
6
  import { DasErrorOverlayModel as Oe } from "@das-fed/upf-ui/packages/components/error-overlay-model/index";
7
7
  import { useModelValue as ye } from "@das-fed/upf-utils/vue";
8
8
  import { vHoverInside as We } from "@das-fed/upf-utils/directive/hoverInside/index";
9
- import { useZIndex as Xe } from "@das-fed/upf-utils/hooks/popup-manager/use-zindex";
10
- import { currentLang as _, loadLocale as Ge, t as Fe, setI18nRule as Tt } from "@das-fed/upf-web/packages/i18n/index";
11
- import { calcTextWidth as Je } from "@das-fed/upf-utils/common-tools";
12
- import { isTimeZonePickerModeEnabled as x, getTimeZoneDayjs as Pe, resolvePickerTimeZone as xe, toTimeZonePickerValue as Le, fromTimeZonePickerValue as Qe } from "@das-fed/upf-utils/common-tools/timezone-format";
9
+ import { useZIndex as Ge } from "@das-fed/upf-utils/hooks/popup-manager/use-zindex";
10
+ import { currentLang as Y, loadLocale as Je, t as $e, setI18nRule as Tt } from "@das-fed/upf-web/packages/i18n/index";
11
+ import { calcTextWidth as Qe } from "@das-fed/upf-utils/common-tools";
12
+ import { isTimeZonePickerModeEnabled as P, getTimeZoneDayjs as Le, resolvePickerTimeZone as Pe, toTimeZonePickerValue as Fe, fromTimeZonePickerValue as _e } from "@das-fed/upf-utils/common-tools/timezone-format";
13
13
  import "ant-design-vue/es/date-picker/style/css";
14
14
  import "ant-design-vue/es/config-provider/style/css";
15
- import Ve from "dayjs";
15
+ import Me from "dayjs";
16
16
  import { DasDatePicker as nt } from "@das-fed/upf-ui/packages/components/date-picker/index";
17
17
  import "ant-design-vue/es/dropdown/style/css";
18
18
  import "ant-design-vue/es/menu/style/css";
@@ -23,17 +23,17 @@ import '@das-fed/upf-ui/packages/components/date-picker/style.css';
23
23
  const ut = {
24
24
  now: ".ant-picker-now-btn",
25
25
  today: ".ant-picker-today-btn"
26
- }, et = (T) => {
27
- const S = T.target;
26
+ }, et = (r) => {
27
+ const S = r.target;
28
28
  return S instanceof Element ? S.closest(ut.now) ? "now" : S.closest(ut.today) ? "today" : "" : "";
29
- }, it = (T, S) => {
30
- if (!S || !x(T)) return null;
31
- const l = Pe()().tz(xe(T));
29
+ }, it = (r, S) => {
30
+ if (!S || !P(r)) return null;
31
+ const l = Le()().tz(Pe(r));
32
32
  return S === "today" ? l.startOf("day") : l;
33
- }, st = (T, S, l) => it(S, l) || T, dt = (T, S, l) => {
34
- const t = it(S, l);
35
- return !t || !Array.isArray(T) ? T : T.map((k) => k && t);
36
- }, Ce = (T, S, l) => typeof document > "u" ? !1 : S && !l ? (document.addEventListener("click", T, !0), !0) : !S && l ? (document.removeEventListener("click", T, !0), !1) : l, Zt = {
33
+ }, st = (r, S, l) => it(S, l) || r, dt = (r, S, l) => {
34
+ const e = it(S, l);
35
+ return !e || !Array.isArray(r) ? r : r.map((b) => b && e);
36
+ }, Ce = (r, S, l) => typeof document > "u" ? !1 : S && !l ? (document.addEventListener("click", r, !0), !0) : !S && l ? (document.removeEventListener("click", r, !0), !1) : l, Zt = {
37
37
  key: 0,
38
38
  class: "das-date-picker-error-label-content"
39
39
  }, St = {
@@ -68,12 +68,12 @@ const ut = {
68
68
  formSize: {}
69
69
  },
70
70
  emits: ["change", "openChange", "update:model-value", "update:error"],
71
- setup(T, { expose: S, emit: l }) {
72
- Be((e) => ({
73
- "6cf6492a": O.value,
74
- "4d479822": we.value
71
+ setup(r, { expose: S, emit: l }) {
72
+ Be((t) => ({
73
+ v6cf6492a: O.value,
74
+ v4d479822: we.value
75
75
  }));
76
- const t = T, k = l;
76
+ const e = r, b = l;
77
77
  rt({
78
78
  right: import("@das-fed/upf-ui/packages/icons/right"),
79
79
  left: import("@das-fed/upf-ui/packages/icons/left"),
@@ -81,232 +81,232 @@ const ut = {
81
81
  "double-arrow-right": import("@das-fed/upf-ui/packages/icons/double-arrow-right"),
82
82
  riqixuanze: import("@das-fed/upf-ui/packages/icons/riqixuanze")
83
83
  });
84
- const Y = n(void 0);
85
- ce(_, async () => {
86
- Y.value = await Ge(_.value);
84
+ const j = u(void 0);
85
+ ce(Y, async () => {
86
+ j.value = await Je(Y.value);
87
87
  }, { immediate: !0 });
88
- const A = o(() => `date-picker-${_.value}`), v = n(null), X = n(null), f = n(""), V = n(!1), Z = Re(), E = o(() => t.size === "table" || t.size === "middle" || t.size === "default" ? "middle" : t.size), j = ye(t, "modelValue"), G = ye(t, "error"), w = o(() => String(Z.picker ?? "date")), N = o(() => t.format ?? Z.format), $ = o(() => t.showTime ?? Z.showTime ?? Z["show-time"]), q = o(() => t.valueFormat ?? Z.valueFormat ?? Z["value-format"]), R = o(() => ({
89
- timeZoneMode: t.timeZoneMode,
90
- timeZone: t.timeZone,
91
- useClientTimeZone: t.useClientTimeZone,
88
+ const A = a(() => `date-picker-${Y.value}`), f = u(null), G = u(null), p = u(""), M = u(!1), Z = Re(), E = a(() => e.size === "table" || e.size === "middle" || e.size === "default" ? "middle" : e.size), q = ye(e, "modelValue"), J = ye(e, "error"), w = a(() => String(Z.picker ?? "date")), N = a(() => e.format ?? Z.format), I = a(() => e.showTime ?? Z.showTime ?? Z["show-time"]), K = a(() => e.valueFormat ?? Z.valueFormat ?? Z["value-format"]), R = a(() => ({
89
+ timeZoneMode: e.timeZoneMode,
90
+ timeZone: e.timeZone,
91
+ useClientTimeZone: e.useClientTimeZone,
92
92
  // timeZoneValueFormat 是最高优先级;未传时兼容旧业务继续使用 valueFormat 控制输出。
93
- timeZoneValueFormat: t.timeZoneValueFormat ?? q.value
94
- })), K = o(() => x(R.value)), fe = o(() => {
95
- if (!K.value) return Z;
96
- const { valueFormat: e, "value-format": i, ...s } = Z;
93
+ timeZoneValueFormat: e.timeZoneValueFormat ?? K.value
94
+ })), H = a(() => P(R.value)), pe = a(() => {
95
+ if (!H.value) return Z;
96
+ const { valueFormat: t, "value-format": i, ...s } = Z;
97
97
  return s;
98
- }), Q = o(() => Le(j.value, R.value)), le = o(() => K.value ? void 0 : q.value), ne = o(() => K.value ? "das-ui-time-zone-picker-dropdown" : ""), ue = o(() => !$.value), ee = o(() => K.value ? Pe()().tz(xe(R.value)).format("YYYY-MM-DD") : ""), p = (e) => {
98
+ }), _ = a(() => Fe(q.value, R.value)), le = a(() => H.value ? void 0 : K.value), ne = a(() => H.value ? "das-ui-time-zone-picker-dropdown" : ""), ue = a(() => !I.value), ee = a(() => H.value ? Le()().tz(Pe(R.value)).format("YYYY-MM-DD") : ""), h = (t) => {
99
99
  var i;
100
- return Array.isArray(e) ? e.map(p) : e != null && e.format ? {
101
- text: e.format("YYYY-MM-DD HH:mm:ss.SSS Z"),
102
- iso: (i = e.toISOString) == null ? void 0 : i.call(e),
100
+ return Array.isArray(t) ? t.map(h) : t != null && t.format ? {
101
+ text: t.format("YYYY-MM-DD HH:mm:ss.SSS Z"),
102
+ iso: (i = t.toISOString) == null ? void 0 : i.call(t),
103
103
  isDayjs: !0
104
- } : e;
105
- }, m = (e, i = {}) => {
104
+ } : t;
105
+ }, m = (t, i = {}) => {
106
106
  typeof window > "u" || window.__UPF_DATE_PICKER_TZ_DEBUG__;
107
- }, B = (e, i) => {
108
- if (!ue.value || !K.value) return e;
107
+ }, B = (t, i) => {
108
+ if (!ue.value || !H.value) return t;
109
109
  if (w.value === "date" && typeof i == "string" && i)
110
- return Pe()(i).tz(xe(R.value), !0);
111
- if (Ve.isDayjs(e)) return e.startOf("day");
112
- if (e == null || e === "") return e;
113
- const s = Ve(e);
114
- return s.isValid() ? s.startOf("day") : e;
115
- }, ie = (e) => {
110
+ return Le()(i).tz(Pe(R.value), !0);
111
+ if (Me.isDayjs(t)) return t.startOf("day");
112
+ if (t == null || t === "") return t;
113
+ const s = Me(t);
114
+ return s.isValid() ? s.startOf("day") : t;
115
+ }, ie = (t) => {
116
116
  var i;
117
- return !ee.value || !((i = e == null ? void 0 : e.isValid) != null && i.call(e)) ? !1 : e.format("YYYY-MM-DD") === ee.value;
118
- }, pe = o(() => t.isView ? t.noSetDefaultVal ? "" : "-" : t.placeholder || Fe("请选择日期")), C = o(() => ({
119
- width: t.width
120
- })), O = o(() => t.width ? t.width : "230px"), se = o(() => t.formSize), we = o(() => t.height ? t.height : se.value ? {
117
+ return !ee.value || !((i = t == null ? void 0 : t.isValid) != null && i.call(t)) ? !1 : t.format("YYYY-MM-DD") === ee.value;
118
+ }, ve = a(() => e.isView ? e.noSetDefaultVal ? "" : "-" : e.placeholder || $e("请选择日期")), C = a(() => ({
119
+ width: e.width
120
+ })), O = a(() => e.width ? e.width : "230px"), se = a(() => e.formSize), we = a(() => e.height ? e.height : se.value ? {
121
121
  small: "24px",
122
122
  default: "32px",
123
123
  large: "40px"
124
- }[se.value] : "auto"), H = n(3e3), Ze = o(() => ({
125
- "z-index": H.value
126
- })), F = n(!1), de = n({
124
+ }[se.value] : "auto"), U = u(3e3), Ze = a(() => ({
125
+ "z-index": U.value
126
+ })), $ = u(!1), de = u({
127
127
  display: "block",
128
128
  color: "var(--upf-color-error)",
129
129
  "white-space": "break-spaces"
130
- }), D = n(!1), M = n(""), ke = o(() => Q.value ? M.value : pe.value), ze = () => {
131
- const e = t.size === "table" ? 12 : 14;
132
- return Je(pe.value, e);
130
+ }), z = u(!1), D = u(""), ke = a(() => _.value ? D.value : ve.value), xe = () => {
131
+ const t = e.size === "table" ? 12 : 14;
132
+ return Qe(ve.value, t);
133
133
  }, be = () => {
134
134
  var i;
135
- const e = (i = v.value) == null ? void 0 : i.$el.querySelector(".ant-picker-input>input");
136
- return Q.value ? e == null ? void 0 : e.scrollWidth : ze();
137
- }, De = () => {
135
+ const t = (i = f.value) == null ? void 0 : i.$el.querySelector(".ant-picker-input>input");
136
+ return _.value ? t == null ? void 0 : t.scrollWidth : xe();
137
+ }, ze = () => {
138
138
  var s;
139
- const e = (s = v.value) == null ? void 0 : s.$el.querySelector(".ant-picker-input>input");
140
- return e ? (M.value = e.getAttribute("value"), e.removeAttribute("title"), (e == null ? void 0 : e.offsetWidth) ?? 0) : 0;
141
- }, U = n(0), me = n(0);
142
- ce(() => [pe.value, Q.value], () => {
139
+ const t = (s = f.value) == null ? void 0 : s.$el.querySelector(".ant-picker-input>input");
140
+ return t ? (D.value = t.getAttribute("value"), t.removeAttribute("title"), (t == null ? void 0 : t.offsetWidth) ?? 0) : 0;
141
+ }, X = u(0), me = u(0);
142
+ ce(() => [ve.value, _.value], () => {
143
143
  Te(() => {
144
- U.value = De(), me.value = be(), (U.value === me.value || me.value - U.value < 1) && (D.value = !1);
144
+ X.value = ze(), me.value = be(), (X.value === me.value || me.value - X.value < 1) && (z.value = !1);
145
145
  });
146
146
  });
147
- const a = n();
147
+ const n = u();
148
148
  ce(
149
149
  () => {
150
- var e;
151
- return (e = X.value) == null ? void 0 : e.$tooltipRef.popperRef.contentRef;
150
+ var t;
151
+ return (t = G.value) == null ? void 0 : t.$tooltipRef.popperRef.contentRef;
152
152
  },
153
- (e) => {
154
- e && (e.addEventListener("mouseenter", function() {
155
- D.value = !0, a.value && clearTimeout(a.value);
156
- }), e.addEventListener("mouseleave", function() {
157
- a.value = setTimeout(() => {
158
- D.value = !1;
153
+ (t) => {
154
+ t && (t.addEventListener("mouseenter", function() {
155
+ z.value = !0, n.value && clearTimeout(n.value);
156
+ }), t.addEventListener("mouseleave", function() {
157
+ n.value = setTimeout(() => {
158
+ z.value = !1;
159
159
  }, 200);
160
160
  }));
161
161
  }
162
162
  );
163
- const c = (e) => {
164
- e && (H.value = Xe().nextZIndex()), e ? W() : te(), k("openChange", e), _.value === "en-US" && Te(() => {
163
+ const c = (t) => {
164
+ t && (U.value = Ge().nextZIndex()), t ? W() : te(), b("openChange", t), Y.value === "en-US" && Te(() => {
165
165
  const i = document == null ? void 0 : document.querySelectorAll(".ant-picker-ok > .ant-btn > span");
166
166
  for (let s of i)
167
167
  s && (s.innerText = "OK");
168
168
  });
169
- }, b = (e) => {
170
- x(R.value) && (f.value = et(e));
169
+ }, g = (t) => {
170
+ P(R.value) && (p.value = et(t));
171
171
  }, W = () => {
172
- f.value = "", V.value = Ce(
173
- b,
174
- x(R.value),
175
- V.value
172
+ p.value = "", M.value = Ce(
173
+ g,
174
+ P(R.value),
175
+ M.value
176
176
  );
177
177
  }, te = () => {
178
- V.value = Ce(b, !1, V.value);
178
+ M.value = Ce(g, !1, M.value);
179
179
  };
180
- je(() => {
181
- te(), f.value = "";
180
+ qe(() => {
181
+ te(), p.value = "";
182
182
  });
183
183
  const re = () => {
184
- U.value = De(), me.value = be(), U.value === me.value || me.value - U.value < 1 ? D.value = !1 : (D.value = !0, a.value && clearTimeout(a.value)), F.value = !0;
184
+ X.value = ze(), me.value = be(), X.value === me.value || me.value - X.value < 1 ? z.value = !1 : (z.value = !0, n.value && clearTimeout(n.value)), $.value = !0;
185
185
  }, tt = () => {
186
- a.value = setTimeout(() => {
187
- D.value = !1;
188
- }, 200), F.value = !1;
189
- }, Ye = (e, i) => {
190
- e ? re() : tt();
191
- }, ot = (e, i) => {
192
- G.value = !1, k("update:error", G.value);
193
- const s = st(e, R.value, f.value);
194
- f.value = "";
195
- const g = B(s, i);
186
+ n.value = setTimeout(() => {
187
+ z.value = !1;
188
+ }, 200), $.value = !1;
189
+ }, je = (t, i) => {
190
+ t ? re() : tt();
191
+ }, at = (t, i) => {
192
+ J.value = !1, b("update:error", J.value);
193
+ const s = st(t, R.value, p.value);
194
+ p.value = "";
195
+ const T = B(s, i);
196
196
  m("change:before-format", {
197
- rawDateType: typeof e,
198
- rawDateIsDayjs: Ve.isDayjs(e),
199
- rawDate: p(e),
197
+ rawDateType: typeof t,
198
+ rawDateIsDayjs: Me.isDayjs(t),
199
+ rawDate: h(t),
200
200
  rawDateString: i,
201
201
  shortcutDateType: typeof s,
202
- shortcutDateIsDayjs: Ve.isDayjs(s),
203
- shortcutDate: p(s),
204
- normalizedDate: p(g)
202
+ shortcutDateIsDayjs: Me.isDayjs(s),
203
+ shortcutDate: h(s),
204
+ normalizedDate: h(T)
205
205
  });
206
- const oe = K.value ? Qe(g, R.value) : g, ge = K.value && oe != null ? String(oe) : i;
206
+ const ae = H.value ? _e(T, R.value) : T, ge = H.value && ae != null ? String(ae) : i;
207
207
  m("change:emit", {
208
- nextValue: p(oe),
208
+ nextValue: h(ae),
209
209
  nextDateString: ge
210
- }), k("update:model-value", oe), k("change", oe, ge);
210
+ }), b("update:model-value", ae), b("change", ae, ge);
211
211
  };
212
212
  return S({
213
- $datePicker: v,
213
+ $datePicker: f,
214
214
  blur: () => {
215
- v.value.blur();
215
+ f.value.blur();
216
216
  },
217
217
  focus: () => {
218
- v.value.focus();
218
+ f.value.focus();
219
219
  }
220
- }), (e, i) => (y(), I(
220
+ }), (t, i) => (k(), V(
221
221
  "div",
222
222
  {
223
- class: Ie(["das-ui-date-picker", [e.borderType, t.isView ? "readonly" : "", d(G) ? "is-error" : ""]]),
223
+ class: Ve(["das-ui-date-picker", [r.borderType, e.isView ? "readonly" : "", d(J) ? "is-error" : ""]]),
224
224
  style: he(C.value)
225
225
  },
226
226
  [
227
- L(d(He), { locale: Y.value }, {
228
- default: h(() => [
229
- L(d(Ue), {
227
+ F(d(Ue), { locale: j.value }, {
228
+ default: y(() => [
229
+ F(d(Xe), {
230
230
  ref_key: "inputTooltipRef",
231
- ref: X,
231
+ ref: G,
232
232
  placement: "top",
233
233
  trigger: "hover",
234
- visible: D.value,
235
- disabled: !e.isTooltip,
234
+ visible: z.value,
235
+ disabled: !r.isTooltip,
236
236
  content: ke.value
237
237
  }, {
238
- default: h(() => {
238
+ default: y(() => {
239
239
  var s;
240
240
  return [
241
- Ne((y(), ve(d(ft), $e({
241
+ Ne((k(), fe(d(pt), Ie({
242
242
  key: A.value,
243
243
  ref_key: "$datePicker",
244
- ref: v
245
- }, fe.value, {
246
- value: Q.value,
244
+ ref: f
245
+ }, pe.value, {
246
+ value: _.value,
247
247
  format: N.value,
248
248
  valueFormat: le.value,
249
249
  size: E.value,
250
- locale: (s = Y.value) == null ? void 0 : s.DatePicker,
251
- dropdownClassName: "das-ui-date-picker-dropdown " + ne.value + " " + e.dropdownClassName,
252
- placeholder: pe.value,
253
- showToday: e.showToday,
254
- showTime: $.value,
255
- bordered: e.borderType === "bordered",
256
- disabled: t.disabled || t.isView,
250
+ locale: (s = j.value) == null ? void 0 : s.DatePicker,
251
+ dropdownClassName: "das-ui-date-picker-dropdown " + ne.value + " " + r.dropdownClassName,
252
+ placeholder: ve.value,
253
+ showToday: r.showToday,
254
+ showTime: I.value,
255
+ bordered: r.borderType === "bordered",
256
+ disabled: e.disabled || e.isView,
257
257
  style: C.value,
258
258
  popupStyle: Ze.value,
259
- onChange: ot,
259
+ onChange: at,
260
260
  onOpenChange: c
261
- }), pt({
262
- dateRender: h((g) => [
263
- P(e.$slots, "dateRender", qe(Ke(g)), () => [
264
- J(
261
+ }), vt({
262
+ dateRender: y((T) => [
263
+ L(t.$slots, "dateRender", Ke(He(T)), () => [
264
+ Q(
265
265
  "div",
266
266
  {
267
- class: Ie(["ant-picker-cell-inner", { "das-time-zone-picker-cell-today": ie(g.current) }])
267
+ class: Ve(["ant-picker-cell-inner", { "das-time-zone-picker-cell-today": ie(T.current) }])
268
268
  },
269
- ae(g.current.date()),
269
+ oe(T.current.date()),
270
270
  3
271
271
  /* TEXT, CLASS */
272
272
  )
273
273
  ], !0)
274
274
  ]),
275
- nextIcon: h(() => [
276
- P(e.$slots, "nextIcon", {}, () => [
277
- L(d(Se), {
275
+ nextIcon: y(() => [
276
+ L(t.$slots, "nextIcon", {}, () => [
277
+ F(d(Se), {
278
278
  icon: "right",
279
279
  size: "medium"
280
280
  })
281
281
  ], !0)
282
282
  ]),
283
- prevIcon: h(() => [
284
- P(e.$slots, "prevIcon", {}, () => [
285
- L(d(Se), {
283
+ prevIcon: y(() => [
284
+ L(t.$slots, "prevIcon", {}, () => [
285
+ F(d(Se), {
286
286
  icon: "left",
287
287
  size: "medium"
288
288
  })
289
289
  ], !0)
290
290
  ]),
291
- superNextIcon: h(() => [
292
- P(e.$slots, "superNextIcon", {}, () => [
293
- L(d(Se), {
291
+ superNextIcon: y(() => [
292
+ L(t.$slots, "superNextIcon", {}, () => [
293
+ F(d(Se), {
294
294
  icon: "double-arrow-right",
295
295
  size: "medium"
296
296
  })
297
297
  ], !0)
298
298
  ]),
299
- superPrevIcon: h(() => [
300
- P(e.$slots, "superPrevIcon", {}, () => [
301
- L(d(Se), {
299
+ superPrevIcon: y(() => [
300
+ L(t.$slots, "superPrevIcon", {}, () => [
301
+ F(d(Se), {
302
302
  icon: "double-arrow-left",
303
303
  size: "medium"
304
304
  })
305
305
  ], !0)
306
306
  ]),
307
- suffixIcon: h(() => [
308
- P(e.$slots, "suffixIcon", {}, () => [
309
- L(d(Se), {
307
+ suffixIcon: y(() => [
308
+ L(t.$slots, "suffixIcon", {}, () => [
309
+ F(d(Se), {
310
310
  class: "das-suffix-icon",
311
311
  icon: "riqixuanze",
312
312
  size: "medium",
@@ -317,15 +317,15 @@ const ut = {
317
317
  _: 2
318
318
  /* DYNAMIC */
319
319
  }, [
320
- e.$slots.renderExtraFooter ? {
320
+ t.$slots.renderExtraFooter ? {
321
321
  name: "renderExtraFooter",
322
- fn: h(() => [
323
- P(e.$slots, "renderExtraFooter", {}, void 0, !0)
322
+ fn: y(() => [
323
+ L(t.$slots, "renderExtraFooter", {}, void 0, !0)
324
324
  ]),
325
325
  key: "0"
326
326
  } : void 0
327
327
  ]), 1040, ["value", "format", "valueFormat", "size", "locale", "dropdownClassName", "placeholder", "showToday", "showTime", "bordered", "disabled", "style", "popupStyle"])), [
328
- [d(We), Ye]
328
+ [d(We), je]
329
329
  ])
330
330
  ];
331
331
  }),
@@ -336,51 +336,51 @@ const ut = {
336
336
  _: 3
337
337
  /* FORWARDED */
338
338
  }, 8, ["locale"]),
339
- e.error && e.errorLabel ? (y(), I(
340
- Me,
339
+ r.error && r.errorLabel ? (k(), V(
340
+ De,
341
341
  { key: 0 },
342
342
  [
343
- e.errorMode === "default" ? (y(), I("div", Zt, [
344
- J(
343
+ r.errorMode === "default" ? (k(), V("div", Zt, [
344
+ Q(
345
345
  "span",
346
346
  {
347
347
  style: he(de.value)
348
348
  },
349
- ae(e.errorLabel),
349
+ oe(r.errorLabel),
350
350
  5
351
351
  /* TEXT, STYLE */
352
352
  )
353
- ])) : z("v-if", !0),
354
- e.errorMode === "overlay" && F.value ? (y(), ve(d(Oe), {
353
+ ])) : x("v-if", !0),
354
+ r.errorMode === "overlay" && $.value ? (k(), fe(d(Oe), {
355
355
  key: 1,
356
- errorLabel: e.errorLabel,
356
+ errorLabel: r.errorLabel,
357
357
  getEl: () => {
358
358
  var s;
359
- return (s = v.value) == null ? void 0 : s.$el;
359
+ return (s = f.value) == null ? void 0 : s.$el;
360
360
  },
361
- errorModelZIndex: e.errorModelZIndex
362
- }, null, 8, ["errorLabel", "getEl", "errorModelZIndex"])) : z("v-if", !0)
361
+ errorModelZIndex: r.errorModelZIndex
362
+ }, null, 8, ["errorLabel", "getEl", "errorModelZIndex"])) : x("v-if", !0)
363
363
  ],
364
364
  64
365
365
  /* STABLE_FRAGMENT */
366
- )) : z("v-if", !0)
366
+ )) : x("v-if", !0)
367
367
  ],
368
368
  6
369
369
  /* CLASS, STYLE */
370
370
  ));
371
371
  }
372
- }), _e = (T, S) => {
373
- const l = T.__vccOpts || T;
374
- for (const [t, k] of S)
375
- l[t] = k;
372
+ }), Ye = (r, S) => {
373
+ const l = r.__vccOpts || r;
374
+ for (const [e, b] of S)
375
+ l[e] = b;
376
376
  return l;
377
- }, zt = /* @__PURE__ */ _e(Ct, [["__scopeId", "data-v-4d258f15"]]), Dt = { class: "date-range-separator" }, Mt = {
377
+ }, xt = /* @__PURE__ */ Ye(Ct, [["__scopeId", "data-v-4d258f15"]]), zt = { class: "date-range-separator" }, Dt = {
378
378
  key: 0,
379
379
  class: "das-date-picker-error-label-content"
380
- }, Vt = {
380
+ }, Mt = {
381
381
  name: "DasDateRangePicker"
382
- }, It = /* @__PURE__ */ Ee({
383
- ...Vt,
382
+ }, Vt = /* @__PURE__ */ Ee({
383
+ ...Mt,
384
384
  props: {
385
385
  timeZoneMode: {},
386
386
  timeZone: {},
@@ -410,62 +410,62 @@ const ut = {
410
410
  formSize: {}
411
411
  },
412
412
  emits: ["change", "openChange", "update:model-value", "update:error"],
413
- setup(T, { emit: S }) {
414
- Be((p) => ({
415
- "67b14d92": Z.value,
416
- d863b894: V.value
413
+ setup(r, { emit: S }) {
414
+ Be((h) => ({
415
+ v67b14d92: Z.value,
416
+ d863b894: M.value
417
417
  }));
418
- const l = T, t = S, k = Re(), Y = o(() => l.placeholder ?? [Fe("开始日期"), Fe("结束日期")]), A = ye(l, "modelValue"), v = ye(l, "error"), X = o(() => ({
418
+ const l = r, e = S, b = Re(), j = a(() => l.placeholder ?? [$e("开始日期"), $e("结束日期")]), A = ye(l, "modelValue"), f = ye(l, "error"), G = a(() => ({
419
419
  timeZoneMode: l.timeZoneMode,
420
420
  timeZone: l.timeZone,
421
421
  useClientTimeZone: l.useClientTimeZone,
422
422
  // 与内部 DatePicker 保持同一优先级:timeZoneValueFormat 优先,未传回退 valueFormat。
423
423
  timeZoneValueFormat: l.timeZoneValueFormat ?? l.valueFormat
424
- })), f = o(() => {
425
- var p, m;
426
- return x(X.value) ? [
427
- Le((p = A.value) == null ? void 0 : p[0], X.value),
428
- Le((m = A.value) == null ? void 0 : m[1], X.value)
424
+ })), p = a(() => {
425
+ var h, m;
426
+ return P(G.value) ? [
427
+ Fe((h = A.value) == null ? void 0 : h[0], G.value),
428
+ Fe((m = A.value) == null ? void 0 : m[1], G.value)
429
429
  ] : A.value;
430
- }), V = o(() => l.width ? l.width : "230px"), Z = o(() => l.height ? l.height : "auto"), E = o(() => ({ ...k, ...l.prevAttrs })), j = o(() => ({ ...k, ...l.nextAttrs })), G = n(), w = n(!1), N = n({
430
+ }), M = a(() => l.width ? l.width : "230px"), Z = a(() => l.height ? l.height : "auto"), E = a(() => ({ ...b, ...l.prevAttrs })), q = a(() => ({ ...b, ...l.nextAttrs })), J = u(), w = u(!1), N = u({
431
431
  display: "block",
432
432
  color: "var(--upf-color-error)",
433
433
  "white-space": "break-spaces"
434
- }), $ = () => {
434
+ }), I = () => {
435
435
  w.value = !0;
436
- }, q = () => {
436
+ }, K = () => {
437
437
  w.value = !1;
438
- }, R = (p, m) => {
439
- p ? $() : q();
440
- }, K = (p, m) => {
441
- t("openChange", p, m), _.value === "en-US" && Te(() => {
438
+ }, R = (h, m) => {
439
+ h ? I() : K();
440
+ }, H = (h, m) => {
441
+ e("openChange", h, m), Y.value === "en-US" && Te(() => {
442
442
  const B = document == null ? void 0 : document.querySelectorAll(".ant-picker-ok > .ant-btn > span");
443
443
  for (let ie of B)
444
444
  ie && (ie.innerText = "OK");
445
445
  });
446
- }, fe = o(() => {
447
- let p = l.valueFormat ? l.valueFormat : l.format;
446
+ }, pe = a(() => {
447
+ let h = l.valueFormat ? l.valueFormat : l.format;
448
448
  return [
449
- f.value[0] ? Ve.isDayjs(f.value[0]) ? f.value[0].format(p) : f.value[0] : "",
450
- f.value[1] ? Ve.isDayjs(f.value[1]) ? f.value[1].format(p) : f.value[1] : ""
449
+ p.value[0] ? Me.isDayjs(p.value[0]) ? p.value[0].format(h) : p.value[0] : "",
450
+ p.value[1] ? Me.isDayjs(p.value[1]) ? p.value[1].format(h) : p.value[1] : ""
451
451
  ];
452
- }), Q = (p) => l.disabledDate && l.disabledDate(p) === !0 ? !0 : !!(f.value[1] && p.isAfter(f.value[1], l.disabledUnit || void 0)), le = (p) => l.disabledDate && l.disabledDate(p) === !0 ? !0 : !!(f.value[0] && p.isBefore(f.value[0], l.disabledUnit || void 0)), ne = o(() => ({
452
+ }), _ = (h) => l.disabledDate && l.disabledDate(h) === !0 ? !0 : !!(p.value[1] && h.isAfter(p.value[1], l.disabledUnit || void 0)), le = (h) => l.disabledDate && l.disabledDate(h) === !0 ? !0 : !!(p.value[0] && h.isBefore(p.value[0], l.disabledUnit || void 0)), ne = a(() => ({
453
453
  width: l.width
454
- })), ue = (p, m) => {
455
- v.value = !1, t("update:model-value", A.value), t("change", A.value, fe.value);
456
- }, ee = (p, m) => {
457
- v.value = !1, t("update:model-value", A.value), t("change", A.value, fe.value);
454
+ })), ue = (h, m) => {
455
+ f.value = !1, e("update:model-value", A.value), e("change", A.value, pe.value);
456
+ }, ee = (h, m) => {
457
+ f.value = !1, e("update:model-value", A.value), e("change", A.value, pe.value);
458
458
  };
459
- return (p, m) => Ne((y(), I(
459
+ return (h, m) => Ne((k(), V(
460
460
  "div",
461
461
  {
462
462
  class: "das-ui-date-range-picker",
463
463
  style: he(ne.value),
464
464
  ref_key: "$dateRange",
465
- ref: G
465
+ ref: J
466
466
  },
467
467
  [
468
- L(d(nt), $e(E.value, {
468
+ F(d(nt), Ie(E.value, {
469
469
  modelValue: d(A)[0],
470
470
  "onUpdate:modelValue": m[0] || (m[0] = (B) => d(A)[0] = B),
471
471
  size: l.size,
@@ -475,23 +475,23 @@ const ut = {
475
475
  useClientTimeZone: l.useClientTimeZone,
476
476
  timeZoneValueFormat: l.timeZoneValueFormat,
477
477
  borderType: l.borderType,
478
- error: d(v),
478
+ error: d(f),
479
479
  width: l.itemWidth,
480
- "disabled-date": Q,
481
- placeholder: Y.value[0],
480
+ "disabled-date": _,
481
+ placeholder: j.value[0],
482
482
  onChange: ue,
483
- onOpenChange: m[1] || (m[1] = (B) => K(B, "before"))
483
+ onOpenChange: m[1] || (m[1] = (B) => H(B, "before"))
484
484
  }), null, 16, ["modelValue", "size", "valueFormat", "timeZoneMode", "timeZone", "useClientTimeZone", "timeZoneValueFormat", "borderType", "error", "width", "placeholder"]),
485
- P(p.$slots, "separator", {}, () => [
486
- J(
485
+ L(h.$slots, "separator", {}, () => [
486
+ Q(
487
487
  "span",
488
- Dt,
489
- ae(l.separator),
488
+ zt,
489
+ oe(l.separator),
490
490
  1
491
491
  /* TEXT */
492
492
  )
493
493
  ], !0),
494
- L(d(nt), $e(j.value, {
494
+ F(d(nt), Ie(q.value, {
495
495
  modelValue: d(A)[1],
496
496
  "onUpdate:modelValue": m[2] || (m[2] = (B) => d(A)[1] = B),
497
497
  size: l.size,
@@ -501,38 +501,38 @@ const ut = {
501
501
  useClientTimeZone: l.useClientTimeZone,
502
502
  timeZoneValueFormat: l.timeZoneValueFormat,
503
503
  borderType: l.borderType,
504
- error: d(v),
504
+ error: d(f),
505
505
  width: l.itemWidth,
506
506
  "disabled-date": le,
507
- placeholder: Y.value[1],
507
+ placeholder: j.value[1],
508
508
  onChange: ee,
509
- onOpenChange: m[3] || (m[3] = (B) => K(B, "after"))
509
+ onOpenChange: m[3] || (m[3] = (B) => H(B, "after"))
510
510
  }), null, 16, ["modelValue", "size", "valueFormat", "timeZoneMode", "timeZone", "useClientTimeZone", "timeZoneValueFormat", "borderType", "error", "width", "placeholder"]),
511
- p.error && p.errorLabel ? (y(), I(
512
- Me,
511
+ r.error && r.errorLabel ? (k(), V(
512
+ De,
513
513
  { key: 0 },
514
514
  [
515
- p.errorMode === "default" ? (y(), I("div", Mt, [
516
- J(
515
+ r.errorMode === "default" ? (k(), V("div", Dt, [
516
+ Q(
517
517
  "span",
518
518
  {
519
519
  style: he(N.value)
520
520
  },
521
- ae(p.errorLabel),
521
+ oe(r.errorLabel),
522
522
  5
523
523
  /* TEXT, STYLE */
524
524
  )
525
- ])) : z("v-if", !0),
526
- p.errorMode === "overlay" && w.value ? (y(), ve(d(Oe), {
525
+ ])) : x("v-if", !0),
526
+ r.errorMode === "overlay" && w.value ? (k(), fe(d(Oe), {
527
527
  key: 1,
528
- errorLabel: p.errorLabel,
529
- getEl: () => G.value,
530
- errorModelZIndex: p.errorModelZIndex
531
- }, null, 8, ["errorLabel", "getEl", "errorModelZIndex"])) : z("v-if", !0)
528
+ errorLabel: r.errorLabel,
529
+ getEl: () => J.value,
530
+ errorModelZIndex: r.errorModelZIndex
531
+ }, null, 8, ["errorLabel", "getEl", "errorModelZIndex"])) : x("v-if", !0)
532
532
  ],
533
533
  64
534
534
  /* STABLE_FRAGMENT */
535
- )) : z("v-if", !0)
535
+ )) : x("v-if", !0)
536
536
  ],
537
537
  4
538
538
  /* STYLE */
@@ -540,10 +540,10 @@ const ut = {
540
540
  [d(We), R]
541
541
  ]);
542
542
  }
543
- }), $t = /* @__PURE__ */ _e(It, [["__scopeId", "data-v-7dcb0d60"]]), Ft = { class: "das-picker-footer-extra" }, Lt = {
543
+ }), It = /* @__PURE__ */ Ye(Vt, [["__scopeId", "data-v-7dcb0d60"]]), $t = { class: "das-picker-footer-extra" }, Ft = {
544
544
  key: 0,
545
545
  class: "das-picker-ranges"
546
- }, Pt = { class: "das-picker-preset-span" }, xt = ["onClick"], At = {
546
+ }, Lt = { class: "das-picker-preset-span" }, Pt = ["onClick"], At = {
547
547
  key: 0,
548
548
  class: "das-date-picker-error-label-content"
549
549
  }, Et = {
@@ -579,235 +579,235 @@ const ut = {
579
579
  formSize: {}
580
580
  },
581
581
  emits: ["change", "openChange", "update:model-value", "update:error"],
582
- setup(T, { expose: S, emit: l }) {
583
- Be((r) => ({
584
- "3d463760": p.value,
585
- "3070abdd": B.value
582
+ setup(r, { expose: S, emit: l }) {
583
+ Be((o) => ({
584
+ v3d463760: h.value,
585
+ v3070abdd: B.value
586
586
  }));
587
- const t = T, k = l;
587
+ const e = r, b = l;
588
588
  rt({
589
589
  fold: import("@das-fed/upf-ui/packages/icons/fold"),
590
590
  riqixuanze: import("@das-fed/upf-ui/packages/icons/riqixuanze")
591
591
  });
592
- const Y = n(void 0);
593
- ce(_, async () => {
594
- Y.value = await Ge(_.value);
592
+ const j = u(void 0);
593
+ ce(Y, async () => {
594
+ j.value = await Je(Y.value);
595
595
  }, { immediate: !0 });
596
- const A = o(() => `range-picker-${_.value}`), v = n(null), X = n(null), f = n(""), V = n(!1), Z = Re(), E = o(() => t.size === "table" || t.size === "middle" || t.size === "default" ? "middle" : t.size), j = ye(t, "modelValue"), G = ye(t, "error"), w = o(() => t.valueFormat ?? Z.valueFormat ?? Z["value-format"]), N = o(() => ({
597
- timeZoneMode: t.timeZoneMode,
598
- timeZone: t.timeZone,
599
- useClientTimeZone: t.useClientTimeZone,
596
+ const A = a(() => `range-picker-${Y.value}`), f = u(null), G = u(null), p = u(""), M = u(!1), Z = Re(), E = a(() => e.size === "table" || e.size === "middle" || e.size === "default" ? "middle" : e.size), q = ye(e, "modelValue"), J = ye(e, "error"), w = a(() => e.valueFormat ?? Z.valueFormat ?? Z["value-format"]), N = a(() => ({
597
+ timeZoneMode: e.timeZoneMode,
598
+ timeZone: e.timeZone,
599
+ useClientTimeZone: e.useClientTimeZone,
600
600
  // timeZoneValueFormat 是最高优先级;未传时兼容旧业务继续使用 valueFormat 控制输出。
601
- timeZoneValueFormat: t.timeZoneValueFormat ?? w.value
602
- })), $ = o(() => {
603
- if (!(!Array.isArray(j.value) || j.value.length !== 2))
604
- return x(N.value) ? j.value.map((r) => Le(r, N.value)) : j.value;
605
- }), q = o(() => x(N.value)), R = o(() => String(Z.picker ?? "date")), K = o(() => {
606
- if (!q.value) return Z;
607
- const { valueFormat: r, "value-format": e, ...i } = Z;
601
+ timeZoneValueFormat: e.timeZoneValueFormat ?? w.value
602
+ })), I = a(() => {
603
+ if (!(!Array.isArray(q.value) || q.value.length !== 2))
604
+ return P(N.value) ? q.value.map((o) => Fe(o, N.value)) : q.value;
605
+ }), K = a(() => P(N.value)), R = a(() => String(Z.picker ?? "date")), H = a(() => {
606
+ if (!K.value) return Z;
607
+ const { valueFormat: o, "value-format": t, ...i } = Z;
608
608
  return i;
609
- }), fe = o(() => q.value ? void 0 : w.value), Q = o(
610
- () => q.value ? "das-ui-time-zone-picker-dropdown" : ""
611
- ), le = o(() => !t.showTime), ne = o(() => q.value ? Pe()().tz(xe(N.value)).format("YYYY-MM-DD") : ""), ue = (r) => {
612
- var e;
613
- return !ne.value || !((e = r == null ? void 0 : r.isValid) != null && e.call(r)) ? !1 : r.format("YYYY-MM-DD") === ne.value;
614
- }, ee = (r, e) => !Array.isArray(r) || !le.value || !q.value ? r : R.value === "date" && Array.isArray(e) ? r.map((i, s) => {
615
- const g = e[s];
616
- return !i || !g ? i : Pe()(g).tz(xe(N.value), !0);
617
- }) : r.map((i) => i != null && i.format ? i.startOf("day") : i), p = o(() => t.width ? t.width : "230px"), m = o(() => t.formSize), B = o(() => t.height ? t.height : m.value ? {
609
+ }), pe = a(() => K.value ? void 0 : w.value), _ = a(
610
+ () => K.value ? "das-ui-time-zone-picker-dropdown" : ""
611
+ ), le = a(() => !e.showTime), ne = a(() => K.value ? Le()().tz(Pe(N.value)).format("YYYY-MM-DD") : ""), ue = (o) => {
612
+ var t;
613
+ return !ne.value || !((t = o == null ? void 0 : o.isValid) != null && t.call(o)) ? !1 : o.format("YYYY-MM-DD") === ne.value;
614
+ }, ee = (o, t) => !Array.isArray(o) || !le.value || !K.value ? o : R.value === "date" && Array.isArray(t) ? o.map((i, s) => {
615
+ const T = t[s];
616
+ return !i || !T ? i : Le()(T).tz(Pe(N.value), !0);
617
+ }) : o.map((i) => i != null && i.format ? i.startOf("day") : i), h = a(() => e.width ? e.width : "230px"), m = a(() => e.formSize), B = a(() => e.height ? e.height : m.value ? {
618
618
  small: "24px",
619
619
  default: "32px",
620
620
  large: "40px"
621
- }[m.value] : "auto"), ie = n(3e3), pe = o(() => ({
621
+ }[m.value] : "auto"), ie = u(3e3), ve = a(() => ({
622
622
  "z-index": ie.value
623
- })), C = n(!1), O = n({
623
+ })), C = u(!1), O = u({
624
624
  display: "block",
625
625
  color: "var(--upf-color-error)",
626
626
  "white-space": "break-spaces"
627
- }), se = o(() => {
628
- var r;
629
- return t.isView ? t.noSetDefaultVal ? ["", ""] : ["-", "-"] : (r = t.placeholder) == null ? void 0 : r.map((e) => Fe(e));
630
- }), we = o(() => ({
631
- width: t.width
632
- })), H = n(!1), Ze = n(["", ""]), F = n("~"), de = o(() => {
633
- var r;
634
- return (r = $.value) != null && r.length && $.value[0] && $.value[1] ? Ze.value.join(" " + F.value + " ") : se.value.join(" " + F.value + " ");
635
- }), D = n([0, 0]), M = n([0, 0]), ke = () => {
627
+ }), se = a(() => {
628
+ var o;
629
+ return e.isView ? e.noSetDefaultVal ? ["", ""] : ["-", "-"] : (o = e.placeholder) == null ? void 0 : o.map((t) => $e(t));
630
+ }), we = a(() => ({
631
+ width: e.width
632
+ })), U = u(!1), Ze = u(["", ""]), $ = u("~"), de = a(() => {
633
+ var o;
634
+ return (o = I.value) != null && o.length && I.value[0] && I.value[1] ? Ze.value.join(" " + $.value + " ") : se.value.join(" " + $.value + " ");
635
+ }), z = u([0, 0]), D = u([0, 0]), ke = () => {
636
636
  var s;
637
- let r = [];
638
- const e = (s = v.value) == null ? void 0 : s.$el.querySelectorAll(".ant-picker-input>input");
639
- if (!e)
640
- return r = [0, 0], r;
637
+ let o = [];
638
+ const t = (s = f.value) == null ? void 0 : s.$el.querySelectorAll(".ant-picker-input>input");
639
+ if (!t)
640
+ return o = [0, 0], o;
641
641
  let i = [];
642
- for (let g of e) {
643
- i.push(g.getAttribute("value") || "");
644
- let oe = (g == null ? void 0 : g.offsetWidth) ?? 0;
645
- r.push(oe);
642
+ for (let T of t) {
643
+ i.push(T.getAttribute("value") || "");
644
+ let ae = (T == null ? void 0 : T.offsetWidth) ?? 0;
645
+ o.push(ae);
646
646
  }
647
- return Ze.value = i, r;
648
- }, ze = (r) => {
649
- const e = t.size === "table" ? 12 : 14;
650
- return Je(r, e);
647
+ return Ze.value = i, o;
648
+ }, xe = (o) => {
649
+ const t = e.size === "table" ? 12 : 14;
650
+ return Qe(o, t);
651
651
  }, be = () => {
652
652
  var i;
653
- let r = [];
654
- return ((i = v.value) == null ? void 0 : i.$el.querySelectorAll(".ant-picker-input>input")).forEach((s, g) => {
655
- var oe;
656
- (oe = $.value) != null && oe.length && $.value[0] && $.value[0] ? r.push(s == null ? void 0 : s.scrollWidth) : r.push(ze(se.value[g]));
657
- }), r;
653
+ let o = [];
654
+ return ((i = f.value) == null ? void 0 : i.$el.querySelectorAll(".ant-picker-input>input")).forEach((s, T) => {
655
+ var ae;
656
+ (ae = I.value) != null && ae.length && I.value[0] && I.value[0] ? o.push(s == null ? void 0 : s.scrollWidth) : o.push(xe(se.value[T]));
657
+ }), o;
658
658
  };
659
- ce(() => [se.value, $.value], () => {
659
+ ce(() => [se.value, I.value], () => {
660
660
  Te(() => {
661
- D.value = ke(), M.value = be(), (D.value[0] === M.value[0] || M.value[0] - D.value[0] < 1) && (D.value[1] === M.value[1] || M.value[1] - D.value[1] < 1) && (H.value = !1);
661
+ z.value = ke(), D.value = be(), (z.value[0] === D.value[0] || D.value[0] - z.value[0] < 1) && (z.value[1] === D.value[1] || D.value[1] - z.value[1] < 1) && (U.value = !1);
662
662
  });
663
663
  });
664
- const U = n();
664
+ const X = u();
665
665
  ce(
666
666
  () => {
667
- var r;
668
- return (r = X.value) == null ? void 0 : r.$tooltipRef.popperRef.contentRef;
667
+ var o;
668
+ return (o = G.value) == null ? void 0 : o.$tooltipRef.popperRef.contentRef;
669
669
  },
670
- (r) => {
671
- r && (r.addEventListener("mouseenter", function() {
672
- H.value = !0, U.value && clearTimeout(U.value);
673
- }), r.addEventListener("mouseleave", function() {
674
- U.value = setTimeout(() => {
675
- H.value = !1;
670
+ (o) => {
671
+ o && (o.addEventListener("mouseenter", function() {
672
+ U.value = !0, X.value && clearTimeout(X.value);
673
+ }), o.addEventListener("mouseleave", function() {
674
+ X.value = setTimeout(() => {
675
+ U.value = !1;
676
676
  }, 200);
677
677
  }));
678
678
  }
679
679
  );
680
- const me = (r) => {
681
- r && (ie.value = Xe().nextZIndex()), r ? a() : c(), k("openChange", r), _.value === "en-US" && Te(() => {
682
- const e = document == null ? void 0 : document.querySelectorAll(".ant-picker-ok > .ant-btn > span");
683
- for (let i of e)
680
+ const me = (o) => {
681
+ o && (ie.value = Ge().nextZIndex()), o ? n() : c(), b("openChange", o), Y.value === "en-US" && Te(() => {
682
+ const t = document == null ? void 0 : document.querySelectorAll(".ant-picker-ok > .ant-btn > span");
683
+ for (let i of t)
684
684
  i && (i.innerText = "OK");
685
685
  });
686
- }, u = (r) => {
687
- x(N.value) && (f.value = et(r));
688
- }, a = () => {
689
- f.value = "", V.value = Ce(
690
- u,
691
- x(N.value),
692
- V.value
686
+ }, v = (o) => {
687
+ P(N.value) && (p.value = et(o));
688
+ }, n = () => {
689
+ p.value = "", M.value = Ce(
690
+ v,
691
+ P(N.value),
692
+ M.value
693
693
  );
694
694
  }, c = () => {
695
- V.value = Ce(u, !1, V.value);
695
+ M.value = Ce(v, !1, M.value);
696
696
  };
697
- je(() => {
698
- c(), f.value = "";
697
+ qe(() => {
698
+ c(), p.value = "";
699
699
  });
700
- const b = () => {
701
- D.value = ke(), M.value = be(), (D.value[0] === M.value[0] || M.value[0] - D.value[0] < 1) && (D.value[1] === M.value[1] || M.value[1] - D.value[1] < 1) ? H.value = !1 : (H.value = !0, U.value && clearTimeout(U.value)), C.value = !0;
700
+ const g = () => {
701
+ z.value = ke(), D.value = be(), (z.value[0] === D.value[0] || D.value[0] - z.value[0] < 1) && (z.value[1] === D.value[1] || D.value[1] - z.value[1] < 1) ? U.value = !1 : (U.value = !0, X.value && clearTimeout(X.value)), C.value = !0;
702
702
  }, W = () => {
703
- U.value = setTimeout(() => {
704
- H.value = !1;
703
+ X.value = setTimeout(() => {
704
+ U.value = !1;
705
705
  }, 200), C.value = !1;
706
- }, te = (r, e) => {
707
- r ? b() : W();
708
- }, re = (r, e) => {
709
- const i = dt(r, N.value, f.value);
710
- f.value = "";
711
- const s = ee(i, e), g = q.value && Array.isArray(s) ? s.map((ge) => ge && Qe(ge, N.value)) : s, oe = q.value && Array.isArray(g) ? g.map((ge) => ge == null ? "" : String(ge)) : e;
712
- k("update:error", G.value), k("update:model-value", g), k("change", g, oe);
713
- }, tt = (r, e) => {
714
- if (G.value = !1, r === null) {
715
- k("update:model-value", [null, null]), k("change", [null, null], e);
706
+ }, te = (o, t) => {
707
+ o ? g() : W();
708
+ }, re = (o, t) => {
709
+ const i = dt(o, N.value, p.value);
710
+ p.value = "";
711
+ const s = ee(i, t), T = K.value && Array.isArray(s) ? s.map((ge) => ge && _e(ge, N.value)) : s, ae = K.value && Array.isArray(T) ? T.map((ge) => ge == null ? "" : String(ge)) : t;
712
+ b("update:error", J.value), b("update:model-value", T), b("change", T, ae);
713
+ }, tt = (o, t) => {
714
+ if (J.value = !1, o === null) {
715
+ b("update:model-value", [null, null]), b("change", [null, null], t);
716
716
  return;
717
717
  }
718
- re(r, e);
719
- }, Ye = (r) => {
720
- G.value = !1, re(r.value, [r.value[0].format(t.format), r.value[1].format(t.format)]), v.value.blur();
718
+ re(o, t);
719
+ }, je = (o) => {
720
+ J.value = !1, re(o.value, [o.value[0].format(e.format), o.value[1].format(e.format)]), f.value.blur();
721
721
  };
722
722
  return S({
723
- $rangePicker: v,
723
+ $rangePicker: f,
724
724
  blur: () => {
725
- v.value.blur();
725
+ f.value.blur();
726
726
  },
727
727
  focus: () => {
728
- v.value.focus();
728
+ f.value.focus();
729
729
  }
730
- }), (r, e) => (y(), I(
730
+ }), (o, t) => (k(), V(
731
731
  "div",
732
732
  {
733
- class: Ie(["das-ui-range-picker", [r.borderType, t.isView ? "readonly" : "", d(G) ? "is-error" : ""]]),
733
+ class: Ve(["das-ui-range-picker", [r.borderType, e.isView ? "readonly" : "", d(J) ? "is-error" : ""]]),
734
734
  style: he(we.value)
735
735
  },
736
736
  [
737
- L(d(He), { locale: Y.value }, {
738
- default: h(() => [
739
- L(d(Ue), {
737
+ F(d(Ue), { locale: j.value }, {
738
+ default: y(() => [
739
+ F(d(Xe), {
740
740
  ref_key: "inputTooltipRef",
741
- ref: X,
741
+ ref: G,
742
742
  placement: "top",
743
743
  trigger: "hover",
744
- visible: H.value,
744
+ visible: U.value,
745
745
  disabled: !r.isTooltip,
746
746
  content: de.value
747
747
  }, {
748
- default: h(() => {
748
+ default: y(() => {
749
749
  var i;
750
750
  return [
751
- Ne((y(), ve(d(mt), $e({
751
+ Ne((k(), fe(d(mt), Ie({
752
752
  key: A.value,
753
753
  ref_key: "$rangePicker",
754
- ref: v
755
- }, K.value, {
756
- value: $.value,
754
+ ref: f
755
+ }, H.value, {
756
+ value: I.value,
757
757
  size: E.value,
758
- locale: (i = Y.value) == null ? void 0 : i.DatePicker,
759
- valueFormat: fe.value,
760
- dropdownClassName: "das-ui-range-picker-dropdown " + Q.value + " " + r.dropdownClassName,
758
+ locale: (i = j.value) == null ? void 0 : i.DatePicker,
759
+ valueFormat: pe.value,
760
+ dropdownClassName: "das-ui-range-picker-dropdown " + _.value + " " + r.dropdownClassName,
761
761
  placeholder: se.value,
762
762
  showToday: r.showToday,
763
763
  showTime: r.showTime,
764
764
  bordered: r.borderType === "bordered",
765
- disabled: t.disabled || t.isView,
765
+ disabled: e.disabled || e.isView,
766
766
  style: we.value,
767
- popupStyle: pe.value,
767
+ popupStyle: ve.value,
768
768
  onChange: tt,
769
769
  onOpenChange: me
770
770
  }), {
771
- dateRender: h((s) => [
772
- P(r.$slots, "dateRender", qe(Ke(s)), () => [
773
- J(
771
+ dateRender: y((s) => [
772
+ L(o.$slots, "dateRender", Ke(He(s)), () => [
773
+ Q(
774
774
  "div",
775
775
  {
776
- class: Ie(["ant-picker-cell-inner", { "das-time-zone-picker-cell-today": ue(s.current) }])
776
+ class: Ve(["ant-picker-cell-inner", { "das-time-zone-picker-cell-today": ue(s.current) }])
777
777
  },
778
- ae(s.current.date()),
778
+ oe(s.current.date()),
779
779
  3
780
780
  /* TEXT, CLASS */
781
781
  )
782
782
  ], !0)
783
783
  ]),
784
- nextIcon: h(() => [
785
- z(' <slot name="nextIcon"> '),
786
- e[1] || (e[1] = at(
784
+ nextIcon: y(() => [
785
+ x(' <slot name="nextIcon"> '),
786
+ t[1] || (t[1] = ot(
787
787
  " XX ",
788
788
  -1
789
789
  /* CACHED */
790
790
  )),
791
- z(" </slot> ")
791
+ x(" </slot> ")
792
792
  ]),
793
- prevIcon: h(() => [
794
- P(r.$slots, "prevIcon", {}, () => [
795
- z(' <das-icon icon="left"></das-icon> ')
793
+ prevIcon: y(() => [
794
+ L(o.$slots, "prevIcon", {}, () => [
795
+ x(' <das-icon icon="left"></das-icon> ')
796
796
  ], !0)
797
797
  ]),
798
- superNextIcon: h(() => [
799
- P(r.$slots, "superNextIcon", {}, () => [
800
- z(' <das-icon icon="double-arrow-right"></das-icon> ')
798
+ superNextIcon: y(() => [
799
+ L(o.$slots, "superNextIcon", {}, () => [
800
+ x(' <das-icon icon="double-arrow-right"></das-icon> ')
801
801
  ], !0)
802
802
  ]),
803
- superPrevIcon: h(() => [
804
- P(r.$slots, "superPrevIcon", {}, () => [
805
- z(' <das-icon icon="double-arrow-left"></das-icon> ')
803
+ superPrevIcon: y(() => [
804
+ L(o.$slots, "superPrevIcon", {}, () => [
805
+ x(' <das-icon icon="double-arrow-left"></das-icon> ')
806
806
  ], !0)
807
807
  ]),
808
- suffixIcon: h(() => [
809
- P(r.$slots, "suffixIcon", {}, () => [
810
- L(d(Se), {
808
+ suffixIcon: y(() => [
809
+ L(o.$slots, "suffixIcon", {}, () => [
810
+ F(d(Se), {
811
811
  class: "das-suffix-icon",
812
812
  icon: "riqixuanze",
813
813
  size: "medium",
@@ -815,9 +815,9 @@ const ut = {
815
815
  })
816
816
  ], !0)
817
817
  ]),
818
- separator: h(() => [
819
- P(r.$slots, "separator", {}, () => [
820
- e[2] || (e[2] = J(
818
+ separator: y(() => [
819
+ L(o.$slots, "separator", {}, () => [
820
+ t[2] || (t[2] = Q(
821
821
  "div",
822
822
  { style: { padding: "0 8px" } },
823
823
  "~",
@@ -826,19 +826,19 @@ const ut = {
826
826
  ))
827
827
  ], !0)
828
828
  ]),
829
- renderExtraFooter: h(() => [
830
- J("div", Ft, [
831
- P(r.$slots, "renderExtraFooter", {}, void 0, !0)
829
+ renderExtraFooter: y(() => [
830
+ Q("div", $t, [
831
+ L(o.$slots, "renderExtraFooter", {}, void 0, !0)
832
832
  ]),
833
- r.showTime || r.ranges && r.ranges.length ? (y(), I("div", Lt, [
834
- (y(!0), I(
835
- Me,
833
+ r.showTime || r.ranges && r.ranges.length ? (k(), V("div", Ft, [
834
+ (k(!0), V(
835
+ De,
836
836
  null,
837
- lt(r.ranges, (s) => (y(), I("div", {
837
+ lt(r.ranges, (s) => (k(), V("div", {
838
838
  class: "das-picker-preset",
839
839
  key: s.key
840
840
  }, [
841
- z(` <el-dropdown v-if="item.type==='dropdown' && item.children.length" trigger="click" :teleported="false" placement='bottom-end'>\r
841
+ x(` <el-dropdown v-if="item.type==='dropdown' && item.children.length" trigger="click" :teleported="false" placement='bottom-end'>\r
842
842
  \r
843
843
  <span class="das-picker-preset-span" >\r
844
844
  {{ item.key }}<das-icon icon="fold" size='mini'></das-icon>\r
@@ -855,31 +855,31 @@ const ut = {
855
855
  </el-dropdown-menu>\r
856
856
  </template>\r
857
857
  </el-dropdown> `),
858
- s.type === "dropdown" && s.children.length ? (y(), ve(
858
+ s.type === "dropdown" && s.children.length ? (k(), fe(
859
859
  d(ht),
860
860
  {
861
861
  key: 0,
862
862
  trigger: ["click"]
863
863
  },
864
864
  {
865
- overlay: h(() => [
866
- L(
865
+ overlay: y(() => [
866
+ F(
867
867
  d(yt),
868
868
  null,
869
869
  {
870
- default: h(() => [
871
- (y(!0), I(
872
- Me,
870
+ default: y(() => [
871
+ (k(!0), V(
872
+ De,
873
873
  null,
874
- lt(s.children, (g) => (y(), ve(d(kt), {
875
- key: g.key,
876
- onClick: (oe) => Ye(g)
874
+ lt(s.children, (T) => (k(), fe(d(kt), {
875
+ key: T.key,
876
+ onClick: (ae) => je(T)
877
877
  }, {
878
- default: h(() => [
879
- (y(), I(
878
+ default: y(() => [
879
+ (k(), V(
880
880
  "span",
881
- { key: g },
882
- ae(g.key),
881
+ { key: T },
882
+ oe(T.key),
883
883
  1
884
884
  /* TEXT */
885
885
  ))
@@ -898,19 +898,19 @@ const ut = {
898
898
  /* DYNAMIC_SLOTS */
899
899
  )
900
900
  ]),
901
- default: h(() => [
902
- J("a", {
901
+ default: y(() => [
902
+ Q("a", {
903
903
  class: "ant-dropdown-link",
904
- onClick: e[0] || (e[0] = vt(() => {
904
+ onClick: t[0] || (t[0] = ft(() => {
905
905
  }, ["prevent"]))
906
906
  }, [
907
- J("span", Pt, [
908
- at(
909
- ae(s.key) + " ",
907
+ Q("span", Lt, [
908
+ ot(
909
+ oe(s.key) + " ",
910
910
  1
911
911
  /* TEXT */
912
912
  ),
913
- L(d(Se), {
913
+ F(d(Se), {
914
914
  icon: "fold",
915
915
  size: "mini",
916
916
  style: { display: "inline-block" }
@@ -923,19 +923,19 @@ const ut = {
923
923
  },
924
924
  1024
925
925
  /* DYNAMIC_SLOTS */
926
- )) : (y(), I("span", {
926
+ )) : (k(), V("span", {
927
927
  key: 1,
928
928
  class: "das-picker-preset-span",
929
- onClick: (g) => Ye(s)
930
- }, ae(s.key), 9, xt))
929
+ onClick: (T) => je(s)
930
+ }, oe(s.key), 9, Pt))
931
931
  ]))),
932
932
  128
933
933
  /* KEYED_FRAGMENT */
934
934
  )),
935
- z(` <div class="das-picker-ok">\r
935
+ x(` <div class="das-picker-ok">\r
936
936
  <das-button btnType="primary" size="middle">Ok</das-button>\r
937
937
  </div> `)
938
- ])) : z("v-if", !0)
938
+ ])) : x("v-if", !0)
939
939
  ]),
940
940
  _: 3
941
941
  /* FORWARDED */
@@ -951,51 +951,51 @@ const ut = {
951
951
  _: 3
952
952
  /* FORWARDED */
953
953
  }, 8, ["locale"]),
954
- z(` <div\r
954
+ x(` <div\r
955
955
  :class="[errorMode === 'default' ? 'das-date-picker-error-label-content' : 'das-date-picker-overlay-error-label-content', 'das-picker-label-content']"\r
956
956
  v-if="(errorMode === 'default' || (errorMode === 'overlay' && isHoverInInput)) && currError && !!errorLabel"\r
957
957
  >\r
958
958
  <span v-if="currError" class="das-picker-error-label label" :title="errorLabel">{{ errorLabel }}</span>\r
959
959
  </div> `),
960
- r.error && r.errorLabel ? (y(), I(
961
- Me,
960
+ r.error && r.errorLabel ? (k(), V(
961
+ De,
962
962
  { key: 0 },
963
963
  [
964
- r.errorMode === "default" ? (y(), I("div", At, [
965
- J(
964
+ r.errorMode === "default" ? (k(), V("div", At, [
965
+ Q(
966
966
  "span",
967
967
  {
968
968
  style: he(O.value)
969
969
  },
970
- ae(r.errorLabel),
970
+ oe(r.errorLabel),
971
971
  5
972
972
  /* TEXT, STYLE */
973
973
  )
974
- ])) : z("v-if", !0),
975
- r.errorMode === "overlay" && C.value ? (y(), ve(d(Oe), {
974
+ ])) : x("v-if", !0),
975
+ r.errorMode === "overlay" && C.value ? (k(), fe(d(Oe), {
976
976
  key: 1,
977
977
  errorLabel: r.errorLabel,
978
978
  getEl: () => {
979
979
  var i;
980
- return (i = v.value) == null ? void 0 : i.$el;
980
+ return (i = f.value) == null ? void 0 : i.$el;
981
981
  },
982
982
  errorModelZIndex: r.errorModelZIndex
983
- }, null, 8, ["errorLabel", "getEl", "errorModelZIndex"])) : z("v-if", !0)
983
+ }, null, 8, ["errorLabel", "getEl", "errorModelZIndex"])) : x("v-if", !0)
984
984
  ],
985
985
  64
986
986
  /* STABLE_FRAGMENT */
987
- )) : z("v-if", !0)
987
+ )) : x("v-if", !0)
988
988
  ],
989
989
  6
990
990
  /* CLASS, STYLE */
991
991
  ));
992
992
  }
993
- }), Rt = /* @__PURE__ */ _e(Bt, [["__scopeId", "data-v-808c8456"]]), Nt = { class: "ant-picker-cell-inner" }, Ot = {
993
+ }), Rt = /* @__PURE__ */ Ye(Bt, [["__scopeId", "data-v-808c8456"]]), Nt = { class: "ant-picker-cell-inner" }, Ot = {
994
994
  key: 0,
995
995
  class: "das-date-picker-error-label-content"
996
996
  }, Wt = {
997
997
  name: "DasDatePicker"
998
- }, _t = /* @__PURE__ */ Ee({
998
+ }, Yt = /* @__PURE__ */ Ee({
999
999
  ...Wt,
1000
1000
  props: {
1001
1001
  timeZoneMode: {},
@@ -1022,163 +1022,163 @@ const ut = {
1022
1022
  formSize: {}
1023
1023
  },
1024
1024
  emits: ["change", "openChange", "update:model-value", "update:error"],
1025
- setup(T, { expose: S, emit: l }) {
1026
- Be((u) => ({
1027
- d2190082: q.value,
1028
- "2dad7e4e": fe.value
1025
+ setup(r, { expose: S, emit: l }) {
1026
+ Be((v) => ({
1027
+ d2190082: K.value,
1028
+ v2dad7e4e: pe.value
1029
1029
  }));
1030
- const t = T, k = l, Y = n(void 0);
1031
- ce(_, async () => {
1032
- Y.value = await Ge(_.value);
1030
+ const e = r, b = l, j = u(void 0);
1031
+ ce(Y, async () => {
1032
+ j.value = await Je(Y.value);
1033
1033
  }, { immediate: !0 });
1034
- const A = o(() => `time-picker-${_.value}`), v = n(null), X = n(null), f = n(""), V = n(!1), Z = Re(), E = ye(t, "modelValue"), j = ye(t, "error"), G = o(() => Z.valueFormat ?? Z["value-format"]), w = o(() => ({
1035
- timeZoneMode: t.timeZoneMode,
1036
- timeZone: t.timeZone,
1037
- useClientTimeZone: t.useClientTimeZone,
1034
+ const A = a(() => `time-picker-${Y.value}`), f = u(null), G = u(null), p = u(""), M = u(!1), Z = Re(), E = ye(e, "modelValue"), q = ye(e, "error"), J = a(() => Z.valueFormat ?? Z["value-format"]), w = a(() => ({
1035
+ timeZoneMode: e.timeZoneMode,
1036
+ timeZone: e.timeZone,
1037
+ useClientTimeZone: e.useClientTimeZone,
1038
1038
  // timeZoneValueFormat 是最高优先级;未传时兼容旧业务继续使用 valueFormat 控制输出。
1039
- timeZoneValueFormat: t.timeZoneValueFormat ?? G.value
1040
- })), N = o(() => {
1041
- if (!x(w.value)) return Z;
1042
- const { valueFormat: u, "value-format": a, ...c } = Z;
1039
+ timeZoneValueFormat: e.timeZoneValueFormat ?? J.value
1040
+ })), N = a(() => {
1041
+ if (!P(w.value)) return Z;
1042
+ const { valueFormat: v, "value-format": n, ...c } = Z;
1043
1043
  return c;
1044
- }), $ = o(() => Le(E.value, w.value)), q = o(() => t.width ? t.width : "230px"), R = o(() => t.formSize), K = o(() => t.size === "large" ? "large" : t.size === "small" || t.size === "table" ? "small" : "middle"), fe = o(() => t.height ? t.height : R.value ? {
1044
+ }), I = a(() => Fe(E.value, w.value)), K = a(() => e.width ? e.width : "230px"), R = a(() => e.formSize), H = a(() => e.size === "large" ? "large" : e.size === "small" || e.size === "table" ? "small" : "middle"), pe = a(() => e.height ? e.height : R.value ? {
1045
1045
  small: "24px",
1046
1046
  default: "32px",
1047
1047
  large: "40px"
1048
- }[R.value] : "auto"), Q = o(() => ({
1049
- width: t.width
1050
- })), le = o(() => t.isView ? t.noSetDefaultVal ? "" : "-" : Fe(t.placeholder)), ne = n(3e3), ue = o(() => ({
1048
+ }[R.value] : "auto"), _ = a(() => ({
1049
+ width: e.width
1050
+ })), le = a(() => e.isView ? e.noSetDefaultVal ? "" : "-" : $e(e.placeholder)), ne = u(3e3), ue = a(() => ({
1051
1051
  "z-index": ne.value
1052
- })), ee = n(!1), p = n({
1052
+ })), ee = u(!1), h = u({
1053
1053
  display: "block",
1054
1054
  color: "var(--upf-color-error)",
1055
1055
  "white-space": "break-spaces"
1056
- }), m = (u) => {
1057
- u && (ne.value = Xe().nextZIndex()), u ? ie() : pe(), k("openChange", u), String(_.value).startsWith("en") && Te(() => {
1058
- const a = document == null ? void 0 : document.querySelectorAll(".ant-picker-ok > .ant-btn > span");
1059
- for (let c of a)
1056
+ }), m = (v) => {
1057
+ v && (ne.value = Ge().nextZIndex()), v ? ie() : ve(), b("openChange", v), String(Y.value).startsWith("en") && Te(() => {
1058
+ const n = document == null ? void 0 : document.querySelectorAll(".ant-picker-ok > .ant-btn > span");
1059
+ for (let c of n)
1060
1060
  c && (c.innerText = "OK");
1061
1061
  });
1062
- }, B = (u) => {
1063
- x(w.value) && (f.value = et(u));
1062
+ }, B = (v) => {
1063
+ P(w.value) && (p.value = et(v));
1064
1064
  }, ie = () => {
1065
- f.value = "", V.value = Ce(
1065
+ p.value = "", M.value = Ce(
1066
1066
  B,
1067
- x(w.value),
1068
- V.value
1067
+ P(w.value),
1068
+ M.value
1069
1069
  );
1070
- }, pe = () => {
1071
- V.value = Ce(B, !1, V.value);
1070
+ }, ve = () => {
1071
+ M.value = Ce(B, !1, M.value);
1072
1072
  };
1073
- je(() => {
1074
- pe(), f.value = "";
1073
+ qe(() => {
1074
+ ve(), p.value = "";
1075
1075
  });
1076
- const C = n(!1), O = n(""), se = o(() => $.value ? O.value : le.value), we = () => {
1077
- const u = t.size === "table" ? 12 : 14;
1078
- return Je(le.value, u);
1079
- }, H = () => {
1080
- var a;
1081
- const u = (a = v.value) == null ? void 0 : a.$el.querySelector(".ant-picker-input>input");
1082
- return $.value ? u == null ? void 0 : u.scrollWidth : we();
1076
+ const C = u(!1), O = u(""), se = a(() => I.value ? O.value : le.value), we = () => {
1077
+ const v = e.size === "table" ? 12 : 14;
1078
+ return Qe(le.value, v);
1079
+ }, U = () => {
1080
+ var n;
1081
+ const v = (n = f.value) == null ? void 0 : n.$el.querySelector(".ant-picker-input>input");
1082
+ return I.value ? v == null ? void 0 : v.scrollWidth : we();
1083
1083
  }, Ze = () => {
1084
1084
  var c;
1085
- const u = (c = v.value) == null ? void 0 : c.$el.querySelector(".ant-picker-input>input");
1086
- return u ? (O.value = u.getAttribute("value"), u.removeAttribute("title"), (u == null ? void 0 : u.offsetWidth) ?? 0) : 0;
1087
- }, F = n(0), de = n(0);
1088
- ce(() => [le.value, $.value], () => {
1085
+ const v = (c = f.value) == null ? void 0 : c.$el.querySelector(".ant-picker-input>input");
1086
+ return v ? (O.value = v.getAttribute("value"), v.removeAttribute("title"), (v == null ? void 0 : v.offsetWidth) ?? 0) : 0;
1087
+ }, $ = u(0), de = u(0);
1088
+ ce(() => [le.value, I.value], () => {
1089
1089
  Te(() => {
1090
- F.value = Ze(), de.value = H(), (F.value === de.value || de.value - F.value < 1) && (C.value = !1);
1090
+ $.value = Ze(), de.value = U(), ($.value === de.value || de.value - $.value < 1) && (C.value = !1);
1091
1091
  });
1092
1092
  });
1093
- const M = n();
1093
+ const D = u();
1094
1094
  ce(
1095
1095
  () => {
1096
- var u;
1097
- return (u = X.value) == null ? void 0 : u.$tooltipRef.popperRef.contentRef;
1096
+ var v;
1097
+ return (v = G.value) == null ? void 0 : v.$tooltipRef.popperRef.contentRef;
1098
1098
  },
1099
- (u) => {
1100
- u && (u.addEventListener("mouseenter", function() {
1101
- C.value = !0, M.value && clearTimeout(M.value);
1102
- }), u.addEventListener("mouseleave", function() {
1103
- M.value = setTimeout(() => {
1099
+ (v) => {
1100
+ v && (v.addEventListener("mouseenter", function() {
1101
+ C.value = !0, D.value && clearTimeout(D.value);
1102
+ }), v.addEventListener("mouseleave", function() {
1103
+ D.value = setTimeout(() => {
1104
1104
  C.value = !1;
1105
1105
  }, 200);
1106
1106
  }));
1107
1107
  }
1108
1108
  );
1109
1109
  const ke = () => {
1110
- F.value = Ze(), de.value = H(), F.value === de.value || de.value - F.value < 1 ? C.value = !1 : (C.value = !0, M.value && clearTimeout(M.value)), ee.value = !0;
1111
- }, ze = () => {
1112
- M.value = setTimeout(() => {
1110
+ $.value = Ze(), de.value = U(), $.value === de.value || de.value - $.value < 1 ? C.value = !1 : (C.value = !0, D.value && clearTimeout(D.value)), ee.value = !0;
1111
+ }, xe = () => {
1112
+ D.value = setTimeout(() => {
1113
1113
  C.value = !1;
1114
1114
  }, 200), ee.value = !1;
1115
- }, be = (u) => {
1116
- u ? ke() : ze();
1117
- }, De = (u, a) => {
1118
- j.value = !1, k("update:error", j.value);
1119
- const c = st(u, w.value, f.value);
1120
- f.value = "";
1121
- const b = x(w.value) ? Qe(c, w.value) : c, W = x(w.value) && b != null ? String(b) : a;
1122
- k("update:model-value", b), k("change", b, W);
1115
+ }, be = (v) => {
1116
+ v ? ke() : xe();
1117
+ }, ze = (v, n) => {
1118
+ q.value = !1, b("update:error", q.value);
1119
+ const c = st(v, w.value, p.value);
1120
+ p.value = "";
1121
+ const g = P(w.value) ? _e(c, w.value) : c, W = P(w.value) && g != null ? String(g) : n;
1122
+ b("update:model-value", g), b("change", g, W);
1123
1123
  };
1124
1124
  return S({
1125
- $timePicker: v,
1125
+ $timePicker: f,
1126
1126
  blur: () => {
1127
- v.value.blur();
1127
+ f.value.blur();
1128
1128
  },
1129
1129
  focus: () => {
1130
- v.value.focus();
1130
+ f.value.focus();
1131
1131
  }
1132
- }), (u, a) => (y(), I(
1132
+ }), (v, n) => (k(), V(
1133
1133
  "div",
1134
1134
  {
1135
- class: Ie(["das-ui-time-picker", [u.borderType, t.isView ? "readonly" : "", d(j) ? "is-error" : ""]]),
1136
- style: he(Q.value)
1135
+ class: Ve(["das-ui-time-picker", [r.borderType, e.isView ? "readonly" : "", d(q) ? "is-error" : ""]]),
1136
+ style: he(_.value)
1137
1137
  },
1138
1138
  [
1139
- L(d(He), { locale: Y.value }, {
1140
- default: h(() => [
1141
- L(d(Ue), {
1139
+ F(d(Ue), { locale: j.value }, {
1140
+ default: y(() => [
1141
+ F(d(Xe), {
1142
1142
  ref_key: "inputTooltipRef",
1143
- ref: X,
1143
+ ref: G,
1144
1144
  placement: "top",
1145
1145
  trigger: "hover",
1146
1146
  visible: C.value,
1147
- disabled: !u.isTooltip,
1147
+ disabled: !r.isTooltip,
1148
1148
  content: se.value
1149
1149
  }, {
1150
- default: h(() => [
1151
- Ne((y(), ve(d(bt), $e({
1150
+ default: y(() => [
1151
+ Ne((k(), fe(d(bt), Ie({
1152
1152
  key: A.value,
1153
1153
  ref_key: "$timePicker",
1154
- ref: v
1154
+ ref: f
1155
1155
  }, N.value, {
1156
- value: $.value,
1157
- size: K.value,
1158
- popupClassName: "das-ui-time-picker-dropdown " + u.dropdownClassName,
1159
- showNow: u.showNow,
1160
- bordered: u.borderType === "bordered",
1156
+ value: I.value,
1157
+ size: H.value,
1158
+ popupClassName: "das-ui-time-picker-dropdown " + r.dropdownClassName,
1159
+ showNow: r.showNow,
1160
+ bordered: r.borderType === "bordered",
1161
1161
  placeholder: le.value,
1162
- disabled: t.disabled || t.isView,
1163
- style: Q.value,
1162
+ disabled: e.disabled || e.isView,
1163
+ style: _.value,
1164
1164
  popupStyle: ue.value,
1165
- onChange: De,
1165
+ onChange: ze,
1166
1166
  onOpenChange: m
1167
1167
  }), {
1168
- dateRender: h((c) => [
1169
- P(u.$slots, "dateRender", qe(Ke(c)), () => [
1170
- J(
1168
+ dateRender: y((c) => [
1169
+ L(v.$slots, "dateRender", Ke(He(c)), () => [
1170
+ Q(
1171
1171
  "div",
1172
1172
  Nt,
1173
- ae(c.current.date()),
1173
+ oe(c.current.date()),
1174
1174
  1
1175
1175
  /* TEXT */
1176
1176
  )
1177
1177
  ], !0)
1178
1178
  ]),
1179
- suffixIcon: h(() => [
1180
- P(u.$slots, "suffixIcon", {}, () => [
1181
- L(d(wt), {
1179
+ suffixIcon: y(() => [
1180
+ L(v.$slots, "suffixIcon", {}, () => [
1181
+ F(d(wt), {
1182
1182
  class: "das-suffix-icon",
1183
1183
  size: "medium",
1184
1184
  iconColor: "#666666"
@@ -1198,31 +1198,31 @@ const ut = {
1198
1198
  _: 3
1199
1199
  /* FORWARDED */
1200
1200
  }, 8, ["locale"]),
1201
- u.error && u.errorLabel ? (y(), I(
1202
- Me,
1201
+ r.error && r.errorLabel ? (k(), V(
1202
+ De,
1203
1203
  { key: 0 },
1204
1204
  [
1205
- u.errorMode === "default" ? (y(), I("div", Ot, [
1206
- J(
1205
+ r.errorMode === "default" ? (k(), V("div", Ot, [
1206
+ Q(
1207
1207
  "span",
1208
1208
  {
1209
- style: he(p.value)
1209
+ style: he(h.value)
1210
1210
  },
1211
- ae(u.errorLabel),
1211
+ oe(r.errorLabel),
1212
1212
  5
1213
1213
  /* TEXT, STYLE */
1214
1214
  )
1215
- ])) : z("v-if", !0),
1216
- u.errorMode === "overlay" && ee.value ? (y(), ve(d(Oe), {
1215
+ ])) : x("v-if", !0),
1216
+ r.errorMode === "overlay" && ee.value ? (k(), fe(d(Oe), {
1217
1217
  key: 1,
1218
- errorLabel: u.errorLabel,
1218
+ errorLabel: r.errorLabel,
1219
1219
  getEl: () => {
1220
1220
  var c;
1221
- return (c = v.value) == null ? void 0 : c.$el;
1221
+ return (c = f.value) == null ? void 0 : c.$el;
1222
1222
  },
1223
- errorModelZIndex: u.errorModelZIndex
1224
- }, null, 8, ["errorLabel", "getEl", "errorModelZIndex"])) : z("v-if", !0),
1225
- z(` <template v-else-if="errorMode === 'overlay' && isHoverInInput">\r
1223
+ errorModelZIndex: r.errorModelZIndex
1224
+ }, null, 8, ["errorLabel", "getEl", "errorModelZIndex"])) : x("v-if", !0),
1225
+ x(` <template v-else-if="errorMode === 'overlay' && isHoverInInput">\r
1226
1226
  <teleport to="body" v-if="teleported">\r
1227
1227
  <div ref="$errorModel" :style="errorModelStyle">\r
1228
1228
  <span :style="errorLabelStyle">{{ errorLabel }}</span>\r
@@ -1236,19 +1236,19 @@ const ut = {
1236
1236
  ],
1237
1237
  64
1238
1238
  /* STABLE_FRAGMENT */
1239
- )) : z("v-if", !0)
1239
+ )) : x("v-if", !0)
1240
1240
  ],
1241
1241
  6
1242
1242
  /* CLASS, STYLE */
1243
1243
  ));
1244
1244
  }
1245
- }), Yt = /* @__PURE__ */ _e(_t, [["__scopeId", "data-v-05ea88f6"]]), jt = { class: "ant-picker-cell-inner" }, qt = {
1245
+ }), jt = /* @__PURE__ */ Ye(Yt, [["__scopeId", "data-v-05ea88f6"]]), qt = { class: "ant-picker-cell-inner" }, Kt = {
1246
1246
  key: 0,
1247
1247
  class: "das-date-picker-error-label-content"
1248
- }, Kt = {
1248
+ }, Ht = {
1249
1249
  name: "DasDatePicker"
1250
- }, Ht = /* @__PURE__ */ Ee({
1251
- ...Kt,
1250
+ }, Ut = /* @__PURE__ */ Ee({
1251
+ ...Ht,
1252
1252
  props: {
1253
1253
  timeZoneMode: {},
1254
1254
  timeZone: {},
@@ -1274,185 +1274,185 @@ const ut = {
1274
1274
  formSize: {}
1275
1275
  },
1276
1276
  emits: ["change", "openChange", "update:model-value", "update:error"],
1277
- setup(T, { expose: S, emit: l }) {
1278
- Be((a) => ({
1279
- "8abddf88": q.value,
1280
- "7fb1fd71": fe.value
1277
+ setup(r, { expose: S, emit: l }) {
1278
+ Be((n) => ({
1279
+ v8abddf88: K.value,
1280
+ v7fb1fd71: pe.value
1281
1281
  })), rt({
1282
1282
  dengdai: import("@das-fed/upf-ui/packages/icons/dengdai")
1283
1283
  });
1284
- const t = T, k = l, Y = n(void 0);
1285
- ce(_, async () => {
1286
- Y.value = await Ge(_.value);
1284
+ const e = r, b = l, j = u(void 0);
1285
+ ce(Y, async () => {
1286
+ j.value = await Je(Y.value);
1287
1287
  }, { immediate: !0 });
1288
- const A = o(() => `time-range-picker-${_.value}`), v = n(null), X = n(null), f = n(""), V = n(!1), Z = Re(), E = ye(t, "modelValue"), j = ye(t, "error"), G = o(() => Z.valueFormat ?? Z["value-format"]), w = o(() => ({
1289
- timeZoneMode: t.timeZoneMode,
1290
- timeZone: t.timeZone,
1291
- useClientTimeZone: t.useClientTimeZone,
1288
+ const A = a(() => `time-range-picker-${Y.value}`), f = u(null), G = u(null), p = u(""), M = u(!1), Z = Re(), E = ye(e, "modelValue"), q = ye(e, "error"), J = a(() => Z.valueFormat ?? Z["value-format"]), w = a(() => ({
1289
+ timeZoneMode: e.timeZoneMode,
1290
+ timeZone: e.timeZone,
1291
+ useClientTimeZone: e.useClientTimeZone,
1292
1292
  // timeZoneValueFormat 是最高优先级;未传时兼容旧业务继续使用 valueFormat 控制输出。
1293
- timeZoneValueFormat: t.timeZoneValueFormat ?? G.value
1294
- })), N = o(() => {
1295
- if (!x(w.value)) return Z;
1296
- const { valueFormat: a, "value-format": c, ...b } = Z;
1297
- return b;
1298
- }), $ = o(() => !Array.isArray(E.value) || !x(w.value) ? E.value : E.value.map((a) => Le(a, w.value))), q = o(() => t.width ? t.width : "230px"), R = o(() => t.formSize), K = o(() => t.size === "large" ? "large" : t.size === "small" || t.size === "table" ? "small" : "middle"), fe = o(() => t.height ? t.height : R.value ? {
1293
+ timeZoneValueFormat: e.timeZoneValueFormat ?? J.value
1294
+ })), N = a(() => {
1295
+ if (!P(w.value)) return Z;
1296
+ const { valueFormat: n, "value-format": c, ...g } = Z;
1297
+ return g;
1298
+ }), I = a(() => !Array.isArray(E.value) || !P(w.value) ? E.value : E.value.map((n) => Fe(n, w.value))), K = a(() => e.width ? e.width : "230px"), R = a(() => e.formSize), H = a(() => e.size === "large" ? "large" : e.size === "small" || e.size === "table" ? "small" : "middle"), pe = a(() => e.height ? e.height : R.value ? {
1299
1299
  small: "24px",
1300
1300
  default: "32px",
1301
1301
  large: "40px"
1302
- }[R.value] : "auto"), Q = n(3e3), le = o(() => ({
1303
- "z-index": Q.value
1304
- })), ne = o(() => ({
1305
- width: t.width
1306
- })), ue = o(() => {
1307
- var a;
1308
- return t.isView ? t.noSetDefaultVal ? ["", ""] : ["-", "-"] : (a = t.placeholder) == null ? void 0 : a.map((c) => Fe(c));
1309
- }), ee = n(!1), p = n({
1302
+ }[R.value] : "auto"), _ = u(3e3), le = a(() => ({
1303
+ "z-index": _.value
1304
+ })), ne = a(() => ({
1305
+ width: e.width
1306
+ })), ue = a(() => {
1307
+ var n;
1308
+ return e.isView ? e.noSetDefaultVal ? ["", ""] : ["-", "-"] : (n = e.placeholder) == null ? void 0 : n.map((c) => $e(c));
1309
+ }), ee = u(!1), h = u({
1310
1310
  display: "block",
1311
1311
  color: "var(--upf-color-error)",
1312
1312
  "white-space": "break-spaces"
1313
- }), m = n(!1), B = n(["", ""]), ie = n("~"), pe = o(() => {
1314
- var a;
1315
- return (a = E.value) != null && a.length && E.value[0] && E.value[1] ? B.value.join(" " + ie.value + " ") : ue.value.join(" " + ie.value + " ");
1316
- }), C = n([0, 0]), O = n([0, 0]), se = () => {
1313
+ }), m = u(!1), B = u(["", ""]), ie = u("~"), ve = a(() => {
1314
+ var n;
1315
+ return (n = E.value) != null && n.length && E.value[0] && E.value[1] ? B.value.join(" " + ie.value + " ") : ue.value.join(" " + ie.value + " ");
1316
+ }), C = u([0, 0]), O = u([0, 0]), se = () => {
1317
1317
  var W;
1318
- let a = [];
1319
- const c = (W = v.value) == null ? void 0 : W.$el.querySelectorAll(".ant-picker-input>input");
1318
+ let n = [];
1319
+ const c = (W = f.value) == null ? void 0 : W.$el.querySelectorAll(".ant-picker-input>input");
1320
1320
  if (!c)
1321
- return a = [0, 0], a;
1322
- let b = [];
1321
+ return n = [0, 0], n;
1322
+ let g = [];
1323
1323
  for (let te of c) {
1324
- b.push(te.getAttribute("value") || "");
1324
+ g.push(te.getAttribute("value") || "");
1325
1325
  let re = (te == null ? void 0 : te.offsetWidth) ?? 0;
1326
- a.push(re);
1326
+ n.push(re);
1327
1327
  }
1328
- return B.value = b, a;
1329
- }, we = (a) => {
1330
- const c = t.size === "table" ? 12 : 14;
1331
- return Je(a, c);
1332
- }, H = () => {
1333
- var b;
1334
- let a = [];
1335
- return ((b = v.value) == null ? void 0 : b.$el.querySelectorAll(".ant-picker-input>input")).forEach((W, te) => {
1336
- E.value.length && E.value[0] && E.value[0] ? a.push(W == null ? void 0 : W.scrollWidth) : a.push(we(ue.value[te]));
1337
- }), a;
1328
+ return B.value = g, n;
1329
+ }, we = (n) => {
1330
+ const c = e.size === "table" ? 12 : 14;
1331
+ return Qe(n, c);
1332
+ }, U = () => {
1333
+ var g;
1334
+ let n = [];
1335
+ return ((g = f.value) == null ? void 0 : g.$el.querySelectorAll(".ant-picker-input>input")).forEach((W, te) => {
1336
+ E.value.length && E.value[0] && E.value[0] ? n.push(W == null ? void 0 : W.scrollWidth) : n.push(we(ue.value[te]));
1337
+ }), n;
1338
1338
  };
1339
1339
  ce(() => [ue.value, E.value], () => {
1340
1340
  Te(() => {
1341
- C.value = se(), O.value = H(), (C.value[0] === O.value[0] || O.value[0] - C.value[0] < 1) && (C.value[1] === O.value[1] || O.value[1] - C.value[1] < 1) && (m.value = !1);
1341
+ C.value = se(), O.value = U(), (C.value[0] === O.value[0] || O.value[0] - C.value[0] < 1) && (C.value[1] === O.value[1] || O.value[1] - C.value[1] < 1) && (m.value = !1);
1342
1342
  });
1343
1343
  });
1344
- const F = n();
1344
+ const $ = u();
1345
1345
  ce(
1346
1346
  () => {
1347
- var a;
1348
- return (a = X.value) == null ? void 0 : a.$tooltipRef.popperRef.contentRef;
1347
+ var n;
1348
+ return (n = G.value) == null ? void 0 : n.$tooltipRef.popperRef.contentRef;
1349
1349
  },
1350
- (a) => {
1351
- a && (a.addEventListener("mouseenter", function() {
1352
- m.value = !0, F.value && clearTimeout(F.value);
1353
- }), a.addEventListener("mouseleave", function() {
1354
- F.value = setTimeout(() => {
1350
+ (n) => {
1351
+ n && (n.addEventListener("mouseenter", function() {
1352
+ m.value = !0, $.value && clearTimeout($.value);
1353
+ }), n.addEventListener("mouseleave", function() {
1354
+ $.value = setTimeout(() => {
1355
1355
  m.value = !1;
1356
1356
  }, 200);
1357
1357
  }));
1358
1358
  }
1359
1359
  );
1360
- const de = (a) => {
1361
- a && (Q.value = Xe().nextZIndex()), a ? M() : ke(), k("openChange", a), String(_.value).startsWith("en") && Te(() => {
1360
+ const de = (n) => {
1361
+ n && (_.value = Ge().nextZIndex()), n ? D() : ke(), b("openChange", n), String(Y.value).startsWith("en") && Te(() => {
1362
1362
  const c = document == null ? void 0 : document.querySelectorAll(".ant-picker-ok > .ant-btn > span");
1363
- for (let b of c)
1364
- b && (b.innerText = "OK");
1363
+ for (let g of c)
1364
+ g && (g.innerText = "OK");
1365
1365
  });
1366
- }, D = (a) => {
1367
- x(w.value) && (f.value = et(a));
1368
- }, M = () => {
1369
- f.value = "", V.value = Ce(
1370
- D,
1371
- x(w.value),
1372
- V.value
1366
+ }, z = (n) => {
1367
+ P(w.value) && (p.value = et(n));
1368
+ }, D = () => {
1369
+ p.value = "", M.value = Ce(
1370
+ z,
1371
+ P(w.value),
1372
+ M.value
1373
1373
  );
1374
1374
  }, ke = () => {
1375
- V.value = Ce(D, !1, V.value);
1375
+ M.value = Ce(z, !1, M.value);
1376
1376
  };
1377
- je(() => {
1378
- ke(), f.value = "";
1377
+ qe(() => {
1378
+ ke(), p.value = "";
1379
1379
  });
1380
- const ze = () => {
1381
- C.value = se(), O.value = H(), (C.value[0] === O.value[0] || O.value[0] - C.value[0] < 1) && (C.value[1] === O.value[1] || O.value[1] - C.value[1] < 1) ? m.value = !1 : (m.value = !0, F.value && clearTimeout(F.value)), ee.value = !0;
1380
+ const xe = () => {
1381
+ C.value = se(), O.value = U(), (C.value[0] === O.value[0] || O.value[0] - C.value[0] < 1) && (C.value[1] === O.value[1] || O.value[1] - C.value[1] < 1) ? m.value = !1 : (m.value = !0, $.value && clearTimeout($.value)), ee.value = !0;
1382
1382
  }, be = () => {
1383
- F.value = setTimeout(() => {
1383
+ $.value = setTimeout(() => {
1384
1384
  m.value = !1;
1385
1385
  }, 200), ee.value = !1;
1386
- }, De = (a) => {
1387
- a ? ze() : be();
1388
- }, U = (a, c) => {
1389
- if (j.value = !1, a === null) {
1390
- k("update:model-value", [null, null]), k("change", [null, null], Array.isArray(c) ? c.join(" ~ ") : c);
1386
+ }, ze = (n) => {
1387
+ n ? xe() : be();
1388
+ }, X = (n, c) => {
1389
+ if (q.value = !1, n === null) {
1390
+ b("update:model-value", [null, null]), b("change", [null, null], Array.isArray(c) ? c.join(" ~ ") : c);
1391
1391
  return;
1392
1392
  }
1393
- const b = dt(a, w.value, f.value);
1394
- f.value = "";
1395
- const W = x(w.value) && Array.isArray(b) ? b.map((re) => re && Qe(re, w.value)) : b, te = x(w.value) && Array.isArray(W) ? W.map((re) => re == null ? "" : String(re)).join(" ~ ") : Array.isArray(c) ? c.join(" ~ ") : c;
1396
- k("update:error", j.value), k("update:model-value", W), k("change", W, te);
1393
+ const g = dt(n, w.value, p.value);
1394
+ p.value = "";
1395
+ const W = P(w.value) && Array.isArray(g) ? g.map((re) => re && _e(re, w.value)) : g, te = P(w.value) && Array.isArray(W) ? W.map((re) => re == null ? "" : String(re)).join(" ~ ") : Array.isArray(c) ? c.join(" ~ ") : c;
1396
+ b("update:error", q.value), b("update:model-value", W), b("change", W, te);
1397
1397
  };
1398
1398
  return S({
1399
- $timeRangePicker: v,
1399
+ $timeRangePicker: f,
1400
1400
  blur: () => {
1401
- v.value.blur();
1401
+ f.value.blur();
1402
1402
  },
1403
1403
  focus: () => {
1404
- v.value.focus();
1404
+ f.value.focus();
1405
1405
  }
1406
- }), (a, c) => (y(), I(
1406
+ }), (n, c) => (k(), V(
1407
1407
  "div",
1408
1408
  {
1409
- class: Ie(["das-ui-time-range-picker", [a.borderType, t.isView ? "readonly" : "", d(j) ? "is-error" : ""]]),
1409
+ class: Ve(["das-ui-time-range-picker", [r.borderType, e.isView ? "readonly" : "", d(q) ? "is-error" : ""]]),
1410
1410
  style: he(ne.value)
1411
1411
  },
1412
1412
  [
1413
- L(d(He), { locale: Y.value }, {
1414
- default: h(() => [
1415
- L(d(Ue), {
1413
+ F(d(Ue), { locale: j.value }, {
1414
+ default: y(() => [
1415
+ F(d(Xe), {
1416
1416
  ref_key: "inputTooltipRef",
1417
- ref: X,
1417
+ ref: G,
1418
1418
  placement: "top",
1419
1419
  trigger: "hover",
1420
1420
  visible: m.value,
1421
- disabled: !a.isTooltip,
1422
- content: pe.value
1421
+ disabled: !r.isTooltip,
1422
+ content: ve.value
1423
1423
  }, {
1424
- default: h(() => [
1425
- Ne((y(), ve(d(gt), $e({
1424
+ default: y(() => [
1425
+ Ne((k(), fe(d(gt), Ie({
1426
1426
  key: A.value,
1427
1427
  ref_key: "$timeRangePicker",
1428
- ref: v
1428
+ ref: f
1429
1429
  }, N.value, {
1430
- value: $.value,
1431
- size: K.value,
1432
- popupClassName: "das-ui-time-range-picker-dropdown " + a.dropdownClassName,
1433
- showNow: a.showNow,
1434
- bordered: a.borderType === "bordered",
1430
+ value: I.value,
1431
+ size: H.value,
1432
+ popupClassName: "das-ui-time-range-picker-dropdown " + r.dropdownClassName,
1433
+ showNow: r.showNow,
1434
+ bordered: r.borderType === "bordered",
1435
1435
  placeholder: ue.value,
1436
- disabled: t.disabled || t.isView,
1436
+ disabled: e.disabled || e.isView,
1437
1437
  style: ne.value,
1438
1438
  popupStyle: le.value,
1439
- onChange: U,
1439
+ onChange: X,
1440
1440
  onOpenChange: de
1441
1441
  }), {
1442
- dateRender: h((b) => [
1443
- P(a.$slots, "dateRender", qe(Ke(b)), () => [
1444
- J(
1442
+ dateRender: y((g) => [
1443
+ L(n.$slots, "dateRender", Ke(He(g)), () => [
1444
+ Q(
1445
1445
  "div",
1446
- jt,
1447
- ae(b.current.date()),
1446
+ qt,
1447
+ oe(g.current.date()),
1448
1448
  1
1449
1449
  /* TEXT */
1450
1450
  )
1451
1451
  ], !0)
1452
1452
  ]),
1453
- suffixIcon: h(() => [
1454
- P(a.$slots, "suffixIcon", {}, () => [
1455
- L(d(Se), {
1453
+ suffixIcon: y(() => [
1454
+ L(n.$slots, "suffixIcon", {}, () => [
1455
+ F(d(Se), {
1456
1456
  class: "das-suffix-icon",
1457
1457
  icon: "dengdai",
1458
1458
  size: "medium",
@@ -1460,9 +1460,9 @@ const ut = {
1460
1460
  })
1461
1461
  ], !0)
1462
1462
  ]),
1463
- separator: h(() => [
1464
- P(a.$slots, "separator", {}, () => [
1465
- c[0] || (c[0] = J(
1463
+ separator: y(() => [
1464
+ L(n.$slots, "separator", {}, () => [
1465
+ c[0] || (c[0] = Q(
1466
1466
  "div",
1467
1467
  { style: { padding: "0 8px" } },
1468
1468
  "~",
@@ -1474,7 +1474,7 @@ const ut = {
1474
1474
  _: 3
1475
1475
  /* FORWARDED */
1476
1476
  }, 16, ["value", "size", "popupClassName", "showNow", "bordered", "placeholder", "disabled", "style", "popupStyle"])), [
1477
- [d(We), De]
1477
+ [d(We), ze]
1478
1478
  ])
1479
1479
  ]),
1480
1480
  _: 3
@@ -1484,40 +1484,40 @@ const ut = {
1484
1484
  _: 3
1485
1485
  /* FORWARDED */
1486
1486
  }, 8, ["locale"]),
1487
- a.error && a.errorLabel ? (y(), I(
1488
- Me,
1487
+ r.error && r.errorLabel ? (k(), V(
1488
+ De,
1489
1489
  { key: 0 },
1490
1490
  [
1491
- a.errorMode === "default" ? (y(), I("div", qt, [
1492
- J(
1491
+ r.errorMode === "default" ? (k(), V("div", Kt, [
1492
+ Q(
1493
1493
  "span",
1494
1494
  {
1495
- style: he(p.value)
1495
+ style: he(h.value)
1496
1496
  },
1497
- ae(a.errorLabel),
1497
+ oe(r.errorLabel),
1498
1498
  5
1499
1499
  /* TEXT, STYLE */
1500
1500
  )
1501
- ])) : z("v-if", !0),
1502
- a.errorMode === "overlay" && ee.value ? (y(), ve(d(Oe), {
1501
+ ])) : x("v-if", !0),
1502
+ r.errorMode === "overlay" && ee.value ? (k(), fe(d(Oe), {
1503
1503
  key: 1,
1504
- errorLabel: a.errorLabel,
1504
+ errorLabel: r.errorLabel,
1505
1505
  getEl: () => {
1506
- var b;
1507
- return (b = v.value) == null ? void 0 : b.$el;
1506
+ var g;
1507
+ return (g = f.value) == null ? void 0 : g.$el;
1508
1508
  },
1509
- errorModelZIndex: a.errorModelZIndex
1510
- }, null, 8, ["errorLabel", "getEl", "errorModelZIndex"])) : z("v-if", !0)
1509
+ errorModelZIndex: r.errorModelZIndex
1510
+ }, null, 8, ["errorLabel", "getEl", "errorModelZIndex"])) : x("v-if", !0)
1511
1511
  ],
1512
1512
  64
1513
1513
  /* STABLE_FRAGMENT */
1514
- )) : z("v-if", !0)
1514
+ )) : x("v-if", !0)
1515
1515
  ],
1516
1516
  6
1517
1517
  /* CLASS, STYLE */
1518
1518
  ));
1519
1519
  }
1520
- }), Ut = /* @__PURE__ */ _e(Ht, [["__scopeId", "data-v-62ff6a8e"]]), Xt = {
1520
+ }), Xt = /* @__PURE__ */ Ye(Ut, [["__scopeId", "data-v-62ff6a8e"]]), Gt = {
1521
1521
  开始日期: { "zh-CN": "开始日期", en: "Start Date", "zh-MO": "開始日期", _appCode: "framework" },
1522
1522
  结束日期: { "zh-CN": "结束日期", en: "End Date", "zh-MO": "結束日期", _appCode: "framework" },
1523
1523
  开始时间: { "zh-CN": "开始时间", en: "Start Time", "zh-MO": "開始時間", _appCode: "framework" },
@@ -1525,8 +1525,8 @@ const ut = {
1525
1525
  请选择日期: { "zh-CN": "请选择日期", en: "Please select a date", "zh-MO": "請選擇日期", _appCode: "framework" },
1526
1526
  请选择时间: { "zh-CN": "请选择时间", en: "Please select the time", "zh-MO": "請選擇時間", _appCode: "framework" }
1527
1527
  };
1528
- Tt(Xt);
1529
- const yr = Ae(zt), kr = Ae($t), br = Ae(Rt), gr = Ae(Yt), Tr = Ae(Ut), wr = { name: "datePicker 日期时间选择器" };
1528
+ Tt(Gt);
1529
+ const yr = Ae(xt), kr = Ae(It), br = Ae(Rt), gr = Ae(jt), Tr = Ae(Xt), wr = { name: "datePicker 日期时间选择器" };
1530
1530
  export {
1531
1531
  yr as DasDatePicker,
1532
1532
  kr as DasDateRangePicker,