lkt-table 2.0.12 → 2.0.13

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,11 +1,11 @@
1
- import { defineComponent as ae, computed as u, ref as C, shallowReactive as Ft, watch as H, watchEffect as $t, onMounted as zt, onBeforeUnmount as Ca, reactive as Lt, provide as aa, h as Y, useId as Ba, inject as st, getCurrentInstance as Da, onUnmounted as Ia, onUpdated as Ta, cloneVNode as Ea, resolveComponent as ve, createBlock as $, createElementBlock as k, unref as D, openBlock as d, normalizeProps as Te, mergeProps as fe, withCtx as F, createTextVNode as Ee, toDisplayString as Pe, Fragment as q, withModifiers as la, createCommentVNode as T, resolveDynamicComponent as De, useSlots as na, normalizeClass as re, createElementVNode as X, createVNode as Be, renderSlot as z, renderList as ie, withDirectives as rt, vShow as ut, mergeDefaults as Aa, nextTick as yt, createSlots as Yt } from "vue";
1
+ import { defineComponent as ae, computed as u, ref as C, shallowReactive as Ft, watch as H, watchEffect as $t, onMounted as zt, onBeforeUnmount as Ca, reactive as Lt, provide as aa, h as Y, useId as Ba, inject as st, getCurrentInstance as Da, onUnmounted as Ia, onUpdated as Ta, cloneVNode as Ea, resolveComponent as ve, createBlock as $, createElementBlock as k, unref as D, openBlock as d, normalizeProps as Ee, mergeProps as fe, withCtx as U, createTextVNode as Ae, toDisplayString as Pe, Fragment as q, withModifiers as la, createCommentVNode as T, resolveDynamicComponent as De, useSlots as na, normalizeClass as ne, createElementVNode as X, createVNode as Be, renderSlot as z, renderList as re, withDirectives as rt, vShow as ut, mergeDefaults as Aa, nextTick as yt, createSlots as Yt } from "vue";
2
2
  import { __ as Va } from "lkt-i18n";
3
- import { SortDirection as Oe, Column as oa, ColumnType as ht, prepareResourceData as ia, TableRowType as Ze, extractI18nValue as ra, LktSettings as tt, ensureButtonConfig as kt, TablePermission as Se, PaginatorType as St, TableType as et, getDefaultValues as Na, Table as _a, ButtonType as Ot } from "lkt-vue-kernel";
3
+ import { SortDirection as Oe, Column as oa, ColumnType as ht, prepareResourceData as ia, TableRowType as Ze, extractI18nValue as ra, LktSettings as tt, ensureButtonConfig as kt, TablePermission as Se, PaginatorType as St, TableType as et, getDefaultValues as Na, Table as Ma, ButtonType as Ot } from "lkt-vue-kernel";
4
4
  import { Column as cn, createColumn as vn } from "lkt-vue-kernel";
5
- import { replaceAll as ua, generateRandomString as Ma } from "lkt-string-tools";
6
- import { DataState as Ra } from "lkt-data-state";
5
+ import { replaceAll as ua, generateRandomString as Ra } from "lkt-string-tools";
6
+ import { DataState as _a } from "lkt-data-state";
7
7
  import $a from "sortablejs";
8
- import { time as Le } from "lkt-date-tools";
8
+ import { time as Te } from "lkt-date-tools";
9
9
  /**
10
10
  * Vue 3 Carousel 0.14.0
11
11
  * (c) 2025
@@ -42,7 +42,7 @@ const sa = ["viewport", "carousel"], Ct = {
42
42
  "end",
43
43
  "center-even",
44
44
  "center-odd"
45
- ], P = {
45
+ ], F = {
46
46
  autoplay: 0,
47
47
  breakpointMode: sa[0],
48
48
  breakpoints: void 0,
@@ -219,34 +219,34 @@ const Ga = ae({
219
219
  }), Xa = {
220
220
  // time to auto advance slides in ms
221
221
  autoplay: {
222
- default: P.autoplay,
222
+ default: F.autoplay,
223
223
  type: Number
224
224
  },
225
225
  // an object to store breakpoints
226
226
  breakpoints: {
227
- default: P.breakpoints,
227
+ default: F.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: P.breakpointMode,
232
+ default: F.breakpointMode,
233
233
  validator(e) {
234
234
  return sa.includes(e);
235
235
  }
236
236
  },
237
237
  // enable/disable the carousel component
238
238
  enabled: {
239
- default: P.enabled,
239
+ default: F.enabled,
240
240
  type: Boolean
241
241
  },
242
242
  // control the gap between slides
243
243
  gap: {
244
- default: P.gap,
244
+ default: F.gap,
245
245
  type: Number
246
246
  },
247
247
  // control the gap between slides
248
248
  height: {
249
- default: P.height,
249
+ default: F.height,
250
250
  type: [Number, String]
251
251
  },
252
252
  ignoreAnimations: {
@@ -255,17 +255,17 @@ const Ga = ae({
255
255
  },
256
256
  // count of items to be scrolled
257
257
  itemsToScroll: {
258
- default: P.itemsToScroll,
258
+ default: F.itemsToScroll,
259
259
  type: Number
260
260
  },
261
261
  // count of items to showed per view
262
262
  itemsToShow: {
263
- default: P.itemsToShow,
263
+ default: F.itemsToShow,
264
264
  type: [Number, String]
265
265
  },
266
266
  // aria-labels and additional text labels
267
267
  i18n: {
268
- default: P.i18n,
268
+ default: F.i18n,
269
269
  type: Object
270
270
  },
271
271
  // slide number number of initial slide
@@ -275,16 +275,16 @@ const Ga = ae({
275
275
  },
276
276
  // toggle mouse dragging.
277
277
  mouseDrag: {
278
- default: P.mouseDrag,
278
+ default: F.mouseDrag,
279
279
  type: Boolean
280
280
  },
281
281
  // toggle mouse dragging.
282
282
  touchDrag: {
283
- default: P.touchDrag,
283
+ default: F.touchDrag,
284
284
  type: Boolean
285
285
  },
286
286
  pauseAutoplayOnHover: {
287
- default: P.pauseAutoplayOnHover,
287
+ default: F.pauseAutoplayOnHover,
288
288
  type: Boolean
289
289
  },
290
290
  preventExcessiveDragging: {
@@ -296,27 +296,27 @@ const Ga = ae({
296
296
  },
297
297
  // control snap position alignment
298
298
  snapAlign: {
299
- default: P.snapAlign,
299
+ default: F.snapAlign,
300
300
  validator(e) {
301
301
  return va.includes(e);
302
302
  }
303
303
  },
304
304
  slideEffect: {
305
305
  type: String,
306
- default: P.slideEffect,
306
+ default: F.slideEffect,
307
307
  validator(e) {
308
308
  return ca.includes(e);
309
309
  }
310
310
  },
311
311
  // sliding transition time in ms
312
312
  transition: {
313
- default: P.transition,
313
+ default: F.transition,
314
314
  type: Number
315
315
  },
316
316
  // control the gap between slides
317
317
  dir: {
318
318
  type: String,
319
- default: P.dir,
319
+ default: F.dir,
320
320
  validator(e, o) {
321
321
  if (!da.includes(e))
322
322
  return !1;
@@ -326,7 +326,7 @@ const Ga = ae({
326
326
  },
327
327
  // control infinite scrolling mode
328
328
  wrapAround: {
329
- default: P.wrapAround,
329
+ default: F.wrapAround,
330
330
  type: Boolean
331
331
  }
332
332
  }, Ya = ae({
@@ -345,14 +345,14 @@ const Ga = ae({
345
345
  ],
346
346
  setup(e, { slots: o, emit: i, expose: n }) {
347
347
  var l;
348
- const a = Oa(i), v = a.getSlides(), b = u(() => v.length), g = C(null), p = C(null), r = C(0), E = u(() => Object.assign(Object.assign(Object.assign({}, P), Ua(e, ["breakpoints", "modelValue"])), { i18n: Object.assign(Object.assign({}, P.i18n), e.i18n) })), c = Ft(Object.assign({}, E.value)), S = C((l = e.modelValue) !== null && l !== void 0 ? l : 0), A = C(S.value);
348
+ const a = Oa(i), v = a.getSlides(), b = u(() => v.length), g = C(null), p = C(null), r = C(0), E = u(() => Object.assign(Object.assign(Object.assign({}, F), Ua(e, ["breakpoints", "modelValue"])), { i18n: Object.assign(Object.assign({}, F.i18n), e.i18n) })), c = Ft(Object.assign({}, E.value)), S = C((l = e.modelValue) !== null && l !== void 0 ? l : 0), A = C(S.value);
349
349
  H(S, (s) => A.value = s);
350
350
  const V = C(0), ye = u(() => Math.ceil((b.value - 1) / 2)), O = u(() => b.value - 1), x = u(() => 0);
351
- let ne = null, Ae = null, Z = null;
351
+ let oe = null, Ve = null, Z = null;
352
352
  const f = u(() => r.value + c.gap), h = u(() => {
353
353
  const s = c.dir || "ltr";
354
354
  return s in Ct ? Ct[s] : s;
355
- }), U = u(() => ["rtl", "btt"].includes(h.value)), L = u(() => ["ttb", "btt"].includes(h.value)), Q = u(() => c.itemsToShow === "auto"), R = u(() => L.value ? "height" : "width");
355
+ }), P = u(() => ["rtl", "btt"].includes(h.value)), L = u(() => ["ttb", "btt"].includes(h.value)), Q = u(() => c.itemsToShow === "auto"), _ = u(() => L.value ? "height" : "width");
356
356
  function Ie() {
357
357
  var s;
358
358
  if (!ze.value)
@@ -373,14 +373,14 @@ const Ga = ae({
373
373
  };
374
374
  });
375
375
  }
376
- const Ve = C({
376
+ const Ne = C({
377
377
  width: 0,
378
378
  height: 0
379
379
  });
380
380
  function It({ widthMultiplier: s, heightMultiplier: y }) {
381
381
  var w;
382
382
  const B = ((w = p.value) === null || w === void 0 ? void 0 : w.getBoundingClientRect()) || { width: 0, height: 0 };
383
- Ve.value = {
383
+ Ne.value = {
384
384
  width: B.width * s,
385
385
  height: B.height * y
386
386
  };
@@ -390,10 +390,10 @@ const Ga = ae({
390
390
  return;
391
391
  const s = Ha(Ue);
392
392
  if (It(s), Dt(s), Q.value)
393
- r.value = Pa(j.value.map((y) => y[R.value]));
393
+ r.value = Pa(j.value.map((y) => y[_.value]));
394
394
  else {
395
395
  const y = Number(c.itemsToShow), w = (y - 1) * c.gap;
396
- r.value = (Ve.value[R.value] - w) / y;
396
+ r.value = (Ne.value[_.value] - w) / y;
397
397
  }
398
398
  }
399
399
  function ue() {
@@ -407,14 +407,14 @@ const Ga = ae({
407
407
  min: 1
408
408
  }));
409
409
  }
410
- const Ne = u(() => typeof e.ignoreAnimations == "string" ? e.ignoreAnimations.split(",") : Array.isArray(e.ignoreAnimations) ? e.ignoreAnimations : e.ignoreAnimations ? !1 : []);
410
+ const Me = u(() => typeof e.ignoreAnimations == "string" ? e.ignoreAnimations.split(",") : Array.isArray(e.ignoreAnimations) ? e.ignoreAnimations : e.ignoreAnimations ? !1 : []);
411
411
  $t(() => ue()), $t(() => {
412
412
  pe();
413
413
  });
414
414
  let se;
415
415
  const je = (s) => {
416
416
  const y = s.target;
417
- if (!(!(y != null && y.contains(g.value)) || Array.isArray(Ne.value) && Ne.value.includes(s.animationName)) && (Ue.add(y), !se)) {
417
+ if (!(!(y != null && y.contains(g.value)) || Array.isArray(Me.value) && Me.value.includes(s.animationName)) && (Ue.add(y), !se)) {
418
418
  const w = () => {
419
419
  se = requestAnimationFrame(() => {
420
420
  pe(), w();
@@ -427,14 +427,14 @@ const Ga = ae({
427
427
  y && Ue.delete(y), se && Ue.size === 0 && (cancelAnimationFrame(se), pe());
428
428
  }, ze = C(!1);
429
429
  typeof document < "u" && $t(() => {
430
- ze.value && Ne.value !== !1 ? (document.addEventListener("animationstart", je), document.addEventListener("animationend", dt)) : (document.removeEventListener("animationstart", je), document.removeEventListener("animationend", dt));
430
+ ze.value && Me.value !== !1 ? (document.addEventListener("animationstart", je), document.addEventListener("animationend", dt)) : (document.removeEventListener("animationstart", je), document.removeEventListener("animationend", dt));
431
431
  }), zt(() => {
432
432
  ze.value = !0, Ie(), he(), g.value && (Z = new ResizeObserver(Bt), Z.observe(g.value)), i("init");
433
433
  }), Ca(() => {
434
- ze.value = !1, a.cleanup(), Ae && clearTimeout(Ae), se && cancelAnimationFrame(se), ne && clearInterval(ne), Z && (Z.disconnect(), Z = null), typeof document < "u" && vt(), g.value && (g.value.removeEventListener("transitionend", pe), g.value.removeEventListener("animationiteration", pe));
434
+ ze.value = !1, a.cleanup(), Ve && clearTimeout(Ve), se && cancelAnimationFrame(se), oe && clearInterval(oe), Z && (Z.disconnect(), Z = null), typeof document < "u" && vt(), g.value && (g.value.removeEventListener("transitionend", pe), g.value.removeEventListener("animationiteration", pe));
435
435
  });
436
436
  let me = !1;
437
- const He = { x: 0, y: 0 }, oe = Lt({ x: 0, y: 0 }), qe = C(!1), xe = C(!1), Tt = () => {
437
+ const He = { x: 0, y: 0 }, ie = Lt({ x: 0, y: 0 }), qe = C(!1), xe = C(!1), Tt = () => {
438
438
  qe.value = !0;
439
439
  }, lt = () => {
440
440
  qe.value = !1;
@@ -443,11 +443,11 @@ const Ga = ae({
443
443
  switch (s.key) {
444
444
  case "ArrowLeft":
445
445
  case "ArrowUp":
446
- L.value === s.key.endsWith("Up") && (U.value ? Me(!0) : Ye(!0));
446
+ L.value === s.key.endsWith("Up") && (P.value ? _e(!0) : Ye(!0));
447
447
  break;
448
448
  case "ArrowRight":
449
449
  case "ArrowDown":
450
- L.value === s.key.endsWith("Down") && (U.value ? Ye(!0) : Me(!0));
450
+ L.value === s.key.endsWith("Down") && (P.value ? Ye(!0) : _e(!0));
451
451
  break;
452
452
  }
453
453
  }, 200), Et = () => {
@@ -461,42 +461,42 @@ const Ga = ae({
461
461
  return;
462
462
  He.x = "touches" in s ? s.touches[0].clientX : s.clientX, He.y = "touches" in s ? s.touches[0].clientY : s.clientY;
463
463
  const w = me ? "touchmove" : "mousemove", B = me ? "touchend" : "mouseup";
464
- document.addEventListener(w, _e, { passive: !1 }), document.addEventListener(B, Ge, { passive: !0 });
464
+ document.addEventListener(w, Re, { passive: !1 }), document.addEventListener(B, Ge, { passive: !0 });
465
465
  }
466
- const _e = Pt((s) => {
466
+ const Re = Pt((s) => {
467
467
  xe.value = !0;
468
468
  const y = "touches" in s ? s.touches[0].clientX : s.clientX, w = "touches" in s ? s.touches[0].clientY : s.clientY;
469
- oe.x = y - He.x, oe.y = w - He.y;
469
+ ie.x = y - He.x, ie.y = w - He.y;
470
470
  const B = ja({
471
471
  isVertical: L.value,
472
- isReversed: U.value,
473
- dragged: oe,
472
+ isReversed: P.value,
473
+ dragged: ie,
474
474
  effectiveSlideSize: f.value
475
475
  });
476
476
  A.value = c.wrapAround ? S.value + B : we({
477
477
  val: S.value + B,
478
478
  max: O.value,
479
479
  min: x.value
480
- }), i("drag", { deltaX: oe.x, deltaY: oe.y });
480
+ }), i("drag", { deltaX: ie.x, deltaY: ie.y });
481
481
  });
482
482
  function Ge() {
483
- if (_e.cancel(), A.value !== S.value && !me) {
483
+ if (Re.cancel(), A.value !== S.value && !me) {
484
484
  const w = (B) => {
485
485
  B.preventDefault(), window.removeEventListener("click", w);
486
486
  };
487
487
  window.addEventListener("click", w);
488
488
  }
489
- ke(A.value), oe.x = 0, oe.y = 0, xe.value = !1;
489
+ ke(A.value), ie.x = 0, ie.y = 0, xe.value = !1;
490
490
  const s = me ? "touchmove" : "mousemove", y = me ? "touchend" : "mouseup";
491
- document.removeEventListener(s, _e), document.removeEventListener(y, Ge);
491
+ document.removeEventListener(s, Re), document.removeEventListener(y, Ge);
492
492
  }
493
493
  function he() {
494
- !c.autoplay || c.autoplay <= 0 || (ne = setInterval(() => {
495
- c.pauseAutoplayOnHover && qe.value || Me();
494
+ !c.autoplay || c.autoplay <= 0 || (oe = setInterval(() => {
495
+ c.pauseAutoplayOnHover && qe.value || _e();
496
496
  }, c.autoplay));
497
497
  }
498
498
  function Xe() {
499
- ne && (clearInterval(ne), ne = null);
499
+ oe && (clearInterval(oe), oe = null);
500
500
  }
501
501
  function de() {
502
502
  Xe(), he();
@@ -519,7 +519,7 @@ const Ga = ae({
519
519
  currentSlideIndex: S.value,
520
520
  prevSlideIndex: V.value,
521
521
  slidesCount: b.value
522
- }), Xe(), ge.value = !0, S.value = w, B !== w && be.pause(), i("update:modelValue", B), Ae = setTimeout(() => {
522
+ }), Xe(), ge.value = !0, S.value = w, B !== w && be.pause(), i("update:modelValue", B), Ve = setTimeout(() => {
523
523
  c.wrapAround && B !== w && (be.resume(), S.value = B, i("loop", {
524
524
  currentSlideIndex: S.value,
525
525
  slidingToIndex: s
@@ -530,7 +530,7 @@ const Ga = ae({
530
530
  }), ge.value = !1, de();
531
531
  }, c.transition);
532
532
  }
533
- function Me(s = !1) {
533
+ function _e(s = !1) {
534
534
  ke(S.value + c.itemsToScroll, s);
535
535
  }
536
536
  function Ye(s = !1) {
@@ -544,7 +544,7 @@ const Ga = ae({
544
544
  s !== S.value && ke(Number(s), !0);
545
545
  });
546
546
  i("before-init");
547
- const Re = u(() => {
547
+ const $e = u(() => {
548
548
  if (!c.wrapAround)
549
549
  return { before: 0, after: 0 };
550
550
  if (Q.value)
@@ -554,13 +554,13 @@ const Ga = ae({
554
554
  before: Math.max(0, w),
555
555
  after: Math.max(0, B)
556
556
  };
557
- }), Ke = u(() => Re.value.before ? Q.value ? j.value.slice(-1 * Re.value.before).reduce((s, y) => s + y[R.value] + c.gap, 0) * -1 : Re.value.before * f.value * -1 : 0), nt = u(() => {
557
+ }), Ke = u(() => $e.value.before ? Q.value ? j.value.slice(-1 * $e.value.before).reduce((s, y) => s + y[_.value] + c.gap, 0) * -1 : $e.value.before * f.value * -1 : 0), nt = u(() => {
558
558
  var s;
559
559
  if (Q.value) {
560
560
  const y = (S.value % v.length + v.length) % v.length;
561
561
  return Ut({
562
- slideSize: (s = j.value[y]) === null || s === void 0 ? void 0 : s[R.value],
563
- viewportSize: Ve.value[R.value],
562
+ slideSize: (s = j.value[y]) === null || s === void 0 ? void 0 : s[_.value],
563
+ viewportSize: Ne.value[_.value],
564
564
  align: c.snapAlign
565
565
  });
566
566
  }
@@ -571,8 +571,8 @@ const Ga = ae({
571
571
  }), We = u(() => {
572
572
  let s = 0;
573
573
  if (Q.value) {
574
- if (S.value < 0 ? s = j.value.slice(S.value).reduce((y, w) => y + w[R.value] + c.gap, 0) * -1 : s = j.value.slice(0, S.value).reduce((y, w) => y + w[R.value] + c.gap, 0), s -= nt.value, !c.wrapAround) {
575
- const y = j.value.reduce((w, B) => w + B[R.value] + c.gap, 0) - Ve.value[R.value] - c.gap;
574
+ if (S.value < 0 ? s = j.value.slice(S.value).reduce((y, w) => y + w[_.value] + c.gap, 0) * -1 : s = j.value.slice(0, S.value).reduce((y, w) => y + w[_.value] + c.gap, 0), s -= nt.value, !c.wrapAround) {
575
+ const y = j.value.reduce((w, B) => w + B[_.value] + c.gap, 0) - Ne.value[_.value] - c.gap;
576
576
  s = we({
577
577
  val: s,
578
578
  max: y,
@@ -587,7 +587,7 @@ const Ga = ae({
587
587
  min: 0
588
588
  })), s = y * f.value;
589
589
  }
590
- return s * (U.value ? 1 : -1);
590
+ return s * (P.value ? 1 : -1);
591
591
  }), At = u(() => {
592
592
  var s, y;
593
593
  if (!Q.value) {
@@ -610,20 +610,20 @@ const Ga = ae({
610
610
  }
611
611
  let w = 0;
612
612
  {
613
- let N = 0, G = 0 - Re.value.before;
613
+ let N = 0, G = 0 - $e.value.before;
614
614
  const le = Math.abs(We.value + Ke.value);
615
615
  for (; N <= le; ) {
616
616
  const ee = (G % v.length + v.length) % v.length;
617
- N += ((s = j.value[ee]) === null || s === void 0 ? void 0 : s[R.value]) + c.gap, G++;
617
+ N += ((s = j.value[ee]) === null || s === void 0 ? void 0 : s[_.value]) + c.gap, G++;
618
618
  }
619
619
  w = G - 1;
620
620
  }
621
621
  let B = 0;
622
622
  {
623
623
  let N = w, G = 0;
624
- for (N < 0 ? G = j.value.slice(0, N).reduce((le, ee) => le + ee[R.value] + c.gap, 0) - Math.abs(We.value + Ke.value) : G = j.value.slice(0, N).reduce((le, ee) => le + ee[R.value] + c.gap, 0) - Math.abs(We.value); G < Ve.value[R.value]; ) {
624
+ for (N < 0 ? G = j.value.slice(0, N).reduce((le, ee) => le + ee[_.value] + c.gap, 0) - Math.abs(We.value + Ke.value) : G = j.value.slice(0, N).reduce((le, ee) => le + ee[_.value] + c.gap, 0) - Math.abs(We.value); G < Ne.value[_.value]; ) {
625
625
  const le = (N % v.length + v.length) % v.length;
626
- G += ((y = j.value[le]) === null || y === void 0 ? void 0 : y[R.value]) + c.gap, N++;
626
+ G += ((y = j.value[le]) === null || y === void 0 ? void 0 : y[_.value]) + c.gap, N++;
627
627
  }
628
628
  B = N - 1;
629
629
  }
@@ -634,12 +634,12 @@ const Ga = ae({
634
634
  }), Vt = u(() => {
635
635
  if (c.slideEffect === "fade")
636
636
  return;
637
- const s = L.value ? "Y" : "X", y = L.value ? oe.y : oe.x;
637
+ const s = L.value ? "Y" : "X", y = L.value ? ie.y : ie.x;
638
638
  let w = We.value + y;
639
639
  if (!c.wrapAround && c.preventExcessiveDragging) {
640
640
  let B = 0;
641
- Q.value ? B = j.value.reduce((le, ee) => le + ee[R.value], 0) : B = (b.value - Number(c.itemsToShow)) * f.value;
642
- const N = U.value ? 0 : -1 * B, G = U.value ? B : 0;
641
+ Q.value ? B = j.value.reduce((le, ee) => le + ee[_.value], 0) : B = (b.value - Number(c.itemsToShow)) * f.value;
642
+ const N = P.value ? 0 : -1 * B, G = P.value ? B : 0;
643
643
  w = we({
644
644
  val: w,
645
645
  min: N,
@@ -652,7 +652,7 @@ const Ga = ae({
652
652
  "--vc-slide-gap": wt(c.gap),
653
653
  "--vc-carousel-height": wt(c.height),
654
654
  "--vc-cloned-offset": wt(Ke.value)
655
- })), ot = { slideTo: ke, next: Me, prev: Ye }, gt = Lt({
655
+ })), ot = { slideTo: ke, next: _e, prev: Ye }, gt = Lt({
656
656
  activeSlide: A,
657
657
  config: c,
658
658
  currentSlide: S,
@@ -682,7 +682,7 @@ const Ga = ae({
682
682
  return n({
683
683
  data: Je,
684
684
  nav: ot,
685
- next: Me,
685
+ next: _e,
686
686
  prev: Ye,
687
687
  restartCarousel: pt,
688
688
  slideTo: ke,
@@ -691,7 +691,7 @@ const Ga = ae({
691
691
  updateSlidesData: ue
692
692
  }), () => {
693
693
  var s;
694
- const y = o.default || o.slides, w = (y == null ? void 0 : y(Je)) || [], { before: B, after: N } = Re.value, G = Kt({
694
+ const y = o.default || o.slides, w = (y == null ? void 0 : y(Je)) || [], { before: B, after: N } = $e.value, G = Kt({
695
695
  slides: v,
696
696
  position: "before",
697
697
  toShow: B
@@ -705,12 +705,12 @@ const Ga = ae({
705
705
  ref: g,
706
706
  class: ["carousel", "is-disabled"]
707
707
  }, ee);
708
- const Nt = ((s = o.addons) === null || s === void 0 ? void 0 : s.call(o, Je)) || [], _t = Y("ol", {
708
+ const Nt = ((s = o.addons) === null || s === void 0 ? void 0 : s.call(o, Je)) || [], Mt = Y("ol", {
709
709
  class: "carousel__track",
710
710
  style: { transform: Vt.value },
711
711
  onMousedownCapture: c.mouseDrag ? ft : null,
712
712
  onTouchstartPassiveCapture: c.touchDrag ? ft : null
713
- }, ee), Qe = Y("div", { class: "carousel__viewport", ref: p }, _t);
713
+ }, ee), Qe = Y("div", { class: "carousel__viewport", ref: p }, Mt);
714
714
  return Y("section", {
715
715
  ref: g,
716
716
  class: [
@@ -758,7 +758,7 @@ const Qt = (e) => e && Wa(e), Zt = ae({
758
758
  },
759
759
  title: {
760
760
  type: String,
761
- default: (e) => e.name ? P.i18n[Jt(e.name)] : ""
761
+ default: (e) => e.name ? F.i18n[Jt(e.name)] : ""
762
762
  }
763
763
  },
764
764
  setup(e) {
@@ -1013,14 +1013,14 @@ const Qt = (e) => e && Wa(e), Zt = ae({
1013
1013
  return (p, r) => {
1014
1014
  var A, V, ye, O;
1015
1015
  const E = ve("lkt-anchor"), c = ve("lkt-button"), S = ve("lkt-field");
1016
- return p.column.type === D(ht).Anchor ? (d(), $(E, Te(fe({ key: 0 }, p.column.anchor)), {
1017
- default: F(() => [
1018
- Ee(Pe(D(at)(p.column, l.value, p.i)), 1)
1016
+ return p.column.type === D(ht).Anchor ? (d(), $(E, Ee(fe({ key: 0 }, p.column.anchor)), {
1017
+ default: U(() => [
1018
+ Ae(Pe(D(at)(p.column, l.value, p.i)), 1)
1019
1019
  ]),
1020
1020
  _: 1
1021
1021
  }, 16)) : p.column.type === D(ht).Button ? (d(), $(c, fe({ key: 1 }, p.column.button, { prop: l.value }), {
1022
- default: F(() => [
1023
- Ee(Pe(D(at)(p.column, l.value, p.i)), 1)
1022
+ default: U(() => [
1023
+ Ae(Pe(D(at)(p.column, l.value, p.i)), 1)
1024
1024
  ]),
1025
1025
  _: 1
1026
1026
  }, 16, ["prop"])) : p.column.type === D(ht).Field && p.hasInlineEditPerm ? (d(), $(S, fe({ key: 2 }, p.column.field, {
@@ -1041,7 +1041,7 @@ const Qt = (e) => e && Wa(e), Zt = ae({
1041
1041
  prop: l.value,
1042
1042
  "model-value": a.value
1043
1043
  }), null, 16, ["slot-data", "label", "modal-data", "prop", "model-value"])) : (d(), k(q, { key: 4 }, [
1044
- Ee(Pe(D(at)(p.column, l.value, p.i, p.columns)), 1)
1044
+ Ae(Pe(D(at)(p.column, l.value, p.i, p.columns)), 1)
1045
1045
  ], 64));
1046
1046
  };
1047
1047
  }
@@ -1068,7 +1068,7 @@ const ol = /* @__PURE__ */ ae({
1068
1068
  "resource-data": v.value,
1069
1069
  onClick: g[0] || (g[0] = la((r) => i("click", r), ["prevent", "stop"]))
1070
1070
  }), {
1071
- default: F(() => [
1071
+ default: U(() => [
1072
1072
  l.value ? (d(), $(De(a.value), { key: 0 })) : T("", !0)
1073
1073
  ]),
1074
1074
  _: 1
@@ -1094,7 +1094,7 @@ const ol = /* @__PURE__ */ ae({
1094
1094
  "resource-data": v.value,
1095
1095
  onClick: g[0] || (g[0] = la((r) => i("click"), ["prevent", "stop"]))
1096
1096
  }), {
1097
- default: F(() => [
1097
+ default: U(() => [
1098
1098
  l.value ? (d(), $(De(a.value), { key: 0 })) : T("", !0)
1099
1099
  ]),
1100
1100
  _: 1
@@ -1155,7 +1155,7 @@ const ol = /* @__PURE__ */ ae({
1155
1155
  n("show", f, h);
1156
1156
  }, c = u(() => {
1157
1157
  let f = [], h = !1;
1158
- return typeof l.disabledDrag == "function" ? h = l.disabledDrag(a.value) : h = Ae.value === !0, !h && l.sortable && l.isDraggable ? f.push("handle") : h && f.push("disabled"), f.join(" ");
1158
+ return typeof l.disabledDrag == "function" ? h = l.disabledDrag(a.value) : h = Ve.value === !0, !h && l.sortable && l.isDraggable ? f.push("handle") : h && f.push("disabled"), f.join(" ");
1159
1159
  }), S = u(() => K.navButtonSlot !== ""), A = u(() => K.navButtonSlot), V = () => {
1160
1160
  n("item-up", l.i);
1161
1161
  }, ye = () => {
@@ -1167,54 +1167,54 @@ const ol = /* @__PURE__ */ ae({
1167
1167
  H(() => l.modelValue, (f) => a.value = f), H(a, (f) => {
1168
1168
  n("update:modelValue", f);
1169
1169
  }, { deep: !0 });
1170
- const ne = u(() => typeof l.renderDrag == "function" ? l.renderDrag(a.value) : l.renderDrag === !0), Ae = u(() => typeof l.disabledDrag == "function" ? l.disabledDrag(a.value) : l.disabledDrag === !0);
1170
+ const oe = u(() => typeof l.renderDrag == "function" ? l.renderDrag(a.value) : l.renderDrag === !0), Ve = u(() => typeof l.disabledDrag == "function" ? l.disabledDrag(a.value) : l.disabledDrag === !0);
1171
1171
  return (f, h) => {
1172
- const U = ve("lkt-button");
1172
+ const P = ve("lkt-button");
1173
1173
  return d(), k("tr", {
1174
1174
  "data-i": f.i,
1175
1175
  "data-draggable": f.isDraggable,
1176
- class: re({ "type-custom-item": D(b), "type-item": D(g) })
1176
+ class: ne({ "type-custom-item": D(b), "type-item": D(g) })
1177
1177
  }, [
1178
- f.sortable && f.isDraggable && f.editModeEnabled && ne.value ? (d(), k("td", {
1178
+ f.sortable && f.isDraggable && f.editModeEnabled && oe.value ? (d(), k("td", {
1179
1179
  key: 0,
1180
1180
  "data-role": "drag-indicator",
1181
- class: re(c.value),
1181
+ class: ne(c.value),
1182
1182
  "data-i": f.i
1183
1183
  }, h[3] || (h[3] = [
1184
1184
  X("i", { class: "lkt-icn-drag-indicator" }, null, -1)
1185
- ]), 10, ul)) : f.sortable && f.editModeEnabled && ne.value ? (d(), k("td", sl, h[4] || (h[4] = [
1185
+ ]), 10, ul)) : f.sortable && f.editModeEnabled && oe.value ? (d(), k("td", sl, h[4] || (h[4] = [
1186
1186
  X("i", { class: "lkt-icn-drag-indicator" }, null, -1)
1187
1187
  ]))) : T("", !0),
1188
1188
  f.addNavigation && f.editModeEnabled ? (d(), k("td", dl, [
1189
1189
  X("div", cl, [
1190
- Be(U, {
1190
+ Be(P, {
1191
1191
  palette: "table-nav",
1192
1192
  disabled: f.i === 0,
1193
1193
  onClick: V
1194
1194
  }, {
1195
- default: F(() => [
1195
+ default: U(() => [
1196
1196
  S.value ? (d(), $(De(A.value), {
1197
1197
  key: 0,
1198
1198
  direction: "up"
1199
1199
  })) : (d(), k(q, { key: 1 }, [
1200
1200
  h[5] || (h[5] = X("i", { class: "" }, null, -1)),
1201
- h[6] || (h[6] = Ee(" UP "))
1201
+ h[6] || (h[6] = Ae(" UP "))
1202
1202
  ], 64))
1203
1203
  ]),
1204
1204
  _: 1
1205
1205
  }, 8, ["disabled"]),
1206
- Be(U, {
1206
+ Be(P, {
1207
1207
  palette: "table-nav",
1208
1208
  disabled: f.latestRow,
1209
1209
  onClick: ye
1210
1210
  }, {
1211
- default: F(() => [
1211
+ default: U(() => [
1212
1212
  S.value ? (d(), $(De(A.value), {
1213
1213
  key: 0,
1214
1214
  direction: "down"
1215
1215
  })) : (d(), k(q, { key: 1 }, [
1216
1216
  h[7] || (h[7] = X("i", { class: "" }, null, -1)),
1217
- h[8] || (h[8] = Ee(" DOWN "))
1217
+ h[8] || (h[8] = Ae(" DOWN "))
1218
1218
  ], 64))
1219
1219
  ]),
1220
1220
  _: 1
@@ -1225,7 +1225,7 @@ const ol = /* @__PURE__ */ ae({
1225
1225
  key: 3,
1226
1226
  onClick: h[0] || (h[0] = (L) => E(L, f.i)),
1227
1227
  "data-role": "show-more",
1228
- class: re(f.hiddenIsVisible ? "state-open" : "")
1228
+ class: ne(f.hiddenIsVisible ? "state-open" : "")
1229
1229
  }, null, 2)) : T("", !0),
1230
1230
  D(b) && D(i)[`item-${f.i}`] ? (d(), k("td", {
1231
1231
  key: "td" + f.i,
@@ -1243,13 +1243,13 @@ const ol = /* @__PURE__ */ ae({
1243
1243
  item: a.value,
1244
1244
  index: f.i
1245
1245
  })
1246
- ], 8, fl)) : (d(!0), k(q, { key: 6 }, ie(f.visibleColumns, (L) => (d(), k(q, null, [
1246
+ ], 8, fl)) : (d(!0), k(q, { key: 6 }, re(f.visibleColumns, (L) => (d(), k(q, null, [
1247
1247
  D(al)(L, f.emptyColumns, a.value) ? (d(), k("td", {
1248
1248
  key: "td" + f.i,
1249
1249
  "data-column": L.key,
1250
1250
  colspan: D(Ht)(L, a.value),
1251
1251
  title: D(at)(L, a.value, f.i, f.visibleColumns),
1252
- class: re(D(ma)(L)),
1252
+ class: ne(D(ma)(L)),
1253
1253
  onClick: h[2] || (h[2] = (Q) => r(Q))
1254
1254
  }, [
1255
1255
  f.$slots[L.key] && D(tl)(L, a.value) ? z(f.$slots, L.key, {
@@ -1312,14 +1312,14 @@ const ol = /* @__PURE__ */ ae({
1312
1312
  X("td", { colspan: v.hiddenColumnsColSpan }, [
1313
1313
  X("table", null, [
1314
1314
  X("tr", null, [
1315
- (d(!0), k(q, null, ie(v.hiddenColumns, (g) => (d(), k("th", {
1315
+ (d(!0), k(q, null, re(v.hiddenColumns, (g) => (d(), k("th", {
1316
1316
  "data-column": g.key
1317
1317
  }, [
1318
1318
  X("div", null, Pe(g.label), 1)
1319
1319
  ], 8, kl))), 256))
1320
1320
  ]),
1321
1321
  X("tr", { "data-i": v.i }, [
1322
- (d(!0), k(q, null, ie(v.hiddenColumns, (g, p) => (d(), k("td", {
1322
+ (d(!0), k(q, null, re(v.hiddenColumns, (g, p) => (d(), k("td", {
1323
1323
  "data-column": g.key,
1324
1324
  title: D(at)(g, l.value, p, v.hiddenColumns),
1325
1325
  onClick: b[1] || (b[1] = (r) => a(r))
@@ -1382,7 +1382,7 @@ const ol = /* @__PURE__ */ ae({
1382
1382
  disabled: r.disabled,
1383
1383
  onClick: g
1384
1384
  }), {
1385
- default: F(() => [
1385
+ default: U(() => [
1386
1386
  l.value ? (d(), $(De(a.value), { key: 0 })) : T("", !0)
1387
1387
  ]),
1388
1388
  _: 1
@@ -1409,14 +1409,14 @@ const ol = /* @__PURE__ */ ae({
1409
1409
  "data-sort": v.value,
1410
1410
  colspan: l.value,
1411
1411
  title: b.value,
1412
- class: re(D(ma)(r.column)),
1412
+ class: ne(D(ma)(r.column)),
1413
1413
  onClick: p
1414
1414
  }, [
1415
1415
  X("div", null, [
1416
- Ee(Pe(b.value) + " ", 1),
1416
+ Ae(Pe(b.value) + " ", 1),
1417
1417
  g.value ? (d(), k("i", {
1418
1418
  key: 0,
1419
- class: re(g.value)
1419
+ class: ne(g.value)
1420
1420
  }, null, 2)) : T("", !0)
1421
1421
  ])
1422
1422
  ], 10, Bl));
@@ -1430,7 +1430,7 @@ const ol = /* @__PURE__ */ ae({
1430
1430
  }, Vl = {
1431
1431
  key: 2,
1432
1432
  class: "lkt-table-page-filters"
1433
- }, Nl = { class: "lkt-table" }, _l = { key: 0 }, Ml = { key: 0 }, Rl = {
1433
+ }, Nl = { class: "lkt-table" }, Ml = { key: 0 }, Rl = { key: 0 }, _l = {
1434
1434
  key: 0,
1435
1435
  "data-role": "drag-indicator"
1436
1436
  }, $l = { key: 1 }, Ll = { key: 2 }, Ol = {
@@ -1487,7 +1487,7 @@ const ol = /* @__PURE__ */ ae({
1487
1487
  wrapContentClass: {},
1488
1488
  itemsContainerClass: {},
1489
1489
  createEnabledValidator: { type: Function }
1490
- }, Na(_a)),
1490
+ }, Na(Ma)),
1491
1491
  emits: [
1492
1492
  "update:modelValue",
1493
1493
  "update:perms",
@@ -1504,32 +1504,32 @@ const ol = /* @__PURE__ */ ae({
1504
1504
  ],
1505
1505
  setup(e, { expose: o, emit: i }) {
1506
1506
  var Gt, Xt;
1507
- const n = i, l = na(), a = e, v = {}, b = C(typeof a.sorter == "function" ? a.sorter : Za), g = C(ll(a.columns)), p = C(Oe.Asc), r = C(a.modelValue), E = C(v), c = C(null), S = C(a.columns), A = C((Gt = a.paginator) == null ? void 0 : Gt.modelValue), V = C(a.loading), ye = C(!1), O = C(a.perms), x = C(null), ne = C(null), Ae = C(null), Z = C({}), f = C(new Ra({ items: r.value }, a.dataStateConfig)), h = C(a.editMode), U = C(0), L = C(null), Q = C(((Xt = a.carousel) == null ? void 0 : Xt.currentSlide) || 0), R = C(kt(a.saveButton, tt.defaultSaveButton)), Ie = C(kt(a.createButton, tt.defaultCreateButton)), Bt = C(kt(a.editModeButton, tt.defaultEditModeButton)), Ue = C(kt(a.dropButton, tt.defaultDropButton)), j = C(!1);
1507
+ const n = i, l = na(), a = e, v = {}, b = C(typeof a.sorter == "function" ? a.sorter : Za), g = C(ll(a.columns)), p = C(Oe.Asc), r = C(a.modelValue), E = C(v), c = C(null), S = C(a.columns), A = C((Gt = a.paginator) == null ? void 0 : Gt.modelValue), V = C(a.loading), ye = C(!1), O = C(a.perms), x = C(null), oe = C(null), Ve = C(null), Z = C({}), f = C(new _a({ items: r.value }, a.dataStateConfig)), h = C(a.editMode), P = C(0), L = C(null), Q = C(((Xt = a.carousel) == null ? void 0 : Xt.currentSlide) || 0), _ = C(kt(a.saveButton, tt.defaultSaveButton)), Ie = C(kt(a.createButton, tt.defaultCreateButton)), Bt = C(kt(a.editModeButton, tt.defaultEditModeButton)), Ue = C(kt(a.dropButton, tt.defaultDropButton)), j = C(!1);
1508
1508
  H(V, (t) => n("update:loading", t)), H(A, (t) => n("page", t));
1509
1509
  const Dt = (t) => {
1510
1510
  O.value = t;
1511
- }, Ve = (t) => {
1511
+ }, Ne = (t) => {
1512
1512
  var m;
1513
1513
  Array.isArray(t.data) && ((!a.paginator || ![St.LoadMore, St.Infinite].includes((m = a.paginator) == null ? void 0 : m.type)) && r.value.splice(0, r.value.length), r.value = [...r.value, ...t.data]), V.value = !1, ye.value = !0, f.value.store({ items: r.value }).turnStoredIntoOriginal(), j.value = !1, yt(() => {
1514
- U.value = Le(), lt.value, n("read-response", t);
1514
+ P.value = Te(), lt.value, n("read-response", t);
1515
1515
  });
1516
1516
  }, It = () => yt(() => V.value = !0), pe = () => {
1517
1517
  x.value.doRefresh();
1518
- }, ue = Ma(12), Ne = u(() => {
1518
+ }, ue = Ra(12), Me = u(() => {
1519
1519
  if (!a.hideEmptyColumns) return [];
1520
1520
  let t = [];
1521
1521
  return S.value.forEach((m) => {
1522
- let M = m.key, W = !1;
1522
+ let R = m.key, W = !1;
1523
1523
  r.value.forEach((te) => {
1524
1524
  if (typeof te.checkEmpty == "function")
1525
1525
  return te.checkEmpty(te);
1526
- te[M] && (W = !0);
1527
- }), W || t.push(M);
1526
+ te[R] && (W = !0);
1527
+ }), W || t.push(R);
1528
1528
  }), t;
1529
1529
  }), se = u(() => S.value.filter((t) => !t.hidden)), je = u(() => S.value.filter((t) => t.hidden)), dt = u(() => {
1530
1530
  let t = se.value.length + 1;
1531
1531
  return a.sortable && ++t, t;
1532
- }), ze = u(() => S.value.filter((t) => t.isForRowKey)), me = u(() => je.value.length > 0 && !a.sortable), He = u(() => S.value.map((t) => t.key)), oe = u(() => {
1532
+ }), ze = u(() => S.value.filter((t) => t.isForRowKey)), me = u(() => je.value.length > 0 && !a.sortable), He = u(() => S.value.map((t) => t.key)), ie = u(() => {
1533
1533
  let t = [];
1534
1534
  for (let m in l) He.value.indexOf(m) !== -1 && t.push(m);
1535
1535
  return t;
@@ -1539,23 +1539,23 @@ const ol = /* @__PURE__ */ ae({
1539
1539
  return t;
1540
1540
  }), xe = u(() => {
1541
1541
  var t;
1542
- return a.hiddenSave || V.value || !((t = R.value) != null && t.resource || R.value.type) ? !1 : h.value && j.value ? !0 : h.value;
1542
+ return a.hiddenSave || V.value || !((t = _.value) != null && t.resource || _.value.type) ? !1 : h.value && j.value ? !0 : h.value;
1543
1543
  }), Tt = u(() => bt.value && r.value.length >= a.requiredItemsForTopCreate || Ke.value ? !0 : xe.value || h.value && he.value), lt = u(() => {
1544
1544
  var t, m;
1545
- return U.value, typeof ((t = R.value) == null ? void 0 : t.disabled) == "function" ? R.value.disabled({
1545
+ return P.value, typeof ((t = _.value) == null ? void 0 : t.disabled) == "function" ? _.value.disabled({
1546
1546
  value: r.value,
1547
1547
  dataState: f.value
1548
- }) : typeof ((m = R.value) == null ? void 0 : m.disabled) == "boolean" ? R.value.disabled : !j.value;
1548
+ }) : typeof ((m = _.value) == null ? void 0 : m.disabled) == "boolean" ? _.value.disabled : !j.value;
1549
1549
  }), ct = u(() => r.value.length), Et = u(() => {
1550
1550
  var t;
1551
1551
  return {
1552
1552
  items: r.value,
1553
- ...(t = R.value) == null ? void 0 : t.resourceData
1553
+ ...(t = _.value) == null ? void 0 : t.resourceData
1554
1554
  };
1555
- }), vt = u(() => a.titleTag === "" ? "h2" : a.titleTag), ft = u(() => a.wrapContentTag === "" ? "div" : a.wrapContentTag), _e = u(() => ra(a.title)), Ge = u(() => {
1555
+ }), vt = u(() => a.titleTag === "" ? "h2" : a.titleTag), ft = u(() => a.wrapContentTag === "" ? "div" : a.wrapContentTag), Re = u(() => ra(a.title)), Ge = u(() => {
1556
1556
  var t;
1557
1557
  return (t = a.drag) == null ? void 0 : t.enabled;
1558
- }), he = u(() => O.value.includes(Se.Create)), Xe = u(() => O.value.includes("read")), de = u(() => O.value.includes(Se.Update)), ge = u(() => O.value.includes(Se.Edit)), ke = u(() => O.value.includes(Se.InlineEdit)), Me = u(() => O.value.includes(Se.ModalCreate)), Ye = u(() => O.value.includes(Se.InlineCreate)), pt = u(() => O.value.includes(Se.InlineCreateEver)), be = u(() => O.value.includes(Se.Drop)), Re = u(() => O.value.includes(Se.SwitchEditMode)), Ke = u(() => !Re.value || !de.value && !be.value || !de.value && be.value ? !1 : !V.value), nt = u(() => {
1558
+ }), he = u(() => O.value.includes(Se.Create)), Xe = u(() => O.value.includes("read")), de = u(() => O.value.includes(Se.Update)), ge = u(() => O.value.includes(Se.Edit)), ke = u(() => O.value.includes(Se.InlineEdit)), _e = u(() => O.value.includes(Se.ModalCreate)), Ye = u(() => O.value.includes(Se.InlineCreate)), pt = u(() => O.value.includes(Se.InlineCreateEver)), be = u(() => O.value.includes(Se.Drop)), $e = u(() => O.value.includes(Se.SwitchEditMode)), Ke = u(() => !$e.value || !de.value && !be.value || !de.value && be.value ? !1 : !V.value), nt = u(() => {
1559
1559
  var t;
1560
1560
  return (typeof ((t = a.paginator) == null ? void 0 : t.type) < "u" && [St.LoadMore, St.Infinite].includes(a.paginator.type) || !V.value) && r.value.length > 0;
1561
1561
  }), We = (t) => {
@@ -1570,19 +1570,19 @@ const ol = /* @__PURE__ */ ae({
1570
1570
  var m;
1571
1571
  return (m = c.value) == null ? void 0 : m.querySelector(`[data-i="${t}"]`);
1572
1572
  }, mt = (t) => E.value["tr_" + t] === !0, ot = (t) => {
1573
- t && t.sortable && (r.value = r.value.sort((m, M) => b.value(m, M, t, p.value)), p.value = p.value === Oe.Asc ? Oe.Desc : Oe.Asc, g.value = t.key, U.value = Le(), n("sort", [g.value, p.value]));
1573
+ t && t.sortable && (r.value = r.value.sort((m, R) => b.value(m, R, t, p.value)), p.value = p.value === Oe.Asc ? Oe.Desc : Oe.Asc, g.value = t.key, P.value = Te(), n("sort", [g.value, p.value]));
1574
1574
  }, gt = (t) => {
1575
1575
  n("click", t);
1576
1576
  }, Je = (t, m) => {
1577
- let M = "tr_" + m;
1578
- E.value[M] = typeof E.value[M] > "u" ? !0 : !E.value[M];
1577
+ let R = "tr_" + m;
1578
+ E.value[R] = typeof E.value[R] > "u" ? !0 : !E.value[R];
1579
1579
  }, s = (t) => {
1580
- var M, W, te, ce, it, _, I, J;
1581
- let m = parseInt((ce = (te = (W = (M = t == null ? void 0 : t.originalEvent) == null ? void 0 : M.toElement) == null ? void 0 : W.closest("tr")) == null ? void 0 : te.dataset) == null ? void 0 : ce.i);
1582
- return !(typeof ((it = a.drag) == null ? void 0 : it.isValid) == "function" && !((_ = a.drag) != null && _.isValid(r.value[m])) || typeof ((I = a.drag) == null ? void 0 : I.isValid) == "boolean" && !((J = a.drag) != null && J.isValid));
1580
+ var R, W, te, ce, it, M, I, J;
1581
+ let m = parseInt((ce = (te = (W = (R = t == null ? void 0 : t.originalEvent) == null ? void 0 : R.toElement) == null ? void 0 : W.closest("tr")) == null ? void 0 : te.dataset) == null ? void 0 : ce.i);
1582
+ return !(typeof ((it = a.drag) == null ? void 0 : it.isValid) == "function" && !((M = a.drag) != null && M.isValid(r.value[m])) || typeof ((I = a.drag) == null ? void 0 : I.isValid) == "boolean" && !((J = a.drag) != null && J.isValid));
1583
1583
  }, y = (t) => {
1584
- var m, M;
1585
- return typeof ((m = a.drag) == null ? void 0 : m.isDraggable) == "function" ? (M = a.drag) == null ? void 0 : M.isDraggable(t) : !0;
1584
+ var m, R;
1585
+ return typeof ((m = a.drag) == null ? void 0 : m.isDraggable) == "function" ? (R = a.drag) == null ? void 0 : R.isDraggable(t) : !0;
1586
1586
  }, w = () => {
1587
1587
  if (he.value) {
1588
1588
  n("click-create");
@@ -1603,30 +1603,30 @@ const ol = /* @__PURE__ */ ae({
1603
1603
  }, B = (t) => {
1604
1604
  r.value.push(t);
1605
1605
  }, N = () => V.value = !0, G = () => V.value = !1, le = (t, m) => {
1606
- var M, W, te;
1607
- if (!((M = R.value) != null && M.type && [
1606
+ var R, W, te;
1607
+ if (!((R = _.value) != null && R.type && [
1608
1608
  Ot.Split,
1609
1609
  Ot.SplitEver,
1610
1610
  Ot.SplitLazy
1611
- ].includes((W = R.value) == null ? void 0 : W.type))) {
1612
- if (n("before-save"), (te = R.value) != null && te.resource && (V.value = !1, !m.success)) {
1611
+ ].includes((W = _.value) == null ? void 0 : W.type))) {
1612
+ if (n("before-save"), (te = _.value) != null && te.resource && (V.value = !1, !m.success)) {
1613
1613
  n("error", m.httpStatus);
1614
1614
  return;
1615
1615
  }
1616
1616
  f.value.turnStoredIntoOriginal(), j.value = !1, n("save", m);
1617
1617
  }
1618
- }, ee = (t, m, M) => {
1619
- if (M >= t.length) {
1620
- let W = M - t.length + 1;
1618
+ }, ee = (t, m, R) => {
1619
+ if (R >= t.length) {
1620
+ let W = R - t.length + 1;
1621
1621
  for (; W--; ) t.push(void 0);
1622
1622
  }
1623
- return t.splice(M, 0, t.splice(m, 1)[0]), t;
1623
+ return t.splice(R, 0, t.splice(m, 1)[0]), t;
1624
1624
  }, Nt = (t) => {
1625
- ee(r.value, t, t - 1), U.value = Le();
1626
- }, _t = (t) => {
1627
- ee(r.value, t, t + 1), U.value = Le();
1625
+ ee(r.value, t, t - 1), P.value = Te();
1626
+ }, Mt = (t) => {
1627
+ ee(r.value, t, t + 1), P.value = Te();
1628
1628
  }, Qe = (t) => {
1629
- r.value.splice(t, 1), U.value = Le();
1629
+ r.value.splice(t, 1), P.value = Te();
1630
1630
  }, ba = () => {
1631
1631
  var t;
1632
1632
  Z.value && typeof ((t = Z.value) == null ? void 0 : t.destroy) == "function" && (Z.value.destroy(), Z.value = {});
@@ -1636,20 +1636,20 @@ const ol = /* @__PURE__ */ ae({
1636
1636
  handle: ".handle",
1637
1637
  animation: 150,
1638
1638
  onEnd: function(t) {
1639
- let m = t.oldIndex, M = t.newIndex;
1640
- r.value.splice(M, 0, r.value.splice(m, 1)[0]), U.value = Le(), n("drag-end", r.value[M]);
1639
+ let m = t.oldIndex, R = t.newIndex;
1640
+ r.value.splice(R, 0, r.value.splice(m, 1)[0]), P.value = Te(), n("drag-end", r.value[R]);
1641
1641
  },
1642
1642
  onMove: function(t, m) {
1643
1643
  return s(t);
1644
1644
  }
1645
1645
  });
1646
- }, Mt = (t, m, M = !1) => {
1647
- let W = [U.value, ue, "row", m];
1648
- return M && W.push("hidden"), ze.value.forEach((te) => {
1646
+ }, Rt = (t, m, R = !1) => {
1647
+ let W = [P.value, ue, "row", m];
1648
+ return R && W.push("hidden"), ze.value.forEach((te) => {
1649
1649
  let ce = String(t[te.key]).toLowerCase();
1650
1650
  ce.length > 50 && (ce = ce.substring(0, 50)), ce = ua(ce, " ", "-"), W.push(ce);
1651
1651
  }), W.join("-");
1652
- }, xt = u(() => typeof a.createEnabledValidator == "function" ? a.createEnabledValidator({ items: r.value }) : !0), bt = u(() => pt.value || he.value && h.value || Ye.value && h.value || Me.value && h.value), ya = u(() => [et.Ol, et.Ul].includes(a.type)), Rt = (t, m) => typeof a.itemDisplayChecker == "function" ? a.itemDisplayChecker(t) : !0;
1652
+ }, xt = u(() => typeof a.createEnabledValidator == "function" ? a.createEnabledValidator({ items: r.value }) : !0), bt = u(() => pt.value || he.value && h.value || Ye.value && h.value || _e.value && h.value), ya = u(() => [et.Ol, et.Ul].includes(a.type)), _t = (t, m) => typeof a.itemDisplayChecker == "function" ? a.itemDisplayChecker(t) : !0;
1653
1653
  zt(() => {
1654
1654
  var t;
1655
1655
  a.initialSorting && ot(nl(a.columns, g.value)), f.value.store({ items: r.value }).turnStoredIntoOriginal(), j.value = !1, (t = a.drag) != null && t.enabled && yt(() => {
@@ -1660,73 +1660,78 @@ const ol = /* @__PURE__ */ ae({
1660
1660
  return (t = a.drag) == null ? void 0 : t.enabled;
1661
1661
  }, (t) => {
1662
1662
  t ? qt() : ba();
1663
- }), H(() => a.perms, (t) => O.value = t), H(O, (t) => n("update:perms", t)), H(() => a.editMode, (t) => h.value = t), H(() => a.columns, (t) => S.value = t, { deep: !0 }), H(() => a.modelValue, (t) => r.value = t, { deep: !0 }), H(r, (t) => {
1663
+ }), H(() => a.perms, (t) => O.value = t), H(O, (t) => n("update:perms", t)), H(() => a.editMode, (t) => h.value = t), H(() => a.columns, (t) => S.value = t, { deep: !0 }), H(() => a.modelValue, (t) => {
1664
+ r.value = t;
1665
+ }, { deep: !0 }), H(r, (t) => {
1664
1666
  f.value.increment({ items: t }), j.value = f.value.changed(), n("update:modelValue", t);
1665
1667
  }, { deep: !0 }), o({
1666
1668
  getItemByEvent: We,
1667
1669
  getItemByIndex: At,
1668
1670
  getRowByIndex: Vt,
1669
1671
  doRefresh: pe,
1670
- getHtml: () => ne.value,
1672
+ doRemoveIndex: (t) => {
1673
+ r.value.splice(t, 1), P.value = Te();
1674
+ },
1675
+ getHtml: () => oe.value,
1671
1676
  turnStoredIntoOriginal: () => {
1672
1677
  f.value.turnStoredIntoOriginal(), yt(() => {
1673
- U.value = Le();
1678
+ P.value = Te();
1674
1679
  });
1675
1680
  }
1676
1681
  });
1677
1682
  const ha = u(() => typeof K.defaultEmptySlot < "u"), ka = u(() => K.defaultEmptySlot), Sa = u(() => !a.drag || Object.keys(a.drag).length === 0 || !a.drag.enabled ? !1 : typeof a.drag.canRender > "u" ? !0 : a.drag.canRender), wa = u(() => !a.drag || Object.keys(a.drag).length === 0 || !a.drag.enabled || typeof a.drag.isDisabled > "u" ? !1 : a.drag.isDisabled);
1678
1683
  return (t, m) => {
1679
- const M = ve("lkt-button"), W = ve("lkt-field"), te = ve("lkt-loader"), ce = ve("lkt-paginator");
1684
+ const R = ve("lkt-button"), W = ve("lkt-field"), te = ve("lkt-loader"), ce = ve("lkt-paginator");
1680
1685
  return d(), k("section", {
1681
1686
  ref_key: "element",
1682
- ref: ne,
1687
+ ref: oe,
1683
1688
  class: "lkt-table-page",
1684
1689
  id: "lkt-table-page-" + D(ue)
1685
1690
  }, [
1686
- _e.value || D(l).title ? (d(), k("header", {
1691
+ Re.value || D(l).title ? (d(), k("header", {
1687
1692
  key: 0,
1688
- class: re(t.headerClass)
1693
+ class: ne(t.headerClass)
1689
1694
  }, [
1690
- _e.value ? (d(), $(De(vt.value), { key: 0 }, {
1691
- default: F(() => [
1695
+ Re.value ? (d(), $(De(vt.value), { key: 0 }, {
1696
+ default: U(() => [
1692
1697
  t.titleIcon ? (d(), k("i", {
1693
1698
  key: 0,
1694
- class: re(t.titleIcon)
1699
+ class: ne(t.titleIcon)
1695
1700
  }, null, 2)) : T("", !0),
1696
- Ee(" " + Pe(_e.value), 1)
1701
+ Ae(" " + Pe(Re.value), 1)
1697
1702
  ]),
1698
1703
  _: 1
1699
1704
  })) : T("", !0),
1700
1705
  D(l).title ? z(t.$slots, "title", { key: 1 }) : T("", !0)
1701
1706
  ], 2)) : T("", !0),
1702
1707
  (d(), $(De(ft.value), {
1703
- class: re(["lkt-table-page-content-wrapper", t.wrapContentClass])
1708
+ class: ne(["lkt-table-page-content-wrapper", t.wrapContentClass])
1704
1709
  }, {
1705
- default: F(() => {
1710
+ default: U(() => {
1706
1711
  var it;
1707
1712
  return [
1708
1713
  Tt.value ? (d(), k("div", Tl, [
1709
- rt(Be(M, fe({
1714
+ rt(Be(R, fe({
1710
1715
  class: "lkt-table--save-button",
1711
1716
  ref_key: "saveButtonRef",
1712
- ref: Ae
1713
- }, R.value, {
1717
+ ref: Ve
1718
+ }, _.value, {
1714
1719
  disabled: lt.value,
1715
1720
  "modal-data": Et.value,
1716
1721
  onLoading: N,
1717
1722
  onLoaded: G,
1718
1723
  onClick: le
1719
1724
  }), {
1720
- split: F(({ doClose: _, doRootClick: I }) => [
1725
+ split: U(({ doClose: M, doRootClick: I }) => [
1721
1726
  z(t.$slots, "button-save-split", {
1722
- doClose: _,
1727
+ doClose: M,
1723
1728
  doRootClick: I,
1724
1729
  dataState: f.value,
1725
1730
  onButtonLoading: N,
1726
1731
  onButtonLoaded: G
1727
1732
  })
1728
1733
  ]),
1729
- default: F(() => [
1734
+ default: U(() => [
1730
1735
  D(l)["button-save"] ? z(t.$slots, "button-save", {
1731
1736
  key: 0,
1732
1737
  items: r.value,
@@ -1748,7 +1753,7 @@ const ol = /* @__PURE__ */ ae({
1748
1753
  X("div", El, [
1749
1754
  rt(Be(W, fe(Bt.value, {
1750
1755
  modelValue: h.value,
1751
- "onUpdate:modelValue": m[0] || (m[0] = (_) => h.value = _)
1756
+ "onUpdate:modelValue": m[0] || (m[0] = (M) => h.value = M)
1752
1757
  }), null, 16, ["modelValue"]), [
1753
1758
  [ut, Ke.value]
1754
1759
  ])
@@ -1764,21 +1769,21 @@ const ol = /* @__PURE__ */ ae({
1764
1769
  })
1765
1770
  ])) : T("", !0),
1766
1771
  rt(X("div", Nl, [
1767
- t.type === D(et).Table ? (d(), k("table", _l, [
1768
- t.hideTableHeader ? T("", !0) : (d(), k("thead", Ml, [
1772
+ t.type === D(et).Table ? (d(), k("table", Ml, [
1773
+ t.hideTableHeader ? T("", !0) : (d(), k("thead", Rl, [
1769
1774
  X("tr", null, [
1770
- Ge.value && h.value ? (d(), k("th", Rl)) : T("", !0),
1775
+ Ge.value && h.value ? (d(), k("th", _l)) : T("", !0),
1771
1776
  t.addNavigation && h.value ? (d(), k("th", $l)) : T("", !0),
1772
1777
  me.value ? (d(), k("th", Ll)) : T("", !0),
1773
- (d(!0), k(q, null, ie(se.value, (_) => (d(), k(q, null, [
1774
- Ne.value.indexOf(_.key) === -1 ? (d(), $(Dl, {
1778
+ (d(!0), k(q, null, re(se.value, (M) => (d(), k(q, null, [
1779
+ Me.value.indexOf(M.key) === -1 ? (d(), $(Dl, {
1775
1780
  key: 0,
1776
- column: _,
1781
+ column: M,
1777
1782
  "sort-by": g.value,
1778
1783
  "sort-direction": p.value,
1779
1784
  "amount-of-columns": t.columns.length,
1780
1785
  items: r.value,
1781
- onClick: (I) => ot(_)
1786
+ onClick: (I) => ot(M)
1782
1787
  }, null, 8, ["column", "sort-by", "sort-direction", "amount-of-columns", "items", "onClick"])) : T("", !0)
1783
1788
  ], 64))), 256)),
1784
1789
  be.value && h.value ? (d(), k("th", Ol)) : T("", !0),
@@ -1788,20 +1793,21 @@ const ol = /* @__PURE__ */ ae({
1788
1793
  X("tbody", {
1789
1794
  ref_key: "tableBody",
1790
1795
  ref: c,
1791
- id: "lkt-table-body-" + D(ue)
1796
+ id: "lkt-table-body-" + D(ue),
1797
+ class: ne(t.itemsContainerClass)
1792
1798
  }, [
1793
- (d(!0), k(q, null, ie(r.value, (_, I) => rt((d(), $(bl, {
1799
+ (d(!0), k(q, null, re(r.value, (M, I) => rt((d(), $(bl, {
1794
1800
  modelValue: r.value[I],
1795
1801
  "onUpdate:modelValue": (J) => r.value[I] = J,
1796
- key: Mt(_, I),
1802
+ key: Rt(M, I),
1797
1803
  i: I,
1798
1804
  "drop-button": Ue.value,
1799
1805
  "edit-button": t.editButton,
1800
1806
  "display-hidden-columns-indicator": me.value,
1801
- "is-draggable": y(_),
1807
+ "is-draggable": y(M),
1802
1808
  sortable: Ge.value,
1803
1809
  "visible-columns": se.value,
1804
- "empty-columns": Ne.value,
1810
+ "empty-columns": Me.value,
1805
1811
  "add-navigation": t.addNavigation,
1806
1812
  "hidden-is-visible": mt(I),
1807
1813
  "latest-row": I + 1 === ct.value,
@@ -1815,13 +1821,13 @@ const ol = /* @__PURE__ */ ae({
1815
1821
  onClick: gt,
1816
1822
  onShow: Je,
1817
1823
  onItemUp: Nt,
1818
- onItemDown: _t,
1824
+ onItemDown: Mt,
1819
1825
  onItemDrop: Qe
1820
1826
  }, Yt({ _: 2 }, [
1821
1827
  D(l)[`item-${I}`] ? {
1822
1828
  name: `item-${I}`,
1823
- fn: F((J) => [
1824
- z(t.$slots, `item-${I}`, Te({
1829
+ fn: U((J) => [
1830
+ z(t.$slots, `item-${I}`, Ee({
1825
1831
  [t.slotItemVar || ""]: J.item,
1826
1832
  index: I
1827
1833
  }))
@@ -1829,71 +1835,71 @@ const ol = /* @__PURE__ */ ae({
1829
1835
  key: "0"
1830
1836
  } : D(l).item ? {
1831
1837
  name: "item",
1832
- fn: F((J) => [
1833
- z(t.$slots, "item", Te({
1838
+ fn: U((J) => [
1839
+ z(t.$slots, "item", Ee({
1834
1840
  [t.slotItemVar || ""]: J.item,
1835
1841
  index: I
1836
1842
  }))
1837
1843
  ]),
1838
1844
  key: "1"
1839
1845
  } : void 0,
1840
- ie(oe.value, (J) => ({
1846
+ re(ie.value, (J) => ({
1841
1847
  name: J,
1842
- fn: F(($e) => [
1843
- z(t.$slots, J, Te({
1844
- [t.slotItemVar || ""]: $e.item,
1845
- value: $e.value,
1846
- column: $e.column
1848
+ fn: U((Le) => [
1849
+ z(t.$slots, J, Ee({
1850
+ [t.slotItemVar || ""]: Le.item,
1851
+ value: Le.value,
1852
+ column: Le.column
1847
1853
  }))
1848
1854
  ])
1849
1855
  }))
1850
1856
  ]), 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", "edit-mode-enabled", "has-inline-edit-perm", "row-display-type", "render-drag", "disabled-drag"])), [
1851
- [ut, Rt(r.value[I])]
1857
+ [ut, _t(r.value[I])]
1852
1858
  ])), 128)),
1853
- je.value.length > 0 ? (d(!0), k(q, { key: 0 }, ie(r.value, (_, I) => (d(), $(Cl, {
1859
+ je.value.length > 0 ? (d(!0), k(q, { key: 0 }, re(r.value, (M, I) => (d(), $(Cl, {
1854
1860
  modelValue: r.value[I],
1855
1861
  "onUpdate:modelValue": (J) => r.value[I] = J,
1856
- key: Mt(_, I, !0),
1862
+ key: Rt(M, I, !0),
1857
1863
  i: I,
1858
1864
  "hidden-columns": je.value,
1859
1865
  "hidden-columns-col-span": dt.value,
1860
- "is-draggable": y(_),
1866
+ "is-draggable": y(M),
1861
1867
  sortable: Ge.value,
1862
1868
  "visible-columns": se.value,
1863
- "empty-columns": Ne.value,
1869
+ "empty-columns": Me.value,
1864
1870
  "hidden-is-visible": mt(I),
1865
1871
  "edit-mode-enabled": h.value,
1866
1872
  "has-inline-edit-perm": ke.value,
1867
1873
  onClick: gt,
1868
1874
  onShow: Je
1869
1875
  }, Yt({ _: 2 }, [
1870
- ie(oe.value, (J) => ({
1876
+ re(ie.value, (J) => ({
1871
1877
  name: J,
1872
- fn: F(($e) => [
1873
- z(t.$slots, J, Te({
1874
- [t.slotItemVar || ""]: $e.item,
1875
- value: $e.value,
1876
- column: $e.column
1878
+ fn: U((Le) => [
1879
+ z(t.$slots, J, Ee({
1880
+ [t.slotItemVar || ""]: Le.item,
1881
+ value: Le.value,
1882
+ column: Le.column
1877
1883
  }))
1878
1884
  ])
1879
1885
  }))
1880
1886
  ]), 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)) : T("", !0)
1881
- ], 8, Fl)
1887
+ ], 10, Fl)
1882
1888
  ])) : t.type === D(et).Item ? (d(), k("div", {
1883
1889
  key: 1,
1884
1890
  ref_key: "tableBody",
1885
1891
  ref: c,
1886
1892
  id: "lkt-table-body-" + D(ue),
1887
- class: re(["lkt-table-items-container", t.itemsContainerClass])
1893
+ class: ne(["lkt-table-items-container", t.itemsContainerClass])
1888
1894
  }, [
1889
- (d(!0), k(q, null, ie(r.value, (_, I) => (d(), k(q, null, [
1890
- Rt(_) ? (d(), k("div", {
1895
+ (d(!0), k(q, null, re(r.value, (M, I) => (d(), k(q, null, [
1896
+ _t(M) ? (d(), k("div", {
1891
1897
  class: "lkt-table-item",
1892
1898
  "data-i": I,
1893
- key: Mt(_, I)
1899
+ key: Rt(M, I)
1894
1900
  }, [
1895
- z(t.$slots, "item", Te({
1896
- [t.slotItemVar || ""]: _,
1901
+ z(t.$slots, "item", Ee({
1902
+ [t.slotItemVar || ""]: M,
1897
1903
  index: I,
1898
1904
  editing: h.value,
1899
1905
  canCreate: he.value,
@@ -1907,17 +1913,17 @@ const ol = /* @__PURE__ */ ae({
1907
1913
  ], 64))), 256))
1908
1914
  ], 10, Ul)) : ya.value ? (d(), $(De(t.type), {
1909
1915
  key: 2,
1910
- class: re(["lkt-table-items-container", t.itemsContainerClass])
1916
+ class: ne(["lkt-table-items-container", t.itemsContainerClass])
1911
1917
  }, {
1912
- default: F(() => [
1913
- (d(!0), k(q, null, ie(r.value, (_, I) => (d(), k(q, null, [
1914
- Rt(_) ? (d(), k("li", {
1918
+ default: U(() => [
1919
+ (d(!0), k(q, null, re(r.value, (M, I) => (d(), k(q, null, [
1920
+ _t(M) ? (d(), k("li", {
1915
1921
  key: 0,
1916
1922
  class: "lkt-table-item",
1917
1923
  "data-i": I
1918
1924
  }, [
1919
- z(t.$slots, "item", Te({
1920
- [t.slotItemVar || ""]: _,
1925
+ z(t.$slots, "item", Ee({
1926
+ [t.slotItemVar || ""]: M,
1921
1927
  index: I,
1922
1928
  editing: h.value,
1923
1929
  canCreate: he.value,
@@ -1936,38 +1942,38 @@ const ol = /* @__PURE__ */ ae({
1936
1942
  ref_key: "tableBody",
1937
1943
  ref: c,
1938
1944
  id: "lkt-table-body-" + D(ue),
1939
- class: re(["lkt-table-items-container", t.itemsContainerClass])
1945
+ class: ne(["lkt-table-items-container", t.itemsContainerClass])
1940
1946
  }, [
1941
1947
  Be(D(Ya), fe({
1942
1948
  modelValue: Q.value,
1943
- "onUpdate:modelValue": m[1] || (m[1] = (_) => Q.value = _)
1949
+ "onUpdate:modelValue": m[1] || (m[1] = (M) => Q.value = M)
1944
1950
  }, t.carousel, {
1945
1951
  "wrap-around": ((it = t.carousel) == null ? void 0 : it.infinite) === !0
1946
1952
  }), {
1947
- addons: F(() => [
1953
+ addons: U(() => [
1948
1954
  Be(D(Ja)),
1949
1955
  Be(D(Qa))
1950
1956
  ]),
1951
- default: F(() => [
1952
- (d(!0), k(q, null, ie(qe.value, (_, I) => (d(), $(D(ea), {
1953
- key: _,
1957
+ default: U(() => [
1958
+ (d(!0), k(q, null, re(qe.value, (M, I) => (d(), $(D(ea), {
1959
+ key: M,
1954
1960
  index: I
1955
1961
  }, {
1956
- default: F(() => [
1962
+ default: U(() => [
1957
1963
  X("div", ql, [
1958
- z(t.$slots, _)
1964
+ z(t.$slots, M)
1959
1965
  ])
1960
1966
  ]),
1961
1967
  _: 2
1962
1968
  }, 1032, ["index"]))), 128)),
1963
- (d(!0), k(q, null, ie(r.value, (_, I) => (d(), $(D(ea), {
1969
+ (d(!0), k(q, null, re(r.value, (M, I) => (d(), $(D(ea), {
1964
1970
  key: t.slide,
1965
1971
  index: I
1966
1972
  }, {
1967
- default: F(() => [
1973
+ default: U(() => [
1968
1974
  X("div", xl, [
1969
- z(t.$slots, "item", Te({
1970
- [t.slotItemVar || ""]: _,
1975
+ z(t.$slots, "item", Ee({
1976
+ [t.slotItemVar || ""]: M,
1971
1977
  index: I,
1972
1978
  editing: h.value,
1973
1979
  canCreate: he.value,
@@ -1993,7 +1999,7 @@ const ol = /* @__PURE__ */ ae({
1993
1999
  key: 1,
1994
2000
  message: t.noResultsText
1995
2001
  }, null, 8, ["message"])) : t.noResultsText ? (d(), k(q, { key: 2 }, [
1996
- Ee(Pe(t.noResultsText), 1)
2002
+ Ae(Pe(t.noResultsText), 1)
1997
2003
  ], 64)) : T("", !0)
1998
2004
  ])) : T("", !0),
1999
2005
  V.value ? (d(), $(te, { key: 4 })) : T("", !0),
@@ -2013,10 +2019,10 @@ const ol = /* @__PURE__ */ ae({
2013
2019
  ref: x
2014
2020
  }, t.paginator, {
2015
2021
  modelValue: A.value,
2016
- "onUpdate:modelValue": m[2] || (m[2] = (_) => A.value = _),
2022
+ "onUpdate:modelValue": m[2] || (m[2] = (M) => A.value = M),
2017
2023
  onLoading: It,
2018
2024
  onPerms: Dt,
2019
- onResponse: Ve
2025
+ onResponse: Ne
2020
2026
  }), null, 16, ["modelValue"])) : T("", !0)
2021
2027
  ];
2022
2028
  }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lkt-table",
3
- "version": "2.0.12",
3
+ "version": "2.0.13",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "lkt",
@@ -454,7 +454,9 @@ watch(() => props.perms, (v) => permissions.value = v);
454
454
  watch(permissions, (v) => emit('update:perms', v));
455
455
  watch(() => props.editMode, (v) => editModeEnabled.value = v);
456
456
  watch(() => props.columns, (v) => Columns.value = v, {deep: true});
457
- watch(() => props.modelValue, (v) => Items.value = v, {deep: true});
457
+ watch(() => props.modelValue, (v) => {
458
+ Items.value = v;
459
+ }, {deep: true});
458
460
  watch(Items, (v: any) => {
459
461
  dataState.value.increment({items: v});
460
462
  dataStateChanged.value = dataState.value.changed();
@@ -466,6 +468,10 @@ defineExpose({
466
468
  getItemByIndex,
467
469
  getRowByIndex,
468
470
  doRefresh,
471
+ doRemoveIndex: (index: number) => {
472
+ Items.value.splice(index, 1);
473
+ updateTimeStamp.value = time();
474
+ },
469
475
  getHtml: () => element.value,
470
476
  turnStoredIntoOriginal: () => {
471
477
  dataState.value.turnStoredIntoOriginal();
@@ -599,6 +605,7 @@ const hasEmptySlot = computed(() => {
599
605
  <tbody
600
606
  ref="tableBody"
601
607
  :id="'lkt-table-body-' + uniqueId"
608
+ :class="itemsContainerClass"
602
609
  >
603
610
  <lkt-table-row
604
611
  v-for="(item, i) in Items"