@indielayer/ui 1.13.2 → 1.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/docs/pages/component/accordion/index.vue +1 -1
  2. package/docs/pages/component/button/index.vue +1 -1
  3. package/docs/pages/component/checkbox/index.vue +1 -1
  4. package/docs/pages/component/container/index.vue +1 -1
  5. package/docs/pages/component/drawer/index.vue +1 -1
  6. package/docs/pages/component/form/index.vue +1 -1
  7. package/docs/pages/component/formGroup/index.vue +1 -1
  8. package/docs/pages/component/icon/index.vue +1 -1
  9. package/docs/pages/component/notifications/index.vue +1 -1
  10. package/docs/pages/component/pagination/index.vue +1 -1
  11. package/docs/pages/component/popover/index.vue +1 -1
  12. package/docs/pages/component/progress/index.vue +1 -1
  13. package/docs/pages/component/scroll/index.vue +1 -1
  14. package/docs/pages/component/skeleton/index.vue +1 -1
  15. package/docs/pages/component/slider/index.vue +1 -1
  16. package/docs/pages/component/spacer/index.vue +1 -1
  17. package/docs/pages/component/spinner/index.vue +1 -1
  18. package/docs/pages/component/table/index.vue +7 -0
  19. package/docs/pages/component/table/selectable.vue +67 -0
  20. package/docs/pages/component/table/usage.vue +1 -4
  21. package/docs/pages/component/table/virtual.vue +3 -0
  22. package/docs/pages/component/tag/index.vue +1 -1
  23. package/docs/pages/component/textarea/index.vue +1 -1
  24. package/docs/pages/component/toggle/index.vue +1 -1
  25. package/docs/pages/component/upload/index.vue +1 -1
  26. package/docs/search/components.json +1 -1
  27. package/lib/components/button/theme/Button.base.theme.js +21 -21
  28. package/lib/components/radio/theme/Radio.base.theme.js +24 -24
  29. package/lib/components/select/Select.vue.js +121 -112
  30. package/lib/components/table/Table.vue.d.ts +62 -8
  31. package/lib/components/table/Table.vue.js +273 -219
  32. package/lib/components/table/TableHeader.vue.js +21 -21
  33. package/lib/components/table/TableRow.vue.d.ts +4 -0
  34. package/lib/components/table/TableRow.vue.js +3 -2
  35. package/lib/components/table/theme/TableRow.base.theme.js +3 -3
  36. package/lib/composables/useFocusTrap.d.ts +9 -4
  37. package/lib/composables/useFocusTrap.js +42 -27
  38. package/lib/index.js +1 -1
  39. package/lib/index.umd.js +4 -4
  40. package/lib/version.d.ts +1 -1
  41. package/lib/version.js +1 -1
  42. package/package.json +1 -1
  43. package/src/components/button/theme/Button.base.theme.ts +1 -1
  44. package/src/components/radio/theme/Radio.base.theme.ts +1 -1
  45. package/src/components/select/Select.vue +20 -5
  46. package/src/components/table/Table.vue +112 -15
  47. package/src/components/table/TableHeader.vue +1 -1
  48. package/src/components/table/TableRow.vue +1 -0
  49. package/src/components/table/theme/TableRow.base.theme.ts +2 -2
  50. package/src/composables/useFocusTrap.ts +73 -42
  51. package/src/version.ts +1 -1
@@ -5,48 +5,48 @@ const a = {
5
5
  return e.isInsideForm && !e.isInsideFormGroup && t.push("mb-5"), t;
6
6
  },
7
7
  circle: ({ props: e }) => {
8
- const t = ["rounded-full flex justify-center items-center shrink-0 border outline-offset-2 outline-slate-300 dark:outline-slate-500 group-focus:outline-1 group-focus:outline"];
8
+ const t = ["rounded-full flex justify-center items-center shrink-0 border outline-offset-2 outline-slate-300 dark:outline-slate-500 group-focus-visible:outline-1 group-focus-visible:outline"];
9
9
  return e.size === "lg" ? t.push("h-5 w-5") : e.size === "xl" ? t.push("h-6 w-6") : t.push("h-4 w-4"), t;
10
10
  },
11
11
  circleIcon: ({ props: e, data: t }) => {
12
- const r = [];
13
- return t.selected || r.push("opacity-0"), e.size === "sm" || e.size === "xs" ? r.push("h-2") : e.size === "lg" ? r.push("h-2.5") : e.size === "xl" ? r.push("h-3") : r.push("h-2"), r;
12
+ const s = [];
13
+ return t.selected || s.push("opacity-0"), e.size === "sm" || e.size === "xs" ? s.push("h-2") : e.size === "lg" ? s.push("h-2.5") : e.size === "xl" ? s.push("h-3") : s.push("h-2"), s;
14
14
  },
15
15
  label: ({ props: e, data: t }) => {
16
- let r = "text-secondary-800 dark:text-secondary-200 pl-2";
17
- return r += t.isInsideFormGroup ? " font-normal" : " font-medium", e.size === "xs" ? r += " text-xs" : e.size === "sm" ? r += " text-sm" : e.size === "lg" ? r += " text-lg" : e.size === "xl" && (r += " text-xl"), r;
16
+ let s = "text-secondary-800 dark:text-secondary-200 pl-2";
17
+ return s += t.isInsideFormGroup ? " font-normal" : " font-medium", e.size === "xs" ? s += " text-xs" : e.size === "sm" ? s += " text-sm" : e.size === "lg" ? s += " text-lg" : e.size === "xl" && (s += " text-xl"), s;
18
18
  },
19
19
  content: ({ props: e }) => {
20
20
  let t = "pl-2";
21
21
  return e.size === "xs" ? t += " text-xs" : e.size === "sm" ? t += " text-sm" : e.size === "lg" ? t += " text-lg" : e.size === "xl" && (t += " text-xl"), t;
22
22
  }
23
23
  },
24
- styles: ({ props: e, colors: t, css: r, data: n }) => {
25
- const s = t.getPalette("gray"), l = t.getPalette(e.color), i = [];
26
- return e.loading ? r.variables({
24
+ styles: ({ props: e, colors: t, css: s, data: n }) => {
25
+ const r = t.getPalette("gray"), l = t.getPalette(e.color), i = [];
26
+ return e.loading ? s.variables({
27
27
  bg: "transparent",
28
28
  border: "transparent",
29
29
  dark: {
30
30
  bg: "transparent",
31
31
  border: "transparent"
32
32
  }
33
- }) : (e.disabled ? n.selected ? i.push(r.variables({
33
+ }) : (e.disabled ? n.selected ? i.push(s.variables({
34
34
  bg: "transparent",
35
- border: s[200],
36
- circle: s[200],
35
+ border: r[200],
36
+ circle: r[200],
37
37
  dark: {
38
38
  bg: "transparent",
39
- border: s[700],
40
- circle: s[700]
39
+ border: r[700],
40
+ circle: r[700]
41
41
  }
42
- })) : i.push(r.variables({
43
- bg: s[200],
44
- border: s[200],
42
+ })) : i.push(s.variables({
43
+ bg: r[200],
44
+ border: r[200],
45
45
  dark: {
46
- bg: s[700],
47
- border: s[700]
46
+ bg: r[700],
47
+ border: r[700]
48
48
  }
49
- })) : (n.selected ? i.push(r.variables({
49
+ })) : (n.selected ? i.push(s.variables({
50
50
  bg: "transparent",
51
51
  border: l[500],
52
52
  circle: l[500],
@@ -55,14 +55,14 @@ const a = {
55
55
  border: l[500],
56
56
  circle: l[500]
57
57
  }
58
- })) : i.push(r.variables({
58
+ })) : i.push(s.variables({
59
59
  bg: "#fff",
60
- border: e.glow ? l[300] : s[300],
60
+ border: e.glow ? l[300] : r[300],
61
61
  dark: {
62
- bg: s[900],
63
- border: e.glow ? l[300] : s[400]
62
+ bg: r[900],
63
+ border: e.glow ? l[300] : r[400]
64
64
  }
65
- })), e.glow && i.push(r.get("glow", t.getColorOpacity(l[500], 0.5)))), i);
65
+ })), e.glow && i.push(s.get("glow", t.getColorOpacity(l[500], 0.5)))), i);
66
66
  }
67
67
  }, o = a;
68
68
  export {
@@ -1,4 +1,4 @@
1
- import { defineComponent as Me, mergeModels as ve, computed as R, ref as b, useModel as Pe, watch as M, nextTick as Z, unref as r, onUnmounted as Fe, openBlock as s, createBlock as L, mergeProps as U, toHandlers as ce, withCtx as m, createElementVNode as P, createElementBlock as n, normalizeClass as k, Fragment as w, createTextVNode as T, toDisplayString as g, createVNode as B, renderSlot as O, createCommentVNode as x, renderList as j, createSlots as Ee, normalizeStyle as He, withModifiers as We, withDirectives as qe, vModelSelect as Ue } from "vue";
1
+ import { defineComponent as Me, mergeModels as ve, computed as A, ref as b, useModel as Pe, watch as M, nextTick as Z, unref as s, onUnmounted as Fe, openBlock as r, createBlock as L, mergeProps as U, toHandlers as ce, withCtx as m, createElementVNode as P, createElementBlock as u, normalizeClass as k, Fragment as w, createTextVNode as T, toDisplayString as g, createVNode as B, renderSlot as O, createCommentVNode as R, renderList as j, createSlots as Ee, normalizeStyle as He, withModifiers as We, withDirectives as qe, vModelSelect as Ue } from "vue";
2
2
  import { useEventListener as je, useResizeObserver as Xe } from "../../node_modules/.pnpm/@vueuse_core@11.1.0_vue@3.5.10_typescript@5.2.2_/node_modules/@vueuse/core/index.js";
3
3
  import { useColors as Ke } from "../../composables/useColors.js";
4
4
  import { useCommon as he } from "../../composables/useCommon.js";
@@ -18,10 +18,10 @@ import be from "../popover/PopoverContainer.vue.js";
18
18
  import tl from "../inputFooter/InputFooter.vue.js";
19
19
  import al from "../input/Input.vue.js";
20
20
  import { useThrottleFn as il } from "../../node_modules/.pnpm/@vueuse_shared@11.1.0_vue@3.5.10_typescript@5.2.2_/node_modules/@vueuse/shared/index.js";
21
- const ol = { class: "relative" }, sl = {
21
+ const ol = { class: "relative" }, rl = {
22
22
  key: 0,
23
23
  class: "text-secondary-400 dark:text-secondary-500"
24
- }, rl = { key: 1 }, nl = {
24
+ }, sl = { key: 1 }, nl = {
25
25
  key: 0,
26
26
  class: "text-secondary-400 dark:text-secondary-500"
27
27
  }, ul = { key: 1 }, dl = {
@@ -70,16 +70,16 @@ const ol = { class: "relative" }, sl = {
70
70
  }),
71
71
  emits: /* @__PURE__ */ ve([..._.emits(), "close"], ["update:filter"]),
72
72
  setup(ee, { expose: ge, emit: Ce }) {
73
- const i = ee, S = Ce, v = R(() => i.multiple || i.multipleCheckbox), X = b(null), K = b(null), F = b(null), C = b(null), G = b(null), d = b(), I = Pe(ee, "filter"), E = b(null), $ = R(() => i.disabled || i.loading || i.readonly), we = R(() => !i.loading && !i.readonly && !i.disabled && i.clearable && !J(o.value)), o = R({
73
+ const i = ee, S = Ce, c = A(() => i.multiple || i.multipleCheckbox), X = b(null), K = b(null), F = b(null), C = b(null), G = b(null), d = b(), I = Pe(ee, "filter"), E = b(null), $ = A(() => i.disabled || i.loading || i.readonly), we = A(() => !i.loading && !i.readonly && !i.disabled && i.clearable && !J(o.value)), o = A({
74
74
  get() {
75
- return v.value ? i.modelValue ? Array.isArray(i.modelValue) ? i.modelValue : [i.modelValue] : [] : i.modelValue;
75
+ return c.value ? i.modelValue ? Array.isArray(i.modelValue) ? i.modelValue : [i.modelValue] : [] : i.modelValue;
76
76
  },
77
77
  set(e) {
78
78
  S("update:modelValue", e);
79
79
  }
80
- }), c = R(() => !i.options || i.options.length === 0 ? [] : i.options.filter((e) => I.value === "" || e.label.toLowerCase().includes(I.value.toLowerCase())).map((e) => {
80
+ }), h = A(() => !i.options || i.options.length === 0 ? [] : i.options.filter((e) => I.value === "" || e.label.toLowerCase().includes(I.value.toLowerCase())).map((e) => {
81
81
  let t = !1;
82
- return v.value && Array.isArray(o.value) ? t = o.value.includes(e.value) : t = e.value === o.value, {
82
+ return c.value && Array.isArray(o.value) ? t = o.value.includes(e.value) : t = e.value === o.value, {
83
83
  value: e.value,
84
84
  label: e.label,
85
85
  active: t,
@@ -90,8 +90,8 @@ const ol = { class: "relative" }, sl = {
90
90
  keepOpenOnClick: e.keepOpenOnClick,
91
91
  onClick: () => ie(e.value)
92
92
  };
93
- })), le = R(() => c.value.filter((e) => !e.disabled)), { list: te, scrollTo: Oe, containerProps: $e, wrapperProps: Re } = Je(
94
- c,
93
+ })), le = A(() => h.value.filter((e) => !e.disabled)), { list: te, scrollTo: Oe, containerProps: $e, wrapperProps: Ae } = Je(
94
+ h,
95
95
  {
96
96
  disabled: !i.virtualList,
97
97
  itemHeight: i.virtualListItemHeight,
@@ -99,28 +99,28 @@ const ol = { class: "relative" }, sl = {
99
99
  bottomOffset: i.virtualListOffsetBottom || 0,
100
100
  overscan: i.virtualListOverscan
101
101
  }
102
- ), V = R(() => {
102
+ ), V = A(() => {
103
103
  var e;
104
104
  return (e = C.value) == null ? void 0 : e.isOpen;
105
105
  });
106
106
  M(I, (e) => {
107
107
  e && (d.value = void 0, H(-1));
108
108
  }), M(V, (e) => {
109
- e ? (xe(), (v.value || typeof d.value > "u") && H(-1), setTimeout(() => {
109
+ e ? (Re(), (c.value || typeof d.value > "u") && H(-1), setTimeout(() => {
110
110
  requestAnimationFrame(() => {
111
111
  var t;
112
112
  ae(d.value || 0), i.filterable && ((t = E.value) == null || t.focus());
113
113
  });
114
114
  }, 50)) : (i.filterable && (I.value = ""), S("close"));
115
115
  });
116
- function xe() {
117
- if (v.value) {
116
+ function Re() {
117
+ if (c.value) {
118
118
  if (Array.isArray(o.value) && o.value.length > 0) {
119
- const e = c.value.findIndex((t) => t.value === o.value[0]);
119
+ const e = h.value.findIndex((t) => t.value === o.value[0]);
120
120
  e !== -1 && (d.value = e);
121
121
  }
122
122
  } else {
123
- const e = c.value.findIndex((t) => t.value === o.value);
123
+ const e = h.value.findIndex((t) => t.value === o.value);
124
124
  e !== -1 && (d.value = e);
125
125
  }
126
126
  }
@@ -136,16 +136,25 @@ const ol = { class: "relative" }, sl = {
136
136
  d.value = void 0;
137
137
  return;
138
138
  }
139
- if (typeof e > "u" && (e = t === "down" ? -1 : 1), t === "down") {
140
- let l = e + 1;
141
- for (l > c.value.length - 1 && (l = 0); c.value[l].disabled; )
142
- ++l > c.value.length - 1 && (l = 0);
143
- d.value = l;
139
+ typeof e > "u" && (e = t === "down" ? -1 : 1);
140
+ const l = h.value.length;
141
+ let a = 0;
142
+ if (t === "down") {
143
+ let n = e + 1;
144
+ for (n > l - 1 && (n = 0); h.value[n].disabled; )
145
+ if (++n > l - 1 && (n = 0), ++a >= l) {
146
+ d.value = void 0;
147
+ return;
148
+ }
149
+ d.value = n;
144
150
  } else {
145
- let l = e - 1;
146
- for (l < 0 && (l = c.value.length - 1); c.value[l].disabled; )
147
- --l < 0 && (l = c.value.length - 1);
148
- d.value = l;
151
+ let n = e - 1;
152
+ for (n < 0 && (n = l - 1); h.value[n].disabled; )
153
+ if (--n < 0 && (n = l - 1), ++a >= l) {
154
+ d.value = void 0;
155
+ return;
156
+ }
157
+ d.value = n;
149
158
  }
150
159
  }
151
160
  function ie(e) {
@@ -155,7 +164,7 @@ const ol = { class: "relative" }, sl = {
155
164
  if (t.onClick)
156
165
  t.onClick();
157
166
  else {
158
- if (v.value) {
167
+ if (c.value) {
159
168
  if (Array.isArray(o.value)) {
160
169
  const a = o.value.indexOf(e);
161
170
  a !== -1 ? o.value.splice(a, 1) : o.value.push(e);
@@ -177,7 +186,7 @@ const ol = { class: "relative" }, sl = {
177
186
  return !!(typeof e > "u" || e === null || e === "" || Array.isArray(e) && e.length === 0 || !Array.isArray(e) && typeof e == "object" && Object.keys(e).length === 0);
178
187
  }
179
188
  function oe(e, t) {
180
- if (e.stopPropagation(), $.value)
189
+ if (e.stopPropagation(), $.value || !Array.isArray(o.value))
181
190
  return;
182
191
  const l = o.value.indexOf(t);
183
192
  l !== -1 && (o.value.splice(l, 1), S("update:modelValue", o.value));
@@ -187,8 +196,8 @@ const ol = { class: "relative" }, sl = {
187
196
  const t = (l = i.options) == null ? void 0 : l.find((a) => a.value === e);
188
197
  return t ? t.label : "";
189
198
  }
190
- const { focus: se, blur: Ae } = ke(X), {
191
- errorInternal: re,
199
+ const { focus: re, blur: xe } = ke(X), {
200
+ errorInternal: se,
192
201
  hideFooterInternal: Le,
193
202
  inputListeners: ne,
194
203
  reset: Q,
@@ -196,24 +205,24 @@ const ol = { class: "relative" }, sl = {
196
205
  setError: Ie,
197
206
  isFocused: Ve,
198
207
  isInsideForm: Te
199
- } = _(i, { focus: se, emit: S, withListeners: !0 }), Be = R(() => {
200
- const { focus: e, blur: t } = r(ne);
208
+ } = _(i, { focus: re, emit: S, withListeners: !0 }), Be = A(() => {
209
+ const { focus: e, blur: t } = s(ne);
201
210
  return {
202
211
  focus: e,
203
212
  blur: t
204
213
  };
205
214
  });
206
- let A = null;
215
+ let x = null;
207
216
  M([Ve, V], ([e, t]) => {
208
- e || t ? A || (A = je(document, "keydown", Se)) : A && (A(), A = null);
217
+ e || t ? x || (x = je(document, "keydown", Se)) : x && (x(), x = null);
209
218
  }, {
210
219
  immediate: !0
211
220
  }), Fe(() => {
212
- A && A();
221
+ x && x();
213
222
  });
214
223
  function Se(e) {
215
- var t, l, a, h, p;
216
- if (c.value.length !== 0)
224
+ var t, l, a, n, p;
225
+ if (h.value.length !== 0)
217
226
  if (e.code === "ArrowDown") {
218
227
  if (e.preventDefault(), !V.value) {
219
228
  (t = C.value) == null || t.show();
@@ -233,18 +242,18 @@ const ol = { class: "relative" }, sl = {
233
242
  (a = C.value) == null || a.show();
234
243
  return;
235
244
  }
236
- if (typeof d.value < "u" && c.value[d.value]) {
237
- const f = c.value[d.value];
238
- ie(f.value), !f.keepOpenOnClick && (!v.value || i.multipleCheckbox) && ((h = C.value) == null || h.hide());
245
+ if (typeof d.value < "u" && h.value[d.value]) {
246
+ const v = h.value[d.value];
247
+ ie(v.value), !v.keepOpenOnClick && (!c.value || i.multipleCheckbox) && ((n = C.value) == null || n.hide());
239
248
  }
240
249
  } else
241
250
  e.code === "Tab" && V.value && (e.preventDefault(), (p = C.value) == null || p.hide(), i.native || Z(() => {
242
- var f;
243
- (f = K.value) == null || f.$el.focus();
251
+ var v;
252
+ (v = K.value) == null || v.$el.focus();
244
253
  }));
245
254
  }
246
255
  const N = b(null), de = b(null), W = b(!1), q = b(0), fe = il(() => {
247
- v.value && i.truncate && Z(() => {
256
+ c.value && i.truncate && Z(() => {
248
257
  const e = ze();
249
258
  e < o.value.length ? (W.value = !0, q.value = o.value.length - e) : (W.value = !1, q.value = 0);
250
259
  });
@@ -257,48 +266,48 @@ const ol = { class: "relative" }, sl = {
257
266
  return 0;
258
267
  const e = N.value.querySelectorAll(".x-tag"), t = Array.from(e);
259
268
  let l = 0, a = 1;
260
- const h = N.value.offsetWidth - 30;
269
+ const n = N.value.offsetWidth - 30;
261
270
  for (let p = 0; p < t.length; p++) {
262
- const f = t[p];
263
- f.style.display = "flex", l += f.offsetWidth, p > 0 && (l < h ? a++ : f.style.display = "none");
271
+ const v = t[p];
272
+ v.style.display = "flex", l += v.offsetWidth, p > 0 && (l < n ? a++ : v.style.display = "none");
264
273
  }
265
274
  return a;
266
275
  }
267
276
  M(o, (e) => {
268
277
  fe();
269
278
  }, { immediate: !0, deep: !0 });
270
- const { styles: Ne, classes: y, className: De } = Ge("Select", {}, i, { errorInternal: re });
271
- return ge({ focus: se, blur: Ae, reset: Q, validate: ue, setError: Ie, filterRef: E }), (e, t) => (s(), L(_e, U({
279
+ const { styles: Ne, classes: y, className: De } = Ge("Select", {}, i, { errorInternal: se });
280
+ return ge({ focus: re, blur: xe, reset: Q, validate: ue, setError: Ie, filterRef: E }), (e, t) => (r(), L(_e, U({
272
281
  ref_key: "labelRef",
273
282
  ref: K,
274
283
  tabindex: "0",
275
284
  class: ["group", [
276
- r(De),
277
- r(y).wrapper
285
+ s(De),
286
+ s(y).wrapper
278
287
  ]],
279
- style: r(Ne),
288
+ style: s(Ne),
280
289
  disabled: $.value,
281
290
  required: e.required,
282
- "is-inside-form": r(Te),
291
+ "is-inside-form": s(Te),
283
292
  label: e.label,
284
293
  tooltip: e.tooltip
285
294
  }, ce(Be.value)), {
286
295
  default: m(() => [
287
296
  P("div", ol, [
288
- e.native && !v.value ? (s(), n("div", {
297
+ e.native && !c.value ? (r(), u("div", {
289
298
  key: 0,
290
- class: k(r(y).box),
299
+ class: k(s(y).box),
291
300
  onClick: t[0] || (t[0] = (l) => {
292
301
  var a;
293
302
  return (a = X.value) == null ? void 0 : a.click();
294
303
  })
295
304
  }, [
296
- J(o.value) ? (s(), n(w, { key: 1 }, [
297
- e.placeholder ? (s(), n("div", sl, g(e.placeholder), 1)) : (s(), n("div", rl, " "))
298
- ], 64)) : (s(), n(w, { key: 0 }, [
305
+ J(o.value) ? (r(), u(w, { key: 1 }, [
306
+ e.placeholder ? (r(), u("div", rl, g(e.placeholder), 1)) : (r(), u("div", sl, " "))
307
+ ], 64)) : (r(), u(w, { key: 0 }, [
299
308
  T(g(z(o.value)), 1)
300
309
  ], 64))
301
- ], 2)) : (s(), n(w, { key: 1 }, [
310
+ ], 2)) : (r(), u(w, { key: 1 }, [
302
311
  B(ye, {
303
312
  ref_key: "popoverRef",
304
313
  ref: C,
@@ -307,13 +316,13 @@ const ol = { class: "relative" }, sl = {
307
316
  }, {
308
317
  content: m(() => [
309
318
  B(be, {
310
- class: k(r(y).content)
319
+ class: k(s(y).content)
311
320
  }, {
312
321
  default: m(() => [
313
322
  O(e.$slots, "content-header", {}, () => [
314
- e.filterable ? (s(), n("div", {
323
+ e.filterable ? (r(), u("div", {
315
324
  key: 0,
316
- class: k(r(y).search)
325
+ class: k(s(y).search)
317
326
  }, [
318
327
  B(al, {
319
328
  ref_key: "filterRef",
@@ -325,13 +334,13 @@ const ol = { class: "relative" }, sl = {
325
334
  "data-1p-ignore": "",
326
335
  size: "sm"
327
336
  }, null, 8, ["modelValue", "placeholder"])
328
- ], 2)) : x("", !0)
337
+ ], 2)) : R("", !0)
329
338
  ]),
330
- P("div", U(r($e), {
331
- class: r(y).contentBody
339
+ P("div", U(s($e), {
340
+ class: s(y).contentBody
332
341
  }), [
333
- P("div", U(r(Re), { class: "space-y-0.5" }), [
334
- (s(!0), n(w, null, j(r(te), (l) => (s(), L(el, {
342
+ P("div", U(s(Ae), { class: "space-y-0.5" }), [
343
+ (r(!0), u(w, null, j(s(te), (l) => (r(), L(el, {
335
344
  key: l.index,
336
345
  ref_for: !0,
337
346
  ref_key: "itemsRef",
@@ -345,7 +354,7 @@ const ol = { class: "relative" }, sl = {
345
354
  filled: "",
346
355
  onClick: () => {
347
356
  var a;
348
- return !l.data.keepOpenOnClick && (!v.value || e.multipleCheckbox) && ((a = C.value) == null ? void 0 : a.hide());
357
+ return !l.data.keepOpenOnClick && (!c.value || e.multipleCheckbox) && ((a = C.value) == null ? void 0 : a.hide());
349
358
  }
350
359
  }, Ee({
351
360
  default: m(() => [
@@ -379,7 +388,7 @@ const ol = { class: "relative" }, sl = {
379
388
  } : void 0
380
389
  ]), 1032, ["item", "size", "disabled", "selected", "checkbox", "color", "onClick"]))), 128))
381
390
  ], 16),
382
- r(te).length === 0 ? (s(), n("div", dl, " No options ")) : x("", !0)
391
+ s(te).length === 0 ? (r(), u("div", dl, " No options ")) : R("", !0)
383
392
  ], 16),
384
393
  O(e.$slots, "content-footer")
385
394
  ]),
@@ -394,9 +403,9 @@ const ol = { class: "relative" }, sl = {
394
403
  label: z(o.value)
395
404
  }, () => [
396
405
  P("div", {
397
- class: k([r(y).box])
406
+ class: k([s(y).box])
398
407
  }, [
399
- v.value && Array.isArray(o.value) && o.value.length > 0 ? (s(), n("div", {
408
+ c.value && Array.isArray(o.value) && o.value.length > 0 ? (r(), u("div", {
400
409
  key: 0,
401
410
  ref_key: "tagsRef",
402
411
  ref: N,
@@ -405,24 +414,24 @@ const ol = { class: "relative" }, sl = {
405
414
  "overflow-hidden": e.truncate
406
415
  }])
407
416
  }, [
408
- (s(!0), n(w, null, j(o.value, (l, a) => {
409
- var h, p, f, D;
410
- return s(), L(pe, {
417
+ (r(!0), u(w, null, j(o.value, (l, a) => {
418
+ var n, p, v, D;
419
+ return r(), L(pe, {
411
420
  key: l,
412
421
  size: "xs",
413
422
  removable: "",
414
- outlined: !($.value || (p = (h = e.options) == null ? void 0 : h.find((u) => u.value === l)) != null && p.disabled),
415
- disabled: $.value || ((D = (f = e.options) == null ? void 0 : f.find((u) => u.value === l)) == null ? void 0 : D.disabled),
423
+ outlined: !($.value || (p = (n = e.options) == null ? void 0 : n.find((f) => f.value === l)) != null && p.disabled),
424
+ disabled: $.value || ((D = (v = e.options) == null ? void 0 : v.find((f) => f.value === l)) == null ? void 0 : D.disabled),
416
425
  style: He({ "max-width": a === 0 && G.value ? `calc(100% - ${G.value.offsetWidth + 6 + "px"})` : void 0 }),
417
- onRemove: (u) => {
418
- oe(u, l);
426
+ onRemove: (f) => {
427
+ oe(f, l);
419
428
  }
420
429
  }, {
421
430
  prefix: m(() => {
422
- var u;
431
+ var f;
423
432
  return [
424
433
  O(e.$slots, "tag-prefix", {
425
- item: (u = e.options) == null ? void 0 : u.find((Y) => Y.value === l)
434
+ item: (f = e.options) == null ? void 0 : f.find((Y) => Y.value === l)
426
435
  })
427
436
  ];
428
437
  }),
@@ -432,27 +441,27 @@ const ol = { class: "relative" }, sl = {
432
441
  _: 2
433
442
  }, 1032, ["outlined", "disabled", "style", "onRemove"]);
434
443
  }), 128)),
435
- W.value ? (s(), n("div", {
444
+ W.value ? (r(), u("div", {
436
445
  key: 0,
437
446
  ref_key: "hiddenTagsCounterRef",
438
447
  ref: G,
439
- class: k(r(y).truncateCounter),
448
+ class: k(s(y).truncateCounter),
440
449
  onClick: t[1] || (t[1] = We((l) => {
441
450
  var a;
442
451
  return (a = de.value) == null ? void 0 : a.toggle();
443
452
  }, ["stop"]))
444
- }, "+" + g(q.value), 3)) : x("", !0)
445
- ], 2)) : !v.value && !J(o.value) ? (s(), n(w, { key: 1 }, [
453
+ }, "+" + g(q.value), 3)) : R("", !0)
454
+ ], 2)) : !c.value && !J(o.value) ? (r(), u(w, { key: 1 }, [
446
455
  T(g(z(o.value)), 1)
447
- ], 64)) : (s(), n(w, { key: 2 }, [
448
- e.placeholder ? (s(), n("div", nl, g(e.placeholder), 1)) : (s(), n("div", ul, " "))
456
+ ], 64)) : (r(), u(w, { key: 2 }, [
457
+ e.placeholder ? (r(), u("div", nl, g(e.placeholder), 1)) : (r(), u("div", ul, " "))
449
458
  ], 64))
450
459
  ], 2)
451
460
  ])
452
461
  ]),
453
462
  _: 3
454
463
  }, 8, ["disabled", "placement"]),
455
- v.value && e.truncate && W.value ? (s(), L(ye, {
464
+ c.value && e.truncate && W.value ? (r(), L(ye, {
456
465
  key: 0,
457
466
  ref_key: "multipleHiddenRef",
458
467
  ref: de,
@@ -466,23 +475,23 @@ const ol = { class: "relative" }, sl = {
466
475
  default: m(() => {
467
476
  var l;
468
477
  return [
469
- (s(!0), n(w, null, j((l = o.value) == null ? void 0 : l.slice(o.value.length - q.value), (a) => {
470
- var h, p, f, D;
471
- return s(), L(pe, {
478
+ (r(!0), u(w, null, j((l = o.value) == null ? void 0 : l.slice(o.value.length - q.value), (a) => {
479
+ var n, p, v, D;
480
+ return r(), L(pe, {
472
481
  key: a,
473
482
  size: "xs",
474
483
  removable: "",
475
- outlined: !($.value || (p = (h = e.options) == null ? void 0 : h.find((u) => u.value === a)) != null && p.disabled),
476
- disabled: $.value || ((D = (f = e.options) == null ? void 0 : f.find((u) => u.value === a)) == null ? void 0 : D.disabled),
477
- onRemove: (u) => {
478
- oe(u, a);
484
+ outlined: !($.value || (p = (n = e.options) == null ? void 0 : n.find((f) => f.value === a)) != null && p.disabled),
485
+ disabled: $.value || ((D = (v = e.options) == null ? void 0 : v.find((f) => f.value === a)) == null ? void 0 : D.disabled),
486
+ onRemove: (f) => {
487
+ oe(f, a);
479
488
  }
480
489
  }, {
481
490
  prefix: m(() => {
482
- var u;
491
+ var f;
483
492
  return [
484
493
  O(e.$slots, "tag-prefix", {
485
- item: (u = e.options) == null ? void 0 : u.find((Y) => Y.value === a)
494
+ item: (f = e.options) == null ? void 0 : f.find((Y) => Y.value === a)
486
495
  })
487
496
  ];
488
497
  }),
@@ -498,7 +507,7 @@ const ol = { class: "relative" }, sl = {
498
507
  })
499
508
  ]),
500
509
  _: 3
501
- }, 512)) : x("", !0)
510
+ }, 512)) : R("", !0)
502
511
  ], 64)),
503
512
  qe(P("select", U({
504
513
  id: e.id,
@@ -506,51 +515,51 @@ const ol = { class: "relative" }, sl = {
506
515
  ref: X,
507
516
  "onUpdate:modelValue": t[3] || (t[3] = (l) => o.value = l),
508
517
  tabindex: "-1",
509
- class: e.native && !v.value ? "absolute inset-0 w-full h-full cursor-pointer opacity-0" : "hidden",
518
+ class: e.native && !c.value ? "absolute inset-0 w-full h-full cursor-pointer opacity-0" : "hidden",
510
519
  name: e.name,
511
520
  disabled: e.disabled || e.loading,
512
- multiple: v.value,
521
+ multiple: c.value,
513
522
  readonly: e.readonly
514
- }, ce(r(ne), !0)), [
515
- e.native ? (s(!0), n(w, { key: 0 }, j(e.options, (l, a) => (s(), n("option", {
523
+ }, ce(s(ne), !0)), [
524
+ e.native ? (r(!0), u(w, { key: 0 }, j(e.options, (l, a) => (r(), u("option", {
516
525
  key: a,
517
526
  value: l.value,
518
527
  disabled: l.disabled
519
- }, g(l.label), 9, vl))), 128)) : x("", !0)
528
+ }, g(l.label), 9, vl))), 128)) : R("", !0)
520
529
  ], 16, fl), [
521
530
  [Ue, o.value]
522
531
  ]),
523
- we.value ? (s(), n("button", {
532
+ we.value ? (r(), u("button", {
524
533
  key: 2,
525
534
  type: "button",
526
535
  "aria-label": "Clean value",
527
- class: k(r(y).clearButton),
536
+ class: k(s(y).clearButton),
528
537
  onClick: t[4] || (t[4] = //@ts-ignore
529
- (...l) => r(Q) && r(Q)(...l))
538
+ (...l) => s(Q) && s(Q)(...l))
530
539
  }, [
531
540
  B(me, {
532
- icon: r(Ye),
533
- class: k([r(y).icon, "cursor-pointer"])
541
+ icon: s(Ye),
542
+ class: k([s(y).icon, "cursor-pointer"])
534
543
  }, null, 8, ["icon", "class"])
535
- ], 2)) : x("", !0),
536
- e.$slots.input ? x("", !0) : (s(), n("div", {
544
+ ], 2)) : R("", !0),
545
+ e.$slots.input ? R("", !0) : (r(), u("div", {
537
546
  key: 3,
538
- class: k(r(y).iconWrapper)
547
+ class: k(s(y).iconWrapper)
539
548
  }, [
540
- e.loading ? (s(), L(ll, {
549
+ e.loading ? (r(), L(ll, {
541
550
  key: 0,
542
551
  size: e.size
543
552
  }, null, 8, ["size"])) : O(e.$slots, "icon", { key: 1 }, () => [
544
553
  B(me, {
545
- icon: r(Ze),
546
- class: k(r(y).icon)
554
+ icon: s(Ze),
555
+ class: k(s(y).icon)
547
556
  }, null, 8, ["icon", "class"])
548
557
  ])
549
558
  ], 2))
550
559
  ]),
551
- r(Le) ? x("", !0) : (s(), L(tl, {
560
+ s(Le) ? R("", !0) : (r(), L(tl, {
552
561
  key: 0,
553
- error: r(re),
562
+ error: s(se),
554
563
  helper: e.helper
555
564
  }, null, 8, ["error", "helper"]))
556
565
  ]),