cleek 2.11.8 → 2.11.10
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/cleek-styles/tiny-tailwind/aspect-ratio.styl +6 -6
- package/dist/cleek-styles/tiny-tailwind/bg-color.styl +161 -161
- package/dist/cleek-styles/tiny-tailwind/border-color.styl +161 -161
- package/dist/cleek-styles/tiny-tailwind/border.styl +63 -63
- package/dist/cleek-styles/tiny-tailwind/flex-direction.styl +8 -8
- package/dist/cleek-styles/tiny-tailwind/flex-grow.styl +10 -10
- package/dist/cleek-styles/tiny-tailwind/font-size.styl +24 -24
- package/dist/cleek-styles/tiny-tailwind/grid.styl +87 -87
- package/dist/cleek-styles/tiny-tailwind/height.styl +96 -96
- package/dist/cleek-styles/tiny-tailwind/inset.styl +328 -328
- package/dist/cleek-styles/tiny-tailwind/leading.styl +28 -28
- package/dist/cleek-styles/tiny-tailwind/object-fit.styl +20 -20
- package/dist/cleek-styles/tiny-tailwind/opacity.styl +30 -30
- package/dist/cleek-styles/tiny-tailwind/pointer-events.styl +4 -4
- package/dist/cleek-styles/tiny-tailwind/shadow.styl +16 -16
- package/dist/cleek-styles/tiny-tailwind/size-constraints.styl +127 -127
- package/dist/cleek-styles/tiny-tailwind/text-color.styl +159 -159
- package/dist/cleek-styles/tiny-tailwind/text-decoration.styl +8 -8
- package/dist/cleek-styles/tiny-tailwind/text-overflow.styl +38 -38
- package/dist/cleek-styles/tiny-tailwind/text-transform.styl +8 -8
- package/dist/cleek-styles/tiny-tailwind/transition.styl +55 -55
- package/dist/cleek-styles/tiny-tailwind/user-select.styl +8 -8
- package/dist/cleek-styles/tiny-tailwind/visibility.styl +4 -4
- package/dist/cleek-styles/tiny-tailwind/z-index.styl +14 -14
- package/dist/main.cjs.js +1 -1
- package/dist/main.css +1 -1
- package/dist/main.es.js +986 -984
- package/dist/types/components/ck-input.vue.d.ts +6 -0
- package/package.json +1 -1
package/dist/main.es.js
CHANGED
|
@@ -6,11 +6,11 @@ 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
|
|
9
|
+
import { ref as x, computed as d, watch as ce, defineComponent as R, resolveDirective as ht, openBlock as m, createElementBlock as y, toDisplayString as A, createTextVNode as G, createCommentVNode as w, withDirectives as ue, Fragment as K, unref as we, createElementVNode as $, onMounted as _e, withKeys as he, renderSlot as W, createBlock as S, Teleport as Ae, normalizeClass as M, 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 Ie, 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
|
|
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 xe, 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: {
|
|
@@ -39,55 +39,55 @@ var Ct = { exports: {} };
|
|
|
39
39
|
(function(t, n) {
|
|
40
40
|
e.exports = n();
|
|
41
41
|
})(Bo, function() {
|
|
42
|
-
var t = "__v-click-outside", n = typeof window < "u", a = typeof navigator < "u", l = n && ("ontouchstart" in window || a && navigator.msMaxTouchPoints > 0) ? ["touchstart"] : ["click"],
|
|
43
|
-
var v =
|
|
44
|
-
(0,
|
|
45
|
-
}, c = function(
|
|
46
|
-
var
|
|
47
|
-
var
|
|
48
|
-
if (!
|
|
42
|
+
var t = "__v-click-outside", n = typeof window < "u", a = typeof navigator < "u", l = n && ("ontouchstart" in window || a && navigator.msMaxTouchPoints > 0) ? ["touchstart"] : ["click"], s = function(r) {
|
|
43
|
+
var v = r.event, i = r.handler;
|
|
44
|
+
(0, r.middleware)(v) && i(v);
|
|
45
|
+
}, c = function(r, v) {
|
|
46
|
+
var i = function(T) {
|
|
47
|
+
var O = typeof T == "function";
|
|
48
|
+
if (!O && typeof T != "object")
|
|
49
49
|
throw new Error("v-click-outside: Binding value must be a function or an object");
|
|
50
|
-
return { handler:
|
|
50
|
+
return { handler: O ? T : T.handler, middleware: T.middleware || function(P) {
|
|
51
51
|
return P;
|
|
52
52
|
}, events: T.events || l, isActive: T.isActive !== !1, detectIframe: T.detectIframe !== !1, capture: !!T.capture };
|
|
53
|
-
}(v.value), g =
|
|
54
|
-
if (
|
|
55
|
-
if (
|
|
56
|
-
return { event: T, srcTarget: document.documentElement, handler: function(
|
|
53
|
+
}(v.value), g = i.handler, f = i.middleware, k = i.detectIframe, b = i.capture;
|
|
54
|
+
if (i.isActive) {
|
|
55
|
+
if (r[t] = i.events.map(function(T) {
|
|
56
|
+
return { event: T, srcTarget: document.documentElement, handler: function(O) {
|
|
57
57
|
return function(P) {
|
|
58
|
-
var B = P.el,
|
|
59
|
-
(le ? le.indexOf(B) < 0 : !B.contains(
|
|
60
|
-
}({ el:
|
|
58
|
+
var B = P.el, L = P.event, j = P.handler, X = P.middleware, le = L.path || L.composedPath && L.composedPath();
|
|
59
|
+
(le ? le.indexOf(B) < 0 : !B.contains(L.target)) && s({ event: L, handler: j, middleware: X });
|
|
60
|
+
}({ el: r, event: O, handler: g, middleware: f });
|
|
61
61
|
}, capture: b };
|
|
62
62
|
}), k) {
|
|
63
63
|
var h = { event: "blur", srcTarget: window, handler: function(T) {
|
|
64
|
-
return function(
|
|
65
|
-
var P =
|
|
64
|
+
return function(O) {
|
|
65
|
+
var P = O.el, B = O.event, L = O.handler, j = O.middleware;
|
|
66
66
|
setTimeout(function() {
|
|
67
67
|
var X = document.activeElement;
|
|
68
|
-
X && X.tagName === "IFRAME" && !P.contains(X) &&
|
|
68
|
+
X && X.tagName === "IFRAME" && !P.contains(X) && s({ event: B, handler: L, middleware: j });
|
|
69
69
|
}, 0);
|
|
70
|
-
}({ el:
|
|
70
|
+
}({ el: r, event: T, handler: g, middleware: f });
|
|
71
71
|
}, capture: b };
|
|
72
|
-
|
|
72
|
+
r[t] = [].concat(r[t], [h]);
|
|
73
73
|
}
|
|
74
|
-
|
|
75
|
-
var
|
|
74
|
+
r[t].forEach(function(T) {
|
|
75
|
+
var O = T.event, P = T.srcTarget, B = T.handler;
|
|
76
76
|
return setTimeout(function() {
|
|
77
|
-
|
|
77
|
+
r[t] && P.addEventListener(O, B, b);
|
|
78
78
|
}, 0);
|
|
79
79
|
});
|
|
80
80
|
}
|
|
81
|
-
}, u = function(
|
|
82
|
-
(
|
|
81
|
+
}, u = function(r) {
|
|
82
|
+
(r[t] || []).forEach(function(v) {
|
|
83
83
|
return v.srcTarget.removeEventListener(v.event, v.handler, v.capture);
|
|
84
|
-
}), delete
|
|
85
|
-
}, p = n ? { beforeMount: c, updated: function(
|
|
86
|
-
var
|
|
87
|
-
JSON.stringify(
|
|
84
|
+
}), delete r[t];
|
|
85
|
+
}, p = n ? { beforeMount: c, updated: function(r, v) {
|
|
86
|
+
var i = v.value, g = v.oldValue;
|
|
87
|
+
JSON.stringify(i) !== JSON.stringify(g) && (u(r), c(r, { value: i }));
|
|
88
88
|
}, unmounted: u } : {};
|
|
89
|
-
return { install: function(
|
|
90
|
-
|
|
89
|
+
return { install: function(r) {
|
|
90
|
+
r.directive("click-outside", p);
|
|
91
91
|
}, directive: p };
|
|
92
92
|
});
|
|
93
93
|
})(Ct);
|
|
@@ -162,16 +162,16 @@ function Lo(e) {
|
|
|
162
162
|
o.style.setProperty(`--${t}`, n), o.style.setProperty(`--${t}-rgb`, `${a.r}, ${a.g}, ${a.b}`);
|
|
163
163
|
}
|
|
164
164
|
}
|
|
165
|
-
const
|
|
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), l = d(() => e.value.div),
|
|
167
|
-
return
|
|
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), l = 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
|
+
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
173
|
divOptions: l,
|
|
174
|
-
imgOptions:
|
|
174
|
+
imgOptions: s,
|
|
175
175
|
popupOptions: c,
|
|
176
176
|
selectOptions: u,
|
|
177
177
|
tableOptions: p
|
|
@@ -194,32 +194,32 @@ const oe = 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) : ""), l = d(() => t.date ? typeof t.date == "string" ? be.presentDate(t.date) :
|
|
198
|
-
function
|
|
199
|
-
const p = String(u.getDate()).padStart(2, "0"),
|
|
200
|
-
return `${p}/${
|
|
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) : ""), l = 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
|
+
function s(u) {
|
|
199
|
+
const p = String(u.getDate()).padStart(2, "0"), r = String(u.getMonth() + 1).padStart(2, "0"), v = String(u.getFullYear()).slice(-2);
|
|
200
|
+
return `${p}/${r}/${v}`;
|
|
201
201
|
}
|
|
202
202
|
function c(u) {
|
|
203
|
-
const p = String(u.getHours()).padStart(2, "0"),
|
|
204
|
-
return `${p}:${
|
|
203
|
+
const p = String(u.getHours()).padStart(2, "0"), r = String(u.getMinutes()).padStart(2, "0");
|
|
204
|
+
return `${p}:${r}`;
|
|
205
205
|
}
|
|
206
206
|
return (u, p) => {
|
|
207
|
-
const
|
|
207
|
+
const r = ht("tooltip");
|
|
208
208
|
return l.value ? u.split || u.date ? (m(), y("div", {
|
|
209
209
|
key: 1,
|
|
210
210
|
class: "ck-datetime-shower--split",
|
|
211
211
|
onClick: p[0] || (p[0] = (v) => n("click", v))
|
|
212
212
|
}, [
|
|
213
213
|
G(A(l.value) + " ", 1),
|
|
214
|
-
a.value ? (m(), y("span", Mo, " | " + A(a.value), 1)) :
|
|
215
|
-
])) :
|
|
214
|
+
a.value ? (m(), y("span", Mo, " | " + A(a.value), 1)) : w("", !0)
|
|
215
|
+
])) : ue((m(), y("div", {
|
|
216
216
|
key: 2,
|
|
217
217
|
class: "ck-datetime-shower",
|
|
218
218
|
onClick: p[1] || (p[1] = (v) => n("click", v))
|
|
219
219
|
}, [
|
|
220
220
|
G(A(l.value), 1)
|
|
221
221
|
])), [
|
|
222
|
-
[
|
|
222
|
+
[r, a.value]
|
|
223
223
|
]) : (m(), y("span", So, A(u.noDateMsg), 1));
|
|
224
224
|
};
|
|
225
225
|
}
|
|
@@ -237,9 +237,9 @@ const H = (e, o) => {
|
|
|
237
237
|
},
|
|
238
238
|
setup(e) {
|
|
239
239
|
return (o, t) => (m(), y("span", Io, [
|
|
240
|
-
o.minutes ? (m(), y(
|
|
240
|
+
o.minutes ? (m(), y(K, { key: 0 }, [
|
|
241
241
|
G(A(we(be).minToHour(o.minutes)), 1)
|
|
242
|
-
], 64)) : (m(), y(
|
|
242
|
+
], 64)) : (m(), y(K, { key: 1 }, [
|
|
243
243
|
G(A(we(be).presentTime(o.time)), 1)
|
|
244
244
|
], 64)),
|
|
245
245
|
t[0] || (t[0] = $("span", { class: "hs-text" }, " hs ", -1))
|
|
@@ -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(
|
|
262
|
-
const
|
|
263
|
-
t.dark &&
|
|
261
|
+
const { cleekOptions: n } = ae(ne()), a = x(!1), l = x(), s = x(), c = x(), u = d(() => {
|
|
262
|
+
const r = [];
|
|
263
|
+
t.dark && r.push("ck-dropdown--content__dark");
|
|
264
264
|
const v = t.layout || n.value.styles.layout;
|
|
265
|
-
return v &&
|
|
265
|
+
return v && r.push(`ck-dropdown--content__${v}`), r;
|
|
266
266
|
});
|
|
267
|
-
|
|
268
|
-
if (
|
|
269
|
-
const v = document.documentElement.clientHeight,
|
|
270
|
-
g.top < v / 2 ? (f.top = `${g.bottom}px`, f["margin-top"] = "0.5rem") : (f.bottom = `${v - g.top}px`, f["margin-bottom"] = "0.5rem"), t.align === "left" ? f.left = `${g.left}px` : t.align === "right" && (f.right = `${
|
|
267
|
+
ce(() => a.value, (r) => {
|
|
268
|
+
if (r) {
|
|
269
|
+
const v = document.documentElement.clientHeight, i = document.documentElement.clientWidth, g = l.value.getBoundingClientRect(), f = {};
|
|
270
|
+
g.top < v / 2 ? (f.top = `${g.bottom}px`, f["margin-top"] = "0.5rem") : (f.bottom = `${v - g.top}px`, f["margin-bottom"] = "0.5rem"), t.align === "left" ? f.left = `${g.left}px` : t.align === "right" && (f.right = `${i - g.right}px`), c.value = f;
|
|
271
271
|
}
|
|
272
|
-
}),
|
|
273
|
-
if (
|
|
272
|
+
}), ce(() => s.value, (r) => {
|
|
273
|
+
if (r && t.align !== "left" && t.align !== "right") {
|
|
274
274
|
const v = l.value.getBoundingClientRect();
|
|
275
|
-
c.value.left = `${v.left + v.width / 2 -
|
|
275
|
+
c.value.left = `${v.left + v.width / 2 - r.getBoundingClientRect().width / 2}px`;
|
|
276
276
|
}
|
|
277
277
|
});
|
|
278
278
|
function p() {
|
|
@@ -280,8 +280,8 @@ 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
|
-
}), (
|
|
284
|
-
const
|
|
283
|
+
}), (r, v) => {
|
|
284
|
+
const i = ht("click-outside");
|
|
285
285
|
return m(), y("div", {
|
|
286
286
|
ref_key: "dropdownRef",
|
|
287
287
|
ref: l,
|
|
@@ -293,20 +293,20 @@ const Ro = /* @__PURE__ */ H(zo, [["__scopeId", "data-v-dc82897f"]]), Wo = /* @_
|
|
|
293
293
|
class: "ck-dropdown--trigger",
|
|
294
294
|
onClick: v[0] || (v[0] = (g) => a.value = !0)
|
|
295
295
|
}, [
|
|
296
|
-
|
|
296
|
+
W(r.$slots, "trigger", {}, void 0, !0)
|
|
297
297
|
]),
|
|
298
|
-
(m(),
|
|
299
|
-
a.value ?
|
|
298
|
+
(m(), S(Ae, { to: "body" }, [
|
|
299
|
+
a.value ? ue((m(), y("div", {
|
|
300
300
|
key: 0,
|
|
301
301
|
ref_key: "contentRef",
|
|
302
|
-
ref:
|
|
303
|
-
class:
|
|
302
|
+
ref: s,
|
|
303
|
+
class: M(["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
|
+
[i, () => a.value = !1]
|
|
309
|
+
]) : w("", !0)
|
|
310
310
|
]))
|
|
311
311
|
], 544);
|
|
312
312
|
};
|
|
@@ -320,28 +320,28 @@ const Oo = /* @__PURE__ */ H(Wo, [["__scopeId", "data-v-ee86f04f"]]), Eo = "fixe
|
|
|
320
320
|
position: {}
|
|
321
321
|
},
|
|
322
322
|
setup(e) {
|
|
323
|
-
const o = e, { cleekOptions: t } = ae(
|
|
324
|
-
const
|
|
325
|
-
return o.padding &&
|
|
323
|
+
const o = e, { cleekOptions: t } = ae(ne()), n = d(() => {
|
|
324
|
+
const s = [];
|
|
325
|
+
return o.padding && s.push("has-padding"), s;
|
|
326
326
|
}), a = d(() => {
|
|
327
|
-
const
|
|
328
|
-
o.padding &&
|
|
327
|
+
const s = [];
|
|
328
|
+
o.padding && s.push({ padding: o.padding });
|
|
329
329
|
const c = o.position || Eo;
|
|
330
|
-
return c &&
|
|
330
|
+
return c && s.push({ position: c }), s;
|
|
331
331
|
}), l = d(() => {
|
|
332
|
-
const
|
|
332
|
+
const s = [];
|
|
333
333
|
let c = "";
|
|
334
|
-
return t.value.darkMode && (c = t.value.darkModeColorItems), o.backgroundColor && (c = o.backgroundColor), c &&
|
|
334
|
+
return t.value.darkMode && (c = t.value.darkModeColorItems), o.backgroundColor && (c = o.backgroundColor), c && s.push({ backgroundColor: c }), s;
|
|
335
335
|
});
|
|
336
|
-
return (
|
|
336
|
+
return (s, c) => (m(), y("div", {
|
|
337
337
|
class: "ck-navbar",
|
|
338
338
|
style: F(a.value)
|
|
339
339
|
}, [
|
|
340
340
|
$("div", {
|
|
341
|
-
class:
|
|
341
|
+
class: M(["ck-navbar__content", n.value]),
|
|
342
342
|
style: F(l.value)
|
|
343
343
|
}, [
|
|
344
|
-
|
|
344
|
+
W(s.$slots, "default", {}, void 0, !0)
|
|
345
345
|
], 6)
|
|
346
346
|
], 4));
|
|
347
347
|
}
|
|
@@ -350,7 +350,7 @@ const Fo = /* @__PURE__ */ H(No, [["__scopeId", "data-v-3a574311"]]);
|
|
|
350
350
|
const jo = {}, Ho = { class: "ck-tr" };
|
|
351
351
|
function qo(e, o) {
|
|
352
352
|
return m(), y("tr", Ho, [
|
|
353
|
-
|
|
353
|
+
W(e.$slots, "default", {}, void 0, !0)
|
|
354
354
|
]);
|
|
355
355
|
}
|
|
356
356
|
const $t = /* @__PURE__ */ H(jo, [["render", qo], ["__scopeId", "data-v-53984b6f"]]), D = {
|
|
@@ -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 [l,
|
|
372
|
-
(o || 0) >= l && (n =
|
|
371
|
+
const [l, s] = a;
|
|
372
|
+
(o || 0) >= l && (n = s);
|
|
373
373
|
}), n;
|
|
374
374
|
}
|
|
375
375
|
},
|
|
@@ -410,34 +410,34 @@ const $t = /* @__PURE__ */ H(jo, [["render", qo], ["__scopeId", "data-v-53984b6f
|
|
|
410
410
|
},
|
|
411
411
|
setup(e) {
|
|
412
412
|
const o = e, t = d(() => {
|
|
413
|
-
var u, p,
|
|
414
|
-
const
|
|
415
|
-
(o.autoWidth || (u = o.col) != null && u.autoWidth) &&
|
|
416
|
-
const c = o.verticalAlign || ((
|
|
417
|
-
return c &&
|
|
413
|
+
var u, p, r;
|
|
414
|
+
const s = [];
|
|
415
|
+
(o.autoWidth || (u = o.col) != null && u.autoWidth) && s.push("auto-width"), (o.overflowAuto || (p = o.col) != null && p.overflowAuto) && s.push("overflow-auto");
|
|
416
|
+
const c = o.verticalAlign || ((r = o.col) == null ? void 0 : r.verticalAlign);
|
|
417
|
+
return c && s.push(`vertical-align--${c}`), s;
|
|
418
418
|
}), n = d(() => {
|
|
419
|
-
var u, p,
|
|
420
|
-
const
|
|
421
|
-
return c && (c === "center" &&
|
|
419
|
+
var u, p, r;
|
|
420
|
+
const s = [], c = o.align || ((u = o.col) == null ? void 0 : u.align);
|
|
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,
|
|
424
|
-
const
|
|
423
|
+
var p, r, v, i, g, f, k, b, h;
|
|
424
|
+
const s = {};
|
|
425
425
|
let c;
|
|
426
|
-
(o.minWidth || (p = o.col) != null && p.minWidth) && (c = o.minWidth || ((
|
|
426
|
+
(o.minWidth || (p = o.col) != null && p.minWidth) && (c = o.minWidth || ((r = o.col) == null ? void 0 : r.minWidth)), (o.fixedWidth || (v = o.col) != null && v.fixedWidth) && (c = o.fixedWidth || ((i = o.col) == null ? void 0 : i.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 || (k = o.col) != null && k.fixedWidth) && (u = o.fixedWidth || ((b = o.col) == null ? void 0 : b.fixedWidth)), u && (
|
|
428
|
+
return (o.maxWidth || (g = o.col) != null && g.maxWidth) && (u = o.maxWidth || ((f = o.col) == null ? void 0 : f.maxWidth)), (o.fixedWidth || (k = o.col) != null && k.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
429
|
}), l = d(() => o.col ? D.isColumnDisplayed(o.col) : !0);
|
|
430
|
-
return (
|
|
430
|
+
return (s, c) => l.value ? (m(), y("td", {
|
|
431
431
|
key: 0,
|
|
432
|
-
class:
|
|
432
|
+
class: M([t.value, "ck-td"])
|
|
433
433
|
}, [
|
|
434
434
|
$("span", {
|
|
435
|
-
class:
|
|
435
|
+
class: M(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)) : w("", !0);
|
|
441
441
|
}
|
|
442
442
|
});
|
|
443
443
|
const Bt = /* @__PURE__ */ H(Uo, [["__scopeId", "data-v-8832ff61"]]), Yo = /* @__PURE__ */ R({
|
|
@@ -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 m(),
|
|
451
|
+
return m(), S(n, {
|
|
452
452
|
size: "s",
|
|
453
453
|
color: "dark",
|
|
454
454
|
type: "flat",
|
|
@@ -474,7 +474,7 @@ const Bt = /* @__PURE__ */ H(Uo, [["__scopeId", "data-v-8832ff61"]]), Yo = /* @_
|
|
|
474
474
|
const l = o.currentPage * o.itemsPerPage;
|
|
475
475
|
return !o.itemsPerPage || l > o.listLength ? o.listLength : l;
|
|
476
476
|
}), a = d(() => !o.hideItemsPerPage && o.listLength && o.currentPage);
|
|
477
|
-
return (l,
|
|
477
|
+
return (l, s) => a.value ? (m(), y("div", Go, A(t.value) + " - " + A(n.value) + " de " + A(l.listLength), 1)) : w("", !0);
|
|
478
478
|
}
|
|
479
479
|
});
|
|
480
480
|
const Ko = /* @__PURE__ */ H(Zo, [["__scopeId", "data-v-c3b27c6d"]]), Qo = /* @__PURE__ */ R({
|
|
@@ -493,47 +493,47 @@ const Ko = /* @__PURE__ */ H(Zo, [["__scopeId", "data-v-c3b27c6d"]]), Qo = /* @_
|
|
|
493
493
|
emits: ["click"],
|
|
494
494
|
setup(e, { emit: o }) {
|
|
495
495
|
const t = e, n = o, a = d(() => {
|
|
496
|
-
const
|
|
497
|
-
return t.iconPack && (t.iconPack === "cleek" || t.iconPack === "feather") ? t.iconPack :
|
|
496
|
+
const r = "font-awesome";
|
|
497
|
+
return t.iconPack && (t.iconPack === "cleek" || t.iconPack === "feather") ? t.iconPack : r;
|
|
498
498
|
}), l = d(() => {
|
|
499
|
-
const
|
|
500
|
-
return t.color && D.isColorTemplateVariable(t.color) &&
|
|
501
|
-
}),
|
|
502
|
-
const
|
|
503
|
-
return t.color && !D.isColorTemplateVariable(t.color) &&
|
|
499
|
+
const r = [];
|
|
500
|
+
return t.color && D.isColorTemplateVariable(t.color) && r.push(`ck-component__color--${t.color}`), t.size && r.push(`ck-icon__size-${t.size}`), r;
|
|
501
|
+
}), s = d(() => {
|
|
502
|
+
const r = [];
|
|
503
|
+
return t.color && !D.isColorTemplateVariable(t.color) && r.push({ color: t.color }), r;
|
|
504
504
|
});
|
|
505
|
-
function c(
|
|
506
|
-
n("click",
|
|
505
|
+
function c(r) {
|
|
506
|
+
n("click", r);
|
|
507
507
|
}
|
|
508
508
|
const u = d(() => {
|
|
509
|
-
const
|
|
510
|
-
return `mask: url(${
|
|
509
|
+
const r = `/src/assets/icons/${t.icon}.svg`;
|
|
510
|
+
return `mask: url(${r}) no-repeat center; -webkit-mask: url(${r}) no-repeat center;`;
|
|
511
511
|
}), p = d(() => {
|
|
512
|
-
const
|
|
513
|
-
return t.color ? t.color && D.isColorTemplateVariable(t.color) &&
|
|
512
|
+
const r = [];
|
|
513
|
+
return t.color ? t.color && D.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 (
|
|
516
|
-
class:
|
|
517
|
-
style: F(
|
|
518
|
-
onClick: v[0] || (v[0] = (
|
|
515
|
+
return (r, v) => (m(), y("div", {
|
|
516
|
+
class: M(["ck-icon", l.value]),
|
|
517
|
+
style: F(s.value),
|
|
518
|
+
onClick: v[0] || (v[0] = (i) => c(i))
|
|
519
519
|
}, [
|
|
520
|
-
a.value === "font-awesome" ? (m(),
|
|
520
|
+
a.value === "font-awesome" ? (m(), S(we(to), {
|
|
521
521
|
key: 0,
|
|
522
|
-
icon:
|
|
523
|
-
rotation:
|
|
524
|
-
flip:
|
|
525
|
-
spin:
|
|
526
|
-
pulse:
|
|
527
|
-
fixedWidth:
|
|
522
|
+
icon: r.icon,
|
|
523
|
+
rotation: r.rotation,
|
|
524
|
+
flip: r.flip,
|
|
525
|
+
spin: r.spin,
|
|
526
|
+
pulse: r.pulse,
|
|
527
|
+
fixedWidth: r.fixedWidth
|
|
528
528
|
}, null, 8, ["icon", "rotation", "flip", "spin", "pulse", "fixedWidth"])) : a.value === "cleek" ? (m(), y("div", {
|
|
529
529
|
key: 1,
|
|
530
530
|
style: F(u.value),
|
|
531
|
-
class:
|
|
532
|
-
}, null, 6)) :
|
|
531
|
+
class: M([p.value, "ck-icon__cleek"])
|
|
532
|
+
}, null, 6)) : w("", !0)
|
|
533
533
|
], 6));
|
|
534
534
|
}
|
|
535
535
|
});
|
|
536
|
-
const
|
|
536
|
+
const te = /* @__PURE__ */ H(Qo, [["__scopeId", "data-v-4bc5aa54"]]);
|
|
537
537
|
function ke() {
|
|
538
538
|
const e = x(0);
|
|
539
539
|
function o(t) {
|
|
@@ -575,53 +575,53 @@ 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(
|
|
579
|
-
const
|
|
580
|
-
|
|
578
|
+
const t = e, n = o, { cleekOptions: a } = ae(ne()), { windowWidth: l } = 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 i = [];
|
|
580
|
+
i.push(D.getGroupClass(t, l.value)), (t.color || ut) !== ut && (s.value === "filled" ? i.push(`ck-component__bg-color--${t.color}`) : i.push(`ck-component__border-color--${t.color}`)), c.value !== Ke && D.isColorTemplateVariable(c.value) && i.push(`ck-component__bg-color--${c.value}`), u.value && D.isColorTemplateVariable(u.value) && i.push(`ck-component__color--${u.value}`);
|
|
581
581
|
const f = t.align || en;
|
|
582
|
-
(f === "center" || f === "right") &&
|
|
582
|
+
(f === "center" || f === "right") && i.push(`ck-button__align--${t.align}`);
|
|
583
583
|
const k = t.layout || a.value.styles.layout;
|
|
584
|
-
return k &&
|
|
585
|
-
}),
|
|
586
|
-
const
|
|
584
|
+
return k && i.push(k), i.push(`type-${s.value}`), t.size && i.push(`ck-button-size__${t.size}`), t.isLoading && i.push("is-loading-btn"), i;
|
|
585
|
+
}), r = d(() => {
|
|
586
|
+
const i = [];
|
|
587
587
|
let g = !1;
|
|
588
588
|
if (t.widthBreaks) {
|
|
589
589
|
const f = D.getWidthByWidthBreaks(t.widthBreaks, l.value);
|
|
590
|
-
f && (g = !0,
|
|
590
|
+
f && (g = !0, i.push({ width: f }));
|
|
591
591
|
}
|
|
592
|
-
return u.value && !D.isColorTemplateVariable(u.value) &&
|
|
592
|
+
return u.value && !D.isColorTemplateVariable(u.value) && i.push({ color: `${u.value} !important` }), t.width && !g && i.push({ width: t.width }), c.value !== Ke && !D.isColorTemplateVariable(c.value) && i.push({ "background-color": c.value }), t.color && !D.isColorTemplateVariable(t.color) && (s.value === "outlined" ? (i.push({ "border-color": t.color }), i.push({ color: t.color })) : s.value === "filled" ? (i.push({ color: "white" }), i.push({ "border-color": t.color }), i.push({ "background-color": t.color })) : s.value === "flat" && i.push({ color: t.color })), i;
|
|
593
593
|
});
|
|
594
|
-
function v(
|
|
595
|
-
t.isLoading || n("click",
|
|
594
|
+
function v(i) {
|
|
595
|
+
t.isLoading || n("click", i);
|
|
596
596
|
}
|
|
597
|
-
return (
|
|
597
|
+
return (i, g) => (m(), y("button", {
|
|
598
598
|
type: "button",
|
|
599
|
-
class:
|
|
600
|
-
title:
|
|
601
|
-
"aria-label":
|
|
602
|
-
disabled:
|
|
603
|
-
tabindex:
|
|
604
|
-
style: F(
|
|
599
|
+
class: M(p.value),
|
|
600
|
+
title: i.title,
|
|
601
|
+
"aria-label": i.title,
|
|
602
|
+
disabled: i.disabled,
|
|
603
|
+
tabindex: i.tabindex,
|
|
604
|
+
style: F(r.value),
|
|
605
605
|
onClick: g[0] || (g[0] = (f) => v(f))
|
|
606
606
|
}, [
|
|
607
|
-
|
|
607
|
+
i.isLoading ? (m(), S(te, {
|
|
608
608
|
key: 0,
|
|
609
609
|
icon: "spinner",
|
|
610
610
|
spin: ""
|
|
611
|
-
})) : (m(), y(
|
|
612
|
-
|
|
611
|
+
})) : (m(), y(K, { key: 1 }, [
|
|
612
|
+
i.icon ? (m(), S(te, {
|
|
613
613
|
key: 0,
|
|
614
|
-
class:
|
|
615
|
-
icon:
|
|
616
|
-
"icon-pack":
|
|
617
|
-
}, null, 8, ["icon", "icon-pack", "class"])) :
|
|
618
|
-
|
|
619
|
-
|
|
614
|
+
class: M(["ck-button__icon-left", { "just-icon": !i.$slots.default }]),
|
|
615
|
+
icon: i.icon,
|
|
616
|
+
"icon-pack": i.iconPack
|
|
617
|
+
}, null, 8, ["icon", "icon-pack", "class"])) : w("", !0),
|
|
618
|
+
W(i.$slots, "default", {}, void 0, !0),
|
|
619
|
+
i.iconRight ? (m(), S(te, {
|
|
620
620
|
key: 1,
|
|
621
|
-
class:
|
|
622
|
-
icon:
|
|
623
|
-
"icon-pack":
|
|
624
|
-
}, null, 8, ["icon", "icon-pack", "class"])) :
|
|
621
|
+
class: M(["ck-button__icon-right", { "just-icon": !i.$slots.default }]),
|
|
622
|
+
icon: i.iconRight,
|
|
623
|
+
"icon-pack": i.iconPack
|
|
624
|
+
}, null, 8, ["icon", "icon-pack", "class"])) : w("", !0)
|
|
625
625
|
], 64))
|
|
626
626
|
], 14, Jo));
|
|
627
627
|
}
|
|
@@ -634,32 +634,33 @@ const Te = /* @__PURE__ */ H(tn, [["__scopeId", "data-v-1598dab4"]]), on = ["for
|
|
|
634
634
|
size: {}
|
|
635
635
|
},
|
|
636
636
|
setup(e) {
|
|
637
|
-
const o = e, { cleekOptions: t } = ae(
|
|
637
|
+
const o = e, { cleekOptions: t } = ae(ne()), n = d(() => {
|
|
638
638
|
const l = [];
|
|
639
|
-
let
|
|
640
|
-
return (o.align === "center" || o.align === "right") && (
|
|
639
|
+
let s = "left";
|
|
640
|
+
return (o.align === "center" || o.align === "right") && (s = o.align), l.push(`ck-align--${s}`), l.push(`ck-size--${o.size || nn}`), l;
|
|
641
641
|
}), a = d(() => {
|
|
642
642
|
const l = [];
|
|
643
|
-
let
|
|
644
|
-
return t.value.darkMode && (
|
|
643
|
+
let s = t.value.popup.textColor;
|
|
644
|
+
return t.value.darkMode && (s = t.value.darkModeColorText), s && (D.isColorTemplateVariable(s) ? l.push(`ck-component__color--${s}`) : l.push({ color: s })), l;
|
|
645
645
|
});
|
|
646
|
-
return (l,
|
|
647
|
-
class:
|
|
646
|
+
return (l, s) => (m(), y("label", {
|
|
647
|
+
class: M(["ck-label", n.value]),
|
|
648
648
|
for: o.for,
|
|
649
649
|
style: F(a.value)
|
|
650
650
|
}, [
|
|
651
|
-
|
|
651
|
+
W(l.$slots, "default", {}, void 0, !0)
|
|
652
652
|
], 14, on));
|
|
653
653
|
}
|
|
654
654
|
});
|
|
655
655
|
const ze = /* @__PURE__ */ H(an, [["__scopeId", "data-v-f242d7f6"]]), ln = {
|
|
656
656
|
key: 0,
|
|
657
657
|
class: "ck-input__optional-label"
|
|
658
|
-
}, sn = { class: "ck-input__content" }, rn = ["type", "autocomplete", "placeholder", "disabled", "tabindex"], un = "120px", ct = "center", cn = /* @__PURE__ */ R({
|
|
658
|
+
}, sn = { class: "ck-input__content" }, rn = ["type", "autocomplete", "readonly", "placeholder", "disabled", "tabindex"], un = "120px", ct = "center", cn = /* @__PURE__ */ R({
|
|
659
659
|
__name: "ck-input",
|
|
660
|
-
props: /* @__PURE__ */
|
|
660
|
+
props: /* @__PURE__ */ oe({
|
|
661
661
|
type: { default: "text" },
|
|
662
662
|
preventAutocomplete: { type: Boolean },
|
|
663
|
+
readonly: { type: Boolean },
|
|
663
664
|
disabled: { type: Boolean },
|
|
664
665
|
placeholder: {},
|
|
665
666
|
plusMinusButtons: { type: Boolean },
|
|
@@ -695,191 +696,192 @@ const ze = /* @__PURE__ */ H(an, [["__scopeId", "data-v-f242d7f6"]]), ln = {
|
|
|
695
696
|
modelValue: { required: !0 },
|
|
696
697
|
modelModifiers: {}
|
|
697
698
|
}),
|
|
698
|
-
emits: /* @__PURE__ */
|
|
699
|
+
emits: /* @__PURE__ */ oe(["click", "focus", "blur", "input", "inputDelayed", "change", "changeDelayed"], ["update:modelValue"]),
|
|
699
700
|
setup(e, { expose: o, emit: t }) {
|
|
700
701
|
const n = ge(e, "modelValue"), a = e, l = t;
|
|
701
|
-
o({ focus:
|
|
702
|
-
const { cleekOptions:
|
|
703
|
-
const
|
|
702
|
+
o({ focus: T, select: O });
|
|
703
|
+
const { cleekOptions: s } = ae(ne()), { windowWidth: c } = ke(), u = x(), p = x(""), r = x(!1), v = x(!1), i = 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"), k = d(() => {
|
|
704
|
+
const C = [];
|
|
704
705
|
let I = "";
|
|
705
|
-
if (a.width && (I = a.width), a.plusMinusButtons && (I = un), I &&
|
|
706
|
-
const
|
|
707
|
-
|
|
706
|
+
if (a.width && (I = a.width), a.plusMinusButtons && (I = un), I && C.push({ width: I }), a.widthBreaks) {
|
|
707
|
+
const ee = D.getWidthByWidthBreaks(a.widthBreaks, c.value);
|
|
708
|
+
ee && C.push({ width: ee });
|
|
708
709
|
}
|
|
709
|
-
return
|
|
710
|
-
}), k = d(() => {
|
|
711
|
-
const w = [];
|
|
712
|
-
w.push(D.getGroupClass(a, c.value)), a.icon && w.push("has-icon-left"), a.iconRight && w.push("has-icon-right");
|
|
713
|
-
let I = a.align;
|
|
714
|
-
a.plusMinusButtons && (I = ct), I && w.push(`align--${I}`), a.hideBorder && w.push("no-border");
|
|
715
|
-
const J = a.layout || i.value.styles.layout;
|
|
716
|
-
J && w.push(J), a.plusMinusButtons && w.push("squared"), a.size && w.push(`ck-input-size__${a.size}`);
|
|
717
|
-
const ne = a.borderColor || i.value.styles.borderColor;
|
|
718
|
-
return ne && D.isColorTemplateVariable(ne) && w.push(`ck-component__border-color--${ne}`), w;
|
|
710
|
+
return C;
|
|
719
711
|
}), b = d(() => {
|
|
720
|
-
const
|
|
721
|
-
a.
|
|
722
|
-
|
|
723
|
-
I &&
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
return
|
|
712
|
+
const C = [];
|
|
713
|
+
C.push(D.getGroupClass(a, c.value)), a.icon && C.push("has-icon-left"), a.iconRight && C.push("has-icon-right");
|
|
714
|
+
let I = a.align;
|
|
715
|
+
a.plusMinusButtons && (I = ct), I && C.push(`align--${I}`), a.hideBorder && C.push("no-border");
|
|
716
|
+
const ee = a.layout || s.value.styles.layout;
|
|
717
|
+
ee && C.push(ee), a.plusMinusButtons && C.push("squared"), a.size && C.push(`ck-input-size__${a.size}`);
|
|
718
|
+
const ie = a.borderColor || s.value.styles.borderColor;
|
|
719
|
+
return ie && D.isColorTemplateVariable(ie) && C.push(`ck-component__border-color--${ie}`), C;
|
|
720
|
+
}), h = d(() => {
|
|
721
|
+
const C = [];
|
|
722
|
+
a.fontSize && C.push({ "font-size": a.fontSize }), a.textColor && C.push({ color: a.textColor });
|
|
723
|
+
const I = a.borderColor || s.value.styles.borderColor;
|
|
724
|
+
I && !D.isColorTemplateVariable(I) && C.push({ "border-color": I });
|
|
725
|
+
let ee = "";
|
|
726
|
+
s.value.darkMode && (ee = s.value.darkModeColorItems), ee && !D.isColorTemplateVariable(ee) && C.push({ backgroundColor: ee });
|
|
727
|
+
let ie = a.textColor || s.value.popup.textColor;
|
|
728
|
+
return s.value.darkMode && (ie = s.value.darkModeColorText), ie && !D.isColorTemplateVariable(ie) && (C.push(`ck-component__color--${ie}`), C.push({ color: ie })), C;
|
|
728
729
|
});
|
|
729
|
-
|
|
730
|
+
ce(
|
|
730
731
|
() => n.value,
|
|
731
|
-
(
|
|
732
|
+
(C) => me(C),
|
|
732
733
|
{ immediate: !0 }
|
|
733
734
|
);
|
|
734
|
-
function h() {
|
|
735
|
-
var w;
|
|
736
|
-
(w = u.value) == null || w.focus();
|
|
737
|
-
}
|
|
738
735
|
function T() {
|
|
739
|
-
var
|
|
740
|
-
(
|
|
736
|
+
var C;
|
|
737
|
+
(C = u.value) == null || C.focus();
|
|
738
|
+
}
|
|
739
|
+
function O() {
|
|
740
|
+
var C;
|
|
741
|
+
(C = u.value) == null || C.select();
|
|
741
742
|
}
|
|
742
|
-
function
|
|
743
|
-
l("input",
|
|
744
|
-
n.value ===
|
|
743
|
+
function P(C) {
|
|
744
|
+
l("input", C), setTimeout(() => {
|
|
745
|
+
n.value === C && l("inputDelayed", C);
|
|
745
746
|
}, a.delayChangeTime);
|
|
746
747
|
}
|
|
747
|
-
function
|
|
748
|
-
l("change",
|
|
749
|
-
n.value ===
|
|
748
|
+
function B(C) {
|
|
749
|
+
l("change", C), setTimeout(() => {
|
|
750
|
+
n.value === C && l("changeDelayed", C);
|
|
750
751
|
}, a.delayChangeTime);
|
|
751
752
|
}
|
|
752
|
-
function
|
|
753
|
+
function L(C) {
|
|
753
754
|
var I;
|
|
754
|
-
l("click",
|
|
755
|
-
}
|
|
756
|
-
function M() {
|
|
757
|
-
const w = re(p.value);
|
|
758
|
-
W(w);
|
|
755
|
+
l("click", C), a.autoSelect && ((I = u.value) == null || I.select());
|
|
759
756
|
}
|
|
760
757
|
function j() {
|
|
761
|
-
|
|
758
|
+
const C = me(p.value);
|
|
759
|
+
P(C);
|
|
762
760
|
}
|
|
763
|
-
function X(
|
|
764
|
-
|
|
761
|
+
function X() {
|
|
762
|
+
B(n.value);
|
|
765
763
|
}
|
|
766
|
-
function le(
|
|
767
|
-
l("
|
|
764
|
+
function le(C) {
|
|
765
|
+
l("focus", C), a.preventAutocomplete && (v.value = !0), i.value === "number" && !p.value && (p.value = "");
|
|
768
766
|
}
|
|
769
|
-
function $e() {
|
|
770
|
-
|
|
771
|
-
W(w), P(w);
|
|
767
|
+
function $e(C) {
|
|
768
|
+
l("blur", C), i.value === "number" && !p.value && (p.value = n.value);
|
|
772
769
|
}
|
|
773
770
|
function V() {
|
|
774
|
-
const
|
|
775
|
-
|
|
771
|
+
const C = me(+p.value - 1);
|
|
772
|
+
P(C), B(C);
|
|
773
|
+
}
|
|
774
|
+
function q() {
|
|
775
|
+
const C = me(+p.value + 1);
|
|
776
|
+
P(C), B(C);
|
|
776
777
|
}
|
|
777
|
-
function
|
|
778
|
-
let I =
|
|
779
|
-
return a.capitalize && (I = Ee.capitalize(`${I}`)), a.toUpperCase && (I = `${I}`.toUpperCase()),
|
|
778
|
+
function de(C) {
|
|
779
|
+
let I = C;
|
|
780
|
+
return a.capitalize && (I = Ee.capitalize(`${I}`)), a.toUpperCase && (I = `${I}`.toUpperCase()), g.value && (I = parseInt(`${+I}`)), typeof a.min < "u" && +I < +a.min && (I = +a.min), typeof a.max < "u" && +I > +a.max && (I = +a.max), I;
|
|
780
781
|
}
|
|
781
|
-
function
|
|
782
|
-
const I =
|
|
782
|
+
function me(C) {
|
|
783
|
+
const I = de(C);
|
|
783
784
|
return n.value = I, p.value = I, I;
|
|
784
785
|
}
|
|
785
786
|
return _e(() => {
|
|
786
|
-
a.autofocus && (
|
|
787
|
-
}), (
|
|
788
|
-
var
|
|
789
|
-
const
|
|
787
|
+
a.autofocus && (T(), L(null));
|
|
788
|
+
}), (C, I) => {
|
|
789
|
+
var ie;
|
|
790
|
+
const ee = Y("ck-button");
|
|
790
791
|
return m(), y("div", {
|
|
791
792
|
class: "ck-input",
|
|
792
|
-
style: F(
|
|
793
|
+
style: F(k.value)
|
|
793
794
|
}, [
|
|
794
|
-
|
|
795
|
+
C.label ? (m(), S(ze, {
|
|
795
796
|
key: 0,
|
|
796
797
|
for: "ck-input",
|
|
797
|
-
size:
|
|
798
|
-
align:
|
|
798
|
+
size: C.size,
|
|
799
|
+
align: f.value
|
|
799
800
|
}, {
|
|
800
801
|
default: N(() => [
|
|
801
|
-
G(A(
|
|
802
|
-
|
|
802
|
+
G(A(C.label) + " ", 1),
|
|
803
|
+
C.optional ? (m(), y("span", ln, "opcional")) : w("", !0)
|
|
803
804
|
]),
|
|
804
805
|
_: 1
|
|
805
|
-
}, 8, ["size", "align"])) :
|
|
806
|
+
}, 8, ["size", "align"])) : w("", !0),
|
|
806
807
|
$("div", sn, [
|
|
807
|
-
|
|
808
|
+
C.plusMinusButtons ? (m(), S(ee, {
|
|
808
809
|
key: 0,
|
|
809
810
|
size: "s",
|
|
810
811
|
icon: "minus",
|
|
811
812
|
group: "left",
|
|
812
813
|
type: "filled",
|
|
813
|
-
class:
|
|
814
|
-
onClick: I[0] || (I[0] = (
|
|
815
|
-
}, null, 8, ["class"])) :
|
|
816
|
-
|
|
814
|
+
class: M(["ck-input-plus-minus-buttons", { "--small": C.size === "s" }]),
|
|
815
|
+
onClick: I[0] || (I[0] = (Z) => V())
|
|
816
|
+
}, null, 8, ["class"])) : w("", !0),
|
|
817
|
+
C.icon ? (m(), S(te, {
|
|
817
818
|
key: 1,
|
|
818
819
|
class: "ck-input__icon-left",
|
|
819
|
-
color:
|
|
820
|
-
icon:
|
|
821
|
-
"icon-pack":
|
|
820
|
+
color: C.iconColor ? C.iconColor : "lightgrey",
|
|
821
|
+
icon: C.icon,
|
|
822
|
+
"icon-pack": C.iconPack,
|
|
822
823
|
size: "s"
|
|
823
|
-
}, null, 8, ["color", "icon", "icon-pack"])) :
|
|
824
|
-
|
|
824
|
+
}, null, 8, ["color", "icon", "icon-pack"])) : w("", !0),
|
|
825
|
+
ue($("input", {
|
|
825
826
|
ref_key: "inputRef",
|
|
826
827
|
ref: u,
|
|
827
|
-
"onUpdate:modelValue": I[1] || (I[1] = (
|
|
828
|
-
type:
|
|
829
|
-
autocomplete:
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
828
|
+
"onUpdate:modelValue": I[1] || (I[1] = (Z) => p.value = Z),
|
|
829
|
+
type: i.value,
|
|
830
|
+
autocomplete: C.preventAutocomplete ? "new-password" : "on",
|
|
831
|
+
readonly: C.readonly || C.preventAutocomplete && !v.value,
|
|
832
|
+
placeholder: C.placeholder,
|
|
833
|
+
class: M(b.value),
|
|
834
|
+
style: F(h.value),
|
|
835
|
+
disabled: C.disabled,
|
|
836
|
+
tabindex: C.tabindex,
|
|
837
|
+
onClick: I[2] || (I[2] = (Z) => L(Z)),
|
|
838
|
+
onInput: I[3] || (I[3] = (Z) => j()),
|
|
839
|
+
onChange: I[4] || (I[4] = (Z) => X()),
|
|
840
|
+
onFocus: I[5] || (I[5] = (Z) => le(Z)),
|
|
841
|
+
onBlur: I[6] || (I[6] = (Z) => $e(Z))
|
|
840
842
|
}, null, 46, rn), [
|
|
841
843
|
[Et, p.value]
|
|
842
844
|
]),
|
|
843
|
-
|
|
845
|
+
C.type === "password" ? (m(), y("div", {
|
|
844
846
|
key: 2,
|
|
845
|
-
class:
|
|
846
|
-
onClick: I[7] || (I[7] = (
|
|
847
|
+
class: M(["show-password", C.layout || ((ie = we(s)) == null ? void 0 : ie.styles.layout)]),
|
|
848
|
+
onClick: I[7] || (I[7] = (Z) => r.value = !r.value)
|
|
847
849
|
}, [
|
|
848
|
-
U(
|
|
849
|
-
icon:
|
|
850
|
+
U(te, {
|
|
851
|
+
icon: r.value ? "eye-slash" : "eye"
|
|
850
852
|
}, null, 8, ["icon"])
|
|
851
|
-
], 2)) :
|
|
852
|
-
|
|
853
|
+
], 2)) : w("", !0),
|
|
854
|
+
C.iconRight && C.type !== "password" ? (m(), S(te, {
|
|
853
855
|
key: 3,
|
|
854
856
|
class: "ck-input__icon-right",
|
|
855
|
-
color:
|
|
856
|
-
icon:
|
|
857
|
-
"icon-pack":
|
|
858
|
-
}, null, 8, ["color", "icon", "icon-pack"])) :
|
|
859
|
-
|
|
857
|
+
color: C.iconColor ? C.iconColor : "lightgrey",
|
|
858
|
+
icon: C.iconRight,
|
|
859
|
+
"icon-pack": C.iconPack
|
|
860
|
+
}, null, 8, ["color", "icon", "icon-pack"])) : w("", !0),
|
|
861
|
+
C.plusMinusButtons ? (m(), S(ee, {
|
|
860
862
|
key: 4,
|
|
861
863
|
size: "s",
|
|
862
864
|
icon: "plus",
|
|
863
865
|
group: "right",
|
|
864
866
|
type: "filled",
|
|
865
|
-
class:
|
|
866
|
-
onClick: I[8] || (I[8] = (
|
|
867
|
-
}, null, 8, ["class"])) :
|
|
868
|
-
|
|
867
|
+
class: M(["ck-input-plus-minus-buttons", { "--small": C.size === "s" }]),
|
|
868
|
+
onClick: I[8] || (I[8] = (Z) => q())
|
|
869
|
+
}, null, 8, ["class"])) : w("", !0),
|
|
870
|
+
C.suffix ? (m(), y("span", {
|
|
869
871
|
key: 5,
|
|
870
|
-
class:
|
|
871
|
-
}, A(
|
|
872
|
+
class: M(["suffix", { "--plus-minus-btns": C.plusMinusButtons }])
|
|
873
|
+
}, A(C.suffix), 3)) : w("", !0)
|
|
872
874
|
])
|
|
873
875
|
], 4);
|
|
874
876
|
};
|
|
875
877
|
}
|
|
876
878
|
});
|
|
877
|
-
const Tt = /* @__PURE__ */ H(cn, [["__scopeId", "data-v-
|
|
879
|
+
const Tt = /* @__PURE__ */ H(cn, [["__scopeId", "data-v-cd3f4c82"]]), dn = {
|
|
878
880
|
key: 0,
|
|
879
881
|
class: "flex items-center"
|
|
880
882
|
}, pn = { key: 2 }, vn = /* @__PURE__ */ R({
|
|
881
883
|
__name: "ck-table__header-items",
|
|
882
|
-
props: /* @__PURE__ */
|
|
884
|
+
props: /* @__PURE__ */ oe({
|
|
883
885
|
hideRefreshBtn: { type: Boolean },
|
|
884
886
|
hideHeaderActions: { type: Boolean },
|
|
885
887
|
layout: {},
|
|
@@ -889,9 +891,9 @@ const Tt = /* @__PURE__ */ H(cn, [["__scopeId", "data-v-3213f007"]]), dn = {
|
|
|
889
891
|
modelValue: { required: !0 },
|
|
890
892
|
modelModifiers: {}
|
|
891
893
|
}),
|
|
892
|
-
emits: /* @__PURE__ */
|
|
894
|
+
emits: /* @__PURE__ */ oe(["refreshList"], ["update:modelValue"]),
|
|
893
895
|
setup(e, { emit: o }) {
|
|
894
|
-
const t = ge(e, "modelValue"), n = e, a = o, l = d(() => typeof t.value < "u"),
|
|
896
|
+
const t = ge(e, "modelValue"), n = e, a = o, l = d(() => typeof t.value < "u"), s = d(() => {
|
|
895
897
|
const p = [];
|
|
896
898
|
return n.layout && p.push(n.layout), n.version && p.push(`version--${n.version}`), p;
|
|
897
899
|
});
|
|
@@ -899,19 +901,19 @@ const Tt = /* @__PURE__ */ H(cn, [["__scopeId", "data-v-3213f007"]]), dn = {
|
|
|
899
901
|
n.isLoading || a("refreshList", !0);
|
|
900
902
|
}
|
|
901
903
|
function u(p) {
|
|
902
|
-
const
|
|
904
|
+
const r = p;
|
|
903
905
|
setTimeout(() => {
|
|
904
|
-
|
|
906
|
+
r === t.value && a("refreshList", !1);
|
|
905
907
|
}, 1e3);
|
|
906
908
|
}
|
|
907
|
-
return (p,
|
|
908
|
-
class:
|
|
909
|
+
return (p, r) => (m(), y("div", {
|
|
910
|
+
class: M(["ck-table__header-items", s.value])
|
|
909
911
|
}, [
|
|
910
912
|
p.$slots.headerActionsLeft ? (m(), y("div", dn, [
|
|
911
|
-
|
|
912
|
-
])) :
|
|
913
|
-
!p.hideHeaderActions && l.value ? (m(), y(
|
|
914
|
-
p.hideRefreshBtn ?
|
|
913
|
+
W(p.$slots, "headerActionsLeft", {}, void 0, !0)
|
|
914
|
+
])) : w("", !0),
|
|
915
|
+
!p.hideHeaderActions && l.value ? (m(), y(K, { key: 1 }, [
|
|
916
|
+
p.hideRefreshBtn ? w("", !0) : (m(), S(Te, {
|
|
915
917
|
key: 0,
|
|
916
918
|
class: "mr-1",
|
|
917
919
|
type: "flat",
|
|
@@ -920,22 +922,22 @@ const Tt = /* @__PURE__ */ H(cn, [["__scopeId", "data-v-3213f007"]]), dn = {
|
|
|
920
922
|
layout: "rounded",
|
|
921
923
|
icon: p.isLoading ? "spinner" : "rotate-right",
|
|
922
924
|
isLoading: !!p.isLoading,
|
|
923
|
-
onClick:
|
|
925
|
+
onClick: r[0] || (r[0] = (v) => c())
|
|
924
926
|
}, null, 8, ["icon", "isLoading"])),
|
|
925
927
|
U(Tt, {
|
|
926
928
|
modelValue: t.value,
|
|
927
|
-
"onUpdate:modelValue":
|
|
929
|
+
"onUpdate:modelValue": r[1] || (r[1] = (v) => t.value = v),
|
|
928
930
|
class: "ck-table--search-input",
|
|
929
931
|
layout: "rounded",
|
|
930
932
|
icon: "magnifying-glass",
|
|
931
933
|
placeholder: "Buscar...",
|
|
932
934
|
borderColor: p.version === "colored" ? "white" : "",
|
|
933
|
-
onInput:
|
|
935
|
+
onInput: r[2] || (r[2] = (v) => u(v))
|
|
934
936
|
}, null, 8, ["modelValue", "borderColor"])
|
|
935
|
-
], 64)) :
|
|
937
|
+
], 64)) : w("", !0),
|
|
936
938
|
p.$slots.headerActionsRight ? (m(), y("div", pn, [
|
|
937
|
-
|
|
938
|
-
])) :
|
|
939
|
+
W(p.$slots, "headerActionsRight", {}, void 0, !0)
|
|
940
|
+
])) : w("", !0)
|
|
939
941
|
], 2));
|
|
940
942
|
}
|
|
941
943
|
});
|
|
@@ -951,20 +953,20 @@ const mn = /* @__PURE__ */ H(vn, [["__scopeId", "data-v-187caf58"]]), fn = { cla
|
|
|
951
953
|
},
|
|
952
954
|
emits: ["refreshList", "update:currentPage"],
|
|
953
955
|
setup(e, { emit: o }) {
|
|
954
|
-
const t = e, n = o, { cleekOptions: a } = ae(
|
|
956
|
+
const t = e, n = o, { cleekOptions: a } = ae(ne()), l = d({
|
|
955
957
|
get() {
|
|
956
958
|
return t.currentPage;
|
|
957
959
|
},
|
|
958
960
|
set(k) {
|
|
959
961
|
n("update:currentPage", k);
|
|
960
962
|
}
|
|
961
|
-
}),
|
|
963
|
+
}), s = d({
|
|
962
964
|
get() {
|
|
963
965
|
return t.currentPage;
|
|
964
966
|
},
|
|
965
967
|
set() {
|
|
966
968
|
}
|
|
967
|
-
}), c = d(() => t.currentPage !== 1), u = d(() => !!
|
|
969
|
+
}), c = d(() => t.currentPage !== 1), u = d(() => !!r.value.length), p = d(() => {
|
|
968
970
|
if (!t.listLength)
|
|
969
971
|
return [];
|
|
970
972
|
const k = [], b = (dt - 1) / 2;
|
|
@@ -973,7 +975,7 @@ const mn = /* @__PURE__ */ H(vn, [["__scopeId", "data-v-187caf58"]]), fn = { cla
|
|
|
973
975
|
T > 0 && k.unshift(T);
|
|
974
976
|
}
|
|
975
977
|
return k;
|
|
976
|
-
}),
|
|
978
|
+
}), r = d(() => {
|
|
977
979
|
if (!t.listLength)
|
|
978
980
|
return [];
|
|
979
981
|
const k = [], b = (dt - 1) / 2;
|
|
@@ -988,8 +990,8 @@ const mn = /* @__PURE__ */ H(vn, [["__scopeId", "data-v-187caf58"]]), fn = { cla
|
|
|
988
990
|
const h = t.layout || a.value.styles.layout;
|
|
989
991
|
return h && k.push(h), k;
|
|
990
992
|
});
|
|
991
|
-
|
|
992
|
-
function
|
|
993
|
+
ce(() => l.value, () => n("refreshList"));
|
|
994
|
+
function i(k) {
|
|
993
995
|
let b = +k.value;
|
|
994
996
|
b > t.totalPages && (b = t.totalPages), b < 1 && (b = 1), t.currentPage === b ? k.value = `${b}` : l.value = b;
|
|
995
997
|
}
|
|
@@ -1000,44 +1002,44 @@ const mn = /* @__PURE__ */ H(vn, [["__scopeId", "data-v-187caf58"]]), fn = { cla
|
|
|
1000
1002
|
c.value && (l.value = t.currentPage - 1);
|
|
1001
1003
|
}
|
|
1002
1004
|
return (k, b) => (m(), y("div", {
|
|
1003
|
-
class:
|
|
1005
|
+
class: M(["ck-table__pagination-container", v.value])
|
|
1004
1006
|
}, [
|
|
1005
1007
|
$("div", fn, [
|
|
1006
1008
|
$("div", {
|
|
1007
|
-
class:
|
|
1009
|
+
class: M(["ck-table__pagination--arrow-left", { disabled: !c.value }]),
|
|
1008
1010
|
onClick: b[0] || (b[0] = (h) => f())
|
|
1009
1011
|
}, [
|
|
1010
|
-
U(
|
|
1012
|
+
U(te, {
|
|
1011
1013
|
icon: c.value ? "angle-left" : "grip-lines-vertical"
|
|
1012
1014
|
}, null, 8, ["icon"])
|
|
1013
1015
|
], 2),
|
|
1014
1016
|
$("div", hn, [
|
|
1015
|
-
(m(!0), y(
|
|
1017
|
+
(m(!0), y(K, null, re(p.value, (h) => (m(), y("div", {
|
|
1016
1018
|
class: "ck-table__pagination-item--left",
|
|
1017
1019
|
onClick: (T) => l.value = h
|
|
1018
1020
|
}, A(h), 9, gn))), 256)),
|
|
1019
1021
|
$("div", kn, [
|
|
1020
|
-
|
|
1021
|
-
"onUpdate:modelValue": b[1] || (b[1] = (h) =>
|
|
1022
|
+
ue($("input", {
|
|
1023
|
+
"onUpdate:modelValue": b[1] || (b[1] = (h) => s.value = h),
|
|
1022
1024
|
class: "ck-table__pagination-input",
|
|
1023
1025
|
type: "number",
|
|
1024
1026
|
onClick: b[2] || (b[2] = (h) => h.target.select()),
|
|
1025
|
-
onChange: b[3] || (b[3] = (h) =>
|
|
1027
|
+
onChange: b[3] || (b[3] = (h) => i(h.target))
|
|
1026
1028
|
}, null, 544), [
|
|
1027
|
-
[Fe,
|
|
1029
|
+
[Fe, s.value]
|
|
1028
1030
|
]),
|
|
1029
1031
|
b[5] || (b[5] = $("div", { class: "ck-table__pagination--input-pointer" }, null, -1))
|
|
1030
1032
|
]),
|
|
1031
|
-
(m(!0), y(
|
|
1033
|
+
(m(!0), y(K, null, re(r.value, (h) => (m(), y("div", {
|
|
1032
1034
|
class: "ck-table__pagination-item--right",
|
|
1033
1035
|
onClick: (T) => l.value = h
|
|
1034
1036
|
}, A(h), 9, yn))), 256))
|
|
1035
1037
|
]),
|
|
1036
1038
|
$("div", {
|
|
1037
|
-
class:
|
|
1039
|
+
class: M(["ck-table__pagination--arrow-right", { disabled: !u.value }]),
|
|
1038
1040
|
onClick: b[4] || (b[4] = (h) => g())
|
|
1039
1041
|
}, [
|
|
1040
|
-
U(
|
|
1042
|
+
U(te, {
|
|
1041
1043
|
icon: u.value ? "angle-right" : "grip-lines-vertical"
|
|
1042
1044
|
}, null, 8, ["icon"])
|
|
1043
1045
|
], 2)
|
|
@@ -1047,7 +1049,7 @@ const mn = /* @__PURE__ */ H(vn, [["__scopeId", "data-v-187caf58"]]), fn = { cla
|
|
|
1047
1049
|
});
|
|
1048
1050
|
const _n = /* @__PURE__ */ H(bn, [["__scopeId", "data-v-a399c4bf"]]), Cn = ["disabled", "checked"], wn = ["textContent"], $n = "m", Bn = /* @__PURE__ */ R({
|
|
1049
1051
|
__name: "ck-checkbox",
|
|
1050
|
-
props: /* @__PURE__ */
|
|
1052
|
+
props: /* @__PURE__ */ oe({
|
|
1051
1053
|
label: {},
|
|
1052
1054
|
disabled: { type: Boolean },
|
|
1053
1055
|
preventAutoUpdate: { type: Boolean },
|
|
@@ -1059,32 +1061,32 @@ const _n = /* @__PURE__ */ H(bn, [["__scopeId", "data-v-a399c4bf"]]), Cn = ["dis
|
|
|
1059
1061
|
modelValue: { type: [Boolean, null], required: !0 },
|
|
1060
1062
|
modelModifiers: {}
|
|
1061
1063
|
}),
|
|
1062
|
-
emits: /* @__PURE__ */
|
|
1064
|
+
emits: /* @__PURE__ */ oe(["change"], ["update:modelValue"]),
|
|
1063
1065
|
setup(e, { emit: o }) {
|
|
1064
1066
|
const t = ge(e, "modelValue"), n = e, a = o, l = d(() => ({
|
|
1065
1067
|
"aria-disabled": n.disabled,
|
|
1066
1068
|
tabindex: n.disabled ? void 0 : "0"
|
|
1067
|
-
})),
|
|
1068
|
-
const
|
|
1069
|
-
return n.size &&
|
|
1069
|
+
})), s = d(() => {
|
|
1070
|
+
const i = [];
|
|
1071
|
+
return n.size && i.push(`size__${n.size}`), i;
|
|
1070
1072
|
}), c = d(() => {
|
|
1071
|
-
const
|
|
1072
|
-
return n.color && D.isColorTemplateVariable(n.color) && (
|
|
1073
|
+
const i = [];
|
|
1074
|
+
return n.color && D.isColorTemplateVariable(n.color) && (i.push(`ck-component__border-color--${n.color}`), (t.value || t.value === null) && i.push(`ck-component__color-background--${n.color}`)), i;
|
|
1073
1075
|
}), u = d(() => {
|
|
1074
|
-
const
|
|
1075
|
-
return n.color && !D.isColorTemplateVariable(n.color) && (
|
|
1076
|
+
const i = [];
|
|
1077
|
+
return n.color && !D.isColorTemplateVariable(n.color) && (i.push({ borderColor: n.color }), (t.value || t.value === null) && i.push({ backgroundColor: n.color })), i;
|
|
1076
1078
|
}), p = d(() => {
|
|
1077
|
-
const
|
|
1078
|
-
return n.colorText && D.isColorTemplateVariable(n.colorText) &&
|
|
1079
|
-
}),
|
|
1080
|
-
const
|
|
1081
|
-
return n.colorText && !D.isColorTemplateVariable(n.colorText) &&
|
|
1079
|
+
const i = [];
|
|
1080
|
+
return n.colorText && D.isColorTemplateVariable(n.colorText) && i.push(`ck-component__color--${n.colorText}`), n.textSize && n.textSize !== $n && i.push(`ck-checkbox--label-text-size--${n.textSize}`), i;
|
|
1081
|
+
}), r = d(() => {
|
|
1082
|
+
const i = [];
|
|
1083
|
+
return n.colorText && !D.isColorTemplateVariable(n.colorText) && i.push({ color: n.colorText }), i;
|
|
1082
1084
|
});
|
|
1083
1085
|
function v() {
|
|
1084
1086
|
n.preventAutoUpdate || (t.value = !t.value);
|
|
1085
1087
|
}
|
|
1086
|
-
return (
|
|
1087
|
-
class: ["ck-checkbox",
|
|
1088
|
+
return (i, g) => (m(), y("label", Ie(l.value, {
|
|
1089
|
+
class: ["ck-checkbox", s.value],
|
|
1088
1090
|
onKeydown: g[4] || (g[4] = he(se(() => {
|
|
1089
1091
|
}, ["prevent"]), ["space"])),
|
|
1090
1092
|
onKeyup: [
|
|
@@ -1094,34 +1096,34 @@ const _n = /* @__PURE__ */ H(bn, [["__scopeId", "data-v-a399c4bf"]]), Cn = ["dis
|
|
|
1094
1096
|
onClick: g[7] || (g[7] = se((f) => v(), ["prevent"]))
|
|
1095
1097
|
}), [
|
|
1096
1098
|
$("input", {
|
|
1097
|
-
class:
|
|
1099
|
+
class: M(["ck-checkbox--input", { "ck-checkbox--input__intermediate": t.value === null }]),
|
|
1098
1100
|
"aria-hidden": "true",
|
|
1099
1101
|
type: "checkbox",
|
|
1100
|
-
disabled:
|
|
1102
|
+
disabled: i.disabled,
|
|
1101
1103
|
checked: t.value,
|
|
1102
1104
|
onChange: g[0] || (g[0] = (f) => a("change", f)),
|
|
1103
1105
|
onClick: g[1] || (g[1] = se(() => {
|
|
1104
1106
|
}, ["prevent"]))
|
|
1105
1107
|
}, null, 42, Cn),
|
|
1106
1108
|
$("div", {
|
|
1107
|
-
class:
|
|
1109
|
+
class: M(["ck-checkbox--element", c.value]),
|
|
1108
1110
|
style: F(u.value),
|
|
1109
1111
|
onClick: g[2] || (g[2] = se(() => {
|
|
1110
1112
|
}, ["prevent"]))
|
|
1111
1113
|
}, null, 6),
|
|
1112
|
-
|
|
1114
|
+
i.label || i.$slots.default ? (m(), y("span", {
|
|
1113
1115
|
key: 0,
|
|
1114
|
-
class:
|
|
1115
|
-
style: F(
|
|
1116
|
+
class: M(["ck-checkbox--label", p.value]),
|
|
1117
|
+
style: F(r.value),
|
|
1116
1118
|
onClick: g[3] || (g[3] = se(() => {
|
|
1117
1119
|
}, ["prevent"]))
|
|
1118
1120
|
}, [
|
|
1119
|
-
|
|
1121
|
+
i.label ? (m(), y("span", {
|
|
1120
1122
|
key: 0,
|
|
1121
|
-
textContent: A(
|
|
1122
|
-
}, null, 8, wn)) :
|
|
1123
|
-
|
|
1124
|
-
], 6)) :
|
|
1123
|
+
textContent: A(i.label)
|
|
1124
|
+
}, null, 8, wn)) : w("", !0),
|
|
1125
|
+
W(i.$slots, "default", {}, void 0, !0)
|
|
1126
|
+
], 6)) : w("", !0)
|
|
1125
1127
|
], 16));
|
|
1126
1128
|
}
|
|
1127
1129
|
});
|
|
@@ -1141,7 +1143,7 @@ const Tn = { class: "ck-popup" }, Pn = {
|
|
|
1141
1143
|
class: "ck-popup-slot-footer__confirm-buttons"
|
|
1142
1144
|
}, nt = /* @__PURE__ */ R({
|
|
1143
1145
|
__name: "ck-popup",
|
|
1144
|
-
props: /* @__PURE__ */
|
|
1146
|
+
props: /* @__PURE__ */ oe({
|
|
1145
1147
|
title: {},
|
|
1146
1148
|
confirmButtons: { type: Boolean },
|
|
1147
1149
|
acceptButton: { type: Boolean },
|
|
@@ -1167,16 +1169,16 @@ const Tn = { class: "ck-popup" }, Pn = {
|
|
|
1167
1169
|
modelValue: { type: Boolean, required: !0 },
|
|
1168
1170
|
modelModifiers: {}
|
|
1169
1171
|
}),
|
|
1170
|
-
emits: /* @__PURE__ */
|
|
1172
|
+
emits: /* @__PURE__ */ oe(["accept", "cancel", "close"], ["update:modelValue"]),
|
|
1171
1173
|
setup(e, { emit: o }) {
|
|
1172
|
-
const t = ge(e, "modelValue"), n = e, a = o, { cleekOptions: l } = ae(
|
|
1173
|
-
const B = [],
|
|
1174
|
-
|
|
1174
|
+
const t = ge(e, "modelValue"), n = e, a = o, { cleekOptions: l } = ae(ne()), s = d(() => {
|
|
1175
|
+
const B = [], L = n.layout || l.value.styles.layout;
|
|
1176
|
+
L && B.push(L);
|
|
1175
1177
|
const j = n.textColor || l.value.popup.textColor;
|
|
1176
1178
|
return j && D.isColorTemplateVariable(j) && B.push(`ck-component__color--${j}`), B;
|
|
1177
1179
|
}), c = d(() => {
|
|
1178
|
-
const B = [],
|
|
1179
|
-
|
|
1180
|
+
const B = [], L = n.fontSize || l.value.popup.fontSize;
|
|
1181
|
+
L && B.push({ "font-size": L }), n.width && B.push({ width: n.width });
|
|
1180
1182
|
const j = n.width ? "95%" : n.maxWidth || l.value.popup.maxWidth;
|
|
1181
1183
|
j && B.push({ "max-width": j });
|
|
1182
1184
|
const X = n.textColor || l.value.popup.textColor;
|
|
@@ -1185,21 +1187,21 @@ const Tn = { class: "ck-popup" }, Pn = {
|
|
|
1185
1187
|
return l.value.popup.backgroundColor && (le = l.value.popup.backgroundColor), l.value.darkMode && (le = l.value.darkModeColorItems), n.backgroundColor && (le = n.backgroundColor), le && !D.isColorTemplateVariable(le) && B.push({ backgroundColor: le }), B;
|
|
1186
1188
|
}), u = d(() => {
|
|
1187
1189
|
const B = [];
|
|
1188
|
-
let
|
|
1189
|
-
l.value.popup.headerColor && (
|
|
1190
|
+
let L = "";
|
|
1191
|
+
l.value.popup.headerColor && (L = l.value.popup.headerColor), l.value.darkMode && (L = l.value.darkModeColorItems), n.headerColor && (L = n.headerColor), L && !D.isColorTemplateVariable(L) && B.push({ backgroundColor: L });
|
|
1190
1192
|
let j = n.textColor || l.value.popup.textColor;
|
|
1191
1193
|
return l.value.darkMode && (j = l.value.darkModeColorText), j && !D.isColorTemplateVariable(j) && (B.push(`ck-component__color--${j}`), B.push({ color: j })), B;
|
|
1192
1194
|
}), p = d(() => {
|
|
1193
1195
|
const B = [];
|
|
1194
|
-
let
|
|
1195
|
-
return l.value.popup.backgroundColor && (
|
|
1196
|
-
}),
|
|
1197
|
-
const B = [],
|
|
1198
|
-
|
|
1196
|
+
let L = "";
|
|
1197
|
+
return l.value.popup.backgroundColor && (L = l.value.popup.backgroundColor), l.value.darkMode && (L = l.value.darkModeColorItems), n.backgroundColor && (L = n.backgroundColor), L && !D.isColorTemplateVariable(L) && B.push({ backgroundColor: L }), B;
|
|
1198
|
+
}), r = d(() => {
|
|
1199
|
+
const B = [], L = n.headerAlign || l.value.popup.headerAlign;
|
|
1200
|
+
L && B.push(`header-align--${L}`);
|
|
1199
1201
|
const j = n.headerColor || l.value.popup.headerColor;
|
|
1200
1202
|
return j && D.isColorTemplateVariable(j) && B.push(`ck-component__bg-color--${j}`), g.value || B.push("close-btn-hidden"), B;
|
|
1201
|
-
}), v = d(() => n.acceptBtnType ? n.acceptBtnType : l.value.popup.acceptBtnType ? l.value.popup.acceptBtnType : "outlined"),
|
|
1202
|
-
|
|
1203
|
+
}), v = d(() => n.acceptBtnType ? n.acceptBtnType : l.value.popup.acceptBtnType ? l.value.popup.acceptBtnType : "outlined"), i = d(() => n.cancelBtnType ? n.cancelBtnType : l.value.popup.cancelBtnType ? l.value.popup.cancelBtnType : "flat"), g = d(() => !(n.notCloseBtn || n.notClose)), f = d(() => n.acceptBtnText ? n.acceptBtnText : l.value.lang === "es" ? "Aceptar" : "Accept"), k = d(() => n.cancelBtnText ? n.cancelBtnText : l.value.lang === "es" ? "Cancelar" : "Cancel");
|
|
1204
|
+
ce(() => t.value, (B) => Vt(!B));
|
|
1203
1205
|
function b() {
|
|
1204
1206
|
t.value = !1, a("close");
|
|
1205
1207
|
}
|
|
@@ -1209,84 +1211,84 @@ const Tn = { class: "ck-popup" }, Pn = {
|
|
|
1209
1211
|
function T() {
|
|
1210
1212
|
a("accept");
|
|
1211
1213
|
}
|
|
1212
|
-
function
|
|
1214
|
+
function O() {
|
|
1213
1215
|
n.notCloseByBg || n.notClose || b();
|
|
1214
1216
|
}
|
|
1215
1217
|
function P(B) {
|
|
1216
|
-
t.value && (B.key === "Escape" &&
|
|
1218
|
+
t.value && (B.key === "Escape" && O(), B.key === "Enter" && B.shiftKey && T());
|
|
1217
1219
|
}
|
|
1218
1220
|
return _e(() => {
|
|
1219
1221
|
window.addEventListener("keydown", P);
|
|
1220
1222
|
}), ot(() => {
|
|
1221
1223
|
window.removeEventListener("keydown", P);
|
|
1222
|
-
}), (B,
|
|
1224
|
+
}), (B, L) => t.value ? (m(), S(Ae, {
|
|
1223
1225
|
key: 0,
|
|
1224
1226
|
to: "body"
|
|
1225
1227
|
}, [
|
|
1226
1228
|
$("div", Tn, [
|
|
1227
|
-
|
|
1229
|
+
L[5] || (L[5] = $("div", { class: "blackout" }, null, -1)),
|
|
1228
1230
|
$("div", {
|
|
1229
1231
|
class: "popup-container",
|
|
1230
|
-
onMousedown:
|
|
1232
|
+
onMousedown: L[4] || (L[4] = (j) => O())
|
|
1231
1233
|
}, [
|
|
1232
1234
|
$("div", {
|
|
1233
|
-
class:
|
|
1235
|
+
class: M(["ck-popup__content", s.value]),
|
|
1234
1236
|
style: F(c.value),
|
|
1235
|
-
onMousedown:
|
|
1237
|
+
onMousedown: L[3] || (L[3] = se(() => {
|
|
1236
1238
|
}, ["stop"]))
|
|
1237
1239
|
}, [
|
|
1238
1240
|
$("div", {
|
|
1239
|
-
class:
|
|
1241
|
+
class: M(["ck-popup__slot-header", r.value]),
|
|
1240
1242
|
style: F(u.value)
|
|
1241
1243
|
}, [
|
|
1242
|
-
B.title ? (m(), y("h3", Pn, A(B.title), 1)) :
|
|
1243
|
-
|
|
1244
|
-
g.value ? (m(),
|
|
1244
|
+
B.title ? (m(), y("h3", Pn, A(B.title), 1)) : w("", !0),
|
|
1245
|
+
W(B.$slots, "header"),
|
|
1246
|
+
g.value ? (m(), S(te, {
|
|
1245
1247
|
key: 1,
|
|
1246
1248
|
class: "icon-close",
|
|
1247
1249
|
icon: "times",
|
|
1248
|
-
onClick:
|
|
1249
|
-
})) :
|
|
1250
|
+
onClick: L[0] || (L[0] = (j) => b())
|
|
1251
|
+
})) : w("", !0)
|
|
1250
1252
|
], 6),
|
|
1251
1253
|
$("div", {
|
|
1252
1254
|
class: "ck-popup__slot-body",
|
|
1253
1255
|
style: F(p.value)
|
|
1254
1256
|
}, [
|
|
1255
|
-
|
|
1257
|
+
W(B.$slots, "default")
|
|
1256
1258
|
], 4),
|
|
1257
1259
|
B.$slots.footer || B.confirmButtons || B.acceptButton || B.cancelButton ? (m(), y("div", Vn, [
|
|
1258
1260
|
$("div", Dn, [
|
|
1259
|
-
|
|
1261
|
+
W(B.$slots, "footer")
|
|
1260
1262
|
]),
|
|
1261
1263
|
B.confirmButtons || B.acceptButton || B.cancelButton ? (m(), y("div", Ln, [
|
|
1262
|
-
B.confirmButtons || B.cancelButton ? (m(),
|
|
1264
|
+
B.confirmButtons || B.cancelButton ? (m(), S(Te, {
|
|
1263
1265
|
key: 0,
|
|
1264
1266
|
color: "danger",
|
|
1265
|
-
type:
|
|
1266
|
-
onClick:
|
|
1267
|
+
type: i.value,
|
|
1268
|
+
onClick: L[1] || (L[1] = (j) => h())
|
|
1267
1269
|
}, {
|
|
1268
1270
|
default: N(() => [
|
|
1269
1271
|
G(A(k.value), 1)
|
|
1270
1272
|
]),
|
|
1271
1273
|
_: 1
|
|
1272
|
-
}, 8, ["type"])) :
|
|
1273
|
-
B.confirmButtons || B.acceptButton ? (m(),
|
|
1274
|
+
}, 8, ["type"])) : w("", !0),
|
|
1275
|
+
B.confirmButtons || B.acceptButton ? (m(), S(Te, {
|
|
1274
1276
|
key: 1,
|
|
1275
1277
|
type: v.value,
|
|
1276
1278
|
isLoading: B.isLoading,
|
|
1277
|
-
onClick:
|
|
1279
|
+
onClick: L[2] || (L[2] = (j) => T())
|
|
1278
1280
|
}, {
|
|
1279
1281
|
default: N(() => [
|
|
1280
1282
|
G(A(f.value), 1)
|
|
1281
1283
|
]),
|
|
1282
1284
|
_: 1
|
|
1283
|
-
}, 8, ["type", "isLoading"])) :
|
|
1284
|
-
])) :
|
|
1285
|
-
])) :
|
|
1285
|
+
}, 8, ["type", "isLoading"])) : w("", !0)
|
|
1286
|
+
])) : w("", !0)
|
|
1287
|
+
])) : w("", !0)
|
|
1286
1288
|
], 38)
|
|
1287
1289
|
], 32)
|
|
1288
1290
|
])
|
|
1289
|
-
])) :
|
|
1291
|
+
])) : w("", !0);
|
|
1290
1292
|
}
|
|
1291
1293
|
});
|
|
1292
1294
|
const Sn = { class: "columns-manger-container" }, Mn = /* @__PURE__ */ R({
|
|
@@ -1308,12 +1310,12 @@ const Sn = { class: "columns-manger-container" }, Mn = /* @__PURE__ */ R({
|
|
|
1308
1310
|
n("update:modelValue", u);
|
|
1309
1311
|
}
|
|
1310
1312
|
});
|
|
1311
|
-
|
|
1312
|
-
u &&
|
|
1313
|
-
}),
|
|
1314
|
-
u &&
|
|
1313
|
+
ce(() => l.value, (u) => {
|
|
1314
|
+
u && s();
|
|
1315
|
+
}), ce(() => l.value, (u) => {
|
|
1316
|
+
u && s();
|
|
1315
1317
|
});
|
|
1316
|
-
function
|
|
1318
|
+
function s() {
|
|
1317
1319
|
const u = [];
|
|
1318
1320
|
(t.columnsArray || []).forEach((p) => {
|
|
1319
1321
|
p.unchangeable || u.push({
|
|
@@ -1326,24 +1328,24 @@ const Sn = { class: "columns-manger-container" }, Mn = /* @__PURE__ */ R({
|
|
|
1326
1328
|
function c(u, p) {
|
|
1327
1329
|
t.columns[u].isDisplayed = p;
|
|
1328
1330
|
}
|
|
1329
|
-
return (u, p) => (m(),
|
|
1331
|
+
return (u, p) => (m(), S(nt, {
|
|
1330
1332
|
modelValue: l.value,
|
|
1331
|
-
"onUpdate:modelValue": p[0] || (p[0] = (
|
|
1333
|
+
"onUpdate:modelValue": p[0] || (p[0] = (r) => l.value = r),
|
|
1332
1334
|
title: "Administrador de columnas"
|
|
1333
1335
|
}, {
|
|
1334
1336
|
default: N(() => [
|
|
1335
1337
|
$("div", Sn, [
|
|
1336
|
-
(m(!0), y(
|
|
1338
|
+
(m(!0), y(K, null, re(we(a), (r, v) => (m(), y("div", {
|
|
1337
1339
|
class: "columns-manger__item",
|
|
1338
1340
|
key: v
|
|
1339
1341
|
}, [
|
|
1340
1342
|
U(Pt, {
|
|
1341
|
-
modelValue:
|
|
1342
|
-
"onUpdate:modelValue": (
|
|
1343
|
-
onClick: (
|
|
1343
|
+
modelValue: r.value,
|
|
1344
|
+
"onUpdate:modelValue": (i) => r.value = i,
|
|
1345
|
+
onClick: (i) => c(r.name, r.value)
|
|
1344
1346
|
}, {
|
|
1345
1347
|
default: N(() => [
|
|
1346
|
-
G(A(
|
|
1348
|
+
G(A(r.title), 1)
|
|
1347
1349
|
]),
|
|
1348
1350
|
_: 2
|
|
1349
1351
|
}, 1032, ["modelValue", "onUpdate:modelValue", "onClick"])
|
|
@@ -1363,10 +1365,10 @@ const xn = /* @__PURE__ */ H(Mn, [["__scopeId", "data-v-3f119c7c"]]), An = /* @_
|
|
|
1363
1365
|
noResultsText: {}
|
|
1364
1366
|
},
|
|
1365
1367
|
setup(e) {
|
|
1366
|
-
const o = e, { cleekOptions: t } = ae(
|
|
1367
|
-
return (
|
|
1368
|
-
const u = Y("ck-icon"), p = Y("ck-td"),
|
|
1369
|
-
return n.value ? (m(),
|
|
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..."), l = d(() => o.noResultsText ? o.noResultsText : t.value.lang === "es" ? "No se encontraron resultados" : "No results found");
|
|
1369
|
+
return (s, c) => {
|
|
1370
|
+
const u = Y("ck-icon"), p = Y("ck-td"), r = Y("ck-tr");
|
|
1371
|
+
return n.value ? (m(), S(r, { key: 0 }, {
|
|
1370
1372
|
default: N(() => [
|
|
1371
1373
|
U(p, {
|
|
1372
1374
|
class: "no-result-text",
|
|
@@ -1374,22 +1376,22 @@ const xn = /* @__PURE__ */ H(Mn, [["__scopeId", "data-v-3f119c7c"]]), An = /* @_
|
|
|
1374
1376
|
align: "center"
|
|
1375
1377
|
}, {
|
|
1376
1378
|
default: N(() => [
|
|
1377
|
-
|
|
1379
|
+
s.isLoading ? (m(), y(K, { key: 0 }, [
|
|
1378
1380
|
U(u, {
|
|
1379
1381
|
class: "mr-2",
|
|
1380
1382
|
icon: "spinner",
|
|
1381
1383
|
spin: ""
|
|
1382
1384
|
}),
|
|
1383
1385
|
G(" " + A(a.value), 1)
|
|
1384
|
-
], 64)) : n.value ? (m(), y(
|
|
1386
|
+
], 64)) : n.value ? (m(), y(K, { key: 1 }, [
|
|
1385
1387
|
G(A(l.value), 1)
|
|
1386
|
-
], 64)) :
|
|
1388
|
+
], 64)) : w("", !0)
|
|
1387
1389
|
]),
|
|
1388
1390
|
_: 1
|
|
1389
1391
|
})
|
|
1390
1392
|
]),
|
|
1391
1393
|
_: 1
|
|
1392
|
-
})) :
|
|
1394
|
+
})) : w("", !0);
|
|
1393
1395
|
};
|
|
1394
1396
|
}
|
|
1395
1397
|
});
|
|
@@ -1410,7 +1412,7 @@ const pt = /* @__PURE__ */ H(An, [["__scopeId", "data-v-0731cbef"]]), In = { cla
|
|
|
1410
1412
|
class: "ck-table--mobile-container"
|
|
1411
1413
|
}, De = "id", qn = /* @__PURE__ */ R({
|
|
1412
1414
|
__name: "ck-table",
|
|
1413
|
-
props: /* @__PURE__ */
|
|
1415
|
+
props: /* @__PURE__ */ oe({
|
|
1414
1416
|
rows: {},
|
|
1415
1417
|
columns: {},
|
|
1416
1418
|
hasColumnsManager: { type: Boolean },
|
|
@@ -1440,11 +1442,11 @@ const pt = /* @__PURE__ */ H(An, [["__scopeId", "data-v-0731cbef"]]), In = { cla
|
|
|
1440
1442
|
selectedRows: {},
|
|
1441
1443
|
selectedRowsModifiers: {}
|
|
1442
1444
|
}),
|
|
1443
|
-
emits: /* @__PURE__ */
|
|
1445
|
+
emits: /* @__PURE__ */ oe(["refreshList", "update:search", "update:currentPage"], ["update:selectedRows"]),
|
|
1444
1446
|
setup(e, { emit: o }) {
|
|
1445
|
-
const t = ge(e, "selectedRows"), n = e, a = o, { cleekOptions: l } = ae(
|
|
1447
|
+
const t = ge(e, "selectedRows"), n = e, a = o, { cleekOptions: l } = ae(ne()), { windowWidth: s } = ke(), c = x({
|
|
1446
1448
|
columnsManager: !1
|
|
1447
|
-
}), u = d(() => !!t.value), p = d(() => typeof n.darkMode < "u" ? n.darkMode : l.value.darkMode),
|
|
1449
|
+
}), u = d(() => !!t.value), p = d(() => typeof n.darkMode < "u" ? n.darkMode : l.value.darkMode), r = d(() => Math.ceil(n.listLength / n.itemsPerPage)), v = d(() => n.version ? n.version : l.value ? l.value.table.version : "default"), i = d(() => {
|
|
1448
1450
|
if (n.headerTextColor)
|
|
1449
1451
|
return n.headerTextColor;
|
|
1450
1452
|
if (l.value) {
|
|
@@ -1460,10 +1462,10 @@ const pt = /* @__PURE__ */ H(An, [["__scopeId", "data-v-0731cbef"]]), In = { cla
|
|
|
1460
1462
|
return l.value.table.headerBackgroundColor;
|
|
1461
1463
|
}), f = d(() => !h.value[h.value.length - 1].title), k = d(() => !eo.isArray(n.columns || [])), b = d(() => {
|
|
1462
1464
|
if (k.value) {
|
|
1463
|
-
const q = Object.values(n.columns || []),
|
|
1464
|
-
return q.forEach((
|
|
1465
|
-
const
|
|
1466
|
-
|
|
1465
|
+
const q = Object.values(n.columns || []), de = Object.keys(n.columns || []);
|
|
1466
|
+
return q.forEach((me, C) => {
|
|
1467
|
+
const I = de[C];
|
|
1468
|
+
me.name = I;
|
|
1467
1469
|
}), q;
|
|
1468
1470
|
}
|
|
1469
1471
|
const V = [];
|
|
@@ -1478,24 +1480,24 @@ const pt = /* @__PURE__ */ H(An, [["__scopeId", "data-v-0731cbef"]]), In = { cla
|
|
|
1478
1480
|
set(V) {
|
|
1479
1481
|
a("update:search", V);
|
|
1480
1482
|
}
|
|
1481
|
-
}),
|
|
1483
|
+
}), O = d({
|
|
1482
1484
|
get() {
|
|
1483
1485
|
return n.currentPage || 0;
|
|
1484
1486
|
},
|
|
1485
1487
|
set(V) {
|
|
1486
1488
|
a("update:currentPage", V);
|
|
1487
1489
|
}
|
|
1488
|
-
}), P = d(() => n.layout || l.value.styles.layout), B = d(() =>
|
|
1489
|
-
function
|
|
1490
|
+
}), P = d(() => n.layout || l.value.styles.layout), B = d(() => s.value <= (+n.mobileMaxWidth || 0));
|
|
1491
|
+
function L(V = !1) {
|
|
1490
1492
|
a("refreshList", V);
|
|
1491
1493
|
}
|
|
1492
1494
|
function j() {
|
|
1493
1495
|
k.value ? c.value.columnsManager = !0 : console.log("ERROR ck-table", "The columns list should be an object");
|
|
1494
1496
|
}
|
|
1495
1497
|
const X = d(() => {
|
|
1496
|
-
var
|
|
1498
|
+
var de;
|
|
1497
1499
|
const V = [];
|
|
1498
|
-
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 || ((
|
|
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 = l.value.table) == null ? void 0 : de.striped)) && V.push("striped-table"), V;
|
|
1499
1501
|
}), le = d(() => {
|
|
1500
1502
|
const V = n.rows.map((q) => q[De]);
|
|
1501
1503
|
if (t.value.areAllRowsSelecteds(V))
|
|
@@ -1508,63 +1510,63 @@ const pt = /* @__PURE__ */ H(An, [["__scopeId", "data-v-0731cbef"]]), In = { cla
|
|
|
1508
1510
|
le.value ? t.value.removeManyRows(V) : t.value.addManyRows(V);
|
|
1509
1511
|
}
|
|
1510
1512
|
return (V, q) => {
|
|
1511
|
-
var
|
|
1512
|
-
const
|
|
1513
|
-
return m(), y(
|
|
1514
|
-
V.hasColumnsManager && k.value ? (m(),
|
|
1513
|
+
var ee, ie, Z, Ce;
|
|
1514
|
+
const de = Y("ck-checkbox"), me = Y("ck-chip"), C = Y("ck-button"), I = Y("ck-th");
|
|
1515
|
+
return m(), y(K, null, [
|
|
1516
|
+
V.hasColumnsManager && k.value ? (m(), S(xn, {
|
|
1515
1517
|
key: 0,
|
|
1516
1518
|
modelValue: c.value.columnsManager,
|
|
1517
|
-
"onUpdate:modelValue": q[0] || (q[0] = (
|
|
1519
|
+
"onUpdate:modelValue": q[0] || (q[0] = (Q) => c.value.columnsManager = Q),
|
|
1518
1520
|
isLoading: V.isLoading,
|
|
1519
1521
|
columnsArray: b.value,
|
|
1520
1522
|
columns: V.columns || []
|
|
1521
|
-
}, null, 8, ["modelValue", "isLoading", "columnsArray", "columns"])) :
|
|
1523
|
+
}, null, 8, ["modelValue", "isLoading", "columnsArray", "columns"])) : w("", !0),
|
|
1522
1524
|
$("div", In, [
|
|
1523
1525
|
V.$slots.header || !V.hideHeaderActions ? (m(), y("div", zn, [
|
|
1524
1526
|
U(mn, {
|
|
1525
1527
|
modelValue: T.value,
|
|
1526
|
-
"onUpdate:modelValue": q[1] || (q[1] = (
|
|
1528
|
+
"onUpdate:modelValue": q[1] || (q[1] = (Q) => T.value = Q),
|
|
1527
1529
|
hideHeaderActions: V.hideHeaderActions,
|
|
1528
1530
|
hideRefreshBtn: V.hideRefreshBtn,
|
|
1529
1531
|
layout: P.value,
|
|
1530
1532
|
version: v.value,
|
|
1531
1533
|
isLoading: V.isLoading,
|
|
1532
|
-
onRefreshList: q[2] || (q[2] = (
|
|
1534
|
+
onRefreshList: q[2] || (q[2] = (Q) => L(Q))
|
|
1533
1535
|
}, {
|
|
1534
1536
|
headerActionsLeft: N(() => [
|
|
1535
|
-
|
|
1537
|
+
W(V.$slots, "headerActionsLeft", {}, void 0, !0)
|
|
1536
1538
|
]),
|
|
1537
1539
|
headerActionsRight: N(() => [
|
|
1538
|
-
|
|
1540
|
+
W(V.$slots, "headerActionsRight", {}, void 0, !0)
|
|
1539
1541
|
]),
|
|
1540
1542
|
_: 3
|
|
1541
1543
|
}, 8, ["modelValue", "hideHeaderActions", "hideRefreshBtn", "layout", "version", "isLoading"]),
|
|
1542
1544
|
V.$slots.header ? (m(), y("div", {
|
|
1543
1545
|
key: 0,
|
|
1544
|
-
class:
|
|
1546
|
+
class: M(["ck-table__header--slot", { "full-width": V.hideHeaderActions }])
|
|
1545
1547
|
}, [
|
|
1546
|
-
|
|
1547
|
-
], 2)) :
|
|
1548
|
-
])) :
|
|
1548
|
+
W(V.$slots, "header", {}, void 0, !0)
|
|
1549
|
+
], 2)) : w("", !0)
|
|
1550
|
+
])) : w("", !0),
|
|
1549
1551
|
V.$slots.headerBottom ? (m(), y("div", Rn, [
|
|
1550
|
-
|
|
1551
|
-
])) :
|
|
1552
|
+
W(V.$slots, "headerBottom", {}, void 0, !0)
|
|
1553
|
+
])) : w("", !0),
|
|
1552
1554
|
u.value || h.value.length && !(V.$slots.mobile && B.value) ? (m(), y("div", Wn, [
|
|
1553
|
-
(ie = (
|
|
1555
|
+
(ie = (ee = t.value) == null ? void 0 : ee.ids) != null && ie.size ? (m(), y("div", On, [
|
|
1554
1556
|
$("div", En, [
|
|
1555
|
-
U(
|
|
1557
|
+
U(de, {
|
|
1556
1558
|
class: "main-checkbox",
|
|
1557
1559
|
usesThirdState: "",
|
|
1558
1560
|
size: "xs",
|
|
1559
1561
|
color: "#BABDBF",
|
|
1560
1562
|
modelValue: le.value,
|
|
1561
|
-
onClick: q[3] || (q[3] = (
|
|
1563
|
+
onClick: q[3] || (q[3] = (Q) => $e())
|
|
1562
1564
|
}, null, 8, ["modelValue"]),
|
|
1563
|
-
U(
|
|
1565
|
+
U(me, {
|
|
1564
1566
|
class: "nowrap cursor-pointer",
|
|
1565
1567
|
size: "s",
|
|
1566
1568
|
iconRight: "times",
|
|
1567
|
-
onClick: q[4] || (q[4] = (
|
|
1569
|
+
onClick: q[4] || (q[4] = (Q) => t.value.removeAll())
|
|
1568
1570
|
}, {
|
|
1569
1571
|
default: N(() => [
|
|
1570
1572
|
G(A(t.value.ids.size) + " seleccionado" + A(t.value.ids.size === 1 ? "" : "s"), 1)
|
|
@@ -1572,8 +1574,8 @@ const pt = /* @__PURE__ */ H(An, [["__scopeId", "data-v-0731cbef"]]), In = { cla
|
|
|
1572
1574
|
_: 1
|
|
1573
1575
|
})
|
|
1574
1576
|
]),
|
|
1575
|
-
|
|
1576
|
-
V.currentPage &&
|
|
1577
|
+
W(V.$slots, "selectedRowsActions", {}, void 0, !0),
|
|
1578
|
+
V.currentPage && r.value > 1 ? (m(), S(C, {
|
|
1577
1579
|
key: 0,
|
|
1578
1580
|
size: "s",
|
|
1579
1581
|
color: "dark"
|
|
@@ -1582,36 +1584,36 @@ const pt = /* @__PURE__ */ H(An, [["__scopeId", "data-v-0731cbef"]]), In = { cla
|
|
|
1582
1584
|
G(" seleccionar todas las páginas ")
|
|
1583
1585
|
])),
|
|
1584
1586
|
_: 1
|
|
1585
|
-
})) :
|
|
1586
|
-
])) :
|
|
1587
|
-
])) :
|
|
1588
|
-
B.value ?
|
|
1587
|
+
})) : w("", !0)
|
|
1588
|
+
])) : w("", !0)
|
|
1589
|
+
])) : w("", !0),
|
|
1590
|
+
B.value ? w("", !0) : (m(), y("div", {
|
|
1589
1591
|
key: 3,
|
|
1590
|
-
class:
|
|
1592
|
+
class: M(["ck-table__table-container", { "not-overflow": V.notOverflow }])
|
|
1591
1593
|
}, [
|
|
1592
1594
|
$("table", {
|
|
1593
|
-
class:
|
|
1595
|
+
class: M(["ck-table__table", X.value])
|
|
1594
1596
|
}, [
|
|
1595
|
-
(Ce = (
|
|
1597
|
+
(Ce = (Z = t.value) == null ? void 0 : Z.ids) != null && Ce.size ? w("", !0) : (m(), y("thead", Nn, [
|
|
1596
1598
|
$("tr", null, [
|
|
1597
1599
|
u.value ? (m(), y("th", Fn, [
|
|
1598
|
-
U(
|
|
1600
|
+
U(de, {
|
|
1599
1601
|
class: "main-checkbox",
|
|
1600
1602
|
usesThirdState: "",
|
|
1601
1603
|
size: "xs",
|
|
1602
1604
|
color: "#BABDBF",
|
|
1603
1605
|
modelValue: le.value,
|
|
1604
|
-
onClick: q[5] || (q[5] = (
|
|
1606
|
+
onClick: q[5] || (q[5] = (Q) => $e())
|
|
1605
1607
|
}, null, 8, ["modelValue"])
|
|
1606
|
-
])) :
|
|
1607
|
-
(m(!0), y(
|
|
1608
|
-
align:
|
|
1609
|
-
"min-width":
|
|
1610
|
-
textColor:
|
|
1608
|
+
])) : w("", !0),
|
|
1609
|
+
(m(!0), y(K, null, re(h.value, (Q, Be) => (m(), S(I, {
|
|
1610
|
+
align: Q.align,
|
|
1611
|
+
"min-width": Q.minWidth,
|
|
1612
|
+
textColor: i.value,
|
|
1611
1613
|
backgroundColor: g.value
|
|
1612
1614
|
}, {
|
|
1613
1615
|
default: N(() => [
|
|
1614
|
-
G(A(
|
|
1616
|
+
G(A(Q.title) + " ", 1),
|
|
1615
1617
|
Be === h.value.length - 1 && V.hasColumnsManager ? (m(), y("div", {
|
|
1616
1618
|
key: 0,
|
|
1617
1619
|
style: F(f.value ? "" : { "margin-left": "auto", "padding-left": "1rem" })
|
|
@@ -1620,35 +1622,35 @@ const pt = /* @__PURE__ */ H(An, [["__scopeId", "data-v-0731cbef"]]), In = { cla
|
|
|
1620
1622
|
layout: V.layout,
|
|
1621
1623
|
onClick: q[6] || (q[6] = (He) => j())
|
|
1622
1624
|
}, null, 8, ["layout"])
|
|
1623
|
-
], 4)) :
|
|
1625
|
+
], 4)) : w("", !0)
|
|
1624
1626
|
]),
|
|
1625
1627
|
_: 2
|
|
1626
1628
|
}, 1032, ["align", "min-width", "textColor", "backgroundColor"]))), 256))
|
|
1627
1629
|
])
|
|
1628
1630
|
])),
|
|
1629
1631
|
$("tbody", null, [
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
(m(!0), y(
|
|
1633
|
-
key:
|
|
1632
|
+
W(V.$slots, "default", {}, void 0, !0),
|
|
1633
|
+
W(V.$slots, "desktop", {}, void 0, !0),
|
|
1634
|
+
(m(!0), y(K, null, re(V.rows, (Q, Be) => (m(), S($t, {
|
|
1635
|
+
key: Q[De]
|
|
1634
1636
|
}, {
|
|
1635
1637
|
default: N(() => [
|
|
1636
|
-
u.value ? (m(),
|
|
1638
|
+
u.value ? (m(), S(Bt, {
|
|
1637
1639
|
key: 0,
|
|
1638
1640
|
autoWidth: ""
|
|
1639
1641
|
}, {
|
|
1640
1642
|
default: N(() => [
|
|
1641
|
-
U(
|
|
1643
|
+
U(de, {
|
|
1642
1644
|
size: "xs",
|
|
1643
1645
|
color: "#BABDBF",
|
|
1644
|
-
modelValue: t.value.isRowSelected(
|
|
1645
|
-
onClick: (He) => t.value.switchValue(
|
|
1646
|
+
modelValue: t.value.isRowSelected(Q[De]),
|
|
1647
|
+
onClick: (He) => t.value.switchValue(Q[De])
|
|
1646
1648
|
}, null, 8, ["modelValue", "onClick"])
|
|
1647
1649
|
]),
|
|
1648
1650
|
_: 2
|
|
1649
|
-
}, 1024)) :
|
|
1650
|
-
|
|
1651
|
-
row:
|
|
1651
|
+
}, 1024)) : w("", !0),
|
|
1652
|
+
W(V.$slots, "row", {
|
|
1653
|
+
row: Q,
|
|
1652
1654
|
rowIndex: Be
|
|
1653
1655
|
}, void 0, !0)
|
|
1654
1656
|
]),
|
|
@@ -1662,43 +1664,43 @@ const pt = /* @__PURE__ */ H(An, [["__scopeId", "data-v-0731cbef"]]), In = { cla
|
|
|
1662
1664
|
}, null, 8, ["listLength", "isLoading", "loadingText", "noResultsText"])
|
|
1663
1665
|
]),
|
|
1664
1666
|
V.$slots.footer ? (m(), y("tfoot", jn, [
|
|
1665
|
-
|
|
1666
|
-
])) :
|
|
1667
|
+
W(V.$slots, "footer", {}, void 0, !0)
|
|
1668
|
+
])) : w("", !0)
|
|
1667
1669
|
], 2)
|
|
1668
1670
|
], 2)),
|
|
1669
1671
|
B.value ? (m(), y("div", Hn, [
|
|
1670
|
-
|
|
1672
|
+
W(V.$slots, "mobile", {}, void 0, !0),
|
|
1671
1673
|
U(pt, {
|
|
1672
1674
|
listLength: V.listLength,
|
|
1673
1675
|
isLoading: V.isLoading,
|
|
1674
1676
|
loadingText: V.loadingText,
|
|
1675
1677
|
noResultsText: V.noResultsText
|
|
1676
1678
|
}, null, 8, ["listLength", "isLoading", "loadingText", "noResultsText"])
|
|
1677
|
-
])) :
|
|
1679
|
+
])) : w("", !0),
|
|
1678
1680
|
U(Ko, {
|
|
1679
1681
|
currentPage: V.currentPage,
|
|
1680
1682
|
itemsPerPage: V.itemsPerPage,
|
|
1681
1683
|
hideItemsPerPage: V.hideItemsPerPage,
|
|
1682
1684
|
listLength: V.listLength
|
|
1683
1685
|
}, null, 8, ["currentPage", "itemsPerPage", "hideItemsPerPage", "listLength"]),
|
|
1684
|
-
V.currentPage &&
|
|
1686
|
+
V.currentPage && r.value > 1 ? (m(), S(_n, {
|
|
1685
1687
|
key: 5,
|
|
1686
|
-
currentPage:
|
|
1687
|
-
"onUpdate:currentPage": q[7] || (q[7] = (
|
|
1688
|
+
currentPage: O.value,
|
|
1689
|
+
"onUpdate:currentPage": q[7] || (q[7] = (Q) => O.value = Q),
|
|
1688
1690
|
class: "ck-table__pagination",
|
|
1689
|
-
totalPages:
|
|
1691
|
+
totalPages: r.value,
|
|
1690
1692
|
itemsPerPage: V.itemsPerPage,
|
|
1691
1693
|
listLength: V.listLength,
|
|
1692
1694
|
align: V.paginationAlign,
|
|
1693
1695
|
layout: P.value,
|
|
1694
|
-
onRefreshList: q[8] || (q[8] = (
|
|
1695
|
-
}, null, 8, ["currentPage", "totalPages", "itemsPerPage", "listLength", "align", "layout"])) :
|
|
1696
|
+
onRefreshList: q[8] || (q[8] = (Q) => L(!0))
|
|
1697
|
+
}, null, 8, ["currentPage", "totalPages", "itemsPerPage", "listLength", "align", "layout"])) : w("", !0)
|
|
1696
1698
|
])
|
|
1697
1699
|
], 64);
|
|
1698
1700
|
};
|
|
1699
1701
|
}
|
|
1700
1702
|
});
|
|
1701
|
-
const Un = /* @__PURE__ */ H(qn, [["__scopeId", "data-v-
|
|
1703
|
+
const Un = /* @__PURE__ */ H(qn, [["__scopeId", "data-v-c7c24c40"]]), Yn = /* @__PURE__ */ R({
|
|
1702
1704
|
__name: "ck-pagination",
|
|
1703
1705
|
props: {
|
|
1704
1706
|
modelValue: {},
|
|
@@ -1713,20 +1715,20 @@ const Un = /* @__PURE__ */ H(qn, [["__scopeId", "data-v-328b040c"]]), Yn = /* @_
|
|
|
1713
1715
|
},
|
|
1714
1716
|
emits: ["update:modelValue"],
|
|
1715
1717
|
setup(e, { emit: o }) {
|
|
1716
|
-
const t = e, n = o, { cleekOptions: a } = ae(
|
|
1718
|
+
const t = e, n = o, { cleekOptions: a } = ae(ne()), l = d({
|
|
1717
1719
|
get() {
|
|
1718
1720
|
return t.modelValue;
|
|
1719
1721
|
},
|
|
1720
1722
|
set(b) {
|
|
1721
1723
|
n("update:modelValue", b);
|
|
1722
1724
|
}
|
|
1723
|
-
}),
|
|
1725
|
+
}), s = d(() => {
|
|
1724
1726
|
const b = [];
|
|
1725
1727
|
return t.align && b.push(`align--${t.align}`), b;
|
|
1726
1728
|
}), c = d(() => {
|
|
1727
1729
|
const b = t.btnType || a.value.button.type;
|
|
1728
1730
|
return b.toLowerCase() === "filled" ? "outlined" : b;
|
|
1729
|
-
}), u = d(() => t.btnLayout || a.value.styles.layout), p = d(() => t.maxStep === 1 || c.value === "flat" ? "" : "center"),
|
|
1731
|
+
}), u = d(() => t.btnLayout || a.value.styles.layout), p = d(() => t.maxStep === 1 || c.value === "flat" ? "" : "center"), r = d(() => c.value === "flat" ? "" : "left"), v = d(() => c.value === "flat" ? "" : "right"), i = d(() => l.value === 1 ? t.iconDisableLeft ? t.iconDisableLeft : "grip-lines-vertical" : t.iconArrowLeft ? t.iconArrowLeft : "arrow-left"), g = d(() => l.value === t.maxStep ? t.iconDisableRight ? t.iconDisableRight : "grip-lines-vertical" : t.iconArrowRight ? t.iconArrowRight : "arrow-right");
|
|
1730
1732
|
function f() {
|
|
1731
1733
|
l.value <= 1 || (l.value = l.value - 1);
|
|
1732
1734
|
}
|
|
@@ -1736,45 +1738,45 @@ const Un = /* @__PURE__ */ H(qn, [["__scopeId", "data-v-328b040c"]]), Yn = /* @_
|
|
|
1736
1738
|
return (b, h) => {
|
|
1737
1739
|
const T = Y("ck-button");
|
|
1738
1740
|
return m(), y("div", {
|
|
1739
|
-
class:
|
|
1741
|
+
class: M(["ck-pagination", s.value])
|
|
1740
1742
|
}, [
|
|
1741
1743
|
U(T, {
|
|
1742
1744
|
width: "42px",
|
|
1743
1745
|
align: "center",
|
|
1744
|
-
group:
|
|
1746
|
+
group: r.value,
|
|
1745
1747
|
type: c.value,
|
|
1746
1748
|
layout: u.value,
|
|
1747
|
-
icon:
|
|
1748
|
-
onClick: h[0] || (h[0] = (
|
|
1749
|
+
icon: i.value,
|
|
1750
|
+
onClick: h[0] || (h[0] = (O) => f())
|
|
1749
1751
|
}, null, 8, ["group", "type", "layout", "icon"]),
|
|
1750
|
-
l.value - 2 >= 1 ? (m(),
|
|
1752
|
+
l.value - 2 >= 1 ? (m(), S(T, {
|
|
1751
1753
|
key: 0,
|
|
1752
1754
|
width: "42px",
|
|
1753
1755
|
align: "center",
|
|
1754
1756
|
group: p.value,
|
|
1755
1757
|
type: c.value,
|
|
1756
1758
|
layout: u.value,
|
|
1757
|
-
onClick: h[1] || (h[1] = (
|
|
1759
|
+
onClick: h[1] || (h[1] = (O) => l.value = l.value - 2)
|
|
1758
1760
|
}, {
|
|
1759
1761
|
default: N(() => [
|
|
1760
1762
|
G(A(l.value - 2), 1)
|
|
1761
1763
|
]),
|
|
1762
1764
|
_: 1
|
|
1763
|
-
}, 8, ["group", "type", "layout"])) :
|
|
1764
|
-
l.value - 1 >= 1 ? (m(),
|
|
1765
|
+
}, 8, ["group", "type", "layout"])) : w("", !0),
|
|
1766
|
+
l.value - 1 >= 1 ? (m(), S(T, {
|
|
1765
1767
|
key: 1,
|
|
1766
1768
|
width: "42px",
|
|
1767
1769
|
align: "center",
|
|
1768
1770
|
group: p.value,
|
|
1769
1771
|
type: c.value,
|
|
1770
1772
|
layout: u.value,
|
|
1771
|
-
onClick: h[2] || (h[2] = (
|
|
1773
|
+
onClick: h[2] || (h[2] = (O) => l.value = l.value - 1)
|
|
1772
1774
|
}, {
|
|
1773
1775
|
default: N(() => [
|
|
1774
1776
|
G(A(l.value - 1), 1)
|
|
1775
1777
|
]),
|
|
1776
1778
|
_: 1
|
|
1777
|
-
}, 8, ["group", "type", "layout"])) :
|
|
1779
|
+
}, 8, ["group", "type", "layout"])) : w("", !0),
|
|
1778
1780
|
U(T, {
|
|
1779
1781
|
type: "filled",
|
|
1780
1782
|
width: "42px",
|
|
@@ -1787,34 +1789,34 @@ const Un = /* @__PURE__ */ H(qn, [["__scopeId", "data-v-328b040c"]]), Yn = /* @_
|
|
|
1787
1789
|
]),
|
|
1788
1790
|
_: 1
|
|
1789
1791
|
}, 8, ["group", "layout"]),
|
|
1790
|
-
l.value + 1 <= b.maxStep ? (m(),
|
|
1792
|
+
l.value + 1 <= b.maxStep ? (m(), S(T, {
|
|
1791
1793
|
key: 2,
|
|
1792
1794
|
width: "42px",
|
|
1793
1795
|
align: "center",
|
|
1794
1796
|
group: p.value,
|
|
1795
1797
|
type: c.value,
|
|
1796
1798
|
layout: u.value,
|
|
1797
|
-
onClick: h[3] || (h[3] = (
|
|
1799
|
+
onClick: h[3] || (h[3] = (O) => l.value = l.value + 1)
|
|
1798
1800
|
}, {
|
|
1799
1801
|
default: N(() => [
|
|
1800
1802
|
G(A(l.value + 1), 1)
|
|
1801
1803
|
]),
|
|
1802
1804
|
_: 1
|
|
1803
|
-
}, 8, ["group", "type", "layout"])) :
|
|
1804
|
-
l.value + 2 <= b.maxStep ? (m(),
|
|
1805
|
+
}, 8, ["group", "type", "layout"])) : w("", !0),
|
|
1806
|
+
l.value + 2 <= b.maxStep ? (m(), S(T, {
|
|
1805
1807
|
key: 3,
|
|
1806
1808
|
group: "center",
|
|
1807
1809
|
width: "42px",
|
|
1808
1810
|
align: "center",
|
|
1809
1811
|
type: c.value,
|
|
1810
1812
|
layout: u.value,
|
|
1811
|
-
onClick: h[4] || (h[4] = (
|
|
1813
|
+
onClick: h[4] || (h[4] = (O) => l.value = l.value + 2)
|
|
1812
1814
|
}, {
|
|
1813
1815
|
default: N(() => [
|
|
1814
1816
|
G(A(l.value + 2), 1)
|
|
1815
1817
|
]),
|
|
1816
1818
|
_: 1
|
|
1817
|
-
}, 8, ["type", "layout"])) :
|
|
1819
|
+
}, 8, ["type", "layout"])) : w("", !0),
|
|
1818
1820
|
U(T, {
|
|
1819
1821
|
width: "42px",
|
|
1820
1822
|
align: "center",
|
|
@@ -1822,7 +1824,7 @@ const Un = /* @__PURE__ */ H(qn, [["__scopeId", "data-v-328b040c"]]), Yn = /* @_
|
|
|
1822
1824
|
type: c.value,
|
|
1823
1825
|
layout: u.value,
|
|
1824
1826
|
icon: g.value,
|
|
1825
|
-
onClick: h[5] || (h[5] = (
|
|
1827
|
+
onClick: h[5] || (h[5] = (O) => k())
|
|
1826
1828
|
}, null, 8, ["group", "type", "layout", "icon"])
|
|
1827
1829
|
], 2);
|
|
1828
1830
|
};
|
|
@@ -1846,10 +1848,10 @@ const Gn = { class: "ck-th" }, Zn = "left", Kn = /* @__PURE__ */ R({
|
|
|
1846
1848
|
});
|
|
1847
1849
|
return (a, l) => (m(), y("th", Gn, [
|
|
1848
1850
|
$("span", {
|
|
1849
|
-
class:
|
|
1851
|
+
class: M(t.value),
|
|
1850
1852
|
style: F(n.value)
|
|
1851
1853
|
}, [
|
|
1852
|
-
|
|
1854
|
+
W(a.$slots, "default", {}, void 0, !0)
|
|
1853
1855
|
], 6)
|
|
1854
1856
|
]));
|
|
1855
1857
|
}
|
|
@@ -1945,7 +1947,7 @@ const Jn = ["year", "month", "day", "time", "custom"], Xn = R({
|
|
|
1945
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"];
|
|
1946
1948
|
function ca(e, o, t, n, a, l) {
|
|
1947
1949
|
return m(), y("div", {
|
|
1948
|
-
class:
|
|
1950
|
+
class: M(["v3dp__popout", `v3dp__popout-${e.viewMode}`]),
|
|
1949
1951
|
style: F({ "--popout-column-definition": `repeat(${e.columnCount}, 1fr)` }),
|
|
1950
1952
|
onMousedown: o[3] || (o[3] = se(() => {
|
|
1951
1953
|
}, ["prevent"]))
|
|
@@ -1954,53 +1956,53 @@ function ca(e, o, t, n, a, l) {
|
|
|
1954
1956
|
$("button", {
|
|
1955
1957
|
class: "v3dp__heading__button v3dp__heading__button__left",
|
|
1956
1958
|
disabled: e.leftDisabled,
|
|
1957
|
-
onClick: o[0] || (o[0] = se((
|
|
1959
|
+
onClick: o[0] || (o[0] = se((s) => e.$emit("left"), ["stop", "prevent"]))
|
|
1958
1960
|
}, [
|
|
1959
|
-
|
|
1961
|
+
W(e.$slots, "arrow-left", {}, () => [
|
|
1960
1962
|
oa
|
|
1961
1963
|
], !0)
|
|
1962
1964
|
], 8, ta),
|
|
1963
|
-
(m(),
|
|
1965
|
+
(m(), S(Nt(e.headingClickable ? "button" : "span"), {
|
|
1964
1966
|
class: "v3dp__heading__center",
|
|
1965
|
-
onClick: o[1] || (o[1] = se((
|
|
1967
|
+
onClick: o[1] || (o[1] = se((s) => e.$emit("heading"), ["stop", "prevent"]))
|
|
1966
1968
|
}, {
|
|
1967
1969
|
default: N(() => [
|
|
1968
|
-
|
|
1970
|
+
W(e.$slots, "heading", {}, void 0, !0)
|
|
1969
1971
|
]),
|
|
1970
1972
|
_: 3
|
|
1971
1973
|
})),
|
|
1972
1974
|
$("button", {
|
|
1973
1975
|
class: "v3dp__heading__button v3dp__heading__button__right",
|
|
1974
1976
|
disabled: e.rightDisabled,
|
|
1975
|
-
onClick: o[2] || (o[2] = se((
|
|
1977
|
+
onClick: o[2] || (o[2] = se((s) => e.$emit("right"), ["stop", "prevent"]))
|
|
1976
1978
|
}, [
|
|
1977
|
-
|
|
1979
|
+
W(e.$slots, "arrow-right", {}, () => [
|
|
1978
1980
|
aa
|
|
1979
1981
|
], !0)
|
|
1980
1982
|
], 8, na)
|
|
1981
1983
|
]),
|
|
1982
1984
|
$("div", la, [
|
|
1983
|
-
"subheading" in e.$slots ? (m(), y(
|
|
1985
|
+
"subheading" in e.$slots ? (m(), y(K, { key: 0 }, [
|
|
1984
1986
|
$("div", ia, [
|
|
1985
|
-
|
|
1987
|
+
W(e.$slots, "subheading", {}, void 0, !0)
|
|
1986
1988
|
]),
|
|
1987
1989
|
sa
|
|
1988
|
-
], 64)) :
|
|
1990
|
+
], 64)) : w("", !0),
|
|
1989
1991
|
$("div", ra, [
|
|
1990
|
-
|
|
1991
|
-
(m(!0), y(
|
|
1992
|
-
key:
|
|
1993
|
-
disabled:
|
|
1994
|
-
class:
|
|
1992
|
+
W(e.$slots, "body", {}, () => [
|
|
1993
|
+
(m(!0), y(K, null, re(e.items, (s) => (m(), y("button", {
|
|
1994
|
+
key: s.key,
|
|
1995
|
+
disabled: s.disabled,
|
|
1996
|
+
class: M([
|
|
1995
1997
|
{
|
|
1996
|
-
selected:
|
|
1997
|
-
current:
|
|
1998
|
+
selected: s.selected,
|
|
1999
|
+
current: s.current
|
|
1998
2000
|
},
|
|
1999
2001
|
`v3dp__element__button__${e.viewMode}`
|
|
2000
2002
|
]),
|
|
2001
|
-
onClick: se((c) => e.$emit("elementClick",
|
|
2003
|
+
onClick: se((c) => e.$emit("elementClick", s.value), ["stop", "prevent"])
|
|
2002
2004
|
}, [
|
|
2003
|
-
$("span", null, A(
|
|
2005
|
+
$("span", null, A(s.display), 1)
|
|
2004
2006
|
], 10, ua))), 128))
|
|
2005
2007
|
], !0)
|
|
2006
2008
|
])
|
|
@@ -2034,22 +2036,22 @@ const je = /* @__PURE__ */ Pe(Xn, [["render", ca], ["__scopeId", "data-v-65eb861
|
|
|
2034
2036
|
}
|
|
2035
2037
|
},
|
|
2036
2038
|
setup(e, { emit: o }) {
|
|
2037
|
-
const t = d(() => oo(e.pageDate)), n = d(() => no(e.pageDate)), a = (p,
|
|
2039
|
+
const t = d(() => oo(e.pageDate)), n = d(() => no(e.pageDate)), a = (p, r, v) => !r && !v ? !0 : !(r && ve(p) < ve(r) || v && ve(p) > ve(v)), l = d(
|
|
2038
2040
|
() => ao({
|
|
2039
2041
|
start: t.value,
|
|
2040
2042
|
end: n.value
|
|
2041
2043
|
}).map(
|
|
2042
2044
|
(p) => ({
|
|
2043
2045
|
value: p,
|
|
2044
|
-
key: String(
|
|
2045
|
-
display:
|
|
2046
|
-
selected: !!e.selected &&
|
|
2046
|
+
key: String(ve(p)),
|
|
2047
|
+
display: ve(p),
|
|
2048
|
+
selected: !!e.selected && ve(p) === ve(e.selected),
|
|
2047
2049
|
disabled: !a(p, e.lowerLimit, e.upperLimit)
|
|
2048
2050
|
})
|
|
2049
2051
|
)
|
|
2050
|
-
),
|
|
2051
|
-
const p =
|
|
2052
|
-
return `${p} - ${
|
|
2052
|
+
), s = d(() => {
|
|
2053
|
+
const p = ve(t.value), r = ve(n.value);
|
|
2054
|
+
return `${p} - ${r}`;
|
|
2053
2055
|
}), c = d(
|
|
2054
2056
|
() => e.lowerLimit && (We(e.lowerLimit) === We(e.pageDate) || Me(e.pageDate, e.lowerLimit))
|
|
2055
2057
|
), u = d(
|
|
@@ -2057,7 +2059,7 @@ const je = /* @__PURE__ */ Pe(Xn, [["render", ca], ["__scopeId", "data-v-65eb861
|
|
|
2057
2059
|
);
|
|
2058
2060
|
return {
|
|
2059
2061
|
years: l,
|
|
2060
|
-
heading:
|
|
2062
|
+
heading: s,
|
|
2061
2063
|
leftDisabled: c,
|
|
2062
2064
|
rightDisabled: u,
|
|
2063
2065
|
previousPage: () => o("update:pageDate", kt(e.pageDate, 10)),
|
|
@@ -2066,8 +2068,8 @@ const je = /* @__PURE__ */ Pe(Xn, [["render", ca], ["__scopeId", "data-v-65eb861
|
|
|
2066
2068
|
}
|
|
2067
2069
|
});
|
|
2068
2070
|
function pa(e, o, t, n, a, l) {
|
|
2069
|
-
const
|
|
2070
|
-
return m(),
|
|
2071
|
+
const s = Y("picker-popup");
|
|
2072
|
+
return m(), S(s, {
|
|
2071
2073
|
columnCount: 3,
|
|
2072
2074
|
leftDisabled: e.leftDisabled,
|
|
2073
2075
|
rightDisabled: e.rightDisabled,
|
|
@@ -2124,29 +2126,29 @@ const va = /* @__PURE__ */ Pe(da, [["render", pa]]), ma = R({
|
|
|
2124
2126
|
},
|
|
2125
2127
|
setup(e, { emit: o }) {
|
|
2126
2128
|
const t = d(() => lo(e.pageDate)), n = d(() => io(e.pageDate)), a = d(
|
|
2127
|
-
() => (
|
|
2129
|
+
() => (r) => Ne(r, e.format, {
|
|
2128
2130
|
locale: e.locale
|
|
2129
2131
|
})
|
|
2130
|
-
), l = (
|
|
2132
|
+
), l = (r, v, i) => !v && !i ? !0 : !(v && Me(r, bt(v)) || i && xe(r, _t(i))), s = d(
|
|
2131
2133
|
() => so({
|
|
2132
2134
|
start: t.value,
|
|
2133
2135
|
end: n.value
|
|
2134
2136
|
}).map(
|
|
2135
|
-
(
|
|
2136
|
-
value:
|
|
2137
|
-
display: a.value(
|
|
2138
|
-
key: a.value(
|
|
2139
|
-
selected: !!e.selected && Xe(e.selected,
|
|
2140
|
-
disabled: !l(
|
|
2137
|
+
(r) => ({
|
|
2138
|
+
value: r,
|
|
2139
|
+
display: a.value(r),
|
|
2140
|
+
key: a.value(r),
|
|
2141
|
+
selected: !!e.selected && Xe(e.selected, r),
|
|
2142
|
+
disabled: !l(r, e.lowerLimit, e.upperLimit)
|
|
2141
2143
|
})
|
|
2142
2144
|
)
|
|
2143
|
-
), c = d(() =>
|
|
2145
|
+
), c = d(() => ve(t.value)), u = d(
|
|
2144
2146
|
() => e.lowerLimit && (it(e.lowerLimit, e.pageDate) || Me(e.pageDate, e.lowerLimit))
|
|
2145
2147
|
), p = d(
|
|
2146
2148
|
() => e.upperLimit && (it(e.upperLimit, e.pageDate) || xe(e.pageDate, e.upperLimit))
|
|
2147
2149
|
);
|
|
2148
2150
|
return {
|
|
2149
|
-
months:
|
|
2151
|
+
months: s,
|
|
2150
2152
|
heading: c,
|
|
2151
2153
|
leftDisabled: u,
|
|
2152
2154
|
rightDisabled: p,
|
|
@@ -2156,8 +2158,8 @@ const va = /* @__PURE__ */ Pe(da, [["render", pa]]), ma = R({
|
|
|
2156
2158
|
}
|
|
2157
2159
|
});
|
|
2158
2160
|
function fa(e, o, t, n, a, l) {
|
|
2159
|
-
const
|
|
2160
|
-
return m(),
|
|
2161
|
+
const s = Y("picker-popup");
|
|
2162
|
+
return m(), S(s, {
|
|
2161
2163
|
headingClickable: "",
|
|
2162
2164
|
columnCount: 3,
|
|
2163
2165
|
items: e.months,
|
|
@@ -2245,7 +2247,7 @@ const ha = /* @__PURE__ */ Pe(ma, [["render", fa]]), ga = R({
|
|
|
2245
2247
|
), n = d(() => bt(e.pageDate)), a = d(() => _t(e.pageDate)), l = d(() => ({
|
|
2246
2248
|
start: n.value,
|
|
2247
2249
|
end: a.value
|
|
2248
|
-
})),
|
|
2250
|
+
})), s = d(() => ({
|
|
2249
2251
|
start: ro(n.value, {
|
|
2250
2252
|
weekStartsOn: e.weekStartsOn
|
|
2251
2253
|
}),
|
|
@@ -2261,10 +2263,10 @@ const ha = /* @__PURE__ */ Pe(ma, [["render", fa]]), ga = R({
|
|
|
2261
2263
|
).map(f);
|
|
2262
2264
|
}), u = (g, f, k, b) => {
|
|
2263
2265
|
var h, T;
|
|
2264
|
-
return (h = b == null ? void 0 : b.dates) != null && h.some((
|
|
2266
|
+
return (h = b == null ? void 0 : b.dates) != null && h.some((O) => Ze(g, O)) || (T = b == null ? void 0 : b.predicate) != null && T.call(b, g) ? !1 : !f && !k ? !0 : !(f && Me(g, ko(f)) || k && xe(g, yo(k)));
|
|
2265
2267
|
}, p = d(() => {
|
|
2266
2268
|
const g = /* @__PURE__ */ new Date(), f = t.value(e.format);
|
|
2267
|
-
return po(
|
|
2269
|
+
return po(s.value).map(
|
|
2268
2270
|
(k) => ({
|
|
2269
2271
|
value: k,
|
|
2270
2272
|
display: f(k),
|
|
@@ -2279,27 +2281,27 @@ const ha = /* @__PURE__ */ Pe(ma, [["render", fa]]), ga = R({
|
|
|
2279
2281
|
key: t.value("yyyy-MM-dd")(k)
|
|
2280
2282
|
})
|
|
2281
2283
|
);
|
|
2282
|
-
}),
|
|
2284
|
+
}), r = d(
|
|
2283
2285
|
() => t.value(e.headingFormat)(e.pageDate)
|
|
2284
2286
|
), v = d(
|
|
2285
2287
|
() => e.lowerLimit && (Xe(e.lowerLimit, e.pageDate) || Me(e.pageDate, e.lowerLimit))
|
|
2286
|
-
),
|
|
2288
|
+
), i = d(
|
|
2287
2289
|
() => e.upperLimit && (Xe(e.upperLimit, e.pageDate) || xe(e.pageDate, e.upperLimit))
|
|
2288
2290
|
);
|
|
2289
2291
|
return {
|
|
2290
2292
|
weekDays: c,
|
|
2291
2293
|
days: p,
|
|
2292
|
-
heading:
|
|
2294
|
+
heading: r,
|
|
2293
2295
|
leftDisabled: v,
|
|
2294
|
-
rightDisabled:
|
|
2296
|
+
rightDisabled: i,
|
|
2295
2297
|
previousPage: () => o("update:pageDate", mo(e.pageDate, 1)),
|
|
2296
2298
|
nextPage: () => o("update:pageDate", fo(e.pageDate, 1))
|
|
2297
2299
|
};
|
|
2298
2300
|
}
|
|
2299
2301
|
});
|
|
2300
2302
|
function ka(e, o, t, n, a, l) {
|
|
2301
|
-
const
|
|
2302
|
-
return m(),
|
|
2303
|
+
const s = Y("picker-popup");
|
|
2304
|
+
return m(), S(s, {
|
|
2303
2305
|
headingClickable: "",
|
|
2304
2306
|
leftDisabled: e.leftDisabled,
|
|
2305
2307
|
rightDisabled: e.rightDisabled,
|
|
@@ -2314,9 +2316,9 @@ function ka(e, o, t, n, a, l) {
|
|
|
2314
2316
|
G(A(e.heading), 1)
|
|
2315
2317
|
]),
|
|
2316
2318
|
subheading: N(() => [
|
|
2317
|
-
(m(!0), y(
|
|
2319
|
+
(m(!0), y(K, null, re(e.weekDays, (c, u) => (m(), y("span", {
|
|
2318
2320
|
key: c,
|
|
2319
|
-
class:
|
|
2321
|
+
class: M(`v3dp__subheading__weekday__${u}`)
|
|
2320
2322
|
}, A(c), 3))), 128))
|
|
2321
2323
|
]),
|
|
2322
2324
|
_: 1
|
|
@@ -2329,8 +2331,8 @@ function vt(e, o) {
|
|
|
2329
2331
|
width: e.clientWidth
|
|
2330
2332
|
}, a = o.getBoundingClientRect();
|
|
2331
2333
|
if (!(a.top >= t.top && a.bottom <= t.top + n.height)) {
|
|
2332
|
-
const l = a.top - t.top,
|
|
2333
|
-
Math.abs(l) < Math.abs(
|
|
2334
|
+
const l = a.top - t.top, s = a.bottom - t.bottom;
|
|
2335
|
+
Math.abs(l) < Math.abs(s) ? e.scrollTop += l : e.scrollTop += s;
|
|
2334
2336
|
}
|
|
2335
2337
|
}
|
|
2336
2338
|
const ba = R({
|
|
@@ -2360,12 +2362,12 @@ const ba = R({
|
|
|
2360
2362
|
}
|
|
2361
2363
|
},
|
|
2362
2364
|
setup(e, { emit: o }) {
|
|
2363
|
-
const t = x(null), n = x(null), a = d(() => e.pageDate ?? e.selected), l = x(a.value.getHours()),
|
|
2364
|
-
|
|
2365
|
+
const t = x(null), n = x(null), a = d(() => e.pageDate ?? e.selected), l = x(a.value.getHours()), s = x(a.value.getMinutes());
|
|
2366
|
+
ce(
|
|
2365
2367
|
() => e.selected,
|
|
2366
2368
|
(v) => {
|
|
2367
|
-
let
|
|
2368
|
-
v && (
|
|
2369
|
+
let i = 0, g = 0;
|
|
2370
|
+
v && (i = v.getHours(), g = v.getMinutes()), l.value = i, s.value = g;
|
|
2369
2371
|
}
|
|
2370
2372
|
);
|
|
2371
2373
|
const c = d(
|
|
@@ -2374,7 +2376,7 @@ const ba = R({
|
|
|
2374
2376
|
value: v,
|
|
2375
2377
|
date: st(new Date(a.value.getTime()), {
|
|
2376
2378
|
hours: v,
|
|
2377
|
-
minutes:
|
|
2379
|
+
minutes: s.value,
|
|
2378
2380
|
seconds: 0
|
|
2379
2381
|
}),
|
|
2380
2382
|
selected: l.value === v,
|
|
@@ -2389,46 +2391,46 @@ const ba = R({
|
|
|
2389
2391
|
minutes: v,
|
|
2390
2392
|
seconds: 0
|
|
2391
2393
|
}),
|
|
2392
|
-
selected:
|
|
2394
|
+
selected: s.value === v,
|
|
2393
2395
|
ref: x(null)
|
|
2394
2396
|
}))
|
|
2395
2397
|
), p = (v) => {
|
|
2396
|
-
|
|
2397
|
-
},
|
|
2398
|
+
s.value = v.value, o("select", v.date);
|
|
2399
|
+
}, r = () => {
|
|
2398
2400
|
const v = c.value.find(
|
|
2399
2401
|
(g) => {
|
|
2400
2402
|
var f, k;
|
|
2401
2403
|
return ((k = (f = g.ref.value) == null ? void 0 : f.classList) == null ? void 0 : k.contains("selected")) ?? !1;
|
|
2402
2404
|
}
|
|
2403
|
-
),
|
|
2405
|
+
), i = u.value.find(
|
|
2404
2406
|
(g) => {
|
|
2405
2407
|
var f, k;
|
|
2406
2408
|
return ((k = (f = g.ref.value) == null ? void 0 : f.classList) == null ? void 0 : k.contains("selected")) ?? !1;
|
|
2407
2409
|
}
|
|
2408
2410
|
);
|
|
2409
|
-
v &&
|
|
2411
|
+
v && i && (vt(t.value, v.ref.value), vt(n.value, i.ref.value));
|
|
2410
2412
|
};
|
|
2411
|
-
return
|
|
2413
|
+
return ce(
|
|
2412
2414
|
() => e.visible,
|
|
2413
2415
|
(v) => {
|
|
2414
|
-
v && gt(
|
|
2416
|
+
v && gt(r);
|
|
2415
2417
|
}
|
|
2416
2418
|
), {
|
|
2417
2419
|
hoursListRef: t,
|
|
2418
2420
|
minutesListRef: n,
|
|
2419
2421
|
hours: l,
|
|
2420
|
-
minutes:
|
|
2422
|
+
minutes: s,
|
|
2421
2423
|
hoursList: c,
|
|
2422
2424
|
minutesList: u,
|
|
2423
2425
|
padStartZero: (v) => `0${v}`.substr(-2),
|
|
2424
2426
|
selectMinutes: p,
|
|
2425
2427
|
isEnabled: (v) => {
|
|
2426
|
-
var
|
|
2427
|
-
return !((g = (
|
|
2428
|
+
var i, g, f, k;
|
|
2429
|
+
return !((g = (i = e.disabledTime) == null ? void 0 : i.dates) != null && g.some(
|
|
2428
2430
|
(b) => ho(v, b) && go(v, b)
|
|
2429
2431
|
) || (k = (f = e.disabledTime) == null ? void 0 : f.predicate) != null && k.call(f, v));
|
|
2430
2432
|
},
|
|
2431
|
-
scroll:
|
|
2433
|
+
scroll: r
|
|
2432
2434
|
};
|
|
2433
2435
|
}
|
|
2434
2436
|
}), _a = {
|
|
@@ -2439,8 +2441,8 @@ const ba = R({
|
|
|
2439
2441
|
class: "v3dp__column"
|
|
2440
2442
|
}, $a = ["disabled", "onClick"];
|
|
2441
2443
|
function Ba(e, o, t, n, a, l) {
|
|
2442
|
-
const
|
|
2443
|
-
return m(),
|
|
2444
|
+
const s = Y("picker-popup");
|
|
2445
|
+
return m(), S(s, {
|
|
2444
2446
|
headingClickable: "",
|
|
2445
2447
|
columnCount: 2,
|
|
2446
2448
|
leftDisabled: !0,
|
|
@@ -2453,11 +2455,11 @@ function Ba(e, o, t, n, a, l) {
|
|
|
2453
2455
|
]),
|
|
2454
2456
|
body: N(() => [
|
|
2455
2457
|
$("div", _a, [
|
|
2456
|
-
(m(!0), y(
|
|
2458
|
+
(m(!0), y(K, null, re(e.hoursList, (c) => (m(), y("button", {
|
|
2457
2459
|
key: c.value,
|
|
2458
2460
|
ref_for: !0,
|
|
2459
2461
|
ref: c.ref,
|
|
2460
|
-
class:
|
|
2462
|
+
class: M([{ selected: c.selected }, "v3dp__element_button__hour"]),
|
|
2461
2463
|
disabled: !e.isEnabled(c.date),
|
|
2462
2464
|
onClick: se((u) => e.hours = c.value, ["stop", "prevent"])
|
|
2463
2465
|
}, [
|
|
@@ -2465,11 +2467,11 @@ function Ba(e, o, t, n, a, l) {
|
|
|
2465
2467
|
], 10, Ca))), 128))
|
|
2466
2468
|
], 512),
|
|
2467
2469
|
$("div", wa, [
|
|
2468
|
-
(m(!0), y(
|
|
2470
|
+
(m(!0), y(K, null, re(e.minutesList, (c) => (m(), y("button", {
|
|
2469
2471
|
key: c.value,
|
|
2470
2472
|
ref_for: !0,
|
|
2471
2473
|
ref: c.ref,
|
|
2472
|
-
class:
|
|
2474
|
+
class: M([{ selected: c.selected }, "v3dp__element_button__minute"]),
|
|
2473
2475
|
disabled: !e.isEnabled(c.date),
|
|
2474
2476
|
onClick: se((u) => e.selectMinutes(c), ["stop", "prevent"])
|
|
2475
2477
|
}, [
|
|
@@ -2659,7 +2661,7 @@ const Ta = /* @__PURE__ */ Pe(ba, [["render", Ba], ["__scopeId", "data-v-81ac698
|
|
|
2659
2661
|
closed: () => !0
|
|
2660
2662
|
},
|
|
2661
2663
|
setup(e, { emit: o, attrs: t }) {
|
|
2662
|
-
const n = x("none"), a = x(e.startingViewDate), l = x(null),
|
|
2664
|
+
const n = x("none"), a = x(e.startingViewDate), l = x(null), s = x(!1), c = x("");
|
|
2663
2665
|
Ye(() => {
|
|
2664
2666
|
const P = rt(c.value, e.inputFormat, /* @__PURE__ */ new Date(), {
|
|
2665
2667
|
locale: e.locale
|
|
@@ -2678,18 +2680,18 @@ const Ta = /* @__PURE__ */ Pe(ba, [["render", Ba], ["__scopeId", "data-v-81ac698
|
|
|
2678
2680
|
});
|
|
2679
2681
|
const p = (P, B) => {
|
|
2680
2682
|
a.value = B, P === "year" ? o("decadePageChanged", B) : P === "month" ? o("yearPageChanged", B) : P === "day" && o("monthPageChanged", B);
|
|
2681
|
-
},
|
|
2683
|
+
}, r = (P) => {
|
|
2682
2684
|
a.value = P, e.minimumView === "year" ? (u("none"), o("update:modelValue", P)) : n.value = "month";
|
|
2683
2685
|
}, v = (P) => {
|
|
2684
2686
|
a.value = P, e.minimumView === "month" ? (u("none"), o("update:modelValue", P)) : n.value = "day";
|
|
2685
|
-
},
|
|
2687
|
+
}, i = (P) => {
|
|
2686
2688
|
a.value = P, e.minimumView === "day" ? (u("none"), o("update:modelValue", P)) : n.value = "time";
|
|
2687
2689
|
}, g = (P) => {
|
|
2688
2690
|
u("none"), o("update:modelValue", P);
|
|
2689
2691
|
}, f = () => {
|
|
2690
2692
|
e.clearable && (u("none"), o("update:modelValue", null), a.value = e.startingViewDate);
|
|
2691
|
-
}, k = () =>
|
|
2692
|
-
|
|
2693
|
+
}, k = () => s.value = !0, b = () => u(O.value), h = () => {
|
|
2694
|
+
s.value = !1, u();
|
|
2693
2695
|
}, T = (P) => {
|
|
2694
2696
|
const B = P.keyCode ? P.keyCode : P.which;
|
|
2695
2697
|
if ([
|
|
@@ -2698,15 +2700,15 @@ const Ta = /* @__PURE__ */ Pe(ba, [["render", Ba], ["__scopeId", "data-v-81ac698
|
|
|
2698
2700
|
13
|
|
2699
2701
|
// enter
|
|
2700
2702
|
].includes(B) && l.value.blur(), e.typeable) {
|
|
2701
|
-
const
|
|
2703
|
+
const L = rt(
|
|
2702
2704
|
l.value.value,
|
|
2703
2705
|
e.inputFormat,
|
|
2704
2706
|
/* @__PURE__ */ new Date(),
|
|
2705
2707
|
{ locale: e.locale }
|
|
2706
2708
|
);
|
|
2707
|
-
pe(
|
|
2709
|
+
pe(L) && c.value === Ne(L, e.inputFormat, { locale: e.locale }) && (c.value = l.value.value, o("update:modelValue", L));
|
|
2708
2710
|
}
|
|
2709
|
-
},
|
|
2711
|
+
}, O = d(() => {
|
|
2710
2712
|
const P = Oe.indexOf(e.startingView), B = Oe.indexOf(e.minimumView);
|
|
2711
2713
|
return P < B ? e.minimumView : e.startingView;
|
|
2712
2714
|
});
|
|
@@ -2719,58 +2721,58 @@ const Ta = /* @__PURE__ */ Pe(ba, [["render", Ba], ["__scopeId", "data-v-81ac698
|
|
|
2719
2721
|
pageDate: a,
|
|
2720
2722
|
renderView: u,
|
|
2721
2723
|
updatePageDate: p,
|
|
2722
|
-
selectYear:
|
|
2724
|
+
selectYear: r,
|
|
2723
2725
|
selectMonth: v,
|
|
2724
|
-
selectDay:
|
|
2726
|
+
selectDay: i,
|
|
2725
2727
|
selectTime: g,
|
|
2726
2728
|
keyUp: T,
|
|
2727
2729
|
viewShown: n,
|
|
2728
2730
|
goBackFromTimepicker: () => e.startingView === "time" && e.minimumView === "time" ? null : n.value = "day",
|
|
2729
2731
|
clearModelValue: f,
|
|
2730
|
-
initialView:
|
|
2732
|
+
initialView: O,
|
|
2731
2733
|
log: (P) => console.log(P),
|
|
2732
2734
|
variables: (P) => Object.fromEntries(
|
|
2733
|
-
Object.entries(P ?? {}).filter(([B,
|
|
2735
|
+
Object.entries(P ?? {}).filter(([B, L]) => B.startsWith("--"))
|
|
2734
2736
|
)
|
|
2735
2737
|
};
|
|
2736
2738
|
}
|
|
2737
2739
|
}), Da = { class: "v3dp__input_wrapper" }, La = ["readonly", "placeholder", "disabled", "tabindex"], Sa = { class: "v3dp__clearable" };
|
|
2738
2740
|
function Ma(e, o, t, n, a, l) {
|
|
2739
|
-
const
|
|
2741
|
+
const s = Y("year-picker"), c = Y("month-picker"), u = Y("day-picker"), p = Y("time-picker");
|
|
2740
2742
|
return m(), y("div", {
|
|
2741
2743
|
class: "v3dp__datepicker",
|
|
2742
2744
|
style: F(e.variables(e.$attrs.style))
|
|
2743
2745
|
}, [
|
|
2744
2746
|
$("div", Da, [
|
|
2745
|
-
|
|
2747
|
+
ue($("input", Ie({
|
|
2746
2748
|
type: "text",
|
|
2747
2749
|
ref: "inputRef",
|
|
2748
2750
|
readonly: !e.typeable,
|
|
2749
|
-
"onUpdate:modelValue": o[0] || (o[0] = (
|
|
2751
|
+
"onUpdate:modelValue": o[0] || (o[0] = (r) => e.input = r)
|
|
2750
2752
|
}, e.$attrs, {
|
|
2751
2753
|
placeholder: e.placeholder,
|
|
2752
2754
|
disabled: e.disabled,
|
|
2753
2755
|
tabindex: e.disabled ? -1 : 0,
|
|
2754
|
-
onKeyup: o[1] || (o[1] = (...
|
|
2755
|
-
onBlur: o[2] || (o[2] = (...
|
|
2756
|
-
onFocus: o[3] || (o[3] = (...
|
|
2757
|
-
onClick: o[4] || (o[4] = (...
|
|
2756
|
+
onKeyup: o[1] || (o[1] = (...r) => e.keyUp && e.keyUp(...r)),
|
|
2757
|
+
onBlur: o[2] || (o[2] = (...r) => e.blur && e.blur(...r)),
|
|
2758
|
+
onFocus: o[3] || (o[3] = (...r) => e.focus && e.focus(...r)),
|
|
2759
|
+
onClick: o[4] || (o[4] = (...r) => e.click && e.click(...r))
|
|
2758
2760
|
}), null, 16, La), [
|
|
2759
2761
|
[Fe, e.input]
|
|
2760
2762
|
]),
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
+
ue($("div", Sa, [
|
|
2764
|
+
W(e.$slots, "clear", { onClear: e.clearModelValue }, () => [
|
|
2763
2765
|
$("i", {
|
|
2764
|
-
onClick: o[5] || (o[5] = (
|
|
2766
|
+
onClick: o[5] || (o[5] = (r) => e.clearModelValue())
|
|
2765
2767
|
}, "x")
|
|
2766
2768
|
])
|
|
2767
2769
|
], 512), [
|
|
2768
2770
|
[Ve, e.clearable && e.modelValue]
|
|
2769
2771
|
])
|
|
2770
2772
|
]),
|
|
2771
|
-
|
|
2773
|
+
ue(U(s, {
|
|
2772
2774
|
pageDate: e.pageDate,
|
|
2773
|
-
"onUpdate:pageDate": o[6] || (o[6] = (
|
|
2775
|
+
"onUpdate:pageDate": o[6] || (o[6] = (r) => e.updatePageDate("year", r)),
|
|
2774
2776
|
selected: e.modelValue,
|
|
2775
2777
|
lowerLimit: e.lowerLimit,
|
|
2776
2778
|
upperLimit: e.upperLimit,
|
|
@@ -2778,22 +2780,22 @@ function Ma(e, o, t, n, a, l) {
|
|
|
2778
2780
|
}, null, 8, ["pageDate", "selected", "lowerLimit", "upperLimit", "onSelect"]), [
|
|
2779
2781
|
[Ve, e.viewShown === "year"]
|
|
2780
2782
|
]),
|
|
2781
|
-
|
|
2783
|
+
ue(U(c, {
|
|
2782
2784
|
pageDate: e.pageDate,
|
|
2783
|
-
"onUpdate:pageDate": o[7] || (o[7] = (
|
|
2785
|
+
"onUpdate:pageDate": o[7] || (o[7] = (r) => e.updatePageDate("month", r)),
|
|
2784
2786
|
selected: e.modelValue,
|
|
2785
2787
|
onSelect: e.selectMonth,
|
|
2786
2788
|
lowerLimit: e.lowerLimit,
|
|
2787
2789
|
upperLimit: e.upperLimit,
|
|
2788
2790
|
format: e.monthListFormat,
|
|
2789
2791
|
locale: e.locale,
|
|
2790
|
-
onBack: o[8] || (o[8] = (
|
|
2792
|
+
onBack: o[8] || (o[8] = (r) => e.viewShown = "year")
|
|
2791
2793
|
}, null, 8, ["pageDate", "selected", "onSelect", "lowerLimit", "upperLimit", "format", "locale"]), [
|
|
2792
2794
|
[Ve, e.viewShown === "month"]
|
|
2793
2795
|
]),
|
|
2794
|
-
|
|
2796
|
+
ue(U(u, {
|
|
2795
2797
|
pageDate: e.pageDate,
|
|
2796
|
-
"onUpdate:pageDate": o[9] || (o[9] = (
|
|
2798
|
+
"onUpdate:pageDate": o[9] || (o[9] = (r) => e.updatePageDate("day", r)),
|
|
2797
2799
|
selected: e.modelValue,
|
|
2798
2800
|
weekStartsOn: e.weekStartsOn,
|
|
2799
2801
|
lowerLimit: e.lowerLimit,
|
|
@@ -2805,11 +2807,11 @@ function Ma(e, o, t, n, a, l) {
|
|
|
2805
2807
|
"allow-outside-interval": e.allowOutsideInterval,
|
|
2806
2808
|
format: e.dayFormat,
|
|
2807
2809
|
onSelect: e.selectDay,
|
|
2808
|
-
onBack: o[10] || (o[10] = (
|
|
2810
|
+
onBack: o[10] || (o[10] = (r) => e.viewShown = "month")
|
|
2809
2811
|
}, null, 8, ["pageDate", "selected", "weekStartsOn", "lowerLimit", "upperLimit", "headingFormat", "disabledDates", "locale", "weekdayFormat", "allow-outside-interval", "format", "onSelect"]), [
|
|
2810
2812
|
[Ve, e.viewShown === "day"]
|
|
2811
2813
|
]),
|
|
2812
|
-
|
|
2814
|
+
ue(U(p, {
|
|
2813
2815
|
pageDate: e.pageDate,
|
|
2814
2816
|
visible: e.viewShown === "time",
|
|
2815
2817
|
selected: e.modelValue,
|
|
@@ -2832,8 +2834,8 @@ function Le(e) {
|
|
|
2832
2834
|
return function(o, t) {
|
|
2833
2835
|
var n = t != null && t.context ? String(t.context) : "standalone", a;
|
|
2834
2836
|
if (n === "formatting" && e.formattingValues) {
|
|
2835
|
-
var l = e.defaultFormattingWidth || e.defaultWidth,
|
|
2836
|
-
a = e.formattingValues[
|
|
2837
|
+
var l = e.defaultFormattingWidth || e.defaultWidth, s = t != null && t.width ? String(t.width) : l;
|
|
2838
|
+
a = e.formattingValues[s] || e.formattingValues[l];
|
|
2837
2839
|
} else {
|
|
2838
2840
|
var c = e.defaultWidth, u = t != null && t.width ? String(t.width) : e.defaultWidth;
|
|
2839
2841
|
a = e.values[u] || e.values[c];
|
|
@@ -2847,16 +2849,16 @@ function Se(e) {
|
|
|
2847
2849
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = t.width, a = n && e.matchPatterns[n] || e.matchPatterns[e.defaultMatchWidth], l = o.match(a);
|
|
2848
2850
|
if (!l)
|
|
2849
2851
|
return null;
|
|
2850
|
-
var
|
|
2851
|
-
return v.test(
|
|
2852
|
+
var s = l[0], c = n && e.parsePatterns[n] || e.parsePatterns[e.defaultParseWidth], u = Array.isArray(c) ? Ia(c, function(v) {
|
|
2853
|
+
return v.test(s);
|
|
2852
2854
|
}) : Aa(c, function(v) {
|
|
2853
|
-
return v.test(
|
|
2855
|
+
return v.test(s);
|
|
2854
2856
|
}), p;
|
|
2855
2857
|
p = e.valueCallback ? e.valueCallback(u) : u, p = t.valueCallback ? t.valueCallback(p) : p;
|
|
2856
|
-
var
|
|
2858
|
+
var r = o.slice(s.length);
|
|
2857
2859
|
return {
|
|
2858
2860
|
value: p,
|
|
2859
|
-
rest:
|
|
2861
|
+
rest: r
|
|
2860
2862
|
};
|
|
2861
2863
|
};
|
|
2862
2864
|
}
|
|
@@ -2878,11 +2880,11 @@ function za(e) {
|
|
|
2878
2880
|
var a = n[0], l = o.match(e.parsePattern);
|
|
2879
2881
|
if (!l)
|
|
2880
2882
|
return null;
|
|
2881
|
-
var
|
|
2882
|
-
|
|
2883
|
+
var s = e.valueCallback ? e.valueCallback(l[0]) : l[0];
|
|
2884
|
+
s = t.valueCallback ? t.valueCallback(s) : s;
|
|
2883
2885
|
var c = o.slice(a.length);
|
|
2884
2886
|
return {
|
|
2885
|
-
value:
|
|
2887
|
+
value: s,
|
|
2886
2888
|
rest: c
|
|
2887
2889
|
};
|
|
2888
2890
|
};
|
|
@@ -3232,14 +3234,14 @@ const yl = kl, bl = ["id"], _l = {
|
|
|
3232
3234
|
},
|
|
3233
3235
|
emits: ["update:modelValue", "change"],
|
|
3234
3236
|
setup(e, { emit: o }) {
|
|
3235
|
-
const t = e, n = o, { cleekOptions: a } = ae(
|
|
3237
|
+
const t = e, n = o, { cleekOptions: a } = ae(ne()), { windowWidth: l } = ke(), s = x(), c = x(Math.floor(Math.random() * 1e3)), u = x(`ck-input-date-${c.value}`), p = d({
|
|
3236
3238
|
get() {
|
|
3237
|
-
return
|
|
3239
|
+
return i(t.modelValue);
|
|
3238
3240
|
},
|
|
3239
3241
|
set(h) {
|
|
3240
3242
|
n("update:modelValue", g(h));
|
|
3241
3243
|
}
|
|
3242
|
-
}),
|
|
3244
|
+
}), r = d(() => {
|
|
3243
3245
|
const h = [];
|
|
3244
3246
|
return h.push(D.getGroupClass(t, l.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;
|
|
3245
3247
|
}), v = d(() => {
|
|
@@ -3247,10 +3249,10 @@ const yl = kl, bl = ["id"], _l = {
|
|
|
3247
3249
|
let T = "";
|
|
3248
3250
|
return a.value.darkMode && (T = a.value.darkModeColorItems), T && !D.isColorTemplateVariable(T) && h.push({ backgroundColor: T }), h;
|
|
3249
3251
|
});
|
|
3250
|
-
|
|
3251
|
-
|
|
3252
|
+
ce(() => t.modelValue, (h) => {
|
|
3253
|
+
s.value && (s.value.style.display = "block", s.value.focus(), s.value.style.display = "none"), n("change", h);
|
|
3252
3254
|
});
|
|
3253
|
-
function
|
|
3255
|
+
function i(h) {
|
|
3254
3256
|
if (!h)
|
|
3255
3257
|
return null;
|
|
3256
3258
|
const T = `${h}`.slice(0, 10);
|
|
@@ -3259,56 +3261,56 @@ const yl = kl, bl = ["id"], _l = {
|
|
|
3259
3261
|
function g(h) {
|
|
3260
3262
|
if (!h)
|
|
3261
3263
|
return null;
|
|
3262
|
-
const T = h.getFullYear(),
|
|
3263
|
-
return `${T}-${
|
|
3264
|
+
const T = h.getFullYear(), O = Ee.padZeros(h.getMonth() + 1, 2), P = Ee.padZeros(h.getDate(), 2);
|
|
3265
|
+
return `${T}-${O}-${P}`;
|
|
3264
3266
|
}
|
|
3265
3267
|
function f() {
|
|
3266
3268
|
const h = document.getElementById(`${u.value}`), T = h == null ? void 0 : h.querySelector(".v3dp__popout-day");
|
|
3267
|
-
let
|
|
3269
|
+
let O = { y: 0 };
|
|
3268
3270
|
const P = document.querySelector(".ck-popup__slot-body");
|
|
3269
|
-
P instanceof HTMLElement && (P.style.overflow = "hidden"), h && (
|
|
3270
|
-
const B = window.innerHeight -
|
|
3271
|
-
h && T && (B - 300 < 0 ? T.setAttribute("style", "bottom: 0px") : T.setAttribute("style", `top: ${
|
|
3271
|
+
P instanceof HTMLElement && (P.style.overflow = "hidden"), h && (O = h.getBoundingClientRect());
|
|
3272
|
+
const B = window.innerHeight - O.y;
|
|
3273
|
+
h && T && (B - 300 < 0 ? T.setAttribute("style", "bottom: 0px") : T.setAttribute("style", `top: ${O.y + 60}px;`), h.setAttribute("style", "overflow: hidden;"));
|
|
3272
3274
|
}
|
|
3273
3275
|
function k() {
|
|
3274
3276
|
const h = document.querySelector(".ck-popup__slot-body");
|
|
3275
3277
|
h instanceof HTMLElement && (h.style.overflow = "auto");
|
|
3276
3278
|
}
|
|
3277
3279
|
function b() {
|
|
3278
|
-
t.clearable && (p.value =
|
|
3280
|
+
t.clearable && (p.value = i(t.clearValue));
|
|
3279
3281
|
}
|
|
3280
3282
|
return (h, T) => {
|
|
3281
|
-
const
|
|
3282
|
-
return m(),
|
|
3283
|
+
const O = Y("ck-label"), P = Y("ck-icon"), B = Y("ck-div");
|
|
3284
|
+
return m(), S(B, { widthBreaks: h.widthBreaks }, {
|
|
3283
3285
|
default: N(() => {
|
|
3284
|
-
var
|
|
3286
|
+
var L;
|
|
3285
3287
|
return [
|
|
3286
3288
|
$("div", {
|
|
3287
|
-
class:
|
|
3289
|
+
class: M(["ck-input-date", r.value]),
|
|
3288
3290
|
id: u.value
|
|
3289
3291
|
}, [
|
|
3290
3292
|
$("input", {
|
|
3291
3293
|
ref_key: "refInput",
|
|
3292
|
-
ref:
|
|
3294
|
+
ref: s,
|
|
3293
3295
|
class: "ck-input-date--focus-absorber"
|
|
3294
3296
|
}, null, 512),
|
|
3295
|
-
U(
|
|
3297
|
+
U(O, null, {
|
|
3296
3298
|
default: N(() => [
|
|
3297
3299
|
G(A(h.label) + " ", 1),
|
|
3298
|
-
h.optional ? (m(), y("span", _l, "opcional")) :
|
|
3300
|
+
h.optional ? (m(), y("span", _l, "opcional")) : w("", !0)
|
|
3299
3301
|
]),
|
|
3300
3302
|
_: 1
|
|
3301
3303
|
}),
|
|
3302
3304
|
$("div", {
|
|
3303
|
-
class:
|
|
3305
|
+
class: M(["ck-picker-container", ((L = we(a)) == null ? void 0 : L.darkMode) && "picker-dark"])
|
|
3304
3306
|
}, [
|
|
3305
|
-
h.icon ? (m(),
|
|
3307
|
+
h.icon ? (m(), S(P, {
|
|
3306
3308
|
key: 0,
|
|
3307
3309
|
class: "ck-input__icon-left",
|
|
3308
3310
|
color: h.iconColor ? h.iconColor : "lightgrey",
|
|
3309
3311
|
icon: h.icon,
|
|
3310
3312
|
"icon-pack": h.iconPack
|
|
3311
|
-
}, null, 8, ["color", "icon", "icon-pack"])) :
|
|
3313
|
+
}, null, 8, ["color", "icon", "icon-pack"])) : w("", !0),
|
|
3312
3314
|
U(we(xa), {
|
|
3313
3315
|
modelValue: p.value,
|
|
3314
3316
|
"onUpdate:modelValue": T[0] || (T[0] = (j) => p.value = j),
|
|
@@ -3319,14 +3321,14 @@ const yl = kl, bl = ["id"], _l = {
|
|
|
3319
3321
|
disabled: h.disabled,
|
|
3320
3322
|
locale: we(yl)
|
|
3321
3323
|
}, null, 8, ["modelValue", "style", "disabled", "locale"]),
|
|
3322
|
-
h.clearable && h.modelValue != h.clearValue || h.iconRight ? (m(),
|
|
3324
|
+
h.clearable && h.modelValue != h.clearValue || h.iconRight ? (m(), S(P, {
|
|
3323
3325
|
key: 1,
|
|
3324
|
-
class:
|
|
3326
|
+
class: M(["ck-input__icon-right", { "icon-right__clearable": h.clearable }]),
|
|
3325
3327
|
color: h.clearable ? "grey" : h.iconColor ? h.iconColor : "lightgrey",
|
|
3326
3328
|
icon: h.clearable ? "xmark" : h.iconRight,
|
|
3327
3329
|
"icon-pack": h.clearable ? "font-awesome" : h.iconPack,
|
|
3328
3330
|
onClick: T[1] || (T[1] = (j) => b())
|
|
3329
|
-
}, null, 8, ["class", "color", "icon", "icon-pack"])) :
|
|
3331
|
+
}, null, 8, ["class", "color", "icon", "icon-pack"])) : w("", !0)
|
|
3330
3332
|
], 2)
|
|
3331
3333
|
], 10, bl)
|
|
3332
3334
|
];
|
|
@@ -3356,17 +3358,17 @@ const wl = /* @__PURE__ */ H(Cl, [["__scopeId", "data-v-3762640e"]]), $l = /* @_
|
|
|
3356
3358
|
n("update:modelValue", +be.hourToMin(l));
|
|
3357
3359
|
}
|
|
3358
3360
|
});
|
|
3359
|
-
return (l,
|
|
3361
|
+
return (l, s) => {
|
|
3360
3362
|
const c = Y("ck-input");
|
|
3361
|
-
return m(),
|
|
3363
|
+
return m(), S(c, {
|
|
3362
3364
|
modelValue: a.value,
|
|
3363
|
-
"onUpdate:modelValue":
|
|
3365
|
+
"onUpdate:modelValue": s[0] || (s[0] = (u) => a.value = u),
|
|
3364
3366
|
type: "time",
|
|
3365
3367
|
label: l.label,
|
|
3366
3368
|
group: l.group,
|
|
3367
3369
|
widthBreaks: l.widthBreaks,
|
|
3368
3370
|
disabled: l.disabled,
|
|
3369
|
-
onChange:
|
|
3371
|
+
onChange: s[1] || (s[1] = (u) => n("change", a.value))
|
|
3370
3372
|
}, null, 8, ["modelValue", "label", "group", "widthBreaks", "disabled"]);
|
|
3371
3373
|
};
|
|
3372
3374
|
}
|
|
@@ -3390,9 +3392,9 @@ const wl = /* @__PURE__ */ H(Cl, [["__scopeId", "data-v-3762640e"]]), $l = /* @_
|
|
|
3390
3392
|
icon: o.icon,
|
|
3391
3393
|
title: o.title
|
|
3392
3394
|
});
|
|
3393
|
-
}), (l,
|
|
3394
|
-
|
|
3395
|
-
])) :
|
|
3395
|
+
}), (l, s) => n.value ? (m(), y("div", Bl, [
|
|
3396
|
+
W(l.$slots, "default", {}, void 0, !0)
|
|
3397
|
+
])) : w("", !0);
|
|
3396
3398
|
}
|
|
3397
3399
|
});
|
|
3398
3400
|
const Pl = /* @__PURE__ */ H(Tl, [["__scopeId", "data-v-eaadcaf7"]]), Vl = { class: "ck-tabs" }, Dl = ["onClick"], Ll = { class: "ck-tabs__tab-content" }, Sl = "flat", Ml = /* @__PURE__ */ R({
|
|
@@ -3402,11 +3404,11 @@ const Pl = /* @__PURE__ */ H(Tl, [["__scopeId", "data-v-eaadcaf7"]]), Vl = { cla
|
|
|
3402
3404
|
},
|
|
3403
3405
|
emits: ["tabSelected"],
|
|
3404
3406
|
setup(e, { expose: o, emit: t }) {
|
|
3405
|
-
const n = x(null), a = x(!1), l = x(!1),
|
|
3407
|
+
const n = x(null), a = x(!1), l = x(!1), s = e, c = t, u = x([]), p = x(null), r = d(() => s.type ? s.type : Sl), v = d(() => {
|
|
3406
3408
|
const b = [];
|
|
3407
|
-
return
|
|
3409
|
+
return r.value && b.push(`ck-tabs__header--button-${r.value}`), b;
|
|
3408
3410
|
});
|
|
3409
|
-
function
|
|
3411
|
+
function i(b) {
|
|
3410
3412
|
u.value.forEach((h, T) => {
|
|
3411
3413
|
h.selectTab(T === b);
|
|
3412
3414
|
}), p.value = b, c("tabSelected", b);
|
|
@@ -3429,16 +3431,16 @@ const Pl = /* @__PURE__ */ H(Tl, [["__scopeId", "data-v-eaadcaf7"]]), Vl = { cla
|
|
|
3429
3431
|
var h;
|
|
3430
3432
|
g(), (h = n.value) == null || h.addEventListener("scroll", g);
|
|
3431
3433
|
const b = u.value.find((T) => T.active) || u.value[0];
|
|
3432
|
-
b &&
|
|
3434
|
+
b && i(u.value.indexOf(b));
|
|
3433
3435
|
}), o({
|
|
3434
|
-
selectTab:
|
|
3436
|
+
selectTab: i
|
|
3435
3437
|
}), Ut(g), (b, h) => {
|
|
3436
|
-
const T = Y("ck-icon"),
|
|
3438
|
+
const T = Y("ck-icon"), O = Y("ck-circle");
|
|
3437
3439
|
return m(), y("div", Vl, [
|
|
3438
3440
|
$("div", {
|
|
3439
|
-
class:
|
|
3441
|
+
class: M(["ck-tabs__header", { "has-left-arrow": a.value, "has-right-arrow": l.value }])
|
|
3440
3442
|
}, [
|
|
3441
|
-
a.value ? (m(),
|
|
3443
|
+
a.value ? (m(), S(O, {
|
|
3442
3444
|
key: 0,
|
|
3443
3445
|
class: "header--scroll-btn",
|
|
3444
3446
|
color: "primary",
|
|
@@ -3449,25 +3451,25 @@ const Pl = /* @__PURE__ */ H(Tl, [["__scopeId", "data-v-eaadcaf7"]]), Vl = { cla
|
|
|
3449
3451
|
U(T, { icon: "chevron-left" })
|
|
3450
3452
|
]),
|
|
3451
3453
|
_: 1
|
|
3452
|
-
})) :
|
|
3454
|
+
})) : w("", !0),
|
|
3453
3455
|
$("div", {
|
|
3454
3456
|
ref_key: "tabsContainer",
|
|
3455
3457
|
ref: n,
|
|
3456
|
-
class:
|
|
3458
|
+
class: M(["ck-tabs__header-content", { "header-content--flat": r.value === "flat" }])
|
|
3457
3459
|
}, [
|
|
3458
|
-
(m(!0), y(
|
|
3460
|
+
(m(!0), y(K, null, re(u.value, (P, B) => (m(), y("div", {
|
|
3459
3461
|
key: B,
|
|
3460
|
-
class:
|
|
3461
|
-
onClick: (
|
|
3462
|
+
class: M([v.value, { "is-selected": p.value === B }]),
|
|
3463
|
+
onClick: (L) => i(B)
|
|
3462
3464
|
}, [
|
|
3463
|
-
P.icon ? (m(),
|
|
3465
|
+
P.icon ? (m(), S(T, {
|
|
3464
3466
|
key: 0,
|
|
3465
3467
|
icon: P.icon
|
|
3466
|
-
}, null, 8, ["icon"])) :
|
|
3468
|
+
}, null, 8, ["icon"])) : w("", !0),
|
|
3467
3469
|
G(" " + A(P.title), 1)
|
|
3468
3470
|
], 10, Dl))), 128))
|
|
3469
3471
|
], 2),
|
|
3470
|
-
l.value ? (m(),
|
|
3472
|
+
l.value ? (m(), S(O, {
|
|
3471
3473
|
key: 1,
|
|
3472
3474
|
class: "header--scroll-btn",
|
|
3473
3475
|
color: "primary",
|
|
@@ -3478,10 +3480,10 @@ const Pl = /* @__PURE__ */ H(Tl, [["__scopeId", "data-v-eaadcaf7"]]), Vl = { cla
|
|
|
3478
3480
|
U(T, { icon: "chevron-right" })
|
|
3479
3481
|
]),
|
|
3480
3482
|
_: 1
|
|
3481
|
-
})) :
|
|
3483
|
+
})) : w("", !0)
|
|
3482
3484
|
], 2),
|
|
3483
3485
|
$("div", Ll, [
|
|
3484
|
-
|
|
3486
|
+
W(b.$slots, "default", {}, void 0, !0)
|
|
3485
3487
|
])
|
|
3486
3488
|
]);
|
|
3487
3489
|
};
|
|
@@ -3503,7 +3505,7 @@ const xl = /* @__PURE__ */ H(Ml, [["__scopeId", "data-v-1d834ae1"]]), Al = "roun
|
|
|
3503
3505
|
const t = e, n = d(() => t.layout ? t.layout : Al), a = d(() => {
|
|
3504
3506
|
const c = [];
|
|
3505
3507
|
return n.value && c.push(`layout-${n.value}`), c;
|
|
3506
|
-
}), l = o,
|
|
3508
|
+
}), l = o, s = d({
|
|
3507
3509
|
get() {
|
|
3508
3510
|
return t.modelValue;
|
|
3509
3511
|
},
|
|
@@ -3514,27 +3516,27 @@ const xl = /* @__PURE__ */ H(Ml, [["__scopeId", "data-v-1d834ae1"]]), Al = "roun
|
|
|
3514
3516
|
return (c, u) => {
|
|
3515
3517
|
const p = Y("ck-icon");
|
|
3516
3518
|
return m(), y("div", {
|
|
3517
|
-
class:
|
|
3518
|
-
onClick: u[0] || (u[0] = (
|
|
3519
|
+
class: M(["ck-toggle", [a.value, { "is-active": s.value }]]),
|
|
3520
|
+
onClick: u[0] || (u[0] = (r) => s.value = !s.value)
|
|
3519
3521
|
}, [
|
|
3520
|
-
c.icon ? (m(),
|
|
3522
|
+
c.icon ? (m(), S(p, {
|
|
3521
3523
|
key: 0,
|
|
3522
3524
|
icon: c.icon,
|
|
3523
3525
|
iconPack: c.iconPack
|
|
3524
|
-
}, null, 8, ["icon", "iconPack"])) :
|
|
3525
|
-
|
|
3526
|
-
c.iconRight ? (m(),
|
|
3526
|
+
}, null, 8, ["icon", "iconPack"])) : w("", !0),
|
|
3527
|
+
W(c.$slots, "default", {}, void 0, !0),
|
|
3528
|
+
c.iconRight ? (m(), S(p, {
|
|
3527
3529
|
key: 1,
|
|
3528
3530
|
icon: c.iconRight,
|
|
3529
3531
|
iconPack: c.iconPack
|
|
3530
|
-
}, null, 8, ["icon", "iconPack"])) :
|
|
3532
|
+
}, null, 8, ["icon", "iconPack"])) : w("", !0)
|
|
3531
3533
|
], 2);
|
|
3532
3534
|
};
|
|
3533
3535
|
}
|
|
3534
3536
|
});
|
|
3535
3537
|
const zl = /* @__PURE__ */ H(Il, [["__scopeId", "data-v-f613ffcb"]]), Rl = { class: "ck-toggle-group" }, Wl = /* @__PURE__ */ R({
|
|
3536
3538
|
__name: "ck-toggle-group",
|
|
3537
|
-
props: /* @__PURE__ */
|
|
3539
|
+
props: /* @__PURE__ */ oe({
|
|
3538
3540
|
options: {},
|
|
3539
3541
|
layout: {},
|
|
3540
3542
|
label: {},
|
|
@@ -3546,54 +3548,54 @@ const zl = /* @__PURE__ */ H(Il, [["__scopeId", "data-v-f613ffcb"]]), Rl = { cla
|
|
|
3546
3548
|
modelValue: { required: !0 },
|
|
3547
3549
|
modelModifiers: {}
|
|
3548
3550
|
}),
|
|
3549
|
-
emits: /* @__PURE__ */
|
|
3551
|
+
emits: /* @__PURE__ */ oe(["change"], ["update:modelValue"]),
|
|
3550
3552
|
setup(e, { emit: o }) {
|
|
3551
3553
|
const t = ge(e, "modelValue"), n = e, a = o;
|
|
3552
|
-
function l(
|
|
3553
|
-
return
|
|
3554
|
+
function l(r) {
|
|
3555
|
+
return r.name;
|
|
3554
3556
|
}
|
|
3555
|
-
function
|
|
3556
|
-
return
|
|
3557
|
+
function s(r) {
|
|
3558
|
+
return r.id;
|
|
3557
3559
|
}
|
|
3558
|
-
function c(
|
|
3559
|
-
if (
|
|
3560
|
-
return
|
|
3560
|
+
function c(r) {
|
|
3561
|
+
if (r.icon)
|
|
3562
|
+
return r.icon;
|
|
3561
3563
|
}
|
|
3562
|
-
function u(
|
|
3563
|
-
const v =
|
|
3564
|
+
function u(r) {
|
|
3565
|
+
const v = s(r);
|
|
3564
3566
|
return n.multipleSelection ? Array.isArray(t.value) && t.value.includes(v) : t.value === v;
|
|
3565
3567
|
}
|
|
3566
|
-
function p(
|
|
3567
|
-
const v =
|
|
3568
|
+
function p(r) {
|
|
3569
|
+
const v = s(r);
|
|
3568
3570
|
if (n.multipleSelection) {
|
|
3569
|
-
const
|
|
3570
|
-
g !== -1 ?
|
|
3571
|
+
const i = Array.isArray(t.value) ? [...t.value] : [], g = i.indexOf(v);
|
|
3572
|
+
g !== -1 ? i.splice(g, 1) : i.push(v), t.value = i;
|
|
3571
3573
|
} else
|
|
3572
3574
|
t.value = v;
|
|
3573
3575
|
a("change");
|
|
3574
3576
|
}
|
|
3575
|
-
return (
|
|
3576
|
-
const
|
|
3577
|
+
return (r, v) => {
|
|
3578
|
+
const i = Y("ck-label"), g = Y("ck-toggle");
|
|
3577
3579
|
return m(), y("div", Rl, [
|
|
3578
|
-
|
|
3580
|
+
r.label ? (m(), S(i, {
|
|
3579
3581
|
key: 0,
|
|
3580
|
-
align:
|
|
3582
|
+
align: r.labelAlign
|
|
3581
3583
|
}, {
|
|
3582
3584
|
default: N(() => [
|
|
3583
|
-
G(A(
|
|
3585
|
+
G(A(r.label), 1)
|
|
3584
3586
|
]),
|
|
3585
3587
|
_: 1
|
|
3586
|
-
}, 8, ["align"])) :
|
|
3588
|
+
}, 8, ["align"])) : w("", !0),
|
|
3587
3589
|
$("div", {
|
|
3588
3590
|
class: "ck-toggle-group__options",
|
|
3589
|
-
style: F({ gap:
|
|
3591
|
+
style: F({ gap: r.gap })
|
|
3590
3592
|
}, [
|
|
3591
|
-
(m(!0), y(
|
|
3593
|
+
(m(!0), y(K, null, re(r.options, (f) => (m(), S(g, {
|
|
3592
3594
|
modelValue: u(f),
|
|
3593
|
-
key:
|
|
3595
|
+
key: s(f),
|
|
3594
3596
|
icon: c(f),
|
|
3595
|
-
iconPack:
|
|
3596
|
-
layout:
|
|
3597
|
+
iconPack: r.iconPack,
|
|
3598
|
+
layout: r.layout,
|
|
3597
3599
|
preventAutoUpdate: "",
|
|
3598
3600
|
onClick: (k) => p(f)
|
|
3599
3601
|
}, {
|
|
@@ -3635,10 +3637,10 @@ const Ol = /* @__PURE__ */ H(Wl, [["__scopeId", "data-v-43006e82"]]), El = ["onC
|
|
|
3635
3637
|
emits: ["click", "action"],
|
|
3636
3638
|
setup(e, { emit: o }) {
|
|
3637
3639
|
const t = e, n = o, a = x(!1), l = d(() => {
|
|
3638
|
-
var
|
|
3639
|
-
return !!((
|
|
3640
|
-
}),
|
|
3641
|
-
const { extraActions:
|
|
3640
|
+
var r;
|
|
3641
|
+
return !!((r = t.extraActions) != null && r.length);
|
|
3642
|
+
}), s = d(() => {
|
|
3643
|
+
const { extraActions: r, ...v } = t;
|
|
3642
3644
|
return l.value ? { ...v, group: "left" } : v;
|
|
3643
3645
|
}), c = d(() => ({
|
|
3644
3646
|
type: t.type,
|
|
@@ -3649,67 +3651,67 @@ const Ol = /* @__PURE__ */ H(Wl, [["__scopeId", "data-v-43006e82"]]), El = ["onC
|
|
|
3649
3651
|
disabled: t.disabled,
|
|
3650
3652
|
group: "right"
|
|
3651
3653
|
}));
|
|
3652
|
-
function u(
|
|
3653
|
-
n("click",
|
|
3654
|
+
function u(r) {
|
|
3655
|
+
n("click", r), n("action", Fl);
|
|
3654
3656
|
}
|
|
3655
|
-
function p(
|
|
3656
|
-
n("action",
|
|
3657
|
+
function p(r) {
|
|
3658
|
+
n("action", r), a.value = !1;
|
|
3657
3659
|
}
|
|
3658
|
-
return (
|
|
3660
|
+
return (r, v) => (m(), y("div", {
|
|
3659
3661
|
class: "dropdown-btn__outer",
|
|
3660
|
-
onMouseleave: v[4] || (v[4] = (
|
|
3662
|
+
onMouseleave: v[4] || (v[4] = (i) => a.value = !1)
|
|
3661
3663
|
}, [
|
|
3662
|
-
U(Te, Ie(
|
|
3663
|
-
onClick: v[0] || (v[0] = (
|
|
3664
|
+
U(Te, Ie(s.value, {
|
|
3665
|
+
onClick: v[0] || (v[0] = (i) => u(i))
|
|
3664
3666
|
}), {
|
|
3665
3667
|
default: N(() => [
|
|
3666
|
-
|
|
3668
|
+
W(r.$slots, "default", {}, void 0, !0)
|
|
3667
3669
|
]),
|
|
3668
3670
|
_: 3
|
|
3669
3671
|
}, 16),
|
|
3670
3672
|
l.value ? (m(), y("div", {
|
|
3671
3673
|
key: 0,
|
|
3672
3674
|
class: "dropdown-btn__chevron-area",
|
|
3673
|
-
onClick: v[1] || (v[1] = (
|
|
3674
|
-
onMouseenter: v[2] || (v[2] = (
|
|
3675
|
+
onClick: v[1] || (v[1] = (i) => a.value = !a.value),
|
|
3676
|
+
onMouseenter: v[2] || (v[2] = (i) => a.value = !0)
|
|
3675
3677
|
}, [
|
|
3676
3678
|
U(Te, Yt(Gt(c.value)), {
|
|
3677
3679
|
default: N(() => [
|
|
3678
|
-
U(
|
|
3680
|
+
U(te, {
|
|
3679
3681
|
icon: "angle-down",
|
|
3680
3682
|
size: "xs"
|
|
3681
3683
|
})
|
|
3682
3684
|
]),
|
|
3683
3685
|
_: 1
|
|
3684
3686
|
}, 16)
|
|
3685
|
-
], 32)) :
|
|
3687
|
+
], 32)) : w("", !0),
|
|
3686
3688
|
U(Zt, { name: "fade" }, {
|
|
3687
3689
|
default: N(() => [
|
|
3688
3690
|
a.value ? (m(), y("div", {
|
|
3689
3691
|
key: 0,
|
|
3690
3692
|
class: "extra-actions__container",
|
|
3691
|
-
onMouseenter: v[3] || (v[3] = (
|
|
3693
|
+
onMouseenter: v[3] || (v[3] = (i) => a.value = !0)
|
|
3692
3694
|
}, [
|
|
3693
|
-
(m(!0), y(
|
|
3694
|
-
key:
|
|
3695
|
+
(m(!0), y(K, null, re(r.extraActions, (i) => (m(), y("div", {
|
|
3696
|
+
key: i.id,
|
|
3695
3697
|
class: "extra-action__item",
|
|
3696
3698
|
style: F({ color: c.value.textColor }),
|
|
3697
|
-
onClick: (g) => p(
|
|
3699
|
+
onClick: (g) => p(i.id)
|
|
3698
3700
|
}, [
|
|
3699
|
-
$("span", Nl, A(
|
|
3700
|
-
U(
|
|
3701
|
+
$("span", Nl, A(i.name), 1),
|
|
3702
|
+
U(te, {
|
|
3701
3703
|
icon: "angle-left",
|
|
3702
3704
|
size: "xs"
|
|
3703
3705
|
})
|
|
3704
3706
|
], 12, El))), 128))
|
|
3705
|
-
], 32)) :
|
|
3707
|
+
], 32)) : w("", !0)
|
|
3706
3708
|
]),
|
|
3707
3709
|
_: 1
|
|
3708
3710
|
})
|
|
3709
3711
|
], 32));
|
|
3710
3712
|
}
|
|
3711
3713
|
});
|
|
3712
|
-
const Hl = /* @__PURE__ */ H(jl, [["__scopeId", "data-v-
|
|
3714
|
+
const Hl = /* @__PURE__ */ H(jl, [["__scopeId", "data-v-156da60c"]]), ql = {
|
|
3713
3715
|
key: 0,
|
|
3714
3716
|
class: "ck-card__header-title"
|
|
3715
3717
|
}, Ul = { class: "ck-card__body" }, Yl = {
|
|
@@ -3727,7 +3729,7 @@ const Hl = /* @__PURE__ */ H(jl, [["__scopeId", "data-v-0db22e5d"]]), ql = {
|
|
|
3727
3729
|
},
|
|
3728
3730
|
emits: ["update:modelValue", "closeCard"],
|
|
3729
3731
|
setup(e, { emit: o }) {
|
|
3730
|
-
const t = e, n = o, { cleekOptions: a } = ae(
|
|
3732
|
+
const t = e, n = o, { cleekOptions: a } = ae(ne()), l = d(() => typeof t.modelValue < "u"), s = d({
|
|
3731
3733
|
get() {
|
|
3732
3734
|
return !l.value || t.modelValue === null ? !0 : !!t.modelValue;
|
|
3733
3735
|
},
|
|
@@ -3739,34 +3741,34 @@ const Hl = /* @__PURE__ */ H(jl, [["__scopeId", "data-v-0db22e5d"]]), ql = {
|
|
|
3739
3741
|
return p && u.push(`layout--${p}`), t.clickable && u.push("clickable"), u;
|
|
3740
3742
|
});
|
|
3741
3743
|
return (u, p) => {
|
|
3742
|
-
const
|
|
3743
|
-
return
|
|
3744
|
+
const r = Y("ck-icon");
|
|
3745
|
+
return s.value ? (m(), y("div", {
|
|
3744
3746
|
key: 0,
|
|
3745
|
-
class:
|
|
3747
|
+
class: M(["ck-card", c.value])
|
|
3746
3748
|
}, [
|
|
3747
3749
|
u.title || u.$slots.header || l.value ? (m(), y("div", {
|
|
3748
3750
|
key: 0,
|
|
3749
|
-
class:
|
|
3751
|
+
class: M(["ck-card__header", { "is-close-button-visible": l.value }])
|
|
3750
3752
|
}, [
|
|
3751
|
-
u.title || u.$slots.header ? (m(), y("div", ql, A(u.title), 1)) :
|
|
3752
|
-
|
|
3753
|
+
u.title || u.$slots.header ? (m(), y("div", ql, A(u.title), 1)) : w("", !0),
|
|
3754
|
+
W(u.$slots, "header", {}, void 0, !0),
|
|
3753
3755
|
l.value ? (m(), y("div", {
|
|
3754
3756
|
key: 1,
|
|
3755
3757
|
class: "ck-card__close-btn",
|
|
3756
|
-
onClick: p[0] || (p[0] = (v) =>
|
|
3758
|
+
onClick: p[0] || (p[0] = (v) => s.value = !1)
|
|
3757
3759
|
}, [
|
|
3758
|
-
U(
|
|
3759
|
-
])) :
|
|
3760
|
-
], 2)) :
|
|
3760
|
+
U(r, { icon: "times" })
|
|
3761
|
+
])) : w("", !0)
|
|
3762
|
+
], 2)) : w("", !0),
|
|
3761
3763
|
$("div", Ul, [
|
|
3762
|
-
u.subtitle ? (m(), y("div", Yl, A(u.subtitle), 1)) :
|
|
3764
|
+
u.subtitle ? (m(), y("div", Yl, A(u.subtitle), 1)) : w("", !0),
|
|
3763
3765
|
$("div", {
|
|
3764
|
-
class:
|
|
3766
|
+
class: M(["ck-card__content", { "content-block": u.block }])
|
|
3765
3767
|
}, [
|
|
3766
|
-
|
|
3768
|
+
W(u.$slots, "default", {}, void 0, !0)
|
|
3767
3769
|
], 2)
|
|
3768
3770
|
])
|
|
3769
|
-
], 2)) :
|
|
3771
|
+
], 2)) : w("", !0);
|
|
3770
3772
|
};
|
|
3771
3773
|
}
|
|
3772
3774
|
});
|
|
@@ -3788,43 +3790,43 @@ const Zl = /* @__PURE__ */ H(Gl, [["__scopeId", "data-v-780265b9"]]), Kl = ["col
|
|
|
3788
3790
|
},
|
|
3789
3791
|
emits: ["click"],
|
|
3790
3792
|
setup(e, { emit: o }) {
|
|
3791
|
-
const t = e, { windowWidth: n } = ke(), { cleekOptions: a } = ae(
|
|
3792
|
-
const
|
|
3793
|
-
return c.value === "outlined" ?
|
|
3793
|
+
const t = e, { windowWidth: n } = ke(), { cleekOptions: a } = ae(ne()), l = 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 i = [];
|
|
3795
|
+
return c.value === "outlined" ? i.push("type--outlined") : c.value === "shadow" ? i.push("type--shadow") : D.isColorTemplateVariable(u.value) && i.push(`ck-component__bg-color--${u.value}`), s.value && i.push(`layout--${s.value}`), i.push(D.getGroupClass(t, n.value)), i.push(`size-${t.size || Jl}`), t.align && i.push(`align--${t.align}`), t.nowrap && i.push(`ck-chip--${t.nowrap}`), t.clickable && i.push("clickable"), i;
|
|
3794
3796
|
});
|
|
3795
|
-
function
|
|
3796
|
-
return D.isColorTemplateVariable(
|
|
3797
|
+
function r(i) {
|
|
3798
|
+
return D.isColorTemplateVariable(i) ? D.getColorHexFromTemplateVariable(i, a.value.colors) : i;
|
|
3797
3799
|
}
|
|
3798
3800
|
const v = d(() => {
|
|
3799
|
-
const
|
|
3800
|
-
if (
|
|
3801
|
-
const f =
|
|
3802
|
-
|
|
3801
|
+
const i = [], g = r(u.value);
|
|
3802
|
+
if (i.push({ "--chip-bg": g }), c.value === "outlined") {
|
|
3803
|
+
const f = r(t.textColor || u.value);
|
|
3804
|
+
i.push({ borderColor: g }), i.push({ color: f });
|
|
3803
3805
|
} else
|
|
3804
|
-
c.value === "shadow" ? (D.isColorTemplateVariable(u.value) ||
|
|
3805
|
-
return
|
|
3806
|
+
c.value === "shadow" ? (D.isColorTemplateVariable(u.value) || i.push({ backgroundColor: u.value }), i.push({ color: t.textColor || mt })) : (D.isColorTemplateVariable(u.value) || i.push({ backgroundColor: u.value }), i.push({ color: t.textColor || mt }));
|
|
3807
|
+
return i;
|
|
3806
3808
|
});
|
|
3807
|
-
return (
|
|
3808
|
-
class:
|
|
3809
|
-
color:
|
|
3809
|
+
return (i, g) => (m(), y("div", {
|
|
3810
|
+
class: M(["ck-chip", p.value]),
|
|
3811
|
+
color: i.color,
|
|
3810
3812
|
style: F(v.value),
|
|
3811
3813
|
onClick: g[0] || (g[0] = (f) => l("click", f))
|
|
3812
3814
|
}, [
|
|
3813
|
-
|
|
3815
|
+
i.icon ? (m(), S(te, {
|
|
3814
3816
|
key: 0,
|
|
3815
3817
|
class: "pr-2",
|
|
3816
|
-
icon:
|
|
3817
|
-
"icon-pack":
|
|
3818
|
-
}, null, 8, ["icon", "icon-pack"])) :
|
|
3818
|
+
icon: i.icon,
|
|
3819
|
+
"icon-pack": i.iconPack
|
|
3820
|
+
}, null, 8, ["icon", "icon-pack"])) : w("", !0),
|
|
3819
3821
|
$("span", null, [
|
|
3820
|
-
|
|
3822
|
+
W(i.$slots, "default", {}, void 0, !0)
|
|
3821
3823
|
]),
|
|
3822
|
-
|
|
3824
|
+
i.iconRight ? (m(), S(te, {
|
|
3823
3825
|
key: 1,
|
|
3824
3826
|
class: "pl-2",
|
|
3825
|
-
icon:
|
|
3826
|
-
"icon-pack":
|
|
3827
|
-
}, null, 8, ["icon", "icon-pack"])) :
|
|
3827
|
+
icon: i.iconRight,
|
|
3828
|
+
"icon-pack": i.iconPack
|
|
3829
|
+
}, null, 8, ["icon", "icon-pack"])) : w("", !0)
|
|
3828
3830
|
], 14, Kl));
|
|
3829
3831
|
}
|
|
3830
3832
|
});
|
|
@@ -3841,26 +3843,26 @@ const oi = /* @__PURE__ */ H(ti, [["__scopeId", "data-v-2bb1c329"]]), ni = "prim
|
|
|
3841
3843
|
emits: ["click"],
|
|
3842
3844
|
setup(e, { emit: o }) {
|
|
3843
3845
|
const t = e, n = o, a = d(() => {
|
|
3844
|
-
const
|
|
3846
|
+
const s = [];
|
|
3845
3847
|
let c = t.size;
|
|
3846
|
-
return t.size !== "s" && t.size !== "l" && t.size !== "xs" && (c = ai),
|
|
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;
|
|
3847
3849
|
}), l = d(() => {
|
|
3848
|
-
const
|
|
3849
|
-
return t.sizeInPx && (
|
|
3850
|
+
const s = [];
|
|
3851
|
+
return t.sizeInPx && (s.push({ height: t.sizeInPx }), s.push({ width: t.sizeInPx })), (t.color || D.isColorTemplateVariable(t.color)) && (s.push({ backgroundColor: t.color }), s.push({ color: t.textColor || li })), s;
|
|
3850
3852
|
});
|
|
3851
|
-
return (
|
|
3853
|
+
return (s, c) => {
|
|
3852
3854
|
const u = Y("ck-icon");
|
|
3853
3855
|
return m(), y("div", {
|
|
3854
|
-
class:
|
|
3856
|
+
class: M(["ck-circle", a.value]),
|
|
3855
3857
|
style: F(l.value),
|
|
3856
3858
|
onClick: c[0] || (c[0] = (p) => n("click", p))
|
|
3857
3859
|
}, [
|
|
3858
|
-
|
|
3860
|
+
s.icon ? (m(), S(u, {
|
|
3859
3861
|
key: 0,
|
|
3860
|
-
icon:
|
|
3861
|
-
iconPack:
|
|
3862
|
-
}, null, 8, ["icon", "iconPack"])) :
|
|
3863
|
-
|
|
3862
|
+
icon: s.icon,
|
|
3863
|
+
iconPack: s.iconPack
|
|
3864
|
+
}, null, 8, ["icon", "iconPack"])) : w("", !0),
|
|
3865
|
+
W(s.$slots, "default", {}, void 0, !0)
|
|
3864
3866
|
], 6);
|
|
3865
3867
|
};
|
|
3866
3868
|
}
|
|
@@ -3874,7 +3876,7 @@ const si = /* @__PURE__ */ H(ii, [["__scopeId", "data-v-ba0b3fb6"]]), ri = /* @_
|
|
|
3874
3876
|
},
|
|
3875
3877
|
emits: ["click"],
|
|
3876
3878
|
setup(e, { emit: o }) {
|
|
3877
|
-
const t = e, n = o, { cleekOptions: a } = ae(
|
|
3879
|
+
const t = e, n = o, { cleekOptions: a } = ae(ne()), { windowWidth: l } = ke(), s = d(() => {
|
|
3878
3880
|
const c = [];
|
|
3879
3881
|
if (t.widthBreaks) {
|
|
3880
3882
|
const p = D.getWidthByWidthBreaks(t.widthBreaks, l.value);
|
|
@@ -3885,10 +3887,10 @@ const si = /* @__PURE__ */ H(ii, [["__scopeId", "data-v-ba0b3fb6"]]), ri = /* @_
|
|
|
3885
3887
|
});
|
|
3886
3888
|
return (c, u) => (m(), y("div", {
|
|
3887
3889
|
class: "ck-div",
|
|
3888
|
-
style: F(
|
|
3890
|
+
style: F(s.value),
|
|
3889
3891
|
onClick: u[0] || (u[0] = (p) => n("click", p))
|
|
3890
3892
|
}, [
|
|
3891
|
-
|
|
3893
|
+
W(c.$slots, "default")
|
|
3892
3894
|
], 4));
|
|
3893
3895
|
}
|
|
3894
3896
|
});
|
|
@@ -3916,27 +3918,27 @@ const ui = {
|
|
|
3916
3918
|
},
|
|
3917
3919
|
emits: ["click"],
|
|
3918
3920
|
setup(e, { emit: o }) {
|
|
3919
|
-
const t = e, n = o, { cleekOptions: a } = ae(
|
|
3921
|
+
const t = e, n = o, { cleekOptions: a } = ae(ne()), l = 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(() => {
|
|
3920
3922
|
const f = [];
|
|
3921
|
-
return t.size && f.push(`ck-img__size--${t.size}`), t.rounded && f.push("is-rounded"), t.hasBorder && (f.push("ck-img__has-border"), D.isColorTemplateVariable(
|
|
3922
|
-
}),
|
|
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"), D.isColorTemplateVariable(i.value) && f.push(`ck-component__border-color--${i.value}`)), t.zoom && f.push("zoom-able"), f;
|
|
3924
|
+
}), r = d(() => {
|
|
3923
3925
|
const f = [];
|
|
3924
3926
|
t.sizeAbsolute && (f.push({ width: t.sizeAbsolute }), f.push({ height: t.sizeAbsolute }));
|
|
3925
3927
|
let k = t.radius;
|
|
3926
|
-
return typeof t.radius > "u" && a.value.styles.layout === "squared" && (k = "0px"), k && f.push({ "border-radius": k }), t.hasBorder && (D.isColorTemplateVariable(
|
|
3928
|
+
return typeof t.radius > "u" && a.value.styles.layout === "squared" && (k = "0px"), k && f.push({ "border-radius": k }), t.hasBorder && (D.isColorTemplateVariable(i.value) || f.push({ "border-color": i.value })), f;
|
|
3927
3929
|
}), v = d(() => {
|
|
3928
3930
|
const f = [];
|
|
3929
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;
|
|
3930
|
-
}),
|
|
3932
|
+
}), i = d(() => t.borderColor ? t.borderColor : ui.defaultImgBorderColor);
|
|
3931
3933
|
function g(f) {
|
|
3932
3934
|
let k = a.value.img.basePath;
|
|
3933
3935
|
return a.value.img.basePath && (k = a.value.img.basePath), k || (k = a.value.img.basePathStatic), t.dynamic && (k = a.value.img.basePathDynamic), `${k}${f}`;
|
|
3934
3936
|
}
|
|
3935
3937
|
return _e(() => {
|
|
3936
|
-
|
|
3938
|
+
s.value = !0;
|
|
3937
3939
|
}), (f, k) => (m(), y("div", {
|
|
3938
|
-
class:
|
|
3939
|
-
style: F(
|
|
3940
|
+
class: M(["ck-img", p.value]),
|
|
3941
|
+
style: F(r.value),
|
|
3940
3942
|
onClick: k[1] || (k[1] = (b) => n("click", b))
|
|
3941
3943
|
}, [
|
|
3942
3944
|
$("img", {
|
|
@@ -3975,7 +3977,7 @@ const pi = /* @__PURE__ */ H(di, [["__scopeId", "data-v-485e840f"]]), vi = ["onK
|
|
|
3975
3977
|
}), l = d(() => ({
|
|
3976
3978
|
"aria-disabled": t.disabled,
|
|
3977
3979
|
tabindex: t.disabled ? void 0 : "0"
|
|
3978
|
-
})),
|
|
3980
|
+
})), s = d(() => {
|
|
3979
3981
|
if (t.options)
|
|
3980
3982
|
return t.options;
|
|
3981
3983
|
if (typeof t.value !== void 0) {
|
|
@@ -3987,24 +3989,24 @@ const pi = /* @__PURE__ */ H(di, [["__scopeId", "data-v-485e840f"]]), vi = ["onK
|
|
|
3987
3989
|
const p = [];
|
|
3988
3990
|
return t.vertical && p.push("vertical"), t.classes && p.push(t.classes), p;
|
|
3989
3991
|
});
|
|
3990
|
-
function u(p,
|
|
3992
|
+
function u(p, r) {
|
|
3991
3993
|
p.value = a, n("change", a);
|
|
3992
3994
|
}
|
|
3993
|
-
return (p,
|
|
3995
|
+
return (p, r) => (m(!0), y(K, null, re(s.value, (v, i) => (m(), y("label", Ie({
|
|
3994
3996
|
class: "ck-radio",
|
|
3995
|
-
key: `radio-${
|
|
3997
|
+
key: `radio-${i}`,
|
|
3996
3998
|
ref_for: !0
|
|
3997
3999
|
}, l.value, {
|
|
3998
4000
|
class: c.value,
|
|
3999
|
-
onKeydown:
|
|
4001
|
+
onKeydown: r[1] || (r[1] = he(se(() => {
|
|
4000
4002
|
}, ["prevent"]), ["space"])),
|
|
4001
4003
|
onKeyup: [
|
|
4002
4004
|
he((g) => u(v), ["enter"]),
|
|
4003
4005
|
he((g) => u(v), ["space"])
|
|
4004
4006
|
]
|
|
4005
4007
|
}), [
|
|
4006
|
-
|
|
4007
|
-
"onUpdate:modelValue":
|
|
4008
|
+
ue($("input", {
|
|
4009
|
+
"onUpdate:modelValue": r[0] || (r[0] = (g) => a.value = g),
|
|
4008
4010
|
class: "c-Radio__input",
|
|
4009
4011
|
"aria-hidden": "true",
|
|
4010
4012
|
type: "radio",
|
|
@@ -4014,8 +4016,8 @@ const pi = /* @__PURE__ */ H(di, [["__scopeId", "data-v-485e840f"]]), vi = ["onK
|
|
|
4014
4016
|
}, null, 8, mi), [
|
|
4015
4017
|
[Kt, a.value]
|
|
4016
4018
|
]),
|
|
4017
|
-
|
|
4018
|
-
v.label ? (m(), y("span", fi, A(v.label), 1)) :
|
|
4019
|
+
r[2] || (r[2] = $("div", { class: "c-Radio__element" }, null, -1)),
|
|
4020
|
+
v.label ? (m(), y("span", fi, A(v.label), 1)) : w("", !0)
|
|
4019
4021
|
], 16, vi))), 128));
|
|
4020
4022
|
}
|
|
4021
4023
|
});
|
|
@@ -4025,8 +4027,8 @@ function ki(e, o) {
|
|
|
4025
4027
|
var l;
|
|
4026
4028
|
let a = (l = e.value) == null ? void 0 : l.parentElement;
|
|
4027
4029
|
for (; a && a !== document.body; ) {
|
|
4028
|
-
const
|
|
4029
|
-
(c === "auto" || c === "scroll" ||
|
|
4030
|
+
const s = window.getComputedStyle(a).overflowX, c = window.getComputedStyle(a).overflowY;
|
|
4031
|
+
(c === "auto" || c === "scroll" || s === "auto" || s === "scroll") && a[n]("scroll", o), a = a.parentElement;
|
|
4030
4032
|
}
|
|
4031
4033
|
window[n]("scroll", o);
|
|
4032
4034
|
};
|
|
@@ -4040,7 +4042,7 @@ const yi = {
|
|
|
4040
4042
|
class: "ck-select--optional-label"
|
|
4041
4043
|
}, bi = ["disabled"], _i = ["value"], Ci = ["placeholder", "disabled"], wi = ["onMousedown", "onMouseenter"], $i = ["textContent"], Bi = /* @__PURE__ */ R({
|
|
4042
4044
|
__name: "ck-select",
|
|
4043
|
-
props: /* @__PURE__ */
|
|
4045
|
+
props: /* @__PURE__ */ oe({
|
|
4044
4046
|
options: {},
|
|
4045
4047
|
optionsLimit: { default: 6 },
|
|
4046
4048
|
isLoading: { type: Boolean },
|
|
@@ -4080,30 +4082,30 @@ const yi = {
|
|
|
4080
4082
|
modelValue: { required: !0 },
|
|
4081
4083
|
modelModifiers: {}
|
|
4082
4084
|
}),
|
|
4083
|
-
emits: /* @__PURE__ */
|
|
4085
|
+
emits: /* @__PURE__ */ oe(["change", "click"], ["update:modelValue"]),
|
|
4084
4086
|
setup(e, { expose: o, emit: t }) {
|
|
4085
4087
|
const n = ge(e, "modelValue"), a = e, l = t;
|
|
4086
4088
|
o({
|
|
4087
|
-
focus:
|
|
4089
|
+
focus: Q,
|
|
4088
4090
|
blur: Be
|
|
4089
4091
|
});
|
|
4090
|
-
const { cleekOptions:
|
|
4092
|
+
const { cleekOptions: s } = ae(ne()), { windowWidth: c } = ke(), u = x(), p = x(), r = x(), v = x(), i = x(""), g = x(!1), f = x(!1), k = x(-1), b = d(() => a.options.find((_) => Z(_) === n.value)), h = d(() => a.options.length), T = d(() => !h.value), O = d(() => h.value <= a.optionsLimit), P = d(() => {
|
|
4091
4093
|
if (f.value)
|
|
4092
4094
|
return a.options;
|
|
4093
|
-
const _ = ft(
|
|
4095
|
+
const _ = ft(i.value).split(" ");
|
|
4094
4096
|
return a.options.filter((z) => {
|
|
4095
|
-
const
|
|
4096
|
-
return _.every((E) =>
|
|
4097
|
+
const J = ft(Ce(z));
|
|
4098
|
+
return _.every((E) => J.includes(E));
|
|
4097
4099
|
});
|
|
4098
|
-
}), B = d(() => P.value.length),
|
|
4100
|
+
}), B = d(() => P.value.length), L = d(() => {
|
|
4099
4101
|
if (g.value && b.value)
|
|
4100
4102
|
return Ce(b.value);
|
|
4101
4103
|
}), j = d(() => a.disabled || T.value), X = d(() => {
|
|
4102
4104
|
var _;
|
|
4103
4105
|
if (typeof a.clearValue < "u")
|
|
4104
4106
|
return a.clearValue;
|
|
4105
|
-
if ((_ =
|
|
4106
|
-
return
|
|
4107
|
+
if ((_ = s.value.select) != null && _.clearValue)
|
|
4108
|
+
return s.value.select.clearValue;
|
|
4107
4109
|
}), le = d(() => {
|
|
4108
4110
|
if (X.value)
|
|
4109
4111
|
return X.value;
|
|
@@ -4122,54 +4124,54 @@ const yi = {
|
|
|
4122
4124
|
const _ = n.value;
|
|
4123
4125
|
return X.value ? _ === X.value : typeof _ == "number" ? _ === 0 : typeof _ == "string" ? _ === "" : typeof _ == "object" && _ ? Array.isArray(_) ? _.length === 0 : Object.keys(_).length === 0 : _ === null;
|
|
4124
4126
|
}), V = d(() => a.isLoading ? "Cargando..." : T.value ? a.emptyOptionsMsg : a.placeholder), q = d(
|
|
4125
|
-
() => (T.value || $e.value) && !
|
|
4126
|
-
),
|
|
4127
|
+
() => (T.value || $e.value) && !i.value && V.value || a.isLoading
|
|
4128
|
+
), de = d(() => j.value || a.notClearable ? !1 : !$e.value), me = d(() => {
|
|
4127
4129
|
const _ = [];
|
|
4128
4130
|
return a.icon && _.push("has-icon-left"), a.iconRight && _.push("has-icon-right"), _;
|
|
4129
|
-
}),
|
|
4131
|
+
}), C = d(() => {
|
|
4130
4132
|
const _ = [];
|
|
4131
4133
|
let z = !1;
|
|
4132
4134
|
if (a.widthBreaks) {
|
|
4133
|
-
const
|
|
4134
|
-
|
|
4135
|
+
const J = D.getWidthByWidthBreaks(a.widthBreaks, c.value);
|
|
4136
|
+
J && (_.push({ width: J }), z = !0);
|
|
4135
4137
|
}
|
|
4136
4138
|
return !z && a.minWidth && _.push({ "min-width": a.minWidth }), a.width && _.push({ width: a.width }), _;
|
|
4137
|
-
}),
|
|
4139
|
+
}), I = d(() => {
|
|
4138
4140
|
const _ = [];
|
|
4139
4141
|
_.push(D.getGroupClass(a, c.value));
|
|
4140
|
-
const z = a.layout ||
|
|
4141
|
-
z && _.push(z),
|
|
4142
|
-
const
|
|
4143
|
-
return
|
|
4144
|
-
}),
|
|
4145
|
-
const _ = [], z = a.borderColor ||
|
|
4142
|
+
const z = a.layout || s.value.styles.layout;
|
|
4143
|
+
z && _.push(z), de.value && _.push("clearable");
|
|
4144
|
+
const J = a.borderColor || s.value.styles.borderColor;
|
|
4145
|
+
return J && D.isColorTemplateVariable(J) && _.push(`ck-component__border-color--${J}`), _;
|
|
4146
|
+
}), ee = d(() => {
|
|
4147
|
+
const _ = [], z = a.borderColor || s.value.styles.borderColor;
|
|
4146
4148
|
z && !D.isColorTemplateVariable(z) && _.push({ "border-color": z });
|
|
4147
|
-
let
|
|
4148
|
-
|
|
4149
|
-
let E =
|
|
4150
|
-
return
|
|
4149
|
+
let J = "";
|
|
4150
|
+
s.value.select.backgroundColor && (J = s.value.select.backgroundColor), s.value.darkMode && (J = s.value.darkModeColorItems), J && !D.isColorTemplateVariable(J) && _.push({ backgroundColor: J });
|
|
4151
|
+
let E = s.value.popup.textColor;
|
|
4152
|
+
return s.value.darkMode && (E = s.value.darkModeColorText), E && (D.isColorTemplateVariable(E) ? _.push(`ck-component__color--${E}`) : _.push({ color: E })), _;
|
|
4151
4153
|
}), ie = d(() => {
|
|
4152
4154
|
const _ = [];
|
|
4153
|
-
let z =
|
|
4154
|
-
return
|
|
4155
|
+
let z = s.value.popup.textColor;
|
|
4156
|
+
return s.value.darkMode && (z = s.value.darkModeColorText), z && (D.isColorTemplateVariable(z) ? _.push(`ck-component__color--${z}`) : _.push({ color: z })), _;
|
|
4155
4157
|
});
|
|
4156
|
-
|
|
4158
|
+
ce(() => b.value, () => Ue()), ce(() => B.value, (_) => {
|
|
4157
4159
|
k.value !== -1 && (k.value + 1 <= _ || (k.value = _ - 1));
|
|
4158
|
-
}),
|
|
4160
|
+
}), ce(() => r.value, (_) => {
|
|
4159
4161
|
_ && (v.value = { display: "none" }, setTimeout(() => {
|
|
4160
|
-
const z = document.documentElement.clientHeight,
|
|
4161
|
-
Re ? fe.top = `${E.bottom}px` : fe.bottom = `${z - E.top}px`, fe.left = `${E.left}px`, fe.right = `${
|
|
4162
|
+
const z = document.documentElement.clientHeight, J = 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 = `${J - E.right}px`;
|
|
4162
4164
|
const lt = 100;
|
|
4163
4165
|
fe["max-height"] = Re ? `${z - E.top - lt}px` : `${E.bottom - lt}px`, fe.display = "block", v.value = fe;
|
|
4164
4166
|
}, 150));
|
|
4165
4167
|
});
|
|
4166
|
-
function
|
|
4168
|
+
function Z(_) {
|
|
4167
4169
|
return a.reduceValueFunction ? a.reduceValueFunction(_) : a.notReduceValue || a.notReduce ? _ : a.reduceValueMethod ? _[a.reduceValueMethod]() : _[a.reduceValueProp];
|
|
4168
4170
|
}
|
|
4169
4171
|
function Ce(_) {
|
|
4170
4172
|
return a.reduceNameFunction ? a.reduceNameFunction(_) : a.notReduceName || a.notReduce ? _ : a.reduceNameMethod ? _[a.reduceNameMethod]() : _[a.reduceNameProp];
|
|
4171
4173
|
}
|
|
4172
|
-
function
|
|
4174
|
+
function Q() {
|
|
4173
4175
|
var _, z;
|
|
4174
4176
|
(_ = u.value) == null || _.focus(), (z = p.value) == null || z.focus();
|
|
4175
4177
|
}
|
|
@@ -4178,7 +4180,7 @@ const yi = {
|
|
|
4178
4180
|
(_ = u.value) == null || _.blur(), (z = p.value) == null || z.blur();
|
|
4179
4181
|
}
|
|
4180
4182
|
function He() {
|
|
4181
|
-
|
|
4183
|
+
i.value = "", f.value = !0, xt(), g.value = !0;
|
|
4182
4184
|
}
|
|
4183
4185
|
function Dt() {
|
|
4184
4186
|
Ue(), g.value = !1;
|
|
@@ -4193,8 +4195,8 @@ const yi = {
|
|
|
4193
4195
|
else if (_ === "ArrowUp")
|
|
4194
4196
|
k.value = k.value <= 0 ? z - 1 : k.value - 1;
|
|
4195
4197
|
else if (_ === "Enter") {
|
|
4196
|
-
const
|
|
4197
|
-
qe(
|
|
4198
|
+
const J = k.value >= 0 ? k.value : 0;
|
|
4199
|
+
qe(Z(P.value[J])), Be();
|
|
4198
4200
|
}
|
|
4199
4201
|
}
|
|
4200
4202
|
function qe(_) {
|
|
@@ -4202,15 +4204,15 @@ const yi = {
|
|
|
4202
4204
|
}
|
|
4203
4205
|
function Ue() {
|
|
4204
4206
|
const _ = b.value;
|
|
4205
|
-
|
|
4207
|
+
i.value = _ ? Ce(_) : "";
|
|
4206
4208
|
}
|
|
4207
4209
|
function Mt() {
|
|
4208
|
-
|
|
4210
|
+
i.value = "", qe(le.value);
|
|
4209
4211
|
}
|
|
4210
4212
|
function xt() {
|
|
4211
4213
|
if (b.value) {
|
|
4212
4214
|
const _ = P.value;
|
|
4213
|
-
k.value = _.findIndex((z) =>
|
|
4215
|
+
k.value = _.findIndex((z) => Z(z) === Z(b.value));
|
|
4214
4216
|
} else
|
|
4215
4217
|
k.value = -1;
|
|
4216
4218
|
}
|
|
@@ -4218,52 +4220,52 @@ const yi = {
|
|
|
4218
4220
|
var _;
|
|
4219
4221
|
return (_ = p.value) == null ? void 0 : _.blur();
|
|
4220
4222
|
}), Ue(), (_, z) => {
|
|
4221
|
-
const
|
|
4223
|
+
const J = Y("ck-button");
|
|
4222
4224
|
return m(), y("div", {
|
|
4223
|
-
class:
|
|
4224
|
-
style: F(
|
|
4225
|
+
class: M(["ck-select", me.value]),
|
|
4226
|
+
style: F(C.value)
|
|
4225
4227
|
}, [
|
|
4226
|
-
_.label ? (m(),
|
|
4228
|
+
_.label ? (m(), S(ze, {
|
|
4227
4229
|
key: 0,
|
|
4228
4230
|
align: _.labelAlign,
|
|
4229
4231
|
for: "ck-select"
|
|
4230
4232
|
}, {
|
|
4231
4233
|
default: N(() => [
|
|
4232
4234
|
G(A(_.label) + " ", 1),
|
|
4233
|
-
_.optional ? (m(), y("span", yi, "opcional")) :
|
|
4235
|
+
_.optional ? (m(), y("span", yi, "opcional")) : w("", !0)
|
|
4234
4236
|
]),
|
|
4235
4237
|
_: 1
|
|
4236
|
-
}, 8, ["align"])) :
|
|
4237
|
-
|
|
4238
|
+
}, 8, ["align"])) : w("", !0),
|
|
4239
|
+
O.value ? ue((m(), y("select", {
|
|
4238
4240
|
key: 1,
|
|
4239
4241
|
ref_key: "selectRef",
|
|
4240
4242
|
ref: u,
|
|
4241
4243
|
tabindex: "0",
|
|
4242
4244
|
"onUpdate:modelValue": z[0] || (z[0] = (E) => n.value = E),
|
|
4243
4245
|
id: "ck-select",
|
|
4244
|
-
class:
|
|
4245
|
-
style: F(
|
|
4246
|
+
class: M(I.value),
|
|
4247
|
+
style: F(ee.value),
|
|
4246
4248
|
disabled: j.value,
|
|
4247
4249
|
onChange: z[1] || (z[1] = (E) => l("change", n.value)),
|
|
4248
4250
|
onClick: z[2] || (z[2] = (E) => l("click", E))
|
|
4249
4251
|
}, [
|
|
4250
|
-
(m(!0), y(
|
|
4251
|
-
value:
|
|
4252
|
+
(m(!0), y(K, null, re(_.options, (E) => (m(), y("option", {
|
|
4253
|
+
value: Z(E),
|
|
4252
4254
|
key: E,
|
|
4253
4255
|
style: F(ie.value)
|
|
4254
4256
|
}, A(Ce(E)), 13, _i))), 128))
|
|
4255
4257
|
], 46, bi)), [
|
|
4256
4258
|
[Qt, n.value]
|
|
4257
|
-
]) :
|
|
4259
|
+
]) : ue((m(), y("input", {
|
|
4258
4260
|
key: 2,
|
|
4259
4261
|
ref_key: "inputRef",
|
|
4260
4262
|
ref: p,
|
|
4261
4263
|
tabindex: "0",
|
|
4262
|
-
"onUpdate:modelValue": z[3] || (z[3] = (E) =>
|
|
4264
|
+
"onUpdate:modelValue": z[3] || (z[3] = (E) => i.value = E),
|
|
4263
4265
|
id: "ck-select",
|
|
4264
|
-
class:
|
|
4265
|
-
style: F(
|
|
4266
|
-
placeholder:
|
|
4266
|
+
class: M(I.value),
|
|
4267
|
+
style: F(ee.value),
|
|
4268
|
+
placeholder: L.value,
|
|
4267
4269
|
disabled: j.value,
|
|
4268
4270
|
autocomplete: "off",
|
|
4269
4271
|
onClick: z[4] || (z[4] = (E) => l("click", E)),
|
|
@@ -4272,54 +4274,54 @@ const yi = {
|
|
|
4272
4274
|
onInput: z[7] || (z[7] = (E) => Lt()),
|
|
4273
4275
|
onKeydown: z[8] || (z[8] = (E) => St(E.key))
|
|
4274
4276
|
}, null, 46, Ci)), [
|
|
4275
|
-
[Fe,
|
|
4277
|
+
[Fe, i.value]
|
|
4276
4278
|
]),
|
|
4277
|
-
(m(),
|
|
4279
|
+
(m(), S(Ae, { to: "body" }, [
|
|
4278
4280
|
g.value && P.value.length ? (m(), y("ul", {
|
|
4279
4281
|
key: 0,
|
|
4280
4282
|
ref_key: "dropdownRef",
|
|
4281
|
-
ref:
|
|
4283
|
+
ref: r,
|
|
4282
4284
|
class: "ck-input-dropdown",
|
|
4283
4285
|
style: F(v.value)
|
|
4284
4286
|
}, [
|
|
4285
|
-
(m(!0), y(
|
|
4286
|
-
key:
|
|
4287
|
-
class:
|
|
4288
|
-
"dropdown--option__selected":
|
|
4287
|
+
(m(!0), y(K, null, re(P.value, (E, fe) => (m(), y("li", {
|
|
4288
|
+
key: Z(E),
|
|
4289
|
+
class: M(["dropdown--option", {
|
|
4290
|
+
"dropdown--option__selected": Z(E) === n.value,
|
|
4289
4291
|
"dropdown--option__index-selected": fe === k.value
|
|
4290
4292
|
}]),
|
|
4291
|
-
onMousedown: (Re) => qe(
|
|
4293
|
+
onMousedown: (Re) => qe(Z(E)),
|
|
4292
4294
|
onMouseenter: (Re) => k.value = fe
|
|
4293
4295
|
}, A(Ce(E)), 43, wi))), 128))
|
|
4294
|
-
], 4)) :
|
|
4296
|
+
], 4)) : w("", !0)
|
|
4295
4297
|
])),
|
|
4296
4298
|
q.value ? (m(), y("span", {
|
|
4297
4299
|
key: 3,
|
|
4298
4300
|
class: "ck-select--placeholder",
|
|
4299
4301
|
textContent: A(V.value)
|
|
4300
|
-
}, null, 8, $i)) :
|
|
4301
|
-
_.icon ? (m(),
|
|
4302
|
+
}, null, 8, $i)) : w("", !0),
|
|
4303
|
+
_.icon ? (m(), S(te, {
|
|
4302
4304
|
key: 4,
|
|
4303
4305
|
class: "ck-select--icon-left",
|
|
4304
4306
|
icon: _.icon,
|
|
4305
4307
|
"icon-pack": _.iconPack,
|
|
4306
4308
|
color: _.iconColor
|
|
4307
|
-
}, null, 8, ["icon", "icon-pack", "color"])) :
|
|
4308
|
-
_.iconRight ? (m(),
|
|
4309
|
+
}, null, 8, ["icon", "icon-pack", "color"])) : w("", !0),
|
|
4310
|
+
_.iconRight ? (m(), S(te, {
|
|
4309
4311
|
key: 5,
|
|
4310
4312
|
class: "ck-select--icon-right",
|
|
4311
4313
|
icon: _.iconRight,
|
|
4312
4314
|
"icon-pack": _.iconPack,
|
|
4313
4315
|
color: _.iconColor
|
|
4314
|
-
}, null, 8, ["icon", "icon-pack", "color"])) :
|
|
4315
|
-
|
|
4316
|
+
}, null, 8, ["icon", "icon-pack", "color"])) : w("", !0),
|
|
4317
|
+
de.value ? (m(), S(J, {
|
|
4316
4318
|
key: 6,
|
|
4317
4319
|
class: "ck-select--btn",
|
|
4318
4320
|
size: "s",
|
|
4319
4321
|
icon: "times",
|
|
4320
4322
|
type: "flat",
|
|
4321
4323
|
onClick: z[9] || (z[9] = (E) => Mt())
|
|
4322
|
-
})) : j.value ?
|
|
4324
|
+
})) : j.value ? w("", !0) : (m(), S(J, {
|
|
4323
4325
|
key: 7,
|
|
4324
4326
|
tabindex: "-1",
|
|
4325
4327
|
class: "ck-select--btn",
|
|
@@ -4346,7 +4348,7 @@ const Ti = /* @__PURE__ */ H(Bi, [["__scopeId", "data-v-3ab25429"]]), Pi = {
|
|
|
4346
4348
|
class: "ck-sidbar__footer"
|
|
4347
4349
|
}, Si = /* @__PURE__ */ R({
|
|
4348
4350
|
__name: "ck-sidebar",
|
|
4349
|
-
props: /* @__PURE__ */
|
|
4351
|
+
props: /* @__PURE__ */ oe({
|
|
4350
4352
|
title: {},
|
|
4351
4353
|
width: {},
|
|
4352
4354
|
rightSide: { type: Boolean },
|
|
@@ -4371,56 +4373,56 @@ const Ti = /* @__PURE__ */ H(Bi, [["__scopeId", "data-v-3ab25429"]]), Pi = {
|
|
|
4371
4373
|
const u = [];
|
|
4372
4374
|
let p = t.closeBtnAlign;
|
|
4373
4375
|
return t.notCloseBtn && (p = "hidden"), p && u.push(`close-btn--${p}`), t.headerAlign && u.push(`align-title--${t.headerAlign}`), t.headerColor && D.isColorTemplateVariable(t.headerColor) && u.push(`ck-component__bg-color--${t.headerColor}`), t.headerColor && u.push(`align-title--${t.headerColor}`), u;
|
|
4374
|
-
}),
|
|
4376
|
+
}), s = d(() => {
|
|
4375
4377
|
const u = [];
|
|
4376
4378
|
return t.headerColor && !D.isColorTemplateVariable(t.headerColor) && u.push({ "background-color": t.headerColor }), u;
|
|
4377
4379
|
}), c = d(() => t.closeBtnIcon ? t.closeBtnIcon : "times");
|
|
4378
|
-
return
|
|
4379
|
-
const
|
|
4380
|
+
return ce(() => o.value, (u) => Vt(!u)), (u, p) => {
|
|
4381
|
+
const r = Y("ck-icon");
|
|
4380
4382
|
return o.value ? (m(), y("div", {
|
|
4381
4383
|
key: 0,
|
|
4382
4384
|
class: "ck-sidebar-background",
|
|
4383
4385
|
onClick: p[1] || (p[1] = se((v) => o.value = !1, ["self"]))
|
|
4384
4386
|
}, [
|
|
4385
4387
|
$("div", {
|
|
4386
|
-
class:
|
|
4388
|
+
class: M(["ck-sidebar", n.value]),
|
|
4387
4389
|
style: F(a.value)
|
|
4388
4390
|
}, [
|
|
4389
|
-
|
|
4391
|
+
W(u.$slots, "header", {}, void 0, !0),
|
|
4390
4392
|
u.title ? (m(), y("div", {
|
|
4391
4393
|
key: 0,
|
|
4392
|
-
class:
|
|
4393
|
-
style: F(
|
|
4394
|
+
class: M(["sidebar-header", l.value]),
|
|
4395
|
+
style: F(s.value),
|
|
4394
4396
|
onClick: p[0] || (p[0] = (v) => o.value = !1)
|
|
4395
4397
|
}, [
|
|
4396
|
-
u.title ? (m(), y("div", Pi, A(u.title), 1)) :
|
|
4397
|
-
u.notCloseBtn ? (m(),
|
|
4398
|
+
u.title ? (m(), y("div", Pi, A(u.title), 1)) : w("", !0),
|
|
4399
|
+
u.notCloseBtn ? (m(), S(r, {
|
|
4398
4400
|
key: 1,
|
|
4399
4401
|
class: "close-btn",
|
|
4400
4402
|
icon: c.value
|
|
4401
|
-
}, null, 8, ["icon"])) :
|
|
4402
|
-
], 6)) :
|
|
4403
|
+
}, null, 8, ["icon"])) : w("", !0)
|
|
4404
|
+
], 6)) : w("", !0),
|
|
4403
4405
|
u.isLoading ? (m(), y("div", Vi, [
|
|
4404
|
-
U(
|
|
4406
|
+
U(r, {
|
|
4405
4407
|
icon: "spinner",
|
|
4406
4408
|
size: "xxl",
|
|
4407
4409
|
spin: "",
|
|
4408
4410
|
color: "primary"
|
|
4409
4411
|
})
|
|
4410
4412
|
])) : (m(), y("div", Di, [
|
|
4411
|
-
|
|
4413
|
+
W(u.$slots, "default", {}, void 0, !0)
|
|
4412
4414
|
])),
|
|
4413
4415
|
u.$slots.footer ? (m(), y("div", Li, [
|
|
4414
|
-
|
|
4415
|
-
])) :
|
|
4416
|
+
W(u.$slots, "footer", {}, void 0, !0)
|
|
4417
|
+
])) : w("", !0)
|
|
4416
4418
|
], 6)
|
|
4417
|
-
])) :
|
|
4419
|
+
])) : w("", !0);
|
|
4418
4420
|
};
|
|
4419
4421
|
}
|
|
4420
4422
|
});
|
|
4421
4423
|
const Mi = /* @__PURE__ */ H(Si, [["__scopeId", "data-v-19f1984b"]]), xi = ["disabled"], Ai = { class: "ck-switch__slider-container" }, Je = "s", Ii = "m", zi = /* @__PURE__ */ R({
|
|
4422
4424
|
__name: "ck-switch",
|
|
4423
|
-
props: /* @__PURE__ */
|
|
4425
|
+
props: /* @__PURE__ */ oe({
|
|
4424
4426
|
preventAutoUpdate: { type: Boolean },
|
|
4425
4427
|
disabled: { type: Boolean },
|
|
4426
4428
|
outlined: { type: Boolean },
|
|
@@ -4435,37 +4437,37 @@ const Mi = /* @__PURE__ */ H(Si, [["__scopeId", "data-v-19f1984b"]]), xi = ["dis
|
|
|
4435
4437
|
modelValue: { type: Boolean, required: !0 },
|
|
4436
4438
|
modelModifiers: {}
|
|
4437
4439
|
}),
|
|
4438
|
-
emits: /* @__PURE__ */
|
|
4440
|
+
emits: /* @__PURE__ */ oe(["click"], ["update:modelValue"]),
|
|
4439
4441
|
setup(e, { emit: o }) {
|
|
4440
|
-
const t = ge(e, "modelValue"), n = e, a = o, { cleekOptions: l } = ae(
|
|
4441
|
-
const
|
|
4442
|
-
n.squared &&
|
|
4442
|
+
const t = ge(e, "modelValue"), n = e, a = o, { cleekOptions: l } = ae(ne()), s = d(() => {
|
|
4443
|
+
const i = [];
|
|
4444
|
+
n.squared && i.push("is-squared"), n.outlined && i.push("is-outlined"), n.color && i.push(`--${n.color}`);
|
|
4443
4445
|
let g = n.size || Je;
|
|
4444
|
-
return
|
|
4446
|
+
return i.push(`ck-switch--size-${g}`), i;
|
|
4445
4447
|
}), c = d(() => ({
|
|
4446
4448
|
"aria-disabled": n.disabled,
|
|
4447
4449
|
tabindex: n.disabled ? void 0 : "0"
|
|
4448
4450
|
})), u = d(() => {
|
|
4449
|
-
const
|
|
4450
|
-
return n.size && n.size !== Je &&
|
|
4451
|
+
const i = [];
|
|
4452
|
+
return n.size && n.size !== Je && i.push(`ck-switch__icon-size--${n.size}`), i;
|
|
4451
4453
|
}), p = d(() => {
|
|
4452
|
-
const
|
|
4453
|
-
return l.value.darkMode &&
|
|
4454
|
-
}),
|
|
4455
|
-
const
|
|
4456
|
-
return n.textSize && n.textSize !== Ii &&
|
|
4454
|
+
const i = [];
|
|
4455
|
+
return l.value.darkMode && i.push({ color: l.value.darkModeColorText }), n.size && n.size !== Je && i.push(`ck-switch__icon-size--${n.size}`), i;
|
|
4456
|
+
}), r = d(() => {
|
|
4457
|
+
const i = [];
|
|
4458
|
+
return n.textSize && n.textSize !== Ii && i.push(`ck-switch__text-size--${n.textSize}`), i;
|
|
4457
4459
|
});
|
|
4458
|
-
function v(
|
|
4460
|
+
function v(i) {
|
|
4459
4461
|
if (!n.disabled) {
|
|
4460
4462
|
if (n.preventAutoUpdate) {
|
|
4461
|
-
|
|
4463
|
+
i.preventDefault(), i.stopPropagation();
|
|
4462
4464
|
return;
|
|
4463
4465
|
}
|
|
4464
|
-
|
|
4466
|
+
i instanceof KeyboardEvent && i.key === "Enter" && (t.value = !t.value), a("click");
|
|
4465
4467
|
}
|
|
4466
4468
|
}
|
|
4467
|
-
return (
|
|
4468
|
-
class: ["ck-switch",
|
|
4469
|
+
return (i, g) => (m(), y("label", Ie(c.value, {
|
|
4470
|
+
class: ["ck-switch", s.value],
|
|
4469
4471
|
onClick: g[1] || (g[1] = (f) => v(f)),
|
|
4470
4472
|
onKeydown: [
|
|
4471
4473
|
g[2] || (g[2] = he(se((f) => {
|
|
@@ -4476,50 +4478,50 @@ const Mi = /* @__PURE__ */ H(Si, [["__scopeId", "data-v-19f1984b"]]), xi = ["dis
|
|
|
4476
4478
|
}, ["prevent"]), ["enter"]))
|
|
4477
4479
|
]
|
|
4478
4480
|
}), [
|
|
4479
|
-
|
|
4481
|
+
i.$slots.default && i.switchSide === "right" ? (m(), y("span", {
|
|
4480
4482
|
key: 0,
|
|
4481
|
-
class:
|
|
4483
|
+
class: M(["ck-switch__content", r.value]),
|
|
4482
4484
|
style: F(p.value)
|
|
4483
4485
|
}, [
|
|
4484
|
-
|
|
4485
|
-
], 6)) :
|
|
4486
|
-
|
|
4486
|
+
W(i.$slots, "default", {}, void 0, !0)
|
|
4487
|
+
], 6)) : w("", !0),
|
|
4488
|
+
ue($("input", {
|
|
4487
4489
|
class: "ck-switch__input",
|
|
4488
4490
|
type: "checkbox",
|
|
4489
4491
|
"onUpdate:modelValue": g[0] || (g[0] = (f) => t.value = f),
|
|
4490
4492
|
"aria-hidden": "true",
|
|
4491
|
-
disabled:
|
|
4493
|
+
disabled: i.disabled
|
|
4492
4494
|
}, null, 8, xi), [
|
|
4493
4495
|
[Jt, t.value]
|
|
4494
4496
|
]),
|
|
4495
4497
|
$("div", Ai, [
|
|
4496
4498
|
g[4] || (g[4] = $("div", { class: "ck-switch__slider" }, null, -1)),
|
|
4497
|
-
|
|
4499
|
+
i.icon && t.value ? (m(), S(te, {
|
|
4498
4500
|
key: 0,
|
|
4499
|
-
class:
|
|
4500
|
-
icon:
|
|
4501
|
-
"icon-pack":
|
|
4502
|
-
}, null, 8, ["icon", "icon-pack", "class"])) :
|
|
4503
|
-
|
|
4501
|
+
class: M(["ck-switch__icon-left", u.value]),
|
|
4502
|
+
icon: i.icon,
|
|
4503
|
+
"icon-pack": i.iconPack
|
|
4504
|
+
}, null, 8, ["icon", "icon-pack", "class"])) : w("", !0),
|
|
4505
|
+
i.icon && !t.value ? (m(), S(te, {
|
|
4504
4506
|
key: 1,
|
|
4505
|
-
class:
|
|
4506
|
-
icon:
|
|
4507
|
-
"icon-pack":
|
|
4508
|
-
}, null, 8, ["icon", "icon-pack", "class"])) :
|
|
4507
|
+
class: M(["ck-switch__icon-right", u.value]),
|
|
4508
|
+
icon: i.icon,
|
|
4509
|
+
"icon-pack": i.iconPack
|
|
4510
|
+
}, null, 8, ["icon", "icon-pack", "class"])) : w("", !0)
|
|
4509
4511
|
]),
|
|
4510
|
-
|
|
4512
|
+
i.$slots.default && i.switchSide !== "right" ? (m(), y("span", {
|
|
4511
4513
|
key: 1,
|
|
4512
|
-
class:
|
|
4514
|
+
class: M(["ck-switch__content", r.value]),
|
|
4513
4515
|
style: F(p.value)
|
|
4514
4516
|
}, [
|
|
4515
|
-
|
|
4516
|
-
], 6)) :
|
|
4517
|
+
W(i.$slots, "default", {}, void 0, !0)
|
|
4518
|
+
], 6)) : w("", !0)
|
|
4517
4519
|
], 16));
|
|
4518
4520
|
}
|
|
4519
4521
|
});
|
|
4520
4522
|
const Ri = /* @__PURE__ */ H(zi, [["__scopeId", "data-v-750acbd8"]]), Wi = { class: "ck-switch-options" }, Oi = ["onClick", "onKeyup"], Ei = /* @__PURE__ */ R({
|
|
4521
4523
|
__name: "ck-switch-options",
|
|
4522
|
-
props: /* @__PURE__ */
|
|
4524
|
+
props: /* @__PURE__ */ oe({
|
|
4523
4525
|
options: {},
|
|
4524
4526
|
notReduce: { type: Boolean },
|
|
4525
4527
|
reduceValueProp: { default: "id" },
|
|
@@ -4540,9 +4542,9 @@ const Ri = /* @__PURE__ */ H(zi, [["__scopeId", "data-v-750acbd8"]]), Wi = { cla
|
|
|
4540
4542
|
modelValue: { required: !0 },
|
|
4541
4543
|
modelModifiers: {}
|
|
4542
4544
|
}),
|
|
4543
|
-
emits: /* @__PURE__ */
|
|
4545
|
+
emits: /* @__PURE__ */ oe(["change"], ["update:modelValue"]),
|
|
4544
4546
|
setup(e, { emit: o }) {
|
|
4545
|
-
const t = ge(e, "modelValue"), n = e, a = o, { windowWidth: l } = ke(),
|
|
4547
|
+
const t = ge(e, "modelValue"), n = e, a = o, { windowWidth: l } = ke(), s = d(() => {
|
|
4546
4548
|
const v = [];
|
|
4547
4549
|
return v.push(D.getGroupClass(n, l.value)), v;
|
|
4548
4550
|
}), c = d(() => {
|
|
@@ -4555,14 +4557,14 @@ const Ri = /* @__PURE__ */ H(zi, [["__scopeId", "data-v-750acbd8"]]), Wi = { cla
|
|
|
4555
4557
|
function p(v) {
|
|
4556
4558
|
return n.reduceNameFunction ? n.reduceNameFunction(v) : n.notReduceName || n.notReduce ? v : n.reduceNameMethod ? v[n.reduceNameMethod]() : v[n.reduceNameProp];
|
|
4557
4559
|
}
|
|
4558
|
-
function
|
|
4559
|
-
const
|
|
4560
|
-
t.value =
|
|
4560
|
+
function r(v) {
|
|
4561
|
+
const i = u(v);
|
|
4562
|
+
t.value = i, a("change", i);
|
|
4561
4563
|
}
|
|
4562
|
-
return (v,
|
|
4564
|
+
return (v, i) => {
|
|
4563
4565
|
const g = Y("ck-icon");
|
|
4564
4566
|
return m(), y("div", Wi, [
|
|
4565
|
-
v.label ? (m(),
|
|
4567
|
+
v.label ? (m(), S(ze, {
|
|
4566
4568
|
key: 0,
|
|
4567
4569
|
align: v.labelAlign
|
|
4568
4570
|
}, {
|
|
@@ -4570,23 +4572,23 @@ const Ri = /* @__PURE__ */ H(zi, [["__scopeId", "data-v-750acbd8"]]), Wi = { cla
|
|
|
4570
4572
|
G(A(v.label), 1)
|
|
4571
4573
|
]),
|
|
4572
4574
|
_: 1
|
|
4573
|
-
}, 8, ["align"])) :
|
|
4575
|
+
}, 8, ["align"])) : w("", !0),
|
|
4574
4576
|
$("div", {
|
|
4575
|
-
class:
|
|
4577
|
+
class: M(["switch-options--options", s.value])
|
|
4576
4578
|
}, [
|
|
4577
|
-
(m(!0), y(
|
|
4579
|
+
(m(!0), y(K, null, re(v.options, (f, k) => (m(), y("div", {
|
|
4578
4580
|
key: k,
|
|
4579
4581
|
tabindex: "0",
|
|
4580
|
-
class:
|
|
4582
|
+
class: M(["options--option", { selected: u(f) === t.value }]),
|
|
4581
4583
|
style: F(c.value),
|
|
4582
|
-
onClick: (b) =>
|
|
4583
|
-
onKeyup: he((b) =>
|
|
4584
|
+
onClick: (b) => r(f),
|
|
4585
|
+
onKeyup: he((b) => r(f), ["enter"])
|
|
4584
4586
|
}, [
|
|
4585
|
-
f.icon ? (m(),
|
|
4587
|
+
f.icon ? (m(), S(g, {
|
|
4586
4588
|
key: 0,
|
|
4587
4589
|
class: "option--icon",
|
|
4588
4590
|
icon: f.icon
|
|
4589
|
-
}, null, 8, ["icon"])) :
|
|
4591
|
+
}, null, 8, ["icon"])) : w("", !0),
|
|
4590
4592
|
G(" " + A(p(f)), 1)
|
|
4591
4593
|
], 46, Oi))), 128))
|
|
4592
4594
|
], 2)
|
|
@@ -4623,7 +4625,7 @@ const Ni = /* @__PURE__ */ H(Ei, [["__scopeId", "data-v-c323f4fa"]]), Fi = { cla
|
|
|
4623
4625
|
},
|
|
4624
4626
|
emits: ["update:modelValue", "input", "change", "click", "changeDelayed"],
|
|
4625
4627
|
setup(e, { emit: o }) {
|
|
4626
|
-
const t = e, n = o, { cleekOptions: a } = ae(
|
|
4628
|
+
const t = e, n = o, { cleekOptions: a } = ae(ne()), l = x(), { windowWidth: s } = ke(), c = d({
|
|
4627
4629
|
get() {
|
|
4628
4630
|
return t.modelValue;
|
|
4629
4631
|
},
|
|
@@ -4634,19 +4636,19 @@ const Ni = /* @__PURE__ */ H(Ei, [["__scopeId", "data-v-c323f4fa"]]), Fi = { cla
|
|
|
4634
4636
|
const f = [], k = t.layout || a.value.styles.layout;
|
|
4635
4637
|
k && f.push(k);
|
|
4636
4638
|
const b = t.borderColor || a.value.styles.borderColor;
|
|
4637
|
-
return b && D.isColorTemplateVariable(b) && f.push(`ck-component__border-color--${b}`), f.push(D.getGroupClass(t,
|
|
4639
|
+
return b && D.isColorTemplateVariable(b) && f.push(`ck-component__border-color--${b}`), f.push(D.getGroupClass(t, s.value)), f;
|
|
4638
4640
|
}), p = d(() => {
|
|
4639
4641
|
var h;
|
|
4640
4642
|
const f = [], k = t.borderColor || ((h = a.value.styles) == null ? void 0 : h.borderColor);
|
|
4641
4643
|
k && !D.isColorTemplateVariable(k) && f.push({ "border-color": k }), 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 });
|
|
4642
4644
|
const b = t.resize ? t.resize : "none";
|
|
4643
4645
|
return b && f.push({ resize: b || "both" }), f;
|
|
4644
|
-
}),
|
|
4646
|
+
}), r = (f) => {
|
|
4645
4647
|
var k;
|
|
4646
4648
|
t.autoSelect && ((k = l.value) == null || k.select()), n("click", f);
|
|
4647
4649
|
}, v = (f) => {
|
|
4648
4650
|
n("input", f);
|
|
4649
|
-
},
|
|
4651
|
+
}, i = (f) => {
|
|
4650
4652
|
n("change", f);
|
|
4651
4653
|
};
|
|
4652
4654
|
function g(f) {
|
|
@@ -4655,27 +4657,27 @@ const Ni = /* @__PURE__ */ H(Ei, [["__scopeId", "data-v-c323f4fa"]]), Fi = { cla
|
|
|
4655
4657
|
}, t.delayChangeTime || qi);
|
|
4656
4658
|
}
|
|
4657
4659
|
return (f, k) => (m(), y("div", Fi, [
|
|
4658
|
-
f.label ? (m(),
|
|
4660
|
+
f.label ? (m(), S(ze, {
|
|
4659
4661
|
key: 0,
|
|
4660
4662
|
align: f.labelAlign
|
|
4661
4663
|
}, {
|
|
4662
4664
|
default: N(() => [
|
|
4663
4665
|
G(A(f.label) + " ", 1),
|
|
4664
|
-
f.optional ? (m(), y("span", ji, "opcional")) :
|
|
4666
|
+
f.optional ? (m(), y("span", ji, "opcional")) : w("", !0)
|
|
4665
4667
|
]),
|
|
4666
4668
|
_: 1
|
|
4667
|
-
}, 8, ["align"])) :
|
|
4668
|
-
|
|
4669
|
+
}, 8, ["align"])) : w("", !0),
|
|
4670
|
+
ue($("textarea", {
|
|
4669
4671
|
"onUpdate:modelValue": k[0] || (k[0] = (b) => c.value = b),
|
|
4670
4672
|
ref_key: "refTextarea",
|
|
4671
4673
|
ref: l,
|
|
4672
4674
|
placeholder: f.placeholder,
|
|
4673
4675
|
disabled: f.disabled,
|
|
4674
|
-
class:
|
|
4676
|
+
class: M(u.value),
|
|
4675
4677
|
style: F(p.value),
|
|
4676
|
-
onClick: k[1] || (k[1] = (b) =>
|
|
4678
|
+
onClick: k[1] || (k[1] = (b) => r(b)),
|
|
4677
4679
|
onInput: k[2] || (k[2] = (b) => v(b)),
|
|
4678
|
-
onChange: k[3] || (k[3] = (b) =>
|
|
4680
|
+
onChange: k[3] || (k[3] = (b) => i(b))
|
|
4679
4681
|
}, null, 46, Hi), [
|
|
4680
4682
|
[Fe, c.value]
|
|
4681
4683
|
])
|
|
@@ -4685,21 +4687,21 @@ const Ni = /* @__PURE__ */ H(Ei, [["__scopeId", "data-v-c323f4fa"]]), Fi = { cla
|
|
|
4685
4687
|
const Yi = /* @__PURE__ */ H(Ui, [["__scopeId", "data-v-02767f25"]]), Gi = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyNy43LjAsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iQ2FwYV8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCINCgkgdmlld0JveD0iMCAwIDEwMCAxMDAiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDEwMCAxMDA7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+DQoJLnN0MHtmaWxsOiNFQTRCNEI7fQ0KPC9zdHlsZT4NCjxnPg0KCTxnPg0KCQk8Zz4NCgkJCTxyZWN0IHg9IjQ1IiB5PSI2NC45IiBjbGFzcz0ic3QwIiB3aWR0aD0iMTAiIGhlaWdodD0iMTAuMiIvPg0KCQk8L2c+DQoJPC9nPg0KCTxnPg0KCQk8Zz4NCgkJCTxyZWN0IHg9IjQ1IiB5PSIyNC45IiBjbGFzcz0ic3QwIiB3aWR0aD0iMTAiIGhlaWdodD0iMzAuMiIvPg0KCQk8L2c+DQoJPC9nPg0KPC9nPg0KPHBhdGggY2xhc3M9InN0MCIgZD0iTTY5LjIsMTYuN0w4OC41LDUwTDY5LjIsODMuM0gzMC44TDExLjUsNTBsMTkuMi0zMy4zSDY5LjIgTTc1LDYuN0gyNUwwLDUwbDI1LDQzLjNoNTBMMTAwLDUwTDc1LDYuN0w3NSw2Ljd6Ig0KCS8+DQo8L3N2Zz4NCg==", Zi = { class: "ck-confirm--background" }, Ki = { class: "ck-confirm" }, Qi = { class: "ck-confirm__title" }, Ji = { class: "ck-confirm__message" }, Xi = { class: "ck-confirm__buttons-container" }, es = /* @__PURE__ */ R({
|
|
4686
4688
|
__name: "CkConfirm",
|
|
4687
4689
|
setup(e, { expose: o }) {
|
|
4688
|
-
const t = x(""), n = x(""), a = x(""), l = x(""),
|
|
4690
|
+
const t = x(""), n = x(""), a = x(""), l = x(""), s = x(() => {
|
|
4689
4691
|
}), c = x(() => {
|
|
4690
|
-
}), u = d(() => "¿Estás seguro?"), p = d(() => "Aceptar"),
|
|
4692
|
+
}), u = d(() => "¿Estás seguro?"), p = d(() => "Aceptar"), r = d(() => "Cancelar");
|
|
4691
4693
|
function v() {
|
|
4692
4694
|
c.value();
|
|
4693
4695
|
}
|
|
4694
|
-
function
|
|
4695
|
-
|
|
4696
|
+
function i() {
|
|
4697
|
+
s.value();
|
|
4696
4698
|
}
|
|
4697
4699
|
return o({
|
|
4698
4700
|
title: t,
|
|
4699
4701
|
msg: n,
|
|
4700
4702
|
acceptText: a,
|
|
4701
4703
|
cancelText: l,
|
|
4702
|
-
responseSuccess:
|
|
4704
|
+
responseSuccess: s,
|
|
4703
4705
|
responseFailure: c
|
|
4704
4706
|
}), (g, f) => (m(), y("div", Zi, [
|
|
4705
4707
|
$("div", Ki, [
|
|
@@ -4715,10 +4717,10 @@ const Yi = /* @__PURE__ */ H(Ui, [["__scopeId", "data-v-02767f25"]]), Gi = "data
|
|
|
4715
4717
|
$("button", {
|
|
4716
4718
|
class: "ck-confirm__button--cancel",
|
|
4717
4719
|
onClick: f[0] || (f[0] = (k) => v())
|
|
4718
|
-
}, A(l.value ||
|
|
4720
|
+
}, A(l.value || r.value), 1),
|
|
4719
4721
|
$("button", {
|
|
4720
4722
|
class: "ck-confirm__button--accept",
|
|
4721
|
-
onClick: f[1] || (f[1] = (k) =>
|
|
4723
|
+
onClick: f[1] || (f[1] = (k) => i())
|
|
4722
4724
|
}, A(a.value || p.value), 1)
|
|
4723
4725
|
])
|
|
4724
4726
|
])
|
|
@@ -4728,23 +4730,23 @@ const Yi = /* @__PURE__ */ H(Ui, [["__scopeId", "data-v-02767f25"]]), Gi = "data
|
|
|
4728
4730
|
const ts = /* @__PURE__ */ H(es, [["__scopeId", "data-v-817a5ee4"]]), os = { class: "alert--msg" }, ns = /* @__PURE__ */ R({
|
|
4729
4731
|
__name: "CkAlert",
|
|
4730
4732
|
setup(e, { expose: o }) {
|
|
4731
|
-
const t = x(""), n = x(""), a = x(""), l = x(!0),
|
|
4733
|
+
const t = x(""), n = x(""), a = x(""), l = x(!0), s = d(() => "Atención"), c = d(() => "Aceptar");
|
|
4732
4734
|
return o({
|
|
4733
4735
|
title: t,
|
|
4734
4736
|
msg: n,
|
|
4735
4737
|
acceptText: a
|
|
4736
|
-
}), (u, p) => (m(),
|
|
4738
|
+
}), (u, p) => (m(), S(Ae, { to: "body" }, [
|
|
4737
4739
|
U(nt, {
|
|
4738
4740
|
modelValue: l.value,
|
|
4739
|
-
"onUpdate:modelValue": p[0] || (p[0] = (
|
|
4741
|
+
"onUpdate:modelValue": p[0] || (p[0] = (r) => l.value = r),
|
|
4740
4742
|
acceptButton: "",
|
|
4741
4743
|
notCloseBtn: "",
|
|
4742
4744
|
headerColor: "primary",
|
|
4743
4745
|
headerAlign: "center",
|
|
4744
4746
|
acceptBtnType: "filled",
|
|
4745
|
-
title: t.value ||
|
|
4747
|
+
title: t.value || s.value,
|
|
4746
4748
|
acceptBtnText: a.value || c.value,
|
|
4747
|
-
onAccept: p[1] || (p[1] = (
|
|
4749
|
+
onAccept: p[1] || (p[1] = (r) => l.value = !1)
|
|
4748
4750
|
}, {
|
|
4749
4751
|
default: N(() => [
|
|
4750
4752
|
$("div", os, A(n.value), 1)
|
|
@@ -4757,13 +4759,13 @@ const ts = /* @__PURE__ */ H(es, [["__scopeId", "data-v-817a5ee4"]]), os = { cla
|
|
|
4757
4759
|
const as = /* @__PURE__ */ H(ns, [["__scopeId", "data-v-08c93dad"]]), ls = { class: "ck-notify__container" }, is = { class: "ck-notify__title" }, ss = { class: "close-btn" }, rs = ["innerHTML"], us = /* @__PURE__ */ R({
|
|
4758
4760
|
__name: "CkNotify",
|
|
4759
4761
|
setup(e, { expose: o }) {
|
|
4760
|
-
const t = x(!0), n = x(""), a = x(""), l = x(""),
|
|
4762
|
+
const t = x(!0), n = x(""), a = x(""), l = x(""), s = x(0), c = x(() => {
|
|
4761
4763
|
});
|
|
4762
4764
|
o({
|
|
4763
4765
|
title: n,
|
|
4764
4766
|
text: a,
|
|
4765
4767
|
color: l,
|
|
4766
|
-
duration:
|
|
4768
|
+
duration: s,
|
|
4767
4769
|
closeCallback: c
|
|
4768
4770
|
});
|
|
4769
4771
|
const u = d(() => {
|
|
@@ -4779,7 +4781,7 @@ const as = /* @__PURE__ */ H(ns, [["__scopeId", "data-v-08c93dad"]]), ls = { cla
|
|
|
4779
4781
|
}), p = d(() => {
|
|
4780
4782
|
const v = [];
|
|
4781
4783
|
return l.value && D.isColorTemplateVariable(l.value) && v.push(`ck-component__bg-color--${l.value}`), v;
|
|
4782
|
-
}),
|
|
4784
|
+
}), r = d(() => {
|
|
4783
4785
|
const v = [];
|
|
4784
4786
|
return l.value && !D.isColorTemplateVariable(l.value) && v.push({ "background-color": l.value }), v;
|
|
4785
4787
|
});
|
|
@@ -4787,23 +4789,23 @@ const as = /* @__PURE__ */ H(ns, [["__scopeId", "data-v-08c93dad"]]), ls = { cla
|
|
|
4787
4789
|
setTimeout(() => {
|
|
4788
4790
|
setTimeout(() => {
|
|
4789
4791
|
c.value();
|
|
4790
|
-
},
|
|
4792
|
+
}, s.value);
|
|
4791
4793
|
}, 10);
|
|
4792
|
-
}), (v,
|
|
4794
|
+
}), (v, i) => t.value ? (m(), S(Ae, {
|
|
4793
4795
|
key: 0,
|
|
4794
4796
|
to: "body"
|
|
4795
4797
|
}, [
|
|
4796
4798
|
$("div", ls, [
|
|
4797
4799
|
$("div", {
|
|
4798
|
-
class:
|
|
4799
|
-
style: F(
|
|
4800
|
-
onClick:
|
|
4800
|
+
class: M(["ck-notify", p.value]),
|
|
4801
|
+
style: F(r.value),
|
|
4802
|
+
onClick: i[0] || (i[0] = (g) => {
|
|
4801
4803
|
t.value = !1, c.value();
|
|
4802
4804
|
})
|
|
4803
4805
|
}, [
|
|
4804
4806
|
$("div", is, [
|
|
4805
4807
|
$("div", ss, [
|
|
4806
|
-
U(
|
|
4808
|
+
U(te, { icon: "times" })
|
|
4807
4809
|
]),
|
|
4808
4810
|
G(" " + A(n.value || u.value), 1)
|
|
4809
4811
|
]),
|
|
@@ -4813,7 +4815,7 @@ const as = /* @__PURE__ */ H(ns, [["__scopeId", "data-v-08c93dad"]]), ls = { cla
|
|
|
4813
4815
|
}, null, 8, rs)
|
|
4814
4816
|
], 6)
|
|
4815
4817
|
])
|
|
4816
|
-
])) :
|
|
4818
|
+
])) : w("", !0);
|
|
4817
4819
|
}
|
|
4818
4820
|
});
|
|
4819
4821
|
const cs = /* @__PURE__ */ H(us, [["__scopeId", "data-v-bb914f84"]]), ds = 3e3, ps = {
|
|
@@ -4838,7 +4840,7 @@ const cs = /* @__PURE__ */ H(us, [["__scopeId", "data-v-bb914f84"]]), ds = 3e3,
|
|
|
4838
4840
|
failure: l = () => {
|
|
4839
4841
|
}
|
|
4840
4842
|
}) {
|
|
4841
|
-
const
|
|
4843
|
+
const s = document.createElement("div"), c = Ge(ts), u = c.mount(s);
|
|
4842
4844
|
u.title = e, u.msg = o, u.acceptText = t, u.cancelText = n, u.responseSuccess = () => {
|
|
4843
4845
|
c.unmount(), a();
|
|
4844
4846
|
}, u.responseFailure = () => {
|
|
@@ -4853,8 +4855,8 @@ const cs = /* @__PURE__ */ H(us, [["__scopeId", "data-v-bb914f84"]]), ds = 3e3,
|
|
|
4853
4855
|
});
|
|
4854
4856
|
},
|
|
4855
4857
|
notify({ text: e = "", title: o = "", color: t = "", duration: n = 0 }) {
|
|
4856
|
-
const a = document.createElement("div"), l = Ge(cs),
|
|
4857
|
-
|
|
4858
|
+
const a = document.createElement("div"), l = Ge(cs), s = l.mount(a);
|
|
4859
|
+
s.title = o, s.text = e, s.color = t, s.duration = n || ds, s.closeCallback = () => {
|
|
4858
4860
|
l.unmount();
|
|
4859
4861
|
};
|
|
4860
4862
|
},
|
|
@@ -4927,7 +4929,7 @@ const fs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4927
4929
|
CkDiv: ri,
|
|
4928
4930
|
CkDropdown: Oo,
|
|
4929
4931
|
CkDropdownButton: Hl,
|
|
4930
|
-
CkIcon:
|
|
4932
|
+
CkIcon: te,
|
|
4931
4933
|
CkImg: pi,
|
|
4932
4934
|
CkInput: Tt,
|
|
4933
4935
|
CkInputDate: wl,
|
|
@@ -4960,7 +4962,7 @@ tt.add(Rt);
|
|
|
4960
4962
|
tt.add(Wt);
|
|
4961
4963
|
tt.add(Ot);
|
|
4962
4964
|
function Ps(e, o) {
|
|
4963
|
-
|
|
4965
|
+
ne().cleekOptions = $o(wt, o), e.use(Vo), e.use(zt, Co), Object.entries(fs).forEach(([t, n]) => {
|
|
4964
4966
|
e.component(t, n);
|
|
4965
4967
|
});
|
|
4966
4968
|
}
|
|
@@ -4974,7 +4976,7 @@ export {
|
|
|
4974
4976
|
ri as CkDiv,
|
|
4975
4977
|
Oo as CkDropdown,
|
|
4976
4978
|
Hl as CkDropdownButton,
|
|
4977
|
-
|
|
4979
|
+
te as CkIcon,
|
|
4978
4980
|
pi as CkImg,
|
|
4979
4981
|
Tt as CkInput,
|
|
4980
4982
|
wl as CkInputDate,
|
|
@@ -5002,6 +5004,6 @@ export {
|
|
|
5002
5004
|
vs as TableData,
|
|
5003
5005
|
ps as ckNotify,
|
|
5004
5006
|
Ps as default,
|
|
5005
|
-
|
|
5007
|
+
ne as useCleekOptionsStore,
|
|
5006
5008
|
ke as useWindowWidth
|
|
5007
5009
|
};
|