energy-components 1.18.0 → 1.19.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/dist/components/breadcrumbs.es.js +32 -29
- package/dist/components/datepicker.es.js +1642 -1638
- package/dist/components/{floating-ui.vue-7LKzPqHI.js → floating-ui.vue-DWAG1g94.js} +3 -3
- package/dist/components/link.es.js +51 -49
- package/dist/components/popover.es.js +47 -47
- package/dist/components/sidebar.es.js +143 -59
- package/dist/components/style/breadcrumbs.css +1 -1
- package/dist/components/style/datepicker.css +1 -1
- package/dist/components/style/link.css +1 -1
- package/dist/components/style/overlay.css +1 -1
- package/dist/components/style/popover.css +1 -1
- package/dist/components/style/sidebar.css +1 -1
- package/dist/components/style/textField.css +1 -1
- package/dist/components/style/tooltip.css +1 -1
- package/dist/components/textField.es.js +28 -26
- package/dist/components/tooltip.es.js +135 -84
- package/dist/energy-components.es.js +4689 -4543
- package/dist/energy-components.umd.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/src/components/input/text-field/text-field.vue.d.ts +2 -0
- package/dist/types/src/components/layout/sidebar/sidebar.vue.d.ts +128 -3
- package/dist/types/src/components/navigation/breadcrumbs/breadcrumbs.vue.d.ts +18 -0
- package/dist/types/src/components/navigation/link/link.vue.d.ts +10 -6
- package/dist/types/src/components/overlay/popover/popover.vue.d.ts +2 -2
- package/dist/types/src/components/overlay/tooltip/tooltip.vue.d.ts +47 -2
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as C, toRefs as h, ref as y, watchEffect as I, onMounted as L, createElementBlock as u, openBlock as d, Fragment as T, renderList as w, normalizeClass as x, unref as B, createVNode as E, mergeProps as j, toHandlers as P, withCtx as S, createCommentVNode as D } from "vue";
|
|
2
2
|
import N from "./link.es.js";
|
|
3
3
|
import { _ as O } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
|
-
import './style/breadcrumbs.css';const R = ["id"], V = { key: 0 },
|
|
4
|
+
import './style/breadcrumbs.css';const R = ["id"], V = { key: 0 }, q = /* @__PURE__ */ C({
|
|
5
5
|
__name: "breadcrumbs",
|
|
6
6
|
props: {
|
|
7
7
|
/**
|
|
@@ -40,15 +40,15 @@ import './style/breadcrumbs.css';const R = ["id"], V = { key: 0 }, $ = /* @__PUR
|
|
|
40
40
|
default: void 0
|
|
41
41
|
}
|
|
42
42
|
},
|
|
43
|
-
emits: ["onClickTrimmedList"],
|
|
44
|
-
setup(
|
|
45
|
-
const s =
|
|
43
|
+
emits: ["onClickTrimmedList", "onClickItem", "onClickEllipsis"],
|
|
44
|
+
setup(c, { emit: m }) {
|
|
45
|
+
const s = c, n = m, {
|
|
46
46
|
items: r,
|
|
47
|
-
inverse:
|
|
48
|
-
} =
|
|
49
|
-
s.leftTrim ?
|
|
47
|
+
inverse: i
|
|
48
|
+
} = h(s), a = y(), v = () => {
|
|
49
|
+
s.leftTrim ? n("onClickTrimmedList", r.value.slice(0, -2)) : n("onClickTrimmedList", r.value.slice(1, -1));
|
|
50
50
|
}, p = () => {
|
|
51
|
-
|
|
51
|
+
a.value = [
|
|
52
52
|
r.value[0],
|
|
53
53
|
{
|
|
54
54
|
text: "...",
|
|
@@ -59,8 +59,8 @@ import './style/breadcrumbs.css';const R = ["id"], V = { key: 0 }, $ = /* @__PUR
|
|
|
59
59
|
},
|
|
60
60
|
r.value[r.value.length - 1]
|
|
61
61
|
];
|
|
62
|
-
},
|
|
63
|
-
|
|
62
|
+
}, k = () => {
|
|
63
|
+
a.value = [
|
|
64
64
|
{
|
|
65
65
|
text: "...",
|
|
66
66
|
active: !1,
|
|
@@ -72,47 +72,50 @@ import './style/breadcrumbs.css';const R = ["id"], V = { key: 0 }, $ = /* @__PUR
|
|
|
72
72
|
r.value[r.value.length - 1]
|
|
73
73
|
];
|
|
74
74
|
}, f = () => {
|
|
75
|
-
s.trimItems && r.value.length >= 3 ? p() : s.leftTrim && r.value.length >= 3 ?
|
|
76
|
-
},
|
|
75
|
+
s.trimItems && r.value.length >= 3 ? p() : s.leftTrim && r.value.length >= 3 ? k() : typeof s.items == "object" ? a.value = s.items : console.error("energy-components: The prop is not an Object");
|
|
76
|
+
}, b = (e, o) => {
|
|
77
77
|
const t = {
|
|
78
78
|
...e,
|
|
79
|
-
inverse:
|
|
79
|
+
inverse: i.value,
|
|
80
80
|
customClass: "rds-e-breadcrumbs__link--text"
|
|
81
81
|
};
|
|
82
|
-
return o !==
|
|
82
|
+
return o !== a.value.length - 1 && Object.assign(t, {
|
|
83
83
|
arrow: !0,
|
|
84
84
|
right: !0,
|
|
85
85
|
arrowSmall: !0
|
|
86
86
|
}), t;
|
|
87
|
-
}, _ = (e) => ({
|
|
87
|
+
}, _ = (e, o) => ({
|
|
88
88
|
click: (t) => {
|
|
89
|
-
|
|
89
|
+
if (n("onClickItem", { item: e, index: o ?? -1, event: t }), e != null && e.clickable) {
|
|
90
|
+
const l = s.leftTrim ? r.value.slice(0, -2) : r.value.slice(1, -1);
|
|
91
|
+
n("onClickEllipsis", { trimmed: l, event: t }), v(), t.preventDefault(), t.stopPropagation();
|
|
92
|
+
}
|
|
90
93
|
}
|
|
91
94
|
}), g = (e) => [
|
|
92
95
|
"rds-e-breadcrumbs__link",
|
|
93
96
|
e != null && e.active ? "rds-e-breadcrumbs__link--active" : "",
|
|
94
|
-
|
|
97
|
+
i.value && (e != null && e.active) ? "rds-e-breadcrumbs__link--inverse-active" : ""
|
|
95
98
|
];
|
|
96
|
-
return
|
|
99
|
+
return I(() => {
|
|
97
100
|
f();
|
|
98
|
-
}),
|
|
101
|
+
}), L(() => {
|
|
99
102
|
f();
|
|
100
|
-
}), (e, o) => (
|
|
101
|
-
id:
|
|
102
|
-
key:
|
|
103
|
-
class: x(["rds-e-breadcrumbs", `${B(
|
|
103
|
+
}), (e, o) => (d(!0), u(T, null, w(a.value, (t, l) => (d(), u("ul", {
|
|
104
|
+
id: c.id ? `${c.id}-${l}` : void 0,
|
|
105
|
+
key: l,
|
|
106
|
+
class: x(["rds-e-breadcrumbs", `${B(i) ? "rds-e-breadcrumbs--inverse" : ""}`])
|
|
104
107
|
}, [
|
|
105
|
-
|
|
108
|
+
E(N, j({
|
|
106
109
|
class: g(t)
|
|
107
|
-
}, { ref_for: !0 },
|
|
110
|
+
}, { ref_for: !0 }, b(t, l), P(_(t, l))), {
|
|
108
111
|
default: S(() => [
|
|
109
|
-
t != null && t.clickable ? (
|
|
112
|
+
t != null && t.clickable ? (d(), u("span", V, "...")) : D("", !0)
|
|
110
113
|
]),
|
|
111
114
|
_: 2
|
|
112
115
|
}, 1040, ["class"])
|
|
113
116
|
], 10, R))), 128));
|
|
114
117
|
}
|
|
115
|
-
}),
|
|
118
|
+
}), H = /* @__PURE__ */ O(q, [["__scopeId", "data-v-1a87a370"]]);
|
|
116
119
|
export {
|
|
117
|
-
|
|
120
|
+
H as default
|
|
118
121
|
};
|