@das-fed/ui 6.4.0-test.5.1 → 6.4.0-test.6.1

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 (103) hide show
  1. package/package.json +5 -5
  2. package/packages/business-components/device-panel/index.js +37113 -36843
  3. package/packages/business-components/device-panel/index.js.gz +0 -0
  4. package/packages/business-components/device-panel/src/apis.d.ts +0 -2
  5. package/packages/business-components/device-panel/style.css +1 -1
  6. package/packages/business-components/device-panel/style.css.gz +0 -0
  7. package/packages/business-components/import-button/i18n/index.d.ts +16 -6
  8. package/packages/business-components/import-button/index.js +147 -141
  9. package/packages/business-components/import-button/index.js.gz +0 -0
  10. package/packages/business-components/import-button/style.css +1 -1
  11. package/packages/business-components/process-configuration/i18n/index.d.ts +5 -0
  12. package/packages/business-components/process-configuration/index.js +2 -1
  13. package/packages/business-components/process-configuration/index.js.gz +0 -0
  14. package/packages/business-components/process-configuration/src/hooks/useDeleteDialog.d.ts +2 -3
  15. package/packages/business-components/process-form/index.js +64 -63
  16. package/packages/business-components/process-form/index.js.gz +0 -0
  17. package/packages/business-components/process-form/style.css +1 -1
  18. package/packages/business-components/process-search-form/index.js +56 -56
  19. package/packages/business-components/process-search-form/index.js.gz +0 -0
  20. package/packages/business-components/process-table/index.js +539 -528
  21. package/packages/business-components/process-table/index.js.gz +0 -0
  22. package/packages/components/autocomplete/index.d.ts +13 -4
  23. package/packages/components/autocomplete/index.js +135 -122
  24. package/packages/components/autocomplete/index.js.gz +0 -0
  25. package/packages/components/autocomplete/src/index.vue.d.ts +2 -1
  26. package/packages/components/autocomplete/src/type.d.ts +4 -1
  27. package/packages/components/autocomplete/style.css +1 -1
  28. package/packages/components/autocomplete/style.css.gz +0 -0
  29. package/packages/components/cascader/index.js +41 -40
  30. package/packages/components/cascader/index.js.gz +0 -0
  31. package/packages/components/cascader/style.css +1 -1
  32. package/packages/components/cascader/style.css.gz +0 -0
  33. package/packages/components/date-picker/index.js +238 -237
  34. package/packages/components/date-picker/index.js.gz +0 -0
  35. package/packages/components/date-picker/style.css +1 -1
  36. package/packages/components/date-picker/style.css.gz +0 -0
  37. package/packages/components/edit-table/index.d.ts +9 -9
  38. package/packages/components/edit-table/index.js +2010 -1658
  39. package/packages/components/edit-table/index.js.gz +0 -0
  40. package/packages/components/edit-table/src/hooks/use-validator.d.ts +9 -3
  41. package/packages/components/edit-table/src/index.vue.d.ts +1 -1
  42. package/packages/components/edit-table/src/type.d.ts +13 -0
  43. package/packages/components/edit-table/src/utils.d.ts +9 -5
  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 +3 -3
  47. package/packages/components/form-item/index.js.gz +0 -0
  48. package/packages/components/input/index.js +103 -102
  49. package/packages/components/input/index.js.gz +0 -0
  50. package/packages/components/input/style.css +1 -1
  51. package/packages/components/input/style.css.gz +0 -0
  52. package/packages/components/input-dialog-select/index.js +18 -18
  53. package/packages/components/input-dialog-select/index.js.gz +0 -0
  54. package/packages/components/input-dialog-select/style.css +1 -1
  55. package/packages/components/input-dialog-select/style.css.gz +0 -0
  56. package/packages/components/input-number/index.js +63 -63
  57. package/packages/components/input-number/index.js.gz +0 -0
  58. package/packages/components/input-number/src/App.vue.d.ts +1 -3
  59. package/packages/components/input-number/style.css +1 -1
  60. package/packages/components/input-number/style.css.gz +0 -0
  61. package/packages/components/map/index.js +388 -385
  62. package/packages/components/map/index.js.gz +0 -0
  63. package/packages/components/menu-aside/index.js +680 -606
  64. package/packages/components/menu-aside/index.js.gz +0 -0
  65. package/packages/components/search-form/i18n/index.d.ts +5 -0
  66. package/packages/components/search-form/index.js +44 -43
  67. package/packages/components/search-form/index.js.gz +0 -0
  68. package/packages/components/search-form/style.css +1 -1
  69. package/packages/components/search-form/style.css.gz +0 -0
  70. package/packages/components/select/index.js +213 -213
  71. package/packages/components/select/index.js.gz +0 -0
  72. package/packages/components/select/style.css +1 -1
  73. package/packages/components/select/style.css.gz +0 -0
  74. package/packages/components/select-list/index.d.ts +23 -3
  75. package/packages/components/select-list/index.js +599 -565
  76. package/packages/components/select-list/index.js.gz +0 -0
  77. package/packages/components/select-list/src/Index.vue.d.ts +9 -1
  78. package/packages/components/select-list/src/hooks/use-select-list.d.ts +2 -0
  79. package/packages/components/select-list/src/type.d.ts +22 -4
  80. package/packages/components/select-list/style.css +1 -1
  81. package/packages/components/select-list/style.css.gz +0 -0
  82. package/packages/components/special-range-picker-month/index.js +3 -3
  83. package/packages/components/special-range-picker-month/index.js.gz +0 -0
  84. package/packages/components/special-range-picker-year/index.js +42 -42
  85. package/packages/components/special-range-picker-year/index.js.gz +0 -0
  86. package/packages/components/table/i18n/index.d.ts +0 -20
  87. package/packages/components/table/index.js +0 -4
  88. package/packages/components/table/index.js.gz +0 -0
  89. package/packages/components/table/style.css +1 -1
  90. package/packages/components/table/style.css.gz +0 -0
  91. package/packages/components/text-tooltip/index.js +660 -651
  92. package/packages/components/text-tooltip/index.js.gz +0 -0
  93. package/packages/components/text-tooltip/src/type.d.ts +1 -62
  94. package/packages/components/tree/index.js +222 -222
  95. package/packages/components/tree/index.js.gz +0 -0
  96. package/packages/components/tree/src/type.d.ts +1 -0
  97. package/packages/components/tree-select/index.js +374 -345
  98. package/packages/components/tree-select/index.js.gz +0 -0
  99. package/packages/components/tree-select/src/App.vue.d.ts +1 -0
  100. package/packages/components/tree-select/src/hooks/use-tree-select.d.ts +2 -1
  101. package/packages/components/tree-select/src/type.d.ts +3 -0
  102. package/packages/components/tree-select/style.css +1 -1
  103. package/packages/components/tree-select/style.css.gz +0 -0
@@ -1,11 +1,11 @@
1
1
  import '@das-fed/ui/packages/components/autocomplete/style.css';
2
- import { pushScopeId as Ve, popScopeId as ke, nextTick as ue, openBlock as O, createBlock as U, withScopeId as Oe, markRaw as Te, shallowReactive as xe, resolveComponent as Ce, resolveDirective as Ne, withDirectives as B, createElementBlock as E, normalizeClass as ee, renderSlot as j, createCommentVNode as te, resolveDynamicComponent as he, normalizeStyle as ie, withCtx as F, Fragment as Me, renderList as ge, mergeProps as se, toHandlers as Pe, createVNode as re, defineComponent as Re, computed as q, ref as x, watch as J, onMounted as Ee, onUnmounted as Ae, createElementVNode as me, withModifiers as pe, unref as R, isRef as Le, createSlots as He, createTextVNode as De, toDisplayString as Fe, vShow as ve } from "vue";
3
- import { withInstall as Be } from "@das-fed/utils/with-install/index";
4
- import { ElPopover as je } from "element-plus/es";
2
+ import { pushScopeId as Oe, popScopeId as Te, nextTick as ue, openBlock as k, createBlock as U, withScopeId as xe, markRaw as Ce, shallowReactive as Ne, resolveComponent as Me, resolveDirective as Pe, withDirectives as F, createElementBlock as E, normalizeClass as ee, renderSlot as j, createCommentVNode as te, resolveDynamicComponent as he, normalizeStyle as ie, withCtx as B, Fragment as Re, renderList as Se, mergeProps as se, toHandlers as Ee, createVNode as re, defineComponent as Ae, computed as q, ref as x, watch as J, onMounted as Le, onUnmounted as De, withModifiers as me, unref as P, isRef as He, createSlots as Fe, createTextVNode as pe, toDisplayString as ve, createElementVNode as Be, vShow as ye } from "vue";
3
+ import { withInstall as je } from "@das-fed/utils/with-install/index";
4
+ import { ElPopover as Ue } from "element-plus/es";
5
5
  import "element-plus/es/components/base/style/css";
6
6
  import "element-plus/es/components/popover/style/css";
7
- import { DasInput as Ue } from "@das-fed/ui/packages/components/input/index";
8
- import { vDasTooltip as We } from "@das-fed/ui/packages/components/text-tooltip/index";
7
+ import { DasInput as We } from "@das-fed/ui/packages/components/input/index";
8
+ import { vDasTooltip as be } from "@das-fed/ui/packages/components/text-tooltip/index";
9
9
  import { vOverlay as Ke } from "@das-fed/ui/packages/components/overlay/index";
10
10
  import { DasTree as qe } from "@das-fed/ui/packages/components/tree/index";
11
11
  import { useModelValue as Q } from "@das-fed/utils/vue";
@@ -73,14 +73,14 @@ var G = {
73
73
  }
74
74
  }
75
75
  };
76
- const Xe = /* @__PURE__ */ Oe("data-v-b329ee4c");
77
- Ve("data-v-b329ee4c");
76
+ const Xe = /* @__PURE__ */ xe("data-v-b329ee4c");
77
+ Oe("data-v-b329ee4c");
78
78
  const Ge = {
79
79
  class: "resize-observer",
80
80
  tabindex: "-1"
81
81
  };
82
- ke();
83
- const Je = /* @__PURE__ */ Xe((e, t, i, s, n, u) => (O(), U("div", Ge)));
82
+ Te();
83
+ const Je = /* @__PURE__ */ Xe((e, t, i, s, n, u) => (k(), U("div", Ge)));
84
84
  G.render = Je;
85
85
  G.__scopeId = "data-v-b329ee4c";
86
86
  G.__file = "src/components/ResizeObserver.vue";
@@ -105,7 +105,7 @@ function Ze(e, t) {
105
105
  function et(e, t, i) {
106
106
  return t && Ze(e.prototype, t), e;
107
107
  }
108
- function ye(e) {
108
+ function ge(e) {
109
109
  return tt(e) || it(e) || st(e) || rt();
110
110
  }
111
111
  function tt(e) {
@@ -142,9 +142,9 @@ function lt(e, t) {
142
142
  for (var h = arguments.length, b = new Array(h > 1 ? h - 1 : 0), V = 1; V < h; V++)
143
143
  b[V - 1] = arguments[V];
144
144
  if (u = b, !(s && l === n)) {
145
- var P = i.leading;
146
- typeof P == "function" && (P = P(l, n)), (!s || l !== n) && P && e.apply(void 0, [l].concat(ye(u))), n = l, clearTimeout(s), s = setTimeout(function() {
147
- e.apply(void 0, [l].concat(ye(u))), s = 0;
145
+ var R = i.leading;
146
+ typeof R == "function" && (R = R(l, n)), (!s || l !== n) && R && e.apply(void 0, [l].concat(ge(u))), n = l, clearTimeout(s), s = setTimeout(function() {
147
+ e.apply(void 0, [l].concat(ge(u))), s = 0;
148
148
  }, t);
149
149
  }
150
150
  };
@@ -152,11 +152,11 @@ function lt(e, t) {
152
152
  clearTimeout(s), s = null;
153
153
  }, c;
154
154
  }
155
- function we(e, t) {
155
+ function ze(e, t) {
156
156
  if (e === t) return !0;
157
157
  if (X(e) === "object") {
158
158
  for (var i in e)
159
- if (!we(e[i], t[i]))
159
+ if (!ze(e[i], t[i]))
160
160
  return !1;
161
161
  return !0;
162
162
  }
@@ -211,7 +211,7 @@ var ot = /* @__PURE__ */ function() {
211
211
  }
212
212
  }]), e;
213
213
  }();
214
- function Se(e, t, i) {
214
+ function _e(e, t, i) {
215
215
  var s = t.value;
216
216
  if (s && !(typeof IntersectionObserver > "u")) {
217
217
  var n = new ot(e, s, i);
@@ -220,30 +220,30 @@ function Se(e, t, i) {
220
220
  }
221
221
  function at(e, t, i) {
222
222
  var s = t.value, n = t.oldValue;
223
- if (!we(s, n)) {
223
+ if (!ze(s, n)) {
224
224
  var u = e._vue_visibilityState;
225
225
  if (!s) {
226
- ze(e);
226
+ Ie(e);
227
227
  return;
228
228
  }
229
- u ? u.createObserver(s, i) : Se(e, {
229
+ u ? u.createObserver(s, i) : _e(e, {
230
230
  value: s
231
231
  }, i);
232
232
  }
233
233
  }
234
- function ze(e) {
234
+ function Ie(e) {
235
235
  var t = e._vue_visibilityState;
236
236
  t && (t.destroyObserver(), delete e._vue_visibilityState);
237
237
  }
238
238
  var ut = {
239
- beforeMount: Se,
239
+ beforeMount: _e,
240
240
  updated: at,
241
- unmounted: ze
241
+ unmounted: Ie
242
242
  }, dt = {
243
243
  itemsLimit: 1e3
244
244
  }, ct = /(auto|scroll)/;
245
- function _e(e, t) {
246
- return e.parentNode === null ? t : _e(e.parentNode, t.concat([e]));
245
+ function $e(e, t) {
246
+ return e.parentNode === null ? t : $e(e.parentNode, t.concat([e]));
247
247
  }
248
248
  var Z = function(t, i) {
249
249
  return getComputedStyle(t, null).getPropertyValue(i);
@@ -252,9 +252,9 @@ var Z = function(t, i) {
252
252
  }, ht = function(t) {
253
253
  return ct.test(ft(t));
254
254
  };
255
- function be(e) {
255
+ function we(e) {
256
256
  if (e instanceof HTMLElement || e instanceof SVGElement) {
257
- for (var t = _e(e.parentNode, []), i = 0; i < t.length; i += 1)
257
+ for (var t = $e(e.parentNode, []), i = 0; i < t.length; i += 1)
258
258
  if (ht(t[i]))
259
259
  return t[i];
260
260
  return document.scrollingElement || document.documentElement;
@@ -461,13 +461,13 @@ var de = {
461
461
  },
462
462
  methods: {
463
463
  addView(e, t, i, s, n) {
464
- const u = Te({
464
+ const u = Ce({
465
465
  id: yt++,
466
466
  index: t,
467
467
  used: !0,
468
468
  key: s,
469
469
  type: n
470
- }), c = xe({
470
+ }), c = Ne({
471
471
  item: i,
472
472
  position: 0,
473
473
  nr: u
@@ -501,12 +501,12 @@ var de = {
501
501
  })) : this.$emit("hidden"));
502
502
  },
503
503
  updateVisibleItems(e, t = !1) {
504
- const i = this.itemSize, s = this.gridItems || 1, n = this.itemSecondarySize || i, u = this.$_computedMinItemSize, c = this.typeField, f = this.simpleArray ? null : this.keyField, l = this.items, h = l.length, b = this.sizes, V = this.$_views, P = this.$_unusedViews, z = this.pool, W = this.itemIndexByKey;
505
- let w, m, v, _, k;
504
+ const i = this.itemSize, s = this.gridItems || 1, n = this.itemSecondarySize || i, u = this.$_computedMinItemSize, c = this.typeField, f = this.simpleArray ? null : this.keyField, l = this.items, h = l.length, b = this.sizes, V = this.$_views, R = this.$_unusedViews, z = this.pool, W = this.itemIndexByKey;
505
+ let w, m, p, _, O;
506
506
  if (!h)
507
- w = m = _ = k = v = 0;
507
+ w = m = _ = O = p = 0;
508
508
  else if (this.$_prerender)
509
- w = _ = 0, m = k = Math.min(this.prerender, l.length), v = null;
509
+ w = _ = 0, m = O = Math.min(this.prerender, l.length), p = null;
510
510
  else {
511
511
  const a = this.getScroll();
512
512
  if (t) {
@@ -525,20 +525,20 @@ var de = {
525
525
  a.end += g;
526
526
  }
527
527
  if (i === null) {
528
- let g, M = 0, L = h - 1, S = ~~(h / 2), H;
528
+ let g, M = 0, L = h - 1, S = ~~(h / 2), D;
529
529
  do
530
- H = S, g = b[S].accumulator, g < a.start ? M = S : S < h - 1 && b[S + 1].accumulator > a.start && (L = S), S = ~~((M + L) / 2);
531
- while (S !== H);
532
- for (S < 0 && (S = 0), w = S, v = b[h - 1].accumulator, m = S; m < h && b[m].accumulator < a.end; m++) ;
530
+ D = S, g = b[S].accumulator, g < a.start ? M = S : S < h - 1 && b[S + 1].accumulator > a.start && (L = S), S = ~~((M + L) / 2);
531
+ while (S !== D);
532
+ for (S < 0 && (S = 0), w = S, p = b[h - 1].accumulator, m = S; m < h && b[m].accumulator < a.end; m++) ;
533
533
  for (m === -1 ? m = l.length - 1 : (m++, m > h && (m = h)), _ = w; _ < h && y + b[_].accumulator < a.start; _++) ;
534
- for (k = _; k < h && y + b[k].accumulator < a.end; k++) ;
534
+ for (O = _; O < h && y + b[O].accumulator < a.end; O++) ;
535
535
  } else {
536
536
  w = ~~(a.start / i * s);
537
537
  const g = w % s;
538
- w -= g, m = Math.ceil(a.end / i * s), _ = Math.max(0, Math.floor((a.start - y) / i * s)), k = Math.floor((a.end - y) / i * s), w < 0 && (w = 0), m > h && (m = h), _ < 0 && (_ = 0), k > h && (k = h), v = Math.ceil(h / s) * i;
538
+ w -= g, m = Math.ceil(a.end / i * s), _ = Math.max(0, Math.floor((a.start - y) / i * s)), O = Math.floor((a.end - y) / i * s), w < 0 && (w = 0), m > h && (m = h), _ < 0 && (_ = 0), O > h && (O = h), p = Math.ceil(h / s) * i;
539
539
  }
540
540
  }
541
- m - w > dt.itemsLimit && this.itemsLimitError(), this.totalSize = v;
541
+ m - w > dt.itemsLimit && this.itemsLimitError(), this.totalSize = p;
542
542
  let d;
543
543
  const A = w <= this.$_endIndex && m >= this.$_startIndex;
544
544
  if (A)
@@ -556,21 +556,21 @@ var de = {
556
556
  continue;
557
557
  }
558
558
  I = C[c];
559
- let y = P.get(I), g = !1;
559
+ let y = R.get(I), g = !1;
560
560
  if (!d)
561
- A ? y && y.length ? d = y.pop() : d = this.addView(z, a, C, $, I) : (N = K.get(I) || 0, (!y || N >= y.length) && (d = this.addView(z, a, C, $, I), this.unuseView(d, !0), y = P.get(I)), d = y[N], K.set(I, N + 1)), V.delete(d.nr.key), d.nr.used = !0, d.nr.index = a, d.nr.key = $, d.nr.type = I, V.set($, d), g = !0;
561
+ A ? y && y.length ? d = y.pop() : d = this.addView(z, a, C, $, I) : (N = K.get(I) || 0, (!y || N >= y.length) && (d = this.addView(z, a, C, $, I), this.unuseView(d, !0), y = R.get(I)), d = y[N], K.set(I, N + 1)), V.delete(d.nr.key), d.nr.used = !0, d.nr.index = a, d.nr.key = $, d.nr.type = I, V.set($, d), g = !0;
562
562
  else if (!d.nr.used && (d.nr.used = !0, g = !0, y)) {
563
563
  const M = y.indexOf(d);
564
564
  M !== -1 && y.splice(M, 1);
565
565
  }
566
566
  d.item = C, g && (a === l.length - 1 && this.$emit("scroll-end"), a === 0 && this.$emit("scroll-start")), i === null ? (d.position = b[a - 1].accumulator, d.offset = 0) : (d.position = Math.floor(a / s) * i, d.offset = a % s * n);
567
567
  }
568
- return this.$_startIndex = w, this.$_endIndex = m, this.emitUpdate && this.$emit("update", w, m, _, k), clearTimeout(this.$_sortTimer), this.$_sortTimer = setTimeout(this.sortViews, this.updateInterval + 300), {
568
+ return this.$_startIndex = w, this.$_endIndex = m, this.emitUpdate && this.$emit("update", w, m, _, O), clearTimeout(this.$_sortTimer), this.$_sortTimer = setTimeout(this.sortViews, this.updateInterval + 300), {
569
569
  continuous: A
570
570
  };
571
571
  },
572
572
  getListenerTarget() {
573
- let e = be(this.$el);
573
+ let e = we(this.$el);
574
574
  return window.document && (e === window.document.documentElement || e === window.document.body) && (e = window), e;
575
575
  },
576
576
  getScroll() {
@@ -612,7 +612,7 @@ var de = {
612
612
  const t = this.direction === "vertical" ? { scroll: "scrollTop", start: "top" } : { scroll: "scrollLeft", start: "left" };
613
613
  let i, s, n;
614
614
  if (this.pageMode) {
615
- const u = be(this.$el), c = u.tagName === "HTML" ? 0 : u[t.scroll], f = u.getBoundingClientRect(), h = this.$el.getBoundingClientRect()[t.start] - f[t.start];
615
+ const u = we(this.$el), c = u.tagName === "HTML" ? 0 : u[t.scroll], f = u.getBoundingClientRect(), h = this.$el.getBoundingClientRect()[t.start] - f[t.start];
616
616
  i = u, s = t.scroll, n = e + c + h;
617
617
  } else
618
618
  i = this.$el, s = t.scroll, n = e;
@@ -637,8 +637,8 @@ const bt = {
637
637
  class: "vue-recycle-scroller__slot"
638
638
  };
639
639
  function wt(e, t, i, s, n, u) {
640
- const c = Ce("ResizeObserver"), f = Ne("observe-visibility");
641
- return B((O(), E(
640
+ const c = Me("ResizeObserver"), f = Pe("observe-visibility");
641
+ return F((k(), E(
642
642
  "div",
643
643
  {
644
644
  class: ee(["vue-recycle-scroller", {
@@ -649,7 +649,7 @@ function wt(e, t, i, s, n, u) {
649
649
  onScrollPassive: t[0] || (t[0] = (...l) => u.handleScroll && u.handleScroll(...l))
650
650
  },
651
651
  [
652
- e.$slots.before ? (O(), E(
652
+ e.$slots.before ? (k(), E(
653
653
  "div",
654
654
  bt,
655
655
  [
@@ -658,16 +658,16 @@ function wt(e, t, i, s, n, u) {
658
658
  512
659
659
  /* NEED_PATCH */
660
660
  )) : te("v-if", !0),
661
- (O(), U(he(i.listTag), {
661
+ (k(), U(he(i.listTag), {
662
662
  ref: "wrapper",
663
663
  style: ie({ [e.direction === "vertical" ? "minHeight" : "minWidth"]: n.totalSize + "px" }),
664
664
  class: ee(["vue-recycle-scroller__item-wrapper", i.listClass])
665
665
  }, {
666
- default: F(() => [
667
- (O(!0), E(
668
- Me,
666
+ default: B(() => [
667
+ (k(!0), E(
668
+ Re,
669
669
  null,
670
- ge(n.pool, (l) => (O(), U(he(i.itemTag), se({
670
+ Se(n.pool, (l) => (k(), U(he(i.itemTag), se({
671
671
  key: l.nr.id,
672
672
  style: n.ready ? {
673
673
  transform: `translate${e.direction === "vertical" ? "Y" : "X"}(${l.position}px) translate${e.direction === "vertical" ? "X" : "Y"}(${l.offset}px)`,
@@ -680,7 +680,7 @@ function wt(e, t, i, s, n, u) {
680
680
  hover: !i.skipHover && n.hoverKey === l.nr.key
681
681
  }
682
682
  ]]
683
- }, Pe(i.skipHover ? {} : {
683
+ }, Ee(i.skipHover ? {} : {
684
684
  mouseenter: () => {
685
685
  n.hoverKey = l.nr.key;
686
686
  },
@@ -688,7 +688,7 @@ function wt(e, t, i, s, n, u) {
688
688
  n.hoverKey = null;
689
689
  }
690
690
  })), {
691
- default: F(() => [
691
+ default: B(() => [
692
692
  j(e.$slots, "default", {
693
693
  item: l.item,
694
694
  index: l.nr.index,
@@ -706,7 +706,7 @@ function wt(e, t, i, s, n, u) {
706
706
  _: 3
707
707
  /* FORWARDED */
708
708
  }, 8, ["style", "class"])),
709
- e.$slots.after ? (O(), E(
709
+ e.$slots.after ? (k(), E(
710
710
  "div",
711
711
  gt,
712
712
  [
@@ -725,9 +725,13 @@ function wt(e, t, i, s, n, u) {
725
725
  }
726
726
  de.render = wt;
727
727
  de.__file = "src/components/RecycleScroller.vue";
728
- const St = ["onClick"], zt = { style: { display: "inline-block" } }, _t = /* @__PURE__ */ Re({
728
+ const St = ["onClick"], zt = { style: { display: "inline-block" } }, _t = {
729
+ key: 1,
730
+ class: "input-text-content"
731
+ }, It = /* @__PURE__ */ Ae({
729
732
  __name: "index",
730
733
  props: {
734
+ mode: { default: "tree" },
731
735
  modelValue: { default: "" },
732
736
  isView: { type: Boolean, default: !1 },
733
737
  width: { default: "" },
@@ -745,7 +749,7 @@ const St = ["onClick"], zt = { style: { display: "inline-block" } }, _t = /* @__
745
749
  treeOptions: { default: () => ({}) },
746
750
  path: {},
747
751
  nodeKey: {},
748
- mode: { default: "tree" }
752
+ showInputDom: { type: Boolean, default: !0 }
749
753
  },
750
754
  emits: ["update:modelValue", "input", "change", "node-click", "update:path"],
751
755
  setup(e, { emit: t }) {
@@ -764,9 +768,9 @@ const St = ["onClick"], zt = { style: { display: "inline-block" } }, _t = /* @__
764
768
  function l() {
765
769
  document.documentElement.click();
766
770
  }
767
- Ee(() => {
771
+ Le(() => {
768
772
  document.addEventListener("click", f);
769
- }), Ae(() => {
773
+ }), De(() => {
770
774
  document.removeEventListener("click", f);
771
775
  });
772
776
  const h = q(() => {
@@ -778,20 +782,20 @@ const St = ["onClick"], zt = { style: { display: "inline-block" } }, _t = /* @__
778
782
  }), V = async (r) => {
779
783
  if (i("update:path", r.path || ""), s.mode === "tree") {
780
784
  if (b.value) {
781
- s.showFullPath ? v.value = r.pathName || "" : v.value = r.name || "";
785
+ s.showFullPath ? p.value = r.pathName || "" : p.value = r.name || "";
782
786
  return;
783
787
  }
784
788
  let o = _.value.treeRef.getNode(r), T = [o.data[s.fieldNames.label] || ""];
785
789
  if (s.showFullPath)
786
790
  for (; o.parent && o.parent.data[s.fieldNames.label]; )
787
791
  o = o.parent, T.unshift(o.data[s.fieldNames.label]);
788
- v.value = T.join("/");
792
+ p.value = T.join("/");
789
793
  } else {
790
794
  let o = r[s.fieldNames.label] || "";
791
- v.value = o;
795
+ p.value = o;
792
796
  }
793
- }, P = (r) => {
794
- V(r), l(), i("node-click", r), i("update:modelValue", v.value), i("change", v.value);
797
+ }, R = (r) => {
798
+ V(r), l(), i("node-click", r), i("update:modelValue", p.value), i("change", p.value);
795
799
  }, z = x(""), W = x(null), w = Q(s, "size"), m = Q(s, "isView");
796
800
  J(
797
801
  () => s.isView,
@@ -799,11 +803,11 @@ const St = ["onClick"], zt = { style: { display: "inline-block" } }, _t = /* @__
799
803
  r && l();
800
804
  }
801
805
  );
802
- const v = Q(s, "modelValue"), _ = x(null), k = (r) => {
806
+ const p = Q(s, "modelValue"), _ = x(null), O = (r) => {
803
807
  N.value = a(), L().then((o) => {
804
808
  C(o), ue(() => {
805
- var T, p, D;
806
- (D = (p = (T = W.value) == null ? void 0 : T.popperRef) == null ? void 0 : p.popperInstanceRef) == null || D.forceUpdate();
809
+ var T, v, H;
810
+ (H = (v = (T = W.value) == null ? void 0 : T.popperRef) == null ? void 0 : v.popperInstanceRef) == null || H.forceUpdate();
807
811
  });
808
812
  }), i("update:modelValue", r), i("input", r);
809
813
  }, d = (r) => {
@@ -814,18 +818,18 @@ const St = ["onClick"], zt = { style: { display: "inline-block" } }, _t = /* @__
814
818
  });
815
819
  }, K = () => {
816
820
  if (s.showFullPath) {
817
- let r = v.value.split("/");
821
+ let r = p.value.split("/");
818
822
  z.value = r[r.length - 1] || "";
819
823
  } else
820
- z.value = v.value || "";
824
+ z.value = p.value || "";
821
825
  }, C = (r) => {
822
826
  r.length > 0 ? (I.value = !m.value && !0, S.value = r) : I.value = !1;
823
- }, I = x(!1), N = x(!1), a = () => v.value.length > 0, $ = () => {
824
- N.value = a(), l(), Ie(), L().then((r) => {
827
+ }, I = x(!1), N = x(!1), a = () => p.value.length > 0, $ = () => {
828
+ N.value = a(), l(), ke(), L().then((r) => {
825
829
  C(r);
826
830
  });
827
831
  }, y = async (r) => {
828
- r.disabled || (V(r), l(), i("node-click", r), i("update:modelValue", v.value), i("change", v.value));
832
+ r.disabled || (V(r), l(), i("node-click", r), i("update:modelValue", p.value), i("change", p.value));
829
833
  }, g = (r) => {
830
834
  let o = 0;
831
835
  switch (r) {
@@ -839,32 +843,32 @@ const St = ["onClick"], zt = { style: { display: "inline-block" } }, _t = /* @__
839
843
  }, M = (r, o) => {
840
844
  if (!o) return r;
841
845
  let T = [];
842
- for (let p = 0; p < r.length; p++)
843
- r[p][s.fieldNames.label].includes(o) && T.push(r[p]), r[p][s.fieldNames.children] && r[p][s.fieldNames.children].length > 0 && T.push(...M(r[p][s.fieldNames.children], o));
846
+ for (let v = 0; v < r.length; v++)
847
+ r[v][s.fieldNames.label].includes(o) && T.push(r[v]), r[v][s.fieldNames.children] && r[v][s.fieldNames.children].length > 0 && T.push(...M(r[v][s.fieldNames.children], o));
844
848
  return T;
845
849
  }, L = async () => {
846
850
  K();
847
851
  let r = [];
848
852
  if (!b.value)
849
853
  r = M(s.options, z.value);
850
- else if (!v.value)
854
+ else if (!p.value)
851
855
  r = M([""], null);
852
856
  else {
853
857
  let o = await s.treeOptions.search(z.value);
854
858
  r = M(o, z.value);
855
859
  }
856
860
  return r;
857
- }, S = x([]), H = q(() => {
861
+ }, S = x([]), D = q(() => {
858
862
  var r;
859
863
  if (s.width) {
860
864
  const o = (r = s.width) == null ? void 0 : r.toString();
861
865
  return o.includes("%") || o.includes("px") ? o : o + "px";
862
866
  }
863
867
  return g(s.size);
864
- }), ce = x(), fe = x(""), Ie = () => {
868
+ }), ce = x(), fe = x(""), ke = () => {
865
869
  var o;
866
870
  const r = (o = ce.value) == null ? void 0 : o.offsetWidth;
867
- fe.value = r ? r + "px" : H.value;
871
+ fe.value = r ? r + "px" : D.value;
868
872
  };
869
873
  return J(
870
874
  () => s.options,
@@ -874,14 +878,14 @@ const St = ["onClick"], zt = { style: { display: "inline-block" } }, _t = /* @__
874
878
  });
875
879
  }
876
880
  ), (r, o) => {
877
- const T = je;
878
- return O(), E(
881
+ const T = Ue;
882
+ return k(), E(
879
883
  "div",
880
884
  {
881
- class: "autocomplete-page",
885
+ class: "das-ui-autocomplete",
882
886
  ref_key: "$completeEL",
883
887
  ref: ce,
884
- style: ie(`width:${H.value}`)
888
+ style: ie(`width:${D.value}`)
885
889
  },
886
890
  [
887
891
  re(T, {
@@ -895,80 +899,89 @@ const St = ["onClick"], zt = { style: { display: "inline-block" } }, _t = /* @__
895
899
  offset: r.offset,
896
900
  "popper-options": r.popperOptions
897
901
  }, {
898
- reference: F(() => [
899
- me("div", {
902
+ reference: B(() => [
903
+ r.showInputDom ? (k(), E("div", {
904
+ key: 0,
900
905
  class: "slot-component-box",
901
- onClick: pe($, ["stop"])
906
+ onClick: me($, ["stop"])
902
907
  }, [
903
- re(R(Ue), se({
908
+ re(P(We), se({
904
909
  ref_key: "inputRef",
905
910
  ref: c,
906
- modelValue: R(v),
907
- "onUpdate:modelValue": o[3] || (o[3] = (p) => Le(v) ? v.value = p : null),
911
+ modelValue: P(p),
912
+ "onUpdate:modelValue": o[3] || (o[3] = (v) => He(p) ? p.value = v : null),
908
913
  modelModifiers: { trim: !0 },
909
- size: R(w),
910
- width: H.value,
911
- isView: R(m)
914
+ size: P(w),
915
+ width: D.value,
916
+ isView: P(m)
912
917
  }, r.$attrs, {
913
918
  onClear: A,
914
- onInput: k,
919
+ onInput: O,
915
920
  onChange: d
916
- }), He({
921
+ }), Fe({
917
922
  _: 2
918
923
  /* DYNAMIC */
919
924
  }, [
920
- ge(r.$slots, (p, D, $e) => ({
921
- name: D,
922
- fn: F(() => [
923
- j(r.$slots, D, {}, void 0, !0)
925
+ Se(r.$slots, (v, H, Ve) => ({
926
+ name: H,
927
+ fn: B(() => [
928
+ j(r.$slots, H, {}, void 0, !0)
924
929
  ])
925
930
  }))
926
931
  ]), 1040, ["modelValue", "size", "width", "isView"])
932
+ ])) : F((k(), E("div", _t, [
933
+ pe(
934
+ ve(P(p)),
935
+ 1
936
+ /* TEXT */
937
+ )
938
+ ])), [
939
+ [P(be)]
927
940
  ])
928
941
  ]),
929
- default: F(() => [
930
- B((O(), E(
942
+ default: B(() => [
943
+ F((k(), E(
931
944
  "div",
932
945
  {
933
946
  class: "autocomplete-select-box",
934
947
  style: ie(`max-height: ${32 * r.maxCount}px;`),
935
- onClick: o[2] || (o[2] = pe(() => {
948
+ onClick: o[2] || (o[2] = me(() => {
936
949
  }, ["stop"]))
937
950
  },
938
951
  [
939
- B((O(), U(R(de), {
952
+ F((k(), U(P(de), {
940
953
  key: S.value.length,
941
954
  items: S.value,
942
955
  "item-size": 32,
943
956
  "key-field": r.fieldNames.value || r.fieldNames.label,
944
957
  class: "virtual-list"
945
958
  }, {
946
- default: F(({ item: p, index: D }) => [
947
- me("div", {
948
- onClick: ($e) => y(p),
959
+ default: B(({ item: v, index: H }) => [
960
+ Be("div", {
961
+ onClick: (Ve) => y(v),
949
962
  class: ee([
950
963
  "select-label",
951
- { "current-select-label": p[r.fieldNames.label] === z.value },
952
- { "is-disabled": p.disabled }
964
+ { "current-select-label": v[r.fieldNames.label] === z.value },
965
+ { "is-disabled": v.disabled }
953
966
  ])
954
967
  }, [
955
- B((O(), E("span", zt, [
956
- De(
957
- Fe(p[r.fieldNames.label]),
968
+ F((k(), E("span", zt, [
969
+ pe(
970
+ ve(v[r.fieldNames.label]),
958
971
  1
959
972
  /* TEXT */
960
973
  )
961
974
  ])), [
962
- [R(We)]
975
+ [P(be)]
963
976
  ])
964
977
  ], 10, St)
965
978
  ]),
966
979
  _: 1
967
980
  /* STABLE */
968
981
  }, 8, ["items", "key-field"])), [
969
- [ve, s.mode === "list" || N.value]
982
+ [ye, s.mode === "list" || N.value]
970
983
  ]),
971
- s.mode === "tree" ? B((O(), U(R(qe), se({
984
+ s.mode === "tree" ? F((k(), U(P(qe), se({
972
985
  key: 0,
973
986
  width: "120px",
974
987
  filterMode: "input",
@@ -981,18 +994,18 @@ const St = ["onClick"], zt = { style: { display: "inline-block" } }, _t = /* @__
981
994
  }, r.treeOptions, {
982
995
  props: { ...r.fieldNames },
983
996
  modelValue: z.value,
984
- "onUpdate:modelValue": o[0] || (o[0] = (p) => z.value = p),
997
+ "onUpdate:modelValue": o[0] || (o[0] = (v) => z.value = v),
985
998
  path: u.value,
986
- "onUpdate:path": o[1] || (o[1] = (p) => u.value = p),
987
- onNodeClick: P
999
+ "onUpdate:path": o[1] || (o[1] = (v) => u.value = v),
1000
+ onNodeClick: R
988
1001
  }), null, 16, ["node-key", "data", "props", "modelValue", "path"])), [
989
- [ve, !N.value]
1002
+ [ye, !N.value]
990
1003
  ]) : te("v-if", !0)
991
1004
  ],
992
1005
  4
993
1006
  /* STYLE */
994
1007
  )), [
995
- [R(Ke)]
1008
+ [P(Ke)]
996
1009
  ])
997
1010
  ]),
998
1011
  _: 3
@@ -1004,14 +1017,14 @@ const St = ["onClick"], zt = { style: { display: "inline-block" } }, _t = /* @__
1004
1017
  );
1005
1018
  };
1006
1019
  }
1007
- }), It = (e, t) => {
1020
+ }), $t = (e, t) => {
1008
1021
  const i = e.__vccOpts || e;
1009
1022
  for (const [s, n] of t)
1010
1023
  i[s] = n;
1011
1024
  return i;
1012
- }, $t = /* @__PURE__ */ It(_t, [["__scopeId", "data-v-a3c6e752"]]), At = () => x(null), Lt = Be($t);
1025
+ }, kt = /* @__PURE__ */ $t(It, [["__scopeId", "data-v-cd27439c"]]), Lt = () => x(null), Dt = je(kt);
1013
1026
  export {
1014
- Lt as DasAutocomplete,
1015
- At as DasAutocompleteRef,
1016
- Lt as default
1027
+ Dt as DasAutocomplete,
1028
+ Lt as DasAutocompleteRef,
1029
+ Dt as default
1017
1030
  };
@@ -1,6 +1,6 @@
1
1
  import { nextTick } from 'vue';
2
- import type { Props } from './type';
3
2
  import 'vue-virtual-scroller/dist/vue-virtual-scroller.css';
3
+ import type { Props } from './type';
4
4
  declare function __VLS_template(): {
5
5
  slots: Partial<Record<NonNullable<string | number>, (_: {}) => any>>;
6
6
  refs: {
@@ -3362,6 +3362,7 @@ declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {},
3362
3362
  showFullPath: boolean;
3363
3363
  maxCount: number;
3364
3364
  treeOptions: any;
3365
+ showInputDom: boolean;
3365
3366
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
3366
3367
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
3367
3368
  export default _default;
@@ -5,6 +5,9 @@ export interface FieldNamesOptions {
5
5
 
6
6
  export interface Props {
7
7
 
8
+ mode: 'tree' | 'list'
9
+
10
+
8
11
  modelValue?: string
9
12
 
10
13
 
@@ -48,7 +51,7 @@ export interface Props {
48
51
  nodeKey?: string
49
52
 
50
53
 
51
- mode: 'tree' | 'list'
54
+ showInputDom?: boolean
52
55
  }
53
56
 
54
57
  export interface Emits {