energy-components 2.0.0-beta.3 → 2.0.0-beta.4

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 (63) hide show
  1. package/dist/components/dropdown.es.js +252 -223
  2. package/dist/components/indicator.es.js +137 -81
  3. package/dist/components/link.es.js +7 -7
  4. package/dist/components/multiselect.es.js +104 -51
  5. package/dist/components/style/actionButton.css +1 -1
  6. package/dist/components/style/button.css +1 -1
  7. package/dist/components/style/checkbox.css +1 -1
  8. package/dist/components/style/collapsable.css +1 -1
  9. package/dist/components/style/directAccess.css +1 -1
  10. package/dist/components/style/dropdown.css +1 -1
  11. package/dist/components/style/filterChip.css +1 -1
  12. package/dist/components/style/filterTag.css +1 -1
  13. package/dist/components/style/floatingActionButton.css +1 -1
  14. package/dist/components/style/indicator.css +1 -1
  15. package/dist/components/style/link.css +1 -1
  16. package/dist/components/style/multiselect.css +1 -1
  17. package/dist/components/style/multiselectcontentwrapper.css +1 -1
  18. package/dist/components/style/selectionChip.css +1 -1
  19. package/dist/components/style/switch.css +1 -1
  20. package/dist/components/style/tag.css +1 -1
  21. package/dist/components/style/textArea.css +1 -1
  22. package/dist/components/style/textField.css +1 -1
  23. package/dist/components/style/toggle.css +1 -1
  24. package/dist/components/tag.es.js +33 -22
  25. package/dist/components/toggle.es.js +31 -26
  26. package/dist/energy-components.css +1 -1
  27. package/dist/energy-components.es.js +5002 -4849
  28. package/dist/energy-components.umd.js +2 -2
  29. package/dist/style.css +1 -1
  30. package/dist/types/src/components/buttons/action-button/action-button.vue.d.ts +3 -3
  31. package/dist/types/src/components/buttons/button/button.vue.d.ts +4 -4
  32. package/dist/types/src/components/buttons/floating-action-button/floating-action-button.vue.d.ts +3 -3
  33. package/dist/types/src/components/content/avatar/avatar.vue.d.ts +1 -1
  34. package/dist/types/src/components/content/collapsable/collapsable.vue.d.ts +2 -2
  35. package/dist/types/src/components/content/table/table.vue.d.ts +1 -1
  36. package/dist/types/src/components/content/tag/tag.vue.d.ts +23 -2
  37. package/dist/types/src/components/feedback/indicator/indicator.vue.d.ts +88 -1
  38. package/dist/types/src/components/input/checkbox/checkbox.vue.d.ts +3 -3
  39. package/dist/types/src/components/input/datepicker/datepicker.vue.d.ts +3 -3
  40. package/dist/types/src/components/input/drag-and-drop/drag-and-drop.vue.d.ts +2 -2
  41. package/dist/types/src/components/input/dropdown/dropdown.vue.d.ts +7 -7
  42. package/dist/types/src/components/input/file-upload-item/file-upload-item.vue.d.ts +2 -2
  43. package/dist/types/src/components/input/filter-chip/filter-chip.vue.d.ts +4 -4
  44. package/dist/types/src/components/input/quantity-selector/quantity-selector.vue.d.ts +3 -3
  45. package/dist/types/src/components/input/radio-button/radio-button.vue.d.ts +1 -1
  46. package/dist/types/src/components/input/selection-chip/selection-chip.vue.d.ts +4 -4
  47. package/dist/types/src/components/input/switch/switch.vue.d.ts +1 -1
  48. package/dist/types/src/components/input/text-area/text-area.vue.d.ts +2 -2
  49. package/dist/types/src/components/input/text-field/text-field.vue.d.ts +7 -7
  50. package/dist/types/src/components/input/toggle/toggle.vue.d.ts +7 -0
  51. package/dist/types/src/components/navigation/direct-access/direct-access.vue.d.ts +4 -4
  52. package/dist/types/src/components/navigation/link/link.vue.d.ts +2 -2
  53. package/dist/types/src/components/navigation/pagination/pagination.vue.d.ts +2 -2
  54. package/dist/types/src/components/navigation/tab-bar/tab-bar.vue.d.ts +2 -2
  55. package/dist/types/src/components/overlay/modal/modal.vue.d.ts +1 -1
  56. package/dist/types/src/components/overlay/popover/popover.vue.d.ts +7 -7
  57. package/dist/types/src/components/overlay/popover-menu/popover-menu.vue.d.ts +5 -5
  58. package/dist/types/src/components/overlay/tooltip/tooltip.vue.d.ts +9 -9
  59. package/dist/types/tsconfig.tsbuildinfo +1 -1
  60. package/llms/rdsindicator.md +5 -0
  61. package/llms/rdstag.md +1 -0
  62. package/llms/rdstoggle.md +1 -0
  63. package/package.json +2 -2
@@ -1,23 +1,23 @@
1
- import { defineComponent as be, mergeModels as X, useSlots as we, toRefs as ge, useModel as he, ref as $, computed as d, provide as W, onMounted as ke, nextTick as V, onBeforeUnmount as xe, createElementBlock as y, openBlock as u, normalizeClass as A, unref as r, createVNode as h, mergeProps as Y, withModifiers as a, createSlots as Z, withCtx as i, createElementVNode as m, createCommentVNode as C, createBlock as ee, renderSlot as f, Fragment as Se, toDisplayString as R, withKeys as E } from "vue";
2
- import $e from "./multiselect.es.js";
1
+ import { defineComponent as ge, mergeModels as Y, useSlots as we, toRefs as he, useModel as ke, ref as B, computed as u, provide as P, onMounted as xe, nextTick as L, onBeforeUnmount as $e, createElementBlock as y, openBlock as c, normalizeClass as R, unref as a, createVNode as $, mergeProps as Z, withModifiers as r, createSlots as ee, withCtx as d, createElementVNode as v, createCommentVNode as V, createBlock as te, renderSlot as m, Fragment as Se, toDisplayString as T } from "vue";
2
+ import De from "./multiselect.es.js";
3
3
  import Ce from "./checkbox.es.js";
4
- import { _ as De } from "./radio-group.vue_vue_type_script_setup_true_lang-DpguLlRK.js";
5
- import _e from "./radioButton.es.js";
6
- import { R as te } from "./icon-svg-CTR8GnC2.js";
7
- import oe from "./textField.es.js";
8
- import { _ as Be } from "./_plugin-vue_export-helper-CHgC5LLL.js";
9
- import './style/dropdown.css';const Oe = ["id", "aria-expanded", "onKeydown"], Le = ["aria-expanded", "onKeydown"], Ve = { class: "rds-e-dropdown__option" }, Ae = { class: "rds-e-dropdown__option-container" }, Re = { class: "rds-e-dropdown__option--prepend" }, Ee = { class: "rds-e-dropdown__option--content" }, Fe = {
4
+ import { _ as Oe } from "./radio-group.vue_vue_type_script_setup_true_lang-DpguLlRK.js";
5
+ import Be from "./radioButton.es.js";
6
+ import { R as oe } from "./icon-svg-CTR8GnC2.js";
7
+ import le from "./textField.es.js";
8
+ import { _ as Le } from "./_plugin-vue_export-helper-CHgC5LLL.js";
9
+ import './style/dropdown.css';const Ve = ["id", "aria-expanded", "aria-controls"], Ae = ["aria-expanded", "aria-controls"], Ee = { class: "rds-e-dropdown__option" }, Re = { class: "rds-e-dropdown__option-container" }, Te = { class: "rds-e-dropdown__option--prepend" }, _e = { class: "rds-e-dropdown__option--content" }, Fe = {
10
10
  key: 0,
11
11
  class: "rds-e-dropdown__option-detail"
12
- }, Te = { key: 1 }, Ne = {
12
+ }, Ne = { key: 1 }, je = {
13
13
  key: 0,
14
14
  class: "rds-e-dropdown__option--append"
15
- }, je = { class: "rds-e-dropdown__before-list-container" }, Ie = {
15
+ }, Me = { class: "rds-e-dropdown__before-list-container" }, Ie = {
16
16
  key: 1,
17
17
  class: "rds-e-dropdown__before-list"
18
- }, Me = { class: "rds-e-dropdown__before-list-container" }, Ke = { class: "rds-e-dropdown__after-list" }, qe = { class: "rds-e-dropdown__after-list-container" }, Ue = "beforeList", He = "afterList", Pe = "singleLabel", We = "noOptions", ze = "noResult", Ge = "limit", Je = "maxElements", Qe = /* @__PURE__ */ be({
18
+ }, qe = { class: "rds-e-dropdown__before-list-container" }, Ke = { class: "rds-e-dropdown__after-list" }, Ue = { class: "rds-e-dropdown__after-list-container" }, Pe = "beforeList", He = "afterList", We = "singleLabel", ze = "noOptions", Ge = "noResult", Je = "limit", Qe = "maxElements", Xe = /* @__PURE__ */ ge({
19
19
  __name: "dropdown",
20
- props: /* @__PURE__ */ X({
20
+ props: /* @__PURE__ */ Y({
21
21
  /**
22
22
  * Id del dropdown
23
23
  */
@@ -74,7 +74,7 @@ import './style/dropdown.css';const Oe = ["id", "aria-expanded", "onKeydown"], L
74
74
  showRadio: {
75
75
  type: Boolean,
76
76
  default: !1,
77
- validator: (l, F) => l && F.multiple ? (console.error("showRadio solo es valido para seleccion unica"), !1) : !0
77
+ validator: (l, _) => l && _.multiple ? (console.error("showRadio solo es valido para seleccion unica"), !1) : !0
78
78
  },
79
79
  /**
80
80
  * Indica si el campo de entrada contiene un error o no.
@@ -189,217 +189,246 @@ import './style/dropdown.css';const Oe = ["id", "aria-expanded", "onKeydown"], L
189
189
  },
190
190
  modelModifiers: {}
191
191
  }),
192
- emits: /* @__PURE__ */ X(["open", "close", "select", "change"], ["update:modelValue"]),
193
- setup(l, { expose: F, emit: le }) {
194
- const s = l, k = le, z = we(), p = (e) => !!(z && z[e]), {
195
- disabled: D,
196
- limit: T,
197
- multiple: x,
198
- options: g,
192
+ emits: /* @__PURE__ */ Y(["open", "close", "select", "change"], ["update:modelValue"]),
193
+ setup(l, { expose: _, emit: ne }) {
194
+ const n = l, S = ne, H = we(), p = (e) => !!(H && H[e]), {
195
+ disabled: h,
196
+ limit: F,
197
+ multiple: D,
198
+ options: k,
199
199
  textOnly: N
200
- } = ge(s), n = he(l, "modelValue"), c = $([]), v = $(), b = $(), j = $(""), I = $(!1);
201
- let _ = !1;
200
+ } = he(n), s = ke(l, "modelValue"), f = B([]), i = B(), b = B(), j = B(""), M = B(!1);
201
+ let C = !1;
202
202
  const se = () => {
203
- I.value = !0;
204
- }, ne = d(() => v.value?.isOpen ?? !1), S = d(() => s.autocomplete && Object.keys(s.autocomplete).length > 0), ae = d(() => ({
205
- id: s.autocomplete.id || `autocomplete-${s.id}`,
206
- label: s.autocomplete.label || s.label,
207
- icon: s.autocomplete.icon || "",
208
- rightIcon: s.autocomplete.rightIcon || "",
209
- disabled: s.autocomplete.disabled || !1,
210
- clearable: s.autocomplete.clearable || !1,
211
- error: s.autocomplete.error ?? !1,
212
- helper: s.autocomplete.helper ?? !1,
213
- helperText: s.autocomplete.helperText ?? "",
214
- readonly: s.autocomplete.readonly ?? !1
203
+ M.value = !0;
204
+ }, w = u(() => i.value?.isOpen ?? !1), O = u(() => n.autocomplete && Object.keys(n.autocomplete).length > 0), ae = u(() => ({
205
+ id: n.autocomplete.id || `autocomplete-${n.id}`,
206
+ label: n.autocomplete.label || n.label,
207
+ icon: n.autocomplete.icon || "",
208
+ rightIcon: n.autocomplete.rightIcon || "",
209
+ disabled: n.autocomplete.disabled || !1,
210
+ clearable: n.autocomplete.clearable || !1,
211
+ error: n.autocomplete.error ?? !1,
212
+ helper: n.autocomplete.helper ?? !1,
213
+ helperText: n.autocomplete.helperText ?? "",
214
+ readonly: n.autocomplete.readonly ?? !1
215
215
  }));
216
- W("registerDropdownFocusElement", (e) => {
217
- e && !c.value.includes(e) && c.value.push(e);
218
- }), W("unregisterDropdownFocusElement", (e) => {
219
- const t = c.value.findIndex((o) => o === e);
220
- t > -1 && c.value.splice(t, 1);
221
- }), W("isFocusWithinDropdown", (e) => {
222
- const t = c.value.some((w) => w === e || w.contains(e)), o = e.classList && (e.classList.contains("rds-e-dropdown__before-list") || e.closest(".rds-e-dropdown__before-list") || e.classList.contains("multiselect") || e.closest(".multiselect"));
216
+ P("registerDropdownFocusElement", (e) => {
217
+ e && !f.value.includes(e) && f.value.push(e);
218
+ }), P("unregisterDropdownFocusElement", (e) => {
219
+ const t = f.value.findIndex((o) => o === e);
220
+ t > -1 && f.value.splice(t, 1);
221
+ }), P("isFocusWithinDropdown", (e) => {
222
+ const t = f.value.some((g) => g === e || g.contains(e)), o = e.classList && (e.classList.contains("rds-e-dropdown__before-list") || e.closest(".rds-e-dropdown__before-list") || e.classList.contains("multiselect") || e.closest(".multiselect"));
223
223
  return t || o;
224
224
  });
225
- const G = d({
226
- get: () => n.value && typeof n.value == "object" && !Array.isArray(n.value) ? n.value.id : typeof n.value == "string" || typeof n.value == "number" ? n.value : null,
225
+ const W = u({
226
+ get: () => s.value && typeof s.value == "object" && !Array.isArray(s.value) ? s.value.id : typeof s.value == "string" || typeof s.value == "number" ? s.value : null,
227
227
  set: (e) => {
228
- const t = g.value.find((o) => typeof o == "object" ? o.id === e : o === e);
229
- n.value = t || null;
228
+ const t = k.value.find((o) => typeof o == "object" ? o.id === e : o === e);
229
+ s.value = t || null;
230
230
  }
231
- }), re = d(() => (g.value ?? []).every((e) => typeof e == "object" && e?.id && e?.label)), ie = d(() => !x.value || s.closeOnSelect), M = d({
232
- get: () => n.value ? s.multiple ? Array.isArray(n.value) ? n.value.length > T.value ? s.limitText(T.value) : n.value.map((e) => typeof e == "string" ? e : e.label).join(", ") : "" : typeof n.value == "object" ? n.value.label : typeof n.value == "string" ? n.value : "" : "",
231
+ }), re = u(() => (k.value ?? []).every((e) => typeof e == "object" && e?.id && e?.label)), z = u(() => !D.value || n.closeOnSelect), I = u({
232
+ get: () => s.value ? n.multiple ? Array.isArray(s.value) ? s.value.length > F.value ? n.limitText(F.value) : s.value.map((e) => typeof e == "string" ? e : e.label).join(", ") : "" : typeof s.value == "object" ? s.value.label : typeof s.value == "string" ? s.value : "" : "",
233
233
  set: () => null
234
- }), de = d(() => ({
234
+ }), ie = u(() => ({
235
235
  "rds-e-dropdown-input": !0,
236
- "rds-e-dropdown--disabled": D.value,
237
- "rds-e-dropdown--small": s.small
238
- })), ue = d(() => s.openDirection !== "auto" ? s.openDirection : "auto"), K = d(() => {
236
+ "rds-e-dropdown--disabled": h.value,
237
+ "rds-e-dropdown--small": n.small
238
+ })), de = u(() => n.openDirection !== "auto" ? n.openDirection : "auto"), q = u(() => {
239
239
  const e = {};
240
240
  return re.value && Object.assign(e, {
241
241
  "track-by": "id",
242
242
  label: "label"
243
243
  }), e;
244
- }), pe = d(() => S.value && s.autocomplete.autocompleteFilter ? g.value.filter((e) => s.autocomplete.autocompleteFilter(e, j.value)) : g.value), B = (e) => {
245
- if (n.value === e) return !0;
246
- if (Array.isArray(n.value)) {
247
- if (typeof e == "string") return n.value.includes(e);
248
- if (K.value.label)
249
- return n.value.some((t) => t.id === e.id);
244
+ }), ue = u(() => O.value && n.autocomplete.autocompleteFilter ? k.value.filter((e) => n.autocomplete.autocompleteFilter(e, j.value)) : k.value), A = (e) => {
245
+ if (s.value === e) return !0;
246
+ if (Array.isArray(s.value)) {
247
+ if (typeof e == "string") return s.value.includes(e);
248
+ if (q.value.label)
249
+ return s.value.some((t) => t.id === e.id);
250
250
  }
251
251
  return !1;
252
252
  }, ce = (e) => {
253
- k("open", e, s.id);
254
- }, me = (e) => {
255
- k("close", e, s.id);
253
+ S("open", e, n.id);
254
+ }, pe = (e) => {
255
+ S("close", e, n.id);
256
256
  }, fe = (e) => {
257
- V(() => {
258
- k("select", e);
257
+ L(() => {
258
+ S("select", e);
259
259
  });
260
260
  }, ve = () => {
261
- V(() => {
262
- if (x.value) {
263
- const e = g.value.filter(
264
- (t) => B(t)
261
+ L(() => {
262
+ if (D.value) {
263
+ const e = k.value.filter(
264
+ (t) => A(t)
265
265
  ) || [];
266
- k("change", e);
266
+ S("change", e);
267
267
  } else {
268
- const e = g.value.find(
269
- (t) => B(t)
268
+ const e = k.value.find(
269
+ (t) => A(t)
270
270
  );
271
- k("change", [e]);
271
+ S("change", [e]);
272
272
  }
273
273
  });
274
- }, J = (e) => {
275
- v.value.select(e), _ = !0;
276
- }, q = () => {
277
- v.value.activate();
278
- }, O = () => {
279
- v.value.deactivate();
280
- }, U = () => {
281
- v.value.toggle(), _ = !0;
282
- }, H = () => {
283
- ne.value ? O() : q();
274
+ }, G = (e) => {
275
+ i.value.select(e), C = !0;
276
+ }, K = () => {
277
+ i.value.activate();
278
+ }, x = () => {
279
+ i.value.deactivate();
280
+ }, me = () => {
281
+ i.value.toggle(), C = !0;
284
282
  }, ye = () => {
285
- S.value && b.value && (se(), q(), V(() => {
283
+ w.value ? x() : K();
284
+ }, J = () => {
285
+ C = !0;
286
+ }, Q = (e) => {
287
+ if (!h.value && e.key !== "Tab") {
288
+ if (!w.value && (e.key === "Enter" || e.key === " ")) {
289
+ e.preventDefault(), i.value?.toggle();
290
+ return;
291
+ }
292
+ if (!w.value && e.key === "ArrowDown") {
293
+ e.preventDefault(), i.value?.toggle(), L(() => {
294
+ try {
295
+ i.value?.pointerForward?.();
296
+ } catch {
297
+ }
298
+ });
299
+ return;
300
+ }
301
+ if (w.value && e.key === "Escape") {
302
+ e.preventDefault(), x();
303
+ return;
304
+ }
305
+ if (w.value && (e.key === "Enter" || e.key === " ")) {
306
+ e.preventDefault();
307
+ try {
308
+ i.value?.addPointerElement?.({ key: e.key });
309
+ } catch {
310
+ }
311
+ z.value && x();
312
+ }
313
+ }
314
+ }, be = () => {
315
+ O.value && b.value && (se(), K(), L(() => {
286
316
  b.value.focus();
287
317
  }));
288
- }, Q = (e) => {
289
- if (_) {
290
- _ = !1;
318
+ }, X = (e) => {
319
+ if (C) {
320
+ C = !1;
291
321
  return;
292
322
  }
293
- const t = e.target, o = !v.value?.$el?.contains(t);
294
- if (I.value) {
295
- const w = b.value && !b.value.$el.contains(t) && !t.closest(".rds-e-dropdown__before-list");
296
- o && w && (I.value = !1, O());
297
- } else o && O();
323
+ const t = e.target, o = !i.value?.$el?.contains(t);
324
+ if (M.value) {
325
+ const g = b.value && !b.value.$el.contains(t) && !t.closest(".rds-e-dropdown__before-list");
326
+ o && g && (M.value = !1, x());
327
+ } else o && x();
298
328
  };
299
- return ke(() => {
300
- v.value?.$el && c.value.push(v.value.$el), V(() => {
301
- if (S.value && b.value?.$el) {
302
- c.value.push(b.value.$el);
329
+ return xe(() => {
330
+ i.value?.$el && f.value.push(i.value.$el), L(() => {
331
+ if (O.value && b.value?.$el) {
332
+ f.value.push(b.value.$el);
303
333
  const e = b.value.$el.closest(".rds-e-dropdown__before-list");
304
- e && !c.value.includes(e) && c.value.push(e);
334
+ e && !f.value.includes(e) && f.value.push(e);
305
335
  }
306
- }), document.addEventListener("pointerdown", Q);
307
- }), xe(() => {
308
- c.value = [], document.removeEventListener("pointerdown", Q);
309
- }), F({
336
+ }), document.addEventListener("pointerdown", X);
337
+ }), $e(() => {
338
+ f.value = [], document.removeEventListener("pointerdown", X);
339
+ }), _({
310
340
  /**
311
341
  * Abre el dropdown
312
342
  */
313
- activate: q,
343
+ activate: K,
314
344
  /**
315
345
  * Cierra el dropdown
316
346
  */
317
- deactivate: O
318
- }), (e, t) => (u(), y("div", {
319
- class: A(["rds-e-dropdown", {
320
- "rds-e-dropdown--text-only": r(N),
347
+ deactivate: x
348
+ }), (e, t) => (c(), y("div", {
349
+ class: R(["rds-e-dropdown", {
350
+ "rds-e-dropdown--text-only": a(N),
321
351
  "rds-e-dropdown--inverse": l.inverse
322
352
  }])
323
353
  }, [
324
- h($e, Y({
354
+ $(De, Z({
325
355
  ref_key: "multiselect",
326
- ref: v,
327
- modelValue: n.value,
328
- "onUpdate:modelValue": t[12] || (t[12] = (o) => n.value = o),
329
- class: de.value,
330
- options: pe.value,
331
- "close-on-select": ie.value,
356
+ ref: i,
357
+ modelValue: s.value,
358
+ "onUpdate:modelValue": t[12] || (t[12] = (o) => s.value = o),
359
+ class: ie.value,
360
+ options: ue.value,
361
+ "close-on-select": z.value,
332
362
  "show-labels": !1,
333
- disabled: r(D),
334
- multiple: r(x),
363
+ disabled: a(h),
364
+ multiple: a(D),
335
365
  "max-height": l.maxHeight,
336
366
  searchable: !1,
337
367
  "open-on-focus": !1,
338
368
  small: l.small,
339
- "open-direction": ue.value,
340
- limit: r(T),
369
+ "open-direction": de.value,
370
+ limit: a(F),
341
371
  "limit-text": l.limitText
342
- }, { ...K.value, ...e.$attrs }, {
372
+ }, { ...q.value, ...e.$attrs }, {
343
373
  "append-to-body": l.appendToBody,
344
- "text-only": r(N),
374
+ "text-only": a(N),
345
375
  onOpen: ce,
346
- onClose: me,
376
+ onClose: pe,
347
377
  onSelect: fe,
348
378
  "onUpdate:modelValue": ve,
349
- onBlur: a(() => null, ["prevent"])
350
- }), Z({
351
- selection: i(({ isOpen: o }) => [
352
- r(N) ? (u(), y("div", {
379
+ onBlur: r(() => null, ["prevent"])
380
+ }), ee({
381
+ selection: d(({ isOpen: o }) => [
382
+ a(N) ? (c(), y("div", {
353
383
  key: 0,
354
384
  id: `multiselect-dropdown-${l.id}`,
355
- class: A([l.customTriggerClass, "rds-e-dropdown__text-only"]),
356
- role: "button",
357
- tabindex: "0",
385
+ class: R([l.customTriggerClass, "rds-e-dropdown__text-only"]),
386
+ role: "combobox",
358
387
  "aria-haspopup": "listbox",
359
- "aria-expanded": o,
360
- onClick: a(H, ["prevent", "stop"]),
361
- onKeydown: [
362
- E(a(H, ["prevent", "stop"]), ["enter"]),
363
- E(a(H, ["prevent", "stop"]), ["space"])
364
- ]
388
+ "aria-expanded": w.value ? "true" : "false",
389
+ "aria-controls": `listbox-${l.id}`,
390
+ tabindex: "0",
391
+ onClick: r(ye, ["prevent", "stop"]),
392
+ onMousedown: r(J, ["prevent", "stop"]),
393
+ onKeydown: Q
365
394
  }, [
366
- m("span", null, R(M.value || l.label), 1),
367
- h(r(te), {
395
+ v("span", null, T(I.value || l.label), 1),
396
+ $(a(oe), {
368
397
  name: "arrow_down",
369
398
  "aria-hidden": "true",
370
- class: A(["rds-e-dropdown__input-caret", {
399
+ class: R(["rds-e-dropdown__input-caret", {
371
400
  "rds-e-dropdown__input-caret--open": o
372
401
  }])
373
402
  }, null, 8, ["class"])
374
- ], 42, Oe)) : (u(), y("div", {
403
+ ], 42, Ve)) : (c(), y("div", {
375
404
  key: 1,
376
405
  class: "rds-e-dropdown__input-wrapper",
377
406
  role: "button",
378
407
  "aria-haspopup": "listbox",
379
- "aria-expanded": o,
380
- onClick: a(U, ["prevent"]),
381
- onKeydown: [
382
- E(a(U, ["prevent"]), ["enter"]),
383
- E(a(U, ["prevent"]), ["space"])
384
- ]
408
+ "aria-expanded": w.value ? "true" : "false",
409
+ "aria-controls": `listbox-${l.id}`,
410
+ onClick: r(me, ["prevent"]),
411
+ onMousedown: r(J, ["prevent"]),
412
+ onKeydown: Q
385
413
  }, [
386
- h(r(oe), {
414
+ $(a(le), {
387
415
  id: `multiselect-dropdown-${l.id}`,
388
- modelValue: M.value,
389
- "onUpdate:modelValue": t[0] || (t[0] = (w) => M.value = w),
416
+ modelValue: I.value,
417
+ "onUpdate:modelValue": t[0] || (t[0] = (g) => I.value = g),
390
418
  class: "rds-e-dropdown__input",
391
419
  label: l.label,
420
+ disabled: a(h),
392
421
  error: l.error,
393
422
  helper: l.helper,
394
423
  "helper-text": l.helperText,
395
424
  loading: l.loading,
396
425
  readonly: ""
397
- }, Z({
398
- "right-icon": i(() => [
399
- h(r(te), {
426
+ }, ee({
427
+ "right-icon": d(() => [
428
+ $(a(oe), {
400
429
  name: "arrow_down",
401
430
  "aria-hidden": "true",
402
- class: A(["rds-e-dropdown__input-caret", {
431
+ class: R(["rds-e-dropdown__input-caret", {
403
432
  "rds-e-dropdown__input-caret--open": o
404
433
  }])
405
434
  }, null, 8, ["class"])
@@ -408,159 +437,159 @@ import './style/dropdown.css';const Oe = ["id", "aria-expanded", "onKeydown"], L
408
437
  }, [
409
438
  p("helper-text") ? {
410
439
  name: "helper-text",
411
- fn: i(() => [
412
- f(e.$slots, "helper-text", {}, void 0, !0)
440
+ fn: d(() => [
441
+ m(e.$slots, "helper-text", {}, void 0, !0)
413
442
  ]),
414
443
  key: "0"
415
444
  } : void 0
416
- ]), 1032, ["id", "modelValue", "label", "error", "helper", "helper-text", "loading"])
417
- ], 40, Le))
445
+ ]), 1032, ["id", "modelValue", "label", "disabled", "error", "helper", "helper-text", "loading"])
446
+ ], 40, Ae))
418
447
  ]),
419
- option: i(({ option: o, search: w, index: L }) => [
420
- m("div", Ve, [
421
- m("div", Ae, [
422
- m("div", Re, [
423
- r(x) ? (u(), ee(r(Ce), {
448
+ option: d(({ option: o, search: g, index: E }) => [
449
+ v("div", Ee, [
450
+ v("div", Re, [
451
+ v("div", Te, [
452
+ a(D) ? (c(), te(a(Ce), {
424
453
  key: 0,
425
- id: `${L}-${o.id}`,
454
+ id: `${E}-${o.id}`,
426
455
  small: l.small,
427
- "model-value": B(o),
428
- disabled: r(D) || o?.$isDisabled || !1,
429
- onClick: a((P) => J(o), ["prevent", "stop"])
430
- }, null, 8, ["id", "small", "model-value", "disabled", "onClick"])) : !r(x) && l.showRadio ? (u(), ee(r(De), {
456
+ "model-value": A(o),
457
+ disabled: a(h) || o?.$isDisabled || !1,
458
+ onClick: r((U) => G(o), ["prevent", "stop"])
459
+ }, null, 8, ["id", "small", "model-value", "disabled", "onClick"])) : !a(D) && l.showRadio ? (c(), te(a(Oe), {
431
460
  key: 1,
432
- modelValue: G.value,
433
- "onUpdate:modelValue": t[1] || (t[1] = (P) => G.value = P),
461
+ modelValue: W.value,
462
+ "onUpdate:modelValue": t[1] || (t[1] = (U) => W.value = U),
434
463
  "group-name": `group-${l.id}`
435
464
  }, {
436
- default: i(() => [
437
- h(r(_e), {
438
- id: `${L}-${typeof o == "object" ? o.id : L}`,
465
+ default: d(() => [
466
+ $(a(Be), {
467
+ id: `${E}-${typeof o == "object" ? o.id : E}`,
439
468
  small: l.small,
440
469
  option: typeof o == "object" ? o.id : o,
441
- checked: B(o),
442
- disabled: r(D) || o?.$isDisabled || !1,
443
- onClick: a((P) => J(o), ["prevent", "stop"])
470
+ checked: A(o),
471
+ disabled: a(h) || o?.$isDisabled || !1,
472
+ onClick: r((U) => G(o), ["prevent", "stop"])
444
473
  }, null, 8, ["id", "small", "option", "checked", "disabled", "onClick"])
445
474
  ]),
446
475
  _: 2
447
- }, 1032, ["modelValue", "group-name"])) : C("", !0)
476
+ }, 1032, ["modelValue", "group-name"])) : V("", !0)
448
477
  ]),
449
- m("div", Ee, [
450
- f(e.$slots, "singleLabel", { option: o }, () => [
451
- K.value?.label ? (u(), y(Se, { key: 0 }, [
452
- m("span", null, R(o.label), 1),
453
- o?.detail ? (u(), y("span", Fe, R(o.detail), 1)) : C("", !0)
454
- ], 64)) : (u(), y("span", Te, R(o), 1))
478
+ v("div", _e, [
479
+ m(e.$slots, "singleLabel", { option: o }, () => [
480
+ q.value?.label ? (c(), y(Se, { key: 0 }, [
481
+ v("span", null, T(o.label), 1),
482
+ o?.detail ? (c(), y("span", Fe, T(o.detail), 1)) : V("", !0)
483
+ ], 64)) : (c(), y("span", Ne, T(o), 1))
455
484
  ], !0)
456
485
  ])
457
486
  ]),
458
- p("optionAppend") ? (u(), y("div", Ne, [
459
- f(e.$slots, "optionAppend", {
487
+ p("optionAppend") ? (c(), y("div", je, [
488
+ m(e.$slots, "optionAppend", {
460
489
  option: o,
461
- search: w,
462
- index: L
490
+ search: g,
491
+ index: E
463
492
  }, void 0, !0)
464
- ])) : C("", !0)
493
+ ])) : V("", !0)
465
494
  ])
466
495
  ]),
467
496
  _: 2
468
497
  }, [
469
- S.value || p("beforeList") ? {
470
- name: Ue,
471
- fn: i(() => [
472
- S.value ? (u(), y("div", {
498
+ O.value || p("beforeList") ? {
499
+ name: Pe,
500
+ fn: d(() => [
501
+ O.value ? (c(), y("div", {
473
502
  key: 0,
474
503
  class: "rds-e-dropdown__before-list",
475
- onMousedown: t[5] || (t[5] = a(() => {
504
+ onMousedown: t[5] || (t[5] = r(() => {
476
505
  }, ["stop"])),
477
- onClick: a(ye, ["stop"]),
478
- onBlur: t[6] || (t[6] = a(() => {
506
+ onClick: r(be, ["stop"]),
507
+ onBlur: t[6] || (t[6] = r(() => {
479
508
  }, ["stop"])),
480
- onFocus: t[7] || (t[7] = a(() => {
509
+ onFocus: t[7] || (t[7] = r(() => {
481
510
  }, ["stop"])),
482
- onKeydown: t[8] || (t[8] = a(() => {
511
+ onKeydown: t[8] || (t[8] = r(() => {
483
512
  }, ["stop"])),
484
- onKeyup: t[9] || (t[9] = a(() => {
513
+ onKeyup: t[9] || (t[9] = r(() => {
485
514
  }, ["stop"])),
486
- onKeypress: t[10] || (t[10] = a(() => {
515
+ onKeypress: t[10] || (t[10] = r(() => {
487
516
  }, ["stop"])),
488
- onChange: t[11] || (t[11] = a(() => {
517
+ onChange: t[11] || (t[11] = r(() => {
489
518
  }, ["stop"]))
490
519
  }, [
491
- m("div", je, [
492
- h(r(oe), Y({
520
+ v("div", Me, [
521
+ $(a(le), Z({
493
522
  ref_key: "textFieldInput",
494
523
  ref: b,
495
524
  modelValue: j.value,
496
525
  "onUpdate:modelValue": t[2] || (t[2] = (o) => j.value = o)
497
526
  }, ae.value, {
498
527
  "full-width": "",
499
- onMousedown: t[3] || (t[3] = a(() => {
528
+ onMousedown: t[3] || (t[3] = r(() => {
500
529
  }, ["stop", "prevent"])),
501
- onFocus: t[4] || (t[4] = a(() => {
530
+ onFocus: t[4] || (t[4] = r(() => {
502
531
  }, ["stop"]))
503
532
  }), null, 16, ["modelValue"])
504
533
  ])
505
- ], 32)) : C("", !0),
506
- p("beforeList") ? (u(), y("div", Ie, [
507
- m("div", Me, [
508
- f(e.$slots, "beforeList", {}, void 0, !0)
534
+ ], 32)) : V("", !0),
535
+ p("beforeList") ? (c(), y("div", Ie, [
536
+ v("div", qe, [
537
+ m(e.$slots, "beforeList", {}, void 0, !0)
509
538
  ])
510
- ])) : C("", !0)
539
+ ])) : V("", !0)
511
540
  ]),
512
541
  key: "0"
513
542
  } : void 0,
514
543
  p("afterList") ? {
515
544
  name: He,
516
- fn: i(() => [
517
- m("div", Ke, [
518
- m("div", qe, [
519
- f(e.$slots, "afterList", {}, void 0, !0)
545
+ fn: d(() => [
546
+ v("div", Ke, [
547
+ v("div", Ue, [
548
+ m(e.$slots, "afterList", {}, void 0, !0)
520
549
  ])
521
550
  ])
522
551
  ]),
523
552
  key: "1"
524
553
  } : void 0,
525
554
  p("noOptions") ? {
526
- name: We,
527
- fn: i(() => [
528
- f(e.$slots, "noOptions", {}, void 0, !0)
555
+ name: ze,
556
+ fn: d(() => [
557
+ m(e.$slots, "noOptions", {}, void 0, !0)
529
558
  ]),
530
559
  key: "2"
531
560
  } : void 0,
532
561
  p("noResult") ? {
533
- name: ze,
534
- fn: i(({ search: o }) => [
535
- f(e.$slots, "noResult", { search: o }, void 0, !0)
562
+ name: Ge,
563
+ fn: d(({ search: o }) => [
564
+ m(e.$slots, "noResult", { search: o }, void 0, !0)
536
565
  ]),
537
566
  key: "3"
538
567
  } : void 0,
539
568
  p("limit") ? {
540
- name: Ge,
541
- fn: i(() => [
542
- f(e.$slots, "limit", {}, void 0, !0)
569
+ name: Je,
570
+ fn: d(() => [
571
+ m(e.$slots, "limit", {}, void 0, !0)
543
572
  ]),
544
573
  key: "4"
545
574
  } : void 0,
546
575
  p("maxElements") ? {
547
- name: Je,
548
- fn: i(() => [
549
- f(e.$slots, "maxElements", {}, void 0, !0)
576
+ name: Qe,
577
+ fn: d(() => [
578
+ m(e.$slots, "maxElements", {}, void 0, !0)
550
579
  ]),
551
580
  key: "5"
552
581
  } : void 0,
553
582
  p("singleLabel") ? {
554
- name: Pe,
555
- fn: i(({ option: o }) => [
556
- f(e.$slots, "singleLabel", { option: o }, void 0, !0)
583
+ name: We,
584
+ fn: d(({ option: o }) => [
585
+ m(e.$slots, "singleLabel", { option: o }, void 0, !0)
557
586
  ]),
558
587
  key: "6"
559
588
  } : void 0
560
589
  ]), 1040, ["modelValue", "class", "options", "close-on-select", "disabled", "multiple", "max-height", "small", "open-direction", "limit", "limit-text", "append-to-body", "text-only"])
561
590
  ], 2));
562
591
  }
563
- }), nt = /* @__PURE__ */ Be(Qe, [["__scopeId", "data-v-41324414"]]);
592
+ }), at = /* @__PURE__ */ Le(Xe, [["__scopeId", "data-v-14ac5f89"]]);
564
593
  export {
565
- nt as default
594
+ at as default
566
595
  };