@firstnoodle-ui/bui 0.0.68 → 0.0.70

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,7 +1,6 @@
1
1
  import { TPopSelectOption } from '../types';
2
2
  type __VLS_Props = {
3
- label: string;
4
- disabled?: boolean;
3
+ option: TPopSelectOption;
5
4
  hoveredOption: TPopSelectOption | null;
6
5
  selected?: boolean;
7
6
  };
@@ -25,7 +24,6 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
25
24
  onFocus?: ((...args: any[]) => any) | undefined;
26
25
  onHover?: ((...args: any[]) => any) | undefined;
27
26
  }>, {
28
- disabled: boolean;
29
27
  selected: boolean;
30
28
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
31
29
  root: HTMLDivElement;
@@ -1,5 +1,6 @@
1
1
  import { TIcon } from '../types';
2
2
  export type TreeNodeAction<T> = {
3
+ id: string | number;
3
4
  label: string;
4
5
  icon?: TIcon;
5
6
  handler: (path: TreeNode<T>[]) => void;
@@ -37,7 +37,7 @@ export type TOverlayType = (typeof OverlayType)[number];
37
37
  export declare const PopperTrigger: readonly ["click", "hover", "focus", "manual"];
38
38
  export type TPopperTrigger = (typeof PopperTrigger)[number];
39
39
  export type TPopSelectOption = {
40
- id?: string | number;
40
+ id: string | number;
41
41
  icon?: TIcon;
42
42
  label: string;
43
43
  disabled?: boolean;
package/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  var bt = Object.defineProperty;
2
2
  var Lt = (n, t, e) => t in n ? bt(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
3
3
  var O1 = (n, t, e) => Lt(n, typeof t != "symbol" ? t + "" : t, e);
4
- import { createElementBlock as i, openBlock as o, renderSlot as R, createElementVNode as u, defineComponent as $, toDisplayString as Q, ref as L, watch as i1, computed as O, createBlock as V, createCommentVNode as k, normalizeClass as D, normalizeStyle as t1, createVNode as w, unref as p, withCtx as Z, resolveDynamicComponent as $1, provide as yt, onMounted as a1, withModifiers as U, Fragment as M, renderList as m1, onBeforeMount as A1, toRef as Ht, onUnmounted as F1, onBeforeUnmount as B1, nextTick as D1, createStaticVNode as u1, Teleport as U1, withDirectives as x1, vShow as X1, Transition as de, useSlots as R1, withKeys as _, createSlots as Ae, vModelText as Vt, reactive as Re, createTextVNode as Ee, resolveComponent as kt, getCurrentInstance as Oe } from "vue";
4
+ import { createElementBlock as i, openBlock as o, renderSlot as R, createElementVNode as u, defineComponent as $, toDisplayString as K, ref as L, watch as i1, computed as O, createBlock as V, createCommentVNode as k, normalizeClass as D, normalizeStyle as t1, createVNode as w, unref as p, withCtx as Z, resolveDynamicComponent as $1, provide as yt, onMounted as a1, withModifiers as U, Fragment as M, renderList as m1, onBeforeMount as A1, toRef as Ht, onUnmounted as F1, onBeforeUnmount as B1, nextTick as D1, createStaticVNode as u1, Teleport as U1, withDirectives as x1, vShow as X1, Transition as de, useSlots as R1, withKeys as _, createSlots as Ae, vModelText as Vt, reactive as Re, createTextVNode as Ee, resolveComponent as kt, getCurrentInstance as Oe } from "vue";
5
5
  import { useRoute as G1, useRouter as ue, onBeforeRouteUpdate as Ie } from "vue-router";
6
6
  import { size as Pe, autoUpdate as wt, offset as Mt, flip as Zt, shift as He, limitShift as $t, computePosition as Dt } from "@floating-ui/dom";
7
7
  import ne from "debounce";
@@ -56,7 +56,7 @@ const Uo = /* @__PURE__ */ M1(Rt, [["render", Ot]]), It = { class: "w-full space
56
56
  setup(n) {
57
57
  return (t, e) => (o(), i("section", It, [
58
58
  u("div", Pt, [
59
- u("p", Nt, Q(t.label), 1),
59
+ u("p", Nt, K(t.label), 1),
60
60
  e[0] || (e[0] = u("div", { class: "flex-1 h-full" }, [
61
61
  u("div", {
62
62
  class: "w-full border-b border-default",
@@ -93,7 +93,7 @@ const Uo = /* @__PURE__ */ M1(Rt, [["render", Ot]]), It = { class: "w-full space
93
93
  width: `${e.size}px`,
94
94
  height: `${e.size}px`,
95
95
  borderRadius: e.cropShape === "circle" ? "50%" : "8px"
96
- })), q = () => {
96
+ })), Q = () => {
97
97
  var F;
98
98
  e.disabled || (F = s.value) == null || F.click();
99
99
  }, s1 = () => {
@@ -110,7 +110,7 @@ const Uo = /* @__PURE__ */ M1(Rt, [["render", Ot]]), It = { class: "w-full space
110
110
  y.value = (r1 - v1) / 2, S.value = (r1 - A) / 2;
111
111
  }, F.src = m.value;
112
112
  } else
113
- q();
113
+ Q();
114
114
  }, f1 = (F) => {
115
115
  var v1;
116
116
  const Y = F.target, o1 = (v1 = Y.files) == null ? void 0 : v1[0];
@@ -118,8 +118,8 @@ const Uo = /* @__PURE__ */ M1(Rt, [["render", Ot]]), It = { class: "w-full space
118
118
  const A = new FileReader();
119
119
  A.onload = (x) => {
120
120
  var V1;
121
- const K = (V1 = x.target) == null ? void 0 : V1.result;
122
- m.value = K;
121
+ const q = (V1 = x.target) == null ? void 0 : V1.result;
122
+ m.value = q;
123
123
  const d1 = new Image();
124
124
  d1.onload = () => {
125
125
  C.value = d1, T.value = d1.width, z.value = d1.height, h.value = r1 * 0.7;
@@ -130,7 +130,7 @@ const Uo = /* @__PURE__ */ M1(Rt, [["render", Ot]]), It = { class: "w-full space
130
130
  const B = d1.width * v.value, J = d1.height * v.value;
131
131
  y.value = (r1 - B) / 2, S.value = (r1 - J) / 2, setTimeout(() => {
132
132
  }, 10);
133
- }, d1.src = K;
133
+ }, d1.src = q;
134
134
  }, A.readAsDataURL(o1);
135
135
  }
136
136
  Y.value = "";
@@ -139,8 +139,8 @@ const Uo = /* @__PURE__ */ M1(Rt, [["render", Ot]]), It = { class: "w-full space
139
139
  }, I = (F) => {
140
140
  if (b.value) {
141
141
  let Y = F.clientX - c.value, o1 = F.clientY - H.value;
142
- const v1 = r1 / 2, A = r1 / 2, x = v1 - h.value / 2, K = v1 + h.value / 2, d1 = A - h.value / 2, V1 = A + h.value / 2, L1 = T.value * v.value, k1 = z.value * v.value;
143
- Y = Math.min(Y, x), Y = Math.max(Y, K - L1), o1 = Math.min(o1, d1), o1 = Math.max(o1, V1 - k1), y.value = Y, S.value = o1;
142
+ const v1 = r1 / 2, A = r1 / 2, x = v1 - h.value / 2, q = v1 + h.value / 2, d1 = A - h.value / 2, V1 = A + h.value / 2, L1 = T.value * v.value, k1 = z.value * v.value;
143
+ Y = Math.min(Y, x), Y = Math.max(Y, q - L1), o1 = Math.min(o1, d1), o1 = Math.max(o1, V1 - k1), y.value = Y, S.value = o1;
144
144
  }
145
145
  }, G = () => {
146
146
  b.value = !1, window.removeEventListener("mousemove", I), window.removeEventListener("mouseup", G);
@@ -154,7 +154,7 @@ const Uo = /* @__PURE__ */ M1(Rt, [["render", Ot]]), It = { class: "w-full space
154
154
  if (!Y) return;
155
155
  const o1 = 512;
156
156
  F.width = o1, F.height = o1;
157
- const v1 = r1 / 2, A = r1 / 2, x = v1 - h.value / 2, K = A - h.value / 2, d1 = (x - y.value) / v.value, V1 = (K - S.value) / v.value, L1 = h.value / v.value;
157
+ const v1 = r1 / 2, A = r1 / 2, x = v1 - h.value / 2, q = A - h.value / 2, d1 = (x - y.value) / v.value, V1 = (q - S.value) / v.value, L1 = h.value / v.value;
158
158
  Y.fillStyle = "#ffffff", Y.fillRect(0, 0, o1, o1), e.cropShape === "circle" && (Y.save(), Y.beginPath(), Y.arc(o1 / 2, o1 / 2, o1 / 2, 0, Math.PI * 2), Y.closePath(), Y.clip()), Y.drawImage(
159
159
  C.value,
160
160
  d1,
@@ -322,7 +322,7 @@ const Uo = /* @__PURE__ */ M1(Rt, [["render", Ot]]), It = { class: "w-full space
322
322
  variant: "outlineSubtle",
323
323
  label: "Upload",
324
324
  icon: "photo",
325
- onClick: q
325
+ onClick: Q
326
326
  }, null, 8, ["disabled"]),
327
327
  u("div", e5, [
328
328
  w(p(E1), {
@@ -348,7 +348,7 @@ const Uo = /* @__PURE__ */ M1(Rt, [["render", Ot]]), It = { class: "w-full space
348
348
  label: {}
349
349
  },
350
350
  setup(n) {
351
- return (t, e) => (o(), i("div", t5, Q(t.label), 1));
351
+ return (t, e) => (o(), i("div", t5, K(t.label), 1));
352
352
  }
353
353
  }), l5 = {}, n5 = { class: "flex items-center gap-1 overflow-hidden" };
354
354
  function o5(n, t) {
@@ -651,7 +651,7 @@ const Me = {
651
651
  variant: "textSubtle",
652
652
  onClick: a[0] || (a[0] = (f) => l("move", { amount: -10, unit: p(X).YEAR }))
653
653
  }),
654
- u("div", i5, Q(s.value), 1),
654
+ u("div", i5, K(s.value), 1),
655
655
  w(p(j), {
656
656
  icon: "chevron-right",
657
657
  variant: "textSubtle",
@@ -697,7 +697,7 @@ const p5 = /* @__PURE__ */ $({
697
697
  "text-xs font-bold text-white": l.date.current && l.date.selected
698
698
  }]),
699
699
  onClick: s[0] || (s[0] = U((r) => e("click", l.date), ["stop"]))
700
- }, Q(l.date.label), 3));
700
+ }, K(l.date.label), 3));
701
701
  }
702
702
  }), f5 = { class: "w-56 grid grid-cols-7" }, c5 = { class: "col-span-3 h-8 flex items-center justify-center" }, C5 = { class: "w-56 grid grid-cols-7 bg-bg-medium rounded my-2" }, v5 = { class: "w-56 grid grid-cols-7" }, h5 = /* @__PURE__ */ $({
703
703
  __name: "MonthView",
@@ -749,7 +749,7 @@ const p5 = /* @__PURE__ */ $({
749
749
  (o(!0), i(M, null, m1(l.weekdays, (r) => (o(), i("div", {
750
750
  key: r,
751
751
  class: "flex items-center justify-center w-8 h-6 text-muted text-xs select-none"
752
- }, Q(r.slice(0, 1).toUpperCase()), 1))), 128))
752
+ }, K(r.slice(0, 1).toUpperCase()), 1))), 128))
753
753
  ]),
754
754
  u("main", v5, [
755
755
  (o(!0), i(M, null, m1(l.viewData, (r) => {
@@ -779,7 +779,7 @@ const p5 = /* @__PURE__ */ $({
779
779
  variant: "textSubtle",
780
780
  onClick: s[0] || (s[0] = (r) => e("move", { amount: -1, unit: "YEAR" }))
781
781
  }),
782
- u("div", g5, Q(l.currentYear), 1),
782
+ u("div", g5, K(l.currentYear), 1),
783
783
  w(p(j), {
784
784
  icon: "chevron-right",
785
785
  variant: "textSubtle",
@@ -1272,7 +1272,7 @@ const $5 = (n = null, t) => {
1272
1272
  "hover:underline": !l.disabled,
1273
1273
  "text-tertiary": l.disabled
1274
1274
  }])
1275
- }, Q(l.label), 3)) : k("", !0)
1275
+ }, K(l.label), 3)) : k("", !0)
1276
1276
  ], 2));
1277
1277
  }
1278
1278
  }), x5 = { class: "w-full" }, Y5 = { class: "flex items-center w-full h-10" }, W5 = {
@@ -2335,7 +2335,7 @@ const l4 = /* @__PURE__ */ M1(_5, [["render", el]]), tl = {
2335
2335
  w(p(me), null, {
2336
2336
  header: Z(() => [
2337
2337
  u("header", E2, [
2338
- f.title ? (o(), i("h4", O2, Q(f.title), 1)) : (o(), i("h4", I2, [
2338
+ f.title ? (o(), i("h4", O2, K(f.title), 1)) : (o(), i("h4", I2, [
2339
2339
  R(f.$slots, "title", { close: r })
2340
2340
  ])),
2341
2341
  f.closeable ? (o(), V(p(j), {
@@ -2416,8 +2416,8 @@ const l4 = /* @__PURE__ */ M1(_5, [["render", el]]), tl = {
2416
2416
  }]),
2417
2417
  onClick: e[1] || (e[1] = (l) => t.$emit("click"))
2418
2418
  }, [
2419
- u("span", N2, Q(t.label), 1),
2420
- t.active && t.count ? (o(), i("span", F2, Q(t.count), 1)) : k("", !0),
2419
+ u("span", N2, K(t.label), 1),
2420
+ t.active && t.count ? (o(), i("span", F2, K(t.count), 1)) : k("", !0),
2421
2421
  t.deletable && t.active ? (o(), V(p(R2), {
2422
2422
  key: 1,
2423
2423
  onClick: e[0] || (e[0] = (l) => t.$emit("delete"))
@@ -3053,7 +3053,7 @@ const N1 = /* @__PURE__ */ M1(_2, [["render", tn]]), ln = {
3053
3053
  name: "header",
3054
3054
  fn: Z(() => [
3055
3055
  l.title ? (o(), i("header", ln, [
3056
- u("h4", null, Q(l.title), 1),
3056
+ u("h4", null, K(l.title), 1),
3057
3057
  h.closeable ? (o(), V(p(j), {
3058
3058
  key: 0,
3059
3059
  icon: "close",
@@ -3166,7 +3166,7 @@ const N1 = /* @__PURE__ */ M1(_2, [["render", tn]]), ln = {
3166
3166
  }, {
3167
3167
  default: Z(() => [
3168
3168
  w(p(l1), { name: l.value }, null, 8, ["name"]),
3169
- u("span", dn, Q(s.text), 1)
3169
+ u("span", dn, K(s.text), 1)
3170
3170
  ]),
3171
3171
  _: 1
3172
3172
  }, 8, ["class"]),
@@ -3210,7 +3210,7 @@ const N1 = /* @__PURE__ */ M1(_2, [["render", tn]]), ln = {
3210
3210
  },
3211
3211
  emits: ["change"],
3212
3212
  setup(n, { emit: t }) {
3213
- const e = t, l = L(), s = O(() => a5(0, n.lastPage).map((h) => ({ label: `${h + 1}` }))), r = O(() => n.borders ? { borderRadius: "8px 0 0 8px" } : void 0), a = O(() => n.borders ? { borderRadius: "0px 8px 8px 0px" } : void 0), f = O(() => n.borders ? { borderRadius: "0" } : void 0), C = O(() => n.borders ? "outlineSubtle" : "textSubtle"), m = (h) => {
3213
+ const e = t, l = L(), s = O(() => a5(0, n.lastPage).map((h) => ({ id: `${h + 1}`, label: `${h + 1}` }))), r = O(() => n.borders ? { borderRadius: "8px 0 0 8px" } : void 0), a = O(() => n.borders ? { borderRadius: "0px 8px 8px 0px" } : void 0), f = O(() => n.borders ? { borderRadius: "0" } : void 0), C = O(() => n.borders ? "outlineSubtle" : "textSubtle"), m = (h) => {
3214
3214
  let b = n.currentPage + h;
3215
3215
  b > n.lastPage && (b = 1), b < 1 && (b = n.lastPage), e("change", b);
3216
3216
  }, d = (h) => {
@@ -3481,7 +3481,7 @@ const N1 = /* @__PURE__ */ M1(_2, [["render", tn]]), ln = {
3481
3481
  l.disabled || (y.clear(), z());
3482
3482
  }, W = async () => {
3483
3483
  z.clear(), y();
3484
- }, q = (E) => {
3484
+ }, Q = (E) => {
3485
3485
  l.trigger === "click" && (E.preventDefault(), E.stopPropagation(), f1());
3486
3486
  }, s1 = (E) => {
3487
3487
  C.value && m.value && H([C.value, m.value, ...E]);
@@ -3510,7 +3510,7 @@ const N1 = /* @__PURE__ */ M1(_2, [["render", tn]]), ln = {
3510
3510
  ref: m,
3511
3511
  class: D(l.triggerClass),
3512
3512
  onMouseover: I[0] || (I[0] = (G) => l.trigger === "hover" && S()),
3513
- onClick: q,
3513
+ onClick: Q,
3514
3514
  onFocus: I[1] || (I[1] = (G) => l.trigger === "focus" && S()),
3515
3515
  onKeyup: I[2] || (I[2] = _((G) => W(), ["esc"]))
3516
3516
  }, [
@@ -3680,8 +3680,8 @@ const W1 = /* @__PURE__ */ M1(Cn, [["render", hn]]), mn = {
3680
3680
  }])
3681
3681
  }, [
3682
3682
  d.title || d.description ? (o(), i("section", bn, [
3683
- u("h5", null, Q(d.title), 1),
3684
- u("p", Ln, Q(d.description), 1)
3683
+ u("h5", null, K(d.title), 1),
3684
+ u("p", Ln, K(d.description), 1)
3685
3685
  ])) : k("", !0),
3686
3686
  w(p(E1), {
3687
3687
  vertical: !(d.title || d.description),
@@ -3717,31 +3717,30 @@ var b1 = /* @__PURE__ */ ((n) => (n.ERROR = "error", n.IDLE = "idle", n.LOADING
3717
3717
  const Vn = ["onKeydown"], kn = /* @__PURE__ */ $({
3718
3718
  __name: "option",
3719
3719
  props: {
3720
- label: {},
3721
- disabled: { type: Boolean, default: !1 },
3720
+ option: {},
3722
3721
  hoveredOption: {},
3723
3722
  selected: { type: Boolean, default: !1 }
3724
3723
  },
3725
3724
  emits: ["click", "focus", "hover"],
3726
3725
  setup(n, { emit: t }) {
3727
- const e = n, l = t, s = L(), r = O(() => e.hoveredOption && e.hoveredOption.label === e.label), a = () => {
3728
- e.disabled || l("click");
3726
+ const e = n, l = t, s = L(), r = O(() => e.hoveredOption && e.hoveredOption.label === e.option.label), a = () => {
3727
+ e.option.disabled || l("click");
3729
3728
  };
3730
3729
  return (f, C) => (o(), i("div", {
3731
3730
  ref_key: "root",
3732
3731
  ref: s,
3733
3732
  tabindex: "0",
3734
3733
  class: D(["flex items-center justify-between w-full h-8 px-3 space-x-2 text-sm focus:outline-hidden", {
3735
- "cursor-not-allowed text-muted ": f.disabled,
3736
- "cursor-pointer text-primary hover:bg-secondary focus:bg-secondary active:bg-tertiary": !f.disabled && !f.selected,
3734
+ "cursor-not-allowed text-muted ": f.option.disabled,
3735
+ "cursor-pointer text-primary hover:bg-secondary focus:bg-secondary active:bg-tertiary": !f.option.disabled && !f.selected,
3737
3736
  "cursor-pointer text-light-blue font-medium hover:bg-secondary focus:bg-secondary active:bg-tertiary": f.selected,
3738
3737
  "bg-secondary": r.value,
3739
3738
  "bg-primary": !r.value
3740
3739
  }]),
3741
3740
  onClick: a,
3742
3741
  onKeydown: _(U(a, ["prevent"]), ["enter"]),
3743
- onMouseover: C[0] || (C[0] = (m) => l("hover", f.label)),
3744
- onFocus: C[1] || (C[1] = (m) => l("focus", f.label))
3742
+ onMouseover: C[0] || (C[0] = (m) => l("hover", f.option.id)),
3743
+ onFocus: C[1] || (C[1] = (m) => l("focus", f.option.id))
3745
3744
  }, [
3746
3745
  R(f.$slots, "default")
3747
3746
  ], 42, Vn));
@@ -3816,7 +3815,7 @@ const Vn = ["onKeydown"], kn = /* @__PURE__ */ $({
3816
3815
  },
3817
3816
  emits: ["close", "save-custom", "select"],
3818
3817
  setup(n, { expose: t, emit: e }) {
3819
- const l = n, s = e, r = R1(), a = L(null), f = L([]), C = L(""), m = L(), d = L(), h = L(), b = L(), c = L(), H = L(), v = L(l.resultFilters || []), g = L(l.resultFilters ? l.resultFilters[0] : null), { nextFrame: T } = Ce(), z = O(() => l.selected ? Array.isArray(l.selected) ? l.selected : [l.selected] : []), y = O(() => f.value.every((A) => A.disabled)), S = O(() => !C.value.length && !f.value.length), W = O(() => C.value.length && !f.value.length), q = O(() => {
3818
+ const l = n, s = e, r = R1(), a = L(null), f = L([]), C = L(""), m = L(), d = L(), h = L(), b = L(), c = L(), H = L(), v = L(l.resultFilters || []), g = L(l.resultFilters ? l.resultFilters[0] : null), { nextFrame: T } = Ce(), z = O(() => l.selected ? Array.isArray(l.selected) ? l.selected : [l.selected] : []), y = O(() => f.value.every((A) => A.disabled)), S = O(() => !C.value.length && !f.value.length), W = O(() => C.value.length && !f.value.length), Q = O(() => {
3820
3819
  if (d.value) return b1.ERROR;
3821
3820
  if (l.loading) return b1.LOADING;
3822
3821
  if (W.value && !l.loading) return b1.NO_MATCH;
@@ -3847,19 +3846,19 @@ const Vn = ["onKeydown"], kn = /* @__PURE__ */ $({
3847
3846
  const x = A.target.value;
3848
3847
  a.value = null, l.filterable ? N(x) : l.remoteMethod && await l.remoteMethod(x);
3849
3848
  }, l.debounceMs), g1 = (A) => {
3850
- a.value = f.value.find((x) => x.label === A) || null;
3849
+ a.value = f.value.find((x) => x.id === A) || null;
3851
3850
  }, F = (A) => {
3852
3851
  if (!b.value.length) return;
3853
- const x = b.value[f.value.findIndex((K) => K.label === A.label)].$el;
3852
+ const x = b.value[f.value.findIndex((q) => q.label === A.label)].$el;
3854
3853
  if (H.value && x) {
3855
- const K = H.value.$el.querySelector(".scrollbar__wrap");
3856
- K && (st(K, x), H.value.handleScroll());
3854
+ const q = H.value.$el.querySelector(".scrollbar__wrap");
3855
+ q && (st(q, x), H.value.handleScroll());
3857
3856
  }
3858
3857
  }, Y = async (A) => {
3859
3858
  if (f.value.length === 0) return;
3860
- let x = f.value.findIndex((K) => {
3859
+ let x = f.value.findIndex((q) => {
3861
3860
  var d1;
3862
- return K.label === ((d1 = a.value) == null ? void 0 : d1.label);
3861
+ return q.label === ((d1 = a.value) == null ? void 0 : d1.label);
3863
3862
  });
3864
3863
  y.value || (A === "next" ? (x++, x === f.value.length && (x = 0)) : A === "prev" && (x--, x < 0 && (x = f.value.length - 1)), a.value = f.value[x], a.value.disabled === !0 && Y(A), await D1(), a.value && F(a.value));
3865
3864
  }, o1 = () => {
@@ -3881,10 +3880,10 @@ const Vn = ["onKeydown"], kn = /* @__PURE__ */ $({
3881
3880
  onClose: G,
3882
3881
  onOpen: I
3883
3882
  }, {
3884
- default: Z((K) => [
3883
+ default: Z((q) => [
3885
3884
  R(A.$slots, "trigger", {
3886
3885
  disabled: A.disabled,
3887
- visible: K && K.visible
3886
+ visible: q && q.visible
3888
3887
  })
3889
3888
  ]),
3890
3889
  content: Z(() => [
@@ -3903,17 +3902,17 @@ const Vn = ["onKeydown"], kn = /* @__PURE__ */ $({
3903
3902
  x1(u("input", {
3904
3903
  ref_key: "inputRef",
3905
3904
  ref: h,
3906
- "onUpdate:modelValue": x[0] || (x[0] = (K) => C.value = K),
3905
+ "onUpdate:modelValue": x[0] || (x[0] = (q) => C.value = q),
3907
3906
  type: "text",
3908
3907
  class: "w-full h-8 text-sm leading-none bg-primary rounded-tr-lg focus:outline-hidden",
3909
3908
  placeholder: A.placeholder,
3910
3909
  onClick: x[1] || (x[1] = U(() => {
3911
3910
  }, ["stop", "prevent"])),
3912
3911
  onInput: x[2] || (x[2] = //@ts-ignore
3913
- (...K) => p(S1) && p(S1)(...K)),
3912
+ (...q) => p(S1) && p(S1)(...q)),
3914
3913
  onKeydown: [
3915
- x[3] || (x[3] = _(U((K) => Y("next"), ["prevent"]), ["down"])),
3916
- x[4] || (x[4] = _(U((K) => Y("prev"), ["prevent"]), ["up"])),
3914
+ x[3] || (x[3] = _(U((q) => Y("next"), ["prevent"]), ["down"])),
3915
+ x[4] || (x[4] = _(U((q) => Y("prev"), ["prevent"]), ["up"])),
3917
3916
  _(U(o1, ["prevent"]), ["enter"]),
3918
3917
  _(U(G, ["stop", "prevent"]), ["esc"])
3919
3918
  ]
@@ -3936,58 +3935,57 @@ const Vn = ["onKeydown"], kn = /* @__PURE__ */ $({
3936
3935
  class: "flex-1 bg-primary h-full"
3937
3936
  }, [
3938
3937
  R(A.$slots, "error")
3939
- ], 512)) : q.value === p(b1).LOADING ? (o(), i("div", Bn, [
3938
+ ], 512)) : Q.value === p(b1).LOADING ? (o(), i("div", Bn, [
3940
3939
  u("div", Sn, [
3941
3940
  w(p(N1), { class: "w-4 h-4 text-granite-grey" }),
3942
- u("span", Tn, Q(A.loadingText), 1)
3941
+ u("span", Tn, K(A.loadingText), 1)
3943
3942
  ])
3944
- ])) : q.value === p(b1).NO_MATCH ? (o(), i("div", zn, [
3943
+ ])) : Q.value === p(b1).NO_MATCH ? (o(), i("div", zn, [
3945
3944
  u("div", An, [
3946
3945
  x[5] || (x[5] = u("div", { class: "w-4 h-4 text-center leading-none" }, " ... ", -1)),
3947
- u("span", Rn, Q(A.noMatchText), 1)
3946
+ u("span", Rn, K(A.noMatchText), 1)
3948
3947
  ])
3949
- ])) : q.value === p(b1).IDLE ? (o(), i("div", En, [
3948
+ ])) : Q.value === p(b1).IDLE ? (o(), i("div", En, [
3950
3949
  u("div", On, [
3951
3950
  w(p(l1), { name: A.emptyStateIcon }, null, 8, ["name"]),
3952
- u("span", In, Q(A.emptyStateText), 1)
3951
+ u("span", In, K(A.emptyStateText), 1)
3953
3952
  ]),
3954
3953
  x[6] || (x[6] = u("div", { class: "h-8 w-full bg-primary" }, null, -1))
3955
- ])) : q.value === p(b1).MATCH ? (o(), V(p(q1), {
3954
+ ])) : Q.value === p(b1).MATCH ? (o(), V(p(q1), {
3956
3955
  key: 5,
3957
3956
  ref_key: "scrollbarRef",
3958
3957
  ref: H
3959
3958
  }, {
3960
3959
  default: Z(() => [
3961
3960
  u("div", Pn, [
3962
- (o(!0), i(M, null, m1(f.value, (K) => (o(), V(kn, {
3961
+ (o(!0), i(M, null, m1(f.value, (q) => (o(), V(kn, {
3963
3962
  ref_for: !0,
3964
3963
  ref_key: "optionsRef",
3965
3964
  ref: b,
3966
- key: K.id || K.label,
3967
- disabled: K.disabled,
3968
- label: K.label,
3965
+ key: q.id,
3966
+ option: q,
3969
3967
  "hovered-option": a.value,
3970
- selected: z.value.includes(K),
3968
+ selected: z.value.includes(q),
3971
3969
  onFocus: g1,
3972
3970
  onHover: g1,
3973
- onClick: (d1) => P(K)
3971
+ onClick: (d1) => P(q)
3974
3972
  }, {
3975
3973
  default: Z(() => [
3976
3974
  u("div", Nn, [
3977
- K.icon ? (o(), V(p(l1), {
3975
+ q.icon ? (o(), V(p(l1), {
3978
3976
  key: 0,
3979
- name: K.icon
3977
+ name: q.icon
3980
3978
  }, null, 8, ["name"])) : k("", !0),
3981
3979
  w(p(it), {
3982
3980
  "background-color": "yellow",
3983
- value: K.label,
3981
+ value: q.label,
3984
3982
  highlight: C.value
3985
3983
  }, null, 8, ["value", "highlight"])
3986
3984
  ]),
3987
- K.meta ? (o(), i("div", Fn, Q(K.meta), 1)) : k("", !0)
3985
+ q.meta ? (o(), i("div", Fn, K(q.meta), 1)) : k("", !0)
3988
3986
  ]),
3989
3987
  _: 2
3990
- }, 1032, ["disabled", "label", "hovered-option", "selected", "onClick"]))), 128))
3988
+ }, 1032, ["option", "hovered-option", "selected", "onClick"]))), 128))
3991
3989
  ])
3992
3990
  ]),
3993
3991
  _: 1
@@ -4069,10 +4067,10 @@ const Vn = ["onKeydown"], kn = /* @__PURE__ */ $({
4069
4067
  if (!T) return;
4070
4068
  const z = s.value.getBoundingClientRect();
4071
4069
  if (z) {
4072
- const y = ((z[f.direction] || 0) - (g[f.client] || 0)) * -1, S = r.value && typeof r.value[f.offset] == "number" ? r.value[f.offset] - T : 0, W = s.value ? Number(s.value[f.offset]) : 0, q = W ? (y - S) * 100 / W : 0;
4070
+ const y = ((z[f.direction] || 0) - (g[f.client] || 0)) * -1, S = r.value && typeof r.value[f.offset] == "number" ? r.value[f.offset] - T : 0, W = s.value ? Number(s.value[f.offset]) : 0, Q = W ? (y - S) * 100 / W : 0;
4073
4071
  l("update", {
4074
4072
  scrollReference: f.scroll,
4075
- positionPercentage: q,
4073
+ positionPercentage: Q,
4076
4074
  scrollSize: f.scrollSize
4077
4075
  });
4078
4076
  }
@@ -4088,7 +4086,7 @@ const Vn = ["onKeydown"], kn = /* @__PURE__ */ $({
4088
4086
  }, c = (g) => {
4089
4087
  const T = g.target.getBoundingClientRect();
4090
4088
  if (T) {
4091
- const z = T[f.direction], y = g[f.client], S = Math.abs((z ? Number(z) : 0) - (y ? Number(y) : 0)), W = r.value[f.offset] / 2, q = s.value ? Number(s.value[f.offset]) : 0, s1 = q ? (S - W) * 100 / q : 0;
4089
+ const z = T[f.direction], y = g[f.client], S = Math.abs((z ? Number(z) : 0) - (y ? Number(y) : 0)), W = r.value[f.offset] / 2, Q = s.value ? Number(s.value[f.offset]) : 0, s1 = Q ? (S - W) * 100 / Q : 0;
4092
4090
  l("update", {
4093
4091
  scrollReference: f.scroll,
4094
4092
  positionPercentage: s1,
@@ -4273,7 +4271,7 @@ const Vn = ["onKeydown"], kn = /* @__PURE__ */ $({
4273
4271
  key: 0,
4274
4272
  name: l.segment.icon
4275
4273
  }, null, 8, ["name"])) : k("", !0),
4276
- l.segment.label ? (o(), i("p", jn, Q(l.segment.label), 1)) : k("", !0)
4274
+ l.segment.label ? (o(), i("p", jn, K(l.segment.label), 1)) : k("", !0)
4277
4275
  ], 2));
4278
4276
  }
4279
4277
  }), L4 = /* @__PURE__ */ $({
@@ -4311,7 +4309,7 @@ const Vn = ["onKeydown"], kn = /* @__PURE__ */ $({
4311
4309
  key: 0,
4312
4310
  style: t1({ top: t.small ? "-0.55rem" : "-0.63rem" }),
4313
4311
  class: D(["absolute bg-primary px-2 font-medium text-tertiary", { "text-[10px]": t.small, "text-xs": !t.small }])
4314
- }, Q(t.label), 7)) : k("", !0),
4312
+ }, K(t.label), 7)) : k("", !0),
4315
4313
  R(t.$slots, "default")
4316
4314
  ], 2));
4317
4315
  }
@@ -4382,7 +4380,7 @@ const Vn = ["onKeydown"], kn = /* @__PURE__ */ $({
4382
4380
  "text-secondary": !a.option.disabled,
4383
4381
  "text-tertiary": a.option.disabled
4384
4382
  }])
4385
- }, Q(a.option.suffix), 3)) : k("", !0),
4383
+ }, K(a.option.suffix), 3)) : k("", !0),
4386
4384
  a.variant === "deletable" ? (o(), V(p(j), {
4387
4385
  key: 1,
4388
4386
  small: "",
@@ -4414,7 +4412,7 @@ const Vn = ["onKeydown"], kn = /* @__PURE__ */ $({
4414
4412
  "text-alert": t.variant === "error",
4415
4413
  "text-primary": t.variant === "loading"
4416
4414
  }])
4417
- }, Q(t.status), 3)
4415
+ }, K(t.status), 3)
4418
4416
  ]));
4419
4417
  }
4420
4418
  }), _n = /* @__PURE__ */ $({
@@ -4609,10 +4607,10 @@ const Vn = ["onKeydown"], kn = /* @__PURE__ */ $({
4609
4607
  const l = n, s = e, { nextFrame: r } = Ce(), a = L(null), f = L([]), C = L(""), m = L(), d = L(), h = L(), b = L(), c = L(), H = L(l.filters ? l.filters[0] : null), v = L(!1), g = L(!1), T = L(""), z = (B) => {
4610
4608
  if (!Array.isArray(B)) throw new Error("Item passed must be an Array");
4611
4609
  return B.length === 0 ? !1 : "options" in B[0];
4612
- }, y = O(() => z(l.options)), S = O(() => y.value ? l.options.flatMap((B) => B.options) : l.options), W = O(() => l.loading ? "loading" : l.errorMessage ? "error" : C.value.length && !f.value.length ? "no match" : f.value.length ? "match" : "idle"), q = O(() => l.selected && "length" in l.selected), s1 = O(() => l.selected ? q.value ? l.selected.length : 1 : 0), f1 = O(() => l.selected ? H.value ? l.selected.length >= S.value.filter(H.value.execute).length : q.value ? l.selected.length === S.value.length : !1 : !1), E = O(() => l.selected ? q.value ? !l.selected.length : !l.selected : !0);
4610
+ }, y = O(() => z(l.options)), S = O(() => y.value ? l.options.flatMap((B) => B.options) : l.options), W = O(() => l.loading ? "loading" : l.errorMessage ? "error" : C.value.length && !f.value.length ? "no match" : f.value.length ? "match" : "idle"), Q = O(() => l.selected && "length" in l.selected), s1 = O(() => l.selected ? Q.value ? l.selected.length : 1 : 0), f1 = O(() => l.selected ? H.value ? l.selected.length >= S.value.filter(H.value.execute).length : Q.value ? l.selected.length === S.value.length : !1 : !1), E = O(() => l.selected ? Q.value ? !l.selected.length : !l.selected : !0);
4613
4611
  i1(() => l.selected, (B) => {
4614
4612
  B && v.value && r(() => {
4615
- if (h.value.update(), q.value && s1.value) {
4613
+ if (h.value.update(), Q.value && s1.value) {
4616
4614
  const J = b.value[b.value.length - 1].$el, p1 = c.value.$el.querySelector(".scrollbar__wrap");
4617
4615
  p1 && (st(p1, J), c.value.handleScroll());
4618
4616
  }
@@ -4620,21 +4618,21 @@ const Vn = ["onKeydown"], kn = /* @__PURE__ */ $({
4620
4618
  }), i1(() => l.options, (B) => {
4621
4619
  g1(B), a.value = null;
4622
4620
  }), A1(() => g1(l.options)), a1(() => {
4623
- !q.value && l.selectAll && console.warn("[SelectList] selectAll prop not allowed when SelectList is not isMultiselect. You need to pass an Array of selected options (or empty) if you want it to be isMultiselect."), r(() => {
4621
+ !Q.value && l.selectAll && console.warn("[SelectList] selectAll prop not allowed when SelectList is not isMultiselect. You need to pass an Array of selected options (or empty) if you want it to be isMultiselect."), r(() => {
4624
4622
  h.value && h.value.update(), m.value.addEventListener("keydown", I);
4625
4623
  });
4626
4624
  }), B1(() => m.value.removeEventListener("keydown", I));
4627
4625
  const I = (B) => {
4628
4626
  B.key === "Enter" ? P() : B.key === "Escape" ? s("escape") : B.key === "ArrowDown" ? A("next") : B.key === "ArrowUp" && A("prev");
4629
4627
  }, G = (B) => {
4630
- if (q.value) {
4628
+ if (Q.value) {
4631
4629
  const J = l.selected.map((p1) => p1.label).includes(B.label) ? [...l.selected.filter((p1) => p1.label !== B.label)] : [...l.selected, B];
4632
4630
  s("select", J);
4633
4631
  } else
4634
4632
  s("select", B);
4635
4633
  }, P = () => {
4636
4634
  a.value ? G(a.value) : C.value.length && s("selectQuery", C.value);
4637
- }, N = (B) => l.selected ? q.value ? l.selected.some((J) => J[l.identifier] === B[l.identifier]) : B[l.identifier] === l.selected[l.identifier] : !1, n1 = async (B) => {
4635
+ }, N = (B) => l.selected ? Q.value ? l.selected.some((J) => J[l.identifier] === B[l.identifier]) : B[l.identifier] === l.selected[l.identifier] : !1, n1 = async (B) => {
4638
4636
  C.value = B, a.value = null, l.searchFunction && await l.searchFunction(B);
4639
4637
  }, S1 = l.searchDebounce ? ne(n1, l.searchDebounce) : n1, g1 = (B) => {
4640
4638
  var J;
@@ -4654,7 +4652,7 @@ const Vn = ["onKeydown"], kn = /* @__PURE__ */ $({
4654
4652
  }, F = (B) => {
4655
4653
  H.value = B, g1(l.options);
4656
4654
  }, Y = () => {
4657
- if (!q.value) throw new Error('[SelectList@onToggleAll] method should not be called when "isMultiselect=false"');
4655
+ if (!Q.value) throw new Error('[SelectList@onToggleAll] method should not be called when "isMultiselect=false"');
4658
4656
  s1.value === 0 || s1.value && !f1.value ? s("select", H.value ? S.value.filter(H.value.execute) : S.value) : s("select", []);
4659
4657
  }, o1 = (B) => a.value = S.value.find((J) => J[l.identifier] === B[l.identifier]) || null, v1 = O(() => {
4660
4658
  const B = Array.isArray(f.value) && f.value.length > 0 && "options" in f.value[0] ? f.value.flatMap((J) => J.options) : f.value;
@@ -4670,7 +4668,7 @@ const Vn = ["onKeydown"], kn = /* @__PURE__ */ $({
4670
4668
  if (!d.value.children.length) return;
4671
4669
  const J = null;
4672
4670
  h.value;
4673
- }, K = () => {
4671
+ }, q = () => {
4674
4672
  v.value = !v.value, c.value.update();
4675
4673
  }, d1 = O(() => v.value && g.value ? T.value : "border-transparent"), V1 = (B) => {
4676
4674
  B.hit ? B.edge === "bottom" && B.hit ? T.value = "border-b-transparent border-t-outline-subtle shadow-scroll-top" : B.edge === "top" && B.hit && (T.value = "border-t-transparent border-b-outline-subtle shadow-scroll-bottom") : T.value = "border-y-outline-subtle shadow-scroll-y";
@@ -4679,7 +4677,7 @@ const Vn = ["onKeydown"], kn = /* @__PURE__ */ $({
4679
4677
  };
4680
4678
  return t({
4681
4679
  // focusSearch,
4682
- isMultiselect: q,
4680
+ isMultiselect: Q,
4683
4681
  reset: () => {
4684
4682
  C.value = "", l.searchFunction ? l.searchFunction("") : g1([]), H.value = l.filters ? l.filters[0] : null;
4685
4683
  },
@@ -4726,7 +4724,7 @@ const Vn = ["onKeydown"], kn = /* @__PURE__ */ $({
4726
4724
  checked: f1.value,
4727
4725
  onClick: Y
4728
4726
  }, null, 8, ["indeterminate", "checked"]),
4729
- u("span", a0, Q(B.selectAllLabel), 1)
4727
+ u("span", a0, K(B.selectAllLabel), 1)
4730
4728
  ])) : k("", !0)
4731
4729
  ])) : k("", !0),
4732
4730
  u("main", r0, [
@@ -4771,7 +4769,7 @@ const Vn = ["onKeydown"], kn = /* @__PURE__ */ $({
4771
4769
  class: "-ml-4",
4772
4770
  label: `${v.value ? "Hide" : "Show"} selected items (${s1.value})`,
4773
4771
  "trailing-icon": v.value ? "chevron-down" : "chevron-up",
4774
- onClick: K
4772
+ onClick: q
4775
4773
  }, null, 8, ["label", "trailing-icon"])
4776
4774
  ]),
4777
4775
  w(p(q1), {
@@ -4786,7 +4784,7 @@ const Vn = ["onKeydown"], kn = /* @__PURE__ */ $({
4786
4784
  }, {
4787
4785
  default: Z(() => [
4788
4786
  v.value ? (o(), i(M, { key: 0 }, [
4789
- E.value ? (o(), i("span", u0, Q(B.nothingSelectedLabel), 1)) : k("", !0),
4787
+ E.value ? (o(), i("span", u0, K(B.nothingSelectedLabel), 1)) : k("", !0),
4790
4788
  J[1] || (J[1] = u("section", { class: "w-full px-4 flex flex-wrap items-center gap-2" }, null, -1))
4791
4789
  ], 64)) : k("", !0)
4792
4790
  ]),
@@ -4887,7 +4885,7 @@ const Vn = ["onKeydown"], kn = /* @__PURE__ */ $({
4887
4885
  name: "header",
4888
4886
  fn: Z(() => [
4889
4887
  d.title ? (o(), i("header", f0, [
4890
- u("h4", null, Q(d.title), 1),
4888
+ u("h4", null, K(d.title), 1),
4891
4889
  d.closeable ? (o(), V(p(j), {
4892
4890
  key: 0,
4893
4891
  small: "",
@@ -5009,7 +5007,7 @@ const Vn = ["onKeydown"], kn = /* @__PURE__ */ $({
5009
5007
  name: a.icon
5010
5008
  }, null, 8, ["name"])) : k("", !0),
5011
5009
  u("span", h0, [
5012
- Ee(Q(a.name) + " ", 1),
5010
+ Ee(K(a.name) + " ", 1),
5013
5011
  a.notification ? (o(), i("div", m0, [
5014
5012
  w(p(_e))
5015
5013
  ])) : k("", !0)
@@ -5040,7 +5038,7 @@ const Vn = ["onKeydown"], kn = /* @__PURE__ */ $({
5040
5038
  key: 0,
5041
5039
  name: l.icon
5042
5040
  }, null, 8, ["name"])) : k("", !0),
5043
- u("span", g0, Q(l.label), 1)
5041
+ u("span", g0, K(l.label), 1)
5044
5042
  ]),
5045
5043
  _: 1
5046
5044
  }),
@@ -5089,7 +5087,7 @@ const Vn = ["onKeydown"], kn = /* @__PURE__ */ $({
5089
5087
  key: 0,
5090
5088
  class: D(["z-50 min-w-0 px-2 py-1 rounded-md text-sm shadow-sm-md", [e.bgColorClass, e.textColorClass]])
5091
5089
  }, [
5092
- u("span", null, Q(e.text), 1),
5090
+ u("span", null, K(e.text), 1),
5093
5091
  R(s.$slots, "content")
5094
5092
  ], 2)) : k("", !0)
5095
5093
  ]),
@@ -5121,7 +5119,7 @@ const Vn = ["onKeydown"], kn = /* @__PURE__ */ $({
5121
5119
  onKeyup: _(l, ["delete"])
5122
5120
  }, {
5123
5121
  default: Z(() => [
5124
- u("div", b0, Q(s.entry.value), 1),
5122
+ u("div", b0, K(s.entry.value), 1),
5125
5123
  u("button", {
5126
5124
  class: "group cursor-pointer w-4 h-4 rounded hover:bg-secondary active:bg-tertiary",
5127
5125
  onClick: l
@@ -5232,7 +5230,7 @@ const Vn = ["onKeydown"], kn = /* @__PURE__ */ $({
5232
5230
  key: 0,
5233
5231
  name: l.icon
5234
5232
  }, null, 8, ["name"])) : k("", !0),
5235
- l.label ? (o(), i("span", H0, Q(l.label), 1)) : k("", !0)
5233
+ l.label ? (o(), i("span", H0, K(l.label), 1)) : k("", !0)
5236
5234
  ]),
5237
5235
  _: 1
5238
5236
  }, 8, ["class"])
@@ -5371,13 +5369,13 @@ const B0 = { class: "space-y-1" }, S0 = { class: "space-y-1" }, A4 = /* @__PURE_
5371
5369
  return !m.value || !a.value ? !1 : ((y = m.value) == null ? void 0 : y.trim().length) > 0 && ((S = a.value) == null ? void 0 : S.trim().length) > 0;
5372
5370
  }), H = L(!1), v = ([y, S]) => {
5373
5371
  var G, P;
5374
- const { state: W, view: q } = e.editor, { empty: s1, from: f1 } = W.selection, I = W.doc.resolve(f1).marks().find((N) => N.type.name === "link");
5372
+ const { state: W, view: Q } = e.editor, { empty: s1, from: f1 } = W.selection, I = W.doc.resolve(f1).marks().find((N) => N.type.name === "link");
5375
5373
  if (I)
5376
5374
  m.value = I.attrs.href;
5377
5375
  else if (s1)
5378
5376
  a.value = M0(e.editor) || "", H.value = !0;
5379
5377
  else {
5380
- const { from: N, to: n1 } = q.state.selection;
5378
+ const { from: N, to: n1 } = Q.state.selection;
5381
5379
  a.value = W.doc.textBetween(N, n1, "");
5382
5380
  }
5383
5381
  a.value.trim().length ? (G = d.value) == null || G.focus() : (P = r.value) == null || P.focus(), l("updateTargets", [S]);
@@ -5448,7 +5446,7 @@ const B0 = { class: "space-y-1" }, S0 = { class: "space-y-1" }, A4 = /* @__PURE_
5448
5446
  "confirm-label": "Insert",
5449
5447
  "confirm-disabled": !c.value,
5450
5448
  onConfirm: z,
5451
- onCancel: (q) => {
5449
+ onCancel: (Q) => {
5452
5450
  T(), W();
5453
5451
  }
5454
5452
  }, null, 8, ["confirm-disabled", "onCancel"])
@@ -5667,11 +5665,11 @@ const B0 = { class: "space-y-1" }, S0 = { class: "space-y-1" }, A4 = /* @__PURE_
5667
5665
  }, z = () => {
5668
5666
  var P;
5669
5667
  (P = b.value) == null || P.commands.blur(), a.value = !1;
5670
- }, y = () => C.value = !1, S = () => a.value = !0, W = () => C.value = !1, q = (P) => {
5668
+ }, y = () => C.value = !1, S = () => a.value = !0, W = () => C.value = !1, Q = (P) => {
5671
5669
  var N;
5672
5670
  return (N = b.value) == null ? void 0 : N.commands.insertContent(P);
5673
5671
  }, s1 = (P) => {
5674
- q(P), f.value = !1;
5672
+ Q(P), f.value = !1;
5675
5673
  }, f1 = () => C.value = !0, E = () => f.value = !0;
5676
5674
  return t({ blur: z, closeInsert: () => f.value = !1, focus: T, setContent: (P) => {
5677
5675
  var N;
@@ -5704,7 +5702,7 @@ const B0 = { class: "space-y-1" }, S0 = { class: "space-y-1" }, A4 = /* @__PURE_
5704
5702
  key: 0,
5705
5703
  name: P.headerIcon
5706
5704
  }, null, 8, ["name"])) : k("", !0),
5707
- P.headerLabel ? (o(), i("span", P0, Q(P.headerLabel), 1)) : k("", !0)
5705
+ P.headerLabel ? (o(), i("span", P0, K(P.headerLabel), 1)) : k("", !0)
5708
5706
  ]),
5709
5707
  _: 1
5710
5708
  }, 8, ["class"])) : k("", !0),
@@ -5929,7 +5927,7 @@ const B0 = { class: "space-y-1" }, S0 = { class: "space-y-1" }, A4 = /* @__PURE_
5929
5927
  }
5930
5928
  ), (r, a) => (o(), i("span", F0, [
5931
5929
  e.value.length === 0 ? (o(), i(M, { key: 0 }, [
5932
- Ee(Q(r.value), 1)
5930
+ Ee(K(r.value), 1)
5933
5931
  ], 64)) : (o(!0), i(M, { key: 1 }, m1(e.value, (f, C) => (o(), i(M, {
5934
5932
  key: `${f}_${C}`
5935
5933
  }, [
@@ -5943,7 +5941,7 @@ const B0 = { class: "space-y-1" }, S0 = { class: "space-y-1" }, A4 = /* @__PURE_
5943
5941
  l.value,
5944
5942
  r.textColorClass
5945
5943
  ]])
5946
- }, Q(f), 3)) : (o(), i("span", U0, Q(f), 1))
5944
+ }, K(f), 3)) : (o(), i("span", U0, K(f), 1))
5947
5945
  ], 64))), 128))
5948
5946
  ]));
5949
5947
  }
@@ -6112,7 +6110,7 @@ const O4 = /* @__PURE__ */ M1(x0, [["render", W0]]), I4 = /* @__PURE__ */ $({
6112
6110
  key: 0,
6113
6111
  name: d.icon
6114
6112
  }, null, 8, ["name"])) : k("", !0),
6115
- d.label ? (o(), i("div", K0, Q(d.label), 1)) : k("", !0)
6113
+ d.label ? (o(), i("div", K0, K(d.label), 1)) : k("", !0)
6116
6114
  ], 46, j0)
6117
6115
  ]),
6118
6116
  _: 1
@@ -6352,7 +6350,7 @@ const O4 = /* @__PURE__ */ M1(x0, [["render", W0]]), I4 = /* @__PURE__ */ $({
6352
6350
  name: v.node.open ? "chevron-down-small" : "chevron-right-small"
6353
6351
  }, null, 8, ["name"])
6354
6352
  ])) : (o(), i("div", eo)),
6355
- u("span", to, Q(v.node.label), 1)
6353
+ u("span", to, K(v.node.label), 1)
6356
6354
  ];
6357
6355
  }),
6358
6356
  _: 1
@@ -6789,8 +6787,8 @@ const O4 = /* @__PURE__ */ M1(x0, [["render", W0]]), I4 = /* @__PURE__ */ $({
6789
6787
  const v = (z) => {
6790
6788
  const { filters: y, sorting: S } = gt(z, n);
6791
6789
  b.value = S ? T(S) : e.default, m.value.forEach((W) => {
6792
- const q = y.find((s1) => s1.id === W.id);
6793
- q ? (W.operator = q.operator, W.value = q.value) : (W.operator = "=", W.value = null);
6790
+ const Q = y.find((s1) => s1.id === W.id);
6791
+ Q ? (W.operator = Q.operator, W.value = Q.value) : (W.operator = "=", W.value = null);
6794
6792
  });
6795
6793
  }, g = async () => {
6796
6794
  const z = fo(r.query, n);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@firstnoodle-ui/bui",
3
3
  "type": "module",
4
- "version": "0.0.68",
4
+ "version": "0.0.70",
5
5
  "private": false,
6
6
  "repository": {
7
7
  "type": "git",
@@ -93,6 +93,6 @@
93
93
  "test": "vitest",
94
94
  "test:ui": "vitest --ui",
95
95
  "test:run": "vitest run",
96
- "release:publish": "pnpm publish --access public --otp=943269 --no-git-checks"
96
+ "release:publish": "pnpm publish --access public --otp=706509 --no-git-checks"
97
97
  }
98
98
  }