cleek 2.10.74 → 2.10.76
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 +1436 -1409
- package/dist/types/components/ck-switch.vue.d.ts +6 -0
- package/dist/types/components/ck-tabs/ck-tabs.vue.d.ts +6 -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 O, resolveDirective as pt, openBlock as v, createElementBlock as y, 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
|
|
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(r) {
|
|
43
|
+
var f = r.event, s = r.handler;
|
|
44
|
+
(0, r.middleware)(f) && s(f);
|
|
45
|
+
}, d = function(r, f) {
|
|
46
|
+
var s = function(V) {
|
|
47
|
+
var R = typeof V == "function";
|
|
48
|
+
if (!R && typeof V != "object")
|
|
49
49
|
throw new Error("v-click-outside: Binding value must be a function or an object");
|
|
50
|
-
return { handler:
|
|
51
|
-
return
|
|
50
|
+
return { handler: R ? V : V.handler, middleware: V.middleware || function(D) {
|
|
51
|
+
return D;
|
|
52
52
|
}, events: V.events || a, isActive: V.isActive !== !1, detectIframe: V.detectIframe !== !1, capture: !!V.capture };
|
|
53
|
-
}(f.value),
|
|
54
|
-
if (
|
|
55
|
-
if (
|
|
56
|
-
return { event: V, srcTarget: document.documentElement, handler: function(
|
|
57
|
-
return function(
|
|
58
|
-
var
|
|
59
|
-
(
|
|
60
|
-
}({ el:
|
|
61
|
-
}, capture:
|
|
53
|
+
}(f.value), k = s.handler, m = s.middleware, g = s.detectIframe, _ = s.capture;
|
|
54
|
+
if (s.isActive) {
|
|
55
|
+
if (r[t] = s.events.map(function(V) {
|
|
56
|
+
return { event: V, srcTarget: document.documentElement, handler: function(R) {
|
|
57
|
+
return function(D) {
|
|
58
|
+
var B = D.el, P = D.event, F = D.handler, X = D.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: r, event: R, handler: k, middleware: m });
|
|
61
|
+
}, capture: _ };
|
|
62
62
|
}), g) {
|
|
63
|
-
var
|
|
64
|
-
return function(
|
|
65
|
-
var
|
|
63
|
+
var h = { event: "blur", srcTarget: window, handler: function(V) {
|
|
64
|
+
return function(R) {
|
|
65
|
+
var D = R.el, B = R.event, P = R.handler, F = R.middleware;
|
|
66
66
|
setTimeout(function() {
|
|
67
|
-
var
|
|
68
|
-
|
|
67
|
+
var X = document.activeElement;
|
|
68
|
+
X && X.tagName === "IFRAME" && !D.contains(X) && i({ event: B, handler: P, middleware: F });
|
|
69
69
|
}, 0);
|
|
70
|
-
}({ el:
|
|
71
|
-
}, capture:
|
|
72
|
-
|
|
70
|
+
}({ el: r, event: V, handler: k, middleware: m });
|
|
71
|
+
}, capture: _ };
|
|
72
|
+
r[t] = [].concat(r[t], [h]);
|
|
73
73
|
}
|
|
74
|
-
|
|
75
|
-
var
|
|
74
|
+
r[t].forEach(function(V) {
|
|
75
|
+
var R = V.event, D = V.srcTarget, B = V.handler;
|
|
76
76
|
return setTimeout(function() {
|
|
77
|
-
|
|
77
|
+
r[t] && D.addEventListener(R, B, _);
|
|
78
78
|
}, 0);
|
|
79
79
|
});
|
|
80
80
|
}
|
|
81
|
-
},
|
|
82
|
-
(
|
|
81
|
+
}, u = function(r) {
|
|
82
|
+
(r[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
|
|
87
|
-
JSON.stringify(
|
|
88
|
-
}, unmounted:
|
|
89
|
-
return { install: function(
|
|
90
|
-
|
|
84
|
+
}), delete r[t];
|
|
85
|
+
}, p = l ? { beforeMount: d, updated: function(r, f) {
|
|
86
|
+
var s = f.value, k = f.oldValue;
|
|
87
|
+
JSON.stringify(s) !== JSON.stringify(k) && (u(r), d(r, { value: s }));
|
|
88
|
+
}, unmounted: u } : {};
|
|
89
|
+
return { install: function(r) {
|
|
90
|
+
r.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, (r) => wo(r), { 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__ */ O({
|
|
186
186
|
__name: "ck-datetime-shower",
|
|
187
187
|
props: {
|
|
188
188
|
datetime: {},
|
|
@@ -194,42 +194,42 @@ const te = Ut("cleek-options", () => {
|
|
|
194
194
|
},
|
|
195
195
|
emits: ["click"],
|
|
196
196
|
setup(e, { emit: o }) {
|
|
197
|
-
const t = e, l = o, n = c(() => t.time ? t.timeInMinutes ? ye.minToHour(+t.time) : ye.minToHour(+t.time) : 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}/${
|
|
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(u) {
|
|
199
|
+
const p = String(u.getDate()).padStart(2, "0"), r = String(u.getMonth() + 1).padStart(2, "0"), f = String(u.getFullYear()).slice(-2);
|
|
200
|
+
return `${p}/${r}/${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"), r = String(u.getMinutes()).padStart(2, "0");
|
|
204
|
+
return `${p}:${r}`;
|
|
205
205
|
}
|
|
206
|
-
return (
|
|
207
|
-
const
|
|
208
|
-
return a.value ?
|
|
206
|
+
return (u, p) => {
|
|
207
|
+
const r = pt("tooltip");
|
|
208
|
+
return a.value ? u.split || u.date ? (v(), y("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(), y("span", Bo, " | " + I(n.value), 1)) :
|
|
215
|
-
])) :
|
|
213
|
+
Z(I(a.value) + " ", 1),
|
|
214
|
+
n.value ? (v(), y("span", Bo, " | " + I(n.value), 1)) : C("", !0)
|
|
215
|
+
])) : ue((v(), y("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(), y("span", $o, I(
|
|
222
|
+
[r, n.value]
|
|
223
|
+
]) : (v(), y("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__ */ O({
|
|
233
233
|
__name: "ck-time-shower",
|
|
234
234
|
props: {
|
|
235
235
|
time: {},
|
|
@@ -237,16 +237,16 @@ const H = (e, o) => {
|
|
|
237
237
|
},
|
|
238
238
|
setup(e) {
|
|
239
239
|
return (o, t) => (v(), y("span", Do, [
|
|
240
|
-
o.minutes ? (v(), y(
|
|
241
|
-
|
|
242
|
-
], 64)) : (v(), y(
|
|
243
|
-
|
|
240
|
+
o.minutes ? (v(), y(Y, { key: 0 }, [
|
|
241
|
+
Z(I($e(ye).minToHour(o.minutes)), 1)
|
|
242
|
+
], 64)) : (v(), y(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__ */ O({
|
|
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 r = [];
|
|
263
|
+
t.dark && r.push("ck-dropdown--content__dark");
|
|
264
264
|
const f = t.layout || l.value.styles.layout;
|
|
265
|
-
return f &&
|
|
265
|
+
return f && r.push(`ck-dropdown--content__${f}`), r;
|
|
266
266
|
});
|
|
267
|
-
|
|
268
|
-
if (
|
|
269
|
-
const f = document.documentElement.clientHeight,
|
|
270
|
-
|
|
267
|
+
ce(() => n.value, (r) => {
|
|
268
|
+
if (r) {
|
|
269
|
+
const f = document.documentElement.clientHeight, s = 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 = `${s - k.right}px`), d.value = m;
|
|
271
271
|
}
|
|
272
|
-
}),
|
|
273
|
-
if (
|
|
272
|
+
}), ce(() => i.value, (r) => {
|
|
273
|
+
if (r && 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 - r.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
|
|
283
|
+
}), (r, f) => {
|
|
284
|
+
const s = pt("click-outside");
|
|
285
285
|
return v(), y("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(r.$slots, "trigger", {}, void 0, !0)
|
|
295
297
|
]),
|
|
296
298
|
(v(), S(Pe, { to: "body" }, [
|
|
297
|
-
n.value ?
|
|
299
|
+
n.value ? ue((v(), y("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(r.$slots, "content", {}, void 0, !0)
|
|
305
307
|
], 6)), [
|
|
306
|
-
[
|
|
307
|
-
]) :
|
|
308
|
+
[s, () => n.value = !1]
|
|
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__ */ O({
|
|
314
316
|
__name: "ck-navbar",
|
|
315
317
|
props: {
|
|
316
318
|
backgroundColor: {},
|
|
@@ -324,7 +326,7 @@ 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 = [];
|
|
@@ -335,23 +337,23 @@ const Mo = /* @__PURE__ */ H(Po, [["__scopeId", "data-v-8bbb38d3"]]), Io = "fixe
|
|
|
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
352
|
return v(), y("tr", Ro, [
|
|
351
|
-
|
|
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__ */ O({
|
|
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, r;
|
|
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 || ((r = o.col) == null ? void 0 : r.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, r;
|
|
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 || (r = o.col) != null && r.nowrap) && i.push("no-wrap-text"), i;
|
|
420
422
|
}), n = c(() => {
|
|
421
|
-
var p,
|
|
423
|
+
var p, r, f, s, k, m, g, _, h;
|
|
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 || ((r = o.col) == null ? void 0 : r.minWidth)), (o.fixedWidth || (f = o.col) != null && f.fixedWidth) && (d = o.fixedWidth || ((s = o.col) == null ? void 0 : s.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 || (g = o.col) != null && g.fixedWidth) && (u = o.fixedWidth || ((_ = o.col) == null ? void 0 : _.fixedWidth)), u && (i.maxWidth = u), (o.maxHeight || (h = o.col) != null && h.maxHeight) && (i.maxHeight = o.maxHeight), i;
|
|
427
429
|
}), a = c(() => o.col ? L.isColumnDisplayed(o.col) : !0);
|
|
428
430
|
return (i, d) => a.value ? (v(), y("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__ */ O({
|
|
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__ */ O({
|
|
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(), y("div", Eo, I(t.value) + " - " + I(l.value) + " de " + I(a.listLength), 1)) :
|
|
477
|
+
return (a, i) => n.value ? (v(), y("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__ */ O({
|
|
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 r = "font-awesome";
|
|
497
|
+
return t.iconPack && (t.iconPack === "cleek" || t.iconPack === "feather") ? t.iconPack : r;
|
|
496
498
|
}), a = c(() => {
|
|
497
|
-
const
|
|
498
|
-
return t.color && L.isColorTemplateVariable(t.color) &&
|
|
499
|
+
const r = [];
|
|
500
|
+
return t.color && L.isColorTemplateVariable(t.color) && r.push(`ck-component__color--${t.color}`), t.size && r.push(`ck-icon__size-${t.size}`), r;
|
|
499
501
|
}), i = c(() => {
|
|
500
|
-
const
|
|
501
|
-
return t.color && !L.isColorTemplateVariable(t.color) &&
|
|
502
|
+
const r = [];
|
|
503
|
+
return t.color && !L.isColorTemplateVariable(t.color) && r.push({ color: t.color }), r;
|
|
502
504
|
});
|
|
503
|
-
function d(
|
|
504
|
-
l("click",
|
|
505
|
+
function d(r) {
|
|
506
|
+
l("click", r);
|
|
505
507
|
}
|
|
506
|
-
const
|
|
507
|
-
const
|
|
508
|
-
return `mask: url(${
|
|
508
|
+
const u = c(() => {
|
|
509
|
+
const r = `/src/assets/icons/${t.icon}.svg`;
|
|
510
|
+
return `mask: url(${r}) no-repeat center; -webkit-mask: url(${r}) no-repeat center;`;
|
|
509
511
|
}), p = c(() => {
|
|
510
|
-
const
|
|
511
|
-
return t.color ? t.color && L.isColorTemplateVariable(t.color) &&
|
|
512
|
+
const r = [];
|
|
513
|
+
return t.color ? t.color && L.isColorTemplateVariable(t.color) && r.push(`ck-component__color-background--${t.color}`) : r.push("ck-component__color--primary"), t.size && r.push("ck-icon__cleek-small"), t.size === "m" && r.push("ck-icon__cleek-medium"), t.size === "l" && r.push("ck-icon__cleek-large"), r;
|
|
512
514
|
});
|
|
513
|
-
return (
|
|
514
|
-
class:
|
|
515
|
+
return (r, f) => (v(), y("div", {
|
|
516
|
+
class: x(["ck-icon", a.value]),
|
|
515
517
|
style: E(i.value),
|
|
516
|
-
onClick: f[0] || (f[0] = (
|
|
518
|
+
onClick: f[0] || (f[0] = (s) => d(s))
|
|
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:
|
|
522
|
+
icon: r.icon,
|
|
523
|
+
rotation: r.rotation,
|
|
524
|
+
flip: r.flip,
|
|
525
|
+
spin: r.spin,
|
|
526
|
+
pulse: r.pulse,
|
|
527
|
+
fixedWidth: r.fixedWidth
|
|
526
528
|
}, null, 8, ["icon", "rotation", "flip", "spin", "pulse", "fixedWidth"])) : n.value === "cleek" ? (v(), y("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__ */ O({
|
|
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),
|
|
577
|
-
const
|
|
578
|
-
|
|
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(() => {
|
|
579
|
+
const s = [];
|
|
580
|
+
s.push(L.getGroupClass(t, a.value)), (t.color || it) !== it && (i.value === "filled" ? s.push(`ck-component__bg-color--${t.color}`) : s.push(`ck-component__border-color--${t.color}`)), d.value !== Ze && L.isColorTemplateVariable(d.value) && s.push(`ck-component__bg-color--${d.value}`), u.value && L.isColorTemplateVariable(u.value) && s.push(`ck-component__color--${u.value}`);
|
|
579
581
|
const m = t.align || Go;
|
|
580
|
-
(m === "center" || m === "right") &&
|
|
582
|
+
(m === "center" || m === "right") && s.push(`ck-button__align--${t.align}`);
|
|
581
583
|
const g = t.layout || n.value.styles.layout;
|
|
582
|
-
return g &&
|
|
583
|
-
}),
|
|
584
|
-
const
|
|
585
|
-
let
|
|
584
|
+
return g && s.push(g), s.push(`type-${i.value}`), t.size && s.push(`ck-button-size__${t.size}`), t.isLoading && s.push("is-loading-btn"), s;
|
|
585
|
+
}), r = c(() => {
|
|
586
|
+
const s = [];
|
|
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, s.push({ width: m }));
|
|
589
591
|
}
|
|
590
|
-
return
|
|
592
|
+
return u.value && !L.isColorTemplateVariable(u.value) && s.push({ color: `${u.value} !important` }), t.width && !k && s.push({ width: t.width }), d.value !== Ze && !L.isColorTemplateVariable(d.value) && s.push({ "background-color": d.value }), t.color && !L.isColorTemplateVariable(t.color) && (i.value === "outlined" ? (s.push({ "border-color": t.color }), s.push({ color: t.color })) : i.value === "filled" ? (s.push({ color: "white" }), s.push({ "border-color": t.color }), s.push({ "background-color": t.color })) : i.value === "flat" && s.push({ color: t.color })), s;
|
|
591
593
|
});
|
|
592
|
-
function f(
|
|
593
|
-
t.isLoading || l("click",
|
|
594
|
+
function f(s) {
|
|
595
|
+
t.isLoading || l("click", s);
|
|
594
596
|
}
|
|
595
|
-
return (
|
|
597
|
+
return (s, k) => (v(), y("button", {
|
|
596
598
|
type: "button",
|
|
597
|
-
class:
|
|
598
|
-
title:
|
|
599
|
-
"aria-label":
|
|
600
|
-
disabled:
|
|
601
|
-
tabindex:
|
|
602
|
-
style: E(
|
|
603
|
-
onClick:
|
|
599
|
+
class: x(p.value),
|
|
600
|
+
title: s.title,
|
|
601
|
+
"aria-label": s.title,
|
|
602
|
+
disabled: s.disabled,
|
|
603
|
+
tabindex: s.tabindex,
|
|
604
|
+
style: E(r.value),
|
|
605
|
+
onClick: k[0] || (k[0] = (m) => f(m))
|
|
604
606
|
}, [
|
|
605
|
-
|
|
607
|
+
s.isLoading ? (v(), S(ie, {
|
|
606
608
|
key: 0,
|
|
607
609
|
icon: "spinner",
|
|
608
610
|
spin: ""
|
|
609
|
-
})) : (v(), y(
|
|
610
|
-
|
|
611
|
+
})) : (v(), y(Y, { key: 1 }, [
|
|
612
|
+
s.icon ? (v(), S(ie, {
|
|
611
613
|
key: 0,
|
|
612
|
-
class:
|
|
613
|
-
icon:
|
|
614
|
-
"icon-pack":
|
|
615
|
-
}, null, 8, ["icon", "icon-pack", "class"])) :
|
|
616
|
-
|
|
617
|
-
|
|
614
|
+
class: x(["ck-button__icon-left", { "just-icon": !s.$slots.default }]),
|
|
615
|
+
icon: s.icon,
|
|
616
|
+
"icon-pack": s.iconPack
|
|
617
|
+
}, null, 8, ["icon", "icon-pack", "class"])) : C("", !0),
|
|
618
|
+
W(s.$slots, "default", {}, void 0, !0),
|
|
619
|
+
s.iconRight ? (v(), S(ie, {
|
|
618
620
|
key: 1,
|
|
619
|
-
class:
|
|
620
|
-
icon:
|
|
621
|
-
"icon-pack":
|
|
622
|
-
}, null, 8, ["icon", "icon-pack", "class"])) :
|
|
621
|
+
class: x(["ck-button__icon-right", { "just-icon": !s.$slots.default }]),
|
|
622
|
+
icon: s.iconRight,
|
|
623
|
+
"icon-pack": s.iconPack
|
|
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__ */ O({
|
|
628
630
|
__name: "ck-label",
|
|
629
631
|
props: {
|
|
630
632
|
for: {},
|
|
@@ -642,18 +644,18 @@ const Oe = /* @__PURE__ */ H(Zo, [["__scopeId", "data-v-bce5585d"]]), Yo = ["for
|
|
|
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
646
|
return (a, i) => (v(), y("label", {
|
|
645
|
-
class:
|
|
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__ */ O({
|
|
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: h, select: V });
|
|
700
|
+
const { cleekOptions: i } = le(te()), { windowWidth: d } = he(), u = M(), p = M(""), r = M(!1), f = c(() => r.value ? "text" : n.plusMinusButtons ? "number" : n.type), s = 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
|
|
707
|
+
return $;
|
|
706
708
|
}), g = c(() => {
|
|
707
|
-
const
|
|
708
|
-
|
|
709
|
-
let
|
|
710
|
-
n.plusMinusButtons && (
|
|
711
|
-
const
|
|
712
|
-
|
|
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
|
+
}), _ = 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 h() {
|
|
733
|
+
var $;
|
|
734
|
+
($ = u.value) == null || $.focus();
|
|
733
735
|
}
|
|
734
736
|
function V() {
|
|
735
|
-
var
|
|
736
|
-
(
|
|
737
|
+
var $;
|
|
738
|
+
($ = u.value) == null || $.select();
|
|
737
739
|
}
|
|
738
|
-
function
|
|
739
|
-
a("input",
|
|
740
|
-
l.value ===
|
|
740
|
+
function R($) {
|
|
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 D($) {
|
|
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
|
+
R($);
|
|
755
757
|
}
|
|
756
|
-
function
|
|
757
|
-
|
|
758
|
+
function F() {
|
|
759
|
+
D(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
|
+
R($), D($);
|
|
768
770
|
}
|
|
769
771
|
function T() {
|
|
770
|
-
const
|
|
771
|
-
|
|
772
|
+
const $ = se(+p.value + 1);
|
|
773
|
+
R($), D($);
|
|
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()), s.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 && (h(), B(null));
|
|
785
|
+
}), ($, A) => {
|
|
784
786
|
var oe;
|
|
785
|
-
const
|
|
787
|
+
const Q = U("ck-button");
|
|
786
788
|
return v(), y("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(), y("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(g.value),
|
|
830
|
+
style: E(_.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(), y("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) => r.value = !r.value)
|
|
842
844
|
}, [
|
|
843
|
-
|
|
844
|
-
icon:
|
|
845
|
+
G(ie, {
|
|
846
|
+
icon: r.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) => T())
|
|
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__ */ O({
|
|
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 r = p;
|
|
894
896
|
setTimeout(() => {
|
|
895
|
-
|
|
897
|
+
r === t.value && n("refreshList", !1);
|
|
896
898
|
}, 1e3);
|
|
897
899
|
}
|
|
898
|
-
return (p,
|
|
899
|
-
class:
|
|
900
|
+
return (p, r) => (v(), y("div", {
|
|
901
|
+
class: x(["ck-table__header-items", i.value])
|
|
900
902
|
}, [
|
|
901
903
|
p.$slots.headerActionsLeft ? (v(), y("div", ll, [
|
|
902
|
-
|
|
903
|
-
])) :
|
|
904
|
-
!p.hideHeaderActions && a.value ? (v(), y(
|
|
905
|
-
p.hideRefreshBtn ?
|
|
904
|
+
W(p.$slots, "headerActionsLeft", {}, void 0, !0)
|
|
905
|
+
])) : C("", !0),
|
|
906
|
+
!p.hideHeaderActions && a.value ? (v(), y(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: r[0] || (r[0] = (f) => d())
|
|
915
917
|
}, null, 8, ["icon", "isLoading"])),
|
|
916
|
-
|
|
918
|
+
G(Ct, {
|
|
917
919
|
modelValue: t.value,
|
|
918
|
-
"onUpdate:modelValue":
|
|
920
|
+
"onUpdate:modelValue": r[1] || (r[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: r[2] || (r[2] = (f) => u(f))
|
|
925
927
|
}, null, 8, ["modelValue", "borderColor"])
|
|
926
|
-
], 64)) :
|
|
928
|
+
], 64)) : C("", !0),
|
|
927
929
|
p.$slots.headerActionsRight ? (v(), y("div", nl, [
|
|
928
|
-
|
|
929
|
-
])) :
|
|
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__ */ O({
|
|
934
936
|
__name: "ck-table__pagination",
|
|
935
937
|
props: {
|
|
936
938
|
totalPages: {},
|
|
@@ -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(() => !!r.value.length), p = c(() => {
|
|
959
961
|
if (!t.listLength)
|
|
960
962
|
return [];
|
|
961
|
-
const g = [],
|
|
962
|
-
for (const
|
|
963
|
-
const V = t.currentPage -
|
|
963
|
+
const g = [], _ = (rt - 1) / 2;
|
|
964
|
+
for (const h of Array(_).keys()) {
|
|
965
|
+
const V = t.currentPage - h - 1;
|
|
964
966
|
V > 0 && g.unshift(V);
|
|
965
967
|
}
|
|
966
968
|
return g;
|
|
967
|
-
}),
|
|
969
|
+
}), r = c(() => {
|
|
968
970
|
if (!t.listLength)
|
|
969
971
|
return [];
|
|
970
|
-
const g = [],
|
|
971
|
-
for (const
|
|
972
|
-
const V = t.currentPage +
|
|
972
|
+
const g = [], _ = (rt - 1) / 2;
|
|
973
|
+
for (const h of Array(_).keys()) {
|
|
974
|
+
const V = t.currentPage + h + 1;
|
|
973
975
|
V <= t.totalPages && g.push(V);
|
|
974
976
|
}
|
|
975
977
|
return g;
|
|
976
978
|
}), f = c(() => {
|
|
977
|
-
const g = [],
|
|
978
|
-
|
|
979
|
-
const
|
|
980
|
-
return
|
|
979
|
+
const g = [], _ = t.align || "center";
|
|
980
|
+
_ && g.push(`pagination-align--${_ || "center"}`);
|
|
981
|
+
const h = t.layout || n.value.styles.layout;
|
|
982
|
+
return h && g.push(h), g;
|
|
981
983
|
});
|
|
982
|
-
|
|
983
|
-
function
|
|
984
|
-
let
|
|
985
|
-
|
|
984
|
+
ce(() => a.value, () => l("refreshList"));
|
|
985
|
+
function s(g) {
|
|
986
|
+
let _ = +g.value;
|
|
987
|
+
_ > t.totalPages && (_ = t.totalPages), _ < 1 && (_ = 1), t.currentPage === _ ? g.value = `${_}` : a.value = _;
|
|
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 (g,
|
|
994
|
-
class:
|
|
995
|
+
return (g, _) => (v(), y("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: _[0] || (_[0] = (h) => 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), y(
|
|
1007
|
+
w("div", rl, [
|
|
1008
|
+
(v(!0), y(Y, null, de(p.value, (h) => (v(), y("div", {
|
|
1007
1009
|
class: "ck-table__pagination-item--left",
|
|
1008
|
-
onClick: (V) => a.value =
|
|
1009
|
-
}, I(
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
"onUpdate:modelValue":
|
|
1010
|
+
onClick: (V) => a.value = h
|
|
1011
|
+
}, I(h), 9, ul))), 256)),
|
|
1012
|
+
w("div", cl, [
|
|
1013
|
+
ue(w("input", {
|
|
1014
|
+
"onUpdate:modelValue": _[1] || (_[1] = (h) => i.value = h),
|
|
1013
1015
|
class: "ck-table__pagination-input",
|
|
1014
1016
|
type: "number",
|
|
1015
|
-
onClick:
|
|
1016
|
-
onChange:
|
|
1017
|
+
onClick: _[2] || (_[2] = (h) => h.target.select()),
|
|
1018
|
+
onChange: _[3] || (_[3] = (h) => s(h.target))
|
|
1017
1019
|
}, null, 544), [
|
|
1018
1020
|
[We, i.value]
|
|
1019
1021
|
]),
|
|
1020
|
-
|
|
1022
|
+
_[5] || (_[5] = w("div", { class: "ck-table__pagination--input-pointer" }, null, -1))
|
|
1021
1023
|
]),
|
|
1022
|
-
(v(!0), y(
|
|
1024
|
+
(v(!0), y(Y, null, de(r.value, (h) => (v(), y("div", {
|
|
1023
1025
|
class: "ck-table__pagination-item--right",
|
|
1024
|
-
onClick: (V) => a.value =
|
|
1025
|
-
}, I(
|
|
1026
|
+
onClick: (V) => a.value = h
|
|
1027
|
+
}, I(h), 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: _[4] || (_[4] = (h) => 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__ */ O({
|
|
1040
1042
|
__name: "ck-checkbox",
|
|
1041
1043
|
props: /* @__PURE__ */ ee({
|
|
1042
1044
|
label: {},
|
|
@@ -1056,67 +1058,67 @@ const vl = /* @__PURE__ */ H(pl, [["__scopeId", "data-v-a399c4bf"]]), fl = ["dis
|
|
|
1056
1058
|
"aria-disabled": l.disabled,
|
|
1057
1059
|
tabindex: l.disabled ? void 0 : "0"
|
|
1058
1060
|
})), i = c(() => {
|
|
1059
|
-
const
|
|
1060
|
-
return l.size &&
|
|
1061
|
+
const s = [];
|
|
1062
|
+
return l.size && s.push(`size__${l.size}`), s;
|
|
1061
1063
|
}), d = c(() => {
|
|
1062
|
-
const
|
|
1063
|
-
return l.color && L.isColorTemplateVariable(l.color) && (
|
|
1064
|
-
}), s = c(() => {
|
|
1065
|
-
const r = [];
|
|
1066
|
-
return l.color && !L.isColorTemplateVariable(l.color) && (r.push({ borderColor: l.color }), (t.value || t.value === null) && r.push({ backgroundColor: l.color })), r;
|
|
1067
|
-
}), p = c(() => {
|
|
1068
|
-
const r = [];
|
|
1069
|
-
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;
|
|
1064
|
+
const s = [];
|
|
1065
|
+
return l.color && L.isColorTemplateVariable(l.color) && (s.push(`ck-component__border-color--${l.color}`), (t.value || t.value === null) && s.push(`ck-component__color-background--${l.color}`)), s;
|
|
1070
1066
|
}), u = c(() => {
|
|
1071
|
-
const
|
|
1072
|
-
return l.
|
|
1067
|
+
const s = [];
|
|
1068
|
+
return l.color && !L.isColorTemplateVariable(l.color) && (s.push({ borderColor: l.color }), (t.value || t.value === null) && s.push({ backgroundColor: l.color })), s;
|
|
1069
|
+
}), p = c(() => {
|
|
1070
|
+
const s = [];
|
|
1071
|
+
return l.colorText && L.isColorTemplateVariable(l.colorText) && s.push(`ck-component__color--${l.colorText}`), l.textSize && l.textSize !== gl && s.push(`ck-checkbox--label-text-size--${l.textSize}`), s;
|
|
1072
|
+
}), r = c(() => {
|
|
1073
|
+
const s = [];
|
|
1074
|
+
return l.colorText && !L.isColorTemplateVariable(l.colorText) && s.push({ color: l.colorText }), s;
|
|
1073
1075
|
});
|
|
1074
1076
|
function f() {
|
|
1075
1077
|
l.preventAutoUpdate || (t.value = !t.value);
|
|
1076
1078
|
}
|
|
1077
|
-
return (
|
|
1079
|
+
return (s, k) => (v(), y("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
|
-
disabled:
|
|
1093
|
+
disabled: s.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
|
-
|
|
1105
|
+
s.label || s.$slots.default ? (v(), y("span", {
|
|
1104
1106
|
key: 0,
|
|
1105
|
-
class:
|
|
1106
|
-
style: E(
|
|
1107
|
-
onClick:
|
|
1107
|
+
class: x(["ck-checkbox--label", p.value]),
|
|
1108
|
+
style: E(r.value),
|
|
1109
|
+
onClick: k[3] || (k[3] = re(() => {
|
|
1108
1110
|
}, ["prevent"]))
|
|
1109
1111
|
}, [
|
|
1110
|
-
|
|
1112
|
+
s.label ? (v(), y("span", {
|
|
1111
1113
|
key: 0,
|
|
1112
|
-
textContent: I(
|
|
1113
|
-
}, null, 8, ml)) :
|
|
1114
|
-
|
|
1115
|
-
], 6)) :
|
|
1114
|
+
textContent: I(s.label)
|
|
1115
|
+
}, null, 8, ml)) : C("", !0),
|
|
1116
|
+
W(s.$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__ */ O({
|
|
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
|
+
}), r = 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"), s = 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"), g = c(() => l.cancelBtnText ? l.cancelBtnText : a.value.lang === "es" ? "Cancelar" : "Cancel");
|
|
1195
|
+
ce(() => t.value, (B) => $t(!B));
|
|
1196
|
+
function _() {
|
|
1195
1197
|
t.value = !1, n("close");
|
|
1196
1198
|
}
|
|
1197
|
-
function
|
|
1198
|
-
n("cancel"), l.preventCloseOnCancel ||
|
|
1199
|
+
function h() {
|
|
1200
|
+
n("cancel"), l.preventCloseOnCancel || _();
|
|
1199
1201
|
}
|
|
1200
1202
|
function V() {
|
|
1201
1203
|
n("accept");
|
|
1202
1204
|
}
|
|
1203
|
-
function
|
|
1204
|
-
l.notCloseByBg || l.notClose ||
|
|
1205
|
+
function R() {
|
|
1206
|
+
l.notCloseByBg || l.notClose || _();
|
|
1207
|
+
}
|
|
1208
|
+
function D(B) {
|
|
1209
|
+
B.key === "Escape" && R();
|
|
1205
1210
|
}
|
|
1206
|
-
return (
|
|
1211
|
+
return be(() => {
|
|
1212
|
+
window.addEventListener("keydown", D);
|
|
1213
|
+
}), Xe(() => {
|
|
1214
|
+
window.removeEventListener("keydown", D);
|
|
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) => R())
|
|
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", r.value]),
|
|
1233
|
+
style: E(u.value)
|
|
1225
1234
|
}, [
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1235
|
+
B.title ? (v(), y("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) => _())
|
|
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(), y("div", _l, [
|
|
1251
|
+
w("div", bl, [
|
|
1252
|
+
W(B.$slots, "footer")
|
|
1244
1253
|
]),
|
|
1245
|
-
|
|
1246
|
-
|
|
1254
|
+
B.confirmButtons || B.acceptButton || B.cancelButton ? (v(), y("div", Cl, [
|
|
1255
|
+
B.confirmButtons || B.cancelButton ? (v(), S(Oe, {
|
|
1247
1256
|
key: 0,
|
|
1248
1257
|
color: "danger",
|
|
1249
|
-
type:
|
|
1250
|
-
onClick:
|
|
1258
|
+
type: s.value,
|
|
1259
|
+
onClick: P[1] || (P[1] = (F) => h())
|
|
1251
1260
|
}, {
|
|
1252
|
-
default:
|
|
1253
|
-
|
|
1261
|
+
default: H(() => [
|
|
1262
|
+
Z(I(g.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) => V())
|
|
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__ */ O({
|
|
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] = (r) => a.value = r),
|
|
1316
1325
|
title: "Administrador de columnas"
|
|
1317
1326
|
}, {
|
|
1318
|
-
default:
|
|
1319
|
-
|
|
1320
|
-
(v(!0), y(
|
|
1327
|
+
default: H(() => [
|
|
1328
|
+
w("div", wl, [
|
|
1329
|
+
(v(!0), y(Y, null, de($e(n), (r, f) => (v(), y("div", {
|
|
1321
1330
|
class: "columns-manger__item",
|
|
1322
1331
|
key: f
|
|
1323
1332
|
}, [
|
|
1324
|
-
|
|
1325
|
-
modelValue:
|
|
1326
|
-
"onUpdate:modelValue": (
|
|
1327
|
-
onClick: (
|
|
1333
|
+
G(wt, {
|
|
1334
|
+
modelValue: r.value,
|
|
1335
|
+
"onUpdate:modelValue": (s) => r.value = s,
|
|
1336
|
+
onClick: (s) => d(r.name, r.value)
|
|
1328
1337
|
}, {
|
|
1329
|
-
default:
|
|
1330
|
-
|
|
1338
|
+
default: H(() => [
|
|
1339
|
+
Z(I(r.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__ */ O({
|
|
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"), r = U("ck-tr");
|
|
1362
|
+
return l.value ? (v(), S(r, { 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(), y(
|
|
1362
|
-
|
|
1369
|
+
default: H(() => [
|
|
1370
|
+
i.isLoading ? (v(), y(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(), y(
|
|
1369
|
-
|
|
1370
|
-
], 64)) :
|
|
1376
|
+
Z(" " + I(n.value), 1)
|
|
1377
|
+
], 64)) : l.value ? (v(), y(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__ */ O({
|
|
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), r = c(() => Math.ceil(l.listLength / l.itemsPerPage)), f = c(() => l.version ? l.version : a.value ? a.value.table.version : "default"), s = c(() => {
|
|
1432
1441
|
if (l.headerTextColor)
|
|
1433
1442
|
return l.headerTextColor;
|
|
1434
1443
|
if (a.value) {
|
|
@@ -1437,24 +1446,24 @@ 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(() => !
|
|
1454
|
+
}), m = c(() => !h.value[h.value.length - 1].title), g = c(() => !Gt.isArray(l.columns || [])), _ = c(() => {
|
|
1446
1455
|
if (g.value) {
|
|
1447
|
-
const
|
|
1448
|
-
return
|
|
1449
|
-
const
|
|
1450
|
-
|
|
1451
|
-
}),
|
|
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
1462
|
const T = [];
|
|
1454
|
-
return (l.columns || []).forEach((
|
|
1455
|
-
typeof
|
|
1463
|
+
return (l.columns || []).forEach((q) => {
|
|
1464
|
+
typeof q == "string" ? T.push({ title: q }) : T.push(q);
|
|
1456
1465
|
}), T;
|
|
1457
|
-
}),
|
|
1466
|
+
}), h = c(() => _.value.filter(L.isColumnDisplayed)), V = c({
|
|
1458
1467
|
// @ts-ignore
|
|
1459
1468
|
get() {
|
|
1460
1469
|
return l.search;
|
|
@@ -1462,183 +1471,183 @@ const rt = /* @__PURE__ */ H(Tl, [["__scopeId", "data-v-0731cbef"]]), Vl = { cla
|
|
|
1462
1471
|
set(T) {
|
|
1463
1472
|
n("update:search", T);
|
|
1464
1473
|
}
|
|
1465
|
-
}),
|
|
1474
|
+
}), R = c({
|
|
1466
1475
|
get() {
|
|
1467
1476
|
return l.currentPage || 0;
|
|
1468
1477
|
},
|
|
1469
1478
|
set(T) {
|
|
1470
1479
|
n("update:currentPage", T);
|
|
1471
1480
|
}
|
|
1472
|
-
}),
|
|
1473
|
-
function
|
|
1481
|
+
}), D = c(() => l.layout || a.value.styles.layout), B = c(() => i.value <= (+l.mobileMaxWidth || 0));
|
|
1482
|
+
function P(T = !1) {
|
|
1474
1483
|
n("refreshList", T);
|
|
1475
1484
|
}
|
|
1476
|
-
function
|
|
1485
|
+
function F() {
|
|
1477
1486
|
g.value ? d.value.columnsManager = !0 : console.log("ERROR ck-table", "The columns list should be an object");
|
|
1478
1487
|
}
|
|
1479
|
-
const
|
|
1480
|
-
var
|
|
1488
|
+
const X = c(() => {
|
|
1489
|
+
var se;
|
|
1481
1490
|
const T = [];
|
|
1482
|
-
return l.cellPadding && T.push(`table__cell-padding--${l.cellPadding}`), l.cellPaddingY && T.push(`table__cell-padding-y--${l.cellPaddingY}`), l.notFullWidth && T.push("not-full-width"), p.value && T.push("dark-mode"), (l.striped || ((
|
|
1483
|
-
}),
|
|
1484
|
-
const T = l.rows.map((
|
|
1491
|
+
return l.cellPadding && T.push(`table__cell-padding--${l.cellPadding}`), l.cellPaddingY && T.push(`table__cell-padding-y--${l.cellPaddingY}`), l.notFullWidth && T.push("not-full-width"), p.value && T.push("dark-mode"), (l.striped || ((se = a.value.table) == null ? void 0 : se.striped)) && T.push("striped-table"), T;
|
|
1492
|
+
}), ne = c(() => {
|
|
1493
|
+
const T = l.rows.map((q) => q[De]);
|
|
1485
1494
|
if (t.value.areAllRowsSelecteds(T))
|
|
1486
1495
|
return !0;
|
|
1487
1496
|
if (!t.value.isAnyRowsSelected(T))
|
|
1488
1497
|
return !1;
|
|
1489
1498
|
});
|
|
1490
|
-
function
|
|
1491
|
-
const T = l.rows.map((
|
|
1492
|
-
|
|
1499
|
+
function we() {
|
|
1500
|
+
const T = l.rows.map((q) => q[De]);
|
|
1501
|
+
ne.value ? t.value.removeManyRows(T) : t.value.addManyRows(T);
|
|
1493
1502
|
}
|
|
1494
|
-
return (T,
|
|
1495
|
-
var oe,
|
|
1496
|
-
const
|
|
1497
|
-
return v(), y(
|
|
1503
|
+
return (T, 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(Y, null, [
|
|
1498
1507
|
T.hasColumnsManager && g.value ? (v(), S(Bl, {
|
|
1499
1508
|
key: 0,
|
|
1500
1509
|
modelValue: d.value.columnsManager,
|
|
1501
|
-
"onUpdate:modelValue":
|
|
1510
|
+
"onUpdate:modelValue": q[0] || (q[0] = (K) => d.value.columnsManager = K),
|
|
1502
1511
|
isLoading: T.isLoading,
|
|
1503
|
-
columnsArray:
|
|
1512
|
+
columnsArray: _.value,
|
|
1504
1513
|
columns: T.columns || []
|
|
1505
|
-
}, null, 8, ["modelValue", "isLoading", "columnsArray", "columns"])) :
|
|
1506
|
-
|
|
1514
|
+
}, null, 8, ["modelValue", "isLoading", "columnsArray", "columns"])) : C("", !0),
|
|
1515
|
+
w("div", Vl, [
|
|
1507
1516
|
T.$slots.header || !T.hideHeaderActions ? (v(), y("div", Dl, [
|
|
1508
|
-
|
|
1517
|
+
G(il, {
|
|
1509
1518
|
modelValue: V.value,
|
|
1510
|
-
"onUpdate:modelValue":
|
|
1519
|
+
"onUpdate:modelValue": q[1] || (q[1] = (K) => V.value = K),
|
|
1511
1520
|
hideHeaderActions: T.hideHeaderActions,
|
|
1512
1521
|
hideRefreshBtn: T.hideRefreshBtn,
|
|
1513
|
-
layout:
|
|
1522
|
+
layout: D.value,
|
|
1514
1523
|
version: f.value,
|
|
1515
1524
|
isLoading: T.isLoading,
|
|
1516
|
-
onRefreshList:
|
|
1525
|
+
onRefreshList: q[2] || (q[2] = (K) => P(K))
|
|
1517
1526
|
}, {
|
|
1518
|
-
headerActionsLeft:
|
|
1519
|
-
|
|
1527
|
+
headerActionsLeft: H(() => [
|
|
1528
|
+
W(T.$slots, "headerActionsLeft", {}, void 0, !0)
|
|
1520
1529
|
]),
|
|
1521
|
-
headerActionsRight:
|
|
1522
|
-
|
|
1530
|
+
headerActionsRight: H(() => [
|
|
1531
|
+
W(T.$slots, "headerActionsRight", {}, void 0, !0)
|
|
1523
1532
|
]),
|
|
1524
1533
|
_: 3
|
|
1525
1534
|
}, 8, ["modelValue", "hideHeaderActions", "hideRefreshBtn", "layout", "version", "isLoading"]),
|
|
1526
1535
|
T.$slots.header ? (v(), y("div", {
|
|
1527
1536
|
key: 0,
|
|
1528
|
-
class:
|
|
1537
|
+
class: x(["ck-table__header--slot", { "full-width": T.hideHeaderActions }])
|
|
1529
1538
|
}, [
|
|
1530
|
-
|
|
1531
|
-
], 2)) :
|
|
1532
|
-
])) :
|
|
1539
|
+
W(T.$slots, "header", {}, void 0, !0)
|
|
1540
|
+
], 2)) : C("", !0)
|
|
1541
|
+
])) : C("", !0),
|
|
1533
1542
|
T.$slots.headerBottom ? (v(), y("div", Ll, [
|
|
1534
|
-
|
|
1535
|
-
])) :
|
|
1536
|
-
|
|
1537
|
-
(
|
|
1538
|
-
|
|
1539
|
-
|
|
1543
|
+
W(T.$slots, "headerBottom", {}, void 0, !0)
|
|
1544
|
+
])) : C("", !0),
|
|
1545
|
+
u.value || h.value.length && !(T.$slots.mobile && B.value) ? (v(), y("div", Sl, [
|
|
1546
|
+
(ae = (oe = t.value) == null ? void 0 : oe.ids) != null && ae.size ? (v(), y("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
|
-
T.currentPage &&
|
|
1568
|
+
W(T.$slots, "selectedRowsActions", {}, void 0, !0),
|
|
1569
|
+
T.currentPage && r.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(), y("div", {
|
|
1573
1582
|
key: 3,
|
|
1574
|
-
class:
|
|
1583
|
+
class: x(["ck-table__table-container", { "not-overflow": T.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(), y("thead", xl, [
|
|
1589
|
+
w("tr", null, [
|
|
1590
|
+
u.value ? (v(), y("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), y(
|
|
1592
|
-
align:
|
|
1593
|
-
"min-width":
|
|
1594
|
-
textColor:
|
|
1595
|
-
backgroundColor:
|
|
1599
|
+
])) : C("", !0),
|
|
1600
|
+
(v(!0), y(Y, null, de(h.value, (K, Be) => (v(), S(Q, {
|
|
1601
|
+
align: K.align,
|
|
1602
|
+
"min-width": K.minWidth,
|
|
1603
|
+
textColor: s.value,
|
|
1604
|
+
backgroundColor: k.value
|
|
1596
1605
|
}, {
|
|
1597
|
-
default:
|
|
1598
|
-
|
|
1599
|
-
Be ===
|
|
1606
|
+
default: H(() => [
|
|
1607
|
+
Z(I(K.title) + " ", 1),
|
|
1608
|
+
Be === h.value.length - 1 && T.hasColumnsManager ? (v(), y("div", {
|
|
1600
1609
|
key: 0,
|
|
1601
1610
|
style: E(m.value ? "" : { "margin-left": "auto", "padding-left": "1rem" })
|
|
1602
1611
|
}, [
|
|
1603
|
-
|
|
1612
|
+
G(No, {
|
|
1604
1613
|
layout: T.layout,
|
|
1605
|
-
onClick:
|
|
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), y(
|
|
1617
|
-
key:
|
|
1622
|
+
w("tbody", null, [
|
|
1623
|
+
W(T.$slots, "default", {}, void 0, !0),
|
|
1624
|
+
W(T.$slots, "desktop", {}, void 0, !0),
|
|
1625
|
+
(v(!0), y(Y, null, de(T.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(T.$slots, "row", {
|
|
1644
|
+
row: K,
|
|
1636
1645
|
rowIndex: Be
|
|
1637
1646
|
}, void 0, !0)
|
|
1638
1647
|
]),
|
|
1639
1648
|
_: 2
|
|
1640
1649
|
}, 1024))), 128)),
|
|
1641
|
-
|
|
1650
|
+
G(ut, {
|
|
1642
1651
|
listLength: T.listLength,
|
|
1643
1652
|
isLoading: T.isLoading,
|
|
1644
1653
|
loadingText: T.loadingText,
|
|
@@ -1646,43 +1655,43 @@ const rt = /* @__PURE__ */ H(Tl, [["__scopeId", "data-v-0731cbef"]]), Vl = { cla
|
|
|
1646
1655
|
}, null, 8, ["listLength", "isLoading", "loadingText", "noResultsText"])
|
|
1647
1656
|
]),
|
|
1648
1657
|
T.$slots.footer ? (v(), y("tfoot", Al, [
|
|
1649
|
-
|
|
1650
|
-
])) :
|
|
1658
|
+
W(T.$slots, "footer", {}, void 0, !0)
|
|
1659
|
+
])) : C("", !0)
|
|
1651
1660
|
], 2)
|
|
1652
1661
|
], 2)),
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1662
|
+
B.value ? (v(), y("div", zl, [
|
|
1663
|
+
W(T.$slots, "mobile", {}, void 0, !0),
|
|
1664
|
+
G(ut, {
|
|
1656
1665
|
listLength: T.listLength,
|
|
1657
1666
|
isLoading: T.isLoading,
|
|
1658
1667
|
loadingText: T.loadingText,
|
|
1659
1668
|
noResultsText: T.noResultsText
|
|
1660
1669
|
}, null, 8, ["listLength", "isLoading", "loadingText", "noResultsText"])
|
|
1661
|
-
])) :
|
|
1662
|
-
|
|
1670
|
+
])) : C("", !0),
|
|
1671
|
+
G(qo, {
|
|
1663
1672
|
currentPage: T.currentPage,
|
|
1664
1673
|
itemsPerPage: T.itemsPerPage,
|
|
1665
1674
|
hideItemsPerPage: T.hideItemsPerPage,
|
|
1666
1675
|
listLength: T.listLength
|
|
1667
1676
|
}, null, 8, ["currentPage", "itemsPerPage", "hideItemsPerPage", "listLength"]),
|
|
1668
|
-
T.currentPage &&
|
|
1677
|
+
T.currentPage && r.value > 1 ? (v(), S(vl, {
|
|
1669
1678
|
key: 5,
|
|
1670
|
-
currentPage:
|
|
1671
|
-
"onUpdate:currentPage":
|
|
1679
|
+
currentPage: R.value,
|
|
1680
|
+
"onUpdate:currentPage": q[7] || (q[7] = (K) => R.value = K),
|
|
1672
1681
|
class: "ck-table__pagination",
|
|
1673
|
-
totalPages:
|
|
1682
|
+
totalPages: r.value,
|
|
1674
1683
|
itemsPerPage: T.itemsPerPage,
|
|
1675
1684
|
listLength: T.listLength,
|
|
1676
1685
|
align: T.paginationAlign,
|
|
1677
|
-
layout:
|
|
1678
|
-
onRefreshList:
|
|
1679
|
-
}, null, 8, ["currentPage", "totalPages", "itemsPerPage", "listLength", "align", "layout"])) :
|
|
1686
|
+
layout: D.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__ */ O({
|
|
1686
1695
|
__name: "ck-pagination",
|
|
1687
1696
|
props: {
|
|
1688
1697
|
modelValue: {},
|
|
@@ -1701,35 +1710,35 @@ 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(_) {
|
|
1714
|
+
l("update:modelValue", _);
|
|
1706
1715
|
}
|
|
1707
1716
|
}), i = c(() => {
|
|
1708
|
-
const
|
|
1709
|
-
return t.align &&
|
|
1717
|
+
const _ = [];
|
|
1718
|
+
return t.align && _.push(`align--${t.align}`), _;
|
|
1710
1719
|
}), d = c(() => {
|
|
1711
|
-
const
|
|
1712
|
-
return
|
|
1713
|
-
}),
|
|
1720
|
+
const _ = t.btnType || n.value.button.type;
|
|
1721
|
+
return _.toLowerCase() === "filled" ? "outlined" : _;
|
|
1722
|
+
}), u = c(() => t.btnLayout || n.value.styles.layout), p = c(() => t.maxStep === 1 || d.value === "flat" ? "" : "center"), r = c(() => d.value === "flat" ? "" : "left"), f = c(() => d.value === "flat" ? "" : "right"), s = 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
1726
|
function g() {
|
|
1718
1727
|
a.value >= t.maxStep || (a.value = a.value + 1);
|
|
1719
1728
|
}
|
|
1720
|
-
return (
|
|
1721
|
-
const V =
|
|
1729
|
+
return (_, h) => {
|
|
1730
|
+
const V = U("ck-button");
|
|
1722
1731
|
return v(), y("div", {
|
|
1723
|
-
class:
|
|
1732
|
+
class: x(["ck-pagination", i.value])
|
|
1724
1733
|
}, [
|
|
1725
|
-
|
|
1734
|
+
G(V, {
|
|
1726
1735
|
width: "42px",
|
|
1727
1736
|
align: "center",
|
|
1728
|
-
group:
|
|
1737
|
+
group: r.value,
|
|
1729
1738
|
type: d.value,
|
|
1730
|
-
layout:
|
|
1731
|
-
icon:
|
|
1732
|
-
onClick:
|
|
1739
|
+
layout: u.value,
|
|
1740
|
+
icon: s.value,
|
|
1741
|
+
onClick: h[0] || (h[0] = (R) => m())
|
|
1733
1742
|
}, null, 8, ["group", "type", "layout", "icon"]),
|
|
1734
1743
|
a.value - 2 >= 1 ? (v(), S(V, {
|
|
1735
1744
|
key: 0,
|
|
@@ -1737,82 +1746,82 @@ const Ol = /* @__PURE__ */ H(Rl, [["__scopeId", "data-v-5239bdd8"]]), Wl = /* @_
|
|
|
1737
1746
|
align: "center",
|
|
1738
1747
|
group: p.value,
|
|
1739
1748
|
type: d.value,
|
|
1740
|
-
layout:
|
|
1741
|
-
onClick:
|
|
1749
|
+
layout: u.value,
|
|
1750
|
+
onClick: h[1] || (h[1] = (R) => 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"])) :
|
|
1756
|
+
}, 8, ["group", "type", "layout"])) : C("", !0),
|
|
1748
1757
|
a.value - 1 >= 1 ? (v(), S(V, {
|
|
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: h[2] || (h[2] = (R) => 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(V, {
|
|
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 <= _.maxStep ? (v(), S(V, {
|
|
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: h[3] || (h[3] = (R) => 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 <= _.maxStep ? (v(), S(V, {
|
|
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: h[4] || (h[4] = (R) => 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(V, {
|
|
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: h[5] || (h[5] = (R) => g())
|
|
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__ */ O({
|
|
1816
1825
|
__name: "ck-th",
|
|
1817
1826
|
props: {
|
|
1818
1827
|
align: {},
|
|
@@ -1829,16 +1838,16 @@ const Nl = { class: "ck-th" }, El = "left", Fl = /* @__PURE__ */ z({
|
|
|
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
1840
|
return (n, a) => (v(), y("th", Nl, [
|
|
1832
|
-
|
|
1833
|
-
class:
|
|
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 = O({
|
|
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
1940
|
return v(), y("div", {
|
|
1932
|
-
class:
|
|
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(), y(
|
|
1968
|
-
|
|
1969
|
-
|
|
1975
|
+
w("div", Jl, [
|
|
1976
|
+
"subheading" in e.$slots ? (v(), y(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), y(
|
|
1981
|
+
], 64)) : C("", !0),
|
|
1982
|
+
w("div", en, [
|
|
1983
|
+
W(e.$slots, "body", {}, () => [
|
|
1984
|
+
(v(!0), y(Y, null, de(e.items, (i) => (v(), y("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 = O({
|
|
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, r, f) => !r && !f ? !0 : !(r && fe(p) < fe(r) || 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), r = fe(l.value);
|
|
2045
|
+
return `${p} - ${r}`;
|
|
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 = O({
|
|
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
|
+
() => (r) => Re(r, e.format, {
|
|
2112
2121
|
locale: e.locale
|
|
2113
2122
|
})
|
|
2114
|
-
), a = (
|
|
2123
|
+
), a = (r, f, s) => !f && !s ? !0 : !(f && Le(r, gt(f)) || s && Se(r, ht(s))), 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
|
+
(r) => ({
|
|
2129
|
+
value: r,
|
|
2130
|
+
display: n.value(r),
|
|
2131
|
+
key: n.value(r),
|
|
2132
|
+
selected: !!e.selected && Ke(e.selected, r),
|
|
2133
|
+
disabled: !a(r, 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 = O({
|
|
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,24 +2246,24 @@ 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((g,
|
|
2249
|
+
const k = e.weekStartsOn, m = t.value(e.weekdayFormat);
|
|
2250
|
+
return Array.from(Array(7)).map((g, _) => (k + _) % 7).map(
|
|
2242
2251
|
(g) => lo(/* @__PURE__ */ new Date(), g, {
|
|
2243
2252
|
weekStartsOn: e.weekStartsOn
|
|
2244
2253
|
})
|
|
2245
2254
|
).map(m);
|
|
2246
|
-
}),
|
|
2247
|
-
var
|
|
2248
|
-
return (
|
|
2255
|
+
}), u = (k, m, g, _) => {
|
|
2256
|
+
var h, V;
|
|
2257
|
+
return (h = _ == null ? void 0 : _.dates) != null && h.some((R) => Ge(k, R)) || (V = _ == null ? void 0 : _.predicate) != null && V.call(_, k) ? !1 : !m && !g ? !0 : !(m && Le(k, co(m)) || g && Se(k, po(g)));
|
|
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
2261
|
(g) => ({
|
|
2253
2262
|
value: g,
|
|
2254
2263
|
display: m(g),
|
|
2255
2264
|
selected: !!e.selected && Ge(e.selected, g),
|
|
2256
|
-
current: Ge(
|
|
2257
|
-
disabled: !e.allowOutsideInterval && !ao(g, a.value) || !
|
|
2265
|
+
current: Ge(k, g),
|
|
2266
|
+
disabled: !e.allowOutsideInterval && !ao(g, a.value) || !u(
|
|
2258
2267
|
g,
|
|
2259
2268
|
e.lowerLimit,
|
|
2260
2269
|
e.upperLimit,
|
|
@@ -2263,26 +2272,26 @@ const un = /* @__PURE__ */ Te(sn, [["render", rn]]), cn = z({
|
|
|
2263
2272
|
key: t.value("yyyy-MM-dd")(g)
|
|
2264
2273
|
})
|
|
2265
2274
|
);
|
|
2266
|
-
}),
|
|
2275
|
+
}), r = 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))
|
|
2270
|
-
),
|
|
2279
|
+
), s = c(
|
|
2271
2280
|
() => e.upperLimit && (Ke(e.upperLimit, e.pageDate) || Se(e.pageDate, e.upperLimit))
|
|
2272
2281
|
);
|
|
2273
2282
|
return {
|
|
2274
2283
|
weekDays: d,
|
|
2275
2284
|
days: p,
|
|
2276
|
-
heading:
|
|
2285
|
+
heading: r,
|
|
2277
2286
|
leftDisabled: f,
|
|
2278
|
-
rightDisabled:
|
|
2287
|
+
rightDisabled: s,
|
|
2279
2288
|
previousPage: () => o("update:pageDate", io(e.pageDate, 1)),
|
|
2280
2289
|
nextPage: () => o("update:pageDate", so(e.pageDate, 1))
|
|
2281
2290
|
};
|
|
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), y(
|
|
2309
|
+
subheading: H(() => [
|
|
2310
|
+
(v(!0), y(Y, null, de(e.weekDays, (d, u) => (v(), y("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 = O({
|
|
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
|
|
2352
|
-
f && (
|
|
2360
|
+
let s = 0, k = 0;
|
|
2361
|
+
f && (s = f.getHours(), k = f.getMinutes()), a.value = s, 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
|
+
}, r = () => {
|
|
2382
2391
|
const f = d.value.find(
|
|
2383
|
-
(
|
|
2392
|
+
(k) => {
|
|
2384
2393
|
var m, g;
|
|
2385
|
-
return ((g = (m =
|
|
2394
|
+
return ((g = (m = k.ref.value) == null ? void 0 : m.classList) == null ? void 0 : g.contains("selected")) ?? !1;
|
|
2386
2395
|
}
|
|
2387
|
-
),
|
|
2388
|
-
(
|
|
2396
|
+
), s = u.value.find(
|
|
2397
|
+
(k) => {
|
|
2389
2398
|
var m, g;
|
|
2390
|
-
return ((g = (m =
|
|
2399
|
+
return ((g = (m = k.ref.value) == null ? void 0 : m.classList) == null ? void 0 : g.contains("selected")) ?? !1;
|
|
2391
2400
|
}
|
|
2392
2401
|
);
|
|
2393
|
-
f &&
|
|
2402
|
+
f && s && (ct(t.value, f.ref.value), ct(l.value, s.ref.value));
|
|
2394
2403
|
};
|
|
2395
|
-
return
|
|
2404
|
+
return ce(
|
|
2396
2405
|
() => e.visible,
|
|
2397
2406
|
(f) => {
|
|
2398
|
-
f &&
|
|
2407
|
+
f && vt(r);
|
|
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
|
|
2411
|
-
return !((
|
|
2412
|
-
(
|
|
2419
|
+
var s, k, m, g;
|
|
2420
|
+
return !((k = (s = e.disabledTime) == null ? void 0 : s.dates) != null && k.some(
|
|
2421
|
+
(_) => ro(f, _) && uo(f, _)
|
|
2413
2422
|
) || (g = (m = e.disabledTime) == null ? void 0 : m.predicate) != null && g.call(m, f));
|
|
2414
2423
|
},
|
|
2415
|
-
scroll:
|
|
2424
|
+
scroll: r
|
|
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), y(
|
|
2447
|
+
body: H(() => [
|
|
2448
|
+
w("div", fn, [
|
|
2449
|
+
(v(!0), y(Y, null, de(e.hoursList, (d) => (v(), y("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), y(
|
|
2460
|
+
w("div", gn, [
|
|
2461
|
+
(v(!0), y(Y, null, de(e.minutesList, (d) => (v(), y("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 = O({
|
|
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 D = at(d.value, e.inputFormat, /* @__PURE__ */ new Date(), {
|
|
2649
2658
|
locale: e.locale
|
|
2650
2659
|
});
|
|
2651
|
-
|
|
2660
|
+
pe(D) && (n.value = D);
|
|
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 = (D = "none") => {
|
|
2667
|
+
e.disabled || (D !== "none" && l.value === "none" && (n.value = e.modelValue || _n(e.lowerLimit, e.upperLimit, n.value)), l.value = D, o(D !== "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
|
-
},
|
|
2670
|
-
n.value =
|
|
2671
|
-
},
|
|
2672
|
-
|
|
2672
|
+
const p = (D, B) => {
|
|
2673
|
+
n.value = B, D === "year" ? o("decadePageChanged", B) : D === "month" ? o("yearPageChanged", B) : D === "day" && o("monthPageChanged", B);
|
|
2674
|
+
}, r = (D) => {
|
|
2675
|
+
n.value = D, e.minimumView === "year" ? (u("none"), o("update:modelValue", D)) : l.value = "month";
|
|
2676
|
+
}, f = (D) => {
|
|
2677
|
+
n.value = D, e.minimumView === "month" ? (u("none"), o("update:modelValue", D)) : l.value = "day";
|
|
2678
|
+
}, s = (D) => {
|
|
2679
|
+
n.value = D, e.minimumView === "day" ? (u("none"), o("update:modelValue", D)) : l.value = "time";
|
|
2680
|
+
}, k = (D) => {
|
|
2681
|
+
u("none"), o("update:modelValue", D);
|
|
2673
2682
|
}, m = () => {
|
|
2674
|
-
e.clearable && (
|
|
2675
|
-
}, g = () => i.value = !0,
|
|
2676
|
-
i.value = !1,
|
|
2677
|
-
}, V = (
|
|
2678
|
-
const
|
|
2683
|
+
e.clearable && (u("none"), o("update:modelValue", null), n.value = e.startingViewDate);
|
|
2684
|
+
}, g = () => i.value = !0, _ = () => u(R.value), h = () => {
|
|
2685
|
+
i.value = !1, u();
|
|
2686
|
+
}, V = (D) => {
|
|
2687
|
+
const B = D.keyCode ? D.keyCode : D.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
|
+
}, R = c(() => {
|
|
2703
|
+
const D = Ae.indexOf(e.startingView), B = Ae.indexOf(e.minimumView);
|
|
2704
|
+
return D < B ? e.minimumView : e.startingView;
|
|
2696
2705
|
});
|
|
2697
2706
|
return {
|
|
2698
|
-
blur:
|
|
2699
|
-
focus:
|
|
2707
|
+
blur: h,
|
|
2708
|
+
focus: _,
|
|
2700
2709
|
click: g,
|
|
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: r,
|
|
2707
2716
|
selectMonth: f,
|
|
2708
|
-
selectDay:
|
|
2709
|
-
selectTime:
|
|
2717
|
+
selectDay: s,
|
|
2718
|
+
selectTime: k,
|
|
2710
2719
|
keyUp: V,
|
|
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: R,
|
|
2724
|
+
log: (D) => console.log(D),
|
|
2725
|
+
variables: (D) => Object.fromEntries(
|
|
2726
|
+
Object.entries(D ?? {}).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 =
|
|
2732
|
+
const i = U("year-picker"), d = U("month-picker"), u = U("day-picker"), p = U("time-picker");
|
|
2724
2733
|
return v(), y("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] = (r) => e.input = r)
|
|
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] = (...r) => e.keyUp && e.keyUp(...r)),
|
|
2748
|
+
onBlur: o[2] || (o[2] = (...r) => e.blur && e.blur(...r)),
|
|
2749
|
+
onFocus: o[3] || (o[3] = (...r) => e.focus && e.focus(...r)),
|
|
2750
|
+
onClick: o[4] || (o[4] = (...r) => e.click && e.click(...r))
|
|
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] = (r) => 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] = (r) => e.updatePageDate("year", r)),
|
|
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] = (r) => e.updatePageDate("month", r)),
|
|
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] = (r) => 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] = (r) => e.updatePageDate("day", r)),
|
|
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] = (r) => 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__ */ O({
|
|
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
|
-
return
|
|
2841
|
+
return s(t.modelValue);
|
|
2833
2842
|
},
|
|
2834
|
-
set(
|
|
2835
|
-
l("update:modelValue", h
|
|
2843
|
+
set(h) {
|
|
2844
|
+
l("update:modelValue", k(h));
|
|
2836
2845
|
}
|
|
2837
|
-
}),
|
|
2838
|
-
const
|
|
2839
|
-
return
|
|
2846
|
+
}), r = c(() => {
|
|
2847
|
+
const h = [];
|
|
2848
|
+
return h.push(L.getGroupClass(t, a.value)), t.icon && h.push("has-icon-left"), t.iconRight && h.push("has-icon-right"), document.querySelector(".ck-popup__content") && h.push("ck-picker-popup"), h;
|
|
2840
2849
|
}), f = c(() => {
|
|
2841
|
-
const
|
|
2850
|
+
const h = [];
|
|
2842
2851
|
let V = "";
|
|
2843
|
-
return n.value.darkMode && (V = n.value.darkModeColorItems), V && !L.isColorTemplateVariable(V) &&
|
|
2852
|
+
return n.value.darkMode && (V = n.value.darkModeColorItems), V && !L.isColorTemplateVariable(V) && h.push({ backgroundColor: V }), h;
|
|
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, (h) => {
|
|
2855
|
+
i.value && (i.value.style.display = "block", i.value.focus(), i.value.style.display = "none"), l("change", h);
|
|
2847
2856
|
});
|
|
2848
|
-
function
|
|
2849
|
-
if (!
|
|
2857
|
+
function s(h) {
|
|
2858
|
+
if (!h)
|
|
2850
2859
|
return null;
|
|
2851
|
-
const V = `${
|
|
2860
|
+
const V = `${h}`.slice(0, 10);
|
|
2852
2861
|
return /* @__PURE__ */ new Date(`${V}T00:00:00`);
|
|
2853
2862
|
}
|
|
2854
|
-
function h
|
|
2855
|
-
if (!
|
|
2863
|
+
function k(h) {
|
|
2864
|
+
if (!h)
|
|
2856
2865
|
return null;
|
|
2857
|
-
const V =
|
|
2858
|
-
return `${V}-${
|
|
2866
|
+
const V = h.getFullYear(), R = ze.padZeros(h.getMonth() + 1, 2), D = ze.padZeros(h.getDate(), 2);
|
|
2867
|
+
return `${V}-${R}-${D}`;
|
|
2859
2868
|
}
|
|
2860
2869
|
function m() {
|
|
2861
|
-
const
|
|
2862
|
-
let
|
|
2863
|
-
const
|
|
2864
|
-
|
|
2865
|
-
const
|
|
2866
|
-
|
|
2870
|
+
const h = document.getElementById(`${u.value}`), V = h == null ? void 0 : h.querySelector(".v3dp__popout-day");
|
|
2871
|
+
let R = { y: 0 };
|
|
2872
|
+
const D = document.querySelector(".ck-popup__slot-body");
|
|
2873
|
+
D instanceof HTMLElement && (D.style.overflow = "hidden"), h && (R = h.getBoundingClientRect());
|
|
2874
|
+
const B = window.innerHeight - R.y;
|
|
2875
|
+
h && V && (B - 300 < 0 ? V.setAttribute("style", "bottom: 0px") : V.setAttribute("style", `top: ${R.y + 60}px;`), h.setAttribute("style", "overflow: hidden;"));
|
|
2867
2876
|
}
|
|
2868
2877
|
function g() {
|
|
2869
|
-
const
|
|
2870
|
-
|
|
2878
|
+
const h = document.querySelector(".ck-popup__slot-body");
|
|
2879
|
+
h instanceof HTMLElement && (h.style.overflow = "auto");
|
|
2871
2880
|
}
|
|
2872
|
-
function
|
|
2873
|
-
t.clearable && (p.value =
|
|
2881
|
+
function _() {
|
|
2882
|
+
t.clearable && (p.value = s(t.clearValue));
|
|
2874
2883
|
}
|
|
2875
|
-
return (
|
|
2876
|
-
const
|
|
2877
|
-
return v(), S(
|
|
2878
|
-
default:
|
|
2879
|
-
var
|
|
2884
|
+
return (h, V) => {
|
|
2885
|
+
const R = U("ck-label"), D = U("ck-icon"), B = U("ck-div");
|
|
2886
|
+
return v(), S(B, { widthBreaks: h.widthBreaks }, {
|
|
2887
|
+
default: H(() => {
|
|
2888
|
+
var P;
|
|
2880
2889
|
return [
|
|
2881
|
-
|
|
2882
|
-
class:
|
|
2883
|
-
id:
|
|
2890
|
+
w("div", {
|
|
2891
|
+
class: x(["ck-input-date", r.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(R, null, {
|
|
2900
|
+
default: H(() => [
|
|
2901
|
+
Z(I(h.label) + " ", 1),
|
|
2902
|
+
h.optional ? (v(), y("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
|
+
h.icon ? (v(), S(D, {
|
|
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: h.iconColor ? h.iconColor : "lightgrey",
|
|
2913
|
+
icon: h.icon,
|
|
2914
|
+
"icon-pack": h.iconPack
|
|
2915
|
+
}, null, 8, ["color", "icon", "icon-pack"])) : C("", !0),
|
|
2916
|
+
G($e(Tn), {
|
|
2908
2917
|
modelValue: p.value,
|
|
2909
|
-
"onUpdate:modelValue": V[0] || (V[0] = (
|
|
2918
|
+
"onUpdate:modelValue": V[0] || (V[0] = (F) => p.value = F),
|
|
2910
2919
|
onOpened: m,
|
|
2911
2920
|
onClosed: g,
|
|
2912
2921
|
inputFormat: "dd-MM-yyyy",
|
|
2913
2922
|
style: E(f.value),
|
|
2914
|
-
disabled:
|
|
2923
|
+
disabled: h.disabled
|
|
2915
2924
|
}, null, 8, ["modelValue", "style", "disabled"]),
|
|
2916
|
-
|
|
2925
|
+
h.clearable && h.modelValue != h.clearValue || h.iconRight ? (v(), S(D, {
|
|
2917
2926
|
key: 1,
|
|
2918
|
-
class:
|
|
2919
|
-
color:
|
|
2920
|
-
icon:
|
|
2921
|
-
"icon-pack":
|
|
2922
|
-
onClick: V[1] || (V[1] = (
|
|
2923
|
-
}, null, 8, ["class", "color", "icon", "icon-pack"])) :
|
|
2927
|
+
class: x(["ck-input__icon-right", { "icon-right__clearable": h.clearable }]),
|
|
2928
|
+
color: h.clearable ? "grey" : h.iconColor ? h.iconColor : "lightgrey",
|
|
2929
|
+
icon: h.clearable ? "xmark" : h.iconRight,
|
|
2930
|
+
"icon-pack": h.clearable ? "font-awesome" : h.iconPack,
|
|
2931
|
+
onClick: V[1] || (V[1] = (F) => _())
|
|
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__ */ O({
|
|
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__ */ O({
|
|
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
|
}
|
|
@@ -2985,100 +2994,101 @@ const Sn = /* @__PURE__ */ H(Ln, [["__scopeId", "data-v-ec17b553"]]), Pn = /* @_
|
|
|
2985
2994
|
title: o.title
|
|
2986
2995
|
});
|
|
2987
2996
|
}), (a, i) => l.value ? (v(), y("div", Mn, [
|
|
2988
|
-
|
|
2989
|
-
])) :
|
|
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__ */ O({
|
|
2993
3002
|
__name: "ck-tabs",
|
|
2994
3003
|
props: {
|
|
2995
3004
|
type: {}
|
|
2996
3005
|
},
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3006
|
+
emits: ["tabSelected"],
|
|
3007
|
+
setup(e, { emit: o }) {
|
|
3008
|
+
const t = M(null), l = M(!1), n = M(!1), a = e, i = o, d = M([]), u = M(null), p = c(() => a.type ? a.type : On), r = c(() => {
|
|
3009
|
+
const g = [];
|
|
3010
|
+
return p.value && g.push(`ck-tabs__header--button-${p.value}`), g;
|
|
3001
3011
|
});
|
|
3002
|
-
function
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
}),
|
|
3012
|
+
function f(g) {
|
|
3013
|
+
d.value.forEach((_, h) => {
|
|
3014
|
+
_.selectTab(h === g);
|
|
3015
|
+
}), u.value = g, i("tabSelected", g);
|
|
3006
3016
|
}
|
|
3007
|
-
function
|
|
3008
|
-
if (!
|
|
3017
|
+
function s() {
|
|
3018
|
+
if (!t.value)
|
|
3009
3019
|
return;
|
|
3010
|
-
const { scrollLeft:
|
|
3011
|
-
|
|
3020
|
+
const { scrollLeft: g, scrollWidth: _, clientWidth: h } = t.value;
|
|
3021
|
+
l.value = g > 0, n.value = g + h < _ - 3;
|
|
3012
3022
|
}
|
|
3013
|
-
function
|
|
3014
|
-
|
|
3023
|
+
function k() {
|
|
3024
|
+
t.value && t.value.scrollBy({ left: -200, behavior: "smooth" });
|
|
3015
3025
|
}
|
|
3016
|
-
function
|
|
3017
|
-
|
|
3026
|
+
function m() {
|
|
3027
|
+
t.value && t.value.scrollBy({ left: 200, behavior: "smooth" });
|
|
3018
3028
|
}
|
|
3019
|
-
return Et("addTab", (
|
|
3020
|
-
|
|
3029
|
+
return Et("addTab", (g) => {
|
|
3030
|
+
d.value.push(g);
|
|
3021
3031
|
}), be(() => {
|
|
3022
|
-
var
|
|
3023
|
-
|
|
3024
|
-
const
|
|
3025
|
-
|
|
3026
|
-
}), Ft(
|
|
3027
|
-
const
|
|
3032
|
+
var _;
|
|
3033
|
+
s(), (_ = t.value) == null || _.addEventListener("scroll", s);
|
|
3034
|
+
const g = d.value.find((h) => h.active) || d.value[0];
|
|
3035
|
+
g && f(d.value.indexOf(g));
|
|
3036
|
+
}), Ft(s), (g, _) => {
|
|
3037
|
+
const h = U("ck-icon"), V = U("ck-circle");
|
|
3028
3038
|
return v(), y("div", An, [
|
|
3029
|
-
|
|
3030
|
-
class:
|
|
3039
|
+
w("div", {
|
|
3040
|
+
class: x(["ck-tabs__header", { "has-left-arrow": l.value, "has-right-arrow": n.value }])
|
|
3031
3041
|
}, [
|
|
3032
|
-
|
|
3042
|
+
l.value ? (v(), S(V, {
|
|
3033
3043
|
key: 0,
|
|
3034
3044
|
class: "header--scroll-btn",
|
|
3035
3045
|
color: "primary",
|
|
3036
3046
|
size: "xs",
|
|
3037
|
-
onClick:
|
|
3047
|
+
onClick: _[0] || (_[0] = (R) => k())
|
|
3038
3048
|
}, {
|
|
3039
|
-
default:
|
|
3040
|
-
|
|
3049
|
+
default: H(() => [
|
|
3050
|
+
G(h, { icon: "chevron-left" })
|
|
3041
3051
|
]),
|
|
3042
3052
|
_: 1
|
|
3043
|
-
})) :
|
|
3044
|
-
|
|
3053
|
+
})) : C("", !0),
|
|
3054
|
+
w("div", {
|
|
3045
3055
|
ref_key: "tabsContainer",
|
|
3046
|
-
ref:
|
|
3047
|
-
class:
|
|
3056
|
+
ref: t,
|
|
3057
|
+
class: x(["ck-tabs__header-content", { "header-content--flat": p.value === "flat" }])
|
|
3048
3058
|
}, [
|
|
3049
|
-
(v(!0), y(
|
|
3050
|
-
key:
|
|
3051
|
-
class:
|
|
3052
|
-
onClick: (
|
|
3059
|
+
(v(!0), y(Y, null, de(d.value, (R, D) => (v(), y("div", {
|
|
3060
|
+
key: D,
|
|
3061
|
+
class: x([r.value, { "is-selected": u.value === D }]),
|
|
3062
|
+
onClick: (B) => f(D)
|
|
3053
3063
|
}, [
|
|
3054
|
-
|
|
3064
|
+
R.icon ? (v(), S(h, {
|
|
3055
3065
|
key: 0,
|
|
3056
|
-
icon:
|
|
3057
|
-
}, null, 8, ["icon"])) :
|
|
3058
|
-
|
|
3066
|
+
icon: R.icon
|
|
3067
|
+
}, null, 8, ["icon"])) : C("", !0),
|
|
3068
|
+
Z(" " + I(R.title), 1)
|
|
3059
3069
|
], 10, zn))), 128))
|
|
3060
3070
|
], 2),
|
|
3061
|
-
|
|
3071
|
+
n.value ? (v(), S(V, {
|
|
3062
3072
|
key: 1,
|
|
3063
3073
|
class: "header--scroll-btn",
|
|
3064
3074
|
color: "primary",
|
|
3065
3075
|
size: "xs",
|
|
3066
|
-
onClick:
|
|
3076
|
+
onClick: _[1] || (_[1] = (R) => m())
|
|
3067
3077
|
}, {
|
|
3068
|
-
default:
|
|
3069
|
-
|
|
3078
|
+
default: H(() => [
|
|
3079
|
+
G(h, { icon: "chevron-right" })
|
|
3070
3080
|
]),
|
|
3071
3081
|
_: 1
|
|
3072
|
-
})) :
|
|
3082
|
+
})) : C("", !0)
|
|
3073
3083
|
], 2),
|
|
3074
|
-
|
|
3075
|
-
|
|
3084
|
+
w("div", Rn, [
|
|
3085
|
+
W(g.$slots, "default", {}, void 0, !0)
|
|
3076
3086
|
])
|
|
3077
3087
|
]);
|
|
3078
3088
|
};
|
|
3079
3089
|
}
|
|
3080
3090
|
});
|
|
3081
|
-
const Nn = /* @__PURE__ */
|
|
3091
|
+
const Nn = /* @__PURE__ */ j(Wn, [["__scopeId", "data-v-77c5a736"]]), En = "rounded", Fn = /* @__PURE__ */ O({
|
|
3082
3092
|
__name: "ck-toggle",
|
|
3083
3093
|
props: {
|
|
3084
3094
|
modelValue: { type: Boolean },
|
|
@@ -3101,79 +3111,90 @@ const Nn = /* @__PURE__ */ H(Wn, [["__scopeId", "data-v-41395121"]]), En = "roun
|
|
|
3101
3111
|
t.preventAutoUpdate || a("update:modelValue", d);
|
|
3102
3112
|
}
|
|
3103
3113
|
});
|
|
3104
|
-
return (d,
|
|
3105
|
-
const p =
|
|
3114
|
+
return (d, u) => {
|
|
3115
|
+
const p = U("ck-icon");
|
|
3106
3116
|
return v(), y("div", {
|
|
3107
|
-
class:
|
|
3108
|
-
onClick:
|
|
3117
|
+
class: x(["ck-toggle", [n.value, { "is-active": i.value }]]),
|
|
3118
|
+
onClick: u[0] || (u[0] = (r) => i.value = !i.value)
|
|
3109
3119
|
}, [
|
|
3110
3120
|
d.icon ? (v(), S(p, {
|
|
3111
3121
|
key: 0,
|
|
3112
3122
|
icon: d.icon
|
|
3113
|
-
}, null, 8, ["icon"])) :
|
|
3114
|
-
|
|
3123
|
+
}, null, 8, ["icon"])) : C("", !0),
|
|
3124
|
+
W(d.$slots, "default", {}, void 0, !0),
|
|
3115
3125
|
d.iconRight ? (v(), S(p, {
|
|
3116
3126
|
key: 1,
|
|
3117
3127
|
icon: d.iconRight
|
|
3118
|
-
}, null, 8, ["icon"])) :
|
|
3128
|
+
}, null, 8, ["icon"])) : C("", !0)
|
|
3119
3129
|
], 2);
|
|
3120
3130
|
};
|
|
3121
3131
|
}
|
|
3122
3132
|
});
|
|
3123
|
-
const qn = /* @__PURE__ */
|
|
3133
|
+
const qn = /* @__PURE__ */ j(Fn, [["__scopeId", "data-v-e3c474ff"]]), Hn = { class: "ck-toggle-group" }, jn = /* @__PURE__ */ O({
|
|
3124
3134
|
__name: "ck-toggle-group",
|
|
3125
3135
|
props: /* @__PURE__ */ ee({
|
|
3126
3136
|
options: {},
|
|
3127
3137
|
layout: {},
|
|
3128
3138
|
label: {},
|
|
3129
3139
|
labelAlign: {},
|
|
3130
|
-
gap: {}
|
|
3140
|
+
gap: {},
|
|
3141
|
+
multipleSelection: { type: Boolean }
|
|
3131
3142
|
}, {
|
|
3132
3143
|
modelValue: { required: !0 },
|
|
3133
3144
|
modelModifiers: {}
|
|
3134
3145
|
}),
|
|
3135
3146
|
emits: /* @__PURE__ */ ee(["change"], ["update:modelValue"]),
|
|
3136
3147
|
setup(e, { emit: o }) {
|
|
3137
|
-
const t = ge(e, "modelValue"), l = o;
|
|
3138
|
-
function
|
|
3139
|
-
return
|
|
3148
|
+
const t = ge(e, "modelValue"), l = e, n = o;
|
|
3149
|
+
function a(r) {
|
|
3150
|
+
return r.name;
|
|
3151
|
+
}
|
|
3152
|
+
function i(r) {
|
|
3153
|
+
return r.id;
|
|
3140
3154
|
}
|
|
3141
|
-
function
|
|
3142
|
-
|
|
3155
|
+
function d(r) {
|
|
3156
|
+
if (r.icon)
|
|
3157
|
+
return r.icon;
|
|
3143
3158
|
}
|
|
3144
|
-
function
|
|
3145
|
-
|
|
3146
|
-
|
|
3159
|
+
function u(r) {
|
|
3160
|
+
const f = i(r);
|
|
3161
|
+
return l.multipleSelection ? Array.isArray(t.value) && t.value.includes(f) : t.value === f;
|
|
3147
3162
|
}
|
|
3148
|
-
function
|
|
3149
|
-
|
|
3163
|
+
function p(r) {
|
|
3164
|
+
const f = i(r);
|
|
3165
|
+
if (l.multipleSelection) {
|
|
3166
|
+
const s = Array.isArray(t.value) ? [...t.value] : [], k = s.indexOf(f);
|
|
3167
|
+
k !== -1 ? s.splice(k, 1) : s.push(f), t.value = s;
|
|
3168
|
+
} else
|
|
3169
|
+
t.value = f;
|
|
3170
|
+
n("change");
|
|
3150
3171
|
}
|
|
3151
|
-
return (
|
|
3152
|
-
const
|
|
3172
|
+
return (r, f) => {
|
|
3173
|
+
const s = U("ck-label"), k = U("ck-toggle");
|
|
3153
3174
|
return v(), y("div", Hn, [
|
|
3154
|
-
|
|
3175
|
+
r.label ? (v(), S(s, {
|
|
3155
3176
|
key: 0,
|
|
3156
|
-
align:
|
|
3177
|
+
align: r.labelAlign
|
|
3157
3178
|
}, {
|
|
3158
|
-
default:
|
|
3159
|
-
|
|
3179
|
+
default: H(() => [
|
|
3180
|
+
Z(I(r.label), 1)
|
|
3160
3181
|
]),
|
|
3161
3182
|
_: 1
|
|
3162
|
-
}, 8, ["align"])) :
|
|
3163
|
-
|
|
3183
|
+
}, 8, ["align"])) : C("", !0),
|
|
3184
|
+
w("div", {
|
|
3164
3185
|
class: "ck-toggle-group__options",
|
|
3165
|
-
style: E({ gap:
|
|
3186
|
+
style: E({ gap: r.gap })
|
|
3166
3187
|
}, [
|
|
3167
|
-
(v(!0), y(
|
|
3168
|
-
modelValue:
|
|
3169
|
-
key:
|
|
3170
|
-
icon:
|
|
3171
|
-
layout:
|
|
3188
|
+
(v(!0), y(Y, null, de(r.options, (m) => (v(), S(k, {
|
|
3189
|
+
modelValue: u(m),
|
|
3190
|
+
key: i(m),
|
|
3191
|
+
icon: d(m),
|
|
3192
|
+
layout: r.layout,
|
|
3172
3193
|
preventAutoUpdate: "",
|
|
3173
|
-
onClick: (
|
|
3194
|
+
onClick: (g) => p(m)
|
|
3174
3195
|
}, {
|
|
3175
|
-
default:
|
|
3176
|
-
|
|
3196
|
+
default: H(() => [
|
|
3197
|
+
Z(I(a(m)), 1)
|
|
3177
3198
|
]),
|
|
3178
3199
|
_: 2
|
|
3179
3200
|
}, 1032, ["modelValue", "icon", "layout", "onClick"]))), 128))
|
|
@@ -3182,13 +3203,13 @@ const qn = /* @__PURE__ */ H(Fn, [["__scopeId", "data-v-e3c474ff"]]), Hn = { cla
|
|
|
3182
3203
|
};
|
|
3183
3204
|
}
|
|
3184
3205
|
});
|
|
3185
|
-
const Un = /* @__PURE__ */
|
|
3206
|
+
const Un = /* @__PURE__ */ j(jn, [["__scopeId", "data-v-5779c8e1"]]), Gn = {
|
|
3186
3207
|
key: 0,
|
|
3187
3208
|
class: "ck-card__header-title"
|
|
3188
3209
|
}, Zn = { class: "ck-card__body" }, Yn = {
|
|
3189
3210
|
key: 0,
|
|
3190
3211
|
class: "ck-card__header-subtitle"
|
|
3191
|
-
}, Kn = /* @__PURE__ */
|
|
3212
|
+
}, Kn = /* @__PURE__ */ O({
|
|
3192
3213
|
__name: "ck-card",
|
|
3193
3214
|
props: {
|
|
3194
3215
|
modelValue: {},
|
|
@@ -3204,46 +3225,46 @@ const Un = /* @__PURE__ */ H(jn, [["__scopeId", "data-v-d8e2991f"]]), Gn = {
|
|
|
3204
3225
|
get() {
|
|
3205
3226
|
return !a.value || t.modelValue === null ? !0 : !!t.modelValue;
|
|
3206
3227
|
},
|
|
3207
|
-
set(
|
|
3208
|
-
l("update:modelValue",
|
|
3228
|
+
set(u) {
|
|
3229
|
+
l("update:modelValue", u), u || l("closeCard");
|
|
3209
3230
|
}
|
|
3210
3231
|
}), d = c(() => {
|
|
3211
|
-
const
|
|
3212
|
-
return p &&
|
|
3232
|
+
const u = [], p = t.layout || n.value.styles.layout;
|
|
3233
|
+
return p && u.push(`layout--${p}`), t.clickable && u.push("clickable"), u;
|
|
3213
3234
|
});
|
|
3214
|
-
return (
|
|
3215
|
-
const
|
|
3235
|
+
return (u, p) => {
|
|
3236
|
+
const r = U("ck-icon");
|
|
3216
3237
|
return i.value ? (v(), y("div", {
|
|
3217
3238
|
key: 0,
|
|
3218
|
-
class:
|
|
3239
|
+
class: x(["ck-card", d.value])
|
|
3219
3240
|
}, [
|
|
3220
|
-
|
|
3241
|
+
u.title || u.$slots.header || a.value ? (v(), y("div", {
|
|
3221
3242
|
key: 0,
|
|
3222
|
-
class:
|
|
3243
|
+
class: x(["ck-card__header", { "is-close-button-visible": a.value }])
|
|
3223
3244
|
}, [
|
|
3224
|
-
|
|
3225
|
-
|
|
3245
|
+
u.title || u.$slots.header ? (v(), y("div", Gn, I(u.title), 1)) : C("", !0),
|
|
3246
|
+
W(u.$slots, "header", {}, void 0, !0),
|
|
3226
3247
|
a.value ? (v(), y("div", {
|
|
3227
3248
|
key: 1,
|
|
3228
3249
|
class: "ck-card__close-btn",
|
|
3229
3250
|
onClick: p[0] || (p[0] = (f) => i.value = !1)
|
|
3230
3251
|
}, [
|
|
3231
|
-
|
|
3232
|
-
])) :
|
|
3233
|
-
], 2)) :
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
class:
|
|
3252
|
+
G(r, { icon: "times" })
|
|
3253
|
+
])) : C("", !0)
|
|
3254
|
+
], 2)) : C("", !0),
|
|
3255
|
+
w("div", Zn, [
|
|
3256
|
+
u.subtitle ? (v(), y("div", Yn, I(u.subtitle), 1)) : C("", !0),
|
|
3257
|
+
w("div", {
|
|
3258
|
+
class: x(["ck-card__content", { "content-block": u.block }])
|
|
3238
3259
|
}, [
|
|
3239
|
-
|
|
3260
|
+
W(u.$slots, "default", {}, void 0, !0)
|
|
3240
3261
|
], 2)
|
|
3241
3262
|
])
|
|
3242
|
-
], 2)) :
|
|
3263
|
+
], 2)) : C("", !0);
|
|
3243
3264
|
};
|
|
3244
3265
|
}
|
|
3245
3266
|
});
|
|
3246
|
-
const Jn = /* @__PURE__ */
|
|
3267
|
+
const Jn = /* @__PURE__ */ j(Kn, [["__scopeId", "data-v-780265b9"]]), Qn = ["color"], Xn = "white", ea = "primary", ta = "s", oa = "outlined", la = "rounded", na = /* @__PURE__ */ O({
|
|
3247
3268
|
__name: "ck-chip",
|
|
3248
3269
|
props: {
|
|
3249
3270
|
size: {},
|
|
@@ -3261,47 +3282,47 @@ const Jn = /* @__PURE__ */ H(Kn, [["__scopeId", "data-v-780265b9"]]), Qn = ["col
|
|
|
3261
3282
|
},
|
|
3262
3283
|
emits: ["click"],
|
|
3263
3284
|
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),
|
|
3265
|
-
const
|
|
3266
|
-
return d.value === "outlined" ?
|
|
3285
|
+
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(() => {
|
|
3286
|
+
const s = [];
|
|
3287
|
+
return d.value === "outlined" ? s.push("type--outlined") : L.isColorTemplateVariable(u.value) && s.push(`ck-component__bg-color--${u.value}`), i.value && s.push(`layout--${i.value}`), s.push(L.getGroupClass(t, l.value)), s.push(`size-${t.size || ta}`), t.align && s.push(`align--${t.align}`), t.nowrap && s.push(`ck-chip--${t.nowrap}`), t.clickable && s.push("clickable"), s;
|
|
3267
3288
|
});
|
|
3268
|
-
function
|
|
3269
|
-
return L.isColorTemplateVariable(
|
|
3289
|
+
function r(s) {
|
|
3290
|
+
return L.isColorTemplateVariable(s) ? L.getColorHexFromTemplateVariable(s, n.value.colors) : s;
|
|
3270
3291
|
}
|
|
3271
3292
|
const f = c(() => {
|
|
3272
|
-
const
|
|
3293
|
+
const s = [];
|
|
3273
3294
|
if (d.value === "outlined") {
|
|
3274
|
-
const
|
|
3275
|
-
|
|
3295
|
+
const k = r(u.value), m = r(t.textColor || u.value);
|
|
3296
|
+
s.push({ "--chip-bg": k }), s.push({ borderColor: k }), s.push({ color: m });
|
|
3276
3297
|
} else
|
|
3277
|
-
L.isColorTemplateVariable(
|
|
3278
|
-
return
|
|
3298
|
+
L.isColorTemplateVariable(u.value) || (s.push({ backgroundColor: u.value }), s.push({ color: t.textColor || Xn }));
|
|
3299
|
+
return s;
|
|
3279
3300
|
});
|
|
3280
|
-
return (
|
|
3281
|
-
class:
|
|
3282
|
-
color:
|
|
3301
|
+
return (s, k) => (v(), y("div", {
|
|
3302
|
+
class: x(["ck-chip", p.value]),
|
|
3303
|
+
color: s.color,
|
|
3283
3304
|
style: E(f.value),
|
|
3284
|
-
onClick:
|
|
3305
|
+
onClick: k[0] || (k[0] = (m) => a("click", m))
|
|
3285
3306
|
}, [
|
|
3286
|
-
|
|
3307
|
+
s.icon ? (v(), S(ie, {
|
|
3287
3308
|
key: 0,
|
|
3288
3309
|
class: "pr-2",
|
|
3289
|
-
icon:
|
|
3290
|
-
"icon-pack":
|
|
3291
|
-
}, null, 8, ["icon", "icon-pack"])) :
|
|
3292
|
-
|
|
3293
|
-
|
|
3310
|
+
icon: s.icon,
|
|
3311
|
+
"icon-pack": s.iconPack
|
|
3312
|
+
}, null, 8, ["icon", "icon-pack"])) : C("", !0),
|
|
3313
|
+
w("span", null, [
|
|
3314
|
+
W(s.$slots, "default", {}, void 0, !0)
|
|
3294
3315
|
]),
|
|
3295
|
-
|
|
3316
|
+
s.iconRight ? (v(), S(ie, {
|
|
3296
3317
|
key: 1,
|
|
3297
3318
|
class: "pl-2",
|
|
3298
|
-
icon:
|
|
3299
|
-
"icon-pack":
|
|
3300
|
-
}, null, 8, ["icon", "icon-pack"])) :
|
|
3319
|
+
icon: s.iconRight,
|
|
3320
|
+
"icon-pack": s.iconPack
|
|
3321
|
+
}, null, 8, ["icon", "icon-pack"])) : C("", !0)
|
|
3301
3322
|
], 14, Qn));
|
|
3302
3323
|
}
|
|
3303
3324
|
});
|
|
3304
|
-
const aa = /* @__PURE__ */
|
|
3325
|
+
const aa = /* @__PURE__ */ j(na, [["__scopeId", "data-v-110cf468"]]), ia = "primary", sa = "m", ra = "white", ua = /* @__PURE__ */ O({
|
|
3305
3326
|
__name: "ck-circle",
|
|
3306
3327
|
props: {
|
|
3307
3328
|
size: {},
|
|
@@ -3322,23 +3343,23 @@ const aa = /* @__PURE__ */ H(na, [["__scopeId", "data-v-110cf468"]]), ia = "prim
|
|
|
3322
3343
|
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
3344
|
});
|
|
3324
3345
|
return (i, d) => {
|
|
3325
|
-
const
|
|
3346
|
+
const u = U("ck-icon");
|
|
3326
3347
|
return v(), y("div", {
|
|
3327
|
-
class:
|
|
3348
|
+
class: x(["ck-circle", n.value]),
|
|
3328
3349
|
style: E(a.value),
|
|
3329
3350
|
onClick: d[0] || (d[0] = (p) => l("click", p))
|
|
3330
3351
|
}, [
|
|
3331
|
-
i.icon ? (v(), S(
|
|
3352
|
+
i.icon ? (v(), S(u, {
|
|
3332
3353
|
key: 0,
|
|
3333
3354
|
icon: i.icon,
|
|
3334
3355
|
iconPack: i.iconPack
|
|
3335
|
-
}, null, 8, ["icon", "iconPack"])) :
|
|
3336
|
-
|
|
3356
|
+
}, null, 8, ["icon", "iconPack"])) : C("", !0),
|
|
3357
|
+
W(i.$slots, "default", {}, void 0, !0)
|
|
3337
3358
|
], 6);
|
|
3338
3359
|
};
|
|
3339
3360
|
}
|
|
3340
3361
|
});
|
|
3341
|
-
const ca = /* @__PURE__ */
|
|
3362
|
+
const ca = /* @__PURE__ */ j(ua, [["__scopeId", "data-v-ba0b3fb6"]]), da = /* @__PURE__ */ O({
|
|
3342
3363
|
__name: "ck-div",
|
|
3343
3364
|
props: {
|
|
3344
3365
|
widthBreaks: {},
|
|
@@ -3353,15 +3374,15 @@ const ca = /* @__PURE__ */ H(ua, [["__scopeId", "data-v-ba0b3fb6"]]), da = /* @_
|
|
|
3353
3374
|
const p = L.getWidthByWidthBreaks(t.widthBreaks, a.value);
|
|
3354
3375
|
p && d.push({ width: p });
|
|
3355
3376
|
}
|
|
3356
|
-
const
|
|
3357
|
-
return
|
|
3377
|
+
const u = t.gap || n.value.div.gap;
|
|
3378
|
+
return u && d.push({ gap: u }), t.block && d.push({ display: "block" }), d;
|
|
3358
3379
|
});
|
|
3359
|
-
return (d,
|
|
3380
|
+
return (d, u) => (v(), y("div", {
|
|
3360
3381
|
class: "ck-div",
|
|
3361
3382
|
style: E(i.value),
|
|
3362
|
-
onClick:
|
|
3383
|
+
onClick: u[0] || (u[0] = (p) => l("click", p))
|
|
3363
3384
|
}, [
|
|
3364
|
-
|
|
3385
|
+
W(d.$slots, "default")
|
|
3365
3386
|
], 4));
|
|
3366
3387
|
}
|
|
3367
3388
|
});
|
|
@@ -3369,7 +3390,7 @@ const pa = {
|
|
|
3369
3390
|
defaultFailImg: "df",
|
|
3370
3391
|
imagesFolderPath: "",
|
|
3371
3392
|
defaultImgBorderColor: "#EEEEEE"
|
|
3372
|
-
}, va = ["src", "alt"], fa = /* @__PURE__ */
|
|
3393
|
+
}, va = ["src", "alt"], fa = /* @__PURE__ */ O({
|
|
3373
3394
|
__name: "ck-img",
|
|
3374
3395
|
props: {
|
|
3375
3396
|
src: {},
|
|
@@ -3389,42 +3410,42 @@ const pa = {
|
|
|
3389
3410
|
},
|
|
3390
3411
|
emits: ["click"],
|
|
3391
3412
|
setup(e, { emit: o }) {
|
|
3392
|
-
const t = e, l = o, { cleekOptions: n } = le(te()), a =
|
|
3413
|
+
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
3414
|
const m = [];
|
|
3394
|
-
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(
|
|
3395
|
-
}),
|
|
3415
|
+
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(s.value) && m.push(`ck-component__border-color--${s.value}`)), t.zoom && m.push("zoom-able"), m;
|
|
3416
|
+
}), r = c(() => {
|
|
3396
3417
|
const m = [];
|
|
3397
3418
|
t.sizeAbsolute && (m.push({ width: t.sizeAbsolute }), m.push({ height: t.sizeAbsolute }));
|
|
3398
3419
|
let g = t.radius;
|
|
3399
|
-
return typeof t.radius > "u" && n.value.styles.layout === "squared" && (g = "0px"), g && m.push({ "border-radius": g }), t.hasBorder && (L.isColorTemplateVariable(
|
|
3420
|
+
return typeof t.radius > "u" && n.value.styles.layout === "squared" && (g = "0px"), g && m.push({ "border-radius": g }), t.hasBorder && (L.isColorTemplateVariable(s.value) || m.push({ "border-color": s.value })), m;
|
|
3400
3421
|
}), f = c(() => {
|
|
3401
3422
|
const m = [];
|
|
3402
3423
|
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
|
-
}),
|
|
3404
|
-
function
|
|
3424
|
+
}), s = c(() => t.borderColor ? t.borderColor : pa.defaultImgBorderColor);
|
|
3425
|
+
function k(m) {
|
|
3405
3426
|
let g = n.value.img.basePath;
|
|
3406
3427
|
return n.value.img.basePath && (g = n.value.img.basePath), g || (g = n.value.img.basePathStatic), t.dynamic && (g = n.value.img.basePathDynamic), `${g}${m}`;
|
|
3407
3428
|
}
|
|
3408
3429
|
return be(() => {
|
|
3409
3430
|
i.value = !0;
|
|
3410
3431
|
}), (m, g) => (v(), y("div", {
|
|
3411
|
-
class:
|
|
3412
|
-
style: E(
|
|
3413
|
-
onClick: g[1] || (g[1] = (
|
|
3432
|
+
class: x(["ck-img", p.value]),
|
|
3433
|
+
style: E(r.value),
|
|
3434
|
+
onClick: g[1] || (g[1] = (_) => l("click", _))
|
|
3414
3435
|
}, [
|
|
3415
|
-
|
|
3416
|
-
src:
|
|
3436
|
+
w("img", {
|
|
3437
|
+
src: u.value,
|
|
3417
3438
|
style: E(f.value),
|
|
3418
3439
|
alt: m.alt,
|
|
3419
|
-
onError: g[0] || (g[0] = (
|
|
3440
|
+
onError: g[0] || (g[0] = (_) => a.value = !0)
|
|
3420
3441
|
}, null, 44, va)
|
|
3421
3442
|
], 6));
|
|
3422
3443
|
}
|
|
3423
3444
|
});
|
|
3424
|
-
const ma = /* @__PURE__ */
|
|
3445
|
+
const ma = /* @__PURE__ */ j(fa, [["__scopeId", "data-v-485e840f"]]), ga = ["onKeyup"], ha = ["name", "value", "disabled"], ka = {
|
|
3425
3446
|
key: 0,
|
|
3426
3447
|
class: "c-Radio__label"
|
|
3427
|
-
}, ya = /* @__PURE__ */
|
|
3448
|
+
}, ya = /* @__PURE__ */ O({
|
|
3428
3449
|
__name: "ck-radio",
|
|
3429
3450
|
props: {
|
|
3430
3451
|
modelValue: {},
|
|
@@ -3460,24 +3481,24 @@ const ma = /* @__PURE__ */ H(fa, [["__scopeId", "data-v-485e840f"]]), ga = ["onK
|
|
|
3460
3481
|
const p = [];
|
|
3461
3482
|
return t.vertical && p.push("vertical"), t.classes && p.push(t.classes), p;
|
|
3462
3483
|
});
|
|
3463
|
-
function
|
|
3484
|
+
function u(p, r) {
|
|
3464
3485
|
p.value = n, l("change", n);
|
|
3465
3486
|
}
|
|
3466
|
-
return (p,
|
|
3487
|
+
return (p, r) => (v(!0), y(Y, null, de(i.value, (f, s) => (v(), y("label", Ne({
|
|
3467
3488
|
class: "ck-radio",
|
|
3468
|
-
key: `radio-${
|
|
3489
|
+
key: `radio-${s}`,
|
|
3469
3490
|
ref_for: !0
|
|
3470
3491
|
}, a.value, {
|
|
3471
3492
|
class: d.value,
|
|
3472
|
-
onKeydown:
|
|
3493
|
+
onKeydown: r[1] || (r[1] = _e(re(() => {
|
|
3473
3494
|
}, ["prevent"]), ["space"])),
|
|
3474
3495
|
onKeyup: [
|
|
3475
|
-
|
|
3476
|
-
|
|
3496
|
+
_e((k) => u(f), ["enter"]),
|
|
3497
|
+
_e((k) => u(f), ["space"])
|
|
3477
3498
|
]
|
|
3478
3499
|
}), [
|
|
3479
|
-
|
|
3480
|
-
"onUpdate:modelValue":
|
|
3500
|
+
ue(w("input", {
|
|
3501
|
+
"onUpdate:modelValue": r[0] || (r[0] = (k) => n.value = k),
|
|
3481
3502
|
class: "c-Radio__input",
|
|
3482
3503
|
"aria-hidden": "true",
|
|
3483
3504
|
type: "radio",
|
|
@@ -3487,12 +3508,12 @@ const ma = /* @__PURE__ */ H(fa, [["__scopeId", "data-v-485e840f"]]), ga = ["onK
|
|
|
3487
3508
|
}, null, 8, ha), [
|
|
3488
3509
|
[qt, n.value]
|
|
3489
3510
|
]),
|
|
3490
|
-
|
|
3491
|
-
f.label ? (v(), y("span", ka, I(f.label), 1)) :
|
|
3511
|
+
r[2] || (r[2] = w("div", { class: "c-Radio__element" }, null, -1)),
|
|
3512
|
+
f.label ? (v(), y("span", ka, I(f.label), 1)) : C("", !0)
|
|
3492
3513
|
], 16, ga))), 128));
|
|
3493
3514
|
}
|
|
3494
3515
|
});
|
|
3495
|
-
const _a = /* @__PURE__ */
|
|
3516
|
+
const _a = /* @__PURE__ */ j(ya, [["__scopeId", "data-v-d37d3f3e"]]);
|
|
3496
3517
|
function ba(e, o) {
|
|
3497
3518
|
const t = (l) => {
|
|
3498
3519
|
var a;
|
|
@@ -3503,15 +3524,15 @@ function ba(e, o) {
|
|
|
3503
3524
|
}
|
|
3504
3525
|
window[l]("scroll", o);
|
|
3505
3526
|
};
|
|
3506
|
-
be(() => t("addEventListener")),
|
|
3527
|
+
be(() => t("addEventListener")), Xe(() => t("removeEventListener"));
|
|
3507
3528
|
}
|
|
3508
|
-
function
|
|
3529
|
+
function dt(e) {
|
|
3509
3530
|
return e.normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLowerCase();
|
|
3510
3531
|
}
|
|
3511
3532
|
const Ca = {
|
|
3512
3533
|
key: 0,
|
|
3513
3534
|
class: "ck-select--optional-label"
|
|
3514
|
-
}, wa = ["disabled"], $a = ["value"], Ba = ["placeholder", "disabled"], Ta = ["onMousedown", "onMouseenter"], Va = ["textContent"], Da = /* @__PURE__ */
|
|
3535
|
+
}, wa = ["disabled"], $a = ["value"], Ba = ["placeholder", "disabled"], Ta = ["onMousedown", "onMouseenter"], Va = ["textContent"], Da = /* @__PURE__ */ O({
|
|
3515
3536
|
__name: "ck-select",
|
|
3516
3537
|
props: /* @__PURE__ */ ee({
|
|
3517
3538
|
options: {},
|
|
@@ -3557,241 +3578,244 @@ const Ca = {
|
|
|
3557
3578
|
setup(e, { expose: o, emit: t }) {
|
|
3558
3579
|
const l = ge(e, "modelValue"), n = e, a = t;
|
|
3559
3580
|
o({
|
|
3560
|
-
focus:
|
|
3581
|
+
focus: K,
|
|
3561
3582
|
blur: Be
|
|
3562
3583
|
});
|
|
3563
|
-
const { cleekOptions: i } = le(te()), { windowWidth: d } = he(),
|
|
3584
|
+
const { cleekOptions: i } = le(te()), { windowWidth: d } = he(), u = M(), p = M(), r = M(), f = M(), s = M(""), k = M(!1), m = M(!1), g = M(-1), _ = c(() => n.options.find((b) => ve(b) === l.value)), h = c(() => n.options.length), V = c(() => !h.value), R = c(() => h.value <= n.optionsLimit), D = c(() => {
|
|
3564
3585
|
if (m.value)
|
|
3565
3586
|
return n.options;
|
|
3566
|
-
const
|
|
3567
|
-
return n.options.filter((
|
|
3568
|
-
const
|
|
3569
|
-
return
|
|
3587
|
+
const b = dt(s.value).split(" ");
|
|
3588
|
+
return n.options.filter((z) => {
|
|
3589
|
+
const J = dt(Ce(z));
|
|
3590
|
+
return b.every((N) => J.includes(N));
|
|
3570
3591
|
});
|
|
3571
|
-
}),
|
|
3572
|
-
if (
|
|
3573
|
-
return
|
|
3574
|
-
}),
|
|
3575
|
-
var
|
|
3592
|
+
}), B = c(() => D.value.length), P = c(() => {
|
|
3593
|
+
if (k.value && _.value)
|
|
3594
|
+
return Ce(_.value);
|
|
3595
|
+
}), F = c(() => n.disabled || V.value), X = c(() => {
|
|
3596
|
+
var b;
|
|
3576
3597
|
if (n.clearValue)
|
|
3577
3598
|
return n.clearValue;
|
|
3578
|
-
if ((
|
|
3599
|
+
if ((b = i.value.select) != null && b.clearValue)
|
|
3579
3600
|
return i.value.select.clearValue;
|
|
3580
|
-
}),
|
|
3581
|
-
if (
|
|
3582
|
-
return
|
|
3583
|
-
const
|
|
3584
|
-
switch (typeof
|
|
3601
|
+
}), ne = c(() => {
|
|
3602
|
+
if (X.value)
|
|
3603
|
+
return X.value;
|
|
3604
|
+
const b = l.value;
|
|
3605
|
+
switch (typeof b) {
|
|
3585
3606
|
case "number":
|
|
3586
3607
|
return 0;
|
|
3587
3608
|
case "string":
|
|
3588
3609
|
return "";
|
|
3589
3610
|
case "object":
|
|
3590
|
-
return
|
|
3611
|
+
return b ? Array.isArray(b) ? [] : {} : null;
|
|
3591
3612
|
default:
|
|
3592
3613
|
return null;
|
|
3593
3614
|
}
|
|
3594
|
-
}),
|
|
3595
|
-
const
|
|
3596
|
-
return
|
|
3597
|
-
}), T = c(() => n.isLoading ? "Cargando..." : V.value ? n.emptyOptionsMsg : n.placeholder),
|
|
3598
|
-
() => (V.value ||
|
|
3599
|
-
),
|
|
3600
|
-
const
|
|
3601
|
-
return n.icon &&
|
|
3602
|
-
}),
|
|
3603
|
-
const
|
|
3604
|
-
let
|
|
3615
|
+
}), we = c(() => {
|
|
3616
|
+
const b = l.value;
|
|
3617
|
+
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;
|
|
3618
|
+
}), T = c(() => n.isLoading ? "Cargando..." : V.value ? n.emptyOptionsMsg : n.placeholder), q = c(
|
|
3619
|
+
() => (V.value || we.value) && !s.value && T.value || n.isLoading
|
|
3620
|
+
), se = c(() => F.value || n.notClearable ? !1 : !we.value), $ = c(() => {
|
|
3621
|
+
const b = [];
|
|
3622
|
+
return n.icon && b.push("has-icon-left"), n.iconRight && b.push("has-icon-right"), b;
|
|
3623
|
+
}), A = c(() => {
|
|
3624
|
+
const b = [];
|
|
3625
|
+
let z = !1;
|
|
3605
3626
|
if (n.widthBreaks) {
|
|
3606
|
-
const
|
|
3607
|
-
|
|
3627
|
+
const J = L.getWidthByWidthBreaks(n.widthBreaks, d.value);
|
|
3628
|
+
J && (b.push({ width: J }), z = !0);
|
|
3608
3629
|
}
|
|
3609
|
-
return !
|
|
3610
|
-
}),
|
|
3611
|
-
const
|
|
3612
|
-
|
|
3613
|
-
const
|
|
3614
|
-
|
|
3615
|
-
const
|
|
3616
|
-
return
|
|
3630
|
+
return !z && n.minWidth && b.push({ "min-width": n.minWidth }), n.width && b.push({ width: n.width }), b;
|
|
3631
|
+
}), Q = c(() => {
|
|
3632
|
+
const b = [];
|
|
3633
|
+
b.push(L.getGroupClass(n, d.value));
|
|
3634
|
+
const z = n.layout || i.value.styles.layout;
|
|
3635
|
+
z && b.push(z), se.value && b.push("clearable");
|
|
3636
|
+
const J = n.borderColor || i.value.styles.borderColor;
|
|
3637
|
+
return J && L.isColorTemplateVariable(J) && b.push(`ck-component__border-color--${J}`), b;
|
|
3617
3638
|
}), oe = c(() => {
|
|
3618
|
-
const
|
|
3619
|
-
|
|
3620
|
-
let
|
|
3621
|
-
i.value.select.backgroundColor && (
|
|
3639
|
+
const b = [], z = n.borderColor || i.value.styles.borderColor;
|
|
3640
|
+
z && !L.isColorTemplateVariable(z) && b.push({ "border-color": z });
|
|
3641
|
+
let J = "";
|
|
3642
|
+
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
3643
|
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 && (
|
|
3644
|
+
return i.value.darkMode && (N = i.value.darkModeColorText), N && (L.isColorTemplateVariable(N) ? b.push(`ck-component__color--${N}`) : b.push({ color: N })), b;
|
|
3645
|
+
}), ae = c(() => {
|
|
3646
|
+
const b = [];
|
|
3647
|
+
let z = i.value.popup.textColor;
|
|
3648
|
+
return i.value.darkMode && (z = i.value.darkModeColorText), z && (L.isColorTemplateVariable(z) ? b.push(`ck-component__color--${z}`) : b.push({ color: z })), b;
|
|
3628
3649
|
});
|
|
3629
|
-
|
|
3630
|
-
g.value !== -1 && (g.value + 1 <=
|
|
3631
|
-
}),
|
|
3632
|
-
|
|
3633
|
-
const
|
|
3634
|
-
|
|
3635
|
-
const
|
|
3636
|
-
me["max-height"] =
|
|
3650
|
+
ce(() => _.value, () => He()), ce(() => B.value, (b) => {
|
|
3651
|
+
g.value !== -1 && (g.value + 1 <= b || (g.value = b - 1));
|
|
3652
|
+
}), ce(() => r.value, (b) => {
|
|
3653
|
+
b && (f.value = { display: "none" }, setTimeout(() => {
|
|
3654
|
+
const z = document.documentElement.clientHeight, J = document.documentElement.clientWidth, N = p.value.getBoundingClientRect(), me = {}, xe = N.top < z / 2;
|
|
3655
|
+
xe ? me.top = `${N.bottom}px` : me.bottom = `${z - N.top}px`, me.left = `${N.left}px`, me.right = `${J - N.right}px`;
|
|
3656
|
+
const ot = 100;
|
|
3657
|
+
me["max-height"] = xe ? `${z - N.top - ot}px` : `${N.bottom - ot}px`, me.display = "block", f.value = me;
|
|
3637
3658
|
}, 150));
|
|
3638
3659
|
});
|
|
3639
|
-
function
|
|
3640
|
-
return n.reduceValueFunction ? n.reduceValueFunction(
|
|
3660
|
+
function ve(b) {
|
|
3661
|
+
return n.reduceValueFunction ? n.reduceValueFunction(b) : n.notReduceValue || n.notReduce ? b : n.reduceValueMethod ? b[n.reduceValueMethod]() : b[n.reduceValueProp];
|
|
3641
3662
|
}
|
|
3642
|
-
function
|
|
3643
|
-
return n.reduceNameFunction ? n.reduceNameFunction(
|
|
3663
|
+
function Ce(b) {
|
|
3664
|
+
return n.reduceNameFunction ? n.reduceNameFunction(b) : n.notReduceName || n.notReduce ? b : n.reduceNameMethod ? b[n.reduceNameMethod]() : b[n.reduceNameProp];
|
|
3644
3665
|
}
|
|
3645
|
-
function
|
|
3646
|
-
var
|
|
3647
|
-
(
|
|
3666
|
+
function K() {
|
|
3667
|
+
var b, z;
|
|
3668
|
+
(b = u.value) == null || b.focus(), (z = p.value) == null || z.focus();
|
|
3648
3669
|
}
|
|
3649
3670
|
function Be() {
|
|
3650
|
-
var
|
|
3651
|
-
(
|
|
3671
|
+
var b, z;
|
|
3672
|
+
(b = u.value) == null || b.blur(), (z = p.value) == null || z.blur();
|
|
3652
3673
|
}
|
|
3653
3674
|
function Fe() {
|
|
3654
|
-
|
|
3675
|
+
s.value = "", m.value = !0, Lt(), k.value = !0;
|
|
3655
3676
|
}
|
|
3656
3677
|
function Bt() {
|
|
3657
|
-
He(),
|
|
3678
|
+
He(), k.value = !1;
|
|
3658
3679
|
}
|
|
3659
3680
|
function Tt() {
|
|
3660
3681
|
m.value = !1;
|
|
3661
3682
|
}
|
|
3662
|
-
function Vt(
|
|
3663
|
-
const
|
|
3664
|
-
if (
|
|
3665
|
-
g.value = g.value + 1 >=
|
|
3666
|
-
else if (
|
|
3667
|
-
g.value = g.value <= 0 ?
|
|
3668
|
-
else if (
|
|
3669
|
-
const
|
|
3670
|
-
qe(
|
|
3683
|
+
function Vt(b) {
|
|
3684
|
+
const z = B.value;
|
|
3685
|
+
if (b === "ArrowDown")
|
|
3686
|
+
g.value = g.value + 1 >= z ? 0 : g.value + 1;
|
|
3687
|
+
else if (b === "ArrowUp")
|
|
3688
|
+
g.value = g.value <= 0 ? z - 1 : g.value - 1;
|
|
3689
|
+
else if (b === "Enter") {
|
|
3690
|
+
const J = g.value >= 0 ? g.value : 0;
|
|
3691
|
+
qe(ve(D.value[J])), Be();
|
|
3671
3692
|
}
|
|
3672
3693
|
}
|
|
3673
|
-
function qe(
|
|
3674
|
-
l.value =
|
|
3694
|
+
function qe(b) {
|
|
3695
|
+
l.value = b, a("change", b);
|
|
3675
3696
|
}
|
|
3676
3697
|
function He() {
|
|
3677
|
-
const
|
|
3678
|
-
|
|
3698
|
+
const b = _.value;
|
|
3699
|
+
s.value = b ? Ce(b) : "";
|
|
3679
3700
|
}
|
|
3680
3701
|
function Dt() {
|
|
3681
|
-
|
|
3702
|
+
s.value = "", qe(ne.value);
|
|
3682
3703
|
}
|
|
3683
3704
|
function Lt() {
|
|
3684
|
-
if (
|
|
3685
|
-
const
|
|
3686
|
-
g.value =
|
|
3705
|
+
if (_.value) {
|
|
3706
|
+
const b = D.value;
|
|
3707
|
+
g.value = b.findIndex((z) => ve(z) === ve(_.value));
|
|
3687
3708
|
} else
|
|
3688
3709
|
g.value = -1;
|
|
3689
3710
|
}
|
|
3690
3711
|
return ba(p, () => {
|
|
3691
|
-
var
|
|
3692
|
-
return (
|
|
3693
|
-
}), He(), (
|
|
3694
|
-
const
|
|
3712
|
+
var b;
|
|
3713
|
+
return (b = p.value) == null ? void 0 : b.blur();
|
|
3714
|
+
}), He(), (b, z) => {
|
|
3715
|
+
const J = U("ck-button");
|
|
3695
3716
|
return v(), y("div", {
|
|
3696
|
-
class:
|
|
3697
|
-
style: E(
|
|
3717
|
+
class: x(["ck-select", $.value]),
|
|
3718
|
+
style: E(A.value)
|
|
3698
3719
|
}, [
|
|
3699
|
-
|
|
3720
|
+
b.label ? (v(), S(Me, {
|
|
3700
3721
|
key: 0,
|
|
3701
|
-
align:
|
|
3722
|
+
align: b.labelAlign,
|
|
3702
3723
|
for: "ck-select"
|
|
3703
3724
|
}, {
|
|
3704
|
-
default:
|
|
3705
|
-
|
|
3706
|
-
|
|
3725
|
+
default: H(() => [
|
|
3726
|
+
Z(I(b.label) + " ", 1),
|
|
3727
|
+
b.optional ? (v(), y("span", Ca, "opcional")) : C("", !0)
|
|
3707
3728
|
]),
|
|
3708
3729
|
_: 1
|
|
3709
|
-
}, 8, ["align"])) :
|
|
3710
|
-
|
|
3730
|
+
}, 8, ["align"])) : C("", !0),
|
|
3731
|
+
R.value ? ue((v(), y("select", {
|
|
3711
3732
|
key: 1,
|
|
3712
3733
|
ref_key: "selectRef",
|
|
3713
|
-
ref:
|
|
3714
|
-
|
|
3734
|
+
ref: u,
|
|
3735
|
+
tabindex: "0",
|
|
3736
|
+
"onUpdate:modelValue": z[0] || (z[0] = (N) => l.value = N),
|
|
3715
3737
|
id: "ck-select",
|
|
3716
|
-
class:
|
|
3738
|
+
class: x(Q.value),
|
|
3717
3739
|
style: E(oe.value),
|
|
3718
|
-
disabled:
|
|
3719
|
-
onChange:
|
|
3720
|
-
onClick:
|
|
3740
|
+
disabled: F.value,
|
|
3741
|
+
onChange: z[1] || (z[1] = (N) => a("change", l.value)),
|
|
3742
|
+
onClick: z[2] || (z[2] = (N) => a("click", N))
|
|
3721
3743
|
}, [
|
|
3722
|
-
(v(!0), y(
|
|
3723
|
-
value:
|
|
3744
|
+
(v(!0), y(Y, null, de(b.options, (N) => (v(), y("option", {
|
|
3745
|
+
value: ve(N),
|
|
3724
3746
|
key: N,
|
|
3725
|
-
style: E(
|
|
3726
|
-
}, I(
|
|
3747
|
+
style: E(ae.value)
|
|
3748
|
+
}, I(Ce(N)), 13, $a))), 128))
|
|
3727
3749
|
], 46, wa)), [
|
|
3728
3750
|
[Ht, l.value]
|
|
3729
|
-
]) :
|
|
3751
|
+
]) : ue((v(), y("input", {
|
|
3730
3752
|
key: 2,
|
|
3731
3753
|
ref_key: "inputRef",
|
|
3732
3754
|
ref: p,
|
|
3733
|
-
|
|
3755
|
+
tabindex: "0",
|
|
3756
|
+
"onUpdate:modelValue": z[3] || (z[3] = (N) => s.value = N),
|
|
3734
3757
|
id: "ck-select",
|
|
3735
|
-
class:
|
|
3758
|
+
class: x(Q.value),
|
|
3736
3759
|
style: E(oe.value),
|
|
3737
|
-
placeholder:
|
|
3738
|
-
disabled:
|
|
3760
|
+
placeholder: P.value,
|
|
3761
|
+
disabled: F.value,
|
|
3739
3762
|
autocomplete: "off",
|
|
3740
|
-
onClick:
|
|
3741
|
-
onFocus:
|
|
3742
|
-
onBlur:
|
|
3743
|
-
onInput:
|
|
3744
|
-
onKeydown:
|
|
3763
|
+
onClick: z[4] || (z[4] = (N) => a("click", N)),
|
|
3764
|
+
onFocus: z[5] || (z[5] = (N) => Fe()),
|
|
3765
|
+
onBlur: z[6] || (z[6] = (N) => Bt()),
|
|
3766
|
+
onInput: z[7] || (z[7] = (N) => Tt()),
|
|
3767
|
+
onKeydown: z[8] || (z[8] = (N) => Vt(N.key))
|
|
3745
3768
|
}, null, 46, Ba)), [
|
|
3746
|
-
[We,
|
|
3769
|
+
[We, s.value]
|
|
3747
3770
|
]),
|
|
3748
3771
|
(v(), S(Pe, { to: "body" }, [
|
|
3749
|
-
|
|
3772
|
+
k.value && D.value.length ? (v(), y("ul", {
|
|
3750
3773
|
key: 0,
|
|
3751
3774
|
ref_key: "dropdownRef",
|
|
3752
|
-
ref:
|
|
3775
|
+
ref: r,
|
|
3753
3776
|
class: "ck-input-dropdown",
|
|
3754
3777
|
style: E(f.value)
|
|
3755
3778
|
}, [
|
|
3756
|
-
(v(!0), y(
|
|
3757
|
-
key:
|
|
3758
|
-
class:
|
|
3759
|
-
"dropdown--option__selected":
|
|
3779
|
+
(v(!0), y(Y, null, de(D.value, (N, me) => (v(), y("li", {
|
|
3780
|
+
key: ve(N),
|
|
3781
|
+
class: x(["dropdown--option", {
|
|
3782
|
+
"dropdown--option__selected": ve(N) === l.value,
|
|
3760
3783
|
"dropdown--option__index-selected": me === g.value
|
|
3761
3784
|
}]),
|
|
3762
|
-
onMousedown: (
|
|
3763
|
-
onMouseenter: (
|
|
3764
|
-
}, I(
|
|
3765
|
-
], 4)) :
|
|
3785
|
+
onMousedown: (xe) => qe(ve(N)),
|
|
3786
|
+
onMouseenter: (xe) => g.value = me
|
|
3787
|
+
}, I(Ce(N)), 43, Ta))), 128))
|
|
3788
|
+
], 4)) : C("", !0)
|
|
3766
3789
|
])),
|
|
3767
|
-
|
|
3790
|
+
q.value ? (v(), y("span", {
|
|
3768
3791
|
key: 3,
|
|
3769
3792
|
class: "ck-select--placeholder",
|
|
3770
3793
|
textContent: I(T.value)
|
|
3771
|
-
}, null, 8, Va)) :
|
|
3772
|
-
|
|
3794
|
+
}, null, 8, Va)) : C("", !0),
|
|
3795
|
+
b.icon ? (v(), S(ie, {
|
|
3773
3796
|
key: 4,
|
|
3774
3797
|
class: "ck-select--icon-left",
|
|
3775
|
-
icon:
|
|
3776
|
-
"icon-pack":
|
|
3777
|
-
color:
|
|
3778
|
-
}, null, 8, ["icon", "icon-pack", "color"])) :
|
|
3779
|
-
|
|
3798
|
+
icon: b.icon,
|
|
3799
|
+
"icon-pack": b.iconPack,
|
|
3800
|
+
color: b.iconColor
|
|
3801
|
+
}, null, 8, ["icon", "icon-pack", "color"])) : C("", !0),
|
|
3802
|
+
b.iconRight ? (v(), S(ie, {
|
|
3780
3803
|
key: 5,
|
|
3781
3804
|
class: "ck-select--icon-right",
|
|
3782
|
-
icon:
|
|
3783
|
-
"icon-pack":
|
|
3784
|
-
color:
|
|
3785
|
-
}, null, 8, ["icon", "icon-pack", "color"])) :
|
|
3786
|
-
|
|
3805
|
+
icon: b.iconRight,
|
|
3806
|
+
"icon-pack": b.iconPack,
|
|
3807
|
+
color: b.iconColor
|
|
3808
|
+
}, null, 8, ["icon", "icon-pack", "color"])) : C("", !0),
|
|
3809
|
+
se.value ? (v(), S(J, {
|
|
3787
3810
|
key: 6,
|
|
3788
3811
|
class: "ck-select--btn",
|
|
3789
3812
|
size: "s",
|
|
3790
3813
|
icon: "times",
|
|
3791
3814
|
type: "flat",
|
|
3792
|
-
onClick:
|
|
3793
|
-
})) :
|
|
3815
|
+
onClick: z[9] || (z[9] = (N) => Dt())
|
|
3816
|
+
})) : F.value ? C("", !0) : (v(), S(J, {
|
|
3794
3817
|
key: 7,
|
|
3818
|
+
tabindex: "-1",
|
|
3795
3819
|
class: "ck-select--btn",
|
|
3796
3820
|
style: { "pointer-events": "none" },
|
|
3797
3821
|
size: "s",
|
|
@@ -3802,7 +3826,7 @@ const Ca = {
|
|
|
3802
3826
|
};
|
|
3803
3827
|
}
|
|
3804
3828
|
});
|
|
3805
|
-
const La = /* @__PURE__ */
|
|
3829
|
+
const La = /* @__PURE__ */ j(Da, [["__scopeId", "data-v-cd07c9f8"]]), Sa = {
|
|
3806
3830
|
key: 0,
|
|
3807
3831
|
class: "sidebar-header-title"
|
|
3808
3832
|
}, Pa = {
|
|
@@ -3811,10 +3835,10 @@ const La = /* @__PURE__ */ H(Da, [["__scopeId", "data-v-c9496ce1"]]), Sa = {
|
|
|
3811
3835
|
}, Ma = {
|
|
3812
3836
|
key: 2,
|
|
3813
3837
|
class: "ck-sidebar__content"
|
|
3814
|
-
},
|
|
3838
|
+
}, xa = {
|
|
3815
3839
|
key: 3,
|
|
3816
3840
|
class: "ck-sidbar__footer"
|
|
3817
|
-
},
|
|
3841
|
+
}, Ia = /* @__PURE__ */ O({
|
|
3818
3842
|
__name: "ck-sidebar",
|
|
3819
3843
|
props: /* @__PURE__ */ ee({
|
|
3820
3844
|
title: {},
|
|
@@ -3835,60 +3859,60 @@ const La = /* @__PURE__ */ H(Da, [["__scopeId", "data-v-c9496ce1"]]), Sa = {
|
|
|
3835
3859
|
const o = ge(e, "modelValue"), t = e, l = c(() => ({
|
|
3836
3860
|
"right-side": t.rightSide
|
|
3837
3861
|
})), n = c(() => {
|
|
3838
|
-
const
|
|
3839
|
-
return t.width &&
|
|
3862
|
+
const u = [];
|
|
3863
|
+
return t.width && u.push({ width: t.width }), u;
|
|
3840
3864
|
}), a = c(() => {
|
|
3841
|
-
const
|
|
3865
|
+
const u = [];
|
|
3842
3866
|
let p = t.closeBtnAlign;
|
|
3843
|
-
return t.notCloseBtn && (p = "hidden"), p &&
|
|
3867
|
+
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
3868
|
}), i = c(() => {
|
|
3845
|
-
const
|
|
3846
|
-
return t.headerColor && !L.isColorTemplateVariable(t.headerColor) &&
|
|
3869
|
+
const u = [];
|
|
3870
|
+
return t.headerColor && !L.isColorTemplateVariable(t.headerColor) && u.push({ "background-color": t.headerColor }), u;
|
|
3847
3871
|
}), d = c(() => t.closeBtnIcon ? t.closeBtnIcon : "times");
|
|
3848
|
-
return
|
|
3849
|
-
const
|
|
3872
|
+
return ce(() => o.value, (u) => $t(!u)), (u, p) => {
|
|
3873
|
+
const r = U("ck-icon");
|
|
3850
3874
|
return o.value ? (v(), y("div", {
|
|
3851
3875
|
key: 0,
|
|
3852
3876
|
class: "ck-sidebar-background",
|
|
3853
|
-
onClick: p[1] || (p[1] =
|
|
3877
|
+
onClick: p[1] || (p[1] = re((f) => o.value = !1, ["self"]))
|
|
3854
3878
|
}, [
|
|
3855
|
-
|
|
3856
|
-
class:
|
|
3879
|
+
w("div", {
|
|
3880
|
+
class: x(["ck-sidebar", l.value]),
|
|
3857
3881
|
style: E(n.value)
|
|
3858
3882
|
}, [
|
|
3859
|
-
|
|
3860
|
-
|
|
3883
|
+
W(u.$slots, "header", {}, void 0, !0),
|
|
3884
|
+
u.title ? (v(), y("div", {
|
|
3861
3885
|
key: 0,
|
|
3862
|
-
class:
|
|
3886
|
+
class: x(["sidebar-header", a.value]),
|
|
3863
3887
|
style: E(i.value),
|
|
3864
3888
|
onClick: p[0] || (p[0] = (f) => o.value = !1)
|
|
3865
3889
|
}, [
|
|
3866
|
-
|
|
3867
|
-
|
|
3890
|
+
u.title ? (v(), y("div", Sa, I(u.title), 1)) : C("", !0),
|
|
3891
|
+
u.notCloseBtn ? (v(), S(r, {
|
|
3868
3892
|
key: 1,
|
|
3869
3893
|
class: "close-btn",
|
|
3870
3894
|
icon: d.value
|
|
3871
|
-
}, null, 8, ["icon"])) :
|
|
3872
|
-
], 6)) :
|
|
3873
|
-
|
|
3874
|
-
|
|
3895
|
+
}, null, 8, ["icon"])) : C("", !0)
|
|
3896
|
+
], 6)) : C("", !0),
|
|
3897
|
+
u.isLoading ? (v(), y("div", Pa, [
|
|
3898
|
+
G(r, {
|
|
3875
3899
|
icon: "spinner",
|
|
3876
3900
|
size: "xxl",
|
|
3877
3901
|
spin: "",
|
|
3878
3902
|
color: "primary"
|
|
3879
3903
|
})
|
|
3880
3904
|
])) : (v(), y("div", Ma, [
|
|
3881
|
-
|
|
3905
|
+
W(u.$slots, "default", {}, void 0, !0)
|
|
3882
3906
|
])),
|
|
3883
|
-
|
|
3884
|
-
|
|
3885
|
-
])) :
|
|
3907
|
+
u.$slots.footer ? (v(), y("div", xa, [
|
|
3908
|
+
W(u.$slots, "footer", {}, void 0, !0)
|
|
3909
|
+
])) : C("", !0)
|
|
3886
3910
|
], 6)
|
|
3887
|
-
])) :
|
|
3911
|
+
])) : C("", !0);
|
|
3888
3912
|
};
|
|
3889
3913
|
}
|
|
3890
3914
|
});
|
|
3891
|
-
const Aa = /* @__PURE__ */
|
|
3915
|
+
const Aa = /* @__PURE__ */ j(Ia, [["__scopeId", "data-v-19f1984b"]]), za = ["disabled"], Ra = { class: "ck-switch__slider-container" }, Ye = "s", Oa = "m", Wa = /* @__PURE__ */ O({
|
|
3892
3916
|
__name: "ck-switch",
|
|
3893
3917
|
props: /* @__PURE__ */ ee({
|
|
3894
3918
|
preventAutoUpdate: { type: Boolean },
|
|
@@ -3898,6 +3922,7 @@ const Aa = /* @__PURE__ */ H(xa, [["__scopeId", "data-v-19f1984b"]]), za = ["dis
|
|
|
3898
3922
|
size: {},
|
|
3899
3923
|
textSize: {},
|
|
3900
3924
|
switchSide: {},
|
|
3925
|
+
color: {},
|
|
3901
3926
|
icon: {},
|
|
3902
3927
|
iconPack: {}
|
|
3903
3928
|
}, {
|
|
@@ -3907,78 +3932,78 @@ const Aa = /* @__PURE__ */ H(xa, [["__scopeId", "data-v-19f1984b"]]), za = ["dis
|
|
|
3907
3932
|
emits: /* @__PURE__ */ ee(["click"], ["update:modelValue"]),
|
|
3908
3933
|
setup(e, { emit: o }) {
|
|
3909
3934
|
const t = ge(e, "modelValue"), l = e, n = o, { cleekOptions: a } = le(te()), i = c(() => {
|
|
3910
|
-
const
|
|
3911
|
-
l.squared &&
|
|
3912
|
-
let
|
|
3913
|
-
return
|
|
3935
|
+
const s = [];
|
|
3936
|
+
l.squared && s.push("is-squared"), l.outlined && s.push("is-outlined"), l.color && s.push(`--${l.color}`);
|
|
3937
|
+
let k = l.size || Ye;
|
|
3938
|
+
return s.push(`ck-switch--size-${k}`), s;
|
|
3914
3939
|
}), d = c(() => ({
|
|
3915
3940
|
"aria-disabled": l.disabled,
|
|
3916
3941
|
tabindex: l.disabled ? void 0 : "0"
|
|
3917
|
-
})),
|
|
3918
|
-
const
|
|
3919
|
-
return l.size && l.size !== Ye &&
|
|
3942
|
+
})), u = c(() => {
|
|
3943
|
+
const s = [];
|
|
3944
|
+
return l.size && l.size !== Ye && s.push(`ck-switch__icon-size--${l.size}`), s;
|
|
3920
3945
|
}), p = c(() => {
|
|
3921
|
-
const
|
|
3922
|
-
return a.value.darkMode &&
|
|
3923
|
-
}),
|
|
3924
|
-
const
|
|
3925
|
-
return l.textSize && l.textSize !== Oa &&
|
|
3946
|
+
const s = [];
|
|
3947
|
+
return a.value.darkMode && s.push({ color: a.value.darkModeColorText }), l.size && l.size !== Ye && s.push(`ck-switch__icon-size--${l.size}`), s;
|
|
3948
|
+
}), r = c(() => {
|
|
3949
|
+
const s = [];
|
|
3950
|
+
return l.textSize && l.textSize !== Oa && s.push(`ck-switch__text-size--${l.textSize}`), s;
|
|
3926
3951
|
});
|
|
3927
|
-
function f(
|
|
3952
|
+
function f(s) {
|
|
3928
3953
|
if (l.preventAutoUpdate) {
|
|
3929
|
-
|
|
3954
|
+
s.preventDefault(), s.stopPropagation();
|
|
3930
3955
|
return;
|
|
3931
3956
|
}
|
|
3932
3957
|
n("click");
|
|
3933
3958
|
}
|
|
3934
|
-
return (
|
|
3959
|
+
return (s, k) => (v(), y("label", Ne(d.value, {
|
|
3935
3960
|
class: ["ck-switch", i.value],
|
|
3936
|
-
onKeydown:
|
|
3961
|
+
onKeydown: k[2] || (k[2] = _e(re(() => {
|
|
3937
3962
|
}, ["prevent"]), ["space"]))
|
|
3938
3963
|
}), [
|
|
3939
|
-
|
|
3964
|
+
s.$slots.default && s.switchSide === "right" ? (v(), y("span", {
|
|
3940
3965
|
key: 0,
|
|
3941
|
-
class:
|
|
3966
|
+
class: x(["ck-switch__content", r.value]),
|
|
3942
3967
|
style: E(p.value)
|
|
3943
3968
|
}, [
|
|
3944
|
-
|
|
3945
|
-
], 6)) :
|
|
3946
|
-
|
|
3969
|
+
W(s.$slots, "default", {}, void 0, !0)
|
|
3970
|
+
], 6)) : C("", !0),
|
|
3971
|
+
ue(w("input", {
|
|
3947
3972
|
class: "ck-switch__input",
|
|
3948
3973
|
type: "checkbox",
|
|
3949
|
-
"onUpdate:modelValue":
|
|
3974
|
+
"onUpdate:modelValue": k[0] || (k[0] = (m) => t.value = m),
|
|
3950
3975
|
"aria-hidden": "true",
|
|
3951
|
-
disabled:
|
|
3952
|
-
onClick:
|
|
3976
|
+
disabled: s.disabled,
|
|
3977
|
+
onClick: k[1] || (k[1] = (m) => f(m))
|
|
3953
3978
|
}, null, 8, za), [
|
|
3954
3979
|
[jt, t.value]
|
|
3955
3980
|
]),
|
|
3956
|
-
|
|
3957
|
-
|
|
3958
|
-
|
|
3981
|
+
w("div", Ra, [
|
|
3982
|
+
k[3] || (k[3] = w("div", { class: "ck-switch__slider" }, null, -1)),
|
|
3983
|
+
s.icon && t.value ? (v(), S(ie, {
|
|
3959
3984
|
key: 0,
|
|
3960
|
-
class:
|
|
3961
|
-
icon:
|
|
3962
|
-
"icon-pack":
|
|
3963
|
-
}, null, 8, ["icon", "icon-pack", "class"])) :
|
|
3964
|
-
|
|
3985
|
+
class: x(["ck-switch__icon-left", u.value]),
|
|
3986
|
+
icon: s.icon,
|
|
3987
|
+
"icon-pack": s.iconPack
|
|
3988
|
+
}, null, 8, ["icon", "icon-pack", "class"])) : C("", !0),
|
|
3989
|
+
s.icon && !t.value ? (v(), S(ie, {
|
|
3965
3990
|
key: 1,
|
|
3966
|
-
class:
|
|
3967
|
-
icon:
|
|
3968
|
-
"icon-pack":
|
|
3969
|
-
}, null, 8, ["icon", "icon-pack", "class"])) :
|
|
3991
|
+
class: x(["ck-switch__icon-right", u.value]),
|
|
3992
|
+
icon: s.icon,
|
|
3993
|
+
"icon-pack": s.iconPack
|
|
3994
|
+
}, null, 8, ["icon", "icon-pack", "class"])) : C("", !0)
|
|
3970
3995
|
]),
|
|
3971
|
-
|
|
3996
|
+
s.$slots.default && s.switchSide !== "right" ? (v(), y("span", {
|
|
3972
3997
|
key: 1,
|
|
3973
|
-
class:
|
|
3998
|
+
class: x(["ck-switch__content", r.value]),
|
|
3974
3999
|
style: E(p.value)
|
|
3975
4000
|
}, [
|
|
3976
|
-
|
|
3977
|
-
], 6)) :
|
|
4001
|
+
W(s.$slots, "default", {}, void 0, !0)
|
|
4002
|
+
], 6)) : C("", !0)
|
|
3978
4003
|
], 16));
|
|
3979
4004
|
}
|
|
3980
4005
|
});
|
|
3981
|
-
const Na = /* @__PURE__ */
|
|
4006
|
+
const Na = /* @__PURE__ */ j(Wa, [["__scopeId", "data-v-d143a8d0"]]), Ea = { class: "ck-switch-options" }, Fa = ["onClick", "onKeyup"], qa = /* @__PURE__ */ O({
|
|
3982
4007
|
__name: "ck-switch-options",
|
|
3983
4008
|
props: /* @__PURE__ */ ee({
|
|
3984
4009
|
options: {},
|
|
@@ -4010,53 +4035,55 @@ const Na = /* @__PURE__ */ H(Wa, [["__scopeId", "data-v-9b21ac28"]]), Ea = { cla
|
|
|
4010
4035
|
const f = [];
|
|
4011
4036
|
return l.sameWidthOptions && f.push({ width: `${100 / (l.options || []).length}%` }), f;
|
|
4012
4037
|
});
|
|
4013
|
-
function
|
|
4038
|
+
function u(f) {
|
|
4014
4039
|
return l.reduceValueFunction ? l.reduceValueFunction(f) : l.notReduceValue || l.notReduce ? f : l.reduceValueMethod ? f[l.reduceValueMethod]() : f[l.reduceValueProp];
|
|
4015
4040
|
}
|
|
4016
4041
|
function p(f) {
|
|
4017
4042
|
return l.reduceNameFunction ? l.reduceNameFunction(f) : l.notReduceName || l.notReduce ? f : l.reduceNameMethod ? f[l.reduceNameMethod]() : f[l.reduceNameProp];
|
|
4018
4043
|
}
|
|
4019
|
-
function
|
|
4020
|
-
const
|
|
4021
|
-
t.value =
|
|
4044
|
+
function r(f) {
|
|
4045
|
+
const s = u(f);
|
|
4046
|
+
t.value = s, n("change", s);
|
|
4022
4047
|
}
|
|
4023
|
-
return (f,
|
|
4024
|
-
const
|
|
4048
|
+
return (f, s) => {
|
|
4049
|
+
const k = U("ck-icon");
|
|
4025
4050
|
return v(), y("div", Ea, [
|
|
4026
4051
|
f.label ? (v(), S(Me, {
|
|
4027
4052
|
key: 0,
|
|
4028
4053
|
align: f.labelAlign
|
|
4029
4054
|
}, {
|
|
4030
|
-
default:
|
|
4031
|
-
|
|
4055
|
+
default: H(() => [
|
|
4056
|
+
Z(I(f.label), 1)
|
|
4032
4057
|
]),
|
|
4033
4058
|
_: 1
|
|
4034
|
-
}, 8, ["align"])) :
|
|
4035
|
-
|
|
4036
|
-
class:
|
|
4059
|
+
}, 8, ["align"])) : C("", !0),
|
|
4060
|
+
w("div", {
|
|
4061
|
+
class: x(["switch-options--options", i.value])
|
|
4037
4062
|
}, [
|
|
4038
|
-
(v(!0), y(
|
|
4063
|
+
(v(!0), y(Y, null, de(f.options, (m, g) => (v(), y("div", {
|
|
4039
4064
|
key: g,
|
|
4040
|
-
|
|
4065
|
+
tabindex: "0",
|
|
4066
|
+
class: x(["options--option", { selected: u(m) === t.value }]),
|
|
4041
4067
|
style: E(d.value),
|
|
4042
|
-
onClick: (
|
|
4068
|
+
onClick: (_) => r(m),
|
|
4069
|
+
onKeyup: _e((_) => r(m), ["enter"])
|
|
4043
4070
|
}, [
|
|
4044
|
-
m.icon ? (v(), S(
|
|
4071
|
+
m.icon ? (v(), S(k, {
|
|
4045
4072
|
key: 0,
|
|
4046
4073
|
class: "option--icon",
|
|
4047
4074
|
icon: m.icon
|
|
4048
|
-
}, null, 8, ["icon"])) :
|
|
4049
|
-
|
|
4050
|
-
],
|
|
4075
|
+
}, null, 8, ["icon"])) : C("", !0),
|
|
4076
|
+
Z(" " + I(p(m)), 1)
|
|
4077
|
+
], 46, Fa))), 128))
|
|
4051
4078
|
], 2)
|
|
4052
4079
|
]);
|
|
4053
4080
|
};
|
|
4054
4081
|
}
|
|
4055
4082
|
});
|
|
4056
|
-
const Ha = /* @__PURE__ */
|
|
4083
|
+
const Ha = /* @__PURE__ */ j(qa, [["__scopeId", "data-v-c323f4fa"]]), ja = { class: "ck-textarea" }, Ua = {
|
|
4057
4084
|
key: 0,
|
|
4058
4085
|
class: "ck-textarea__optional-label"
|
|
4059
|
-
}, Ga = ["placeholder", "disabled"], Za = 300, Ya = /* @__PURE__ */
|
|
4086
|
+
}, Ga = ["placeholder", "disabled"], Za = 300, Ya = /* @__PURE__ */ O({
|
|
4060
4087
|
__name: "ck-textarea",
|
|
4061
4088
|
props: {
|
|
4062
4089
|
modelValue: {},
|
|
@@ -4082,33 +4109,33 @@ const Ha = /* @__PURE__ */ H(qa, [["__scopeId", "data-v-a455f214"]]), ja = { cla
|
|
|
4082
4109
|
},
|
|
4083
4110
|
emits: ["update:modelValue", "input", "change", "click", "changeDelayed"],
|
|
4084
4111
|
setup(e, { emit: o }) {
|
|
4085
|
-
const t = e, l = o, { cleekOptions: n } = le(te()), a =
|
|
4112
|
+
const t = e, l = o, { cleekOptions: n } = le(te()), a = M(), { windowWidth: i } = he(), d = c({
|
|
4086
4113
|
get() {
|
|
4087
4114
|
return t.modelValue;
|
|
4088
4115
|
},
|
|
4089
4116
|
set(m) {
|
|
4090
|
-
t.capitalize && (m = ze.capitalize(m)), l("update:modelValue", m),
|
|
4117
|
+
t.capitalize && (m = ze.capitalize(m)), l("update:modelValue", m), k(m);
|
|
4091
4118
|
}
|
|
4092
|
-
}),
|
|
4119
|
+
}), u = c(() => {
|
|
4093
4120
|
const m = [], g = t.layout || n.value.styles.layout;
|
|
4094
4121
|
g && m.push(g);
|
|
4095
|
-
const
|
|
4096
|
-
return
|
|
4122
|
+
const _ = t.borderColor || n.value.styles.borderColor;
|
|
4123
|
+
return _ && L.isColorTemplateVariable(_) && m.push(`ck-component__border-color--${_}`), m.push(L.getGroupClass(t, i.value)), m;
|
|
4097
4124
|
}), p = c(() => {
|
|
4098
|
-
var
|
|
4099
|
-
const m = [], g = t.borderColor || ((
|
|
4125
|
+
var h;
|
|
4126
|
+
const m = [], g = t.borderColor || ((h = n.value.styles) == null ? void 0 : h.borderColor);
|
|
4100
4127
|
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
|
|
4102
|
-
return
|
|
4103
|
-
}),
|
|
4128
|
+
const _ = t.resize ? t.resize : "none";
|
|
4129
|
+
return _ && m.push({ resize: _ || "both" }), m;
|
|
4130
|
+
}), r = (m) => {
|
|
4104
4131
|
var g;
|
|
4105
4132
|
t.autoSelect && ((g = a.value) == null || g.select()), l("click", m);
|
|
4106
4133
|
}, f = (m) => {
|
|
4107
4134
|
l("input", m);
|
|
4108
|
-
},
|
|
4135
|
+
}, s = (m) => {
|
|
4109
4136
|
l("change", m);
|
|
4110
4137
|
};
|
|
4111
|
-
function
|
|
4138
|
+
function k(m) {
|
|
4112
4139
|
setTimeout(() => {
|
|
4113
4140
|
d.value === m && l("changeDelayed", m);
|
|
4114
4141
|
}, t.delayChangeTime || Za);
|
|
@@ -4118,39 +4145,39 @@ const Ha = /* @__PURE__ */ H(qa, [["__scopeId", "data-v-a455f214"]]), ja = { cla
|
|
|
4118
4145
|
key: 0,
|
|
4119
4146
|
align: m.labelAlign
|
|
4120
4147
|
}, {
|
|
4121
|
-
default:
|
|
4122
|
-
|
|
4123
|
-
m.optional ? (v(), y("span", Ua, "opcional")) :
|
|
4148
|
+
default: H(() => [
|
|
4149
|
+
Z(I(m.label) + " ", 1),
|
|
4150
|
+
m.optional ? (v(), y("span", Ua, "opcional")) : C("", !0)
|
|
4124
4151
|
]),
|
|
4125
4152
|
_: 1
|
|
4126
|
-
}, 8, ["align"])) :
|
|
4127
|
-
|
|
4128
|
-
"onUpdate:modelValue": g[0] || (g[0] = (
|
|
4153
|
+
}, 8, ["align"])) : C("", !0),
|
|
4154
|
+
ue(w("textarea", {
|
|
4155
|
+
"onUpdate:modelValue": g[0] || (g[0] = (_) => d.value = _),
|
|
4129
4156
|
ref_key: "refTextarea",
|
|
4130
4157
|
ref: a,
|
|
4131
4158
|
placeholder: m.placeholder,
|
|
4132
4159
|
disabled: m.disabled,
|
|
4133
|
-
class:
|
|
4160
|
+
class: x(u.value),
|
|
4134
4161
|
style: E(p.value),
|
|
4135
|
-
onClick: g[1] || (g[1] = (
|
|
4136
|
-
onInput: g[2] || (g[2] = (
|
|
4137
|
-
onChange: g[3] || (g[3] = (
|
|
4162
|
+
onClick: g[1] || (g[1] = (_) => r(_)),
|
|
4163
|
+
onInput: g[2] || (g[2] = (_) => f(_)),
|
|
4164
|
+
onChange: g[3] || (g[3] = (_) => s(_))
|
|
4138
4165
|
}, null, 46, Ga), [
|
|
4139
4166
|
[We, d.value]
|
|
4140
4167
|
])
|
|
4141
4168
|
]));
|
|
4142
4169
|
}
|
|
4143
4170
|
});
|
|
4144
|
-
const Ka = /* @__PURE__ */
|
|
4171
|
+
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__ */ O({
|
|
4145
4172
|
__name: "CkConfirm",
|
|
4146
4173
|
setup(e, { expose: o }) {
|
|
4147
|
-
const t =
|
|
4148
|
-
}), d =
|
|
4149
|
-
}),
|
|
4174
|
+
const t = M(""), l = M(""), n = M(""), a = M(""), i = M(() => {
|
|
4175
|
+
}), d = M(() => {
|
|
4176
|
+
}), u = c(() => "¿Estás seguro?"), p = c(() => "Aceptar"), r = c(() => "Cancelar");
|
|
4150
4177
|
function f() {
|
|
4151
4178
|
d.value();
|
|
4152
4179
|
}
|
|
4153
|
-
function
|
|
4180
|
+
function s() {
|
|
4154
4181
|
i.value();
|
|
4155
4182
|
}
|
|
4156
4183
|
return o({
|
|
@@ -4160,42 +4187,42 @@ const Ka = /* @__PURE__ */ H(Ya, [["__scopeId", "data-v-02767f25"]]), Ja = "data
|
|
|
4160
4187
|
cancelText: a,
|
|
4161
4188
|
responseSuccess: i,
|
|
4162
4189
|
responseFailure: d
|
|
4163
|
-
}), (
|
|
4164
|
-
|
|
4165
|
-
m[2] || (m[2] =
|
|
4166
|
-
|
|
4190
|
+
}), (k, m) => (v(), y("div", Qa, [
|
|
4191
|
+
w("div", Xa, [
|
|
4192
|
+
m[2] || (m[2] = w("div", { class: "ck-confirm__icon" }, [
|
|
4193
|
+
w("img", {
|
|
4167
4194
|
src: Ja,
|
|
4168
4195
|
height: "125"
|
|
4169
4196
|
})
|
|
4170
4197
|
], -1)),
|
|
4171
|
-
|
|
4172
|
-
|
|
4173
|
-
|
|
4174
|
-
|
|
4198
|
+
w("div", ei, I(t.value || u.value), 1),
|
|
4199
|
+
w("div", ti, I(l.value), 1),
|
|
4200
|
+
w("div", oi, [
|
|
4201
|
+
w("button", {
|
|
4175
4202
|
class: "ck-confirm__button--cancel",
|
|
4176
4203
|
onClick: m[0] || (m[0] = (g) => f())
|
|
4177
|
-
}, I(a.value ||
|
|
4178
|
-
|
|
4204
|
+
}, I(a.value || r.value), 1),
|
|
4205
|
+
w("button", {
|
|
4179
4206
|
class: "ck-confirm__button--accept",
|
|
4180
|
-
onClick: m[1] || (m[1] = (g) =>
|
|
4207
|
+
onClick: m[1] || (m[1] = (g) => s())
|
|
4181
4208
|
}, I(n.value || p.value), 1)
|
|
4182
4209
|
])
|
|
4183
4210
|
])
|
|
4184
4211
|
]));
|
|
4185
4212
|
}
|
|
4186
4213
|
});
|
|
4187
|
-
const ni = /* @__PURE__ */
|
|
4214
|
+
const ni = /* @__PURE__ */ j(li, [["__scopeId", "data-v-817a5ee4"]]), ai = { class: "alert--msg" }, ii = /* @__PURE__ */ O({
|
|
4188
4215
|
__name: "CkAlert",
|
|
4189
4216
|
setup(e, { expose: o }) {
|
|
4190
|
-
const t =
|
|
4217
|
+
const t = M(""), l = M(""), n = M(""), a = M(!0), i = c(() => "Atención"), d = c(() => "Aceptar");
|
|
4191
4218
|
return o({
|
|
4192
4219
|
title: t,
|
|
4193
4220
|
msg: l,
|
|
4194
4221
|
acceptText: n
|
|
4195
|
-
}), (
|
|
4196
|
-
|
|
4222
|
+
}), (u, p) => (v(), S(Pe, { to: "body" }, [
|
|
4223
|
+
G(et, {
|
|
4197
4224
|
modelValue: a.value,
|
|
4198
|
-
"onUpdate:modelValue": p[0] || (p[0] = (
|
|
4225
|
+
"onUpdate:modelValue": p[0] || (p[0] = (r) => a.value = r),
|
|
4199
4226
|
acceptButton: "",
|
|
4200
4227
|
notCloseBtn: "",
|
|
4201
4228
|
headerColor: "primary",
|
|
@@ -4203,20 +4230,20 @@ const ni = /* @__PURE__ */ H(li, [["__scopeId", "data-v-817a5ee4"]]), ai = { cla
|
|
|
4203
4230
|
acceptBtnType: "filled",
|
|
4204
4231
|
title: t.value || i.value,
|
|
4205
4232
|
acceptBtnText: n.value || d.value,
|
|
4206
|
-
onAccept: p[1] || (p[1] = (
|
|
4233
|
+
onAccept: p[1] || (p[1] = (r) => a.value = !1)
|
|
4207
4234
|
}, {
|
|
4208
|
-
default:
|
|
4209
|
-
|
|
4235
|
+
default: H(() => [
|
|
4236
|
+
w("div", ai, I(l.value), 1)
|
|
4210
4237
|
]),
|
|
4211
4238
|
_: 1
|
|
4212
4239
|
}, 8, ["modelValue", "title", "acceptBtnText"])
|
|
4213
4240
|
]));
|
|
4214
4241
|
}
|
|
4215
4242
|
});
|
|
4216
|
-
const si = /* @__PURE__ */
|
|
4243
|
+
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__ */ O({
|
|
4217
4244
|
__name: "CkNotify",
|
|
4218
4245
|
setup(e, { expose: o }) {
|
|
4219
|
-
const t =
|
|
4246
|
+
const t = M(!0), l = M(""), n = M(""), a = M(""), i = M(0), d = M(() => {
|
|
4220
4247
|
});
|
|
4221
4248
|
o({
|
|
4222
4249
|
title: l,
|
|
@@ -4225,7 +4252,7 @@ const si = /* @__PURE__ */ H(ii, [["__scopeId", "data-v-08c93dad"]]), ri = { cla
|
|
|
4225
4252
|
duration: i,
|
|
4226
4253
|
closeCallback: d
|
|
4227
4254
|
});
|
|
4228
|
-
const
|
|
4255
|
+
const u = c(() => {
|
|
4229
4256
|
switch (a.value) {
|
|
4230
4257
|
case "success":
|
|
4231
4258
|
return "Éxito";
|
|
@@ -4238,7 +4265,7 @@ const si = /* @__PURE__ */ H(ii, [["__scopeId", "data-v-08c93dad"]]), ri = { cla
|
|
|
4238
4265
|
}), p = c(() => {
|
|
4239
4266
|
const f = [];
|
|
4240
4267
|
return a.value && L.isColorTemplateVariable(a.value) && f.push(`ck-component__bg-color--${a.value}`), f;
|
|
4241
|
-
}),
|
|
4268
|
+
}), r = c(() => {
|
|
4242
4269
|
const f = [];
|
|
4243
4270
|
return a.value && !L.isColorTemplateVariable(a.value) && f.push({ "background-color": a.value }), f;
|
|
4244
4271
|
});
|
|
@@ -4248,34 +4275,34 @@ const si = /* @__PURE__ */ H(ii, [["__scopeId", "data-v-08c93dad"]]), ri = { cla
|
|
|
4248
4275
|
d.value();
|
|
4249
4276
|
}, i.value);
|
|
4250
4277
|
}, 10);
|
|
4251
|
-
}), (f,
|
|
4278
|
+
}), (f, s) => t.value ? (v(), S(Pe, {
|
|
4252
4279
|
key: 0,
|
|
4253
4280
|
to: "body"
|
|
4254
4281
|
}, [
|
|
4255
|
-
|
|
4256
|
-
|
|
4257
|
-
class:
|
|
4258
|
-
style: E(
|
|
4259
|
-
onClick:
|
|
4282
|
+
w("div", ri, [
|
|
4283
|
+
w("div", {
|
|
4284
|
+
class: x(["ck-notify", p.value]),
|
|
4285
|
+
style: E(r.value),
|
|
4286
|
+
onClick: s[0] || (s[0] = (k) => {
|
|
4260
4287
|
t.value = !1, d.value();
|
|
4261
4288
|
})
|
|
4262
4289
|
}, [
|
|
4263
|
-
|
|
4264
|
-
|
|
4265
|
-
|
|
4290
|
+
w("div", ui, [
|
|
4291
|
+
w("div", ci, [
|
|
4292
|
+
G(ie, { icon: "times" })
|
|
4266
4293
|
]),
|
|
4267
|
-
|
|
4294
|
+
Z(" " + I(l.value || u.value), 1)
|
|
4268
4295
|
]),
|
|
4269
|
-
|
|
4296
|
+
w("div", {
|
|
4270
4297
|
class: "ck-notify__text",
|
|
4271
4298
|
innerHTML: n.value
|
|
4272
4299
|
}, null, 8, di)
|
|
4273
4300
|
], 6)
|
|
4274
4301
|
])
|
|
4275
|
-
])) :
|
|
4302
|
+
])) : C("", !0);
|
|
4276
4303
|
}
|
|
4277
4304
|
});
|
|
4278
|
-
const vi = /* @__PURE__ */
|
|
4305
|
+
const vi = /* @__PURE__ */ j(pi, [["__scopeId", "data-v-bb914f84"]]), fi = 3e3, mi = {
|
|
4279
4306
|
alert(e) {
|
|
4280
4307
|
this.alertOptions({
|
|
4281
4308
|
title: "",
|
|
@@ -4297,12 +4324,12 @@ const vi = /* @__PURE__ */ H(pi, [["__scopeId", "data-v-bb914f84"]]), fi = 3e3,
|
|
|
4297
4324
|
failure: a = () => {
|
|
4298
4325
|
}
|
|
4299
4326
|
}) {
|
|
4300
|
-
const i = document.createElement("div"), d = Ue(ni),
|
|
4301
|
-
|
|
4327
|
+
const i = document.createElement("div"), d = Ue(ni), u = d.mount(i);
|
|
4328
|
+
u.title = e, u.msg = o, u.acceptText = t, u.cancelText = l, u.responseSuccess = () => {
|
|
4302
4329
|
d.unmount(), n();
|
|
4303
|
-
},
|
|
4330
|
+
}, u.responseFailure = () => {
|
|
4304
4331
|
d.unmount(), a();
|
|
4305
|
-
}, document.body.appendChild(
|
|
4332
|
+
}, document.body.appendChild(u.$el);
|
|
4306
4333
|
},
|
|
4307
4334
|
confirm(e, o, t) {
|
|
4308
4335
|
this.confirmOptions({
|
|
@@ -4385,7 +4412,7 @@ const ki = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4385
4412
|
CkDatetimeShower: Vo,
|
|
4386
4413
|
CkDiv: da,
|
|
4387
4414
|
CkDropdown: Mo,
|
|
4388
|
-
CkIcon:
|
|
4415
|
+
CkIcon: ie,
|
|
4389
4416
|
CkImg: ma,
|
|
4390
4417
|
CkInput: Ct,
|
|
4391
4418
|
CkInputDate: Sn,
|
|
@@ -4393,13 +4420,13 @@ const ki = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4393
4420
|
CkLabel: Me,
|
|
4394
4421
|
CkNavbar: Ao,
|
|
4395
4422
|
CkPagination: Wl,
|
|
4396
|
-
CkPopup:
|
|
4423
|
+
CkPopup: et,
|
|
4397
4424
|
CkRadio: _a,
|
|
4398
4425
|
CkSelect: La,
|
|
4399
4426
|
CkSidebar: Aa,
|
|
4400
4427
|
CkSwitch: Na,
|
|
4401
4428
|
CkSwitchOptions: Ha,
|
|
4402
|
-
CkTab:
|
|
4429
|
+
CkTab: In,
|
|
4403
4430
|
CkTable: Ol,
|
|
4404
4431
|
CkTabs: Nn,
|
|
4405
4432
|
CkTd: bt,
|
|
@@ -4414,8 +4441,8 @@ const ki = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4414
4441
|
ckNotify: mi,
|
|
4415
4442
|
useWindowWidth: he
|
|
4416
4443
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4417
|
-
Qe.add(It);
|
|
4418
4444
|
Qe.add(xt);
|
|
4445
|
+
Qe.add(It);
|
|
4419
4446
|
Qe.add(At);
|
|
4420
4447
|
function Si(e, o) {
|
|
4421
4448
|
te().cleekOptions = ho(yt, o), e.use(bo), e.use(Mt, mo), Object.entries(ki).forEach(([t, l]) => {
|
|
@@ -4431,7 +4458,7 @@ export {
|
|
|
4431
4458
|
Vo as CkDatetimeShower,
|
|
4432
4459
|
da as CkDiv,
|
|
4433
4460
|
Mo as CkDropdown,
|
|
4434
|
-
|
|
4461
|
+
ie as CkIcon,
|
|
4435
4462
|
ma as CkImg,
|
|
4436
4463
|
Ct as CkInput,
|
|
4437
4464
|
Sn as CkInputDate,
|
|
@@ -4439,13 +4466,13 @@ export {
|
|
|
4439
4466
|
Me as CkLabel,
|
|
4440
4467
|
Ao as CkNavbar,
|
|
4441
4468
|
Wl as CkPagination,
|
|
4442
|
-
|
|
4469
|
+
et as CkPopup,
|
|
4443
4470
|
_a as CkRadio,
|
|
4444
4471
|
La as CkSelect,
|
|
4445
4472
|
Aa as CkSidebar,
|
|
4446
4473
|
Na as CkSwitch,
|
|
4447
4474
|
Ha as CkSwitchOptions,
|
|
4448
|
-
|
|
4475
|
+
In as CkTab,
|
|
4449
4476
|
Ol as CkTable,
|
|
4450
4477
|
Nn as CkTabs,
|
|
4451
4478
|
bt as CkTd,
|