energy-components 1.14.1 → 1.15.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/accordion.es.js +30 -27
- package/dist/components/actionButton.es.js +56 -11
- package/dist/components/avatar.es.js +24 -16
- package/dist/components/breadcrumbs.es.js +37 -29
- package/dist/components/button.es.js +31 -22
- package/dist/components/card.es.js +17 -9
- package/dist/components/checkbox.es.js +67 -56
- package/dist/components/collapsable.es.js +1 -1
- package/dist/components/{collapsable.scss_vue_type_style_index_0_src_true_lang-DfOWp1XD.js → collapsable.scss_vue_type_style_index_0_src_true_lang-Bi5q6Y3n.js} +1 -1
- package/dist/components/directAccess.es.js +26 -18
- package/dist/components/dragAndDrop.es.js +1 -1
- package/dist/components/dropdown.es.js +27 -27
- package/dist/components/fileUploadItem.es.js +23 -21
- package/dist/components/filterChip.es.js +22 -14
- package/dist/components/filterTag.es.js +27 -19
- package/dist/components/floating-ui.vue-7LKzPqHI.js +1148 -0
- package/dist/components/floatingActionButton.es.js +19 -11
- package/dist/components/{icon-svg-DuzOdbk1.js → icon-svg-BU0OQFKH.js} +990 -742
- package/dist/components/iconList.es.js +1 -1
- package/dist/components/iconSvg.es.js +1 -1
- package/dist/components/index.es.js +83 -77
- package/dist/components/indicator.es.js +37 -29
- package/dist/components/infoBox.es.js +47 -39
- package/dist/components/link.es.js +22 -13
- package/dist/components/loader.es.js +22 -21
- package/dist/components/modal.es.js +37 -28
- package/dist/components/overlay.es.js +21 -11
- package/dist/components/pagination.es.js +164 -109
- package/dist/components/persistentToast.es.js +32 -24
- package/dist/components/popover.es.js +166 -0
- package/dist/components/progressBar.es.js +30 -22
- package/dist/components/quantitySelector.es.js +60 -48
- package/dist/components/radioButton.es.js +1 -1
- package/dist/components/selectionChip.es.js +15 -7
- package/dist/components/sidedrawer.es.js +1 -1
- package/dist/components/snackBar.es.js +131 -0
- package/dist/components/style/accordion.css +1 -1
- package/dist/components/style/actionButton.css +1 -1
- package/dist/components/style/avatar.css +1 -1
- package/dist/components/style/breadcrumbs.css +1 -1
- package/dist/components/style/button.css +1 -1
- package/dist/components/style/card.css +1 -1
- package/dist/components/style/checkbox.css +1 -1
- package/dist/components/style/directAccess.css +1 -1
- package/dist/components/style/fileUploadItem.css +1 -1
- package/dist/components/style/filterChip.css +1 -1
- package/dist/components/style/filterTag.css +1 -1
- package/dist/components/style/floatingActionButton.css +1 -1
- package/dist/components/style/icon-svg.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/loader.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/popover.css +1 -0
- package/dist/components/style/progressBar.css +1 -1
- package/dist/components/style/quantitySelector.css +1 -1
- package/dist/components/style/selectionChip.css +1 -1
- package/dist/components/style/snackBar.css +1 -0
- package/dist/components/style/tabBar.css +1 -1
- package/dist/components/style/tag.css +1 -1
- package/dist/components/style/textArea.css +1 -1
- package/dist/components/style/toggle.css +1 -1
- package/dist/components/style/tooltip.css +1 -1
- package/dist/components/switch.es.js +1 -1
- package/dist/components/tabBar.es.js +23 -15
- package/dist/components/tableslotedcomponent.es.js +1 -1
- package/dist/components/tag.es.js +31 -23
- package/dist/components/textArea.es.js +57 -57
- package/dist/components/textField.es.js +1 -1
- package/dist/components/toggle.es.js +20 -16
- package/dist/components/tooltip.es.js +71 -1019
- package/dist/energy-components.es.js +6825 -5824
- package/dist/energy-components.umd.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/src/components/buttons/action-button/action-button.vue.d.ts +47 -0
- package/dist/types/src/components/buttons/button/button.vue.d.ts +15 -0
- package/dist/types/src/components/buttons/floating-action-button/floating-action-button.vue.d.ts +15 -0
- package/dist/types/src/components/content/avatar/avatar.vue.d.ts +15 -0
- package/dist/types/src/components/content/card/card.vue.d.ts +15 -0
- package/dist/types/src/components/content/collapsable/collapsable.vue.d.ts +1 -1
- package/dist/types/src/components/content/tag/tag.vue.d.ts +15 -0
- package/dist/types/src/components/feedback/indicator/indicator.vue.d.ts +15 -0
- package/dist/types/src/components/feedback/info-box/info-box.vue.d.ts +15 -0
- package/dist/types/src/components/feedback/loader/loader.vue.d.ts +1 -1
- package/dist/types/src/components/feedback/persistent-toast/persistent-toast.vue.d.ts +15 -0
- package/dist/types/src/components/feedback/progress-bar/progress-bar.vue.d.ts +15 -0
- package/dist/types/src/components/feedback/snack-bar/snack-bar.vue.d.ts +180 -0
- package/dist/types/src/components/icon-svg/icon-svg.vue.d.ts +15 -0
- package/dist/types/src/components/index.d.ts +2 -0
- package/dist/types/src/components/input/checkbox/checkbox.vue.d.ts +24 -7
- package/dist/types/src/components/input/drag-and-drop/drag-and-drop.vue.d.ts +1 -1
- package/dist/types/src/components/input/file-upload-item/file-upload-item.vue.d.ts +1 -1
- package/dist/types/src/components/input/filter-chip/filter-chip.vue.d.ts +15 -0
- package/dist/types/src/components/input/filter-tag/filter-tag.vue.d.ts +15 -0
- package/dist/types/src/components/input/quantity-selector/quantity-selector.vue.d.ts +15 -0
- package/dist/types/src/components/input/selection-chip/selection-chip.vue.d.ts +15 -0
- package/dist/types/src/components/input/switch/switch.vue.d.ts +1 -1
- package/dist/types/src/components/input/toggle/toggle.vue.d.ts +4 -0
- package/dist/types/src/components/navigation/breadcrumbs/breadcrumbs.vue.d.ts +15 -0
- package/dist/types/src/components/navigation/direct-access/direct-access.vue.d.ts +15 -0
- package/dist/types/src/components/navigation/link/link.vue.d.ts +15 -0
- package/dist/types/src/components/navigation/pagination/pagination.vue.d.ts +47 -0
- package/dist/types/src/components/navigation/tab-bar/tab-bar.vue.d.ts +15 -0
- package/dist/types/src/components/overlay/modal/modal.vue.d.ts +15 -0
- package/dist/types/src/components/overlay/overlay/overlay.vue.d.ts +15 -0
- package/dist/types/src/components/overlay/popover/popover.vue.d.ts +35 -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,8 +1,9 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { R as
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
1
|
+
import { defineComponent as V, computed as r, ref as c, watch as _, onMounted as D, onBeforeUnmount as E, createElementBlock as L, openBlock as u, normalizeClass as d, createElementVNode as b, renderSlot as N, createTextVNode as R, createBlock as x, createCommentVNode as T, toDisplayString as q, withCtx as U, createVNode as z } from "vue";
|
|
2
|
+
import { R as y } from "./icon-svg-BU0OQFKH.js";
|
|
3
|
+
import I from "./tooltip.es.js";
|
|
4
|
+
import { g as F } from "./getInstance-GhoEcxLF.js";
|
|
5
|
+
import { _ as K } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
+
import './style/checkbox.css';const M = ["id", "checked", "aria-label", "required", "disabled"], $ = ["for"], j = /* @__PURE__ */ V({
|
|
6
7
|
__name: "checkbox",
|
|
7
8
|
props: {
|
|
8
9
|
/**
|
|
@@ -17,7 +18,7 @@ import './style/checkbox.css';const p = ["id", "checked", "aria-label", "require
|
|
|
17
18
|
*/
|
|
18
19
|
id: {
|
|
19
20
|
type: [String, Number],
|
|
20
|
-
default:
|
|
21
|
+
default: void 0
|
|
21
22
|
},
|
|
22
23
|
/**
|
|
23
24
|
* <span>Texto de accesibilidad</span>
|
|
@@ -41,11 +42,19 @@ import './style/checkbox.css';const p = ["id", "checked", "aria-label", "require
|
|
|
41
42
|
default: ""
|
|
42
43
|
},
|
|
43
44
|
/**
|
|
45
|
+
* @deprecated Usar `v-model` o la prop `modelValue` en su lugar.
|
|
44
46
|
* <span>Estado del checkbox</span>
|
|
45
47
|
*/
|
|
46
48
|
isChecked: {
|
|
47
49
|
type: Boolean,
|
|
48
|
-
default:
|
|
50
|
+
default: void 0
|
|
51
|
+
},
|
|
52
|
+
/**
|
|
53
|
+
* <span>Valor del checkbox, para uso con v-model.</span>
|
|
54
|
+
*/
|
|
55
|
+
modelValue: {
|
|
56
|
+
type: Boolean,
|
|
57
|
+
default: void 0
|
|
49
58
|
},
|
|
50
59
|
/**
|
|
51
60
|
* <span>Indica si el campo es requerido</span>
|
|
@@ -77,58 +86,60 @@ import './style/checkbox.css';const p = ["id", "checked", "aria-label", "require
|
|
|
77
86
|
}
|
|
78
87
|
},
|
|
79
88
|
emits: ["update:modelValue"],
|
|
80
|
-
setup(e, { emit:
|
|
81
|
-
const
|
|
82
|
-
|
|
83
|
-
a.
|
|
84
|
-
}), f
|
|
85
|
-
|
|
86
|
-
(
|
|
87
|
-
|
|
89
|
+
setup(e, { emit: w }) {
|
|
90
|
+
const a = e, g = w, m = r(() => a.modelValue !== void 0), f = c(a.isChecked ?? !1), i = c(!1), s = c(!1), t = c(null), p = c(`rds-e-checkbox-${F()}`), h = r(() => {
|
|
91
|
+
var o;
|
|
92
|
+
return ((o = a.id) == null ? void 0 : o.toString()) || p.value;
|
|
93
|
+
}), l = r(() => m.value ? a.modelValue ?? !1 : f.value);
|
|
94
|
+
_(
|
|
95
|
+
() => [a.indeterminate, l.value],
|
|
96
|
+
([o, n]) => {
|
|
97
|
+
t.value && (t.value.indeterminate = o && n);
|
|
88
98
|
},
|
|
89
99
|
{ immediate: !0 }
|
|
90
100
|
);
|
|
91
|
-
const
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
101
|
+
const C = (o) => {
|
|
102
|
+
const n = o.target.checked;
|
|
103
|
+
m.value || (f.value = n), g("update:modelValue", n);
|
|
104
|
+
}, k = (o) => {
|
|
105
|
+
o.key === "Tab" && (s.value = !0);
|
|
106
|
+
}, v = () => {
|
|
107
|
+
s.value = !1;
|
|
108
|
+
}, S = () => {
|
|
109
|
+
s.value && (i.value = !0);
|
|
110
|
+
}, B = () => i.value = !1;
|
|
111
|
+
return D(() => {
|
|
112
|
+
t.value && (t.value.indeterminate = !!(a.indeterminate && l.value)), window.addEventListener("keydown", k), window.addEventListener("mousedown", v);
|
|
113
|
+
}), E(() => {
|
|
114
|
+
window.removeEventListener("keydown", k), window.removeEventListener("mousedown", v);
|
|
115
|
+
}), (o, n) => (u(), L("div", {
|
|
116
|
+
class: d(["rds-e-checkbox__container", { "rds-e-checkbox__container--focused": i.value }])
|
|
106
117
|
}, [
|
|
107
|
-
|
|
108
|
-
id:
|
|
118
|
+
b("input", {
|
|
119
|
+
id: h.value,
|
|
109
120
|
ref_key: "inputRef",
|
|
110
|
-
ref:
|
|
111
|
-
checked:
|
|
121
|
+
ref: t,
|
|
122
|
+
checked: l.value,
|
|
112
123
|
"aria-label": e.accessibilityLabel,
|
|
113
124
|
type: "checkbox",
|
|
114
|
-
class:
|
|
125
|
+
class: d(["rds-e-checkbox", { "rds-e-checkbox--error": e.error }]),
|
|
115
126
|
required: e.required,
|
|
116
127
|
disabled: e.disabled,
|
|
117
|
-
onChange:
|
|
118
|
-
onFocus:
|
|
119
|
-
onBlur:
|
|
120
|
-
}, null, 42,
|
|
121
|
-
|
|
122
|
-
for:
|
|
123
|
-
class:
|
|
128
|
+
onChange: C,
|
|
129
|
+
onFocus: S,
|
|
130
|
+
onBlur: B
|
|
131
|
+
}, null, 42, M),
|
|
132
|
+
b("label", {
|
|
133
|
+
for: h.value,
|
|
134
|
+
class: d(["rds-e-checkbox__label", {
|
|
124
135
|
"rds-e-checkbox__label--disabled": e.disabled,
|
|
125
|
-
"rds-e-checkbox__label--checked":
|
|
126
|
-
"rds-e-checkbox__label--indeterminate": e.indeterminate &&
|
|
136
|
+
"rds-e-checkbox__label--checked": l.value,
|
|
137
|
+
"rds-e-checkbox__label--indeterminate": e.indeterminate && l.value
|
|
127
138
|
}])
|
|
128
139
|
}, [
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
class:
|
|
140
|
+
N(o.$slots, "label-text", {}, () => [
|
|
141
|
+
b("span", {
|
|
142
|
+
class: d([
|
|
132
143
|
"rds-e-checkbox__label-box",
|
|
133
144
|
{
|
|
134
145
|
"rds-e-checkbox__label-box--disabled": e.disabled,
|
|
@@ -136,33 +147,33 @@ import './style/checkbox.css';const p = ["id", "checked", "aria-label", "require
|
|
|
136
147
|
}
|
|
137
148
|
])
|
|
138
149
|
}, [
|
|
139
|
-
|
|
140
|
-
e.icon && e.iconTooltip ? (
|
|
150
|
+
R(q(e.label) + " ", 1),
|
|
151
|
+
e.icon && e.iconTooltip ? (u(), x(I, {
|
|
141
152
|
key: 0,
|
|
142
153
|
content: e.iconTooltip,
|
|
143
154
|
placement: "top",
|
|
144
155
|
"offset-space": 8
|
|
145
156
|
}, {
|
|
146
|
-
default:
|
|
147
|
-
|
|
157
|
+
default: U(() => [
|
|
158
|
+
z(y, {
|
|
148
159
|
class: "rds-e-checkbox__label-box--icon",
|
|
149
160
|
name: e.icon,
|
|
150
161
|
size: "sm"
|
|
151
162
|
}, null, 8, ["name"])
|
|
152
163
|
]),
|
|
153
164
|
_: 1
|
|
154
|
-
}, 8, ["content"])) : e.icon ? (
|
|
165
|
+
}, 8, ["content"])) : e.icon ? (u(), x(y, {
|
|
155
166
|
key: 1,
|
|
156
167
|
class: "rds-e-checkbox__label-box--icon",
|
|
157
168
|
name: e.icon,
|
|
158
169
|
size: "sm"
|
|
159
|
-
}, null, 8, ["name"])) :
|
|
170
|
+
}, null, 8, ["name"])) : T("", !0)
|
|
160
171
|
], 2)
|
|
161
172
|
], !0)
|
|
162
|
-
], 10,
|
|
173
|
+
], 10, $)
|
|
163
174
|
], 2));
|
|
164
175
|
}
|
|
165
|
-
}),
|
|
176
|
+
}), P = /* @__PURE__ */ K(j, [["__scopeId", "data-v-bee9602e"]]);
|
|
166
177
|
export {
|
|
167
|
-
|
|
178
|
+
P as default
|
|
168
179
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as w, ref as d, computed as r, watch as f, nextTick as c, createElementBlock as B, openBlock as m, normalizeClass as i, createElementVNode as a, withKeys as C, createBlock as S, createCommentVNode as $, createVNode as I, toDisplayString as v, renderSlot as N, createTextVNode as V } from "vue";
|
|
2
|
-
import { R as h } from "./icon-svg-
|
|
2
|
+
import { R as h } from "./icon-svg-BU0OQFKH.js";
|
|
3
3
|
import './style/collapsable.css';const H = ["id", "aria-expanded", "aria-controls", "disabled"], x = { class: "rds-e-collapsable__header-title" }, D = { class: "rds-e-collapsable__header-title-text" }, E = ["id", "aria-labelledby"], W = /* @__PURE__ */ w({
|
|
4
4
|
__name: "collapsable",
|
|
5
5
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as j, toRefs as E, computed as o, createBlock as d, openBlock as
|
|
2
|
-
import { R as S } from "./icon-svg-
|
|
1
|
+
import { defineComponent as j, toRefs as E, computed as o, createBlock as d, openBlock as l, resolveDynamicComponent as I, unref as t, normalizeClass as N, withCtx as O, renderSlot as u, createElementVNode as m, createCommentVNode as b, createElementBlock as T, normalizeStyle as w, toDisplayString as V } from "vue";
|
|
2
|
+
import { R as S } from "./icon-svg-BU0OQFKH.js";
|
|
3
3
|
import { _ as q } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
4
|
import './style/directAccess.css';const A = { class: "rds-e-direct-access__artwork-container" }, M = ["src", "alt", "aria-hidden"], F = { class: "rds-e-direct-access__text-container" }, G = { class: "rds-e-direct-access__text" }, H = /* @__PURE__ */ j({
|
|
5
5
|
__name: "direct-access",
|
|
@@ -19,7 +19,7 @@ import './style/directAccess.css';const A = { class: "rds-e-direct-access__artwo
|
|
|
19
19
|
layout: {
|
|
20
20
|
type: String,
|
|
21
21
|
default: "horizontal",
|
|
22
|
-
validator: (
|
|
22
|
+
validator: (i) => ["horizontal", "vertical"].includes(i)
|
|
23
23
|
},
|
|
24
24
|
/**
|
|
25
25
|
* Objeto para configurar el arte gráfico (icono o microilustración).
|
|
@@ -68,16 +68,23 @@ import './style/directAccess.css';const A = { class: "rds-e-direct-access__artwo
|
|
|
68
68
|
useRouterLink: {
|
|
69
69
|
type: Boolean,
|
|
70
70
|
default: !1
|
|
71
|
+
},
|
|
72
|
+
/**
|
|
73
|
+
* ID del direct-access para testing
|
|
74
|
+
*/
|
|
75
|
+
id: {
|
|
76
|
+
type: String,
|
|
77
|
+
default: void 0
|
|
71
78
|
}
|
|
72
79
|
},
|
|
73
80
|
emits: ["click"],
|
|
74
|
-
setup(
|
|
75
|
-
const x =
|
|
81
|
+
setup(i, { emit: g }) {
|
|
82
|
+
const x = i, z = g, { text: p, layout: C, disabled: c, arrow: _, artwork: r, ariaLabel: $, linkTo: a, useRouterLink: B } = E(x), L = o(() => [
|
|
76
83
|
"rds-e-direct-access",
|
|
77
84
|
`rds-e-direct-access--${C.value}`,
|
|
78
85
|
{ "rds-e-direct-access--disabled": c.value },
|
|
79
|
-
{ "rds-e-direct-access--with-arrow":
|
|
80
|
-
]), n = o(() => B.value && !!a.value), R = o(() => $.value ||
|
|
86
|
+
{ "rds-e-direct-access--with-arrow": _.value }
|
|
87
|
+
]), n = o(() => B.value && !!a.value), R = o(() => $.value || p.value), f = o(() => {
|
|
81
88
|
var e;
|
|
82
89
|
return (e = r.value) != null && e.microillustration && (r.value.microillustration.path || r.value.microillustration.url) || "";
|
|
83
90
|
}), v = (e) => {
|
|
@@ -91,7 +98,8 @@ import './style/directAccess.css';const A = { class: "rds-e-direct-access__artwo
|
|
|
91
98
|
}
|
|
92
99
|
z("click", e);
|
|
93
100
|
};
|
|
94
|
-
return (e, s) => (
|
|
101
|
+
return (e, s) => (l(), d(I(t(a) ? n.value ? "router-link" : "a" : "button"), {
|
|
102
|
+
id: i.id,
|
|
95
103
|
type: t(a) ? void 0 : "button",
|
|
96
104
|
href: !n.value && t(a) ? t(a) : void 0,
|
|
97
105
|
to: n.value && t(a) ? t(a) : void 0,
|
|
@@ -106,41 +114,41 @@ import './style/directAccess.css';const A = { class: "rds-e-direct-access__artwo
|
|
|
106
114
|
u(e.$slots, "artwork", {}, () => {
|
|
107
115
|
var k, y, h;
|
|
108
116
|
return [
|
|
109
|
-
(y = (k = t(r)) == null ? void 0 : k.icon) != null && y.name ? (
|
|
117
|
+
(y = (k = t(r)) == null ? void 0 : k.icon) != null && y.name ? (l(), d(S, {
|
|
110
118
|
key: 0,
|
|
111
119
|
name: t(r).icon.name,
|
|
112
|
-
style:
|
|
120
|
+
style: w(v(t(r).icon)),
|
|
113
121
|
class: "rds-e-direct-access__artwork-item rds-e-direct-access__artwork-item--icon",
|
|
114
122
|
"aria-hidden": "true"
|
|
115
|
-
}, null, 8, ["name", "style"])) : (h = t(r)) != null && h.microillustration && f.value ? (
|
|
123
|
+
}, null, 8, ["name", "style"])) : (h = t(r)) != null && h.microillustration && f.value ? (l(), T("img", {
|
|
116
124
|
key: 1,
|
|
117
125
|
src: f.value,
|
|
118
126
|
alt: t(r).microillustration.alt || "",
|
|
119
|
-
style:
|
|
127
|
+
style: w(v(t(r).microillustration)),
|
|
120
128
|
class: "rds-e-direct-access__artwork-item rds-e-direct-access__artwork-item--microillustration",
|
|
121
129
|
"aria-hidden": !t(r).microillustration.alt
|
|
122
|
-
}, null, 12, M)) :
|
|
130
|
+
}, null, 12, M)) : b("", !0)
|
|
123
131
|
];
|
|
124
132
|
}, !0)
|
|
125
133
|
]),
|
|
126
134
|
m("div", F, [
|
|
127
135
|
u(e.$slots, "text", {}, () => [
|
|
128
|
-
m("span", G, V(t(
|
|
136
|
+
m("span", G, V(t(p)), 1)
|
|
129
137
|
], !0)
|
|
130
138
|
]),
|
|
131
|
-
t(
|
|
139
|
+
t(_) ? (l(), d(S, {
|
|
132
140
|
key: 0,
|
|
133
141
|
name: "arrow_right",
|
|
134
142
|
small: "",
|
|
135
143
|
class: "rds-e-direct-access__arrow",
|
|
136
144
|
"aria-hidden": "true"
|
|
137
|
-
})) :
|
|
145
|
+
})) : b("", !0)
|
|
138
146
|
], !0)
|
|
139
147
|
]),
|
|
140
148
|
_: 3
|
|
141
|
-
}, 8, ["type", "href", "to", "class", "disabled", "aria-label"]));
|
|
149
|
+
}, 8, ["id", "type", "href", "to", "class", "disabled", "aria-label"]));
|
|
142
150
|
}
|
|
143
|
-
}), Q = /* @__PURE__ */ q(H, [["__scopeId", "data-v-
|
|
151
|
+
}), Q = /* @__PURE__ */ q(H, [["__scopeId", "data-v-9bb4e0b7"]]);
|
|
144
152
|
export {
|
|
145
153
|
Q as default
|
|
146
154
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as k, ref as _, computed as c, createElementBlock as b, openBlock as x, withModifiers as f, normalizeClass as q, createElementVNode as u, renderSlot as L, createVNode as M, createCommentVNode as z, toDisplayString as D } from "vue";
|
|
2
2
|
import { g as A } from "./getInstance-GhoEcxLF.js";
|
|
3
|
-
import { R as U } from "./icon-svg-
|
|
3
|
+
import { R as U } from "./icon-svg-BU0OQFKH.js";
|
|
4
4
|
import { _ as V } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
import './style/dragAndDrop.css';const O = ["id", "accept", "multiple", "disabled"], P = ["for"], j = { class: "rds-e-drag-and-drop__icon-wrapper" }, G = { class: "rds-e-drag-and-drop__text-container" }, H = { class: "rds-e-drag-and-drop__text" }, J = {
|
|
6
6
|
key: 0,
|
|
@@ -1,15 +1,15 @@
|
|
|
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
|
|
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 F, onBeforeUnmount as we, createElementBlock as w, openBlock as u, normalizeClass as T, unref as a, createVNode as S, mergeProps as Q, withModifiers as n, createSlots as X, withCtx as d, createElementVNode as c, createCommentVNode as O, createBlock as K, renderSlot as v, Fragment as ge, toDisplayString as E } 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 { R as Y } from "./icon-svg-
|
|
6
|
+
import { R as Y } from "./icon-svg-BU0OQFKH.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 Se = ["id"], Oe = { 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
|
+
}, Re = { key: 1 }, Fe = {
|
|
13
13
|
key: 0,
|
|
14
14
|
class: "rds-e-dropdown__option--append"
|
|
15
15
|
}, Te = { class: "rds-e-dropdown__before-list-container" }, Ee = {
|
|
@@ -251,11 +251,11 @@ import './style/dropdown.css';const Oe = ["id"], Se = { class: "rds-e-dropdown__
|
|
|
251
251
|
}, ue = (e) => {
|
|
252
252
|
k("close", e, s.id);
|
|
253
253
|
}, ce = (e) => {
|
|
254
|
-
|
|
254
|
+
F(() => {
|
|
255
255
|
k("select", e);
|
|
256
256
|
});
|
|
257
257
|
}, pe = () => {
|
|
258
|
-
|
|
258
|
+
F(() => {
|
|
259
259
|
if ($.value) {
|
|
260
260
|
const e = h.value.filter(
|
|
261
261
|
(t) => B(t)
|
|
@@ -272,14 +272,14 @@ import './style/dropdown.css';const Oe = ["id"], Se = { class: "rds-e-dropdown__
|
|
|
272
272
|
m.value.select(e), V = !0;
|
|
273
273
|
}, A = () => {
|
|
274
274
|
m.value.activate();
|
|
275
|
-
},
|
|
275
|
+
}, R = () => {
|
|
276
276
|
m.value.deactivate();
|
|
277
277
|
}, W = () => {
|
|
278
278
|
m.value.toggle(), V = !0;
|
|
279
279
|
}, z = () => {
|
|
280
|
-
le.value ?
|
|
280
|
+
le.value ? R() : A();
|
|
281
281
|
}, me = () => {
|
|
282
|
-
C.value && y.value && (te(), A(),
|
|
282
|
+
C.value && y.value && (te(), A(), F(() => {
|
|
283
283
|
y.value.focus();
|
|
284
284
|
}));
|
|
285
285
|
}, G = (e) => {
|
|
@@ -291,12 +291,12 @@ import './style/dropdown.css';const Oe = ["id"], Se = { class: "rds-e-dropdown__
|
|
|
291
291
|
const t = e.target, l = !((g = (f = m.value) == null ? void 0 : f.$el) != null && g.contains(t));
|
|
292
292
|
if (_.value) {
|
|
293
293
|
const b = y.value && !y.value.$el.contains(t) && !t.closest(".rds-e-dropdown__before-list");
|
|
294
|
-
l && b && (_.value = !1,
|
|
295
|
-
} else l &&
|
|
294
|
+
l && b && (_.value = !1, R());
|
|
295
|
+
} else l && R();
|
|
296
296
|
};
|
|
297
297
|
return be(() => {
|
|
298
298
|
var e;
|
|
299
|
-
(e = m.value) != null && e.$el && p.value.push(m.value.$el),
|
|
299
|
+
(e = m.value) != null && e.$el && p.value.push(m.value.$el), F(() => {
|
|
300
300
|
var t;
|
|
301
301
|
if (C.value && ((t = y.value) != null && t.$el)) {
|
|
302
302
|
p.value.push(y.value.$el);
|
|
@@ -314,14 +314,14 @@ import './style/dropdown.css';const Oe = ["id"], Se = { class: "rds-e-dropdown__
|
|
|
314
314
|
/**
|
|
315
315
|
* Cierra el dropdown
|
|
316
316
|
*/
|
|
317
|
-
deactivate:
|
|
317
|
+
deactivate: R
|
|
318
318
|
}), (e, t) => (u(), w("div", {
|
|
319
319
|
class: T(["rds-e-dropdown", {
|
|
320
320
|
"rds-e-dropdown--text-only": a(j),
|
|
321
321
|
"rds-e-dropdown--inverse": o.inverse
|
|
322
322
|
}])
|
|
323
323
|
}, [
|
|
324
|
-
|
|
324
|
+
S(he, Q({
|
|
325
325
|
ref_key: "multiselect",
|
|
326
326
|
ref: m,
|
|
327
327
|
modelValue: r.value,
|
|
@@ -356,7 +356,7 @@ import './style/dropdown.css';const Oe = ["id"], Se = { class: "rds-e-dropdown__
|
|
|
356
356
|
onMousedown: n(z, ["prevent", "stop"])
|
|
357
357
|
}, [
|
|
358
358
|
c("span", null, E(q.value || o.label), 1),
|
|
359
|
-
|
|
359
|
+
S(a(Y), {
|
|
360
360
|
name: "arrow_down",
|
|
361
361
|
"aria-hidden": "true",
|
|
362
362
|
class: T(["rds-e-dropdown__input-caret", {
|
|
@@ -364,7 +364,7 @@ import './style/dropdown.css';const Oe = ["id"], Se = { class: "rds-e-dropdown__
|
|
|
364
364
|
}]),
|
|
365
365
|
onMousedown: n(z, ["prevent", "stop"])
|
|
366
366
|
}, null, 8, ["class"])
|
|
367
|
-
], 42,
|
|
367
|
+
], 42, Se)) : (u(), K(a(Z), {
|
|
368
368
|
key: 1,
|
|
369
369
|
id: `multiselect-dropdown-${o.id}`,
|
|
370
370
|
modelValue: q.value,
|
|
@@ -378,7 +378,7 @@ import './style/dropdown.css';const Oe = ["id"], Se = { class: "rds-e-dropdown__
|
|
|
378
378
|
onMousedown: n(W, ["prevent"])
|
|
379
379
|
}, X({
|
|
380
380
|
"right-icon": d(() => [
|
|
381
|
-
|
|
381
|
+
S(a(Y), {
|
|
382
382
|
name: "arrow_down",
|
|
383
383
|
"aria-hidden": "true",
|
|
384
384
|
class: T(["rds-e-dropdown__input-caret", {
|
|
@@ -402,7 +402,7 @@ import './style/dropdown.css';const Oe = ["id"], Se = { class: "rds-e-dropdown__
|
|
|
402
402
|
t[14] || (t[14] = c("span", null, null, -1))
|
|
403
403
|
]),
|
|
404
404
|
option: d(({ option: l, search: f, index: g }) => [
|
|
405
|
-
c("div",
|
|
405
|
+
c("div", Oe, [
|
|
406
406
|
c("div", xe, [
|
|
407
407
|
c("div", Ve, [
|
|
408
408
|
a($) ? (u(), K(a(ke), {
|
|
@@ -419,7 +419,7 @@ import './style/dropdown.css';const Oe = ["id"], Se = { class: "rds-e-dropdown__
|
|
|
419
419
|
"group-name": `group-${o.id}`
|
|
420
420
|
}, {
|
|
421
421
|
default: d(() => [
|
|
422
|
-
|
|
422
|
+
S(a(Ce), {
|
|
423
423
|
id: `${g}-${typeof l == "object" ? l.id : g}`,
|
|
424
424
|
small: o.small,
|
|
425
425
|
option: typeof l == "object" ? l.id : l,
|
|
@@ -429,7 +429,7 @@ import './style/dropdown.css';const Oe = ["id"], Se = { class: "rds-e-dropdown__
|
|
|
429
429
|
}, null, 8, ["id", "small", "option", "checked", "disabled", "onClick"])
|
|
430
430
|
]),
|
|
431
431
|
_: 2
|
|
432
|
-
}, 1032, ["modelValue", "group-name"])) :
|
|
432
|
+
}, 1032, ["modelValue", "group-name"])) : O("", !0)
|
|
433
433
|
]),
|
|
434
434
|
c("div", Be, [
|
|
435
435
|
v(e.$slots, "singleLabel", { option: l }, () => {
|
|
@@ -437,19 +437,19 @@ import './style/dropdown.css';const Oe = ["id"], Se = { class: "rds-e-dropdown__
|
|
|
437
437
|
return [
|
|
438
438
|
(b = N.value) != null && b.label ? (u(), w(ge, { key: 0 }, [
|
|
439
439
|
c("span", null, E(l.label), 1),
|
|
440
|
-
l != null && l.detail ? (u(), w("span", Ae, E(l.detail), 1)) :
|
|
441
|
-
], 64)) : (u(), w("span",
|
|
440
|
+
l != null && l.detail ? (u(), w("span", Ae, E(l.detail), 1)) : O("", !0)
|
|
441
|
+
], 64)) : (u(), w("span", Re, E(l), 1))
|
|
442
442
|
];
|
|
443
443
|
}, !0)
|
|
444
444
|
])
|
|
445
445
|
]),
|
|
446
|
-
e.$slots.optionAppend ? (u(), w("div",
|
|
446
|
+
e.$slots.optionAppend ? (u(), w("div", Fe, [
|
|
447
447
|
v(e.$slots, "optionAppend", {
|
|
448
448
|
option: l,
|
|
449
449
|
search: f,
|
|
450
450
|
index: g
|
|
451
451
|
}, void 0, !0)
|
|
452
|
-
])) :
|
|
452
|
+
])) : O("", !0)
|
|
453
453
|
])
|
|
454
454
|
]),
|
|
455
455
|
_: 2
|
|
@@ -505,7 +505,7 @@ import './style/dropdown.css';const Oe = ["id"], Se = { class: "rds-e-dropdown__
|
|
|
505
505
|
}, ["stop"]))
|
|
506
506
|
}, [
|
|
507
507
|
c("div", Te, [
|
|
508
|
-
|
|
508
|
+
S(a(Z), Q({
|
|
509
509
|
ref_key: "textFieldInput",
|
|
510
510
|
ref: y,
|
|
511
511
|
modelValue: I.value,
|
|
@@ -518,12 +518,12 @@ import './style/dropdown.css';const Oe = ["id"], Se = { class: "rds-e-dropdown__
|
|
|
518
518
|
}, ["stop"]))
|
|
519
519
|
}), null, 16, ["modelValue"])
|
|
520
520
|
])
|
|
521
|
-
], 32)) :
|
|
521
|
+
], 32)) : O("", !0),
|
|
522
522
|
e.$slots.beforeList ? (u(), w("div", Ee, [
|
|
523
523
|
c("div", Le, [
|
|
524
524
|
v(e.$slots, "beforeList", {}, void 0, !0)
|
|
525
525
|
])
|
|
526
|
-
])) :
|
|
526
|
+
])) : O("", !0)
|
|
527
527
|
]),
|
|
528
528
|
key: "4"
|
|
529
529
|
} : void 0,
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { defineComponent as M, ref as N, computed as c, createElementBlock as l, openBlock as o, normalizeClass as $, createElementVNode as r, renderSlot as v, createVNode as p, createCommentVNode as n, toDisplayString as m, withModifiers as I } from "vue";
|
|
2
|
-
import { R as g } from "./icon-svg-
|
|
2
|
+
import { R as g } from "./icon-svg-BU0OQFKH.js";
|
|
3
3
|
import z from "./progressBar.es.js";
|
|
4
4
|
import { _ as C } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
|
-
import './style/fileUploadItem.css';const R = { class: "rds-e-file-upload-item__icon-container" },
|
|
5
|
+
import './style/fileUploadItem.css';const R = ["id"], w = { class: "rds-e-file-upload-item__icon-container" }, E = { class: "rds-e-file-upload-item__details" }, F = { class: "rds-e-file-upload-item__info-wrapper" }, x = { class: "rds-e-file-upload-item__name" }, D = {
|
|
6
6
|
key: 0,
|
|
7
7
|
class: "rds-e-file-upload-item__meta"
|
|
8
|
-
},
|
|
8
|
+
}, P = { class: "rds-e-file-upload-item__size" }, V = {
|
|
9
9
|
key: 0,
|
|
10
10
|
class: "rds-e-file-upload-item__time-remaining"
|
|
11
|
-
},
|
|
11
|
+
}, q = {
|
|
12
12
|
key: 1,
|
|
13
13
|
class: "rds-e-file-upload-item__error-message"
|
|
14
|
-
},
|
|
14
|
+
}, T = {
|
|
15
15
|
key: 0,
|
|
16
16
|
class: "rds-e-file-upload-item__progress-indicator-container"
|
|
17
|
-
},
|
|
17
|
+
}, j = { class: "rds-e-file-upload-item__action" }, A = ["aria-label", "disabled"], G = /* @__PURE__ */ M({
|
|
18
18
|
__name: "file-upload-item",
|
|
19
19
|
props: {
|
|
20
20
|
/**
|
|
@@ -121,11 +121,12 @@ import './style/fileUploadItem.css';const R = { class: "rds-e-file-upload-item__
|
|
|
121
121
|
!s.disabled && t && b("action", { actionType: t.type, fileId: s.id });
|
|
122
122
|
};
|
|
123
123
|
return (t, i) => (o(), l("div", {
|
|
124
|
+
id: e.id,
|
|
124
125
|
class: $(["rds-e-file-upload-item rds-radius-inputs", [y.value]]),
|
|
125
126
|
onMouseover: i[1] || (i[1] = (d) => f.value = !0),
|
|
126
127
|
onMouseleave: i[2] || (i[2] = (d) => f.value = !1)
|
|
127
128
|
}, [
|
|
128
|
-
r("div",
|
|
129
|
+
r("div", w, [
|
|
129
130
|
v(t.$slots, "file-icon", {}, () => [
|
|
130
131
|
p(g, {
|
|
131
132
|
name: h.value,
|
|
@@ -134,17 +135,18 @@ import './style/fileUploadItem.css';const R = { class: "rds-e-file-upload-item__
|
|
|
134
135
|
}, null, 8, ["name"])
|
|
135
136
|
], !0)
|
|
136
137
|
]),
|
|
137
|
-
r("div",
|
|
138
|
-
r("div",
|
|
139
|
-
r("span",
|
|
140
|
-
a.value !== "error" ? (o(), l("div",
|
|
141
|
-
r("span",
|
|
142
|
-
a.value === "uploading" && e.timeRemaining ? (o(), l("span",
|
|
138
|
+
r("div", E, [
|
|
139
|
+
r("div", F, [
|
|
140
|
+
r("span", x, m(e.fileName), 1),
|
|
141
|
+
a.value !== "error" ? (o(), l("div", D, [
|
|
142
|
+
r("span", P, m(S.value), 1),
|
|
143
|
+
a.value === "uploading" && e.timeRemaining ? (o(), l("span", V, m(e.timeRemaining), 1)) : n("", !0)
|
|
143
144
|
])) : n("", !0),
|
|
144
|
-
a.value === "error" && e.errorMessage ? (o(), l("div",
|
|
145
|
+
a.value === "error" && e.errorMessage ? (o(), l("div", q, m(e.errorMessage), 1)) : n("", !0)
|
|
145
146
|
]),
|
|
146
|
-
a.value === "uploading" && e.showProgressBar ? (o(), l("div",
|
|
147
|
+
a.value === "uploading" && e.showProgressBar ? (o(), l("div", T, [
|
|
147
148
|
p(z, {
|
|
149
|
+
id: e.id,
|
|
148
150
|
class: "rds-e-file-upload-item__progress-bar",
|
|
149
151
|
step: e.progress,
|
|
150
152
|
"max-steps": 100,
|
|
@@ -153,10 +155,10 @@ import './style/fileUploadItem.css';const R = { class: "rds-e-file-upload-item__
|
|
|
153
155
|
"white-bar": "",
|
|
154
156
|
"hide-counter": "",
|
|
155
157
|
inverse: ""
|
|
156
|
-
}, null, 8, ["step"])
|
|
158
|
+
}, null, 8, ["id", "step"])
|
|
157
159
|
])) : n("", !0)
|
|
158
160
|
]),
|
|
159
|
-
r("div",
|
|
161
|
+
r("div", j, [
|
|
160
162
|
v(t.$slots, "action", {}, () => [
|
|
161
163
|
e.action ? (o(), l("button", {
|
|
162
164
|
key: 0,
|
|
@@ -171,12 +173,12 @@ import './style/fileUploadItem.css';const R = { class: "rds-e-file-upload-item__
|
|
|
171
173
|
class: "rds-e-file-upload-item__action-icon",
|
|
172
174
|
"aria-hidden": "true"
|
|
173
175
|
}, null, 8, ["name"])
|
|
174
|
-
], 8,
|
|
176
|
+
], 8, A)) : n("", !0)
|
|
175
177
|
], !0)
|
|
176
178
|
])
|
|
177
|
-
],
|
|
179
|
+
], 42, R));
|
|
178
180
|
}
|
|
179
|
-
}),
|
|
181
|
+
}), J = /* @__PURE__ */ C(G, [["__scopeId", "data-v-acd37774"]]);
|
|
180
182
|
export {
|
|
181
|
-
|
|
183
|
+
J as default
|
|
182
184
|
};
|