comand-component-library 3.3.69 → 3.3.71

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.
@@ -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
- n.showSlidebuttons ? (l(), C(u, {
1949
- key: 0,
1950
- onClick: T(s.showPrevItem, ["prevent"]),
1951
- slideButtonType: "prev"
1952
- }, null, 8, ["onClick"])) : d("", !0),
1953
- x(ft, {
1954
- name: "slide",
1955
- tag: "ul"
1956
- }, {
1957
- default: j(() => [
1958
- (l(!0), o(b, null, B(n.items, (c, f) => (l(), o("li", {
1959
- key: f,
1960
- class: _([{ active: t.activeItemIndex === f }, c.id ? "item-" + c.id : ""])
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
- t.contentType === "image" ? (l(), C(m, {
1969
- key: 0,
1970
- image: c.image,
1971
- figcaption: c.figcaption
1972
- }, null, 8, ["image", "figcaption"])) : (l(), o(b, { key: 1 }, [
1973
- c.iconClass ? (l(), C(r, {
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
- iconClass: c.iconClass,
1976
- type: c.iconType
1977
- }, null, 8, ["iconClass", "type"])) : d("", !0),
1978
- c.text ? (l(), o("span", Sl, g(c.text), 1)) : d("", !0)
1979
- ], 64))
1980
- ], 8, xl)
1981
- ], 2))), 128))
1982
- ]),
1983
- _: 1
1984
- }),
1985
- n.showSlidebuttons ? (l(), C(u, {
1986
- key: 1,
1987
- onClick: T(s.showNextItem, ["prevent"]),
1988
- slideButtons: t.cmdSlideButtons.next
1989
- }, null, 8, ["onClick", "slideButtons"])) : d("", !0)
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
- const i = window.localStorage.getItem("cmd-color-scheme");
7673
- i && (this.darkMode = i === "dark-mode"), document.documentElement.addEventListener("toggle-color-scheme", this.onToggleColorScheme);
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);