lkt-table 2.0.52 → 2.0.54
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/build.js +409 -401
- package/package.json +1 -1
- package/src/components/LktTableCell.vue +1 -1
- package/src/lib-components/LktTable.vue +18 -10
package/dist/build.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as we, computed as r, ref as C, shallowReactive as Qt, watch as G, watchEffect as Xt, onMounted as ta, onBeforeUnmount as Ja, reactive as Yt, provide as Sa, h as Q, useId as Qa, inject as Bt, getCurrentInstance as Za, onUnmounted as _a, onUpdated as el, cloneVNode as tl, resolveComponent as se, createBlock as R, createElementBlock as S, unref as g, openBlock as c, mergeProps as K, withCtx as z, createTextVNode as _e, toDisplayString as et, normalizeProps as ye, normalizeClass as J, Fragment as q, renderList as be, useSlots as Ca, createCommentVNode as x, createElementVNode as ke, createVNode as he, resolveDynamicComponent as Se, guardReactiveProps as wa, renderSlot as $, mergeDefaults as al, nextTick as Pt, withDirectives as We, vShow as Je, createSlots as ll, normalizeStyle as ma } from "vue";
|
|
2
2
|
import { __ as nl } from "lkt-i18n";
|
|
3
|
-
import { ColumnType as
|
|
3
|
+
import { ColumnType as Ee, FieldType as Qe, MultipleOptionsDisplay as ol, SortDirection as tt, Column as Da, extractPropValue as il, TableRowType as xe, extractI18nValue as Ta, LktSettings as Ae, ensureButtonConfig as je, TablePermission as Le, PaginatorType as Be, TableType as Ne, getDefaultValues as ul, Table as rl, ButtonType as Wt } from "lkt-vue-kernel";
|
|
4
4
|
import { Column as Nn, createColumn as Mn } from "lkt-vue-kernel";
|
|
5
5
|
import { generateRandomString as sl, replaceAll as dl } from "lkt-string-tools";
|
|
6
6
|
import { DataState as cl } from "lkt-data-state";
|
|
7
7
|
import vl from "sortablejs";
|
|
8
|
-
import { date as fl, findOldestAndNewestDateInObjects as ml, time as
|
|
8
|
+
import { date as fl, findOldestAndNewestDateInObjects as ml, time as gl } from "lkt-date-tools";
|
|
9
9
|
/**
|
|
10
10
|
* Vue 3 Carousel 0.14.0
|
|
11
11
|
* (c) 2025
|
|
@@ -25,7 +25,7 @@ const Ia = ["viewport", "carousel"], jt = {
|
|
|
25
25
|
"top-to-bottom",
|
|
26
26
|
"btt",
|
|
27
27
|
"bottom-to-top"
|
|
28
|
-
],
|
|
28
|
+
], pl = {
|
|
29
29
|
ariaGallery: "Gallery",
|
|
30
30
|
ariaNavigateToPage: "Navigate to page {slideNumber}",
|
|
31
31
|
ariaNavigateToSlide: "Navigate to slide {slideNumber}",
|
|
@@ -50,7 +50,7 @@ const Ia = ["viewport", "carousel"], jt = {
|
|
|
50
50
|
enabled: !0,
|
|
51
51
|
gap: 0,
|
|
52
52
|
height: "auto",
|
|
53
|
-
i18n:
|
|
53
|
+
i18n: pl,
|
|
54
54
|
ignoreAnimations: !1,
|
|
55
55
|
itemsToScroll: 1,
|
|
56
56
|
itemsToShow: 1,
|
|
@@ -66,11 +66,11 @@ const Ia = ["viewport", "carousel"], jt = {
|
|
|
66
66
|
}, at = Symbol("carousel"), yl = (e) => {
|
|
67
67
|
const i = Qt([]), o = (n) => {
|
|
68
68
|
n !== void 0 ? i.slice(n).forEach((l, t) => {
|
|
69
|
-
var
|
|
70
|
-
(
|
|
69
|
+
var p;
|
|
70
|
+
(p = l.exposed) === null || p === void 0 || p.setIndex(n + t);
|
|
71
71
|
}) : i.forEach((l, t) => {
|
|
72
|
-
var
|
|
73
|
-
(
|
|
72
|
+
var p;
|
|
73
|
+
(p = l.exposed) === null || p === void 0 || p.setIndex(t);
|
|
74
74
|
});
|
|
75
75
|
};
|
|
76
76
|
return {
|
|
@@ -93,11 +93,11 @@ const Ia = ["viewport", "carousel"], jt = {
|
|
|
93
93
|
function bl(e) {
|
|
94
94
|
return e.length === 0 ? 0 : e.reduce((o, n) => o + n, 0) / e.length;
|
|
95
95
|
}
|
|
96
|
-
function
|
|
97
|
-
const n = [], l = i === "before", t = l ? -o : 0,
|
|
96
|
+
function ga({ slides: e, position: i, toShow: o }) {
|
|
97
|
+
const n = [], l = i === "before", t = l ? -o : 0, p = l ? 0 : o;
|
|
98
98
|
if (e.length <= 0)
|
|
99
99
|
return n;
|
|
100
|
-
for (let b = t; b <
|
|
100
|
+
for (let b = t; b < p; b++) {
|
|
101
101
|
const s = {
|
|
102
102
|
index: l ? b : b + e.length,
|
|
103
103
|
isClone: !0,
|
|
@@ -111,7 +111,7 @@ function pa({ slides: e, position: i, toShow: o }) {
|
|
|
111
111
|
return n;
|
|
112
112
|
}
|
|
113
113
|
const hl = 'a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"])';
|
|
114
|
-
function
|
|
114
|
+
function pa(e) {
|
|
115
115
|
if (!e.el || !(e.el instanceof Element))
|
|
116
116
|
return;
|
|
117
117
|
const i = e.el.querySelectorAll(hl);
|
|
@@ -125,10 +125,10 @@ function Sl(e) {
|
|
|
125
125
|
const { isVertical: i, isReversed: o, dragged: n, effectiveSlideSize: l } = e, t = i ? n.y : n.x;
|
|
126
126
|
if (t === 0)
|
|
127
127
|
return 0;
|
|
128
|
-
const
|
|
129
|
-
return o ?
|
|
128
|
+
const p = Math.round(t / l);
|
|
129
|
+
return o ? p : -p;
|
|
130
130
|
}
|
|
131
|
-
function
|
|
131
|
+
function Me({ val: e, max: i, min: o }) {
|
|
132
132
|
return i < o ? e : Math.min(Math.max(e, isNaN(o) ? e : o), isNaN(i) ? e : i);
|
|
133
133
|
}
|
|
134
134
|
function Cl(e) {
|
|
@@ -184,13 +184,13 @@ function Va({ val: e, max: i, min: o = 0 }) {
|
|
|
184
184
|
}
|
|
185
185
|
function Jt(e, i = 0) {
|
|
186
186
|
let o = !1, n = 0, l = null;
|
|
187
|
-
function t(...
|
|
187
|
+
function t(...p) {
|
|
188
188
|
if (o)
|
|
189
189
|
return;
|
|
190
190
|
o = !0;
|
|
191
191
|
const b = () => {
|
|
192
192
|
l = requestAnimationFrame((D) => {
|
|
193
|
-
D - n > i ? (n = D, e(...
|
|
193
|
+
D - n > i ? (n = D, e(...p), o = !1) : b();
|
|
194
194
|
});
|
|
195
195
|
};
|
|
196
196
|
b();
|
|
@@ -203,10 +203,10 @@ function Ut(e, i = "px") {
|
|
|
203
203
|
if (!(e == null || e === ""))
|
|
204
204
|
return typeof e == "number" || parseFloat(e).toString() === e ? `${e}${i}` : e;
|
|
205
205
|
}
|
|
206
|
-
const Il =
|
|
206
|
+
const Il = we({
|
|
207
207
|
name: "CarouselAria",
|
|
208
208
|
setup() {
|
|
209
|
-
const e =
|
|
209
|
+
const e = Bt(at);
|
|
210
210
|
return e ? () => Q("div", {
|
|
211
211
|
class: ["carousel__liveregion", "carousel__sr-only"],
|
|
212
212
|
"aria-live": "polite",
|
|
@@ -329,7 +329,7 @@ const Il = Ce({
|
|
|
329
329
|
default: X.wrapAround,
|
|
330
330
|
type: Boolean
|
|
331
331
|
}
|
|
332
|
-
}, Al =
|
|
332
|
+
}, Al = we({
|
|
333
333
|
name: "VueCarousel",
|
|
334
334
|
props: Bl,
|
|
335
335
|
emits: [
|
|
@@ -345,26 +345,26 @@ const Il = Ce({
|
|
|
345
345
|
],
|
|
346
346
|
setup(e, { slots: i, emit: o, expose: n }) {
|
|
347
347
|
var l;
|
|
348
|
-
const t = yl(o),
|
|
348
|
+
const t = yl(o), p = t.getSlides(), b = r(() => p.length), D = C(null), s = C(null), k = C(0), T = r(() => Object.assign(Object.assign(Object.assign({}, X), kl(e, ["breakpoints", "modelValue"])), { i18n: Object.assign(Object.assign({}, X.i18n), e.i18n) })), v = Qt(Object.assign({}, T.value)), I = C((l = e.modelValue) !== null && l !== void 0 ? l : 0), h = C(I.value);
|
|
349
349
|
G(I, (d) => h.value = d);
|
|
350
|
-
const P = C(0), O = r(() => Math.ceil((b.value - 1) / 2)),
|
|
351
|
-
let
|
|
350
|
+
const P = C(0), O = r(() => Math.ceil((b.value - 1) / 2)), ve = r(() => b.value - 1), fe = r(() => 0);
|
|
351
|
+
let me = null, M = null, F = null;
|
|
352
352
|
const B = r(() => k.value + v.gap), H = r(() => {
|
|
353
353
|
const d = v.dir || "ltr";
|
|
354
354
|
return d in jt ? jt[d] : d;
|
|
355
|
-
}), oe = r(() => ["rtl", "btt"].includes(H.value)),
|
|
356
|
-
function
|
|
355
|
+
}), oe = r(() => ["rtl", "btt"].includes(H.value)), ge = r(() => ["ttb", "btt"].includes(H.value)), pe = r(() => v.itemsToShow === "auto"), Y = r(() => ge.value ? "height" : "width");
|
|
356
|
+
function Oe() {
|
|
357
357
|
var d;
|
|
358
358
|
if (!nt.value)
|
|
359
359
|
return;
|
|
360
360
|
const m = (T.value.breakpointMode === "carousel" ? (d = D.value) === null || d === void 0 ? void 0 : d.getBoundingClientRect().width : typeof window < "u" ? window.innerWidth : 0) || 0, w = Object.keys(e.breakpoints || {}).map((N) => Number(N)).sort((N, te) => +te - +N), A = {};
|
|
361
361
|
w.some((N) => m >= N ? (Object.assign(A, e.breakpoints[N]), A.i18n && Object.assign(A.i18n, T.value.i18n, e.breakpoints[N].i18n), !0) : !1), Object.assign(v, T.value, A);
|
|
362
362
|
}
|
|
363
|
-
const
|
|
364
|
-
|
|
365
|
-
}),
|
|
363
|
+
const At = Jt(() => {
|
|
364
|
+
Oe(), lt(), de();
|
|
365
|
+
}), Ve = Qt(/* @__PURE__ */ new Set()), Z = C([]);
|
|
366
366
|
function ae({ widthMultiplier: d, heightMultiplier: m }) {
|
|
367
|
-
Z.value =
|
|
367
|
+
Z.value = p.map((w) => {
|
|
368
368
|
var A;
|
|
369
369
|
const N = (A = w.exposed) === null || A === void 0 ? void 0 : A.getBoundingRect();
|
|
370
370
|
return {
|
|
@@ -373,68 +373,68 @@ const Il = Ce({
|
|
|
373
373
|
};
|
|
374
374
|
});
|
|
375
375
|
}
|
|
376
|
-
const
|
|
376
|
+
const De = C({
|
|
377
377
|
width: 0,
|
|
378
378
|
height: 0
|
|
379
379
|
});
|
|
380
|
-
function
|
|
380
|
+
function Et({ widthMultiplier: d, heightMultiplier: m }) {
|
|
381
381
|
var w;
|
|
382
382
|
const A = ((w = s.value) === null || w === void 0 ? void 0 : w.getBoundingClientRect()) || { width: 0, height: 0 };
|
|
383
|
-
|
|
383
|
+
De.value = {
|
|
384
384
|
width: A.width * d,
|
|
385
385
|
height: A.height * m
|
|
386
386
|
};
|
|
387
387
|
}
|
|
388
|
-
function
|
|
388
|
+
function de() {
|
|
389
389
|
if (!s.value)
|
|
390
390
|
return;
|
|
391
|
-
const d = wl(
|
|
392
|
-
if (
|
|
391
|
+
const d = wl(Ve);
|
|
392
|
+
if (Et(d), ae(d), pe.value)
|
|
393
393
|
k.value = bl(Z.value.map((m) => m[Y.value]));
|
|
394
394
|
else {
|
|
395
395
|
const m = Number(v.itemsToShow), w = (m - 1) * v.gap;
|
|
396
|
-
k.value = (
|
|
396
|
+
k.value = (De.value[Y.value] - w) / m;
|
|
397
397
|
}
|
|
398
398
|
}
|
|
399
399
|
function lt() {
|
|
400
|
-
!v.wrapAround && b.value > 0 && (I.value =
|
|
400
|
+
!v.wrapAround && b.value > 0 && (I.value = Me({
|
|
401
401
|
val: I.value,
|
|
402
|
-
max:
|
|
403
|
-
min:
|
|
404
|
-
})), pe.value || (v.itemsToShow =
|
|
402
|
+
max: ve.value,
|
|
403
|
+
min: fe.value
|
|
404
|
+
})), pe.value || (v.itemsToShow = Me({
|
|
405
405
|
val: Number(v.itemsToShow),
|
|
406
406
|
max: b.value,
|
|
407
407
|
min: 1
|
|
408
408
|
}));
|
|
409
409
|
}
|
|
410
|
-
const
|
|
410
|
+
const Te = r(() => typeof e.ignoreAnimations == "string" ? e.ignoreAnimations.split(",") : Array.isArray(e.ignoreAnimations) ? e.ignoreAnimations : e.ignoreAnimations ? !1 : []);
|
|
411
411
|
Xt(() => lt()), Xt(() => {
|
|
412
|
-
|
|
412
|
+
de();
|
|
413
413
|
});
|
|
414
|
-
let
|
|
415
|
-
const
|
|
414
|
+
let $e;
|
|
415
|
+
const xt = (d) => {
|
|
416
416
|
const m = d.target;
|
|
417
|
-
if (!(!(m != null && m.contains(D.value)) || Array.isArray(
|
|
417
|
+
if (!(!(m != null && m.contains(D.value)) || Array.isArray(Te.value) && Te.value.includes(d.animationName)) && (Ve.add(m), !$e)) {
|
|
418
418
|
const w = () => {
|
|
419
|
-
|
|
420
|
-
|
|
419
|
+
$e = requestAnimationFrame(() => {
|
|
420
|
+
de(), w();
|
|
421
421
|
});
|
|
422
422
|
};
|
|
423
423
|
w();
|
|
424
424
|
}
|
|
425
|
-
},
|
|
425
|
+
}, Vt = (d) => {
|
|
426
426
|
const m = d.target;
|
|
427
|
-
m &&
|
|
427
|
+
m && Ve.delete(m), $e && Ve.size === 0 && (cancelAnimationFrame($e), de());
|
|
428
428
|
}, nt = C(!1);
|
|
429
429
|
typeof document < "u" && Xt(() => {
|
|
430
|
-
nt.value &&
|
|
430
|
+
nt.value && Te.value !== !1 ? (document.addEventListener("animationstart", xt), document.addEventListener("animationend", Vt)) : (document.removeEventListener("animationstart", xt), document.removeEventListener("animationend", Vt));
|
|
431
431
|
}), ta(() => {
|
|
432
|
-
nt.value = !0,
|
|
432
|
+
nt.value = !0, Oe(), Nt(), D.value && (F = new ResizeObserver(At), F.observe(D.value)), o("init");
|
|
433
433
|
}), Ja(() => {
|
|
434
|
-
nt.value = !1, t.cleanup(), M && clearTimeout(M),
|
|
434
|
+
nt.value = !1, t.cleanup(), M && clearTimeout(M), $e && cancelAnimationFrame($e), me && clearInterval(me), F && (F.disconnect(), F = null), typeof document < "u" && Fe(), D.value && (D.value.removeEventListener("transitionend", de), D.value.removeEventListener("animationiteration", de));
|
|
435
435
|
});
|
|
436
436
|
let _ = !1;
|
|
437
|
-
const ze = { x: 0, y: 0 }, le = Yt({ x: 0, y: 0 }), ot = C(!1),
|
|
437
|
+
const ze = { x: 0, y: 0 }, le = Yt({ x: 0, y: 0 }), ot = C(!1), pt = C(!1), zt = () => {
|
|
438
438
|
ot.value = !0;
|
|
439
439
|
}, Gt = () => {
|
|
440
440
|
ot.value = !1;
|
|
@@ -443,77 +443,77 @@ const Il = Ce({
|
|
|
443
443
|
switch (d.key) {
|
|
444
444
|
case "ArrowLeft":
|
|
445
445
|
case "ArrowUp":
|
|
446
|
-
|
|
446
|
+
ge.value === d.key.endsWith("Up") && (oe.value ? W(!0) : dt(!0));
|
|
447
447
|
break;
|
|
448
448
|
case "ArrowRight":
|
|
449
449
|
case "ArrowDown":
|
|
450
|
-
|
|
450
|
+
ge.value === d.key.endsWith("Down") && (oe.value ? dt(!0) : W(!0));
|
|
451
451
|
break;
|
|
452
452
|
}
|
|
453
453
|
}, 200), Ht = () => {
|
|
454
454
|
document.addEventListener("keydown", it);
|
|
455
|
-
},
|
|
455
|
+
}, Fe = () => {
|
|
456
456
|
document.removeEventListener("keydown", it);
|
|
457
457
|
};
|
|
458
|
-
function
|
|
458
|
+
function Rt(d) {
|
|
459
459
|
const m = d.target.tagName;
|
|
460
460
|
if (["INPUT", "TEXTAREA", "SELECT"].includes(m) || ee.value || (_ = d.type === "touchstart", !_ && (d.preventDefault(), d.button !== 0)))
|
|
461
461
|
return;
|
|
462
462
|
ze.x = "touches" in d ? d.touches[0].clientX : d.clientX, ze.y = "touches" in d ? d.touches[0].clientY : d.clientY;
|
|
463
463
|
const w = _ ? "touchmove" : "mousemove", A = _ ? "touchend" : "mouseup";
|
|
464
|
-
document.addEventListener(w, ut, { passive: !1 }), document.addEventListener(A,
|
|
464
|
+
document.addEventListener(w, ut, { passive: !1 }), document.addEventListener(A, Lt, { passive: !0 });
|
|
465
465
|
}
|
|
466
466
|
const ut = Jt((d) => {
|
|
467
|
-
|
|
467
|
+
pt.value = !0;
|
|
468
468
|
const m = "touches" in d ? d.touches[0].clientX : d.clientX, w = "touches" in d ? d.touches[0].clientY : d.clientY;
|
|
469
469
|
le.x = m - ze.x, le.y = w - ze.y;
|
|
470
470
|
const A = Sl({
|
|
471
|
-
isVertical:
|
|
471
|
+
isVertical: ge.value,
|
|
472
472
|
isReversed: oe.value,
|
|
473
473
|
dragged: le,
|
|
474
474
|
effectiveSlideSize: B.value
|
|
475
475
|
});
|
|
476
|
-
h.value = v.wrapAround ? I.value + A :
|
|
476
|
+
h.value = v.wrapAround ? I.value + A : Me({
|
|
477
477
|
val: I.value + A,
|
|
478
|
-
max:
|
|
479
|
-
min:
|
|
478
|
+
max: ve.value,
|
|
479
|
+
min: fe.value
|
|
480
480
|
}), o("drag", { deltaX: le.x, deltaY: le.y });
|
|
481
481
|
});
|
|
482
|
-
function
|
|
482
|
+
function Lt() {
|
|
483
483
|
if (ut.cancel(), h.value !== I.value && !_) {
|
|
484
484
|
const w = (A) => {
|
|
485
485
|
A.preventDefault(), window.removeEventListener("click", w);
|
|
486
486
|
};
|
|
487
487
|
window.addEventListener("click", w);
|
|
488
488
|
}
|
|
489
|
-
|
|
489
|
+
ce(h.value), le.x = 0, le.y = 0, pt.value = !1;
|
|
490
490
|
const d = _ ? "touchmove" : "mousemove", m = _ ? "touchend" : "mouseup";
|
|
491
|
-
document.removeEventListener(d, ut), document.removeEventListener(m,
|
|
491
|
+
document.removeEventListener(d, ut), document.removeEventListener(m, Lt);
|
|
492
492
|
}
|
|
493
|
-
function
|
|
494
|
-
!v.autoplay || v.autoplay <= 0 || (
|
|
493
|
+
function Nt() {
|
|
494
|
+
!v.autoplay || v.autoplay <= 0 || (me = setInterval(() => {
|
|
495
495
|
v.pauseAutoplayOnHover && ot.value || W();
|
|
496
496
|
}, v.autoplay));
|
|
497
497
|
}
|
|
498
498
|
function rt() {
|
|
499
|
-
|
|
499
|
+
me && (clearInterval(me), me = null);
|
|
500
500
|
}
|
|
501
501
|
function st() {
|
|
502
|
-
rt(),
|
|
502
|
+
rt(), Nt();
|
|
503
503
|
}
|
|
504
504
|
const ee = C(!1);
|
|
505
|
-
function
|
|
505
|
+
function ce(d, m = !1) {
|
|
506
506
|
if (!m && ee.value)
|
|
507
507
|
return;
|
|
508
508
|
let w = d, A = d;
|
|
509
509
|
P.value = I.value, v.wrapAround ? A = Va({
|
|
510
510
|
val: w,
|
|
511
|
-
max:
|
|
512
|
-
min:
|
|
513
|
-
}) : w =
|
|
511
|
+
max: ve.value,
|
|
512
|
+
min: fe.value
|
|
513
|
+
}) : w = Me({
|
|
514
514
|
val: w,
|
|
515
|
-
max:
|
|
516
|
-
min:
|
|
515
|
+
max: ve.value,
|
|
516
|
+
min: fe.value
|
|
517
517
|
}), o("slide-start", {
|
|
518
518
|
slidingToIndex: d,
|
|
519
519
|
currentSlideIndex: I.value,
|
|
@@ -531,36 +531,36 @@ const Il = Ce({
|
|
|
531
531
|
}, v.transition);
|
|
532
532
|
}
|
|
533
533
|
function W(d = !1) {
|
|
534
|
-
|
|
534
|
+
ce(I.value + v.itemsToScroll, d);
|
|
535
535
|
}
|
|
536
536
|
function dt(d = !1) {
|
|
537
|
-
|
|
537
|
+
ce(I.value - v.itemsToScroll, d);
|
|
538
538
|
}
|
|
539
539
|
function yt() {
|
|
540
|
-
|
|
540
|
+
Oe(), lt(), de(), st();
|
|
541
541
|
}
|
|
542
|
-
G(() => [T.value, e.breakpoints], () =>
|
|
542
|
+
G(() => [T.value, e.breakpoints], () => Oe(), { deep: !0 }), G(() => e.autoplay, () => st());
|
|
543
543
|
const bt = G(() => e.modelValue, (d) => {
|
|
544
|
-
d !== I.value &&
|
|
544
|
+
d !== I.value && ce(Number(d), !0);
|
|
545
545
|
});
|
|
546
546
|
o("before-init");
|
|
547
|
-
const
|
|
547
|
+
const Re = r(() => {
|
|
548
548
|
if (!v.wrapAround)
|
|
549
549
|
return { before: 0, after: 0 };
|
|
550
550
|
if (pe.value)
|
|
551
|
-
return { before:
|
|
551
|
+
return { before: p.length, after: p.length };
|
|
552
552
|
const d = Number(v.itemsToShow), m = Math.ceil(d + (v.itemsToScroll - 1)), w = m - h.value, A = m - (b.value - (h.value + 1));
|
|
553
553
|
return {
|
|
554
554
|
before: Math.max(0, w),
|
|
555
555
|
after: Math.max(0, A)
|
|
556
556
|
};
|
|
557
|
-
}), Ge = r(() =>
|
|
557
|
+
}), Ge = r(() => Re.value.before ? pe.value ? Z.value.slice(-1 * Re.value.before).reduce((d, m) => d + m[Y.value] + v.gap, 0) * -1 : Re.value.before * B.value * -1 : 0), ne = r(() => {
|
|
558
558
|
var d;
|
|
559
559
|
if (pe.value) {
|
|
560
|
-
const m = (I.value %
|
|
560
|
+
const m = (I.value % p.length + p.length) % p.length;
|
|
561
561
|
return Zt({
|
|
562
562
|
slideSize: (d = Z.value[m]) === null || d === void 0 ? void 0 : d[Y.value],
|
|
563
|
-
viewportSize:
|
|
563
|
+
viewportSize: De.value[Y.value],
|
|
564
564
|
align: v.snapAlign
|
|
565
565
|
});
|
|
566
566
|
}
|
|
@@ -572,8 +572,8 @@ const Il = Ce({
|
|
|
572
572
|
let d = 0;
|
|
573
573
|
if (pe.value) {
|
|
574
574
|
if (I.value < 0 ? d = Z.value.slice(I.value).reduce((m, w) => m + w[Y.value] + v.gap, 0) * -1 : d = Z.value.slice(0, I.value).reduce((m, w) => m + w[Y.value] + v.gap, 0), d -= ne.value, !v.wrapAround) {
|
|
575
|
-
const m = Z.value.reduce((w, A) => w + A[Y.value] + v.gap, 0) -
|
|
576
|
-
d =
|
|
575
|
+
const m = Z.value.reduce((w, A) => w + A[Y.value] + v.gap, 0) - De.value[Y.value] - v.gap;
|
|
576
|
+
d = Me({
|
|
577
577
|
val: d,
|
|
578
578
|
max: m,
|
|
579
579
|
min: 0
|
|
@@ -581,7 +581,7 @@ const Il = Ce({
|
|
|
581
581
|
}
|
|
582
582
|
} else {
|
|
583
583
|
let m = I.value - ne.value;
|
|
584
|
-
v.wrapAround || (m =
|
|
584
|
+
v.wrapAround || (m = Me({
|
|
585
585
|
val: m,
|
|
586
586
|
max: b.value - +v.itemsToShow,
|
|
587
587
|
min: 0
|
|
@@ -596,12 +596,12 @@ const Il = Ce({
|
|
|
596
596
|
min: Math.floor(N),
|
|
597
597
|
max: Math.ceil(N + Number(v.itemsToShow) - 1)
|
|
598
598
|
} : {
|
|
599
|
-
min: Math.floor(
|
|
599
|
+
min: Math.floor(Me({
|
|
600
600
|
val: N,
|
|
601
601
|
max: b.value - Number(v.itemsToShow),
|
|
602
602
|
min: 0
|
|
603
603
|
})),
|
|
604
|
-
max: Math.ceil(
|
|
604
|
+
max: Math.ceil(Me({
|
|
605
605
|
val: N + Number(v.itemsToShow) - 1,
|
|
606
606
|
max: b.value - 1,
|
|
607
607
|
min: 0
|
|
@@ -610,20 +610,20 @@ const Il = Ce({
|
|
|
610
610
|
}
|
|
611
611
|
let w = 0;
|
|
612
612
|
{
|
|
613
|
-
let N = 0, te = 0 -
|
|
614
|
-
const
|
|
615
|
-
for (; N <=
|
|
616
|
-
const
|
|
617
|
-
N += ((d = Z.value[
|
|
613
|
+
let N = 0, te = 0 - Re.value.before;
|
|
614
|
+
const ue = Math.abs(ct.value + Ge.value);
|
|
615
|
+
for (; N <= ue; ) {
|
|
616
|
+
const re = (te % p.length + p.length) % p.length;
|
|
617
|
+
N += ((d = Z.value[re]) === null || d === void 0 ? void 0 : d[Y.value]) + v.gap, te++;
|
|
618
618
|
}
|
|
619
619
|
w = te - 1;
|
|
620
620
|
}
|
|
621
621
|
let A = 0;
|
|
622
622
|
{
|
|
623
623
|
let N = w, te = 0;
|
|
624
|
-
for (N < 0 ? te = Z.value.slice(0, N).reduce((
|
|
625
|
-
const
|
|
626
|
-
te += ((m = Z.value[
|
|
624
|
+
for (N < 0 ? te = Z.value.slice(0, N).reduce((ue, re) => ue + re[Y.value] + v.gap, 0) - Math.abs(ct.value + Ge.value) : te = Z.value.slice(0, N).reduce((ue, re) => ue + re[Y.value] + v.gap, 0) - Math.abs(ct.value); te < De.value[Y.value]; ) {
|
|
625
|
+
const ue = (N % p.length + p.length) % p.length;
|
|
626
|
+
te += ((m = Z.value[ue]) === null || m === void 0 ? void 0 : m[Y.value]) + v.gap, N++;
|
|
627
627
|
}
|
|
628
628
|
A = N - 1;
|
|
629
629
|
}
|
|
@@ -634,13 +634,13 @@ const Il = Ce({
|
|
|
634
634
|
}), qt = r(() => {
|
|
635
635
|
if (v.slideEffect === "fade")
|
|
636
636
|
return;
|
|
637
|
-
const d =
|
|
637
|
+
const d = ge.value ? "Y" : "X", m = ge.value ? le.y : le.x;
|
|
638
638
|
let w = ct.value + m;
|
|
639
639
|
if (!v.wrapAround && v.preventExcessiveDragging) {
|
|
640
640
|
let A = 0;
|
|
641
|
-
pe.value ? A = Z.value.reduce((
|
|
641
|
+
pe.value ? A = Z.value.reduce((ue, re) => ue + re[Y.value], 0) : A = (b.value - Number(v.itemsToShow)) * B.value;
|
|
642
642
|
const N = oe.value ? 0 : -1 * A, te = oe.value ? A : 0;
|
|
643
|
-
w =
|
|
643
|
+
w = Me({
|
|
644
644
|
val: w,
|
|
645
645
|
min: N,
|
|
646
646
|
max: te
|
|
@@ -652,30 +652,30 @@ const Il = Ce({
|
|
|
652
652
|
"--vc-slide-gap": Ut(v.gap),
|
|
653
653
|
"--vc-carousel-height": Ut(v.height),
|
|
654
654
|
"--vc-cloned-offset": Ut(Ge.value)
|
|
655
|
-
})), vt = { slideTo:
|
|
655
|
+
})), vt = { slideTo: ce, next: W, prev: dt }, kt = Yt({
|
|
656
656
|
activeSlide: h,
|
|
657
657
|
config: v,
|
|
658
658
|
currentSlide: I,
|
|
659
659
|
isSliding: ee,
|
|
660
|
-
isVertical:
|
|
661
|
-
maxSlide:
|
|
662
|
-
minSlide:
|
|
660
|
+
isVertical: ge,
|
|
661
|
+
maxSlide: ve,
|
|
662
|
+
minSlide: fe,
|
|
663
663
|
nav: vt,
|
|
664
664
|
normalizedDir: H,
|
|
665
665
|
slideRegistry: t,
|
|
666
666
|
slideSize: k,
|
|
667
|
-
slides:
|
|
667
|
+
slides: p,
|
|
668
668
|
slidesCount: b,
|
|
669
669
|
viewport: s,
|
|
670
670
|
visibleRange: ht
|
|
671
671
|
});
|
|
672
|
-
Sa(at,
|
|
672
|
+
Sa(at, kt);
|
|
673
673
|
const ft = Yt({
|
|
674
674
|
config: v,
|
|
675
675
|
currentSlide: I,
|
|
676
|
-
maxSlide:
|
|
676
|
+
maxSlide: ve,
|
|
677
677
|
middleSlide: O,
|
|
678
|
-
minSlide:
|
|
678
|
+
minSlide: fe,
|
|
679
679
|
slideSize: k,
|
|
680
680
|
slidesCount: b
|
|
681
681
|
});
|
|
@@ -685,32 +685,32 @@ const Il = Ce({
|
|
|
685
685
|
next: W,
|
|
686
686
|
prev: dt,
|
|
687
687
|
restartCarousel: yt,
|
|
688
|
-
slideTo:
|
|
689
|
-
updateBreakpointsConfig:
|
|
690
|
-
updateSlideSize:
|
|
688
|
+
slideTo: ce,
|
|
689
|
+
updateBreakpointsConfig: Oe,
|
|
690
|
+
updateSlideSize: de,
|
|
691
691
|
updateSlidesData: lt
|
|
692
692
|
}), () => {
|
|
693
693
|
var d;
|
|
694
|
-
const m = i.default || i.slides, w = (m == null ? void 0 : m(ft)) || [], { before: A, after: N } =
|
|
695
|
-
slides:
|
|
694
|
+
const m = i.default || i.slides, w = (m == null ? void 0 : m(ft)) || [], { before: A, after: N } = Re.value, te = ga({
|
|
695
|
+
slides: p,
|
|
696
696
|
position: "before",
|
|
697
697
|
toShow: A
|
|
698
|
-
}),
|
|
699
|
-
slides:
|
|
698
|
+
}), ue = ga({
|
|
699
|
+
slides: p,
|
|
700
700
|
position: "after",
|
|
701
701
|
toShow: N
|
|
702
|
-
}),
|
|
703
|
-
if (!v.enabled || !
|
|
702
|
+
}), re = [...te, ...w, ...ue];
|
|
703
|
+
if (!v.enabled || !re.length)
|
|
704
704
|
return Q("section", {
|
|
705
705
|
ref: D,
|
|
706
706
|
class: ["carousel", "is-disabled"]
|
|
707
|
-
},
|
|
707
|
+
}, re);
|
|
708
708
|
const qe = ((d = i.addons) === null || d === void 0 ? void 0 : d.call(i, ft)) || [], Ke = Q("ol", {
|
|
709
709
|
class: "carousel__track",
|
|
710
710
|
style: { transform: qt.value },
|
|
711
|
-
onMousedownCapture: v.mouseDrag ?
|
|
712
|
-
onTouchstartPassiveCapture: v.touchDrag ?
|
|
713
|
-
},
|
|
711
|
+
onMousedownCapture: v.mouseDrag ? Rt : null,
|
|
712
|
+
onTouchstartPassiveCapture: v.touchDrag ? Rt : null
|
|
713
|
+
}, re), mt = Q("div", { class: "carousel__viewport", ref: s }, Ke);
|
|
714
714
|
return Q("section", {
|
|
715
715
|
ref: D,
|
|
716
716
|
class: [
|
|
@@ -718,9 +718,9 @@ const Il = Ce({
|
|
|
718
718
|
`is-${H.value}`,
|
|
719
719
|
`is-effect-${v.slideEffect}`,
|
|
720
720
|
{
|
|
721
|
-
"is-vertical":
|
|
721
|
+
"is-vertical": ge.value,
|
|
722
722
|
"is-sliding": ee.value,
|
|
723
|
-
"is-dragging":
|
|
723
|
+
"is-dragging": pt.value,
|
|
724
724
|
"is-hover": ot.value
|
|
725
725
|
}
|
|
726
726
|
],
|
|
@@ -729,7 +729,7 @@ const Il = Ce({
|
|
|
729
729
|
"aria-label": v.i18n.ariaGallery,
|
|
730
730
|
tabindex: "0",
|
|
731
731
|
onFocus: Ht,
|
|
732
|
-
onBlur:
|
|
732
|
+
onBlur: Fe,
|
|
733
733
|
onMouseenter: zt,
|
|
734
734
|
onMouseleave: Gt
|
|
735
735
|
}, [mt, qe, Q(Il)]);
|
|
@@ -749,7 +749,7 @@ const ya = (e) => `icon${e.charAt(0).toUpperCase() + e.slice(1)}`, El = {
|
|
|
749
749
|
function xl(e) {
|
|
750
750
|
return e in _t;
|
|
751
751
|
}
|
|
752
|
-
const ba = (e) => e && xl(e), ha =
|
|
752
|
+
const ba = (e) => e && xl(e), ha = we({
|
|
753
753
|
props: {
|
|
754
754
|
name: {
|
|
755
755
|
type: String,
|
|
@@ -762,28 +762,28 @@ const ba = (e) => e && xl(e), ha = Ce({
|
|
|
762
762
|
}
|
|
763
763
|
},
|
|
764
764
|
setup(e) {
|
|
765
|
-
const i =
|
|
765
|
+
const i = Bt(at, null);
|
|
766
766
|
return () => {
|
|
767
767
|
const o = e.name;
|
|
768
768
|
if (!o || !ba(o))
|
|
769
769
|
return;
|
|
770
|
-
const n = El[o], l = Q("path", { d: n }), t = (i == null ? void 0 : i.config.i18n[ya(o)]) || e.title,
|
|
770
|
+
const n = El[o], l = Q("path", { d: n }), t = (i == null ? void 0 : i.config.i18n[ya(o)]) || e.title, p = Q("title", t);
|
|
771
771
|
return Q("svg", {
|
|
772
772
|
class: "carousel__icon",
|
|
773
773
|
viewBox: "0 0 24 24",
|
|
774
774
|
role: "img",
|
|
775
775
|
"aria-label": t
|
|
776
|
-
}, [
|
|
776
|
+
}, [p, l]);
|
|
777
777
|
};
|
|
778
778
|
}
|
|
779
|
-
}), Vl =
|
|
779
|
+
}), Vl = we({
|
|
780
780
|
name: "CarouselNavigation",
|
|
781
781
|
inheritAttrs: !1,
|
|
782
782
|
setup(e, { slots: i, attrs: o }) {
|
|
783
|
-
const n =
|
|
783
|
+
const n = Bt(at);
|
|
784
784
|
if (!n)
|
|
785
785
|
return () => "";
|
|
786
|
-
const { next: l, prev: t } = i,
|
|
786
|
+
const { next: l, prev: t } = i, p = () => ({
|
|
787
787
|
btt: "arrowDown",
|
|
788
788
|
ltr: "arrowLeft",
|
|
789
789
|
rtl: "arrowRight",
|
|
@@ -799,7 +799,7 @@ const ba = (e) => e && xl(e), ha = Ce({
|
|
|
799
799
|
"carousel__prev",
|
|
800
800
|
{ "carousel__prev--disabled": D.value },
|
|
801
801
|
o.class
|
|
802
|
-
] }), (t == null ? void 0 : t()) || Q(ha, { name:
|
|
802
|
+
] }), (t == null ? void 0 : t()) || Q(ha, { name: p() })), v = Q("button", Object.assign(Object.assign({ type: "button", disabled: s.value, "aria-label": k.ariaNextSlide, title: k.ariaNextSlide, onClick: n.nav.next }, o), { class: [
|
|
803
803
|
"carousel__next",
|
|
804
804
|
{ "carousel__next--disabled": s.value },
|
|
805
805
|
o.class
|
|
@@ -807,7 +807,7 @@ const ba = (e) => e && xl(e), ha = Ce({
|
|
|
807
807
|
return [T, v];
|
|
808
808
|
};
|
|
809
809
|
}
|
|
810
|
-
}), Rl =
|
|
810
|
+
}), Rl = we({
|
|
811
811
|
name: "CarouselPagination",
|
|
812
812
|
props: {
|
|
813
813
|
disableOnClick: {
|
|
@@ -818,15 +818,15 @@ const ba = (e) => e && xl(e), ha = Ce({
|
|
|
818
818
|
}
|
|
819
819
|
},
|
|
820
820
|
setup(e) {
|
|
821
|
-
const i =
|
|
821
|
+
const i = Bt(at);
|
|
822
822
|
if (!i)
|
|
823
823
|
return () => "";
|
|
824
824
|
const o = r(() => i.config.itemsToShow), n = r(() => Zt({
|
|
825
825
|
align: i.config.snapAlign,
|
|
826
826
|
itemsToShow: o.value
|
|
827
|
-
})), l = r(() => e.paginateByItemsToShow && o.value > 1), t = r(() => Math.ceil((i.activeSlide - n.value) / o.value)),
|
|
827
|
+
})), l = r(() => e.paginateByItemsToShow && o.value > 1), t = r(() => Math.ceil((i.activeSlide - n.value) / o.value)), p = r(() => Math.ceil(i.slidesCount / o.value)), b = (D) => Va(l.value ? {
|
|
828
828
|
val: t.value,
|
|
829
|
-
max:
|
|
829
|
+
max: p.value - 1,
|
|
830
830
|
min: 0
|
|
831
831
|
} : {
|
|
832
832
|
val: i.activeSlide,
|
|
@@ -836,7 +836,7 @@ const ba = (e) => e && xl(e), ha = Ce({
|
|
|
836
836
|
return () => {
|
|
837
837
|
var D, s;
|
|
838
838
|
const k = [];
|
|
839
|
-
for (let T = l.value ? 0 : i.minSlide; T <= (l.value ?
|
|
839
|
+
for (let T = l.value ? 0 : i.minSlide; T <= (l.value ? p.value - 1 : i.maxSlide); T++) {
|
|
840
840
|
const v = xa(i.config.i18n[l.value ? "ariaNavigateToPage" : "ariaNavigateToSlide"], {
|
|
841
841
|
slideNumber: T + 1
|
|
842
842
|
}), I = b(T), h = Q("button", {
|
|
@@ -857,7 +857,7 @@ const ba = (e) => e && xl(e), ha = Ce({
|
|
|
857
857
|
return Q("ol", { class: "carousel__pagination" }, k);
|
|
858
858
|
};
|
|
859
859
|
}
|
|
860
|
-
}), ka =
|
|
860
|
+
}), ka = we({
|
|
861
861
|
name: "CarouselSlide",
|
|
862
862
|
props: {
|
|
863
863
|
id: {
|
|
@@ -878,10 +878,10 @@ const ba = (e) => e && xl(e), ha = Ce({
|
|
|
878
878
|
}
|
|
879
879
|
},
|
|
880
880
|
setup(e, { attrs: i, slots: o, expose: n }) {
|
|
881
|
-
const l =
|
|
881
|
+
const l = Bt(at);
|
|
882
882
|
if (Sa(at, void 0), !l)
|
|
883
883
|
return () => "";
|
|
884
|
-
const t = C(e.index),
|
|
884
|
+
const t = C(e.index), p = (h) => {
|
|
885
885
|
t.value = h;
|
|
886
886
|
}, b = Za(), D = () => {
|
|
887
887
|
const h = b.vnode.el;
|
|
@@ -889,7 +889,7 @@ const ba = (e) => e && xl(e), ha = Ce({
|
|
|
889
889
|
};
|
|
890
890
|
n({
|
|
891
891
|
id: e.id,
|
|
892
|
-
setIndex:
|
|
892
|
+
setIndex: p,
|
|
893
893
|
getBoundingRect: D
|
|
894
894
|
});
|
|
895
895
|
const s = r(() => t.value === l.activeSlide), k = r(() => t.value === l.activeSlide - 1), T = r(() => t.value === l.activeSlide + 1), v = r(() => t.value >= l.visibleRange.min && t.value <= l.visibleRange.max), I = r(() => {
|
|
@@ -901,9 +901,9 @@ const ba = (e) => e && xl(e), ha = Ce({
|
|
|
901
901
|
return l.slideRegistry.registerSlide(b, e.index), _a(() => {
|
|
902
902
|
l.slideRegistry.unregisterSlide(b);
|
|
903
903
|
}), e.isClone && (ta(() => {
|
|
904
|
-
|
|
904
|
+
pa(b.vnode);
|
|
905
905
|
}), el(() => {
|
|
906
|
-
|
|
906
|
+
pa(b.vnode);
|
|
907
907
|
})), () => {
|
|
908
908
|
var h, P;
|
|
909
909
|
return l.config.enabled ? Q("li", {
|
|
@@ -934,10 +934,10 @@ const ba = (e) => e && xl(e), ha = Ce({
|
|
|
934
934
|
};
|
|
935
935
|
}
|
|
936
936
|
}), Ll = (e, i, o, n) => {
|
|
937
|
-
var
|
|
937
|
+
var p, b, D, s, k;
|
|
938
938
|
if (!o) return 0;
|
|
939
939
|
let l, t;
|
|
940
|
-
if (o.type ===
|
|
940
|
+
if (o.type === Ee.Field ? [Qe.Number, Qe.Range].includes((p = o.field) == null ? void 0 : p.type) ? (l = parseFloat(e[o.key]), t = parseFloat(i[o.key])) : [Qe.Date, Qe.Date].includes((b = o.field) == null ? void 0 : b.type) ? (l = e[o.key], t = i[o.key]) : ((D = o.field) == null ? void 0 : D.type) === Qe.Select && ((s = o.field) != null && s.multiple) && ((k = o.field) == null ? void 0 : k.multipleDisplay) === ol.Count ? (l = e[o.key].length, t = i[o.key].length) : (l = String(e[o.key]).toLowerCase(), t = String(i[o.key]).toLowerCase()) : (l = String(e[o.key]).toLowerCase(), t = String(i[o.key]).toLowerCase()), n === tt.Asc) {
|
|
941
941
|
if (l > t) return 1;
|
|
942
942
|
if (t > l) return -1;
|
|
943
943
|
} else {
|
|
@@ -947,11 +947,11 @@ const ba = (e) => e && xl(e), ha = Ce({
|
|
|
947
947
|
return 0;
|
|
948
948
|
}, Ze = (e, i, o, n = []) => {
|
|
949
949
|
if (e.extractTitleFromColumn) {
|
|
950
|
-
let t = n.find((
|
|
950
|
+
let t = n.find((p) => p.key === e.extractTitleFromColumn);
|
|
951
951
|
if (t)
|
|
952
952
|
return Ze(t, i, o, n);
|
|
953
953
|
}
|
|
954
|
-
let l = e.type ===
|
|
954
|
+
let l = e.type === Ee.ColumnIndex ? o : i[e.key];
|
|
955
955
|
if (e.formatter && typeof e.formatter == "function") {
|
|
956
956
|
let t = e.formatter(l, i, e, o);
|
|
957
957
|
return typeof t == "string" && t.startsWith("__:") ? nl(t.substring(3)) : t;
|
|
@@ -965,7 +965,7 @@ const ba = (e) => e && xl(e), ha = Ce({
|
|
|
965
965
|
t > 0 && t < n && (n = t);
|
|
966
966
|
}), n;
|
|
967
967
|
}, aa = (e, i) => e.colspan === !1 ? !1 : typeof e.colspan == "function" ? e.colspan(i) : e.colspan, Ra = (e, i) => typeof e.preferSlot > "u" ? !0 : e.preferSlot === !1 ? !1 : typeof e.preferSlot == "function" ? e.preferSlot(i) : !0, Ml = (e, i, o) => {
|
|
968
|
-
if (typeof e != "object" || !e.key && [
|
|
968
|
+
if (typeof e != "object" || !e.key && [Ee.Field].includes(e.type) || i.indexOf(e.key) > -1) return !1;
|
|
969
969
|
let n = aa(e, o);
|
|
970
970
|
return typeof e.colspan > "u" ? !0 : (typeof e.colspan < "u" && (typeof e.colspan == "function" ? n = parseInt(e.colspan(o)) : n = parseInt(e.colspan)), n > 0);
|
|
971
971
|
}, Ol = (e = []) => {
|
|
@@ -983,7 +983,7 @@ const ba = (e) => e && xl(e), ha = Ce({
|
|
|
983
983
|
}, La = (e) => {
|
|
984
984
|
let i = [];
|
|
985
985
|
return e.class && i.push(e.class), e.type && i.push(`is-${e.type}`), i.join(" ");
|
|
986
|
-
}, ea = /* @__PURE__ */
|
|
986
|
+
}, ea = /* @__PURE__ */ we({
|
|
987
987
|
__name: "LktTableCell",
|
|
988
988
|
props: {
|
|
989
989
|
modelValue: { default: () => ({}) },
|
|
@@ -1007,7 +1007,7 @@ const ba = (e) => e && xl(e), ha = Ce({
|
|
|
1007
1007
|
});
|
|
1008
1008
|
const t = () => {
|
|
1009
1009
|
o("inline-drop");
|
|
1010
|
-
},
|
|
1010
|
+
}, p = r(() => ({ ...n.column.slotData, item: l.value })), b = r(() => {
|
|
1011
1011
|
var k, T, v, I;
|
|
1012
1012
|
if ((k = n.column.field) != null && k.modalData && typeof ((T = n.column.field) == null ? void 0 : T.modalData) == "object")
|
|
1013
1013
|
for (let h in n.column.field.modalData)
|
|
@@ -1019,72 +1019,72 @@ const ba = (e) => e && xl(e), ha = Ce({
|
|
|
1019
1019
|
return (I = n.column.field) == null ? void 0 : I.modalData;
|
|
1020
1020
|
}), D = r(() => typeof n.column.field == "string" && n.column.field.startsWith("prop:") ? il(n.column.field, l.value) : n.column.field), s = r(() => {
|
|
1021
1021
|
var k, T, v, I;
|
|
1022
|
-
return n.column.type ===
|
|
1022
|
+
return n.column.type === Ee.Field ? !((T = (k = n.column) == null ? void 0 : k.field) != null && T.label) && (n.column.ensureFieldLabel || [
|
|
1023
1023
|
Qe.Switch,
|
|
1024
1024
|
Qe.Check
|
|
1025
1025
|
].includes((v = n.column.field) == null ? void 0 : v.type)) ? n.column.label : (I = n.column.field) == null ? void 0 : I.label : "";
|
|
1026
1026
|
});
|
|
1027
1027
|
return (k, T) => {
|
|
1028
|
-
const v =
|
|
1029
|
-
return e.column.type ===
|
|
1028
|
+
const v = se("lkt-anchor"), I = se("lkt-button"), h = se("lkt-field"), P = se("lkt-polymorphic-element");
|
|
1029
|
+
return e.column.type === g(Ee).Anchor ? (c(), R(v, K({ key: 0 }, e.column.anchor, { prop: l.value }), {
|
|
1030
1030
|
default: z(() => [
|
|
1031
|
-
_e(et(
|
|
1031
|
+
_e(et(g(Ze)(e.column, l.value, e.i)), 1)
|
|
1032
1032
|
]),
|
|
1033
1033
|
_: 1
|
|
1034
|
-
}, 16, ["prop"])) : e.column.type ===
|
|
1034
|
+
}, 16, ["prop"])) : e.column.type === g(Ee).Button ? (c(), R(I, K({ key: 1 }, e.column.button, { prop: l.value }), {
|
|
1035
1035
|
default: z(() => [
|
|
1036
|
-
_e(et(
|
|
1036
|
+
_e(et(g(Ze)(e.column, l.value, e.i)), 1)
|
|
1037
1037
|
]),
|
|
1038
1038
|
_: 1
|
|
1039
|
-
}, 16, ["prop"])) : e.column.type ===
|
|
1039
|
+
}, 16, ["prop"])) : e.column.type === g(Ee).Field ? (c(), R(h, K({
|
|
1040
1040
|
key: 2,
|
|
1041
1041
|
modelValue: l.value[e.column.key],
|
|
1042
1042
|
"onUpdate:modelValue": T[0] || (T[0] = (O) => l.value[e.column.key] = O)
|
|
1043
1043
|
}, {
|
|
1044
1044
|
...D.value,
|
|
1045
1045
|
readMode: !e.hasInlineEditPerm || D.value.readMode,
|
|
1046
|
-
slotData:
|
|
1046
|
+
slotData: p.value,
|
|
1047
1047
|
label: s.value,
|
|
1048
1048
|
modalData: b.value,
|
|
1049
1049
|
prop: l.value
|
|
1050
|
-
}), null, 16, ["modelValue"])) : e.column.type ===
|
|
1050
|
+
}), null, 16, ["modelValue"])) : e.column.type === g(Ee).InlineDrop ? (c(), R(I, K({ key: 3 }, e.column.button, {
|
|
1051
1051
|
prop: l.value,
|
|
1052
1052
|
onClick: t
|
|
1053
1053
|
}), {
|
|
1054
1054
|
default: z(() => [
|
|
1055
|
-
_e(et(
|
|
1055
|
+
_e(et(g(Ze)(e.column, l.value, e.i)), 1)
|
|
1056
1056
|
]),
|
|
1057
1057
|
_: 1
|
|
1058
|
-
}, 16, ["prop"])) : e.column.type ===
|
|
1058
|
+
}, 16, ["prop"])) : e.column.type === g(Ee).ColumnIndex && e.column.field ? (c(), R(h, ye(K({ key: 4 }, {
|
|
1059
1059
|
...D.value,
|
|
1060
|
-
modelValue:
|
|
1060
|
+
modelValue: g(Ze)(e.column, l.value, e.i, e.columns),
|
|
1061
1061
|
readMode: !0,
|
|
1062
|
-
slotData:
|
|
1062
|
+
slotData: p.value,
|
|
1063
1063
|
label: s.value,
|
|
1064
1064
|
modalData: b.value,
|
|
1065
1065
|
prop: l.value
|
|
1066
|
-
})), null, 16)) : e.column.type ===
|
|
1066
|
+
})), null, 16)) : e.column.type === g(Ee).Content && Array.isArray(e.column.content) ? (c(), S("div", {
|
|
1067
1067
|
key: 5,
|
|
1068
1068
|
class: J(["lkt-content-container", e.column.class])
|
|
1069
1069
|
}, [
|
|
1070
|
-
(c(!0), S(q, null,
|
|
1070
|
+
(c(!0), S(q, null, be(e.column.content, (O) => (c(), S(q, null, [
|
|
1071
1071
|
typeof O == "function" ? (c(), R(P, K({
|
|
1072
1072
|
key: 0,
|
|
1073
1073
|
ref_for: !0
|
|
1074
|
-
}, O({ item: l.value })), null, 16)) : (c(), R(P, K({
|
|
1074
|
+
}, O({ item: l.value, index: e.i })), null, 16)) : (c(), R(P, K({
|
|
1075
1075
|
key: 1,
|
|
1076
1076
|
ref_for: !0
|
|
1077
1077
|
}, O), null, 16))
|
|
1078
1078
|
], 64))), 256))
|
|
1079
1079
|
], 2)) : (c(), S(q, { key: 6 }, [
|
|
1080
|
-
_e(et(
|
|
1080
|
+
_e(et(g(Ze)(e.column, l.value, e.i, e.columns)), 1)
|
|
1081
1081
|
], 64));
|
|
1082
1082
|
};
|
|
1083
1083
|
}
|
|
1084
|
-
}),
|
|
1084
|
+
}), It = class It {
|
|
1085
1085
|
};
|
|
1086
|
-
|
|
1087
|
-
let
|
|
1086
|
+
It.navButtonSlot = "", It.createButtonSlot = "", It.defaultEmptySlot = void 0;
|
|
1087
|
+
let Ce = It;
|
|
1088
1088
|
const Fl = ["data-i", "data-draggable"], Pl = ["data-role", "data-i"], Ul = {
|
|
1089
1089
|
key: 1,
|
|
1090
1090
|
class: "lkt-table-nav-cell"
|
|
@@ -1094,7 +1094,7 @@ const Fl = ["data-i", "data-draggable"], Pl = ["data-role", "data-i"], Ul = {
|
|
|
1094
1094
|
}, Gl = {
|
|
1095
1095
|
key: 1,
|
|
1096
1096
|
class: "lkt-icn-arrow-bottom"
|
|
1097
|
-
}, Hl = ["colspan"], ql = ["colspan"], Kl = ["colspan"], Xl = ["data-column", "colspan", "title"], Yl = /* @__PURE__ */
|
|
1097
|
+
}, Hl = ["colspan"], ql = ["colspan"], Kl = ["colspan"], Xl = ["data-column", "colspan", "title"], Yl = /* @__PURE__ */ we({
|
|
1098
1098
|
__name: "LktTableRow",
|
|
1099
1099
|
props: {
|
|
1100
1100
|
modelValue: { default: () => ({}) },
|
|
@@ -1112,7 +1112,7 @@ const Fl = ["data-i", "data-draggable"], Pl = ["data-role", "data-i"], Ul = {
|
|
|
1112
1112
|
i: { default: 0 },
|
|
1113
1113
|
visibleColumns: { default: () => [] },
|
|
1114
1114
|
emptyColumns: { default: () => [] },
|
|
1115
|
-
rowDisplayType: { type: [Number, Function], default:
|
|
1115
|
+
rowDisplayType: { type: [Number, Function], default: xe.Auto },
|
|
1116
1116
|
renderDrag: { type: [Boolean, Function], default: !0 },
|
|
1117
1117
|
disabledDrag: { type: [Boolean, Function], default: !0 },
|
|
1118
1118
|
itemContainerClass: { type: [String, Function], default: "" },
|
|
@@ -1130,12 +1130,12 @@ const Fl = ["data-i", "data-draggable"], Pl = ["data-role", "data-i"], Ul = {
|
|
|
1130
1130
|
],
|
|
1131
1131
|
setup(e, { emit: i }) {
|
|
1132
1132
|
const o = Ca(), n = i, l = e, t = C(l.modelValue);
|
|
1133
|
-
let
|
|
1134
|
-
|
|
1135
|
-
const b = [
|
|
1136
|
-
let M = [], F = typeof l.disabledDrag == "function" ? l.disabledDrag(t.value) :
|
|
1133
|
+
let p = typeof l.rowDisplayType == "function" ? l.rowDisplayType(t.value, l.i) : l.rowDisplayType;
|
|
1134
|
+
p || (p = xe.Auto);
|
|
1135
|
+
const b = [xe.Auto, xe.PreferCustomItem].includes(p), D = [xe.Auto, xe.PreferItem].includes(p), s = (M) => n("click", M), k = r(() => {
|
|
1136
|
+
let M = [], F = typeof l.disabledDrag == "function" ? l.disabledDrag(t.value) : ve.value === !0;
|
|
1137
1137
|
return !F && l.sortable && l.isDraggable ? M.push("handle") : F && M.push("disabled"), M.join(" ");
|
|
1138
|
-
}), T = r(() =>
|
|
1138
|
+
}), T = r(() => Ce.navButtonSlot !== ""), v = r(() => Ce.navButtonSlot), I = () => {
|
|
1139
1139
|
n("item-up", l.i);
|
|
1140
1140
|
}, h = () => {
|
|
1141
1141
|
n("item-down", l.i);
|
|
@@ -1145,47 +1145,47 @@ const Fl = ["data-i", "data-draggable"], Pl = ["data-role", "data-i"], Ul = {
|
|
|
1145
1145
|
G(() => l.modelValue, (M) => t.value = M), G(t, (M) => {
|
|
1146
1146
|
n("update:modelValue", M);
|
|
1147
1147
|
}, { deep: !0 });
|
|
1148
|
-
const O = r(() => typeof l.renderDrag == "function" ? l.renderDrag(t.value) : l.renderDrag === !0),
|
|
1148
|
+
const O = r(() => typeof l.renderDrag == "function" ? l.renderDrag(t.value) : l.renderDrag === !0), ve = r(() => typeof l.disabledDrag == "function" ? l.disabledDrag(t.value) : l.disabledDrag === !0), fe = r(() => k.value.includes("handle") ? "drag-indicator" : "invalid-drag-indicator"), me = r(() => {
|
|
1149
1149
|
let M = [];
|
|
1150
1150
|
return b && M.push("type-custom-item"), D && M.push("type-item"), typeof l.itemContainerClass == "function" ? M.push(l.itemContainerClass(t.value, l.i)) : l.itemContainerClass !== "" && M.push(l.itemContainerClass), M.join(" ");
|
|
1151
1151
|
});
|
|
1152
1152
|
return (M, F) => {
|
|
1153
|
-
const B =
|
|
1153
|
+
const B = se("lkt-button");
|
|
1154
1154
|
return c(), S("tr", {
|
|
1155
1155
|
"data-i": e.i,
|
|
1156
1156
|
"data-draggable": e.isDraggable,
|
|
1157
|
-
class: J(
|
|
1157
|
+
class: J(me.value)
|
|
1158
1158
|
}, [
|
|
1159
1159
|
e.sortable && e.editModeEnabled && O.value ? (c(), S("td", {
|
|
1160
1160
|
key: 0,
|
|
1161
|
-
"data-role":
|
|
1161
|
+
"data-role": fe.value,
|
|
1162
1162
|
class: J(k.value),
|
|
1163
1163
|
"data-i": e.i
|
|
1164
1164
|
}, [...F[2] || (F[2] = [
|
|
1165
|
-
|
|
1165
|
+
ke("i", { class: "lkt-icn-drag-indicator" }, null, -1)
|
|
1166
1166
|
])], 10, Pl)) : x("", !0),
|
|
1167
1167
|
e.addNavigation && e.editModeEnabled ? (c(), S("td", Ul, [
|
|
1168
|
-
|
|
1169
|
-
|
|
1168
|
+
ke("div", jl, [
|
|
1169
|
+
he(B, {
|
|
1170
1170
|
palette: "table-nav",
|
|
1171
1171
|
disabled: e.i === 0,
|
|
1172
1172
|
onClick: I
|
|
1173
1173
|
}, {
|
|
1174
1174
|
default: z(() => [
|
|
1175
|
-
T.value ? (c(), R(
|
|
1175
|
+
T.value ? (c(), R(Se(v.value), {
|
|
1176
1176
|
key: 0,
|
|
1177
1177
|
direction: "up"
|
|
1178
1178
|
})) : (c(), S("i", zl))
|
|
1179
1179
|
]),
|
|
1180
1180
|
_: 1
|
|
1181
1181
|
}, 8, ["disabled"]),
|
|
1182
|
-
|
|
1182
|
+
he(B, {
|
|
1183
1183
|
palette: "table-nav",
|
|
1184
1184
|
disabled: e.latestRow,
|
|
1185
1185
|
onClick: h
|
|
1186
1186
|
}, {
|
|
1187
1187
|
default: z(() => [
|
|
1188
|
-
T.value ? (c(), R(
|
|
1188
|
+
T.value ? (c(), R(Se(v.value), {
|
|
1189
1189
|
key: 0,
|
|
1190
1190
|
direction: "down"
|
|
1191
1191
|
})) : (c(), S("i", Gl))
|
|
@@ -1198,7 +1198,7 @@ const Fl = ["data-i", "data-draggable"], Pl = ["data-role", "data-i"], Ul = {
|
|
|
1198
1198
|
key: "td" + e.i,
|
|
1199
1199
|
colspan: e.visibleColumns.length
|
|
1200
1200
|
}, [
|
|
1201
|
-
(c(), R(
|
|
1201
|
+
(c(), R(Se(e.itemSlotComponent), ye(wa({
|
|
1202
1202
|
item: t.value,
|
|
1203
1203
|
index: e.i,
|
|
1204
1204
|
editing: e.editModeEnabled,
|
|
@@ -1206,7 +1206,7 @@ const Fl = ["data-i", "data-draggable"], Pl = ["data-role", "data-i"], Ul = {
|
|
|
1206
1206
|
data: e.itemSlotData,
|
|
1207
1207
|
events: e.itemSlotEvents
|
|
1208
1208
|
})), null, 16))
|
|
1209
|
-
], 8, Hl)) :
|
|
1209
|
+
], 8, Hl)) : g(b) && g(o)[`item-${e.i}`] ? (c(), S("td", {
|
|
1210
1210
|
key: "td" + e.i,
|
|
1211
1211
|
colspan: e.visibleColumns.length
|
|
1212
1212
|
}, [
|
|
@@ -1221,7 +1221,7 @@ const Fl = ["data-i", "data-draggable"], Pl = ["data-role", "data-i"], Ul = {
|
|
|
1221
1221
|
isLoading: e.isLoading,
|
|
1222
1222
|
doDrop: () => P()
|
|
1223
1223
|
})
|
|
1224
|
-
], 8, ql)) :
|
|
1224
|
+
], 8, ql)) : g(D) && g(o).item ? (c(), S("td", {
|
|
1225
1225
|
key: "td" + e.i,
|
|
1226
1226
|
colspan: e.visibleColumns.length
|
|
1227
1227
|
}, [
|
|
@@ -1236,16 +1236,16 @@ const Fl = ["data-i", "data-draggable"], Pl = ["data-role", "data-i"], Ul = {
|
|
|
1236
1236
|
isLoading: e.isLoading,
|
|
1237
1237
|
doDrop: () => P()
|
|
1238
1238
|
})
|
|
1239
|
-
], 8, Kl)) : (c(!0), S(q, { key: 5 },
|
|
1240
|
-
|
|
1239
|
+
], 8, Kl)) : (c(!0), S(q, { key: 5 }, be(e.visibleColumns, (H) => (c(), S(q, null, [
|
|
1240
|
+
g(Ml)(H, e.emptyColumns, t.value) ? (c(), S("td", {
|
|
1241
1241
|
key: "td" + e.i,
|
|
1242
1242
|
"data-column": H.key,
|
|
1243
|
-
colspan:
|
|
1244
|
-
title:
|
|
1245
|
-
class: J(
|
|
1243
|
+
colspan: g(aa)(H, t.value),
|
|
1244
|
+
title: g(Ze)(H, t.value, e.i, e.visibleColumns),
|
|
1245
|
+
class: J(g(La)(H)),
|
|
1246
1246
|
onClick: F[1] || (F[1] = (oe) => s(oe))
|
|
1247
1247
|
}, [
|
|
1248
|
-
M.$slots[H.key] &&
|
|
1248
|
+
M.$slots[H.key] && g(Ra)(H, t.value) ? $(M.$slots, H.key, {
|
|
1249
1249
|
key: 0,
|
|
1250
1250
|
value: t.value[H.key],
|
|
1251
1251
|
item: t.value,
|
|
@@ -1267,7 +1267,7 @@ const Fl = ["data-i", "data-draggable"], Pl = ["data-role", "data-i"], Ul = {
|
|
|
1267
1267
|
], 10, Fl);
|
|
1268
1268
|
};
|
|
1269
1269
|
}
|
|
1270
|
-
}),
|
|
1270
|
+
}), Tt = /* @__PURE__ */ we({
|
|
1271
1271
|
__name: "CreateButton",
|
|
1272
1272
|
props: {
|
|
1273
1273
|
config: { default: void 0 },
|
|
@@ -1279,7 +1279,7 @@ const Fl = ["data-i", "data-draggable"], Pl = ["data-role", "data-i"], Ul = {
|
|
|
1279
1279
|
],
|
|
1280
1280
|
setup(e, { emit: i }) {
|
|
1281
1281
|
var s;
|
|
1282
|
-
const o = i, n = e, l = r(() =>
|
|
1282
|
+
const o = i, n = e, l = r(() => Ce.createButtonSlot !== ""), t = r(() => Ce.createButtonSlot), p = {
|
|
1283
1283
|
...(s = n.config) == null ? void 0 : s.modalData,
|
|
1284
1284
|
beforeClose: (k) => {
|
|
1285
1285
|
"itemCreated" in k && k.itemCreated === !0 && o("append", k.item);
|
|
@@ -1287,7 +1287,7 @@ const Fl = ["data-i", "data-draggable"], Pl = ["data-role", "data-i"], Ul = {
|
|
|
1287
1287
|
}, b = {
|
|
1288
1288
|
...n.config
|
|
1289
1289
|
};
|
|
1290
|
-
b.modalData =
|
|
1290
|
+
b.modalData = p;
|
|
1291
1291
|
const D = () => {
|
|
1292
1292
|
var k;
|
|
1293
1293
|
if (!((k = n.config) != null && k.modal)) {
|
|
@@ -1296,19 +1296,19 @@ const Fl = ["data-i", "data-draggable"], Pl = ["data-role", "data-i"], Ul = {
|
|
|
1296
1296
|
}
|
|
1297
1297
|
};
|
|
1298
1298
|
return (k, T) => {
|
|
1299
|
-
const v =
|
|
1299
|
+
const v = se("lkt-button");
|
|
1300
1300
|
return c(), R(v, K(b, {
|
|
1301
1301
|
disabled: e.disabled,
|
|
1302
1302
|
onClick: D
|
|
1303
1303
|
}), {
|
|
1304
1304
|
default: z(() => [
|
|
1305
|
-
l.value ? (c(), R(
|
|
1305
|
+
l.value ? (c(), R(Se(t.value), { key: 0 })) : x("", !0)
|
|
1306
1306
|
]),
|
|
1307
1307
|
_: 1
|
|
1308
1308
|
}, 16, ["disabled"]);
|
|
1309
1309
|
};
|
|
1310
1310
|
}
|
|
1311
|
-
}), Wl = ["data-column", "data-sortable", "data-sort", "colspan", "title"], Jl = /* @__PURE__ */
|
|
1311
|
+
}), Wl = ["data-column", "data-sortable", "data-sort", "colspan", "title"], Jl = /* @__PURE__ */ we({
|
|
1312
1312
|
__name: "TableHeader",
|
|
1313
1313
|
props: {
|
|
1314
1314
|
column: { default: () => new Da() },
|
|
@@ -1321,17 +1321,17 @@ const Fl = ["data-i", "data-draggable"], Pl = ["data-role", "data-i"], Ul = {
|
|
|
1321
1321
|
"click"
|
|
1322
1322
|
],
|
|
1323
1323
|
setup(e, { emit: i }) {
|
|
1324
|
-
const o = i, n = e, l = r(() => Nl(n.column, n.amountOfColumns, n.items)), t = r(() => n.column.sortable === !0),
|
|
1324
|
+
const o = i, n = e, l = r(() => Nl(n.column, n.amountOfColumns, n.items)), t = r(() => n.column.sortable === !0), p = r(() => t.value && n.sortBy === n.column.key ? n.sortDirection : ""), b = r(() => Ta(n.column.label)), D = r(() => t.value && n.sortBy === n.column.key ? n.sortDirection === tt.Asc ? Ae.defaultTableSortAscIcon : n.sortDirection === tt.Desc ? Ae.defaultTableSortDescIcon : "" : ""), s = () => o("click", n.column);
|
|
1325
1325
|
return (k, T) => (c(), S("th", {
|
|
1326
1326
|
"data-column": e.column.key,
|
|
1327
1327
|
"data-sortable": t.value,
|
|
1328
|
-
"data-sort":
|
|
1328
|
+
"data-sort": p.value,
|
|
1329
1329
|
colspan: l.value,
|
|
1330
1330
|
title: b.value,
|
|
1331
|
-
class: J(
|
|
1331
|
+
class: J(g(La)(e.column)),
|
|
1332
1332
|
onClick: s
|
|
1333
1333
|
}, [
|
|
1334
|
-
|
|
1334
|
+
ke("div", null, [
|
|
1335
1335
|
_e(et(b.value) + " ", 1),
|
|
1336
1336
|
D.value ? (c(), S("i", {
|
|
1337
1337
|
key: 0,
|
|
@@ -1349,13 +1349,13 @@ const Fl = ["data-i", "data-draggable"], Pl = ["data-role", "data-i"], Ul = {
|
|
|
1349
1349
|
}, ln = { class: "lkt-table" }, nn = { key: 0 }, on = { key: 0 }, un = {
|
|
1350
1350
|
key: 0,
|
|
1351
1351
|
"data-role": "drag-indicator"
|
|
1352
|
-
}, rn = { key: 1 }, sn = ["id"], dn = ["id"], cn = ["data-i"], vn = ["id"], fn = ["data-i"], mn = ["id"],
|
|
1352
|
+
}, rn = { key: 1 }, sn = ["id"], dn = ["id"], cn = ["data-i"], vn = ["id"], fn = ["data-i"], mn = ["id"], gn = { class: "lkt-carousel-slide" }, pn = { class: "lkt-carousel-slide" }, yn = ["id"], bn = {
|
|
1353
1353
|
key: 3,
|
|
1354
1354
|
class: "lkt-table-empty"
|
|
1355
1355
|
}, hn = {
|
|
1356
1356
|
key: 5,
|
|
1357
1357
|
class: "lkt-table-page-buttons lkt-table-page-buttons-bottom"
|
|
1358
|
-
}, kn = /* @__PURE__ */
|
|
1358
|
+
}, kn = /* @__PURE__ */ we({
|
|
1359
1359
|
__name: "LktTable",
|
|
1360
1360
|
props: /* @__PURE__ */ al({
|
|
1361
1361
|
modelValue: {},
|
|
@@ -1430,35 +1430,35 @@ const Fl = ["data-i", "data-draggable"], Pl = ["data-role", "data-i"], Ul = {
|
|
|
1430
1430
|
],
|
|
1431
1431
|
setup(e, { expose: i, emit: o }) {
|
|
1432
1432
|
var ca, va;
|
|
1433
|
-
const n = o, l = Ca(), t = e,
|
|
1433
|
+
const n = o, l = Ca(), t = e, p = C(typeof t.sorter == "function" ? t.sorter : Ll), b = C(Ol(t.columns)), D = C(tt.Asc), s = C(t.modelValue), k = C(null), T = C(t.columns), v = C([]), I = C((ca = t.paginator) == null ? void 0 : ca.modelValue), h = C(t.loading), P = C(!1), O = C(t.perms), ve = C(null), fe = C(null), me = C(null), M = C({}), F = C(new cl({ items: s.value }, t.dataStateConfig)), B = C(t.editMode), H = C(0), oe = C(null), ge = C(t.type), pe = C(((va = t.carousel) == null ? void 0 : va.currentSlide) || 0), Y = C(void 0), Oe = C(void 0), At = C(void 0), Ve = C({
|
|
1434
1434
|
...typeof t.paginator.resourceData == "object" ? t.paginator.resourceData : {}
|
|
1435
1435
|
}), Z = C({
|
|
1436
1436
|
...typeof t.paginator.resourceData == "object" ? t.paginator.resourceData : {}
|
|
1437
|
-
}), ae = C(je(t.saveButton,
|
|
1438
|
-
G(() => t.saveButton, (a) => ae.value = je(t.saveButton,
|
|
1439
|
-
const
|
|
1437
|
+
}), ae = C(je(t.saveButton, Ae.defaultSaveButton)), De = C(je(t.createButton, Ae.defaultCreateButton)), Et = C(je(t.createButton, Ae.defaultInlineCreateButton)), de = C(je(t.editModeButton, Ae.defaultEditModeButton)), lt = C(je(t.groupButton, Ae.defaultGroupButton));
|
|
1438
|
+
G(() => t.saveButton, (a) => ae.value = je(t.saveButton, Ae.defaultSaveButton)), G(() => t.createButton, (a) => De.value = je(t.createButton, Ae.defaultCreateButton)), G(() => t.editModeButton, (a) => de.value = je(t.editModeButton, Ae.defaultEditModeButton));
|
|
1439
|
+
const Te = C(!1);
|
|
1440
1440
|
G(h, (a) => n("update:loading", a)), G(I, (a) => n("page", a));
|
|
1441
|
-
const
|
|
1441
|
+
const $e = (a) => {
|
|
1442
1442
|
O.value = a;
|
|
1443
|
-
},
|
|
1443
|
+
}, xt = (a) => {
|
|
1444
1444
|
var u, E;
|
|
1445
1445
|
if (Array.isArray(a.data)) {
|
|
1446
1446
|
let L = a.data;
|
|
1447
|
-
if (typeof ((u = t.events) == null ? void 0 : u.parseResults) == "function" && (L = t.events.parseResults(L)), s.value = [...s.value, ...L], [
|
|
1447
|
+
if (typeof ((u = t.events) == null ? void 0 : u.parseResults) == "function" && (L = t.events.parseResults(L)), s.value = [...s.value, ...L], [Be.TimelineAsc, Be.TimelineDesc, Be.TimelineAscDesc].includes((E = t.paginator) == null ? void 0 : E.type)) {
|
|
1448
1448
|
const U = ml(s.value, t.paginator.dateKey);
|
|
1449
|
-
Y.value = U.oldest,
|
|
1449
|
+
Y.value = U.oldest, Oe.value = U.newest;
|
|
1450
1450
|
}
|
|
1451
1451
|
}
|
|
1452
|
-
h.value = !1, P.value = !0, F.value.store({ items: s.value }).turnStoredIntoOriginal(),
|
|
1453
|
-
|
|
1452
|
+
h.value = !1, P.value = !0, F.value.store({ items: s.value }).turnStoredIntoOriginal(), Te.value = !1, Pt(() => {
|
|
1453
|
+
Fe.value, n("read-response", a);
|
|
1454
1454
|
});
|
|
1455
|
-
},
|
|
1455
|
+
}, Vt = () => Pt(() => {
|
|
1456
1456
|
var L;
|
|
1457
1457
|
const a = t.paginator, u = a == null ? void 0 : a.type;
|
|
1458
1458
|
let E = !0;
|
|
1459
|
-
u && ([
|
|
1459
|
+
u && ([Be.LoadMore, Be.Infinite].includes(u) || [Be.TimelineDesc, Be.TimelineAsc, Be.TimelineAscDesc].includes(u) && ((L = t.paginator.timeline) != null && L.accumulative)) && (E = !1), E && s.value.splice(0, s.value.length), h.value = !0;
|
|
1460
1460
|
}), nt = () => {
|
|
1461
|
-
|
|
1461
|
+
ve.value.doRefresh();
|
|
1462
1462
|
}, _ = sl(12), ze = r(() => {
|
|
1463
1463
|
if (!t.hideEmptyColumns) return [];
|
|
1464
1464
|
let a = [];
|
|
@@ -1470,9 +1470,9 @@ const Fl = ["data-i", "data-draggable"], Pl = ["data-role", "data-i"], Ul = {
|
|
|
1470
1470
|
U[E] && (L = !0);
|
|
1471
1471
|
}), L || a.push(E);
|
|
1472
1472
|
}), a;
|
|
1473
|
-
}), le = r(() => T.value.filter((a) => !a.hidden)), ot = r(() => T.value.filter((a) => a.isForRowKey)),
|
|
1473
|
+
}), le = r(() => T.value.filter((a) => !a.hidden)), ot = r(() => T.value.filter((a) => a.isForRowKey)), pt = r(() => T.value.map((a) => a.key)), zt = r(() => {
|
|
1474
1474
|
let a = [];
|
|
1475
|
-
for (let u in l)
|
|
1475
|
+
for (let u in l) pt.value.indexOf(u) !== -1 && a.push(u);
|
|
1476
1476
|
return a;
|
|
1477
1477
|
}), Gt = r(() => {
|
|
1478
1478
|
let a = [];
|
|
@@ -1480,26 +1480,26 @@ const Fl = ["data-i", "data-draggable"], Pl = ["data-role", "data-i"], Ul = {
|
|
|
1480
1480
|
return a;
|
|
1481
1481
|
}), it = r(() => {
|
|
1482
1482
|
var a;
|
|
1483
|
-
return t.hiddenSave || h.value || !((a = ae.value) != null && a.resource || ae.value.type) ? !1 : B.value &&
|
|
1484
|
-
}), Ht = r(() =>
|
|
1483
|
+
return t.hiddenSave || h.value || !((a = ae.value) != null && a.resource || ae.value.type) ? !1 : B.value && Te.value ? !0 : B.value;
|
|
1484
|
+
}), Ht = r(() => wt.value && s.value.length >= t.requiredItemsForTopCreate || ht.value ? !0 : it.value || B.value && ee.value), Fe = r(() => {
|
|
1485
1485
|
var a, u;
|
|
1486
1486
|
return H.value, typeof ((a = ae.value) == null ? void 0 : a.disabled) == "function" ? ae.value.disabled({
|
|
1487
1487
|
value: s.value,
|
|
1488
1488
|
dataState: F.value
|
|
1489
|
-
}) : typeof ((u = ae.value) == null ? void 0 : u.disabled) == "boolean" ? ae.value.disabled : !
|
|
1490
|
-
}),
|
|
1489
|
+
}) : typeof ((u = ae.value) == null ? void 0 : u.disabled) == "boolean" ? ae.value.disabled : !Te.value;
|
|
1490
|
+
}), Rt = r(() => s.value.length), ut = r(() => {
|
|
1491
1491
|
var a;
|
|
1492
1492
|
return {
|
|
1493
1493
|
items: s.value,
|
|
1494
1494
|
...(a = ae.value) == null ? void 0 : a.resourceData
|
|
1495
1495
|
};
|
|
1496
|
-
}),
|
|
1496
|
+
}), Lt = r(() => t.titleTag === "" ? "h2" : t.titleTag), Nt = r(() => t.wrapContentTag === "" ? "div" : t.wrapContentTag), rt = r(() => Ta(t.title)), st = r(() => {
|
|
1497
1497
|
var a;
|
|
1498
1498
|
return (a = t.drag) == null ? void 0 : a.enabled;
|
|
1499
|
-
}), ee = r(() => O.value.includes(
|
|
1499
|
+
}), ee = r(() => O.value.includes(Le.Create)), ce = r(() => O.value.includes("read")), W = r(() => O.value.includes(Le.Update)), dt = r(() => O.value.includes(Le.Edit)), yt = r(() => O.value.includes(Le.InlineEdit)), bt = r(() => O.value.includes(Le.ModalCreate)), Re = r(() => O.value.includes(Le.InlineCreate)), Ge = r(() => O.value.includes(Le.InlineCreateEver)), ne = r(() => O.value.includes(Le.Drop)), ct = r(() => O.value.includes(Le.SwitchEditMode)), ht = r(() => !ct.value || !W.value && !ne.value || !W.value && ne.value ? !1 : !h.value), qt = r(() => {
|
|
1500
1500
|
var a;
|
|
1501
|
-
return (typeof ((a = t.paginator) == null ? void 0 : a.type) < "u" && [
|
|
1502
|
-
}), He = r(() => T.value.find((a) => a.isForAccordionHeader)), vt = r(() => T.value.find((a) => a.isCalendarDate)),
|
|
1501
|
+
return (typeof ((a = t.paginator) == null ? void 0 : a.type) < "u" && [Be.LoadMore, Be.Infinite].includes(t.paginator.type) || !h.value) && s.value.length > 0;
|
|
1502
|
+
}), He = r(() => T.value.find((a) => a.isForAccordionHeader)), vt = r(() => T.value.find((a) => a.isCalendarDate)), kt = r(() => T.value.find((a) => a.isCalendarGroup)), ft = (a, u) => typeof t.customItemSlotName == "function" ? t.customItemSlotName(a, u) : "", d = (a) => {
|
|
1503
1503
|
let u = a.target;
|
|
1504
1504
|
if (typeof u.dataset.column > "u")
|
|
1505
1505
|
do
|
|
@@ -1508,22 +1508,22 @@ const Fl = ["data-i", "data-draggable"], Pl = ["data-role", "data-i"], Ul = {
|
|
|
1508
1508
|
if (u.tagName === "TD" && (u = u.parentNode, u = u.dataset.i, typeof u < "u"))
|
|
1509
1509
|
return s.value[u];
|
|
1510
1510
|
}, m = () => {
|
|
1511
|
-
H.value =
|
|
1511
|
+
H.value = gl();
|
|
1512
1512
|
}, w = (a) => s.value[a], A = (a) => {
|
|
1513
1513
|
var u;
|
|
1514
1514
|
return (u = k.value) == null ? void 0 : u.querySelector(`[data-i="${a}"]`);
|
|
1515
1515
|
}, N = (a) => {
|
|
1516
|
-
a && a.sortable && (a.key === b.value && (D.value = D.value === tt.Asc ? tt.Desc : tt.Asc), b.value = a.key, s.value = s.value.sort((u, E) =>
|
|
1516
|
+
a && a.sortable && (a.key === b.value && (D.value = D.value === tt.Asc ? tt.Desc : tt.Asc), b.value = a.key, s.value = s.value.sort((u, E) => p.value(u, E, a, D.value)), m(), n("sort", {
|
|
1517
1517
|
sortBy: b.value,
|
|
1518
1518
|
sortDirection: D.value
|
|
1519
1519
|
}));
|
|
1520
1520
|
}, te = (a) => {
|
|
1521
1521
|
n("click", a);
|
|
1522
|
-
}, ie = (a) => {
|
|
1523
|
-
var E, L, U, j, Ye, Fe, Pe, Ue;
|
|
1524
|
-
let u = parseInt((j = (U = (L = (E = a == null ? void 0 : a.originalEvent) == null ? void 0 : E.toElement) == null ? void 0 : L.closest("tr")) == null ? void 0 : U.dataset) == null ? void 0 : j.i);
|
|
1525
|
-
return !(typeof ((Ye = t.drag) == null ? void 0 : Ye.isValid) == "function" && !((Fe = t.drag) != null && Fe.isValid(s.value[u])) || typeof ((Pe = t.drag) == null ? void 0 : Pe.isValid) == "boolean" && !((Ue = t.drag) != null && Ue.isValid));
|
|
1526
1522
|
}, ue = (a) => {
|
|
1523
|
+
var E, L, U, j, Pe, Ue, Ye, ie;
|
|
1524
|
+
let u = parseInt((j = (U = (L = (E = a == null ? void 0 : a.originalEvent) == null ? void 0 : E.toElement) == null ? void 0 : L.closest("tr")) == null ? void 0 : U.dataset) == null ? void 0 : j.i);
|
|
1525
|
+
return !(typeof ((Pe = t.drag) == null ? void 0 : Pe.isValid) == "function" && !((Ue = t.drag) != null && Ue.isValid(s.value[u])) || typeof ((Ye = t.drag) == null ? void 0 : Ye.isValid) == "boolean" && !((ie = t.drag) != null && ie.isValid));
|
|
1526
|
+
}, re = (a) => {
|
|
1527
1527
|
var u, E;
|
|
1528
1528
|
return typeof ((u = t.drag) == null ? void 0 : u.isDraggable) == "function" ? (E = t.drag) == null ? void 0 : E.isDraggable(a) : !0;
|
|
1529
1529
|
}, qe = () => {
|
|
@@ -1531,10 +1531,10 @@ const Fl = ["data-i", "data-draggable"], Pl = ["data-role", "data-i"], Ul = {
|
|
|
1531
1531
|
n("click-create");
|
|
1532
1532
|
return;
|
|
1533
1533
|
}
|
|
1534
|
-
if (
|
|
1534
|
+
if (Re.value || Ge.value) {
|
|
1535
1535
|
if (typeof t.newValueGenerator == "function") {
|
|
1536
1536
|
let a = t.newValueGenerator();
|
|
1537
|
-
if (typeof a == "object" ||
|
|
1537
|
+
if (typeof a == "object" || Ie.value !== Ne.Table) {
|
|
1538
1538
|
s.value.push(a);
|
|
1539
1539
|
return;
|
|
1540
1540
|
}
|
|
@@ -1555,7 +1555,7 @@ const Fl = ["data-i", "data-draggable"], Pl = ["data-role", "data-i"], Ul = {
|
|
|
1555
1555
|
n("error", u.httpStatus);
|
|
1556
1556
|
return;
|
|
1557
1557
|
}
|
|
1558
|
-
F.value.turnStoredIntoOriginal(),
|
|
1558
|
+
F.value.turnStoredIntoOriginal(), Te.value = !1, n("save", u);
|
|
1559
1559
|
}
|
|
1560
1560
|
}, na = (a, u, E) => {
|
|
1561
1561
|
if (E >= a.length) {
|
|
@@ -1567,7 +1567,7 @@ const Fl = ["data-i", "data-draggable"], Pl = ["data-role", "data-i"], Ul = {
|
|
|
1567
1567
|
na(s.value, a, a - 1), m();
|
|
1568
1568
|
}, Ma = (a) => {
|
|
1569
1569
|
na(s.value, a, a + 1), m();
|
|
1570
|
-
},
|
|
1570
|
+
}, St = (a) => {
|
|
1571
1571
|
s.value.splice(a, 1), m();
|
|
1572
1572
|
}, oa = () => {
|
|
1573
1573
|
var a;
|
|
@@ -1582,7 +1582,7 @@ const Fl = ["data-i", "data-draggable"], Pl = ["data-role", "data-i"], Ul = {
|
|
|
1582
1582
|
s.value.splice(E, 0, s.value.splice(u, 1)[0]), m(), n("drag-end", s.value[E]);
|
|
1583
1583
|
},
|
|
1584
1584
|
onMove: function(a, u) {
|
|
1585
|
-
return
|
|
1585
|
+
return ue(a);
|
|
1586
1586
|
}
|
|
1587
1587
|
});
|
|
1588
1588
|
}, Ot = (a, u, E = !1) => {
|
|
@@ -1591,10 +1591,10 @@ const Fl = ["data-i", "data-draggable"], Pl = ["data-role", "data-i"], Ul = {
|
|
|
1591
1591
|
let j = String(a[U.key]).toLowerCase();
|
|
1592
1592
|
j.length > 50 && (j = j.substring(0, 50)), j = dl(j, " ", "-"), L.push(j);
|
|
1593
1593
|
}), L.join("-");
|
|
1594
|
-
},
|
|
1594
|
+
}, Ct = r(() => typeof t.createEnabledValidator == "function" ? t.createEnabledValidator({ items: s.value }) : !0), wt = r(() => t.createButton === !1 ? !1 : Ge.value || ee.value && B.value || Re.value && B.value || bt.value && B.value), ia = r(() => t.createButton === !1 ? !1 : Ge.value || Re.value && B.value || bt.value && B.value), Oa = r(() => [Ne.Ol, Ne.Ul].includes(Ie.value)), Dt = (a, u) => typeof t.itemDisplayChecker == "function" ? t.itemDisplayChecker(a, u) : !0, $t = (a, u) => typeof t.itemContainerClass == "function" ? t.itemContainerClass(a, u) : t.itemContainerClass, ua = (a, u) => typeof t.itemContainerStyle == "function" ? t.itemContainerStyle(a, u) : t.itemContainerStyle, $a = (a, u) => He.value ? a[He.value.key] : "", Xe = r(() => typeof t.itemSlotComponent == "function" ? t.itemSlotComponent() : t.itemSlotComponent), Ft = r(() => typeof t.itemSlotData == "function" ? t.itemSlotData() : t.itemSlotData);
|
|
1595
1595
|
ta(() => {
|
|
1596
1596
|
var a;
|
|
1597
|
-
t.initialSorting && N($l(t.columns, b.value)), F.value.store({ items: s.value }).turnStoredIntoOriginal(),
|
|
1597
|
+
t.initialSorting && N($l(t.columns, b.value)), F.value.store({ items: s.value }).turnStoredIntoOriginal(), Te.value = !1, (a = t.drag) != null && a.enabled && Pt(() => {
|
|
1598
1598
|
Kt();
|
|
1599
1599
|
});
|
|
1600
1600
|
}), G(() => {
|
|
@@ -1610,16 +1610,16 @@ const Fl = ["data-i", "data-draggable"], Pl = ["data-role", "data-i"], Ul = {
|
|
|
1610
1610
|
}), G(() => t.editMode, (a) => B.value = a), G(() => t.columns, (a) => T.value = a, { deep: !0 }), G(() => t.modelValue, (a) => {
|
|
1611
1611
|
s.value = a;
|
|
1612
1612
|
}, { deep: !0 }), G(s, (a) => {
|
|
1613
|
-
F.value.increment({ items: a }),
|
|
1613
|
+
F.value.increment({ items: a }), Te.value = F.value.changed(), n("update:modelValue", a);
|
|
1614
1614
|
}, { deep: !0 }), i({
|
|
1615
1615
|
getItemByEvent: d,
|
|
1616
1616
|
getItemByIndex: w,
|
|
1617
1617
|
getRowByIndex: A,
|
|
1618
1618
|
doRefresh: nt,
|
|
1619
1619
|
doRemoveIndex: (a) => {
|
|
1620
|
-
s.value.splice(a, 1), m();
|
|
1620
|
+
v.value[a] === !0 && (v.value[a] = !1), s.value.splice(a, 1), m();
|
|
1621
1621
|
},
|
|
1622
|
-
getHtml: () =>
|
|
1622
|
+
getHtml: () => fe.value,
|
|
1623
1623
|
reRender: m,
|
|
1624
1624
|
turnStoredIntoOriginal: () => {
|
|
1625
1625
|
F.value.turnStoredIntoOriginal(), Pt(() => {
|
|
@@ -1627,7 +1627,7 @@ const Fl = ["data-i", "data-draggable"], Pl = ["data-role", "data-i"], Ul = {
|
|
|
1627
1627
|
});
|
|
1628
1628
|
}
|
|
1629
1629
|
});
|
|
1630
|
-
const ra = r(() => typeof
|
|
1630
|
+
const ra = r(() => typeof Ce.defaultEmptySlot < "u"), Fa = r(() => Ce.defaultEmptySlot), Pa = r(() => !t.drag || Object.keys(t.drag).length === 0 || !t.drag.enabled ? !1 : typeof t.drag.canRender > "u" ? !0 : t.drag.canRender), Ua = r(() => !t.drag || Object.keys(t.drag).length === 0 || !t.drag.enabled || typeof t.drag.isDisabled > "u" ? !1 : t.drag.isDisabled), ja = r(() => typeof t.header == "object" && Object.keys(t.header).length > 0), za = r(() => typeof t.filtersForm == "object" && Object.keys(t.filtersForm).length > 0), Ie = r(() => Array.isArray(t.switchableTypes) && t.switchableTypes.length > 0 ? ge.value : t.type), Ga = r(() => Array.isArray(t.switchableTypes) ? t.switchableTypes.length > 0 ? t.switchableTypes.includes(t.type) ? t.switchableTypes : [
|
|
1631
1631
|
t.type,
|
|
1632
1632
|
...t.switchableTypes
|
|
1633
1633
|
] : [] : []), Ha = r(() => {
|
|
@@ -1636,11 +1636,11 @@ const Fl = ["data-i", "data-draggable"], Pl = ["data-role", "data-i"], Ul = {
|
|
|
1636
1636
|
let E = t.switchableTypesButtons[u];
|
|
1637
1637
|
a.push({
|
|
1638
1638
|
...E,
|
|
1639
|
-
class: [E.class, u ===
|
|
1639
|
+
class: [E.class, u === Ie.value ? "is-current" : ""].join(" "),
|
|
1640
1640
|
events: {
|
|
1641
1641
|
click: (L) => {
|
|
1642
1642
|
var U, j;
|
|
1643
|
-
|
|
1643
|
+
ge.value = u, typeof ((U = t.switchableTypesButtons[u].events) == null ? void 0 : U.click) == "function" && t.switchableTypesButtons[u].events.click(L), typeof ((j = t.events) == null ? void 0 : j.viewChanged) == "function" && t.events.viewChanged(u);
|
|
1644
1644
|
}
|
|
1645
1645
|
}
|
|
1646
1646
|
});
|
|
@@ -1655,26 +1655,34 @@ const Fl = ["data-i", "data-draggable"], Pl = ["data-role", "data-i"], Ul = {
|
|
|
1655
1655
|
]
|
|
1656
1656
|
};
|
|
1657
1657
|
}), sa = (a, u) => typeof t.useItemSlot == "function" ? t.useItemSlot({ item: a, index: u }) === !0 : t.useItemSlot, Ka = r(() => {
|
|
1658
|
-
if (
|
|
1658
|
+
if (Ie.value !== Ne.Calendar || !vt.value || typeof vt.value > "u") return [];
|
|
1659
1659
|
let a = [], u = [];
|
|
1660
1660
|
return s.value.forEach((E) => {
|
|
1661
|
-
var
|
|
1662
|
-
let L = E[vt.value.key], U = fl("Y-m-d H:i:s", L), j;
|
|
1663
|
-
(
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1661
|
+
var Ye;
|
|
1662
|
+
let L = E[vt.value.key], U = fl("Y-m-d H:i:s", L, kt.value), j;
|
|
1663
|
+
(Ye = kt.value) != null && Ye.key && (j = E[kt.value.key]);
|
|
1664
|
+
const Pe = [U, j].join("-");
|
|
1665
|
+
let Ue = -1;
|
|
1666
|
+
if (u.includes(Pe))
|
|
1667
|
+
Ue = u.findIndex((ie) => ie === Pe);
|
|
1668
|
+
else {
|
|
1669
|
+
let ie = {};
|
|
1670
|
+
j && t.calendarGroups && typeof t.calendarGroups[j] == "object" && (ie = t.calendarGroups[j]);
|
|
1671
|
+
let y = `lkt-calendar-group--${j}`;
|
|
1672
|
+
ie.class ? ie.class = [
|
|
1673
|
+
ie.class,
|
|
1674
|
+
y
|
|
1675
|
+
].join(" ") : ie.class = y, Ue = u.length, u.push(Pe), a.push({
|
|
1676
|
+
date: L,
|
|
1677
|
+
data: {
|
|
1678
|
+
items: []
|
|
1679
|
+
},
|
|
1680
|
+
dot: {
|
|
1681
|
+
...ie
|
|
1682
|
+
}
|
|
1683
|
+
});
|
|
1684
|
+
}
|
|
1685
|
+
a[Ue].data.items.push(E);
|
|
1678
1686
|
}), a;
|
|
1679
1687
|
}), Xa = {
|
|
1680
1688
|
dayPicked: ((a) => {
|
|
@@ -1683,15 +1691,15 @@ const Fl = ["data-i", "data-draggable"], Pl = ["data-role", "data-i"], Ul = {
|
|
|
1683
1691
|
}),
|
|
1684
1692
|
visibleMonthChanged: ((a) => {
|
|
1685
1693
|
var u;
|
|
1686
|
-
typeof ((u = t.calendar.events) == null ? void 0 : u.visibleMonthChanged) == "function" && t.calendar.events.visibleMonthChanged(a),
|
|
1694
|
+
typeof ((u = t.calendar.events) == null ? void 0 : u.visibleMonthChanged) == "function" && t.calendar.events.visibleMonthChanged(a), At.value = a.visibleDate;
|
|
1687
1695
|
})
|
|
1688
1696
|
};
|
|
1689
1697
|
let da = null;
|
|
1690
|
-
G(
|
|
1698
|
+
G(Ve, () => {
|
|
1691
1699
|
clearTimeout(da), da = setTimeout(() => {
|
|
1692
1700
|
Z.value = {
|
|
1693
1701
|
...Z.value,
|
|
1694
|
-
...
|
|
1702
|
+
...Ve.value
|
|
1695
1703
|
};
|
|
1696
1704
|
}, 400);
|
|
1697
1705
|
}, { deep: !0 });
|
|
@@ -1702,18 +1710,18 @@ const Fl = ["data-i", "data-draggable"], Pl = ["data-role", "data-i"], Ul = {
|
|
|
1702
1710
|
});
|
|
1703
1711
|
};
|
|
1704
1712
|
return (a, u) => {
|
|
1705
|
-
const E =
|
|
1713
|
+
const E = se("lkt-header"), L = se("lkt-button"), U = se("lkt-form"), j = se("lkt-accordion"), Pe = se("lkt-calendar"), Ue = se("lkt-loader"), Ye = se("lkt-paginator");
|
|
1706
1714
|
return c(), S("section", {
|
|
1707
1715
|
ref_key: "element",
|
|
1708
|
-
ref:
|
|
1716
|
+
ref: fe,
|
|
1709
1717
|
class: "lkt-table-page",
|
|
1710
|
-
id: "lkt-table-page-" +
|
|
1718
|
+
id: "lkt-table-page-" + g(_)
|
|
1711
1719
|
}, [
|
|
1712
|
-
ja.value ? (c(), R(E,
|
|
1720
|
+
ja.value ? (c(), R(E, ye(K({ key: 0 }, qa.value)), null, 16)) : rt.value || g(l).title ? (c(), S("header", {
|
|
1713
1721
|
key: 1,
|
|
1714
1722
|
class: J(e.headerClass)
|
|
1715
1723
|
}, [
|
|
1716
|
-
rt.value ? (c(), R(
|
|
1724
|
+
rt.value ? (c(), R(Se(Lt.value), { key: 0 }, {
|
|
1717
1725
|
default: z(() => [
|
|
1718
1726
|
e.titleIcon ? (c(), S("i", {
|
|
1719
1727
|
key: 0,
|
|
@@ -1723,47 +1731,47 @@ const Fl = ["data-i", "data-draggable"], Pl = ["data-role", "data-i"], Ul = {
|
|
|
1723
1731
|
]),
|
|
1724
1732
|
_: 1
|
|
1725
1733
|
})) : x("", !0),
|
|
1726
|
-
|
|
1734
|
+
g(l).title ? $(a.$slots, "title", { key: 1 }) : x("", !0)
|
|
1727
1735
|
], 2)) : x("", !0),
|
|
1728
|
-
(c(), R(
|
|
1736
|
+
(c(), R(Se(Nt.value), {
|
|
1729
1737
|
class: J(["lkt-table-page-content-wrapper", e.wrapContentClass])
|
|
1730
1738
|
}, {
|
|
1731
1739
|
default: z(() => {
|
|
1732
|
-
var
|
|
1740
|
+
var ie;
|
|
1733
1741
|
return [
|
|
1734
|
-
We(
|
|
1742
|
+
We(ke("div", Zl, [
|
|
1735
1743
|
e.groupButton !== !1 ? (c(), R(L, K({
|
|
1736
1744
|
key: 0,
|
|
1737
1745
|
ref: "groupButton"
|
|
1738
1746
|
}, lt.value, { class: "lkt-item-crud-group-button" }), {
|
|
1739
1747
|
split: z(() => [
|
|
1740
|
-
|
|
1741
|
-
We(
|
|
1748
|
+
ke("div", _l, [
|
|
1749
|
+
We(he(L, K(de.value, {
|
|
1742
1750
|
checked: B.value,
|
|
1743
1751
|
"onUpdate:checked": u[0] || (u[0] = (y) => B.value = y)
|
|
1744
1752
|
}), null, 16, ["checked"]), [
|
|
1745
1753
|
[Je, ht.value]
|
|
1746
1754
|
])
|
|
1747
1755
|
]),
|
|
1748
|
-
|
|
1756
|
+
g(l)["prev-buttons-ever"] ? $(a.$slots, "prev-buttons-ever", {
|
|
1749
1757
|
key: 0,
|
|
1750
1758
|
canUpdate: W.value,
|
|
1751
1759
|
canDrop: ne.value,
|
|
1752
1760
|
perms: e.perms
|
|
1753
1761
|
}) : x("", !0),
|
|
1754
|
-
|
|
1762
|
+
g(l)["prev-buttons"] ? $(a.$slots, "prev-buttons", {
|
|
1755
1763
|
key: 1,
|
|
1756
1764
|
canUpdate: W.value,
|
|
1757
1765
|
canDrop: ne.value,
|
|
1758
1766
|
perms: e.perms
|
|
1759
1767
|
}) : x("", !0),
|
|
1760
|
-
We(
|
|
1768
|
+
We(he(L, K({
|
|
1761
1769
|
class: "lkt-table--save-button",
|
|
1762
1770
|
ref_key: "saveButtonRef",
|
|
1763
|
-
ref:
|
|
1771
|
+
ref: me
|
|
1764
1772
|
}, {
|
|
1765
1773
|
...ae.value,
|
|
1766
|
-
disabled:
|
|
1774
|
+
disabled: Fe.value,
|
|
1767
1775
|
resourceData: ut.value
|
|
1768
1776
|
}, {
|
|
1769
1777
|
onLoading: mt,
|
|
@@ -1780,46 +1788,46 @@ const Fl = ["data-i", "data-draggable"], Pl = ["data-role", "data-i"], Ul = {
|
|
|
1780
1788
|
})
|
|
1781
1789
|
]),
|
|
1782
1790
|
default: z(() => [
|
|
1783
|
-
|
|
1791
|
+
g(l)["button-save"] ? $(a.$slots, "button-save", {
|
|
1784
1792
|
key: 0,
|
|
1785
1793
|
items: s.value,
|
|
1786
1794
|
editMode: e.editMode,
|
|
1787
|
-
canUpdate:
|
|
1795
|
+
canUpdate: !Fe.value
|
|
1788
1796
|
}) : x("", !0)
|
|
1789
1797
|
]),
|
|
1790
1798
|
_: 3
|
|
1791
1799
|
}, 16), [
|
|
1792
1800
|
[Je, it.value]
|
|
1793
1801
|
]),
|
|
1794
|
-
|
|
1802
|
+
wt.value && s.value.length >= e.requiredItemsForTopCreate ? (c(), R(Tt, {
|
|
1795
1803
|
key: 2,
|
|
1796
|
-
config:
|
|
1797
|
-
disabled: !
|
|
1804
|
+
config: De.value,
|
|
1805
|
+
disabled: !Ct.value,
|
|
1798
1806
|
onClick: qe,
|
|
1799
1807
|
onAppend: Ke
|
|
1800
1808
|
}, null, 8, ["config", "disabled"])) : x("", !0)
|
|
1801
1809
|
]),
|
|
1802
1810
|
_: 3
|
|
1803
1811
|
}, 16)) : x("", !0),
|
|
1804
|
-
|
|
1812
|
+
g(l)["prev-buttons-ever"] ? $(a.$slots, "prev-buttons-ever", {
|
|
1805
1813
|
key: 1,
|
|
1806
1814
|
canUpdate: W.value,
|
|
1807
1815
|
canDrop: ne.value,
|
|
1808
1816
|
perms: e.perms
|
|
1809
1817
|
}) : x("", !0),
|
|
1810
|
-
|
|
1818
|
+
g(l)["prev-buttons"] ? $(a.$slots, "prev-buttons", {
|
|
1811
1819
|
key: 2,
|
|
1812
1820
|
canUpdate: W.value,
|
|
1813
1821
|
canDrop: ne.value,
|
|
1814
1822
|
perms: e.perms
|
|
1815
1823
|
}) : x("", !0),
|
|
1816
|
-
We(
|
|
1824
|
+
We(he(L, K({
|
|
1817
1825
|
class: "lkt-table--save-button",
|
|
1818
1826
|
ref_key: "saveButtonRef",
|
|
1819
|
-
ref:
|
|
1827
|
+
ref: me
|
|
1820
1828
|
}, {
|
|
1821
1829
|
...ae.value,
|
|
1822
|
-
disabled:
|
|
1830
|
+
disabled: Fe.value,
|
|
1823
1831
|
resourceData: ut.value
|
|
1824
1832
|
}, {
|
|
1825
1833
|
onLoading: mt,
|
|
@@ -1836,32 +1844,32 @@ const Fl = ["data-i", "data-draggable"], Pl = ["data-role", "data-i"], Ul = {
|
|
|
1836
1844
|
})
|
|
1837
1845
|
]),
|
|
1838
1846
|
default: z(() => [
|
|
1839
|
-
|
|
1847
|
+
g(l)["button-save"] ? $(a.$slots, "button-save", {
|
|
1840
1848
|
key: 0,
|
|
1841
1849
|
items: s.value,
|
|
1842
1850
|
editMode: e.editMode,
|
|
1843
|
-
canUpdate:
|
|
1851
|
+
canUpdate: !Fe.value
|
|
1844
1852
|
}) : x("", !0)
|
|
1845
1853
|
]),
|
|
1846
1854
|
_: 3
|
|
1847
1855
|
}, 16), [
|
|
1848
1856
|
[Je, it.value]
|
|
1849
1857
|
]),
|
|
1850
|
-
ia.value && s.value.length >= e.requiredItemsForTopCreate ? (c(), R(
|
|
1858
|
+
ia.value && s.value.length >= e.requiredItemsForTopCreate ? (c(), R(Tt, {
|
|
1851
1859
|
key: 3,
|
|
1852
|
-
config:
|
|
1853
|
-
disabled: !
|
|
1860
|
+
config: Et.value,
|
|
1861
|
+
disabled: !Ct.value,
|
|
1854
1862
|
onClick: qe,
|
|
1855
1863
|
onAppend: Ke
|
|
1856
|
-
}, null, 8, ["config", "disabled"])) :
|
|
1864
|
+
}, null, 8, ["config", "disabled"])) : wt.value && s.value.length >= e.requiredItemsForTopCreate ? (c(), R(Tt, {
|
|
1857
1865
|
key: 4,
|
|
1858
|
-
config:
|
|
1859
|
-
disabled: !
|
|
1866
|
+
config: De.value,
|
|
1867
|
+
disabled: !Ct.value,
|
|
1860
1868
|
onClick: qe,
|
|
1861
1869
|
onAppend: Ke
|
|
1862
1870
|
}, null, 8, ["config", "disabled"])) : x("", !0),
|
|
1863
|
-
|
|
1864
|
-
We(
|
|
1871
|
+
ke("div", en, [
|
|
1872
|
+
We(he(L, K(de.value, {
|
|
1865
1873
|
checked: B.value,
|
|
1866
1874
|
"onUpdate:checked": u[1] || (u[1] = (y) => B.value = y)
|
|
1867
1875
|
}), null, 16, ["checked"]), [
|
|
@@ -1871,10 +1879,10 @@ const Fl = ["data-i", "data-draggable"], Pl = ["data-role", "data-i"], Ul = {
|
|
|
1871
1879
|
], 512), [
|
|
1872
1880
|
[Je, Ht.value]
|
|
1873
1881
|
]),
|
|
1874
|
-
|
|
1882
|
+
g(l).buttons ? (c(), S("div", tn, [
|
|
1875
1883
|
$(a.$slots, "buttons")
|
|
1876
1884
|
])) : x("", !0),
|
|
1877
|
-
P.value &&
|
|
1885
|
+
P.value && g(l).filters ? (c(), S("div", an, [
|
|
1878
1886
|
$(a.$slots, "filters", {
|
|
1879
1887
|
items: s.value,
|
|
1880
1888
|
isLoading: h.value
|
|
@@ -1882,8 +1890,8 @@ const Fl = ["data-i", "data-draggable"], Pl = ["data-role", "data-i"], Ul = {
|
|
|
1882
1890
|
])) : x("", !0),
|
|
1883
1891
|
za.value ? (c(), R(U, K({
|
|
1884
1892
|
key: 2,
|
|
1885
|
-
modelValue:
|
|
1886
|
-
"onUpdate:modelValue": u[2] || (u[2] = (y) =>
|
|
1893
|
+
modelValue: Ve.value,
|
|
1894
|
+
"onUpdate:modelValue": u[2] || (u[2] = (y) => Ve.value = y),
|
|
1887
1895
|
editing: B.value,
|
|
1888
1896
|
"onUpdate:editing": u[3] || (u[3] = (y) => B.value = y),
|
|
1889
1897
|
perms: O.value,
|
|
@@ -1891,13 +1899,13 @@ const Fl = ["data-i", "data-draggable"], Pl = ["data-role", "data-i"], Ul = {
|
|
|
1891
1899
|
}, {
|
|
1892
1900
|
form: e.filtersForm
|
|
1893
1901
|
}), null, 16, ["modelValue", "editing", "perms"])) : x("", !0),
|
|
1894
|
-
We(
|
|
1895
|
-
|
|
1902
|
+
We(ke("div", ln, [
|
|
1903
|
+
Ie.value === g(Ne).Table ? (c(), S("table", nn, [
|
|
1896
1904
|
e.hideTableHeader ? x("", !0) : (c(), S("thead", on, [
|
|
1897
|
-
|
|
1905
|
+
ke("tr", null, [
|
|
1898
1906
|
st.value && B.value ? (c(), S("th", un)) : x("", !0),
|
|
1899
1907
|
e.addNavigation && B.value ? (c(), S("th", rn)) : x("", !0),
|
|
1900
|
-
(c(!0), S(q, null,
|
|
1908
|
+
(c(!0), S(q, null, be(le.value, (y) => (c(), S(q, null, [
|
|
1901
1909
|
ze.value.indexOf(y.key) === -1 ? (c(), R(Jl, {
|
|
1902
1910
|
key: 0,
|
|
1903
1911
|
column: y,
|
|
@@ -1910,26 +1918,26 @@ const Fl = ["data-i", "data-draggable"], Pl = ["data-role", "data-i"], Ul = {
|
|
|
1910
1918
|
], 64))), 256))
|
|
1911
1919
|
])
|
|
1912
1920
|
])),
|
|
1913
|
-
|
|
1921
|
+
ke("tbody", {
|
|
1914
1922
|
ref_key: "tableBody",
|
|
1915
1923
|
ref: k,
|
|
1916
|
-
id: "lkt-table-body-" +
|
|
1924
|
+
id: "lkt-table-body-" + g(_),
|
|
1917
1925
|
class: J(e.itemsContainerClass)
|
|
1918
1926
|
}, [
|
|
1919
|
-
(c(!0), S(q, null,
|
|
1927
|
+
(c(!0), S(q, null, be(s.value, (y, f) => We((c(), R(Yl, {
|
|
1920
1928
|
modelValue: s.value[f],
|
|
1921
1929
|
"onUpdate:modelValue": (V) => s.value[f] = V,
|
|
1922
1930
|
key: Ot(y, f),
|
|
1923
1931
|
i: f,
|
|
1924
|
-
"is-draggable":
|
|
1932
|
+
"is-draggable": re(y),
|
|
1925
1933
|
sortable: st.value,
|
|
1926
1934
|
"visible-columns": le.value,
|
|
1927
1935
|
"empty-columns": ze.value,
|
|
1928
1936
|
"add-navigation": e.addNavigation,
|
|
1929
|
-
"latest-row": f + 1 ===
|
|
1937
|
+
"latest-row": f + 1 === Rt.value,
|
|
1930
1938
|
"can-drop": ne.value && B.value,
|
|
1931
1939
|
"can-edit": dt.value && W.value && B.value,
|
|
1932
|
-
"can-read":
|
|
1940
|
+
"can-read": ce.value,
|
|
1933
1941
|
"can-create": ee.value,
|
|
1934
1942
|
"edit-mode-enabled": B.value,
|
|
1935
1943
|
"has-inline-edit-perm": yt.value,
|
|
@@ -1945,12 +1953,12 @@ const Fl = ["data-i", "data-draggable"], Pl = ["data-role", "data-i"], Ul = {
|
|
|
1945
1953
|
onClick: te,
|
|
1946
1954
|
onItemUp: Na,
|
|
1947
1955
|
onItemDown: Ma,
|
|
1948
|
-
onItemDrop:
|
|
1956
|
+
onItemDrop: St
|
|
1949
1957
|
}, ll({ _: 2 }, [
|
|
1950
|
-
|
|
1958
|
+
g(l)[`item-${f}`] && sa(a.row, f) ? {
|
|
1951
1959
|
name: `item-${f}`,
|
|
1952
1960
|
fn: z((V) => [
|
|
1953
|
-
$(a.$slots, `item-${f}`,
|
|
1961
|
+
$(a.$slots, `item-${f}`, ye({
|
|
1954
1962
|
[e.slotItemVar || ""]: V.item,
|
|
1955
1963
|
index: f,
|
|
1956
1964
|
editing: V.editing,
|
|
@@ -1963,10 +1971,10 @@ const Fl = ["data-i", "data-draggable"], Pl = ["data-role", "data-i"], Ul = {
|
|
|
1963
1971
|
}))
|
|
1964
1972
|
]),
|
|
1965
1973
|
key: "0"
|
|
1966
|
-
} :
|
|
1974
|
+
} : g(l).item && sa(a.row, f) ? {
|
|
1967
1975
|
name: "item",
|
|
1968
1976
|
fn: z((V) => [
|
|
1969
|
-
$(a.$slots, "item",
|
|
1977
|
+
$(a.$slots, "item", ye({
|
|
1970
1978
|
[e.slotItemVar || ""]: V.item,
|
|
1971
1979
|
index: f,
|
|
1972
1980
|
editing: V.editing,
|
|
@@ -1980,37 +1988,37 @@ const Fl = ["data-i", "data-draggable"], Pl = ["data-role", "data-i"], Ul = {
|
|
|
1980
1988
|
]),
|
|
1981
1989
|
key: "1"
|
|
1982
1990
|
} : void 0,
|
|
1983
|
-
|
|
1991
|
+
be(zt.value, (V) => ({
|
|
1984
1992
|
name: V,
|
|
1985
|
-
fn: z((
|
|
1986
|
-
$(a.$slots, V,
|
|
1987
|
-
[e.slotItemVar || ""]:
|
|
1988
|
-
value:
|
|
1989
|
-
column:
|
|
1993
|
+
fn: z((gt) => [
|
|
1994
|
+
$(a.$slots, V, ye({
|
|
1995
|
+
[e.slotItemVar || ""]: gt.item,
|
|
1996
|
+
value: gt.value,
|
|
1997
|
+
column: gt.column
|
|
1990
1998
|
}))
|
|
1991
1999
|
])
|
|
1992
2000
|
}))
|
|
1993
2001
|
]), 1032, ["modelValue", "onUpdate:modelValue", "i", "is-draggable", "sortable", "visible-columns", "empty-columns", "add-navigation", "latest-row", "can-drop", "can-edit", "can-read", "can-create", "edit-mode-enabled", "has-inline-edit-perm", "row-display-type", "render-drag", "disabled-drag", "is-loading", "item-container-class", "item-slot-component", "item-slot-data", "item-slot-events", "permissions"])), [
|
|
1994
|
-
[Je,
|
|
2002
|
+
[Je, Dt(s.value[f], f)]
|
|
1995
2003
|
])), 128))
|
|
1996
2004
|
], 10, sn)
|
|
1997
|
-
])) :
|
|
2005
|
+
])) : Ie.value === g(Ne).Item ? (c(), S("div", {
|
|
1998
2006
|
key: 1,
|
|
1999
2007
|
ref_key: "tableBody",
|
|
2000
2008
|
ref: k,
|
|
2001
|
-
id: "lkt-table-body-" +
|
|
2009
|
+
id: "lkt-table-body-" + g(_),
|
|
2002
2010
|
class: J(["lkt-table-items-container", e.itemsContainerClass])
|
|
2003
2011
|
}, [
|
|
2004
|
-
(c(!0), S(q, null,
|
|
2012
|
+
(c(!0), S(q, null, be(s.value, (y, f) => (c(), S(q, {
|
|
2005
2013
|
key: Ot(y, f)
|
|
2006
2014
|
}, [
|
|
2007
|
-
!e.skipTableItemsContainer &&
|
|
2015
|
+
!e.skipTableItemsContainer && Dt(y, f) ? (c(), S("div", {
|
|
2008
2016
|
key: 0,
|
|
2009
2017
|
class: J(["lkt-table-item", $t(y, f)]),
|
|
2010
2018
|
style: ma(ua(y, f)),
|
|
2011
2019
|
"data-i": f
|
|
2012
2020
|
}, [
|
|
2013
|
-
Xe.value ? (c(), R(
|
|
2021
|
+
Xe.value ? (c(), R(Se(Xe.value), K({
|
|
2014
2022
|
key: 0,
|
|
2015
2023
|
ref_for: !0
|
|
2016
2024
|
}, {
|
|
@@ -2020,19 +2028,19 @@ const Fl = ["data-i", "data-draggable"], Pl = ["data-role", "data-i"], Ul = {
|
|
|
2020
2028
|
perms: O.value,
|
|
2021
2029
|
data: Ft.value,
|
|
2022
2030
|
events: e.itemSlotEvents
|
|
2023
|
-
}), null, 16)) : $(a.$slots, "item",
|
|
2031
|
+
}), null, 16)) : $(a.$slots, "item", ye({
|
|
2024
2032
|
key: 1,
|
|
2025
2033
|
[e.slotItemVar || ""]: y,
|
|
2026
2034
|
index: f,
|
|
2027
2035
|
editing: B.value,
|
|
2028
2036
|
canCreate: ee.value,
|
|
2029
|
-
canRead:
|
|
2037
|
+
canRead: ce.value,
|
|
2030
2038
|
canUpdate: W.value,
|
|
2031
2039
|
canDrop: ne.value,
|
|
2032
2040
|
isLoading: h.value,
|
|
2033
|
-
doDrop: () =>
|
|
2041
|
+
doDrop: () => St(f)
|
|
2034
2042
|
}))
|
|
2035
|
-
], 14, cn)) :
|
|
2043
|
+
], 14, cn)) : Dt(y, f) ? $(a.$slots, "item", ye({
|
|
2036
2044
|
key: 1,
|
|
2037
2045
|
class: $t(y, f),
|
|
2038
2046
|
dataI: f,
|
|
@@ -2040,35 +2048,35 @@ const Fl = ["data-i", "data-draggable"], Pl = ["data-role", "data-i"], Ul = {
|
|
|
2040
2048
|
index: f,
|
|
2041
2049
|
editing: B.value,
|
|
2042
2050
|
canCreate: ee.value,
|
|
2043
|
-
canRead:
|
|
2051
|
+
canRead: ce.value,
|
|
2044
2052
|
canUpdate: W.value,
|
|
2045
2053
|
canDrop: ne.value,
|
|
2046
2054
|
isLoading: h.value,
|
|
2047
|
-
doDrop: () =>
|
|
2055
|
+
doDrop: () => St(f)
|
|
2048
2056
|
})) : x("", !0)
|
|
2049
2057
|
], 64))), 128))
|
|
2050
|
-
], 10, dn)) :
|
|
2058
|
+
], 10, dn)) : Ie.value === g(Ne).Accordion ? (c(), S("div", {
|
|
2051
2059
|
key: 2,
|
|
2052
2060
|
ref_key: "tableBody",
|
|
2053
2061
|
ref: k,
|
|
2054
|
-
id: "lkt-table-body-" +
|
|
2062
|
+
id: "lkt-table-body-" + g(_),
|
|
2055
2063
|
class: J(["lkt-table-items-container", e.itemsContainerClass])
|
|
2056
2064
|
}, [
|
|
2057
|
-
(c(!0), S(q, null,
|
|
2058
|
-
[
|
|
2065
|
+
(c(!0), S(q, null, be(s.value, (y, f) => (c(), S(q, null, [
|
|
2066
|
+
[g(xe).Auto, g(xe).PreferCustomItem].includes(e.rowDisplayType) && g(l)[ft(y, f)] ? $(a.$slots, ft(y, f), {
|
|
2059
2067
|
key: 0,
|
|
2060
2068
|
item: y,
|
|
2061
2069
|
index: f,
|
|
2062
2070
|
editing: B.value,
|
|
2063
2071
|
isLoading: h.value
|
|
2064
|
-
}) : [
|
|
2072
|
+
}) : [g(xe).Auto, g(xe).PreferCustomItem].includes(e.rowDisplayType) && g(l)[`item-${f}`] ? $(a.$slots, `item-${f}`, {
|
|
2065
2073
|
key: 1,
|
|
2066
2074
|
item: y,
|
|
2067
2075
|
index: f,
|
|
2068
2076
|
editing: B.value,
|
|
2069
2077
|
isLoading: h.value
|
|
2070
2078
|
}) : (c(), S(q, { key: 2 }, [
|
|
2071
|
-
|
|
2079
|
+
Dt(y, f) ? (c(), R(j, K({
|
|
2072
2080
|
modelValue: v.value[f],
|
|
2073
2081
|
"onUpdate:modelValue": (V) => v.value[f] = V,
|
|
2074
2082
|
class: ["lkt-table-item", $t(y, f)],
|
|
@@ -2081,7 +2089,7 @@ const Fl = ["data-i", "data-draggable"], Pl = ["data-role", "data-i"], Ul = {
|
|
|
2081
2089
|
"onUpdate:modelValue": (V) => Ya(V, f)
|
|
2082
2090
|
}), {
|
|
2083
2091
|
header: z(() => [
|
|
2084
|
-
|
|
2092
|
+
he(ea, {
|
|
2085
2093
|
modelValue: s.value[f],
|
|
2086
2094
|
"onUpdate:modelValue": (V) => s.value[f] = V,
|
|
2087
2095
|
i: f,
|
|
@@ -2092,10 +2100,10 @@ const Fl = ["data-i", "data-draggable"], Pl = ["data-role", "data-i"], Ul = {
|
|
|
2092
2100
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "i", "column", "columns", "edit-mode-enabled", "has-inline-edit-perm"])
|
|
2093
2101
|
]),
|
|
2094
2102
|
default: z(() => [
|
|
2095
|
-
(c(!0), S(q, null,
|
|
2096
|
-
var
|
|
2103
|
+
(c(!0), S(q, null, be(le.value, (V) => {
|
|
2104
|
+
var gt, fa;
|
|
2097
2105
|
return c(), S(q, null, [
|
|
2098
|
-
V.key !== ((
|
|
2106
|
+
V.key !== ((gt = He.value) == null ? void 0 : gt.key) && a.$slots[V.key] && g(Ra)(V, s.value[f]) ? $(a.$slots, V.key, {
|
|
2099
2107
|
key: 0,
|
|
2100
2108
|
value: s.value[f][V.key],
|
|
2101
2109
|
item: s.value[f],
|
|
@@ -2120,21 +2128,21 @@ const Fl = ["data-i", "data-draggable"], Pl = ["data-role", "data-i"], Ul = {
|
|
|
2120
2128
|
}, 1040, ["modelValue", "onUpdate:modelValue", "class", "data-i"])) : x("", !0)
|
|
2121
2129
|
], 64))
|
|
2122
2130
|
], 64))), 256))
|
|
2123
|
-
], 10, vn)) : Oa.value ? (c(), R(
|
|
2131
|
+
], 10, vn)) : Oa.value ? (c(), R(Se(Ie.value), {
|
|
2124
2132
|
key: 3,
|
|
2125
2133
|
class: J(["lkt-table-items-container", e.itemsContainerClass])
|
|
2126
2134
|
}, {
|
|
2127
2135
|
default: z(() => [
|
|
2128
|
-
(c(!0), S(q, null,
|
|
2136
|
+
(c(!0), S(q, null, be(s.value, (y, f) => (c(), S(q, {
|
|
2129
2137
|
key: Ot(y, f)
|
|
2130
2138
|
}, [
|
|
2131
|
-
|
|
2139
|
+
Dt(y, f) ? (c(), S("li", {
|
|
2132
2140
|
key: 0,
|
|
2133
2141
|
class: J(["lkt-table-item", $t(y, f)]),
|
|
2134
2142
|
"data-i": f,
|
|
2135
2143
|
style: ma(ua(y, f))
|
|
2136
2144
|
}, [
|
|
2137
|
-
Xe.value ? (c(), R(
|
|
2145
|
+
Xe.value ? (c(), R(Se(Xe.value), K({
|
|
2138
2146
|
key: 0,
|
|
2139
2147
|
ref_for: !0
|
|
2140
2148
|
}, {
|
|
@@ -2144,58 +2152,58 @@ const Fl = ["data-i", "data-draggable"], Pl = ["data-role", "data-i"], Ul = {
|
|
|
2144
2152
|
perms: O.value,
|
|
2145
2153
|
data: Ft.value,
|
|
2146
2154
|
events: e.itemSlotEvents
|
|
2147
|
-
}), null, 16)) : $(a.$slots, "item",
|
|
2155
|
+
}), null, 16)) : $(a.$slots, "item", ye({
|
|
2148
2156
|
key: 1,
|
|
2149
2157
|
[e.slotItemVar || ""]: y,
|
|
2150
2158
|
index: f,
|
|
2151
2159
|
editing: B.value,
|
|
2152
2160
|
canCreate: ee.value,
|
|
2153
|
-
canRead:
|
|
2161
|
+
canRead: ce.value,
|
|
2154
2162
|
canUpdate: W.value,
|
|
2155
2163
|
canDrop: ne.value,
|
|
2156
2164
|
isLoading: h.value,
|
|
2157
|
-
doDrop: () =>
|
|
2165
|
+
doDrop: () => St(f)
|
|
2158
2166
|
}))
|
|
2159
2167
|
], 14, fn)) : x("", !0)
|
|
2160
2168
|
], 64))), 128))
|
|
2161
2169
|
]),
|
|
2162
2170
|
_: 3
|
|
2163
|
-
}, 8, ["class"])) :
|
|
2171
|
+
}, 8, ["class"])) : Ie.value === g(Ne).Carousel ? (c(), S("div", {
|
|
2164
2172
|
key: 4,
|
|
2165
2173
|
ref_key: "tableBody",
|
|
2166
2174
|
ref: k,
|
|
2167
|
-
id: "lkt-table-body-" +
|
|
2175
|
+
id: "lkt-table-body-" + g(_),
|
|
2168
2176
|
class: J(["lkt-table-items-container", e.itemsContainerClass])
|
|
2169
2177
|
}, [
|
|
2170
|
-
|
|
2178
|
+
he(g(Al), K({
|
|
2171
2179
|
modelValue: pe.value,
|
|
2172
2180
|
"onUpdate:modelValue": u[5] || (u[5] = (y) => pe.value = y)
|
|
2173
2181
|
}, e.carousel, {
|
|
2174
|
-
"wrap-around": ((
|
|
2182
|
+
"wrap-around": ((ie = e.carousel) == null ? void 0 : ie.infinite) === !0
|
|
2175
2183
|
}), {
|
|
2176
2184
|
addons: z(() => [
|
|
2177
|
-
|
|
2178
|
-
|
|
2185
|
+
he(g(Vl)),
|
|
2186
|
+
he(g(Rl))
|
|
2179
2187
|
]),
|
|
2180
2188
|
default: z(() => [
|
|
2181
|
-
(c(!0), S(q, null,
|
|
2189
|
+
(c(!0), S(q, null, be(Gt.value, (y, f) => (c(), R(g(ka), {
|
|
2182
2190
|
key: y,
|
|
2183
2191
|
index: f
|
|
2184
2192
|
}, {
|
|
2185
2193
|
default: z(() => [
|
|
2186
|
-
|
|
2194
|
+
ke("div", gn, [
|
|
2187
2195
|
$(a.$slots, y)
|
|
2188
2196
|
])
|
|
2189
2197
|
]),
|
|
2190
2198
|
_: 2
|
|
2191
2199
|
}, 1032, ["index"]))), 128)),
|
|
2192
|
-
(c(!0), S(q, null,
|
|
2200
|
+
(c(!0), S(q, null, be(s.value, (y, f) => (c(), R(g(ka), {
|
|
2193
2201
|
key: a.slide,
|
|
2194
2202
|
index: f
|
|
2195
2203
|
}, {
|
|
2196
2204
|
default: z(() => [
|
|
2197
|
-
|
|
2198
|
-
Xe.value ? (c(), R(
|
|
2205
|
+
ke("div", pn, [
|
|
2206
|
+
Xe.value ? (c(), R(Se(Xe.value), K({
|
|
2199
2207
|
key: 0,
|
|
2200
2208
|
ref_for: !0
|
|
2201
2209
|
}, {
|
|
@@ -2205,17 +2213,17 @@ const Fl = ["data-i", "data-draggable"], Pl = ["data-role", "data-i"], Ul = {
|
|
|
2205
2213
|
perms: O.value,
|
|
2206
2214
|
data: Ft.value,
|
|
2207
2215
|
events: e.itemSlotEvents
|
|
2208
|
-
}), null, 16)) : $(a.$slots, "item",
|
|
2216
|
+
}), null, 16)) : $(a.$slots, "item", ye({
|
|
2209
2217
|
key: 1,
|
|
2210
2218
|
[e.slotItemVar || ""]: y,
|
|
2211
2219
|
index: f,
|
|
2212
2220
|
editing: B.value,
|
|
2213
2221
|
canCreate: ee.value,
|
|
2214
|
-
canRead:
|
|
2222
|
+
canRead: ce.value,
|
|
2215
2223
|
canUpdate: W.value,
|
|
2216
2224
|
canDrop: ne.value,
|
|
2217
2225
|
isLoading: h.value,
|
|
2218
|
-
doDrop: () =>
|
|
2226
|
+
doDrop: () => St(f)
|
|
2219
2227
|
}))
|
|
2220
2228
|
])
|
|
2221
2229
|
]),
|
|
@@ -2224,14 +2232,14 @@ const Fl = ["data-i", "data-draggable"], Pl = ["data-role", "data-i"], Ul = {
|
|
|
2224
2232
|
]),
|
|
2225
2233
|
_: 3
|
|
2226
2234
|
}, 16, ["modelValue", "wrap-around"])
|
|
2227
|
-
], 10, mn)) :
|
|
2235
|
+
], 10, mn)) : Ie.value === g(Ne).Calendar ? (c(), S("div", {
|
|
2228
2236
|
key: 5,
|
|
2229
2237
|
ref_key: "tableBody",
|
|
2230
2238
|
ref: k,
|
|
2231
|
-
id: "lkt-table-body-" +
|
|
2239
|
+
id: "lkt-table-body-" + g(_),
|
|
2232
2240
|
class: J(["lkt-table-items-container", e.itemsContainerClass])
|
|
2233
2241
|
}, [
|
|
2234
|
-
|
|
2242
|
+
he(Pe, ye(wa({
|
|
2235
2243
|
...e.calendar,
|
|
2236
2244
|
items: Ka.value,
|
|
2237
2245
|
events: Xa
|
|
@@ -2240,49 +2248,49 @@ const Fl = ["data-i", "data-draggable"], Pl = ["data-role", "data-i"], Ul = {
|
|
|
2240
2248
|
], 512), [
|
|
2241
2249
|
[Je, qt.value]
|
|
2242
2250
|
]),
|
|
2243
|
-
!h.value && s.value.length === 0 && (
|
|
2244
|
-
|
|
2251
|
+
!h.value && s.value.length === 0 && (g(l).empty || ra.value || e.noResultsText) ? (c(), S("div", bn, [
|
|
2252
|
+
g(l).empty ? $(a.$slots, "empty", { key: 0 }) : ra.value ? (c(), R(Se(Fa.value), {
|
|
2245
2253
|
key: 1,
|
|
2246
2254
|
message: e.noResultsText
|
|
2247
2255
|
}, null, 8, ["message"])) : e.noResultsText ? (c(), S(q, { key: 2 }, [
|
|
2248
2256
|
_e(et(e.noResultsText), 1)
|
|
2249
2257
|
], 64)) : x("", !0)
|
|
2250
2258
|
])) : x("", !0),
|
|
2251
|
-
h.value ? (c(), R(
|
|
2252
|
-
|
|
2253
|
-
ia.value && s.value.length >= e.requiredItemsForBottomCreate ? (c(), R(
|
|
2259
|
+
h.value ? (c(), R(Ue, { key: 4 })) : x("", !0),
|
|
2260
|
+
wt.value || g(l).bottomButtons ? (c(), S("div", hn, [
|
|
2261
|
+
ia.value && s.value.length >= e.requiredItemsForBottomCreate ? (c(), R(Tt, {
|
|
2254
2262
|
key: 0,
|
|
2255
|
-
config:
|
|
2256
|
-
disabled: !
|
|
2263
|
+
config: Et.value,
|
|
2264
|
+
disabled: !Ct.value,
|
|
2257
2265
|
onClick: qe,
|
|
2258
2266
|
onAppend: Ke
|
|
2259
|
-
}, null, 8, ["config", "disabled"])) :
|
|
2267
|
+
}, null, 8, ["config", "disabled"])) : wt.value && s.value.length >= e.requiredItemsForBottomCreate ? (c(), R(Tt, {
|
|
2260
2268
|
key: 1,
|
|
2261
|
-
config:
|
|
2262
|
-
disabled: !
|
|
2269
|
+
config: De.value,
|
|
2270
|
+
disabled: !Ct.value,
|
|
2263
2271
|
onClick: qe,
|
|
2264
2272
|
onAppend: Ke
|
|
2265
2273
|
}, null, 8, ["config", "disabled"])) : x("", !0),
|
|
2266
2274
|
$(a.$slots, "bottom-buttons")
|
|
2267
2275
|
])) : x("", !0),
|
|
2268
|
-
e.paginator && Object.keys(e.paginator).length > 0 ? (c(), R(
|
|
2276
|
+
e.paginator && Object.keys(e.paginator).length > 0 ? (c(), R(Ye, K({
|
|
2269
2277
|
key: 6,
|
|
2270
2278
|
ref_key: "paginatorRef",
|
|
2271
|
-
ref:
|
|
2279
|
+
ref: ve
|
|
2272
2280
|
}, {
|
|
2273
2281
|
...e.paginator,
|
|
2274
2282
|
resourceData: Z.value,
|
|
2275
2283
|
timelineOldestDate: Y.value,
|
|
2276
|
-
timelineNewestDate:
|
|
2277
|
-
timelineVisibleDate:
|
|
2284
|
+
timelineNewestDate: Oe.value,
|
|
2285
|
+
timelineVisibleDate: At.value
|
|
2278
2286
|
}, {
|
|
2279
2287
|
modelValue: I.value,
|
|
2280
2288
|
"onUpdate:modelValue": u[6] || (u[6] = (y) => I.value = y),
|
|
2281
|
-
onLoading:
|
|
2282
|
-
onPerms:
|
|
2283
|
-
onResponse:
|
|
2289
|
+
onLoading: Vt,
|
|
2290
|
+
onPerms: $e,
|
|
2291
|
+
onResponse: xt
|
|
2284
2292
|
}), null, 16, ["modelValue"])) : x("", !0),
|
|
2285
|
-
|
|
2293
|
+
g(l)["web-element-actions"] ? $(a.$slots, "web-element-actions", { key: 7 }) : x("", !0)
|
|
2286
2294
|
];
|
|
2287
2295
|
}),
|
|
2288
2296
|
_: 3
|
|
@@ -2294,8 +2302,8 @@ const Fl = ["data-i", "data-draggable"], Pl = ["data-role", "data-i"], Ul = {
|
|
|
2294
2302
|
install: (e) => {
|
|
2295
2303
|
e.component("lkt-table") === void 0 && e.component("lkt-table", kn);
|
|
2296
2304
|
}
|
|
2297
|
-
}, En = (e) => (
|
|
2298
|
-
|
|
2305
|
+
}, En = (e) => (Ce.navButtonSlot = e, !0), xn = (e) => (Ce.createButtonSlot = e, !0), Vn = (e) => {
|
|
2306
|
+
Ce.defaultEmptySlot = e;
|
|
2299
2307
|
};
|
|
2300
2308
|
export {
|
|
2301
2309
|
Nn as Column,
|