lkt-table 2.0.25 → 2.0.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/build.js +715 -701
- package/package.json +1 -1
- package/src/lib-components/LktTable.vue +18 -1
package/dist/build.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as re, computed as s, ref as
|
|
2
|
-
import { __ as
|
|
3
|
-
import { SortDirection as Ge, Column as sa, extractPropValue as Oa, ColumnType as
|
|
1
|
+
import { defineComponent as re, computed as s, ref as I, shallowReactive as qt, watch as F, watchEffect as Pt, onMounted as Yt, onBeforeUnmount as Aa, reactive as Ft, provide as ia, h as K, useId as Va, inject as kt, getCurrentInstance as Ra, onUnmounted as Ma, onUpdated as La, cloneVNode as Na, resolveComponent as ye, createBlock as $, createElementBlock as k, unref as B, openBlock as v, normalizeProps as Re, mergeProps as ae, withCtx as P, createTextVNode as ot, toDisplayString as Xe, Fragment as q, withModifiers as ra, createCommentVNode as D, resolveDynamicComponent as Le, useSlots as ua, normalizeClass as Z, createElementVNode as x, createVNode as se, renderSlot as O, renderList as ie, withDirectives as Oe, vShow as Ue, mergeDefaults as $a, nextTick as Tt, createSlots as Zt } from "vue";
|
|
2
|
+
import { __ as _a } from "lkt-i18n";
|
|
3
|
+
import { SortDirection as Ge, Column as sa, extractPropValue as Oa, ColumnType as ht, FieldType as xt, prepareResourceData as da, TableRowType as nt, extractI18nValue as ca, LktSettings as be, ensureButtonConfig as Ee, TablePermission as Ae, PaginatorType as Et, TableType as qe, getDefaultValues as Ua, Table as Pa, ButtonType as jt } from "lkt-vue-kernel";
|
|
4
4
|
import { Column as Cn, createColumn as wn } from "lkt-vue-kernel";
|
|
5
5
|
import { replaceAll as va, generateRandomString as Fa } from "lkt-string-tools";
|
|
6
6
|
import { DataState as ja } from "lkt-data-state";
|
|
@@ -11,7 +11,7 @@ import { time as Ha } from "lkt-date-tools";
|
|
|
11
11
|
* (c) 2025
|
|
12
12
|
* @license MIT
|
|
13
13
|
*/
|
|
14
|
-
const fa = ["viewport", "carousel"],
|
|
14
|
+
const fa = ["viewport", "carousel"], Vt = {
|
|
15
15
|
"bottom-to-top": "btt",
|
|
16
16
|
"left-to-right": "ltr",
|
|
17
17
|
"right-to-left": "rtl",
|
|
@@ -42,7 +42,7 @@ const fa = ["viewport", "carousel"], At = {
|
|
|
42
42
|
"end",
|
|
43
43
|
"center-even",
|
|
44
44
|
"center-odd"
|
|
45
|
-
],
|
|
45
|
+
], H = {
|
|
46
46
|
autoplay: 0,
|
|
47
47
|
breakpointMode: fa[0],
|
|
48
48
|
breakpoints: void 0,
|
|
@@ -97,15 +97,15 @@ function ea({ slides: t, position: o, toShow: i }) {
|
|
|
97
97
|
const n = [], l = o === "before", a = l ? -i : 0, f = l ? 0 : i;
|
|
98
98
|
if (t.length <= 0)
|
|
99
99
|
return n;
|
|
100
|
-
for (let
|
|
100
|
+
for (let y = a; y < f; y++) {
|
|
101
101
|
const T = {
|
|
102
|
-
index: l ?
|
|
102
|
+
index: l ? y : y + t.length,
|
|
103
103
|
isClone: !0,
|
|
104
104
|
position: o,
|
|
105
105
|
id: void 0,
|
|
106
106
|
// Make sure we don't duplicate the id which would be invalid html
|
|
107
|
-
key: `clone-${o}-${
|
|
108
|
-
}, u = t[(
|
|
107
|
+
key: `clone-${o}-${y}`
|
|
108
|
+
}, u = t[(y % t.length + t.length) % t.length].vnode, m = Na(u, T);
|
|
109
109
|
m.el = null, n.push(m);
|
|
110
110
|
}
|
|
111
111
|
return n;
|
|
@@ -128,7 +128,7 @@ function Wa(t) {
|
|
|
128
128
|
const f = Math.round(a / l);
|
|
129
129
|
return i ? f : -f;
|
|
130
130
|
}
|
|
131
|
-
function
|
|
131
|
+
function Ve({ val: t, max: o, min: i }) {
|
|
132
132
|
return o < i ? t : Math.min(Math.max(t, isNaN(i) ? t : i), isNaN(o) ? t : o);
|
|
133
133
|
}
|
|
134
134
|
function Ja(t) {
|
|
@@ -188,25 +188,25 @@ function zt(t, o = 0) {
|
|
|
188
188
|
if (i)
|
|
189
189
|
return;
|
|
190
190
|
i = !0;
|
|
191
|
-
const
|
|
192
|
-
l = requestAnimationFrame((
|
|
193
|
-
|
|
191
|
+
const y = () => {
|
|
192
|
+
l = requestAnimationFrame((b) => {
|
|
193
|
+
b - n > o ? (n = b, t(...f), i = !1) : y();
|
|
194
194
|
});
|
|
195
195
|
};
|
|
196
|
-
|
|
196
|
+
y();
|
|
197
197
|
}
|
|
198
198
|
return a.cancel = () => {
|
|
199
199
|
l && (cancelAnimationFrame(l), l = null, i = !1);
|
|
200
200
|
}, a;
|
|
201
201
|
}
|
|
202
|
-
function
|
|
202
|
+
function At(t, o = "px") {
|
|
203
203
|
if (!(t == null || t === ""))
|
|
204
204
|
return typeof t == "number" || parseFloat(t).toString() === t ? `${t}${o}` : t;
|
|
205
205
|
}
|
|
206
206
|
const el = re({
|
|
207
207
|
name: "CarouselAria",
|
|
208
208
|
setup() {
|
|
209
|
-
const t =
|
|
209
|
+
const t = kt(Ye);
|
|
210
210
|
return t ? () => K("div", {
|
|
211
211
|
class: ["carousel__liveregion", "carousel__sr-only"],
|
|
212
212
|
"aria-live": "polite",
|
|
@@ -219,34 +219,34 @@ const el = re({
|
|
|
219
219
|
}), tl = {
|
|
220
220
|
// time to auto advance slides in ms
|
|
221
221
|
autoplay: {
|
|
222
|
-
default:
|
|
222
|
+
default: H.autoplay,
|
|
223
223
|
type: Number
|
|
224
224
|
},
|
|
225
225
|
// an object to store breakpoints
|
|
226
226
|
breakpoints: {
|
|
227
|
-
default:
|
|
227
|
+
default: H.breakpoints,
|
|
228
228
|
type: Object
|
|
229
229
|
},
|
|
230
230
|
// controls the breakpoint mode relative to the carousel container or the viewport
|
|
231
231
|
breakpointMode: {
|
|
232
|
-
default:
|
|
232
|
+
default: H.breakpointMode,
|
|
233
233
|
validator(t) {
|
|
234
234
|
return fa.includes(t);
|
|
235
235
|
}
|
|
236
236
|
},
|
|
237
237
|
// enable/disable the carousel component
|
|
238
238
|
enabled: {
|
|
239
|
-
default:
|
|
239
|
+
default: H.enabled,
|
|
240
240
|
type: Boolean
|
|
241
241
|
},
|
|
242
242
|
// control the gap between slides
|
|
243
243
|
gap: {
|
|
244
|
-
default:
|
|
244
|
+
default: H.gap,
|
|
245
245
|
type: Number
|
|
246
246
|
},
|
|
247
247
|
// control the gap between slides
|
|
248
248
|
height: {
|
|
249
|
-
default:
|
|
249
|
+
default: H.height,
|
|
250
250
|
type: [Number, String]
|
|
251
251
|
},
|
|
252
252
|
ignoreAnimations: {
|
|
@@ -255,17 +255,17 @@ const el = re({
|
|
|
255
255
|
},
|
|
256
256
|
// count of items to be scrolled
|
|
257
257
|
itemsToScroll: {
|
|
258
|
-
default:
|
|
258
|
+
default: H.itemsToScroll,
|
|
259
259
|
type: Number
|
|
260
260
|
},
|
|
261
261
|
// count of items to showed per view
|
|
262
262
|
itemsToShow: {
|
|
263
|
-
default:
|
|
263
|
+
default: H.itemsToShow,
|
|
264
264
|
type: [Number, String]
|
|
265
265
|
},
|
|
266
266
|
// aria-labels and additional text labels
|
|
267
267
|
i18n: {
|
|
268
|
-
default:
|
|
268
|
+
default: H.i18n,
|
|
269
269
|
type: Object
|
|
270
270
|
},
|
|
271
271
|
// slide number number of initial slide
|
|
@@ -275,16 +275,16 @@ const el = re({
|
|
|
275
275
|
},
|
|
276
276
|
// toggle mouse dragging.
|
|
277
277
|
mouseDrag: {
|
|
278
|
-
default:
|
|
278
|
+
default: H.mouseDrag,
|
|
279
279
|
type: Boolean
|
|
280
280
|
},
|
|
281
281
|
// toggle mouse dragging.
|
|
282
282
|
touchDrag: {
|
|
283
|
-
default:
|
|
283
|
+
default: H.touchDrag,
|
|
284
284
|
type: Boolean
|
|
285
285
|
},
|
|
286
286
|
pauseAutoplayOnHover: {
|
|
287
|
-
default:
|
|
287
|
+
default: H.pauseAutoplayOnHover,
|
|
288
288
|
type: Boolean
|
|
289
289
|
},
|
|
290
290
|
preventExcessiveDragging: {
|
|
@@ -296,37 +296,37 @@ const el = re({
|
|
|
296
296
|
},
|
|
297
297
|
// control snap position alignment
|
|
298
298
|
snapAlign: {
|
|
299
|
-
default:
|
|
299
|
+
default: H.snapAlign,
|
|
300
300
|
validator(t) {
|
|
301
301
|
return ga.includes(t);
|
|
302
302
|
}
|
|
303
303
|
},
|
|
304
304
|
slideEffect: {
|
|
305
305
|
type: String,
|
|
306
|
-
default:
|
|
306
|
+
default: H.slideEffect,
|
|
307
307
|
validator(t) {
|
|
308
308
|
return ma.includes(t);
|
|
309
309
|
}
|
|
310
310
|
},
|
|
311
311
|
// sliding transition time in ms
|
|
312
312
|
transition: {
|
|
313
|
-
default:
|
|
313
|
+
default: H.transition,
|
|
314
314
|
type: Number
|
|
315
315
|
},
|
|
316
316
|
// control the gap between slides
|
|
317
317
|
dir: {
|
|
318
318
|
type: String,
|
|
319
|
-
default:
|
|
319
|
+
default: H.dir,
|
|
320
320
|
validator(t, o) {
|
|
321
321
|
if (!pa.includes(t))
|
|
322
322
|
return !1;
|
|
323
|
-
const i = t in
|
|
323
|
+
const i = t in Vt ? Vt[t] : t;
|
|
324
324
|
return ["ttb", "btt"].includes(i) && (!o.height || o.height === "auto") && console.warn(`[vue3-carousel warn]: The dir "${t}" is not supported with height "auto".`), !0;
|
|
325
325
|
}
|
|
326
326
|
},
|
|
327
327
|
// control infinite scrolling mode
|
|
328
328
|
wrapAround: {
|
|
329
|
-
default:
|
|
329
|
+
default: H.wrapAround,
|
|
330
330
|
type: Boolean
|
|
331
331
|
}
|
|
332
332
|
}, al = re({
|
|
@@ -345,221 +345,221 @@ const el = re({
|
|
|
345
345
|
],
|
|
346
346
|
setup(t, { slots: o, emit: i, expose: n }) {
|
|
347
347
|
var l;
|
|
348
|
-
const a = Ga(i), f = a.getSlides(),
|
|
349
|
-
F(S, (d) =>
|
|
350
|
-
const
|
|
351
|
-
let ce = null,
|
|
352
|
-
const
|
|
348
|
+
const a = Ga(i), f = a.getSlides(), y = s(() => f.length), b = I(null), T = I(null), u = I(0), m = s(() => Object.assign(Object.assign(Object.assign({}, H), Ka(t, ["breakpoints", "modelValue"])), { i18n: Object.assign(Object.assign({}, H.i18n), t.i18n) })), c = qt(Object.assign({}, m.value)), S = I((l = t.modelValue) !== null && l !== void 0 ? l : 0), V = I(S.value);
|
|
349
|
+
F(S, (d) => V.value = d);
|
|
350
|
+
const E = I(0), le = s(() => Math.ceil((y.value - 1) / 2)), j = s(() => y.value - 1), de = s(() => 0);
|
|
351
|
+
let ce = null, Ne = null, ue = null;
|
|
352
|
+
const Y = s(() => u.value + c.gap), r = s(() => {
|
|
353
353
|
const d = c.dir || "ltr";
|
|
354
|
-
return d in
|
|
355
|
-
}),
|
|
356
|
-
function
|
|
354
|
+
return d in Vt ? Vt[d] : d;
|
|
355
|
+
}), _ = s(() => ["rtl", "btt"].includes(r.value)), ee = s(() => ["ttb", "btt"].includes(r.value)), U = s(() => c.itemsToShow === "auto"), M = s(() => ee.value ? "height" : "width");
|
|
356
|
+
function he() {
|
|
357
357
|
var d;
|
|
358
358
|
if (!Je.value)
|
|
359
359
|
return;
|
|
360
|
-
const
|
|
361
|
-
C.some((
|
|
360
|
+
const h = (m.value.breakpointMode === "carousel" ? (d = b.value) === null || d === void 0 ? void 0 : d.getBoundingClientRect().width : typeof window < "u" ? window.innerWidth : 0) || 0, C = Object.keys(t.breakpoints || {}).map((L) => Number(L)).sort((L, X) => +X - +L), A = {};
|
|
361
|
+
C.some((L) => h >= L ? (Object.assign(A, t.breakpoints[L]), A.i18n && Object.assign(A.i18n, m.value.i18n, t.breakpoints[L].i18n), !0) : !1), Object.assign(c, m.value, A);
|
|
362
362
|
}
|
|
363
363
|
const rt = zt(() => {
|
|
364
|
-
|
|
365
|
-
}),
|
|
366
|
-
function
|
|
364
|
+
he(), Ke(), ke();
|
|
365
|
+
}), Pe = qt(/* @__PURE__ */ new Set()), ne = I([]);
|
|
366
|
+
function $e({ widthMultiplier: d, heightMultiplier: h }) {
|
|
367
367
|
ne.value = f.map((C) => {
|
|
368
|
-
var
|
|
369
|
-
const
|
|
368
|
+
var A;
|
|
369
|
+
const L = (A = C.exposed) === null || A === void 0 ? void 0 : A.getBoundingRect();
|
|
370
370
|
return {
|
|
371
|
-
width:
|
|
372
|
-
height:
|
|
371
|
+
width: L.width * d,
|
|
372
|
+
height: L.height * h
|
|
373
373
|
};
|
|
374
374
|
});
|
|
375
375
|
}
|
|
376
|
-
const Fe =
|
|
376
|
+
const Fe = I({
|
|
377
377
|
width: 0,
|
|
378
378
|
height: 0
|
|
379
379
|
});
|
|
380
|
-
function
|
|
380
|
+
function Mt({ widthMultiplier: d, heightMultiplier: h }) {
|
|
381
381
|
var C;
|
|
382
|
-
const
|
|
382
|
+
const A = ((C = T.value) === null || C === void 0 ? void 0 : C.getBoundingClientRect()) || { width: 0, height: 0 };
|
|
383
383
|
Fe.value = {
|
|
384
|
-
width:
|
|
385
|
-
height:
|
|
384
|
+
width: A.width * d,
|
|
385
|
+
height: A.height * h
|
|
386
386
|
};
|
|
387
387
|
}
|
|
388
|
-
function
|
|
388
|
+
function ke() {
|
|
389
389
|
if (!T.value)
|
|
390
390
|
return;
|
|
391
|
-
const d = Qa(
|
|
392
|
-
if (
|
|
393
|
-
u.value = Xa(ne.value.map((
|
|
391
|
+
const d = Qa(Pe);
|
|
392
|
+
if (Mt(d), $e(d), U.value)
|
|
393
|
+
u.value = Xa(ne.value.map((h) => h[M.value]));
|
|
394
394
|
else {
|
|
395
|
-
const
|
|
396
|
-
u.value = (Fe.value[M.value] - C) /
|
|
395
|
+
const h = Number(c.itemsToShow), C = (h - 1) * c.gap;
|
|
396
|
+
u.value = (Fe.value[M.value] - C) / h;
|
|
397
397
|
}
|
|
398
398
|
}
|
|
399
399
|
function Ke() {
|
|
400
|
-
!c.wrapAround &&
|
|
400
|
+
!c.wrapAround && y.value > 0 && (S.value = Ve({
|
|
401
401
|
val: S.value,
|
|
402
402
|
max: j.value,
|
|
403
403
|
min: de.value
|
|
404
|
-
})),
|
|
404
|
+
})), U.value || (c.itemsToShow = Ve({
|
|
405
405
|
val: Number(c.itemsToShow),
|
|
406
|
-
max:
|
|
406
|
+
max: y.value,
|
|
407
407
|
min: 1
|
|
408
408
|
}));
|
|
409
409
|
}
|
|
410
410
|
const ve = s(() => typeof t.ignoreAnimations == "string" ? t.ignoreAnimations.split(",") : Array.isArray(t.ignoreAnimations) ? t.ignoreAnimations : t.ignoreAnimations ? !1 : []);
|
|
411
|
-
|
|
412
|
-
|
|
411
|
+
Pt(() => Ke()), Pt(() => {
|
|
412
|
+
ke();
|
|
413
413
|
});
|
|
414
|
-
let
|
|
415
|
-
const
|
|
416
|
-
const
|
|
417
|
-
if (!(!(
|
|
414
|
+
let Se;
|
|
415
|
+
const Ce = (d) => {
|
|
416
|
+
const h = d.target;
|
|
417
|
+
if (!(!(h != null && h.contains(b.value)) || Array.isArray(ve.value) && ve.value.includes(d.animationName)) && (Pe.add(h), !Se)) {
|
|
418
418
|
const C = () => {
|
|
419
|
-
|
|
420
|
-
|
|
419
|
+
Se = requestAnimationFrame(() => {
|
|
420
|
+
ke(), C();
|
|
421
421
|
});
|
|
422
422
|
};
|
|
423
423
|
C();
|
|
424
424
|
}
|
|
425
425
|
}, We = (d) => {
|
|
426
|
-
const
|
|
427
|
-
|
|
428
|
-
}, Je =
|
|
429
|
-
typeof document < "u" &&
|
|
430
|
-
Je.value && ve.value !== !1 ? (document.addEventListener("animationstart",
|
|
426
|
+
const h = d.target;
|
|
427
|
+
h && Pe.delete(h), Se && Pe.size === 0 && (cancelAnimationFrame(Se), ke());
|
|
428
|
+
}, Je = I(!1);
|
|
429
|
+
typeof document < "u" && Pt(() => {
|
|
430
|
+
Je.value && ve.value !== !1 ? (document.addEventListener("animationstart", Ce), document.addEventListener("animationend", We)) : (document.removeEventListener("animationstart", Ce), document.removeEventListener("animationend", We));
|
|
431
431
|
}), Yt(() => {
|
|
432
|
-
Je.value = !0,
|
|
432
|
+
Je.value = !0, he(), Ze(), b.value && (ue = new ResizeObserver(rt), ue.observe(b.value)), i("init");
|
|
433
433
|
}), Aa(() => {
|
|
434
|
-
Je.value = !1, a.cleanup(),
|
|
434
|
+
Je.value = !1, a.cleanup(), Ne && clearTimeout(Ne), Se && cancelAnimationFrame(Se), ce && clearInterval(ce), ue && (ue.disconnect(), ue = null), typeof document < "u" && dt(), b.value && (b.value.removeEventListener("transitionend", ke), b.value.removeEventListener("animationiteration", ke));
|
|
435
435
|
});
|
|
436
436
|
let De = !1;
|
|
437
|
-
const je = { x: 0, y: 0 }, fe = Ft({ x: 0, y: 0 }), ze =
|
|
437
|
+
const je = { x: 0, y: 0 }, fe = Ft({ x: 0, y: 0 }), ze = I(!1), ut = I(!1), st = () => {
|
|
438
438
|
ze.value = !0;
|
|
439
|
-
},
|
|
439
|
+
}, Lt = () => {
|
|
440
440
|
ze.value = !1;
|
|
441
|
-
},
|
|
441
|
+
}, _e = zt((d) => {
|
|
442
442
|
if (!d.ctrlKey)
|
|
443
443
|
switch (d.key) {
|
|
444
444
|
case "ArrowLeft":
|
|
445
445
|
case "ArrowUp":
|
|
446
|
-
ee.value === d.key.endsWith("Up") && (
|
|
446
|
+
ee.value === d.key.endsWith("Up") && (_.value ? we(!0) : xe(!0));
|
|
447
447
|
break;
|
|
448
448
|
case "ArrowRight":
|
|
449
449
|
case "ArrowDown":
|
|
450
|
-
ee.value === d.key.endsWith("Down") && (
|
|
450
|
+
ee.value === d.key.endsWith("Down") && (_.value ? xe(!0) : we(!0));
|
|
451
451
|
break;
|
|
452
452
|
}
|
|
453
453
|
}, 200), Nt = () => {
|
|
454
|
-
document.addEventListener("keydown",
|
|
454
|
+
document.addEventListener("keydown", _e);
|
|
455
455
|
}, dt = () => {
|
|
456
|
-
document.removeEventListener("keydown",
|
|
456
|
+
document.removeEventListener("keydown", _e);
|
|
457
457
|
};
|
|
458
|
-
function
|
|
459
|
-
const
|
|
460
|
-
if (["INPUT", "TEXTAREA", "SELECT"].includes(
|
|
458
|
+
function St(d) {
|
|
459
|
+
const h = d.target.tagName;
|
|
460
|
+
if (["INPUT", "TEXTAREA", "SELECT"].includes(h) || z.value || (De = d.type === "touchstart", !De && (d.preventDefault(), d.button !== 0)))
|
|
461
461
|
return;
|
|
462
462
|
je.x = "touches" in d ? d.touches[0].clientX : d.clientX, je.y = "touches" in d ? d.touches[0].clientY : d.clientY;
|
|
463
|
-
const C = De ? "touchmove" : "mousemove",
|
|
464
|
-
document.addEventListener(C, ct, { passive: !1 }), document.addEventListener(
|
|
463
|
+
const C = De ? "touchmove" : "mousemove", A = De ? "touchend" : "mouseup";
|
|
464
|
+
document.addEventListener(C, ct, { passive: !1 }), document.addEventListener(A, Qe, { passive: !0 });
|
|
465
465
|
}
|
|
466
466
|
const ct = zt((d) => {
|
|
467
467
|
ut.value = !0;
|
|
468
|
-
const
|
|
469
|
-
fe.x =
|
|
470
|
-
const
|
|
468
|
+
const h = "touches" in d ? d.touches[0].clientX : d.clientX, C = "touches" in d ? d.touches[0].clientY : d.clientY;
|
|
469
|
+
fe.x = h - je.x, fe.y = C - je.y;
|
|
470
|
+
const A = Wa({
|
|
471
471
|
isVertical: ee.value,
|
|
472
|
-
isReversed:
|
|
472
|
+
isReversed: _.value,
|
|
473
473
|
dragged: fe,
|
|
474
|
-
effectiveSlideSize:
|
|
474
|
+
effectiveSlideSize: Y.value
|
|
475
475
|
});
|
|
476
|
-
|
|
477
|
-
val: S.value +
|
|
476
|
+
V.value = c.wrapAround ? S.value + A : Ve({
|
|
477
|
+
val: S.value + A,
|
|
478
478
|
max: j.value,
|
|
479
479
|
min: de.value
|
|
480
480
|
}), i("drag", { deltaX: fe.x, deltaY: fe.y });
|
|
481
481
|
});
|
|
482
482
|
function Qe() {
|
|
483
|
-
if (ct.cancel(),
|
|
484
|
-
const C = (
|
|
485
|
-
|
|
483
|
+
if (ct.cancel(), V.value !== S.value && !De) {
|
|
484
|
+
const C = (A) => {
|
|
485
|
+
A.preventDefault(), window.removeEventListener("click", C);
|
|
486
486
|
};
|
|
487
487
|
window.addEventListener("click", C);
|
|
488
488
|
}
|
|
489
|
-
|
|
490
|
-
const d = De ? "touchmove" : "mousemove",
|
|
491
|
-
document.removeEventListener(d, ct), document.removeEventListener(
|
|
489
|
+
Te(V.value), fe.x = 0, fe.y = 0, ut.value = !1;
|
|
490
|
+
const d = De ? "touchmove" : "mousemove", h = De ? "touchend" : "mouseup";
|
|
491
|
+
document.removeEventListener(d, ct), document.removeEventListener(h, Qe);
|
|
492
492
|
}
|
|
493
493
|
function Ze() {
|
|
494
494
|
!c.autoplay || c.autoplay <= 0 || (ce = setInterval(() => {
|
|
495
495
|
c.pauseAutoplayOnHover && ze.value || we();
|
|
496
496
|
}, c.autoplay));
|
|
497
497
|
}
|
|
498
|
-
function
|
|
498
|
+
function pe() {
|
|
499
499
|
ce && (clearInterval(ce), ce = null);
|
|
500
500
|
}
|
|
501
|
-
function
|
|
502
|
-
|
|
501
|
+
function Ie() {
|
|
502
|
+
pe(), Ze();
|
|
503
503
|
}
|
|
504
|
-
const
|
|
505
|
-
function
|
|
506
|
-
if (!
|
|
504
|
+
const z = I(!1);
|
|
505
|
+
function Te(d, h = !1) {
|
|
506
|
+
if (!h && z.value)
|
|
507
507
|
return;
|
|
508
|
-
let C = d,
|
|
509
|
-
|
|
508
|
+
let C = d, A = d;
|
|
509
|
+
E.value = S.value, c.wrapAround ? A = ya({
|
|
510
510
|
val: C,
|
|
511
511
|
max: j.value,
|
|
512
512
|
min: de.value
|
|
513
|
-
}) : C =
|
|
513
|
+
}) : C = Ve({
|
|
514
514
|
val: C,
|
|
515
515
|
max: j.value,
|
|
516
516
|
min: de.value
|
|
517
517
|
}), i("slide-start", {
|
|
518
518
|
slidingToIndex: d,
|
|
519
519
|
currentSlideIndex: S.value,
|
|
520
|
-
prevSlideIndex:
|
|
521
|
-
slidesCount:
|
|
522
|
-
}),
|
|
523
|
-
c.wrapAround &&
|
|
520
|
+
prevSlideIndex: E.value,
|
|
521
|
+
slidesCount: y.value
|
|
522
|
+
}), pe(), z.value = !0, S.value = C, A !== C && vt.pause(), i("update:modelValue", A), Ne = setTimeout(() => {
|
|
523
|
+
c.wrapAround && A !== C && (vt.resume(), S.value = A, i("loop", {
|
|
524
524
|
currentSlideIndex: S.value,
|
|
525
525
|
slidingToIndex: d
|
|
526
526
|
})), i("slide-end", {
|
|
527
527
|
currentSlideIndex: S.value,
|
|
528
|
-
prevSlideIndex:
|
|
529
|
-
slidesCount:
|
|
530
|
-
}),
|
|
528
|
+
prevSlideIndex: E.value,
|
|
529
|
+
slidesCount: y.value
|
|
530
|
+
}), z.value = !1, Ie();
|
|
531
531
|
}, c.transition);
|
|
532
532
|
}
|
|
533
533
|
function we(d = !1) {
|
|
534
|
-
|
|
534
|
+
Te(S.value + c.itemsToScroll, d);
|
|
535
535
|
}
|
|
536
536
|
function xe(d = !1) {
|
|
537
|
-
|
|
537
|
+
Te(S.value - c.itemsToScroll, d);
|
|
538
538
|
}
|
|
539
|
-
function
|
|
540
|
-
|
|
539
|
+
function Ct() {
|
|
540
|
+
he(), Ke(), ke(), Ie();
|
|
541
541
|
}
|
|
542
|
-
F(() => [m.value, t.breakpoints], () =>
|
|
542
|
+
F(() => [m.value, t.breakpoints], () => he(), { deep: !0 }), F(() => t.autoplay, () => Ie());
|
|
543
543
|
const vt = F(() => t.modelValue, (d) => {
|
|
544
|
-
d !== S.value &&
|
|
544
|
+
d !== S.value && Te(Number(d), !0);
|
|
545
545
|
});
|
|
546
546
|
i("before-init");
|
|
547
|
-
const
|
|
547
|
+
const G = s(() => {
|
|
548
548
|
if (!c.wrapAround)
|
|
549
549
|
return { before: 0, after: 0 };
|
|
550
|
-
if (
|
|
550
|
+
if (U.value)
|
|
551
551
|
return { before: f.length, after: f.length };
|
|
552
|
-
const d = Number(c.itemsToShow),
|
|
552
|
+
const d = Number(c.itemsToShow), h = Math.ceil(d + (c.itemsToScroll - 1)), C = h - V.value, A = h - (y.value - (V.value + 1));
|
|
553
553
|
return {
|
|
554
554
|
before: Math.max(0, C),
|
|
555
|
-
after: Math.max(0,
|
|
555
|
+
after: Math.max(0, A)
|
|
556
556
|
};
|
|
557
|
-
}), ft = s(() =>
|
|
557
|
+
}), ft = s(() => G.value.before ? U.value ? ne.value.slice(-1 * G.value.before).reduce((d, h) => d + h[M.value] + c.gap, 0) * -1 : G.value.before * Y.value * -1 : 0), He = s(() => {
|
|
558
558
|
var d;
|
|
559
|
-
if (
|
|
560
|
-
const
|
|
559
|
+
if (U.value) {
|
|
560
|
+
const h = (S.value % f.length + f.length) % f.length;
|
|
561
561
|
return Gt({
|
|
562
|
-
slideSize: (d = ne.value[
|
|
562
|
+
slideSize: (d = ne.value[h]) === null || d === void 0 ? void 0 : d[M.value],
|
|
563
563
|
viewportSize: Fe.value[M.value],
|
|
564
564
|
align: c.snapAlign
|
|
565
565
|
});
|
|
@@ -570,102 +570,102 @@ const el = re({
|
|
|
570
570
|
});
|
|
571
571
|
}), et = s(() => {
|
|
572
572
|
let d = 0;
|
|
573
|
-
if (
|
|
574
|
-
if (S.value < 0 ? d = ne.value.slice(S.value).reduce((
|
|
575
|
-
const
|
|
576
|
-
d =
|
|
573
|
+
if (U.value) {
|
|
574
|
+
if (S.value < 0 ? d = ne.value.slice(S.value).reduce((h, C) => h + C[M.value] + c.gap, 0) * -1 : d = ne.value.slice(0, S.value).reduce((h, C) => h + C[M.value] + c.gap, 0), d -= He.value, !c.wrapAround) {
|
|
575
|
+
const h = ne.value.reduce((C, A) => C + A[M.value] + c.gap, 0) - Fe.value[M.value] - c.gap;
|
|
576
|
+
d = Ve({
|
|
577
577
|
val: d,
|
|
578
|
-
max:
|
|
578
|
+
max: h,
|
|
579
579
|
min: 0
|
|
580
580
|
});
|
|
581
581
|
}
|
|
582
582
|
} else {
|
|
583
|
-
let
|
|
584
|
-
c.wrapAround || (
|
|
585
|
-
val:
|
|
586
|
-
max:
|
|
583
|
+
let h = S.value - He.value;
|
|
584
|
+
c.wrapAround || (h = Ve({
|
|
585
|
+
val: h,
|
|
586
|
+
max: y.value - +c.itemsToShow,
|
|
587
587
|
min: 0
|
|
588
|
-
})), d =
|
|
588
|
+
})), d = h * Y.value;
|
|
589
589
|
}
|
|
590
|
-
return d * (
|
|
590
|
+
return d * (_.value ? 1 : -1);
|
|
591
591
|
}), tt = s(() => {
|
|
592
|
-
var d,
|
|
593
|
-
if (!
|
|
594
|
-
const
|
|
592
|
+
var d, h;
|
|
593
|
+
if (!U.value) {
|
|
594
|
+
const L = S.value - He.value;
|
|
595
595
|
return c.wrapAround ? {
|
|
596
|
-
min: Math.floor(
|
|
597
|
-
max: Math.ceil(
|
|
596
|
+
min: Math.floor(L),
|
|
597
|
+
max: Math.ceil(L + Number(c.itemsToShow) - 1)
|
|
598
598
|
} : {
|
|
599
|
-
min: Math.floor(
|
|
600
|
-
val:
|
|
601
|
-
max:
|
|
599
|
+
min: Math.floor(Ve({
|
|
600
|
+
val: L,
|
|
601
|
+
max: y.value - Number(c.itemsToShow),
|
|
602
602
|
min: 0
|
|
603
603
|
})),
|
|
604
|
-
max: Math.ceil(
|
|
605
|
-
val:
|
|
606
|
-
max:
|
|
604
|
+
max: Math.ceil(Ve({
|
|
605
|
+
val: L + Number(c.itemsToShow) - 1,
|
|
606
|
+
max: y.value - 1,
|
|
607
607
|
min: 0
|
|
608
608
|
}))
|
|
609
609
|
};
|
|
610
610
|
}
|
|
611
611
|
let C = 0;
|
|
612
612
|
{
|
|
613
|
-
let
|
|
613
|
+
let L = 0, X = 0 - G.value.before;
|
|
614
614
|
const te = Math.abs(et.value + ft.value);
|
|
615
|
-
for (;
|
|
616
|
-
const J = (
|
|
617
|
-
|
|
615
|
+
for (; L <= te; ) {
|
|
616
|
+
const J = (X % f.length + f.length) % f.length;
|
|
617
|
+
L += ((d = ne.value[J]) === null || d === void 0 ? void 0 : d[M.value]) + c.gap, X++;
|
|
618
618
|
}
|
|
619
|
-
C =
|
|
619
|
+
C = X - 1;
|
|
620
620
|
}
|
|
621
|
-
let
|
|
621
|
+
let A = 0;
|
|
622
622
|
{
|
|
623
|
-
let
|
|
624
|
-
for (
|
|
625
|
-
const te = (
|
|
626
|
-
|
|
623
|
+
let L = C, X = 0;
|
|
624
|
+
for (L < 0 ? X = ne.value.slice(0, L).reduce((te, J) => te + J[M.value] + c.gap, 0) - Math.abs(et.value + ft.value) : X = ne.value.slice(0, L).reduce((te, J) => te + J[M.value] + c.gap, 0) - Math.abs(et.value); X < Fe.value[M.value]; ) {
|
|
625
|
+
const te = (L % f.length + f.length) % f.length;
|
|
626
|
+
X += ((h = ne.value[te]) === null || h === void 0 ? void 0 : h[M.value]) + c.gap, L++;
|
|
627
627
|
}
|
|
628
|
-
|
|
628
|
+
A = L - 1;
|
|
629
629
|
}
|
|
630
630
|
return {
|
|
631
631
|
min: Math.floor(C),
|
|
632
|
-
max: Math.ceil(
|
|
632
|
+
max: Math.ceil(A)
|
|
633
633
|
};
|
|
634
|
-
}),
|
|
634
|
+
}), $t = s(() => {
|
|
635
635
|
if (c.slideEffect === "fade")
|
|
636
636
|
return;
|
|
637
|
-
const d = ee.value ? "Y" : "X",
|
|
638
|
-
let C = et.value +
|
|
637
|
+
const d = ee.value ? "Y" : "X", h = ee.value ? fe.y : fe.x;
|
|
638
|
+
let C = et.value + h;
|
|
639
639
|
if (!c.wrapAround && c.preventExcessiveDragging) {
|
|
640
|
-
let
|
|
641
|
-
|
|
642
|
-
const
|
|
643
|
-
C =
|
|
640
|
+
let A = 0;
|
|
641
|
+
U.value ? A = ne.value.reduce((te, J) => te + J[M.value], 0) : A = (y.value - Number(c.itemsToShow)) * Y.value;
|
|
642
|
+
const L = _.value ? 0 : -1 * A, X = _.value ? A : 0;
|
|
643
|
+
C = Ve({
|
|
644
644
|
val: C,
|
|
645
|
-
min:
|
|
646
|
-
max:
|
|
645
|
+
min: L,
|
|
646
|
+
max: X
|
|
647
647
|
});
|
|
648
648
|
}
|
|
649
649
|
return `translate${d}(${C}px)`;
|
|
650
|
-
}),
|
|
651
|
-
"--vc-transition-duration":
|
|
652
|
-
"--vc-slide-gap":
|
|
653
|
-
"--vc-carousel-height":
|
|
654
|
-
"--vc-cloned-offset":
|
|
655
|
-
})),
|
|
656
|
-
activeSlide:
|
|
650
|
+
}), me = s(() => ({
|
|
651
|
+
"--vc-transition-duration": z.value ? At(c.transition, "ms") : void 0,
|
|
652
|
+
"--vc-slide-gap": At(c.gap),
|
|
653
|
+
"--vc-carousel-height": At(c.height),
|
|
654
|
+
"--vc-cloned-offset": At(ft.value)
|
|
655
|
+
})), wt = { slideTo: Te, next: we, prev: xe }, _t = Ft({
|
|
656
|
+
activeSlide: V,
|
|
657
657
|
config: c,
|
|
658
658
|
currentSlide: S,
|
|
659
|
-
isSliding:
|
|
659
|
+
isSliding: z,
|
|
660
660
|
isVertical: ee,
|
|
661
661
|
maxSlide: j,
|
|
662
662
|
minSlide: de,
|
|
663
|
-
nav:
|
|
663
|
+
nav: wt,
|
|
664
664
|
normalizedDir: r,
|
|
665
665
|
slideRegistry: a,
|
|
666
666
|
slideSize: u,
|
|
667
667
|
slides: f,
|
|
668
|
-
slidesCount:
|
|
668
|
+
slidesCount: y,
|
|
669
669
|
viewport: T,
|
|
670
670
|
visibleRange: tt
|
|
671
671
|
});
|
|
@@ -677,62 +677,62 @@ const el = re({
|
|
|
677
677
|
middleSlide: le,
|
|
678
678
|
minSlide: de,
|
|
679
679
|
slideSize: u,
|
|
680
|
-
slidesCount:
|
|
680
|
+
slidesCount: y
|
|
681
681
|
});
|
|
682
682
|
return n({
|
|
683
683
|
data: at,
|
|
684
|
-
nav:
|
|
684
|
+
nav: wt,
|
|
685
685
|
next: we,
|
|
686
686
|
prev: xe,
|
|
687
|
-
restartCarousel:
|
|
688
|
-
slideTo:
|
|
689
|
-
updateBreakpointsConfig:
|
|
690
|
-
updateSlideSize:
|
|
687
|
+
restartCarousel: Ct,
|
|
688
|
+
slideTo: Te,
|
|
689
|
+
updateBreakpointsConfig: he,
|
|
690
|
+
updateSlideSize: ke,
|
|
691
691
|
updateSlidesData: Ke
|
|
692
692
|
}), () => {
|
|
693
693
|
var d;
|
|
694
|
-
const
|
|
694
|
+
const h = o.default || o.slides, C = (h == null ? void 0 : h(at)) || [], { before: A, after: L } = G.value, X = ea({
|
|
695
695
|
slides: f,
|
|
696
696
|
position: "before",
|
|
697
|
-
toShow:
|
|
697
|
+
toShow: A
|
|
698
698
|
}), te = ea({
|
|
699
699
|
slides: f,
|
|
700
700
|
position: "after",
|
|
701
|
-
toShow:
|
|
702
|
-
}), J = [...
|
|
701
|
+
toShow: L
|
|
702
|
+
}), J = [...X, ...C, ...te];
|
|
703
703
|
if (!c.enabled || !J.length)
|
|
704
704
|
return K("section", {
|
|
705
|
-
ref:
|
|
705
|
+
ref: b,
|
|
706
706
|
class: ["carousel", "is-disabled"]
|
|
707
707
|
}, J);
|
|
708
|
-
const lt = ((d = o.addons) === null || d === void 0 ? void 0 : d.call(o, at)) || [],
|
|
708
|
+
const lt = ((d = o.addons) === null || d === void 0 ? void 0 : d.call(o, at)) || [], Bt = K("ol", {
|
|
709
709
|
class: "carousel__track",
|
|
710
|
-
style: { transform:
|
|
711
|
-
onMousedownCapture: c.mouseDrag ?
|
|
712
|
-
onTouchstartPassiveCapture: c.touchDrag ?
|
|
713
|
-
}, J),
|
|
710
|
+
style: { transform: $t.value },
|
|
711
|
+
onMousedownCapture: c.mouseDrag ? St : null,
|
|
712
|
+
onTouchstartPassiveCapture: c.touchDrag ? St : null
|
|
713
|
+
}, J), Dt = K("div", { class: "carousel__viewport", ref: T }, Bt);
|
|
714
714
|
return K("section", {
|
|
715
|
-
ref:
|
|
715
|
+
ref: b,
|
|
716
716
|
class: [
|
|
717
717
|
"carousel",
|
|
718
718
|
`is-${r.value}`,
|
|
719
719
|
`is-effect-${c.slideEffect}`,
|
|
720
720
|
{
|
|
721
721
|
"is-vertical": ee.value,
|
|
722
|
-
"is-sliding":
|
|
722
|
+
"is-sliding": z.value,
|
|
723
723
|
"is-dragging": ut.value,
|
|
724
724
|
"is-hover": ze.value
|
|
725
725
|
}
|
|
726
726
|
],
|
|
727
727
|
dir: r.value,
|
|
728
|
-
style:
|
|
728
|
+
style: me.value,
|
|
729
729
|
"aria-label": c.i18n.ariaGallery,
|
|
730
730
|
tabindex: "0",
|
|
731
731
|
onFocus: Nt,
|
|
732
732
|
onBlur: dt,
|
|
733
733
|
onMouseenter: st,
|
|
734
|
-
onMouseleave:
|
|
735
|
-
}, [
|
|
734
|
+
onMouseleave: Lt
|
|
735
|
+
}, [Dt, lt, K(el)]);
|
|
736
736
|
};
|
|
737
737
|
}
|
|
738
738
|
});
|
|
@@ -758,11 +758,11 @@ const la = (t) => t && nl(t), na = re({
|
|
|
758
758
|
},
|
|
759
759
|
title: {
|
|
760
760
|
type: String,
|
|
761
|
-
default: (t) => t.name ?
|
|
761
|
+
default: (t) => t.name ? H.i18n[aa(t.name)] : ""
|
|
762
762
|
}
|
|
763
763
|
},
|
|
764
764
|
setup(t) {
|
|
765
|
-
const o =
|
|
765
|
+
const o = kt(Ye, null);
|
|
766
766
|
return () => {
|
|
767
767
|
const i = t.name;
|
|
768
768
|
if (!i || !la(i))
|
|
@@ -780,7 +780,7 @@ const la = (t) => t && nl(t), na = re({
|
|
|
780
780
|
name: "CarouselNavigation",
|
|
781
781
|
inheritAttrs: !1,
|
|
782
782
|
setup(t, { slots: o, attrs: i }) {
|
|
783
|
-
const n =
|
|
783
|
+
const n = kt(Ye);
|
|
784
784
|
if (!n)
|
|
785
785
|
return () => "";
|
|
786
786
|
const { next: l, prev: a } = o, f = () => ({
|
|
@@ -788,22 +788,22 @@ const la = (t) => t && nl(t), na = re({
|
|
|
788
788
|
ltr: "arrowLeft",
|
|
789
789
|
rtl: "arrowRight",
|
|
790
790
|
ttb: "arrowUp"
|
|
791
|
-
})[n.normalizedDir],
|
|
791
|
+
})[n.normalizedDir], y = () => ({
|
|
792
792
|
btt: "arrowUp",
|
|
793
793
|
ltr: "arrowRight",
|
|
794
794
|
rtl: "arrowLeft",
|
|
795
795
|
ttb: "arrowDown"
|
|
796
|
-
})[n.normalizedDir],
|
|
796
|
+
})[n.normalizedDir], b = s(() => !n.config.wrapAround && n.currentSlide <= n.minSlide), T = s(() => !n.config.wrapAround && n.currentSlide >= n.maxSlide);
|
|
797
797
|
return () => {
|
|
798
|
-
const { i18n: u } = n.config, m = K("button", Object.assign(Object.assign({ type: "button", disabled:
|
|
798
|
+
const { i18n: u } = n.config, m = K("button", Object.assign(Object.assign({ type: "button", disabled: b.value, "aria-label": u.ariaPreviousSlide, title: u.ariaPreviousSlide, onClick: n.nav.prev }, i), { class: [
|
|
799
799
|
"carousel__prev",
|
|
800
|
-
{ "carousel__prev--disabled":
|
|
800
|
+
{ "carousel__prev--disabled": b.value },
|
|
801
801
|
i.class
|
|
802
802
|
] }), (a == null ? void 0 : a()) || K(na, { name: f() })), c = K("button", Object.assign(Object.assign({ type: "button", disabled: T.value, "aria-label": u.ariaNextSlide, title: u.ariaNextSlide, onClick: n.nav.next }, i), { class: [
|
|
803
803
|
"carousel__next",
|
|
804
804
|
{ "carousel__next--disabled": T.value },
|
|
805
805
|
i.class
|
|
806
|
-
] }), (l == null ? void 0 : l()) || K(na, { name:
|
|
806
|
+
] }), (l == null ? void 0 : l()) || K(na, { name: y() }));
|
|
807
807
|
return [m, c];
|
|
808
808
|
};
|
|
809
809
|
}
|
|
@@ -818,13 +818,13 @@ const la = (t) => t && nl(t), na = re({
|
|
|
818
818
|
}
|
|
819
819
|
},
|
|
820
820
|
setup(t) {
|
|
821
|
-
const o =
|
|
821
|
+
const o = kt(Ye);
|
|
822
822
|
if (!o)
|
|
823
823
|
return () => "";
|
|
824
824
|
const i = s(() => o.config.itemsToShow), n = s(() => Gt({
|
|
825
825
|
align: o.config.snapAlign,
|
|
826
826
|
itemsToShow: i.value
|
|
827
|
-
})), l = s(() => t.paginateByItemsToShow && i.value > 1), a = s(() => Math.ceil((o.activeSlide - n.value) / i.value)), f = s(() => Math.ceil(o.slidesCount / i.value)),
|
|
827
|
+
})), l = s(() => t.paginateByItemsToShow && i.value > 1), a = s(() => Math.ceil((o.activeSlide - n.value) / i.value)), f = s(() => Math.ceil(o.slidesCount / i.value)), y = (b) => ya(l.value ? {
|
|
828
828
|
val: a.value,
|
|
829
829
|
max: f.value - 1,
|
|
830
830
|
min: 0
|
|
@@ -832,14 +832,14 @@ const la = (t) => t && nl(t), na = re({
|
|
|
832
832
|
val: o.activeSlide,
|
|
833
833
|
max: o.maxSlide,
|
|
834
834
|
min: o.minSlide
|
|
835
|
-
}) ===
|
|
835
|
+
}) === b;
|
|
836
836
|
return () => {
|
|
837
|
-
var
|
|
837
|
+
var b, T;
|
|
838
838
|
const u = [];
|
|
839
839
|
for (let m = l.value ? 0 : o.minSlide; m <= (l.value ? f.value - 1 : o.maxSlide); m++) {
|
|
840
840
|
const c = ba(o.config.i18n[l.value ? "ariaNavigateToPage" : "ariaNavigateToSlide"], {
|
|
841
841
|
slideNumber: m + 1
|
|
842
|
-
}), S =
|
|
842
|
+
}), S = y(m), V = K("button", {
|
|
843
843
|
type: "button",
|
|
844
844
|
class: {
|
|
845
845
|
"carousel__pagination-button": !0,
|
|
@@ -847,12 +847,12 @@ const la = (t) => t && nl(t), na = re({
|
|
|
847
847
|
},
|
|
848
848
|
"aria-label": c,
|
|
849
849
|
"aria-pressed": S,
|
|
850
|
-
"aria-controls": (T = (
|
|
850
|
+
"aria-controls": (T = (b = o.slides[m]) === null || b === void 0 ? void 0 : b.exposed) === null || T === void 0 ? void 0 : T.id,
|
|
851
851
|
title: c,
|
|
852
852
|
disabled: t.disableOnClick,
|
|
853
853
|
onClick: () => o.nav.slideTo(l.value ? Math.floor(m * +o.config.itemsToShow + n.value) : m)
|
|
854
|
-
}),
|
|
855
|
-
u.push(
|
|
854
|
+
}), E = K("li", { class: "carousel__pagination-item", key: m }, V);
|
|
855
|
+
u.push(E);
|
|
856
856
|
}
|
|
857
857
|
return K("ol", { class: "carousel__pagination" }, u);
|
|
858
858
|
};
|
|
@@ -878,34 +878,34 @@ const la = (t) => t && nl(t), na = re({
|
|
|
878
878
|
}
|
|
879
879
|
},
|
|
880
880
|
setup(t, { attrs: o, slots: i, expose: n }) {
|
|
881
|
-
const l =
|
|
881
|
+
const l = kt(Ye);
|
|
882
882
|
if (ia(Ye, void 0), !l)
|
|
883
883
|
return () => "";
|
|
884
|
-
const a =
|
|
885
|
-
a.value =
|
|
886
|
-
},
|
|
887
|
-
const
|
|
888
|
-
return
|
|
884
|
+
const a = I(t.index), f = (V) => {
|
|
885
|
+
a.value = V;
|
|
886
|
+
}, y = Ra(), b = () => {
|
|
887
|
+
const V = y.vnode.el;
|
|
888
|
+
return V ? V.getBoundingClientRect() : { width: 0, height: 0 };
|
|
889
889
|
};
|
|
890
890
|
n({
|
|
891
891
|
id: t.id,
|
|
892
892
|
setIndex: f,
|
|
893
|
-
getBoundingRect:
|
|
893
|
+
getBoundingRect: b
|
|
894
894
|
});
|
|
895
895
|
const T = s(() => a.value === l.activeSlide), u = s(() => a.value === l.activeSlide - 1), m = s(() => a.value === l.activeSlide + 1), c = s(() => a.value >= l.visibleRange.min && a.value <= l.visibleRange.max), S = s(() => {
|
|
896
896
|
if (l.config.itemsToShow === "auto")
|
|
897
897
|
return;
|
|
898
|
-
const
|
|
899
|
-
return l.isVertical ? { height:
|
|
898
|
+
const V = l.config.itemsToShow, E = l.config.gap > 0 && V > 1 ? `calc(${100 / V}% - ${l.config.gap * (V - 1) / V}px)` : `${100 / V}%`;
|
|
899
|
+
return l.isVertical ? { height: E } : { width: E };
|
|
900
900
|
});
|
|
901
|
-
return l.slideRegistry.registerSlide(
|
|
902
|
-
l.slideRegistry.unregisterSlide(
|
|
901
|
+
return l.slideRegistry.registerSlide(y, t.index), Ma(() => {
|
|
902
|
+
l.slideRegistry.unregisterSlide(y);
|
|
903
903
|
}), t.isClone && (Yt(() => {
|
|
904
|
-
ta(
|
|
905
|
-
}),
|
|
906
|
-
ta(
|
|
904
|
+
ta(y.vnode);
|
|
905
|
+
}), La(() => {
|
|
906
|
+
ta(y.vnode);
|
|
907
907
|
})), () => {
|
|
908
|
-
var
|
|
908
|
+
var V, E;
|
|
909
909
|
return l.config.enabled ? K("li", {
|
|
910
910
|
style: [o.style, Object.assign({}, S.value)],
|
|
911
911
|
class: {
|
|
@@ -922,7 +922,7 @@ const la = (t) => t && nl(t), na = re({
|
|
|
922
922
|
},
|
|
923
923
|
id: t.isClone ? void 0 : t.id,
|
|
924
924
|
"aria-hidden": t.isClone || void 0
|
|
925
|
-
}, (
|
|
925
|
+
}, (E = i.default) === null || E === void 0 ? void 0 : E.call(i, {
|
|
926
926
|
currentIndex: a.value,
|
|
927
927
|
isActive: T.value,
|
|
928
928
|
isClone: t.isClone,
|
|
@@ -930,7 +930,7 @@ const la = (t) => t && nl(t), na = re({
|
|
|
930
930
|
isNext: m.value,
|
|
931
931
|
isSliding: l.isSliding,
|
|
932
932
|
isVisible: c.value
|
|
933
|
-
})) : (
|
|
933
|
+
})) : (V = i.default) === null || V === void 0 ? void 0 : V.call(i);
|
|
934
934
|
};
|
|
935
935
|
}
|
|
936
936
|
}), rl = (t, o, i, n) => {
|
|
@@ -952,7 +952,7 @@ const la = (t) => t && nl(t), na = re({
|
|
|
952
952
|
}
|
|
953
953
|
if (t.formatter && typeof t.formatter == "function") {
|
|
954
954
|
let l = t.formatter(o[t.key], o, t, i);
|
|
955
|
-
return l.startsWith("__:") ?
|
|
955
|
+
return l.startsWith("__:") ? _a(l.substring(3)) : l;
|
|
956
956
|
}
|
|
957
957
|
return o[t.key];
|
|
958
958
|
}, ul = (t, o, i) => {
|
|
@@ -978,7 +978,7 @@ const la = (t) => t && nl(t), na = re({
|
|
|
978
978
|
if (t[i].key === o) return t[i];
|
|
979
979
|
}
|
|
980
980
|
return null;
|
|
981
|
-
}, ha = (t) => t.type ? `is-${t.type}` : "",
|
|
981
|
+
}, ha = (t) => t.type ? `is-${t.type}` : "", Rt = /* @__PURE__ */ re({
|
|
982
982
|
__name: "LktTableCell",
|
|
983
983
|
props: {
|
|
984
984
|
modelValue: { default: () => ({}) },
|
|
@@ -992,68 +992,68 @@ const la = (t) => t && nl(t), na = re({
|
|
|
992
992
|
"update:modelValue"
|
|
993
993
|
],
|
|
994
994
|
setup(t, { emit: o }) {
|
|
995
|
-
const i = o, n = t, l =
|
|
995
|
+
const i = o, n = t, l = I(n.modelValue), a = I(l.value[n.column.key]), f = I(null);
|
|
996
996
|
F(a, (m) => {
|
|
997
997
|
const c = JSON.parse(JSON.stringify(l.value));
|
|
998
998
|
c[n.column.key] = m, i("update:modelValue", c);
|
|
999
999
|
}), F(() => n.modelValue, (m) => {
|
|
1000
1000
|
l.value = m, a.value = l.value[n.column.key];
|
|
1001
1001
|
});
|
|
1002
|
-
const
|
|
1003
|
-
var m, c, S,
|
|
1002
|
+
const y = s(() => ({ ...n.column.slotData, item: l.value })), b = s(() => {
|
|
1003
|
+
var m, c, S, V;
|
|
1004
1004
|
if ((m = n.column.field) != null && m.modalData && typeof ((c = n.column.field) == null ? void 0 : c.modalData) == "object")
|
|
1005
|
-
for (let
|
|
1006
|
-
if (typeof ((S = n.column.field) == null ? void 0 : S.modalData[
|
|
1007
|
-
let le = n.column.field.modalData[
|
|
1005
|
+
for (let E in n.column.field.modalData)
|
|
1006
|
+
if (typeof ((S = n.column.field) == null ? void 0 : S.modalData[E]) == "string" && n.column.field.modalData[E].startsWith("prop:")) {
|
|
1007
|
+
let le = n.column.field.modalData[E].substring(5);
|
|
1008
1008
|
l.value[le];
|
|
1009
1009
|
} else
|
|
1010
|
-
n.column.field.modalData[
|
|
1011
|
-
return (
|
|
1010
|
+
n.column.field.modalData[E];
|
|
1011
|
+
return (V = n.column.field) == null ? void 0 : V.modalData;
|
|
1012
1012
|
}), T = s(() => typeof n.column.field == "string" && n.column.field.startsWith("prop:") ? Oa(n.column.field, l.value) : n.column.field), u = s(() => {
|
|
1013
|
-
var m, c, S,
|
|
1014
|
-
return n.column.type ===
|
|
1013
|
+
var m, c, S, V;
|
|
1014
|
+
return n.column.type === ht.Field ? !((c = (m = n.column) == null ? void 0 : m.field) != null && c.label) && [
|
|
1015
1015
|
xt.Switch,
|
|
1016
1016
|
xt.Check
|
|
1017
|
-
].includes((S = n.column.field) == null ? void 0 : S.type) ? n.column.label : (
|
|
1017
|
+
].includes((S = n.column.field) == null ? void 0 : S.type) ? n.column.label : (V = n.column.field) == null ? void 0 : V.label : "";
|
|
1018
1018
|
});
|
|
1019
1019
|
return (m, c) => {
|
|
1020
|
-
const S =
|
|
1021
|
-
return m.column.type ===
|
|
1022
|
-
default:
|
|
1023
|
-
ot(Xe(
|
|
1020
|
+
const S = ye("lkt-anchor"), V = ye("lkt-button"), E = ye("lkt-field");
|
|
1021
|
+
return m.column.type === B(ht).Anchor ? (v(), $(S, Re(ae({ key: 0 }, m.column.anchor)), {
|
|
1022
|
+
default: P(() => [
|
|
1023
|
+
ot(Xe(B(it)(m.column, l.value, m.i)), 1)
|
|
1024
1024
|
]),
|
|
1025
1025
|
_: 1
|
|
1026
|
-
}, 16)) : m.column.type ===
|
|
1027
|
-
default:
|
|
1028
|
-
ot(Xe(
|
|
1026
|
+
}, 16)) : m.column.type === B(ht).Button ? (v(), $(V, ae({ key: 1 }, m.column.button, { prop: l.value }), {
|
|
1027
|
+
default: P(() => [
|
|
1028
|
+
ot(Xe(B(it)(m.column, l.value, m.i)), 1)
|
|
1029
1029
|
]),
|
|
1030
1030
|
_: 1
|
|
1031
|
-
}, 16, ["prop"])) : m.column.type ===
|
|
1031
|
+
}, 16, ["prop"])) : m.column.type === B(ht).Field && m.hasInlineEditPerm ? (v(), $(E, ae({ key: 2 }, T.value, {
|
|
1032
1032
|
"read-mode": !m.column.editable || !m.editModeEnabled,
|
|
1033
1033
|
ref: (le) => f.value = le,
|
|
1034
|
-
"slot-data":
|
|
1034
|
+
"slot-data": y.value,
|
|
1035
1035
|
label: u.value,
|
|
1036
|
-
"modal-data":
|
|
1036
|
+
"modal-data": b.value,
|
|
1037
1037
|
prop: l.value,
|
|
1038
1038
|
modelValue: a.value,
|
|
1039
1039
|
"onUpdate:modelValue": c[0] || (c[0] = (le) => a.value = le)
|
|
1040
|
-
}), null, 16, ["read-mode", "slot-data", "label", "modal-data", "prop", "modelValue"])) : m.column.type ===
|
|
1040
|
+
}), null, 16, ["read-mode", "slot-data", "label", "modal-data", "prop", "modelValue"])) : m.column.type === B(ht).Field ? (v(), $(E, ae({ key: 3 }, T.value, {
|
|
1041
1041
|
"read-mode": "",
|
|
1042
1042
|
ref: (le) => f.value = le,
|
|
1043
|
-
"slot-data":
|
|
1043
|
+
"slot-data": y.value,
|
|
1044
1044
|
label: u.value,
|
|
1045
|
-
"modal-data":
|
|
1045
|
+
"modal-data": b.value,
|
|
1046
1046
|
prop: l.value,
|
|
1047
1047
|
"model-value": a.value
|
|
1048
|
-
}), null, 16, ["slot-data", "label", "modal-data", "prop", "model-value"])) : (v(),
|
|
1049
|
-
ot(Xe(
|
|
1048
|
+
}), null, 16, ["slot-data", "label", "modal-data", "prop", "model-value"])) : (v(), k(q, { key: 4 }, [
|
|
1049
|
+
ot(Xe(B(it)(m.column, l.value, m.i, m.columns)), 1)
|
|
1050
1050
|
], 64));
|
|
1051
1051
|
};
|
|
1052
1052
|
}
|
|
1053
|
-
}),
|
|
1053
|
+
}), Me = class Me {
|
|
1054
1054
|
};
|
|
1055
|
-
|
|
1056
|
-
let W =
|
|
1055
|
+
Me.navButtonSlot = "", Me.dropButtonSlot = "", Me.editButtonSlot = "", Me.createButtonSlot = "", Me.defaultEmptySlot = void 0, Me.defaultSaveIcon = "", Me.defaultNoResultsMessage = "No results";
|
|
1056
|
+
let W = Me;
|
|
1057
1057
|
const fl = /* @__PURE__ */ re({
|
|
1058
1058
|
__name: "DropButtonComponent",
|
|
1059
1059
|
props: {
|
|
@@ -1066,15 +1066,15 @@ const fl = /* @__PURE__ */ re({
|
|
|
1066
1066
|
],
|
|
1067
1067
|
setup(t, { emit: o }) {
|
|
1068
1068
|
const i = o, n = t, l = s(() => W.dropButtonSlot !== ""), a = s(() => W.dropButtonSlot), f = s(() => da(n.config.resourceData, n.item));
|
|
1069
|
-
return (
|
|
1070
|
-
const T =
|
|
1071
|
-
return v(),
|
|
1072
|
-
disabled:
|
|
1069
|
+
return (y, b) => {
|
|
1070
|
+
const T = ye("lkt-button");
|
|
1071
|
+
return v(), $(T, ae({ palette: "table-delete" }, n.config, {
|
|
1072
|
+
disabled: y.disabled,
|
|
1073
1073
|
"resource-data": f.value,
|
|
1074
|
-
onClick:
|
|
1074
|
+
onClick: b[0] || (b[0] = ra((u) => i("click", u), ["prevent", "stop"]))
|
|
1075
1075
|
}), {
|
|
1076
|
-
default:
|
|
1077
|
-
l.value ? (v(),
|
|
1076
|
+
default: P(() => [
|
|
1077
|
+
l.value ? (v(), $(Le(a.value), { key: 0 })) : D("", !0)
|
|
1078
1078
|
]),
|
|
1079
1079
|
_: 1
|
|
1080
1080
|
}, 16, ["disabled", "resource-data"]);
|
|
@@ -1092,15 +1092,15 @@ const fl = /* @__PURE__ */ re({
|
|
|
1092
1092
|
],
|
|
1093
1093
|
setup(t, { emit: o }) {
|
|
1094
1094
|
const i = o, n = t, l = s(() => W.editButtonSlot !== ""), a = s(() => W.editButtonSlot), f = s(() => da(n.config.resourceData, n.item));
|
|
1095
|
-
return (
|
|
1096
|
-
const T =
|
|
1097
|
-
return v(),
|
|
1098
|
-
disabled:
|
|
1095
|
+
return (y, b) => {
|
|
1096
|
+
const T = ye("lkt-button");
|
|
1097
|
+
return v(), $(T, ae({ palette: "table-edit" }, n.config, {
|
|
1098
|
+
disabled: y.disabled,
|
|
1099
1099
|
"resource-data": f.value,
|
|
1100
|
-
onClick:
|
|
1100
|
+
onClick: b[0] || (b[0] = ra((u) => i("click"), ["prevent", "stop"]))
|
|
1101
1101
|
}), {
|
|
1102
|
-
default:
|
|
1103
|
-
l.value ? (v(),
|
|
1102
|
+
default: P(() => [
|
|
1103
|
+
l.value ? (v(), $(Le(a.value), { key: 0 })) : D("", !0)
|
|
1104
1104
|
]),
|
|
1105
1105
|
_: 1
|
|
1106
1106
|
}, 16, ["disabled", "resource-data"]);
|
|
@@ -1157,18 +1157,18 @@ const fl = /* @__PURE__ */ re({
|
|
|
1157
1157
|
"item-drop"
|
|
1158
1158
|
],
|
|
1159
1159
|
setup(t, { emit: o }) {
|
|
1160
|
-
var
|
|
1161
|
-
const i = ua(), n = o, l = t, a =
|
|
1160
|
+
var Y;
|
|
1161
|
+
const i = ua(), n = o, l = t, a = I(l.modelValue);
|
|
1162
1162
|
let f = typeof l.rowDisplayType == "function" ? l.rowDisplayType(a.value, l.i) : l.rowDisplayType;
|
|
1163
1163
|
f || (f = nt.Auto);
|
|
1164
|
-
const
|
|
1164
|
+
const y = [nt.Auto, nt.PreferCustomItem].includes(f), b = [nt.Auto, nt.PreferItem].includes(f), T = I((Y = l.editButton.anchor) == null ? void 0 : Y.to);
|
|
1165
1165
|
for (let r in a.value) T.value = va(T.value, ":" + r, a.value[r]);
|
|
1166
|
-
const u = (r) => n("click", r), m = (r,
|
|
1167
|
-
n("show", r,
|
|
1166
|
+
const u = (r) => n("click", r), m = (r, _) => {
|
|
1167
|
+
n("show", r, _);
|
|
1168
1168
|
}, c = s(() => {
|
|
1169
|
-
let r = [],
|
|
1170
|
-
return typeof l.disabledDrag == "function" ?
|
|
1171
|
-
}), S = s(() => W.navButtonSlot !== ""),
|
|
1169
|
+
let r = [], _ = !1;
|
|
1170
|
+
return typeof l.disabledDrag == "function" ? _ = l.disabledDrag(a.value) : _ = ce.value === !0, !_ && l.sortable && l.isDraggable ? r.push("handle") : _ && r.push("disabled"), r.join(" ");
|
|
1171
|
+
}), S = s(() => W.navButtonSlot !== ""), V = s(() => W.navButtonSlot), E = () => {
|
|
1172
1172
|
n("item-up", l.i);
|
|
1173
1173
|
}, le = () => {
|
|
1174
1174
|
n("item-down", l.i);
|
|
@@ -1178,37 +1178,37 @@ const fl = /* @__PURE__ */ re({
|
|
|
1178
1178
|
F(() => l.modelValue, (r) => a.value = r), F(a, (r) => {
|
|
1179
1179
|
n("update:modelValue", r);
|
|
1180
1180
|
}, { deep: !0 });
|
|
1181
|
-
const de = s(() => typeof l.renderDrag == "function" ? l.renderDrag(a.value) : l.renderDrag === !0), ce = s(() => typeof l.disabledDrag == "function" ? l.disabledDrag(a.value) : l.disabledDrag === !0),
|
|
1181
|
+
const de = s(() => typeof l.renderDrag == "function" ? l.renderDrag(a.value) : l.renderDrag === !0), ce = s(() => typeof l.disabledDrag == "function" ? l.disabledDrag(a.value) : l.disabledDrag === !0), Ne = s(() => c.value.includes("handle") ? "drag-indicator" : "invalid-drag-indicator"), ue = s(() => {
|
|
1182
1182
|
let r = [];
|
|
1183
|
-
return
|
|
1183
|
+
return y && r.push("type-custom-item"), b && r.push("type-item"), typeof l.itemContainerClass == "function" ? r.push(l.itemContainerClass(a.value, l.i)) : l.itemContainerClass !== "" && r.push(l.itemContainerClass), r.join(" ");
|
|
1184
1184
|
});
|
|
1185
|
-
return (r,
|
|
1186
|
-
const ee =
|
|
1187
|
-
return v(),
|
|
1185
|
+
return (r, _) => {
|
|
1186
|
+
const ee = ye("lkt-button");
|
|
1187
|
+
return v(), k("tr", {
|
|
1188
1188
|
"data-i": r.i,
|
|
1189
1189
|
"data-draggable": r.isDraggable,
|
|
1190
1190
|
class: Z(ue.value)
|
|
1191
1191
|
}, [
|
|
1192
|
-
r.sortable && r.editModeEnabled && de.value ? (v(),
|
|
1192
|
+
r.sortable && r.editModeEnabled && de.value ? (v(), k("td", {
|
|
1193
1193
|
key: 0,
|
|
1194
|
-
"data-role":
|
|
1194
|
+
"data-role": Ne.value,
|
|
1195
1195
|
class: Z(c.value),
|
|
1196
1196
|
"data-i": r.i
|
|
1197
|
-
},
|
|
1197
|
+
}, _[3] || (_[3] = [
|
|
1198
1198
|
x("i", { class: "lkt-icn-drag-indicator" }, null, -1)
|
|
1199
|
-
]), 10, gl)) :
|
|
1200
|
-
r.addNavigation && r.editModeEnabled ? (v(),
|
|
1199
|
+
]), 10, gl)) : D("", !0),
|
|
1200
|
+
r.addNavigation && r.editModeEnabled ? (v(), k("td", bl, [
|
|
1201
1201
|
x("div", yl, [
|
|
1202
1202
|
se(ee, {
|
|
1203
1203
|
palette: "table-nav",
|
|
1204
1204
|
disabled: r.i === 0,
|
|
1205
|
-
onClick:
|
|
1205
|
+
onClick: E
|
|
1206
1206
|
}, {
|
|
1207
|
-
default:
|
|
1208
|
-
S.value ? (v(),
|
|
1207
|
+
default: P(() => [
|
|
1208
|
+
S.value ? (v(), $(Le(V.value), {
|
|
1209
1209
|
key: 0,
|
|
1210
1210
|
direction: "up"
|
|
1211
|
-
})) : (v(),
|
|
1211
|
+
})) : (v(), k("i", hl))
|
|
1212
1212
|
]),
|
|
1213
1213
|
_: 1
|
|
1214
1214
|
}, 8, ["disabled"]),
|
|
@@ -1217,27 +1217,27 @@ const fl = /* @__PURE__ */ re({
|
|
|
1217
1217
|
disabled: r.latestRow,
|
|
1218
1218
|
onClick: le
|
|
1219
1219
|
}, {
|
|
1220
|
-
default:
|
|
1221
|
-
S.value ? (v(),
|
|
1220
|
+
default: P(() => [
|
|
1221
|
+
S.value ? (v(), $(Le(V.value), {
|
|
1222
1222
|
key: 0,
|
|
1223
1223
|
direction: "down"
|
|
1224
|
-
})) : (v(),
|
|
1224
|
+
})) : (v(), k("i", kl))
|
|
1225
1225
|
]),
|
|
1226
1226
|
_: 1
|
|
1227
1227
|
}, 8, ["disabled"])
|
|
1228
1228
|
])
|
|
1229
|
-
])) :
|
|
1230
|
-
r.displayHiddenColumnsIndicator ? (v(),
|
|
1229
|
+
])) : D("", !0),
|
|
1230
|
+
r.displayHiddenColumnsIndicator ? (v(), k("td", {
|
|
1231
1231
|
key: 2,
|
|
1232
|
-
onClick:
|
|
1232
|
+
onClick: _[0] || (_[0] = (U) => m(U, r.i)),
|
|
1233
1233
|
"data-role": "show-more",
|
|
1234
1234
|
class: Z(r.hiddenIsVisible ? "state-open" : "")
|
|
1235
|
-
}, null, 2)) :
|
|
1236
|
-
|
|
1235
|
+
}, null, 2)) : D("", !0),
|
|
1236
|
+
B(y) && B(i)[`item-${r.i}`] ? (v(), k("td", {
|
|
1237
1237
|
key: "td" + r.i,
|
|
1238
1238
|
colspan: r.visibleColumns.length
|
|
1239
1239
|
}, [
|
|
1240
|
-
|
|
1240
|
+
O(r.$slots, `item-${r.i}`, {
|
|
1241
1241
|
item: a.value,
|
|
1242
1242
|
index: r.i,
|
|
1243
1243
|
editing: r.editModeEnabled,
|
|
@@ -1248,11 +1248,11 @@ const fl = /* @__PURE__ */ re({
|
|
|
1248
1248
|
isLoading: r.isLoading,
|
|
1249
1249
|
doDrop: () => j()
|
|
1250
1250
|
})
|
|
1251
|
-
], 8, Sl)) :
|
|
1251
|
+
], 8, Sl)) : B(b) && B(i).item ? (v(), k("td", {
|
|
1252
1252
|
key: "td" + r.i,
|
|
1253
1253
|
colspan: r.visibleColumns.length
|
|
1254
1254
|
}, [
|
|
1255
|
-
|
|
1255
|
+
O(r.$slots, "item", {
|
|
1256
1256
|
item: a.value,
|
|
1257
1257
|
index: r.i,
|
|
1258
1258
|
editing: r.editModeEnabled,
|
|
@@ -1263,46 +1263,46 @@ const fl = /* @__PURE__ */ re({
|
|
|
1263
1263
|
isLoading: r.isLoading,
|
|
1264
1264
|
doDrop: () => j()
|
|
1265
1265
|
})
|
|
1266
|
-
], 8, Cl)) : (v(!0),
|
|
1267
|
-
|
|
1266
|
+
], 8, Cl)) : (v(!0), k(q, { key: 5 }, ie(r.visibleColumns, (U) => (v(), k(q, null, [
|
|
1267
|
+
B(dl)(U, r.emptyColumns, a.value) ? (v(), k("td", {
|
|
1268
1268
|
key: "td" + r.i,
|
|
1269
|
-
"data-column":
|
|
1270
|
-
colspan:
|
|
1271
|
-
title:
|
|
1272
|
-
class: Z(
|
|
1273
|
-
onClick:
|
|
1269
|
+
"data-column": U.key,
|
|
1270
|
+
colspan: B(Kt)(U, a.value),
|
|
1271
|
+
title: B(it)(U, a.value, r.i, r.visibleColumns),
|
|
1272
|
+
class: Z(B(ha)(U)),
|
|
1273
|
+
onClick: _[2] || (_[2] = (M) => u(M))
|
|
1274
1274
|
}, [
|
|
1275
|
-
r.$slots[
|
|
1275
|
+
r.$slots[U.key] && B(sl)(U, a.value) ? O(r.$slots, U.key, {
|
|
1276
1276
|
key: 0,
|
|
1277
|
-
value: a.value[
|
|
1277
|
+
value: a.value[U.key],
|
|
1278
1278
|
item: a.value,
|
|
1279
|
-
column:
|
|
1279
|
+
column: U,
|
|
1280
1280
|
i: r.i
|
|
1281
|
-
}) : a.value ? (v(),
|
|
1281
|
+
}) : a.value ? (v(), $(Rt, {
|
|
1282
1282
|
key: 1,
|
|
1283
1283
|
modelValue: a.value,
|
|
1284
|
-
"onUpdate:modelValue":
|
|
1285
|
-
column:
|
|
1284
|
+
"onUpdate:modelValue": _[1] || (_[1] = (M) => a.value = M),
|
|
1285
|
+
column: U,
|
|
1286
1286
|
columns: r.visibleColumns,
|
|
1287
1287
|
"edit-mode-enabled": r.editModeEnabled,
|
|
1288
1288
|
"has-inline-edit-perm": r.hasInlineEditPerm,
|
|
1289
1289
|
i: r.i
|
|
1290
|
-
}, null, 8, ["modelValue", "column", "columns", "edit-mode-enabled", "has-inline-edit-perm", "i"])) :
|
|
1291
|
-
], 10, wl)) :
|
|
1290
|
+
}, null, 8, ["modelValue", "column", "columns", "edit-mode-enabled", "has-inline-edit-perm", "i"])) : D("", !0)
|
|
1291
|
+
], 10, wl)) : D("", !0)
|
|
1292
1292
|
], 64))), 256)),
|
|
1293
|
-
r.canDrop && r.editModeEnabled ? (v(),
|
|
1293
|
+
r.canDrop && r.editModeEnabled ? (v(), k("td", Bl, [
|
|
1294
1294
|
se(fl, {
|
|
1295
1295
|
config: r.dropButton,
|
|
1296
1296
|
item: a.value,
|
|
1297
1297
|
onClick: j
|
|
1298
1298
|
}, null, 8, ["config", "item"])
|
|
1299
|
-
])) :
|
|
1300
|
-
r.canEdit && r.editModeEnabled ? (v(),
|
|
1299
|
+
])) : D("", !0),
|
|
1300
|
+
r.canEdit && r.editModeEnabled ? (v(), k("td", Dl, [
|
|
1301
1301
|
se(pl, {
|
|
1302
1302
|
config: r.editButton,
|
|
1303
1303
|
item: a.value
|
|
1304
1304
|
}, null, 8, ["config", "item"])
|
|
1305
|
-
])) :
|
|
1305
|
+
])) : D("", !0)
|
|
1306
1306
|
], 10, ml);
|
|
1307
1307
|
};
|
|
1308
1308
|
}
|
|
@@ -1326,35 +1326,35 @@ const fl = /* @__PURE__ */ re({
|
|
|
1326
1326
|
"click"
|
|
1327
1327
|
],
|
|
1328
1328
|
setup(t, { emit: o }) {
|
|
1329
|
-
const i = o, n = t, l =
|
|
1330
|
-
return F(() => n.modelValue, (f) => l.value = f), F(l, () => i("update:modelValue", l.value)), (f,
|
|
1329
|
+
const i = o, n = t, l = I(n.modelValue), a = (f) => i("click", f);
|
|
1330
|
+
return F(() => n.modelValue, (f) => l.value = f), F(l, () => i("update:modelValue", l.value)), (f, y) => Oe((v(), k("tr", Tl, [
|
|
1331
1331
|
x("td", { colspan: f.hiddenColumnsColSpan }, [
|
|
1332
1332
|
x("table", null, [
|
|
1333
1333
|
x("tr", null, [
|
|
1334
|
-
(v(!0),
|
|
1335
|
-
"data-column":
|
|
1334
|
+
(v(!0), k(q, null, ie(f.hiddenColumns, (b) => (v(), k("th", {
|
|
1335
|
+
"data-column": b.key
|
|
1336
1336
|
}, [
|
|
1337
|
-
x("div", null, Xe(
|
|
1337
|
+
x("div", null, Xe(b.label), 1)
|
|
1338
1338
|
], 8, Al))), 256))
|
|
1339
1339
|
]),
|
|
1340
1340
|
x("tr", { "data-i": f.i }, [
|
|
1341
|
-
(v(!0),
|
|
1342
|
-
"data-column":
|
|
1343
|
-
title:
|
|
1344
|
-
onClick:
|
|
1341
|
+
(v(!0), k(q, null, ie(f.hiddenColumns, (b, T) => (v(), k("td", {
|
|
1342
|
+
"data-column": b.key,
|
|
1343
|
+
title: B(it)(b, l.value, T, f.hiddenColumns),
|
|
1344
|
+
onClick: y[1] || (y[1] = (u) => a(u))
|
|
1345
1345
|
}, [
|
|
1346
|
-
f.$slots[
|
|
1346
|
+
f.$slots[b.key] ? O(f.$slots, b.key, {
|
|
1347
1347
|
key: 0,
|
|
1348
|
-
value: l.value[
|
|
1348
|
+
value: l.value[b.key],
|
|
1349
1349
|
item: l.value,
|
|
1350
|
-
column:
|
|
1350
|
+
column: b,
|
|
1351
1351
|
i: T
|
|
1352
|
-
}) : (v(),
|
|
1352
|
+
}) : (v(), $(Rt, {
|
|
1353
1353
|
key: 1,
|
|
1354
|
-
column:
|
|
1354
|
+
column: b,
|
|
1355
1355
|
columns: f.hiddenColumns,
|
|
1356
1356
|
modelValue: l.value,
|
|
1357
|
-
"onUpdate:modelValue":
|
|
1357
|
+
"onUpdate:modelValue": y[0] || (y[0] = (u) => l.value = u),
|
|
1358
1358
|
i: T,
|
|
1359
1359
|
"edit-mode-enabled": f.editModeEnabled,
|
|
1360
1360
|
"has-inline-edit-perm": f.hasInlineEditPerm
|
|
@@ -1364,7 +1364,7 @@ const fl = /* @__PURE__ */ re({
|
|
|
1364
1364
|
])
|
|
1365
1365
|
], 8, El)
|
|
1366
1366
|
], 512)), [
|
|
1367
|
-
[
|
|
1367
|
+
[Ue, f.hiddenIsVisible]
|
|
1368
1368
|
]);
|
|
1369
1369
|
}
|
|
1370
1370
|
}), Ht = /* @__PURE__ */ re({
|
|
@@ -1384,11 +1384,11 @@ const fl = /* @__PURE__ */ re({
|
|
|
1384
1384
|
beforeClose: (u) => {
|
|
1385
1385
|
"itemCreated" in u && u.itemCreated === !0 && i("append", u.item);
|
|
1386
1386
|
}
|
|
1387
|
-
},
|
|
1387
|
+
}, y = {
|
|
1388
1388
|
...n.config
|
|
1389
1389
|
};
|
|
1390
|
-
|
|
1391
|
-
const
|
|
1390
|
+
y.modalData = f;
|
|
1391
|
+
const b = () => {
|
|
1392
1392
|
var u;
|
|
1393
1393
|
if (!((u = n.config) != null && u.modal)) {
|
|
1394
1394
|
i("click");
|
|
@@ -1396,19 +1396,19 @@ const fl = /* @__PURE__ */ re({
|
|
|
1396
1396
|
}
|
|
1397
1397
|
};
|
|
1398
1398
|
return (u, m) => {
|
|
1399
|
-
const c =
|
|
1400
|
-
return v(),
|
|
1399
|
+
const c = ye("lkt-button");
|
|
1400
|
+
return v(), $(c, ae(y, {
|
|
1401
1401
|
disabled: u.disabled,
|
|
1402
|
-
onClick:
|
|
1402
|
+
onClick: b
|
|
1403
1403
|
}), {
|
|
1404
|
-
default:
|
|
1405
|
-
l.value ? (v(),
|
|
1404
|
+
default: P(() => [
|
|
1405
|
+
l.value ? (v(), $(Le(a.value), { key: 0 })) : D("", !0)
|
|
1406
1406
|
]),
|
|
1407
1407
|
_: 1
|
|
1408
1408
|
}, 16, ["disabled"]);
|
|
1409
1409
|
};
|
|
1410
1410
|
}
|
|
1411
|
-
}),
|
|
1411
|
+
}), Ll = ["data-column", "data-sortable", "data-sort", "colspan", "title"], Nl = /* @__PURE__ */ re({
|
|
1412
1412
|
__name: "TableHeader",
|
|
1413
1413
|
props: {
|
|
1414
1414
|
column: { default: () => new sa() },
|
|
@@ -1421,26 +1421,26 @@ const fl = /* @__PURE__ */ re({
|
|
|
1421
1421
|
"click"
|
|
1422
1422
|
],
|
|
1423
1423
|
setup(t, { emit: o }) {
|
|
1424
|
-
const i = o, n = t, l = s(() => ul(n.column, n.amountOfColumns, n.items)), a = s(() => n.column.sortable === !0), f = s(() => a.value && n.sortBy === n.column.key ? n.sortDirection : ""),
|
|
1425
|
-
return (u, m) => (v(),
|
|
1424
|
+
const i = o, n = t, l = s(() => ul(n.column, n.amountOfColumns, n.items)), a = s(() => n.column.sortable === !0), f = s(() => a.value && n.sortBy === n.column.key ? n.sortDirection : ""), y = s(() => ca(n.column.label)), b = s(() => a.value && n.sortBy === n.column.key ? n.sortDirection === Ge.Asc ? be.defaultTableSortAscIcon : n.sortDirection === Ge.Desc ? be.defaultTableSortDescIcon : "" : ""), T = () => i("click", n.column);
|
|
1425
|
+
return (u, m) => (v(), k("th", {
|
|
1426
1426
|
"data-column": u.column.key,
|
|
1427
1427
|
"data-sortable": a.value,
|
|
1428
1428
|
"data-sort": f.value,
|
|
1429
1429
|
colspan: l.value,
|
|
1430
|
-
title:
|
|
1431
|
-
class: Z(
|
|
1430
|
+
title: y.value,
|
|
1431
|
+
class: Z(B(ha)(u.column)),
|
|
1432
1432
|
onClick: T
|
|
1433
1433
|
}, [
|
|
1434
1434
|
x("div", null, [
|
|
1435
|
-
ot(Xe(
|
|
1436
|
-
|
|
1435
|
+
ot(Xe(y.value) + " ", 1),
|
|
1436
|
+
b.value ? (v(), k("i", {
|
|
1437
1437
|
key: 0,
|
|
1438
|
-
class: Z(
|
|
1439
|
-
}, null, 2)) :
|
|
1438
|
+
class: Z(b.value)
|
|
1439
|
+
}, null, 2)) : D("", !0)
|
|
1440
1440
|
])
|
|
1441
|
-
], 10,
|
|
1441
|
+
], 10, Ll));
|
|
1442
1442
|
}
|
|
1443
|
-
}),
|
|
1443
|
+
}), $l = ["id"], _l = { class: "lkt-table-page-buttons" }, Ol = { class: "switch-edition-mode" }, Ul = { class: "switch-edition-mode" }, Pl = {
|
|
1444
1444
|
key: 0,
|
|
1445
1445
|
class: "lkt-table-page-buttons"
|
|
1446
1446
|
}, Fl = {
|
|
@@ -1463,7 +1463,7 @@ const fl = /* @__PURE__ */ re({
|
|
|
1463
1463
|
class: "lkt-table-page-buttons lkt-table-page-buttons-bottom"
|
|
1464
1464
|
}, on = /* @__PURE__ */ re({
|
|
1465
1465
|
__name: "LktTable",
|
|
1466
|
-
props: /* @__PURE__ */
|
|
1466
|
+
props: /* @__PURE__ */ $a({
|
|
1467
1467
|
modelValue: {},
|
|
1468
1468
|
type: {},
|
|
1469
1469
|
columns: {},
|
|
@@ -1505,8 +1505,9 @@ const fl = /* @__PURE__ */ re({
|
|
|
1505
1505
|
wrapContentClass: {},
|
|
1506
1506
|
itemsContainerClass: {},
|
|
1507
1507
|
itemContainerClass: { type: [String, Function] },
|
|
1508
|
+
skipTableItemsContainer: { type: Boolean },
|
|
1508
1509
|
createEnabledValidator: { type: Function }
|
|
1509
|
-
}, Pa
|
|
1510
|
+
}, Ua(Pa)),
|
|
1510
1511
|
emits: [
|
|
1511
1512
|
"update:modelValue",
|
|
1512
1513
|
"update:perms",
|
|
@@ -1524,32 +1525,32 @@ const fl = /* @__PURE__ */ re({
|
|
|
1524
1525
|
],
|
|
1525
1526
|
setup(t, { expose: o, emit: i }) {
|
|
1526
1527
|
var Jt, Qt;
|
|
1527
|
-
const n = i, l = ua(), a = t, f = {},
|
|
1528
|
-
F(() => a.saveButton, (e) => M.value =
|
|
1529
|
-
const
|
|
1530
|
-
F(
|
|
1528
|
+
const n = i, l = ua(), a = t, f = {}, y = I(typeof a.sorter == "function" ? a.sorter : rl), b = I(cl(a.columns)), T = I(Ge.Asc), u = I(a.modelValue), m = I(f), c = I(null), S = I(a.columns), V = I((Jt = a.paginator) == null ? void 0 : Jt.modelValue), E = I(a.loading), le = I(!1), j = I(a.perms), de = I(null), ce = I(null), Ne = I(null), ue = I({}), Y = I(new ja({ items: u.value }, a.dataStateConfig)), r = I(a.editMode), _ = I(0), ee = I(null), U = I(((Qt = a.carousel) == null ? void 0 : Qt.currentSlide) || 0), M = I(Ee(a.saveButton, be.defaultSaveButton)), he = I(Ee(a.createButton, be.defaultCreateButton)), rt = I(Ee(a.editModeButton, be.defaultEditModeButton)), Pe = I(Ee(a.dropButton, be.defaultDropButton)), ne = I(Ee(a.groupButton, be.defaultGroupButton));
|
|
1529
|
+
F(() => a.saveButton, (e) => M.value = Ee(a.saveButton, be.defaultSaveButton)), F(() => a.createButton, (e) => he.value = Ee(a.createButton, be.defaultCreateButton)), F(() => a.editModeButton, (e) => rt.value = Ee(a.editModeButton, be.defaultEditModeButton)), F(() => a.dropButton, (e) => Pe.value = Ee(a.dropButton, be.defaultDropButton));
|
|
1530
|
+
const $e = I(!1);
|
|
1531
|
+
F(E, (e) => n("update:loading", e)), F(V, (e) => n("page", e));
|
|
1531
1532
|
const Fe = (e) => {
|
|
1532
1533
|
j.value = e;
|
|
1533
|
-
},
|
|
1534
|
+
}, Mt = (e) => {
|
|
1534
1535
|
var p;
|
|
1535
|
-
Array.isArray(e.data) && ((!a.paginator || ![
|
|
1536
|
-
|
|
1536
|
+
Array.isArray(e.data) && ((!a.paginator || ![Et.LoadMore, Et.Infinite].includes((p = a.paginator) == null ? void 0 : p.type)) && u.value.splice(0, u.value.length), u.value = [...u.value, ...e.data]), E.value = !1, le.value = !0, Y.value.store({ items: u.value }).turnStoredIntoOriginal(), $e.value = !1, Tt(() => {
|
|
1537
|
+
me(), _e.value, n("read-response", e);
|
|
1537
1538
|
});
|
|
1538
|
-
},
|
|
1539
|
+
}, ke = () => Tt(() => E.value = !0), Ke = () => {
|
|
1539
1540
|
de.value.doRefresh();
|
|
1540
|
-
}, ve = Fa(12),
|
|
1541
|
+
}, ve = Fa(12), Se = s(() => {
|
|
1541
1542
|
if (!a.hideEmptyColumns) return [];
|
|
1542
1543
|
let e = [];
|
|
1543
1544
|
return S.value.forEach((p) => {
|
|
1544
|
-
let
|
|
1545
|
+
let N = p.key, Q = !1;
|
|
1545
1546
|
u.value.forEach((oe) => {
|
|
1546
1547
|
if (typeof oe.checkEmpty == "function")
|
|
1547
1548
|
return oe.checkEmpty(oe);
|
|
1548
|
-
oe[
|
|
1549
|
-
}), Q || e.push(
|
|
1549
|
+
oe[N] && (Q = !0);
|
|
1550
|
+
}), Q || e.push(N);
|
|
1550
1551
|
}), e;
|
|
1551
|
-
}),
|
|
1552
|
-
let e =
|
|
1552
|
+
}), Ce = s(() => S.value.filter((e) => !e.hidden)), We = s(() => []), Je = s(() => {
|
|
1553
|
+
let e = Ce.value.length + 1;
|
|
1553
1554
|
return a.sortable && ++e, e;
|
|
1554
1555
|
}), De = s(() => S.value.filter((e) => e.isForRowKey)), je = s(() => We.value.length > 0 && !a.sortable), fe = s(() => S.value.map((e) => e.key)), ze = s(() => {
|
|
1555
1556
|
let e = [];
|
|
@@ -1561,26 +1562,26 @@ const fl = /* @__PURE__ */ re({
|
|
|
1561
1562
|
return e;
|
|
1562
1563
|
}), st = s(() => {
|
|
1563
1564
|
var e;
|
|
1564
|
-
return a.hiddenSave ||
|
|
1565
|
-
}),
|
|
1565
|
+
return a.hiddenSave || E.value || !((e = M.value) != null && e.resource || M.value.type) ? !1 : r.value && $e.value ? !0 : r.value;
|
|
1566
|
+
}), Lt = s(() => gt.value && u.value.length >= a.requiredItemsForTopCreate || He.value ? !0 : st.value || r.value && pe.value), _e = s(() => {
|
|
1566
1567
|
var e, p;
|
|
1567
|
-
return
|
|
1568
|
+
return _.value, typeof ((e = M.value) == null ? void 0 : e.disabled) == "function" ? M.value.disabled({
|
|
1568
1569
|
value: u.value,
|
|
1569
|
-
dataState:
|
|
1570
|
-
}) : typeof ((p = M.value) == null ? void 0 : p.disabled) == "boolean" ? M.value.disabled :
|
|
1570
|
+
dataState: Y.value
|
|
1571
|
+
}) : typeof ((p = M.value) == null ? void 0 : p.disabled) == "boolean" ? M.value.disabled : !$e.value;
|
|
1571
1572
|
}), Nt = s(() => u.value.length), dt = s(() => {
|
|
1572
1573
|
var e;
|
|
1573
1574
|
return {
|
|
1574
1575
|
items: u.value,
|
|
1575
1576
|
...(e = M.value) == null ? void 0 : e.resourceData
|
|
1576
1577
|
};
|
|
1577
|
-
}),
|
|
1578
|
+
}), St = s(() => a.titleTag === "" ? "h2" : a.titleTag), ct = s(() => a.wrapContentTag === "" ? "div" : a.wrapContentTag), Qe = s(() => ca(a.title)), Ze = s(() => {
|
|
1578
1579
|
var e;
|
|
1579
1580
|
return (e = a.drag) == null ? void 0 : e.enabled;
|
|
1580
|
-
}),
|
|
1581
|
+
}), pe = s(() => j.value.includes(Ae.Create)), Ie = s(() => j.value.includes("read")), z = s(() => j.value.includes(Ae.Update)), Te = s(() => j.value.includes(Ae.Edit)), we = s(() => j.value.includes(Ae.InlineEdit)), xe = s(() => j.value.includes(Ae.ModalCreate)), Ct = s(() => j.value.includes(Ae.InlineCreate)), vt = s(() => j.value.includes(Ae.InlineCreateEver)), G = s(() => j.value.includes(Ae.Drop)), ft = s(() => j.value.includes(Ae.SwitchEditMode)), He = s(() => !ft.value || !z.value && !G.value || !z.value && G.value ? !1 : !E.value), et = s(() => {
|
|
1581
1582
|
var e;
|
|
1582
|
-
return (typeof ((e = a.paginator) == null ? void 0 : e.type) < "u" && [
|
|
1583
|
-
}), tt = s(() => S.value.find((e) => e.isForAccordionHeader)),
|
|
1583
|
+
return (typeof ((e = a.paginator) == null ? void 0 : e.type) < "u" && [Et.LoadMore, Et.Infinite].includes(a.paginator.type) || !E.value) && u.value.length > 0;
|
|
1584
|
+
}), tt = s(() => S.value.find((e) => e.isForAccordionHeader)), $t = (e) => {
|
|
1584
1585
|
let p = e.target;
|
|
1585
1586
|
if (typeof p.dataset.column > "u")
|
|
1586
1587
|
do
|
|
@@ -1588,31 +1589,31 @@ const fl = /* @__PURE__ */ re({
|
|
|
1588
1589
|
while (typeof p.dataset.column > "u" && p.tagName !== "TABLE" && p.tagName !== "body");
|
|
1589
1590
|
if (p.tagName === "TD" && (p = p.parentNode, p = p.dataset.i, typeof p < "u"))
|
|
1590
1591
|
return u.value[p];
|
|
1591
|
-
},
|
|
1592
|
-
|
|
1593
|
-
},
|
|
1592
|
+
}, me = () => {
|
|
1593
|
+
_.value = Ha();
|
|
1594
|
+
}, wt = (e) => u.value[e], _t = (e) => {
|
|
1594
1595
|
var p;
|
|
1595
1596
|
return (p = c.value) == null ? void 0 : p.querySelector(`[data-i="${e}"]`);
|
|
1596
1597
|
}, at = (e) => m.value["tr_" + e] === !0, d = (e) => {
|
|
1597
|
-
e && e.sortable && (u.value = u.value.sort((p,
|
|
1598
|
-
},
|
|
1598
|
+
e && e.sortable && (u.value = u.value.sort((p, N) => y.value(p, N, e, T.value)), T.value = T.value === Ge.Asc ? Ge.Desc : Ge.Asc, b.value = e.key, me(), n("sort", [b.value, T.value]));
|
|
1599
|
+
}, h = (e) => {
|
|
1599
1600
|
n("click", e);
|
|
1600
1601
|
}, C = (e, p) => {
|
|
1601
|
-
let
|
|
1602
|
-
m.value[
|
|
1603
|
-
},
|
|
1604
|
-
var
|
|
1605
|
-
let p = parseInt((
|
|
1606
|
-
return !(typeof ((
|
|
1607
|
-
},
|
|
1608
|
-
var p,
|
|
1609
|
-
return typeof ((p = a.drag) == null ? void 0 : p.isDraggable) == "function" ? (
|
|
1610
|
-
},
|
|
1611
|
-
if (
|
|
1602
|
+
let N = "tr_" + p;
|
|
1603
|
+
m.value[N] = typeof m.value[N] > "u" ? !0 : !m.value[N];
|
|
1604
|
+
}, A = (e) => {
|
|
1605
|
+
var N, Q, oe, ge, yt, w, g, R;
|
|
1606
|
+
let p = parseInt((ge = (oe = (Q = (N = e == null ? void 0 : e.originalEvent) == null ? void 0 : N.toElement) == null ? void 0 : Q.closest("tr")) == null ? void 0 : oe.dataset) == null ? void 0 : ge.i);
|
|
1607
|
+
return !(typeof ((yt = a.drag) == null ? void 0 : yt.isValid) == "function" && !((w = a.drag) != null && w.isValid(u.value[p])) || typeof ((g = a.drag) == null ? void 0 : g.isValid) == "boolean" && !((R = a.drag) != null && R.isValid));
|
|
1608
|
+
}, L = (e) => {
|
|
1609
|
+
var p, N;
|
|
1610
|
+
return typeof ((p = a.drag) == null ? void 0 : p.isDraggable) == "function" ? (N = a.drag) == null ? void 0 : N.isDraggable(e) : !0;
|
|
1611
|
+
}, X = () => {
|
|
1612
|
+
if (pe.value) {
|
|
1612
1613
|
n("click-create");
|
|
1613
1614
|
return;
|
|
1614
1615
|
}
|
|
1615
|
-
if (
|
|
1616
|
+
if (Ct.value || vt.value) {
|
|
1616
1617
|
if (typeof a.newValueGenerator == "function") {
|
|
1617
1618
|
let e = a.newValueGenerator();
|
|
1618
1619
|
if (typeof e == "object" || a.type !== qe.Table) {
|
|
@@ -1625,329 +1626,329 @@ const fl = /* @__PURE__ */ re({
|
|
|
1625
1626
|
n("click-create");
|
|
1626
1627
|
}, te = (e) => {
|
|
1627
1628
|
u.value.push(e);
|
|
1628
|
-
}, J = () =>
|
|
1629
|
-
var
|
|
1630
|
-
if (!((
|
|
1629
|
+
}, J = () => E.value = !0, lt = () => E.value = !1, Bt = (e, p) => {
|
|
1630
|
+
var N, Q, oe;
|
|
1631
|
+
if (!((N = M.value) != null && N.type && [
|
|
1631
1632
|
jt.Split,
|
|
1632
1633
|
jt.SplitEver,
|
|
1633
1634
|
jt.SplitLazy
|
|
1634
1635
|
].includes((Q = M.value) == null ? void 0 : Q.type))) {
|
|
1635
|
-
if (n("before-save"), (oe = M.value) != null && oe.resource && (
|
|
1636
|
+
if (n("before-save"), (oe = M.value) != null && oe.resource && (E.value = !1, !p.success)) {
|
|
1636
1637
|
n("error", p.httpStatus);
|
|
1637
1638
|
return;
|
|
1638
1639
|
}
|
|
1639
|
-
|
|
1640
|
+
Y.value.turnStoredIntoOriginal(), $e.value = !1, n("save", p);
|
|
1640
1641
|
}
|
|
1641
|
-
},
|
|
1642
|
-
if (
|
|
1643
|
-
let Q =
|
|
1642
|
+
}, Dt = (e, p, N) => {
|
|
1643
|
+
if (N >= e.length) {
|
|
1644
|
+
let Q = N - e.length + 1;
|
|
1644
1645
|
for (; Q--; ) e.push(void 0);
|
|
1645
1646
|
}
|
|
1646
|
-
return e.splice(
|
|
1647
|
+
return e.splice(N, 0, e.splice(p, 1)[0]), e;
|
|
1647
1648
|
}, ka = (e) => {
|
|
1648
|
-
|
|
1649
|
+
Dt(u.value, e, e - 1), me();
|
|
1649
1650
|
}, Sa = (e) => {
|
|
1650
|
-
|
|
1651
|
-
},
|
|
1652
|
-
u.value.splice(e, 1),
|
|
1651
|
+
Dt(u.value, e, e + 1), me();
|
|
1652
|
+
}, pt = (e) => {
|
|
1653
|
+
u.value.splice(e, 1), me();
|
|
1653
1654
|
}, Wt = () => {
|
|
1654
1655
|
var e;
|
|
1655
1656
|
ue.value && typeof ((e = ue.value) == null ? void 0 : e.destroy) == "function" && (ue.value.destroy(), ue.value = {});
|
|
1656
|
-
},
|
|
1657
|
+
}, Ot = () => {
|
|
1657
1658
|
ee.value || (ee.value = document.getElementById("lkt-table-body-" + ve)), ue.value = new za(ee.value, {
|
|
1658
1659
|
direction: "vertical",
|
|
1659
1660
|
handle: ".handle",
|
|
1660
1661
|
animation: 150,
|
|
1661
1662
|
onEnd: function(e) {
|
|
1662
|
-
let p = e.oldIndex,
|
|
1663
|
-
u.value.splice(
|
|
1663
|
+
let p = e.oldIndex, N = e.newIndex;
|
|
1664
|
+
u.value.splice(N, 0, u.value.splice(p, 1)[0]), me(), n("drag-end", u.value[N]);
|
|
1664
1665
|
},
|
|
1665
1666
|
onMove: function(e, p) {
|
|
1666
|
-
return
|
|
1667
|
+
return A(e);
|
|
1667
1668
|
}
|
|
1668
1669
|
});
|
|
1669
|
-
},
|
|
1670
|
-
let Q = [
|
|
1671
|
-
return
|
|
1672
|
-
let
|
|
1673
|
-
|
|
1670
|
+
}, mt = (e, p, N = !1) => {
|
|
1671
|
+
let Q = [_.value, ve, "row", p];
|
|
1672
|
+
return N && Q.push("hidden"), De.value.forEach((oe) => {
|
|
1673
|
+
let ge = String(e[oe.key]).toLowerCase();
|
|
1674
|
+
ge.length > 50 && (ge = ge.substring(0, 50)), ge = va(ge, " ", "-"), Q.push(ge);
|
|
1674
1675
|
}), Q.join("-");
|
|
1675
|
-
},
|
|
1676
|
+
}, Ut = s(() => typeof a.createEnabledValidator == "function" ? a.createEnabledValidator({ items: u.value }) : !0), gt = s(() => vt.value || pe.value && r.value || Ct.value && r.value || xe.value && r.value), Ca = s(() => [qe.Ol, qe.Ul].includes(a.type)), bt = (e, p) => typeof a.itemDisplayChecker == "function" ? a.itemDisplayChecker(e) : !0, It = (e, p) => typeof a.itemContainerClass == "function" ? a.itemContainerClass(e, p) : a.itemContainerClass, wa = (e, p) => tt.value ? e[tt.value.key] : "";
|
|
1676
1677
|
Yt(() => {
|
|
1677
1678
|
var e;
|
|
1678
|
-
a.initialSorting && d(vl(a.columns,
|
|
1679
|
-
|
|
1679
|
+
a.initialSorting && d(vl(a.columns, b.value)), Y.value.store({ items: u.value }).turnStoredIntoOriginal(), $e.value = !1, (e = a.drag) != null && e.enabled && Tt(() => {
|
|
1680
|
+
Ot();
|
|
1680
1681
|
});
|
|
1681
1682
|
}), F(() => {
|
|
1682
1683
|
var e;
|
|
1683
1684
|
return (e = a.drag) == null ? void 0 : e.enabled;
|
|
1684
1685
|
}, (e) => {
|
|
1685
|
-
e ?
|
|
1686
|
+
e ? Ot() : Wt();
|
|
1686
1687
|
}), F(() => a.type, (e) => {
|
|
1687
1688
|
var p;
|
|
1688
|
-
(p = a.drag) != null && p.enabled ?
|
|
1689
|
+
(p = a.drag) != null && p.enabled ? Ot() : Wt();
|
|
1689
1690
|
}), F(() => a.perms, (e) => j.value = e), F(j, (e) => n("update:perms", e)), F(r, (e) => {
|
|
1690
1691
|
n("update:editMode", e);
|
|
1691
1692
|
}), F(() => a.editMode, (e) => r.value = e), F(() => a.columns, (e) => S.value = e, { deep: !0 }), F(() => a.modelValue, (e) => {
|
|
1692
1693
|
u.value = e;
|
|
1693
1694
|
}, { deep: !0 }), F(u, (e) => {
|
|
1694
|
-
|
|
1695
|
+
Y.value.increment({ items: e }), $e.value = Y.value.changed(), n("update:modelValue", e);
|
|
1695
1696
|
}, { deep: !0 }), o({
|
|
1696
|
-
getItemByEvent:
|
|
1697
|
-
getItemByIndex:
|
|
1697
|
+
getItemByEvent: $t,
|
|
1698
|
+
getItemByIndex: wt,
|
|
1698
1699
|
getRowByIndex: _t,
|
|
1699
1700
|
doRefresh: Ke,
|
|
1700
1701
|
doRemoveIndex: (e) => {
|
|
1701
|
-
u.value.splice(e, 1),
|
|
1702
|
+
u.value.splice(e, 1), me();
|
|
1702
1703
|
},
|
|
1703
1704
|
getHtml: () => ce.value,
|
|
1704
|
-
reRender:
|
|
1705
|
+
reRender: me,
|
|
1705
1706
|
turnStoredIntoOriginal: () => {
|
|
1706
|
-
|
|
1707
|
-
|
|
1707
|
+
Y.value.turnStoredIntoOriginal(), Tt(() => {
|
|
1708
|
+
me();
|
|
1708
1709
|
});
|
|
1709
1710
|
}
|
|
1710
1711
|
});
|
|
1711
1712
|
const Ba = s(() => typeof W.defaultEmptySlot < "u"), Da = s(() => W.defaultEmptySlot), Ia = s(() => !a.drag || Object.keys(a.drag).length === 0 || !a.drag.enabled ? !1 : typeof a.drag.canRender > "u" ? !0 : a.drag.canRender), Ta = s(() => !a.drag || Object.keys(a.drag).length === 0 || !a.drag.enabled || typeof a.drag.isDisabled > "u" ? !1 : a.drag.isDisabled);
|
|
1712
1713
|
return (e, p) => {
|
|
1713
|
-
const
|
|
1714
|
-
return v(),
|
|
1714
|
+
const N = ye("lkt-button"), Q = ye("lkt-accordion"), oe = ye("lkt-loader"), ge = ye("lkt-paginator");
|
|
1715
|
+
return v(), k("section", {
|
|
1715
1716
|
ref_key: "element",
|
|
1716
1717
|
ref: ce,
|
|
1717
1718
|
class: "lkt-table-page",
|
|
1718
|
-
id: "lkt-table-page-" +
|
|
1719
|
+
id: "lkt-table-page-" + B(ve)
|
|
1719
1720
|
}, [
|
|
1720
|
-
Qe.value ||
|
|
1721
|
+
Qe.value || B(l).title ? (v(), k("header", {
|
|
1721
1722
|
key: 0,
|
|
1722
1723
|
class: Z(e.headerClass)
|
|
1723
1724
|
}, [
|
|
1724
|
-
Qe.value ? (v(),
|
|
1725
|
-
default:
|
|
1726
|
-
e.titleIcon ? (v(),
|
|
1725
|
+
Qe.value ? (v(), $(Le(St.value), { key: 0 }, {
|
|
1726
|
+
default: P(() => [
|
|
1727
|
+
e.titleIcon ? (v(), k("i", {
|
|
1727
1728
|
key: 0,
|
|
1728
1729
|
class: Z(e.titleIcon)
|
|
1729
|
-
}, null, 2)) :
|
|
1730
|
+
}, null, 2)) : D("", !0),
|
|
1730
1731
|
ot(" " + Xe(Qe.value), 1)
|
|
1731
1732
|
]),
|
|
1732
1733
|
_: 1
|
|
1733
|
-
})) :
|
|
1734
|
-
|
|
1735
|
-
], 2)) :
|
|
1736
|
-
(v(),
|
|
1734
|
+
})) : D("", !0),
|
|
1735
|
+
B(l).title ? O(e.$slots, "title", { key: 1 }) : D("", !0)
|
|
1736
|
+
], 2)) : D("", !0),
|
|
1737
|
+
(v(), $(Le(ct.value), {
|
|
1737
1738
|
class: Z(["lkt-table-page-content-wrapper", e.wrapContentClass])
|
|
1738
1739
|
}, {
|
|
1739
|
-
default:
|
|
1740
|
-
var
|
|
1740
|
+
default: P(() => {
|
|
1741
|
+
var yt;
|
|
1741
1742
|
return [
|
|
1742
|
-
Oe(x("div",
|
|
1743
|
-
e.groupButton !== !1 ? (v(),
|
|
1743
|
+
Oe(x("div", _l, [
|
|
1744
|
+
e.groupButton !== !1 ? (v(), $(N, ae({
|
|
1744
1745
|
key: 0,
|
|
1745
1746
|
ref: "groupButton"
|
|
1746
1747
|
}, ne.value, { class: "lkt-item-crud-group-button" }), {
|
|
1747
|
-
split:
|
|
1748
|
+
split: P(() => [
|
|
1748
1749
|
x("div", Ol, [
|
|
1749
|
-
Oe(se(
|
|
1750
|
+
Oe(se(N, ae(rt.value, {
|
|
1750
1751
|
checked: r.value,
|
|
1751
|
-
"onUpdate:checked": p[0] || (p[0] = (
|
|
1752
|
+
"onUpdate:checked": p[0] || (p[0] = (w) => r.value = w)
|
|
1752
1753
|
}), null, 16, ["checked"]), [
|
|
1753
|
-
[
|
|
1754
|
+
[Ue, He.value]
|
|
1754
1755
|
])
|
|
1755
1756
|
]),
|
|
1756
|
-
|
|
1757
|
+
B(l)["prev-buttons-ever"] ? O(e.$slots, "prev-buttons-ever", {
|
|
1757
1758
|
key: 0,
|
|
1758
|
-
canUpdate:
|
|
1759
|
-
canDrop:
|
|
1759
|
+
canUpdate: z.value,
|
|
1760
|
+
canDrop: G.value,
|
|
1760
1761
|
perms: e.perms
|
|
1761
|
-
}) :
|
|
1762
|
-
|
|
1762
|
+
}) : D("", !0),
|
|
1763
|
+
B(l)["prev-buttons"] ? O(e.$slots, "prev-buttons", {
|
|
1763
1764
|
key: 1,
|
|
1764
|
-
canUpdate:
|
|
1765
|
-
canDrop:
|
|
1765
|
+
canUpdate: z.value,
|
|
1766
|
+
canDrop: G.value,
|
|
1766
1767
|
perms: e.perms
|
|
1767
|
-
}) :
|
|
1768
|
-
Oe(se(
|
|
1768
|
+
}) : D("", !0),
|
|
1769
|
+
Oe(se(N, ae({
|
|
1769
1770
|
class: "lkt-table--save-button",
|
|
1770
1771
|
ref_key: "saveButtonRef",
|
|
1771
|
-
ref:
|
|
1772
|
+
ref: Ne
|
|
1772
1773
|
}, {
|
|
1773
1774
|
...M.value,
|
|
1774
|
-
disabled:
|
|
1775
|
+
disabled: _e.value,
|
|
1775
1776
|
resourceData: dt.value
|
|
1776
1777
|
}, {
|
|
1777
1778
|
onLoading: J,
|
|
1778
1779
|
onLoaded: lt,
|
|
1779
|
-
onClick:
|
|
1780
|
+
onClick: Bt
|
|
1780
1781
|
}), {
|
|
1781
|
-
split:
|
|
1782
|
-
|
|
1783
|
-
doClose:
|
|
1784
|
-
doRootClick:
|
|
1785
|
-
dataState:
|
|
1782
|
+
split: P(({ doClose: w, doRootClick: g }) => [
|
|
1783
|
+
O(e.$slots, "button-save-split", {
|
|
1784
|
+
doClose: w,
|
|
1785
|
+
doRootClick: g,
|
|
1786
|
+
dataState: Y.value,
|
|
1786
1787
|
onButtonLoading: J,
|
|
1787
1788
|
onButtonLoaded: lt
|
|
1788
1789
|
})
|
|
1789
1790
|
]),
|
|
1790
|
-
default:
|
|
1791
|
-
|
|
1791
|
+
default: P(() => [
|
|
1792
|
+
B(l)["button-save"] ? O(e.$slots, "button-save", {
|
|
1792
1793
|
key: 0,
|
|
1793
1794
|
items: u.value,
|
|
1794
1795
|
editMode: e.editMode,
|
|
1795
|
-
canUpdate: !
|
|
1796
|
-
}) :
|
|
1796
|
+
canUpdate: !_e.value
|
|
1797
|
+
}) : D("", !0)
|
|
1797
1798
|
]),
|
|
1798
1799
|
_: 3
|
|
1799
1800
|
}, 16), [
|
|
1800
|
-
[
|
|
1801
|
+
[Ue, st.value]
|
|
1801
1802
|
]),
|
|
1802
|
-
|
|
1803
|
+
gt.value && u.value.length >= e.requiredItemsForTopCreate ? (v(), $(Ht, {
|
|
1803
1804
|
key: 2,
|
|
1804
|
-
config:
|
|
1805
|
-
disabled: !
|
|
1806
|
-
onClick:
|
|
1805
|
+
config: he.value,
|
|
1806
|
+
disabled: !Ut.value,
|
|
1807
|
+
onClick: X,
|
|
1807
1808
|
onAppend: te
|
|
1808
|
-
}, null, 8, ["config", "disabled"])) :
|
|
1809
|
+
}, null, 8, ["config", "disabled"])) : D("", !0)
|
|
1809
1810
|
]),
|
|
1810
1811
|
_: 3
|
|
1811
|
-
}, 16)) :
|
|
1812
|
-
|
|
1812
|
+
}, 16)) : D("", !0),
|
|
1813
|
+
B(l)["prev-buttons-ever"] ? O(e.$slots, "prev-buttons-ever", {
|
|
1813
1814
|
key: 1,
|
|
1814
|
-
canUpdate:
|
|
1815
|
-
canDrop:
|
|
1815
|
+
canUpdate: z.value,
|
|
1816
|
+
canDrop: G.value,
|
|
1816
1817
|
perms: e.perms
|
|
1817
|
-
}) :
|
|
1818
|
-
|
|
1818
|
+
}) : D("", !0),
|
|
1819
|
+
B(l)["prev-buttons"] ? O(e.$slots, "prev-buttons", {
|
|
1819
1820
|
key: 2,
|
|
1820
|
-
canUpdate:
|
|
1821
|
-
canDrop:
|
|
1821
|
+
canUpdate: z.value,
|
|
1822
|
+
canDrop: G.value,
|
|
1822
1823
|
perms: e.perms
|
|
1823
|
-
}) :
|
|
1824
|
-
Oe(se(
|
|
1824
|
+
}) : D("", !0),
|
|
1825
|
+
Oe(se(N, ae({
|
|
1825
1826
|
class: "lkt-table--save-button",
|
|
1826
1827
|
ref_key: "saveButtonRef",
|
|
1827
|
-
ref:
|
|
1828
|
+
ref: Ne
|
|
1828
1829
|
}, {
|
|
1829
1830
|
...M.value,
|
|
1830
|
-
disabled:
|
|
1831
|
+
disabled: _e.value,
|
|
1831
1832
|
resourceData: dt.value
|
|
1832
1833
|
}, {
|
|
1833
1834
|
onLoading: J,
|
|
1834
1835
|
onLoaded: lt,
|
|
1835
|
-
onClick:
|
|
1836
|
+
onClick: Bt
|
|
1836
1837
|
}), {
|
|
1837
|
-
split:
|
|
1838
|
-
|
|
1839
|
-
doClose:
|
|
1840
|
-
doRootClick:
|
|
1841
|
-
dataState:
|
|
1838
|
+
split: P(({ doClose: w, doRootClick: g }) => [
|
|
1839
|
+
O(e.$slots, "button-save-split", {
|
|
1840
|
+
doClose: w,
|
|
1841
|
+
doRootClick: g,
|
|
1842
|
+
dataState: Y.value,
|
|
1842
1843
|
onButtonLoading: J,
|
|
1843
1844
|
onButtonLoaded: lt
|
|
1844
1845
|
})
|
|
1845
1846
|
]),
|
|
1846
|
-
default:
|
|
1847
|
-
|
|
1847
|
+
default: P(() => [
|
|
1848
|
+
B(l)["button-save"] ? O(e.$slots, "button-save", {
|
|
1848
1849
|
key: 0,
|
|
1849
1850
|
items: u.value,
|
|
1850
1851
|
editMode: e.editMode,
|
|
1851
|
-
canUpdate: !
|
|
1852
|
-
}) :
|
|
1852
|
+
canUpdate: !_e.value
|
|
1853
|
+
}) : D("", !0)
|
|
1853
1854
|
]),
|
|
1854
1855
|
_: 3
|
|
1855
1856
|
}, 16), [
|
|
1856
|
-
[
|
|
1857
|
+
[Ue, st.value]
|
|
1857
1858
|
]),
|
|
1858
|
-
|
|
1859
|
+
gt.value && u.value.length >= e.requiredItemsForTopCreate ? (v(), $(Ht, {
|
|
1859
1860
|
key: 3,
|
|
1860
|
-
config:
|
|
1861
|
-
disabled: !
|
|
1862
|
-
onClick:
|
|
1861
|
+
config: he.value,
|
|
1862
|
+
disabled: !Ut.value,
|
|
1863
|
+
onClick: X,
|
|
1863
1864
|
onAppend: te
|
|
1864
|
-
}, null, 8, ["config", "disabled"])) :
|
|
1865
|
-
x("div",
|
|
1866
|
-
Oe(se(
|
|
1865
|
+
}, null, 8, ["config", "disabled"])) : D("", !0),
|
|
1866
|
+
x("div", Ul, [
|
|
1867
|
+
Oe(se(N, ae(rt.value, {
|
|
1867
1868
|
checked: r.value,
|
|
1868
|
-
"onUpdate:checked": p[1] || (p[1] = (
|
|
1869
|
+
"onUpdate:checked": p[1] || (p[1] = (w) => r.value = w)
|
|
1869
1870
|
}), null, 16, ["checked"]), [
|
|
1870
|
-
[
|
|
1871
|
+
[Ue, He.value]
|
|
1871
1872
|
])
|
|
1872
1873
|
])
|
|
1873
1874
|
], 512), [
|
|
1874
|
-
[
|
|
1875
|
+
[Ue, Lt.value]
|
|
1875
1876
|
]),
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
])) :
|
|
1879
|
-
le.value &&
|
|
1880
|
-
|
|
1877
|
+
B(l).buttons ? (v(), k("div", Pl, [
|
|
1878
|
+
O(e.$slots, "buttons")
|
|
1879
|
+
])) : D("", !0),
|
|
1880
|
+
le.value && B(l).filters ? (v(), k("div", Fl, [
|
|
1881
|
+
O(e.$slots, "filters", {
|
|
1881
1882
|
items: u.value,
|
|
1882
|
-
isLoading:
|
|
1883
|
+
isLoading: E.value
|
|
1883
1884
|
})
|
|
1884
|
-
])) :
|
|
1885
|
+
])) : D("", !0),
|
|
1885
1886
|
Oe(x("div", jl, [
|
|
1886
|
-
e.type ===
|
|
1887
|
-
e.hideTableHeader ?
|
|
1887
|
+
e.type === B(qe).Table ? (v(), k("table", zl, [
|
|
1888
|
+
e.hideTableHeader ? D("", !0) : (v(), k("thead", Hl, [
|
|
1888
1889
|
x("tr", null, [
|
|
1889
|
-
Ze.value && r.value ? (v(),
|
|
1890
|
-
e.addNavigation && r.value ? (v(),
|
|
1891
|
-
je.value ? (v(),
|
|
1892
|
-
(v(!0),
|
|
1893
|
-
|
|
1890
|
+
Ze.value && r.value ? (v(), k("th", ql)) : D("", !0),
|
|
1891
|
+
e.addNavigation && r.value ? (v(), k("th", Gl)) : D("", !0),
|
|
1892
|
+
je.value ? (v(), k("th", Xl)) : D("", !0),
|
|
1893
|
+
(v(!0), k(q, null, ie(Ce.value, (w) => (v(), k(q, null, [
|
|
1894
|
+
Se.value.indexOf(w.key) === -1 ? (v(), $(Nl, {
|
|
1894
1895
|
key: 0,
|
|
1895
|
-
column:
|
|
1896
|
-
"sort-by":
|
|
1896
|
+
column: w,
|
|
1897
|
+
"sort-by": b.value,
|
|
1897
1898
|
"sort-direction": T.value,
|
|
1898
1899
|
"amount-of-columns": e.columns.length,
|
|
1899
1900
|
items: u.value,
|
|
1900
|
-
onClick: (
|
|
1901
|
-
}, null, 8, ["column", "sort-by", "sort-direction", "amount-of-columns", "items", "onClick"])) :
|
|
1901
|
+
onClick: (g) => d(w)
|
|
1902
|
+
}, null, 8, ["column", "sort-by", "sort-direction", "amount-of-columns", "items", "onClick"])) : D("", !0)
|
|
1902
1903
|
], 64))), 256)),
|
|
1903
|
-
|
|
1904
|
-
|
|
1904
|
+
G.value && r.value ? (v(), k("th", Yl)) : D("", !0),
|
|
1905
|
+
Te.value && z.value && r.value ? (v(), k("th", Kl)) : D("", !0)
|
|
1905
1906
|
])
|
|
1906
1907
|
])),
|
|
1907
1908
|
x("tbody", {
|
|
1908
1909
|
ref_key: "tableBody",
|
|
1909
1910
|
ref: c,
|
|
1910
|
-
id: "lkt-table-body-" +
|
|
1911
|
+
id: "lkt-table-body-" + B(ve),
|
|
1911
1912
|
class: Z(e.itemsContainerClass)
|
|
1912
1913
|
}, [
|
|
1913
|
-
(v(!0),
|
|
1914
|
-
modelValue: u.value[
|
|
1915
|
-
"onUpdate:modelValue": (R) => u.value[
|
|
1916
|
-
key:
|
|
1917
|
-
i:
|
|
1918
|
-
"drop-button":
|
|
1914
|
+
(v(!0), k(q, null, ie(u.value, (w, g) => Oe((v(), $(Il, {
|
|
1915
|
+
modelValue: u.value[g],
|
|
1916
|
+
"onUpdate:modelValue": (R) => u.value[g] = R,
|
|
1917
|
+
key: mt(w, g),
|
|
1918
|
+
i: g,
|
|
1919
|
+
"drop-button": Pe.value,
|
|
1919
1920
|
"edit-button": e.editButton,
|
|
1920
1921
|
"display-hidden-columns-indicator": je.value,
|
|
1921
|
-
"is-draggable":
|
|
1922
|
+
"is-draggable": L(w),
|
|
1922
1923
|
sortable: Ze.value,
|
|
1923
|
-
"visible-columns":
|
|
1924
|
-
"empty-columns":
|
|
1924
|
+
"visible-columns": Ce.value,
|
|
1925
|
+
"empty-columns": Se.value,
|
|
1925
1926
|
"add-navigation": e.addNavigation,
|
|
1926
|
-
"hidden-is-visible": at(
|
|
1927
|
-
"latest-row":
|
|
1928
|
-
"can-drop":
|
|
1929
|
-
"can-edit":
|
|
1930
|
-
"can-read":
|
|
1931
|
-
"can-create":
|
|
1927
|
+
"hidden-is-visible": at(g),
|
|
1928
|
+
"latest-row": g + 1 === Nt.value,
|
|
1929
|
+
"can-drop": G.value && r.value,
|
|
1930
|
+
"can-edit": Te.value && z.value && r.value,
|
|
1931
|
+
"can-read": Ie.value,
|
|
1932
|
+
"can-create": pe.value,
|
|
1932
1933
|
"edit-mode-enabled": r.value,
|
|
1933
1934
|
"has-inline-edit-perm": we.value,
|
|
1934
1935
|
"row-display-type": e.rowDisplayType,
|
|
1935
1936
|
"render-drag": Ia.value,
|
|
1936
1937
|
"disabled-drag": Ta.value,
|
|
1937
|
-
"is-loading":
|
|
1938
|
+
"is-loading": E.value,
|
|
1938
1939
|
"item-container-class": e.itemContainerClass,
|
|
1939
|
-
onClick:
|
|
1940
|
+
onClick: h,
|
|
1940
1941
|
onShow: C,
|
|
1941
1942
|
onItemUp: ka,
|
|
1942
1943
|
onItemDown: Sa,
|
|
1943
|
-
onItemDrop:
|
|
1944
|
+
onItemDrop: pt
|
|
1944
1945
|
}, Zt({ _: 2 }, [
|
|
1945
|
-
|
|
1946
|
-
name: `item-${
|
|
1947
|
-
fn:
|
|
1948
|
-
|
|
1946
|
+
B(l)[`item-${g}`] ? {
|
|
1947
|
+
name: `item-${g}`,
|
|
1948
|
+
fn: P((R) => [
|
|
1949
|
+
O(e.$slots, `item-${g}`, Re({
|
|
1949
1950
|
[e.slotItemVar || ""]: R.item,
|
|
1950
|
-
index:
|
|
1951
|
+
index: g,
|
|
1951
1952
|
editing: R.editing,
|
|
1952
1953
|
canCreate: R.canCreate,
|
|
1953
1954
|
canRead: R.canRead,
|
|
@@ -1958,12 +1959,12 @@ const fl = /* @__PURE__ */ re({
|
|
|
1958
1959
|
}))
|
|
1959
1960
|
]),
|
|
1960
1961
|
key: "0"
|
|
1961
|
-
} :
|
|
1962
|
+
} : B(l).item ? {
|
|
1962
1963
|
name: "item",
|
|
1963
|
-
fn:
|
|
1964
|
-
|
|
1964
|
+
fn: P((R) => [
|
|
1965
|
+
O(e.$slots, "item", Re({
|
|
1965
1966
|
[e.slotItemVar || ""]: R.item,
|
|
1966
|
-
index:
|
|
1967
|
+
index: g,
|
|
1967
1968
|
editing: R.editing,
|
|
1968
1969
|
canCreate: R.canCreate,
|
|
1969
1970
|
canRead: R.canRead,
|
|
@@ -1977,8 +1978,8 @@ const fl = /* @__PURE__ */ re({
|
|
|
1977
1978
|
} : void 0,
|
|
1978
1979
|
ie(ze.value, (R) => ({
|
|
1979
1980
|
name: R,
|
|
1980
|
-
fn:
|
|
1981
|
-
|
|
1981
|
+
fn: P((Be) => [
|
|
1982
|
+
O(e.$slots, R, Re({
|
|
1982
1983
|
[e.slotItemVar || ""]: Be.item,
|
|
1983
1984
|
value: Be.value,
|
|
1984
1985
|
column: Be.column
|
|
@@ -1986,182 +1987,195 @@ const fl = /* @__PURE__ */ re({
|
|
|
1986
1987
|
])
|
|
1987
1988
|
}))
|
|
1988
1989
|
]), 1032, ["modelValue", "onUpdate:modelValue", "i", "drop-button", "edit-button", "display-hidden-columns-indicator", "is-draggable", "sortable", "visible-columns", "empty-columns", "add-navigation", "hidden-is-visible", "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"])), [
|
|
1989
|
-
[
|
|
1990
|
+
[Ue, bt(u.value[g])]
|
|
1990
1991
|
])), 128)),
|
|
1991
|
-
We.value.length > 0 ? (v(!0),
|
|
1992
|
-
modelValue: u.value[
|
|
1993
|
-
"onUpdate:modelValue": (R) => u.value[
|
|
1994
|
-
key:
|
|
1995
|
-
i:
|
|
1992
|
+
We.value.length > 0 ? (v(!0), k(q, { key: 0 }, ie(u.value, (w, g) => (v(), $(Ml, {
|
|
1993
|
+
modelValue: u.value[g],
|
|
1994
|
+
"onUpdate:modelValue": (R) => u.value[g] = R,
|
|
1995
|
+
key: mt(w, g, !0),
|
|
1996
|
+
i: g,
|
|
1996
1997
|
"hidden-columns": We.value,
|
|
1997
1998
|
"hidden-columns-col-span": Je.value,
|
|
1998
|
-
"is-draggable":
|
|
1999
|
+
"is-draggable": L(w),
|
|
1999
2000
|
sortable: Ze.value,
|
|
2000
|
-
"visible-columns":
|
|
2001
|
-
"empty-columns":
|
|
2002
|
-
"hidden-is-visible": at(
|
|
2001
|
+
"visible-columns": Ce.value,
|
|
2002
|
+
"empty-columns": Se.value,
|
|
2003
|
+
"hidden-is-visible": at(g),
|
|
2003
2004
|
"edit-mode-enabled": r.value,
|
|
2004
2005
|
"has-inline-edit-perm": we.value,
|
|
2005
|
-
onClick:
|
|
2006
|
+
onClick: h,
|
|
2006
2007
|
onShow: C
|
|
2007
2008
|
}, Zt({ _: 2 }, [
|
|
2008
2009
|
ie(ze.value, (R) => ({
|
|
2009
2010
|
name: R,
|
|
2010
|
-
fn:
|
|
2011
|
-
|
|
2011
|
+
fn: P((Be) => [
|
|
2012
|
+
O(e.$slots, R, Re({
|
|
2012
2013
|
[e.slotItemVar || ""]: Be.item,
|
|
2013
2014
|
value: Be.value,
|
|
2014
2015
|
column: Be.column
|
|
2015
2016
|
}))
|
|
2016
2017
|
])
|
|
2017
2018
|
}))
|
|
2018
|
-
]), 1032, ["modelValue", "onUpdate:modelValue", "i", "hidden-columns", "hidden-columns-col-span", "is-draggable", "sortable", "visible-columns", "empty-columns", "hidden-is-visible", "edit-mode-enabled", "has-inline-edit-perm"]))), 128)) :
|
|
2019
|
+
]), 1032, ["modelValue", "onUpdate:modelValue", "i", "hidden-columns", "hidden-columns-col-span", "is-draggable", "sortable", "visible-columns", "empty-columns", "hidden-is-visible", "edit-mode-enabled", "has-inline-edit-perm"]))), 128)) : D("", !0)
|
|
2019
2020
|
], 10, Wl)
|
|
2020
|
-
])) : e.type ===
|
|
2021
|
+
])) : e.type === B(qe).Item ? (v(), k("div", {
|
|
2021
2022
|
key: 1,
|
|
2022
2023
|
ref_key: "tableBody",
|
|
2023
2024
|
ref: c,
|
|
2024
|
-
id: "lkt-table-body-" +
|
|
2025
|
+
id: "lkt-table-body-" + B(ve),
|
|
2025
2026
|
class: Z(["lkt-table-items-container", e.itemsContainerClass])
|
|
2026
2027
|
}, [
|
|
2027
|
-
(v(!0),
|
|
2028
|
-
|
|
2029
|
-
class: Z(["lkt-table-item",
|
|
2030
|
-
"data-i":
|
|
2031
|
-
key:
|
|
2028
|
+
(v(!0), k(q, null, ie(u.value, (w, g) => (v(), k(q, null, [
|
|
2029
|
+
!e.skipTableItemsContainer && bt(w) ? (v(), k("div", {
|
|
2030
|
+
class: Z(["lkt-table-item", It(w, g)]),
|
|
2031
|
+
"data-i": g,
|
|
2032
|
+
key: mt(w, g)
|
|
2032
2033
|
}, [
|
|
2033
|
-
|
|
2034
|
-
[e.slotItemVar || ""]:
|
|
2035
|
-
index:
|
|
2034
|
+
O(e.$slots, "item", Re({
|
|
2035
|
+
[e.slotItemVar || ""]: w,
|
|
2036
|
+
index: g,
|
|
2036
2037
|
editing: r.value,
|
|
2037
|
-
canCreate:
|
|
2038
|
-
canRead:
|
|
2039
|
-
canUpdate:
|
|
2040
|
-
canDrop:
|
|
2041
|
-
isLoading:
|
|
2042
|
-
doDrop: () =>
|
|
2038
|
+
canCreate: pe.value,
|
|
2039
|
+
canRead: Ie.value,
|
|
2040
|
+
canUpdate: z.value,
|
|
2041
|
+
canDrop: G.value,
|
|
2042
|
+
isLoading: E.value,
|
|
2043
|
+
doDrop: () => pt(g)
|
|
2043
2044
|
}))
|
|
2044
|
-
], 10, Ql)) :
|
|
2045
|
+
], 10, Ql)) : bt(w) ? O(e.$slots, "item", Re({
|
|
2046
|
+
class: It(w, g),
|
|
2047
|
+
dataI: g,
|
|
2048
|
+
key: mt(w, g),
|
|
2049
|
+
[e.slotItemVar || ""]: w,
|
|
2050
|
+
index: g,
|
|
2051
|
+
editing: r.value,
|
|
2052
|
+
canCreate: pe.value,
|
|
2053
|
+
canRead: Ie.value,
|
|
2054
|
+
canUpdate: z.value,
|
|
2055
|
+
canDrop: G.value,
|
|
2056
|
+
isLoading: E.value,
|
|
2057
|
+
doDrop: () => pt(g)
|
|
2058
|
+
})) : D("", !0)
|
|
2045
2059
|
], 64))), 256))
|
|
2046
|
-
], 10, Jl)) : e.type ===
|
|
2060
|
+
], 10, Jl)) : e.type === B(qe).Accordion ? (v(), k("div", {
|
|
2047
2061
|
key: 2,
|
|
2048
2062
|
ref_key: "tableBody",
|
|
2049
2063
|
ref: c,
|
|
2050
|
-
id: "lkt-table-body-" +
|
|
2064
|
+
id: "lkt-table-body-" + B(ve),
|
|
2051
2065
|
class: Z(["lkt-table-items-container", e.itemsContainerClass])
|
|
2052
2066
|
}, [
|
|
2053
|
-
(v(!0),
|
|
2054
|
-
|
|
2055
|
-
class: ["lkt-table-item",
|
|
2056
|
-
"data-i":
|
|
2057
|
-
key:
|
|
2067
|
+
(v(!0), k(q, null, ie(u.value, (w, g) => (v(), k(q, null, [
|
|
2068
|
+
bt(w) ? (v(), $(Q, ae({
|
|
2069
|
+
class: ["lkt-table-item", It(w, g)],
|
|
2070
|
+
"data-i": g,
|
|
2071
|
+
key: mt(w, g),
|
|
2058
2072
|
ref_for: !0
|
|
2059
2073
|
}, {
|
|
2060
2074
|
...e.accordion,
|
|
2061
|
-
title: wa(
|
|
2075
|
+
title: wa(w)
|
|
2062
2076
|
}), {
|
|
2063
|
-
header:
|
|
2064
|
-
se(
|
|
2065
|
-
modelValue: u.value[
|
|
2066
|
-
"onUpdate:modelValue": (R) => u.value[
|
|
2067
|
-
i:
|
|
2077
|
+
header: P(() => [
|
|
2078
|
+
se(Rt, {
|
|
2079
|
+
modelValue: u.value[g],
|
|
2080
|
+
"onUpdate:modelValue": (R) => u.value[g] = R,
|
|
2081
|
+
i: g,
|
|
2068
2082
|
column: tt.value,
|
|
2069
|
-
columns:
|
|
2083
|
+
columns: Ce.value,
|
|
2070
2084
|
"edit-mode-enabled": r.value,
|
|
2071
2085
|
"has-inline-edit-perm": we.value
|
|
2072
2086
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "i", "column", "columns", "edit-mode-enabled", "has-inline-edit-perm"])
|
|
2073
2087
|
]),
|
|
2074
|
-
default:
|
|
2075
|
-
(v(!0),
|
|
2088
|
+
default: P(() => [
|
|
2089
|
+
(v(!0), k(q, null, ie(Ce.value, (R) => {
|
|
2076
2090
|
var Be;
|
|
2077
|
-
return v(),
|
|
2078
|
-
R.key !== ((Be = tt.value) == null ? void 0 : Be.key) ? (v(),
|
|
2091
|
+
return v(), k(q, null, [
|
|
2092
|
+
R.key !== ((Be = tt.value) == null ? void 0 : Be.key) ? (v(), $(Rt, {
|
|
2079
2093
|
key: 0,
|
|
2080
|
-
modelValue: u.value[
|
|
2081
|
-
"onUpdate:modelValue": (Ea) => u.value[
|
|
2082
|
-
i:
|
|
2094
|
+
modelValue: u.value[g],
|
|
2095
|
+
"onUpdate:modelValue": (Ea) => u.value[g] = Ea,
|
|
2096
|
+
i: g,
|
|
2083
2097
|
column: R,
|
|
2084
|
-
columns:
|
|
2098
|
+
columns: Ce.value,
|
|
2085
2099
|
"edit-mode-enabled": r.value,
|
|
2086
2100
|
"has-inline-edit-perm": we.value
|
|
2087
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "i", "column", "columns", "edit-mode-enabled", "has-inline-edit-perm"])) :
|
|
2101
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "i", "column", "columns", "edit-mode-enabled", "has-inline-edit-perm"])) : D("", !0)
|
|
2088
2102
|
], 64);
|
|
2089
2103
|
}), 256))
|
|
2090
2104
|
]),
|
|
2091
2105
|
_: 2
|
|
2092
|
-
}, 1040, ["class", "data-i"])) :
|
|
2106
|
+
}, 1040, ["class", "data-i"])) : D("", !0)
|
|
2093
2107
|
], 64))), 256))
|
|
2094
|
-
], 10, Zl)) : Ca.value ? (v(),
|
|
2108
|
+
], 10, Zl)) : Ca.value ? (v(), $(Le(e.type), {
|
|
2095
2109
|
key: 3,
|
|
2096
2110
|
class: Z(["lkt-table-items-container", e.itemsContainerClass])
|
|
2097
2111
|
}, {
|
|
2098
|
-
default:
|
|
2099
|
-
(v(!0),
|
|
2100
|
-
|
|
2112
|
+
default: P(() => [
|
|
2113
|
+
(v(!0), k(q, null, ie(u.value, (w, g) => (v(), k(q, null, [
|
|
2114
|
+
bt(w) ? (v(), k("li", {
|
|
2101
2115
|
key: 0,
|
|
2102
|
-
class: Z(["lkt-table-item",
|
|
2103
|
-
"data-i":
|
|
2116
|
+
class: Z(["lkt-table-item", It(w, g)]),
|
|
2117
|
+
"data-i": g
|
|
2104
2118
|
}, [
|
|
2105
|
-
|
|
2106
|
-
[e.slotItemVar || ""]:
|
|
2107
|
-
index:
|
|
2119
|
+
O(e.$slots, "item", Re({
|
|
2120
|
+
[e.slotItemVar || ""]: w,
|
|
2121
|
+
index: g,
|
|
2108
2122
|
editing: r.value,
|
|
2109
|
-
canCreate:
|
|
2110
|
-
canRead:
|
|
2111
|
-
canUpdate:
|
|
2112
|
-
canDrop:
|
|
2113
|
-
isLoading:
|
|
2114
|
-
doDrop: () =>
|
|
2123
|
+
canCreate: pe.value,
|
|
2124
|
+
canRead: Ie.value,
|
|
2125
|
+
canUpdate: z.value,
|
|
2126
|
+
canDrop: G.value,
|
|
2127
|
+
isLoading: E.value,
|
|
2128
|
+
doDrop: () => pt(g)
|
|
2115
2129
|
}))
|
|
2116
|
-
], 10, xl)) :
|
|
2130
|
+
], 10, xl)) : D("", !0)
|
|
2117
2131
|
], 64))), 256))
|
|
2118
2132
|
]),
|
|
2119
2133
|
_: 3
|
|
2120
|
-
}, 8, ["class"])) : e.type ===
|
|
2134
|
+
}, 8, ["class"])) : e.type === B(qe).Carousel ? (v(), k("div", {
|
|
2121
2135
|
key: 4,
|
|
2122
2136
|
ref_key: "tableBody",
|
|
2123
2137
|
ref: c,
|
|
2124
|
-
id: "lkt-table-body-" +
|
|
2138
|
+
id: "lkt-table-body-" + B(ve),
|
|
2125
2139
|
class: Z(["lkt-table-items-container", e.itemsContainerClass])
|
|
2126
2140
|
}, [
|
|
2127
|
-
se(
|
|
2128
|
-
modelValue:
|
|
2129
|
-
"onUpdate:modelValue": p[2] || (p[2] = (
|
|
2141
|
+
se(B(al), ae({
|
|
2142
|
+
modelValue: U.value,
|
|
2143
|
+
"onUpdate:modelValue": p[2] || (p[2] = (w) => U.value = w)
|
|
2130
2144
|
}, e.carousel, {
|
|
2131
|
-
"wrap-around": ((
|
|
2145
|
+
"wrap-around": ((yt = e.carousel) == null ? void 0 : yt.infinite) === !0
|
|
2132
2146
|
}), {
|
|
2133
|
-
addons:
|
|
2134
|
-
se(
|
|
2135
|
-
se(
|
|
2147
|
+
addons: P(() => [
|
|
2148
|
+
se(B(ol)),
|
|
2149
|
+
se(B(il))
|
|
2136
2150
|
]),
|
|
2137
|
-
default:
|
|
2138
|
-
(v(!0),
|
|
2139
|
-
key:
|
|
2140
|
-
index:
|
|
2151
|
+
default: P(() => [
|
|
2152
|
+
(v(!0), k(q, null, ie(ut.value, (w, g) => (v(), $(B(oa), {
|
|
2153
|
+
key: w,
|
|
2154
|
+
index: g
|
|
2141
2155
|
}, {
|
|
2142
|
-
default:
|
|
2156
|
+
default: P(() => [
|
|
2143
2157
|
x("div", tn, [
|
|
2144
|
-
|
|
2158
|
+
O(e.$slots, w)
|
|
2145
2159
|
])
|
|
2146
2160
|
]),
|
|
2147
2161
|
_: 2
|
|
2148
2162
|
}, 1032, ["index"]))), 128)),
|
|
2149
|
-
(v(!0),
|
|
2163
|
+
(v(!0), k(q, null, ie(u.value, (w, g) => (v(), $(B(oa), {
|
|
2150
2164
|
key: e.slide,
|
|
2151
|
-
index:
|
|
2165
|
+
index: g
|
|
2152
2166
|
}, {
|
|
2153
|
-
default:
|
|
2167
|
+
default: P(() => [
|
|
2154
2168
|
x("div", an, [
|
|
2155
|
-
|
|
2156
|
-
[e.slotItemVar || ""]:
|
|
2157
|
-
index:
|
|
2169
|
+
O(e.$slots, "item", Re({
|
|
2170
|
+
[e.slotItemVar || ""]: w,
|
|
2171
|
+
index: g,
|
|
2158
2172
|
editing: r.value,
|
|
2159
|
-
canCreate:
|
|
2160
|
-
canRead:
|
|
2161
|
-
canUpdate:
|
|
2162
|
-
canDrop:
|
|
2163
|
-
isLoading:
|
|
2164
|
-
doDrop: () =>
|
|
2173
|
+
canCreate: pe.value,
|
|
2174
|
+
canRead: Ie.value,
|
|
2175
|
+
canUpdate: z.value,
|
|
2176
|
+
canDrop: G.value,
|
|
2177
|
+
isLoading: E.value,
|
|
2178
|
+
doDrop: () => pt(g)
|
|
2165
2179
|
}))
|
|
2166
2180
|
])
|
|
2167
2181
|
]),
|
|
@@ -2170,45 +2184,45 @@ const fl = /* @__PURE__ */ re({
|
|
|
2170
2184
|
]),
|
|
2171
2185
|
_: 3
|
|
2172
2186
|
}, 16, ["modelValue", "wrap-around"])
|
|
2173
|
-
], 10, en)) :
|
|
2187
|
+
], 10, en)) : D("", !0)
|
|
2174
2188
|
], 512), [
|
|
2175
|
-
[
|
|
2189
|
+
[Ue, et.value]
|
|
2176
2190
|
]),
|
|
2177
|
-
!
|
|
2178
|
-
|
|
2191
|
+
!E.value && u.value.length === 0 ? (v(), k("div", ln, [
|
|
2192
|
+
B(l).empty ? O(e.$slots, "empty", { key: 0 }) : Ba.value ? (v(), $(Le(Da.value), {
|
|
2179
2193
|
key: 1,
|
|
2180
2194
|
message: e.noResultsText
|
|
2181
|
-
}, null, 8, ["message"])) : e.noResultsText ? (v(),
|
|
2195
|
+
}, null, 8, ["message"])) : e.noResultsText ? (v(), k(q, { key: 2 }, [
|
|
2182
2196
|
ot(Xe(e.noResultsText), 1)
|
|
2183
|
-
], 64)) :
|
|
2184
|
-
])) :
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2197
|
+
], 64)) : D("", !0)
|
|
2198
|
+
])) : D("", !0),
|
|
2199
|
+
E.value ? (v(), $(oe, { key: 3 })) : D("", !0),
|
|
2200
|
+
gt.value || B(l).bottomButtons ? (v(), k("div", nn, [
|
|
2201
|
+
gt.value && u.value.length >= e.requiredItemsForBottomCreate ? (v(), $(Ht, {
|
|
2188
2202
|
key: 0,
|
|
2189
|
-
config:
|
|
2190
|
-
disabled: !
|
|
2191
|
-
onClick:
|
|
2203
|
+
config: he.value,
|
|
2204
|
+
disabled: !Ut.value,
|
|
2205
|
+
onClick: X,
|
|
2192
2206
|
onAppend: te
|
|
2193
|
-
}, null, 8, ["config", "disabled"])) :
|
|
2194
|
-
|
|
2195
|
-
])) :
|
|
2196
|
-
e.paginator && Object.keys(e.paginator).length > 0 ? (v(),
|
|
2207
|
+
}, null, 8, ["config", "disabled"])) : D("", !0),
|
|
2208
|
+
O(e.$slots, "bottom-buttons")
|
|
2209
|
+
])) : D("", !0),
|
|
2210
|
+
e.paginator && Object.keys(e.paginator).length > 0 ? (v(), $(ge, ae({
|
|
2197
2211
|
key: 5,
|
|
2198
2212
|
ref_key: "paginatorRef",
|
|
2199
2213
|
ref: de
|
|
2200
2214
|
}, e.paginator, {
|
|
2201
|
-
modelValue:
|
|
2202
|
-
"onUpdate:modelValue": p[3] || (p[3] = (
|
|
2203
|
-
onLoading:
|
|
2215
|
+
modelValue: V.value,
|
|
2216
|
+
"onUpdate:modelValue": p[3] || (p[3] = (w) => V.value = w),
|
|
2217
|
+
onLoading: ke,
|
|
2204
2218
|
onPerms: Fe,
|
|
2205
|
-
onResponse:
|
|
2206
|
-
}), null, 16, ["modelValue"])) :
|
|
2219
|
+
onResponse: Mt
|
|
2220
|
+
}), null, 16, ["modelValue"])) : D("", !0)
|
|
2207
2221
|
];
|
|
2208
2222
|
}),
|
|
2209
2223
|
_: 3
|
|
2210
2224
|
}, 8, ["class"]))
|
|
2211
|
-
], 8,
|
|
2225
|
+
], 8, $l);
|
|
2212
2226
|
};
|
|
2213
2227
|
}
|
|
2214
2228
|
}), pn = {
|