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 CHANGED
@@ -1,6 +1,6 @@
1
- import { defineComponent as re, computed as s, ref as D, shallowReactive as qt, watch as F, watchEffect as Ut, onMounted as Yt, onBeforeUnmount as Aa, reactive as Ft, provide as ia, h as K, useId as Va, inject as bt, getCurrentInstance as Ra, onUnmounted as Ma, onUpdated as Na, cloneVNode as La, resolveComponent as be, createBlock as _, createElementBlock as h, unref as w, openBlock as v, normalizeProps as $e, mergeProps as ae, withCtx as U, createTextVNode as ot, toDisplayString as Xe, Fragment as H, withModifiers as ra, createCommentVNode as B, resolveDynamicComponent as Re, useSlots as ua, normalizeClass as Z, createElementVNode as x, createVNode as se, renderSlot as P, renderList as ie, withDirectives as Oe, vShow as Pe, mergeDefaults as _a, nextTick as It, 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 gt, FieldType as xt, prepareResourceData as da, TableRowType as nt, extractI18nValue as ca, LktSettings as ge, ensureButtonConfig as Te, TablePermission as Ee, PaginatorType as Tt, TableType as qe, getDefaultValues as Pa, Table as Ua, ButtonType as jt } from "lkt-vue-kernel";
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"], At = {
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
- ], z = {
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 b = a; b < f; b++) {
100
+ for (let y = a; y < f; y++) {
101
101
  const T = {
102
- index: l ? b : b + t.length,
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}-${b}`
108
- }, u = t[(b % t.length + t.length) % t.length].vnode, m = La(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 Ae({ val: t, max: o, min: i }) {
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 b = () => {
192
- l = requestAnimationFrame((g) => {
193
- g - n > o ? (n = g, t(...f), i = !1) : b();
191
+ const y = () => {
192
+ l = requestAnimationFrame((b) => {
193
+ b - n > o ? (n = b, t(...f), i = !1) : y();
194
194
  });
195
195
  };
196
- b();
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 Et(t, o = "px") {
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 = bt(Ye);
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: z.autoplay,
222
+ default: H.autoplay,
223
223
  type: Number
224
224
  },
225
225
  // an object to store breakpoints
226
226
  breakpoints: {
227
- default: z.breakpoints,
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: z.breakpointMode,
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: z.enabled,
239
+ default: H.enabled,
240
240
  type: Boolean
241
241
  },
242
242
  // control the gap between slides
243
243
  gap: {
244
- default: z.gap,
244
+ default: H.gap,
245
245
  type: Number
246
246
  },
247
247
  // control the gap between slides
248
248
  height: {
249
- default: z.height,
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: z.itemsToScroll,
258
+ default: H.itemsToScroll,
259
259
  type: Number
260
260
  },
261
261
  // count of items to showed per view
262
262
  itemsToShow: {
263
- default: z.itemsToShow,
263
+ default: H.itemsToShow,
264
264
  type: [Number, String]
265
265
  },
266
266
  // aria-labels and additional text labels
267
267
  i18n: {
268
- default: z.i18n,
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: z.mouseDrag,
278
+ default: H.mouseDrag,
279
279
  type: Boolean
280
280
  },
281
281
  // toggle mouse dragging.
282
282
  touchDrag: {
283
- default: z.touchDrag,
283
+ default: H.touchDrag,
284
284
  type: Boolean
285
285
  },
286
286
  pauseAutoplayOnHover: {
287
- default: z.pauseAutoplayOnHover,
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: z.snapAlign,
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: z.slideEffect,
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: z.transition,
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: z.dir,
319
+ default: H.dir,
320
320
  validator(t, o) {
321
321
  if (!pa.includes(t))
322
322
  return !1;
323
- const i = t in At ? At[t] : t;
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: z.wrapAround,
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(), b = s(() => f.length), g = D(null), T = D(null), u = D(0), m = s(() => Object.assign(Object.assign(Object.assign({}, z), Ka(t, ["breakpoints", "modelValue"])), { i18n: Object.assign(Object.assign({}, z.i18n), t.i18n) })), c = qt(Object.assign({}, m.value)), S = D((l = t.modelValue) !== null && l !== void 0 ? l : 0), A = D(S.value);
349
- F(S, (d) => A.value = d);
350
- const V = D(0), le = s(() => Math.ceil((b.value - 1) / 2)), j = s(() => b.value - 1), de = s(() => 0);
351
- let ce = null, Me = null, ue = null;
352
- const X = s(() => u.value + c.gap), r = s(() => {
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 At ? At[d] : d;
355
- }), $ = s(() => ["rtl", "btt"].includes(r.value)), ee = s(() => ["ttb", "btt"].includes(r.value)), O = s(() => c.itemsToShow === "auto"), M = s(() => ee.value ? "height" : "width");
356
- function ye() {
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 y = (m.value.breakpointMode === "carousel" ? (d = g.value) === null || d === void 0 ? void 0 : d.getBoundingClientRect().width : typeof window < "u" ? window.innerWidth : 0) || 0, C = Object.keys(t.breakpoints || {}).map((N) => Number(N)).sort((N, G) => +G - +N), E = {};
361
- C.some((N) => y >= N ? (Object.assign(E, t.breakpoints[N]), E.i18n && Object.assign(E.i18n, m.value.i18n, t.breakpoints[N].i18n), !0) : !1), Object.assign(c, m.value, E);
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
- ye(), Ke(), he();
365
- }), Ue = qt(/* @__PURE__ */ new Set()), ne = D([]);
366
- function Ne({ widthMultiplier: d, heightMultiplier: y }) {
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 E;
369
- const N = (E = C.exposed) === null || E === void 0 ? void 0 : E.getBoundingRect();
368
+ var A;
369
+ const L = (A = C.exposed) === null || A === void 0 ? void 0 : A.getBoundingRect();
370
370
  return {
371
- width: N.width * d,
372
- height: N.height * y
371
+ width: L.width * d,
372
+ height: L.height * h
373
373
  };
374
374
  });
375
375
  }
376
- const Fe = D({
376
+ const Fe = I({
377
377
  width: 0,
378
378
  height: 0
379
379
  });
380
- function Rt({ widthMultiplier: d, heightMultiplier: y }) {
380
+ function Mt({ widthMultiplier: d, heightMultiplier: h }) {
381
381
  var C;
382
- const E = ((C = T.value) === null || C === void 0 ? void 0 : C.getBoundingClientRect()) || { width: 0, height: 0 };
382
+ const A = ((C = T.value) === null || C === void 0 ? void 0 : C.getBoundingClientRect()) || { width: 0, height: 0 };
383
383
  Fe.value = {
384
- width: E.width * d,
385
- height: E.height * y
384
+ width: A.width * d,
385
+ height: A.height * h
386
386
  };
387
387
  }
388
- function he() {
388
+ function ke() {
389
389
  if (!T.value)
390
390
  return;
391
- const d = Qa(Ue);
392
- if (Rt(d), Ne(d), O.value)
393
- u.value = Xa(ne.value.map((y) => y[M.value]));
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 y = Number(c.itemsToShow), C = (y - 1) * c.gap;
396
- u.value = (Fe.value[M.value] - C) / y;
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 && b.value > 0 && (S.value = Ae({
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
- })), O.value || (c.itemsToShow = Ae({
404
+ })), U.value || (c.itemsToShow = Ve({
405
405
  val: Number(c.itemsToShow),
406
- max: b.value,
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
- Ut(() => Ke()), Ut(() => {
412
- he();
411
+ Pt(() => Ke()), Pt(() => {
412
+ ke();
413
413
  });
414
- let ke;
415
- const Se = (d) => {
416
- const y = d.target;
417
- if (!(!(y != null && y.contains(g.value)) || Array.isArray(ve.value) && ve.value.includes(d.animationName)) && (Ue.add(y), !ke)) {
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
- ke = requestAnimationFrame(() => {
420
- he(), C();
419
+ Se = requestAnimationFrame(() => {
420
+ ke(), C();
421
421
  });
422
422
  };
423
423
  C();
424
424
  }
425
425
  }, We = (d) => {
426
- const y = d.target;
427
- y && Ue.delete(y), ke && Ue.size === 0 && (cancelAnimationFrame(ke), he());
428
- }, Je = D(!1);
429
- typeof document < "u" && Ut(() => {
430
- Je.value && ve.value !== !1 ? (document.addEventListener("animationstart", Se), document.addEventListener("animationend", We)) : (document.removeEventListener("animationstart", Se), document.removeEventListener("animationend", We));
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, ye(), Ze(), g.value && (ue = new ResizeObserver(rt), ue.observe(g.value)), i("init");
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(), Me && clearTimeout(Me), ke && cancelAnimationFrame(ke), ce && clearInterval(ce), ue && (ue.disconnect(), ue = null), typeof document < "u" && dt(), g.value && (g.value.removeEventListener("transitionend", he), g.value.removeEventListener("animationiteration", he));
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 = D(!1), ut = D(!1), st = () => {
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
- }, Mt = () => {
439
+ }, Lt = () => {
440
440
  ze.value = !1;
441
- }, Le = zt((d) => {
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") && ($.value ? we(!0) : xe(!0));
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") && ($.value ? xe(!0) : we(!0));
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", Le);
454
+ document.addEventListener("keydown", _e);
455
455
  }, dt = () => {
456
- document.removeEventListener("keydown", Le);
456
+ document.removeEventListener("keydown", _e);
457
457
  };
458
- function yt(d) {
459
- const y = d.target.tagName;
460
- if (["INPUT", "TEXTAREA", "SELECT"].includes(y) || q.value || (De = d.type === "touchstart", !De && (d.preventDefault(), d.button !== 0)))
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", E = De ? "touchend" : "mouseup";
464
- document.addEventListener(C, ct, { passive: !1 }), document.addEventListener(E, Qe, { passive: !0 });
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 y = "touches" in d ? d.touches[0].clientX : d.clientX, C = "touches" in d ? d.touches[0].clientY : d.clientY;
469
- fe.x = y - je.x, fe.y = C - je.y;
470
- const E = Wa({
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: $.value,
472
+ isReversed: _.value,
473
473
  dragged: fe,
474
- effectiveSlideSize: X.value
474
+ effectiveSlideSize: Y.value
475
475
  });
476
- A.value = c.wrapAround ? S.value + E : Ae({
477
- val: S.value + E,
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(), A.value !== S.value && !De) {
484
- const C = (E) => {
485
- E.preventDefault(), window.removeEventListener("click", C);
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
- Ie(A.value), fe.x = 0, fe.y = 0, ut.value = !1;
490
- const d = De ? "touchmove" : "mousemove", y = De ? "touchend" : "mouseup";
491
- document.removeEventListener(d, ct), document.removeEventListener(y, Qe);
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 Ce() {
498
+ function pe() {
499
499
  ce && (clearInterval(ce), ce = null);
500
500
  }
501
- function _e() {
502
- Ce(), Ze();
501
+ function Ie() {
502
+ pe(), Ze();
503
503
  }
504
- const q = D(!1);
505
- function Ie(d, y = !1) {
506
- if (!y && q.value)
504
+ const z = I(!1);
505
+ function Te(d, h = !1) {
506
+ if (!h && z.value)
507
507
  return;
508
- let C = d, E = d;
509
- V.value = S.value, c.wrapAround ? E = ya({
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 = Ae({
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: V.value,
521
- slidesCount: b.value
522
- }), Ce(), q.value = !0, S.value = C, E !== C && vt.pause(), i("update:modelValue", E), Me = setTimeout(() => {
523
- c.wrapAround && E !== C && (vt.resume(), S.value = E, i("loop", {
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: V.value,
529
- slidesCount: b.value
530
- }), q.value = !1, _e();
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
- Ie(S.value + c.itemsToScroll, d);
534
+ Te(S.value + c.itemsToScroll, d);
535
535
  }
536
536
  function xe(d = !1) {
537
- Ie(S.value - c.itemsToScroll, d);
537
+ Te(S.value - c.itemsToScroll, d);
538
538
  }
539
- function ht() {
540
- ye(), Ke(), he(), _e();
539
+ function Ct() {
540
+ he(), Ke(), ke(), Ie();
541
541
  }
542
- F(() => [m.value, t.breakpoints], () => ye(), { deep: !0 }), F(() => t.autoplay, () => _e());
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 && Ie(Number(d), !0);
544
+ d !== S.value && Te(Number(d), !0);
545
545
  });
546
546
  i("before-init");
547
- const Y = s(() => {
547
+ const G = s(() => {
548
548
  if (!c.wrapAround)
549
549
  return { before: 0, after: 0 };
550
- if (O.value)
550
+ if (U.value)
551
551
  return { before: f.length, after: f.length };
552
- const d = Number(c.itemsToShow), y = Math.ceil(d + (c.itemsToScroll - 1)), C = y - A.value, E = y - (b.value - (A.value + 1));
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, E)
555
+ after: Math.max(0, A)
556
556
  };
557
- }), ft = s(() => Y.value.before ? O.value ? ne.value.slice(-1 * Y.value.before).reduce((d, y) => d + y[M.value] + c.gap, 0) * -1 : Y.value.before * X.value * -1 : 0), He = 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 (O.value) {
560
- const y = (S.value % f.length + f.length) % f.length;
559
+ if (U.value) {
560
+ const h = (S.value % f.length + f.length) % f.length;
561
561
  return Gt({
562
- slideSize: (d = ne.value[y]) === null || d === void 0 ? void 0 : d[M.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 (O.value) {
574
- if (S.value < 0 ? d = ne.value.slice(S.value).reduce((y, C) => y + C[M.value] + c.gap, 0) * -1 : d = ne.value.slice(0, S.value).reduce((y, C) => y + C[M.value] + c.gap, 0), d -= He.value, !c.wrapAround) {
575
- const y = ne.value.reduce((C, E) => C + E[M.value] + c.gap, 0) - Fe.value[M.value] - c.gap;
576
- d = Ae({
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: y,
578
+ max: h,
579
579
  min: 0
580
580
  });
581
581
  }
582
582
  } else {
583
- let y = S.value - He.value;
584
- c.wrapAround || (y = Ae({
585
- val: y,
586
- max: b.value - +c.itemsToShow,
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 = y * X.value;
588
+ })), d = h * Y.value;
589
589
  }
590
- return d * ($.value ? 1 : -1);
590
+ return d * (_.value ? 1 : -1);
591
591
  }), tt = s(() => {
592
- var d, y;
593
- if (!O.value) {
594
- const N = S.value - He.value;
592
+ var d, h;
593
+ if (!U.value) {
594
+ const L = S.value - He.value;
595
595
  return c.wrapAround ? {
596
- min: Math.floor(N),
597
- max: Math.ceil(N + Number(c.itemsToShow) - 1)
596
+ min: Math.floor(L),
597
+ max: Math.ceil(L + Number(c.itemsToShow) - 1)
598
598
  } : {
599
- min: Math.floor(Ae({
600
- val: N,
601
- max: b.value - Number(c.itemsToShow),
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(Ae({
605
- val: N + Number(c.itemsToShow) - 1,
606
- max: b.value - 1,
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 N = 0, G = 0 - Y.value.before;
613
+ let L = 0, X = 0 - G.value.before;
614
614
  const te = Math.abs(et.value + ft.value);
615
- for (; N <= te; ) {
616
- const J = (G % f.length + f.length) % f.length;
617
- N += ((d = ne.value[J]) === null || d === void 0 ? void 0 : d[M.value]) + c.gap, G++;
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 = G - 1;
619
+ C = X - 1;
620
620
  }
621
- let E = 0;
621
+ let A = 0;
622
622
  {
623
- let N = C, G = 0;
624
- for (N < 0 ? G = ne.value.slice(0, N).reduce((te, J) => te + J[M.value] + c.gap, 0) - Math.abs(et.value + ft.value) : G = ne.value.slice(0, N).reduce((te, J) => te + J[M.value] + c.gap, 0) - Math.abs(et.value); G < Fe.value[M.value]; ) {
625
- const te = (N % f.length + f.length) % f.length;
626
- G += ((y = ne.value[te]) === null || y === void 0 ? void 0 : y[M.value]) + c.gap, N++;
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
- E = N - 1;
628
+ A = L - 1;
629
629
  }
630
630
  return {
631
631
  min: Math.floor(C),
632
- max: Math.ceil(E)
632
+ max: Math.ceil(A)
633
633
  };
634
- }), Lt = s(() => {
634
+ }), $t = s(() => {
635
635
  if (c.slideEffect === "fade")
636
636
  return;
637
- const d = ee.value ? "Y" : "X", y = ee.value ? fe.y : fe.x;
638
- let C = et.value + y;
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 E = 0;
641
- O.value ? E = ne.value.reduce((te, J) => te + J[M.value], 0) : E = (b.value - Number(c.itemsToShow)) * X.value;
642
- const N = $.value ? 0 : -1 * E, G = $.value ? E : 0;
643
- C = Ae({
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: N,
646
- max: G
645
+ min: L,
646
+ max: X
647
647
  });
648
648
  }
649
649
  return `translate${d}(${C}px)`;
650
- }), pe = s(() => ({
651
- "--vc-transition-duration": q.value ? Et(c.transition, "ms") : void 0,
652
- "--vc-slide-gap": Et(c.gap),
653
- "--vc-carousel-height": Et(c.height),
654
- "--vc-cloned-offset": Et(ft.value)
655
- })), kt = { slideTo: Ie, next: we, prev: xe }, _t = Ft({
656
- activeSlide: A,
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: q,
659
+ isSliding: z,
660
660
  isVertical: ee,
661
661
  maxSlide: j,
662
662
  minSlide: de,
663
- nav: kt,
663
+ nav: wt,
664
664
  normalizedDir: r,
665
665
  slideRegistry: a,
666
666
  slideSize: u,
667
667
  slides: f,
668
- slidesCount: b,
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: b
680
+ slidesCount: y
681
681
  });
682
682
  return n({
683
683
  data: at,
684
- nav: kt,
684
+ nav: wt,
685
685
  next: we,
686
686
  prev: xe,
687
- restartCarousel: ht,
688
- slideTo: Ie,
689
- updateBreakpointsConfig: ye,
690
- updateSlideSize: he,
687
+ restartCarousel: Ct,
688
+ slideTo: Te,
689
+ updateBreakpointsConfig: he,
690
+ updateSlideSize: ke,
691
691
  updateSlidesData: Ke
692
692
  }), () => {
693
693
  var d;
694
- const y = o.default || o.slides, C = (y == null ? void 0 : y(at)) || [], { before: E, after: N } = Y.value, G = ea({
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: E
697
+ toShow: A
698
698
  }), te = ea({
699
699
  slides: f,
700
700
  position: "after",
701
- toShow: N
702
- }), J = [...G, ...C, ...te];
701
+ toShow: L
702
+ }), J = [...X, ...C, ...te];
703
703
  if (!c.enabled || !J.length)
704
704
  return K("section", {
705
- ref: g,
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)) || [], St = K("ol", {
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: Lt.value },
711
- onMousedownCapture: c.mouseDrag ? yt : null,
712
- onTouchstartPassiveCapture: c.touchDrag ? yt : null
713
- }, J), Ct = K("div", { class: "carousel__viewport", ref: T }, St);
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: g,
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": q.value,
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: pe.value,
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: Mt
735
- }, [Ct, lt, K(el)]);
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 ? z.i18n[aa(t.name)] : ""
761
+ default: (t) => t.name ? H.i18n[aa(t.name)] : ""
762
762
  }
763
763
  },
764
764
  setup(t) {
765
- const o = bt(Ye, null);
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 = bt(Ye);
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], b = () => ({
791
+ })[n.normalizedDir], y = () => ({
792
792
  btt: "arrowUp",
793
793
  ltr: "arrowRight",
794
794
  rtl: "arrowLeft",
795
795
  ttb: "arrowDown"
796
- })[n.normalizedDir], g = s(() => !n.config.wrapAround && n.currentSlide <= n.minSlide), T = s(() => !n.config.wrapAround && n.currentSlide >= n.maxSlide);
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: g.value, "aria-label": u.ariaPreviousSlide, title: u.ariaPreviousSlide, onClick: n.nav.prev }, i), { class: [
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": g.value },
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: b() }));
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 = bt(Ye);
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)), b = (g) => ya(l.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
- }) === g;
835
+ }) === b;
836
836
  return () => {
837
- var g, T;
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 = b(m), A = K("button", {
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 = (g = o.slides[m]) === null || g === void 0 ? void 0 : g.exposed) === null || T === void 0 ? void 0 : T.id,
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
- }), V = K("li", { class: "carousel__pagination-item", key: m }, A);
855
- u.push(V);
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 = bt(Ye);
881
+ const l = kt(Ye);
882
882
  if (ia(Ye, void 0), !l)
883
883
  return () => "";
884
- const a = D(t.index), f = (A) => {
885
- a.value = A;
886
- }, b = Ra(), g = () => {
887
- const A = b.vnode.el;
888
- return A ? A.getBoundingClientRect() : { width: 0, height: 0 };
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: g
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 A = l.config.itemsToShow, V = l.config.gap > 0 && A > 1 ? `calc(${100 / A}% - ${l.config.gap * (A - 1) / A}px)` : `${100 / A}%`;
899
- return l.isVertical ? { height: V } : { width: V };
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(b, t.index), Ma(() => {
902
- l.slideRegistry.unregisterSlide(b);
901
+ return l.slideRegistry.registerSlide(y, t.index), Ma(() => {
902
+ l.slideRegistry.unregisterSlide(y);
903
903
  }), t.isClone && (Yt(() => {
904
- ta(b.vnode);
905
- }), Na(() => {
906
- ta(b.vnode);
904
+ ta(y.vnode);
905
+ }), La(() => {
906
+ ta(y.vnode);
907
907
  })), () => {
908
- var A, V;
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
- }, (V = i.default) === null || V === void 0 ? void 0 : V.call(i, {
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
- })) : (A = i.default) === null || A === void 0 ? void 0 : A.call(i);
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("__:") ? $a(l.substring(3)) : l;
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}` : "", Vt = /* @__PURE__ */ re({
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 = D(n.modelValue), a = D(l.value[n.column.key]), f = D(null);
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 b = s(() => ({ ...n.column.slotData, item: l.value })), g = s(() => {
1003
- var m, c, S, A;
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 V in n.column.field.modalData)
1006
- if (typeof ((S = n.column.field) == null ? void 0 : S.modalData[V]) == "string" && n.column.field.modalData[V].startsWith("prop:")) {
1007
- let le = n.column.field.modalData[V].substring(5);
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[V];
1011
- return (A = n.column.field) == null ? void 0 : A.modalData;
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, A;
1014
- return n.column.type === gt.Field ? !((c = (m = n.column) == null ? void 0 : m.field) != null && c.label) && [
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 : (A = n.column.field) == null ? void 0 : A.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 = be("lkt-anchor"), A = be("lkt-button"), V = be("lkt-field");
1021
- return m.column.type === w(gt).Anchor ? (v(), _(S, $e(ae({ key: 0 }, m.column.anchor)), {
1022
- default: U(() => [
1023
- ot(Xe(w(it)(m.column, l.value, m.i)), 1)
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 === w(gt).Button ? (v(), _(A, ae({ key: 1 }, m.column.button, { prop: l.value }), {
1027
- default: U(() => [
1028
- ot(Xe(w(it)(m.column, l.value, m.i)), 1)
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 === w(gt).Field && m.hasInlineEditPerm ? (v(), _(V, ae({ key: 2 }, T.value, {
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": b.value,
1034
+ "slot-data": y.value,
1035
1035
  label: u.value,
1036
- "modal-data": g.value,
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 === w(gt).Field ? (v(), _(V, ae({ key: 3 }, T.value, {
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": b.value,
1043
+ "slot-data": y.value,
1044
1044
  label: u.value,
1045
- "modal-data": g.value,
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(), h(H, { key: 4 }, [
1049
- ot(Xe(w(it)(m.column, l.value, m.i, m.columns)), 1)
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
- }), Ve = class Ve {
1053
+ }), Me = class Me {
1054
1054
  };
1055
- Ve.navButtonSlot = "", Ve.dropButtonSlot = "", Ve.editButtonSlot = "", Ve.createButtonSlot = "", Ve.defaultEmptySlot = void 0, Ve.defaultSaveIcon = "", Ve.defaultNoResultsMessage = "No results";
1056
- let W = Ve;
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 (b, g) => {
1070
- const T = be("lkt-button");
1071
- return v(), _(T, ae({ palette: "table-delete" }, n.config, {
1072
- disabled: b.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: g[0] || (g[0] = ra((u) => i("click", u), ["prevent", "stop"]))
1074
+ onClick: b[0] || (b[0] = ra((u) => i("click", u), ["prevent", "stop"]))
1075
1075
  }), {
1076
- default: U(() => [
1077
- l.value ? (v(), _(Re(a.value), { key: 0 })) : B("", !0)
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 (b, g) => {
1096
- const T = be("lkt-button");
1097
- return v(), _(T, ae({ palette: "table-edit" }, n.config, {
1098
- disabled: b.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: g[0] || (g[0] = ra((u) => i("click"), ["prevent", "stop"]))
1100
+ onClick: b[0] || (b[0] = ra((u) => i("click"), ["prevent", "stop"]))
1101
1101
  }), {
1102
- default: U(() => [
1103
- l.value ? (v(), _(Re(a.value), { key: 0 })) : B("", !0)
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 X;
1161
- const i = ua(), n = o, l = t, a = D(l.modelValue);
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 b = [nt.Auto, nt.PreferCustomItem].includes(f), g = [nt.Auto, nt.PreferItem].includes(f), T = D((X = l.editButton.anchor) == null ? void 0 : X.to);
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 = [], $ = !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 !== ""), A = s(() => W.navButtonSlot), V = () => {
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), Me = s(() => c.value.includes("handle") ? "drag-indicator" : "invalid-drag-indicator"), ue = s(() => {
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 b && r.push("type-custom-item"), g && r.push("type-item"), typeof l.itemContainerClass == "function" ? r.push(l.itemContainerClass(a.value, l.i)) : l.itemContainerClass !== "" && r.push(l.itemContainerClass), r.join(" ");
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 = be("lkt-button");
1187
- return v(), h("tr", {
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(), h("td", {
1192
+ r.sortable && r.editModeEnabled && de.value ? (v(), k("td", {
1193
1193
  key: 0,
1194
- "data-role": Me.value,
1194
+ "data-role": Ne.value,
1195
1195
  class: Z(c.value),
1196
1196
  "data-i": r.i
1197
- }, $[3] || ($[3] = [
1197
+ }, _[3] || (_[3] = [
1198
1198
  x("i", { class: "lkt-icn-drag-indicator" }, null, -1)
1199
- ]), 10, gl)) : B("", !0),
1200
- r.addNavigation && r.editModeEnabled ? (v(), h("td", bl, [
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: V
1205
+ onClick: E
1206
1206
  }, {
1207
- default: U(() => [
1208
- S.value ? (v(), _(Re(A.value), {
1207
+ default: P(() => [
1208
+ S.value ? (v(), $(Le(V.value), {
1209
1209
  key: 0,
1210
1210
  direction: "up"
1211
- })) : (v(), h("i", hl))
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: U(() => [
1221
- S.value ? (v(), _(Re(A.value), {
1220
+ default: P(() => [
1221
+ S.value ? (v(), $(Le(V.value), {
1222
1222
  key: 0,
1223
1223
  direction: "down"
1224
- })) : (v(), h("i", kl))
1224
+ })) : (v(), k("i", kl))
1225
1225
  ]),
1226
1226
  _: 1
1227
1227
  }, 8, ["disabled"])
1228
1228
  ])
1229
- ])) : B("", !0),
1230
- r.displayHiddenColumnsIndicator ? (v(), h("td", {
1229
+ ])) : D("", !0),
1230
+ r.displayHiddenColumnsIndicator ? (v(), k("td", {
1231
1231
  key: 2,
1232
- onClick: $[0] || ($[0] = (O) => m(O, r.i)),
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)) : B("", !0),
1236
- w(b) && w(i)[`item-${r.i}`] ? (v(), h("td", {
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
- P(r.$slots, `item-${r.i}`, {
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)) : w(g) && w(i).item ? (v(), h("td", {
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
- P(r.$slots, "item", {
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), h(H, { key: 5 }, ie(r.visibleColumns, (O) => (v(), h(H, null, [
1267
- w(dl)(O, r.emptyColumns, a.value) ? (v(), h("td", {
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": O.key,
1270
- colspan: w(Kt)(O, a.value),
1271
- title: w(it)(O, a.value, r.i, r.visibleColumns),
1272
- class: Z(w(ha)(O)),
1273
- onClick: $[2] || ($[2] = (M) => u(M))
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[O.key] && w(sl)(O, a.value) ? P(r.$slots, O.key, {
1275
+ r.$slots[U.key] && B(sl)(U, a.value) ? O(r.$slots, U.key, {
1276
1276
  key: 0,
1277
- value: a.value[O.key],
1277
+ value: a.value[U.key],
1278
1278
  item: a.value,
1279
- column: O,
1279
+ column: U,
1280
1280
  i: r.i
1281
- }) : a.value ? (v(), _(Vt, {
1281
+ }) : a.value ? (v(), $(Rt, {
1282
1282
  key: 1,
1283
1283
  modelValue: a.value,
1284
- "onUpdate:modelValue": $[1] || ($[1] = (M) => a.value = M),
1285
- column: O,
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"])) : B("", !0)
1291
- ], 10, wl)) : B("", !0)
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(), h("td", Bl, [
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
- ])) : B("", !0),
1300
- r.canEdit && r.editModeEnabled ? (v(), h("td", Dl, [
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
- ])) : B("", !0)
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 = D(n.modelValue), a = (f) => i("click", f);
1330
- return F(() => n.modelValue, (f) => l.value = f), F(l, () => i("update:modelValue", l.value)), (f, b) => Oe((v(), h("tr", Tl, [
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), h(H, null, ie(f.hiddenColumns, (g) => (v(), h("th", {
1335
- "data-column": g.key
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(g.label), 1)
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), h(H, null, ie(f.hiddenColumns, (g, T) => (v(), h("td", {
1342
- "data-column": g.key,
1343
- title: w(it)(g, l.value, T, f.hiddenColumns),
1344
- onClick: b[1] || (b[1] = (u) => a(u))
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[g.key] ? P(f.$slots, g.key, {
1346
+ f.$slots[b.key] ? O(f.$slots, b.key, {
1347
1347
  key: 0,
1348
- value: l.value[g.key],
1348
+ value: l.value[b.key],
1349
1349
  item: l.value,
1350
- column: g,
1350
+ column: b,
1351
1351
  i: T
1352
- }) : (v(), _(Vt, {
1352
+ }) : (v(), $(Rt, {
1353
1353
  key: 1,
1354
- column: g,
1354
+ column: b,
1355
1355
  columns: f.hiddenColumns,
1356
1356
  modelValue: l.value,
1357
- "onUpdate:modelValue": b[0] || (b[0] = (u) => l.value = u),
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
- [Pe, f.hiddenIsVisible]
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
- }, b = {
1387
+ }, y = {
1388
1388
  ...n.config
1389
1389
  };
1390
- b.modalData = f;
1391
- const g = () => {
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 = be("lkt-button");
1400
- return v(), _(c, ae(b, {
1399
+ const c = ye("lkt-button");
1400
+ return v(), $(c, ae(y, {
1401
1401
  disabled: u.disabled,
1402
- onClick: g
1402
+ onClick: b
1403
1403
  }), {
1404
- default: U(() => [
1405
- l.value ? (v(), _(Re(a.value), { key: 0 })) : B("", !0)
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
- }), Nl = ["data-column", "data-sortable", "data-sort", "colspan", "title"], Ll = /* @__PURE__ */ re({
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 : ""), b = s(() => ca(n.column.label)), g = s(() => a.value && n.sortBy === n.column.key ? n.sortDirection === Ge.Asc ? ge.defaultTableSortAscIcon : n.sortDirection === Ge.Desc ? ge.defaultTableSortDescIcon : "" : ""), T = () => i("click", n.column);
1425
- return (u, m) => (v(), h("th", {
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: b.value,
1431
- class: Z(w(ha)(u.column)),
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(b.value) + " ", 1),
1436
- g.value ? (v(), h("i", {
1435
+ ot(Xe(y.value) + " ", 1),
1436
+ b.value ? (v(), k("i", {
1437
1437
  key: 0,
1438
- class: Z(g.value)
1439
- }, null, 2)) : B("", !0)
1438
+ class: Z(b.value)
1439
+ }, null, 2)) : D("", !0)
1440
1440
  ])
1441
- ], 10, Nl));
1441
+ ], 10, Ll));
1442
1442
  }
1443
- }), _l = ["id"], $l = { class: "lkt-table-page-buttons" }, Ol = { class: "switch-edition-mode" }, Pl = { class: "switch-edition-mode" }, Ul = {
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__ */ _a({
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(Ua)),
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 = {}, b = D(typeof a.sorter == "function" ? a.sorter : rl), g = D(cl(a.columns)), T = D(Ge.Asc), u = D(a.modelValue), m = D(f), c = D(null), S = D(a.columns), A = D((Jt = a.paginator) == null ? void 0 : Jt.modelValue), V = D(a.loading), le = D(!1), j = D(a.perms), de = D(null), ce = D(null), Me = D(null), ue = D({}), X = D(new ja({ items: u.value }, a.dataStateConfig)), r = D(a.editMode), $ = D(0), ee = D(null), O = D(((Qt = a.carousel) == null ? void 0 : Qt.currentSlide) || 0), M = D(Te(a.saveButton, ge.defaultSaveButton)), ye = D(Te(a.createButton, ge.defaultCreateButton)), rt = D(Te(a.editModeButton, ge.defaultEditModeButton)), Ue = D(Te(a.dropButton, ge.defaultDropButton)), ne = D(Te(a.groupButton, ge.defaultGroupButton));
1528
- F(() => a.saveButton, (e) => M.value = Te(a.saveButton, ge.defaultSaveButton)), F(() => a.createButton, (e) => ye.value = Te(a.createButton, ge.defaultCreateButton)), F(() => a.editModeButton, (e) => rt.value = Te(a.editModeButton, ge.defaultEditModeButton)), F(() => a.dropButton, (e) => Ue.value = Te(a.dropButton, ge.defaultDropButton));
1529
- const Ne = D(!1);
1530
- F(V, (e) => n("update:loading", e)), F(A, (e) => n("page", e));
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
- }, Rt = (e) => {
1534
+ }, Mt = (e) => {
1534
1535
  var p;
1535
- Array.isArray(e.data) && ((!a.paginator || ![Tt.LoadMore, Tt.Infinite].includes((p = a.paginator) == null ? void 0 : p.type)) && u.value.splice(0, u.value.length), u.value = [...u.value, ...e.data]), V.value = !1, le.value = !0, X.value.store({ items: u.value }).turnStoredIntoOriginal(), Ne.value = !1, It(() => {
1536
- pe(), Le.value, n("read-response", e);
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
- }, he = () => It(() => V.value = !0), Ke = () => {
1539
+ }, ke = () => Tt(() => E.value = !0), Ke = () => {
1539
1540
  de.value.doRefresh();
1540
- }, ve = Fa(12), ke = s(() => {
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 L = p.key, Q = !1;
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[L] && (Q = !0);
1549
- }), Q || e.push(L);
1549
+ oe[N] && (Q = !0);
1550
+ }), Q || e.push(N);
1550
1551
  }), e;
1551
- }), Se = s(() => S.value.filter((e) => !e.hidden)), We = s(() => []), Je = s(() => {
1552
- let e = Se.value.length + 1;
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 || V.value || !((e = M.value) != null && e.resource || M.value.type) ? !1 : r.value && Ne.value ? !0 : r.value;
1565
- }), Mt = s(() => pt.value && u.value.length >= a.requiredItemsForTopCreate || He.value ? !0 : st.value || r.value && Ce.value), Le = s(() => {
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 $.value, typeof ((e = M.value) == null ? void 0 : e.disabled) == "function" ? M.value.disabled({
1568
+ return _.value, typeof ((e = M.value) == null ? void 0 : e.disabled) == "function" ? M.value.disabled({
1568
1569
  value: u.value,
1569
- dataState: X.value
1570
- }) : typeof ((p = M.value) == null ? void 0 : p.disabled) == "boolean" ? M.value.disabled : !Ne.value;
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
- }), yt = s(() => a.titleTag === "" ? "h2" : a.titleTag), ct = s(() => a.wrapContentTag === "" ? "div" : a.wrapContentTag), Qe = s(() => ca(a.title)), Ze = s(() => {
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
- }), Ce = s(() => j.value.includes(Ee.Create)), _e = s(() => j.value.includes("read")), q = s(() => j.value.includes(Ee.Update)), Ie = s(() => j.value.includes(Ee.Edit)), we = s(() => j.value.includes(Ee.InlineEdit)), xe = s(() => j.value.includes(Ee.ModalCreate)), ht = s(() => j.value.includes(Ee.InlineCreate)), vt = s(() => j.value.includes(Ee.InlineCreateEver)), Y = s(() => j.value.includes(Ee.Drop)), ft = s(() => j.value.includes(Ee.SwitchEditMode)), He = s(() => !ft.value || !q.value && !Y.value || !q.value && Y.value ? !1 : !V.value), et = s(() => {
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" && [Tt.LoadMore, Tt.Infinite].includes(a.paginator.type) || !V.value) && u.value.length > 0;
1583
- }), tt = s(() => S.value.find((e) => e.isForAccordionHeader)), Lt = (e) => {
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
- }, pe = () => {
1592
- $.value = Ha();
1593
- }, kt = (e) => u.value[e], _t = (e) => {
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, L) => b.value(p, L, e, T.value)), T.value = T.value === Ge.Asc ? Ge.Desc : Ge.Asc, g.value = e.key, pe(), n("sort", [g.value, T.value]));
1598
- }, y = (e) => {
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 L = "tr_" + p;
1602
- m.value[L] = typeof m.value[L] > "u" ? !0 : !m.value[L];
1603
- }, E = (e) => {
1604
- var L, Q, oe, me, mt, I, k, R;
1605
- let p = parseInt((me = (oe = (Q = (L = e == null ? void 0 : e.originalEvent) == null ? void 0 : L.toElement) == null ? void 0 : Q.closest("tr")) == null ? void 0 : oe.dataset) == null ? void 0 : me.i);
1606
- return !(typeof ((mt = a.drag) == null ? void 0 : mt.isValid) == "function" && !((I = a.drag) != null && I.isValid(u.value[p])) || typeof ((k = a.drag) == null ? void 0 : k.isValid) == "boolean" && !((R = a.drag) != null && R.isValid));
1607
- }, N = (e) => {
1608
- var p, L;
1609
- return typeof ((p = a.drag) == null ? void 0 : p.isDraggable) == "function" ? (L = a.drag) == null ? void 0 : L.isDraggable(e) : !0;
1610
- }, G = () => {
1611
- if (Ce.value) {
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 (ht.value || vt.value) {
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 = () => V.value = !0, lt = () => V.value = !1, St = (e, p) => {
1629
- var L, Q, oe;
1630
- if (!((L = M.value) != null && L.type && [
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 && (V.value = !1, !p.success)) {
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
- X.value.turnStoredIntoOriginal(), Ne.value = !1, n("save", p);
1640
+ Y.value.turnStoredIntoOriginal(), $e.value = !1, n("save", p);
1640
1641
  }
1641
- }, Ct = (e, p, L) => {
1642
- if (L >= e.length) {
1643
- let Q = L - e.length + 1;
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(L, 0, e.splice(p, 1)[0]), e;
1647
+ return e.splice(N, 0, e.splice(p, 1)[0]), e;
1647
1648
  }, ka = (e) => {
1648
- Ct(u.value, e, e - 1), pe();
1649
+ Dt(u.value, e, e - 1), me();
1649
1650
  }, Sa = (e) => {
1650
- Ct(u.value, e, e + 1), pe();
1651
- }, wt = (e) => {
1652
- u.value.splice(e, 1), pe();
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
- }, $t = () => {
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, L = e.newIndex;
1663
- u.value.splice(L, 0, u.value.splice(p, 1)[0]), pe(), n("drag-end", u.value[L]);
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 E(e);
1667
+ return A(e);
1667
1668
  }
1668
1669
  });
1669
- }, Bt = (e, p, L = !1) => {
1670
- let Q = [$.value, ve, "row", p];
1671
- return L && Q.push("hidden"), De.value.forEach((oe) => {
1672
- let me = String(e[oe.key]).toLowerCase();
1673
- me.length > 50 && (me = me.substring(0, 50)), me = va(me, " ", "-"), Q.push(me);
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
- }, Ot = s(() => typeof a.createEnabledValidator == "function" ? a.createEnabledValidator({ items: u.value }) : !0), pt = s(() => vt.value || Ce.value && r.value || ht.value && r.value || xe.value && r.value), Ca = s(() => [qe.Ol, qe.Ul].includes(a.type)), Dt = (e, p) => typeof a.itemDisplayChecker == "function" ? a.itemDisplayChecker(e) : !0, Pt = (e, p) => typeof a.itemContainerClass == "function" ? a.itemContainerClass(e, p) : a.itemContainerClass, wa = (e, p) => tt.value ? e[tt.value.key] : "";
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, g.value)), X.value.store({ items: u.value }).turnStoredIntoOriginal(), Ne.value = !1, (e = a.drag) != null && e.enabled && It(() => {
1679
- $t();
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 ? $t() : Wt();
1686
+ e ? Ot() : Wt();
1686
1687
  }), F(() => a.type, (e) => {
1687
1688
  var p;
1688
- (p = a.drag) != null && p.enabled ? $t() : Wt();
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
- X.value.increment({ items: e }), Ne.value = X.value.changed(), n("update:modelValue", e);
1695
+ Y.value.increment({ items: e }), $e.value = Y.value.changed(), n("update:modelValue", e);
1695
1696
  }, { deep: !0 }), o({
1696
- getItemByEvent: Lt,
1697
- getItemByIndex: kt,
1697
+ getItemByEvent: $t,
1698
+ getItemByIndex: wt,
1698
1699
  getRowByIndex: _t,
1699
1700
  doRefresh: Ke,
1700
1701
  doRemoveIndex: (e) => {
1701
- u.value.splice(e, 1), pe();
1702
+ u.value.splice(e, 1), me();
1702
1703
  },
1703
1704
  getHtml: () => ce.value,
1704
- reRender: pe,
1705
+ reRender: me,
1705
1706
  turnStoredIntoOriginal: () => {
1706
- X.value.turnStoredIntoOriginal(), It(() => {
1707
- pe();
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 L = be("lkt-button"), Q = be("lkt-accordion"), oe = be("lkt-loader"), me = be("lkt-paginator");
1714
- return v(), h("section", {
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-" + w(ve)
1719
+ id: "lkt-table-page-" + B(ve)
1719
1720
  }, [
1720
- Qe.value || w(l).title ? (v(), h("header", {
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(), _(Re(yt.value), { key: 0 }, {
1725
- default: U(() => [
1726
- e.titleIcon ? (v(), h("i", {
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)) : B("", !0),
1730
+ }, null, 2)) : D("", !0),
1730
1731
  ot(" " + Xe(Qe.value), 1)
1731
1732
  ]),
1732
1733
  _: 1
1733
- })) : B("", !0),
1734
- w(l).title ? P(e.$slots, "title", { key: 1 }) : B("", !0)
1735
- ], 2)) : B("", !0),
1736
- (v(), _(Re(ct.value), {
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: U(() => {
1740
- var mt;
1740
+ default: P(() => {
1741
+ var yt;
1741
1742
  return [
1742
- Oe(x("div", $l, [
1743
- e.groupButton !== !1 ? (v(), _(L, ae({
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: U(() => [
1748
+ split: P(() => [
1748
1749
  x("div", Ol, [
1749
- Oe(se(L, ae(rt.value, {
1750
+ Oe(se(N, ae(rt.value, {
1750
1751
  checked: r.value,
1751
- "onUpdate:checked": p[0] || (p[0] = (I) => r.value = I)
1752
+ "onUpdate:checked": p[0] || (p[0] = (w) => r.value = w)
1752
1753
  }), null, 16, ["checked"]), [
1753
- [Pe, He.value]
1754
+ [Ue, He.value]
1754
1755
  ])
1755
1756
  ]),
1756
- w(l)["prev-buttons-ever"] ? P(e.$slots, "prev-buttons-ever", {
1757
+ B(l)["prev-buttons-ever"] ? O(e.$slots, "prev-buttons-ever", {
1757
1758
  key: 0,
1758
- canUpdate: q.value,
1759
- canDrop: Y.value,
1759
+ canUpdate: z.value,
1760
+ canDrop: G.value,
1760
1761
  perms: e.perms
1761
- }) : B("", !0),
1762
- w(l)["prev-buttons"] ? P(e.$slots, "prev-buttons", {
1762
+ }) : D("", !0),
1763
+ B(l)["prev-buttons"] ? O(e.$slots, "prev-buttons", {
1763
1764
  key: 1,
1764
- canUpdate: q.value,
1765
- canDrop: Y.value,
1765
+ canUpdate: z.value,
1766
+ canDrop: G.value,
1766
1767
  perms: e.perms
1767
- }) : B("", !0),
1768
- Oe(se(L, ae({
1768
+ }) : D("", !0),
1769
+ Oe(se(N, ae({
1769
1770
  class: "lkt-table--save-button",
1770
1771
  ref_key: "saveButtonRef",
1771
- ref: Me
1772
+ ref: Ne
1772
1773
  }, {
1773
1774
  ...M.value,
1774
- disabled: Le.value,
1775
+ disabled: _e.value,
1775
1776
  resourceData: dt.value
1776
1777
  }, {
1777
1778
  onLoading: J,
1778
1779
  onLoaded: lt,
1779
- onClick: St
1780
+ onClick: Bt
1780
1781
  }), {
1781
- split: U(({ doClose: I, doRootClick: k }) => [
1782
- P(e.$slots, "button-save-split", {
1783
- doClose: I,
1784
- doRootClick: k,
1785
- dataState: X.value,
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: U(() => [
1791
- w(l)["button-save"] ? P(e.$slots, "button-save", {
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: !Le.value
1796
- }) : B("", !0)
1796
+ canUpdate: !_e.value
1797
+ }) : D("", !0)
1797
1798
  ]),
1798
1799
  _: 3
1799
1800
  }, 16), [
1800
- [Pe, st.value]
1801
+ [Ue, st.value]
1801
1802
  ]),
1802
- pt.value && u.value.length >= e.requiredItemsForTopCreate ? (v(), _(Ht, {
1803
+ gt.value && u.value.length >= e.requiredItemsForTopCreate ? (v(), $(Ht, {
1803
1804
  key: 2,
1804
- config: ye.value,
1805
- disabled: !Ot.value,
1806
- onClick: G,
1805
+ config: he.value,
1806
+ disabled: !Ut.value,
1807
+ onClick: X,
1807
1808
  onAppend: te
1808
- }, null, 8, ["config", "disabled"])) : B("", !0)
1809
+ }, null, 8, ["config", "disabled"])) : D("", !0)
1809
1810
  ]),
1810
1811
  _: 3
1811
- }, 16)) : B("", !0),
1812
- w(l)["prev-buttons-ever"] ? P(e.$slots, "prev-buttons-ever", {
1812
+ }, 16)) : D("", !0),
1813
+ B(l)["prev-buttons-ever"] ? O(e.$slots, "prev-buttons-ever", {
1813
1814
  key: 1,
1814
- canUpdate: q.value,
1815
- canDrop: Y.value,
1815
+ canUpdate: z.value,
1816
+ canDrop: G.value,
1816
1817
  perms: e.perms
1817
- }) : B("", !0),
1818
- w(l)["prev-buttons"] ? P(e.$slots, "prev-buttons", {
1818
+ }) : D("", !0),
1819
+ B(l)["prev-buttons"] ? O(e.$slots, "prev-buttons", {
1819
1820
  key: 2,
1820
- canUpdate: q.value,
1821
- canDrop: Y.value,
1821
+ canUpdate: z.value,
1822
+ canDrop: G.value,
1822
1823
  perms: e.perms
1823
- }) : B("", !0),
1824
- Oe(se(L, ae({
1824
+ }) : D("", !0),
1825
+ Oe(se(N, ae({
1825
1826
  class: "lkt-table--save-button",
1826
1827
  ref_key: "saveButtonRef",
1827
- ref: Me
1828
+ ref: Ne
1828
1829
  }, {
1829
1830
  ...M.value,
1830
- disabled: Le.value,
1831
+ disabled: _e.value,
1831
1832
  resourceData: dt.value
1832
1833
  }, {
1833
1834
  onLoading: J,
1834
1835
  onLoaded: lt,
1835
- onClick: St
1836
+ onClick: Bt
1836
1837
  }), {
1837
- split: U(({ doClose: I, doRootClick: k }) => [
1838
- P(e.$slots, "button-save-split", {
1839
- doClose: I,
1840
- doRootClick: k,
1841
- dataState: X.value,
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: U(() => [
1847
- w(l)["button-save"] ? P(e.$slots, "button-save", {
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: !Le.value
1852
- }) : B("", !0)
1852
+ canUpdate: !_e.value
1853
+ }) : D("", !0)
1853
1854
  ]),
1854
1855
  _: 3
1855
1856
  }, 16), [
1856
- [Pe, st.value]
1857
+ [Ue, st.value]
1857
1858
  ]),
1858
- pt.value && u.value.length >= e.requiredItemsForTopCreate ? (v(), _(Ht, {
1859
+ gt.value && u.value.length >= e.requiredItemsForTopCreate ? (v(), $(Ht, {
1859
1860
  key: 3,
1860
- config: ye.value,
1861
- disabled: !Ot.value,
1862
- onClick: G,
1861
+ config: he.value,
1862
+ disabled: !Ut.value,
1863
+ onClick: X,
1863
1864
  onAppend: te
1864
- }, null, 8, ["config", "disabled"])) : B("", !0),
1865
- x("div", Pl, [
1866
- Oe(se(L, ae(rt.value, {
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] = (I) => r.value = I)
1869
+ "onUpdate:checked": p[1] || (p[1] = (w) => r.value = w)
1869
1870
  }), null, 16, ["checked"]), [
1870
- [Pe, He.value]
1871
+ [Ue, He.value]
1871
1872
  ])
1872
1873
  ])
1873
1874
  ], 512), [
1874
- [Pe, Mt.value]
1875
+ [Ue, Lt.value]
1875
1876
  ]),
1876
- w(l).buttons ? (v(), h("div", Ul, [
1877
- P(e.$slots, "buttons")
1878
- ])) : B("", !0),
1879
- le.value && w(l).filters ? (v(), h("div", Fl, [
1880
- P(e.$slots, "filters", {
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: V.value
1883
+ isLoading: E.value
1883
1884
  })
1884
- ])) : B("", !0),
1885
+ ])) : D("", !0),
1885
1886
  Oe(x("div", jl, [
1886
- e.type === w(qe).Table ? (v(), h("table", zl, [
1887
- e.hideTableHeader ? B("", !0) : (v(), h("thead", Hl, [
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(), h("th", ql)) : B("", !0),
1890
- e.addNavigation && r.value ? (v(), h("th", Gl)) : B("", !0),
1891
- je.value ? (v(), h("th", Xl)) : B("", !0),
1892
- (v(!0), h(H, null, ie(Se.value, (I) => (v(), h(H, null, [
1893
- ke.value.indexOf(I.key) === -1 ? (v(), _(Ll, {
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: I,
1896
- "sort-by": g.value,
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: (k) => d(I)
1901
- }, null, 8, ["column", "sort-by", "sort-direction", "amount-of-columns", "items", "onClick"])) : B("", !0)
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
- Y.value && r.value ? (v(), h("th", Yl)) : B("", !0),
1904
- Ie.value && q.value && r.value ? (v(), h("th", Kl)) : B("", !0)
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-" + w(ve),
1911
+ id: "lkt-table-body-" + B(ve),
1911
1912
  class: Z(e.itemsContainerClass)
1912
1913
  }, [
1913
- (v(!0), h(H, null, ie(u.value, (I, k) => Oe((v(), _(Il, {
1914
- modelValue: u.value[k],
1915
- "onUpdate:modelValue": (R) => u.value[k] = R,
1916
- key: Bt(I, k),
1917
- i: k,
1918
- "drop-button": Ue.value,
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": N(I),
1922
+ "is-draggable": L(w),
1922
1923
  sortable: Ze.value,
1923
- "visible-columns": Se.value,
1924
- "empty-columns": ke.value,
1924
+ "visible-columns": Ce.value,
1925
+ "empty-columns": Se.value,
1925
1926
  "add-navigation": e.addNavigation,
1926
- "hidden-is-visible": at(k),
1927
- "latest-row": k + 1 === Nt.value,
1928
- "can-drop": Y.value && r.value,
1929
- "can-edit": Ie.value && q.value && r.value,
1930
- "can-read": _e.value,
1931
- "can-create": Ce.value,
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": V.value,
1938
+ "is-loading": E.value,
1938
1939
  "item-container-class": e.itemContainerClass,
1939
- onClick: y,
1940
+ onClick: h,
1940
1941
  onShow: C,
1941
1942
  onItemUp: ka,
1942
1943
  onItemDown: Sa,
1943
- onItemDrop: wt
1944
+ onItemDrop: pt
1944
1945
  }, Zt({ _: 2 }, [
1945
- w(l)[`item-${k}`] ? {
1946
- name: `item-${k}`,
1947
- fn: U((R) => [
1948
- P(e.$slots, `item-${k}`, $e({
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: k,
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
- } : w(l).item ? {
1962
+ } : B(l).item ? {
1962
1963
  name: "item",
1963
- fn: U((R) => [
1964
- P(e.$slots, "item", $e({
1964
+ fn: P((R) => [
1965
+ O(e.$slots, "item", Re({
1965
1966
  [e.slotItemVar || ""]: R.item,
1966
- index: k,
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: U((Be) => [
1981
- P(e.$slots, R, $e({
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
- [Pe, Dt(u.value[k])]
1990
+ [Ue, bt(u.value[g])]
1990
1991
  ])), 128)),
1991
- We.value.length > 0 ? (v(!0), h(H, { key: 0 }, ie(u.value, (I, k) => (v(), _(Ml, {
1992
- modelValue: u.value[k],
1993
- "onUpdate:modelValue": (R) => u.value[k] = R,
1994
- key: Bt(I, k, !0),
1995
- i: k,
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": N(I),
1999
+ "is-draggable": L(w),
1999
2000
  sortable: Ze.value,
2000
- "visible-columns": Se.value,
2001
- "empty-columns": ke.value,
2002
- "hidden-is-visible": at(k),
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: y,
2006
+ onClick: h,
2006
2007
  onShow: C
2007
2008
  }, Zt({ _: 2 }, [
2008
2009
  ie(ze.value, (R) => ({
2009
2010
  name: R,
2010
- fn: U((Be) => [
2011
- P(e.$slots, R, $e({
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)) : B("", !0)
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 === w(qe).Item ? (v(), h("div", {
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-" + w(ve),
2025
+ id: "lkt-table-body-" + B(ve),
2025
2026
  class: Z(["lkt-table-items-container", e.itemsContainerClass])
2026
2027
  }, [
2027
- (v(!0), h(H, null, ie(u.value, (I, k) => (v(), h(H, null, [
2028
- Dt(I) ? (v(), h("div", {
2029
- class: Z(["lkt-table-item", Pt(I, k)]),
2030
- "data-i": k,
2031
- key: Bt(I, k)
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
- P(e.$slots, "item", $e({
2034
- [e.slotItemVar || ""]: I,
2035
- index: k,
2034
+ O(e.$slots, "item", Re({
2035
+ [e.slotItemVar || ""]: w,
2036
+ index: g,
2036
2037
  editing: r.value,
2037
- canCreate: Ce.value,
2038
- canRead: _e.value,
2039
- canUpdate: q.value,
2040
- canDrop: Y.value,
2041
- isLoading: V.value,
2042
- doDrop: () => wt(k)
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)) : B("", !0)
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 === w(qe).Accordion ? (v(), h("div", {
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-" + w(ve),
2064
+ id: "lkt-table-body-" + B(ve),
2051
2065
  class: Z(["lkt-table-items-container", e.itemsContainerClass])
2052
2066
  }, [
2053
- (v(!0), h(H, null, ie(u.value, (I, k) => (v(), h(H, null, [
2054
- Dt(I) ? (v(), _(Q, ae({
2055
- class: ["lkt-table-item", Pt(I, k)],
2056
- "data-i": k,
2057
- key: Bt(I, k),
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(I)
2075
+ title: wa(w)
2062
2076
  }), {
2063
- header: U(() => [
2064
- se(Vt, {
2065
- modelValue: u.value[k],
2066
- "onUpdate:modelValue": (R) => u.value[k] = R,
2067
- i: k,
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: Se.value,
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: U(() => [
2075
- (v(!0), h(H, null, ie(Se.value, (R) => {
2088
+ default: P(() => [
2089
+ (v(!0), k(q, null, ie(Ce.value, (R) => {
2076
2090
  var Be;
2077
- return v(), h(H, null, [
2078
- R.key !== ((Be = tt.value) == null ? void 0 : Be.key) ? (v(), _(Vt, {
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[k],
2081
- "onUpdate:modelValue": (Ea) => u.value[k] = Ea,
2082
- i: k,
2094
+ modelValue: u.value[g],
2095
+ "onUpdate:modelValue": (Ea) => u.value[g] = Ea,
2096
+ i: g,
2083
2097
  column: R,
2084
- columns: Se.value,
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"])) : B("", !0)
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"])) : B("", !0)
2106
+ }, 1040, ["class", "data-i"])) : D("", !0)
2093
2107
  ], 64))), 256))
2094
- ], 10, Zl)) : Ca.value ? (v(), _(Re(e.type), {
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: U(() => [
2099
- (v(!0), h(H, null, ie(u.value, (I, k) => (v(), h(H, null, [
2100
- Dt(I) ? (v(), h("li", {
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", Pt(I, k)]),
2103
- "data-i": k
2116
+ class: Z(["lkt-table-item", It(w, g)]),
2117
+ "data-i": g
2104
2118
  }, [
2105
- P(e.$slots, "item", $e({
2106
- [e.slotItemVar || ""]: I,
2107
- index: k,
2119
+ O(e.$slots, "item", Re({
2120
+ [e.slotItemVar || ""]: w,
2121
+ index: g,
2108
2122
  editing: r.value,
2109
- canCreate: Ce.value,
2110
- canRead: _e.value,
2111
- canUpdate: q.value,
2112
- canDrop: Y.value,
2113
- isLoading: V.value,
2114
- doDrop: () => wt(k)
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)) : B("", !0)
2130
+ ], 10, xl)) : D("", !0)
2117
2131
  ], 64))), 256))
2118
2132
  ]),
2119
2133
  _: 3
2120
- }, 8, ["class"])) : e.type === w(qe).Carousel ? (v(), h("div", {
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-" + w(ve),
2138
+ id: "lkt-table-body-" + B(ve),
2125
2139
  class: Z(["lkt-table-items-container", e.itemsContainerClass])
2126
2140
  }, [
2127
- se(w(al), ae({
2128
- modelValue: O.value,
2129
- "onUpdate:modelValue": p[2] || (p[2] = (I) => O.value = I)
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": ((mt = e.carousel) == null ? void 0 : mt.infinite) === !0
2145
+ "wrap-around": ((yt = e.carousel) == null ? void 0 : yt.infinite) === !0
2132
2146
  }), {
2133
- addons: U(() => [
2134
- se(w(ol)),
2135
- se(w(il))
2147
+ addons: P(() => [
2148
+ se(B(ol)),
2149
+ se(B(il))
2136
2150
  ]),
2137
- default: U(() => [
2138
- (v(!0), h(H, null, ie(ut.value, (I, k) => (v(), _(w(oa), {
2139
- key: I,
2140
- index: k
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: U(() => [
2156
+ default: P(() => [
2143
2157
  x("div", tn, [
2144
- P(e.$slots, I)
2158
+ O(e.$slots, w)
2145
2159
  ])
2146
2160
  ]),
2147
2161
  _: 2
2148
2162
  }, 1032, ["index"]))), 128)),
2149
- (v(!0), h(H, null, ie(u.value, (I, k) => (v(), _(w(oa), {
2163
+ (v(!0), k(q, null, ie(u.value, (w, g) => (v(), $(B(oa), {
2150
2164
  key: e.slide,
2151
- index: k
2165
+ index: g
2152
2166
  }, {
2153
- default: U(() => [
2167
+ default: P(() => [
2154
2168
  x("div", an, [
2155
- P(e.$slots, "item", $e({
2156
- [e.slotItemVar || ""]: I,
2157
- index: k,
2169
+ O(e.$slots, "item", Re({
2170
+ [e.slotItemVar || ""]: w,
2171
+ index: g,
2158
2172
  editing: r.value,
2159
- canCreate: Ce.value,
2160
- canRead: _e.value,
2161
- canUpdate: q.value,
2162
- canDrop: Y.value,
2163
- isLoading: V.value,
2164
- doDrop: () => wt(k)
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)) : B("", !0)
2187
+ ], 10, en)) : D("", !0)
2174
2188
  ], 512), [
2175
- [Pe, et.value]
2189
+ [Ue, et.value]
2176
2190
  ]),
2177
- !V.value && u.value.length === 0 ? (v(), h("div", ln, [
2178
- w(l).empty ? P(e.$slots, "empty", { key: 0 }) : Ba.value ? (v(), _(Re(Da.value), {
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(), h(H, { key: 2 }, [
2195
+ }, null, 8, ["message"])) : e.noResultsText ? (v(), k(q, { key: 2 }, [
2182
2196
  ot(Xe(e.noResultsText), 1)
2183
- ], 64)) : B("", !0)
2184
- ])) : B("", !0),
2185
- V.value ? (v(), _(oe, { key: 3 })) : B("", !0),
2186
- pt.value || w(l).bottomButtons ? (v(), h("div", nn, [
2187
- pt.value && u.value.length >= e.requiredItemsForBottomCreate ? (v(), _(Ht, {
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: ye.value,
2190
- disabled: !Ot.value,
2191
- onClick: G,
2203
+ config: he.value,
2204
+ disabled: !Ut.value,
2205
+ onClick: X,
2192
2206
  onAppend: te
2193
- }, null, 8, ["config", "disabled"])) : B("", !0),
2194
- P(e.$slots, "bottom-buttons")
2195
- ])) : B("", !0),
2196
- e.paginator && Object.keys(e.paginator).length > 0 ? (v(), _(me, ae({
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: A.value,
2202
- "onUpdate:modelValue": p[3] || (p[3] = (I) => A.value = I),
2203
- onLoading: he,
2215
+ modelValue: V.value,
2216
+ "onUpdate:modelValue": p[3] || (p[3] = (w) => V.value = w),
2217
+ onLoading: ke,
2204
2218
  onPerms: Fe,
2205
- onResponse: Rt
2206
- }), null, 16, ["modelValue"])) : B("", !0)
2219
+ onResponse: Mt
2220
+ }), null, 16, ["modelValue"])) : D("", !0)
2207
2221
  ];
2208
2222
  }),
2209
2223
  _: 3
2210
2224
  }, 8, ["class"]))
2211
- ], 8, _l);
2225
+ ], 8, $l);
2212
2226
  };
2213
2227
  }
2214
2228
  }), pn = {