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