energy-components 1.22.0 → 2.0.0-beta.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/README.md +21 -6
- package/dist/components/accordion.es.js +17 -17
- package/dist/components/avatar.es.js +7 -7
- package/dist/components/breadcrumbs.es.js +32 -32
- package/dist/components/button.es.js +24 -24
- package/dist/components/checkbox.es.js +14 -17
- package/dist/components/collapsable.es.js +1 -1
- package/dist/components/{collapsable.scss_vue_type_style_index_0_src_true_lang-f-OHx-l3.js → collapsable.scss_vue_type_style_index_0_src_true_lang-BERfoghR.js} +10 -10
- package/dist/components/datepicker.es.js +4644 -4639
- package/dist/components/directAccess.es.js +45 -50
- package/dist/components/dragAndDrop.es.js +44 -46
- package/dist/components/dropdown.es.js +154 -163
- package/dist/components/fileUploadItem.es.js +18 -18
- package/dist/components/filterChip.es.js +9 -9
- package/dist/components/filterTag.es.js +7 -7
- package/dist/components/{floating-ui.vue-DHEoOe5S.js → floating-ui.vue-C-DgKOwt.js} +1 -1
- package/dist/components/functions-D3GA3OzJ.js +24 -0
- package/dist/components/icon-svg-DxlNo61Q.js +869 -0
- package/dist/components/iconList.es.js +25 -29
- package/dist/components/iconSvg.es.js +1 -1
- package/dist/components/index.es.js +46 -46
- package/dist/components/indicator.es.js +27 -28
- package/dist/components/infoBox.es.js +17 -17
- package/dist/components/link.es.js +51 -55
- package/dist/components/modal.es.js +20 -20
- package/dist/components/multiselect.es.js +2 -3
- package/dist/components/overlay.es.js +20 -15
- package/dist/components/pagination.es.js +111 -111
- package/dist/components/persistentToast.es.js +11 -11
- package/dist/components/popover.es.js +18 -18
- package/dist/components/popoverMenu.es.js +22 -22
- package/dist/components/progressBar.es.js +8 -8
- package/dist/components/quantitySelector.es.js +12 -12
- package/dist/components/radioButton.es.js +26 -26
- package/dist/components/selectionChip.es.js +5 -5
- package/dist/components/sidedrawer.es.js +19 -19
- package/dist/components/style/accordionGroup.css +1 -1
- package/dist/components/style/actionButton.css +1 -1
- package/dist/components/style/button.css +1 -1
- package/dist/components/style/checkbox.css +1 -1
- package/dist/components/style/datepicker.css +1 -1
- package/dist/components/style/directAccess.css +1 -1
- package/dist/components/style/dragAndDrop.css +1 -1
- package/dist/components/style/filterChip.css +1 -1
- package/dist/components/style/icon-svg.css +1 -1
- package/dist/components/style/iconList.css +1 -1
- package/dist/components/style/link.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/selectionChip.css +1 -1
- package/dist/components/style/sidedrawer.css +1 -1
- package/dist/components/style/tabBar.css +1 -1
- package/dist/components/style/tableslotedcomponent.css +1 -1
- package/dist/components/switch.es.js +9 -9
- package/dist/components/tabBar.es.js +32 -33
- package/dist/components/tablepaginatedcomponent.es.js +35 -36
- package/dist/components/tableslotedcomponent.es.js +116 -121
- package/dist/components/tag.es.js +6 -6
- package/dist/components/textArea.es.js +103 -106
- package/dist/components/textField.es.js +21 -22
- package/dist/components/toggle.es.js +23 -23
- package/dist/components/tooltip.es.js +59 -59
- package/dist/energy-components.css +1 -0
- package/dist/energy-components.es.js +9101 -24972
- package/dist/energy-components.umd.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/src/components/icon-svg/icon-list.d.ts +8 -9
- package/dist/types/src/components/input/filter-chip/filter-chip.vue.d.ts +2 -2
- package/dist/types/src/components/input/selection-chip/selection-chip.vue.d.ts +2 -2
- package/dist/types/src/components/navigation/direct-access/direct-access.vue.d.ts +2 -2
- package/dist/types/src/components/overlay/modal/modal.vue.d.ts +1 -1
- package/dist/types/src/helpers/functions.d.ts +1 -0
- package/dist/types/style.d.ts +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +24 -17
- package/dist/components/functions-DIHwdgF0.js +0 -18
- package/dist/components/icon-svg-K8-vLJgV.js +0 -16718
- package/dist/composables/index.es.js +0 -37
|
@@ -1,49 +1,45 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
1
|
+
import { defineComponent as _, ref as s, computed as p, createElementBlock as a, openBlock as i, Fragment as u, withDirectives as v, createElementVNode as r, vModelText as f, renderList as x, normalizeClass as C, createVNode as L, toDisplayString as g } from "vue";
|
|
2
|
+
import { s as h, I as k } from "./icon-svg-DxlNo61Q.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" }, I = ["onClick"], N = /* @__PURE__ */ _({
|
|
5
5
|
__name: "icon-list",
|
|
6
|
-
setup(
|
|
7
|
-
const o =
|
|
8
|
-
let
|
|
9
|
-
return o.value.length > 2 && (
|
|
10
|
-
|
|
11
|
-
))
|
|
12
|
-
|
|
13
|
-
);
|
|
14
|
-
}), _ = (t) => {
|
|
15
|
-
navigator.clipboard.writeText(t).then(() => {
|
|
16
|
-
c.value = t, l.value = !0;
|
|
6
|
+
setup(T) {
|
|
7
|
+
const o = s(""), l = s(!1), c = s(""), d = p(() => {
|
|
8
|
+
let e = h;
|
|
9
|
+
return o.value.length > 2 && (e = e.filter((n) => n.toLowerCase().includes(o.value.toLowerCase()))), e.map((n) => ({ name: n }));
|
|
10
|
+
}), m = (e) => {
|
|
11
|
+
navigator.clipboard.writeText(e).then(() => {
|
|
12
|
+
c.value = e, l.value = !0;
|
|
17
13
|
}), setTimeout(() => {
|
|
18
14
|
l.value = !1;
|
|
19
15
|
}, 1e3);
|
|
20
16
|
};
|
|
21
|
-
return (
|
|
22
|
-
|
|
23
|
-
"onUpdate:modelValue": n[0] || (n[0] = (
|
|
17
|
+
return (e, n) => (i(), a(u, null, [
|
|
18
|
+
v(r("input", {
|
|
19
|
+
"onUpdate:modelValue": n[0] || (n[0] = (t) => o.value = t),
|
|
24
20
|
class: "rds-e-icon-list__filter",
|
|
25
21
|
type: "text",
|
|
26
22
|
placeholder: "Filtrar iconos"
|
|
27
23
|
}, null, 512), [
|
|
28
|
-
[
|
|
24
|
+
[f, o.value]
|
|
29
25
|
]),
|
|
30
26
|
r("div", y, [
|
|
31
|
-
(i(!0),
|
|
32
|
-
key:
|
|
33
|
-
class:
|
|
34
|
-
"rds-e-icon-list__item--active": l.value && c.value ===
|
|
27
|
+
(i(!0), a(u, null, x(d.value, (t) => (i(), a("div", {
|
|
28
|
+
key: t.name,
|
|
29
|
+
class: C(["rds-e-icon-list__item", {
|
|
30
|
+
"rds-e-icon-list__item--active": l.value && c.value === t.name
|
|
35
31
|
}]),
|
|
36
|
-
onClick: (
|
|
32
|
+
onClick: (V) => m(t.name)
|
|
37
33
|
}, [
|
|
38
|
-
|
|
39
|
-
name:
|
|
34
|
+
L(k, {
|
|
35
|
+
name: t.name
|
|
40
36
|
}, null, 8, ["name"]),
|
|
41
|
-
r("code", null,
|
|
42
|
-
], 10,
|
|
37
|
+
r("code", null, g(t.name), 1)
|
|
38
|
+
], 10, I))), 128))
|
|
43
39
|
])
|
|
44
40
|
], 64));
|
|
45
41
|
}
|
|
46
|
-
}),
|
|
42
|
+
}), E = /* @__PURE__ */ w(N, [["__scopeId", "data-v-5cde32b5"]]);
|
|
47
43
|
export {
|
|
48
|
-
|
|
44
|
+
E as default
|
|
49
45
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { I as a } from "./icon-svg-DxlNo61Q.js";
|
|
2
2
|
import i from "./button.es.js";
|
|
3
3
|
import e from "./floatingActionButton.es.js";
|
|
4
4
|
import m from "./actionButton.es.js";
|
|
@@ -16,23 +16,23 @@ 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 B 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 v from "./filterTag.es.js";
|
|
20
|
+
import A from "./tag.es.js";
|
|
21
|
+
import T from "./accordionGroup.es.js";
|
|
22
|
+
import I from "./accordion.es.js";
|
|
23
|
+
import C from "./divider.es.js";
|
|
24
|
+
import P from "./card.es.js";
|
|
25
|
+
import _ from "./tablepaginatedcomponent.es.js";
|
|
26
|
+
import h from "./avatar.es.js";
|
|
27
|
+
import { _ as x } from "./collapsable.scss_vue_type_style_index_0_src_true_lang-BERfoghR.js";
|
|
28
|
+
import y from "./link.es.js";
|
|
29
|
+
import F from "./breadcrumbs.es.js";
|
|
30
|
+
import k from "./tabBar.es.js";
|
|
31
|
+
import w from "./pagination.es.js";
|
|
32
32
|
import M from "./directAccess.es.js";
|
|
33
33
|
import G from "./indicator.es.js";
|
|
34
|
-
import
|
|
35
|
-
import
|
|
34
|
+
import O from "./badge.es.js";
|
|
35
|
+
import L from "./persistentToast.es.js";
|
|
36
36
|
import U from "./snackBar.es.js";
|
|
37
37
|
import j from "./infoBox.es.js";
|
|
38
38
|
import Q from "./progressBar.es.js";
|
|
@@ -46,34 +46,34 @@ import H from "./sidebar.es.js";
|
|
|
46
46
|
import J from "./sidedrawer.es.js";
|
|
47
47
|
const t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
48
48
|
__proto__: null,
|
|
49
|
-
RDSAccordion:
|
|
50
|
-
RDSAccordionGroup:
|
|
49
|
+
RDSAccordion: I,
|
|
50
|
+
RDSAccordionGroup: T,
|
|
51
51
|
RDSActionButton: m,
|
|
52
|
-
RDSAvatar:
|
|
53
|
-
RDSBadge:
|
|
54
|
-
RDSBreadcrumbs:
|
|
52
|
+
RDSAvatar: h,
|
|
53
|
+
RDSBadge: O,
|
|
54
|
+
RDSBreadcrumbs: F,
|
|
55
55
|
RDSButton: i,
|
|
56
|
-
RDSCard:
|
|
56
|
+
RDSCard: P,
|
|
57
57
|
RDSCheckbox: S,
|
|
58
|
-
RDSCollapsable:
|
|
58
|
+
RDSCollapsable: x,
|
|
59
59
|
RDSDatePicker: f,
|
|
60
60
|
RDSDirectAccess: M,
|
|
61
|
-
RDSDivider:
|
|
61
|
+
RDSDivider: C,
|
|
62
62
|
RDSDragAndDrop: b,
|
|
63
63
|
RDSDropdown: c,
|
|
64
64
|
RDSFileUploadItem: B,
|
|
65
65
|
RDSFilterChip: g,
|
|
66
|
-
RDSFilterTag:
|
|
66
|
+
RDSFilterTag: v,
|
|
67
67
|
RDSFloatinActionButton: e,
|
|
68
68
|
RDSIconSvg: a,
|
|
69
69
|
RDSIndicator: G,
|
|
70
70
|
RDSInfoBox: j,
|
|
71
|
-
RDSLink:
|
|
71
|
+
RDSLink: y,
|
|
72
72
|
RDSLoader: V,
|
|
73
73
|
RDSModal: q,
|
|
74
74
|
RDSOverlay: z,
|
|
75
|
-
RDSPagination:
|
|
76
|
-
RDSPersistentToast:
|
|
75
|
+
RDSPagination: w,
|
|
76
|
+
RDSPersistentToast: L,
|
|
77
77
|
RDSPopover: $,
|
|
78
78
|
RDSPopoverMenu: E,
|
|
79
79
|
RDSProgressBar: Q,
|
|
@@ -85,9 +85,9 @@ const t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
85
85
|
RDSSidedrawer: J,
|
|
86
86
|
RDSSnackBar: U,
|
|
87
87
|
RDSSwitch: R,
|
|
88
|
-
RDSTabBar:
|
|
89
|
-
RDSTable:
|
|
90
|
-
RDSTag:
|
|
88
|
+
RDSTabBar: k,
|
|
89
|
+
RDSTable: _,
|
|
90
|
+
RDSTag: A,
|
|
91
91
|
RDSTextArea: p,
|
|
92
92
|
RDSTextField: D,
|
|
93
93
|
RDSToggle: l,
|
|
@@ -107,34 +107,34 @@ const Ko = {
|
|
|
107
107
|
}
|
|
108
108
|
};
|
|
109
109
|
export {
|
|
110
|
-
|
|
111
|
-
|
|
110
|
+
I as RDSAccordion,
|
|
111
|
+
T as RDSAccordionGroup,
|
|
112
112
|
m as RDSActionButton,
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
113
|
+
h as RDSAvatar,
|
|
114
|
+
O as RDSBadge,
|
|
115
|
+
F as RDSBreadcrumbs,
|
|
116
116
|
i as RDSButton,
|
|
117
|
-
|
|
117
|
+
P as RDSCard,
|
|
118
118
|
S as RDSCheckbox,
|
|
119
|
-
|
|
119
|
+
x as RDSCollapsable,
|
|
120
120
|
f as RDSDatePicker,
|
|
121
121
|
M as RDSDirectAccess,
|
|
122
|
-
|
|
122
|
+
C as RDSDivider,
|
|
123
123
|
b as RDSDragAndDrop,
|
|
124
124
|
c as RDSDropdown,
|
|
125
125
|
B as RDSFileUploadItem,
|
|
126
126
|
g as RDSFilterChip,
|
|
127
|
-
|
|
127
|
+
v as RDSFilterTag,
|
|
128
128
|
e as RDSFloatinActionButton,
|
|
129
129
|
a as RDSIconSvg,
|
|
130
130
|
G as RDSIndicator,
|
|
131
131
|
j as RDSInfoBox,
|
|
132
|
-
|
|
132
|
+
y as RDSLink,
|
|
133
133
|
V as RDSLoader,
|
|
134
134
|
q as RDSModal,
|
|
135
135
|
z as RDSOverlay,
|
|
136
|
-
|
|
137
|
-
|
|
136
|
+
w as RDSPagination,
|
|
137
|
+
L as RDSPersistentToast,
|
|
138
138
|
$ as RDSPopover,
|
|
139
139
|
E as RDSPopoverMenu,
|
|
140
140
|
Q as RDSProgressBar,
|
|
@@ -146,9 +146,9 @@ export {
|
|
|
146
146
|
J as RDSSidedrawer,
|
|
147
147
|
U as RDSSnackBar,
|
|
148
148
|
R as RDSSwitch,
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
149
|
+
k as RDSTabBar,
|
|
150
|
+
_ as RDSTable,
|
|
151
|
+
A as RDSTag,
|
|
152
152
|
p as RDSTextArea,
|
|
153
153
|
D as RDSTextField,
|
|
154
154
|
l as RDSToggle,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { d as
|
|
3
|
-
import { _ as
|
|
4
|
-
import './style/indicator.css';const
|
|
1
|
+
import { defineComponent as L, toRefs as k, ref as y, computed as z, watch as w, onMounted as N, onBeforeUnmount as q, createElementBlock as d, openBlock as u, normalizeClass as h, createElementVNode as p, normalizeStyle as P, Fragment as V, renderList as W, createCommentVNode as S, toDisplayString as B } from "vue";
|
|
2
|
+
import { d as F, t as C, a as I } from "./functions-D3GA3OzJ.js";
|
|
3
|
+
import { _ as T } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
|
+
import './style/indicator.css';const D = ["id"], M = { class: "rds-e-indicator__inner" }, U = { class: "rds-e-indicator__step-content" }, X = { key: 0 }, Y = /* @__PURE__ */ L({
|
|
5
5
|
__name: "indicator",
|
|
6
6
|
props: {
|
|
7
7
|
/**
|
|
@@ -64,9 +64,9 @@ import './style/indicator.css';const M = ["id"], U = { class: "rds-e-indicator__
|
|
|
64
64
|
const t = a, {
|
|
65
65
|
direction: o,
|
|
66
66
|
currentStep: f,
|
|
67
|
-
steps:
|
|
68
|
-
fullWidth:
|
|
69
|
-
} =
|
|
67
|
+
steps: A,
|
|
68
|
+
fullWidth: $
|
|
69
|
+
} = k(t), _ = y(null), v = y(null), c = y([]), R = z(() => {
|
|
70
70
|
let r = t.currentStep;
|
|
71
71
|
const e = t.steps.length, s = o.value === "vertical" ? "height" : "width";
|
|
72
72
|
if (r < 1)
|
|
@@ -95,7 +95,7 @@ import './style/indicator.css';const M = ["id"], U = { class: "rds-e-indicator__
|
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
|
-
},
|
|
98
|
+
}, E = (r) => {
|
|
99
99
|
const e = r === 0 || r === t.steps.length - 1, s = !e;
|
|
100
100
|
return {
|
|
101
101
|
"rds-e-indicator__step-wrapper--first": r === 0,
|
|
@@ -105,35 +105,34 @@ import './style/indicator.css';const M = ["id"], U = { class: "rds-e-indicator__
|
|
|
105
105
|
};
|
|
106
106
|
}, g = () => {
|
|
107
107
|
!t.steps || !t.steps.length || t.steps.forEach((r, e) => {
|
|
108
|
-
var w;
|
|
109
108
|
const s = e < f.value, i = e === f.value - 1;
|
|
110
|
-
let n =
|
|
111
|
-
n && (n = Array.from(n), l = Array.from(n), l =
|
|
109
|
+
let n = c.value[e]?.classList, l = [];
|
|
110
|
+
n && (n = Array.from(n), l = Array.from(n), l = C(
|
|
112
111
|
l,
|
|
113
112
|
"rds-e-indicator__bullet--active",
|
|
114
113
|
s
|
|
115
|
-
), l =
|
|
114
|
+
), l = C(
|
|
116
115
|
l,
|
|
117
116
|
"rds-e-indicator__bullet--current",
|
|
118
117
|
i
|
|
119
|
-
),
|
|
118
|
+
), I(n, l) || setTimeout(() => {
|
|
120
119
|
c.value[e].classList.remove(...n), c.value[e].classList.add(...l);
|
|
121
120
|
}, 150));
|
|
122
121
|
});
|
|
123
122
|
}, m = () => {
|
|
124
123
|
b();
|
|
125
124
|
};
|
|
126
|
-
return
|
|
127
|
-
[o,
|
|
125
|
+
return w(
|
|
126
|
+
[o, A, $],
|
|
128
127
|
() => {
|
|
129
128
|
m(), g();
|
|
130
129
|
},
|
|
131
130
|
{ immediate: !0 }
|
|
132
|
-
),
|
|
131
|
+
), w(f, () => {
|
|
133
132
|
g();
|
|
133
|
+
}), N(() => {
|
|
134
|
+
b(), g(), window.addEventListener("resize", F(m, 200));
|
|
134
135
|
}), q(() => {
|
|
135
|
-
b(), g(), window.addEventListener("resize", I(m, 200));
|
|
136
|
-
}), P(() => {
|
|
137
136
|
window.removeEventListener("resize", m);
|
|
138
137
|
}), (r, e) => (u(), d("div", {
|
|
139
138
|
id: a.id,
|
|
@@ -145,7 +144,7 @@ import './style/indicator.css';const M = ["id"], U = { class: "rds-e-indicator__
|
|
|
145
144
|
{ "rds-e-indicator--full-width": t.fullWidth }
|
|
146
145
|
]])
|
|
147
146
|
}, [
|
|
148
|
-
p("div",
|
|
147
|
+
p("div", M, [
|
|
149
148
|
p("div", {
|
|
150
149
|
ref_key: "$progressBar",
|
|
151
150
|
ref: v,
|
|
@@ -153,31 +152,31 @@ import './style/indicator.css';const M = ["id"], U = { class: "rds-e-indicator__
|
|
|
153
152
|
}, [
|
|
154
153
|
p("div", {
|
|
155
154
|
class: "rds-e-indicator__progress-bar__fill",
|
|
156
|
-
style:
|
|
155
|
+
style: P(R.value)
|
|
157
156
|
}, null, 4)
|
|
158
157
|
], 512),
|
|
159
|
-
(u(!0), d(
|
|
158
|
+
(u(!0), d(V, null, W(t.steps, (s, i) => (u(), d("div", {
|
|
160
159
|
key: i,
|
|
161
|
-
class: h(["rds-e-indicator__step-wrapper",
|
|
160
|
+
class: h(["rds-e-indicator__step-wrapper", E(i)])
|
|
162
161
|
}, [
|
|
163
|
-
p("div",
|
|
162
|
+
p("div", U, [
|
|
164
163
|
p("div", {
|
|
165
164
|
ref_for: !0,
|
|
166
165
|
ref: (n) => c.value[i] = n,
|
|
167
166
|
class: "rds-e-indicator__bullet"
|
|
168
167
|
}, [
|
|
169
|
-
t.variant !== "small" ? (u(), d("span",
|
|
168
|
+
t.variant !== "small" ? (u(), d("span", X, B(i + 1), 1)) : S("", !0)
|
|
170
169
|
], 512)
|
|
171
170
|
]),
|
|
172
171
|
t.variant !== "small" ? (u(), d("div", {
|
|
173
172
|
key: 0,
|
|
174
173
|
class: h(["rds-e-indicator__label", { "rds-e-indicator__label--ellipsis": t.ellipsis }])
|
|
175
|
-
},
|
|
174
|
+
}, B(s), 3)) : S("", !0)
|
|
176
175
|
], 2))), 128))
|
|
177
176
|
])
|
|
178
|
-
], 10,
|
|
177
|
+
], 10, D));
|
|
179
178
|
}
|
|
180
|
-
}),
|
|
179
|
+
}), J = /* @__PURE__ */ T(Y, [["__scopeId", "data-v-2523e4b1"]]);
|
|
181
180
|
export {
|
|
182
|
-
|
|
181
|
+
J as default
|
|
183
182
|
};
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { defineComponent as h, ref as u, toRefs as k, computed as $, watch as
|
|
2
|
-
import {
|
|
1
|
+
import { defineComponent as h, ref as u, toRefs as k, computed as $, watch as w, nextTick as S, 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 { I as _ } from "./icon-svg-DxlNo61Q.js";
|
|
3
3
|
import { _ as C } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
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
|
+
}, I = { class: "rds-e-info-box__wrapper" }, N = { 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
|
+
}, E = {
|
|
11
11
|
key: 0,
|
|
12
12
|
class: "rds-e-info-box__title rds-mb-03"
|
|
13
|
-
},
|
|
13
|
+
}, z = {
|
|
14
14
|
key: 2,
|
|
15
15
|
class: "rds-e-info-box__text"
|
|
16
|
-
},
|
|
16
|
+
}, D = {
|
|
17
17
|
key: 3,
|
|
18
18
|
class: "rds-e-info-box__content-section"
|
|
19
|
-
},
|
|
19
|
+
}, O = {
|
|
20
20
|
key: 0,
|
|
21
21
|
class: "rds-e-info-box__text"
|
|
22
|
-
},
|
|
22
|
+
}, R = {
|
|
23
23
|
key: 1,
|
|
24
24
|
class: "rds-e-info-box__content-section"
|
|
25
25
|
}, T = /* @__PURE__ */ h({
|
|
@@ -105,9 +105,9 @@ import './style/infoBox.css';const q = ["id"], B = { class: "alert" }, H = {
|
|
|
105
105
|
const n = d.value.scrollHeight;
|
|
106
106
|
c.value.style.maxHeight = i.value ? `${n}px` : "0px";
|
|
107
107
|
};
|
|
108
|
-
|
|
108
|
+
w(
|
|
109
109
|
() => i.value,
|
|
110
|
-
() =>
|
|
110
|
+
() => S(() => {
|
|
111
111
|
g();
|
|
112
112
|
}),
|
|
113
113
|
{ immediate: !0 }
|
|
@@ -128,23 +128,23 @@ import './style/infoBox.css';const q = ["id"], B = { class: "alert" }, H = {
|
|
|
128
128
|
"aria-hidden": "true"
|
|
129
129
|
}, null, 8, ["name"])
|
|
130
130
|
])) : s("", !0),
|
|
131
|
-
a("div",
|
|
132
|
-
a("div",
|
|
131
|
+
a("div", I, [
|
|
132
|
+
a("div", N, [
|
|
133
133
|
e.title && !e.collapsable ? (o(), t("div", V, r(e.title), 1)) : s("", !0),
|
|
134
134
|
e.collapsable ? (o(), t("div", {
|
|
135
135
|
key: 1,
|
|
136
136
|
class: "rds-e-info-box__collapsable rds-mb-03",
|
|
137
137
|
onClick: f[0] || (f[0] = () => p())
|
|
138
138
|
}, [
|
|
139
|
-
e.title ? (o(), t("div",
|
|
139
|
+
e.title ? (o(), t("div", E, r(e.title), 1)) : s("", !0),
|
|
140
140
|
b(_, {
|
|
141
141
|
name: "arrow_down",
|
|
142
142
|
class: m(["rds-e-info-box__custom-icon", { "rds-e-info-box__custom-icon--open": i.value }]),
|
|
143
143
|
"aria-hidden": "true"
|
|
144
144
|
}, null, 8, ["class"])
|
|
145
145
|
])) : s("", !0),
|
|
146
|
-
e.message && !e.collapsable && !n.$slots["content-section"] ? (o(), t("p",
|
|
147
|
-
n.$slots["content-section"] && !e.collapsable ? (o(), t("div",
|
|
146
|
+
e.message && !e.collapsable && !n.$slots["content-section"] ? (o(), t("p", z, r(e.message), 1)) : s("", !0),
|
|
147
|
+
n.$slots["content-section"] && !e.collapsable ? (o(), t("div", D, [
|
|
148
148
|
v(n.$slots, "content-section", {}, void 0, !0)
|
|
149
149
|
])) : s("", !0),
|
|
150
150
|
e.collapsable ? (o(), t("div", {
|
|
@@ -158,8 +158,8 @@ import './style/infoBox.css';const q = ["id"], B = { class: "alert" }, H = {
|
|
|
158
158
|
ref: d,
|
|
159
159
|
class: "rds-e-info-box__panel-content"
|
|
160
160
|
}, [
|
|
161
|
-
n.$slots["content-section"] ? s("", !0) : (o(), t("p",
|
|
162
|
-
n.$slots["content-section"] ? (o(), t("div",
|
|
161
|
+
n.$slots["content-section"] ? s("", !0) : (o(), t("p", O, r(e.message), 1)),
|
|
162
|
+
n.$slots["content-section"] ? (o(), t("div", R, [
|
|
163
163
|
v(n.$slots, "content-section", {}, void 0, !0)
|
|
164
164
|
])) : s("", !0)
|
|
165
165
|
], 512)
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { defineComponent as $, toRefs as M, computed as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
1
|
+
import { defineComponent as $, toRefs as M, computed as s, createBlock as f, openBlock as t, resolveDynamicComponent as O, unref as e, normalizeStyle as P, normalizeClass as p, withCtx as U, createCommentVNode as d, createElementBlock as B, mergeProps as _, renderSlot as I, createTextVNode as z, toDisplayString as j } from "vue";
|
|
2
|
+
import { s as q } from "./functions-D3GA3OzJ.js";
|
|
3
|
+
import { I as k } from "./icon-svg-DxlNo61Q.js";
|
|
4
|
+
import { _ as A } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
|
+
import './style/link.css';const F = /* @__PURE__ */ $({
|
|
5
6
|
__name: "link",
|
|
6
7
|
props: {
|
|
7
8
|
/**
|
|
@@ -97,97 +98,92 @@ import './style/link.css';const A = /* @__PURE__ */ $({
|
|
|
97
98
|
}
|
|
98
99
|
},
|
|
99
100
|
emits: ["click"],
|
|
100
|
-
setup(o, { emit:
|
|
101
|
-
const
|
|
102
|
-
text:
|
|
103
|
-
to:
|
|
104
|
-
icon:
|
|
101
|
+
setup(o, { emit: v }) {
|
|
102
|
+
const D = o, E = v, {
|
|
103
|
+
text: y,
|
|
104
|
+
to: w,
|
|
105
|
+
icon: a,
|
|
105
106
|
tag: u,
|
|
106
107
|
disabled: i,
|
|
107
|
-
inverse:
|
|
108
|
+
inverse: m,
|
|
108
109
|
arrow: c,
|
|
109
110
|
right: n,
|
|
110
|
-
underline:
|
|
111
|
-
customClass:
|
|
111
|
+
underline: g,
|
|
112
|
+
customClass: h,
|
|
112
113
|
color: l,
|
|
113
|
-
arrowSmall:
|
|
114
|
+
arrowSmall: b,
|
|
114
115
|
id: L
|
|
115
|
-
} = M(
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
const a = ["rds-e-arrow-link__icon--arrow"];
|
|
122
|
-
return r != null && r.value && (a.push("rds-e-arrow-link__icon"), i.value && a.push("rds-e-arrow-link__icon--disabled")), ((t = r == null ? void 0 : r.value) == null ? void 0 : t.name) !== "arrow" && _.value && a.push("rds-e-arrow-link__icon--inverse"), a.push(
|
|
116
|
+
} = M(D), N = s(() => l.value ? { color: l.value } : void 0), R = s(() => q(w.value)), T = s(() => {
|
|
117
|
+
const r = ["rds-e-link"];
|
|
118
|
+
return m.value && r.push("rds-e-link--inverse"), g.value && r.push("rds-e-link--underline"), i.value && r.push("rds-e-style-state-disabled"), a?.value?.name !== "arrow" && r.push("rds-e-arrow-link"), a?.value?.name !== "arrow" && m.value && r.push("rds-e-arrow-link__icon--inverse"), h.value === "rds-e-breadcrumbs__link--text" && r.push("rds-e-link__breadcrumbs"), r.join(" ");
|
|
119
|
+
}), x = s(() => {
|
|
120
|
+
const r = ["rds-e-arrow-link__icon--arrow"];
|
|
121
|
+
return a?.value && (r.push("rds-e-arrow-link__icon"), i.value && r.push("rds-e-arrow-link__icon--disabled")), a?.value?.name !== "arrow" && m.value && r.push("rds-e-arrow-link__icon--inverse"), r.push(
|
|
123
122
|
n.value ? "rds-e-arrow-link__icon--animation-right" : "rds-e-arrow-link__icon--animation-left"
|
|
124
|
-
),
|
|
125
|
-
}),
|
|
126
|
-
|
|
127
|
-
return c.value || ((a = r == null ? void 0 : r.value) == null ? void 0 : a.name);
|
|
128
|
-
});
|
|
129
|
-
return (a, t) => (s(), p(O(e(u) === "a" ? e(u) : "router-link"), {
|
|
123
|
+
), r.join(" ");
|
|
124
|
+
}), S = s(() => c.value || a?.value?.name);
|
|
125
|
+
return (r, C) => (t(), f(O(e(u) === "a" ? e(u) : "router-link"), {
|
|
130
126
|
id: e(L),
|
|
131
|
-
class:
|
|
132
|
-
to: e(u) === "router-link" ? e(
|
|
133
|
-
href: e(u) === "a" ?
|
|
127
|
+
class: p(T.value),
|
|
128
|
+
to: e(u) === "router-link" ? e(w) : null,
|
|
129
|
+
href: e(u) === "a" ? R.value : null,
|
|
134
130
|
disable: e(i),
|
|
135
131
|
style: P(N.value),
|
|
136
132
|
tabindex: e(i) ? -1 : void 0,
|
|
137
133
|
"aria-disabled": e(i),
|
|
138
|
-
onClick:
|
|
134
|
+
onClick: C[0] || (C[0] = (V) => E("click", V))
|
|
139
135
|
}, {
|
|
140
|
-
default:
|
|
141
|
-
e(
|
|
136
|
+
default: U(() => [
|
|
137
|
+
e(a).name && !e(n) && !e(c) ? (t(), f(k, _({
|
|
142
138
|
key: 0,
|
|
143
|
-
name: e(
|
|
139
|
+
name: e(a).name
|
|
144
140
|
}, {
|
|
145
|
-
...e(
|
|
141
|
+
...e(a)
|
|
146
142
|
}, {
|
|
147
|
-
class: ["rds-e-link__icon-left",
|
|
143
|
+
class: ["rds-e-link__icon-left", x.value],
|
|
148
144
|
style: e(l) ? { color: e(l) } : void 0
|
|
149
145
|
}), null, 16, ["name", "class", "style"])) : d("", !0),
|
|
150
|
-
e(n) ? (
|
|
146
|
+
e(n) ? (t(), B("span", {
|
|
151
147
|
key: 1,
|
|
152
|
-
class:
|
|
153
|
-
"rds-e-mr-xs":
|
|
154
|
-
"rds-e-link__text--underline": e(
|
|
148
|
+
class: p(["rds-e-link__text", [e(h), {
|
|
149
|
+
"rds-e-mr-xs": S.value,
|
|
150
|
+
"rds-e-link__text--underline": e(g)
|
|
155
151
|
}]])
|
|
156
152
|
}, [
|
|
157
|
-
|
|
158
|
-
|
|
153
|
+
I(r.$slots, "default", {}, () => [
|
|
154
|
+
z(j(e(y)), 1)
|
|
159
155
|
], !0)
|
|
160
156
|
], 2)) : d("", !0),
|
|
161
|
-
e(c) ? (
|
|
157
|
+
e(c) ? (t(), f(k, _({ key: 2 }, {
|
|
162
158
|
name: e(n) ? "arrow_right" : "arrow_left",
|
|
163
|
-
size: e(
|
|
159
|
+
size: e(b) ? 16 : void 0
|
|
164
160
|
}, {
|
|
165
161
|
class: ["rds-e-arrow-link__icon--arrow", [
|
|
166
162
|
e(n) ? "rds-e-arrow-link__icon--animation-right" : "rds-e-arrow-link__icon--animation-left",
|
|
167
|
-
{ "rds-flex rds-flex-center-center": e(
|
|
163
|
+
{ "rds-flex rds-flex-center-center": e(b) }
|
|
168
164
|
]],
|
|
169
165
|
style: e(l) ? { color: e(l) } : void 0
|
|
170
166
|
}), null, 16, ["class", "style"])) : d("", !0),
|
|
171
|
-
e(n) ? d("", !0) : (
|
|
167
|
+
e(n) ? d("", !0) : (t(), B("span", {
|
|
172
168
|
key: 3,
|
|
173
|
-
class:
|
|
169
|
+
class: p(["rds-e-link__text", { "rds-e-ml-xs": S.value }])
|
|
174
170
|
}, [
|
|
175
|
-
|
|
176
|
-
|
|
171
|
+
I(r.$slots, "default", {}, () => [
|
|
172
|
+
z(j(e(y)), 1)
|
|
177
173
|
], !0)
|
|
178
174
|
], 2)),
|
|
179
|
-
e(
|
|
175
|
+
e(a).name && e(n) && !e(c) ? (t(), f(k, _({
|
|
180
176
|
key: 4,
|
|
181
|
-
name: e(
|
|
182
|
-
}, e(
|
|
183
|
-
class: ["rds-e-link__icon-right",
|
|
177
|
+
name: e(a).name
|
|
178
|
+
}, e(a), {
|
|
179
|
+
class: ["rds-e-link__icon-right", x.value],
|
|
184
180
|
style: e(l) ? { color: e(l) } : void 0
|
|
185
181
|
}), null, 16, ["name", "class", "style"])) : d("", !0)
|
|
186
182
|
]),
|
|
187
183
|
_: 3
|
|
188
184
|
}, 8, ["id", "class", "to", "href", "disable", "style", "tabindex", "aria-disabled"]));
|
|
189
185
|
}
|
|
190
|
-
}),
|
|
186
|
+
}), Q = /* @__PURE__ */ A(F, [["__scopeId", "data-v-794c0d15"]]);
|
|
191
187
|
export {
|
|
192
|
-
|
|
188
|
+
Q as default
|
|
193
189
|
};
|