comand-component-library 3.3.69 → 3.3.71
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/comand-component-library.js +46 -43
- package/dist/comand-component-library.umd.cjs +2 -2
- package/dist/style.css +1 -1
- package/package.json +3 -3
- package/src/App.vue +1 -1
- package/src/assets/styles/global-styles.scss +9 -1
- package/src/components/CmdBackToTopButton.vue +4 -0
- package/src/components/CmdCompanyLogo.vue +8 -8
- package/src/components/CmdHeadline.vue +1 -1
- package/src/components/CmdThumbnailScroller.vue +83 -74
- package/src/components/CmdToggleDarkMode.vue +7 -5
@@ -1945,48 +1945,50 @@ function Tl(e, i, t, a, n, s) {
|
|
1945
1945
|
class: _(["cmd-thumbnail-scroller", { "gallery-scroller": !t.allowOpenFancyBox, "full-width": t.fullWidth, "large-icons": t.largeIcons }]),
|
1946
1946
|
ref: "thumbnail-scroller"
|
1947
1947
|
}, [
|
1948
|
-
|
1949
|
-
|
1950
|
-
|
1951
|
-
|
1952
|
-
|
1953
|
-
|
1954
|
-
|
1955
|
-
|
1956
|
-
|
1957
|
-
|
1958
|
-
|
1959
|
-
|
1960
|
-
|
1961
|
-
|
1962
|
-
h("a", {
|
1963
|
-
href: t.executeOnClick === "url" ? c.url : "#",
|
1964
|
-
onClick: (p) => s.executeLink(f, p),
|
1965
|
-
title: s.getTooltip,
|
1966
|
-
target: t.executeOnClick === "url" ? "_blank" : null
|
1948
|
+
h("div", null, [
|
1949
|
+
n.showSlidebuttons ? (l(), C(u, {
|
1950
|
+
key: 0,
|
1951
|
+
onClick: T(s.showPrevItem, ["prevent"]),
|
1952
|
+
slideButtonType: "prev"
|
1953
|
+
}, null, 8, ["onClick"])) : d("", !0),
|
1954
|
+
x(ft, {
|
1955
|
+
name: "slide",
|
1956
|
+
tag: "ul"
|
1957
|
+
}, {
|
1958
|
+
default: j(() => [
|
1959
|
+
(l(!0), o(b, null, B(n.items, (c, f) => (l(), o("li", {
|
1960
|
+
key: f,
|
1961
|
+
class: _([{ active: t.activeItemIndex === f }, c.id ? "item-" + c.id : ""])
|
1967
1962
|
}, [
|
1968
|
-
|
1969
|
-
|
1970
|
-
|
1971
|
-
|
1972
|
-
|
1973
|
-
|
1963
|
+
h("a", {
|
1964
|
+
href: t.executeOnClick === "url" ? c.url : "#",
|
1965
|
+
onClick: (p) => s.executeLink(f, p),
|
1966
|
+
title: s.getTooltip,
|
1967
|
+
target: t.executeOnClick === "url" ? "_blank" : null
|
1968
|
+
}, [
|
1969
|
+
t.contentType === "image" ? (l(), C(m, {
|
1974
1970
|
key: 0,
|
1975
|
-
|
1976
|
-
|
1977
|
-
}, null, 8, ["
|
1978
|
-
|
1979
|
-
|
1980
|
-
|
1981
|
-
|
1982
|
-
|
1983
|
-
|
1984
|
-
|
1985
|
-
|
1986
|
-
|
1987
|
-
|
1988
|
-
|
1989
|
-
|
1971
|
+
image: c.image,
|
1972
|
+
figcaption: c.figcaption
|
1973
|
+
}, null, 8, ["image", "figcaption"])) : (l(), o(b, { key: 1 }, [
|
1974
|
+
c.iconClass ? (l(), C(r, {
|
1975
|
+
key: 0,
|
1976
|
+
iconClass: c.iconClass,
|
1977
|
+
type: c.iconType
|
1978
|
+
}, null, 8, ["iconClass", "type"])) : d("", !0),
|
1979
|
+
c.text ? (l(), o("span", Sl, g(c.text), 1)) : d("", !0)
|
1980
|
+
], 64))
|
1981
|
+
], 8, xl)
|
1982
|
+
], 2))), 128))
|
1983
|
+
]),
|
1984
|
+
_: 1
|
1985
|
+
}),
|
1986
|
+
n.showSlidebuttons ? (l(), C(u, {
|
1987
|
+
key: 1,
|
1988
|
+
onClick: T(s.showNextItem, ["prevent"]),
|
1989
|
+
slideButtons: t.cmdSlideButtons.next
|
1990
|
+
}, null, 8, ["onClick", "slideButtons"])) : d("", !0)
|
1991
|
+
])
|
1990
1992
|
], 2);
|
1991
1993
|
}
|
1992
1994
|
const Ml = /* @__PURE__ */ L(Il, [["render", Tl]]);
|
@@ -7668,9 +7670,10 @@ const im = {
|
|
7668
7670
|
},
|
7669
7671
|
created() {
|
7670
7672
|
const e = window.matchMedia("(prefers-color-scheme: dark)");
|
7671
|
-
e.addEventListener("change", this.onColorSchemeChange), this.onColorSchemeChange(e)
|
7672
|
-
|
7673
|
-
|
7673
|
+
e.addEventListener("change", this.onColorSchemeChange), this.onColorSchemeChange(e), this.$nextTick(() => {
|
7674
|
+
const i = window.localStorage.getItem("cmd-color-scheme");
|
7675
|
+
i && (this.darkMode = i === "dark-mode");
|
7676
|
+
}), document.documentElement.addEventListener("toggle-color-scheme", this.onToggleColorScheme);
|
7674
7677
|
},
|
7675
7678
|
beforeUnmount() {
|
7676
7679
|
window.matchMedia("(prefers-color-scheme: dark)").removeEventListener("change", this.onColorSchemeChange), document.documentElement.removeEventListener("toggle-color-scheme", this.onToggleColorScheme);
|