@das-fed/ui 6.4.0-dev.91 → 6.4.0-dev.93

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