golden-logic-ui 1.0.497 → 1.0.499

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.
@@ -1815,6 +1815,7 @@ const Hce = /* @__PURE__ */ zr(wX, [["render", CX]]), _X = {
1815
1815
  },
1816
1816
  data() {
1817
1817
  return {
1818
+ mutationObserver: null,
1818
1819
  elementsToShow: this.elements_to_show_prop,
1819
1820
  dotsNum: 0,
1820
1821
  currentDot: 1,
@@ -1828,13 +1829,27 @@ const Hce = /* @__PURE__ */ zr(wX, [["render", CX]]), _X = {
1828
1829
  },
1829
1830
  mounted() {
1830
1831
  this.$nextTick(() => {
1831
- this.initSlider(), this.disable_touch || this.movingActions(), window.addEventListener("resize", this.resizeHandler);
1832
+ this.observeSlotChanges(), this.initSlider(), this.disable_touch || this.movingActions(), window.addEventListener("resize", this.resizeHandler);
1832
1833
  });
1833
1834
  },
1834
1835
  beforeDestroy() {
1835
1836
  window.removeEventListener("resize", this.resizeHandler);
1836
1837
  },
1838
+ beforeUnmount() {
1839
+ this.mutationObserver && this.mutationObserver.disconnect();
1840
+ },
1837
1841
  methods: {
1842
+ observeSlotChanges() {
1843
+ const A = this.$refs.slotContainer;
1844
+ A && (this.mutationObserver = new MutationObserver((te) => {
1845
+ te.forEach((G) => {
1846
+ this.initSlider();
1847
+ });
1848
+ }), this.mutationObserver.observe(A, {
1849
+ childList: !0,
1850
+ subtree: !0
1851
+ }));
1852
+ },
1838
1853
  resizeHandler() {
1839
1854
  this.initSlider();
1840
1855
  },
@@ -1875,7 +1890,7 @@ const Hce = /* @__PURE__ */ zr(wX, [["render", CX]]), _X = {
1875
1890
  this.direction_property === "rtl" ? te.style.marginRight = -this.dotsNavigation[A - 1] + "px" : te.style.marginLeft = -this.dotsNavigation[A - 1] + "px", this.currentDot = A;
1876
1891
  }
1877
1892
  }
1878
- }, Sm = (A) => (rq("data-v-74db30ef"), A = A(), aq(), A), SX = ["id"], kX = {
1893
+ }, Sm = (A) => (rq("data-v-7ca2c0d3"), A = A(), aq(), A), SX = ["id"], kX = {
1879
1894
  key: 0,
1880
1895
  class: "items-center hidden w-2/12 xl:flex xxl:flex md:flex sm:flex arrow_button"
1881
1896
  }, TX = { class: "w-full" }, EX = {
@@ -2082,6 +2097,7 @@ function EJ(A, te, G, Ce, oe, U) {
2082
2097
  id: "sliderContainer_" + oe.Random_string
2083
2098
  }, [
2084
2099
  R("ul", {
2100
+ ref: "slotContainer",
2085
2101
  class: zt(["flex", G.elements_to_show_prop == 1 ? "" : "gap-7"]),
2086
2102
  id: "slider_" + oe.Random_string
2087
2103
  }, [
@@ -2177,7 +2193,7 @@ function EJ(A, te, G, Ce, oe, U) {
2177
2193
  ], 10, SX)
2178
2194
  ]);
2179
2195
  }
2180
- const Vce = /* @__PURE__ */ zr(_X, [["render", EJ], ["__scopeId", "data-v-74db30ef"]]), AJ = {
2196
+ const Vce = /* @__PURE__ */ zr(_X, [["render", EJ], ["__scopeId", "data-v-7ca2c0d3"]]), AJ = {
2181
2197
  props: {
2182
2198
  elements_to_show_prop: {
2183
2199
  type: Number,