golden-logic-ui 1.0.495 → 1.0.497
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/golden-logic-ui.js
CHANGED
|
@@ -1863,7 +1863,7 @@ const Hce = /* @__PURE__ */ zr(wX, [["render", CX]]), _X = {
|
|
|
1863
1863
|
},
|
|
1864
1864
|
initSlider() {
|
|
1865
1865
|
let A = document.getElementById("sliderContainer_" + this.Random_string), te = document.getElementById("mainSliderContainer_" + this.Random_string), G = document.getElementById("slider_" + this.Random_string), Ce = Array.from(G.querySelectorAll("li")).filter((be) => be.parentNode === G), oe = A.clientWidth, U = oe / this.elementsToShow;
|
|
1866
|
-
if (this.elementsToShow > 1 ? document.body.clientWidth < 1e3 ? (this.elementsToShow = 1, U = this.hide_arrow ? te.clientWidth : oe) : document.body.clientWidth < 1500 && (this.elementsToShow = 2) : (this.elementsToShow = 1, U =
|
|
1866
|
+
if (this.elementsToShow > 1 ? document.body.clientWidth < 1e3 ? (this.elementsToShow = 1, U = this.hide_arrow ? te.clientWidth : oe) : document.body.clientWidth < 1500 && (this.elementsToShow = 2) : (this.elementsToShow = 1, U = te.clientWidth, console.log("cardwidth: ", U)), Ce.length > 1) {
|
|
1867
1867
|
this.dotsNum = this.elementsToShow === 1 ? Ce.length : Ce.length - this.elementsToShow + 1;
|
|
1868
1868
|
let be = this.elementsToShow === 1 ? U * Ce.length / this.dotsNum : U * (Ce.length - this.elementsToShow) / (this.dotsNum - 1);
|
|
1869
1869
|
this.dotsNavigation = Array.from({ length: this.dotsNum }, (q, De) => be * De);
|
|
@@ -1875,7 +1875,7 @@ const Hce = /* @__PURE__ */ zr(wX, [["render", CX]]), _X = {
|
|
|
1875
1875
|
this.direction_property === "rtl" ? te.style.marginRight = -this.dotsNavigation[A - 1] + "px" : te.style.marginLeft = -this.dotsNavigation[A - 1] + "px", this.currentDot = A;
|
|
1876
1876
|
}
|
|
1877
1877
|
}
|
|
1878
|
-
}, Sm = (A) => (rq("data-v-
|
|
1878
|
+
}, Sm = (A) => (rq("data-v-74db30ef"), A = A(), aq(), A), SX = ["id"], kX = {
|
|
1879
1879
|
key: 0,
|
|
1880
1880
|
class: "items-center hidden w-2/12 xl:flex xxl:flex md:flex sm:flex arrow_button"
|
|
1881
1881
|
}, TX = { class: "w-full" }, EX = {
|
|
@@ -2177,7 +2177,7 @@ function EJ(A, te, G, Ce, oe, U) {
|
|
|
2177
2177
|
], 10, SX)
|
|
2178
2178
|
]);
|
|
2179
2179
|
}
|
|
2180
|
-
const Vce = /* @__PURE__ */ zr(_X, [["render", EJ], ["__scopeId", "data-v-
|
|
2180
|
+
const Vce = /* @__PURE__ */ zr(_X, [["render", EJ], ["__scopeId", "data-v-74db30ef"]]), AJ = {
|
|
2181
2181
|
props: {
|
|
2182
2182
|
elements_to_show_prop: {
|
|
2183
2183
|
type: Number,
|