cleek 2.11.10 → 2.11.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.cjs.js +1 -1
- package/dist/main.css +1 -1
- package/dist/main.es.js +1158 -1128
- package/dist/types/components/ck-switch.vue.d.ts +24 -0
- package/package.json +1 -1
package/dist/main.es.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var ye = (e, o, t) => (
|
|
1
|
+
var xt = Object.defineProperty;
|
|
2
|
+
var At = (e, o, t) => o in e ? xt(e, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[o] = t;
|
|
3
|
+
var ye = (e, o, t) => (At(e, typeof o != "symbol" ? o + "" : o, t), t);
|
|
4
4
|
import zt from "floating-vue";
|
|
5
5
|
import { library as tt } from "@fortawesome/fontawesome-svg-core";
|
|
6
6
|
import { fas as Rt } from "@fortawesome/free-solid-svg-icons";
|
|
7
7
|
import { far as Wt } from "@fortawesome/free-regular-svg-icons";
|
|
8
8
|
import { fab as Ot } from "@fortawesome/free-brands-svg-icons";
|
|
9
|
-
import { ref as x, computed as d, watch as ce, defineComponent as R, resolveDirective as ht, openBlock as
|
|
9
|
+
import { ref as x, computed as d, watch as ce, defineComponent as R, resolveDirective as ht, openBlock as v, createElementBlock as k, toDisplayString as M, createTextVNode as G, createCommentVNode as C, withDirectives as ue, Fragment as K, unref as we, createElementVNode as $, onMounted as _e, withKeys as he, renderSlot as W, createBlock as D, Teleport as xe, normalizeClass as I, normalizeStyle as F, resolveComponent as Y, nextTick as gt, onBeforeUnmount as ot, mergeModels as oe, useModel as ge, withCtx as N, vModelDynamic as Et, createVNode as U, renderList as re, vModelText as Fe, mergeProps as Ae, withModifiers as se, watchEffect as Ye, resolveDynamicComponent as Nt, vShow as Ve, pushScopeId as Ft, popScopeId as jt, inject as Ht, provide as qt, onUpdated as Ut, normalizeProps as Yt, guardReactiveProps as Gt, Transition as Zt, vModelRadio as Kt, vModelSelect as Qt, vModelCheckbox as Jt, createApp as Ge } from "vue";
|
|
10
10
|
import { defineStore as Xt, storeToRefs as ae } from "pinia";
|
|
11
11
|
import { qmDate as be, qmStr as Ee, qmObj as eo } from "quantic-methods";
|
|
12
12
|
import { FontAwesomeIcon as to } from "@fortawesome/vue-fontawesome";
|
|
13
|
-
import { isValid as pe, startOfDecade as oo, endOfDecade as no, eachYearOfInterval as ao, getYear as ve, getDecade as We, isBefore as Me, isAfter as
|
|
13
|
+
import { isValid as pe, startOfDecade as oo, endOfDecade as no, eachYearOfInterval as ao, getYear as ve, getDecade as We, isBefore as Me, isAfter as Ie, subYears as kt, addYears as yt, startOfYear as lo, endOfYear as io, format as Ne, eachMonthOfInterval as so, isSameMonth as Xe, isSameYear as it, startOfMonth as bt, endOfMonth as _t, startOfWeek as ro, endOfWeek as uo, setDay as co, eachDayOfInterval as po, isSameDay as Ze, isWithinInterval as vo, subMonths as mo, addMonths as fo, set as st, isSameHour as ho, isSameMinute as go, parse as rt, startOfDay as ko, endOfDay as yo, max as bo, min as _o } from "date-fns";
|
|
14
14
|
const Co = {
|
|
15
15
|
themes: {
|
|
16
16
|
tooltip: {
|
|
@@ -30,61 +30,61 @@ function $o(e, o) {
|
|
|
30
30
|
const t = {};
|
|
31
31
|
return et(t, e), et(t, o), t;
|
|
32
32
|
}
|
|
33
|
-
var
|
|
34
|
-
function
|
|
33
|
+
var To = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
34
|
+
function Bo(e) {
|
|
35
35
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
36
36
|
}
|
|
37
37
|
var Ct = { exports: {} };
|
|
38
38
|
(function(e, o) {
|
|
39
39
|
(function(t, n) {
|
|
40
40
|
e.exports = n();
|
|
41
|
-
})(
|
|
42
|
-
var t = "__v-click-outside", n = typeof window < "u", a = typeof navigator < "u",
|
|
43
|
-
var
|
|
44
|
-
(0, r.middleware)(
|
|
45
|
-
}, c = function(r,
|
|
46
|
-
var
|
|
47
|
-
var O = typeof
|
|
48
|
-
if (!O && typeof
|
|
41
|
+
})(To, function() {
|
|
42
|
+
var t = "__v-click-outside", n = typeof window < "u", a = typeof navigator < "u", i = n && ("ontouchstart" in window || a && navigator.msMaxTouchPoints > 0) ? ["touchstart"] : ["click"], s = function(r) {
|
|
43
|
+
var m = r.event, l = r.handler;
|
|
44
|
+
(0, r.middleware)(m) && l(m);
|
|
45
|
+
}, c = function(r, m) {
|
|
46
|
+
var l = function(B) {
|
|
47
|
+
var O = typeof B == "function";
|
|
48
|
+
if (!O && typeof B != "object")
|
|
49
49
|
throw new Error("v-click-outside: Binding value must be a function or an object");
|
|
50
|
-
return { handler: O ?
|
|
50
|
+
return { handler: O ? B : B.handler, middleware: B.middleware || function(P) {
|
|
51
51
|
return P;
|
|
52
|
-
}, events:
|
|
53
|
-
}(
|
|
54
|
-
if (
|
|
55
|
-
if (r[t] =
|
|
56
|
-
return { event:
|
|
52
|
+
}, events: B.events || i, isActive: B.isActive !== !1, detectIframe: B.detectIframe !== !1, capture: !!B.capture };
|
|
53
|
+
}(m.value), g = l.handler, f = l.middleware, y = l.detectIframe, b = l.capture;
|
|
54
|
+
if (l.isActive) {
|
|
55
|
+
if (r[t] = l.events.map(function(B) {
|
|
56
|
+
return { event: B, srcTarget: document.documentElement, handler: function(O) {
|
|
57
57
|
return function(P) {
|
|
58
|
-
var
|
|
59
|
-
(le ? le.indexOf(
|
|
58
|
+
var T = P.el, S = P.event, j = P.handler, ee = P.middleware, le = S.path || S.composedPath && S.composedPath();
|
|
59
|
+
(le ? le.indexOf(T) < 0 : !T.contains(S.target)) && s({ event: S, handler: j, middleware: ee });
|
|
60
60
|
}({ el: r, event: O, handler: g, middleware: f });
|
|
61
61
|
}, capture: b };
|
|
62
|
-
}),
|
|
63
|
-
var h = { event: "blur", srcTarget: window, handler: function(
|
|
62
|
+
}), y) {
|
|
63
|
+
var h = { event: "blur", srcTarget: window, handler: function(B) {
|
|
64
64
|
return function(O) {
|
|
65
|
-
var P = O.el,
|
|
65
|
+
var P = O.el, T = O.event, S = O.handler, j = O.middleware;
|
|
66
66
|
setTimeout(function() {
|
|
67
|
-
var
|
|
68
|
-
|
|
67
|
+
var ee = document.activeElement;
|
|
68
|
+
ee && ee.tagName === "IFRAME" && !P.contains(ee) && s({ event: T, handler: S, middleware: j });
|
|
69
69
|
}, 0);
|
|
70
|
-
}({ el: r, event:
|
|
70
|
+
}({ el: r, event: B, handler: g, middleware: f });
|
|
71
71
|
}, capture: b };
|
|
72
72
|
r[t] = [].concat(r[t], [h]);
|
|
73
73
|
}
|
|
74
|
-
r[t].forEach(function(
|
|
75
|
-
var O =
|
|
74
|
+
r[t].forEach(function(B) {
|
|
75
|
+
var O = B.event, P = B.srcTarget, T = B.handler;
|
|
76
76
|
return setTimeout(function() {
|
|
77
|
-
r[t] && P.addEventListener(O,
|
|
77
|
+
r[t] && P.addEventListener(O, T, b);
|
|
78
78
|
}, 0);
|
|
79
79
|
});
|
|
80
80
|
}
|
|
81
81
|
}, u = function(r) {
|
|
82
|
-
(r[t] || []).forEach(function(
|
|
83
|
-
return
|
|
82
|
+
(r[t] || []).forEach(function(m) {
|
|
83
|
+
return m.srcTarget.removeEventListener(m.event, m.handler, m.capture);
|
|
84
84
|
}), delete r[t];
|
|
85
|
-
}, p = n ? { beforeMount: c, updated: function(r,
|
|
86
|
-
var
|
|
87
|
-
JSON.stringify(
|
|
85
|
+
}, p = n ? { beforeMount: c, updated: function(r, m) {
|
|
86
|
+
var l = m.value, g = m.oldValue;
|
|
87
|
+
JSON.stringify(l) !== JSON.stringify(g) && (u(r), c(r, { value: l }));
|
|
88
88
|
}, unmounted: u } : {};
|
|
89
89
|
return { install: function(r) {
|
|
90
90
|
r.directive("click-outside", p);
|
|
@@ -92,7 +92,7 @@ var Ct = { exports: {} };
|
|
|
92
92
|
});
|
|
93
93
|
})(Ct);
|
|
94
94
|
var Po = Ct.exports;
|
|
95
|
-
const Vo = /* @__PURE__ */
|
|
95
|
+
const Vo = /* @__PURE__ */ Bo(Po), wt = {
|
|
96
96
|
lang: "en",
|
|
97
97
|
darkMode: !1,
|
|
98
98
|
darkModeColorText: "#ccc",
|
|
@@ -163,14 +163,14 @@ function Lo(e) {
|
|
|
163
163
|
}
|
|
164
164
|
}
|
|
165
165
|
const ne = Xt("cleek-options", () => {
|
|
166
|
-
const e = x(wt), o = d(() => e.value.colors), t = d(() => e.value.styles), n = d(() => e.value.button), a = d(() => e.value.chip),
|
|
166
|
+
const e = x(wt), o = d(() => e.value.colors), t = d(() => e.value.styles), n = d(() => e.value.button), a = d(() => e.value.chip), i = d(() => e.value.div), s = d(() => e.value.img), c = d(() => e.value.popup), u = d(() => e.value.select), p = d(() => e.value.table);
|
|
167
167
|
return ce(o, (r) => Lo(r), { deep: !0, immediate: !0 }), {
|
|
168
168
|
cleekOptions: e,
|
|
169
169
|
colorsOptions: o,
|
|
170
170
|
stylesOptions: t,
|
|
171
171
|
buttonOptions: n,
|
|
172
172
|
chipOptions: a,
|
|
173
|
-
divOptions:
|
|
173
|
+
divOptions: i,
|
|
174
174
|
imgOptions: s,
|
|
175
175
|
popupOptions: c,
|
|
176
176
|
selectOptions: u,
|
|
@@ -182,7 +182,7 @@ const ne = Xt("cleek-options", () => {
|
|
|
182
182
|
}, Mo = {
|
|
183
183
|
key: 0,
|
|
184
184
|
class: "pl-1"
|
|
185
|
-
},
|
|
185
|
+
}, Io = /* @__PURE__ */ R({
|
|
186
186
|
__name: "ck-datetime-shower",
|
|
187
187
|
props: {
|
|
188
188
|
datetime: {},
|
|
@@ -194,10 +194,10 @@ const ne = Xt("cleek-options", () => {
|
|
|
194
194
|
},
|
|
195
195
|
emits: ["click"],
|
|
196
196
|
setup(e, { emit: o }) {
|
|
197
|
-
const t = e, n = o, a = d(() => t.time ? t.timeInMinutes ? be.minToHour(+t.time) : be.minToHour(+t.time) : t.datetime ? typeof t.datetime == "string" ? be.presentTime(t.datetime) : c(t.datetime) : ""),
|
|
197
|
+
const t = e, n = o, a = d(() => t.time ? t.timeInMinutes ? be.minToHour(+t.time) : be.minToHour(+t.time) : t.datetime ? typeof t.datetime == "string" ? be.presentTime(t.datetime) : c(t.datetime) : ""), i = d(() => t.date ? typeof t.date == "string" ? be.presentDate(t.date) : s(t.date) : typeof t.datetime == "string" ? be.presentDate(t.datetime) : s(t.datetime));
|
|
198
198
|
function s(u) {
|
|
199
|
-
const p = String(u.getDate()).padStart(2, "0"), r = String(u.getMonth() + 1).padStart(2, "0"),
|
|
200
|
-
return `${p}/${r}/${
|
|
199
|
+
const p = String(u.getDate()).padStart(2, "0"), r = String(u.getMonth() + 1).padStart(2, "0"), m = String(u.getFullYear()).slice(-2);
|
|
200
|
+
return `${p}/${r}/${m}`;
|
|
201
201
|
}
|
|
202
202
|
function c(u) {
|
|
203
203
|
const p = String(u.getHours()).padStart(2, "0"), r = String(u.getMinutes()).padStart(2, "0");
|
|
@@ -205,22 +205,22 @@ const ne = Xt("cleek-options", () => {
|
|
|
205
205
|
}
|
|
206
206
|
return (u, p) => {
|
|
207
207
|
const r = ht("tooltip");
|
|
208
|
-
return
|
|
208
|
+
return i.value ? u.split || u.date ? (v(), k("div", {
|
|
209
209
|
key: 1,
|
|
210
210
|
class: "ck-datetime-shower--split",
|
|
211
|
-
onClick: p[0] || (p[0] = (
|
|
211
|
+
onClick: p[0] || (p[0] = (m) => n("click", m))
|
|
212
212
|
}, [
|
|
213
|
-
G(
|
|
214
|
-
a.value ? (
|
|
215
|
-
])) : ue((
|
|
213
|
+
G(M(i.value) + " ", 1),
|
|
214
|
+
a.value ? (v(), k("span", Mo, " | " + M(a.value), 1)) : C("", !0)
|
|
215
|
+
])) : ue((v(), k("div", {
|
|
216
216
|
key: 2,
|
|
217
217
|
class: "ck-datetime-shower",
|
|
218
|
-
onClick: p[1] || (p[1] = (
|
|
218
|
+
onClick: p[1] || (p[1] = (m) => n("click", m))
|
|
219
219
|
}, [
|
|
220
|
-
G(
|
|
220
|
+
G(M(i.value), 1)
|
|
221
221
|
])), [
|
|
222
222
|
[r, a.value]
|
|
223
|
-
]) : (
|
|
223
|
+
]) : (v(), k("span", So, M(u.noDateMsg), 1));
|
|
224
224
|
};
|
|
225
225
|
}
|
|
226
226
|
});
|
|
@@ -229,18 +229,18 @@ const H = (e, o) => {
|
|
|
229
229
|
for (const [n, a] of o)
|
|
230
230
|
t[n] = a;
|
|
231
231
|
return t;
|
|
232
|
-
},
|
|
232
|
+
}, xo = /* @__PURE__ */ H(Io, [["__scopeId", "data-v-49af3639"]]), Ao = { class: "ck-time-shower" }, zo = /* @__PURE__ */ R({
|
|
233
233
|
__name: "ck-time-shower",
|
|
234
234
|
props: {
|
|
235
235
|
time: {},
|
|
236
236
|
minutes: {}
|
|
237
237
|
},
|
|
238
238
|
setup(e) {
|
|
239
|
-
return (o, t) => (
|
|
240
|
-
o.minutes ? (
|
|
241
|
-
G(
|
|
242
|
-
], 64)) : (
|
|
243
|
-
G(
|
|
239
|
+
return (o, t) => (v(), k("span", Ao, [
|
|
240
|
+
o.minutes ? (v(), k(K, { key: 0 }, [
|
|
241
|
+
G(M(we(be).minToHour(o.minutes)), 1)
|
|
242
|
+
], 64)) : (v(), k(K, { key: 1 }, [
|
|
243
|
+
G(M(we(be).presentTime(o.time)), 1)
|
|
244
244
|
], 64)),
|
|
245
245
|
t[0] || (t[0] = $("span", { class: "hs-text" }, " hs ", -1))
|
|
246
246
|
]));
|
|
@@ -258,21 +258,21 @@ const Ro = /* @__PURE__ */ H(zo, [["__scopeId", "data-v-dc82897f"]]), Wo = /* @_
|
|
|
258
258
|
o({
|
|
259
259
|
close: p
|
|
260
260
|
});
|
|
261
|
-
const { cleekOptions: n } = ae(ne()), a = x(!1),
|
|
261
|
+
const { cleekOptions: n } = ae(ne()), a = x(!1), i = x(), s = x(), c = x(), u = d(() => {
|
|
262
262
|
const r = [];
|
|
263
263
|
t.dark && r.push("ck-dropdown--content__dark");
|
|
264
|
-
const
|
|
265
|
-
return
|
|
264
|
+
const m = t.layout || n.value.styles.layout;
|
|
265
|
+
return m && r.push(`ck-dropdown--content__${m}`), r;
|
|
266
266
|
});
|
|
267
267
|
ce(() => a.value, (r) => {
|
|
268
268
|
if (r) {
|
|
269
|
-
const
|
|
270
|
-
g.top <
|
|
269
|
+
const m = document.documentElement.clientHeight, l = document.documentElement.clientWidth, g = i.value.getBoundingClientRect(), f = {};
|
|
270
|
+
g.top < m / 2 ? (f.top = `${g.bottom}px`, f["margin-top"] = "0.5rem") : (f.bottom = `${m - g.top}px`, f["margin-bottom"] = "0.5rem"), t.align === "left" ? f.left = `${g.left}px` : t.align === "right" && (f.right = `${l - g.right}px`), c.value = f;
|
|
271
271
|
}
|
|
272
272
|
}), ce(() => s.value, (r) => {
|
|
273
273
|
if (r && t.align !== "left" && t.align !== "right") {
|
|
274
|
-
const
|
|
275
|
-
c.value.left = `${
|
|
274
|
+
const m = i.value.getBoundingClientRect();
|
|
275
|
+
c.value.left = `${m.left + m.width / 2 - r.getBoundingClientRect().width / 2}px`;
|
|
276
276
|
}
|
|
277
277
|
});
|
|
278
278
|
function p() {
|
|
@@ -280,33 +280,33 @@ const Ro = /* @__PURE__ */ H(zo, [["__scopeId", "data-v-dc82897f"]]), Wo = /* @_
|
|
|
280
280
|
}
|
|
281
281
|
return _e(() => {
|
|
282
282
|
window.addEventListener("scroll", () => a.value = !1);
|
|
283
|
-
}), (r,
|
|
284
|
-
const
|
|
285
|
-
return
|
|
283
|
+
}), (r, m) => {
|
|
284
|
+
const l = ht("click-outside");
|
|
285
|
+
return v(), k("div", {
|
|
286
286
|
ref_key: "dropdownRef",
|
|
287
|
-
ref:
|
|
287
|
+
ref: i,
|
|
288
288
|
class: "ck-dropdown",
|
|
289
289
|
tabindex: "0",
|
|
290
|
-
onKeyup:
|
|
290
|
+
onKeyup: m[1] || (m[1] = he((g) => a.value = !0, ["enter"]))
|
|
291
291
|
}, [
|
|
292
292
|
$("div", {
|
|
293
293
|
class: "ck-dropdown--trigger",
|
|
294
|
-
onClick:
|
|
294
|
+
onClick: m[0] || (m[0] = (g) => a.value = !0)
|
|
295
295
|
}, [
|
|
296
296
|
W(r.$slots, "trigger", {}, void 0, !0)
|
|
297
297
|
]),
|
|
298
|
-
(
|
|
299
|
-
a.value ? ue((
|
|
298
|
+
(v(), D(xe, { to: "body" }, [
|
|
299
|
+
a.value ? ue((v(), k("div", {
|
|
300
300
|
key: 0,
|
|
301
301
|
ref_key: "contentRef",
|
|
302
302
|
ref: s,
|
|
303
|
-
class:
|
|
303
|
+
class: I(["ck-dropdown--content", u.value]),
|
|
304
304
|
style: F(c.value)
|
|
305
305
|
}, [
|
|
306
306
|
W(r.$slots, "content", {}, void 0, !0)
|
|
307
307
|
], 6)), [
|
|
308
|
-
[
|
|
309
|
-
]) :
|
|
308
|
+
[l, () => a.value = !1]
|
|
309
|
+
]) : C("", !0)
|
|
310
310
|
]))
|
|
311
311
|
], 544);
|
|
312
312
|
};
|
|
@@ -328,18 +328,18 @@ const Oo = /* @__PURE__ */ H(Wo, [["__scopeId", "data-v-ee86f04f"]]), Eo = "fixe
|
|
|
328
328
|
o.padding && s.push({ padding: o.padding });
|
|
329
329
|
const c = o.position || Eo;
|
|
330
330
|
return c && s.push({ position: c }), s;
|
|
331
|
-
}),
|
|
331
|
+
}), i = d(() => {
|
|
332
332
|
const s = [];
|
|
333
333
|
let c = "";
|
|
334
334
|
return t.value.darkMode && (c = t.value.darkModeColorItems), o.backgroundColor && (c = o.backgroundColor), c && s.push({ backgroundColor: c }), s;
|
|
335
335
|
});
|
|
336
|
-
return (s, c) => (
|
|
336
|
+
return (s, c) => (v(), k("div", {
|
|
337
337
|
class: "ck-navbar",
|
|
338
338
|
style: F(a.value)
|
|
339
339
|
}, [
|
|
340
340
|
$("div", {
|
|
341
|
-
class:
|
|
342
|
-
style: F(
|
|
341
|
+
class: I(["ck-navbar__content", n.value]),
|
|
342
|
+
style: F(i.value)
|
|
343
343
|
}, [
|
|
344
344
|
W(s.$slots, "default", {}, void 0, !0)
|
|
345
345
|
], 6)
|
|
@@ -349,18 +349,18 @@ const Oo = /* @__PURE__ */ H(Wo, [["__scopeId", "data-v-ee86f04f"]]), Eo = "fixe
|
|
|
349
349
|
const Fo = /* @__PURE__ */ H(No, [["__scopeId", "data-v-3a574311"]]);
|
|
350
350
|
const jo = {}, Ho = { class: "ck-tr" };
|
|
351
351
|
function qo(e, o) {
|
|
352
|
-
return
|
|
352
|
+
return v(), k("tr", Ho, [
|
|
353
353
|
W(e.$slots, "default", {}, void 0, !0)
|
|
354
354
|
]);
|
|
355
355
|
}
|
|
356
|
-
const $t = /* @__PURE__ */ H(jo, [["render", qo], ["__scopeId", "data-v-53984b6f"]]),
|
|
356
|
+
const $t = /* @__PURE__ */ H(jo, [["render", qo], ["__scopeId", "data-v-53984b6f"]]), L = {
|
|
357
357
|
getGroupClass({
|
|
358
358
|
group: e,
|
|
359
359
|
groupVertical: o,
|
|
360
360
|
widthBreaks: t = []
|
|
361
361
|
} = {}, n) {
|
|
362
|
-
const a = this.getWidthByWidthBreaks(t, n),
|
|
363
|
-
return e && a !== "100%" &&
|
|
362
|
+
const a = this.getWidthByWidthBreaks(t, n), i = [];
|
|
363
|
+
return e && a !== "100%" && i.push(`ck-component__group--${e}`), o && i.push(`ck-component__group-vertical--${o}`), i;
|
|
364
364
|
},
|
|
365
365
|
getWidthByWidthBreaks(e, o) {
|
|
366
366
|
if (e) {
|
|
@@ -368,8 +368,8 @@ const $t = /* @__PURE__ */ H(jo, [["render", qo], ["__scopeId", "data-v-53984b6f
|
|
|
368
368
|
t.length === 2 && typeof t[0] == "number" && typeof t[1] == "string" && (t = [t]), t.length && t[0][0] !== 0 && t.unshift([0, "100%"]);
|
|
369
369
|
let n = "";
|
|
370
370
|
return t.forEach((a) => {
|
|
371
|
-
const [
|
|
372
|
-
(o || 0) >=
|
|
371
|
+
const [i, s] = a;
|
|
372
|
+
(o || 0) >= i && (n = s);
|
|
373
373
|
}), n;
|
|
374
374
|
}
|
|
375
375
|
},
|
|
@@ -420,27 +420,27 @@ const $t = /* @__PURE__ */ H(jo, [["render", qo], ["__scopeId", "data-v-53984b6f
|
|
|
420
420
|
const s = [], c = o.align || ((u = o.col) == null ? void 0 : u.align);
|
|
421
421
|
return c && (c === "center" && s.push("align-center"), c === "right" && s.push("align-right")), (o.block || (p = o.col) != null && p.block) && s.push("block"), (o.nowrap || (r = o.col) != null && r.nowrap) && s.push("no-wrap-text"), s;
|
|
422
422
|
}), a = d(() => {
|
|
423
|
-
var p, r,
|
|
423
|
+
var p, r, m, l, g, f, y, b, h;
|
|
424
424
|
const s = {};
|
|
425
425
|
let c;
|
|
426
|
-
(o.minWidth || (p = o.col) != null && p.minWidth) && (c = o.minWidth || ((r = o.col) == null ? void 0 : r.minWidth)), (o.fixedWidth || (
|
|
426
|
+
(o.minWidth || (p = o.col) != null && p.minWidth) && (c = o.minWidth || ((r = o.col) == null ? void 0 : r.minWidth)), (o.fixedWidth || (m = o.col) != null && m.fixedWidth) && (c = o.fixedWidth || ((l = o.col) == null ? void 0 : l.fixedWidth)), c && (s.minWidth = c);
|
|
427
427
|
let u;
|
|
428
|
-
return (o.maxWidth || (g = o.col) != null && g.maxWidth) && (u = o.maxWidth || ((f = o.col) == null ? void 0 : f.maxWidth)), (o.fixedWidth || (
|
|
429
|
-
}),
|
|
430
|
-
return (s, c) =>
|
|
428
|
+
return (o.maxWidth || (g = o.col) != null && g.maxWidth) && (u = o.maxWidth || ((f = o.col) == null ? void 0 : f.maxWidth)), (o.fixedWidth || (y = o.col) != null && y.fixedWidth) && (u = o.fixedWidth || ((b = o.col) == null ? void 0 : b.fixedWidth)), u && (s.maxWidth = u), (o.maxHeight || (h = o.col) != null && h.maxHeight) && (s.maxHeight = o.maxHeight), s;
|
|
429
|
+
}), i = d(() => o.col ? L.isColumnDisplayed(o.col) : !0);
|
|
430
|
+
return (s, c) => i.value ? (v(), k("td", {
|
|
431
431
|
key: 0,
|
|
432
|
-
class:
|
|
432
|
+
class: I([t.value, "ck-td"])
|
|
433
433
|
}, [
|
|
434
434
|
$("span", {
|
|
435
|
-
class:
|
|
435
|
+
class: I(n.value),
|
|
436
436
|
style: F(a.value)
|
|
437
437
|
}, [
|
|
438
438
|
W(s.$slots, "default", {}, void 0, !0)
|
|
439
439
|
], 6)
|
|
440
|
-
], 2)) :
|
|
440
|
+
], 2)) : C("", !0);
|
|
441
441
|
}
|
|
442
442
|
});
|
|
443
|
-
const
|
|
443
|
+
const Tt = /* @__PURE__ */ H(Uo, [["__scopeId", "data-v-8832ff61"]]), Yo = /* @__PURE__ */ R({
|
|
444
444
|
__name: "ck-table__columns-manager-btn",
|
|
445
445
|
props: {
|
|
446
446
|
layout: {}
|
|
@@ -448,7 +448,7 @@ const Bt = /* @__PURE__ */ H(Uo, [["__scopeId", "data-v-8832ff61"]]), Yo = /* @_
|
|
|
448
448
|
setup(e) {
|
|
449
449
|
return (o, t) => {
|
|
450
450
|
const n = Y("ck-button");
|
|
451
|
-
return
|
|
451
|
+
return v(), D(n, {
|
|
452
452
|
size: "s",
|
|
453
453
|
color: "dark",
|
|
454
454
|
type: "flat",
|
|
@@ -471,10 +471,10 @@ const Bt = /* @__PURE__ */ H(Uo, [["__scopeId", "data-v-8832ff61"]]), Yo = /* @_
|
|
|
471
471
|
},
|
|
472
472
|
setup(e) {
|
|
473
473
|
const o = e, t = d(() => (o.currentPage - 1) * o.itemsPerPage + 1), n = d(() => {
|
|
474
|
-
const
|
|
475
|
-
return !o.itemsPerPage ||
|
|
474
|
+
const i = o.currentPage * o.itemsPerPage;
|
|
475
|
+
return !o.itemsPerPage || i > o.listLength ? o.listLength : i;
|
|
476
476
|
}), a = d(() => !o.hideItemsPerPage && o.listLength && o.currentPage);
|
|
477
|
-
return (
|
|
477
|
+
return (i, s) => a.value ? (v(), k("div", Go, M(t.value) + " - " + M(n.value) + " de " + M(i.listLength), 1)) : C("", !0);
|
|
478
478
|
}
|
|
479
479
|
});
|
|
480
480
|
const Ko = /* @__PURE__ */ H(Zo, [["__scopeId", "data-v-c3b27c6d"]]), Qo = /* @__PURE__ */ R({
|
|
@@ -495,12 +495,12 @@ const Ko = /* @__PURE__ */ H(Zo, [["__scopeId", "data-v-c3b27c6d"]]), Qo = /* @_
|
|
|
495
495
|
const t = e, n = o, a = d(() => {
|
|
496
496
|
const r = "font-awesome";
|
|
497
497
|
return t.iconPack && (t.iconPack === "cleek" || t.iconPack === "feather") ? t.iconPack : r;
|
|
498
|
-
}),
|
|
498
|
+
}), i = d(() => {
|
|
499
499
|
const r = [];
|
|
500
|
-
return t.color &&
|
|
500
|
+
return t.color && L.isColorTemplateVariable(t.color) && r.push(`ck-component__color--${t.color}`), t.size && r.push(`ck-icon__size-${t.size}`), r;
|
|
501
501
|
}), s = d(() => {
|
|
502
502
|
const r = [];
|
|
503
|
-
return t.color && !
|
|
503
|
+
return t.color && !L.isColorTemplateVariable(t.color) && r.push({ color: t.color }), r;
|
|
504
504
|
});
|
|
505
505
|
function c(r) {
|
|
506
506
|
n("click", r);
|
|
@@ -510,14 +510,14 @@ const Ko = /* @__PURE__ */ H(Zo, [["__scopeId", "data-v-c3b27c6d"]]), Qo = /* @_
|
|
|
510
510
|
return `mask: url(${r}) no-repeat center; -webkit-mask: url(${r}) no-repeat center;`;
|
|
511
511
|
}), p = d(() => {
|
|
512
512
|
const r = [];
|
|
513
|
-
return t.color ? t.color &&
|
|
513
|
+
return t.color ? t.color && L.isColorTemplateVariable(t.color) && r.push(`ck-component__color-background--${t.color}`) : r.push("ck-component__color--primary"), t.size && r.push("ck-icon__cleek-small"), t.size === "m" && r.push("ck-icon__cleek-medium"), t.size === "l" && r.push("ck-icon__cleek-large"), r;
|
|
514
514
|
});
|
|
515
|
-
return (r,
|
|
516
|
-
class:
|
|
515
|
+
return (r, m) => (v(), k("div", {
|
|
516
|
+
class: I(["ck-icon", i.value]),
|
|
517
517
|
style: F(s.value),
|
|
518
|
-
onClick:
|
|
518
|
+
onClick: m[0] || (m[0] = (l) => c(l))
|
|
519
519
|
}, [
|
|
520
|
-
a.value === "font-awesome" ? (
|
|
520
|
+
a.value === "font-awesome" ? (v(), D(we(to), {
|
|
521
521
|
key: 0,
|
|
522
522
|
icon: r.icon,
|
|
523
523
|
rotation: r.rotation,
|
|
@@ -525,15 +525,15 @@ const Ko = /* @__PURE__ */ H(Zo, [["__scopeId", "data-v-c3b27c6d"]]), Qo = /* @_
|
|
|
525
525
|
spin: r.spin,
|
|
526
526
|
pulse: r.pulse,
|
|
527
527
|
fixedWidth: r.fixedWidth
|
|
528
|
-
}, null, 8, ["icon", "rotation", "flip", "spin", "pulse", "fixedWidth"])) : a.value === "cleek" ? (
|
|
528
|
+
}, null, 8, ["icon", "rotation", "flip", "spin", "pulse", "fixedWidth"])) : a.value === "cleek" ? (v(), k("div", {
|
|
529
529
|
key: 1,
|
|
530
530
|
style: F(u.value),
|
|
531
|
-
class:
|
|
532
|
-
}, null, 6)) :
|
|
531
|
+
class: I([p.value, "ck-icon__cleek"])
|
|
532
|
+
}, null, 6)) : C("", !0)
|
|
533
533
|
], 6));
|
|
534
534
|
}
|
|
535
535
|
});
|
|
536
|
-
const
|
|
536
|
+
const Q = /* @__PURE__ */ H(Qo, [["__scopeId", "data-v-4bc5aa54"]]);
|
|
537
537
|
function ke() {
|
|
538
538
|
const e = x(0);
|
|
539
539
|
function o(t) {
|
|
@@ -575,58 +575,58 @@ const Jo = ["title", "aria-label", "disabled", "tabindex"], Ke = "transparent",
|
|
|
575
575
|
},
|
|
576
576
|
emits: ["click"],
|
|
577
577
|
setup(e, { emit: o }) {
|
|
578
|
-
const t = e, n = o, { cleekOptions: a } = ae(ne()), { windowWidth:
|
|
579
|
-
const
|
|
580
|
-
|
|
578
|
+
const t = e, n = o, { cleekOptions: a } = ae(ne()), { windowWidth: i } = ke(), s = d(() => t.type ? t.type : a.value ? a.value.button.type : Xo), c = d(() => t.backgroundColor ? t.backgroundColor : a.value && !t.type ? a.value.button.backgroundColor : Ke), u = d(() => t.textColor ? t.textColor : a.value && !t.type ? a.value.button.textColor : ""), p = d(() => {
|
|
579
|
+
const l = [];
|
|
580
|
+
l.push(L.getGroupClass(t, i.value)), (t.color || ut) !== ut && (s.value === "filled" ? l.push(`ck-component__bg-color--${t.color}`) : l.push(`ck-component__border-color--${t.color}`)), c.value !== Ke && L.isColorTemplateVariable(c.value) && l.push(`ck-component__bg-color--${c.value}`), u.value && L.isColorTemplateVariable(u.value) && l.push(`ck-component__color--${u.value}`);
|
|
581
581
|
const f = t.align || en;
|
|
582
|
-
(f === "center" || f === "right") &&
|
|
583
|
-
const
|
|
584
|
-
return
|
|
582
|
+
(f === "center" || f === "right") && l.push(`ck-button__align--${t.align}`);
|
|
583
|
+
const y = t.layout || a.value.styles.layout;
|
|
584
|
+
return y && l.push(y), l.push(`type-${s.value}`), t.size && l.push(`ck-button-size__${t.size}`), t.isLoading && l.push("is-loading-btn"), l;
|
|
585
585
|
}), r = d(() => {
|
|
586
|
-
const
|
|
586
|
+
const l = [];
|
|
587
587
|
let g = !1;
|
|
588
588
|
if (t.widthBreaks) {
|
|
589
|
-
const f =
|
|
590
|
-
f && (g = !0,
|
|
589
|
+
const f = L.getWidthByWidthBreaks(t.widthBreaks, i.value);
|
|
590
|
+
f && (g = !0, l.push({ width: f }));
|
|
591
591
|
}
|
|
592
|
-
return u.value && !
|
|
592
|
+
return u.value && !L.isColorTemplateVariable(u.value) && l.push({ color: `${u.value} !important` }), t.width && !g && l.push({ width: t.width }), c.value !== Ke && !L.isColorTemplateVariable(c.value) && l.push({ "background-color": c.value }), t.color && !L.isColorTemplateVariable(t.color) && (s.value === "outlined" ? (l.push({ "border-color": t.color }), l.push({ color: t.color })) : s.value === "filled" ? (l.push({ color: "white" }), l.push({ "border-color": t.color }), l.push({ "background-color": t.color })) : s.value === "flat" && l.push({ color: t.color })), l;
|
|
593
593
|
});
|
|
594
|
-
function
|
|
595
|
-
t.isLoading || n("click",
|
|
594
|
+
function m(l) {
|
|
595
|
+
t.isLoading || n("click", l);
|
|
596
596
|
}
|
|
597
|
-
return (
|
|
597
|
+
return (l, g) => (v(), k("button", {
|
|
598
598
|
type: "button",
|
|
599
|
-
class:
|
|
600
|
-
title:
|
|
601
|
-
"aria-label":
|
|
602
|
-
disabled:
|
|
603
|
-
tabindex:
|
|
599
|
+
class: I(p.value),
|
|
600
|
+
title: l.title,
|
|
601
|
+
"aria-label": l.title,
|
|
602
|
+
disabled: l.disabled,
|
|
603
|
+
tabindex: l.tabindex,
|
|
604
604
|
style: F(r.value),
|
|
605
|
-
onClick: g[0] || (g[0] = (f) =>
|
|
605
|
+
onClick: g[0] || (g[0] = (f) => m(f))
|
|
606
606
|
}, [
|
|
607
|
-
|
|
607
|
+
l.isLoading ? (v(), D(Q, {
|
|
608
608
|
key: 0,
|
|
609
609
|
icon: "spinner",
|
|
610
610
|
spin: ""
|
|
611
|
-
})) : (
|
|
612
|
-
|
|
611
|
+
})) : (v(), k(K, { key: 1 }, [
|
|
612
|
+
l.icon ? (v(), D(Q, {
|
|
613
613
|
key: 0,
|
|
614
|
-
class:
|
|
615
|
-
icon:
|
|
616
|
-
"icon-pack":
|
|
617
|
-
}, null, 8, ["icon", "icon-pack", "class"])) :
|
|
618
|
-
W(
|
|
619
|
-
|
|
614
|
+
class: I(["ck-button__icon-left", { "just-icon": !l.$slots.default }]),
|
|
615
|
+
icon: l.icon,
|
|
616
|
+
"icon-pack": l.iconPack
|
|
617
|
+
}, null, 8, ["icon", "icon-pack", "class"])) : C("", !0),
|
|
618
|
+
W(l.$slots, "default", {}, void 0, !0),
|
|
619
|
+
l.iconRight ? (v(), D(Q, {
|
|
620
620
|
key: 1,
|
|
621
|
-
class:
|
|
622
|
-
icon:
|
|
623
|
-
"icon-pack":
|
|
624
|
-
}, null, 8, ["icon", "icon-pack", "class"])) :
|
|
621
|
+
class: I(["ck-button__icon-right", { "just-icon": !l.$slots.default }]),
|
|
622
|
+
icon: l.iconRight,
|
|
623
|
+
"icon-pack": l.iconPack
|
|
624
|
+
}, null, 8, ["icon", "icon-pack", "class"])) : C("", !0)
|
|
625
625
|
], 64))
|
|
626
626
|
], 14, Jo));
|
|
627
627
|
}
|
|
628
628
|
});
|
|
629
|
-
const
|
|
629
|
+
const Be = /* @__PURE__ */ H(tn, [["__scopeId", "data-v-1598dab4"]]), on = ["for"], nn = "m", an = /* @__PURE__ */ R({
|
|
630
630
|
__name: "ck-label",
|
|
631
631
|
props: {
|
|
632
632
|
for: {},
|
|
@@ -635,20 +635,20 @@ const Te = /* @__PURE__ */ H(tn, [["__scopeId", "data-v-1598dab4"]]), on = ["for
|
|
|
635
635
|
},
|
|
636
636
|
setup(e) {
|
|
637
637
|
const o = e, { cleekOptions: t } = ae(ne()), n = d(() => {
|
|
638
|
-
const
|
|
638
|
+
const i = [];
|
|
639
639
|
let s = "left";
|
|
640
|
-
return (o.align === "center" || o.align === "right") && (s = o.align),
|
|
640
|
+
return (o.align === "center" || o.align === "right") && (s = o.align), i.push(`ck-align--${s}`), i.push(`ck-size--${o.size || nn}`), i;
|
|
641
641
|
}), a = d(() => {
|
|
642
|
-
const
|
|
642
|
+
const i = [];
|
|
643
643
|
let s = t.value.popup.textColor;
|
|
644
|
-
return t.value.darkMode && (s = t.value.darkModeColorText), s && (
|
|
644
|
+
return t.value.darkMode && (s = t.value.darkModeColorText), s && (L.isColorTemplateVariable(s) ? i.push(`ck-component__color--${s}`) : i.push({ color: s })), i;
|
|
645
645
|
});
|
|
646
|
-
return (
|
|
647
|
-
class:
|
|
646
|
+
return (i, s) => (v(), k("label", {
|
|
647
|
+
class: I(["ck-label", n.value]),
|
|
648
648
|
for: o.for,
|
|
649
649
|
style: F(a.value)
|
|
650
650
|
}, [
|
|
651
|
-
W(
|
|
651
|
+
W(i.$slots, "default", {}, void 0, !0)
|
|
652
652
|
], 14, on));
|
|
653
653
|
}
|
|
654
654
|
});
|
|
@@ -698,185 +698,185 @@ const ze = /* @__PURE__ */ H(an, [["__scopeId", "data-v-f242d7f6"]]), ln = {
|
|
|
698
698
|
}),
|
|
699
699
|
emits: /* @__PURE__ */ oe(["click", "focus", "blur", "input", "inputDelayed", "change", "changeDelayed"], ["update:modelValue"]),
|
|
700
700
|
setup(e, { expose: o, emit: t }) {
|
|
701
|
-
const n = ge(e, "modelValue"), a = e,
|
|
702
|
-
o({ focus:
|
|
703
|
-
const { cleekOptions: s } = ae(ne()), { windowWidth: c } = ke(), u = x(), p = x(""), r = x(!1),
|
|
704
|
-
const
|
|
705
|
-
let
|
|
706
|
-
if (a.width && (
|
|
707
|
-
const
|
|
708
|
-
|
|
701
|
+
const n = ge(e, "modelValue"), a = e, i = t;
|
|
702
|
+
o({ focus: B, select: O });
|
|
703
|
+
const { cleekOptions: s } = ae(ne()), { windowWidth: c } = ke(), u = x(), p = x(""), r = x(!1), m = x(!1), l = d(() => r.value ? "text" : a.plusMinusButtons ? "number" : a.type), g = d(() => a.justInteger || a.plusMinusButtons), f = d(() => a.labelAlign ? a.labelAlign : a.align ? a.align : a.plusMinusButtons ? ct : "left"), y = d(() => {
|
|
704
|
+
const w = [];
|
|
705
|
+
let A = "";
|
|
706
|
+
if (a.width && (A = a.width), a.plusMinusButtons && (A = un), A && w.push({ width: A }), a.widthBreaks) {
|
|
707
|
+
const te = L.getWidthByWidthBreaks(a.widthBreaks, c.value);
|
|
708
|
+
te && w.push({ width: te });
|
|
709
709
|
}
|
|
710
|
-
return
|
|
710
|
+
return w;
|
|
711
711
|
}), b = d(() => {
|
|
712
|
-
const
|
|
713
|
-
|
|
714
|
-
let
|
|
715
|
-
a.plusMinusButtons && (
|
|
716
|
-
const
|
|
717
|
-
|
|
712
|
+
const w = [];
|
|
713
|
+
w.push(L.getGroupClass(a, c.value)), a.icon && w.push("has-icon-left"), a.iconRight && w.push("has-icon-right");
|
|
714
|
+
let A = a.align;
|
|
715
|
+
a.plusMinusButtons && (A = ct), A && w.push(`align--${A}`), a.hideBorder && w.push("no-border");
|
|
716
|
+
const te = a.layout || s.value.styles.layout;
|
|
717
|
+
te && w.push(te), a.plusMinusButtons && w.push("squared"), a.size && w.push(`ck-input-size__${a.size}`);
|
|
718
718
|
const ie = a.borderColor || s.value.styles.borderColor;
|
|
719
|
-
return ie &&
|
|
719
|
+
return ie && L.isColorTemplateVariable(ie) && w.push(`ck-component__border-color--${ie}`), w;
|
|
720
720
|
}), h = d(() => {
|
|
721
|
-
const
|
|
722
|
-
a.fontSize &&
|
|
723
|
-
const
|
|
724
|
-
|
|
725
|
-
let
|
|
726
|
-
s.value.darkMode && (
|
|
721
|
+
const w = [];
|
|
722
|
+
a.fontSize && w.push({ "font-size": a.fontSize }), a.textColor && w.push({ color: a.textColor });
|
|
723
|
+
const A = a.borderColor || s.value.styles.borderColor;
|
|
724
|
+
A && !L.isColorTemplateVariable(A) && w.push({ "border-color": A });
|
|
725
|
+
let te = "";
|
|
726
|
+
s.value.darkMode && (te = s.value.darkModeColorItems), te && !L.isColorTemplateVariable(te) && w.push({ backgroundColor: te });
|
|
727
727
|
let ie = a.textColor || s.value.popup.textColor;
|
|
728
|
-
return s.value.darkMode && (ie = s.value.darkModeColorText), ie && !
|
|
728
|
+
return s.value.darkMode && (ie = s.value.darkModeColorText), ie && !L.isColorTemplateVariable(ie) && (w.push(`ck-component__color--${ie}`), w.push({ color: ie })), w;
|
|
729
729
|
});
|
|
730
730
|
ce(
|
|
731
731
|
() => n.value,
|
|
732
|
-
(
|
|
732
|
+
(w) => me(w),
|
|
733
733
|
{ immediate: !0 }
|
|
734
734
|
);
|
|
735
|
-
function
|
|
736
|
-
var
|
|
737
|
-
(
|
|
735
|
+
function B() {
|
|
736
|
+
var w;
|
|
737
|
+
(w = u.value) == null || w.focus();
|
|
738
738
|
}
|
|
739
739
|
function O() {
|
|
740
|
-
var
|
|
741
|
-
(
|
|
740
|
+
var w;
|
|
741
|
+
(w = u.value) == null || w.select();
|
|
742
742
|
}
|
|
743
|
-
function P(
|
|
744
|
-
|
|
745
|
-
n.value ===
|
|
743
|
+
function P(w) {
|
|
744
|
+
i("input", w), setTimeout(() => {
|
|
745
|
+
n.value === w && i("inputDelayed", w);
|
|
746
746
|
}, a.delayChangeTime);
|
|
747
747
|
}
|
|
748
|
-
function
|
|
749
|
-
|
|
750
|
-
n.value ===
|
|
748
|
+
function T(w) {
|
|
749
|
+
i("change", w), setTimeout(() => {
|
|
750
|
+
n.value === w && i("changeDelayed", w);
|
|
751
751
|
}, a.delayChangeTime);
|
|
752
752
|
}
|
|
753
|
-
function
|
|
754
|
-
var
|
|
755
|
-
|
|
753
|
+
function S(w) {
|
|
754
|
+
var A;
|
|
755
|
+
i("click", w), a.autoSelect && ((A = u.value) == null || A.select());
|
|
756
756
|
}
|
|
757
757
|
function j() {
|
|
758
|
-
const
|
|
759
|
-
P(
|
|
758
|
+
const w = me(p.value);
|
|
759
|
+
P(w);
|
|
760
760
|
}
|
|
761
|
-
function
|
|
762
|
-
|
|
761
|
+
function ee() {
|
|
762
|
+
T(n.value);
|
|
763
763
|
}
|
|
764
|
-
function le(
|
|
765
|
-
|
|
764
|
+
function le(w) {
|
|
765
|
+
i("focus", w), a.preventAutocomplete && (m.value = !0), l.value === "number" && !p.value && (p.value = "");
|
|
766
766
|
}
|
|
767
|
-
function $e(
|
|
768
|
-
|
|
767
|
+
function $e(w) {
|
|
768
|
+
i("blur", w), l.value === "number" && !p.value && (p.value = n.value);
|
|
769
769
|
}
|
|
770
770
|
function V() {
|
|
771
|
-
const
|
|
772
|
-
P(
|
|
771
|
+
const w = me(+p.value - 1);
|
|
772
|
+
P(w), T(w);
|
|
773
773
|
}
|
|
774
774
|
function q() {
|
|
775
|
-
const
|
|
776
|
-
P(
|
|
775
|
+
const w = me(+p.value + 1);
|
|
776
|
+
P(w), T(w);
|
|
777
777
|
}
|
|
778
|
-
function de(
|
|
779
|
-
let
|
|
780
|
-
return a.capitalize && (
|
|
778
|
+
function de(w) {
|
|
779
|
+
let A = w;
|
|
780
|
+
return a.capitalize && (A = Ee.capitalize(`${A}`)), a.toUpperCase && (A = `${A}`.toUpperCase()), g.value && (A = parseInt(`${+A}`)), typeof a.min < "u" && +A < +a.min && (A = +a.min), typeof a.max < "u" && +A > +a.max && (A = +a.max), A;
|
|
781
781
|
}
|
|
782
|
-
function me(
|
|
783
|
-
const
|
|
784
|
-
return n.value =
|
|
782
|
+
function me(w) {
|
|
783
|
+
const A = de(w);
|
|
784
|
+
return n.value = A, p.value = A, A;
|
|
785
785
|
}
|
|
786
786
|
return _e(() => {
|
|
787
|
-
a.autofocus && (
|
|
788
|
-
}), (
|
|
787
|
+
a.autofocus && (B(), S(null));
|
|
788
|
+
}), (w, A) => {
|
|
789
789
|
var ie;
|
|
790
|
-
const
|
|
791
|
-
return
|
|
790
|
+
const te = Y("ck-button");
|
|
791
|
+
return v(), k("div", {
|
|
792
792
|
class: "ck-input",
|
|
793
|
-
style: F(
|
|
793
|
+
style: F(y.value)
|
|
794
794
|
}, [
|
|
795
|
-
|
|
795
|
+
w.label ? (v(), D(ze, {
|
|
796
796
|
key: 0,
|
|
797
797
|
for: "ck-input",
|
|
798
|
-
size:
|
|
798
|
+
size: w.size,
|
|
799
799
|
align: f.value
|
|
800
800
|
}, {
|
|
801
801
|
default: N(() => [
|
|
802
|
-
G(
|
|
803
|
-
|
|
802
|
+
G(M(w.label) + " ", 1),
|
|
803
|
+
w.optional ? (v(), k("span", ln, "opcional")) : C("", !0)
|
|
804
804
|
]),
|
|
805
805
|
_: 1
|
|
806
|
-
}, 8, ["size", "align"])) :
|
|
806
|
+
}, 8, ["size", "align"])) : C("", !0),
|
|
807
807
|
$("div", sn, [
|
|
808
|
-
|
|
808
|
+
w.plusMinusButtons ? (v(), D(te, {
|
|
809
809
|
key: 0,
|
|
810
810
|
size: "s",
|
|
811
811
|
icon: "minus",
|
|
812
812
|
group: "left",
|
|
813
813
|
type: "filled",
|
|
814
|
-
class:
|
|
815
|
-
onClick:
|
|
816
|
-
}, null, 8, ["class"])) :
|
|
817
|
-
|
|
814
|
+
class: I(["ck-input-plus-minus-buttons", { "--small": w.size === "s" }]),
|
|
815
|
+
onClick: A[0] || (A[0] = (Z) => V())
|
|
816
|
+
}, null, 8, ["class"])) : C("", !0),
|
|
817
|
+
w.icon ? (v(), D(Q, {
|
|
818
818
|
key: 1,
|
|
819
819
|
class: "ck-input__icon-left",
|
|
820
|
-
color:
|
|
821
|
-
icon:
|
|
822
|
-
"icon-pack":
|
|
820
|
+
color: w.iconColor ? w.iconColor : "lightgrey",
|
|
821
|
+
icon: w.icon,
|
|
822
|
+
"icon-pack": w.iconPack,
|
|
823
823
|
size: "s"
|
|
824
|
-
}, null, 8, ["color", "icon", "icon-pack"])) :
|
|
824
|
+
}, null, 8, ["color", "icon", "icon-pack"])) : C("", !0),
|
|
825
825
|
ue($("input", {
|
|
826
826
|
ref_key: "inputRef",
|
|
827
827
|
ref: u,
|
|
828
|
-
"onUpdate:modelValue":
|
|
829
|
-
type:
|
|
830
|
-
autocomplete:
|
|
831
|
-
readonly:
|
|
832
|
-
placeholder:
|
|
833
|
-
class:
|
|
828
|
+
"onUpdate:modelValue": A[1] || (A[1] = (Z) => p.value = Z),
|
|
829
|
+
type: l.value,
|
|
830
|
+
autocomplete: w.preventAutocomplete ? "new-password" : "on",
|
|
831
|
+
readonly: w.readonly || w.preventAutocomplete && !m.value,
|
|
832
|
+
placeholder: w.placeholder,
|
|
833
|
+
class: I(b.value),
|
|
834
834
|
style: F(h.value),
|
|
835
|
-
disabled:
|
|
836
|
-
tabindex:
|
|
837
|
-
onClick:
|
|
838
|
-
onInput:
|
|
839
|
-
onChange:
|
|
840
|
-
onFocus:
|
|
841
|
-
onBlur:
|
|
835
|
+
disabled: w.disabled,
|
|
836
|
+
tabindex: w.tabindex,
|
|
837
|
+
onClick: A[2] || (A[2] = (Z) => S(Z)),
|
|
838
|
+
onInput: A[3] || (A[3] = (Z) => j()),
|
|
839
|
+
onChange: A[4] || (A[4] = (Z) => ee()),
|
|
840
|
+
onFocus: A[5] || (A[5] = (Z) => le(Z)),
|
|
841
|
+
onBlur: A[6] || (A[6] = (Z) => $e(Z))
|
|
842
842
|
}, null, 46, rn), [
|
|
843
843
|
[Et, p.value]
|
|
844
844
|
]),
|
|
845
|
-
|
|
845
|
+
w.type === "password" ? (v(), k("div", {
|
|
846
846
|
key: 2,
|
|
847
|
-
class:
|
|
848
|
-
onClick:
|
|
847
|
+
class: I(["show-password", w.layout || ((ie = we(s)) == null ? void 0 : ie.styles.layout)]),
|
|
848
|
+
onClick: A[7] || (A[7] = (Z) => r.value = !r.value)
|
|
849
849
|
}, [
|
|
850
|
-
U(
|
|
850
|
+
U(Q, {
|
|
851
851
|
icon: r.value ? "eye-slash" : "eye"
|
|
852
852
|
}, null, 8, ["icon"])
|
|
853
|
-
], 2)) :
|
|
854
|
-
|
|
853
|
+
], 2)) : C("", !0),
|
|
854
|
+
w.iconRight && w.type !== "password" ? (v(), D(Q, {
|
|
855
855
|
key: 3,
|
|
856
856
|
class: "ck-input__icon-right",
|
|
857
|
-
color:
|
|
858
|
-
icon:
|
|
859
|
-
"icon-pack":
|
|
860
|
-
}, null, 8, ["color", "icon", "icon-pack"])) :
|
|
861
|
-
|
|
857
|
+
color: w.iconColor ? w.iconColor : "lightgrey",
|
|
858
|
+
icon: w.iconRight,
|
|
859
|
+
"icon-pack": w.iconPack
|
|
860
|
+
}, null, 8, ["color", "icon", "icon-pack"])) : C("", !0),
|
|
861
|
+
w.plusMinusButtons ? (v(), D(te, {
|
|
862
862
|
key: 4,
|
|
863
863
|
size: "s",
|
|
864
864
|
icon: "plus",
|
|
865
865
|
group: "right",
|
|
866
866
|
type: "filled",
|
|
867
|
-
class:
|
|
868
|
-
onClick:
|
|
869
|
-
}, null, 8, ["class"])) :
|
|
870
|
-
|
|
867
|
+
class: I(["ck-input-plus-minus-buttons", { "--small": w.size === "s" }]),
|
|
868
|
+
onClick: A[8] || (A[8] = (Z) => q())
|
|
869
|
+
}, null, 8, ["class"])) : C("", !0),
|
|
870
|
+
w.suffix ? (v(), k("span", {
|
|
871
871
|
key: 5,
|
|
872
|
-
class:
|
|
873
|
-
},
|
|
872
|
+
class: I(["suffix", { "--plus-minus-btns": w.plusMinusButtons }])
|
|
873
|
+
}, M(w.suffix), 3)) : C("", !0)
|
|
874
874
|
])
|
|
875
875
|
], 4);
|
|
876
876
|
};
|
|
877
877
|
}
|
|
878
878
|
});
|
|
879
|
-
const
|
|
879
|
+
const Bt = /* @__PURE__ */ H(cn, [["__scopeId", "data-v-cd3f4c82"]]), dn = {
|
|
880
880
|
key: 0,
|
|
881
881
|
class: "flex items-center"
|
|
882
882
|
}, pn = { key: 2 }, vn = /* @__PURE__ */ R({
|
|
@@ -893,7 +893,7 @@ const Tt = /* @__PURE__ */ H(cn, [["__scopeId", "data-v-cd3f4c82"]]), dn = {
|
|
|
893
893
|
}),
|
|
894
894
|
emits: /* @__PURE__ */ oe(["refreshList"], ["update:modelValue"]),
|
|
895
895
|
setup(e, { emit: o }) {
|
|
896
|
-
const t = ge(e, "modelValue"), n = e, a = o,
|
|
896
|
+
const t = ge(e, "modelValue"), n = e, a = o, i = d(() => typeof t.value < "u"), s = d(() => {
|
|
897
897
|
const p = [];
|
|
898
898
|
return n.layout && p.push(n.layout), n.version && p.push(`version--${n.version}`), p;
|
|
899
899
|
});
|
|
@@ -906,14 +906,14 @@ const Tt = /* @__PURE__ */ H(cn, [["__scopeId", "data-v-cd3f4c82"]]), dn = {
|
|
|
906
906
|
r === t.value && a("refreshList", !1);
|
|
907
907
|
}, 1e3);
|
|
908
908
|
}
|
|
909
|
-
return (p, r) => (
|
|
910
|
-
class:
|
|
909
|
+
return (p, r) => (v(), k("div", {
|
|
910
|
+
class: I(["ck-table__header-items", s.value])
|
|
911
911
|
}, [
|
|
912
|
-
p.$slots.headerActionsLeft ? (
|
|
912
|
+
p.$slots.headerActionsLeft ? (v(), k("div", dn, [
|
|
913
913
|
W(p.$slots, "headerActionsLeft", {}, void 0, !0)
|
|
914
|
-
])) :
|
|
915
|
-
!p.hideHeaderActions &&
|
|
916
|
-
p.hideRefreshBtn ?
|
|
914
|
+
])) : C("", !0),
|
|
915
|
+
!p.hideHeaderActions && i.value ? (v(), k(K, { key: 1 }, [
|
|
916
|
+
p.hideRefreshBtn ? C("", !0) : (v(), D(Be, {
|
|
917
917
|
key: 0,
|
|
918
918
|
class: "mr-1",
|
|
919
919
|
type: "flat",
|
|
@@ -922,22 +922,22 @@ const Tt = /* @__PURE__ */ H(cn, [["__scopeId", "data-v-cd3f4c82"]]), dn = {
|
|
|
922
922
|
layout: "rounded",
|
|
923
923
|
icon: p.isLoading ? "spinner" : "rotate-right",
|
|
924
924
|
isLoading: !!p.isLoading,
|
|
925
|
-
onClick: r[0] || (r[0] = (
|
|
925
|
+
onClick: r[0] || (r[0] = (m) => c())
|
|
926
926
|
}, null, 8, ["icon", "isLoading"])),
|
|
927
|
-
U(
|
|
927
|
+
U(Bt, {
|
|
928
928
|
modelValue: t.value,
|
|
929
|
-
"onUpdate:modelValue": r[1] || (r[1] = (
|
|
929
|
+
"onUpdate:modelValue": r[1] || (r[1] = (m) => t.value = m),
|
|
930
930
|
class: "ck-table--search-input",
|
|
931
931
|
layout: "rounded",
|
|
932
932
|
icon: "magnifying-glass",
|
|
933
933
|
placeholder: "Buscar...",
|
|
934
934
|
borderColor: p.version === "colored" ? "white" : "",
|
|
935
|
-
onInput: r[2] || (r[2] = (
|
|
935
|
+
onInput: r[2] || (r[2] = (m) => u(m))
|
|
936
936
|
}, null, 8, ["modelValue", "borderColor"])
|
|
937
|
-
], 64)) :
|
|
938
|
-
p.$slots.headerActionsRight ? (
|
|
937
|
+
], 64)) : C("", !0),
|
|
938
|
+
p.$slots.headerActionsRight ? (v(), k("div", pn, [
|
|
939
939
|
W(p.$slots, "headerActionsRight", {}, void 0, !0)
|
|
940
|
-
])) :
|
|
940
|
+
])) : C("", !0)
|
|
941
941
|
], 2));
|
|
942
942
|
}
|
|
943
943
|
});
|
|
@@ -953,12 +953,12 @@ const mn = /* @__PURE__ */ H(vn, [["__scopeId", "data-v-187caf58"]]), fn = { cla
|
|
|
953
953
|
},
|
|
954
954
|
emits: ["refreshList", "update:currentPage"],
|
|
955
955
|
setup(e, { emit: o }) {
|
|
956
|
-
const t = e, n = o, { cleekOptions: a } = ae(ne()),
|
|
956
|
+
const t = e, n = o, { cleekOptions: a } = ae(ne()), i = d({
|
|
957
957
|
get() {
|
|
958
958
|
return t.currentPage;
|
|
959
959
|
},
|
|
960
|
-
set(
|
|
961
|
-
n("update:currentPage",
|
|
960
|
+
set(y) {
|
|
961
|
+
n("update:currentPage", y);
|
|
962
962
|
}
|
|
963
963
|
}), s = d({
|
|
964
964
|
get() {
|
|
@@ -969,77 +969,77 @@ const mn = /* @__PURE__ */ H(vn, [["__scopeId", "data-v-187caf58"]]), fn = { cla
|
|
|
969
969
|
}), c = d(() => t.currentPage !== 1), u = d(() => !!r.value.length), p = d(() => {
|
|
970
970
|
if (!t.listLength)
|
|
971
971
|
return [];
|
|
972
|
-
const
|
|
972
|
+
const y = [], b = (dt - 1) / 2;
|
|
973
973
|
for (const h of Array(b).keys()) {
|
|
974
|
-
const
|
|
975
|
-
|
|
974
|
+
const B = t.currentPage - h - 1;
|
|
975
|
+
B > 0 && y.unshift(B);
|
|
976
976
|
}
|
|
977
|
-
return
|
|
977
|
+
return y;
|
|
978
978
|
}), r = d(() => {
|
|
979
979
|
if (!t.listLength)
|
|
980
980
|
return [];
|
|
981
|
-
const
|
|
981
|
+
const y = [], b = (dt - 1) / 2;
|
|
982
982
|
for (const h of Array(b).keys()) {
|
|
983
|
-
const
|
|
984
|
-
|
|
983
|
+
const B = t.currentPage + h + 1;
|
|
984
|
+
B <= t.totalPages && y.push(B);
|
|
985
985
|
}
|
|
986
|
-
return
|
|
987
|
-
}),
|
|
988
|
-
const
|
|
989
|
-
b &&
|
|
986
|
+
return y;
|
|
987
|
+
}), m = d(() => {
|
|
988
|
+
const y = [], b = t.align || "center";
|
|
989
|
+
b && y.push(`pagination-align--${b || "center"}`);
|
|
990
990
|
const h = t.layout || a.value.styles.layout;
|
|
991
|
-
return h &&
|
|
991
|
+
return h && y.push(h), y;
|
|
992
992
|
});
|
|
993
|
-
ce(() =>
|
|
994
|
-
function
|
|
995
|
-
let b = +
|
|
996
|
-
b > t.totalPages && (b = t.totalPages), b < 1 && (b = 1), t.currentPage === b ?
|
|
993
|
+
ce(() => i.value, () => n("refreshList"));
|
|
994
|
+
function l(y) {
|
|
995
|
+
let b = +y.value;
|
|
996
|
+
b > t.totalPages && (b = t.totalPages), b < 1 && (b = 1), t.currentPage === b ? y.value = `${b}` : i.value = b;
|
|
997
997
|
}
|
|
998
998
|
function g() {
|
|
999
|
-
u.value && (
|
|
999
|
+
u.value && (i.value = t.currentPage + 1);
|
|
1000
1000
|
}
|
|
1001
1001
|
function f() {
|
|
1002
|
-
c.value && (
|
|
1002
|
+
c.value && (i.value = t.currentPage - 1);
|
|
1003
1003
|
}
|
|
1004
|
-
return (
|
|
1005
|
-
class:
|
|
1004
|
+
return (y, b) => (v(), k("div", {
|
|
1005
|
+
class: I(["ck-table__pagination-container", m.value])
|
|
1006
1006
|
}, [
|
|
1007
1007
|
$("div", fn, [
|
|
1008
1008
|
$("div", {
|
|
1009
|
-
class:
|
|
1009
|
+
class: I(["ck-table__pagination--arrow-left", { disabled: !c.value }]),
|
|
1010
1010
|
onClick: b[0] || (b[0] = (h) => f())
|
|
1011
1011
|
}, [
|
|
1012
|
-
U(
|
|
1012
|
+
U(Q, {
|
|
1013
1013
|
icon: c.value ? "angle-left" : "grip-lines-vertical"
|
|
1014
1014
|
}, null, 8, ["icon"])
|
|
1015
1015
|
], 2),
|
|
1016
1016
|
$("div", hn, [
|
|
1017
|
-
(
|
|
1017
|
+
(v(!0), k(K, null, re(p.value, (h) => (v(), k("div", {
|
|
1018
1018
|
class: "ck-table__pagination-item--left",
|
|
1019
|
-
onClick: (
|
|
1020
|
-
},
|
|
1019
|
+
onClick: (B) => i.value = h
|
|
1020
|
+
}, M(h), 9, gn))), 256)),
|
|
1021
1021
|
$("div", kn, [
|
|
1022
1022
|
ue($("input", {
|
|
1023
1023
|
"onUpdate:modelValue": b[1] || (b[1] = (h) => s.value = h),
|
|
1024
1024
|
class: "ck-table__pagination-input",
|
|
1025
1025
|
type: "number",
|
|
1026
1026
|
onClick: b[2] || (b[2] = (h) => h.target.select()),
|
|
1027
|
-
onChange: b[3] || (b[3] = (h) =>
|
|
1027
|
+
onChange: b[3] || (b[3] = (h) => l(h.target))
|
|
1028
1028
|
}, null, 544), [
|
|
1029
1029
|
[Fe, s.value]
|
|
1030
1030
|
]),
|
|
1031
1031
|
b[5] || (b[5] = $("div", { class: "ck-table__pagination--input-pointer" }, null, -1))
|
|
1032
1032
|
]),
|
|
1033
|
-
(
|
|
1033
|
+
(v(!0), k(K, null, re(r.value, (h) => (v(), k("div", {
|
|
1034
1034
|
class: "ck-table__pagination-item--right",
|
|
1035
|
-
onClick: (
|
|
1036
|
-
},
|
|
1035
|
+
onClick: (B) => i.value = h
|
|
1036
|
+
}, M(h), 9, yn))), 256))
|
|
1037
1037
|
]),
|
|
1038
1038
|
$("div", {
|
|
1039
|
-
class:
|
|
1039
|
+
class: I(["ck-table__pagination--arrow-right", { disabled: !u.value }]),
|
|
1040
1040
|
onClick: b[4] || (b[4] = (h) => g())
|
|
1041
1041
|
}, [
|
|
1042
|
-
U(
|
|
1042
|
+
U(Q, {
|
|
1043
1043
|
icon: u.value ? "angle-right" : "grip-lines-vertical"
|
|
1044
1044
|
}, null, 8, ["icon"])
|
|
1045
1045
|
], 2)
|
|
@@ -1047,7 +1047,7 @@ const mn = /* @__PURE__ */ H(vn, [["__scopeId", "data-v-187caf58"]]), fn = { cla
|
|
|
1047
1047
|
], 2));
|
|
1048
1048
|
}
|
|
1049
1049
|
});
|
|
1050
|
-
const _n = /* @__PURE__ */ H(bn, [["__scopeId", "data-v-a399c4bf"]]), Cn = ["disabled", "checked"], wn = ["textContent"], $n = "m",
|
|
1050
|
+
const _n = /* @__PURE__ */ H(bn, [["__scopeId", "data-v-a399c4bf"]]), Cn = ["disabled", "checked"], wn = ["textContent"], $n = "m", Tn = /* @__PURE__ */ R({
|
|
1051
1051
|
__name: "ck-checkbox",
|
|
1052
1052
|
props: /* @__PURE__ */ oe({
|
|
1053
1053
|
label: {},
|
|
@@ -1063,76 +1063,76 @@ const _n = /* @__PURE__ */ H(bn, [["__scopeId", "data-v-a399c4bf"]]), Cn = ["dis
|
|
|
1063
1063
|
}),
|
|
1064
1064
|
emits: /* @__PURE__ */ oe(["change"], ["update:modelValue"]),
|
|
1065
1065
|
setup(e, { emit: o }) {
|
|
1066
|
-
const t = ge(e, "modelValue"), n = e, a = o,
|
|
1066
|
+
const t = ge(e, "modelValue"), n = e, a = o, i = d(() => ({
|
|
1067
1067
|
"aria-disabled": n.disabled,
|
|
1068
1068
|
tabindex: n.disabled ? void 0 : "0"
|
|
1069
1069
|
})), s = d(() => {
|
|
1070
|
-
const
|
|
1071
|
-
return n.size &&
|
|
1070
|
+
const l = [];
|
|
1071
|
+
return n.size && l.push(`size__${n.size}`), l;
|
|
1072
1072
|
}), c = d(() => {
|
|
1073
|
-
const
|
|
1074
|
-
return n.color &&
|
|
1073
|
+
const l = [];
|
|
1074
|
+
return n.color && L.isColorTemplateVariable(n.color) && (l.push(`ck-component__border-color--${n.color}`), (t.value || t.value === null) && l.push(`ck-component__color-background--${n.color}`)), l;
|
|
1075
1075
|
}), u = d(() => {
|
|
1076
|
-
const
|
|
1077
|
-
return n.color && !
|
|
1076
|
+
const l = [];
|
|
1077
|
+
return n.color && !L.isColorTemplateVariable(n.color) && (l.push({ borderColor: n.color }), (t.value || t.value === null) && l.push({ backgroundColor: n.color })), l;
|
|
1078
1078
|
}), p = d(() => {
|
|
1079
|
-
const
|
|
1080
|
-
return n.colorText &&
|
|
1079
|
+
const l = [];
|
|
1080
|
+
return n.colorText && L.isColorTemplateVariable(n.colorText) && l.push(`ck-component__color--${n.colorText}`), n.textSize && n.textSize !== $n && l.push(`ck-checkbox--label-text-size--${n.textSize}`), l;
|
|
1081
1081
|
}), r = d(() => {
|
|
1082
|
-
const
|
|
1083
|
-
return n.colorText && !
|
|
1082
|
+
const l = [];
|
|
1083
|
+
return n.colorText && !L.isColorTemplateVariable(n.colorText) && l.push({ color: n.colorText }), l;
|
|
1084
1084
|
});
|
|
1085
|
-
function
|
|
1085
|
+
function m() {
|
|
1086
1086
|
n.preventAutoUpdate || (t.value = !t.value);
|
|
1087
1087
|
}
|
|
1088
|
-
return (
|
|
1088
|
+
return (l, g) => (v(), k("label", Ae(i.value, {
|
|
1089
1089
|
class: ["ck-checkbox", s.value],
|
|
1090
1090
|
onKeydown: g[4] || (g[4] = he(se(() => {
|
|
1091
1091
|
}, ["prevent"]), ["space"])),
|
|
1092
1092
|
onKeyup: [
|
|
1093
|
-
g[5] || (g[5] = he((f) =>
|
|
1094
|
-
g[6] || (g[6] = he((f) =>
|
|
1093
|
+
g[5] || (g[5] = he((f) => m(), ["enter"])),
|
|
1094
|
+
g[6] || (g[6] = he((f) => m(), ["space"]))
|
|
1095
1095
|
],
|
|
1096
|
-
onClick: g[7] || (g[7] = se((f) =>
|
|
1096
|
+
onClick: g[7] || (g[7] = se((f) => m(), ["prevent"]))
|
|
1097
1097
|
}), [
|
|
1098
1098
|
$("input", {
|
|
1099
|
-
class:
|
|
1099
|
+
class: I(["ck-checkbox--input", { "ck-checkbox--input__intermediate": t.value === null }]),
|
|
1100
1100
|
"aria-hidden": "true",
|
|
1101
1101
|
type: "checkbox",
|
|
1102
|
-
disabled:
|
|
1102
|
+
disabled: l.disabled,
|
|
1103
1103
|
checked: t.value,
|
|
1104
1104
|
onChange: g[0] || (g[0] = (f) => a("change", f)),
|
|
1105
1105
|
onClick: g[1] || (g[1] = se(() => {
|
|
1106
1106
|
}, ["prevent"]))
|
|
1107
1107
|
}, null, 42, Cn),
|
|
1108
1108
|
$("div", {
|
|
1109
|
-
class:
|
|
1109
|
+
class: I(["ck-checkbox--element", c.value]),
|
|
1110
1110
|
style: F(u.value),
|
|
1111
1111
|
onClick: g[2] || (g[2] = se(() => {
|
|
1112
1112
|
}, ["prevent"]))
|
|
1113
1113
|
}, null, 6),
|
|
1114
|
-
|
|
1114
|
+
l.label || l.$slots.default ? (v(), k("span", {
|
|
1115
1115
|
key: 0,
|
|
1116
|
-
class:
|
|
1116
|
+
class: I(["ck-checkbox--label", p.value]),
|
|
1117
1117
|
style: F(r.value),
|
|
1118
1118
|
onClick: g[3] || (g[3] = se(() => {
|
|
1119
1119
|
}, ["prevent"]))
|
|
1120
1120
|
}, [
|
|
1121
|
-
|
|
1121
|
+
l.label ? (v(), k("span", {
|
|
1122
1122
|
key: 0,
|
|
1123
|
-
textContent:
|
|
1124
|
-
}, null, 8, wn)) :
|
|
1125
|
-
W(
|
|
1126
|
-
], 6)) :
|
|
1123
|
+
textContent: M(l.label)
|
|
1124
|
+
}, null, 8, wn)) : C("", !0),
|
|
1125
|
+
W(l.$slots, "default", {}, void 0, !0)
|
|
1126
|
+
], 6)) : C("", !0)
|
|
1127
1127
|
], 16));
|
|
1128
1128
|
}
|
|
1129
1129
|
});
|
|
1130
|
-
const Pt = /* @__PURE__ */ H(
|
|
1130
|
+
const Pt = /* @__PURE__ */ H(Tn, [["__scopeId", "data-v-a8d6cf84"]]);
|
|
1131
1131
|
function Vt(e) {
|
|
1132
1132
|
const o = e ? "visible" : "hidden";
|
|
1133
1133
|
document.body.style.overflow = o;
|
|
1134
1134
|
}
|
|
1135
|
-
const
|
|
1135
|
+
const Bn = { class: "ck-popup" }, Pn = {
|
|
1136
1136
|
key: 0,
|
|
1137
1137
|
class: "ck-popup__title"
|
|
1138
1138
|
}, Vn = {
|
|
@@ -1171,124 +1171,124 @@ const Tn = { class: "ck-popup" }, Pn = {
|
|
|
1171
1171
|
}),
|
|
1172
1172
|
emits: /* @__PURE__ */ oe(["accept", "cancel", "close"], ["update:modelValue"]),
|
|
1173
1173
|
setup(e, { emit: o }) {
|
|
1174
|
-
const t = ge(e, "modelValue"), n = e, a = o, { cleekOptions:
|
|
1175
|
-
const
|
|
1176
|
-
|
|
1177
|
-
const j = n.textColor ||
|
|
1178
|
-
return j &&
|
|
1174
|
+
const t = ge(e, "modelValue"), n = e, a = o, { cleekOptions: i } = ae(ne()), s = d(() => {
|
|
1175
|
+
const T = [], S = n.layout || i.value.styles.layout;
|
|
1176
|
+
S && T.push(S);
|
|
1177
|
+
const j = n.textColor || i.value.popup.textColor;
|
|
1178
|
+
return j && L.isColorTemplateVariable(j) && T.push(`ck-component__color--${j}`), T;
|
|
1179
1179
|
}), c = d(() => {
|
|
1180
|
-
const
|
|
1181
|
-
|
|
1182
|
-
const j = n.width ? "95%" : n.maxWidth ||
|
|
1183
|
-
j &&
|
|
1184
|
-
const
|
|
1185
|
-
|
|
1180
|
+
const T = [], S = n.fontSize || i.value.popup.fontSize;
|
|
1181
|
+
S && T.push({ "font-size": S }), n.width && T.push({ width: n.width });
|
|
1182
|
+
const j = n.width ? "95%" : n.maxWidth || i.value.popup.maxWidth;
|
|
1183
|
+
j && T.push({ "max-width": j });
|
|
1184
|
+
const ee = n.textColor || i.value.popup.textColor;
|
|
1185
|
+
ee && !L.isColorTemplateVariable(ee) && (T.push(`ck-component__color--${ee}`), T.push({ color: ee }));
|
|
1186
1186
|
let le = "white";
|
|
1187
|
-
return
|
|
1187
|
+
return i.value.popup.backgroundColor && (le = i.value.popup.backgroundColor), i.value.darkMode && (le = i.value.darkModeColorItems), n.backgroundColor && (le = n.backgroundColor), le && !L.isColorTemplateVariable(le) && T.push({ backgroundColor: le }), T;
|
|
1188
1188
|
}), u = d(() => {
|
|
1189
|
-
const
|
|
1190
|
-
let
|
|
1191
|
-
|
|
1192
|
-
let j = n.textColor ||
|
|
1193
|
-
return
|
|
1189
|
+
const T = [];
|
|
1190
|
+
let S = "";
|
|
1191
|
+
i.value.popup.headerColor && (S = i.value.popup.headerColor), i.value.darkMode && (S = i.value.darkModeColorItems), n.headerColor && (S = n.headerColor), S && !L.isColorTemplateVariable(S) && T.push({ backgroundColor: S });
|
|
1192
|
+
let j = n.textColor || i.value.popup.textColor;
|
|
1193
|
+
return i.value.darkMode && (j = i.value.darkModeColorText), j && !L.isColorTemplateVariable(j) && (T.push(`ck-component__color--${j}`), T.push({ color: j })), T;
|
|
1194
1194
|
}), p = d(() => {
|
|
1195
|
-
const
|
|
1196
|
-
let
|
|
1197
|
-
return
|
|
1195
|
+
const T = [];
|
|
1196
|
+
let S = "";
|
|
1197
|
+
return i.value.popup.backgroundColor && (S = i.value.popup.backgroundColor), i.value.darkMode && (S = i.value.darkModeColorItems), n.backgroundColor && (S = n.backgroundColor), S && !L.isColorTemplateVariable(S) && T.push({ backgroundColor: S }), T;
|
|
1198
1198
|
}), r = d(() => {
|
|
1199
|
-
const
|
|
1200
|
-
|
|
1201
|
-
const j = n.headerColor ||
|
|
1202
|
-
return j &&
|
|
1203
|
-
}),
|
|
1204
|
-
ce(() => t.value, (
|
|
1199
|
+
const T = [], S = n.headerAlign || i.value.popup.headerAlign;
|
|
1200
|
+
S && T.push(`header-align--${S}`);
|
|
1201
|
+
const j = n.headerColor || i.value.popup.headerColor;
|
|
1202
|
+
return j && L.isColorTemplateVariable(j) && T.push(`ck-component__bg-color--${j}`), g.value || T.push("close-btn-hidden"), T;
|
|
1203
|
+
}), m = d(() => n.acceptBtnType ? n.acceptBtnType : i.value.popup.acceptBtnType ? i.value.popup.acceptBtnType : "outlined"), l = d(() => n.cancelBtnType ? n.cancelBtnType : i.value.popup.cancelBtnType ? i.value.popup.cancelBtnType : "flat"), g = d(() => !(n.notCloseBtn || n.notClose)), f = d(() => n.acceptBtnText ? n.acceptBtnText : i.value.lang === "es" ? "Aceptar" : "Accept"), y = d(() => n.cancelBtnText ? n.cancelBtnText : i.value.lang === "es" ? "Cancelar" : "Cancel");
|
|
1204
|
+
ce(() => t.value, (T) => Vt(!T));
|
|
1205
1205
|
function b() {
|
|
1206
1206
|
t.value = !1, a("close");
|
|
1207
1207
|
}
|
|
1208
1208
|
function h() {
|
|
1209
1209
|
a("cancel"), n.preventCloseOnCancel || b();
|
|
1210
1210
|
}
|
|
1211
|
-
function
|
|
1211
|
+
function B() {
|
|
1212
1212
|
a("accept");
|
|
1213
1213
|
}
|
|
1214
1214
|
function O() {
|
|
1215
1215
|
n.notCloseByBg || n.notClose || b();
|
|
1216
1216
|
}
|
|
1217
|
-
function P(
|
|
1218
|
-
t.value && (
|
|
1217
|
+
function P(T) {
|
|
1218
|
+
t.value && (T.key === "Escape" && O(), T.key === "Enter" && T.shiftKey && B());
|
|
1219
1219
|
}
|
|
1220
1220
|
return _e(() => {
|
|
1221
1221
|
window.addEventListener("keydown", P);
|
|
1222
1222
|
}), ot(() => {
|
|
1223
1223
|
window.removeEventListener("keydown", P);
|
|
1224
|
-
}), (
|
|
1224
|
+
}), (T, S) => t.value ? (v(), D(xe, {
|
|
1225
1225
|
key: 0,
|
|
1226
1226
|
to: "body"
|
|
1227
1227
|
}, [
|
|
1228
|
-
$("div",
|
|
1229
|
-
|
|
1228
|
+
$("div", Bn, [
|
|
1229
|
+
S[5] || (S[5] = $("div", { class: "blackout" }, null, -1)),
|
|
1230
1230
|
$("div", {
|
|
1231
1231
|
class: "popup-container",
|
|
1232
|
-
onMousedown:
|
|
1232
|
+
onMousedown: S[4] || (S[4] = (j) => O())
|
|
1233
1233
|
}, [
|
|
1234
1234
|
$("div", {
|
|
1235
|
-
class:
|
|
1235
|
+
class: I(["ck-popup__content", s.value]),
|
|
1236
1236
|
style: F(c.value),
|
|
1237
|
-
onMousedown:
|
|
1237
|
+
onMousedown: S[3] || (S[3] = se(() => {
|
|
1238
1238
|
}, ["stop"]))
|
|
1239
1239
|
}, [
|
|
1240
1240
|
$("div", {
|
|
1241
|
-
class:
|
|
1241
|
+
class: I(["ck-popup__slot-header", r.value]),
|
|
1242
1242
|
style: F(u.value)
|
|
1243
1243
|
}, [
|
|
1244
|
-
|
|
1245
|
-
W(
|
|
1246
|
-
g.value ? (
|
|
1244
|
+
T.title ? (v(), k("h3", Pn, M(T.title), 1)) : C("", !0),
|
|
1245
|
+
W(T.$slots, "header"),
|
|
1246
|
+
g.value ? (v(), D(Q, {
|
|
1247
1247
|
key: 1,
|
|
1248
1248
|
class: "icon-close",
|
|
1249
1249
|
icon: "times",
|
|
1250
|
-
onClick:
|
|
1251
|
-
})) :
|
|
1250
|
+
onClick: S[0] || (S[0] = (j) => b())
|
|
1251
|
+
})) : C("", !0)
|
|
1252
1252
|
], 6),
|
|
1253
1253
|
$("div", {
|
|
1254
1254
|
class: "ck-popup__slot-body",
|
|
1255
1255
|
style: F(p.value)
|
|
1256
1256
|
}, [
|
|
1257
|
-
W(
|
|
1257
|
+
W(T.$slots, "default")
|
|
1258
1258
|
], 4),
|
|
1259
|
-
|
|
1259
|
+
T.$slots.footer || T.confirmButtons || T.acceptButton || T.cancelButton ? (v(), k("div", Vn, [
|
|
1260
1260
|
$("div", Dn, [
|
|
1261
|
-
W(
|
|
1261
|
+
W(T.$slots, "footer")
|
|
1262
1262
|
]),
|
|
1263
|
-
|
|
1264
|
-
|
|
1263
|
+
T.confirmButtons || T.acceptButton || T.cancelButton ? (v(), k("div", Ln, [
|
|
1264
|
+
T.confirmButtons || T.cancelButton ? (v(), D(Be, {
|
|
1265
1265
|
key: 0,
|
|
1266
1266
|
color: "danger",
|
|
1267
|
-
type:
|
|
1268
|
-
onClick:
|
|
1267
|
+
type: l.value,
|
|
1268
|
+
onClick: S[1] || (S[1] = (j) => h())
|
|
1269
1269
|
}, {
|
|
1270
1270
|
default: N(() => [
|
|
1271
|
-
G(
|
|
1271
|
+
G(M(y.value), 1)
|
|
1272
1272
|
]),
|
|
1273
1273
|
_: 1
|
|
1274
|
-
}, 8, ["type"])) :
|
|
1275
|
-
|
|
1274
|
+
}, 8, ["type"])) : C("", !0),
|
|
1275
|
+
T.confirmButtons || T.acceptButton ? (v(), D(Be, {
|
|
1276
1276
|
key: 1,
|
|
1277
|
-
type:
|
|
1278
|
-
isLoading:
|
|
1279
|
-
onClick:
|
|
1277
|
+
type: m.value,
|
|
1278
|
+
isLoading: T.isLoading,
|
|
1279
|
+
onClick: S[2] || (S[2] = (j) => B())
|
|
1280
1280
|
}, {
|
|
1281
1281
|
default: N(() => [
|
|
1282
|
-
G(
|
|
1282
|
+
G(M(f.value), 1)
|
|
1283
1283
|
]),
|
|
1284
1284
|
_: 1
|
|
1285
|
-
}, 8, ["type", "isLoading"])) :
|
|
1286
|
-
])) :
|
|
1287
|
-
])) :
|
|
1285
|
+
}, 8, ["type", "isLoading"])) : C("", !0)
|
|
1286
|
+
])) : C("", !0)
|
|
1287
|
+
])) : C("", !0)
|
|
1288
1288
|
], 38)
|
|
1289
1289
|
], 32)
|
|
1290
1290
|
])
|
|
1291
|
-
])) :
|
|
1291
|
+
])) : C("", !0);
|
|
1292
1292
|
}
|
|
1293
1293
|
});
|
|
1294
1294
|
const Sn = { class: "columns-manger-container" }, Mn = /* @__PURE__ */ R({
|
|
@@ -1302,7 +1302,7 @@ const Sn = { class: "columns-manger-container" }, Mn = /* @__PURE__ */ R({
|
|
|
1302
1302
|
setup(e, { emit: o }) {
|
|
1303
1303
|
const t = e, n = o;
|
|
1304
1304
|
let a = x([]);
|
|
1305
|
-
const
|
|
1305
|
+
const i = d({
|
|
1306
1306
|
get() {
|
|
1307
1307
|
return t.modelValue;
|
|
1308
1308
|
},
|
|
@@ -1310,9 +1310,9 @@ const Sn = { class: "columns-manger-container" }, Mn = /* @__PURE__ */ R({
|
|
|
1310
1310
|
n("update:modelValue", u);
|
|
1311
1311
|
}
|
|
1312
1312
|
});
|
|
1313
|
-
ce(() =>
|
|
1313
|
+
ce(() => i.value, (u) => {
|
|
1314
1314
|
u && s();
|
|
1315
|
-
}), ce(() =>
|
|
1315
|
+
}), ce(() => i.value, (u) => {
|
|
1316
1316
|
u && s();
|
|
1317
1317
|
});
|
|
1318
1318
|
function s() {
|
|
@@ -1321,31 +1321,31 @@ const Sn = { class: "columns-manger-container" }, Mn = /* @__PURE__ */ R({
|
|
|
1321
1321
|
p.unchangeable || u.push({
|
|
1322
1322
|
name: p.name,
|
|
1323
1323
|
title: p.title,
|
|
1324
|
-
value:
|
|
1324
|
+
value: L.isColumnDisplayed(p)
|
|
1325
1325
|
});
|
|
1326
1326
|
}), a.value = u;
|
|
1327
1327
|
}
|
|
1328
1328
|
function c(u, p) {
|
|
1329
1329
|
t.columns[u].isDisplayed = p;
|
|
1330
1330
|
}
|
|
1331
|
-
return (u, p) => (
|
|
1332
|
-
modelValue:
|
|
1333
|
-
"onUpdate:modelValue": p[0] || (p[0] = (r) =>
|
|
1331
|
+
return (u, p) => (v(), D(nt, {
|
|
1332
|
+
modelValue: i.value,
|
|
1333
|
+
"onUpdate:modelValue": p[0] || (p[0] = (r) => i.value = r),
|
|
1334
1334
|
title: "Administrador de columnas"
|
|
1335
1335
|
}, {
|
|
1336
1336
|
default: N(() => [
|
|
1337
1337
|
$("div", Sn, [
|
|
1338
|
-
(
|
|
1338
|
+
(v(!0), k(K, null, re(we(a), (r, m) => (v(), k("div", {
|
|
1339
1339
|
class: "columns-manger__item",
|
|
1340
|
-
key:
|
|
1340
|
+
key: m
|
|
1341
1341
|
}, [
|
|
1342
1342
|
U(Pt, {
|
|
1343
1343
|
modelValue: r.value,
|
|
1344
|
-
"onUpdate:modelValue": (
|
|
1345
|
-
onClick: (
|
|
1344
|
+
"onUpdate:modelValue": (l) => r.value = l,
|
|
1345
|
+
onClick: (l) => c(r.name, r.value)
|
|
1346
1346
|
}, {
|
|
1347
1347
|
default: N(() => [
|
|
1348
|
-
G(
|
|
1348
|
+
G(M(r.title), 1)
|
|
1349
1349
|
]),
|
|
1350
1350
|
_: 2
|
|
1351
1351
|
}, 1032, ["modelValue", "onUpdate:modelValue", "onClick"])
|
|
@@ -1356,7 +1356,7 @@ const Sn = { class: "columns-manger-container" }, Mn = /* @__PURE__ */ R({
|
|
|
1356
1356
|
}, 8, ["modelValue"]));
|
|
1357
1357
|
}
|
|
1358
1358
|
});
|
|
1359
|
-
const
|
|
1359
|
+
const In = /* @__PURE__ */ H(Mn, [["__scopeId", "data-v-3f119c7c"]]), xn = /* @__PURE__ */ R({
|
|
1360
1360
|
__name: "LoadingAndNoResultsText",
|
|
1361
1361
|
props: {
|
|
1362
1362
|
listLength: {},
|
|
@@ -1365,10 +1365,10 @@ const xn = /* @__PURE__ */ H(Mn, [["__scopeId", "data-v-3f119c7c"]]), An = /* @_
|
|
|
1365
1365
|
noResultsText: {}
|
|
1366
1366
|
},
|
|
1367
1367
|
setup(e) {
|
|
1368
|
-
const o = e, { cleekOptions: t } = ae(ne()), n = d(() => !(typeof o.listLength > "u" || o.listLength)), a = d(() => o.loadingText ? o.loadingText : t.value.lang === "es" ? "Cargando..." : "Loading..."),
|
|
1368
|
+
const o = e, { cleekOptions: t } = ae(ne()), n = d(() => !(typeof o.listLength > "u" || o.listLength)), a = d(() => o.loadingText ? o.loadingText : t.value.lang === "es" ? "Cargando..." : "Loading..."), i = d(() => o.noResultsText ? o.noResultsText : t.value.lang === "es" ? "No se encontraron resultados" : "No results found");
|
|
1369
1369
|
return (s, c) => {
|
|
1370
1370
|
const u = Y("ck-icon"), p = Y("ck-td"), r = Y("ck-tr");
|
|
1371
|
-
return n.value ? (
|
|
1371
|
+
return n.value ? (v(), D(r, { key: 0 }, {
|
|
1372
1372
|
default: N(() => [
|
|
1373
1373
|
U(p, {
|
|
1374
1374
|
class: "no-result-text",
|
|
@@ -1376,26 +1376,26 @@ const xn = /* @__PURE__ */ H(Mn, [["__scopeId", "data-v-3f119c7c"]]), An = /* @_
|
|
|
1376
1376
|
align: "center"
|
|
1377
1377
|
}, {
|
|
1378
1378
|
default: N(() => [
|
|
1379
|
-
s.isLoading ? (
|
|
1379
|
+
s.isLoading ? (v(), k(K, { key: 0 }, [
|
|
1380
1380
|
U(u, {
|
|
1381
1381
|
class: "mr-2",
|
|
1382
1382
|
icon: "spinner",
|
|
1383
1383
|
spin: ""
|
|
1384
1384
|
}),
|
|
1385
|
-
G(" " +
|
|
1386
|
-
], 64)) : n.value ? (
|
|
1387
|
-
G(
|
|
1388
|
-
], 64)) :
|
|
1385
|
+
G(" " + M(a.value), 1)
|
|
1386
|
+
], 64)) : n.value ? (v(), k(K, { key: 1 }, [
|
|
1387
|
+
G(M(i.value), 1)
|
|
1388
|
+
], 64)) : C("", !0)
|
|
1389
1389
|
]),
|
|
1390
1390
|
_: 1
|
|
1391
1391
|
})
|
|
1392
1392
|
]),
|
|
1393
1393
|
_: 1
|
|
1394
|
-
})) :
|
|
1394
|
+
})) : C("", !0);
|
|
1395
1395
|
};
|
|
1396
1396
|
}
|
|
1397
1397
|
});
|
|
1398
|
-
const pt = /* @__PURE__ */ H(
|
|
1398
|
+
const pt = /* @__PURE__ */ H(xn, [["__scopeId", "data-v-0731cbef"]]), An = { class: "ck-table" }, zn = {
|
|
1399
1399
|
key: 0,
|
|
1400
1400
|
class: "ck-table__header"
|
|
1401
1401
|
}, Rn = {
|
|
@@ -1444,35 +1444,35 @@ const pt = /* @__PURE__ */ H(An, [["__scopeId", "data-v-0731cbef"]]), In = { cla
|
|
|
1444
1444
|
}),
|
|
1445
1445
|
emits: /* @__PURE__ */ oe(["refreshList", "update:search", "update:currentPage"], ["update:selectedRows"]),
|
|
1446
1446
|
setup(e, { emit: o }) {
|
|
1447
|
-
const t = ge(e, "selectedRows"), n = e, a = o, { cleekOptions:
|
|
1447
|
+
const t = ge(e, "selectedRows"), n = e, a = o, { cleekOptions: i } = ae(ne()), { windowWidth: s } = ke(), c = x({
|
|
1448
1448
|
columnsManager: !1
|
|
1449
|
-
}), u = d(() => !!t.value), p = d(() => typeof n.darkMode < "u" ? n.darkMode :
|
|
1449
|
+
}), u = d(() => !!t.value), p = d(() => typeof n.darkMode < "u" ? n.darkMode : i.value.darkMode), r = d(() => Math.ceil(n.listLength / n.itemsPerPage)), m = d(() => n.version ? n.version : i.value ? i.value.table.version : "default"), l = d(() => {
|
|
1450
1450
|
if (n.headerTextColor)
|
|
1451
1451
|
return n.headerTextColor;
|
|
1452
|
-
if (
|
|
1453
|
-
if (
|
|
1454
|
-
return
|
|
1452
|
+
if (i.value) {
|
|
1453
|
+
if (i.value.table.headerTextColor)
|
|
1454
|
+
return i.value.table.headerTextColor;
|
|
1455
1455
|
if (p.value)
|
|
1456
1456
|
return "#ccc";
|
|
1457
1457
|
}
|
|
1458
1458
|
}), g = d(() => {
|
|
1459
1459
|
if (n.headerBackgroundColor)
|
|
1460
1460
|
return n.headerBackgroundColor;
|
|
1461
|
-
if (
|
|
1462
|
-
return
|
|
1463
|
-
}), f = d(() => !h.value[h.value.length - 1].title),
|
|
1464
|
-
if (
|
|
1461
|
+
if (i.value)
|
|
1462
|
+
return i.value.table.headerBackgroundColor;
|
|
1463
|
+
}), f = d(() => !h.value[h.value.length - 1].title), y = d(() => !eo.isArray(n.columns || [])), b = d(() => {
|
|
1464
|
+
if (y.value) {
|
|
1465
1465
|
const q = Object.values(n.columns || []), de = Object.keys(n.columns || []);
|
|
1466
|
-
return q.forEach((me,
|
|
1467
|
-
const
|
|
1468
|
-
me.name =
|
|
1466
|
+
return q.forEach((me, w) => {
|
|
1467
|
+
const A = de[w];
|
|
1468
|
+
me.name = A;
|
|
1469
1469
|
}), q;
|
|
1470
1470
|
}
|
|
1471
1471
|
const V = [];
|
|
1472
1472
|
return (n.columns || []).forEach((q) => {
|
|
1473
1473
|
typeof q == "string" ? V.push({ title: q }) : V.push(q);
|
|
1474
1474
|
}), V;
|
|
1475
|
-
}), h = d(() => b.value.filter(
|
|
1475
|
+
}), h = d(() => b.value.filter(L.isColumnDisplayed)), B = d({
|
|
1476
1476
|
// @ts-ignore
|
|
1477
1477
|
get() {
|
|
1478
1478
|
return n.search;
|
|
@@ -1487,17 +1487,17 @@ const pt = /* @__PURE__ */ H(An, [["__scopeId", "data-v-0731cbef"]]), In = { cla
|
|
|
1487
1487
|
set(V) {
|
|
1488
1488
|
a("update:currentPage", V);
|
|
1489
1489
|
}
|
|
1490
|
-
}), P = d(() => n.layout ||
|
|
1491
|
-
function
|
|
1490
|
+
}), P = d(() => n.layout || i.value.styles.layout), T = d(() => s.value <= (+n.mobileMaxWidth || 0));
|
|
1491
|
+
function S(V = !1) {
|
|
1492
1492
|
a("refreshList", V);
|
|
1493
1493
|
}
|
|
1494
1494
|
function j() {
|
|
1495
|
-
|
|
1495
|
+
y.value ? c.value.columnsManager = !0 : console.log("ERROR ck-table", "The columns list should be an object");
|
|
1496
1496
|
}
|
|
1497
|
-
const
|
|
1497
|
+
const ee = d(() => {
|
|
1498
1498
|
var de;
|
|
1499
1499
|
const V = [];
|
|
1500
|
-
return n.cellPadding && V.push(`table__cell-padding--${n.cellPadding}`), n.cellPaddingY && V.push(`table__cell-padding-y--${n.cellPaddingY}`), n.notFullWidth && V.push("not-full-width"), p.value && V.push("dark-mode"), (n.striped || ((de =
|
|
1500
|
+
return n.cellPadding && V.push(`table__cell-padding--${n.cellPadding}`), n.cellPaddingY && V.push(`table__cell-padding-y--${n.cellPaddingY}`), n.notFullWidth && V.push("not-full-width"), p.value && V.push("dark-mode"), (n.striped || ((de = i.value.table) == null ? void 0 : de.striped)) && V.push("striped-table"), V;
|
|
1501
1501
|
}), le = d(() => {
|
|
1502
1502
|
const V = n.rows.map((q) => q[De]);
|
|
1503
1503
|
if (t.value.areAllRowsSelecteds(V))
|
|
@@ -1510,28 +1510,28 @@ const pt = /* @__PURE__ */ H(An, [["__scopeId", "data-v-0731cbef"]]), In = { cla
|
|
|
1510
1510
|
le.value ? t.value.removeManyRows(V) : t.value.addManyRows(V);
|
|
1511
1511
|
}
|
|
1512
1512
|
return (V, q) => {
|
|
1513
|
-
var
|
|
1514
|
-
const de = Y("ck-checkbox"), me = Y("ck-chip"),
|
|
1515
|
-
return
|
|
1516
|
-
V.hasColumnsManager &&
|
|
1513
|
+
var te, ie, Z, Ce;
|
|
1514
|
+
const de = Y("ck-checkbox"), me = Y("ck-chip"), w = Y("ck-button"), A = Y("ck-th");
|
|
1515
|
+
return v(), k(K, null, [
|
|
1516
|
+
V.hasColumnsManager && y.value ? (v(), D(In, {
|
|
1517
1517
|
key: 0,
|
|
1518
1518
|
modelValue: c.value.columnsManager,
|
|
1519
|
-
"onUpdate:modelValue": q[0] || (q[0] = (
|
|
1519
|
+
"onUpdate:modelValue": q[0] || (q[0] = (J) => c.value.columnsManager = J),
|
|
1520
1520
|
isLoading: V.isLoading,
|
|
1521
1521
|
columnsArray: b.value,
|
|
1522
1522
|
columns: V.columns || []
|
|
1523
|
-
}, null, 8, ["modelValue", "isLoading", "columnsArray", "columns"])) :
|
|
1524
|
-
$("div",
|
|
1525
|
-
V.$slots.header || !V.hideHeaderActions ? (
|
|
1523
|
+
}, null, 8, ["modelValue", "isLoading", "columnsArray", "columns"])) : C("", !0),
|
|
1524
|
+
$("div", An, [
|
|
1525
|
+
V.$slots.header || !V.hideHeaderActions ? (v(), k("div", zn, [
|
|
1526
1526
|
U(mn, {
|
|
1527
|
-
modelValue:
|
|
1528
|
-
"onUpdate:modelValue": q[1] || (q[1] = (
|
|
1527
|
+
modelValue: B.value,
|
|
1528
|
+
"onUpdate:modelValue": q[1] || (q[1] = (J) => B.value = J),
|
|
1529
1529
|
hideHeaderActions: V.hideHeaderActions,
|
|
1530
1530
|
hideRefreshBtn: V.hideRefreshBtn,
|
|
1531
1531
|
layout: P.value,
|
|
1532
|
-
version:
|
|
1532
|
+
version: m.value,
|
|
1533
1533
|
isLoading: V.isLoading,
|
|
1534
|
-
onRefreshList: q[2] || (q[2] = (
|
|
1534
|
+
onRefreshList: q[2] || (q[2] = (J) => S(J))
|
|
1535
1535
|
}, {
|
|
1536
1536
|
headerActionsLeft: N(() => [
|
|
1537
1537
|
W(V.$slots, "headerActionsLeft", {}, void 0, !0)
|
|
@@ -1541,18 +1541,18 @@ const pt = /* @__PURE__ */ H(An, [["__scopeId", "data-v-0731cbef"]]), In = { cla
|
|
|
1541
1541
|
]),
|
|
1542
1542
|
_: 3
|
|
1543
1543
|
}, 8, ["modelValue", "hideHeaderActions", "hideRefreshBtn", "layout", "version", "isLoading"]),
|
|
1544
|
-
V.$slots.header ? (
|
|
1544
|
+
V.$slots.header ? (v(), k("div", {
|
|
1545
1545
|
key: 0,
|
|
1546
|
-
class:
|
|
1546
|
+
class: I(["ck-table__header--slot", { "full-width": V.hideHeaderActions }])
|
|
1547
1547
|
}, [
|
|
1548
1548
|
W(V.$slots, "header", {}, void 0, !0)
|
|
1549
|
-
], 2)) :
|
|
1550
|
-
])) :
|
|
1551
|
-
V.$slots.headerBottom ? (
|
|
1549
|
+
], 2)) : C("", !0)
|
|
1550
|
+
])) : C("", !0),
|
|
1551
|
+
V.$slots.headerBottom ? (v(), k("div", Rn, [
|
|
1552
1552
|
W(V.$slots, "headerBottom", {}, void 0, !0)
|
|
1553
|
-
])) :
|
|
1554
|
-
u.value || h.value.length && !(V.$slots.mobile &&
|
|
1555
|
-
(ie = (
|
|
1553
|
+
])) : C("", !0),
|
|
1554
|
+
u.value || h.value.length && !(V.$slots.mobile && T.value) ? (v(), k("div", Wn, [
|
|
1555
|
+
(ie = (te = t.value) == null ? void 0 : te.ids) != null && ie.size ? (v(), k("div", On, [
|
|
1556
1556
|
$("div", En, [
|
|
1557
1557
|
U(de, {
|
|
1558
1558
|
class: "main-checkbox",
|
|
@@ -1560,22 +1560,22 @@ const pt = /* @__PURE__ */ H(An, [["__scopeId", "data-v-0731cbef"]]), In = { cla
|
|
|
1560
1560
|
size: "xs",
|
|
1561
1561
|
color: "#BABDBF",
|
|
1562
1562
|
modelValue: le.value,
|
|
1563
|
-
onClick: q[3] || (q[3] = (
|
|
1563
|
+
onClick: q[3] || (q[3] = (J) => $e())
|
|
1564
1564
|
}, null, 8, ["modelValue"]),
|
|
1565
1565
|
U(me, {
|
|
1566
1566
|
class: "nowrap cursor-pointer",
|
|
1567
1567
|
size: "s",
|
|
1568
1568
|
iconRight: "times",
|
|
1569
|
-
onClick: q[4] || (q[4] = (
|
|
1569
|
+
onClick: q[4] || (q[4] = (J) => t.value.removeAll())
|
|
1570
1570
|
}, {
|
|
1571
1571
|
default: N(() => [
|
|
1572
|
-
G(
|
|
1572
|
+
G(M(t.value.ids.size) + " seleccionado" + M(t.value.ids.size === 1 ? "" : "s"), 1)
|
|
1573
1573
|
]),
|
|
1574
1574
|
_: 1
|
|
1575
1575
|
})
|
|
1576
1576
|
]),
|
|
1577
1577
|
W(V.$slots, "selectedRowsActions", {}, void 0, !0),
|
|
1578
|
-
V.currentPage && r.value > 1 ? (
|
|
1578
|
+
V.currentPage && r.value > 1 ? (v(), D(w, {
|
|
1579
1579
|
key: 0,
|
|
1580
1580
|
size: "s",
|
|
1581
1581
|
color: "dark"
|
|
@@ -1584,37 +1584,37 @@ const pt = /* @__PURE__ */ H(An, [["__scopeId", "data-v-0731cbef"]]), In = { cla
|
|
|
1584
1584
|
G(" seleccionar todas las páginas ")
|
|
1585
1585
|
])),
|
|
1586
1586
|
_: 1
|
|
1587
|
-
})) :
|
|
1588
|
-
])) :
|
|
1589
|
-
])) :
|
|
1590
|
-
|
|
1587
|
+
})) : C("", !0)
|
|
1588
|
+
])) : C("", !0)
|
|
1589
|
+
])) : C("", !0),
|
|
1590
|
+
T.value ? C("", !0) : (v(), k("div", {
|
|
1591
1591
|
key: 3,
|
|
1592
|
-
class:
|
|
1592
|
+
class: I(["ck-table__table-container", { "not-overflow": V.notOverflow }])
|
|
1593
1593
|
}, [
|
|
1594
1594
|
$("table", {
|
|
1595
|
-
class:
|
|
1595
|
+
class: I(["ck-table__table", ee.value])
|
|
1596
1596
|
}, [
|
|
1597
|
-
(Ce = (Z = t.value) == null ? void 0 : Z.ids) != null && Ce.size ?
|
|
1597
|
+
(Ce = (Z = t.value) == null ? void 0 : Z.ids) != null && Ce.size ? C("", !0) : (v(), k("thead", Nn, [
|
|
1598
1598
|
$("tr", null, [
|
|
1599
|
-
u.value ? (
|
|
1599
|
+
u.value ? (v(), k("th", Fn, [
|
|
1600
1600
|
U(de, {
|
|
1601
1601
|
class: "main-checkbox",
|
|
1602
1602
|
usesThirdState: "",
|
|
1603
1603
|
size: "xs",
|
|
1604
1604
|
color: "#BABDBF",
|
|
1605
1605
|
modelValue: le.value,
|
|
1606
|
-
onClick: q[5] || (q[5] = (
|
|
1606
|
+
onClick: q[5] || (q[5] = (J) => $e())
|
|
1607
1607
|
}, null, 8, ["modelValue"])
|
|
1608
|
-
])) :
|
|
1609
|
-
(
|
|
1610
|
-
align:
|
|
1611
|
-
"min-width":
|
|
1612
|
-
textColor:
|
|
1608
|
+
])) : C("", !0),
|
|
1609
|
+
(v(!0), k(K, null, re(h.value, (J, Te) => (v(), D(A, {
|
|
1610
|
+
align: J.align,
|
|
1611
|
+
"min-width": J.minWidth,
|
|
1612
|
+
textColor: l.value,
|
|
1613
1613
|
backgroundColor: g.value
|
|
1614
1614
|
}, {
|
|
1615
1615
|
default: N(() => [
|
|
1616
|
-
G(
|
|
1617
|
-
|
|
1616
|
+
G(M(J.title) + " ", 1),
|
|
1617
|
+
Te === h.value.length - 1 && V.hasColumnsManager ? (v(), k("div", {
|
|
1618
1618
|
key: 0,
|
|
1619
1619
|
style: F(f.value ? "" : { "margin-left": "auto", "padding-left": "1rem" })
|
|
1620
1620
|
}, [
|
|
@@ -1622,7 +1622,7 @@ const pt = /* @__PURE__ */ H(An, [["__scopeId", "data-v-0731cbef"]]), In = { cla
|
|
|
1622
1622
|
layout: V.layout,
|
|
1623
1623
|
onClick: q[6] || (q[6] = (He) => j())
|
|
1624
1624
|
}, null, 8, ["layout"])
|
|
1625
|
-
], 4)) :
|
|
1625
|
+
], 4)) : C("", !0)
|
|
1626
1626
|
]),
|
|
1627
1627
|
_: 2
|
|
1628
1628
|
}, 1032, ["align", "min-width", "textColor", "backgroundColor"]))), 256))
|
|
@@ -1631,11 +1631,11 @@ const pt = /* @__PURE__ */ H(An, [["__scopeId", "data-v-0731cbef"]]), In = { cla
|
|
|
1631
1631
|
$("tbody", null, [
|
|
1632
1632
|
W(V.$slots, "default", {}, void 0, !0),
|
|
1633
1633
|
W(V.$slots, "desktop", {}, void 0, !0),
|
|
1634
|
-
(
|
|
1635
|
-
key:
|
|
1634
|
+
(v(!0), k(K, null, re(V.rows, (J, Te) => (v(), D($t, {
|
|
1635
|
+
key: J[De]
|
|
1636
1636
|
}, {
|
|
1637
1637
|
default: N(() => [
|
|
1638
|
-
u.value ? (
|
|
1638
|
+
u.value ? (v(), D(Tt, {
|
|
1639
1639
|
key: 0,
|
|
1640
1640
|
autoWidth: ""
|
|
1641
1641
|
}, {
|
|
@@ -1643,15 +1643,15 @@ const pt = /* @__PURE__ */ H(An, [["__scopeId", "data-v-0731cbef"]]), In = { cla
|
|
|
1643
1643
|
U(de, {
|
|
1644
1644
|
size: "xs",
|
|
1645
1645
|
color: "#BABDBF",
|
|
1646
|
-
modelValue: t.value.isRowSelected(
|
|
1647
|
-
onClick: (He) => t.value.switchValue(
|
|
1646
|
+
modelValue: t.value.isRowSelected(J[De]),
|
|
1647
|
+
onClick: (He) => t.value.switchValue(J[De])
|
|
1648
1648
|
}, null, 8, ["modelValue", "onClick"])
|
|
1649
1649
|
]),
|
|
1650
1650
|
_: 2
|
|
1651
|
-
}, 1024)) :
|
|
1651
|
+
}, 1024)) : C("", !0),
|
|
1652
1652
|
W(V.$slots, "row", {
|
|
1653
|
-
row:
|
|
1654
|
-
rowIndex:
|
|
1653
|
+
row: J,
|
|
1654
|
+
rowIndex: Te
|
|
1655
1655
|
}, void 0, !0)
|
|
1656
1656
|
]),
|
|
1657
1657
|
_: 2
|
|
@@ -1663,12 +1663,12 @@ const pt = /* @__PURE__ */ H(An, [["__scopeId", "data-v-0731cbef"]]), In = { cla
|
|
|
1663
1663
|
noResultsText: V.noResultsText
|
|
1664
1664
|
}, null, 8, ["listLength", "isLoading", "loadingText", "noResultsText"])
|
|
1665
1665
|
]),
|
|
1666
|
-
V.$slots.footer ? (
|
|
1666
|
+
V.$slots.footer ? (v(), k("tfoot", jn, [
|
|
1667
1667
|
W(V.$slots, "footer", {}, void 0, !0)
|
|
1668
|
-
])) :
|
|
1668
|
+
])) : C("", !0)
|
|
1669
1669
|
], 2)
|
|
1670
1670
|
], 2)),
|
|
1671
|
-
|
|
1671
|
+
T.value ? (v(), k("div", Hn, [
|
|
1672
1672
|
W(V.$slots, "mobile", {}, void 0, !0),
|
|
1673
1673
|
U(pt, {
|
|
1674
1674
|
listLength: V.listLength,
|
|
@@ -1676,25 +1676,25 @@ const pt = /* @__PURE__ */ H(An, [["__scopeId", "data-v-0731cbef"]]), In = { cla
|
|
|
1676
1676
|
loadingText: V.loadingText,
|
|
1677
1677
|
noResultsText: V.noResultsText
|
|
1678
1678
|
}, null, 8, ["listLength", "isLoading", "loadingText", "noResultsText"])
|
|
1679
|
-
])) :
|
|
1679
|
+
])) : C("", !0),
|
|
1680
1680
|
U(Ko, {
|
|
1681
1681
|
currentPage: V.currentPage,
|
|
1682
1682
|
itemsPerPage: V.itemsPerPage,
|
|
1683
1683
|
hideItemsPerPage: V.hideItemsPerPage,
|
|
1684
1684
|
listLength: V.listLength
|
|
1685
1685
|
}, null, 8, ["currentPage", "itemsPerPage", "hideItemsPerPage", "listLength"]),
|
|
1686
|
-
V.currentPage && r.value > 1 ? (
|
|
1686
|
+
V.currentPage && r.value > 1 ? (v(), D(_n, {
|
|
1687
1687
|
key: 5,
|
|
1688
1688
|
currentPage: O.value,
|
|
1689
|
-
"onUpdate:currentPage": q[7] || (q[7] = (
|
|
1689
|
+
"onUpdate:currentPage": q[7] || (q[7] = (J) => O.value = J),
|
|
1690
1690
|
class: "ck-table__pagination",
|
|
1691
1691
|
totalPages: r.value,
|
|
1692
1692
|
itemsPerPage: V.itemsPerPage,
|
|
1693
1693
|
listLength: V.listLength,
|
|
1694
1694
|
align: V.paginationAlign,
|
|
1695
1695
|
layout: P.value,
|
|
1696
|
-
onRefreshList: q[8] || (q[8] = (
|
|
1697
|
-
}, null, 8, ["currentPage", "totalPages", "itemsPerPage", "listLength", "align", "layout"])) :
|
|
1696
|
+
onRefreshList: q[8] || (q[8] = (J) => S(!0))
|
|
1697
|
+
}, null, 8, ["currentPage", "totalPages", "itemsPerPage", "listLength", "align", "layout"])) : C("", !0)
|
|
1698
1698
|
])
|
|
1699
1699
|
], 64);
|
|
1700
1700
|
};
|
|
@@ -1715,7 +1715,7 @@ const Un = /* @__PURE__ */ H(qn, [["__scopeId", "data-v-c7c24c40"]]), Yn = /* @_
|
|
|
1715
1715
|
},
|
|
1716
1716
|
emits: ["update:modelValue"],
|
|
1717
1717
|
setup(e, { emit: o }) {
|
|
1718
|
-
const t = e, n = o, { cleekOptions: a } = ae(ne()),
|
|
1718
|
+
const t = e, n = o, { cleekOptions: a } = ae(ne()), i = d({
|
|
1719
1719
|
get() {
|
|
1720
1720
|
return t.modelValue;
|
|
1721
1721
|
},
|
|
@@ -1728,56 +1728,56 @@ const Un = /* @__PURE__ */ H(qn, [["__scopeId", "data-v-c7c24c40"]]), Yn = /* @_
|
|
|
1728
1728
|
}), c = d(() => {
|
|
1729
1729
|
const b = t.btnType || a.value.button.type;
|
|
1730
1730
|
return b.toLowerCase() === "filled" ? "outlined" : b;
|
|
1731
|
-
}), u = d(() => t.btnLayout || a.value.styles.layout), p = d(() => t.maxStep === 1 || c.value === "flat" ? "" : "center"), r = d(() => c.value === "flat" ? "" : "left"),
|
|
1731
|
+
}), u = d(() => t.btnLayout || a.value.styles.layout), p = d(() => t.maxStep === 1 || c.value === "flat" ? "" : "center"), r = d(() => c.value === "flat" ? "" : "left"), m = d(() => c.value === "flat" ? "" : "right"), l = d(() => i.value === 1 ? t.iconDisableLeft ? t.iconDisableLeft : "grip-lines-vertical" : t.iconArrowLeft ? t.iconArrowLeft : "arrow-left"), g = d(() => i.value === t.maxStep ? t.iconDisableRight ? t.iconDisableRight : "grip-lines-vertical" : t.iconArrowRight ? t.iconArrowRight : "arrow-right");
|
|
1732
1732
|
function f() {
|
|
1733
|
-
|
|
1733
|
+
i.value <= 1 || (i.value = i.value - 1);
|
|
1734
1734
|
}
|
|
1735
|
-
function
|
|
1736
|
-
|
|
1735
|
+
function y() {
|
|
1736
|
+
i.value >= t.maxStep || (i.value = i.value + 1);
|
|
1737
1737
|
}
|
|
1738
1738
|
return (b, h) => {
|
|
1739
|
-
const
|
|
1740
|
-
return
|
|
1741
|
-
class:
|
|
1739
|
+
const B = Y("ck-button");
|
|
1740
|
+
return v(), k("div", {
|
|
1741
|
+
class: I(["ck-pagination", s.value])
|
|
1742
1742
|
}, [
|
|
1743
|
-
U(
|
|
1743
|
+
U(B, {
|
|
1744
1744
|
width: "42px",
|
|
1745
1745
|
align: "center",
|
|
1746
1746
|
group: r.value,
|
|
1747
1747
|
type: c.value,
|
|
1748
1748
|
layout: u.value,
|
|
1749
|
-
icon:
|
|
1749
|
+
icon: l.value,
|
|
1750
1750
|
onClick: h[0] || (h[0] = (O) => f())
|
|
1751
1751
|
}, null, 8, ["group", "type", "layout", "icon"]),
|
|
1752
|
-
|
|
1752
|
+
i.value - 2 >= 1 ? (v(), D(B, {
|
|
1753
1753
|
key: 0,
|
|
1754
1754
|
width: "42px",
|
|
1755
1755
|
align: "center",
|
|
1756
1756
|
group: p.value,
|
|
1757
1757
|
type: c.value,
|
|
1758
1758
|
layout: u.value,
|
|
1759
|
-
onClick: h[1] || (h[1] = (O) =>
|
|
1759
|
+
onClick: h[1] || (h[1] = (O) => i.value = i.value - 2)
|
|
1760
1760
|
}, {
|
|
1761
1761
|
default: N(() => [
|
|
1762
|
-
G(
|
|
1762
|
+
G(M(i.value - 2), 1)
|
|
1763
1763
|
]),
|
|
1764
1764
|
_: 1
|
|
1765
|
-
}, 8, ["group", "type", "layout"])) :
|
|
1766
|
-
|
|
1765
|
+
}, 8, ["group", "type", "layout"])) : C("", !0),
|
|
1766
|
+
i.value - 1 >= 1 ? (v(), D(B, {
|
|
1767
1767
|
key: 1,
|
|
1768
1768
|
width: "42px",
|
|
1769
1769
|
align: "center",
|
|
1770
1770
|
group: p.value,
|
|
1771
1771
|
type: c.value,
|
|
1772
1772
|
layout: u.value,
|
|
1773
|
-
onClick: h[2] || (h[2] = (O) =>
|
|
1773
|
+
onClick: h[2] || (h[2] = (O) => i.value = i.value - 1)
|
|
1774
1774
|
}, {
|
|
1775
1775
|
default: N(() => [
|
|
1776
|
-
G(
|
|
1776
|
+
G(M(i.value - 1), 1)
|
|
1777
1777
|
]),
|
|
1778
1778
|
_: 1
|
|
1779
|
-
}, 8, ["group", "type", "layout"])) :
|
|
1780
|
-
U(
|
|
1779
|
+
}, 8, ["group", "type", "layout"])) : C("", !0),
|
|
1780
|
+
U(B, {
|
|
1781
1781
|
type: "filled",
|
|
1782
1782
|
width: "42px",
|
|
1783
1783
|
align: "center",
|
|
@@ -1785,46 +1785,46 @@ const Un = /* @__PURE__ */ H(qn, [["__scopeId", "data-v-c7c24c40"]]), Yn = /* @_
|
|
|
1785
1785
|
layout: u.value
|
|
1786
1786
|
}, {
|
|
1787
1787
|
default: N(() => [
|
|
1788
|
-
G(
|
|
1788
|
+
G(M(i.value), 1)
|
|
1789
1789
|
]),
|
|
1790
1790
|
_: 1
|
|
1791
1791
|
}, 8, ["group", "layout"]),
|
|
1792
|
-
|
|
1792
|
+
i.value + 1 <= b.maxStep ? (v(), D(B, {
|
|
1793
1793
|
key: 2,
|
|
1794
1794
|
width: "42px",
|
|
1795
1795
|
align: "center",
|
|
1796
1796
|
group: p.value,
|
|
1797
1797
|
type: c.value,
|
|
1798
1798
|
layout: u.value,
|
|
1799
|
-
onClick: h[3] || (h[3] = (O) =>
|
|
1799
|
+
onClick: h[3] || (h[3] = (O) => i.value = i.value + 1)
|
|
1800
1800
|
}, {
|
|
1801
1801
|
default: N(() => [
|
|
1802
|
-
G(
|
|
1802
|
+
G(M(i.value + 1), 1)
|
|
1803
1803
|
]),
|
|
1804
1804
|
_: 1
|
|
1805
|
-
}, 8, ["group", "type", "layout"])) :
|
|
1806
|
-
|
|
1805
|
+
}, 8, ["group", "type", "layout"])) : C("", !0),
|
|
1806
|
+
i.value + 2 <= b.maxStep ? (v(), D(B, {
|
|
1807
1807
|
key: 3,
|
|
1808
1808
|
group: "center",
|
|
1809
1809
|
width: "42px",
|
|
1810
1810
|
align: "center",
|
|
1811
1811
|
type: c.value,
|
|
1812
1812
|
layout: u.value,
|
|
1813
|
-
onClick: h[4] || (h[4] = (O) =>
|
|
1813
|
+
onClick: h[4] || (h[4] = (O) => i.value = i.value + 2)
|
|
1814
1814
|
}, {
|
|
1815
1815
|
default: N(() => [
|
|
1816
|
-
G(
|
|
1816
|
+
G(M(i.value + 2), 1)
|
|
1817
1817
|
]),
|
|
1818
1818
|
_: 1
|
|
1819
|
-
}, 8, ["type", "layout"])) :
|
|
1820
|
-
U(
|
|
1819
|
+
}, 8, ["type", "layout"])) : C("", !0),
|
|
1820
|
+
U(B, {
|
|
1821
1821
|
width: "42px",
|
|
1822
1822
|
align: "center",
|
|
1823
|
-
group:
|
|
1823
|
+
group: m.value,
|
|
1824
1824
|
type: c.value,
|
|
1825
1825
|
layout: u.value,
|
|
1826
1826
|
icon: g.value,
|
|
1827
|
-
onClick: h[5] || (h[5] = (O) =>
|
|
1827
|
+
onClick: h[5] || (h[5] = (O) => y())
|
|
1828
1828
|
}, null, 8, ["group", "type", "layout", "icon"])
|
|
1829
1829
|
], 2);
|
|
1830
1830
|
};
|
|
@@ -1841,14 +1841,14 @@ const Gn = { class: "ck-th" }, Zn = "left", Kn = /* @__PURE__ */ R({
|
|
|
1841
1841
|
setup(e) {
|
|
1842
1842
|
const o = e, t = d(() => {
|
|
1843
1843
|
const a = [];
|
|
1844
|
-
return a.push(`align-${o.align || Zn}`), o.textColor &&
|
|
1844
|
+
return a.push(`align-${o.align || Zn}`), o.textColor && L.isColorTemplateVariable(o.textColor) && a.push(`ck-component__color--${o.textColor}`), o.backgroundColor && L.isColorTemplateVariable(o.backgroundColor) && a.push(`ck-component__bg-color--${o.backgroundColor}`), a;
|
|
1845
1845
|
}), n = d(() => {
|
|
1846
1846
|
const a = [];
|
|
1847
|
-
return o.minWidth && a.push({ "min-width": o.minWidth }), o.textColor && !
|
|
1847
|
+
return o.minWidth && a.push({ "min-width": o.minWidth }), o.textColor && !L.isColorTemplateVariable(o.textColor) && a.push({ color: o.textColor || "white" }), o.backgroundColor && !L.isColorTemplateVariable(o.backgroundColor) && a.push({ backgroundColor: o.backgroundColor }), a;
|
|
1848
1848
|
});
|
|
1849
|
-
return (a,
|
|
1849
|
+
return (a, i) => (v(), k("th", Gn, [
|
|
1850
1850
|
$("span", {
|
|
1851
|
-
class:
|
|
1851
|
+
class: I(t.value),
|
|
1852
1852
|
style: F(n.value)
|
|
1853
1853
|
}, [
|
|
1854
1854
|
W(a.$slots, "default", {}, void 0, !0)
|
|
@@ -1945,9 +1945,9 @@ const Jn = ["year", "month", "day", "time", "custom"], Xn = R({
|
|
|
1945
1945
|
})
|
|
1946
1946
|
])
|
|
1947
1947
|
], -1)), la = { class: "v3dp__body" }, ia = { class: "v3dp__subheading" }, sa = /* @__PURE__ */ at(() => /* @__PURE__ */ $("hr", { class: "v3dp__divider" }, null, -1)), ra = { class: "v3dp__elements" }, ua = ["disabled", "onClick"];
|
|
1948
|
-
function ca(e, o, t, n, a,
|
|
1949
|
-
return
|
|
1950
|
-
class:
|
|
1948
|
+
function ca(e, o, t, n, a, i) {
|
|
1949
|
+
return v(), k("div", {
|
|
1950
|
+
class: I(["v3dp__popout", `v3dp__popout-${e.viewMode}`]),
|
|
1951
1951
|
style: F({ "--popout-column-definition": `repeat(${e.columnCount}, 1fr)` }),
|
|
1952
1952
|
onMousedown: o[3] || (o[3] = se(() => {
|
|
1953
1953
|
}, ["prevent"]))
|
|
@@ -1962,7 +1962,7 @@ function ca(e, o, t, n, a, l) {
|
|
|
1962
1962
|
oa
|
|
1963
1963
|
], !0)
|
|
1964
1964
|
], 8, ta),
|
|
1965
|
-
(
|
|
1965
|
+
(v(), D(Nt(e.headingClickable ? "button" : "span"), {
|
|
1966
1966
|
class: "v3dp__heading__center",
|
|
1967
1967
|
onClick: o[1] || (o[1] = se((s) => e.$emit("heading"), ["stop", "prevent"]))
|
|
1968
1968
|
}, {
|
|
@@ -1982,18 +1982,18 @@ function ca(e, o, t, n, a, l) {
|
|
|
1982
1982
|
], 8, na)
|
|
1983
1983
|
]),
|
|
1984
1984
|
$("div", la, [
|
|
1985
|
-
"subheading" in e.$slots ? (
|
|
1985
|
+
"subheading" in e.$slots ? (v(), k(K, { key: 0 }, [
|
|
1986
1986
|
$("div", ia, [
|
|
1987
1987
|
W(e.$slots, "subheading", {}, void 0, !0)
|
|
1988
1988
|
]),
|
|
1989
1989
|
sa
|
|
1990
|
-
], 64)) :
|
|
1990
|
+
], 64)) : C("", !0),
|
|
1991
1991
|
$("div", ra, [
|
|
1992
1992
|
W(e.$slots, "body", {}, () => [
|
|
1993
|
-
(
|
|
1993
|
+
(v(!0), k(K, null, re(e.items, (s) => (v(), k("button", {
|
|
1994
1994
|
key: s.key,
|
|
1995
1995
|
disabled: s.disabled,
|
|
1996
|
-
class:
|
|
1996
|
+
class: I([
|
|
1997
1997
|
{
|
|
1998
1998
|
selected: s.selected,
|
|
1999
1999
|
current: s.current
|
|
@@ -2002,7 +2002,7 @@ function ca(e, o, t, n, a, l) {
|
|
|
2002
2002
|
]),
|
|
2003
2003
|
onClick: se((c) => e.$emit("elementClick", s.value), ["stop", "prevent"])
|
|
2004
2004
|
}, [
|
|
2005
|
-
$("span", null,
|
|
2005
|
+
$("span", null, M(s.display), 1)
|
|
2006
2006
|
], 10, ua))), 128))
|
|
2007
2007
|
], !0)
|
|
2008
2008
|
])
|
|
@@ -2036,7 +2036,7 @@ const je = /* @__PURE__ */ Pe(Xn, [["render", ca], ["__scopeId", "data-v-65eb861
|
|
|
2036
2036
|
}
|
|
2037
2037
|
},
|
|
2038
2038
|
setup(e, { emit: o }) {
|
|
2039
|
-
const t = d(() => oo(e.pageDate)), n = d(() => no(e.pageDate)), a = (p, r,
|
|
2039
|
+
const t = d(() => oo(e.pageDate)), n = d(() => no(e.pageDate)), a = (p, r, m) => !r && !m ? !0 : !(r && ve(p) < ve(r) || m && ve(p) > ve(m)), i = d(
|
|
2040
2040
|
() => ao({
|
|
2041
2041
|
start: t.value,
|
|
2042
2042
|
end: n.value
|
|
@@ -2055,10 +2055,10 @@ const je = /* @__PURE__ */ Pe(Xn, [["render", ca], ["__scopeId", "data-v-65eb861
|
|
|
2055
2055
|
}), c = d(
|
|
2056
2056
|
() => e.lowerLimit && (We(e.lowerLimit) === We(e.pageDate) || Me(e.pageDate, e.lowerLimit))
|
|
2057
2057
|
), u = d(
|
|
2058
|
-
() => e.upperLimit && (We(e.upperLimit) === We(e.pageDate) ||
|
|
2058
|
+
() => e.upperLimit && (We(e.upperLimit) === We(e.pageDate) || Ie(e.pageDate, e.upperLimit))
|
|
2059
2059
|
);
|
|
2060
2060
|
return {
|
|
2061
|
-
years:
|
|
2061
|
+
years: i,
|
|
2062
2062
|
heading: s,
|
|
2063
2063
|
leftDisabled: c,
|
|
2064
2064
|
rightDisabled: u,
|
|
@@ -2067,9 +2067,9 @@ const je = /* @__PURE__ */ Pe(Xn, [["render", ca], ["__scopeId", "data-v-65eb861
|
|
|
2067
2067
|
};
|
|
2068
2068
|
}
|
|
2069
2069
|
});
|
|
2070
|
-
function pa(e, o, t, n, a,
|
|
2070
|
+
function pa(e, o, t, n, a, i) {
|
|
2071
2071
|
const s = Y("picker-popup");
|
|
2072
|
-
return
|
|
2072
|
+
return v(), D(s, {
|
|
2073
2073
|
columnCount: 3,
|
|
2074
2074
|
leftDisabled: e.leftDisabled,
|
|
2075
2075
|
rightDisabled: e.rightDisabled,
|
|
@@ -2080,7 +2080,7 @@ function pa(e, o, t, n, a, l) {
|
|
|
2080
2080
|
onElementClick: o[0] || (o[0] = (c) => e.$emit("select", c))
|
|
2081
2081
|
}, {
|
|
2082
2082
|
heading: N(() => [
|
|
2083
|
-
G(
|
|
2083
|
+
G(M(e.heading), 1)
|
|
2084
2084
|
]),
|
|
2085
2085
|
_: 1
|
|
2086
2086
|
}, 8, ["leftDisabled", "rightDisabled", "items", "onLeft", "onRight"]);
|
|
@@ -2129,7 +2129,7 @@ const va = /* @__PURE__ */ Pe(da, [["render", pa]]), ma = R({
|
|
|
2129
2129
|
() => (r) => Ne(r, e.format, {
|
|
2130
2130
|
locale: e.locale
|
|
2131
2131
|
})
|
|
2132
|
-
),
|
|
2132
|
+
), i = (r, m, l) => !m && !l ? !0 : !(m && Me(r, bt(m)) || l && Ie(r, _t(l))), s = d(
|
|
2133
2133
|
() => so({
|
|
2134
2134
|
start: t.value,
|
|
2135
2135
|
end: n.value
|
|
@@ -2139,13 +2139,13 @@ const va = /* @__PURE__ */ Pe(da, [["render", pa]]), ma = R({
|
|
|
2139
2139
|
display: a.value(r),
|
|
2140
2140
|
key: a.value(r),
|
|
2141
2141
|
selected: !!e.selected && Xe(e.selected, r),
|
|
2142
|
-
disabled: !
|
|
2142
|
+
disabled: !i(r, e.lowerLimit, e.upperLimit)
|
|
2143
2143
|
})
|
|
2144
2144
|
)
|
|
2145
2145
|
), c = d(() => ve(t.value)), u = d(
|
|
2146
2146
|
() => e.lowerLimit && (it(e.lowerLimit, e.pageDate) || Me(e.pageDate, e.lowerLimit))
|
|
2147
2147
|
), p = d(
|
|
2148
|
-
() => e.upperLimit && (it(e.upperLimit, e.pageDate) ||
|
|
2148
|
+
() => e.upperLimit && (it(e.upperLimit, e.pageDate) || Ie(e.pageDate, e.upperLimit))
|
|
2149
2149
|
);
|
|
2150
2150
|
return {
|
|
2151
2151
|
months: s,
|
|
@@ -2157,9 +2157,9 @@ const va = /* @__PURE__ */ Pe(da, [["render", pa]]), ma = R({
|
|
|
2157
2157
|
};
|
|
2158
2158
|
}
|
|
2159
2159
|
});
|
|
2160
|
-
function fa(e, o, t, n, a,
|
|
2160
|
+
function fa(e, o, t, n, a, i) {
|
|
2161
2161
|
const s = Y("picker-popup");
|
|
2162
|
-
return
|
|
2162
|
+
return v(), D(s, {
|
|
2163
2163
|
headingClickable: "",
|
|
2164
2164
|
columnCount: 3,
|
|
2165
2165
|
items: e.months,
|
|
@@ -2172,7 +2172,7 @@ function fa(e, o, t, n, a, l) {
|
|
|
2172
2172
|
onElementClick: o[1] || (o[1] = (c) => e.$emit("select", c))
|
|
2173
2173
|
}, {
|
|
2174
2174
|
heading: N(() => [
|
|
2175
|
-
G(
|
|
2175
|
+
G(M(e.heading), 1)
|
|
2176
2176
|
]),
|
|
2177
2177
|
_: 1
|
|
2178
2178
|
}, 8, ["items", "leftDisabled", "rightDisabled", "onLeft", "onRight"]);
|
|
@@ -2244,7 +2244,7 @@ const ha = /* @__PURE__ */ Pe(ma, [["render", fa]]), ga = R({
|
|
|
2244
2244
|
locale: e.locale,
|
|
2245
2245
|
weekStartsOn: e.weekStartsOn
|
|
2246
2246
|
})
|
|
2247
|
-
), n = d(() => bt(e.pageDate)), a = d(() => _t(e.pageDate)),
|
|
2247
|
+
), n = d(() => bt(e.pageDate)), a = d(() => _t(e.pageDate)), i = d(() => ({
|
|
2248
2248
|
start: n.value,
|
|
2249
2249
|
end: a.value
|
|
2250
2250
|
})), s = d(() => ({
|
|
@@ -2256,52 +2256,52 @@ const ha = /* @__PURE__ */ Pe(ma, [["render", fa]]), ga = R({
|
|
|
2256
2256
|
})
|
|
2257
2257
|
})), c = d(() => {
|
|
2258
2258
|
const g = e.weekStartsOn, f = t.value(e.weekdayFormat);
|
|
2259
|
-
return Array.from(Array(7)).map((
|
|
2260
|
-
(
|
|
2259
|
+
return Array.from(Array(7)).map((y, b) => (g + b) % 7).map(
|
|
2260
|
+
(y) => co(/* @__PURE__ */ new Date(), y, {
|
|
2261
2261
|
weekStartsOn: e.weekStartsOn
|
|
2262
2262
|
})
|
|
2263
2263
|
).map(f);
|
|
2264
|
-
}), u = (g, f,
|
|
2265
|
-
var h,
|
|
2266
|
-
return (h = b == null ? void 0 : b.dates) != null && h.some((O) => Ze(g, O)) || (
|
|
2264
|
+
}), u = (g, f, y, b) => {
|
|
2265
|
+
var h, B;
|
|
2266
|
+
return (h = b == null ? void 0 : b.dates) != null && h.some((O) => Ze(g, O)) || (B = b == null ? void 0 : b.predicate) != null && B.call(b, g) ? !1 : !f && !y ? !0 : !(f && Me(g, ko(f)) || y && Ie(g, yo(y)));
|
|
2267
2267
|
}, p = d(() => {
|
|
2268
2268
|
const g = /* @__PURE__ */ new Date(), f = t.value(e.format);
|
|
2269
2269
|
return po(s.value).map(
|
|
2270
|
-
(
|
|
2271
|
-
value:
|
|
2272
|
-
display: f(
|
|
2273
|
-
selected: !!e.selected && Ze(e.selected,
|
|
2274
|
-
current: Ze(g,
|
|
2275
|
-
disabled: !e.allowOutsideInterval && !vo(
|
|
2276
|
-
|
|
2270
|
+
(y) => ({
|
|
2271
|
+
value: y,
|
|
2272
|
+
display: f(y),
|
|
2273
|
+
selected: !!e.selected && Ze(e.selected, y),
|
|
2274
|
+
current: Ze(g, y),
|
|
2275
|
+
disabled: !e.allowOutsideInterval && !vo(y, i.value) || !u(
|
|
2276
|
+
y,
|
|
2277
2277
|
e.lowerLimit,
|
|
2278
2278
|
e.upperLimit,
|
|
2279
2279
|
e.disabledDates
|
|
2280
2280
|
),
|
|
2281
|
-
key: t.value("yyyy-MM-dd")(
|
|
2281
|
+
key: t.value("yyyy-MM-dd")(y)
|
|
2282
2282
|
})
|
|
2283
2283
|
);
|
|
2284
2284
|
}), r = d(
|
|
2285
2285
|
() => t.value(e.headingFormat)(e.pageDate)
|
|
2286
|
-
),
|
|
2286
|
+
), m = d(
|
|
2287
2287
|
() => e.lowerLimit && (Xe(e.lowerLimit, e.pageDate) || Me(e.pageDate, e.lowerLimit))
|
|
2288
|
-
),
|
|
2289
|
-
() => e.upperLimit && (Xe(e.upperLimit, e.pageDate) ||
|
|
2288
|
+
), l = d(
|
|
2289
|
+
() => e.upperLimit && (Xe(e.upperLimit, e.pageDate) || Ie(e.pageDate, e.upperLimit))
|
|
2290
2290
|
);
|
|
2291
2291
|
return {
|
|
2292
2292
|
weekDays: c,
|
|
2293
2293
|
days: p,
|
|
2294
2294
|
heading: r,
|
|
2295
|
-
leftDisabled:
|
|
2296
|
-
rightDisabled:
|
|
2295
|
+
leftDisabled: m,
|
|
2296
|
+
rightDisabled: l,
|
|
2297
2297
|
previousPage: () => o("update:pageDate", mo(e.pageDate, 1)),
|
|
2298
2298
|
nextPage: () => o("update:pageDate", fo(e.pageDate, 1))
|
|
2299
2299
|
};
|
|
2300
2300
|
}
|
|
2301
2301
|
});
|
|
2302
|
-
function ka(e, o, t, n, a,
|
|
2302
|
+
function ka(e, o, t, n, a, i) {
|
|
2303
2303
|
const s = Y("picker-popup");
|
|
2304
|
-
return
|
|
2304
|
+
return v(), D(s, {
|
|
2305
2305
|
headingClickable: "",
|
|
2306
2306
|
leftDisabled: e.leftDisabled,
|
|
2307
2307
|
rightDisabled: e.rightDisabled,
|
|
@@ -2313,13 +2313,13 @@ function ka(e, o, t, n, a, l) {
|
|
|
2313
2313
|
onElementClick: o[1] || (o[1] = (c) => e.$emit("select", c))
|
|
2314
2314
|
}, {
|
|
2315
2315
|
heading: N(() => [
|
|
2316
|
-
G(
|
|
2316
|
+
G(M(e.heading), 1)
|
|
2317
2317
|
]),
|
|
2318
2318
|
subheading: N(() => [
|
|
2319
|
-
(
|
|
2319
|
+
(v(!0), k(K, null, re(e.weekDays, (c, u) => (v(), k("span", {
|
|
2320
2320
|
key: c,
|
|
2321
|
-
class:
|
|
2322
|
-
},
|
|
2321
|
+
class: I(`v3dp__subheading__weekday__${u}`)
|
|
2322
|
+
}, M(c), 3))), 128))
|
|
2323
2323
|
]),
|
|
2324
2324
|
_: 1
|
|
2325
2325
|
}, 8, ["leftDisabled", "rightDisabled", "items", "onLeft", "onRight"]);
|
|
@@ -2331,8 +2331,8 @@ function vt(e, o) {
|
|
|
2331
2331
|
width: e.clientWidth
|
|
2332
2332
|
}, a = o.getBoundingClientRect();
|
|
2333
2333
|
if (!(a.top >= t.top && a.bottom <= t.top + n.height)) {
|
|
2334
|
-
const
|
|
2335
|
-
Math.abs(
|
|
2334
|
+
const i = a.top - t.top, s = a.bottom - t.bottom;
|
|
2335
|
+
Math.abs(i) < Math.abs(s) ? e.scrollTop += i : e.scrollTop += s;
|
|
2336
2336
|
}
|
|
2337
2337
|
}
|
|
2338
2338
|
const ba = R({
|
|
@@ -2362,73 +2362,73 @@ const ba = R({
|
|
|
2362
2362
|
}
|
|
2363
2363
|
},
|
|
2364
2364
|
setup(e, { emit: o }) {
|
|
2365
|
-
const t = x(null), n = x(null), a = d(() => e.pageDate ?? e.selected),
|
|
2365
|
+
const t = x(null), n = x(null), a = d(() => e.pageDate ?? e.selected), i = x(a.value.getHours()), s = x(a.value.getMinutes());
|
|
2366
2366
|
ce(
|
|
2367
2367
|
() => e.selected,
|
|
2368
|
-
(
|
|
2369
|
-
let
|
|
2370
|
-
|
|
2368
|
+
(m) => {
|
|
2369
|
+
let l = 0, g = 0;
|
|
2370
|
+
m && (l = m.getHours(), g = m.getMinutes()), i.value = l, s.value = g;
|
|
2371
2371
|
}
|
|
2372
2372
|
);
|
|
2373
2373
|
const c = d(
|
|
2374
2374
|
() => [...Array(24).keys()].map(
|
|
2375
|
-
(
|
|
2376
|
-
value:
|
|
2375
|
+
(m) => ({
|
|
2376
|
+
value: m,
|
|
2377
2377
|
date: st(new Date(a.value.getTime()), {
|
|
2378
|
-
hours:
|
|
2378
|
+
hours: m,
|
|
2379
2379
|
minutes: s.value,
|
|
2380
2380
|
seconds: 0
|
|
2381
2381
|
}),
|
|
2382
|
-
selected:
|
|
2382
|
+
selected: i.value === m,
|
|
2383
2383
|
ref: x(null)
|
|
2384
2384
|
})
|
|
2385
2385
|
)
|
|
2386
2386
|
), u = d(
|
|
2387
|
-
() => [...Array(60).keys()].map((
|
|
2388
|
-
value:
|
|
2387
|
+
() => [...Array(60).keys()].map((m) => ({
|
|
2388
|
+
value: m,
|
|
2389
2389
|
date: st(new Date(a.value.getTime()), {
|
|
2390
|
-
hours:
|
|
2391
|
-
minutes:
|
|
2390
|
+
hours: i.value,
|
|
2391
|
+
minutes: m,
|
|
2392
2392
|
seconds: 0
|
|
2393
2393
|
}),
|
|
2394
|
-
selected: s.value ===
|
|
2394
|
+
selected: s.value === m,
|
|
2395
2395
|
ref: x(null)
|
|
2396
2396
|
}))
|
|
2397
|
-
), p = (
|
|
2398
|
-
s.value =
|
|
2397
|
+
), p = (m) => {
|
|
2398
|
+
s.value = m.value, o("select", m.date);
|
|
2399
2399
|
}, r = () => {
|
|
2400
|
-
const
|
|
2400
|
+
const m = c.value.find(
|
|
2401
2401
|
(g) => {
|
|
2402
|
-
var f,
|
|
2403
|
-
return ((
|
|
2402
|
+
var f, y;
|
|
2403
|
+
return ((y = (f = g.ref.value) == null ? void 0 : f.classList) == null ? void 0 : y.contains("selected")) ?? !1;
|
|
2404
2404
|
}
|
|
2405
|
-
),
|
|
2405
|
+
), l = u.value.find(
|
|
2406
2406
|
(g) => {
|
|
2407
|
-
var f,
|
|
2408
|
-
return ((
|
|
2407
|
+
var f, y;
|
|
2408
|
+
return ((y = (f = g.ref.value) == null ? void 0 : f.classList) == null ? void 0 : y.contains("selected")) ?? !1;
|
|
2409
2409
|
}
|
|
2410
2410
|
);
|
|
2411
|
-
|
|
2411
|
+
m && l && (vt(t.value, m.ref.value), vt(n.value, l.ref.value));
|
|
2412
2412
|
};
|
|
2413
2413
|
return ce(
|
|
2414
2414
|
() => e.visible,
|
|
2415
|
-
(
|
|
2416
|
-
|
|
2415
|
+
(m) => {
|
|
2416
|
+
m && gt(r);
|
|
2417
2417
|
}
|
|
2418
2418
|
), {
|
|
2419
2419
|
hoursListRef: t,
|
|
2420
2420
|
minutesListRef: n,
|
|
2421
|
-
hours:
|
|
2421
|
+
hours: i,
|
|
2422
2422
|
minutes: s,
|
|
2423
2423
|
hoursList: c,
|
|
2424
2424
|
minutesList: u,
|
|
2425
|
-
padStartZero: (
|
|
2425
|
+
padStartZero: (m) => `0${m}`.substr(-2),
|
|
2426
2426
|
selectMinutes: p,
|
|
2427
|
-
isEnabled: (
|
|
2428
|
-
var
|
|
2429
|
-
return !((g = (
|
|
2430
|
-
(b) => ho(
|
|
2431
|
-
) || (
|
|
2427
|
+
isEnabled: (m) => {
|
|
2428
|
+
var l, g, f, y;
|
|
2429
|
+
return !((g = (l = e.disabledTime) == null ? void 0 : l.dates) != null && g.some(
|
|
2430
|
+
(b) => ho(m, b) && go(m, b)
|
|
2431
|
+
) || (y = (f = e.disabledTime) == null ? void 0 : f.predicate) != null && y.call(f, m));
|
|
2432
2432
|
},
|
|
2433
2433
|
scroll: r
|
|
2434
2434
|
};
|
|
@@ -2440,9 +2440,9 @@ const ba = R({
|
|
|
2440
2440
|
ref: "minutesListRef",
|
|
2441
2441
|
class: "v3dp__column"
|
|
2442
2442
|
}, $a = ["disabled", "onClick"];
|
|
2443
|
-
function
|
|
2443
|
+
function Ta(e, o, t, n, a, i) {
|
|
2444
2444
|
const s = Y("picker-popup");
|
|
2445
|
-
return
|
|
2445
|
+
return v(), D(s, {
|
|
2446
2446
|
headingClickable: "",
|
|
2447
2447
|
columnCount: 2,
|
|
2448
2448
|
leftDisabled: !0,
|
|
@@ -2451,38 +2451,38 @@ function Ba(e, o, t, n, a, l) {
|
|
|
2451
2451
|
onHeading: o[0] || (o[0] = (c) => e.$emit("back"))
|
|
2452
2452
|
}, {
|
|
2453
2453
|
heading: N(() => [
|
|
2454
|
-
G(
|
|
2454
|
+
G(M(e.padStartZero(e.hours)) + ":" + M(e.padStartZero(e.minutes)), 1)
|
|
2455
2455
|
]),
|
|
2456
2456
|
body: N(() => [
|
|
2457
2457
|
$("div", _a, [
|
|
2458
|
-
(
|
|
2458
|
+
(v(!0), k(K, null, re(e.hoursList, (c) => (v(), k("button", {
|
|
2459
2459
|
key: c.value,
|
|
2460
2460
|
ref_for: !0,
|
|
2461
2461
|
ref: c.ref,
|
|
2462
|
-
class:
|
|
2462
|
+
class: I([{ selected: c.selected }, "v3dp__element_button__hour"]),
|
|
2463
2463
|
disabled: !e.isEnabled(c.date),
|
|
2464
2464
|
onClick: se((u) => e.hours = c.value, ["stop", "prevent"])
|
|
2465
2465
|
}, [
|
|
2466
|
-
$("span", null,
|
|
2466
|
+
$("span", null, M(e.padStartZero(c.value)), 1)
|
|
2467
2467
|
], 10, Ca))), 128))
|
|
2468
2468
|
], 512),
|
|
2469
2469
|
$("div", wa, [
|
|
2470
|
-
(
|
|
2470
|
+
(v(!0), k(K, null, re(e.minutesList, (c) => (v(), k("button", {
|
|
2471
2471
|
key: c.value,
|
|
2472
2472
|
ref_for: !0,
|
|
2473
2473
|
ref: c.ref,
|
|
2474
|
-
class:
|
|
2474
|
+
class: I([{ selected: c.selected }, "v3dp__element_button__minute"]),
|
|
2475
2475
|
disabled: !e.isEnabled(c.date),
|
|
2476
2476
|
onClick: se((u) => e.selectMinutes(c), ["stop", "prevent"])
|
|
2477
2477
|
}, [
|
|
2478
|
-
$("span", null,
|
|
2478
|
+
$("span", null, M(e.padStartZero(c.value)), 1)
|
|
2479
2479
|
], 10, $a))), 128))
|
|
2480
2480
|
], 512)
|
|
2481
2481
|
]),
|
|
2482
2482
|
_: 1
|
|
2483
2483
|
});
|
|
2484
2484
|
}
|
|
2485
|
-
const
|
|
2485
|
+
const Ba = /* @__PURE__ */ Pe(ba, [["render", Ta], ["__scopeId", "data-v-81ac698d"]]), Oe = ["time", "day", "month", "year"], Pa = (e, o, t = void 0) => {
|
|
2486
2486
|
let n = t || /* @__PURE__ */ new Date();
|
|
2487
2487
|
return e && (n = bo([e, n])), o && (n = _o([o, n])), n;
|
|
2488
2488
|
}, Va = R({
|
|
@@ -2490,7 +2490,7 @@ const Ta = /* @__PURE__ */ Pe(ba, [["render", Ba], ["__scopeId", "data-v-81ac698
|
|
|
2490
2490
|
YearPicker: va,
|
|
2491
2491
|
MonthPicker: ha,
|
|
2492
2492
|
DayPicker: ya,
|
|
2493
|
-
TimePicker:
|
|
2493
|
+
TimePicker: Ba
|
|
2494
2494
|
},
|
|
2495
2495
|
inheritAttrs: !1,
|
|
2496
2496
|
props: {
|
|
@@ -2661,7 +2661,7 @@ const Ta = /* @__PURE__ */ Pe(ba, [["render", Ba], ["__scopeId", "data-v-81ac698
|
|
|
2661
2661
|
closed: () => !0
|
|
2662
2662
|
},
|
|
2663
2663
|
setup(e, { emit: o, attrs: t }) {
|
|
2664
|
-
const n = x("none"), a = x(e.startingViewDate),
|
|
2664
|
+
const n = x("none"), a = x(e.startingViewDate), i = x(null), s = x(!1), c = x("");
|
|
2665
2665
|
Ye(() => {
|
|
2666
2666
|
const P = rt(c.value, e.inputFormat, /* @__PURE__ */ new Date(), {
|
|
2667
2667
|
locale: e.locale
|
|
@@ -2678,73 +2678,73 @@ const Ta = /* @__PURE__ */ Pe(ba, [["render", Ba], ["__scopeId", "data-v-81ac698
|
|
|
2678
2678
|
Ye(() => {
|
|
2679
2679
|
e.disabled && (n.value = "none");
|
|
2680
2680
|
});
|
|
2681
|
-
const p = (P,
|
|
2682
|
-
a.value =
|
|
2681
|
+
const p = (P, T) => {
|
|
2682
|
+
a.value = T, P === "year" ? o("decadePageChanged", T) : P === "month" ? o("yearPageChanged", T) : P === "day" && o("monthPageChanged", T);
|
|
2683
2683
|
}, r = (P) => {
|
|
2684
2684
|
a.value = P, e.minimumView === "year" ? (u("none"), o("update:modelValue", P)) : n.value = "month";
|
|
2685
|
-
},
|
|
2685
|
+
}, m = (P) => {
|
|
2686
2686
|
a.value = P, e.minimumView === "month" ? (u("none"), o("update:modelValue", P)) : n.value = "day";
|
|
2687
|
-
},
|
|
2687
|
+
}, l = (P) => {
|
|
2688
2688
|
a.value = P, e.minimumView === "day" ? (u("none"), o("update:modelValue", P)) : n.value = "time";
|
|
2689
2689
|
}, g = (P) => {
|
|
2690
2690
|
u("none"), o("update:modelValue", P);
|
|
2691
2691
|
}, f = () => {
|
|
2692
2692
|
e.clearable && (u("none"), o("update:modelValue", null), a.value = e.startingViewDate);
|
|
2693
|
-
},
|
|
2693
|
+
}, y = () => s.value = !0, b = () => u(O.value), h = () => {
|
|
2694
2694
|
s.value = !1, u();
|
|
2695
|
-
},
|
|
2696
|
-
const
|
|
2695
|
+
}, B = (P) => {
|
|
2696
|
+
const T = P.keyCode ? P.keyCode : P.which;
|
|
2697
2697
|
if ([
|
|
2698
2698
|
27,
|
|
2699
2699
|
// escape
|
|
2700
2700
|
13
|
|
2701
2701
|
// enter
|
|
2702
|
-
].includes(
|
|
2703
|
-
const
|
|
2704
|
-
|
|
2702
|
+
].includes(T) && i.value.blur(), e.typeable) {
|
|
2703
|
+
const S = rt(
|
|
2704
|
+
i.value.value,
|
|
2705
2705
|
e.inputFormat,
|
|
2706
2706
|
/* @__PURE__ */ new Date(),
|
|
2707
2707
|
{ locale: e.locale }
|
|
2708
2708
|
);
|
|
2709
|
-
pe(
|
|
2709
|
+
pe(S) && c.value === Ne(S, e.inputFormat, { locale: e.locale }) && (c.value = i.value.value, o("update:modelValue", S));
|
|
2710
2710
|
}
|
|
2711
2711
|
}, O = d(() => {
|
|
2712
|
-
const P = Oe.indexOf(e.startingView),
|
|
2713
|
-
return P <
|
|
2712
|
+
const P = Oe.indexOf(e.startingView), T = Oe.indexOf(e.minimumView);
|
|
2713
|
+
return P < T ? e.minimumView : e.startingView;
|
|
2714
2714
|
});
|
|
2715
2715
|
return {
|
|
2716
2716
|
blur: h,
|
|
2717
2717
|
focus: b,
|
|
2718
|
-
click:
|
|
2718
|
+
click: y,
|
|
2719
2719
|
input: c,
|
|
2720
|
-
inputRef:
|
|
2720
|
+
inputRef: i,
|
|
2721
2721
|
pageDate: a,
|
|
2722
2722
|
renderView: u,
|
|
2723
2723
|
updatePageDate: p,
|
|
2724
2724
|
selectYear: r,
|
|
2725
|
-
selectMonth:
|
|
2726
|
-
selectDay:
|
|
2725
|
+
selectMonth: m,
|
|
2726
|
+
selectDay: l,
|
|
2727
2727
|
selectTime: g,
|
|
2728
|
-
keyUp:
|
|
2728
|
+
keyUp: B,
|
|
2729
2729
|
viewShown: n,
|
|
2730
2730
|
goBackFromTimepicker: () => e.startingView === "time" && e.minimumView === "time" ? null : n.value = "day",
|
|
2731
2731
|
clearModelValue: f,
|
|
2732
2732
|
initialView: O,
|
|
2733
2733
|
log: (P) => console.log(P),
|
|
2734
2734
|
variables: (P) => Object.fromEntries(
|
|
2735
|
-
Object.entries(P ?? {}).filter(([
|
|
2735
|
+
Object.entries(P ?? {}).filter(([T, S]) => T.startsWith("--"))
|
|
2736
2736
|
)
|
|
2737
2737
|
};
|
|
2738
2738
|
}
|
|
2739
2739
|
}), Da = { class: "v3dp__input_wrapper" }, La = ["readonly", "placeholder", "disabled", "tabindex"], Sa = { class: "v3dp__clearable" };
|
|
2740
|
-
function Ma(e, o, t, n, a,
|
|
2740
|
+
function Ma(e, o, t, n, a, i) {
|
|
2741
2741
|
const s = Y("year-picker"), c = Y("month-picker"), u = Y("day-picker"), p = Y("time-picker");
|
|
2742
|
-
return
|
|
2742
|
+
return v(), k("div", {
|
|
2743
2743
|
class: "v3dp__datepicker",
|
|
2744
2744
|
style: F(e.variables(e.$attrs.style))
|
|
2745
2745
|
}, [
|
|
2746
2746
|
$("div", Da, [
|
|
2747
|
-
ue($("input",
|
|
2747
|
+
ue($("input", Ae({
|
|
2748
2748
|
type: "text",
|
|
2749
2749
|
ref: "inputRef",
|
|
2750
2750
|
readonly: !e.typeable,
|
|
@@ -2823,7 +2823,7 @@ function Ma(e, o, t, n, a, l) {
|
|
|
2823
2823
|
])
|
|
2824
2824
|
], 4);
|
|
2825
2825
|
}
|
|
2826
|
-
const
|
|
2826
|
+
const Ia = /* @__PURE__ */ Pe(Va, [["render", Ma]]);
|
|
2827
2827
|
function Qe(e) {
|
|
2828
2828
|
return function() {
|
|
2829
2829
|
var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = o.width ? String(o.width) : e.defaultWidth, n = e.formats[t] || e.formats[e.defaultWidth];
|
|
@@ -2834,8 +2834,8 @@ function Le(e) {
|
|
|
2834
2834
|
return function(o, t) {
|
|
2835
2835
|
var n = t != null && t.context ? String(t.context) : "standalone", a;
|
|
2836
2836
|
if (n === "formatting" && e.formattingValues) {
|
|
2837
|
-
var
|
|
2838
|
-
a = e.formattingValues[s] || e.formattingValues[
|
|
2837
|
+
var i = e.defaultFormattingWidth || e.defaultWidth, s = t != null && t.width ? String(t.width) : i;
|
|
2838
|
+
a = e.formattingValues[s] || e.formattingValues[i];
|
|
2839
2839
|
} else {
|
|
2840
2840
|
var c = e.defaultWidth, u = t != null && t.width ? String(t.width) : e.defaultWidth;
|
|
2841
2841
|
a = e.values[u] || e.values[c];
|
|
@@ -2846,13 +2846,13 @@ function Le(e) {
|
|
|
2846
2846
|
}
|
|
2847
2847
|
function Se(e) {
|
|
2848
2848
|
return function(o) {
|
|
2849
|
-
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = t.width, a = n && e.matchPatterns[n] || e.matchPatterns[e.defaultMatchWidth],
|
|
2850
|
-
if (!
|
|
2849
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = t.width, a = n && e.matchPatterns[n] || e.matchPatterns[e.defaultMatchWidth], i = o.match(a);
|
|
2850
|
+
if (!i)
|
|
2851
2851
|
return null;
|
|
2852
|
-
var s =
|
|
2853
|
-
return
|
|
2854
|
-
}) :
|
|
2855
|
-
return
|
|
2852
|
+
var s = i[0], c = n && e.parsePatterns[n] || e.parsePatterns[e.defaultParseWidth], u = Array.isArray(c) ? Aa(c, function(m) {
|
|
2853
|
+
return m.test(s);
|
|
2854
|
+
}) : xa(c, function(m) {
|
|
2855
|
+
return m.test(s);
|
|
2856
2856
|
}), p;
|
|
2857
2857
|
p = e.valueCallback ? e.valueCallback(u) : u, p = t.valueCallback ? t.valueCallback(p) : p;
|
|
2858
2858
|
var r = o.slice(s.length);
|
|
@@ -2862,12 +2862,12 @@ function Se(e) {
|
|
|
2862
2862
|
};
|
|
2863
2863
|
};
|
|
2864
2864
|
}
|
|
2865
|
-
function
|
|
2865
|
+
function xa(e, o) {
|
|
2866
2866
|
for (var t in e)
|
|
2867
2867
|
if (e.hasOwnProperty(t) && o(e[t]))
|
|
2868
2868
|
return t;
|
|
2869
2869
|
}
|
|
2870
|
-
function
|
|
2870
|
+
function Aa(e, o) {
|
|
2871
2871
|
for (var t = 0; t < e.length; t++)
|
|
2872
2872
|
if (o(e[t]))
|
|
2873
2873
|
return t;
|
|
@@ -2877,10 +2877,10 @@ function za(e) {
|
|
|
2877
2877
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = o.match(e.matchPattern);
|
|
2878
2878
|
if (!n)
|
|
2879
2879
|
return null;
|
|
2880
|
-
var a = n[0],
|
|
2881
|
-
if (!
|
|
2880
|
+
var a = n[0], i = o.match(e.parsePattern);
|
|
2881
|
+
if (!i)
|
|
2882
2882
|
return null;
|
|
2883
|
-
var s = e.valueCallback ? e.valueCallback(
|
|
2883
|
+
var s = e.valueCallback ? e.valueCallback(i[0]) : i[0];
|
|
2884
2884
|
s = t.valueCallback ? t.valueCallback(s) : s;
|
|
2885
2885
|
var c = o.slice(a.length);
|
|
2886
2886
|
return {
|
|
@@ -2952,8 +2952,8 @@ var Ra = {
|
|
|
2952
2952
|
other: "casi {{count}} años"
|
|
2953
2953
|
}
|
|
2954
2954
|
}, Wa = function(o, t, n) {
|
|
2955
|
-
var a,
|
|
2956
|
-
return typeof
|
|
2955
|
+
var a, i = Ra[o];
|
|
2956
|
+
return typeof i == "string" ? a = i : t === 1 ? a = i.one : a = i.other.replace("{{count}}", t.toString()), n != null && n.addSuffix ? n.comparison && n.comparison > 0 ? "en " + a : "hace " + a : a;
|
|
2957
2957
|
};
|
|
2958
2958
|
const Oa = Wa;
|
|
2959
2959
|
var Ea = {
|
|
@@ -3234,59 +3234,59 @@ const yl = kl, bl = ["id"], _l = {
|
|
|
3234
3234
|
},
|
|
3235
3235
|
emits: ["update:modelValue", "change"],
|
|
3236
3236
|
setup(e, { emit: o }) {
|
|
3237
|
-
const t = e, n = o, { cleekOptions: a } = ae(ne()), { windowWidth:
|
|
3237
|
+
const t = e, n = o, { cleekOptions: a } = ae(ne()), { windowWidth: i } = ke(), s = x(), c = x(Math.floor(Math.random() * 1e3)), u = x(`ck-input-date-${c.value}`), p = d({
|
|
3238
3238
|
get() {
|
|
3239
|
-
return
|
|
3239
|
+
return l(t.modelValue);
|
|
3240
3240
|
},
|
|
3241
3241
|
set(h) {
|
|
3242
3242
|
n("update:modelValue", g(h));
|
|
3243
3243
|
}
|
|
3244
3244
|
}), r = d(() => {
|
|
3245
3245
|
const h = [];
|
|
3246
|
-
return h.push(
|
|
3247
|
-
}),
|
|
3246
|
+
return h.push(L.getGroupClass(t, i.value)), t.icon && h.push("has-icon-left"), t.iconRight && h.push("has-icon-right"), document.querySelector(".ck-popup__content") && h.push("ck-picker-popup"), h;
|
|
3247
|
+
}), m = d(() => {
|
|
3248
3248
|
const h = [];
|
|
3249
|
-
let
|
|
3250
|
-
return a.value.darkMode && (
|
|
3249
|
+
let B = "";
|
|
3250
|
+
return a.value.darkMode && (B = a.value.darkModeColorItems), B && !L.isColorTemplateVariable(B) && h.push({ backgroundColor: B }), h;
|
|
3251
3251
|
});
|
|
3252
3252
|
ce(() => t.modelValue, (h) => {
|
|
3253
3253
|
s.value && (s.value.style.display = "block", s.value.focus(), s.value.style.display = "none"), n("change", h);
|
|
3254
3254
|
});
|
|
3255
|
-
function
|
|
3255
|
+
function l(h) {
|
|
3256
3256
|
if (!h)
|
|
3257
3257
|
return null;
|
|
3258
|
-
const
|
|
3259
|
-
return /* @__PURE__ */ new Date(`${
|
|
3258
|
+
const B = `${h}`.slice(0, 10);
|
|
3259
|
+
return /* @__PURE__ */ new Date(`${B}T00:00:00`);
|
|
3260
3260
|
}
|
|
3261
3261
|
function g(h) {
|
|
3262
3262
|
if (!h)
|
|
3263
3263
|
return null;
|
|
3264
|
-
const
|
|
3265
|
-
return `${
|
|
3264
|
+
const B = h.getFullYear(), O = Ee.padZeros(h.getMonth() + 1, 2), P = Ee.padZeros(h.getDate(), 2);
|
|
3265
|
+
return `${B}-${O}-${P}`;
|
|
3266
3266
|
}
|
|
3267
3267
|
function f() {
|
|
3268
|
-
const h = document.getElementById(`${u.value}`),
|
|
3268
|
+
const h = document.getElementById(`${u.value}`), B = h == null ? void 0 : h.querySelector(".v3dp__popout-day");
|
|
3269
3269
|
let O = { y: 0 };
|
|
3270
3270
|
const P = document.querySelector(".ck-popup__slot-body");
|
|
3271
3271
|
P instanceof HTMLElement && (P.style.overflow = "hidden"), h && (O = h.getBoundingClientRect());
|
|
3272
|
-
const
|
|
3273
|
-
h &&
|
|
3272
|
+
const T = window.innerHeight - O.y;
|
|
3273
|
+
h && B && (T - 300 < 0 ? B.setAttribute("style", "bottom: 0px") : B.setAttribute("style", `top: ${O.y + 60}px;`), h.setAttribute("style", "overflow: hidden;"));
|
|
3274
3274
|
}
|
|
3275
|
-
function
|
|
3275
|
+
function y() {
|
|
3276
3276
|
const h = document.querySelector(".ck-popup__slot-body");
|
|
3277
3277
|
h instanceof HTMLElement && (h.style.overflow = "auto");
|
|
3278
3278
|
}
|
|
3279
3279
|
function b() {
|
|
3280
|
-
t.clearable && (p.value =
|
|
3280
|
+
t.clearable && (p.value = l(t.clearValue));
|
|
3281
3281
|
}
|
|
3282
|
-
return (h,
|
|
3283
|
-
const O = Y("ck-label"), P = Y("ck-icon"),
|
|
3284
|
-
return
|
|
3282
|
+
return (h, B) => {
|
|
3283
|
+
const O = Y("ck-label"), P = Y("ck-icon"), T = Y("ck-div");
|
|
3284
|
+
return v(), D(T, { widthBreaks: h.widthBreaks }, {
|
|
3285
3285
|
default: N(() => {
|
|
3286
|
-
var
|
|
3286
|
+
var S;
|
|
3287
3287
|
return [
|
|
3288
3288
|
$("div", {
|
|
3289
|
-
class:
|
|
3289
|
+
class: I(["ck-input-date", r.value]),
|
|
3290
3290
|
id: u.value
|
|
3291
3291
|
}, [
|
|
3292
3292
|
$("input", {
|
|
@@ -3296,39 +3296,39 @@ const yl = kl, bl = ["id"], _l = {
|
|
|
3296
3296
|
}, null, 512),
|
|
3297
3297
|
U(O, null, {
|
|
3298
3298
|
default: N(() => [
|
|
3299
|
-
G(
|
|
3300
|
-
h.optional ? (
|
|
3299
|
+
G(M(h.label) + " ", 1),
|
|
3300
|
+
h.optional ? (v(), k("span", _l, "opcional")) : C("", !0)
|
|
3301
3301
|
]),
|
|
3302
3302
|
_: 1
|
|
3303
3303
|
}),
|
|
3304
3304
|
$("div", {
|
|
3305
|
-
class:
|
|
3305
|
+
class: I(["ck-picker-container", ((S = we(a)) == null ? void 0 : S.darkMode) && "picker-dark"])
|
|
3306
3306
|
}, [
|
|
3307
|
-
h.icon ? (
|
|
3307
|
+
h.icon ? (v(), D(P, {
|
|
3308
3308
|
key: 0,
|
|
3309
3309
|
class: "ck-input__icon-left",
|
|
3310
3310
|
color: h.iconColor ? h.iconColor : "lightgrey",
|
|
3311
3311
|
icon: h.icon,
|
|
3312
3312
|
"icon-pack": h.iconPack
|
|
3313
|
-
}, null, 8, ["color", "icon", "icon-pack"])) :
|
|
3314
|
-
U(we(
|
|
3313
|
+
}, null, 8, ["color", "icon", "icon-pack"])) : C("", !0),
|
|
3314
|
+
U(we(Ia), {
|
|
3315
3315
|
modelValue: p.value,
|
|
3316
|
-
"onUpdate:modelValue":
|
|
3316
|
+
"onUpdate:modelValue": B[0] || (B[0] = (j) => p.value = j),
|
|
3317
3317
|
onOpened: f,
|
|
3318
|
-
onClosed:
|
|
3318
|
+
onClosed: y,
|
|
3319
3319
|
inputFormat: "dd-MM-yyyy",
|
|
3320
|
-
style: F(
|
|
3320
|
+
style: F(m.value),
|
|
3321
3321
|
disabled: h.disabled,
|
|
3322
3322
|
locale: we(yl)
|
|
3323
3323
|
}, null, 8, ["modelValue", "style", "disabled", "locale"]),
|
|
3324
|
-
h.clearable && h.modelValue != h.clearValue || h.iconRight ? (
|
|
3324
|
+
h.clearable && h.modelValue != h.clearValue || h.iconRight ? (v(), D(P, {
|
|
3325
3325
|
key: 1,
|
|
3326
|
-
class:
|
|
3326
|
+
class: I(["ck-input__icon-right", { "icon-right__clearable": h.clearable }]),
|
|
3327
3327
|
color: h.clearable ? "grey" : h.iconColor ? h.iconColor : "lightgrey",
|
|
3328
3328
|
icon: h.clearable ? "xmark" : h.iconRight,
|
|
3329
3329
|
"icon-pack": h.clearable ? "font-awesome" : h.iconPack,
|
|
3330
|
-
onClick:
|
|
3331
|
-
}, null, 8, ["class", "color", "icon", "icon-pack"])) :
|
|
3330
|
+
onClick: B[1] || (B[1] = (j) => b())
|
|
3331
|
+
}, null, 8, ["class", "color", "icon", "icon-pack"])) : C("", !0)
|
|
3332
3332
|
], 2)
|
|
3333
3333
|
], 10, bl)
|
|
3334
3334
|
];
|
|
@@ -3354,28 +3354,28 @@ const wl = /* @__PURE__ */ H(Cl, [["__scopeId", "data-v-3762640e"]]), $l = /* @_
|
|
|
3354
3354
|
get() {
|
|
3355
3355
|
return typeof t.modelValue != "number" ? null : be.minToHour(t.modelValue);
|
|
3356
3356
|
},
|
|
3357
|
-
set(
|
|
3358
|
-
n("update:modelValue", +be.hourToMin(
|
|
3357
|
+
set(i) {
|
|
3358
|
+
n("update:modelValue", +be.hourToMin(i));
|
|
3359
3359
|
}
|
|
3360
3360
|
});
|
|
3361
|
-
return (
|
|
3361
|
+
return (i, s) => {
|
|
3362
3362
|
const c = Y("ck-input");
|
|
3363
|
-
return
|
|
3363
|
+
return v(), D(c, {
|
|
3364
3364
|
modelValue: a.value,
|
|
3365
3365
|
"onUpdate:modelValue": s[0] || (s[0] = (u) => a.value = u),
|
|
3366
3366
|
type: "time",
|
|
3367
|
-
label:
|
|
3368
|
-
group:
|
|
3369
|
-
widthBreaks:
|
|
3370
|
-
disabled:
|
|
3367
|
+
label: i.label,
|
|
3368
|
+
group: i.group,
|
|
3369
|
+
widthBreaks: i.widthBreaks,
|
|
3370
|
+
disabled: i.disabled,
|
|
3371
3371
|
onChange: s[1] || (s[1] = (u) => n("change", a.value))
|
|
3372
3372
|
}, null, 8, ["modelValue", "label", "group", "widthBreaks", "disabled"]);
|
|
3373
3373
|
};
|
|
3374
3374
|
}
|
|
3375
|
-
}),
|
|
3375
|
+
}), Tl = {
|
|
3376
3376
|
key: 0,
|
|
3377
3377
|
class: "ck-tab"
|
|
3378
|
-
},
|
|
3378
|
+
}, Bl = /* @__PURE__ */ R({
|
|
3379
3379
|
__name: "ck-tab",
|
|
3380
3380
|
props: {
|
|
3381
3381
|
title: {},
|
|
@@ -3383,8 +3383,8 @@ const wl = /* @__PURE__ */ H(Cl, [["__scopeId", "data-v-3762640e"]]), $l = /* @_
|
|
|
3383
3383
|
},
|
|
3384
3384
|
setup(e) {
|
|
3385
3385
|
const o = e, t = Ht("addTab"), n = x(!1);
|
|
3386
|
-
function a(
|
|
3387
|
-
n.value =
|
|
3386
|
+
function a(i) {
|
|
3387
|
+
n.value = i;
|
|
3388
3388
|
}
|
|
3389
3389
|
return _e(() => {
|
|
3390
3390
|
t({
|
|
@@ -3392,37 +3392,37 @@ const wl = /* @__PURE__ */ H(Cl, [["__scopeId", "data-v-3762640e"]]), $l = /* @_
|
|
|
3392
3392
|
icon: o.icon,
|
|
3393
3393
|
title: o.title
|
|
3394
3394
|
});
|
|
3395
|
-
}), (
|
|
3396
|
-
W(
|
|
3397
|
-
])) :
|
|
3395
|
+
}), (i, s) => n.value ? (v(), k("div", Tl, [
|
|
3396
|
+
W(i.$slots, "default", {}, void 0, !0)
|
|
3397
|
+
])) : C("", !0);
|
|
3398
3398
|
}
|
|
3399
3399
|
});
|
|
3400
|
-
const Pl = /* @__PURE__ */ H(
|
|
3400
|
+
const Pl = /* @__PURE__ */ H(Bl, [["__scopeId", "data-v-eaadcaf7"]]), Vl = { class: "ck-tabs" }, Dl = ["onClick"], Ll = { class: "ck-tabs__tab-content" }, Sl = "flat", Ml = /* @__PURE__ */ R({
|
|
3401
3401
|
__name: "ck-tabs",
|
|
3402
3402
|
props: {
|
|
3403
3403
|
type: {}
|
|
3404
3404
|
},
|
|
3405
3405
|
emits: ["tabSelected"],
|
|
3406
3406
|
setup(e, { expose: o, emit: t }) {
|
|
3407
|
-
const n = x(null), a = x(!1),
|
|
3407
|
+
const n = x(null), a = x(!1), i = x(!1), s = e, c = t, u = x([]), p = x(null), r = d(() => s.type ? s.type : Sl), m = d(() => {
|
|
3408
3408
|
const b = [];
|
|
3409
3409
|
return r.value && b.push(`ck-tabs__header--button-${r.value}`), b;
|
|
3410
3410
|
});
|
|
3411
|
-
function
|
|
3412
|
-
u.value.forEach((h,
|
|
3413
|
-
h.selectTab(
|
|
3411
|
+
function l(b) {
|
|
3412
|
+
u.value.forEach((h, B) => {
|
|
3413
|
+
h.selectTab(B === b);
|
|
3414
3414
|
}), p.value = b, c("tabSelected", b);
|
|
3415
3415
|
}
|
|
3416
3416
|
function g() {
|
|
3417
3417
|
if (!n.value)
|
|
3418
3418
|
return;
|
|
3419
|
-
const { scrollLeft: b, scrollWidth: h, clientWidth:
|
|
3420
|
-
a.value = b > 0,
|
|
3419
|
+
const { scrollLeft: b, scrollWidth: h, clientWidth: B } = n.value;
|
|
3420
|
+
a.value = b > 0, i.value = b + B < h - 3;
|
|
3421
3421
|
}
|
|
3422
3422
|
function f() {
|
|
3423
3423
|
n.value && n.value.scrollBy({ left: -200, behavior: "smooth" });
|
|
3424
3424
|
}
|
|
3425
|
-
function
|
|
3425
|
+
function y() {
|
|
3426
3426
|
n.value && n.value.scrollBy({ left: 200, behavior: "smooth" });
|
|
3427
3427
|
}
|
|
3428
3428
|
return qt("addTab", (b) => {
|
|
@@ -3430,17 +3430,17 @@ const Pl = /* @__PURE__ */ H(Tl, [["__scopeId", "data-v-eaadcaf7"]]), Vl = { cla
|
|
|
3430
3430
|
}), _e(() => {
|
|
3431
3431
|
var h;
|
|
3432
3432
|
g(), (h = n.value) == null || h.addEventListener("scroll", g);
|
|
3433
|
-
const b = u.value.find((
|
|
3434
|
-
b &&
|
|
3433
|
+
const b = u.value.find((B) => B.active) || u.value[0];
|
|
3434
|
+
b && l(u.value.indexOf(b));
|
|
3435
3435
|
}), o({
|
|
3436
|
-
selectTab:
|
|
3436
|
+
selectTab: l
|
|
3437
3437
|
}), Ut(g), (b, h) => {
|
|
3438
|
-
const
|
|
3439
|
-
return
|
|
3438
|
+
const B = Y("ck-icon"), O = Y("ck-circle");
|
|
3439
|
+
return v(), k("div", Vl, [
|
|
3440
3440
|
$("div", {
|
|
3441
|
-
class:
|
|
3441
|
+
class: I(["ck-tabs__header", { "has-left-arrow": a.value, "has-right-arrow": i.value }])
|
|
3442
3442
|
}, [
|
|
3443
|
-
a.value ? (
|
|
3443
|
+
a.value ? (v(), D(O, {
|
|
3444
3444
|
key: 0,
|
|
3445
3445
|
class: "header--scroll-btn",
|
|
3446
3446
|
color: "primary",
|
|
@@ -3448,39 +3448,39 @@ const Pl = /* @__PURE__ */ H(Tl, [["__scopeId", "data-v-eaadcaf7"]]), Vl = { cla
|
|
|
3448
3448
|
onClick: h[0] || (h[0] = (P) => f())
|
|
3449
3449
|
}, {
|
|
3450
3450
|
default: N(() => [
|
|
3451
|
-
U(
|
|
3451
|
+
U(B, { icon: "chevron-left" })
|
|
3452
3452
|
]),
|
|
3453
3453
|
_: 1
|
|
3454
|
-
})) :
|
|
3454
|
+
})) : C("", !0),
|
|
3455
3455
|
$("div", {
|
|
3456
3456
|
ref_key: "tabsContainer",
|
|
3457
3457
|
ref: n,
|
|
3458
|
-
class:
|
|
3458
|
+
class: I(["ck-tabs__header-content", { "header-content--flat": r.value === "flat" }])
|
|
3459
3459
|
}, [
|
|
3460
|
-
(
|
|
3461
|
-
key:
|
|
3462
|
-
class:
|
|
3463
|
-
onClick: (
|
|
3460
|
+
(v(!0), k(K, null, re(u.value, (P, T) => (v(), k("div", {
|
|
3461
|
+
key: T,
|
|
3462
|
+
class: I([m.value, { "is-selected": p.value === T }]),
|
|
3463
|
+
onClick: (S) => l(T)
|
|
3464
3464
|
}, [
|
|
3465
|
-
P.icon ? (
|
|
3465
|
+
P.icon ? (v(), D(B, {
|
|
3466
3466
|
key: 0,
|
|
3467
3467
|
icon: P.icon
|
|
3468
|
-
}, null, 8, ["icon"])) :
|
|
3469
|
-
G(" " +
|
|
3468
|
+
}, null, 8, ["icon"])) : C("", !0),
|
|
3469
|
+
G(" " + M(P.title), 1)
|
|
3470
3470
|
], 10, Dl))), 128))
|
|
3471
3471
|
], 2),
|
|
3472
|
-
|
|
3472
|
+
i.value ? (v(), D(O, {
|
|
3473
3473
|
key: 1,
|
|
3474
3474
|
class: "header--scroll-btn",
|
|
3475
3475
|
color: "primary",
|
|
3476
3476
|
size: "xs",
|
|
3477
|
-
onClick: h[1] || (h[1] = (P) =>
|
|
3477
|
+
onClick: h[1] || (h[1] = (P) => y())
|
|
3478
3478
|
}, {
|
|
3479
3479
|
default: N(() => [
|
|
3480
|
-
U(
|
|
3480
|
+
U(B, { icon: "chevron-right" })
|
|
3481
3481
|
]),
|
|
3482
3482
|
_: 1
|
|
3483
|
-
})) :
|
|
3483
|
+
})) : C("", !0)
|
|
3484
3484
|
], 2),
|
|
3485
3485
|
$("div", Ll, [
|
|
3486
3486
|
W(b.$slots, "default", {}, void 0, !0)
|
|
@@ -3489,7 +3489,7 @@ const Pl = /* @__PURE__ */ H(Tl, [["__scopeId", "data-v-eaadcaf7"]]), Vl = { cla
|
|
|
3489
3489
|
};
|
|
3490
3490
|
}
|
|
3491
3491
|
});
|
|
3492
|
-
const
|
|
3492
|
+
const Il = /* @__PURE__ */ H(Ml, [["__scopeId", "data-v-1d834ae1"]]), xl = "rounded", Al = /* @__PURE__ */ R({
|
|
3493
3493
|
__name: "ck-toggle",
|
|
3494
3494
|
props: {
|
|
3495
3495
|
modelValue: { type: Boolean },
|
|
@@ -3502,39 +3502,39 @@ const xl = /* @__PURE__ */ H(Ml, [["__scopeId", "data-v-1d834ae1"]]), Al = "roun
|
|
|
3502
3502
|
},
|
|
3503
3503
|
emits: ["update:modelValue"],
|
|
3504
3504
|
setup(e, { emit: o }) {
|
|
3505
|
-
const t = e, n = d(() => t.layout ? t.layout :
|
|
3505
|
+
const t = e, n = d(() => t.layout ? t.layout : xl), a = d(() => {
|
|
3506
3506
|
const c = [];
|
|
3507
3507
|
return n.value && c.push(`layout-${n.value}`), c;
|
|
3508
|
-
}),
|
|
3508
|
+
}), i = o, s = d({
|
|
3509
3509
|
get() {
|
|
3510
3510
|
return t.modelValue;
|
|
3511
3511
|
},
|
|
3512
3512
|
set(c) {
|
|
3513
|
-
t.preventAutoUpdate ||
|
|
3513
|
+
t.preventAutoUpdate || i("update:modelValue", c);
|
|
3514
3514
|
}
|
|
3515
3515
|
});
|
|
3516
3516
|
return (c, u) => {
|
|
3517
3517
|
const p = Y("ck-icon");
|
|
3518
|
-
return
|
|
3519
|
-
class:
|
|
3518
|
+
return v(), k("div", {
|
|
3519
|
+
class: I(["ck-toggle", [a.value, { "is-active": s.value }]]),
|
|
3520
3520
|
onClick: u[0] || (u[0] = (r) => s.value = !s.value)
|
|
3521
3521
|
}, [
|
|
3522
|
-
c.icon ? (
|
|
3522
|
+
c.icon ? (v(), D(p, {
|
|
3523
3523
|
key: 0,
|
|
3524
3524
|
icon: c.icon,
|
|
3525
3525
|
iconPack: c.iconPack
|
|
3526
|
-
}, null, 8, ["icon", "iconPack"])) :
|
|
3526
|
+
}, null, 8, ["icon", "iconPack"])) : C("", !0),
|
|
3527
3527
|
W(c.$slots, "default", {}, void 0, !0),
|
|
3528
|
-
c.iconRight ? (
|
|
3528
|
+
c.iconRight ? (v(), D(p, {
|
|
3529
3529
|
key: 1,
|
|
3530
3530
|
icon: c.iconRight,
|
|
3531
3531
|
iconPack: c.iconPack
|
|
3532
|
-
}, null, 8, ["icon", "iconPack"])) :
|
|
3532
|
+
}, null, 8, ["icon", "iconPack"])) : C("", !0)
|
|
3533
3533
|
], 2);
|
|
3534
3534
|
};
|
|
3535
3535
|
}
|
|
3536
3536
|
});
|
|
3537
|
-
const zl = /* @__PURE__ */ H(
|
|
3537
|
+
const zl = /* @__PURE__ */ H(Al, [["__scopeId", "data-v-f613ffcb"]]), Rl = { class: "ck-toggle-group" }, Wl = /* @__PURE__ */ R({
|
|
3538
3538
|
__name: "ck-toggle-group",
|
|
3539
3539
|
props: /* @__PURE__ */ oe({
|
|
3540
3540
|
options: {},
|
|
@@ -3551,7 +3551,7 @@ const zl = /* @__PURE__ */ H(Il, [["__scopeId", "data-v-f613ffcb"]]), Rl = { cla
|
|
|
3551
3551
|
emits: /* @__PURE__ */ oe(["change"], ["update:modelValue"]),
|
|
3552
3552
|
setup(e, { emit: o }) {
|
|
3553
3553
|
const t = ge(e, "modelValue"), n = e, a = o;
|
|
3554
|
-
function
|
|
3554
|
+
function i(r) {
|
|
3555
3555
|
return r.name;
|
|
3556
3556
|
}
|
|
3557
3557
|
function s(r) {
|
|
@@ -3562,45 +3562,45 @@ const zl = /* @__PURE__ */ H(Il, [["__scopeId", "data-v-f613ffcb"]]), Rl = { cla
|
|
|
3562
3562
|
return r.icon;
|
|
3563
3563
|
}
|
|
3564
3564
|
function u(r) {
|
|
3565
|
-
const
|
|
3566
|
-
return n.multipleSelection ? Array.isArray(t.value) && t.value.includes(
|
|
3565
|
+
const m = s(r);
|
|
3566
|
+
return n.multipleSelection ? Array.isArray(t.value) && t.value.includes(m) : t.value === m;
|
|
3567
3567
|
}
|
|
3568
3568
|
function p(r) {
|
|
3569
|
-
const
|
|
3569
|
+
const m = s(r);
|
|
3570
3570
|
if (n.multipleSelection) {
|
|
3571
|
-
const
|
|
3572
|
-
g !== -1 ?
|
|
3571
|
+
const l = Array.isArray(t.value) ? [...t.value] : [], g = l.indexOf(m);
|
|
3572
|
+
g !== -1 ? l.splice(g, 1) : l.push(m), t.value = l;
|
|
3573
3573
|
} else
|
|
3574
|
-
t.value =
|
|
3574
|
+
t.value = m;
|
|
3575
3575
|
a("change");
|
|
3576
3576
|
}
|
|
3577
|
-
return (r,
|
|
3578
|
-
const
|
|
3579
|
-
return
|
|
3580
|
-
r.label ? (
|
|
3577
|
+
return (r, m) => {
|
|
3578
|
+
const l = Y("ck-label"), g = Y("ck-toggle");
|
|
3579
|
+
return v(), k("div", Rl, [
|
|
3580
|
+
r.label ? (v(), D(l, {
|
|
3581
3581
|
key: 0,
|
|
3582
3582
|
align: r.labelAlign
|
|
3583
3583
|
}, {
|
|
3584
3584
|
default: N(() => [
|
|
3585
|
-
G(
|
|
3585
|
+
G(M(r.label), 1)
|
|
3586
3586
|
]),
|
|
3587
3587
|
_: 1
|
|
3588
|
-
}, 8, ["align"])) :
|
|
3588
|
+
}, 8, ["align"])) : C("", !0),
|
|
3589
3589
|
$("div", {
|
|
3590
3590
|
class: "ck-toggle-group__options",
|
|
3591
3591
|
style: F({ gap: r.gap })
|
|
3592
3592
|
}, [
|
|
3593
|
-
(
|
|
3593
|
+
(v(!0), k(K, null, re(r.options, (f) => (v(), D(g, {
|
|
3594
3594
|
modelValue: u(f),
|
|
3595
3595
|
key: s(f),
|
|
3596
3596
|
icon: c(f),
|
|
3597
3597
|
iconPack: r.iconPack,
|
|
3598
3598
|
layout: r.layout,
|
|
3599
3599
|
preventAutoUpdate: "",
|
|
3600
|
-
onClick: (
|
|
3600
|
+
onClick: (y) => p(f)
|
|
3601
3601
|
}, {
|
|
3602
3602
|
default: N(() => [
|
|
3603
|
-
G(
|
|
3603
|
+
G(M(i(f)), 1)
|
|
3604
3604
|
]),
|
|
3605
3605
|
_: 2
|
|
3606
3606
|
}, 1032, ["modelValue", "icon", "iconPack", "layout", "onClick"]))), 128))
|
|
@@ -3636,12 +3636,12 @@ const Ol = /* @__PURE__ */ H(Wl, [["__scopeId", "data-v-43006e82"]]), El = ["onC
|
|
|
3636
3636
|
},
|
|
3637
3637
|
emits: ["click", "action"],
|
|
3638
3638
|
setup(e, { emit: o }) {
|
|
3639
|
-
const t = e, n = o, a = x(!1),
|
|
3639
|
+
const t = e, n = o, a = x(!1), i = d(() => {
|
|
3640
3640
|
var r;
|
|
3641
3641
|
return !!((r = t.extraActions) != null && r.length);
|
|
3642
3642
|
}), s = d(() => {
|
|
3643
|
-
const { extraActions: r, ...
|
|
3644
|
-
return
|
|
3643
|
+
const { extraActions: r, ...m } = t;
|
|
3644
|
+
return i.value ? { ...m, group: "left" } : m;
|
|
3645
3645
|
}), c = d(() => ({
|
|
3646
3646
|
type: t.type,
|
|
3647
3647
|
color: t.color,
|
|
@@ -3657,54 +3657,54 @@ const Ol = /* @__PURE__ */ H(Wl, [["__scopeId", "data-v-43006e82"]]), El = ["onC
|
|
|
3657
3657
|
function p(r) {
|
|
3658
3658
|
n("action", r), a.value = !1;
|
|
3659
3659
|
}
|
|
3660
|
-
return (r,
|
|
3660
|
+
return (r, m) => (v(), k("div", {
|
|
3661
3661
|
class: "dropdown-btn__outer",
|
|
3662
|
-
onMouseleave:
|
|
3662
|
+
onMouseleave: m[4] || (m[4] = (l) => a.value = !1)
|
|
3663
3663
|
}, [
|
|
3664
|
-
U(
|
|
3665
|
-
onClick:
|
|
3664
|
+
U(Be, Ae(s.value, {
|
|
3665
|
+
onClick: m[0] || (m[0] = (l) => u(l))
|
|
3666
3666
|
}), {
|
|
3667
3667
|
default: N(() => [
|
|
3668
3668
|
W(r.$slots, "default", {}, void 0, !0)
|
|
3669
3669
|
]),
|
|
3670
3670
|
_: 3
|
|
3671
3671
|
}, 16),
|
|
3672
|
-
|
|
3672
|
+
i.value ? (v(), k("div", {
|
|
3673
3673
|
key: 0,
|
|
3674
3674
|
class: "dropdown-btn__chevron-area",
|
|
3675
|
-
onClick:
|
|
3676
|
-
onMouseenter:
|
|
3675
|
+
onClick: m[1] || (m[1] = (l) => a.value = !a.value),
|
|
3676
|
+
onMouseenter: m[2] || (m[2] = (l) => a.value = !0)
|
|
3677
3677
|
}, [
|
|
3678
|
-
U(
|
|
3678
|
+
U(Be, Yt(Gt(c.value)), {
|
|
3679
3679
|
default: N(() => [
|
|
3680
|
-
U(
|
|
3680
|
+
U(Q, {
|
|
3681
3681
|
icon: "angle-down",
|
|
3682
3682
|
size: "xs"
|
|
3683
3683
|
})
|
|
3684
3684
|
]),
|
|
3685
3685
|
_: 1
|
|
3686
3686
|
}, 16)
|
|
3687
|
-
], 32)) :
|
|
3687
|
+
], 32)) : C("", !0),
|
|
3688
3688
|
U(Zt, { name: "fade" }, {
|
|
3689
3689
|
default: N(() => [
|
|
3690
|
-
a.value ? (
|
|
3690
|
+
a.value ? (v(), k("div", {
|
|
3691
3691
|
key: 0,
|
|
3692
3692
|
class: "extra-actions__container",
|
|
3693
|
-
onMouseenter:
|
|
3693
|
+
onMouseenter: m[3] || (m[3] = (l) => a.value = !0)
|
|
3694
3694
|
}, [
|
|
3695
|
-
(
|
|
3696
|
-
key:
|
|
3695
|
+
(v(!0), k(K, null, re(r.extraActions, (l) => (v(), k("div", {
|
|
3696
|
+
key: l.id,
|
|
3697
3697
|
class: "extra-action__item",
|
|
3698
3698
|
style: F({ color: c.value.textColor }),
|
|
3699
|
-
onClick: (g) => p(
|
|
3699
|
+
onClick: (g) => p(l.id)
|
|
3700
3700
|
}, [
|
|
3701
|
-
$("span", Nl,
|
|
3702
|
-
U(
|
|
3701
|
+
$("span", Nl, M(l.name), 1),
|
|
3702
|
+
U(Q, {
|
|
3703
3703
|
icon: "angle-left",
|
|
3704
3704
|
size: "xs"
|
|
3705
3705
|
})
|
|
3706
3706
|
], 12, El))), 128))
|
|
3707
|
-
], 32)) :
|
|
3707
|
+
], 32)) : C("", !0)
|
|
3708
3708
|
]),
|
|
3709
3709
|
_: 1
|
|
3710
3710
|
})
|
|
@@ -3729,9 +3729,9 @@ const Hl = /* @__PURE__ */ H(jl, [["__scopeId", "data-v-156da60c"]]), ql = {
|
|
|
3729
3729
|
},
|
|
3730
3730
|
emits: ["update:modelValue", "closeCard"],
|
|
3731
3731
|
setup(e, { emit: o }) {
|
|
3732
|
-
const t = e, n = o, { cleekOptions: a } = ae(ne()),
|
|
3732
|
+
const t = e, n = o, { cleekOptions: a } = ae(ne()), i = d(() => typeof t.modelValue < "u"), s = d({
|
|
3733
3733
|
get() {
|
|
3734
|
-
return !
|
|
3734
|
+
return !i.value || t.modelValue === null ? !0 : !!t.modelValue;
|
|
3735
3735
|
},
|
|
3736
3736
|
set(u) {
|
|
3737
3737
|
n("update:modelValue", u), u || n("closeCard");
|
|
@@ -3742,33 +3742,33 @@ const Hl = /* @__PURE__ */ H(jl, [["__scopeId", "data-v-156da60c"]]), ql = {
|
|
|
3742
3742
|
});
|
|
3743
3743
|
return (u, p) => {
|
|
3744
3744
|
const r = Y("ck-icon");
|
|
3745
|
-
return s.value ? (
|
|
3745
|
+
return s.value ? (v(), k("div", {
|
|
3746
3746
|
key: 0,
|
|
3747
|
-
class:
|
|
3747
|
+
class: I(["ck-card", c.value])
|
|
3748
3748
|
}, [
|
|
3749
|
-
u.title || u.$slots.header ||
|
|
3749
|
+
u.title || u.$slots.header || i.value ? (v(), k("div", {
|
|
3750
3750
|
key: 0,
|
|
3751
|
-
class:
|
|
3751
|
+
class: I(["ck-card__header", { "is-close-button-visible": i.value }])
|
|
3752
3752
|
}, [
|
|
3753
|
-
u.title || u.$slots.header ? (
|
|
3753
|
+
u.title || u.$slots.header ? (v(), k("div", ql, M(u.title), 1)) : C("", !0),
|
|
3754
3754
|
W(u.$slots, "header", {}, void 0, !0),
|
|
3755
|
-
|
|
3755
|
+
i.value ? (v(), k("div", {
|
|
3756
3756
|
key: 1,
|
|
3757
3757
|
class: "ck-card__close-btn",
|
|
3758
|
-
onClick: p[0] || (p[0] = (
|
|
3758
|
+
onClick: p[0] || (p[0] = (m) => s.value = !1)
|
|
3759
3759
|
}, [
|
|
3760
3760
|
U(r, { icon: "times" })
|
|
3761
|
-
])) :
|
|
3762
|
-
], 2)) :
|
|
3761
|
+
])) : C("", !0)
|
|
3762
|
+
], 2)) : C("", !0),
|
|
3763
3763
|
$("div", Ul, [
|
|
3764
|
-
u.subtitle ? (
|
|
3764
|
+
u.subtitle ? (v(), k("div", Yl, M(u.subtitle), 1)) : C("", !0),
|
|
3765
3765
|
$("div", {
|
|
3766
|
-
class:
|
|
3766
|
+
class: I(["ck-card__content", { "content-block": u.block }])
|
|
3767
3767
|
}, [
|
|
3768
3768
|
W(u.$slots, "default", {}, void 0, !0)
|
|
3769
3769
|
], 2)
|
|
3770
3770
|
])
|
|
3771
|
-
], 2)) :
|
|
3771
|
+
], 2)) : C("", !0);
|
|
3772
3772
|
};
|
|
3773
3773
|
}
|
|
3774
3774
|
});
|
|
@@ -3790,43 +3790,43 @@ const Zl = /* @__PURE__ */ H(Gl, [["__scopeId", "data-v-780265b9"]]), Kl = ["col
|
|
|
3790
3790
|
},
|
|
3791
3791
|
emits: ["click"],
|
|
3792
3792
|
setup(e, { emit: o }) {
|
|
3793
|
-
const t = e, { windowWidth: n } = ke(), { cleekOptions: a } = ae(ne()),
|
|
3794
|
-
const
|
|
3795
|
-
return c.value === "outlined" ?
|
|
3793
|
+
const t = e, { windowWidth: n } = ke(), { cleekOptions: a } = ae(ne()), i = o, s = d(() => t.layout ? t.layout : a.value ? a.value.chip.layout : ei), c = d(() => t.type ? t.type : a.value ? a.value.chip.type : Xl), u = d(() => t.color || Ql), p = d(() => {
|
|
3794
|
+
const l = [];
|
|
3795
|
+
return c.value === "outlined" ? l.push("type--outlined") : c.value === "shadow" ? l.push("type--shadow") : L.isColorTemplateVariable(u.value) && l.push(`ck-component__bg-color--${u.value}`), s.value && l.push(`layout--${s.value}`), l.push(L.getGroupClass(t, n.value)), l.push(`size-${t.size || Jl}`), t.align && l.push(`align--${t.align}`), t.nowrap && l.push(`ck-chip--${t.nowrap}`), t.clickable && l.push("clickable"), l;
|
|
3796
3796
|
});
|
|
3797
|
-
function r(
|
|
3798
|
-
return
|
|
3797
|
+
function r(l) {
|
|
3798
|
+
return L.isColorTemplateVariable(l) ? L.getColorHexFromTemplateVariable(l, a.value.colors) : l;
|
|
3799
3799
|
}
|
|
3800
|
-
const
|
|
3801
|
-
const
|
|
3802
|
-
if (
|
|
3800
|
+
const m = d(() => {
|
|
3801
|
+
const l = [], g = r(u.value);
|
|
3802
|
+
if (l.push({ "--chip-bg": g }), c.value === "outlined") {
|
|
3803
3803
|
const f = r(t.textColor || u.value);
|
|
3804
|
-
|
|
3804
|
+
l.push({ borderColor: g }), l.push({ color: f });
|
|
3805
3805
|
} else
|
|
3806
|
-
c.value === "shadow" ? (
|
|
3807
|
-
return
|
|
3806
|
+
c.value === "shadow" ? (L.isColorTemplateVariable(u.value) || l.push({ backgroundColor: u.value }), l.push({ color: t.textColor || mt })) : (L.isColorTemplateVariable(u.value) || l.push({ backgroundColor: u.value }), l.push({ color: t.textColor || mt }));
|
|
3807
|
+
return l;
|
|
3808
3808
|
});
|
|
3809
|
-
return (
|
|
3810
|
-
class:
|
|
3811
|
-
color:
|
|
3812
|
-
style: F(
|
|
3813
|
-
onClick: g[0] || (g[0] = (f) =>
|
|
3809
|
+
return (l, g) => (v(), k("div", {
|
|
3810
|
+
class: I(["ck-chip", p.value]),
|
|
3811
|
+
color: l.color,
|
|
3812
|
+
style: F(m.value),
|
|
3813
|
+
onClick: g[0] || (g[0] = (f) => i("click", f))
|
|
3814
3814
|
}, [
|
|
3815
|
-
|
|
3815
|
+
l.icon ? (v(), D(Q, {
|
|
3816
3816
|
key: 0,
|
|
3817
3817
|
class: "pr-2",
|
|
3818
|
-
icon:
|
|
3819
|
-
"icon-pack":
|
|
3820
|
-
}, null, 8, ["icon", "icon-pack"])) :
|
|
3818
|
+
icon: l.icon,
|
|
3819
|
+
"icon-pack": l.iconPack
|
|
3820
|
+
}, null, 8, ["icon", "icon-pack"])) : C("", !0),
|
|
3821
3821
|
$("span", null, [
|
|
3822
|
-
W(
|
|
3822
|
+
W(l.$slots, "default", {}, void 0, !0)
|
|
3823
3823
|
]),
|
|
3824
|
-
|
|
3824
|
+
l.iconRight ? (v(), D(Q, {
|
|
3825
3825
|
key: 1,
|
|
3826
3826
|
class: "pl-2",
|
|
3827
|
-
icon:
|
|
3828
|
-
"icon-pack":
|
|
3829
|
-
}, null, 8, ["icon", "icon-pack"])) :
|
|
3827
|
+
icon: l.iconRight,
|
|
3828
|
+
"icon-pack": l.iconPack
|
|
3829
|
+
}, null, 8, ["icon", "icon-pack"])) : C("", !0)
|
|
3830
3830
|
], 14, Kl));
|
|
3831
3831
|
}
|
|
3832
3832
|
});
|
|
@@ -3846,22 +3846,22 @@ const oi = /* @__PURE__ */ H(ti, [["__scopeId", "data-v-2bb1c329"]]), ni = "prim
|
|
|
3846
3846
|
const s = [];
|
|
3847
3847
|
let c = t.size;
|
|
3848
3848
|
return t.size !== "s" && t.size !== "l" && t.size !== "xs" && (c = ai), s.push(`ck-circle__size-${c}`), s.push(`ck-component__bg-color--${t.color || ni}`), s;
|
|
3849
|
-
}),
|
|
3849
|
+
}), i = d(() => {
|
|
3850
3850
|
const s = [];
|
|
3851
|
-
return t.sizeInPx && (s.push({ height: t.sizeInPx }), s.push({ width: t.sizeInPx })), (t.color ||
|
|
3851
|
+
return t.sizeInPx && (s.push({ height: t.sizeInPx }), s.push({ width: t.sizeInPx })), (t.color || L.isColorTemplateVariable(t.color)) && (s.push({ backgroundColor: t.color }), s.push({ color: t.textColor || li })), s;
|
|
3852
3852
|
});
|
|
3853
3853
|
return (s, c) => {
|
|
3854
3854
|
const u = Y("ck-icon");
|
|
3855
|
-
return
|
|
3856
|
-
class:
|
|
3857
|
-
style: F(
|
|
3855
|
+
return v(), k("div", {
|
|
3856
|
+
class: I(["ck-circle", a.value]),
|
|
3857
|
+
style: F(i.value),
|
|
3858
3858
|
onClick: c[0] || (c[0] = (p) => n("click", p))
|
|
3859
3859
|
}, [
|
|
3860
|
-
s.icon ? (
|
|
3860
|
+
s.icon ? (v(), D(u, {
|
|
3861
3861
|
key: 0,
|
|
3862
3862
|
icon: s.icon,
|
|
3863
3863
|
iconPack: s.iconPack
|
|
3864
|
-
}, null, 8, ["icon", "iconPack"])) :
|
|
3864
|
+
}, null, 8, ["icon", "iconPack"])) : C("", !0),
|
|
3865
3865
|
W(s.$slots, "default", {}, void 0, !0)
|
|
3866
3866
|
], 6);
|
|
3867
3867
|
};
|
|
@@ -3876,16 +3876,16 @@ const si = /* @__PURE__ */ H(ii, [["__scopeId", "data-v-ba0b3fb6"]]), ri = /* @_
|
|
|
3876
3876
|
},
|
|
3877
3877
|
emits: ["click"],
|
|
3878
3878
|
setup(e, { emit: o }) {
|
|
3879
|
-
const t = e, n = o, { cleekOptions: a } = ae(ne()), { windowWidth:
|
|
3879
|
+
const t = e, n = o, { cleekOptions: a } = ae(ne()), { windowWidth: i } = ke(), s = d(() => {
|
|
3880
3880
|
const c = [];
|
|
3881
3881
|
if (t.widthBreaks) {
|
|
3882
|
-
const p =
|
|
3882
|
+
const p = L.getWidthByWidthBreaks(t.widthBreaks, i.value);
|
|
3883
3883
|
p && c.push({ width: p });
|
|
3884
3884
|
}
|
|
3885
3885
|
const u = t.gap || a.value.div.gap;
|
|
3886
3886
|
return u && c.push({ gap: u }), t.block && c.push({ display: "block" }), c;
|
|
3887
3887
|
});
|
|
3888
|
-
return (c, u) => (
|
|
3888
|
+
return (c, u) => (v(), k("div", {
|
|
3889
3889
|
class: "ck-div",
|
|
3890
3890
|
style: F(s.value),
|
|
3891
3891
|
onClick: u[0] || (u[0] = (p) => n("click", p))
|
|
@@ -3918,34 +3918,34 @@ const ui = {
|
|
|
3918
3918
|
},
|
|
3919
3919
|
emits: ["click"],
|
|
3920
3920
|
setup(e, { emit: o }) {
|
|
3921
|
-
const t = e, n = o, { cleekOptions: a } = ae(ne()),
|
|
3921
|
+
const t = e, n = o, { cleekOptions: a } = ae(ne()), i = x(!1), s = x(!1), c = d(() => t.src.substring(0, 4) === "http"), u = d(() => s.value ? c.value ? t.src : g(t.src) : ""), p = d(() => {
|
|
3922
3922
|
const f = [];
|
|
3923
|
-
return t.size && f.push(`ck-img__size--${t.size}`), t.rounded && f.push("is-rounded"), t.hasBorder && (f.push("ck-img__has-border"),
|
|
3923
|
+
return t.size && f.push(`ck-img__size--${t.size}`), t.rounded && f.push("is-rounded"), t.hasBorder && (f.push("ck-img__has-border"), L.isColorTemplateVariable(l.value) && f.push(`ck-component__border-color--${l.value}`)), t.zoom && f.push("zoom-able"), f;
|
|
3924
3924
|
}), r = d(() => {
|
|
3925
3925
|
const f = [];
|
|
3926
3926
|
t.sizeAbsolute && (f.push({ width: t.sizeAbsolute }), f.push({ height: t.sizeAbsolute }));
|
|
3927
|
-
let
|
|
3928
|
-
return typeof t.radius > "u" && a.value.styles.layout === "squared" && (
|
|
3929
|
-
}),
|
|
3927
|
+
let y = t.radius;
|
|
3928
|
+
return typeof t.radius > "u" && a.value.styles.layout === "squared" && (y = "0px"), y && f.push({ "border-radius": y }), t.hasBorder && (L.isColorTemplateVariable(l.value) || f.push({ "border-color": l.value })), f;
|
|
3929
|
+
}), m = d(() => {
|
|
3930
3930
|
const f = [];
|
|
3931
3931
|
return t.radius && f.push({ "border-radius": t.radius }), t.width && f.push({ width: t.width }), t.height && f.push({ height: t.height }), f;
|
|
3932
|
-
}),
|
|
3932
|
+
}), l = d(() => t.borderColor ? t.borderColor : ui.defaultImgBorderColor);
|
|
3933
3933
|
function g(f) {
|
|
3934
|
-
let
|
|
3935
|
-
return a.value.img.basePath && (
|
|
3934
|
+
let y = a.value.img.basePath;
|
|
3935
|
+
return a.value.img.basePath && (y = a.value.img.basePath), y || (y = a.value.img.basePathStatic), t.dynamic && (y = a.value.img.basePathDynamic), `${y}${f}`;
|
|
3936
3936
|
}
|
|
3937
3937
|
return _e(() => {
|
|
3938
3938
|
s.value = !0;
|
|
3939
|
-
}), (f,
|
|
3940
|
-
class:
|
|
3939
|
+
}), (f, y) => (v(), k("div", {
|
|
3940
|
+
class: I(["ck-img", p.value]),
|
|
3941
3941
|
style: F(r.value),
|
|
3942
|
-
onClick:
|
|
3942
|
+
onClick: y[1] || (y[1] = (b) => n("click", b))
|
|
3943
3943
|
}, [
|
|
3944
3944
|
$("img", {
|
|
3945
3945
|
src: u.value,
|
|
3946
|
-
style: F(
|
|
3946
|
+
style: F(m.value),
|
|
3947
3947
|
alt: f.alt,
|
|
3948
|
-
onError:
|
|
3948
|
+
onError: y[0] || (y[0] = (b) => i.value = !0)
|
|
3949
3949
|
}, null, 44, ci)
|
|
3950
3950
|
], 6));
|
|
3951
3951
|
}
|
|
@@ -3974,7 +3974,7 @@ const pi = /* @__PURE__ */ H(di, [["__scopeId", "data-v-485e840f"]]), vi = ["onK
|
|
|
3974
3974
|
set(p) {
|
|
3975
3975
|
n("update:modelValue", p), n("change", p);
|
|
3976
3976
|
}
|
|
3977
|
-
}),
|
|
3977
|
+
}), i = d(() => ({
|
|
3978
3978
|
"aria-disabled": t.disabled,
|
|
3979
3979
|
tabindex: t.disabled ? void 0 : "0"
|
|
3980
3980
|
})), s = d(() => {
|
|
@@ -3992,17 +3992,17 @@ const pi = /* @__PURE__ */ H(di, [["__scopeId", "data-v-485e840f"]]), vi = ["onK
|
|
|
3992
3992
|
function u(p, r) {
|
|
3993
3993
|
p.value = a, n("change", a);
|
|
3994
3994
|
}
|
|
3995
|
-
return (p, r) => (
|
|
3995
|
+
return (p, r) => (v(!0), k(K, null, re(s.value, (m, l) => (v(), k("label", Ae({
|
|
3996
3996
|
class: "ck-radio",
|
|
3997
|
-
key: `radio-${
|
|
3997
|
+
key: `radio-${l}`,
|
|
3998
3998
|
ref_for: !0
|
|
3999
|
-
},
|
|
3999
|
+
}, i.value, {
|
|
4000
4000
|
class: c.value,
|
|
4001
4001
|
onKeydown: r[1] || (r[1] = he(se(() => {
|
|
4002
4002
|
}, ["prevent"]), ["space"])),
|
|
4003
4003
|
onKeyup: [
|
|
4004
|
-
he((g) => u(
|
|
4005
|
-
he((g) => u(
|
|
4004
|
+
he((g) => u(m), ["enter"]),
|
|
4005
|
+
he((g) => u(m), ["space"])
|
|
4006
4006
|
]
|
|
4007
4007
|
}), [
|
|
4008
4008
|
ue($("input", {
|
|
@@ -4011,21 +4011,21 @@ const pi = /* @__PURE__ */ H(di, [["__scopeId", "data-v-485e840f"]]), vi = ["onK
|
|
|
4011
4011
|
"aria-hidden": "true",
|
|
4012
4012
|
type: "radio",
|
|
4013
4013
|
name: p.name,
|
|
4014
|
-
value:
|
|
4014
|
+
value: m.value,
|
|
4015
4015
|
disabled: p.disabled
|
|
4016
4016
|
}, null, 8, mi), [
|
|
4017
4017
|
[Kt, a.value]
|
|
4018
4018
|
]),
|
|
4019
4019
|
r[2] || (r[2] = $("div", { class: "c-Radio__element" }, null, -1)),
|
|
4020
|
-
|
|
4020
|
+
m.label ? (v(), k("span", fi, M(m.label), 1)) : C("", !0)
|
|
4021
4021
|
], 16, vi))), 128));
|
|
4022
4022
|
}
|
|
4023
4023
|
});
|
|
4024
4024
|
const gi = /* @__PURE__ */ H(hi, [["__scopeId", "data-v-d37d3f3e"]]);
|
|
4025
4025
|
function ki(e, o) {
|
|
4026
4026
|
const t = (n) => {
|
|
4027
|
-
var
|
|
4028
|
-
let a = (
|
|
4027
|
+
var i;
|
|
4028
|
+
let a = (i = e.value) == null ? void 0 : i.parentElement;
|
|
4029
4029
|
for (; a && a !== document.body; ) {
|
|
4030
4030
|
const s = window.getComputedStyle(a).overflowX, c = window.getComputedStyle(a).overflowY;
|
|
4031
4031
|
(c === "auto" || c === "scroll" || s === "auto" || s === "scroll") && a[n]("scroll", o), a = a.parentElement;
|
|
@@ -4040,7 +4040,7 @@ function ft(e) {
|
|
|
4040
4040
|
const yi = {
|
|
4041
4041
|
key: 0,
|
|
4042
4042
|
class: "ck-select--optional-label"
|
|
4043
|
-
}, bi = ["disabled"], _i = ["value"], Ci = ["placeholder", "disabled"], wi = ["onMousedown", "onMouseenter"], $i = ["textContent"],
|
|
4043
|
+
}, bi = ["disabled"], _i = ["value"], Ci = ["placeholder", "disabled"], wi = ["onMousedown", "onMouseenter"], $i = ["textContent"], Ti = /* @__PURE__ */ R({
|
|
4044
4044
|
__name: "ck-select",
|
|
4045
4045
|
props: /* @__PURE__ */ oe({
|
|
4046
4046
|
options: {},
|
|
@@ -4084,31 +4084,31 @@ const yi = {
|
|
|
4084
4084
|
}),
|
|
4085
4085
|
emits: /* @__PURE__ */ oe(["change", "click"], ["update:modelValue"]),
|
|
4086
4086
|
setup(e, { expose: o, emit: t }) {
|
|
4087
|
-
const n = ge(e, "modelValue"), a = e,
|
|
4087
|
+
const n = ge(e, "modelValue"), a = e, i = t;
|
|
4088
4088
|
o({
|
|
4089
|
-
focus:
|
|
4090
|
-
blur:
|
|
4089
|
+
focus: J,
|
|
4090
|
+
blur: Te
|
|
4091
4091
|
});
|
|
4092
|
-
const { cleekOptions: s } = ae(ne()), { windowWidth: c } = ke(), u = x(), p = x(), r = x(),
|
|
4092
|
+
const { cleekOptions: s } = ae(ne()), { windowWidth: c } = ke(), u = x(), p = x(), r = x(), m = x(), l = x(""), g = x(!1), f = x(!1), y = x(-1), b = d(() => a.options.find((_) => Z(_) === n.value)), h = d(() => a.options.length), B = d(() => !h.value), O = d(() => h.value <= a.optionsLimit), P = d(() => {
|
|
4093
4093
|
if (f.value)
|
|
4094
4094
|
return a.options;
|
|
4095
|
-
const _ = ft(
|
|
4095
|
+
const _ = ft(l.value).split(" ");
|
|
4096
4096
|
return a.options.filter((z) => {
|
|
4097
|
-
const
|
|
4098
|
-
return _.every((E) =>
|
|
4097
|
+
const X = ft(Ce(z));
|
|
4098
|
+
return _.every((E) => X.includes(E));
|
|
4099
4099
|
});
|
|
4100
|
-
}),
|
|
4100
|
+
}), T = d(() => P.value.length), S = d(() => {
|
|
4101
4101
|
if (g.value && b.value)
|
|
4102
4102
|
return Ce(b.value);
|
|
4103
|
-
}), j = d(() => a.disabled ||
|
|
4103
|
+
}), j = d(() => a.disabled || B.value), ee = d(() => {
|
|
4104
4104
|
var _;
|
|
4105
4105
|
if (typeof a.clearValue < "u")
|
|
4106
4106
|
return a.clearValue;
|
|
4107
4107
|
if ((_ = s.value.select) != null && _.clearValue)
|
|
4108
4108
|
return s.value.select.clearValue;
|
|
4109
4109
|
}), le = d(() => {
|
|
4110
|
-
if (
|
|
4111
|
-
return
|
|
4110
|
+
if (ee.value)
|
|
4111
|
+
return ee.value;
|
|
4112
4112
|
const _ = n.value;
|
|
4113
4113
|
switch (typeof _) {
|
|
4114
4114
|
case "number":
|
|
@@ -4122,47 +4122,47 @@ const yi = {
|
|
|
4122
4122
|
}
|
|
4123
4123
|
}), $e = d(() => {
|
|
4124
4124
|
const _ = n.value;
|
|
4125
|
-
return
|
|
4126
|
-
}), V = d(() => a.isLoading ? "Cargando..." :
|
|
4127
|
-
() => (
|
|
4125
|
+
return ee.value ? _ === ee.value : typeof _ == "number" ? _ === 0 : typeof _ == "string" ? _ === "" : typeof _ == "object" && _ ? Array.isArray(_) ? _.length === 0 : Object.keys(_).length === 0 : _ === null;
|
|
4126
|
+
}), V = d(() => a.isLoading ? "Cargando..." : B.value ? a.emptyOptionsMsg : a.placeholder), q = d(
|
|
4127
|
+
() => (B.value || $e.value) && !l.value && V.value || a.isLoading
|
|
4128
4128
|
), de = d(() => j.value || a.notClearable ? !1 : !$e.value), me = d(() => {
|
|
4129
4129
|
const _ = [];
|
|
4130
4130
|
return a.icon && _.push("has-icon-left"), a.iconRight && _.push("has-icon-right"), _;
|
|
4131
|
-
}),
|
|
4131
|
+
}), w = d(() => {
|
|
4132
4132
|
const _ = [];
|
|
4133
4133
|
let z = !1;
|
|
4134
4134
|
if (a.widthBreaks) {
|
|
4135
|
-
const
|
|
4136
|
-
|
|
4135
|
+
const X = L.getWidthByWidthBreaks(a.widthBreaks, c.value);
|
|
4136
|
+
X && (_.push({ width: X }), z = !0);
|
|
4137
4137
|
}
|
|
4138
4138
|
return !z && a.minWidth && _.push({ "min-width": a.minWidth }), a.width && _.push({ width: a.width }), _;
|
|
4139
|
-
}),
|
|
4139
|
+
}), A = d(() => {
|
|
4140
4140
|
const _ = [];
|
|
4141
|
-
_.push(
|
|
4141
|
+
_.push(L.getGroupClass(a, c.value));
|
|
4142
4142
|
const z = a.layout || s.value.styles.layout;
|
|
4143
4143
|
z && _.push(z), de.value && _.push("clearable");
|
|
4144
|
-
const
|
|
4145
|
-
return
|
|
4146
|
-
}),
|
|
4144
|
+
const X = a.borderColor || s.value.styles.borderColor;
|
|
4145
|
+
return X && L.isColorTemplateVariable(X) && _.push(`ck-component__border-color--${X}`), _;
|
|
4146
|
+
}), te = d(() => {
|
|
4147
4147
|
const _ = [], z = a.borderColor || s.value.styles.borderColor;
|
|
4148
|
-
z && !
|
|
4149
|
-
let
|
|
4150
|
-
s.value.select.backgroundColor && (
|
|
4148
|
+
z && !L.isColorTemplateVariable(z) && _.push({ "border-color": z });
|
|
4149
|
+
let X = "";
|
|
4150
|
+
s.value.select.backgroundColor && (X = s.value.select.backgroundColor), s.value.darkMode && (X = s.value.darkModeColorItems), X && !L.isColorTemplateVariable(X) && _.push({ backgroundColor: X });
|
|
4151
4151
|
let E = s.value.popup.textColor;
|
|
4152
|
-
return s.value.darkMode && (E = s.value.darkModeColorText), E && (
|
|
4152
|
+
return s.value.darkMode && (E = s.value.darkModeColorText), E && (L.isColorTemplateVariable(E) ? _.push(`ck-component__color--${E}`) : _.push({ color: E })), _;
|
|
4153
4153
|
}), ie = d(() => {
|
|
4154
4154
|
const _ = [];
|
|
4155
4155
|
let z = s.value.popup.textColor;
|
|
4156
|
-
return s.value.darkMode && (z = s.value.darkModeColorText), z && (
|
|
4156
|
+
return s.value.darkMode && (z = s.value.darkModeColorText), z && (L.isColorTemplateVariable(z) ? _.push(`ck-component__color--${z}`) : _.push({ color: z })), _;
|
|
4157
4157
|
});
|
|
4158
|
-
ce(() => b.value, () => Ue()), ce(() =>
|
|
4159
|
-
|
|
4158
|
+
ce(() => b.value, () => Ue()), ce(() => T.value, (_) => {
|
|
4159
|
+
y.value !== -1 && (y.value + 1 <= _ || (y.value = _ - 1));
|
|
4160
4160
|
}), ce(() => r.value, (_) => {
|
|
4161
|
-
_ && (
|
|
4162
|
-
const z = document.documentElement.clientHeight,
|
|
4163
|
-
Re ? fe.top = `${E.bottom}px` : fe.bottom = `${z - E.top}px`, fe.left = `${E.left}px`, fe.right = `${
|
|
4161
|
+
_ && (m.value = { display: "none" }, setTimeout(() => {
|
|
4162
|
+
const z = document.documentElement.clientHeight, X = document.documentElement.clientWidth, E = p.value.getBoundingClientRect(), fe = {}, Re = E.top < z / 2;
|
|
4163
|
+
Re ? fe.top = `${E.bottom}px` : fe.bottom = `${z - E.top}px`, fe.left = `${E.left}px`, fe.right = `${X - E.right}px`;
|
|
4164
4164
|
const lt = 100;
|
|
4165
|
-
fe["max-height"] = Re ? `${z - E.top - lt}px` : `${E.bottom - lt}px`, fe.display = "block",
|
|
4165
|
+
fe["max-height"] = Re ? `${z - E.top - lt}px` : `${E.bottom - lt}px`, fe.display = "block", m.value = fe;
|
|
4166
4166
|
}, 150));
|
|
4167
4167
|
});
|
|
4168
4168
|
function Z(_) {
|
|
@@ -4171,16 +4171,16 @@ const yi = {
|
|
|
4171
4171
|
function Ce(_) {
|
|
4172
4172
|
return a.reduceNameFunction ? a.reduceNameFunction(_) : a.notReduceName || a.notReduce ? _ : a.reduceNameMethod ? _[a.reduceNameMethod]() : _[a.reduceNameProp];
|
|
4173
4173
|
}
|
|
4174
|
-
function
|
|
4174
|
+
function J() {
|
|
4175
4175
|
var _, z;
|
|
4176
4176
|
(_ = u.value) == null || _.focus(), (z = p.value) == null || z.focus();
|
|
4177
4177
|
}
|
|
4178
|
-
function
|
|
4178
|
+
function Te() {
|
|
4179
4179
|
var _, z;
|
|
4180
4180
|
(_ = u.value) == null || _.blur(), (z = p.value) == null || z.blur();
|
|
4181
4181
|
}
|
|
4182
4182
|
function He() {
|
|
4183
|
-
|
|
4183
|
+
l.value = "", f.value = !0, It(), g.value = !0;
|
|
4184
4184
|
}
|
|
4185
4185
|
function Dt() {
|
|
4186
4186
|
Ue(), g.value = !1;
|
|
@@ -4189,139 +4189,139 @@ const yi = {
|
|
|
4189
4189
|
f.value = !1;
|
|
4190
4190
|
}
|
|
4191
4191
|
function St(_) {
|
|
4192
|
-
const z =
|
|
4192
|
+
const z = T.value;
|
|
4193
4193
|
if (_ === "ArrowDown")
|
|
4194
|
-
|
|
4194
|
+
y.value = y.value + 1 >= z ? 0 : y.value + 1;
|
|
4195
4195
|
else if (_ === "ArrowUp")
|
|
4196
|
-
|
|
4196
|
+
y.value = y.value <= 0 ? z - 1 : y.value - 1;
|
|
4197
4197
|
else if (_ === "Enter") {
|
|
4198
|
-
const
|
|
4199
|
-
qe(Z(P.value[
|
|
4198
|
+
const X = y.value >= 0 ? y.value : 0;
|
|
4199
|
+
qe(Z(P.value[X])), Te();
|
|
4200
4200
|
}
|
|
4201
4201
|
}
|
|
4202
4202
|
function qe(_) {
|
|
4203
|
-
n.value = _,
|
|
4203
|
+
n.value = _, i("change", _);
|
|
4204
4204
|
}
|
|
4205
4205
|
function Ue() {
|
|
4206
4206
|
const _ = b.value;
|
|
4207
|
-
|
|
4207
|
+
l.value = _ ? Ce(_) : "";
|
|
4208
4208
|
}
|
|
4209
4209
|
function Mt() {
|
|
4210
|
-
|
|
4210
|
+
l.value = "", qe(le.value);
|
|
4211
4211
|
}
|
|
4212
|
-
function
|
|
4212
|
+
function It() {
|
|
4213
4213
|
if (b.value) {
|
|
4214
4214
|
const _ = P.value;
|
|
4215
|
-
|
|
4215
|
+
y.value = _.findIndex((z) => Z(z) === Z(b.value));
|
|
4216
4216
|
} else
|
|
4217
|
-
|
|
4217
|
+
y.value = -1;
|
|
4218
4218
|
}
|
|
4219
4219
|
return ki(p, () => {
|
|
4220
4220
|
var _;
|
|
4221
4221
|
return (_ = p.value) == null ? void 0 : _.blur();
|
|
4222
4222
|
}), Ue(), (_, z) => {
|
|
4223
|
-
const
|
|
4224
|
-
return
|
|
4225
|
-
class:
|
|
4226
|
-
style: F(
|
|
4223
|
+
const X = Y("ck-button");
|
|
4224
|
+
return v(), k("div", {
|
|
4225
|
+
class: I(["ck-select", me.value]),
|
|
4226
|
+
style: F(w.value)
|
|
4227
4227
|
}, [
|
|
4228
|
-
_.label ? (
|
|
4228
|
+
_.label ? (v(), D(ze, {
|
|
4229
4229
|
key: 0,
|
|
4230
4230
|
align: _.labelAlign,
|
|
4231
4231
|
for: "ck-select"
|
|
4232
4232
|
}, {
|
|
4233
4233
|
default: N(() => [
|
|
4234
|
-
G(
|
|
4235
|
-
_.optional ? (
|
|
4234
|
+
G(M(_.label) + " ", 1),
|
|
4235
|
+
_.optional ? (v(), k("span", yi, "opcional")) : C("", !0)
|
|
4236
4236
|
]),
|
|
4237
4237
|
_: 1
|
|
4238
|
-
}, 8, ["align"])) :
|
|
4239
|
-
O.value ? ue((
|
|
4238
|
+
}, 8, ["align"])) : C("", !0),
|
|
4239
|
+
O.value ? ue((v(), k("select", {
|
|
4240
4240
|
key: 1,
|
|
4241
4241
|
ref_key: "selectRef",
|
|
4242
4242
|
ref: u,
|
|
4243
4243
|
tabindex: "0",
|
|
4244
4244
|
"onUpdate:modelValue": z[0] || (z[0] = (E) => n.value = E),
|
|
4245
4245
|
id: "ck-select",
|
|
4246
|
-
class:
|
|
4247
|
-
style: F(
|
|
4246
|
+
class: I(A.value),
|
|
4247
|
+
style: F(te.value),
|
|
4248
4248
|
disabled: j.value,
|
|
4249
|
-
onChange: z[1] || (z[1] = (E) =>
|
|
4250
|
-
onClick: z[2] || (z[2] = (E) =>
|
|
4249
|
+
onChange: z[1] || (z[1] = (E) => i("change", n.value)),
|
|
4250
|
+
onClick: z[2] || (z[2] = (E) => i("click", E))
|
|
4251
4251
|
}, [
|
|
4252
|
-
(
|
|
4252
|
+
(v(!0), k(K, null, re(_.options, (E) => (v(), k("option", {
|
|
4253
4253
|
value: Z(E),
|
|
4254
4254
|
key: E,
|
|
4255
4255
|
style: F(ie.value)
|
|
4256
|
-
},
|
|
4256
|
+
}, M(Ce(E)), 13, _i))), 128))
|
|
4257
4257
|
], 46, bi)), [
|
|
4258
4258
|
[Qt, n.value]
|
|
4259
|
-
]) : ue((
|
|
4259
|
+
]) : ue((v(), k("input", {
|
|
4260
4260
|
key: 2,
|
|
4261
4261
|
ref_key: "inputRef",
|
|
4262
4262
|
ref: p,
|
|
4263
4263
|
tabindex: "0",
|
|
4264
|
-
"onUpdate:modelValue": z[3] || (z[3] = (E) =>
|
|
4264
|
+
"onUpdate:modelValue": z[3] || (z[3] = (E) => l.value = E),
|
|
4265
4265
|
id: "ck-select",
|
|
4266
|
-
class:
|
|
4267
|
-
style: F(
|
|
4268
|
-
placeholder:
|
|
4266
|
+
class: I(A.value),
|
|
4267
|
+
style: F(te.value),
|
|
4268
|
+
placeholder: S.value,
|
|
4269
4269
|
disabled: j.value,
|
|
4270
4270
|
autocomplete: "off",
|
|
4271
|
-
onClick: z[4] || (z[4] = (E) =>
|
|
4271
|
+
onClick: z[4] || (z[4] = (E) => i("click", E)),
|
|
4272
4272
|
onFocus: z[5] || (z[5] = (E) => He()),
|
|
4273
4273
|
onBlur: z[6] || (z[6] = (E) => Dt()),
|
|
4274
4274
|
onInput: z[7] || (z[7] = (E) => Lt()),
|
|
4275
4275
|
onKeydown: z[8] || (z[8] = (E) => St(E.key))
|
|
4276
4276
|
}, null, 46, Ci)), [
|
|
4277
|
-
[Fe,
|
|
4277
|
+
[Fe, l.value]
|
|
4278
4278
|
]),
|
|
4279
|
-
(
|
|
4280
|
-
g.value && P.value.length ? (
|
|
4279
|
+
(v(), D(xe, { to: "body" }, [
|
|
4280
|
+
g.value && P.value.length ? (v(), k("ul", {
|
|
4281
4281
|
key: 0,
|
|
4282
4282
|
ref_key: "dropdownRef",
|
|
4283
4283
|
ref: r,
|
|
4284
4284
|
class: "ck-input-dropdown",
|
|
4285
|
-
style: F(
|
|
4285
|
+
style: F(m.value)
|
|
4286
4286
|
}, [
|
|
4287
|
-
(
|
|
4287
|
+
(v(!0), k(K, null, re(P.value, (E, fe) => (v(), k("li", {
|
|
4288
4288
|
key: Z(E),
|
|
4289
|
-
class:
|
|
4289
|
+
class: I(["dropdown--option", {
|
|
4290
4290
|
"dropdown--option__selected": Z(E) === n.value,
|
|
4291
|
-
"dropdown--option__index-selected": fe ===
|
|
4291
|
+
"dropdown--option__index-selected": fe === y.value
|
|
4292
4292
|
}]),
|
|
4293
4293
|
onMousedown: (Re) => qe(Z(E)),
|
|
4294
|
-
onMouseenter: (Re) =>
|
|
4295
|
-
},
|
|
4296
|
-
], 4)) :
|
|
4294
|
+
onMouseenter: (Re) => y.value = fe
|
|
4295
|
+
}, M(Ce(E)), 43, wi))), 128))
|
|
4296
|
+
], 4)) : C("", !0)
|
|
4297
4297
|
])),
|
|
4298
|
-
q.value ? (
|
|
4298
|
+
q.value ? (v(), k("span", {
|
|
4299
4299
|
key: 3,
|
|
4300
4300
|
class: "ck-select--placeholder",
|
|
4301
|
-
textContent:
|
|
4302
|
-
}, null, 8, $i)) :
|
|
4303
|
-
_.icon ? (
|
|
4301
|
+
textContent: M(V.value)
|
|
4302
|
+
}, null, 8, $i)) : C("", !0),
|
|
4303
|
+
_.icon ? (v(), D(Q, {
|
|
4304
4304
|
key: 4,
|
|
4305
4305
|
class: "ck-select--icon-left",
|
|
4306
4306
|
icon: _.icon,
|
|
4307
4307
|
"icon-pack": _.iconPack,
|
|
4308
4308
|
color: _.iconColor
|
|
4309
|
-
}, null, 8, ["icon", "icon-pack", "color"])) :
|
|
4310
|
-
_.iconRight ? (
|
|
4309
|
+
}, null, 8, ["icon", "icon-pack", "color"])) : C("", !0),
|
|
4310
|
+
_.iconRight ? (v(), D(Q, {
|
|
4311
4311
|
key: 5,
|
|
4312
4312
|
class: "ck-select--icon-right",
|
|
4313
4313
|
icon: _.iconRight,
|
|
4314
4314
|
"icon-pack": _.iconPack,
|
|
4315
4315
|
color: _.iconColor
|
|
4316
|
-
}, null, 8, ["icon", "icon-pack", "color"])) :
|
|
4317
|
-
de.value ? (
|
|
4316
|
+
}, null, 8, ["icon", "icon-pack", "color"])) : C("", !0),
|
|
4317
|
+
de.value ? (v(), D(X, {
|
|
4318
4318
|
key: 6,
|
|
4319
4319
|
class: "ck-select--btn",
|
|
4320
4320
|
size: "s",
|
|
4321
4321
|
icon: "times",
|
|
4322
4322
|
type: "flat",
|
|
4323
4323
|
onClick: z[9] || (z[9] = (E) => Mt())
|
|
4324
|
-
})) : j.value ?
|
|
4324
|
+
})) : j.value ? C("", !0) : (v(), D(X, {
|
|
4325
4325
|
key: 7,
|
|
4326
4326
|
tabindex: "-1",
|
|
4327
4327
|
class: "ck-select--btn",
|
|
@@ -4334,7 +4334,7 @@ const yi = {
|
|
|
4334
4334
|
};
|
|
4335
4335
|
}
|
|
4336
4336
|
});
|
|
4337
|
-
const
|
|
4337
|
+
const Bi = /* @__PURE__ */ H(Ti, [["__scopeId", "data-v-3ab25429"]]), Pi = {
|
|
4338
4338
|
key: 0,
|
|
4339
4339
|
class: "sidebar-header-title"
|
|
4340
4340
|
}, Vi = {
|
|
@@ -4369,58 +4369,58 @@ const Ti = /* @__PURE__ */ H(Bi, [["__scopeId", "data-v-3ab25429"]]), Pi = {
|
|
|
4369
4369
|
})), a = d(() => {
|
|
4370
4370
|
const u = [];
|
|
4371
4371
|
return t.width && u.push({ width: t.width }), u;
|
|
4372
|
-
}),
|
|
4372
|
+
}), i = d(() => {
|
|
4373
4373
|
const u = [];
|
|
4374
4374
|
let p = t.closeBtnAlign;
|
|
4375
|
-
return t.notCloseBtn && (p = "hidden"), p && u.push(`close-btn--${p}`), t.headerAlign && u.push(`align-title--${t.headerAlign}`), t.headerColor &&
|
|
4375
|
+
return t.notCloseBtn && (p = "hidden"), p && u.push(`close-btn--${p}`), t.headerAlign && u.push(`align-title--${t.headerAlign}`), t.headerColor && L.isColorTemplateVariable(t.headerColor) && u.push(`ck-component__bg-color--${t.headerColor}`), t.headerColor && u.push(`align-title--${t.headerColor}`), u;
|
|
4376
4376
|
}), s = d(() => {
|
|
4377
4377
|
const u = [];
|
|
4378
|
-
return t.headerColor && !
|
|
4378
|
+
return t.headerColor && !L.isColorTemplateVariable(t.headerColor) && u.push({ "background-color": t.headerColor }), u;
|
|
4379
4379
|
}), c = d(() => t.closeBtnIcon ? t.closeBtnIcon : "times");
|
|
4380
4380
|
return ce(() => o.value, (u) => Vt(!u)), (u, p) => {
|
|
4381
4381
|
const r = Y("ck-icon");
|
|
4382
|
-
return o.value ? (
|
|
4382
|
+
return o.value ? (v(), k("div", {
|
|
4383
4383
|
key: 0,
|
|
4384
4384
|
class: "ck-sidebar-background",
|
|
4385
|
-
onClick: p[1] || (p[1] = se((
|
|
4385
|
+
onClick: p[1] || (p[1] = se((m) => o.value = !1, ["self"]))
|
|
4386
4386
|
}, [
|
|
4387
4387
|
$("div", {
|
|
4388
|
-
class:
|
|
4388
|
+
class: I(["ck-sidebar", n.value]),
|
|
4389
4389
|
style: F(a.value)
|
|
4390
4390
|
}, [
|
|
4391
4391
|
W(u.$slots, "header", {}, void 0, !0),
|
|
4392
|
-
u.title ? (
|
|
4392
|
+
u.title ? (v(), k("div", {
|
|
4393
4393
|
key: 0,
|
|
4394
|
-
class:
|
|
4394
|
+
class: I(["sidebar-header", i.value]),
|
|
4395
4395
|
style: F(s.value),
|
|
4396
|
-
onClick: p[0] || (p[0] = (
|
|
4396
|
+
onClick: p[0] || (p[0] = (m) => o.value = !1)
|
|
4397
4397
|
}, [
|
|
4398
|
-
u.title ? (
|
|
4399
|
-
u.notCloseBtn ? (
|
|
4398
|
+
u.title ? (v(), k("div", Pi, M(u.title), 1)) : C("", !0),
|
|
4399
|
+
u.notCloseBtn ? (v(), D(r, {
|
|
4400
4400
|
key: 1,
|
|
4401
4401
|
class: "close-btn",
|
|
4402
4402
|
icon: c.value
|
|
4403
|
-
}, null, 8, ["icon"])) :
|
|
4404
|
-
], 6)) :
|
|
4405
|
-
u.isLoading ? (
|
|
4403
|
+
}, null, 8, ["icon"])) : C("", !0)
|
|
4404
|
+
], 6)) : C("", !0),
|
|
4405
|
+
u.isLoading ? (v(), k("div", Vi, [
|
|
4406
4406
|
U(r, {
|
|
4407
4407
|
icon: "spinner",
|
|
4408
4408
|
size: "xxl",
|
|
4409
4409
|
spin: "",
|
|
4410
4410
|
color: "primary"
|
|
4411
4411
|
})
|
|
4412
|
-
])) : (
|
|
4412
|
+
])) : (v(), k("div", Di, [
|
|
4413
4413
|
W(u.$slots, "default", {}, void 0, !0)
|
|
4414
4414
|
])),
|
|
4415
|
-
u.$slots.footer ? (
|
|
4415
|
+
u.$slots.footer ? (v(), k("div", Li, [
|
|
4416
4416
|
W(u.$slots, "footer", {}, void 0, !0)
|
|
4417
|
-
])) :
|
|
4417
|
+
])) : C("", !0)
|
|
4418
4418
|
], 6)
|
|
4419
|
-
])) :
|
|
4419
|
+
])) : C("", !0);
|
|
4420
4420
|
};
|
|
4421
4421
|
}
|
|
4422
4422
|
});
|
|
4423
|
-
const Mi = /* @__PURE__ */ H(Si, [["__scopeId", "data-v-19f1984b"]]), xi = ["disabled"], Ai = { class: "ck-switch__slider-container" }, Je = "s",
|
|
4423
|
+
const Mi = /* @__PURE__ */ H(Si, [["__scopeId", "data-v-19f1984b"]]), Ii = { key: 1 }, xi = ["disabled"], Ai = { class: "ck-switch__slider-container" }, zi = { key: 1 }, Je = "s", Ri = "m", Wi = /* @__PURE__ */ R({
|
|
4424
4424
|
__name: "ck-switch",
|
|
4425
4425
|
props: /* @__PURE__ */ oe({
|
|
4426
4426
|
preventAutoUpdate: { type: Boolean },
|
|
@@ -4432,43 +4432,47 @@ const Mi = /* @__PURE__ */ H(Si, [["__scopeId", "data-v-19f1984b"]]), xi = ["dis
|
|
|
4432
4432
|
switchSide: {},
|
|
4433
4433
|
color: {},
|
|
4434
4434
|
icon: {},
|
|
4435
|
-
iconPack: {}
|
|
4435
|
+
iconPack: {},
|
|
4436
|
+
label: {},
|
|
4437
|
+
labelIcon: {},
|
|
4438
|
+
labelIconRight: {},
|
|
4439
|
+
colorText: {}
|
|
4436
4440
|
}, {
|
|
4437
4441
|
modelValue: { type: Boolean, required: !0 },
|
|
4438
4442
|
modelModifiers: {}
|
|
4439
4443
|
}),
|
|
4440
4444
|
emits: /* @__PURE__ */ oe(["click"], ["update:modelValue"]),
|
|
4441
4445
|
setup(e, { emit: o }) {
|
|
4442
|
-
const t = ge(e, "modelValue"), n = e, a = o, { cleekOptions:
|
|
4443
|
-
const
|
|
4444
|
-
n.squared &&
|
|
4446
|
+
const t = ge(e, "modelValue"), n = e, a = o, { cleekOptions: i } = ae(ne()), s = d(() => {
|
|
4447
|
+
const l = [];
|
|
4448
|
+
n.squared && l.push("is-squared"), n.outlined && l.push("is-outlined"), n.color && l.push(`--${n.color}`);
|
|
4445
4449
|
let g = n.size || Je;
|
|
4446
|
-
return
|
|
4450
|
+
return l.push(`ck-switch--size-${g}`), l;
|
|
4447
4451
|
}), c = d(() => ({
|
|
4448
4452
|
"aria-disabled": n.disabled,
|
|
4449
4453
|
tabindex: n.disabled ? void 0 : "0"
|
|
4450
4454
|
})), u = d(() => {
|
|
4451
|
-
const
|
|
4452
|
-
return n.size && n.size !== Je &&
|
|
4455
|
+
const l = [];
|
|
4456
|
+
return n.size && n.size !== Je && l.push(`ck-switch__icon-size--${n.size}`), l;
|
|
4453
4457
|
}), p = d(() => {
|
|
4454
|
-
const
|
|
4455
|
-
return
|
|
4458
|
+
const l = [];
|
|
4459
|
+
return i.value.darkMode && l.push({ color: i.value.darkModeColorText }), n.size && n.size !== Je && l.push(`ck-switch__icon-size--${n.size}`), n.colorText && !L.isColorTemplateVariable(n.colorText) && l.push({ color: n.colorText }), l;
|
|
4456
4460
|
}), r = d(() => {
|
|
4457
|
-
const
|
|
4458
|
-
return n.textSize && n.textSize !==
|
|
4461
|
+
const l = [];
|
|
4462
|
+
return n.textSize && n.textSize !== Ri && l.push(`ck-switch__text-size--${n.textSize}`), n.colorText && L.isColorTemplateVariable(n.colorText) && l.push(`ck-component__color--${n.colorText}`), l;
|
|
4459
4463
|
});
|
|
4460
|
-
function
|
|
4464
|
+
function m(l) {
|
|
4461
4465
|
if (!n.disabled) {
|
|
4462
4466
|
if (n.preventAutoUpdate) {
|
|
4463
|
-
|
|
4467
|
+
l.preventDefault(), l.stopPropagation();
|
|
4464
4468
|
return;
|
|
4465
4469
|
}
|
|
4466
|
-
|
|
4470
|
+
l instanceof KeyboardEvent && l.key === "Enter" && (t.value = !t.value), a("click");
|
|
4467
4471
|
}
|
|
4468
4472
|
}
|
|
4469
|
-
return (
|
|
4473
|
+
return (l, g) => (v(), k("label", Ae(c.value, {
|
|
4470
4474
|
class: ["ck-switch", s.value],
|
|
4471
|
-
onClick: g[1] || (g[1] = (f) =>
|
|
4475
|
+
onClick: g[1] || (g[1] = (f) => m(f)),
|
|
4472
4476
|
onKeydown: [
|
|
4473
4477
|
g[2] || (g[2] = he(se((f) => {
|
|
4474
4478
|
t.value = !t.value, a("click");
|
|
@@ -4478,48 +4482,74 @@ const Mi = /* @__PURE__ */ H(Si, [["__scopeId", "data-v-19f1984b"]]), xi = ["dis
|
|
|
4478
4482
|
}, ["prevent"]), ["enter"]))
|
|
4479
4483
|
]
|
|
4480
4484
|
}), [
|
|
4481
|
-
|
|
4485
|
+
(l.$slots.default || l.label || l.labelIcon || l.labelIconRight) && l.switchSide === "right" ? (v(), k("span", {
|
|
4482
4486
|
key: 0,
|
|
4483
|
-
class:
|
|
4487
|
+
class: I(["ck-switch__content", r.value]),
|
|
4484
4488
|
style: F(p.value)
|
|
4485
4489
|
}, [
|
|
4486
|
-
|
|
4487
|
-
|
|
4490
|
+
l.labelIcon ? (v(), D(Q, {
|
|
4491
|
+
key: 0,
|
|
4492
|
+
icon: l.labelIcon,
|
|
4493
|
+
"icon-pack": l.iconPack,
|
|
4494
|
+
class: "ck-switch__label-icon"
|
|
4495
|
+
}, null, 8, ["icon", "icon-pack"])) : C("", !0),
|
|
4496
|
+
l.label ? (v(), k("span", Ii, M(l.label), 1)) : C("", !0),
|
|
4497
|
+
l.labelIconRight ? (v(), D(Q, {
|
|
4498
|
+
key: 2,
|
|
4499
|
+
icon: l.labelIconRight,
|
|
4500
|
+
"icon-pack": l.iconPack,
|
|
4501
|
+
class: "ck-switch__label-icon"
|
|
4502
|
+
}, null, 8, ["icon", "icon-pack"])) : C("", !0),
|
|
4503
|
+
W(l.$slots, "default", {}, void 0, !0)
|
|
4504
|
+
], 6)) : C("", !0),
|
|
4488
4505
|
ue($("input", {
|
|
4489
4506
|
class: "ck-switch__input",
|
|
4490
4507
|
type: "checkbox",
|
|
4491
4508
|
"onUpdate:modelValue": g[0] || (g[0] = (f) => t.value = f),
|
|
4492
4509
|
"aria-hidden": "true",
|
|
4493
|
-
disabled:
|
|
4510
|
+
disabled: l.disabled
|
|
4494
4511
|
}, null, 8, xi), [
|
|
4495
4512
|
[Jt, t.value]
|
|
4496
4513
|
]),
|
|
4497
4514
|
$("div", Ai, [
|
|
4498
4515
|
g[4] || (g[4] = $("div", { class: "ck-switch__slider" }, null, -1)),
|
|
4499
|
-
|
|
4516
|
+
l.icon && t.value ? (v(), D(Q, {
|
|
4500
4517
|
key: 0,
|
|
4501
|
-
class:
|
|
4502
|
-
icon:
|
|
4503
|
-
"icon-pack":
|
|
4504
|
-
}, null, 8, ["icon", "icon-pack", "class"])) :
|
|
4505
|
-
|
|
4518
|
+
class: I(["ck-switch__icon-left", u.value]),
|
|
4519
|
+
icon: l.icon,
|
|
4520
|
+
"icon-pack": l.iconPack
|
|
4521
|
+
}, null, 8, ["icon", "icon-pack", "class"])) : C("", !0),
|
|
4522
|
+
l.icon && !t.value ? (v(), D(Q, {
|
|
4506
4523
|
key: 1,
|
|
4507
|
-
class:
|
|
4508
|
-
icon:
|
|
4509
|
-
"icon-pack":
|
|
4510
|
-
}, null, 8, ["icon", "icon-pack", "class"])) :
|
|
4524
|
+
class: I(["ck-switch__icon-right", u.value]),
|
|
4525
|
+
icon: l.icon,
|
|
4526
|
+
"icon-pack": l.iconPack
|
|
4527
|
+
}, null, 8, ["icon", "icon-pack", "class"])) : C("", !0)
|
|
4511
4528
|
]),
|
|
4512
|
-
|
|
4529
|
+
(l.$slots.default || l.label || l.labelIcon || l.labelIconRight) && l.switchSide !== "right" ? (v(), k("span", {
|
|
4513
4530
|
key: 1,
|
|
4514
|
-
class:
|
|
4531
|
+
class: I(["ck-switch__content", r.value]),
|
|
4515
4532
|
style: F(p.value)
|
|
4516
4533
|
}, [
|
|
4517
|
-
|
|
4518
|
-
|
|
4534
|
+
l.labelIcon ? (v(), D(Q, {
|
|
4535
|
+
key: 0,
|
|
4536
|
+
icon: l.labelIcon,
|
|
4537
|
+
"icon-pack": l.iconPack,
|
|
4538
|
+
class: "ck-switch__label-icon"
|
|
4539
|
+
}, null, 8, ["icon", "icon-pack"])) : C("", !0),
|
|
4540
|
+
l.label ? (v(), k("span", zi, M(l.label), 1)) : C("", !0),
|
|
4541
|
+
l.labelIconRight ? (v(), D(Q, {
|
|
4542
|
+
key: 2,
|
|
4543
|
+
icon: l.labelIconRight,
|
|
4544
|
+
"icon-pack": l.iconPack,
|
|
4545
|
+
class: "ck-switch__label-icon"
|
|
4546
|
+
}, null, 8, ["icon", "icon-pack"])) : C("", !0),
|
|
4547
|
+
W(l.$slots, "default", {}, void 0, !0)
|
|
4548
|
+
], 6)) : C("", !0)
|
|
4519
4549
|
], 16));
|
|
4520
4550
|
}
|
|
4521
4551
|
});
|
|
4522
|
-
const
|
|
4552
|
+
const Oi = /* @__PURE__ */ H(Wi, [["__scopeId", "data-v-e488e0d5"]]), Ei = { class: "ck-switch-options" }, Ni = ["onClick", "onKeyup"], Fi = /* @__PURE__ */ R({
|
|
4523
4553
|
__name: "ck-switch-options",
|
|
4524
4554
|
props: /* @__PURE__ */ oe({
|
|
4525
4555
|
options: {},
|
|
@@ -4544,62 +4574,62 @@ const Ri = /* @__PURE__ */ H(zi, [["__scopeId", "data-v-750acbd8"]]), Wi = { cla
|
|
|
4544
4574
|
}),
|
|
4545
4575
|
emits: /* @__PURE__ */ oe(["change"], ["update:modelValue"]),
|
|
4546
4576
|
setup(e, { emit: o }) {
|
|
4547
|
-
const t = ge(e, "modelValue"), n = e, a = o, { windowWidth:
|
|
4548
|
-
const
|
|
4549
|
-
return
|
|
4577
|
+
const t = ge(e, "modelValue"), n = e, a = o, { windowWidth: i } = ke(), s = d(() => {
|
|
4578
|
+
const m = [];
|
|
4579
|
+
return m.push(L.getGroupClass(n, i.value)), m;
|
|
4550
4580
|
}), c = d(() => {
|
|
4551
|
-
const
|
|
4552
|
-
return n.sameWidthOptions &&
|
|
4581
|
+
const m = [];
|
|
4582
|
+
return n.sameWidthOptions && m.push({ width: `${100 / (n.options || []).length}%` }), m;
|
|
4553
4583
|
});
|
|
4554
|
-
function u(
|
|
4555
|
-
return n.reduceValueFunction ? n.reduceValueFunction(
|
|
4584
|
+
function u(m) {
|
|
4585
|
+
return n.reduceValueFunction ? n.reduceValueFunction(m) : n.notReduceValue || n.notReduce ? m : n.reduceValueMethod ? m[n.reduceValueMethod]() : m[n.reduceValueProp];
|
|
4556
4586
|
}
|
|
4557
|
-
function p(
|
|
4558
|
-
return n.reduceNameFunction ? n.reduceNameFunction(
|
|
4587
|
+
function p(m) {
|
|
4588
|
+
return n.reduceNameFunction ? n.reduceNameFunction(m) : n.notReduceName || n.notReduce ? m : n.reduceNameMethod ? m[n.reduceNameMethod]() : m[n.reduceNameProp];
|
|
4559
4589
|
}
|
|
4560
|
-
function r(
|
|
4561
|
-
const
|
|
4562
|
-
t.value =
|
|
4590
|
+
function r(m) {
|
|
4591
|
+
const l = u(m);
|
|
4592
|
+
t.value = l, a("change", l);
|
|
4563
4593
|
}
|
|
4564
|
-
return (
|
|
4594
|
+
return (m, l) => {
|
|
4565
4595
|
const g = Y("ck-icon");
|
|
4566
|
-
return
|
|
4567
|
-
|
|
4596
|
+
return v(), k("div", Ei, [
|
|
4597
|
+
m.label ? (v(), D(ze, {
|
|
4568
4598
|
key: 0,
|
|
4569
|
-
align:
|
|
4599
|
+
align: m.labelAlign
|
|
4570
4600
|
}, {
|
|
4571
4601
|
default: N(() => [
|
|
4572
|
-
G(
|
|
4602
|
+
G(M(m.label), 1)
|
|
4573
4603
|
]),
|
|
4574
4604
|
_: 1
|
|
4575
|
-
}, 8, ["align"])) :
|
|
4605
|
+
}, 8, ["align"])) : C("", !0),
|
|
4576
4606
|
$("div", {
|
|
4577
|
-
class:
|
|
4607
|
+
class: I(["switch-options--options", s.value])
|
|
4578
4608
|
}, [
|
|
4579
|
-
(
|
|
4580
|
-
key:
|
|
4609
|
+
(v(!0), k(K, null, re(m.options, (f, y) => (v(), k("div", {
|
|
4610
|
+
key: y,
|
|
4581
4611
|
tabindex: "0",
|
|
4582
|
-
class:
|
|
4612
|
+
class: I(["options--option", { selected: u(f) === t.value }]),
|
|
4583
4613
|
style: F(c.value),
|
|
4584
4614
|
onClick: (b) => r(f),
|
|
4585
4615
|
onKeyup: he((b) => r(f), ["enter"])
|
|
4586
4616
|
}, [
|
|
4587
|
-
f.icon ? (
|
|
4617
|
+
f.icon ? (v(), D(g, {
|
|
4588
4618
|
key: 0,
|
|
4589
4619
|
class: "option--icon",
|
|
4590
4620
|
icon: f.icon
|
|
4591
|
-
}, null, 8, ["icon"])) :
|
|
4592
|
-
G(" " +
|
|
4593
|
-
], 46,
|
|
4621
|
+
}, null, 8, ["icon"])) : C("", !0),
|
|
4622
|
+
G(" " + M(p(f)), 1)
|
|
4623
|
+
], 46, Ni))), 128))
|
|
4594
4624
|
], 2)
|
|
4595
4625
|
]);
|
|
4596
4626
|
};
|
|
4597
4627
|
}
|
|
4598
4628
|
});
|
|
4599
|
-
const
|
|
4629
|
+
const ji = /* @__PURE__ */ H(Fi, [["__scopeId", "data-v-c323f4fa"]]), Hi = { class: "ck-textarea" }, qi = {
|
|
4600
4630
|
key: 0,
|
|
4601
4631
|
class: "ck-textarea__optional-label"
|
|
4602
|
-
},
|
|
4632
|
+
}, Ui = ["placeholder", "disabled"], Yi = 300, Gi = /* @__PURE__ */ R({
|
|
4603
4633
|
__name: "ck-textarea",
|
|
4604
4634
|
props: {
|
|
4605
4635
|
modelValue: {},
|
|
@@ -4625,7 +4655,7 @@ const Ni = /* @__PURE__ */ H(Ei, [["__scopeId", "data-v-c323f4fa"]]), Fi = { cla
|
|
|
4625
4655
|
},
|
|
4626
4656
|
emits: ["update:modelValue", "input", "change", "click", "changeDelayed"],
|
|
4627
4657
|
setup(e, { emit: o }) {
|
|
4628
|
-
const t = e, n = o, { cleekOptions: a } = ae(ne()),
|
|
4658
|
+
const t = e, n = o, { cleekOptions: a } = ae(ne()), i = x(), { windowWidth: s } = ke(), c = d({
|
|
4629
4659
|
get() {
|
|
4630
4660
|
return t.modelValue;
|
|
4631
4661
|
},
|
|
@@ -4633,112 +4663,112 @@ const Ni = /* @__PURE__ */ H(Ei, [["__scopeId", "data-v-c323f4fa"]]), Fi = { cla
|
|
|
4633
4663
|
t.capitalize && (f = Ee.capitalize(f)), n("update:modelValue", f), g(f);
|
|
4634
4664
|
}
|
|
4635
4665
|
}), u = d(() => {
|
|
4636
|
-
const f = [],
|
|
4637
|
-
|
|
4666
|
+
const f = [], y = t.layout || a.value.styles.layout;
|
|
4667
|
+
y && f.push(y);
|
|
4638
4668
|
const b = t.borderColor || a.value.styles.borderColor;
|
|
4639
|
-
return b &&
|
|
4669
|
+
return b && L.isColorTemplateVariable(b) && f.push(`ck-component__border-color--${b}`), f.push(L.getGroupClass(t, s.value)), f;
|
|
4640
4670
|
}), p = d(() => {
|
|
4641
4671
|
var h;
|
|
4642
|
-
const f = [],
|
|
4643
|
-
|
|
4672
|
+
const f = [], y = t.borderColor || ((h = a.value.styles) == null ? void 0 : h.borderColor);
|
|
4673
|
+
y && !L.isColorTemplateVariable(y) && f.push({ "border-color": y }), t.align && f.push(`align--${t.align}`), t.fontSize && f.push({ "font-size": t.fontSize }), t.borderRadius && f.push({ "border-radius": t.borderRadius }), t.textColor && f.push({ color: t.textColor }), t.width && f.push({ width: t.width }), t.height && f.push({ height: t.height });
|
|
4644
4674
|
const b = t.resize ? t.resize : "none";
|
|
4645
4675
|
return b && f.push({ resize: b || "both" }), f;
|
|
4646
4676
|
}), r = (f) => {
|
|
4647
|
-
var
|
|
4648
|
-
t.autoSelect && ((
|
|
4649
|
-
},
|
|
4677
|
+
var y;
|
|
4678
|
+
t.autoSelect && ((y = i.value) == null || y.select()), n("click", f);
|
|
4679
|
+
}, m = (f) => {
|
|
4650
4680
|
n("input", f);
|
|
4651
|
-
},
|
|
4681
|
+
}, l = (f) => {
|
|
4652
4682
|
n("change", f);
|
|
4653
4683
|
};
|
|
4654
4684
|
function g(f) {
|
|
4655
4685
|
setTimeout(() => {
|
|
4656
4686
|
c.value === f && n("changeDelayed", f);
|
|
4657
|
-
}, t.delayChangeTime ||
|
|
4687
|
+
}, t.delayChangeTime || Yi);
|
|
4658
4688
|
}
|
|
4659
|
-
return (f,
|
|
4660
|
-
f.label ? (
|
|
4689
|
+
return (f, y) => (v(), k("div", Hi, [
|
|
4690
|
+
f.label ? (v(), D(ze, {
|
|
4661
4691
|
key: 0,
|
|
4662
4692
|
align: f.labelAlign
|
|
4663
4693
|
}, {
|
|
4664
4694
|
default: N(() => [
|
|
4665
|
-
G(
|
|
4666
|
-
f.optional ? (
|
|
4695
|
+
G(M(f.label) + " ", 1),
|
|
4696
|
+
f.optional ? (v(), k("span", qi, "opcional")) : C("", !0)
|
|
4667
4697
|
]),
|
|
4668
4698
|
_: 1
|
|
4669
|
-
}, 8, ["align"])) :
|
|
4699
|
+
}, 8, ["align"])) : C("", !0),
|
|
4670
4700
|
ue($("textarea", {
|
|
4671
|
-
"onUpdate:modelValue":
|
|
4701
|
+
"onUpdate:modelValue": y[0] || (y[0] = (b) => c.value = b),
|
|
4672
4702
|
ref_key: "refTextarea",
|
|
4673
|
-
ref:
|
|
4703
|
+
ref: i,
|
|
4674
4704
|
placeholder: f.placeholder,
|
|
4675
4705
|
disabled: f.disabled,
|
|
4676
|
-
class:
|
|
4706
|
+
class: I(u.value),
|
|
4677
4707
|
style: F(p.value),
|
|
4678
|
-
onClick:
|
|
4679
|
-
onInput:
|
|
4680
|
-
onChange:
|
|
4681
|
-
}, null, 46,
|
|
4708
|
+
onClick: y[1] || (y[1] = (b) => r(b)),
|
|
4709
|
+
onInput: y[2] || (y[2] = (b) => m(b)),
|
|
4710
|
+
onChange: y[3] || (y[3] = (b) => l(b))
|
|
4711
|
+
}, null, 46, Ui), [
|
|
4682
4712
|
[Fe, c.value]
|
|
4683
4713
|
])
|
|
4684
4714
|
]));
|
|
4685
4715
|
}
|
|
4686
4716
|
});
|
|
4687
|
-
const
|
|
4717
|
+
const Zi = /* @__PURE__ */ H(Gi, [["__scopeId", "data-v-02767f25"]]), Ki = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyNy43LjAsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iQ2FwYV8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCINCgkgdmlld0JveD0iMCAwIDEwMCAxMDAiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDEwMCAxMDA7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+DQoJLnN0MHtmaWxsOiNFQTRCNEI7fQ0KPC9zdHlsZT4NCjxnPg0KCTxnPg0KCQk8Zz4NCgkJCTxyZWN0IHg9IjQ1IiB5PSI2NC45IiBjbGFzcz0ic3QwIiB3aWR0aD0iMTAiIGhlaWdodD0iMTAuMiIvPg0KCQk8L2c+DQoJPC9nPg0KCTxnPg0KCQk8Zz4NCgkJCTxyZWN0IHg9IjQ1IiB5PSIyNC45IiBjbGFzcz0ic3QwIiB3aWR0aD0iMTAiIGhlaWdodD0iMzAuMiIvPg0KCQk8L2c+DQoJPC9nPg0KPC9nPg0KPHBhdGggY2xhc3M9InN0MCIgZD0iTTY5LjIsMTYuN0w4OC41LDUwTDY5LjIsODMuM0gzMC44TDExLjUsNTBsMTkuMi0zMy4zSDY5LjIgTTc1LDYuN0gyNUwwLDUwbDI1LDQzLjNoNTBMMTAwLDUwTDc1LDYuN0w3NSw2Ljd6Ig0KCS8+DQo8L3N2Zz4NCg==", Qi = { class: "ck-confirm--background" }, Ji = { class: "ck-confirm" }, Xi = { class: "ck-confirm__title" }, es = { class: "ck-confirm__message" }, ts = { class: "ck-confirm__buttons-container" }, os = /* @__PURE__ */ R({
|
|
4688
4718
|
__name: "CkConfirm",
|
|
4689
4719
|
setup(e, { expose: o }) {
|
|
4690
|
-
const t = x(""), n = x(""), a = x(""),
|
|
4720
|
+
const t = x(""), n = x(""), a = x(""), i = x(""), s = x(() => {
|
|
4691
4721
|
}), c = x(() => {
|
|
4692
4722
|
}), u = d(() => "¿Estás seguro?"), p = d(() => "Aceptar"), r = d(() => "Cancelar");
|
|
4693
|
-
function
|
|
4723
|
+
function m() {
|
|
4694
4724
|
c.value();
|
|
4695
4725
|
}
|
|
4696
|
-
function
|
|
4726
|
+
function l() {
|
|
4697
4727
|
s.value();
|
|
4698
4728
|
}
|
|
4699
4729
|
return o({
|
|
4700
4730
|
title: t,
|
|
4701
4731
|
msg: n,
|
|
4702
4732
|
acceptText: a,
|
|
4703
|
-
cancelText:
|
|
4733
|
+
cancelText: i,
|
|
4704
4734
|
responseSuccess: s,
|
|
4705
4735
|
responseFailure: c
|
|
4706
|
-
}), (g, f) => (
|
|
4707
|
-
$("div",
|
|
4736
|
+
}), (g, f) => (v(), k("div", Qi, [
|
|
4737
|
+
$("div", Ji, [
|
|
4708
4738
|
f[2] || (f[2] = $("div", { class: "ck-confirm__icon" }, [
|
|
4709
4739
|
$("img", {
|
|
4710
|
-
src:
|
|
4740
|
+
src: Ki,
|
|
4711
4741
|
height: "125"
|
|
4712
4742
|
})
|
|
4713
4743
|
], -1)),
|
|
4714
|
-
$("div",
|
|
4715
|
-
$("div",
|
|
4716
|
-
$("div",
|
|
4744
|
+
$("div", Xi, M(t.value || u.value), 1),
|
|
4745
|
+
$("div", es, M(n.value), 1),
|
|
4746
|
+
$("div", ts, [
|
|
4717
4747
|
$("button", {
|
|
4718
4748
|
class: "ck-confirm__button--cancel",
|
|
4719
|
-
onClick: f[0] || (f[0] = (
|
|
4720
|
-
},
|
|
4749
|
+
onClick: f[0] || (f[0] = (y) => m())
|
|
4750
|
+
}, M(i.value || r.value), 1),
|
|
4721
4751
|
$("button", {
|
|
4722
4752
|
class: "ck-confirm__button--accept",
|
|
4723
|
-
onClick: f[1] || (f[1] = (
|
|
4724
|
-
},
|
|
4753
|
+
onClick: f[1] || (f[1] = (y) => l())
|
|
4754
|
+
}, M(a.value || p.value), 1)
|
|
4725
4755
|
])
|
|
4726
4756
|
])
|
|
4727
4757
|
]));
|
|
4728
4758
|
}
|
|
4729
4759
|
});
|
|
4730
|
-
const
|
|
4760
|
+
const ns = /* @__PURE__ */ H(os, [["__scopeId", "data-v-817a5ee4"]]), as = { class: "alert--msg" }, ls = /* @__PURE__ */ R({
|
|
4731
4761
|
__name: "CkAlert",
|
|
4732
4762
|
setup(e, { expose: o }) {
|
|
4733
|
-
const t = x(""), n = x(""), a = x(""),
|
|
4763
|
+
const t = x(""), n = x(""), a = x(""), i = x(!0), s = d(() => "Atención"), c = d(() => "Aceptar");
|
|
4734
4764
|
return o({
|
|
4735
4765
|
title: t,
|
|
4736
4766
|
msg: n,
|
|
4737
4767
|
acceptText: a
|
|
4738
|
-
}), (u, p) => (
|
|
4768
|
+
}), (u, p) => (v(), D(xe, { to: "body" }, [
|
|
4739
4769
|
U(nt, {
|
|
4740
|
-
modelValue:
|
|
4741
|
-
"onUpdate:modelValue": p[0] || (p[0] = (r) =>
|
|
4770
|
+
modelValue: i.value,
|
|
4771
|
+
"onUpdate:modelValue": p[0] || (p[0] = (r) => i.value = r),
|
|
4742
4772
|
acceptButton: "",
|
|
4743
4773
|
notCloseBtn: "",
|
|
4744
4774
|
headerColor: "primary",
|
|
@@ -4746,30 +4776,30 @@ const ts = /* @__PURE__ */ H(es, [["__scopeId", "data-v-817a5ee4"]]), os = { cla
|
|
|
4746
4776
|
acceptBtnType: "filled",
|
|
4747
4777
|
title: t.value || s.value,
|
|
4748
4778
|
acceptBtnText: a.value || c.value,
|
|
4749
|
-
onAccept: p[1] || (p[1] = (r) =>
|
|
4779
|
+
onAccept: p[1] || (p[1] = (r) => i.value = !1)
|
|
4750
4780
|
}, {
|
|
4751
4781
|
default: N(() => [
|
|
4752
|
-
$("div",
|
|
4782
|
+
$("div", as, M(n.value), 1)
|
|
4753
4783
|
]),
|
|
4754
4784
|
_: 1
|
|
4755
4785
|
}, 8, ["modelValue", "title", "acceptBtnText"])
|
|
4756
4786
|
]));
|
|
4757
4787
|
}
|
|
4758
4788
|
});
|
|
4759
|
-
const
|
|
4789
|
+
const is = /* @__PURE__ */ H(ls, [["__scopeId", "data-v-08c93dad"]]), ss = { class: "ck-notify__container" }, rs = { class: "ck-notify__title" }, us = { class: "close-btn" }, cs = ["innerHTML"], ds = /* @__PURE__ */ R({
|
|
4760
4790
|
__name: "CkNotify",
|
|
4761
4791
|
setup(e, { expose: o }) {
|
|
4762
|
-
const t = x(!0), n = x(""), a = x(""),
|
|
4792
|
+
const t = x(!0), n = x(""), a = x(""), i = x(""), s = x(0), c = x(() => {
|
|
4763
4793
|
});
|
|
4764
4794
|
o({
|
|
4765
4795
|
title: n,
|
|
4766
4796
|
text: a,
|
|
4767
|
-
color:
|
|
4797
|
+
color: i,
|
|
4768
4798
|
duration: s,
|
|
4769
4799
|
closeCallback: c
|
|
4770
4800
|
});
|
|
4771
4801
|
const u = d(() => {
|
|
4772
|
-
switch (
|
|
4802
|
+
switch (i.value) {
|
|
4773
4803
|
case "success":
|
|
4774
4804
|
return "Éxito";
|
|
4775
4805
|
case "danger":
|
|
@@ -4779,11 +4809,11 @@ const as = /* @__PURE__ */ H(ns, [["__scopeId", "data-v-08c93dad"]]), ls = { cla
|
|
|
4779
4809
|
}
|
|
4780
4810
|
return "";
|
|
4781
4811
|
}), p = d(() => {
|
|
4782
|
-
const
|
|
4783
|
-
return
|
|
4812
|
+
const m = [];
|
|
4813
|
+
return i.value && L.isColorTemplateVariable(i.value) && m.push(`ck-component__bg-color--${i.value}`), m;
|
|
4784
4814
|
}), r = d(() => {
|
|
4785
|
-
const
|
|
4786
|
-
return
|
|
4815
|
+
const m = [];
|
|
4816
|
+
return i.value && !L.isColorTemplateVariable(i.value) && m.push({ "background-color": i.value }), m;
|
|
4787
4817
|
});
|
|
4788
4818
|
return _e(() => {
|
|
4789
4819
|
setTimeout(() => {
|
|
@@ -4791,34 +4821,34 @@ const as = /* @__PURE__ */ H(ns, [["__scopeId", "data-v-08c93dad"]]), ls = { cla
|
|
|
4791
4821
|
c.value();
|
|
4792
4822
|
}, s.value);
|
|
4793
4823
|
}, 10);
|
|
4794
|
-
}), (
|
|
4824
|
+
}), (m, l) => t.value ? (v(), D(xe, {
|
|
4795
4825
|
key: 0,
|
|
4796
4826
|
to: "body"
|
|
4797
4827
|
}, [
|
|
4798
|
-
$("div",
|
|
4828
|
+
$("div", ss, [
|
|
4799
4829
|
$("div", {
|
|
4800
|
-
class:
|
|
4830
|
+
class: I(["ck-notify", p.value]),
|
|
4801
4831
|
style: F(r.value),
|
|
4802
|
-
onClick:
|
|
4832
|
+
onClick: l[0] || (l[0] = (g) => {
|
|
4803
4833
|
t.value = !1, c.value();
|
|
4804
4834
|
})
|
|
4805
4835
|
}, [
|
|
4806
|
-
$("div",
|
|
4807
|
-
$("div",
|
|
4808
|
-
U(
|
|
4836
|
+
$("div", rs, [
|
|
4837
|
+
$("div", us, [
|
|
4838
|
+
U(Q, { icon: "times" })
|
|
4809
4839
|
]),
|
|
4810
|
-
G(" " +
|
|
4840
|
+
G(" " + M(n.value || u.value), 1)
|
|
4811
4841
|
]),
|
|
4812
4842
|
$("div", {
|
|
4813
4843
|
class: "ck-notify__text",
|
|
4814
4844
|
innerHTML: a.value
|
|
4815
|
-
}, null, 8,
|
|
4845
|
+
}, null, 8, cs)
|
|
4816
4846
|
], 6)
|
|
4817
4847
|
])
|
|
4818
|
-
])) :
|
|
4848
|
+
])) : C("", !0);
|
|
4819
4849
|
}
|
|
4820
4850
|
});
|
|
4821
|
-
const
|
|
4851
|
+
const ps = /* @__PURE__ */ H(ds, [["__scopeId", "data-v-bb914f84"]]), vs = 3e3, ms = {
|
|
4822
4852
|
alert(e) {
|
|
4823
4853
|
this.alertOptions({
|
|
4824
4854
|
title: "",
|
|
@@ -4827,8 +4857,8 @@ const cs = /* @__PURE__ */ H(us, [["__scopeId", "data-v-bb914f84"]]), ds = 3e3,
|
|
|
4827
4857
|
});
|
|
4828
4858
|
},
|
|
4829
4859
|
alertOptions({ title: e = "", msg: o = "", acceptText: t = "" }) {
|
|
4830
|
-
const n = document.createElement("div"),
|
|
4831
|
-
|
|
4860
|
+
const n = document.createElement("div"), i = Ge(is).mount(n);
|
|
4861
|
+
i.title = e, i.msg = o, i.acceptText = t, document.body.appendChild(i.$el);
|
|
4832
4862
|
},
|
|
4833
4863
|
confirmOptions({
|
|
4834
4864
|
title: e = "",
|
|
@@ -4837,14 +4867,14 @@ const cs = /* @__PURE__ */ H(us, [["__scopeId", "data-v-bb914f84"]]), ds = 3e3,
|
|
|
4837
4867
|
cancelText: n = "",
|
|
4838
4868
|
success: a = () => {
|
|
4839
4869
|
},
|
|
4840
|
-
failure:
|
|
4870
|
+
failure: i = () => {
|
|
4841
4871
|
}
|
|
4842
4872
|
}) {
|
|
4843
|
-
const s = document.createElement("div"), c = Ge(
|
|
4873
|
+
const s = document.createElement("div"), c = Ge(ns), u = c.mount(s);
|
|
4844
4874
|
u.title = e, u.msg = o, u.acceptText = t, u.cancelText = n, u.responseSuccess = () => {
|
|
4845
4875
|
c.unmount(), a();
|
|
4846
4876
|
}, u.responseFailure = () => {
|
|
4847
|
-
c.unmount(),
|
|
4877
|
+
c.unmount(), i();
|
|
4848
4878
|
}, document.body.appendChild(u.$el);
|
|
4849
4879
|
},
|
|
4850
4880
|
confirm(e, o, t) {
|
|
@@ -4855,9 +4885,9 @@ const cs = /* @__PURE__ */ H(us, [["__scopeId", "data-v-bb914f84"]]), ds = 3e3,
|
|
|
4855
4885
|
});
|
|
4856
4886
|
},
|
|
4857
4887
|
notify({ text: e = "", title: o = "", color: t = "", duration: n = 0 }) {
|
|
4858
|
-
const a = document.createElement("div"),
|
|
4859
|
-
s.title = o, s.text = e, s.color = t, s.duration = n ||
|
|
4860
|
-
|
|
4888
|
+
const a = document.createElement("div"), i = Ge(ps), s = i.mount(a);
|
|
4889
|
+
s.title = o, s.text = e, s.color = t, s.duration = n || vs, s.closeCallback = () => {
|
|
4890
|
+
i.unmount();
|
|
4861
4891
|
};
|
|
4862
4892
|
},
|
|
4863
4893
|
notifySuccess(e, o = "", t) {
|
|
@@ -4870,7 +4900,7 @@ const cs = /* @__PURE__ */ H(us, [["__scopeId", "data-v-bb914f84"]]), ds = 3e3,
|
|
|
4870
4900
|
this.notify({ text: e, title: o, color: "warning", duration: t });
|
|
4871
4901
|
}
|
|
4872
4902
|
};
|
|
4873
|
-
class
|
|
4903
|
+
class fs {
|
|
4874
4904
|
constructor(o) {
|
|
4875
4905
|
ye(this, "search", "");
|
|
4876
4906
|
ye(this, "currentPage", 1);
|
|
@@ -4881,7 +4911,7 @@ class vs {
|
|
|
4881
4911
|
o && (this.itemsPerPage = o);
|
|
4882
4912
|
}
|
|
4883
4913
|
}
|
|
4884
|
-
class
|
|
4914
|
+
class hs {
|
|
4885
4915
|
constructor(o, t) {
|
|
4886
4916
|
ye(this, "ids", /* @__PURE__ */ new Set([]));
|
|
4887
4917
|
ye(this, "toggleable", !0);
|
|
@@ -4918,20 +4948,20 @@ class ms {
|
|
|
4918
4948
|
this.ids.clear();
|
|
4919
4949
|
}
|
|
4920
4950
|
}
|
|
4921
|
-
const
|
|
4951
|
+
const gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4922
4952
|
__proto__: null,
|
|
4923
|
-
CkButton:
|
|
4953
|
+
CkButton: Be,
|
|
4924
4954
|
CkCard: Zl,
|
|
4925
4955
|
CkCheckbox: Pt,
|
|
4926
4956
|
CkChip: oi,
|
|
4927
4957
|
CkCircle: si,
|
|
4928
|
-
CkDatetimeShower:
|
|
4958
|
+
CkDatetimeShower: xo,
|
|
4929
4959
|
CkDiv: ri,
|
|
4930
4960
|
CkDropdown: Oo,
|
|
4931
4961
|
CkDropdownButton: Hl,
|
|
4932
|
-
CkIcon:
|
|
4962
|
+
CkIcon: Q,
|
|
4933
4963
|
CkImg: pi,
|
|
4934
|
-
CkInput:
|
|
4964
|
+
CkInput: Bt,
|
|
4935
4965
|
CkInputDate: wl,
|
|
4936
4966
|
CkInputTime: $l,
|
|
4937
4967
|
CkLabel: ze,
|
|
@@ -4939,46 +4969,46 @@ const fs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4939
4969
|
CkPagination: Yn,
|
|
4940
4970
|
CkPopup: nt,
|
|
4941
4971
|
CkRadio: gi,
|
|
4942
|
-
CkSelect:
|
|
4972
|
+
CkSelect: Bi,
|
|
4943
4973
|
CkSidebar: Mi,
|
|
4944
|
-
CkSwitch:
|
|
4945
|
-
CkSwitchOptions:
|
|
4974
|
+
CkSwitch: Oi,
|
|
4975
|
+
CkSwitchOptions: ji,
|
|
4946
4976
|
CkTab: Pl,
|
|
4947
4977
|
CkTable: Un,
|
|
4948
|
-
CkTabs:
|
|
4949
|
-
CkTd:
|
|
4950
|
-
CkTextarea:
|
|
4978
|
+
CkTabs: Il,
|
|
4979
|
+
CkTd: Tt,
|
|
4980
|
+
CkTextarea: Zi,
|
|
4951
4981
|
CkTh: Qn,
|
|
4952
4982
|
CkTimeShower: Ro,
|
|
4953
4983
|
CkToggle: zl,
|
|
4954
4984
|
CkToggleGroup: Ol,
|
|
4955
4985
|
CkTr: $t,
|
|
4956
|
-
SelectedRows:
|
|
4957
|
-
TableData:
|
|
4958
|
-
ckNotify:
|
|
4986
|
+
SelectedRows: hs,
|
|
4987
|
+
TableData: fs,
|
|
4988
|
+
ckNotify: ms,
|
|
4959
4989
|
useWindowWidth: ke
|
|
4960
4990
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4961
4991
|
tt.add(Rt);
|
|
4962
4992
|
tt.add(Wt);
|
|
4963
4993
|
tt.add(Ot);
|
|
4964
|
-
function
|
|
4965
|
-
ne().cleekOptions = $o(wt, o), e.use(Vo), e.use(zt, Co), Object.entries(
|
|
4994
|
+
function Ds(e, o) {
|
|
4995
|
+
ne().cleekOptions = $o(wt, o), e.use(Vo), e.use(zt, Co), Object.entries(gs).forEach(([t, n]) => {
|
|
4966
4996
|
e.component(t, n);
|
|
4967
4997
|
});
|
|
4968
4998
|
}
|
|
4969
4999
|
export {
|
|
4970
|
-
|
|
5000
|
+
Be as CkButton,
|
|
4971
5001
|
Zl as CkCard,
|
|
4972
5002
|
Pt as CkCheckbox,
|
|
4973
5003
|
oi as CkChip,
|
|
4974
5004
|
si as CkCircle,
|
|
4975
|
-
|
|
5005
|
+
xo as CkDatetimeShower,
|
|
4976
5006
|
ri as CkDiv,
|
|
4977
5007
|
Oo as CkDropdown,
|
|
4978
5008
|
Hl as CkDropdownButton,
|
|
4979
|
-
|
|
5009
|
+
Q as CkIcon,
|
|
4980
5010
|
pi as CkImg,
|
|
4981
|
-
|
|
5011
|
+
Bt as CkInput,
|
|
4982
5012
|
wl as CkInputDate,
|
|
4983
5013
|
$l as CkInputTime,
|
|
4984
5014
|
ze as CkLabel,
|
|
@@ -4986,24 +5016,24 @@ export {
|
|
|
4986
5016
|
Yn as CkPagination,
|
|
4987
5017
|
nt as CkPopup,
|
|
4988
5018
|
gi as CkRadio,
|
|
4989
|
-
|
|
5019
|
+
Bi as CkSelect,
|
|
4990
5020
|
Mi as CkSidebar,
|
|
4991
|
-
|
|
4992
|
-
|
|
5021
|
+
Oi as CkSwitch,
|
|
5022
|
+
ji as CkSwitchOptions,
|
|
4993
5023
|
Pl as CkTab,
|
|
4994
5024
|
Un as CkTable,
|
|
4995
|
-
|
|
4996
|
-
|
|
4997
|
-
|
|
5025
|
+
Il as CkTabs,
|
|
5026
|
+
Tt as CkTd,
|
|
5027
|
+
Zi as CkTextarea,
|
|
4998
5028
|
Qn as CkTh,
|
|
4999
5029
|
Ro as CkTimeShower,
|
|
5000
5030
|
zl as CkToggle,
|
|
5001
5031
|
Ol as CkToggleGroup,
|
|
5002
5032
|
$t as CkTr,
|
|
5003
|
-
|
|
5004
|
-
|
|
5005
|
-
|
|
5006
|
-
|
|
5033
|
+
hs as SelectedRows,
|
|
5034
|
+
fs as TableData,
|
|
5035
|
+
ms as ckNotify,
|
|
5036
|
+
Ds as default,
|
|
5007
5037
|
ne as useCleekOptionsStore,
|
|
5008
5038
|
ke as useWindowWidth
|
|
5009
5039
|
};
|