energy-components 1.3.0 → 1.4.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 +11 -11
- package/dist/components/checkbox.es.js +7 -7
- package/dist/components/datepicker.es.js +1403 -1382
- package/dist/components/dropdown.es.js +11 -11
- package/dist/components/{icon-svg-GoL3_ayS.js → icon-svg-u9BWBbvW.js} +1 -1
- package/dist/components/iconList.es.js +5 -5
- package/dist/components/iconSvg.es.js +1 -1
- package/dist/components/index.es.js +59 -56
- package/dist/components/infoBox.es.js +8 -8
- package/dist/components/link.es.js +15 -15
- package/dist/components/modal.es.js +12 -12
- package/dist/components/persistentToast.es.js +5 -5
- 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 +85 -0
- package/dist/components/style/datepicker.css +1 -1
- package/dist/components/style/overlay.css +1 -1
- package/dist/components/style/sidedrawer.css +1 -0
- package/dist/components/style/switch.css +1 -1
- package/dist/components/style/textField.css +1 -1
- package/dist/components/switch.es.js +40 -36
- package/dist/components/tabBar.es.js +12 -12
- package/dist/components/tag.es.js +5 -5
- package/dist/components/textArea.es.js +22 -22
- package/dist/components/textField.es.js +86 -74
- package/dist/components/tooltip.es.js +61 -61
- package/dist/energy-components.es.js +4464 -4347
- package/dist/energy-components.umd.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/src/components/index.d.ts +1 -0
- package/dist/types/src/components/input/switch/switch.vue.d.ts +12 -3
- package/dist/types/src/components/input/text-field/text-field.vue.d.ts +8 -0
- package/dist/types/src/components/layout/sidedrawer/sidedrawer.vue.d.ts +75 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
1
|
+
import { defineComponent as R, toRefs as B, ref as l, watch as D, nextTick as N, inject as _, onMounted as V, onBeforeUnmount as q, openBlock as v, createElementBlock as w, createElementVNode as n, toDisplayString as h, unref as d, createBlock as H, mergeProps as P, createCommentVNode as T, createVNode as j, normalizeClass as y, renderSlot as A, createTextVNode as E } from "vue";
|
|
2
|
+
import { R as I } from "./icon-svg-u9BWBbvW.js";
|
|
3
3
|
import O from "./tag.es.js";
|
|
4
4
|
import { _ as $ } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
|
-
import './style/accordion.css';const b = { class: "rds-e-accordion" }, z = { class: "rds-e-accordion-title" }, M = { class: "rds-e-accordion-title_right" }, U = /* @__PURE__ */
|
|
5
|
+
import './style/accordion.css';const b = { class: "rds-e-accordion" }, z = { class: "rds-e-accordion-title" }, M = { class: "rds-e-accordion-title_right" }, U = /* @__PURE__ */ R({
|
|
6
6
|
__name: "accordion",
|
|
7
7
|
props: {
|
|
8
8
|
/**
|
|
@@ -43,21 +43,21 @@ import './style/accordion.css';const b = { class: "rds-e-accordion" }, z = { cla
|
|
|
43
43
|
}
|
|
44
44
|
},
|
|
45
45
|
emits: ["update:open"],
|
|
46
|
-
setup(c, { expose: C, emit:
|
|
47
|
-
const o = c,
|
|
46
|
+
setup(c, { expose: C, emit: S }) {
|
|
47
|
+
const o = c, k = S, { tag: a } = B(o), t = l(o.open), i = l(null), s = l(null), x = () => {
|
|
48
48
|
if (!i.value || !s.value) return;
|
|
49
49
|
const e = s.value.scrollHeight;
|
|
50
50
|
i.value.style.maxHeight = t.value ? `${e}px` : "0px";
|
|
51
51
|
}, r = (e) => {
|
|
52
|
-
e === void 0 ? t.value = !t.value : t.value = e,
|
|
52
|
+
e === void 0 ? t.value = !t.value : t.value = e, k("update:open", t.value), x();
|
|
53
53
|
}, u = () => {
|
|
54
54
|
r(!0);
|
|
55
55
|
}, p = () => {
|
|
56
56
|
r(!1);
|
|
57
57
|
};
|
|
58
|
-
|
|
58
|
+
D(
|
|
59
59
|
() => o.open,
|
|
60
|
-
(e) =>
|
|
60
|
+
(e) => N(() => {
|
|
61
61
|
r(e);
|
|
62
62
|
}),
|
|
63
63
|
{ immediate: !0 }
|
|
@@ -87,11 +87,11 @@ import './style/accordion.css';const b = { class: "rds-e-accordion" }, z = { cla
|
|
|
87
87
|
}, [
|
|
88
88
|
n("span", z, h(c.title), 1),
|
|
89
89
|
n("div", M, [
|
|
90
|
-
d(a) && d(a).icon ? (v(), H(O,
|
|
90
|
+
d(a) && d(a).icon ? (v(), H(O, P({
|
|
91
91
|
key: 0,
|
|
92
92
|
class: "rds-e-accordion-title_tag"
|
|
93
|
-
}, d(a), { small: "" }), null, 16)) :
|
|
94
|
-
|
|
93
|
+
}, d(a), { small: "" }), null, 16)) : T("", !0),
|
|
94
|
+
j(I, {
|
|
95
95
|
class: y(["rds-e-accordion-title_icon", { "rds-e-accordion-title_icon--open": t.value }]),
|
|
96
96
|
name: "arrow_down"
|
|
97
97
|
}, null, 8, ["class"])
|
|
@@ -107,8 +107,8 @@ import './style/accordion.css';const b = { class: "rds-e-accordion" }, z = { cla
|
|
|
107
107
|
ref: s,
|
|
108
108
|
class: "rds-e-accordion-panel_content"
|
|
109
109
|
}, [
|
|
110
|
-
|
|
111
|
-
|
|
110
|
+
A(e.$slots, "default", {}, () => [
|
|
111
|
+
E(h(c.content), 1)
|
|
112
112
|
], !0)
|
|
113
113
|
], 512)
|
|
114
114
|
], 2)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as B, toRefs as
|
|
2
|
-
import {
|
|
3
|
-
import { _ as
|
|
4
|
-
import './style/button.css';const
|
|
1
|
+
import { defineComponent as B, toRefs as S, computed as l, openBlock as v, createElementBlock as x, unref as s, normalizeClass as m, createBlock as I, createCommentVNode as k, createElementVNode as $, renderSlot as C, createTextVNode as N, toDisplayString as R } from "vue";
|
|
2
|
+
import { R as V } from "./icon-svg-u9BWBbvW.js";
|
|
3
|
+
import { _ as D } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
|
+
import './style/button.css';const E = ["type", "disabled"], L = { class: "rds-e-btn__text" }, w = /* @__PURE__ */ B({
|
|
5
5
|
__name: "button",
|
|
6
6
|
props: {
|
|
7
7
|
/**
|
|
@@ -109,18 +109,18 @@ import './style/button.css';const w = ["type", "disabled"], D = { class: "rds-e-
|
|
|
109
109
|
inverse: d,
|
|
110
110
|
revertIcon: _,
|
|
111
111
|
loading: p
|
|
112
|
-
} =
|
|
112
|
+
} = S(t), c = l(() => p.value ? "loading" : n != null && n.value ? n == null ? void 0 : n.value : ""), h = l(() => r.value && ["button", "submit", "reset"].includes(r.value) ? r.value : "button"), b = l(() => ["primary", "secondary", "ghost"].includes(i.value) ? i.value : "primary"), g = l(() => {
|
|
113
113
|
const a = ["rds-e-btn"];
|
|
114
114
|
return i.value && a.push(`rds-e-btn--${b.value}`), d.value && a.push(`rds-e-btn--${b.value}-inverse`), c.value && a.push(
|
|
115
115
|
o != null && o.value ? "rds-e-btn--with-icon" : "rds-e-btn--icon"
|
|
116
116
|
), f.value && a.push("rds-e-btn--small"), _.value && a.push("rds-e-btn--revert"), u.value && a.push("rds-e-style-state-disabled"), p.value && a.push("rds-e-btn--loading"), y.value && a.push("rds-e-btn--mobile-width"), a.join(" ");
|
|
117
117
|
});
|
|
118
|
-
return (a, W) => (v(),
|
|
118
|
+
return (a, W) => (v(), x("button", {
|
|
119
119
|
type: h.value,
|
|
120
120
|
disabled: s(u),
|
|
121
121
|
class: m(g.value)
|
|
122
122
|
}, [
|
|
123
|
-
c.value ? (v(),
|
|
123
|
+
c.value ? (v(), I(V, {
|
|
124
124
|
key: 0,
|
|
125
125
|
name: c.value,
|
|
126
126
|
small: s(f),
|
|
@@ -130,14 +130,14 @@ import './style/button.css';const w = ["type", "disabled"], D = { class: "rds-e-
|
|
|
130
130
|
]]),
|
|
131
131
|
"aria-hidden": "true"
|
|
132
132
|
}, null, 8, ["name", "small", "class"])) : k("", !0),
|
|
133
|
-
$("span",
|
|
133
|
+
$("span", L, [
|
|
134
134
|
C(a.$slots, "default", {}, () => [
|
|
135
|
-
N(
|
|
135
|
+
N(R(s(o)), 1)
|
|
136
136
|
], !0)
|
|
137
137
|
])
|
|
138
|
-
], 10,
|
|
138
|
+
], 10, E));
|
|
139
139
|
}
|
|
140
|
-
}), T = /* @__PURE__ */
|
|
140
|
+
}), T = /* @__PURE__ */ D(w, [["__scopeId", "data-v-a17b5b56"]]);
|
|
141
141
|
export {
|
|
142
142
|
T as default
|
|
143
143
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as x, ref as d, watch as v, onMounted as y, onBeforeUnmount as w, openBlock as b, createElementBlock as g, normalizeClass as o, createElementVNode as n, renderSlot as S, createTextVNode as B, toDisplayString as C, createBlock as E, createCommentVNode as L } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { R as V } from "./icon-svg-u9BWBbvW.js";
|
|
3
3
|
import { _ } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
|
-
import './style/checkbox.css';const
|
|
4
|
+
import './style/checkbox.css';const D = ["id", "checked", "aria-label", "required", "disabled"], N = ["for"], q = /* @__PURE__ */ x({
|
|
5
5
|
__name: "checkbox",
|
|
6
6
|
props: {
|
|
7
7
|
/**
|
|
@@ -80,7 +80,7 @@ import './style/checkbox.css';const N = ["id", "checked", "aria-label", "require
|
|
|
80
80
|
window.addEventListener("keydown", r), window.addEventListener("mousedown", i);
|
|
81
81
|
}), w(() => {
|
|
82
82
|
window.removeEventListener("keydown", r), window.removeEventListener("mousedown", i);
|
|
83
|
-
}), (a,
|
|
83
|
+
}), (a, R) => (b(), g("div", {
|
|
84
84
|
class: o(["rds-e-checkbox__container", { "rds-e-checkbox__container--focused": l.value }])
|
|
85
85
|
}, [
|
|
86
86
|
n("input", {
|
|
@@ -94,7 +94,7 @@ import './style/checkbox.css';const N = ["id", "checked", "aria-label", "require
|
|
|
94
94
|
onChange: m,
|
|
95
95
|
onFocus: h,
|
|
96
96
|
onBlur: k
|
|
97
|
-
}, null, 42,
|
|
97
|
+
}, null, 42, D),
|
|
98
98
|
n("label", {
|
|
99
99
|
for: e.id.toString(),
|
|
100
100
|
class: o(["rds-e-checkbox__label", {
|
|
@@ -121,10 +121,10 @@ import './style/checkbox.css';const N = ["id", "checked", "aria-label", "require
|
|
|
121
121
|
}, null, 8, ["name"])) : L("", !0)
|
|
122
122
|
], 2)
|
|
123
123
|
], !0)
|
|
124
|
-
], 10,
|
|
124
|
+
], 10, N)
|
|
125
125
|
], 2));
|
|
126
126
|
}
|
|
127
|
-
}),
|
|
127
|
+
}), K = /* @__PURE__ */ _(q, [["__scopeId", "data-v-6beff478"]]);
|
|
128
128
|
export {
|
|
129
|
-
|
|
129
|
+
K as default
|
|
130
130
|
};
|