@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,14 +1,14 @@
1
1
  import '@das-fed/ui/packages/components/select-list/style.css';
2
2
  import { withInstall as wi } from "@das-fed/utils/with-install/index";
3
- import { i18n as We, setI18nRule as Si } from "@das-fed/web/packages/i18n/index";
3
+ import { i18n as je, setI18nRule as Si } from "@das-fed/web/packages/i18n/index";
4
4
  import { getVar as ut, setThemeRule as _i } from "@das-fed/web/packages/theme/index";
5
5
  import { ElInfiniteScroll as Ei } from "element-plus/es";
6
6
  import "element-plus/es/components/base/style/css";
7
7
  import "element-plus/es/components/infinite-scroll/style/css";
8
- import { pushScopeId as Di, popScopeId as Ii, nextTick as Qe, openBlock as A, createBlock as oe, withScopeId as Ti, markRaw as Oi, shallowReactive as Ci, resolveComponent as zi, resolveDirective as Ai, withDirectives as Se, createElementBlock as L, normalizeClass as de, renderSlot as be, createCommentVNode as W, resolveDynamicComponent as Rt, normalizeStyle as qt, withCtx as et, Fragment as _t, renderList as Et, mergeProps as ki, toHandlers as Ni, createVNode as Pi, ref as Ne, computed as tt, onMounted as Jt, onBeforeUnmount as xi, watch as Vt, defineComponent as $i, useCssVars as Mi, createElementVNode as Oe, toDisplayString as Ce, unref as D, createTextVNode as He } from "vue";
8
+ import { pushScopeId as Di, popScopeId as Ii, nextTick as et, openBlock as k, createBlock as oe, withScopeId as Ti, markRaw as Ci, shallowReactive as Oi, resolveComponent as zi, resolveDirective as Ai, withDirectives as Se, createElementBlock as X, normalizeClass as de, renderSlot as he, createCommentVNode as K, resolveDynamicComponent as Vt, normalizeStyle as qt, withCtx as tt, Fragment as _t, renderList as Et, mergeProps as ki, toHandlers as Ni, createVNode as Pi, ref as Ne, computed as Pe, onMounted as Jt, onBeforeUnmount as $i, watch as Rt, defineComponent as Mi, useCssVars as xi, createElementVNode as Ce, toDisplayString as Oe, unref as D, createTextVNode as Le } from "vue";
9
9
  import { vDasTooltip as dt } from "@das-fed/ui/packages/components/text-tooltip/index";
10
- import { DasButton as Ri } from "@das-fed/ui/packages/components/button/index";
11
- import { vOverlay as Vi } from "@das-fed/ui/packages/components/overlay/index";
10
+ import { DasButton as Vi } from "@das-fed/ui/packages/components/button/index";
11
+ import { vOverlay as Ri } from "@das-fed/ui/packages/components/overlay/index";
12
12
  import { DasIconClose2 as ct } from "@das-fed/ui/packages/icons/close-2/index";
13
13
  import { DasIconDrag as Fi } from "@das-fed/ui/packages/icons/drag/index";
14
14
  import { useModelValue as Zt } from "@das-fed/utils/vue";
@@ -27,9 +27,9 @@ function Li() {
27
27
  var r = t.indexOf("Edge/");
28
28
  return r > 0 ? parseInt(t.substring(r + 5, t.indexOf(".", r)), 10) : -1;
29
29
  }
30
- let je;
30
+ let Ke;
31
31
  function Dt() {
32
- Dt.init || (Dt.init = !0, je = Li() !== -1);
32
+ Dt.init || (Dt.init = !0, Ke = Li() !== -1);
33
33
  }
34
34
  var at = {
35
35
  name: "ResizeObserver",
@@ -51,11 +51,11 @@ var at = {
51
51
  "notify"
52
52
  ],
53
53
  mounted() {
54
- Dt(), Qe(() => {
54
+ Dt(), et(() => {
55
55
  this._w = this.$el.offsetWidth, this._h = this.$el.offsetHeight, this.emitOnMount && this.emitSize();
56
56
  });
57
57
  const t = document.createElement("object");
58
- this._resizeObject = t, t.setAttribute("aria-hidden", "true"), t.setAttribute("tabindex", -1), t.onload = this.addResizeHandlers, t.type = "text/html", je && this.$el.appendChild(t), t.data = "about:blank", je || this.$el.appendChild(t);
58
+ this._resizeObject = t, t.setAttribute("aria-hidden", "true"), t.setAttribute("tabindex", -1), t.onload = this.addResizeHandlers, t.type = "text/html", Ke && this.$el.appendChild(t), t.data = "about:blank", Ke || this.$el.appendChild(t);
59
59
  },
60
60
  beforeUnmount() {
61
61
  this.removeResizeHandlers();
@@ -74,7 +74,7 @@ var at = {
74
74
  this._resizeObject.contentDocument.defaultView.addEventListener("resize", this.compareAndNotify), this.compareAndNotify();
75
75
  },
76
76
  removeResizeHandlers() {
77
- this._resizeObject && this._resizeObject.onload && (!je && this._resizeObject.contentDocument && this._resizeObject.contentDocument.defaultView.removeEventListener("resize", this.compareAndNotify), this.$el.removeChild(this._resizeObject), this._resizeObject.onload = null, this._resizeObject = null);
77
+ this._resizeObject && this._resizeObject.onload && (!Ke && this._resizeObject.contentDocument && this._resizeObject.contentDocument.defaultView.removeEventListener("resize", this.compareAndNotify), this.$el.removeChild(this._resizeObject), this._resizeObject.onload = null, this._resizeObject = null);
78
78
  }
79
79
  }
80
80
  };
@@ -85,7 +85,7 @@ const Yi = {
85
85
  tabindex: "-1"
86
86
  };
87
87
  Ii();
88
- const Xi = /* @__PURE__ */ Bi((t, e, i, n, r, o) => (A(), oe("div", Yi)));
88
+ const Xi = /* @__PURE__ */ Bi((t, e, i, n, r, o) => (k(), oe("div", Yi)));
89
89
  at.render = Xi;
90
90
  at.__scopeId = "data-v-b329ee4c";
91
91
  at.__file = "src/components/ResizeObserver.vue";
@@ -107,13 +107,13 @@ function ji(t, e) {
107
107
  n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n);
108
108
  }
109
109
  }
110
- function Gi(t, e, i) {
110
+ function Ki(t, e, i) {
111
111
  return e && ji(t.prototype, e), t;
112
112
  }
113
113
  function Ft(t) {
114
- return Ki(t) || Ui(t) || qi(t) || Ji();
114
+ return Gi(t) || Ui(t) || qi(t) || Ji();
115
115
  }
116
- function Ki(t) {
116
+ function Gi(t) {
117
117
  if (Array.isArray(t)) return It(t);
118
118
  }
119
119
  function Ui(t) {
@@ -144,11 +144,11 @@ function Zi(t) {
144
144
  }
145
145
  function Qi(t, e) {
146
146
  var i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n, r, o, l = function(a) {
147
- for (var u = arguments.length, d = new Array(u > 1 ? u - 1 : 0), f = 1; f < u; f++)
148
- d[f - 1] = arguments[f];
147
+ for (var u = arguments.length, d = new Array(u > 1 ? u - 1 : 0), h = 1; h < u; h++)
148
+ d[h - 1] = arguments[h];
149
149
  if (o = d, !(n && a === r)) {
150
- var m = i.leading;
151
- typeof m == "function" && (m = m(a, r)), (!n || a !== r) && m && t.apply(void 0, [a].concat(Ft(o))), r = a, clearTimeout(n), n = setTimeout(function() {
150
+ var p = i.leading;
151
+ typeof p == "function" && (p = p(a, r)), (!n || a !== r) && p && t.apply(void 0, [a].concat(Ft(o))), r = a, clearTimeout(n), n = setTimeout(function() {
152
152
  t.apply(void 0, [a].concat(Ft(o))), n = 0;
153
153
  }, e);
154
154
  }
@@ -171,7 +171,7 @@ var en = /* @__PURE__ */ function() {
171
171
  function t(e, i, n) {
172
172
  Wi(this, t), this.el = e, this.observer = null, this.frozen = !1, this.createObserver(i, n);
173
173
  }
174
- return Gi(t, [{
174
+ return Ki(t, [{
175
175
  key: "createObserver",
176
176
  value: function(i, n) {
177
177
  var r = this;
@@ -189,8 +189,8 @@ var en = /* @__PURE__ */ function() {
189
189
  this.oldResult = void 0, this.observer = new IntersectionObserver(function(s) {
190
190
  var a = s[0];
191
191
  if (s.length > 1) {
192
- var u = s.find(function(f) {
193
- return f.isIntersecting;
192
+ var u = s.find(function(h) {
193
+ return h.isIntersecting;
194
194
  });
195
195
  u && (a = u);
196
196
  }
@@ -199,7 +199,7 @@ var en = /* @__PURE__ */ function() {
199
199
  if (d === r.oldResult) return;
200
200
  r.oldResult = d, r.callback(d, a);
201
201
  }
202
- }, this.options.intersection), Qe(function() {
202
+ }, this.options.intersection), et(function() {
203
203
  r.observer && r.observer.observe(r.el);
204
204
  });
205
205
  }
@@ -301,13 +301,13 @@ var sn = {
301
301
  function un() {
302
302
  return this.items.length && Tt(this.items[0]) !== "object";
303
303
  }
304
- var Ot = !1;
304
+ var Ct = !1;
305
305
  if (typeof window < "u") {
306
- Ot = !1;
306
+ Ct = !1;
307
307
  try {
308
308
  var dn = Object.defineProperty({}, "passive", {
309
309
  get: function() {
310
- Ot = !0;
310
+ Ct = !0;
311
311
  }
312
312
  });
313
313
  window.addEventListener("test", null, dn);
@@ -466,13 +466,13 @@ var Nt = {
466
466
  },
467
467
  methods: {
468
468
  addView(t, e, i, n, r) {
469
- const o = Oi({
469
+ const o = Ci({
470
470
  id: cn++,
471
471
  index: e,
472
472
  used: !0,
473
473
  key: n,
474
474
  type: r
475
- }), l = Ci({
475
+ }), l = Oi({
476
476
  item: i,
477
477
  position: 0,
478
478
  nr: o
@@ -506,72 +506,72 @@ var Nt = {
506
506
  })) : this.$emit("hidden"));
507
507
  },
508
508
  updateVisibleItems(t, e = !1) {
509
- const i = this.itemSize, n = this.gridItems || 1, r = this.itemSecondarySize || i, o = this.$_computedMinItemSize, l = this.typeField, s = this.simpleArray ? null : this.keyField, a = this.items, u = a.length, d = this.sizes, f = this.$_views, m = this.$_unusedViews, _ = this.pool, S = this.itemIndexByKey;
510
- let p, c, C, T, y;
509
+ const i = this.itemSize, n = this.gridItems || 1, r = this.itemSecondarySize || i, o = this.$_computedMinItemSize, l = this.typeField, s = this.simpleArray ? null : this.keyField, a = this.items, u = a.length, d = this.sizes, h = this.$_views, p = this.$_unusedViews, _ = this.pool, S = this.itemIndexByKey;
510
+ let m, I, y, c, C;
511
511
  if (!u)
512
- p = c = T = y = C = 0;
512
+ m = I = c = C = y = 0;
513
513
  else if (this.$_prerender)
514
- p = T = 0, c = y = Math.min(this.prerender, a.length), C = null;
514
+ m = c = 0, I = C = Math.min(this.prerender, a.length), y = null;
515
515
  else {
516
- const E = this.getScroll();
516
+ const T = this.getScroll();
517
517
  if (e) {
518
- let z = E.start - this.$_lastUpdateScrollPosition;
519
- if (z < 0 && (z = -z), i === null && z < o || z < i)
518
+ let A = T.start - this.$_lastUpdateScrollPosition;
519
+ if (A < 0 && (A = -A), i === null && A < o || A < i)
520
520
  return {
521
521
  continuous: !0
522
522
  };
523
523
  }
524
- this.$_lastUpdateScrollPosition = E.start;
525
- const $ = this.buffer;
526
- E.start -= $, E.end += $;
527
- let N = 0;
528
- if (this.$refs.before && (N = this.$refs.before.scrollHeight, E.start -= N), this.$refs.after) {
529
- const z = this.$refs.after.scrollHeight;
530
- E.end += z;
524
+ this.$_lastUpdateScrollPosition = T.start;
525
+ const x = this.buffer;
526
+ T.start -= x, T.end += x;
527
+ let P = 0;
528
+ if (this.$refs.before && (P = this.$refs.before.scrollHeight, T.start -= P), this.$refs.after) {
529
+ const A = this.$refs.after.scrollHeight;
530
+ T.end += A;
531
531
  }
532
532
  if (i === null) {
533
- let z, J = 0, ue = u - 1, M = ~~(u / 2), pe;
533
+ let A, J = 0, ue = u - 1, V = ~~(u / 2), me;
534
534
  do
535
- pe = M, z = d[M].accumulator, z < E.start ? J = M : M < u - 1 && d[M + 1].accumulator > E.start && (ue = M), M = ~~((J + ue) / 2);
536
- while (M !== pe);
537
- for (M < 0 && (M = 0), p = M, C = d[u - 1].accumulator, c = M; c < u && d[c].accumulator < E.end; c++) ;
538
- for (c === -1 ? c = a.length - 1 : (c++, c > u && (c = u)), T = p; T < u && N + d[T].accumulator < E.start; T++) ;
539
- for (y = T; y < u && N + d[y].accumulator < E.end; y++) ;
535
+ me = V, A = d[V].accumulator, A < T.start ? J = V : V < u - 1 && d[V + 1].accumulator > T.start && (ue = V), V = ~~((J + ue) / 2);
536
+ while (V !== me);
537
+ for (V < 0 && (V = 0), m = V, y = d[u - 1].accumulator, I = V; I < u && d[I].accumulator < T.end; I++) ;
538
+ for (I === -1 ? I = a.length - 1 : (I++, I > u && (I = u)), c = m; c < u && P + d[c].accumulator < T.start; c++) ;
539
+ for (C = c; C < u && P + d[C].accumulator < T.end; C++) ;
540
540
  } else {
541
- p = ~~(E.start / i * n);
542
- const z = p % n;
543
- p -= z, c = Math.ceil(E.end / i * n), T = Math.max(0, Math.floor((E.start - N) / i * n)), y = Math.floor((E.end - N) / i * n), p < 0 && (p = 0), c > u && (c = u), T < 0 && (T = 0), y > u && (y = u), C = Math.ceil(u / n) * i;
541
+ m = ~~(T.start / i * n);
542
+ const A = m % n;
543
+ m -= A, I = Math.ceil(T.end / i * n), c = Math.max(0, Math.floor((T.start - P) / i * n)), C = Math.floor((T.end - P) / i * n), m < 0 && (m = 0), I > u && (I = u), c < 0 && (c = 0), C > u && (C = u), y = Math.ceil(u / n) * i;
544
544
  }
545
545
  }
546
- c - p > rn.itemsLimit && this.itemsLimitError(), this.totalSize = C;
546
+ I - m > rn.itemsLimit && this.itemsLimitError(), this.totalSize = y;
547
547
  let g;
548
- const j = p <= this.$_endIndex && c >= this.$_startIndex;
549
- if (j)
550
- for (let E = 0, $ = _.length; E < $; E++)
551
- g = _[E], g.nr.used && (t && (g.nr.index = S[g.item[s]]), (g.nr.index == null || g.nr.index < p || g.nr.index >= c) && this.unuseView(g));
552
- const q = j ? null : /* @__PURE__ */ new Map();
553
- let Y, G, F;
554
- for (let E = p; E < c; E++) {
555
- Y = a[E];
556
- const $ = s ? Y[s] : Y;
557
- if ($ == null)
558
- throw new Error(`Key is ${$} on item (keyField is '${s}')`);
559
- if (g = f.get($), !i && !d[E].size) {
548
+ const E = m <= this.$_endIndex && I >= this.$_startIndex;
549
+ if (E)
550
+ for (let T = 0, x = _.length; T < x; T++)
551
+ g = _[T], g.nr.used && (t && (g.nr.index = S[g.item[s]]), (g.nr.index == null || g.nr.index < m || g.nr.index >= I) && this.unuseView(g));
552
+ const L = E ? null : /* @__PURE__ */ new Map();
553
+ let H, G, B;
554
+ for (let T = m; T < I; T++) {
555
+ H = a[T];
556
+ const x = s ? H[s] : H;
557
+ if (x == null)
558
+ throw new Error(`Key is ${x} on item (keyField is '${s}')`);
559
+ if (g = h.get(x), !i && !d[T].size) {
560
560
  g && this.unuseView(g);
561
561
  continue;
562
562
  }
563
- G = Y[l];
564
- let N = m.get(G), z = !1;
563
+ G = H[l];
564
+ let P = p.get(G), A = !1;
565
565
  if (!g)
566
- j ? N && N.length ? g = N.pop() : g = this.addView(_, E, Y, $, G) : (F = q.get(G) || 0, (!N || F >= N.length) && (g = this.addView(_, E, Y, $, G), this.unuseView(g, !0), N = m.get(G)), g = N[F], q.set(G, F + 1)), f.delete(g.nr.key), g.nr.used = !0, g.nr.index = E, g.nr.key = $, g.nr.type = G, f.set($, g), z = !0;
567
- else if (!g.nr.used && (g.nr.used = !0, z = !0, N)) {
568
- const J = N.indexOf(g);
569
- J !== -1 && N.splice(J, 1);
566
+ E ? P && P.length ? g = P.pop() : g = this.addView(_, T, H, x, G) : (B = L.get(G) || 0, (!P || B >= P.length) && (g = this.addView(_, T, H, x, G), this.unuseView(g, !0), P = p.get(G)), g = P[B], L.set(G, B + 1)), h.delete(g.nr.key), g.nr.used = !0, g.nr.index = T, g.nr.key = x, g.nr.type = G, h.set(x, g), A = !0;
567
+ else if (!g.nr.used && (g.nr.used = !0, A = !0, P)) {
568
+ const J = P.indexOf(g);
569
+ J !== -1 && P.splice(J, 1);
570
570
  }
571
- g.item = Y, z && (E === a.length - 1 && this.$emit("scroll-end"), E === 0 && this.$emit("scroll-start")), i === null ? (g.position = d[E - 1].accumulator, g.offset = 0) : (g.position = Math.floor(E / n) * i, g.offset = E % n * r);
571
+ g.item = H, A && (T === a.length - 1 && this.$emit("scroll-end"), T === 0 && this.$emit("scroll-start")), i === null ? (g.position = d[T - 1].accumulator, g.offset = 0) : (g.position = Math.floor(T / n) * i, g.offset = T % n * r);
572
572
  }
573
- return this.$_startIndex = p, this.$_endIndex = c, this.emitUpdate && this.$emit("update", p, c, T, y), clearTimeout(this.$_sortTimer), this.$_sortTimer = setTimeout(this.sortViews, this.updateInterval + 300), {
574
- continuous: j
573
+ return this.$_startIndex = m, this.$_endIndex = I, this.emitUpdate && this.$emit("update", m, I, c, C), clearTimeout(this.$_sortTimer), this.$_sortTimer = setTimeout(this.sortViews, this.updateInterval + 300), {
574
+ continuous: E
575
575
  };
576
576
  },
577
577
  getListenerTarget() {
@@ -601,7 +601,7 @@ var Nt = {
601
601
  this.pageMode ? this.addListeners() : this.removeListeners();
602
602
  },
603
603
  addListeners() {
604
- this.listenerTarget = this.getListenerTarget(), this.listenerTarget.addEventListener("scroll", this.handleScroll, Ot ? {
604
+ this.listenerTarget = this.getListenerTarget(), this.listenerTarget.addEventListener("scroll", this.handleScroll, Ct ? {
605
605
  passive: !0
606
606
  } : !1), this.listenerTarget.addEventListener("resize", this.handleResize);
607
607
  },
@@ -643,7 +643,7 @@ const fn = {
643
643
  };
644
644
  function pn(t, e, i, n, r, o) {
645
645
  const l = zi("ResizeObserver"), s = Ai("observe-visibility");
646
- return Se((A(), L(
646
+ return Se((k(), X(
647
647
  "div",
648
648
  {
649
649
  class: de(["vue-recycle-scroller", {
@@ -654,25 +654,25 @@ function pn(t, e, i, n, r, o) {
654
654
  onScrollPassive: e[0] || (e[0] = (...a) => o.handleScroll && o.handleScroll(...a))
655
655
  },
656
656
  [
657
- t.$slots.before ? (A(), L(
657
+ t.$slots.before ? (k(), X(
658
658
  "div",
659
659
  fn,
660
660
  [
661
- be(t.$slots, "before")
661
+ he(t.$slots, "before")
662
662
  ],
663
663
  512
664
664
  /* NEED_PATCH */
665
- )) : W("v-if", !0),
666
- (A(), oe(Rt(i.listTag), {
665
+ )) : K("v-if", !0),
666
+ (k(), oe(Vt(i.listTag), {
667
667
  ref: "wrapper",
668
668
  style: qt({ [t.direction === "vertical" ? "minHeight" : "minWidth"]: r.totalSize + "px" }),
669
669
  class: de(["vue-recycle-scroller__item-wrapper", i.listClass])
670
670
  }, {
671
- default: et(() => [
672
- (A(!0), L(
671
+ default: tt(() => [
672
+ (k(!0), X(
673
673
  _t,
674
674
  null,
675
- Et(r.pool, (a) => (A(), oe(Rt(i.itemTag), ki({
675
+ Et(r.pool, (a) => (k(), oe(Vt(i.itemTag), ki({
676
676
  key: a.nr.id,
677
677
  style: r.ready ? {
678
678
  transform: `translate${t.direction === "vertical" ? "Y" : "X"}(${a.position}px) translate${t.direction === "vertical" ? "X" : "Y"}(${a.offset}px)`,
@@ -693,8 +693,8 @@ function pn(t, e, i, n, r, o) {
693
693
  r.hoverKey = null;
694
694
  }
695
695
  })), {
696
- default: et(() => [
697
- be(t.$slots, "default", {
696
+ default: tt(() => [
697
+ he(t.$slots, "default", {
698
698
  item: a.item,
699
699
  index: a.nr.index,
700
700
  active: a.nr.used
@@ -706,20 +706,20 @@ function pn(t, e, i, n, r, o) {
706
706
  128
707
707
  /* KEYED_FRAGMENT */
708
708
  )),
709
- be(t.$slots, "empty")
709
+ he(t.$slots, "empty")
710
710
  ]),
711
711
  _: 3
712
712
  /* FORWARDED */
713
713
  }, 8, ["style", "class"])),
714
- t.$slots.after ? (A(), L(
714
+ t.$slots.after ? (k(), X(
715
715
  "div",
716
716
  hn,
717
717
  [
718
- be(t.$slots, "after")
718
+ he(t.$slots, "after")
719
719
  ],
720
720
  512
721
721
  /* NEED_PATCH */
722
- )) : W("v-if", !0),
722
+ )) : K("v-if", !0),
723
723
  Pi(l, { onNotify: o.handleResize }, null, 8, ["onNotify"])
724
724
  ],
725
725
  34
@@ -731,44 +731,62 @@ function pn(t, e, i, n, r, o) {
731
731
  Nt.render = pn;
732
732
  Nt.__file = "src/components/RecycleScroller.vue";
733
733
  const mn = (t, e) => {
734
- const i = Ne(), n = Ne(), r = Zt(t, "modelValue"), o = t.valueKey, l = tt(() => t.selectedNum ? t.selectedNum : `${t.customTitle || We("das-select-list-selected").value}${We("das-select-list-parentheses-left").value}${r.value.length}${We("das-select-list-parentheses-right").value}`), s = tt(() => ({ disabled: "disabled", ...t.props })), a = (p) => {
734
+ const i = Ne(), n = Ne(), r = Zt(t, "modelValue"), o = t.valueKey, l = Pe(() => t.selectedNum ? t.selectedNum : `${t.customTitle || je("das-select-list-selected").value}${je("das-select-list-parentheses-left").value}${r.value.length}${je("das-select-list-parentheses-right").value}`), s = Pe(() => ({ disabled: "disabled", ...t.props })), a = (y) => {
735
735
  let c = !1;
736
- return typeof s.value.disabled == "string" ? c = p[s.value.disabled] : c = s.value.disabled(p) ?? !1, c;
737
- }, u = (p) => {
738
- const c = r.value.filter((C) => C[o] !== p[o]);
739
- e("item-remove", p), e("update:modelValue", c);
740
- }, d = () => {
741
- const p = r.value.filter((C) => !a(C)), c = r.value.filter((C) => a(C));
742
- e("remove-all", p), e("update:modelValue", c);
743
- }, f = () => {
744
- t.infiniteScroll && t.infiniteScroll().then((p) => {
745
- if (p && p.length) {
736
+ return typeof s.value.disabled == "string" ? c = y[s.value.disabled] : c = s.value.disabled(y) ?? !1, c;
737
+ }, u = Pe({
738
+ get: () => t.selectdValue,
739
+ set: (y) => {
740
+ e("update:selectdValue", y);
741
+ }
742
+ }), d = (y) => {
743
+ u.value = y[o], e("select-item", y);
744
+ }, h = (y) => {
745
+ const c = r.value.filter((C) => C[o] !== y[o]);
746
+ e("item-remove", y), e("update:modelValue", c);
747
+ }, p = () => {
748
+ const y = r.value.filter((C) => !a(C)), c = r.value.filter((C) => a(C));
749
+ e("remove-all", y), e("update:modelValue", c);
750
+ }, _ = () => {
751
+ t.infiniteScroll && t.infiniteScroll().then((y) => {
752
+ if (y && y.length) {
746
753
  let c = [];
747
- c = p, c = c.filter(
748
- (T) => !r.value.map((y) => y[t.valueKey]).includes(T[t.valueKey])
754
+ c = y, c = c.filter(
755
+ (g) => !r.value.map((E) => E[t.valueKey]).includes(g[t.valueKey])
749
756
  );
750
757
  const C = r.value.concat(c);
751
758
  e("update:modelValue", C);
752
759
  }
753
760
  });
754
761
  };
755
- let m = 0;
756
- const _ = (p) => {
762
+ let S = 0;
763
+ const m = (y) => {
757
764
  var C;
758
765
  const c = ((C = n.value) == null ? void 0 : C.offsetHeight) || 0;
759
- m !== 0 && p === 0 && f(), m = p, p !== 0 && p - c < 10 && f();
760
- }, S = Ne();
766
+ S !== 0 && y === 0 && _(), S = y, y !== 0 && y - c < 10 && _();
767
+ }, I = Ne();
761
768
  return Jt(() => {
762
769
  var c;
763
770
  if (t.infiniteDisabled) return;
764
- const p = (c = n.value) == null ? void 0 : c.querySelector(".selected-group");
765
- S.value = Hi((C) => {
766
- _(C.height);
767
- }, p);
768
- }), xi(() => {
769
- var p;
770
- (p = S.value) == null || p.disconnect();
771
- }), { selectListRef: i, $list: n, disabledFlag: a, itemGroups: r, selectedLabel: l, itemRemove: u, removeAll: d, infiniteLoad: f };
771
+ const y = (c = n.value) == null ? void 0 : c.querySelector(".selected-group");
772
+ I.value = Hi((C) => {
773
+ m(C.height);
774
+ }, y);
775
+ }), $i(() => {
776
+ var y;
777
+ (y = I.value) == null || y.disconnect();
778
+ }), {
779
+ selectListRef: i,
780
+ $list: n,
781
+ disabledFlag: a,
782
+ itemGroups: r,
783
+ selectedLabel: l,
784
+ itemRemove: h,
785
+ removeAll: p,
786
+ innerSelectdValue: u,
787
+ selectItem: d,
788
+ infiniteLoad: _
789
+ };
772
790
  };
773
791
  /**!
774
792
  * Sortable 1.15.3
@@ -797,13 +815,13 @@ function re(t) {
797
815
  }
798
816
  return t;
799
817
  }
800
- function Ke(t) {
818
+ function Ue(t) {
801
819
  "@babel/helpers - typeof";
802
- return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Ke = function(e) {
820
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Ue = function(e) {
803
821
  return typeof e;
804
- } : Ke = function(e) {
822
+ } : Ue = function(e) {
805
823
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
806
- }, Ke(t);
824
+ }, Ue(t);
807
825
  }
808
826
  function gn(t, e, i) {
809
827
  return e in t ? Object.defineProperty(t, e, {
@@ -845,14 +863,14 @@ function le(t) {
845
863
  if (typeof window < "u" && window.navigator)
846
864
  return !!/* @__PURE__ */ navigator.userAgent.match(t);
847
865
  }
848
- var se = le(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Ve = le(/Edge/i), Bt = le(/firefox/i), Pe = le(/safari/i) && !le(/chrome/i) && !le(/android/i), ni = le(/iP(ad|od|hone)/i), ri = le(/chrome/i) && le(/android/i), oi = {
866
+ var se = le(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Fe = le(/Edge/i), Bt = le(/firefox/i), $e = le(/safari/i) && !le(/chrome/i) && !le(/android/i), ni = le(/iP(ad|od|hone)/i), ri = le(/chrome/i) && le(/android/i), oi = {
849
867
  capture: !1,
850
868
  passive: !1
851
869
  };
852
- function O(t, e, i) {
870
+ function z(t, e, i) {
853
871
  t.addEventListener(e, i, !se && oi);
854
872
  }
855
- function I(t, e, i) {
873
+ function O(t, e, i) {
856
874
  t.removeEventListener(e, i, !se && oi);
857
875
  }
858
876
  function it(t, e) {
@@ -929,37 +947,37 @@ function ne() {
929
947
  var t = document.scrollingElement;
930
948
  return t || document.documentElement;
931
949
  }
932
- function V(t, e, i, n, r) {
950
+ function F(t, e, i, n, r) {
933
951
  if (!(!t.getBoundingClientRect && t !== window)) {
934
- var o, l, s, a, u, d, f;
935
- if (t !== window && t.parentNode && t !== ne() ? (o = t.getBoundingClientRect(), l = o.top, s = o.left, a = o.bottom, u = o.right, d = o.height, f = o.width) : (l = 0, s = 0, a = window.innerHeight, u = window.innerWidth, d = window.innerHeight, f = window.innerWidth), (e || i) && t !== window && (r = r || t.parentNode, !se))
952
+ var o, l, s, a, u, d, h;
953
+ if (t !== window && t.parentNode && t !== ne() ? (o = t.getBoundingClientRect(), l = o.top, s = o.left, a = o.bottom, u = o.right, d = o.height, h = o.width) : (l = 0, s = 0, a = window.innerHeight, u = window.innerWidth, d = window.innerHeight, h = window.innerWidth), (e || i) && t !== window && (r = r || t.parentNode, !se))
936
954
  do
937
955
  if (r && r.getBoundingClientRect && (v(r, "transform") !== "none" || i && v(r, "position") !== "static")) {
938
- var m = r.getBoundingClientRect();
939
- l -= m.top + parseInt(v(r, "border-top-width")), s -= m.left + parseInt(v(r, "border-left-width")), a = l + o.height, u = s + o.width;
956
+ var p = r.getBoundingClientRect();
957
+ l -= p.top + parseInt(v(r, "border-top-width")), s -= p.left + parseInt(v(r, "border-left-width")), a = l + o.height, u = s + o.width;
940
958
  break;
941
959
  }
942
960
  while (r = r.parentNode);
943
961
  if (n && t !== window) {
944
- var _ = De(r || t), S = _ && _.a, p = _ && _.d;
945
- _ && (l /= p, s /= S, f /= S, d /= p, a = l + d, u = s + f);
962
+ var _ = De(r || t), S = _ && _.a, m = _ && _.d;
963
+ _ && (l /= m, s /= S, h /= S, d /= m, a = l + d, u = s + h);
946
964
  }
947
965
  return {
948
966
  top: l,
949
967
  left: s,
950
968
  bottom: a,
951
969
  right: u,
952
- width: f,
970
+ width: h,
953
971
  height: d
954
972
  };
955
973
  }
956
974
  }
957
975
  function Xt(t, e, i) {
958
- for (var n = he(t, !0), r = V(t)[e]; n; ) {
959
- var o = V(n)[i], l = void 0;
976
+ for (var n = pe(t, !0), r = F(t)[e]; n; ) {
977
+ var o = F(n)[i], l = void 0;
960
978
  if (l = r >= o, !l) return n;
961
979
  if (n === ne()) break;
962
- n = he(n, !1);
980
+ n = pe(n, !1);
963
981
  }
964
982
  return !1;
965
983
  }
@@ -1004,7 +1022,7 @@ function wn(t, e) {
1004
1022
  }
1005
1023
  return -1;
1006
1024
  }
1007
- function he(t, e) {
1025
+ function pe(t, e) {
1008
1026
  if (!t || !t.getBoundingClientRect) return ne();
1009
1027
  var i = t, n = !1;
1010
1028
  do
@@ -1028,19 +1046,19 @@ function Sn(t, e) {
1028
1046
  function ht(t, e) {
1029
1047
  return Math.round(t.top) === Math.round(e.top) && Math.round(t.left) === Math.round(e.left) && Math.round(t.height) === Math.round(e.height) && Math.round(t.width) === Math.round(e.width);
1030
1048
  }
1031
- var xe;
1049
+ var Me;
1032
1050
  function si(t, e) {
1033
1051
  return function() {
1034
- if (!xe) {
1052
+ if (!Me) {
1035
1053
  var i = arguments, n = this;
1036
- i.length === 1 ? t.call(n, i[0]) : t.apply(n, i), xe = setTimeout(function() {
1037
- xe = void 0;
1054
+ i.length === 1 ? t.call(n, i[0]) : t.apply(n, i), Me = setTimeout(function() {
1055
+ Me = void 0;
1038
1056
  }, e);
1039
1057
  }
1040
1058
  };
1041
1059
  }
1042
1060
  function _n() {
1043
- clearTimeout(xe), xe = void 0;
1061
+ clearTimeout(Me), Me = void 0;
1044
1062
  }
1045
1063
  function ui(t, e, i) {
1046
1064
  t.scrollLeft += e, t.scrollTop += i;
@@ -1054,12 +1072,12 @@ function ci(t, e, i) {
1054
1072
  return Array.from(t.children).forEach(function(r) {
1055
1073
  var o, l, s, a;
1056
1074
  if (!(!ie(r, e.draggable, t, !1) || r.animated || r === i)) {
1057
- var u = V(r);
1075
+ var u = F(r);
1058
1076
  n.left = Math.min((o = n.left) !== null && o !== void 0 ? o : 1 / 0, u.left), n.top = Math.min((l = n.top) !== null && l !== void 0 ? l : 1 / 0, u.top), n.right = Math.max((s = n.right) !== null && s !== void 0 ? s : -1 / 0, u.right), n.bottom = Math.max((a = n.bottom) !== null && a !== void 0 ? a : -1 / 0, u.bottom);
1059
1077
  }
1060
1078
  }), n.width = n.right - n.left, n.height = n.bottom - n.top, n.x = n.left, n.y = n.top, n;
1061
1079
  }
1062
- var U = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
1080
+ var q = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
1063
1081
  function En() {
1064
1082
  var t = [], e;
1065
1083
  return {
@@ -1070,7 +1088,7 @@ function En() {
1070
1088
  if (!(v(r, "display") === "none" || r === b.ghost)) {
1071
1089
  t.push({
1072
1090
  target: r,
1073
- rect: V(r)
1091
+ rect: F(r)
1074
1092
  });
1075
1093
  var o = re({}, t[t.length - 1].rect);
1076
1094
  if (r.thisAnimationDuration) {
@@ -1098,9 +1116,9 @@ function En() {
1098
1116
  }
1099
1117
  var o = !1, l = 0;
1100
1118
  t.forEach(function(s) {
1101
- var a = 0, u = s.target, d = u.fromRect, f = V(u), m = u.prevFromRect, _ = u.prevToRect, S = s.rect, p = De(u, !0);
1102
- p && (f.top -= p.f, f.left -= p.e), u.toRect = f, u.thisAnimationDuration && ht(m, f) && !ht(d, f) && // Make sure animatingRect is on line between toRect & fromRect
1103
- (S.top - f.top) / (S.left - f.left) === (d.top - f.top) / (d.left - f.left) && (a = In(S, m, _, r.options)), ht(f, d) || (u.prevFromRect = d, u.prevToRect = f, a || (a = r.options.animation), r.animate(u, S, f, a)), a && (o = !0, l = Math.max(l, a), clearTimeout(u.animationResetTimer), u.animationResetTimer = setTimeout(function() {
1119
+ var a = 0, u = s.target, d = u.fromRect, h = F(u), p = u.prevFromRect, _ = u.prevToRect, S = s.rect, m = De(u, !0);
1120
+ m && (h.top -= m.f, h.left -= m.e), u.toRect = h, u.thisAnimationDuration && ht(p, h) && !ht(d, h) && // Make sure animatingRect is on line between toRect & fromRect
1121
+ (S.top - h.top) / (S.left - h.left) === (d.top - h.top) / (d.left - h.left) && (a = In(S, p, _, r.options)), ht(h, d) || (u.prevFromRect = d, u.prevToRect = h, a || (a = r.options.animation), r.animate(u, S, h, a)), a && (o = !0, l = Math.max(l, a), clearTimeout(u.animationResetTimer), u.animationResetTimer = setTimeout(function() {
1104
1122
  u.animationTime = 0, u.prevFromRect = null, u.fromRect = null, u.prevToRect = null, u.thisAnimationDuration = null;
1105
1123
  }, a), u.thisAnimationDuration = a);
1106
1124
  }), clearTimeout(e), o ? e = setTimeout(function() {
@@ -1110,8 +1128,8 @@ function En() {
1110
1128
  animate: function(n, r, o, l) {
1111
1129
  if (l) {
1112
1130
  v(n, "transition", ""), v(n, "transform", "");
1113
- var s = De(this.el), a = s && s.a, u = s && s.d, d = (r.left - o.left) / (a || 1), f = (r.top - o.top) / (u || 1);
1114
- n.animatingX = !!d, n.animatingY = !!f, v(n, "transform", "translate3d(" + d + "px," + f + "px,0)"), this.forRepaintDummy = Dn(n), v(n, "transition", "transform " + l + "ms" + (this.options.easing ? " " + this.options.easing : "")), v(n, "transform", "translate3d(0,0,0)"), typeof n.animated == "number" && clearTimeout(n.animated), n.animated = setTimeout(function() {
1131
+ var s = De(this.el), a = s && s.a, u = s && s.d, d = (r.left - o.left) / (a || 1), h = (r.top - o.top) / (u || 1);
1132
+ n.animatingX = !!d, n.animatingY = !!h, v(n, "transform", "translate3d(" + d + "px," + h + "px,0)"), this.forRepaintDummy = Dn(n), v(n, "transition", "transform " + l + "ms" + (this.options.easing ? " " + this.options.easing : "")), v(n, "transform", "translate3d(0,0,0)"), typeof n.animated == "number" && clearTimeout(n.animated), n.animated = setTimeout(function() {
1115
1133
  v(n, "transition", ""), v(n, "transform", ""), n.animated = !1, n.animatingX = !1, n.animatingY = !1;
1116
1134
  }, l);
1117
1135
  }
@@ -1126,7 +1144,7 @@ function In(t, e, i, n) {
1126
1144
  }
1127
1145
  var ye = [], pt = {
1128
1146
  initializeByDefault: !0
1129
- }, Fe = {
1147
+ }, He = {
1130
1148
  mount: function(e) {
1131
1149
  for (var i in pt)
1132
1150
  pt.hasOwnProperty(i) && !(i in e) && (e[i] = pt[i]);
@@ -1177,36 +1195,36 @@ var ye = [], pt = {
1177
1195
  }
1178
1196
  };
1179
1197
  function Tn(t) {
1180
- var e = t.sortable, i = t.rootEl, n = t.name, r = t.targetEl, o = t.cloneEl, l = t.toEl, s = t.fromEl, a = t.oldIndex, u = t.newIndex, d = t.oldDraggableIndex, f = t.newDraggableIndex, m = t.originalEvent, _ = t.putSortable, S = t.extraEventProperties;
1181
- if (e = e || i && i[U], !!e) {
1182
- var p, c = e.options, C = "on" + n.charAt(0).toUpperCase() + n.substr(1);
1183
- window.CustomEvent && !se && !Ve ? p = new CustomEvent(n, {
1198
+ var e = t.sortable, i = t.rootEl, n = t.name, r = t.targetEl, o = t.cloneEl, l = t.toEl, s = t.fromEl, a = t.oldIndex, u = t.newIndex, d = t.oldDraggableIndex, h = t.newDraggableIndex, p = t.originalEvent, _ = t.putSortable, S = t.extraEventProperties;
1199
+ if (e = e || i && i[q], !!e) {
1200
+ var m, I = e.options, y = "on" + n.charAt(0).toUpperCase() + n.substr(1);
1201
+ window.CustomEvent && !se && !Fe ? m = new CustomEvent(n, {
1184
1202
  bubbles: !0,
1185
1203
  cancelable: !0
1186
- }) : (p = document.createEvent("Event"), p.initEvent(n, !0, !0)), p.to = l || i, p.from = s || i, p.item = r || i, p.clone = o, p.oldIndex = a, p.newIndex = u, p.oldDraggableIndex = d, p.newDraggableIndex = f, p.originalEvent = m, p.pullMode = _ ? _.lastPutMode : void 0;
1187
- var T = re(re({}, S), Fe.getEventProperties(n, e));
1188
- for (var y in T)
1189
- p[y] = T[y];
1190
- i && i.dispatchEvent(p), c[C] && c[C].call(e, p);
1204
+ }) : (m = document.createEvent("Event"), m.initEvent(n, !0, !0)), m.to = l || i, m.from = s || i, m.item = r || i, m.clone = o, m.oldIndex = a, m.newIndex = u, m.oldDraggableIndex = d, m.newDraggableIndex = h, m.originalEvent = p, m.pullMode = _ ? _.lastPutMode : void 0;
1205
+ var c = re(re({}, S), He.getEventProperties(n, e));
1206
+ for (var C in c)
1207
+ m[C] = c[C];
1208
+ i && i.dispatchEvent(m), I[y] && I[y].call(e, m);
1191
1209
  }
1192
1210
  }
1193
- var On = ["evt"], K = function(e, i) {
1194
- var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, o = bn(n, On);
1195
- Fe.pluginEvent.bind(b)(e, i, re({
1196
- dragEl: h,
1197
- parentEl: x,
1211
+ var Cn = ["evt"], U = function(e, i) {
1212
+ var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, o = bn(n, Cn);
1213
+ He.pluginEvent.bind(b)(e, i, re({
1214
+ dragEl: f,
1215
+ parentEl: M,
1198
1216
  ghostEl: w,
1199
- rootEl: k,
1200
- nextEl: ve,
1201
- lastDownEl: Ue,
1202
- cloneEl: P,
1217
+ rootEl: N,
1218
+ nextEl: be,
1219
+ lastDownEl: qe,
1220
+ cloneEl: $,
1203
1221
  cloneHidden: fe,
1204
1222
  dragStarted: ze,
1205
- putSortable: H,
1223
+ putSortable: Y,
1206
1224
  activeSortable: b.active,
1207
1225
  originalEvent: r,
1208
1226
  oldIndex: Ee,
1209
- oldDraggableIndex: $e,
1227
+ oldDraggableIndex: xe,
1210
1228
  newIndex: Q,
1211
1229
  newDraggableIndex: ce,
1212
1230
  hideGhostForTarget: mi,
@@ -1218,7 +1236,7 @@ var On = ["evt"], K = function(e, i) {
1218
1236
  fe = !1;
1219
1237
  },
1220
1238
  dispatchSortableEvent: function(s) {
1221
- X({
1239
+ j({
1222
1240
  sortable: i,
1223
1241
  name: s,
1224
1242
  originalEvent: r
@@ -1226,19 +1244,19 @@ var On = ["evt"], K = function(e, i) {
1226
1244
  }
1227
1245
  }, o));
1228
1246
  };
1229
- function X(t) {
1247
+ function j(t) {
1230
1248
  Tn(re({
1231
- putSortable: H,
1232
- cloneEl: P,
1233
- targetEl: h,
1234
- rootEl: k,
1249
+ putSortable: Y,
1250
+ cloneEl: $,
1251
+ targetEl: f,
1252
+ rootEl: N,
1235
1253
  oldIndex: Ee,
1236
- oldDraggableIndex: $e,
1254
+ oldDraggableIndex: xe,
1237
1255
  newIndex: Q,
1238
1256
  newDraggableIndex: ce
1239
1257
  }, t));
1240
1258
  }
1241
- var h, x, w, k, ve, Ue, P, fe, Ee, Q, $e, ce, Le, H, _e = !1, nt = !1, rt = [], me, te, mt, gt, jt, Gt, ze, we, Me, Re = !1, Be = !1, qe, B, vt = [], Ct = !1, ot = [], st = typeof document < "u", Ye = ni, Kt = Ve || se ? "cssFloat" : "float", Cn = st && !ri && !ni && "draggable" in document.createElement("div"), fi = function() {
1259
+ var f, M, w, N, be, qe, $, fe, Ee, Q, xe, ce, Be, Y, _e = !1, nt = !1, rt = [], ge, te, mt, gt, jt, Kt, ze, we, Ve, Re = !1, Ye = !1, Je, W, vt = [], Ot = !1, ot = [], st = typeof document < "u", Xe = ni, Gt = Fe || se ? "cssFloat" : "float", On = st && !ri && !ni && "draggable" in document.createElement("div"), fi = function() {
1242
1260
  if (st) {
1243
1261
  if (se)
1244
1262
  return !1;
@@ -1246,25 +1264,25 @@ var h, x, w, k, ve, Ue, P, fe, Ee, Q, $e, ce, Le, H, _e = !1, nt = !1, rt = [],
1246
1264
  return t.style.cssText = "pointer-events:auto", t.style.pointerEvents === "auto";
1247
1265
  }
1248
1266
  }(), hi = function(e, i) {
1249
- var n = v(e), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), o = Ie(e, 0, i), l = Ie(e, 1, i), s = o && v(o), a = l && v(l), u = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + V(o).width, d = a && parseInt(a.marginLeft) + parseInt(a.marginRight) + V(l).width;
1267
+ var n = v(e), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), o = Ie(e, 0, i), l = Ie(e, 1, i), s = o && v(o), a = l && v(l), u = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + F(o).width, d = a && parseInt(a.marginLeft) + parseInt(a.marginRight) + F(l).width;
1250
1268
  if (n.display === "flex")
1251
1269
  return n.flexDirection === "column" || n.flexDirection === "column-reverse" ? "vertical" : "horizontal";
1252
1270
  if (n.display === "grid")
1253
1271
  return n.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
1254
1272
  if (o && s.float && s.float !== "none") {
1255
- var f = s.float === "left" ? "left" : "right";
1256
- return l && (a.clear === "both" || a.clear === f) ? "vertical" : "horizontal";
1273
+ var h = s.float === "left" ? "left" : "right";
1274
+ return l && (a.clear === "both" || a.clear === h) ? "vertical" : "horizontal";
1257
1275
  }
1258
- return o && (s.display === "block" || s.display === "flex" || s.display === "table" || s.display === "grid" || u >= r && n[Kt] === "none" || l && n[Kt] === "none" && u + d > r) ? "vertical" : "horizontal";
1276
+ return o && (s.display === "block" || s.display === "flex" || s.display === "table" || s.display === "grid" || u >= r && n[Gt] === "none" || l && n[Gt] === "none" && u + d > r) ? "vertical" : "horizontal";
1259
1277
  }, zn = function(e, i, n) {
1260
1278
  var r = n ? e.left : e.top, o = n ? e.right : e.bottom, l = n ? e.width : e.height, s = n ? i.left : i.top, a = n ? i.right : i.bottom, u = n ? i.width : i.height;
1261
1279
  return r === s || o === a || r + l / 2 === s + u / 2;
1262
1280
  }, An = function(e, i) {
1263
1281
  var n;
1264
1282
  return rt.some(function(r) {
1265
- var o = r[U].options.emptyInsertThreshold;
1283
+ var o = r[q].options.emptyInsertThreshold;
1266
1284
  if (!(!o || Pt(r))) {
1267
- var l = V(r), s = e >= l.left - o && e <= l.right + o, a = i >= l.top - o && i <= l.bottom + o;
1285
+ var l = F(r), s = e >= l.left - o && e <= l.right + o, a = i >= l.top - o && i <= l.bottom + o;
1268
1286
  if (s && a)
1269
1287
  return n = r;
1270
1288
  }
@@ -1272,8 +1290,8 @@ var h, x, w, k, ve, Ue, P, fe, Ee, Q, $e, ce, Le, H, _e = !1, nt = !1, rt = [],
1272
1290
  }, pi = function(e) {
1273
1291
  function i(o, l) {
1274
1292
  return function(s, a, u, d) {
1275
- var f = s.options.group.name && a.options.group.name && s.options.group.name === a.options.group.name;
1276
- if (o == null && (l || f))
1293
+ var h = s.options.group.name && a.options.group.name && s.options.group.name === a.options.group.name;
1294
+ if (o == null && (l || h))
1277
1295
  return !0;
1278
1296
  if (o == null || o === !1)
1279
1297
  return !1;
@@ -1281,12 +1299,12 @@ var h, x, w, k, ve, Ue, P, fe, Ee, Q, $e, ce, Le, H, _e = !1, nt = !1, rt = [],
1281
1299
  return o;
1282
1300
  if (typeof o == "function")
1283
1301
  return i(o(s, a, u, d), l)(s, a, u, d);
1284
- var m = (l ? s : a).options.group.name;
1285
- return o === !0 || typeof o == "string" && o === m || o.join && o.indexOf(m) > -1;
1302
+ var p = (l ? s : a).options.group.name;
1303
+ return o === !0 || typeof o == "string" && o === p || o.join && o.indexOf(p) > -1;
1286
1304
  };
1287
1305
  }
1288
1306
  var n = {}, r = e.group;
1289
- (!r || Ke(r) != "object") && (r = {
1307
+ (!r || Ue(r) != "object") && (r = {
1290
1308
  name: r
1291
1309
  }), n.name = r.name, n.checkPull = i(r.pull, !0), n.checkPut = i(r.put), n.revertClone = r.revertClone, e.group = n;
1292
1310
  }, mi = function() {
@@ -1298,24 +1316,24 @@ st && !ri && document.addEventListener("click", function(t) {
1298
1316
  if (nt)
1299
1317
  return t.preventDefault(), t.stopPropagation && t.stopPropagation(), t.stopImmediatePropagation && t.stopImmediatePropagation(), nt = !1, !1;
1300
1318
  }, !0);
1301
- var ge = function(e) {
1302
- if (h) {
1319
+ var ve = function(e) {
1320
+ if (f) {
1303
1321
  e = e.touches ? e.touches[0] : e;
1304
1322
  var i = An(e.clientX, e.clientY);
1305
1323
  if (i) {
1306
1324
  var n = {};
1307
1325
  for (var r in e)
1308
1326
  e.hasOwnProperty(r) && (n[r] = e[r]);
1309
- n.target = n.rootEl = i, n.preventDefault = void 0, n.stopPropagation = void 0, i[U]._onDragOver(n);
1327
+ n.target = n.rootEl = i, n.preventDefault = void 0, n.stopPropagation = void 0, i[q]._onDragOver(n);
1310
1328
  }
1311
1329
  }
1312
1330
  }, kn = function(e) {
1313
- h && h.parentNode[U]._isOutsideThisEl(e.target);
1331
+ f && f.parentNode[q]._isOutsideThisEl(e.target);
1314
1332
  };
1315
1333
  function b(t, e) {
1316
1334
  if (!(t && t.nodeType && t.nodeType === 1))
1317
1335
  throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));
1318
- this.el = t, this.options = e = ae({}, e), t[U] = this;
1336
+ this.el = t, this.options = e = ae({}, e), t[q] = this;
1319
1337
  var i = {
1320
1338
  group: null,
1321
1339
  sort: !0,
@@ -1358,16 +1376,16 @@ function b(t, e) {
1358
1376
  x: 0,
1359
1377
  y: 0
1360
1378
  },
1361
- supportPointer: b.supportPointer !== !1 && "PointerEvent" in window && !Pe,
1379
+ supportPointer: b.supportPointer !== !1 && "PointerEvent" in window && !$e,
1362
1380
  emptyInsertThreshold: 5
1363
1381
  };
1364
- Fe.initializePlugins(this, t, i);
1382
+ He.initializePlugins(this, t, i);
1365
1383
  for (var n in i)
1366
1384
  !(n in e) && (e[n] = i[n]);
1367
1385
  pi(e);
1368
1386
  for (var r in this)
1369
1387
  r.charAt(0) === "_" && typeof this[r] == "function" && (this[r] = this[r].bind(this));
1370
- this.nativeDraggable = e.forceFallback ? !1 : Cn, this.nativeDraggable && (this.options.touchStartThreshold = 1), e.supportPointer ? O(t, "pointerdown", this._onTapStart) : (O(t, "mousedown", this._onTapStart), O(t, "touchstart", this._onTapStart)), this.nativeDraggable && (O(t, "dragover", this), O(t, "dragenter", this)), rt.push(this.el), e.store && e.store.get && this.sort(e.store.get(this) || []), ae(this, En());
1388
+ this.nativeDraggable = e.forceFallback ? !1 : On, this.nativeDraggable && (this.options.touchStartThreshold = 1), e.supportPointer ? z(t, "pointerdown", this._onTapStart) : (z(t, "mousedown", this._onTapStart), z(t, "touchstart", this._onTapStart)), this.nativeDraggable && (z(t, "dragover", this), z(t, "dragenter", this)), rt.push(this.el), e.store && e.store.get && this.sort(e.store.get(this) || []), ae(this, En());
1371
1389
  }
1372
1390
  b.prototype = /** @lends Sortable.prototype */
1373
1391
  {
@@ -1376,36 +1394,36 @@ b.prototype = /** @lends Sortable.prototype */
1376
1394
  !this.el.contains(e) && e !== this.el && (we = null);
1377
1395
  },
1378
1396
  _getDirection: function(e, i) {
1379
- return typeof this.options.direction == "function" ? this.options.direction.call(this, e, i, h) : this.options.direction;
1397
+ return typeof this.options.direction == "function" ? this.options.direction.call(this, e, i, f) : this.options.direction;
1380
1398
  },
1381
1399
  _onTapStart: function(e) {
1382
1400
  if (e.cancelable) {
1383
1401
  var i = this, n = this.el, r = this.options, o = r.preventOnFilter, l = e.type, s = e.touches && e.touches[0] || e.pointerType && e.pointerType === "touch" && e, a = (s || e).target, u = e.target.shadowRoot && (e.path && e.path[0] || e.composedPath && e.composedPath()[0]) || a, d = r.filter;
1384
- if (Fn(n), !h && !(/mousedown|pointerdown/.test(l) && e.button !== 0 || r.disabled) && !u.isContentEditable && !(!this.nativeDraggable && Pe && a && a.tagName.toUpperCase() === "SELECT") && (a = ie(a, r.draggable, n, !1), !(a && a.animated) && Ue !== a)) {
1385
- if (Ee = ee(a), $e = ee(a, r.draggable), typeof d == "function") {
1402
+ if (Fn(n), !f && !(/mousedown|pointerdown/.test(l) && e.button !== 0 || r.disabled) && !u.isContentEditable && !(!this.nativeDraggable && $e && a && a.tagName.toUpperCase() === "SELECT") && (a = ie(a, r.draggable, n, !1), !(a && a.animated) && qe !== a)) {
1403
+ if (Ee = ee(a), xe = ee(a, r.draggable), typeof d == "function") {
1386
1404
  if (d.call(this, e, a, this)) {
1387
- X({
1405
+ j({
1388
1406
  sortable: i,
1389
1407
  rootEl: u,
1390
1408
  name: "filter",
1391
1409
  targetEl: a,
1392
1410
  toEl: n,
1393
1411
  fromEl: n
1394
- }), K("filter", i, {
1412
+ }), U("filter", i, {
1395
1413
  evt: e
1396
1414
  }), o && e.cancelable && e.preventDefault();
1397
1415
  return;
1398
1416
  }
1399
- } else if (d && (d = d.split(",").some(function(f) {
1400
- if (f = ie(u, f.trim(), n, !1), f)
1401
- return X({
1417
+ } else if (d && (d = d.split(",").some(function(h) {
1418
+ if (h = ie(u, h.trim(), n, !1), h)
1419
+ return j({
1402
1420
  sortable: i,
1403
- rootEl: f,
1421
+ rootEl: h,
1404
1422
  name: "filter",
1405
1423
  targetEl: a,
1406
1424
  fromEl: n,
1407
1425
  toEl: n
1408
- }), K("filter", i, {
1426
+ }), U("filter", i, {
1409
1427
  evt: e
1410
1428
  }), !0;
1411
1429
  }), d)) {
@@ -1418,34 +1436,34 @@ b.prototype = /** @lends Sortable.prototype */
1418
1436
  },
1419
1437
  _prepareDragStart: function(e, i, n) {
1420
1438
  var r = this, o = r.el, l = r.options, s = o.ownerDocument, a;
1421
- if (n && !h && n.parentNode === o) {
1422
- var u = V(n);
1423
- if (k = o, h = n, x = h.parentNode, ve = h.nextSibling, Ue = n, Le = l.group, b.dragged = h, me = {
1424
- target: h,
1439
+ if (n && !f && n.parentNode === o) {
1440
+ var u = F(n);
1441
+ if (N = o, f = n, M = f.parentNode, be = f.nextSibling, qe = n, Be = l.group, b.dragged = f, ge = {
1442
+ target: f,
1425
1443
  clientX: (i || e).clientX,
1426
1444
  clientY: (i || e).clientY
1427
- }, jt = me.clientX - u.left, Gt = me.clientY - u.top, this._lastX = (i || e).clientX, this._lastY = (i || e).clientY, h.style["will-change"] = "all", a = function() {
1428
- if (K("delayEnded", r, {
1445
+ }, jt = ge.clientX - u.left, Kt = ge.clientY - u.top, this._lastX = (i || e).clientX, this._lastY = (i || e).clientY, f.style["will-change"] = "all", a = function() {
1446
+ if (U("delayEnded", r, {
1429
1447
  evt: e
1430
1448
  }), b.eventCanceled) {
1431
1449
  r._onDrop();
1432
1450
  return;
1433
1451
  }
1434
- r._disableDelayedDragEvents(), !Bt && r.nativeDraggable && (h.draggable = !0), r._triggerDragStart(e, i), X({
1452
+ r._disableDelayedDragEvents(), !Bt && r.nativeDraggable && (f.draggable = !0), r._triggerDragStart(e, i), j({
1435
1453
  sortable: r,
1436
1454
  name: "choose",
1437
1455
  originalEvent: e
1438
- }), Z(h, l.chosenClass, !0);
1456
+ }), Z(f, l.chosenClass, !0);
1439
1457
  }, l.ignore.split(",").forEach(function(d) {
1440
- ai(h, d.trim(), bt);
1441
- }), O(s, "dragover", ge), O(s, "mousemove", ge), O(s, "touchmove", ge), O(s, "mouseup", r._onDrop), O(s, "touchend", r._onDrop), O(s, "touchcancel", r._onDrop), Bt && this.nativeDraggable && (this.options.touchStartThreshold = 4, h.draggable = !0), K("delayStart", this, {
1458
+ ai(f, d.trim(), bt);
1459
+ }), z(s, "dragover", ve), z(s, "mousemove", ve), z(s, "touchmove", ve), z(s, "mouseup", r._onDrop), z(s, "touchend", r._onDrop), z(s, "touchcancel", r._onDrop), Bt && this.nativeDraggable && (this.options.touchStartThreshold = 4, f.draggable = !0), U("delayStart", this, {
1442
1460
  evt: e
1443
- }), l.delay && (!l.delayOnTouchOnly || i) && (!this.nativeDraggable || !(Ve || se))) {
1461
+ }), l.delay && (!l.delayOnTouchOnly || i) && (!this.nativeDraggable || !(Fe || se))) {
1444
1462
  if (b.eventCanceled) {
1445
1463
  this._onDrop();
1446
1464
  return;
1447
1465
  }
1448
- O(s, "mouseup", r._disableDelayedDrag), O(s, "touchend", r._disableDelayedDrag), O(s, "touchcancel", r._disableDelayedDrag), O(s, "mousemove", r._delayedDragTouchMoveHandler), O(s, "touchmove", r._delayedDragTouchMoveHandler), l.supportPointer && O(s, "pointermove", r._delayedDragTouchMoveHandler), r._dragStartTimer = setTimeout(a, l.delay);
1466
+ z(s, "mouseup", r._disableDelayedDrag), z(s, "touchend", r._disableDelayedDrag), z(s, "touchcancel", r._disableDelayedDrag), z(s, "mousemove", r._delayedDragTouchMoveHandler), z(s, "touchmove", r._delayedDragTouchMoveHandler), l.supportPointer && z(s, "pointermove", r._delayedDragTouchMoveHandler), r._dragStartTimer = setTimeout(a, l.delay);
1449
1467
  } else
1450
1468
  a();
1451
1469
  }
@@ -1455,28 +1473,28 @@ b.prototype = /** @lends Sortable.prototype */
1455
1473
  Math.max(Math.abs(i.clientX - this._lastX), Math.abs(i.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1)) && this._disableDelayedDrag();
1456
1474
  },
1457
1475
  _disableDelayedDrag: function() {
1458
- h && bt(h), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
1476
+ f && bt(f), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
1459
1477
  },
1460
1478
  _disableDelayedDragEvents: function() {
1461
1479
  var e = this.el.ownerDocument;
1462
- I(e, "mouseup", this._disableDelayedDrag), I(e, "touchend", this._disableDelayedDrag), I(e, "touchcancel", this._disableDelayedDrag), I(e, "mousemove", this._delayedDragTouchMoveHandler), I(e, "touchmove", this._delayedDragTouchMoveHandler), I(e, "pointermove", this._delayedDragTouchMoveHandler);
1480
+ O(e, "mouseup", this._disableDelayedDrag), O(e, "touchend", this._disableDelayedDrag), O(e, "touchcancel", this._disableDelayedDrag), O(e, "mousemove", this._delayedDragTouchMoveHandler), O(e, "touchmove", this._delayedDragTouchMoveHandler), O(e, "pointermove", this._delayedDragTouchMoveHandler);
1463
1481
  },
1464
1482
  _triggerDragStart: function(e, i) {
1465
- i = i || e.pointerType == "touch" && e, !this.nativeDraggable || i ? this.options.supportPointer ? O(document, "pointermove", this._onTouchMove) : i ? O(document, "touchmove", this._onTouchMove) : O(document, "mousemove", this._onTouchMove) : (O(h, "dragend", this), O(k, "dragstart", this._onDragStart));
1483
+ i = i || e.pointerType == "touch" && e, !this.nativeDraggable || i ? this.options.supportPointer ? z(document, "pointermove", this._onTouchMove) : i ? z(document, "touchmove", this._onTouchMove) : z(document, "mousemove", this._onTouchMove) : (z(f, "dragend", this), z(N, "dragstart", this._onDragStart));
1466
1484
  try {
1467
- document.selection ? Je(function() {
1485
+ document.selection ? Ze(function() {
1468
1486
  document.selection.empty();
1469
1487
  }) : window.getSelection().removeAllRanges();
1470
1488
  } catch {
1471
1489
  }
1472
1490
  },
1473
1491
  _dragStarted: function(e, i) {
1474
- if (_e = !1, k && h) {
1475
- K("dragStarted", this, {
1492
+ if (_e = !1, N && f) {
1493
+ U("dragStarted", this, {
1476
1494
  evt: i
1477
- }), this.nativeDraggable && O(document, "dragover", kn);
1495
+ }), this.nativeDraggable && z(document, "dragover", kn);
1478
1496
  var n = this.options;
1479
- !e && Z(h, n.dragClass, !1), Z(h, n.ghostClass, !0), b.active = this, e && this._appendGhost(), X({
1497
+ !e && Z(f, n.dragClass, !1), Z(f, n.ghostClass, !0), b.active = this, e && this._appendGhost(), j({
1480
1498
  sortable: this,
1481
1499
  name: "start",
1482
1500
  originalEvent: i
@@ -1489,11 +1507,11 @@ b.prototype = /** @lends Sortable.prototype */
1489
1507
  this._lastX = te.clientX, this._lastY = te.clientY, mi();
1490
1508
  for (var e = document.elementFromPoint(te.clientX, te.clientY), i = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(te.clientX, te.clientY), e !== i); )
1491
1509
  i = e;
1492
- if (h.parentNode[U]._isOutsideThisEl(e), i)
1510
+ if (f.parentNode[q]._isOutsideThisEl(e), i)
1493
1511
  do {
1494
- if (i[U]) {
1512
+ if (i[q]) {
1495
1513
  var n = void 0;
1496
- if (n = i[U]._onDragOver({
1514
+ if (n = i[q]._onDragOver({
1497
1515
  clientX: te.clientX,
1498
1516
  clientY: te.clientY,
1499
1517
  target: e,
@@ -1507,88 +1525,88 @@ b.prototype = /** @lends Sortable.prototype */
1507
1525
  }
1508
1526
  },
1509
1527
  _onTouchMove: function(e) {
1510
- if (me) {
1511
- var i = this.options, n = i.fallbackTolerance, r = i.fallbackOffset, o = e.touches ? e.touches[0] : e, l = w && De(w, !0), s = w && l && l.a, a = w && l && l.d, u = Ye && B && Wt(B), d = (o.clientX - me.clientX + r.x) / (s || 1) + (u ? u[0] - vt[0] : 0) / (s || 1), f = (o.clientY - me.clientY + r.y) / (a || 1) + (u ? u[1] - vt[1] : 0) / (a || 1);
1528
+ if (ge) {
1529
+ var i = this.options, n = i.fallbackTolerance, r = i.fallbackOffset, o = e.touches ? e.touches[0] : e, l = w && De(w, !0), s = w && l && l.a, a = w && l && l.d, u = Xe && W && Wt(W), d = (o.clientX - ge.clientX + r.x) / (s || 1) + (u ? u[0] - vt[0] : 0) / (s || 1), h = (o.clientY - ge.clientY + r.y) / (a || 1) + (u ? u[1] - vt[1] : 0) / (a || 1);
1512
1530
  if (!b.active && !_e) {
1513
1531
  if (n && Math.max(Math.abs(o.clientX - this._lastX), Math.abs(o.clientY - this._lastY)) < n)
1514
1532
  return;
1515
1533
  this._onDragStart(e, !0);
1516
1534
  }
1517
1535
  if (w) {
1518
- l ? (l.e += d - (mt || 0), l.f += f - (gt || 0)) : l = {
1536
+ l ? (l.e += d - (mt || 0), l.f += h - (gt || 0)) : l = {
1519
1537
  a: 1,
1520
1538
  b: 0,
1521
1539
  c: 0,
1522
1540
  d: 1,
1523
1541
  e: d,
1524
- f
1542
+ f: h
1525
1543
  };
1526
- var m = "matrix(".concat(l.a, ",").concat(l.b, ",").concat(l.c, ",").concat(l.d, ",").concat(l.e, ",").concat(l.f, ")");
1527
- v(w, "webkitTransform", m), v(w, "mozTransform", m), v(w, "msTransform", m), v(w, "transform", m), mt = d, gt = f, te = o;
1544
+ var p = "matrix(".concat(l.a, ",").concat(l.b, ",").concat(l.c, ",").concat(l.d, ",").concat(l.e, ",").concat(l.f, ")");
1545
+ v(w, "webkitTransform", p), v(w, "mozTransform", p), v(w, "msTransform", p), v(w, "transform", p), mt = d, gt = h, te = o;
1528
1546
  }
1529
1547
  e.cancelable && e.preventDefault();
1530
1548
  }
1531
1549
  },
1532
1550
  _appendGhost: function() {
1533
1551
  if (!w) {
1534
- var e = this.options.fallbackOnBody ? document.body : k, i = V(h, !0, Ye, !0, e), n = this.options;
1535
- if (Ye) {
1536
- for (B = e; v(B, "position") === "static" && v(B, "transform") === "none" && B !== document; )
1537
- B = B.parentNode;
1538
- B !== document.body && B !== document.documentElement ? (B === document && (B = ne()), i.top += B.scrollTop, i.left += B.scrollLeft) : B = ne(), vt = Wt(B);
1552
+ var e = this.options.fallbackOnBody ? document.body : N, i = F(f, !0, Xe, !0, e), n = this.options;
1553
+ if (Xe) {
1554
+ for (W = e; v(W, "position") === "static" && v(W, "transform") === "none" && W !== document; )
1555
+ W = W.parentNode;
1556
+ W !== document.body && W !== document.documentElement ? (W === document && (W = ne()), i.top += W.scrollTop, i.left += W.scrollLeft) : W = ne(), vt = Wt(W);
1539
1557
  }
1540
- w = h.cloneNode(!0), Z(w, n.ghostClass, !1), Z(w, n.fallbackClass, !0), Z(w, n.dragClass, !0), v(w, "transition", ""), v(w, "transform", ""), v(w, "box-sizing", "border-box"), v(w, "margin", 0), v(w, "top", i.top), v(w, "left", i.left), v(w, "width", i.width), v(w, "height", i.height), v(w, "opacity", "0.8"), v(w, "position", Ye ? "absolute" : "fixed"), v(w, "zIndex", "100000"), v(w, "pointerEvents", "none"), b.ghost = w, e.appendChild(w), v(w, "transform-origin", jt / parseInt(w.style.width) * 100 + "% " + Gt / parseInt(w.style.height) * 100 + "%");
1558
+ w = f.cloneNode(!0), Z(w, n.ghostClass, !1), Z(w, n.fallbackClass, !0), Z(w, n.dragClass, !0), v(w, "transition", ""), v(w, "transform", ""), v(w, "box-sizing", "border-box"), v(w, "margin", 0), v(w, "top", i.top), v(w, "left", i.left), v(w, "width", i.width), v(w, "height", i.height), v(w, "opacity", "0.8"), v(w, "position", Xe ? "absolute" : "fixed"), v(w, "zIndex", "100000"), v(w, "pointerEvents", "none"), b.ghost = w, e.appendChild(w), v(w, "transform-origin", jt / parseInt(w.style.width) * 100 + "% " + Kt / parseInt(w.style.height) * 100 + "%");
1541
1559
  }
1542
1560
  },
1543
1561
  _onDragStart: function(e, i) {
1544
1562
  var n = this, r = e.dataTransfer, o = n.options;
1545
- if (K("dragStart", this, {
1563
+ if (U("dragStart", this, {
1546
1564
  evt: e
1547
1565
  }), b.eventCanceled) {
1548
1566
  this._onDrop();
1549
1567
  return;
1550
1568
  }
1551
- K("setupClone", this), b.eventCanceled || (P = di(h), P.removeAttribute("id"), P.draggable = !1, P.style["will-change"] = "", this._hideClone(), Z(P, this.options.chosenClass, !1), b.clone = P), n.cloneId = Je(function() {
1552
- K("clone", n), !b.eventCanceled && (n.options.removeCloneOnHide || k.insertBefore(P, h), n._hideClone(), X({
1569
+ U("setupClone", this), b.eventCanceled || ($ = di(f), $.removeAttribute("id"), $.draggable = !1, $.style["will-change"] = "", this._hideClone(), Z($, this.options.chosenClass, !1), b.clone = $), n.cloneId = Ze(function() {
1570
+ U("clone", n), !b.eventCanceled && (n.options.removeCloneOnHide || N.insertBefore($, f), n._hideClone(), j({
1553
1571
  sortable: n,
1554
1572
  name: "clone"
1555
1573
  }));
1556
- }), !i && Z(h, o.dragClass, !0), i ? (nt = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (I(document, "mouseup", n._onDrop), I(document, "touchend", n._onDrop), I(document, "touchcancel", n._onDrop), r && (r.effectAllowed = "move", o.setData && o.setData.call(n, r, h)), O(document, "drop", n), v(h, "transform", "translateZ(0)")), _e = !0, n._dragStartId = Je(n._dragStarted.bind(n, i, e)), O(document, "selectstart", n), ze = !0, Pe && v(document.body, "user-select", "none");
1574
+ }), !i && Z(f, o.dragClass, !0), i ? (nt = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (O(document, "mouseup", n._onDrop), O(document, "touchend", n._onDrop), O(document, "touchcancel", n._onDrop), r && (r.effectAllowed = "move", o.setData && o.setData.call(n, r, f)), z(document, "drop", n), v(f, "transform", "translateZ(0)")), _e = !0, n._dragStartId = Ze(n._dragStarted.bind(n, i, e)), z(document, "selectstart", n), ze = !0, $e && v(document.body, "user-select", "none");
1557
1575
  },
1558
1576
  // Returns true - if no further action is needed (either inserted or another condition)
1559
1577
  _onDragOver: function(e) {
1560
- var i = this.el, n = e.target, r, o, l, s = this.options, a = s.group, u = b.active, d = Le === a, f = s.sort, m = H || u, _, S = this, p = !1;
1561
- if (Ct) return;
1562
- function c(Te, bi) {
1563
- K(Te, S, re({
1578
+ var i = this.el, n = e.target, r, o, l, s = this.options, a = s.group, u = b.active, d = Be === a, h = s.sort, p = Y || u, _, S = this, m = !1;
1579
+ if (Ot) return;
1580
+ function I(Te, bi) {
1581
+ U(Te, S, re({
1564
1582
  evt: e,
1565
1583
  isOwner: d,
1566
1584
  axis: _ ? "vertical" : "horizontal",
1567
1585
  revert: l,
1568
1586
  dragRect: r,
1569
1587
  targetRect: o,
1570
- canSort: f,
1571
- fromSortable: m,
1588
+ canSort: h,
1589
+ fromSortable: p,
1572
1590
  target: n,
1573
- completed: T,
1574
- onMove: function(Mt, yi) {
1575
- return Xe(k, i, h, r, Mt, V(Mt), e, yi);
1591
+ completed: c,
1592
+ onMove: function(xt, yi) {
1593
+ return We(N, i, f, r, xt, F(xt), e, yi);
1576
1594
  },
1577
- changed: y
1595
+ changed: C
1578
1596
  }, bi));
1579
1597
  }
1580
- function C() {
1581
- c("dragOverAnimationCapture"), S.captureAnimationState(), S !== m && m.captureAnimationState();
1598
+ function y() {
1599
+ I("dragOverAnimationCapture"), S.captureAnimationState(), S !== p && p.captureAnimationState();
1582
1600
  }
1583
- function T(Te) {
1584
- return c("dragOverCompleted", {
1601
+ function c(Te) {
1602
+ return I("dragOverCompleted", {
1585
1603
  insertion: Te
1586
- }), Te && (d ? u._hideClone() : u._showClone(S), S !== m && (Z(h, H ? H.options.ghostClass : u.options.ghostClass, !1), Z(h, s.ghostClass, !0)), H !== S && S !== b.active ? H = S : S === b.active && H && (H = null), m === S && (S._ignoreWhileAnimating = n), S.animateAll(function() {
1587
- c("dragOverAnimationComplete"), S._ignoreWhileAnimating = null;
1588
- }), S !== m && (m.animateAll(), m._ignoreWhileAnimating = null)), (n === h && !h.animated || n === i && !n.animated) && (we = null), !s.dragoverBubble && !e.rootEl && n !== document && (h.parentNode[U]._isOutsideThisEl(e.target), !Te && ge(e)), !s.dragoverBubble && e.stopPropagation && e.stopPropagation(), p = !0;
1604
+ }), Te && (d ? u._hideClone() : u._showClone(S), S !== p && (Z(f, Y ? Y.options.ghostClass : u.options.ghostClass, !1), Z(f, s.ghostClass, !0)), Y !== S && S !== b.active ? Y = S : S === b.active && Y && (Y = null), p === S && (S._ignoreWhileAnimating = n), S.animateAll(function() {
1605
+ I("dragOverAnimationComplete"), S._ignoreWhileAnimating = null;
1606
+ }), S !== p && (p.animateAll(), p._ignoreWhileAnimating = null)), (n === f && !f.animated || n === i && !n.animated) && (we = null), !s.dragoverBubble && !e.rootEl && n !== document && (f.parentNode[q]._isOutsideThisEl(e.target), !Te && ve(e)), !s.dragoverBubble && e.stopPropagation && e.stopPropagation(), m = !0;
1589
1607
  }
1590
- function y() {
1591
- Q = ee(h), ce = ee(h, s.draggable), X({
1608
+ function C() {
1609
+ Q = ee(f), ce = ee(f, s.draggable), j({
1592
1610
  sortable: S,
1593
1611
  name: "change",
1594
1612
  toEl: i,
@@ -1597,114 +1615,114 @@ b.prototype = /** @lends Sortable.prototype */
1597
1615
  originalEvent: e
1598
1616
  });
1599
1617
  }
1600
- if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = ie(n, s.draggable, i, !0), c("dragOver"), b.eventCanceled) return p;
1601
- if (h.contains(e.target) || n.animated && n.animatingX && n.animatingY || S._ignoreWhileAnimating === n)
1602
- return T(!1);
1603
- if (nt = !1, u && !s.disabled && (d ? f || (l = x !== k) : H === this || (this.lastPutMode = Le.checkPull(this, u, h, e)) && a.checkPut(this, u, h, e))) {
1604
- if (_ = this._getDirection(e, n) === "vertical", r = V(h), c("dragOverValid"), b.eventCanceled) return p;
1618
+ if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = ie(n, s.draggable, i, !0), I("dragOver"), b.eventCanceled) return m;
1619
+ if (f.contains(e.target) || n.animated && n.animatingX && n.animatingY || S._ignoreWhileAnimating === n)
1620
+ return c(!1);
1621
+ if (nt = !1, u && !s.disabled && (d ? h || (l = M !== N) : Y === this || (this.lastPutMode = Be.checkPull(this, u, f, e)) && a.checkPut(this, u, f, e))) {
1622
+ if (_ = this._getDirection(e, n) === "vertical", r = F(f), I("dragOverValid"), b.eventCanceled) return m;
1605
1623
  if (l)
1606
- return x = k, C(), this._hideClone(), c("revert"), b.eventCanceled || (ve ? k.insertBefore(h, ve) : k.appendChild(h)), T(!0);
1624
+ return M = N, y(), this._hideClone(), I("revert"), b.eventCanceled || (be ? N.insertBefore(f, be) : N.appendChild(f)), c(!0);
1607
1625
  var g = Pt(i, s.draggable);
1608
- if (!g || $n(e, _, this) && !g.animated) {
1609
- if (g === h)
1610
- return T(!1);
1611
- if (g && i === e.target && (n = g), n && (o = V(n)), Xe(k, i, h, r, n, o, e, !!n) !== !1)
1612
- return C(), g && g.nextSibling ? i.insertBefore(h, g.nextSibling) : i.appendChild(h), x = i, y(), T(!0);
1613
- } else if (g && xn(e, _, this)) {
1614
- var j = Ie(i, 0, s, !0);
1615
- if (j === h)
1616
- return T(!1);
1617
- if (n = j, o = V(n), Xe(k, i, h, r, n, o, e, !1) !== !1)
1618
- return C(), i.insertBefore(h, j), x = i, y(), T(!0);
1626
+ if (!g || Mn(e, _, this) && !g.animated) {
1627
+ if (g === f)
1628
+ return c(!1);
1629
+ if (g && i === e.target && (n = g), n && (o = F(n)), We(N, i, f, r, n, o, e, !!n) !== !1)
1630
+ return y(), g && g.nextSibling ? i.insertBefore(f, g.nextSibling) : i.appendChild(f), M = i, C(), c(!0);
1631
+ } else if (g && $n(e, _, this)) {
1632
+ var E = Ie(i, 0, s, !0);
1633
+ if (E === f)
1634
+ return c(!1);
1635
+ if (n = E, o = F(n), We(N, i, f, r, n, o, e, !1) !== !1)
1636
+ return y(), i.insertBefore(f, E), M = i, C(), c(!0);
1619
1637
  } else if (n.parentNode === i) {
1620
- o = V(n);
1621
- var q = 0, Y, G = h.parentNode !== i, F = !zn(h.animated && h.toRect || r, n.animated && n.toRect || o, _), E = _ ? "top" : "left", $ = Xt(n, "top", "top") || Xt(h, "top", "top"), N = $ ? $.scrollTop : void 0;
1622
- we !== n && (Y = o[E], Re = !1, Be = !F && s.invertSwap || G), q = Mn(e, n, o, _, F ? 1 : s.swapThreshold, s.invertedSwapThreshold == null ? s.swapThreshold : s.invertedSwapThreshold, Be, we === n);
1623
- var z;
1624
- if (q !== 0) {
1625
- var J = ee(h);
1638
+ o = F(n);
1639
+ var L = 0, H, G = f.parentNode !== i, B = !zn(f.animated && f.toRect || r, n.animated && n.toRect || o, _), T = _ ? "top" : "left", x = Xt(n, "top", "top") || Xt(f, "top", "top"), P = x ? x.scrollTop : void 0;
1640
+ we !== n && (H = o[T], Re = !1, Ye = !B && s.invertSwap || G), L = xn(e, n, o, _, B ? 1 : s.swapThreshold, s.invertedSwapThreshold == null ? s.swapThreshold : s.invertedSwapThreshold, Ye, we === n);
1641
+ var A;
1642
+ if (L !== 0) {
1643
+ var J = ee(f);
1626
1644
  do
1627
- J -= q, z = x.children[J];
1628
- while (z && (v(z, "display") === "none" || z === w));
1645
+ J -= L, A = M.children[J];
1646
+ while (A && (v(A, "display") === "none" || A === w));
1629
1647
  }
1630
- if (q === 0 || z === n)
1631
- return T(!1);
1632
- we = n, Me = q;
1633
- var ue = n.nextElementSibling, M = !1;
1634
- M = q === 1;
1635
- var pe = Xe(k, i, h, r, n, o, e, M);
1636
- if (pe !== !1)
1637
- return (pe === 1 || pe === -1) && (M = pe === 1), Ct = !0, setTimeout(Pn, 30), C(), M && !ue ? i.appendChild(h) : n.parentNode.insertBefore(h, M ? ue : n), $ && ui($, 0, N - $.scrollTop), x = h.parentNode, Y !== void 0 && !Be && (qe = Math.abs(Y - V(n)[E])), y(), T(!0);
1648
+ if (L === 0 || A === n)
1649
+ return c(!1);
1650
+ we = n, Ve = L;
1651
+ var ue = n.nextElementSibling, V = !1;
1652
+ V = L === 1;
1653
+ var me = We(N, i, f, r, n, o, e, V);
1654
+ if (me !== !1)
1655
+ return (me === 1 || me === -1) && (V = me === 1), Ot = !0, setTimeout(Pn, 30), y(), V && !ue ? i.appendChild(f) : n.parentNode.insertBefore(f, V ? ue : n), x && ui(x, 0, P - x.scrollTop), M = f.parentNode, H !== void 0 && !Ye && (Je = Math.abs(H - F(n)[T])), C(), c(!0);
1638
1656
  }
1639
- if (i.contains(h))
1640
- return T(!1);
1657
+ if (i.contains(f))
1658
+ return c(!1);
1641
1659
  }
1642
1660
  return !1;
1643
1661
  },
1644
1662
  _ignoreWhileAnimating: null,
1645
1663
  _offMoveEvents: function() {
1646
- I(document, "mousemove", this._onTouchMove), I(document, "touchmove", this._onTouchMove), I(document, "pointermove", this._onTouchMove), I(document, "dragover", ge), I(document, "mousemove", ge), I(document, "touchmove", ge);
1664
+ O(document, "mousemove", this._onTouchMove), O(document, "touchmove", this._onTouchMove), O(document, "pointermove", this._onTouchMove), O(document, "dragover", ve), O(document, "mousemove", ve), O(document, "touchmove", ve);
1647
1665
  },
1648
1666
  _offUpEvents: function() {
1649
1667
  var e = this.el.ownerDocument;
1650
- I(e, "mouseup", this._onDrop), I(e, "touchend", this._onDrop), I(e, "pointerup", this._onDrop), I(e, "touchcancel", this._onDrop), I(document, "selectstart", this);
1668
+ O(e, "mouseup", this._onDrop), O(e, "touchend", this._onDrop), O(e, "pointerup", this._onDrop), O(e, "touchcancel", this._onDrop), O(document, "selectstart", this);
1651
1669
  },
1652
1670
  _onDrop: function(e) {
1653
1671
  var i = this.el, n = this.options;
1654
- if (Q = ee(h), ce = ee(h, n.draggable), K("drop", this, {
1672
+ if (Q = ee(f), ce = ee(f, n.draggable), U("drop", this, {
1655
1673
  evt: e
1656
- }), x = h && h.parentNode, Q = ee(h), ce = ee(h, n.draggable), b.eventCanceled) {
1674
+ }), M = f && f.parentNode, Q = ee(f), ce = ee(f, n.draggable), b.eventCanceled) {
1657
1675
  this._nulling();
1658
1676
  return;
1659
1677
  }
1660
- _e = !1, Be = !1, Re = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), zt(this.cloneId), zt(this._dragStartId), this.nativeDraggable && (I(document, "drop", this), I(i, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Pe && v(document.body, "user-select", ""), v(h, "transform", ""), e && (ze && (e.cancelable && e.preventDefault(), !n.dropBubble && e.stopPropagation()), w && w.parentNode && w.parentNode.removeChild(w), (k === x || H && H.lastPutMode !== "clone") && P && P.parentNode && P.parentNode.removeChild(P), h && (this.nativeDraggable && I(h, "dragend", this), bt(h), h.style["will-change"] = "", ze && !_e && Z(h, H ? H.options.ghostClass : this.options.ghostClass, !1), Z(h, this.options.chosenClass, !1), X({
1678
+ _e = !1, Ye = !1, Re = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), zt(this.cloneId), zt(this._dragStartId), this.nativeDraggable && (O(document, "drop", this), O(i, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), $e && v(document.body, "user-select", ""), v(f, "transform", ""), e && (ze && (e.cancelable && e.preventDefault(), !n.dropBubble && e.stopPropagation()), w && w.parentNode && w.parentNode.removeChild(w), (N === M || Y && Y.lastPutMode !== "clone") && $ && $.parentNode && $.parentNode.removeChild($), f && (this.nativeDraggable && O(f, "dragend", this), bt(f), f.style["will-change"] = "", ze && !_e && Z(f, Y ? Y.options.ghostClass : this.options.ghostClass, !1), Z(f, this.options.chosenClass, !1), j({
1661
1679
  sortable: this,
1662
1680
  name: "unchoose",
1663
- toEl: x,
1681
+ toEl: M,
1664
1682
  newIndex: null,
1665
1683
  newDraggableIndex: null,
1666
1684
  originalEvent: e
1667
- }), k !== x ? (Q >= 0 && (X({
1668
- rootEl: x,
1685
+ }), N !== M ? (Q >= 0 && (j({
1686
+ rootEl: M,
1669
1687
  name: "add",
1670
- toEl: x,
1671
- fromEl: k,
1688
+ toEl: M,
1689
+ fromEl: N,
1672
1690
  originalEvent: e
1673
- }), X({
1691
+ }), j({
1674
1692
  sortable: this,
1675
1693
  name: "remove",
1676
- toEl: x,
1694
+ toEl: M,
1677
1695
  originalEvent: e
1678
- }), X({
1679
- rootEl: x,
1696
+ }), j({
1697
+ rootEl: M,
1680
1698
  name: "sort",
1681
- toEl: x,
1682
- fromEl: k,
1699
+ toEl: M,
1700
+ fromEl: N,
1683
1701
  originalEvent: e
1684
- }), X({
1702
+ }), j({
1685
1703
  sortable: this,
1686
1704
  name: "sort",
1687
- toEl: x,
1705
+ toEl: M,
1688
1706
  originalEvent: e
1689
- })), H && H.save()) : Q !== Ee && Q >= 0 && (X({
1707
+ })), Y && Y.save()) : Q !== Ee && Q >= 0 && (j({
1690
1708
  sortable: this,
1691
1709
  name: "update",
1692
- toEl: x,
1710
+ toEl: M,
1693
1711
  originalEvent: e
1694
- }), X({
1712
+ }), j({
1695
1713
  sortable: this,
1696
1714
  name: "sort",
1697
- toEl: x,
1715
+ toEl: M,
1698
1716
  originalEvent: e
1699
- })), b.active && ((Q == null || Q === -1) && (Q = Ee, ce = $e), X({
1717
+ })), b.active && ((Q == null || Q === -1) && (Q = Ee, ce = xe), j({
1700
1718
  sortable: this,
1701
1719
  name: "end",
1702
- toEl: x,
1720
+ toEl: M,
1703
1721
  originalEvent: e
1704
1722
  }), this.save()))), this._nulling();
1705
1723
  },
1706
1724
  _nulling: function() {
1707
- K("nulling", this), k = h = x = w = ve = P = Ue = fe = me = te = ze = Q = ce = Ee = $e = we = Me = H = Le = b.dragged = b.ghost = b.clone = b.active = null, ot.forEach(function(e) {
1725
+ U("nulling", this), N = f = M = w = be = $ = qe = fe = ge = te = ze = Q = ce = Ee = xe = we = Ve = Y = Be = b.dragged = b.ghost = b.clone = b.active = null, ot.forEach(function(e) {
1708
1726
  e.checked = !0;
1709
1727
  }), ot.length = mt = gt = 0;
1710
1728
  },
@@ -1716,7 +1734,7 @@ b.prototype = /** @lends Sortable.prototype */
1716
1734
  break;
1717
1735
  case "dragenter":
1718
1736
  case "dragover":
1719
- h && (this._onDragOver(e), Nn(e));
1737
+ f && (this._onDragOver(e), Nn(e));
1720
1738
  break;
1721
1739
  case "selectstart":
1722
1740
  e.preventDefault();
@@ -1729,7 +1747,7 @@ b.prototype = /** @lends Sortable.prototype */
1729
1747
  */
1730
1748
  toArray: function() {
1731
1749
  for (var e = [], i, n = this.el.children, r = 0, o = n.length, l = this.options; r < o; r++)
1732
- i = n[r], ie(i, l.draggable, this.el, !1) && e.push(i.getAttribute(l.dataIdAttr) || Vn(i));
1750
+ i = n[r], ie(i, l.draggable, this.el, !1) && e.push(i.getAttribute(l.dataIdAttr) || Rn(i));
1733
1751
  return e;
1734
1752
  },
1735
1753
  /**
@@ -1771,23 +1789,23 @@ b.prototype = /** @lends Sortable.prototype */
1771
1789
  var n = this.options;
1772
1790
  if (i === void 0)
1773
1791
  return n[e];
1774
- var r = Fe.modifyOption(this, e, i);
1792
+ var r = He.modifyOption(this, e, i);
1775
1793
  typeof r < "u" ? n[e] = r : n[e] = i, e === "group" && pi(n);
1776
1794
  },
1777
1795
  /**
1778
1796
  * Destroy
1779
1797
  */
1780
1798
  destroy: function() {
1781
- K("destroy", this);
1799
+ U("destroy", this);
1782
1800
  var e = this.el;
1783
- e[U] = null, I(e, "mousedown", this._onTapStart), I(e, "touchstart", this._onTapStart), I(e, "pointerdown", this._onTapStart), this.nativeDraggable && (I(e, "dragover", this), I(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(i) {
1801
+ e[q] = null, O(e, "mousedown", this._onTapStart), O(e, "touchstart", this._onTapStart), O(e, "pointerdown", this._onTapStart), this.nativeDraggable && (O(e, "dragover", this), O(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(i) {
1784
1802
  i.removeAttribute("draggable");
1785
1803
  }), this._onDrop(), this._disableDelayedDragEvents(), rt.splice(rt.indexOf(this.el), 1), this.el = e = null;
1786
1804
  },
1787
1805
  _hideClone: function() {
1788
1806
  if (!fe) {
1789
- if (K("hideClone", this), b.eventCanceled) return;
1790
- v(P, "display", "none"), this.options.removeCloneOnHide && P.parentNode && P.parentNode.removeChild(P), fe = !0;
1807
+ if (U("hideClone", this), b.eventCanceled) return;
1808
+ v($, "display", "none"), this.options.removeCloneOnHide && $.parentNode && $.parentNode.removeChild($), fe = !0;
1791
1809
  }
1792
1810
  },
1793
1811
  _showClone: function(e) {
@@ -1796,52 +1814,52 @@ b.prototype = /** @lends Sortable.prototype */
1796
1814
  return;
1797
1815
  }
1798
1816
  if (fe) {
1799
- if (K("showClone", this), b.eventCanceled) return;
1800
- h.parentNode == k && !this.options.group.revertClone ? k.insertBefore(P, h) : ve ? k.insertBefore(P, ve) : k.appendChild(P), this.options.group.revertClone && this.animate(h, P), v(P, "display", ""), fe = !1;
1817
+ if (U("showClone", this), b.eventCanceled) return;
1818
+ f.parentNode == N && !this.options.group.revertClone ? N.insertBefore($, f) : be ? N.insertBefore($, be) : N.appendChild($), this.options.group.revertClone && this.animate(f, $), v($, "display", ""), fe = !1;
1801
1819
  }
1802
1820
  }
1803
1821
  };
1804
1822
  function Nn(t) {
1805
1823
  t.dataTransfer && (t.dataTransfer.dropEffect = "move"), t.cancelable && t.preventDefault();
1806
1824
  }
1807
- function Xe(t, e, i, n, r, o, l, s) {
1808
- var a, u = t[U], d = u.options.onMove, f;
1809
- return window.CustomEvent && !se && !Ve ? a = new CustomEvent("move", {
1825
+ function We(t, e, i, n, r, o, l, s) {
1826
+ var a, u = t[q], d = u.options.onMove, h;
1827
+ return window.CustomEvent && !se && !Fe ? a = new CustomEvent("move", {
1810
1828
  bubbles: !0,
1811
1829
  cancelable: !0
1812
- }) : (a = document.createEvent("Event"), a.initEvent("move", !0, !0)), a.to = e, a.from = t, a.dragged = i, a.draggedRect = n, a.related = r || e, a.relatedRect = o || V(e), a.willInsertAfter = s, a.originalEvent = l, t.dispatchEvent(a), d && (f = d.call(u, a, l)), f;
1830
+ }) : (a = document.createEvent("Event"), a.initEvent("move", !0, !0)), a.to = e, a.from = t, a.dragged = i, a.draggedRect = n, a.related = r || e, a.relatedRect = o || F(e), a.willInsertAfter = s, a.originalEvent = l, t.dispatchEvent(a), d && (h = d.call(u, a, l)), h;
1813
1831
  }
1814
1832
  function bt(t) {
1815
1833
  t.draggable = !1;
1816
1834
  }
1817
1835
  function Pn() {
1818
- Ct = !1;
1836
+ Ot = !1;
1819
1837
  }
1820
- function xn(t, e, i) {
1821
- var n = V(Ie(i.el, 0, i.options, !0)), r = ci(i.el, i.options, w), o = 10;
1838
+ function $n(t, e, i) {
1839
+ var n = F(Ie(i.el, 0, i.options, !0)), r = ci(i.el, i.options, w), o = 10;
1822
1840
  return e ? t.clientX < r.left - o || t.clientY < n.top && t.clientX < n.right : t.clientY < r.top - o || t.clientY < n.bottom && t.clientX < n.left;
1823
1841
  }
1824
- function $n(t, e, i) {
1825
- var n = V(Pt(i.el, i.options.draggable)), r = ci(i.el, i.options, w), o = 10;
1842
+ function Mn(t, e, i) {
1843
+ var n = F(Pt(i.el, i.options.draggable)), r = ci(i.el, i.options, w), o = 10;
1826
1844
  return e ? t.clientX > r.right + o || t.clientY > n.bottom && t.clientX > n.left : t.clientY > r.bottom + o || t.clientX > n.right && t.clientY > n.top;
1827
1845
  }
1828
- function Mn(t, e, i, n, r, o, l, s) {
1829
- var a = n ? t.clientY : t.clientX, u = n ? i.height : i.width, d = n ? i.top : i.left, f = n ? i.bottom : i.right, m = !1;
1846
+ function xn(t, e, i, n, r, o, l, s) {
1847
+ var a = n ? t.clientY : t.clientX, u = n ? i.height : i.width, d = n ? i.top : i.left, h = n ? i.bottom : i.right, p = !1;
1830
1848
  if (!l) {
1831
- if (s && qe < u * r) {
1832
- if (!Re && (Me === 1 ? a > d + u * o / 2 : a < f - u * o / 2) && (Re = !0), Re)
1833
- m = !0;
1834
- else if (Me === 1 ? a < d + qe : a > f - qe)
1835
- return -Me;
1836
- } else if (a > d + u * (1 - r) / 2 && a < f - u * (1 - r) / 2)
1837
- return Rn(e);
1849
+ if (s && Je < u * r) {
1850
+ if (!Re && (Ve === 1 ? a > d + u * o / 2 : a < h - u * o / 2) && (Re = !0), Re)
1851
+ p = !0;
1852
+ else if (Ve === 1 ? a < d + Je : a > h - Je)
1853
+ return -Ve;
1854
+ } else if (a > d + u * (1 - r) / 2 && a < h - u * (1 - r) / 2)
1855
+ return Vn(e);
1838
1856
  }
1839
- return m = m || l, m && (a < d + u * o / 2 || a > f - u * o / 2) ? a > d + u / 2 ? 1 : -1 : 0;
1840
- }
1841
- function Rn(t) {
1842
- return ee(h) < ee(t) ? 1 : -1;
1857
+ return p = p || l, p && (a < d + u * o / 2 || a > h - u * o / 2) ? a > d + u / 2 ? 1 : -1 : 0;
1843
1858
  }
1844
1859
  function Vn(t) {
1860
+ return ee(f) < ee(t) ? 1 : -1;
1861
+ }
1862
+ function Rn(t) {
1845
1863
  for (var e = t.tagName + t.className + t.src + t.href + t.textContent, i = e.length, n = 0; i--; )
1846
1864
  n += e.charCodeAt(i);
1847
1865
  return n.toString(36);
@@ -1853,18 +1871,18 @@ function Fn(t) {
1853
1871
  n.checked && ot.push(n);
1854
1872
  }
1855
1873
  }
1856
- function Je(t) {
1874
+ function Ze(t) {
1857
1875
  return setTimeout(t, 0);
1858
1876
  }
1859
1877
  function zt(t) {
1860
1878
  return clearTimeout(t);
1861
1879
  }
1862
- st && O(document, "touchmove", function(t) {
1880
+ st && z(document, "touchmove", function(t) {
1863
1881
  (b.active || _e) && t.cancelable && t.preventDefault();
1864
1882
  });
1865
1883
  b.utils = {
1866
- on: O,
1867
- off: I,
1884
+ on: z,
1885
+ off: O,
1868
1886
  css: v,
1869
1887
  find: ai,
1870
1888
  is: function(e, i) {
@@ -1876,14 +1894,14 @@ b.utils = {
1876
1894
  toggleClass: Z,
1877
1895
  clone: di,
1878
1896
  index: ee,
1879
- nextTick: Je,
1897
+ nextTick: Ze,
1880
1898
  cancelNextTick: zt,
1881
1899
  detectDirection: hi,
1882
1900
  getChild: Ie,
1883
- expando: U
1901
+ expando: q
1884
1902
  };
1885
1903
  b.get = function(t) {
1886
- return t[U];
1904
+ return t[q];
1887
1905
  };
1888
1906
  b.mount = function() {
1889
1907
  for (var t = arguments.length, e = new Array(t), i = 0; i < t; i++)
@@ -1891,7 +1909,7 @@ b.mount = function() {
1891
1909
  e[0].constructor === Array && (e = e[0]), e.forEach(function(n) {
1892
1910
  if (!n.prototype || !n.prototype.constructor)
1893
1911
  throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(n));
1894
- n.utils && (b.utils = re(re({}, b.utils), n.utils)), Fe.mount(n);
1912
+ n.utils && (b.utils = re(re({}, b.utils), n.utils)), He.mount(n);
1895
1913
  });
1896
1914
  };
1897
1915
  b.create = function(t, e) {
@@ -1914,14 +1932,14 @@ function Hn() {
1914
1932
  return t.prototype = {
1915
1933
  dragStarted: function(i) {
1916
1934
  var n = i.originalEvent;
1917
- this.sortable.nativeDraggable ? O(document, "dragover", this._handleAutoScroll) : this.options.supportPointer ? O(document, "pointermove", this._handleFallbackAutoScroll) : n.touches ? O(document, "touchmove", this._handleFallbackAutoScroll) : O(document, "mousemove", this._handleFallbackAutoScroll);
1935
+ this.sortable.nativeDraggable ? z(document, "dragover", this._handleAutoScroll) : this.options.supportPointer ? z(document, "pointermove", this._handleFallbackAutoScroll) : n.touches ? z(document, "touchmove", this._handleFallbackAutoScroll) : z(document, "mousemove", this._handleFallbackAutoScroll);
1918
1936
  },
1919
1937
  dragOverCompleted: function(i) {
1920
1938
  var n = i.originalEvent;
1921
1939
  !this.options.dragOverBubble && !n.rootEl && this._handleAutoScroll(n);
1922
1940
  },
1923
1941
  drop: function() {
1924
- this.sortable.nativeDraggable ? I(document, "dragover", this._handleAutoScroll) : (I(document, "pointermove", this._handleFallbackAutoScroll), I(document, "touchmove", this._handleFallbackAutoScroll), I(document, "mousemove", this._handleFallbackAutoScroll)), Ut(), Ze(), _n();
1942
+ this.sortable.nativeDraggable ? O(document, "dragover", this._handleAutoScroll) : (O(document, "pointermove", this._handleFallbackAutoScroll), O(document, "touchmove", this._handleFallbackAutoScroll), O(document, "mousemove", this._handleFallbackAutoScroll)), Ut(), Qe(), _n();
1925
1943
  },
1926
1944
  nulling: function() {
1927
1945
  lt = At = Ae = kt = ke = yt = wt = null, R.length = 0;
@@ -1931,19 +1949,19 @@ function Hn() {
1931
1949
  },
1932
1950
  _handleAutoScroll: function(i, n) {
1933
1951
  var r = this, o = (i.touches ? i.touches[0] : i).clientX, l = (i.touches ? i.touches[0] : i).clientY, s = document.elementFromPoint(o, l);
1934
- if (lt = i, n || this.options.forceAutoScrollFallback || Ve || se || Pe) {
1952
+ if (lt = i, n || this.options.forceAutoScrollFallback || Fe || se || $e) {
1935
1953
  St(i, this.options, s, n);
1936
- var a = he(s, !0);
1954
+ var a = pe(s, !0);
1937
1955
  kt && (!ke || o !== yt || l !== wt) && (ke && Ut(), ke = setInterval(function() {
1938
- var u = he(document.elementFromPoint(o, l), !0);
1939
- u !== a && (a = u, Ze()), St(i, r.options, u, n);
1956
+ var u = pe(document.elementFromPoint(o, l), !0);
1957
+ u !== a && (a = u, Qe()), St(i, r.options, u, n);
1940
1958
  }, 10), yt = o, wt = l);
1941
1959
  } else {
1942
- if (!this.options.bubbleScroll || he(s, !0) === ne()) {
1943
- Ze();
1960
+ if (!this.options.bubbleScroll || pe(s, !0) === ne()) {
1961
+ Qe();
1944
1962
  return;
1945
1963
  }
1946
- St(i, this.options, he(s, !1), !1);
1964
+ St(i, this.options, pe(s, !1), !1);
1947
1965
  }
1948
1966
  }
1949
1967
  }, ae(t, {
@@ -1951,7 +1969,7 @@ function Hn() {
1951
1969
  initializeByDefault: !0
1952
1970
  });
1953
1971
  }
1954
- function Ze() {
1972
+ function Qe() {
1955
1973
  R.forEach(function(t) {
1956
1974
  clearInterval(t.pid);
1957
1975
  }), R = [];
@@ -1962,23 +1980,23 @@ function Ut() {
1962
1980
  var St = si(function(t, e, i, n) {
1963
1981
  if (e.scroll) {
1964
1982
  var r = (t.touches ? t.touches[0] : t).clientX, o = (t.touches ? t.touches[0] : t).clientY, l = e.scrollSensitivity, s = e.scrollSpeed, a = ne(), u = !1, d;
1965
- At !== i && (At = i, Ze(), Ae = e.scroll, d = e.scrollFn, Ae === !0 && (Ae = he(i, !0)));
1966
- var f = 0, m = Ae;
1983
+ At !== i && (At = i, Qe(), Ae = e.scroll, d = e.scrollFn, Ae === !0 && (Ae = pe(i, !0)));
1984
+ var h = 0, p = Ae;
1967
1985
  do {
1968
- var _ = m, S = V(_), p = S.top, c = S.bottom, C = S.left, T = S.right, y = S.width, g = S.height, j = void 0, q = void 0, Y = _.scrollWidth, G = _.scrollHeight, F = v(_), E = _.scrollLeft, $ = _.scrollTop;
1969
- _ === a ? (j = y < Y && (F.overflowX === "auto" || F.overflowX === "scroll" || F.overflowX === "visible"), q = g < G && (F.overflowY === "auto" || F.overflowY === "scroll" || F.overflowY === "visible")) : (j = y < Y && (F.overflowX === "auto" || F.overflowX === "scroll"), q = g < G && (F.overflowY === "auto" || F.overflowY === "scroll"));
1970
- var N = j && (Math.abs(T - r) <= l && E + y < Y) - (Math.abs(C - r) <= l && !!E), z = q && (Math.abs(c - o) <= l && $ + g < G) - (Math.abs(p - o) <= l && !!$);
1971
- if (!R[f])
1972
- for (var J = 0; J <= f; J++)
1986
+ var _ = p, S = F(_), m = S.top, I = S.bottom, y = S.left, c = S.right, C = S.width, g = S.height, E = void 0, L = void 0, H = _.scrollWidth, G = _.scrollHeight, B = v(_), T = _.scrollLeft, x = _.scrollTop;
1987
+ _ === a ? (E = C < H && (B.overflowX === "auto" || B.overflowX === "scroll" || B.overflowX === "visible"), L = g < G && (B.overflowY === "auto" || B.overflowY === "scroll" || B.overflowY === "visible")) : (E = C < H && (B.overflowX === "auto" || B.overflowX === "scroll"), L = g < G && (B.overflowY === "auto" || B.overflowY === "scroll"));
1988
+ var P = E && (Math.abs(c - r) <= l && T + C < H) - (Math.abs(y - r) <= l && !!T), A = L && (Math.abs(I - o) <= l && x + g < G) - (Math.abs(m - o) <= l && !!x);
1989
+ if (!R[h])
1990
+ for (var J = 0; J <= h; J++)
1973
1991
  R[J] || (R[J] = {});
1974
- (R[f].vx != N || R[f].vy != z || R[f].el !== _) && (R[f].el = _, R[f].vx = N, R[f].vy = z, clearInterval(R[f].pid), (N != 0 || z != 0) && (u = !0, R[f].pid = setInterval((function() {
1992
+ (R[h].vx != P || R[h].vy != A || R[h].el !== _) && (R[h].el = _, R[h].vx = P, R[h].vy = A, clearInterval(R[h].pid), (P != 0 || A != 0) && (u = !0, R[h].pid = setInterval((function() {
1975
1993
  n && this.layer === 0 && b.active._onTouchMove(lt);
1976
- var ue = R[this.layer].vy ? R[this.layer].vy * s : 0, M = R[this.layer].vx ? R[this.layer].vx * s : 0;
1977
- typeof d == "function" && d.call(b.dragged.parentNode[U], M, ue, t, lt, R[this.layer].el) !== "continue" || ui(R[this.layer].el, M, ue);
1994
+ var ue = R[this.layer].vy ? R[this.layer].vy * s : 0, V = R[this.layer].vx ? R[this.layer].vx * s : 0;
1995
+ typeof d == "function" && d.call(b.dragged.parentNode[q], V, ue, t, lt, R[this.layer].el) !== "continue" || ui(R[this.layer].el, V, ue);
1978
1996
  }).bind({
1979
- layer: f
1980
- }), 24))), f++;
1981
- } while (e.bubbleScroll && m !== a && (m = he(m, !1)));
1997
+ layer: h
1998
+ }), 24))), h++;
1999
+ } while (e.bubbleScroll && p !== a && (p = pe(p, !1)));
1982
2000
  kt = u;
1983
2001
  }
1984
2002
  }, 30), vi = function(e) {
@@ -1986,16 +2004,16 @@ var St = si(function(t, e, i, n) {
1986
2004
  if (i) {
1987
2005
  var u = n || o;
1988
2006
  s();
1989
- var d = i.changedTouches && i.changedTouches.length ? i.changedTouches[0] : i, f = document.elementFromPoint(d.clientX, d.clientY);
1990
- a(), u && !u.el.contains(f) && (l("spill"), this.onSpill({
2007
+ var d = i.changedTouches && i.changedTouches.length ? i.changedTouches[0] : i, h = document.elementFromPoint(d.clientX, d.clientY);
2008
+ a(), u && !u.el.contains(h) && (l("spill"), this.onSpill({
1991
2009
  dragEl: r,
1992
2010
  putSortable: n
1993
2011
  }));
1994
2012
  }
1995
2013
  };
1996
- function xt() {
2014
+ function $t() {
1997
2015
  }
1998
- xt.prototype = {
2016
+ $t.prototype = {
1999
2017
  startIndex: null,
2000
2018
  dragStart: function(e) {
2001
2019
  var i = e.oldDraggableIndex;
@@ -2009,38 +2027,38 @@ xt.prototype = {
2009
2027
  },
2010
2028
  drop: vi
2011
2029
  };
2012
- ae(xt, {
2030
+ ae($t, {
2013
2031
  pluginName: "revertOnSpill"
2014
2032
  });
2015
- function $t() {
2033
+ function Mt() {
2016
2034
  }
2017
- $t.prototype = {
2035
+ Mt.prototype = {
2018
2036
  onSpill: function(e) {
2019
2037
  var i = e.dragEl, n = e.putSortable, r = n || this.sortable;
2020
2038
  r.captureAnimationState(), i.parentNode && i.parentNode.removeChild(i), r.animateAll();
2021
2039
  },
2022
2040
  drop: vi
2023
2041
  };
2024
- ae($t, {
2042
+ ae(Mt, {
2025
2043
  pluginName: "removeOnSpill"
2026
2044
  });
2027
2045
  b.mount(new Hn());
2028
- b.mount($t, xt);
2046
+ b.mount(Mt, $t);
2029
2047
  const Ln = (t, e, i, n) => {
2030
2048
  const r = Zt(t, "dragSort");
2031
2049
  let o = null, l = Ne(0);
2032
- Vt(
2050
+ Rt(
2033
2051
  r,
2034
2052
  (u) => {
2035
- Qe(() => {
2053
+ et(() => {
2036
2054
  u ? s() : a();
2037
2055
  });
2038
2056
  },
2039
2057
  {
2040
2058
  immediate: !0
2041
2059
  }
2042
- ), Vt(n, (u, d) => {
2043
- Qe(() => {
2060
+ ), Rt(n, (u, d) => {
2061
+ et(() => {
2044
2062
  r.value ? s() : a();
2045
2063
  });
2046
2064
  });
@@ -2053,10 +2071,10 @@ const Ln = (t, e, i, n) => {
2053
2071
  //过渡动画时间
2054
2072
  //拖拽结束时事件
2055
2073
  onEnd: (d) => {
2056
- const f = JSON.parse(JSON.stringify(n.value)), m = JSON.parse(JSON.stringify(n.value));
2057
- m.splice(d.oldIndex, 1)[0];
2058
- const _ = f[d.oldIndex];
2059
- m.splice(d.newIndex, 0, _), e("update:modelValue", m), l.value = Date.now(), e("sortEnd", f, m, d.oldIndex, d.newIndex);
2074
+ const h = JSON.parse(JSON.stringify(n.value)), p = JSON.parse(JSON.stringify(n.value));
2075
+ p.splice(d.oldIndex, 1)[0];
2076
+ const _ = h[d.oldIndex];
2077
+ p.splice(d.newIndex, 0, _), e("update:modelValue", p), l.value = Date.now(), e("sortEnd", h, p, d.oldIndex, d.newIndex);
2060
2078
  }
2061
2079
  });
2062
2080
  }, a = () => {
@@ -2067,43 +2085,57 @@ const Ln = (t, e, i, n) => {
2067
2085
  }, Bn = {
2068
2086
  key: 0,
2069
2087
  class: "selected-number-header"
2070
- }, Yn = { class: "selected-num" }, Xn = { class: "name" }, Wn = { class: "name" }, jn = ["infinite-scroll-disabled"], Gn = { class: "selected-group" }, Kn = { class: "name" }, Un = /* @__PURE__ */ $i({
2088
+ }, Yn = { class: "selected-num" }, Xn = ["onClick"], Wn = { class: "name" }, jn = ["onClick"], Kn = { class: "name" }, Gn = ["infinite-scroll-disabled"], Un = { class: "selected-group" }, qn = ["onClick"], Jn = { class: "name" }, Zn = /* @__PURE__ */ Mi({
2071
2089
  __name: "Index",
2072
2090
  props: {
2073
2091
  width: { default: "100%" },
2074
2092
  height: { default: "100%" },
2075
2093
  modelValue: {},
2076
- labelKey: { default: "name" },
2094
+ selectdValue: { default: "" },
2077
2095
  valueKey: { default: "id" },
2096
+ labelKey: { default: "name" },
2078
2097
  customStyle: {},
2079
2098
  dragSort: { type: Boolean },
2080
2099
  isView: { type: Boolean },
2100
+ closeable: { type: Boolean, default: !0 },
2101
+ clearable: { type: Boolean, default: !0 },
2081
2102
  customTitle: { default: "" },
2103
+ selectedNum: {},
2082
2104
  props: { default: { disabled: "disabled" } },
2083
2105
  virtual: { type: Boolean, default: !0 },
2084
2106
  itemHeight: { default: 32 },
2085
- selectedNum: {},
2086
2107
  infiniteScroll: {},
2087
2108
  infiniteDisabled: { type: Boolean, default: !0 },
2088
2109
  hideHeader: { type: Boolean, default: !1 }
2089
2110
  },
2090
- emits: ["update:modelValue", "item-remove", "remove-all", "sortEnd", "update:infiniteDisabled"],
2111
+ emits: ["update:modelValue", "update:selectdValue", "select-item", "item-remove", "remove-all", "sortEnd", "update:infiniteDisabled"],
2091
2112
  setup(t, { expose: e, emit: i }) {
2092
- Mi((c) => ({
2093
- "29d5747a": o.value
2113
+ xi((c) => ({
2114
+ "84e4fb44": o.value
2094
2115
  }));
2095
- const n = t, r = i, o = tt(() => n.itemHeight + "px"), l = tt(() => n.dragSort || n.infiniteScroll ? !1 : n.virtual), { selectListRef: s, $list: a, disabledFlag: u, itemGroups: d, selectedLabel: f, itemRemove: m, removeAll: _, infiniteLoad: S } = mn(n, r);
2116
+ const n = t, r = i, o = Pe(() => n.itemHeight + "px"), l = Pe(() => n.dragSort || n.infiniteScroll ? !1 : n.virtual), {
2117
+ selectListRef: s,
2118
+ $list: a,
2119
+ disabledFlag: u,
2120
+ itemGroups: d,
2121
+ selectedLabel: h,
2122
+ itemRemove: p,
2123
+ removeAll: _,
2124
+ innerSelectdValue: S,
2125
+ selectItem: m,
2126
+ infiniteLoad: I
2127
+ } = mn(n, r);
2096
2128
  Ln(n, r, a, d);
2097
- const p = Ne(!0);
2129
+ const y = Ne(!0);
2098
2130
  return Jt(() => {
2099
- p.value = !1, setTimeout(() => {
2100
- p.value = !0;
2131
+ y.value = !1, setTimeout(() => {
2132
+ y.value = !0;
2101
2133
  }, 300);
2102
2134
  }), e({
2103
- infiniteLoad: S
2135
+ infiniteLoad: I
2104
2136
  }), (c, C) => {
2105
- const T = Ei;
2106
- return A(), L(
2137
+ const g = Ei;
2138
+ return k(), X(
2107
2139
  "div",
2108
2140
  {
2109
2141
  ref_key: "selectListRef",
@@ -2112,82 +2144,84 @@ const Ln = (t, e, i, n) => {
2112
2144
  style: qt({ width: c.width, height: c.height, ...c.customStyle })
2113
2145
  },
2114
2146
  [
2115
- c.hideHeader ? W("v-if", !0) : (A(), L("div", Bn, [
2116
- Oe(
2117
- "div",
2118
- Yn,
2119
- Ce(D(f)),
2120
- 1
2121
- /* TEXT */
2122
- ),
2123
- c.isView ? W("v-if", !0) : (A(), oe(D(Ri), {
2124
- key: 0,
2125
- "btn-type": "primary-text",
2126
- block: "",
2127
- onClick: D(_),
2128
- disabled: !D(d) || !D(d).length
2129
- }, {
2130
- default: et(() => [
2131
- He(
2132
- Ce(D(We)("das-select-list-removeAll").value),
2133
- 1
2134
- /* TEXT */
2135
- )
2136
- ]),
2137
- _: 1
2138
- /* STABLE */
2139
- }, 8, ["onClick", "disabled"]))
2140
- ])),
2141
- W(" 普通 "),
2142
- !c.infiniteScroll && !l.value ? Se((A(), L(
2147
+ he(c.$slots, "header", {}, () => [
2148
+ c.hideHeader ? K("v-if", !0) : (k(), X("div", Bn, [
2149
+ Ce(
2150
+ "div",
2151
+ Yn,
2152
+ Oe(D(h)),
2153
+ 1
2154
+ /* TEXT */
2155
+ ),
2156
+ !c.isView && c.clearable ? (k(), oe(D(Vi), {
2157
+ key: 0,
2158
+ "btn-type": "primary-text",
2159
+ block: "",
2160
+ onClick: D(_),
2161
+ disabled: !D(d) || !D(d).length
2162
+ }, {
2163
+ default: tt(() => [
2164
+ Le(
2165
+ Oe(D(je)("das-select-list-removeAll").value),
2166
+ 1
2167
+ /* TEXT */
2168
+ )
2169
+ ]),
2170
+ _: 1
2171
+ /* STABLE */
2172
+ }, 8, ["onClick", "disabled"])) : K("v-if", !0)
2173
+ ]))
2174
+ ], !0),
2175
+ K(" 普通 "),
2176
+ !c.infiniteScroll && !l.value ? Se((k(), X(
2143
2177
  "div",
2144
2178
  {
2145
- key: 1,
2179
+ key: 0,
2146
2180
  ref_key: "$list",
2147
2181
  ref: a,
2148
2182
  class: de(["selected-container", { "hide-header": c.hideHeader }])
2149
2183
  },
2150
2184
  [
2151
- (A(!0), L(
2185
+ (k(!0), X(
2152
2186
  _t,
2153
2187
  null,
2154
- Et(D(d), (y, g) => (A(), L(
2155
- "div",
2156
- {
2157
- class: de(["selected-item", { disabled: !c.isView && D(u)(y), enable: !c.isView && !D(u)(y) }]),
2158
- key: y[c.valueKey] + g
2159
- },
2160
- [
2161
- c.dragSort ? (A(), oe(D(Fi), {
2162
- key: 0,
2163
- class: "drag-icon",
2164
- size: "medium",
2165
- style: { "margin-right": "8px" }
2166
- })) : W("v-if", !0),
2167
- Oe("div", Xn, [
2168
- be(c.$slots, "default", { item: y }, () => [
2169
- Se((A(), L("div", null, [
2170
- He(
2171
- Ce(y[c.labelKey]),
2172
- 1
2173
- /* TEXT */
2174
- )
2175
- ])), [
2176
- [D(dt)]
2177
- ])
2178
- ], !0)
2179
- ]),
2180
- c.isView ? W("v-if", !0) : (A(), oe(D(ct), {
2181
- key: 1,
2182
- size: "small",
2183
- class: "close-icon",
2184
- "icon-color": D(ut)("--das-ui-color-secondary"),
2185
- onClick: (j) => D(m)(y)
2186
- }, null, 8, ["icon-color", "onClick"]))
2187
- ],
2188
- 2
2189
- /* CLASS */
2190
- ))),
2188
+ Et(D(d), (E, L) => (k(), X("div", {
2189
+ class: de({
2190
+ "selected-item": !0,
2191
+ disabled: !c.isView && D(u)(E),
2192
+ enable: !c.isView && !D(u)(E),
2193
+ active: D(S) === E[c.valueKey]
2194
+ }),
2195
+ key: E[c.valueKey] + L,
2196
+ onClick: (H) => D(m)(E)
2197
+ }, [
2198
+ c.dragSort ? (k(), oe(D(Fi), {
2199
+ key: 0,
2200
+ class: "drag-icon",
2201
+ size: "medium",
2202
+ style: { "margin-right": "8px" }
2203
+ })) : K("v-if", !0),
2204
+ Ce("div", Wn, [
2205
+ he(c.$slots, "default", { item: E }, () => [
2206
+ Se((k(), X("div", null, [
2207
+ Le(
2208
+ Oe(E[c.labelKey]),
2209
+ 1
2210
+ /* TEXT */
2211
+ )
2212
+ ])), [
2213
+ [D(dt)]
2214
+ ])
2215
+ ], !0)
2216
+ ]),
2217
+ !c.isView && c.closeable ? (k(), oe(D(ct), {
2218
+ key: 1,
2219
+ size: "small",
2220
+ class: "close-icon",
2221
+ "icon-color": D(ut)("--das-ui-color-secondary"),
2222
+ onClick: (H) => D(p)(E)
2223
+ }, null, 8, ["icon-color", "onClick"])) : K("v-if", !0)
2224
+ ], 10, Xn))),
2191
2225
  128
2192
2226
  /* KEYED_FRAGMENT */
2193
2227
  ))
@@ -2195,139 +2229,139 @@ const Ln = (t, e, i, n) => {
2195
2229
  2
2196
2230
  /* CLASS */
2197
2231
  )), [
2198
- [D(Vi), { usePrevOverlay: !0 }]
2199
- ]) : W("v-if", !0),
2200
- W(" 虚拟滚动 "),
2201
- !c.dragSort && l.value ? (A(), L(
2232
+ [D(Ri), { usePrevOverlay: !0 }]
2233
+ ]) : K("v-if", !0),
2234
+ K(" 虚拟滚动 "),
2235
+ !c.dragSort && l.value ? (k(), X(
2202
2236
  "div",
2203
2237
  {
2204
- key: 2,
2238
+ key: 1,
2205
2239
  ref_key: "$list",
2206
2240
  ref: a,
2207
2241
  class: de(["selected-container", { "hide-header": c.hideHeader }])
2208
2242
  },
2209
2243
  [
2210
- p.value && D(d).length > 0 ? (A(), oe(D(Nt), {
2244
+ y.value && D(d).length > 0 ? (k(), oe(D(Nt), {
2211
2245
  key: D(d).length,
2212
2246
  items: D(d),
2213
2247
  "item-size": c.itemHeight,
2214
2248
  "key-field": c.valueKey,
2215
2249
  class: "virtual-list"
2216
2250
  }, {
2217
- default: et(({ item: y, index: g }) => [
2218
- (A(), L(
2219
- "div",
2220
- {
2221
- class: de(["selected-item", { disabled: !c.isView && D(u)(y), enable: !c.isView && !D(u)(y) }]),
2222
- key: y[c.valueKey]
2223
- },
2224
- [
2225
- Oe("div", Wn, [
2226
- be(c.$slots, "default", { item: y }, () => [
2227
- Se((A(), L("div", null, [
2228
- He(
2229
- Ce(y[c.labelKey]),
2230
- 1
2231
- /* TEXT */
2232
- )
2233
- ])), [
2234
- [D(dt)]
2235
- ])
2236
- ], !0)
2237
- ]),
2238
- c.isView ? W("v-if", !0) : (A(), oe(D(ct), {
2239
- key: 0,
2240
- size: "small",
2241
- class: "close-icon",
2242
- "icon-color": D(ut)("--das-ui-color-secondary"),
2243
- onClick: (j) => D(m)(y)
2244
- }, null, 8, ["icon-color", "onClick"]))
2245
- ],
2246
- 2
2247
- /* CLASS */
2248
- ))
2251
+ default: tt(({ item: E, index: L }) => [
2252
+ (k(), X("div", {
2253
+ class: de({
2254
+ "selected-item": !0,
2255
+ disabled: !c.isView && D(u)(E),
2256
+ enable: !c.isView && !D(u)(E),
2257
+ active: D(S) === E[c.valueKey]
2258
+ }),
2259
+ key: E[c.valueKey],
2260
+ onClick: (H) => D(m)(E)
2261
+ }, [
2262
+ Ce("div", Kn, [
2263
+ he(c.$slots, "default", { item: E }, () => [
2264
+ Se((k(), X("div", null, [
2265
+ Le(
2266
+ Oe(E[c.labelKey]),
2267
+ 1
2268
+ /* TEXT */
2269
+ )
2270
+ ])), [
2271
+ [D(dt)]
2272
+ ])
2273
+ ], !0)
2274
+ ]),
2275
+ !c.isView && c.closeable ? (k(), oe(D(ct), {
2276
+ key: 0,
2277
+ size: "small",
2278
+ class: "close-icon",
2279
+ "icon-color": D(ut)("--das-ui-color-secondary"),
2280
+ onClick: (H) => D(p)(E)
2281
+ }, null, 8, ["icon-color", "onClick"])) : K("v-if", !0)
2282
+ ], 10, jn))
2249
2283
  ]),
2250
2284
  _: 3
2251
2285
  /* FORWARDED */
2252
- }, 8, ["items", "item-size", "key-field"])) : W("v-if", !0)
2286
+ }, 8, ["items", "item-size", "key-field"])) : K("v-if", !0)
2253
2287
  ],
2254
2288
  2
2255
2289
  /* CLASS */
2256
- )) : W("v-if", !0),
2257
- W(" 分页加载 "),
2258
- !c.dragSort && c.infiniteScroll ? Se((A(), L("div", {
2259
- key: 3,
2290
+ )) : K("v-if", !0),
2291
+ K(" 分页加载 "),
2292
+ !c.dragSort && c.infiniteScroll ? Se((k(), X("div", {
2293
+ key: 2,
2260
2294
  ref_key: "$list",
2261
2295
  ref: a,
2262
2296
  class: de(["selected-container selected-page-container", { "hide-header": c.hideHeader }]),
2263
2297
  "infinite-scroll-disabled": c.infiniteDisabled,
2264
2298
  style: { overflow: "overlay" }
2265
2299
  }, [
2266
- Oe("div", Gn, [
2267
- (A(!0), L(
2300
+ Ce("div", Un, [
2301
+ (k(!0), X(
2268
2302
  _t,
2269
2303
  null,
2270
- Et(D(d), (y) => (A(), L(
2271
- "div",
2272
- {
2273
- class: de(["selected-item", { disabled: !c.isView && D(u)(y), enable: !c.isView && !D(u)(y) }]),
2274
- key: y[c.valueKey]
2275
- },
2276
- [
2277
- Oe("div", Kn, [
2278
- be(c.$slots, "default", { item: y }, () => [
2279
- Se((A(), L("div", null, [
2280
- He(
2281
- Ce(y[c.labelKey]),
2282
- 1
2283
- /* TEXT */
2284
- )
2285
- ])), [
2286
- [D(dt)]
2287
- ])
2288
- ], !0)
2289
- ]),
2290
- c.isView ? W("v-if", !0) : (A(), oe(D(ct), {
2291
- key: 0,
2292
- size: "small",
2293
- class: "close-icon",
2294
- "icon-color": D(ut)("--das-ui-color-secondary"),
2295
- onClick: (g) => D(m)(y)
2296
- }, null, 8, ["icon-color", "onClick"]))
2297
- ],
2298
- 2
2299
- /* CLASS */
2300
- ))),
2304
+ Et(D(d), (E) => (k(), X("div", {
2305
+ class: de({
2306
+ "selected-item": !0,
2307
+ disabled: !c.isView && D(u)(E),
2308
+ enable: !c.isView && !D(u)(E),
2309
+ active: D(S) === E[c.valueKey]
2310
+ }),
2311
+ key: E[c.valueKey],
2312
+ onClick: (L) => D(m)(E)
2313
+ }, [
2314
+ Ce("div", Jn, [
2315
+ he(c.$slots, "default", { item: E }, () => [
2316
+ Se((k(), X("div", null, [
2317
+ Le(
2318
+ Oe(E[c.labelKey]),
2319
+ 1
2320
+ /* TEXT */
2321
+ )
2322
+ ])), [
2323
+ [D(dt)]
2324
+ ])
2325
+ ], !0)
2326
+ ]),
2327
+ !c.isView && c.closeable ? (k(), oe(D(ct), {
2328
+ key: 0,
2329
+ size: "small",
2330
+ class: "close-icon",
2331
+ "icon-color": D(ut)("--das-ui-color-secondary"),
2332
+ onClick: (L) => D(p)(E)
2333
+ }, null, 8, ["icon-color", "onClick"])) : K("v-if", !0)
2334
+ ], 10, qn))),
2301
2335
  128
2302
2336
  /* KEYED_FRAGMENT */
2303
2337
  ))
2304
2338
  ])
2305
- ], 10, jn)), [
2306
- [T, D(S)]
2307
- ]) : W("v-if", !0)
2339
+ ], 10, Gn)), [
2340
+ [g, D(I)]
2341
+ ]) : K("v-if", !0)
2308
2342
  ],
2309
2343
  4
2310
2344
  /* STYLE */
2311
2345
  );
2312
2346
  };
2313
2347
  }
2314
- }), qn = (t, e) => {
2348
+ }), Qn = (t, e) => {
2315
2349
  const i = t.__vccOpts || t;
2316
2350
  for (const [n, r] of e)
2317
2351
  i[n] = r;
2318
2352
  return i;
2319
- }, Jn = /* @__PURE__ */ qn(Un, [["__scopeId", "data-v-4f2b9d39"]]), Zn = {
2353
+ }, er = /* @__PURE__ */ Qn(Zn, [["__scopeId", "data-v-395a3033"]]), tr = {
2320
2354
  "das-select-list-removeAll": { "zh-CN": "清空", en: "Clear", _appCode: "framework" },
2321
2355
  "das-select-list-selected": { "zh-CN": "已选", en: "Selected", _appCode: "framework" },
2322
2356
  "das-select-list-parentheses-left": { "zh-CN": "(", en: "(", _appCode: "framework" },
2323
2357
  "das-select-list-parentheses-right": { "zh-CN": ")", en: ")", _appCode: "framework" }
2324
- }, Qn = {
2358
+ }, ir = {
2325
2359
  "--das-ui-select-list-hover-bg": { light: "#F2F2F2" },
2326
2360
  "--das-ui-select-list-close-btn-hover": { light: "#5582F3" }
2327
- }, vr = wi(Jn);
2328
- Si(Zn);
2329
- _i(Qn);
2361
+ }, wr = wi(er);
2362
+ Si(tr);
2363
+ _i(ir);
2330
2364
  export {
2331
- vr as DasSelectList,
2332
- vr as default
2365
+ wr as DasSelectList,
2366
+ wr as default
2333
2367
  };