@das-fed/ui 6.4.0-test.10 → 6.4.0-test.11

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