energy-components 1.14.2 → 1.15.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 +30 -27
- package/dist/components/actionButton.es.js +56 -11
- package/dist/components/avatar.es.js +24 -16
- package/dist/components/breadcrumbs.es.js +37 -29
- package/dist/components/button.es.js +31 -22
- package/dist/components/card.es.js +17 -9
- package/dist/components/checkbox.es.js +67 -56
- package/dist/components/collapsable.es.js +1 -1
- package/dist/components/{collapsable.scss_vue_type_style_index_0_src_true_lang-DfOWp1XD.js → collapsable.scss_vue_type_style_index_0_src_true_lang-Bi5q6Y3n.js} +1 -1
- package/dist/components/directAccess.es.js +26 -18
- package/dist/components/dragAndDrop.es.js +1 -1
- package/dist/components/dropdown.es.js +27 -27
- package/dist/components/fileUploadItem.es.js +23 -21
- package/dist/components/filterChip.es.js +22 -14
- package/dist/components/filterTag.es.js +27 -19
- package/dist/components/floating-ui.vue-7LKzPqHI.js +1148 -0
- package/dist/components/floatingActionButton.es.js +19 -11
- package/dist/components/{icon-svg-DuzOdbk1.js → icon-svg-BU0OQFKH.js} +990 -742
- package/dist/components/iconList.es.js +1 -1
- package/dist/components/iconSvg.es.js +1 -1
- package/dist/components/index.es.js +83 -77
- package/dist/components/indicator.es.js +37 -29
- package/dist/components/infoBox.es.js +47 -39
- package/dist/components/link.es.js +22 -13
- package/dist/components/loader.es.js +22 -21
- package/dist/components/modal.es.js +37 -28
- package/dist/components/overlay.es.js +21 -11
- package/dist/components/pagination.es.js +164 -109
- package/dist/components/persistentToast.es.js +32 -24
- package/dist/components/popover.es.js +166 -0
- package/dist/components/progressBar.es.js +30 -22
- package/dist/components/quantitySelector.es.js +60 -48
- package/dist/components/radioButton.es.js +1 -1
- package/dist/components/selectionChip.es.js +15 -7
- package/dist/components/sidedrawer.es.js +1 -1
- package/dist/components/snackBar.es.js +131 -0
- package/dist/components/style/accordion.css +1 -1
- package/dist/components/style/actionButton.css +1 -1
- package/dist/components/style/avatar.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/directAccess.css +1 -1
- package/dist/components/style/fileUploadItem.css +1 -1
- package/dist/components/style/filterChip.css +1 -1
- package/dist/components/style/filterTag.css +1 -1
- package/dist/components/style/floatingActionButton.css +1 -1
- package/dist/components/style/icon-svg.css +1 -1
- package/dist/components/style/indicator.css +1 -1
- package/dist/components/style/infoBox.css +1 -1
- package/dist/components/style/link.css +1 -1
- package/dist/components/style/loader.css +1 -1
- package/dist/components/style/modal.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 -1
- package/dist/components/style/popover.css +1 -0
- package/dist/components/style/progressBar.css +1 -1
- package/dist/components/style/quantitySelector.css +1 -1
- package/dist/components/style/selectionChip.css +1 -1
- package/dist/components/style/snackBar.css +1 -0
- package/dist/components/style/tabBar.css +1 -1
- package/dist/components/style/tag.css +1 -1
- package/dist/components/style/toggle.css +1 -1
- package/dist/components/style/tooltip.css +1 -1
- package/dist/components/switch.es.js +1 -1
- package/dist/components/tabBar.es.js +23 -15
- package/dist/components/tableslotedcomponent.es.js +1 -1
- package/dist/components/tag.es.js +31 -23
- package/dist/components/textArea.es.js +1 -1
- package/dist/components/textField.es.js +1 -1
- package/dist/components/toggle.es.js +20 -16
- package/dist/components/tooltip.es.js +71 -1019
- package/dist/energy-components.es.js +6845 -5844
- package/dist/energy-components.umd.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/src/components/buttons/action-button/action-button.vue.d.ts +47 -0
- package/dist/types/src/components/buttons/button/button.vue.d.ts +15 -0
- package/dist/types/src/components/buttons/floating-action-button/floating-action-button.vue.d.ts +15 -0
- package/dist/types/src/components/content/avatar/avatar.vue.d.ts +15 -0
- package/dist/types/src/components/content/card/card.vue.d.ts +15 -0
- package/dist/types/src/components/content/collapsable/collapsable.vue.d.ts +1 -1
- package/dist/types/src/components/content/tag/tag.vue.d.ts +15 -0
- package/dist/types/src/components/feedback/indicator/indicator.vue.d.ts +15 -0
- package/dist/types/src/components/feedback/info-box/info-box.vue.d.ts +15 -0
- package/dist/types/src/components/feedback/loader/loader.vue.d.ts +1 -1
- package/dist/types/src/components/feedback/persistent-toast/persistent-toast.vue.d.ts +15 -0
- package/dist/types/src/components/feedback/progress-bar/progress-bar.vue.d.ts +15 -0
- package/dist/types/src/components/feedback/snack-bar/snack-bar.vue.d.ts +180 -0
- package/dist/types/src/components/icon-svg/icon-svg.vue.d.ts +15 -0
- package/dist/types/src/components/index.d.ts +2 -0
- package/dist/types/src/components/input/checkbox/checkbox.vue.d.ts +24 -7
- package/dist/types/src/components/input/drag-and-drop/drag-and-drop.vue.d.ts +1 -1
- package/dist/types/src/components/input/file-upload-item/file-upload-item.vue.d.ts +1 -1
- package/dist/types/src/components/input/filter-chip/filter-chip.vue.d.ts +15 -0
- package/dist/types/src/components/input/filter-tag/filter-tag.vue.d.ts +15 -0
- package/dist/types/src/components/input/quantity-selector/quantity-selector.vue.d.ts +15 -0
- package/dist/types/src/components/input/selection-chip/selection-chip.vue.d.ts +15 -0
- package/dist/types/src/components/input/switch/switch.vue.d.ts +1 -1
- package/dist/types/src/components/input/toggle/toggle.vue.d.ts +4 -0
- package/dist/types/src/components/navigation/breadcrumbs/breadcrumbs.vue.d.ts +15 -0
- package/dist/types/src/components/navigation/direct-access/direct-access.vue.d.ts +15 -0
- package/dist/types/src/components/navigation/link/link.vue.d.ts +15 -0
- package/dist/types/src/components/navigation/pagination/pagination.vue.d.ts +47 -0
- package/dist/types/src/components/navigation/tab-bar/tab-bar.vue.d.ts +15 -0
- package/dist/types/src/components/overlay/modal/modal.vue.d.ts +15 -0
- package/dist/types/src/components/overlay/overlay/overlay.vue.d.ts +15 -0
- package/dist/types/src/components/overlay/popover/popover.vue.d.ts +35 -0
- package/dist/types/src/components/overlay/tooltip/tooltip.vue.d.ts +15 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as p, ref as a, computed as v, createElementBlock as s, openBlock 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, R as k } from "./icon-svg-
|
|
2
|
+
import { i as m, R as k } from "./icon-svg-BU0OQFKH.js";
|
|
3
3
|
import { _ as w } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
4
|
import './style/iconList.css';const y = { class: "rds-e-icon-list" }, D = ["onClick"], N = /* @__PURE__ */ p({
|
|
5
5
|
__name: "icon-list",
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { R as i } from "./icon-svg-
|
|
1
|
+
import { R as i } from "./icon-svg-BU0OQFKH.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";
|
|
5
5
|
import S from "./checkbox.es.js";
|
|
6
6
|
import D from "./textField.es.js";
|
|
7
|
-
import
|
|
8
|
-
import
|
|
7
|
+
import p from "./textArea.es.js";
|
|
8
|
+
import R from "./switch.es.js";
|
|
9
9
|
import n from "./radioButton.es.js";
|
|
10
10
|
import { _ as s } from "./radio-group.vue_vue_type_script_setup_true_lang-DpguLlRK.js";
|
|
11
11
|
import c from "./dropdown.es.js";
|
|
@@ -16,80 +16,84 @@ import u from "./selectionChip.es.js";
|
|
|
16
16
|
import g from "./filterChip.es.js";
|
|
17
17
|
import b from "./dragAndDrop.es.js";
|
|
18
18
|
import A from "./fileUploadItem.es.js";
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import { _ as
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
import
|
|
31
|
-
import
|
|
19
|
+
import B from "./filterTag.es.js";
|
|
20
|
+
import T from "./tag.es.js";
|
|
21
|
+
import v from "./accordionGroup.es.js";
|
|
22
|
+
import C from "./accordion.es.js";
|
|
23
|
+
import _ from "./divider.es.js";
|
|
24
|
+
import h from "./card.es.js";
|
|
25
|
+
import x from "./tablepaginatedcomponent.es.js";
|
|
26
|
+
import I from "./avatar.es.js";
|
|
27
|
+
import { _ as F } from "./collapsable.scss_vue_type_style_index_0_src_true_lang-Bi5q6Y3n.js";
|
|
28
|
+
import P from "./link.es.js";
|
|
29
|
+
import k from "./breadcrumbs.es.js";
|
|
30
|
+
import w from "./tabBar.es.js";
|
|
31
|
+
import y from "./pagination.es.js";
|
|
32
32
|
import G from "./directAccess.es.js";
|
|
33
33
|
import L from "./indicator.es.js";
|
|
34
34
|
import M from "./persistentToast.es.js";
|
|
35
|
-
import O from "./
|
|
36
|
-
import U from "./
|
|
37
|
-
import j from "./
|
|
38
|
-
import Q from "./
|
|
39
|
-
import V from "./
|
|
40
|
-
import q from "./
|
|
41
|
-
import z from "./
|
|
42
|
-
import K from "./
|
|
35
|
+
import O from "./snackBar.es.js";
|
|
36
|
+
import U from "./infoBox.es.js";
|
|
37
|
+
import j from "./progressBar.es.js";
|
|
38
|
+
import Q from "./loader.es.js";
|
|
39
|
+
import V from "./modal.es.js";
|
|
40
|
+
import q from "./overlay.es.js";
|
|
41
|
+
import z from "./tooltip.es.js";
|
|
42
|
+
import K from "./popover.es.js";
|
|
43
|
+
import $ from "./sidebar.es.js";
|
|
44
|
+
import E from "./sidedrawer.es.js";
|
|
43
45
|
const t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
44
46
|
__proto__: null,
|
|
45
|
-
RDSAccordion:
|
|
46
|
-
RDSAccordionGroup:
|
|
47
|
+
RDSAccordion: C,
|
|
48
|
+
RDSAccordionGroup: v,
|
|
47
49
|
RDSActionButton: m,
|
|
48
|
-
RDSAvatar:
|
|
49
|
-
RDSBreadcrumbs:
|
|
50
|
+
RDSAvatar: I,
|
|
51
|
+
RDSBreadcrumbs: k,
|
|
50
52
|
RDSButton: a,
|
|
51
|
-
RDSCard:
|
|
53
|
+
RDSCard: h,
|
|
52
54
|
RDSCheckbox: S,
|
|
53
|
-
RDSCollapsable:
|
|
55
|
+
RDSCollapsable: F,
|
|
54
56
|
RDSDatePicker: f,
|
|
55
57
|
RDSDirectAccess: G,
|
|
56
|
-
RDSDivider:
|
|
58
|
+
RDSDivider: _,
|
|
57
59
|
RDSDragAndDrop: b,
|
|
58
60
|
RDSDropdown: c,
|
|
59
61
|
RDSFileUploadItem: A,
|
|
60
62
|
RDSFilterChip: g,
|
|
61
|
-
RDSFilterTag:
|
|
63
|
+
RDSFilterTag: B,
|
|
62
64
|
RDSFloatinActionButton: e,
|
|
63
65
|
RDSIconSvg: i,
|
|
64
66
|
RDSIndicator: L,
|
|
65
|
-
RDSInfoBox:
|
|
66
|
-
RDSLink:
|
|
67
|
-
RDSLoader:
|
|
68
|
-
RDSModal:
|
|
69
|
-
RDSOverlay:
|
|
70
|
-
RDSPagination:
|
|
67
|
+
RDSInfoBox: U,
|
|
68
|
+
RDSLink: P,
|
|
69
|
+
RDSLoader: Q,
|
|
70
|
+
RDSModal: V,
|
|
71
|
+
RDSOverlay: q,
|
|
72
|
+
RDSPagination: y,
|
|
71
73
|
RDSPersistentToast: M,
|
|
72
|
-
|
|
74
|
+
RDSPopover: K,
|
|
75
|
+
RDSProgressBar: j,
|
|
73
76
|
RDSQuantitySelector: d,
|
|
74
77
|
RDSRadioButton: n,
|
|
75
78
|
RDSRadioGroup: s,
|
|
76
79
|
RDSSelectionChip: u,
|
|
77
|
-
RDSSidebar:
|
|
78
|
-
RDSSidedrawer:
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
80
|
+
RDSSidebar: $,
|
|
81
|
+
RDSSidedrawer: E,
|
|
82
|
+
RDSSnackBar: O,
|
|
83
|
+
RDSSwitch: R,
|
|
84
|
+
RDSTabBar: w,
|
|
85
|
+
RDSTable: x,
|
|
86
|
+
RDSTag: T,
|
|
87
|
+
RDSTextArea: p,
|
|
84
88
|
RDSTextField: D,
|
|
85
89
|
RDSToggle: l,
|
|
86
|
-
RDSTooltip:
|
|
90
|
+
RDSTooltip: z
|
|
87
91
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
88
|
-
let
|
|
89
|
-
function
|
|
90
|
-
|
|
92
|
+
let H;
|
|
93
|
+
function jo(o) {
|
|
94
|
+
H = o;
|
|
91
95
|
}
|
|
92
|
-
const
|
|
96
|
+
const Qo = {
|
|
93
97
|
install: (o) => {
|
|
94
98
|
for (const r in t)
|
|
95
99
|
o.component(
|
|
@@ -99,49 +103,51 @@ const Mo = {
|
|
|
99
103
|
}
|
|
100
104
|
};
|
|
101
105
|
export {
|
|
102
|
-
|
|
103
|
-
|
|
106
|
+
C as RDSAccordion,
|
|
107
|
+
v as RDSAccordionGroup,
|
|
104
108
|
m as RDSActionButton,
|
|
105
|
-
|
|
106
|
-
|
|
109
|
+
I as RDSAvatar,
|
|
110
|
+
k as RDSBreadcrumbs,
|
|
107
111
|
a as RDSButton,
|
|
108
|
-
|
|
112
|
+
h as RDSCard,
|
|
109
113
|
S as RDSCheckbox,
|
|
110
|
-
|
|
114
|
+
F as RDSCollapsable,
|
|
111
115
|
f as RDSDatePicker,
|
|
112
116
|
G as RDSDirectAccess,
|
|
113
|
-
|
|
117
|
+
_ as RDSDivider,
|
|
114
118
|
b as RDSDragAndDrop,
|
|
115
119
|
c as RDSDropdown,
|
|
116
120
|
A as RDSFileUploadItem,
|
|
117
121
|
g as RDSFilterChip,
|
|
118
|
-
|
|
122
|
+
B as RDSFilterTag,
|
|
119
123
|
e as RDSFloatinActionButton,
|
|
120
124
|
i as RDSIconSvg,
|
|
121
125
|
L as RDSIndicator,
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
126
|
+
U as RDSInfoBox,
|
|
127
|
+
P as RDSLink,
|
|
128
|
+
Q as RDSLoader,
|
|
129
|
+
V as RDSModal,
|
|
130
|
+
q as RDSOverlay,
|
|
131
|
+
y as RDSPagination,
|
|
128
132
|
M as RDSPersistentToast,
|
|
129
|
-
|
|
133
|
+
K as RDSPopover,
|
|
134
|
+
j as RDSProgressBar,
|
|
130
135
|
d as RDSQuantitySelector,
|
|
131
136
|
n as RDSRadioButton,
|
|
132
137
|
s as RDSRadioGroup,
|
|
133
138
|
u as RDSSelectionChip,
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
139
|
+
$ as RDSSidebar,
|
|
140
|
+
E as RDSSidedrawer,
|
|
141
|
+
O as RDSSnackBar,
|
|
142
|
+
R as RDSSwitch,
|
|
143
|
+
w as RDSTabBar,
|
|
144
|
+
x as RDSTable,
|
|
145
|
+
T as RDSTag,
|
|
146
|
+
p as RDSTextArea,
|
|
141
147
|
D as RDSTextField,
|
|
142
148
|
l as RDSToggle,
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
149
|
+
z as RDSTooltip,
|
|
150
|
+
H as VueInstance,
|
|
151
|
+
Qo as default,
|
|
152
|
+
jo as setVueInstance
|
|
147
153
|
};
|
|
@@ -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, createElementBlock as d, openBlock 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, createElementBlock as d, openBlock as u, normalizeClass as h, createElementVNode as p, normalizeStyle as V, Fragment as W, renderList as F, createCommentVNode as B, toDisplayString as C } from "vue";
|
|
2
2
|
import { d as I, t as A, a as T } from "./functions-DIHwdgF0.js";
|
|
3
3
|
import { _ as D } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
|
-
import './style/indicator.css';const M = { class: "rds-e-indicator__inner" },
|
|
4
|
+
import './style/indicator.css';const M = ["id"], U = { class: "rds-e-indicator__inner" }, X = { class: "rds-e-indicator__step-content" }, Y = { key: 0 }, j = /* @__PURE__ */ k({
|
|
5
5
|
__name: "indicator",
|
|
6
6
|
props: {
|
|
7
7
|
/**
|
|
@@ -10,8 +10,8 @@ import './style/indicator.css';const M = { class: "rds-e-indicator__inner" }, U
|
|
|
10
10
|
steps: {
|
|
11
11
|
type: Array,
|
|
12
12
|
required: !0,
|
|
13
|
-
validator(
|
|
14
|
-
return !Array.isArray(
|
|
13
|
+
validator(a) {
|
|
14
|
+
return !Array.isArray(a) || a.length === 0 ? (console.warn("Advertencia: steps debe ser un array no vacío de strings."), !1) : a.every((o) => typeof o != "string" ? (console.warn(`Advertencia: Todos los elementos en steps deben ser strings. Encontrado: ${typeof o}`), !1) : /^[a-z0-9\s\u00C0-\u017F]+$/i.test(o) ? !0 : (console.warn(`Advertencia: El paso "${o}" contiene caracteres no permitidos. Solo se permiten letras, números y espacios.`), !1));
|
|
15
15
|
}
|
|
16
16
|
},
|
|
17
17
|
/**
|
|
@@ -20,8 +20,8 @@ import './style/indicator.css';const M = { class: "rds-e-indicator__inner" }, U
|
|
|
20
20
|
currentStep: {
|
|
21
21
|
type: Number,
|
|
22
22
|
required: !0,
|
|
23
|
-
validator(
|
|
24
|
-
return typeof
|
|
23
|
+
validator(a) {
|
|
24
|
+
return typeof a != "number" ? (console.warn("Advertencia: currentStep debe ser un número."), !1) : a <= 0 ? (console.warn("Advertencia: currentStep debe ser mayor que 0."), !1) : Number.isInteger(a) ? !0 : (console.warn("Advertencia: currentStep debe ser un número entero."), !1);
|
|
25
25
|
}
|
|
26
26
|
},
|
|
27
27
|
/**
|
|
@@ -51,10 +51,17 @@ import './style/indicator.css';const M = { class: "rds-e-indicator__inner" }, U
|
|
|
51
51
|
ellipsis: {
|
|
52
52
|
type: Boolean,
|
|
53
53
|
default: !1
|
|
54
|
+
},
|
|
55
|
+
/**
|
|
56
|
+
* ID del indicador para testing
|
|
57
|
+
*/
|
|
58
|
+
id: {
|
|
59
|
+
type: String,
|
|
60
|
+
default: void 0
|
|
54
61
|
}
|
|
55
62
|
},
|
|
56
|
-
setup(
|
|
57
|
-
const t =
|
|
63
|
+
setup(a) {
|
|
64
|
+
const t = a, {
|
|
58
65
|
direction: o,
|
|
59
66
|
currentStep: f,
|
|
60
67
|
steps: $,
|
|
@@ -70,20 +77,20 @@ import './style/indicator.css';const M = { class: "rds-e-indicator__inner" }, U
|
|
|
70
77
|
return {
|
|
71
78
|
[s]: "100%"
|
|
72
79
|
};
|
|
73
|
-
const
|
|
80
|
+
const i = (r - 1) / (e - 1) * 100, n = r < e ? 100 / (e - 1) / 2 : 0;
|
|
74
81
|
return {
|
|
75
|
-
[s]: `${
|
|
82
|
+
[s]: `${i + n}%`
|
|
76
83
|
};
|
|
77
|
-
}),
|
|
84
|
+
}), b = () => {
|
|
78
85
|
if (_.value && v.value) {
|
|
79
86
|
const r = v.value, e = c.value[0];
|
|
80
87
|
if (e) {
|
|
81
88
|
if (o.value === "vertical") {
|
|
82
|
-
const s = e.getBoundingClientRect(),
|
|
89
|
+
const s = e.getBoundingClientRect(), i = _.value.getBoundingClientRect(), n = s.left + s.width / 2 - i.left;
|
|
83
90
|
r.style.left = `${n}px`;
|
|
84
91
|
}
|
|
85
92
|
if (o.value === "horizontal") {
|
|
86
|
-
const s = e.getBoundingClientRect(),
|
|
93
|
+
const s = e.getBoundingClientRect(), i = _.value.getBoundingClientRect(), n = s.top + s.height / 2 - i.top;
|
|
87
94
|
r.style.top = `${n}px`;
|
|
88
95
|
}
|
|
89
96
|
}
|
|
@@ -99,7 +106,7 @@ import './style/indicator.css';const M = { class: "rds-e-indicator__inner" }, U
|
|
|
99
106
|
}, g = () => {
|
|
100
107
|
!t.steps || !t.steps.length || t.steps.forEach((r, e) => {
|
|
101
108
|
var w;
|
|
102
|
-
const s = e < f.value,
|
|
109
|
+
const s = e < f.value, i = e === f.value - 1;
|
|
103
110
|
let n = (w = c.value[e]) == null ? void 0 : w.classList, l = [];
|
|
104
111
|
n && (n = Array.from(n), l = Array.from(n), l = A(
|
|
105
112
|
l,
|
|
@@ -108,13 +115,13 @@ import './style/indicator.css';const M = { class: "rds-e-indicator__inner" }, U
|
|
|
108
115
|
), l = A(
|
|
109
116
|
l,
|
|
110
117
|
"rds-e-indicator__bullet--current",
|
|
111
|
-
|
|
118
|
+
i
|
|
112
119
|
), T(n, l) || setTimeout(() => {
|
|
113
120
|
c.value[e].classList.remove(...n), c.value[e].classList.add(...l);
|
|
114
121
|
}, 150));
|
|
115
122
|
});
|
|
116
123
|
}, m = () => {
|
|
117
|
-
|
|
124
|
+
b();
|
|
118
125
|
};
|
|
119
126
|
return S(
|
|
120
127
|
[o, $, R],
|
|
@@ -125,19 +132,20 @@ import './style/indicator.css';const M = { class: "rds-e-indicator__inner" }, U
|
|
|
125
132
|
), S(f, () => {
|
|
126
133
|
g();
|
|
127
134
|
}), q(() => {
|
|
128
|
-
|
|
135
|
+
b(), g(), window.addEventListener("resize", I(m, 200));
|
|
129
136
|
}), P(() => {
|
|
130
137
|
window.removeEventListener("resize", m);
|
|
131
138
|
}), (r, e) => (u(), d("div", {
|
|
139
|
+
id: a.id,
|
|
132
140
|
ref_key: "$indicator",
|
|
133
141
|
ref: _,
|
|
134
|
-
class:
|
|
142
|
+
class: h(["rds-e-indicator", [
|
|
135
143
|
`rds-e-indicator--${t.direction}`,
|
|
136
144
|
{ "rds-e-indicator--small": t.variant === "small" },
|
|
137
145
|
{ "rds-e-indicator--full-width": t.fullWidth }
|
|
138
146
|
]])
|
|
139
147
|
}, [
|
|
140
|
-
p("div",
|
|
148
|
+
p("div", U, [
|
|
141
149
|
p("div", {
|
|
142
150
|
ref_key: "$progressBar",
|
|
143
151
|
ref: v,
|
|
@@ -148,28 +156,28 @@ import './style/indicator.css';const M = { class: "rds-e-indicator__inner" }, U
|
|
|
148
156
|
style: V(E.value)
|
|
149
157
|
}, null, 4)
|
|
150
158
|
], 512),
|
|
151
|
-
(u(!0), d(W, null, F(t.steps, (s,
|
|
152
|
-
key:
|
|
153
|
-
class:
|
|
159
|
+
(u(!0), d(W, null, F(t.steps, (s, i) => (u(), d("div", {
|
|
160
|
+
key: i,
|
|
161
|
+
class: h(["rds-e-indicator__step-wrapper", L(i)])
|
|
154
162
|
}, [
|
|
155
|
-
p("div",
|
|
163
|
+
p("div", X, [
|
|
156
164
|
p("div", {
|
|
157
165
|
ref_for: !0,
|
|
158
|
-
ref: (n) => c.value[
|
|
166
|
+
ref: (n) => c.value[i] = n,
|
|
159
167
|
class: "rds-e-indicator__bullet"
|
|
160
168
|
}, [
|
|
161
|
-
t.variant !== "small" ? (u(), d("span",
|
|
169
|
+
t.variant !== "small" ? (u(), d("span", Y, C(i + 1), 1)) : B("", !0)
|
|
162
170
|
], 512)
|
|
163
171
|
]),
|
|
164
172
|
t.variant !== "small" ? (u(), d("div", {
|
|
165
173
|
key: 0,
|
|
166
|
-
class:
|
|
174
|
+
class: h(["rds-e-indicator__label", { "rds-e-indicator__label--ellipsis": t.ellipsis }])
|
|
167
175
|
}, C(s), 3)) : B("", !0)
|
|
168
176
|
], 2))), 128))
|
|
169
177
|
])
|
|
170
|
-
],
|
|
178
|
+
], 10, M));
|
|
171
179
|
}
|
|
172
|
-
}),
|
|
180
|
+
}), K = /* @__PURE__ */ D(j, [["__scopeId", "data-v-2523e4b1"]]);
|
|
173
181
|
export {
|
|
174
|
-
|
|
182
|
+
K as default
|
|
175
183
|
};
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { R as _ } from "./icon-svg-
|
|
1
|
+
import { defineComponent as h, ref as u, toRefs as k, computed as $, watch as S, nextTick as w, createElementBlock as t, openBlock as o, normalizeClass as m, createElementVNode as a, createCommentVNode as s, createVNode as b, toDisplayString as r, renderSlot as v } from "vue";
|
|
2
|
+
import { R as _ } from "./icon-svg-BU0OQFKH.js";
|
|
3
3
|
import { _ as C } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
|
-
import './style/infoBox.css';const q = { class: "alert" },
|
|
4
|
+
import './style/infoBox.css';const q = ["id"], B = { class: "alert" }, H = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "rds-e-info-box__custom-icon-block"
|
|
7
|
-
},
|
|
7
|
+
}, N = { class: "rds-e-info-box__wrapper" }, R = { class: "rds-e-info-box__title__wrapper" }, V = {
|
|
8
8
|
key: 0,
|
|
9
9
|
class: "rds-e-info-box__title rds-mb-03"
|
|
10
|
-
},
|
|
10
|
+
}, D = {
|
|
11
11
|
key: 0,
|
|
12
12
|
class: "rds-e-info-box__title rds-mb-03"
|
|
13
|
-
},
|
|
13
|
+
}, E = {
|
|
14
14
|
key: 2,
|
|
15
15
|
class: "rds-e-info-box__text"
|
|
16
|
-
},
|
|
16
|
+
}, I = {
|
|
17
17
|
key: 3,
|
|
18
18
|
class: "rds-e-info-box__content-section"
|
|
19
|
-
},
|
|
19
|
+
}, z = {
|
|
20
20
|
key: 0,
|
|
21
21
|
class: "rds-e-info-box__text"
|
|
22
|
-
},
|
|
22
|
+
}, O = {
|
|
23
23
|
key: 1,
|
|
24
24
|
class: "rds-e-info-box__content-section"
|
|
25
|
-
},
|
|
25
|
+
}, T = /* @__PURE__ */ h({
|
|
26
26
|
__name: "info-box",
|
|
27
27
|
props: {
|
|
28
28
|
/**
|
|
@@ -88,58 +88,66 @@ import './style/infoBox.css';const q = { class: "alert" }, B = {
|
|
|
88
88
|
type: Boolean,
|
|
89
89
|
required: !1,
|
|
90
90
|
default: !1
|
|
91
|
+
},
|
|
92
|
+
/**
|
|
93
|
+
* ID del info-box para testing
|
|
94
|
+
*/
|
|
95
|
+
id: {
|
|
96
|
+
type: String,
|
|
97
|
+
default: void 0
|
|
91
98
|
}
|
|
92
99
|
},
|
|
93
100
|
setup(e) {
|
|
94
|
-
const x = e,
|
|
95
|
-
() => `rds-e-info-box rds-mb-03 rds-e-info-box${
|
|
101
|
+
const x = e, i = u(!1), c = u(null), d = u(null), { type: l } = k(x), y = $(
|
|
102
|
+
() => `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" : ""}`
|
|
96
103
|
), g = () => {
|
|
97
104
|
if (!c.value || !d.value) return;
|
|
98
105
|
const n = d.value.scrollHeight;
|
|
99
|
-
c.value.style.maxHeight =
|
|
106
|
+
c.value.style.maxHeight = i.value ? `${n}px` : "0px";
|
|
100
107
|
};
|
|
101
|
-
|
|
102
|
-
() =>
|
|
103
|
-
() =>
|
|
108
|
+
S(
|
|
109
|
+
() => i.value,
|
|
110
|
+
() => w(() => {
|
|
104
111
|
g();
|
|
105
112
|
}),
|
|
106
113
|
{ immediate: !0 }
|
|
107
114
|
);
|
|
108
115
|
const p = () => {
|
|
109
|
-
|
|
116
|
+
i.value = !i.value;
|
|
110
117
|
};
|
|
111
|
-
return (n, f) => (
|
|
118
|
+
return (n, f) => (o(), t("div", {
|
|
119
|
+
id: e.id,
|
|
112
120
|
class: m(y.value),
|
|
113
121
|
role: "alert"
|
|
114
122
|
}, [
|
|
115
|
-
a("div",
|
|
116
|
-
e.icon ? (
|
|
123
|
+
a("div", B, [
|
|
124
|
+
e.icon ? (o(), t("div", H, [
|
|
117
125
|
b(_, {
|
|
118
126
|
name: e.icon,
|
|
119
127
|
class: "rds-e-info-box__custom-icon",
|
|
120
128
|
"aria-hidden": "true"
|
|
121
129
|
}, null, 8, ["name"])
|
|
122
|
-
])) :
|
|
123
|
-
a("div",
|
|
124
|
-
a("div",
|
|
125
|
-
e.title && !e.collapsable ? (
|
|
126
|
-
e.collapsable ? (
|
|
130
|
+
])) : s("", !0),
|
|
131
|
+
a("div", N, [
|
|
132
|
+
a("div", R, [
|
|
133
|
+
e.title && !e.collapsable ? (o(), t("div", V, r(e.title), 1)) : s("", !0),
|
|
134
|
+
e.collapsable ? (o(), t("div", {
|
|
127
135
|
key: 1,
|
|
128
136
|
class: "rds-e-info-box__collapsable rds-mb-03",
|
|
129
137
|
onClick: f[0] || (f[0] = () => p())
|
|
130
138
|
}, [
|
|
131
|
-
e.title ? (
|
|
139
|
+
e.title ? (o(), t("div", D, r(e.title), 1)) : s("", !0),
|
|
132
140
|
b(_, {
|
|
133
141
|
name: "arrow_down",
|
|
134
|
-
class: m(["rds-e-info-box__custom-icon", { "rds-e-info-box__custom-icon--open":
|
|
142
|
+
class: m(["rds-e-info-box__custom-icon", { "rds-e-info-box__custom-icon--open": i.value }]),
|
|
135
143
|
"aria-hidden": "true"
|
|
136
144
|
}, null, 8, ["class"])
|
|
137
|
-
])) :
|
|
138
|
-
e.message && !e.collapsable && !n.$slots["content-section"] ? (
|
|
139
|
-
n.$slots["content-section"] && !e.collapsable ? (
|
|
145
|
+
])) : s("", !0),
|
|
146
|
+
e.message && !e.collapsable && !n.$slots["content-section"] ? (o(), t("p", E, r(e.message), 1)) : s("", !0),
|
|
147
|
+
n.$slots["content-section"] && !e.collapsable ? (o(), t("div", I, [
|
|
140
148
|
v(n.$slots, "content-section", {}, void 0, !0)
|
|
141
|
-
])) :
|
|
142
|
-
e.collapsable ? (
|
|
149
|
+
])) : s("", !0),
|
|
150
|
+
e.collapsable ? (o(), t("div", {
|
|
143
151
|
key: 4,
|
|
144
152
|
ref_key: "panel",
|
|
145
153
|
ref: c,
|
|
@@ -150,18 +158,18 @@ import './style/infoBox.css';const q = { class: "alert" }, B = {
|
|
|
150
158
|
ref: d,
|
|
151
159
|
class: "rds-e-info-box__panel-content"
|
|
152
160
|
}, [
|
|
153
|
-
n.$slots["content-section"] ?
|
|
154
|
-
n.$slots["content-section"] ? (
|
|
161
|
+
n.$slots["content-section"] ? s("", !0) : (o(), t("p", z, r(e.message), 1)),
|
|
162
|
+
n.$slots["content-section"] ? (o(), t("div", O, [
|
|
155
163
|
v(n.$slots, "content-section", {}, void 0, !0)
|
|
156
|
-
])) :
|
|
164
|
+
])) : s("", !0)
|
|
157
165
|
], 512)
|
|
158
|
-
], 512)) :
|
|
166
|
+
], 512)) : s("", !0)
|
|
159
167
|
])
|
|
160
168
|
])
|
|
161
169
|
])
|
|
162
|
-
],
|
|
170
|
+
], 10, q));
|
|
163
171
|
}
|
|
164
|
-
}),
|
|
172
|
+
}), G = /* @__PURE__ */ C(T, [["__scopeId", "data-v-61fb9d6e"]]);
|
|
165
173
|
export {
|
|
166
|
-
|
|
174
|
+
G as default
|
|
167
175
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { R as v } from "./icon-svg-
|
|
3
|
-
import { _ as
|
|
4
|
-
import './style/link.css';const
|
|
1
|
+
import { defineComponent as N, toRefs as V, computed as f, createBlock as p, openBlock as s, resolveDynamicComponent as $, unref as e, normalizeStyle as M, normalizeClass as _, withCtx as O, createCommentVNode as d, createElementBlock as I, mergeProps as k, renderSlot as D, createTextVNode as R, toDisplayString as j } from "vue";
|
|
2
|
+
import { R as v } from "./icon-svg-BU0OQFKH.js";
|
|
3
|
+
import { _ as P } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
|
+
import './style/link.css';const T = /* @__PURE__ */ N({
|
|
5
5
|
__name: "link",
|
|
6
6
|
props: {
|
|
7
7
|
/**
|
|
@@ -87,6 +87,13 @@ import './style/link.css';const P = /* @__PURE__ */ L({
|
|
|
87
87
|
color: {
|
|
88
88
|
type: String,
|
|
89
89
|
default: ""
|
|
90
|
+
},
|
|
91
|
+
/**
|
|
92
|
+
* <span>ID del link para testing</span>
|
|
93
|
+
*/
|
|
94
|
+
id: {
|
|
95
|
+
type: String,
|
|
96
|
+
default: void 0
|
|
90
97
|
}
|
|
91
98
|
},
|
|
92
99
|
setup(o) {
|
|
@@ -102,8 +109,9 @@ import './style/link.css';const P = /* @__PURE__ */ L({
|
|
|
102
109
|
underline: h,
|
|
103
110
|
customClass: b,
|
|
104
111
|
color: l,
|
|
105
|
-
arrowSmall: x
|
|
106
|
-
|
|
112
|
+
arrowSmall: x,
|
|
113
|
+
id: z
|
|
114
|
+
} = V(y), E = f(() => l.value ? { color: l.value } : void 0), L = f(() => {
|
|
107
115
|
var n, B;
|
|
108
116
|
const a = ["rds-e-link"];
|
|
109
117
|
return m.value && a.push("rds-e-link--inverse"), h.value && a.push("rds-e-link--underline"), i.value && a.push("rds-e-style-state-disabled"), ((n = r == null ? void 0 : r.value) == null ? void 0 : n.name) !== "arrow" && a.push("rds-e-arrow-link"), ((B = r == null ? void 0 : r.value) == null ? void 0 : B.name) !== "arrow" && m.value && a.push("rds-e-arrow-link__icon--inverse"), b.value === "rds-e-breadcrumbs__link--text" && a.push("rds-e-link__breadcrumbs"), a.join(" ");
|
|
@@ -117,16 +125,17 @@ import './style/link.css';const P = /* @__PURE__ */ L({
|
|
|
117
125
|
var a;
|
|
118
126
|
return c.value || ((a = r == null ? void 0 : r.value) == null ? void 0 : a.name);
|
|
119
127
|
});
|
|
120
|
-
return (a, n) => (s(), p(
|
|
121
|
-
|
|
128
|
+
return (a, n) => (s(), p($(e(u) === "a" ? e(u) : "router-link"), {
|
|
129
|
+
id: e(z),
|
|
130
|
+
class: _(L.value),
|
|
122
131
|
to: e(u) === "router-link" ? e(g) : null,
|
|
123
132
|
href: e(u) === "a" ? e(g) : null,
|
|
124
133
|
disable: e(i),
|
|
125
|
-
style:
|
|
134
|
+
style: M(E.value),
|
|
126
135
|
tabindex: e(i) ? -1 : void 0,
|
|
127
136
|
"aria-disabled": e(i)
|
|
128
137
|
}, {
|
|
129
|
-
default:
|
|
138
|
+
default: O(() => [
|
|
130
139
|
e(r).name && !e(t) && !e(c) ? (s(), p(v, k({
|
|
131
140
|
key: 0,
|
|
132
141
|
name: e(r).name
|
|
@@ -174,9 +183,9 @@ import './style/link.css';const P = /* @__PURE__ */ L({
|
|
|
174
183
|
}), null, 16, ["name", "class", "style"])) : d("", !0)
|
|
175
184
|
]),
|
|
176
185
|
_: 3
|
|
177
|
-
}, 8, ["class", "to", "href", "disable", "style", "tabindex", "aria-disabled"]));
|
|
186
|
+
}, 8, ["id", "class", "to", "href", "disable", "style", "tabindex", "aria-disabled"]));
|
|
178
187
|
}
|
|
179
|
-
}),
|
|
188
|
+
}), G = /* @__PURE__ */ P(T, [["__scopeId", "data-v-3a1cb6f7"]]);
|
|
180
189
|
export {
|
|
181
|
-
|
|
190
|
+
G as default
|
|
182
191
|
};
|