@das-fed/upf-ui 6.4.0-hot.13 → 6.4.0-hot.15

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 (215) hide show
  1. package/index.d.ts +1 -15
  2. package/index.js +30 -71
  3. package/package.json +18 -4
  4. package/packages/business-components/ai-panel/index.js +3 -2
  5. package/packages/business-components/ai-panel/src/dasAI/components/referenceContent/index.vue.d.ts +2 -2
  6. package/packages/business-components/app-container/index.js +3 -2
  7. package/packages/business-components/area-phone-select/index.js +3 -2
  8. package/packages/business-components/change-enterprises/index.d.ts +5 -5
  9. package/packages/business-components/change-enterprises/index.js +3 -2
  10. package/packages/business-components/change-enterprises/src/index.vue.d.ts +1 -1
  11. package/packages/business-components/change-pwd/index.js +3 -2
  12. package/packages/business-components/change-pwd/src/hooks/use-changePwd.d.ts +8 -8
  13. package/packages/business-components/currency-page/index.js +3 -2
  14. package/packages/business-components/device-panel/index.js +3 -2
  15. package/packages/business-components/device-panel/src/components/drag-resize/index.vue.d.ts +1 -1
  16. package/packages/business-components/echarts/index.js +3 -2
  17. package/packages/business-components/export-button/index.js +3 -2
  18. package/packages/business-components/import-button/index.js +3 -2
  19. package/packages/business-components/index.js +22 -22
  20. package/packages/business-components/layout-breadcrumb/index.js +3 -2
  21. package/packages/business-components/model-table-dialog/index.js +3 -2
  22. package/packages/business-components/payment/index.js +3 -2
  23. package/packages/business-components/process-configuration/index.js +116 -120
  24. package/packages/business-components/process-configuration/index.js.gz +0 -0
  25. package/packages/business-components/process-configuration/style.css +1 -1
  26. package/packages/business-components/process-configuration/style.css.gz +0 -0
  27. package/packages/business-components/process-form/index.js +3 -2
  28. package/packages/business-components/process-form/src/hooks/useForm.d.ts +8 -8
  29. package/packages/business-components/process-log/index.js +3 -2
  30. package/packages/business-components/process-search-form/hooks/useSearchOptions.d.ts +2 -2
  31. package/packages/business-components/process-table/index.js +3 -2
  32. package/packages/business-components/upload-file/index.js +3 -2
  33. package/packages/business-components/urgent-panel/index.js +3 -2
  34. package/packages/business-components/urgent-panel/src/components/drag-resize/index.vue.d.ts +1 -1
  35. package/packages/business-components/user-org-dialog/index.js +3 -2
  36. package/packages/business-components/video-dialog/index.js +3 -2
  37. package/packages/components/alert/index.js +3 -2
  38. package/packages/components/audio-video/index.js +3 -2
  39. package/packages/components/autocomplete/index.js +3 -2
  40. package/packages/components/breadcrumb/index.js +3 -2
  41. package/packages/components/button/index.js +237 -190
  42. package/packages/components/button/index.js.gz +0 -0
  43. package/packages/components/button/style.css +1 -1
  44. package/packages/components/button/style.css.gz +0 -0
  45. package/packages/components/calendar/index.js +3 -2
  46. package/packages/components/cascader/index.d.ts +2 -9
  47. package/packages/components/cascader/index.js +9 -8
  48. package/packages/components/cascader/index.js.gz +0 -0
  49. package/packages/components/cascader/src/Index.vue.d.ts +0 -1
  50. package/packages/components/cascader/style.css +1 -1
  51. package/packages/components/cascader/style.css.gz +0 -0
  52. package/packages/components/checkbox/index.d.ts +9 -9
  53. package/packages/components/checkbox/index.js +4 -3
  54. package/packages/components/checkbox/index.js.gz +0 -0
  55. package/packages/components/checkbox/src/Index.vue.d.ts +1 -1
  56. package/packages/components/checkbox/style.css +1 -1
  57. package/packages/components/checkbox/style.css.gz +0 -0
  58. package/packages/components/collapse-panel/index.js +3 -2
  59. package/packages/components/collapse-transition/index.js +3 -2
  60. package/packages/components/collaspe/index.js +3 -2
  61. package/packages/components/color-picker/index.js +3 -2
  62. package/packages/components/custom-search-item/index.js +3 -2
  63. package/packages/components/date-picker/index.js +866 -642
  64. package/packages/components/date-picker/index.js.gz +0 -0
  65. package/packages/components/date-picker/src/DatePicker.vue.d.ts +5 -5
  66. package/packages/components/date-picker/src/time-zone-shortcut.d.ts +8 -0
  67. package/packages/components/date-picker/src/type.d.ts +26 -5
  68. package/packages/components/date-picker/style.css +1 -1
  69. package/packages/components/date-picker/style.css.gz +0 -0
  70. package/packages/components/dialog/index.js +51 -50
  71. package/packages/components/dialog/index.js.gz +0 -0
  72. package/packages/components/dialog/src/use-micro-app-dialog/index.d.ts +1 -1
  73. package/packages/components/dialog/style.css +1 -1
  74. package/packages/components/dialog/style.css.gz +0 -0
  75. package/packages/components/dimple-layout/index.js +3 -2
  76. package/packages/components/drawer/index.js +3 -2
  77. package/packages/components/dropdown/index.js +57 -50
  78. package/packages/components/dropdown/index.js.gz +0 -0
  79. package/packages/components/dropdown/src/dropdownItem.vue.d.ts +2 -2
  80. package/packages/components/dropdown/style.css +1 -1
  81. package/packages/components/dropdown/style.css.gz +0 -0
  82. package/packages/components/edit-table/index.js +3 -2
  83. package/packages/components/empty/index.js +3 -2
  84. package/packages/components/form/index.d.ts +14 -14
  85. package/packages/components/form/index.js +53 -46
  86. package/packages/components/form/index.js.gz +0 -0
  87. package/packages/components/form/src/Index.vue.d.ts +2 -2
  88. package/packages/components/form/style.css +1 -1
  89. package/packages/components/form-item/index.js +610 -604
  90. package/packages/components/form-item/index.js.gz +0 -0
  91. package/packages/components/form-item/src/type.d.ts +3 -0
  92. package/packages/components/form-item/style.css +1 -1
  93. package/packages/components/form-item/style.css.gz +0 -0
  94. package/packages/components/icon/index.js +3 -2
  95. package/packages/components/icon/style.css +1 -1
  96. package/packages/components/image-upload/index.js +3 -2
  97. package/packages/components/image-viewer/index.js +3 -2
  98. package/packages/components/index.js +72 -72
  99. package/packages/components/input/index.js +1129 -1107
  100. package/packages/components/input/index.js.gz +0 -0
  101. package/packages/components/input/src/index.vue.d.ts +1435 -0
  102. package/packages/components/input/src/type.d.ts +1 -1
  103. package/packages/components/input/style.css +1 -1
  104. package/packages/components/input/style.css.gz +0 -0
  105. package/packages/components/input-dialog-select/index.js +4 -3
  106. package/packages/components/input-dialog-select/index.js.gz +0 -0
  107. package/packages/components/input-dialog-select/style.css +1 -1
  108. package/packages/components/input-dialog-select/style.css.gz +0 -0
  109. package/packages/components/input-number/index.js +6 -5
  110. package/packages/components/input-number/index.js.gz +0 -0
  111. package/packages/components/input-number/style.css +1 -1
  112. package/packages/components/input-number/style.css.gz +0 -0
  113. package/packages/components/live-player/index.js +3 -2
  114. package/packages/components/loading/index.js +178 -175
  115. package/packages/components/loading/index.js.gz +0 -0
  116. package/packages/components/map/index.js +3 -2
  117. package/packages/components/menu-aside/index.js +3 -2
  118. package/packages/components/menu-header/index.js +3 -2
  119. package/packages/components/message/index.js +3 -2
  120. package/packages/components/notification/index.js +3 -2
  121. package/packages/components/pagination/index.js +5 -4
  122. package/packages/components/pagination/index.js.gz +0 -0
  123. package/packages/components/pagination/style.css +1 -1
  124. package/packages/components/pagination/style.css.gz +0 -0
  125. package/packages/components/popover/index.js +3 -2
  126. package/packages/components/popup-mask/index.js +3 -2
  127. package/packages/components/preview/index.js +3 -2
  128. package/packages/components/progress/index.js +112 -117
  129. package/packages/components/progress/index.js.gz +0 -0
  130. package/packages/components/progress/style.css +1 -1
  131. package/packages/components/progress/style.css.gz +0 -0
  132. package/packages/components/radio/index.d.ts +9 -9
  133. package/packages/components/radio/index.js +3 -2
  134. package/packages/components/radio/src/Index.vue.d.ts +1 -1
  135. package/packages/components/radio/style.css +1 -1
  136. package/packages/components/radio/style.css.gz +0 -0
  137. package/packages/components/radio-tabs/index.js +3 -2
  138. package/packages/components/rich-editor/index.js +3 -2
  139. package/packages/components/scrollbar/index.js +3 -2
  140. package/packages/components/search/index.js +4 -3
  141. package/packages/components/search/index.js.gz +0 -0
  142. package/packages/components/search/style.css +1 -1
  143. package/packages/components/search/style.css.gz +0 -0
  144. package/packages/components/search-form/index.js +438 -434
  145. package/packages/components/search-form/index.js.gz +0 -0
  146. package/packages/components/search-form/src/InputSelect.vue.d.ts +2 -2
  147. package/packages/components/search-form/src/SearchDateRange.vue.d.ts +2 -2
  148. package/packages/components/search-form/src/hooks/searchFormItem.d.ts +1 -1
  149. package/packages/components/search-form/style.css +1 -1
  150. package/packages/components/search-form/style.css.gz +0 -0
  151. package/packages/components/select/index.d.ts +12 -0
  152. package/packages/components/select/index.js +511 -404
  153. package/packages/components/select/index.js.gz +0 -0
  154. package/packages/components/select/src/Select.vue.d.ts +4 -0
  155. package/packages/components/select/src/type.d.ts +10 -0
  156. package/packages/components/select/style.css +1 -1
  157. package/packages/components/select/style.css.gz +0 -0
  158. package/packages/components/select-input/index.js +4 -3
  159. package/packages/components/select-input/index.js.gz +0 -0
  160. package/packages/components/select-input/style.css +1 -1
  161. package/packages/components/select-input/style.css.gz +0 -0
  162. package/packages/components/select-list/index.js +3 -2
  163. package/packages/components/special-range-picker-month/index.js +3 -2
  164. package/packages/components/special-range-picker-year/index.js +3 -2
  165. package/packages/components/spin/index.js +3 -2
  166. package/packages/components/split-panel/index.js +4 -3
  167. package/packages/components/split-panel/index.js.gz +0 -0
  168. package/packages/components/split-panel/style.css +1 -1
  169. package/packages/components/split-panel/style.css.gz +0 -0
  170. package/packages/components/step/index.js +3 -2
  171. package/packages/components/steps/index.js +3 -2
  172. package/packages/components/switch/index.js +3 -2
  173. package/packages/components/table/index.js +3 -2
  174. package/packages/components/table/style.css +1 -1
  175. package/packages/components/table/style.css.gz +0 -0
  176. package/packages/components/tabs/index.js +3 -2
  177. package/packages/components/tag/index.d.ts +3 -3
  178. package/packages/components/tag/index.js +3 -2
  179. package/packages/components/tag/src/Index.vue.d.ts +1 -1
  180. package/packages/components/text-tooltip/index.d.ts +1 -0
  181. package/packages/components/text-tooltip/index.js +736 -729
  182. package/packages/components/text-tooltip/index.js.gz +0 -0
  183. package/packages/components/text-tooltip/src/type.d.ts +14 -2
  184. package/packages/components/time-line/index.js +3 -2
  185. package/packages/components/tooltip/index.d.ts +9 -9
  186. package/packages/components/tooltip/index.js +3 -2
  187. package/packages/components/tooltip/src/index.vue.d.ts +1 -1
  188. package/packages/components/tree/index.js +3 -2
  189. package/packages/components/tree-select/index.js +139 -138
  190. package/packages/components/tree-select/index.js.gz +0 -0
  191. package/packages/components/tree-select/src/App.vue.d.ts +28 -2
  192. package/packages/components/tree-select/src/hooks/use-tree-select.d.ts +28 -2
  193. package/packages/components/tree-select/style.css +1 -1
  194. package/packages/components/tree-select/style.css.gz +0 -0
  195. package/packages/components/tree-table/index.js +3 -2
  196. package/packages/components/tree-v2/index.js +2692 -2670
  197. package/packages/components/tree-v2/index.js.gz +0 -0
  198. package/packages/components/tree-v2/src/App.vue.d.ts +4081 -0
  199. package/packages/components/tree-v2/style.css +2 -2
  200. package/packages/components/tree-v2/style.css.gz +0 -0
  201. package/packages/components/upload/index.js +3 -2
  202. package/packages/components/virtual-tree/index.js +3 -2
  203. package/packages/components/virtual-tree/src/App.vue.d.ts +3977 -0
  204. package/packages/components/virtual-tree/src/type.d.ts +43 -0
  205. package/packages/components/watermark/index.js +3 -2
  206. package/packages/global/style/index.js +1 -1
  207. package/packages/global/theme/index.d.ts +20 -0
  208. package/packages/global/theme/index.js +19 -2
  209. package/packages/icons/index.js +249 -249
  210. package/presets/theme-cjb.css +24 -14
  211. package/presets/theme-default.css +24 -14
  212. package/presets/theme-dkh.css +26 -16
  213. package/presets/theme-ssl.css +31 -21
  214. package/release-meta.json +13 -0
  215. package/theme-default.css +24 -14
@@ -1,36 +1,58 @@
1
- import '@das-fed/upf-ui/packages/components/date-picker/style.css';
2
- import { withInstall as ce } from "@das-fed/upf-utils/with-install/index";
3
- import { defineComponent as ve, useCssVars as fe, ref as u, watch as j, computed as s, openBlock as v, createElementBlock as z, normalizeClass as ke, unref as o, normalizeStyle as X, createVNode as S, withCtx as c, withDirectives as me, createBlock as H, mergeProps as se, isRef as Ce, createSlots as xe, renderSlot as $, normalizeProps as ge, guardReactiveProps as we, createElementVNode as E, toDisplayString as O, Fragment as ne, createCommentVNode as P, nextTick as re, useAttrs as Re, createTextVNode as Le, renderList as Pe, withModifiers as Be } from "vue";
4
- import { ConfigProvider as Te, DatePicker as Ne, RangePicker as We, Dropdown as Ze, Menu as Ae, MenuItem as Fe, TimePicker as Oe, TimeRangePicker as qe } from "ant-design-vue";
5
- import { DasAutoRegisterIcon as Me, DasIcon as le } from "@das-fed/upf-ui/packages/components/icon/index";
6
- import { DasTooltip as ze } from "@das-fed/upf-ui/packages/components/tooltip/index";
7
- import { DasErrorOverlayModel as he } from "@das-fed/upf-ui/packages/components/error-overlay-model/index";
8
- import { useModelValue as G } from "@das-fed/upf-utils/vue";
9
- import { vHoverInside as ye } from "@das-fed/upf-utils/directive/hoverInside/index";
10
- import { useZIndex as Ie } from "@das-fed/upf-utils/hooks/popup-manager/use-zindex";
11
- import { currentLang as D, loadLocale as Se, t as ie, setI18nRule as Ue } from "@das-fed/upf-web/packages/i18n/index";
12
- import { calcTextWidth as $e } from "@das-fed/upf-utils/common-tools";
1
+ import { withInstall as xe } from "@das-fed/upf-utils/with-install/index";
2
+ import { defineComponent as Ee, useCssVars as Be, ref as n, watch as ce, computed as r, useAttrs as Re, onBeforeUnmount as je, openBlock as y, createElementBlock as M, normalizeClass as Ie, unref as d, normalizeStyle as he, createVNode as $, withCtx as h, withDirectives as Ne, createBlock as ve, mergeProps as Fe, createSlots as pt, renderSlot as P, normalizeProps as qe, guardReactiveProps as Ke, createElementVNode as J, toDisplayString as ae, Fragment as Ve, createCommentVNode as H, nextTick as Te, createTextVNode as at, renderList as lt, withModifiers as vt } from "vue";
3
+ import { ConfigProvider as Ue, 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";
4
+ import { DasAutoRegisterIcon as ot, DasIcon as Se } from "@das-fed/upf-ui/packages/components/icon/index";
5
+ import { DasTooltip as He } from "@das-fed/upf-ui/packages/components/tooltip/index";
6
+ import { DasErrorOverlayModel as We } from "@das-fed/upf-ui/packages/components/error-overlay-model/index";
7
+ import { useModelValue as ye } from "@das-fed/upf-utils/vue";
8
+ import { vHoverInside as _e } 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 $e, 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 L, getTimeZoneDayjs as Le, resolvePickerTimeZone as Ae, toTimeZonePickerValue as Pe, fromTimeZonePickerValue as Qe } 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 { DasDatePicker as Ve } from "@das-fed/upf-ui/packages/components/date-picker/index";
16
- import Ee from "dayjs";
15
+ import Me from "dayjs";
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";
19
- import { DasIconDengdai as _e } from "@das-fed/upf-ui/packages/icons/dengdai/index";
20
- import "ant-design-vue/es/time-picker/style/css";
21
- const je = { class: "ant-picker-cell-inner" }, Ke = {
19
+ import { DasIconDengdai as wt } from "@das-fed/upf-ui/packages/icons/dengdai/index";
20
+ import "ant-design-vue/es/time-picker/style/css"
21
+ import '@das-fed/upf-ui/packages/components/date-picker/style.css';
22
+ ;
23
+ const ut = {
24
+ now: ".ant-picker-now-btn",
25
+ today: ".ant-picker-today-btn"
26
+ }, et = (T) => {
27
+ const S = T.target;
28
+ return S instanceof Element ? S.closest(ut.now) ? "now" : S.closest(ut.today) ? "today" : "" : "";
29
+ }, it = (T, S) => {
30
+ if (!S || !L(T)) return null;
31
+ const l = Le()().tz(Ae(T));
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 = {
22
37
  key: 0,
23
38
  class: "das-date-picker-error-label-content"
24
- }, He = {
39
+ }, St = {
25
40
  name: "DasDatePicker"
26
- }, Ye = /* @__PURE__ */ ve({
27
- ...He,
41
+ }, Ct = /* @__PURE__ */ Ee({
42
+ ...St,
28
43
  props: {
44
+ timeZoneMode: {},
45
+ timeZone: {},
46
+ useClientTimeZone: { type: Boolean },
47
+ timeZoneValueFormat: {},
29
48
  modelValue: {},
30
49
  borderType: { default: "bordered" },
31
50
  size: { default: "middle" },
32
51
  width: { default: "230px" },
33
52
  height: {},
53
+ format: {},
54
+ valueFormat: {},
55
+ showTime: {},
34
56
  showToday: { type: Boolean, default: !1 },
35
57
  disabled: { type: Boolean, default: !1 },
36
58
  isView: { type: Boolean, default: !1 },
@@ -46,187 +68,254 @@ const je = { class: "ant-picker-cell-inner" }, Ke = {
46
68
  formSize: {}
47
69
  },
48
70
  emits: ["change", "openChange", "update:model-value", "update:error"],
49
- setup(q, { expose: K, emit: d }) {
50
- fe((r) => ({
51
- "90b71e56": J.value,
52
- "231aaff8": U.value
71
+ setup(T, { expose: S, emit: l }) {
72
+ Be((e) => ({
73
+ "6cf6492a": N.value,
74
+ "4d479822": we.value
53
75
  }));
54
- const l = q, f = d;
55
- Me({
76
+ const t = T, k = l;
77
+ ot({
56
78
  right: import("@das-fed/upf-ui/packages/icons/right"),
57
79
  left: import("@das-fed/upf-ui/packages/icons/left"),
58
80
  "double-arrow-left": import("@das-fed/upf-ui/packages/icons/double-arrow-left"),
59
81
  "double-arrow-right": import("@das-fed/upf-ui/packages/icons/double-arrow-right"),
60
82
  riqixuanze: import("@das-fed/upf-ui/packages/icons/riqixuanze")
61
83
  });
62
- const L = u(void 0);
63
- j(D, async () => {
64
- L.value = await Se(D.value);
84
+ const O = n(void 0);
85
+ ce(_, async () => {
86
+ O.value = await Ge(_.value);
65
87
  }, { immediate: !0 });
66
- const m = s(() => `date-picker-${D.value}`), p = u(null), B = u(null), g = s(() => l.size === "table" || l.size === "middle" || l.size === "default" ? "middle" : l.size), y = G(l, "modelValue"), N = G(l, "error"), V = s(() => l.isView ? l.noSetDefaultVal ? "" : "-" : l.placeholder || ie("请选择日期")), W = s(() => ({
67
- width: l.width
68
- })), J = s(() => l.width ? l.width : "230px"), Z = s(() => l.formSize), U = s(() => l.height ? l.height : Z.value ? {
88
+ const A = r(() => `date-picker-${_.value}`), v = n(null), X = n(null), f = n(""), V = n(!1), Z = Re(), x = r(() => t.size === "table" || t.size === "middle" || t.size === "default" ? "middle" : t.size), Y = ye(t, "modelValue"), G = ye(t, "error"), w = r(() => String(Z.picker ?? "date")), R = r(() => t.format ?? Z.format), I = r(() => t.showTime ?? Z.showTime ?? Z["show-time"]), j = r(() => t.valueFormat ?? Z.valueFormat ?? Z["value-format"]), B = r(() => ({
89
+ timeZoneMode: t.timeZoneMode,
90
+ timeZone: t.timeZone,
91
+ useClientTimeZone: t.useClientTimeZone,
92
+ // timeZoneValueFormat 是最高优先级;未传时兼容旧业务继续使用 valueFormat 控制输出。
93
+ timeZoneValueFormat: t.timeZoneValueFormat ?? j.value
94
+ })), q = r(() => L(B.value)), fe = r(() => {
95
+ if (!q.value) return Z;
96
+ const { valueFormat: e, "value-format": i, ...s } = Z;
97
+ return s;
98
+ }), Q = r(() => Pe(Y.value, B.value)), le = r(() => q.value ? void 0 : j.value), ne = r(() => q.value ? "das-ui-time-zone-picker-dropdown" : ""), ue = r(() => !I.value), ee = r(() => q.value ? Le()().tz(Ae(B.value)).format("YYYY-MM-DD") : ""), p = (e) => {
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),
103
+ isDayjs: !0
104
+ } : e;
105
+ }, m = (e, i = {}) => {
106
+ typeof window > "u" || window.__UPF_DATE_PICKER_TZ_DEBUG__;
107
+ }, E = (e, i) => {
108
+ if (!ue.value || !q.value) return e;
109
+ if (w.value === "date" && typeof i == "string" && i)
110
+ return Le()(i).tz(Ae(B.value), !0);
111
+ if (Me.isDayjs(e)) return e.startOf("day");
112
+ if (e == null || e === "") return e;
113
+ const s = Me(e);
114
+ return s.isValid() ? s.startOf("day") : e;
115
+ }, ie = (e) => {
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 = r(() => t.isView ? t.noSetDefaultVal ? "" : "-" : t.placeholder || $e("请选择日期")), C = r(() => ({
119
+ width: t.width
120
+ })), N = r(() => t.width ? t.width : "230px"), se = r(() => t.formSize), we = r(() => t.height ? t.height : se.value ? {
69
121
  small: "24px",
70
122
  default: "32px",
71
123
  large: "40px"
72
- }[Z.value] : "auto"), x = u(3e3), A = s(() => ({
73
- "z-index": x.value
74
- })), C = u(!1), Y = u({
124
+ }[se.value] : "auto"), K = n(3e3), Ze = r(() => ({
125
+ "z-index": K.value
126
+ })), F = n(!1), de = n({
75
127
  display: "block",
76
128
  color: "var(--upf-color-error)",
77
129
  "white-space": "break-spaces"
78
- }), h = u(!1), M = u(""), _ = s(() => y.value ? M.value : V.value), Q = () => {
79
- const r = l.size === "table" ? 12 : 14;
80
- return $e(V.value, r);
81
- }, a = () => {
82
- var t;
83
- const r = (t = p.value) == null ? void 0 : t.$el.querySelector(".ant-picker-input>input");
84
- return y.value ? r == null ? void 0 : r.scrollWidth : Q();
85
- }, n = () => {
86
- var e;
87
- const r = (e = p.value) == null ? void 0 : e.$el.querySelector(".ant-picker-input>input");
88
- return r ? (M.value = r.getAttribute("value"), r.removeAttribute("title"), (r == null ? void 0 : r.offsetWidth) ?? 0) : 0;
89
- }, b = u(0), I = u(0);
90
- j(() => [V.value, y.value], () => {
91
- re(() => {
92
- b.value = n(), I.value = a(), (b.value === I.value || I.value - b.value < 1) && (h.value = !1);
130
+ }), z = n(!1), D = n(""), ke = r(() => Q.value ? D.value : pe.value), ze = () => {
131
+ const e = t.size === "table" ? 12 : 14;
132
+ return Je(pe.value, e);
133
+ }, be = () => {
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 = () => {
138
+ var s;
139
+ const e = (s = v.value) == null ? void 0 : s.$el.querySelector(".ant-picker-input>input");
140
+ return e ? (D.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], () => {
143
+ Te(() => {
144
+ U.value = De(), me.value = be(), (U.value === me.value || me.value - U.value < 1) && (z.value = !1);
93
145
  });
94
146
  });
95
- const ee = u();
96
- j(
147
+ const a = n();
148
+ ce(
97
149
  () => {
98
- var r;
99
- return (r = B.value) == null ? void 0 : r.$tooltipRef.popperRef.contentRef;
150
+ var e;
151
+ return (e = X.value) == null ? void 0 : e.$tooltipRef.popperRef.contentRef;
100
152
  },
101
- (r) => {
102
- r && (r.addEventListener("mouseenter", function() {
103
- h.value = !0, ee.value && clearTimeout(ee.value);
104
- }), r.addEventListener("mouseleave", function() {
105
- ee.value = setTimeout(() => {
106
- h.value = !1;
153
+ (e) => {
154
+ e && (e.addEventListener("mouseenter", function() {
155
+ z.value = !0, a.value && clearTimeout(a.value);
156
+ }), e.addEventListener("mouseleave", function() {
157
+ a.value = setTimeout(() => {
158
+ z.value = !1;
107
159
  }, 200);
108
160
  }));
109
161
  }
110
162
  );
111
- const w = (r) => {
112
- r && (x.value = Ie().nextZIndex()), f("openChange", r), D.value === "en-US" && re(() => {
113
- const t = document == null ? void 0 : document.querySelectorAll(".ant-picker-ok > .ant-btn > span");
114
- for (let e of t)
115
- e && (e.innerText = "OK");
163
+ const c = (e) => {
164
+ e && (K.value = Xe().nextZIndex()), e ? W() : te(), k("openChange", e), _.value === "en-US" && Te(() => {
165
+ const i = document == null ? void 0 : document.querySelectorAll(".ant-picker-ok > .ant-btn > span");
166
+ for (let s of i)
167
+ s && (s.innerText = "OK");
116
168
  });
169
+ }, b = (e) => {
170
+ L(B.value) && (f.value = et(e));
171
+ }, W = () => {
172
+ f.value = "", V.value = Ce(
173
+ b,
174
+ L(B.value),
175
+ V.value
176
+ );
117
177
  }, te = () => {
118
- b.value = n(), I.value = a(), b.value === I.value || I.value - b.value < 1 ? h.value = !1 : (h.value = !0, ee.value && clearTimeout(ee.value)), C.value = !0;
119
- }, ae = () => {
120
- ee.value = setTimeout(() => {
121
- h.value = !1;
122
- }, 200), C.value = !1;
123
- }, oe = (r, t) => {
124
- r ? te() : ae();
125
- }, ue = (r, t) => {
126
- N.value = !1, f("update:error", N.value), f("update:model-value", r), f("change", r, t);
178
+ V.value = Ce(b, !1, V.value);
179
+ };
180
+ je(() => {
181
+ te(), f.value = "";
182
+ });
183
+ const oe = () => {
184
+ U.value = De(), me.value = be(), U.value === me.value || me.value - U.value < 1 ? z.value = !1 : (z.value = !0, a.value && clearTimeout(a.value)), F.value = !0;
185
+ }, tt = () => {
186
+ a.value = setTimeout(() => {
187
+ z.value = !1;
188
+ }, 200), F.value = !1;
189
+ }, Ye = (e, i) => {
190
+ e ? oe() : tt();
191
+ }, rt = (e, i) => {
192
+ G.value = !1, k("update:error", G.value);
193
+ const s = st(e, B.value, f.value);
194
+ f.value = "";
195
+ const g = E(s, i);
196
+ m("change:before-format", {
197
+ rawDateType: typeof e,
198
+ rawDateIsDayjs: Me.isDayjs(e),
199
+ rawDate: p(e),
200
+ rawDateString: i,
201
+ shortcutDateType: typeof s,
202
+ shortcutDateIsDayjs: Me.isDayjs(s),
203
+ shortcutDate: p(s),
204
+ normalizedDate: p(g)
205
+ });
206
+ const re = q.value ? Qe(g, B.value) : g, ge = q.value && re != null ? String(re) : i;
207
+ m("change:emit", {
208
+ nextValue: p(re),
209
+ nextDateString: ge
210
+ }), k("update:model-value", re), k("change", re, ge);
127
211
  };
128
- return K({
129
- $datePicker: p,
212
+ return S({
213
+ $datePicker: v,
130
214
  blur: () => {
131
- p.value.blur();
215
+ v.value.blur();
132
216
  },
133
217
  focus: () => {
134
- p.value.focus();
218
+ v.value.focus();
135
219
  }
136
- }), (r, t) => (v(), z("div", {
137
- class: ke(["das-ui-date-picker", [r.borderType, l.isView ? "readonly" : "", o(N) ? "is-error" : ""]]),
138
- style: X(W.value)
220
+ }), (e, i) => (y(), M("div", {
221
+ class: Ie(["das-ui-date-picker", [e.borderType, t.isView ? "readonly" : "", d(G) ? "is-error" : ""]]),
222
+ style: he(C.value)
139
223
  }, [
140
- S(o(Te), { locale: L.value }, {
141
- default: c(() => [
142
- S(o(ze), {
224
+ $(d(Ue), { locale: O.value }, {
225
+ default: h(() => [
226
+ $(d(He), {
143
227
  ref_key: "inputTooltipRef",
144
- ref: B,
228
+ ref: X,
145
229
  placement: "top",
146
230
  trigger: "hover",
147
- visible: h.value,
148
- disabled: !r.isTooltip,
149
- content: _.value
231
+ visible: z.value,
232
+ disabled: !e.isTooltip,
233
+ content: ke.value
150
234
  }, {
151
- default: c(() => {
152
- var e;
235
+ default: h(() => {
236
+ var s;
153
237
  return [
154
- me((v(), H(o(Ne), se({
155
- key: m.value,
238
+ Ne((y(), ve(d(ft), Fe({
239
+ key: A.value,
156
240
  ref_key: "$datePicker",
157
- ref: p
158
- }, r.$attrs, {
159
- value: o(y),
160
- "onUpdate:value": t[0] || (t[0] = (i) => Ce(y) ? y.value = i : null),
161
- size: g.value,
162
- locale: (e = L.value) == null ? void 0 : e.DatePicker,
163
- dropdownClassName: "das-ui-date-picker-dropdown " + r.dropdownClassName,
164
- placeholder: V.value,
165
- showToday: r.showToday,
166
- bordered: r.borderType === "bordered",
167
- disabled: l.disabled || l.isView,
168
- style: W.value,
169
- popupStyle: A.value,
170
- onChange: ue,
171
- onOpenChange: w
172
- }), xe({
173
- dateRender: c((i) => [
174
- $(r.$slots, "dateRender", ge(we(i)), () => [
175
- E("div", je, O(i.current.date()), 1)
241
+ ref: v
242
+ }, fe.value, {
243
+ value: Q.value,
244
+ format: R.value,
245
+ valueFormat: le.value,
246
+ size: x.value,
247
+ locale: (s = O.value) == null ? void 0 : s.DatePicker,
248
+ dropdownClassName: "das-ui-date-picker-dropdown " + ne.value + " " + e.dropdownClassName,
249
+ placeholder: pe.value,
250
+ showToday: e.showToday,
251
+ showTime: I.value,
252
+ bordered: e.borderType === "bordered",
253
+ disabled: t.disabled || t.isView,
254
+ style: C.value,
255
+ popupStyle: Ze.value,
256
+ onChange: rt,
257
+ onOpenChange: c
258
+ }), pt({
259
+ dateRender: h((g) => [
260
+ P(e.$slots, "dateRender", qe(Ke(g)), () => [
261
+ J("div", {
262
+ class: Ie(["ant-picker-cell-inner", { "das-time-zone-picker-cell-today": ie(g.current) }])
263
+ }, ae(g.current.date()), 3)
176
264
  ], !0)
177
265
  ]),
178
- nextIcon: c(() => [
179
- $(r.$slots, "nextIcon", {}, () => [
180
- S(o(le), {
266
+ nextIcon: h(() => [
267
+ P(e.$slots, "nextIcon", {}, () => [
268
+ $(d(Se), {
181
269
  icon: "right",
182
270
  size: "medium"
183
271
  })
184
272
  ], !0)
185
273
  ]),
186
- prevIcon: c(() => [
187
- $(r.$slots, "prevIcon", {}, () => [
188
- S(o(le), {
274
+ prevIcon: h(() => [
275
+ P(e.$slots, "prevIcon", {}, () => [
276
+ $(d(Se), {
189
277
  icon: "left",
190
278
  size: "medium"
191
279
  })
192
280
  ], !0)
193
281
  ]),
194
- superNextIcon: c(() => [
195
- $(r.$slots, "superNextIcon", {}, () => [
196
- S(o(le), {
282
+ superNextIcon: h(() => [
283
+ P(e.$slots, "superNextIcon", {}, () => [
284
+ $(d(Se), {
197
285
  icon: "double-arrow-right",
198
286
  size: "medium"
199
287
  })
200
288
  ], !0)
201
289
  ]),
202
- superPrevIcon: c(() => [
203
- $(r.$slots, "superPrevIcon", {}, () => [
204
- S(o(le), {
290
+ superPrevIcon: h(() => [
291
+ P(e.$slots, "superPrevIcon", {}, () => [
292
+ $(d(Se), {
205
293
  icon: "double-arrow-left",
206
294
  size: "medium"
207
295
  })
208
296
  ], !0)
209
297
  ]),
210
- suffixIcon: c(() => [
211
- $(r.$slots, "suffixIcon", {}, () => [
212
- S(o(le), {
298
+ suffixIcon: h(() => [
299
+ P(e.$slots, "suffixIcon", {}, () => [
300
+ $(d(Se), {
213
301
  class: "das-suffix-icon",
214
302
  icon: "riqixuanze",
215
- size: "medium"
303
+ size: "medium",
304
+ "icon-color": "#666666"
216
305
  })
217
306
  ], !0)
218
307
  ]),
219
308
  _: 2
220
309
  }, [
221
- r.$slots.renderExtraFooter ? {
310
+ e.$slots.renderExtraFooter ? {
222
311
  name: "renderExtraFooter",
223
- fn: c(() => [
224
- $(r.$slots, "renderExtraFooter", {}, void 0, !0)
312
+ fn: h(() => [
313
+ P(e.$slots, "renderExtraFooter", {}, void 0, !0)
225
314
  ]),
226
315
  key: "0"
227
316
  } : void 0
228
- ]), 1040, ["value", "size", "locale", "dropdownClassName", "placeholder", "showToday", "bordered", "disabled", "style", "popupStyle"])), [
229
- [o(ye), oe]
317
+ ]), 1040, ["value", "format", "valueFormat", "size", "locale", "dropdownClassName", "placeholder", "showToday", "showTime", "bordered", "disabled", "style", "popupStyle"])), [
318
+ [d(_e), Ye]
230
319
  ])
231
320
  ];
232
321
  }),
@@ -235,37 +324,41 @@ const je = { class: "ant-picker-cell-inner" }, Ke = {
235
324
  ]),
236
325
  _: 3
237
326
  }, 8, ["locale"]),
238
- r.error && r.errorLabel ? (v(), z(ne, { key: 0 }, [
239
- r.errorMode === "default" ? (v(), z("div", Ke, [
240
- E("span", {
241
- style: X(Y.value)
242
- }, O(r.errorLabel), 5)
243
- ])) : P("", !0),
244
- r.errorMode === "overlay" && C.value ? (v(), H(o(he), {
327
+ e.error && e.errorLabel ? (y(), M(Ve, { key: 0 }, [
328
+ e.errorMode === "default" ? (y(), M("div", Zt, [
329
+ J("span", {
330
+ style: he(de.value)
331
+ }, ae(e.errorLabel), 5)
332
+ ])) : H("", !0),
333
+ e.errorMode === "overlay" && F.value ? (y(), ve(d(We), {
245
334
  key: 1,
246
- errorLabel: r.errorLabel,
335
+ errorLabel: e.errorLabel,
247
336
  getEl: () => {
248
- var e;
249
- return (e = p.value) == null ? void 0 : e.$el;
337
+ var s;
338
+ return (s = v.value) == null ? void 0 : s.$el;
250
339
  },
251
- errorModelZIndex: r.errorModelZIndex
252
- }, null, 8, ["errorLabel", "getEl", "errorModelZIndex"])) : P("", !0)
253
- ], 64)) : P("", !0)
340
+ errorModelZIndex: e.errorModelZIndex
341
+ }, null, 8, ["errorLabel", "getEl", "errorModelZIndex"])) : H("", !0)
342
+ ], 64)) : H("", !0)
254
343
  ], 6));
255
344
  }
256
- }), be = (q, K) => {
257
- const d = q.__vccOpts || q;
258
- for (const [l, f] of K)
259
- d[l] = f;
260
- return d;
261
- }, Xe = /* @__PURE__ */ be(Ye, [["__scopeId", "data-v-fc46c818"]]), Ge = { class: "date-range-separator" }, Je = {
345
+ }), Oe = (T, S) => {
346
+ const l = T.__vccOpts || T;
347
+ for (const [t, k] of S)
348
+ l[t] = k;
349
+ return l;
350
+ }, zt = /* @__PURE__ */ Oe(Ct, [["__scopeId", "data-v-4d258f15"]]), Dt = { class: "date-range-separator" }, Vt = {
262
351
  key: 0,
263
352
  class: "das-date-picker-error-label-content"
264
- }, Qe = {
353
+ }, Mt = {
265
354
  name: "DasDateRangePicker"
266
- }, er = /* @__PURE__ */ ve({
267
- ...Qe,
355
+ }, It = /* @__PURE__ */ Ee({
356
+ ...Mt,
268
357
  props: {
358
+ timeZoneMode: {},
359
+ timeZone: {},
360
+ useClientTimeZone: { type: Boolean },
361
+ timeZoneValueFormat: {},
269
362
  modelValue: {},
270
363
  borderType: { default: "bordered" },
271
364
  size: {},
@@ -290,103 +383,127 @@ const je = { class: "ant-picker-cell-inner" }, Ke = {
290
383
  formSize: {}
291
384
  },
292
385
  emits: ["change", "openChange", "update:model-value", "update:error"],
293
- setup(q, { emit: K }) {
294
- fe((a) => ({
295
- "11f9697a": g.value,
296
- "0db101da": B.value
386
+ setup(T, { emit: S }) {
387
+ Be((p) => ({
388
+ "67b14d92": Z.value,
389
+ d863b894: V.value
297
390
  }));
298
- const d = q, l = K, f = Re(), L = s(() => d.placeholder ?? [ie("开始日期"), ie("结束日期")]), m = G(d, "modelValue"), p = G(d, "error"), B = s(() => d.width ? d.width : "230px"), g = s(() => d.height ? d.height : "auto"), y = s(() => ({ ...f, ...d.prevAttrs })), N = s(() => ({ ...f, ...d.nextAttrs })), V = u(), W = u(!1), J = u({
391
+ const l = T, t = S, k = Re(), O = r(() => l.placeholder ?? [$e("开始日期"), $e("结束日期")]), A = ye(l, "modelValue"), v = ye(l, "error"), X = r(() => ({
392
+ timeZoneMode: l.timeZoneMode,
393
+ timeZone: l.timeZone,
394
+ useClientTimeZone: l.useClientTimeZone,
395
+ // 与内部 DatePicker 保持同一优先级:timeZoneValueFormat 优先,未传回退 valueFormat。
396
+ timeZoneValueFormat: l.timeZoneValueFormat ?? l.valueFormat
397
+ })), f = r(() => {
398
+ var p, m;
399
+ return L(X.value) ? [
400
+ Pe((p = A.value) == null ? void 0 : p[0], X.value),
401
+ Pe((m = A.value) == null ? void 0 : m[1], X.value)
402
+ ] : A.value;
403
+ }), V = r(() => l.width ? l.width : "230px"), Z = r(() => l.height ? l.height : "auto"), x = r(() => ({ ...k, ...l.prevAttrs })), Y = r(() => ({ ...k, ...l.nextAttrs })), G = n(), w = n(!1), R = n({
299
404
  display: "block",
300
405
  color: "var(--upf-color-error)",
301
406
  "white-space": "break-spaces"
302
- }), Z = () => {
303
- W.value = !0;
304
- }, U = () => {
305
- W.value = !1;
306
- }, x = (a, n) => {
307
- a ? Z() : U();
308
- }, A = (a, n) => {
309
- l("openChange", a, n), D.value === "en-US" && re(() => {
310
- const b = document == null ? void 0 : document.querySelectorAll(".ant-picker-ok > .ant-btn > span");
311
- for (let I of b)
312
- I && (I.innerText = "OK");
407
+ }), I = () => {
408
+ w.value = !0;
409
+ }, j = () => {
410
+ w.value = !1;
411
+ }, B = (p, m) => {
412
+ p ? I() : j();
413
+ }, q = (p, m) => {
414
+ t("openChange", p, m), _.value === "en-US" && Te(() => {
415
+ const E = document == null ? void 0 : document.querySelectorAll(".ant-picker-ok > .ant-btn > span");
416
+ for (let ie of E)
417
+ ie && (ie.innerText = "OK");
313
418
  });
314
- }, C = s(() => {
315
- let a = d.valueFormat ? d.valueFormat : d.format;
419
+ }, fe = r(() => {
420
+ let p = l.valueFormat ? l.valueFormat : l.format;
316
421
  return [
317
- m.value[0] ? Ee.isDayjs(m.value[0]) ? m.value[0].format(a) : m.value[0] : "",
318
- m.value[1] ? Ee.isDayjs(m.value[1]) ? m.value[1].format(a) : m.value[1] : ""
422
+ f.value[0] ? Me.isDayjs(f.value[0]) ? f.value[0].format(p) : f.value[0] : "",
423
+ f.value[1] ? Me.isDayjs(f.value[1]) ? f.value[1].format(p) : f.value[1] : ""
319
424
  ];
320
- }), Y = (a) => d.disabledDate && d.disabledDate(a) === !0 ? !0 : !!(m.value[1] && a.isAfter(m.value[1], d.disabledUnit || void 0)), h = (a) => d.disabledDate && d.disabledDate(a) === !0 ? !0 : !!(m.value[0] && a.isBefore(m.value[0], d.disabledUnit || void 0)), M = s(() => ({
321
- width: d.width
322
- })), _ = (a, n) => {
323
- p.value = !1, l("update:model-value", m.value), l("change", m.value, C.value);
324
- }, Q = (a, n) => {
325
- p.value = !1, l("update:model-value", m.value), l("change", m.value, C.value);
425
+ }), 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 = r(() => ({
426
+ width: l.width
427
+ })), ue = (p, m) => {
428
+ v.value = !1, t("update:model-value", A.value), t("change", A.value, fe.value);
429
+ }, ee = (p, m) => {
430
+ v.value = !1, t("update:model-value", A.value), t("change", A.value, fe.value);
326
431
  };
327
- return (a, n) => me((v(), z("div", {
432
+ return (p, m) => Ne((y(), M("div", {
328
433
  class: "das-ui-date-range-picker",
329
- style: X(M.value),
434
+ style: he(ne.value),
330
435
  ref_key: "$dateRange",
331
- ref: V
436
+ ref: G
332
437
  }, [
333
- S(o(Ve), se(y.value, {
334
- modelValue: o(m)[0],
335
- "onUpdate:modelValue": n[0] || (n[0] = (b) => o(m)[0] = b),
336
- size: d.size,
337
- valueFormat: d.valueFormat,
338
- borderType: d.borderType,
339
- error: o(p),
340
- width: d.itemWidth,
341
- "disabled-date": Y,
342
- placeholder: L.value[0],
343
- onChange: _,
344
- onOpenChange: n[1] || (n[1] = (b) => A(b, "before"))
345
- }), null, 16, ["modelValue", "size", "valueFormat", "borderType", "error", "width", "placeholder"]),
346
- $(a.$slots, "separator", {}, () => [
347
- E("span", Ge, O(d.separator), 1)
438
+ $(d(nt), Fe(x.value, {
439
+ modelValue: d(A)[0],
440
+ "onUpdate:modelValue": m[0] || (m[0] = (E) => d(A)[0] = E),
441
+ size: l.size,
442
+ valueFormat: l.valueFormat,
443
+ timeZoneMode: l.timeZoneMode,
444
+ timeZone: l.timeZone,
445
+ useClientTimeZone: l.useClientTimeZone,
446
+ timeZoneValueFormat: l.timeZoneValueFormat,
447
+ borderType: l.borderType,
448
+ error: d(v),
449
+ width: l.itemWidth,
450
+ "disabled-date": Q,
451
+ placeholder: O.value[0],
452
+ onChange: ue,
453
+ onOpenChange: m[1] || (m[1] = (E) => q(E, "before"))
454
+ }), null, 16, ["modelValue", "size", "valueFormat", "timeZoneMode", "timeZone", "useClientTimeZone", "timeZoneValueFormat", "borderType", "error", "width", "placeholder"]),
455
+ P(p.$slots, "separator", {}, () => [
456
+ J("span", Dt, ae(l.separator), 1)
348
457
  ], !0),
349
- S(o(Ve), se(N.value, {
350
- modelValue: o(m)[1],
351
- "onUpdate:modelValue": n[2] || (n[2] = (b) => o(m)[1] = b),
352
- size: d.size,
353
- valueFormat: d.valueFormat,
354
- borderType: d.borderType,
355
- error: o(p),
356
- width: d.itemWidth,
357
- "disabled-date": h,
358
- placeholder: L.value[1],
359
- onChange: Q,
360
- onOpenChange: n[3] || (n[3] = (b) => A(b, "after"))
361
- }), null, 16, ["modelValue", "size", "valueFormat", "borderType", "error", "width", "placeholder"]),
362
- a.error && a.errorLabel ? (v(), z(ne, { key: 0 }, [
363
- a.errorMode === "default" ? (v(), z("div", Je, [
364
- E("span", {
365
- style: X(J.value)
366
- }, O(a.errorLabel), 5)
367
- ])) : P("", !0),
368
- a.errorMode === "overlay" && W.value ? (v(), H(o(he), {
458
+ $(d(nt), Fe(Y.value, {
459
+ modelValue: d(A)[1],
460
+ "onUpdate:modelValue": m[2] || (m[2] = (E) => d(A)[1] = E),
461
+ size: l.size,
462
+ valueFormat: l.valueFormat,
463
+ timeZoneMode: l.timeZoneMode,
464
+ timeZone: l.timeZone,
465
+ useClientTimeZone: l.useClientTimeZone,
466
+ timeZoneValueFormat: l.timeZoneValueFormat,
467
+ borderType: l.borderType,
468
+ error: d(v),
469
+ width: l.itemWidth,
470
+ "disabled-date": le,
471
+ placeholder: O.value[1],
472
+ onChange: ee,
473
+ onOpenChange: m[3] || (m[3] = (E) => q(E, "after"))
474
+ }), null, 16, ["modelValue", "size", "valueFormat", "timeZoneMode", "timeZone", "useClientTimeZone", "timeZoneValueFormat", "borderType", "error", "width", "placeholder"]),
475
+ p.error && p.errorLabel ? (y(), M(Ve, { key: 0 }, [
476
+ p.errorMode === "default" ? (y(), M("div", Vt, [
477
+ J("span", {
478
+ style: he(R.value)
479
+ }, ae(p.errorLabel), 5)
480
+ ])) : H("", !0),
481
+ p.errorMode === "overlay" && w.value ? (y(), ve(d(We), {
369
482
  key: 1,
370
- errorLabel: a.errorLabel,
371
- getEl: () => V.value,
372
- errorModelZIndex: a.errorModelZIndex
373
- }, null, 8, ["errorLabel", "getEl", "errorModelZIndex"])) : P("", !0)
374
- ], 64)) : P("", !0)
483
+ errorLabel: p.errorLabel,
484
+ getEl: () => G.value,
485
+ errorModelZIndex: p.errorModelZIndex
486
+ }, null, 8, ["errorLabel", "getEl", "errorModelZIndex"])) : H("", !0)
487
+ ], 64)) : H("", !0)
375
488
  ], 4)), [
376
- [o(ye), x]
489
+ [d(_e), B]
377
490
  ]);
378
491
  }
379
- }), rr = /* @__PURE__ */ be(er, [["__scopeId", "data-v-9599ec25"]]), lr = { class: "ant-picker-cell-inner" }, tr = { class: "das-picker-footer-extra" }, ar = {
492
+ }), Ft = /* @__PURE__ */ Oe(It, [["__scopeId", "data-v-7dcb0d60"]]), $t = { class: "das-picker-footer-extra" }, Pt = {
380
493
  key: 0,
381
494
  class: "das-picker-ranges"
382
- }, or = { class: "das-picker-preset-span" }, ur = ["onClick"], nr = {
495
+ }, Lt = { class: "das-picker-preset-span" }, At = ["onClick"], xt = {
383
496
  key: 0,
384
497
  class: "das-date-picker-error-label-content"
385
- }, sr = {
498
+ }, Et = {
386
499
  name: "DasRangePicker"
387
- }, ir = /* @__PURE__ */ ve({
388
- ...sr,
500
+ }, Bt = /* @__PURE__ */ Ee({
501
+ ...Et,
389
502
  props: {
503
+ timeZoneMode: {},
504
+ timeZone: {},
505
+ useClientTimeZone: { type: Boolean },
506
+ timeZoneValueFormat: {},
390
507
  modelValue: {},
391
508
  borderType: { default: "bordered" },
392
509
  size: { default: "middle" },
@@ -411,204 +528,248 @@ const je = { class: "ant-picker-cell-inner" }, Ke = {
411
528
  formSize: {}
412
529
  },
413
530
  emits: ["change", "openChange", "update:model-value", "update:error"],
414
- setup(q, { expose: K, emit: d }) {
415
- fe((e) => ({
416
- c8be7bae: V.value,
417
- "82aeedb8": J.value
531
+ setup(T, { expose: S, emit: l }) {
532
+ Be((o) => ({
533
+ "3d463760": p.value,
534
+ "3070abdd": E.value
418
535
  }));
419
- const l = q, f = d;
420
- Me({
536
+ const t = T, k = l;
537
+ ot({
421
538
  fold: import("@das-fed/upf-ui/packages/icons/fold"),
422
539
  riqixuanze: import("@das-fed/upf-ui/packages/icons/riqixuanze")
423
540
  });
424
- const L = u(void 0);
425
- j(D, async () => {
426
- L.value = await Se(D.value);
541
+ const O = n(void 0);
542
+ ce(_, async () => {
543
+ O.value = await Ge(_.value);
427
544
  }, { immediate: !0 });
428
- const m = s(() => `range-picker-${D.value}`), p = u(null), B = u(null), g = s(() => l.size === "table" || l.size === "middle" || l.size === "default" ? "middle" : l.size), y = G(l, "modelValue"), N = G(l, "error"), V = s(() => l.width ? l.width : "230px"), W = s(() => l.formSize), J = s(() => l.height ? l.height : W.value ? {
545
+ const A = r(() => `range-picker-${_.value}`), v = n(null), X = n(null), f = n(""), V = n(!1), Z = Re(), x = r(() => t.size === "table" || t.size === "middle" || t.size === "default" ? "middle" : t.size), Y = ye(t, "modelValue"), G = ye(t, "error"), w = r(() => t.valueFormat ?? Z.valueFormat ?? Z["value-format"]), R = r(() => ({
546
+ timeZoneMode: t.timeZoneMode,
547
+ timeZone: t.timeZone,
548
+ useClientTimeZone: t.useClientTimeZone,
549
+ // timeZoneValueFormat 是最高优先级;未传时兼容旧业务继续使用 valueFormat 控制输出。
550
+ timeZoneValueFormat: t.timeZoneValueFormat ?? w.value
551
+ })), I = r(() => {
552
+ if (!(!Array.isArray(Y.value) || Y.value.length !== 2))
553
+ return L(R.value) ? Y.value.map((o) => Pe(o, R.value)) : Y.value;
554
+ }), j = r(() => L(R.value)), B = r(() => String(Z.picker ?? "date")), q = r(() => {
555
+ if (!j.value) return Z;
556
+ const { valueFormat: o, "value-format": e, ...i } = Z;
557
+ return i;
558
+ }), fe = r(() => j.value ? void 0 : w.value), Q = r(
559
+ () => j.value ? "das-ui-time-zone-picker-dropdown" : ""
560
+ ), le = r(() => !t.showTime), ne = r(() => j.value ? Le()().tz(Ae(R.value)).format("YYYY-MM-DD") : ""), ue = (o) => {
561
+ var e;
562
+ return !ne.value || !((e = o == null ? void 0 : o.isValid) != null && e.call(o)) ? !1 : o.format("YYYY-MM-DD") === ne.value;
563
+ }, ee = (o, e) => !Array.isArray(o) || !le.value || !j.value ? o : B.value === "date" && Array.isArray(e) ? o.map((i, s) => {
564
+ const g = e[s];
565
+ return !i || !g ? i : Le()(g).tz(Ae(R.value), !0);
566
+ }) : o.map((i) => i != null && i.format ? i.startOf("day") : i), p = r(() => t.width ? t.width : "230px"), m = r(() => t.formSize), E = r(() => t.height ? t.height : m.value ? {
429
567
  small: "24px",
430
568
  default: "32px",
431
569
  large: "40px"
432
- }[W.value] : "auto"), Z = u(3e3), U = s(() => ({
433
- "z-index": Z.value
434
- })), x = u(!1), A = u({
570
+ }[m.value] : "auto"), ie = n(3e3), pe = r(() => ({
571
+ "z-index": ie.value
572
+ })), C = n(!1), N = n({
435
573
  display: "block",
436
574
  color: "var(--upf-color-error)",
437
575
  "white-space": "break-spaces"
438
- }), C = s(() => {
439
- var e;
440
- return l.isView ? l.noSetDefaultVal ? ["", ""] : ["-", "-"] : (e = l.placeholder) == null ? void 0 : e.map((i) => ie(i));
441
- }), Y = s(() => ({
442
- width: l.width
443
- })), h = u(!1), M = u(["", ""]), _ = u("~"), Q = s(() => {
444
- var e;
445
- return (e = y.value) != null && e.length && y.value[0] && y.value[1] ? M.value.join(" " + _.value + " ") : C.value.join(" " + _.value + " ");
446
- }), a = u([0, 0]), n = u([0, 0]), b = () => {
447
- var k;
448
- let e = [];
449
- const i = (k = p.value) == null ? void 0 : k.$el.querySelectorAll(".ant-picker-input>input");
450
- if (!i)
451
- return e = [0, 0], e;
452
- let T = [];
453
- for (let R of i) {
454
- T.push(R.getAttribute("value") || "");
455
- let De = (R == null ? void 0 : R.offsetWidth) ?? 0;
456
- e.push(De);
576
+ }), se = r(() => {
577
+ var o;
578
+ return t.isView ? t.noSetDefaultVal ? ["", ""] : ["-", "-"] : (o = t.placeholder) == null ? void 0 : o.map((e) => $e(e));
579
+ }), we = r(() => ({
580
+ width: t.width
581
+ })), K = n(!1), Ze = n(["", ""]), F = n("~"), de = r(() => {
582
+ var o;
583
+ return (o = I.value) != null && o.length && I.value[0] && I.value[1] ? Ze.value.join(" " + F.value + " ") : se.value.join(" " + F.value + " ");
584
+ }), z = n([0, 0]), D = n([0, 0]), ke = () => {
585
+ var s;
586
+ let o = [];
587
+ const e = (s = v.value) == null ? void 0 : s.$el.querySelectorAll(".ant-picker-input>input");
588
+ if (!e)
589
+ return o = [0, 0], o;
590
+ let i = [];
591
+ for (let g of e) {
592
+ i.push(g.getAttribute("value") || "");
593
+ let re = (g == null ? void 0 : g.offsetWidth) ?? 0;
594
+ o.push(re);
457
595
  }
458
- return M.value = T, e;
459
- }, I = (e) => {
460
- const i = l.size === "table" ? 12 : 14;
461
- return $e(e, i);
462
- }, F = () => {
463
- var T;
464
- let e = [];
465
- return ((T = p.value) == null ? void 0 : T.$el.querySelectorAll(".ant-picker-input>input")).forEach((k, R) => {
466
- y.value.length && y.value[0] && y.value[0] ? e.push(k == null ? void 0 : k.scrollWidth) : e.push(I(C.value[R]));
467
- }), e;
596
+ return Ze.value = i, o;
597
+ }, ze = (o) => {
598
+ const e = t.size === "table" ? 12 : 14;
599
+ return Je(o, e);
600
+ }, be = () => {
601
+ var i;
602
+ let o = [];
603
+ return ((i = v.value) == null ? void 0 : i.$el.querySelectorAll(".ant-picker-input>input")).forEach((s, g) => {
604
+ var re;
605
+ (re = I.value) != null && re.length && I.value[0] && I.value[0] ? o.push(s == null ? void 0 : s.scrollWidth) : o.push(ze(se.value[g]));
606
+ }), o;
468
607
  };
469
- j(() => [C.value, y.value], () => {
470
- re(() => {
471
- a.value = b(), n.value = F(), (a.value[0] === n.value[0] || n.value[0] - a.value[0] < 1) && (a.value[1] === n.value[1] || n.value[1] - a.value[1] < 1) && (h.value = !1);
608
+ ce(() => [se.value, I.value], () => {
609
+ Te(() => {
610
+ 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) && (K.value = !1);
472
611
  });
473
612
  });
474
- const w = u();
475
- j(
613
+ const U = n();
614
+ ce(
476
615
  () => {
477
- var e;
478
- return (e = B.value) == null ? void 0 : e.$tooltipRef.popperRef.contentRef;
616
+ var o;
617
+ return (o = X.value) == null ? void 0 : o.$tooltipRef.popperRef.contentRef;
479
618
  },
480
- (e) => {
481
- e && (e.addEventListener("mouseenter", function() {
482
- h.value = !0, w.value && clearTimeout(w.value);
483
- }), e.addEventListener("mouseleave", function() {
484
- w.value = setTimeout(() => {
485
- h.value = !1;
619
+ (o) => {
620
+ o && (o.addEventListener("mouseenter", function() {
621
+ K.value = !0, U.value && clearTimeout(U.value);
622
+ }), o.addEventListener("mouseleave", function() {
623
+ U.value = setTimeout(() => {
624
+ K.value = !1;
486
625
  }, 200);
487
626
  }));
488
627
  }
489
628
  );
490
- const te = (e) => {
491
- e && (Z.value = Ie().nextZIndex()), f("openChange", e), D.value === "en-US" && re(() => {
492
- const i = document == null ? void 0 : document.querySelectorAll(".ant-picker-ok > .ant-btn > span");
493
- for (let T of i)
494
- T && (T.innerText = "OK");
629
+ const me = (o) => {
630
+ o && (ie.value = Xe().nextZIndex()), o ? a() : c(), k("openChange", o), _.value === "en-US" && Te(() => {
631
+ const e = document == null ? void 0 : document.querySelectorAll(".ant-picker-ok > .ant-btn > span");
632
+ for (let i of e)
633
+ i && (i.innerText = "OK");
495
634
  });
496
- }, ae = () => {
497
- a.value = b(), n.value = F(), (a.value[0] === n.value[0] || n.value[0] - a.value[0] < 1) && (a.value[1] === n.value[1] || n.value[1] - a.value[1] < 1) ? h.value = !1 : (h.value = !0, w.value && clearTimeout(w.value)), x.value = !0;
498
- }, oe = () => {
499
- w.value = setTimeout(() => {
500
- h.value = !1;
501
- }, 200), x.value = !1;
502
- }, ue = (e, i) => {
503
- e ? ae() : oe();
504
- }, de = (e, i) => {
505
- if (N.value = !1, e === null) {
506
- f("update:model-value", [null, null]), f("change", [null, null], i);
635
+ }, u = (o) => {
636
+ L(R.value) && (f.value = et(o));
637
+ }, a = () => {
638
+ f.value = "", V.value = Ce(
639
+ u,
640
+ L(R.value),
641
+ V.value
642
+ );
643
+ }, c = () => {
644
+ V.value = Ce(u, !1, V.value);
645
+ };
646
+ je(() => {
647
+ c(), f.value = "";
648
+ });
649
+ const b = () => {
650
+ 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) ? K.value = !1 : (K.value = !0, U.value && clearTimeout(U.value)), C.value = !0;
651
+ }, W = () => {
652
+ U.value = setTimeout(() => {
653
+ K.value = !1;
654
+ }, 200), C.value = !1;
655
+ }, te = (o, e) => {
656
+ o ? b() : W();
657
+ }, oe = (o, e) => {
658
+ const i = dt(o, R.value, f.value);
659
+ f.value = "";
660
+ const s = ee(i, e), g = j.value && Array.isArray(s) ? s.map((ge) => ge && Qe(ge, R.value)) : s, re = j.value && Array.isArray(g) ? g.map((ge) => ge == null ? "" : String(ge)) : e;
661
+ k("update:error", G.value), k("update:model-value", g), k("change", g, re);
662
+ }, tt = (o, e) => {
663
+ if (G.value = !1, o === null) {
664
+ k("update:model-value", [null, null]), k("change", [null, null], e);
507
665
  return;
508
666
  }
509
- f("update:error", N.value), f("update:model-value", e), f("change", e, i);
510
- }, pe = (e) => {
511
- f("update:model-value", e.value), f("change", e.value, [e.value[0].format(l.format), e.value[1].format(l.format)]), p.value.blur();
667
+ oe(o, e);
668
+ }, Ye = (o) => {
669
+ G.value = !1, oe(o.value, [o.value[0].format(t.format), o.value[1].format(t.format)]), v.value.blur();
512
670
  };
513
- return K({
514
- $rangePicker: p,
671
+ return S({
672
+ $rangePicker: v,
515
673
  blur: () => {
516
- p.value.blur();
674
+ v.value.blur();
517
675
  },
518
676
  focus: () => {
519
- p.value.focus();
677
+ v.value.focus();
520
678
  }
521
- }), (e, i) => (v(), z("div", {
522
- class: ke(["das-ui-range-picker", [e.borderType, l.isView ? "readonly" : "", o(N) ? "is-error" : ""]]),
523
- style: X(Y.value)
679
+ }), (o, e) => (y(), M("div", {
680
+ class: Ie(["das-ui-range-picker", [o.borderType, t.isView ? "readonly" : "", d(G) ? "is-error" : ""]]),
681
+ style: he(we.value)
524
682
  }, [
525
- S(o(Te), { locale: L.value }, {
526
- default: c(() => [
527
- S(o(ze), {
683
+ $(d(Ue), { locale: O.value }, {
684
+ default: h(() => [
685
+ $(d(He), {
528
686
  ref_key: "inputTooltipRef",
529
- ref: B,
687
+ ref: X,
530
688
  placement: "top",
531
689
  trigger: "hover",
532
- visible: h.value,
533
- disabled: !e.isTooltip,
534
- content: Q.value
690
+ visible: K.value,
691
+ disabled: !o.isTooltip,
692
+ content: de.value
535
693
  }, {
536
- default: c(() => {
537
- var T;
694
+ default: h(() => {
695
+ var i;
538
696
  return [
539
- me((v(), H(o(We), se({
540
- key: m.value,
697
+ Ne((y(), ve(d(mt), Fe({
698
+ key: A.value,
541
699
  ref_key: "$rangePicker",
542
- ref: p
543
- }, e.$attrs, {
544
- value: o(y),
545
- size: g.value,
546
- locale: (T = L.value) == null ? void 0 : T.DatePicker,
547
- valueFormat: l.valueFormat,
548
- dropdownClassName: "das-ui-range-picker-dropdown " + e.dropdownClassName,
549
- placeholder: C.value,
550
- showToday: e.showToday,
551
- showTime: e.showTime,
552
- bordered: e.borderType === "bordered",
553
- disabled: l.disabled || l.isView,
554
- style: Y.value,
555
- popupStyle: U.value,
556
- onChange: de,
557
- onOpenChange: te
700
+ ref: v
701
+ }, q.value, {
702
+ value: I.value,
703
+ size: x.value,
704
+ locale: (i = O.value) == null ? void 0 : i.DatePicker,
705
+ valueFormat: fe.value,
706
+ dropdownClassName: "das-ui-range-picker-dropdown " + Q.value + " " + o.dropdownClassName,
707
+ placeholder: se.value,
708
+ showToday: o.showToday,
709
+ showTime: o.showTime,
710
+ bordered: o.borderType === "bordered",
711
+ disabled: t.disabled || t.isView,
712
+ style: we.value,
713
+ popupStyle: pe.value,
714
+ onChange: tt,
715
+ onOpenChange: me
558
716
  }), {
559
- dateRender: c((k) => [
560
- $(e.$slots, "dateRender", ge(we(k)), () => [
561
- E("div", lr, O(k.current.date()), 1)
717
+ dateRender: h((s) => [
718
+ P(o.$slots, "dateRender", qe(Ke(s)), () => [
719
+ J("div", {
720
+ class: Ie(["ant-picker-cell-inner", { "das-time-zone-picker-cell-today": ue(s.current) }])
721
+ }, ae(s.current.date()), 3)
562
722
  ], !0)
563
723
  ]),
564
- nextIcon: c(() => i[1] || (i[1] = [
565
- Le(" XX ")
724
+ nextIcon: h(() => e[1] || (e[1] = [
725
+ at(" XX ")
566
726
  ])),
567
- prevIcon: c(() => [
568
- $(e.$slots, "prevIcon", {}, void 0, !0)
727
+ prevIcon: h(() => [
728
+ P(o.$slots, "prevIcon", {}, void 0, !0)
569
729
  ]),
570
- superNextIcon: c(() => [
571
- $(e.$slots, "superNextIcon", {}, void 0, !0)
730
+ superNextIcon: h(() => [
731
+ P(o.$slots, "superNextIcon", {}, void 0, !0)
572
732
  ]),
573
- superPrevIcon: c(() => [
574
- $(e.$slots, "superPrevIcon", {}, void 0, !0)
733
+ superPrevIcon: h(() => [
734
+ P(o.$slots, "superPrevIcon", {}, void 0, !0)
575
735
  ]),
576
- suffixIcon: c(() => [
577
- $(e.$slots, "suffixIcon", {}, () => [
578
- S(o(le), {
736
+ suffixIcon: h(() => [
737
+ P(o.$slots, "suffixIcon", {}, () => [
738
+ $(d(Se), {
579
739
  class: "das-suffix-icon",
580
740
  icon: "riqixuanze",
581
- size: "medium"
741
+ size: "medium",
742
+ "icon-color": "#666666"
582
743
  })
583
744
  ], !0)
584
745
  ]),
585
- separator: c(() => [
586
- $(e.$slots, "separator", {}, () => [
587
- i[2] || (i[2] = E("div", { style: { padding: "0 8px" } }, "~", -1))
746
+ separator: h(() => [
747
+ P(o.$slots, "separator", {}, () => [
748
+ e[2] || (e[2] = J("div", { style: { padding: "0 8px" } }, "~", -1))
588
749
  ], !0)
589
750
  ]),
590
- renderExtraFooter: c(() => [
591
- E("div", tr, [
592
- $(e.$slots, "renderExtraFooter", {}, void 0, !0)
751
+ renderExtraFooter: h(() => [
752
+ J("div", $t, [
753
+ P(o.$slots, "renderExtraFooter", {}, void 0, !0)
593
754
  ]),
594
- e.showTime || e.ranges && e.ranges.length ? (v(), z("div", ar, [
595
- (v(!0), z(ne, null, Pe(e.ranges, (k) => (v(), z("div", {
755
+ o.showTime || o.ranges && o.ranges.length ? (y(), M("div", Pt, [
756
+ (y(!0), M(Ve, null, lt(o.ranges, (s) => (y(), M("div", {
596
757
  class: "das-picker-preset",
597
- key: k.key
758
+ key: s.key
598
759
  }, [
599
- k.type === "dropdown" && k.children.length ? (v(), H(o(Ze), {
760
+ s.type === "dropdown" && s.children.length ? (y(), ve(d(ht), {
600
761
  key: 0,
601
762
  trigger: ["click"]
602
763
  }, {
603
- overlay: c(() => [
604
- S(o(Ae), null, {
605
- default: c(() => [
606
- (v(!0), z(ne, null, Pe(k.children, (R) => (v(), H(o(Fe), {
607
- key: R.key,
608
- onClick: (De) => pe(R)
764
+ overlay: h(() => [
765
+ $(d(yt), null, {
766
+ default: h(() => [
767
+ (y(!0), M(Ve, null, lt(s.children, (g) => (y(), ve(d(kt), {
768
+ key: g.key,
769
+ onClick: (re) => Ye(g)
609
770
  }, {
610
- default: c(() => [
611
- (v(), z("span", { key: R }, O(R.key), 1))
771
+ default: h(() => [
772
+ (y(), M("span", { key: g }, ae(g.key), 1))
612
773
  ]),
613
774
  _: 2
614
775
  }, 1032, ["onClick"]))), 128))
@@ -616,15 +777,15 @@ const je = { class: "ant-picker-cell-inner" }, Ke = {
616
777
  _: 2
617
778
  }, 1024)
618
779
  ]),
619
- default: c(() => [
620
- E("a", {
780
+ default: h(() => [
781
+ J("a", {
621
782
  class: "ant-dropdown-link",
622
- onClick: i[0] || (i[0] = Be(() => {
783
+ onClick: e[0] || (e[0] = vt(() => {
623
784
  }, ["prevent"]))
624
785
  }, [
625
- E("span", or, [
626
- Le(O(k.key) + " ", 1),
627
- S(o(le), {
786
+ J("span", Lt, [
787
+ at(ae(s.key) + " ", 1),
788
+ $(d(Se), {
628
789
  icon: "fold",
629
790
  size: "mini",
630
791
  style: { display: "inline-block" }
@@ -633,17 +794,17 @@ const je = { class: "ant-picker-cell-inner" }, Ke = {
633
794
  ])
634
795
  ]),
635
796
  _: 2
636
- }, 1024)) : (v(), z("span", {
797
+ }, 1024)) : (y(), M("span", {
637
798
  key: 1,
638
799
  class: "das-picker-preset-span",
639
- onClick: (R) => pe(k)
640
- }, O(k.key), 9, ur))
800
+ onClick: (g) => Ye(s)
801
+ }, ae(s.key), 9, At))
641
802
  ]))), 128))
642
- ])) : P("", !0)
803
+ ])) : H("", !0)
643
804
  ]),
644
805
  _: 3
645
806
  }, 16, ["value", "size", "locale", "valueFormat", "dropdownClassName", "placeholder", "showToday", "showTime", "bordered", "disabled", "style", "popupStyle"])), [
646
- [o(ye), ue]
807
+ [d(_e), te]
647
808
  ])
648
809
  ];
649
810
  }),
@@ -652,32 +813,36 @@ const je = { class: "ant-picker-cell-inner" }, Ke = {
652
813
  ]),
653
814
  _: 3
654
815
  }, 8, ["locale"]),
655
- e.error && e.errorLabel ? (v(), z(ne, { key: 0 }, [
656
- e.errorMode === "default" ? (v(), z("div", nr, [
657
- E("span", {
658
- style: X(A.value)
659
- }, O(e.errorLabel), 5)
660
- ])) : P("", !0),
661
- e.errorMode === "overlay" && x.value ? (v(), H(o(he), {
816
+ o.error && o.errorLabel ? (y(), M(Ve, { key: 0 }, [
817
+ o.errorMode === "default" ? (y(), M("div", xt, [
818
+ J("span", {
819
+ style: he(N.value)
820
+ }, ae(o.errorLabel), 5)
821
+ ])) : H("", !0),
822
+ o.errorMode === "overlay" && C.value ? (y(), ve(d(We), {
662
823
  key: 1,
663
- errorLabel: e.errorLabel,
824
+ errorLabel: o.errorLabel,
664
825
  getEl: () => {
665
- var T;
666
- return (T = p.value) == null ? void 0 : T.$el;
826
+ var i;
827
+ return (i = v.value) == null ? void 0 : i.$el;
667
828
  },
668
- errorModelZIndex: e.errorModelZIndex
669
- }, null, 8, ["errorLabel", "getEl", "errorModelZIndex"])) : P("", !0)
670
- ], 64)) : P("", !0)
829
+ errorModelZIndex: o.errorModelZIndex
830
+ }, null, 8, ["errorLabel", "getEl", "errorModelZIndex"])) : H("", !0)
831
+ ], 64)) : H("", !0)
671
832
  ], 6));
672
833
  }
673
- }), dr = /* @__PURE__ */ be(ir, [["__scopeId", "data-v-960c26e8"]]), pr = { class: "ant-picker-cell-inner" }, cr = {
834
+ }), Rt = /* @__PURE__ */ Oe(Bt, [["__scopeId", "data-v-808c8456"]]), Nt = { class: "ant-picker-cell-inner" }, Wt = {
674
835
  key: 0,
675
836
  class: "das-date-picker-error-label-content"
676
- }, vr = {
837
+ }, _t = {
677
838
  name: "DasDatePicker"
678
- }, fr = /* @__PURE__ */ ve({
679
- ...vr,
839
+ }, Ot = /* @__PURE__ */ Ee({
840
+ ..._t,
680
841
  props: {
842
+ timeZoneMode: {},
843
+ timeZone: {},
844
+ useClientTimeZone: { type: Boolean },
845
+ timeZoneValueFormat: {},
681
846
  modelValue: {},
682
847
  borderType: { default: "bordered" },
683
848
  size: { default: "middle" },
@@ -698,135 +863,163 @@ const je = { class: "ant-picker-cell-inner" }, Ke = {
698
863
  formSize: {}
699
864
  },
700
865
  emits: ["change", "openChange", "update:model-value", "update:error"],
701
- setup(q, { expose: K, emit: d }) {
702
- fe((r) => ({
703
- "680e6b6e": N.value,
704
- "7ff0087f": J.value
866
+ setup(T, { expose: S, emit: l }) {
867
+ Be((u) => ({
868
+ d2190082: j.value,
869
+ "2dad7e4e": fe.value
705
870
  }));
706
- const l = q, f = d, L = u(void 0);
707
- j(D, async () => {
708
- L.value = await Se(D.value);
871
+ const t = T, k = l, O = n(void 0);
872
+ ce(_, async () => {
873
+ O.value = await Ge(_.value);
709
874
  }, { immediate: !0 });
710
- const m = s(() => `time-picker-${D.value}`), p = u(null), B = u(null), g = G(l, "modelValue"), y = G(l, "error"), N = s(() => l.width ? l.width : "230px"), V = s(() => l.formSize), W = s(() => l.size === "large" ? "large" : l.size === "small" || l.size === "table" ? "small" : "middle"), J = s(() => l.height ? l.height : V.value ? {
875
+ const A = r(() => `time-picker-${_.value}`), v = n(null), X = n(null), f = n(""), V = n(!1), Z = Re(), x = ye(t, "modelValue"), Y = ye(t, "error"), G = r(() => Z.valueFormat ?? Z["value-format"]), w = r(() => ({
876
+ timeZoneMode: t.timeZoneMode,
877
+ timeZone: t.timeZone,
878
+ useClientTimeZone: t.useClientTimeZone,
879
+ // timeZoneValueFormat 是最高优先级;未传时兼容旧业务继续使用 valueFormat 控制输出。
880
+ timeZoneValueFormat: t.timeZoneValueFormat ?? G.value
881
+ })), R = r(() => {
882
+ if (!L(w.value)) return Z;
883
+ const { valueFormat: u, "value-format": a, ...c } = Z;
884
+ return c;
885
+ }), I = r(() => Pe(x.value, w.value)), j = r(() => t.width ? t.width : "230px"), B = r(() => t.formSize), q = r(() => t.size === "large" ? "large" : t.size === "small" || t.size === "table" ? "small" : "middle"), fe = r(() => t.height ? t.height : B.value ? {
711
886
  small: "24px",
712
887
  default: "32px",
713
888
  large: "40px"
714
- }[V.value] : "auto"), Z = s(() => ({
715
- width: l.width
716
- })), U = s(() => l.isView ? l.noSetDefaultVal ? "" : "-" : ie(l.placeholder)), x = u(3e3), A = s(() => ({
717
- "z-index": x.value
718
- })), C = u(!1), Y = u({
889
+ }[B.value] : "auto"), Q = r(() => ({
890
+ width: t.width
891
+ })), le = r(() => t.isView ? t.noSetDefaultVal ? "" : "-" : $e(t.placeholder)), ne = n(3e3), ue = r(() => ({
892
+ "z-index": ne.value
893
+ })), ee = n(!1), p = n({
719
894
  display: "block",
720
895
  color: "var(--upf-color-error)",
721
896
  "white-space": "break-spaces"
722
- }), h = (r) => {
723
- r && (x.value = Ie().nextZIndex()), f("openChange", r), String(D.value).startsWith("en") && re(() => {
724
- const t = document == null ? void 0 : document.querySelectorAll(".ant-picker-ok > .ant-btn > span");
725
- for (let e of t)
726
- e && (e.innerText = "OK");
897
+ }), m = (u) => {
898
+ u && (ne.value = Xe().nextZIndex()), u ? ie() : pe(), k("openChange", u), String(_.value).startsWith("en") && Te(() => {
899
+ const a = document == null ? void 0 : document.querySelectorAll(".ant-picker-ok > .ant-btn > span");
900
+ for (let c of a)
901
+ c && (c.innerText = "OK");
727
902
  });
728
- }, M = u(!1), _ = u(""), Q = s(() => g.value ? _.value : U.value), a = () => {
729
- const r = l.size === "table" ? 12 : 14;
730
- return $e(U.value, r);
731
- }, n = () => {
732
- var t;
733
- const r = (t = p.value) == null ? void 0 : t.$el.querySelector(".ant-picker-input>input");
734
- return g.value ? r == null ? void 0 : r.scrollWidth : a();
735
- }, b = () => {
736
- var e;
737
- const r = (e = p.value) == null ? void 0 : e.$el.querySelector(".ant-picker-input>input");
738
- return r ? (_.value = r.getAttribute("value"), r.removeAttribute("title"), (r == null ? void 0 : r.offsetWidth) ?? 0) : 0;
739
- }, I = u(0), F = u(0);
740
- j(() => [U.value, g.value], () => {
741
- re(() => {
742
- I.value = b(), F.value = n(), (I.value === F.value || F.value - I.value < 1) && (M.value = !1);
903
+ }, E = (u) => {
904
+ L(w.value) && (f.value = et(u));
905
+ }, ie = () => {
906
+ f.value = "", V.value = Ce(
907
+ E,
908
+ L(w.value),
909
+ V.value
910
+ );
911
+ }, pe = () => {
912
+ V.value = Ce(E, !1, V.value);
913
+ };
914
+ je(() => {
915
+ pe(), f.value = "";
916
+ });
917
+ const C = n(!1), N = n(""), se = r(() => I.value ? N.value : le.value), we = () => {
918
+ const u = t.size === "table" ? 12 : 14;
919
+ return Je(le.value, u);
920
+ }, K = () => {
921
+ var a;
922
+ const u = (a = v.value) == null ? void 0 : a.$el.querySelector(".ant-picker-input>input");
923
+ return I.value ? u == null ? void 0 : u.scrollWidth : we();
924
+ }, Ze = () => {
925
+ var c;
926
+ const u = (c = v.value) == null ? void 0 : c.$el.querySelector(".ant-picker-input>input");
927
+ return u ? (N.value = u.getAttribute("value"), u.removeAttribute("title"), (u == null ? void 0 : u.offsetWidth) ?? 0) : 0;
928
+ }, F = n(0), de = n(0);
929
+ ce(() => [le.value, I.value], () => {
930
+ Te(() => {
931
+ F.value = Ze(), de.value = K(), (F.value === de.value || de.value - F.value < 1) && (C.value = !1);
743
932
  });
744
933
  });
745
- const w = u();
746
- j(
934
+ const D = n();
935
+ ce(
747
936
  () => {
748
- var r;
749
- return (r = B.value) == null ? void 0 : r.$tooltipRef.popperRef.contentRef;
937
+ var u;
938
+ return (u = X.value) == null ? void 0 : u.$tooltipRef.popperRef.contentRef;
750
939
  },
751
- (r) => {
752
- r && (r.addEventListener("mouseenter", function() {
753
- M.value = !0, w.value && clearTimeout(w.value);
754
- }), r.addEventListener("mouseleave", function() {
755
- w.value = setTimeout(() => {
756
- M.value = !1;
940
+ (u) => {
941
+ u && (u.addEventListener("mouseenter", function() {
942
+ C.value = !0, D.value && clearTimeout(D.value);
943
+ }), u.addEventListener("mouseleave", function() {
944
+ D.value = setTimeout(() => {
945
+ C.value = !1;
757
946
  }, 200);
758
947
  }));
759
948
  }
760
949
  );
761
- const te = () => {
762
- I.value = b(), F.value = n(), I.value === F.value || F.value - I.value < 1 ? M.value = !1 : (M.value = !0, w.value && clearTimeout(w.value)), C.value = !0;
763
- }, ae = () => {
764
- w.value = setTimeout(() => {
765
- M.value = !1;
766
- }, 200), C.value = !1;
767
- }, oe = (r) => {
768
- r ? te() : ae();
769
- }, ue = (r, t) => {
770
- y.value = !1, f("update:error", y.value), f("update:model-value", r), f("change", r, t);
950
+ const ke = () => {
951
+ F.value = Ze(), de.value = K(), F.value === de.value || de.value - F.value < 1 ? C.value = !1 : (C.value = !0, D.value && clearTimeout(D.value)), ee.value = !0;
952
+ }, ze = () => {
953
+ D.value = setTimeout(() => {
954
+ C.value = !1;
955
+ }, 200), ee.value = !1;
956
+ }, be = (u) => {
957
+ u ? ke() : ze();
958
+ }, De = (u, a) => {
959
+ Y.value = !1, k("update:error", Y.value);
960
+ const c = st(u, w.value, f.value);
961
+ f.value = "";
962
+ const b = L(w.value) ? Qe(c, w.value) : c, W = L(w.value) && b != null ? String(b) : a;
963
+ k("update:model-value", b), k("change", b, W);
771
964
  };
772
- return K({
773
- $timePicker: p,
965
+ return S({
966
+ $timePicker: v,
774
967
  blur: () => {
775
- p.value.blur();
968
+ v.value.blur();
776
969
  },
777
970
  focus: () => {
778
- p.value.focus();
971
+ v.value.focus();
779
972
  }
780
- }), (r, t) => (v(), z("div", {
781
- class: ke(["das-ui-time-picker", [r.borderType, l.isView ? "readonly" : "", o(y) ? "is-error" : ""]]),
782
- style: X(Z.value)
973
+ }), (u, a) => (y(), M("div", {
974
+ class: Ie(["das-ui-time-picker", [u.borderType, t.isView ? "readonly" : "", d(Y) ? "is-error" : ""]]),
975
+ style: he(Q.value)
783
976
  }, [
784
- S(o(Te), { locale: L.value }, {
785
- default: c(() => [
786
- S(o(ze), {
977
+ $(d(Ue), { locale: O.value }, {
978
+ default: h(() => [
979
+ $(d(He), {
787
980
  ref_key: "inputTooltipRef",
788
- ref: B,
981
+ ref: X,
789
982
  placement: "top",
790
983
  trigger: "hover",
791
- visible: M.value,
792
- disabled: !r.isTooltip,
793
- content: Q.value
984
+ visible: C.value,
985
+ disabled: !u.isTooltip,
986
+ content: se.value
794
987
  }, {
795
- default: c(() => [
796
- me((v(), H(o(Oe), se({
797
- key: m.value,
988
+ default: h(() => [
989
+ Ne((y(), ve(d(bt), Fe({
990
+ key: A.value,
798
991
  ref_key: "$timePicker",
799
- ref: p
800
- }, r.$attrs, {
801
- value: o(g),
802
- "onUpdate:value": t[0] || (t[0] = (e) => Ce(g) ? g.value = e : null),
803
- size: W.value,
804
- popupClassName: "das-ui-time-picker-dropdown " + r.dropdownClassName,
805
- showNow: r.showNow,
806
- bordered: r.borderType === "bordered",
807
- placeholder: U.value,
808
- disabled: l.disabled || l.isView,
809
- style: Z.value,
810
- popupStyle: A.value,
811
- onChange: ue,
812
- onOpenChange: h
992
+ ref: v
993
+ }, R.value, {
994
+ value: I.value,
995
+ size: q.value,
996
+ popupClassName: "das-ui-time-picker-dropdown " + u.dropdownClassName,
997
+ showNow: u.showNow,
998
+ bordered: u.borderType === "bordered",
999
+ placeholder: le.value,
1000
+ disabled: t.disabled || t.isView,
1001
+ style: Q.value,
1002
+ popupStyle: ue.value,
1003
+ onChange: De,
1004
+ onOpenChange: m
813
1005
  }), {
814
- dateRender: c((e) => [
815
- $(r.$slots, "dateRender", ge(we(e)), () => [
816
- E("div", pr, O(e.current.date()), 1)
1006
+ dateRender: h((c) => [
1007
+ P(u.$slots, "dateRender", qe(Ke(c)), () => [
1008
+ J("div", Nt, ae(c.current.date()), 1)
817
1009
  ], !0)
818
1010
  ]),
819
- suffixIcon: c(() => [
820
- $(r.$slots, "suffixIcon", {}, () => [
821
- S(o(_e), {
1011
+ suffixIcon: h(() => [
1012
+ P(u.$slots, "suffixIcon", {}, () => [
1013
+ $(d(wt), {
822
1014
  class: "das-suffix-icon",
823
- size: "medium"
1015
+ size: "medium",
1016
+ iconColor: "#666666"
824
1017
  })
825
1018
  ], !0)
826
1019
  ]),
827
1020
  _: 3
828
1021
  }, 16, ["value", "size", "popupClassName", "showNow", "bordered", "placeholder", "disabled", "style", "popupStyle"])), [
829
- [o(ye), oe]
1022
+ [d(_e), be]
830
1023
  ])
831
1024
  ]),
832
1025
  _: 3
@@ -834,32 +1027,36 @@ const je = { class: "ant-picker-cell-inner" }, Ke = {
834
1027
  ]),
835
1028
  _: 3
836
1029
  }, 8, ["locale"]),
837
- r.error && r.errorLabel ? (v(), z(ne, { key: 0 }, [
838
- r.errorMode === "default" ? (v(), z("div", cr, [
839
- E("span", {
840
- style: X(Y.value)
841
- }, O(r.errorLabel), 5)
842
- ])) : P("", !0),
843
- r.errorMode === "overlay" && C.value ? (v(), H(o(he), {
1030
+ u.error && u.errorLabel ? (y(), M(Ve, { key: 0 }, [
1031
+ u.errorMode === "default" ? (y(), M("div", Wt, [
1032
+ J("span", {
1033
+ style: he(p.value)
1034
+ }, ae(u.errorLabel), 5)
1035
+ ])) : H("", !0),
1036
+ u.errorMode === "overlay" && ee.value ? (y(), ve(d(We), {
844
1037
  key: 1,
845
- errorLabel: r.errorLabel,
1038
+ errorLabel: u.errorLabel,
846
1039
  getEl: () => {
847
- var e;
848
- return (e = p.value) == null ? void 0 : e.$el;
1040
+ var c;
1041
+ return (c = v.value) == null ? void 0 : c.$el;
849
1042
  },
850
- errorModelZIndex: r.errorModelZIndex
851
- }, null, 8, ["errorLabel", "getEl", "errorModelZIndex"])) : P("", !0)
852
- ], 64)) : P("", !0)
1043
+ errorModelZIndex: u.errorModelZIndex
1044
+ }, null, 8, ["errorLabel", "getEl", "errorModelZIndex"])) : H("", !0)
1045
+ ], 64)) : H("", !0)
853
1046
  ], 6));
854
1047
  }
855
- }), mr = /* @__PURE__ */ be(fr, [["__scopeId", "data-v-dfa7b5b9"]]), hr = { class: "ant-picker-cell-inner" }, yr = {
1048
+ }), Yt = /* @__PURE__ */ Oe(Ot, [["__scopeId", "data-v-05ea88f6"]]), jt = { class: "ant-picker-cell-inner" }, qt = {
856
1049
  key: 0,
857
1050
  class: "das-date-picker-error-label-content"
858
- }, br = {
1051
+ }, Kt = {
859
1052
  name: "DasDatePicker"
860
- }, kr = /* @__PURE__ */ ve({
861
- ...br,
1053
+ }, Ut = /* @__PURE__ */ Ee({
1054
+ ...Kt,
862
1055
  props: {
1056
+ timeZoneMode: {},
1057
+ timeZone: {},
1058
+ useClientTimeZone: { type: Boolean },
1059
+ timeZoneValueFormat: {},
863
1060
  modelValue: {},
864
1061
  borderType: { default: "bordered" },
865
1062
  size: { default: "middle" },
@@ -880,164 +1077,191 @@ const je = { class: "ant-picker-cell-inner" }, Ke = {
880
1077
  formSize: {}
881
1078
  },
882
1079
  emits: ["change", "openChange", "update:model-value", "update:error"],
883
- setup(q, { expose: K, emit: d }) {
884
- fe((t) => ({
885
- 43899416: N.value,
886
- "13d9f4d7": J.value
887
- })), Me({
1080
+ setup(T, { expose: S, emit: l }) {
1081
+ Be((a) => ({
1082
+ "8abddf88": j.value,
1083
+ "7fb1fd71": fe.value
1084
+ })), ot({
888
1085
  dengdai: import("@das-fed/upf-ui/packages/icons/dengdai")
889
1086
  });
890
- const l = q, f = d, L = u(void 0);
891
- j(D, async () => {
892
- L.value = await Se(D.value);
1087
+ const t = T, k = l, O = n(void 0);
1088
+ ce(_, async () => {
1089
+ O.value = await Ge(_.value);
893
1090
  }, { immediate: !0 });
894
- const m = s(() => `time-range-picker-${D.value}`), p = u(null), B = u(null), g = G(l, "modelValue"), y = G(l, "error"), N = s(() => l.width ? l.width : "230px"), V = s(() => l.formSize), W = s(() => l.size === "large" ? "large" : l.size === "small" || l.size === "table" ? "small" : "middle"), J = s(() => l.height ? l.height : V.value ? {
1091
+ const A = r(() => `time-range-picker-${_.value}`), v = n(null), X = n(null), f = n(""), V = n(!1), Z = Re(), x = ye(t, "modelValue"), Y = ye(t, "error"), G = r(() => Z.valueFormat ?? Z["value-format"]), w = r(() => ({
1092
+ timeZoneMode: t.timeZoneMode,
1093
+ timeZone: t.timeZone,
1094
+ useClientTimeZone: t.useClientTimeZone,
1095
+ // timeZoneValueFormat 是最高优先级;未传时兼容旧业务继续使用 valueFormat 控制输出。
1096
+ timeZoneValueFormat: t.timeZoneValueFormat ?? G.value
1097
+ })), R = r(() => {
1098
+ if (!L(w.value)) return Z;
1099
+ const { valueFormat: a, "value-format": c, ...b } = Z;
1100
+ return b;
1101
+ }), I = r(() => !Array.isArray(x.value) || !L(w.value) ? x.value : x.value.map((a) => Pe(a, w.value))), j = r(() => t.width ? t.width : "230px"), B = r(() => t.formSize), q = r(() => t.size === "large" ? "large" : t.size === "small" || t.size === "table" ? "small" : "middle"), fe = r(() => t.height ? t.height : B.value ? {
895
1102
  small: "24px",
896
1103
  default: "32px",
897
1104
  large: "40px"
898
- }[V.value] : "auto"), Z = u(3e3), U = s(() => ({
899
- "z-index": Z.value
900
- })), x = s(() => ({
901
- width: l.width
902
- })), A = s(() => {
903
- var t;
904
- return l.isView ? l.noSetDefaultVal ? ["", ""] : ["-", "-"] : (t = l.placeholder) == null ? void 0 : t.map((e) => ie(e));
905
- }), C = u(!1), Y = u({
1105
+ }[B.value] : "auto"), Q = n(3e3), le = r(() => ({
1106
+ "z-index": Q.value
1107
+ })), ne = r(() => ({
1108
+ width: t.width
1109
+ })), ue = r(() => {
1110
+ var a;
1111
+ return t.isView ? t.noSetDefaultVal ? ["", ""] : ["-", "-"] : (a = t.placeholder) == null ? void 0 : a.map((c) => $e(c));
1112
+ }), ee = n(!1), p = n({
906
1113
  display: "block",
907
1114
  color: "var(--upf-color-error)",
908
1115
  "white-space": "break-spaces"
909
- }), h = u(!1), M = u(["", ""]), _ = u("~"), Q = s(() => {
910
- var t;
911
- return (t = g.value) != null && t.length && g.value[0] && g.value[1] ? M.value.join(" " + _.value + " ") : A.value.join(" " + _.value + " ");
912
- }), a = u([0, 0]), n = u([0, 0]), b = () => {
913
- var T;
914
- let t = [];
915
- const e = (T = p.value) == null ? void 0 : T.$el.querySelectorAll(".ant-picker-input>input");
916
- if (!e)
917
- return t = [0, 0], t;
918
- let i = [];
919
- for (let k of e) {
920
- i.push(k.getAttribute("value") || "");
921
- let R = (k == null ? void 0 : k.offsetWidth) ?? 0;
922
- t.push(R);
1116
+ }), m = n(!1), E = n(["", ""]), ie = n("~"), pe = r(() => {
1117
+ var a;
1118
+ return (a = x.value) != null && a.length && x.value[0] && x.value[1] ? E.value.join(" " + ie.value + " ") : ue.value.join(" " + ie.value + " ");
1119
+ }), C = n([0, 0]), N = n([0, 0]), se = () => {
1120
+ var W;
1121
+ let a = [];
1122
+ const c = (W = v.value) == null ? void 0 : W.$el.querySelectorAll(".ant-picker-input>input");
1123
+ if (!c)
1124
+ return a = [0, 0], a;
1125
+ let b = [];
1126
+ for (let te of c) {
1127
+ b.push(te.getAttribute("value") || "");
1128
+ let oe = (te == null ? void 0 : te.offsetWidth) ?? 0;
1129
+ a.push(oe);
923
1130
  }
924
- return M.value = i, t;
925
- }, I = (t) => {
926
- const e = l.size === "table" ? 12 : 14;
927
- return $e(t, e);
928
- }, F = () => {
929
- var i;
930
- let t = [];
931
- return ((i = p.value) == null ? void 0 : i.$el.querySelectorAll(".ant-picker-input>input")).forEach((T, k) => {
932
- g.value.length && g.value[0] && g.value[0] ? t.push(T == null ? void 0 : T.scrollWidth) : t.push(I(A.value[k]));
933
- }), t;
1131
+ return E.value = b, a;
1132
+ }, we = (a) => {
1133
+ const c = t.size === "table" ? 12 : 14;
1134
+ return Je(a, c);
1135
+ }, K = () => {
1136
+ var b;
1137
+ let a = [];
1138
+ return ((b = v.value) == null ? void 0 : b.$el.querySelectorAll(".ant-picker-input>input")).forEach((W, te) => {
1139
+ x.value.length && x.value[0] && x.value[0] ? a.push(W == null ? void 0 : W.scrollWidth) : a.push(we(ue.value[te]));
1140
+ }), a;
934
1141
  };
935
- j(() => [A.value, g.value], () => {
936
- re(() => {
937
- a.value = b(), n.value = F(), (a.value[0] === n.value[0] || n.value[0] - a.value[0] < 1) && (a.value[1] === n.value[1] || n.value[1] - a.value[1] < 1) && (h.value = !1);
1142
+ ce(() => [ue.value, x.value], () => {
1143
+ Te(() => {
1144
+ C.value = se(), N.value = K(), (C.value[0] === N.value[0] || N.value[0] - C.value[0] < 1) && (C.value[1] === N.value[1] || N.value[1] - C.value[1] < 1) && (m.value = !1);
938
1145
  });
939
1146
  });
940
- const w = u();
941
- j(
1147
+ const F = n();
1148
+ ce(
942
1149
  () => {
943
- var t;
944
- return (t = B.value) == null ? void 0 : t.$tooltipRef.popperRef.contentRef;
1150
+ var a;
1151
+ return (a = X.value) == null ? void 0 : a.$tooltipRef.popperRef.contentRef;
945
1152
  },
946
- (t) => {
947
- t && (t.addEventListener("mouseenter", function() {
948
- h.value = !0, w.value && clearTimeout(w.value);
949
- }), t.addEventListener("mouseleave", function() {
950
- w.value = setTimeout(() => {
951
- h.value = !1;
1153
+ (a) => {
1154
+ a && (a.addEventListener("mouseenter", function() {
1155
+ m.value = !0, F.value && clearTimeout(F.value);
1156
+ }), a.addEventListener("mouseleave", function() {
1157
+ F.value = setTimeout(() => {
1158
+ m.value = !1;
952
1159
  }, 200);
953
1160
  }));
954
1161
  }
955
1162
  );
956
- const te = (t) => {
957
- t && (Z.value = Ie().nextZIndex()), f("openChange", t), String(D.value).startsWith("en") && re(() => {
958
- const e = document == null ? void 0 : document.querySelectorAll(".ant-picker-ok > .ant-btn > span");
959
- for (let i of e)
960
- i && (i.innerText = "OK");
1163
+ const de = (a) => {
1164
+ a && (Q.value = Xe().nextZIndex()), a ? D() : ke(), k("openChange", a), String(_.value).startsWith("en") && Te(() => {
1165
+ const c = document == null ? void 0 : document.querySelectorAll(".ant-picker-ok > .ant-btn > span");
1166
+ for (let b of c)
1167
+ b && (b.innerText = "OK");
961
1168
  });
962
- }, ae = () => {
963
- a.value = b(), n.value = F(), (a.value[0] === n.value[0] || n.value[0] - a.value[0] < 1) && (a.value[1] === n.value[1] || n.value[1] - a.value[1] < 1) ? h.value = !1 : (h.value = !0, w.value && clearTimeout(w.value)), C.value = !0;
964
- }, oe = () => {
965
- w.value = setTimeout(() => {
966
- h.value = !1;
967
- }, 200), C.value = !1;
968
- }, ue = (t) => {
969
- t ? ae() : oe();
970
- }, de = (t, e) => {
971
- if (y.value = !1, t === null) {
972
- f("update:model-value", [null, null]), f("change", [null, null], Array.isArray(e) ? e.join(" ~ ") : e);
1169
+ }, z = (a) => {
1170
+ L(w.value) && (f.value = et(a));
1171
+ }, D = () => {
1172
+ f.value = "", V.value = Ce(
1173
+ z,
1174
+ L(w.value),
1175
+ V.value
1176
+ );
1177
+ }, ke = () => {
1178
+ V.value = Ce(z, !1, V.value);
1179
+ };
1180
+ je(() => {
1181
+ ke(), f.value = "";
1182
+ });
1183
+ const ze = () => {
1184
+ C.value = se(), N.value = K(), (C.value[0] === N.value[0] || N.value[0] - C.value[0] < 1) && (C.value[1] === N.value[1] || N.value[1] - C.value[1] < 1) ? m.value = !1 : (m.value = !0, F.value && clearTimeout(F.value)), ee.value = !0;
1185
+ }, be = () => {
1186
+ F.value = setTimeout(() => {
1187
+ m.value = !1;
1188
+ }, 200), ee.value = !1;
1189
+ }, De = (a) => {
1190
+ a ? ze() : be();
1191
+ }, U = (a, c) => {
1192
+ if (Y.value = !1, a === null) {
1193
+ k("update:model-value", [null, null]), k("change", [null, null], Array.isArray(c) ? c.join(" ~ ") : c);
973
1194
  return;
974
1195
  }
975
- f("update:error", y.value), f("update:model-value", t), f("change", t, Array.isArray(e) ? e.join(" ~ ") : e);
1196
+ const b = dt(a, w.value, f.value);
1197
+ f.value = "";
1198
+ const W = L(w.value) && Array.isArray(b) ? b.map((oe) => oe && Qe(oe, w.value)) : b, te = L(w.value) && Array.isArray(W) ? W.map((oe) => oe == null ? "" : String(oe)).join(" ~ ") : Array.isArray(c) ? c.join(" ~ ") : c;
1199
+ k("update:error", Y.value), k("update:model-value", W), k("change", W, te);
976
1200
  };
977
- return K({
978
- $timeRangePicker: p,
1201
+ return S({
1202
+ $timeRangePicker: v,
979
1203
  blur: () => {
980
- p.value.blur();
1204
+ v.value.blur();
981
1205
  },
982
1206
  focus: () => {
983
- p.value.focus();
1207
+ v.value.focus();
984
1208
  }
985
- }), (t, e) => (v(), z("div", {
986
- class: ke(["das-ui-time-range-picker", [t.borderType, l.isView ? "readonly" : "", o(y) ? "is-error" : ""]]),
987
- style: X(x.value)
1209
+ }), (a, c) => (y(), M("div", {
1210
+ class: Ie(["das-ui-time-range-picker", [a.borderType, t.isView ? "readonly" : "", d(Y) ? "is-error" : ""]]),
1211
+ style: he(ne.value)
988
1212
  }, [
989
- S(o(Te), { locale: L.value }, {
990
- default: c(() => [
991
- S(o(ze), {
1213
+ $(d(Ue), { locale: O.value }, {
1214
+ default: h(() => [
1215
+ $(d(He), {
992
1216
  ref_key: "inputTooltipRef",
993
- ref: B,
1217
+ ref: X,
994
1218
  placement: "top",
995
1219
  trigger: "hover",
996
- visible: h.value,
997
- disabled: !t.isTooltip,
998
- content: Q.value
1220
+ visible: m.value,
1221
+ disabled: !a.isTooltip,
1222
+ content: pe.value
999
1223
  }, {
1000
- default: c(() => [
1001
- me((v(), H(o(qe), se({
1002
- key: m.value,
1224
+ default: h(() => [
1225
+ Ne((y(), ve(d(gt), Fe({
1226
+ key: A.value,
1003
1227
  ref_key: "$timeRangePicker",
1004
- ref: p
1005
- }, t.$attrs, {
1006
- value: o(g),
1007
- "onUpdate:value": e[0] || (e[0] = (i) => Ce(g) ? g.value = i : null),
1008
- size: W.value,
1009
- popupClassName: "das-ui-time-range-picker-dropdown " + t.dropdownClassName,
1010
- showNow: t.showNow,
1011
- bordered: t.borderType === "bordered",
1012
- placeholder: A.value,
1013
- disabled: l.disabled || l.isView,
1014
- style: x.value,
1015
- popupStyle: U.value,
1016
- onChange: de,
1017
- onOpenChange: te
1228
+ ref: v
1229
+ }, R.value, {
1230
+ value: I.value,
1231
+ size: q.value,
1232
+ popupClassName: "das-ui-time-range-picker-dropdown " + a.dropdownClassName,
1233
+ showNow: a.showNow,
1234
+ bordered: a.borderType === "bordered",
1235
+ placeholder: ue.value,
1236
+ disabled: t.disabled || t.isView,
1237
+ style: ne.value,
1238
+ popupStyle: le.value,
1239
+ onChange: U,
1240
+ onOpenChange: de
1018
1241
  }), {
1019
- dateRender: c((i) => [
1020
- $(t.$slots, "dateRender", ge(we(i)), () => [
1021
- E("div", hr, O(i.current.date()), 1)
1242
+ dateRender: h((b) => [
1243
+ P(a.$slots, "dateRender", qe(Ke(b)), () => [
1244
+ J("div", jt, ae(b.current.date()), 1)
1022
1245
  ], !0)
1023
1246
  ]),
1024
- suffixIcon: c(() => [
1025
- $(t.$slots, "suffixIcon", {}, () => [
1026
- S(o(le), {
1247
+ suffixIcon: h(() => [
1248
+ P(a.$slots, "suffixIcon", {}, () => [
1249
+ $(d(Se), {
1027
1250
  class: "das-suffix-icon",
1028
1251
  icon: "dengdai",
1029
- size: "medium"
1252
+ size: "medium",
1253
+ "icon-color": "#666666"
1030
1254
  })
1031
1255
  ], !0)
1032
1256
  ]),
1033
- separator: c(() => [
1034
- $(t.$slots, "separator", {}, () => [
1035
- e[1] || (e[1] = E("div", { style: { padding: "0 8px" } }, "~", -1))
1257
+ separator: h(() => [
1258
+ P(a.$slots, "separator", {}, () => [
1259
+ c[0] || (c[0] = J("div", { style: { padding: "0 8px" } }, "~", -1))
1036
1260
  ], !0)
1037
1261
  ]),
1038
1262
  _: 3
1039
1263
  }, 16, ["value", "size", "popupClassName", "showNow", "bordered", "placeholder", "disabled", "style", "popupStyle"])), [
1040
- [o(ye), ue]
1264
+ [d(_e), De]
1041
1265
  ])
1042
1266
  ]),
1043
1267
  _: 3
@@ -1045,25 +1269,25 @@ const je = { class: "ant-picker-cell-inner" }, Ke = {
1045
1269
  ]),
1046
1270
  _: 3
1047
1271
  }, 8, ["locale"]),
1048
- t.error && t.errorLabel ? (v(), z(ne, { key: 0 }, [
1049
- t.errorMode === "default" ? (v(), z("div", yr, [
1050
- E("span", {
1051
- style: X(Y.value)
1052
- }, O(t.errorLabel), 5)
1053
- ])) : P("", !0),
1054
- t.errorMode === "overlay" && C.value ? (v(), H(o(he), {
1272
+ a.error && a.errorLabel ? (y(), M(Ve, { key: 0 }, [
1273
+ a.errorMode === "default" ? (y(), M("div", qt, [
1274
+ J("span", {
1275
+ style: he(p.value)
1276
+ }, ae(a.errorLabel), 5)
1277
+ ])) : H("", !0),
1278
+ a.errorMode === "overlay" && ee.value ? (y(), ve(d(We), {
1055
1279
  key: 1,
1056
- errorLabel: t.errorLabel,
1280
+ errorLabel: a.errorLabel,
1057
1281
  getEl: () => {
1058
- var i;
1059
- return (i = p.value) == null ? void 0 : i.$el;
1282
+ var b;
1283
+ return (b = v.value) == null ? void 0 : b.$el;
1060
1284
  },
1061
- errorModelZIndex: t.errorModelZIndex
1062
- }, null, 8, ["errorLabel", "getEl", "errorModelZIndex"])) : P("", !0)
1063
- ], 64)) : P("", !0)
1285
+ errorModelZIndex: a.errorModelZIndex
1286
+ }, null, 8, ["errorLabel", "getEl", "errorModelZIndex"])) : H("", !0)
1287
+ ], 64)) : H("", !0)
1064
1288
  ], 6));
1065
1289
  }
1066
- }), gr = /* @__PURE__ */ be(kr, [["__scopeId", "data-v-897bf2ce"]]), wr = {
1290
+ }), Ht = /* @__PURE__ */ Oe(Ut, [["__scopeId", "data-v-62ff6a8e"]]), Xt = {
1067
1291
  开始日期: { "zh-CN": "开始日期", en: "Start Date", "zh-MO": "開始日期", _appCode: "framework" },
1068
1292
  结束日期: { "zh-CN": "结束日期", en: "End Date", "zh-MO": "結束日期", _appCode: "framework" },
1069
1293
  开始时间: { "zh-CN": "开始时间", en: "Start Time", "zh-MO": "開始時間", _appCode: "framework" },
@@ -1071,13 +1295,13 @@ const je = { class: "ant-picker-cell-inner" }, Ke = {
1071
1295
  请选择日期: { "zh-CN": "请选择日期", en: "Please select a date", "zh-MO": "請選擇日期", _appCode: "framework" },
1072
1296
  请选择时间: { "zh-CN": "请选择时间", en: "Please select the time", "zh-MO": "請選擇時間", _appCode: "framework" }
1073
1297
  };
1074
- Ue(wr);
1075
- const Fr = ce(Xe), Or = ce(rr), qr = ce(dr), Ur = ce(mr), _r = ce(gr), jr = { name: "datePicker 日期时间选择器" };
1298
+ Tt(Xt);
1299
+ const ko = xe(zt), bo = xe(Ft), go = xe(Rt), To = xe(Yt), wo = xe(Ht), Zo = { name: "datePicker 日期时间选择器" };
1076
1300
  export {
1077
- Fr as DasDatePicker,
1078
- Or as DasDateRangePicker,
1079
- qr as DasRangePicker,
1080
- Ur as DasTimePicker,
1081
- _r as DasTimeRangePicker,
1082
- jr as default
1301
+ ko as DasDatePicker,
1302
+ bo as DasDateRangePicker,
1303
+ go as DasRangePicker,
1304
+ To as DasTimePicker,
1305
+ wo as DasTimeRangePicker,
1306
+ Zo as default
1083
1307
  };