golden-logic-ui 1.2.365 → 1.2.367
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/components/GeneralComponents/GlDateRangePicker.vue.js +52 -48
- package/dist/components/GeneralComponents/GlDateTimeRangePicker.vue.js +53 -49
- package/dist/components/GeneralComponents/GlMultiItemSlide.vue.js +90 -85
- package/dist/components/GeneralComponents/GlMultiItemSlideDynamic.vue.js +75 -69
- package/dist/golden-logic-ui.css +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createElementBlock as r, openBlock as
|
|
1
|
+
import { createElementBlock as r, openBlock as i, createElementVNode as o, normalizeClass as h, createCommentVNode as a, renderSlot as v, withModifiers as w, Fragment as m, renderList as c } from "vue";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import y from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
4
|
const g = {
|
|
@@ -57,12 +57,12 @@ const g = {
|
|
|
57
57
|
},
|
|
58
58
|
methods: {
|
|
59
59
|
observeSlotChanges() {
|
|
60
|
-
const
|
|
61
|
-
|
|
60
|
+
const s = this.$refs.slotContainer;
|
|
61
|
+
s && (this.mutationObserver = new MutationObserver((t) => {
|
|
62
62
|
t.forEach((e) => {
|
|
63
63
|
this.initSlider();
|
|
64
64
|
});
|
|
65
|
-
}), this.mutationObserver.observe(
|
|
65
|
+
}), this.mutationObserver.observe(s, {
|
|
66
66
|
childList: !0,
|
|
67
67
|
subtree: !0
|
|
68
68
|
}));
|
|
@@ -71,18 +71,18 @@ const g = {
|
|
|
71
71
|
this.initSlider();
|
|
72
72
|
},
|
|
73
73
|
sliderIndicatorsAction() {
|
|
74
|
-
let
|
|
75
|
-
return this.direction_property === "rtl" && (
|
|
74
|
+
let s = "";
|
|
75
|
+
return this.direction_property === "rtl" && (s += " space-x-reverse "), this.slider_arrows_indicators_position === "arrows_indicators_inside_slider" && (s += " slider_indicators "), s;
|
|
76
76
|
},
|
|
77
77
|
sliderContainerAction() {
|
|
78
|
-
let
|
|
79
|
-
return !this.hide_arrow && this.slider_arrows_indicators_position === "arrows_outside_slider" ?
|
|
78
|
+
let s = "";
|
|
79
|
+
return !this.hide_arrow && this.slider_arrows_indicators_position === "arrows_outside_slider" ? s += " w-12/12 xl:w-8/12 xxl:w-8/12 md:w-8/12 sm:w-8/12" : this.slider_arrows_indicators_position !== "arrows_outside_slider" && (s += " w-12/12 "), s;
|
|
80
80
|
},
|
|
81
|
-
generateRandomString(
|
|
81
|
+
generateRandomString(s) {
|
|
82
82
|
let t = "";
|
|
83
|
-
const e = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",
|
|
84
|
-
for (let
|
|
85
|
-
t += e.charAt(Math.floor(Math.random() *
|
|
83
|
+
const e = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", u = e.length;
|
|
84
|
+
for (let n = 0; n < s; n++)
|
|
85
|
+
t += e.charAt(Math.floor(Math.random() * u));
|
|
86
86
|
return t;
|
|
87
87
|
},
|
|
88
88
|
movingActions() {
|
|
@@ -108,17 +108,22 @@ const g = {
|
|
|
108
108
|
this.auto_play && this.startAutoPlay();
|
|
109
109
|
},
|
|
110
110
|
initSlider() {
|
|
111
|
-
let
|
|
112
|
-
if (this.elementsToShow > 1 ? document.body.clientWidth < 1e3 ? (this.elementsToShow = 1, d = this.hide_arrow ? t.clientWidth :
|
|
113
|
-
this.dotsNum = this.elementsToShow === 1 ?
|
|
114
|
-
let
|
|
115
|
-
this.dotsNavigation = Array.from({ length: this.dotsNum }, (_, f) =>
|
|
111
|
+
let s = document.getElementById("sliderContainer_" + this.Random_string), t = document.getElementById("mainSliderContainer_" + this.Random_string), e = document.getElementById("slider_" + this.Random_string), u = Array.from(e.querySelectorAll("li")).filter((l) => l.parentNode === e), n = s.clientWidth, d = n / this.elementsToShow;
|
|
112
|
+
if (this.elementsToShow > 1 ? document.body.clientWidth < 1e3 ? (this.elementsToShow = 1, d = this.hide_arrow ? t.clientWidth : n) : document.body.clientWidth < 1500 && (this.elementsToShow = 2) : (this.elementsToShow = 1, d = this.hide_arrow ? t.clientWidth : n), u.length > 1) {
|
|
113
|
+
this.dotsNum = this.elementsToShow === 1 ? u.length : u.length - this.elementsToShow + 1;
|
|
114
|
+
let l = this.elementsToShow === 1 ? d * u.length / this.dotsNum : d * (u.length - this.elementsToShow) / (this.dotsNum - 1);
|
|
115
|
+
this.dotsNavigation = Array.from({ length: this.dotsNum }, (_, f) => l * f);
|
|
116
116
|
}
|
|
117
|
-
e.style.width = `${
|
|
117
|
+
e.style.width = `${u.length * d}px`, e.style.transition = "transform 700ms ease-in-out", u.forEach((l) => l.style.width = `${d}px`), this.applyOffset();
|
|
118
118
|
},
|
|
119
|
-
setDot(
|
|
120
|
-
|
|
121
|
-
|
|
119
|
+
setDot(s) {
|
|
120
|
+
this.currentDot = s, this.applyOffset(), this.auto_play && this.startAutoPlay();
|
|
121
|
+
},
|
|
122
|
+
applyOffset() {
|
|
123
|
+
let s = document.getElementById("slider_" + this.Random_string);
|
|
124
|
+
if (!s) return;
|
|
125
|
+
const t = window.getComputedStyle(s).direction === "rtl", e = this.dotsNavigation[this.currentDot - 1] || 0;
|
|
126
|
+
s.style.transform = `translateX(${t ? e : -e}px)`, s.style.marginLeft = "", s.style.marginRight = "";
|
|
122
127
|
}
|
|
123
128
|
}
|
|
124
129
|
}, p = ["id"], k = {
|
|
@@ -172,10 +177,10 @@ const g = {
|
|
|
172
177
|
viewBox: "0 0 24 24",
|
|
173
178
|
stroke: "currentColor",
|
|
174
179
|
"stroke-width": "2"
|
|
175
|
-
}, P = ["onClick"],
|
|
180
|
+
}, P = ["onClick"], R = {
|
|
176
181
|
key: 1,
|
|
177
182
|
class: "flex justify-between pl-5 pr-5"
|
|
178
|
-
},
|
|
183
|
+
}, I = ["onClick"], E = { class: "flex" }, O = { class: "flex items-center" }, H = { class: "w-full" }, z = {
|
|
179
184
|
key: 0,
|
|
180
185
|
xmlns: "http://www.w3.org/2000/svg",
|
|
181
186
|
class: "w-6 h-6",
|
|
@@ -191,7 +196,7 @@ const g = {
|
|
|
191
196
|
viewBox: "0 0 24 24",
|
|
192
197
|
stroke: "currentColor",
|
|
193
198
|
"stroke-width": "2"
|
|
194
|
-
}, W = { class: "flex items-center" },
|
|
199
|
+
}, W = { class: "flex items-center" }, X = { class: "w-full" }, V = {
|
|
195
200
|
key: 0,
|
|
196
201
|
xmlns: "http://www.w3.org/2000/svg",
|
|
197
202
|
class: "w-6 h-6",
|
|
@@ -227,201 +232,201 @@ const g = {
|
|
|
227
232
|
stroke: "currentColor",
|
|
228
233
|
"stroke-width": "2"
|
|
229
234
|
};
|
|
230
|
-
function J(
|
|
231
|
-
return
|
|
235
|
+
function J(s, t, e, u, n, d) {
|
|
236
|
+
return i(), r("div", null, [
|
|
232
237
|
o("div", {
|
|
233
238
|
class: h(["", !e.hide_arrow && e.slider_arrows_indicators_position == "arrows_outside_slider" ? "flex" : "relative block"]),
|
|
234
|
-
id: "mainSliderContainer_" +
|
|
239
|
+
id: "mainSliderContainer_" + n.Random_string
|
|
235
240
|
}, [
|
|
236
|
-
|
|
241
|
+
n.dotsNum > 1 && !e.hide_arrow && e.slider_arrows_indicators_position == "arrows_outside_slider" ? (i(), r("div", k, [
|
|
237
242
|
o("div", x, [
|
|
238
243
|
o("button", {
|
|
239
244
|
class: "p-3 mr-5 rounded-full shadow-lg arrow_button_styles",
|
|
240
|
-
onClick: t[0] || (t[0] = (
|
|
245
|
+
onClick: t[0] || (t[0] = (l) => d.prev())
|
|
241
246
|
}, [
|
|
242
|
-
e.direction_property == "ltr" ? (
|
|
247
|
+
e.direction_property == "ltr" ? (i(), r("svg", b, t[6] || (t[6] = [
|
|
243
248
|
o("path", {
|
|
244
249
|
"stroke-linecap": "round",
|
|
245
250
|
"stroke-linejoin": "round",
|
|
246
251
|
d: "M11 17l-5-5m0 0l5-5m-5 5h12"
|
|
247
252
|
}, null, -1)
|
|
248
|
-
]))) :
|
|
249
|
-
e.direction_property == "rtl" ? (
|
|
253
|
+
]))) : a("", !0),
|
|
254
|
+
e.direction_property == "rtl" ? (i(), r("svg", C, t[7] || (t[7] = [
|
|
250
255
|
o("path", {
|
|
251
256
|
"stroke-linecap": "round",
|
|
252
257
|
"stroke-linejoin": "round",
|
|
253
258
|
d: "M13 7l5 5m0 0l-5 5m5-5H6"
|
|
254
259
|
}, null, -1)
|
|
255
|
-
]))) :
|
|
260
|
+
]))) : a("", !0)
|
|
256
261
|
])
|
|
257
262
|
])
|
|
258
|
-
])) :
|
|
263
|
+
])) : a("", !0),
|
|
259
264
|
o("div", {
|
|
260
265
|
ref: "slotContainer",
|
|
261
266
|
class: h(["overflow-hidden flex flex-col gap-3", d.sliderContainerAction()]),
|
|
262
|
-
id: "sliderContainer_" +
|
|
267
|
+
id: "sliderContainer_" + n.Random_string
|
|
263
268
|
}, [
|
|
264
269
|
o("ul", {
|
|
265
270
|
class: h(["flex duration-700 ease-in-out", e.elements_to_show_prop == 1 || this.elementsToShow == 1 ? "" : "gap-7"]),
|
|
266
|
-
id: "slider_" +
|
|
271
|
+
id: "slider_" + n.Random_string
|
|
267
272
|
}, [
|
|
268
|
-
|
|
273
|
+
n.dotsNum > 1 && !e.hide_arrow && e.slider_arrows_indicators_position == "arrows_indicators_inside_slider" ? (i(), r("div", {
|
|
269
274
|
key: 0,
|
|
270
275
|
class: h(["items-center justify-center hidden arrow_button xl:flex xxl:flex md:flex sm:flex", e.direction_property == "rtl" ? "arrow_button_next" : "arrow_button_prev"])
|
|
271
276
|
}, [
|
|
272
277
|
o("div", A, [
|
|
273
278
|
o("button", {
|
|
274
279
|
class: "p-3 rounded-full shadow-lg arrow_button_styles",
|
|
275
|
-
onClick: t[1] || (t[1] = w((
|
|
280
|
+
onClick: t[1] || (t[1] = w((l) => d.prev(), ["stop"]))
|
|
276
281
|
}, [
|
|
277
|
-
e.direction_property == "ltr" ? (
|
|
282
|
+
e.direction_property == "ltr" ? (i(), r("svg", B, t[8] || (t[8] = [
|
|
278
283
|
o("path", {
|
|
279
284
|
"stroke-linecap": "round",
|
|
280
285
|
"stroke-linejoin": "round",
|
|
281
286
|
d: "M11 17l-5-5m0 0l5-5m-5 5h12"
|
|
282
287
|
}, null, -1)
|
|
283
|
-
]))) :
|
|
284
|
-
e.direction_property == "rtl" ? (
|
|
288
|
+
]))) : a("", !0),
|
|
289
|
+
e.direction_property == "rtl" ? (i(), r("svg", D, t[9] || (t[9] = [
|
|
285
290
|
o("path", {
|
|
286
291
|
"stroke-linecap": "round",
|
|
287
292
|
"stroke-linejoin": "round",
|
|
288
293
|
d: "M13 7l5 5m0 0l-5 5m5-5H6"
|
|
289
294
|
}, null, -1)
|
|
290
|
-
]))) :
|
|
295
|
+
]))) : a("", !0)
|
|
291
296
|
])
|
|
292
297
|
])
|
|
293
|
-
], 2)) :
|
|
294
|
-
v(
|
|
295
|
-
|
|
298
|
+
], 2)) : a("", !0),
|
|
299
|
+
v(s.$slots, "default", {}, void 0, !0),
|
|
300
|
+
n.dotsNum > 1 && !e.hide_arrow && e.slider_arrows_indicators_position == "arrows_indicators_inside_slider" ? (i(), r("div", {
|
|
296
301
|
key: 1,
|
|
297
302
|
class: h(["items-center justify-center hidden xl:flex xxl:flex md:flex sm:flex arrow_button", e.direction_property == "rtl" ? "arrow_button_prev" : "arrow_button_next"])
|
|
298
303
|
}, [
|
|
299
304
|
o("div", M, [
|
|
300
305
|
o("button", {
|
|
301
306
|
class: "p-3 rounded-full shadow-lg arrow_button_styles",
|
|
302
|
-
onClick: t[2] || (t[2] = w((
|
|
307
|
+
onClick: t[2] || (t[2] = w((l) => d.next(), ["stop"]))
|
|
303
308
|
}, [
|
|
304
|
-
e.direction_property == "ltr" ? (
|
|
309
|
+
e.direction_property == "ltr" ? (i(), r("svg", j, t[10] || (t[10] = [
|
|
305
310
|
o("path", {
|
|
306
311
|
"stroke-linecap": "round",
|
|
307
312
|
"stroke-linejoin": "round",
|
|
308
313
|
d: "M13 7l5 5m0 0l-5 5m5-5H6"
|
|
309
314
|
}, null, -1)
|
|
310
|
-
]))) :
|
|
311
|
-
e.direction_property == "rtl" ? (
|
|
315
|
+
]))) : a("", !0),
|
|
316
|
+
e.direction_property == "rtl" ? (i(), r("svg", T, t[11] || (t[11] = [
|
|
312
317
|
o("path", {
|
|
313
318
|
"stroke-linecap": "round",
|
|
314
319
|
"stroke-linejoin": "round",
|
|
315
320
|
d: "M11 17l-5-5m0 0l5-5m-5 5h12"
|
|
316
321
|
}, null, -1)
|
|
317
|
-
]))) :
|
|
322
|
+
]))) : a("", !0)
|
|
318
323
|
])
|
|
319
324
|
])
|
|
320
|
-
], 2)) :
|
|
325
|
+
], 2)) : a("", !0)
|
|
321
326
|
], 10, N),
|
|
322
|
-
|
|
327
|
+
n.dotsNum > 1 && e.slider_arrows_indicators_position != "arrows_indicators_below_slider" ? (i(), r("div", {
|
|
323
328
|
key: 0,
|
|
324
329
|
class: h(["flex justify-center mb-1 space-x-1", d.sliderIndicatorsAction()])
|
|
325
330
|
}, [
|
|
326
|
-
(
|
|
331
|
+
(i(!0), r(m, null, c(n.dotsNum, (l) => (i(), r("button", {
|
|
327
332
|
role: "button",
|
|
328
|
-
class: h(["gl-dot", { active:
|
|
329
|
-
key:
|
|
330
|
-
onClick: (_) => d.setDot(
|
|
333
|
+
class: h(["gl-dot", { active: n.currentDot == l }]),
|
|
334
|
+
key: l,
|
|
335
|
+
onClick: (_) => d.setDot(l)
|
|
331
336
|
}, t[12] || (t[12] = [
|
|
332
337
|
o("span", null, null, -1)
|
|
333
338
|
]), 10, P))), 128))
|
|
334
|
-
], 2)) :
|
|
335
|
-
|
|
339
|
+
], 2)) : a("", !0),
|
|
340
|
+
n.dotsNum > 1 && e.slider_arrows_indicators_position == "arrows_indicators_below_slider" ? (i(), r("div", R, [
|
|
336
341
|
o("div", {
|
|
337
342
|
class: h(["flex justify-center mb-1 space-x-1", d.sliderIndicatorsAction()])
|
|
338
343
|
}, [
|
|
339
|
-
(
|
|
344
|
+
(i(!0), r(m, null, c(n.dotsNum, (l) => (i(), r("button", {
|
|
340
345
|
role: "button",
|
|
341
|
-
class: h(["gl-dot", { active:
|
|
342
|
-
key:
|
|
343
|
-
onClick: (_) => d.setDot(
|
|
346
|
+
class: h(["gl-dot", { active: n.currentDot == l }]),
|
|
347
|
+
key: l,
|
|
348
|
+
onClick: (_) => d.setDot(l)
|
|
344
349
|
}, t[13] || (t[13] = [
|
|
345
350
|
o("span", null, null, -1)
|
|
346
|
-
]), 10,
|
|
351
|
+
]), 10, I))), 128))
|
|
347
352
|
], 2),
|
|
348
353
|
o("div", E, [
|
|
349
|
-
o("div",
|
|
350
|
-
o("div",
|
|
354
|
+
o("div", O, [
|
|
355
|
+
o("div", H, [
|
|
351
356
|
o("button", {
|
|
352
357
|
class: h(["p-3 rounded-full arrow_button_styles", e.direction_property == "rtl" ? "ml-3" : "mr-3"]),
|
|
353
|
-
onClick: t[3] || (t[3] = (
|
|
358
|
+
onClick: t[3] || (t[3] = (l) => d.prev())
|
|
354
359
|
}, [
|
|
355
|
-
e.direction_property == "ltr" ? (
|
|
360
|
+
e.direction_property == "ltr" ? (i(), r("svg", z, t[14] || (t[14] = [
|
|
356
361
|
o("path", {
|
|
357
362
|
"stroke-linecap": "round",
|
|
358
363
|
"stroke-linejoin": "round",
|
|
359
364
|
d: "M11 17l-5-5m0 0l5-5m-5 5h12"
|
|
360
365
|
}, null, -1)
|
|
361
|
-
]))) :
|
|
362
|
-
e.direction_property == "rtl" ? (
|
|
366
|
+
]))) : a("", !0),
|
|
367
|
+
e.direction_property == "rtl" ? (i(), r("svg", L, t[15] || (t[15] = [
|
|
363
368
|
o("path", {
|
|
364
369
|
"stroke-linecap": "round",
|
|
365
370
|
"stroke-linejoin": "round",
|
|
366
371
|
d: "M13 7l5 5m0 0l-5 5m5-5H6"
|
|
367
372
|
}, null, -1)
|
|
368
|
-
]))) :
|
|
373
|
+
]))) : a("", !0)
|
|
369
374
|
], 2)
|
|
370
375
|
])
|
|
371
376
|
]),
|
|
372
377
|
o("div", W, [
|
|
373
|
-
o("div",
|
|
378
|
+
o("div", X, [
|
|
374
379
|
o("button", {
|
|
375
380
|
class: "p-3 rounded-full arrow_button_styles",
|
|
376
|
-
onClick: t[4] || (t[4] = (
|
|
381
|
+
onClick: t[4] || (t[4] = (l) => d.next())
|
|
377
382
|
}, [
|
|
378
|
-
e.direction_property == "ltr" ? (
|
|
383
|
+
e.direction_property == "ltr" ? (i(), r("svg", V, t[16] || (t[16] = [
|
|
379
384
|
o("path", {
|
|
380
385
|
"stroke-linecap": "round",
|
|
381
386
|
"stroke-linejoin": "round",
|
|
382
387
|
d: "M13 7l5 5m0 0l-5 5m5-5H6"
|
|
383
388
|
}, null, -1)
|
|
384
|
-
]))) :
|
|
385
|
-
e.direction_property == "rtl" ? (
|
|
389
|
+
]))) : a("", !0),
|
|
390
|
+
e.direction_property == "rtl" ? (i(), r("svg", q, t[17] || (t[17] = [
|
|
386
391
|
o("path", {
|
|
387
392
|
"stroke-linecap": "round",
|
|
388
393
|
"stroke-linejoin": "round",
|
|
389
394
|
d: "M11 17l-5-5m0 0l5-5m-5 5h12"
|
|
390
395
|
}, null, -1)
|
|
391
|
-
]))) :
|
|
396
|
+
]))) : a("", !0)
|
|
392
397
|
])
|
|
393
398
|
])
|
|
394
399
|
])
|
|
395
400
|
])
|
|
396
|
-
])) :
|
|
401
|
+
])) : a("", !0)
|
|
397
402
|
], 10, S),
|
|
398
|
-
|
|
403
|
+
n.dotsNum > 1 && !e.hide_arrow && e.slider_arrows_indicators_position == "arrows_outside_slider" ? (i(), r("div", F, [
|
|
399
404
|
o("div", G, [
|
|
400
405
|
o("button", {
|
|
401
406
|
class: "p-3 ml-5 rounded-full shadow-lg arrow_button_styles",
|
|
402
|
-
onClick: t[5] || (t[5] = (
|
|
407
|
+
onClick: t[5] || (t[5] = (l) => d.next())
|
|
403
408
|
}, [
|
|
404
|
-
e.direction_property == "ltr" ? (
|
|
409
|
+
e.direction_property == "ltr" ? (i(), r("svg", U, t[18] || (t[18] = [
|
|
405
410
|
o("path", {
|
|
406
411
|
"stroke-linecap": "round",
|
|
407
412
|
"stroke-linejoin": "round",
|
|
408
413
|
d: "M13 7l5 5m0 0l-5 5m5-5H6"
|
|
409
414
|
}, null, -1)
|
|
410
|
-
]))) :
|
|
411
|
-
e.direction_property == "rtl" ? (
|
|
415
|
+
]))) : a("", !0),
|
|
416
|
+
e.direction_property == "rtl" ? (i(), r("svg", Y, t[19] || (t[19] = [
|
|
412
417
|
o("path", {
|
|
413
418
|
"stroke-linecap": "round",
|
|
414
419
|
"stroke-linejoin": "round",
|
|
415
420
|
d: "M11 17l-5-5m0 0l5-5m-5 5h12"
|
|
416
421
|
}, null, -1)
|
|
417
|
-
]))) :
|
|
422
|
+
]))) : a("", !0)
|
|
418
423
|
])
|
|
419
424
|
])
|
|
420
|
-
])) :
|
|
425
|
+
])) : a("", !0)
|
|
421
426
|
], 10, p)
|
|
422
427
|
]);
|
|
423
428
|
}
|
|
424
|
-
const $ = /* @__PURE__ */ y(g, [["render", J], ["__scopeId", "data-v-
|
|
429
|
+
const $ = /* @__PURE__ */ y(g, [["render", J], ["__scopeId", "data-v-e5180c8a"]]);
|
|
425
430
|
export {
|
|
426
431
|
$ as default
|
|
427
432
|
};
|