cleek 2.10.75 → 2.10.77
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.cjs.js +1 -1
- package/dist/main.css +1 -1
- package/dist/main.es.js +1472 -1443
- package/dist/types/components/ck-switch.vue.d.ts +6 -0
- package/dist/types/components/ck-tabs/ck-tabs.vue.d.ts +9 -2
- package/dist/types/components/ck-toggle-group/ck-toggle-group.vue.d.ts +16 -5
- package/package.json +85 -85
package/dist/main.es.js
CHANGED
|
@@ -3,14 +3,14 @@ var Pt = (e, o, t) => o in e ? St(e, o, { enumerable: !0, configurable: !0, writ
|
|
|
3
3
|
var ke = (e, o, t) => (Pt(e, typeof o != "symbol" ? o + "" : o, t), t);
|
|
4
4
|
import Mt from "floating-vue";
|
|
5
5
|
import { library as Qe } from "@fortawesome/fontawesome-svg-core";
|
|
6
|
-
import { fas as
|
|
7
|
-
import { far as
|
|
6
|
+
import { fas as xt } from "@fortawesome/free-solid-svg-icons";
|
|
7
|
+
import { far as It } from "@fortawesome/free-regular-svg-icons";
|
|
8
8
|
import { fab as At } from "@fortawesome/free-brands-svg-icons";
|
|
9
|
-
import { ref as
|
|
9
|
+
import { ref as M, computed as c, watch as ce, defineComponent as R, resolveDirective as pt, openBlock as v, createElementBlock as _, toDisplayString as I, createTextVNode as Z, createCommentVNode as C, withDirectives as ue, Fragment as Y, unref as $e, createElementVNode as w, onMounted as be, withKeys as _e, renderSlot as W, createBlock as S, Teleport as Pe, normalizeClass as x, normalizeStyle as E, resolveComponent as U, nextTick as vt, onBeforeUnmount as Xe, mergeModels as ee, useModel as ge, withCtx as H, vModelDynamic as zt, createVNode as G, renderList as de, vModelText as We, mergeProps as Ne, withModifiers as re, watchEffect as je, resolveDynamicComponent as Rt, vShow as Ve, pushScopeId as Ot, popScopeId as Wt, inject as Nt, provide as Et, onUpdated as Ft, vModelRadio as qt, vModelSelect as Ht, vModelCheckbox as jt, createApp as Ue } from "vue";
|
|
10
10
|
import { defineStore as Ut, storeToRefs as le } from "pinia";
|
|
11
11
|
import { qmDate as ye, qmStr as ze, qmObj as Gt } from "quantic-methods";
|
|
12
12
|
import { FontAwesomeIcon as Zt } from "@fortawesome/vue-fontawesome";
|
|
13
|
-
import { isValid as
|
|
13
|
+
import { isValid as pe, startOfDecade as Yt, endOfDecade as Kt, eachYearOfInterval as Jt, getYear as fe, getDecade as Ie, isBefore as Le, isAfter as Se, subYears as ft, addYears as mt, startOfYear as Qt, endOfYear as Xt, format as Re, eachMonthOfInterval as eo, isSameMonth as Ke, isSameYear as lt, startOfMonth as gt, endOfMonth as ht, startOfWeek as to, endOfWeek as oo, setDay as lo, eachDayOfInterval as no, isSameDay as Ge, isWithinInterval as ao, subMonths as io, addMonths as so, set as nt, isSameHour as ro, isSameMinute as uo, parse as at, startOfDay as co, endOfDay as po, max as vo, min as fo } from "date-fns";
|
|
14
14
|
const mo = {
|
|
15
15
|
themes: {
|
|
16
16
|
tooltip: {
|
|
@@ -39,55 +39,55 @@ var kt = { exports: {} };
|
|
|
39
39
|
(function(t, l) {
|
|
40
40
|
e.exports = l();
|
|
41
41
|
})(ko, function() {
|
|
42
|
-
var t = "__v-click-outside", l = typeof window < "u", n = typeof navigator < "u", a = l && ("ontouchstart" in window || n && navigator.msMaxTouchPoints > 0) ? ["touchstart"] : ["click"], i = function(
|
|
43
|
-
var f =
|
|
44
|
-
(0,
|
|
45
|
-
}, d = function(
|
|
46
|
-
var r = function(
|
|
47
|
-
var
|
|
48
|
-
if (!
|
|
42
|
+
var t = "__v-click-outside", l = typeof window < "u", n = typeof navigator < "u", a = l && ("ontouchstart" in window || n && navigator.msMaxTouchPoints > 0) ? ["touchstart"] : ["click"], i = function(s) {
|
|
43
|
+
var f = s.event, r = s.handler;
|
|
44
|
+
(0, s.middleware)(f) && r(f);
|
|
45
|
+
}, d = function(s, f) {
|
|
46
|
+
var r = 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:
|
|
51
|
-
return
|
|
52
|
-
}, events:
|
|
53
|
-
}(f.value),
|
|
50
|
+
return { handler: O ? T : T.handler, middleware: T.middleware || function(V) {
|
|
51
|
+
return V;
|
|
52
|
+
}, events: T.events || a, isActive: T.isActive !== !1, detectIframe: T.detectIframe !== !1, capture: !!T.capture };
|
|
53
|
+
}(f.value), k = r.handler, m = r.middleware, h = r.detectIframe, y = r.capture;
|
|
54
54
|
if (r.isActive) {
|
|
55
|
-
if (
|
|
56
|
-
return { event:
|
|
57
|
-
return function(
|
|
58
|
-
var
|
|
59
|
-
(
|
|
60
|
-
}({ el:
|
|
61
|
-
}, capture:
|
|
62
|
-
}),
|
|
63
|
-
var
|
|
64
|
-
return function(
|
|
65
|
-
var
|
|
55
|
+
if (s[t] = r.events.map(function(T) {
|
|
56
|
+
return { event: T, srcTarget: document.documentElement, handler: function(O) {
|
|
57
|
+
return function(V) {
|
|
58
|
+
var B = V.el, P = V.event, F = V.handler, X = V.middleware, ne = P.path || P.composedPath && P.composedPath();
|
|
59
|
+
(ne ? ne.indexOf(B) < 0 : !B.contains(P.target)) && i({ event: P, handler: F, middleware: X });
|
|
60
|
+
}({ el: s, event: O, handler: k, middleware: m });
|
|
61
|
+
}, capture: y };
|
|
62
|
+
}), h) {
|
|
63
|
+
var g = { event: "blur", srcTarget: window, handler: function(T) {
|
|
64
|
+
return function(O) {
|
|
65
|
+
var V = O.el, B = O.event, P = O.handler, F = O.middleware;
|
|
66
66
|
setTimeout(function() {
|
|
67
|
-
var
|
|
68
|
-
|
|
67
|
+
var X = document.activeElement;
|
|
68
|
+
X && X.tagName === "IFRAME" && !V.contains(X) && i({ event: B, handler: P, middleware: F });
|
|
69
69
|
}, 0);
|
|
70
|
-
}({ el:
|
|
71
|
-
}, capture:
|
|
72
|
-
|
|
70
|
+
}({ el: s, event: T, handler: k, middleware: m });
|
|
71
|
+
}, capture: y };
|
|
72
|
+
s[t] = [].concat(s[t], [g]);
|
|
73
73
|
}
|
|
74
|
-
|
|
75
|
-
var
|
|
74
|
+
s[t].forEach(function(T) {
|
|
75
|
+
var O = T.event, V = T.srcTarget, B = T.handler;
|
|
76
76
|
return setTimeout(function() {
|
|
77
|
-
|
|
77
|
+
s[t] && V.addEventListener(O, B, y);
|
|
78
78
|
}, 0);
|
|
79
79
|
});
|
|
80
80
|
}
|
|
81
|
-
},
|
|
82
|
-
(
|
|
81
|
+
}, u = function(s) {
|
|
82
|
+
(s[t] || []).forEach(function(f) {
|
|
83
83
|
return f.srcTarget.removeEventListener(f.event, f.handler, f.capture);
|
|
84
|
-
}), delete
|
|
85
|
-
}, p = l ? { beforeMount: d, updated: function(
|
|
86
|
-
var r = f.value,
|
|
87
|
-
JSON.stringify(r) !== JSON.stringify(
|
|
88
|
-
}, unmounted:
|
|
89
|
-
return { install: function(
|
|
90
|
-
|
|
84
|
+
}), delete s[t];
|
|
85
|
+
}, p = l ? { beforeMount: d, updated: function(s, f) {
|
|
86
|
+
var r = f.value, k = f.oldValue;
|
|
87
|
+
JSON.stringify(r) !== JSON.stringify(k) && (u(s), d(s, { value: r }));
|
|
88
|
+
}, unmounted: u } : {};
|
|
89
|
+
return { install: function(s) {
|
|
90
|
+
s.directive("click-outside", p);
|
|
91
91
|
}, directive: p };
|
|
92
92
|
});
|
|
93
93
|
})(kt);
|
|
@@ -163,8 +163,8 @@ function wo(e) {
|
|
|
163
163
|
}
|
|
164
164
|
}
|
|
165
165
|
const te = Ut("cleek-options", () => {
|
|
166
|
-
const e =
|
|
167
|
-
return
|
|
166
|
+
const e = M(yt), o = c(() => e.value.colors), t = c(() => e.value.styles), l = c(() => e.value.button), n = c(() => e.value.chip), a = c(() => e.value.div), i = c(() => e.value.img), d = c(() => e.value.popup), u = c(() => e.value.select), p = c(() => e.value.table);
|
|
167
|
+
return ce(o, (s) => wo(s), { deep: !0, immediate: !0 }), {
|
|
168
168
|
cleekOptions: e,
|
|
169
169
|
colorsOptions: o,
|
|
170
170
|
stylesOptions: t,
|
|
@@ -173,7 +173,7 @@ const te = Ut("cleek-options", () => {
|
|
|
173
173
|
divOptions: a,
|
|
174
174
|
imgOptions: i,
|
|
175
175
|
popupOptions: d,
|
|
176
|
-
selectOptions:
|
|
176
|
+
selectOptions: u,
|
|
177
177
|
tableOptions: p
|
|
178
178
|
};
|
|
179
179
|
}), $o = {
|
|
@@ -182,7 +182,7 @@ const te = Ut("cleek-options", () => {
|
|
|
182
182
|
}, Bo = {
|
|
183
183
|
key: 0,
|
|
184
184
|
class: "pl-1"
|
|
185
|
-
}, To = /* @__PURE__ */
|
|
185
|
+
}, To = /* @__PURE__ */ R({
|
|
186
186
|
__name: "ck-datetime-shower",
|
|
187
187
|
props: {
|
|
188
188
|
datetime: {},
|
|
@@ -195,58 +195,58 @@ const te = Ut("cleek-options", () => {
|
|
|
195
195
|
emits: ["click"],
|
|
196
196
|
setup(e, { emit: o }) {
|
|
197
197
|
const t = e, l = o, n = c(() => t.time ? t.timeInMinutes ? ye.minToHour(+t.time) : ye.minToHour(+t.time) : t.datetime ? typeof t.datetime == "string" ? ye.presentTime(t.datetime) : d(t.datetime) : ""), a = c(() => t.date ? typeof t.date == "string" ? ye.presentDate(t.date) : i(t.date) : typeof t.datetime == "string" ? ye.presentDate(t.datetime) : i(t.datetime));
|
|
198
|
-
function i(
|
|
199
|
-
const p = String(
|
|
200
|
-
return `${p}/${
|
|
198
|
+
function i(u) {
|
|
199
|
+
const p = String(u.getDate()).padStart(2, "0"), s = String(u.getMonth() + 1).padStart(2, "0"), f = String(u.getFullYear()).slice(-2);
|
|
200
|
+
return `${p}/${s}/${f}`;
|
|
201
201
|
}
|
|
202
|
-
function d(
|
|
203
|
-
const p = String(
|
|
204
|
-
return `${p}:${
|
|
202
|
+
function d(u) {
|
|
203
|
+
const p = String(u.getHours()).padStart(2, "0"), s = String(u.getMinutes()).padStart(2, "0");
|
|
204
|
+
return `${p}:${s}`;
|
|
205
205
|
}
|
|
206
|
-
return (
|
|
207
|
-
const
|
|
208
|
-
return a.value ?
|
|
206
|
+
return (u, p) => {
|
|
207
|
+
const s = pt("tooltip");
|
|
208
|
+
return a.value ? u.split || u.date ? (v(), _("div", {
|
|
209
209
|
key: 1,
|
|
210
210
|
class: "ck-datetime-shower--split",
|
|
211
211
|
onClick: p[0] || (p[0] = (f) => l("click", f))
|
|
212
212
|
}, [
|
|
213
|
-
|
|
214
|
-
n.value ? (v(),
|
|
215
|
-
])) :
|
|
213
|
+
Z(I(a.value) + " ", 1),
|
|
214
|
+
n.value ? (v(), _("span", Bo, " | " + I(n.value), 1)) : C("", !0)
|
|
215
|
+
])) : ue((v(), _("div", {
|
|
216
216
|
key: 2,
|
|
217
217
|
class: "ck-datetime-shower",
|
|
218
218
|
onClick: p[1] || (p[1] = (f) => l("click", f))
|
|
219
219
|
}, [
|
|
220
|
-
|
|
220
|
+
Z(I(a.value), 1)
|
|
221
221
|
])), [
|
|
222
|
-
[
|
|
223
|
-
]) : (v(),
|
|
222
|
+
[s, n.value]
|
|
223
|
+
]) : (v(), _("span", $o, I(u.noDateMsg), 1));
|
|
224
224
|
};
|
|
225
225
|
}
|
|
226
226
|
});
|
|
227
|
-
const
|
|
227
|
+
const j = (e, o) => {
|
|
228
228
|
const t = e.__vccOpts || e;
|
|
229
229
|
for (const [l, n] of o)
|
|
230
230
|
t[l] = n;
|
|
231
231
|
return t;
|
|
232
|
-
}, Vo = /* @__PURE__ */
|
|
232
|
+
}, Vo = /* @__PURE__ */ j(To, [["__scopeId", "data-v-49af3639"]]), Do = { class: "ck-time-shower" }, Lo = /* @__PURE__ */ R({
|
|
233
233
|
__name: "ck-time-shower",
|
|
234
234
|
props: {
|
|
235
235
|
time: {},
|
|
236
236
|
minutes: {}
|
|
237
237
|
},
|
|
238
238
|
setup(e) {
|
|
239
|
-
return (o, t) => (v(),
|
|
240
|
-
o.minutes ? (v(),
|
|
241
|
-
|
|
242
|
-
], 64)) : (v(),
|
|
243
|
-
|
|
239
|
+
return (o, t) => (v(), _("span", Do, [
|
|
240
|
+
o.minutes ? (v(), _(Y, { key: 0 }, [
|
|
241
|
+
Z(I($e(ye).minToHour(o.minutes)), 1)
|
|
242
|
+
], 64)) : (v(), _(Y, { key: 1 }, [
|
|
243
|
+
Z(I($e(ye).presentTime(o.time)), 1)
|
|
244
244
|
], 64)),
|
|
245
|
-
t[0] || (t[0] =
|
|
245
|
+
t[0] || (t[0] = w("span", { class: "hs-text" }, " hs ", -1))
|
|
246
246
|
]));
|
|
247
247
|
}
|
|
248
248
|
});
|
|
249
|
-
const So = /* @__PURE__ */
|
|
249
|
+
const So = /* @__PURE__ */ j(Lo, [["__scopeId", "data-v-dc82897f"]]), Po = /* @__PURE__ */ R({
|
|
250
250
|
__name: "ck-dropdown",
|
|
251
251
|
props: {
|
|
252
252
|
align: {},
|
|
@@ -258,21 +258,21 @@ const So = /* @__PURE__ */ H(Lo, [["__scopeId", "data-v-dc82897f"]]), Po = /* @_
|
|
|
258
258
|
o({
|
|
259
259
|
close: p
|
|
260
260
|
});
|
|
261
|
-
const { cleekOptions: l } = le(te()), n =
|
|
262
|
-
const
|
|
263
|
-
t.dark &&
|
|
261
|
+
const { cleekOptions: l } = le(te()), n = M(!1), a = M(), i = M(), d = M(), u = c(() => {
|
|
262
|
+
const s = [];
|
|
263
|
+
t.dark && s.push("ck-dropdown--content__dark");
|
|
264
264
|
const f = t.layout || l.value.styles.layout;
|
|
265
|
-
return f &&
|
|
265
|
+
return f && s.push(`ck-dropdown--content__${f}`), s;
|
|
266
266
|
});
|
|
267
|
-
|
|
268
|
-
if (
|
|
269
|
-
const f = document.documentElement.clientHeight, r = document.documentElement.clientWidth,
|
|
270
|
-
|
|
267
|
+
ce(() => n.value, (s) => {
|
|
268
|
+
if (s) {
|
|
269
|
+
const f = document.documentElement.clientHeight, r = document.documentElement.clientWidth, k = a.value.getBoundingClientRect(), m = {};
|
|
270
|
+
k.top < f / 2 ? (m.top = `${k.bottom}px`, m["margin-top"] = "0.5rem") : (m.bottom = `${f - k.top}px`, m["margin-bottom"] = "0.5rem"), t.align === "left" ? m.left = `${k.left}px` : t.align === "right" && (m.right = `${r - k.right}px`), d.value = m;
|
|
271
271
|
}
|
|
272
|
-
}),
|
|
273
|
-
if (
|
|
272
|
+
}), ce(() => i.value, (s) => {
|
|
273
|
+
if (s && t.align !== "left" && t.align !== "right") {
|
|
274
274
|
const f = a.value.getBoundingClientRect();
|
|
275
|
-
d.value.left = `${f.left + f.width / 2 -
|
|
275
|
+
d.value.left = `${f.left + f.width / 2 - s.getBoundingClientRect().width / 2}px`;
|
|
276
276
|
}
|
|
277
277
|
});
|
|
278
278
|
function p() {
|
|
@@ -280,37 +280,39 @@ const So = /* @__PURE__ */ H(Lo, [["__scopeId", "data-v-dc82897f"]]), Po = /* @_
|
|
|
280
280
|
}
|
|
281
281
|
return be(() => {
|
|
282
282
|
window.addEventListener("scroll", () => n.value = !1);
|
|
283
|
-
}), (
|
|
284
|
-
const r =
|
|
285
|
-
return v(),
|
|
283
|
+
}), (s, f) => {
|
|
284
|
+
const r = pt("click-outside");
|
|
285
|
+
return v(), _("div", {
|
|
286
286
|
ref_key: "dropdownRef",
|
|
287
287
|
ref: a,
|
|
288
|
-
class: "ck-dropdown"
|
|
288
|
+
class: "ck-dropdown",
|
|
289
|
+
tabindex: "0",
|
|
290
|
+
onKeyup: f[1] || (f[1] = _e((k) => n.value = !0, ["enter"]))
|
|
289
291
|
}, [
|
|
290
|
-
|
|
292
|
+
w("div", {
|
|
291
293
|
class: "ck-dropdown--trigger",
|
|
292
|
-
onClick: f[0] || (f[0] = (
|
|
294
|
+
onClick: f[0] || (f[0] = (k) => n.value = !0)
|
|
293
295
|
}, [
|
|
294
|
-
|
|
296
|
+
W(s.$slots, "trigger", {}, void 0, !0)
|
|
295
297
|
]),
|
|
296
298
|
(v(), S(Pe, { to: "body" }, [
|
|
297
|
-
n.value ?
|
|
299
|
+
n.value ? ue((v(), _("div", {
|
|
298
300
|
key: 0,
|
|
299
301
|
ref_key: "contentRef",
|
|
300
302
|
ref: i,
|
|
301
|
-
class:
|
|
303
|
+
class: x(["ck-dropdown--content", u.value]),
|
|
302
304
|
style: E(d.value)
|
|
303
305
|
}, [
|
|
304
|
-
|
|
306
|
+
W(s.$slots, "content", {}, void 0, !0)
|
|
305
307
|
], 6)), [
|
|
306
308
|
[r, () => n.value = !1]
|
|
307
|
-
]) :
|
|
309
|
+
]) : C("", !0)
|
|
308
310
|
]))
|
|
309
|
-
],
|
|
311
|
+
], 544);
|
|
310
312
|
};
|
|
311
313
|
}
|
|
312
314
|
});
|
|
313
|
-
const Mo = /* @__PURE__ */
|
|
315
|
+
const Mo = /* @__PURE__ */ j(Po, [["__scopeId", "data-v-ee86f04f"]]), xo = "fixed", Io = /* @__PURE__ */ R({
|
|
314
316
|
__name: "ck-navbar",
|
|
315
317
|
props: {
|
|
316
318
|
backgroundColor: {},
|
|
@@ -324,34 +326,34 @@ const Mo = /* @__PURE__ */ H(Po, [["__scopeId", "data-v-8bbb38d3"]]), Io = "fixe
|
|
|
324
326
|
}), n = c(() => {
|
|
325
327
|
const i = [];
|
|
326
328
|
o.padding && i.push({ padding: o.padding });
|
|
327
|
-
const d = o.position ||
|
|
329
|
+
const d = o.position || xo;
|
|
328
330
|
return d && i.push({ position: d }), i;
|
|
329
331
|
}), a = c(() => {
|
|
330
332
|
const i = [];
|
|
331
333
|
let d = "";
|
|
332
334
|
return t.value.darkMode && (d = t.value.darkModeColorItems), o.backgroundColor && (d = o.backgroundColor), d && i.push({ backgroundColor: d }), i;
|
|
333
335
|
});
|
|
334
|
-
return (i, d) => (v(),
|
|
336
|
+
return (i, d) => (v(), _("div", {
|
|
335
337
|
class: "ck-navbar",
|
|
336
338
|
style: E(n.value)
|
|
337
339
|
}, [
|
|
338
|
-
|
|
339
|
-
class:
|
|
340
|
+
w("div", {
|
|
341
|
+
class: x(["ck-navbar__content", l.value]),
|
|
340
342
|
style: E(a.value)
|
|
341
343
|
}, [
|
|
342
|
-
|
|
344
|
+
W(i.$slots, "default", {}, void 0, !0)
|
|
343
345
|
], 6)
|
|
344
346
|
], 4));
|
|
345
347
|
}
|
|
346
348
|
});
|
|
347
|
-
const Ao = /* @__PURE__ */
|
|
349
|
+
const Ao = /* @__PURE__ */ j(Io, [["__scopeId", "data-v-3a574311"]]);
|
|
348
350
|
const zo = {}, Ro = { class: "ck-tr" };
|
|
349
351
|
function Oo(e, o) {
|
|
350
|
-
return v(),
|
|
351
|
-
|
|
352
|
+
return v(), _("tr", Ro, [
|
|
353
|
+
W(e.$slots, "default", {}, void 0, !0)
|
|
352
354
|
]);
|
|
353
355
|
}
|
|
354
|
-
const _t = /* @__PURE__ */
|
|
356
|
+
const _t = /* @__PURE__ */ j(zo, [["render", Oo], ["__scopeId", "data-v-53984b6f"]]), L = {
|
|
355
357
|
getGroupClass({
|
|
356
358
|
group: e,
|
|
357
359
|
groupVertical: o,
|
|
@@ -391,7 +393,7 @@ const _t = /* @__PURE__ */ H(zo, [["render", Oo], ["__scopeId", "data-v-53984b6f
|
|
|
391
393
|
isColumnDisplayed(e) {
|
|
392
394
|
return e.neverDisplay || e.isDisplayed === !1 ? !1 : e.unchangeable ? e.isDisplayed === !0 : !0;
|
|
393
395
|
}
|
|
394
|
-
}, Wo = /* @__PURE__ */
|
|
396
|
+
}, Wo = /* @__PURE__ */ R({
|
|
395
397
|
__name: "ck-td",
|
|
396
398
|
props: {
|
|
397
399
|
col: {},
|
|
@@ -408,44 +410,44 @@ const _t = /* @__PURE__ */ H(zo, [["render", Oo], ["__scopeId", "data-v-53984b6f
|
|
|
408
410
|
},
|
|
409
411
|
setup(e) {
|
|
410
412
|
const o = e, t = c(() => {
|
|
411
|
-
var
|
|
413
|
+
var u, p, s;
|
|
412
414
|
const i = [];
|
|
413
|
-
(o.autoWidth || (
|
|
414
|
-
const d = o.verticalAlign || ((
|
|
415
|
+
(o.autoWidth || (u = o.col) != null && u.autoWidth) && i.push("auto-width"), (o.overflowAuto || (p = o.col) != null && p.overflowAuto) && i.push("overflow-auto");
|
|
416
|
+
const d = o.verticalAlign || ((s = o.col) == null ? void 0 : s.verticalAlign);
|
|
415
417
|
return d && i.push(`vertical-align--${d}`), i;
|
|
416
418
|
}), l = c(() => {
|
|
417
|
-
var
|
|
418
|
-
const i = [], d = o.align || ((
|
|
419
|
-
return d && (d === "center" && i.push("align-center"), d === "right" && i.push("align-right")), (o.block || (p = o.col) != null && p.block) && i.push("block"), (o.nowrap || (
|
|
419
|
+
var u, p, s;
|
|
420
|
+
const i = [], d = o.align || ((u = o.col) == null ? void 0 : u.align);
|
|
421
|
+
return d && (d === "center" && i.push("align-center"), d === "right" && i.push("align-right")), (o.block || (p = o.col) != null && p.block) && i.push("block"), (o.nowrap || (s = o.col) != null && s.nowrap) && i.push("no-wrap-text"), i;
|
|
420
422
|
}), n = c(() => {
|
|
421
|
-
var p,
|
|
423
|
+
var p, s, f, r, k, m, h, y, g;
|
|
422
424
|
const i = {};
|
|
423
425
|
let d;
|
|
424
|
-
(o.minWidth || (p = o.col) != null && p.minWidth) && (d = o.minWidth || ((
|
|
425
|
-
let
|
|
426
|
-
return (o.maxWidth || (
|
|
426
|
+
(o.minWidth || (p = o.col) != null && p.minWidth) && (d = o.minWidth || ((s = o.col) == null ? void 0 : s.minWidth)), (o.fixedWidth || (f = o.col) != null && f.fixedWidth) && (d = o.fixedWidth || ((r = o.col) == null ? void 0 : r.fixedWidth)), d && (i.minWidth = d);
|
|
427
|
+
let u;
|
|
428
|
+
return (o.maxWidth || (k = o.col) != null && k.maxWidth) && (u = o.maxWidth || ((m = o.col) == null ? void 0 : m.maxWidth)), (o.fixedWidth || (h = o.col) != null && h.fixedWidth) && (u = o.fixedWidth || ((y = o.col) == null ? void 0 : y.fixedWidth)), u && (i.maxWidth = u), (o.maxHeight || (g = o.col) != null && g.maxHeight) && (i.maxHeight = o.maxHeight), i;
|
|
427
429
|
}), a = c(() => o.col ? L.isColumnDisplayed(o.col) : !0);
|
|
428
|
-
return (i, d) => a.value ? (v(),
|
|
430
|
+
return (i, d) => a.value ? (v(), _("td", {
|
|
429
431
|
key: 0,
|
|
430
|
-
class:
|
|
432
|
+
class: x([t.value, "ck-td"])
|
|
431
433
|
}, [
|
|
432
|
-
|
|
433
|
-
class:
|
|
434
|
+
w("span", {
|
|
435
|
+
class: x(l.value),
|
|
434
436
|
style: E(n.value)
|
|
435
437
|
}, [
|
|
436
|
-
|
|
438
|
+
W(i.$slots, "default", {}, void 0, !0)
|
|
437
439
|
], 6)
|
|
438
|
-
], 2)) :
|
|
440
|
+
], 2)) : C("", !0);
|
|
439
441
|
}
|
|
440
442
|
});
|
|
441
|
-
const bt = /* @__PURE__ */
|
|
443
|
+
const bt = /* @__PURE__ */ j(Wo, [["__scopeId", "data-v-8832ff61"]]), No = /* @__PURE__ */ R({
|
|
442
444
|
__name: "ck-table__columns-manager-btn",
|
|
443
445
|
props: {
|
|
444
446
|
layout: {}
|
|
445
447
|
},
|
|
446
448
|
setup(e) {
|
|
447
449
|
return (o, t) => {
|
|
448
|
-
const l =
|
|
450
|
+
const l = U("ck-button");
|
|
449
451
|
return v(), S(l, {
|
|
450
452
|
size: "s",
|
|
451
453
|
color: "dark",
|
|
@@ -459,7 +461,7 @@ const bt = /* @__PURE__ */ H(Wo, [["__scopeId", "data-v-8832ff61"]]), No = /* @_
|
|
|
459
461
|
}), Eo = {
|
|
460
462
|
key: 0,
|
|
461
463
|
class: "ck-table__items-per-page"
|
|
462
|
-
}, Fo = /* @__PURE__ */
|
|
464
|
+
}, Fo = /* @__PURE__ */ R({
|
|
463
465
|
__name: "ck-table__items-per-page",
|
|
464
466
|
props: {
|
|
465
467
|
currentPage: {},
|
|
@@ -472,10 +474,10 @@ const bt = /* @__PURE__ */ H(Wo, [["__scopeId", "data-v-8832ff61"]]), No = /* @_
|
|
|
472
474
|
const a = o.currentPage * o.itemsPerPage;
|
|
473
475
|
return !o.itemsPerPage || a > o.listLength ? o.listLength : a;
|
|
474
476
|
}), n = c(() => !o.hideItemsPerPage && o.listLength && o.currentPage);
|
|
475
|
-
return (a, i) => n.value ? (v(),
|
|
477
|
+
return (a, i) => n.value ? (v(), _("div", Eo, I(t.value) + " - " + I(l.value) + " de " + I(a.listLength), 1)) : C("", !0);
|
|
476
478
|
}
|
|
477
479
|
});
|
|
478
|
-
const qo = /* @__PURE__ */
|
|
480
|
+
const qo = /* @__PURE__ */ j(Fo, [["__scopeId", "data-v-c3b27c6d"]]), Ho = /* @__PURE__ */ R({
|
|
479
481
|
__name: "ck-icon",
|
|
480
482
|
props: {
|
|
481
483
|
icon: {},
|
|
@@ -491,63 +493,63 @@ const qo = /* @__PURE__ */ H(Fo, [["__scopeId", "data-v-c3b27c6d"]]), Ho = /* @_
|
|
|
491
493
|
emits: ["click"],
|
|
492
494
|
setup(e, { emit: o }) {
|
|
493
495
|
const t = e, l = o, n = c(() => {
|
|
494
|
-
const
|
|
495
|
-
return t.iconPack && (t.iconPack === "cleek" || t.iconPack === "feather") ? t.iconPack :
|
|
496
|
+
const s = "font-awesome";
|
|
497
|
+
return t.iconPack && (t.iconPack === "cleek" || t.iconPack === "feather") ? t.iconPack : s;
|
|
496
498
|
}), a = c(() => {
|
|
497
|
-
const
|
|
498
|
-
return t.color && L.isColorTemplateVariable(t.color) &&
|
|
499
|
+
const s = [];
|
|
500
|
+
return t.color && L.isColorTemplateVariable(t.color) && s.push(`ck-component__color--${t.color}`), t.size && s.push(`ck-icon__size-${t.size}`), s;
|
|
499
501
|
}), i = c(() => {
|
|
500
|
-
const
|
|
501
|
-
return t.color && !L.isColorTemplateVariable(t.color) &&
|
|
502
|
+
const s = [];
|
|
503
|
+
return t.color && !L.isColorTemplateVariable(t.color) && s.push({ color: t.color }), s;
|
|
502
504
|
});
|
|
503
|
-
function d(
|
|
504
|
-
l("click",
|
|
505
|
+
function d(s) {
|
|
506
|
+
l("click", s);
|
|
505
507
|
}
|
|
506
|
-
const
|
|
507
|
-
const
|
|
508
|
-
return `mask: url(${
|
|
508
|
+
const u = c(() => {
|
|
509
|
+
const s = `/src/assets/icons/${t.icon}.svg`;
|
|
510
|
+
return `mask: url(${s}) no-repeat center; -webkit-mask: url(${s}) no-repeat center;`;
|
|
509
511
|
}), p = c(() => {
|
|
510
|
-
const
|
|
511
|
-
return t.color ? t.color && L.isColorTemplateVariable(t.color) &&
|
|
512
|
+
const s = [];
|
|
513
|
+
return t.color ? t.color && L.isColorTemplateVariable(t.color) && s.push(`ck-component__color-background--${t.color}`) : s.push("ck-component__color--primary"), t.size && s.push("ck-icon__cleek-small"), t.size === "m" && s.push("ck-icon__cleek-medium"), t.size === "l" && s.push("ck-icon__cleek-large"), s;
|
|
512
514
|
});
|
|
513
|
-
return (
|
|
514
|
-
class:
|
|
515
|
+
return (s, f) => (v(), _("div", {
|
|
516
|
+
class: x(["ck-icon", a.value]),
|
|
515
517
|
style: E(i.value),
|
|
516
518
|
onClick: f[0] || (f[0] = (r) => d(r))
|
|
517
519
|
}, [
|
|
518
520
|
n.value === "font-awesome" ? (v(), S($e(Zt), {
|
|
519
521
|
key: 0,
|
|
520
|
-
icon:
|
|
521
|
-
rotation:
|
|
522
|
-
flip:
|
|
523
|
-
spin:
|
|
524
|
-
pulse:
|
|
525
|
-
fixedWidth:
|
|
526
|
-
}, null, 8, ["icon", "rotation", "flip", "spin", "pulse", "fixedWidth"])) : n.value === "cleek" ? (v(),
|
|
522
|
+
icon: s.icon,
|
|
523
|
+
rotation: s.rotation,
|
|
524
|
+
flip: s.flip,
|
|
525
|
+
spin: s.spin,
|
|
526
|
+
pulse: s.pulse,
|
|
527
|
+
fixedWidth: s.fixedWidth
|
|
528
|
+
}, null, 8, ["icon", "rotation", "flip", "spin", "pulse", "fixedWidth"])) : n.value === "cleek" ? (v(), _("div", {
|
|
527
529
|
key: 1,
|
|
528
|
-
style: E(
|
|
529
|
-
class:
|
|
530
|
-
}, null, 6)) :
|
|
530
|
+
style: E(u.value),
|
|
531
|
+
class: x([p.value, "ck-icon__cleek"])
|
|
532
|
+
}, null, 6)) : C("", !0)
|
|
531
533
|
], 6));
|
|
532
534
|
}
|
|
533
535
|
});
|
|
534
|
-
const
|
|
536
|
+
const ie = /* @__PURE__ */ j(Ho, [["__scopeId", "data-v-4bc5aa54"]]);
|
|
535
537
|
function he() {
|
|
536
|
-
const e =
|
|
538
|
+
const e = M(0);
|
|
537
539
|
function o(t) {
|
|
538
540
|
e.value = t.currentTarget.innerWidth || 0;
|
|
539
541
|
}
|
|
540
542
|
return be(() => {
|
|
541
|
-
|
|
543
|
+
vt(() => {
|
|
542
544
|
window.addEventListener("resize", o);
|
|
543
545
|
}), e.value = window.innerWidth;
|
|
544
|
-
}),
|
|
546
|
+
}), Xe(() => {
|
|
545
547
|
window.removeEventListener("resize", o);
|
|
546
548
|
}), {
|
|
547
549
|
windowWidth: e
|
|
548
550
|
};
|
|
549
551
|
}
|
|
550
|
-
const jo = ["title", "aria-label", "disabled", "tabindex"], Ze = "transparent", Uo = "outlined",
|
|
552
|
+
const jo = ["title", "aria-label", "disabled", "tabindex"], Ze = "transparent", Uo = "outlined", it = "primary", Go = "left", Zo = /* @__PURE__ */ R({
|
|
551
553
|
__name: "ck-button",
|
|
552
554
|
props: {
|
|
553
555
|
title: {},
|
|
@@ -573,58 +575,58 @@ const jo = ["title", "aria-label", "disabled", "tabindex"], Ze = "transparent",
|
|
|
573
575
|
},
|
|
574
576
|
emits: ["click"],
|
|
575
577
|
setup(e, { emit: o }) {
|
|
576
|
-
const t = e, l = o, { cleekOptions: n } = le(te()), { windowWidth: a } = he(), i = c(() => t.type ? t.type : n.value ? n.value.button.type : Uo), d = c(() => t.backgroundColor ? t.backgroundColor : n.value && !t.type ? n.value.button.backgroundColor : Ze),
|
|
578
|
+
const t = e, l = o, { cleekOptions: n } = le(te()), { windowWidth: a } = he(), i = c(() => t.type ? t.type : n.value ? n.value.button.type : Uo), d = c(() => t.backgroundColor ? t.backgroundColor : n.value && !t.type ? n.value.button.backgroundColor : Ze), u = c(() => t.textColor ? t.textColor : n.value && !t.type ? n.value.button.textColor : ""), p = c(() => {
|
|
577
579
|
const r = [];
|
|
578
|
-
r.push(L.getGroupClass(t, a.value)), (t.color ||
|
|
580
|
+
r.push(L.getGroupClass(t, a.value)), (t.color || it) !== it && (i.value === "filled" ? r.push(`ck-component__bg-color--${t.color}`) : r.push(`ck-component__border-color--${t.color}`)), d.value !== Ze && L.isColorTemplateVariable(d.value) && r.push(`ck-component__bg-color--${d.value}`), u.value && L.isColorTemplateVariable(u.value) && r.push(`ck-component__color--${u.value}`);
|
|
579
581
|
const m = t.align || Go;
|
|
580
582
|
(m === "center" || m === "right") && r.push(`ck-button__align--${t.align}`);
|
|
581
|
-
const
|
|
582
|
-
return
|
|
583
|
-
}),
|
|
583
|
+
const h = t.layout || n.value.styles.layout;
|
|
584
|
+
return h && r.push(h), r.push(`type-${i.value}`), t.size && r.push(`ck-button-size__${t.size}`), t.isLoading && r.push("is-loading-btn"), r;
|
|
585
|
+
}), s = c(() => {
|
|
584
586
|
const r = [];
|
|
585
|
-
let
|
|
587
|
+
let k = !1;
|
|
586
588
|
if (t.widthBreaks) {
|
|
587
589
|
const m = L.getWidthByWidthBreaks(t.widthBreaks, a.value);
|
|
588
|
-
m && (
|
|
590
|
+
m && (k = !0, r.push({ width: m }));
|
|
589
591
|
}
|
|
590
|
-
return
|
|
592
|
+
return u.value && !L.isColorTemplateVariable(u.value) && r.push({ color: `${u.value} !important` }), t.width && !k && r.push({ width: t.width }), d.value !== Ze && !L.isColorTemplateVariable(d.value) && r.push({ "background-color": d.value }), t.color && !L.isColorTemplateVariable(t.color) && (i.value === "outlined" ? (r.push({ "border-color": t.color }), r.push({ color: t.color })) : i.value === "filled" ? (r.push({ color: "white" }), r.push({ "border-color": t.color }), r.push({ "background-color": t.color })) : i.value === "flat" && r.push({ color: t.color })), r;
|
|
591
593
|
});
|
|
592
594
|
function f(r) {
|
|
593
595
|
t.isLoading || l("click", r);
|
|
594
596
|
}
|
|
595
|
-
return (r,
|
|
597
|
+
return (r, k) => (v(), _("button", {
|
|
596
598
|
type: "button",
|
|
597
|
-
class:
|
|
599
|
+
class: x(p.value),
|
|
598
600
|
title: r.title,
|
|
599
601
|
"aria-label": r.title,
|
|
600
602
|
disabled: r.disabled,
|
|
601
603
|
tabindex: r.tabindex,
|
|
602
|
-
style: E(
|
|
603
|
-
onClick:
|
|
604
|
+
style: E(s.value),
|
|
605
|
+
onClick: k[0] || (k[0] = (m) => f(m))
|
|
604
606
|
}, [
|
|
605
|
-
r.isLoading ? (v(), S(
|
|
607
|
+
r.isLoading ? (v(), S(ie, {
|
|
606
608
|
key: 0,
|
|
607
609
|
icon: "spinner",
|
|
608
610
|
spin: ""
|
|
609
|
-
})) : (v(),
|
|
610
|
-
r.icon ? (v(), S(
|
|
611
|
+
})) : (v(), _(Y, { key: 1 }, [
|
|
612
|
+
r.icon ? (v(), S(ie, {
|
|
611
613
|
key: 0,
|
|
612
|
-
class:
|
|
614
|
+
class: x(["ck-button__icon-left", { "just-icon": !r.$slots.default }]),
|
|
613
615
|
icon: r.icon,
|
|
614
616
|
"icon-pack": r.iconPack
|
|
615
|
-
}, null, 8, ["icon", "icon-pack", "class"])) :
|
|
616
|
-
|
|
617
|
-
r.iconRight ? (v(), S(
|
|
617
|
+
}, null, 8, ["icon", "icon-pack", "class"])) : C("", !0),
|
|
618
|
+
W(r.$slots, "default", {}, void 0, !0),
|
|
619
|
+
r.iconRight ? (v(), S(ie, {
|
|
618
620
|
key: 1,
|
|
619
|
-
class:
|
|
621
|
+
class: x(["ck-button__icon-right", { "just-icon": !r.$slots.default }]),
|
|
620
622
|
icon: r.iconRight,
|
|
621
623
|
"icon-pack": r.iconPack
|
|
622
|
-
}, null, 8, ["icon", "icon-pack", "class"])) :
|
|
624
|
+
}, null, 8, ["icon", "icon-pack", "class"])) : C("", !0)
|
|
623
625
|
], 64))
|
|
624
626
|
], 14, jo));
|
|
625
627
|
}
|
|
626
628
|
});
|
|
627
|
-
const Oe = /* @__PURE__ */
|
|
629
|
+
const Oe = /* @__PURE__ */ j(Zo, [["__scopeId", "data-v-bce5585d"]]), Yo = ["for"], Ko = "m", Jo = /* @__PURE__ */ R({
|
|
628
630
|
__name: "ck-label",
|
|
629
631
|
props: {
|
|
630
632
|
for: {},
|
|
@@ -641,19 +643,19 @@ const Oe = /* @__PURE__ */ H(Zo, [["__scopeId", "data-v-bce5585d"]]), Yo = ["for
|
|
|
641
643
|
let i = t.value.popup.textColor;
|
|
642
644
|
return t.value.darkMode && (i = t.value.darkModeColorText), i && (L.isColorTemplateVariable(i) ? a.push(`ck-component__color--${i}`) : a.push({ color: i })), a;
|
|
643
645
|
});
|
|
644
|
-
return (a, i) => (v(),
|
|
645
|
-
class:
|
|
646
|
+
return (a, i) => (v(), _("label", {
|
|
647
|
+
class: x(["ck-label", l.value]),
|
|
646
648
|
for: o.for,
|
|
647
649
|
style: E(n.value)
|
|
648
650
|
}, [
|
|
649
|
-
|
|
651
|
+
W(a.$slots, "default", {}, void 0, !0)
|
|
650
652
|
], 14, Yo));
|
|
651
653
|
}
|
|
652
654
|
});
|
|
653
|
-
const Me = /* @__PURE__ */
|
|
655
|
+
const Me = /* @__PURE__ */ j(Jo, [["__scopeId", "data-v-f242d7f6"]]), Qo = {
|
|
654
656
|
key: 0,
|
|
655
657
|
class: "ck-input__optional-label"
|
|
656
|
-
}, Xo = { class: "ck-input__content" }, el = ["type", "autocomplete", "placeholder", "disabled"], tl = "120px",
|
|
658
|
+
}, Xo = { class: "ck-input__content" }, el = ["type", "autocomplete", "placeholder", "disabled"], tl = "120px", st = "center", ol = /* @__PURE__ */ R({
|
|
657
659
|
__name: "ck-input",
|
|
658
660
|
props: /* @__PURE__ */ ee({
|
|
659
661
|
type: { default: "text" },
|
|
@@ -694,181 +696,181 @@ const Me = /* @__PURE__ */ H(Jo, [["__scopeId", "data-v-f242d7f6"]]), Qo = {
|
|
|
694
696
|
emits: /* @__PURE__ */ ee(["click", "focus", "blur", "input", "inputDelayed", "change", "changeDelayed"], ["update:modelValue"]),
|
|
695
697
|
setup(e, { expose: o, emit: t }) {
|
|
696
698
|
const l = ge(e, "modelValue"), n = e, a = t;
|
|
697
|
-
o({ focus:
|
|
698
|
-
const { cleekOptions: i } = le(te()), { windowWidth: d } = he(),
|
|
699
|
-
const
|
|
700
|
-
let
|
|
701
|
-
if (n.width && (
|
|
702
|
-
const
|
|
703
|
-
|
|
699
|
+
o({ focus: g, select: T });
|
|
700
|
+
const { cleekOptions: i } = le(te()), { windowWidth: d } = he(), u = M(), p = M(""), s = M(!1), f = c(() => s.value ? "text" : n.plusMinusButtons ? "number" : n.type), r = c(() => n.justInteger || n.plusMinusButtons), k = c(() => n.labelAlign ? n.labelAlign : n.align ? n.align : n.plusMinusButtons ? st : "left"), m = c(() => {
|
|
701
|
+
const $ = [];
|
|
702
|
+
let A = "";
|
|
703
|
+
if (n.width && (A = n.width), n.plusMinusButtons && (A = tl), A && $.push({ width: A }), n.widthBreaks) {
|
|
704
|
+
const Q = L.getWidthByWidthBreaks(n.widthBreaks, d.value);
|
|
705
|
+
Q && $.push({ width: Q });
|
|
704
706
|
}
|
|
705
|
-
return
|
|
706
|
-
}),
|
|
707
|
-
const
|
|
708
|
-
|
|
709
|
-
let
|
|
710
|
-
n.plusMinusButtons && (
|
|
711
|
-
const
|
|
712
|
-
|
|
707
|
+
return $;
|
|
708
|
+
}), h = c(() => {
|
|
709
|
+
const $ = [];
|
|
710
|
+
$.push(L.getGroupClass(n, d.value)), n.icon && $.push("has-icon-left"), n.iconRight && $.push("has-icon-right");
|
|
711
|
+
let A = n.align;
|
|
712
|
+
n.plusMinusButtons && (A = st), A && $.push(`align--${A}`), n.hideBorder && $.push("no-border");
|
|
713
|
+
const Q = n.layout || i.value.styles.layout;
|
|
714
|
+
Q && $.push(Q), n.size && $.push(`ck-input-size__${n.size}`);
|
|
713
715
|
const oe = n.borderColor || i.value.styles.borderColor;
|
|
714
|
-
return oe && L.isColorTemplateVariable(oe) &&
|
|
715
|
-
}),
|
|
716
|
-
const
|
|
717
|
-
n.fontSize &&
|
|
718
|
-
const
|
|
719
|
-
|
|
720
|
-
let
|
|
721
|
-
i.value.darkMode && (
|
|
716
|
+
return oe && L.isColorTemplateVariable(oe) && $.push(`ck-component__border-color--${oe}`), $;
|
|
717
|
+
}), y = c(() => {
|
|
718
|
+
const $ = [];
|
|
719
|
+
n.fontSize && $.push({ "font-size": n.fontSize }), n.textColor && $.push({ color: n.textColor });
|
|
720
|
+
const A = n.borderColor || i.value.styles.borderColor;
|
|
721
|
+
A && !L.isColorTemplateVariable(A) && $.push({ "border-color": A });
|
|
722
|
+
let Q = "";
|
|
723
|
+
i.value.darkMode && (Q = i.value.darkModeColorItems), Q && !L.isColorTemplateVariable(Q) && $.push({ backgroundColor: Q });
|
|
722
724
|
let oe = n.textColor || i.value.popup.textColor;
|
|
723
|
-
return i.value.darkMode && (oe = i.value.darkModeColorText), oe && !L.isColorTemplateVariable(oe) && (
|
|
725
|
+
return i.value.darkMode && (oe = i.value.darkModeColorText), oe && !L.isColorTemplateVariable(oe) && ($.push(`ck-component__color--${oe}`), $.push({ color: oe })), $;
|
|
724
726
|
});
|
|
725
|
-
|
|
727
|
+
ce(
|
|
726
728
|
() => l.value,
|
|
727
|
-
(
|
|
729
|
+
($) => se($),
|
|
728
730
|
{ immediate: !0 }
|
|
729
731
|
);
|
|
730
|
-
function
|
|
731
|
-
var
|
|
732
|
-
(
|
|
732
|
+
function g() {
|
|
733
|
+
var $;
|
|
734
|
+
($ = u.value) == null || $.focus();
|
|
733
735
|
}
|
|
734
|
-
function
|
|
735
|
-
var
|
|
736
|
-
(
|
|
736
|
+
function T() {
|
|
737
|
+
var $;
|
|
738
|
+
($ = u.value) == null || $.select();
|
|
737
739
|
}
|
|
738
|
-
function
|
|
739
|
-
a("input",
|
|
740
|
-
l.value ===
|
|
740
|
+
function O($) {
|
|
741
|
+
a("input", $), setTimeout(() => {
|
|
742
|
+
l.value === $ && a("inputDelayed", $);
|
|
741
743
|
}, n.delayChangeTime);
|
|
742
744
|
}
|
|
743
|
-
function
|
|
744
|
-
a("change",
|
|
745
|
-
l.value ===
|
|
745
|
+
function V($) {
|
|
746
|
+
a("change", $), setTimeout(() => {
|
|
747
|
+
l.value === $ && a("changeDelayed", $);
|
|
746
748
|
}, n.delayChangeTime);
|
|
747
749
|
}
|
|
748
|
-
function
|
|
749
|
-
var
|
|
750
|
-
a("click",
|
|
750
|
+
function B($) {
|
|
751
|
+
var A;
|
|
752
|
+
a("click", $), n.autoSelect && ((A = u.value) == null || A.select());
|
|
751
753
|
}
|
|
752
|
-
function
|
|
753
|
-
const
|
|
754
|
-
|
|
754
|
+
function P() {
|
|
755
|
+
const $ = se(p.value);
|
|
756
|
+
O($);
|
|
755
757
|
}
|
|
756
|
-
function
|
|
757
|
-
|
|
758
|
+
function F() {
|
|
759
|
+
V(l.value);
|
|
758
760
|
}
|
|
759
|
-
function
|
|
760
|
-
a("focus",
|
|
761
|
+
function X($) {
|
|
762
|
+
a("focus", $), f.value === "number" && !p.value && (p.value = "");
|
|
761
763
|
}
|
|
762
|
-
function
|
|
763
|
-
a("blur",
|
|
764
|
+
function ne($) {
|
|
765
|
+
a("blur", $), f.value === "number" && !p.value && (p.value = l.value);
|
|
764
766
|
}
|
|
765
|
-
function
|
|
766
|
-
const
|
|
767
|
-
|
|
767
|
+
function we() {
|
|
768
|
+
const $ = se(+p.value - 1);
|
|
769
|
+
O($), V($);
|
|
768
770
|
}
|
|
769
|
-
function
|
|
770
|
-
const
|
|
771
|
-
|
|
771
|
+
function D() {
|
|
772
|
+
const $ = se(+p.value + 1);
|
|
773
|
+
O($), V($);
|
|
772
774
|
}
|
|
773
|
-
function
|
|
774
|
-
let
|
|
775
|
-
return n.capitalize && (
|
|
775
|
+
function q($) {
|
|
776
|
+
let A = $;
|
|
777
|
+
return n.capitalize && (A = ze.capitalize(`${A}`)), n.toUpperCase && (A = `${A}`.toUpperCase()), r.value && (A = parseInt(`${+A}`)), typeof n.min < "u" && +A < +n.min && (A = +n.min), typeof n.max < "u" && +A > +n.max && (A = +n.max), A;
|
|
776
778
|
}
|
|
777
|
-
function
|
|
778
|
-
const
|
|
779
|
-
return l.value =
|
|
779
|
+
function se($) {
|
|
780
|
+
const A = q($);
|
|
781
|
+
return l.value = A, p.value = A, A;
|
|
780
782
|
}
|
|
781
783
|
return be(() => {
|
|
782
|
-
n.autofocus && (
|
|
783
|
-
}), (
|
|
784
|
+
n.autofocus && (g(), B(null));
|
|
785
|
+
}), ($, A) => {
|
|
784
786
|
var oe;
|
|
785
|
-
const
|
|
786
|
-
return v(),
|
|
787
|
+
const Q = U("ck-button");
|
|
788
|
+
return v(), _("div", {
|
|
787
789
|
class: "ck-input",
|
|
788
790
|
style: E(m.value)
|
|
789
791
|
}, [
|
|
790
|
-
|
|
792
|
+
$.label ? (v(), S(Me, {
|
|
791
793
|
key: 0,
|
|
792
794
|
for: "ck-input",
|
|
793
|
-
size:
|
|
794
|
-
align:
|
|
795
|
+
size: $.size,
|
|
796
|
+
align: k.value
|
|
795
797
|
}, {
|
|
796
|
-
default:
|
|
797
|
-
|
|
798
|
-
|
|
798
|
+
default: H(() => [
|
|
799
|
+
Z(I($.label) + " ", 1),
|
|
800
|
+
$.optional ? (v(), _("span", Qo, "opcional")) : C("", !0)
|
|
799
801
|
]),
|
|
800
802
|
_: 1
|
|
801
|
-
}, 8, ["size", "align"])) :
|
|
802
|
-
|
|
803
|
-
|
|
803
|
+
}, 8, ["size", "align"])) : C("", !0),
|
|
804
|
+
w("div", Xo, [
|
|
805
|
+
$.plusMinusButtons ? (v(), S(Q, {
|
|
804
806
|
key: 0,
|
|
805
807
|
size: "s",
|
|
806
808
|
icon: "minus",
|
|
807
809
|
group: "left",
|
|
808
810
|
type: "filled",
|
|
809
811
|
class: "ck-input-plus-minus-buttons",
|
|
810
|
-
onClick:
|
|
811
|
-
})) :
|
|
812
|
-
|
|
812
|
+
onClick: A[0] || (A[0] = (ae) => we())
|
|
813
|
+
})) : C("", !0),
|
|
814
|
+
$.icon ? (v(), S(ie, {
|
|
813
815
|
key: 1,
|
|
814
816
|
class: "ck-input__icon-left",
|
|
815
|
-
color:
|
|
816
|
-
icon:
|
|
817
|
-
"icon-pack":
|
|
817
|
+
color: $.iconColor ? $.iconColor : "lightgrey",
|
|
818
|
+
icon: $.icon,
|
|
819
|
+
"icon-pack": $.iconPack,
|
|
818
820
|
size: "s"
|
|
819
|
-
}, null, 8, ["color", "icon", "icon-pack"])) :
|
|
820
|
-
|
|
821
|
+
}, null, 8, ["color", "icon", "icon-pack"])) : C("", !0),
|
|
822
|
+
ue(w("input", {
|
|
821
823
|
ref_key: "inputRef",
|
|
822
|
-
ref:
|
|
823
|
-
"onUpdate:modelValue":
|
|
824
|
+
ref: u,
|
|
825
|
+
"onUpdate:modelValue": A[1] || (A[1] = (ae) => p.value = ae),
|
|
824
826
|
type: f.value,
|
|
825
|
-
autocomplete:
|
|
826
|
-
placeholder:
|
|
827
|
-
class:
|
|
828
|
-
style: E(
|
|
829
|
-
disabled:
|
|
830
|
-
onClick:
|
|
831
|
-
onInput:
|
|
832
|
-
onChange:
|
|
833
|
-
onFocus:
|
|
834
|
-
onBlur:
|
|
827
|
+
autocomplete: $.preventAutocomplete ? "off" : "on",
|
|
828
|
+
placeholder: $.placeholder,
|
|
829
|
+
class: x(h.value),
|
|
830
|
+
style: E(y.value),
|
|
831
|
+
disabled: $.disabled,
|
|
832
|
+
onClick: A[2] || (A[2] = (ae) => B(ae)),
|
|
833
|
+
onInput: A[3] || (A[3] = (ae) => P()),
|
|
834
|
+
onChange: A[4] || (A[4] = (ae) => F()),
|
|
835
|
+
onFocus: A[5] || (A[5] = (ae) => X(ae)),
|
|
836
|
+
onBlur: A[6] || (A[6] = (ae) => ne(ae))
|
|
835
837
|
}, null, 46, el), [
|
|
836
838
|
[zt, p.value]
|
|
837
839
|
]),
|
|
838
|
-
|
|
840
|
+
$.type === "password" ? (v(), _("div", {
|
|
839
841
|
key: 2,
|
|
840
|
-
class:
|
|
841
|
-
onClick:
|
|
842
|
+
class: x(["show-password", $.layout || ((oe = $e(i)) == null ? void 0 : oe.styles.layout)]),
|
|
843
|
+
onClick: A[7] || (A[7] = (ae) => s.value = !s.value)
|
|
842
844
|
}, [
|
|
843
|
-
|
|
844
|
-
icon:
|
|
845
|
+
G(ie, {
|
|
846
|
+
icon: s.value ? "eye-slash" : "eye"
|
|
845
847
|
}, null, 8, ["icon"])
|
|
846
|
-
], 2)) :
|
|
847
|
-
|
|
848
|
+
], 2)) : C("", !0),
|
|
849
|
+
$.iconRight && $.type !== "password" ? (v(), S(ie, {
|
|
848
850
|
key: 3,
|
|
849
851
|
class: "ck-input__icon-right",
|
|
850
|
-
color:
|
|
851
|
-
icon:
|
|
852
|
-
"icon-pack":
|
|
853
|
-
}, null, 8, ["color", "icon", "icon-pack"])) :
|
|
854
|
-
|
|
852
|
+
color: $.iconColor ? $.iconColor : "lightgrey",
|
|
853
|
+
icon: $.iconRight,
|
|
854
|
+
"icon-pack": $.iconPack
|
|
855
|
+
}, null, 8, ["color", "icon", "icon-pack"])) : C("", !0),
|
|
856
|
+
$.plusMinusButtons ? (v(), S(Q, {
|
|
855
857
|
key: 4,
|
|
856
858
|
size: "s",
|
|
857
859
|
icon: "plus",
|
|
858
860
|
group: "right",
|
|
859
861
|
type: "filled",
|
|
860
862
|
class: "ck-input-plus-minus-buttons",
|
|
861
|
-
onClick:
|
|
862
|
-
})) :
|
|
863
|
+
onClick: A[8] || (A[8] = (ae) => D())
|
|
864
|
+
})) : C("", !0)
|
|
863
865
|
])
|
|
864
866
|
], 4);
|
|
865
867
|
};
|
|
866
868
|
}
|
|
867
869
|
});
|
|
868
|
-
const Ct = /* @__PURE__ */
|
|
870
|
+
const Ct = /* @__PURE__ */ j(ol, [["__scopeId", "data-v-02655db0"]]), ll = {
|
|
869
871
|
key: 0,
|
|
870
872
|
class: "flex items-center"
|
|
871
|
-
}, nl = { key: 2 }, al = /* @__PURE__ */
|
|
873
|
+
}, nl = { key: 2 }, al = /* @__PURE__ */ R({
|
|
872
874
|
__name: "ck-table__header-items",
|
|
873
875
|
props: /* @__PURE__ */ ee({
|
|
874
876
|
hideRefreshBtn: { type: Boolean },
|
|
@@ -889,20 +891,20 @@ const Ct = /* @__PURE__ */ H(ol, [["__scopeId", "data-v-02655db0"]]), ll = {
|
|
|
889
891
|
function d() {
|
|
890
892
|
l.isLoading || n("refreshList", !0);
|
|
891
893
|
}
|
|
892
|
-
function
|
|
893
|
-
const
|
|
894
|
+
function u(p) {
|
|
895
|
+
const s = p;
|
|
894
896
|
setTimeout(() => {
|
|
895
|
-
|
|
897
|
+
s === t.value && n("refreshList", !1);
|
|
896
898
|
}, 1e3);
|
|
897
899
|
}
|
|
898
|
-
return (p,
|
|
899
|
-
class:
|
|
900
|
+
return (p, s) => (v(), _("div", {
|
|
901
|
+
class: x(["ck-table__header-items", i.value])
|
|
900
902
|
}, [
|
|
901
|
-
p.$slots.headerActionsLeft ? (v(),
|
|
902
|
-
|
|
903
|
-
])) :
|
|
904
|
-
!p.hideHeaderActions && a.value ? (v(),
|
|
905
|
-
p.hideRefreshBtn ?
|
|
903
|
+
p.$slots.headerActionsLeft ? (v(), _("div", ll, [
|
|
904
|
+
W(p.$slots, "headerActionsLeft", {}, void 0, !0)
|
|
905
|
+
])) : C("", !0),
|
|
906
|
+
!p.hideHeaderActions && a.value ? (v(), _(Y, { key: 1 }, [
|
|
907
|
+
p.hideRefreshBtn ? C("", !0) : (v(), S(Oe, {
|
|
906
908
|
key: 0,
|
|
907
909
|
class: "mr-1",
|
|
908
910
|
type: "flat",
|
|
@@ -911,26 +913,26 @@ const Ct = /* @__PURE__ */ H(ol, [["__scopeId", "data-v-02655db0"]]), ll = {
|
|
|
911
913
|
layout: "rounded",
|
|
912
914
|
icon: p.isLoading ? "spinner" : "rotate-right",
|
|
913
915
|
isLoading: !!p.isLoading,
|
|
914
|
-
onClick:
|
|
916
|
+
onClick: s[0] || (s[0] = (f) => d())
|
|
915
917
|
}, null, 8, ["icon", "isLoading"])),
|
|
916
|
-
|
|
918
|
+
G(Ct, {
|
|
917
919
|
modelValue: t.value,
|
|
918
|
-
"onUpdate:modelValue":
|
|
920
|
+
"onUpdate:modelValue": s[1] || (s[1] = (f) => t.value = f),
|
|
919
921
|
class: "ck-table--search-input",
|
|
920
922
|
layout: "rounded",
|
|
921
923
|
icon: "magnifying-glass",
|
|
922
924
|
placeholder: "Buscar...",
|
|
923
925
|
borderColor: p.version === "colored" ? "white" : "",
|
|
924
|
-
onInput:
|
|
926
|
+
onInput: s[2] || (s[2] = (f) => u(f))
|
|
925
927
|
}, null, 8, ["modelValue", "borderColor"])
|
|
926
|
-
], 64)) :
|
|
927
|
-
p.$slots.headerActionsRight ? (v(),
|
|
928
|
-
|
|
929
|
-
])) :
|
|
928
|
+
], 64)) : C("", !0),
|
|
929
|
+
p.$slots.headerActionsRight ? (v(), _("div", nl, [
|
|
930
|
+
W(p.$slots, "headerActionsRight", {}, void 0, !0)
|
|
931
|
+
])) : C("", !0)
|
|
930
932
|
], 2));
|
|
931
933
|
}
|
|
932
934
|
});
|
|
933
|
-
const il = /* @__PURE__ */
|
|
935
|
+
const il = /* @__PURE__ */ j(al, [["__scopeId", "data-v-187caf58"]]), sl = { class: "ck-table__pagination" }, rl = { class: "ck-table__pagination--numbers-container" }, ul = ["onClick"], cl = { class: "ck-table__pagination-input-container" }, dl = ["onClick"], rt = 5, pl = /* @__PURE__ */ R({
|
|
934
936
|
__name: "ck-table__pagination",
|
|
935
937
|
props: {
|
|
936
938
|
totalPages: {},
|
|
@@ -946,8 +948,8 @@ const il = /* @__PURE__ */ H(al, [["__scopeId", "data-v-187caf58"]]), sl = { cla
|
|
|
946
948
|
get() {
|
|
947
949
|
return t.currentPage;
|
|
948
950
|
},
|
|
949
|
-
set(
|
|
950
|
-
l("update:currentPage",
|
|
951
|
+
set(h) {
|
|
952
|
+
l("update:currentPage", h);
|
|
951
953
|
}
|
|
952
954
|
}), i = c({
|
|
953
955
|
get() {
|
|
@@ -955,88 +957,88 @@ const il = /* @__PURE__ */ H(al, [["__scopeId", "data-v-187caf58"]]), sl = { cla
|
|
|
955
957
|
},
|
|
956
958
|
set() {
|
|
957
959
|
}
|
|
958
|
-
}), d = c(() => t.currentPage !== 1),
|
|
960
|
+
}), d = c(() => t.currentPage !== 1), u = c(() => !!s.value.length), p = c(() => {
|
|
959
961
|
if (!t.listLength)
|
|
960
962
|
return [];
|
|
961
|
-
const
|
|
962
|
-
for (const
|
|
963
|
-
const
|
|
964
|
-
|
|
963
|
+
const h = [], y = (rt - 1) / 2;
|
|
964
|
+
for (const g of Array(y).keys()) {
|
|
965
|
+
const T = t.currentPage - g - 1;
|
|
966
|
+
T > 0 && h.unshift(T);
|
|
965
967
|
}
|
|
966
|
-
return
|
|
967
|
-
}),
|
|
968
|
+
return h;
|
|
969
|
+
}), s = c(() => {
|
|
968
970
|
if (!t.listLength)
|
|
969
971
|
return [];
|
|
970
|
-
const
|
|
971
|
-
for (const
|
|
972
|
-
const
|
|
973
|
-
|
|
972
|
+
const h = [], y = (rt - 1) / 2;
|
|
973
|
+
for (const g of Array(y).keys()) {
|
|
974
|
+
const T = t.currentPage + g + 1;
|
|
975
|
+
T <= t.totalPages && h.push(T);
|
|
974
976
|
}
|
|
975
|
-
return
|
|
977
|
+
return h;
|
|
976
978
|
}), f = c(() => {
|
|
977
|
-
const
|
|
978
|
-
|
|
979
|
-
const
|
|
980
|
-
return
|
|
979
|
+
const h = [], y = t.align || "center";
|
|
980
|
+
y && h.push(`pagination-align--${y || "center"}`);
|
|
981
|
+
const g = t.layout || n.value.styles.layout;
|
|
982
|
+
return g && h.push(g), h;
|
|
981
983
|
});
|
|
982
|
-
|
|
983
|
-
function r(
|
|
984
|
-
let
|
|
985
|
-
|
|
984
|
+
ce(() => a.value, () => l("refreshList"));
|
|
985
|
+
function r(h) {
|
|
986
|
+
let y = +h.value;
|
|
987
|
+
y > t.totalPages && (y = t.totalPages), y < 1 && (y = 1), t.currentPage === y ? h.value = `${y}` : a.value = y;
|
|
986
988
|
}
|
|
987
|
-
function
|
|
988
|
-
|
|
989
|
+
function k() {
|
|
990
|
+
u.value && (a.value = t.currentPage + 1);
|
|
989
991
|
}
|
|
990
992
|
function m() {
|
|
991
993
|
d.value && (a.value = t.currentPage - 1);
|
|
992
994
|
}
|
|
993
|
-
return (
|
|
994
|
-
class:
|
|
995
|
+
return (h, y) => (v(), _("div", {
|
|
996
|
+
class: x(["ck-table__pagination-container", f.value])
|
|
995
997
|
}, [
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
class:
|
|
999
|
-
onClick:
|
|
998
|
+
w("div", sl, [
|
|
999
|
+
w("div", {
|
|
1000
|
+
class: x(["ck-table__pagination--arrow-left", { disabled: !d.value }]),
|
|
1001
|
+
onClick: y[0] || (y[0] = (g) => m())
|
|
1000
1002
|
}, [
|
|
1001
|
-
|
|
1003
|
+
G(ie, {
|
|
1002
1004
|
icon: d.value ? "angle-left" : "grip-lines-vertical"
|
|
1003
1005
|
}, null, 8, ["icon"])
|
|
1004
1006
|
], 2),
|
|
1005
|
-
|
|
1006
|
-
(v(!0),
|
|
1007
|
+
w("div", rl, [
|
|
1008
|
+
(v(!0), _(Y, null, de(p.value, (g) => (v(), _("div", {
|
|
1007
1009
|
class: "ck-table__pagination-item--left",
|
|
1008
|
-
onClick: (
|
|
1009
|
-
}, I(
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
"onUpdate:modelValue":
|
|
1010
|
+
onClick: (T) => a.value = g
|
|
1011
|
+
}, I(g), 9, ul))), 256)),
|
|
1012
|
+
w("div", cl, [
|
|
1013
|
+
ue(w("input", {
|
|
1014
|
+
"onUpdate:modelValue": y[1] || (y[1] = (g) => i.value = g),
|
|
1013
1015
|
class: "ck-table__pagination-input",
|
|
1014
1016
|
type: "number",
|
|
1015
|
-
onClick:
|
|
1016
|
-
onChange:
|
|
1017
|
+
onClick: y[2] || (y[2] = (g) => g.target.select()),
|
|
1018
|
+
onChange: y[3] || (y[3] = (g) => r(g.target))
|
|
1017
1019
|
}, null, 544), [
|
|
1018
1020
|
[We, i.value]
|
|
1019
1021
|
]),
|
|
1020
|
-
|
|
1022
|
+
y[5] || (y[5] = w("div", { class: "ck-table__pagination--input-pointer" }, null, -1))
|
|
1021
1023
|
]),
|
|
1022
|
-
(v(!0),
|
|
1024
|
+
(v(!0), _(Y, null, de(s.value, (g) => (v(), _("div", {
|
|
1023
1025
|
class: "ck-table__pagination-item--right",
|
|
1024
|
-
onClick: (
|
|
1025
|
-
}, I(
|
|
1026
|
+
onClick: (T) => a.value = g
|
|
1027
|
+
}, I(g), 9, dl))), 256))
|
|
1026
1028
|
]),
|
|
1027
|
-
|
|
1028
|
-
class:
|
|
1029
|
-
onClick:
|
|
1029
|
+
w("div", {
|
|
1030
|
+
class: x(["ck-table__pagination--arrow-right", { disabled: !u.value }]),
|
|
1031
|
+
onClick: y[4] || (y[4] = (g) => k())
|
|
1030
1032
|
}, [
|
|
1031
|
-
|
|
1032
|
-
icon:
|
|
1033
|
+
G(ie, {
|
|
1034
|
+
icon: u.value ? "angle-right" : "grip-lines-vertical"
|
|
1033
1035
|
}, null, 8, ["icon"])
|
|
1034
1036
|
], 2)
|
|
1035
1037
|
])
|
|
1036
1038
|
], 2));
|
|
1037
1039
|
}
|
|
1038
1040
|
});
|
|
1039
|
-
const vl = /* @__PURE__ */
|
|
1041
|
+
const vl = /* @__PURE__ */ j(pl, [["__scopeId", "data-v-a399c4bf"]]), fl = ["disabled", "checked"], ml = ["textContent"], gl = "m", hl = /* @__PURE__ */ R({
|
|
1040
1042
|
__name: "ck-checkbox",
|
|
1041
1043
|
props: /* @__PURE__ */ ee({
|
|
1042
1044
|
label: {},
|
|
@@ -1061,62 +1063,62 @@ const vl = /* @__PURE__ */ H(pl, [["__scopeId", "data-v-a399c4bf"]]), fl = ["dis
|
|
|
1061
1063
|
}), d = c(() => {
|
|
1062
1064
|
const r = [];
|
|
1063
1065
|
return l.color && L.isColorTemplateVariable(l.color) && (r.push(`ck-component__border-color--${l.color}`), (t.value || t.value === null) && r.push(`ck-component__color-background--${l.color}`)), r;
|
|
1064
|
-
}),
|
|
1066
|
+
}), u = c(() => {
|
|
1065
1067
|
const r = [];
|
|
1066
1068
|
return l.color && !L.isColorTemplateVariable(l.color) && (r.push({ borderColor: l.color }), (t.value || t.value === null) && r.push({ backgroundColor: l.color })), r;
|
|
1067
1069
|
}), p = c(() => {
|
|
1068
1070
|
const r = [];
|
|
1069
1071
|
return l.colorText && L.isColorTemplateVariable(l.colorText) && r.push(`ck-component__color--${l.colorText}`), l.textSize && l.textSize !== gl && r.push(`ck-checkbox--label-text-size--${l.textSize}`), r;
|
|
1070
|
-
}),
|
|
1072
|
+
}), s = c(() => {
|
|
1071
1073
|
const r = [];
|
|
1072
1074
|
return l.colorText && !L.isColorTemplateVariable(l.colorText) && r.push({ color: l.colorText }), r;
|
|
1073
1075
|
});
|
|
1074
1076
|
function f() {
|
|
1075
1077
|
l.preventAutoUpdate || (t.value = !t.value);
|
|
1076
1078
|
}
|
|
1077
|
-
return (r,
|
|
1079
|
+
return (r, k) => (v(), _("label", Ne(a.value, {
|
|
1078
1080
|
class: ["ck-checkbox", i.value],
|
|
1079
|
-
onKeydown:
|
|
1081
|
+
onKeydown: k[4] || (k[4] = _e(re(() => {
|
|
1080
1082
|
}, ["prevent"]), ["space"])),
|
|
1081
1083
|
onKeyup: [
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
+
k[5] || (k[5] = _e((m) => f(), ["enter"])),
|
|
1085
|
+
k[6] || (k[6] = _e((m) => f(), ["space"]))
|
|
1084
1086
|
],
|
|
1085
|
-
onClick:
|
|
1087
|
+
onClick: k[7] || (k[7] = re((m) => f(), ["prevent"]))
|
|
1086
1088
|
}), [
|
|
1087
|
-
|
|
1088
|
-
class:
|
|
1089
|
+
w("input", {
|
|
1090
|
+
class: x(["ck-checkbox--input", { "ck-checkbox--input__intermediate": t.value === null }]),
|
|
1089
1091
|
"aria-hidden": "true",
|
|
1090
1092
|
type: "checkbox",
|
|
1091
1093
|
disabled: r.disabled,
|
|
1092
1094
|
checked: t.value,
|
|
1093
|
-
onChange:
|
|
1094
|
-
onClick:
|
|
1095
|
+
onChange: k[0] || (k[0] = (m) => n("change", m)),
|
|
1096
|
+
onClick: k[1] || (k[1] = re(() => {
|
|
1095
1097
|
}, ["prevent"]))
|
|
1096
1098
|
}, null, 42, fl),
|
|
1097
|
-
|
|
1098
|
-
class:
|
|
1099
|
-
style: E(
|
|
1100
|
-
onClick:
|
|
1099
|
+
w("div", {
|
|
1100
|
+
class: x(["ck-checkbox--element", d.value]),
|
|
1101
|
+
style: E(u.value),
|
|
1102
|
+
onClick: k[2] || (k[2] = re(() => {
|
|
1101
1103
|
}, ["prevent"]))
|
|
1102
1104
|
}, null, 6),
|
|
1103
|
-
r.label || r.$slots.default ? (v(),
|
|
1105
|
+
r.label || r.$slots.default ? (v(), _("span", {
|
|
1104
1106
|
key: 0,
|
|
1105
|
-
class:
|
|
1106
|
-
style: E(
|
|
1107
|
-
onClick:
|
|
1107
|
+
class: x(["ck-checkbox--label", p.value]),
|
|
1108
|
+
style: E(s.value),
|
|
1109
|
+
onClick: k[3] || (k[3] = re(() => {
|
|
1108
1110
|
}, ["prevent"]))
|
|
1109
1111
|
}, [
|
|
1110
|
-
r.label ? (v(),
|
|
1112
|
+
r.label ? (v(), _("span", {
|
|
1111
1113
|
key: 0,
|
|
1112
1114
|
textContent: I(r.label)
|
|
1113
|
-
}, null, 8, ml)) :
|
|
1114
|
-
|
|
1115
|
-
], 6)) :
|
|
1115
|
+
}, null, 8, ml)) : C("", !0),
|
|
1116
|
+
W(r.$slots, "default", {}, void 0, !0)
|
|
1117
|
+
], 6)) : C("", !0)
|
|
1116
1118
|
], 16));
|
|
1117
1119
|
}
|
|
1118
1120
|
});
|
|
1119
|
-
const wt = /* @__PURE__ */
|
|
1121
|
+
const wt = /* @__PURE__ */ j(hl, [["__scopeId", "data-v-968fba63"]]);
|
|
1120
1122
|
function $t(e) {
|
|
1121
1123
|
const o = e ? "visible" : "hidden";
|
|
1122
1124
|
document.body.style.overflow = o;
|
|
@@ -1130,7 +1132,7 @@ const kl = { class: "ck-popup" }, yl = {
|
|
|
1130
1132
|
}, bl = { class: "w-full" }, Cl = {
|
|
1131
1133
|
key: 0,
|
|
1132
1134
|
class: "ck-popup-slot-footer__confirm-buttons"
|
|
1133
|
-
},
|
|
1135
|
+
}, et = /* @__PURE__ */ R({
|
|
1134
1136
|
__name: "ck-popup",
|
|
1135
1137
|
props: /* @__PURE__ */ ee({
|
|
1136
1138
|
title: {},
|
|
@@ -1161,119 +1163,126 @@ const kl = { class: "ck-popup" }, yl = {
|
|
|
1161
1163
|
emits: /* @__PURE__ */ ee(["accept", "cancel", "close"], ["update:modelValue"]),
|
|
1162
1164
|
setup(e, { emit: o }) {
|
|
1163
1165
|
const t = ge(e, "modelValue"), l = e, n = o, { cleekOptions: a } = le(te()), i = c(() => {
|
|
1164
|
-
const
|
|
1165
|
-
|
|
1166
|
-
const
|
|
1167
|
-
return
|
|
1166
|
+
const B = [], P = l.layout || a.value.styles.layout;
|
|
1167
|
+
P && B.push(P);
|
|
1168
|
+
const F = l.textColor || a.value.popup.textColor;
|
|
1169
|
+
return F && L.isColorTemplateVariable(F) && B.push(`ck-component__color--${F}`), B;
|
|
1168
1170
|
}), d = c(() => {
|
|
1169
|
-
const
|
|
1170
|
-
|
|
1171
|
-
const
|
|
1172
|
-
|
|
1173
|
-
const
|
|
1174
|
-
|
|
1175
|
-
let
|
|
1176
|
-
return a.value.popup.backgroundColor && (
|
|
1177
|
-
}), s = c(() => {
|
|
1178
|
-
const _ = [];
|
|
1179
|
-
let D = "";
|
|
1180
|
-
a.value.popup.headerColor && (D = a.value.popup.headerColor), a.value.darkMode && (D = a.value.darkModeColorItems), l.headerColor && (D = l.headerColor), D && !L.isColorTemplateVariable(D) && _.push({ backgroundColor: D });
|
|
1181
|
-
let R = l.textColor || a.value.popup.textColor;
|
|
1182
|
-
return a.value.darkMode && (R = a.value.darkModeColorText), R && !L.isColorTemplateVariable(R) && (_.push(`ck-component__color--${R}`), _.push({ color: R })), _;
|
|
1183
|
-
}), p = c(() => {
|
|
1184
|
-
const _ = [];
|
|
1185
|
-
let D = "";
|
|
1186
|
-
return a.value.popup.backgroundColor && (D = a.value.popup.backgroundColor), a.value.darkMode && (D = a.value.darkModeColorItems), l.backgroundColor && (D = l.backgroundColor), D && !L.isColorTemplateVariable(D) && _.push({ backgroundColor: D }), _;
|
|
1171
|
+
const B = [], P = l.fontSize || a.value.popup.fontSize;
|
|
1172
|
+
P && B.push({ "font-size": P }), l.width && B.push({ width: l.width });
|
|
1173
|
+
const F = l.width ? "95%" : l.maxWidth || a.value.popup.maxWidth;
|
|
1174
|
+
F && B.push({ "max-width": F });
|
|
1175
|
+
const X = l.textColor || a.value.popup.textColor;
|
|
1176
|
+
X && !L.isColorTemplateVariable(X) && (B.push(`ck-component__color--${X}`), B.push({ color: X }));
|
|
1177
|
+
let ne = "white";
|
|
1178
|
+
return a.value.popup.backgroundColor && (ne = a.value.popup.backgroundColor), a.value.darkMode && (ne = a.value.darkModeColorItems), l.backgroundColor && (ne = l.backgroundColor), ne && !L.isColorTemplateVariable(ne) && B.push({ backgroundColor: ne }), B;
|
|
1187
1179
|
}), u = c(() => {
|
|
1188
|
-
const
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1180
|
+
const B = [];
|
|
1181
|
+
let P = "";
|
|
1182
|
+
a.value.popup.headerColor && (P = a.value.popup.headerColor), a.value.darkMode && (P = a.value.darkModeColorItems), l.headerColor && (P = l.headerColor), P && !L.isColorTemplateVariable(P) && B.push({ backgroundColor: P });
|
|
1183
|
+
let F = l.textColor || a.value.popup.textColor;
|
|
1184
|
+
return a.value.darkMode && (F = a.value.darkModeColorText), F && !L.isColorTemplateVariable(F) && (B.push(`ck-component__color--${F}`), B.push({ color: F })), B;
|
|
1185
|
+
}), p = c(() => {
|
|
1186
|
+
const B = [];
|
|
1187
|
+
let P = "";
|
|
1188
|
+
return a.value.popup.backgroundColor && (P = a.value.popup.backgroundColor), a.value.darkMode && (P = a.value.darkModeColorItems), l.backgroundColor && (P = l.backgroundColor), P && !L.isColorTemplateVariable(P) && B.push({ backgroundColor: P }), B;
|
|
1189
|
+
}), s = c(() => {
|
|
1190
|
+
const B = [], P = l.headerAlign || a.value.popup.headerAlign;
|
|
1191
|
+
P && B.push(`header-align--${P}`);
|
|
1192
|
+
const F = l.headerColor || a.value.popup.headerColor;
|
|
1193
|
+
return F && L.isColorTemplateVariable(F) && B.push(`ck-component__bg-color--${F}`), k.value || B.push("close-btn-hidden"), B;
|
|
1194
|
+
}), f = c(() => l.acceptBtnType ? l.acceptBtnType : a.value.popup.acceptBtnType ? a.value.popup.acceptBtnType : "outlined"), r = c(() => l.cancelBtnType ? l.cancelBtnType : a.value.popup.cancelBtnType ? a.value.popup.cancelBtnType : "flat"), k = c(() => !(l.notCloseBtn || l.notClose)), m = c(() => l.acceptBtnText ? l.acceptBtnText : a.value.lang === "es" ? "Aceptar" : "Accept"), h = c(() => l.cancelBtnText ? l.cancelBtnText : a.value.lang === "es" ? "Cancelar" : "Cancel");
|
|
1195
|
+
ce(() => t.value, (B) => $t(!B));
|
|
1196
|
+
function y() {
|
|
1195
1197
|
t.value = !1, n("close");
|
|
1196
1198
|
}
|
|
1197
|
-
function
|
|
1198
|
-
n("cancel"), l.preventCloseOnCancel ||
|
|
1199
|
+
function g() {
|
|
1200
|
+
n("cancel"), l.preventCloseOnCancel || y();
|
|
1199
1201
|
}
|
|
1200
|
-
function
|
|
1202
|
+
function T() {
|
|
1201
1203
|
n("accept");
|
|
1202
1204
|
}
|
|
1203
|
-
function
|
|
1204
|
-
l.notCloseByBg || l.notClose ||
|
|
1205
|
+
function O() {
|
|
1206
|
+
l.notCloseByBg || l.notClose || y();
|
|
1205
1207
|
}
|
|
1206
|
-
|
|
1208
|
+
function V(B) {
|
|
1209
|
+
B.key === "Escape" && O();
|
|
1210
|
+
}
|
|
1211
|
+
return be(() => {
|
|
1212
|
+
window.addEventListener("keydown", V);
|
|
1213
|
+
}), Xe(() => {
|
|
1214
|
+
window.removeEventListener("keydown", V);
|
|
1215
|
+
}), (B, P) => t.value ? (v(), S(Pe, {
|
|
1207
1216
|
key: 0,
|
|
1208
1217
|
to: "body"
|
|
1209
1218
|
}, [
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1219
|
+
w("div", kl, [
|
|
1220
|
+
P[5] || (P[5] = w("div", { class: "blackout" }, null, -1)),
|
|
1221
|
+
w("div", {
|
|
1213
1222
|
class: "popup-container",
|
|
1214
|
-
onMousedown:
|
|
1223
|
+
onMousedown: P[4] || (P[4] = (F) => O())
|
|
1215
1224
|
}, [
|
|
1216
|
-
|
|
1217
|
-
class:
|
|
1225
|
+
w("div", {
|
|
1226
|
+
class: x(["ck-popup__content", i.value]),
|
|
1218
1227
|
style: E(d.value),
|
|
1219
|
-
onMousedown:
|
|
1228
|
+
onMousedown: P[3] || (P[3] = re(() => {
|
|
1220
1229
|
}, ["stop"]))
|
|
1221
1230
|
}, [
|
|
1222
|
-
|
|
1223
|
-
class:
|
|
1224
|
-
style: E(
|
|
1231
|
+
w("div", {
|
|
1232
|
+
class: x(["ck-popup__slot-header", s.value]),
|
|
1233
|
+
style: E(u.value)
|
|
1225
1234
|
}, [
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1235
|
+
B.title ? (v(), _("h3", yl, I(B.title), 1)) : C("", !0),
|
|
1236
|
+
W(B.$slots, "header"),
|
|
1237
|
+
k.value ? (v(), S(ie, {
|
|
1229
1238
|
key: 1,
|
|
1230
1239
|
class: "icon-close",
|
|
1231
1240
|
icon: "times",
|
|
1232
|
-
onClick:
|
|
1233
|
-
})) :
|
|
1241
|
+
onClick: P[0] || (P[0] = (F) => y())
|
|
1242
|
+
})) : C("", !0)
|
|
1234
1243
|
], 6),
|
|
1235
|
-
|
|
1244
|
+
w("div", {
|
|
1236
1245
|
class: "ck-popup__slot-body",
|
|
1237
1246
|
style: E(p.value)
|
|
1238
1247
|
}, [
|
|
1239
|
-
|
|
1248
|
+
W(B.$slots, "default")
|
|
1240
1249
|
], 4),
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1250
|
+
B.$slots.footer || B.confirmButtons || B.acceptButton || B.cancelButton ? (v(), _("div", _l, [
|
|
1251
|
+
w("div", bl, [
|
|
1252
|
+
W(B.$slots, "footer")
|
|
1244
1253
|
]),
|
|
1245
|
-
|
|
1246
|
-
|
|
1254
|
+
B.confirmButtons || B.acceptButton || B.cancelButton ? (v(), _("div", Cl, [
|
|
1255
|
+
B.confirmButtons || B.cancelButton ? (v(), S(Oe, {
|
|
1247
1256
|
key: 0,
|
|
1248
1257
|
color: "danger",
|
|
1249
1258
|
type: r.value,
|
|
1250
|
-
onClick:
|
|
1259
|
+
onClick: P[1] || (P[1] = (F) => g())
|
|
1251
1260
|
}, {
|
|
1252
|
-
default:
|
|
1253
|
-
|
|
1261
|
+
default: H(() => [
|
|
1262
|
+
Z(I(h.value), 1)
|
|
1254
1263
|
]),
|
|
1255
1264
|
_: 1
|
|
1256
|
-
}, 8, ["type"])) :
|
|
1257
|
-
|
|
1265
|
+
}, 8, ["type"])) : C("", !0),
|
|
1266
|
+
B.confirmButtons || B.acceptButton ? (v(), S(Oe, {
|
|
1258
1267
|
key: 1,
|
|
1259
1268
|
type: f.value,
|
|
1260
|
-
isLoading:
|
|
1261
|
-
onClick:
|
|
1269
|
+
isLoading: B.isLoading,
|
|
1270
|
+
onClick: P[2] || (P[2] = (F) => T())
|
|
1262
1271
|
}, {
|
|
1263
|
-
default:
|
|
1264
|
-
|
|
1272
|
+
default: H(() => [
|
|
1273
|
+
Z(I(m.value), 1)
|
|
1265
1274
|
]),
|
|
1266
1275
|
_: 1
|
|
1267
|
-
}, 8, ["type", "isLoading"])) :
|
|
1268
|
-
])) :
|
|
1269
|
-
])) :
|
|
1276
|
+
}, 8, ["type", "isLoading"])) : C("", !0)
|
|
1277
|
+
])) : C("", !0)
|
|
1278
|
+
])) : C("", !0)
|
|
1270
1279
|
], 38)
|
|
1271
1280
|
], 32)
|
|
1272
1281
|
])
|
|
1273
|
-
])) :
|
|
1282
|
+
])) : C("", !0);
|
|
1274
1283
|
}
|
|
1275
1284
|
});
|
|
1276
|
-
const wl = { class: "columns-manger-container" }, $l = /* @__PURE__ */
|
|
1285
|
+
const wl = { class: "columns-manger-container" }, $l = /* @__PURE__ */ R({
|
|
1277
1286
|
__name: "ck-table__columns-manager",
|
|
1278
1287
|
props: {
|
|
1279
1288
|
modelValue: { type: Boolean },
|
|
@@ -1283,51 +1292,51 @@ const wl = { class: "columns-manger-container" }, $l = /* @__PURE__ */ z({
|
|
|
1283
1292
|
emits: ["update:modelValue"],
|
|
1284
1293
|
setup(e, { emit: o }) {
|
|
1285
1294
|
const t = e, l = o;
|
|
1286
|
-
let n =
|
|
1295
|
+
let n = M([]);
|
|
1287
1296
|
const a = c({
|
|
1288
1297
|
get() {
|
|
1289
1298
|
return t.modelValue;
|
|
1290
1299
|
},
|
|
1291
|
-
set(
|
|
1292
|
-
l("update:modelValue",
|
|
1300
|
+
set(u) {
|
|
1301
|
+
l("update:modelValue", u);
|
|
1293
1302
|
}
|
|
1294
1303
|
});
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
}),
|
|
1298
|
-
|
|
1304
|
+
ce(() => a.value, (u) => {
|
|
1305
|
+
u && i();
|
|
1306
|
+
}), ce(() => a.value, (u) => {
|
|
1307
|
+
u && i();
|
|
1299
1308
|
});
|
|
1300
1309
|
function i() {
|
|
1301
|
-
const
|
|
1310
|
+
const u = [];
|
|
1302
1311
|
(t.columnsArray || []).forEach((p) => {
|
|
1303
|
-
p.unchangeable ||
|
|
1312
|
+
p.unchangeable || u.push({
|
|
1304
1313
|
name: p.name,
|
|
1305
1314
|
title: p.title,
|
|
1306
1315
|
value: L.isColumnDisplayed(p)
|
|
1307
1316
|
});
|
|
1308
|
-
}), n.value =
|
|
1317
|
+
}), n.value = u;
|
|
1309
1318
|
}
|
|
1310
|
-
function d(
|
|
1311
|
-
t.columns[
|
|
1319
|
+
function d(u, p) {
|
|
1320
|
+
t.columns[u].isDisplayed = p;
|
|
1312
1321
|
}
|
|
1313
|
-
return (
|
|
1322
|
+
return (u, p) => (v(), S(et, {
|
|
1314
1323
|
modelValue: a.value,
|
|
1315
|
-
"onUpdate:modelValue": p[0] || (p[0] = (
|
|
1324
|
+
"onUpdate:modelValue": p[0] || (p[0] = (s) => a.value = s),
|
|
1316
1325
|
title: "Administrador de columnas"
|
|
1317
1326
|
}, {
|
|
1318
|
-
default:
|
|
1319
|
-
|
|
1320
|
-
(v(!0),
|
|
1327
|
+
default: H(() => [
|
|
1328
|
+
w("div", wl, [
|
|
1329
|
+
(v(!0), _(Y, null, de($e(n), (s, f) => (v(), _("div", {
|
|
1321
1330
|
class: "columns-manger__item",
|
|
1322
1331
|
key: f
|
|
1323
1332
|
}, [
|
|
1324
|
-
|
|
1325
|
-
modelValue:
|
|
1326
|
-
"onUpdate:modelValue": (r) =>
|
|
1327
|
-
onClick: (r) => d(
|
|
1333
|
+
G(wt, {
|
|
1334
|
+
modelValue: s.value,
|
|
1335
|
+
"onUpdate:modelValue": (r) => s.value = r,
|
|
1336
|
+
onClick: (r) => d(s.name, s.value)
|
|
1328
1337
|
}, {
|
|
1329
|
-
default:
|
|
1330
|
-
|
|
1338
|
+
default: H(() => [
|
|
1339
|
+
Z(I(s.title), 1)
|
|
1331
1340
|
]),
|
|
1332
1341
|
_: 2
|
|
1333
1342
|
}, 1032, ["modelValue", "onUpdate:modelValue", "onClick"])
|
|
@@ -1338,7 +1347,7 @@ const wl = { class: "columns-manger-container" }, $l = /* @__PURE__ */ z({
|
|
|
1338
1347
|
}, 8, ["modelValue"]));
|
|
1339
1348
|
}
|
|
1340
1349
|
});
|
|
1341
|
-
const Bl = /* @__PURE__ */
|
|
1350
|
+
const Bl = /* @__PURE__ */ j($l, [["__scopeId", "data-v-3f119c7c"]]), Tl = /* @__PURE__ */ R({
|
|
1342
1351
|
__name: "LoadingAndNoResultsText",
|
|
1343
1352
|
props: {
|
|
1344
1353
|
listLength: {},
|
|
@@ -1349,35 +1358,35 @@ const Bl = /* @__PURE__ */ H($l, [["__scopeId", "data-v-3f119c7c"]]), Tl = /* @_
|
|
|
1349
1358
|
setup(e) {
|
|
1350
1359
|
const o = e, { cleekOptions: t } = le(te()), l = c(() => !(typeof o.listLength > "u" || o.listLength)), n = c(() => o.loadingText ? o.loadingText : t.value.lang === "es" ? "Cargando..." : "Loading..."), a = c(() => o.noResultsText ? o.noResultsText : t.value.lang === "es" ? "No se encontraron resultados" : "No results found");
|
|
1351
1360
|
return (i, d) => {
|
|
1352
|
-
const
|
|
1353
|
-
return l.value ? (v(), S(
|
|
1354
|
-
default:
|
|
1355
|
-
|
|
1361
|
+
const u = U("ck-icon"), p = U("ck-td"), s = U("ck-tr");
|
|
1362
|
+
return l.value ? (v(), S(s, { key: 0 }, {
|
|
1363
|
+
default: H(() => [
|
|
1364
|
+
G(p, {
|
|
1356
1365
|
class: "no-result-text",
|
|
1357
1366
|
colspan: "100%",
|
|
1358
1367
|
align: "center"
|
|
1359
1368
|
}, {
|
|
1360
|
-
default:
|
|
1361
|
-
i.isLoading ? (v(),
|
|
1362
|
-
|
|
1369
|
+
default: H(() => [
|
|
1370
|
+
i.isLoading ? (v(), _(Y, { key: 0 }, [
|
|
1371
|
+
G(u, {
|
|
1363
1372
|
class: "mr-2",
|
|
1364
1373
|
icon: "spinner",
|
|
1365
1374
|
spin: ""
|
|
1366
1375
|
}),
|
|
1367
|
-
|
|
1368
|
-
], 64)) : l.value ? (v(),
|
|
1369
|
-
|
|
1370
|
-
], 64)) :
|
|
1376
|
+
Z(" " + I(n.value), 1)
|
|
1377
|
+
], 64)) : l.value ? (v(), _(Y, { key: 1 }, [
|
|
1378
|
+
Z(I(a.value), 1)
|
|
1379
|
+
], 64)) : C("", !0)
|
|
1371
1380
|
]),
|
|
1372
1381
|
_: 1
|
|
1373
1382
|
})
|
|
1374
1383
|
]),
|
|
1375
1384
|
_: 1
|
|
1376
|
-
})) :
|
|
1385
|
+
})) : C("", !0);
|
|
1377
1386
|
};
|
|
1378
1387
|
}
|
|
1379
1388
|
});
|
|
1380
|
-
const
|
|
1389
|
+
const ut = /* @__PURE__ */ j(Tl, [["__scopeId", "data-v-0731cbef"]]), Vl = { class: "ck-table" }, Dl = {
|
|
1381
1390
|
key: 0,
|
|
1382
1391
|
class: "ck-table__header"
|
|
1383
1392
|
}, Ll = {
|
|
@@ -1389,10 +1398,10 @@ const rt = /* @__PURE__ */ H(Tl, [["__scopeId", "data-v-0731cbef"]]), Vl = { cla
|
|
|
1389
1398
|
}, Pl = {
|
|
1390
1399
|
key: 0,
|
|
1391
1400
|
class: "selected-rows-actions"
|
|
1392
|
-
}, Ml = { class: "selected-rows-actions__left" },
|
|
1401
|
+
}, Ml = { class: "selected-rows-actions__left" }, xl = { key: 0 }, Il = { key: 0 }, Al = { key: 1 }, zl = {
|
|
1393
1402
|
key: 4,
|
|
1394
1403
|
class: "ck-table--mobile-container"
|
|
1395
|
-
}, De = "id", Rl = /* @__PURE__ */
|
|
1404
|
+
}, De = "id", Rl = /* @__PURE__ */ R({
|
|
1396
1405
|
__name: "ck-table",
|
|
1397
1406
|
props: /* @__PURE__ */ ee({
|
|
1398
1407
|
rows: {},
|
|
@@ -1426,9 +1435,9 @@ const rt = /* @__PURE__ */ H(Tl, [["__scopeId", "data-v-0731cbef"]]), Vl = { cla
|
|
|
1426
1435
|
}),
|
|
1427
1436
|
emits: /* @__PURE__ */ ee(["refreshList", "update:search", "update:currentPage"], ["update:selectedRows"]),
|
|
1428
1437
|
setup(e, { emit: o }) {
|
|
1429
|
-
const t = ge(e, "selectedRows"), l = e, n = o, { cleekOptions: a } = le(te()), { windowWidth: i } = he(), d =
|
|
1438
|
+
const t = ge(e, "selectedRows"), l = e, n = o, { cleekOptions: a } = le(te()), { windowWidth: i } = he(), d = M({
|
|
1430
1439
|
columnsManager: !1
|
|
1431
|
-
}),
|
|
1440
|
+
}), u = c(() => !!t.value), p = c(() => typeof l.darkMode < "u" ? l.darkMode : a.value.darkMode), s = c(() => Math.ceil(l.listLength / l.itemsPerPage)), f = c(() => l.version ? l.version : a.value ? a.value.table.version : "default"), r = c(() => {
|
|
1432
1441
|
if (l.headerTextColor)
|
|
1433
1442
|
return l.headerTextColor;
|
|
1434
1443
|
if (a.value) {
|
|
@@ -1437,252 +1446,252 @@ const rt = /* @__PURE__ */ H(Tl, [["__scopeId", "data-v-0731cbef"]]), Vl = { cla
|
|
|
1437
1446
|
if (p.value)
|
|
1438
1447
|
return "#ccc";
|
|
1439
1448
|
}
|
|
1440
|
-
}),
|
|
1449
|
+
}), k = c(() => {
|
|
1441
1450
|
if (l.headerBackgroundColor)
|
|
1442
1451
|
return l.headerBackgroundColor;
|
|
1443
1452
|
if (a.value)
|
|
1444
1453
|
return a.value.table.headerBackgroundColor;
|
|
1445
|
-
}), m = c(() => !
|
|
1446
|
-
if (
|
|
1447
|
-
const
|
|
1448
|
-
return
|
|
1449
|
-
const
|
|
1450
|
-
|
|
1451
|
-
}),
|
|
1454
|
+
}), m = c(() => !g.value[g.value.length - 1].title), h = c(() => !Gt.isArray(l.columns || [])), y = c(() => {
|
|
1455
|
+
if (h.value) {
|
|
1456
|
+
const q = Object.values(l.columns || []), se = Object.keys(l.columns || []);
|
|
1457
|
+
return q.forEach(($, A) => {
|
|
1458
|
+
const Q = se[A];
|
|
1459
|
+
$.name = Q;
|
|
1460
|
+
}), q;
|
|
1452
1461
|
}
|
|
1453
|
-
const
|
|
1454
|
-
return (l.columns || []).forEach((
|
|
1455
|
-
typeof
|
|
1456
|
-
}),
|
|
1457
|
-
}),
|
|
1462
|
+
const D = [];
|
|
1463
|
+
return (l.columns || []).forEach((q) => {
|
|
1464
|
+
typeof q == "string" ? D.push({ title: q }) : D.push(q);
|
|
1465
|
+
}), D;
|
|
1466
|
+
}), g = c(() => y.value.filter(L.isColumnDisplayed)), T = c({
|
|
1458
1467
|
// @ts-ignore
|
|
1459
1468
|
get() {
|
|
1460
1469
|
return l.search;
|
|
1461
1470
|
},
|
|
1462
|
-
set(
|
|
1463
|
-
n("update:search",
|
|
1471
|
+
set(D) {
|
|
1472
|
+
n("update:search", D);
|
|
1464
1473
|
}
|
|
1465
|
-
}),
|
|
1474
|
+
}), O = c({
|
|
1466
1475
|
get() {
|
|
1467
1476
|
return l.currentPage || 0;
|
|
1468
1477
|
},
|
|
1469
|
-
set(
|
|
1470
|
-
n("update:currentPage",
|
|
1478
|
+
set(D) {
|
|
1479
|
+
n("update:currentPage", D);
|
|
1471
1480
|
}
|
|
1472
|
-
}),
|
|
1473
|
-
function
|
|
1474
|
-
n("refreshList",
|
|
1481
|
+
}), V = c(() => l.layout || a.value.styles.layout), B = c(() => i.value <= (+l.mobileMaxWidth || 0));
|
|
1482
|
+
function P(D = !1) {
|
|
1483
|
+
n("refreshList", D);
|
|
1475
1484
|
}
|
|
1476
|
-
function
|
|
1477
|
-
|
|
1485
|
+
function F() {
|
|
1486
|
+
h.value ? d.value.columnsManager = !0 : console.log("ERROR ck-table", "The columns list should be an object");
|
|
1478
1487
|
}
|
|
1479
|
-
const
|
|
1480
|
-
var
|
|
1481
|
-
const
|
|
1482
|
-
return l.cellPadding &&
|
|
1483
|
-
}),
|
|
1484
|
-
const
|
|
1485
|
-
if (t.value.areAllRowsSelecteds(
|
|
1488
|
+
const X = c(() => {
|
|
1489
|
+
var se;
|
|
1490
|
+
const D = [];
|
|
1491
|
+
return l.cellPadding && D.push(`table__cell-padding--${l.cellPadding}`), l.cellPaddingY && D.push(`table__cell-padding-y--${l.cellPaddingY}`), l.notFullWidth && D.push("not-full-width"), p.value && D.push("dark-mode"), (l.striped || ((se = a.value.table) == null ? void 0 : se.striped)) && D.push("striped-table"), D;
|
|
1492
|
+
}), ne = c(() => {
|
|
1493
|
+
const D = l.rows.map((q) => q[De]);
|
|
1494
|
+
if (t.value.areAllRowsSelecteds(D))
|
|
1486
1495
|
return !0;
|
|
1487
|
-
if (!t.value.isAnyRowsSelected(
|
|
1496
|
+
if (!t.value.isAnyRowsSelected(D))
|
|
1488
1497
|
return !1;
|
|
1489
1498
|
});
|
|
1490
|
-
function
|
|
1491
|
-
const
|
|
1492
|
-
|
|
1499
|
+
function we() {
|
|
1500
|
+
const D = l.rows.map((q) => q[De]);
|
|
1501
|
+
ne.value ? t.value.removeManyRows(D) : t.value.addManyRows(D);
|
|
1493
1502
|
}
|
|
1494
|
-
return (
|
|
1495
|
-
var oe,
|
|
1496
|
-
const
|
|
1497
|
-
return v(),
|
|
1498
|
-
|
|
1503
|
+
return (D, q) => {
|
|
1504
|
+
var oe, ae, ve, Ce;
|
|
1505
|
+
const se = U("ck-checkbox"), $ = U("ck-chip"), A = U("ck-button"), Q = U("ck-th");
|
|
1506
|
+
return v(), _(Y, null, [
|
|
1507
|
+
D.hasColumnsManager && h.value ? (v(), S(Bl, {
|
|
1499
1508
|
key: 0,
|
|
1500
1509
|
modelValue: d.value.columnsManager,
|
|
1501
|
-
"onUpdate:modelValue":
|
|
1502
|
-
isLoading:
|
|
1503
|
-
columnsArray:
|
|
1504
|
-
columns:
|
|
1505
|
-
}, null, 8, ["modelValue", "isLoading", "columnsArray", "columns"])) :
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
modelValue:
|
|
1510
|
-
"onUpdate:modelValue":
|
|
1511
|
-
hideHeaderActions:
|
|
1512
|
-
hideRefreshBtn:
|
|
1513
|
-
layout:
|
|
1510
|
+
"onUpdate:modelValue": q[0] || (q[0] = (K) => d.value.columnsManager = K),
|
|
1511
|
+
isLoading: D.isLoading,
|
|
1512
|
+
columnsArray: y.value,
|
|
1513
|
+
columns: D.columns || []
|
|
1514
|
+
}, null, 8, ["modelValue", "isLoading", "columnsArray", "columns"])) : C("", !0),
|
|
1515
|
+
w("div", Vl, [
|
|
1516
|
+
D.$slots.header || !D.hideHeaderActions ? (v(), _("div", Dl, [
|
|
1517
|
+
G(il, {
|
|
1518
|
+
modelValue: T.value,
|
|
1519
|
+
"onUpdate:modelValue": q[1] || (q[1] = (K) => T.value = K),
|
|
1520
|
+
hideHeaderActions: D.hideHeaderActions,
|
|
1521
|
+
hideRefreshBtn: D.hideRefreshBtn,
|
|
1522
|
+
layout: V.value,
|
|
1514
1523
|
version: f.value,
|
|
1515
|
-
isLoading:
|
|
1516
|
-
onRefreshList:
|
|
1524
|
+
isLoading: D.isLoading,
|
|
1525
|
+
onRefreshList: q[2] || (q[2] = (K) => P(K))
|
|
1517
1526
|
}, {
|
|
1518
|
-
headerActionsLeft:
|
|
1519
|
-
|
|
1527
|
+
headerActionsLeft: H(() => [
|
|
1528
|
+
W(D.$slots, "headerActionsLeft", {}, void 0, !0)
|
|
1520
1529
|
]),
|
|
1521
|
-
headerActionsRight:
|
|
1522
|
-
|
|
1530
|
+
headerActionsRight: H(() => [
|
|
1531
|
+
W(D.$slots, "headerActionsRight", {}, void 0, !0)
|
|
1523
1532
|
]),
|
|
1524
1533
|
_: 3
|
|
1525
1534
|
}, 8, ["modelValue", "hideHeaderActions", "hideRefreshBtn", "layout", "version", "isLoading"]),
|
|
1526
|
-
|
|
1535
|
+
D.$slots.header ? (v(), _("div", {
|
|
1527
1536
|
key: 0,
|
|
1528
|
-
class:
|
|
1537
|
+
class: x(["ck-table__header--slot", { "full-width": D.hideHeaderActions }])
|
|
1529
1538
|
}, [
|
|
1530
|
-
|
|
1531
|
-
], 2)) :
|
|
1532
|
-
])) :
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
])) :
|
|
1536
|
-
|
|
1537
|
-
(
|
|
1538
|
-
|
|
1539
|
-
|
|
1539
|
+
W(D.$slots, "header", {}, void 0, !0)
|
|
1540
|
+
], 2)) : C("", !0)
|
|
1541
|
+
])) : C("", !0),
|
|
1542
|
+
D.$slots.headerBottom ? (v(), _("div", Ll, [
|
|
1543
|
+
W(D.$slots, "headerBottom", {}, void 0, !0)
|
|
1544
|
+
])) : C("", !0),
|
|
1545
|
+
u.value || g.value.length && !(D.$slots.mobile && B.value) ? (v(), _("div", Sl, [
|
|
1546
|
+
(ae = (oe = t.value) == null ? void 0 : oe.ids) != null && ae.size ? (v(), _("div", Pl, [
|
|
1547
|
+
w("div", Ml, [
|
|
1548
|
+
G(se, {
|
|
1540
1549
|
class: "main-checkbox",
|
|
1541
1550
|
usesThirdState: "",
|
|
1542
1551
|
size: "xs",
|
|
1543
1552
|
color: "#BABDBF",
|
|
1544
|
-
modelValue:
|
|
1545
|
-
onClick:
|
|
1553
|
+
modelValue: ne.value,
|
|
1554
|
+
onClick: q[3] || (q[3] = (K) => we())
|
|
1546
1555
|
}, null, 8, ["modelValue"]),
|
|
1547
|
-
|
|
1556
|
+
G($, {
|
|
1548
1557
|
class: "nowrap cursor-pointer",
|
|
1549
1558
|
size: "s",
|
|
1550
1559
|
iconRight: "times",
|
|
1551
|
-
onClick:
|
|
1560
|
+
onClick: q[4] || (q[4] = (K) => t.value.removeAll())
|
|
1552
1561
|
}, {
|
|
1553
|
-
default:
|
|
1554
|
-
|
|
1562
|
+
default: H(() => [
|
|
1563
|
+
Z(I(t.value.ids.size) + " seleccionado" + I(t.value.ids.size === 1 ? "" : "s"), 1)
|
|
1555
1564
|
]),
|
|
1556
1565
|
_: 1
|
|
1557
1566
|
})
|
|
1558
1567
|
]),
|
|
1559
|
-
|
|
1560
|
-
|
|
1568
|
+
W(D.$slots, "selectedRowsActions", {}, void 0, !0),
|
|
1569
|
+
D.currentPage && s.value > 1 ? (v(), S(A, {
|
|
1561
1570
|
key: 0,
|
|
1562
1571
|
size: "s",
|
|
1563
1572
|
color: "dark"
|
|
1564
1573
|
}, {
|
|
1565
|
-
default:
|
|
1566
|
-
|
|
1574
|
+
default: H(() => q[9] || (q[9] = [
|
|
1575
|
+
Z(" seleccionar todas las páginas ")
|
|
1567
1576
|
])),
|
|
1568
1577
|
_: 1
|
|
1569
|
-
})) :
|
|
1570
|
-
])) :
|
|
1571
|
-
])) :
|
|
1572
|
-
|
|
1578
|
+
})) : C("", !0)
|
|
1579
|
+
])) : C("", !0)
|
|
1580
|
+
])) : C("", !0),
|
|
1581
|
+
B.value ? C("", !0) : (v(), _("div", {
|
|
1573
1582
|
key: 3,
|
|
1574
|
-
class:
|
|
1583
|
+
class: x(["ck-table__table-container", { "not-overflow": D.notOverflow }])
|
|
1575
1584
|
}, [
|
|
1576
|
-
|
|
1577
|
-
class:
|
|
1585
|
+
w("table", {
|
|
1586
|
+
class: x(["ck-table__table", X.value])
|
|
1578
1587
|
}, [
|
|
1579
|
-
(
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1588
|
+
(Ce = (ve = t.value) == null ? void 0 : ve.ids) != null && Ce.size ? C("", !0) : (v(), _("thead", xl, [
|
|
1589
|
+
w("tr", null, [
|
|
1590
|
+
u.value ? (v(), _("th", Il, [
|
|
1591
|
+
G(se, {
|
|
1583
1592
|
class: "main-checkbox",
|
|
1584
1593
|
usesThirdState: "",
|
|
1585
1594
|
size: "xs",
|
|
1586
1595
|
color: "#BABDBF",
|
|
1587
|
-
modelValue:
|
|
1588
|
-
onClick:
|
|
1596
|
+
modelValue: ne.value,
|
|
1597
|
+
onClick: q[5] || (q[5] = (K) => we())
|
|
1589
1598
|
}, null, 8, ["modelValue"])
|
|
1590
|
-
])) :
|
|
1591
|
-
(v(!0),
|
|
1592
|
-
align:
|
|
1593
|
-
"min-width":
|
|
1599
|
+
])) : C("", !0),
|
|
1600
|
+
(v(!0), _(Y, null, de(g.value, (K, Be) => (v(), S(Q, {
|
|
1601
|
+
align: K.align,
|
|
1602
|
+
"min-width": K.minWidth,
|
|
1594
1603
|
textColor: r.value,
|
|
1595
|
-
backgroundColor:
|
|
1604
|
+
backgroundColor: k.value
|
|
1596
1605
|
}, {
|
|
1597
|
-
default:
|
|
1598
|
-
|
|
1599
|
-
Be ===
|
|
1606
|
+
default: H(() => [
|
|
1607
|
+
Z(I(K.title) + " ", 1),
|
|
1608
|
+
Be === g.value.length - 1 && D.hasColumnsManager ? (v(), _("div", {
|
|
1600
1609
|
key: 0,
|
|
1601
1610
|
style: E(m.value ? "" : { "margin-left": "auto", "padding-left": "1rem" })
|
|
1602
1611
|
}, [
|
|
1603
|
-
|
|
1604
|
-
layout:
|
|
1605
|
-
onClick:
|
|
1612
|
+
G(No, {
|
|
1613
|
+
layout: D.layout,
|
|
1614
|
+
onClick: q[6] || (q[6] = (Fe) => F())
|
|
1606
1615
|
}, null, 8, ["layout"])
|
|
1607
|
-
], 4)) :
|
|
1616
|
+
], 4)) : C("", !0)
|
|
1608
1617
|
]),
|
|
1609
1618
|
_: 2
|
|
1610
1619
|
}, 1032, ["align", "min-width", "textColor", "backgroundColor"]))), 256))
|
|
1611
1620
|
])
|
|
1612
1621
|
])),
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
(v(!0),
|
|
1617
|
-
key:
|
|
1622
|
+
w("tbody", null, [
|
|
1623
|
+
W(D.$slots, "default", {}, void 0, !0),
|
|
1624
|
+
W(D.$slots, "desktop", {}, void 0, !0),
|
|
1625
|
+
(v(!0), _(Y, null, de(D.rows, (K, Be) => (v(), S(_t, {
|
|
1626
|
+
key: K[De]
|
|
1618
1627
|
}, {
|
|
1619
|
-
default:
|
|
1620
|
-
|
|
1628
|
+
default: H(() => [
|
|
1629
|
+
u.value ? (v(), S(bt, {
|
|
1621
1630
|
key: 0,
|
|
1622
1631
|
autoWidth: ""
|
|
1623
1632
|
}, {
|
|
1624
|
-
default:
|
|
1625
|
-
|
|
1633
|
+
default: H(() => [
|
|
1634
|
+
G(se, {
|
|
1626
1635
|
size: "xs",
|
|
1627
1636
|
color: "#BABDBF",
|
|
1628
|
-
modelValue: t.value.isRowSelected(
|
|
1629
|
-
onClick: (Fe) => t.value.switchValue(
|
|
1637
|
+
modelValue: t.value.isRowSelected(K[De]),
|
|
1638
|
+
onClick: (Fe) => t.value.switchValue(K[De])
|
|
1630
1639
|
}, null, 8, ["modelValue", "onClick"])
|
|
1631
1640
|
]),
|
|
1632
1641
|
_: 2
|
|
1633
|
-
}, 1024)) :
|
|
1634
|
-
|
|
1635
|
-
row:
|
|
1642
|
+
}, 1024)) : C("", !0),
|
|
1643
|
+
W(D.$slots, "row", {
|
|
1644
|
+
row: K,
|
|
1636
1645
|
rowIndex: Be
|
|
1637
1646
|
}, void 0, !0)
|
|
1638
1647
|
]),
|
|
1639
1648
|
_: 2
|
|
1640
1649
|
}, 1024))), 128)),
|
|
1641
|
-
|
|
1642
|
-
listLength:
|
|
1643
|
-
isLoading:
|
|
1644
|
-
loadingText:
|
|
1645
|
-
noResultsText:
|
|
1650
|
+
G(ut, {
|
|
1651
|
+
listLength: D.listLength,
|
|
1652
|
+
isLoading: D.isLoading,
|
|
1653
|
+
loadingText: D.loadingText,
|
|
1654
|
+
noResultsText: D.noResultsText
|
|
1646
1655
|
}, null, 8, ["listLength", "isLoading", "loadingText", "noResultsText"])
|
|
1647
1656
|
]),
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
])) :
|
|
1657
|
+
D.$slots.footer ? (v(), _("tfoot", Al, [
|
|
1658
|
+
W(D.$slots, "footer", {}, void 0, !0)
|
|
1659
|
+
])) : C("", !0)
|
|
1651
1660
|
], 2)
|
|
1652
1661
|
], 2)),
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
listLength:
|
|
1657
|
-
isLoading:
|
|
1658
|
-
loadingText:
|
|
1659
|
-
noResultsText:
|
|
1662
|
+
B.value ? (v(), _("div", zl, [
|
|
1663
|
+
W(D.$slots, "mobile", {}, void 0, !0),
|
|
1664
|
+
G(ut, {
|
|
1665
|
+
listLength: D.listLength,
|
|
1666
|
+
isLoading: D.isLoading,
|
|
1667
|
+
loadingText: D.loadingText,
|
|
1668
|
+
noResultsText: D.noResultsText
|
|
1660
1669
|
}, null, 8, ["listLength", "isLoading", "loadingText", "noResultsText"])
|
|
1661
|
-
])) :
|
|
1662
|
-
|
|
1663
|
-
currentPage:
|
|
1664
|
-
itemsPerPage:
|
|
1665
|
-
hideItemsPerPage:
|
|
1666
|
-
listLength:
|
|
1670
|
+
])) : C("", !0),
|
|
1671
|
+
G(qo, {
|
|
1672
|
+
currentPage: D.currentPage,
|
|
1673
|
+
itemsPerPage: D.itemsPerPage,
|
|
1674
|
+
hideItemsPerPage: D.hideItemsPerPage,
|
|
1675
|
+
listLength: D.listLength
|
|
1667
1676
|
}, null, 8, ["currentPage", "itemsPerPage", "hideItemsPerPage", "listLength"]),
|
|
1668
|
-
|
|
1677
|
+
D.currentPage && s.value > 1 ? (v(), S(vl, {
|
|
1669
1678
|
key: 5,
|
|
1670
|
-
currentPage:
|
|
1671
|
-
"onUpdate:currentPage":
|
|
1679
|
+
currentPage: O.value,
|
|
1680
|
+
"onUpdate:currentPage": q[7] || (q[7] = (K) => O.value = K),
|
|
1672
1681
|
class: "ck-table__pagination",
|
|
1673
|
-
totalPages:
|
|
1674
|
-
itemsPerPage:
|
|
1675
|
-
listLength:
|
|
1676
|
-
align:
|
|
1677
|
-
layout:
|
|
1678
|
-
onRefreshList:
|
|
1679
|
-
}, null, 8, ["currentPage", "totalPages", "itemsPerPage", "listLength", "align", "layout"])) :
|
|
1682
|
+
totalPages: s.value,
|
|
1683
|
+
itemsPerPage: D.itemsPerPage,
|
|
1684
|
+
listLength: D.listLength,
|
|
1685
|
+
align: D.paginationAlign,
|
|
1686
|
+
layout: V.value,
|
|
1687
|
+
onRefreshList: q[8] || (q[8] = (K) => P(!0))
|
|
1688
|
+
}, null, 8, ["currentPage", "totalPages", "itemsPerPage", "listLength", "align", "layout"])) : C("", !0)
|
|
1680
1689
|
])
|
|
1681
1690
|
], 64);
|
|
1682
1691
|
};
|
|
1683
1692
|
}
|
|
1684
1693
|
});
|
|
1685
|
-
const Ol = /* @__PURE__ */
|
|
1694
|
+
const Ol = /* @__PURE__ */ j(Rl, [["__scopeId", "data-v-5239bdd8"]]), Wl = /* @__PURE__ */ R({
|
|
1686
1695
|
__name: "ck-pagination",
|
|
1687
1696
|
props: {
|
|
1688
1697
|
modelValue: {},
|
|
@@ -1701,118 +1710,118 @@ const Ol = /* @__PURE__ */ H(Rl, [["__scopeId", "data-v-5239bdd8"]]), Wl = /* @_
|
|
|
1701
1710
|
get() {
|
|
1702
1711
|
return t.modelValue;
|
|
1703
1712
|
},
|
|
1704
|
-
set(
|
|
1705
|
-
l("update:modelValue",
|
|
1713
|
+
set(y) {
|
|
1714
|
+
l("update:modelValue", y);
|
|
1706
1715
|
}
|
|
1707
1716
|
}), i = c(() => {
|
|
1708
|
-
const
|
|
1709
|
-
return t.align &&
|
|
1717
|
+
const y = [];
|
|
1718
|
+
return t.align && y.push(`align--${t.align}`), y;
|
|
1710
1719
|
}), d = c(() => {
|
|
1711
|
-
const
|
|
1712
|
-
return
|
|
1713
|
-
}),
|
|
1720
|
+
const y = t.btnType || n.value.button.type;
|
|
1721
|
+
return y.toLowerCase() === "filled" ? "outlined" : y;
|
|
1722
|
+
}), u = c(() => t.btnLayout || n.value.styles.layout), p = c(() => t.maxStep === 1 || d.value === "flat" ? "" : "center"), s = c(() => d.value === "flat" ? "" : "left"), f = c(() => d.value === "flat" ? "" : "right"), r = c(() => a.value === 1 ? t.iconDisableLeft ? t.iconDisableLeft : "grip-lines-vertical" : t.iconArrowLeft ? t.iconArrowLeft : "arrow-left"), k = c(() => a.value === t.maxStep ? t.iconDisableRight ? t.iconDisableRight : "grip-lines-vertical" : t.iconArrowRight ? t.iconArrowRight : "arrow-right");
|
|
1714
1723
|
function m() {
|
|
1715
1724
|
a.value <= 1 || (a.value = a.value - 1);
|
|
1716
1725
|
}
|
|
1717
|
-
function
|
|
1726
|
+
function h() {
|
|
1718
1727
|
a.value >= t.maxStep || (a.value = a.value + 1);
|
|
1719
1728
|
}
|
|
1720
|
-
return (
|
|
1721
|
-
const
|
|
1722
|
-
return v(),
|
|
1723
|
-
class:
|
|
1729
|
+
return (y, g) => {
|
|
1730
|
+
const T = U("ck-button");
|
|
1731
|
+
return v(), _("div", {
|
|
1732
|
+
class: x(["ck-pagination", i.value])
|
|
1724
1733
|
}, [
|
|
1725
|
-
|
|
1734
|
+
G(T, {
|
|
1726
1735
|
width: "42px",
|
|
1727
1736
|
align: "center",
|
|
1728
|
-
group:
|
|
1737
|
+
group: s.value,
|
|
1729
1738
|
type: d.value,
|
|
1730
|
-
layout:
|
|
1739
|
+
layout: u.value,
|
|
1731
1740
|
icon: r.value,
|
|
1732
|
-
onClick:
|
|
1741
|
+
onClick: g[0] || (g[0] = (O) => m())
|
|
1733
1742
|
}, null, 8, ["group", "type", "layout", "icon"]),
|
|
1734
|
-
a.value - 2 >= 1 ? (v(), S(
|
|
1743
|
+
a.value - 2 >= 1 ? (v(), S(T, {
|
|
1735
1744
|
key: 0,
|
|
1736
1745
|
width: "42px",
|
|
1737
1746
|
align: "center",
|
|
1738
1747
|
group: p.value,
|
|
1739
1748
|
type: d.value,
|
|
1740
|
-
layout:
|
|
1741
|
-
onClick:
|
|
1749
|
+
layout: u.value,
|
|
1750
|
+
onClick: g[1] || (g[1] = (O) => a.value = a.value - 2)
|
|
1742
1751
|
}, {
|
|
1743
|
-
default:
|
|
1744
|
-
|
|
1752
|
+
default: H(() => [
|
|
1753
|
+
Z(I(a.value - 2), 1)
|
|
1745
1754
|
]),
|
|
1746
1755
|
_: 1
|
|
1747
|
-
}, 8, ["group", "type", "layout"])) :
|
|
1748
|
-
a.value - 1 >= 1 ? (v(), S(
|
|
1756
|
+
}, 8, ["group", "type", "layout"])) : C("", !0),
|
|
1757
|
+
a.value - 1 >= 1 ? (v(), S(T, {
|
|
1749
1758
|
key: 1,
|
|
1750
1759
|
width: "42px",
|
|
1751
1760
|
align: "center",
|
|
1752
1761
|
group: p.value,
|
|
1753
1762
|
type: d.value,
|
|
1754
|
-
layout:
|
|
1755
|
-
onClick:
|
|
1763
|
+
layout: u.value,
|
|
1764
|
+
onClick: g[2] || (g[2] = (O) => a.value = a.value - 1)
|
|
1756
1765
|
}, {
|
|
1757
|
-
default:
|
|
1758
|
-
|
|
1766
|
+
default: H(() => [
|
|
1767
|
+
Z(I(a.value - 1), 1)
|
|
1759
1768
|
]),
|
|
1760
1769
|
_: 1
|
|
1761
|
-
}, 8, ["group", "type", "layout"])) :
|
|
1762
|
-
|
|
1770
|
+
}, 8, ["group", "type", "layout"])) : C("", !0),
|
|
1771
|
+
G(T, {
|
|
1763
1772
|
type: "filled",
|
|
1764
1773
|
width: "42px",
|
|
1765
1774
|
align: "center",
|
|
1766
1775
|
group: p.value,
|
|
1767
|
-
layout:
|
|
1776
|
+
layout: u.value
|
|
1768
1777
|
}, {
|
|
1769
|
-
default:
|
|
1770
|
-
|
|
1778
|
+
default: H(() => [
|
|
1779
|
+
Z(I(a.value), 1)
|
|
1771
1780
|
]),
|
|
1772
1781
|
_: 1
|
|
1773
1782
|
}, 8, ["group", "layout"]),
|
|
1774
|
-
a.value + 1 <=
|
|
1783
|
+
a.value + 1 <= y.maxStep ? (v(), S(T, {
|
|
1775
1784
|
key: 2,
|
|
1776
1785
|
width: "42px",
|
|
1777
1786
|
align: "center",
|
|
1778
1787
|
group: p.value,
|
|
1779
1788
|
type: d.value,
|
|
1780
|
-
layout:
|
|
1781
|
-
onClick:
|
|
1789
|
+
layout: u.value,
|
|
1790
|
+
onClick: g[3] || (g[3] = (O) => a.value = a.value + 1)
|
|
1782
1791
|
}, {
|
|
1783
|
-
default:
|
|
1784
|
-
|
|
1792
|
+
default: H(() => [
|
|
1793
|
+
Z(I(a.value + 1), 1)
|
|
1785
1794
|
]),
|
|
1786
1795
|
_: 1
|
|
1787
|
-
}, 8, ["group", "type", "layout"])) :
|
|
1788
|
-
a.value + 2 <=
|
|
1796
|
+
}, 8, ["group", "type", "layout"])) : C("", !0),
|
|
1797
|
+
a.value + 2 <= y.maxStep ? (v(), S(T, {
|
|
1789
1798
|
key: 3,
|
|
1790
1799
|
group: "center",
|
|
1791
1800
|
width: "42px",
|
|
1792
1801
|
align: "center",
|
|
1793
1802
|
type: d.value,
|
|
1794
|
-
layout:
|
|
1795
|
-
onClick:
|
|
1803
|
+
layout: u.value,
|
|
1804
|
+
onClick: g[4] || (g[4] = (O) => a.value = a.value + 2)
|
|
1796
1805
|
}, {
|
|
1797
|
-
default:
|
|
1798
|
-
|
|
1806
|
+
default: H(() => [
|
|
1807
|
+
Z(I(a.value + 2), 1)
|
|
1799
1808
|
]),
|
|
1800
1809
|
_: 1
|
|
1801
|
-
}, 8, ["type", "layout"])) :
|
|
1802
|
-
|
|
1810
|
+
}, 8, ["type", "layout"])) : C("", !0),
|
|
1811
|
+
G(T, {
|
|
1803
1812
|
width: "42px",
|
|
1804
1813
|
align: "center",
|
|
1805
1814
|
group: f.value,
|
|
1806
1815
|
type: d.value,
|
|
1807
|
-
layout:
|
|
1808
|
-
icon:
|
|
1809
|
-
onClick:
|
|
1816
|
+
layout: u.value,
|
|
1817
|
+
icon: k.value,
|
|
1818
|
+
onClick: g[5] || (g[5] = (O) => h())
|
|
1810
1819
|
}, null, 8, ["group", "type", "layout", "icon"])
|
|
1811
1820
|
], 2);
|
|
1812
1821
|
};
|
|
1813
1822
|
}
|
|
1814
1823
|
});
|
|
1815
|
-
const Nl = { class: "ck-th" }, El = "left", Fl = /* @__PURE__ */
|
|
1824
|
+
const Nl = { class: "ck-th" }, El = "left", Fl = /* @__PURE__ */ R({
|
|
1816
1825
|
__name: "ck-th",
|
|
1817
1826
|
props: {
|
|
1818
1827
|
align: {},
|
|
@@ -1828,17 +1837,17 @@ const Nl = { class: "ck-th" }, El = "left", Fl = /* @__PURE__ */ z({
|
|
|
1828
1837
|
const n = [];
|
|
1829
1838
|
return o.minWidth && n.push({ "min-width": o.minWidth }), o.textColor && !L.isColorTemplateVariable(o.textColor) && n.push({ color: o.textColor || "white" }), o.backgroundColor && !L.isColorTemplateVariable(o.backgroundColor) && n.push({ backgroundColor: o.backgroundColor }), n;
|
|
1830
1839
|
});
|
|
1831
|
-
return (n, a) => (v(),
|
|
1832
|
-
|
|
1833
|
-
class:
|
|
1840
|
+
return (n, a) => (v(), _("th", Nl, [
|
|
1841
|
+
w("span", {
|
|
1842
|
+
class: x(t.value),
|
|
1834
1843
|
style: E(l.value)
|
|
1835
1844
|
}, [
|
|
1836
|
-
|
|
1845
|
+
W(n.$slots, "default", {}, void 0, !0)
|
|
1837
1846
|
], 6)
|
|
1838
1847
|
]));
|
|
1839
1848
|
}
|
|
1840
1849
|
});
|
|
1841
|
-
const ql = /* @__PURE__ */
|
|
1850
|
+
const ql = /* @__PURE__ */ j(Fl, [["__scopeId", "data-v-0c92c654"]]);
|
|
1842
1851
|
(function() {
|
|
1843
1852
|
try {
|
|
1844
1853
|
if (typeof document < "u") {
|
|
@@ -1849,9 +1858,9 @@ const ql = /* @__PURE__ */ H(Fl, [["__scopeId", "data-v-0c92c654"]]);
|
|
|
1849
1858
|
console.error("vite-plugin-css-injected-by-js", o);
|
|
1850
1859
|
}
|
|
1851
1860
|
})();
|
|
1852
|
-
const Hl = ["year", "month", "day", "time", "custom"], jl =
|
|
1861
|
+
const Hl = ["year", "month", "day", "time", "custom"], jl = R({
|
|
1853
1862
|
emits: {
|
|
1854
|
-
elementClick: (e) =>
|
|
1863
|
+
elementClick: (e) => pe(e),
|
|
1855
1864
|
left: () => !0,
|
|
1856
1865
|
right: () => !0,
|
|
1857
1866
|
heading: () => !0
|
|
@@ -1888,116 +1897,116 @@ const Hl = ["year", "month", "day", "time", "custom"], jl = z({
|
|
|
1888
1897
|
for (const [l, n] of o)
|
|
1889
1898
|
t[l] = n;
|
|
1890
1899
|
return t;
|
|
1891
|
-
},
|
|
1900
|
+
}, tt = (e) => (Ot("data-v-65eb861b"), e = e(), Wt(), e), Ul = { class: "v3dp__heading" }, Gl = ["disabled"], Zl = /* @__PURE__ */ tt(() => /* @__PURE__ */ w("svg", {
|
|
1892
1901
|
class: "v3dp__heading__icon",
|
|
1893
1902
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1894
1903
|
viewBox: "0 0 6 8"
|
|
1895
1904
|
}, [
|
|
1896
|
-
/* @__PURE__ */
|
|
1905
|
+
/* @__PURE__ */ w("g", {
|
|
1897
1906
|
fill: "none",
|
|
1898
1907
|
"fill-rule": "evenodd"
|
|
1899
1908
|
}, [
|
|
1900
|
-
/* @__PURE__ */
|
|
1909
|
+
/* @__PURE__ */ w("path", {
|
|
1901
1910
|
stroke: "none",
|
|
1902
1911
|
d: "M-9 16V-8h24v24z"
|
|
1903
1912
|
}),
|
|
1904
|
-
/* @__PURE__ */
|
|
1913
|
+
/* @__PURE__ */ w("path", {
|
|
1905
1914
|
"stroke-linecap": "round",
|
|
1906
1915
|
"stroke-linejoin": "round",
|
|
1907
1916
|
d: "M5 0L1 4l4 4"
|
|
1908
1917
|
})
|
|
1909
1918
|
])
|
|
1910
|
-
], -1)), Yl = ["disabled"], Kl = /* @__PURE__ */
|
|
1919
|
+
], -1)), Yl = ["disabled"], Kl = /* @__PURE__ */ tt(() => /* @__PURE__ */ w("svg", {
|
|
1911
1920
|
class: "v3dp__heading__icon",
|
|
1912
1921
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1913
1922
|
viewBox: "0 0 6 8"
|
|
1914
1923
|
}, [
|
|
1915
|
-
/* @__PURE__ */
|
|
1924
|
+
/* @__PURE__ */ w("g", {
|
|
1916
1925
|
fill: "none",
|
|
1917
1926
|
"fill-rule": "evenodd"
|
|
1918
1927
|
}, [
|
|
1919
|
-
/* @__PURE__ */
|
|
1928
|
+
/* @__PURE__ */ w("path", {
|
|
1920
1929
|
stroke: "none",
|
|
1921
1930
|
d: "M15-8v24H-9V-8z"
|
|
1922
1931
|
}),
|
|
1923
|
-
/* @__PURE__ */
|
|
1932
|
+
/* @__PURE__ */ w("path", {
|
|
1924
1933
|
"stroke-linecap": "round",
|
|
1925
1934
|
"stroke-linejoin": "round",
|
|
1926
1935
|
d: "M1 8l4-4-4-4"
|
|
1927
1936
|
})
|
|
1928
1937
|
])
|
|
1929
|
-
], -1)), Jl = { class: "v3dp__body" }, Ql = { class: "v3dp__subheading" }, Xl = /* @__PURE__ */
|
|
1938
|
+
], -1)), Jl = { class: "v3dp__body" }, Ql = { class: "v3dp__subheading" }, Xl = /* @__PURE__ */ tt(() => /* @__PURE__ */ w("hr", { class: "v3dp__divider" }, null, -1)), en = { class: "v3dp__elements" }, tn = ["disabled", "onClick"];
|
|
1930
1939
|
function on(e, o, t, l, n, a) {
|
|
1931
|
-
return v(),
|
|
1932
|
-
class:
|
|
1940
|
+
return v(), _("div", {
|
|
1941
|
+
class: x(["v3dp__popout", `v3dp__popout-${e.viewMode}`]),
|
|
1933
1942
|
style: E({ "--popout-column-definition": `repeat(${e.columnCount}, 1fr)` }),
|
|
1934
|
-
onMousedown: o[3] || (o[3] =
|
|
1943
|
+
onMousedown: o[3] || (o[3] = re(() => {
|
|
1935
1944
|
}, ["prevent"]))
|
|
1936
1945
|
}, [
|
|
1937
|
-
|
|
1938
|
-
|
|
1946
|
+
w("div", Ul, [
|
|
1947
|
+
w("button", {
|
|
1939
1948
|
class: "v3dp__heading__button v3dp__heading__button__left",
|
|
1940
1949
|
disabled: e.leftDisabled,
|
|
1941
|
-
onClick: o[0] || (o[0] =
|
|
1950
|
+
onClick: o[0] || (o[0] = re((i) => e.$emit("left"), ["stop", "prevent"]))
|
|
1942
1951
|
}, [
|
|
1943
|
-
|
|
1952
|
+
W(e.$slots, "arrow-left", {}, () => [
|
|
1944
1953
|
Zl
|
|
1945
1954
|
], !0)
|
|
1946
1955
|
], 8, Gl),
|
|
1947
1956
|
(v(), S(Rt(e.headingClickable ? "button" : "span"), {
|
|
1948
1957
|
class: "v3dp__heading__center",
|
|
1949
|
-
onClick: o[1] || (o[1] =
|
|
1958
|
+
onClick: o[1] || (o[1] = re((i) => e.$emit("heading"), ["stop", "prevent"]))
|
|
1950
1959
|
}, {
|
|
1951
|
-
default:
|
|
1952
|
-
|
|
1960
|
+
default: H(() => [
|
|
1961
|
+
W(e.$slots, "heading", {}, void 0, !0)
|
|
1953
1962
|
]),
|
|
1954
1963
|
_: 3
|
|
1955
1964
|
})),
|
|
1956
|
-
|
|
1965
|
+
w("button", {
|
|
1957
1966
|
class: "v3dp__heading__button v3dp__heading__button__right",
|
|
1958
1967
|
disabled: e.rightDisabled,
|
|
1959
|
-
onClick: o[2] || (o[2] =
|
|
1968
|
+
onClick: o[2] || (o[2] = re((i) => e.$emit("right"), ["stop", "prevent"]))
|
|
1960
1969
|
}, [
|
|
1961
|
-
|
|
1970
|
+
W(e.$slots, "arrow-right", {}, () => [
|
|
1962
1971
|
Kl
|
|
1963
1972
|
], !0)
|
|
1964
1973
|
], 8, Yl)
|
|
1965
1974
|
]),
|
|
1966
|
-
|
|
1967
|
-
"subheading" in e.$slots ? (v(),
|
|
1968
|
-
|
|
1969
|
-
|
|
1975
|
+
w("div", Jl, [
|
|
1976
|
+
"subheading" in e.$slots ? (v(), _(Y, { key: 0 }, [
|
|
1977
|
+
w("div", Ql, [
|
|
1978
|
+
W(e.$slots, "subheading", {}, void 0, !0)
|
|
1970
1979
|
]),
|
|
1971
1980
|
Xl
|
|
1972
|
-
], 64)) :
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
(v(!0),
|
|
1981
|
+
], 64)) : C("", !0),
|
|
1982
|
+
w("div", en, [
|
|
1983
|
+
W(e.$slots, "body", {}, () => [
|
|
1984
|
+
(v(!0), _(Y, null, de(e.items, (i) => (v(), _("button", {
|
|
1976
1985
|
key: i.key,
|
|
1977
1986
|
disabled: i.disabled,
|
|
1978
|
-
class:
|
|
1987
|
+
class: x([
|
|
1979
1988
|
{
|
|
1980
1989
|
selected: i.selected,
|
|
1981
1990
|
current: i.current
|
|
1982
1991
|
},
|
|
1983
1992
|
`v3dp__element__button__${e.viewMode}`
|
|
1984
1993
|
]),
|
|
1985
|
-
onClick:
|
|
1994
|
+
onClick: re((d) => e.$emit("elementClick", i.value), ["stop", "prevent"])
|
|
1986
1995
|
}, [
|
|
1987
|
-
|
|
1996
|
+
w("span", null, I(i.display), 1)
|
|
1988
1997
|
], 10, tn))), 128))
|
|
1989
1998
|
], !0)
|
|
1990
1999
|
])
|
|
1991
2000
|
])
|
|
1992
2001
|
], 38);
|
|
1993
2002
|
}
|
|
1994
|
-
const Ee = /* @__PURE__ */ Te(jl, [["render", on], ["__scopeId", "data-v-65eb861b"]]), ln =
|
|
2003
|
+
const Ee = /* @__PURE__ */ Te(jl, [["render", on], ["__scopeId", "data-v-65eb861b"]]), ln = R({
|
|
1995
2004
|
components: {
|
|
1996
2005
|
PickerPopup: Ee
|
|
1997
2006
|
},
|
|
1998
2007
|
emits: {
|
|
1999
|
-
"update:pageDate": (e) =>
|
|
2000
|
-
select: (e) =>
|
|
2008
|
+
"update:pageDate": (e) => pe(e),
|
|
2009
|
+
select: (e) => pe(e)
|
|
2001
2010
|
},
|
|
2002
2011
|
props: {
|
|
2003
2012
|
selected: {
|
|
@@ -2018,39 +2027,39 @@ const Ee = /* @__PURE__ */ Te(jl, [["render", on], ["__scopeId", "data-v-65eb861
|
|
|
2018
2027
|
}
|
|
2019
2028
|
},
|
|
2020
2029
|
setup(e, { emit: o }) {
|
|
2021
|
-
const t = c(() => Yt(e.pageDate)), l = c(() => Kt(e.pageDate)), n = (p,
|
|
2030
|
+
const t = c(() => Yt(e.pageDate)), l = c(() => Kt(e.pageDate)), n = (p, s, f) => !s && !f ? !0 : !(s && fe(p) < fe(s) || f && fe(p) > fe(f)), a = c(
|
|
2022
2031
|
() => Jt({
|
|
2023
2032
|
start: t.value,
|
|
2024
2033
|
end: l.value
|
|
2025
2034
|
}).map(
|
|
2026
2035
|
(p) => ({
|
|
2027
2036
|
value: p,
|
|
2028
|
-
key: String(
|
|
2029
|
-
display:
|
|
2030
|
-
selected: !!e.selected &&
|
|
2037
|
+
key: String(fe(p)),
|
|
2038
|
+
display: fe(p),
|
|
2039
|
+
selected: !!e.selected && fe(p) === fe(e.selected),
|
|
2031
2040
|
disabled: !n(p, e.lowerLimit, e.upperLimit)
|
|
2032
2041
|
})
|
|
2033
2042
|
)
|
|
2034
2043
|
), i = c(() => {
|
|
2035
|
-
const p =
|
|
2036
|
-
return `${p} - ${
|
|
2044
|
+
const p = fe(t.value), s = fe(l.value);
|
|
2045
|
+
return `${p} - ${s}`;
|
|
2037
2046
|
}), d = c(
|
|
2038
|
-
() => e.lowerLimit && (
|
|
2039
|
-
),
|
|
2040
|
-
() => e.upperLimit && (
|
|
2047
|
+
() => e.lowerLimit && (Ie(e.lowerLimit) === Ie(e.pageDate) || Le(e.pageDate, e.lowerLimit))
|
|
2048
|
+
), u = c(
|
|
2049
|
+
() => e.upperLimit && (Ie(e.upperLimit) === Ie(e.pageDate) || Se(e.pageDate, e.upperLimit))
|
|
2041
2050
|
);
|
|
2042
2051
|
return {
|
|
2043
2052
|
years: a,
|
|
2044
2053
|
heading: i,
|
|
2045
2054
|
leftDisabled: d,
|
|
2046
|
-
rightDisabled:
|
|
2055
|
+
rightDisabled: u,
|
|
2047
2056
|
previousPage: () => o("update:pageDate", ft(e.pageDate, 10)),
|
|
2048
2057
|
nextPage: () => o("update:pageDate", mt(e.pageDate, 10))
|
|
2049
2058
|
};
|
|
2050
2059
|
}
|
|
2051
2060
|
});
|
|
2052
2061
|
function nn(e, o, t, l, n, a) {
|
|
2053
|
-
const i =
|
|
2062
|
+
const i = U("picker-popup");
|
|
2054
2063
|
return v(), S(i, {
|
|
2055
2064
|
columnCount: 3,
|
|
2056
2065
|
leftDisabled: e.leftDisabled,
|
|
@@ -2061,19 +2070,19 @@ function nn(e, o, t, l, n, a) {
|
|
|
2061
2070
|
onRight: e.nextPage,
|
|
2062
2071
|
onElementClick: o[0] || (o[0] = (d) => e.$emit("select", d))
|
|
2063
2072
|
}, {
|
|
2064
|
-
heading:
|
|
2065
|
-
|
|
2073
|
+
heading: H(() => [
|
|
2074
|
+
Z(I(e.heading), 1)
|
|
2066
2075
|
]),
|
|
2067
2076
|
_: 1
|
|
2068
2077
|
}, 8, ["leftDisabled", "rightDisabled", "items", "onLeft", "onRight"]);
|
|
2069
2078
|
}
|
|
2070
|
-
const an = /* @__PURE__ */ Te(ln, [["render", nn]]), sn =
|
|
2079
|
+
const an = /* @__PURE__ */ Te(ln, [["render", nn]]), sn = R({
|
|
2071
2080
|
components: {
|
|
2072
2081
|
PickerPopup: Ee
|
|
2073
2082
|
},
|
|
2074
2083
|
emits: {
|
|
2075
|
-
"update:pageDate": (e) =>
|
|
2076
|
-
select: (e) =>
|
|
2084
|
+
"update:pageDate": (e) => pe(e),
|
|
2085
|
+
select: (e) => pe(e),
|
|
2077
2086
|
back: () => !0
|
|
2078
2087
|
},
|
|
2079
2088
|
props: {
|
|
@@ -2108,31 +2117,31 @@ const an = /* @__PURE__ */ Te(ln, [["render", nn]]), sn = z({
|
|
|
2108
2117
|
},
|
|
2109
2118
|
setup(e, { emit: o }) {
|
|
2110
2119
|
const t = c(() => Qt(e.pageDate)), l = c(() => Xt(e.pageDate)), n = c(
|
|
2111
|
-
() => (
|
|
2120
|
+
() => (s) => Re(s, e.format, {
|
|
2112
2121
|
locale: e.locale
|
|
2113
2122
|
})
|
|
2114
|
-
), a = (
|
|
2123
|
+
), a = (s, f, r) => !f && !r ? !0 : !(f && Le(s, gt(f)) || r && Se(s, ht(r))), i = c(
|
|
2115
2124
|
() => eo({
|
|
2116
2125
|
start: t.value,
|
|
2117
2126
|
end: l.value
|
|
2118
2127
|
}).map(
|
|
2119
|
-
(
|
|
2120
|
-
value:
|
|
2121
|
-
display: n.value(
|
|
2122
|
-
key: n.value(
|
|
2123
|
-
selected: !!e.selected && Ke(e.selected,
|
|
2124
|
-
disabled: !a(
|
|
2128
|
+
(s) => ({
|
|
2129
|
+
value: s,
|
|
2130
|
+
display: n.value(s),
|
|
2131
|
+
key: n.value(s),
|
|
2132
|
+
selected: !!e.selected && Ke(e.selected, s),
|
|
2133
|
+
disabled: !a(s, e.lowerLimit, e.upperLimit)
|
|
2125
2134
|
})
|
|
2126
2135
|
)
|
|
2127
|
-
), d = c(() =>
|
|
2128
|
-
() => e.lowerLimit && (
|
|
2136
|
+
), d = c(() => fe(t.value)), u = c(
|
|
2137
|
+
() => e.lowerLimit && (lt(e.lowerLimit, e.pageDate) || Le(e.pageDate, e.lowerLimit))
|
|
2129
2138
|
), p = c(
|
|
2130
|
-
() => e.upperLimit && (
|
|
2139
|
+
() => e.upperLimit && (lt(e.upperLimit, e.pageDate) || Se(e.pageDate, e.upperLimit))
|
|
2131
2140
|
);
|
|
2132
2141
|
return {
|
|
2133
2142
|
months: i,
|
|
2134
2143
|
heading: d,
|
|
2135
|
-
leftDisabled:
|
|
2144
|
+
leftDisabled: u,
|
|
2136
2145
|
rightDisabled: p,
|
|
2137
2146
|
previousPage: () => o("update:pageDate", ft(e.pageDate, 1)),
|
|
2138
2147
|
nextPage: () => o("update:pageDate", mt(e.pageDate, 1))
|
|
@@ -2140,7 +2149,7 @@ const an = /* @__PURE__ */ Te(ln, [["render", nn]]), sn = z({
|
|
|
2140
2149
|
}
|
|
2141
2150
|
});
|
|
2142
2151
|
function rn(e, o, t, l, n, a) {
|
|
2143
|
-
const i =
|
|
2152
|
+
const i = U("picker-popup");
|
|
2144
2153
|
return v(), S(i, {
|
|
2145
2154
|
headingClickable: "",
|
|
2146
2155
|
columnCount: 3,
|
|
@@ -2153,19 +2162,19 @@ function rn(e, o, t, l, n, a) {
|
|
|
2153
2162
|
onHeading: o[0] || (o[0] = (d) => e.$emit("back")),
|
|
2154
2163
|
onElementClick: o[1] || (o[1] = (d) => e.$emit("select", d))
|
|
2155
2164
|
}, {
|
|
2156
|
-
heading:
|
|
2157
|
-
|
|
2165
|
+
heading: H(() => [
|
|
2166
|
+
Z(I(e.heading), 1)
|
|
2158
2167
|
]),
|
|
2159
2168
|
_: 1
|
|
2160
2169
|
}, 8, ["items", "leftDisabled", "rightDisabled", "onLeft", "onRight"]);
|
|
2161
2170
|
}
|
|
2162
|
-
const un = /* @__PURE__ */ Te(sn, [["render", rn]]), cn =
|
|
2171
|
+
const un = /* @__PURE__ */ Te(sn, [["render", rn]]), cn = R({
|
|
2163
2172
|
components: {
|
|
2164
2173
|
PickerPopup: Ee
|
|
2165
2174
|
},
|
|
2166
2175
|
emits: {
|
|
2167
|
-
"update:pageDate": (e) =>
|
|
2168
|
-
select: (e) =>
|
|
2176
|
+
"update:pageDate": (e) => pe(e),
|
|
2177
|
+
select: (e) => pe(e),
|
|
2169
2178
|
back: () => !0
|
|
2170
2179
|
},
|
|
2171
2180
|
props: {
|
|
@@ -2222,7 +2231,7 @@ const un = /* @__PURE__ */ Te(sn, [["render", rn]]), cn = z({
|
|
|
2222
2231
|
},
|
|
2223
2232
|
setup(e, { emit: o }) {
|
|
2224
2233
|
const t = c(
|
|
2225
|
-
() => (
|
|
2234
|
+
() => (k) => (m) => Re(m, k, {
|
|
2226
2235
|
locale: e.locale,
|
|
2227
2236
|
weekStartsOn: e.weekStartsOn
|
|
2228
2237
|
})
|
|
@@ -2237,33 +2246,33 @@ const un = /* @__PURE__ */ Te(sn, [["render", rn]]), cn = z({
|
|
|
2237
2246
|
weekStartsOn: e.weekStartsOn
|
|
2238
2247
|
})
|
|
2239
2248
|
})), d = c(() => {
|
|
2240
|
-
const
|
|
2241
|
-
return Array.from(Array(7)).map((
|
|
2242
|
-
(
|
|
2249
|
+
const k = e.weekStartsOn, m = t.value(e.weekdayFormat);
|
|
2250
|
+
return Array.from(Array(7)).map((h, y) => (k + y) % 7).map(
|
|
2251
|
+
(h) => lo(/* @__PURE__ */ new Date(), h, {
|
|
2243
2252
|
weekStartsOn: e.weekStartsOn
|
|
2244
2253
|
})
|
|
2245
2254
|
).map(m);
|
|
2246
|
-
}),
|
|
2247
|
-
var
|
|
2248
|
-
return (
|
|
2255
|
+
}), u = (k, m, h, y) => {
|
|
2256
|
+
var g, T;
|
|
2257
|
+
return (g = y == null ? void 0 : y.dates) != null && g.some((O) => Ge(k, O)) || (T = y == null ? void 0 : y.predicate) != null && T.call(y, k) ? !1 : !m && !h ? !0 : !(m && Le(k, co(m)) || h && Se(k, po(h)));
|
|
2249
2258
|
}, p = c(() => {
|
|
2250
|
-
const
|
|
2259
|
+
const k = /* @__PURE__ */ new Date(), m = t.value(e.format);
|
|
2251
2260
|
return no(i.value).map(
|
|
2252
|
-
(
|
|
2253
|
-
value:
|
|
2254
|
-
display: m(
|
|
2255
|
-
selected: !!e.selected && Ge(e.selected,
|
|
2256
|
-
current: Ge(
|
|
2257
|
-
disabled: !e.allowOutsideInterval && !ao(
|
|
2258
|
-
|
|
2261
|
+
(h) => ({
|
|
2262
|
+
value: h,
|
|
2263
|
+
display: m(h),
|
|
2264
|
+
selected: !!e.selected && Ge(e.selected, h),
|
|
2265
|
+
current: Ge(k, h),
|
|
2266
|
+
disabled: !e.allowOutsideInterval && !ao(h, a.value) || !u(
|
|
2267
|
+
h,
|
|
2259
2268
|
e.lowerLimit,
|
|
2260
2269
|
e.upperLimit,
|
|
2261
2270
|
e.disabledDates
|
|
2262
2271
|
),
|
|
2263
|
-
key: t.value("yyyy-MM-dd")(
|
|
2272
|
+
key: t.value("yyyy-MM-dd")(h)
|
|
2264
2273
|
})
|
|
2265
2274
|
);
|
|
2266
|
-
}),
|
|
2275
|
+
}), s = c(
|
|
2267
2276
|
() => t.value(e.headingFormat)(e.pageDate)
|
|
2268
2277
|
), f = c(
|
|
2269
2278
|
() => e.lowerLimit && (Ke(e.lowerLimit, e.pageDate) || Le(e.pageDate, e.lowerLimit))
|
|
@@ -2273,7 +2282,7 @@ const un = /* @__PURE__ */ Te(sn, [["render", rn]]), cn = z({
|
|
|
2273
2282
|
return {
|
|
2274
2283
|
weekDays: d,
|
|
2275
2284
|
days: p,
|
|
2276
|
-
heading:
|
|
2285
|
+
heading: s,
|
|
2277
2286
|
leftDisabled: f,
|
|
2278
2287
|
rightDisabled: r,
|
|
2279
2288
|
previousPage: () => o("update:pageDate", io(e.pageDate, 1)),
|
|
@@ -2282,7 +2291,7 @@ const un = /* @__PURE__ */ Te(sn, [["render", rn]]), cn = z({
|
|
|
2282
2291
|
}
|
|
2283
2292
|
});
|
|
2284
2293
|
function dn(e, o, t, l, n, a) {
|
|
2285
|
-
const i =
|
|
2294
|
+
const i = U("picker-popup");
|
|
2286
2295
|
return v(), S(i, {
|
|
2287
2296
|
headingClickable: "",
|
|
2288
2297
|
leftDisabled: e.leftDisabled,
|
|
@@ -2294,20 +2303,20 @@ function dn(e, o, t, l, n, a) {
|
|
|
2294
2303
|
onHeading: o[0] || (o[0] = (d) => e.$emit("back")),
|
|
2295
2304
|
onElementClick: o[1] || (o[1] = (d) => e.$emit("select", d))
|
|
2296
2305
|
}, {
|
|
2297
|
-
heading:
|
|
2298
|
-
|
|
2306
|
+
heading: H(() => [
|
|
2307
|
+
Z(I(e.heading), 1)
|
|
2299
2308
|
]),
|
|
2300
|
-
subheading:
|
|
2301
|
-
(v(!0),
|
|
2309
|
+
subheading: H(() => [
|
|
2310
|
+
(v(!0), _(Y, null, de(e.weekDays, (d, u) => (v(), _("span", {
|
|
2302
2311
|
key: d,
|
|
2303
|
-
class:
|
|
2312
|
+
class: x(`v3dp__subheading__weekday__${u}`)
|
|
2304
2313
|
}, I(d), 3))), 128))
|
|
2305
2314
|
]),
|
|
2306
2315
|
_: 1
|
|
2307
2316
|
}, 8, ["leftDisabled", "rightDisabled", "items", "onLeft", "onRight"]);
|
|
2308
2317
|
}
|
|
2309
2318
|
const pn = /* @__PURE__ */ Te(cn, [["render", dn]]);
|
|
2310
|
-
function
|
|
2319
|
+
function ct(e, o) {
|
|
2311
2320
|
const t = e.getBoundingClientRect(), l = {
|
|
2312
2321
|
height: e.clientHeight,
|
|
2313
2322
|
width: e.clientWidth
|
|
@@ -2317,12 +2326,12 @@ function ut(e, o) {
|
|
|
2317
2326
|
Math.abs(a) < Math.abs(i) ? e.scrollTop += a : e.scrollTop += i;
|
|
2318
2327
|
}
|
|
2319
2328
|
}
|
|
2320
|
-
const vn =
|
|
2329
|
+
const vn = R({
|
|
2321
2330
|
components: {
|
|
2322
2331
|
PickerPopup: Ee
|
|
2323
2332
|
},
|
|
2324
2333
|
emits: {
|
|
2325
|
-
select: (e) =>
|
|
2334
|
+
select: (e) => pe(e),
|
|
2326
2335
|
back: () => !0
|
|
2327
2336
|
},
|
|
2328
2337
|
props: {
|
|
@@ -2344,58 +2353,58 @@ const vn = z({
|
|
|
2344
2353
|
}
|
|
2345
2354
|
},
|
|
2346
2355
|
setup(e, { emit: o }) {
|
|
2347
|
-
const t =
|
|
2348
|
-
|
|
2356
|
+
const t = M(null), l = M(null), n = c(() => e.pageDate ?? e.selected), a = M(n.value.getHours()), i = M(n.value.getMinutes());
|
|
2357
|
+
ce(
|
|
2349
2358
|
() => e.selected,
|
|
2350
2359
|
(f) => {
|
|
2351
|
-
let r = 0,
|
|
2352
|
-
f && (r = f.getHours(),
|
|
2360
|
+
let r = 0, k = 0;
|
|
2361
|
+
f && (r = f.getHours(), k = f.getMinutes()), a.value = r, i.value = k;
|
|
2353
2362
|
}
|
|
2354
2363
|
);
|
|
2355
2364
|
const d = c(
|
|
2356
2365
|
() => [...Array(24).keys()].map(
|
|
2357
2366
|
(f) => ({
|
|
2358
2367
|
value: f,
|
|
2359
|
-
date:
|
|
2368
|
+
date: nt(new Date(n.value.getTime()), {
|
|
2360
2369
|
hours: f,
|
|
2361
2370
|
minutes: i.value,
|
|
2362
2371
|
seconds: 0
|
|
2363
2372
|
}),
|
|
2364
2373
|
selected: a.value === f,
|
|
2365
|
-
ref:
|
|
2374
|
+
ref: M(null)
|
|
2366
2375
|
})
|
|
2367
2376
|
)
|
|
2368
|
-
),
|
|
2377
|
+
), u = c(
|
|
2369
2378
|
() => [...Array(60).keys()].map((f) => ({
|
|
2370
2379
|
value: f,
|
|
2371
|
-
date:
|
|
2380
|
+
date: nt(new Date(n.value.getTime()), {
|
|
2372
2381
|
hours: a.value,
|
|
2373
2382
|
minutes: f,
|
|
2374
2383
|
seconds: 0
|
|
2375
2384
|
}),
|
|
2376
2385
|
selected: i.value === f,
|
|
2377
|
-
ref:
|
|
2386
|
+
ref: M(null)
|
|
2378
2387
|
}))
|
|
2379
2388
|
), p = (f) => {
|
|
2380
2389
|
i.value = f.value, o("select", f.date);
|
|
2381
|
-
},
|
|
2390
|
+
}, s = () => {
|
|
2382
2391
|
const f = d.value.find(
|
|
2383
|
-
(
|
|
2384
|
-
var m,
|
|
2385
|
-
return ((
|
|
2392
|
+
(k) => {
|
|
2393
|
+
var m, h;
|
|
2394
|
+
return ((h = (m = k.ref.value) == null ? void 0 : m.classList) == null ? void 0 : h.contains("selected")) ?? !1;
|
|
2386
2395
|
}
|
|
2387
|
-
), r =
|
|
2388
|
-
(
|
|
2389
|
-
var m,
|
|
2390
|
-
return ((
|
|
2396
|
+
), r = u.value.find(
|
|
2397
|
+
(k) => {
|
|
2398
|
+
var m, h;
|
|
2399
|
+
return ((h = (m = k.ref.value) == null ? void 0 : m.classList) == null ? void 0 : h.contains("selected")) ?? !1;
|
|
2391
2400
|
}
|
|
2392
2401
|
);
|
|
2393
|
-
f && r && (
|
|
2402
|
+
f && r && (ct(t.value, f.ref.value), ct(l.value, r.ref.value));
|
|
2394
2403
|
};
|
|
2395
|
-
return
|
|
2404
|
+
return ce(
|
|
2396
2405
|
() => e.visible,
|
|
2397
2406
|
(f) => {
|
|
2398
|
-
f &&
|
|
2407
|
+
f && vt(s);
|
|
2399
2408
|
}
|
|
2400
2409
|
), {
|
|
2401
2410
|
hoursListRef: t,
|
|
@@ -2403,16 +2412,16 @@ const vn = z({
|
|
|
2403
2412
|
hours: a,
|
|
2404
2413
|
minutes: i,
|
|
2405
2414
|
hoursList: d,
|
|
2406
|
-
minutesList:
|
|
2415
|
+
minutesList: u,
|
|
2407
2416
|
padStartZero: (f) => `0${f}`.substr(-2),
|
|
2408
2417
|
selectMinutes: p,
|
|
2409
2418
|
isEnabled: (f) => {
|
|
2410
|
-
var r,
|
|
2411
|
-
return !((
|
|
2412
|
-
(
|
|
2413
|
-
) || (
|
|
2419
|
+
var r, k, m, h;
|
|
2420
|
+
return !((k = (r = e.disabledTime) == null ? void 0 : r.dates) != null && k.some(
|
|
2421
|
+
(y) => ro(f, y) && uo(f, y)
|
|
2422
|
+
) || (h = (m = e.disabledTime) == null ? void 0 : m.predicate) != null && h.call(m, f));
|
|
2414
2423
|
},
|
|
2415
|
-
scroll:
|
|
2424
|
+
scroll: s
|
|
2416
2425
|
};
|
|
2417
2426
|
}
|
|
2418
2427
|
}), fn = {
|
|
@@ -2423,7 +2432,7 @@ const vn = z({
|
|
|
2423
2432
|
class: "v3dp__column"
|
|
2424
2433
|
}, hn = ["disabled", "onClick"];
|
|
2425
2434
|
function kn(e, o, t, l, n, a) {
|
|
2426
|
-
const i =
|
|
2435
|
+
const i = U("picker-popup");
|
|
2427
2436
|
return v(), S(i, {
|
|
2428
2437
|
headingClickable: "",
|
|
2429
2438
|
columnCount: 2,
|
|
@@ -2432,32 +2441,32 @@ function kn(e, o, t, l, n, a) {
|
|
|
2432
2441
|
viewMode: "time",
|
|
2433
2442
|
onHeading: o[0] || (o[0] = (d) => e.$emit("back"))
|
|
2434
2443
|
}, {
|
|
2435
|
-
heading:
|
|
2436
|
-
|
|
2444
|
+
heading: H(() => [
|
|
2445
|
+
Z(I(e.padStartZero(e.hours)) + ":" + I(e.padStartZero(e.minutes)), 1)
|
|
2437
2446
|
]),
|
|
2438
|
-
body:
|
|
2439
|
-
|
|
2440
|
-
(v(!0),
|
|
2447
|
+
body: H(() => [
|
|
2448
|
+
w("div", fn, [
|
|
2449
|
+
(v(!0), _(Y, null, de(e.hoursList, (d) => (v(), _("button", {
|
|
2441
2450
|
key: d.value,
|
|
2442
2451
|
ref_for: !0,
|
|
2443
2452
|
ref: d.ref,
|
|
2444
|
-
class:
|
|
2453
|
+
class: x([{ selected: d.selected }, "v3dp__element_button__hour"]),
|
|
2445
2454
|
disabled: !e.isEnabled(d.date),
|
|
2446
|
-
onClick:
|
|
2455
|
+
onClick: re((u) => e.hours = d.value, ["stop", "prevent"])
|
|
2447
2456
|
}, [
|
|
2448
|
-
|
|
2457
|
+
w("span", null, I(e.padStartZero(d.value)), 1)
|
|
2449
2458
|
], 10, mn))), 128))
|
|
2450
2459
|
], 512),
|
|
2451
|
-
|
|
2452
|
-
(v(!0),
|
|
2460
|
+
w("div", gn, [
|
|
2461
|
+
(v(!0), _(Y, null, de(e.minutesList, (d) => (v(), _("button", {
|
|
2453
2462
|
key: d.value,
|
|
2454
2463
|
ref_for: !0,
|
|
2455
2464
|
ref: d.ref,
|
|
2456
|
-
class:
|
|
2465
|
+
class: x([{ selected: d.selected }, "v3dp__element_button__minute"]),
|
|
2457
2466
|
disabled: !e.isEnabled(d.date),
|
|
2458
|
-
onClick:
|
|
2467
|
+
onClick: re((u) => e.selectMinutes(d), ["stop", "prevent"])
|
|
2459
2468
|
}, [
|
|
2460
|
-
|
|
2469
|
+
w("span", null, I(e.padStartZero(d.value)), 1)
|
|
2461
2470
|
], 10, hn))), 128))
|
|
2462
2471
|
], 512)
|
|
2463
2472
|
]),
|
|
@@ -2467,7 +2476,7 @@ function kn(e, o, t, l, n, a) {
|
|
|
2467
2476
|
const yn = /* @__PURE__ */ Te(vn, [["render", kn], ["__scopeId", "data-v-81ac698d"]]), Ae = ["time", "day", "month", "year"], _n = (e, o, t = void 0) => {
|
|
2468
2477
|
let l = t || /* @__PURE__ */ new Date();
|
|
2469
2478
|
return e && (l = vo([e, l])), o && (l = fo([o, l])), l;
|
|
2470
|
-
}, bn =
|
|
2479
|
+
}, bn = R({
|
|
2471
2480
|
components: {
|
|
2472
2481
|
YearPicker: an,
|
|
2473
2482
|
MonthPicker: un,
|
|
@@ -2635,7 +2644,7 @@ const yn = /* @__PURE__ */ Te(vn, [["render", kn], ["__scopeId", "data-v-81ac698
|
|
|
2635
2644
|
}
|
|
2636
2645
|
},
|
|
2637
2646
|
emits: {
|
|
2638
|
-
"update:modelValue": (e) => e == null ||
|
|
2647
|
+
"update:modelValue": (e) => e == null || pe(e),
|
|
2639
2648
|
decadePageChanged: (e) => !0,
|
|
2640
2649
|
yearPageChanged: (e) => !0,
|
|
2641
2650
|
monthPageChanged: (e) => !0,
|
|
@@ -2643,118 +2652,118 @@ const yn = /* @__PURE__ */ Te(vn, [["render", kn], ["__scopeId", "data-v-81ac698
|
|
|
2643
2652
|
closed: () => !0
|
|
2644
2653
|
},
|
|
2645
2654
|
setup(e, { emit: o, attrs: t }) {
|
|
2646
|
-
const l =
|
|
2655
|
+
const l = M("none"), n = M(e.startingViewDate), a = M(null), i = M(!1), d = M("");
|
|
2647
2656
|
je(() => {
|
|
2648
|
-
const
|
|
2657
|
+
const V = at(d.value, e.inputFormat, /* @__PURE__ */ new Date(), {
|
|
2649
2658
|
locale: e.locale
|
|
2650
2659
|
});
|
|
2651
|
-
|
|
2660
|
+
pe(V) && (n.value = V);
|
|
2652
2661
|
}), je(
|
|
2653
|
-
() => d.value = e.modelValue &&
|
|
2662
|
+
() => d.value = e.modelValue && pe(e.modelValue) ? Re(e.modelValue, e.inputFormat, {
|
|
2654
2663
|
locale: e.locale
|
|
2655
2664
|
}) : ""
|
|
2656
2665
|
);
|
|
2657
|
-
const
|
|
2658
|
-
e.disabled || (
|
|
2666
|
+
const u = (V = "none") => {
|
|
2667
|
+
e.disabled || (V !== "none" && l.value === "none" && (n.value = e.modelValue || _n(e.lowerLimit, e.upperLimit, n.value)), l.value = V, o(V !== "none" ? "opened" : "closed"));
|
|
2659
2668
|
};
|
|
2660
2669
|
je(() => {
|
|
2661
2670
|
e.disabled && (l.value = "none");
|
|
2662
2671
|
});
|
|
2663
|
-
const p = (
|
|
2664
|
-
n.value =
|
|
2665
|
-
},
|
|
2666
|
-
n.value =
|
|
2667
|
-
}, f = (
|
|
2668
|
-
n.value =
|
|
2669
|
-
}, r = (
|
|
2670
|
-
n.value =
|
|
2671
|
-
},
|
|
2672
|
-
|
|
2672
|
+
const p = (V, B) => {
|
|
2673
|
+
n.value = B, V === "year" ? o("decadePageChanged", B) : V === "month" ? o("yearPageChanged", B) : V === "day" && o("monthPageChanged", B);
|
|
2674
|
+
}, s = (V) => {
|
|
2675
|
+
n.value = V, e.minimumView === "year" ? (u("none"), o("update:modelValue", V)) : l.value = "month";
|
|
2676
|
+
}, f = (V) => {
|
|
2677
|
+
n.value = V, e.minimumView === "month" ? (u("none"), o("update:modelValue", V)) : l.value = "day";
|
|
2678
|
+
}, r = (V) => {
|
|
2679
|
+
n.value = V, e.minimumView === "day" ? (u("none"), o("update:modelValue", V)) : l.value = "time";
|
|
2680
|
+
}, k = (V) => {
|
|
2681
|
+
u("none"), o("update:modelValue", V);
|
|
2673
2682
|
}, m = () => {
|
|
2674
|
-
e.clearable && (
|
|
2675
|
-
},
|
|
2676
|
-
i.value = !1,
|
|
2677
|
-
},
|
|
2678
|
-
const
|
|
2683
|
+
e.clearable && (u("none"), o("update:modelValue", null), n.value = e.startingViewDate);
|
|
2684
|
+
}, h = () => i.value = !0, y = () => u(O.value), g = () => {
|
|
2685
|
+
i.value = !1, u();
|
|
2686
|
+
}, T = (V) => {
|
|
2687
|
+
const B = V.keyCode ? V.keyCode : V.which;
|
|
2679
2688
|
if ([
|
|
2680
2689
|
27,
|
|
2681
2690
|
// escape
|
|
2682
2691
|
13
|
|
2683
2692
|
// enter
|
|
2684
|
-
].includes(
|
|
2685
|
-
const
|
|
2693
|
+
].includes(B) && a.value.blur(), e.typeable) {
|
|
2694
|
+
const P = at(
|
|
2686
2695
|
a.value.value,
|
|
2687
2696
|
e.inputFormat,
|
|
2688
2697
|
/* @__PURE__ */ new Date(),
|
|
2689
2698
|
{ locale: e.locale }
|
|
2690
2699
|
);
|
|
2691
|
-
|
|
2700
|
+
pe(P) && d.value === Re(P, e.inputFormat, { locale: e.locale }) && (d.value = a.value.value, o("update:modelValue", P));
|
|
2692
2701
|
}
|
|
2693
|
-
},
|
|
2694
|
-
const
|
|
2695
|
-
return
|
|
2702
|
+
}, O = c(() => {
|
|
2703
|
+
const V = Ae.indexOf(e.startingView), B = Ae.indexOf(e.minimumView);
|
|
2704
|
+
return V < B ? e.minimumView : e.startingView;
|
|
2696
2705
|
});
|
|
2697
2706
|
return {
|
|
2698
|
-
blur:
|
|
2699
|
-
focus:
|
|
2700
|
-
click:
|
|
2707
|
+
blur: g,
|
|
2708
|
+
focus: y,
|
|
2709
|
+
click: h,
|
|
2701
2710
|
input: d,
|
|
2702
2711
|
inputRef: a,
|
|
2703
2712
|
pageDate: n,
|
|
2704
|
-
renderView:
|
|
2713
|
+
renderView: u,
|
|
2705
2714
|
updatePageDate: p,
|
|
2706
|
-
selectYear:
|
|
2715
|
+
selectYear: s,
|
|
2707
2716
|
selectMonth: f,
|
|
2708
2717
|
selectDay: r,
|
|
2709
|
-
selectTime:
|
|
2710
|
-
keyUp:
|
|
2718
|
+
selectTime: k,
|
|
2719
|
+
keyUp: T,
|
|
2711
2720
|
viewShown: l,
|
|
2712
2721
|
goBackFromTimepicker: () => e.startingView === "time" && e.minimumView === "time" ? null : l.value = "day",
|
|
2713
2722
|
clearModelValue: m,
|
|
2714
|
-
initialView:
|
|
2715
|
-
log: (
|
|
2716
|
-
variables: (
|
|
2717
|
-
Object.entries(
|
|
2723
|
+
initialView: O,
|
|
2724
|
+
log: (V) => console.log(V),
|
|
2725
|
+
variables: (V) => Object.fromEntries(
|
|
2726
|
+
Object.entries(V ?? {}).filter(([B, P]) => B.startsWith("--"))
|
|
2718
2727
|
)
|
|
2719
2728
|
};
|
|
2720
2729
|
}
|
|
2721
2730
|
}), Cn = { class: "v3dp__input_wrapper" }, wn = ["readonly", "placeholder", "disabled", "tabindex"], $n = { class: "v3dp__clearable" };
|
|
2722
2731
|
function Bn(e, o, t, l, n, a) {
|
|
2723
|
-
const i =
|
|
2724
|
-
return v(),
|
|
2732
|
+
const i = U("year-picker"), d = U("month-picker"), u = U("day-picker"), p = U("time-picker");
|
|
2733
|
+
return v(), _("div", {
|
|
2725
2734
|
class: "v3dp__datepicker",
|
|
2726
2735
|
style: E(e.variables(e.$attrs.style))
|
|
2727
2736
|
}, [
|
|
2728
|
-
|
|
2729
|
-
|
|
2737
|
+
w("div", Cn, [
|
|
2738
|
+
ue(w("input", Ne({
|
|
2730
2739
|
type: "text",
|
|
2731
2740
|
ref: "inputRef",
|
|
2732
2741
|
readonly: !e.typeable,
|
|
2733
|
-
"onUpdate:modelValue": o[0] || (o[0] = (
|
|
2742
|
+
"onUpdate:modelValue": o[0] || (o[0] = (s) => e.input = s)
|
|
2734
2743
|
}, e.$attrs, {
|
|
2735
2744
|
placeholder: e.placeholder,
|
|
2736
2745
|
disabled: e.disabled,
|
|
2737
2746
|
tabindex: e.disabled ? -1 : 0,
|
|
2738
|
-
onKeyup: o[1] || (o[1] = (...
|
|
2739
|
-
onBlur: o[2] || (o[2] = (...
|
|
2740
|
-
onFocus: o[3] || (o[3] = (...
|
|
2741
|
-
onClick: o[4] || (o[4] = (...
|
|
2747
|
+
onKeyup: o[1] || (o[1] = (...s) => e.keyUp && e.keyUp(...s)),
|
|
2748
|
+
onBlur: o[2] || (o[2] = (...s) => e.blur && e.blur(...s)),
|
|
2749
|
+
onFocus: o[3] || (o[3] = (...s) => e.focus && e.focus(...s)),
|
|
2750
|
+
onClick: o[4] || (o[4] = (...s) => e.click && e.click(...s))
|
|
2742
2751
|
}), null, 16, wn), [
|
|
2743
2752
|
[We, e.input]
|
|
2744
2753
|
]),
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
onClick: o[5] || (o[5] = (
|
|
2754
|
+
ue(w("div", $n, [
|
|
2755
|
+
W(e.$slots, "clear", { onClear: e.clearModelValue }, () => [
|
|
2756
|
+
w("i", {
|
|
2757
|
+
onClick: o[5] || (o[5] = (s) => e.clearModelValue())
|
|
2749
2758
|
}, "x")
|
|
2750
2759
|
])
|
|
2751
2760
|
], 512), [
|
|
2752
2761
|
[Ve, e.clearable && e.modelValue]
|
|
2753
2762
|
])
|
|
2754
2763
|
]),
|
|
2755
|
-
|
|
2764
|
+
ue(G(i, {
|
|
2756
2765
|
pageDate: e.pageDate,
|
|
2757
|
-
"onUpdate:pageDate": o[6] || (o[6] = (
|
|
2766
|
+
"onUpdate:pageDate": o[6] || (o[6] = (s) => e.updatePageDate("year", s)),
|
|
2758
2767
|
selected: e.modelValue,
|
|
2759
2768
|
lowerLimit: e.lowerLimit,
|
|
2760
2769
|
upperLimit: e.upperLimit,
|
|
@@ -2762,22 +2771,22 @@ function Bn(e, o, t, l, n, a) {
|
|
|
2762
2771
|
}, null, 8, ["pageDate", "selected", "lowerLimit", "upperLimit", "onSelect"]), [
|
|
2763
2772
|
[Ve, e.viewShown === "year"]
|
|
2764
2773
|
]),
|
|
2765
|
-
|
|
2774
|
+
ue(G(d, {
|
|
2766
2775
|
pageDate: e.pageDate,
|
|
2767
|
-
"onUpdate:pageDate": o[7] || (o[7] = (
|
|
2776
|
+
"onUpdate:pageDate": o[7] || (o[7] = (s) => e.updatePageDate("month", s)),
|
|
2768
2777
|
selected: e.modelValue,
|
|
2769
2778
|
onSelect: e.selectMonth,
|
|
2770
2779
|
lowerLimit: e.lowerLimit,
|
|
2771
2780
|
upperLimit: e.upperLimit,
|
|
2772
2781
|
format: e.monthListFormat,
|
|
2773
2782
|
locale: e.locale,
|
|
2774
|
-
onBack: o[8] || (o[8] = (
|
|
2783
|
+
onBack: o[8] || (o[8] = (s) => e.viewShown = "year")
|
|
2775
2784
|
}, null, 8, ["pageDate", "selected", "onSelect", "lowerLimit", "upperLimit", "format", "locale"]), [
|
|
2776
2785
|
[Ve, e.viewShown === "month"]
|
|
2777
2786
|
]),
|
|
2778
|
-
|
|
2787
|
+
ue(G(u, {
|
|
2779
2788
|
pageDate: e.pageDate,
|
|
2780
|
-
"onUpdate:pageDate": o[9] || (o[9] = (
|
|
2789
|
+
"onUpdate:pageDate": o[9] || (o[9] = (s) => e.updatePageDate("day", s)),
|
|
2781
2790
|
selected: e.modelValue,
|
|
2782
2791
|
weekStartsOn: e.weekStartsOn,
|
|
2783
2792
|
lowerLimit: e.lowerLimit,
|
|
@@ -2789,11 +2798,11 @@ function Bn(e, o, t, l, n, a) {
|
|
|
2789
2798
|
"allow-outside-interval": e.allowOutsideInterval,
|
|
2790
2799
|
format: e.dayFormat,
|
|
2791
2800
|
onSelect: e.selectDay,
|
|
2792
|
-
onBack: o[10] || (o[10] = (
|
|
2801
|
+
onBack: o[10] || (o[10] = (s) => e.viewShown = "month")
|
|
2793
2802
|
}, null, 8, ["pageDate", "selected", "weekStartsOn", "lowerLimit", "upperLimit", "headingFormat", "disabledDates", "locale", "weekdayFormat", "allow-outside-interval", "format", "onSelect"]), [
|
|
2794
2803
|
[Ve, e.viewShown === "day"]
|
|
2795
2804
|
]),
|
|
2796
|
-
|
|
2805
|
+
ue(G(p, {
|
|
2797
2806
|
pageDate: e.pageDate,
|
|
2798
2807
|
visible: e.viewShown === "time",
|
|
2799
2808
|
selected: e.modelValue,
|
|
@@ -2808,7 +2817,7 @@ function Bn(e, o, t, l, n, a) {
|
|
|
2808
2817
|
const Tn = /* @__PURE__ */ Te(bn, [["render", Bn]]), Vn = ["id"], Dn = {
|
|
2809
2818
|
key: 0,
|
|
2810
2819
|
class: "ck-input-date__optional-label"
|
|
2811
|
-
}, Ln = /* @__PURE__ */
|
|
2820
|
+
}, Ln = /* @__PURE__ */ R({
|
|
2812
2821
|
__name: "ck-input-date",
|
|
2813
2822
|
props: {
|
|
2814
2823
|
modelValue: {},
|
|
@@ -2827,100 +2836,100 @@ const Tn = /* @__PURE__ */ Te(bn, [["render", Bn]]), Vn = ["id"], Dn = {
|
|
|
2827
2836
|
},
|
|
2828
2837
|
emits: ["update:modelValue", "change"],
|
|
2829
2838
|
setup(e, { emit: o }) {
|
|
2830
|
-
const t = e, l = o, { cleekOptions: n } = le(te()), { windowWidth: a } = he(), i =
|
|
2839
|
+
const t = e, l = o, { cleekOptions: n } = le(te()), { windowWidth: a } = he(), i = M(), d = M(Math.floor(Math.random() * 1e3)), u = M(`ck-input-date-${d.value}`), p = c({
|
|
2831
2840
|
get() {
|
|
2832
2841
|
return r(t.modelValue);
|
|
2833
2842
|
},
|
|
2834
|
-
set(
|
|
2835
|
-
l("update:modelValue",
|
|
2843
|
+
set(g) {
|
|
2844
|
+
l("update:modelValue", k(g));
|
|
2836
2845
|
}
|
|
2837
|
-
}),
|
|
2838
|
-
const
|
|
2839
|
-
return
|
|
2846
|
+
}), s = c(() => {
|
|
2847
|
+
const g = [];
|
|
2848
|
+
return g.push(L.getGroupClass(t, a.value)), t.icon && g.push("has-icon-left"), t.iconRight && g.push("has-icon-right"), document.querySelector(".ck-popup__content") && g.push("ck-picker-popup"), g;
|
|
2840
2849
|
}), f = c(() => {
|
|
2841
|
-
const
|
|
2842
|
-
let
|
|
2843
|
-
return n.value.darkMode && (
|
|
2850
|
+
const g = [];
|
|
2851
|
+
let T = "";
|
|
2852
|
+
return n.value.darkMode && (T = n.value.darkModeColorItems), T && !L.isColorTemplateVariable(T) && g.push({ backgroundColor: T }), g;
|
|
2844
2853
|
});
|
|
2845
|
-
|
|
2846
|
-
i.value && (i.value.style.display = "block", i.value.focus(), i.value.style.display = "none"), l("change",
|
|
2854
|
+
ce(() => t.modelValue, (g) => {
|
|
2855
|
+
i.value && (i.value.style.display = "block", i.value.focus(), i.value.style.display = "none"), l("change", g);
|
|
2847
2856
|
});
|
|
2848
|
-
function r(
|
|
2849
|
-
if (!
|
|
2857
|
+
function r(g) {
|
|
2858
|
+
if (!g)
|
|
2850
2859
|
return null;
|
|
2851
|
-
const
|
|
2852
|
-
return /* @__PURE__ */ new Date(`${
|
|
2860
|
+
const T = `${g}`.slice(0, 10);
|
|
2861
|
+
return /* @__PURE__ */ new Date(`${T}T00:00:00`);
|
|
2853
2862
|
}
|
|
2854
|
-
function
|
|
2855
|
-
if (!
|
|
2863
|
+
function k(g) {
|
|
2864
|
+
if (!g)
|
|
2856
2865
|
return null;
|
|
2857
|
-
const
|
|
2858
|
-
return `${
|
|
2866
|
+
const T = g.getFullYear(), O = ze.padZeros(g.getMonth() + 1, 2), V = ze.padZeros(g.getDate(), 2);
|
|
2867
|
+
return `${T}-${O}-${V}`;
|
|
2859
2868
|
}
|
|
2860
2869
|
function m() {
|
|
2861
|
-
const
|
|
2862
|
-
let
|
|
2863
|
-
const
|
|
2864
|
-
|
|
2865
|
-
const
|
|
2866
|
-
|
|
2870
|
+
const g = document.getElementById(`${u.value}`), T = g == null ? void 0 : g.querySelector(".v3dp__popout-day");
|
|
2871
|
+
let O = { y: 0 };
|
|
2872
|
+
const V = document.querySelector(".ck-popup__slot-body");
|
|
2873
|
+
V instanceof HTMLElement && (V.style.overflow = "hidden"), g && (O = g.getBoundingClientRect());
|
|
2874
|
+
const B = window.innerHeight - O.y;
|
|
2875
|
+
g && T && (B - 300 < 0 ? T.setAttribute("style", "bottom: 0px") : T.setAttribute("style", `top: ${O.y + 60}px;`), g.setAttribute("style", "overflow: hidden;"));
|
|
2867
2876
|
}
|
|
2868
|
-
function
|
|
2869
|
-
const
|
|
2870
|
-
|
|
2877
|
+
function h() {
|
|
2878
|
+
const g = document.querySelector(".ck-popup__slot-body");
|
|
2879
|
+
g instanceof HTMLElement && (g.style.overflow = "auto");
|
|
2871
2880
|
}
|
|
2872
|
-
function
|
|
2881
|
+
function y() {
|
|
2873
2882
|
t.clearable && (p.value = r(t.clearValue));
|
|
2874
2883
|
}
|
|
2875
|
-
return (
|
|
2876
|
-
const
|
|
2877
|
-
return v(), S(
|
|
2878
|
-
default:
|
|
2879
|
-
var
|
|
2884
|
+
return (g, T) => {
|
|
2885
|
+
const O = U("ck-label"), V = U("ck-icon"), B = U("ck-div");
|
|
2886
|
+
return v(), S(B, { widthBreaks: g.widthBreaks }, {
|
|
2887
|
+
default: H(() => {
|
|
2888
|
+
var P;
|
|
2880
2889
|
return [
|
|
2881
|
-
|
|
2882
|
-
class:
|
|
2883
|
-
id:
|
|
2890
|
+
w("div", {
|
|
2891
|
+
class: x(["ck-input-date", s.value]),
|
|
2892
|
+
id: u.value
|
|
2884
2893
|
}, [
|
|
2885
|
-
|
|
2894
|
+
w("input", {
|
|
2886
2895
|
ref_key: "refInput",
|
|
2887
2896
|
ref: i,
|
|
2888
2897
|
class: "ck-input-date--focus-absorber"
|
|
2889
2898
|
}, null, 512),
|
|
2890
|
-
|
|
2891
|
-
default:
|
|
2892
|
-
|
|
2893
|
-
|
|
2899
|
+
G(O, null, {
|
|
2900
|
+
default: H(() => [
|
|
2901
|
+
Z(I(g.label) + " ", 1),
|
|
2902
|
+
g.optional ? (v(), _("span", Dn, "opcional")) : C("", !0)
|
|
2894
2903
|
]),
|
|
2895
2904
|
_: 1
|
|
2896
2905
|
}),
|
|
2897
|
-
|
|
2898
|
-
class:
|
|
2906
|
+
w("div", {
|
|
2907
|
+
class: x(["ck-picker-container", ((P = $e(n)) == null ? void 0 : P.darkMode) && "picker-dark"])
|
|
2899
2908
|
}, [
|
|
2900
|
-
|
|
2909
|
+
g.icon ? (v(), S(V, {
|
|
2901
2910
|
key: 0,
|
|
2902
2911
|
class: "ck-input__icon-left",
|
|
2903
|
-
color:
|
|
2904
|
-
icon:
|
|
2905
|
-
"icon-pack":
|
|
2906
|
-
}, null, 8, ["color", "icon", "icon-pack"])) :
|
|
2907
|
-
|
|
2912
|
+
color: g.iconColor ? g.iconColor : "lightgrey",
|
|
2913
|
+
icon: g.icon,
|
|
2914
|
+
"icon-pack": g.iconPack
|
|
2915
|
+
}, null, 8, ["color", "icon", "icon-pack"])) : C("", !0),
|
|
2916
|
+
G($e(Tn), {
|
|
2908
2917
|
modelValue: p.value,
|
|
2909
|
-
"onUpdate:modelValue":
|
|
2918
|
+
"onUpdate:modelValue": T[0] || (T[0] = (F) => p.value = F),
|
|
2910
2919
|
onOpened: m,
|
|
2911
|
-
onClosed:
|
|
2920
|
+
onClosed: h,
|
|
2912
2921
|
inputFormat: "dd-MM-yyyy",
|
|
2913
2922
|
style: E(f.value),
|
|
2914
|
-
disabled:
|
|
2923
|
+
disabled: g.disabled
|
|
2915
2924
|
}, null, 8, ["modelValue", "style", "disabled"]),
|
|
2916
|
-
|
|
2925
|
+
g.clearable && g.modelValue != g.clearValue || g.iconRight ? (v(), S(V, {
|
|
2917
2926
|
key: 1,
|
|
2918
|
-
class:
|
|
2919
|
-
color:
|
|
2920
|
-
icon:
|
|
2921
|
-
"icon-pack":
|
|
2922
|
-
onClick:
|
|
2923
|
-
}, null, 8, ["class", "color", "icon", "icon-pack"])) :
|
|
2927
|
+
class: x(["ck-input__icon-right", { "icon-right__clearable": g.clearable }]),
|
|
2928
|
+
color: g.clearable ? "grey" : g.iconColor ? g.iconColor : "lightgrey",
|
|
2929
|
+
icon: g.clearable ? "xmark" : g.iconRight,
|
|
2930
|
+
"icon-pack": g.clearable ? "font-awesome" : g.iconPack,
|
|
2931
|
+
onClick: T[1] || (T[1] = (F) => y())
|
|
2932
|
+
}, null, 8, ["class", "color", "icon", "icon-pack"])) : C("", !0)
|
|
2924
2933
|
], 2)
|
|
2925
2934
|
], 10, Vn)
|
|
2926
2935
|
];
|
|
@@ -2930,7 +2939,7 @@ const Tn = /* @__PURE__ */ Te(bn, [["render", Bn]]), Vn = ["id"], Dn = {
|
|
|
2930
2939
|
};
|
|
2931
2940
|
}
|
|
2932
2941
|
});
|
|
2933
|
-
const Sn = /* @__PURE__ */
|
|
2942
|
+
const Sn = /* @__PURE__ */ j(Ln, [["__scopeId", "data-v-ec17b553"]]), Pn = /* @__PURE__ */ R({
|
|
2934
2943
|
__name: "ck-input-time",
|
|
2935
2944
|
props: {
|
|
2936
2945
|
modelValue: {},
|
|
@@ -2951,30 +2960,30 @@ const Sn = /* @__PURE__ */ H(Ln, [["__scopeId", "data-v-ec17b553"]]), Pn = /* @_
|
|
|
2951
2960
|
}
|
|
2952
2961
|
});
|
|
2953
2962
|
return (a, i) => {
|
|
2954
|
-
const d =
|
|
2963
|
+
const d = U("ck-input");
|
|
2955
2964
|
return v(), S(d, {
|
|
2956
2965
|
modelValue: n.value,
|
|
2957
|
-
"onUpdate:modelValue": i[0] || (i[0] = (
|
|
2966
|
+
"onUpdate:modelValue": i[0] || (i[0] = (u) => n.value = u),
|
|
2958
2967
|
type: "time",
|
|
2959
2968
|
label: a.label,
|
|
2960
2969
|
group: a.group,
|
|
2961
2970
|
widthBreaks: a.widthBreaks,
|
|
2962
2971
|
disabled: a.disabled,
|
|
2963
|
-
onChange: i[1] || (i[1] = (
|
|
2972
|
+
onChange: i[1] || (i[1] = (u) => l("change", n.value))
|
|
2964
2973
|
}, null, 8, ["modelValue", "label", "group", "widthBreaks", "disabled"]);
|
|
2965
2974
|
};
|
|
2966
2975
|
}
|
|
2967
2976
|
}), Mn = {
|
|
2968
2977
|
key: 0,
|
|
2969
2978
|
class: "ck-tab"
|
|
2970
|
-
},
|
|
2979
|
+
}, xn = /* @__PURE__ */ R({
|
|
2971
2980
|
__name: "ck-tab",
|
|
2972
2981
|
props: {
|
|
2973
2982
|
title: {},
|
|
2974
2983
|
icon: {}
|
|
2975
2984
|
},
|
|
2976
2985
|
setup(e) {
|
|
2977
|
-
const o = e, t = Nt("addTab"), l =
|
|
2986
|
+
const o = e, t = Nt("addTab"), l = M(!1);
|
|
2978
2987
|
function n(a) {
|
|
2979
2988
|
l.value = a;
|
|
2980
2989
|
}
|
|
@@ -2984,101 +2993,104 @@ const Sn = /* @__PURE__ */ H(Ln, [["__scopeId", "data-v-ec17b553"]]), Pn = /* @_
|
|
|
2984
2993
|
icon: o.icon,
|
|
2985
2994
|
title: o.title
|
|
2986
2995
|
});
|
|
2987
|
-
}), (a, i) => l.value ? (v(),
|
|
2988
|
-
|
|
2989
|
-
])) :
|
|
2996
|
+
}), (a, i) => l.value ? (v(), _("div", Mn, [
|
|
2997
|
+
W(a.$slots, "default", {}, void 0, !0)
|
|
2998
|
+
])) : C("", !0);
|
|
2990
2999
|
}
|
|
2991
3000
|
});
|
|
2992
|
-
const
|
|
3001
|
+
const In = /* @__PURE__ */ j(xn, [["__scopeId", "data-v-eaadcaf7"]]), An = { class: "ck-tabs" }, zn = ["onClick"], Rn = { class: "ck-tabs__tab-content" }, On = "flat", Wn = /* @__PURE__ */ R({
|
|
2993
3002
|
__name: "ck-tabs",
|
|
2994
3003
|
props: {
|
|
2995
3004
|
type: {}
|
|
2996
3005
|
},
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3006
|
+
emits: ["tabSelected"],
|
|
3007
|
+
setup(e, { expose: o, emit: t }) {
|
|
3008
|
+
const l = M(null), n = M(!1), a = M(!1), i = e, d = t, u = M([]), p = M(null), s = c(() => i.type ? i.type : On), f = c(() => {
|
|
3009
|
+
const y = [];
|
|
3010
|
+
return s.value && y.push(`ck-tabs__header--button-${s.value}`), y;
|
|
3001
3011
|
});
|
|
3002
|
-
function
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
}),
|
|
3012
|
+
function r(y) {
|
|
3013
|
+
u.value.forEach((g, T) => {
|
|
3014
|
+
g.selectTab(T === y);
|
|
3015
|
+
}), p.value = y, d("tabSelected", y);
|
|
3006
3016
|
}
|
|
3007
|
-
function
|
|
3008
|
-
if (!
|
|
3017
|
+
function k() {
|
|
3018
|
+
if (!l.value)
|
|
3009
3019
|
return;
|
|
3010
|
-
const { scrollLeft:
|
|
3011
|
-
|
|
3020
|
+
const { scrollLeft: y, scrollWidth: g, clientWidth: T } = l.value;
|
|
3021
|
+
n.value = y > 0, a.value = y + T < g - 3;
|
|
3012
3022
|
}
|
|
3013
|
-
function
|
|
3014
|
-
|
|
3023
|
+
function m() {
|
|
3024
|
+
l.value && l.value.scrollBy({ left: -200, behavior: "smooth" });
|
|
3015
3025
|
}
|
|
3016
|
-
function
|
|
3017
|
-
|
|
3026
|
+
function h() {
|
|
3027
|
+
l.value && l.value.scrollBy({ left: 200, behavior: "smooth" });
|
|
3018
3028
|
}
|
|
3019
|
-
return Et("addTab", (
|
|
3020
|
-
|
|
3029
|
+
return Et("addTab", (y) => {
|
|
3030
|
+
u.value.push(y);
|
|
3021
3031
|
}), be(() => {
|
|
3022
|
-
var
|
|
3023
|
-
|
|
3024
|
-
const
|
|
3025
|
-
|
|
3026
|
-
}),
|
|
3027
|
-
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
|
|
3032
|
+
var g;
|
|
3033
|
+
k(), (g = l.value) == null || g.addEventListener("scroll", k);
|
|
3034
|
+
const y = u.value.find((T) => T.active) || u.value[0];
|
|
3035
|
+
y && r(u.value.indexOf(y));
|
|
3036
|
+
}), o({
|
|
3037
|
+
selectTab: r
|
|
3038
|
+
}), Ft(k), (y, g) => {
|
|
3039
|
+
const T = U("ck-icon"), O = U("ck-circle");
|
|
3040
|
+
return v(), _("div", An, [
|
|
3041
|
+
w("div", {
|
|
3042
|
+
class: x(["ck-tabs__header", { "has-left-arrow": n.value, "has-right-arrow": a.value }])
|
|
3031
3043
|
}, [
|
|
3032
|
-
|
|
3044
|
+
n.value ? (v(), S(O, {
|
|
3033
3045
|
key: 0,
|
|
3034
3046
|
class: "header--scroll-btn",
|
|
3035
3047
|
color: "primary",
|
|
3036
3048
|
size: "xs",
|
|
3037
|
-
onClick:
|
|
3049
|
+
onClick: g[0] || (g[0] = (V) => m())
|
|
3038
3050
|
}, {
|
|
3039
|
-
default:
|
|
3040
|
-
|
|
3051
|
+
default: H(() => [
|
|
3052
|
+
G(T, { icon: "chevron-left" })
|
|
3041
3053
|
]),
|
|
3042
3054
|
_: 1
|
|
3043
|
-
})) :
|
|
3044
|
-
|
|
3055
|
+
})) : C("", !0),
|
|
3056
|
+
w("div", {
|
|
3045
3057
|
ref_key: "tabsContainer",
|
|
3046
|
-
ref:
|
|
3047
|
-
class:
|
|
3058
|
+
ref: l,
|
|
3059
|
+
class: x(["ck-tabs__header-content", { "header-content--flat": s.value === "flat" }])
|
|
3048
3060
|
}, [
|
|
3049
|
-
(v(!0),
|
|
3050
|
-
key:
|
|
3051
|
-
class:
|
|
3052
|
-
onClick: (
|
|
3061
|
+
(v(!0), _(Y, null, de(u.value, (V, B) => (v(), _("div", {
|
|
3062
|
+
key: B,
|
|
3063
|
+
class: x([f.value, { "is-selected": p.value === B }]),
|
|
3064
|
+
onClick: (P) => r(B)
|
|
3053
3065
|
}, [
|
|
3054
|
-
|
|
3066
|
+
V.icon ? (v(), S(T, {
|
|
3055
3067
|
key: 0,
|
|
3056
|
-
icon:
|
|
3057
|
-
}, null, 8, ["icon"])) :
|
|
3058
|
-
|
|
3068
|
+
icon: V.icon
|
|
3069
|
+
}, null, 8, ["icon"])) : C("", !0),
|
|
3070
|
+
Z(" " + I(V.title), 1)
|
|
3059
3071
|
], 10, zn))), 128))
|
|
3060
3072
|
], 2),
|
|
3061
|
-
|
|
3073
|
+
a.value ? (v(), S(O, {
|
|
3062
3074
|
key: 1,
|
|
3063
3075
|
class: "header--scroll-btn",
|
|
3064
3076
|
color: "primary",
|
|
3065
3077
|
size: "xs",
|
|
3066
|
-
onClick:
|
|
3078
|
+
onClick: g[1] || (g[1] = (V) => h())
|
|
3067
3079
|
}, {
|
|
3068
|
-
default:
|
|
3069
|
-
|
|
3080
|
+
default: H(() => [
|
|
3081
|
+
G(T, { icon: "chevron-right" })
|
|
3070
3082
|
]),
|
|
3071
3083
|
_: 1
|
|
3072
|
-
})) :
|
|
3084
|
+
})) : C("", !0)
|
|
3073
3085
|
], 2),
|
|
3074
|
-
|
|
3075
|
-
|
|
3086
|
+
w("div", Rn, [
|
|
3087
|
+
W(y.$slots, "default", {}, void 0, !0)
|
|
3076
3088
|
])
|
|
3077
3089
|
]);
|
|
3078
3090
|
};
|
|
3079
3091
|
}
|
|
3080
3092
|
});
|
|
3081
|
-
const Nn = /* @__PURE__ */
|
|
3093
|
+
const Nn = /* @__PURE__ */ j(Wn, [["__scopeId", "data-v-1d834ae1"]]), En = "rounded", Fn = /* @__PURE__ */ R({
|
|
3082
3094
|
__name: "ck-toggle",
|
|
3083
3095
|
props: {
|
|
3084
3096
|
modelValue: { type: Boolean },
|
|
@@ -3101,79 +3113,90 @@ const Nn = /* @__PURE__ */ H(Wn, [["__scopeId", "data-v-41395121"]]), En = "roun
|
|
|
3101
3113
|
t.preventAutoUpdate || a("update:modelValue", d);
|
|
3102
3114
|
}
|
|
3103
3115
|
});
|
|
3104
|
-
return (d,
|
|
3105
|
-
const p =
|
|
3106
|
-
return v(),
|
|
3107
|
-
class:
|
|
3108
|
-
onClick:
|
|
3116
|
+
return (d, u) => {
|
|
3117
|
+
const p = U("ck-icon");
|
|
3118
|
+
return v(), _("div", {
|
|
3119
|
+
class: x(["ck-toggle", [n.value, { "is-active": i.value }]]),
|
|
3120
|
+
onClick: u[0] || (u[0] = (s) => i.value = !i.value)
|
|
3109
3121
|
}, [
|
|
3110
3122
|
d.icon ? (v(), S(p, {
|
|
3111
3123
|
key: 0,
|
|
3112
3124
|
icon: d.icon
|
|
3113
|
-
}, null, 8, ["icon"])) :
|
|
3114
|
-
|
|
3125
|
+
}, null, 8, ["icon"])) : C("", !0),
|
|
3126
|
+
W(d.$slots, "default", {}, void 0, !0),
|
|
3115
3127
|
d.iconRight ? (v(), S(p, {
|
|
3116
3128
|
key: 1,
|
|
3117
3129
|
icon: d.iconRight
|
|
3118
|
-
}, null, 8, ["icon"])) :
|
|
3130
|
+
}, null, 8, ["icon"])) : C("", !0)
|
|
3119
3131
|
], 2);
|
|
3120
3132
|
};
|
|
3121
3133
|
}
|
|
3122
3134
|
});
|
|
3123
|
-
const qn = /* @__PURE__ */
|
|
3135
|
+
const qn = /* @__PURE__ */ j(Fn, [["__scopeId", "data-v-e3c474ff"]]), Hn = { class: "ck-toggle-group" }, jn = /* @__PURE__ */ R({
|
|
3124
3136
|
__name: "ck-toggle-group",
|
|
3125
3137
|
props: /* @__PURE__ */ ee({
|
|
3126
3138
|
options: {},
|
|
3127
3139
|
layout: {},
|
|
3128
3140
|
label: {},
|
|
3129
3141
|
labelAlign: {},
|
|
3130
|
-
gap: {}
|
|
3142
|
+
gap: {},
|
|
3143
|
+
multipleSelection: { type: Boolean }
|
|
3131
3144
|
}, {
|
|
3132
3145
|
modelValue: { required: !0 },
|
|
3133
3146
|
modelModifiers: {}
|
|
3134
3147
|
}),
|
|
3135
3148
|
emits: /* @__PURE__ */ ee(["change"], ["update:modelValue"]),
|
|
3136
3149
|
setup(e, { emit: o }) {
|
|
3137
|
-
const t = ge(e, "modelValue"), l = o;
|
|
3138
|
-
function
|
|
3150
|
+
const t = ge(e, "modelValue"), l = e, n = o;
|
|
3151
|
+
function a(s) {
|
|
3139
3152
|
return s.name;
|
|
3140
3153
|
}
|
|
3141
|
-
function
|
|
3154
|
+
function i(s) {
|
|
3142
3155
|
return s.id;
|
|
3143
3156
|
}
|
|
3144
|
-
function
|
|
3157
|
+
function d(s) {
|
|
3145
3158
|
if (s.icon)
|
|
3146
3159
|
return s.icon;
|
|
3147
3160
|
}
|
|
3148
|
-
function
|
|
3149
|
-
|
|
3161
|
+
function u(s) {
|
|
3162
|
+
const f = i(s);
|
|
3163
|
+
return l.multipleSelection ? Array.isArray(t.value) && t.value.includes(f) : t.value === f;
|
|
3150
3164
|
}
|
|
3151
|
-
|
|
3152
|
-
const
|
|
3153
|
-
|
|
3154
|
-
|
|
3165
|
+
function p(s) {
|
|
3166
|
+
const f = i(s);
|
|
3167
|
+
if (l.multipleSelection) {
|
|
3168
|
+
const r = Array.isArray(t.value) ? [...t.value] : [], k = r.indexOf(f);
|
|
3169
|
+
k !== -1 ? r.splice(k, 1) : r.push(f), t.value = r;
|
|
3170
|
+
} else
|
|
3171
|
+
t.value = f;
|
|
3172
|
+
n("change");
|
|
3173
|
+
}
|
|
3174
|
+
return (s, f) => {
|
|
3175
|
+
const r = U("ck-label"), k = U("ck-toggle");
|
|
3176
|
+
return v(), _("div", Hn, [
|
|
3177
|
+
s.label ? (v(), S(r, {
|
|
3155
3178
|
key: 0,
|
|
3156
3179
|
align: s.labelAlign
|
|
3157
3180
|
}, {
|
|
3158
|
-
default:
|
|
3159
|
-
|
|
3181
|
+
default: H(() => [
|
|
3182
|
+
Z(I(s.label), 1)
|
|
3160
3183
|
]),
|
|
3161
3184
|
_: 1
|
|
3162
|
-
}, 8, ["align"])) :
|
|
3163
|
-
|
|
3185
|
+
}, 8, ["align"])) : C("", !0),
|
|
3186
|
+
w("div", {
|
|
3164
3187
|
class: "ck-toggle-group__options",
|
|
3165
3188
|
style: E({ gap: s.gap })
|
|
3166
3189
|
}, [
|
|
3167
|
-
(v(!0),
|
|
3168
|
-
modelValue:
|
|
3169
|
-
key:
|
|
3170
|
-
icon:
|
|
3190
|
+
(v(!0), _(Y, null, de(s.options, (m) => (v(), S(k, {
|
|
3191
|
+
modelValue: u(m),
|
|
3192
|
+
key: i(m),
|
|
3193
|
+
icon: d(m),
|
|
3171
3194
|
layout: s.layout,
|
|
3172
3195
|
preventAutoUpdate: "",
|
|
3173
|
-
onClick: (h) =>
|
|
3196
|
+
onClick: (h) => p(m)
|
|
3174
3197
|
}, {
|
|
3175
|
-
default:
|
|
3176
|
-
|
|
3198
|
+
default: H(() => [
|
|
3199
|
+
Z(I(a(m)), 1)
|
|
3177
3200
|
]),
|
|
3178
3201
|
_: 2
|
|
3179
3202
|
}, 1032, ["modelValue", "icon", "layout", "onClick"]))), 128))
|
|
@@ -3182,13 +3205,13 @@ const qn = /* @__PURE__ */ H(Fn, [["__scopeId", "data-v-e3c474ff"]]), Hn = { cla
|
|
|
3182
3205
|
};
|
|
3183
3206
|
}
|
|
3184
3207
|
});
|
|
3185
|
-
const Un = /* @__PURE__ */
|
|
3208
|
+
const Un = /* @__PURE__ */ j(jn, [["__scopeId", "data-v-5779c8e1"]]), Gn = {
|
|
3186
3209
|
key: 0,
|
|
3187
3210
|
class: "ck-card__header-title"
|
|
3188
3211
|
}, Zn = { class: "ck-card__body" }, Yn = {
|
|
3189
3212
|
key: 0,
|
|
3190
3213
|
class: "ck-card__header-subtitle"
|
|
3191
|
-
}, Kn = /* @__PURE__ */
|
|
3214
|
+
}, Kn = /* @__PURE__ */ R({
|
|
3192
3215
|
__name: "ck-card",
|
|
3193
3216
|
props: {
|
|
3194
3217
|
modelValue: {},
|
|
@@ -3204,46 +3227,46 @@ const Un = /* @__PURE__ */ H(jn, [["__scopeId", "data-v-d8e2991f"]]), Gn = {
|
|
|
3204
3227
|
get() {
|
|
3205
3228
|
return !a.value || t.modelValue === null ? !0 : !!t.modelValue;
|
|
3206
3229
|
},
|
|
3207
|
-
set(
|
|
3208
|
-
l("update:modelValue",
|
|
3230
|
+
set(u) {
|
|
3231
|
+
l("update:modelValue", u), u || l("closeCard");
|
|
3209
3232
|
}
|
|
3210
3233
|
}), d = c(() => {
|
|
3211
|
-
const
|
|
3212
|
-
return p &&
|
|
3234
|
+
const u = [], p = t.layout || n.value.styles.layout;
|
|
3235
|
+
return p && u.push(`layout--${p}`), t.clickable && u.push("clickable"), u;
|
|
3213
3236
|
});
|
|
3214
|
-
return (
|
|
3215
|
-
const
|
|
3216
|
-
return i.value ? (v(),
|
|
3237
|
+
return (u, p) => {
|
|
3238
|
+
const s = U("ck-icon");
|
|
3239
|
+
return i.value ? (v(), _("div", {
|
|
3217
3240
|
key: 0,
|
|
3218
|
-
class:
|
|
3241
|
+
class: x(["ck-card", d.value])
|
|
3219
3242
|
}, [
|
|
3220
|
-
|
|
3243
|
+
u.title || u.$slots.header || a.value ? (v(), _("div", {
|
|
3221
3244
|
key: 0,
|
|
3222
|
-
class:
|
|
3245
|
+
class: x(["ck-card__header", { "is-close-button-visible": a.value }])
|
|
3223
3246
|
}, [
|
|
3224
|
-
|
|
3225
|
-
|
|
3226
|
-
a.value ? (v(),
|
|
3247
|
+
u.title || u.$slots.header ? (v(), _("div", Gn, I(u.title), 1)) : C("", !0),
|
|
3248
|
+
W(u.$slots, "header", {}, void 0, !0),
|
|
3249
|
+
a.value ? (v(), _("div", {
|
|
3227
3250
|
key: 1,
|
|
3228
3251
|
class: "ck-card__close-btn",
|
|
3229
3252
|
onClick: p[0] || (p[0] = (f) => i.value = !1)
|
|
3230
3253
|
}, [
|
|
3231
|
-
|
|
3232
|
-
])) :
|
|
3233
|
-
], 2)) :
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
class:
|
|
3254
|
+
G(s, { icon: "times" })
|
|
3255
|
+
])) : C("", !0)
|
|
3256
|
+
], 2)) : C("", !0),
|
|
3257
|
+
w("div", Zn, [
|
|
3258
|
+
u.subtitle ? (v(), _("div", Yn, I(u.subtitle), 1)) : C("", !0),
|
|
3259
|
+
w("div", {
|
|
3260
|
+
class: x(["ck-card__content", { "content-block": u.block }])
|
|
3238
3261
|
}, [
|
|
3239
|
-
|
|
3262
|
+
W(u.$slots, "default", {}, void 0, !0)
|
|
3240
3263
|
], 2)
|
|
3241
3264
|
])
|
|
3242
|
-
], 2)) :
|
|
3265
|
+
], 2)) : C("", !0);
|
|
3243
3266
|
};
|
|
3244
3267
|
}
|
|
3245
3268
|
});
|
|
3246
|
-
const Jn = /* @__PURE__ */
|
|
3269
|
+
const Jn = /* @__PURE__ */ j(Kn, [["__scopeId", "data-v-780265b9"]]), Qn = ["color"], Xn = "white", ea = "primary", ta = "s", oa = "outlined", la = "rounded", na = /* @__PURE__ */ R({
|
|
3247
3270
|
__name: "ck-chip",
|
|
3248
3271
|
props: {
|
|
3249
3272
|
size: {},
|
|
@@ -3261,47 +3284,47 @@ const Jn = /* @__PURE__ */ H(Kn, [["__scopeId", "data-v-780265b9"]]), Qn = ["col
|
|
|
3261
3284
|
},
|
|
3262
3285
|
emits: ["click"],
|
|
3263
3286
|
setup(e, { emit: o }) {
|
|
3264
|
-
const t = e, { windowWidth: l } = he(), { cleekOptions: n } = le(te()), a = o, i = c(() => t.layout ? t.layout : n.value ? n.value.chip.layout : la), d = c(() => t.type ? t.type : n.value ? n.value.chip.type : oa),
|
|
3287
|
+
const t = e, { windowWidth: l } = he(), { cleekOptions: n } = le(te()), a = o, i = c(() => t.layout ? t.layout : n.value ? n.value.chip.layout : la), d = c(() => t.type ? t.type : n.value ? n.value.chip.type : oa), u = c(() => t.color || ea), p = c(() => {
|
|
3265
3288
|
const r = [];
|
|
3266
|
-
return d.value === "outlined" ? r.push("type--outlined") : L.isColorTemplateVariable(
|
|
3289
|
+
return d.value === "outlined" ? r.push("type--outlined") : L.isColorTemplateVariable(u.value) && r.push(`ck-component__bg-color--${u.value}`), i.value && r.push(`layout--${i.value}`), r.push(L.getGroupClass(t, l.value)), r.push(`size-${t.size || ta}`), t.align && r.push(`align--${t.align}`), t.nowrap && r.push(`ck-chip--${t.nowrap}`), t.clickable && r.push("clickable"), r;
|
|
3267
3290
|
});
|
|
3268
|
-
function
|
|
3291
|
+
function s(r) {
|
|
3269
3292
|
return L.isColorTemplateVariable(r) ? L.getColorHexFromTemplateVariable(r, n.value.colors) : r;
|
|
3270
3293
|
}
|
|
3271
3294
|
const f = c(() => {
|
|
3272
3295
|
const r = [];
|
|
3273
3296
|
if (d.value === "outlined") {
|
|
3274
|
-
const
|
|
3275
|
-
r.push({ "--chip-bg":
|
|
3297
|
+
const k = s(u.value), m = s(t.textColor || u.value);
|
|
3298
|
+
r.push({ "--chip-bg": k }), r.push({ borderColor: k }), r.push({ color: m });
|
|
3276
3299
|
} else
|
|
3277
|
-
L.isColorTemplateVariable(
|
|
3300
|
+
L.isColorTemplateVariable(u.value) || (r.push({ backgroundColor: u.value }), r.push({ color: t.textColor || Xn }));
|
|
3278
3301
|
return r;
|
|
3279
3302
|
});
|
|
3280
|
-
return (r,
|
|
3281
|
-
class:
|
|
3303
|
+
return (r, k) => (v(), _("div", {
|
|
3304
|
+
class: x(["ck-chip", p.value]),
|
|
3282
3305
|
color: r.color,
|
|
3283
3306
|
style: E(f.value),
|
|
3284
|
-
onClick:
|
|
3307
|
+
onClick: k[0] || (k[0] = (m) => a("click", m))
|
|
3285
3308
|
}, [
|
|
3286
|
-
r.icon ? (v(), S(
|
|
3309
|
+
r.icon ? (v(), S(ie, {
|
|
3287
3310
|
key: 0,
|
|
3288
3311
|
class: "pr-2",
|
|
3289
3312
|
icon: r.icon,
|
|
3290
3313
|
"icon-pack": r.iconPack
|
|
3291
|
-
}, null, 8, ["icon", "icon-pack"])) :
|
|
3292
|
-
|
|
3293
|
-
|
|
3314
|
+
}, null, 8, ["icon", "icon-pack"])) : C("", !0),
|
|
3315
|
+
w("span", null, [
|
|
3316
|
+
W(r.$slots, "default", {}, void 0, !0)
|
|
3294
3317
|
]),
|
|
3295
|
-
r.iconRight ? (v(), S(
|
|
3318
|
+
r.iconRight ? (v(), S(ie, {
|
|
3296
3319
|
key: 1,
|
|
3297
3320
|
class: "pl-2",
|
|
3298
3321
|
icon: r.iconRight,
|
|
3299
3322
|
"icon-pack": r.iconPack
|
|
3300
|
-
}, null, 8, ["icon", "icon-pack"])) :
|
|
3323
|
+
}, null, 8, ["icon", "icon-pack"])) : C("", !0)
|
|
3301
3324
|
], 14, Qn));
|
|
3302
3325
|
}
|
|
3303
3326
|
});
|
|
3304
|
-
const aa = /* @__PURE__ */
|
|
3327
|
+
const aa = /* @__PURE__ */ j(na, [["__scopeId", "data-v-110cf468"]]), ia = "primary", sa = "m", ra = "white", ua = /* @__PURE__ */ R({
|
|
3305
3328
|
__name: "ck-circle",
|
|
3306
3329
|
props: {
|
|
3307
3330
|
size: {},
|
|
@@ -3322,23 +3345,23 @@ const aa = /* @__PURE__ */ H(na, [["__scopeId", "data-v-110cf468"]]), ia = "prim
|
|
|
3322
3345
|
return t.sizeInPx && (i.push({ height: t.sizeInPx }), i.push({ width: t.sizeInPx })), (t.color || L.isColorTemplateVariable(t.color)) && (i.push({ backgroundColor: t.color }), i.push({ color: t.textColor || ra })), i;
|
|
3323
3346
|
});
|
|
3324
3347
|
return (i, d) => {
|
|
3325
|
-
const
|
|
3326
|
-
return v(),
|
|
3327
|
-
class:
|
|
3348
|
+
const u = U("ck-icon");
|
|
3349
|
+
return v(), _("div", {
|
|
3350
|
+
class: x(["ck-circle", n.value]),
|
|
3328
3351
|
style: E(a.value),
|
|
3329
3352
|
onClick: d[0] || (d[0] = (p) => l("click", p))
|
|
3330
3353
|
}, [
|
|
3331
|
-
i.icon ? (v(), S(
|
|
3354
|
+
i.icon ? (v(), S(u, {
|
|
3332
3355
|
key: 0,
|
|
3333
3356
|
icon: i.icon,
|
|
3334
3357
|
iconPack: i.iconPack
|
|
3335
|
-
}, null, 8, ["icon", "iconPack"])) :
|
|
3336
|
-
|
|
3358
|
+
}, null, 8, ["icon", "iconPack"])) : C("", !0),
|
|
3359
|
+
W(i.$slots, "default", {}, void 0, !0)
|
|
3337
3360
|
], 6);
|
|
3338
3361
|
};
|
|
3339
3362
|
}
|
|
3340
3363
|
});
|
|
3341
|
-
const ca = /* @__PURE__ */
|
|
3364
|
+
const ca = /* @__PURE__ */ j(ua, [["__scopeId", "data-v-ba0b3fb6"]]), da = /* @__PURE__ */ R({
|
|
3342
3365
|
__name: "ck-div",
|
|
3343
3366
|
props: {
|
|
3344
3367
|
widthBreaks: {},
|
|
@@ -3353,15 +3376,15 @@ const ca = /* @__PURE__ */ H(ua, [["__scopeId", "data-v-ba0b3fb6"]]), da = /* @_
|
|
|
3353
3376
|
const p = L.getWidthByWidthBreaks(t.widthBreaks, a.value);
|
|
3354
3377
|
p && d.push({ width: p });
|
|
3355
3378
|
}
|
|
3356
|
-
const
|
|
3357
|
-
return
|
|
3379
|
+
const u = t.gap || n.value.div.gap;
|
|
3380
|
+
return u && d.push({ gap: u }), t.block && d.push({ display: "block" }), d;
|
|
3358
3381
|
});
|
|
3359
|
-
return (d,
|
|
3382
|
+
return (d, u) => (v(), _("div", {
|
|
3360
3383
|
class: "ck-div",
|
|
3361
3384
|
style: E(i.value),
|
|
3362
|
-
onClick:
|
|
3385
|
+
onClick: u[0] || (u[0] = (p) => l("click", p))
|
|
3363
3386
|
}, [
|
|
3364
|
-
|
|
3387
|
+
W(d.$slots, "default")
|
|
3365
3388
|
], 4));
|
|
3366
3389
|
}
|
|
3367
3390
|
});
|
|
@@ -3369,7 +3392,7 @@ const pa = {
|
|
|
3369
3392
|
defaultFailImg: "df",
|
|
3370
3393
|
imagesFolderPath: "",
|
|
3371
3394
|
defaultImgBorderColor: "#EEEEEE"
|
|
3372
|
-
}, va = ["src", "alt"], fa = /* @__PURE__ */
|
|
3395
|
+
}, va = ["src", "alt"], fa = /* @__PURE__ */ R({
|
|
3373
3396
|
__name: "ck-img",
|
|
3374
3397
|
props: {
|
|
3375
3398
|
src: {},
|
|
@@ -3389,42 +3412,42 @@ const pa = {
|
|
|
3389
3412
|
},
|
|
3390
3413
|
emits: ["click"],
|
|
3391
3414
|
setup(e, { emit: o }) {
|
|
3392
|
-
const t = e, l = o, { cleekOptions: n } = le(te()), a =
|
|
3415
|
+
const t = e, l = o, { cleekOptions: n } = le(te()), a = M(!1), i = M(!1), d = c(() => t.src.substring(0, 4) === "http"), u = c(() => i.value ? d.value ? t.src : k(t.src) : ""), p = c(() => {
|
|
3393
3416
|
const m = [];
|
|
3394
3417
|
return t.size && m.push(`ck-img__size--${t.size}`), t.rounded && m.push("is-rounded"), t.hasBorder && (m.push("ck-img__has-border"), L.isColorTemplateVariable(r.value) && m.push(`ck-component__border-color--${r.value}`)), t.zoom && m.push("zoom-able"), m;
|
|
3395
|
-
}),
|
|
3418
|
+
}), s = c(() => {
|
|
3396
3419
|
const m = [];
|
|
3397
3420
|
t.sizeAbsolute && (m.push({ width: t.sizeAbsolute }), m.push({ height: t.sizeAbsolute }));
|
|
3398
|
-
let
|
|
3399
|
-
return typeof t.radius > "u" && n.value.styles.layout === "squared" && (
|
|
3421
|
+
let h = t.radius;
|
|
3422
|
+
return typeof t.radius > "u" && n.value.styles.layout === "squared" && (h = "0px"), h && m.push({ "border-radius": h }), t.hasBorder && (L.isColorTemplateVariable(r.value) || m.push({ "border-color": r.value })), m;
|
|
3400
3423
|
}), f = c(() => {
|
|
3401
3424
|
const m = [];
|
|
3402
3425
|
return t.radius && m.push({ "border-radius": t.radius }), t.width && m.push({ width: t.width }), t.height && m.push({ height: t.height }), m;
|
|
3403
3426
|
}), r = c(() => t.borderColor ? t.borderColor : pa.defaultImgBorderColor);
|
|
3404
|
-
function
|
|
3405
|
-
let
|
|
3406
|
-
return n.value.img.basePath && (
|
|
3427
|
+
function k(m) {
|
|
3428
|
+
let h = n.value.img.basePath;
|
|
3429
|
+
return n.value.img.basePath && (h = n.value.img.basePath), h || (h = n.value.img.basePathStatic), t.dynamic && (h = n.value.img.basePathDynamic), `${h}${m}`;
|
|
3407
3430
|
}
|
|
3408
3431
|
return be(() => {
|
|
3409
3432
|
i.value = !0;
|
|
3410
|
-
}), (m,
|
|
3411
|
-
class:
|
|
3412
|
-
style: E(
|
|
3413
|
-
onClick:
|
|
3433
|
+
}), (m, h) => (v(), _("div", {
|
|
3434
|
+
class: x(["ck-img", p.value]),
|
|
3435
|
+
style: E(s.value),
|
|
3436
|
+
onClick: h[1] || (h[1] = (y) => l("click", y))
|
|
3414
3437
|
}, [
|
|
3415
|
-
|
|
3416
|
-
src:
|
|
3438
|
+
w("img", {
|
|
3439
|
+
src: u.value,
|
|
3417
3440
|
style: E(f.value),
|
|
3418
3441
|
alt: m.alt,
|
|
3419
|
-
onError:
|
|
3442
|
+
onError: h[0] || (h[0] = (y) => a.value = !0)
|
|
3420
3443
|
}, null, 44, va)
|
|
3421
3444
|
], 6));
|
|
3422
3445
|
}
|
|
3423
3446
|
});
|
|
3424
|
-
const ma = /* @__PURE__ */
|
|
3447
|
+
const ma = /* @__PURE__ */ j(fa, [["__scopeId", "data-v-485e840f"]]), ga = ["onKeyup"], ha = ["name", "value", "disabled"], ka = {
|
|
3425
3448
|
key: 0,
|
|
3426
3449
|
class: "c-Radio__label"
|
|
3427
|
-
}, ya = /* @__PURE__ */
|
|
3450
|
+
}, ya = /* @__PURE__ */ R({
|
|
3428
3451
|
__name: "ck-radio",
|
|
3429
3452
|
props: {
|
|
3430
3453
|
modelValue: {},
|
|
@@ -3460,24 +3483,24 @@ const ma = /* @__PURE__ */ H(fa, [["__scopeId", "data-v-485e840f"]]), ga = ["onK
|
|
|
3460
3483
|
const p = [];
|
|
3461
3484
|
return t.vertical && p.push("vertical"), t.classes && p.push(t.classes), p;
|
|
3462
3485
|
});
|
|
3463
|
-
function
|
|
3486
|
+
function u(p, s) {
|
|
3464
3487
|
p.value = n, l("change", n);
|
|
3465
3488
|
}
|
|
3466
|
-
return (p,
|
|
3489
|
+
return (p, s) => (v(!0), _(Y, null, de(i.value, (f, r) => (v(), _("label", Ne({
|
|
3467
3490
|
class: "ck-radio",
|
|
3468
3491
|
key: `radio-${r}`,
|
|
3469
3492
|
ref_for: !0
|
|
3470
3493
|
}, a.value, {
|
|
3471
3494
|
class: d.value,
|
|
3472
|
-
onKeydown:
|
|
3495
|
+
onKeydown: s[1] || (s[1] = _e(re(() => {
|
|
3473
3496
|
}, ["prevent"]), ["space"])),
|
|
3474
3497
|
onKeyup: [
|
|
3475
|
-
|
|
3476
|
-
|
|
3498
|
+
_e((k) => u(f), ["enter"]),
|
|
3499
|
+
_e((k) => u(f), ["space"])
|
|
3477
3500
|
]
|
|
3478
3501
|
}), [
|
|
3479
|
-
|
|
3480
|
-
"onUpdate:modelValue":
|
|
3502
|
+
ue(w("input", {
|
|
3503
|
+
"onUpdate:modelValue": s[0] || (s[0] = (k) => n.value = k),
|
|
3481
3504
|
class: "c-Radio__input",
|
|
3482
3505
|
"aria-hidden": "true",
|
|
3483
3506
|
type: "radio",
|
|
@@ -3487,12 +3510,12 @@ const ma = /* @__PURE__ */ H(fa, [["__scopeId", "data-v-485e840f"]]), ga = ["onK
|
|
|
3487
3510
|
}, null, 8, ha), [
|
|
3488
3511
|
[qt, n.value]
|
|
3489
3512
|
]),
|
|
3490
|
-
|
|
3491
|
-
f.label ? (v(),
|
|
3513
|
+
s[2] || (s[2] = w("div", { class: "c-Radio__element" }, null, -1)),
|
|
3514
|
+
f.label ? (v(), _("span", ka, I(f.label), 1)) : C("", !0)
|
|
3492
3515
|
], 16, ga))), 128));
|
|
3493
3516
|
}
|
|
3494
3517
|
});
|
|
3495
|
-
const _a = /* @__PURE__ */
|
|
3518
|
+
const _a = /* @__PURE__ */ j(ya, [["__scopeId", "data-v-d37d3f3e"]]);
|
|
3496
3519
|
function ba(e, o) {
|
|
3497
3520
|
const t = (l) => {
|
|
3498
3521
|
var a;
|
|
@@ -3503,15 +3526,15 @@ function ba(e, o) {
|
|
|
3503
3526
|
}
|
|
3504
3527
|
window[l]("scroll", o);
|
|
3505
3528
|
};
|
|
3506
|
-
be(() => t("addEventListener")),
|
|
3529
|
+
be(() => t("addEventListener")), Xe(() => t("removeEventListener"));
|
|
3507
3530
|
}
|
|
3508
|
-
function
|
|
3531
|
+
function dt(e) {
|
|
3509
3532
|
return e.normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLowerCase();
|
|
3510
3533
|
}
|
|
3511
3534
|
const Ca = {
|
|
3512
3535
|
key: 0,
|
|
3513
3536
|
class: "ck-select--optional-label"
|
|
3514
|
-
}, wa = ["disabled"], $a = ["value"], Ba = ["placeholder", "disabled"], Ta = ["onMousedown", "onMouseenter"], Va = ["textContent"], Da = /* @__PURE__ */
|
|
3537
|
+
}, wa = ["disabled"], $a = ["value"], Ba = ["placeholder", "disabled"], Ta = ["onMousedown", "onMouseenter"], Va = ["textContent"], Da = /* @__PURE__ */ R({
|
|
3515
3538
|
__name: "ck-select",
|
|
3516
3539
|
props: /* @__PURE__ */ ee({
|
|
3517
3540
|
options: {},
|
|
@@ -3557,241 +3580,244 @@ const Ca = {
|
|
|
3557
3580
|
setup(e, { expose: o, emit: t }) {
|
|
3558
3581
|
const l = ge(e, "modelValue"), n = e, a = t;
|
|
3559
3582
|
o({
|
|
3560
|
-
focus:
|
|
3583
|
+
focus: K,
|
|
3561
3584
|
blur: Be
|
|
3562
3585
|
});
|
|
3563
|
-
const { cleekOptions: i } = le(te()), { windowWidth: d } = he(),
|
|
3586
|
+
const { cleekOptions: i } = le(te()), { windowWidth: d } = he(), u = M(), p = M(), s = M(), f = M(), r = M(""), k = M(!1), m = M(!1), h = M(-1), y = c(() => n.options.find((b) => ve(b) === l.value)), g = c(() => n.options.length), T = c(() => !g.value), O = c(() => g.value <= n.optionsLimit), V = c(() => {
|
|
3564
3587
|
if (m.value)
|
|
3565
3588
|
return n.options;
|
|
3566
|
-
const
|
|
3567
|
-
return n.options.filter((
|
|
3568
|
-
const
|
|
3569
|
-
return
|
|
3589
|
+
const b = dt(r.value).split(" ");
|
|
3590
|
+
return n.options.filter((z) => {
|
|
3591
|
+
const J = dt(Ce(z));
|
|
3592
|
+
return b.every((N) => J.includes(N));
|
|
3570
3593
|
});
|
|
3571
|
-
}),
|
|
3572
|
-
if (
|
|
3573
|
-
return
|
|
3574
|
-
}),
|
|
3575
|
-
var
|
|
3594
|
+
}), B = c(() => V.value.length), P = c(() => {
|
|
3595
|
+
if (k.value && y.value)
|
|
3596
|
+
return Ce(y.value);
|
|
3597
|
+
}), F = c(() => n.disabled || T.value), X = c(() => {
|
|
3598
|
+
var b;
|
|
3576
3599
|
if (n.clearValue)
|
|
3577
3600
|
return n.clearValue;
|
|
3578
|
-
if ((
|
|
3601
|
+
if ((b = i.value.select) != null && b.clearValue)
|
|
3579
3602
|
return i.value.select.clearValue;
|
|
3580
|
-
}),
|
|
3581
|
-
if (
|
|
3582
|
-
return
|
|
3583
|
-
const
|
|
3584
|
-
switch (typeof
|
|
3603
|
+
}), ne = c(() => {
|
|
3604
|
+
if (X.value)
|
|
3605
|
+
return X.value;
|
|
3606
|
+
const b = l.value;
|
|
3607
|
+
switch (typeof b) {
|
|
3585
3608
|
case "number":
|
|
3586
3609
|
return 0;
|
|
3587
3610
|
case "string":
|
|
3588
3611
|
return "";
|
|
3589
3612
|
case "object":
|
|
3590
|
-
return
|
|
3613
|
+
return b ? Array.isArray(b) ? [] : {} : null;
|
|
3591
3614
|
default:
|
|
3592
3615
|
return null;
|
|
3593
3616
|
}
|
|
3594
|
-
}),
|
|
3595
|
-
const
|
|
3596
|
-
return
|
|
3597
|
-
}),
|
|
3598
|
-
() => (
|
|
3599
|
-
),
|
|
3600
|
-
const
|
|
3601
|
-
return n.icon &&
|
|
3602
|
-
}),
|
|
3603
|
-
const
|
|
3604
|
-
let
|
|
3617
|
+
}), we = c(() => {
|
|
3618
|
+
const b = l.value;
|
|
3619
|
+
return X.value ? b === X.value : typeof b == "number" ? b === 0 : typeof b == "string" ? b === "" : typeof b == "object" && b ? Array.isArray(b) ? b.length === 0 : Object.keys(b).length === 0 : b === null;
|
|
3620
|
+
}), D = c(() => n.isLoading ? "Cargando..." : T.value ? n.emptyOptionsMsg : n.placeholder), q = c(
|
|
3621
|
+
() => (T.value || we.value) && !r.value && D.value || n.isLoading
|
|
3622
|
+
), se = c(() => F.value || n.notClearable ? !1 : !we.value), $ = c(() => {
|
|
3623
|
+
const b = [];
|
|
3624
|
+
return n.icon && b.push("has-icon-left"), n.iconRight && b.push("has-icon-right"), b;
|
|
3625
|
+
}), A = c(() => {
|
|
3626
|
+
const b = [];
|
|
3627
|
+
let z = !1;
|
|
3605
3628
|
if (n.widthBreaks) {
|
|
3606
|
-
const
|
|
3607
|
-
|
|
3629
|
+
const J = L.getWidthByWidthBreaks(n.widthBreaks, d.value);
|
|
3630
|
+
J && (b.push({ width: J }), z = !0);
|
|
3608
3631
|
}
|
|
3609
|
-
return !
|
|
3610
|
-
}),
|
|
3611
|
-
const
|
|
3612
|
-
|
|
3613
|
-
const
|
|
3614
|
-
|
|
3615
|
-
const
|
|
3616
|
-
return
|
|
3632
|
+
return !z && n.minWidth && b.push({ "min-width": n.minWidth }), n.width && b.push({ width: n.width }), b;
|
|
3633
|
+
}), Q = c(() => {
|
|
3634
|
+
const b = [];
|
|
3635
|
+
b.push(L.getGroupClass(n, d.value));
|
|
3636
|
+
const z = n.layout || i.value.styles.layout;
|
|
3637
|
+
z && b.push(z), se.value && b.push("clearable");
|
|
3638
|
+
const J = n.borderColor || i.value.styles.borderColor;
|
|
3639
|
+
return J && L.isColorTemplateVariable(J) && b.push(`ck-component__border-color--${J}`), b;
|
|
3617
3640
|
}), oe = c(() => {
|
|
3618
|
-
const
|
|
3619
|
-
|
|
3620
|
-
let
|
|
3621
|
-
i.value.select.backgroundColor && (
|
|
3641
|
+
const b = [], z = n.borderColor || i.value.styles.borderColor;
|
|
3642
|
+
z && !L.isColorTemplateVariable(z) && b.push({ "border-color": z });
|
|
3643
|
+
let J = "";
|
|
3644
|
+
i.value.select.backgroundColor && (J = i.value.select.backgroundColor), i.value.darkMode && (J = i.value.darkModeColorItems), J && !L.isColorTemplateVariable(J) && b.push({ backgroundColor: J });
|
|
3622
3645
|
let N = i.value.popup.textColor;
|
|
3623
|
-
return i.value.darkMode && (N = i.value.darkModeColorText), N && (L.isColorTemplateVariable(N) ?
|
|
3624
|
-
}),
|
|
3625
|
-
const
|
|
3626
|
-
let
|
|
3627
|
-
return i.value.darkMode && (
|
|
3646
|
+
return i.value.darkMode && (N = i.value.darkModeColorText), N && (L.isColorTemplateVariable(N) ? b.push(`ck-component__color--${N}`) : b.push({ color: N })), b;
|
|
3647
|
+
}), ae = c(() => {
|
|
3648
|
+
const b = [];
|
|
3649
|
+
let z = i.value.popup.textColor;
|
|
3650
|
+
return i.value.darkMode && (z = i.value.darkModeColorText), z && (L.isColorTemplateVariable(z) ? b.push(`ck-component__color--${z}`) : b.push({ color: z })), b;
|
|
3628
3651
|
});
|
|
3629
|
-
|
|
3630
|
-
|
|
3631
|
-
}),
|
|
3632
|
-
|
|
3633
|
-
const
|
|
3634
|
-
|
|
3635
|
-
const
|
|
3636
|
-
me["max-height"] =
|
|
3652
|
+
ce(() => y.value, () => He()), ce(() => B.value, (b) => {
|
|
3653
|
+
h.value !== -1 && (h.value + 1 <= b || (h.value = b - 1));
|
|
3654
|
+
}), ce(() => s.value, (b) => {
|
|
3655
|
+
b && (f.value = { display: "none" }, setTimeout(() => {
|
|
3656
|
+
const z = document.documentElement.clientHeight, J = document.documentElement.clientWidth, N = p.value.getBoundingClientRect(), me = {}, xe = N.top < z / 2;
|
|
3657
|
+
xe ? me.top = `${N.bottom}px` : me.bottom = `${z - N.top}px`, me.left = `${N.left}px`, me.right = `${J - N.right}px`;
|
|
3658
|
+
const ot = 100;
|
|
3659
|
+
me["max-height"] = xe ? `${z - N.top - ot}px` : `${N.bottom - ot}px`, me.display = "block", f.value = me;
|
|
3637
3660
|
}, 150));
|
|
3638
3661
|
});
|
|
3639
|
-
function
|
|
3640
|
-
return n.reduceValueFunction ? n.reduceValueFunction(
|
|
3662
|
+
function ve(b) {
|
|
3663
|
+
return n.reduceValueFunction ? n.reduceValueFunction(b) : n.notReduceValue || n.notReduce ? b : n.reduceValueMethod ? b[n.reduceValueMethod]() : b[n.reduceValueProp];
|
|
3641
3664
|
}
|
|
3642
|
-
function
|
|
3643
|
-
return n.reduceNameFunction ? n.reduceNameFunction(
|
|
3665
|
+
function Ce(b) {
|
|
3666
|
+
return n.reduceNameFunction ? n.reduceNameFunction(b) : n.notReduceName || n.notReduce ? b : n.reduceNameMethod ? b[n.reduceNameMethod]() : b[n.reduceNameProp];
|
|
3644
3667
|
}
|
|
3645
|
-
function
|
|
3646
|
-
var
|
|
3647
|
-
(
|
|
3668
|
+
function K() {
|
|
3669
|
+
var b, z;
|
|
3670
|
+
(b = u.value) == null || b.focus(), (z = p.value) == null || z.focus();
|
|
3648
3671
|
}
|
|
3649
3672
|
function Be() {
|
|
3650
|
-
var
|
|
3651
|
-
(
|
|
3673
|
+
var b, z;
|
|
3674
|
+
(b = u.value) == null || b.blur(), (z = p.value) == null || z.blur();
|
|
3652
3675
|
}
|
|
3653
3676
|
function Fe() {
|
|
3654
|
-
r.value = "", m.value = !0, Lt(),
|
|
3677
|
+
r.value = "", m.value = !0, Lt(), k.value = !0;
|
|
3655
3678
|
}
|
|
3656
3679
|
function Bt() {
|
|
3657
|
-
He(),
|
|
3680
|
+
He(), k.value = !1;
|
|
3658
3681
|
}
|
|
3659
3682
|
function Tt() {
|
|
3660
3683
|
m.value = !1;
|
|
3661
3684
|
}
|
|
3662
|
-
function Vt(
|
|
3663
|
-
const
|
|
3664
|
-
if (
|
|
3665
|
-
|
|
3666
|
-
else if (
|
|
3667
|
-
|
|
3668
|
-
else if (
|
|
3669
|
-
const
|
|
3670
|
-
qe(
|
|
3685
|
+
function Vt(b) {
|
|
3686
|
+
const z = B.value;
|
|
3687
|
+
if (b === "ArrowDown")
|
|
3688
|
+
h.value = h.value + 1 >= z ? 0 : h.value + 1;
|
|
3689
|
+
else if (b === "ArrowUp")
|
|
3690
|
+
h.value = h.value <= 0 ? z - 1 : h.value - 1;
|
|
3691
|
+
else if (b === "Enter") {
|
|
3692
|
+
const J = h.value >= 0 ? h.value : 0;
|
|
3693
|
+
qe(ve(V.value[J])), Be();
|
|
3671
3694
|
}
|
|
3672
3695
|
}
|
|
3673
|
-
function qe(
|
|
3674
|
-
l.value =
|
|
3696
|
+
function qe(b) {
|
|
3697
|
+
l.value = b, a("change", b);
|
|
3675
3698
|
}
|
|
3676
3699
|
function He() {
|
|
3677
|
-
const
|
|
3678
|
-
r.value =
|
|
3700
|
+
const b = y.value;
|
|
3701
|
+
r.value = b ? Ce(b) : "";
|
|
3679
3702
|
}
|
|
3680
3703
|
function Dt() {
|
|
3681
|
-
r.value = "", qe(
|
|
3704
|
+
r.value = "", qe(ne.value);
|
|
3682
3705
|
}
|
|
3683
3706
|
function Lt() {
|
|
3684
|
-
if (
|
|
3685
|
-
const
|
|
3686
|
-
|
|
3707
|
+
if (y.value) {
|
|
3708
|
+
const b = V.value;
|
|
3709
|
+
h.value = b.findIndex((z) => ve(z) === ve(y.value));
|
|
3687
3710
|
} else
|
|
3688
|
-
|
|
3711
|
+
h.value = -1;
|
|
3689
3712
|
}
|
|
3690
3713
|
return ba(p, () => {
|
|
3691
|
-
var
|
|
3692
|
-
return (
|
|
3693
|
-
}), He(), (
|
|
3694
|
-
const
|
|
3695
|
-
return v(),
|
|
3696
|
-
class:
|
|
3697
|
-
style: E(
|
|
3714
|
+
var b;
|
|
3715
|
+
return (b = p.value) == null ? void 0 : b.blur();
|
|
3716
|
+
}), He(), (b, z) => {
|
|
3717
|
+
const J = U("ck-button");
|
|
3718
|
+
return v(), _("div", {
|
|
3719
|
+
class: x(["ck-select", $.value]),
|
|
3720
|
+
style: E(A.value)
|
|
3698
3721
|
}, [
|
|
3699
|
-
|
|
3722
|
+
b.label ? (v(), S(Me, {
|
|
3700
3723
|
key: 0,
|
|
3701
|
-
align:
|
|
3724
|
+
align: b.labelAlign,
|
|
3702
3725
|
for: "ck-select"
|
|
3703
3726
|
}, {
|
|
3704
|
-
default:
|
|
3705
|
-
|
|
3706
|
-
|
|
3727
|
+
default: H(() => [
|
|
3728
|
+
Z(I(b.label) + " ", 1),
|
|
3729
|
+
b.optional ? (v(), _("span", Ca, "opcional")) : C("", !0)
|
|
3707
3730
|
]),
|
|
3708
3731
|
_: 1
|
|
3709
|
-
}, 8, ["align"])) :
|
|
3710
|
-
|
|
3732
|
+
}, 8, ["align"])) : C("", !0),
|
|
3733
|
+
O.value ? ue((v(), _("select", {
|
|
3711
3734
|
key: 1,
|
|
3712
3735
|
ref_key: "selectRef",
|
|
3713
|
-
ref:
|
|
3714
|
-
|
|
3736
|
+
ref: u,
|
|
3737
|
+
tabindex: "0",
|
|
3738
|
+
"onUpdate:modelValue": z[0] || (z[0] = (N) => l.value = N),
|
|
3715
3739
|
id: "ck-select",
|
|
3716
|
-
class:
|
|
3740
|
+
class: x(Q.value),
|
|
3717
3741
|
style: E(oe.value),
|
|
3718
|
-
disabled:
|
|
3719
|
-
onChange:
|
|
3720
|
-
onClick:
|
|
3742
|
+
disabled: F.value,
|
|
3743
|
+
onChange: z[1] || (z[1] = (N) => a("change", l.value)),
|
|
3744
|
+
onClick: z[2] || (z[2] = (N) => a("click", N))
|
|
3721
3745
|
}, [
|
|
3722
|
-
(v(!0),
|
|
3723
|
-
value:
|
|
3746
|
+
(v(!0), _(Y, null, de(b.options, (N) => (v(), _("option", {
|
|
3747
|
+
value: ve(N),
|
|
3724
3748
|
key: N,
|
|
3725
|
-
style: E(
|
|
3726
|
-
}, I(
|
|
3749
|
+
style: E(ae.value)
|
|
3750
|
+
}, I(Ce(N)), 13, $a))), 128))
|
|
3727
3751
|
], 46, wa)), [
|
|
3728
3752
|
[Ht, l.value]
|
|
3729
|
-
]) :
|
|
3753
|
+
]) : ue((v(), _("input", {
|
|
3730
3754
|
key: 2,
|
|
3731
3755
|
ref_key: "inputRef",
|
|
3732
3756
|
ref: p,
|
|
3733
|
-
|
|
3757
|
+
tabindex: "0",
|
|
3758
|
+
"onUpdate:modelValue": z[3] || (z[3] = (N) => r.value = N),
|
|
3734
3759
|
id: "ck-select",
|
|
3735
|
-
class:
|
|
3760
|
+
class: x(Q.value),
|
|
3736
3761
|
style: E(oe.value),
|
|
3737
|
-
placeholder:
|
|
3738
|
-
disabled:
|
|
3762
|
+
placeholder: P.value,
|
|
3763
|
+
disabled: F.value,
|
|
3739
3764
|
autocomplete: "off",
|
|
3740
|
-
onClick:
|
|
3741
|
-
onFocus:
|
|
3742
|
-
onBlur:
|
|
3743
|
-
onInput:
|
|
3744
|
-
onKeydown:
|
|
3765
|
+
onClick: z[4] || (z[4] = (N) => a("click", N)),
|
|
3766
|
+
onFocus: z[5] || (z[5] = (N) => Fe()),
|
|
3767
|
+
onBlur: z[6] || (z[6] = (N) => Bt()),
|
|
3768
|
+
onInput: z[7] || (z[7] = (N) => Tt()),
|
|
3769
|
+
onKeydown: z[8] || (z[8] = (N) => Vt(N.key))
|
|
3745
3770
|
}, null, 46, Ba)), [
|
|
3746
3771
|
[We, r.value]
|
|
3747
3772
|
]),
|
|
3748
3773
|
(v(), S(Pe, { to: "body" }, [
|
|
3749
|
-
|
|
3774
|
+
k.value && V.value.length ? (v(), _("ul", {
|
|
3750
3775
|
key: 0,
|
|
3751
3776
|
ref_key: "dropdownRef",
|
|
3752
|
-
ref:
|
|
3777
|
+
ref: s,
|
|
3753
3778
|
class: "ck-input-dropdown",
|
|
3754
3779
|
style: E(f.value)
|
|
3755
3780
|
}, [
|
|
3756
|
-
(v(!0),
|
|
3757
|
-
key:
|
|
3758
|
-
class:
|
|
3759
|
-
"dropdown--option__selected":
|
|
3760
|
-
"dropdown--option__index-selected": me ===
|
|
3781
|
+
(v(!0), _(Y, null, de(V.value, (N, me) => (v(), _("li", {
|
|
3782
|
+
key: ve(N),
|
|
3783
|
+
class: x(["dropdown--option", {
|
|
3784
|
+
"dropdown--option__selected": ve(N) === l.value,
|
|
3785
|
+
"dropdown--option__index-selected": me === h.value
|
|
3761
3786
|
}]),
|
|
3762
|
-
onMousedown: (
|
|
3763
|
-
onMouseenter: (
|
|
3764
|
-
}, I(
|
|
3765
|
-
], 4)) :
|
|
3787
|
+
onMousedown: (xe) => qe(ve(N)),
|
|
3788
|
+
onMouseenter: (xe) => h.value = me
|
|
3789
|
+
}, I(Ce(N)), 43, Ta))), 128))
|
|
3790
|
+
], 4)) : C("", !0)
|
|
3766
3791
|
])),
|
|
3767
|
-
|
|
3792
|
+
q.value ? (v(), _("span", {
|
|
3768
3793
|
key: 3,
|
|
3769
3794
|
class: "ck-select--placeholder",
|
|
3770
|
-
textContent: I(
|
|
3771
|
-
}, null, 8, Va)) :
|
|
3772
|
-
|
|
3795
|
+
textContent: I(D.value)
|
|
3796
|
+
}, null, 8, Va)) : C("", !0),
|
|
3797
|
+
b.icon ? (v(), S(ie, {
|
|
3773
3798
|
key: 4,
|
|
3774
3799
|
class: "ck-select--icon-left",
|
|
3775
|
-
icon:
|
|
3776
|
-
"icon-pack":
|
|
3777
|
-
color:
|
|
3778
|
-
}, null, 8, ["icon", "icon-pack", "color"])) :
|
|
3779
|
-
|
|
3800
|
+
icon: b.icon,
|
|
3801
|
+
"icon-pack": b.iconPack,
|
|
3802
|
+
color: b.iconColor
|
|
3803
|
+
}, null, 8, ["icon", "icon-pack", "color"])) : C("", !0),
|
|
3804
|
+
b.iconRight ? (v(), S(ie, {
|
|
3780
3805
|
key: 5,
|
|
3781
3806
|
class: "ck-select--icon-right",
|
|
3782
|
-
icon:
|
|
3783
|
-
"icon-pack":
|
|
3784
|
-
color:
|
|
3785
|
-
}, null, 8, ["icon", "icon-pack", "color"])) :
|
|
3786
|
-
|
|
3807
|
+
icon: b.iconRight,
|
|
3808
|
+
"icon-pack": b.iconPack,
|
|
3809
|
+
color: b.iconColor
|
|
3810
|
+
}, null, 8, ["icon", "icon-pack", "color"])) : C("", !0),
|
|
3811
|
+
se.value ? (v(), S(J, {
|
|
3787
3812
|
key: 6,
|
|
3788
3813
|
class: "ck-select--btn",
|
|
3789
3814
|
size: "s",
|
|
3790
3815
|
icon: "times",
|
|
3791
3816
|
type: "flat",
|
|
3792
|
-
onClick:
|
|
3793
|
-
})) :
|
|
3817
|
+
onClick: z[9] || (z[9] = (N) => Dt())
|
|
3818
|
+
})) : F.value ? C("", !0) : (v(), S(J, {
|
|
3794
3819
|
key: 7,
|
|
3820
|
+
tabindex: "-1",
|
|
3795
3821
|
class: "ck-select--btn",
|
|
3796
3822
|
style: { "pointer-events": "none" },
|
|
3797
3823
|
size: "s",
|
|
@@ -3802,7 +3828,7 @@ const Ca = {
|
|
|
3802
3828
|
};
|
|
3803
3829
|
}
|
|
3804
3830
|
});
|
|
3805
|
-
const La = /* @__PURE__ */
|
|
3831
|
+
const La = /* @__PURE__ */ j(Da, [["__scopeId", "data-v-cd07c9f8"]]), Sa = {
|
|
3806
3832
|
key: 0,
|
|
3807
3833
|
class: "sidebar-header-title"
|
|
3808
3834
|
}, Pa = {
|
|
@@ -3811,10 +3837,10 @@ const La = /* @__PURE__ */ H(Da, [["__scopeId", "data-v-c9496ce1"]]), Sa = {
|
|
|
3811
3837
|
}, Ma = {
|
|
3812
3838
|
key: 2,
|
|
3813
3839
|
class: "ck-sidebar__content"
|
|
3814
|
-
},
|
|
3840
|
+
}, xa = {
|
|
3815
3841
|
key: 3,
|
|
3816
3842
|
class: "ck-sidbar__footer"
|
|
3817
|
-
},
|
|
3843
|
+
}, Ia = /* @__PURE__ */ R({
|
|
3818
3844
|
__name: "ck-sidebar",
|
|
3819
3845
|
props: /* @__PURE__ */ ee({
|
|
3820
3846
|
title: {},
|
|
@@ -3835,60 +3861,60 @@ const La = /* @__PURE__ */ H(Da, [["__scopeId", "data-v-c9496ce1"]]), Sa = {
|
|
|
3835
3861
|
const o = ge(e, "modelValue"), t = e, l = c(() => ({
|
|
3836
3862
|
"right-side": t.rightSide
|
|
3837
3863
|
})), n = c(() => {
|
|
3838
|
-
const
|
|
3839
|
-
return t.width &&
|
|
3864
|
+
const u = [];
|
|
3865
|
+
return t.width && u.push({ width: t.width }), u;
|
|
3840
3866
|
}), a = c(() => {
|
|
3841
|
-
const
|
|
3867
|
+
const u = [];
|
|
3842
3868
|
let p = t.closeBtnAlign;
|
|
3843
|
-
return t.notCloseBtn && (p = "hidden"), p &&
|
|
3869
|
+
return t.notCloseBtn && (p = "hidden"), p && u.push(`close-btn--${p}`), t.headerAlign && u.push(`align-title--${t.headerAlign}`), t.headerColor && L.isColorTemplateVariable(t.headerColor) && u.push(`ck-component__bg-color--${t.headerColor}`), t.headerColor && u.push(`align-title--${t.headerColor}`), u;
|
|
3844
3870
|
}), i = c(() => {
|
|
3845
|
-
const
|
|
3846
|
-
return t.headerColor && !L.isColorTemplateVariable(t.headerColor) &&
|
|
3871
|
+
const u = [];
|
|
3872
|
+
return t.headerColor && !L.isColorTemplateVariable(t.headerColor) && u.push({ "background-color": t.headerColor }), u;
|
|
3847
3873
|
}), d = c(() => t.closeBtnIcon ? t.closeBtnIcon : "times");
|
|
3848
|
-
return
|
|
3849
|
-
const
|
|
3850
|
-
return o.value ? (v(),
|
|
3874
|
+
return ce(() => o.value, (u) => $t(!u)), (u, p) => {
|
|
3875
|
+
const s = U("ck-icon");
|
|
3876
|
+
return o.value ? (v(), _("div", {
|
|
3851
3877
|
key: 0,
|
|
3852
3878
|
class: "ck-sidebar-background",
|
|
3853
|
-
onClick: p[1] || (p[1] =
|
|
3879
|
+
onClick: p[1] || (p[1] = re((f) => o.value = !1, ["self"]))
|
|
3854
3880
|
}, [
|
|
3855
|
-
|
|
3856
|
-
class:
|
|
3881
|
+
w("div", {
|
|
3882
|
+
class: x(["ck-sidebar", l.value]),
|
|
3857
3883
|
style: E(n.value)
|
|
3858
3884
|
}, [
|
|
3859
|
-
|
|
3860
|
-
|
|
3885
|
+
W(u.$slots, "header", {}, void 0, !0),
|
|
3886
|
+
u.title ? (v(), _("div", {
|
|
3861
3887
|
key: 0,
|
|
3862
|
-
class:
|
|
3888
|
+
class: x(["sidebar-header", a.value]),
|
|
3863
3889
|
style: E(i.value),
|
|
3864
3890
|
onClick: p[0] || (p[0] = (f) => o.value = !1)
|
|
3865
3891
|
}, [
|
|
3866
|
-
|
|
3867
|
-
|
|
3892
|
+
u.title ? (v(), _("div", Sa, I(u.title), 1)) : C("", !0),
|
|
3893
|
+
u.notCloseBtn ? (v(), S(s, {
|
|
3868
3894
|
key: 1,
|
|
3869
3895
|
class: "close-btn",
|
|
3870
3896
|
icon: d.value
|
|
3871
|
-
}, null, 8, ["icon"])) :
|
|
3872
|
-
], 6)) :
|
|
3873
|
-
|
|
3874
|
-
|
|
3897
|
+
}, null, 8, ["icon"])) : C("", !0)
|
|
3898
|
+
], 6)) : C("", !0),
|
|
3899
|
+
u.isLoading ? (v(), _("div", Pa, [
|
|
3900
|
+
G(s, {
|
|
3875
3901
|
icon: "spinner",
|
|
3876
3902
|
size: "xxl",
|
|
3877
3903
|
spin: "",
|
|
3878
3904
|
color: "primary"
|
|
3879
3905
|
})
|
|
3880
|
-
])) : (v(),
|
|
3881
|
-
|
|
3906
|
+
])) : (v(), _("div", Ma, [
|
|
3907
|
+
W(u.$slots, "default", {}, void 0, !0)
|
|
3882
3908
|
])),
|
|
3883
|
-
|
|
3884
|
-
|
|
3885
|
-
])) :
|
|
3909
|
+
u.$slots.footer ? (v(), _("div", xa, [
|
|
3910
|
+
W(u.$slots, "footer", {}, void 0, !0)
|
|
3911
|
+
])) : C("", !0)
|
|
3886
3912
|
], 6)
|
|
3887
|
-
])) :
|
|
3913
|
+
])) : C("", !0);
|
|
3888
3914
|
};
|
|
3889
3915
|
}
|
|
3890
3916
|
});
|
|
3891
|
-
const Aa = /* @__PURE__ */
|
|
3917
|
+
const Aa = /* @__PURE__ */ j(Ia, [["__scopeId", "data-v-19f1984b"]]), za = ["disabled"], Ra = { class: "ck-switch__slider-container" }, Ye = "s", Oa = "m", Wa = /* @__PURE__ */ R({
|
|
3892
3918
|
__name: "ck-switch",
|
|
3893
3919
|
props: /* @__PURE__ */ ee({
|
|
3894
3920
|
preventAutoUpdate: { type: Boolean },
|
|
@@ -3898,6 +3924,7 @@ const Aa = /* @__PURE__ */ H(xa, [["__scopeId", "data-v-19f1984b"]]), za = ["dis
|
|
|
3898
3924
|
size: {},
|
|
3899
3925
|
textSize: {},
|
|
3900
3926
|
switchSide: {},
|
|
3927
|
+
color: {},
|
|
3901
3928
|
icon: {},
|
|
3902
3929
|
iconPack: {}
|
|
3903
3930
|
}, {
|
|
@@ -3908,19 +3935,19 @@ const Aa = /* @__PURE__ */ H(xa, [["__scopeId", "data-v-19f1984b"]]), za = ["dis
|
|
|
3908
3935
|
setup(e, { emit: o }) {
|
|
3909
3936
|
const t = ge(e, "modelValue"), l = e, n = o, { cleekOptions: a } = le(te()), i = c(() => {
|
|
3910
3937
|
const r = [];
|
|
3911
|
-
l.squared && r.push("is-squared"), l.outlined && r.push("is-outlined");
|
|
3912
|
-
let
|
|
3913
|
-
return r.push(`ck-switch--size-${
|
|
3938
|
+
l.squared && r.push("is-squared"), l.outlined && r.push("is-outlined"), l.color && r.push(`--${l.color}`);
|
|
3939
|
+
let k = l.size || Ye;
|
|
3940
|
+
return r.push(`ck-switch--size-${k}`), r;
|
|
3914
3941
|
}), d = c(() => ({
|
|
3915
3942
|
"aria-disabled": l.disabled,
|
|
3916
3943
|
tabindex: l.disabled ? void 0 : "0"
|
|
3917
|
-
})),
|
|
3944
|
+
})), u = c(() => {
|
|
3918
3945
|
const r = [];
|
|
3919
3946
|
return l.size && l.size !== Ye && r.push(`ck-switch__icon-size--${l.size}`), r;
|
|
3920
3947
|
}), p = c(() => {
|
|
3921
3948
|
const r = [];
|
|
3922
3949
|
return a.value.darkMode && r.push({ color: a.value.darkModeColorText }), l.size && l.size !== Ye && r.push(`ck-switch__icon-size--${l.size}`), r;
|
|
3923
|
-
}),
|
|
3950
|
+
}), s = c(() => {
|
|
3924
3951
|
const r = [];
|
|
3925
3952
|
return l.textSize && l.textSize !== Oa && r.push(`ck-switch__text-size--${l.textSize}`), r;
|
|
3926
3953
|
});
|
|
@@ -3931,54 +3958,54 @@ const Aa = /* @__PURE__ */ H(xa, [["__scopeId", "data-v-19f1984b"]]), za = ["dis
|
|
|
3931
3958
|
}
|
|
3932
3959
|
n("click");
|
|
3933
3960
|
}
|
|
3934
|
-
return (r,
|
|
3961
|
+
return (r, k) => (v(), _("label", Ne(d.value, {
|
|
3935
3962
|
class: ["ck-switch", i.value],
|
|
3936
|
-
onKeydown:
|
|
3963
|
+
onKeydown: k[2] || (k[2] = _e(re(() => {
|
|
3937
3964
|
}, ["prevent"]), ["space"]))
|
|
3938
3965
|
}), [
|
|
3939
|
-
r.$slots.default && r.switchSide === "right" ? (v(),
|
|
3966
|
+
r.$slots.default && r.switchSide === "right" ? (v(), _("span", {
|
|
3940
3967
|
key: 0,
|
|
3941
|
-
class:
|
|
3968
|
+
class: x(["ck-switch__content", s.value]),
|
|
3942
3969
|
style: E(p.value)
|
|
3943
3970
|
}, [
|
|
3944
|
-
|
|
3945
|
-
], 6)) :
|
|
3946
|
-
|
|
3971
|
+
W(r.$slots, "default", {}, void 0, !0)
|
|
3972
|
+
], 6)) : C("", !0),
|
|
3973
|
+
ue(w("input", {
|
|
3947
3974
|
class: "ck-switch__input",
|
|
3948
3975
|
type: "checkbox",
|
|
3949
|
-
"onUpdate:modelValue":
|
|
3976
|
+
"onUpdate:modelValue": k[0] || (k[0] = (m) => t.value = m),
|
|
3950
3977
|
"aria-hidden": "true",
|
|
3951
3978
|
disabled: r.disabled,
|
|
3952
|
-
onClick:
|
|
3979
|
+
onClick: k[1] || (k[1] = (m) => f(m))
|
|
3953
3980
|
}, null, 8, za), [
|
|
3954
3981
|
[jt, t.value]
|
|
3955
3982
|
]),
|
|
3956
|
-
|
|
3957
|
-
|
|
3958
|
-
r.icon && t.value ? (v(), S(
|
|
3983
|
+
w("div", Ra, [
|
|
3984
|
+
k[3] || (k[3] = w("div", { class: "ck-switch__slider" }, null, -1)),
|
|
3985
|
+
r.icon && t.value ? (v(), S(ie, {
|
|
3959
3986
|
key: 0,
|
|
3960
|
-
class:
|
|
3987
|
+
class: x(["ck-switch__icon-left", u.value]),
|
|
3961
3988
|
icon: r.icon,
|
|
3962
3989
|
"icon-pack": r.iconPack
|
|
3963
|
-
}, null, 8, ["icon", "icon-pack", "class"])) :
|
|
3964
|
-
r.icon && !t.value ? (v(), S(
|
|
3990
|
+
}, null, 8, ["icon", "icon-pack", "class"])) : C("", !0),
|
|
3991
|
+
r.icon && !t.value ? (v(), S(ie, {
|
|
3965
3992
|
key: 1,
|
|
3966
|
-
class:
|
|
3993
|
+
class: x(["ck-switch__icon-right", u.value]),
|
|
3967
3994
|
icon: r.icon,
|
|
3968
3995
|
"icon-pack": r.iconPack
|
|
3969
|
-
}, null, 8, ["icon", "icon-pack", "class"])) :
|
|
3996
|
+
}, null, 8, ["icon", "icon-pack", "class"])) : C("", !0)
|
|
3970
3997
|
]),
|
|
3971
|
-
r.$slots.default && r.switchSide !== "right" ? (v(),
|
|
3998
|
+
r.$slots.default && r.switchSide !== "right" ? (v(), _("span", {
|
|
3972
3999
|
key: 1,
|
|
3973
|
-
class:
|
|
4000
|
+
class: x(["ck-switch__content", s.value]),
|
|
3974
4001
|
style: E(p.value)
|
|
3975
4002
|
}, [
|
|
3976
|
-
|
|
3977
|
-
], 6)) :
|
|
4003
|
+
W(r.$slots, "default", {}, void 0, !0)
|
|
4004
|
+
], 6)) : C("", !0)
|
|
3978
4005
|
], 16));
|
|
3979
4006
|
}
|
|
3980
4007
|
});
|
|
3981
|
-
const Na = /* @__PURE__ */
|
|
4008
|
+
const Na = /* @__PURE__ */ j(Wa, [["__scopeId", "data-v-d143a8d0"]]), Ea = { class: "ck-switch-options" }, Fa = ["onClick", "onKeyup"], qa = /* @__PURE__ */ R({
|
|
3982
4009
|
__name: "ck-switch-options",
|
|
3983
4010
|
props: /* @__PURE__ */ ee({
|
|
3984
4011
|
options: {},
|
|
@@ -4010,53 +4037,55 @@ const Na = /* @__PURE__ */ H(Wa, [["__scopeId", "data-v-9b21ac28"]]), Ea = { cla
|
|
|
4010
4037
|
const f = [];
|
|
4011
4038
|
return l.sameWidthOptions && f.push({ width: `${100 / (l.options || []).length}%` }), f;
|
|
4012
4039
|
});
|
|
4013
|
-
function
|
|
4040
|
+
function u(f) {
|
|
4014
4041
|
return l.reduceValueFunction ? l.reduceValueFunction(f) : l.notReduceValue || l.notReduce ? f : l.reduceValueMethod ? f[l.reduceValueMethod]() : f[l.reduceValueProp];
|
|
4015
4042
|
}
|
|
4016
4043
|
function p(f) {
|
|
4017
4044
|
return l.reduceNameFunction ? l.reduceNameFunction(f) : l.notReduceName || l.notReduce ? f : l.reduceNameMethod ? f[l.reduceNameMethod]() : f[l.reduceNameProp];
|
|
4018
4045
|
}
|
|
4019
|
-
function
|
|
4020
|
-
const r =
|
|
4046
|
+
function s(f) {
|
|
4047
|
+
const r = u(f);
|
|
4021
4048
|
t.value = r, n("change", r);
|
|
4022
4049
|
}
|
|
4023
4050
|
return (f, r) => {
|
|
4024
|
-
const
|
|
4025
|
-
return v(),
|
|
4051
|
+
const k = U("ck-icon");
|
|
4052
|
+
return v(), _("div", Ea, [
|
|
4026
4053
|
f.label ? (v(), S(Me, {
|
|
4027
4054
|
key: 0,
|
|
4028
4055
|
align: f.labelAlign
|
|
4029
4056
|
}, {
|
|
4030
|
-
default:
|
|
4031
|
-
|
|
4057
|
+
default: H(() => [
|
|
4058
|
+
Z(I(f.label), 1)
|
|
4032
4059
|
]),
|
|
4033
4060
|
_: 1
|
|
4034
|
-
}, 8, ["align"])) :
|
|
4035
|
-
|
|
4036
|
-
class:
|
|
4061
|
+
}, 8, ["align"])) : C("", !0),
|
|
4062
|
+
w("div", {
|
|
4063
|
+
class: x(["switch-options--options", i.value])
|
|
4037
4064
|
}, [
|
|
4038
|
-
(v(!0),
|
|
4039
|
-
key:
|
|
4040
|
-
|
|
4065
|
+
(v(!0), _(Y, null, de(f.options, (m, h) => (v(), _("div", {
|
|
4066
|
+
key: h,
|
|
4067
|
+
tabindex: "0",
|
|
4068
|
+
class: x(["options--option", { selected: u(m) === t.value }]),
|
|
4041
4069
|
style: E(d.value),
|
|
4042
|
-
onClick: (
|
|
4070
|
+
onClick: (y) => s(m),
|
|
4071
|
+
onKeyup: _e((y) => s(m), ["enter"])
|
|
4043
4072
|
}, [
|
|
4044
|
-
m.icon ? (v(), S(
|
|
4073
|
+
m.icon ? (v(), S(k, {
|
|
4045
4074
|
key: 0,
|
|
4046
4075
|
class: "option--icon",
|
|
4047
4076
|
icon: m.icon
|
|
4048
|
-
}, null, 8, ["icon"])) :
|
|
4049
|
-
|
|
4050
|
-
],
|
|
4077
|
+
}, null, 8, ["icon"])) : C("", !0),
|
|
4078
|
+
Z(" " + I(p(m)), 1)
|
|
4079
|
+
], 46, Fa))), 128))
|
|
4051
4080
|
], 2)
|
|
4052
4081
|
]);
|
|
4053
4082
|
};
|
|
4054
4083
|
}
|
|
4055
4084
|
});
|
|
4056
|
-
const Ha = /* @__PURE__ */
|
|
4085
|
+
const Ha = /* @__PURE__ */ j(qa, [["__scopeId", "data-v-c323f4fa"]]), ja = { class: "ck-textarea" }, Ua = {
|
|
4057
4086
|
key: 0,
|
|
4058
4087
|
class: "ck-textarea__optional-label"
|
|
4059
|
-
}, Ga = ["placeholder", "disabled"], Za = 300, Ya = /* @__PURE__ */
|
|
4088
|
+
}, Ga = ["placeholder", "disabled"], Za = 300, Ya = /* @__PURE__ */ R({
|
|
4060
4089
|
__name: "ck-textarea",
|
|
4061
4090
|
props: {
|
|
4062
4091
|
modelValue: {},
|
|
@@ -4082,71 +4111,71 @@ const Ha = /* @__PURE__ */ H(qa, [["__scopeId", "data-v-a455f214"]]), ja = { cla
|
|
|
4082
4111
|
},
|
|
4083
4112
|
emits: ["update:modelValue", "input", "change", "click", "changeDelayed"],
|
|
4084
4113
|
setup(e, { emit: o }) {
|
|
4085
|
-
const t = e, l = o, { cleekOptions: n } = le(te()), a =
|
|
4114
|
+
const t = e, l = o, { cleekOptions: n } = le(te()), a = M(), { windowWidth: i } = he(), d = c({
|
|
4086
4115
|
get() {
|
|
4087
4116
|
return t.modelValue;
|
|
4088
4117
|
},
|
|
4089
4118
|
set(m) {
|
|
4090
|
-
t.capitalize && (m = ze.capitalize(m)), l("update:modelValue", m),
|
|
4119
|
+
t.capitalize && (m = ze.capitalize(m)), l("update:modelValue", m), k(m);
|
|
4091
4120
|
}
|
|
4092
|
-
}),
|
|
4093
|
-
const m = [],
|
|
4094
|
-
|
|
4095
|
-
const
|
|
4096
|
-
return
|
|
4121
|
+
}), u = c(() => {
|
|
4122
|
+
const m = [], h = t.layout || n.value.styles.layout;
|
|
4123
|
+
h && m.push(h);
|
|
4124
|
+
const y = t.borderColor || n.value.styles.borderColor;
|
|
4125
|
+
return y && L.isColorTemplateVariable(y) && m.push(`ck-component__border-color--${y}`), m.push(L.getGroupClass(t, i.value)), m;
|
|
4097
4126
|
}), p = c(() => {
|
|
4098
|
-
var k;
|
|
4099
|
-
const m = [], g = t.borderColor || ((k = n.value.styles) == null ? void 0 : k.borderColor);
|
|
4100
|
-
g && !L.isColorTemplateVariable(g) && m.push({ "border-color": g }), t.align && m.push(`align--${t.align}`), t.fontSize && m.push({ "font-size": t.fontSize }), t.borderRadius && m.push({ "border-radius": t.borderRadius }), t.textColor && m.push({ color: t.textColor }), t.width && m.push({ width: t.width }), t.height && m.push({ height: t.height });
|
|
4101
|
-
const b = t.resize ? t.resize : "none";
|
|
4102
|
-
return b && m.push({ resize: b || "both" }), m;
|
|
4103
|
-
}), u = (m) => {
|
|
4104
4127
|
var g;
|
|
4105
|
-
t.
|
|
4128
|
+
const m = [], h = t.borderColor || ((g = n.value.styles) == null ? void 0 : g.borderColor);
|
|
4129
|
+
h && !L.isColorTemplateVariable(h) && m.push({ "border-color": h }), t.align && m.push(`align--${t.align}`), t.fontSize && m.push({ "font-size": t.fontSize }), t.borderRadius && m.push({ "border-radius": t.borderRadius }), t.textColor && m.push({ color: t.textColor }), t.width && m.push({ width: t.width }), t.height && m.push({ height: t.height });
|
|
4130
|
+
const y = t.resize ? t.resize : "none";
|
|
4131
|
+
return y && m.push({ resize: y || "both" }), m;
|
|
4132
|
+
}), s = (m) => {
|
|
4133
|
+
var h;
|
|
4134
|
+
t.autoSelect && ((h = a.value) == null || h.select()), l("click", m);
|
|
4106
4135
|
}, f = (m) => {
|
|
4107
4136
|
l("input", m);
|
|
4108
4137
|
}, r = (m) => {
|
|
4109
4138
|
l("change", m);
|
|
4110
4139
|
};
|
|
4111
|
-
function
|
|
4140
|
+
function k(m) {
|
|
4112
4141
|
setTimeout(() => {
|
|
4113
4142
|
d.value === m && l("changeDelayed", m);
|
|
4114
4143
|
}, t.delayChangeTime || Za);
|
|
4115
4144
|
}
|
|
4116
|
-
return (m,
|
|
4145
|
+
return (m, h) => (v(), _("div", ja, [
|
|
4117
4146
|
m.label ? (v(), S(Me, {
|
|
4118
4147
|
key: 0,
|
|
4119
4148
|
align: m.labelAlign
|
|
4120
4149
|
}, {
|
|
4121
|
-
default:
|
|
4122
|
-
|
|
4123
|
-
m.optional ? (v(),
|
|
4150
|
+
default: H(() => [
|
|
4151
|
+
Z(I(m.label) + " ", 1),
|
|
4152
|
+
m.optional ? (v(), _("span", Ua, "opcional")) : C("", !0)
|
|
4124
4153
|
]),
|
|
4125
4154
|
_: 1
|
|
4126
|
-
}, 8, ["align"])) :
|
|
4127
|
-
|
|
4128
|
-
"onUpdate:modelValue":
|
|
4155
|
+
}, 8, ["align"])) : C("", !0),
|
|
4156
|
+
ue(w("textarea", {
|
|
4157
|
+
"onUpdate:modelValue": h[0] || (h[0] = (y) => d.value = y),
|
|
4129
4158
|
ref_key: "refTextarea",
|
|
4130
4159
|
ref: a,
|
|
4131
4160
|
placeholder: m.placeholder,
|
|
4132
4161
|
disabled: m.disabled,
|
|
4133
|
-
class:
|
|
4162
|
+
class: x(u.value),
|
|
4134
4163
|
style: E(p.value),
|
|
4135
|
-
onClick:
|
|
4136
|
-
onInput:
|
|
4137
|
-
onChange:
|
|
4164
|
+
onClick: h[1] || (h[1] = (y) => s(y)),
|
|
4165
|
+
onInput: h[2] || (h[2] = (y) => f(y)),
|
|
4166
|
+
onChange: h[3] || (h[3] = (y) => r(y))
|
|
4138
4167
|
}, null, 46, Ga), [
|
|
4139
4168
|
[We, d.value]
|
|
4140
4169
|
])
|
|
4141
4170
|
]));
|
|
4142
4171
|
}
|
|
4143
4172
|
});
|
|
4144
|
-
const Ka = /* @__PURE__ */
|
|
4173
|
+
const Ka = /* @__PURE__ */ j(Ya, [["__scopeId", "data-v-02767f25"]]), Ja = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyNy43LjAsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iQ2FwYV8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCINCgkgdmlld0JveD0iMCAwIDEwMCAxMDAiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDEwMCAxMDA7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+DQoJLnN0MHtmaWxsOiNFQTRCNEI7fQ0KPC9zdHlsZT4NCjxnPg0KCTxnPg0KCQk8Zz4NCgkJCTxyZWN0IHg9IjQ1IiB5PSI2NC45IiBjbGFzcz0ic3QwIiB3aWR0aD0iMTAiIGhlaWdodD0iMTAuMiIvPg0KCQk8L2c+DQoJPC9nPg0KCTxnPg0KCQk8Zz4NCgkJCTxyZWN0IHg9IjQ1IiB5PSIyNC45IiBjbGFzcz0ic3QwIiB3aWR0aD0iMTAiIGhlaWdodD0iMzAuMiIvPg0KCQk8L2c+DQoJPC9nPg0KPC9nPg0KPHBhdGggY2xhc3M9InN0MCIgZD0iTTY5LjIsMTYuN0w4OC41LDUwTDY5LjIsODMuM0gzMC44TDExLjUsNTBsMTkuMi0zMy4zSDY5LjIgTTc1LDYuN0gyNUwwLDUwbDI1LDQzLjNoNTBMMTAwLDUwTDc1LDYuN0w3NSw2Ljd6Ig0KCS8+DQo8L3N2Zz4NCg==", Qa = { class: "ck-confirm--background" }, Xa = { class: "ck-confirm" }, ei = { class: "ck-confirm__title" }, ti = { class: "ck-confirm__message" }, oi = { class: "ck-confirm__buttons-container" }, li = /* @__PURE__ */ R({
|
|
4145
4174
|
__name: "CkConfirm",
|
|
4146
4175
|
setup(e, { expose: o }) {
|
|
4147
|
-
const t =
|
|
4148
|
-
}), d =
|
|
4149
|
-
}),
|
|
4176
|
+
const t = M(""), l = M(""), n = M(""), a = M(""), i = M(() => {
|
|
4177
|
+
}), d = M(() => {
|
|
4178
|
+
}), u = c(() => "¿Estás seguro?"), p = c(() => "Aceptar"), s = c(() => "Cancelar");
|
|
4150
4179
|
function f() {
|
|
4151
4180
|
d.value();
|
|
4152
4181
|
}
|
|
@@ -4160,42 +4189,42 @@ const Ka = /* @__PURE__ */ H(Ya, [["__scopeId", "data-v-02767f25"]]), Ja = "data
|
|
|
4160
4189
|
cancelText: a,
|
|
4161
4190
|
responseSuccess: i,
|
|
4162
4191
|
responseFailure: d
|
|
4163
|
-
}), (
|
|
4164
|
-
|
|
4165
|
-
m[2] || (m[2] =
|
|
4166
|
-
|
|
4192
|
+
}), (k, m) => (v(), _("div", Qa, [
|
|
4193
|
+
w("div", Xa, [
|
|
4194
|
+
m[2] || (m[2] = w("div", { class: "ck-confirm__icon" }, [
|
|
4195
|
+
w("img", {
|
|
4167
4196
|
src: Ja,
|
|
4168
4197
|
height: "125"
|
|
4169
4198
|
})
|
|
4170
4199
|
], -1)),
|
|
4171
|
-
|
|
4172
|
-
|
|
4173
|
-
|
|
4174
|
-
|
|
4200
|
+
w("div", ei, I(t.value || u.value), 1),
|
|
4201
|
+
w("div", ti, I(l.value), 1),
|
|
4202
|
+
w("div", oi, [
|
|
4203
|
+
w("button", {
|
|
4175
4204
|
class: "ck-confirm__button--cancel",
|
|
4176
|
-
onClick: m[0] || (m[0] = (
|
|
4177
|
-
}, I(a.value ||
|
|
4178
|
-
|
|
4205
|
+
onClick: m[0] || (m[0] = (h) => f())
|
|
4206
|
+
}, I(a.value || s.value), 1),
|
|
4207
|
+
w("button", {
|
|
4179
4208
|
class: "ck-confirm__button--accept",
|
|
4180
|
-
onClick: m[1] || (m[1] = (
|
|
4209
|
+
onClick: m[1] || (m[1] = (h) => r())
|
|
4181
4210
|
}, I(n.value || p.value), 1)
|
|
4182
4211
|
])
|
|
4183
4212
|
])
|
|
4184
4213
|
]));
|
|
4185
4214
|
}
|
|
4186
4215
|
});
|
|
4187
|
-
const ni = /* @__PURE__ */
|
|
4216
|
+
const ni = /* @__PURE__ */ j(li, [["__scopeId", "data-v-817a5ee4"]]), ai = { class: "alert--msg" }, ii = /* @__PURE__ */ R({
|
|
4188
4217
|
__name: "CkAlert",
|
|
4189
4218
|
setup(e, { expose: o }) {
|
|
4190
|
-
const t =
|
|
4219
|
+
const t = M(""), l = M(""), n = M(""), a = M(!0), i = c(() => "Atención"), d = c(() => "Aceptar");
|
|
4191
4220
|
return o({
|
|
4192
4221
|
title: t,
|
|
4193
4222
|
msg: l,
|
|
4194
4223
|
acceptText: n
|
|
4195
|
-
}), (
|
|
4196
|
-
|
|
4224
|
+
}), (u, p) => (v(), S(Pe, { to: "body" }, [
|
|
4225
|
+
G(et, {
|
|
4197
4226
|
modelValue: a.value,
|
|
4198
|
-
"onUpdate:modelValue": p[0] || (p[0] = (
|
|
4227
|
+
"onUpdate:modelValue": p[0] || (p[0] = (s) => a.value = s),
|
|
4199
4228
|
acceptButton: "",
|
|
4200
4229
|
notCloseBtn: "",
|
|
4201
4230
|
headerColor: "primary",
|
|
@@ -4203,20 +4232,20 @@ const ni = /* @__PURE__ */ H(li, [["__scopeId", "data-v-817a5ee4"]]), ai = { cla
|
|
|
4203
4232
|
acceptBtnType: "filled",
|
|
4204
4233
|
title: t.value || i.value,
|
|
4205
4234
|
acceptBtnText: n.value || d.value,
|
|
4206
|
-
onAccept: p[1] || (p[1] = (
|
|
4235
|
+
onAccept: p[1] || (p[1] = (s) => a.value = !1)
|
|
4207
4236
|
}, {
|
|
4208
|
-
default:
|
|
4209
|
-
|
|
4237
|
+
default: H(() => [
|
|
4238
|
+
w("div", ai, I(l.value), 1)
|
|
4210
4239
|
]),
|
|
4211
4240
|
_: 1
|
|
4212
4241
|
}, 8, ["modelValue", "title", "acceptBtnText"])
|
|
4213
4242
|
]));
|
|
4214
4243
|
}
|
|
4215
4244
|
});
|
|
4216
|
-
const si = /* @__PURE__ */
|
|
4245
|
+
const si = /* @__PURE__ */ j(ii, [["__scopeId", "data-v-08c93dad"]]), ri = { class: "ck-notify__container" }, ui = { class: "ck-notify__title" }, ci = { class: "close-btn" }, di = ["innerHTML"], pi = /* @__PURE__ */ R({
|
|
4217
4246
|
__name: "CkNotify",
|
|
4218
4247
|
setup(e, { expose: o }) {
|
|
4219
|
-
const t =
|
|
4248
|
+
const t = M(!0), l = M(""), n = M(""), a = M(""), i = M(0), d = M(() => {
|
|
4220
4249
|
});
|
|
4221
4250
|
o({
|
|
4222
4251
|
title: l,
|
|
@@ -4225,7 +4254,7 @@ const si = /* @__PURE__ */ H(ii, [["__scopeId", "data-v-08c93dad"]]), ri = { cla
|
|
|
4225
4254
|
duration: i,
|
|
4226
4255
|
closeCallback: d
|
|
4227
4256
|
});
|
|
4228
|
-
const
|
|
4257
|
+
const u = c(() => {
|
|
4229
4258
|
switch (a.value) {
|
|
4230
4259
|
case "success":
|
|
4231
4260
|
return "Éxito";
|
|
@@ -4238,7 +4267,7 @@ const si = /* @__PURE__ */ H(ii, [["__scopeId", "data-v-08c93dad"]]), ri = { cla
|
|
|
4238
4267
|
}), p = c(() => {
|
|
4239
4268
|
const f = [];
|
|
4240
4269
|
return a.value && L.isColorTemplateVariable(a.value) && f.push(`ck-component__bg-color--${a.value}`), f;
|
|
4241
|
-
}),
|
|
4270
|
+
}), s = c(() => {
|
|
4242
4271
|
const f = [];
|
|
4243
4272
|
return a.value && !L.isColorTemplateVariable(a.value) && f.push({ "background-color": a.value }), f;
|
|
4244
4273
|
});
|
|
@@ -4252,30 +4281,30 @@ const si = /* @__PURE__ */ H(ii, [["__scopeId", "data-v-08c93dad"]]), ri = { cla
|
|
|
4252
4281
|
key: 0,
|
|
4253
4282
|
to: "body"
|
|
4254
4283
|
}, [
|
|
4255
|
-
|
|
4256
|
-
|
|
4257
|
-
class:
|
|
4258
|
-
style: E(
|
|
4259
|
-
onClick: r[0] || (r[0] = (
|
|
4284
|
+
w("div", ri, [
|
|
4285
|
+
w("div", {
|
|
4286
|
+
class: x(["ck-notify", p.value]),
|
|
4287
|
+
style: E(s.value),
|
|
4288
|
+
onClick: r[0] || (r[0] = (k) => {
|
|
4260
4289
|
t.value = !1, d.value();
|
|
4261
4290
|
})
|
|
4262
4291
|
}, [
|
|
4263
|
-
|
|
4264
|
-
|
|
4265
|
-
|
|
4292
|
+
w("div", ui, [
|
|
4293
|
+
w("div", ci, [
|
|
4294
|
+
G(ie, { icon: "times" })
|
|
4266
4295
|
]),
|
|
4267
|
-
|
|
4296
|
+
Z(" " + I(l.value || u.value), 1)
|
|
4268
4297
|
]),
|
|
4269
|
-
|
|
4298
|
+
w("div", {
|
|
4270
4299
|
class: "ck-notify__text",
|
|
4271
4300
|
innerHTML: n.value
|
|
4272
4301
|
}, null, 8, di)
|
|
4273
4302
|
], 6)
|
|
4274
4303
|
])
|
|
4275
|
-
])) :
|
|
4304
|
+
])) : C("", !0);
|
|
4276
4305
|
}
|
|
4277
4306
|
});
|
|
4278
|
-
const vi = /* @__PURE__ */
|
|
4307
|
+
const vi = /* @__PURE__ */ j(pi, [["__scopeId", "data-v-bb914f84"]]), fi = 3e3, mi = {
|
|
4279
4308
|
alert(e) {
|
|
4280
4309
|
this.alertOptions({
|
|
4281
4310
|
title: "",
|
|
@@ -4297,12 +4326,12 @@ const vi = /* @__PURE__ */ H(pi, [["__scopeId", "data-v-bb914f84"]]), fi = 3e3,
|
|
|
4297
4326
|
failure: a = () => {
|
|
4298
4327
|
}
|
|
4299
4328
|
}) {
|
|
4300
|
-
const i = document.createElement("div"), d = Ue(ni),
|
|
4301
|
-
|
|
4329
|
+
const i = document.createElement("div"), d = Ue(ni), u = d.mount(i);
|
|
4330
|
+
u.title = e, u.msg = o, u.acceptText = t, u.cancelText = l, u.responseSuccess = () => {
|
|
4302
4331
|
d.unmount(), n();
|
|
4303
|
-
},
|
|
4332
|
+
}, u.responseFailure = () => {
|
|
4304
4333
|
d.unmount(), a();
|
|
4305
|
-
}, document.body.appendChild(
|
|
4334
|
+
}, document.body.appendChild(u.$el);
|
|
4306
4335
|
},
|
|
4307
4336
|
confirm(e, o, t) {
|
|
4308
4337
|
this.confirmOptions({
|
|
@@ -4385,7 +4414,7 @@ const ki = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4385
4414
|
CkDatetimeShower: Vo,
|
|
4386
4415
|
CkDiv: da,
|
|
4387
4416
|
CkDropdown: Mo,
|
|
4388
|
-
CkIcon:
|
|
4417
|
+
CkIcon: ie,
|
|
4389
4418
|
CkImg: ma,
|
|
4390
4419
|
CkInput: Ct,
|
|
4391
4420
|
CkInputDate: Sn,
|
|
@@ -4393,13 +4422,13 @@ const ki = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4393
4422
|
CkLabel: Me,
|
|
4394
4423
|
CkNavbar: Ao,
|
|
4395
4424
|
CkPagination: Wl,
|
|
4396
|
-
CkPopup:
|
|
4425
|
+
CkPopup: et,
|
|
4397
4426
|
CkRadio: _a,
|
|
4398
4427
|
CkSelect: La,
|
|
4399
4428
|
CkSidebar: Aa,
|
|
4400
4429
|
CkSwitch: Na,
|
|
4401
4430
|
CkSwitchOptions: Ha,
|
|
4402
|
-
CkTab:
|
|
4431
|
+
CkTab: In,
|
|
4403
4432
|
CkTable: Ol,
|
|
4404
4433
|
CkTabs: Nn,
|
|
4405
4434
|
CkTd: bt,
|
|
@@ -4414,8 +4443,8 @@ const ki = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4414
4443
|
ckNotify: mi,
|
|
4415
4444
|
useWindowWidth: he
|
|
4416
4445
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4417
|
-
Qe.add(It);
|
|
4418
4446
|
Qe.add(xt);
|
|
4447
|
+
Qe.add(It);
|
|
4419
4448
|
Qe.add(At);
|
|
4420
4449
|
function Si(e, o) {
|
|
4421
4450
|
te().cleekOptions = ho(yt, o), e.use(bo), e.use(Mt, mo), Object.entries(ki).forEach(([t, l]) => {
|
|
@@ -4431,7 +4460,7 @@ export {
|
|
|
4431
4460
|
Vo as CkDatetimeShower,
|
|
4432
4461
|
da as CkDiv,
|
|
4433
4462
|
Mo as CkDropdown,
|
|
4434
|
-
|
|
4463
|
+
ie as CkIcon,
|
|
4435
4464
|
ma as CkImg,
|
|
4436
4465
|
Ct as CkInput,
|
|
4437
4466
|
Sn as CkInputDate,
|
|
@@ -4439,13 +4468,13 @@ export {
|
|
|
4439
4468
|
Me as CkLabel,
|
|
4440
4469
|
Ao as CkNavbar,
|
|
4441
4470
|
Wl as CkPagination,
|
|
4442
|
-
|
|
4471
|
+
et as CkPopup,
|
|
4443
4472
|
_a as CkRadio,
|
|
4444
4473
|
La as CkSelect,
|
|
4445
4474
|
Aa as CkSidebar,
|
|
4446
4475
|
Na as CkSwitch,
|
|
4447
4476
|
Ha as CkSwitchOptions,
|
|
4448
|
-
|
|
4477
|
+
In as CkTab,
|
|
4449
4478
|
Ol as CkTable,
|
|
4450
4479
|
Nn as CkTabs,
|
|
4451
4480
|
bt as CkTd,
|