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,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,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
import { _ as
|
|
4
|
-
import './style/link.css';const V = /* @__PURE__ */
|
|
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
|
+
import { _ as R } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
|
+
import './style/link.css';const V = /* @__PURE__ */ D({
|
|
5
5
|
__name: "link",
|
|
6
6
|
props: {
|
|
7
7
|
/**
|
|
@@ -76,32 +76,32 @@ import './style/link.css';const V = /* @__PURE__ */ R({
|
|
|
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
|
-
} =
|
|
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
|
});
|
|
97
|
-
return (a, r) => (l(), d(
|
|
98
|
-
class: m(
|
|
97
|
+
return (a, r) => (l(), d(L(e(o) === "a" ? e(o) : "router-link"), {
|
|
98
|
+
class: m(j.value),
|
|
99
99
|
to: e(o) === "router-link" ? e(g) : null,
|
|
100
100
|
href: e(o) === "a" ? e(g) : null,
|
|
101
101
|
disable: e(p)
|
|
102
102
|
}, {
|
|
103
|
-
default:
|
|
104
|
-
e(n) && !e(t) && !e(u) ? (l(), d(k, _({
|
|
103
|
+
default: N(() => [
|
|
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__ */ R({
|
|
|
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__ */ R({
|
|
|
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__ */ R({
|
|
|
141
141
|
_: 3
|
|
142
142
|
}, 8, ["class", "to", "href", "disable"]));
|
|
143
143
|
}
|
|
144
|
-
}), M = /* @__PURE__ */
|
|
144
|
+
}), M = /* @__PURE__ */ R(V, [["__scopeId", "data-v-2e064780"]]);
|
|
145
145
|
export {
|
|
146
146
|
M as default
|
|
147
147
|
};
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { defineComponent as v, ref as y, onMounted as C, openBlock as o, createBlock as m, unref as l, withCtx as p, createVNode as h, createElementVNode as t, renderSlot as a, createCommentVNode as s, createElementBlock as u } from "vue";
|
|
2
|
+
import k from "./overlay.es.js";
|
|
3
|
+
import B from "./card.es.js";
|
|
4
|
+
import { I as b } from "./icon-svg-CEZ-L3iv.js";
|
|
5
|
+
import { _ as R } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
+
import './style/modal.css';const S = { class: "rds-e-modal__container" }, $ = { class: "rds-e-modal__header" }, q = {
|
|
7
|
+
key: 0,
|
|
8
|
+
class: "rds-e-modal__section-spacer"
|
|
9
|
+
}, w = { class: "rds-e-modal__body" }, E = {
|
|
10
|
+
key: 1,
|
|
11
|
+
class: "rds-e-modal__section-spacer"
|
|
12
|
+
}, I = { class: "rds-e-modal__footer" }, N = /* @__PURE__ */ v({
|
|
13
|
+
__name: "modal",
|
|
14
|
+
props: {
|
|
15
|
+
/**
|
|
16
|
+
* Define el estado del modal
|
|
17
|
+
*/
|
|
18
|
+
open: {
|
|
19
|
+
type: Boolean,
|
|
20
|
+
default: !1
|
|
21
|
+
},
|
|
22
|
+
/**
|
|
23
|
+
* Indica el punto de anclaje del overlay, para que funcione debe de estar montado en el DOM
|
|
24
|
+
* Si no se especifica se montará en el `body`
|
|
25
|
+
* [Documentación de Teleport](https://vuejs.org/guide/built-ins/teleport.html#teleport)
|
|
26
|
+
*/
|
|
27
|
+
teleport: {
|
|
28
|
+
type: String,
|
|
29
|
+
default: "body",
|
|
30
|
+
required: !0
|
|
31
|
+
},
|
|
32
|
+
/**
|
|
33
|
+
* Indica si se muestra el botón de cerrar, de la parte superior derecha
|
|
34
|
+
*/
|
|
35
|
+
showClose: {
|
|
36
|
+
type: Boolean,
|
|
37
|
+
default: !0
|
|
38
|
+
},
|
|
39
|
+
/**
|
|
40
|
+
* Evita que se cierre el modal al clickar en el overlay
|
|
41
|
+
*/
|
|
42
|
+
preventClose: {
|
|
43
|
+
type: Boolean,
|
|
44
|
+
default: !0
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
emits: ["onCloseRequest"],
|
|
48
|
+
setup(d, { emit: f }) {
|
|
49
|
+
const r = d, n = f, c = y(null), i = () => {
|
|
50
|
+
r.preventClose || n("onCloseRequest");
|
|
51
|
+
};
|
|
52
|
+
return C(() => {
|
|
53
|
+
var e;
|
|
54
|
+
(e = c.value) == null || e.addEventListener("click", i);
|
|
55
|
+
}), (e, _) => d.open ? (o(), m(l(k), {
|
|
56
|
+
key: 0,
|
|
57
|
+
ref_key: "overlay",
|
|
58
|
+
ref: c,
|
|
59
|
+
class: "rds-e-modal__overlay",
|
|
60
|
+
teleport: r.teleport,
|
|
61
|
+
onClick: i
|
|
62
|
+
}, {
|
|
63
|
+
default: p(() => [
|
|
64
|
+
h(l(B), { class: "rds-e-modal__card" }, {
|
|
65
|
+
default: p(() => [
|
|
66
|
+
t("div", S, [
|
|
67
|
+
t("div", $, [
|
|
68
|
+
a(e.$slots, "header", {}, void 0, !0),
|
|
69
|
+
r.showClose ? (o(), m(l(b), {
|
|
70
|
+
key: 0,
|
|
71
|
+
class: "rds-e-modal__header-close",
|
|
72
|
+
name: "close",
|
|
73
|
+
small: "",
|
|
74
|
+
onClick: _[0] || (_[0] = () => n("onCloseRequest"))
|
|
75
|
+
})) : s("", !0)
|
|
76
|
+
]),
|
|
77
|
+
e.$slots.body ? (o(), u("span", q)) : s("", !0),
|
|
78
|
+
t("div", w, [
|
|
79
|
+
a(e.$slots, "body", {}, void 0, !0)
|
|
80
|
+
]),
|
|
81
|
+
e.$slots.footer ? (o(), u("span", E)) : s("", !0),
|
|
82
|
+
t("div", I, [
|
|
83
|
+
a(e.$slots, "footer", {}, void 0, !0)
|
|
84
|
+
])
|
|
85
|
+
])
|
|
86
|
+
]),
|
|
87
|
+
_: 3
|
|
88
|
+
})
|
|
89
|
+
]),
|
|
90
|
+
_: 3
|
|
91
|
+
}, 8, ["teleport"])) : s("", !0);
|
|
92
|
+
}
|
|
93
|
+
}), M = /* @__PURE__ */ R(N, [["__scopeId", "data-v-a952c8fb"]]);
|
|
94
|
+
export {
|
|
95
|
+
M as default
|
|
96
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { defineComponent as s, openBlock as a, createBlock as d, Teleport as l, createElementVNode as t, mergeProps as n, renderSlot as p } from "vue";
|
|
2
|
+
import { _ as c } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
|
+
import './style/overlay.css';const _ = { class: "rds-e-overlay__content" }, i = /* @__PURE__ */ s({
|
|
4
|
+
__name: "overlay",
|
|
5
|
+
props: {
|
|
6
|
+
/**
|
|
7
|
+
* Indica el punto de anclaje del overlay, para que funcione debe de estar montado en el DOM
|
|
8
|
+
* [Documentación de Teleport](https://vuejs.org/guide/built-ins/teleport.html#teleport)
|
|
9
|
+
*/
|
|
10
|
+
teleport: {
|
|
11
|
+
type: String,
|
|
12
|
+
default: "body",
|
|
13
|
+
required: !0
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
setup(o) {
|
|
17
|
+
const r = o;
|
|
18
|
+
return (e, m) => (a(), d(l, {
|
|
19
|
+
to: r.teleport
|
|
20
|
+
}, [
|
|
21
|
+
t("div", n({ class: "rds-e-overlay" }, e.$attrs), [
|
|
22
|
+
t("div", _, [
|
|
23
|
+
p(e.$slots, "default", {}, void 0, !0)
|
|
24
|
+
])
|
|
25
|
+
], 16)
|
|
26
|
+
], 8, ["to"]));
|
|
27
|
+
}
|
|
28
|
+
}), v = /* @__PURE__ */ c(i, [["__scopeId", "data-v-969ad8b6"]]);
|
|
29
|
+
export {
|
|
30
|
+
v as default
|
|
31
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as L, ref as v, computed as o, watchEffect as V, openBlock as t, createElementBlock as c, createElementVNode as u, createBlock as k, createCommentVNode as
|
|
1
|
+
import { defineComponent as L, ref as v, computed as o, watchEffect as V, openBlock as t, createElementBlock as c, createElementVNode as u, createBlock as k, createCommentVNode as g, createVNode as C, Fragment as j, renderList as E, normalizeClass as T, toDisplayString as y } from "vue";
|
|
2
2
|
import m from "./actionButton.es.js";
|
|
3
3
|
import { _ as q } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
|
-
import './style/pagination.css';const A = { class: "rds-pagination" }, S = ["disabled", "aria-label", "onClick"], $ = {
|
|
4
|
+
import './style/pagination.css';const A = { class: "rds-e-pagination" }, S = ["disabled", "aria-label", "onClick"], $ = {
|
|
5
5
|
key: 0,
|
|
6
|
-
class: "rds-pagination__item rds-pagination__item-elipsis"
|
|
6
|
+
class: "rds-e-pagination__item rds-e-pagination__item-elipsis"
|
|
7
7
|
}, z = /* @__PURE__ */ L({
|
|
8
8
|
__name: "pagination",
|
|
9
9
|
props: {
|
|
@@ -49,16 +49,16 @@ import './style/pagination.css';const A = { class: "rds-pagination" }, S = ["dis
|
|
|
49
49
|
isDisabled: r === e.currentPage
|
|
50
50
|
});
|
|
51
51
|
return a;
|
|
52
|
-
}),
|
|
52
|
+
}), d = (a) => {
|
|
53
53
|
a === e.totalPages - 1 ? s.value = !1 : s.value = !0;
|
|
54
54
|
}, _ = o(() => e.currentPage === 1), b = o(() => e.currentPage === e.totalPages), x = () => {
|
|
55
|
-
|
|
55
|
+
d(e.currentPage), i("pageChanged", 1);
|
|
56
56
|
}, w = () => {
|
|
57
|
-
|
|
57
|
+
d(e.currentPage - 1), e.currentPage > 1 && i("pageChanged", e.currentPage - 1);
|
|
58
58
|
}, D = (a) => {
|
|
59
|
-
|
|
59
|
+
d(a), i("pageChanged", a);
|
|
60
60
|
}, F = () => {
|
|
61
|
-
|
|
61
|
+
d(e.currentPage + 1), i("pageChanged", e.currentPage + 1);
|
|
62
62
|
}, f = () => {
|
|
63
63
|
i("pageChanged", e.totalPages);
|
|
64
64
|
}, I = (a) => e.currentPage === a;
|
|
@@ -68,18 +68,18 @@ import './style/pagination.css';const A = { class: "rds-pagination" }, S = ["dis
|
|
|
68
68
|
u("li", null, [
|
|
69
69
|
l.jumpTo ? (t(), k(m, {
|
|
70
70
|
key: 0,
|
|
71
|
-
class: "rds-pagination__actionBtn",
|
|
71
|
+
class: "rds-e-pagination__actionBtn",
|
|
72
72
|
type: "secondary",
|
|
73
73
|
small: "",
|
|
74
74
|
icon: "back",
|
|
75
75
|
"aria-label": "First Page",
|
|
76
76
|
disabled: _.value,
|
|
77
77
|
onClick: x
|
|
78
|
-
}, null, 8, ["disabled"])) :
|
|
78
|
+
}, null, 8, ["disabled"])) : g("", !0)
|
|
79
79
|
]),
|
|
80
80
|
u("li", null, [
|
|
81
81
|
C(m, {
|
|
82
|
-
class: "rds-pagination__actionBtn",
|
|
82
|
+
class: "rds-e-pagination__actionBtn",
|
|
83
83
|
type: "secondary",
|
|
84
84
|
small: "",
|
|
85
85
|
icon: "arrow_left",
|
|
@@ -92,8 +92,8 @@ import './style/pagination.css';const A = { class: "rds-pagination" }, S = ["dis
|
|
|
92
92
|
key: n.name
|
|
93
93
|
}, [
|
|
94
94
|
u("button", {
|
|
95
|
-
class: T(["rds-pagination__item", {
|
|
96
|
-
"rds-pagination__item--active": I(n.name) && l.selected
|
|
95
|
+
class: T(["rds-e-pagination__item", {
|
|
96
|
+
"rds-e-pagination__item--active": I(n.name) && l.selected
|
|
97
97
|
}]),
|
|
98
98
|
type: "button",
|
|
99
99
|
disabled: n.isDisabled,
|
|
@@ -101,15 +101,15 @@ import './style/pagination.css';const A = { class: "rds-pagination" }, S = ["dis
|
|
|
101
101
|
onClick: (M) => D(n.name)
|
|
102
102
|
}, y(n.name), 11, S)
|
|
103
103
|
]))), 128)),
|
|
104
|
-
s.value ? (t(), c("li", $, " ... ")) :
|
|
104
|
+
s.value ? (t(), c("li", $, " ... ")) : g("", !0),
|
|
105
105
|
s.value ? (t(), c("li", {
|
|
106
106
|
key: 1,
|
|
107
|
-
class: "rds-pagination__item rds-pagination__item-elipsis",
|
|
107
|
+
class: "rds-e-pagination__item rds-e-pagination__item-elipsis",
|
|
108
108
|
onClick: f
|
|
109
|
-
}, y(l.totalPages), 1)) :
|
|
109
|
+
}, y(l.totalPages), 1)) : g("", !0),
|
|
110
110
|
u("li", null, [
|
|
111
111
|
C(m, {
|
|
112
|
-
class: "rds-pagination__actionBtn",
|
|
112
|
+
class: "rds-e-pagination__actionBtn",
|
|
113
113
|
type: "secondary",
|
|
114
114
|
icon: "arrow_right",
|
|
115
115
|
small: "",
|
|
@@ -121,18 +121,18 @@ import './style/pagination.css';const A = { class: "rds-pagination" }, S = ["dis
|
|
|
121
121
|
u("li", null, [
|
|
122
122
|
l.jumpTo ? (t(), k(m, {
|
|
123
123
|
key: 0,
|
|
124
|
-
class: "rds-pagination__actionBtn",
|
|
124
|
+
class: "rds-e-pagination__actionBtn",
|
|
125
125
|
type: "secondary",
|
|
126
126
|
small: "",
|
|
127
127
|
icon: "last",
|
|
128
128
|
"aria-label": "last page",
|
|
129
129
|
disabled: b.value,
|
|
130
130
|
onClick: f
|
|
131
|
-
}, null, 8, ["disabled"])) :
|
|
131
|
+
}, null, 8, ["disabled"])) : g("", !0)
|
|
132
132
|
])
|
|
133
133
|
]));
|
|
134
134
|
}
|
|
135
|
-
}), J = /* @__PURE__ */ q(z, [["__scopeId", "data-v-
|
|
135
|
+
}), J = /* @__PURE__ */ q(z, [["__scopeId", "data-v-35362a0d"]]);
|
|
136
136
|
export {
|
|
137
137
|
J as default
|
|
138
138
|
};
|