energy-components 1.13.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.
- package/dist/components/breadcrumbs.es.js +59 -40
- package/dist/components/dropdown.es.js +201 -152
- package/dist/components/indicator.es.js +8 -8
- package/dist/components/multiselect.es.js +15 -11
- package/dist/components/style/accordion.css +1 -1
- package/dist/components/style/actionButton.css +1 -1
- package/dist/components/style/breadcrumbs.css +1 -1
- package/dist/components/style/button.css +1 -1
- package/dist/components/style/checkbox.css +1 -1
- package/dist/components/style/collapsable.css +1 -1
- package/dist/components/style/directAccess.css +1 -1
- package/dist/components/style/dragAndDrop.css +1 -1
- package/dist/components/style/dropdown.css +1 -1
- package/dist/components/style/filterChip.css +1 -1
- package/dist/components/style/filterTag.css +1 -1
- package/dist/components/style/indicator.css +1 -1
- package/dist/components/style/infoBox.css +1 -1
- package/dist/components/style/link.css +1 -1
- package/dist/components/style/multiselect.css +1 -1
- package/dist/components/style/persistentToast.css +1 -1
- package/dist/components/style/progressBar.css +1 -1
- package/dist/components/style/quantitySelector.css +1 -1
- package/dist/components/style/radioButton.css +1 -1
- package/dist/components/style/selectionChip.css +1 -1
- package/dist/components/style/switch.css +1 -1
- package/dist/components/style/tableslotedcomponent.css +1 -1
- package/dist/components/style/tag.css +1 -1
- package/dist/components/style/textArea.css +1 -1
- package/dist/components/style/textField.css +1 -1
- package/dist/components/style/tooltip.css +1 -1
- package/dist/components/tooltip.es.js +344 -325
- package/dist/energy-components.es.js +4874 -4783
- package/dist/energy-components.umd.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/src/components/input/dropdown/dropdown.vue.d.ts +58 -13
- package/dist/types/src/components/navigation/breadcrumbs/breadcrumbs.vue.d.ts +15 -0
- package/dist/types/src/components/overlay/tooltip/tooltip.vue.d.ts +15 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { _ as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import { _ as
|
|
9
|
-
import './style/dropdown.css';const
|
|
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
|
-
},
|
|
12
|
+
}, Fe = { key: 1 }, Re = {
|
|
13
13
|
key: 0,
|
|
14
14
|
class: "rds-e-dropdown__option--append"
|
|
15
|
-
},
|
|
15
|
+
}, Te = { class: "rds-e-dropdown__before-list-container" }, Ee = {
|
|
16
16
|
key: 1,
|
|
17
17
|
class: "rds-e-dropdown__before-list"
|
|
18
|
-
},
|
|
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__ */
|
|
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,
|
|
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__ */
|
|
166
|
-
setup(o, { expose:
|
|
167
|
-
const s = o, k =
|
|
186
|
+
emits: /* @__PURE__ */ J(["open", "close", "select", "change"], ["update:modelValue"]),
|
|
187
|
+
setup(o, { expose: L, emit: ee }) {
|
|
188
|
+
const s = o, k = ee, {
|
|
168
189
|
disabled: $,
|
|
169
|
-
limit:
|
|
190
|
+
limit: M,
|
|
170
191
|
multiple: C,
|
|
171
|
-
options: h
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
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(() => ({
|
|
177
202
|
id: s.autocomplete.id || `autocomplete-${s.id}`,
|
|
178
203
|
label: s.autocomplete.label || s.label,
|
|
179
204
|
icon: s.autocomplete.icon || "",
|
|
@@ -185,52 +210,52 @@ 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
|
-
|
|
189
|
-
e && !
|
|
190
|
-
}),
|
|
191
|
-
const l =
|
|
192
|
-
l > -1 &&
|
|
193
|
-
}),
|
|
194
|
-
const l =
|
|
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"));
|
|
195
220
|
return l || t;
|
|
196
221
|
});
|
|
197
|
-
const
|
|
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
225
|
const l = h.value.find((t) => typeof t == "object" ? t.id === e : t === e);
|
|
201
226
|
r.value = l || null;
|
|
202
227
|
}
|
|
203
|
-
}),
|
|
204
|
-
get: () => r.value ? s.multiple ? Array.isArray(r.value) ? r.value.length >
|
|
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 : "" : "",
|
|
205
230
|
set: () => null
|
|
206
|
-
}),
|
|
231
|
+
}), ne = i(() => ({
|
|
207
232
|
"rds-e-dropdown-input": !0,
|
|
208
233
|
"rds-e-dropdown--disabled": $.value,
|
|
209
234
|
"rds-e-dropdown--small": s.small
|
|
210
|
-
})),
|
|
235
|
+
})), ae = i(() => s.openDirection !== "auto" ? s.openDirection : ""), N = i(() => {
|
|
211
236
|
const e = {};
|
|
212
|
-
return
|
|
237
|
+
return se.value && Object.assign(e, {
|
|
213
238
|
"track-by": "id",
|
|
214
239
|
label: "label"
|
|
215
240
|
}), e;
|
|
216
|
-
}),
|
|
241
|
+
}), de = i(() => D.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 (
|
|
245
|
+
if (N.value.label)
|
|
221
246
|
return r.value.some((l) => l.id === e.id);
|
|
222
247
|
}
|
|
223
248
|
return !1;
|
|
224
|
-
},
|
|
249
|
+
}, ie = (e) => {
|
|
225
250
|
k("open", e, s.id);
|
|
226
|
-
},
|
|
251
|
+
}, ue = (e) => {
|
|
227
252
|
k("close", e, s.id);
|
|
228
|
-
},
|
|
229
|
-
|
|
253
|
+
}, ce = (e) => {
|
|
254
|
+
R(() => {
|
|
230
255
|
k("select", e);
|
|
231
256
|
});
|
|
232
|
-
},
|
|
233
|
-
|
|
257
|
+
}, pe = () => {
|
|
258
|
+
R(() => {
|
|
234
259
|
if (C.value) {
|
|
235
260
|
const e = h.value.filter(
|
|
236
261
|
(l) => B(l)
|
|
@@ -243,83 +268,107 @@ import './style/dropdown.css';const $e = { class: "rds-e-dropdown" }, Ce = { cla
|
|
|
243
268
|
k("change", [e]);
|
|
244
269
|
}
|
|
245
270
|
});
|
|
246
|
-
},
|
|
247
|
-
|
|
248
|
-
},
|
|
249
|
-
|
|
250
|
-
},
|
|
251
|
-
|
|
252
|
-
},
|
|
253
|
-
|
|
254
|
-
},
|
|
255
|
-
|
|
256
|
-
|
|
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();
|
|
257
284
|
}));
|
|
258
|
-
},
|
|
259
|
-
var
|
|
260
|
-
if (
|
|
261
|
-
|
|
285
|
+
}, G = (e) => {
|
|
286
|
+
var f, g;
|
|
287
|
+
if (V) {
|
|
288
|
+
V = !1;
|
|
262
289
|
return;
|
|
263
290
|
}
|
|
264
|
-
const l = e.target, t = !((
|
|
265
|
-
if (
|
|
266
|
-
const
|
|
267
|
-
t &&
|
|
268
|
-
} else t &&
|
|
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();
|
|
269
296
|
};
|
|
270
|
-
return
|
|
297
|
+
return be(() => {
|
|
271
298
|
var e;
|
|
272
|
-
(e =
|
|
299
|
+
(e = m.value) != null && e.$el && p.value.push(m.value.$el), R(() => {
|
|
273
300
|
var l;
|
|
274
|
-
if (D.value && ((l =
|
|
275
|
-
|
|
276
|
-
const t =
|
|
277
|
-
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);
|
|
278
305
|
}
|
|
279
|
-
}), document.addEventListener("click",
|
|
280
|
-
}),
|
|
281
|
-
|
|
282
|
-
}),
|
|
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:
|
|
313
|
+
activate: A,
|
|
287
314
|
/**
|
|
288
315
|
* Cierra el dropdown
|
|
289
316
|
*/
|
|
290
|
-
deactivate:
|
|
291
|
-
}), (e, l) => (
|
|
292
|
-
|
|
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({
|
|
293
325
|
ref_key: "multiselect",
|
|
294
|
-
ref:
|
|
326
|
+
ref: m,
|
|
295
327
|
modelValue: r.value,
|
|
296
328
|
"onUpdate:modelValue": l[12] || (l[12] = (t) => r.value = t),
|
|
297
|
-
class:
|
|
298
|
-
options:
|
|
299
|
-
"close-on-select":
|
|
329
|
+
class: ne.value,
|
|
330
|
+
options: de.value,
|
|
331
|
+
"close-on-select": re.value,
|
|
300
332
|
"show-labels": !1,
|
|
301
333
|
disabled: n($),
|
|
302
334
|
multiple: n(C),
|
|
303
335
|
"max-height": o.maxHeight,
|
|
304
336
|
searchable: !1,
|
|
305
337
|
small: o.small,
|
|
306
|
-
"open-direction":
|
|
307
|
-
limit: n(
|
|
338
|
+
"open-direction": ae.value,
|
|
339
|
+
limit: n(M),
|
|
308
340
|
"limit-text": o.limitText
|
|
309
|
-
},
|
|
341
|
+
}, N.value, {
|
|
310
342
|
"append-to-body": o.appendToBody,
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
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"])),
|
|
316
349
|
onBlur: a(() => null, ["prevent"])
|
|
317
|
-
}),
|
|
350
|
+
}), X({
|
|
318
351
|
selection: d(({ isOpen: t }) => [
|
|
319
|
-
|
|
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,
|
|
320
369
|
id: `multiselect-dropdown-${o.id}`,
|
|
321
|
-
modelValue:
|
|
322
|
-
"onUpdate:modelValue": l[0] || (l[0] = (
|
|
370
|
+
modelValue: q.value,
|
|
371
|
+
"onUpdate:modelValue": l[0] || (l[0] = (f) => q.value = f),
|
|
323
372
|
class: "rds-e-dropdown__input",
|
|
324
373
|
disabled: n($),
|
|
325
374
|
label: o.label,
|
|
@@ -327,16 +376,16 @@ import './style/dropdown.css';const $e = { class: "rds-e-dropdown" }, Ce = { cla
|
|
|
327
376
|
helper: o.helper,
|
|
328
377
|
"helper-text": o.helperText,
|
|
329
378
|
readonly: "",
|
|
330
|
-
onMousedown: a(
|
|
331
|
-
},
|
|
379
|
+
onMousedown: a(W, ["prevent"])
|
|
380
|
+
}, X({
|
|
332
381
|
"right-icon": d(() => [
|
|
333
|
-
|
|
382
|
+
S(n(Y), {
|
|
334
383
|
name: "arrow_down",
|
|
335
384
|
"aria-hidden": "true",
|
|
336
|
-
class:
|
|
385
|
+
class: T(["rds-e-dropdown__input-caret", {
|
|
337
386
|
"rds-e-dropdown__input-caret--open": t
|
|
338
387
|
}]),
|
|
339
|
-
onMousedown: a(
|
|
388
|
+
onMousedown: a(W, ["prevent", "stop"])
|
|
340
389
|
}, null, 8, ["class"])
|
|
341
390
|
]),
|
|
342
391
|
_: 2
|
|
@@ -344,64 +393,64 @@ import './style/dropdown.css';const $e = { class: "rds-e-dropdown" }, Ce = { cla
|
|
|
344
393
|
e.$slots["helper-text"] ? {
|
|
345
394
|
name: "helper-text",
|
|
346
395
|
fn: d(() => [
|
|
347
|
-
|
|
396
|
+
v(e.$slots, "helper-text", {}, void 0, !0)
|
|
348
397
|
]),
|
|
349
398
|
key: "0"
|
|
350
399
|
} : void 0
|
|
351
|
-
]), 1032, ["id", "modelValue", "disabled", "label", "error", "helper", "helper-text"])
|
|
400
|
+
]), 1032, ["id", "modelValue", "disabled", "label", "error", "helper", "helper-text"]))
|
|
352
401
|
]),
|
|
353
402
|
placeholder: d(() => [
|
|
354
403
|
l[14] || (l[14] = c("span", null, null, -1))
|
|
355
404
|
]),
|
|
356
|
-
option: d(({ option: t, search:
|
|
357
|
-
c("div",
|
|
358
|
-
c("div",
|
|
359
|
-
c("div",
|
|
360
|
-
n(C) ? (
|
|
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), {
|
|
361
410
|
key: 0,
|
|
362
|
-
id: `${
|
|
411
|
+
id: `${g}-${t.id}`,
|
|
363
412
|
small: o.small,
|
|
364
413
|
"is-checked": B(t),
|
|
365
414
|
disabled: n($) || (t == null ? void 0 : t.$isDisabled) || !1,
|
|
366
|
-
onClick: a((
|
|
367
|
-
}, null, 8, ["id", "small", "is-checked", "disabled", "onClick"])) : !n(C) && o.showRadio ? (
|
|
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), {
|
|
368
417
|
key: 1,
|
|
369
|
-
modelValue:
|
|
370
|
-
"onUpdate:modelValue": l[1] || (l[1] = (
|
|
418
|
+
modelValue: H.value,
|
|
419
|
+
"onUpdate:modelValue": l[1] || (l[1] = (b) => H.value = b),
|
|
371
420
|
"group-name": `group-${o.id}`
|
|
372
421
|
}, {
|
|
373
422
|
default: d(() => [
|
|
374
|
-
|
|
375
|
-
id: `${
|
|
423
|
+
S(n(Ce), {
|
|
424
|
+
id: `${g}-${typeof t == "object" ? t.id : g}`,
|
|
376
425
|
small: o.small,
|
|
377
426
|
option: typeof t == "object" ? t.id : t,
|
|
378
427
|
checked: B(t),
|
|
379
428
|
disabled: n($) || (t == null ? void 0 : t.$isDisabled) || !1,
|
|
380
|
-
onClick: a((
|
|
429
|
+
onClick: a((b) => P(t), ["prevent", "stop"])
|
|
381
430
|
}, null, 8, ["id", "small", "option", "checked", "disabled", "onClick"])
|
|
382
431
|
]),
|
|
383
432
|
_: 2
|
|
384
|
-
}, 1032, ["modelValue", "group-name"])) :
|
|
433
|
+
}, 1032, ["modelValue", "group-name"])) : x("", !0)
|
|
385
434
|
]),
|
|
386
|
-
c("div",
|
|
387
|
-
|
|
388
|
-
var
|
|
435
|
+
c("div", Be, [
|
|
436
|
+
v(e.$slots, "singleLabel", { option: t }, () => {
|
|
437
|
+
var b;
|
|
389
438
|
return [
|
|
390
|
-
(
|
|
391
|
-
c("span", null,
|
|
392
|
-
t != null && t.detail ? (
|
|
393
|
-
], 64)) : (
|
|
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))
|
|
394
443
|
];
|
|
395
444
|
}, !0)
|
|
396
445
|
])
|
|
397
446
|
]),
|
|
398
|
-
e.$slots.optionAppend ? (
|
|
399
|
-
|
|
447
|
+
e.$slots.optionAppend ? (u(), w("div", Re, [
|
|
448
|
+
v(e.$slots, "optionAppend", {
|
|
400
449
|
option: t,
|
|
401
|
-
search:
|
|
402
|
-
index:
|
|
450
|
+
search: f,
|
|
451
|
+
index: g
|
|
403
452
|
}, void 0, !0)
|
|
404
|
-
])) :
|
|
453
|
+
])) : x("", !0)
|
|
405
454
|
])
|
|
406
455
|
]),
|
|
407
456
|
_: 2
|
|
@@ -409,40 +458,40 @@ import './style/dropdown.css';const $e = { class: "rds-e-dropdown" }, Ce = { cla
|
|
|
409
458
|
e.$slots.limit ? {
|
|
410
459
|
name: "limit",
|
|
411
460
|
fn: d(() => [
|
|
412
|
-
|
|
461
|
+
v(e.$slots, "limit", {}, void 0, !0)
|
|
413
462
|
]),
|
|
414
463
|
key: "0"
|
|
415
464
|
} : void 0,
|
|
416
465
|
e.$slots.maxElements ? {
|
|
417
466
|
name: "maxElements",
|
|
418
467
|
fn: d(() => [
|
|
419
|
-
|
|
468
|
+
v(e.$slots, "maxElements", {}, void 0, !0)
|
|
420
469
|
]),
|
|
421
470
|
key: "1"
|
|
422
471
|
} : void 0,
|
|
423
472
|
e.$slots.noResult ? {
|
|
424
473
|
name: "noResult",
|
|
425
474
|
fn: d(({ search: t }) => [
|
|
426
|
-
|
|
475
|
+
v(e.$slots, "noResult", { search: t }, void 0, !0)
|
|
427
476
|
]),
|
|
428
477
|
key: "2"
|
|
429
478
|
} : void 0,
|
|
430
479
|
e.$slots.noOptions ? {
|
|
431
480
|
name: "noOptions",
|
|
432
481
|
fn: d(() => [
|
|
433
|
-
|
|
482
|
+
v(e.$slots, "noOptions", {}, void 0, !0)
|
|
434
483
|
]),
|
|
435
484
|
key: "3"
|
|
436
485
|
} : void 0,
|
|
437
486
|
D.value || e.$slots.beforeList ? {
|
|
438
487
|
name: "beforeList",
|
|
439
488
|
fn: d(() => [
|
|
440
|
-
D.value ? (
|
|
489
|
+
D.value ? (u(), w("div", {
|
|
441
490
|
key: 0,
|
|
442
491
|
class: "rds-e-dropdown__before-list",
|
|
443
492
|
onMousedown: l[5] || (l[5] = a(() => {
|
|
444
493
|
}, ["stop"])),
|
|
445
|
-
onClick: a(
|
|
494
|
+
onClick: a(me, ["stop"]),
|
|
446
495
|
onBlur: l[6] || (l[6] = a(() => {
|
|
447
496
|
}, ["stop"])),
|
|
448
497
|
onFocus: l[7] || (l[7] = a(() => {
|
|
@@ -456,13 +505,13 @@ import './style/dropdown.css';const $e = { class: "rds-e-dropdown" }, Ce = { cla
|
|
|
456
505
|
onChange: l[11] || (l[11] = a(() => {
|
|
457
506
|
}, ["stop"]))
|
|
458
507
|
}, [
|
|
459
|
-
c("div",
|
|
460
|
-
|
|
508
|
+
c("div", Te, [
|
|
509
|
+
S(n(Z), Q({
|
|
461
510
|
ref_key: "textFieldInput",
|
|
462
|
-
ref:
|
|
463
|
-
modelValue:
|
|
464
|
-
"onUpdate:modelValue": l[2] || (l[2] = (t) =>
|
|
465
|
-
},
|
|
511
|
+
ref: y,
|
|
512
|
+
modelValue: I.value,
|
|
513
|
+
"onUpdate:modelValue": l[2] || (l[2] = (t) => I.value = t)
|
|
514
|
+
}, oe.value, {
|
|
466
515
|
"full-width": "",
|
|
467
516
|
onMousedown: l[3] || (l[3] = a(() => {
|
|
468
517
|
}, ["stop", "prevent"])),
|
|
@@ -470,30 +519,30 @@ import './style/dropdown.css';const $e = { class: "rds-e-dropdown" }, Ce = { cla
|
|
|
470
519
|
}, ["stop"]))
|
|
471
520
|
}), null, 16, ["modelValue"])
|
|
472
521
|
])
|
|
473
|
-
], 32)) :
|
|
474
|
-
e.$slots.beforeList ? (
|
|
475
|
-
c("div",
|
|
476
|
-
|
|
522
|
+
], 32)) : x("", !0),
|
|
523
|
+
e.$slots.beforeList ? (u(), w("div", Ee, [
|
|
524
|
+
c("div", Le, [
|
|
525
|
+
v(e.$slots, "beforeList", {}, void 0, !0)
|
|
477
526
|
])
|
|
478
|
-
])) :
|
|
527
|
+
])) : x("", !0)
|
|
479
528
|
]),
|
|
480
529
|
key: "4"
|
|
481
530
|
} : void 0,
|
|
482
531
|
e.$slots.afterList ? {
|
|
483
532
|
name: "afterList",
|
|
484
533
|
fn: d(() => [
|
|
485
|
-
c("div",
|
|
486
|
-
c("div",
|
|
487
|
-
|
|
534
|
+
c("div", Me, [
|
|
535
|
+
c("div", je, [
|
|
536
|
+
v(e.$slots, "afterList", {}, void 0, !0)
|
|
488
537
|
])
|
|
489
538
|
])
|
|
490
539
|
]),
|
|
491
540
|
key: "5"
|
|
492
541
|
} : void 0
|
|
493
|
-
]), 1040, ["modelValue", "class", "options", "close-on-select", "disabled", "multiple", "max-height", "small", "open-direction", "limit", "limit-text", "append-to-body"])
|
|
494
|
-
]));
|
|
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));
|
|
495
544
|
}
|
|
496
|
-
}),
|
|
545
|
+
}), ze = /* @__PURE__ */ De(Ie, [["__scopeId", "data-v-08d45c31"]]);
|
|
497
546
|
export {
|
|
498
|
-
|
|
547
|
+
ze as default
|
|
499
548
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as k, toRefs as z, ref as y, computed as N, watch as S, onMounted as q, onBeforeUnmount as P, createElementBlock as d, openBlock as u, normalizeClass as b, createElementVNode as p, normalizeStyle as V, Fragment as W, renderList as
|
|
2
|
-
import { d as
|
|
3
|
-
import { _ as
|
|
1
|
+
import { defineComponent as k, toRefs as z, ref as y, computed as N, watch as S, onMounted as q, onBeforeUnmount as P, createElementBlock as d, openBlock as u, normalizeClass as b, createElementVNode as p, normalizeStyle as V, Fragment as W, renderList as F, createCommentVNode as B, toDisplayString as C } from "vue";
|
|
2
|
+
import { d as I, t as A, a as T } from "./functions-DIHwdgF0.js";
|
|
3
|
+
import { _ as D } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
4
|
import './style/indicator.css';const M = { class: "rds-e-indicator__inner" }, U = { class: "rds-e-indicator__step-content" }, X = { key: 0 }, Y = /* @__PURE__ */ k({
|
|
5
5
|
__name: "indicator",
|
|
6
6
|
props: {
|
|
@@ -11,7 +11,7 @@ import './style/indicator.css';const M = { class: "rds-e-indicator__inner" }, U
|
|
|
11
11
|
type: Array,
|
|
12
12
|
required: !0,
|
|
13
13
|
validator(i) {
|
|
14
|
-
return !Array.isArray(i) || i.length === 0 ? (console.warn("Advertencia: steps debe ser un array no vacío de strings."), !1) : i.every((o) => typeof o != "string" ? (console.warn(`Advertencia: Todos los elementos en steps deben ser strings. Encontrado: ${typeof o}`), !1) : /^[a-z0-9\s]+$/i.test(o) ? !0 : (console.warn(`Advertencia: El paso "${o}" contiene caracteres no permitidos. Solo se permiten letras, números y espacios.`), !1));
|
|
14
|
+
return !Array.isArray(i) || i.length === 0 ? (console.warn("Advertencia: steps debe ser un array no vacío de strings."), !1) : i.every((o) => typeof o != "string" ? (console.warn(`Advertencia: Todos los elementos en steps deben ser strings. Encontrado: ${typeof o}`), !1) : /^[a-z0-9\s\u00C0-\u017F]+$/i.test(o) ? !0 : (console.warn(`Advertencia: El paso "${o}" contiene caracteres no permitidos. Solo se permiten letras, números y espacios.`), !1));
|
|
15
15
|
}
|
|
16
16
|
},
|
|
17
17
|
/**
|
|
@@ -109,7 +109,7 @@ import './style/indicator.css';const M = { class: "rds-e-indicator__inner" }, U
|
|
|
109
109
|
l,
|
|
110
110
|
"rds-e-indicator__bullet--current",
|
|
111
111
|
a
|
|
112
|
-
),
|
|
112
|
+
), T(n, l) || setTimeout(() => {
|
|
113
113
|
c.value[e].classList.remove(...n), c.value[e].classList.add(...l);
|
|
114
114
|
}, 150));
|
|
115
115
|
});
|
|
@@ -125,7 +125,7 @@ import './style/indicator.css';const M = { class: "rds-e-indicator__inner" }, U
|
|
|
125
125
|
), S(f, () => {
|
|
126
126
|
g();
|
|
127
127
|
}), q(() => {
|
|
128
|
-
h(), g(), window.addEventListener("resize",
|
|
128
|
+
h(), g(), window.addEventListener("resize", I(m, 200));
|
|
129
129
|
}), P(() => {
|
|
130
130
|
window.removeEventListener("resize", m);
|
|
131
131
|
}), (r, e) => (u(), d("div", {
|
|
@@ -148,7 +148,7 @@ import './style/indicator.css';const M = { class: "rds-e-indicator__inner" }, U
|
|
|
148
148
|
style: V(E.value)
|
|
149
149
|
}, null, 4)
|
|
150
150
|
], 512),
|
|
151
|
-
(u(!0), d(W, null,
|
|
151
|
+
(u(!0), d(W, null, F(t.steps, (s, a) => (u(), d("div", {
|
|
152
152
|
key: a,
|
|
153
153
|
class: b(["rds-e-indicator__step-wrapper", L(a)])
|
|
154
154
|
}, [
|
|
@@ -169,7 +169,7 @@ import './style/indicator.css';const M = { class: "rds-e-indicator__inner" }, U
|
|
|
169
169
|
])
|
|
170
170
|
], 2));
|
|
171
171
|
}
|
|
172
|
-
}), J = /* @__PURE__ */
|
|
172
|
+
}), J = /* @__PURE__ */ D(Y, [["__scopeId", "data-v-8eb9e922"]]);
|
|
173
173
|
export {
|
|
174
174
|
J as default
|
|
175
175
|
};
|