cleek 2.11.37 → 2.11.38
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/main.cjs.js +1 -1
- package/dist/main.css +1 -1
- package/dist/main.es.js +290 -290
- package/dist/types/cleek-options/cleek-options.types.d.ts +1 -1
- package/package.json +1 -1
package/dist/main.es.js
CHANGED
|
@@ -39,24 +39,24 @@ function Lo() {
|
|
|
39
39
|
(function(t, n) {
|
|
40
40
|
e.exports = n();
|
|
41
41
|
})(So, function() {
|
|
42
|
-
var t = "__v-click-outside", n = typeof window < "u", l = typeof navigator < "u", i = n && ("ontouchstart" in window || l && navigator.msMaxTouchPoints > 0) ? ["touchstart"] : ["click"], a = function(
|
|
43
|
-
var v =
|
|
44
|
-
(0,
|
|
45
|
-
}, p = function(
|
|
46
|
-
var
|
|
42
|
+
var t = "__v-click-outside", n = typeof window < "u", l = typeof navigator < "u", i = n && ("ontouchstart" in window || l && navigator.msMaxTouchPoints > 0) ? ["touchstart"] : ["click"], a = function(r) {
|
|
43
|
+
var v = r.event, s = r.handler;
|
|
44
|
+
(0, r.middleware)(v) && s(v);
|
|
45
|
+
}, p = function(r, v) {
|
|
46
|
+
var s = (function(_) {
|
|
47
47
|
var W = typeof _ == "function";
|
|
48
48
|
if (!W && typeof _ != "object") throw new Error("v-click-outside: Binding value must be a function or an object");
|
|
49
49
|
return { handler: W ? _ : _.handler, middleware: _.middleware || function(D) {
|
|
50
50
|
return D;
|
|
51
51
|
}, events: _.events || i, isActive: _.isActive !== !1, detectIframe: _.detectIframe !== !1, capture: !!_.capture };
|
|
52
|
-
})(v.value), h =
|
|
53
|
-
if (
|
|
54
|
-
if (
|
|
52
|
+
})(v.value), h = s.handler, m = s.middleware, k = s.detectIframe, b = s.capture;
|
|
53
|
+
if (s.isActive) {
|
|
54
|
+
if (r[t] = s.events.map(function(_) {
|
|
55
55
|
return { event: _, srcTarget: document.documentElement, handler: function(W) {
|
|
56
56
|
return (function(D) {
|
|
57
57
|
var F = D.el, K = D.event, oe = D.handler, ae = D.middleware, de = K.path || K.composedPath && K.composedPath();
|
|
58
58
|
(de ? de.indexOf(F) < 0 : !F.contains(K.target)) && a({ event: K, handler: oe, middleware: ae });
|
|
59
|
-
})({ el:
|
|
59
|
+
})({ el: r, event: W, handler: h, middleware: m });
|
|
60
60
|
}, capture: b };
|
|
61
61
|
}), k) {
|
|
62
62
|
var y = { event: "blur", srcTarget: window, handler: function(_) {
|
|
@@ -66,27 +66,27 @@ function Lo() {
|
|
|
66
66
|
var ae = document.activeElement;
|
|
67
67
|
ae && ae.tagName === "IFRAME" && !D.contains(ae) && a({ event: F, handler: K, middleware: oe });
|
|
68
68
|
}, 0);
|
|
69
|
-
})({ el:
|
|
69
|
+
})({ el: r, event: _, handler: h, middleware: m });
|
|
70
70
|
}, capture: b };
|
|
71
|
-
|
|
71
|
+
r[t] = [].concat(r[t], [y]);
|
|
72
72
|
}
|
|
73
|
-
|
|
73
|
+
r[t].forEach(function(_) {
|
|
74
74
|
var W = _.event, D = _.srcTarget, F = _.handler;
|
|
75
75
|
return setTimeout(function() {
|
|
76
|
-
|
|
76
|
+
r[t] && D.addEventListener(W, F, b);
|
|
77
77
|
}, 0);
|
|
78
78
|
});
|
|
79
79
|
}
|
|
80
|
-
}, u = function(
|
|
81
|
-
(
|
|
80
|
+
}, u = function(r) {
|
|
81
|
+
(r[t] || []).forEach(function(v) {
|
|
82
82
|
return v.srcTarget.removeEventListener(v.event, v.handler, v.capture);
|
|
83
|
-
}), delete
|
|
84
|
-
}, f = n ? { beforeMount: p, updated: function(
|
|
85
|
-
var
|
|
86
|
-
JSON.stringify(
|
|
83
|
+
}), delete r[t];
|
|
84
|
+
}, f = n ? { beforeMount: p, updated: function(r, v) {
|
|
85
|
+
var s = v.value, h = v.oldValue;
|
|
86
|
+
JSON.stringify(s) !== JSON.stringify(h) && (u(r), p(r, { value: s }));
|
|
87
87
|
}, unmounted: u } : {};
|
|
88
|
-
return { install: function(
|
|
89
|
-
|
|
88
|
+
return { install: function(r) {
|
|
89
|
+
r.directive("click-outside", f);
|
|
90
90
|
}, directive: f };
|
|
91
91
|
});
|
|
92
92
|
})(Oe)), Oe.exports;
|
|
@@ -164,7 +164,7 @@ function Io(e) {
|
|
|
164
164
|
}
|
|
165
165
|
const le = lo("cleek-options", () => {
|
|
166
166
|
const e = M($t), o = c(() => e.value.colors), t = c(() => e.value.styles), n = c(() => e.value.button), l = c(() => e.value.chip), i = c(() => e.value.div), a = c(() => e.value.img), p = c(() => e.value.popup), u = c(() => e.value.select), f = c(() => e.value.table);
|
|
167
|
-
return ue(o, (
|
|
167
|
+
return ue(o, (r) => Io(r), { deep: !0, immediate: !0 }), {
|
|
168
168
|
cleekOptions: e,
|
|
169
169
|
colorsOptions: o,
|
|
170
170
|
stylesOptions: t,
|
|
@@ -238,15 +238,15 @@ const Oo = {
|
|
|
238
238
|
setup(e, { emit: o }) {
|
|
239
239
|
const t = e, n = o, l = c(() => t.time ? (t.timeInMinutes, Ee(+t.time)) : t.datetime ? typeof t.datetime == "string" ? Bt(t.datetime) : p(t.datetime) : ""), i = c(() => t.date ? typeof t.date == "string" ? dt(t.date) : a(t.date) : t.datetime ? typeof t.datetime == "string" ? dt(t.datetime) : a(t.datetime) : "");
|
|
240
240
|
function a(u) {
|
|
241
|
-
const f = String(u.getDate()).padStart(2, "0"),
|
|
242
|
-
return `${f}/${
|
|
241
|
+
const f = String(u.getDate()).padStart(2, "0"), r = String(u.getMonth() + 1).padStart(2, "0"), v = String(u.getFullYear()).slice(-2);
|
|
242
|
+
return `${f}/${r}/${v}`;
|
|
243
243
|
}
|
|
244
244
|
function p(u) {
|
|
245
|
-
const f = String(u.getHours()).padStart(2, "0"),
|
|
246
|
-
return `${f}:${
|
|
245
|
+
const f = String(u.getHours()).padStart(2, "0"), r = String(u.getMinutes()).padStart(2, "0");
|
|
246
|
+
return `${f}:${r}`;
|
|
247
247
|
}
|
|
248
248
|
return (u, f) => {
|
|
249
|
-
const
|
|
249
|
+
const r = tt("tooltip");
|
|
250
250
|
return i.value ? e.split || e.date ? (d(), g("div", {
|
|
251
251
|
key: 1,
|
|
252
252
|
class: "ck-datetime-shower--split",
|
|
@@ -261,7 +261,7 @@ const Oo = {
|
|
|
261
261
|
}, [
|
|
262
262
|
G(L(i.value), 1)
|
|
263
263
|
])), [
|
|
264
|
-
[
|
|
264
|
+
[r, l.value]
|
|
265
265
|
]) : (d(), g("span", Oo, L(e.noDateMsg), 1));
|
|
266
266
|
};
|
|
267
267
|
}
|
|
@@ -299,20 +299,20 @@ const Oo = {
|
|
|
299
299
|
close: f
|
|
300
300
|
});
|
|
301
301
|
const { cleekOptions: n } = ne(le()), l = M(!1), i = M(), a = M(), p = M(), u = c(() => {
|
|
302
|
-
const
|
|
303
|
-
t.dark &&
|
|
302
|
+
const r = [];
|
|
303
|
+
t.dark && r.push("ck-dropdown--content__dark");
|
|
304
304
|
const v = t.layout || n.value.styles.layout;
|
|
305
|
-
return v &&
|
|
305
|
+
return v && r.push(`ck-dropdown--content__${v}`), r;
|
|
306
306
|
});
|
|
307
|
-
ue(() => l.value, (
|
|
308
|
-
if (
|
|
309
|
-
const v = document.documentElement.clientHeight,
|
|
310
|
-
h.top < v / 2 ? (m.top = `${h.bottom}px`, m["margin-top"] = "0.5rem") : (m.bottom = `${v - h.top}px`, m["margin-bottom"] = "0.5rem"), t.align === "left" ? m.left = `${h.left}px` : t.align === "right" && (m.right = `${
|
|
307
|
+
ue(() => l.value, (r) => {
|
|
308
|
+
if (r) {
|
|
309
|
+
const v = document.documentElement.clientHeight, s = document.documentElement.clientWidth, h = i.value.getBoundingClientRect(), m = {};
|
|
310
|
+
h.top < v / 2 ? (m.top = `${h.bottom}px`, m["margin-top"] = "0.5rem") : (m.bottom = `${v - h.top}px`, m["margin-bottom"] = "0.5rem"), t.align === "left" ? m.left = `${h.left}px` : t.align === "right" && (m.right = `${s - h.right}px`), p.value = m;
|
|
311
311
|
}
|
|
312
|
-
}), ue(() => a.value, (
|
|
313
|
-
if (
|
|
312
|
+
}), ue(() => a.value, (r) => {
|
|
313
|
+
if (r && t.align !== "left" && t.align !== "right") {
|
|
314
314
|
const v = i.value.getBoundingClientRect();
|
|
315
|
-
p.value.left = `${v.left + v.width / 2 -
|
|
315
|
+
p.value.left = `${v.left + v.width / 2 - r.getBoundingClientRect().width / 2}px`;
|
|
316
316
|
}
|
|
317
317
|
});
|
|
318
318
|
function f() {
|
|
@@ -320,8 +320,8 @@ const Oo = {
|
|
|
320
320
|
}
|
|
321
321
|
return $e(() => {
|
|
322
322
|
window.addEventListener("scroll", () => l.value = !1);
|
|
323
|
-
}), (
|
|
324
|
-
const
|
|
323
|
+
}), (r, v) => {
|
|
324
|
+
const s = tt("click-outside");
|
|
325
325
|
return d(), g("div", {
|
|
326
326
|
ref_key: "dropdownRef",
|
|
327
327
|
ref: i,
|
|
@@ -333,7 +333,7 @@ const Oo = {
|
|
|
333
333
|
class: "ck-dropdown--trigger",
|
|
334
334
|
onClick: v[0] || (v[0] = (h) => l.value = !0)
|
|
335
335
|
}, [
|
|
336
|
-
O(
|
|
336
|
+
O(r.$slots, "trigger", {}, void 0, !0)
|
|
337
337
|
]),
|
|
338
338
|
(d(), S(Pe, { to: "body" }, [
|
|
339
339
|
l.value ? re((d(), g("div", {
|
|
@@ -343,9 +343,9 @@ const Oo = {
|
|
|
343
343
|
class: P(["ck-dropdown--content", u.value]),
|
|
344
344
|
style: E(p.value)
|
|
345
345
|
}, [
|
|
346
|
-
O(
|
|
346
|
+
O(r.$slots, "content", {}, void 0, !0)
|
|
347
347
|
], 6)), [
|
|
348
|
-
[
|
|
348
|
+
[s, () => l.value = !1]
|
|
349
349
|
]) : C("", !0)
|
|
350
350
|
]))
|
|
351
351
|
], 544);
|
|
@@ -447,20 +447,20 @@ const Tt = /* @__PURE__ */ U(Zo, [["render", Xo], ["__scopeId", "data-v-53984b6f
|
|
|
447
447
|
},
|
|
448
448
|
setup(e) {
|
|
449
449
|
const o = e, t = c(() => {
|
|
450
|
-
var u, f,
|
|
450
|
+
var u, f, r;
|
|
451
451
|
const a = [];
|
|
452
452
|
(o.autoWidth || (u = o.col) != null && u.autoWidth) && a.push("auto-width"), (o.overflowAuto || (f = o.col) != null && f.overflowAuto) && a.push("overflow-auto");
|
|
453
|
-
const p = o.verticalAlign || ((
|
|
453
|
+
const p = o.verticalAlign || ((r = o.col) == null ? void 0 : r.verticalAlign);
|
|
454
454
|
return p && a.push(`vertical-align--${p}`), a;
|
|
455
455
|
}), n = c(() => {
|
|
456
|
-
var u, f,
|
|
456
|
+
var u, f, r;
|
|
457
457
|
const a = [], p = o.align || ((u = o.col) == null ? void 0 : u.align);
|
|
458
|
-
return p && (p === "center" && a.push("align-center"), p === "right" && a.push("align-right")), (o.block || (f = o.col) != null && f.block) && a.push("block"), (o.nowrap || (
|
|
458
|
+
return p && (p === "center" && a.push("align-center"), p === "right" && a.push("align-right")), (o.block || (f = o.col) != null && f.block) && a.push("block"), (o.nowrap || (r = o.col) != null && r.nowrap) && a.push("no-wrap-text"), a;
|
|
459
459
|
}), l = c(() => {
|
|
460
|
-
var f,
|
|
460
|
+
var f, r, v, s, h, m, k, b, y;
|
|
461
461
|
const a = {};
|
|
462
462
|
let p;
|
|
463
|
-
(o.minWidth || (f = o.col) != null && f.minWidth) && (p = o.minWidth || ((
|
|
463
|
+
(o.minWidth || (f = o.col) != null && f.minWidth) && (p = o.minWidth || ((r = o.col) == null ? void 0 : r.minWidth)), (o.fixedWidth || (v = o.col) != null && v.fixedWidth) && (p = o.fixedWidth || ((s = o.col) == null ? void 0 : s.fixedWidth)), p && (a.minWidth = p);
|
|
464
464
|
let u;
|
|
465
465
|
return (o.maxWidth || (h = o.col) != null && h.maxWidth) && (u = o.maxWidth || ((m = o.col) == null ? void 0 : m.maxWidth)), (o.fixedWidth || (k = o.col) != null && k.fixedWidth) && (u = o.fixedWidth || ((b = o.col) == null ? void 0 : b.fixedWidth)), u && (a.maxWidth = u), (o.maxHeight || (y = o.col) != null && y.maxHeight) && (a.maxHeight = o.maxHeight), a;
|
|
466
466
|
}), i = c(() => o.col ? A.isColumnDisplayed(o.col) : !0);
|
|
@@ -528,29 +528,29 @@ const Tt = /* @__PURE__ */ U(Zo, [["render", Xo], ["__scopeId", "data-v-53984b6f
|
|
|
528
528
|
emits: ["click"],
|
|
529
529
|
setup(e, { emit: o }) {
|
|
530
530
|
const t = e, n = o, l = c(() => {
|
|
531
|
-
const
|
|
532
|
-
return t.iconPack && (t.iconPack === "cleek" || t.iconPack === "feather") ? t.iconPack :
|
|
531
|
+
const r = "font-awesome";
|
|
532
|
+
return t.iconPack && (t.iconPack === "cleek" || t.iconPack === "feather") ? t.iconPack : r;
|
|
533
533
|
}), i = c(() => {
|
|
534
|
-
const
|
|
535
|
-
return t.color && A.isColorTemplateVariable(t.color) &&
|
|
534
|
+
const r = [];
|
|
535
|
+
return t.color && A.isColorTemplateVariable(t.color) && r.push(`ck-component__color--${t.color}`), t.size && r.push(`ck-icon__size-${t.size}`), r;
|
|
536
536
|
}), a = c(() => {
|
|
537
|
-
const
|
|
538
|
-
return t.color && !A.isColorTemplateVariable(t.color) &&
|
|
537
|
+
const r = [];
|
|
538
|
+
return t.color && !A.isColorTemplateVariable(t.color) && r.push({ color: t.color }), r;
|
|
539
539
|
});
|
|
540
|
-
function p(
|
|
541
|
-
n("click",
|
|
540
|
+
function p(r) {
|
|
541
|
+
n("click", r);
|
|
542
542
|
}
|
|
543
543
|
const u = c(() => {
|
|
544
|
-
const
|
|
545
|
-
return `mask: url(${
|
|
544
|
+
const r = `/src/assets/icons/${t.icon}.svg`;
|
|
545
|
+
return `mask: url(${r}) no-repeat center; -webkit-mask: url(${r}) no-repeat center;`;
|
|
546
546
|
}), f = c(() => {
|
|
547
|
-
const
|
|
548
|
-
return t.color ? t.color && A.isColorTemplateVariable(t.color) &&
|
|
547
|
+
const r = [];
|
|
548
|
+
return t.color ? t.color && A.isColorTemplateVariable(t.color) && r.push(`ck-component__color-background--${t.color}`) : r.push("ck-component__color--primary"), t.size && r.push("ck-icon__cleek-small"), t.size === "m" && r.push("ck-icon__cleek-medium"), t.size === "l" && r.push("ck-icon__cleek-large"), r;
|
|
549
549
|
});
|
|
550
|
-
return (
|
|
550
|
+
return (r, v) => (d(), g("div", {
|
|
551
551
|
class: P(["ck-icon", i.value]),
|
|
552
552
|
style: E(a.value),
|
|
553
|
-
onClick: v[0] || (v[0] = (
|
|
553
|
+
onClick: v[0] || (v[0] = (s) => p(s))
|
|
554
554
|
}, [
|
|
555
555
|
l.value === "font-awesome" ? (d(), S(xe(no), {
|
|
556
556
|
key: 0,
|
|
@@ -610,32 +610,32 @@ const al = ["title", "aria-label", "disabled", "tabindex"], Ze = "transparent",
|
|
|
610
610
|
emits: ["click"],
|
|
611
611
|
setup(e, { emit: o }) {
|
|
612
612
|
const t = e, n = o, { cleekOptions: l } = ne(le()), { windowWidth: i } = ye(), a = c(() => t.type ? t.type : l.value ? l.value.button.type : il), p = c(() => t.backgroundColor ? t.backgroundColor : l.value && !t.type ? l.value.button.backgroundColor : Ze), u = c(() => t.textColor ? t.textColor : l.value && !t.type ? l.value.button.textColor : ""), f = c(() => {
|
|
613
|
-
const
|
|
614
|
-
|
|
613
|
+
const s = [];
|
|
614
|
+
s.push(A.getGroupClass(t, i.value)), (t.color || pt) !== pt && (a.value === "filled" ? s.push(`ck-component__bg-color--${t.color}`) : a.value === "soft" ? s.push(`ck-component__soft-color--${t.color}`) : s.push(`ck-component__border-color--${t.color}`)), p.value !== Ze && A.isColorTemplateVariable(p.value) && s.push(`ck-component__bg-color--${p.value}`), u.value && A.isColorTemplateVariable(u.value) && s.push(`ck-component__color--${u.value}`);
|
|
615
615
|
const m = t.align || sl;
|
|
616
|
-
(m === "center" || m === "right") &&
|
|
616
|
+
(m === "center" || m === "right") && s.push(`ck-button__align--${t.align}`);
|
|
617
617
|
const k = t.layout || l.value.styles.layout;
|
|
618
|
-
return k &&
|
|
619
|
-
}),
|
|
620
|
-
const
|
|
618
|
+
return k && s.push(k), s.push(`type-${a.value}`), t.size && s.push(`ck-button-size__${t.size}`), t.isLoading && s.push("is-loading-btn"), s;
|
|
619
|
+
}), r = c(() => {
|
|
620
|
+
const s = [];
|
|
621
621
|
let h = !1;
|
|
622
622
|
if (t.widthBreaks) {
|
|
623
623
|
const m = A.getWidthByWidthBreaks(t.widthBreaks, i.value);
|
|
624
|
-
m && (h = !0,
|
|
624
|
+
m && (h = !0, s.push({ width: m }));
|
|
625
625
|
}
|
|
626
|
-
return u.value && !A.isColorTemplateVariable(u.value) &&
|
|
626
|
+
return u.value && !A.isColorTemplateVariable(u.value) && s.push({ color: `${u.value} !important` }), t.width && !h && s.push({ width: t.width }), p.value !== Ze && !A.isColorTemplateVariable(p.value) && s.push({ "background-color": p.value }), t.color && !A.isColorTemplateVariable(t.color) && (a.value === "outlined" ? (s.push({ "border-color": t.color }), s.push({ color: t.color })) : a.value === "filled" ? (s.push({ color: "white" }), s.push({ "border-color": t.color }), s.push({ "background-color": t.color })) : a.value === "flat" ? s.push({ color: t.color }) : a.value === "soft" && (s.push({ color: t.color }), s.push({ "border-color": "transparent" }), s.push({ "background-color": `color-mix(in srgb, ${t.color} 12%, transparent)` }))), s;
|
|
627
627
|
});
|
|
628
|
-
function v(
|
|
629
|
-
t.isLoading || n("click",
|
|
628
|
+
function v(s) {
|
|
629
|
+
t.isLoading || n("click", s);
|
|
630
630
|
}
|
|
631
|
-
return (
|
|
631
|
+
return (s, h) => (d(), g("button", {
|
|
632
632
|
type: "button",
|
|
633
633
|
class: P(f.value),
|
|
634
634
|
title: e.title,
|
|
635
635
|
"aria-label": e.title,
|
|
636
636
|
disabled: e.disabled,
|
|
637
637
|
tabindex: e.tabindex,
|
|
638
|
-
style: E(
|
|
638
|
+
style: E(r.value),
|
|
639
639
|
onClick: h[0] || (h[0] = (m) => v(m))
|
|
640
640
|
}, [
|
|
641
641
|
e.isLoading ? (d(), S(X, {
|
|
@@ -645,21 +645,21 @@ const al = ["title", "aria-label", "disabled", "tabindex"], Ze = "transparent",
|
|
|
645
645
|
})) : (d(), g(J, { key: 1 }, [
|
|
646
646
|
e.icon ? (d(), S(X, {
|
|
647
647
|
key: 0,
|
|
648
|
-
class: P(["ck-button__icon-left", { "just-icon": !
|
|
648
|
+
class: P(["ck-button__icon-left", { "just-icon": !s.$slots.default }]),
|
|
649
649
|
icon: e.icon,
|
|
650
650
|
"icon-pack": e.iconPack
|
|
651
651
|
}, null, 8, ["icon", "icon-pack", "class"])) : C("", !0),
|
|
652
|
-
O(
|
|
652
|
+
O(s.$slots, "default", {}, void 0, !0),
|
|
653
653
|
e.iconRight ? (d(), S(X, {
|
|
654
654
|
key: 1,
|
|
655
|
-
class: P(["ck-button__icon-right", { "just-icon": !
|
|
655
|
+
class: P(["ck-button__icon-right", { "just-icon": !s.$slots.default }]),
|
|
656
656
|
icon: e.iconRight,
|
|
657
657
|
"icon-pack": e.iconPack
|
|
658
658
|
}, null, 8, ["icon", "icon-pack", "class"])) : C("", !0)
|
|
659
659
|
], 64))
|
|
660
660
|
], 14, al));
|
|
661
661
|
}
|
|
662
|
-
}), _e = /* @__PURE__ */ U(rl, [["__scopeId", "data-v-
|
|
662
|
+
}), _e = /* @__PURE__ */ U(rl, [["__scopeId", "data-v-245f12d7"]]), ul = ["for"], cl = "m", dl = /* @__PURE__ */ z({
|
|
663
663
|
__name: "ck-label",
|
|
664
664
|
props: {
|
|
665
665
|
for: {},
|
|
@@ -733,7 +733,7 @@ const al = ["title", "aria-label", "disabled", "tabindex"], Ze = "transparent",
|
|
|
733
733
|
setup(e, { expose: o, emit: t }) {
|
|
734
734
|
const n = fe(e, "modelValue"), l = e, i = t;
|
|
735
735
|
o({ focus: W, select: D });
|
|
736
|
-
const { cleekOptions: a } = ne(le()), { windowWidth: p } = ye(), u = M(), f = M(""),
|
|
736
|
+
const { cleekOptions: a } = ne(le()), { windowWidth: p } = ye(), u = M(), f = M(""), r = M(!1), v = M(!1), s = c(() => r.value ? "text" : l.plusMinusButtons ? "number" : l.type), h = c(() => l.justInteger || l.plusMinusButtons), m = c(() => l.labelAlign ? l.labelAlign : l.align ? l.align : l.plusMinusButtons ? vt : "left"), k = c(() => {
|
|
737
737
|
const V = [];
|
|
738
738
|
let T = "";
|
|
739
739
|
if (l.width && (T = l.width), l.plusMinusButtons && (T = ml), T && V.push({ width: T }), l.widthBreaks) {
|
|
@@ -764,7 +764,7 @@ const al = ["title", "aria-label", "disabled", "tabindex"], Ze = "transparent",
|
|
|
764
764
|
ue(
|
|
765
765
|
() => n.value,
|
|
766
766
|
(V) => {
|
|
767
|
-
_ &&
|
|
767
|
+
_ && s.value === "number" && Number(f.value || 0) === Number(V) || (_ = !0, me(V));
|
|
768
768
|
},
|
|
769
769
|
{ immediate: !0 }
|
|
770
770
|
);
|
|
@@ -791,7 +791,7 @@ const al = ["title", "aria-label", "disabled", "tabindex"], Ze = "transparent",
|
|
|
791
791
|
i("click", V), l.autoSelect && ((T = u.value) == null || T.select());
|
|
792
792
|
}
|
|
793
793
|
function ae() {
|
|
794
|
-
if (
|
|
794
|
+
if (s.value === "number") {
|
|
795
795
|
const T = f.value, Z = T === "" || T === null || T === void 0, R = Z ? 0 : Ce(T);
|
|
796
796
|
n.value = R, !Z && Number(T) !== R && (f.value = R), F(R);
|
|
797
797
|
return;
|
|
@@ -808,7 +808,7 @@ const al = ["title", "aria-label", "disabled", "tabindex"], Ze = "transparent",
|
|
|
808
808
|
de(), K(n.value);
|
|
809
809
|
}
|
|
810
810
|
function x(V) {
|
|
811
|
-
i("focus", V), l.preventAutocomplete && (v.value = !0),
|
|
811
|
+
i("focus", V), l.preventAutocomplete && (v.value = !0), s.value === "number" && !f.value && (f.value = "");
|
|
812
812
|
}
|
|
813
813
|
function B(V) {
|
|
814
814
|
de() && K(n.value), i("blur", V);
|
|
@@ -830,7 +830,7 @@ const al = ["title", "aria-label", "disabled", "tabindex"], Ze = "transparent",
|
|
|
830
830
|
return Number.isFinite(T) ? T : 0;
|
|
831
831
|
}
|
|
832
832
|
function me(V) {
|
|
833
|
-
if (
|
|
833
|
+
if (s.value === "number") {
|
|
834
834
|
const Z = V === "" || V === null || V === void 0, R = Z ? 0 : Ce(V);
|
|
835
835
|
return n.value = R, f.value = Z ? "" : R, R;
|
|
836
836
|
}
|
|
@@ -880,7 +880,7 @@ const al = ["title", "aria-label", "disabled", "tabindex"], Ze = "transparent",
|
|
|
880
880
|
ref_key: "inputRef",
|
|
881
881
|
ref: u,
|
|
882
882
|
"onUpdate:modelValue": T[1] || (T[1] = (Q) => f.value = Q),
|
|
883
|
-
type:
|
|
883
|
+
type: s.value,
|
|
884
884
|
autocomplete: e.preventAutocomplete ? "new-password" : e.autocomplete || "on",
|
|
885
885
|
readonly: e.readonly || e.preventAutocomplete && !v.value,
|
|
886
886
|
placeholder: e.placeholder,
|
|
@@ -899,10 +899,10 @@ const al = ["title", "aria-label", "disabled", "tabindex"], Ze = "transparent",
|
|
|
899
899
|
e.type === "password" ? (d(), g("div", {
|
|
900
900
|
key: 2,
|
|
901
901
|
class: P(["show-password", e.layout || ((R = xe(a)) == null ? void 0 : R.styles.layout)]),
|
|
902
|
-
onClick: T[7] || (T[7] = (Q) =>
|
|
902
|
+
onClick: T[7] || (T[7] = (Q) => r.value = !r.value)
|
|
903
903
|
}, [
|
|
904
904
|
H(X, {
|
|
905
|
-
icon:
|
|
905
|
+
icon: r.value ? "eye-slash" : "eye"
|
|
906
906
|
}, null, 8, ["icon"])
|
|
907
907
|
], 2)) : C("", !0),
|
|
908
908
|
e.iconRight && e.type !== "password" ? (d(), S(X, {
|
|
@@ -955,12 +955,12 @@ const al = ["title", "aria-label", "disabled", "tabindex"], Ze = "transparent",
|
|
|
955
955
|
n.isLoading || l("refreshList", !0);
|
|
956
956
|
}
|
|
957
957
|
function u(f) {
|
|
958
|
-
const
|
|
958
|
+
const r = f;
|
|
959
959
|
setTimeout(() => {
|
|
960
|
-
|
|
960
|
+
r === t.value && l("refreshList", !1);
|
|
961
961
|
}, 1e3);
|
|
962
962
|
}
|
|
963
|
-
return (f,
|
|
963
|
+
return (f, r) => (d(), g("div", {
|
|
964
964
|
class: P(["ck-table__header-items", a.value])
|
|
965
965
|
}, [
|
|
966
966
|
f.$slots.headerActionsLeft ? (d(), g("div", gl, [
|
|
@@ -976,17 +976,17 @@ const al = ["title", "aria-label", "disabled", "tabindex"], Ze = "transparent",
|
|
|
976
976
|
layout: "rounded",
|
|
977
977
|
icon: e.isLoading ? "spinner" : "rotate-right",
|
|
978
978
|
"is-loading": !!e.isLoading,
|
|
979
|
-
onClick:
|
|
979
|
+
onClick: r[0] || (r[0] = (v) => p())
|
|
980
980
|
}, null, 8, ["icon", "is-loading"])),
|
|
981
981
|
H(Dt, {
|
|
982
982
|
modelValue: t.value,
|
|
983
|
-
"onUpdate:modelValue":
|
|
983
|
+
"onUpdate:modelValue": r[1] || (r[1] = (v) => t.value = v),
|
|
984
984
|
class: "ck-table--search-input",
|
|
985
985
|
layout: "rounded",
|
|
986
986
|
icon: "magnifying-glass",
|
|
987
987
|
placeholder: "Buscar...",
|
|
988
988
|
"border-color": e.version === "colored" ? "white" : "",
|
|
989
|
-
onInput:
|
|
989
|
+
onInput: r[2] || (r[2] = (v) => u(v))
|
|
990
990
|
}, null, 8, ["modelValue", "border-color"])
|
|
991
991
|
], 64)) : C("", !0),
|
|
992
992
|
f.$slots.headerActionsRight ? (d(), g("div", kl, [
|
|
@@ -1019,7 +1019,7 @@ const al = ["title", "aria-label", "disabled", "tabindex"], Ze = "transparent",
|
|
|
1019
1019
|
},
|
|
1020
1020
|
set() {
|
|
1021
1021
|
}
|
|
1022
|
-
}), p = c(() => t.currentPage !== 1), u = c(() => !!
|
|
1022
|
+
}), p = c(() => t.currentPage !== 1), u = c(() => !!r.value.length), f = c(() => {
|
|
1023
1023
|
if (!t.listLength) return [];
|
|
1024
1024
|
const k = [], b = (ft - 1) / 2;
|
|
1025
1025
|
for (const y of Array(b).keys()) {
|
|
@@ -1027,7 +1027,7 @@ const al = ["title", "aria-label", "disabled", "tabindex"], Ze = "transparent",
|
|
|
1027
1027
|
_ > 0 && k.unshift(_);
|
|
1028
1028
|
}
|
|
1029
1029
|
return k;
|
|
1030
|
-
}),
|
|
1030
|
+
}), r = c(() => {
|
|
1031
1031
|
if (!t.listLength) return [];
|
|
1032
1032
|
const k = [], b = (ft - 1) / 2;
|
|
1033
1033
|
for (const y of Array(b).keys()) {
|
|
@@ -1042,7 +1042,7 @@ const al = ["title", "aria-label", "disabled", "tabindex"], Ze = "transparent",
|
|
|
1042
1042
|
return y && k.push(y), k;
|
|
1043
1043
|
});
|
|
1044
1044
|
ue(() => i.value, () => n("refreshList"));
|
|
1045
|
-
function
|
|
1045
|
+
function s(k) {
|
|
1046
1046
|
let b = +k.value;
|
|
1047
1047
|
b > t.totalPages && (b = t.totalPages), b < 1 && (b = 1), t.currentPage === b ? k.value = `${b}` : i.value = b;
|
|
1048
1048
|
}
|
|
@@ -1075,13 +1075,13 @@ const al = ["title", "aria-label", "disabled", "tabindex"], Ze = "transparent",
|
|
|
1075
1075
|
class: "ck-table__pagination-input",
|
|
1076
1076
|
type: "number",
|
|
1077
1077
|
onClick: b[2] || (b[2] = (y) => y.target.select()),
|
|
1078
|
-
onChange: b[3] || (b[3] = (y) =>
|
|
1078
|
+
onChange: b[3] || (b[3] = (y) => s(y.target))
|
|
1079
1079
|
}, null, 544), [
|
|
1080
1080
|
[qe, a.value]
|
|
1081
1081
|
]),
|
|
1082
1082
|
b[5] || (b[5] = w("div", { class: "ck-table__pagination--input-pointer" }, null, -1))
|
|
1083
1083
|
]),
|
|
1084
|
-
(d(!0), g(J, null, se(
|
|
1084
|
+
(d(!0), g(J, null, se(r.value, (y) => (d(), g("div", {
|
|
1085
1085
|
class: "ck-table__pagination-item--right",
|
|
1086
1086
|
onClick: (_) => i.value = y
|
|
1087
1087
|
}, L(y), 9, _l))), 256))
|
|
@@ -1117,25 +1117,25 @@ const al = ["title", "aria-label", "disabled", "tabindex"], Ze = "transparent",
|
|
|
1117
1117
|
"aria-disabled": n.disabled,
|
|
1118
1118
|
tabindex: n.disabled ? void 0 : "0"
|
|
1119
1119
|
})), a = c(() => {
|
|
1120
|
-
const
|
|
1121
|
-
return n.size &&
|
|
1120
|
+
const s = [];
|
|
1121
|
+
return n.size && s.push(`size__${n.size}`), s;
|
|
1122
1122
|
}), p = c(() => {
|
|
1123
|
-
const
|
|
1124
|
-
return n.color && A.isColorTemplateVariable(n.color) && (
|
|
1123
|
+
const s = [];
|
|
1124
|
+
return n.color && A.isColorTemplateVariable(n.color) && (s.push(`ck-component__border-color--${n.color}`), (t.value || t.value === null) && s.push(`ck-component__color-background--${n.color}`)), s;
|
|
1125
1125
|
}), u = c(() => {
|
|
1126
|
-
const
|
|
1127
|
-
return n.color && !A.isColorTemplateVariable(n.color) && (
|
|
1126
|
+
const s = [];
|
|
1127
|
+
return n.color && !A.isColorTemplateVariable(n.color) && (s.push({ borderColor: n.color }), (t.value || t.value === null) && s.push({ backgroundColor: n.color })), s;
|
|
1128
1128
|
}), f = c(() => {
|
|
1129
|
-
const
|
|
1130
|
-
return n.colorText && A.isColorTemplateVariable(n.colorText) &&
|
|
1131
|
-
}),
|
|
1132
|
-
const
|
|
1133
|
-
return n.colorText && !A.isColorTemplateVariable(n.colorText) &&
|
|
1129
|
+
const s = [];
|
|
1130
|
+
return n.colorText && A.isColorTemplateVariable(n.colorText) && s.push(`ck-component__color--${n.colorText}`), n.textSize && n.textSize !== Sl && s.push(`ck-checkbox--label-text-size--${n.textSize}`), s;
|
|
1131
|
+
}), r = c(() => {
|
|
1132
|
+
const s = [];
|
|
1133
|
+
return n.colorText && !A.isColorTemplateVariable(n.colorText) && s.push({ color: n.colorText }), s;
|
|
1134
1134
|
});
|
|
1135
1135
|
function v() {
|
|
1136
1136
|
n.preventAutoUpdate || (t.value = !t.value);
|
|
1137
1137
|
}
|
|
1138
|
-
return (
|
|
1138
|
+
return (s, h) => (d(), g("label", Ae(i.value, {
|
|
1139
1139
|
class: ["ck-checkbox", a.value],
|
|
1140
1140
|
onKeydown: h[4] || (h[4] = be(ie(() => {
|
|
1141
1141
|
}, ["prevent"]), ["space"])),
|
|
@@ -1161,10 +1161,10 @@ const al = ["title", "aria-label", "disabled", "tabindex"], Ze = "transparent",
|
|
|
1161
1161
|
onClick: h[2] || (h[2] = ie(() => {
|
|
1162
1162
|
}, ["prevent"]))
|
|
1163
1163
|
}, null, 6),
|
|
1164
|
-
e.label ||
|
|
1164
|
+
e.label || s.$slots.default ? (d(), g("span", {
|
|
1165
1165
|
key: 0,
|
|
1166
1166
|
class: P(["ck-checkbox--label", f.value]),
|
|
1167
|
-
style: E(
|
|
1167
|
+
style: E(r.value),
|
|
1168
1168
|
onClick: h[3] || (h[3] = ie(() => {
|
|
1169
1169
|
}, ["prevent"]))
|
|
1170
1170
|
}, [
|
|
@@ -1172,7 +1172,7 @@ const al = ["title", "aria-label", "disabled", "tabindex"], Ze = "transparent",
|
|
|
1172
1172
|
key: 0,
|
|
1173
1173
|
textContent: L(e.label)
|
|
1174
1174
|
}, null, 8, Dl)) : C("", !0),
|
|
1175
|
-
O(
|
|
1175
|
+
O(s.$slots, "default", {}, void 0, !0)
|
|
1176
1176
|
], 6)) : C("", !0)
|
|
1177
1177
|
], 16));
|
|
1178
1178
|
}
|
|
@@ -1242,7 +1242,7 @@ const Ml = {
|
|
|
1242
1242
|
function f() {
|
|
1243
1243
|
u || (u = !0, p.value = Pl());
|
|
1244
1244
|
}
|
|
1245
|
-
function
|
|
1245
|
+
function r() {
|
|
1246
1246
|
u && (u = !1, Al());
|
|
1247
1247
|
}
|
|
1248
1248
|
const v = c(() => {
|
|
@@ -1250,7 +1250,7 @@ const Ml = {
|
|
|
1250
1250
|
B && x.push(B);
|
|
1251
1251
|
const j = l.textColor || a.value.popup.textColor;
|
|
1252
1252
|
return j && A.isColorTemplateVariable(j) && x.push(`ck-component__color--${j}`), x;
|
|
1253
|
-
}),
|
|
1253
|
+
}), s = c(() => {
|
|
1254
1254
|
const x = [], B = l.fontSize || a.value.popup.fontSize;
|
|
1255
1255
|
B && x.push({ "font-size": B }), l.width && x.push({ width: l.width });
|
|
1256
1256
|
const j = l.width ? "95%" : l.maxWidth || a.value.popup.maxWidth;
|
|
@@ -1276,7 +1276,7 @@ const Ml = {
|
|
|
1276
1276
|
return j && A.isColorTemplateVariable(j) && x.push(`ck-component__bg-color--${j}`), _.value || x.push("close-btn-hidden"), x;
|
|
1277
1277
|
}), b = c(() => l.acceptBtnType ? l.acceptBtnType : a.value.popup.acceptBtnType ? a.value.popup.acceptBtnType : "outlined"), y = c(() => l.cancelBtnType ? l.cancelBtnType : a.value.popup.cancelBtnType ? a.value.popup.cancelBtnType : "flat"), _ = c(() => !(l.notCloseBtn || l.notClose)), W = c(() => l.acceptBtnText ? l.acceptBtnText : a.value.lang === "es" ? "Aceptar" : "Accept"), D = c(() => l.cancelBtnText ? l.cancelBtnText : a.value.lang === "es" ? "Cancelar" : "Cancel");
|
|
1278
1278
|
ue(() => t.value, (x) => {
|
|
1279
|
-
Lt(!x), x ? f() :
|
|
1279
|
+
Lt(!x), x ? f() : r();
|
|
1280
1280
|
});
|
|
1281
1281
|
function F() {
|
|
1282
1282
|
t.value = !1, i("close");
|
|
@@ -1303,7 +1303,7 @@ const Ml = {
|
|
|
1303
1303
|
return $e(() => {
|
|
1304
1304
|
window.addEventListener("keydown", ge), t.value && f();
|
|
1305
1305
|
}), ot(() => {
|
|
1306
|
-
window.removeEventListener("keydown", ge),
|
|
1306
|
+
window.removeEventListener("keydown", ge), r();
|
|
1307
1307
|
}), (x, B) => (d(), S(Pe, { to: "body" }, [
|
|
1308
1308
|
t.value ? (d(), g("div", Ml, [
|
|
1309
1309
|
w("div", {
|
|
@@ -1317,7 +1317,7 @@ const Ml = {
|
|
|
1317
1317
|
}, [
|
|
1318
1318
|
w("div", {
|
|
1319
1319
|
class: P(["ck-popup__content", v.value]),
|
|
1320
|
-
style: E(
|
|
1320
|
+
style: E(s.value),
|
|
1321
1321
|
onMousedown: B[4] || (B[4] = ie(() => {
|
|
1322
1322
|
}, ["stop"]))
|
|
1323
1323
|
}, [
|
|
@@ -1425,22 +1425,22 @@ const Ml = {
|
|
|
1425
1425
|
}
|
|
1426
1426
|
return (u, f) => (d(), S(lt, {
|
|
1427
1427
|
modelValue: i.value,
|
|
1428
|
-
"onUpdate:modelValue": f[0] || (f[0] = (
|
|
1428
|
+
"onUpdate:modelValue": f[0] || (f[0] = (r) => i.value = r),
|
|
1429
1429
|
title: "Administrador de columnas"
|
|
1430
1430
|
}, {
|
|
1431
1431
|
default: q(() => [
|
|
1432
1432
|
w("div", El, [
|
|
1433
|
-
(d(!0), g(J, null, se(l.value, (
|
|
1433
|
+
(d(!0), g(J, null, se(l.value, (r, v) => (d(), g("div", {
|
|
1434
1434
|
key: v,
|
|
1435
1435
|
class: "columns-manger__item"
|
|
1436
1436
|
}, [
|
|
1437
1437
|
H(St, {
|
|
1438
|
-
modelValue:
|
|
1439
|
-
"onUpdate:modelValue": (
|
|
1440
|
-
onClick: (
|
|
1438
|
+
modelValue: r.value,
|
|
1439
|
+
"onUpdate:modelValue": (s) => r.value = s,
|
|
1440
|
+
onClick: (s) => p(r.name, r.value)
|
|
1441
1441
|
}, {
|
|
1442
1442
|
default: q(() => [
|
|
1443
|
-
G(L(
|
|
1443
|
+
G(L(r.title), 1)
|
|
1444
1444
|
]),
|
|
1445
1445
|
_: 2
|
|
1446
1446
|
}, 1032, ["modelValue", "onUpdate:modelValue", "onClick"])
|
|
@@ -1461,8 +1461,8 @@ const Ml = {
|
|
|
1461
1461
|
setup(e) {
|
|
1462
1462
|
const o = e, { cleekOptions: t } = ne(le()), n = c(() => !(typeof o.listLength > "u" || o.listLength)), l = c(() => o.loadingText ? o.loadingText : t.value.lang === "es" ? "Cargando..." : "Loading..."), i = c(() => o.noResultsText ? o.noResultsText : t.value.lang === "es" ? "No se encontraron resultados" : "No results found");
|
|
1463
1463
|
return (a, p) => {
|
|
1464
|
-
const u = Y("ck-icon"), f = Y("ck-td"),
|
|
1465
|
-
return n.value ? (d(), S(
|
|
1464
|
+
const u = Y("ck-icon"), f = Y("ck-td"), r = Y("ck-tr");
|
|
1465
|
+
return n.value ? (d(), S(r, { key: 0 }, {
|
|
1466
1466
|
default: q(() => [
|
|
1467
1467
|
H(f, {
|
|
1468
1468
|
class: "no-result-text",
|
|
@@ -1539,7 +1539,7 @@ const Ml = {
|
|
|
1539
1539
|
setup(e, { emit: o }) {
|
|
1540
1540
|
const t = fe(e, "selectedRows"), n = e, l = o, { cleekOptions: i } = ne(le()), { windowWidth: a } = ye(), p = M({
|
|
1541
1541
|
columnsManager: !1
|
|
1542
|
-
}), u = c(() => !!t.value), f = c(() => typeof n.darkMode < "u" ? n.darkMode : i.value.darkMode),
|
|
1542
|
+
}), u = c(() => !!t.value), f = c(() => typeof n.darkMode < "u" ? n.darkMode : i.value.darkMode), r = c(() => Math.ceil(n.listLength / n.itemsPerPage)), v = c(() => n.version ? n.version : i.value ? i.value.table.version : "default"), s = c(() => {
|
|
1543
1543
|
if (n.headerTextColor) return n.headerTextColor;
|
|
1544
1544
|
if (i.value) {
|
|
1545
1545
|
if (i.value.table.headerTextColor)
|
|
@@ -1662,7 +1662,7 @@ const Ml = {
|
|
|
1662
1662
|
})
|
|
1663
1663
|
]),
|
|
1664
1664
|
O(x.$slots, "selectedRowsActions", {}, void 0, !0),
|
|
1665
|
-
e.currentPage &&
|
|
1665
|
+
e.currentPage && r.value > 1 ? (d(), S(ce, {
|
|
1666
1666
|
key: 0,
|
|
1667
1667
|
size: "s",
|
|
1668
1668
|
color: "dark"
|
|
@@ -1696,7 +1696,7 @@ const Ml = {
|
|
|
1696
1696
|
(d(!0), g(J, null, se(y.value, (R, Q) => (d(), S(Ce, {
|
|
1697
1697
|
align: R.align,
|
|
1698
1698
|
"min-width": R.minWidth,
|
|
1699
|
-
"text-color":
|
|
1699
|
+
"text-color": s.value,
|
|
1700
1700
|
"background-color": h.value
|
|
1701
1701
|
}, {
|
|
1702
1702
|
default: q(() => [
|
|
@@ -1770,12 +1770,12 @@ const Ml = {
|
|
|
1770
1770
|
"hide-items-per-page": e.hideItemsPerPage,
|
|
1771
1771
|
"list-length": e.listLength
|
|
1772
1772
|
}, null, 8, ["current-page", "items-per-page", "hide-items-per-page", "list-length"]),
|
|
1773
|
-
e.currentPage &&
|
|
1773
|
+
e.currentPage && r.value > 1 ? (d(), S(Tl, {
|
|
1774
1774
|
key: 6,
|
|
1775
1775
|
"current-page": W.value,
|
|
1776
1776
|
"onUpdate:currentPage": B[7] || (B[7] = (R) => W.value = R),
|
|
1777
1777
|
class: "ck-table__pagination",
|
|
1778
|
-
"total-pages":
|
|
1778
|
+
"total-pages": r.value,
|
|
1779
1779
|
"items-per-page": e.itemsPerPage,
|
|
1780
1780
|
"list-length": e.listLength,
|
|
1781
1781
|
align: e.paginationAlign,
|
|
@@ -1813,7 +1813,7 @@ const Ml = {
|
|
|
1813
1813
|
}), p = c(() => {
|
|
1814
1814
|
const b = t.btnType || l.value.button.type;
|
|
1815
1815
|
return b.toLowerCase() === "filled" ? "outlined" : b;
|
|
1816
|
-
}), u = c(() => t.btnLayout || l.value.styles.layout), f = c(() => t.maxStep === 1 || p.value === "flat" ? "" : "center"),
|
|
1816
|
+
}), u = c(() => t.btnLayout || l.value.styles.layout), f = c(() => t.maxStep === 1 || p.value === "flat" ? "" : "center"), r = c(() => p.value === "flat" ? "" : "left"), v = c(() => p.value === "flat" ? "" : "right"), s = c(() => i.value === 1 ? t.iconDisableLeft ? t.iconDisableLeft : "grip-lines-vertical" : t.iconArrowLeft ? t.iconArrowLeft : "arrow-left"), h = c(() => i.value === t.maxStep ? t.iconDisableRight ? t.iconDisableRight : "grip-lines-vertical" : t.iconArrowRight ? t.iconArrowRight : "arrow-right");
|
|
1817
1817
|
function m() {
|
|
1818
1818
|
i.value <= 1 || (i.value = i.value - 1);
|
|
1819
1819
|
}
|
|
@@ -1828,10 +1828,10 @@ const Ml = {
|
|
|
1828
1828
|
H(_, {
|
|
1829
1829
|
width: "42px",
|
|
1830
1830
|
align: "center",
|
|
1831
|
-
group:
|
|
1831
|
+
group: r.value,
|
|
1832
1832
|
type: p.value,
|
|
1833
1833
|
layout: u.value,
|
|
1834
|
-
icon:
|
|
1834
|
+
icon: s.value,
|
|
1835
1835
|
onClick: y[0] || (y[0] = (W) => m())
|
|
1836
1836
|
}, null, 8, ["group", "type", "layout", "icon"]),
|
|
1837
1837
|
i.value - 2 >= 1 ? (d(), S(_, {
|
|
@@ -2119,7 +2119,7 @@ const Ne = /* @__PURE__ */ Te(un, [["render", yn], ["__scopeId", "data-v-65eb861
|
|
|
2119
2119
|
}
|
|
2120
2120
|
},
|
|
2121
2121
|
setup(e, { emit: o }) {
|
|
2122
|
-
const t = c(() => ao(e.pageDate)), n = c(() => io(e.pageDate)), l = (f,
|
|
2122
|
+
const t = c(() => ao(e.pageDate)), n = c(() => io(e.pageDate)), l = (f, r, v) => !r && !v ? !0 : !(r && he(f) < he(r) || v && he(f) > he(v)), i = c(
|
|
2123
2123
|
() => so({
|
|
2124
2124
|
start: t.value,
|
|
2125
2125
|
end: n.value
|
|
@@ -2133,8 +2133,8 @@ const Ne = /* @__PURE__ */ Te(un, [["render", yn], ["__scopeId", "data-v-65eb861
|
|
|
2133
2133
|
})
|
|
2134
2134
|
)
|
|
2135
2135
|
), a = c(() => {
|
|
2136
|
-
const f = he(t.value),
|
|
2137
|
-
return `${f} - ${
|
|
2136
|
+
const f = he(t.value), r = he(n.value);
|
|
2137
|
+
return `${f} - ${r}`;
|
|
2138
2138
|
}), p = c(
|
|
2139
2139
|
() => e.lowerLimit && (ze(e.lowerLimit) === ze(e.pageDate) || Se(e.pageDate, e.lowerLimit))
|
|
2140
2140
|
), u = c(
|
|
@@ -2209,20 +2209,20 @@ const $n = /* @__PURE__ */ Te(Cn, [["render", wn]]), xn = z({
|
|
|
2209
2209
|
},
|
|
2210
2210
|
setup(e, { emit: o }) {
|
|
2211
2211
|
const t = c(() => ro(e.pageDate)), n = c(() => uo(e.pageDate)), l = c(
|
|
2212
|
-
() => (
|
|
2212
|
+
() => (r) => We(r, e.format, {
|
|
2213
2213
|
locale: e.locale
|
|
2214
2214
|
})
|
|
2215
|
-
), i = (
|
|
2215
|
+
), i = (r, v, s) => !v && !s ? !0 : !(v && Se(r, Ct(v)) || s && Le(r, wt(s))), a = c(
|
|
2216
2216
|
() => co({
|
|
2217
2217
|
start: t.value,
|
|
2218
2218
|
end: n.value
|
|
2219
2219
|
}).map(
|
|
2220
|
-
(
|
|
2221
|
-
value:
|
|
2222
|
-
display: l.value(
|
|
2223
|
-
key: l.value(
|
|
2224
|
-
selected: !!e.selected && Xe(e.selected,
|
|
2225
|
-
disabled: !i(
|
|
2220
|
+
(r) => ({
|
|
2221
|
+
value: r,
|
|
2222
|
+
display: l.value(r),
|
|
2223
|
+
key: l.value(r),
|
|
2224
|
+
selected: !!e.selected && Xe(e.selected, r),
|
|
2225
|
+
disabled: !i(r, e.lowerLimit, e.upperLimit)
|
|
2226
2226
|
})
|
|
2227
2227
|
)
|
|
2228
2228
|
), p = c(() => he(t.value)), u = c(
|
|
@@ -2364,19 +2364,19 @@ const Bn = /* @__PURE__ */ Te(xn, [["render", _n]]), Tn = z({
|
|
|
2364
2364
|
key: t.value("yyyy-MM-dd")(k)
|
|
2365
2365
|
})
|
|
2366
2366
|
);
|
|
2367
|
-
}),
|
|
2367
|
+
}), r = c(
|
|
2368
2368
|
() => t.value(e.headingFormat)(e.pageDate)
|
|
2369
2369
|
), v = c(
|
|
2370
2370
|
() => e.lowerLimit && (Xe(e.lowerLimit, e.pageDate) || Se(e.pageDate, e.lowerLimit))
|
|
2371
|
-
),
|
|
2371
|
+
), s = c(
|
|
2372
2372
|
() => e.upperLimit && (Xe(e.upperLimit, e.pageDate) || Le(e.pageDate, e.upperLimit))
|
|
2373
2373
|
);
|
|
2374
2374
|
return {
|
|
2375
2375
|
weekDays: p,
|
|
2376
2376
|
days: f,
|
|
2377
|
-
heading:
|
|
2377
|
+
heading: r,
|
|
2378
2378
|
leftDisabled: v,
|
|
2379
|
-
rightDisabled:
|
|
2379
|
+
rightDisabled: s,
|
|
2380
2380
|
previousPage: () => o("update:pageDate", ko(e.pageDate, 1)),
|
|
2381
2381
|
nextPage: () => o("update:pageDate", go(e.pageDate, 1))
|
|
2382
2382
|
};
|
|
@@ -2449,8 +2449,8 @@ const Sn = z({
|
|
|
2449
2449
|
ue(
|
|
2450
2450
|
() => e.selected,
|
|
2451
2451
|
(v) => {
|
|
2452
|
-
let
|
|
2453
|
-
v && (
|
|
2452
|
+
let s = 0, h = 0;
|
|
2453
|
+
v && (s = v.getHours(), h = v.getMinutes()), i.value = s, a.value = h;
|
|
2454
2454
|
}
|
|
2455
2455
|
);
|
|
2456
2456
|
const p = c(
|
|
@@ -2479,24 +2479,24 @@ const Sn = z({
|
|
|
2479
2479
|
}))
|
|
2480
2480
|
), f = (v) => {
|
|
2481
2481
|
a.value = v.value, o("select", v.date);
|
|
2482
|
-
},
|
|
2482
|
+
}, r = () => {
|
|
2483
2483
|
const v = p.value.find(
|
|
2484
2484
|
(h) => {
|
|
2485
2485
|
var m, k;
|
|
2486
2486
|
return ((k = (m = h.ref.value) == null ? void 0 : m.classList) == null ? void 0 : k.contains("selected")) ?? !1;
|
|
2487
2487
|
}
|
|
2488
|
-
),
|
|
2488
|
+
), s = u.value.find(
|
|
2489
2489
|
(h) => {
|
|
2490
2490
|
var m, k;
|
|
2491
2491
|
return ((k = (m = h.ref.value) == null ? void 0 : m.classList) == null ? void 0 : k.contains("selected")) ?? !1;
|
|
2492
2492
|
}
|
|
2493
2493
|
);
|
|
2494
|
-
v &&
|
|
2494
|
+
v && s && (ht(t.value, v.ref.value), ht(n.value, s.ref.value));
|
|
2495
2495
|
};
|
|
2496
2496
|
return ue(
|
|
2497
2497
|
() => e.visible,
|
|
2498
2498
|
(v) => {
|
|
2499
|
-
v && kt(
|
|
2499
|
+
v && kt(r);
|
|
2500
2500
|
}
|
|
2501
2501
|
), {
|
|
2502
2502
|
hoursListRef: t,
|
|
@@ -2508,12 +2508,12 @@ const Sn = z({
|
|
|
2508
2508
|
padStartZero: (v) => `0${v}`.substr(-2),
|
|
2509
2509
|
selectMinutes: f,
|
|
2510
2510
|
isEnabled: (v) => {
|
|
2511
|
-
var
|
|
2512
|
-
return !((h = (
|
|
2511
|
+
var s, h, m, k;
|
|
2512
|
+
return !((h = (s = e.disabledTime) == null ? void 0 : s.dates) != null && h.some(
|
|
2513
2513
|
(b) => bo(v, b) && yo(v, b)
|
|
2514
2514
|
) || (k = (m = e.disabledTime) == null ? void 0 : m.predicate) != null && k.call(m, v));
|
|
2515
2515
|
},
|
|
2516
|
-
scroll:
|
|
2516
|
+
scroll: r
|
|
2517
2517
|
};
|
|
2518
2518
|
}
|
|
2519
2519
|
}), Ln = {
|
|
@@ -2763,11 +2763,11 @@ const zn = /* @__PURE__ */ Te(Sn, [["render", In], ["__scopeId", "data-v-81ac698
|
|
|
2763
2763
|
});
|
|
2764
2764
|
const f = (D, F) => {
|
|
2765
2765
|
l.value = F, D === "year" ? o("decadePageChanged", F) : D === "month" ? o("yearPageChanged", F) : D === "day" && o("monthPageChanged", F);
|
|
2766
|
-
},
|
|
2766
|
+
}, r = (D) => {
|
|
2767
2767
|
l.value = D, e.minimumView === "year" ? (u("none"), o("update:modelValue", D)) : n.value = "month";
|
|
2768
2768
|
}, v = (D) => {
|
|
2769
2769
|
l.value = D, e.minimumView === "month" ? (u("none"), o("update:modelValue", D)) : n.value = "day";
|
|
2770
|
-
},
|
|
2770
|
+
}, s = (D) => {
|
|
2771
2771
|
l.value = D, e.minimumView === "day" ? (u("none"), o("update:modelValue", D)) : n.value = "time";
|
|
2772
2772
|
}, h = (D) => {
|
|
2773
2773
|
u("none"), o("update:modelValue", D);
|
|
@@ -2804,9 +2804,9 @@ const zn = /* @__PURE__ */ Te(Sn, [["render", In], ["__scopeId", "data-v-81ac698
|
|
|
2804
2804
|
pageDate: l,
|
|
2805
2805
|
renderView: u,
|
|
2806
2806
|
updatePageDate: f,
|
|
2807
|
-
selectYear:
|
|
2807
|
+
selectYear: r,
|
|
2808
2808
|
selectMonth: v,
|
|
2809
|
-
selectDay:
|
|
2809
|
+
selectDay: s,
|
|
2810
2810
|
selectTime: h,
|
|
2811
2811
|
keyUp: _,
|
|
2812
2812
|
viewShown: n,
|
|
@@ -2831,22 +2831,22 @@ function qn(e, o, t, n, l, i) {
|
|
|
2831
2831
|
type: "text",
|
|
2832
2832
|
ref: "inputRef",
|
|
2833
2833
|
readonly: !e.typeable,
|
|
2834
|
-
"onUpdate:modelValue": o[0] || (o[0] = (
|
|
2834
|
+
"onUpdate:modelValue": o[0] || (o[0] = (r) => e.input = r)
|
|
2835
2835
|
}, e.$attrs, {
|
|
2836
2836
|
placeholder: e.placeholder,
|
|
2837
2837
|
disabled: e.disabled,
|
|
2838
2838
|
tabindex: e.disabled ? -1 : 0,
|
|
2839
|
-
onKeyup: o[1] || (o[1] = (...
|
|
2840
|
-
onBlur: o[2] || (o[2] = (...
|
|
2841
|
-
onFocus: o[3] || (o[3] = (...
|
|
2842
|
-
onClick: o[4] || (o[4] = (...
|
|
2839
|
+
onKeyup: o[1] || (o[1] = (...r) => e.keyUp && e.keyUp(...r)),
|
|
2840
|
+
onBlur: o[2] || (o[2] = (...r) => e.blur && e.blur(...r)),
|
|
2841
|
+
onFocus: o[3] || (o[3] = (...r) => e.focus && e.focus(...r)),
|
|
2842
|
+
onClick: o[4] || (o[4] = (...r) => e.click && e.click(...r))
|
|
2843
2843
|
}), null, 16, En), [
|
|
2844
2844
|
[qe, e.input]
|
|
2845
2845
|
]),
|
|
2846
2846
|
re(w("div", Fn, [
|
|
2847
2847
|
O(e.$slots, "clear", { onClear: e.clearModelValue }, () => [
|
|
2848
2848
|
w("i", {
|
|
2849
|
-
onClick: o[5] || (o[5] = (
|
|
2849
|
+
onClick: o[5] || (o[5] = (r) => e.clearModelValue())
|
|
2850
2850
|
}, "x")
|
|
2851
2851
|
])
|
|
2852
2852
|
], 512), [
|
|
@@ -2855,7 +2855,7 @@ function qn(e, o, t, n, l, i) {
|
|
|
2855
2855
|
]),
|
|
2856
2856
|
re(H(a, {
|
|
2857
2857
|
pageDate: e.pageDate,
|
|
2858
|
-
"onUpdate:pageDate": o[6] || (o[6] = (
|
|
2858
|
+
"onUpdate:pageDate": o[6] || (o[6] = (r) => e.updatePageDate("year", r)),
|
|
2859
2859
|
selected: e.modelValue,
|
|
2860
2860
|
lowerLimit: e.lowerLimit,
|
|
2861
2861
|
upperLimit: e.upperLimit,
|
|
@@ -2865,20 +2865,20 @@ function qn(e, o, t, n, l, i) {
|
|
|
2865
2865
|
]),
|
|
2866
2866
|
re(H(p, {
|
|
2867
2867
|
pageDate: e.pageDate,
|
|
2868
|
-
"onUpdate:pageDate": o[7] || (o[7] = (
|
|
2868
|
+
"onUpdate:pageDate": o[7] || (o[7] = (r) => e.updatePageDate("month", r)),
|
|
2869
2869
|
selected: e.modelValue,
|
|
2870
2870
|
onSelect: e.selectMonth,
|
|
2871
2871
|
lowerLimit: e.lowerLimit,
|
|
2872
2872
|
upperLimit: e.upperLimit,
|
|
2873
2873
|
format: e.monthListFormat,
|
|
2874
2874
|
locale: e.locale,
|
|
2875
|
-
onBack: o[8] || (o[8] = (
|
|
2875
|
+
onBack: o[8] || (o[8] = (r) => e.viewShown = "year")
|
|
2876
2876
|
}, null, 8, ["pageDate", "selected", "onSelect", "lowerLimit", "upperLimit", "format", "locale"]), [
|
|
2877
2877
|
[Ve, e.viewShown === "month"]
|
|
2878
2878
|
]),
|
|
2879
2879
|
re(H(u, {
|
|
2880
2880
|
pageDate: e.pageDate,
|
|
2881
|
-
"onUpdate:pageDate": o[9] || (o[9] = (
|
|
2881
|
+
"onUpdate:pageDate": o[9] || (o[9] = (r) => e.updatePageDate("day", r)),
|
|
2882
2882
|
selected: e.modelValue,
|
|
2883
2883
|
weekStartsOn: e.weekStartsOn,
|
|
2884
2884
|
lowerLimit: e.lowerLimit,
|
|
@@ -2890,7 +2890,7 @@ function qn(e, o, t, n, l, i) {
|
|
|
2890
2890
|
"allow-outside-interval": e.allowOutsideInterval,
|
|
2891
2891
|
format: e.dayFormat,
|
|
2892
2892
|
onSelect: e.selectDay,
|
|
2893
|
-
onBack: o[10] || (o[10] = (
|
|
2893
|
+
onBack: o[10] || (o[10] = (r) => e.viewShown = "month")
|
|
2894
2894
|
}, null, 8, ["pageDate", "selected", "weekStartsOn", "lowerLimit", "upperLimit", "headingFormat", "disabledDates", "locale", "weekdayFormat", "allow-outside-interval", "format", "onSelect"]), [
|
|
2895
2895
|
[Ve, e.viewShown === "day"]
|
|
2896
2896
|
]),
|
|
@@ -2930,12 +2930,12 @@ const Nn = /* @__PURE__ */ Te(On, [["render", qn]]), Hn = ["id"], Un = {
|
|
|
2930
2930
|
setup(e, { emit: o }) {
|
|
2931
2931
|
const t = e, n = o, { cleekOptions: l } = ne(le()), { windowWidth: i } = ye(), a = M(), p = M(Math.floor(Math.random() * 1e3)), u = M(`ck-input-date-${p.value}`), f = c({
|
|
2932
2932
|
get() {
|
|
2933
|
-
return
|
|
2933
|
+
return s(t.modelValue);
|
|
2934
2934
|
},
|
|
2935
2935
|
set(y) {
|
|
2936
2936
|
n("update:modelValue", h(y));
|
|
2937
2937
|
}
|
|
2938
|
-
}),
|
|
2938
|
+
}), r = c(() => {
|
|
2939
2939
|
const y = [];
|
|
2940
2940
|
return y.push(A.getGroupClass(t, i.value)), t.icon && y.push("has-icon-left"), t.iconRight && y.push("has-icon-right"), document.querySelector(".ck-popup__content") && y.push("ck-picker-popup"), y;
|
|
2941
2941
|
}), v = c(() => {
|
|
@@ -2946,7 +2946,7 @@ const Nn = /* @__PURE__ */ Te(On, [["render", qn]]), Hn = ["id"], Un = {
|
|
|
2946
2946
|
ue(() => t.modelValue, (y) => {
|
|
2947
2947
|
a.value && (a.value.style.display = "block", a.value.focus(), a.value.style.display = "none"), n("change", y);
|
|
2948
2948
|
});
|
|
2949
|
-
function
|
|
2949
|
+
function s(y) {
|
|
2950
2950
|
if (!y) return null;
|
|
2951
2951
|
const _ = `${y}`.slice(0, 10);
|
|
2952
2952
|
return /* @__PURE__ */ new Date(`${_}T00:00:00`);
|
|
@@ -2969,7 +2969,7 @@ const Nn = /* @__PURE__ */ Te(On, [["render", qn]]), Hn = ["id"], Un = {
|
|
|
2969
2969
|
y instanceof HTMLElement && (y.style.overflow = "auto");
|
|
2970
2970
|
}
|
|
2971
2971
|
function b() {
|
|
2972
|
-
t.clearable && (f.value =
|
|
2972
|
+
t.clearable && (f.value = s(t.clearValue));
|
|
2973
2973
|
}
|
|
2974
2974
|
return (y, _) => {
|
|
2975
2975
|
const W = Y("ck-label"), D = Y("ck-icon"), F = Y("ck-div");
|
|
@@ -2979,7 +2979,7 @@ const Nn = /* @__PURE__ */ Te(On, [["render", qn]]), Hn = ["id"], Un = {
|
|
|
2979
2979
|
return [
|
|
2980
2980
|
w("div", {
|
|
2981
2981
|
id: u.value,
|
|
2982
|
-
class: P(["ck-input-date",
|
|
2982
|
+
class: P(["ck-input-date", r.value])
|
|
2983
2983
|
}, [
|
|
2984
2984
|
w("input", {
|
|
2985
2985
|
ref_key: "refInput",
|
|
@@ -3094,11 +3094,11 @@ const Nn = /* @__PURE__ */ Te(On, [["render", qn]]), Hn = ["id"], Un = {
|
|
|
3094
3094
|
},
|
|
3095
3095
|
emits: ["tabSelected"],
|
|
3096
3096
|
setup(e, { expose: o, emit: t }) {
|
|
3097
|
-
const n = M(null), l = M(!1), i = M(!1), a = e, p = t, u = M([]), f = M(null),
|
|
3097
|
+
const n = M(null), l = M(!1), i = M(!1), a = e, p = t, u = M([]), f = M(null), r = c(() => a.type ? a.type : ta), v = c(() => {
|
|
3098
3098
|
const b = [];
|
|
3099
|
-
return
|
|
3099
|
+
return r.value && b.push(`ck-tabs__header--button-${r.value}`), b;
|
|
3100
3100
|
});
|
|
3101
|
-
function
|
|
3101
|
+
function s(b) {
|
|
3102
3102
|
u.value.forEach((y, _) => {
|
|
3103
3103
|
y.selectTab(_ === b);
|
|
3104
3104
|
}), f.value = b, p("tabSelected", b);
|
|
@@ -3120,9 +3120,9 @@ const Nn = /* @__PURE__ */ Te(On, [["render", qn]]), Hn = ["id"], Un = {
|
|
|
3120
3120
|
var y;
|
|
3121
3121
|
h(), (y = n.value) == null || y.addEventListener("scroll", h);
|
|
3122
3122
|
const b = u.value.find((_) => _.active) || u.value[0];
|
|
3123
|
-
b &&
|
|
3123
|
+
b && s(u.value.indexOf(b));
|
|
3124
3124
|
}), o({
|
|
3125
|
-
selectTab:
|
|
3125
|
+
selectTab: s
|
|
3126
3126
|
}), Zt(h), (b, y) => {
|
|
3127
3127
|
const _ = Y("ck-icon"), W = Y("ck-circle");
|
|
3128
3128
|
return d(), g("div", Xn, [
|
|
@@ -3144,12 +3144,12 @@ const Nn = /* @__PURE__ */ Te(On, [["render", qn]]), Hn = ["id"], Un = {
|
|
|
3144
3144
|
w("div", {
|
|
3145
3145
|
ref_key: "tabsContainer",
|
|
3146
3146
|
ref: n,
|
|
3147
|
-
class: P(["ck-tabs__header-content", { "header-content--flat":
|
|
3147
|
+
class: P(["ck-tabs__header-content", { "header-content--flat": r.value === "flat" }])
|
|
3148
3148
|
}, [
|
|
3149
3149
|
(d(!0), g(J, null, se(u.value, (D, F) => (d(), g("div", {
|
|
3150
3150
|
key: F,
|
|
3151
3151
|
class: P([v.value, { "is-selected": f.value === F }]),
|
|
3152
|
-
onClick: (K) =>
|
|
3152
|
+
onClick: (K) => s(F)
|
|
3153
3153
|
}, [
|
|
3154
3154
|
D.icon ? (d(), S(_, {
|
|
3155
3155
|
key: 0,
|
|
@@ -3205,7 +3205,7 @@ const Nn = /* @__PURE__ */ Te(On, [["render", qn]]), Hn = ["id"], Un = {
|
|
|
3205
3205
|
const f = Y("ck-icon");
|
|
3206
3206
|
return d(), g("div", {
|
|
3207
3207
|
class: P(["ck-toggle", [l.value, { "is-active": a.value }]]),
|
|
3208
|
-
onClick: u[0] || (u[0] = (
|
|
3208
|
+
onClick: u[0] || (u[0] = (r) => a.value = !a.value)
|
|
3209
3209
|
}, [
|
|
3210
3210
|
e.icon ? (d(), S(f, {
|
|
3211
3211
|
key: 0,
|
|
@@ -3238,32 +3238,32 @@ const Nn = /* @__PURE__ */ Te(On, [["render", qn]]), Hn = ["id"], Un = {
|
|
|
3238
3238
|
emits: /* @__PURE__ */ te(["change"], ["update:modelValue"]),
|
|
3239
3239
|
setup(e, { emit: o }) {
|
|
3240
3240
|
const t = fe(e, "modelValue"), n = e, l = o;
|
|
3241
|
-
function i(
|
|
3242
|
-
return
|
|
3241
|
+
function i(r) {
|
|
3242
|
+
return r.name;
|
|
3243
3243
|
}
|
|
3244
|
-
function a(
|
|
3245
|
-
return
|
|
3244
|
+
function a(r) {
|
|
3245
|
+
return r.id;
|
|
3246
3246
|
}
|
|
3247
|
-
function p(
|
|
3248
|
-
if (
|
|
3247
|
+
function p(r) {
|
|
3248
|
+
if (r.icon) return r.icon;
|
|
3249
3249
|
}
|
|
3250
|
-
function u(
|
|
3251
|
-
const v = a(
|
|
3250
|
+
function u(r) {
|
|
3251
|
+
const v = a(r);
|
|
3252
3252
|
return n.multipleSelection ? Array.isArray(t.value) && t.value.includes(v) : t.value === v;
|
|
3253
3253
|
}
|
|
3254
|
-
function f(
|
|
3255
|
-
const v = a(
|
|
3254
|
+
function f(r) {
|
|
3255
|
+
const v = a(r);
|
|
3256
3256
|
if (n.multipleSelection) {
|
|
3257
|
-
const
|
|
3258
|
-
h !== -1 ?
|
|
3257
|
+
const s = Array.isArray(t.value) ? [...t.value] : [], h = s.indexOf(v);
|
|
3258
|
+
h !== -1 ? s.splice(h, 1) : s.push(v), t.value = s;
|
|
3259
3259
|
} else
|
|
3260
3260
|
t.value = v;
|
|
3261
3261
|
l("change");
|
|
3262
3262
|
}
|
|
3263
|
-
return (
|
|
3264
|
-
const
|
|
3263
|
+
return (r, v) => {
|
|
3264
|
+
const s = Y("ck-label"), h = Y("ck-toggle");
|
|
3265
3265
|
return d(), g("div", sa, [
|
|
3266
|
-
e.label ? (d(), S(
|
|
3266
|
+
e.label ? (d(), S(s, {
|
|
3267
3267
|
key: 0,
|
|
3268
3268
|
align: e.labelAlign
|
|
3269
3269
|
}, {
|
|
@@ -3329,7 +3329,7 @@ const Nn = /* @__PURE__ */ Te(On, [["render", qn]]), Hn = ["id"], Un = {
|
|
|
3329
3329
|
var v;
|
|
3330
3330
|
return !!((v = t.dropdownButtonActions) != null && v.length);
|
|
3331
3331
|
}), p = c(() => {
|
|
3332
|
-
const { dropdownButtonActions: v, mainActionId:
|
|
3332
|
+
const { dropdownButtonActions: v, mainActionId: s, ...h } = t;
|
|
3333
3333
|
return a.value ? { ...h, group: "left" } : h;
|
|
3334
3334
|
}), u = c(() => ({
|
|
3335
3335
|
type: t.type,
|
|
@@ -3343,15 +3343,15 @@ const Nn = /* @__PURE__ */ Te(On, [["render", qn]]), Hn = ["id"], Un = {
|
|
|
3343
3343
|
function f(v) {
|
|
3344
3344
|
n("click", v), n("action", t.mainActionId ?? i);
|
|
3345
3345
|
}
|
|
3346
|
-
function
|
|
3346
|
+
function r(v) {
|
|
3347
3347
|
n("action", v), l.value = !1;
|
|
3348
3348
|
}
|
|
3349
|
-
return (v,
|
|
3349
|
+
return (v, s) => (d(), g("div", {
|
|
3350
3350
|
class: "dropdown-btn__outer",
|
|
3351
|
-
onMouseleave:
|
|
3351
|
+
onMouseleave: s[2] || (s[2] = (h) => l.value = !1)
|
|
3352
3352
|
}, [
|
|
3353
3353
|
H(_e, Ae(p.value, {
|
|
3354
|
-
onClick:
|
|
3354
|
+
onClick: s[0] || (s[0] = (h) => f(h))
|
|
3355
3355
|
}), {
|
|
3356
3356
|
default: q(() => [
|
|
3357
3357
|
O(v.$slots, "default", {}, void 0, !0)
|
|
@@ -3361,7 +3361,7 @@ const Nn = /* @__PURE__ */ Te(On, [["render", qn]]), Hn = ["id"], Un = {
|
|
|
3361
3361
|
a.value ? (d(), g("div", {
|
|
3362
3362
|
key: 0,
|
|
3363
3363
|
class: "dropdown-btn__chevron-area",
|
|
3364
|
-
onClick:
|
|
3364
|
+
onClick: s[1] || (s[1] = (h) => l.value = !l.value)
|
|
3365
3365
|
}, [
|
|
3366
3366
|
H(_e, Jt(Xt(u.value)), {
|
|
3367
3367
|
default: q(() => [
|
|
@@ -3380,7 +3380,7 @@ const Nn = /* @__PURE__ */ Te(On, [["render", qn]]), Hn = ["id"], Un = {
|
|
|
3380
3380
|
key: h.id,
|
|
3381
3381
|
class: "extra-action__item",
|
|
3382
3382
|
style: E({ color: u.value.textColor }),
|
|
3383
|
-
onClick: (m) =>
|
|
3383
|
+
onClick: (m) => r(h.id)
|
|
3384
3384
|
}, [
|
|
3385
3385
|
w("span", pa, L(h.name), 1),
|
|
3386
3386
|
H(X, {
|
|
@@ -3424,7 +3424,7 @@ const Nn = /* @__PURE__ */ Te(On, [["render", qn]]), Hn = ["id"], Un = {
|
|
|
3424
3424
|
return f && u.push(`layout--${f}`), t.clickable && u.push("clickable"), u;
|
|
3425
3425
|
});
|
|
3426
3426
|
return (u, f) => {
|
|
3427
|
-
const
|
|
3427
|
+
const r = Y("ck-icon");
|
|
3428
3428
|
return a.value ? (d(), g("div", {
|
|
3429
3429
|
key: 0,
|
|
3430
3430
|
class: P(["ck-card", p.value])
|
|
@@ -3440,7 +3440,7 @@ const Nn = /* @__PURE__ */ Te(On, [["render", qn]]), Hn = ["id"], Un = {
|
|
|
3440
3440
|
class: "ck-card__close-btn",
|
|
3441
3441
|
onClick: f[0] || (f[0] = (v) => a.value = !1)
|
|
3442
3442
|
}, [
|
|
3443
|
-
H(
|
|
3443
|
+
H(r, { icon: "times" })
|
|
3444
3444
|
])) : C("", !0)
|
|
3445
3445
|
], 2)) : C("", !0),
|
|
3446
3446
|
w("div", ha, [
|
|
@@ -3473,21 +3473,21 @@ const Nn = /* @__PURE__ */ Te(On, [["render", qn]]), Hn = ["id"], Un = {
|
|
|
3473
3473
|
emits: ["click"],
|
|
3474
3474
|
setup(e, { emit: o }) {
|
|
3475
3475
|
const t = e, { windowWidth: n } = ye(), { cleekOptions: l } = ne(le()), i = o, a = c(() => t.layout ? t.layout : l.value ? l.value.chip.layout : xa), p = c(() => t.type ? t.type : l.value ? l.value.chip.type : $a), u = c(() => t.color || Ca), f = c(() => {
|
|
3476
|
-
const
|
|
3477
|
-
return p.value === "outlined" ?
|
|
3476
|
+
const s = [];
|
|
3477
|
+
return p.value === "outlined" ? s.push("type--outlined") : p.value === "shadow" ? s.push("type--shadow") : A.isColorTemplateVariable(u.value) && s.push(`ck-component__bg-color--${u.value}`), a.value && s.push(`layout--${a.value}`), s.push(A.getGroupClass(t, n.value)), s.push(`size-${t.size || wa}`), t.align && s.push(`align--${t.align}`), t.nowrap && s.push(`ck-chip--${t.nowrap}`), t.clickable && s.push("clickable"), s;
|
|
3478
3478
|
});
|
|
3479
|
-
function s
|
|
3480
|
-
return A.isColorTemplateVariable(
|
|
3479
|
+
function r(s) {
|
|
3480
|
+
return A.isColorTemplateVariable(s) ? A.getColorHexFromTemplateVariable(s, l.value.colors) : s;
|
|
3481
3481
|
}
|
|
3482
3482
|
const v = c(() => {
|
|
3483
|
-
const
|
|
3484
|
-
if (
|
|
3485
|
-
const m =
|
|
3486
|
-
|
|
3487
|
-
} else p.value === "shadow" ? (A.isColorTemplateVariable(u.value) ||
|
|
3488
|
-
return
|
|
3483
|
+
const s = [], h = r(u.value);
|
|
3484
|
+
if (s.push({ "--chip-bg": h }), p.value === "outlined") {
|
|
3485
|
+
const m = r(t.textColor || u.value);
|
|
3486
|
+
s.push({ borderColor: h }), s.push({ color: m });
|
|
3487
|
+
} else p.value === "shadow" ? (A.isColorTemplateVariable(u.value) || s.push({ backgroundColor: u.value }), s.push({ color: t.textColor || gt })) : (A.isColorTemplateVariable(u.value) || s.push({ backgroundColor: u.value }), s.push({ color: t.textColor || gt }));
|
|
3488
|
+
return s;
|
|
3489
3489
|
});
|
|
3490
|
-
return (
|
|
3490
|
+
return (s, h) => (d(), g("div", {
|
|
3491
3491
|
class: P(["ck-chip", f.value]),
|
|
3492
3492
|
color: e.color,
|
|
3493
3493
|
style: E(v.value),
|
|
@@ -3500,7 +3500,7 @@ const Nn = /* @__PURE__ */ Te(On, [["render", qn]]), Hn = ["id"], Un = {
|
|
|
3500
3500
|
"icon-pack": e.iconPack
|
|
3501
3501
|
}, null, 8, ["icon", "icon-pack"])) : C("", !0),
|
|
3502
3502
|
w("span", null, [
|
|
3503
|
-
O(
|
|
3503
|
+
O(s.$slots, "default", {}, void 0, !0)
|
|
3504
3504
|
]),
|
|
3505
3505
|
e.iconRight ? (d(), S(X, {
|
|
3506
3506
|
key: 1,
|
|
@@ -3596,16 +3596,16 @@ const Nn = /* @__PURE__ */ Te(On, [["render", qn]]), Hn = ["id"], Un = {
|
|
|
3596
3596
|
setup(e, { emit: o }) {
|
|
3597
3597
|
const t = e, n = o, { cleekOptions: l } = ne(le()), i = M(!1), a = M(!1), p = c(() => t.src.substring(0, 4) === "http"), u = c(() => a.value ? p.value ? t.src : h(t.src) : ""), f = c(() => {
|
|
3598
3598
|
const m = [];
|
|
3599
|
-
return t.size && m.push(`ck-img__size--${t.size}`), t.rounded && m.push("is-rounded"), t.hasBorder && (m.push("ck-img__has-border"), A.isColorTemplateVariable(
|
|
3600
|
-
}),
|
|
3599
|
+
return t.size && m.push(`ck-img__size--${t.size}`), t.rounded && m.push("is-rounded"), t.hasBorder && (m.push("ck-img__has-border"), A.isColorTemplateVariable(s.value) && m.push(`ck-component__border-color--${s.value}`)), t.zoom && m.push("zoom-able"), m;
|
|
3600
|
+
}), r = c(() => {
|
|
3601
3601
|
const m = [];
|
|
3602
3602
|
t.sizeAbsolute && (m.push({ width: t.sizeAbsolute }), m.push({ height: t.sizeAbsolute }));
|
|
3603
3603
|
let k = t.radius;
|
|
3604
|
-
return typeof t.radius > "u" && l.value.styles.layout === "squared" && (k = "0px"), k && m.push({ "border-radius": k }), t.hasBorder && (A.isColorTemplateVariable(
|
|
3604
|
+
return typeof t.radius > "u" && l.value.styles.layout === "squared" && (k = "0px"), k && m.push({ "border-radius": k }), t.hasBorder && (A.isColorTemplateVariable(s.value) || m.push({ "border-color": s.value })), m;
|
|
3605
3605
|
}), v = c(() => {
|
|
3606
3606
|
const m = [];
|
|
3607
3607
|
return t.radius && m.push({ "border-radius": t.radius }), t.width && m.push({ width: t.width }), t.height && m.push({ height: t.height }), m;
|
|
3608
|
-
}),
|
|
3608
|
+
}), s = c(() => t.borderColor ? t.borderColor : Aa.defaultImgBorderColor);
|
|
3609
3609
|
function h(m) {
|
|
3610
3610
|
let k = l.value.img.basePath;
|
|
3611
3611
|
return l.value.img.basePath && (k = l.value.img.basePath), k || (k = l.value.img.basePathStatic), t.dynamic && (k = l.value.img.basePathDynamic), `${k}${m}`;
|
|
@@ -3614,7 +3614,7 @@ const Nn = /* @__PURE__ */ Te(On, [["render", qn]]), Hn = ["id"], Un = {
|
|
|
3614
3614
|
a.value = !0;
|
|
3615
3615
|
}), (m, k) => (d(), g("div", {
|
|
3616
3616
|
class: P(["ck-img", f.value]),
|
|
3617
|
-
style: E(
|
|
3617
|
+
style: E(r.value),
|
|
3618
3618
|
onClick: k[1] || (k[1] = (b) => n("click", b))
|
|
3619
3619
|
}, [
|
|
3620
3620
|
w("img", {
|
|
@@ -3663,15 +3663,15 @@ const Nn = /* @__PURE__ */ Te(On, [["render", qn]]), Hn = ["id"], Un = {
|
|
|
3663
3663
|
const f = [];
|
|
3664
3664
|
return t.vertical && f.push("vertical"), t.classes && f.push(t.classes), f;
|
|
3665
3665
|
});
|
|
3666
|
-
function u(f,
|
|
3666
|
+
function u(f, r) {
|
|
3667
3667
|
l.value = f.value, n("change", l.value);
|
|
3668
3668
|
}
|
|
3669
|
-
return (f,
|
|
3670
|
-
key: `radio-${
|
|
3669
|
+
return (f, r) => (d(!0), g(J, null, se(a.value, (v, s) => (d(), g("label", Ae({
|
|
3670
|
+
key: `radio-${s}`,
|
|
3671
3671
|
class: "ck-radio"
|
|
3672
3672
|
}, { ref_for: !0 }, i.value, {
|
|
3673
3673
|
class: p.value,
|
|
3674
|
-
onKeydown:
|
|
3674
|
+
onKeydown: r[1] || (r[1] = be(ie(() => {
|
|
3675
3675
|
}, ["prevent"]), ["space"])),
|
|
3676
3676
|
onKeyup: [
|
|
3677
3677
|
be((h) => u(v), ["enter"]),
|
|
@@ -3679,7 +3679,7 @@ const Nn = /* @__PURE__ */ Te(On, [["render", qn]]), Hn = ["id"], Un = {
|
|
|
3679
3679
|
]
|
|
3680
3680
|
}), [
|
|
3681
3681
|
re(w("input", {
|
|
3682
|
-
"onUpdate:modelValue":
|
|
3682
|
+
"onUpdate:modelValue": r[0] || (r[0] = (h) => l.value = h),
|
|
3683
3683
|
class: "c-Radio__input",
|
|
3684
3684
|
"aria-hidden": "true",
|
|
3685
3685
|
type: "radio",
|
|
@@ -3689,7 +3689,7 @@ const Nn = /* @__PURE__ */ Te(On, [["render", qn]]), Hn = ["id"], Un = {
|
|
|
3689
3689
|
}, null, 8, Oa), [
|
|
3690
3690
|
[eo, l.value]
|
|
3691
3691
|
]),
|
|
3692
|
-
|
|
3692
|
+
r[2] || (r[2] = w("div", { class: "c-Radio__element" }, null, -1)),
|
|
3693
3693
|
v.label ? (d(), g("span", Wa, L(v.label), 1)) : C("", !0)
|
|
3694
3694
|
], 16, Ra))), 128));
|
|
3695
3695
|
}
|
|
@@ -3758,9 +3758,9 @@ const Na = {
|
|
|
3758
3758
|
focus: R,
|
|
3759
3759
|
blur: Q
|
|
3760
3760
|
});
|
|
3761
|
-
const { cleekOptions: a } = ne(le()), { windowWidth: p } = ye(), u = M(), f = M(),
|
|
3761
|
+
const { cleekOptions: a } = ne(le()), { windowWidth: p } = ye(), u = M(), f = M(), r = M(), v = M(), s = M(""), h = M(!1), m = M(!1), k = M(-1), b = c(() => l.options.find(($) => T($) === n.value)), y = c(() => l.options.length), _ = c(() => !y.value), W = c(() => y.value <= l.optionsLimit), D = c(() => {
|
|
3762
3762
|
if (m.value) return l.options;
|
|
3763
|
-
const $ = ct(
|
|
3763
|
+
const $ = ct(s.value).split(" ");
|
|
3764
3764
|
return l.options.filter((I) => {
|
|
3765
3765
|
const ee = ct(Z(I));
|
|
3766
3766
|
return $.every((N) => ee.includes(N));
|
|
@@ -3789,7 +3789,7 @@ const Na = {
|
|
|
3789
3789
|
const $ = n.value;
|
|
3790
3790
|
return ae.value ? $ === ae.value : typeof $ == "number" ? $ === 0 : typeof $ == "string" ? $ === "" : typeof $ == "object" && $ ? Array.isArray($) ? $.length === 0 : Object.keys($).length === 0 : $ === null;
|
|
3791
3791
|
}), x = c(() => l.isLoading ? "Cargando..." : _.value ? l.emptyOptionsMsg : l.placeholder), B = c(
|
|
3792
|
-
() => (_.value || ge.value) && !
|
|
3792
|
+
() => (_.value || ge.value) && !s.value && x.value || l.isLoading
|
|
3793
3793
|
), j = c(() => oe.value || l.notClearable ? !1 : !ge.value), pe = c(() => {
|
|
3794
3794
|
const $ = [];
|
|
3795
3795
|
return l.icon && $.push("has-icon-left"), l.iconRight && $.push("has-icon-right"), $;
|
|
@@ -3822,7 +3822,7 @@ const Na = {
|
|
|
3822
3822
|
});
|
|
3823
3823
|
ue(() => b.value, () => je()), ue(() => F.value, ($) => {
|
|
3824
3824
|
k.value !== -1 && (k.value + 1 <= $ || (k.value = $ - 1));
|
|
3825
|
-
}), ue(() =>
|
|
3825
|
+
}), ue(() => r.value, ($) => {
|
|
3826
3826
|
$ && (v.value = { display: "none" }, setTimeout(() => {
|
|
3827
3827
|
const I = document.documentElement.clientHeight, ee = document.documentElement.clientWidth, N = f.value.getBoundingClientRect(), ke = {}, Ie = N.top < I / 2;
|
|
3828
3828
|
Ie ? ke.top = `${N.bottom}px` : ke.bottom = `${I - N.top}px`, ke.left = `${N.left}px`, ke.right = `${ee - N.right}px`;
|
|
@@ -3845,7 +3845,7 @@ const Na = {
|
|
|
3845
3845
|
($ = u.value) == null || $.blur(), (I = f.value) == null || I.blur();
|
|
3846
3846
|
}
|
|
3847
3847
|
function He() {
|
|
3848
|
-
|
|
3848
|
+
s.value = "", m.value = !0, Rt(), h.value = !0;
|
|
3849
3849
|
}
|
|
3850
3850
|
function At() {
|
|
3851
3851
|
je(), h.value = !1;
|
|
@@ -3869,10 +3869,10 @@ const Na = {
|
|
|
3869
3869
|
}
|
|
3870
3870
|
function je() {
|
|
3871
3871
|
const $ = b.value;
|
|
3872
|
-
|
|
3872
|
+
s.value = $ ? Z($) : "";
|
|
3873
3873
|
}
|
|
3874
3874
|
function zt() {
|
|
3875
|
-
|
|
3875
|
+
s.value = "", Ue(de.value);
|
|
3876
3876
|
}
|
|
3877
3877
|
function Rt() {
|
|
3878
3878
|
if (b.value) {
|
|
@@ -3926,7 +3926,7 @@ const Na = {
|
|
|
3926
3926
|
id: "ck-select",
|
|
3927
3927
|
ref_key: "inputRef",
|
|
3928
3928
|
ref: f,
|
|
3929
|
-
"onUpdate:modelValue": I[3] || (I[3] = (N) =>
|
|
3929
|
+
"onUpdate:modelValue": I[3] || (I[3] = (N) => s.value = N),
|
|
3930
3930
|
tabindex: "0",
|
|
3931
3931
|
class: P(Ce.value),
|
|
3932
3932
|
style: E(me.value),
|
|
@@ -3939,13 +3939,13 @@ const Na = {
|
|
|
3939
3939
|
onInput: I[7] || (I[7] = (N) => Mt()),
|
|
3940
3940
|
onKeydown: I[8] || (I[8] = (N) => It(N.key))
|
|
3941
3941
|
}, null, 46, ja)), [
|
|
3942
|
-
[qe,
|
|
3942
|
+
[qe, s.value]
|
|
3943
3943
|
]),
|
|
3944
3944
|
(d(), S(Pe, { to: "body" }, [
|
|
3945
3945
|
h.value && D.value.length ? (d(), g("ul", {
|
|
3946
3946
|
key: 0,
|
|
3947
3947
|
ref_key: "dropdownRef",
|
|
3948
|
-
ref:
|
|
3948
|
+
ref: r,
|
|
3949
3949
|
class: "ck-input-dropdown",
|
|
3950
3950
|
style: E(v.value)
|
|
3951
3951
|
}, [
|
|
@@ -4042,7 +4042,7 @@ const Na = {
|
|
|
4042
4042
|
return t.headerColor && !A.isColorTemplateVariable(t.headerColor) && u.push({ "background-color": t.headerColor }), u;
|
|
4043
4043
|
}), p = c(() => t.closeBtnIcon ? t.closeBtnIcon : "times");
|
|
4044
4044
|
return ue(() => o.value, (u) => Lt(!u)), (u, f) => {
|
|
4045
|
-
const
|
|
4045
|
+
const r = Y("ck-icon");
|
|
4046
4046
|
return o.value ? (d(), g("div", {
|
|
4047
4047
|
key: 0,
|
|
4048
4048
|
class: "ck-sidebar-background",
|
|
@@ -4060,14 +4060,14 @@ const Na = {
|
|
|
4060
4060
|
onClick: f[0] || (f[0] = (v) => o.value = !1)
|
|
4061
4061
|
}, [
|
|
4062
4062
|
e.title ? (d(), g("div", Ja, L(e.title), 1)) : C("", !0),
|
|
4063
|
-
e.notCloseBtn ? (d(), S(
|
|
4063
|
+
e.notCloseBtn ? (d(), S(r, {
|
|
4064
4064
|
key: 1,
|
|
4065
4065
|
class: "close-btn",
|
|
4066
4066
|
icon: p.value
|
|
4067
4067
|
}, null, 8, ["icon"])) : C("", !0)
|
|
4068
4068
|
], 6)) : C("", !0),
|
|
4069
4069
|
e.isLoading ? (d(), g("div", Xa, [
|
|
4070
|
-
H(
|
|
4070
|
+
H(r, {
|
|
4071
4071
|
icon: "spinner",
|
|
4072
4072
|
size: "xxl",
|
|
4073
4073
|
spin: "",
|
|
@@ -4107,33 +4107,33 @@ const Na = {
|
|
|
4107
4107
|
emits: /* @__PURE__ */ te(["click"], ["update:modelValue"]),
|
|
4108
4108
|
setup(e, { emit: o }) {
|
|
4109
4109
|
const t = fe(e, "modelValue"), n = e, l = o, { cleekOptions: i } = ne(le()), a = c(() => {
|
|
4110
|
-
const
|
|
4111
|
-
n.squared &&
|
|
4110
|
+
const s = [];
|
|
4111
|
+
n.squared && s.push("is-squared"), n.outlined && s.push("is-outlined"), n.color && s.push(`--${n.color}`);
|
|
4112
4112
|
const h = n.size || Je;
|
|
4113
|
-
return
|
|
4113
|
+
return s.push(`ck-switch--size-${h}`), s;
|
|
4114
4114
|
}), p = c(() => ({
|
|
4115
4115
|
"aria-disabled": n.disabled,
|
|
4116
4116
|
tabindex: n.disabled ? void 0 : "0"
|
|
4117
4117
|
})), u = c(() => {
|
|
4118
|
-
const
|
|
4119
|
-
return n.size && n.size !== Je &&
|
|
4118
|
+
const s = [];
|
|
4119
|
+
return n.size && n.size !== Je && s.push(`ck-switch__icon-size--${n.size}`), s;
|
|
4120
4120
|
}), f = c(() => {
|
|
4121
|
-
const
|
|
4122
|
-
return i.value.darkMode &&
|
|
4123
|
-
}),
|
|
4124
|
-
const
|
|
4125
|
-
return n.textSize && n.textSize !== si &&
|
|
4121
|
+
const s = [];
|
|
4122
|
+
return i.value.darkMode && s.push({ color: i.value.darkModeColorText }), n.size && n.size !== Je && s.push(`ck-switch__icon-size--${n.size}`), n.colorText && !A.isColorTemplateVariable(n.colorText) && s.push({ color: n.colorText }), s;
|
|
4123
|
+
}), r = c(() => {
|
|
4124
|
+
const s = [];
|
|
4125
|
+
return n.textSize && n.textSize !== si && s.push(`ck-switch__text-size--${n.textSize}`), n.colorText && A.isColorTemplateVariable(n.colorText) && s.push(`ck-component__color--${n.colorText}`), s;
|
|
4126
4126
|
});
|
|
4127
|
-
function v(
|
|
4127
|
+
function v(s) {
|
|
4128
4128
|
if (!n.disabled) {
|
|
4129
4129
|
if (n.preventAutoUpdate) {
|
|
4130
|
-
|
|
4130
|
+
s.preventDefault(), s.stopPropagation();
|
|
4131
4131
|
return;
|
|
4132
4132
|
}
|
|
4133
|
-
|
|
4133
|
+
s instanceof KeyboardEvent && s.key === "Enter" && (t.value = !t.value), l("click");
|
|
4134
4134
|
}
|
|
4135
4135
|
}
|
|
4136
|
-
return (
|
|
4136
|
+
return (s, h) => (d(), g("label", Ae(p.value, {
|
|
4137
4137
|
class: ["ck-switch", a.value],
|
|
4138
4138
|
onClick: h[1] || (h[1] = (m) => v(m)),
|
|
4139
4139
|
onKeydown: [
|
|
@@ -4145,9 +4145,9 @@ const Na = {
|
|
|
4145
4145
|
}, ["prevent"]), ["enter"]))
|
|
4146
4146
|
]
|
|
4147
4147
|
}), [
|
|
4148
|
-
(
|
|
4148
|
+
(s.$slots.default || e.label || e.labelIcon || e.labelIconRight) && e.switchSide === "right" ? (d(), g("span", {
|
|
4149
4149
|
key: 0,
|
|
4150
|
-
class: P(["ck-switch__content",
|
|
4150
|
+
class: P(["ck-switch__content", r.value]),
|
|
4151
4151
|
style: E(f.value)
|
|
4152
4152
|
}, [
|
|
4153
4153
|
e.labelIcon ? (d(), S(X, {
|
|
@@ -4163,7 +4163,7 @@ const Na = {
|
|
|
4163
4163
|
"icon-pack": e.iconPack,
|
|
4164
4164
|
class: "ck-switch__label-icon"
|
|
4165
4165
|
}, null, 8, ["icon", "icon-pack"])) : C("", !0),
|
|
4166
|
-
O(
|
|
4166
|
+
O(s.$slots, "default", {}, void 0, !0)
|
|
4167
4167
|
], 6)) : C("", !0),
|
|
4168
4168
|
re(w("input", {
|
|
4169
4169
|
"onUpdate:modelValue": h[0] || (h[0] = (m) => t.value = m),
|
|
@@ -4189,9 +4189,9 @@ const Na = {
|
|
|
4189
4189
|
"icon-pack": e.iconPack
|
|
4190
4190
|
}, null, 8, ["icon", "icon-pack", "class"])) : C("", !0)
|
|
4191
4191
|
]),
|
|
4192
|
-
(
|
|
4192
|
+
(s.$slots.default || e.label || e.labelIcon || e.labelIconRight) && e.switchSide !== "right" ? (d(), g("span", {
|
|
4193
4193
|
key: 1,
|
|
4194
|
-
class: P(["ck-switch__content",
|
|
4194
|
+
class: P(["ck-switch__content", r.value]),
|
|
4195
4195
|
style: E(f.value)
|
|
4196
4196
|
}, [
|
|
4197
4197
|
e.labelIcon ? (d(), S(X, {
|
|
@@ -4207,7 +4207,7 @@ const Na = {
|
|
|
4207
4207
|
"icon-pack": e.iconPack,
|
|
4208
4208
|
class: "ck-switch__label-icon"
|
|
4209
4209
|
}, null, 8, ["icon", "icon-pack"])) : C("", !0),
|
|
4210
|
-
O(
|
|
4210
|
+
O(s.$slots, "default", {}, void 0, !0)
|
|
4211
4211
|
], 6)) : C("", !0)
|
|
4212
4212
|
], 16));
|
|
4213
4213
|
}
|
|
@@ -4249,11 +4249,11 @@ const Na = {
|
|
|
4249
4249
|
function f(v) {
|
|
4250
4250
|
return n.reduceNameFunction ? n.reduceNameFunction(v) : n.notReduceName || n.notReduce ? v : n.reduceNameMethod ? v[n.reduceNameMethod]() : v[n.reduceNameProp];
|
|
4251
4251
|
}
|
|
4252
|
-
function
|
|
4253
|
-
const
|
|
4254
|
-
t.value =
|
|
4252
|
+
function r(v) {
|
|
4253
|
+
const s = u(v);
|
|
4254
|
+
t.value = s, l("change", s);
|
|
4255
4255
|
}
|
|
4256
|
-
return (v,
|
|
4256
|
+
return (v, s) => {
|
|
4257
4257
|
const h = Y("ck-icon");
|
|
4258
4258
|
return d(), g("div", ci, [
|
|
4259
4259
|
e.label ? (d(), S(Me, {
|
|
@@ -4273,8 +4273,8 @@ const Na = {
|
|
|
4273
4273
|
tabindex: "0",
|
|
4274
4274
|
class: P(["options--option", { selected: u(m) === t.value }]),
|
|
4275
4275
|
style: E(p.value),
|
|
4276
|
-
onClick: (b) =>
|
|
4277
|
-
onKeyup: be((b) =>
|
|
4276
|
+
onClick: (b) => r(m),
|
|
4277
|
+
onKeyup: be((b) => r(m), ["enter"])
|
|
4278
4278
|
}, [
|
|
4279
4279
|
m.icon ? (d(), S(h, {
|
|
4280
4280
|
key: 0,
|
|
@@ -4334,12 +4334,12 @@ const Na = {
|
|
|
4334
4334
|
k && !A.isColorTemplateVariable(k) && m.push({ "border-color": k }), t.align && m.push(`align--${t.align}`), t.fontSize && m.push({ "font-size": t.fontSize }), t.borderRadius && m.push({ "border-radius": t.borderRadius }), t.textColor && m.push({ color: t.textColor }), t.width && m.push({ width: t.width }), t.height && m.push({ height: t.height });
|
|
4335
4335
|
const b = t.resize ? t.resize : "none";
|
|
4336
4336
|
return b && m.push({ resize: b || "both" }), m;
|
|
4337
|
-
}),
|
|
4337
|
+
}), r = (m) => {
|
|
4338
4338
|
var k;
|
|
4339
4339
|
t.autoSelect && ((k = i.value) == null || k.select()), n("click", m);
|
|
4340
4340
|
}, v = (m) => {
|
|
4341
4341
|
n("input", m);
|
|
4342
|
-
},
|
|
4342
|
+
}, s = (m) => {
|
|
4343
4343
|
n("change", m);
|
|
4344
4344
|
};
|
|
4345
4345
|
function h(m) {
|
|
@@ -4366,9 +4366,9 @@ const Na = {
|
|
|
4366
4366
|
disabled: e.disabled,
|
|
4367
4367
|
class: P(u.value),
|
|
4368
4368
|
style: E(f.value),
|
|
4369
|
-
onClick: k[1] || (k[1] = (b) =>
|
|
4369
|
+
onClick: k[1] || (k[1] = (b) => r(b)),
|
|
4370
4370
|
onInput: k[2] || (k[2] = (b) => v(b)),
|
|
4371
|
-
onChange: k[3] || (k[3] = (b) =>
|
|
4371
|
+
onChange: k[3] || (k[3] = (b) => s(b))
|
|
4372
4372
|
}, null, 46, hi), [
|
|
4373
4373
|
[qe, p.value]
|
|
4374
4374
|
])
|
|
@@ -4408,7 +4408,7 @@ const Na = {
|
|
|
4408
4408
|
if (n.size !== "l")
|
|
4409
4409
|
return v.description;
|
|
4410
4410
|
}
|
|
4411
|
-
function
|
|
4411
|
+
function r(v) {
|
|
4412
4412
|
if (!n.disabled) {
|
|
4413
4413
|
if (!i.value) {
|
|
4414
4414
|
i.value = !0;
|
|
@@ -4421,7 +4421,7 @@ const Na = {
|
|
|
4421
4421
|
t.value = v.id, i.value = !1, l("change", v.id);
|
|
4422
4422
|
}
|
|
4423
4423
|
}
|
|
4424
|
-
return (v,
|
|
4424
|
+
return (v, s) => {
|
|
4425
4425
|
const h = Y("ck-label"), m = Y("ck-icon"), k = tt("tooltip");
|
|
4426
4426
|
return d(), g("div", {
|
|
4427
4427
|
class: P(["ck-tile-picker", { "ck-tile-picker--size-l": e.size === "l" }])
|
|
@@ -4443,7 +4443,7 @@ const Na = {
|
|
|
4443
4443
|
key: b.id,
|
|
4444
4444
|
class: P(["ck-tile-picker__tile", { "ck-tile-picker__tile--selected": b.id === t.value, "ck-tile-picker__tile--disabled": e.disabled }]),
|
|
4445
4445
|
type: "button",
|
|
4446
|
-
onClick: (y) =>
|
|
4446
|
+
onClick: (y) => r(b)
|
|
4447
4447
|
}, [
|
|
4448
4448
|
b.icon ? (d(), S(m, {
|
|
4449
4449
|
key: 0,
|
|
@@ -4461,7 +4461,7 @@ const Na = {
|
|
|
4461
4461
|
key: 0,
|
|
4462
4462
|
class: "ck-tile-picker__change-btn",
|
|
4463
4463
|
type: "button",
|
|
4464
|
-
onClick:
|
|
4464
|
+
onClick: s[0] || (s[0] = (b) => i.value = !0)
|
|
4465
4465
|
}, [
|
|
4466
4466
|
H(m, {
|
|
4467
4467
|
size: "xs",
|
|
@@ -4478,11 +4478,11 @@ const Na = {
|
|
|
4478
4478
|
setup(e, { expose: o }) {
|
|
4479
4479
|
const t = M(""), n = M(""), l = M(""), i = M(""), a = M(() => {
|
|
4480
4480
|
}), p = M(() => {
|
|
4481
|
-
}), u = c(() => "¿Estás seguro?"), f = c(() => "Aceptar"),
|
|
4481
|
+
}), u = c(() => "¿Estás seguro?"), f = c(() => "Aceptar"), r = c(() => "Cancelar");
|
|
4482
4482
|
function v() {
|
|
4483
4483
|
p.value();
|
|
4484
4484
|
}
|
|
4485
|
-
function
|
|
4485
|
+
function s() {
|
|
4486
4486
|
a.value();
|
|
4487
4487
|
}
|
|
4488
4488
|
return o({
|
|
@@ -4506,10 +4506,10 @@ const Na = {
|
|
|
4506
4506
|
w("button", {
|
|
4507
4507
|
class: "ck-confirm__button--cancel",
|
|
4508
4508
|
onClick: m[0] || (m[0] = (k) => v())
|
|
4509
|
-
}, L(i.value ||
|
|
4509
|
+
}, L(i.value || r.value), 1),
|
|
4510
4510
|
w("button", {
|
|
4511
4511
|
class: "ck-confirm__button--accept",
|
|
4512
|
-
onClick: m[1] || (m[1] = (k) =>
|
|
4512
|
+
onClick: m[1] || (m[1] = (k) => s())
|
|
4513
4513
|
}, L(l.value || f.value), 1)
|
|
4514
4514
|
])
|
|
4515
4515
|
])
|
|
@@ -4526,7 +4526,7 @@ const Na = {
|
|
|
4526
4526
|
}), (u, f) => (d(), S(Pe, { to: "body" }, [
|
|
4527
4527
|
H(lt, {
|
|
4528
4528
|
modelValue: i.value,
|
|
4529
|
-
"onUpdate:modelValue": f[0] || (f[0] = (
|
|
4529
|
+
"onUpdate:modelValue": f[0] || (f[0] = (r) => i.value = r),
|
|
4530
4530
|
"accept-button": "",
|
|
4531
4531
|
"not-close-btn": "",
|
|
4532
4532
|
"header-color": "primary",
|
|
@@ -4534,7 +4534,7 @@ const Na = {
|
|
|
4534
4534
|
"accept-btn-type": "filled",
|
|
4535
4535
|
title: t.value || a.value,
|
|
4536
4536
|
"accept-btn-text": l.value || p.value,
|
|
4537
|
-
onAccept: f[1] || (f[1] = (
|
|
4537
|
+
onAccept: f[1] || (f[1] = (r) => i.value = !1)
|
|
4538
4538
|
}, {
|
|
4539
4539
|
default: q(() => [
|
|
4540
4540
|
w("div", Mi, L(n.value), 1)
|
|
@@ -4571,7 +4571,7 @@ const Na = {
|
|
|
4571
4571
|
}), f = c(() => {
|
|
4572
4572
|
const v = [];
|
|
4573
4573
|
return i.value && A.isColorTemplateVariable(i.value) && v.push(`ck-component__bg-color--${i.value}`), v;
|
|
4574
|
-
}),
|
|
4574
|
+
}), r = c(() => {
|
|
4575
4575
|
const v = [];
|
|
4576
4576
|
return i.value && !A.isColorTemplateVariable(i.value) && v.push({ "background-color": i.value }), v;
|
|
4577
4577
|
});
|
|
@@ -4581,12 +4581,12 @@ const Na = {
|
|
|
4581
4581
|
p.value();
|
|
4582
4582
|
}, a.value);
|
|
4583
4583
|
}, 10);
|
|
4584
|
-
}), (v,
|
|
4584
|
+
}), (v, s) => (d(), S(Pe, { to: "body" }, [
|
|
4585
4585
|
t.value ? (d(), g("div", Ri, [
|
|
4586
4586
|
w("div", {
|
|
4587
4587
|
class: P(["ck-notify", f.value]),
|
|
4588
|
-
style: E(
|
|
4589
|
-
onClick:
|
|
4588
|
+
style: E(r.value),
|
|
4589
|
+
onClick: s[0] || (s[0] = (h) => {
|
|
4590
4590
|
t.value = !1, p.value();
|
|
4591
4591
|
})
|
|
4592
4592
|
}, [
|