energy-components 1.0.3 → 1.1.1
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 +46 -47
- 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 +16 -16
- package/dist/components/card.es.js +2 -2
- package/dist/components/checkbox.es.js +11 -11
- package/dist/components/datepicker.es.js +4 -4
- package/dist/components/divider.es.js +6 -6
- package/dist/components/dropdown.es.js +25 -25
- package/dist/components/floatingActionButton.es.js +4 -4
- package/dist/components/{icon-svg-7Vih8GMM.js → icon-svg-CEZ-L3iv.js} +4 -4
- package/dist/components/iconList.es.js +7 -7
- package/dist/components/iconSvg.es.js +1 -1
- package/dist/components/index.es.js +59 -50
- package/dist/components/indicator.es.js +21 -21
- package/dist/components/infoBox.es.js +152 -0
- package/dist/components/link.es.js +16 -16
- package/dist/components/modal.es.js +62 -37
- package/dist/components/overlay.es.js +4 -4
- 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 +66 -45
- package/dist/components/radioGroup.es.js +1 -1
- package/dist/components/sidebar.es.js +104 -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 -1
- package/dist/components/style/checkbox.css +1 -1
- package/dist/components/style/datepicker.css +1 -1
- 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 -1
- package/dist/components/style/multiselect.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 -0
- package/dist/components/style/radioButton.css +1 -1
- package/dist/components/style/sidebar.css +1 -0
- 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 +11 -11
- package/dist/components/tabBar.es.js +26 -26
- package/dist/components/tag.es.js +9 -9
- package/dist/components/textArea.es.js +14 -14
- package/dist/components/textField.es.js +14 -14
- package/dist/components/tooltip.es.js +10 -10
- package/dist/composables/index.es.js +37 -0
- package/dist/energy-components.es.js +4075 -3646
- 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/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/index.d.ts +3 -0
- package/dist/types/src/components/input/radio-button/radio-button.vue.d.ts +12 -12
- package/dist/types/src/components/input/radio-button/radio-group.vue.d.ts +24 -14
- package/dist/types/src/components/layout/sidebar/sidebar.vue.d.ts +49 -0
- package/dist/types/src/components/overlay/modal/modal.vue.d.ts +34 -0
- package/dist/types/src/composables/breakpoints.d.ts +5 -0
- package/dist/types/src/composables/index.d.ts +1 -0
- package/dist/types/src/helpers/getInstance.d.ts +6 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +7 -3
- package/dist/components/radio-group.vue_vue_type_script_setup_true_lang-D-Dl5aHN.js +0 -18
|
@@ -10708,7 +10708,7 @@ import './style/icon-svg.css';const n = "selection", I = [
|
|
|
10708
10708
|
showQuickUse2: !0,
|
|
10709
10709
|
showSVGs: !0,
|
|
10710
10710
|
fontPref: {
|
|
10711
|
-
prefix: "rds-icon-",
|
|
10711
|
+
prefix: "rds-e-icon-",
|
|
10712
10712
|
metadata: {
|
|
10713
10713
|
fontFamily: "",
|
|
10714
10714
|
majorVersion: 1,
|
|
@@ -10799,8 +10799,8 @@ const m = o.reduce((c, s) => (c[s.name] = s, c), {}), S = /* @__PURE__ */ a({
|
|
|
10799
10799
|
});
|
|
10800
10800
|
return (e, _) => (l(), t("span", {
|
|
10801
10801
|
"aria-hidden": "true",
|
|
10802
|
-
class: i(["icon rds-icon", [
|
|
10803
|
-
`rds-icon-${c.name}`,
|
|
10802
|
+
class: i(["icon rds-e-icon", [
|
|
10803
|
+
`rds-e-icon-${c.name}`,
|
|
10804
10804
|
c.modifier && `icon--${c.modifier}`,
|
|
10805
10805
|
c.small && "icon--small"
|
|
10806
10806
|
]]),
|
|
@@ -10812,7 +10812,7 @@ const m = o.reduce((c, s) => (c[s.name] = s, c), {}), S = /* @__PURE__ */ a({
|
|
|
10812
10812
|
}, null, 2))), 128))
|
|
10813
10813
|
], 6));
|
|
10814
10814
|
}
|
|
10815
|
-
}), k = /* @__PURE__ */ p(S, [["__scopeId", "data-v-
|
|
10815
|
+
}), k = /* @__PURE__ */ p(S, [["__scopeId", "data-v-426142e9"]]);
|
|
10816
10816
|
export {
|
|
10817
10817
|
k as I,
|
|
10818
10818
|
o as i
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as p, ref as a, computed as v, openBlock as s, createElementBlock as i, Fragment as u, withDirectives as f, createElementVNode as r, vModelText as C, renderList as L, normalizeClass as x, createVNode as g, toDisplayString as h } from "vue";
|
|
2
|
-
import { i as m, I as k } from "./icon-svg-
|
|
2
|
+
import { i as m, I as k } from "./icon-svg-CEZ-L3iv.js";
|
|
3
3
|
import { _ as w } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
|
-
import './style/iconList.css';const y = { class: "rds-icon-list" }, I = ["onClick"], N = /* @__PURE__ */ p({
|
|
4
|
+
import './style/iconList.css';const y = { class: "rds-e-icon-list" }, I = ["onClick"], N = /* @__PURE__ */ p({
|
|
5
5
|
__name: "icon-list",
|
|
6
6
|
setup(T) {
|
|
7
7
|
const o = a(""), l = a(!1), c = a(""), d = v(() => {
|
|
@@ -21,7 +21,7 @@ import './style/iconList.css';const y = { class: "rds-icon-list" }, I = ["onClic
|
|
|
21
21
|
return (t, n) => (s(), i(u, null, [
|
|
22
22
|
f(r("input", {
|
|
23
23
|
"onUpdate:modelValue": n[0] || (n[0] = (e) => o.value = e),
|
|
24
|
-
class: "rds-icon-list__filter",
|
|
24
|
+
class: "rds-e-icon-list__filter",
|
|
25
25
|
type: "text",
|
|
26
26
|
placeholder: "Filtrar iconos"
|
|
27
27
|
}, null, 512), [
|
|
@@ -30,8 +30,8 @@ import './style/iconList.css';const y = { class: "rds-icon-list" }, I = ["onClic
|
|
|
30
30
|
r("div", y, [
|
|
31
31
|
(s(!0), i(u, null, L(d.value, (e) => (s(), i("div", {
|
|
32
32
|
key: e.name,
|
|
33
|
-
class: x(["rds-icon-list__item", {
|
|
34
|
-
"rds-icon-list__item--active": l.value && c.value === e.name
|
|
33
|
+
class: x(["rds-e-icon-list__item", {
|
|
34
|
+
"rds-e-icon-list__item--active": l.value && c.value === e.name
|
|
35
35
|
}]),
|
|
36
36
|
onClick: (V) => _(e.name)
|
|
37
37
|
}, [
|
|
@@ -43,7 +43,7 @@ import './style/iconList.css';const y = { class: "rds-icon-list" }, I = ["onClic
|
|
|
43
43
|
])
|
|
44
44
|
], 64));
|
|
45
45
|
}
|
|
46
|
-
}),
|
|
46
|
+
}), F = /* @__PURE__ */ w(N, [["__scopeId", "data-v-12fc5634"]]);
|
|
47
47
|
export {
|
|
48
|
-
|
|
48
|
+
F as default
|
|
49
49
|
};
|
|
@@ -1,61 +1,67 @@
|
|
|
1
|
-
import { I as i } from "./icon-svg-
|
|
1
|
+
import { I as i } from "./icon-svg-CEZ-L3iv.js";
|
|
2
2
|
import a from "./button.es.js";
|
|
3
3
|
import m from "./floatingActionButton.es.js";
|
|
4
4
|
import n from "./actionButton.es.js";
|
|
5
5
|
import S from "./checkbox.es.js";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
6
|
+
import e from "./textField.es.js";
|
|
7
|
+
import D from "./textArea.es.js";
|
|
8
|
+
import R from "./switch.es.js";
|
|
9
9
|
import p from "./radioButton.es.js";
|
|
10
|
-
import { _ as
|
|
11
|
-
import
|
|
10
|
+
import { _ as s } from "./radio-group.vue_vue_type_script_setup_true_lang-B-kg-575.js";
|
|
11
|
+
import c from "./dropdown.es.js";
|
|
12
12
|
import f from "./datepicker.es.js";
|
|
13
|
-
import
|
|
13
|
+
import d from "./tag.es.js";
|
|
14
14
|
import u from "./accordionGroup.es.js";
|
|
15
15
|
import l from "./accordion.es.js";
|
|
16
16
|
import b from "./divider.es.js";
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
17
|
+
import B from "./card.es.js";
|
|
18
|
+
import T from "./link.es.js";
|
|
19
|
+
import A from "./breadcrumbs.es.js";
|
|
20
|
+
import g from "./tabBar.es.js";
|
|
21
|
+
import x from "./pagination.es.js";
|
|
22
22
|
import I from "./indicator.es.js";
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
23
|
+
import v from "./persistentToast.es.js";
|
|
24
|
+
import _ from "./infoBox.es.js";
|
|
25
|
+
import P from "./modal.es.js";
|
|
26
|
+
import w from "./overlay.es.js";
|
|
27
|
+
import k from "./tooltip.es.js";
|
|
28
|
+
import G from "./sidebar.es.js";
|
|
26
29
|
const t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
27
30
|
__proto__: null,
|
|
28
31
|
RDSAccordion: l,
|
|
29
32
|
RDSAccordionGroup: u,
|
|
30
33
|
RDSActionButton: n,
|
|
31
|
-
RDSBreadcrumbs:
|
|
34
|
+
RDSBreadcrumbs: A,
|
|
32
35
|
RDSButton: a,
|
|
33
|
-
RDSCard:
|
|
36
|
+
RDSCard: B,
|
|
34
37
|
RDSCheckbox: S,
|
|
35
38
|
RDSDatePicker: f,
|
|
36
39
|
RDSDivider: b,
|
|
37
|
-
RDSDropdown:
|
|
40
|
+
RDSDropdown: c,
|
|
38
41
|
RDSFloatinActionButton: m,
|
|
39
42
|
RDSIconSvg: i,
|
|
40
43
|
RDSIndicator: I,
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
44
|
+
RDSInfoBox: _,
|
|
45
|
+
RDSLink: T,
|
|
46
|
+
RDSModal: P,
|
|
47
|
+
RDSOverlay: w,
|
|
48
|
+
RDSPagination: x,
|
|
49
|
+
RDSPersistentToast: v,
|
|
45
50
|
RDSRadioButton: p,
|
|
46
|
-
RDSRadioGroup:
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
51
|
+
RDSRadioGroup: s,
|
|
52
|
+
RDSSidebar: G,
|
|
53
|
+
RDSSwitch: R,
|
|
54
|
+
RDSTabBar: g,
|
|
55
|
+
RDSTag: d,
|
|
56
|
+
RDSTextArea: D,
|
|
57
|
+
RDSTextField: e,
|
|
58
|
+
RDSTooltip: k
|
|
53
59
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
54
|
-
let
|
|
55
|
-
function
|
|
56
|
-
|
|
60
|
+
let h;
|
|
61
|
+
function no(o) {
|
|
62
|
+
h = o;
|
|
57
63
|
}
|
|
58
|
-
const
|
|
64
|
+
const So = {
|
|
59
65
|
install: (o) => {
|
|
60
66
|
for (const r in t)
|
|
61
67
|
o.component(
|
|
@@ -68,29 +74,32 @@ export {
|
|
|
68
74
|
l as RDSAccordion,
|
|
69
75
|
u as RDSAccordionGroup,
|
|
70
76
|
n as RDSActionButton,
|
|
71
|
-
|
|
77
|
+
A as RDSBreadcrumbs,
|
|
72
78
|
a as RDSButton,
|
|
73
|
-
|
|
79
|
+
B as RDSCard,
|
|
74
80
|
S as RDSCheckbox,
|
|
75
81
|
f as RDSDatePicker,
|
|
76
82
|
b as RDSDivider,
|
|
77
|
-
|
|
83
|
+
c as RDSDropdown,
|
|
78
84
|
m as RDSFloatinActionButton,
|
|
79
85
|
i as RDSIconSvg,
|
|
80
86
|
I as RDSIndicator,
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
87
|
+
_ as RDSInfoBox,
|
|
88
|
+
T as RDSLink,
|
|
89
|
+
P as RDSModal,
|
|
90
|
+
w as RDSOverlay,
|
|
91
|
+
x as RDSPagination,
|
|
92
|
+
v as RDSPersistentToast,
|
|
85
93
|
p as RDSRadioButton,
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
D as
|
|
92
|
-
|
|
93
|
-
k as
|
|
94
|
-
|
|
95
|
-
|
|
94
|
+
s as RDSRadioGroup,
|
|
95
|
+
G as RDSSidebar,
|
|
96
|
+
R as RDSSwitch,
|
|
97
|
+
g as RDSTabBar,
|
|
98
|
+
d as RDSTag,
|
|
99
|
+
D as RDSTextArea,
|
|
100
|
+
e as RDSTextField,
|
|
101
|
+
k as RDSTooltip,
|
|
102
|
+
h as VueInstance,
|
|
103
|
+
So as default,
|
|
104
|
+
no as setVueInstance
|
|
96
105
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as k, toRefs as z, ref as y, computed as N, watch as S, onMounted as q, onBeforeUnmount as P, openBlock as d, createElementBlock as u, normalizeClass as
|
|
1
|
+
import { defineComponent as k, toRefs as z, ref as y, computed as N, watch as S, onMounted as q, onBeforeUnmount as P, openBlock as d, createElementBlock as u, normalizeClass as b, createElementVNode as p, normalizeStyle as V, Fragment as W, renderList as I, toDisplayString as B, createCommentVNode as C } from "vue";
|
|
2
2
|
import { d as T, t as A, a as D } from "./functions-DIHwdgF0.js";
|
|
3
3
|
import { _ as F } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
|
-
import './style/indicator.css';const M = { class: "rds-indicator__inner" }, U = { class: "rds-indicator__step-content" }, X = { key: 0 }, Y = /* @__PURE__ */ k({
|
|
4
|
+
import './style/indicator.css';const M = { class: "rds-e-indicator__inner" }, U = { class: "rds-e-indicator__step-content" }, X = { key: 0 }, Y = /* @__PURE__ */ k({
|
|
5
5
|
__name: "indicator",
|
|
6
6
|
props: {
|
|
7
7
|
/**
|
|
@@ -74,7 +74,7 @@ import './style/indicator.css';const M = { class: "rds-indicator__inner" }, U =
|
|
|
74
74
|
return {
|
|
75
75
|
[s]: `${a + n}%`
|
|
76
76
|
};
|
|
77
|
-
}),
|
|
77
|
+
}), h = () => {
|
|
78
78
|
if (_.value && v.value) {
|
|
79
79
|
const r = v.value, e = c.value[0];
|
|
80
80
|
if (e) {
|
|
@@ -91,10 +91,10 @@ import './style/indicator.css';const M = { class: "rds-indicator__inner" }, U =
|
|
|
91
91
|
}, L = (r) => {
|
|
92
92
|
const e = r === 0 || r === t.steps.length - 1, s = !e;
|
|
93
93
|
return {
|
|
94
|
-
"rds-indicator__step-wrapper--first": r === 0,
|
|
95
|
-
"rds-indicator__step-wrapper--last": r === t.steps.length - 1,
|
|
96
|
-
"rds-indicator__step-wrapper--side": e,
|
|
97
|
-
"rds-indicator__step-wrapper--central": s
|
|
94
|
+
"rds-e-indicator__step-wrapper--first": r === 0,
|
|
95
|
+
"rds-e-indicator__step-wrapper--last": r === t.steps.length - 1,
|
|
96
|
+
"rds-e-indicator__step-wrapper--side": e,
|
|
97
|
+
"rds-e-indicator__step-wrapper--central": s
|
|
98
98
|
};
|
|
99
99
|
}, g = () => {
|
|
100
100
|
!t.steps || !t.steps.length || t.steps.forEach((r, e) => {
|
|
@@ -103,18 +103,18 @@ import './style/indicator.css';const M = { class: "rds-indicator__inner" }, U =
|
|
|
103
103
|
let n = (w = c.value[e]) == null ? void 0 : w.classList, l = [];
|
|
104
104
|
n && (n = Array.from(n), l = Array.from(n), l = A(
|
|
105
105
|
l,
|
|
106
|
-
"rds-indicator__bullet--active",
|
|
106
|
+
"rds-e-indicator__bullet--active",
|
|
107
107
|
s
|
|
108
108
|
), l = A(
|
|
109
109
|
l,
|
|
110
|
-
"rds-indicator__bullet--current",
|
|
110
|
+
"rds-e-indicator__bullet--current",
|
|
111
111
|
a
|
|
112
112
|
), D(n, l) || setTimeout(() => {
|
|
113
113
|
c.value[e].classList.remove(...n), c.value[e].classList.add(...l);
|
|
114
114
|
}, 150));
|
|
115
115
|
});
|
|
116
116
|
}, m = () => {
|
|
117
|
-
|
|
117
|
+
h();
|
|
118
118
|
};
|
|
119
119
|
return S(
|
|
120
120
|
[o, $, R],
|
|
@@ -125,51 +125,51 @@ import './style/indicator.css';const M = { class: "rds-indicator__inner" }, U =
|
|
|
125
125
|
), S(f, () => {
|
|
126
126
|
g();
|
|
127
127
|
}), q(() => {
|
|
128
|
-
|
|
128
|
+
h(), g(), window.addEventListener("resize", T(m, 200));
|
|
129
129
|
}), P(() => {
|
|
130
130
|
window.removeEventListener("resize", m);
|
|
131
131
|
}), (r, e) => (d(), u("div", {
|
|
132
132
|
ref_key: "$indicator",
|
|
133
133
|
ref: _,
|
|
134
|
-
class:
|
|
135
|
-
`rds-indicator--${t.direction}`,
|
|
136
|
-
{ "rds-indicator--small": t.variant === "small" },
|
|
137
|
-
{ "rds-indicator--full-width": t.fullWidth }
|
|
134
|
+
class: b(["rds-e-indicator", [
|
|
135
|
+
`rds-e-indicator--${t.direction}`,
|
|
136
|
+
{ "rds-e-indicator--small": t.variant === "small" },
|
|
137
|
+
{ "rds-e-indicator--full-width": t.fullWidth }
|
|
138
138
|
]])
|
|
139
139
|
}, [
|
|
140
140
|
p("div", M, [
|
|
141
141
|
p("div", {
|
|
142
142
|
ref_key: "$progressBar",
|
|
143
143
|
ref: v,
|
|
144
|
-
class: "rds-indicator__progress-bar"
|
|
144
|
+
class: "rds-e-indicator__progress-bar"
|
|
145
145
|
}, [
|
|
146
146
|
p("div", {
|
|
147
|
-
class: "rds-indicator__progress-bar__fill",
|
|
147
|
+
class: "rds-e-indicator__progress-bar__fill",
|
|
148
148
|
style: V(E.value)
|
|
149
149
|
}, null, 4)
|
|
150
150
|
], 512),
|
|
151
151
|
(d(!0), u(W, null, I(t.steps, (s, a) => (d(), u("div", {
|
|
152
152
|
key: a,
|
|
153
|
-
class:
|
|
153
|
+
class: b(["rds-e-indicator__step-wrapper", L(a)])
|
|
154
154
|
}, [
|
|
155
155
|
p("div", U, [
|
|
156
156
|
p("div", {
|
|
157
157
|
ref_for: !0,
|
|
158
158
|
ref: (n) => c.value[a] = n,
|
|
159
|
-
class: "rds-indicator__bullet"
|
|
159
|
+
class: "rds-e-indicator__bullet"
|
|
160
160
|
}, [
|
|
161
161
|
t.variant !== "small" ? (d(), u("span", X, B(a + 1), 1)) : C("", !0)
|
|
162
162
|
], 512)
|
|
163
163
|
]),
|
|
164
164
|
t.variant !== "small" ? (d(), u("div", {
|
|
165
165
|
key: 0,
|
|
166
|
-
class:
|
|
166
|
+
class: b(["rds-e-indicator__label", { "rds-e-indicator__label--ellipsis": t.ellipsis }])
|
|
167
167
|
}, B(s), 3)) : C("", !0)
|
|
168
168
|
], 2))), 128))
|
|
169
169
|
])
|
|
170
170
|
], 2));
|
|
171
171
|
}
|
|
172
|
-
}), J = /* @__PURE__ */ F(Y, [["__scopeId", "data-v-
|
|
172
|
+
}), J = /* @__PURE__ */ F(Y, [["__scopeId", "data-v-5e262dbc"]]);
|
|
173
173
|
export {
|
|
174
174
|
J as default
|
|
175
175
|
};
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import { defineComponent as y, ref as d, toRefs as h, computed as k, watch as w, nextTick as C, openBlock as t, createElementBlock as s, normalizeClass as m, createElementVNode as a, createVNode as _, createCommentVNode as o, toDisplayString as i } from "vue";
|
|
2
|
+
import { I as b } from "./icon-svg-CEZ-L3iv.js";
|
|
3
|
+
import { _ as S } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
|
+
import './style/infoBox.css';const q = { class: "max-layout alert" }, $ = {
|
|
5
|
+
key: 0,
|
|
6
|
+
class: "rds-e-info-box__custom-icon-block"
|
|
7
|
+
}, B = { class: "rds-e-info-box__wrapper" }, H = { class: "rds-e-info-box__title__wrapper" }, I = {
|
|
8
|
+
key: 0,
|
|
9
|
+
class: "rds-e-info-box__title rds-mb-03"
|
|
10
|
+
}, N = {
|
|
11
|
+
key: 0,
|
|
12
|
+
class: "rds-e-info-box__title rds-mb-03"
|
|
13
|
+
}, V = {
|
|
14
|
+
key: 2,
|
|
15
|
+
class: "rds-e-info-box__text"
|
|
16
|
+
}, E = { class: "rds-e-info-box__text" }, z = /* @__PURE__ */ y({
|
|
17
|
+
__name: "info-box",
|
|
18
|
+
props: {
|
|
19
|
+
/**
|
|
20
|
+
* Tipo del mensaje.
|
|
21
|
+
*
|
|
22
|
+
* Define el tipo de mensaje que se mostrará. Puede ser uno de los siguientes valores:
|
|
23
|
+
* - `warning`: Indica un mensaje de advertencia.
|
|
24
|
+
* - `success`: Indica un mensaje de éxito.
|
|
25
|
+
* - `error`: Indica un mensaje de error.
|
|
26
|
+
* - `info`: Indica un mensaje informativo.
|
|
27
|
+
*
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @required
|
|
30
|
+
*/
|
|
31
|
+
type: {
|
|
32
|
+
type: String,
|
|
33
|
+
required: !0,
|
|
34
|
+
validator: (e) => typeof e == "string" && ["warning", "success", "error", "info"].includes(e)
|
|
35
|
+
},
|
|
36
|
+
/**
|
|
37
|
+
* El contenido del mensaje.
|
|
38
|
+
*
|
|
39
|
+
* El texto principal que se mostrará en el mensaje.
|
|
40
|
+
*
|
|
41
|
+
* @type {string}
|
|
42
|
+
* @required
|
|
43
|
+
*/
|
|
44
|
+
message: {
|
|
45
|
+
type: String,
|
|
46
|
+
required: !1
|
|
47
|
+
},
|
|
48
|
+
/**
|
|
49
|
+
* El título del mensaje.
|
|
50
|
+
*
|
|
51
|
+
* Un título opcional que se mostrará en la parte superior del mensaje.
|
|
52
|
+
*
|
|
53
|
+
* @type {string}
|
|
54
|
+
* @optional
|
|
55
|
+
*/
|
|
56
|
+
title: {
|
|
57
|
+
type: String,
|
|
58
|
+
required: !1
|
|
59
|
+
},
|
|
60
|
+
/**
|
|
61
|
+
* El icono asociado con el mensaje.
|
|
62
|
+
*
|
|
63
|
+
* Un icono opcional que se mostrará junto al mensaje. Puede ser el nombre de un icono de una biblioteca de iconos.
|
|
64
|
+
*
|
|
65
|
+
* @type {string}
|
|
66
|
+
* @optional
|
|
67
|
+
*/
|
|
68
|
+
icon: {
|
|
69
|
+
type: String,
|
|
70
|
+
required: !1
|
|
71
|
+
},
|
|
72
|
+
/**
|
|
73
|
+
* Indica si el mensaje es colapsable.
|
|
74
|
+
*
|
|
75
|
+
* @type {boolean}
|
|
76
|
+
* @optional
|
|
77
|
+
*/
|
|
78
|
+
collapsable: {
|
|
79
|
+
type: Boolean,
|
|
80
|
+
required: !1,
|
|
81
|
+
default: !1
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
setup(e) {
|
|
85
|
+
const x = e, n = d(!1), r = d(null), c = d(null), { type: l } = h(x), v = k(
|
|
86
|
+
() => `rds-e-info-box rds-mb-03 rds-e-info-box${l.value === "success" ? "--success" : ""}${l.value === "error" ? "--error" : ""}${l.value === "warning" ? "--warning" : ""}${l.value === "info" ? "--info" : ""}`
|
|
87
|
+
), g = () => {
|
|
88
|
+
if (!r.value || !c.value) return;
|
|
89
|
+
const u = c.value.scrollHeight;
|
|
90
|
+
r.value.style.maxHeight = n.value ? `${u}px` : "0px";
|
|
91
|
+
};
|
|
92
|
+
w(
|
|
93
|
+
() => n.value,
|
|
94
|
+
() => C(() => {
|
|
95
|
+
g();
|
|
96
|
+
}),
|
|
97
|
+
{ immediate: !0 }
|
|
98
|
+
);
|
|
99
|
+
const p = () => {
|
|
100
|
+
n.value = !n.value;
|
|
101
|
+
};
|
|
102
|
+
return (u, f) => (t(), s("div", {
|
|
103
|
+
class: m(v.value),
|
|
104
|
+
role: "alert"
|
|
105
|
+
}, [
|
|
106
|
+
a("div", q, [
|
|
107
|
+
e.icon ? (t(), s("div", $, [
|
|
108
|
+
_(b, {
|
|
109
|
+
name: e.icon,
|
|
110
|
+
class: "rds-e-info-box__custom-icon",
|
|
111
|
+
"aria-hidden": "true"
|
|
112
|
+
}, null, 8, ["name"])
|
|
113
|
+
])) : o("", !0),
|
|
114
|
+
a("div", B, [
|
|
115
|
+
a("div", H, [
|
|
116
|
+
e.title && !e.collapsable ? (t(), s("div", I, i(e.title), 1)) : o("", !0),
|
|
117
|
+
e.collapsable ? (t(), s("div", {
|
|
118
|
+
key: 1,
|
|
119
|
+
class: "rds-e-info-box__collapsable rds-mb-03",
|
|
120
|
+
onClick: f[0] || (f[0] = () => p())
|
|
121
|
+
}, [
|
|
122
|
+
e.title ? (t(), s("div", N, i(e.title), 1)) : o("", !0),
|
|
123
|
+
_(b, {
|
|
124
|
+
name: "arrow_down",
|
|
125
|
+
class: m(["rds-e-info-box__custom-icon", { "rds-e-info-box__custom-icon--open": n.value }]),
|
|
126
|
+
"aria-hidden": "true"
|
|
127
|
+
}, null, 8, ["class"])
|
|
128
|
+
])) : o("", !0),
|
|
129
|
+
e.message && !e.collapsable ? (t(), s("p", V, i(e.message), 1)) : o("", !0),
|
|
130
|
+
e.collapsable ? (t(), s("div", {
|
|
131
|
+
key: 3,
|
|
132
|
+
ref_key: "panel",
|
|
133
|
+
ref: r,
|
|
134
|
+
class: "rds-e-info-box__panel"
|
|
135
|
+
}, [
|
|
136
|
+
a("div", {
|
|
137
|
+
ref_key: "panelContent",
|
|
138
|
+
ref: c,
|
|
139
|
+
class: "rds-e-info-box__panel-content"
|
|
140
|
+
}, [
|
|
141
|
+
a("p", E, i(e.message), 1)
|
|
142
|
+
], 512)
|
|
143
|
+
], 512)) : o("", !0)
|
|
144
|
+
])
|
|
145
|
+
])
|
|
146
|
+
])
|
|
147
|
+
], 2));
|
|
148
|
+
}
|
|
149
|
+
}), T = /* @__PURE__ */ S(z, [["__scopeId", "data-v-4a206548"]]);
|
|
150
|
+
export {
|
|
151
|
+
T as default
|
|
152
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as D, toRefs as E, computed as
|
|
2
|
-
import { I as k } from "./icon-svg-
|
|
1
|
+
import { defineComponent as D, toRefs as E, computed as f, openBlock as l, createBlock as d, resolveDynamicComponent as L, unref as e, normalizeClass as m, withCtx as N, mergeProps as _, createCommentVNode as i, createElementBlock as B, renderSlot as C, createTextVNode as S, toDisplayString as I } from "vue";
|
|
2
|
+
import { I as k } from "./icon-svg-CEZ-L3iv.js";
|
|
3
3
|
import { _ as R } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
4
|
import './style/link.css';const V = /* @__PURE__ */ D({
|
|
5
5
|
__name: "link",
|
|
@@ -76,21 +76,21 @@ import './style/link.css';const V = /* @__PURE__ */ D({
|
|
|
76
76
|
icon: n,
|
|
77
77
|
tag: o,
|
|
78
78
|
disabled: p,
|
|
79
|
-
inverse:
|
|
79
|
+
inverse: c,
|
|
80
80
|
arrow: u,
|
|
81
81
|
right: t,
|
|
82
82
|
underline: h
|
|
83
|
-
} = E(v), j =
|
|
83
|
+
} = E(v), j = f(() => {
|
|
84
84
|
var r, b;
|
|
85
|
-
const a = ["rds-link"];
|
|
86
|
-
return
|
|
87
|
-
}), w =
|
|
85
|
+
const a = ["rds-e-link"];
|
|
86
|
+
return c.value && a.push("rds-e-link--inverse"), h.value && a.push("rds-e-link--underline"), p.value && a.push("rds-e-style-state-disabled"), ((r = n == null ? void 0 : n.value) == null ? void 0 : r.name) !== "arrow" && a.push("link"), ((b = n == null ? void 0 : n.value) == null ? void 0 : b.name) !== "arrow" && c.value && a.push("link__icon--inverse"), a.join(" ");
|
|
87
|
+
}), w = f(() => {
|
|
88
88
|
var r;
|
|
89
89
|
const a = ["link__icon--arrow"];
|
|
90
|
-
return n != null && n.value && (a.push("link__icon"), p.value && a.push("link__icon--disabled")), ((r = n == null ? void 0 : n.value) == null ? void 0 : r.name) !== "arrow" &&
|
|
90
|
+
return n != null && n.value && (a.push("link__icon"), p.value && a.push("link__icon--disabled")), ((r = n == null ? void 0 : n.value) == null ? void 0 : r.name) !== "arrow" && c.value && a.push("link__icon--inverse"), a.push(
|
|
91
91
|
t.value ? "link__icon--animation-right" : "link__icon--animation-left"
|
|
92
92
|
), a.join(" ");
|
|
93
|
-
}), x =
|
|
93
|
+
}), x = f(() => {
|
|
94
94
|
var a;
|
|
95
95
|
return u.value || ((a = n == null ? void 0 : n.value) == null ? void 0 : a.name);
|
|
96
96
|
});
|
|
@@ -101,7 +101,7 @@ import './style/link.css';const V = /* @__PURE__ */ D({
|
|
|
101
101
|
disable: e(p)
|
|
102
102
|
}, {
|
|
103
103
|
default: N(() => [
|
|
104
|
-
e(n) && !e(t) && !e(u) ? (l(), d(k, _({
|
|
104
|
+
e(n).name && !e(t) && !e(u) ? (l(), d(k, _({
|
|
105
105
|
key: 0,
|
|
106
106
|
name: e(n).name
|
|
107
107
|
}, {
|
|
@@ -109,9 +109,9 @@ import './style/link.css';const V = /* @__PURE__ */ D({
|
|
|
109
109
|
}, { class: w.value }), null, 16, ["name", "class"])) : i("", !0),
|
|
110
110
|
e(t) ? (l(), B("span", {
|
|
111
111
|
key: 1,
|
|
112
|
-
class: m(["rds-link__text", {
|
|
113
|
-
"rds-mr-xs": x.value,
|
|
114
|
-
"rds-link__text--underline": e(h)
|
|
112
|
+
class: m(["rds-e-link__text", {
|
|
113
|
+
"rds-e-mr-xs": x.value,
|
|
114
|
+
"rds-e-link__text--underline": e(h)
|
|
115
115
|
}])
|
|
116
116
|
}, [
|
|
117
117
|
C(a.$slots, "default", {}, () => [
|
|
@@ -127,13 +127,13 @@ import './style/link.css';const V = /* @__PURE__ */ D({
|
|
|
127
127
|
}), null, 16, ["class"])) : i("", !0),
|
|
128
128
|
e(t) ? i("", !0) : (l(), B("span", {
|
|
129
129
|
key: 3,
|
|
130
|
-
class: m(["rds-link__text", { "rds-ml-xs": x.value }])
|
|
130
|
+
class: m(["rds-e-link__text", { "rds-e-ml-xs": x.value }])
|
|
131
131
|
}, [
|
|
132
132
|
C(a.$slots, "default", {}, () => [
|
|
133
133
|
S(I(e(y)), 1)
|
|
134
134
|
], !0)
|
|
135
135
|
], 2)),
|
|
136
|
-
e(n) && e(t) && !e(u) ? (l(), d(k, _({
|
|
136
|
+
e(n).name && e(t) && !e(u) ? (l(), d(k, _({
|
|
137
137
|
key: 4,
|
|
138
138
|
name: e(n).name
|
|
139
139
|
}, e(n), { class: w.value }), null, 16, ["name", "class"])) : i("", !0)
|
|
@@ -141,7 +141,7 @@ import './style/link.css';const V = /* @__PURE__ */ D({
|
|
|
141
141
|
_: 3
|
|
142
142
|
}, 8, ["class", "to", "href", "disable"]));
|
|
143
143
|
}
|
|
144
|
-
}), M = /* @__PURE__ */ R(V, [["__scopeId", "data-v-
|
|
144
|
+
}), M = /* @__PURE__ */ R(V, [["__scopeId", "data-v-2e064780"]]);
|
|
145
145
|
export {
|
|
146
146
|
M as default
|
|
147
147
|
};
|