@vitorfba/vue-treeselect 1.0.5 → 1.0.6

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.
@@ -1,6 +1,6 @@
1
- import { createVNode as r, mergeProps as Pe, createElementBlock as U, openBlock as V, createElementVNode as $, normalizeClass as se, renderSlot as je, resolveComponent as P, createTextVNode as K, defineComponent as Ue, createBlock as Qe, Teleport as Ke } from "vue";
1
+ import { createVNode as r, mergeProps as Pe, createElementBlock as U, openBlock as V, createElementVNode as B, normalizeClass as ie, renderSlot as je, resolveComponent as P, createTextVNode as K, defineComponent as Ue, createBlock as Qe, Teleport as Ke } from "vue";
2
2
  var F = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
3
- function C(e) {
3
+ function L(e) {
4
4
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
5
5
  }
6
6
  function qe(e, t) {
@@ -18,11 +18,11 @@ function qe(e, t) {
18
18
  return !0;
19
19
  }
20
20
  var Ye = qe;
21
- const Xe = /* @__PURE__ */ C(Ye);
21
+ const Xe = /* @__PURE__ */ L(Ye);
22
22
  function Ge() {
23
23
  }
24
24
  var Je = Ge;
25
- const Ze = /* @__PURE__ */ C(Je), y = process.env.NODE_ENV === "production" ? (
25
+ const Ze = /* @__PURE__ */ L(Je), y = process.env.NODE_ENV === "production" ? (
26
26
  /* istanbul ignore next */
27
27
  Ze
28
28
  ) : function(t, n) {
@@ -47,7 +47,7 @@ function tt(e) {
47
47
  var t = typeof e;
48
48
  return e != null && (t == "object" || t == "function");
49
49
  }
50
- var Ce = tt, nt = typeof F == "object" && F && F.Object === Object && F, st = nt, it = st, rt = typeof self == "object" && self && self.Object === Object && self, ot = it || rt || Function("return this")(), Le = ot, at = Le, lt = function() {
50
+ var Le = tt, nt = typeof F == "object" && F && F.Object === Object && F, st = nt, it = st, rt = typeof self == "object" && self && self.Object === Object && self, ot = it || rt || Function("return this")(), Ce = ot, at = Ce, lt = function() {
51
51
  return at.Date.now();
52
52
  }, ct = lt, ut = /\s/;
53
53
  function ht(e) {
@@ -59,7 +59,7 @@ var dt = ht, ft = dt, pt = /^\s+/;
59
59
  function gt(e) {
60
60
  return e && e.slice(0, ft(e) + 1).replace(pt, "");
61
61
  }
62
- var mt = gt, vt = Le, St = vt.Symbol, Me = St, ce = Me, Te = Object.prototype, bt = Te.hasOwnProperty, Ot = Te.toString, x = ce ? ce.toStringTag : void 0;
62
+ var mt = gt, vt = Ce, St = vt.Symbol, Me = St, ue = Me, Te = Object.prototype, bt = Te.hasOwnProperty, Ot = Te.toString, x = ue ? ue.toStringTag : void 0;
63
63
  function yt(e) {
64
64
  var t = bt.call(e, x), n = e[x];
65
65
  try {
@@ -74,60 +74,60 @@ var _t = yt, Nt = Object.prototype, Et = Nt.toString;
74
74
  function wt(e) {
75
75
  return Et.call(e);
76
76
  }
77
- var Ct = wt, ue = Me, Lt = _t, Mt = Ct, Tt = "[object Null]", It = "[object Undefined]", he = ue ? ue.toStringTag : void 0;
77
+ var Lt = wt, he = Me, Ct = _t, Mt = Lt, Tt = "[object Null]", It = "[object Undefined]", de = he ? he.toStringTag : void 0;
78
78
  function Dt(e) {
79
- return e == null ? e === void 0 ? It : Tt : he && he in Object(e) ? Lt(e) : Mt(e);
79
+ return e == null ? e === void 0 ? It : Tt : de && de in Object(e) ? Ct(e) : Mt(e);
80
80
  }
81
81
  var xt = Dt;
82
82
  function Rt(e) {
83
83
  return e != null && typeof e == "object";
84
84
  }
85
- var At = Rt, Bt = xt, $t = At, Vt = "[object Symbol]";
85
+ var At = Rt, $t = xt, Bt = At, Vt = "[object Symbol]";
86
86
  function kt(e) {
87
- return typeof e == "symbol" || $t(e) && Bt(e) == Vt;
87
+ return typeof e == "symbol" || Bt(e) && $t(e) == Vt;
88
88
  }
89
- var zt = kt, Ft = mt, de = Ce, Wt = zt, fe = NaN, Ht = /^[-+]0x[0-9a-f]+$/i, Pt = /^0b[01]+$/i, jt = /^0o[0-7]+$/i, Ut = parseInt;
89
+ var zt = kt, Ft = mt, fe = Le, Ht = zt, pe = NaN, Wt = /^[-+]0x[0-9a-f]+$/i, Pt = /^0b[01]+$/i, jt = /^0o[0-7]+$/i, Ut = parseInt;
90
90
  function Qt(e) {
91
91
  if (typeof e == "number")
92
92
  return e;
93
- if (Wt(e))
94
- return fe;
95
- if (de(e)) {
93
+ if (Ht(e))
94
+ return pe;
95
+ if (fe(e)) {
96
96
  var t = typeof e.valueOf == "function" ? e.valueOf() : e;
97
- e = de(t) ? t + "" : t;
97
+ e = fe(t) ? t + "" : t;
98
98
  }
99
99
  if (typeof e != "string")
100
100
  return e === 0 ? e : +e;
101
101
  e = Ft(e);
102
102
  var n = Pt.test(e);
103
- return n || jt.test(e) ? Ut(e.slice(2), n ? 2 : 8) : Ht.test(e) ? fe : +e;
103
+ return n || jt.test(e) ? Ut(e.slice(2), n ? 2 : 8) : Wt.test(e) ? pe : +e;
104
104
  }
105
- var Ie = Qt, Kt = Ce, q = ct, pe = Ie, qt = "Expected a function", Yt = Math.max, Xt = Math.min;
105
+ var Ie = Qt, Kt = Le, q = ct, ge = Ie, qt = "Expected a function", Yt = Math.max, Xt = Math.min;
106
106
  function Gt(e, t, n) {
107
107
  var s, i, o, a, c, d, f = 0, m = !1, p = !1, v = !0;
108
108
  if (typeof e != "function")
109
109
  throw new TypeError(qt);
110
- t = pe(t) || 0, Kt(n) && (m = !!n.leading, p = "maxWait" in n, o = p ? Yt(pe(n.maxWait) || 0, t) : o, v = "trailing" in n ? !!n.trailing : v);
110
+ t = ge(t) || 0, Kt(n) && (m = !!n.leading, p = "maxWait" in n, o = p ? Yt(ge(n.maxWait) || 0, t) : o, v = "trailing" in n ? !!n.trailing : v);
111
111
  function N(u) {
112
112
  var O = s, D = i;
113
113
  return s = i = void 0, f = u, a = e.apply(D, O), a;
114
114
  }
115
115
  function I(u) {
116
- return f = u, c = setTimeout(L, t), m ? N(u) : a;
116
+ return f = u, c = setTimeout(C, t), m ? N(u) : a;
117
117
  }
118
118
  function k(u) {
119
- var O = u - d, D = u - f, le = t - O;
120
- return p ? Xt(le, o - D) : le;
119
+ var O = u - d, D = u - f, ce = t - O;
120
+ return p ? Xt(ce, o - D) : ce;
121
121
  }
122
122
  function z(u) {
123
123
  var O = u - d, D = u - f;
124
124
  return d === void 0 || O >= t || O < 0 || p && D >= o;
125
125
  }
126
- function L() {
126
+ function C() {
127
127
  var u = q();
128
128
  if (z(u))
129
129
  return M(u);
130
- c = setTimeout(L, k(u));
130
+ c = setTimeout(C, k(u));
131
131
  }
132
132
  function M(u) {
133
133
  return c = void 0, v && s ? N(u) : (s = i = void 0, a);
@@ -144,14 +144,14 @@ function Gt(e, t, n) {
144
144
  if (c === void 0)
145
145
  return I(d);
146
146
  if (p)
147
- return clearTimeout(c), c = setTimeout(L, t), N(d);
147
+ return clearTimeout(c), c = setTimeout(C, t), N(d);
148
148
  }
149
- return c === void 0 && (c = setTimeout(L, t)), a;
149
+ return c === void 0 && (c = setTimeout(C, t)), a;
150
150
  }
151
151
  return h.cancel = Q, h.flush = l, h;
152
152
  }
153
153
  var Jt = Gt;
154
- const Zt = /* @__PURE__ */ C(Jt);
154
+ const Zt = /* @__PURE__ */ L(Jt);
155
155
  var en = function(e, t) {
156
156
  var n = document.createElement("_"), s = n.appendChild(document.createElement("_")), i = n.appendChild(document.createElement("_")), o = s.appendChild(document.createElement("_")), a = void 0, c = void 0;
157
157
  return s.style.cssText = n.style.cssText = "height:100%;left:0;opacity:0;overflow:hidden;pointer-events:none;position:absolute;top:0;transition:0s;width:100%;z-index:-1", o.style.cssText = i.style.cssText = "display:block;height:100%;transition:0s;width:100%", o.style.width = o.style.height = "200%", e.appendChild(n), d(), m;
@@ -171,15 +171,15 @@ function De(e, t) {
171
171
  const n = e.indexOf(t);
172
172
  n !== -1 && e.splice(n, 1);
173
173
  }
174
- let ie;
174
+ let re;
175
175
  const j = [], tn = 100;
176
176
  function nn() {
177
- ie = setInterval(() => {
177
+ re = setInterval(() => {
178
178
  j.forEach(xe);
179
179
  }, tn);
180
180
  }
181
181
  function sn() {
182
- clearInterval(ie), ie = null;
182
+ clearInterval(re), re = null;
183
183
  }
184
184
  function xe(e) {
185
185
  const { $el: t, listener: n, lastWidth: s, lastHeight: i } = e, o = t.offsetWidth, a = t.offsetHeight;
@@ -196,7 +196,7 @@ function rn(e, t) {
196
196
  };
197
197
  return j.push(n), xe(n), nn(), s;
198
198
  }
199
- function ge(e, t) {
199
+ function me(e, t) {
200
200
  const n = document.documentMode === 9;
201
201
  let s = !0;
202
202
  const a = (n ? rn : en)(e, (...c) => s || t(...c));
@@ -213,7 +213,7 @@ function an(e) {
213
213
  const { overflow: t, overflowX: n, overflowY: s } = getComputedStyle(e);
214
214
  return /(auto|scroll|overlay)/.test(t + s + n);
215
215
  }
216
- function me(e, t) {
216
+ function ve(e, t) {
217
217
  const n = on(e);
218
218
  return window.addEventListener("resize", t, { passive: !0 }), n.forEach((s) => {
219
219
  s.addEventListener("scroll", t, { passive: !0 });
@@ -229,11 +229,11 @@ function Re(e) {
229
229
  function Ae(e) {
230
230
  return !!e && (typeof e == "object" || typeof e == "function") && typeof e.then == "function";
231
231
  }
232
- var ln = Ie, ve = 1 / 0, cn = 17976931348623157e292;
232
+ var ln = Ie, Se = 1 / 0, cn = 17976931348623157e292;
233
233
  function un(e) {
234
234
  if (!e)
235
235
  return e === 0 ? e : 0;
236
- if (e = ln(e), e === ve || e === -ve) {
236
+ if (e = ln(e), e === Se || e === -Se) {
237
237
  var t = e < 0 ? -1 : 1;
238
238
  return t * cn;
239
239
  }
@@ -258,27 +258,27 @@ function On(e) {
258
258
  return bn(2, e);
259
259
  }
260
260
  var yn = On;
261
- const _n = /* @__PURE__ */ C(yn);
261
+ const _n = /* @__PURE__ */ L(yn);
262
262
  function Nn(e) {
263
263
  return e;
264
264
  }
265
265
  var En = Nn;
266
- const wn = /* @__PURE__ */ C(En);
267
- function Cn(e) {
266
+ const wn = /* @__PURE__ */ L(En);
267
+ function Ln(e) {
268
268
  return function() {
269
269
  return e;
270
270
  };
271
271
  }
272
- var Ln = Cn;
273
- const Se = /* @__PURE__ */ C(Ln), S = () => /* @__PURE__ */ Object.create(null);
274
- function Be(e) {
272
+ var Cn = Ln;
273
+ const be = /* @__PURE__ */ L(Cn), S = () => /* @__PURE__ */ Object.create(null);
274
+ function $e(e) {
275
275
  return e == null || typeof e != "object" ? !1 : Object.getPrototypeOf(e) === Object.prototype;
276
276
  }
277
277
  function Mn(e, t, n) {
278
- Be(n) ? (e[t] || (e[t] = {}), re(e[t], n)) : e[t] = n;
278
+ $e(n) ? (e[t] || (e[t] = {}), oe(e[t], n)) : e[t] = n;
279
279
  }
280
- function re(e, t) {
281
- if (Be(t)) {
280
+ function oe(e, t) {
281
+ if ($e(t)) {
282
282
  const n = Object.keys(t);
283
283
  for (let s = 0, i = n.length; s < i; s++)
284
284
  Mn(e, n[s], t[n[s]]);
@@ -290,7 +290,7 @@ function Tn(e) {
290
290
  return t ? e[t - 1] : void 0;
291
291
  }
292
292
  var In = Tn;
293
- const be = /* @__PURE__ */ C(In);
293
+ const Oe = /* @__PURE__ */ L(In);
294
294
  function _(e, t) {
295
295
  return e.indexOf(t) !== -1;
296
296
  }
@@ -304,7 +304,7 @@ function Y(e, t) {
304
304
  if (e[n] !== t[n]) return !0;
305
305
  return !1;
306
306
  }
307
- const E = null, oe = 0, $e = 1, Ve = 2, T = "ALL_CHILDREN", R = "ALL_DESCENDANTS", A = "LEAF_CHILDREN", B = "LEAF_DESCENDANTS", xn = "LOAD_ROOT_OPTIONS", Rn = "LOAD_CHILDREN_OPTIONS", An = "ASYNC_SEARCH", X = "ALL", W = "BRANCH_PRIORITY", G = "LEAF_PRIORITY", J = "ALL_WITH_INDETERMINATE", Oe = "ORDER_SELECTED", ye = "LEVEL", _e = "INDEX", g = {
307
+ const E = null, ae = 0, Be = 1, Ve = 2, T = "ALL_CHILDREN", R = "ALL_DESCENDANTS", A = "LEAF_CHILDREN", $ = "LEAF_DESCENDANTS", xn = "LOAD_ROOT_OPTIONS", Rn = "LOAD_CHILDREN_OPTIONS", An = "ASYNC_SEARCH", X = "ALL", H = "BRANCH_PRIORITY", G = "LEAF_PRIORITY", J = "ALL_WITH_INDETERMINATE", ye = "ORDER_SELECTED", _e = "LEVEL", Ne = "INDEX", g = {
308
308
  BACKSPACE: 8,
309
309
  ENTER: 13,
310
310
  ESCAPE: 27,
@@ -315,13 +315,13 @@ const E = null, oe = 0, $e = 1, Ve = 2, T = "ALL_CHILDREN", R = "ALL_DESCENDANTS
315
315
  ARROW_RIGHT: 39,
316
316
  ARROW_DOWN: 40,
317
317
  DELETE: 46
318
- }, Bn = process.env.NODE_ENV === "testing" ? (
318
+ }, $n = process.env.NODE_ENV === "testing" ? (
319
319
  /* to speed up unit testing */
320
320
  10
321
321
  ) : (
322
322
  /* istanbul ignore next */
323
323
  200
324
- ), Ne = 5, Ee = 40;
324
+ ), Ee = 5, Z = 40;
325
325
  function ke(e, t) {
326
326
  let n = 0;
327
327
  do {
@@ -331,10 +331,10 @@ function ke(e, t) {
331
331
  n++;
332
332
  } while (!0);
333
333
  }
334
- function $n(e, t) {
334
+ function Bn(e, t) {
335
335
  return e.level === t.level ? ke(e, t) : e.level - t.level;
336
336
  }
337
- function Z() {
337
+ function ee() {
338
338
  return {
339
339
  isLoaded: !1,
340
340
  isLoading: !1,
@@ -347,7 +347,7 @@ function Vn(e) {
347
347
  function we(e, t, n) {
348
348
  return e ? Xe(t, n) : _(n, t);
349
349
  }
350
- function H(e) {
350
+ function W(e) {
351
351
  return e.message || /* istanbul ignore next */
352
352
  String(e);
353
353
  }
@@ -454,7 +454,7 @@ const zn = {
454
454
  */
455
455
  beforeClearAll: {
456
456
  type: Function,
457
- default: Se(!0)
457
+ default: be(!0)
458
458
  },
459
459
  /**
460
460
  * Show branch nodes before leaf nodes?
@@ -631,7 +631,7 @@ const zn = {
631
631
  */
632
632
  matchKeys: {
633
633
  type: Array,
634
- default: Se(["label"])
634
+ default: be(["label"])
635
635
  },
636
636
  /**
637
637
  * Sets `maxHeight` style value of the menu.
@@ -790,7 +790,7 @@ const zn = {
790
790
  type: String,
791
791
  default: T,
792
792
  validator(e) {
793
- return _([T, R, A, B], e);
793
+ return _([T, R, A, $], e);
794
794
  }
795
795
  },
796
796
  /**
@@ -809,9 +809,9 @@ const zn = {
809
809
  */
810
810
  sortValueBy: {
811
811
  type: String,
812
- default: Oe,
812
+ default: ye,
813
813
  validator(e) {
814
- return _([Oe, ye, _e], e);
814
+ return _([ye, _e, Ne], e);
815
815
  }
816
816
  },
817
817
  /**
@@ -840,9 +840,9 @@ const zn = {
840
840
  */
841
841
  valueConsistsOf: {
842
842
  type: String,
843
- default: W,
843
+ default: H,
844
844
  validator(e) {
845
- return _([X, W, G, J], e);
845
+ return _([X, H, G, J], e);
846
846
  }
847
847
  },
848
848
  /**
@@ -896,7 +896,7 @@ const zn = {
896
896
  selectedNodeMap: S()
897
897
  },
898
898
  // States of root options.
899
- rootOptionsStates: Z(),
899
+ rootOptionsStates: ee(),
900
900
  localSearch: {
901
901
  // Has user entered any query to search local options?
902
902
  active: !1,
@@ -926,7 +926,7 @@ const zn = {
926
926
  let e;
927
927
  if (this.single || this.flat || this.disableBranchNodes || this.valueConsistsOf === X)
928
928
  e = this.forest.selectedNodeIds.slice();
929
- else if (this.valueConsistsOf === W)
929
+ else if (this.valueConsistsOf === H)
930
930
  e = this.forest.selectedNodeIds.filter((t) => {
931
931
  const n = this.getNode(t);
932
932
  return n.isRootNode ? !0 : !this.isSelected(n.parentNode);
@@ -944,7 +944,7 @@ const zn = {
944
944
  });
945
945
  }), e.push(...t);
946
946
  }
947
- return this.sortValueBy === ye ? e.sort((t, n) => $n(this.getNode(t), this.getNode(n))) : this.sortValueBy === _e && e.sort((t, n) => ke(this.getNode(t), this.getNode(n))), e;
947
+ return this.sortValueBy === _e ? e.sort((t, n) => Bn(this.getNode(t), this.getNode(n))) : this.sortValueBy === Ne && e.sort((t, n) => ke(this.getNode(t), this.getNode(n))), e;
948
948
  },
949
949
  /**
950
950
  * Has any option been selected?
@@ -1123,7 +1123,7 @@ const zn = {
1123
1123
  let t = [];
1124
1124
  if (this.single || this.flat || this.disableBranchNodes || this.valueConsistsOf === X)
1125
1125
  t = e;
1126
- else if (this.valueConsistsOf === W)
1126
+ else if (this.valueConsistsOf === H)
1127
1127
  e.forEach((s) => {
1128
1128
  t.push(s);
1129
1129
  const i = this.getNode(s);
@@ -1219,7 +1219,7 @@ const zn = {
1219
1219
  [T]: 0,
1220
1220
  [R]: 0,
1221
1221
  [A]: 0,
1222
- [B]: 0
1222
+ [$]: 0
1223
1223
  });
1224
1224
  });
1225
1225
  const n = e.trim().toLocaleLowerCase(), s = n.replace(/\s+/g, " ").split(" ");
@@ -1228,7 +1228,7 @@ const zn = {
1228
1228
  (o) => we(!1, o, i.nestedSearchLabel)
1229
1229
  ) : i.isMatched = this.matchKeys.some(
1230
1230
  (o) => we(!this.disableFuzzyMatching, n, i.lowerCased[o])
1231
- ), i.isMatched && (this.localSearch.noResults = !1, i.ancestors.forEach((o) => this.localSearch.countMap[o.id][R]++), i.isLeaf && i.ancestors.forEach((o) => this.localSearch.countMap[o.id][B]++), i.parentNode !== E && (this.localSearch.countMap[i.parentNode.id][T] += 1, i.isLeaf && (this.localSearch.countMap[i.parentNode.id][A] += 1))), (i.isMatched || i.isBranch && i.isExpandedOnSearch) && i.parentNode !== E && (i.parentNode.isExpandedOnSearch = !0, i.parentNode.hasMatchedDescendants = !0);
1231
+ ), i.isMatched && (this.localSearch.noResults = !1, i.ancestors.forEach((o) => this.localSearch.countMap[o.id][R]++), i.isLeaf && i.ancestors.forEach((o) => this.localSearch.countMap[o.id][$]++), i.parentNode !== E && (this.localSearch.countMap[i.parentNode.id][T] += 1, i.isLeaf && (this.localSearch.countMap[i.parentNode.id][A] += 1))), (i.isMatched || i.isBranch && i.isExpandedOnSearch) && i.parentNode !== E && (i.parentNode.isExpandedOnSearch = !0, i.parentNode.hasMatchedDescendants = !0);
1232
1232
  }), t();
1233
1233
  },
1234
1234
  handleRemoteSearch() {
@@ -1250,7 +1250,7 @@ const zn = {
1250
1250
  t.isLoaded = !0, t.options = Array.isArray(s) ? s : s || [], this.rootOptionsStates.isLoaded = !0, this.trigger.searchQuery === e && n();
1251
1251
  },
1252
1252
  fail: (s) => {
1253
- t.loadingError = H(s), this.rootOptionsStates.loadingError = H(s);
1253
+ t.loadingError = W(s), this.rootOptionsStates.loadingError = W(s);
1254
1254
  },
1255
1255
  end: () => {
1256
1256
  t.isLoading = !1, this.rootOptionsStates.isLoading = !1;
@@ -1259,7 +1259,7 @@ const zn = {
1259
1259
  },
1260
1260
  getRemoteSearchEntry() {
1261
1261
  const { searchQuery: e } = this.trigger, t = this.remoteSearch[e] || {
1262
- ...Z(),
1262
+ ...ee(),
1263
1263
  options: []
1264
1264
  };
1265
1265
  if (this.$watch(
@@ -1327,7 +1327,7 @@ const zn = {
1327
1327
  },
1328
1328
  highlightLastOption() {
1329
1329
  if (!this.hasVisibleOptions) return;
1330
- const e = be(this.visibleOptionIds);
1330
+ const e = Oe(this.visibleOptionIds);
1331
1331
  this.setCurrentHighlightedOption(this.getNode(e));
1332
1332
  },
1333
1333
  resetSearchQuery() {
@@ -1353,10 +1353,10 @@ const zn = {
1353
1353
  }), this.forest.selectedNodeMap = e;
1354
1354
  const t = S();
1355
1355
  this.multiple && (this.traverseAllNodesByIndex((n) => {
1356
- t[n.id] = oe;
1356
+ t[n.id] = ae;
1357
1357
  }), this.selectedNodes.forEach((n) => {
1358
1358
  t[n.id] = Ve, !this.flat && !this.disableBranchNodes && n.ancestors.forEach((s) => {
1359
- this.isSelected(s) || (t[s.id] = $e);
1359
+ this.isSelected(s) || (t[s.id] = Be);
1360
1360
  });
1361
1361
  })), this.forest.checkedStateMap = t;
1362
1362
  },
@@ -1369,19 +1369,19 @@ const zn = {
1369
1369
  normalize(e, t, n) {
1370
1370
  let s = t.map((i) => [this.enhancedNormalizer(i), i]).map(([i, o], a) => {
1371
1371
  this.checkDuplication(i), this.verifyNodeShape(i);
1372
- const { id: c, label: d, children: f, isDefaultExpanded: m } = i, p = e === E, v = p ? 0 : e.level + 1, N = Array.isArray(f) || f === null, I = !N, k = !!i.isDisabled || !this.flat && !p && e.isDisabled, z = !!i.isUnselectable, L = !!i.isNew, M = this.matchKeys.reduce((h, u) => ({
1372
+ const { id: c, label: d, children: f, isDefaultExpanded: m } = i, p = e === E, v = p ? 0 : e.level + 1, N = Array.isArray(f) || f === null, I = !N, k = !!i.isDisabled || !this.flat && !p && e.isDisabled, z = !!i.isUnselectable, C = !!i.isNew, M = this.matchKeys.reduce((h, u) => ({
1373
1373
  ...h,
1374
1374
  [u]: Vn(i[u]).toLocaleLowerCase()
1375
1375
  }), {}), Q = p ? M.label : e.nestedSearchLabel + " " + M.label;
1376
1376
  this.forest.nodeMap[c] = S();
1377
1377
  const l = this.forest.nodeMap[c];
1378
- if (l.id = c, l.label = d, l.level = v, l.ancestors = p ? [] : [e].concat(e.ancestors), l.index = (p ? [] : e.index).concat(a), l.parentNode = e, l.lowerCased = M, l.nestedSearchLabel = Q, l.isDisabled = k, l.isUnselectable = z, l.isNew = L, l.isMatched = !1, l.isHighlighted = !1, l.isBranch = N, l.isLeaf = I, l.isRootNode = p, l.raw = o, N) {
1378
+ if (l.id = c, l.label = d, l.level = v, l.ancestors = p ? [] : [e].concat(e.ancestors), l.index = (p ? [] : e.index).concat(a), l.parentNode = e, l.lowerCased = M, l.nestedSearchLabel = Q, l.isDisabled = k, l.isUnselectable = z, l.isNew = C, l.isMatched = !1, l.isHighlighted = !1, l.isBranch = N, l.isLeaf = I, l.isRootNode = p, l.raw = o, N) {
1379
1379
  const h = Array.isArray(f);
1380
- l.childrenStates = { ...Z(), isLoaded: h }, l.isExpanded = typeof m == "boolean" ? m : v < this.defaultExpandLevel, l.hasMatchedDescendants = !1, l.hasDisabledDescendants = !1, l.isExpandedOnSearch = !1, l.showAllChildrenOnSearch = !1, l.count = {
1380
+ l.childrenStates = { ...ee(), isLoaded: h }, l.isExpanded = typeof m == "boolean" ? m : v < this.defaultExpandLevel, l.hasMatchedDescendants = !1, l.hasDisabledDescendants = !1, l.isExpandedOnSearch = !1, l.showAllChildrenOnSearch = !1, l.count = {
1381
1381
  [T]: 0,
1382
1382
  [R]: 0,
1383
1383
  [A]: 0,
1384
- [B]: 0
1384
+ [$]: 0
1385
1385
  }, l.children = h ? this.normalize(l, f, n) : [], m === !0 && l.ancestors.forEach((u) => {
1386
1386
  u.isExpanded = !0;
1387
1387
  }), !h && typeof this.loadOptions != "function" ? y(
@@ -1389,7 +1389,7 @@ const zn = {
1389
1389
  () => 'Unloaded branch node detected. "loadOptions" prop is required to load its children.'
1390
1390
  ) : !h && l.isExpanded && this.loadChildrenOptions(l);
1391
1391
  }
1392
- if (l.ancestors.forEach((h) => h.count[R]++), I && l.ancestors.forEach((h) => h.count[B]++), p || (e.count[T] += 1, I && (e.count[A] += 1), k && (e.hasDisabledDescendants = !0)), n && n[c]) {
1392
+ if (l.ancestors.forEach((h) => h.count[R]++), I && l.ancestors.forEach((h) => h.count[$]++), p || (e.count[T] += 1, I && (e.count[A] += 1), k && (e.hasDisabledDescendants = !0)), n && n[c]) {
1393
1393
  const h = n[c];
1394
1394
  l.isMatched = h.isMatched, l.showAllChildrenOnSearch = h.showAllChildrenOnSearch, l.isHighlighted = h.isHighlighted, h.isBranch && l.isBranch && (l.isExpanded = h.isExpanded, l.isExpandedOnSearch = h.isExpandedOnSearch, h.childrenStates.isLoaded && !l.childrenStates.isLoaded ? l.isExpanded = !1 : l.childrenStates = { ...h.childrenStates });
1395
1395
  }
@@ -1414,7 +1414,7 @@ const zn = {
1414
1414
  });
1415
1415
  },
1416
1416
  fail: (e) => {
1417
- this.rootOptionsStates.loadingError = H(e);
1417
+ this.rootOptionsStates.loadingError = W(e);
1418
1418
  },
1419
1419
  end: () => {
1420
1420
  this.rootOptionsStates.isLoading = !1;
@@ -1440,7 +1440,7 @@ const zn = {
1440
1440
  this.getNode(t).childrenStates.isLoaded = !0;
1441
1441
  },
1442
1442
  fail: (s) => {
1443
- this.getNode(t).childrenStates.loadingError = H(s);
1443
+ this.getNode(t).childrenStates.loadingError = W(s);
1444
1444
  },
1445
1445
  end: () => {
1446
1446
  this.getNode(t).childrenStates.isLoading = !1;
@@ -1484,7 +1484,7 @@ const zn = {
1484
1484
  if (this.disabled || e.isDisabled || e.isUnselectable)
1485
1485
  return;
1486
1486
  this.single && this.clear();
1487
- const t = this.multiple && !this.flat ? this.forest.checkedStateMap[e.id] === oe : !this.isSelected(e);
1487
+ const t = this.multiple && !this.flat ? this.forest.checkedStateMap[e.id] === ae : !this.isSelected(e);
1488
1488
  t ? this._selectNode(e) : this._deselectNode(e), this.buildForestState(), t ? this.$emit("select", e.raw, this.getInstanceId()) : this.$emit("deselect", e.raw, this.getInstanceId()), this.localSearch.active && t && (this.single || this.clearOnSelect) && this.resetSearchQuery(), this.single && this.closeOnSelect && (this.closeMenu(), this.searchable && (this._blurOnSelect = !0));
1489
1489
  },
1490
1490
  clear() {
@@ -1548,7 +1548,7 @@ const zn = {
1548
1548
  removeLastValue() {
1549
1549
  if (!this.hasValue) return;
1550
1550
  if (this.single) return this.clear();
1551
- const e = be(this.internalValue), t = this.getNode(e);
1551
+ const e = Oe(this.internalValue), t = this.getNode(e);
1552
1552
  this.select(t);
1553
1553
  },
1554
1554
  saveMenuScrollPosition() {
@@ -1573,7 +1573,7 @@ const zn = {
1573
1573
  function Fn(e) {
1574
1574
  return typeof e == "string" ? e : e != null && !Re(e) ? JSON.stringify(e) : "";
1575
1575
  }
1576
- const Wn = {
1576
+ const Hn = {
1577
1577
  name: "vue-treeselect--hidden-fields",
1578
1578
  inject: ["instance"],
1579
1579
  render() {
@@ -1589,11 +1589,11 @@ const Wn = {
1589
1589
  key: "hidden-field-" + s
1590
1590
  }, null));
1591
1591
  }
1592
- }, Hn = [g.ENTER, g.END, g.HOME, g.ARROW_LEFT, g.ARROW_UP, g.ARROW_RIGHT, g.ARROW_DOWN], ze = {
1592
+ }, Wn = [g.ENTER, g.END, g.HOME, g.ARROW_LEFT, g.ARROW_UP, g.ARROW_RIGHT, g.ARROW_DOWN], ze = {
1593
1593
  name: "vue-treeselect--input",
1594
1594
  inject: ["instance"],
1595
1595
  data: () => ({
1596
- inputWidth: Ne,
1596
+ inputWidth: Ee,
1597
1597
  value: ""
1598
1598
  }),
1599
1599
  computed: {
@@ -1618,7 +1618,7 @@ const Wn = {
1618
1618
  }
1619
1619
  },
1620
1620
  created() {
1621
- this.debouncedCallback = Zt(this.updateSearchQuery, Bn, {
1621
+ this.debouncedCallback = Zt(this.updateSearchQuery, $n, {
1622
1622
  leading: !0,
1623
1623
  trailing: !0
1624
1624
  });
@@ -1669,7 +1669,7 @@ const Wn = {
1669
1669
  e.keyCode
1670
1670
  );
1671
1671
  if (!(e.ctrlKey || e.shiftKey || e.altKey || e.metaKey)) {
1672
- if (!t.menu.isOpen && _(Hn, n))
1672
+ if (!t.menu.isOpen && _(Wn, n))
1673
1673
  return e.preventDefault(), t.openMenu();
1674
1674
  switch (n) {
1675
1675
  case g.BACKSPACE: {
@@ -1729,14 +1729,14 @@ const Wn = {
1729
1729
  const {
1730
1730
  instance: e
1731
1731
  } = this, t = {}, n = [];
1732
- return e.searchable && !e.disabled && (n.push(this.renderInput()), this.needAutoSize && n.push(this.renderSizer())), e.searchable || re(t, {
1732
+ return e.searchable && !e.disabled && (n.push(this.renderInput()), this.needAutoSize && n.push(this.renderSizer())), e.searchable || oe(t, {
1733
1733
  on: {
1734
1734
  focus: this.onFocus,
1735
1735
  blur: this.onBlur,
1736
1736
  keydown: this.onKeyDown
1737
1737
  },
1738
1738
  ref: "input"
1739
- }), !e.searchable && !e.disabled && re(t, {
1739
+ }), !e.searchable && !e.disabled && oe(t, {
1740
1740
  attrs: {
1741
1741
  tabIndex: e.tabIndex
1742
1742
  }
@@ -1771,7 +1771,7 @@ const Wn = {
1771
1771
  }, [this.value]);
1772
1772
  },
1773
1773
  updateInputWidth() {
1774
- this.inputWidth = Math.max(Ne, this.$refs.sizer.scrollWidth + 15);
1774
+ this.inputWidth = Math.max(Ee, this.$refs.sizer.scrollWidth + 15);
1775
1775
  },
1776
1776
  updateSearchQuery() {
1777
1777
  const {
@@ -1824,7 +1824,7 @@ const Wn = {
1824
1824
  ref: "input"
1825
1825
  }, null)]);
1826
1826
  }
1827
- }, ae = (e, t) => {
1827
+ }, le = (e, t) => {
1828
1828
  const n = e.__vccOpts || e;
1829
1829
  for (const [s, i] of t)
1830
1830
  n[s] = i;
@@ -1837,10 +1837,10 @@ const Wn = {
1837
1837
  };
1838
1838
  function Qn(e, t, n, s, i, o) {
1839
1839
  return V(), U("svg", Un, t[0] || (t[0] = [
1840
- $("path", { d: "M336.559 68.611L231.016 174.165l105.543 105.549c15.699 15.705 15.699 41.145 0 56.85-7.844 7.844-18.128 11.769-28.407 11.769-10.296 0-20.581-3.919-28.419-11.769L174.167 231.003 68.609 336.563c-7.843 7.844-18.128 11.769-28.416 11.769-10.285 0-20.563-3.919-28.413-11.769-15.699-15.698-15.699-41.139 0-56.85l105.54-105.549L11.774 68.611c-15.699-15.699-15.699-41.145 0-56.844 15.696-15.687 41.127-15.687 56.829 0l105.563 105.554L279.721 11.767c15.705-15.687 41.139-15.687 56.832 0 15.705 15.699 15.705 41.145.006 56.844z" }, null, -1)
1840
+ B("path", { d: "M336.559 68.611L231.016 174.165l105.543 105.549c15.699 15.705 15.699 41.145 0 56.85-7.844 7.844-18.128 11.769-28.407 11.769-10.296 0-20.581-3.919-28.419-11.769L174.167 231.003 68.609 336.563c-7.843 7.844-18.128 11.769-28.416 11.769-10.285 0-20.563-3.919-28.413-11.769-15.699-15.698-15.699-41.139 0-56.85l105.54-105.549L11.774 68.611c-15.699-15.699-15.699-41.145 0-56.844 15.696-15.687 41.127-15.687 56.829 0l105.563 105.554L279.721 11.767c15.705-15.687 41.139-15.687 56.832 0 15.705 15.699 15.705 41.145.006 56.844z" }, null, -1)
1841
1841
  ]));
1842
1842
  }
1843
- const We = /* @__PURE__ */ ae(jn, [["render", Qn]]), Kn = {
1843
+ const He = /* @__PURE__ */ le(jn, [["render", Qn]]), Kn = {
1844
1844
  name: "vue-treeselect--multi-value-item",
1845
1845
  inject: ["instance"],
1846
1846
  props: {
@@ -1878,7 +1878,7 @@ const We = /* @__PURE__ */ ae(jn, [["render", Qn]]), Kn = {
1878
1878
  class: "vue-treeselect__multi-value-label"
1879
1879
  }, [i]), r("span", {
1880
1880
  class: "vue-treeselect__icon vue-treeselect__value-remove"
1881
- }, [r(We, null, null)])])]);
1881
+ }, [r(He, null, null)])])]);
1882
1882
  }
1883
1883
  }, qn = {
1884
1884
  name: "vue-treeselect--multi-value",
@@ -1927,10 +1927,10 @@ const We = /* @__PURE__ */ ae(jn, [["render", Qn]]), Kn = {
1927
1927
  };
1928
1928
  function Gn(e, t, n, s, i, o) {
1929
1929
  return V(), U("svg", Xn, t[0] || (t[0] = [
1930
- $("path", { d: "M286.935 69.377c-3.614-3.617-7.898-5.424-12.848-5.424H18.274c-4.952 0-9.233 1.807-12.85 5.424C1.807 72.998 0 77.279 0 82.228c0 4.948 1.807 9.229 5.424 12.847l127.907 127.907c3.621 3.617 7.902 5.428 12.85 5.428s9.233-1.811 12.847-5.428L286.935 95.074c3.613-3.617 5.427-7.898 5.427-12.847 0-4.948-1.814-9.229-5.427-12.85z" }, null, -1)
1930
+ B("path", { d: "M286.935 69.377c-3.614-3.617-7.898-5.424-12.848-5.424H18.274c-4.952 0-9.233 1.807-12.85 5.424C1.807 72.998 0 77.279 0 82.228c0 4.948 1.807 9.229 5.424 12.847l127.907 127.907c3.621 3.617 7.902 5.428 12.85 5.428s9.233-1.811 12.847-5.428L286.935 95.074c3.613-3.617 5.427-7.898 5.427-12.847 0-4.948-1.814-9.229-5.427-12.85z" }, null, -1)
1931
1931
  ]));
1932
1932
  }
1933
- const He = /* @__PURE__ */ ae(Yn, [["render", Gn]]), Jn = {
1933
+ const We = /* @__PURE__ */ le(Yn, [["render", Gn]]), Jn = {
1934
1934
  name: "vue-treeselect--control",
1935
1935
  inject: ["instance"],
1936
1936
  computed: {
@@ -1976,7 +1976,7 @@ const He = /* @__PURE__ */ ae(Yn, [["render", Gn]]), Jn = {
1976
1976
  class: "vue-treeselect__x-container",
1977
1977
  title: t,
1978
1978
  onMousedown: this.handleMouseDownOnX
1979
- }, [r(We, {
1979
+ }, [r(He, {
1980
1980
  class: "vue-treeselect__x"
1981
1981
  }, null)]) : null;
1982
1982
  },
@@ -1990,7 +1990,7 @@ const He = /* @__PURE__ */ ae(Yn, [["render", Gn]]), Jn = {
1990
1990
  return this.shouldShowArrow ? r("div", {
1991
1991
  class: "vue-treeselect__control-arrow-container",
1992
1992
  onMousedown: this.handleMouseDownOnArrow
1993
- }, [r(He, {
1993
+ }, [r(We, {
1994
1994
  class: t
1995
1995
  }, null)]) : null;
1996
1996
  },
@@ -2044,20 +2044,20 @@ const He = /* @__PURE__ */ ae(Yn, [["render", Gn]]), Jn = {
2044
2044
  },
2045
2045
  setup(e) {
2046
2046
  return (t, n) => (V(), U("div", {
2047
- class: se(`vue-treeselect__tip vue-treeselect__${e.type}-tip`)
2047
+ class: ie(`vue-treeselect__tip vue-treeselect__${e.type}-tip`)
2048
2048
  }, [
2049
- $("div", Zn, [
2050
- $("span", {
2051
- class: se(`vue-treeselect__icon-${e.icon}`)
2049
+ B("div", Zn, [
2050
+ B("span", {
2051
+ class: ie(`vue-treeselect__icon-${e.icon}`)
2052
2052
  }, null, 2)
2053
2053
  ]),
2054
- $("span", es, [
2054
+ B("span", es, [
2055
2055
  je(t.$slots, "default")
2056
2056
  ])
2057
2057
  ], 2));
2058
2058
  }
2059
2059
  });
2060
- let ee, te, ne;
2060
+ let te, ne, se;
2061
2061
  const ts = {
2062
2062
  name: "vue-treeselect--option",
2063
2063
  inject: ["instance"],
@@ -2124,15 +2124,15 @@ const ts = {
2124
2124
  onMousedown: this.handleMouseDownOnArrow
2125
2125
  }, [r("div", {
2126
2126
  name: "vue-treeselect__option-arrow--prepare"
2127
- }, [r(He, {
2127
+ }, [r(We, {
2128
2128
  class: n
2129
2129
  }, null)])]);
2130
2130
  }
2131
2131
  return (
2132
2132
  /*node.isLeaf && */
2133
- e.hasBranchNodes ? (ee || (ee = r("div", {
2133
+ e.hasBranchNodes ? (te || (te = r("div", {
2134
2134
  class: "vue-treeselect__option-arrow-placeholder"
2135
- }, [K(" ")])), ee) : null
2135
+ }, [K(" ")])), te) : null
2136
2136
  );
2137
2137
  },
2138
2138
  renderLabelContainer(e) {
@@ -2157,18 +2157,18 @@ const ts = {
2157
2157
  } = this, n = e.forest.checkedStateMap[t.id], s = {
2158
2158
  "vue-treeselect__checkbox": !0,
2159
2159
  "vue-treeselect__checkbox--checked": n === Ve,
2160
- "vue-treeselect__checkbox--indeterminate": n === $e,
2161
- "vue-treeselect__checkbox--unchecked": n === oe,
2160
+ "vue-treeselect__checkbox--indeterminate": n === Be,
2161
+ "vue-treeselect__checkbox--unchecked": n === ae,
2162
2162
  "vue-treeselect__checkbox--disabled": t.isDisabled,
2163
2163
  "vue-treeselect__checkbox--unselectable": t.isUnselectable
2164
2164
  };
2165
- return te || (te = r("span", {
2165
+ return ne || (ne = r("span", {
2166
2166
  class: "vue-treeselect__check-mark"
2167
- }, null)), ne || (ne = r("span", {
2167
+ }, null)), se || (se = r("span", {
2168
2168
  class: "vue-treeselect__minus-mark"
2169
2169
  }, null)), r("span", {
2170
2170
  class: s
2171
- }, [te, ne]);
2171
+ }, [ne, se]);
2172
2172
  },
2173
2173
  renderLabel() {
2174
2174
  const {
@@ -2289,7 +2289,8 @@ const ts = {
2289
2289
  controlResizeAndScrollEventListeners: null,
2290
2290
  controlSizeWatcher: null,
2291
2291
  menuSizeWatcher: null,
2292
- menuResizeAndScrollEventListeners: null
2292
+ menuResizeAndScrollEventListeners: null,
2293
+ availableHeight: 1 / 0
2293
2294
  };
2294
2295
  },
2295
2296
  computed: {
@@ -2297,14 +2298,14 @@ const ts = {
2297
2298
  let e = {
2298
2299
  "vue-treeselect__menu-container": !0
2299
2300
  };
2300
- return this.instance.appendToBody && (e["vue-treeselect__portal-target"] = !0), e;
2301
+ return this.instance.appendToBody && (e["vue-treeselect__portal-target"] = !0, e[this.instance.menu.placement === "top" ? "vue-treeselect--open-above" : "vue-treeselect--open-below"] = !0), e;
2301
2302
  },
2302
2303
  menuStyle() {
2303
2304
  const {
2304
2305
  instance: e
2305
2306
  } = this;
2306
2307
  return {
2307
- maxHeight: e.maxHeight + "px"
2308
+ maxHeight: Math.min(e.maxHeight, this.availableHeight) + "px"
2308
2309
  };
2309
2310
  },
2310
2311
  menuContainerStyle() {
@@ -2473,15 +2474,17 @@ const ts = {
2473
2474
  instance: e
2474
2475
  } = this;
2475
2476
  if (!e.menu.isOpen) return;
2476
- const t = e.getMenu(), n = e.getControl(), s = t.getBoundingClientRect(), i = n.getBoundingClientRect(), o = s.height, a = window.innerHeight, c = i.top, d = window.innerHeight - i.bottom, f = i.top >= 0 && i.top <= a || i.top < 0 && i.bottom > 0, m = d > o + Ee, p = c > o + Ee;
2477
- f ? e.openDirection !== "auto" ? e.menu.placement = ns[e.openDirection] : m || !p ? e.menu.placement = "bottom" : e.menu.placement = "top" : e.closeMenu();
2477
+ const t = e.getMenu(), s = e.getControl().getBoundingClientRect(), i = Math.min(e.maxHeight, t.scrollHeight), o = window.innerHeight, a = s.top, c = window.innerHeight - s.bottom, d = s.top >= 0 && s.top <= o || s.top < 0 && s.bottom > 0, f = c > i + Z, m = a > i + Z;
2478
+ d ? e.openDirection !== "auto" ? e.menu.placement = ns[e.openDirection] : f || !m && c >= a ? e.menu.placement = "bottom" : e.menu.placement = "top" : e.closeMenu();
2479
+ const p = e.menu.placement === "top" ? a : c;
2480
+ this.availableHeight = Math.max(p - Z, 100);
2478
2481
  },
2479
2482
  setupMenuSizeWatcher() {
2480
2483
  const {
2481
2484
  instance: e
2482
2485
  } = this, t = e.getMenu();
2483
2486
  this.menuSizeWatcher || (this.menuSizeWatcher = {
2484
- remove: ge(t, this.adjustMenuOpenDirection)
2487
+ remove: me(t, this.adjustMenuOpenDirection)
2485
2488
  });
2486
2489
  },
2487
2490
  setupMenuResizeAndScrollEventListeners() {
@@ -2489,7 +2492,7 @@ const ts = {
2489
2492
  instance: e
2490
2493
  } = this, t = e.getControl();
2491
2494
  this.menuResizeAndScrollEventListeners || (this.menuResizeAndScrollEventListeners = {
2492
- remove: me(t, this.adjustMenuOpenDirection)
2495
+ remove: ve(t, this.adjustMenuOpenDirection)
2493
2496
  });
2494
2497
  },
2495
2498
  removeMenuSizeWatcher() {
@@ -2510,7 +2513,7 @@ const ts = {
2510
2513
  instance: e
2511
2514
  } = this, t = e.getControl();
2512
2515
  this.controlResizeAndScrollEventListeners || (this.controlResizeAndScrollEventListeners = {
2513
- remove: me(t, this.updateMenuContainerOffset)
2516
+ remove: ve(t, this.updateMenuContainerOffset)
2514
2517
  });
2515
2518
  },
2516
2519
  setupControlSizeWatcher() {
@@ -2518,7 +2521,7 @@ const ts = {
2518
2521
  instance: e
2519
2522
  } = this, t = e.getControl();
2520
2523
  this.controlSizeWatcher || (this.controlSizeWatcher = {
2521
- remove: ge(t, () => {
2524
+ remove: me(t, () => {
2522
2525
  this.updateWidth(), this.updateMenuContainerOffset();
2523
2526
  })
2524
2527
  });
@@ -2540,8 +2543,8 @@ const ts = {
2540
2543
  instance: e
2541
2544
  } = this, t = e.getControl();
2542
2545
  if (t) {
2543
- const n = t.getBoundingClientRect(), s = Math.round(n.left) + "px", i = Math.round(n.bottom + window.scrollY) + "px", o = this.$refs["menu-container"].style;
2544
- o.top = i, o.left = s;
2546
+ const n = t.getBoundingClientRect(), s = Math.round(n.left) + "px", i = e.menu.placement === "top" ? n.top : n.bottom, o = Math.round(i + window.scrollY) + "px", a = this.$refs["menu-container"].style;
2547
+ a.top = o, a.left = s;
2545
2548
  }
2546
2549
  }
2547
2550
  },
@@ -2558,7 +2561,7 @@ const ts = {
2558
2561
  name: "vue-treeselect",
2559
2562
  mixins: [zn],
2560
2563
  components: {
2561
- HiddenFields: Wn,
2564
+ HiddenFields: Hn,
2562
2565
  Control: Jn,
2563
2566
  Menu: ss
2564
2567
  },
@@ -2585,7 +2588,7 @@ function rs(e, t, n, s, i, o) {
2585
2588
  const a = P("HiddenFields"), c = P("Control"), d = P("Menu");
2586
2589
  return V(), U("div", {
2587
2590
  ref: "wrapper",
2588
- class: se(e.wrapperClass)
2591
+ class: ie(e.wrapperClass)
2589
2592
  }, [
2590
2593
  r(a),
2591
2594
  r(c, { ref: "control" }, null, 512),
@@ -2597,7 +2600,7 @@ function rs(e, t, n, s, i, o) {
2597
2600
  ], 8, ["disabled"]))
2598
2601
  ], 2);
2599
2602
  }
2600
- const as = /* @__PURE__ */ ae(is, [["render", rs]]);
2603
+ const as = /* @__PURE__ */ le(is, [["render", rs]]);
2601
2604
  export {
2602
2605
  as as Treeselect,
2603
2606
  as as default
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@vitorfba/vue-treeselect",
3
3
  "author": "vitorfba",
4
4
  "license": "MIT",
5
- "version": "1.0.5",
5
+ "version": "1.0.6",
6
6
  "description": "Tree select hierarchical component for vue 3 (compat).",
7
7
  "type": "module",
8
8
  "exports": {