energy-components 1.0.2 → 1.0.4
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 +44 -45
- package/dist/components/accordionGroup.es.js +12 -12
- package/dist/components/actionButton.es.js +2 -2
- package/dist/components/breadcrumbs.es.js +8 -8
- package/dist/components/button.es.js +20 -20
- package/dist/components/card.es.js +12 -0
- package/dist/components/checkbox.es.js +16 -16
- package/dist/components/datepicker.es.js +8208 -0
- package/dist/components/divider.es.js +6 -6
- package/dist/components/dropdown.es.js +55 -47
- package/dist/components/floatingActionButton.es.js +4 -4
- package/dist/components/{icon-svg-Cpx09myr.js → icon-svg-CEZ-L3iv.js} +6 -5
- package/dist/components/iconList.es.js +10 -10
- package/dist/components/iconSvg.es.js +1 -1
- package/dist/components/index.es.js +84 -63
- package/dist/components/indicator.es.js +21 -21
- package/dist/components/infoBox.es.js +152 -0
- package/dist/components/link.es.js +21 -21
- package/dist/components/modal.es.js +96 -0
- package/dist/components/overlay.es.js +31 -0
- package/dist/components/pagination.es.js +20 -20
- package/dist/components/persistentToast.es.js +130 -0
- package/dist/components/radio-group.vue_vue_type_script_setup_true_lang-B-kg-575.js +28 -0
- package/dist/components/radioButton.es.js +69 -57
- package/dist/components/radioGroup.es.js +4 -0
- package/dist/components/style/accordion.css +1 -1
- package/dist/components/style/accordionGroup.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/card.css +1 -0
- package/dist/components/style/checkbox.css +1 -1
- package/dist/components/style/datepicker.css +1 -0
- package/dist/components/style/divider.css +1 -1
- package/dist/components/style/dropdown.css +1 -1
- package/dist/components/style/floatingActionButton.css +1 -1
- package/dist/components/style/icon-svg.css +1 -1
- package/dist/components/style/iconList.css +1 -1
- package/dist/components/style/indicator.css +1 -1
- package/dist/components/style/infoBox.css +1 -0
- package/dist/components/style/link.css +1 -1
- package/dist/components/style/modal.css +1 -0
- package/dist/components/style/multiselect.css +1 -1
- package/dist/components/style/overlay.css +1 -0
- package/dist/components/style/pagination.css +1 -1
- package/dist/components/style/persistentToast.css +1 -0
- package/dist/components/style/radioButton.css +1 -1
- package/dist/components/style/switch.css +1 -1
- 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/textField.css +1 -1
- package/dist/components/style/tooltip.css +1 -1
- package/dist/components/switch.es.js +14 -14
- package/dist/components/tabBar.es.js +35 -35
- package/dist/components/tag.es.js +12 -12
- package/dist/components/textArea.es.js +31 -31
- package/dist/components/textField.es.js +52 -50
- package/dist/components/tooltip.es.js +59 -59
- package/dist/energy-components.es.js +10417 -1771
- package/dist/energy-components.umd.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/src/components/content/accordion/accordion.vue.d.ts +0 -2
- package/dist/types/src/components/content/card/card.vue.d.ts +24 -0
- package/dist/types/src/components/feedback/info-box/info-box.vue.d.ts +134 -0
- package/dist/types/src/components/feedback/persistent-toast/persistent-toast.vue.d.ts +161 -0
- package/dist/types/src/components/icon-svg/icon-svg.vue.d.ts +2 -0
- package/dist/types/src/components/index.d.ts +7 -0
- package/dist/types/src/components/input/dropdown/dropdown.vue.d.ts +15 -0
- package/dist/types/src/components/input/radio-button/radio-button.vue.d.ts +13 -32
- package/dist/types/src/components/input/radio-button/radio-group.vue.d.ts +50 -0
- package/dist/types/src/components/input/text-field/text-field.vue.d.ts +2 -2
- package/dist/types/src/components/navigation/link/link.vue.d.ts +1 -1
- package/dist/types/src/components/overlay/modal/modal.vue.d.ts +186 -0
- package/dist/types/src/components/overlay/overlay/overlay.vue.d.ts +46 -0
- package/dist/types/src/helpers/getInstance.d.ts +6 -0
- package/dist/types/src/helpers/mobileMockup.vue.d.ts +9 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
1
|
+
import { defineComponent as B, toRefs as D, ref as l, watch as N, nextTick as R, inject as v, onMounted as V, onBeforeUnmount as q, openBlock as _, createElementBlock as w, createElementVNode as n, toDisplayString as h, unref as d, createBlock as H, mergeProps as I, createCommentVNode as P, createVNode as T, normalizeClass as y, renderSlot as j, createTextVNode as A } from "vue";
|
|
2
|
+
import { I as E } from "./icon-svg-CEZ-L3iv.js";
|
|
3
3
|
import O from "./tag.es.js";
|
|
4
4
|
import { _ as $ } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
|
-
import './style/accordion.css';const b = { class: "rds-accordion" }, z = { class: "rds-accordion-title" },
|
|
5
|
+
import './style/accordion.css';const b = { class: "rds-e-accordion" }, z = { class: "rds-e-accordion-title" }, M = { class: "rds-e-accordion-title_right" }, U = /* @__PURE__ */ B({
|
|
6
6
|
__name: "accordion",
|
|
7
7
|
props: {
|
|
8
8
|
/**
|
|
@@ -10,8 +10,7 @@ import './style/accordion.css';const b = { class: "rds-accordion" }, z = { class
|
|
|
10
10
|
*/
|
|
11
11
|
id: {
|
|
12
12
|
type: String,
|
|
13
|
-
required: !0
|
|
14
|
-
validator: (o) => !o || o.trim().length > 0 ? (console.error("[RDSAccordion]: La propiedad id es requerida."), !1) : !0
|
|
13
|
+
required: !0
|
|
15
14
|
},
|
|
16
15
|
/**
|
|
17
16
|
* El título del acordeón.
|
|
@@ -44,78 +43,78 @@ import './style/accordion.css';const b = { class: "rds-accordion" }, z = { class
|
|
|
44
43
|
}
|
|
45
44
|
},
|
|
46
45
|
emits: ["update:open"],
|
|
47
|
-
setup(
|
|
48
|
-
const
|
|
49
|
-
if (!
|
|
46
|
+
setup(c, { expose: C, emit: k }) {
|
|
47
|
+
const o = c, x = k, { tag: a } = D(o), t = l(o.open), i = l(null), s = l(null), S = () => {
|
|
48
|
+
if (!i.value || !s.value) return;
|
|
50
49
|
const e = s.value.scrollHeight;
|
|
51
|
-
|
|
52
|
-
},
|
|
53
|
-
e === void 0 ? t.value = !t.value : t.value = e,
|
|
54
|
-
}, u = () => {
|
|
55
|
-
i(!0);
|
|
50
|
+
i.value.style.maxHeight = t.value ? `${e}px` : "0px";
|
|
51
|
+
}, r = (e) => {
|
|
52
|
+
e === void 0 ? t.value = !t.value : t.value = e, x("update:open", t.value), S();
|
|
56
53
|
}, p = () => {
|
|
57
|
-
|
|
54
|
+
r(!0);
|
|
55
|
+
}, u = () => {
|
|
56
|
+
r(!1);
|
|
58
57
|
};
|
|
59
|
-
|
|
60
|
-
() =>
|
|
61
|
-
(e) =>
|
|
62
|
-
|
|
58
|
+
N(
|
|
59
|
+
() => o.open,
|
|
60
|
+
(e) => R(() => {
|
|
61
|
+
r(e);
|
|
63
62
|
}),
|
|
64
63
|
{ immediate: !0 }
|
|
65
64
|
);
|
|
66
|
-
const
|
|
67
|
-
return
|
|
68
|
-
|
|
69
|
-
id:
|
|
70
|
-
open:
|
|
71
|
-
close:
|
|
65
|
+
const m = v("registerRDSAccordionChild"), f = v("unregisterRDSAccordionChild");
|
|
66
|
+
return V(() => {
|
|
67
|
+
m && m({
|
|
68
|
+
id: o.id,
|
|
69
|
+
open: p,
|
|
70
|
+
close: u
|
|
72
71
|
});
|
|
73
|
-
}),
|
|
74
|
-
|
|
72
|
+
}), q(() => {
|
|
73
|
+
f && f(o.id);
|
|
75
74
|
}), C({
|
|
76
75
|
/**
|
|
77
76
|
* Abre el panel.
|
|
78
77
|
*/
|
|
79
|
-
openPanel:
|
|
78
|
+
openPanel: p,
|
|
80
79
|
/**
|
|
81
80
|
* Cierra el panel.
|
|
82
81
|
*/
|
|
83
|
-
closePanel:
|
|
82
|
+
closePanel: u
|
|
84
83
|
}), (e, g) => (_(), w("div", b, [
|
|
85
|
-
|
|
86
|
-
class: "rds-accordion-title_container",
|
|
87
|
-
onClick: g[0] || (g[0] = () =>
|
|
84
|
+
n("div", {
|
|
85
|
+
class: "rds-e-accordion-title_container",
|
|
86
|
+
onClick: g[0] || (g[0] = () => r())
|
|
88
87
|
}, [
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
d(a) && d(a).icon ? (_(),
|
|
88
|
+
n("span", z, h(c.title), 1),
|
|
89
|
+
n("div", M, [
|
|
90
|
+
d(a) && d(a).icon ? (_(), H(O, I({
|
|
92
91
|
key: 0,
|
|
93
|
-
class: "rds-accordion-title_tag"
|
|
92
|
+
class: "rds-e-accordion-title_tag"
|
|
94
93
|
}, d(a), { small: "" }), null, 16)) : P("", !0),
|
|
95
|
-
T(
|
|
96
|
-
class: y(["rds-accordion-title_icon", { "rds-accordion-title_icon--open": t.value }]),
|
|
94
|
+
T(E, {
|
|
95
|
+
class: y(["rds-e-accordion-title_icon", { "rds-e-accordion-title_icon--open": t.value }]),
|
|
97
96
|
name: "arrow_down"
|
|
98
97
|
}, null, 8, ["class"])
|
|
99
98
|
])
|
|
100
99
|
]),
|
|
101
|
-
|
|
100
|
+
n("div", {
|
|
102
101
|
ref_key: "panel",
|
|
103
|
-
ref:
|
|
104
|
-
class: y(["rds-accordion-panel", { "rds-accordion-panel--open": t.value }])
|
|
102
|
+
ref: i,
|
|
103
|
+
class: y(["rds-e-accordion-panel", { "rds-e-accordion-panel--open": t.value }])
|
|
105
104
|
}, [
|
|
106
|
-
|
|
105
|
+
n("div", {
|
|
107
106
|
ref_key: "panelContent",
|
|
108
107
|
ref: s,
|
|
109
|
-
class: "rds-accordion-panel_content"
|
|
108
|
+
class: "rds-e-accordion-panel_content"
|
|
110
109
|
}, [
|
|
111
110
|
j(e.$slots, "default", {}, () => [
|
|
112
|
-
|
|
111
|
+
A(h(c.content), 1)
|
|
113
112
|
], !0)
|
|
114
113
|
], 512)
|
|
115
114
|
], 2)
|
|
116
115
|
]));
|
|
117
116
|
}
|
|
118
|
-
}),
|
|
117
|
+
}), L = /* @__PURE__ */ $(U, [["__scopeId", "data-v-150c3a24"]]);
|
|
119
118
|
export {
|
|
120
|
-
|
|
119
|
+
L as default
|
|
121
120
|
};
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import { defineComponent as s, ref as t, provide as r, openBlock as d, createElementBlock as i, renderSlot as a } from "vue";
|
|
2
2
|
import { _ as p } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
|
-
import './style/accordionGroup.css';const u = { class: "rds-accordion-group" }, _ = /* @__PURE__ */ s({
|
|
3
|
+
import './style/accordionGroup.css';const u = { class: "rds-e-accordion-group" }, _ = /* @__PURE__ */ s({
|
|
4
4
|
__name: "accordion-group",
|
|
5
5
|
setup(f, { expose: n }) {
|
|
6
|
-
const
|
|
7
|
-
return r("registerRDSAccordionChild", (
|
|
8
|
-
|
|
9
|
-
}), r("unregisterRDSAccordionChild", (
|
|
10
|
-
const c =
|
|
11
|
-
c > -1 &&
|
|
6
|
+
const o = t([]);
|
|
7
|
+
return r("registerRDSAccordionChild", (e) => {
|
|
8
|
+
o.value.push(e);
|
|
9
|
+
}), r("unregisterRDSAccordionChild", (e) => {
|
|
10
|
+
const c = o.value.findIndex((l) => l.id === e);
|
|
11
|
+
c > -1 && o.value.splice(c, 1);
|
|
12
12
|
}), n({
|
|
13
13
|
/**
|
|
14
14
|
* Abre todos los paneles del acordeón
|
|
15
15
|
*/
|
|
16
16
|
openAll: () => {
|
|
17
|
-
|
|
17
|
+
o.value.forEach((e) => e.open());
|
|
18
18
|
},
|
|
19
19
|
/**
|
|
20
20
|
* Cierra todos los paneles del acordeón
|
|
21
21
|
*/
|
|
22
22
|
closeAll: () => {
|
|
23
|
-
|
|
23
|
+
o.value.forEach((e) => e.close());
|
|
24
24
|
}
|
|
25
|
-
}), (
|
|
26
|
-
a(
|
|
25
|
+
}), (e, c) => (d(), i("div", u, [
|
|
26
|
+
a(e.$slots, "default", {}, void 0, !0)
|
|
27
27
|
]));
|
|
28
28
|
}
|
|
29
|
-
}), x = /* @__PURE__ */ p(_, [["__scopeId", "data-v-
|
|
29
|
+
}), x = /* @__PURE__ */ p(_, [["__scopeId", "data-v-97abd23e"]]);
|
|
30
30
|
export {
|
|
31
31
|
x as default
|
|
32
32
|
};
|
|
@@ -53,12 +53,12 @@ import './style/actionButton.css';const p = /* @__PURE__ */ o({
|
|
|
53
53
|
}
|
|
54
54
|
},
|
|
55
55
|
setup(e) {
|
|
56
|
-
return (t, i) => (a(), r(s, n({ class: "rds-btn--action" }, { ...t.$props, ...t.$attrs }, {
|
|
56
|
+
return (t, i) => (a(), r(s, n({ class: "rds-e-btn--action" }, { ...t.$props, ...t.$attrs }, {
|
|
57
57
|
text: "",
|
|
58
58
|
"is-action": ""
|
|
59
59
|
}), null, 16));
|
|
60
60
|
}
|
|
61
|
-
}), f = /* @__PURE__ */ l(p, [["__scopeId", "data-v-
|
|
61
|
+
}), f = /* @__PURE__ */ l(p, [["__scopeId", "data-v-782579da"]]);
|
|
62
62
|
export {
|
|
63
63
|
f as default
|
|
64
64
|
};
|
|
@@ -47,7 +47,7 @@ import './style/breadcrumbs.css';const R = { key: 0 }, V = /* @__PURE__ */ g({
|
|
|
47
47
|
];
|
|
48
48
|
}, u = () => {
|
|
49
49
|
s.trimItems && t.value.length > 3 ? m() : typeof s.items == "object" ? n.value = s.items : console.error("energy-components: The prop is not an Object");
|
|
50
|
-
},
|
|
50
|
+
}, b = (e, a) => {
|
|
51
51
|
const r = {
|
|
52
52
|
...e,
|
|
53
53
|
inverse: o.value
|
|
@@ -56,14 +56,14 @@ import './style/breadcrumbs.css';const R = { key: 0 }, V = /* @__PURE__ */ g({
|
|
|
56
56
|
arrow: !0,
|
|
57
57
|
right: !0
|
|
58
58
|
}), r;
|
|
59
|
-
},
|
|
59
|
+
}, _ = (e) => ({
|
|
60
60
|
click: (r) => {
|
|
61
61
|
r.preventDefault(), r.stopPropagation(), e != null && e.clickable && v();
|
|
62
62
|
}
|
|
63
63
|
}), k = (e) => [
|
|
64
|
-
"rds-breadcrumbs__link",
|
|
65
|
-
e != null && e.active ? "rds-breadcrumbs__link--active" : "",
|
|
66
|
-
o.value && (e != null && e.active) ? "rds-breadcrumbs__link--inverse-active" : ""
|
|
64
|
+
"rds-e-breadcrumbs__link",
|
|
65
|
+
e != null && e.active ? "rds-e-breadcrumbs__link--active" : "",
|
|
66
|
+
o.value && (e != null && e.active) ? "rds-e-breadcrumbs__link--inverse-active" : ""
|
|
67
67
|
];
|
|
68
68
|
return C(() => {
|
|
69
69
|
u();
|
|
@@ -71,12 +71,12 @@ import './style/breadcrumbs.css';const R = { key: 0 }, V = /* @__PURE__ */ g({
|
|
|
71
71
|
u();
|
|
72
72
|
}), (e, a) => (c(!0), l(I, null, w(n.value, (r, i) => (c(), l("ul", {
|
|
73
73
|
key: i,
|
|
74
|
-
class: x(["rds-breadcrumbs", `${B(o) ? "rds-breadcrumbs--inverse" : ""}`])
|
|
74
|
+
class: x(["rds-e-breadcrumbs", `${B(o) ? "rds-e-breadcrumbs--inverse" : ""}`])
|
|
75
75
|
}, [
|
|
76
76
|
j(N, E({
|
|
77
77
|
class: k(r),
|
|
78
78
|
ref_for: !0
|
|
79
|
-
},
|
|
79
|
+
}, b(r, i), P(_(r))), {
|
|
80
80
|
default: T(() => [
|
|
81
81
|
r != null && r.clickable ? (c(), l("span", R, "...")) : D("", !0)
|
|
82
82
|
]),
|
|
@@ -84,7 +84,7 @@ import './style/breadcrumbs.css';const R = { key: 0 }, V = /* @__PURE__ */ g({
|
|
|
84
84
|
}, 1040, ["class"])
|
|
85
85
|
], 2))), 128));
|
|
86
86
|
}
|
|
87
|
-
}), F = /* @__PURE__ */ O(V, [["__scopeId", "data-v-
|
|
87
|
+
}), F = /* @__PURE__ */ O(V, [["__scopeId", "data-v-f9b5ced9"]]);
|
|
88
88
|
export {
|
|
89
89
|
F as default
|
|
90
90
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as B, toRefs as
|
|
2
|
-
import {
|
|
3
|
-
import { _ as
|
|
4
|
-
import './style/button.css';const
|
|
1
|
+
import { defineComponent as B, toRefs as I, computed as l, openBlock as v, createElementBlock as S, unref as s, normalizeClass as m, createBlock as x, createCommentVNode as k, createElementVNode as $, renderSlot as C, createTextVNode as N, toDisplayString as V } from "vue";
|
|
2
|
+
import { I as E } from "./icon-svg-CEZ-L3iv.js";
|
|
3
|
+
import { _ as L } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
|
+
import './style/button.css';const w = ["type", "disabled"], D = { class: "rds-e-btn__text" }, R = /* @__PURE__ */ B({
|
|
5
5
|
__name: "button",
|
|
6
6
|
props: {
|
|
7
7
|
/**
|
|
@@ -101,7 +101,7 @@ import './style/button.css';const E = ["type", "disabled"], L = { class: "rds-bt
|
|
|
101
101
|
setup(e) {
|
|
102
102
|
const t = e, {
|
|
103
103
|
text: o,
|
|
104
|
-
icon:
|
|
104
|
+
icon: a,
|
|
105
105
|
type: r,
|
|
106
106
|
variant: i,
|
|
107
107
|
small: f,
|
|
@@ -110,35 +110,35 @@ import './style/button.css';const E = ["type", "disabled"], L = { class: "rds-bt
|
|
|
110
110
|
inverse: d,
|
|
111
111
|
revertIcon: _,
|
|
112
112
|
loading: p
|
|
113
|
-
} =
|
|
114
|
-
const
|
|
115
|
-
return i.value &&
|
|
116
|
-
o != null && o.value ? "rds-btn--with-icon" : "rds-btn--icon"
|
|
117
|
-
), f.value &&
|
|
113
|
+
} = I(t), c = l(() => p.value ? "loading" : a != null && a.value ? a == null ? void 0 : a.value : ""), h = l(() => r.value && ["button", "submit", "reset"].includes(r.value) ? r.value : "button"), b = l(() => ["primary", "secondary", "ghost"].includes(i.value) ? i.value : "primary"), g = l(() => {
|
|
114
|
+
const n = ["rds-e-btn"];
|
|
115
|
+
return i.value && n.push(`rds-e-btn--${b.value}`), d.value && n.push(`rds-e-btn--${b.value}-inverse`), c.value && n.push(
|
|
116
|
+
o != null && o.value ? "rds-e-btn--with-icon" : "rds-e-btn--icon"
|
|
117
|
+
), f.value && n.push("rds-e-btn--small"), _.value && n.push("rds-e-btn--revert"), u.value && n.push("rds-e-style-state-disabled"), p.value && n.push("rds-e-btn--loading"), y.value && n.push("rds-e-btn--mobile-width"), n.join(" ");
|
|
118
118
|
});
|
|
119
|
-
return (
|
|
119
|
+
return (n, W) => (v(), S("button", {
|
|
120
120
|
type: h.value,
|
|
121
121
|
disabled: s(u),
|
|
122
122
|
class: m(g.value)
|
|
123
123
|
}, [
|
|
124
|
-
c.value ? (
|
|
124
|
+
c.value ? (v(), x(E, {
|
|
125
125
|
key: 0,
|
|
126
126
|
name: c.value,
|
|
127
127
|
small: s(f),
|
|
128
|
-
class: m(["rds-btn__icon", [
|
|
129
|
-
s(d) ? `rds-btn__icon--${s(d)}` : "",
|
|
130
|
-
s(u) ? "rds-btn__icon--disabled" : ""
|
|
128
|
+
class: m(["rds-e-btn__icon", [
|
|
129
|
+
s(d) ? `rds-e-btn__icon--${s(d)}` : "",
|
|
130
|
+
s(u) ? "rds-e-btn__icon--disabled" : ""
|
|
131
131
|
]]),
|
|
132
132
|
"aria-hidden": "true"
|
|
133
133
|
}, null, 8, ["name", "small", "class"])) : k("", !0),
|
|
134
|
-
$("span",
|
|
135
|
-
C(
|
|
136
|
-
N(
|
|
134
|
+
$("span", D, [
|
|
135
|
+
C(n.$slots, "default", {}, () => [
|
|
136
|
+
N(V(s(o)), 1)
|
|
137
137
|
], !0)
|
|
138
138
|
])
|
|
139
|
-
], 10,
|
|
139
|
+
], 10, w));
|
|
140
140
|
}
|
|
141
|
-
}), F = /* @__PURE__ */
|
|
141
|
+
}), F = /* @__PURE__ */ L(R, [["__scopeId", "data-v-590609be"]]);
|
|
142
142
|
export {
|
|
143
143
|
F as default
|
|
144
144
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { openBlock as r, createElementBlock as t, renderSlot as o } from "vue";
|
|
2
|
+
import { _ as c } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
|
+
import './style/card.css';const d = {}, s = { class: "rds-e-card" };
|
|
4
|
+
function n(e, a) {
|
|
5
|
+
return r(), t("div", s, [
|
|
6
|
+
o(e.$slots, "default", {}, void 0, !0)
|
|
7
|
+
]);
|
|
8
|
+
}
|
|
9
|
+
const l = /* @__PURE__ */ c(d, [["render", n], ["__scopeId", "data-v-6dfda4fc"]]);
|
|
10
|
+
export {
|
|
11
|
+
l as default
|
|
12
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as x, ref as d, watch as v, onMounted as y, onBeforeUnmount as w, openBlock as b, createElementBlock as g, normalizeClass as o, createElementVNode as n, renderSlot as S, createTextVNode as B, toDisplayString as C, createBlock as E, createCommentVNode as L } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { I as V } from "./icon-svg-CEZ-L3iv.js";
|
|
3
3
|
import { _ } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
|
-
import './style/checkbox.css';const
|
|
4
|
+
import './style/checkbox.css';const N = ["id", "checked", "aria-label", "required", "disabled"], q = ["for"], D = /* @__PURE__ */ x({
|
|
5
5
|
__name: "checkbox",
|
|
6
6
|
props: {
|
|
7
7
|
/**
|
|
@@ -80,51 +80,51 @@ import './style/checkbox.css';const D = ["id", "checked", "aria-label", "require
|
|
|
80
80
|
window.addEventListener("keydown", r), window.addEventListener("mousedown", i);
|
|
81
81
|
}), w(() => {
|
|
82
82
|
window.removeEventListener("keydown", r), window.removeEventListener("mousedown", i);
|
|
83
|
-
}), (a,
|
|
84
|
-
class: o(["rds-checkbox__container", { "rds-checkbox__container--focused": l.value }])
|
|
83
|
+
}), (a, I) => (b(), g("div", {
|
|
84
|
+
class: o(["rds-e-checkbox__container", { "rds-e-checkbox__container--focused": l.value }])
|
|
85
85
|
}, [
|
|
86
86
|
n("input", {
|
|
87
87
|
id: e.id.toString(),
|
|
88
88
|
checked: e.isChecked,
|
|
89
89
|
"aria-label": e.accessibilityLabel,
|
|
90
90
|
type: "checkbox",
|
|
91
|
-
class: o(["rds-checkbox", { "rds-checkbox--error": e.error }]),
|
|
91
|
+
class: o(["rds-e-checkbox", { "rds-e-checkbox--error": e.error }]),
|
|
92
92
|
required: e.required,
|
|
93
93
|
disabled: e.disabled,
|
|
94
94
|
onChange: m,
|
|
95
95
|
onFocus: h,
|
|
96
96
|
onBlur: k
|
|
97
|
-
}, null, 42,
|
|
97
|
+
}, null, 42, N),
|
|
98
98
|
n("label", {
|
|
99
99
|
for: e.id.toString(),
|
|
100
|
-
class: o(["rds-checkbox__label", {
|
|
101
|
-
"rds-checkbox__label--disabled": e.disabled,
|
|
102
|
-
"rds-checkbox__label--checked": t.value
|
|
100
|
+
class: o(["rds-e-checkbox__label", {
|
|
101
|
+
"rds-e-checkbox__label--disabled": e.disabled,
|
|
102
|
+
"rds-e-checkbox__label--checked": t.value
|
|
103
103
|
}])
|
|
104
104
|
}, [
|
|
105
105
|
S(a.$slots, "label-text", {}, () => [
|
|
106
106
|
n("span", {
|
|
107
107
|
class: o([
|
|
108
|
-
"rds-checkbox__label-box",
|
|
108
|
+
"rds-e-checkbox__label-box",
|
|
109
109
|
{
|
|
110
|
-
"rds-checkbox__label-box--disabled": e.disabled,
|
|
111
|
-
"rds-checkbox__label-box--error": e.error
|
|
110
|
+
"rds-e-checkbox__label-box--disabled": e.disabled,
|
|
111
|
+
"rds-e-checkbox__label-box--error": e.error
|
|
112
112
|
}
|
|
113
113
|
])
|
|
114
114
|
}, [
|
|
115
115
|
B(C(e.label) + " ", 1),
|
|
116
116
|
e.icon ? (b(), E(V, {
|
|
117
117
|
key: 0,
|
|
118
|
-
class: "rds-checkbox__label-box--icon",
|
|
118
|
+
class: "rds-e-checkbox__label-box--icon",
|
|
119
119
|
name: e.icon,
|
|
120
120
|
size: "sm"
|
|
121
121
|
}, null, 8, ["name"])) : L("", !0)
|
|
122
122
|
], 2)
|
|
123
123
|
], !0)
|
|
124
|
-
], 10,
|
|
124
|
+
], 10, q)
|
|
125
125
|
], 2));
|
|
126
126
|
}
|
|
127
|
-
}),
|
|
127
|
+
}), M = /* @__PURE__ */ _(D, [["__scopeId", "data-v-6beff478"]]);
|
|
128
128
|
export {
|
|
129
|
-
|
|
129
|
+
M as default
|
|
130
130
|
};
|