energy-components 1.13.0 → 1.14.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 +59 -40
- package/dist/components/dropdown.es.js +201 -152
- package/dist/components/indicator.es.js +8 -8
- package/dist/components/multiselect.es.js +15 -11
- package/dist/components/style/accordion.css +1 -1
- package/dist/components/style/actionButton.css +1 -1
- package/dist/components/style/breadcrumbs.css +1 -1
- package/dist/components/style/button.css +1 -1
- package/dist/components/style/checkbox.css +1 -1
- package/dist/components/style/collapsable.css +1 -1
- package/dist/components/style/directAccess.css +1 -1
- package/dist/components/style/dragAndDrop.css +1 -1
- package/dist/components/style/dropdown.css +1 -1
- package/dist/components/style/filterChip.css +1 -1
- package/dist/components/style/filterTag.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/multiselect.css +1 -1
- package/dist/components/style/persistentToast.css +1 -1
- package/dist/components/style/progressBar.css +1 -1
- package/dist/components/style/quantitySelector.css +1 -1
- package/dist/components/style/radioButton.css +1 -1
- package/dist/components/style/selectionChip.css +1 -1
- package/dist/components/style/switch.css +1 -1
- package/dist/components/style/tableslotedcomponent.css +1 -1
- package/dist/components/style/tag.css +1 -1
- package/dist/components/style/textArea.css +1 -1
- package/dist/components/style/textField.css +1 -1
- package/dist/components/style/tooltip.css +1 -1
- package/dist/components/tooltip.es.js +344 -325
- package/dist/energy-components.es.js +4874 -4783
- package/dist/energy-components.umd.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/src/components/input/dropdown/dropdown.vue.d.ts +58 -13
- package/dist/types/src/components/navigation/breadcrumbs/breadcrumbs.vue.d.ts +15 -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,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import { _ as
|
|
4
|
-
import './style/breadcrumbs.css';const
|
|
1
|
+
import { defineComponent as h, toRefs as C, ref as y, watchEffect as L, onMounted as T, createElementBlock as o, openBlock as c, Fragment as I, renderList as x, normalizeClass as w, unref as B, createVNode as j, mergeProps as E, toHandlers as P, withCtx as D, createCommentVNode as N } from "vue";
|
|
2
|
+
import O from "./link.es.js";
|
|
3
|
+
import { _ as R } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
|
+
import './style/breadcrumbs.css';const S = { key: 0 }, V = /* @__PURE__ */ h({
|
|
5
5
|
__name: "breadcrumbs",
|
|
6
6
|
props: {
|
|
7
7
|
/**
|
|
@@ -24,18 +24,36 @@ import './style/breadcrumbs.css';const R = { key: 0 }, S = /* @__PURE__ */ g({
|
|
|
24
24
|
trimItems: {
|
|
25
25
|
type: Boolean,
|
|
26
26
|
default: !1
|
|
27
|
+
},
|
|
28
|
+
/**
|
|
29
|
+
* <span>Indica si el breadcrumb debe ser recortado por la izquierda, mostrando solo los dos últimos niveles.</span>
|
|
30
|
+
*/
|
|
31
|
+
leftTrim: {
|
|
32
|
+
type: Boolean,
|
|
33
|
+
default: !1
|
|
27
34
|
}
|
|
28
35
|
},
|
|
29
36
|
emits: ["onClickTrimmedList"],
|
|
30
|
-
setup(
|
|
31
|
-
const
|
|
32
|
-
items:
|
|
33
|
-
inverse:
|
|
34
|
-
} =
|
|
35
|
-
|
|
36
|
-
},
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
setup(v, { emit: m }) {
|
|
38
|
+
const s = v, u = m, {
|
|
39
|
+
items: r,
|
|
40
|
+
inverse: l
|
|
41
|
+
} = C(s), a = y(), d = () => {
|
|
42
|
+
s.leftTrim ? u("onClickTrimmedList", r.value.slice(0, -2)) : u("onClickTrimmedList", r.value.slice(1, -1));
|
|
43
|
+
}, p = () => {
|
|
44
|
+
a.value = [
|
|
45
|
+
r.value[0],
|
|
46
|
+
{
|
|
47
|
+
text: "...",
|
|
48
|
+
active: !1,
|
|
49
|
+
tag: "router-link",
|
|
50
|
+
to: "",
|
|
51
|
+
clickable: !0
|
|
52
|
+
},
|
|
53
|
+
r.value[r.value.length - 1]
|
|
54
|
+
];
|
|
55
|
+
}, b = () => {
|
|
56
|
+
a.value = [
|
|
39
57
|
{
|
|
40
58
|
text: "...",
|
|
41
59
|
active: !1,
|
|
@@ -43,49 +61,50 @@ import './style/breadcrumbs.css';const R = { key: 0 }, S = /* @__PURE__ */ g({
|
|
|
43
61
|
to: "",
|
|
44
62
|
clickable: !0
|
|
45
63
|
},
|
|
46
|
-
|
|
64
|
+
r.value[r.value.length - 2],
|
|
65
|
+
r.value[r.value.length - 1]
|
|
47
66
|
];
|
|
48
|
-
},
|
|
49
|
-
|
|
50
|
-
},
|
|
51
|
-
const
|
|
67
|
+
}, i = () => {
|
|
68
|
+
s.trimItems && r.value.length >= 3 ? p() : s.leftTrim && r.value.length >= 3 ? b() : typeof s.items == "object" ? a.value = s.items : console.error("energy-components: The prop is not an Object");
|
|
69
|
+
}, k = (e, n) => {
|
|
70
|
+
const t = {
|
|
52
71
|
...e,
|
|
53
|
-
inverse:
|
|
72
|
+
inverse: l.value,
|
|
54
73
|
customClass: "rds-e-breadcrumbs__link--text"
|
|
55
74
|
};
|
|
56
|
-
return
|
|
75
|
+
return n !== a.value.length - 1 && Object.assign(t, {
|
|
57
76
|
arrow: !0,
|
|
58
77
|
right: !0,
|
|
59
78
|
arrowSmall: !0
|
|
60
|
-
}),
|
|
61
|
-
},
|
|
62
|
-
click: (
|
|
63
|
-
|
|
79
|
+
}), t;
|
|
80
|
+
}, _ = (e) => ({
|
|
81
|
+
click: (t) => {
|
|
82
|
+
t.preventDefault(), t.stopPropagation(), e != null && e.clickable && d();
|
|
64
83
|
}
|
|
65
|
-
}),
|
|
84
|
+
}), g = (e) => [
|
|
66
85
|
"rds-e-breadcrumbs__link",
|
|
67
86
|
e != null && e.active ? "rds-e-breadcrumbs__link--active" : "",
|
|
68
|
-
|
|
87
|
+
l.value && (e != null && e.active) ? "rds-e-breadcrumbs__link--inverse-active" : ""
|
|
69
88
|
];
|
|
70
|
-
return
|
|
71
|
-
|
|
72
|
-
}),
|
|
73
|
-
|
|
74
|
-
}), (e,
|
|
75
|
-
key:
|
|
76
|
-
class:
|
|
89
|
+
return L(() => {
|
|
90
|
+
i();
|
|
91
|
+
}), T(() => {
|
|
92
|
+
i();
|
|
93
|
+
}), (e, n) => (c(!0), o(I, null, x(a.value, (t, f) => (c(), o("ul", {
|
|
94
|
+
key: f,
|
|
95
|
+
class: w(["rds-e-breadcrumbs", `${B(l) ? "rds-e-breadcrumbs--inverse" : ""}`])
|
|
77
96
|
}, [
|
|
78
|
-
j(
|
|
79
|
-
class:
|
|
80
|
-
}, { ref_for: !0 },
|
|
81
|
-
default:
|
|
82
|
-
|
|
97
|
+
j(O, E({
|
|
98
|
+
class: g(t)
|
|
99
|
+
}, { ref_for: !0 }, k(t, f), P(_(t))), {
|
|
100
|
+
default: D(() => [
|
|
101
|
+
t != null && t.clickable ? (c(), o("span", S, "...")) : N("", !0)
|
|
83
102
|
]),
|
|
84
103
|
_: 2
|
|
85
104
|
}, 1040, ["class"])
|
|
86
105
|
], 2))), 128));
|
|
87
106
|
}
|
|
88
|
-
}),
|
|
107
|
+
}), F = /* @__PURE__ */ R(V, [["__scopeId", "data-v-ea69b47a"]]);
|
|
89
108
|
export {
|
|
90
|
-
|
|
109
|
+
F as default
|
|
91
110
|
};
|