lkt-table 2.0.50 → 2.0.51

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