@pantograph/vue 0.30.6 → 0.30.8

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,4 +1,4 @@
1
- import { defineComponent as _e, useSlots as ut, onBeforeUnmount as $t, computed as C, createBlock as K, openBlock as I, unref as u, mergeProps as ue, createSlots as Kt, renderList as Ne, withCtx as W, renderSlot as Le, normalizeProps as Me, guardReactiveProps as Re, createVNode as X, h as _, useAttrs as Ft, createElementBlock as he, normalizeClass as we, toDisplayString as Nt, ref as ve, watch as Wt, isRef as tt, createCommentVNode as Ae, createElementVNode as ot, normalizeStyle as Gt, Fragment as $e } from "vue";
1
+ import { defineComponent as _e, useSlots as ut, onBeforeUnmount as $t, computed as C, createBlock as K, openBlock as I, unref as i, mergeProps as ue, createSlots as Kt, renderList as Ne, withCtx as W, renderSlot as Le, normalizeProps as Me, guardReactiveProps as Re, createVNode as X, h as _, useAttrs as Ft, createElementBlock as he, normalizeClass as we, toDisplayString as Nt, ref as ve, watch as Wt, isRef as tt, createCommentVNode as Ae, createElementVNode as ot, normalizeStyle as Gt, Fragment as $e } from "vue";
2
2
  import { createContext as Ht, Slot as Ut, useEmitAsProps as jt } from "reka-ui";
3
3
  import { omit as ye, isString as lt, cloneDeep as ae, isFunction as qt, debounce as at, pick as Jt, last as nt } from "es-toolkit";
4
4
  import { isEmptyElement as $, useVModel as Oe, useLazyLoading as Qt, useFormInput as Xt, useVirtualScroll as Yt, useInputDataStates as Zt, useCollection as eo, useDisableBodyPointerEvents as to, installComponent as pt } from "@pantograph/utils-vue";
@@ -21,7 +21,7 @@ import { i as J } from "../isArray-QlWcxgml.js";
21
21
  import { _ as mt } from "../GraphicalObject.vue_vue_type_script_setup_true_lang-km5VsLBH.js";
22
22
  import "../ScrollContainer/index.js";
23
23
  import "../Empty/index.js";
24
- import { f as fo, _ as vo, a as ho } from "../index-Y3XMSR_o.js";
24
+ import { f as fo, _ as vo, a as ho } from "../index-_lrD3ofV.js";
25
25
  import "../MenuItem/index.js";
26
26
  import "../Checkbox/index.js";
27
27
  import { _ as yo } from "../Checkbox.vue_vue_type_style_index_0_lang-D-7D_c_A.js";
@@ -68,33 +68,33 @@ const [Ge, So] = Ht("Combobox"), w = oo("combobox"), ft = lo(w, "value-placehold
68
68
  o.comboboxInputFocused.value = !1;
69
69
  });
70
70
  const k = C(() => {
71
- const D = t.placeholder ?? o.props.placeholder ?? "";
72
- return (o.props.headerSearch ? D : o.placeholder.value) ?? D;
71
+ const L = t.placeholder ?? o.props.placeholder ?? "";
72
+ return (o.props.headerSearch ? L : o.placeholder.value) ?? L;
73
73
  }), U = x(w, "input");
74
- return (D, y) => (I(), K(u(co), ue({
75
- ...u(o).comboboxInputBinding.value,
74
+ return (L, y) => (I(), K(i(co), ue({
75
+ ...i(o).comboboxInputBinding.value,
76
76
  ...t,
77
- disabled: u(o).getDisabled.value || t.disabled
77
+ disabled: i(o).getDisabled.value || t.disabled
78
78
  }, {
79
79
  placeholder: k.value,
80
- onKeydown: u(o).onKeyDown,
81
- ref: u(o).inputRef,
82
- class: u(H)(u(U), { [u(ft)]: u(o).valuePlaceholder.value }, t.class),
83
- contentFit: !u(o).props.headerSearch && u(o).props.contentFit,
84
- modelValue: u(o).searchModel.value,
85
- "onUpdate:modelValue": y[0] || (y[0] = (d) => u(o).searchModel.value = d)
80
+ onKeydown: i(o).onKeyDown,
81
+ ref: i(o).inputRef,
82
+ class: i(H)(i(U), { [i(ft)]: i(o).valuePlaceholder.value }, t.class),
83
+ contentFit: !i(o).props.headerSearch && i(o).props.contentFit,
84
+ modelValue: i(o).searchModel.value,
85
+ "onUpdate:modelValue": y[0] || (y[0] = (d) => i(o).searchModel.value = d)
86
86
  }), Kt({ _: 2 }, [
87
- Ne(Object.keys(u(ye)(p, ["leading"])), (d) => ({
87
+ Ne(Object.keys(i(ye)(p, ["leading"])), (d) => ({
88
88
  name: d,
89
89
  fn: W((g) => [
90
- Le(D.$slots, d, Me(Re(g)))
90
+ Le(L.$slots, d, Me(Re(g)))
91
91
  ])
92
92
  })),
93
- u(o).props.headerSearch ? {
93
+ i(o).props.headerSearch ? {
94
94
  name: "leading",
95
95
  fn: W((d) => [
96
- Le(D.$slots, "leading", Me(Re(d)), () => [
97
- X(u(We), {
96
+ Le(L.$slots, "leading", Me(Re(d)), () => [
97
+ X(i(We), {
98
98
  size: d.iconSize,
99
99
  icon: "tabler:search",
100
100
  flipOnDir: "rtl"
@@ -105,7 +105,7 @@ const [Ge, So] = Ht("Combobox"), w = oo("combobox"), ft = lo(w, "value-placehold
105
105
  } : {
106
106
  name: "leading",
107
107
  fn: W((d) => [
108
- Le(D.$slots, "leading", Me(Re(d)))
108
+ Le(L.$slots, "leading", Me(Re(d)))
109
109
  ]),
110
110
  key: "1"
111
111
  }
@@ -131,7 +131,7 @@ const [Ge, So] = Ht("Combobox"), w = oo("combobox"), ft = lo(w, "value-placehold
131
131
  }), U = (r = k.value) => {
132
132
  if (t.props.selectedItemIconAsTrailingIcon && (r != null && r._icon))
133
133
  return r._icon;
134
- }, D = C(() => U()), y = C(() => {
134
+ }, L = C(() => U()), y = C(() => {
135
135
  if (!t.props.noTrailing)
136
136
  return t.props.trailingIcon ?? "tabler:chevron-down";
137
137
  }), d = C(() => {
@@ -225,15 +225,15 @@ const [Ge, So] = Ht("Combobox"), w = oo("combobox"), ft = lo(w, "value-placehold
225
225
  g(f)
226
226
  )
227
227
  ) : null, V = !$(v);
228
- if (V || t.props.tagRenderMode && ["avatar", "go"].includes(t.props.tagRenderMode) || D.value || t.props.leadingIcon) {
229
- let L;
230
- if (V ? L = v : t.props.tagRenderMode === "avatar" ? L = Z(t.model.value) : t.props.tagRenderMode === "go" ? L = pe(t.model.value) : D.value ? L = m(D.value) : t.props.leadingIcon && (L = m(t.props.leadingIcon)), !$(L))
228
+ if (V || t.props.tagRenderMode && ["avatar", "go"].includes(t.props.tagRenderMode) || L.value || t.props.leadingIcon) {
229
+ let M;
230
+ if (V ? M = v : t.props.tagRenderMode === "avatar" ? M = Z(t.model.value) : t.props.tagRenderMode === "go" ? M = pe(t.model.value) : L.value ? M = m(L.value) : t.props.leadingIcon && (M = m(t.props.leadingIcon)), !$(M))
231
231
  return _(
232
232
  "div",
233
233
  {
234
234
  class: H(x(n, "leading"), t.props.triggerLeadingCls)
235
235
  },
236
- L
236
+ M
237
237
  );
238
238
  }
239
239
  }
@@ -247,7 +247,7 @@ const [Ge, So] = Ht("Combobox"), w = oo("combobox"), ft = lo(w, "value-placehold
247
247
  x(n, "tags"),
248
248
  t.props.triggerContentCls,
249
249
  t.props.triggerContentValueCls
250
- ], M = (() => {
250
+ ], E = (() => {
251
251
  if (t.props.multiple && J(t.model.value)) {
252
252
  if (t.props.tagRenderMode === "avatar")
253
253
  return _(
@@ -311,7 +311,7 @@ const [Ge, So] = Ht("Combobox"), w = oo("combobox"), ft = lo(w, "value-placehold
311
311
  );
312
312
  }
313
313
  })();
314
- if (M && T.push(M), t.props.headerSearch ? (!t.props.noValueOnPlaceholder || t.props.placeholder) && T.push(
314
+ if (E && T.push(E), t.props.headerSearch ? (!t.props.noValueOnPlaceholder || t.props.placeholder) && T.push(
315
315
  _(
316
316
  "div",
317
317
  {
@@ -332,8 +332,8 @@ const [Ge, So] = Ht("Combobox"), w = oo("combobox"), ft = lo(w, "value-placehold
332
332
  return _("div", { class: x(n, "content") }, T);
333
333
  }, v = [], V = Ce();
334
334
  $(V) || v.push(V), v.push(f());
335
- const L = ne();
336
- return $(L) || v.push(L), _("button", Q.value, v);
335
+ const M = ne();
336
+ return $(M) || v.push(M), _("button", Q.value, v);
337
337
  };
338
338
  return (r, b) => (I(), K(ce));
339
339
  }
@@ -367,7 +367,7 @@ const [Ge, So] = Ht("Combobox"), w = oo("combobox"), ft = lo(w, "value-placehold
367
367
  ...((Z = (ne = p.props).getTagProps) == null ? void 0 : Z.call(ne, t.option)) ?? {}
368
368
  })
369
369
  ) : t.option._icon && d.push(_(We, { icon: t.option._icon, size: p.getIconSize.value })) : d.push(g), $(d) ? null : d;
370
- }, U = Ft(), D = () => {
370
+ }, U = Ft(), L = () => {
371
371
  const y = p.props.tree ? void 0 : t.option._description, d = (qt(p.props.getMenuItemProps) ? p.props.getMenuItemProps(t.option) : p.props.getMenuItemProps) ?? {};
372
372
  return _(
373
373
  mo,
@@ -396,7 +396,7 @@ const [Ge, So] = Ht("Combobox"), w = oo("combobox"), ft = lo(w, "value-placehold
396
396
  }
397
397
  );
398
398
  };
399
- return (y, d) => (I(), K(D));
399
+ return (y, d) => (I(), K(L));
400
400
  }
401
401
  }), Oo = /* @__PURE__ */ _e({
402
402
  ...be("ComboboxLabel"),
@@ -406,7 +406,7 @@ const [Ge, So] = Ht("Combobox"), w = oo("combobox"), ft = lo(w, "value-placehold
406
406
  },
407
407
  setup(Y) {
408
408
  return (t, p) => (I(), he("div", {
409
- class: we(u(x)(u(w), "label"))
409
+ class: we(i(x)(i(w), "label"))
410
410
  }, Nt(t.label), 3));
411
411
  }
412
412
  }), Io = /* @__PURE__ */ _e({
@@ -507,11 +507,11 @@ const [Ge, So] = Ht("Combobox"), w = oo("combobox"), ft = lo(w, "value-placehold
507
507
  o.tree && (((e = o.filterOptions) == null ? void 0 : e.expandParent) === "collapse" ? Q([]) : ((l = o.filterOptions) == null ? void 0 : l.expandParent) === "expand" && Q(
508
508
  T.value.filter((a) => a._hasChildren).map((a) => a._key)
509
509
  ));
510
- }, D = at((e) => {
510
+ }, L = at((e) => {
511
511
  k("search", e), U();
512
512
  }, 500), y = Oe(o, "search", k, {
513
513
  passive: o.search === void 0,
514
- onChange: D
514
+ onChange: L
515
515
  }), d = po(y, 500), g = Oe(o, "open", k, {
516
516
  defaultValue: o.defaultOpen,
517
517
  passive: o.open === void 0,
@@ -655,7 +655,7 @@ const [Ge, So] = Ht("Combobox"), w = oo("combobox"), ft = lo(w, "value-placehold
655
655
  var l;
656
656
  if ((l = f.value) != null && l.length && !F(e))
657
657
  return f.value.find((a) => a._key === e);
658
- }, L = (e) => {
658
+ }, M = (e) => {
659
659
  const l = V(e);
660
660
  return l && (l._label || l._key) || e;
661
661
  }, de = (e) => {
@@ -664,21 +664,21 @@ const [Ge, So] = Ht("Combobox"), w = oo("combobox"), ft = lo(w, "value-placehold
664
664
  }, re = (e) => e === void 0 ? !1 : Array.isArray(n.value) ? !!(e && n.value.includes(e)) : n.value === e, T = C(() => {
665
665
  var s, S;
666
666
  let e = [];
667
- const l = /* @__PURE__ */ new Set(), a = (i) => {
668
- i != null && i._key && !l.has(i._key) && (e.push(ae(i)), l.add(i._key));
667
+ const l = /* @__PURE__ */ new Set(), a = (u) => {
668
+ u != null && u._key && !l.has(u._key) && (e.push(ae(u)), l.add(u._key));
669
669
  };
670
- if (d.value ? (f.value.forEach((i) => {
671
- var h, E;
672
- if (i._label && i._label.toLowerCase().includes(d.value.toLowerCase()) && !l.has(i._key)) {
673
- if (a(i), i._hasChildren && v(i._key).forEach(a), (h = o.filterOptions) != null && h.strictNode)
674
- i._parentKeys && i._parentKeys.forEach((c) => {
670
+ if (d.value ? (f.value.forEach((u) => {
671
+ var h, D;
672
+ if (u._label && u._label.toLowerCase().includes(d.value.toLowerCase()) && !l.has(u._key)) {
673
+ if (a(u), u._hasChildren && v(u._key).forEach(a), (h = o.filterOptions) != null && h.strictNode)
674
+ u._parentKeys && u._parentKeys.forEach((c) => {
675
675
  if (!l.has(c)) {
676
676
  const oe = V(c);
677
677
  a(oe);
678
678
  }
679
679
  });
680
- else if ((E = i._parentKeys) != null && E.length) {
681
- const c = st(i._parentKeys);
680
+ else if ((D = u._parentKeys) != null && D.length) {
681
+ const c = st(u._parentKeys);
682
682
  if (!F(c)) {
683
683
  if (!l.has(c)) {
684
684
  const le = V(c);
@@ -689,13 +689,13 @@ const [Ge, So] = Ht("Combobox"), w = oo("combobox"), ft = lo(w, "value-placehold
689
689
  }
690
690
  }
691
691
  }), e = e.sort(
692
- (i, z) => f.value.findIndex((h) => h._key === i._key) - f.value.findIndex((h) => h._key === z._key)
692
+ (u, z) => f.value.findIndex((h) => h._key === u._key) - f.value.findIndex((h) => h._key === z._key)
693
693
  )) : e = ae(f.value), o.sortSelectedItems && !o.tree && !F(n.value)) {
694
- let i = ae(e);
695
- const z = i.filter((B) => re(B._key)), h = Symbol("root"), E = Symbol("rootGroup"), c = {}, oe = (B, A, O = 1) => {
696
- const G = i.splice(B, O);
697
- i.splice(A, 0, ...G);
698
- }, le = (B) => B ? i.findIndex((A) => A._key === B) : -1, Pe = (B) => {
694
+ let u = ae(e);
695
+ const z = u.filter((B) => re(B._key)), h = Symbol("root"), D = Symbol("rootGroup"), c = {}, oe = (B, A, O = 1) => {
696
+ const G = u.splice(B, O);
697
+ u.splice(A, 0, ...G);
698
+ }, le = (B) => B ? u.findIndex((A) => A._key === B) : -1, Pe = (B) => {
699
699
  const A = c[B], O = le(A == null ? void 0 : A.key);
700
700
  return A != null && A.length ? O + A.length + 1 : O + 1;
701
701
  };
@@ -706,13 +706,13 @@ const [Ge, So] = Ht("Combobox"), w = oo("combobox"), ft = lo(w, "value-placehold
706
706
  let G = le(O);
707
707
  const et = Math.max(
708
708
  Pe(h),
709
- Pe(E)
709
+ Pe(D)
710
710
  );
711
711
  if (G > et) {
712
712
  const Be = v(O).length;
713
713
  oe(G, et, Be + 1);
714
714
  }
715
- if (c[E] = {
715
+ if (c[D] = {
716
716
  key: O,
717
717
  length: v(O).length
718
718
  }, G = le(O), O && G > -1) {
@@ -735,29 +735,29 @@ const [Ge, So] = Ht("Combobox"), w = oo("combobox"), ft = lo(w, "value-placehold
735
735
  length: B._hasChildren ? v(B._key).length : void 0
736
736
  };
737
737
  }
738
- i = ae(i);
739
- }), e = i;
738
+ u = ae(u);
739
+ }), e = u;
740
740
  }
741
741
  if (!o.tree) {
742
- const i = ae(e);
743
- for (let z = 0; z < i.length - 1; z++) {
744
- const h = i[z], E = i[z + 1];
745
- !E._divider && (E._hasChildren || (s = h._parentKeys) != null && s.length && !((S = E._parentKeys) != null && S.length)) && (i.splice(z + 1, 0, {
742
+ const u = ae(e);
743
+ for (let z = 0; z < u.length - 1; z++) {
744
+ const h = u[z], D = u[z + 1];
745
+ !D._divider && (D._hasChildren || (s = h._parentKeys) != null && s.length && !((S = D._parentKeys) != null && S.length)) && (u.splice(z + 1, 0, {
746
746
  _key: Ie(Fe),
747
747
  _divider: !0,
748
748
  _id: Ie(Fe)
749
749
  }), z++);
750
750
  }
751
- e = i;
751
+ e = u;
752
752
  }
753
753
  return e;
754
754
  });
755
755
  U();
756
- const { getDisabled: ee, getStatus: Ue, getSize: M } = Xt({
756
+ const { getDisabled: ee, getStatus: Ue, getSize: E } = Xt({
757
757
  defaults: { size: "md" },
758
758
  exports: ["getDisabled", "getSize", "getStatus"]
759
759
  }), se = C(() => {
760
- switch (M.value) {
760
+ switch (E.value) {
761
761
  case "sm":
762
762
  return "xsm";
763
763
  case "lg":
@@ -767,7 +767,7 @@ const [Ge, So] = Ht("Combobox"), w = oo("combobox"), ft = lo(w, "value-placehold
767
767
  return "sm";
768
768
  }
769
769
  }), Te = C(() => {
770
- switch (M.value) {
770
+ switch (E.value) {
771
771
  case "sm":
772
772
  return "2xsm";
773
773
  case "lg":
@@ -801,15 +801,15 @@ const [Ge, So] = Ht("Combobox"), w = oo("combobox"), ft = lo(w, "value-placehold
801
801
  if (l._divider)
802
802
  return 1;
803
803
  if (l._label && l._hasChildren)
804
- return 8 + (ge[M.value] ?? ge.md);
804
+ return 8 + (ge[E.value] ?? ge.md);
805
805
  if (l._description)
806
- return me[M.value] ?? me.md;
806
+ return me[E.value] ?? me.md;
807
807
  }
808
- return rt[M.value] ?? rt.md;
808
+ return rt[E.value] ?? rt.md;
809
809
  },
810
810
  overscan: 5,
811
811
  get gap() {
812
- return xe[M.value] ?? 0;
812
+ return xe[E.value] ?? 0;
813
813
  }
814
814
  }));
815
815
  let R, te;
@@ -845,9 +845,9 @@ const [Ge, So] = Ht("Combobox"), w = oo("combobox"), ft = lo(w, "value-placehold
845
845
  ), kt = C(() => {
846
846
  if (je.value) {
847
847
  if (o.multiple && J(n.value))
848
- return L(nt(n.value));
848
+ return M(nt(n.value));
849
849
  if (!o.multiple && !J(n.value))
850
- return L(n.value);
850
+ return M(n.value);
851
851
  }
852
852
  }), { CollectionSlot: xt, CollectionItem: qe, itemMap: St, getItems: Je } = eo({
853
853
  isProvider: !0,
@@ -867,15 +867,15 @@ const [Ge, So] = Ht("Combobox"), w = oo("combobox"), ft = lo(w, "value-placehold
867
867
  n.value = [e._key], k("select", e._key, !0, e);
868
868
  else {
869
869
  let S = J(n.value) ? n.value : [];
870
- const i = S.includes(e._key);
871
- S.length === 1 && de(S[0]) && e._key !== S[0] && (S = []), i ? (n.value = S.filter((z) => z !== e._key), k("select", e._key, !0, e)) : (n.value = [...S, e._key], k("select", e._key, !1, e));
870
+ const u = S.includes(e._key);
871
+ S.length === 1 && de(S[0]) && e._key !== S[0] && (S = []), u ? (n.value = S.filter((z) => z !== e._key), k("select", e._key, !0, e)) : (n.value = [...S, e._key], k("select", e._key, !1, e));
872
872
  }
873
873
  else e._clear ? (n.value = void 0, k("select", void 0, !1)) : (n.value = e._key, k("select", e._key, !0, e));
874
874
  }, { getDir: Pt } = Co(), Se = Pt(), Ze = {
875
875
  props: o,
876
876
  emit: k,
877
877
  onKeyDown: (e) => {
878
- var l, a, s, S, i, z;
878
+ var l, a, s, S, u, z;
879
879
  if (o.headerSearch || e.stopPropagation(), e.key === "Backspace" && o.multiple && J(n.value) && F(y.value))
880
880
  n.value = n.value.slice(0, -1);
881
881
  else if (!g.value)
@@ -886,14 +886,14 @@ const [Ge, So] = Ht("Combobox"), w = oo("combobox"), ft = lo(w, "value-placehold
886
886
  else if (e.key === "Tab" && !o.headerSearch) g.value = !1;
887
887
  else if (["ArrowDown", "ArrowUp"].includes(e.key)) {
888
888
  if (h.length) {
889
- const E = h.findIndex(
889
+ const D = h.findIndex(
890
890
  (c) => P.value && c.value && c.value === P.value
891
891
  );
892
892
  if (e.key === "ArrowDown") {
893
- const c = h[E + 1];
893
+ const c = h[D + 1];
894
894
  P.value = (c == null ? void 0 : c.value) ?? P.value ?? h[0].value;
895
895
  } else if (e.key === "ArrowUp") {
896
- const c = h[E - 1];
896
+ const c = h[D - 1];
897
897
  P.value = (c == null ? void 0 : c.value) ?? h[0].value;
898
898
  }
899
899
  (a = (l = h.find(
@@ -901,8 +901,8 @@ const [Ge, So] = Ht("Combobox"), w = oo("combobox"), ft = lo(w, "value-placehold
901
901
  )) == null ? void 0 : l.ref) == null || a.scrollIntoView();
902
902
  }
903
903
  } else if (["ArrowLeft", "ArrowRight"].includes(e.key)) {
904
- const E = V(P.value);
905
- h.length && fe.value && o.tree && P.value && E && ((s = N.value) != null && s.includes(P.value) && (Se.value === "ltr" && e.key === "ArrowLeft" || Se.value === "rtl" && e.key === "ArrowRight") || !((S = N.value) != null && S.includes(P.value)) && (Se.value === "ltr" && e.key === "ArrowRight" || Se.value === "rtl" && e.key === "ArrowLeft")) && ((z = (i = fe.value).onExpandKey) == null || z.call(i, E));
904
+ const D = V(P.value);
905
+ h.length && fe.value && o.tree && P.value && D && ((s = N.value) != null && s.includes(P.value) && (Se.value === "ltr" && e.key === "ArrowLeft" || Se.value === "rtl" && e.key === "ArrowRight") || !((S = N.value) != null && S.includes(P.value)) && (Se.value === "ltr" && e.key === "ArrowRight" || Se.value === "rtl" && e.key === "ArrowLeft")) && ((z = (u = fe.value).onExpandKey) == null || z.call(u, D));
906
906
  } else e.key === "Enter" && (h.length === 1 && h[0].value && P.value !== h[0].value && (P.value = h[0].value), P.value && Ye(V(P.value), !0), k("keydownEnter", e, y.value));
907
907
  e.key === "Escape" && k("keydownEscape", e);
908
908
  }
@@ -915,13 +915,13 @@ const [Ge, So] = Ht("Combobox"), w = oo("combobox"), ft = lo(w, "value-placehold
915
915
  placeholder: kt,
916
916
  getOptionByValue: V,
917
917
  isOptionSelected: re,
918
- getLabelByValue: L,
918
+ getLabelByValue: M,
919
919
  getSingleByValue: de,
920
920
  inputRef: ie,
921
921
  focusOnInput: Ve,
922
922
  getDisabled: ee,
923
923
  getStatus: Ue,
924
- getSize: M,
924
+ getSize: E,
925
925
  getTagSize: se,
926
926
  getIconSize: Te,
927
927
  comboboxInputBinding: _t,
@@ -944,7 +944,7 @@ const [Ge, So] = Ht("Combobox"), w = oo("combobox"), ft = lo(w, "value-placehold
944
944
  disabled: ee.value,
945
945
  selectionBehavior: "replace",
946
946
  ...o.treeProps ?? {},
947
- size: M.value,
947
+ size: E.value,
948
948
  flattenData: !0,
949
949
  outerVirtualScroll: !0,
950
950
  selectable: !0,
@@ -998,7 +998,7 @@ const [Ge, So] = Ht("Combobox"), w = oo("combobox"), ft = lo(w, "value-placehold
998
998
  }, Dt = () => {
999
999
  var a;
1000
1000
  const e = {
1001
- type: M.value === "sm" ? "simple" : "advance",
1001
+ type: E.value === "sm" ? "simple" : "advance",
1002
1002
  ...ye(o.emptyProps ?? {}, ["class"]),
1003
1003
  class: H(x(w, "empty"), o.emptyCls)
1004
1004
  }, l = (a = m.empty) == null ? void 0 : a.call(m, e);
@@ -1013,7 +1013,7 @@ const [Ge, So] = Ht("Combobox"), w = oo("combobox"), ft = lo(w, "value-placehold
1013
1013
  const e = (a = m.loading) == null ? void 0 : a.call(m, {});
1014
1014
  return $(e) ? new Array(T.value.length ? 2 : o.loadingRowCount).fill(1).map(
1015
1015
  () => _(_o, {
1016
- size: M.value,
1016
+ size: E.value,
1017
1017
  class: H(x(w, "skeleton"), o.skeletonCls),
1018
1018
  ...ye(o.skeletonProps ?? {}, ["class"])
1019
1019
  })
@@ -1033,8 +1033,8 @@ const [Ge, So] = Ht("Combobox"), w = oo("combobox"), ft = lo(w, "value-placehold
1033
1033
  }, Rt = (e) => {
1034
1034
  e.key === "ArrowDown" && !g.value ? g.value = !0 : e.key === "Tab" && g.value && (g.value = !1);
1035
1035
  };
1036
- return o.disableOutsidePointerEvents && to(g), t(Ze), (e, l) => (I(), K(u(ao), ue({
1037
- open: u(g),
1036
+ return o.disableOutsidePointerEvents && to(g), t(Ze), (e, l) => (I(), K(i(ao), ue({
1037
+ open: i(g),
1038
1038
  "onUpdate:open": l[2] || (l[2] = (a) => tt(g) ? g.value = a : null)
1039
1039
  }, Z.value, {
1040
1040
  containerProps: {
@@ -1042,16 +1042,16 @@ const [Ge, So] = Ht("Combobox"), w = oo("combobox"), ft = lo(w, "value-placehold
1042
1042
  onClick: Ve
1043
1043
  },
1044
1044
  noPadding: !0,
1045
- size: u(M),
1045
+ size: i(E),
1046
1046
  containerStyle: {
1047
1047
  pointerEvents: "auto",
1048
- display: u(g) ? void 0 : "none",
1048
+ display: i(g) ? void 0 : "none",
1049
1049
  zIndex: e.zIndex,
1050
1050
  "--ptc-combobox-popup-width": e.samePopupWidth ? void 0 : wt.value,
1051
1051
  "--ptc-combobox-popup-height": Tt.value,
1052
1052
  "--ptc-combobox-trigger-min-w": zt.value
1053
1053
  },
1054
- containerCls: u(H)(u(It)(o), e.popupCls),
1054
+ containerCls: i(H)(i(It)({ size: i(E) }), e.popupCls),
1055
1055
  onKeydown: Rt
1056
1056
  }), {
1057
1057
  default: W(() => [
@@ -1059,36 +1059,36 @@ const [Ge, So] = Ht("Combobox"), w = oo("combobox"), ft = lo(w, "value-placehold
1059
1059
  ]),
1060
1060
  content: W(() => [
1061
1061
  X(Vt),
1062
- X(u(ko), ue({
1062
+ X(i(ko), ue({
1063
1063
  ref_key: "scrollContainerRef",
1064
1064
  ref: ke
1065
1065
  }, Ot.value), {
1066
1066
  default: W(() => [
1067
- T.value.length || e.loading ? (I(), K(u(xt), { key: 0 }, {
1067
+ T.value.length || e.loading ? (I(), K(i(xt), { key: 0 }, {
1068
1068
  default: W(() => [
1069
1069
  ot("div", {
1070
- class: we(u(H)(u(x)(u(w), "options"), e.optionsCls)),
1070
+ class: we(i(H)(i(x)(i(w), "options"), e.optionsCls)),
1071
1071
  style: Gt(e.virtual ? yt.value : {}),
1072
1072
  onPointerleave: l[1] || (l[1] = (a) => Ee(void 0))
1073
1073
  }, [
1074
- e.tree ? (I(), K(u(vo), ue({
1074
+ e.tree ? (I(), K(i(vo), ue({
1075
1075
  key: 0,
1076
1076
  ref_key: "treeRef",
1077
1077
  ref: fe
1078
1078
  }, Bt.value, {
1079
- expandedKeys: u(N),
1079
+ expandedKeys: i(N),
1080
1080
  "onUpdate:expandedKeys": l[0] || (l[0] = (a) => tt(N) ? N.value = a : null),
1081
1081
  onExpand: Ve,
1082
1082
  onSelect: Mt
1083
1083
  }), {
1084
1084
  default: W(({ items: a }) => [
1085
- (I(!0), he($e, null, Ne(a, (s) => (I(), K(u(qe), {
1085
+ (I(!0), he($e, null, Ne(a, (s) => (I(), K(i(qe), {
1086
1086
  key: s._key,
1087
1087
  value: s._key,
1088
1088
  id: s._id
1089
1089
  }, {
1090
1090
  default: W(() => [
1091
- X(u(ho), ue({ node: s }, { ref_for: !0 }, Xe(s), {
1091
+ X(i(ho), ue({ node: s }, { ref_for: !0 }, Xe(s), {
1092
1092
  onPointermove: (S) => Ee(s._key),
1093
1093
  id: s._id
1094
1094
  }), {
@@ -1110,7 +1110,7 @@ const [Ge, So] = Ht("Combobox"), w = oo("combobox"), ft = lo(w, "value-placehold
1110
1110
  a._divider ? (I(), K(bo, { key: 0 })) : a._label && a._hasChildren ? (I(), K(Oo, {
1111
1111
  key: 1,
1112
1112
  label: a._label
1113
- }, null, 8, ["label"])) : a._hasChildren ? Ae("", !0) : (I(), K(u(qe), {
1113
+ }, null, 8, ["label"])) : a._hasChildren ? Ae("", !0) : (I(), K(i(qe), {
1114
1114
  key: 2,
1115
1115
  value: a._key,
1116
1116
  id: a._id
@@ -1131,10 +1131,10 @@ const [Ge, So] = Ht("Combobox"), w = oo("combobox"), ft = lo(w, "value-placehold
1131
1131
  })) : (I(), K(Dt, { key: 1 })),
1132
1132
  e.lazyLoading ? (I(), he("div", {
1133
1133
  key: 2,
1134
- class: we(u(x)(u(w), "lazy_loading"))
1134
+ class: we(i(x)(i(w), "lazy_loading"))
1135
1135
  }, [
1136
1136
  ot("div", {
1137
- class: we(u(x)(u(w), "lazy_loading_trigger")),
1137
+ class: we(i(x)(i(w), "lazy_loading_trigger")),
1138
1138
  ref_key: "target",
1139
1139
  ref: pe
1140
1140
  }, null, 2)