cleek 2.11.35 → 2.11.36
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.es.js +827 -820
- package/package.json +1 -1
package/dist/main.es.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
var Ot = Object.defineProperty;
|
|
2
2
|
var Wt = (e, o, t) => o in e ? Ot(e, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[o] = t;
|
|
3
|
-
var
|
|
3
|
+
var we = (e, o, t) => Wt(e, typeof o != "symbol" ? o + "" : o, t);
|
|
4
4
|
import Et from "floating-vue";
|
|
5
5
|
import { library as et } from "@fortawesome/fontawesome-svg-core";
|
|
6
6
|
import { fas as Ft } from "@fortawesome/free-solid-svg-icons";
|
|
7
7
|
import { far as qt } from "@fortawesome/free-regular-svg-icons";
|
|
8
8
|
import { fab as Nt } from "@fortawesome/free-brands-svg-icons";
|
|
9
|
-
import { ref as
|
|
10
|
-
import { defineStore as lo, storeToRefs as
|
|
9
|
+
import { ref as M, computed as c, watch as ue, defineComponent as z, resolveDirective as tt, openBlock as d, createElementBlock as g, toDisplayString as L, createTextVNode as G, createCommentVNode as C, withDirectives as re, Fragment as J, unref as xe, createElementVNode as w, onMounted as $e, withKeys as be, renderSlot as O, createBlock as S, Teleport as Pe, normalizeStyle as E, normalizeClass as P, resolveComponent as Y, nextTick as kt, onBeforeUnmount as ot, useModel as fe, withCtx as q, vModelDynamic as Ht, createVNode as H, mergeModels as te, renderList as se, vModelText as qe, mergeProps as Ae, withModifiers as ie, watchEffect as Ge, vShow as Ve, resolveDynamicComponent as Ut, pushScopeId as jt, popScopeId as Gt, inject as Yt, provide as Kt, onUpdated as Zt, normalizeProps as Jt, guardReactiveProps as Xt, Transition as Qt, vModelRadio as eo, vModelSelect as to, vModelCheckbox as oo, createApp as Ye } from "vue";
|
|
10
|
+
import { defineStore as lo, storeToRefs as ne } from "pinia";
|
|
11
11
|
import { FontAwesomeIcon as no } from "@fortawesome/vue-fontawesome";
|
|
12
12
|
import { isValid as ve, startOfDecade as ao, endOfDecade as io, eachYearOfInterval as so, getYear as he, getDecade as ze, isBefore as Se, isAfter as Le, addYears as bt, subYears as yt, startOfYear as ro, endOfYear as uo, format as We, eachMonthOfInterval as co, isSameMonth as Xe, isSameYear as it, startOfMonth as Ct, endOfMonth as wt, endOfWeek as po, startOfWeek as vo, setDay as fo, eachDayOfInterval as mo, isWithinInterval as ho, isSameDay as Ke, addMonths as go, subMonths as ko, set as st, isSameHour as bo, isSameMinute as yo, parse as rt, startOfDay as Co, endOfDay as wo, max as $o, min as xo } from "date-fns";
|
|
13
13
|
import { es as _o } from "date-fns/locale";
|
|
@@ -19,14 +19,14 @@ const Bo = {
|
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
};
|
|
22
|
-
function
|
|
22
|
+
function To(e) {
|
|
23
23
|
return !!(e && typeof e == "object" && !Array.isArray(e));
|
|
24
24
|
}
|
|
25
25
|
function Qe(e, o) {
|
|
26
26
|
for (const t in o)
|
|
27
|
-
|
|
27
|
+
To(o[t]) ? (e[t] || (e[t] = {}), Qe(e[t], o[t])) : e[t] = o[t];
|
|
28
28
|
}
|
|
29
|
-
function
|
|
29
|
+
function Vo(e, o) {
|
|
30
30
|
const t = {};
|
|
31
31
|
return Qe(t, e), Qe(t, o), t;
|
|
32
32
|
}
|
|
@@ -44,36 +44,36 @@ function Lo() {
|
|
|
44
44
|
(0, s.middleware)(v) && r(v);
|
|
45
45
|
}, p = function(s, v) {
|
|
46
46
|
var r = (function(_) {
|
|
47
|
-
var
|
|
48
|
-
if (!
|
|
49
|
-
return { handler:
|
|
50
|
-
return
|
|
47
|
+
var W = typeof _ == "function";
|
|
48
|
+
if (!W && typeof _ != "object") throw new Error("v-click-outside: Binding value must be a function or an object");
|
|
49
|
+
return { handler: W ? _ : _.handler, middleware: _.middleware || function(D) {
|
|
50
|
+
return D;
|
|
51
51
|
}, events: _.events || i, isActive: _.isActive !== !1, detectIframe: _.detectIframe !== !1, capture: !!_.capture };
|
|
52
52
|
})(v.value), h = r.handler, m = r.middleware, k = r.detectIframe, b = r.capture;
|
|
53
53
|
if (r.isActive) {
|
|
54
54
|
if (s[t] = r.events.map(function(_) {
|
|
55
|
-
return { event: _, srcTarget: document.documentElement, handler: function(
|
|
56
|
-
return (function(
|
|
57
|
-
var
|
|
58
|
-
(de ? de.indexOf(
|
|
59
|
-
})({ el: s, event:
|
|
55
|
+
return { event: _, srcTarget: document.documentElement, handler: function(W) {
|
|
56
|
+
return (function(D) {
|
|
57
|
+
var F = D.el, K = D.event, oe = D.handler, ae = D.middleware, de = K.path || K.composedPath && K.composedPath();
|
|
58
|
+
(de ? de.indexOf(F) < 0 : !F.contains(K.target)) && a({ event: K, handler: oe, middleware: ae });
|
|
59
|
+
})({ el: s, event: W, handler: h, middleware: m });
|
|
60
60
|
}, capture: b };
|
|
61
61
|
}), k) {
|
|
62
62
|
var y = { event: "blur", srcTarget: window, handler: function(_) {
|
|
63
|
-
return (function(
|
|
64
|
-
var
|
|
63
|
+
return (function(W) {
|
|
64
|
+
var D = W.el, F = W.event, K = W.handler, oe = W.middleware;
|
|
65
65
|
setTimeout(function() {
|
|
66
|
-
var
|
|
67
|
-
|
|
66
|
+
var ae = document.activeElement;
|
|
67
|
+
ae && ae.tagName === "IFRAME" && !D.contains(ae) && a({ event: F, handler: K, middleware: oe });
|
|
68
68
|
}, 0);
|
|
69
69
|
})({ el: s, event: _, handler: h, middleware: m });
|
|
70
70
|
}, capture: b };
|
|
71
71
|
s[t] = [].concat(s[t], [y]);
|
|
72
72
|
}
|
|
73
73
|
s[t].forEach(function(_) {
|
|
74
|
-
var
|
|
74
|
+
var W = _.event, D = _.srcTarget, F = _.handler;
|
|
75
75
|
return setTimeout(function() {
|
|
76
|
-
s[t] &&
|
|
76
|
+
s[t] && D.addEventListener(W, F, b);
|
|
77
77
|
}, 0);
|
|
78
78
|
});
|
|
79
79
|
}
|
|
@@ -163,8 +163,8 @@ function Io(e) {
|
|
|
163
163
|
}
|
|
164
164
|
}
|
|
165
165
|
const le = lo("cleek-options", () => {
|
|
166
|
-
const e =
|
|
167
|
-
return
|
|
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, (s) => Io(s), { deep: !0, immediate: !0 }), {
|
|
168
168
|
cleekOptions: e,
|
|
169
169
|
colorsOptions: o,
|
|
170
170
|
stylesOptions: t,
|
|
@@ -252,25 +252,25 @@ const Oo = {
|
|
|
252
252
|
class: "ck-datetime-shower--split",
|
|
253
253
|
onClick: f[0] || (f[0] = (v) => n("click", v))
|
|
254
254
|
}, [
|
|
255
|
-
G(
|
|
256
|
-
l.value ? (d(), g("span", Wo, " | " +
|
|
257
|
-
])) :
|
|
255
|
+
G(L(i.value) + " ", 1),
|
|
256
|
+
l.value ? (d(), g("span", Wo, " | " + L(l.value), 1)) : C("", !0)
|
|
257
|
+
])) : re((d(), g("div", {
|
|
258
258
|
key: 2,
|
|
259
259
|
class: "ck-datetime-shower",
|
|
260
260
|
onClick: f[1] || (f[1] = (v) => n("click", v))
|
|
261
261
|
}, [
|
|
262
|
-
G(
|
|
262
|
+
G(L(i.value), 1)
|
|
263
263
|
])), [
|
|
264
264
|
[s, l.value]
|
|
265
|
-
]) : (d(), g("span", Oo,
|
|
265
|
+
]) : (d(), g("span", Oo, L(e.noDateMsg), 1));
|
|
266
266
|
};
|
|
267
267
|
}
|
|
268
|
-
}),
|
|
268
|
+
}), U = (e, o) => {
|
|
269
269
|
const t = e.__vccOpts || e;
|
|
270
270
|
for (const [n, l] of o)
|
|
271
271
|
t[n] = l;
|
|
272
272
|
return t;
|
|
273
|
-
}, Fo = /* @__PURE__ */
|
|
273
|
+
}, Fo = /* @__PURE__ */ U(Eo, [["__scopeId", "data-v-1bac7a5c"]]), qo = { class: "ck-time-shower" }, No = /* @__PURE__ */ z({
|
|
274
274
|
__name: "ck-time-shower",
|
|
275
275
|
props: {
|
|
276
276
|
time: {},
|
|
@@ -279,14 +279,14 @@ const Oo = {
|
|
|
279
279
|
setup(e) {
|
|
280
280
|
return (o, t) => (d(), g("span", qo, [
|
|
281
281
|
e.minutes ? (d(), g(J, { key: 0 }, [
|
|
282
|
-
G(
|
|
282
|
+
G(L(xe(Ee)(e.minutes)), 1)
|
|
283
283
|
], 64)) : (d(), g(J, { key: 1 }, [
|
|
284
|
-
G(
|
|
284
|
+
G(L(xe(Bt)(e.time)), 1)
|
|
285
285
|
], 64)),
|
|
286
286
|
t[0] || (t[0] = w("span", { class: "hs-text" }, " hs ", -1))
|
|
287
287
|
]));
|
|
288
288
|
}
|
|
289
|
-
}), Ho = /* @__PURE__ */
|
|
289
|
+
}), Ho = /* @__PURE__ */ U(No, [["__scopeId", "data-v-a646c773"]]), Uo = /* @__PURE__ */ z({
|
|
290
290
|
__name: "ck-dropdown",
|
|
291
291
|
props: {
|
|
292
292
|
align: {},
|
|
@@ -298,18 +298,18 @@ const Oo = {
|
|
|
298
298
|
o({
|
|
299
299
|
close: f
|
|
300
300
|
});
|
|
301
|
-
const { cleekOptions: n } =
|
|
301
|
+
const { cleekOptions: n } = ne(le()), l = M(!1), i = M(), a = M(), p = M(), u = c(() => {
|
|
302
302
|
const s = [];
|
|
303
303
|
t.dark && s.push("ck-dropdown--content__dark");
|
|
304
304
|
const v = t.layout || n.value.styles.layout;
|
|
305
305
|
return v && s.push(`ck-dropdown--content__${v}`), s;
|
|
306
306
|
});
|
|
307
|
-
|
|
307
|
+
ue(() => l.value, (s) => {
|
|
308
308
|
if (s) {
|
|
309
309
|
const v = document.documentElement.clientHeight, r = document.documentElement.clientWidth, h = i.value.getBoundingClientRect(), m = {};
|
|
310
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 = `${r - h.right}px`), p.value = m;
|
|
311
311
|
}
|
|
312
|
-
}),
|
|
312
|
+
}), ue(() => a.value, (s) => {
|
|
313
313
|
if (s && t.align !== "left" && t.align !== "right") {
|
|
314
314
|
const v = i.value.getBoundingClientRect();
|
|
315
315
|
p.value.left = `${v.left + v.width / 2 - s.getBoundingClientRect().width / 2}px`;
|
|
@@ -318,7 +318,7 @@ const Oo = {
|
|
|
318
318
|
function f() {
|
|
319
319
|
l.value = !1;
|
|
320
320
|
}
|
|
321
|
-
return
|
|
321
|
+
return $e(() => {
|
|
322
322
|
window.addEventListener("scroll", () => l.value = !1);
|
|
323
323
|
}), (s, v) => {
|
|
324
324
|
const r = tt("click-outside");
|
|
@@ -327,23 +327,23 @@ const Oo = {
|
|
|
327
327
|
ref: i,
|
|
328
328
|
class: "ck-dropdown",
|
|
329
329
|
tabindex: "0",
|
|
330
|
-
onKeyup: v[1] || (v[1] =
|
|
330
|
+
onKeyup: v[1] || (v[1] = be((h) => l.value = !0, ["enter"]))
|
|
331
331
|
}, [
|
|
332
332
|
w("div", {
|
|
333
333
|
class: "ck-dropdown--trigger",
|
|
334
334
|
onClick: v[0] || (v[0] = (h) => l.value = !0)
|
|
335
335
|
}, [
|
|
336
|
-
|
|
336
|
+
O(s.$slots, "trigger", {}, void 0, !0)
|
|
337
337
|
]),
|
|
338
|
-
(d(),
|
|
339
|
-
l.value ?
|
|
338
|
+
(d(), S(Pe, { to: "body" }, [
|
|
339
|
+
l.value ? re((d(), g("div", {
|
|
340
340
|
key: 0,
|
|
341
341
|
ref_key: "contentRef",
|
|
342
342
|
ref: a,
|
|
343
|
-
class:
|
|
344
|
-
style:
|
|
343
|
+
class: P(["ck-dropdown--content", u.value]),
|
|
344
|
+
style: E(p.value)
|
|
345
345
|
}, [
|
|
346
|
-
|
|
346
|
+
O(s.$slots, "content", {}, void 0, !0)
|
|
347
347
|
], 6)), [
|
|
348
348
|
[r, () => l.value = !1]
|
|
349
349
|
]) : C("", !0)
|
|
@@ -351,7 +351,7 @@ const Oo = {
|
|
|
351
351
|
], 544);
|
|
352
352
|
};
|
|
353
353
|
}
|
|
354
|
-
}), jo = /* @__PURE__ */
|
|
354
|
+
}), jo = /* @__PURE__ */ U(Uo, [["__scopeId", "data-v-37f9c77c"]]), Go = "fixed", Yo = /* @__PURE__ */ z({
|
|
355
355
|
__name: "ck-navbar",
|
|
356
356
|
props: {
|
|
357
357
|
backgroundColor: {},
|
|
@@ -359,7 +359,7 @@ const Oo = {
|
|
|
359
359
|
position: {}
|
|
360
360
|
},
|
|
361
361
|
setup(e) {
|
|
362
|
-
const o = e, { cleekOptions: t } =
|
|
362
|
+
const o = e, { cleekOptions: t } = ne(le()), n = c(() => {
|
|
363
363
|
const a = [];
|
|
364
364
|
return o.padding && a.push("has-padding"), a;
|
|
365
365
|
}), l = c(() => {
|
|
@@ -374,23 +374,23 @@ const Oo = {
|
|
|
374
374
|
});
|
|
375
375
|
return (a, p) => (d(), g("div", {
|
|
376
376
|
class: "ck-navbar",
|
|
377
|
-
style:
|
|
377
|
+
style: E(l.value)
|
|
378
378
|
}, [
|
|
379
379
|
w("div", {
|
|
380
|
-
class:
|
|
381
|
-
style:
|
|
380
|
+
class: P(["ck-navbar__content", n.value]),
|
|
381
|
+
style: E(i.value)
|
|
382
382
|
}, [
|
|
383
|
-
|
|
383
|
+
O(a.$slots, "default", {}, void 0, !0)
|
|
384
384
|
], 6)
|
|
385
385
|
], 4));
|
|
386
386
|
}
|
|
387
|
-
}), Ko = /* @__PURE__ */
|
|
387
|
+
}), Ko = /* @__PURE__ */ U(Yo, [["__scopeId", "data-v-3a574311"]]), Zo = {}, Jo = { class: "ck-tr" };
|
|
388
388
|
function Xo(e, o) {
|
|
389
389
|
return d(), g("tr", Jo, [
|
|
390
|
-
|
|
390
|
+
O(e.$slots, "default", {}, void 0, !0)
|
|
391
391
|
]);
|
|
392
392
|
}
|
|
393
|
-
const
|
|
393
|
+
const Tt = /* @__PURE__ */ U(Zo, [["render", Xo], ["__scopeId", "data-v-53984b6f"]]), A = {
|
|
394
394
|
getGroupClass({
|
|
395
395
|
group: e,
|
|
396
396
|
groupVertical: o,
|
|
@@ -463,20 +463,20 @@ const Vt = /* @__PURE__ */ j(Zo, [["render", Xo], ["__scopeId", "data-v-53984b6f
|
|
|
463
463
|
(o.minWidth || (f = o.col) != null && f.minWidth) && (p = o.minWidth || ((s = o.col) == null ? void 0 : s.minWidth)), (o.fixedWidth || (v = o.col) != null && v.fixedWidth) && (p = o.fixedWidth || ((r = o.col) == null ? void 0 : r.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
|
-
}), i = c(() => o.col ?
|
|
466
|
+
}), i = c(() => o.col ? A.isColumnDisplayed(o.col) : !0);
|
|
467
467
|
return (a, p) => i.value ? (d(), g("td", {
|
|
468
468
|
key: 0,
|
|
469
|
-
class:
|
|
469
|
+
class: P([t.value, "ck-td"])
|
|
470
470
|
}, [
|
|
471
471
|
w("span", {
|
|
472
|
-
class:
|
|
473
|
-
style:
|
|
472
|
+
class: P(n.value),
|
|
473
|
+
style: E(l.value)
|
|
474
474
|
}, [
|
|
475
|
-
|
|
475
|
+
O(a.$slots, "default", {}, void 0, !0)
|
|
476
476
|
], 6)
|
|
477
477
|
], 2)) : C("", !0);
|
|
478
478
|
}
|
|
479
|
-
}),
|
|
479
|
+
}), Vt = /* @__PURE__ */ U(Qo, [["__scopeId", "data-v-8832ff61"]]), el = /* @__PURE__ */ z({
|
|
480
480
|
__name: "ck-table__columns-manager-btn",
|
|
481
481
|
props: {
|
|
482
482
|
layout: {}
|
|
@@ -484,7 +484,7 @@ const Vt = /* @__PURE__ */ j(Zo, [["render", Xo], ["__scopeId", "data-v-53984b6f
|
|
|
484
484
|
setup(e) {
|
|
485
485
|
return (o, t) => {
|
|
486
486
|
const n = Y("ck-button");
|
|
487
|
-
return d(),
|
|
487
|
+
return d(), S(n, {
|
|
488
488
|
size: "s",
|
|
489
489
|
color: "dark",
|
|
490
490
|
type: "flat",
|
|
@@ -510,9 +510,9 @@ const Vt = /* @__PURE__ */ j(Zo, [["render", Xo], ["__scopeId", "data-v-53984b6f
|
|
|
510
510
|
const i = o.currentPage * o.itemsPerPage;
|
|
511
511
|
return !o.itemsPerPage || i > o.listLength ? o.listLength : i;
|
|
512
512
|
}), l = c(() => !o.hideItemsPerPage && o.listLength && o.currentPage);
|
|
513
|
-
return (i, a) => l.value ? (d(), g("div", tl,
|
|
513
|
+
return (i, a) => l.value ? (d(), g("div", tl, L(t.value) + " - " + L(n.value) + " de " + L(e.listLength), 1)) : C("", !0);
|
|
514
514
|
}
|
|
515
|
-
}), ll = /* @__PURE__ */
|
|
515
|
+
}), ll = /* @__PURE__ */ U(ol, [["__scopeId", "data-v-c3b27c6d"]]), nl = /* @__PURE__ */ z({
|
|
516
516
|
__name: "ck-icon",
|
|
517
517
|
props: {
|
|
518
518
|
icon: {},
|
|
@@ -532,10 +532,10 @@ const Vt = /* @__PURE__ */ j(Zo, [["render", Xo], ["__scopeId", "data-v-53984b6f
|
|
|
532
532
|
return t.iconPack && (t.iconPack === "cleek" || t.iconPack === "feather") ? t.iconPack : s;
|
|
533
533
|
}), i = c(() => {
|
|
534
534
|
const s = [];
|
|
535
|
-
return t.color &&
|
|
535
|
+
return t.color && A.isColorTemplateVariable(t.color) && s.push(`ck-component__color--${t.color}`), t.size && s.push(`ck-icon__size-${t.size}`), s;
|
|
536
536
|
}), a = c(() => {
|
|
537
537
|
const s = [];
|
|
538
|
-
return t.color && !
|
|
538
|
+
return t.color && !A.isColorTemplateVariable(t.color) && s.push({ color: t.color }), s;
|
|
539
539
|
});
|
|
540
540
|
function p(s) {
|
|
541
541
|
n("click", s);
|
|
@@ -545,14 +545,14 @@ const Vt = /* @__PURE__ */ j(Zo, [["render", Xo], ["__scopeId", "data-v-53984b6f
|
|
|
545
545
|
return `mask: url(${s}) no-repeat center; -webkit-mask: url(${s}) no-repeat center;`;
|
|
546
546
|
}), f = c(() => {
|
|
547
547
|
const s = [];
|
|
548
|
-
return t.color ? t.color &&
|
|
548
|
+
return t.color ? t.color && A.isColorTemplateVariable(t.color) && s.push(`ck-component__color-background--${t.color}`) : s.push("ck-component__color--primary"), t.size && s.push("ck-icon__cleek-small"), t.size === "m" && s.push("ck-icon__cleek-medium"), t.size === "l" && s.push("ck-icon__cleek-large"), s;
|
|
549
549
|
});
|
|
550
550
|
return (s, v) => (d(), g("div", {
|
|
551
|
-
class:
|
|
552
|
-
style:
|
|
551
|
+
class: P(["ck-icon", i.value]),
|
|
552
|
+
style: E(a.value),
|
|
553
553
|
onClick: v[0] || (v[0] = (r) => p(r))
|
|
554
554
|
}, [
|
|
555
|
-
l.value === "font-awesome" ? (d(),
|
|
555
|
+
l.value === "font-awesome" ? (d(), S(xe(no), {
|
|
556
556
|
key: 0,
|
|
557
557
|
icon: e.icon,
|
|
558
558
|
rotation: e.rotation,
|
|
@@ -562,18 +562,18 @@ const Vt = /* @__PURE__ */ j(Zo, [["render", Xo], ["__scopeId", "data-v-53984b6f
|
|
|
562
562
|
"fixed-width": e.fixedWidth
|
|
563
563
|
}, null, 8, ["icon", "rotation", "flip", "spin", "pulse", "fixed-width"])) : l.value === "cleek" ? (d(), g("div", {
|
|
564
564
|
key: 1,
|
|
565
|
-
style:
|
|
566
|
-
class:
|
|
565
|
+
style: E(u.value),
|
|
566
|
+
class: P([f.value, "ck-icon__cleek"])
|
|
567
567
|
}, null, 6)) : C("", !0)
|
|
568
568
|
], 6));
|
|
569
569
|
}
|
|
570
|
-
}), X = /* @__PURE__ */
|
|
571
|
-
function
|
|
572
|
-
const e =
|
|
570
|
+
}), X = /* @__PURE__ */ U(nl, [["__scopeId", "data-v-a353bf7b"]]);
|
|
571
|
+
function ye() {
|
|
572
|
+
const e = M(0);
|
|
573
573
|
function o(t) {
|
|
574
574
|
e.value = t.currentTarget.innerWidth || 0;
|
|
575
575
|
}
|
|
576
|
-
return
|
|
576
|
+
return $e(() => {
|
|
577
577
|
kt(() => {
|
|
578
578
|
window.addEventListener("resize", o);
|
|
579
579
|
}), e.value = window.innerWidth;
|
|
@@ -609,9 +609,9 @@ const al = ["title", "aria-label", "disabled", "tabindex"], Ze = "transparent",
|
|
|
609
609
|
},
|
|
610
610
|
emits: ["click"],
|
|
611
611
|
setup(e, { emit: o }) {
|
|
612
|
-
const t = e, n = o, { cleekOptions: l } =
|
|
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
613
|
const r = [];
|
|
614
|
-
r.push(
|
|
614
|
+
r.push(A.getGroupClass(t, i.value)), (t.color || pt) !== pt && (a.value === "filled" ? r.push(`ck-component__bg-color--${t.color}`) : r.push(`ck-component__border-color--${t.color}`)), p.value !== Ze && A.isColorTemplateVariable(p.value) && r.push(`ck-component__bg-color--${p.value}`), u.value && A.isColorTemplateVariable(u.value) && r.push(`ck-component__color--${u.value}`);
|
|
615
615
|
const m = t.align || sl;
|
|
616
616
|
(m === "center" || m === "right") && r.push(`ck-button__align--${t.align}`);
|
|
617
617
|
const k = t.layout || l.value.styles.layout;
|
|
@@ -620,46 +620,46 @@ const al = ["title", "aria-label", "disabled", "tabindex"], Ze = "transparent",
|
|
|
620
620
|
const r = [];
|
|
621
621
|
let h = !1;
|
|
622
622
|
if (t.widthBreaks) {
|
|
623
|
-
const m =
|
|
623
|
+
const m = A.getWidthByWidthBreaks(t.widthBreaks, i.value);
|
|
624
624
|
m && (h = !0, r.push({ width: m }));
|
|
625
625
|
}
|
|
626
|
-
return u.value && !
|
|
626
|
+
return u.value && !A.isColorTemplateVariable(u.value) && r.push({ color: `${u.value} !important` }), t.width && !h && r.push({ width: t.width }), p.value !== Ze && !A.isColorTemplateVariable(p.value) && r.push({ "background-color": p.value }), t.color && !A.isColorTemplateVariable(t.color) && (a.value === "outlined" ? (r.push({ "border-color": t.color }), r.push({ color: t.color })) : a.value === "filled" ? (r.push({ color: "white" }), r.push({ "border-color": t.color }), r.push({ "background-color": t.color })) : a.value === "flat" && r.push({ color: t.color })), r;
|
|
627
627
|
});
|
|
628
628
|
function v(r) {
|
|
629
629
|
t.isLoading || n("click", r);
|
|
630
630
|
}
|
|
631
631
|
return (r, h) => (d(), g("button", {
|
|
632
632
|
type: "button",
|
|
633
|
-
class:
|
|
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:
|
|
638
|
+
style: E(s.value),
|
|
639
639
|
onClick: h[0] || (h[0] = (m) => v(m))
|
|
640
640
|
}, [
|
|
641
|
-
e.isLoading ? (d(),
|
|
641
|
+
e.isLoading ? (d(), S(X, {
|
|
642
642
|
key: 0,
|
|
643
643
|
icon: "spinner",
|
|
644
644
|
spin: ""
|
|
645
645
|
})) : (d(), g(J, { key: 1 }, [
|
|
646
|
-
e.icon ? (d(),
|
|
646
|
+
e.icon ? (d(), S(X, {
|
|
647
647
|
key: 0,
|
|
648
|
-
class:
|
|
648
|
+
class: P(["ck-button__icon-left", { "just-icon": !r.$slots.default }]),
|
|
649
649
|
icon: e.icon,
|
|
650
650
|
"icon-pack": e.iconPack
|
|
651
651
|
}, null, 8, ["icon", "icon-pack", "class"])) : C("", !0),
|
|
652
|
-
|
|
653
|
-
e.iconRight ? (d(),
|
|
652
|
+
O(r.$slots, "default", {}, void 0, !0),
|
|
653
|
+
e.iconRight ? (d(), S(X, {
|
|
654
654
|
key: 1,
|
|
655
|
-
class:
|
|
655
|
+
class: P(["ck-button__icon-right", { "just-icon": !r.$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__ */
|
|
662
|
+
}), _e = /* @__PURE__ */ U(rl, [["__scopeId", "data-v-82dbc47d"]]), ul = ["for"], cl = "m", dl = /* @__PURE__ */ z({
|
|
663
663
|
__name: "ck-label",
|
|
664
664
|
props: {
|
|
665
665
|
for: {},
|
|
@@ -667,24 +667,24 @@ const al = ["title", "aria-label", "disabled", "tabindex"], Ze = "transparent",
|
|
|
667
667
|
size: {}
|
|
668
668
|
},
|
|
669
669
|
setup(e) {
|
|
670
|
-
const o = e, { cleekOptions: t } =
|
|
670
|
+
const o = e, { cleekOptions: t } = ne(le()), n = c(() => {
|
|
671
671
|
const i = [];
|
|
672
672
|
let a = "left";
|
|
673
673
|
return (o.align === "center" || o.align === "right") && (a = o.align), i.push(`ck-align--${a}`), i.push(`ck-size--${o.size || cl}`), i;
|
|
674
674
|
}), l = c(() => {
|
|
675
675
|
const i = [];
|
|
676
676
|
let a = t.value.popup.textColor;
|
|
677
|
-
return t.value.darkMode && (a = t.value.darkModeColorText), a && (
|
|
677
|
+
return t.value.darkMode && (a = t.value.darkModeColorText), a && (A.isColorTemplateVariable(a) ? i.push(`ck-component__color--${a}`) : i.push({ color: a })), i;
|
|
678
678
|
});
|
|
679
679
|
return (i, a) => (d(), g("label", {
|
|
680
|
-
class:
|
|
680
|
+
class: P(["ck-label", n.value]),
|
|
681
681
|
for: o.for,
|
|
682
|
-
style:
|
|
682
|
+
style: E(l.value)
|
|
683
683
|
}, [
|
|
684
|
-
|
|
684
|
+
O(i.$slots, "default", {}, void 0, !0)
|
|
685
685
|
], 14, ul));
|
|
686
686
|
}
|
|
687
|
-
}), Me = /* @__PURE__ */
|
|
687
|
+
}), Me = /* @__PURE__ */ U(dl, [["__scopeId", "data-v-f242d7f6"]]), pl = {
|
|
688
688
|
key: 0,
|
|
689
689
|
class: "ck-input__optional-label"
|
|
690
690
|
}, vl = { class: "ck-input__content" }, fl = ["type", "autocomplete", "readonly", "placeholder", "disabled", "tabindex"], ml = "120px", vt = "center", hl = /* @__PURE__ */ z({
|
|
@@ -732,51 +732,51 @@ const al = ["title", "aria-label", "disabled", "tabindex"], Ze = "transparent",
|
|
|
732
732
|
emits: /* @__PURE__ */ te(["click", "focus", "blur", "input", "inputDelayed", "change", "changeDelayed", "rightIconClick"], ["update:modelValue"]),
|
|
733
733
|
setup(e, { expose: o, emit: t }) {
|
|
734
734
|
const n = fe(e, "modelValue"), l = e, i = t;
|
|
735
|
-
o({ focus:
|
|
736
|
-
const { cleekOptions: a } =
|
|
735
|
+
o({ focus: W, select: D });
|
|
736
|
+
const { cleekOptions: a } = ne(le()), { windowWidth: p } = ye(), u = M(), f = M(""), s = M(!1), v = M(!1), r = c(() => s.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
|
-
let
|
|
739
|
-
if (l.width && (
|
|
740
|
-
const Z =
|
|
738
|
+
let T = "";
|
|
739
|
+
if (l.width && (T = l.width), l.plusMinusButtons && (T = ml), T && V.push({ width: T }), l.widthBreaks) {
|
|
740
|
+
const Z = A.getWidthByWidthBreaks(l.widthBreaks, p.value);
|
|
741
741
|
Z && V.push({ width: Z });
|
|
742
742
|
}
|
|
743
743
|
return V;
|
|
744
744
|
}), b = c(() => {
|
|
745
745
|
const V = [];
|
|
746
|
-
V.push(
|
|
747
|
-
let
|
|
748
|
-
l.plusMinusButtons && (
|
|
746
|
+
V.push(A.getGroupClass(l, p.value)), l.icon && V.push("has-icon-left"), l.iconRight && V.push("has-icon-right");
|
|
747
|
+
let T = l.align;
|
|
748
|
+
l.plusMinusButtons && (T = vt), T && V.push(`align--${T}`), l.hideBorder && V.push("no-border");
|
|
749
749
|
const Z = l.layout || a.value.styles.layout;
|
|
750
750
|
Z && V.push(Z), l.plusMinusButtons && V.push("squared"), l.size && V.push(`ck-input-size__${l.size}`);
|
|
751
|
-
const
|
|
752
|
-
return
|
|
751
|
+
const R = l.borderColor || a.value.styles.borderColor;
|
|
752
|
+
return R && A.isColorTemplateVariable(R) && V.push(`ck-component__border-color--${R}`), V;
|
|
753
753
|
}), y = c(() => {
|
|
754
754
|
const V = [];
|
|
755
755
|
l.fontSize && V.push({ "font-size": l.fontSize }), l.textColor && V.push({ color: l.textColor });
|
|
756
|
-
const
|
|
757
|
-
|
|
756
|
+
const T = l.borderColor || a.value.styles.borderColor;
|
|
757
|
+
T && !A.isColorTemplateVariable(T) && V.push({ "border-color": T });
|
|
758
758
|
let Z = "";
|
|
759
|
-
a.value.darkMode && (Z = a.value.darkModeColorItems), Z && !
|
|
760
|
-
let
|
|
761
|
-
return a.value.darkMode && (
|
|
759
|
+
a.value.darkMode && (Z = a.value.darkModeColorItems), Z && !A.isColorTemplateVariable(Z) && V.push({ backgroundColor: Z });
|
|
760
|
+
let R = l.textColor || a.value.popup.textColor;
|
|
761
|
+
return a.value.darkMode && (R = a.value.darkModeColorText), R && !A.isColorTemplateVariable(R) && (V.push(`ck-component__color--${R}`), V.push({ color: R })), V;
|
|
762
762
|
});
|
|
763
763
|
let _ = !1;
|
|
764
|
-
|
|
764
|
+
ue(
|
|
765
765
|
() => n.value,
|
|
766
766
|
(V) => {
|
|
767
767
|
_ && r.value === "number" && Number(f.value || 0) === Number(V) || (_ = !0, me(V));
|
|
768
768
|
},
|
|
769
769
|
{ immediate: !0 }
|
|
770
770
|
);
|
|
771
|
-
function
|
|
771
|
+
function W() {
|
|
772
772
|
var V;
|
|
773
773
|
(V = u.value) == null || V.focus();
|
|
774
774
|
}
|
|
775
|
-
function
|
|
775
|
+
function D() {
|
|
776
776
|
var V;
|
|
777
777
|
(V = u.value) == null || V.select();
|
|
778
778
|
}
|
|
779
|
-
function
|
|
779
|
+
function F(V) {
|
|
780
780
|
i("input", V), setTimeout(() => {
|
|
781
781
|
n.value === V && i("inputDelayed", V);
|
|
782
782
|
}, l.delayChangeTime);
|
|
@@ -787,88 +787,88 @@ const al = ["title", "aria-label", "disabled", "tabindex"], Ze = "transparent",
|
|
|
787
787
|
}, l.delayChangeTime);
|
|
788
788
|
}
|
|
789
789
|
function oe(V) {
|
|
790
|
-
var
|
|
791
|
-
i("click", V), l.autoSelect && ((
|
|
790
|
+
var T;
|
|
791
|
+
i("click", V), l.autoSelect && ((T = u.value) == null || T.select());
|
|
792
792
|
}
|
|
793
|
-
function
|
|
793
|
+
function ae() {
|
|
794
794
|
if (r.value === "number") {
|
|
795
|
-
const
|
|
796
|
-
n.value =
|
|
795
|
+
const T = f.value, Z = T === "" || T === null || T === void 0, R = Z ? 0 : Ce(T);
|
|
796
|
+
n.value = R, !Z && Number(T) !== R && (f.value = R), F(R);
|
|
797
797
|
return;
|
|
798
798
|
}
|
|
799
799
|
const V = me(f.value);
|
|
800
|
-
|
|
800
|
+
F(V);
|
|
801
801
|
}
|
|
802
802
|
function de() {
|
|
803
|
-
var
|
|
804
|
-
const V = (
|
|
803
|
+
var T;
|
|
804
|
+
const V = (T = u.value) == null ? void 0 : T.value;
|
|
805
805
|
return V === void 0 || V === `${f.value}` ? !1 : (me(V), !0);
|
|
806
806
|
}
|
|
807
|
-
function
|
|
807
|
+
function ge() {
|
|
808
808
|
de(), K(n.value);
|
|
809
809
|
}
|
|
810
810
|
function x(V) {
|
|
811
811
|
i("focus", V), l.preventAutocomplete && (v.value = !0), r.value === "number" && !f.value && (f.value = "");
|
|
812
812
|
}
|
|
813
|
-
function
|
|
813
|
+
function B(V) {
|
|
814
814
|
de() && K(n.value), i("blur", V);
|
|
815
815
|
}
|
|
816
|
-
function
|
|
816
|
+
function j() {
|
|
817
817
|
const V = me(+f.value - 1);
|
|
818
|
-
|
|
818
|
+
F(V), K(V);
|
|
819
819
|
}
|
|
820
820
|
function pe() {
|
|
821
821
|
const V = me(+f.value + 1);
|
|
822
|
-
|
|
822
|
+
F(V), K(V);
|
|
823
823
|
}
|
|
824
|
-
function
|
|
825
|
-
let
|
|
826
|
-
return l.capitalize && (
|
|
824
|
+
function ce(V) {
|
|
825
|
+
let T = V;
|
|
826
|
+
return l.capitalize && (T = xt(`${T}`)), l.toUpperCase && (T = `${T}`.toUpperCase()), h.value && (T = parseInt(`${+T}`)), typeof l.min < "u" && +T < +l.min && (T = +l.min), typeof l.max < "u" && +T > +l.max && (T = +l.max), T;
|
|
827
827
|
}
|
|
828
|
-
function
|
|
829
|
-
const
|
|
830
|
-
return Number.isFinite(
|
|
828
|
+
function Ce(V) {
|
|
829
|
+
const T = Number(ce(V));
|
|
830
|
+
return Number.isFinite(T) ? T : 0;
|
|
831
831
|
}
|
|
832
832
|
function me(V) {
|
|
833
833
|
if (r.value === "number") {
|
|
834
|
-
const Z = V === "" || V === null || V === void 0,
|
|
835
|
-
return n.value =
|
|
834
|
+
const Z = V === "" || V === null || V === void 0, R = Z ? 0 : Ce(V);
|
|
835
|
+
return n.value = R, f.value = Z ? "" : R, R;
|
|
836
836
|
}
|
|
837
|
-
const
|
|
838
|
-
return n.value =
|
|
837
|
+
const T = ce(V);
|
|
838
|
+
return n.value = T, f.value = T, T;
|
|
839
839
|
}
|
|
840
|
-
return
|
|
841
|
-
l.autofocus && (
|
|
842
|
-
}), (V,
|
|
843
|
-
var
|
|
840
|
+
return $e(() => {
|
|
841
|
+
l.autofocus && (W(), oe(null));
|
|
842
|
+
}), (V, T) => {
|
|
843
|
+
var R;
|
|
844
844
|
const Z = Y("ck-button");
|
|
845
845
|
return d(), g("div", {
|
|
846
|
-
class:
|
|
847
|
-
style:
|
|
846
|
+
class: P(["ck-input", `ck-input--size-${e.size}`]),
|
|
847
|
+
style: E(k.value)
|
|
848
848
|
}, [
|
|
849
|
-
e.label ? (d(),
|
|
849
|
+
e.label ? (d(), S(Me, {
|
|
850
850
|
key: 0,
|
|
851
851
|
for: "ck-input",
|
|
852
852
|
size: e.size,
|
|
853
853
|
align: m.value
|
|
854
854
|
}, {
|
|
855
|
-
default:
|
|
856
|
-
G(
|
|
855
|
+
default: q(() => [
|
|
856
|
+
G(L(e.label) + " ", 1),
|
|
857
857
|
e.optional ? (d(), g("span", pl, "opcional")) : C("", !0)
|
|
858
858
|
]),
|
|
859
859
|
_: 1
|
|
860
860
|
}, 8, ["size", "align"])) : C("", !0),
|
|
861
861
|
w("div", vl, [
|
|
862
|
-
e.plusMinusButtons ? (d(),
|
|
862
|
+
e.plusMinusButtons ? (d(), S(Z, {
|
|
863
863
|
key: 0,
|
|
864
864
|
size: "s",
|
|
865
865
|
icon: "minus",
|
|
866
866
|
group: "left",
|
|
867
867
|
type: "filled",
|
|
868
|
-
class:
|
|
869
|
-
onClick:
|
|
868
|
+
class: P(["ck-input-plus-minus-buttons", { "--small": e.size === "s" }]),
|
|
869
|
+
onClick: T[0] || (T[0] = (Q) => j())
|
|
870
870
|
}, null, 8, ["class"])) : C("", !0),
|
|
871
|
-
e.icon ? (d(),
|
|
871
|
+
e.icon ? (d(), S(X, {
|
|
872
872
|
key: 1,
|
|
873
873
|
class: "ck-input__icon-left",
|
|
874
874
|
color: e.iconColor ? e.iconColor : "lightgrey",
|
|
@@ -876,61 +876,61 @@ const al = ["title", "aria-label", "disabled", "tabindex"], Ze = "transparent",
|
|
|
876
876
|
"icon-pack": e.iconPack,
|
|
877
877
|
size: "s"
|
|
878
878
|
}, null, 8, ["color", "icon", "icon-pack"])) : C("", !0),
|
|
879
|
-
|
|
879
|
+
re(w("input", {
|
|
880
880
|
ref_key: "inputRef",
|
|
881
881
|
ref: u,
|
|
882
|
-
"onUpdate:modelValue":
|
|
882
|
+
"onUpdate:modelValue": T[1] || (T[1] = (Q) => f.value = Q),
|
|
883
883
|
type: r.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,
|
|
887
|
-
class:
|
|
888
|
-
style:
|
|
887
|
+
class: P(b.value),
|
|
888
|
+
style: E(y.value),
|
|
889
889
|
disabled: e.disabled,
|
|
890
890
|
tabindex: e.tabindex,
|
|
891
|
-
onClick:
|
|
892
|
-
onInput:
|
|
893
|
-
onChange:
|
|
894
|
-
onFocus:
|
|
895
|
-
onBlur:
|
|
891
|
+
onClick: T[2] || (T[2] = (Q) => oe(Q)),
|
|
892
|
+
onInput: T[3] || (T[3] = (Q) => ae()),
|
|
893
|
+
onChange: T[4] || (T[4] = (Q) => ge()),
|
|
894
|
+
onFocus: T[5] || (T[5] = (Q) => x(Q)),
|
|
895
|
+
onBlur: T[6] || (T[6] = (Q) => B(Q))
|
|
896
896
|
}, null, 46, fl), [
|
|
897
897
|
[Ht, f.value]
|
|
898
898
|
]),
|
|
899
899
|
e.type === "password" ? (d(), g("div", {
|
|
900
900
|
key: 2,
|
|
901
|
-
class:
|
|
902
|
-
onClick:
|
|
901
|
+
class: P(["show-password", e.layout || ((R = xe(a)) == null ? void 0 : R.styles.layout)]),
|
|
902
|
+
onClick: T[7] || (T[7] = (Q) => s.value = !s.value)
|
|
903
903
|
}, [
|
|
904
|
-
|
|
904
|
+
H(X, {
|
|
905
905
|
icon: s.value ? "eye-slash" : "eye"
|
|
906
906
|
}, null, 8, ["icon"])
|
|
907
907
|
], 2)) : C("", !0),
|
|
908
|
-
e.iconRight && e.type !== "password" ? (d(),
|
|
908
|
+
e.iconRight && e.type !== "password" ? (d(), S(X, {
|
|
909
909
|
key: 3,
|
|
910
910
|
class: "ck-input__icon-right",
|
|
911
911
|
color: e.iconColor ? e.iconColor : "lightgrey",
|
|
912
912
|
icon: e.iconRight,
|
|
913
913
|
"icon-pack": e.iconPack,
|
|
914
|
-
onClick:
|
|
914
|
+
onClick: T[8] || (T[8] = (Q) => i("rightIconClick", Q))
|
|
915
915
|
}, null, 8, ["color", "icon", "icon-pack"])) : C("", !0),
|
|
916
|
-
e.plusMinusButtons ? (d(),
|
|
916
|
+
e.plusMinusButtons ? (d(), S(Z, {
|
|
917
917
|
key: 4,
|
|
918
918
|
size: "s",
|
|
919
919
|
icon: "plus",
|
|
920
920
|
group: "right",
|
|
921
921
|
type: "filled",
|
|
922
|
-
class:
|
|
923
|
-
onClick:
|
|
922
|
+
class: P(["ck-input-plus-minus-buttons", { "--small": e.size === "s" }]),
|
|
923
|
+
onClick: T[9] || (T[9] = (Q) => pe())
|
|
924
924
|
}, null, 8, ["class"])) : C("", !0),
|
|
925
925
|
e.suffix ? (d(), g("span", {
|
|
926
926
|
key: 5,
|
|
927
|
-
class:
|
|
928
|
-
},
|
|
927
|
+
class: P(["suffix", { "--plus-minus-btns": e.plusMinusButtons }])
|
|
928
|
+
}, L(e.suffix), 3)) : C("", !0)
|
|
929
929
|
])
|
|
930
930
|
], 6);
|
|
931
931
|
};
|
|
932
932
|
}
|
|
933
|
-
}), Dt = /* @__PURE__ */
|
|
933
|
+
}), Dt = /* @__PURE__ */ U(hl, [["__scopeId", "data-v-bf2558ca"]]), gl = {
|
|
934
934
|
key: 0,
|
|
935
935
|
class: "flex items-center"
|
|
936
936
|
}, kl = { key: 2 }, bl = /* @__PURE__ */ z({
|
|
@@ -961,13 +961,13 @@ const al = ["title", "aria-label", "disabled", "tabindex"], Ze = "transparent",
|
|
|
961
961
|
}, 1e3);
|
|
962
962
|
}
|
|
963
963
|
return (f, s) => (d(), g("div", {
|
|
964
|
-
class:
|
|
964
|
+
class: P(["ck-table__header-items", a.value])
|
|
965
965
|
}, [
|
|
966
966
|
f.$slots.headerActionsLeft ? (d(), g("div", gl, [
|
|
967
|
-
|
|
967
|
+
O(f.$slots, "headerActionsLeft", {}, void 0, !0)
|
|
968
968
|
])) : C("", !0),
|
|
969
969
|
!e.hideHeaderActions && i.value ? (d(), g(J, { key: 1 }, [
|
|
970
|
-
e.hideRefreshBtn ? C("", !0) : (d(),
|
|
970
|
+
e.hideRefreshBtn ? C("", !0) : (d(), S(_e, {
|
|
971
971
|
key: 0,
|
|
972
972
|
class: "mr-1",
|
|
973
973
|
type: "flat",
|
|
@@ -978,7 +978,7 @@ const al = ["title", "aria-label", "disabled", "tabindex"], Ze = "transparent",
|
|
|
978
978
|
"is-loading": !!e.isLoading,
|
|
979
979
|
onClick: s[0] || (s[0] = (v) => p())
|
|
980
980
|
}, null, 8, ["icon", "is-loading"])),
|
|
981
|
-
|
|
981
|
+
H(Dt, {
|
|
982
982
|
modelValue: t.value,
|
|
983
983
|
"onUpdate:modelValue": s[1] || (s[1] = (v) => t.value = v),
|
|
984
984
|
class: "ck-table--search-input",
|
|
@@ -990,11 +990,11 @@ const al = ["title", "aria-label", "disabled", "tabindex"], Ze = "transparent",
|
|
|
990
990
|
}, null, 8, ["modelValue", "border-color"])
|
|
991
991
|
], 64)) : C("", !0),
|
|
992
992
|
f.$slots.headerActionsRight ? (d(), g("div", kl, [
|
|
993
|
-
|
|
993
|
+
O(f.$slots, "headerActionsRight", {}, void 0, !0)
|
|
994
994
|
])) : C("", !0)
|
|
995
995
|
], 2));
|
|
996
996
|
}
|
|
997
|
-
}), yl = /* @__PURE__ */
|
|
997
|
+
}), yl = /* @__PURE__ */ U(bl, [["__scopeId", "data-v-7bde7567"]]), Cl = { class: "ck-table__pagination" }, wl = { class: "ck-table__pagination--numbers-container" }, $l = ["onClick"], xl = { class: "ck-table__pagination-input-container" }, _l = ["onClick"], ft = 5, Bl = /* @__PURE__ */ z({
|
|
998
998
|
__name: "ck-table__pagination",
|
|
999
999
|
props: {
|
|
1000
1000
|
totalPages: {},
|
|
@@ -1006,7 +1006,7 @@ const al = ["title", "aria-label", "disabled", "tabindex"], Ze = "transparent",
|
|
|
1006
1006
|
},
|
|
1007
1007
|
emits: ["refreshList", "update:currentPage"],
|
|
1008
1008
|
setup(e, { emit: o }) {
|
|
1009
|
-
const t = e, n = o, { cleekOptions: l } =
|
|
1009
|
+
const t = e, n = o, { cleekOptions: l } = ne(le()), i = c({
|
|
1010
1010
|
get() {
|
|
1011
1011
|
return t.currentPage;
|
|
1012
1012
|
},
|
|
@@ -1041,7 +1041,7 @@ const al = ["title", "aria-label", "disabled", "tabindex"], Ze = "transparent",
|
|
|
1041
1041
|
const y = t.layout || l.value.styles.layout;
|
|
1042
1042
|
return y && k.push(y), k;
|
|
1043
1043
|
});
|
|
1044
|
-
|
|
1044
|
+
ue(() => i.value, () => n("refreshList"));
|
|
1045
1045
|
function r(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;
|
|
@@ -1053,24 +1053,24 @@ const al = ["title", "aria-label", "disabled", "tabindex"], Ze = "transparent",
|
|
|
1053
1053
|
p.value && (i.value = t.currentPage - 1);
|
|
1054
1054
|
}
|
|
1055
1055
|
return (k, b) => (d(), g("div", {
|
|
1056
|
-
class:
|
|
1056
|
+
class: P(["ck-table__pagination-container", v.value])
|
|
1057
1057
|
}, [
|
|
1058
1058
|
w("div", Cl, [
|
|
1059
1059
|
w("div", {
|
|
1060
|
-
class:
|
|
1060
|
+
class: P(["ck-table__pagination--arrow-left", { disabled: !p.value }]),
|
|
1061
1061
|
onClick: b[0] || (b[0] = (y) => m())
|
|
1062
1062
|
}, [
|
|
1063
|
-
|
|
1063
|
+
H(X, {
|
|
1064
1064
|
icon: p.value ? "angle-left" : "grip-lines-vertical"
|
|
1065
1065
|
}, null, 8, ["icon"])
|
|
1066
1066
|
], 2),
|
|
1067
1067
|
w("div", wl, [
|
|
1068
|
-
(d(!0), g(J, null,
|
|
1068
|
+
(d(!0), g(J, null, se(f.value, (y) => (d(), g("div", {
|
|
1069
1069
|
class: "ck-table__pagination-item--left",
|
|
1070
1070
|
onClick: (_) => i.value = y
|
|
1071
|
-
},
|
|
1071
|
+
}, L(y), 9, $l))), 256)),
|
|
1072
1072
|
w("div", xl, [
|
|
1073
|
-
|
|
1073
|
+
re(w("input", {
|
|
1074
1074
|
"onUpdate:modelValue": b[1] || (b[1] = (y) => a.value = y),
|
|
1075
1075
|
class: "ck-table__pagination-input",
|
|
1076
1076
|
type: "number",
|
|
@@ -1081,23 +1081,23 @@ const al = ["title", "aria-label", "disabled", "tabindex"], Ze = "transparent",
|
|
|
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,
|
|
1084
|
+
(d(!0), g(J, null, se(s.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))
|
|
1088
1088
|
]),
|
|
1089
1089
|
w("div", {
|
|
1090
|
-
class:
|
|
1090
|
+
class: P(["ck-table__pagination--arrow-right", { disabled: !u.value }]),
|
|
1091
1091
|
onClick: b[4] || (b[4] = (y) => h())
|
|
1092
1092
|
}, [
|
|
1093
|
-
|
|
1093
|
+
H(X, {
|
|
1094
1094
|
icon: u.value ? "angle-right" : "grip-lines-vertical"
|
|
1095
1095
|
}, null, 8, ["icon"])
|
|
1096
1096
|
], 2)
|
|
1097
1097
|
])
|
|
1098
1098
|
], 2));
|
|
1099
1099
|
}
|
|
1100
|
-
}),
|
|
1100
|
+
}), Tl = /* @__PURE__ */ U(Bl, [["__scopeId", "data-v-c5a42fe7"]]), Vl = ["disabled", "checked"], Dl = ["textContent"], Sl = "m", Ll = /* @__PURE__ */ z({
|
|
1101
1101
|
__name: "ck-checkbox",
|
|
1102
1102
|
props: /* @__PURE__ */ te({
|
|
1103
1103
|
label: {},
|
|
@@ -1121,62 +1121,62 @@ const al = ["title", "aria-label", "disabled", "tabindex"], Ze = "transparent",
|
|
|
1121
1121
|
return n.size && r.push(`size__${n.size}`), r;
|
|
1122
1122
|
}), p = c(() => {
|
|
1123
1123
|
const r = [];
|
|
1124
|
-
return n.color &&
|
|
1124
|
+
return n.color && A.isColorTemplateVariable(n.color) && (r.push(`ck-component__border-color--${n.color}`), (t.value || t.value === null) && r.push(`ck-component__color-background--${n.color}`)), r;
|
|
1125
1125
|
}), u = c(() => {
|
|
1126
1126
|
const r = [];
|
|
1127
|
-
return n.color && !
|
|
1127
|
+
return n.color && !A.isColorTemplateVariable(n.color) && (r.push({ borderColor: n.color }), (t.value || t.value === null) && r.push({ backgroundColor: n.color })), r;
|
|
1128
1128
|
}), f = c(() => {
|
|
1129
1129
|
const r = [];
|
|
1130
|
-
return n.colorText &&
|
|
1130
|
+
return n.colorText && A.isColorTemplateVariable(n.colorText) && r.push(`ck-component__color--${n.colorText}`), n.textSize && n.textSize !== Sl && r.push(`ck-checkbox--label-text-size--${n.textSize}`), r;
|
|
1131
1131
|
}), s = c(() => {
|
|
1132
1132
|
const r = [];
|
|
1133
|
-
return n.colorText && !
|
|
1133
|
+
return n.colorText && !A.isColorTemplateVariable(n.colorText) && r.push({ color: n.colorText }), r;
|
|
1134
1134
|
});
|
|
1135
1135
|
function v() {
|
|
1136
1136
|
n.preventAutoUpdate || (t.value = !t.value);
|
|
1137
1137
|
}
|
|
1138
1138
|
return (r, h) => (d(), g("label", Ae(i.value, {
|
|
1139
1139
|
class: ["ck-checkbox", a.value],
|
|
1140
|
-
onKeydown: h[4] || (h[4] =
|
|
1140
|
+
onKeydown: h[4] || (h[4] = be(ie(() => {
|
|
1141
1141
|
}, ["prevent"]), ["space"])),
|
|
1142
1142
|
onKeyup: [
|
|
1143
|
-
h[5] || (h[5] =
|
|
1144
|
-
h[6] || (h[6] =
|
|
1143
|
+
h[5] || (h[5] = be((m) => v(), ["enter"])),
|
|
1144
|
+
h[6] || (h[6] = be((m) => v(), ["space"]))
|
|
1145
1145
|
],
|
|
1146
|
-
onClick: h[7] || (h[7] =
|
|
1146
|
+
onClick: h[7] || (h[7] = ie((m) => v(), ["prevent"]))
|
|
1147
1147
|
}), [
|
|
1148
1148
|
w("input", {
|
|
1149
|
-
class:
|
|
1149
|
+
class: P(["ck-checkbox--input", { "ck-checkbox--input__intermediate": t.value === null }]),
|
|
1150
1150
|
"aria-hidden": "true",
|
|
1151
1151
|
type: "checkbox",
|
|
1152
1152
|
disabled: e.disabled,
|
|
1153
1153
|
checked: t.value,
|
|
1154
1154
|
onChange: h[0] || (h[0] = (m) => l("change", m)),
|
|
1155
|
-
onClick: h[1] || (h[1] =
|
|
1155
|
+
onClick: h[1] || (h[1] = ie(() => {
|
|
1156
1156
|
}, ["prevent"]))
|
|
1157
|
-
}, null, 42,
|
|
1157
|
+
}, null, 42, Vl),
|
|
1158
1158
|
w("div", {
|
|
1159
|
-
class:
|
|
1160
|
-
style:
|
|
1161
|
-
onClick: h[2] || (h[2] =
|
|
1159
|
+
class: P(["ck-checkbox--element", p.value]),
|
|
1160
|
+
style: E(u.value),
|
|
1161
|
+
onClick: h[2] || (h[2] = ie(() => {
|
|
1162
1162
|
}, ["prevent"]))
|
|
1163
1163
|
}, null, 6),
|
|
1164
1164
|
e.label || r.$slots.default ? (d(), g("span", {
|
|
1165
1165
|
key: 0,
|
|
1166
|
-
class:
|
|
1167
|
-
style:
|
|
1168
|
-
onClick: h[3] || (h[3] =
|
|
1166
|
+
class: P(["ck-checkbox--label", f.value]),
|
|
1167
|
+
style: E(s.value),
|
|
1168
|
+
onClick: h[3] || (h[3] = ie(() => {
|
|
1169
1169
|
}, ["prevent"]))
|
|
1170
1170
|
}, [
|
|
1171
1171
|
e.label ? (d(), g("span", {
|
|
1172
1172
|
key: 0,
|
|
1173
|
-
textContent:
|
|
1173
|
+
textContent: L(e.label)
|
|
1174
1174
|
}, null, 8, Dl)) : C("", !0),
|
|
1175
|
-
|
|
1175
|
+
O(r.$slots, "default", {}, void 0, !0)
|
|
1176
1176
|
], 6)) : C("", !0)
|
|
1177
1177
|
], 16));
|
|
1178
1178
|
}
|
|
1179
|
-
}), St = /* @__PURE__ */
|
|
1179
|
+
}), St = /* @__PURE__ */ U(Ll, [["__scopeId", "data-v-a8d6cf84"]]);
|
|
1180
1180
|
function Lt(e) {
|
|
1181
1181
|
const o = e ? "visible" : "hidden";
|
|
1182
1182
|
document.body.style.overflow = o;
|
|
@@ -1237,7 +1237,7 @@ const Ml = {
|
|
|
1237
1237
|
}),
|
|
1238
1238
|
emits: /* @__PURE__ */ te(["accept", "cancel", "close"], ["update:modelValue", "update:topAlertVisible"]),
|
|
1239
1239
|
setup(e, { emit: o }) {
|
|
1240
|
-
const t = fe(e, "modelValue"), n = fe(e, "topAlertVisible"), l = e, i = o, { cleekOptions: a } =
|
|
1240
|
+
const t = fe(e, "modelValue"), n = fe(e, "topAlertVisible"), l = e, i = o, { cleekOptions: a } = ne(le()), p = M(Pt);
|
|
1241
1241
|
let u = !1;
|
|
1242
1242
|
function f() {
|
|
1243
1243
|
u || (u = !0, p.value = Pl());
|
|
@@ -1246,131 +1246,138 @@ const Ml = {
|
|
|
1246
1246
|
u && (u = !1, Al());
|
|
1247
1247
|
}
|
|
1248
1248
|
const v = c(() => {
|
|
1249
|
-
const
|
|
1250
|
-
|
|
1251
|
-
const
|
|
1252
|
-
return
|
|
1249
|
+
const x = [], B = l.layout || a.value.styles.layout;
|
|
1250
|
+
B && x.push(B);
|
|
1251
|
+
const j = l.textColor || a.value.popup.textColor;
|
|
1252
|
+
return j && A.isColorTemplateVariable(j) && x.push(`ck-component__color--${j}`), x;
|
|
1253
1253
|
}), r = c(() => {
|
|
1254
|
-
const
|
|
1255
|
-
|
|
1256
|
-
const
|
|
1257
|
-
|
|
1258
|
-
const
|
|
1259
|
-
|
|
1260
|
-
let
|
|
1261
|
-
return a.value.popup.backgroundColor && (
|
|
1254
|
+
const x = [], B = l.fontSize || a.value.popup.fontSize;
|
|
1255
|
+
B && x.push({ "font-size": B }), l.width && x.push({ width: l.width });
|
|
1256
|
+
const j = l.width ? "95%" : l.maxWidth || a.value.popup.maxWidth;
|
|
1257
|
+
j && x.push({ "max-width": j });
|
|
1258
|
+
const pe = l.textColor || a.value.popup.textColor;
|
|
1259
|
+
pe && !A.isColorTemplateVariable(pe) && (x.push(`ck-component__color--${pe}`), x.push({ color: pe }));
|
|
1260
|
+
let ce = "white";
|
|
1261
|
+
return a.value.popup.backgroundColor && (ce = a.value.popup.backgroundColor), a.value.darkMode && (ce = a.value.darkModeColorItems), l.backgroundColor && (ce = l.backgroundColor), ce && !A.isColorTemplateVariable(ce) && x.push({ backgroundColor: ce }), x;
|
|
1262
1262
|
}), h = c(() => {
|
|
1263
|
-
const
|
|
1264
|
-
let
|
|
1265
|
-
a.value.popup.headerColor && (
|
|
1266
|
-
let
|
|
1267
|
-
return a.value.darkMode && (
|
|
1263
|
+
const x = [];
|
|
1264
|
+
let B = "";
|
|
1265
|
+
a.value.popup.headerColor && (B = a.value.popup.headerColor), a.value.darkMode && (B = a.value.darkModeColorItems), l.headerColor && (B = l.headerColor), B && !A.isColorTemplateVariable(B) && x.push({ backgroundColor: B });
|
|
1266
|
+
let j = l.textColor || a.value.popup.textColor;
|
|
1267
|
+
return a.value.darkMode && (j = a.value.darkModeColorText), j && !A.isColorTemplateVariable(j) && (x.push(`ck-component__color--${j}`), x.push({ color: j })), x;
|
|
1268
1268
|
}), m = c(() => {
|
|
1269
|
-
const
|
|
1270
|
-
let
|
|
1271
|
-
return a.value.popup.backgroundColor && (
|
|
1269
|
+
const x = [];
|
|
1270
|
+
let B = "";
|
|
1271
|
+
return a.value.popup.backgroundColor && (B = a.value.popup.backgroundColor), a.value.darkMode && (B = a.value.darkModeColorItems), l.backgroundColor && (B = l.backgroundColor), B && !A.isColorTemplateVariable(B) && x.push({ backgroundColor: B }), x;
|
|
1272
1272
|
}), k = c(() => {
|
|
1273
|
-
const
|
|
1274
|
-
|
|
1275
|
-
const
|
|
1276
|
-
return
|
|
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)),
|
|
1278
|
-
|
|
1279
|
-
Lt(!
|
|
1273
|
+
const x = [], B = l.headerAlign || a.value.popup.headerAlign;
|
|
1274
|
+
B && x.push(`header-align--${B}`);
|
|
1275
|
+
const j = l.headerColor || a.value.popup.headerColor;
|
|
1276
|
+
return j && A.isColorTemplateVariable(j) && x.push(`ck-component__bg-color--${j}`), _.value || x.push("close-btn-hidden"), x;
|
|
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
|
+
ue(() => t.value, (x) => {
|
|
1279
|
+
Lt(!x), x ? f() : s();
|
|
1280
1280
|
});
|
|
1281
|
-
function
|
|
1281
|
+
function F() {
|
|
1282
1282
|
t.value = !1, i("close");
|
|
1283
1283
|
}
|
|
1284
1284
|
function K() {
|
|
1285
|
-
i("cancel"), l.preventCloseOnCancel ||
|
|
1285
|
+
i("cancel"), l.preventCloseOnCancel || F();
|
|
1286
1286
|
}
|
|
1287
1287
|
function oe() {
|
|
1288
1288
|
i("accept");
|
|
1289
1289
|
}
|
|
1290
|
-
function
|
|
1291
|
-
l.notCloseByBg || l.notClose ||
|
|
1290
|
+
function ae() {
|
|
1291
|
+
l.notCloseByBg || l.notClose || F();
|
|
1292
|
+
}
|
|
1293
|
+
function de(x) {
|
|
1294
|
+
const B = x.target;
|
|
1295
|
+
return B instanceof HTMLElement ? B instanceof HTMLTextAreaElement || B.isContentEditable : !1;
|
|
1292
1296
|
}
|
|
1293
|
-
function
|
|
1294
|
-
t.value && (
|
|
1297
|
+
function ge(x) {
|
|
1298
|
+
if (t.value && (x.key === "Escape" && ae(), x.key === "Enter" && x.shiftKey)) {
|
|
1299
|
+
if (de(x)) return;
|
|
1300
|
+
oe();
|
|
1301
|
+
}
|
|
1295
1302
|
}
|
|
1296
|
-
return
|
|
1297
|
-
window.addEventListener("keydown",
|
|
1303
|
+
return $e(() => {
|
|
1304
|
+
window.addEventListener("keydown", ge), t.value && f();
|
|
1298
1305
|
}), ot(() => {
|
|
1299
|
-
window.removeEventListener("keydown",
|
|
1300
|
-
}), (
|
|
1306
|
+
window.removeEventListener("keydown", ge), s();
|
|
1307
|
+
}), (x, B) => (d(), S(Pe, { to: "body" }, [
|
|
1301
1308
|
t.value ? (d(), g("div", Ml, [
|
|
1302
1309
|
w("div", {
|
|
1303
1310
|
class: "blackout",
|
|
1304
|
-
style:
|
|
1311
|
+
style: E({ zIndex: p.value })
|
|
1305
1312
|
}, null, 4),
|
|
1306
1313
|
w("div", {
|
|
1307
1314
|
class: "popup-container",
|
|
1308
|
-
style:
|
|
1309
|
-
onMousedown:
|
|
1315
|
+
style: E({ zIndex: p.value }),
|
|
1316
|
+
onMousedown: B[5] || (B[5] = (j) => ae())
|
|
1310
1317
|
}, [
|
|
1311
1318
|
w("div", {
|
|
1312
|
-
class:
|
|
1313
|
-
style:
|
|
1314
|
-
onMousedown:
|
|
1319
|
+
class: P(["ck-popup__content", v.value]),
|
|
1320
|
+
style: E(r.value),
|
|
1321
|
+
onMousedown: B[4] || (B[4] = ie(() => {
|
|
1315
1322
|
}, ["stop"]))
|
|
1316
1323
|
}, [
|
|
1317
1324
|
e.topAlert && n.value ? (d(), g("div", Il, [
|
|
1318
|
-
w("span", null,
|
|
1319
|
-
|
|
1325
|
+
w("span", null, L(e.topAlert), 1),
|
|
1326
|
+
H(_e, {
|
|
1320
1327
|
size: "s",
|
|
1321
1328
|
type: "flat",
|
|
1322
1329
|
color: "white",
|
|
1323
|
-
onClick:
|
|
1330
|
+
onClick: B[0] || (B[0] = (j) => n.value = !1)
|
|
1324
1331
|
}, {
|
|
1325
|
-
default:
|
|
1332
|
+
default: q(() => [...B[6] || (B[6] = [
|
|
1326
1333
|
G(" Entendido ", -1)
|
|
1327
1334
|
])]),
|
|
1328
1335
|
_: 1
|
|
1329
1336
|
})
|
|
1330
1337
|
])) : C("", !0),
|
|
1331
1338
|
w("div", {
|
|
1332
|
-
class:
|
|
1333
|
-
style:
|
|
1339
|
+
class: P(["ck-popup__slot-header", k.value]),
|
|
1340
|
+
style: E(h.value)
|
|
1334
1341
|
}, [
|
|
1335
|
-
e.title ? (d(), g("h3", zl,
|
|
1336
|
-
|
|
1337
|
-
_.value ? (d(),
|
|
1342
|
+
e.title ? (d(), g("h3", zl, L(e.title), 1)) : C("", !0),
|
|
1343
|
+
O(x.$slots, "header"),
|
|
1344
|
+
_.value ? (d(), S(X, {
|
|
1338
1345
|
key: 1,
|
|
1339
1346
|
class: "icon-close",
|
|
1340
1347
|
icon: "times",
|
|
1341
|
-
onClick:
|
|
1348
|
+
onClick: B[1] || (B[1] = (j) => F())
|
|
1342
1349
|
})) : C("", !0)
|
|
1343
1350
|
], 6),
|
|
1344
1351
|
w("div", {
|
|
1345
1352
|
class: "ck-popup__slot-body",
|
|
1346
|
-
style:
|
|
1353
|
+
style: E(m.value)
|
|
1347
1354
|
}, [
|
|
1348
|
-
|
|
1355
|
+
O(x.$slots, "default")
|
|
1349
1356
|
], 4),
|
|
1350
|
-
|
|
1357
|
+
x.$slots.footer || e.confirmButtons || e.acceptButton || e.cancelButton ? (d(), g("div", Rl, [
|
|
1351
1358
|
w("div", Ol, [
|
|
1352
|
-
|
|
1359
|
+
O(x.$slots, "footer")
|
|
1353
1360
|
]),
|
|
1354
1361
|
e.confirmButtons || e.acceptButton || e.cancelButton ? (d(), g("div", Wl, [
|
|
1355
|
-
e.confirmButtons || e.cancelButton ? (d(),
|
|
1362
|
+
e.confirmButtons || e.cancelButton ? (d(), S(_e, {
|
|
1356
1363
|
key: 0,
|
|
1357
1364
|
color: "danger",
|
|
1358
1365
|
type: y.value,
|
|
1359
|
-
onClick:
|
|
1366
|
+
onClick: B[2] || (B[2] = (j) => K())
|
|
1360
1367
|
}, {
|
|
1361
|
-
default:
|
|
1362
|
-
G(
|
|
1368
|
+
default: q(() => [
|
|
1369
|
+
G(L(D.value), 1)
|
|
1363
1370
|
]),
|
|
1364
1371
|
_: 1
|
|
1365
1372
|
}, 8, ["type"])) : C("", !0),
|
|
1366
|
-
e.confirmButtons || e.acceptButton ? (d(),
|
|
1373
|
+
e.confirmButtons || e.acceptButton ? (d(), S(_e, {
|
|
1367
1374
|
key: 1,
|
|
1368
1375
|
type: b.value,
|
|
1369
1376
|
"is-loading": e.isLoading,
|
|
1370
|
-
onClick:
|
|
1377
|
+
onClick: B[3] || (B[3] = (j) => oe())
|
|
1371
1378
|
}, {
|
|
1372
|
-
default:
|
|
1373
|
-
G(
|
|
1379
|
+
default: q(() => [
|
|
1380
|
+
G(L(W.value), 1)
|
|
1374
1381
|
]),
|
|
1375
1382
|
_: 1
|
|
1376
1383
|
}, 8, ["type", "is-loading"])) : C("", !0)
|
|
@@ -1390,7 +1397,7 @@ const Ml = {
|
|
|
1390
1397
|
},
|
|
1391
1398
|
emits: ["update:modelValue"],
|
|
1392
1399
|
setup(e, { emit: o }) {
|
|
1393
|
-
const t = e, n = o, l =
|
|
1400
|
+
const t = e, n = o, l = M([]), i = c({
|
|
1394
1401
|
get() {
|
|
1395
1402
|
return t.modelValue;
|
|
1396
1403
|
},
|
|
@@ -1398,9 +1405,9 @@ const Ml = {
|
|
|
1398
1405
|
n("update:modelValue", u);
|
|
1399
1406
|
}
|
|
1400
1407
|
});
|
|
1401
|
-
|
|
1408
|
+
ue(() => i.value, (u) => {
|
|
1402
1409
|
u && a();
|
|
1403
|
-
}),
|
|
1410
|
+
}), ue(() => i.value, (u) => {
|
|
1404
1411
|
u && a();
|
|
1405
1412
|
});
|
|
1406
1413
|
function a() {
|
|
@@ -1409,31 +1416,31 @@ const Ml = {
|
|
|
1409
1416
|
f.unchangeable || u.push({
|
|
1410
1417
|
name: f.name,
|
|
1411
1418
|
title: f.title,
|
|
1412
|
-
value:
|
|
1419
|
+
value: A.isColumnDisplayed(f)
|
|
1413
1420
|
});
|
|
1414
1421
|
}), l.value = u;
|
|
1415
1422
|
}
|
|
1416
1423
|
function p(u, f) {
|
|
1417
1424
|
t.columns[u].isDisplayed = f;
|
|
1418
1425
|
}
|
|
1419
|
-
return (u, f) => (d(),
|
|
1426
|
+
return (u, f) => (d(), S(lt, {
|
|
1420
1427
|
modelValue: i.value,
|
|
1421
1428
|
"onUpdate:modelValue": f[0] || (f[0] = (s) => i.value = s),
|
|
1422
1429
|
title: "Administrador de columnas"
|
|
1423
1430
|
}, {
|
|
1424
|
-
default:
|
|
1431
|
+
default: q(() => [
|
|
1425
1432
|
w("div", El, [
|
|
1426
|
-
(d(!0), g(J, null,
|
|
1433
|
+
(d(!0), g(J, null, se(l.value, (s, v) => (d(), g("div", {
|
|
1427
1434
|
key: v,
|
|
1428
1435
|
class: "columns-manger__item"
|
|
1429
1436
|
}, [
|
|
1430
|
-
|
|
1437
|
+
H(St, {
|
|
1431
1438
|
modelValue: s.value,
|
|
1432
1439
|
"onUpdate:modelValue": (r) => s.value = r,
|
|
1433
1440
|
onClick: (r) => p(s.name, s.value)
|
|
1434
1441
|
}, {
|
|
1435
|
-
default:
|
|
1436
|
-
G(
|
|
1442
|
+
default: q(() => [
|
|
1443
|
+
G(L(s.title), 1)
|
|
1437
1444
|
]),
|
|
1438
1445
|
_: 2
|
|
1439
1446
|
}, 1032, ["modelValue", "onUpdate:modelValue", "onClick"])
|
|
@@ -1443,7 +1450,7 @@ const Ml = {
|
|
|
1443
1450
|
_: 1
|
|
1444
1451
|
}, 8, ["modelValue"]));
|
|
1445
1452
|
}
|
|
1446
|
-
}), ql = /* @__PURE__ */
|
|
1453
|
+
}), ql = /* @__PURE__ */ U(Fl, [["__scopeId", "data-v-49853870"]]), Nl = /* @__PURE__ */ z({
|
|
1447
1454
|
__name: "LoadingAndNoResultsText",
|
|
1448
1455
|
props: {
|
|
1449
1456
|
listLength: {},
|
|
@@ -1452,26 +1459,26 @@ const Ml = {
|
|
|
1452
1459
|
noResultsText: {}
|
|
1453
1460
|
},
|
|
1454
1461
|
setup(e) {
|
|
1455
|
-
const o = e, { cleekOptions: t } =
|
|
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");
|
|
1456
1463
|
return (a, p) => {
|
|
1457
1464
|
const u = Y("ck-icon"), f = Y("ck-td"), s = Y("ck-tr");
|
|
1458
|
-
return n.value ? (d(),
|
|
1459
|
-
default:
|
|
1460
|
-
|
|
1465
|
+
return n.value ? (d(), S(s, { key: 0 }, {
|
|
1466
|
+
default: q(() => [
|
|
1467
|
+
H(f, {
|
|
1461
1468
|
class: "no-result-text",
|
|
1462
1469
|
colspan: "100%",
|
|
1463
1470
|
align: "center"
|
|
1464
1471
|
}, {
|
|
1465
|
-
default:
|
|
1472
|
+
default: q(() => [
|
|
1466
1473
|
e.isLoading ? (d(), g(J, { key: 0 }, [
|
|
1467
|
-
|
|
1474
|
+
H(u, {
|
|
1468
1475
|
class: "mr-2",
|
|
1469
1476
|
icon: "spinner",
|
|
1470
1477
|
spin: ""
|
|
1471
1478
|
}),
|
|
1472
|
-
G(" " +
|
|
1479
|
+
G(" " + L(l.value), 1)
|
|
1473
1480
|
], 64)) : n.value ? (d(), g(J, { key: 1 }, [
|
|
1474
|
-
G(
|
|
1481
|
+
G(L(i.value), 1)
|
|
1475
1482
|
], 64)) : C("", !0)
|
|
1476
1483
|
]),
|
|
1477
1484
|
_: 1
|
|
@@ -1481,7 +1488,7 @@ const Ml = {
|
|
|
1481
1488
|
})) : C("", !0);
|
|
1482
1489
|
};
|
|
1483
1490
|
}
|
|
1484
|
-
}), mt = /* @__PURE__ */
|
|
1491
|
+
}), mt = /* @__PURE__ */ U(Nl, [["__scopeId", "data-v-0731cbef"]]), Hl = { class: "ck-table" }, Ul = {
|
|
1485
1492
|
key: 1,
|
|
1486
1493
|
class: "ck-table__header"
|
|
1487
1494
|
}, jl = {
|
|
@@ -1530,7 +1537,7 @@ const Ml = {
|
|
|
1530
1537
|
}),
|
|
1531
1538
|
emits: /* @__PURE__ */ te(["refreshList", "update:search", "update:currentPage"], ["update:selectedRows"]),
|
|
1532
1539
|
setup(e, { emit: o }) {
|
|
1533
|
-
const t = fe(e, "selectedRows"), n = e, l = o, { cleekOptions: i } =
|
|
1540
|
+
const t = fe(e, "selectedRows"), n = e, l = o, { cleekOptions: i } = ne(le()), { windowWidth: a } = ye(), p = M({
|
|
1534
1541
|
columnsManager: !1
|
|
1535
1542
|
}), u = c(() => !!t.value), f = c(() => typeof n.darkMode < "u" ? n.darkMode : i.value.darkMode), s = c(() => Math.ceil(n.listLength / n.itemsPerPage)), v = c(() => n.version ? n.version : i.value ? i.value.table.version : "default"), r = c(() => {
|
|
1536
1543
|
if (n.headerTextColor) return n.headerTextColor;
|
|
@@ -1544,17 +1551,17 @@ const Ml = {
|
|
|
1544
1551
|
if (i.value) return i.value.table.headerBackgroundColor;
|
|
1545
1552
|
}), m = c(() => !y.value[y.value.length - 1].title), k = c(() => !Array.isArray(n.columns || [])), b = c(() => {
|
|
1546
1553
|
if (k.value) {
|
|
1547
|
-
const
|
|
1548
|
-
return
|
|
1549
|
-
const
|
|
1550
|
-
pe.name =
|
|
1551
|
-
}),
|
|
1554
|
+
const B = Object.values(n.columns || []), j = Object.keys(n.columns || []);
|
|
1555
|
+
return B.forEach((pe, ce) => {
|
|
1556
|
+
const Ce = j[ce];
|
|
1557
|
+
pe.name = Ce;
|
|
1558
|
+
}), B;
|
|
1552
1559
|
}
|
|
1553
1560
|
const x = [];
|
|
1554
|
-
return (n.columns || []).forEach((
|
|
1555
|
-
typeof
|
|
1561
|
+
return (n.columns || []).forEach((B) => {
|
|
1562
|
+
typeof B == "string" ? x.push({ title: B }) : x.push(B);
|
|
1556
1563
|
}), x;
|
|
1557
|
-
}), y = c(() => b.value.filter(
|
|
1564
|
+
}), y = c(() => b.value.filter(A.isColumnDisplayed)), _ = c({
|
|
1558
1565
|
// @ts-ignore
|
|
1559
1566
|
get() {
|
|
1560
1567
|
return n.search;
|
|
@@ -1562,145 +1569,145 @@ const Ml = {
|
|
|
1562
1569
|
set(x) {
|
|
1563
1570
|
l("update:search", x);
|
|
1564
1571
|
}
|
|
1565
|
-
}),
|
|
1572
|
+
}), W = c({
|
|
1566
1573
|
get() {
|
|
1567
1574
|
return n.currentPage || 0;
|
|
1568
1575
|
},
|
|
1569
1576
|
set(x) {
|
|
1570
1577
|
l("update:currentPage", x);
|
|
1571
1578
|
}
|
|
1572
|
-
}),
|
|
1579
|
+
}), D = c(() => n.layout || i.value.styles.layout), F = c(() => a.value <= (+n.mobileMaxWidth || 0));
|
|
1573
1580
|
function K(x = !1) {
|
|
1574
1581
|
l("refreshList", x);
|
|
1575
1582
|
}
|
|
1576
1583
|
function oe() {
|
|
1577
1584
|
k.value ? p.value.columnsManager = !0 : console.log("ERROR ck-table", "The columns list should be an object");
|
|
1578
1585
|
}
|
|
1579
|
-
const
|
|
1580
|
-
var
|
|
1586
|
+
const ae = c(() => {
|
|
1587
|
+
var j;
|
|
1581
1588
|
const x = [];
|
|
1582
|
-
return n.cellPadding && x.push(`table__cell-padding--${n.cellPadding}`), n.cellPaddingY && x.push(`table__cell-padding-y--${n.cellPaddingY}`), n.notFullWidth && x.push("not-full-width"), f.value && x.push("dark-mode"), (n.striped || ((
|
|
1589
|
+
return n.cellPadding && x.push(`table__cell-padding--${n.cellPadding}`), n.cellPaddingY && x.push(`table__cell-padding-y--${n.cellPaddingY}`), n.notFullWidth && x.push("not-full-width"), f.value && x.push("dark-mode"), (n.striped || ((j = i.value.table) == null ? void 0 : j.striped)) && x.push("striped-table"), x;
|
|
1583
1590
|
}), de = c(() => {
|
|
1584
|
-
const x = n.rows.map((
|
|
1591
|
+
const x = n.rows.map((B) => B[De]);
|
|
1585
1592
|
if (t.value.areAllRowsSelecteds(x)) return !0;
|
|
1586
1593
|
if (!t.value.isAnyRowsSelected(x))
|
|
1587
1594
|
return !1;
|
|
1588
1595
|
});
|
|
1589
|
-
function
|
|
1590
|
-
const x = n.rows.map((
|
|
1596
|
+
function ge() {
|
|
1597
|
+
const x = n.rows.map((B) => B[De]);
|
|
1591
1598
|
de.value ? t.value.removeManyRows(x) : t.value.addManyRows(x);
|
|
1592
1599
|
}
|
|
1593
|
-
return (x,
|
|
1594
|
-
var me, V,
|
|
1595
|
-
const
|
|
1600
|
+
return (x, B) => {
|
|
1601
|
+
var me, V, T, Z;
|
|
1602
|
+
const j = Y("ck-checkbox"), pe = Y("ck-chip"), ce = Y("ck-button"), Ce = Y("ck-th");
|
|
1596
1603
|
return d(), g("div", Hl, [
|
|
1597
|
-
e.hasColumnsManager && k.value ? (d(),
|
|
1604
|
+
e.hasColumnsManager && k.value ? (d(), S(ql, {
|
|
1598
1605
|
key: 0,
|
|
1599
1606
|
modelValue: p.value.columnsManager,
|
|
1600
|
-
"onUpdate:modelValue":
|
|
1607
|
+
"onUpdate:modelValue": B[0] || (B[0] = (R) => p.value.columnsManager = R),
|
|
1601
1608
|
"is-loading": e.isLoading,
|
|
1602
1609
|
"columns-array": b.value,
|
|
1603
1610
|
columns: e.columns || []
|
|
1604
1611
|
}, null, 8, ["modelValue", "is-loading", "columns-array", "columns"])) : C("", !0),
|
|
1605
1612
|
x.$slots.header || !e.hideHeaderActions ? (d(), g("div", Ul, [
|
|
1606
|
-
|
|
1613
|
+
H(yl, {
|
|
1607
1614
|
modelValue: _.value,
|
|
1608
|
-
"onUpdate:modelValue":
|
|
1615
|
+
"onUpdate:modelValue": B[1] || (B[1] = (R) => _.value = R),
|
|
1609
1616
|
"hide-header-actions": e.hideHeaderActions,
|
|
1610
1617
|
"hide-refresh-btn": e.hideRefreshBtn,
|
|
1611
|
-
layout:
|
|
1618
|
+
layout: D.value,
|
|
1612
1619
|
version: v.value,
|
|
1613
1620
|
"is-loading": e.isLoading,
|
|
1614
|
-
onRefreshList:
|
|
1621
|
+
onRefreshList: B[2] || (B[2] = (R) => K(R))
|
|
1615
1622
|
}, {
|
|
1616
|
-
headerActionsLeft:
|
|
1617
|
-
|
|
1623
|
+
headerActionsLeft: q(() => [
|
|
1624
|
+
O(x.$slots, "headerActionsLeft", {}, void 0, !0)
|
|
1618
1625
|
]),
|
|
1619
|
-
headerActionsRight:
|
|
1620
|
-
|
|
1626
|
+
headerActionsRight: q(() => [
|
|
1627
|
+
O(x.$slots, "headerActionsRight", {}, void 0, !0)
|
|
1621
1628
|
]),
|
|
1622
1629
|
_: 3
|
|
1623
1630
|
}, 8, ["modelValue", "hide-header-actions", "hide-refresh-btn", "layout", "version", "is-loading"]),
|
|
1624
1631
|
x.$slots.header ? (d(), g("div", {
|
|
1625
1632
|
key: 0,
|
|
1626
|
-
class:
|
|
1633
|
+
class: P(["ck-table__header--slot", { "full-width": e.hideHeaderActions }])
|
|
1627
1634
|
}, [
|
|
1628
|
-
|
|
1635
|
+
O(x.$slots, "header", {}, void 0, !0)
|
|
1629
1636
|
], 2)) : C("", !0)
|
|
1630
1637
|
])) : C("", !0),
|
|
1631
1638
|
x.$slots.headerBottom ? (d(), g("div", jl, [
|
|
1632
|
-
|
|
1639
|
+
O(x.$slots, "headerBottom", {}, void 0, !0)
|
|
1633
1640
|
])) : C("", !0),
|
|
1634
|
-
u.value || y.value.length && !(x.$slots.mobile &&
|
|
1641
|
+
u.value || y.value.length && !(x.$slots.mobile && F.value) ? (d(), g("div", Gl, [
|
|
1635
1642
|
(V = (me = t.value) == null ? void 0 : me.ids) != null && V.size ? (d(), g("div", Yl, [
|
|
1636
1643
|
w("div", Kl, [
|
|
1637
|
-
|
|
1644
|
+
H(j, {
|
|
1638
1645
|
class: "main-checkbox",
|
|
1639
1646
|
"uses-third-state": "",
|
|
1640
1647
|
size: "xs",
|
|
1641
1648
|
color: "#BABDBF",
|
|
1642
1649
|
"model-value": de.value,
|
|
1643
|
-
onClick:
|
|
1650
|
+
onClick: B[3] || (B[3] = (R) => ge())
|
|
1644
1651
|
}, null, 8, ["model-value"]),
|
|
1645
|
-
|
|
1652
|
+
H(pe, {
|
|
1646
1653
|
class: "nowrap cursor-pointer",
|
|
1647
1654
|
size: "s",
|
|
1648
1655
|
"icon-right": "times",
|
|
1649
|
-
onClick:
|
|
1656
|
+
onClick: B[4] || (B[4] = (R) => t.value.removeAll())
|
|
1650
1657
|
}, {
|
|
1651
|
-
default:
|
|
1652
|
-
G(
|
|
1658
|
+
default: q(() => [
|
|
1659
|
+
G(L(t.value.ids.size) + " seleccionado" + L(t.value.ids.size === 1 ? "" : "s"), 1)
|
|
1653
1660
|
]),
|
|
1654
1661
|
_: 1
|
|
1655
1662
|
})
|
|
1656
1663
|
]),
|
|
1657
|
-
|
|
1658
|
-
e.currentPage && s.value > 1 ? (d(),
|
|
1664
|
+
O(x.$slots, "selectedRowsActions", {}, void 0, !0),
|
|
1665
|
+
e.currentPage && s.value > 1 ? (d(), S(ce, {
|
|
1659
1666
|
key: 0,
|
|
1660
1667
|
size: "s",
|
|
1661
1668
|
color: "dark"
|
|
1662
1669
|
}, {
|
|
1663
|
-
default:
|
|
1670
|
+
default: q(() => [...B[9] || (B[9] = [
|
|
1664
1671
|
G(" seleccionar todas las páginas ", -1)
|
|
1665
1672
|
])]),
|
|
1666
1673
|
_: 1
|
|
1667
1674
|
})) : C("", !0)
|
|
1668
1675
|
])) : C("", !0)
|
|
1669
1676
|
])) : C("", !0),
|
|
1670
|
-
|
|
1677
|
+
F.value ? C("", !0) : (d(), g("div", {
|
|
1671
1678
|
key: 4,
|
|
1672
|
-
class:
|
|
1679
|
+
class: P(["ck-table__table-container", { "not-overflow": e.notOverflow }])
|
|
1673
1680
|
}, [
|
|
1674
1681
|
w("table", {
|
|
1675
|
-
class:
|
|
1682
|
+
class: P(["ck-table__table", ae.value])
|
|
1676
1683
|
}, [
|
|
1677
|
-
(Z = (
|
|
1684
|
+
(Z = (T = t.value) == null ? void 0 : T.ids) != null && Z.size ? C("", !0) : (d(), g("thead", Zl, [
|
|
1678
1685
|
w("tr", null, [
|
|
1679
1686
|
u.value ? (d(), g("th", Jl, [
|
|
1680
|
-
|
|
1687
|
+
H(j, {
|
|
1681
1688
|
class: "main-checkbox",
|
|
1682
1689
|
"uses-third-state": "",
|
|
1683
1690
|
size: "xs",
|
|
1684
1691
|
color: "#BABDBF",
|
|
1685
1692
|
"model-value": de.value,
|
|
1686
|
-
onClick:
|
|
1693
|
+
onClick: B[5] || (B[5] = (R) => ge())
|
|
1687
1694
|
}, null, 8, ["model-value"])
|
|
1688
1695
|
])) : C("", !0),
|
|
1689
|
-
(d(!0), g(J, null,
|
|
1690
|
-
align:
|
|
1691
|
-
"min-width":
|
|
1696
|
+
(d(!0), g(J, null, se(y.value, (R, Q) => (d(), S(Ce, {
|
|
1697
|
+
align: R.align,
|
|
1698
|
+
"min-width": R.minWidth,
|
|
1692
1699
|
"text-color": r.value,
|
|
1693
1700
|
"background-color": h.value
|
|
1694
1701
|
}, {
|
|
1695
|
-
default:
|
|
1696
|
-
G(
|
|
1702
|
+
default: q(() => [
|
|
1703
|
+
G(L(R.title) + " ", 1),
|
|
1697
1704
|
Q === y.value.length - 1 && e.hasColumnsManager ? (d(), g("div", {
|
|
1698
1705
|
key: 0,
|
|
1699
|
-
style:
|
|
1706
|
+
style: E(m.value ? "" : { "margin-left": "auto", "padding-left": "1rem" })
|
|
1700
1707
|
}, [
|
|
1701
|
-
|
|
1708
|
+
H(el, {
|
|
1702
1709
|
layout: e.layout,
|
|
1703
|
-
onClick:
|
|
1710
|
+
onClick: B[6] || (B[6] = (He) => oe())
|
|
1704
1711
|
}, null, 8, ["layout"])
|
|
1705
1712
|
], 4)) : C("", !0)
|
|
1706
1713
|
]),
|
|
@@ -1709,34 +1716,34 @@ const Ml = {
|
|
|
1709
1716
|
])
|
|
1710
1717
|
])),
|
|
1711
1718
|
w("tbody", null, [
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
(d(!0), g(J, null,
|
|
1715
|
-
key:
|
|
1719
|
+
O(x.$slots, "default", {}, void 0, !0),
|
|
1720
|
+
O(x.$slots, "desktop", {}, void 0, !0),
|
|
1721
|
+
(d(!0), g(J, null, se(e.rows, (R, Q) => (d(), S(Tt, {
|
|
1722
|
+
key: R[De]
|
|
1716
1723
|
}, {
|
|
1717
|
-
default:
|
|
1718
|
-
u.value ? (d(),
|
|
1724
|
+
default: q(() => [
|
|
1725
|
+
u.value ? (d(), S(Vt, {
|
|
1719
1726
|
key: 0,
|
|
1720
1727
|
"auto-width": ""
|
|
1721
1728
|
}, {
|
|
1722
|
-
default:
|
|
1723
|
-
|
|
1729
|
+
default: q(() => [
|
|
1730
|
+
H(j, {
|
|
1724
1731
|
size: "xs",
|
|
1725
1732
|
color: "#BABDBF",
|
|
1726
|
-
"model-value": t.value.isRowSelected(
|
|
1727
|
-
onClick: (He) => t.value.switchValue(
|
|
1733
|
+
"model-value": t.value.isRowSelected(R[De]),
|
|
1734
|
+
onClick: (He) => t.value.switchValue(R[De])
|
|
1728
1735
|
}, null, 8, ["model-value", "onClick"])
|
|
1729
1736
|
]),
|
|
1730
1737
|
_: 2
|
|
1731
1738
|
}, 1024)) : C("", !0),
|
|
1732
|
-
|
|
1733
|
-
row:
|
|
1739
|
+
O(x.$slots, "row", {
|
|
1740
|
+
row: R,
|
|
1734
1741
|
rowIndex: Q
|
|
1735
1742
|
}, void 0, !0)
|
|
1736
1743
|
]),
|
|
1737
1744
|
_: 2
|
|
1738
1745
|
}, 1024))), 128)),
|
|
1739
|
-
|
|
1746
|
+
H(mt, {
|
|
1740
1747
|
"list-length": e.listLength,
|
|
1741
1748
|
"is-loading": e.isLoading,
|
|
1742
1749
|
"loading-text": e.loadingText,
|
|
@@ -1744,41 +1751,41 @@ const Ml = {
|
|
|
1744
1751
|
}, null, 8, ["list-length", "is-loading", "loading-text", "no-results-text"])
|
|
1745
1752
|
]),
|
|
1746
1753
|
x.$slots.footer ? (d(), g("tfoot", Xl, [
|
|
1747
|
-
|
|
1754
|
+
O(x.$slots, "footer", {}, void 0, !0)
|
|
1748
1755
|
])) : C("", !0)
|
|
1749
1756
|
], 2)
|
|
1750
1757
|
], 2)),
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1758
|
+
F.value ? (d(), g("div", Ql, [
|
|
1759
|
+
O(x.$slots, "mobile", {}, void 0, !0),
|
|
1760
|
+
H(mt, {
|
|
1754
1761
|
"list-length": e.listLength,
|
|
1755
1762
|
"is-loading": e.isLoading,
|
|
1756
1763
|
"loading-text": e.loadingText,
|
|
1757
1764
|
"no-results-text": e.noResultsText
|
|
1758
1765
|
}, null, 8, ["list-length", "is-loading", "loading-text", "no-results-text"])
|
|
1759
1766
|
])) : C("", !0),
|
|
1760
|
-
|
|
1767
|
+
H(ll, {
|
|
1761
1768
|
"current-page": e.currentPage,
|
|
1762
1769
|
"items-per-page": e.itemsPerPage,
|
|
1763
1770
|
"hide-items-per-page": e.hideItemsPerPage,
|
|
1764
1771
|
"list-length": e.listLength
|
|
1765
1772
|
}, null, 8, ["current-page", "items-per-page", "hide-items-per-page", "list-length"]),
|
|
1766
|
-
e.currentPage && s.value > 1 ? (d(),
|
|
1773
|
+
e.currentPage && s.value > 1 ? (d(), S(Tl, {
|
|
1767
1774
|
key: 6,
|
|
1768
|
-
"current-page":
|
|
1769
|
-
"onUpdate:currentPage":
|
|
1775
|
+
"current-page": W.value,
|
|
1776
|
+
"onUpdate:currentPage": B[7] || (B[7] = (R) => W.value = R),
|
|
1770
1777
|
class: "ck-table__pagination",
|
|
1771
1778
|
"total-pages": s.value,
|
|
1772
1779
|
"items-per-page": e.itemsPerPage,
|
|
1773
1780
|
"list-length": e.listLength,
|
|
1774
1781
|
align: e.paginationAlign,
|
|
1775
|
-
layout:
|
|
1776
|
-
onRefreshList:
|
|
1782
|
+
layout: D.value,
|
|
1783
|
+
onRefreshList: B[8] || (B[8] = (R) => K(!0))
|
|
1777
1784
|
}, null, 8, ["current-page", "total-pages", "items-per-page", "list-length", "align", "layout"])) : C("", !0)
|
|
1778
1785
|
]);
|
|
1779
1786
|
};
|
|
1780
1787
|
}
|
|
1781
|
-
}), tn = /* @__PURE__ */
|
|
1788
|
+
}), tn = /* @__PURE__ */ U(en, [["__scopeId", "data-v-d092503c"]]), on = /* @__PURE__ */ z({
|
|
1782
1789
|
__name: "ck-pagination",
|
|
1783
1790
|
props: {
|
|
1784
1791
|
modelValue: {},
|
|
@@ -1793,7 +1800,7 @@ const Ml = {
|
|
|
1793
1800
|
},
|
|
1794
1801
|
emits: ["update:modelValue"],
|
|
1795
1802
|
setup(e, { emit: o }) {
|
|
1796
|
-
const t = e, n = o, { cleekOptions: l } =
|
|
1803
|
+
const t = e, n = o, { cleekOptions: l } = ne(le()), i = c({
|
|
1797
1804
|
get() {
|
|
1798
1805
|
return t.modelValue;
|
|
1799
1806
|
},
|
|
@@ -1816,93 +1823,93 @@ const Ml = {
|
|
|
1816
1823
|
return (b, y) => {
|
|
1817
1824
|
const _ = Y("ck-button");
|
|
1818
1825
|
return d(), g("div", {
|
|
1819
|
-
class:
|
|
1826
|
+
class: P(["ck-pagination", a.value])
|
|
1820
1827
|
}, [
|
|
1821
|
-
|
|
1828
|
+
H(_, {
|
|
1822
1829
|
width: "42px",
|
|
1823
1830
|
align: "center",
|
|
1824
1831
|
group: s.value,
|
|
1825
1832
|
type: p.value,
|
|
1826
1833
|
layout: u.value,
|
|
1827
1834
|
icon: r.value,
|
|
1828
|
-
onClick: y[0] || (y[0] = (
|
|
1835
|
+
onClick: y[0] || (y[0] = (W) => m())
|
|
1829
1836
|
}, null, 8, ["group", "type", "layout", "icon"]),
|
|
1830
|
-
i.value - 2 >= 1 ? (d(),
|
|
1837
|
+
i.value - 2 >= 1 ? (d(), S(_, {
|
|
1831
1838
|
key: 0,
|
|
1832
1839
|
width: "42px",
|
|
1833
1840
|
align: "center",
|
|
1834
1841
|
group: f.value,
|
|
1835
1842
|
type: p.value,
|
|
1836
1843
|
layout: u.value,
|
|
1837
|
-
onClick: y[1] || (y[1] = (
|
|
1844
|
+
onClick: y[1] || (y[1] = (W) => i.value = i.value - 2)
|
|
1838
1845
|
}, {
|
|
1839
|
-
default:
|
|
1840
|
-
G(
|
|
1846
|
+
default: q(() => [
|
|
1847
|
+
G(L(i.value - 2), 1)
|
|
1841
1848
|
]),
|
|
1842
1849
|
_: 1
|
|
1843
1850
|
}, 8, ["group", "type", "layout"])) : C("", !0),
|
|
1844
|
-
i.value - 1 >= 1 ? (d(),
|
|
1851
|
+
i.value - 1 >= 1 ? (d(), S(_, {
|
|
1845
1852
|
key: 1,
|
|
1846
1853
|
width: "42px",
|
|
1847
1854
|
align: "center",
|
|
1848
1855
|
group: f.value,
|
|
1849
1856
|
type: p.value,
|
|
1850
1857
|
layout: u.value,
|
|
1851
|
-
onClick: y[2] || (y[2] = (
|
|
1858
|
+
onClick: y[2] || (y[2] = (W) => i.value = i.value - 1)
|
|
1852
1859
|
}, {
|
|
1853
|
-
default:
|
|
1854
|
-
G(
|
|
1860
|
+
default: q(() => [
|
|
1861
|
+
G(L(i.value - 1), 1)
|
|
1855
1862
|
]),
|
|
1856
1863
|
_: 1
|
|
1857
1864
|
}, 8, ["group", "type", "layout"])) : C("", !0),
|
|
1858
|
-
|
|
1865
|
+
H(_, {
|
|
1859
1866
|
type: "filled",
|
|
1860
1867
|
width: "42px",
|
|
1861
1868
|
align: "center",
|
|
1862
1869
|
group: f.value,
|
|
1863
1870
|
layout: u.value
|
|
1864
1871
|
}, {
|
|
1865
|
-
default:
|
|
1866
|
-
G(
|
|
1872
|
+
default: q(() => [
|
|
1873
|
+
G(L(i.value), 1)
|
|
1867
1874
|
]),
|
|
1868
1875
|
_: 1
|
|
1869
1876
|
}, 8, ["group", "layout"]),
|
|
1870
|
-
i.value + 1 <= e.maxStep ? (d(),
|
|
1877
|
+
i.value + 1 <= e.maxStep ? (d(), S(_, {
|
|
1871
1878
|
key: 2,
|
|
1872
1879
|
width: "42px",
|
|
1873
1880
|
align: "center",
|
|
1874
1881
|
group: f.value,
|
|
1875
1882
|
type: p.value,
|
|
1876
1883
|
layout: u.value,
|
|
1877
|
-
onClick: y[3] || (y[3] = (
|
|
1884
|
+
onClick: y[3] || (y[3] = (W) => i.value = i.value + 1)
|
|
1878
1885
|
}, {
|
|
1879
|
-
default:
|
|
1880
|
-
G(
|
|
1886
|
+
default: q(() => [
|
|
1887
|
+
G(L(i.value + 1), 1)
|
|
1881
1888
|
]),
|
|
1882
1889
|
_: 1
|
|
1883
1890
|
}, 8, ["group", "type", "layout"])) : C("", !0),
|
|
1884
|
-
i.value + 2 <= e.maxStep ? (d(),
|
|
1891
|
+
i.value + 2 <= e.maxStep ? (d(), S(_, {
|
|
1885
1892
|
key: 3,
|
|
1886
1893
|
group: "center",
|
|
1887
1894
|
width: "42px",
|
|
1888
1895
|
align: "center",
|
|
1889
1896
|
type: p.value,
|
|
1890
1897
|
layout: u.value,
|
|
1891
|
-
onClick: y[4] || (y[4] = (
|
|
1898
|
+
onClick: y[4] || (y[4] = (W) => i.value = i.value + 2)
|
|
1892
1899
|
}, {
|
|
1893
|
-
default:
|
|
1894
|
-
G(
|
|
1900
|
+
default: q(() => [
|
|
1901
|
+
G(L(i.value + 2), 1)
|
|
1895
1902
|
]),
|
|
1896
1903
|
_: 1
|
|
1897
1904
|
}, 8, ["type", "layout"])) : C("", !0),
|
|
1898
|
-
|
|
1905
|
+
H(_, {
|
|
1899
1906
|
width: "42px",
|
|
1900
1907
|
align: "center",
|
|
1901
1908
|
group: v.value,
|
|
1902
1909
|
type: p.value,
|
|
1903
1910
|
layout: u.value,
|
|
1904
1911
|
icon: h.value,
|
|
1905
|
-
onClick: y[5] || (y[5] = (
|
|
1912
|
+
onClick: y[5] || (y[5] = (W) => k())
|
|
1906
1913
|
}, null, 8, ["group", "type", "layout", "icon"])
|
|
1907
1914
|
], 2);
|
|
1908
1915
|
};
|
|
@@ -1918,21 +1925,21 @@ const Ml = {
|
|
|
1918
1925
|
setup(e) {
|
|
1919
1926
|
const o = e, t = c(() => {
|
|
1920
1927
|
const l = [];
|
|
1921
|
-
return l.push(`align-${o.align || nn}`), o.textColor &&
|
|
1928
|
+
return l.push(`align-${o.align || nn}`), o.textColor && A.isColorTemplateVariable(o.textColor) && l.push(`ck-component__color--${o.textColor}`), o.backgroundColor && A.isColorTemplateVariable(o.backgroundColor) && l.push(`ck-component__bg-color--${o.backgroundColor}`), l;
|
|
1922
1929
|
}), n = c(() => {
|
|
1923
1930
|
const l = [];
|
|
1924
|
-
return o.minWidth && l.push({ "min-width": o.minWidth }), o.textColor && !
|
|
1931
|
+
return o.minWidth && l.push({ "min-width": o.minWidth }), o.textColor && !A.isColorTemplateVariable(o.textColor) && l.push({ color: o.textColor || "white" }), o.backgroundColor && !A.isColorTemplateVariable(o.backgroundColor) && l.push({ backgroundColor: o.backgroundColor }), l;
|
|
1925
1932
|
});
|
|
1926
1933
|
return (l, i) => (d(), g("th", ln, [
|
|
1927
1934
|
w("span", {
|
|
1928
|
-
class:
|
|
1929
|
-
style:
|
|
1935
|
+
class: P(t.value),
|
|
1936
|
+
style: E(n.value)
|
|
1930
1937
|
}, [
|
|
1931
|
-
|
|
1938
|
+
O(l.$slots, "default", {}, void 0, !0)
|
|
1932
1939
|
], 6)
|
|
1933
1940
|
]));
|
|
1934
1941
|
}
|
|
1935
|
-
}), sn = /* @__PURE__ */
|
|
1942
|
+
}), sn = /* @__PURE__ */ U(an, [["__scopeId", "data-v-0c92c654"]]);
|
|
1936
1943
|
(function() {
|
|
1937
1944
|
try {
|
|
1938
1945
|
if (typeof document < "u") {
|
|
@@ -1977,7 +1984,7 @@ const rn = ["year", "month", "day", "time", "custom"], un = z({
|
|
|
1977
1984
|
validate: (e) => typeof e == "string" && rn.includes(e)
|
|
1978
1985
|
}
|
|
1979
1986
|
}
|
|
1980
|
-
}),
|
|
1987
|
+
}), Te = (e, o) => {
|
|
1981
1988
|
const t = e.__vccOpts || e;
|
|
1982
1989
|
for (const [n, l] of o)
|
|
1983
1990
|
t[n] = l;
|
|
@@ -2023,36 +2030,36 @@ const rn = ["year", "month", "day", "time", "custom"], un = z({
|
|
|
2023
2030
|
], -1)), mn = { class: "v3dp__body" }, hn = { class: "v3dp__subheading" }, gn = /* @__PURE__ */ nt(() => /* @__PURE__ */ w("hr", { class: "v3dp__divider" }, null, -1)), kn = { class: "v3dp__elements" }, bn = ["disabled", "onClick"];
|
|
2024
2031
|
function yn(e, o, t, n, l, i) {
|
|
2025
2032
|
return d(), g("div", {
|
|
2026
|
-
class:
|
|
2027
|
-
style:
|
|
2028
|
-
onMousedown: o[3] || (o[3] =
|
|
2033
|
+
class: P(["v3dp__popout", `v3dp__popout-${e.viewMode}`]),
|
|
2034
|
+
style: E({ "--popout-column-definition": `repeat(${e.columnCount}, 1fr)` }),
|
|
2035
|
+
onMousedown: o[3] || (o[3] = ie(() => {
|
|
2029
2036
|
}, ["prevent"]))
|
|
2030
2037
|
}, [
|
|
2031
2038
|
w("div", cn, [
|
|
2032
2039
|
w("button", {
|
|
2033
2040
|
class: "v3dp__heading__button v3dp__heading__button__left",
|
|
2034
2041
|
disabled: e.leftDisabled,
|
|
2035
|
-
onClick: o[0] || (o[0] =
|
|
2042
|
+
onClick: o[0] || (o[0] = ie((a) => e.$emit("left"), ["stop", "prevent"]))
|
|
2036
2043
|
}, [
|
|
2037
|
-
|
|
2044
|
+
O(e.$slots, "arrow-left", {}, () => [
|
|
2038
2045
|
pn
|
|
2039
2046
|
], !0)
|
|
2040
2047
|
], 8, dn),
|
|
2041
|
-
(d(),
|
|
2048
|
+
(d(), S(Ut(e.headingClickable ? "button" : "span"), {
|
|
2042
2049
|
class: "v3dp__heading__center",
|
|
2043
|
-
onClick: o[1] || (o[1] =
|
|
2050
|
+
onClick: o[1] || (o[1] = ie((a) => e.$emit("heading"), ["stop", "prevent"]))
|
|
2044
2051
|
}, {
|
|
2045
|
-
default:
|
|
2046
|
-
|
|
2052
|
+
default: q(() => [
|
|
2053
|
+
O(e.$slots, "heading", {}, void 0, !0)
|
|
2047
2054
|
]),
|
|
2048
2055
|
_: 3
|
|
2049
2056
|
})),
|
|
2050
2057
|
w("button", {
|
|
2051
2058
|
class: "v3dp__heading__button v3dp__heading__button__right",
|
|
2052
2059
|
disabled: e.rightDisabled,
|
|
2053
|
-
onClick: o[2] || (o[2] =
|
|
2060
|
+
onClick: o[2] || (o[2] = ie((a) => e.$emit("right"), ["stop", "prevent"]))
|
|
2054
2061
|
}, [
|
|
2055
|
-
|
|
2062
|
+
O(e.$slots, "arrow-right", {}, () => [
|
|
2056
2063
|
fn
|
|
2057
2064
|
], !0)
|
|
2058
2065
|
], 8, vn)
|
|
@@ -2060,32 +2067,32 @@ function yn(e, o, t, n, l, i) {
|
|
|
2060
2067
|
w("div", mn, [
|
|
2061
2068
|
"subheading" in e.$slots ? (d(), g(J, { key: 0 }, [
|
|
2062
2069
|
w("div", hn, [
|
|
2063
|
-
|
|
2070
|
+
O(e.$slots, "subheading", {}, void 0, !0)
|
|
2064
2071
|
]),
|
|
2065
2072
|
gn
|
|
2066
2073
|
], 64)) : C("", !0),
|
|
2067
2074
|
w("div", kn, [
|
|
2068
|
-
|
|
2069
|
-
(d(!0), g(J, null,
|
|
2075
|
+
O(e.$slots, "body", {}, () => [
|
|
2076
|
+
(d(!0), g(J, null, se(e.items, (a) => (d(), g("button", {
|
|
2070
2077
|
key: a.key,
|
|
2071
2078
|
disabled: a.disabled,
|
|
2072
|
-
class:
|
|
2079
|
+
class: P([
|
|
2073
2080
|
{
|
|
2074
2081
|
selected: a.selected,
|
|
2075
2082
|
current: a.current
|
|
2076
2083
|
},
|
|
2077
2084
|
`v3dp__element__button__${e.viewMode}`
|
|
2078
2085
|
]),
|
|
2079
|
-
onClick:
|
|
2086
|
+
onClick: ie((p) => e.$emit("elementClick", a.value), ["stop", "prevent"])
|
|
2080
2087
|
}, [
|
|
2081
|
-
w("span", null,
|
|
2088
|
+
w("span", null, L(a.display), 1)
|
|
2082
2089
|
], 10, bn))), 128))
|
|
2083
2090
|
], !0)
|
|
2084
2091
|
])
|
|
2085
2092
|
])
|
|
2086
2093
|
], 38);
|
|
2087
2094
|
}
|
|
2088
|
-
const Ne = /* @__PURE__ */
|
|
2095
|
+
const Ne = /* @__PURE__ */ Te(un, [["render", yn], ["__scopeId", "data-v-65eb861b"]]), Cn = z({
|
|
2089
2096
|
components: {
|
|
2090
2097
|
PickerPopup: Ne
|
|
2091
2098
|
},
|
|
@@ -2145,7 +2152,7 @@ const Ne = /* @__PURE__ */ Ve(un, [["render", yn], ["__scopeId", "data-v-65eb861
|
|
|
2145
2152
|
});
|
|
2146
2153
|
function wn(e, o, t, n, l, i) {
|
|
2147
2154
|
const a = Y("picker-popup");
|
|
2148
|
-
return d(),
|
|
2155
|
+
return d(), S(a, {
|
|
2149
2156
|
columnCount: 3,
|
|
2150
2157
|
leftDisabled: e.leftDisabled,
|
|
2151
2158
|
rightDisabled: e.rightDisabled,
|
|
@@ -2155,13 +2162,13 @@ function wn(e, o, t, n, l, i) {
|
|
|
2155
2162
|
onRight: e.nextPage,
|
|
2156
2163
|
onElementClick: o[0] || (o[0] = (p) => e.$emit("select", p))
|
|
2157
2164
|
}, {
|
|
2158
|
-
heading:
|
|
2159
|
-
G(
|
|
2165
|
+
heading: q(() => [
|
|
2166
|
+
G(L(e.heading), 1)
|
|
2160
2167
|
]),
|
|
2161
2168
|
_: 1
|
|
2162
2169
|
}, 8, ["leftDisabled", "rightDisabled", "items", "onLeft", "onRight"]);
|
|
2163
2170
|
}
|
|
2164
|
-
const $n = /* @__PURE__ */
|
|
2171
|
+
const $n = /* @__PURE__ */ Te(Cn, [["render", wn]]), xn = z({
|
|
2165
2172
|
components: {
|
|
2166
2173
|
PickerPopup: Ne
|
|
2167
2174
|
},
|
|
@@ -2235,7 +2242,7 @@ const $n = /* @__PURE__ */ Ve(Cn, [["render", wn]]), xn = z({
|
|
|
2235
2242
|
});
|
|
2236
2243
|
function _n(e, o, t, n, l, i) {
|
|
2237
2244
|
const a = Y("picker-popup");
|
|
2238
|
-
return d(),
|
|
2245
|
+
return d(), S(a, {
|
|
2239
2246
|
headingClickable: "",
|
|
2240
2247
|
columnCount: 3,
|
|
2241
2248
|
items: e.months,
|
|
@@ -2247,13 +2254,13 @@ function _n(e, o, t, n, l, i) {
|
|
|
2247
2254
|
onHeading: o[0] || (o[0] = (p) => e.$emit("back")),
|
|
2248
2255
|
onElementClick: o[1] || (o[1] = (p) => e.$emit("select", p))
|
|
2249
2256
|
}, {
|
|
2250
|
-
heading:
|
|
2251
|
-
G(
|
|
2257
|
+
heading: q(() => [
|
|
2258
|
+
G(L(e.heading), 1)
|
|
2252
2259
|
]),
|
|
2253
2260
|
_: 1
|
|
2254
2261
|
}, 8, ["items", "leftDisabled", "rightDisabled", "onLeft", "onRight"]);
|
|
2255
2262
|
}
|
|
2256
|
-
const Bn = /* @__PURE__ */
|
|
2263
|
+
const Bn = /* @__PURE__ */ Te(xn, [["render", _n]]), Tn = z({
|
|
2257
2264
|
components: {
|
|
2258
2265
|
PickerPopup: Ne
|
|
2259
2266
|
},
|
|
@@ -2339,7 +2346,7 @@ const Bn = /* @__PURE__ */ Ve(xn, [["render", _n]]), Vn = z({
|
|
|
2339
2346
|
).map(m);
|
|
2340
2347
|
}), u = (h, m, k, b) => {
|
|
2341
2348
|
var y, _;
|
|
2342
|
-
return (y = b == null ? void 0 : b.dates) != null && y.some((
|
|
2349
|
+
return (y = b == null ? void 0 : b.dates) != null && y.some((W) => Ke(h, W)) || (_ = b == null ? void 0 : b.predicate) != null && _.call(b, h) ? !1 : !m && !k ? !0 : !(m && Se(h, Co(m)) || k && Le(h, wo(k)));
|
|
2343
2350
|
}, f = c(() => {
|
|
2344
2351
|
const h = /* @__PURE__ */ new Date(), m = t.value(e.format);
|
|
2345
2352
|
return mo(a.value).map(
|
|
@@ -2375,9 +2382,9 @@ const Bn = /* @__PURE__ */ Ve(xn, [["render", _n]]), Vn = z({
|
|
|
2375
2382
|
};
|
|
2376
2383
|
}
|
|
2377
2384
|
});
|
|
2378
|
-
function
|
|
2385
|
+
function Vn(e, o, t, n, l, i) {
|
|
2379
2386
|
const a = Y("picker-popup");
|
|
2380
|
-
return d(),
|
|
2387
|
+
return d(), S(a, {
|
|
2381
2388
|
headingClickable: "",
|
|
2382
2389
|
leftDisabled: e.leftDisabled,
|
|
2383
2390
|
rightDisabled: e.rightDisabled,
|
|
@@ -2388,19 +2395,19 @@ function Tn(e, o, t, n, l, i) {
|
|
|
2388
2395
|
onHeading: o[0] || (o[0] = (p) => e.$emit("back")),
|
|
2389
2396
|
onElementClick: o[1] || (o[1] = (p) => e.$emit("select", p))
|
|
2390
2397
|
}, {
|
|
2391
|
-
heading:
|
|
2392
|
-
G(
|
|
2398
|
+
heading: q(() => [
|
|
2399
|
+
G(L(e.heading), 1)
|
|
2393
2400
|
]),
|
|
2394
|
-
subheading:
|
|
2395
|
-
(d(!0), g(J, null,
|
|
2401
|
+
subheading: q(() => [
|
|
2402
|
+
(d(!0), g(J, null, se(e.weekDays, (p, u) => (d(), g("span", {
|
|
2396
2403
|
key: p,
|
|
2397
|
-
class:
|
|
2398
|
-
},
|
|
2404
|
+
class: P(`v3dp__subheading__weekday__${u}`)
|
|
2405
|
+
}, L(p), 3))), 128))
|
|
2399
2406
|
]),
|
|
2400
2407
|
_: 1
|
|
2401
2408
|
}, 8, ["leftDisabled", "rightDisabled", "items", "onLeft", "onRight"]);
|
|
2402
2409
|
}
|
|
2403
|
-
const Dn = /* @__PURE__ */
|
|
2410
|
+
const Dn = /* @__PURE__ */ Te(Tn, [["render", Vn]]);
|
|
2404
2411
|
function ht(e, o) {
|
|
2405
2412
|
const t = e.getBoundingClientRect(), n = {
|
|
2406
2413
|
height: e.clientHeight,
|
|
@@ -2438,8 +2445,8 @@ const Sn = z({
|
|
|
2438
2445
|
}
|
|
2439
2446
|
},
|
|
2440
2447
|
setup(e, { emit: o }) {
|
|
2441
|
-
const t =
|
|
2442
|
-
|
|
2448
|
+
const t = M(null), n = M(null), l = c(() => e.pageDate ?? e.selected), i = M(l.value.getHours()), a = M(l.value.getMinutes());
|
|
2449
|
+
ue(
|
|
2443
2450
|
() => e.selected,
|
|
2444
2451
|
(v) => {
|
|
2445
2452
|
let r = 0, h = 0;
|
|
@@ -2456,7 +2463,7 @@ const Sn = z({
|
|
|
2456
2463
|
seconds: 0
|
|
2457
2464
|
}),
|
|
2458
2465
|
selected: i.value === v,
|
|
2459
|
-
ref:
|
|
2466
|
+
ref: M(null)
|
|
2460
2467
|
})
|
|
2461
2468
|
)
|
|
2462
2469
|
), u = c(
|
|
@@ -2468,7 +2475,7 @@ const Sn = z({
|
|
|
2468
2475
|
seconds: 0
|
|
2469
2476
|
}),
|
|
2470
2477
|
selected: a.value === v,
|
|
2471
|
-
ref:
|
|
2478
|
+
ref: M(null)
|
|
2472
2479
|
}))
|
|
2473
2480
|
), f = (v) => {
|
|
2474
2481
|
a.value = v.value, o("select", v.date);
|
|
@@ -2486,7 +2493,7 @@ const Sn = z({
|
|
|
2486
2493
|
);
|
|
2487
2494
|
v && r && (ht(t.value, v.ref.value), ht(n.value, r.ref.value));
|
|
2488
2495
|
};
|
|
2489
|
-
return
|
|
2496
|
+
return ue(
|
|
2490
2497
|
() => e.visible,
|
|
2491
2498
|
(v) => {
|
|
2492
2499
|
v && kt(s);
|
|
@@ -2518,7 +2525,7 @@ const Sn = z({
|
|
|
2518
2525
|
}, Mn = ["disabled", "onClick"];
|
|
2519
2526
|
function In(e, o, t, n, l, i) {
|
|
2520
2527
|
const a = Y("picker-popup");
|
|
2521
|
-
return d(),
|
|
2528
|
+
return d(), S(a, {
|
|
2522
2529
|
headingClickable: "",
|
|
2523
2530
|
columnCount: 2,
|
|
2524
2531
|
leftDisabled: !0,
|
|
@@ -2526,39 +2533,39 @@ function In(e, o, t, n, l, i) {
|
|
|
2526
2533
|
viewMode: "time",
|
|
2527
2534
|
onHeading: o[0] || (o[0] = (p) => e.$emit("back"))
|
|
2528
2535
|
}, {
|
|
2529
|
-
heading:
|
|
2530
|
-
G(
|
|
2536
|
+
heading: q(() => [
|
|
2537
|
+
G(L(e.padStartZero(e.hours)) + ":" + L(e.padStartZero(e.minutes)), 1)
|
|
2531
2538
|
]),
|
|
2532
|
-
body:
|
|
2539
|
+
body: q(() => [
|
|
2533
2540
|
w("div", Ln, [
|
|
2534
|
-
(d(!0), g(J, null,
|
|
2541
|
+
(d(!0), g(J, null, se(e.hoursList, (p) => (d(), g("button", {
|
|
2535
2542
|
key: p.value,
|
|
2536
2543
|
ref_for: !0,
|
|
2537
2544
|
ref: p.ref,
|
|
2538
|
-
class:
|
|
2545
|
+
class: P([{ selected: p.selected }, "v3dp__element_button__hour"]),
|
|
2539
2546
|
disabled: !e.isEnabled(p.date),
|
|
2540
|
-
onClick:
|
|
2547
|
+
onClick: ie((u) => e.hours = p.value, ["stop", "prevent"])
|
|
2541
2548
|
}, [
|
|
2542
|
-
w("span", null,
|
|
2549
|
+
w("span", null, L(e.padStartZero(p.value)), 1)
|
|
2543
2550
|
], 10, Pn))), 128))
|
|
2544
2551
|
], 512),
|
|
2545
2552
|
w("div", An, [
|
|
2546
|
-
(d(!0), g(J, null,
|
|
2553
|
+
(d(!0), g(J, null, se(e.minutesList, (p) => (d(), g("button", {
|
|
2547
2554
|
key: p.value,
|
|
2548
2555
|
ref_for: !0,
|
|
2549
2556
|
ref: p.ref,
|
|
2550
|
-
class:
|
|
2557
|
+
class: P([{ selected: p.selected }, "v3dp__element_button__minute"]),
|
|
2551
2558
|
disabled: !e.isEnabled(p.date),
|
|
2552
|
-
onClick:
|
|
2559
|
+
onClick: ie((u) => e.selectMinutes(p), ["stop", "prevent"])
|
|
2553
2560
|
}, [
|
|
2554
|
-
w("span", null,
|
|
2561
|
+
w("span", null, L(e.padStartZero(p.value)), 1)
|
|
2555
2562
|
], 10, Mn))), 128))
|
|
2556
2563
|
], 512)
|
|
2557
2564
|
]),
|
|
2558
2565
|
_: 1
|
|
2559
2566
|
});
|
|
2560
2567
|
}
|
|
2561
|
-
const zn = /* @__PURE__ */
|
|
2568
|
+
const zn = /* @__PURE__ */ Te(Sn, [["render", In], ["__scopeId", "data-v-81ac698d"]]), Re = ["time", "day", "month", "year"], Rn = (e, o, t = void 0) => {
|
|
2562
2569
|
let n = t || /* @__PURE__ */ new Date();
|
|
2563
2570
|
return e && (n = $o([e, n])), o && (n = xo([o, n])), n;
|
|
2564
2571
|
}, On = z({
|
|
@@ -2737,45 +2744,45 @@ const zn = /* @__PURE__ */ Ve(Sn, [["render", In], ["__scopeId", "data-v-81ac698
|
|
|
2737
2744
|
closed: () => !0
|
|
2738
2745
|
},
|
|
2739
2746
|
setup(e, { emit: o, attrs: t }) {
|
|
2740
|
-
const n =
|
|
2747
|
+
const n = M("none"), l = M(e.startingViewDate), i = M(null), a = M(!1), p = M("");
|
|
2741
2748
|
Ge(() => {
|
|
2742
|
-
const
|
|
2749
|
+
const D = rt(p.value, e.inputFormat, /* @__PURE__ */ new Date(), {
|
|
2743
2750
|
locale: e.locale
|
|
2744
2751
|
});
|
|
2745
|
-
ve(
|
|
2752
|
+
ve(D) && (l.value = D);
|
|
2746
2753
|
}), Ge(
|
|
2747
2754
|
() => p.value = e.modelValue && ve(e.modelValue) ? We(e.modelValue, e.inputFormat, {
|
|
2748
2755
|
locale: e.locale
|
|
2749
2756
|
}) : ""
|
|
2750
2757
|
);
|
|
2751
|
-
const u = (
|
|
2752
|
-
e.disabled || (
|
|
2758
|
+
const u = (D = "none") => {
|
|
2759
|
+
e.disabled || (D !== "none" && n.value === "none" && (l.value = e.modelValue || Rn(e.lowerLimit, e.upperLimit, l.value)), n.value = D, o(D !== "none" ? "opened" : "closed"));
|
|
2753
2760
|
};
|
|
2754
2761
|
Ge(() => {
|
|
2755
2762
|
e.disabled && (n.value = "none");
|
|
2756
2763
|
});
|
|
2757
|
-
const f = (
|
|
2758
|
-
l.value =
|
|
2759
|
-
}, s = (
|
|
2760
|
-
l.value =
|
|
2761
|
-
}, v = (
|
|
2762
|
-
l.value =
|
|
2763
|
-
}, r = (
|
|
2764
|
-
l.value =
|
|
2765
|
-
}, h = (
|
|
2766
|
-
u("none"), o("update:modelValue",
|
|
2764
|
+
const f = (D, F) => {
|
|
2765
|
+
l.value = F, D === "year" ? o("decadePageChanged", F) : D === "month" ? o("yearPageChanged", F) : D === "day" && o("monthPageChanged", F);
|
|
2766
|
+
}, s = (D) => {
|
|
2767
|
+
l.value = D, e.minimumView === "year" ? (u("none"), o("update:modelValue", D)) : n.value = "month";
|
|
2768
|
+
}, v = (D) => {
|
|
2769
|
+
l.value = D, e.minimumView === "month" ? (u("none"), o("update:modelValue", D)) : n.value = "day";
|
|
2770
|
+
}, r = (D) => {
|
|
2771
|
+
l.value = D, e.minimumView === "day" ? (u("none"), o("update:modelValue", D)) : n.value = "time";
|
|
2772
|
+
}, h = (D) => {
|
|
2773
|
+
u("none"), o("update:modelValue", D);
|
|
2767
2774
|
}, m = () => {
|
|
2768
2775
|
e.clearable && (u("none"), o("update:modelValue", null), l.value = e.startingViewDate);
|
|
2769
|
-
}, k = () => a.value = !0, b = () => u(
|
|
2776
|
+
}, k = () => a.value = !0, b = () => u(W.value), y = () => {
|
|
2770
2777
|
a.value = !1, u();
|
|
2771
|
-
}, _ = (
|
|
2772
|
-
const
|
|
2778
|
+
}, _ = (D) => {
|
|
2779
|
+
const F = D.keyCode ? D.keyCode : D.which;
|
|
2773
2780
|
if ([
|
|
2774
2781
|
27,
|
|
2775
2782
|
// escape
|
|
2776
2783
|
13
|
|
2777
2784
|
// enter
|
|
2778
|
-
].includes(
|
|
2785
|
+
].includes(F) && i.value.blur(), e.typeable) {
|
|
2779
2786
|
const K = rt(
|
|
2780
2787
|
i.value.value,
|
|
2781
2788
|
e.inputFormat,
|
|
@@ -2784,9 +2791,9 @@ const zn = /* @__PURE__ */ Ve(Sn, [["render", In], ["__scopeId", "data-v-81ac698
|
|
|
2784
2791
|
);
|
|
2785
2792
|
ve(K) && p.value === We(K, e.inputFormat, { locale: e.locale }) && (p.value = i.value.value, o("update:modelValue", K));
|
|
2786
2793
|
}
|
|
2787
|
-
},
|
|
2788
|
-
const
|
|
2789
|
-
return
|
|
2794
|
+
}, W = c(() => {
|
|
2795
|
+
const D = Re.indexOf(e.startingView), F = Re.indexOf(e.minimumView);
|
|
2796
|
+
return D < F ? e.minimumView : e.startingView;
|
|
2790
2797
|
});
|
|
2791
2798
|
return {
|
|
2792
2799
|
blur: y,
|
|
@@ -2805,10 +2812,10 @@ const zn = /* @__PURE__ */ Ve(Sn, [["render", In], ["__scopeId", "data-v-81ac698
|
|
|
2805
2812
|
viewShown: n,
|
|
2806
2813
|
goBackFromTimepicker: () => e.startingView === "time" && e.minimumView === "time" ? null : n.value = "day",
|
|
2807
2814
|
clearModelValue: m,
|
|
2808
|
-
initialView:
|
|
2809
|
-
log: (
|
|
2810
|
-
variables: (
|
|
2811
|
-
Object.entries(
|
|
2815
|
+
initialView: W,
|
|
2816
|
+
log: (D) => console.log(D),
|
|
2817
|
+
variables: (D) => Object.fromEntries(
|
|
2818
|
+
Object.entries(D ?? {}).filter(([F, K]) => F.startsWith("--"))
|
|
2812
2819
|
)
|
|
2813
2820
|
};
|
|
2814
2821
|
}
|
|
@@ -2817,10 +2824,10 @@ function qn(e, o, t, n, l, i) {
|
|
|
2817
2824
|
const a = Y("year-picker"), p = Y("month-picker"), u = Y("day-picker"), f = Y("time-picker");
|
|
2818
2825
|
return d(), g("div", {
|
|
2819
2826
|
class: "v3dp__datepicker",
|
|
2820
|
-
style:
|
|
2827
|
+
style: E(e.variables(e.$attrs.style))
|
|
2821
2828
|
}, [
|
|
2822
2829
|
w("div", Wn, [
|
|
2823
|
-
|
|
2830
|
+
re(w("input", Ae({
|
|
2824
2831
|
type: "text",
|
|
2825
2832
|
ref: "inputRef",
|
|
2826
2833
|
readonly: !e.typeable,
|
|
@@ -2836,17 +2843,17 @@ function qn(e, o, t, n, l, i) {
|
|
|
2836
2843
|
}), null, 16, En), [
|
|
2837
2844
|
[qe, e.input]
|
|
2838
2845
|
]),
|
|
2839
|
-
|
|
2840
|
-
|
|
2846
|
+
re(w("div", Fn, [
|
|
2847
|
+
O(e.$slots, "clear", { onClear: e.clearModelValue }, () => [
|
|
2841
2848
|
w("i", {
|
|
2842
2849
|
onClick: o[5] || (o[5] = (s) => e.clearModelValue())
|
|
2843
2850
|
}, "x")
|
|
2844
2851
|
])
|
|
2845
2852
|
], 512), [
|
|
2846
|
-
[
|
|
2853
|
+
[Ve, e.clearable && e.modelValue]
|
|
2847
2854
|
])
|
|
2848
2855
|
]),
|
|
2849
|
-
|
|
2856
|
+
re(H(a, {
|
|
2850
2857
|
pageDate: e.pageDate,
|
|
2851
2858
|
"onUpdate:pageDate": o[6] || (o[6] = (s) => e.updatePageDate("year", s)),
|
|
2852
2859
|
selected: e.modelValue,
|
|
@@ -2854,9 +2861,9 @@ function qn(e, o, t, n, l, i) {
|
|
|
2854
2861
|
upperLimit: e.upperLimit,
|
|
2855
2862
|
onSelect: e.selectYear
|
|
2856
2863
|
}, null, 8, ["pageDate", "selected", "lowerLimit", "upperLimit", "onSelect"]), [
|
|
2857
|
-
[
|
|
2864
|
+
[Ve, e.viewShown === "year"]
|
|
2858
2865
|
]),
|
|
2859
|
-
|
|
2866
|
+
re(H(p, {
|
|
2860
2867
|
pageDate: e.pageDate,
|
|
2861
2868
|
"onUpdate:pageDate": o[7] || (o[7] = (s) => e.updatePageDate("month", s)),
|
|
2862
2869
|
selected: e.modelValue,
|
|
@@ -2867,9 +2874,9 @@ function qn(e, o, t, n, l, i) {
|
|
|
2867
2874
|
locale: e.locale,
|
|
2868
2875
|
onBack: o[8] || (o[8] = (s) => e.viewShown = "year")
|
|
2869
2876
|
}, null, 8, ["pageDate", "selected", "onSelect", "lowerLimit", "upperLimit", "format", "locale"]), [
|
|
2870
|
-
[
|
|
2877
|
+
[Ve, e.viewShown === "month"]
|
|
2871
2878
|
]),
|
|
2872
|
-
|
|
2879
|
+
re(H(u, {
|
|
2873
2880
|
pageDate: e.pageDate,
|
|
2874
2881
|
"onUpdate:pageDate": o[9] || (o[9] = (s) => e.updatePageDate("day", s)),
|
|
2875
2882
|
selected: e.modelValue,
|
|
@@ -2885,9 +2892,9 @@ function qn(e, o, t, n, l, i) {
|
|
|
2885
2892
|
onSelect: e.selectDay,
|
|
2886
2893
|
onBack: o[10] || (o[10] = (s) => e.viewShown = "month")
|
|
2887
2894
|
}, null, 8, ["pageDate", "selected", "weekStartsOn", "lowerLimit", "upperLimit", "headingFormat", "disabledDates", "locale", "weekdayFormat", "allow-outside-interval", "format", "onSelect"]), [
|
|
2888
|
-
[
|
|
2895
|
+
[Ve, e.viewShown === "day"]
|
|
2889
2896
|
]),
|
|
2890
|
-
|
|
2897
|
+
re(H(f, {
|
|
2891
2898
|
pageDate: e.pageDate,
|
|
2892
2899
|
visible: e.viewShown === "time",
|
|
2893
2900
|
selected: e.modelValue,
|
|
@@ -2895,11 +2902,11 @@ function qn(e, o, t, n, l, i) {
|
|
|
2895
2902
|
onSelect: e.selectTime,
|
|
2896
2903
|
onBack: e.goBackFromTimepicker
|
|
2897
2904
|
}, null, 8, ["pageDate", "visible", "selected", "disabledTime", "onSelect", "onBack"]), [
|
|
2898
|
-
[
|
|
2905
|
+
[Ve, e.viewShown === "time"]
|
|
2899
2906
|
])
|
|
2900
2907
|
], 4);
|
|
2901
2908
|
}
|
|
2902
|
-
const Nn = /* @__PURE__ */
|
|
2909
|
+
const Nn = /* @__PURE__ */ Te(On, [["render", qn]]), Hn = ["id"], Un = {
|
|
2903
2910
|
key: 0,
|
|
2904
2911
|
class: "ck-input-date__optional-label"
|
|
2905
2912
|
}, jn = /* @__PURE__ */ z({
|
|
@@ -2921,7 +2928,7 @@ const Nn = /* @__PURE__ */ Ve(On, [["render", qn]]), Hn = ["id"], Un = {
|
|
|
2921
2928
|
},
|
|
2922
2929
|
emits: ["update:modelValue", "change"],
|
|
2923
2930
|
setup(e, { emit: o }) {
|
|
2924
|
-
const t = e, n = o, { cleekOptions: l } =
|
|
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({
|
|
2925
2932
|
get() {
|
|
2926
2933
|
return r(t.modelValue);
|
|
2927
2934
|
},
|
|
@@ -2930,13 +2937,13 @@ const Nn = /* @__PURE__ */ Ve(On, [["render", qn]]), Hn = ["id"], Un = {
|
|
|
2930
2937
|
}
|
|
2931
2938
|
}), s = c(() => {
|
|
2932
2939
|
const y = [];
|
|
2933
|
-
return y.push(
|
|
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;
|
|
2934
2941
|
}), v = c(() => {
|
|
2935
2942
|
const y = [];
|
|
2936
2943
|
let _ = "";
|
|
2937
|
-
return l.value.darkMode && (_ = l.value.darkModeColorItems), _ && !
|
|
2944
|
+
return l.value.darkMode && (_ = l.value.darkModeColorItems), _ && !A.isColorTemplateVariable(_) && y.push({ backgroundColor: _ }), y;
|
|
2938
2945
|
});
|
|
2939
|
-
|
|
2946
|
+
ue(() => t.modelValue, (y) => {
|
|
2940
2947
|
a.value && (a.value.style.display = "block", a.value.focus(), a.value.style.display = "none"), n("change", y);
|
|
2941
2948
|
});
|
|
2942
2949
|
function r(y) {
|
|
@@ -2946,16 +2953,16 @@ const Nn = /* @__PURE__ */ Ve(On, [["render", qn]]), Hn = ["id"], Un = {
|
|
|
2946
2953
|
}
|
|
2947
2954
|
function h(y) {
|
|
2948
2955
|
if (!y) return null;
|
|
2949
|
-
const _ = y.getFullYear(),
|
|
2950
|
-
return `${_}-${
|
|
2956
|
+
const _ = y.getFullYear(), W = Be(y.getMonth() + 1, 2), D = Be(y.getDate(), 2);
|
|
2957
|
+
return `${_}-${W}-${D}`;
|
|
2951
2958
|
}
|
|
2952
2959
|
function m() {
|
|
2953
2960
|
const y = document.getElementById(`${u.value}`), _ = y == null ? void 0 : y.querySelector(".v3dp__popout-day");
|
|
2954
|
-
let
|
|
2955
|
-
const
|
|
2956
|
-
|
|
2957
|
-
const
|
|
2958
|
-
y && _ && (
|
|
2961
|
+
let W = { y: 0 };
|
|
2962
|
+
const D = document.querySelector(".ck-popup__slot-body");
|
|
2963
|
+
D instanceof HTMLElement && (D.style.overflow = "hidden"), y && (W = y.getBoundingClientRect());
|
|
2964
|
+
const F = window.innerHeight - W.y;
|
|
2965
|
+
y && _ && (F - 300 < 0 ? _.setAttribute("style", "bottom: 0px") : _.setAttribute("style", `top: ${W.y + 60}px;`), y.setAttribute("style", "overflow: hidden;"));
|
|
2959
2966
|
}
|
|
2960
2967
|
function k() {
|
|
2961
2968
|
const y = document.querySelector(".ck-popup__slot-body");
|
|
@@ -2965,50 +2972,50 @@ const Nn = /* @__PURE__ */ Ve(On, [["render", qn]]), Hn = ["id"], Un = {
|
|
|
2965
2972
|
t.clearable && (f.value = r(t.clearValue));
|
|
2966
2973
|
}
|
|
2967
2974
|
return (y, _) => {
|
|
2968
|
-
const
|
|
2969
|
-
return d(),
|
|
2970
|
-
default:
|
|
2975
|
+
const W = Y("ck-label"), D = Y("ck-icon"), F = Y("ck-div");
|
|
2976
|
+
return d(), S(F, { "width-breaks": e.widthBreaks }, {
|
|
2977
|
+
default: q(() => {
|
|
2971
2978
|
var K;
|
|
2972
2979
|
return [
|
|
2973
2980
|
w("div", {
|
|
2974
2981
|
id: u.value,
|
|
2975
|
-
class:
|
|
2982
|
+
class: P(["ck-input-date", s.value])
|
|
2976
2983
|
}, [
|
|
2977
2984
|
w("input", {
|
|
2978
2985
|
ref_key: "refInput",
|
|
2979
2986
|
ref: a,
|
|
2980
2987
|
class: "ck-input-date--focus-absorber"
|
|
2981
2988
|
}, null, 512),
|
|
2982
|
-
|
|
2983
|
-
default:
|
|
2984
|
-
G(
|
|
2989
|
+
H(W, null, {
|
|
2990
|
+
default: q(() => [
|
|
2991
|
+
G(L(e.label) + " ", 1),
|
|
2985
2992
|
e.optional ? (d(), g("span", Un, "opcional")) : C("", !0)
|
|
2986
2993
|
]),
|
|
2987
2994
|
_: 1
|
|
2988
2995
|
}),
|
|
2989
2996
|
w("div", {
|
|
2990
|
-
class:
|
|
2997
|
+
class: P(["ck-picker-container", ((K = xe(l)) == null ? void 0 : K.darkMode) && "picker-dark"])
|
|
2991
2998
|
}, [
|
|
2992
|
-
e.icon ? (d(), D
|
|
2999
|
+
e.icon ? (d(), S(D, {
|
|
2993
3000
|
key: 0,
|
|
2994
3001
|
class: "ck-input__icon-left",
|
|
2995
3002
|
color: e.iconColor ? e.iconColor : "lightgrey",
|
|
2996
3003
|
icon: e.icon,
|
|
2997
3004
|
"icon-pack": e.iconPack
|
|
2998
3005
|
}, null, 8, ["color", "icon", "icon-pack"])) : C("", !0),
|
|
2999
|
-
|
|
3006
|
+
H(xe(Nn), {
|
|
3000
3007
|
modelValue: f.value,
|
|
3001
3008
|
"onUpdate:modelValue": _[0] || (_[0] = (oe) => f.value = oe),
|
|
3002
3009
|
"input-format": "dd-MM-yyyy",
|
|
3003
|
-
style:
|
|
3010
|
+
style: E(v.value),
|
|
3004
3011
|
disabled: e.disabled,
|
|
3005
3012
|
locale: xe(_o),
|
|
3006
3013
|
onOpened: m,
|
|
3007
3014
|
onClosed: k
|
|
3008
3015
|
}, null, 8, ["modelValue", "style", "disabled", "locale"]),
|
|
3009
|
-
e.clearable && e.modelValue != e.clearValue || e.iconRight ? (d(), D
|
|
3016
|
+
e.clearable && e.modelValue != e.clearValue || e.iconRight ? (d(), S(D, {
|
|
3010
3017
|
key: 1,
|
|
3011
|
-
class:
|
|
3018
|
+
class: P(["ck-input__icon-right", { "icon-right__clearable": e.clearable }]),
|
|
3012
3019
|
color: e.clearable ? "grey" : e.iconColor ? e.iconColor : "lightgrey",
|
|
3013
3020
|
icon: e.clearable ? "xmark" : e.iconRight,
|
|
3014
3021
|
"icon-pack": e.clearable ? "font-awesome" : e.iconPack,
|
|
@@ -3022,7 +3029,7 @@ const Nn = /* @__PURE__ */ Ve(On, [["render", qn]]), Hn = ["id"], Un = {
|
|
|
3022
3029
|
}, 8, ["width-breaks"]);
|
|
3023
3030
|
};
|
|
3024
3031
|
}
|
|
3025
|
-
}), Gn = /* @__PURE__ */
|
|
3032
|
+
}), Gn = /* @__PURE__ */ U(jn, [["__scopeId", "data-v-a1812481"]]), Yn = /* @__PURE__ */ z({
|
|
3026
3033
|
__name: "ck-input-time",
|
|
3027
3034
|
props: {
|
|
3028
3035
|
modelValue: {},
|
|
@@ -3044,7 +3051,7 @@ const Nn = /* @__PURE__ */ Ve(On, [["render", qn]]), Hn = ["id"], Un = {
|
|
|
3044
3051
|
});
|
|
3045
3052
|
return (i, a) => {
|
|
3046
3053
|
const p = Y("ck-input");
|
|
3047
|
-
return d(),
|
|
3054
|
+
return d(), S(p, {
|
|
3048
3055
|
modelValue: l.value,
|
|
3049
3056
|
"onUpdate:modelValue": a[0] || (a[0] = (u) => l.value = u),
|
|
3050
3057
|
type: "time",
|
|
@@ -3066,28 +3073,28 @@ const Nn = /* @__PURE__ */ Ve(On, [["render", qn]]), Hn = ["id"], Un = {
|
|
|
3066
3073
|
icon: {}
|
|
3067
3074
|
},
|
|
3068
3075
|
setup(e) {
|
|
3069
|
-
const o = e, t = Yt("addTab"), n =
|
|
3076
|
+
const o = e, t = Yt("addTab"), n = M(!1);
|
|
3070
3077
|
function l(i) {
|
|
3071
3078
|
n.value = i;
|
|
3072
3079
|
}
|
|
3073
|
-
return
|
|
3080
|
+
return $e(() => {
|
|
3074
3081
|
t == null || t({
|
|
3075
3082
|
selectTab: l,
|
|
3076
3083
|
icon: o.icon,
|
|
3077
3084
|
title: o.title
|
|
3078
3085
|
});
|
|
3079
3086
|
}), (i, a) => n.value ? (d(), g("div", Kn, [
|
|
3080
|
-
|
|
3087
|
+
O(i.$slots, "default", {}, void 0, !0)
|
|
3081
3088
|
])) : C("", !0);
|
|
3082
3089
|
}
|
|
3083
|
-
}), Jn = /* @__PURE__ */
|
|
3090
|
+
}), Jn = /* @__PURE__ */ U(Zn, [["__scopeId", "data-v-e8abcb89"]]), Xn = { class: "ck-tabs" }, Qn = ["onClick"], ea = { class: "ck-tabs__tab-content" }, ta = "flat", oa = /* @__PURE__ */ z({
|
|
3084
3091
|
__name: "ck-tabs",
|
|
3085
3092
|
props: {
|
|
3086
3093
|
type: {}
|
|
3087
3094
|
},
|
|
3088
3095
|
emits: ["tabSelected"],
|
|
3089
3096
|
setup(e, { expose: o, emit: t }) {
|
|
3090
|
-
const n =
|
|
3097
|
+
const n = M(null), l = M(!1), i = M(!1), a = e, p = t, u = M([]), f = M(null), s = c(() => a.type ? a.type : ta), v = c(() => {
|
|
3091
3098
|
const b = [];
|
|
3092
3099
|
return s.value && b.push(`ck-tabs__header--button-${s.value}`), b;
|
|
3093
3100
|
});
|
|
@@ -3109,7 +3116,7 @@ const Nn = /* @__PURE__ */ Ve(On, [["render", qn]]), Hn = ["id"], Un = {
|
|
|
3109
3116
|
}
|
|
3110
3117
|
return Kt("addTab", (b) => {
|
|
3111
3118
|
u.value.push(b);
|
|
3112
|
-
}),
|
|
3119
|
+
}), $e(() => {
|
|
3113
3120
|
var y;
|
|
3114
3121
|
h(), (y = n.value) == null || y.addEventListener("scroll", h);
|
|
3115
3122
|
const b = u.value.find((_) => _.active) || u.value[0];
|
|
@@ -3117,60 +3124,60 @@ const Nn = /* @__PURE__ */ Ve(On, [["render", qn]]), Hn = ["id"], Un = {
|
|
|
3117
3124
|
}), o({
|
|
3118
3125
|
selectTab: r
|
|
3119
3126
|
}), Zt(h), (b, y) => {
|
|
3120
|
-
const _ = Y("ck-icon"),
|
|
3127
|
+
const _ = Y("ck-icon"), W = Y("ck-circle");
|
|
3121
3128
|
return d(), g("div", Xn, [
|
|
3122
3129
|
w("div", {
|
|
3123
|
-
class:
|
|
3130
|
+
class: P(["ck-tabs__header", { "has-left-arrow": l.value, "has-right-arrow": i.value }])
|
|
3124
3131
|
}, [
|
|
3125
|
-
l.value ? (d(),
|
|
3132
|
+
l.value ? (d(), S(W, {
|
|
3126
3133
|
key: 0,
|
|
3127
3134
|
class: "header--scroll-btn",
|
|
3128
3135
|
color: "primary",
|
|
3129
3136
|
size: "xs",
|
|
3130
|
-
onClick: y[0] || (y[0] = (
|
|
3137
|
+
onClick: y[0] || (y[0] = (D) => m())
|
|
3131
3138
|
}, {
|
|
3132
|
-
default:
|
|
3133
|
-
|
|
3139
|
+
default: q(() => [
|
|
3140
|
+
H(_, { icon: "chevron-left" })
|
|
3134
3141
|
]),
|
|
3135
3142
|
_: 1
|
|
3136
3143
|
})) : C("", !0),
|
|
3137
3144
|
w("div", {
|
|
3138
3145
|
ref_key: "tabsContainer",
|
|
3139
3146
|
ref: n,
|
|
3140
|
-
class:
|
|
3147
|
+
class: P(["ck-tabs__header-content", { "header-content--flat": s.value === "flat" }])
|
|
3141
3148
|
}, [
|
|
3142
|
-
(d(!0), g(J, null,
|
|
3143
|
-
key:
|
|
3144
|
-
class:
|
|
3145
|
-
onClick: (K) => r(
|
|
3149
|
+
(d(!0), g(J, null, se(u.value, (D, F) => (d(), g("div", {
|
|
3150
|
+
key: F,
|
|
3151
|
+
class: P([v.value, { "is-selected": f.value === F }]),
|
|
3152
|
+
onClick: (K) => r(F)
|
|
3146
3153
|
}, [
|
|
3147
|
-
|
|
3154
|
+
D.icon ? (d(), S(_, {
|
|
3148
3155
|
key: 0,
|
|
3149
|
-
icon:
|
|
3156
|
+
icon: D.icon
|
|
3150
3157
|
}, null, 8, ["icon"])) : C("", !0),
|
|
3151
|
-
G(" " +
|
|
3158
|
+
G(" " + L(D.title), 1)
|
|
3152
3159
|
], 10, Qn))), 128))
|
|
3153
3160
|
], 2),
|
|
3154
|
-
i.value ? (d(),
|
|
3161
|
+
i.value ? (d(), S(W, {
|
|
3155
3162
|
key: 1,
|
|
3156
3163
|
class: "header--scroll-btn",
|
|
3157
3164
|
color: "primary",
|
|
3158
3165
|
size: "xs",
|
|
3159
|
-
onClick: y[1] || (y[1] = (
|
|
3166
|
+
onClick: y[1] || (y[1] = (D) => k())
|
|
3160
3167
|
}, {
|
|
3161
|
-
default:
|
|
3162
|
-
|
|
3168
|
+
default: q(() => [
|
|
3169
|
+
H(_, { icon: "chevron-right" })
|
|
3163
3170
|
]),
|
|
3164
3171
|
_: 1
|
|
3165
3172
|
})) : C("", !0)
|
|
3166
3173
|
], 2),
|
|
3167
3174
|
w("div", ea, [
|
|
3168
|
-
|
|
3175
|
+
O(b.$slots, "default", {}, void 0, !0)
|
|
3169
3176
|
])
|
|
3170
3177
|
]);
|
|
3171
3178
|
};
|
|
3172
3179
|
}
|
|
3173
|
-
}), la = /* @__PURE__ */
|
|
3180
|
+
}), la = /* @__PURE__ */ U(oa, [["__scopeId", "data-v-1d834ae1"]]), na = "rounded", aa = /* @__PURE__ */ z({
|
|
3174
3181
|
__name: "ck-toggle",
|
|
3175
3182
|
props: {
|
|
3176
3183
|
modelValue: { type: Boolean },
|
|
@@ -3197,16 +3204,16 @@ const Nn = /* @__PURE__ */ Ve(On, [["render", qn]]), Hn = ["id"], Un = {
|
|
|
3197
3204
|
return (p, u) => {
|
|
3198
3205
|
const f = Y("ck-icon");
|
|
3199
3206
|
return d(), g("div", {
|
|
3200
|
-
class:
|
|
3207
|
+
class: P(["ck-toggle", [l.value, { "is-active": a.value }]]),
|
|
3201
3208
|
onClick: u[0] || (u[0] = (s) => a.value = !a.value)
|
|
3202
3209
|
}, [
|
|
3203
|
-
e.icon ? (d(),
|
|
3210
|
+
e.icon ? (d(), S(f, {
|
|
3204
3211
|
key: 0,
|
|
3205
3212
|
icon: e.icon,
|
|
3206
3213
|
"icon-pack": e.iconPack
|
|
3207
3214
|
}, null, 8, ["icon", "icon-pack"])) : C("", !0),
|
|
3208
|
-
|
|
3209
|
-
e.iconRight ? (d(),
|
|
3215
|
+
O(p.$slots, "default", {}, void 0, !0),
|
|
3216
|
+
e.iconRight ? (d(), S(f, {
|
|
3210
3217
|
key: 1,
|
|
3211
3218
|
icon: e.iconRight,
|
|
3212
3219
|
"icon-pack": e.iconPack
|
|
@@ -3214,7 +3221,7 @@ const Nn = /* @__PURE__ */ Ve(On, [["render", qn]]), Hn = ["id"], Un = {
|
|
|
3214
3221
|
], 2);
|
|
3215
3222
|
};
|
|
3216
3223
|
}
|
|
3217
|
-
}), ia = /* @__PURE__ */
|
|
3224
|
+
}), ia = /* @__PURE__ */ U(aa, [["__scopeId", "data-v-e17893c4"]]), sa = { class: "ck-toggle-group" }, ra = /* @__PURE__ */ z({
|
|
3218
3225
|
__name: "ck-toggle-group",
|
|
3219
3226
|
props: /* @__PURE__ */ te({
|
|
3220
3227
|
options: {},
|
|
@@ -3256,20 +3263,20 @@ const Nn = /* @__PURE__ */ Ve(On, [["render", qn]]), Hn = ["id"], Un = {
|
|
|
3256
3263
|
return (s, v) => {
|
|
3257
3264
|
const r = Y("ck-label"), h = Y("ck-toggle");
|
|
3258
3265
|
return d(), g("div", sa, [
|
|
3259
|
-
e.label ? (d(),
|
|
3266
|
+
e.label ? (d(), S(r, {
|
|
3260
3267
|
key: 0,
|
|
3261
3268
|
align: e.labelAlign
|
|
3262
3269
|
}, {
|
|
3263
|
-
default:
|
|
3264
|
-
G(
|
|
3270
|
+
default: q(() => [
|
|
3271
|
+
G(L(e.label), 1)
|
|
3265
3272
|
]),
|
|
3266
3273
|
_: 1
|
|
3267
3274
|
}, 8, ["align"])) : C("", !0),
|
|
3268
3275
|
w("div", {
|
|
3269
3276
|
class: "ck-toggle-group__options",
|
|
3270
|
-
style:
|
|
3277
|
+
style: E({ gap: e.gap })
|
|
3271
3278
|
}, [
|
|
3272
|
-
(d(!0), g(J, null,
|
|
3279
|
+
(d(!0), g(J, null, se(e.options, (m) => (d(), S(h, {
|
|
3273
3280
|
key: a(m),
|
|
3274
3281
|
"model-value": u(m),
|
|
3275
3282
|
icon: p(m),
|
|
@@ -3278,8 +3285,8 @@ const Nn = /* @__PURE__ */ Ve(On, [["render", qn]]), Hn = ["id"], Un = {
|
|
|
3278
3285
|
"prevent-auto-update": "",
|
|
3279
3286
|
onClick: (k) => f(m)
|
|
3280
3287
|
}, {
|
|
3281
|
-
default:
|
|
3282
|
-
G(
|
|
3288
|
+
default: q(() => [
|
|
3289
|
+
G(L(i(m)), 1)
|
|
3283
3290
|
]),
|
|
3284
3291
|
_: 2
|
|
3285
3292
|
}, 1032, ["model-value", "icon", "icon-pack", "layout", "onClick"]))), 128))
|
|
@@ -3287,7 +3294,7 @@ const Nn = /* @__PURE__ */ Ve(On, [["render", qn]]), Hn = ["id"], Un = {
|
|
|
3287
3294
|
]);
|
|
3288
3295
|
};
|
|
3289
3296
|
}
|
|
3290
|
-
}), ua = /* @__PURE__ */
|
|
3297
|
+
}), ua = /* @__PURE__ */ U(ra, [["__scopeId", "data-v-9c9770f7"]]), ca = {
|
|
3291
3298
|
key: 0,
|
|
3292
3299
|
class: "extra-actions__container"
|
|
3293
3300
|
}, da = ["onClick"], pa = { class: "extra-action__name" }, va = /* @__PURE__ */ z({
|
|
@@ -3318,7 +3325,7 @@ const Nn = /* @__PURE__ */ Ve(On, [["render", qn]]), Hn = ["id"], Un = {
|
|
|
3318
3325
|
},
|
|
3319
3326
|
emits: ["click", "action"],
|
|
3320
3327
|
setup(e, { emit: o }) {
|
|
3321
|
-
const t = e, n = o, l =
|
|
3328
|
+
const t = e, n = o, l = M(!1), i = "main", a = c(() => {
|
|
3322
3329
|
var v;
|
|
3323
3330
|
return !!((v = t.dropdownButtonActions) != null && v.length);
|
|
3324
3331
|
}), p = c(() => {
|
|
@@ -3343,11 +3350,11 @@ const Nn = /* @__PURE__ */ Ve(On, [["render", qn]]), Hn = ["id"], Un = {
|
|
|
3343
3350
|
class: "dropdown-btn__outer",
|
|
3344
3351
|
onMouseleave: r[2] || (r[2] = (h) => l.value = !1)
|
|
3345
3352
|
}, [
|
|
3346
|
-
|
|
3353
|
+
H(_e, Ae(p.value, {
|
|
3347
3354
|
onClick: r[0] || (r[0] = (h) => f(h))
|
|
3348
3355
|
}), {
|
|
3349
|
-
default:
|
|
3350
|
-
|
|
3356
|
+
default: q(() => [
|
|
3357
|
+
O(v.$slots, "default", {}, void 0, !0)
|
|
3351
3358
|
]),
|
|
3352
3359
|
_: 3
|
|
3353
3360
|
}, 16),
|
|
@@ -3356,9 +3363,9 @@ const Nn = /* @__PURE__ */ Ve(On, [["render", qn]]), Hn = ["id"], Un = {
|
|
|
3356
3363
|
class: "dropdown-btn__chevron-area",
|
|
3357
3364
|
onClick: r[1] || (r[1] = (h) => l.value = !l.value)
|
|
3358
3365
|
}, [
|
|
3359
|
-
|
|
3360
|
-
default:
|
|
3361
|
-
|
|
3366
|
+
H(_e, Jt(Xt(u.value)), {
|
|
3367
|
+
default: q(() => [
|
|
3368
|
+
H(X, {
|
|
3362
3369
|
icon: "angle-down",
|
|
3363
3370
|
size: "xs"
|
|
3364
3371
|
})
|
|
@@ -3366,17 +3373,17 @@ const Nn = /* @__PURE__ */ Ve(On, [["render", qn]]), Hn = ["id"], Un = {
|
|
|
3366
3373
|
_: 1
|
|
3367
3374
|
}, 16)
|
|
3368
3375
|
])) : C("", !0),
|
|
3369
|
-
|
|
3370
|
-
default:
|
|
3376
|
+
H(Qt, { name: "fade" }, {
|
|
3377
|
+
default: q(() => [
|
|
3371
3378
|
l.value ? (d(), g("div", ca, [
|
|
3372
|
-
(d(!0), g(J, null,
|
|
3379
|
+
(d(!0), g(J, null, se(e.dropdownButtonActions, (h) => (d(), g("div", {
|
|
3373
3380
|
key: h.id,
|
|
3374
3381
|
class: "extra-action__item",
|
|
3375
|
-
style:
|
|
3382
|
+
style: E({ color: u.value.textColor }),
|
|
3376
3383
|
onClick: (m) => s(h.id)
|
|
3377
3384
|
}, [
|
|
3378
|
-
w("span", pa,
|
|
3379
|
-
|
|
3385
|
+
w("span", pa, L(h.name), 1),
|
|
3386
|
+
H(X, {
|
|
3380
3387
|
icon: "angle-left",
|
|
3381
3388
|
size: "xs"
|
|
3382
3389
|
})
|
|
@@ -3387,7 +3394,7 @@ const Nn = /* @__PURE__ */ Ve(On, [["render", qn]]), Hn = ["id"], Un = {
|
|
|
3387
3394
|
})
|
|
3388
3395
|
], 32));
|
|
3389
3396
|
}
|
|
3390
|
-
}), fa = /* @__PURE__ */
|
|
3397
|
+
}), fa = /* @__PURE__ */ U(va, [["__scopeId", "data-v-04843c9d"]]), ma = {
|
|
3391
3398
|
key: 0,
|
|
3392
3399
|
class: "ck-card__header-title"
|
|
3393
3400
|
}, ha = { class: "ck-card__body" }, ga = {
|
|
@@ -3405,7 +3412,7 @@ const Nn = /* @__PURE__ */ Ve(On, [["render", qn]]), Hn = ["id"], Un = {
|
|
|
3405
3412
|
},
|
|
3406
3413
|
emits: ["update:modelValue", "closeCard"],
|
|
3407
3414
|
setup(e, { emit: o }) {
|
|
3408
|
-
const t = e, n = o, { cleekOptions: l } =
|
|
3415
|
+
const t = e, n = o, { cleekOptions: l } = ne(le()), i = c(() => typeof t.modelValue < "u"), a = c({
|
|
3409
3416
|
get() {
|
|
3410
3417
|
return !i.value || t.modelValue === null ? !0 : !!t.modelValue;
|
|
3411
3418
|
},
|
|
@@ -3420,34 +3427,34 @@ const Nn = /* @__PURE__ */ Ve(On, [["render", qn]]), Hn = ["id"], Un = {
|
|
|
3420
3427
|
const s = Y("ck-icon");
|
|
3421
3428
|
return a.value ? (d(), g("div", {
|
|
3422
3429
|
key: 0,
|
|
3423
|
-
class:
|
|
3430
|
+
class: P(["ck-card", p.value])
|
|
3424
3431
|
}, [
|
|
3425
3432
|
e.title || u.$slots.header || i.value ? (d(), g("div", {
|
|
3426
3433
|
key: 0,
|
|
3427
|
-
class:
|
|
3434
|
+
class: P(["ck-card__header", { "is-close-button-visible": i.value }])
|
|
3428
3435
|
}, [
|
|
3429
|
-
e.title || u.$slots.header ? (d(), g("div", ma,
|
|
3430
|
-
|
|
3436
|
+
e.title || u.$slots.header ? (d(), g("div", ma, L(e.title), 1)) : C("", !0),
|
|
3437
|
+
O(u.$slots, "header", {}, void 0, !0),
|
|
3431
3438
|
i.value ? (d(), g("div", {
|
|
3432
3439
|
key: 1,
|
|
3433
3440
|
class: "ck-card__close-btn",
|
|
3434
3441
|
onClick: f[0] || (f[0] = (v) => a.value = !1)
|
|
3435
3442
|
}, [
|
|
3436
|
-
|
|
3443
|
+
H(s, { icon: "times" })
|
|
3437
3444
|
])) : C("", !0)
|
|
3438
3445
|
], 2)) : C("", !0),
|
|
3439
3446
|
w("div", ha, [
|
|
3440
|
-
e.subtitle ? (d(), g("div", ga,
|
|
3447
|
+
e.subtitle ? (d(), g("div", ga, L(e.subtitle), 1)) : C("", !0),
|
|
3441
3448
|
w("div", {
|
|
3442
|
-
class:
|
|
3449
|
+
class: P(["ck-card__content", { "content-block": e.block }])
|
|
3443
3450
|
}, [
|
|
3444
|
-
|
|
3451
|
+
O(u.$slots, "default", {}, void 0, !0)
|
|
3445
3452
|
], 2)
|
|
3446
3453
|
])
|
|
3447
3454
|
], 2)) : C("", !0);
|
|
3448
3455
|
};
|
|
3449
3456
|
}
|
|
3450
|
-
}), ba = /* @__PURE__ */
|
|
3457
|
+
}), ba = /* @__PURE__ */ U(ka, [["__scopeId", "data-v-780265b9"]]), ya = ["color"], gt = "white", Ca = "primary", wa = "s", $a = "outlined", xa = "rounded", _a = /* @__PURE__ */ z({
|
|
3451
3458
|
__name: "ck-chip",
|
|
3452
3459
|
props: {
|
|
3453
3460
|
size: {},
|
|
@@ -3465,37 +3472,37 @@ const Nn = /* @__PURE__ */ Ve(On, [["render", qn]]), Hn = ["id"], Un = {
|
|
|
3465
3472
|
},
|
|
3466
3473
|
emits: ["click"],
|
|
3467
3474
|
setup(e, { emit: o }) {
|
|
3468
|
-
const t = e, { windowWidth: n } =
|
|
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(() => {
|
|
3469
3476
|
const r = [];
|
|
3470
|
-
return p.value === "outlined" ? r.push("type--outlined") : p.value === "shadow" ? r.push("type--shadow") :
|
|
3477
|
+
return p.value === "outlined" ? r.push("type--outlined") : p.value === "shadow" ? r.push("type--shadow") : A.isColorTemplateVariable(u.value) && r.push(`ck-component__bg-color--${u.value}`), a.value && r.push(`layout--${a.value}`), r.push(A.getGroupClass(t, n.value)), r.push(`size-${t.size || wa}`), t.align && r.push(`align--${t.align}`), t.nowrap && r.push(`ck-chip--${t.nowrap}`), t.clickable && r.push("clickable"), r;
|
|
3471
3478
|
});
|
|
3472
3479
|
function s(r) {
|
|
3473
|
-
return
|
|
3480
|
+
return A.isColorTemplateVariable(r) ? A.getColorHexFromTemplateVariable(r, l.value.colors) : r;
|
|
3474
3481
|
}
|
|
3475
3482
|
const v = c(() => {
|
|
3476
3483
|
const r = [], h = s(u.value);
|
|
3477
3484
|
if (r.push({ "--chip-bg": h }), p.value === "outlined") {
|
|
3478
3485
|
const m = s(t.textColor || u.value);
|
|
3479
3486
|
r.push({ borderColor: h }), r.push({ color: m });
|
|
3480
|
-
} else p.value === "shadow" ? (
|
|
3487
|
+
} else p.value === "shadow" ? (A.isColorTemplateVariable(u.value) || r.push({ backgroundColor: u.value }), r.push({ color: t.textColor || gt })) : (A.isColorTemplateVariable(u.value) || r.push({ backgroundColor: u.value }), r.push({ color: t.textColor || gt }));
|
|
3481
3488
|
return r;
|
|
3482
3489
|
});
|
|
3483
3490
|
return (r, h) => (d(), g("div", {
|
|
3484
|
-
class:
|
|
3491
|
+
class: P(["ck-chip", f.value]),
|
|
3485
3492
|
color: e.color,
|
|
3486
|
-
style:
|
|
3493
|
+
style: E(v.value),
|
|
3487
3494
|
onClick: h[0] || (h[0] = (m) => i("click", m))
|
|
3488
3495
|
}, [
|
|
3489
|
-
e.icon ? (d(),
|
|
3496
|
+
e.icon ? (d(), S(X, {
|
|
3490
3497
|
key: 0,
|
|
3491
3498
|
class: "pr-2",
|
|
3492
3499
|
icon: e.icon,
|
|
3493
3500
|
"icon-pack": e.iconPack
|
|
3494
3501
|
}, null, 8, ["icon", "icon-pack"])) : C("", !0),
|
|
3495
3502
|
w("span", null, [
|
|
3496
|
-
|
|
3503
|
+
O(r.$slots, "default", {}, void 0, !0)
|
|
3497
3504
|
]),
|
|
3498
|
-
e.iconRight ? (d(),
|
|
3505
|
+
e.iconRight ? (d(), S(X, {
|
|
3499
3506
|
key: 1,
|
|
3500
3507
|
class: "pl-2",
|
|
3501
3508
|
icon: e.iconRight,
|
|
@@ -3503,7 +3510,7 @@ const Nn = /* @__PURE__ */ Ve(On, [["render", qn]]), Hn = ["id"], Un = {
|
|
|
3503
3510
|
}, null, 8, ["icon", "icon-pack"])) : C("", !0)
|
|
3504
3511
|
], 14, ya));
|
|
3505
3512
|
}
|
|
3506
|
-
}), Ba = /* @__PURE__ */
|
|
3513
|
+
}), Ba = /* @__PURE__ */ U(_a, [["__scopeId", "data-v-2ad8cd7f"]]), Ta = "primary", Va = "m", Da = "white", Sa = /* @__PURE__ */ z({
|
|
3507
3514
|
__name: "ck-circle",
|
|
3508
3515
|
props: {
|
|
3509
3516
|
size: {},
|
|
@@ -3518,28 +3525,28 @@ const Nn = /* @__PURE__ */ Ve(On, [["render", qn]]), Hn = ["id"], Un = {
|
|
|
3518
3525
|
const t = e, n = o, l = c(() => {
|
|
3519
3526
|
const a = [];
|
|
3520
3527
|
let p = t.size;
|
|
3521
|
-
return t.size !== "s" && t.size !== "l" && t.size !== "xs" && (p =
|
|
3528
|
+
return t.size !== "s" && t.size !== "l" && t.size !== "xs" && (p = Va), a.push(`ck-circle__size-${p}`), a.push(`ck-component__bg-color--${t.color || Ta}`), a;
|
|
3522
3529
|
}), i = c(() => {
|
|
3523
3530
|
const a = [];
|
|
3524
|
-
return t.sizeInPx && (a.push({ height: t.sizeInPx }), a.push({ width: t.sizeInPx })), (t.color ||
|
|
3531
|
+
return t.sizeInPx && (a.push({ height: t.sizeInPx }), a.push({ width: t.sizeInPx })), (t.color || A.isColorTemplateVariable(t.color)) && (a.push({ backgroundColor: t.color }), a.push({ color: t.textColor || Da })), a;
|
|
3525
3532
|
});
|
|
3526
3533
|
return (a, p) => {
|
|
3527
3534
|
const u = Y("ck-icon");
|
|
3528
3535
|
return d(), g("div", {
|
|
3529
|
-
class:
|
|
3530
|
-
style:
|
|
3536
|
+
class: P(["ck-circle", l.value]),
|
|
3537
|
+
style: E(i.value),
|
|
3531
3538
|
onClick: p[0] || (p[0] = (f) => n("click", f))
|
|
3532
3539
|
}, [
|
|
3533
|
-
e.icon ? (d(),
|
|
3540
|
+
e.icon ? (d(), S(u, {
|
|
3534
3541
|
key: 0,
|
|
3535
3542
|
icon: e.icon,
|
|
3536
3543
|
"icon-pack": e.iconPack
|
|
3537
3544
|
}, null, 8, ["icon", "icon-pack"])) : C("", !0),
|
|
3538
|
-
|
|
3545
|
+
O(a.$slots, "default", {}, void 0, !0)
|
|
3539
3546
|
], 6);
|
|
3540
3547
|
};
|
|
3541
3548
|
}
|
|
3542
|
-
}), La = /* @__PURE__ */
|
|
3549
|
+
}), La = /* @__PURE__ */ U(Sa, [["__scopeId", "data-v-309b5dd5"]]), Pa = /* @__PURE__ */ z({
|
|
3543
3550
|
__name: "ck-div",
|
|
3544
3551
|
props: {
|
|
3545
3552
|
widthBreaks: {},
|
|
@@ -3548,10 +3555,10 @@ const Nn = /* @__PURE__ */ Ve(On, [["render", qn]]), Hn = ["id"], Un = {
|
|
|
3548
3555
|
},
|
|
3549
3556
|
emits: ["click"],
|
|
3550
3557
|
setup(e, { emit: o }) {
|
|
3551
|
-
const t = e, n = o, { cleekOptions: l } =
|
|
3558
|
+
const t = e, n = o, { cleekOptions: l } = ne(le()), { windowWidth: i } = ye(), a = c(() => {
|
|
3552
3559
|
const p = [];
|
|
3553
3560
|
if (t.widthBreaks) {
|
|
3554
|
-
const f =
|
|
3561
|
+
const f = A.getWidthByWidthBreaks(t.widthBreaks, i.value);
|
|
3555
3562
|
f && p.push({ width: f });
|
|
3556
3563
|
}
|
|
3557
3564
|
const u = t.gap || l.value.div.gap;
|
|
@@ -3559,10 +3566,10 @@ const Nn = /* @__PURE__ */ Ve(On, [["render", qn]]), Hn = ["id"], Un = {
|
|
|
3559
3566
|
});
|
|
3560
3567
|
return (p, u) => (d(), g("div", {
|
|
3561
3568
|
class: "ck-div",
|
|
3562
|
-
style:
|
|
3569
|
+
style: E(a.value),
|
|
3563
3570
|
onClick: u[0] || (u[0] = (f) => n("click", f))
|
|
3564
3571
|
}, [
|
|
3565
|
-
|
|
3572
|
+
O(p.$slots, "default")
|
|
3566
3573
|
], 4));
|
|
3567
3574
|
}
|
|
3568
3575
|
}), Aa = {
|
|
@@ -3587,14 +3594,14 @@ const Nn = /* @__PURE__ */ Ve(On, [["render", qn]]), Hn = ["id"], Un = {
|
|
|
3587
3594
|
},
|
|
3588
3595
|
emits: ["click"],
|
|
3589
3596
|
setup(e, { emit: o }) {
|
|
3590
|
-
const t = e, n = o, { cleekOptions: l } =
|
|
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(() => {
|
|
3591
3598
|
const m = [];
|
|
3592
|
-
return t.size && m.push(`ck-img__size--${t.size}`), t.rounded && m.push("is-rounded"), t.hasBorder && (m.push("ck-img__has-border"),
|
|
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(r.value) && m.push(`ck-component__border-color--${r.value}`)), t.zoom && m.push("zoom-able"), m;
|
|
3593
3600
|
}), s = c(() => {
|
|
3594
3601
|
const m = [];
|
|
3595
3602
|
t.sizeAbsolute && (m.push({ width: t.sizeAbsolute }), m.push({ height: t.sizeAbsolute }));
|
|
3596
3603
|
let k = t.radius;
|
|
3597
|
-
return typeof t.radius > "u" && l.value.styles.layout === "squared" && (k = "0px"), k && m.push({ "border-radius": k }), t.hasBorder && (
|
|
3604
|
+
return typeof t.radius > "u" && l.value.styles.layout === "squared" && (k = "0px"), k && m.push({ "border-radius": k }), t.hasBorder && (A.isColorTemplateVariable(r.value) || m.push({ "border-color": r.value })), m;
|
|
3598
3605
|
}), v = c(() => {
|
|
3599
3606
|
const m = [];
|
|
3600
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;
|
|
@@ -3603,22 +3610,22 @@ const Nn = /* @__PURE__ */ Ve(On, [["render", qn]]), Hn = ["id"], Un = {
|
|
|
3603
3610
|
let k = l.value.img.basePath;
|
|
3604
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}`;
|
|
3605
3612
|
}
|
|
3606
|
-
return
|
|
3613
|
+
return $e(() => {
|
|
3607
3614
|
a.value = !0;
|
|
3608
3615
|
}), (m, k) => (d(), g("div", {
|
|
3609
|
-
class:
|
|
3610
|
-
style:
|
|
3616
|
+
class: P(["ck-img", f.value]),
|
|
3617
|
+
style: E(s.value),
|
|
3611
3618
|
onClick: k[1] || (k[1] = (b) => n("click", b))
|
|
3612
3619
|
}, [
|
|
3613
3620
|
w("img", {
|
|
3614
3621
|
src: u.value,
|
|
3615
|
-
style:
|
|
3622
|
+
style: E(v.value),
|
|
3616
3623
|
alt: e.alt,
|
|
3617
3624
|
onError: k[0] || (k[0] = (b) => i.value = !0)
|
|
3618
3625
|
}, null, 44, Ma)
|
|
3619
3626
|
], 6));
|
|
3620
3627
|
}
|
|
3621
|
-
}), za = /* @__PURE__ */
|
|
3628
|
+
}), za = /* @__PURE__ */ U(Ia, [["__scopeId", "data-v-485e840f"]]), Ra = ["onKeyup"], Oa = ["name", "value", "disabled"], Wa = {
|
|
3622
3629
|
key: 0,
|
|
3623
3630
|
class: "c-Radio__label"
|
|
3624
3631
|
}, Ea = /* @__PURE__ */ z({
|
|
@@ -3659,19 +3666,19 @@ const Nn = /* @__PURE__ */ Ve(On, [["render", qn]]), Hn = ["id"], Un = {
|
|
|
3659
3666
|
function u(f, s) {
|
|
3660
3667
|
l.value = f.value, n("change", l.value);
|
|
3661
3668
|
}
|
|
3662
|
-
return (f, s) => (d(!0), g(J, null,
|
|
3669
|
+
return (f, s) => (d(!0), g(J, null, se(a.value, (v, r) => (d(), g("label", Ae({
|
|
3663
3670
|
key: `radio-${r}`,
|
|
3664
3671
|
class: "ck-radio"
|
|
3665
3672
|
}, { ref_for: !0 }, i.value, {
|
|
3666
3673
|
class: p.value,
|
|
3667
|
-
onKeydown: s[1] || (s[1] =
|
|
3674
|
+
onKeydown: s[1] || (s[1] = be(ie(() => {
|
|
3668
3675
|
}, ["prevent"]), ["space"])),
|
|
3669
3676
|
onKeyup: [
|
|
3670
|
-
|
|
3671
|
-
|
|
3677
|
+
be((h) => u(v), ["enter"]),
|
|
3678
|
+
be((h) => u(v), ["space"])
|
|
3672
3679
|
]
|
|
3673
3680
|
}), [
|
|
3674
|
-
|
|
3681
|
+
re(w("input", {
|
|
3675
3682
|
"onUpdate:modelValue": s[0] || (s[0] = (h) => l.value = h),
|
|
3676
3683
|
class: "c-Radio__input",
|
|
3677
3684
|
"aria-hidden": "true",
|
|
@@ -3683,10 +3690,10 @@ const Nn = /* @__PURE__ */ Ve(On, [["render", qn]]), Hn = ["id"], Un = {
|
|
|
3683
3690
|
[eo, l.value]
|
|
3684
3691
|
]),
|
|
3685
3692
|
s[2] || (s[2] = w("div", { class: "c-Radio__element" }, null, -1)),
|
|
3686
|
-
v.label ? (d(), g("span", Wa,
|
|
3693
|
+
v.label ? (d(), g("span", Wa, L(v.label), 1)) : C("", !0)
|
|
3687
3694
|
], 16, Ra))), 128));
|
|
3688
3695
|
}
|
|
3689
|
-
}), Fa = /* @__PURE__ */
|
|
3696
|
+
}), Fa = /* @__PURE__ */ U(Ea, [["__scopeId", "data-v-2884e5c3"]]);
|
|
3690
3697
|
function qa(e, o) {
|
|
3691
3698
|
const t = (n) => {
|
|
3692
3699
|
var i;
|
|
@@ -3697,7 +3704,7 @@ function qa(e, o) {
|
|
|
3697
3704
|
}
|
|
3698
3705
|
window[n]("scroll", o);
|
|
3699
3706
|
};
|
|
3700
|
-
|
|
3707
|
+
$e(() => t("addEventListener")), ot(() => t("removeEventListener"));
|
|
3701
3708
|
}
|
|
3702
3709
|
const Na = {
|
|
3703
3710
|
key: 0,
|
|
@@ -3748,25 +3755,25 @@ const Na = {
|
|
|
3748
3755
|
setup(e, { expose: o, emit: t }) {
|
|
3749
3756
|
const n = fe(e, "modelValue"), l = e, i = t;
|
|
3750
3757
|
o({
|
|
3751
|
-
focus:
|
|
3758
|
+
focus: R,
|
|
3752
3759
|
blur: Q
|
|
3753
3760
|
});
|
|
3754
|
-
const { cleekOptions: a } =
|
|
3761
|
+
const { cleekOptions: a } = ne(le()), { windowWidth: p } = ye(), u = M(), f = M(), s = M(), v = M(), r = 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(() => {
|
|
3755
3762
|
if (m.value) return l.options;
|
|
3756
3763
|
const $ = ct(r.value).split(" ");
|
|
3757
3764
|
return l.options.filter((I) => {
|
|
3758
3765
|
const ee = ct(Z(I));
|
|
3759
|
-
return $.every((
|
|
3766
|
+
return $.every((N) => ee.includes(N));
|
|
3760
3767
|
});
|
|
3761
|
-
}),
|
|
3768
|
+
}), F = c(() => D.value.length), K = c(() => {
|
|
3762
3769
|
if (h.value && b.value)
|
|
3763
3770
|
return Z(b.value);
|
|
3764
|
-
}), oe = c(() => l.disabled || _.value),
|
|
3771
|
+
}), oe = c(() => l.disabled || _.value), ae = c(() => {
|
|
3765
3772
|
var $;
|
|
3766
3773
|
if (typeof l.clearValue < "u") return l.clearValue;
|
|
3767
3774
|
if (($ = a.value.select) != null && $.clearValue) return a.value.select.clearValue;
|
|
3768
3775
|
}), de = c(() => {
|
|
3769
|
-
if (
|
|
3776
|
+
if (ae.value) return ae.value;
|
|
3770
3777
|
const $ = n.value;
|
|
3771
3778
|
switch (typeof $) {
|
|
3772
3779
|
case "number":
|
|
@@ -3778,58 +3785,58 @@ const Na = {
|
|
|
3778
3785
|
default:
|
|
3779
3786
|
return null;
|
|
3780
3787
|
}
|
|
3781
|
-
}),
|
|
3788
|
+
}), ge = c(() => {
|
|
3782
3789
|
const $ = n.value;
|
|
3783
|
-
return
|
|
3784
|
-
}), x = c(() => l.isLoading ? "Cargando..." : _.value ? l.emptyOptionsMsg : l.placeholder),
|
|
3785
|
-
() => (_.value ||
|
|
3786
|
-
),
|
|
3790
|
+
return ae.value ? $ === ae.value : typeof $ == "number" ? $ === 0 : typeof $ == "string" ? $ === "" : typeof $ == "object" && $ ? Array.isArray($) ? $.length === 0 : Object.keys($).length === 0 : $ === null;
|
|
3791
|
+
}), x = c(() => l.isLoading ? "Cargando..." : _.value ? l.emptyOptionsMsg : l.placeholder), B = c(
|
|
3792
|
+
() => (_.value || ge.value) && !r.value && x.value || l.isLoading
|
|
3793
|
+
), j = c(() => oe.value || l.notClearable ? !1 : !ge.value), pe = c(() => {
|
|
3787
3794
|
const $ = [];
|
|
3788
3795
|
return l.icon && $.push("has-icon-left"), l.iconRight && $.push("has-icon-right"), $;
|
|
3789
|
-
}),
|
|
3796
|
+
}), ce = c(() => {
|
|
3790
3797
|
const $ = [];
|
|
3791
3798
|
let I = !1;
|
|
3792
3799
|
if (l.widthBreaks) {
|
|
3793
|
-
const ee =
|
|
3800
|
+
const ee = A.getWidthByWidthBreaks(l.widthBreaks, p.value);
|
|
3794
3801
|
ee && ($.push({ width: ee }), I = !0);
|
|
3795
3802
|
}
|
|
3796
3803
|
return !I && l.minWidth && $.push({ "min-width": l.minWidth }), l.width && $.push({ width: l.width }), $;
|
|
3797
|
-
}),
|
|
3804
|
+
}), Ce = c(() => {
|
|
3798
3805
|
const $ = [];
|
|
3799
|
-
$.push(
|
|
3806
|
+
$.push(A.getGroupClass(l, p.value));
|
|
3800
3807
|
const I = l.layout || a.value.styles.layout;
|
|
3801
|
-
I && $.push(I),
|
|
3808
|
+
I && $.push(I), j.value && $.push("clearable");
|
|
3802
3809
|
const ee = l.borderColor || a.value.styles.borderColor;
|
|
3803
|
-
return ee &&
|
|
3810
|
+
return ee && A.isColorTemplateVariable(ee) && $.push(`ck-component__border-color--${ee}`), $;
|
|
3804
3811
|
}), me = c(() => {
|
|
3805
3812
|
const $ = [], I = l.borderColor || a.value.styles.borderColor;
|
|
3806
|
-
I && !
|
|
3813
|
+
I && !A.isColorTemplateVariable(I) && $.push({ "border-color": I });
|
|
3807
3814
|
let ee = "";
|
|
3808
|
-
a.value.select.backgroundColor && (ee = a.value.select.backgroundColor), a.value.darkMode && (ee = a.value.darkModeColorItems), ee && !
|
|
3809
|
-
let
|
|
3810
|
-
return a.value.darkMode && (
|
|
3815
|
+
a.value.select.backgroundColor && (ee = a.value.select.backgroundColor), a.value.darkMode && (ee = a.value.darkModeColorItems), ee && !A.isColorTemplateVariable(ee) && $.push({ backgroundColor: ee });
|
|
3816
|
+
let N = a.value.popup.textColor;
|
|
3817
|
+
return a.value.darkMode && (N = a.value.darkModeColorText), N && (A.isColorTemplateVariable(N) ? $.push(`ck-component__color--${N}`) : $.push({ color: N })), $;
|
|
3811
3818
|
}), V = c(() => {
|
|
3812
3819
|
const $ = [];
|
|
3813
3820
|
let I = a.value.popup.textColor;
|
|
3814
|
-
return a.value.darkMode && (I = a.value.darkModeColorText), I && (
|
|
3821
|
+
return a.value.darkMode && (I = a.value.darkModeColorText), I && (A.isColorTemplateVariable(I) ? $.push(`ck-component__color--${I}`) : $.push({ color: I })), $;
|
|
3815
3822
|
});
|
|
3816
|
-
|
|
3823
|
+
ue(() => b.value, () => je()), ue(() => F.value, ($) => {
|
|
3817
3824
|
k.value !== -1 && (k.value + 1 <= $ || (k.value = $ - 1));
|
|
3818
|
-
}),
|
|
3825
|
+
}), ue(() => s.value, ($) => {
|
|
3819
3826
|
$ && (v.value = { display: "none" }, setTimeout(() => {
|
|
3820
|
-
const I = document.documentElement.clientHeight, ee = document.documentElement.clientWidth,
|
|
3821
|
-
Ie ?
|
|
3827
|
+
const I = document.documentElement.clientHeight, ee = document.documentElement.clientWidth, N = f.value.getBoundingClientRect(), ke = {}, Ie = N.top < I / 2;
|
|
3828
|
+
Ie ? ke.top = `${N.bottom}px` : ke.bottom = `${I - N.top}px`, ke.left = `${N.left}px`, ke.right = `${ee - N.right}px`;
|
|
3822
3829
|
const at = 100;
|
|
3823
|
-
|
|
3830
|
+
ke["max-height"] = Ie ? `${I - N.top - at}px` : `${N.bottom - at}px`, ke.display = "block", v.value = ke;
|
|
3824
3831
|
}, 150));
|
|
3825
3832
|
});
|
|
3826
|
-
function
|
|
3833
|
+
function T($) {
|
|
3827
3834
|
return l.reduceValueFunction ? l.reduceValueFunction($) : l.notReduceValue || l.notReduce ? $ : l.reduceValueMethod ? $[l.reduceValueMethod]() : $[l.reduceValueProp];
|
|
3828
3835
|
}
|
|
3829
3836
|
function Z($) {
|
|
3830
3837
|
return l.reduceNameFunction ? l.reduceNameFunction($) : l.notReduceName || l.notReduce ? $ : l.reduceNameMethod ? $[l.reduceNameMethod]() : $[l.reduceNameProp];
|
|
3831
3838
|
}
|
|
3832
|
-
function
|
|
3839
|
+
function R() {
|
|
3833
3840
|
var $, I;
|
|
3834
3841
|
($ = u.value) == null || $.focus(), (I = f.value) == null || I.focus();
|
|
3835
3842
|
}
|
|
@@ -3847,14 +3854,14 @@ const Na = {
|
|
|
3847
3854
|
m.value = !1;
|
|
3848
3855
|
}
|
|
3849
3856
|
function It($) {
|
|
3850
|
-
const I =
|
|
3857
|
+
const I = F.value;
|
|
3851
3858
|
if ($ === "ArrowDown")
|
|
3852
3859
|
k.value = k.value + 1 >= I ? 0 : k.value + 1;
|
|
3853
3860
|
else if ($ === "ArrowUp")
|
|
3854
3861
|
k.value = k.value <= 0 ? I - 1 : k.value - 1;
|
|
3855
3862
|
else if ($ === "Enter") {
|
|
3856
3863
|
const ee = k.value >= 0 ? k.value : 0;
|
|
3857
|
-
Ue(
|
|
3864
|
+
Ue(T(D.value[ee])), Q();
|
|
3858
3865
|
}
|
|
3859
3866
|
}
|
|
3860
3867
|
function Ue($) {
|
|
@@ -3869,8 +3876,8 @@ const Na = {
|
|
|
3869
3876
|
}
|
|
3870
3877
|
function Rt() {
|
|
3871
3878
|
if (b.value) {
|
|
3872
|
-
const $ =
|
|
3873
|
-
k.value = $.findIndex((I) =>
|
|
3879
|
+
const $ = D.value;
|
|
3880
|
+
k.value = $.findIndex((I) => T(I) === T(b.value));
|
|
3874
3881
|
} else
|
|
3875
3882
|
k.value = -1;
|
|
3876
3883
|
}
|
|
@@ -3880,106 +3887,106 @@ const Na = {
|
|
|
3880
3887
|
}), je(), ($, I) => {
|
|
3881
3888
|
const ee = Y("ck-button");
|
|
3882
3889
|
return d(), g("div", {
|
|
3883
|
-
class:
|
|
3884
|
-
style:
|
|
3890
|
+
class: P(["ck-select", pe.value]),
|
|
3891
|
+
style: E(ce.value)
|
|
3885
3892
|
}, [
|
|
3886
|
-
e.label ? (d(),
|
|
3893
|
+
e.label ? (d(), S(Me, {
|
|
3887
3894
|
key: 0,
|
|
3888
3895
|
align: e.labelAlign,
|
|
3889
3896
|
for: "ck-select"
|
|
3890
3897
|
}, {
|
|
3891
|
-
default:
|
|
3892
|
-
G(
|
|
3898
|
+
default: q(() => [
|
|
3899
|
+
G(L(e.label) + " ", 1),
|
|
3893
3900
|
e.optional ? (d(), g("span", Na, "opcional")) : C("", !0)
|
|
3894
3901
|
]),
|
|
3895
3902
|
_: 1
|
|
3896
3903
|
}, 8, ["align"])) : C("", !0),
|
|
3897
|
-
|
|
3904
|
+
W.value ? re((d(), g("select", {
|
|
3898
3905
|
key: 1,
|
|
3899
3906
|
id: "ck-select",
|
|
3900
3907
|
ref_key: "selectRef",
|
|
3901
3908
|
ref: u,
|
|
3902
|
-
"onUpdate:modelValue": I[0] || (I[0] = (
|
|
3909
|
+
"onUpdate:modelValue": I[0] || (I[0] = (N) => n.value = N),
|
|
3903
3910
|
tabindex: "0",
|
|
3904
|
-
class:
|
|
3905
|
-
style:
|
|
3911
|
+
class: P(Ce.value),
|
|
3912
|
+
style: E(me.value),
|
|
3906
3913
|
disabled: oe.value,
|
|
3907
|
-
onChange: I[1] || (I[1] = (
|
|
3908
|
-
onClick: I[2] || (I[2] = (
|
|
3914
|
+
onChange: I[1] || (I[1] = (N) => i("change", n.value)),
|
|
3915
|
+
onClick: I[2] || (I[2] = (N) => i("click", N))
|
|
3909
3916
|
}, [
|
|
3910
|
-
(d(!0), g(J, null,
|
|
3911
|
-
key:
|
|
3912
|
-
value:
|
|
3913
|
-
style:
|
|
3914
|
-
},
|
|
3917
|
+
(d(!0), g(J, null, se(e.options, (N) => (d(), g("option", {
|
|
3918
|
+
key: N,
|
|
3919
|
+
value: T(N),
|
|
3920
|
+
style: E(V.value)
|
|
3921
|
+
}, L(Z(N)), 13, Ua))), 128))
|
|
3915
3922
|
], 46, Ha)), [
|
|
3916
3923
|
[to, n.value]
|
|
3917
|
-
]) :
|
|
3924
|
+
]) : re((d(), g("input", {
|
|
3918
3925
|
key: 2,
|
|
3919
3926
|
id: "ck-select",
|
|
3920
3927
|
ref_key: "inputRef",
|
|
3921
3928
|
ref: f,
|
|
3922
|
-
"onUpdate:modelValue": I[3] || (I[3] = (
|
|
3929
|
+
"onUpdate:modelValue": I[3] || (I[3] = (N) => r.value = N),
|
|
3923
3930
|
tabindex: "0",
|
|
3924
|
-
class:
|
|
3925
|
-
style:
|
|
3931
|
+
class: P(Ce.value),
|
|
3932
|
+
style: E(me.value),
|
|
3926
3933
|
placeholder: K.value,
|
|
3927
3934
|
disabled: oe.value,
|
|
3928
3935
|
autocomplete: "off",
|
|
3929
|
-
onClick: I[4] || (I[4] = (
|
|
3930
|
-
onFocus: I[5] || (I[5] = (
|
|
3931
|
-
onBlur: I[6] || (I[6] = (
|
|
3932
|
-
onInput: I[7] || (I[7] = (
|
|
3933
|
-
onKeydown: I[8] || (I[8] = (
|
|
3936
|
+
onClick: I[4] || (I[4] = (N) => i("click", N)),
|
|
3937
|
+
onFocus: I[5] || (I[5] = (N) => He()),
|
|
3938
|
+
onBlur: I[6] || (I[6] = (N) => At()),
|
|
3939
|
+
onInput: I[7] || (I[7] = (N) => Mt()),
|
|
3940
|
+
onKeydown: I[8] || (I[8] = (N) => It(N.key))
|
|
3934
3941
|
}, null, 46, ja)), [
|
|
3935
3942
|
[qe, r.value]
|
|
3936
3943
|
]),
|
|
3937
|
-
(d(),
|
|
3938
|
-
h.value &&
|
|
3944
|
+
(d(), S(Pe, { to: "body" }, [
|
|
3945
|
+
h.value && D.value.length ? (d(), g("ul", {
|
|
3939
3946
|
key: 0,
|
|
3940
3947
|
ref_key: "dropdownRef",
|
|
3941
3948
|
ref: s,
|
|
3942
3949
|
class: "ck-input-dropdown",
|
|
3943
|
-
style:
|
|
3950
|
+
style: E(v.value)
|
|
3944
3951
|
}, [
|
|
3945
|
-
(d(!0), g(J, null,
|
|
3946
|
-
key:
|
|
3947
|
-
class:
|
|
3948
|
-
"dropdown--option__selected":
|
|
3949
|
-
"dropdown--option__index-selected":
|
|
3952
|
+
(d(!0), g(J, null, se(D.value, (N, ke) => (d(), g("li", {
|
|
3953
|
+
key: T(N),
|
|
3954
|
+
class: P(["dropdown--option", {
|
|
3955
|
+
"dropdown--option__selected": T(N) === n.value,
|
|
3956
|
+
"dropdown--option__index-selected": ke === k.value
|
|
3950
3957
|
}]),
|
|
3951
|
-
onMousedown: (Ie) => Ue(
|
|
3952
|
-
onMouseenter: (Ie) => k.value =
|
|
3953
|
-
},
|
|
3958
|
+
onMousedown: (Ie) => Ue(T(N)),
|
|
3959
|
+
onMouseenter: (Ie) => k.value = ke
|
|
3960
|
+
}, L(Z(N)), 43, Ga))), 128))
|
|
3954
3961
|
], 4)) : C("", !0)
|
|
3955
3962
|
])),
|
|
3956
|
-
|
|
3963
|
+
B.value ? (d(), g("span", {
|
|
3957
3964
|
key: 3,
|
|
3958
3965
|
class: "ck-select--placeholder",
|
|
3959
|
-
textContent:
|
|
3966
|
+
textContent: L(x.value)
|
|
3960
3967
|
}, null, 8, Ya)) : C("", !0),
|
|
3961
|
-
e.icon ? (d(),
|
|
3968
|
+
e.icon ? (d(), S(X, {
|
|
3962
3969
|
key: 4,
|
|
3963
3970
|
class: "ck-select--icon-left",
|
|
3964
3971
|
icon: e.icon,
|
|
3965
3972
|
"icon-pack": e.iconPack,
|
|
3966
3973
|
color: e.iconColor
|
|
3967
3974
|
}, null, 8, ["icon", "icon-pack", "color"])) : C("", !0),
|
|
3968
|
-
e.iconRight ? (d(),
|
|
3975
|
+
e.iconRight ? (d(), S(X, {
|
|
3969
3976
|
key: 5,
|
|
3970
3977
|
class: "ck-select--icon-right",
|
|
3971
3978
|
icon: e.iconRight,
|
|
3972
3979
|
"icon-pack": e.iconPack,
|
|
3973
3980
|
color: e.iconColor
|
|
3974
3981
|
}, null, 8, ["icon", "icon-pack", "color"])) : C("", !0),
|
|
3975
|
-
|
|
3982
|
+
j.value ? (d(), S(ee, {
|
|
3976
3983
|
key: 6,
|
|
3977
3984
|
class: "ck-select--btn",
|
|
3978
3985
|
size: "s",
|
|
3979
3986
|
icon: "times",
|
|
3980
3987
|
type: "flat",
|
|
3981
|
-
onClick: I[9] || (I[9] = (
|
|
3982
|
-
})) : oe.value ? C("", !0) : (d(),
|
|
3988
|
+
onClick: I[9] || (I[9] = (N) => zt())
|
|
3989
|
+
})) : oe.value ? C("", !0) : (d(), S(ee, {
|
|
3983
3990
|
key: 7,
|
|
3984
3991
|
tabindex: "-1",
|
|
3985
3992
|
class: "ck-select--btn",
|
|
@@ -3991,7 +3998,7 @@ const Na = {
|
|
|
3991
3998
|
], 6);
|
|
3992
3999
|
};
|
|
3993
4000
|
}
|
|
3994
|
-
}), Za = /* @__PURE__ */
|
|
4001
|
+
}), Za = /* @__PURE__ */ U(Ka, [["__scopeId", "data-v-945ede7c"]]), Ja = {
|
|
3995
4002
|
key: 0,
|
|
3996
4003
|
class: "sidebar-header-title"
|
|
3997
4004
|
}, Xa = {
|
|
@@ -4029,54 +4036,54 @@ const Na = {
|
|
|
4029
4036
|
}), i = c(() => {
|
|
4030
4037
|
const u = [];
|
|
4031
4038
|
let f = t.closeBtnAlign;
|
|
4032
|
-
return t.notCloseBtn && (f = "hidden"), f && u.push(`close-btn--${f}`), t.headerAlign && u.push(`align-title--${t.headerAlign}`), t.headerColor &&
|
|
4039
|
+
return t.notCloseBtn && (f = "hidden"), f && u.push(`close-btn--${f}`), t.headerAlign && u.push(`align-title--${t.headerAlign}`), t.headerColor && A.isColorTemplateVariable(t.headerColor) && u.push(`ck-component__bg-color--${t.headerColor}`), t.headerColor && u.push(`align-title--${t.headerColor}`), u;
|
|
4033
4040
|
}), a = c(() => {
|
|
4034
4041
|
const u = [];
|
|
4035
|
-
return t.headerColor && !
|
|
4042
|
+
return t.headerColor && !A.isColorTemplateVariable(t.headerColor) && u.push({ "background-color": t.headerColor }), u;
|
|
4036
4043
|
}), p = c(() => t.closeBtnIcon ? t.closeBtnIcon : "times");
|
|
4037
|
-
return
|
|
4044
|
+
return ue(() => o.value, (u) => Lt(!u)), (u, f) => {
|
|
4038
4045
|
const s = Y("ck-icon");
|
|
4039
4046
|
return o.value ? (d(), g("div", {
|
|
4040
4047
|
key: 0,
|
|
4041
4048
|
class: "ck-sidebar-background",
|
|
4042
|
-
onClick: f[1] || (f[1] =
|
|
4049
|
+
onClick: f[1] || (f[1] = ie((v) => o.value = !1, ["self"]))
|
|
4043
4050
|
}, [
|
|
4044
4051
|
w("div", {
|
|
4045
|
-
class:
|
|
4046
|
-
style:
|
|
4052
|
+
class: P(["ck-sidebar", n.value]),
|
|
4053
|
+
style: E(l.value)
|
|
4047
4054
|
}, [
|
|
4048
|
-
|
|
4055
|
+
O(u.$slots, "header", {}, void 0, !0),
|
|
4049
4056
|
e.title ? (d(), g("div", {
|
|
4050
4057
|
key: 0,
|
|
4051
|
-
class:
|
|
4052
|
-
style:
|
|
4058
|
+
class: P(["sidebar-header", i.value]),
|
|
4059
|
+
style: E(a.value),
|
|
4053
4060
|
onClick: f[0] || (f[0] = (v) => o.value = !1)
|
|
4054
4061
|
}, [
|
|
4055
|
-
e.title ? (d(), g("div", Ja,
|
|
4056
|
-
e.notCloseBtn ? (d(),
|
|
4062
|
+
e.title ? (d(), g("div", Ja, L(e.title), 1)) : C("", !0),
|
|
4063
|
+
e.notCloseBtn ? (d(), S(s, {
|
|
4057
4064
|
key: 1,
|
|
4058
4065
|
class: "close-btn",
|
|
4059
4066
|
icon: p.value
|
|
4060
4067
|
}, null, 8, ["icon"])) : C("", !0)
|
|
4061
4068
|
], 6)) : C("", !0),
|
|
4062
4069
|
e.isLoading ? (d(), g("div", Xa, [
|
|
4063
|
-
|
|
4070
|
+
H(s, {
|
|
4064
4071
|
icon: "spinner",
|
|
4065
4072
|
size: "xxl",
|
|
4066
4073
|
spin: "",
|
|
4067
4074
|
color: "primary"
|
|
4068
4075
|
})
|
|
4069
4076
|
])) : (d(), g("div", Qa, [
|
|
4070
|
-
|
|
4077
|
+
O(u.$slots, "default", {}, void 0, !0)
|
|
4071
4078
|
])),
|
|
4072
4079
|
u.$slots.footer ? (d(), g("div", ei, [
|
|
4073
|
-
|
|
4080
|
+
O(u.$slots, "footer", {}, void 0, !0)
|
|
4074
4081
|
])) : C("", !0)
|
|
4075
4082
|
], 6)
|
|
4076
4083
|
])) : C("", !0);
|
|
4077
4084
|
};
|
|
4078
4085
|
}
|
|
4079
|
-
}), oi = /* @__PURE__ */
|
|
4086
|
+
}), oi = /* @__PURE__ */ U(ti, [["__scopeId", "data-v-f042f7fb"]]), li = { key: 1 }, ni = ["disabled"], ai = { class: "ck-switch__slider-container" }, ii = { key: 1 }, Je = "s", si = "m", ri = /* @__PURE__ */ z({
|
|
4080
4087
|
__name: "ck-switch",
|
|
4081
4088
|
props: /* @__PURE__ */ te({
|
|
4082
4089
|
preventAutoUpdate: { type: Boolean },
|
|
@@ -4099,7 +4106,7 @@ const Na = {
|
|
|
4099
4106
|
}),
|
|
4100
4107
|
emits: /* @__PURE__ */ te(["click"], ["update:modelValue"]),
|
|
4101
4108
|
setup(e, { emit: o }) {
|
|
4102
|
-
const t = fe(e, "modelValue"), n = e, l = o, { cleekOptions: i } =
|
|
4109
|
+
const t = fe(e, "modelValue"), n = e, l = o, { cleekOptions: i } = ne(le()), a = c(() => {
|
|
4103
4110
|
const r = [];
|
|
4104
4111
|
n.squared && r.push("is-squared"), n.outlined && r.push("is-outlined"), n.color && r.push(`--${n.color}`);
|
|
4105
4112
|
const h = n.size || Je;
|
|
@@ -4112,10 +4119,10 @@ const Na = {
|
|
|
4112
4119
|
return n.size && n.size !== Je && r.push(`ck-switch__icon-size--${n.size}`), r;
|
|
4113
4120
|
}), f = c(() => {
|
|
4114
4121
|
const r = [];
|
|
4115
|
-
return i.value.darkMode && r.push({ color: i.value.darkModeColorText }), n.size && n.size !== Je && r.push(`ck-switch__icon-size--${n.size}`), n.colorText && !
|
|
4122
|
+
return i.value.darkMode && r.push({ color: i.value.darkModeColorText }), n.size && n.size !== Je && r.push(`ck-switch__icon-size--${n.size}`), n.colorText && !A.isColorTemplateVariable(n.colorText) && r.push({ color: n.colorText }), r;
|
|
4116
4123
|
}), s = c(() => {
|
|
4117
4124
|
const r = [];
|
|
4118
|
-
return n.textSize && n.textSize !== si && r.push(`ck-switch__text-size--${n.textSize}`), n.colorText &&
|
|
4125
|
+
return n.textSize && n.textSize !== si && r.push(`ck-switch__text-size--${n.textSize}`), n.colorText && A.isColorTemplateVariable(n.colorText) && r.push(`ck-component__color--${n.colorText}`), r;
|
|
4119
4126
|
});
|
|
4120
4127
|
function v(r) {
|
|
4121
4128
|
if (!n.disabled) {
|
|
@@ -4130,35 +4137,35 @@ const Na = {
|
|
|
4130
4137
|
class: ["ck-switch", a.value],
|
|
4131
4138
|
onClick: h[1] || (h[1] = (m) => v(m)),
|
|
4132
4139
|
onKeydown: [
|
|
4133
|
-
h[2] || (h[2] =
|
|
4140
|
+
h[2] || (h[2] = be(ie((m) => {
|
|
4134
4141
|
t.value = !t.value, l("click");
|
|
4135
4142
|
}, ["prevent"]), ["space"])),
|
|
4136
|
-
h[3] || (h[3] =
|
|
4143
|
+
h[3] || (h[3] = be(ie((m) => {
|
|
4137
4144
|
t.value = !t.value, l("click");
|
|
4138
4145
|
}, ["prevent"]), ["enter"]))
|
|
4139
4146
|
]
|
|
4140
4147
|
}), [
|
|
4141
4148
|
(r.$slots.default || e.label || e.labelIcon || e.labelIconRight) && e.switchSide === "right" ? (d(), g("span", {
|
|
4142
4149
|
key: 0,
|
|
4143
|
-
class:
|
|
4144
|
-
style:
|
|
4150
|
+
class: P(["ck-switch__content", s.value]),
|
|
4151
|
+
style: E(f.value)
|
|
4145
4152
|
}, [
|
|
4146
|
-
e.labelIcon ? (d(),
|
|
4153
|
+
e.labelIcon ? (d(), S(X, {
|
|
4147
4154
|
key: 0,
|
|
4148
4155
|
icon: e.labelIcon,
|
|
4149
4156
|
"icon-pack": e.iconPack,
|
|
4150
4157
|
class: "ck-switch__label-icon"
|
|
4151
4158
|
}, null, 8, ["icon", "icon-pack"])) : C("", !0),
|
|
4152
|
-
e.label ? (d(), g("span", li,
|
|
4153
|
-
e.labelIconRight ? (d(),
|
|
4159
|
+
e.label ? (d(), g("span", li, L(e.label), 1)) : C("", !0),
|
|
4160
|
+
e.labelIconRight ? (d(), S(X, {
|
|
4154
4161
|
key: 2,
|
|
4155
4162
|
icon: e.labelIconRight,
|
|
4156
4163
|
"icon-pack": e.iconPack,
|
|
4157
4164
|
class: "ck-switch__label-icon"
|
|
4158
4165
|
}, null, 8, ["icon", "icon-pack"])) : C("", !0),
|
|
4159
|
-
|
|
4166
|
+
O(r.$slots, "default", {}, void 0, !0)
|
|
4160
4167
|
], 6)) : C("", !0),
|
|
4161
|
-
|
|
4168
|
+
re(w("input", {
|
|
4162
4169
|
"onUpdate:modelValue": h[0] || (h[0] = (m) => t.value = m),
|
|
4163
4170
|
class: "ck-switch__input",
|
|
4164
4171
|
type: "checkbox",
|
|
@@ -4169,42 +4176,42 @@ const Na = {
|
|
|
4169
4176
|
]),
|
|
4170
4177
|
w("div", ai, [
|
|
4171
4178
|
h[4] || (h[4] = w("div", { class: "ck-switch__slider" }, null, -1)),
|
|
4172
|
-
e.icon && t.value ? (d(),
|
|
4179
|
+
e.icon && t.value ? (d(), S(X, {
|
|
4173
4180
|
key: 0,
|
|
4174
|
-
class:
|
|
4181
|
+
class: P(["ck-switch__icon-left", u.value]),
|
|
4175
4182
|
icon: e.icon,
|
|
4176
4183
|
"icon-pack": e.iconPack
|
|
4177
4184
|
}, null, 8, ["icon", "icon-pack", "class"])) : C("", !0),
|
|
4178
|
-
e.icon && !t.value ? (d(),
|
|
4185
|
+
e.icon && !t.value ? (d(), S(X, {
|
|
4179
4186
|
key: 1,
|
|
4180
|
-
class:
|
|
4187
|
+
class: P(["ck-switch__icon-right", u.value]),
|
|
4181
4188
|
icon: e.icon,
|
|
4182
4189
|
"icon-pack": e.iconPack
|
|
4183
4190
|
}, null, 8, ["icon", "icon-pack", "class"])) : C("", !0)
|
|
4184
4191
|
]),
|
|
4185
4192
|
(r.$slots.default || e.label || e.labelIcon || e.labelIconRight) && e.switchSide !== "right" ? (d(), g("span", {
|
|
4186
4193
|
key: 1,
|
|
4187
|
-
class:
|
|
4188
|
-
style:
|
|
4194
|
+
class: P(["ck-switch__content", s.value]),
|
|
4195
|
+
style: E(f.value)
|
|
4189
4196
|
}, [
|
|
4190
|
-
e.labelIcon ? (d(),
|
|
4197
|
+
e.labelIcon ? (d(), S(X, {
|
|
4191
4198
|
key: 0,
|
|
4192
4199
|
icon: e.labelIcon,
|
|
4193
4200
|
"icon-pack": e.iconPack,
|
|
4194
4201
|
class: "ck-switch__label-icon"
|
|
4195
4202
|
}, null, 8, ["icon", "icon-pack"])) : C("", !0),
|
|
4196
|
-
e.label ? (d(), g("span", ii,
|
|
4197
|
-
e.labelIconRight ? (d(),
|
|
4203
|
+
e.label ? (d(), g("span", ii, L(e.label), 1)) : C("", !0),
|
|
4204
|
+
e.labelIconRight ? (d(), S(X, {
|
|
4198
4205
|
key: 2,
|
|
4199
4206
|
icon: e.labelIconRight,
|
|
4200
4207
|
"icon-pack": e.iconPack,
|
|
4201
4208
|
class: "ck-switch__label-icon"
|
|
4202
4209
|
}, null, 8, ["icon", "icon-pack"])) : C("", !0),
|
|
4203
|
-
|
|
4210
|
+
O(r.$slots, "default", {}, void 0, !0)
|
|
4204
4211
|
], 6)) : C("", !0)
|
|
4205
4212
|
], 16));
|
|
4206
4213
|
}
|
|
4207
|
-
}), ui = /* @__PURE__ */
|
|
4214
|
+
}), ui = /* @__PURE__ */ U(ri, [["__scopeId", "data-v-825f3e32"]]), ci = { class: "ck-switch-options" }, di = ["onClick", "onKeyup"], pi = /* @__PURE__ */ z({
|
|
4208
4215
|
__name: "ck-switch-options",
|
|
4209
4216
|
props: /* @__PURE__ */ te({
|
|
4210
4217
|
options: {},
|
|
@@ -4229,9 +4236,9 @@ const Na = {
|
|
|
4229
4236
|
}),
|
|
4230
4237
|
emits: /* @__PURE__ */ te(["change"], ["update:modelValue"]),
|
|
4231
4238
|
setup(e, { emit: o }) {
|
|
4232
|
-
const t = fe(e, "modelValue"), n = e, l = o, { windowWidth: i } =
|
|
4239
|
+
const t = fe(e, "modelValue"), n = e, l = o, { windowWidth: i } = ye(), a = c(() => {
|
|
4233
4240
|
const v = [];
|
|
4234
|
-
return v.push(
|
|
4241
|
+
return v.push(A.getGroupClass(n, i.value)), v;
|
|
4235
4242
|
}), p = c(() => {
|
|
4236
4243
|
const v = [];
|
|
4237
4244
|
return n.sameWidthOptions && v.push({ width: `${100 / (n.options || []).length}%` }), v;
|
|
@@ -4249,38 +4256,38 @@ const Na = {
|
|
|
4249
4256
|
return (v, r) => {
|
|
4250
4257
|
const h = Y("ck-icon");
|
|
4251
4258
|
return d(), g("div", ci, [
|
|
4252
|
-
e.label ? (d(),
|
|
4259
|
+
e.label ? (d(), S(Me, {
|
|
4253
4260
|
key: 0,
|
|
4254
4261
|
align: e.labelAlign
|
|
4255
4262
|
}, {
|
|
4256
|
-
default:
|
|
4257
|
-
G(
|
|
4263
|
+
default: q(() => [
|
|
4264
|
+
G(L(e.label), 1)
|
|
4258
4265
|
]),
|
|
4259
4266
|
_: 1
|
|
4260
4267
|
}, 8, ["align"])) : C("", !0),
|
|
4261
4268
|
w("div", {
|
|
4262
|
-
class:
|
|
4269
|
+
class: P(["switch-options--options", a.value])
|
|
4263
4270
|
}, [
|
|
4264
|
-
(d(!0), g(J, null,
|
|
4271
|
+
(d(!0), g(J, null, se(e.options, (m, k) => (d(), g("div", {
|
|
4265
4272
|
key: k,
|
|
4266
4273
|
tabindex: "0",
|
|
4267
|
-
class:
|
|
4268
|
-
style:
|
|
4274
|
+
class: P(["options--option", { selected: u(m) === t.value }]),
|
|
4275
|
+
style: E(p.value),
|
|
4269
4276
|
onClick: (b) => s(m),
|
|
4270
|
-
onKeyup:
|
|
4277
|
+
onKeyup: be((b) => s(m), ["enter"])
|
|
4271
4278
|
}, [
|
|
4272
|
-
m.icon ? (d(),
|
|
4279
|
+
m.icon ? (d(), S(h, {
|
|
4273
4280
|
key: 0,
|
|
4274
4281
|
class: "option--icon",
|
|
4275
4282
|
icon: m.icon
|
|
4276
4283
|
}, null, 8, ["icon"])) : C("", !0),
|
|
4277
|
-
G(" " +
|
|
4284
|
+
G(" " + L(f(m)), 1)
|
|
4278
4285
|
], 46, di))), 128))
|
|
4279
4286
|
], 2)
|
|
4280
4287
|
]);
|
|
4281
4288
|
};
|
|
4282
4289
|
}
|
|
4283
|
-
}), vi = /* @__PURE__ */
|
|
4290
|
+
}), vi = /* @__PURE__ */ U(pi, [["__scopeId", "data-v-c323f4fa"]]), fi = { class: "ck-textarea" }, mi = {
|
|
4284
4291
|
key: 0,
|
|
4285
4292
|
class: "ck-textarea__optional-label"
|
|
4286
4293
|
}, hi = ["placeholder", "disabled"], gi = 300, ki = /* @__PURE__ */ z({
|
|
@@ -4309,7 +4316,7 @@ const Na = {
|
|
|
4309
4316
|
},
|
|
4310
4317
|
emits: ["update:modelValue", "input", "change", "click", "changeDelayed"],
|
|
4311
4318
|
setup(e, { emit: o }) {
|
|
4312
|
-
const t = e, n = o, { cleekOptions: l } =
|
|
4319
|
+
const t = e, n = o, { cleekOptions: l } = ne(le()), i = M(), { windowWidth: a } = ye(), p = c({
|
|
4313
4320
|
get() {
|
|
4314
4321
|
return t.modelValue;
|
|
4315
4322
|
},
|
|
@@ -4320,11 +4327,11 @@ const Na = {
|
|
|
4320
4327
|
const m = [], k = t.layout || l.value.styles.layout;
|
|
4321
4328
|
k && m.push(k);
|
|
4322
4329
|
const b = t.borderColor || l.value.styles.borderColor;
|
|
4323
|
-
return b &&
|
|
4330
|
+
return b && A.isColorTemplateVariable(b) && m.push(`ck-component__border-color--${b}`), m.push(A.getGroupClass(t, a.value)), m;
|
|
4324
4331
|
}), f = c(() => {
|
|
4325
4332
|
var y;
|
|
4326
4333
|
const m = [], k = t.borderColor || ((y = l.value.styles) == null ? void 0 : y.borderColor);
|
|
4327
|
-
k && !
|
|
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 });
|
|
4328
4335
|
const b = t.resize ? t.resize : "none";
|
|
4329
4336
|
return b && m.push({ resize: b || "both" }), m;
|
|
4330
4337
|
}), s = (m) => {
|
|
@@ -4341,24 +4348,24 @@ const Na = {
|
|
|
4341
4348
|
}, t.delayChangeTime || gi);
|
|
4342
4349
|
}
|
|
4343
4350
|
return (m, k) => (d(), g("div", fi, [
|
|
4344
|
-
e.label ? (d(),
|
|
4351
|
+
e.label ? (d(), S(Me, {
|
|
4345
4352
|
key: 0,
|
|
4346
4353
|
align: e.labelAlign
|
|
4347
4354
|
}, {
|
|
4348
|
-
default:
|
|
4349
|
-
G(
|
|
4355
|
+
default: q(() => [
|
|
4356
|
+
G(L(e.label) + " ", 1),
|
|
4350
4357
|
e.optional ? (d(), g("span", mi, "opcional")) : C("", !0)
|
|
4351
4358
|
]),
|
|
4352
4359
|
_: 1
|
|
4353
4360
|
}, 8, ["align"])) : C("", !0),
|
|
4354
|
-
|
|
4361
|
+
re(w("textarea", {
|
|
4355
4362
|
ref_key: "refTextarea",
|
|
4356
4363
|
ref: i,
|
|
4357
4364
|
"onUpdate:modelValue": k[0] || (k[0] = (b) => p.value = b),
|
|
4358
4365
|
placeholder: e.placeholder,
|
|
4359
4366
|
disabled: e.disabled,
|
|
4360
|
-
class:
|
|
4361
|
-
style:
|
|
4367
|
+
class: P(u.value),
|
|
4368
|
+
style: E(f.value),
|
|
4362
4369
|
onClick: k[1] || (k[1] = (b) => s(b)),
|
|
4363
4370
|
onInput: k[2] || (k[2] = (b) => v(b)),
|
|
4364
4371
|
onChange: k[3] || (k[3] = (b) => r(b))
|
|
@@ -4367,7 +4374,7 @@ const Na = {
|
|
|
4367
4374
|
])
|
|
4368
4375
|
]));
|
|
4369
4376
|
}
|
|
4370
|
-
}), bi = /* @__PURE__ */
|
|
4377
|
+
}), bi = /* @__PURE__ */ U(ki, [["__scopeId", "data-v-369059e0"]]), yi = ["onClick"], Ci = { class: "ck-tile-picker__tile-name" }, wi = {
|
|
4371
4378
|
key: 1,
|
|
4372
4379
|
class: "ck-tile-picker__tile-description"
|
|
4373
4380
|
}, $i = 4, xi = /* @__PURE__ */ z({
|
|
@@ -4389,11 +4396,11 @@ const Na = {
|
|
|
4389
4396
|
}),
|
|
4390
4397
|
emits: /* @__PURE__ */ te(["change"], ["update:modelValue"]),
|
|
4391
4398
|
setup(e, { emit: o }) {
|
|
4392
|
-
const t = fe(e, "modelValue"), n = e, l = o, i =
|
|
4399
|
+
const t = fe(e, "modelValue"), n = e, l = o, i = M(!t.value), a = c(() => n.options.find((v) => v.id === t.value) ?? null), p = c(() => i.value || !a.value ? n.options : [a.value]), u = c(() => {
|
|
4393
4400
|
if (i.value)
|
|
4394
4401
|
return n.size === "l" && !n.columns ? { "grid-template-columns": "repeat(auto-fit, minmax(220px, 1fr))" } : { "grid-template-columns": `repeat(${n.columns || $i}, 1fr)` };
|
|
4395
4402
|
});
|
|
4396
|
-
|
|
4403
|
+
ue(t, (v) => {
|
|
4397
4404
|
i.value = !v;
|
|
4398
4405
|
});
|
|
4399
4406
|
function f(v) {
|
|
@@ -4417,36 +4424,36 @@ const Na = {
|
|
|
4417
4424
|
return (v, r) => {
|
|
4418
4425
|
const h = Y("ck-label"), m = Y("ck-icon"), k = tt("tooltip");
|
|
4419
4426
|
return d(), g("div", {
|
|
4420
|
-
class:
|
|
4427
|
+
class: P(["ck-tile-picker", { "ck-tile-picker--size-l": e.size === "l" }])
|
|
4421
4428
|
}, [
|
|
4422
|
-
e.label ? (d(),
|
|
4429
|
+
e.label ? (d(), S(h, {
|
|
4423
4430
|
key: 0,
|
|
4424
4431
|
align: e.labelAlign
|
|
4425
4432
|
}, {
|
|
4426
|
-
default:
|
|
4427
|
-
G(
|
|
4433
|
+
default: q(() => [
|
|
4434
|
+
G(L(e.label), 1)
|
|
4428
4435
|
]),
|
|
4429
4436
|
_: 1
|
|
4430
4437
|
}, 8, ["align"])) : C("", !0),
|
|
4431
4438
|
w("div", {
|
|
4432
|
-
class:
|
|
4433
|
-
style:
|
|
4439
|
+
class: P(["ck-tile-picker__grid", { "ck-tile-picker__grid--collapsed": !i.value }]),
|
|
4440
|
+
style: E(u.value)
|
|
4434
4441
|
}, [
|
|
4435
|
-
(d(!0), g(J, null,
|
|
4442
|
+
(d(!0), g(J, null, se(p.value, (b) => re((d(), g("button", {
|
|
4436
4443
|
key: b.id,
|
|
4437
|
-
class:
|
|
4444
|
+
class: P(["ck-tile-picker__tile", { "ck-tile-picker__tile--selected": b.id === t.value, "ck-tile-picker__tile--disabled": e.disabled }]),
|
|
4438
4445
|
type: "button",
|
|
4439
4446
|
onClick: (y) => s(b)
|
|
4440
4447
|
}, [
|
|
4441
|
-
b.icon ? (d(),
|
|
4448
|
+
b.icon ? (d(), S(m, {
|
|
4442
4449
|
key: 0,
|
|
4443
4450
|
class: "ck-tile-picker__tile-icon",
|
|
4444
4451
|
color: e.iconColor,
|
|
4445
4452
|
icon: b.icon,
|
|
4446
4453
|
"icon-pack": e.iconPack
|
|
4447
4454
|
}, null, 8, ["color", "icon", "icon-pack"])) : C("", !0),
|
|
4448
|
-
w("span", Ci,
|
|
4449
|
-
e.size === "l" && b.description ? (d(), g("span", wi,
|
|
4455
|
+
w("span", Ci, L(b.name), 1),
|
|
4456
|
+
e.size === "l" && b.description ? (d(), g("span", wi, L(b.description), 1)) : C("", !0)
|
|
4450
4457
|
], 10, yi)), [
|
|
4451
4458
|
[k, f(b)]
|
|
4452
4459
|
])), 128)),
|
|
@@ -4456,21 +4463,21 @@ const Na = {
|
|
|
4456
4463
|
type: "button",
|
|
4457
4464
|
onClick: r[0] || (r[0] = (b) => i.value = !0)
|
|
4458
4465
|
}, [
|
|
4459
|
-
|
|
4466
|
+
H(m, {
|
|
4460
4467
|
size: "xs",
|
|
4461
4468
|
icon: "arrows-rotate"
|
|
4462
4469
|
}),
|
|
4463
|
-
G(" " +
|
|
4470
|
+
G(" " + L(e.changeLabel || "Cambiar"), 1)
|
|
4464
4471
|
])) : C("", !0)
|
|
4465
4472
|
], 6)
|
|
4466
4473
|
], 2);
|
|
4467
4474
|
};
|
|
4468
4475
|
}
|
|
4469
|
-
}), _i = /* @__PURE__ */
|
|
4476
|
+
}), _i = /* @__PURE__ */ U(xi, [["__scopeId", "data-v-5d7559c8"]]), Bi = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2027.7.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='Capa_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20100%20100'%20style='enable-background:new%200%200%20100%20100;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e%20.st0{fill:%23EA4B4B;}%20%3c/style%3e%3cg%3e%3cg%3e%3cg%3e%3crect%20x='45'%20y='64.9'%20class='st0'%20width='10'%20height='10.2'/%3e%3c/g%3e%3c/g%3e%3cg%3e%3cg%3e%3crect%20x='45'%20y='24.9'%20class='st0'%20width='10'%20height='30.2'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3cpath%20class='st0'%20d='M69.2,16.7L88.5,50L69.2,83.3H30.8L11.5,50l19.2-33.3H69.2%20M75,6.7H25L0,50l25,43.3h50L100,50L75,6.7L75,6.7z'%20/%3e%3c/svg%3e", Ti = { class: "ck-confirm--background" }, Vi = { class: "ck-confirm" }, Di = { class: "ck-confirm__title" }, Si = { class: "ck-confirm__message" }, Li = { class: "ck-confirm__buttons-container" }, Pi = /* @__PURE__ */ z({
|
|
4470
4477
|
__name: "CkConfirm",
|
|
4471
4478
|
setup(e, { expose: o }) {
|
|
4472
|
-
const t =
|
|
4473
|
-
}), p =
|
|
4479
|
+
const t = M(""), n = M(""), l = M(""), i = M(""), a = M(() => {
|
|
4480
|
+
}), p = M(() => {
|
|
4474
4481
|
}), u = c(() => "¿Estás seguro?"), f = c(() => "Aceptar"), s = c(() => "Cancelar");
|
|
4475
4482
|
function v() {
|
|
4476
4483
|
p.value();
|
|
@@ -4485,39 +4492,39 @@ const Na = {
|
|
|
4485
4492
|
cancelText: i,
|
|
4486
4493
|
responseSuccess: a,
|
|
4487
4494
|
responseFailure: p
|
|
4488
|
-
}), (h, m) => (d(), g("div",
|
|
4489
|
-
w("div",
|
|
4495
|
+
}), (h, m) => (d(), g("div", Ti, [
|
|
4496
|
+
w("div", Vi, [
|
|
4490
4497
|
m[2] || (m[2] = w("div", { class: "ck-confirm__icon" }, [
|
|
4491
4498
|
w("img", {
|
|
4492
4499
|
src: Bi,
|
|
4493
4500
|
height: "125"
|
|
4494
4501
|
})
|
|
4495
4502
|
], -1)),
|
|
4496
|
-
w("div", Di,
|
|
4497
|
-
w("div", Si,
|
|
4503
|
+
w("div", Di, L(t.value || u.value), 1),
|
|
4504
|
+
w("div", Si, L(n.value), 1),
|
|
4498
4505
|
w("div", Li, [
|
|
4499
4506
|
w("button", {
|
|
4500
4507
|
class: "ck-confirm__button--cancel",
|
|
4501
4508
|
onClick: m[0] || (m[0] = (k) => v())
|
|
4502
|
-
},
|
|
4509
|
+
}, L(i.value || s.value), 1),
|
|
4503
4510
|
w("button", {
|
|
4504
4511
|
class: "ck-confirm__button--accept",
|
|
4505
4512
|
onClick: m[1] || (m[1] = (k) => r())
|
|
4506
|
-
},
|
|
4513
|
+
}, L(l.value || f.value), 1)
|
|
4507
4514
|
])
|
|
4508
4515
|
])
|
|
4509
4516
|
]));
|
|
4510
4517
|
}
|
|
4511
|
-
}), Ai = /* @__PURE__ */
|
|
4518
|
+
}), Ai = /* @__PURE__ */ U(Pi, [["__scopeId", "data-v-cf9f68e0"]]), Mi = { class: "alert--msg" }, Ii = /* @__PURE__ */ z({
|
|
4512
4519
|
__name: "CkAlert",
|
|
4513
4520
|
setup(e, { expose: o }) {
|
|
4514
|
-
const t =
|
|
4521
|
+
const t = M(""), n = M(""), l = M(""), i = M(!0), a = c(() => "Atención"), p = c(() => "Aceptar");
|
|
4515
4522
|
return o({
|
|
4516
4523
|
title: t,
|
|
4517
4524
|
msg: n,
|
|
4518
4525
|
acceptText: l
|
|
4519
|
-
}), (u, f) => (d(),
|
|
4520
|
-
|
|
4526
|
+
}), (u, f) => (d(), S(Pe, { to: "body" }, [
|
|
4527
|
+
H(lt, {
|
|
4521
4528
|
modelValue: i.value,
|
|
4522
4529
|
"onUpdate:modelValue": f[0] || (f[0] = (s) => i.value = s),
|
|
4523
4530
|
"accept-button": "",
|
|
@@ -4529,20 +4536,20 @@ const Na = {
|
|
|
4529
4536
|
"accept-btn-text": l.value || p.value,
|
|
4530
4537
|
onAccept: f[1] || (f[1] = (s) => i.value = !1)
|
|
4531
4538
|
}, {
|
|
4532
|
-
default:
|
|
4533
|
-
w("div", Mi,
|
|
4539
|
+
default: q(() => [
|
|
4540
|
+
w("div", Mi, L(n.value), 1)
|
|
4534
4541
|
]),
|
|
4535
4542
|
_: 1
|
|
4536
4543
|
}, 8, ["modelValue", "title", "accept-btn-text"])
|
|
4537
4544
|
]));
|
|
4538
4545
|
}
|
|
4539
|
-
}), zi = /* @__PURE__ */
|
|
4546
|
+
}), zi = /* @__PURE__ */ U(Ii, [["__scopeId", "data-v-f74e3830"]]), Ri = {
|
|
4540
4547
|
key: 0,
|
|
4541
4548
|
class: "ck-notify__container"
|
|
4542
4549
|
}, Oi = { class: "ck-notify__title" }, Wi = { class: "close-btn" }, Ei = ["innerHTML"], Fi = /* @__PURE__ */ z({
|
|
4543
4550
|
__name: "CkNotify",
|
|
4544
4551
|
setup(e, { expose: o }) {
|
|
4545
|
-
const t =
|
|
4552
|
+
const t = M(!0), n = M(""), l = M(""), i = M(""), a = M(0), p = M(() => {
|
|
4546
4553
|
});
|
|
4547
4554
|
o({
|
|
4548
4555
|
title: n,
|
|
@@ -4563,31 +4570,31 @@ const Na = {
|
|
|
4563
4570
|
return "";
|
|
4564
4571
|
}), f = c(() => {
|
|
4565
4572
|
const v = [];
|
|
4566
|
-
return i.value &&
|
|
4573
|
+
return i.value && A.isColorTemplateVariable(i.value) && v.push(`ck-component__bg-color--${i.value}`), v;
|
|
4567
4574
|
}), s = c(() => {
|
|
4568
4575
|
const v = [];
|
|
4569
|
-
return i.value && !
|
|
4576
|
+
return i.value && !A.isColorTemplateVariable(i.value) && v.push({ "background-color": i.value }), v;
|
|
4570
4577
|
});
|
|
4571
|
-
return
|
|
4578
|
+
return $e(() => {
|
|
4572
4579
|
setTimeout(() => {
|
|
4573
4580
|
setTimeout(() => {
|
|
4574
4581
|
p.value();
|
|
4575
4582
|
}, a.value);
|
|
4576
4583
|
}, 10);
|
|
4577
|
-
}), (v, r) => (d(),
|
|
4584
|
+
}), (v, r) => (d(), S(Pe, { to: "body" }, [
|
|
4578
4585
|
t.value ? (d(), g("div", Ri, [
|
|
4579
4586
|
w("div", {
|
|
4580
|
-
class:
|
|
4581
|
-
style:
|
|
4587
|
+
class: P(["ck-notify", f.value]),
|
|
4588
|
+
style: E(s.value),
|
|
4582
4589
|
onClick: r[0] || (r[0] = (h) => {
|
|
4583
4590
|
t.value = !1, p.value();
|
|
4584
4591
|
})
|
|
4585
4592
|
}, [
|
|
4586
4593
|
w("div", Oi, [
|
|
4587
4594
|
w("div", Wi, [
|
|
4588
|
-
|
|
4595
|
+
H(X, { icon: "times" })
|
|
4589
4596
|
]),
|
|
4590
|
-
G(" " +
|
|
4597
|
+
G(" " + L(n.value || u.value), 1)
|
|
4591
4598
|
]),
|
|
4592
4599
|
w("div", {
|
|
4593
4600
|
class: "ck-notify__text",
|
|
@@ -4597,7 +4604,7 @@ const Na = {
|
|
|
4597
4604
|
])) : C("", !0)
|
|
4598
4605
|
]));
|
|
4599
4606
|
}
|
|
4600
|
-
}), qi = /* @__PURE__ */
|
|
4607
|
+
}), qi = /* @__PURE__ */ U(Fi, [["__scopeId", "data-v-529d4cb1"]]), Ni = 3e3, Hi = {
|
|
4601
4608
|
alert(e) {
|
|
4602
4609
|
this.alertOptions({
|
|
4603
4610
|
title: "",
|
|
@@ -4651,19 +4658,19 @@ const Na = {
|
|
|
4651
4658
|
};
|
|
4652
4659
|
class Ui {
|
|
4653
4660
|
constructor(o) {
|
|
4654
|
-
|
|
4655
|
-
|
|
4656
|
-
|
|
4657
|
-
|
|
4658
|
-
|
|
4659
|
-
|
|
4661
|
+
we(this, "search", "");
|
|
4662
|
+
we(this, "currentPage", 1);
|
|
4663
|
+
we(this, "listLength", 0);
|
|
4664
|
+
we(this, "itemsPerPage", 20);
|
|
4665
|
+
we(this, "isLoading", !1);
|
|
4666
|
+
we(this, "isEmpty", !0);
|
|
4660
4667
|
o && (this.itemsPerPage = o);
|
|
4661
4668
|
}
|
|
4662
4669
|
}
|
|
4663
4670
|
class ji {
|
|
4664
4671
|
constructor(o, t) {
|
|
4665
|
-
|
|
4666
|
-
|
|
4672
|
+
we(this, "ids", /* @__PURE__ */ new Set([]));
|
|
4673
|
+
we(this, "toggleable", !0);
|
|
4667
4674
|
this.ids = new Set(o), t && (this.toggleable = t.toggleable);
|
|
4668
4675
|
}
|
|
4669
4676
|
getIdsAsArray() {
|
|
@@ -4725,24 +4732,24 @@ const Gi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4725
4732
|
CkTab: Jn,
|
|
4726
4733
|
CkTable: tn,
|
|
4727
4734
|
CkTabs: la,
|
|
4728
|
-
CkTd:
|
|
4735
|
+
CkTd: Vt,
|
|
4729
4736
|
CkTextarea: bi,
|
|
4730
4737
|
CkTh: sn,
|
|
4731
4738
|
CkTilePicker: _i,
|
|
4732
4739
|
CkTimeShower: Ho,
|
|
4733
4740
|
CkToggle: ia,
|
|
4734
4741
|
CkToggleGroup: ua,
|
|
4735
|
-
CkTr:
|
|
4742
|
+
CkTr: Tt,
|
|
4736
4743
|
SelectedRows: ji,
|
|
4737
4744
|
TableData: Ui,
|
|
4738
4745
|
ckNotify: Hi,
|
|
4739
|
-
useWindowWidth:
|
|
4746
|
+
useWindowWidth: ye
|
|
4740
4747
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4741
4748
|
et.add(Ft);
|
|
4742
4749
|
et.add(qt);
|
|
4743
4750
|
et.add(Nt);
|
|
4744
4751
|
function as(e, o) {
|
|
4745
|
-
le().cleekOptions =
|
|
4752
|
+
le().cleekOptions = Vo($t, o), e.use(Ao), e.use(Et, Bo), Object.entries(Gi).forEach(([t, n]) => {
|
|
4746
4753
|
e.component(t, n);
|
|
4747
4754
|
});
|
|
4748
4755
|
}
|
|
@@ -4773,18 +4780,18 @@ export {
|
|
|
4773
4780
|
Jn as CkTab,
|
|
4774
4781
|
tn as CkTable,
|
|
4775
4782
|
la as CkTabs,
|
|
4776
|
-
|
|
4783
|
+
Vt as CkTd,
|
|
4777
4784
|
bi as CkTextarea,
|
|
4778
4785
|
sn as CkTh,
|
|
4779
4786
|
_i as CkTilePicker,
|
|
4780
4787
|
Ho as CkTimeShower,
|
|
4781
4788
|
ia as CkToggle,
|
|
4782
4789
|
ua as CkToggleGroup,
|
|
4783
|
-
|
|
4790
|
+
Tt as CkTr,
|
|
4784
4791
|
ji as SelectedRows,
|
|
4785
4792
|
Ui as TableData,
|
|
4786
4793
|
Hi as ckNotify,
|
|
4787
4794
|
as as default,
|
|
4788
4795
|
le as useCleekOptionsStore,
|
|
4789
|
-
|
|
4796
|
+
ye as useWindowWidth
|
|
4790
4797
|
};
|