@indielayer/ui 1.17.0 → 1.18.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/README.md +2 -2
  2. package/docs/assets/css/tailwind.css +6 -0
  3. package/docs/components/common/CodePreview.vue +14 -9
  4. package/docs/components/common/DocsFeatures.vue +41 -0
  5. package/docs/components/common/DocsHero.vue +216 -0
  6. package/docs/components/common/DocumentPage.vue +99 -112
  7. package/docs/components/common/ExampleBlocks.vue +157 -0
  8. package/docs/components/toolbar/Toolbar.vue +11 -2
  9. package/docs/components/toolbar/ToolbarColorToggle.vue +5 -5
  10. package/docs/components/toolbar/ToolbarSearch.vue +59 -62
  11. package/docs/composables/useDocMeta.ts +47 -0
  12. package/docs/icons.ts +28 -0
  13. package/docs/layouts/default.vue +1 -3
  14. package/docs/layouts/simple.vue +3 -1
  15. package/docs/main.ts +5 -0
  16. package/docs/pages/colors.vue +56 -47
  17. package/docs/pages/component/select/multiple.vue +2 -2
  18. package/docs/pages/component/select/size.vue +1 -1
  19. package/docs/pages/component/select/usage.vue +14 -7
  20. package/docs/pages/error.vue +5 -3
  21. package/docs/pages/icons.vue +64 -54
  22. package/docs/pages/index.vue +93 -82
  23. package/docs/pages/typography.vue +38 -28
  24. package/docs/router/index.ts +31 -3
  25. package/docs/search/components.json +1 -1
  26. package/docs/search/index.json +1 -0
  27. package/lib/components/container/theme/Container.base.theme.js +1 -1
  28. package/lib/components/divider/theme/Divider.base.theme.js +1 -1
  29. package/lib/components/input/Input.vue.js +23 -24
  30. package/lib/components/select/Select.vue.d.ts +27 -373
  31. package/lib/components/select/Select.vue.js +458 -344
  32. package/lib/index.js +1 -1
  33. package/lib/index.umd.js +4 -4
  34. package/lib/version.d.ts +1 -1
  35. package/lib/version.js +1 -1
  36. package/lib/virtual/components/virtualList/VirtualList.vue.js +33 -31
  37. package/lib/virtual/components/virtualList/useDynamicRowHeight.js +18 -19
  38. package/package.json +8 -3
  39. package/src/components/container/theme/Container.base.theme.ts +1 -1
  40. package/src/components/divider/theme/Divider.base.theme.ts +1 -1
  41. package/src/components/input/Input.vue +1 -2
  42. package/src/components/select/Select.vue +118 -20
  43. package/src/version.ts +1 -1
  44. package/src/virtual/components/virtualList/VirtualList.test.ts +143 -26
  45. package/src/virtual/components/virtualList/VirtualList.vue +12 -18
  46. package/src/virtual/components/virtualList/useDynamicRowHeight.test.ts +22 -8
  47. package/src/virtual/components/virtualList/useDynamicRowHeight.ts +4 -2
  48. package/src/virtual/utils/parseNumericStyleValue.ts +2 -0
@@ -1,37 +1,64 @@
1
- import { defineComponent as Fe, mergeModels as ce, computed as w, ref as b, useModel as Pe, watch as D, nextTick as Z, unref as n, onUnmounted as Ee, openBlock as s, createBlock as x, mergeProps as U, toHandlers as ve, withCtx as m, createElementVNode as F, createElementBlock as f, normalizeClass as k, Fragment as O, createTextVNode as B, toDisplayString as g, createVNode as z, renderSlot as $, createCommentVNode as L, renderList as j, createSlots as He, normalizeStyle as We, withModifiers as qe, withDirectives as Ue, vModelSelect as je } from "vue";
2
- import { useEventListener as Xe, useResizeObserver as Ke } from "../../node_modules/.pnpm/@vueuse_core@11.1.0_vue@3.5.10_typescript@5.2.2_/node_modules/@vueuse/core/index.js";
3
- import { useColors as Ge } from "../../composables/useColors.js";
4
- import { useCommon as he } from "../../composables/useCommon.js";
5
- import { useInputtable as _ } from "../../composables/useInputtable.js";
6
- import { useInteractive as ke } from "../../composables/useInteractive.js";
7
- import { useTheme as Je } from "../../composables/useTheme.js";
8
- import { useVirtualList as Qe } from "../../composables/useVirtualList.js";
9
- import { checkIcon as Ye, closeIcon as Ze, selectIcon as _e } from "../../common/icons.js";
10
- import el from "../label/Label.vue.js";
11
- import pe from "../tag/Tag.vue.js";
12
- import me from "../icon/Icon.vue.js";
13
- import ll from "../menu/MenuItem.vue.js";
14
- import tl from "../spinner/Spinner.vue.js";
15
- import ye from "../popover/Popover.vue.js";
1
+ import { defineComponent as We, mergeModels as me, computed as O, ref as x, useModel as qe, watch as E, nextTick as ee, unref as u, onUnmounted as Ue, openBlock as o, createBlock as B, mergeProps as X, toHandlers as ye, withCtx as C, createElementVNode as I, createElementBlock as n, normalizeClass as S, Fragment as b, createTextVNode as k, toDisplayString as d, createVNode as N, renderSlot as h, createCommentVNode as y, renderList as K, createSlots as je, normalizeStyle as Xe, withModifiers as Ke, withDirectives as Ge, vModelSelect as Je } from "vue";
2
+ import { useEventListener as Qe, useResizeObserver as Ye } from "../../node_modules/.pnpm/@vueuse_core@11.1.0_vue@3.5.10_typescript@5.2.2_/node_modules/@vueuse/core/index.js";
3
+ import { useColors as Ze } from "../../composables/useColors.js";
4
+ import { useCommon as xe } from "../../composables/useCommon.js";
5
+ import { useInputtable as le } from "../../composables/useInputtable.js";
6
+ import { useInteractive as Ce } from "../../composables/useInteractive.js";
7
+ import { useTheme as el } from "../../composables/useTheme.js";
8
+ import { useVirtualList as ll } from "../../composables/useVirtualList.js";
9
+ import { checkIcon as tl, closeIcon as sl, selectIcon as il } from "../../common/icons.js";
10
+ import al from "../label/Label.vue.js";
11
+ import he from "../tag/Tag.vue.js";
12
+ import be from "../icon/Icon.vue.js";
13
+ import ol from "../menu/MenuItem.vue.js";
14
+ import rl from "../spinner/Spinner.vue.js";
15
+ import ke from "../popover/Popover.vue.js";
16
16
  import "../popover/Popover.vue2.js";
17
- import be from "../popover/PopoverContainer.vue.js";
18
- import al from "../inputFooter/InputFooter.vue.js";
19
- import il from "../input/Input.vue.js";
20
- import { useThrottleFn as ol } 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 sl = { class: "relative" }, rl = {
17
+ import ge from "../popover/PopoverContainer.vue.js";
18
+ import nl from "../inputFooter/InputFooter.vue.js";
19
+ import ul from "../input/Input.vue.js";
20
+ import { useThrottleFn as fl } 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 dl = { class: "relative" }, cl = {
22
22
  key: 0,
23
23
  class: "text-secondary-400 dark:text-secondary-500"
24
- }, nl = { key: 1 }, ul = {
24
+ }, pl = { key: 1 }, vl = {
25
+ key: 0,
26
+ class: "flex items-center"
27
+ }, ml = {
28
+ key: 0,
29
+ class: "mr-2 shrink-0"
30
+ }, yl = { class: "flex-1 truncate" }, hl = {
31
+ key: 1,
32
+ class: "ml-1 shrink-0"
33
+ }, bl = {
34
+ key: 0,
35
+ class: "flex items-center"
36
+ }, kl = {
37
+ key: 0,
38
+ class: "mr-2 shrink-0"
39
+ }, gl = { class: "flex-1 truncate" }, xl = {
40
+ key: 1,
41
+ class: "ml-1 shrink-0"
42
+ }, Cl = {
25
43
  key: 0,
26
44
  class: "text-secondary-400 dark:text-secondary-500"
27
- }, dl = { key: 1 }, fl = {
45
+ }, wl = { key: 1 }, $l = {
28
46
  key: 0,
29
47
  class: "p-2 text-center text-secondary-400"
30
- }, cl = ["id", "name", "disabled", "multiple", "readonly"], vl = ["value", "disabled"], pl = {
31
- ...Ge.props("secondary"),
32
- ...he.props(),
33
- ...ke.props(),
34
- ..._.props(),
48
+ }, Ol = {
49
+ key: 0,
50
+ class: "flex items-center"
51
+ }, Sl = {
52
+ key: 0,
53
+ class: "mr-2 shrink-0"
54
+ }, Al = { class: "flex-1 truncate" }, Ll = {
55
+ key: 1,
56
+ class: "ml-1 shrink-0"
57
+ }, Rl = ["id", "name", "disabled", "multiple", "readonly"], Il = ["value", "disabled"], Vl = {
58
+ ...Ze.props("secondary"),
59
+ ...xe.props(),
60
+ ...Ce.props(),
61
+ ...le.props(),
35
62
  placeholder: String,
36
63
  options: Array,
37
64
  multiple: Boolean,
@@ -45,6 +72,9 @@ const sl = { class: "relative" }, rl = {
45
72
  type: String,
46
73
  default: "Filter by..."
47
74
  },
75
+ filterablePrefix: Boolean,
76
+ filterableSuffix: Boolean,
77
+ hideSelectedOptionSlots: Boolean,
48
78
  virtualList: Boolean,
49
79
  virtualListOffsetTop: Number,
50
80
  virtualListOffsetBottom: Number,
@@ -57,318 +87,337 @@ const sl = { class: "relative" }, rl = {
57
87
  default: 10
58
88
  },
59
89
  placement: String
60
- }, ml = {
90
+ }, Bl = {
61
91
  name: "XSelect",
62
92
  validators: {
63
- ...he.validators()
93
+ ...xe.validators()
64
94
  }
65
- }, Ml = /* @__PURE__ */ Fe({
66
- ...ml,
67
- props: /* @__PURE__ */ ce(pl, {
95
+ }, Zl = /* @__PURE__ */ We({
96
+ ...Bl,
97
+ props: /* @__PURE__ */ me(Vl, {
68
98
  filter: { default: "" },
69
99
  filterModifiers: {}
70
100
  }),
71
- emits: /* @__PURE__ */ ce([..._.emits(), "close", "open"], ["update:filter"]),
72
- setup(ee, { expose: ge, emit: Ce }) {
73
- const i = ee, I = Ce, p = w(() => i.multiple || i.multipleCheckbox), X = b(null), K = b(null), P = b(null), C = b(null), G = b(null), c = b(), V = Pe(ee, "filter"), E = b(null), A = w(() => i.disabled || i.loading || i.readonly), we = w(() => !i.loading && !i.readonly && !i.disabled && i.clearable && !J(o.value)), o = w({
101
+ emits: /* @__PURE__ */ me([...le.emits(), "close", "open"], ["update:filter"]),
102
+ setup(te, { expose: we, emit: $e }) {
103
+ const a = te, T = $e, m = O(() => a.multiple || a.multipleCheckbox), G = x(null), J = x(null), H = x(null), A = x(null), Q = x(null), p = x(), _ = qe(te, "filter"), W = x(null), R = O(() => a.disabled || a.loading || a.readonly), Oe = O(() => !a.loading && !a.readonly && !a.disabled && a.clearable && !Y(i.value)), i = O({
74
104
  get() {
75
- return p.value ? i.modelValue ? Array.isArray(i.modelValue) ? i.modelValue : [i.modelValue] : [] : i.modelValue;
105
+ return m.value ? a.modelValue ? Array.isArray(a.modelValue) ? a.modelValue : [a.modelValue] : [] : a.modelValue;
76
106
  },
77
107
  set(e) {
78
- I("update:modelValue", e);
108
+ T("update:modelValue", e);
79
109
  }
80
- }), Oe = w(() => i.options ? new Map(i.options.map((e) => [e, e.label.toLowerCase()])) : /* @__PURE__ */ new Map()), h = w(() => {
81
- if (!i.options || i.options.length === 0)
110
+ }), Se = O(() => a.options ? new Map(a.options.map((e) => [e.value, e])) : /* @__PURE__ */ new Map()), Ae = O(() => a.options ? new Map(a.options.map((e) => [
111
+ e,
112
+ {
113
+ label: e.label.toLowerCase(),
114
+ prefix: a.filterablePrefix && e.prefix ? e.prefix.toLowerCase() : void 0,
115
+ suffix: a.filterableSuffix && e.suffix ? e.suffix.toLowerCase() : void 0
116
+ }
117
+ ])) : /* @__PURE__ */ new Map());
118
+ function Le(e, s) {
119
+ var r, t;
120
+ const l = Ae.value.get(e);
121
+ return l ? l.label.includes(s) || ((r = l.prefix) == null ? void 0 : r.includes(s)) || ((t = l.suffix) == null ? void 0 : t.includes(s)) : !1;
122
+ }
123
+ const w = O(() => {
124
+ if (!a.options || a.options.length === 0)
82
125
  return [];
83
- const e = V.value.toLowerCase(), t = V.value !== "", l = new Set(
84
- p.value && Array.isArray(o.value) ? o.value : []
85
- ), a = p.value ? null : o.value, r = Oe.value;
86
- return i.options.filter((u) => {
87
- var d;
88
- return !t || ((d = r.get(u)) == null ? void 0 : d.includes(e));
89
- }).map((u) => {
90
- const d = p.value ? l.has(u.value) : u.value === a;
126
+ const e = _.value.toLowerCase(), s = _.value !== "", l = new Set(
127
+ m.value && Array.isArray(i.value) ? i.value : []
128
+ ), r = m.value ? null : i.value;
129
+ return a.options.filter((t) => !s || Le(t, e)).map((t) => {
130
+ const c = m.value ? l.has(t.value) : t.value === r;
91
131
  return {
92
- value: u.value,
93
- label: u.label,
94
- active: d,
95
- prefix: u.prefix,
96
- suffix: u.suffix,
97
- disabled: u.disabled,
98
- iconRight: !i.multipleCheckbox && d ? Ye : void 0,
99
- keepOpenOnClick: u.keepOpenOnClick,
100
- onClick: () => ie(u.value)
132
+ value: t.value,
133
+ label: t.label,
134
+ active: c,
135
+ prefix: t.prefix,
136
+ suffix: t.suffix,
137
+ disabled: t.disabled,
138
+ iconRight: !a.multipleCheckbox && c ? tl : void 0,
139
+ keepOpenOnClick: t.keepOpenOnClick,
140
+ onClick: () => oe(t.value)
101
141
  };
102
142
  });
103
- }), le = w(() => h.value.filter((e) => !e.disabled)), { list: te, scrollTo: $e, containerProps: Ae, wrapperProps: Le } = Qe(
104
- h,
143
+ }), se = O(() => w.value.filter((e) => !e.disabled)), { list: ie, scrollTo: Re, containerProps: Ie, wrapperProps: Ve } = ll(
144
+ w,
105
145
  {
106
- disabled: !i.virtualList,
107
- itemHeight: i.virtualListItemHeight,
108
- topOffset: i.virtualListOffsetTop || 0,
109
- bottomOffset: i.virtualListOffsetBottom || 0,
110
- overscan: i.virtualListOverscan
146
+ disabled: !a.virtualList,
147
+ itemHeight: a.virtualListItemHeight,
148
+ topOffset: a.virtualListOffsetTop || 0,
149
+ bottomOffset: a.virtualListOffsetBottom || 0,
150
+ overscan: a.virtualListOverscan
111
151
  }
112
- ), T = w(() => {
152
+ ), z = O(() => {
113
153
  var e;
114
- return (e = C.value) == null ? void 0 : e.isOpen;
154
+ return (e = A.value) == null ? void 0 : e.isOpen;
115
155
  });
116
- D(V, (e) => {
117
- e && (c.value = void 0, H(-1));
118
- }), D(T, (e) => {
119
- e ? (Re(), (p.value || typeof c.value > "u") && H(-1), setTimeout(() => {
156
+ E(_, (e) => {
157
+ e && (p.value = void 0, q(-1));
158
+ }), E(z, (e) => {
159
+ e ? (Be(), (m.value || typeof p.value > "u") && q(-1), setTimeout(() => {
120
160
  requestAnimationFrame(() => {
121
- var t;
122
- ae(c.value || 0), i.filterable && ((t = E.value) == null || t.focus());
161
+ var s;
162
+ ae(p.value || 0), a.filterable && ((s = W.value) == null || s.focus());
123
163
  });
124
- }, 50), I("open")) : (i.filterable && (V.value = ""), I("close"));
164
+ }, 50), T("open")) : (a.filterable && (_.value = ""), T("close"));
125
165
  });
126
- function Re() {
127
- if (p.value) {
128
- if (Array.isArray(o.value) && o.value.length > 0) {
129
- const e = h.value.findIndex((t) => t.value === o.value[0]);
130
- e !== -1 && (c.value = e);
166
+ function Be() {
167
+ if (m.value) {
168
+ if (Array.isArray(i.value) && i.value.length > 0) {
169
+ const e = w.value.findIndex((s) => s.value === i.value[0]);
170
+ e !== -1 && (p.value = e);
131
171
  }
132
172
  } else {
133
- const e = h.value.findIndex((t) => t.value === o.value);
134
- e !== -1 && (c.value = e);
173
+ const e = w.value.findIndex((s) => s.value === i.value);
174
+ e !== -1 && (p.value = e);
135
175
  }
136
176
  }
137
177
  function ae(e) {
138
- var t;
139
- i.virtualList ? $e(e) : P.value && ((t = P.value[e]) == null || t.$el.scrollIntoView({ block: "nearest", inline: "nearest" }));
178
+ var s;
179
+ a.virtualList ? Re(e) : H.value && ((s = H.value[e]) == null || s.$el.scrollIntoView({ block: "nearest", inline: "nearest" }));
140
180
  }
141
- D(c, (e) => {
142
- typeof e < "u" && P.value && ae(e);
181
+ E(p, (e) => {
182
+ typeof e < "u" && H.value && ae(e);
143
183
  });
144
- function H(e, t = "down") {
145
- if (!le.value || le.value.length === 0) {
146
- c.value = void 0;
184
+ function q(e, s = "down") {
185
+ if (!se.value || se.value.length === 0) {
186
+ p.value = void 0;
147
187
  return;
148
188
  }
149
- typeof e > "u" && (e = t === "down" ? -1 : 1);
150
- const l = h.value.length;
151
- let a = 0;
152
- if (t === "down") {
153
- let r = e + 1;
154
- for (r > l - 1 && (r = 0); h.value[r].disabled; )
155
- if (++r > l - 1 && (r = 0), ++a >= l) {
156
- c.value = void 0;
189
+ typeof e > "u" && (e = s === "down" ? -1 : 1);
190
+ const l = w.value.length;
191
+ let r = 0;
192
+ if (s === "down") {
193
+ let t = e + 1;
194
+ for (t > l - 1 && (t = 0); w.value[t].disabled; )
195
+ if (++t > l - 1 && (t = 0), ++r >= l) {
196
+ p.value = void 0;
157
197
  return;
158
198
  }
159
- c.value = r;
199
+ p.value = t;
160
200
  } else {
161
- let r = e - 1;
162
- for (r < 0 && (r = l - 1); h.value[r].disabled; )
163
- if (--r < 0 && (r = l - 1), ++a >= l) {
164
- c.value = void 0;
201
+ let t = e - 1;
202
+ for (t < 0 && (t = l - 1); w.value[t].disabled; )
203
+ if (--t < 0 && (t = l - 1), ++r >= l) {
204
+ p.value = void 0;
165
205
  return;
166
206
  }
167
- c.value = r;
207
+ p.value = t;
168
208
  }
169
209
  }
170
- function ie(e) {
171
- var l;
172
- const t = (l = i.options) == null ? void 0 : l.find((a) => a.value === e);
173
- if (!(!t || t.disabled))
174
- if (t.onClick)
175
- t.onClick();
210
+ function oe(e) {
211
+ const s = f(e);
212
+ if (!(!s || s.disabled))
213
+ if (s.onClick)
214
+ s.onClick();
176
215
  else {
177
- if (p.value) {
178
- if (Array.isArray(o.value)) {
179
- const a = o.value.indexOf(e);
180
- a !== -1 ? o.value.splice(a, 1) : o.value.push(e);
216
+ if (m.value) {
217
+ if (Array.isArray(i.value)) {
218
+ const l = i.value.indexOf(e);
219
+ l !== -1 ? i.value.splice(l, 1) : i.value.push(e);
181
220
  } else
182
- o.value = [e];
183
- I("update:modelValue", o.value), i.filterable && setTimeout(() => {
184
- var a;
185
- (a = E.value) == null || a.focus();
221
+ i.value = [e];
222
+ T("update:modelValue", i.value), a.filterable && setTimeout(() => {
223
+ var l;
224
+ (l = W.value) == null || l.focus();
186
225
  });
187
226
  } else
188
- o.value = e;
189
- i.native || Z(() => {
190
- var a;
191
- ue(), (a = K.value) == null || a.$el.focus();
227
+ i.value = e;
228
+ a.native || ee(() => {
229
+ var l;
230
+ de(), (l = J.value) == null || l.$el.focus();
192
231
  });
193
232
  }
194
233
  }
195
- function J(e) {
234
+ function Y(e) {
196
235
  return !!(typeof e > "u" || e === null || e === "" || Array.isArray(e) && e.length === 0 || !Array.isArray(e) && typeof e == "object" && Object.keys(e).length === 0);
197
236
  }
198
- function oe(e, t) {
199
- if (e.stopPropagation(), A.value || !Array.isArray(o.value))
237
+ function re(e, s) {
238
+ if (e.stopPropagation(), R.value || !Array.isArray(i.value))
200
239
  return;
201
- const l = o.value.indexOf(t);
202
- l !== -1 && (o.value.splice(l, 1), I("update:modelValue", o.value));
240
+ const l = i.value.indexOf(s);
241
+ l !== -1 && (i.value.splice(l, 1), T("update:modelValue", i.value));
203
242
  }
204
- function S(e) {
243
+ function f(e) {
244
+ if (!Array.isArray(e))
245
+ return Se.value.get(e);
246
+ }
247
+ function L(e) {
205
248
  var l;
206
- const t = (l = i.options) == null ? void 0 : l.find((a) => a.value === e);
207
- return t ? t.label : "";
249
+ const s = f(e);
250
+ return s ? (l = s.label) == null ? void 0 : l.toString() : e == null ? void 0 : e.toString();
251
+ }
252
+ function M(e) {
253
+ return {
254
+ value: (e == null ? void 0 : e.toString()) || "",
255
+ label: (e == null ? void 0 : e.toString()) || ""
256
+ };
208
257
  }
209
- const { focus: se, blur: xe } = ke(X), {
210
- errorInternal: re,
211
- hideFooterInternal: Ie,
212
- inputListeners: ne,
213
- reset: Q,
214
- validate: ue,
215
- setError: Ve,
216
- isFocused: Te,
217
- isInsideForm: Se
218
- } = _(i, { focus: se, emit: I, withListeners: !0 }), Be = w(() => {
219
- const { focus: e, blur: t } = n(ne);
258
+ const { focus: ne, blur: Te } = Ce(G), {
259
+ errorInternal: ue,
260
+ hideFooterInternal: _e,
261
+ inputListeners: fe,
262
+ reset: Z,
263
+ validate: de,
264
+ setError: ze,
265
+ isFocused: Me,
266
+ isInsideForm: Ne
267
+ } = le(a, { focus: ne, emit: T, withListeners: !0 }), Pe = O(() => {
268
+ const { focus: e, blur: s } = u(fe);
220
269
  return {
221
270
  focus: e,
222
- blur: t
271
+ blur: s
223
272
  };
224
273
  });
225
- let R = null;
226
- D([Te, T], ([e, t]) => {
227
- e || t ? R || (R = Xe(document, "keydown", ze)) : R && (R(), R = null);
274
+ let V = null;
275
+ E([Me, z], ([e, s]) => {
276
+ e || s ? V || (V = Qe(document, "keydown", Fe)) : V && (V(), V = null);
228
277
  }, {
229
278
  immediate: !0
230
- }), Ee(() => {
231
- R && R();
279
+ }), Ue(() => {
280
+ V && V();
232
281
  });
233
- function ze(e) {
234
- var t, l, a, r, u;
235
- if (h.value.length !== 0)
282
+ function Fe(e) {
283
+ var s, l, r, t, c;
284
+ if (w.value.length !== 0)
236
285
  if (e.code === "ArrowDown") {
237
- if (e.preventDefault(), !T.value) {
238
- (t = C.value) == null || t.show();
286
+ if (e.preventDefault(), !z.value) {
287
+ (s = A.value) == null || s.show();
239
288
  return;
240
289
  }
241
- H(c.value, "down");
290
+ q(p.value, "down");
242
291
  } else if (e.code === "ArrowUp") {
243
- if (e.preventDefault(), !T.value) {
244
- (l = C.value) == null || l.show();
292
+ if (e.preventDefault(), !z.value) {
293
+ (l = A.value) == null || l.show();
245
294
  return;
246
295
  }
247
- H(c.value, "up");
296
+ q(p.value, "up");
248
297
  } else if (e.code === "Enter" || e.code === "Space") {
249
- if (e.code === "Space" && i.filterable)
298
+ if (e.code === "Space" && a.filterable)
250
299
  return;
251
- if (e.preventDefault(), e.stopPropagation(), !T.value) {
252
- (a = C.value) == null || a.show();
300
+ if (e.preventDefault(), e.stopPropagation(), !z.value) {
301
+ (r = A.value) == null || r.show();
253
302
  return;
254
303
  }
255
- if (typeof c.value < "u" && h.value[c.value]) {
256
- const d = h.value[c.value];
257
- ie(d.value), !d.keepOpenOnClick && (!p.value || i.multipleCheckbox) && ((r = C.value) == null || r.hide());
304
+ if (typeof p.value < "u" && w.value[p.value]) {
305
+ const v = w.value[p.value];
306
+ oe(v.value), !v.keepOpenOnClick && (!m.value || a.multipleCheckbox) && ((t = A.value) == null || t.hide());
258
307
  }
259
308
  } else
260
- e.code === "Tab" && T.value && (e.preventDefault(), (u = C.value) == null || u.hide(), i.native || Z(() => {
261
- var d;
262
- (d = K.value) == null || d.$el.focus();
309
+ e.code === "Tab" && z.value && (e.preventDefault(), (c = A.value) == null || c.hide(), a.native || ee(() => {
310
+ var v;
311
+ (v = J.value) == null || v.$el.focus();
263
312
  }));
264
313
  }
265
- const N = b(null), de = b(null), W = b(!1), q = b(0), fe = ol(() => {
266
- p.value && i.truncate && Z(() => {
267
- const e = Ne();
268
- e < o.value.length ? (W.value = !0, q.value = o.value.length - e) : (W.value = !1, q.value = 0);
314
+ const P = x(null), ce = x(null), U = x(!1), j = x(0), pe = fl(() => {
315
+ m.value && a.truncate && ee(() => {
316
+ const e = De();
317
+ e < i.value.length ? (U.value = !0, j.value = i.value.length - e) : (U.value = !1, j.value = 0);
269
318
  });
270
319
  }, 100, !0);
271
- Ke(N, () => {
272
- fe();
320
+ Ye(P, () => {
321
+ pe();
273
322
  });
274
- function Ne() {
275
- if (!N.value)
323
+ function De() {
324
+ if (!P.value)
276
325
  return 0;
277
- const e = N.value.querySelectorAll(".x-tag"), t = Array.from(e);
278
- let l = 0, a = 1;
279
- const r = N.value.offsetWidth - 30;
280
- for (let u = 0; u < t.length; u++) {
281
- const d = t[u];
282
- d.style.display = "flex", l += d.offsetWidth, u > 0 && (l < r ? a++ : d.style.display = "none");
326
+ const e = P.value.querySelectorAll(".x-tag"), s = Array.from(e);
327
+ let l = 0, r = 1;
328
+ const t = P.value.offsetWidth - 30;
329
+ for (let c = 0; c < s.length; c++) {
330
+ const v = s[c];
331
+ v.style.display = "flex", l += v.offsetWidth, c > 0 && (l < t ? r++ : v.style.display = "none");
283
332
  }
284
- return a;
333
+ return r;
285
334
  }
286
- D(o, (e) => {
287
- fe();
335
+ E(i, (e) => {
336
+ pe();
288
337
  }, { immediate: !0, deep: !0 });
289
- const { styles: Me, classes: y, className: De } = Je("Select", {}, i, { errorInternal: re });
290
- return ge({ focus: se, blur: xe, reset: Q, validate: ue, setError: Ve, filterRef: E }), (e, t) => (s(), x(el, U({
338
+ const { styles: Ee, classes: g, className: He } = el("Select", {}, a, { errorInternal: ue });
339
+ return we({ focus: ne, blur: Te, reset: Z, validate: de, setError: ze, filterRef: W }), (e, s) => (o(), B(al, X({
291
340
  ref_key: "labelRef",
292
- ref: K,
341
+ ref: J,
293
342
  tabindex: "0",
294
343
  class: ["group", [
295
- n(De),
296
- n(y).wrapper
344
+ u(He),
345
+ u(g).wrapper
297
346
  ]],
298
- style: n(Me),
299
- disabled: A.value,
347
+ style: u(Ee),
348
+ disabled: R.value,
300
349
  required: e.required,
301
- "is-inside-form": n(Se),
350
+ "is-inside-form": u(Ne),
302
351
  label: e.label,
303
352
  tooltip: e.tooltip
304
- }, ve(Be.value)), {
305
- default: m(() => [
306
- F("div", sl, [
307
- e.native && !p.value ? (s(), f("div", {
353
+ }, ye(Pe.value)), {
354
+ default: C(() => [
355
+ I("div", dl, [
356
+ e.native && !m.value ? (o(), n("div", {
308
357
  key: 0,
309
- class: k(n(y).box),
310
- onClick: t[0] || (t[0] = (l) => {
311
- var a;
312
- return (a = X.value) == null ? void 0 : a.click();
358
+ class: S(u(g).box),
359
+ onClick: s[0] || (s[0] = (l) => {
360
+ var r;
361
+ return (r = G.value) == null ? void 0 : r.click();
313
362
  })
314
363
  }, [
315
- J(o.value) ? (s(), f(O, { key: 1 }, [
316
- e.placeholder ? (s(), f("div", rl, g(e.placeholder), 1)) : (s(), f("div", nl, " "))
317
- ], 64)) : (s(), f(O, { key: 0 }, [
318
- B(g(S(o.value)), 1)
364
+ Y(i.value) ? (o(), n(b, { key: 1 }, [
365
+ e.placeholder ? (o(), n("div", cl, d(e.placeholder), 1)) : (o(), n("div", pl, " "))
366
+ ], 64)) : (o(), n(b, { key: 0 }, [
367
+ k(d(L(i.value)), 1)
319
368
  ], 64))
320
- ], 2)) : (s(), f(O, { key: 1 }, [
321
- z(ye, {
369
+ ], 2)) : (o(), n(b, { key: 1 }, [
370
+ N(ke, {
322
371
  ref_key: "popoverRef",
323
- ref: C,
324
- disabled: A.value,
372
+ ref: A,
373
+ disabled: R.value,
325
374
  placement: e.placement
326
375
  }, {
327
- content: m(() => [
328
- z(be, {
329
- class: k(n(y).content)
376
+ content: C(() => [
377
+ N(ge, {
378
+ class: S(u(g).content)
330
379
  }, {
331
- default: m(() => [
332
- $(e.$slots, "content-header", {}, () => [
333
- e.filterable ? (s(), f("div", {
380
+ default: C(() => [
381
+ h(e.$slots, "content-header", {}, () => [
382
+ e.filterable ? (o(), n("div", {
334
383
  key: 0,
335
- class: k(n(y).search)
384
+ class: S(u(g).search)
336
385
  }, [
337
- z(il, {
386
+ N(ul, {
338
387
  ref_key: "filterRef",
339
- ref: E,
340
- modelValue: V.value,
341
- "onUpdate:modelValue": t[2] || (t[2] = (l) => V.value = l),
388
+ ref: W,
389
+ modelValue: _.value,
390
+ "onUpdate:modelValue": s[2] || (s[2] = (l) => _.value = l),
342
391
  placeholder: e.filterPlaceholder,
343
392
  "skip-form-registry": "",
344
393
  "data-1p-ignore": "",
345
394
  size: "sm"
346
395
  }, null, 8, ["modelValue", "placeholder"])
347
- ], 2)) : L("", !0)
396
+ ], 2)) : y("", !0)
348
397
  ]),
349
- F("div", U(n(Ae), {
350
- class: n(y).contentBody
398
+ I("div", X(u(Ie), {
399
+ class: u(g).contentBody
351
400
  }), [
352
- F("div", U(n(Le), { class: "space-y-0.5" }), [
353
- (s(!0), f(O, null, j(n(te), (l) => (s(), x(ll, {
401
+ I("div", X(u(Ve), { class: "space-y-0.5" }), [
402
+ (o(!0), n(b, null, K(u(ie), (l) => (o(), B(ol, {
354
403
  key: l.index,
355
404
  ref_for: !0,
356
405
  ref_key: "itemsRef",
357
- ref: P,
406
+ ref: H,
358
407
  item: l.data,
359
408
  size: e.size,
360
409
  disabled: l.data.disabled,
361
- selected: l.index === c.value,
410
+ selected: l.index === p.value,
362
411
  checkbox: e.multipleCheckbox && !l.data.keepOpenOnClick,
363
412
  color: e.color,
364
413
  filled: "",
365
414
  onClick: () => {
366
- var a;
367
- return !l.data.keepOpenOnClick && (!p.value || e.multipleCheckbox) && ((a = C.value) == null ? void 0 : a.hide());
415
+ var r;
416
+ return !l.data.keepOpenOnClick && (!m.value || e.multipleCheckbox) && ((r = A.value) == null ? void 0 : r.hide());
368
417
  }
369
- }, He({
370
- default: m(() => [
371
- $(e.$slots, "label", {
418
+ }, je({
419
+ default: C(() => [
420
+ h(e.$slots, "label", {
372
421
  item: l.data
373
422
  })
374
423
  ]),
@@ -376,138 +425,203 @@ const sl = { class: "relative" }, rl = {
376
425
  }, [
377
426
  e.$slots.prefix || l.data.prefix ? {
378
427
  name: "prefix",
379
- fn: m(() => [
380
- $(e.$slots, "prefix", {
428
+ fn: C(() => [
429
+ h(e.$slots, "prefix", {
381
430
  item: l.data
382
431
  }, () => [
383
- B(g(l.data.prefix), 1)
432
+ k(d(l.data.prefix), 1)
384
433
  ])
385
434
  ]),
386
435
  key: "0"
387
436
  } : void 0,
388
437
  e.$slots.suffix || l.data.suffix ? {
389
438
  name: "suffix",
390
- fn: m(() => [
391
- $(e.$slots, "suffix", {
439
+ fn: C(() => [
440
+ h(e.$slots, "suffix", {
392
441
  item: l.data
393
442
  }, () => [
394
- B(g(l.data.suffix), 1)
443
+ k(d(l.data.suffix), 1)
395
444
  ])
396
445
  ]),
397
446
  key: "1"
398
447
  } : void 0
399
448
  ]), 1032, ["item", "size", "disabled", "selected", "checkbox", "color", "onClick"]))), 128))
400
449
  ], 16),
401
- n(te).length === 0 ? (s(), f("div", fl, " No options ")) : L("", !0)
450
+ u(ie).length === 0 ? (o(), n("div", $l, " No options ")) : y("", !0)
402
451
  ], 16),
403
- $(e.$slots, "content-footer")
452
+ h(e.$slots, "content-footer")
404
453
  ]),
405
454
  _: 3
406
455
  }, 8, ["class"])
407
456
  ]),
408
- default: m(() => [
409
- $(e.$slots, "input", {
410
- popover: C.value,
411
- selected: o.value,
412
- disabled: A.value,
413
- label: S(o.value)
414
- }, () => [
415
- F("div", {
416
- class: k([n(y).box])
417
- }, [
418
- p.value && Array.isArray(o.value) && o.value.length > 0 ? (s(), f("div", {
419
- key: 0,
420
- ref_key: "tagsRef",
421
- ref: N,
422
- class: k(["flex gap-1 relative", {
423
- "flex-wrap": !e.truncate,
424
- "overflow-hidden": e.truncate
425
- }])
457
+ default: C(() => [
458
+ h(e.$slots, "input", {
459
+ popover: A.value,
460
+ selected: i.value,
461
+ disabled: R.value,
462
+ label: L(i.value)
463
+ }, () => {
464
+ var l, r;
465
+ return [
466
+ I("div", {
467
+ class: S([u(g).box])
426
468
  }, [
427
- (s(!0), f(O, null, j(o.value, (l, a) => {
428
- var r, u, d, M;
429
- return s(), x(pe, {
430
- key: l,
431
- size: "xs",
432
- removable: "",
433
- outlined: !(A.value || (u = (r = e.options) == null ? void 0 : r.find((v) => v.value === l)) != null && u.disabled),
434
- disabled: A.value || ((M = (d = e.options) == null ? void 0 : d.find((v) => v.value === l)) == null ? void 0 : M.disabled),
435
- style: We({ "max-width": a === 0 && G.value ? `calc(100% - ${G.value.offsetWidth + 6 + "px"})` : void 0 }),
436
- onRemove: (v) => {
437
- oe(v, l);
438
- }
439
- }, {
440
- prefix: m(() => {
441
- var v;
442
- return [
443
- $(e.$slots, "tag-prefix", {
444
- item: (v = e.options) == null ? void 0 : v.find((Y) => Y.value === l)
445
- })
446
- ];
447
- }),
448
- default: m(() => [
449
- B(" " + g(S(l)), 1)
450
- ]),
451
- _: 2
452
- }, 1032, ["outlined", "disabled", "style", "onRemove"]);
453
- }), 128)),
454
- W.value ? (s(), f("div", {
469
+ m.value && Array.isArray(i.value) && i.value.length > 0 ? (o(), n("div", {
455
470
  key: 0,
456
- ref_key: "hiddenTagsCounterRef",
457
- ref: G,
458
- class: k(n(y).truncateCounter),
459
- onClick: t[1] || (t[1] = qe((l) => {
460
- var a;
461
- return (a = de.value) == null ? void 0 : a.toggle();
462
- }, ["stop"]))
463
- }, "+" + g(q.value), 3)) : L("", !0)
464
- ], 2)) : !p.value && !J(o.value) && S(o.value) !== "" ? (s(), f(O, { key: 1 }, [
465
- B(g(S(o.value)), 1)
466
- ], 64)) : (s(), f(O, { key: 2 }, [
467
- e.placeholder ? (s(), f("div", ul, g(e.placeholder), 1)) : (s(), f("div", dl, " "))
468
- ], 64))
469
- ], 2)
470
- ])
471
+ ref_key: "tagsRef",
472
+ ref: P,
473
+ class: S(["flex gap-1 relative", {
474
+ "flex-wrap": !e.truncate,
475
+ "overflow-hidden": e.truncate
476
+ }])
477
+ }, [
478
+ (o(!0), n(b, null, K(i.value, (t, c) => {
479
+ var v, F;
480
+ return o(), B(he, {
481
+ key: t,
482
+ size: "xs",
483
+ removable: "",
484
+ outlined: !(R.value || (v = f(t)) != null && v.disabled),
485
+ disabled: R.value || ((F = f(t)) == null ? void 0 : F.disabled),
486
+ style: Xe({ "max-width": c === 0 && Q.value ? `calc(100% - ${Q.value.offsetWidth + 6 + "px"})` : void 0 }),
487
+ onRemove: ($) => {
488
+ re($, t);
489
+ }
490
+ }, {
491
+ default: C(() => {
492
+ var $, ve;
493
+ return [
494
+ e.hideSelectedOptionSlots ? (o(), n(b, { key: 1 }, [
495
+ k(d(L(t)), 1)
496
+ ], 64)) : (o(), n("div", vl, [
497
+ e.$slots.prefix || ($ = f(t)) != null && $.prefix ? (o(), n("span", ml, [
498
+ h(e.$slots, "prefix", {
499
+ item: f(t) || M(t)
500
+ }, () => {
501
+ var D;
502
+ return [
503
+ k(d((D = f(t)) == null ? void 0 : D.prefix), 1)
504
+ ];
505
+ })
506
+ ])) : y("", !0),
507
+ I("span", yl, d(L(t)), 1),
508
+ e.$slots.suffix || (ve = f(t)) != null && ve.suffix ? (o(), n("span", hl, [
509
+ h(e.$slots, "suffix", {
510
+ item: f(t) || M(t)
511
+ }, () => {
512
+ var D;
513
+ return [
514
+ k(d((D = f(t)) == null ? void 0 : D.suffix), 1)
515
+ ];
516
+ })
517
+ ])) : y("", !0)
518
+ ]))
519
+ ];
520
+ }),
521
+ _: 2
522
+ }, 1032, ["outlined", "disabled", "style", "onRemove"]);
523
+ }), 128)),
524
+ U.value ? (o(), n("div", {
525
+ key: 0,
526
+ ref_key: "hiddenTagsCounterRef",
527
+ ref: Q,
528
+ class: S(u(g).truncateCounter),
529
+ onClick: s[1] || (s[1] = Ke((t) => {
530
+ var c;
531
+ return (c = ce.value) == null ? void 0 : c.toggle();
532
+ }, ["stop"]))
533
+ }, "+" + d(j.value), 3)) : y("", !0)
534
+ ], 2)) : !m.value && !Y(i.value) && L(i.value) !== "" ? (o(), n(b, { key: 1 }, [
535
+ e.hideSelectedOptionSlots ? (o(), n(b, { key: 1 }, [
536
+ k(d(L(i.value)), 1)
537
+ ], 64)) : (o(), n("div", bl, [
538
+ e.$slots.prefix || (l = f(i.value)) != null && l.prefix ? (o(), n("span", kl, [
539
+ h(e.$slots, "prefix", {
540
+ item: f(i.value) || M(i.value)
541
+ }, () => {
542
+ var t;
543
+ return [
544
+ k(d((t = f(i.value)) == null ? void 0 : t.prefix), 1)
545
+ ];
546
+ })
547
+ ])) : y("", !0),
548
+ I("span", gl, d(L(i.value)), 1),
549
+ e.$slots.suffix || (r = f(i.value)) != null && r.suffix ? (o(), n("span", xl, [
550
+ h(e.$slots, "suffix", {
551
+ item: f(i.value) || M(i.value)
552
+ }, () => {
553
+ var t;
554
+ return [
555
+ k(d((t = f(i.value)) == null ? void 0 : t.suffix), 1)
556
+ ];
557
+ })
558
+ ])) : y("", !0)
559
+ ]))
560
+ ], 64)) : (o(), n(b, { key: 2 }, [
561
+ e.placeholder ? (o(), n("div", Cl, d(e.placeholder), 1)) : (o(), n("div", wl, " "))
562
+ ], 64))
563
+ ], 2)
564
+ ];
565
+ })
471
566
  ]),
472
567
  _: 3
473
568
  }, 8, ["disabled", "placement"]),
474
- p.value && e.truncate && W.value ? (s(), x(ye, {
569
+ m.value && e.truncate && U.value ? (o(), B(ke, {
475
570
  key: 0,
476
571
  ref_key: "multipleHiddenRef",
477
- ref: de,
572
+ ref: ce,
478
573
  "popper-show-triggers": [],
479
574
  "popper-hide-triggers": [],
480
575
  class: "inline-block !absolute right-0",
481
576
  placement: "auto-start"
482
577
  }, {
483
- content: m(() => [
484
- z(be, { class: "p-2 flex gap-2 flex-wrap" }, {
485
- default: m(() => {
578
+ content: C(() => [
579
+ N(ge, { class: "p-2 flex gap-2 flex-wrap" }, {
580
+ default: C(() => {
486
581
  var l;
487
582
  return [
488
- (s(!0), f(O, null, j((l = o.value) == null ? void 0 : l.slice(o.value.length - q.value), (a) => {
489
- var r, u, d, M;
490
- return s(), x(pe, {
491
- key: a,
583
+ (o(!0), n(b, null, K((l = i.value) == null ? void 0 : l.slice(i.value.length - j.value), (r) => {
584
+ var t, c;
585
+ return o(), B(he, {
586
+ key: r,
492
587
  size: "xs",
493
588
  removable: "",
494
- outlined: !(A.value || (u = (r = e.options) == null ? void 0 : r.find((v) => v.value === a)) != null && u.disabled),
495
- disabled: A.value || ((M = (d = e.options) == null ? void 0 : d.find((v) => v.value === a)) == null ? void 0 : M.disabled),
589
+ outlined: !(R.value || (t = f(r)) != null && t.disabled),
590
+ disabled: R.value || ((c = f(r)) == null ? void 0 : c.disabled),
496
591
  onRemove: (v) => {
497
- oe(v, a);
592
+ re(v, r);
498
593
  }
499
594
  }, {
500
- prefix: m(() => {
501
- var v;
595
+ default: C(() => {
596
+ var v, F;
502
597
  return [
503
- $(e.$slots, "tag-prefix", {
504
- item: (v = e.options) == null ? void 0 : v.find((Y) => Y.value === a)
505
- })
598
+ e.hideSelectedOptionSlots ? (o(), n(b, { key: 1 }, [
599
+ k(d(L(r)), 1)
600
+ ], 64)) : (o(), n("div", Ol, [
601
+ e.$slots.prefix || (v = f(r)) != null && v.prefix ? (o(), n("span", Sl, [
602
+ h(e.$slots, "prefix", {
603
+ item: f(r) || M(r)
604
+ }, () => {
605
+ var $;
606
+ return [
607
+ k(d(($ = f(r)) == null ? void 0 : $.prefix), 1)
608
+ ];
609
+ })
610
+ ])) : y("", !0),
611
+ I("span", Al, d(L(r)), 1),
612
+ e.$slots.suffix || (F = f(r)) != null && F.suffix ? (o(), n("span", Ll, [
613
+ h(e.$slots, "suffix", {
614
+ item: f(r) || M(r)
615
+ }, () => {
616
+ var $;
617
+ return [
618
+ k(d(($ = f(r)) == null ? void 0 : $.suffix), 1)
619
+ ];
620
+ })
621
+ ])) : y("", !0)
622
+ ]))
506
623
  ];
507
624
  }),
508
- default: m(() => [
509
- B(" " + g(S(a)), 1)
510
- ]),
511
625
  _: 2
512
626
  }, 1032, ["outlined", "disabled", "onRemove"]);
513
627
  }), 128))
@@ -517,59 +631,59 @@ const sl = { class: "relative" }, rl = {
517
631
  })
518
632
  ]),
519
633
  _: 3
520
- }, 512)) : L("", !0)
634
+ }, 512)) : y("", !0)
521
635
  ], 64)),
522
- Ue(F("select", U({
636
+ Ge(I("select", X({
523
637
  id: e.id,
524
638
  ref_key: "elRef",
525
- ref: X,
526
- "onUpdate:modelValue": t[3] || (t[3] = (l) => o.value = l),
639
+ ref: G,
640
+ "onUpdate:modelValue": s[3] || (s[3] = (l) => i.value = l),
527
641
  tabindex: "-1",
528
- class: e.native && !p.value ? "absolute inset-0 w-full h-full cursor-pointer opacity-0" : "hidden",
642
+ class: e.native && !m.value ? "absolute inset-0 w-full h-full cursor-pointer opacity-0" : "hidden",
529
643
  name: e.name,
530
644
  disabled: e.disabled || e.loading,
531
- multiple: p.value,
645
+ multiple: m.value,
532
646
  readonly: e.readonly
533
- }, ve(n(ne), !0)), [
534
- e.native ? (s(!0), f(O, { key: 0 }, j(e.options, (l, a) => (s(), f("option", {
535
- key: a,
647
+ }, ye(u(fe), !0)), [
648
+ e.native ? (o(!0), n(b, { key: 0 }, K(e.options, (l, r) => (o(), n("option", {
649
+ key: r,
536
650
  value: l.value,
537
651
  disabled: l.disabled
538
- }, g(l.label), 9, vl))), 128)) : L("", !0)
539
- ], 16, cl), [
540
- [je, o.value]
652
+ }, d(l.label), 9, Il))), 128)) : y("", !0)
653
+ ], 16, Rl), [
654
+ [Je, i.value]
541
655
  ]),
542
- we.value ? (s(), f("button", {
656
+ Oe.value ? (o(), n("button", {
543
657
  key: 2,
544
658
  type: "button",
545
659
  "aria-label": "Clean value",
546
- class: k(n(y).clearButton),
547
- onClick: t[4] || (t[4] = //@ts-ignore
548
- (...l) => n(Q) && n(Q)(...l))
660
+ class: S(u(g).clearButton),
661
+ onClick: s[4] || (s[4] = //@ts-ignore
662
+ (...l) => u(Z) && u(Z)(...l))
549
663
  }, [
550
- z(me, {
551
- icon: n(Ze),
552
- class: k([n(y).icon, "cursor-pointer"])
664
+ N(be, {
665
+ icon: u(sl),
666
+ class: S([u(g).icon, "cursor-pointer"])
553
667
  }, null, 8, ["icon", "class"])
554
- ], 2)) : L("", !0),
555
- e.$slots.input ? L("", !0) : (s(), f("div", {
668
+ ], 2)) : y("", !0),
669
+ e.$slots.input ? y("", !0) : (o(), n("div", {
556
670
  key: 3,
557
- class: k(n(y).iconWrapper)
671
+ class: S(u(g).iconWrapper)
558
672
  }, [
559
- e.loading ? (s(), x(tl, {
673
+ e.loading ? (o(), B(rl, {
560
674
  key: 0,
561
675
  size: e.size
562
- }, null, 8, ["size"])) : $(e.$slots, "icon", { key: 1 }, () => [
563
- z(me, {
564
- icon: n(_e),
565
- class: k(n(y).icon)
676
+ }, null, 8, ["size"])) : h(e.$slots, "icon", { key: 1 }, () => [
677
+ N(be, {
678
+ icon: u(il),
679
+ class: S(u(g).icon)
566
680
  }, null, 8, ["icon", "class"])
567
681
  ])
568
682
  ], 2))
569
683
  ]),
570
- n(Ie) ? L("", !0) : (s(), x(al, {
684
+ u(_e) ? y("", !0) : (o(), B(nl, {
571
685
  key: 0,
572
- error: n(re),
686
+ error: u(ue),
573
687
  helper: e.helper
574
688
  }, null, 8, ["error", "helper"]))
575
689
  ]),
@@ -578,5 +692,5 @@ const sl = { class: "relative" }, rl = {
578
692
  }
579
693
  });
580
694
  export {
581
- Ml as default
695
+ Zl as default
582
696
  };