@das-fed/upf-ui 6.4.0-dev.288 → 6.4.0-dev.290

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