lkt-table 2.0.44 → 2.0.46

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