@das-fed/ui 6.4.0-dev.108 → 6.4.0-dev.109

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