@das-fed/ui 6.4.0-dev.55.24 → 6.4.0-dev.55.26

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 (49) hide show
  1. package/package.json +5 -5
  2. package/packages/components/autocomplete/index.js +19 -25
  3. package/packages/components/autocomplete/index.js.gz +0 -0
  4. package/packages/components/autocomplete/style.css +1 -1
  5. package/packages/components/autocomplete/style.css.gz +0 -0
  6. package/packages/components/cascader/index.js +41 -40
  7. package/packages/components/cascader/index.js.gz +0 -0
  8. package/packages/components/cascader/style.css +1 -1
  9. package/packages/components/cascader/style.css.gz +0 -0
  10. package/packages/components/date-picker/index.js +238 -237
  11. package/packages/components/date-picker/index.js.gz +0 -0
  12. package/packages/components/date-picker/style.css +1 -1
  13. package/packages/components/date-picker/style.css.gz +0 -0
  14. package/packages/components/edit-table/index.d.ts +2 -2
  15. package/packages/components/edit-table/index.js +1005 -1017
  16. package/packages/components/edit-table/index.js.gz +0 -0
  17. package/packages/components/edit-table/src/hooks/use-validator.d.ts +1 -0
  18. package/packages/components/edit-table/src/utils.d.ts +0 -2
  19. package/packages/components/form-item/index.js +3 -3
  20. package/packages/components/form-item/index.js.gz +0 -0
  21. package/packages/components/input/index.js +76 -76
  22. package/packages/components/input/index.js.gz +0 -0
  23. package/packages/components/input/style.css +1 -1
  24. package/packages/components/input/style.css.gz +0 -0
  25. package/packages/components/input-dialog-select/index.js +18 -18
  26. package/packages/components/input-dialog-select/index.js.gz +0 -0
  27. package/packages/components/input-dialog-select/style.css +1 -1
  28. package/packages/components/input-dialog-select/style.css.gz +0 -0
  29. package/packages/components/input-number/index.js +63 -63
  30. package/packages/components/input-number/index.js.gz +0 -0
  31. package/packages/components/input-number/src/App.vue.d.ts +1 -3
  32. package/packages/components/input-number/style.css +1 -1
  33. package/packages/components/input-number/style.css.gz +0 -0
  34. package/packages/components/map/index.js +38 -37
  35. package/packages/components/map/index.js.gz +0 -0
  36. package/packages/components/select/index.js +70 -70
  37. package/packages/components/select/index.js.gz +0 -0
  38. package/packages/components/select/style.css +1 -1
  39. package/packages/components/select/style.css.gz +0 -0
  40. package/packages/components/special-range-picker-month/index.js +3 -3
  41. package/packages/components/special-range-picker-month/index.js.gz +0 -0
  42. package/packages/components/special-range-picker-year/index.js +42 -42
  43. package/packages/components/special-range-picker-year/index.js.gz +0 -0
  44. package/packages/components/text-tooltip/index.js +150 -150
  45. package/packages/components/text-tooltip/index.js.gz +0 -0
  46. package/packages/components/tree/index.js +221 -221
  47. package/packages/components/tree/index.js.gz +0 -0
  48. package/packages/components/tree-select/index.js +68 -73
  49. package/packages/components/tree-select/index.js.gz +0 -0
@@ -1,11 +1,11 @@
1
1
  import '@das-fed/ui/packages/components/special-range-picker-year/style.css';
2
2
  import { withInstall as ge } from "@das-fed/utils/with-install/index";
3
3
  import { i18n as N, setI18nRule as fe } from "@das-fed/web/packages/i18n/index";
4
- import { getVarValue as U, getVar as H, setThemeRule as be } from "@das-fed/web/packages/theme/index";
5
- import { ref as y, computed as W, defineComponent as he, onMounted as me, openBlock as I, createElementBlock as E, normalizeStyle as P, unref as e, createElementVNode as d, normalizeClass as S, createVNode as V, withCtx as X, toDisplayString as x, withDirectives as ee, createTextVNode as O, Fragment as Y, renderList as ae, createBlock as ke, Teleport as De, createCommentVNode as re } from "vue";
6
- import { ElPopover as ye, ClickOutside as we } from "element-plus";
4
+ import { getVarValue as U, getVar as H, setThemeRule as he } from "@das-fed/web/packages/theme/index";
5
+ import { ref as y, computed as W, defineComponent as be, onMounted as me, openBlock as I, createElementBlock as E, normalizeStyle as P, unref as e, createElementVNode as d, normalizeClass as S, createVNode as V, withCtx as X, toDisplayString as x, withDirectives as ee, createTextVNode as O, Fragment as Y, renderList as ae, createBlock as ke, Teleport as De, createCommentVNode as re } from "vue";
6
+ import { ElPopover as ye, ClickOutside as Me } from "element-plus";
7
7
  import "element-plus/es/components/popover/style/css";
8
- import { vDasTooltip as Me } from "@das-fed/ui/packages/components/text-tooltip/index";
8
+ import { vDasTooltip as we } from "@das-fed/ui/packages/components/text-tooltip/index";
9
9
  import { DasIconEmpty as $e } from "@das-fed/ui/packages/icons/empty/index";
10
10
  import { DasIconDate as Ie } from "@das-fed/ui/packages/icons/date/index";
11
11
  import { DasIconLeft as xe } from "@das-fed/ui/packages/icons/left/index";
@@ -15,7 +15,7 @@ import "@das-fed/ui/packages/global/theme";
15
15
  const oe = () => ({ getDateTime: (t) => {
16
16
  const v = `2020/${t}`;
17
17
  return new Date(v).getTime();
18
- }, formatDateStr: (t) => t >= 10 ? t : "0" + t }), Ee = (k, g, r, t, v, l, M) => {
18
+ }, formatDateStr: (t) => t >= 10 ? t : "0" + t }), Ee = (k, g, r, t, v, l, w) => {
19
19
  const i = y({ begin: "", end: "" }), C = y(""), { getDateTime: f, formatDateStr: u } = oe();
20
20
  return {
21
21
  popClickData: i,
@@ -66,7 +66,7 @@ const oe = () => ({ getDateTime: (t) => {
66
66
  left: k.value,
67
67
  right: g.value
68
68
  }, o = `${u(m[s])}/${u(n)}`;
69
- t.value === "begin" ? i.value.begin = o : i.value.end = o, v.value === 1 ? t.value = t.value === "begin" ? "end" : "begin" : M();
69
+ t.value === "begin" ? i.value.begin = o : i.value.end = o, v.value === 1 ? t.value = t.value === "begin" ? "end" : "begin" : w();
70
70
  },
71
71
  mouseEnter: (n, s) => {
72
72
  const m = {
@@ -91,7 +91,7 @@ const oe = () => ({ getDateTime: (t) => {
91
91
  padding: "2px 8px",
92
92
  "box-sizing": "border-box",
93
93
  "z-index": k.errorModelZIndex
94
- })), M = W(() => ({
94
+ })), w = W(() => ({
95
95
  ...l.value,
96
96
  width: t.value + "px",
97
97
  position: "fixed",
@@ -102,19 +102,19 @@ const oe = () => ({ getDateTime: (t) => {
102
102
  display: "block",
103
103
  "text-align": "left",
104
104
  color: U("--das-ui-special-range-picker-error").value,
105
- "white-space": "break-spaces",
106
- "word-break": "break-all"
105
+ "white-space": "break-spaces"
106
+ // 'word-break': 'break-all',
107
107
  }), C = () => {
108
108
  var R, B, z;
109
109
  t.value = (R = g.value) == null ? void 0 : R.clientWidth;
110
- const { top: b, left: h } = (B = g.value) == null ? void 0 : B.getBoundingClientRect(), w = (z = g.value) == null ? void 0 : z.clientHeight;
111
- v.value.x = h, v.value.y = b + w;
110
+ const { top: h = 0, left: b = 0 } = ((B = g.value) == null ? void 0 : B.getBoundingClientRect()) ?? {}, M = (z = g.value) == null ? void 0 : z.clientHeight;
111
+ v.value.x = b, v.value.y = h + M;
112
112
  };
113
113
  return {
114
114
  $dasSpecialRangeYearPicker: g,
115
115
  isHoverInInput: r,
116
116
  errorModalBaseSyle: l,
117
- errorModelStyle: M,
117
+ errorModelStyle: w,
118
118
  errorLabelStyle: i,
119
119
  errorModalInputMouseEnter: () => {
120
120
  C(), r.value = !0;
@@ -126,7 +126,7 @@ const oe = () => ({ getDateTime: (t) => {
126
126
  }, Re = { class: "date-container" }, Le = { class: "year-container" }, _e = { class: "month-container left-month-container" }, Be = { class: "header" }, ze = ["onMouseenter", "onClick"], Pe = { class: "item-text" }, Ve = { class: "month-container right-month-container" }, Fe = { class: "header" }, Ne = ["onMouseenter", "onClick"], He = { class: "item-text" }, Ye = {
127
127
  key: 0,
128
128
  class: "das-special-range-picker-error-label-content"
129
- }, Te = /* @__PURE__ */ he({
129
+ }, Te = /* @__PURE__ */ be({
130
130
  __name: "Index",
131
131
  props: {
132
132
  modelValue: {},
@@ -143,19 +143,19 @@ const oe = () => ({ getDateTime: (t) => {
143
143
  },
144
144
  emits: ["update:modelValue", "update:error", "change", "show-popover"],
145
145
  setup(k, { emit: g }) {
146
- const r = k, t = g, v = y(!1), l = te(r, "modelValue"), M = y(["", ""]), i = te(r, "error"), C = y(0), f = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], u = y({}), b = y(1), h = y(2), w = y(void 0);
146
+ const r = k, t = g, v = y(!1), l = te(r, "modelValue"), w = y(["", ""]), i = te(r, "error"), C = y(0), f = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], u = y({}), h = y(1), b = y(2), M = y(void 0);
147
147
  let R = !0;
148
148
  const B = y(0), z = W(() => !r.disabled && !r.isView && l.value[0] && l.value[1]), T = (p, c) => {
149
149
  if (!(r.disabled || r.isView)) {
150
- if (R = !1, v.value = !0, w.value = c, B.value = 0, M.value = [l.value[0], l.value[1]], p) {
150
+ if (R = !1, v.value = !0, M.value = c, B.value = 0, w.value = [l.value[0], l.value[1]], p) {
151
151
  const a = Number(p.split("/")[0]);
152
- c === "begin" ? (b.value = a < 12 ? a : 11, h.value = b.value + 1) : (h.value = a > 1 ? a : 2, b.value = h.value - 1);
152
+ c === "begin" ? (h.value = a < 12 ? a : 11, b.value = h.value + 1) : (b.value = a > 1 ? a : 2, h.value = b.value - 1);
153
153
  } else
154
- b.value = C.value < 12 ? C.value : 11, h.value = b.value + 1;
154
+ h.value = C.value < 12 ? C.value : 11, b.value = h.value + 1;
155
155
  t("show-popover");
156
156
  }
157
157
  }, Z = () => {
158
- w.value = void 0;
158
+ M.value = void 0;
159
159
  const p = s.value;
160
160
  t("update:modelValue", [p.begin, p.end]), t("change", [p.begin, p.end]), t("update:error", !1), v.value = !1;
161
161
  }, { formatDateStr: n } = oe(), {
@@ -168,7 +168,7 @@ const oe = () => ({ getDateTime: (t) => {
168
168
  clickData: A,
169
169
  mouseEnter: j,
170
170
  mouseLeave: F
171
- } = Ee(b, h, M, w, B, l, Z), {
171
+ } = Ee(h, b, w, M, B, l, Z), {
172
172
  $dasSpecialRangeYearPicker: ne,
173
173
  isHoverInInput: q,
174
174
  errorModalBaseSyle: le,
@@ -177,16 +177,16 @@ const oe = () => ({ getDateTime: (t) => {
177
177
  errorModalInputMouseEnter: J,
178
178
  errorModallInputMouseLeave: K
179
179
  } = Se(r), ie = () => {
180
- b.value !== 1 && (b.value--, h.value--);
180
+ h.value !== 1 && (h.value--, b.value--);
181
181
  }, ue = () => {
182
- h.value !== 12 && (h.value++, b.value++);
182
+ b.value !== 12 && (b.value++, h.value++);
183
183
  }, ce = () => {
184
184
  setTimeout(() => {
185
185
  if (!R) {
186
186
  R = !0;
187
187
  return;
188
188
  }
189
- M.value = ["", ""], s.value = { begin: l.value[0], end: l.value[1] }, w.value = void 0, v.value = !1;
189
+ w.value = ["", ""], s.value = { begin: l.value[0], end: l.value[1] }, M.value = void 0, v.value = !1;
190
190
  }, 50);
191
191
  }, de = () => {
192
192
  t("update:modelValue", [null, null]), t("update:error", !1), t("change", [null, null]);
@@ -217,7 +217,7 @@ const oe = () => ({ getDateTime: (t) => {
217
217
  p.borderType,
218
218
  r.disabled ? "disabled" : "",
219
219
  r.isView ? "readonly" : "",
220
- { active: w.value !== void 0 },
220
+ { active: M.value !== void 0 },
221
221
  e(i) ? "is-error" : "",
222
222
  p.size
223
223
  ]])
@@ -236,12 +236,12 @@ const oe = () => ({ getDateTime: (t) => {
236
236
  "div",
237
237
  {
238
238
  class: S(["left-date", {
239
- placeholder: !e(l)[0] || w.value === "begin" && M.value[0],
240
- active: w.value === "begin"
239
+ placeholder: !e(l)[0] || M.value === "begin" && w.value[0],
240
+ active: M.value === "begin"
241
241
  }]),
242
242
  onClick: c[0] || (c[0] = (a) => T(e(l)[0], "begin"))
243
243
  },
244
- x(M.value[0] || e(l)[0] || e(N)("das-special-range-picker-begin-date").value),
244
+ x(w.value[0] || e(l)[0] || e(N)("das-special-range-picker-begin-date").value),
245
245
  3
246
246
  /* TEXT, CLASS */
247
247
  ),
@@ -256,12 +256,12 @@ const oe = () => ({ getDateTime: (t) => {
256
256
  "div",
257
257
  {
258
258
  class: S(["right-date", {
259
- placeholder: !e(l)[1] || w.value === "end" && M.value[1],
260
- active: w.value === "end"
259
+ placeholder: !e(l)[1] || M.value === "end" && w.value[1],
260
+ active: M.value === "end"
261
261
  }]),
262
262
  onClick: c[1] || (c[1] = (a) => T(e(l)[1], "end"))
263
263
  },
264
- x(M.value[1] || e(l)[1] || e(N)("das-special-range-picker-end-date").value),
264
+ x(w.value[1] || e(l)[1] || e(N)("das-special-range-picker-end-date").value),
265
265
  3
266
266
  /* TEXT, CLASS */
267
267
  ),
@@ -296,7 +296,7 @@ const oe = () => ({ getDateTime: (t) => {
296
296
  d(
297
297
  "div",
298
298
  {
299
- class: S(["turn-btn turn-left", { disabled: b.value === 1 }])
299
+ class: S(["turn-btn turn-left", { disabled: h.value === 1 }])
300
300
  },
301
301
  [
302
302
  V(e(xe), {
@@ -310,7 +310,7 @@ const oe = () => ({ getDateTime: (t) => {
310
310
  /* CLASS */
311
311
  ),
312
312
  O(
313
- " " + x(b.value) + x(e(N)("das-special-range-picker-month").value),
313
+ " " + x(h.value) + x(e(N)("das-special-range-picker-month").value),
314
314
  1
315
315
  /* TEXT */
316
316
  )
@@ -326,12 +326,12 @@ const oe = () => ({ getDateTime: (t) => {
326
326
  (I(!0), E(
327
327
  Y,
328
328
  null,
329
- ae(u.value[b.value], (a) => (I(), E("div", {
329
+ ae(u.value[h.value], (a) => (I(), E("div", {
330
330
  class: S(["item", {
331
331
  "in-range": e(m)(a, "left") || e(o)(a, "left"),
332
332
  "new-range": e(D)(a, "left"),
333
- "range-start": e(s).begin === `${e(n)(b.value)}/${e(n)(a)}`,
334
- "range-end": e(s).end === `${e(n)(b.value)}/${e(n)(a)}`,
333
+ "range-start": e(s).begin === `${e(n)(h.value)}/${e(n)(a)}`,
334
+ "range-end": e(s).end === `${e(n)(h.value)}/${e(n)(a)}`,
335
335
  "out-range": e($)(a, "left") || e(L)(a, "left")
336
336
  }]),
337
337
  onMouseenter: (_) => e(j)(a, "left"),
@@ -358,7 +358,7 @@ const oe = () => ({ getDateTime: (t) => {
358
358
  d(
359
359
  "div",
360
360
  {
361
- class: S(["turn-btn turn-right", { disabled: h.value === 12 }])
361
+ class: S(["turn-btn turn-right", { disabled: b.value === 12 }])
362
362
  },
363
363
  [
364
364
  V(e(Ce), {
@@ -372,7 +372,7 @@ const oe = () => ({ getDateTime: (t) => {
372
372
  /* CLASS */
373
373
  ),
374
374
  O(
375
- " " + x(h.value) + x(e(N)("das-special-range-picker-month").value),
375
+ " " + x(b.value) + x(e(N)("das-special-range-picker-month").value),
376
376
  1
377
377
  /* TEXT */
378
378
  )
@@ -388,12 +388,12 @@ const oe = () => ({ getDateTime: (t) => {
388
388
  (I(!0), E(
389
389
  Y,
390
390
  null,
391
- ae(u.value[h.value], (a) => (I(), E("div", {
391
+ ae(u.value[b.value], (a) => (I(), E("div", {
392
392
  class: S(["item", {
393
393
  "in-range": e(m)(a, "right") || e(o)(a, "right"),
394
394
  "new-range": e(D)(a, "right"),
395
- "range-start": e(s).begin === `${e(n)(h.value)}/${e(n)(a)}`,
396
- "range-end": e(s).end === `${e(n)(h.value)}/${e(n)(a)}`,
395
+ "range-start": e(s).begin === `${e(n)(b.value)}/${e(n)(a)}`,
396
+ "range-end": e(s).end === `${e(n)(b.value)}/${e(n)(a)}`,
397
397
  "out-range": e($)(a, "right") || e(L)(a, "right")
398
398
  }]),
399
399
  onMouseenter: (_) => e(j)(a, "right"),
@@ -416,7 +416,7 @@ const oe = () => ({ getDateTime: (t) => {
416
416
  )
417
417
  ])
418
418
  ])), [
419
- [e(we), ce]
419
+ [e(Me), ce]
420
420
  ])
421
421
  ]),
422
422
  _: 1
@@ -437,7 +437,7 @@ const oe = () => ({ getDateTime: (t) => {
437
437
  /* TEXT */
438
438
  )
439
439
  ])), [
440
- [e(Me)]
440
+ [e(we)]
441
441
  ]) : e(q) ? (I(), E(
442
442
  Y,
443
443
  { key: 1 },
@@ -527,7 +527,7 @@ const oe = () => ({ getDateTime: (t) => {
527
527
  "--das-ui-special-range-picker-overlay-error-bg-color": { light: "#FFDBE0" }
528
528
  }, na = ge(We);
529
529
  fe(Ze);
530
- be(Ae);
530
+ he(Ae);
531
531
  export {
532
532
  na as DasSpecialRangePickerYear,
533
533
  na as default