energy-components 1.20.0-beta.0 → 1.21.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/dist/components/accordion.es.js +60 -50
- package/dist/components/avatar.es.js +1 -1
- package/dist/components/badge.es.js +93 -0
- package/dist/components/button.es.js +1 -1
- package/dist/components/checkbox.es.js +95 -55
- package/dist/components/collapsable.es.js +1 -1
- package/dist/components/{collapsable.scss_vue_type_style_index_0_src_true_lang-C2ohjDhp.js → collapsable.scss_vue_type_style_index_0_src_true_lang-6HkNT8L9.js} +1 -1
- package/dist/components/datepicker.es.js +1 -1
- package/dist/components/directAccess.es.js +1 -1
- package/dist/components/dragAndDrop.es.js +1 -1
- package/dist/components/dropdown.es.js +1 -1
- package/dist/components/fileUploadItem.es.js +45 -34
- package/dist/components/filterChip.es.js +1 -1
- package/dist/components/filterTag.es.js +1 -1
- package/dist/components/{icon-svg-arye8CV8.js → icon-svg-C8XeOnqu.js} +805 -767
- package/dist/components/iconList.es.js +1 -1
- package/dist/components/iconSvg.es.js +1 -1
- package/dist/components/index.es.js +59 -56
- package/dist/components/infoBox.es.js +1 -1
- package/dist/components/link.es.js +1 -1
- package/dist/components/modal.es.js +93 -56
- package/dist/components/multiselect.es.js +77 -74
- package/dist/components/persistentToast.es.js +1 -1
- package/dist/components/popover.es.js +107 -74
- package/dist/components/popoverMenu.es.js +98 -75
- package/dist/components/progressBar.es.js +1 -1
- package/dist/components/quantitySelector.es.js +1 -1
- package/dist/components/radioButton.es.js +1 -1
- package/dist/components/selectionChip.es.js +1 -1
- package/dist/components/sidedrawer.es.js +1 -1
- package/dist/components/style/accordion.css +1 -1
- package/dist/components/style/badge.css +1 -0
- package/dist/components/style/checkbox.css +1 -1
- package/dist/components/style/fileUploadItem.css +1 -1
- package/dist/components/style/modal.css +1 -1
- package/dist/components/style/popover.css +1 -1
- package/dist/components/style/popoverMenu.css +1 -1
- package/dist/components/style/textField.css +1 -1
- package/dist/components/switch.es.js +1 -1
- package/dist/components/tabBar.es.js +1 -1
- package/dist/components/tableslotedcomponent.es.js +1 -1
- package/dist/components/tag.es.js +1 -1
- package/dist/components/textArea.es.js +1 -1
- package/dist/components/textField.es.js +131 -120
- package/dist/components/tooltip.es.js +1 -1
- package/dist/energy-components.es.js +5538 -5243
- package/dist/energy-components.umd.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/src/components/content/accordion/accordion.vue.d.ts +14 -0
- package/dist/types/src/components/feedback/badge/badge.vue.d.ts +119 -0
- package/dist/types/src/components/index.d.ts +1 -0
- package/dist/types/src/components/input/checkbox/checkbox.vue.d.ts +60 -0
- package/dist/types/src/components/input/file-upload-item/file-upload-item.vue.d.ts +17 -0
- package/dist/types/src/components/input/text-field/text-field.vue.d.ts +1 -1
- package/dist/types/src/components/overlay/popover/popover.vue.d.ts +2 -0
- package/dist/types/src/components/overlay/popover-menu/popover-menu.vue.d.ts +3 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { R as
|
|
3
|
-
import
|
|
4
|
-
import { _ as
|
|
5
|
-
import './style/accordion.css';const
|
|
1
|
+
import { defineComponent as b, toRefs as B, ref as s, watch as D, nextTick as q, inject as h, onMounted as N, onBeforeUnmount as V, createElementBlock as y, openBlock as d, createElementVNode as l, toDisplayString as u, createBlock as w, createCommentVNode as H, createVNode as P, unref as p, mergeProps as T, normalizeClass as C, renderSlot as j, createTextVNode as A } from "vue";
|
|
2
|
+
import { R as E } from "./icon-svg-C8XeOnqu.js";
|
|
3
|
+
import I from "./tag.es.js";
|
|
4
|
+
import { _ as O } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
|
+
import './style/accordion.css';const $ = ["id"], z = { class: "rds-e-accordion-title" }, M = { class: "rds-e-accordion-title_right" }, U = {
|
|
6
|
+
key: 1,
|
|
7
|
+
class: "rds-e-accordion-title_label"
|
|
8
|
+
}, F = /* @__PURE__ */ b({
|
|
6
9
|
__name: "accordion",
|
|
7
10
|
props: {
|
|
8
11
|
/**
|
|
@@ -40,84 +43,91 @@ import './style/accordion.css';const b = ["id"], z = { class: "rds-e-accordion-t
|
|
|
40
43
|
tag: {
|
|
41
44
|
type: Object,
|
|
42
45
|
default: null
|
|
46
|
+
},
|
|
47
|
+
/**
|
|
48
|
+
* Label a la derecha del título. Se muestra sólo si no hay tag.
|
|
49
|
+
*/
|
|
50
|
+
label: {
|
|
51
|
+
type: String,
|
|
52
|
+
required: !1
|
|
43
53
|
}
|
|
44
54
|
},
|
|
45
55
|
emits: ["update:open"],
|
|
46
|
-
setup(
|
|
47
|
-
const
|
|
48
|
-
if (!
|
|
49
|
-
const e =
|
|
50
|
-
|
|
51
|
-
},
|
|
52
|
-
e === void 0 ? t.value = !t.value : t.value = e,
|
|
53
|
-
},
|
|
54
|
-
|
|
55
|
-
},
|
|
56
|
-
|
|
56
|
+
setup(o, { expose: S, emit: k }) {
|
|
57
|
+
const n = o, x = k, { tag: i } = B(n), t = s(n.open), r = s(null), c = s(null), R = () => {
|
|
58
|
+
if (!r.value || !c.value) return;
|
|
59
|
+
const e = c.value.scrollHeight;
|
|
60
|
+
r.value.style.maxHeight = t.value ? `${e}px` : "0px";
|
|
61
|
+
}, a = (e) => {
|
|
62
|
+
e === void 0 ? t.value = !t.value : t.value = e, x("update:open", t.value), R();
|
|
63
|
+
}, m = () => {
|
|
64
|
+
a(!0);
|
|
65
|
+
}, f = () => {
|
|
66
|
+
a(!1);
|
|
57
67
|
};
|
|
58
68
|
D(
|
|
59
|
-
() =>
|
|
60
|
-
(e) =>
|
|
61
|
-
|
|
69
|
+
() => n.open,
|
|
70
|
+
(e) => q(() => {
|
|
71
|
+
a(e);
|
|
62
72
|
}),
|
|
63
73
|
{ immediate: !0 }
|
|
64
74
|
);
|
|
65
|
-
const
|
|
66
|
-
return
|
|
67
|
-
|
|
68
|
-
id:
|
|
69
|
-
open:
|
|
70
|
-
close:
|
|
75
|
+
const g = h("registerRDSAccordionChild"), v = h("unregisterRDSAccordionChild");
|
|
76
|
+
return N(() => {
|
|
77
|
+
g && g({
|
|
78
|
+
id: n.id,
|
|
79
|
+
open: m,
|
|
80
|
+
close: f
|
|
71
81
|
});
|
|
72
|
-
}),
|
|
73
|
-
|
|
74
|
-
}),
|
|
82
|
+
}), V(() => {
|
|
83
|
+
v && v(n.id);
|
|
84
|
+
}), S({
|
|
75
85
|
/**
|
|
76
86
|
* Abre el panel.
|
|
77
87
|
*/
|
|
78
|
-
openPanel:
|
|
88
|
+
openPanel: m,
|
|
79
89
|
/**
|
|
80
90
|
* Cierra el panel.
|
|
81
91
|
*/
|
|
82
|
-
closePanel:
|
|
83
|
-
}), (e,
|
|
84
|
-
id:
|
|
92
|
+
closePanel: f
|
|
93
|
+
}), (e, _) => (d(), y("div", {
|
|
94
|
+
id: o.id,
|
|
85
95
|
class: "rds-e-accordion"
|
|
86
96
|
}, [
|
|
87
|
-
|
|
97
|
+
l("div", {
|
|
88
98
|
class: "rds-e-accordion-title_container",
|
|
89
|
-
onClick:
|
|
99
|
+
onClick: _[0] || (_[0] = () => a())
|
|
90
100
|
}, [
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
101
|
+
l("span", z, u(o.title), 1),
|
|
102
|
+
l("div", M, [
|
|
103
|
+
p(i) && p(i).icon ? (d(), w(I, T({
|
|
94
104
|
key: 0,
|
|
95
105
|
class: "rds-e-accordion-title_tag"
|
|
96
|
-
},
|
|
97
|
-
|
|
98
|
-
class:
|
|
106
|
+
}, p(i), { small: "" }), null, 16)) : o.label ? (d(), y("span", U, u(o.label), 1)) : H("", !0),
|
|
107
|
+
P(E, {
|
|
108
|
+
class: C(["rds-e-accordion-title_icon", { "rds-e-accordion-title_icon--open": t.value }]),
|
|
99
109
|
name: "arrow_down"
|
|
100
110
|
}, null, 8, ["class"])
|
|
101
111
|
])
|
|
102
112
|
]),
|
|
103
|
-
|
|
113
|
+
l("div", {
|
|
104
114
|
ref_key: "panel",
|
|
105
|
-
ref:
|
|
106
|
-
class:
|
|
115
|
+
ref: r,
|
|
116
|
+
class: C(["rds-e-accordion-panel", { "rds-e-accordion-panel--open": t.value }])
|
|
107
117
|
}, [
|
|
108
|
-
|
|
118
|
+
l("div", {
|
|
109
119
|
ref_key: "panelContent",
|
|
110
|
-
ref:
|
|
120
|
+
ref: c,
|
|
111
121
|
class: "rds-e-accordion-panel_content"
|
|
112
122
|
}, [
|
|
113
|
-
|
|
114
|
-
|
|
123
|
+
j(e.$slots, "default", {}, () => [
|
|
124
|
+
A(u(o.content), 1)
|
|
115
125
|
], !0)
|
|
116
126
|
], 512)
|
|
117
127
|
], 2)
|
|
118
|
-
], 8,
|
|
128
|
+
], 8, $));
|
|
119
129
|
}
|
|
120
|
-
}),
|
|
130
|
+
}), Q = /* @__PURE__ */ O(F, [["__scopeId", "data-v-c327a8d6"]]);
|
|
121
131
|
export {
|
|
122
|
-
|
|
132
|
+
Q as default
|
|
123
133
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as h, computed as a, createElementBlock as s, openBlock as n, withKeys as o, normalizeStyle as u, normalizeClass as k, createBlock as _, createCommentVNode as b, toDisplayString as z } from "vue";
|
|
2
|
-
import { R as C } from "./icon-svg-
|
|
2
|
+
import { R as C } from "./icon-svg-C8XeOnqu.js";
|
|
3
3
|
import { _ as w } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
4
|
import './style/avatar.css';const A = ["id", "aria-label"], B = ["src", "alt"], D = {
|
|
5
5
|
key: 1,
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { defineComponent as B, toRefs as L, useSlots as x, computed as e, ref as N, createElementBlock as n, openBlock as u, normalizeClass as i, renderSlot as z, createCommentVNode as g, unref as D, toDisplayString as H } from "vue";
|
|
2
|
+
import { _ as V } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
|
+
import './style/badge.css';const A = ["id"], E = ["aria-label", "data-kind"], I = /* @__PURE__ */ B({
|
|
4
|
+
__name: "badge",
|
|
5
|
+
props: {
|
|
6
|
+
/**
|
|
7
|
+
* Tipo de badge.
|
|
8
|
+
* `numeric` muestra un contador, `dot` solo un punto.
|
|
9
|
+
*/
|
|
10
|
+
kind: {
|
|
11
|
+
type: String,
|
|
12
|
+
default: "numeric",
|
|
13
|
+
validator: (a) => ["numeric", "dot"].includes(a)
|
|
14
|
+
},
|
|
15
|
+
/**
|
|
16
|
+
* Valor numérico a mostrar cuando `kind` es `numeric`.
|
|
17
|
+
*/
|
|
18
|
+
value: {
|
|
19
|
+
type: Number,
|
|
20
|
+
default: 0,
|
|
21
|
+
validator: (a) => a >= 0
|
|
22
|
+
},
|
|
23
|
+
/**
|
|
24
|
+
* Define el color semántico de fondo.
|
|
25
|
+
* Para el diseño inicial solo se implementa `promo` y `default`.
|
|
26
|
+
*/
|
|
27
|
+
color: {
|
|
28
|
+
type: String,
|
|
29
|
+
default: "promo",
|
|
30
|
+
validator: (a) => ["promo", "success", "error", "warning", "information"].includes(a)
|
|
31
|
+
},
|
|
32
|
+
/**
|
|
33
|
+
* Forza el uso de content-high en texto cuando el contraste inverse no sea suficiente.
|
|
34
|
+
*/
|
|
35
|
+
forceContentHigh: {
|
|
36
|
+
type: Boolean,
|
|
37
|
+
default: !1
|
|
38
|
+
},
|
|
39
|
+
/**
|
|
40
|
+
* ID para testing.
|
|
41
|
+
*/
|
|
42
|
+
id: {
|
|
43
|
+
type: String,
|
|
44
|
+
default: void 0
|
|
45
|
+
},
|
|
46
|
+
/**
|
|
47
|
+
* Mensaje alternativo accesible. Si no se provee se genera automáticamente.
|
|
48
|
+
*/
|
|
49
|
+
ariaLabel: {
|
|
50
|
+
type: String,
|
|
51
|
+
default: void 0
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
setup(a, { expose: m }) {
|
|
55
|
+
const s = a, { kind: o, value: b, color: d, forceContentHigh: h } = L(s), c = x(), _ = e(() => !!c.default && c.default().length > 0), p = N(null), y = e(() => !1), l = e(() => o.value === "dot" ? "" : String(b.value)), C = e(() => o.value === "dot" || o.value === "numeric"), f = e(() => o.value === "numeric"), $ = e(() => ["promo", "success", "error", "warning", "information"].includes(d.value) ? d.value : "promo"), k = e(() => {
|
|
56
|
+
const t = "rds-e-badge", r = [
|
|
57
|
+
`${t}--${o.value}`,
|
|
58
|
+
`${t}--color-${$.value}`
|
|
59
|
+
];
|
|
60
|
+
if (f.value) {
|
|
61
|
+
const v = l.value.length;
|
|
62
|
+
v === 1 ? r.push(`${t}--digits-1`) : v === 2 ? r.push(`${t}--digits-2`) : r.push(`${t}--digits-3plus`);
|
|
63
|
+
}
|
|
64
|
+
return h.value && r.push(`${t}--content-high`), r;
|
|
65
|
+
}), w = e(() => s.ariaLabel ? s.ariaLabel : o.value === "dot" ? "Notificación" : `Cuenta: ${l.value}`), S = e(() => ({
|
|
66
|
+
"rds-e-badge-wrapper--standalone": !_.value
|
|
67
|
+
}));
|
|
68
|
+
return m({ el: p }), (t, r) => (u(), n("span", {
|
|
69
|
+
id: a.id,
|
|
70
|
+
ref_key: "root",
|
|
71
|
+
ref: p,
|
|
72
|
+
class: i(["rds-e-badge-wrapper", S.value])
|
|
73
|
+
}, [
|
|
74
|
+
z(t.$slots, "default", {}, void 0, !0),
|
|
75
|
+
C.value ? (u(), n("span", {
|
|
76
|
+
key: 0,
|
|
77
|
+
class: i(["rds-e-badge", k.value]),
|
|
78
|
+
role: "status",
|
|
79
|
+
"aria-label": w.value,
|
|
80
|
+
"data-kind": D(o)
|
|
81
|
+
}, [
|
|
82
|
+
f.value ? (u(), n("span", {
|
|
83
|
+
key: 0,
|
|
84
|
+
class: i(["rds-e-badge__content", { "rds-e-badge__content--overflow": y.value }]),
|
|
85
|
+
"aria-hidden": "true"
|
|
86
|
+
}, H(l.value), 3)) : g("", !0)
|
|
87
|
+
], 10, E)) : g("", !0)
|
|
88
|
+
], 10, A));
|
|
89
|
+
}
|
|
90
|
+
}), j = /* @__PURE__ */ V(I, [["__scopeId", "data-v-783ca3f3"]]);
|
|
91
|
+
export {
|
|
92
|
+
j as default
|
|
93
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as x, toRefs as I, computed as r, createElementBlock as $, openBlock as b, normalizeClass as m, unref as n, createBlock as k, createCommentVNode as C, createElementVNode as N, renderSlot as R, createTextVNode as V, toDisplayString as D } from "vue";
|
|
2
|
-
import { R as E } from "./icon-svg-
|
|
2
|
+
import { R as E } from "./icon-svg-C8XeOnqu.js";
|
|
3
3
|
import { _ as L } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
4
|
import './style/button.css';const w = ["id", "type", "disabled"], W = { class: "rds-e-btn__text" }, j = /* @__PURE__ */ x({
|
|
5
5
|
__name: "button",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { R as
|
|
3
|
-
import
|
|
4
|
-
import { g as
|
|
5
|
-
import { _ as
|
|
6
|
-
import './style/checkbox.css';const
|
|
1
|
+
import { defineComponent as D, computed as b, ref as i, watch as y, onMounted as L, onBeforeUnmount as N, createElementBlock as R, openBlock as m, normalizeClass as n, createElementVNode as f, renderSlot as E, createTextVNode as T, createBlock as x, createCommentVNode as p, toDisplayString as U, withCtx as z, createVNode as I } from "vue";
|
|
2
|
+
import { R as g } from "./icon-svg-C8XeOnqu.js";
|
|
3
|
+
import F from "./tooltip.es.js";
|
|
4
|
+
import { g as K } from "./getInstance-GhoEcxLF.js";
|
|
5
|
+
import { _ as M } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
+
import './style/checkbox.css';const $ = ["id", "checked", "aria-label", "aria-invalid", "aria-required", "aria-describedby", "aria-checked", "required", "disabled", "readonly", "name", "value"], j = ["for"], A = /* @__PURE__ */ D({
|
|
7
7
|
__name: "checkbox",
|
|
8
8
|
props: {
|
|
9
9
|
/**
|
|
@@ -83,63 +83,103 @@ import './style/checkbox.css';const M = ["id", "checked", "aria-label", "require
|
|
|
83
83
|
indeterminate: {
|
|
84
84
|
type: Boolean,
|
|
85
85
|
default: !1
|
|
86
|
+
},
|
|
87
|
+
/**
|
|
88
|
+
* <span>Nombre del campo para formularios HTML.</span>
|
|
89
|
+
*/
|
|
90
|
+
name: {
|
|
91
|
+
type: String,
|
|
92
|
+
default: ""
|
|
93
|
+
},
|
|
94
|
+
/**
|
|
95
|
+
* <span>Valor enviado en formularios cuando el checkbox está marcado.</span>
|
|
96
|
+
*/
|
|
97
|
+
value: {
|
|
98
|
+
type: [String, Number, Boolean],
|
|
99
|
+
default: void 0
|
|
100
|
+
},
|
|
101
|
+
/**
|
|
102
|
+
* <span>Indica que el checkbox es de solo lectura (no modificable por usuario).</span>
|
|
103
|
+
*/
|
|
104
|
+
readonly: {
|
|
105
|
+
type: Boolean,
|
|
106
|
+
default: !1
|
|
107
|
+
},
|
|
108
|
+
/**
|
|
109
|
+
* <span>Id(s) de elementos descriptivos (mensaje de error / ayuda) enlazados con <code>aria-describedby</code>.</span>
|
|
110
|
+
*/
|
|
111
|
+
describedBy: {
|
|
112
|
+
type: String,
|
|
113
|
+
default: ""
|
|
86
114
|
}
|
|
87
115
|
},
|
|
88
116
|
emits: ["update:modelValue"],
|
|
89
117
|
setup(e, { emit: w }) {
|
|
90
|
-
const
|
|
91
|
-
var
|
|
92
|
-
return ((
|
|
93
|
-
}),
|
|
94
|
-
|
|
95
|
-
() => [
|
|
96
|
-
([
|
|
97
|
-
t.value && (t.value.indeterminate =
|
|
118
|
+
const l = e, C = w, c = b(() => l.modelValue !== void 0), r = i(l.isChecked ?? !1), s = i(!1), u = i(!1), t = i(null), S = i(`rds-e-checkbox-${K()}`), v = b(() => {
|
|
119
|
+
var a;
|
|
120
|
+
return ((a = l.id) == null ? void 0 : a.toString()) || S.value;
|
|
121
|
+
}), o = b(() => c.value ? l.modelValue ?? !1 : r.value);
|
|
122
|
+
y(
|
|
123
|
+
() => [l.indeterminate, o.value],
|
|
124
|
+
([a, d]) => {
|
|
125
|
+
t.value && (t.value.indeterminate = a && d);
|
|
98
126
|
},
|
|
99
127
|
{ immediate: !0 }
|
|
100
128
|
);
|
|
101
|
-
const
|
|
102
|
-
const
|
|
103
|
-
|
|
104
|
-
},
|
|
105
|
-
|
|
106
|
-
},
|
|
107
|
-
|
|
108
|
-
},
|
|
109
|
-
|
|
110
|
-
},
|
|
111
|
-
return
|
|
112
|
-
t.value && (t.value.indeterminate = !!(
|
|
113
|
-
}),
|
|
114
|
-
window.removeEventListener("keydown",
|
|
115
|
-
}), (
|
|
116
|
-
|
|
129
|
+
const B = (a) => {
|
|
130
|
+
const d = a.target.checked;
|
|
131
|
+
c.value || (r.value = d), C("update:modelValue", d);
|
|
132
|
+
}, h = (a) => {
|
|
133
|
+
a.key === "Tab" && (u.value = !0);
|
|
134
|
+
}, k = () => {
|
|
135
|
+
u.value = !1;
|
|
136
|
+
}, V = () => {
|
|
137
|
+
u.value && (s.value = !0);
|
|
138
|
+
}, q = () => s.value = !1;
|
|
139
|
+
return L(() => {
|
|
140
|
+
t.value && (t.value.indeterminate = !!(l.indeterminate && o.value)), window.addEventListener("keydown", h), window.addEventListener("mousedown", k), l.isChecked !== void 0 && console.warn('[RDSCheckbox] La prop "isChecked" está deprecada. Usa v-model / modelValue en su lugar.');
|
|
141
|
+
}), N(() => {
|
|
142
|
+
window.removeEventListener("keydown", h), window.removeEventListener("mousedown", k);
|
|
143
|
+
}), y(
|
|
144
|
+
() => l.isChecked,
|
|
145
|
+
(a) => {
|
|
146
|
+
!c.value && a !== void 0 && (r.value = !!a);
|
|
147
|
+
}
|
|
148
|
+
), (a, d) => (m(), R("div", {
|
|
149
|
+
class: n(["rds-e-checkbox__container", { "rds-e-checkbox__container--focused": s.value }])
|
|
117
150
|
}, [
|
|
118
|
-
|
|
119
|
-
id:
|
|
151
|
+
f("input", {
|
|
152
|
+
id: v.value,
|
|
120
153
|
ref_key: "inputRef",
|
|
121
154
|
ref: t,
|
|
122
|
-
checked:
|
|
155
|
+
checked: o.value,
|
|
123
156
|
"aria-label": e.accessibilityLabel,
|
|
157
|
+
"aria-invalid": e.error || void 0,
|
|
158
|
+
"aria-required": e.required || void 0,
|
|
159
|
+
"aria-describedby": e.describedBy || void 0,
|
|
160
|
+
"aria-checked": e.indeterminate && o.value ? "mixed" : void 0,
|
|
124
161
|
type: "checkbox",
|
|
125
|
-
class:
|
|
162
|
+
class: n(["rds-e-checkbox", { "rds-e-checkbox--error": e.error }]),
|
|
126
163
|
required: e.required,
|
|
127
164
|
disabled: e.disabled,
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
165
|
+
readonly: e.readonly,
|
|
166
|
+
name: e.name || void 0,
|
|
167
|
+
value: e.value,
|
|
168
|
+
onChange: B,
|
|
169
|
+
onFocus: V,
|
|
170
|
+
onBlur: q
|
|
171
|
+
}, null, 42, $),
|
|
172
|
+
f("label", {
|
|
173
|
+
for: v.value,
|
|
174
|
+
class: n(["rds-e-checkbox__label", {
|
|
135
175
|
"rds-e-checkbox__label--disabled": e.disabled,
|
|
136
|
-
"rds-e-checkbox__label--checked":
|
|
137
|
-
"rds-e-checkbox__label--indeterminate": e.indeterminate &&
|
|
176
|
+
"rds-e-checkbox__label--checked": o.value,
|
|
177
|
+
"rds-e-checkbox__label--indeterminate": e.indeterminate && o.value
|
|
138
178
|
}])
|
|
139
179
|
}, [
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
class:
|
|
180
|
+
E(a.$slots, "label-text", {}, () => [
|
|
181
|
+
f("span", {
|
|
182
|
+
class: n([
|
|
143
183
|
"rds-e-checkbox__label-box",
|
|
144
184
|
{
|
|
145
185
|
"rds-e-checkbox__label-box--disabled": e.disabled,
|
|
@@ -147,33 +187,33 @@ import './style/checkbox.css';const M = ["id", "checked", "aria-label", "require
|
|
|
147
187
|
}
|
|
148
188
|
])
|
|
149
189
|
}, [
|
|
150
|
-
|
|
151
|
-
e.icon && e.iconTooltip ? (
|
|
190
|
+
T(U(e.label) + " ", 1),
|
|
191
|
+
e.icon && e.iconTooltip ? (m(), x(F, {
|
|
152
192
|
key: 0,
|
|
153
193
|
content: e.iconTooltip,
|
|
154
194
|
placement: "top",
|
|
155
195
|
"offset-space": 8
|
|
156
196
|
}, {
|
|
157
|
-
default:
|
|
158
|
-
|
|
197
|
+
default: z(() => [
|
|
198
|
+
I(g, {
|
|
159
199
|
class: "rds-e-checkbox__label-box--icon",
|
|
160
200
|
name: e.icon,
|
|
161
201
|
size: "sm"
|
|
162
202
|
}, null, 8, ["name"])
|
|
163
203
|
]),
|
|
164
204
|
_: 1
|
|
165
|
-
}, 8, ["content"])) : e.icon ? (
|
|
205
|
+
}, 8, ["content"])) : e.icon ? (m(), x(g, {
|
|
166
206
|
key: 1,
|
|
167
207
|
class: "rds-e-checkbox__label-box--icon",
|
|
168
208
|
name: e.icon,
|
|
169
209
|
size: "sm"
|
|
170
|
-
}, null, 8, ["name"])) :
|
|
210
|
+
}, null, 8, ["name"])) : p("", !0)
|
|
171
211
|
], 2)
|
|
172
212
|
], !0)
|
|
173
|
-
], 10,
|
|
213
|
+
], 10, j)
|
|
174
214
|
], 2));
|
|
175
215
|
}
|
|
176
|
-
}),
|
|
216
|
+
}), Q = /* @__PURE__ */ M(A, [["__scopeId", "data-v-af3a21e1"]]);
|
|
177
217
|
export {
|
|
178
|
-
|
|
218
|
+
Q as default
|
|
179
219
|
};
|
|
@@ -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-C8XeOnqu.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: {
|
|
@@ -2,7 +2,7 @@ import './style/datepicker.css';var qr = Object.defineProperty;
|
|
|
2
2
|
var jr = (e, n, t) => n in e ? qr(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
|
|
3
3
|
var ce = (e, n, t) => jr(e, typeof n != "symbol" ? n + "" : n, t);
|
|
4
4
|
import { reactive as ga, ref as G, defineComponent as Ze, useSlots as Vt, toRef as ma, onMounted as et, nextTick as it, onUnmounted as wa, watch as vt, computed as Q, createElementBlock as X, openBlock as C, unref as s, normalizeClass as Me, createVNode as at, createBlock as Ae, mergeProps as Ue, isRef as On, createSlots as Je, renderList as Ne, withCtx as _e, renderSlot as se, normalizeProps as Ke, guardReactiveProps as ot, resolveDynamicComponent as Ya, Teleport as Qr, Transition as oa, createCommentVNode as K, h as Ur, render as Cn, createElementVNode as be, withModifiers as Zt, normalizeStyle as ft, Fragment as xe, toDisplayString as tt, useAttrs as Xr, createTextVNode as Ct, getCurrentScope as zr, onScopeDispose as Kr, onBeforeUpdate as Gr, withDirectives as Ta, vShow as Aa, withKeys as Jr, mergeModels as Yn, useModel as Zr, toRefs as el, toHandlers as tl } from "vue";
|
|
5
|
-
import { R as al } from "./icon-svg-
|
|
5
|
+
import { R as al } from "./icon-svg-C8XeOnqu.js";
|
|
6
6
|
import Rn from "./button.es.js";
|
|
7
7
|
import nl from "./textField.es.js";
|
|
8
8
|
import { _ as rl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
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-
|
|
2
|
+
import { R as S } from "./icon-svg-C8XeOnqu.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",
|
|
@@ -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-C8XeOnqu.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,
|
|
@@ -3,7 +3,7 @@ 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-C8XeOnqu.js";
|
|
7
7
|
import Z from "./textField.es.js";
|
|
8
8
|
import { _ as De } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
9
|
import './style/dropdown.css';const Se = ["id"], Oe = { 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 = {
|