golden-logic-ui 1.0.430 → 1.0.432
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 +22 -20
- package/dist/golden-logic-ui.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/golden-logic-ui.js
CHANGED
|
@@ -1870,31 +1870,33 @@ const _le = /* @__PURE__ */ Kr(yX, [["render", xX]]), CX = {
|
|
|
1870
1870
|
this.currentDot > 1 && (this.currentDot--, this.setDot(this.currentDot));
|
|
1871
1871
|
},
|
|
1872
1872
|
initSlider() {
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
this.
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1873
|
+
this.$nextTick(() => {
|
|
1874
|
+
console.log("sliderContainer_ref offsetWidth", this.$refs.sliderContainer.offsetWidth);
|
|
1875
|
+
let D = document.getElementById("sliderContainer_" + this.Random_string), ie = document.getElementById("mainSliderContainer_" + this.Random_string), Q = document.getElementById("slider_" + this.Random_string), ke = Q.querySelectorAll("li"), se = Array.from(ke).filter((ee) => ee.parentNode === Q);
|
|
1876
|
+
console.log("cards length :", se.length);
|
|
1877
|
+
let j = D.clientWidth;
|
|
1878
|
+
console.log("sliderContainer :", D), console.log("sliderContainerWidth :", D.clientWidth), console.log("elementsToShow :", this.elementsToShow);
|
|
1879
|
+
let Ee = j / this.elementsToShow;
|
|
1880
|
+
if (console.log("cardwidth :", Ee), this.elementsToShow > 1 ? document.body.clientWidth < 1e3 ? (this.elementsToShow = 1, Ee = this.hide_arrow ? ie.clientWidth : j) : document.body.clientWidth < 1500 && (this.elementsToShow = 2) : (this.elementsToShow = 1, Ee = this.hide_arrow ? ie.clientWidth : j), se.length > 1) {
|
|
1881
|
+
this.dotsNum = this.elementsToShow == 1 ? se.length : se.length - this.elementsToShow + 1;
|
|
1882
|
+
let ee = this.elementsToShow == 1 ? Ee * se.length / this.dotsNum : Ee * (se.length - this.elementsToShow) / (this.dotsNum - 1);
|
|
1883
|
+
this.dotsNavigation = [];
|
|
1884
|
+
for (let Be = 0; Be < this.dotsNum; Be++)
|
|
1885
|
+
this.dotsNavigation.push(ee * Be);
|
|
1886
|
+
}
|
|
1887
|
+
console.log("slider.style.width :", se.length * Ee), Q.style.width = se.length * Ee + "px", Q.style.transition = "margin", Q.style.transitionDuration = "1s";
|
|
1888
|
+
for (let ee = 0; ee < se.length; ee++) {
|
|
1889
|
+
const Be = se[ee];
|
|
1890
|
+
Be.style.width = Ee + "px", console.log("element.style.width", Ee);
|
|
1891
|
+
}
|
|
1892
|
+
});
|
|
1891
1893
|
},
|
|
1892
1894
|
setDot(D) {
|
|
1893
1895
|
let ie = document.getElementById("slider_" + this.Random_string);
|
|
1894
1896
|
this.direction_property == "rtl" ? ie.style.marginRight = -this.dotsNavigation[D - 1] + "px" : ie.style.marginLeft = -this.dotsNavigation[D - 1] + "px", this.currentDot = D;
|
|
1895
1897
|
}
|
|
1896
1898
|
}
|
|
1897
|
-
}, _m = (D) => (Mq("data-v-
|
|
1899
|
+
}, _m = (D) => (Mq("data-v-17a740fd"), D = D(), Pq(), D), SX = ["id"], _X = {
|
|
1898
1900
|
key: 0,
|
|
1899
1901
|
class: "items-center hidden w-2/12 xl:flex xxl:flex md:flex sm:flex arrow_button"
|
|
1900
1902
|
}, kX = { class: "w-full" }, TX = {
|
|
@@ -2197,7 +2199,7 @@ function TJ(D, ie, Q, ke, se, j) {
|
|
|
2197
2199
|
], 10, SX)
|
|
2198
2200
|
]);
|
|
2199
2201
|
}
|
|
2200
|
-
const kle = /* @__PURE__ */ Kr(CX, [["render", TJ], ["__scopeId", "data-v-
|
|
2202
|
+
const kle = /* @__PURE__ */ Kr(CX, [["render", TJ], ["__scopeId", "data-v-17a740fd"]]), EJ = { class: "pointer-events-auto relative flex max-h-[100%] w-full flex-col overflow-hidden text-current shadow-4 outline-none bg-white border rounded-lg border-stroke dark:border-strokedark dark:bg-boxdark" }, AJ = { class: "flex items-center justify-between flex-shrink-0 pt-10 pb-3 pl-3 pr-3 border-b-2 dark:border-gray-600" }, DJ = { class: "text-xl font-medium leading-normal text-surface dark:text-white" }, OJ = /* @__PURE__ */ $("span", { class: "[&>svg]:h-6 [&>svg]:w-6" }, [
|
|
2201
2203
|
/* @__PURE__ */ $("svg", {
|
|
2202
2204
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2203
2205
|
fill: "currentColor",
|