lkt-table 2.0.44 → 2.0.46
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.d.ts +8 -8
- package/dist/build.js +867 -855
- package/package.json +1 -1
- package/src/lib-components/LktTable.vue +49 -11
package/dist/build.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { __ as
|
|
3
|
-
import { ColumnType as
|
|
4
|
-
import { Column as
|
|
5
|
-
import { generateRandomString as
|
|
6
|
-
import { DataState as
|
|
7
|
-
import
|
|
8
|
-
import { date as
|
|
1
|
+
import { defineComponent as Se, computed as r, ref as B, shallowReactive as Wt, watch as U, watchEffect as Ht, onMounted as xt, onBeforeUnmount as ja, reactive as qt, provide as pa, h as Y, useId as za, inject as Ct, getCurrentInstance as Ga, onUnmounted as Ha, onUpdated as qa, cloneVNode as Ka, resolveComponent as he, createBlock as O, createElementBlock as C, unref as b, openBlock as p, mergeProps as X, withCtx as P, createTextVNode as et, toDisplayString as tt, normalizeProps as me, Fragment as H, useSlots as ma, normalizeClass as Z, createCommentVNode as R, createElementVNode as ye, createVNode as ge, resolveDynamicComponent as be, guardReactiveProps as ga, renderSlot as F, renderList as De, mergeDefaults as Xa, nextTick as Lt, withDirectives as Ye, vShow as We, createSlots as Ya, normalizeStyle as ra } from "vue";
|
|
2
|
+
import { __ as Wa } from "lkt-i18n";
|
|
3
|
+
import { ColumnType as Oe, FieldType as Ze, MultipleOptionsDisplay as Ja, SortDirection as at, Column as ya, extractPropValue as Qa, TableRowType as Te, extractI18nValue as ba, LktSettings as Me, ensureButtonConfig as Je, TablePermission as Re, PaginatorType as Qe, TableType as Le, getDefaultValues as Za, Table as xa, ButtonType as Kt } from "lkt-vue-kernel";
|
|
4
|
+
import { Column as Tl, createColumn as Il } from "lkt-vue-kernel";
|
|
5
|
+
import { generateRandomString as en, replaceAll as tn } from "lkt-string-tools";
|
|
6
|
+
import { DataState as an } from "lkt-data-state";
|
|
7
|
+
import nn from "sortablejs";
|
|
8
|
+
import { date as ln, findOldestAndNewestDateInObjects as on, time as rn } from "lkt-date-tools";
|
|
9
9
|
/**
|
|
10
10
|
* Vue 3 Carousel 0.14.0
|
|
11
11
|
* (c) 2025
|
|
12
12
|
* @license MIT
|
|
13
13
|
*/
|
|
14
|
-
const
|
|
14
|
+
const ha = ["viewport", "carousel"], Mt = {
|
|
15
15
|
"bottom-to-top": "btt",
|
|
16
16
|
"left-to-right": "ltr",
|
|
17
17
|
"right-to-left": "rtl",
|
|
18
18
|
"top-to-bottom": "ttb"
|
|
19
|
-
},
|
|
19
|
+
}, ka = [
|
|
20
20
|
"ltr",
|
|
21
21
|
"left-to-right",
|
|
22
22
|
"rtl",
|
|
@@ -25,7 +25,7 @@ const ma = ["viewport", "carousel"], Vt = {
|
|
|
25
25
|
"top-to-bottom",
|
|
26
26
|
"btt",
|
|
27
27
|
"bottom-to-top"
|
|
28
|
-
],
|
|
28
|
+
], un = {
|
|
29
29
|
ariaGallery: "Gallery",
|
|
30
30
|
ariaNavigateToPage: "Navigate to page {slideNumber}",
|
|
31
31
|
ariaNavigateToSlide: "Navigate to slide {slideNumber}",
|
|
@@ -36,7 +36,7 @@ const ma = ["viewport", "carousel"], Vt = {
|
|
|
36
36
|
iconArrowRight: "Arrow pointing to the right",
|
|
37
37
|
iconArrowUp: "Arrow pointing upwards",
|
|
38
38
|
itemXofY: "Item {currentSlide} of {slidesCount}"
|
|
39
|
-
},
|
|
39
|
+
}, Sa = ["slide", "fade"], Ca = [
|
|
40
40
|
"center",
|
|
41
41
|
"start",
|
|
42
42
|
"end",
|
|
@@ -44,13 +44,13 @@ const ma = ["viewport", "carousel"], Vt = {
|
|
|
44
44
|
"center-odd"
|
|
45
45
|
], G = {
|
|
46
46
|
autoplay: 0,
|
|
47
|
-
breakpointMode:
|
|
47
|
+
breakpointMode: ha[0],
|
|
48
48
|
breakpoints: void 0,
|
|
49
|
-
dir:
|
|
49
|
+
dir: ka[0],
|
|
50
50
|
enabled: !0,
|
|
51
51
|
gap: 0,
|
|
52
52
|
height: "auto",
|
|
53
|
-
i18n:
|
|
53
|
+
i18n: un,
|
|
54
54
|
ignoreAnimations: !1,
|
|
55
55
|
itemsToScroll: 1,
|
|
56
56
|
itemsToShow: 1,
|
|
@@ -58,13 +58,13 @@ const ma = ["viewport", "carousel"], Vt = {
|
|
|
58
58
|
mouseDrag: !0,
|
|
59
59
|
pauseAutoplayOnHover: !1,
|
|
60
60
|
preventExcessiveDragging: !1,
|
|
61
|
-
slideEffect:
|
|
62
|
-
snapAlign:
|
|
61
|
+
slideEffect: Sa[0],
|
|
62
|
+
snapAlign: Ca[0],
|
|
63
63
|
touchDrag: !0,
|
|
64
64
|
transition: 300,
|
|
65
65
|
wrapAround: !1
|
|
66
|
-
},
|
|
67
|
-
const i =
|
|
66
|
+
}, nt = Symbol("carousel"), sn = (a) => {
|
|
67
|
+
const i = Wt([]), o = (l) => {
|
|
68
68
|
l !== void 0 ? i.slice(l).forEach((n, t) => {
|
|
69
69
|
var y;
|
|
70
70
|
(y = n.exposed) === null || y === void 0 || y.setIndex(l + t);
|
|
@@ -90,59 +90,59 @@ const ma = ["viewport", "carousel"], Vt = {
|
|
|
90
90
|
}
|
|
91
91
|
};
|
|
92
92
|
};
|
|
93
|
-
function
|
|
93
|
+
function dn(a) {
|
|
94
94
|
return a.length === 0 ? 0 : a.reduce((o, l) => o + l, 0) / a.length;
|
|
95
95
|
}
|
|
96
|
-
function
|
|
96
|
+
function ua({ slides: a, position: i, toShow: o }) {
|
|
97
97
|
const l = [], n = i === "before", t = n ? -o : 0, y = n ? 0 : o;
|
|
98
98
|
if (a.length <= 0)
|
|
99
99
|
return l;
|
|
100
|
-
for (let
|
|
100
|
+
for (let S = t; S < y; S++) {
|
|
101
101
|
const s = {
|
|
102
|
-
index: n ?
|
|
102
|
+
index: n ? S : S + a.length,
|
|
103
103
|
isClone: !0,
|
|
104
104
|
position: i,
|
|
105
105
|
id: void 0,
|
|
106
106
|
// Make sure we don't duplicate the id which would be invalid html
|
|
107
|
-
key: `clone-${i}-${
|
|
108
|
-
}, v = a[(
|
|
109
|
-
|
|
107
|
+
key: `clone-${i}-${S}`
|
|
108
|
+
}, v = a[(S % a.length + a.length) % a.length].vnode, T = Ka(v, s);
|
|
109
|
+
T.el = null, l.push(T);
|
|
110
110
|
}
|
|
111
111
|
return l;
|
|
112
112
|
}
|
|
113
|
-
const
|
|
114
|
-
function
|
|
113
|
+
const cn = 'a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"])';
|
|
114
|
+
function sa(a) {
|
|
115
115
|
if (!a.el || !(a.el instanceof Element))
|
|
116
116
|
return;
|
|
117
|
-
const i = a.el.querySelectorAll(
|
|
117
|
+
const i = a.el.querySelectorAll(cn);
|
|
118
118
|
for (const o of i)
|
|
119
119
|
o instanceof HTMLElement && !o.hasAttribute("disabled") && o.getAttribute("aria-hidden") !== "true" && o.setAttribute("tabindex", "-1");
|
|
120
120
|
}
|
|
121
|
-
function
|
|
121
|
+
function vn(a, i) {
|
|
122
122
|
return Object.keys(a).filter((o) => !i.includes(o)).reduce((o, l) => (o[l] = a[l], o), {});
|
|
123
123
|
}
|
|
124
|
-
function
|
|
124
|
+
function fn(a) {
|
|
125
125
|
const { isVertical: i, isReversed: o, dragged: l, effectiveSlideSize: n } = a, t = i ? l.y : l.x;
|
|
126
126
|
if (t === 0)
|
|
127
127
|
return 0;
|
|
128
128
|
const y = Math.round(t / n);
|
|
129
129
|
return o ? y : -y;
|
|
130
130
|
}
|
|
131
|
-
function
|
|
131
|
+
function Ne({ val: a, max: i, min: o }) {
|
|
132
132
|
return i < o ? a : Math.min(Math.max(a, isNaN(o) ? a : o), isNaN(i) ? a : i);
|
|
133
133
|
}
|
|
134
|
-
function
|
|
134
|
+
function pn(a) {
|
|
135
135
|
const { transform: i } = window.getComputedStyle(a);
|
|
136
136
|
return i.split(/[(,)]/).slice(1, -1).map((o) => parseFloat(o));
|
|
137
137
|
}
|
|
138
|
-
function
|
|
138
|
+
function mn(a) {
|
|
139
139
|
let i = 1, o = 1;
|
|
140
140
|
return a.forEach((l) => {
|
|
141
|
-
const n =
|
|
141
|
+
const n = pn(l);
|
|
142
142
|
n.length === 6 && (i /= n[0], o /= n[3]);
|
|
143
143
|
}), { widthMultiplier: i, heightMultiplier: o };
|
|
144
144
|
}
|
|
145
|
-
function
|
|
145
|
+
function gn(a, i) {
|
|
146
146
|
switch (a) {
|
|
147
147
|
case "start":
|
|
148
148
|
return 0;
|
|
@@ -157,7 +157,7 @@ function dn(a, i) {
|
|
|
157
157
|
return 0;
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
|
-
function
|
|
160
|
+
function yn(a, i, o) {
|
|
161
161
|
switch (a) {
|
|
162
162
|
case "start":
|
|
163
163
|
return 0;
|
|
@@ -172,13 +172,13 @@ function cn(a, i, o) {
|
|
|
172
172
|
return 0;
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
|
-
function
|
|
176
|
-
return l !== void 0 ?
|
|
175
|
+
function Jt({ slideSize: a, viewportSize: i, align: o, itemsToShow: l }) {
|
|
176
|
+
return l !== void 0 ? gn(o, l) : a !== void 0 && i !== void 0 ? yn(o, a, i) : 0;
|
|
177
177
|
}
|
|
178
|
-
function
|
|
178
|
+
function wa(a = "", i = {}) {
|
|
179
179
|
return Object.entries(i).reduce((o, [l, n]) => o.replace(`{${l}}`, String(n)), a);
|
|
180
180
|
}
|
|
181
|
-
function
|
|
181
|
+
function Da({ val: a, max: i, min: o = 0 }) {
|
|
182
182
|
const l = i - o + 1;
|
|
183
183
|
return ((a - o) % l + l) % l + o;
|
|
184
184
|
}
|
|
@@ -188,35 +188,35 @@ function Xt(a, i = 0) {
|
|
|
188
188
|
if (o)
|
|
189
189
|
return;
|
|
190
190
|
o = !0;
|
|
191
|
-
const
|
|
191
|
+
const S = () => {
|
|
192
192
|
n = requestAnimationFrame((D) => {
|
|
193
|
-
D - l > i ? (l = D, a(...y), o = !1) :
|
|
193
|
+
D - l > i ? (l = D, a(...y), o = !1) : S();
|
|
194
194
|
});
|
|
195
195
|
};
|
|
196
|
-
|
|
196
|
+
S();
|
|
197
197
|
}
|
|
198
198
|
return t.cancel = () => {
|
|
199
199
|
n && (cancelAnimationFrame(n), n = null, o = !1);
|
|
200
200
|
}, t;
|
|
201
201
|
}
|
|
202
|
-
function
|
|
202
|
+
function Nt(a, i = "px") {
|
|
203
203
|
if (!(a == null || a === ""))
|
|
204
204
|
return typeof a == "number" || parseFloat(a).toString() === a ? `${a}${i}` : a;
|
|
205
205
|
}
|
|
206
|
-
const
|
|
206
|
+
const bn = Se({
|
|
207
207
|
name: "CarouselAria",
|
|
208
208
|
setup() {
|
|
209
|
-
const a =
|
|
210
|
-
return a ? () =>
|
|
209
|
+
const a = Ct(nt);
|
|
210
|
+
return a ? () => Y("div", {
|
|
211
211
|
class: ["carousel__liveregion", "carousel__sr-only"],
|
|
212
212
|
"aria-live": "polite",
|
|
213
213
|
"aria-atomic": "true"
|
|
214
|
-
},
|
|
214
|
+
}, wa(a.config.i18n.itemXofY, {
|
|
215
215
|
currentSlide: a.currentSlide + 1,
|
|
216
216
|
slidesCount: a.slidesCount
|
|
217
217
|
})) : () => "";
|
|
218
218
|
}
|
|
219
|
-
}),
|
|
219
|
+
}), hn = {
|
|
220
220
|
// time to auto advance slides in ms
|
|
221
221
|
autoplay: {
|
|
222
222
|
default: G.autoplay,
|
|
@@ -231,7 +231,7 @@ const vn = he({
|
|
|
231
231
|
breakpointMode: {
|
|
232
232
|
default: G.breakpointMode,
|
|
233
233
|
validator(a) {
|
|
234
|
-
return
|
|
234
|
+
return ha.includes(a);
|
|
235
235
|
}
|
|
236
236
|
},
|
|
237
237
|
// enable/disable the carousel component
|
|
@@ -298,14 +298,14 @@ const vn = he({
|
|
|
298
298
|
snapAlign: {
|
|
299
299
|
default: G.snapAlign,
|
|
300
300
|
validator(a) {
|
|
301
|
-
return
|
|
301
|
+
return Ca.includes(a);
|
|
302
302
|
}
|
|
303
303
|
},
|
|
304
304
|
slideEffect: {
|
|
305
305
|
type: String,
|
|
306
306
|
default: G.slideEffect,
|
|
307
307
|
validator(a) {
|
|
308
|
-
return
|
|
308
|
+
return Sa.includes(a);
|
|
309
309
|
}
|
|
310
310
|
},
|
|
311
311
|
// sliding transition time in ms
|
|
@@ -318,9 +318,9 @@ const vn = he({
|
|
|
318
318
|
type: String,
|
|
319
319
|
default: G.dir,
|
|
320
320
|
validator(a, i) {
|
|
321
|
-
if (!
|
|
321
|
+
if (!ka.includes(a))
|
|
322
322
|
return !1;
|
|
323
|
-
const o = a in
|
|
323
|
+
const o = a in Mt ? Mt[a] : a;
|
|
324
324
|
return ["ttb", "btt"].includes(o) && (!i.height || i.height === "auto") && console.warn(`[vue3-carousel warn]: The dir "${a}" is not supported with height "auto".`), !0;
|
|
325
325
|
}
|
|
326
326
|
},
|
|
@@ -329,9 +329,9 @@ const vn = he({
|
|
|
329
329
|
default: G.wrapAround,
|
|
330
330
|
type: Boolean
|
|
331
331
|
}
|
|
332
|
-
},
|
|
332
|
+
}, kn = Se({
|
|
333
333
|
name: "VueCarousel",
|
|
334
|
-
props:
|
|
334
|
+
props: hn,
|
|
335
335
|
emits: [
|
|
336
336
|
"before-init",
|
|
337
337
|
"drag",
|
|
@@ -345,373 +345,373 @@ const vn = he({
|
|
|
345
345
|
],
|
|
346
346
|
setup(a, { slots: i, emit: o, expose: l }) {
|
|
347
347
|
var n;
|
|
348
|
-
const t =
|
|
348
|
+
const t = sn(o), y = t.getSlides(), S = r(() => y.length), D = B(null), s = B(null), v = B(0), T = r(() => Object.assign(Object.assign(Object.assign({}, G), vn(a, ["breakpoints", "modelValue"])), { i18n: Object.assign(Object.assign({}, G.i18n), a.i18n) })), f = Wt(Object.assign({}, T.value)), g = B((n = a.modelValue) !== null && n !== void 0 ? n : 0), V = B(g.value);
|
|
349
349
|
U(g, (d) => V.value = d);
|
|
350
|
-
const A =
|
|
351
|
-
let te = null, c = null,
|
|
350
|
+
const A = B(0), lt = r(() => Math.ceil((S.value - 1) / 2)), ie = r(() => S.value - 1), re = r(() => 0);
|
|
351
|
+
let te = null, c = null, I = null;
|
|
352
352
|
const ue = r(() => v.value + f.gap), j = r(() => {
|
|
353
353
|
const d = f.dir || "ltr";
|
|
354
|
-
return d in
|
|
355
|
-
}),
|
|
356
|
-
function
|
|
354
|
+
return d in Mt ? Mt[d] : d;
|
|
355
|
+
}), ne = r(() => ["rtl", "btt"].includes(j.value)), se = r(() => ["ttb", "btt"].includes(j.value)), de = r(() => f.itemsToShow === "auto"), q = r(() => se.value ? "height" : "width");
|
|
356
|
+
function $e() {
|
|
357
357
|
var d;
|
|
358
|
-
if (!
|
|
358
|
+
if (!it.value)
|
|
359
359
|
return;
|
|
360
|
-
const
|
|
361
|
-
|
|
360
|
+
const k = (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(a.breakpoints || {}).map((L) => Number(L)).sort((L, K) => +K - +L), E = {};
|
|
361
|
+
w.some((L) => k >= L ? (Object.assign(E, a.breakpoints[L]), E.i18n && Object.assign(E.i18n, T.value.i18n, a.breakpoints[L].i18n), !0) : !1), Object.assign(f, T.value, E);
|
|
362
362
|
}
|
|
363
|
-
const
|
|
364
|
-
|
|
365
|
-
}),
|
|
366
|
-
function
|
|
367
|
-
|
|
368
|
-
var
|
|
369
|
-
const L = (
|
|
363
|
+
const x = Xt(() => {
|
|
364
|
+
$e(), ot(), Ce();
|
|
365
|
+
}), Ie = Wt(/* @__PURE__ */ new Set()), W = B([]);
|
|
366
|
+
function Ot({ widthMultiplier: d, heightMultiplier: k }) {
|
|
367
|
+
W.value = y.map((w) => {
|
|
368
|
+
var E;
|
|
369
|
+
const L = (E = w.exposed) === null || E === void 0 ? void 0 : E.getBoundingRect();
|
|
370
370
|
return {
|
|
371
371
|
width: L.width * d,
|
|
372
|
-
height: L.height *
|
|
372
|
+
height: L.height * k
|
|
373
373
|
};
|
|
374
374
|
});
|
|
375
375
|
}
|
|
376
|
-
const
|
|
376
|
+
const oe = B({
|
|
377
377
|
width: 0,
|
|
378
378
|
height: 0
|
|
379
379
|
});
|
|
380
|
-
function
|
|
381
|
-
var
|
|
382
|
-
const
|
|
383
|
-
|
|
384
|
-
width:
|
|
385
|
-
height:
|
|
380
|
+
function $t({ widthMultiplier: d, heightMultiplier: k }) {
|
|
381
|
+
var w;
|
|
382
|
+
const E = ((w = s.value) === null || w === void 0 ? void 0 : w.getBoundingClientRect()) || { width: 0, height: 0 };
|
|
383
|
+
oe.value = {
|
|
384
|
+
width: E.width * d,
|
|
385
|
+
height: E.height * k
|
|
386
386
|
};
|
|
387
387
|
}
|
|
388
|
-
function
|
|
388
|
+
function Ce() {
|
|
389
389
|
if (!s.value)
|
|
390
390
|
return;
|
|
391
|
-
const d =
|
|
392
|
-
if (
|
|
393
|
-
v.value =
|
|
391
|
+
const d = mn(Ie);
|
|
392
|
+
if ($t(d), Ot(d), de.value)
|
|
393
|
+
v.value = dn(W.value.map((k) => k[q.value]));
|
|
394
394
|
else {
|
|
395
|
-
const
|
|
396
|
-
v.value = (
|
|
395
|
+
const k = Number(f.itemsToShow), w = (k - 1) * f.gap;
|
|
396
|
+
v.value = (oe.value[q.value] - w) / k;
|
|
397
397
|
}
|
|
398
398
|
}
|
|
399
|
-
function
|
|
400
|
-
!f.wrapAround &&
|
|
399
|
+
function ot() {
|
|
400
|
+
!f.wrapAround && S.value > 0 && (g.value = Ne({
|
|
401
401
|
val: g.value,
|
|
402
402
|
max: ie.value,
|
|
403
403
|
min: re.value
|
|
404
|
-
})),
|
|
404
|
+
})), de.value || (f.itemsToShow = Ne({
|
|
405
405
|
val: Number(f.itemsToShow),
|
|
406
|
-
max:
|
|
406
|
+
max: S.value,
|
|
407
407
|
min: 1
|
|
408
408
|
}));
|
|
409
409
|
}
|
|
410
|
-
const
|
|
411
|
-
|
|
412
|
-
|
|
410
|
+
const ct = r(() => typeof a.ignoreAnimations == "string" ? a.ignoreAnimations.split(",") : Array.isArray(a.ignoreAnimations) ? a.ignoreAnimations : a.ignoreAnimations ? !1 : []);
|
|
411
|
+
Ht(() => ot()), Ht(() => {
|
|
412
|
+
Ce();
|
|
413
413
|
});
|
|
414
|
-
let
|
|
415
|
-
const
|
|
416
|
-
const
|
|
417
|
-
if (!(!(
|
|
418
|
-
const
|
|
419
|
-
|
|
420
|
-
|
|
414
|
+
let ee;
|
|
415
|
+
const vt = (d) => {
|
|
416
|
+
const k = d.target;
|
|
417
|
+
if (!(!(k != null && k.contains(D.value)) || Array.isArray(ct.value) && ct.value.includes(d.animationName)) && (Ie.add(k), !ee)) {
|
|
418
|
+
const w = () => {
|
|
419
|
+
ee = requestAnimationFrame(() => {
|
|
420
|
+
Ce(), w();
|
|
421
421
|
});
|
|
422
422
|
};
|
|
423
|
-
|
|
423
|
+
w();
|
|
424
424
|
}
|
|
425
|
-
},
|
|
426
|
-
const
|
|
427
|
-
|
|
428
|
-
},
|
|
429
|
-
typeof document < "u" &&
|
|
430
|
-
|
|
431
|
-
}),
|
|
432
|
-
|
|
433
|
-
}),
|
|
434
|
-
|
|
425
|
+
}, Fe = (d) => {
|
|
426
|
+
const k = d.target;
|
|
427
|
+
k && Ie.delete(k), ee && Ie.size === 0 && (cancelAnimationFrame(ee), Ce());
|
|
428
|
+
}, it = B(!1);
|
|
429
|
+
typeof document < "u" && Ht(() => {
|
|
430
|
+
it.value && ct.value !== !1 ? (document.addEventListener("animationstart", vt), document.addEventListener("animationend", Fe)) : (document.removeEventListener("animationstart", vt), document.removeEventListener("animationend", Fe));
|
|
431
|
+
}), xt(() => {
|
|
432
|
+
it.value = !0, $e(), _e(), D.value && (I = new ResizeObserver(x), I.observe(D.value)), o("init");
|
|
433
|
+
}), ja(() => {
|
|
434
|
+
it.value = !1, t.cleanup(), c && clearTimeout(c), ee && cancelAnimationFrame(ee), te && clearInterval(te), I && (I.disconnect(), I = null), typeof document < "u" && wt(), D.value && (D.value.removeEventListener("transitionend", Ce), D.value.removeEventListener("animationiteration", Ce));
|
|
435
435
|
});
|
|
436
|
-
let
|
|
437
|
-
const
|
|
438
|
-
|
|
439
|
-
},
|
|
440
|
-
|
|
441
|
-
},
|
|
436
|
+
let Be = !1;
|
|
437
|
+
const rt = { x: 0, y: 0 }, ce = qt({ x: 0, y: 0 }), Pe = B(!1), ft = B(!1), He = () => {
|
|
438
|
+
Pe.value = !0;
|
|
439
|
+
}, Ft = () => {
|
|
440
|
+
Pe.value = !1;
|
|
441
|
+
}, pt = Xt((d) => {
|
|
442
442
|
if (!d.ctrlKey)
|
|
443
443
|
switch (d.key) {
|
|
444
444
|
case "ArrowLeft":
|
|
445
445
|
case "ArrowUp":
|
|
446
|
-
se.value === d.key.endsWith("Up") && (
|
|
446
|
+
se.value === d.key.endsWith("Up") && (ne.value ? je(!0) : qe(!0));
|
|
447
447
|
break;
|
|
448
448
|
case "ArrowRight":
|
|
449
449
|
case "ArrowDown":
|
|
450
|
-
se.value === d.key.endsWith("Down") && (
|
|
450
|
+
se.value === d.key.endsWith("Down") && (ne.value ? qe(!0) : je(!0));
|
|
451
451
|
break;
|
|
452
452
|
}
|
|
453
|
-
}, 200),
|
|
454
|
-
document.addEventListener("keydown",
|
|
455
|
-
},
|
|
456
|
-
document.removeEventListener("keydown",
|
|
453
|
+
}, 200), Pt = () => {
|
|
454
|
+
document.addEventListener("keydown", pt);
|
|
455
|
+
}, wt = () => {
|
|
456
|
+
document.removeEventListener("keydown", pt);
|
|
457
457
|
};
|
|
458
|
-
function
|
|
459
|
-
const
|
|
460
|
-
if (["INPUT", "TEXTAREA", "SELECT"].includes(
|
|
458
|
+
function ut(d) {
|
|
459
|
+
const k = d.target.tagName;
|
|
460
|
+
if (["INPUT", "TEXTAREA", "SELECT"].includes(k) || fe.value || (Be = d.type === "touchstart", !Be && (d.preventDefault(), d.button !== 0)))
|
|
461
461
|
return;
|
|
462
|
-
|
|
463
|
-
const
|
|
464
|
-
document.addEventListener(
|
|
462
|
+
rt.x = "touches" in d ? d.touches[0].clientX : d.clientX, rt.y = "touches" in d ? d.touches[0].clientY : d.clientY;
|
|
463
|
+
const w = Be ? "touchmove" : "mousemove", E = Be ? "touchend" : "mouseup";
|
|
464
|
+
document.addEventListener(w, st, { passive: !1 }), document.addEventListener(E, ve, { passive: !0 });
|
|
465
465
|
}
|
|
466
|
-
const
|
|
467
|
-
|
|
468
|
-
const
|
|
469
|
-
|
|
470
|
-
const
|
|
466
|
+
const st = Xt((d) => {
|
|
467
|
+
ft.value = !0;
|
|
468
|
+
const k = "touches" in d ? d.touches[0].clientX : d.clientX, w = "touches" in d ? d.touches[0].clientY : d.clientY;
|
|
469
|
+
ce.x = k - rt.x, ce.y = w - rt.y;
|
|
470
|
+
const E = fn({
|
|
471
471
|
isVertical: se.value,
|
|
472
|
-
isReversed:
|
|
473
|
-
dragged:
|
|
472
|
+
isReversed: ne.value,
|
|
473
|
+
dragged: ce,
|
|
474
474
|
effectiveSlideSize: ue.value
|
|
475
475
|
});
|
|
476
|
-
V.value = f.wrapAround ? g.value +
|
|
477
|
-
val: g.value +
|
|
476
|
+
V.value = f.wrapAround ? g.value + E : Ne({
|
|
477
|
+
val: g.value + E,
|
|
478
478
|
max: ie.value,
|
|
479
479
|
min: re.value
|
|
480
|
-
}), o("drag", { deltaX:
|
|
480
|
+
}), o("drag", { deltaX: ce.x, deltaY: ce.y });
|
|
481
481
|
});
|
|
482
|
-
function
|
|
483
|
-
if (
|
|
484
|
-
const
|
|
485
|
-
|
|
482
|
+
function ve() {
|
|
483
|
+
if (st.cancel(), V.value !== g.value && !Be) {
|
|
484
|
+
const w = (E) => {
|
|
485
|
+
E.preventDefault(), window.removeEventListener("click", w);
|
|
486
486
|
};
|
|
487
|
-
window.addEventListener("click",
|
|
487
|
+
window.addEventListener("click", w);
|
|
488
488
|
}
|
|
489
|
-
|
|
490
|
-
const d =
|
|
491
|
-
document.removeEventListener(d,
|
|
489
|
+
Ue(V.value), ce.x = 0, ce.y = 0, ft.value = !1;
|
|
490
|
+
const d = Be ? "touchmove" : "mousemove", k = Be ? "touchend" : "mouseup";
|
|
491
|
+
document.removeEventListener(d, st), document.removeEventListener(k, ve);
|
|
492
492
|
}
|
|
493
|
-
function
|
|
493
|
+
function _e() {
|
|
494
494
|
!f.autoplay || f.autoplay <= 0 || (te = setInterval(() => {
|
|
495
|
-
f.pauseAutoplayOnHover &&
|
|
495
|
+
f.pauseAutoplayOnHover && Pe.value || je();
|
|
496
496
|
}, f.autoplay));
|
|
497
497
|
}
|
|
498
|
-
function
|
|
498
|
+
function ae() {
|
|
499
499
|
te && (clearInterval(te), te = null);
|
|
500
500
|
}
|
|
501
|
-
function
|
|
502
|
-
|
|
501
|
+
function mt() {
|
|
502
|
+
ae(), _e();
|
|
503
503
|
}
|
|
504
|
-
const
|
|
505
|
-
function
|
|
506
|
-
if (!
|
|
504
|
+
const fe = B(!1);
|
|
505
|
+
function Ue(d, k = !1) {
|
|
506
|
+
if (!k && fe.value)
|
|
507
507
|
return;
|
|
508
|
-
let
|
|
509
|
-
A.value = g.value, f.wrapAround ?
|
|
510
|
-
val:
|
|
508
|
+
let w = d, E = d;
|
|
509
|
+
A.value = g.value, f.wrapAround ? E = Da({
|
|
510
|
+
val: w,
|
|
511
511
|
max: ie.value,
|
|
512
512
|
min: re.value
|
|
513
|
-
}) :
|
|
514
|
-
val:
|
|
513
|
+
}) : w = Ne({
|
|
514
|
+
val: w,
|
|
515
515
|
max: ie.value,
|
|
516
516
|
min: re.value
|
|
517
517
|
}), o("slide-start", {
|
|
518
518
|
slidingToIndex: d,
|
|
519
519
|
currentSlideIndex: g.value,
|
|
520
520
|
prevSlideIndex: A.value,
|
|
521
|
-
slidesCount:
|
|
522
|
-
}),
|
|
523
|
-
f.wrapAround &&
|
|
521
|
+
slidesCount: S.value
|
|
522
|
+
}), ae(), fe.value = !0, g.value = w, E !== w && Dt.pause(), o("update:modelValue", E), c = setTimeout(() => {
|
|
523
|
+
f.wrapAround && E !== w && (Dt.resume(), g.value = E, o("loop", {
|
|
524
524
|
currentSlideIndex: g.value,
|
|
525
525
|
slidingToIndex: d
|
|
526
526
|
})), o("slide-end", {
|
|
527
527
|
currentSlideIndex: g.value,
|
|
528
528
|
prevSlideIndex: A.value,
|
|
529
|
-
slidesCount:
|
|
530
|
-
}),
|
|
529
|
+
slidesCount: S.value
|
|
530
|
+
}), fe.value = !1, mt();
|
|
531
531
|
}, f.transition);
|
|
532
532
|
}
|
|
533
533
|
function je(d = !1) {
|
|
534
|
-
|
|
534
|
+
Ue(g.value + f.itemsToScroll, d);
|
|
535
535
|
}
|
|
536
|
-
function
|
|
537
|
-
|
|
536
|
+
function qe(d = !1) {
|
|
537
|
+
Ue(g.value - f.itemsToScroll, d);
|
|
538
538
|
}
|
|
539
|
-
function
|
|
540
|
-
|
|
539
|
+
function le() {
|
|
540
|
+
$e(), ot(), Ce(), mt();
|
|
541
541
|
}
|
|
542
|
-
U(() => [
|
|
543
|
-
const
|
|
544
|
-
d !== g.value &&
|
|
542
|
+
U(() => [T.value, a.breakpoints], () => $e(), { deep: !0 }), U(() => a.autoplay, () => mt());
|
|
543
|
+
const Dt = U(() => a.modelValue, (d) => {
|
|
544
|
+
d !== g.value && Ue(Number(d), !0);
|
|
545
545
|
});
|
|
546
546
|
o("before-init");
|
|
547
|
-
const
|
|
547
|
+
const Ee = r(() => {
|
|
548
548
|
if (!f.wrapAround)
|
|
549
549
|
return { before: 0, after: 0 };
|
|
550
|
-
if (
|
|
550
|
+
if (de.value)
|
|
551
551
|
return { before: y.length, after: y.length };
|
|
552
|
-
const d = Number(f.itemsToShow),
|
|
552
|
+
const d = Number(f.itemsToShow), k = Math.ceil(d + (f.itemsToScroll - 1)), w = k - V.value, E = k - (S.value - (V.value + 1));
|
|
553
553
|
return {
|
|
554
|
-
before: Math.max(0,
|
|
555
|
-
after: Math.max(0,
|
|
554
|
+
before: Math.max(0, w),
|
|
555
|
+
after: Math.max(0, E)
|
|
556
556
|
};
|
|
557
|
-
}),
|
|
557
|
+
}), gt = r(() => Ee.value.before ? de.value ? W.value.slice(-1 * Ee.value.before).reduce((d, k) => d + k[q.value] + f.gap, 0) * -1 : Ee.value.before * ue.value * -1 : 0), Ae = r(() => {
|
|
558
558
|
var d;
|
|
559
|
-
if (
|
|
560
|
-
const
|
|
561
|
-
return
|
|
562
|
-
slideSize: (d =
|
|
563
|
-
viewportSize:
|
|
559
|
+
if (de.value) {
|
|
560
|
+
const k = (g.value % y.length + y.length) % y.length;
|
|
561
|
+
return Jt({
|
|
562
|
+
slideSize: (d = W.value[k]) === null || d === void 0 ? void 0 : d[q.value],
|
|
563
|
+
viewportSize: oe.value[q.value],
|
|
564
564
|
align: f.snapAlign
|
|
565
565
|
});
|
|
566
566
|
}
|
|
567
|
-
return
|
|
567
|
+
return Jt({
|
|
568
568
|
align: f.snapAlign,
|
|
569
569
|
itemsToShow: +f.itemsToShow
|
|
570
570
|
});
|
|
571
|
-
}),
|
|
571
|
+
}), ze = r(() => {
|
|
572
572
|
let d = 0;
|
|
573
|
-
if (
|
|
574
|
-
if (g.value < 0 ? d =
|
|
575
|
-
const
|
|
576
|
-
d =
|
|
573
|
+
if (de.value) {
|
|
574
|
+
if (g.value < 0 ? d = W.value.slice(g.value).reduce((k, w) => k + w[q.value] + f.gap, 0) * -1 : d = W.value.slice(0, g.value).reduce((k, w) => k + w[q.value] + f.gap, 0), d -= Ae.value, !f.wrapAround) {
|
|
575
|
+
const k = W.value.reduce((w, E) => w + E[q.value] + f.gap, 0) - oe.value[q.value] - f.gap;
|
|
576
|
+
d = Ne({
|
|
577
577
|
val: d,
|
|
578
|
-
max:
|
|
578
|
+
max: k,
|
|
579
579
|
min: 0
|
|
580
580
|
});
|
|
581
581
|
}
|
|
582
582
|
} else {
|
|
583
|
-
let
|
|
584
|
-
f.wrapAround || (
|
|
585
|
-
val:
|
|
586
|
-
max:
|
|
583
|
+
let k = g.value - Ae.value;
|
|
584
|
+
f.wrapAround || (k = Ne({
|
|
585
|
+
val: k,
|
|
586
|
+
max: S.value - +f.itemsToShow,
|
|
587
587
|
min: 0
|
|
588
|
-
})), d =
|
|
588
|
+
})), d = k * ue.value;
|
|
589
589
|
}
|
|
590
|
-
return d * (
|
|
591
|
-
}),
|
|
592
|
-
var d,
|
|
593
|
-
if (!
|
|
594
|
-
const L = g.value -
|
|
590
|
+
return d * (ne.value ? 1 : -1);
|
|
591
|
+
}), Tt = r(() => {
|
|
592
|
+
var d, k;
|
|
593
|
+
if (!de.value) {
|
|
594
|
+
const L = g.value - Ae.value;
|
|
595
595
|
return f.wrapAround ? {
|
|
596
596
|
min: Math.floor(L),
|
|
597
597
|
max: Math.ceil(L + Number(f.itemsToShow) - 1)
|
|
598
598
|
} : {
|
|
599
|
-
min: Math.floor(
|
|
599
|
+
min: Math.floor(Ne({
|
|
600
600
|
val: L,
|
|
601
|
-
max:
|
|
601
|
+
max: S.value - Number(f.itemsToShow),
|
|
602
602
|
min: 0
|
|
603
603
|
})),
|
|
604
|
-
max: Math.ceil(
|
|
604
|
+
max: Math.ceil(Ne({
|
|
605
605
|
val: L + Number(f.itemsToShow) - 1,
|
|
606
|
-
max:
|
|
606
|
+
max: S.value - 1,
|
|
607
607
|
min: 0
|
|
608
608
|
}))
|
|
609
609
|
};
|
|
610
610
|
}
|
|
611
|
-
let
|
|
611
|
+
let w = 0;
|
|
612
612
|
{
|
|
613
|
-
let L = 0,
|
|
614
|
-
const
|
|
615
|
-
for (; L <=
|
|
616
|
-
const
|
|
617
|
-
L += ((d =
|
|
613
|
+
let L = 0, K = 0 - Ee.value.before;
|
|
614
|
+
const J = Math.abs(ze.value + gt.value);
|
|
615
|
+
for (; L <= J; ) {
|
|
616
|
+
const Q = (K % y.length + y.length) % y.length;
|
|
617
|
+
L += ((d = W.value[Q]) === null || d === void 0 ? void 0 : d[q.value]) + f.gap, K++;
|
|
618
618
|
}
|
|
619
|
-
|
|
619
|
+
w = K - 1;
|
|
620
620
|
}
|
|
621
|
-
let
|
|
621
|
+
let E = 0;
|
|
622
622
|
{
|
|
623
|
-
let L =
|
|
624
|
-
for (L < 0 ?
|
|
625
|
-
const
|
|
626
|
-
|
|
623
|
+
let L = w, K = 0;
|
|
624
|
+
for (L < 0 ? K = W.value.slice(0, L).reduce((J, Q) => J + Q[q.value] + f.gap, 0) - Math.abs(ze.value + gt.value) : K = W.value.slice(0, L).reduce((J, Q) => J + Q[q.value] + f.gap, 0) - Math.abs(ze.value); K < oe.value[q.value]; ) {
|
|
625
|
+
const J = (L % y.length + y.length) % y.length;
|
|
626
|
+
K += ((k = W.value[J]) === null || k === void 0 ? void 0 : k[q.value]) + f.gap, L++;
|
|
627
627
|
}
|
|
628
|
-
|
|
628
|
+
E = L - 1;
|
|
629
629
|
}
|
|
630
630
|
return {
|
|
631
|
-
min: Math.floor(
|
|
632
|
-
max: Math.ceil(
|
|
631
|
+
min: Math.floor(w),
|
|
632
|
+
max: Math.ceil(E)
|
|
633
633
|
};
|
|
634
|
-
}),
|
|
634
|
+
}), It = r(() => {
|
|
635
635
|
if (f.slideEffect === "fade")
|
|
636
636
|
return;
|
|
637
|
-
const d = se.value ? "Y" : "X",
|
|
638
|
-
let
|
|
637
|
+
const d = se.value ? "Y" : "X", k = se.value ? ce.y : ce.x;
|
|
638
|
+
let w = ze.value + k;
|
|
639
639
|
if (!f.wrapAround && f.preventExcessiveDragging) {
|
|
640
|
-
let
|
|
641
|
-
|
|
642
|
-
const L =
|
|
643
|
-
|
|
644
|
-
val:
|
|
640
|
+
let E = 0;
|
|
641
|
+
de.value ? E = W.value.reduce((J, Q) => J + Q[q.value], 0) : E = (S.value - Number(f.itemsToShow)) * ue.value;
|
|
642
|
+
const L = ne.value ? 0 : -1 * E, K = ne.value ? E : 0;
|
|
643
|
+
w = Ne({
|
|
644
|
+
val: w,
|
|
645
645
|
min: L,
|
|
646
|
-
max:
|
|
646
|
+
max: K
|
|
647
647
|
});
|
|
648
648
|
}
|
|
649
|
-
return `translate${d}(${
|
|
650
|
-
}),
|
|
651
|
-
"--vc-transition-duration":
|
|
652
|
-
"--vc-slide-gap":
|
|
653
|
-
"--vc-carousel-height":
|
|
654
|
-
"--vc-cloned-offset":
|
|
655
|
-
})),
|
|
649
|
+
return `translate${d}(${w}px)`;
|
|
650
|
+
}), _t = r(() => ({
|
|
651
|
+
"--vc-transition-duration": fe.value ? Nt(f.transition, "ms") : void 0,
|
|
652
|
+
"--vc-slide-gap": Nt(f.gap),
|
|
653
|
+
"--vc-carousel-height": Nt(f.height),
|
|
654
|
+
"--vc-cloned-offset": Nt(gt.value)
|
|
655
|
+
})), pe = { slideTo: Ue, next: je, prev: qe }, Ut = qt({
|
|
656
656
|
activeSlide: V,
|
|
657
657
|
config: f,
|
|
658
658
|
currentSlide: g,
|
|
659
|
-
isSliding:
|
|
659
|
+
isSliding: fe,
|
|
660
660
|
isVertical: se,
|
|
661
661
|
maxSlide: ie,
|
|
662
662
|
minSlide: re,
|
|
663
|
-
nav:
|
|
663
|
+
nav: pe,
|
|
664
664
|
normalizedDir: j,
|
|
665
665
|
slideRegistry: t,
|
|
666
666
|
slideSize: v,
|
|
667
667
|
slides: y,
|
|
668
|
-
slidesCount:
|
|
668
|
+
slidesCount: S,
|
|
669
669
|
viewport: s,
|
|
670
|
-
visibleRange:
|
|
670
|
+
visibleRange: Tt
|
|
671
671
|
});
|
|
672
|
-
|
|
673
|
-
const
|
|
672
|
+
pa(nt, Ut);
|
|
673
|
+
const yt = qt({
|
|
674
674
|
config: f,
|
|
675
675
|
currentSlide: g,
|
|
676
676
|
maxSlide: ie,
|
|
677
|
-
middleSlide:
|
|
677
|
+
middleSlide: lt,
|
|
678
678
|
minSlide: re,
|
|
679
679
|
slideSize: v,
|
|
680
|
-
slidesCount:
|
|
680
|
+
slidesCount: S
|
|
681
681
|
});
|
|
682
682
|
return l({
|
|
683
|
-
data:
|
|
684
|
-
nav:
|
|
683
|
+
data: yt,
|
|
684
|
+
nav: pe,
|
|
685
685
|
next: je,
|
|
686
|
-
prev:
|
|
687
|
-
restartCarousel:
|
|
688
|
-
slideTo:
|
|
689
|
-
updateBreakpointsConfig:
|
|
690
|
-
updateSlideSize:
|
|
691
|
-
updateSlidesData:
|
|
686
|
+
prev: qe,
|
|
687
|
+
restartCarousel: le,
|
|
688
|
+
slideTo: Ue,
|
|
689
|
+
updateBreakpointsConfig: $e,
|
|
690
|
+
updateSlideSize: Ce,
|
|
691
|
+
updateSlidesData: ot
|
|
692
692
|
}), () => {
|
|
693
693
|
var d;
|
|
694
|
-
const
|
|
694
|
+
const k = i.default || i.slides, w = (k == null ? void 0 : k(yt)) || [], { before: E, after: L } = Ee.value, K = ua({
|
|
695
695
|
slides: y,
|
|
696
696
|
position: "before",
|
|
697
|
-
toShow:
|
|
698
|
-
}),
|
|
697
|
+
toShow: E
|
|
698
|
+
}), J = ua({
|
|
699
699
|
slides: y,
|
|
700
700
|
position: "after",
|
|
701
701
|
toShow: L
|
|
702
|
-
}),
|
|
703
|
-
if (!f.enabled || !
|
|
704
|
-
return
|
|
702
|
+
}), Q = [...K, ...w, ...J];
|
|
703
|
+
if (!f.enabled || !Q.length)
|
|
704
|
+
return Y("section", {
|
|
705
705
|
ref: D,
|
|
706
706
|
class: ["carousel", "is-disabled"]
|
|
707
|
-
},
|
|
708
|
-
const
|
|
707
|
+
}, Q);
|
|
708
|
+
const Bt = ((d = i.addons) === null || d === void 0 ? void 0 : d.call(i, yt)) || [], Et = Y("ol", {
|
|
709
709
|
class: "carousel__track",
|
|
710
|
-
style: { transform:
|
|
711
|
-
onMousedownCapture: f.mouseDrag ?
|
|
712
|
-
onTouchstartPassiveCapture: f.touchDrag ?
|
|
713
|
-
},
|
|
714
|
-
return
|
|
710
|
+
style: { transform: It.value },
|
|
711
|
+
onMousedownCapture: f.mouseDrag ? ut : null,
|
|
712
|
+
onTouchstartPassiveCapture: f.touchDrag ? ut : null
|
|
713
|
+
}, Q), jt = Y("div", { class: "carousel__viewport", ref: s }, Et);
|
|
714
|
+
return Y("section", {
|
|
715
715
|
ref: D,
|
|
716
716
|
class: [
|
|
717
717
|
"carousel",
|
|
@@ -719,56 +719,56 @@ const vn = he({
|
|
|
719
719
|
`is-effect-${f.slideEffect}`,
|
|
720
720
|
{
|
|
721
721
|
"is-vertical": se.value,
|
|
722
|
-
"is-sliding":
|
|
723
|
-
"is-dragging":
|
|
724
|
-
"is-hover":
|
|
722
|
+
"is-sliding": fe.value,
|
|
723
|
+
"is-dragging": ft.value,
|
|
724
|
+
"is-hover": Pe.value
|
|
725
725
|
}
|
|
726
726
|
],
|
|
727
727
|
dir: j.value,
|
|
728
|
-
style:
|
|
728
|
+
style: _t.value,
|
|
729
729
|
"aria-label": f.i18n.ariaGallery,
|
|
730
730
|
tabindex: "0",
|
|
731
|
-
onFocus:
|
|
732
|
-
onBlur:
|
|
733
|
-
onMouseenter:
|
|
734
|
-
onMouseleave:
|
|
735
|
-
}, [
|
|
731
|
+
onFocus: Pt,
|
|
732
|
+
onBlur: wt,
|
|
733
|
+
onMouseenter: He,
|
|
734
|
+
onMouseleave: Ft
|
|
735
|
+
}, [jt, Bt, Y(bn)]);
|
|
736
736
|
};
|
|
737
737
|
}
|
|
738
738
|
});
|
|
739
|
-
var
|
|
739
|
+
var Qt;
|
|
740
740
|
(function(a) {
|
|
741
741
|
a.arrowDown = "arrowDown", a.arrowLeft = "arrowLeft", a.arrowRight = "arrowRight", a.arrowUp = "arrowUp";
|
|
742
|
-
})(
|
|
743
|
-
const
|
|
742
|
+
})(Qt || (Qt = {}));
|
|
743
|
+
const da = (a) => `icon${a.charAt(0).toUpperCase() + a.slice(1)}`, Sn = {
|
|
744
744
|
arrowDown: "M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z",
|
|
745
745
|
arrowLeft: "M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z",
|
|
746
746
|
arrowRight: "M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z",
|
|
747
747
|
arrowUp: "M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"
|
|
748
748
|
};
|
|
749
|
-
function
|
|
750
|
-
return a in
|
|
749
|
+
function Cn(a) {
|
|
750
|
+
return a in Qt;
|
|
751
751
|
}
|
|
752
|
-
const
|
|
752
|
+
const ca = (a) => a && Cn(a), va = Se({
|
|
753
753
|
props: {
|
|
754
754
|
name: {
|
|
755
755
|
type: String,
|
|
756
756
|
required: !0,
|
|
757
|
-
validator:
|
|
757
|
+
validator: ca
|
|
758
758
|
},
|
|
759
759
|
title: {
|
|
760
760
|
type: String,
|
|
761
|
-
default: (a) => a.name ? G.i18n[
|
|
761
|
+
default: (a) => a.name ? G.i18n[da(a.name)] : ""
|
|
762
762
|
}
|
|
763
763
|
},
|
|
764
764
|
setup(a) {
|
|
765
|
-
const i =
|
|
765
|
+
const i = Ct(nt, null);
|
|
766
766
|
return () => {
|
|
767
767
|
const o = a.name;
|
|
768
|
-
if (!o || !
|
|
768
|
+
if (!o || !ca(o))
|
|
769
769
|
return;
|
|
770
|
-
const l =
|
|
771
|
-
return
|
|
770
|
+
const l = Sn[o], n = Y("path", { d: l }), t = (i == null ? void 0 : i.config.i18n[da(o)]) || a.title, y = Y("title", t);
|
|
771
|
+
return Y("svg", {
|
|
772
772
|
class: "carousel__icon",
|
|
773
773
|
viewBox: "0 0 24 24",
|
|
774
774
|
role: "img",
|
|
@@ -776,11 +776,11 @@ const ra = (a) => a && gn(a), ua = he({
|
|
|
776
776
|
}, [y, n]);
|
|
777
777
|
};
|
|
778
778
|
}
|
|
779
|
-
}),
|
|
779
|
+
}), wn = Se({
|
|
780
780
|
name: "CarouselNavigation",
|
|
781
781
|
inheritAttrs: !1,
|
|
782
782
|
setup(a, { slots: i, attrs: o }) {
|
|
783
|
-
const l =
|
|
783
|
+
const l = Ct(nt);
|
|
784
784
|
if (!l)
|
|
785
785
|
return () => "";
|
|
786
786
|
const { next: n, prev: t } = i, y = () => ({
|
|
@@ -788,26 +788,26 @@ const ra = (a) => a && gn(a), ua = he({
|
|
|
788
788
|
ltr: "arrowLeft",
|
|
789
789
|
rtl: "arrowRight",
|
|
790
790
|
ttb: "arrowUp"
|
|
791
|
-
})[l.normalizedDir],
|
|
791
|
+
})[l.normalizedDir], S = () => ({
|
|
792
792
|
btt: "arrowUp",
|
|
793
793
|
ltr: "arrowRight",
|
|
794
794
|
rtl: "arrowLeft",
|
|
795
795
|
ttb: "arrowDown"
|
|
796
796
|
})[l.normalizedDir], D = r(() => !l.config.wrapAround && l.currentSlide <= l.minSlide), s = r(() => !l.config.wrapAround && l.currentSlide >= l.maxSlide);
|
|
797
797
|
return () => {
|
|
798
|
-
const { i18n: v } = l.config,
|
|
798
|
+
const { i18n: v } = l.config, T = Y("button", Object.assign(Object.assign({ type: "button", disabled: D.value, "aria-label": v.ariaPreviousSlide, title: v.ariaPreviousSlide, onClick: l.nav.prev }, o), { class: [
|
|
799
799
|
"carousel__prev",
|
|
800
800
|
{ "carousel__prev--disabled": D.value },
|
|
801
801
|
o.class
|
|
802
|
-
] }), (t == null ? void 0 : t()) ||
|
|
802
|
+
] }), (t == null ? void 0 : t()) || Y(va, { name: y() })), f = Y("button", Object.assign(Object.assign({ type: "button", disabled: s.value, "aria-label": v.ariaNextSlide, title: v.ariaNextSlide, onClick: l.nav.next }, o), { class: [
|
|
803
803
|
"carousel__next",
|
|
804
804
|
{ "carousel__next--disabled": s.value },
|
|
805
805
|
o.class
|
|
806
|
-
] }), (n == null ? void 0 : n()) ||
|
|
807
|
-
return [
|
|
806
|
+
] }), (n == null ? void 0 : n()) || Y(va, { name: S() }));
|
|
807
|
+
return [T, f];
|
|
808
808
|
};
|
|
809
809
|
}
|
|
810
|
-
}),
|
|
810
|
+
}), Dn = Se({
|
|
811
811
|
name: "CarouselPagination",
|
|
812
812
|
props: {
|
|
813
813
|
disableOnClick: {
|
|
@@ -818,13 +818,13 @@ const ra = (a) => a && gn(a), ua = he({
|
|
|
818
818
|
}
|
|
819
819
|
},
|
|
820
820
|
setup(a) {
|
|
821
|
-
const i =
|
|
821
|
+
const i = Ct(nt);
|
|
822
822
|
if (!i)
|
|
823
823
|
return () => "";
|
|
824
|
-
const o = r(() => i.config.itemsToShow), l = r(() =>
|
|
824
|
+
const o = r(() => i.config.itemsToShow), l = r(() => Jt({
|
|
825
825
|
align: i.config.snapAlign,
|
|
826
826
|
itemsToShow: o.value
|
|
827
|
-
})), n = r(() => a.paginateByItemsToShow && o.value > 1), t = r(() => Math.ceil((i.activeSlide - l.value) / o.value)), y = r(() => Math.ceil(i.slidesCount / o.value)),
|
|
827
|
+
})), n = r(() => a.paginateByItemsToShow && o.value > 1), t = r(() => Math.ceil((i.activeSlide - l.value) / o.value)), y = r(() => Math.ceil(i.slidesCount / o.value)), S = (D) => Da(n.value ? {
|
|
828
828
|
val: t.value,
|
|
829
829
|
max: y.value - 1,
|
|
830
830
|
min: 0
|
|
@@ -836,10 +836,10 @@ const ra = (a) => a && gn(a), ua = he({
|
|
|
836
836
|
return () => {
|
|
837
837
|
var D, s;
|
|
838
838
|
const v = [];
|
|
839
|
-
for (let
|
|
840
|
-
const f =
|
|
841
|
-
slideNumber:
|
|
842
|
-
}), g =
|
|
839
|
+
for (let T = n.value ? 0 : i.minSlide; T <= (n.value ? y.value - 1 : i.maxSlide); T++) {
|
|
840
|
+
const f = wa(i.config.i18n[n.value ? "ariaNavigateToPage" : "ariaNavigateToSlide"], {
|
|
841
|
+
slideNumber: T + 1
|
|
842
|
+
}), g = S(T), V = Y("button", {
|
|
843
843
|
type: "button",
|
|
844
844
|
class: {
|
|
845
845
|
"carousel__pagination-button": !0,
|
|
@@ -847,22 +847,22 @@ const ra = (a) => a && gn(a), ua = he({
|
|
|
847
847
|
},
|
|
848
848
|
"aria-label": f,
|
|
849
849
|
"aria-pressed": g,
|
|
850
|
-
"aria-controls": (s = (D = i.slides[
|
|
850
|
+
"aria-controls": (s = (D = i.slides[T]) === null || D === void 0 ? void 0 : D.exposed) === null || s === void 0 ? void 0 : s.id,
|
|
851
851
|
title: f,
|
|
852
852
|
disabled: a.disableOnClick,
|
|
853
|
-
onClick: () => i.nav.slideTo(n.value ? Math.floor(
|
|
854
|
-
}), A =
|
|
853
|
+
onClick: () => i.nav.slideTo(n.value ? Math.floor(T * +i.config.itemsToShow + l.value) : T)
|
|
854
|
+
}), A = Y("li", { class: "carousel__pagination-item", key: T }, V);
|
|
855
855
|
v.push(A);
|
|
856
856
|
}
|
|
857
|
-
return
|
|
857
|
+
return Y("ol", { class: "carousel__pagination" }, v);
|
|
858
858
|
};
|
|
859
859
|
}
|
|
860
|
-
}),
|
|
860
|
+
}), fa = Se({
|
|
861
861
|
name: "CarouselSlide",
|
|
862
862
|
props: {
|
|
863
863
|
id: {
|
|
864
864
|
type: String,
|
|
865
|
-
default: (a) => a.isClone ? void 0 :
|
|
865
|
+
default: (a) => a.isClone ? void 0 : za()
|
|
866
866
|
},
|
|
867
867
|
index: {
|
|
868
868
|
type: Number,
|
|
@@ -878,13 +878,13 @@ const ra = (a) => a && gn(a), ua = he({
|
|
|
878
878
|
}
|
|
879
879
|
},
|
|
880
880
|
setup(a, { attrs: i, slots: o, expose: l }) {
|
|
881
|
-
const n =
|
|
882
|
-
if (
|
|
881
|
+
const n = Ct(nt);
|
|
882
|
+
if (pa(nt, void 0), !n)
|
|
883
883
|
return () => "";
|
|
884
|
-
const t =
|
|
884
|
+
const t = B(a.index), y = (V) => {
|
|
885
885
|
t.value = V;
|
|
886
|
-
},
|
|
887
|
-
const V =
|
|
886
|
+
}, S = Ga(), D = () => {
|
|
887
|
+
const V = S.vnode.el;
|
|
888
888
|
return V ? V.getBoundingClientRect() : { width: 0, height: 0 };
|
|
889
889
|
};
|
|
890
890
|
l({
|
|
@@ -892,21 +892,21 @@ const ra = (a) => a && gn(a), ua = he({
|
|
|
892
892
|
setIndex: y,
|
|
893
893
|
getBoundingRect: D
|
|
894
894
|
});
|
|
895
|
-
const s = r(() => t.value === n.activeSlide), v = r(() => t.value === n.activeSlide - 1),
|
|
895
|
+
const s = r(() => t.value === n.activeSlide), v = r(() => t.value === n.activeSlide - 1), T = r(() => t.value === n.activeSlide + 1), f = r(() => t.value >= n.visibleRange.min && t.value <= n.visibleRange.max), g = r(() => {
|
|
896
896
|
if (n.config.itemsToShow === "auto")
|
|
897
897
|
return;
|
|
898
898
|
const V = n.config.itemsToShow, A = n.config.gap > 0 && V > 1 ? `calc(${100 / V}% - ${n.config.gap * (V - 1) / V}px)` : `${100 / V}%`;
|
|
899
899
|
return n.isVertical ? { height: A } : { width: A };
|
|
900
900
|
});
|
|
901
|
-
return n.slideRegistry.registerSlide(
|
|
902
|
-
n.slideRegistry.unregisterSlide(
|
|
903
|
-
}), a.isClone && (
|
|
904
|
-
|
|
905
|
-
}),
|
|
906
|
-
|
|
901
|
+
return n.slideRegistry.registerSlide(S, a.index), Ha(() => {
|
|
902
|
+
n.slideRegistry.unregisterSlide(S);
|
|
903
|
+
}), a.isClone && (xt(() => {
|
|
904
|
+
sa(S.vnode);
|
|
905
|
+
}), qa(() => {
|
|
906
|
+
sa(S.vnode);
|
|
907
907
|
})), () => {
|
|
908
908
|
var V, A;
|
|
909
|
-
return n.config.enabled ?
|
|
909
|
+
return n.config.enabled ? Y("li", {
|
|
910
910
|
style: [i.style, Object.assign({}, g.value)],
|
|
911
911
|
class: {
|
|
912
912
|
carousel__slide: !0,
|
|
@@ -914,7 +914,7 @@ const ra = (a) => a && gn(a), ua = he({
|
|
|
914
914
|
"carousel__slide--visible": f.value,
|
|
915
915
|
"carousel__slide--active": s.value,
|
|
916
916
|
"carousel__slide--prev": v.value,
|
|
917
|
-
"carousel__slide--next":
|
|
917
|
+
"carousel__slide--next": T.value,
|
|
918
918
|
"carousel__slide--sliding": n.isSliding
|
|
919
919
|
},
|
|
920
920
|
onFocusin: () => {
|
|
@@ -927,17 +927,17 @@ const ra = (a) => a && gn(a), ua = he({
|
|
|
927
927
|
isActive: s.value,
|
|
928
928
|
isClone: a.isClone,
|
|
929
929
|
isPrev: v.value,
|
|
930
|
-
isNext:
|
|
930
|
+
isNext: T.value,
|
|
931
931
|
isSliding: n.isSliding,
|
|
932
932
|
isVisible: f.value
|
|
933
933
|
})) : (V = o.default) === null || V === void 0 ? void 0 : V.call(o);
|
|
934
934
|
};
|
|
935
935
|
}
|
|
936
|
-
}),
|
|
937
|
-
var y,
|
|
936
|
+
}), Tn = (a, i, o, l) => {
|
|
937
|
+
var y, S, D, s, v;
|
|
938
938
|
if (!o) return 0;
|
|
939
939
|
let n, t;
|
|
940
|
-
if (o.type ===
|
|
940
|
+
if (o.type === Oe.Field ? [Ze.Number, Ze.Range].includes((y = o.field) == null ? void 0 : y.type) ? (n = parseFloat(a[o.key]), t = parseFloat(i[o.key])) : [Ze.Date, Ze.Date].includes((S = o.field) == null ? void 0 : S.type) ? (n = a[o.key], t = i[o.key]) : ((D = o.field) == null ? void 0 : D.type) === Ze.Select && ((s = o.field) != null && s.multiple) && ((v = o.field) == null ? void 0 : v.multipleDisplay) === Ja.Count ? (n = a[o.key].length, t = i[o.key].length) : (n = String(a[o.key]).toLowerCase(), t = String(i[o.key]).toLowerCase()) : (n = String(a[o.key]).toLowerCase(), t = String(i[o.key]).toLowerCase()), l === at.Asc) {
|
|
941
941
|
if (n > t) return 1;
|
|
942
942
|
if (t > n) return -1;
|
|
943
943
|
} else {
|
|
@@ -945,49 +945,49 @@ const ra = (a) => a && gn(a), ua = he({
|
|
|
945
945
|
if (t > n) return 1;
|
|
946
946
|
}
|
|
947
947
|
return 0;
|
|
948
|
-
},
|
|
948
|
+
}, xe = (a, i, o, l = []) => {
|
|
949
949
|
if (a.extractTitleFromColumn) {
|
|
950
950
|
let t = l.find((y) => y.key === a.extractTitleFromColumn);
|
|
951
951
|
if (t)
|
|
952
|
-
return
|
|
952
|
+
return xe(t, i, o, l);
|
|
953
953
|
}
|
|
954
|
-
let n = a.type ===
|
|
954
|
+
let n = a.type === Oe.ColumnIndex ? o : i[a.key];
|
|
955
955
|
if (a.formatter && typeof a.formatter == "function") {
|
|
956
956
|
let t = a.formatter(n, i, a, o);
|
|
957
|
-
return typeof t == "string" && t.startsWith("__:") ?
|
|
957
|
+
return typeof t == "string" && t.startsWith("__:") ? Wa(t.substring(3)) : t;
|
|
958
958
|
}
|
|
959
959
|
return n;
|
|
960
|
-
},
|
|
960
|
+
}, In = (a, i, o) => {
|
|
961
961
|
if (!a.colspan) return -1;
|
|
962
962
|
let l = i;
|
|
963
963
|
return o.forEach((n) => {
|
|
964
|
-
let t =
|
|
964
|
+
let t = ea(a, n);
|
|
965
965
|
t > 0 && t < l && (l = t);
|
|
966
966
|
}), l;
|
|
967
|
-
},
|
|
968
|
-
if (typeof a != "object" || !a.key && [
|
|
969
|
-
let l =
|
|
967
|
+
}, ea = (a, i) => a.colspan === !1 ? !1 : typeof a.colspan == "function" ? a.colspan(i) : a.colspan, Ta = (a, i) => typeof a.preferSlot > "u" ? !0 : a.preferSlot === !1 ? !1 : typeof a.preferSlot == "function" ? a.preferSlot(i) : !0, Bn = (a, i, o) => {
|
|
968
|
+
if (typeof a != "object" || !a.key && [Oe.Field].includes(a.type) || i.indexOf(a.key) > -1) return !1;
|
|
969
|
+
let l = ea(a, o);
|
|
970
970
|
return typeof a.colspan > "u" ? !0 : (typeof a.colspan < "u" && (typeof a.colspan == "function" ? l = parseInt(a.colspan(o)) : l = parseInt(a.colspan)), l > 0);
|
|
971
|
-
},
|
|
971
|
+
}, En = (a = []) => {
|
|
972
972
|
if (a.length > 0) {
|
|
973
973
|
for (let i = 0; i < a.length; ++i)
|
|
974
974
|
if (a[i].sortable) return a[i].key;
|
|
975
975
|
}
|
|
976
976
|
return "";
|
|
977
|
-
},
|
|
977
|
+
}, An = (a, i) => {
|
|
978
978
|
if (a.length > 0) {
|
|
979
979
|
for (let o = 0; o < a.length; ++o)
|
|
980
980
|
if (a[o].key === i) return a[o];
|
|
981
981
|
}
|
|
982
982
|
return null;
|
|
983
|
-
},
|
|
983
|
+
}, Ia = (a) => {
|
|
984
984
|
let i = [];
|
|
985
985
|
return a.class && i.push(a.class), a.type && i.push(`is-${a.type}`), i.join(" ");
|
|
986
|
-
},
|
|
986
|
+
}, Zt = /* @__PURE__ */ Se({
|
|
987
987
|
__name: "LktTableCell",
|
|
988
988
|
props: {
|
|
989
989
|
modelValue: { default: () => ({}) },
|
|
990
|
-
column: { default: () => new
|
|
990
|
+
column: { default: () => new ya() },
|
|
991
991
|
columns: { default: () => [] },
|
|
992
992
|
i: { default: 0 },
|
|
993
993
|
editModeEnabled: { type: Boolean, default: !1 },
|
|
@@ -999,7 +999,7 @@ const ra = (a) => a && gn(a), ua = he({
|
|
|
999
999
|
"inline-drop"
|
|
1000
1000
|
],
|
|
1001
1001
|
setup(a, { emit: i }) {
|
|
1002
|
-
const o = i, l = a, n =
|
|
1002
|
+
const o = i, l = a, n = B(l.modelValue);
|
|
1003
1003
|
U(() => l.modelValue, (v) => {
|
|
1004
1004
|
n.value = v;
|
|
1005
1005
|
}), U(n, (v) => {
|
|
@@ -1007,9 +1007,9 @@ const ra = (a) => a && gn(a), ua = he({
|
|
|
1007
1007
|
});
|
|
1008
1008
|
const t = () => {
|
|
1009
1009
|
o("inline-drop");
|
|
1010
|
-
}, y = r(() => ({ ...l.column.slotData, item: n.value })),
|
|
1011
|
-
var v,
|
|
1012
|
-
if ((v = l.column.field) != null && v.modalData && typeof ((
|
|
1010
|
+
}, y = r(() => ({ ...l.column.slotData, item: n.value })), S = r(() => {
|
|
1011
|
+
var v, T, f, g;
|
|
1012
|
+
if ((v = l.column.field) != null && v.modalData && typeof ((T = l.column.field) == null ? void 0 : T.modalData) == "object")
|
|
1013
1013
|
for (let V in l.column.field.modalData)
|
|
1014
1014
|
if (typeof ((f = l.column.field) == null ? void 0 : f.modalData[V]) == "string" && l.column.field.modalData[V].startsWith("prop:")) {
|
|
1015
1015
|
let A = l.column.field.modalData[V].substring(5);
|
|
@@ -1017,71 +1017,71 @@ const ra = (a) => a && gn(a), ua = he({
|
|
|
1017
1017
|
} else
|
|
1018
1018
|
l.column.field.modalData[V];
|
|
1019
1019
|
return (g = l.column.field) == null ? void 0 : g.modalData;
|
|
1020
|
-
}), D = r(() => typeof l.column.field == "string" && l.column.field.startsWith("prop:") ?
|
|
1021
|
-
var v,
|
|
1022
|
-
return l.column.type ===
|
|
1023
|
-
|
|
1024
|
-
|
|
1020
|
+
}), D = r(() => typeof l.column.field == "string" && l.column.field.startsWith("prop:") ? Qa(l.column.field, n.value) : l.column.field), s = r(() => {
|
|
1021
|
+
var v, T, f, g;
|
|
1022
|
+
return l.column.type === Oe.Field ? !((T = (v = l.column) == null ? void 0 : v.field) != null && T.label) && (l.column.ensureFieldLabel || [
|
|
1023
|
+
Ze.Switch,
|
|
1024
|
+
Ze.Check
|
|
1025
1025
|
].includes((f = l.column.field) == null ? void 0 : f.type)) ? l.column.label : (g = l.column.field) == null ? void 0 : g.label : "";
|
|
1026
1026
|
});
|
|
1027
|
-
return (v,
|
|
1028
|
-
const f =
|
|
1029
|
-
return v.column.type === b(
|
|
1027
|
+
return (v, T) => {
|
|
1028
|
+
const f = he("lkt-anchor"), g = he("lkt-button"), V = he("lkt-field");
|
|
1029
|
+
return v.column.type === b(Oe).Anchor ? (p(), O(f, X({ key: 0 }, v.column.anchor, { prop: n.value }), {
|
|
1030
1030
|
default: P(() => [
|
|
1031
|
-
|
|
1031
|
+
et(tt(b(xe)(v.column, n.value, v.i)), 1)
|
|
1032
1032
|
]),
|
|
1033
1033
|
_: 1
|
|
1034
|
-
}, 16, ["prop"])) : v.column.type === b(
|
|
1034
|
+
}, 16, ["prop"])) : v.column.type === b(Oe).Button ? (p(), O(g, X({ key: 1 }, v.column.button, { prop: n.value }), {
|
|
1035
1035
|
default: P(() => [
|
|
1036
|
-
|
|
1036
|
+
et(tt(b(xe)(v.column, n.value, v.i)), 1)
|
|
1037
1037
|
]),
|
|
1038
1038
|
_: 1
|
|
1039
|
-
}, 16, ["prop"])) : v.column.type === b(
|
|
1039
|
+
}, 16, ["prop"])) : v.column.type === b(Oe).Field ? (p(), O(V, X({
|
|
1040
1040
|
key: 2,
|
|
1041
1041
|
modelValue: n.value[v.column.key],
|
|
1042
|
-
"onUpdate:modelValue":
|
|
1042
|
+
"onUpdate:modelValue": T[0] || (T[0] = (A) => n.value[v.column.key] = A)
|
|
1043
1043
|
}, {
|
|
1044
1044
|
...D.value,
|
|
1045
1045
|
readMode: !v.hasInlineEditPerm || D.value.readMode,
|
|
1046
1046
|
slotData: y.value,
|
|
1047
1047
|
label: s.value,
|
|
1048
|
-
modalData:
|
|
1048
|
+
modalData: S.value,
|
|
1049
1049
|
prop: n.value
|
|
1050
|
-
}), null, 16, ["modelValue"])) : v.column.type === b(
|
|
1050
|
+
}), null, 16, ["modelValue"])) : v.column.type === b(Oe).InlineDrop ? (p(), O(g, X({ key: 3 }, v.column.button, {
|
|
1051
1051
|
prop: n.value,
|
|
1052
1052
|
onClick: t
|
|
1053
1053
|
}), {
|
|
1054
1054
|
default: P(() => [
|
|
1055
|
-
|
|
1055
|
+
et(tt(b(xe)(v.column, n.value, v.i)), 1)
|
|
1056
1056
|
]),
|
|
1057
1057
|
_: 1
|
|
1058
|
-
}, 16, ["prop"])) : v.column.type === b(
|
|
1058
|
+
}, 16, ["prop"])) : v.column.type === b(Oe).ColumnIndex && v.column.field ? (p(), O(V, me(X({ key: 4 }, {
|
|
1059
1059
|
...D.value,
|
|
1060
|
-
modelValue: b(
|
|
1060
|
+
modelValue: b(xe)(v.column, n.value, v.i, v.columns),
|
|
1061
1061
|
readMode: !0,
|
|
1062
1062
|
slotData: y.value,
|
|
1063
1063
|
label: s.value,
|
|
1064
|
-
modalData:
|
|
1064
|
+
modalData: S.value,
|
|
1065
1065
|
prop: n.value
|
|
1066
|
-
})), null, 16)) : (p(),
|
|
1067
|
-
|
|
1066
|
+
})), null, 16)) : (p(), C(H, { key: 5 }, [
|
|
1067
|
+
et(tt(b(xe)(v.column, n.value, v.i, v.columns)), 1)
|
|
1068
1068
|
], 64));
|
|
1069
1069
|
};
|
|
1070
1070
|
}
|
|
1071
|
-
}),
|
|
1071
|
+
}), St = class St {
|
|
1072
1072
|
};
|
|
1073
|
-
|
|
1074
|
-
let
|
|
1075
|
-
const
|
|
1073
|
+
St.navButtonSlot = "", St.createButtonSlot = "", St.defaultEmptySlot = void 0;
|
|
1074
|
+
let ke = St;
|
|
1075
|
+
const Vn = ["data-i", "data-draggable"], Rn = ["data-role", "data-i"], Ln = {
|
|
1076
1076
|
key: 1,
|
|
1077
1077
|
class: "lkt-table-nav-cell"
|
|
1078
|
-
},
|
|
1078
|
+
}, Nn = { class: "lkt-table-nav-container" }, Mn = {
|
|
1079
1079
|
key: 1,
|
|
1080
1080
|
class: "lkt-icn-arrow-top"
|
|
1081
|
-
},
|
|
1081
|
+
}, On = {
|
|
1082
1082
|
key: 1,
|
|
1083
1083
|
class: "lkt-icn-arrow-bottom"
|
|
1084
|
-
},
|
|
1084
|
+
}, $n = ["colspan"], Fn = ["colspan"], Pn = ["colspan"], _n = ["data-column", "colspan", "title"], Un = /* @__PURE__ */ Se({
|
|
1085
1085
|
__name: "LktTableRow",
|
|
1086
1086
|
props: {
|
|
1087
1087
|
modelValue: { default: () => ({}) },
|
|
@@ -1099,7 +1099,7 @@ const Dn = ["data-i", "data-draggable"], In = ["data-role", "data-i"], Tn = {
|
|
|
1099
1099
|
i: { default: 0 },
|
|
1100
1100
|
visibleColumns: { default: () => [] },
|
|
1101
1101
|
emptyColumns: { default: () => [] },
|
|
1102
|
-
rowDisplayType: { type: [Number, Function], default:
|
|
1102
|
+
rowDisplayType: { type: [Number, Function], default: Te.Auto },
|
|
1103
1103
|
renderDrag: { type: [Boolean, Function], default: !0 },
|
|
1104
1104
|
disabledDrag: { type: [Boolean, Function], default: !0 },
|
|
1105
1105
|
itemContainerClass: { type: [String, Function], default: "" },
|
|
@@ -1116,13 +1116,13 @@ const Dn = ["data-i", "data-draggable"], In = ["data-role", "data-i"], Tn = {
|
|
|
1116
1116
|
"item-drop"
|
|
1117
1117
|
],
|
|
1118
1118
|
setup(a, { emit: i }) {
|
|
1119
|
-
const o =
|
|
1119
|
+
const o = ma(), l = i, n = a, t = B(n.modelValue);
|
|
1120
1120
|
let y = typeof n.rowDisplayType == "function" ? n.rowDisplayType(t.value, n.i) : n.rowDisplayType;
|
|
1121
|
-
y || (y =
|
|
1122
|
-
const
|
|
1123
|
-
let c = [],
|
|
1124
|
-
return !
|
|
1125
|
-
}),
|
|
1121
|
+
y || (y = Te.Auto);
|
|
1122
|
+
const S = [Te.Auto, Te.PreferCustomItem].includes(y), D = [Te.Auto, Te.PreferItem].includes(y), s = (c) => l("click", c), v = r(() => {
|
|
1123
|
+
let c = [], I = typeof n.disabledDrag == "function" ? n.disabledDrag(t.value) : ie.value === !0;
|
|
1124
|
+
return !I && n.sortable && n.isDraggable ? c.push("handle") : I && c.push("disabled"), c.join(" ");
|
|
1125
|
+
}), T = r(() => ke.navButtonSlot !== ""), f = r(() => ke.navButtonSlot), g = () => {
|
|
1126
1126
|
l("item-up", n.i);
|
|
1127
1127
|
}, V = () => {
|
|
1128
1128
|
l("item-down", n.i);
|
|
@@ -1132,60 +1132,60 @@ const Dn = ["data-i", "data-draggable"], In = ["data-role", "data-i"], Tn = {
|
|
|
1132
1132
|
U(() => n.modelValue, (c) => t.value = c), U(t, (c) => {
|
|
1133
1133
|
l("update:modelValue", c);
|
|
1134
1134
|
}, { deep: !0 });
|
|
1135
|
-
const
|
|
1135
|
+
const lt = r(() => typeof n.renderDrag == "function" ? n.renderDrag(t.value) : n.renderDrag === !0), ie = r(() => typeof n.disabledDrag == "function" ? n.disabledDrag(t.value) : n.disabledDrag === !0), re = r(() => v.value.includes("handle") ? "drag-indicator" : "invalid-drag-indicator"), te = r(() => {
|
|
1136
1136
|
let c = [];
|
|
1137
|
-
return
|
|
1137
|
+
return S && c.push("type-custom-item"), D && c.push("type-item"), typeof n.itemContainerClass == "function" ? c.push(n.itemContainerClass(t.value, n.i)) : n.itemContainerClass !== "" && c.push(n.itemContainerClass), c.join(" ");
|
|
1138
1138
|
});
|
|
1139
|
-
return (c,
|
|
1140
|
-
const ue =
|
|
1141
|
-
return p(),
|
|
1139
|
+
return (c, I) => {
|
|
1140
|
+
const ue = he("lkt-button");
|
|
1141
|
+
return p(), C("tr", {
|
|
1142
1142
|
"data-i": c.i,
|
|
1143
1143
|
"data-draggable": c.isDraggable,
|
|
1144
1144
|
class: Z(te.value)
|
|
1145
1145
|
}, [
|
|
1146
|
-
c.sortable && c.editModeEnabled &&
|
|
1146
|
+
c.sortable && c.editModeEnabled && lt.value ? (p(), C("td", {
|
|
1147
1147
|
key: 0,
|
|
1148
1148
|
"data-role": re.value,
|
|
1149
1149
|
class: Z(v.value),
|
|
1150
1150
|
"data-i": c.i
|
|
1151
|
-
},
|
|
1152
|
-
|
|
1153
|
-
]), 10,
|
|
1154
|
-
c.addNavigation && c.editModeEnabled ? (p(),
|
|
1155
|
-
|
|
1156
|
-
|
|
1151
|
+
}, I[2] || (I[2] = [
|
|
1152
|
+
ye("i", { class: "lkt-icn-drag-indicator" }, null, -1)
|
|
1153
|
+
]), 10, Rn)) : R("", !0),
|
|
1154
|
+
c.addNavigation && c.editModeEnabled ? (p(), C("td", Ln, [
|
|
1155
|
+
ye("div", Nn, [
|
|
1156
|
+
ge(ue, {
|
|
1157
1157
|
palette: "table-nav",
|
|
1158
1158
|
disabled: c.i === 0,
|
|
1159
1159
|
onClick: g
|
|
1160
1160
|
}, {
|
|
1161
1161
|
default: P(() => [
|
|
1162
|
-
|
|
1162
|
+
T.value ? (p(), O(be(f.value), {
|
|
1163
1163
|
key: 0,
|
|
1164
1164
|
direction: "up"
|
|
1165
|
-
})) : (p(),
|
|
1165
|
+
})) : (p(), C("i", Mn))
|
|
1166
1166
|
]),
|
|
1167
1167
|
_: 1
|
|
1168
1168
|
}, 8, ["disabled"]),
|
|
1169
|
-
|
|
1169
|
+
ge(ue, {
|
|
1170
1170
|
palette: "table-nav",
|
|
1171
1171
|
disabled: c.latestRow,
|
|
1172
1172
|
onClick: V
|
|
1173
1173
|
}, {
|
|
1174
1174
|
default: P(() => [
|
|
1175
|
-
|
|
1175
|
+
T.value ? (p(), O(be(f.value), {
|
|
1176
1176
|
key: 0,
|
|
1177
1177
|
direction: "down"
|
|
1178
|
-
})) : (p(),
|
|
1178
|
+
})) : (p(), C("i", On))
|
|
1179
1179
|
]),
|
|
1180
1180
|
_: 1
|
|
1181
1181
|
}, 8, ["disabled"])
|
|
1182
1182
|
])
|
|
1183
1183
|
])) : R("", !0),
|
|
1184
|
-
c.itemSlotComponent ? (p(),
|
|
1184
|
+
c.itemSlotComponent ? (p(), C("td", {
|
|
1185
1185
|
key: "td" + c.i,
|
|
1186
1186
|
colspan: c.visibleColumns.length
|
|
1187
1187
|
}, [
|
|
1188
|
-
(p(), O(
|
|
1188
|
+
(p(), O(be(c.itemSlotComponent), me(ga({
|
|
1189
1189
|
item: t.value,
|
|
1190
1190
|
index: c.i,
|
|
1191
1191
|
editing: c.editModeEnabled,
|
|
@@ -1193,11 +1193,11 @@ const Dn = ["data-i", "data-draggable"], In = ["data-role", "data-i"], Tn = {
|
|
|
1193
1193
|
data: c.itemSlotData,
|
|
1194
1194
|
events: c.itemSlotEvents
|
|
1195
1195
|
})), null, 16))
|
|
1196
|
-
], 8,
|
|
1196
|
+
], 8, $n)) : b(S) && b(o)[`item-${c.i}`] ? (p(), C("td", {
|
|
1197
1197
|
key: "td" + c.i,
|
|
1198
1198
|
colspan: c.visibleColumns.length
|
|
1199
1199
|
}, [
|
|
1200
|
-
|
|
1200
|
+
F(c.$slots, `item-${c.i}`, {
|
|
1201
1201
|
item: t.value,
|
|
1202
1202
|
index: c.i,
|
|
1203
1203
|
editing: c.editModeEnabled,
|
|
@@ -1208,11 +1208,11 @@ const Dn = ["data-i", "data-draggable"], In = ["data-role", "data-i"], Tn = {
|
|
|
1208
1208
|
isLoading: c.isLoading,
|
|
1209
1209
|
doDrop: () => A()
|
|
1210
1210
|
})
|
|
1211
|
-
], 8,
|
|
1211
|
+
], 8, Fn)) : b(D) && b(o).item ? (p(), C("td", {
|
|
1212
1212
|
key: "td" + c.i,
|
|
1213
1213
|
colspan: c.visibleColumns.length
|
|
1214
1214
|
}, [
|
|
1215
|
-
|
|
1215
|
+
F(c.$slots, "item", {
|
|
1216
1216
|
item: t.value,
|
|
1217
1217
|
index: c.i,
|
|
1218
1218
|
editing: c.editModeEnabled,
|
|
@@ -1223,25 +1223,25 @@ const Dn = ["data-i", "data-draggable"], In = ["data-role", "data-i"], Tn = {
|
|
|
1223
1223
|
isLoading: c.isLoading,
|
|
1224
1224
|
doDrop: () => A()
|
|
1225
1225
|
})
|
|
1226
|
-
], 8,
|
|
1227
|
-
b(
|
|
1226
|
+
], 8, Pn)) : (p(!0), C(H, { key: 5 }, De(c.visibleColumns, (j) => (p(), C(H, null, [
|
|
1227
|
+
b(Bn)(j, c.emptyColumns, t.value) ? (p(), C("td", {
|
|
1228
1228
|
key: "td" + c.i,
|
|
1229
1229
|
"data-column": j.key,
|
|
1230
|
-
colspan: b(
|
|
1231
|
-
title: b(
|
|
1232
|
-
class: Z(b(
|
|
1233
|
-
onClick:
|
|
1230
|
+
colspan: b(ea)(j, t.value),
|
|
1231
|
+
title: b(xe)(j, t.value, c.i, c.visibleColumns),
|
|
1232
|
+
class: Z(b(Ia)(j)),
|
|
1233
|
+
onClick: I[1] || (I[1] = (ne) => s(ne))
|
|
1234
1234
|
}, [
|
|
1235
|
-
c.$slots[j.key] && b(
|
|
1235
|
+
c.$slots[j.key] && b(Ta)(j, t.value) ? F(c.$slots, j.key, {
|
|
1236
1236
|
key: 0,
|
|
1237
1237
|
value: t.value[j.key],
|
|
1238
1238
|
item: t.value,
|
|
1239
1239
|
column: j,
|
|
1240
1240
|
i: c.i
|
|
1241
|
-
}) : t.value ? (p(), O(
|
|
1241
|
+
}) : t.value ? (p(), O(Zt, {
|
|
1242
1242
|
key: 1,
|
|
1243
1243
|
modelValue: t.value,
|
|
1244
|
-
"onUpdate:modelValue":
|
|
1244
|
+
"onUpdate:modelValue": I[0] || (I[0] = (ne) => t.value = ne),
|
|
1245
1245
|
column: j,
|
|
1246
1246
|
columns: c.visibleColumns,
|
|
1247
1247
|
"edit-mode-enabled": c.editModeEnabled,
|
|
@@ -1249,12 +1249,12 @@ const Dn = ["data-i", "data-draggable"], In = ["data-role", "data-i"], Tn = {
|
|
|
1249
1249
|
i: c.i,
|
|
1250
1250
|
onInlineDrop: A
|
|
1251
1251
|
}, null, 8, ["modelValue", "column", "columns", "edit-mode-enabled", "has-inline-edit-perm", "i"])) : R("", !0)
|
|
1252
|
-
], 10,
|
|
1252
|
+
], 10, _n)) : R("", !0)
|
|
1253
1253
|
], 64))), 256))
|
|
1254
|
-
], 10,
|
|
1254
|
+
], 10, Vn);
|
|
1255
1255
|
};
|
|
1256
1256
|
}
|
|
1257
|
-
}), Yt = /* @__PURE__ */
|
|
1257
|
+
}), Yt = /* @__PURE__ */ Se({
|
|
1258
1258
|
__name: "CreateButton",
|
|
1259
1259
|
props: {
|
|
1260
1260
|
config: { default: void 0 },
|
|
@@ -1266,15 +1266,15 @@ const Dn = ["data-i", "data-draggable"], In = ["data-role", "data-i"], Tn = {
|
|
|
1266
1266
|
],
|
|
1267
1267
|
setup(a, { emit: i }) {
|
|
1268
1268
|
var s;
|
|
1269
|
-
const o = i, l = a, n = r(() =>
|
|
1269
|
+
const o = i, l = a, n = r(() => ke.createButtonSlot !== ""), t = r(() => ke.createButtonSlot), y = {
|
|
1270
1270
|
...(s = l.config) == null ? void 0 : s.modalData,
|
|
1271
1271
|
beforeClose: (v) => {
|
|
1272
1272
|
"itemCreated" in v && v.itemCreated === !0 && o("append", v.item);
|
|
1273
1273
|
}
|
|
1274
|
-
},
|
|
1274
|
+
}, S = {
|
|
1275
1275
|
...l.config
|
|
1276
1276
|
};
|
|
1277
|
-
|
|
1277
|
+
S.modalData = y;
|
|
1278
1278
|
const D = () => {
|
|
1279
1279
|
var v;
|
|
1280
1280
|
if (!((v = l.config) != null && v.modal)) {
|
|
@@ -1282,23 +1282,23 @@ const Dn = ["data-i", "data-draggable"], In = ["data-role", "data-i"], Tn = {
|
|
|
1282
1282
|
return;
|
|
1283
1283
|
}
|
|
1284
1284
|
};
|
|
1285
|
-
return (v,
|
|
1286
|
-
const f =
|
|
1287
|
-
return p(), O(f,
|
|
1285
|
+
return (v, T) => {
|
|
1286
|
+
const f = he("lkt-button");
|
|
1287
|
+
return p(), O(f, X(S, {
|
|
1288
1288
|
disabled: v.disabled,
|
|
1289
1289
|
onClick: D
|
|
1290
1290
|
}), {
|
|
1291
1291
|
default: P(() => [
|
|
1292
|
-
n.value ? (p(), O(
|
|
1292
|
+
n.value ? (p(), O(be(t.value), { key: 0 })) : R("", !0)
|
|
1293
1293
|
]),
|
|
1294
1294
|
_: 1
|
|
1295
1295
|
}, 16, ["disabled"]);
|
|
1296
1296
|
};
|
|
1297
1297
|
}
|
|
1298
|
-
}),
|
|
1298
|
+
}), jn = ["data-column", "data-sortable", "data-sort", "colspan", "title"], zn = /* @__PURE__ */ Se({
|
|
1299
1299
|
__name: "TableHeader",
|
|
1300
1300
|
props: {
|
|
1301
|
-
column: { default: () => new
|
|
1301
|
+
column: { default: () => new ya() },
|
|
1302
1302
|
sortBy: { default: "" },
|
|
1303
1303
|
sortDirection: { default: "" },
|
|
1304
1304
|
amountOfColumns: { default: 0 },
|
|
@@ -1308,43 +1308,43 @@ const Dn = ["data-i", "data-draggable"], In = ["data-role", "data-i"], Tn = {
|
|
|
1308
1308
|
"click"
|
|
1309
1309
|
],
|
|
1310
1310
|
setup(a, { emit: i }) {
|
|
1311
|
-
const o = i, l = a, n = r(() =>
|
|
1312
|
-
return (v,
|
|
1311
|
+
const o = i, l = a, n = r(() => In(l.column, l.amountOfColumns, l.items)), t = r(() => l.column.sortable === !0), y = r(() => t.value && l.sortBy === l.column.key ? l.sortDirection : ""), S = r(() => ba(l.column.label)), D = r(() => t.value && l.sortBy === l.column.key ? l.sortDirection === at.Asc ? Me.defaultTableSortAscIcon : l.sortDirection === at.Desc ? Me.defaultTableSortDescIcon : "" : ""), s = () => o("click", l.column);
|
|
1312
|
+
return (v, T) => (p(), C("th", {
|
|
1313
1313
|
"data-column": v.column.key,
|
|
1314
1314
|
"data-sortable": t.value,
|
|
1315
1315
|
"data-sort": y.value,
|
|
1316
1316
|
colspan: n.value,
|
|
1317
|
-
title:
|
|
1318
|
-
class: Z(b(
|
|
1317
|
+
title: S.value,
|
|
1318
|
+
class: Z(b(Ia)(v.column)),
|
|
1319
1319
|
onClick: s
|
|
1320
1320
|
}, [
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
D.value ? (p(),
|
|
1321
|
+
ye("div", null, [
|
|
1322
|
+
et(tt(S.value) + " ", 1),
|
|
1323
|
+
D.value ? (p(), C("i", {
|
|
1324
1324
|
key: 0,
|
|
1325
1325
|
class: Z(D.value)
|
|
1326
1326
|
}, null, 2)) : R("", !0)
|
|
1327
1327
|
])
|
|
1328
|
-
], 10,
|
|
1328
|
+
], 10, jn));
|
|
1329
1329
|
}
|
|
1330
|
-
}),
|
|
1330
|
+
}), Gn = ["id"], Hn = { class: "lkt-table-page-buttons" }, qn = { class: "switch-edition-mode" }, Kn = { class: "switch-edition-mode" }, Xn = {
|
|
1331
1331
|
key: 0,
|
|
1332
1332
|
class: "lkt-table-page-buttons"
|
|
1333
|
-
},
|
|
1333
|
+
}, Yn = {
|
|
1334
1334
|
key: 1,
|
|
1335
1335
|
class: "lkt-table-page-filters"
|
|
1336
|
-
},
|
|
1336
|
+
}, Wn = { class: "lkt-table" }, Jn = { key: 0 }, Qn = { key: 0 }, Zn = {
|
|
1337
1337
|
key: 0,
|
|
1338
1338
|
"data-role": "drag-indicator"
|
|
1339
|
-
},
|
|
1339
|
+
}, xn = { key: 1 }, el = ["id"], tl = ["id"], al = ["data-i"], nl = ["id"], ll = ["data-i"], ol = ["id"], il = { class: "lkt-carousel-slide" }, rl = { class: "lkt-carousel-slide" }, ul = ["id"], sl = {
|
|
1340
1340
|
key: 2,
|
|
1341
1341
|
class: "lkt-table-empty"
|
|
1342
|
-
},
|
|
1342
|
+
}, dl = {
|
|
1343
1343
|
key: 4,
|
|
1344
1344
|
class: "lkt-table-page-buttons lkt-table-page-buttons-bottom"
|
|
1345
|
-
},
|
|
1345
|
+
}, cl = /* @__PURE__ */ Se({
|
|
1346
1346
|
__name: "LktTable",
|
|
1347
|
-
props: /* @__PURE__ */
|
|
1347
|
+
props: /* @__PURE__ */ Xa({
|
|
1348
1348
|
modelValue: {},
|
|
1349
1349
|
type: {},
|
|
1350
1350
|
columns: {},
|
|
@@ -1390,13 +1390,14 @@ const Dn = ["data-i", "data-draggable"], In = ["data-role", "data-i"], Tn = {
|
|
|
1390
1390
|
wrapContentClass: {},
|
|
1391
1391
|
itemsContainerClass: {},
|
|
1392
1392
|
itemContainerClass: { type: [String, Function] },
|
|
1393
|
+
itemContainerStyle: { type: [String, Function] },
|
|
1393
1394
|
skipTableItemsContainer: { type: Boolean },
|
|
1394
1395
|
createEnabledValidator: { type: Function },
|
|
1395
1396
|
switchableTypes: {},
|
|
1396
1397
|
switchableTypesButtons: {},
|
|
1397
1398
|
useItemSlot: { type: [Boolean, Function] },
|
|
1398
1399
|
events: {}
|
|
1399
|
-
},
|
|
1400
|
+
}, Za(xa)),
|
|
1400
1401
|
emits: [
|
|
1401
1402
|
"update:modelValue",
|
|
1402
1403
|
"update:perms",
|
|
@@ -1413,68 +1414,71 @@ const Dn = ["data-i", "data-draggable"], In = ["data-role", "data-i"], Tn = {
|
|
|
1413
1414
|
"drag-end"
|
|
1414
1415
|
],
|
|
1415
1416
|
setup(a, { expose: i, emit: o }) {
|
|
1416
|
-
var
|
|
1417
|
-
const l = o, n =
|
|
1418
|
-
U(() => t.saveButton, (e) =>
|
|
1419
|
-
const
|
|
1417
|
+
var la, oa;
|
|
1418
|
+
const l = o, n = ma(), t = a, y = B(typeof t.sorter == "function" ? t.sorter : Tn), S = B(En(t.columns)), D = B(at.Asc), s = B(t.modelValue), v = B(null), T = B(t.columns), f = B((la = t.paginator) == null ? void 0 : la.modelValue), g = B(t.loading), V = B(!1), A = B(t.perms), lt = B(null), ie = B(null), re = B(null), te = B({}), c = B(new an({ items: s.value }, t.dataStateConfig)), I = B(t.editMode), ue = B(0), j = B(null), ne = B(t.type), se = B(((oa = t.carousel) == null ? void 0 : oa.currentSlide) || 0), de = B(void 0), q = B(void 0), $e = B(void 0), x = B(Je(t.saveButton, Me.defaultSaveButton)), Ie = B(Je(t.createButton, Me.defaultCreateButton)), W = B(Je(t.editModeButton, Me.defaultEditModeButton)), Ot = B(Je(t.groupButton, Me.defaultGroupButton));
|
|
1419
|
+
U(() => t.saveButton, (e) => x.value = Je(t.saveButton, Me.defaultSaveButton)), U(() => t.createButton, (e) => Ie.value = Je(t.createButton, Me.defaultCreateButton)), U(() => t.editModeButton, (e) => W.value = Je(t.editModeButton, Me.defaultEditModeButton));
|
|
1420
|
+
const oe = B(!1);
|
|
1420
1421
|
U(g, (e) => l("update:loading", e)), U(f, (e) => l("page", e));
|
|
1421
|
-
const
|
|
1422
|
+
const $t = (e) => {
|
|
1422
1423
|
A.value = e;
|
|
1423
|
-
},
|
|
1424
|
-
var u;
|
|
1424
|
+
}, Ce = (e) => {
|
|
1425
|
+
var u, N;
|
|
1425
1426
|
if (Array.isArray(e.data)) {
|
|
1426
|
-
let
|
|
1427
|
-
typeof ((u = t.events) == null ? void 0 : u.parseResults) == "function" && (
|
|
1427
|
+
let $ = e.data;
|
|
1428
|
+
if (typeof ((u = t.events) == null ? void 0 : u.parseResults) == "function" && ($ = t.events.parseResults($)), s.value = [...s.value, ...$], [Qe.TimelineAsc, Qe.TimelineDesc, Qe.TimelineAscDesc].includes((N = t.paginator) == null ? void 0 : N.type)) {
|
|
1429
|
+
const _ = on(s.value, t.paginator.dateKey);
|
|
1430
|
+
de.value = _.oldest, q.value = _.newest;
|
|
1431
|
+
}
|
|
1428
1432
|
}
|
|
1429
|
-
g.value = !1, V.value = !0, c.value.store({ items: s.value }).turnStoredIntoOriginal(),
|
|
1430
|
-
|
|
1433
|
+
g.value = !1, V.value = !0, c.value.store({ items: s.value }).turnStoredIntoOriginal(), oe.value = !1, Lt(() => {
|
|
1434
|
+
He.value, l("read-response", e);
|
|
1431
1435
|
});
|
|
1432
|
-
},
|
|
1436
|
+
}, ot = () => Lt(() => {
|
|
1433
1437
|
var e;
|
|
1434
|
-
(!t.paginator || ![
|
|
1435
|
-
}),
|
|
1436
|
-
|
|
1437
|
-
},
|
|
1438
|
+
(!t.paginator || ![Qe.LoadMore, Qe.Infinite].includes((e = t.paginator) == null ? void 0 : e.type)) && s.value.splice(0, s.value.length), g.value = !0;
|
|
1439
|
+
}), ct = () => {
|
|
1440
|
+
lt.value.doRefresh();
|
|
1441
|
+
}, ee = en(12), vt = r(() => {
|
|
1438
1442
|
if (!t.hideEmptyColumns) return [];
|
|
1439
1443
|
let e = [];
|
|
1440
|
-
return
|
|
1441
|
-
let
|
|
1442
|
-
s.value.forEach((
|
|
1443
|
-
if (typeof
|
|
1444
|
-
return
|
|
1445
|
-
|
|
1446
|
-
}),
|
|
1444
|
+
return T.value.forEach((u) => {
|
|
1445
|
+
let N = u.key, $ = !1;
|
|
1446
|
+
s.value.forEach((_) => {
|
|
1447
|
+
if (typeof _.checkEmpty == "function")
|
|
1448
|
+
return _.checkEmpty(_);
|
|
1449
|
+
_[N] && ($ = !0);
|
|
1450
|
+
}), $ || e.push(N);
|
|
1447
1451
|
}), e;
|
|
1448
|
-
}),
|
|
1452
|
+
}), Fe = r(() => T.value.filter((e) => !e.hidden)), it = r(() => T.value.filter((e) => e.isForRowKey)), Be = r(() => T.value.map((e) => e.key)), rt = r(() => {
|
|
1449
1453
|
let e = [];
|
|
1450
|
-
for (let u in n)
|
|
1454
|
+
for (let u in n) Be.value.indexOf(u) !== -1 && e.push(u);
|
|
1451
1455
|
return e;
|
|
1452
|
-
}),
|
|
1456
|
+
}), ce = r(() => {
|
|
1453
1457
|
let e = [];
|
|
1454
1458
|
for (let u in n) u.indexOf("slide-") !== -1 && e.push(u);
|
|
1455
1459
|
return e;
|
|
1456
|
-
}),
|
|
1460
|
+
}), Pe = r(() => {
|
|
1457
1461
|
var e;
|
|
1458
|
-
return t.hiddenSave || g.value || !((e =
|
|
1459
|
-
}),
|
|
1462
|
+
return t.hiddenSave || g.value || !((e = x.value) != null && e.resource || x.value.type) ? !1 : I.value && oe.value ? !0 : I.value;
|
|
1463
|
+
}), ft = r(() => ht.value && s.value.length >= t.requiredItemsForTopCreate || Ee.value ? !0 : Pe.value || I.value && ve.value), He = r(() => {
|
|
1460
1464
|
var e, u;
|
|
1461
|
-
return ue.value, typeof ((e =
|
|
1465
|
+
return ue.value, typeof ((e = x.value) == null ? void 0 : e.disabled) == "function" ? x.value.disabled({
|
|
1462
1466
|
value: s.value,
|
|
1463
1467
|
dataState: c.value
|
|
1464
|
-
}) : typeof ((u =
|
|
1465
|
-
}),
|
|
1468
|
+
}) : typeof ((u = x.value) == null ? void 0 : u.disabled) == "boolean" ? x.value.disabled : !oe.value;
|
|
1469
|
+
}), Ft = r(() => s.value.length), pt = r(() => {
|
|
1466
1470
|
var e;
|
|
1467
1471
|
return {
|
|
1468
1472
|
items: s.value,
|
|
1469
|
-
...(e =
|
|
1473
|
+
...(e = x.value) == null ? void 0 : e.resourceData
|
|
1470
1474
|
};
|
|
1471
|
-
}),
|
|
1475
|
+
}), Pt = r(() => t.titleTag === "" ? "h2" : t.titleTag), wt = r(() => t.wrapContentTag === "" ? "div" : t.wrapContentTag), ut = r(() => ba(t.title)), st = r(() => {
|
|
1472
1476
|
var e;
|
|
1473
1477
|
return (e = t.drag) == null ? void 0 : e.enabled;
|
|
1474
|
-
}), ve = r(() => A.value.includes(
|
|
1478
|
+
}), ve = r(() => A.value.includes(Re.Create)), _e = r(() => A.value.includes("read")), ae = r(() => A.value.includes(Re.Update)), mt = r(() => A.value.includes(Re.Edit)), fe = r(() => A.value.includes(Re.InlineEdit)), Ue = r(() => A.value.includes(Re.ModalCreate)), je = r(() => A.value.includes(Re.InlineCreate)), qe = r(() => A.value.includes(Re.InlineCreateEver)), le = r(() => A.value.includes(Re.Drop)), Dt = r(() => A.value.includes(Re.SwitchEditMode)), Ee = r(() => !Dt.value || !ae.value && !le.value || !ae.value && le.value ? !1 : !g.value), gt = r(() => {
|
|
1475
1479
|
var e;
|
|
1476
|
-
return (typeof ((e = t.paginator) == null ? void 0 : e.type) < "u" && [
|
|
1477
|
-
}),
|
|
1480
|
+
return (typeof ((e = t.paginator) == null ? void 0 : e.type) < "u" && [Qe.LoadMore, Qe.Infinite].includes(t.paginator.type) || !g.value) && s.value.length > 0;
|
|
1481
|
+
}), Ae = r(() => T.value.find((e) => e.isForAccordionHeader)), ze = r(() => T.value.find((e) => e.isCalendarDate)), Tt = r(() => T.value.find((e) => e.isCalendarGroup)), It = (e, u) => typeof t.customItemSlotName == "function" ? t.customItemSlotName(e, u) : "", _t = (e) => {
|
|
1478
1482
|
let u = e.target;
|
|
1479
1483
|
if (typeof u.dataset.column > "u")
|
|
1480
1484
|
do
|
|
@@ -1482,34 +1486,34 @@ const Dn = ["data-i", "data-draggable"], In = ["data-role", "data-i"], Tn = {
|
|
|
1482
1486
|
while (typeof u.dataset.column > "u" && u.tagName !== "TABLE" && u.tagName !== "body");
|
|
1483
1487
|
if (u.tagName === "TD" && (u = u.parentNode, u = u.dataset.i, typeof u < "u"))
|
|
1484
1488
|
return s.value[u];
|
|
1485
|
-
},
|
|
1486
|
-
ue.value =
|
|
1487
|
-
},
|
|
1489
|
+
}, pe = () => {
|
|
1490
|
+
ue.value = rn();
|
|
1491
|
+
}, Ut = (e) => s.value[e], yt = (e) => {
|
|
1488
1492
|
var u;
|
|
1489
1493
|
return (u = v.value) == null ? void 0 : u.querySelector(`[data-i="${e}"]`);
|
|
1490
|
-
},
|
|
1491
|
-
e && e.sortable && (e.key ===
|
|
1492
|
-
sortBy:
|
|
1494
|
+
}, d = (e) => {
|
|
1495
|
+
e && e.sortable && (e.key === S.value && (D.value = D.value === at.Asc ? at.Desc : at.Asc), S.value = e.key, s.value = s.value.sort((u, N) => y.value(u, N, e, D.value)), pe(), l("sort", {
|
|
1496
|
+
sortBy: S.value,
|
|
1493
1497
|
sortDirection: D.value
|
|
1494
1498
|
}));
|
|
1495
|
-
},
|
|
1499
|
+
}, k = (e) => {
|
|
1496
1500
|
l("click", e);
|
|
1497
|
-
},
|
|
1498
|
-
var
|
|
1499
|
-
let u = parseInt((
|
|
1500
|
-
return !(typeof ((
|
|
1501
|
-
},
|
|
1502
|
-
var u,
|
|
1503
|
-
return typeof ((u = t.drag) == null ? void 0 : u.isDraggable) == "function" ? (
|
|
1504
|
-
},
|
|
1501
|
+
}, w = (e) => {
|
|
1502
|
+
var N, $, _, z, Xe, Ge, Ve, h;
|
|
1503
|
+
let u = parseInt((z = (_ = ($ = (N = e == null ? void 0 : e.originalEvent) == null ? void 0 : N.toElement) == null ? void 0 : $.closest("tr")) == null ? void 0 : _.dataset) == null ? void 0 : z.i);
|
|
1504
|
+
return !(typeof ((Xe = t.drag) == null ? void 0 : Xe.isValid) == "function" && !((Ge = t.drag) != null && Ge.isValid(s.value[u])) || typeof ((Ve = t.drag) == null ? void 0 : Ve.isValid) == "boolean" && !((h = t.drag) != null && h.isValid));
|
|
1505
|
+
}, E = (e) => {
|
|
1506
|
+
var u, N;
|
|
1507
|
+
return typeof ((u = t.drag) == null ? void 0 : u.isDraggable) == "function" ? (N = t.drag) == null ? void 0 : N.isDraggable(e) : !0;
|
|
1508
|
+
}, L = () => {
|
|
1505
1509
|
if (ve.value) {
|
|
1506
1510
|
l("click-create");
|
|
1507
1511
|
return;
|
|
1508
1512
|
}
|
|
1509
|
-
if (
|
|
1513
|
+
if (je.value || qe.value) {
|
|
1510
1514
|
if (typeof t.newValueGenerator == "function") {
|
|
1511
1515
|
let e = t.newValueGenerator();
|
|
1512
|
-
if (typeof e == "object" ||
|
|
1516
|
+
if (typeof e == "object" || we.value !== Le.Table) {
|
|
1513
1517
|
s.value.push(e);
|
|
1514
1518
|
return;
|
|
1515
1519
|
}
|
|
@@ -1517,537 +1521,539 @@ const Dn = ["data-i", "data-draggable"], In = ["data-role", "data-i"], Tn = {
|
|
|
1517
1521
|
s.value.push({});
|
|
1518
1522
|
} else
|
|
1519
1523
|
l("click-create");
|
|
1520
|
-
},
|
|
1524
|
+
}, K = (e) => {
|
|
1521
1525
|
s.value.push(e);
|
|
1522
|
-
},
|
|
1523
|
-
var
|
|
1524
|
-
if (!((
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
].includes((
|
|
1529
|
-
if (l("before-save"), (
|
|
1526
|
+
}, J = () => g.value = !0, Q = () => g.value = !1, Bt = (e, u) => {
|
|
1527
|
+
var N, $, _;
|
|
1528
|
+
if (!((N = x.value) != null && N.type && [
|
|
1529
|
+
Kt.Split,
|
|
1530
|
+
Kt.SplitEver,
|
|
1531
|
+
Kt.SplitLazy
|
|
1532
|
+
].includes(($ = x.value) == null ? void 0 : $.type))) {
|
|
1533
|
+
if (l("before-save"), (_ = x.value) != null && _.resource && (g.value = !1, !u.success)) {
|
|
1530
1534
|
l("error", u.httpStatus);
|
|
1531
1535
|
return;
|
|
1532
1536
|
}
|
|
1533
|
-
c.value.turnStoredIntoOriginal(),
|
|
1537
|
+
c.value.turnStoredIntoOriginal(), oe.value = !1, l("save", u);
|
|
1534
1538
|
}
|
|
1535
|
-
},
|
|
1536
|
-
if (
|
|
1537
|
-
let
|
|
1538
|
-
for (;
|
|
1539
|
+
}, Et = (e, u, N) => {
|
|
1540
|
+
if (N >= e.length) {
|
|
1541
|
+
let $ = N - e.length + 1;
|
|
1542
|
+
for (; $--; ) e.push(void 0);
|
|
1539
1543
|
}
|
|
1540
|
-
return e.splice(
|
|
1541
|
-
},
|
|
1542
|
-
|
|
1543
|
-
},
|
|
1544
|
-
|
|
1545
|
-
},
|
|
1546
|
-
s.value.splice(e, 1),
|
|
1547
|
-
},
|
|
1544
|
+
return e.splice(N, 0, e.splice(u, 1)[0]), e;
|
|
1545
|
+
}, jt = (e) => {
|
|
1546
|
+
Et(s.value, e, e - 1), pe();
|
|
1547
|
+
}, Ba = (e) => {
|
|
1548
|
+
Et(s.value, e, e + 1), pe();
|
|
1549
|
+
}, bt = (e) => {
|
|
1550
|
+
s.value.splice(e, 1), pe();
|
|
1551
|
+
}, ta = () => {
|
|
1548
1552
|
var e;
|
|
1549
1553
|
te.value && typeof ((e = te.value) == null ? void 0 : e.destroy) == "function" && (te.value.destroy(), te.value = {});
|
|
1550
|
-
},
|
|
1551
|
-
j.value || (j.value = document.getElementById("lkt-table-body-" +
|
|
1554
|
+
}, zt = () => {
|
|
1555
|
+
j.value || (j.value = document.getElementById("lkt-table-body-" + ee)), te.value = new nn(j.value, {
|
|
1552
1556
|
direction: "vertical",
|
|
1553
1557
|
handle: ".handle",
|
|
1554
1558
|
animation: 150,
|
|
1555
1559
|
onEnd: function(e) {
|
|
1556
|
-
let u = e.oldIndex,
|
|
1557
|
-
s.value.splice(
|
|
1560
|
+
let u = e.oldIndex, N = e.newIndex;
|
|
1561
|
+
s.value.splice(N, 0, s.value.splice(u, 1)[0]), pe(), l("drag-end", s.value[N]);
|
|
1558
1562
|
},
|
|
1559
1563
|
onMove: function(e, u) {
|
|
1560
|
-
return
|
|
1564
|
+
return w(e);
|
|
1561
1565
|
}
|
|
1562
1566
|
});
|
|
1563
|
-
},
|
|
1564
|
-
let
|
|
1565
|
-
return
|
|
1566
|
-
let
|
|
1567
|
-
|
|
1568
|
-
}),
|
|
1569
|
-
},
|
|
1570
|
-
|
|
1567
|
+
}, At = (e, u, N = !1) => {
|
|
1568
|
+
let $ = [ue.value, ee, "row", u];
|
|
1569
|
+
return N && $.push("hidden"), it.value.forEach((_) => {
|
|
1570
|
+
let z = String(e[_.key]).toLowerCase();
|
|
1571
|
+
z.length > 50 && (z = z.substring(0, 50)), z = tn(z, " ", "-"), $.push(z);
|
|
1572
|
+
}), $.join("-");
|
|
1573
|
+
}, Gt = r(() => typeof t.createEnabledValidator == "function" ? t.createEnabledValidator({ items: s.value }) : !0), ht = r(() => t.createButton === !1 ? !1 : qe.value || ve.value && I.value || je.value && I.value || Ue.value && I.value), Ea = r(() => [Le.Ol, Le.Ul].includes(we.value)), kt = (e, u) => typeof t.itemDisplayChecker == "function" ? t.itemDisplayChecker(e, u) : !0, Vt = (e, u) => typeof t.itemContainerClass == "function" ? t.itemContainerClass(e, u) : t.itemContainerClass, aa = (e, u) => typeof t.itemContainerStyle == "function" ? t.itemContainerStyle(e, u) : t.itemContainerStyle, Aa = (e, u) => Ae.value ? e[Ae.value.key] : "", Ke = r(() => typeof t.itemSlotComponent == "function" ? t.itemSlotComponent() : t.itemSlotComponent), Rt = r(() => typeof t.itemSlotData == "function" ? t.itemSlotData() : t.itemSlotData);
|
|
1574
|
+
xt(() => {
|
|
1571
1575
|
var e;
|
|
1572
|
-
t.initialSorting &&
|
|
1573
|
-
|
|
1576
|
+
t.initialSorting && d(An(t.columns, S.value)), c.value.store({ items: s.value }).turnStoredIntoOriginal(), oe.value = !1, (e = t.drag) != null && e.enabled && Lt(() => {
|
|
1577
|
+
zt();
|
|
1574
1578
|
});
|
|
1575
1579
|
}), U(() => {
|
|
1576
1580
|
var e;
|
|
1577
1581
|
return (e = t.drag) == null ? void 0 : e.enabled;
|
|
1578
1582
|
}, (e) => {
|
|
1579
|
-
e ?
|
|
1583
|
+
e ? zt() : ta();
|
|
1580
1584
|
}), U(() => t.type, (e) => {
|
|
1581
1585
|
var u;
|
|
1582
|
-
(u = t.drag) != null && u.enabled ?
|
|
1583
|
-
}), U(() => t.perms, (e) => A.value = e), U(A, (e) => l("update:perms", e)), U(
|
|
1586
|
+
(u = t.drag) != null && u.enabled ? zt() : ta();
|
|
1587
|
+
}), U(() => t.perms, (e) => A.value = e), U(A, (e) => l("update:perms", e)), U(I, (e) => {
|
|
1584
1588
|
l("update:editMode", e);
|
|
1585
|
-
}), U(() => t.editMode, (e) =>
|
|
1589
|
+
}), U(() => t.editMode, (e) => I.value = e), U(() => t.columns, (e) => T.value = e, { deep: !0 }), U(() => t.modelValue, (e) => {
|
|
1586
1590
|
s.value = e;
|
|
1587
1591
|
}, { deep: !0 }), U(s, (e) => {
|
|
1588
|
-
c.value.increment({ items: e }),
|
|
1592
|
+
c.value.increment({ items: e }), oe.value = c.value.changed(), l("update:modelValue", e);
|
|
1589
1593
|
}, { deep: !0 }), i({
|
|
1590
|
-
getItemByEvent:
|
|
1591
|
-
getItemByIndex:
|
|
1592
|
-
getRowByIndex:
|
|
1593
|
-
doRefresh:
|
|
1594
|
+
getItemByEvent: _t,
|
|
1595
|
+
getItemByIndex: Ut,
|
|
1596
|
+
getRowByIndex: yt,
|
|
1597
|
+
doRefresh: ct,
|
|
1594
1598
|
doRemoveIndex: (e) => {
|
|
1595
|
-
s.value.splice(e, 1),
|
|
1599
|
+
s.value.splice(e, 1), pe();
|
|
1596
1600
|
},
|
|
1597
1601
|
getHtml: () => ie.value,
|
|
1598
|
-
reRender:
|
|
1602
|
+
reRender: pe,
|
|
1599
1603
|
turnStoredIntoOriginal: () => {
|
|
1600
|
-
c.value.turnStoredIntoOriginal(),
|
|
1601
|
-
|
|
1604
|
+
c.value.turnStoredIntoOriginal(), Lt(() => {
|
|
1605
|
+
pe();
|
|
1602
1606
|
});
|
|
1603
1607
|
}
|
|
1604
1608
|
});
|
|
1605
|
-
const
|
|
1609
|
+
const Va = r(() => typeof ke.defaultEmptySlot < "u"), Ra = r(() => ke.defaultEmptySlot), La = r(() => !t.drag || Object.keys(t.drag).length === 0 || !t.drag.enabled ? !1 : typeof t.drag.canRender > "u" ? !0 : t.drag.canRender), Na = r(() => !t.drag || Object.keys(t.drag).length === 0 || !t.drag.enabled || typeof t.drag.isDisabled > "u" ? !1 : t.drag.isDisabled), Ma = r(() => typeof t.header == "object" && Object.keys(t.header).length > 0), we = r(() => Array.isArray(t.switchableTypes) && t.switchableTypes.length > 0 ? ne.value : t.type), Oa = r(() => Array.isArray(t.switchableTypes) ? t.switchableTypes.length > 0 ? t.switchableTypes.includes(t.type) ? t.switchableTypes : [
|
|
1606
1610
|
t.type,
|
|
1607
1611
|
...t.switchableTypes
|
|
1608
|
-
] : [] : []),
|
|
1612
|
+
] : [] : []), $a = r(() => {
|
|
1609
1613
|
let e = [];
|
|
1610
|
-
return
|
|
1611
|
-
let
|
|
1614
|
+
return Oa.value.forEach((u) => {
|
|
1615
|
+
let N = t.switchableTypesButtons[u];
|
|
1612
1616
|
e.push({
|
|
1613
|
-
...
|
|
1614
|
-
class: [
|
|
1617
|
+
...N,
|
|
1618
|
+
class: [N.class, u === we.value ? "is-current" : ""].join(" "),
|
|
1615
1619
|
events: {
|
|
1616
|
-
click: (
|
|
1617
|
-
|
|
1620
|
+
click: ($) => {
|
|
1621
|
+
var _, z;
|
|
1622
|
+
ne.value = u, typeof ((_ = t.switchableTypesButtons[u].events) == null ? void 0 : _.click) == "function" && t.switchableTypesButtons[u].events.click($), typeof ((z = t.events) == null ? void 0 : z.viewChanged) == "function" && t.events.viewChanged(u);
|
|
1618
1623
|
}
|
|
1619
1624
|
}
|
|
1620
1625
|
});
|
|
1621
1626
|
}), e;
|
|
1622
|
-
}),
|
|
1627
|
+
}), Fa = r(() => {
|
|
1623
1628
|
var e, u;
|
|
1624
1629
|
return {
|
|
1625
1630
|
...t.header,
|
|
1626
1631
|
topEndButtons: [
|
|
1627
1632
|
...typeof ((e = t.header) == null ? void 0 : e.topEndButtons) > "u" ? [] : (u = t.header) == null ? void 0 : u.topEndButtons,
|
|
1628
|
-
|
|
1633
|
+
...$a.value
|
|
1629
1634
|
]
|
|
1630
1635
|
};
|
|
1631
|
-
}),
|
|
1632
|
-
if (
|
|
1636
|
+
}), na = (e, u) => typeof t.useItemSlot == "function" ? t.useItemSlot({ item: e, index: u }) === !0 : t.useItemSlot, Pa = r(() => {
|
|
1637
|
+
if (we.value !== Le.Calendar || !ze.value || typeof ze.value > "u") return [];
|
|
1633
1638
|
let e = [], u = [];
|
|
1634
|
-
return s.value.forEach((
|
|
1635
|
-
var
|
|
1636
|
-
let
|
|
1637
|
-
(
|
|
1638
|
-
let
|
|
1639
|
-
|
|
1640
|
-
const
|
|
1641
|
-
let
|
|
1642
|
-
u.includes(
|
|
1643
|
-
date:
|
|
1639
|
+
return s.value.forEach((N) => {
|
|
1640
|
+
var h;
|
|
1641
|
+
let $ = N[ze.value.key], _ = ln("Y-m-d H:i:s", $), z;
|
|
1642
|
+
(h = Tt.value) != null && h.key && (z = N[Tt.value.key]);
|
|
1643
|
+
let Xe = {};
|
|
1644
|
+
z && t.calendarGroups && typeof t.calendarGroups[z] == "object" && (Xe = t.calendarGroups[z]);
|
|
1645
|
+
const Ge = [_, z].join("-");
|
|
1646
|
+
let Ve = -1;
|
|
1647
|
+
u.includes(Ge) ? Ve = u.findIndex((m) => m === Ge) : (Ve = u.length, u.push(Ge), e.push({
|
|
1648
|
+
date: $,
|
|
1644
1649
|
data: {
|
|
1645
1650
|
items: []
|
|
1646
1651
|
},
|
|
1647
1652
|
dot: {
|
|
1648
|
-
...
|
|
1649
|
-
class: `lkt-calendar-group--${
|
|
1653
|
+
...Xe,
|
|
1654
|
+
class: `lkt-calendar-group--${z}`
|
|
1650
1655
|
}
|
|
1651
|
-
})), e[
|
|
1656
|
+
})), e[Ve].data.items.push(N);
|
|
1652
1657
|
}), e;
|
|
1653
|
-
}),
|
|
1658
|
+
}), _a = {
|
|
1654
1659
|
dayPicked: (e) => {
|
|
1655
1660
|
var u;
|
|
1656
1661
|
typeof ((u = t.calendar.events) == null ? void 0 : u.dayPicked) == "function" && t.calendar.events.dayPicked(e);
|
|
1657
1662
|
},
|
|
1658
1663
|
visibleMonthChanged: (e) => {
|
|
1659
1664
|
var u;
|
|
1660
|
-
typeof ((u = t.calendar.events) == null ? void 0 : u.visibleMonthChanged) == "function" && t.calendar.events.visibleMonthChanged(e);
|
|
1665
|
+
typeof ((u = t.calendar.events) == null ? void 0 : u.visibleMonthChanged) == "function" && t.calendar.events.visibleMonthChanged(e), $e.value = e.visibleDate;
|
|
1661
1666
|
}
|
|
1662
1667
|
};
|
|
1663
1668
|
return (e, u) => {
|
|
1664
|
-
const
|
|
1665
|
-
return p(),
|
|
1669
|
+
const N = he("lkt-header"), $ = he("lkt-button"), _ = he("lkt-accordion"), z = he("lkt-calendar"), Xe = he("lkt-loader"), Ge = he("lkt-paginator");
|
|
1670
|
+
return p(), C("section", {
|
|
1666
1671
|
ref_key: "element",
|
|
1667
1672
|
ref: ie,
|
|
1668
1673
|
class: "lkt-table-page",
|
|
1669
|
-
id: "lkt-table-page-" + b(
|
|
1674
|
+
id: "lkt-table-page-" + b(ee)
|
|
1670
1675
|
}, [
|
|
1671
|
-
|
|
1676
|
+
Ma.value ? (p(), O(N, me(X({ key: 0 }, Fa.value)), null, 16)) : ut.value || b(n).title ? (p(), C("header", {
|
|
1672
1677
|
key: 1,
|
|
1673
1678
|
class: Z(e.headerClass)
|
|
1674
1679
|
}, [
|
|
1675
|
-
|
|
1680
|
+
ut.value ? (p(), O(be(Pt.value), { key: 0 }, {
|
|
1676
1681
|
default: P(() => [
|
|
1677
|
-
e.titleIcon ? (p(),
|
|
1682
|
+
e.titleIcon ? (p(), C("i", {
|
|
1678
1683
|
key: 0,
|
|
1679
1684
|
class: Z(e.titleIcon)
|
|
1680
1685
|
}, null, 2)) : R("", !0),
|
|
1681
|
-
|
|
1686
|
+
et(" " + tt(ut.value), 1)
|
|
1682
1687
|
]),
|
|
1683
1688
|
_: 1
|
|
1684
1689
|
})) : R("", !0),
|
|
1685
|
-
b(n).title ?
|
|
1690
|
+
b(n).title ? F(e.$slots, "title", { key: 1 }) : R("", !0)
|
|
1686
1691
|
], 2)) : R("", !0),
|
|
1687
|
-
(p(), O(
|
|
1692
|
+
(p(), O(be(wt.value), {
|
|
1688
1693
|
class: Z(["lkt-table-page-content-wrapper", e.wrapContentClass])
|
|
1689
1694
|
}, {
|
|
1690
1695
|
default: P(() => {
|
|
1691
|
-
var
|
|
1696
|
+
var Ve;
|
|
1692
1697
|
return [
|
|
1693
|
-
|
|
1694
|
-
e.groupButton !== !1 ? (p(), O(
|
|
1698
|
+
Ye(ye("div", Hn, [
|
|
1699
|
+
e.groupButton !== !1 ? (p(), O($, X({
|
|
1695
1700
|
key: 0,
|
|
1696
1701
|
ref: "groupButton"
|
|
1697
|
-
},
|
|
1702
|
+
}, Ot.value, { class: "lkt-item-crud-group-button" }), {
|
|
1698
1703
|
split: P(() => [
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
checked:
|
|
1702
|
-
"onUpdate:checked": u[0] || (u[0] = (
|
|
1704
|
+
ye("div", qn, [
|
|
1705
|
+
Ye(ge($, X(W.value, {
|
|
1706
|
+
checked: I.value,
|
|
1707
|
+
"onUpdate:checked": u[0] || (u[0] = (h) => I.value = h)
|
|
1703
1708
|
}), null, 16, ["checked"]), [
|
|
1704
|
-
[
|
|
1709
|
+
[We, Ee.value]
|
|
1705
1710
|
])
|
|
1706
1711
|
]),
|
|
1707
|
-
b(n)["prev-buttons-ever"] ?
|
|
1712
|
+
b(n)["prev-buttons-ever"] ? F(e.$slots, "prev-buttons-ever", {
|
|
1708
1713
|
key: 0,
|
|
1709
|
-
canUpdate:
|
|
1710
|
-
canDrop:
|
|
1714
|
+
canUpdate: ae.value,
|
|
1715
|
+
canDrop: le.value,
|
|
1711
1716
|
perms: e.perms
|
|
1712
1717
|
}) : R("", !0),
|
|
1713
|
-
b(n)["prev-buttons"] ?
|
|
1718
|
+
b(n)["prev-buttons"] ? F(e.$slots, "prev-buttons", {
|
|
1714
1719
|
key: 1,
|
|
1715
|
-
canUpdate:
|
|
1716
|
-
canDrop:
|
|
1720
|
+
canUpdate: ae.value,
|
|
1721
|
+
canDrop: le.value,
|
|
1717
1722
|
perms: e.perms
|
|
1718
1723
|
}) : R("", !0),
|
|
1719
|
-
|
|
1724
|
+
Ye(ge($, X({
|
|
1720
1725
|
class: "lkt-table--save-button",
|
|
1721
1726
|
ref_key: "saveButtonRef",
|
|
1722
1727
|
ref: re
|
|
1723
1728
|
}, {
|
|
1724
|
-
...
|
|
1725
|
-
disabled:
|
|
1726
|
-
resourceData:
|
|
1729
|
+
...x.value,
|
|
1730
|
+
disabled: He.value,
|
|
1731
|
+
resourceData: pt.value
|
|
1727
1732
|
}, {
|
|
1728
|
-
onLoading:
|
|
1729
|
-
onLoaded:
|
|
1730
|
-
onClick:
|
|
1733
|
+
onLoading: J,
|
|
1734
|
+
onLoaded: Q,
|
|
1735
|
+
onClick: Bt
|
|
1731
1736
|
}), {
|
|
1732
|
-
split: P(({ doClose:
|
|
1733
|
-
|
|
1734
|
-
doClose:
|
|
1737
|
+
split: P(({ doClose: h, doRootClick: m }) => [
|
|
1738
|
+
F(e.$slots, "button-save-split", {
|
|
1739
|
+
doClose: h,
|
|
1735
1740
|
doRootClick: m,
|
|
1736
1741
|
dataState: c.value,
|
|
1737
|
-
onButtonLoading:
|
|
1738
|
-
onButtonLoaded:
|
|
1742
|
+
onButtonLoading: J,
|
|
1743
|
+
onButtonLoaded: Q
|
|
1739
1744
|
})
|
|
1740
1745
|
]),
|
|
1741
1746
|
default: P(() => [
|
|
1742
|
-
b(n)["button-save"] ?
|
|
1747
|
+
b(n)["button-save"] ? F(e.$slots, "button-save", {
|
|
1743
1748
|
key: 0,
|
|
1744
1749
|
items: s.value,
|
|
1745
1750
|
editMode: e.editMode,
|
|
1746
|
-
canUpdate: !
|
|
1751
|
+
canUpdate: !He.value
|
|
1747
1752
|
}) : R("", !0)
|
|
1748
1753
|
]),
|
|
1749
1754
|
_: 3
|
|
1750
1755
|
}, 16), [
|
|
1751
|
-
[
|
|
1756
|
+
[We, Pe.value]
|
|
1752
1757
|
]),
|
|
1753
|
-
|
|
1758
|
+
ht.value && s.value.length >= e.requiredItemsForTopCreate ? (p(), O(Yt, {
|
|
1754
1759
|
key: 2,
|
|
1755
|
-
config:
|
|
1756
|
-
disabled: !
|
|
1757
|
-
onClick:
|
|
1758
|
-
onAppend:
|
|
1760
|
+
config: Ie.value,
|
|
1761
|
+
disabled: !Gt.value,
|
|
1762
|
+
onClick: L,
|
|
1763
|
+
onAppend: K
|
|
1759
1764
|
}, null, 8, ["config", "disabled"])) : R("", !0)
|
|
1760
1765
|
]),
|
|
1761
1766
|
_: 3
|
|
1762
1767
|
}, 16)) : R("", !0),
|
|
1763
|
-
b(n)["prev-buttons-ever"] ?
|
|
1768
|
+
b(n)["prev-buttons-ever"] ? F(e.$slots, "prev-buttons-ever", {
|
|
1764
1769
|
key: 1,
|
|
1765
|
-
canUpdate:
|
|
1766
|
-
canDrop:
|
|
1770
|
+
canUpdate: ae.value,
|
|
1771
|
+
canDrop: le.value,
|
|
1767
1772
|
perms: e.perms
|
|
1768
1773
|
}) : R("", !0),
|
|
1769
|
-
b(n)["prev-buttons"] ?
|
|
1774
|
+
b(n)["prev-buttons"] ? F(e.$slots, "prev-buttons", {
|
|
1770
1775
|
key: 2,
|
|
1771
|
-
canUpdate:
|
|
1772
|
-
canDrop:
|
|
1776
|
+
canUpdate: ae.value,
|
|
1777
|
+
canDrop: le.value,
|
|
1773
1778
|
perms: e.perms
|
|
1774
1779
|
}) : R("", !0),
|
|
1775
|
-
|
|
1780
|
+
Ye(ge($, X({
|
|
1776
1781
|
class: "lkt-table--save-button",
|
|
1777
1782
|
ref_key: "saveButtonRef",
|
|
1778
1783
|
ref: re
|
|
1779
1784
|
}, {
|
|
1780
|
-
...
|
|
1781
|
-
disabled:
|
|
1782
|
-
resourceData:
|
|
1785
|
+
...x.value,
|
|
1786
|
+
disabled: He.value,
|
|
1787
|
+
resourceData: pt.value
|
|
1783
1788
|
}, {
|
|
1784
|
-
onLoading:
|
|
1785
|
-
onLoaded:
|
|
1786
|
-
onClick:
|
|
1789
|
+
onLoading: J,
|
|
1790
|
+
onLoaded: Q,
|
|
1791
|
+
onClick: Bt
|
|
1787
1792
|
}), {
|
|
1788
|
-
split: P(({ doClose:
|
|
1789
|
-
|
|
1790
|
-
doClose:
|
|
1793
|
+
split: P(({ doClose: h, doRootClick: m }) => [
|
|
1794
|
+
F(e.$slots, "button-save-split", {
|
|
1795
|
+
doClose: h,
|
|
1791
1796
|
doRootClick: m,
|
|
1792
1797
|
dataState: c.value,
|
|
1793
|
-
onButtonLoading:
|
|
1794
|
-
onButtonLoaded:
|
|
1798
|
+
onButtonLoading: J,
|
|
1799
|
+
onButtonLoaded: Q
|
|
1795
1800
|
})
|
|
1796
1801
|
]),
|
|
1797
1802
|
default: P(() => [
|
|
1798
|
-
b(n)["button-save"] ?
|
|
1803
|
+
b(n)["button-save"] ? F(e.$slots, "button-save", {
|
|
1799
1804
|
key: 0,
|
|
1800
1805
|
items: s.value,
|
|
1801
1806
|
editMode: e.editMode,
|
|
1802
|
-
canUpdate: !
|
|
1807
|
+
canUpdate: !He.value
|
|
1803
1808
|
}) : R("", !0)
|
|
1804
1809
|
]),
|
|
1805
1810
|
_: 3
|
|
1806
1811
|
}, 16), [
|
|
1807
|
-
[
|
|
1812
|
+
[We, Pe.value]
|
|
1808
1813
|
]),
|
|
1809
|
-
|
|
1814
|
+
ht.value && s.value.length >= e.requiredItemsForTopCreate ? (p(), O(Yt, {
|
|
1810
1815
|
key: 3,
|
|
1811
|
-
config:
|
|
1812
|
-
disabled: !
|
|
1813
|
-
onClick:
|
|
1814
|
-
onAppend:
|
|
1816
|
+
config: Ie.value,
|
|
1817
|
+
disabled: !Gt.value,
|
|
1818
|
+
onClick: L,
|
|
1819
|
+
onAppend: K
|
|
1815
1820
|
}, null, 8, ["config", "disabled"])) : R("", !0),
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
checked:
|
|
1819
|
-
"onUpdate:checked": u[1] || (u[1] = (
|
|
1821
|
+
ye("div", Kn, [
|
|
1822
|
+
Ye(ge($, X(W.value, {
|
|
1823
|
+
checked: I.value,
|
|
1824
|
+
"onUpdate:checked": u[1] || (u[1] = (h) => I.value = h)
|
|
1820
1825
|
}), null, 16, ["checked"]), [
|
|
1821
|
-
[
|
|
1826
|
+
[We, Ee.value]
|
|
1822
1827
|
])
|
|
1823
1828
|
])
|
|
1824
1829
|
], 512), [
|
|
1825
|
-
[
|
|
1830
|
+
[We, ft.value]
|
|
1826
1831
|
]),
|
|
1827
|
-
b(n).buttons ? (p(),
|
|
1828
|
-
|
|
1832
|
+
b(n).buttons ? (p(), C("div", Xn, [
|
|
1833
|
+
F(e.$slots, "buttons")
|
|
1829
1834
|
])) : R("", !0),
|
|
1830
|
-
V.value && b(n).filters ? (p(),
|
|
1831
|
-
|
|
1835
|
+
V.value && b(n).filters ? (p(), C("div", Yn, [
|
|
1836
|
+
F(e.$slots, "filters", {
|
|
1832
1837
|
items: s.value,
|
|
1833
1838
|
isLoading: g.value
|
|
1834
1839
|
})
|
|
1835
1840
|
])) : R("", !0),
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
e.hideTableHeader ? R("", !0) : (p(),
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
e.addNavigation &&
|
|
1842
|
-
(p(!0),
|
|
1843
|
-
|
|
1841
|
+
Ye(ye("div", Wn, [
|
|
1842
|
+
we.value === b(Le).Table ? (p(), C("table", Jn, [
|
|
1843
|
+
e.hideTableHeader ? R("", !0) : (p(), C("thead", Qn, [
|
|
1844
|
+
ye("tr", null, [
|
|
1845
|
+
st.value && I.value ? (p(), C("th", Zn)) : R("", !0),
|
|
1846
|
+
e.addNavigation && I.value ? (p(), C("th", xn)) : R("", !0),
|
|
1847
|
+
(p(!0), C(H, null, De(Fe.value, (h) => (p(), C(H, null, [
|
|
1848
|
+
vt.value.indexOf(h.key) === -1 ? (p(), O(zn, {
|
|
1844
1849
|
key: 0,
|
|
1845
|
-
column:
|
|
1846
|
-
"sort-by":
|
|
1850
|
+
column: h,
|
|
1851
|
+
"sort-by": S.value,
|
|
1847
1852
|
"sort-direction": D.value,
|
|
1848
1853
|
"amount-of-columns": e.columns.length,
|
|
1849
1854
|
items: s.value,
|
|
1850
|
-
onClick: (m) =>
|
|
1855
|
+
onClick: (m) => d(h)
|
|
1851
1856
|
}, null, 8, ["column", "sort-by", "sort-direction", "amount-of-columns", "items", "onClick"])) : R("", !0)
|
|
1852
1857
|
], 64))), 256))
|
|
1853
1858
|
])
|
|
1854
1859
|
])),
|
|
1855
|
-
|
|
1860
|
+
ye("tbody", {
|
|
1856
1861
|
ref_key: "tableBody",
|
|
1857
1862
|
ref: v,
|
|
1858
|
-
id: "lkt-table-body-" + b(
|
|
1863
|
+
id: "lkt-table-body-" + b(ee),
|
|
1859
1864
|
class: Z(e.itemsContainerClass)
|
|
1860
1865
|
}, [
|
|
1861
|
-
(p(!0),
|
|
1866
|
+
(p(!0), C(H, null, De(s.value, (h, m) => Ye((p(), O(Un, {
|
|
1862
1867
|
modelValue: s.value[m],
|
|
1863
|
-
"onUpdate:modelValue": (
|
|
1864
|
-
key:
|
|
1868
|
+
"onUpdate:modelValue": (M) => s.value[m] = M,
|
|
1869
|
+
key: At(h, m),
|
|
1865
1870
|
i: m,
|
|
1866
|
-
"is-draggable":
|
|
1867
|
-
sortable:
|
|
1868
|
-
"visible-columns":
|
|
1869
|
-
"empty-columns":
|
|
1871
|
+
"is-draggable": E(h),
|
|
1872
|
+
sortable: st.value,
|
|
1873
|
+
"visible-columns": Fe.value,
|
|
1874
|
+
"empty-columns": vt.value,
|
|
1870
1875
|
"add-navigation": e.addNavigation,
|
|
1871
|
-
"latest-row": m + 1 ===
|
|
1872
|
-
"can-drop":
|
|
1873
|
-
"can-edit":
|
|
1874
|
-
"can-read":
|
|
1876
|
+
"latest-row": m + 1 === Ft.value,
|
|
1877
|
+
"can-drop": le.value && I.value,
|
|
1878
|
+
"can-edit": mt.value && ae.value && I.value,
|
|
1879
|
+
"can-read": _e.value,
|
|
1875
1880
|
"can-create": ve.value,
|
|
1876
|
-
"edit-mode-enabled":
|
|
1877
|
-
"has-inline-edit-perm":
|
|
1881
|
+
"edit-mode-enabled": I.value,
|
|
1882
|
+
"has-inline-edit-perm": fe.value,
|
|
1878
1883
|
"row-display-type": e.rowDisplayType,
|
|
1879
|
-
"render-drag":
|
|
1880
|
-
"disabled-drag":
|
|
1884
|
+
"render-drag": La.value,
|
|
1885
|
+
"disabled-drag": Na.value,
|
|
1881
1886
|
"is-loading": g.value,
|
|
1882
1887
|
"item-container-class": e.itemContainerClass,
|
|
1883
|
-
"item-slot-component":
|
|
1884
|
-
"item-slot-data":
|
|
1888
|
+
"item-slot-component": Ke.value,
|
|
1889
|
+
"item-slot-data": Rt.value,
|
|
1885
1890
|
"item-slot-events": e.itemSlotEvents,
|
|
1886
1891
|
permissions: A.value,
|
|
1887
|
-
onClick:
|
|
1888
|
-
onItemUp:
|
|
1889
|
-
onItemDown:
|
|
1890
|
-
onItemDrop:
|
|
1891
|
-
},
|
|
1892
|
-
b(n)[`item-${m}`] &&
|
|
1892
|
+
onClick: k,
|
|
1893
|
+
onItemUp: jt,
|
|
1894
|
+
onItemDown: Ba,
|
|
1895
|
+
onItemDrop: bt
|
|
1896
|
+
}, Ya({ _: 2 }, [
|
|
1897
|
+
b(n)[`item-${m}`] && na(e.row, m) ? {
|
|
1893
1898
|
name: `item-${m}`,
|
|
1894
|
-
fn: P((
|
|
1895
|
-
|
|
1896
|
-
[e.slotItemVar || ""]:
|
|
1899
|
+
fn: P((M) => [
|
|
1900
|
+
F(e.$slots, `item-${m}`, me({
|
|
1901
|
+
[e.slotItemVar || ""]: M.item,
|
|
1897
1902
|
index: m,
|
|
1898
|
-
editing:
|
|
1899
|
-
canCreate:
|
|
1900
|
-
canRead:
|
|
1901
|
-
canUpdate:
|
|
1902
|
-
canDrop:
|
|
1903
|
-
isLoading:
|
|
1904
|
-
doDrop:
|
|
1903
|
+
editing: M.editing,
|
|
1904
|
+
canCreate: M.canCreate,
|
|
1905
|
+
canRead: M.canRead,
|
|
1906
|
+
canUpdate: M.canUpdate,
|
|
1907
|
+
canDrop: M.canDrop,
|
|
1908
|
+
isLoading: M.isLoading,
|
|
1909
|
+
doDrop: M.doDrop
|
|
1905
1910
|
}))
|
|
1906
1911
|
]),
|
|
1907
1912
|
key: "0"
|
|
1908
|
-
} : b(n).item &&
|
|
1913
|
+
} : b(n).item && na(e.row, m) ? {
|
|
1909
1914
|
name: "item",
|
|
1910
|
-
fn: P((
|
|
1911
|
-
|
|
1912
|
-
[e.slotItemVar || ""]:
|
|
1915
|
+
fn: P((M) => [
|
|
1916
|
+
F(e.$slots, "item", me({
|
|
1917
|
+
[e.slotItemVar || ""]: M.item,
|
|
1913
1918
|
index: m,
|
|
1914
|
-
editing:
|
|
1915
|
-
canCreate:
|
|
1916
|
-
canRead:
|
|
1917
|
-
canUpdate:
|
|
1918
|
-
canDrop:
|
|
1919
|
-
isLoading:
|
|
1920
|
-
doDrop:
|
|
1919
|
+
editing: M.editing,
|
|
1920
|
+
canCreate: M.canCreate,
|
|
1921
|
+
canRead: M.canRead,
|
|
1922
|
+
canUpdate: M.canUpdate,
|
|
1923
|
+
canDrop: M.canDrop,
|
|
1924
|
+
isLoading: M.isLoading,
|
|
1925
|
+
doDrop: M.doDrop
|
|
1921
1926
|
}))
|
|
1922
1927
|
]),
|
|
1923
1928
|
key: "1"
|
|
1924
1929
|
} : void 0,
|
|
1925
|
-
|
|
1926
|
-
name:
|
|
1927
|
-
fn: P((
|
|
1928
|
-
|
|
1929
|
-
[e.slotItemVar || ""]:
|
|
1930
|
-
value:
|
|
1931
|
-
column:
|
|
1930
|
+
De(rt.value, (M) => ({
|
|
1931
|
+
name: M,
|
|
1932
|
+
fn: P((dt) => [
|
|
1933
|
+
F(e.$slots, M, me({
|
|
1934
|
+
[e.slotItemVar || ""]: dt.item,
|
|
1935
|
+
value: dt.value,
|
|
1936
|
+
column: dt.column
|
|
1932
1937
|
}))
|
|
1933
1938
|
])
|
|
1934
1939
|
}))
|
|
1935
1940
|
]), 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"])), [
|
|
1936
|
-
[
|
|
1941
|
+
[We, kt(s.value[m], m)]
|
|
1937
1942
|
])), 128))
|
|
1938
|
-
], 10,
|
|
1939
|
-
])) :
|
|
1943
|
+
], 10, el)
|
|
1944
|
+
])) : we.value === b(Le).Item ? (p(), C("div", {
|
|
1940
1945
|
key: 1,
|
|
1941
1946
|
ref_key: "tableBody",
|
|
1942
1947
|
ref: v,
|
|
1943
|
-
id: "lkt-table-body-" + b(
|
|
1948
|
+
id: "lkt-table-body-" + b(ee),
|
|
1944
1949
|
class: Z(["lkt-table-items-container", e.itemsContainerClass])
|
|
1945
1950
|
}, [
|
|
1946
|
-
(p(!0),
|
|
1947
|
-
key:
|
|
1951
|
+
(p(!0), C(H, null, De(s.value, (h, m) => (p(), C(H, {
|
|
1952
|
+
key: At(h, m)
|
|
1948
1953
|
}, [
|
|
1949
|
-
!e.skipTableItemsContainer &&
|
|
1954
|
+
!e.skipTableItemsContainer && kt(h, m) ? (p(), C("div", {
|
|
1950
1955
|
key: 0,
|
|
1951
|
-
class: Z(["lkt-table-item",
|
|
1956
|
+
class: Z(["lkt-table-item", Vt(h, m)]),
|
|
1957
|
+
style: ra(aa(h, m)),
|
|
1952
1958
|
"data-i": m
|
|
1953
1959
|
}, [
|
|
1954
|
-
|
|
1960
|
+
Ke.value ? (p(), O(be(Ke.value), X({
|
|
1955
1961
|
key: 0,
|
|
1956
1962
|
ref_for: !0
|
|
1957
1963
|
}, {
|
|
1958
|
-
item:
|
|
1964
|
+
item: h,
|
|
1959
1965
|
index: m,
|
|
1960
|
-
editing:
|
|
1966
|
+
editing: I.value,
|
|
1961
1967
|
perms: A.value,
|
|
1962
|
-
data:
|
|
1968
|
+
data: Rt.value,
|
|
1963
1969
|
events: e.itemSlotEvents
|
|
1964
|
-
}), null, 16)) :
|
|
1970
|
+
}), null, 16)) : F(e.$slots, "item", me({
|
|
1965
1971
|
key: 1,
|
|
1966
|
-
[e.slotItemVar || ""]:
|
|
1972
|
+
[e.slotItemVar || ""]: h,
|
|
1967
1973
|
index: m,
|
|
1968
|
-
editing:
|
|
1974
|
+
editing: I.value,
|
|
1969
1975
|
canCreate: ve.value,
|
|
1970
|
-
canRead:
|
|
1971
|
-
canUpdate:
|
|
1972
|
-
canDrop:
|
|
1976
|
+
canRead: _e.value,
|
|
1977
|
+
canUpdate: ae.value,
|
|
1978
|
+
canDrop: le.value,
|
|
1973
1979
|
isLoading: g.value,
|
|
1974
|
-
doDrop: () =>
|
|
1980
|
+
doDrop: () => bt(m)
|
|
1975
1981
|
}))
|
|
1976
|
-
],
|
|
1982
|
+
], 14, al)) : kt(h, m) ? F(e.$slots, "item", me({
|
|
1977
1983
|
key: 1,
|
|
1978
|
-
class:
|
|
1984
|
+
class: Vt(h, m),
|
|
1979
1985
|
dataI: m,
|
|
1980
|
-
[e.slotItemVar || ""]:
|
|
1986
|
+
[e.slotItemVar || ""]: h,
|
|
1981
1987
|
index: m,
|
|
1982
|
-
editing:
|
|
1988
|
+
editing: I.value,
|
|
1983
1989
|
canCreate: ve.value,
|
|
1984
|
-
canRead:
|
|
1985
|
-
canUpdate:
|
|
1986
|
-
canDrop:
|
|
1990
|
+
canRead: _e.value,
|
|
1991
|
+
canUpdate: ae.value,
|
|
1992
|
+
canDrop: le.value,
|
|
1987
1993
|
isLoading: g.value,
|
|
1988
|
-
doDrop: () =>
|
|
1994
|
+
doDrop: () => bt(m)
|
|
1989
1995
|
})) : R("", !0)
|
|
1990
1996
|
], 64))), 128))
|
|
1991
|
-
], 10,
|
|
1997
|
+
], 10, tl)) : we.value === b(Le).Accordion ? (p(), C("div", {
|
|
1992
1998
|
key: 2,
|
|
1993
1999
|
ref_key: "tableBody",
|
|
1994
2000
|
ref: v,
|
|
1995
|
-
id: "lkt-table-body-" + b(
|
|
2001
|
+
id: "lkt-table-body-" + b(ee),
|
|
1996
2002
|
class: Z(["lkt-table-items-container", e.itemsContainerClass])
|
|
1997
2003
|
}, [
|
|
1998
|
-
(p(!0),
|
|
1999
|
-
[b(
|
|
2004
|
+
(p(!0), C(H, null, De(s.value, (h, m) => (p(), C(H, null, [
|
|
2005
|
+
[b(Te).Auto, b(Te).PreferCustomItem].includes(e.rowDisplayType) && b(n)[It(h, m)] ? F(e.$slots, It(h, m), {
|
|
2000
2006
|
key: 0,
|
|
2001
|
-
item:
|
|
2007
|
+
item: h,
|
|
2002
2008
|
index: m,
|
|
2003
|
-
editing:
|
|
2009
|
+
editing: I.value,
|
|
2004
2010
|
isLoading: g.value
|
|
2005
|
-
}) : [b(
|
|
2011
|
+
}) : [b(Te).Auto, b(Te).PreferCustomItem].includes(e.rowDisplayType) && b(n)[`item-${m}`] ? F(e.$slots, `item-${m}`, {
|
|
2006
2012
|
key: 1,
|
|
2007
|
-
item:
|
|
2013
|
+
item: h,
|
|
2008
2014
|
index: m,
|
|
2009
|
-
editing:
|
|
2015
|
+
editing: I.value,
|
|
2010
2016
|
isLoading: g.value
|
|
2011
|
-
}) : (p(),
|
|
2012
|
-
|
|
2013
|
-
class: ["lkt-table-item",
|
|
2017
|
+
}) : (p(), C(H, { key: 2 }, [
|
|
2018
|
+
kt(h, m) ? (p(), O(_, X({
|
|
2019
|
+
class: ["lkt-table-item", Vt(h, m)],
|
|
2014
2020
|
"data-i": m,
|
|
2015
|
-
key:
|
|
2021
|
+
key: At(h, m)
|
|
2016
2022
|
}, { ref_for: !0 }, {
|
|
2017
2023
|
...e.accordion,
|
|
2018
|
-
title:
|
|
2024
|
+
title: Aa(h)
|
|
2019
2025
|
}), {
|
|
2020
2026
|
header: P(() => [
|
|
2021
|
-
|
|
2027
|
+
ge(Zt, {
|
|
2022
2028
|
modelValue: s.value[m],
|
|
2023
|
-
"onUpdate:modelValue": (
|
|
2029
|
+
"onUpdate:modelValue": (M) => s.value[m] = M,
|
|
2024
2030
|
i: m,
|
|
2025
|
-
column:
|
|
2026
|
-
columns:
|
|
2027
|
-
"edit-mode-enabled":
|
|
2028
|
-
"has-inline-edit-perm":
|
|
2031
|
+
column: Ae.value,
|
|
2032
|
+
columns: Fe.value,
|
|
2033
|
+
"edit-mode-enabled": I.value,
|
|
2034
|
+
"has-inline-edit-perm": fe.value
|
|
2029
2035
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "i", "column", "columns", "edit-mode-enabled", "has-inline-edit-perm"])
|
|
2030
2036
|
]),
|
|
2031
2037
|
default: P(() => [
|
|
2032
|
-
(p(!0),
|
|
2033
|
-
var
|
|
2034
|
-
return p(),
|
|
2035
|
-
|
|
2038
|
+
(p(!0), C(H, null, De(Fe.value, (M) => {
|
|
2039
|
+
var dt, ia;
|
|
2040
|
+
return p(), C(H, null, [
|
|
2041
|
+
M.key !== ((dt = Ae.value) == null ? void 0 : dt.key) && e.$slots[M.key] && b(Ta)(M, s.value[m]) ? F(e.$slots, M.key, {
|
|
2036
2042
|
key: 0,
|
|
2037
|
-
value: s.value[m][
|
|
2043
|
+
value: s.value[m][M.key],
|
|
2038
2044
|
item: s.value[m],
|
|
2039
|
-
column:
|
|
2045
|
+
column: M,
|
|
2040
2046
|
i: m
|
|
2041
|
-
}) : (p(),
|
|
2042
|
-
|
|
2047
|
+
}) : (p(), C(H, { key: 1 }, [
|
|
2048
|
+
M.key !== ((ia = Ae.value) == null ? void 0 : ia.key) ? (p(), O(Zt, {
|
|
2043
2049
|
key: 0,
|
|
2044
2050
|
modelValue: s.value[m],
|
|
2045
|
-
"onUpdate:modelValue": (
|
|
2051
|
+
"onUpdate:modelValue": (Ua) => s.value[m] = Ua,
|
|
2046
2052
|
i: m,
|
|
2047
|
-
column:
|
|
2048
|
-
columns:
|
|
2049
|
-
"edit-mode-enabled":
|
|
2050
|
-
"has-inline-edit-perm":
|
|
2053
|
+
column: M,
|
|
2054
|
+
columns: Fe.value,
|
|
2055
|
+
"edit-mode-enabled": I.value,
|
|
2056
|
+
"has-inline-edit-perm": fe.value
|
|
2051
2057
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "i", "column", "columns", "edit-mode-enabled", "has-inline-edit-perm"])) : R("", !0)
|
|
2052
2058
|
], 64))
|
|
2053
2059
|
], 64);
|
|
@@ -2057,101 +2063,102 @@ const Dn = ["data-i", "data-draggable"], In = ["data-role", "data-i"], Tn = {
|
|
|
2057
2063
|
}, 1040, ["class", "data-i"])) : R("", !0)
|
|
2058
2064
|
], 64))
|
|
2059
2065
|
], 64))), 256))
|
|
2060
|
-
], 10,
|
|
2066
|
+
], 10, nl)) : Ea.value ? (p(), O(be(we.value), {
|
|
2061
2067
|
key: 3,
|
|
2062
2068
|
class: Z(["lkt-table-items-container", e.itemsContainerClass])
|
|
2063
2069
|
}, {
|
|
2064
2070
|
default: P(() => [
|
|
2065
|
-
(p(!0),
|
|
2066
|
-
key:
|
|
2071
|
+
(p(!0), C(H, null, De(s.value, (h, m) => (p(), C(H, {
|
|
2072
|
+
key: At(h, m)
|
|
2067
2073
|
}, [
|
|
2068
|
-
|
|
2074
|
+
kt(h, m) ? (p(), C("li", {
|
|
2069
2075
|
key: 0,
|
|
2070
|
-
class: Z(["lkt-table-item",
|
|
2071
|
-
"data-i": m
|
|
2076
|
+
class: Z(["lkt-table-item", Vt(h, m)]),
|
|
2077
|
+
"data-i": m,
|
|
2078
|
+
style: ra(aa(h, m))
|
|
2072
2079
|
}, [
|
|
2073
|
-
|
|
2080
|
+
Ke.value ? (p(), O(be(Ke.value), X({
|
|
2074
2081
|
key: 0,
|
|
2075
2082
|
ref_for: !0
|
|
2076
2083
|
}, {
|
|
2077
|
-
item:
|
|
2084
|
+
item: h,
|
|
2078
2085
|
index: m,
|
|
2079
|
-
editing:
|
|
2086
|
+
editing: I.value,
|
|
2080
2087
|
perms: A.value,
|
|
2081
|
-
data:
|
|
2088
|
+
data: Rt.value,
|
|
2082
2089
|
events: e.itemSlotEvents
|
|
2083
|
-
}), null, 16)) :
|
|
2090
|
+
}), null, 16)) : F(e.$slots, "item", me({
|
|
2084
2091
|
key: 1,
|
|
2085
|
-
[e.slotItemVar || ""]:
|
|
2092
|
+
[e.slotItemVar || ""]: h,
|
|
2086
2093
|
index: m,
|
|
2087
|
-
editing:
|
|
2094
|
+
editing: I.value,
|
|
2088
2095
|
canCreate: ve.value,
|
|
2089
|
-
canRead:
|
|
2090
|
-
canUpdate:
|
|
2091
|
-
canDrop:
|
|
2096
|
+
canRead: _e.value,
|
|
2097
|
+
canUpdate: ae.value,
|
|
2098
|
+
canDrop: le.value,
|
|
2092
2099
|
isLoading: g.value,
|
|
2093
|
-
doDrop: () =>
|
|
2100
|
+
doDrop: () => bt(m)
|
|
2094
2101
|
}))
|
|
2095
|
-
],
|
|
2102
|
+
], 14, ll)) : R("", !0)
|
|
2096
2103
|
], 64))), 128))
|
|
2097
2104
|
]),
|
|
2098
2105
|
_: 3
|
|
2099
|
-
}, 8, ["class"])) :
|
|
2106
|
+
}, 8, ["class"])) : we.value === b(Le).Carousel ? (p(), C("div", {
|
|
2100
2107
|
key: 4,
|
|
2101
2108
|
ref_key: "tableBody",
|
|
2102
2109
|
ref: v,
|
|
2103
|
-
id: "lkt-table-body-" + b(
|
|
2110
|
+
id: "lkt-table-body-" + b(ee),
|
|
2104
2111
|
class: Z(["lkt-table-items-container", e.itemsContainerClass])
|
|
2105
2112
|
}, [
|
|
2106
|
-
|
|
2113
|
+
ge(b(kn), X({
|
|
2107
2114
|
modelValue: se.value,
|
|
2108
|
-
"onUpdate:modelValue": u[2] || (u[2] = (
|
|
2115
|
+
"onUpdate:modelValue": u[2] || (u[2] = (h) => se.value = h)
|
|
2109
2116
|
}, e.carousel, {
|
|
2110
|
-
"wrap-around": ((
|
|
2117
|
+
"wrap-around": ((Ve = e.carousel) == null ? void 0 : Ve.infinite) === !0
|
|
2111
2118
|
}), {
|
|
2112
2119
|
addons: P(() => [
|
|
2113
|
-
|
|
2114
|
-
|
|
2120
|
+
ge(b(wn)),
|
|
2121
|
+
ge(b(Dn))
|
|
2115
2122
|
]),
|
|
2116
2123
|
default: P(() => [
|
|
2117
|
-
(p(!0),
|
|
2118
|
-
key:
|
|
2124
|
+
(p(!0), C(H, null, De(ce.value, (h, m) => (p(), O(b(fa), {
|
|
2125
|
+
key: h,
|
|
2119
2126
|
index: m
|
|
2120
2127
|
}, {
|
|
2121
2128
|
default: P(() => [
|
|
2122
|
-
|
|
2123
|
-
|
|
2129
|
+
ye("div", il, [
|
|
2130
|
+
F(e.$slots, h)
|
|
2124
2131
|
])
|
|
2125
2132
|
]),
|
|
2126
2133
|
_: 2
|
|
2127
2134
|
}, 1032, ["index"]))), 128)),
|
|
2128
|
-
(p(!0),
|
|
2135
|
+
(p(!0), C(H, null, De(s.value, (h, m) => (p(), O(b(fa), {
|
|
2129
2136
|
key: e.slide,
|
|
2130
2137
|
index: m
|
|
2131
2138
|
}, {
|
|
2132
2139
|
default: P(() => [
|
|
2133
|
-
|
|
2134
|
-
|
|
2140
|
+
ye("div", rl, [
|
|
2141
|
+
Ke.value ? (p(), O(be(Ke.value), X({
|
|
2135
2142
|
key: 0,
|
|
2136
2143
|
ref_for: !0
|
|
2137
2144
|
}, {
|
|
2138
|
-
item:
|
|
2145
|
+
item: h,
|
|
2139
2146
|
index: m,
|
|
2140
|
-
editing:
|
|
2147
|
+
editing: I.value,
|
|
2141
2148
|
perms: A.value,
|
|
2142
|
-
data:
|
|
2149
|
+
data: Rt.value,
|
|
2143
2150
|
events: e.itemSlotEvents
|
|
2144
|
-
}), null, 16)) :
|
|
2151
|
+
}), null, 16)) : F(e.$slots, "item", me({
|
|
2145
2152
|
key: 1,
|
|
2146
|
-
[e.slotItemVar || ""]:
|
|
2153
|
+
[e.slotItemVar || ""]: h,
|
|
2147
2154
|
index: m,
|
|
2148
|
-
editing:
|
|
2155
|
+
editing: I.value,
|
|
2149
2156
|
canCreate: ve.value,
|
|
2150
|
-
canRead:
|
|
2151
|
-
canUpdate:
|
|
2152
|
-
canDrop:
|
|
2157
|
+
canRead: _e.value,
|
|
2158
|
+
canUpdate: ae.value,
|
|
2159
|
+
canDrop: le.value,
|
|
2153
2160
|
isLoading: g.value,
|
|
2154
|
-
doDrop: () =>
|
|
2161
|
+
doDrop: () => bt(m)
|
|
2155
2162
|
}))
|
|
2156
2163
|
])
|
|
2157
2164
|
]),
|
|
@@ -2160,73 +2167,78 @@ const Dn = ["data-i", "data-draggable"], In = ["data-role", "data-i"], Tn = {
|
|
|
2160
2167
|
]),
|
|
2161
2168
|
_: 3
|
|
2162
2169
|
}, 16, ["modelValue", "wrap-around"])
|
|
2163
|
-
], 10,
|
|
2170
|
+
], 10, ol)) : we.value === b(Le).Calendar ? (p(), C("div", {
|
|
2164
2171
|
key: 5,
|
|
2165
2172
|
ref_key: "tableBody",
|
|
2166
2173
|
ref: v,
|
|
2167
|
-
id: "lkt-table-body-" + b(
|
|
2174
|
+
id: "lkt-table-body-" + b(ee),
|
|
2168
2175
|
class: Z(["lkt-table-items-container", e.itemsContainerClass])
|
|
2169
2176
|
}, [
|
|
2170
|
-
|
|
2177
|
+
ge(z, me(ga({
|
|
2171
2178
|
...e.calendar,
|
|
2172
|
-
items:
|
|
2173
|
-
events:
|
|
2179
|
+
items: Pa.value,
|
|
2180
|
+
events: _a
|
|
2174
2181
|
})), null, 16)
|
|
2175
|
-
], 10,
|
|
2182
|
+
], 10, ul)) : R("", !0)
|
|
2176
2183
|
], 512), [
|
|
2177
|
-
[
|
|
2184
|
+
[We, gt.value]
|
|
2178
2185
|
]),
|
|
2179
|
-
!g.value && s.value.length === 0 ? (p(),
|
|
2180
|
-
b(n).empty ?
|
|
2186
|
+
!g.value && s.value.length === 0 ? (p(), C("div", sl, [
|
|
2187
|
+
b(n).empty ? F(e.$slots, "empty", { key: 0 }) : Va.value ? (p(), O(be(Ra.value), {
|
|
2181
2188
|
key: 1,
|
|
2182
2189
|
message: e.noResultsText
|
|
2183
|
-
}, null, 8, ["message"])) : e.noResultsText ? (p(),
|
|
2184
|
-
|
|
2190
|
+
}, null, 8, ["message"])) : e.noResultsText ? (p(), C(H, { key: 2 }, [
|
|
2191
|
+
et(tt(e.noResultsText), 1)
|
|
2185
2192
|
], 64)) : R("", !0)
|
|
2186
2193
|
])) : R("", !0),
|
|
2187
|
-
g.value ? (p(), O(
|
|
2188
|
-
|
|
2189
|
-
|
|
2194
|
+
g.value ? (p(), O(Xe, { key: 3 })) : R("", !0),
|
|
2195
|
+
ht.value || b(n).bottomButtons ? (p(), C("div", dl, [
|
|
2196
|
+
ht.value && s.value.length >= e.requiredItemsForBottomCreate ? (p(), O(Yt, {
|
|
2190
2197
|
key: 0,
|
|
2191
|
-
config:
|
|
2192
|
-
disabled: !
|
|
2193
|
-
onClick:
|
|
2194
|
-
onAppend:
|
|
2198
|
+
config: Ie.value,
|
|
2199
|
+
disabled: !Gt.value,
|
|
2200
|
+
onClick: L,
|
|
2201
|
+
onAppend: K
|
|
2195
2202
|
}, null, 8, ["config", "disabled"])) : R("", !0),
|
|
2196
|
-
|
|
2203
|
+
F(e.$slots, "bottom-buttons")
|
|
2197
2204
|
])) : R("", !0),
|
|
2198
|
-
e.paginator && Object.keys(e.paginator).length > 0 ? (p(), O(
|
|
2205
|
+
e.paginator && Object.keys(e.paginator).length > 0 ? (p(), O(Ge, X({
|
|
2199
2206
|
key: 5,
|
|
2200
2207
|
ref_key: "paginatorRef",
|
|
2201
|
-
ref:
|
|
2202
|
-
},
|
|
2208
|
+
ref: lt
|
|
2209
|
+
}, {
|
|
2210
|
+
...e.paginator,
|
|
2211
|
+
timelineOldestDate: de.value,
|
|
2212
|
+
timelineNewestDate: q.value,
|
|
2213
|
+
timelineVisibleDate: $e.value
|
|
2214
|
+
}, {
|
|
2203
2215
|
modelValue: f.value,
|
|
2204
|
-
"onUpdate:modelValue": u[3] || (u[3] = (
|
|
2205
|
-
onLoading:
|
|
2206
|
-
onPerms:
|
|
2207
|
-
onResponse:
|
|
2216
|
+
"onUpdate:modelValue": u[3] || (u[3] = (h) => f.value = h),
|
|
2217
|
+
onLoading: ot,
|
|
2218
|
+
onPerms: $t,
|
|
2219
|
+
onResponse: Ce
|
|
2208
2220
|
}), null, 16, ["modelValue"])) : R("", !0),
|
|
2209
|
-
b(n)["web-element-actions"] ?
|
|
2221
|
+
b(n)["web-element-actions"] ? F(e.$slots, "web-element-actions", { key: 6 }) : R("", !0)
|
|
2210
2222
|
];
|
|
2211
2223
|
}),
|
|
2212
2224
|
_: 3
|
|
2213
2225
|
}, 8, ["class"]))
|
|
2214
|
-
], 8,
|
|
2226
|
+
], 8, Gn);
|
|
2215
2227
|
};
|
|
2216
2228
|
}
|
|
2217
|
-
}),
|
|
2229
|
+
}), hl = {
|
|
2218
2230
|
install: (a) => {
|
|
2219
|
-
a.component("lkt-table") === void 0 && a.component("lkt-table",
|
|
2231
|
+
a.component("lkt-table") === void 0 && a.component("lkt-table", cl);
|
|
2220
2232
|
}
|
|
2221
|
-
},
|
|
2222
|
-
|
|
2233
|
+
}, kl = (a) => (ke.navButtonSlot = a, !0), Sl = (a) => (ke.createButtonSlot = a, !0), Cl = (a) => {
|
|
2234
|
+
ke.defaultEmptySlot = a;
|
|
2223
2235
|
};
|
|
2224
2236
|
export {
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2237
|
+
Tl as Column,
|
|
2238
|
+
Il as createColumn,
|
|
2239
|
+
hl as default,
|
|
2240
|
+
Tn as defaultTableSorter,
|
|
2241
|
+
Sl as setTableCreateButtonSlot,
|
|
2242
|
+
Cl as setTableEmptySlot,
|
|
2243
|
+
kl as setTableNavButtonSlot
|
|
2232
2244
|
};
|