energy-components 1.6.0-beta.1 → 1.7.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 +13 -13
- package/dist/components/button.es.js +21 -21
- package/dist/components/checkbox.es.js +7 -7
- package/dist/components/dropdown.es.js +278 -148
- package/dist/components/filterChip.es.js +4 -4
- package/dist/components/{icon-svg-pUb3-FXk.js → icon-svg-BmDOQ0kL.js} +42 -26
- package/dist/components/iconList.es.js +5 -5
- package/dist/components/iconSvg.es.js +1 -1
- package/dist/components/index.es.js +62 -59
- package/dist/components/infoBox.es.js +17 -17
- package/dist/components/link.es.js +15 -15
- package/dist/components/modal.es.js +69 -39
- package/dist/components/multiselect.es.js +230 -184
- package/dist/components/multiselectcontentwrapper.es.js +140 -0
- package/dist/components/pagination.es.js +129 -86
- package/dist/components/persistentToast.es.js +9 -9
- package/dist/components/quantitySelector.es.js +9 -9
- package/dist/components/radioButton.es.js +16 -16
- package/dist/components/selectionChip.es.js +5 -5
- package/dist/components/sidedrawer.es.js +53 -33
- package/dist/components/style/button.css +1 -1
- package/dist/components/style/datepicker.css +1 -1
- package/dist/components/style/dropdown.css +1 -1
- package/dist/components/style/icon-svg.css +1 -1
- package/dist/components/style/modal.css +1 -1
- package/dist/components/style/multiselect.css +1 -1
- package/dist/components/style/multiselectcontentwrapper.css +1 -0
- package/dist/components/style/pagination.css +1 -1
- package/dist/components/style/sidedrawer.css +1 -1
- package/dist/components/style/tabBar.css +1 -1
- package/dist/components/style/tablepaginatedcomponent.css +1 -1
- package/dist/components/style/tableslotedcomponent.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 +10 -10
- package/dist/components/tabBar.es.js +15 -13
- package/dist/components/tablepaginatedcomponent.es.js +69 -65
- package/dist/components/tableslotedcomponent.es.js +155 -148
- package/dist/components/tag.es.js +5 -5
- package/dist/components/textArea.es.js +22 -22
- package/dist/components/textField.es.js +93 -84
- package/dist/components/tooltip.es.js +178 -174
- package/dist/energy-components.es.js +6678 -6128
- package/dist/energy-components.umd.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/src/components/buttons/button/button.vue.d.ts +2 -2
- package/dist/types/src/components/icon-svg/icon-svg.vue.d.ts +19 -0
- package/dist/types/src/components/index.d.ts +1 -0
- package/dist/types/src/components/input/dropdown/Multiselect/MultiselectContentWrapper.vue.d.ts +86 -0
- package/dist/types/src/components/input/dropdown/dropdown.vue.d.ts +582 -0
- package/dist/types/src/components/input/filter-chip/filter-chip.vue.d.ts +2 -2
- package/dist/types/src/components/input/quantity-selector/quantity-selector.vue.d.ts +1 -1
- package/dist/types/src/components/input/selection-chip/selection-chip.vue.d.ts +2 -2
- package/dist/types/src/components/input/text-field/text-field.vue.d.ts +10 -3
- package/dist/types/src/components/layout/sidedrawer/sidedrawer.vue.d.ts +30 -0
- package/dist/types/src/components/navigation/pagination/pagination.vue.d.ts +80 -31
- package/dist/types/src/components/overlay/modal/modal.vue.d.ts +27 -1
- package/dist/types/src/components/overlay/tooltip/tooltip.vue.d.ts +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +5 -5
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { _ as
|
|
3
|
-
import './style/icon-svg.css';const
|
|
1
|
+
import { defineComponent as M, computed as o, openBlock as t, createElementBlock as r, normalizeClass as h, normalizeStyle as z, Fragment as p, renderList as n } from "vue";
|
|
2
|
+
import { _ as I } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
|
+
import './style/icon-svg.css';const u = "selection", g = [
|
|
4
4
|
{
|
|
5
5
|
icon: {
|
|
6
6
|
paths: [
|
|
@@ -10757,9 +10757,9 @@ import './style/icon-svg.css';const n = "selection", I = [
|
|
|
10757
10757
|
setId: 2,
|
|
10758
10758
|
iconIdx: 332
|
|
10759
10759
|
}
|
|
10760
|
-
],
|
|
10760
|
+
], f = 1024, x = {
|
|
10761
10761
|
name: "rds-e-icon-font"
|
|
10762
|
-
},
|
|
10762
|
+
}, m = {
|
|
10763
10763
|
showGlyphs: !0,
|
|
10764
10764
|
showCodes: !0,
|
|
10765
10765
|
showQuickUse: !0,
|
|
@@ -10804,13 +10804,13 @@ import './style/icon-svg.css';const n = "selection", I = [
|
|
|
10804
10804
|
gridSize: 16,
|
|
10805
10805
|
showGrid: !1,
|
|
10806
10806
|
showLiga: !1
|
|
10807
|
-
},
|
|
10808
|
-
IcoMoonType:
|
|
10809
|
-
icons:
|
|
10810
|
-
height:
|
|
10811
|
-
metadata:
|
|
10812
|
-
preferences:
|
|
10813
|
-
},
|
|
10807
|
+
}, S = {
|
|
10808
|
+
IcoMoonType: u,
|
|
10809
|
+
icons: g,
|
|
10810
|
+
height: f,
|
|
10811
|
+
metadata: x,
|
|
10812
|
+
preferences: m
|
|
10813
|
+
}, a = S.icons.map(
|
|
10814
10814
|
(c) => {
|
|
10815
10815
|
var s;
|
|
10816
10816
|
return {
|
|
@@ -10819,7 +10819,7 @@ import './style/icon-svg.css';const n = "selection", I = [
|
|
|
10819
10819
|
codes: ((s = c.properties) == null ? void 0 : s.codes) || []
|
|
10820
10820
|
};
|
|
10821
10821
|
}
|
|
10822
|
-
),
|
|
10822
|
+
), w = a.sort((c, s) => c.name.localeCompare(s.name)).map((c) => c.name), _ = a.reduce((c, s) => (c[s.name] = s, c), {}), b = /* @__PURE__ */ M({
|
|
10823
10823
|
__name: "icon-svg",
|
|
10824
10824
|
props: {
|
|
10825
10825
|
/**
|
|
@@ -10852,31 +10852,47 @@ import './style/icon-svg.css';const n = "selection", I = [
|
|
|
10852
10852
|
color: {
|
|
10853
10853
|
type: String,
|
|
10854
10854
|
default: ""
|
|
10855
|
+
},
|
|
10856
|
+
/**
|
|
10857
|
+
* <span>Tamaño personalizado del icono en píxeles.</span>
|
|
10858
|
+
* <br>
|
|
10859
|
+
* Ejemplo: 64 creará un icono de 64x64px
|
|
10860
|
+
*/
|
|
10861
|
+
size: {
|
|
10862
|
+
type: [Number, String],
|
|
10863
|
+
default: null
|
|
10855
10864
|
}
|
|
10856
10865
|
},
|
|
10857
10866
|
setup(c) {
|
|
10858
|
-
const s = c,
|
|
10867
|
+
const s = c, v = o(() => {
|
|
10868
|
+
const e = {};
|
|
10869
|
+
if (s.color && (e.color = s.color), s.size) {
|
|
10870
|
+
const l = typeof s.size == "number" ? `${s.size}px` : s.size;
|
|
10871
|
+
e.fontSize = l, e.width = l, e.height = l;
|
|
10872
|
+
}
|
|
10873
|
+
return e;
|
|
10874
|
+
}), d = o(() => {
|
|
10859
10875
|
var e;
|
|
10860
|
-
return ((e =
|
|
10876
|
+
return ((e = _[s.name]) == null ? void 0 : e.codes.length) || 0;
|
|
10861
10877
|
});
|
|
10862
|
-
return (e,
|
|
10878
|
+
return (e, l) => (t(), r("span", {
|
|
10863
10879
|
"aria-hidden": "true",
|
|
10864
|
-
class:
|
|
10880
|
+
class: h(["icon rds-e-icon", [
|
|
10865
10881
|
`rds-e-icon-${c.name}`,
|
|
10866
10882
|
c.modifier && `icon--${c.modifier}`,
|
|
10867
|
-
c.small && "icon--small"
|
|
10883
|
+
c.small && !c.size && "icon--small"
|
|
10868
10884
|
]]),
|
|
10869
|
-
style:
|
|
10885
|
+
style: z(v.value)
|
|
10870
10886
|
}, [
|
|
10871
|
-
(
|
|
10872
|
-
key: `name-layer-${
|
|
10873
|
-
class:
|
|
10887
|
+
(t(!0), r(p, null, n(d.value, (i) => (t(), r("span", {
|
|
10888
|
+
key: `name-layer-${i}`,
|
|
10889
|
+
class: h(`path${i}`)
|
|
10874
10890
|
}, null, 2))), 128))
|
|
10875
10891
|
], 6));
|
|
10876
10892
|
}
|
|
10877
|
-
}),
|
|
10893
|
+
}), C = /* @__PURE__ */ I(b, [["__scopeId", "data-v-690c53ee"]]);
|
|
10878
10894
|
export {
|
|
10879
|
-
|
|
10880
|
-
|
|
10881
|
-
|
|
10895
|
+
C as R,
|
|
10896
|
+
a as i,
|
|
10897
|
+
w as s
|
|
10882
10898
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
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,
|
|
2
|
+
import { i as m, R as k } from "./icon-svg-BmDOQ0kL.js";
|
|
3
3
|
import { _ as w } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
|
-
import './style/iconList.css';const y = { class: "rds-e-icon-list" },
|
|
4
|
+
import './style/iconList.css';const y = { class: "rds-e-icon-list" }, D = ["onClick"], N = /* @__PURE__ */ p({
|
|
5
5
|
__name: "icon-list",
|
|
6
|
-
setup(
|
|
6
|
+
setup(S) {
|
|
7
7
|
const o = a(""), l = a(!1), c = a(""), d = v(() => {
|
|
8
8
|
let t = m;
|
|
9
9
|
return o.value.length > 2 && (t = m.filter(
|
|
@@ -33,13 +33,13 @@ import './style/iconList.css';const y = { class: "rds-e-icon-list" }, I = ["onCl
|
|
|
33
33
|
class: x(["rds-e-icon-list__item", {
|
|
34
34
|
"rds-e-icon-list__item--active": l.value && c.value === e.name
|
|
35
35
|
}]),
|
|
36
|
-
onClick: (
|
|
36
|
+
onClick: (T) => _(e.name)
|
|
37
37
|
}, [
|
|
38
38
|
g(k, {
|
|
39
39
|
name: e.name
|
|
40
40
|
}, null, 8, ["name"]),
|
|
41
41
|
r("code", null, h(e.name), 1)
|
|
42
|
-
], 10,
|
|
42
|
+
], 10, D))), 128))
|
|
43
43
|
])
|
|
44
44
|
], 64));
|
|
45
45
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { R as i } from "./icon-svg-BmDOQ0kL.js";
|
|
2
2
|
import a from "./button.es.js";
|
|
3
3
|
import e from "./floatingActionButton.es.js";
|
|
4
4
|
import m from "./actionButton.es.js";
|
|
@@ -9,69 +9,71 @@ import R from "./switch.es.js";
|
|
|
9
9
|
import p from "./radioButton.es.js";
|
|
10
10
|
import { _ as s } from "./radio-group.vue_vue_type_script_setup_true_lang-B-kg-575.js";
|
|
11
11
|
import c from "./dropdown.es.js";
|
|
12
|
-
import
|
|
13
|
-
import
|
|
12
|
+
import f from "./datepicker.es.js";
|
|
13
|
+
import d from "./quantitySelector.es.js";
|
|
14
14
|
import l from "./toggle.es.js";
|
|
15
15
|
import u from "./selectionChip.es.js";
|
|
16
|
-
import b from "./
|
|
17
|
-
import T from "./
|
|
16
|
+
import b from "./filterChip.es.js";
|
|
17
|
+
import T from "./tag.es.js";
|
|
18
|
+
import B from "./accordionGroup.es.js";
|
|
18
19
|
import g from "./accordion.es.js";
|
|
19
|
-
import
|
|
20
|
-
import
|
|
20
|
+
import A from "./divider.es.js";
|
|
21
|
+
import h from "./card.es.js";
|
|
21
22
|
import x from "./tablepaginatedcomponent.es.js";
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
import
|
|
23
|
+
import w from "./link.es.js";
|
|
24
|
+
import C from "./breadcrumbs.es.js";
|
|
25
|
+
import _ from "./tabBar.es.js";
|
|
26
|
+
import y from "./pagination.es.js";
|
|
27
|
+
import I from "./indicator.es.js";
|
|
28
|
+
import P from "./persistentToast.es.js";
|
|
29
|
+
import v from "./infoBox.es.js";
|
|
30
|
+
import k from "./modal.es.js";
|
|
31
|
+
import F from "./overlay.es.js";
|
|
31
32
|
import G from "./tooltip.es.js";
|
|
32
|
-
import
|
|
33
|
-
import
|
|
33
|
+
import M from "./sidebar.es.js";
|
|
34
|
+
import O from "./sidedrawer.es.js";
|
|
34
35
|
const t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
35
36
|
__proto__: null,
|
|
36
37
|
RDSAccordion: g,
|
|
37
|
-
RDSAccordionGroup:
|
|
38
|
+
RDSAccordionGroup: B,
|
|
38
39
|
RDSActionButton: m,
|
|
39
|
-
RDSBreadcrumbs:
|
|
40
|
+
RDSBreadcrumbs: C,
|
|
40
41
|
RDSButton: a,
|
|
41
|
-
RDSCard:
|
|
42
|
+
RDSCard: h,
|
|
42
43
|
RDSCheckbox: S,
|
|
43
|
-
RDSDatePicker:
|
|
44
|
-
RDSDivider:
|
|
44
|
+
RDSDatePicker: f,
|
|
45
|
+
RDSDivider: A,
|
|
45
46
|
RDSDropdown: c,
|
|
47
|
+
RDSFilterChip: b,
|
|
46
48
|
RDSFloatinActionButton: e,
|
|
47
49
|
RDSIconSvg: i,
|
|
48
|
-
RDSIndicator:
|
|
49
|
-
RDSInfoBox:
|
|
50
|
-
RDSLink:
|
|
51
|
-
RDSModal:
|
|
52
|
-
RDSOverlay:
|
|
53
|
-
RDSPagination:
|
|
54
|
-
RDSPersistentToast:
|
|
55
|
-
RDSQuantitySelector:
|
|
50
|
+
RDSIndicator: I,
|
|
51
|
+
RDSInfoBox: v,
|
|
52
|
+
RDSLink: w,
|
|
53
|
+
RDSModal: k,
|
|
54
|
+
RDSOverlay: F,
|
|
55
|
+
RDSPagination: y,
|
|
56
|
+
RDSPersistentToast: P,
|
|
57
|
+
RDSQuantitySelector: d,
|
|
56
58
|
RDSRadioButton: p,
|
|
57
59
|
RDSRadioGroup: s,
|
|
58
60
|
RDSSelectionChip: u,
|
|
59
|
-
RDSSidebar:
|
|
60
|
-
RDSSidedrawer:
|
|
61
|
+
RDSSidebar: M,
|
|
62
|
+
RDSSidedrawer: O,
|
|
61
63
|
RDSSwitch: R,
|
|
62
|
-
RDSTabBar:
|
|
64
|
+
RDSTabBar: _,
|
|
63
65
|
RDSTable: x,
|
|
64
|
-
RDSTag:
|
|
66
|
+
RDSTag: T,
|
|
65
67
|
RDSTextArea: D,
|
|
66
68
|
RDSTextField: n,
|
|
67
69
|
RDSToggle: l,
|
|
68
70
|
RDSTooltip: G
|
|
69
71
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
70
|
-
let
|
|
71
|
-
function
|
|
72
|
-
|
|
72
|
+
let j;
|
|
73
|
+
function To(o) {
|
|
74
|
+
j = o;
|
|
73
75
|
}
|
|
74
|
-
const
|
|
76
|
+
const Bo = {
|
|
75
77
|
install: (o) => {
|
|
76
78
|
for (const r in t)
|
|
77
79
|
o.component(
|
|
@@ -82,39 +84,40 @@ const bo = {
|
|
|
82
84
|
};
|
|
83
85
|
export {
|
|
84
86
|
g as RDSAccordion,
|
|
85
|
-
|
|
87
|
+
B as RDSAccordionGroup,
|
|
86
88
|
m as RDSActionButton,
|
|
87
|
-
|
|
89
|
+
C as RDSBreadcrumbs,
|
|
88
90
|
a as RDSButton,
|
|
89
|
-
|
|
91
|
+
h as RDSCard,
|
|
90
92
|
S as RDSCheckbox,
|
|
91
|
-
|
|
92
|
-
|
|
93
|
+
f as RDSDatePicker,
|
|
94
|
+
A as RDSDivider,
|
|
93
95
|
c as RDSDropdown,
|
|
96
|
+
b as RDSFilterChip,
|
|
94
97
|
e as RDSFloatinActionButton,
|
|
95
98
|
i as RDSIconSvg,
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
99
|
+
I as RDSIndicator,
|
|
100
|
+
v as RDSInfoBox,
|
|
101
|
+
w as RDSLink,
|
|
102
|
+
k as RDSModal,
|
|
103
|
+
F as RDSOverlay,
|
|
104
|
+
y as RDSPagination,
|
|
105
|
+
P as RDSPersistentToast,
|
|
106
|
+
d as RDSQuantitySelector,
|
|
104
107
|
p as RDSRadioButton,
|
|
105
108
|
s as RDSRadioGroup,
|
|
106
109
|
u as RDSSelectionChip,
|
|
107
|
-
|
|
108
|
-
|
|
110
|
+
M as RDSSidebar,
|
|
111
|
+
O as RDSSidedrawer,
|
|
109
112
|
R as RDSSwitch,
|
|
110
|
-
|
|
113
|
+
_ as RDSTabBar,
|
|
111
114
|
x as RDSTable,
|
|
112
|
-
|
|
115
|
+
T as RDSTag,
|
|
113
116
|
D as RDSTextArea,
|
|
114
117
|
n as RDSTextField,
|
|
115
118
|
l as RDSToggle,
|
|
116
119
|
G as RDSTooltip,
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
+
j as VueInstance,
|
|
121
|
+
Bo as default,
|
|
122
|
+
To as setVueInstance
|
|
120
123
|
};
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { defineComponent as k, ref as u, toRefs as h, computed as $, watch as w, nextTick as
|
|
2
|
-
import {
|
|
3
|
-
import { _ as
|
|
1
|
+
import { defineComponent as k, ref as u, toRefs as h, computed as $, watch as w, nextTick as S, openBlock as t, createElementBlock as s, normalizeClass as m, createElementVNode as a, createVNode as b, createCommentVNode as o, toDisplayString as r, renderSlot as _ } from "vue";
|
|
2
|
+
import { R as v } from "./icon-svg-BmDOQ0kL.js";
|
|
3
|
+
import { _ as C } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
4
|
import './style/infoBox.css';const q = { class: "alert" }, B = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "rds-e-info-box__custom-icon-block"
|
|
7
|
-
}, H = { class: "rds-e-info-box__wrapper" },
|
|
7
|
+
}, H = { class: "rds-e-info-box__wrapper" }, N = { class: "rds-e-info-box__title__wrapper" }, R = {
|
|
8
8
|
key: 0,
|
|
9
9
|
class: "rds-e-info-box__title rds-mb-03"
|
|
10
10
|
}, V = {
|
|
11
11
|
key: 0,
|
|
12
12
|
class: "rds-e-info-box__title rds-mb-03"
|
|
13
|
-
},
|
|
13
|
+
}, D = {
|
|
14
14
|
key: 2,
|
|
15
15
|
class: "rds-e-info-box__text"
|
|
16
|
-
},
|
|
16
|
+
}, E = {
|
|
17
17
|
key: 3,
|
|
18
18
|
class: "rds-e-info-box__content-section"
|
|
19
|
-
},
|
|
19
|
+
}, I = {
|
|
20
20
|
key: 0,
|
|
21
21
|
class: "rds-e-info-box__text"
|
|
22
|
-
},
|
|
22
|
+
}, z = {
|
|
23
23
|
key: 1,
|
|
24
24
|
class: "rds-e-info-box__content-section"
|
|
25
|
-
},
|
|
25
|
+
}, O = /* @__PURE__ */ k({
|
|
26
26
|
__name: "info-box",
|
|
27
27
|
props: {
|
|
28
28
|
/**
|
|
@@ -100,7 +100,7 @@ import './style/infoBox.css';const q = { class: "alert" }, B = {
|
|
|
100
100
|
};
|
|
101
101
|
w(
|
|
102
102
|
() => l.value,
|
|
103
|
-
() =>
|
|
103
|
+
() => S(() => {
|
|
104
104
|
g();
|
|
105
105
|
}),
|
|
106
106
|
{ immediate: !0 }
|
|
@@ -121,8 +121,8 @@ import './style/infoBox.css';const q = { class: "alert" }, B = {
|
|
|
121
121
|
}, null, 8, ["name"])
|
|
122
122
|
])) : o("", !0),
|
|
123
123
|
a("div", H, [
|
|
124
|
-
a("div",
|
|
125
|
-
e.title && !e.collapsable ? (t(), s("div",
|
|
124
|
+
a("div", N, [
|
|
125
|
+
e.title && !e.collapsable ? (t(), s("div", R, r(e.title), 1)) : o("", !0),
|
|
126
126
|
e.collapsable ? (t(), s("div", {
|
|
127
127
|
key: 1,
|
|
128
128
|
class: "rds-e-info-box__collapsable rds-mb-03",
|
|
@@ -135,8 +135,8 @@ import './style/infoBox.css';const q = { class: "alert" }, B = {
|
|
|
135
135
|
"aria-hidden": "true"
|
|
136
136
|
}, null, 8, ["class"])
|
|
137
137
|
])) : o("", !0),
|
|
138
|
-
e.message && !e.collapsable && !n.$slots["content-section"] ? (t(), s("p",
|
|
139
|
-
n.$slots["content-section"] && !e.collapsable ? (t(), s("div",
|
|
138
|
+
e.message && !e.collapsable && !n.$slots["content-section"] ? (t(), s("p", D, r(e.message), 1)) : o("", !0),
|
|
139
|
+
n.$slots["content-section"] && !e.collapsable ? (t(), s("div", E, [
|
|
140
140
|
_(n.$slots, "content-section", {}, void 0, !0)
|
|
141
141
|
])) : o("", !0),
|
|
142
142
|
e.collapsable ? (t(), s("div", {
|
|
@@ -150,8 +150,8 @@ import './style/infoBox.css';const q = { class: "alert" }, B = {
|
|
|
150
150
|
ref: d,
|
|
151
151
|
class: "rds-e-info-box__panel-content"
|
|
152
152
|
}, [
|
|
153
|
-
n.$slots["content-section"] ? o("", !0) : (t(), s("p",
|
|
154
|
-
n.$slots["content-section"] ? (t(), s("div",
|
|
153
|
+
n.$slots["content-section"] ? o("", !0) : (t(), s("p", I, r(e.message), 1)),
|
|
154
|
+
n.$slots["content-section"] ? (t(), s("div", z, [
|
|
155
155
|
_(n.$slots, "content-section", {}, void 0, !0)
|
|
156
156
|
])) : o("", !0)
|
|
157
157
|
], 512)
|
|
@@ -161,7 +161,7 @@ import './style/infoBox.css';const q = { class: "alert" }, B = {
|
|
|
161
161
|
])
|
|
162
162
|
], 2));
|
|
163
163
|
}
|
|
164
|
-
}), F = /* @__PURE__ */
|
|
164
|
+
}), F = /* @__PURE__ */ C(O, [["__scopeId", "data-v-39ef726d"]]);
|
|
165
165
|
export {
|
|
166
166
|
F as default
|
|
167
167
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
1
|
+
import { defineComponent as j, toRefs as E, computed as f, openBlock as r, createBlock as d, resolveDynamicComponent as L, unref as e, normalizeClass as m, withCtx as N, mergeProps as _, createCommentVNode as i, createElementBlock as S, renderSlot as b, createTextVNode as B, toDisplayString as I } from "vue";
|
|
2
|
+
import { R as k } from "./icon-svg-BmDOQ0kL.js";
|
|
3
3
|
import { _ as V } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
|
-
import './style/link.css';const $ = /* @__PURE__ */
|
|
4
|
+
import './style/link.css';const $ = /* @__PURE__ */ j({
|
|
5
5
|
__name: "link",
|
|
6
6
|
props: {
|
|
7
7
|
/**
|
|
@@ -86,8 +86,8 @@ import './style/link.css';const $ = /* @__PURE__ */ E({
|
|
|
86
86
|
arrow: u,
|
|
87
87
|
right: t,
|
|
88
88
|
underline: h,
|
|
89
|
-
customClass:
|
|
90
|
-
} =
|
|
89
|
+
customClass: D
|
|
90
|
+
} = E(v), R = f(() => {
|
|
91
91
|
var l, C;
|
|
92
92
|
const a = ["rds-e-link"];
|
|
93
93
|
return p.value && a.push("rds-e-link--inverse"), h.value && a.push("rds-e-link--underline"), c.value && a.push("rds-e-style-state-disabled"), ((l = n == null ? void 0 : n.value) == null ? void 0 : l.name) !== "arrow" && a.push("link"), ((C = n == null ? void 0 : n.value) == null ? void 0 : C.name) !== "arrow" && p.value && a.push("link__icon--inverse"), a.join(" ");
|
|
@@ -101,13 +101,13 @@ import './style/link.css';const $ = /* @__PURE__ */ E({
|
|
|
101
101
|
var a;
|
|
102
102
|
return u.value || ((a = n == null ? void 0 : n.value) == null ? void 0 : a.name);
|
|
103
103
|
});
|
|
104
|
-
return (a, l) => (r(), d(
|
|
105
|
-
class: m(
|
|
104
|
+
return (a, l) => (r(), d(L(e(o) === "a" ? e(o) : "router-link"), {
|
|
105
|
+
class: m(R.value),
|
|
106
106
|
to: e(o) === "router-link" ? e(g) : null,
|
|
107
107
|
href: e(o) === "a" ? e(g) : null,
|
|
108
108
|
disable: e(c)
|
|
109
109
|
}, {
|
|
110
|
-
default:
|
|
110
|
+
default: N(() => [
|
|
111
111
|
e(n).name && !e(t) && !e(u) ? (r(), d(k, _({
|
|
112
112
|
key: 0,
|
|
113
113
|
name: e(n).name
|
|
@@ -116,15 +116,15 @@ import './style/link.css';const $ = /* @__PURE__ */ E({
|
|
|
116
116
|
}, {
|
|
117
117
|
class: ["rds-e-link__icon-left", w.value]
|
|
118
118
|
}), null, 16, ["name", "class"])) : i("", !0),
|
|
119
|
-
e(t) ? (r(),
|
|
119
|
+
e(t) ? (r(), S("span", {
|
|
120
120
|
key: 1,
|
|
121
|
-
class: m(["rds-e-link__text", [e(
|
|
121
|
+
class: m(["rds-e-link__text", [e(D), {
|
|
122
122
|
"rds-e-mr-xs": x.value,
|
|
123
123
|
"rds-e-link__text--underline": e(h)
|
|
124
124
|
}]])
|
|
125
125
|
}, [
|
|
126
|
-
|
|
127
|
-
|
|
126
|
+
b(a.$slots, "default", {}, () => [
|
|
127
|
+
B(I(e(y)), 1)
|
|
128
128
|
], !0)
|
|
129
129
|
], 2)) : i("", !0),
|
|
130
130
|
e(u) ? (r(), d(k, _({ key: 2 }, {
|
|
@@ -134,12 +134,12 @@ import './style/link.css';const $ = /* @__PURE__ */ E({
|
|
|
134
134
|
e(t) ? "link__icon--animation-right" : "link__icon--animation-left"
|
|
135
135
|
]]
|
|
136
136
|
}), null, 16, ["class"])) : i("", !0),
|
|
137
|
-
e(t) ? i("", !0) : (r(),
|
|
137
|
+
e(t) ? i("", !0) : (r(), S("span", {
|
|
138
138
|
key: 3,
|
|
139
139
|
class: m(["rds-e-link__text", { "rds-e-ml-xs": x.value }])
|
|
140
140
|
}, [
|
|
141
|
-
|
|
142
|
-
|
|
141
|
+
b(a.$slots, "default", {}, () => [
|
|
142
|
+
B(I(e(y)), 1)
|
|
143
143
|
], !0)
|
|
144
144
|
], 2)),
|
|
145
145
|
e(n).name && e(t) && !e(u) ? (r(), d(k, _({
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
1
|
+
import { defineComponent as C, ref as R, computed as k, openBlock as d, createBlock as u, unref as a, withCtx as p, createVNode as v, normalizeStyle as b, withModifiers as g, createElementVNode as l, renderSlot as i, createCommentVNode as n, createElementBlock as c } from "vue";
|
|
2
|
+
import w from "./overlay.es.js";
|
|
3
3
|
import S from "./card.es.js";
|
|
4
|
-
import {
|
|
5
|
-
import { _ as
|
|
6
|
-
import './style/modal.css';const
|
|
4
|
+
import { R as q } from "./icon-svg-BmDOQ0kL.js";
|
|
5
|
+
import { _ as x } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
+
import './style/modal.css';const $ = { class: "rds-e-modal__container" }, B = { class: "rds-e-modal__header" }, O = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "rds-e-modal__section-spacer"
|
|
9
|
-
},
|
|
9
|
+
}, M = { class: "rds-e-modal__body" }, N = {
|
|
10
10
|
key: 1,
|
|
11
11
|
class: "rds-e-modal__section-spacer"
|
|
12
|
-
},
|
|
12
|
+
}, W = { class: "rds-e-modal__footer" }, D = /* @__PURE__ */ C({
|
|
13
13
|
__name: "modal",
|
|
14
14
|
props: {
|
|
15
15
|
/**
|
|
@@ -48,7 +48,7 @@ import './style/modal.css';const N = { class: "rds-e-modal__container" }, R = {
|
|
|
48
48
|
maxWidth: {
|
|
49
49
|
type: [String, Number],
|
|
50
50
|
default: 820,
|
|
51
|
-
validator: (
|
|
51
|
+
validator: (o) => typeof o == "number" ? !0 : /^\d+(?:px|em|rem|%)$/.test(o)
|
|
52
52
|
},
|
|
53
53
|
/**
|
|
54
54
|
* Ancho del modal en dispositivos de escritorio.
|
|
@@ -56,54 +56,84 @@ import './style/modal.css';const N = { class: "rds-e-modal__container" }, R = {
|
|
|
56
56
|
width: {
|
|
57
57
|
type: [String, Number],
|
|
58
58
|
default: 600,
|
|
59
|
-
validator: (
|
|
59
|
+
validator: (o) => typeof o == "number" ? !0 : /^\d+(?:px|em|rem|%)$/.test(o)
|
|
60
60
|
}
|
|
61
61
|
},
|
|
62
|
-
emits: ["onCloseRequest"],
|
|
63
|
-
setup(
|
|
64
|
-
const e =
|
|
65
|
-
const
|
|
62
|
+
emits: ["onCloseRequest", "onOpenRequest", "onToggleRequest"],
|
|
63
|
+
setup(o, { expose: f, emit: _ }) {
|
|
64
|
+
const e = o, s = _, y = R(null), h = k(() => {
|
|
65
|
+
const t = typeof e.maxWidth == "number" ? `${e.maxWidth}px` : e.maxWidth, r = typeof e.width == "number" ? `${e.width}px` : e.width;
|
|
66
66
|
return {
|
|
67
|
-
"--rds-modal-max-width":
|
|
68
|
-
"--rds-modal-width":
|
|
67
|
+
"--rds-modal-max-width": t,
|
|
68
|
+
"--rds-modal-width": r
|
|
69
69
|
};
|
|
70
|
-
}),
|
|
71
|
-
e.preventClose ||
|
|
70
|
+
}), m = () => {
|
|
71
|
+
e.preventClose || s("onCloseRequest");
|
|
72
72
|
};
|
|
73
|
-
return (
|
|
73
|
+
return f({
|
|
74
|
+
/**
|
|
75
|
+
* { () => void } Gestiona el clic fuera del modal.
|
|
76
|
+
*/
|
|
77
|
+
modalClickOutside: () => m(),
|
|
78
|
+
/**
|
|
79
|
+
* { () => void } Solicita abrir el modal.
|
|
80
|
+
*/
|
|
81
|
+
openModal: () => {
|
|
82
|
+
s("onOpenRequest");
|
|
83
|
+
},
|
|
84
|
+
/**
|
|
85
|
+
* { () => void } Solicita cerrar el modal.
|
|
86
|
+
*/
|
|
87
|
+
closeModal: () => {
|
|
88
|
+
s("onCloseRequest");
|
|
89
|
+
},
|
|
90
|
+
/**
|
|
91
|
+
* { (state: boolean) => void } Cambia el estado del modal.
|
|
92
|
+
* @param {boolean} state - true para abrir, false para cerrar
|
|
93
|
+
*/
|
|
94
|
+
changeModalState: (t) => {
|
|
95
|
+
s(t ? "onOpenRequest" : "onCloseRequest");
|
|
96
|
+
},
|
|
97
|
+
/**
|
|
98
|
+
* { () => void } Alterna el estado del modal.
|
|
99
|
+
*/
|
|
100
|
+
toggleModal: () => {
|
|
101
|
+
s("onToggleRequest");
|
|
102
|
+
}
|
|
103
|
+
}), (t, r) => o.open ? (d(), u(a(w), {
|
|
74
104
|
key: 0,
|
|
75
105
|
ref_key: "overlay",
|
|
76
|
-
ref:
|
|
106
|
+
ref: y,
|
|
77
107
|
class: "rds-e-modal__overlay",
|
|
78
108
|
teleport: e.teleport,
|
|
79
|
-
onClick:
|
|
109
|
+
onClick: m
|
|
80
110
|
}, {
|
|
81
|
-
default:
|
|
82
|
-
|
|
111
|
+
default: p(() => [
|
|
112
|
+
v(a(S), {
|
|
83
113
|
class: "rds-e-modal__card",
|
|
84
|
-
style: b(
|
|
85
|
-
onClick:
|
|
114
|
+
style: b(h.value),
|
|
115
|
+
onClick: r[1] || (r[1] = g(() => {
|
|
86
116
|
}, ["stop"]))
|
|
87
117
|
}, {
|
|
88
|
-
default:
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
e.showClose ? (
|
|
118
|
+
default: p(() => [
|
|
119
|
+
l("div", $, [
|
|
120
|
+
l("div", B, [
|
|
121
|
+
i(t.$slots, "header", {}, void 0, !0),
|
|
122
|
+
e.showClose ? (d(), u(a(q), {
|
|
93
123
|
key: 0,
|
|
94
124
|
class: "rds-e-modal__header-close",
|
|
95
125
|
name: "close",
|
|
96
126
|
small: "",
|
|
97
|
-
onClick:
|
|
98
|
-
})) :
|
|
127
|
+
onClick: r[0] || (r[0] = () => s("onCloseRequest"))
|
|
128
|
+
})) : n("", !0)
|
|
99
129
|
]),
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
130
|
+
t.$slots.body ? (d(), c("span", O)) : n("", !0),
|
|
131
|
+
l("div", M, [
|
|
132
|
+
i(t.$slots, "body", {}, void 0, !0)
|
|
103
133
|
]),
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
134
|
+
t.$slots.footer ? (d(), c("span", N)) : n("", !0),
|
|
135
|
+
l("div", W, [
|
|
136
|
+
i(t.$slots, "footer", {}, void 0, !0)
|
|
107
137
|
])
|
|
108
138
|
])
|
|
109
139
|
]),
|
|
@@ -111,9 +141,9 @@ import './style/modal.css';const N = { class: "rds-e-modal__container" }, R = {
|
|
|
111
141
|
}, 8, ["style"])
|
|
112
142
|
]),
|
|
113
143
|
_: 3
|
|
114
|
-
}, 8, ["teleport"])) :
|
|
144
|
+
}, 8, ["teleport"])) : n("", !0);
|
|
115
145
|
}
|
|
116
|
-
}), j = /* @__PURE__ */
|
|
146
|
+
}), j = /* @__PURE__ */ x(D, [["__scopeId", "data-v-2dbe0d23"]]);
|
|
117
147
|
export {
|
|
118
148
|
j as default
|
|
119
149
|
};
|