golden-logic-ui 1.0.429 → 1.0.431
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 +23 -19
- 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,30 +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
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
this.dotsNavigation
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1873
|
+
this.$nextTick(() => {
|
|
1874
|
+
console.log("sliderContainer_ref", this.$refs.sliderContainer.clientWidth);
|
|
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
|
+
});
|
|
1890
1893
|
},
|
|
1891
1894
|
setDot(D) {
|
|
1892
1895
|
let ie = document.getElementById("slider_" + this.Random_string);
|
|
1893
1896
|
this.direction_property == "rtl" ? ie.style.marginRight = -this.dotsNavigation[D - 1] + "px" : ie.style.marginLeft = -this.dotsNavigation[D - 1] + "px", this.currentDot = D;
|
|
1894
1897
|
}
|
|
1895
1898
|
}
|
|
1896
|
-
}, _m = (D) => (Mq("data-v-
|
|
1899
|
+
}, _m = (D) => (Mq("data-v-84f7de34"), D = D(), Pq(), D), SX = ["id"], _X = {
|
|
1897
1900
|
key: 0,
|
|
1898
1901
|
class: "items-center hidden w-2/12 xl:flex xxl:flex md:flex sm:flex arrow_button"
|
|
1899
1902
|
}, kX = { class: "w-full" }, TX = {
|
|
@@ -2096,6 +2099,7 @@ function TJ(D, ie, Q, ke, se, j) {
|
|
|
2096
2099
|
])
|
|
2097
2100
|
])) : at("", !0),
|
|
2098
2101
|
$("div", {
|
|
2102
|
+
ref: "sliderContainer",
|
|
2099
2103
|
class: nn(["overflow-hidden flex flex-col gap-3", j.sliderContainerAction()]),
|
|
2100
2104
|
id: "sliderContainer_" + D.Random_string
|
|
2101
2105
|
}, [
|
|
@@ -2195,7 +2199,7 @@ function TJ(D, ie, Q, ke, se, j) {
|
|
|
2195
2199
|
], 10, SX)
|
|
2196
2200
|
]);
|
|
2197
2201
|
}
|
|
2198
|
-
const kle = /* @__PURE__ */ Kr(CX, [["render", TJ], ["__scopeId", "data-v-
|
|
2202
|
+
const kle = /* @__PURE__ */ Kr(CX, [["render", TJ], ["__scopeId", "data-v-84f7de34"]]), 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" }, [
|
|
2199
2203
|
/* @__PURE__ */ $("svg", {
|
|
2200
2204
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2201
2205
|
fill: "currentColor",
|