energy-components 1.13.0 → 1.14.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 (41) hide show
  1. package/dist/components/breadcrumbs.es.js +59 -40
  2. package/dist/components/dropdown.es.js +236 -188
  3. package/dist/components/indicator.es.js +8 -8
  4. package/dist/components/modal.es.js +2 -2
  5. package/dist/components/multiselect.es.js +15 -11
  6. package/dist/components/style/accordion.css +1 -1
  7. package/dist/components/style/actionButton.css +1 -1
  8. package/dist/components/style/breadcrumbs.css +1 -1
  9. package/dist/components/style/button.css +1 -1
  10. package/dist/components/style/checkbox.css +1 -1
  11. package/dist/components/style/collapsable.css +1 -1
  12. package/dist/components/style/directAccess.css +1 -1
  13. package/dist/components/style/dragAndDrop.css +1 -1
  14. package/dist/components/style/dropdown.css +1 -1
  15. package/dist/components/style/filterChip.css +1 -1
  16. package/dist/components/style/filterTag.css +1 -1
  17. package/dist/components/style/indicator.css +1 -1
  18. package/dist/components/style/infoBox.css +1 -1
  19. package/dist/components/style/link.css +1 -1
  20. package/dist/components/style/modal.css +1 -1
  21. package/dist/components/style/multiselect.css +1 -1
  22. package/dist/components/style/persistentToast.css +1 -1
  23. package/dist/components/style/progressBar.css +1 -1
  24. package/dist/components/style/quantitySelector.css +1 -1
  25. package/dist/components/style/radioButton.css +1 -1
  26. package/dist/components/style/selectionChip.css +1 -1
  27. package/dist/components/style/switch.css +1 -1
  28. package/dist/components/style/tableslotedcomponent.css +1 -1
  29. package/dist/components/style/tag.css +1 -1
  30. package/dist/components/style/textArea.css +1 -1
  31. package/dist/components/style/textField.css +1 -1
  32. package/dist/components/style/tooltip.css +1 -1
  33. package/dist/components/tooltip.es.js +344 -325
  34. package/dist/energy-components.es.js +4873 -4783
  35. package/dist/energy-components.umd.js +2 -2
  36. package/dist/style.css +1 -1
  37. package/dist/types/src/components/input/dropdown/dropdown.vue.d.ts +58 -13
  38. package/dist/types/src/components/navigation/breadcrumbs/breadcrumbs.vue.d.ts +15 -0
  39. package/dist/types/src/components/overlay/tooltip/tooltip.vue.d.ts +15 -0
  40. package/dist/types/tsconfig.tsbuildinfo +1 -1
  41. package/package.json +2 -2
@@ -1,23 +1,23 @@
1
- import { defineComponent as ie, mergeModels as P, toRefs as ue, useModel as ce, ref as S, computed as u, provide as I, onMounted as pe, nextTick as F, onBeforeUnmount as me, createElementBlock as g, openBlock as m, createVNode as V, mergeProps as W, unref as n, withModifiers as a, createSlots as z, withCtx as d, createElementVNode as c, createCommentVNode as O, createBlock as G, renderSlot as f, Fragment as fe, toDisplayString as _, normalizeClass as ve } from "vue";
2
- import be from "./multiselect.es.js";
3
- import ye from "./checkbox.es.js";
4
- import { _ as we } from "./radio-group.vue_vue_type_script_setup_true_lang-DpguLlRK.js";
5
- import ge from "./radioButton.es.js";
6
- import J from "./textField.es.js";
7
- import { R as he } from "./icon-svg-DuzOdbk1.js";
8
- import { _ as ke } from "./_plugin-vue_export-helper-CHgC5LLL.js";
9
- import './style/dropdown.css';const $e = { class: "rds-e-dropdown" }, Ce = { class: "rds-e-dropdown__option" }, De = { class: "rds-e-dropdown__option-container" }, Se = { class: "rds-e-dropdown__option--prepend" }, Ve = { class: "rds-e-dropdown__option--content" }, Oe = {
1
+ import { defineComponent as fe, mergeModels as J, toRefs as ve, useModel as ye, ref as D, computed as i, provide as U, onMounted as be, nextTick as R, onBeforeUnmount as we, createElementBlock as w, openBlock as u, normalizeClass as T, unref as a, createVNode as O, mergeProps as Q, withModifiers as n, createSlots as X, withCtx as d, createElementVNode as c, createCommentVNode as S, createBlock as K, renderSlot as v, Fragment as ge, toDisplayString as E } from "vue";
2
+ import he from "./multiselect.es.js";
3
+ import ke from "./checkbox.es.js";
4
+ import { _ as $e } from "./radio-group.vue_vue_type_script_setup_true_lang-DpguLlRK.js";
5
+ import Ce from "./radioButton.es.js";
6
+ import { R as Y } from "./icon-svg-DuzOdbk1.js";
7
+ import Z from "./textField.es.js";
8
+ import { _ as De } from "./_plugin-vue_export-helper-CHgC5LLL.js";
9
+ import './style/dropdown.css';const Oe = ["id"], Se = { class: "rds-e-dropdown__option" }, xe = { class: "rds-e-dropdown__option-container" }, Ve = { class: "rds-e-dropdown__option--prepend" }, Be = { class: "rds-e-dropdown__option--content" }, Ae = {
10
10
  key: 0,
11
11
  class: "rds-e-dropdown__option-detail"
12
- }, Ae = { key: 1 }, Be = {
12
+ }, Fe = { key: 1 }, Re = {
13
13
  key: 0,
14
14
  class: "rds-e-dropdown__option--append"
15
- }, Fe = { class: "rds-e-dropdown__before-list-container" }, Re = {
15
+ }, Te = { class: "rds-e-dropdown__before-list-container" }, Ee = {
16
16
  key: 1,
17
17
  class: "rds-e-dropdown__before-list"
18
- }, Ee = { class: "rds-e-dropdown__before-list-container" }, Le = { class: "rds-e-dropdown__after-list" }, xe = { class: "rds-e-dropdown__after-list-container" }, je = /* @__PURE__ */ ie({
18
+ }, Le = { class: "rds-e-dropdown__before-list-container" }, Me = { class: "rds-e-dropdown__after-list" }, je = { class: "rds-e-dropdown__after-list-container" }, Ie = /* @__PURE__ */ fe({
19
19
  __name: "dropdown",
20
- props: /* @__PURE__ */ P({
20
+ props: /* @__PURE__ */ J({
21
21
  /**
22
22
  * Id del dropdown
23
23
  */
@@ -75,7 +75,7 @@ import './style/dropdown.css';const $e = { class: "rds-e-dropdown" }, Ce = { cla
75
75
  showRadio: {
76
76
  type: Boolean,
77
77
  default: !1,
78
- validator: (o, R) => o && R.multiple ? (console.error("showRadio solo es valido para seleccion unica"), !1) : !0
78
+ validator: (o, L) => o && L.multiple ? (console.error("showRadio solo es valido para seleccion unica"), !1) : !0
79
79
  },
80
80
  /**
81
81
  * Indica si el campo de entrada contiene un error o no.
@@ -155,6 +155,27 @@ import './style/dropdown.css';const $e = { class: "rds-e-dropdown" }, Ce = { cla
155
155
  type: Object,
156
156
  default: () => {
157
157
  }
158
+ },
159
+ /**
160
+ * Indica si el dropdown trigger es de solo texto
161
+ */
162
+ textOnly: {
163
+ type: Boolean,
164
+ default: !1
165
+ },
166
+ /**
167
+ * Clase custom para el trigger del dropdown (solo aplica a text-only trigger)
168
+ */
169
+ customTriggerClass: {
170
+ type: String,
171
+ default: ""
172
+ },
173
+ /**
174
+ * Indica si el dropdown es de estilo inverso (solo para text-only)
175
+ */
176
+ inverse: {
177
+ type: Boolean,
178
+ default: !1
158
179
  }
159
180
  }, {
160
181
  modelValue: {
@@ -162,18 +183,22 @@ import './style/dropdown.css';const $e = { class: "rds-e-dropdown" }, Ce = { cla
162
183
  },
163
184
  modelModifiers: {}
164
185
  }),
165
- emits: /* @__PURE__ */ P(["open", "close", "select", "change"], ["update:modelValue"]),
166
- setup(o, { expose: R, emit: Q }) {
167
- const s = o, k = Q, {
168
- disabled: $,
169
- limit: E,
170
- multiple: C,
171
- options: h
172
- } = ue(s), r = ce(o, "modelValue"), i = S([]), v = S(), b = S(), L = S(""), x = S(!1);
173
- let A = !1;
174
- const X = () => {
175
- x.value = !0;
176
- }, D = u(() => s.autocomplete && Object.keys(s.autocomplete).length > 0), Y = u(() => ({
186
+ emits: /* @__PURE__ */ J(["open", "close", "select", "change"], ["update:modelValue"]),
187
+ setup(o, { expose: L, emit: ee }) {
188
+ const s = o, k = ee, {
189
+ disabled: x,
190
+ limit: M,
191
+ multiple: $,
192
+ options: h,
193
+ textOnly: j
194
+ } = ve(s), r = ye(o, "modelValue"), p = D([]), m = D(), y = D(), I = D(""), _ = D(!1);
195
+ let V = !1;
196
+ const te = () => {
197
+ _.value = !0;
198
+ }, le = i(() => {
199
+ var e;
200
+ return ((e = m.value) == null ? void 0 : e.isOpen) ?? !1;
201
+ }), C = i(() => s.autocomplete && Object.keys(s.autocomplete).length > 0), oe = i(() => ({
177
202
  id: s.autocomplete.id || `autocomplete-${s.id}`,
178
203
  label: s.autocomplete.label || s.label,
179
204
  icon: s.autocomplete.icon || "",
@@ -185,158 +210,181 @@ import './style/dropdown.css';const $e = { class: "rds-e-dropdown" }, Ce = { cla
185
210
  helperText: s.autocomplete.helperText ?? "",
186
211
  readonly: s.autocomplete.readonly ?? !1
187
212
  }));
188
- I("registerDropdownFocusElement", (e) => {
189
- e && !i.value.includes(e) && i.value.push(e);
190
- }), I("unregisterDropdownFocusElement", (e) => {
191
- const l = i.value.findIndex((t) => t === e);
192
- l > -1 && i.value.splice(l, 1);
193
- }), I("isFocusWithinDropdown", (e) => {
194
- const l = i.value.some((p) => p === e || p.contains(e)), t = e.classList && (e.classList.contains("rds-e-dropdown__before-list") || e.closest(".rds-e-dropdown__before-list") || e.classList.contains("multiselect") || e.closest(".multiselect"));
195
- return l || t;
213
+ U("registerDropdownFocusElement", (e) => {
214
+ e && !p.value.includes(e) && p.value.push(e);
215
+ }), U("unregisterDropdownFocusElement", (e) => {
216
+ const t = p.value.findIndex((l) => l === e);
217
+ t > -1 && p.value.splice(t, 1);
218
+ }), U("isFocusWithinDropdown", (e) => {
219
+ const t = p.value.some((f) => f === e || f.contains(e)), l = e.classList && (e.classList.contains("rds-e-dropdown__before-list") || e.closest(".rds-e-dropdown__before-list") || e.classList.contains("multiselect") || e.closest(".multiselect"));
220
+ return t || l;
196
221
  });
197
- const q = u({
222
+ const H = i({
198
223
  get: () => r.value && typeof r.value == "object" && !Array.isArray(r.value) ? r.value.id : typeof r.value == "string" || typeof r.value == "number" ? r.value : null,
199
224
  set: (e) => {
200
- const l = h.value.find((t) => typeof t == "object" ? t.id === e : t === e);
201
- r.value = l || null;
225
+ const t = h.value.find((l) => typeof l == "object" ? l.id === e : l === e);
226
+ r.value = t || null;
202
227
  }
203
- }), Z = u(() => (h.value ?? []).every((e) => typeof e == "object" && (e == null ? void 0 : e.id) && (e == null ? void 0 : e.label))), ee = u(() => !C.value || s.closeOnSelect), N = u({
204
- get: () => r.value ? s.multiple ? Array.isArray(r.value) ? r.value.length > E.value ? s.limitText(E.value) : r.value.map((e) => typeof e == "string" ? e : e.label).join(", ") : "" : typeof r.value == "object" ? r.value.label : typeof r.value == "string" ? r.value : "" : "",
228
+ }), se = i(() => (h.value ?? []).every((e) => typeof e == "object" && (e == null ? void 0 : e.id) && (e == null ? void 0 : e.label))), re = i(() => !$.value || s.closeOnSelect), q = i({
229
+ get: () => r.value ? s.multiple ? Array.isArray(r.value) ? r.value.length > M.value ? s.limitText(M.value) : r.value.map((e) => typeof e == "string" ? e : e.label).join(", ") : "" : typeof r.value == "object" ? r.value.label : typeof r.value == "string" ? r.value : "" : "",
205
230
  set: () => null
206
- }), le = u(() => ({
231
+ }), ne = i(() => ({
207
232
  "rds-e-dropdown-input": !0,
208
- "rds-e-dropdown--disabled": $.value,
233
+ "rds-e-dropdown--disabled": x.value,
209
234
  "rds-e-dropdown--small": s.small
210
- })), te = u(() => s.openDirection !== "auto" ? s.openDirection : ""), j = u(() => {
235
+ })), ae = i(() => s.openDirection !== "auto" ? s.openDirection : ""), N = i(() => {
211
236
  const e = {};
212
- return Z.value && Object.assign(e, {
237
+ return se.value && Object.assign(e, {
213
238
  "track-by": "id",
214
239
  label: "label"
215
240
  }), e;
216
- }), oe = u(() => D.value && s.autocomplete.autocompleteFilter ? h.value.filter((e) => s.autocomplete.autocompleteFilter(e, L.value)) : h.value), B = (e) => {
241
+ }), de = i(() => C.value && s.autocomplete.autocompleteFilter ? h.value.filter((e) => s.autocomplete.autocompleteFilter(e, I.value)) : h.value), B = (e) => {
217
242
  if (r.value === e) return !0;
218
243
  if (Array.isArray(r.value)) {
219
244
  if (typeof e == "string") return r.value.includes(e);
220
- if (j.value.label)
221
- return r.value.some((l) => l.id === e.id);
245
+ if (N.value.label)
246
+ return r.value.some((t) => t.id === e.id);
222
247
  }
223
248
  return !1;
224
- }, se = (e) => {
249
+ }, ie = (e) => {
225
250
  k("open", e, s.id);
226
- }, re = (e) => {
251
+ }, ue = (e) => {
227
252
  k("close", e, s.id);
228
- }, ae = (e) => {
229
- F(() => {
253
+ }, ce = (e) => {
254
+ R(() => {
230
255
  k("select", e);
231
256
  });
232
- }, ne = () => {
233
- F(() => {
234
- if (C.value) {
257
+ }, pe = () => {
258
+ R(() => {
259
+ if ($.value) {
235
260
  const e = h.value.filter(
236
- (l) => B(l)
261
+ (t) => B(t)
237
262
  ) || [];
238
263
  k("change", e);
239
264
  } else {
240
265
  const e = h.value.find(
241
- (l) => B(l)
266
+ (t) => B(t)
242
267
  );
243
268
  k("change", [e]);
244
269
  }
245
270
  });
246
- }, U = (e) => {
247
- v.value.select(e), A = !0;
248
- }, M = () => {
249
- v.value.activate();
250
- }, T = () => {
251
- v.value.deactivate();
252
- }, K = () => {
253
- v.value.toggle(), A = !0;
254
- }, de = () => {
255
- D.value && b.value && (X(), M(), F(() => {
256
- b.value.focus();
271
+ }, P = (e) => {
272
+ m.value.select(e), V = !0;
273
+ }, A = () => {
274
+ m.value.activate();
275
+ }, F = () => {
276
+ m.value.deactivate();
277
+ }, W = () => {
278
+ m.value.toggle(), V = !0;
279
+ }, z = () => {
280
+ le.value ? F() : A();
281
+ }, me = () => {
282
+ C.value && y.value && (te(), A(), R(() => {
283
+ y.value.focus();
257
284
  }));
258
- }, H = (e) => {
259
- var p, w;
260
- if (A) {
261
- A = !1;
285
+ }, G = (e) => {
286
+ var f, g;
287
+ if (V) {
288
+ V = !1;
262
289
  return;
263
290
  }
264
- const l = e.target, t = !((w = (p = v.value) == null ? void 0 : p.$el) != null && w.contains(l));
265
- if (x.value) {
266
- const y = b.value && !b.value.$el.contains(l) && !l.closest(".rds-e-dropdown__before-list");
267
- t && y && (x.value = !1, T());
268
- } else t && T();
291
+ const t = e.target, l = !((g = (f = m.value) == null ? void 0 : f.$el) != null && g.contains(t));
292
+ if (_.value) {
293
+ const b = y.value && !y.value.$el.contains(t) && !t.closest(".rds-e-dropdown__before-list");
294
+ l && b && (_.value = !1, F());
295
+ } else l && F();
269
296
  };
270
- return pe(() => {
297
+ return be(() => {
271
298
  var e;
272
- (e = v.value) != null && e.$el && i.value.push(v.value.$el), F(() => {
273
- var l;
274
- if (D.value && ((l = b.value) != null && l.$el)) {
275
- i.value.push(b.value.$el);
276
- const t = b.value.$el.closest(".rds-e-dropdown__before-list");
277
- t && !i.value.includes(t) && i.value.push(t);
299
+ (e = m.value) != null && e.$el && p.value.push(m.value.$el), R(() => {
300
+ var t;
301
+ if (C.value && ((t = y.value) != null && t.$el)) {
302
+ p.value.push(y.value.$el);
303
+ const l = y.value.$el.closest(".rds-e-dropdown__before-list");
304
+ l && !p.value.includes(l) && p.value.push(l);
278
305
  }
279
- }), document.addEventListener("click", H);
280
- }), me(() => {
281
- i.value = [], document.removeEventListener("click", H);
282
- }), R({
306
+ }), document.addEventListener("click", G);
307
+ }), we(() => {
308
+ p.value = [], document.removeEventListener("click", G);
309
+ }), L({
283
310
  /**
284
311
  * Abre el dropdown
285
312
  */
286
- activate: M,
313
+ activate: A,
287
314
  /**
288
315
  * Cierra el dropdown
289
316
  */
290
- deactivate: T
291
- }), (e, l) => (m(), g("div", $e, [
292
- V(be, W({
317
+ deactivate: F
318
+ }), (e, t) => (u(), w("div", {
319
+ class: T(["rds-e-dropdown", {
320
+ "rds-e-dropdown--text-only": a(j),
321
+ "rds-e-dropdown--inverse": o.inverse
322
+ }])
323
+ }, [
324
+ O(he, Q({
293
325
  ref_key: "multiselect",
294
- ref: v,
326
+ ref: m,
295
327
  modelValue: r.value,
296
- "onUpdate:modelValue": l[12] || (l[12] = (t) => r.value = t),
297
- class: le.value,
298
- options: oe.value,
299
- "close-on-select": ee.value,
328
+ "onUpdate:modelValue": t[12] || (t[12] = (l) => r.value = l),
329
+ class: ne.value,
330
+ options: de.value,
331
+ "close-on-select": re.value,
300
332
  "show-labels": !1,
301
- disabled: n($),
302
- multiple: n(C),
333
+ disabled: a(x),
334
+ multiple: a($),
303
335
  "max-height": o.maxHeight,
304
336
  searchable: !1,
305
337
  small: o.small,
306
- "open-direction": te.value,
307
- limit: n(E),
338
+ "open-direction": ae.value,
339
+ limit: a(M),
308
340
  "limit-text": o.limitText
309
- }, j.value, {
341
+ }, N.value, {
310
342
  "append-to-body": o.appendToBody,
311
- onOpen: se,
312
- onClose: re,
313
- onSelect: ae,
314
- "onUpdate:modelValue": ne,
315
- onFocus: l[13] || (l[13] = a(() => M(), ["prevent"])),
316
- onBlur: a(() => null, ["prevent"])
317
- }), z({
318
- selection: d(({ isOpen: t }) => [
319
- V(n(J), {
343
+ "text-only": a(j),
344
+ onOpen: ie,
345
+ onClose: ue,
346
+ onSelect: ce,
347
+ "onUpdate:modelValue": pe,
348
+ onFocus: t[13] || (t[13] = n(() => A(), ["prevent"])),
349
+ onBlur: n(() => null, ["prevent"])
350
+ }), X({
351
+ selection: d(({ isOpen: l }) => [
352
+ a(j) ? (u(), w("div", {
353
+ key: 0,
354
+ id: `multiselect-dropdown-${o.id}`,
355
+ class: T([o.customTriggerClass, "rds-e-dropdown__text-only"]),
356
+ onMousedown: n(z, ["prevent", "stop"])
357
+ }, [
358
+ c("span", null, E(q.value || o.label), 1),
359
+ O(a(Y), {
360
+ name: "arrow_down",
361
+ "aria-hidden": "true",
362
+ class: T(["rds-e-dropdown__input-caret", {
363
+ "rds-e-dropdown__input-caret--open": l
364
+ }]),
365
+ onMousedown: n(z, ["prevent", "stop"])
366
+ }, null, 8, ["class"])
367
+ ], 42, Oe)) : (u(), K(a(Z), {
368
+ key: 1,
320
369
  id: `multiselect-dropdown-${o.id}`,
321
- modelValue: N.value,
322
- "onUpdate:modelValue": l[0] || (l[0] = (p) => N.value = p),
370
+ modelValue: q.value,
371
+ "onUpdate:modelValue": t[0] || (t[0] = (f) => q.value = f),
323
372
  class: "rds-e-dropdown__input",
324
- disabled: n($),
325
373
  label: o.label,
326
374
  error: o.error,
327
375
  helper: o.helper,
328
376
  "helper-text": o.helperText,
329
377
  readonly: "",
330
- onMousedown: a(K, ["prevent"])
331
- }, z({
378
+ onMousedown: n(W, ["prevent"])
379
+ }, X({
332
380
  "right-icon": d(() => [
333
- V(n(he), {
381
+ O(a(Y), {
334
382
  name: "arrow_down",
335
383
  "aria-hidden": "true",
336
- class: ve(["rds-e-dropdown__input-caret", {
337
- "rds-e-dropdown__input-caret--open": t
384
+ class: T(["rds-e-dropdown__input-caret", {
385
+ "rds-e-dropdown__input-caret--open": l
338
386
  }]),
339
- onMousedown: a(K, ["prevent", "stop"])
387
+ onMousedown: n(W, ["prevent", "stop"])
340
388
  }, null, 8, ["class"])
341
389
  ]),
342
390
  _: 2
@@ -344,64 +392,64 @@ import './style/dropdown.css';const $e = { class: "rds-e-dropdown" }, Ce = { cla
344
392
  e.$slots["helper-text"] ? {
345
393
  name: "helper-text",
346
394
  fn: d(() => [
347
- f(e.$slots, "helper-text", {}, void 0, !0)
395
+ v(e.$slots, "helper-text", {}, void 0, !0)
348
396
  ]),
349
397
  key: "0"
350
398
  } : void 0
351
- ]), 1032, ["id", "modelValue", "disabled", "label", "error", "helper", "helper-text"])
399
+ ]), 1032, ["id", "modelValue", "label", "error", "helper", "helper-text"]))
352
400
  ]),
353
401
  placeholder: d(() => [
354
- l[14] || (l[14] = c("span", null, null, -1))
402
+ t[14] || (t[14] = c("span", null, null, -1))
355
403
  ]),
356
- option: d(({ option: t, search: p, index: w }) => [
357
- c("div", Ce, [
358
- c("div", De, [
359
- c("div", Se, [
360
- n(C) ? (m(), G(n(ye), {
404
+ option: d(({ option: l, search: f, index: g }) => [
405
+ c("div", Se, [
406
+ c("div", xe, [
407
+ c("div", Ve, [
408
+ a($) ? (u(), K(a(ke), {
361
409
  key: 0,
362
- id: `${w}-${t.id}`,
410
+ id: `${g}-${l.id}`,
363
411
  small: o.small,
364
- "is-checked": B(t),
365
- disabled: n($) || (t == null ? void 0 : t.$isDisabled) || !1,
366
- onClick: a((y) => U(t), ["prevent", "stop"])
367
- }, null, 8, ["id", "small", "is-checked", "disabled", "onClick"])) : !n(C) && o.showRadio ? (m(), G(n(we), {
412
+ "is-checked": B(l),
413
+ disabled: a(x) || (l == null ? void 0 : l.$isDisabled) || !1,
414
+ onClick: n((b) => P(l), ["prevent", "stop"])
415
+ }, null, 8, ["id", "small", "is-checked", "disabled", "onClick"])) : !a($) && o.showRadio ? (u(), K(a($e), {
368
416
  key: 1,
369
- modelValue: q.value,
370
- "onUpdate:modelValue": l[1] || (l[1] = (y) => q.value = y),
417
+ modelValue: H.value,
418
+ "onUpdate:modelValue": t[1] || (t[1] = (b) => H.value = b),
371
419
  "group-name": `group-${o.id}`
372
420
  }, {
373
421
  default: d(() => [
374
- V(n(ge), {
375
- id: `${w}-${typeof t == "object" ? t.id : w}`,
422
+ O(a(Ce), {
423
+ id: `${g}-${typeof l == "object" ? l.id : g}`,
376
424
  small: o.small,
377
- option: typeof t == "object" ? t.id : t,
378
- checked: B(t),
379
- disabled: n($) || (t == null ? void 0 : t.$isDisabled) || !1,
380
- onClick: a((y) => U(t), ["prevent", "stop"])
425
+ option: typeof l == "object" ? l.id : l,
426
+ checked: B(l),
427
+ disabled: a(x) || (l == null ? void 0 : l.$isDisabled) || !1,
428
+ onClick: n((b) => P(l), ["prevent", "stop"])
381
429
  }, null, 8, ["id", "small", "option", "checked", "disabled", "onClick"])
382
430
  ]),
383
431
  _: 2
384
- }, 1032, ["modelValue", "group-name"])) : O("", !0)
432
+ }, 1032, ["modelValue", "group-name"])) : S("", !0)
385
433
  ]),
386
- c("div", Ve, [
387
- f(e.$slots, "singleLabel", { option: t }, () => {
388
- var y;
434
+ c("div", Be, [
435
+ v(e.$slots, "singleLabel", { option: l }, () => {
436
+ var b;
389
437
  return [
390
- (y = j.value) != null && y.label ? (m(), g(fe, { key: 0 }, [
391
- c("span", null, _(t.label), 1),
392
- t != null && t.detail ? (m(), g("span", Oe, _(t.detail), 1)) : O("", !0)
393
- ], 64)) : (m(), g("span", Ae, _(t), 1))
438
+ (b = N.value) != null && b.label ? (u(), w(ge, { key: 0 }, [
439
+ c("span", null, E(l.label), 1),
440
+ l != null && l.detail ? (u(), w("span", Ae, E(l.detail), 1)) : S("", !0)
441
+ ], 64)) : (u(), w("span", Fe, E(l), 1))
394
442
  ];
395
443
  }, !0)
396
444
  ])
397
445
  ]),
398
- e.$slots.optionAppend ? (m(), g("div", Be, [
399
- f(e.$slots, "optionAppend", {
400
- option: t,
401
- search: p,
402
- index: w
446
+ e.$slots.optionAppend ? (u(), w("div", Re, [
447
+ v(e.$slots, "optionAppend", {
448
+ option: l,
449
+ search: f,
450
+ index: g
403
451
  }, void 0, !0)
404
- ])) : O("", !0)
452
+ ])) : S("", !0)
405
453
  ])
406
454
  ]),
407
455
  _: 2
@@ -409,91 +457,91 @@ import './style/dropdown.css';const $e = { class: "rds-e-dropdown" }, Ce = { cla
409
457
  e.$slots.limit ? {
410
458
  name: "limit",
411
459
  fn: d(() => [
412
- f(e.$slots, "limit", {}, void 0, !0)
460
+ v(e.$slots, "limit", {}, void 0, !0)
413
461
  ]),
414
462
  key: "0"
415
463
  } : void 0,
416
464
  e.$slots.maxElements ? {
417
465
  name: "maxElements",
418
466
  fn: d(() => [
419
- f(e.$slots, "maxElements", {}, void 0, !0)
467
+ v(e.$slots, "maxElements", {}, void 0, !0)
420
468
  ]),
421
469
  key: "1"
422
470
  } : void 0,
423
471
  e.$slots.noResult ? {
424
472
  name: "noResult",
425
- fn: d(({ search: t }) => [
426
- f(e.$slots, "noResult", { search: t }, void 0, !0)
473
+ fn: d(({ search: l }) => [
474
+ v(e.$slots, "noResult", { search: l }, void 0, !0)
427
475
  ]),
428
476
  key: "2"
429
477
  } : void 0,
430
478
  e.$slots.noOptions ? {
431
479
  name: "noOptions",
432
480
  fn: d(() => [
433
- f(e.$slots, "noOptions", {}, void 0, !0)
481
+ v(e.$slots, "noOptions", {}, void 0, !0)
434
482
  ]),
435
483
  key: "3"
436
484
  } : void 0,
437
- D.value || e.$slots.beforeList ? {
485
+ C.value || e.$slots.beforeList ? {
438
486
  name: "beforeList",
439
487
  fn: d(() => [
440
- D.value ? (m(), g("div", {
488
+ C.value ? (u(), w("div", {
441
489
  key: 0,
442
490
  class: "rds-e-dropdown__before-list",
443
- onMousedown: l[5] || (l[5] = a(() => {
491
+ onMousedown: t[5] || (t[5] = n(() => {
444
492
  }, ["stop"])),
445
- onClick: a(de, ["stop"]),
446
- onBlur: l[6] || (l[6] = a(() => {
493
+ onClick: n(me, ["stop"]),
494
+ onBlur: t[6] || (t[6] = n(() => {
447
495
  }, ["stop"])),
448
- onFocus: l[7] || (l[7] = a(() => {
496
+ onFocus: t[7] || (t[7] = n(() => {
449
497
  }, ["stop"])),
450
- onKeydown: l[8] || (l[8] = a(() => {
498
+ onKeydown: t[8] || (t[8] = n(() => {
451
499
  }, ["stop"])),
452
- onKeyup: l[9] || (l[9] = a(() => {
500
+ onKeyup: t[9] || (t[9] = n(() => {
453
501
  }, ["stop"])),
454
- onKeypress: l[10] || (l[10] = a(() => {
502
+ onKeypress: t[10] || (t[10] = n(() => {
455
503
  }, ["stop"])),
456
- onChange: l[11] || (l[11] = a(() => {
504
+ onChange: t[11] || (t[11] = n(() => {
457
505
  }, ["stop"]))
458
506
  }, [
459
- c("div", Fe, [
460
- V(n(J), W({
507
+ c("div", Te, [
508
+ O(a(Z), Q({
461
509
  ref_key: "textFieldInput",
462
- ref: b,
463
- modelValue: L.value,
464
- "onUpdate:modelValue": l[2] || (l[2] = (t) => L.value = t)
465
- }, Y.value, {
510
+ ref: y,
511
+ modelValue: I.value,
512
+ "onUpdate:modelValue": t[2] || (t[2] = (l) => I.value = l)
513
+ }, oe.value, {
466
514
  "full-width": "",
467
- onMousedown: l[3] || (l[3] = a(() => {
515
+ onMousedown: t[3] || (t[3] = n(() => {
468
516
  }, ["stop", "prevent"])),
469
- onFocus: l[4] || (l[4] = a(() => {
517
+ onFocus: t[4] || (t[4] = n(() => {
470
518
  }, ["stop"]))
471
519
  }), null, 16, ["modelValue"])
472
520
  ])
473
- ], 32)) : O("", !0),
474
- e.$slots.beforeList ? (m(), g("div", Re, [
475
- c("div", Ee, [
476
- f(e.$slots, "beforeList", {}, void 0, !0)
521
+ ], 32)) : S("", !0),
522
+ e.$slots.beforeList ? (u(), w("div", Ee, [
523
+ c("div", Le, [
524
+ v(e.$slots, "beforeList", {}, void 0, !0)
477
525
  ])
478
- ])) : O("", !0)
526
+ ])) : S("", !0)
479
527
  ]),
480
528
  key: "4"
481
529
  } : void 0,
482
530
  e.$slots.afterList ? {
483
531
  name: "afterList",
484
532
  fn: d(() => [
485
- c("div", Le, [
486
- c("div", xe, [
487
- f(e.$slots, "afterList", {}, void 0, !0)
533
+ c("div", Me, [
534
+ c("div", je, [
535
+ v(e.$slots, "afterList", {}, void 0, !0)
488
536
  ])
489
537
  ])
490
538
  ]),
491
539
  key: "5"
492
540
  } : void 0
493
- ]), 1040, ["modelValue", "class", "options", "close-on-select", "disabled", "multiple", "max-height", "small", "open-direction", "limit", "limit-text", "append-to-body"])
494
- ]));
541
+ ]), 1040, ["modelValue", "class", "options", "close-on-select", "disabled", "multiple", "max-height", "small", "open-direction", "limit", "limit-text", "append-to-body", "text-only"])
542
+ ], 2));
495
543
  }
496
- }), He = /* @__PURE__ */ ke(je, [["__scopeId", "data-v-7f9fb2a0"]]);
544
+ }), ze = /* @__PURE__ */ De(Ie, [["__scopeId", "data-v-571e3275"]]);
497
545
  export {
498
- He as default
546
+ ze as default
499
547
  };