energy-components 1.12.0 → 1.14.0

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