lkt-table 2.0.44 → 2.0.45

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 _, watchEffect as Ht, onMounted as xt, onBeforeUnmount as _a, reactive as qt, provide as va, h as Y, useId as Ua, inject as Ct, getCurrentInstance as ja, onUnmounted as za, onUpdated as Ga, cloneVNode as Ha, 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 G, useSlots as fa, normalizeClass as Z, createCommentVNode as R, createElementVNode as ye, createVNode as ge, resolveDynamicComponent as be, guardReactiveProps as pa, renderSlot as F, renderList as De, mergeDefaults as qa, nextTick as Lt, withDirectives as Ye, vShow as We, createSlots as Ka } from "vue";
2
+ import { __ as Xa } from "lkt-i18n";
3
+ import { ColumnType as Oe, FieldType as Ze, MultipleOptionsDisplay as Ya, SortDirection as at, Column as ma, extractPropValue as Wa, TableRowType as Te, extractI18nValue as ga, LktSettings as Me, ensureButtonConfig as Je, TablePermission as Re, PaginatorType as Qe, TableType as Le, getDefaultValues as Ja, Table as Qa, ButtonType as Kt } from "lkt-vue-kernel";
4
+ import { Column as wl, createColumn as Dl } from "lkt-vue-kernel";
5
+ import { generateRandomString as Za, replaceAll as xa } from "lkt-string-tools";
6
+ import { DataState as en } from "lkt-data-state";
7
+ import tn from "sortablejs";
8
+ import { date as an, findOldestAndNewestDateInObjects as nn, time as ln } 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 ya = ["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
+ }, ba = [
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
+ ], on = {
29
29
  ariaGallery: "Gallery",
30
30
  ariaNavigateToPage: "Navigate to page {slideNumber}",
31
31
  ariaNavigateToSlide: "Navigate to slide {slideNumber}",
@@ -36,21 +36,21 @@ 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
+ }, ha = ["slide", "fade"], ka = [
40
40
  "center",
41
41
  "start",
42
42
  "end",
43
43
  "center-even",
44
44
  "center-odd"
45
- ], G = {
45
+ ], j = {
46
46
  autoplay: 0,
47
- breakpointMode: ma[0],
47
+ breakpointMode: ya[0],
48
48
  breakpoints: void 0,
49
- dir: ga[0],
49
+ dir: ba[0],
50
50
  enabled: !0,
51
51
  gap: 0,
52
52
  height: "auto",
53
- i18n: tn,
53
+ i18n: on,
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: ha[0],
62
+ snapAlign: ka[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"), rn = (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,10 +90,10 @@ const ma = ["viewport", "carousel"], Vt = {
90
90
  }
91
91
  };
92
92
  };
93
- function nn(a) {
93
+ function un(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 ia({ 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;
@@ -105,44 +105,44 @@ function la({ slides: a, position: i, toShow: o }) {
105
105
  id: void 0,
106
106
  // Make sure we don't duplicate the id which would be invalid html
107
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);
108
+ }, v = a[(k % a.length + a.length) % a.length].vnode, T = Ha(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 sn = 'a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"])';
114
+ function ra(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(sn);
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 dn(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 cn(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 vn(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 fn(a) {
139
139
  let i = 1, o = 1;
140
140
  return a.forEach((l) => {
141
- const n = un(l);
141
+ const n = vn(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 pn(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 mn(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 ? pn(o, l) : a !== void 0 && i !== void 0 ? mn(o, a, i) : 0;
177
177
  }
178
- function ha(a = "", i = {}) {
178
+ function Sa(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 Ca({ 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
  }
@@ -199,54 +199,54 @@ function Xt(a, i = 0) {
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 gn = 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
+ }, Sa(a.config.i18n.itemXofY, {
215
215
  currentSlide: a.currentSlide + 1,
216
216
  slidesCount: a.slidesCount
217
217
  })) : () => "";
218
218
  }
219
- }), fn = {
219
+ }), yn = {
220
220
  // time to auto advance slides in ms
221
221
  autoplay: {
222
- default: G.autoplay,
222
+ default: j.autoplay,
223
223
  type: Number
224
224
  },
225
225
  // an object to store breakpoints
226
226
  breakpoints: {
227
- default: G.breakpoints,
227
+ default: j.breakpoints,
228
228
  type: Object
229
229
  },
230
230
  // controls the breakpoint mode relative to the carousel container or the viewport
231
231
  breakpointMode: {
232
- default: G.breakpointMode,
232
+ default: j.breakpointMode,
233
233
  validator(a) {
234
- return ma.includes(a);
234
+ return ya.includes(a);
235
235
  }
236
236
  },
237
237
  // enable/disable the carousel component
238
238
  enabled: {
239
- default: G.enabled,
239
+ default: j.enabled,
240
240
  type: Boolean
241
241
  },
242
242
  // control the gap between slides
243
243
  gap: {
244
- default: G.gap,
244
+ default: j.gap,
245
245
  type: Number
246
246
  },
247
247
  // control the gap between slides
248
248
  height: {
249
- default: G.height,
249
+ default: j.height,
250
250
  type: [Number, String]
251
251
  },
252
252
  ignoreAnimations: {
@@ -255,17 +255,17 @@ const vn = he({
255
255
  },
256
256
  // count of items to be scrolled
257
257
  itemsToScroll: {
258
- default: G.itemsToScroll,
258
+ default: j.itemsToScroll,
259
259
  type: Number
260
260
  },
261
261
  // count of items to showed per view
262
262
  itemsToShow: {
263
- default: G.itemsToShow,
263
+ default: j.itemsToShow,
264
264
  type: [Number, String]
265
265
  },
266
266
  // aria-labels and additional text labels
267
267
  i18n: {
268
- default: G.i18n,
268
+ default: j.i18n,
269
269
  type: Object
270
270
  },
271
271
  // slide number number of initial slide
@@ -275,16 +275,16 @@ const vn = he({
275
275
  },
276
276
  // toggle mouse dragging.
277
277
  mouseDrag: {
278
- default: G.mouseDrag,
278
+ default: j.mouseDrag,
279
279
  type: Boolean
280
280
  },
281
281
  // toggle mouse dragging.
282
282
  touchDrag: {
283
- default: G.touchDrag,
283
+ default: j.touchDrag,
284
284
  type: Boolean
285
285
  },
286
286
  pauseAutoplayOnHover: {
287
- default: G.pauseAutoplayOnHover,
287
+ default: j.pauseAutoplayOnHover,
288
288
  type: Boolean
289
289
  },
290
290
  preventExcessiveDragging: {
@@ -296,42 +296,42 @@ const vn = he({
296
296
  },
297
297
  // control snap position alignment
298
298
  snapAlign: {
299
- default: G.snapAlign,
299
+ default: j.snapAlign,
300
300
  validator(a) {
301
- return ba.includes(a);
301
+ return ka.includes(a);
302
302
  }
303
303
  },
304
304
  slideEffect: {
305
305
  type: String,
306
- default: G.slideEffect,
306
+ default: j.slideEffect,
307
307
  validator(a) {
308
- return ya.includes(a);
308
+ return ha.includes(a);
309
309
  }
310
310
  },
311
311
  // sliding transition time in ms
312
312
  transition: {
313
- default: G.transition,
313
+ default: j.transition,
314
314
  type: Number
315
315
  },
316
316
  // control the gap between slides
317
317
  dir: {
318
318
  type: String,
319
- default: G.dir,
319
+ default: j.dir,
320
320
  validator(a, i) {
321
- if (!ga.includes(a))
321
+ if (!ba.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
  },
327
327
  // control infinite scrolling mode
328
328
  wrapAround: {
329
- default: G.wrapAround,
329
+ default: j.wrapAround,
330
330
  type: Boolean
331
331
  }
332
- }, pn = he({
332
+ }, bn = Se({
333
333
  name: "VueCarousel",
334
- props: fn,
334
+ props: yn,
335
335
  emits: [
336
336
  "before-init",
337
337
  "drag",
@@ -345,173 +345,173 @@ 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);
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;
352
- const ue = r(() => v.value + f.gap), j = r(() => {
348
+ const t = rn(o), y = t.getSlides(), k = r(() => y.length), D = B(null), s = B(null), v = B(0), T = r(() => Object.assign(Object.assign(Object.assign({}, j), dn(a, ["breakpoints", "modelValue"])), { i18n: Object.assign(Object.assign({}, j.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
+ _(g, (d) => V.value = d);
350
+ const A = B(0), lt = r(() => Math.ceil((k.value - 1) / 2)), ie = r(() => k.value - 1), re = r(() => 0);
351
+ let te = null, c = null, I = null;
352
+ const ue = r(() => v.value + f.gap), U = 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(U.value)), se = r(() => ["ttb", "btt"].includes(U.value)), de = r(() => f.itemsToShow === "auto"), H = 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 h = (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, q) => +q - +L), E = {};
361
+ w.some((L) => h >= 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: h }) {
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
372
  height: L.height * h
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: h }) {
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 * h
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 = fn(Ie);
392
+ if ($t(d), Ot(d), de.value)
393
+ v.value = un(W.value.map((h) => h[H.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 h = Number(f.itemsToShow), w = (h - 1) * f.gap;
396
+ v.value = (oe.value[H.value] - w) / h;
397
397
  }
398
398
  }
399
- function Ue() {
400
- !f.wrapAround && k.value > 0 && (g.value = Re({
399
+ function ot() {
400
+ !f.wrapAround && k.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
406
  max: k.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) => {
414
+ let ee;
415
+ const vt = (d) => {
416
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();
417
+ if (!(!(h != null && h.contains(D.value)) || Array.isArray(ct.value) && ct.value.includes(d.animationName)) && (Ie.add(h), !ee)) {
418
+ const w = () => {
419
+ ee = requestAnimationFrame(() => {
420
+ Ce(), w();
421
421
  });
422
422
  };
423
- C();
423
+ w();
424
424
  }
425
- }, ht = (d) => {
425
+ }, Fe = (d) => {
426
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));
427
+ h && Ie.delete(h), 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
+ }), _a(() => {
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) {
458
+ function ut(d) {
459
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)))
460
+ if (["INPUT", "TEXTAREA", "SELECT"].includes(h) || 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 h = "touches" in d ? d.touches[0].clientX : d.clientX, w = "touches" in d ? d.touches[0].clientY : d.clientY;
469
+ ce.x = h - rt.x, ce.y = w - rt.y;
470
+ const E = cn({
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", h = Be ? "touchend" : "mouseup";
491
+ document.removeEventListener(d, st), document.removeEventListener(h, 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, h = !1) {
506
+ if (!h && 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 = Ca({
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", {
@@ -519,256 +519,256 @@ const vn = he({
519
519
  currentSlideIndex: g.value,
520
520
  prevSlideIndex: A.value,
521
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", {
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
529
  slidesCount: k.value
530
- }), ke.value = !1, rt();
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
+ _(() => [T.value, a.breakpoints], () => $e(), { deep: !0 }), _(() => a.autoplay, () => mt());
543
+ const Dt = _(() => 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), h = Math.ceil(d + (f.itemsToScroll - 1)), w = h - V.value, E = h - (k.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, h) => d + h[H.value] + f.gap, 0) * -1 : Ee.value.before * ue.value * -1 : 0), Ae = r(() => {
558
558
  var d;
559
- if (_.value) {
559
+ if (de.value) {
560
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],
561
+ return Jt({
562
+ slideSize: (d = W.value[h]) === null || d === void 0 ? void 0 : d[H.value],
563
+ viewportSize: oe.value[H.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((h, w) => h + w[H.value] + f.gap, 0) * -1 : d = W.value.slice(0, g.value).reduce((h, w) => h + w[H.value] + f.gap, 0), d -= Ae.value, !f.wrapAround) {
575
+ const h = W.value.reduce((w, E) => w + E[H.value] + f.gap, 0) - oe.value[H.value] - f.gap;
576
+ d = Ne({
577
577
  val: d,
578
578
  max: h,
579
579
  min: 0
580
580
  });
581
581
  }
582
582
  } else {
583
- let h = g.value - st.value;
584
- f.wrapAround || (h = Re({
583
+ let h = g.value - Ae.value;
584
+ f.wrapAround || (h = Ne({
585
585
  val: h,
586
586
  max: k.value - +f.itemsToShow,
587
587
  min: 0
588
588
  })), d = h * ue.value;
589
589
  }
590
- return d * (le.value ? 1 : -1);
591
- }), Se = r(() => {
590
+ return d * (ne.value ? 1 : -1);
591
+ }), Tt = r(() => {
592
592
  var d, h;
593
- if (!_.value) {
594
- const L = g.value - st.value;
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
601
  max: k.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
606
  max: k.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, q = 0 - Ee.value.before;
614
+ const J = Math.abs(ze.value + gt.value);
615
+ for (; L <= J; ) {
616
+ const Q = (q % y.length + y.length) % y.length;
617
+ L += ((d = W.value[Q]) === null || d === void 0 ? void 0 : d[H.value]) + f.gap, q++;
618
618
  }
619
- C = W - 1;
619
+ w = q - 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, q = 0;
624
+ for (L < 0 ? q = W.value.slice(0, L).reduce((J, Q) => J + Q[H.value] + f.gap, 0) - Math.abs(ze.value + gt.value) : q = W.value.slice(0, L).reduce((J, Q) => J + Q[H.value] + f.gap, 0) - Math.abs(ze.value); q < oe.value[H.value]; ) {
625
+ const J = (L % y.length + y.length) % y.length;
626
+ q += ((h = W.value[J]) === null || h === void 0 ? void 0 : h[H.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", h = se.value ? ce.y : ce.x;
638
+ let w = ze.value + h;
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[H.value], 0) : E = (k.value - Number(f.itemsToShow)) * ue.value;
642
+ const L = ne.value ? 0 : -1 * E, q = ne.value ? E : 0;
643
+ w = Ne({
644
+ val: w,
645
645
  min: L,
646
- max: W
646
+ max: q
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,
664
- normalizedDir: j,
663
+ nav: pe,
664
+ normalizedDir: U,
665
665
  slideRegistry: t,
666
666
  slideSize: v,
667
667
  slides: y,
668
668
  slidesCount: k,
669
669
  viewport: s,
670
- visibleRange: Se
670
+ visibleRange: Tt
671
671
  });
672
- da(xe, _t);
673
- const ft = Ht({
672
+ va(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
680
  slidesCount: k
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 h = i.default || i.slides, w = (h == null ? void 0 : h(yt)) || [], { before: E, after: L } = Ee.value, q = ia({
695
695
  slides: y,
696
696
  position: "before",
697
- toShow: B
698
- }), ne = la({
697
+ toShow: E
698
+ }), J = ia({
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 = [...q, ...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",
718
- `is-${j.value}`,
718
+ `is-${U.value}`,
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
- dir: j.value,
728
- style: Pt.value,
727
+ dir: U.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(gn)]);
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 ua = (a) => `icon${a.charAt(0).toUpperCase() + a.slice(1)}`, hn = {
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 kn(a) {
750
+ return a in Qt;
751
751
  }
752
- const ra = (a) => a && gn(a), ua = he({
752
+ const sa = (a) => a && kn(a), da = Se({
753
753
  props: {
754
754
  name: {
755
755
  type: String,
756
756
  required: !0,
757
- validator: ra
757
+ validator: sa
758
758
  },
759
759
  title: {
760
760
  type: String,
761
- default: (a) => a.name ? G.i18n[ia(a.name)] : ""
761
+ default: (a) => a.name ? j.i18n[ua(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 || !sa(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 = hn[o], n = Y("path", { d: l }), t = (i == null ? void 0 : i.config.i18n[ua(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
+ }), Sn = 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 = () => ({
@@ -795,19 +795,19 @@ const ra = (a) => a && gn(a), ua = he({
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(da, { 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(da, { name: k() }));
807
+ return [T, f];
808
808
  };
809
809
  }
810
- }), bn = he({
810
+ }), Cn = 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)), k = (D) => Ca(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 = Sa(i.config.i18n[n.value ? "ariaNavigateToPage" : "ariaNavigateToSlide"], {
841
+ slideNumber: T + 1
842
+ }), g = k(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
+ }), ca = 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 : Ua()
866
866
  },
867
867
  index: {
868
868
  type: Number,
@@ -878,12 +878,12 @@ 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 (va(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 = () => {
886
+ }, k = ja(), D = () => {
887
887
  const V = k.vnode.el;
888
888
  return V ? V.getBoundingClientRect() : { width: 0, height: 0 };
889
889
  };
@@ -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(() => {
901
+ return n.slideRegistry.registerSlide(k, a.index), za(() => {
902
902
  n.slideRegistry.unregisterSlide(k);
903
- }), a.isClone && (Zt(() => {
904
- oa(k.vnode);
905
- }), Ua(() => {
906
- oa(k.vnode);
903
+ }), a.isClone && (xt(() => {
904
+ ra(k.vnode);
905
+ }), Ga(() => {
906
+ ra(k.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) => {
936
+ }), wn = (a, i, o, l) => {
937
937
  var y, k, 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((k = o.field) == null ? void 0 : k.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) === Ya.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("__:") ? Xa(t.substring(3)) : t;
958
958
  }
959
959
  return n;
960
- }, kn = (a, i, o) => {
960
+ }, Dn = (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, wa = (a, i) => typeof a.preferSlot > "u" ? !0 : a.preferSlot === !1 ? !1 : typeof a.preferSlot == "function" ? a.preferSlot(i) : !0, Tn = (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
+ }, In = (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
+ }, Bn = (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
+ }, Da = (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 ma() },
991
991
  columns: { default: () => [] },
992
992
  i: { default: 0 },
993
993
  editModeEnabled: { type: Boolean, default: !1 },
@@ -999,17 +999,17 @@ 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);
1003
- U(() => l.modelValue, (v) => {
1002
+ const o = i, l = a, n = B(l.modelValue);
1003
+ _(() => l.modelValue, (v) => {
1004
1004
  n.value = v;
1005
- }), U(n, (v) => {
1005
+ }), _(n, (v) => {
1006
1006
  o("update:modelValue", v);
1007
1007
  });
1008
1008
  const t = () => {
1009
1009
  o("inline-drop");
1010
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")
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,29 +1017,29 @@ 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:") ? Wa(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,
@@ -1047,41 +1047,41 @@ const ra = (a) => a && gn(a), ua = he({
1047
1047
  label: s.value,
1048
1048
  modalData: k.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
1064
  modalData: k.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(G, { 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 En = ["data-i", "data-draggable"], An = ["data-role", "data-i"], Vn = {
1076
1076
  key: 1,
1077
1077
  class: "lkt-table-nav-cell"
1078
- }, Bn = { class: "lkt-table-nav-container" }, En = {
1078
+ }, Rn = { class: "lkt-table-nav-container" }, Ln = {
1079
1079
  key: 1,
1080
1080
  class: "lkt-icn-arrow-top"
1081
- }, An = {
1081
+ }, Nn = {
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
+ }, Mn = ["colspan"], On = ["colspan"], $n = ["colspan"], Fn = ["data-column", "colspan", "title"], Pn = /* @__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,76 +1116,76 @@ 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 = fa(), 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 k = [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);
1129
1129
  }, A = () => {
1130
1130
  l("item-drop", n.i);
1131
1131
  };
1132
- U(() => n.modelValue, (c) => t.value = c), U(t, (c) => {
1132
+ _(() => n.modelValue, (c) => t.value = c), _(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
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(" ");
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, An)) : R("", !0),
1154
+ c.addNavigation && c.editModeEnabled ? (p(), C("td", Vn, [
1155
+ ye("div", Rn, [
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", Ln))
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", Nn))
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(pa({
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, Mn)) : b(k) && 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, On)) : 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,38 +1223,38 @@ 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, $n)) : (p(!0), C(G, { key: 5 }, De(c.visibleColumns, (U) => (p(), C(G, null, [
1227
+ b(Tn)(U, c.emptyColumns, t.value) ? (p(), C("td", {
1228
1228
  key: "td" + c.i,
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))
1229
+ "data-column": U.key,
1230
+ colspan: b(ea)(U, t.value),
1231
+ title: b(xe)(U, t.value, c.i, c.visibleColumns),
1232
+ class: Z(b(Da)(U)),
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[U.key] && b(wa)(U, t.value) ? F(c.$slots, U.key, {
1236
1236
  key: 0,
1237
- value: t.value[j.key],
1237
+ value: t.value[U.key],
1238
1238
  item: t.value,
1239
- column: j,
1239
+ column: U,
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),
1245
- column: j,
1244
+ "onUpdate:modelValue": I[0] || (I[0] = (ne) => t.value = ne),
1245
+ column: U,
1246
1246
  columns: c.visibleColumns,
1247
1247
  "edit-mode-enabled": c.editModeEnabled,
1248
1248
  "has-inline-edit-perm": c.hasInlineEditPerm,
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, Fn)) : R("", !0)
1253
1253
  ], 64))), 256))
1254
- ], 10, Dn);
1254
+ ], 10, En);
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,7 +1266,7 @@ 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);
@@ -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(k, {
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
+ }), _n = ["data-column", "data-sortable", "data-sort", "colspan", "title"], Un = /* @__PURE__ */ Se({
1299
1299
  __name: "TableHeader",
1300
1300
  props: {
1301
- column: { default: () => new fa() },
1301
+ column: { default: () => new ma() },
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(() => Dn(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(() => ga(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
1317
  title: k.value,
1318
- class: Z(b(Ca)(v.column)),
1318
+ class: Z(b(Da)(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(k.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, _n));
1329
1329
  }
1330
- }), Fn = ["id"], Pn = { class: "lkt-table-page-buttons" }, _n = { class: "switch-edition-mode" }, Un = { class: "switch-edition-mode" }, jn = {
1330
+ }), jn = ["id"], zn = { class: "lkt-table-page-buttons" }, Gn = { class: "switch-edition-mode" }, Hn = { class: "switch-edition-mode" }, qn = {
1331
1331
  key: 0,
1332
1332
  class: "lkt-table-page-buttons"
1333
- }, zn = {
1333
+ }, Kn = {
1334
1334
  key: 1,
1335
1335
  class: "lkt-table-page-filters"
1336
- }, Gn = { class: "lkt-table" }, Hn = { key: 0 }, qn = { key: 0 }, Xn = {
1336
+ }, Xn = { class: "lkt-table" }, Yn = { key: 0 }, Wn = { key: 0 }, Jn = {
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
+ }, Qn = { key: 1 }, Zn = ["id"], xn = ["id"], el = ["data-i"], tl = ["id"], al = ["data-i"], nl = ["id"], ll = { class: "lkt-carousel-slide" }, ol = { class: "lkt-carousel-slide" }, il = ["id"], rl = {
1340
1340
  key: 2,
1341
1341
  class: "lkt-table-empty"
1342
- }, ll = {
1342
+ }, ul = {
1343
1343
  key: 4,
1344
1344
  class: "lkt-table-page-buttons lkt-table-page-buttons-bottom"
1345
- }, ol = /* @__PURE__ */ he({
1345
+ }, sl = /* @__PURE__ */ Se({
1346
1346
  __name: "LktTable",
1347
- props: /* @__PURE__ */ za({
1347
+ props: /* @__PURE__ */ qa({
1348
1348
  modelValue: {},
1349
1349
  type: {},
1350
1350
  columns: {},
@@ -1396,7 +1396,7 @@ const Dn = ["data-i", "data-draggable"], In = ["data-role", "data-i"], Tn = {
1396
1396
  switchableTypesButtons: {},
1397
1397
  useItemSlot: { type: [Boolean, Function] },
1398
1398
  events: {}
1399
- }, Ya(Ka)),
1399
+ }, Ja(Qa)),
1400
1400
  emits: [
1401
1401
  "update:modelValue",
1402
1402
  "update:perms",
@@ -1413,68 +1413,71 @@ const Dn = ["data-i", "data-draggable"], In = ["data-role", "data-i"], Tn = {
1413
1413
  "drag-end"
1414
1414
  ],
1415
1415
  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);
1420
- U(g, (e) => l("update:loading", e)), U(f, (e) => l("page", e));
1421
- const ae = (e) => {
1416
+ var na, la;
1417
+ const l = o, n = fa(), t = a, y = B(typeof t.sorter == "function" ? t.sorter : wn), k = B(In(t.columns)), D = B(at.Asc), s = B(t.modelValue), v = B(null), T = B(t.columns), f = B((na = t.paginator) == null ? void 0 : na.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 en({ items: s.value }, t.dataStateConfig)), I = B(t.editMode), ue = B(0), U = B(null), ne = B(t.type), se = B(((la = t.carousel) == null ? void 0 : la.currentSlide) || 0), de = B(void 0), H = 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));
1418
+ _(() => t.saveButton, (e) => x.value = Je(t.saveButton, Me.defaultSaveButton)), _(() => t.createButton, (e) => Ie.value = Je(t.createButton, Me.defaultCreateButton)), _(() => t.editModeButton, (e) => W.value = Je(t.editModeButton, Me.defaultEditModeButton));
1419
+ const oe = B(!1);
1420
+ _(g, (e) => l("update:loading", e)), _(f, (e) => l("page", e));
1421
+ const $t = (e) => {
1422
1422
  A.value = e;
1423
- }, Lt = (e) => {
1424
- var u;
1423
+ }, Ce = (e) => {
1424
+ var u, N;
1425
1425
  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];
1426
+ let $ = e.data;
1427
+ 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)) {
1428
+ const z = nn(s.value, t.paginator.dateKey);
1429
+ de.value = z.oldest, H.value = z.newest;
1430
+ }
1428
1431
  }
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);
1432
+ g.value = !1, V.value = !0, c.value.store({ items: s.value }).turnStoredIntoOriginal(), oe.value = !1, Lt(() => {
1433
+ He.value, l("read-response", e);
1431
1434
  });
1432
- }, _e = () => Bt(() => {
1435
+ }, ot = () => Lt(() => {
1433
1436
  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(() => {
1437
+ (!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;
1438
+ }), ct = () => {
1439
+ lt.value.doRefresh();
1440
+ }, ee = Za(12), vt = r(() => {
1438
1441
  if (!t.hideEmptyColumns) return [];
1439
1442
  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);
1443
+ return T.value.forEach((u) => {
1444
+ let N = u.key, $ = !1;
1445
+ s.value.forEach((z) => {
1446
+ if (typeof z.checkEmpty == "function")
1447
+ return z.checkEmpty(z);
1448
+ z[N] && ($ = !0);
1449
+ }), $ || e.push(N);
1447
1450
  }), 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(() => {
1451
+ }), 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
1452
  let e = [];
1450
- for (let u in n) bt.value.indexOf(u) !== -1 && e.push(u);
1453
+ for (let u in n) Be.value.indexOf(u) !== -1 && e.push(u);
1451
1454
  return e;
1452
- }), tt = r(() => {
1455
+ }), ce = r(() => {
1453
1456
  let e = [];
1454
1457
  for (let u in n) u.indexOf("slide-") !== -1 && e.push(u);
1455
1458
  return e;
1456
- }), ce = r(() => {
1459
+ }), Pe = r(() => {
1457
1460
  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(() => {
1461
+ return t.hiddenSave || g.value || !((e = x.value) != null && e.resource || x.value.type) ? !1 : I.value && oe.value ? !0 : I.value;
1462
+ }), ft = r(() => ht.value && s.value.length >= t.requiredItemsForTopCreate || Ee.value ? !0 : Pe.value || I.value && ve.value), He = r(() => {
1460
1463
  var e, u;
1461
- return ue.value, typeof ((e = _.value) == null ? void 0 : e.disabled) == "function" ? _.value.disabled({
1464
+ return ue.value, typeof ((e = x.value) == null ? void 0 : e.disabled) == "function" ? x.value.disabled({
1462
1465
  value: s.value,
1463
1466
  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(() => {
1467
+ }) : typeof ((u = x.value) == null ? void 0 : u.disabled) == "boolean" ? x.value.disabled : !oe.value;
1468
+ }), Ft = r(() => s.value.length), pt = r(() => {
1466
1469
  var e;
1467
1470
  return {
1468
1471
  items: s.value,
1469
- ...(e = _.value) == null ? void 0 : e.resourceData
1472
+ ...(e = x.value) == null ? void 0 : e.resourceData
1470
1473
  };
1471
- }), Nt = r(() => t.titleTag === "" ? "h2" : t.titleTag), Ot = r(() => t.wrapContentTag === "" ? "div" : t.wrapContentTag), ot = r(() => pa(t.title)), kt = r(() => {
1474
+ }), Pt = r(() => t.titleTag === "" ? "h2" : t.titleTag), wt = r(() => t.wrapContentTag === "" ? "div" : t.wrapContentTag), ut = r(() => ga(t.title)), st = r(() => {
1472
1475
  var e;
1473
1476
  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(() => {
1477
+ }), 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
1478
  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) => {
1479
+ 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;
1480
+ }), 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
1481
  let u = e.target;
1479
1482
  if (typeof u.dataset.column > "u")
1480
1483
  do
@@ -1482,34 +1485,34 @@ const Dn = ["data-i", "data-draggable"], In = ["data-role", "data-i"], Tn = {
1482
1485
  while (typeof u.dataset.column > "u" && u.tagName !== "TABLE" && u.tagName !== "body");
1483
1486
  if (u.tagName === "TD" && (u = u.parentNode, u = u.dataset.i, typeof u < "u"))
1484
1487
  return s.value[u];
1485
- }, Se = () => {
1486
- ue.value = en();
1487
- }, Ft = (e) => s.value[e], Pt = (e) => {
1488
+ }, pe = () => {
1489
+ ue.value = ln();
1490
+ }, Ut = (e) => s.value[e], yt = (e) => {
1488
1491
  var u;
1489
1492
  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", {
1493
+ }, d = (e) => {
1494
+ e && e.sortable && (e.key === k.value && (D.value = D.value === at.Asc ? at.Desc : at.Asc), k.value = e.key, s.value = s.value.sort((u, N) => y.value(u, N, e, D.value)), pe(), l("sort", {
1492
1495
  sortBy: k.value,
1493
1496
  sortDirection: D.value
1494
1497
  }));
1495
- }, _t = (e) => {
1498
+ }, h = (e) => {
1496
1499
  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 = () => {
1500
+ }, w = (e) => {
1501
+ var N, $, z, K, Xe, Ge, Ve, S;
1502
+ let u = parseInt((K = (z = ($ = (N = e == null ? void 0 : e.originalEvent) == null ? void 0 : N.toElement) == null ? void 0 : $.closest("tr")) == null ? void 0 : z.dataset) == null ? void 0 : K.i);
1503
+ 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" && !((S = t.drag) != null && S.isValid));
1504
+ }, E = (e) => {
1505
+ var u, N;
1506
+ return typeof ((u = t.drag) == null ? void 0 : u.isDraggable) == "function" ? (N = t.drag) == null ? void 0 : N.isDraggable(e) : !0;
1507
+ }, L = () => {
1505
1508
  if (ve.value) {
1506
1509
  l("click-create");
1507
1510
  return;
1508
1511
  }
1509
- if (rt.value || ke.value) {
1512
+ if (je.value || qe.value) {
1510
1513
  if (typeof t.newValueGenerator == "function") {
1511
1514
  let e = t.newValueGenerator();
1512
- if (typeof e == "object" || Ce.value !== Ve.Table) {
1515
+ if (typeof e == "object" || we.value !== Le.Table) {
1513
1516
  s.value.push(e);
1514
1517
  return;
1515
1518
  }
@@ -1517,537 +1520,537 @@ const Dn = ["data-i", "data-draggable"], In = ["data-role", "data-i"], Tn = {
1517
1520
  s.value.push({});
1518
1521
  } else
1519
1522
  l("click-create");
1520
- }, C = (e) => {
1523
+ }, q = (e) => {
1521
1524
  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)) {
1525
+ }, J = () => g.value = !0, Q = () => g.value = !1, Bt = (e, u) => {
1526
+ var N, $, z;
1527
+ if (!((N = x.value) != null && N.type && [
1528
+ Kt.Split,
1529
+ Kt.SplitEver,
1530
+ Kt.SplitLazy
1531
+ ].includes(($ = x.value) == null ? void 0 : $.type))) {
1532
+ if (l("before-save"), (z = x.value) != null && z.resource && (g.value = !1, !u.success)) {
1530
1533
  l("error", u.httpStatus);
1531
1534
  return;
1532
1535
  }
1533
- c.value.turnStoredIntoOriginal(), de.value = !1, l("save", u);
1536
+ c.value.turnStoredIntoOriginal(), oe.value = !1, l("save", u);
1534
1537
  }
1535
- }, ne = (e, u, M) => {
1536
- if (M >= e.length) {
1537
- let F = M - e.length + 1;
1538
- for (; F--; ) e.push(void 0);
1538
+ }, Et = (e, u, N) => {
1539
+ if (N >= e.length) {
1540
+ let $ = N - e.length + 1;
1541
+ for (; $--; ) e.push(void 0);
1539
1542
  }
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 = () => {
1543
+ return e.splice(N, 0, e.splice(u, 1)[0]), e;
1544
+ }, jt = (e) => {
1545
+ Et(s.value, e, e - 1), pe();
1546
+ }, Ta = (e) => {
1547
+ Et(s.value, e, e + 1), pe();
1548
+ }, bt = (e) => {
1549
+ s.value.splice(e, 1), pe();
1550
+ }, ta = () => {
1548
1551
  var e;
1549
1552
  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, {
1553
+ }, zt = () => {
1554
+ U.value || (U.value = document.getElementById("lkt-table-body-" + ee)), te.value = new tn(U.value, {
1552
1555
  direction: "vertical",
1553
1556
  handle: ".handle",
1554
1557
  animation: 150,
1555
1558
  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]);
1559
+ let u = e.oldIndex, N = e.newIndex;
1560
+ s.value.splice(N, 0, s.value.splice(u, 1)[0]), pe(), l("drag-end", s.value[N]);
1558
1561
  },
1559
1562
  onMove: function(e, u) {
1560
- return ft(e);
1563
+ return w(e);
1561
1564
  }
1562
1565
  });
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(() => {
1566
+ }, At = (e, u, N = !1) => {
1567
+ let $ = [ue.value, ee, "row", u];
1568
+ return N && $.push("hidden"), it.value.forEach((z) => {
1569
+ let K = String(e[z.key]).toLowerCase();
1570
+ K.length > 50 && (K = K.substring(0, 50)), K = xa(K, " ", "-"), $.push(K);
1571
+ }), $.join("-");
1572
+ }, 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), Ia = 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, Ba = (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);
1573
+ xt(() => {
1571
1574
  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();
1575
+ t.initialSorting && d(Bn(t.columns, k.value)), c.value.store({ items: s.value }).turnStoredIntoOriginal(), oe.value = !1, (e = t.drag) != null && e.enabled && Lt(() => {
1576
+ zt();
1574
1577
  });
1575
- }), U(() => {
1578
+ }), _(() => {
1576
1579
  var e;
1577
1580
  return (e = t.drag) == null ? void 0 : e.enabled;
1578
1581
  }, (e) => {
1579
- e ? jt() : wt();
1580
- }), U(() => t.type, (e) => {
1582
+ e ? zt() : ta();
1583
+ }), _(() => t.type, (e) => {
1581
1584
  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) => {
1585
+ (u = t.drag) != null && u.enabled ? zt() : ta();
1586
+ }), _(() => t.perms, (e) => A.value = e), _(A, (e) => l("update:perms", e)), _(I, (e) => {
1584
1587
  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) => {
1588
+ }), _(() => t.editMode, (e) => I.value = e), _(() => t.columns, (e) => T.value = e, { deep: !0 }), _(() => t.modelValue, (e) => {
1586
1589
  s.value = e;
1587
- }, { deep: !0 }), U(s, (e) => {
1588
- c.value.increment({ items: e }), de.value = c.value.changed(), l("update:modelValue", e);
1590
+ }, { deep: !0 }), _(s, (e) => {
1591
+ c.value.increment({ items: e }), oe.value = c.value.changed(), l("update:modelValue", e);
1589
1592
  }, { deep: !0 }), i({
1590
- getItemByEvent: dt,
1591
- getItemByIndex: Ft,
1592
- getRowByIndex: Pt,
1593
- doRefresh: Mt,
1593
+ getItemByEvent: _t,
1594
+ getItemByIndex: Ut,
1595
+ getRowByIndex: yt,
1596
+ doRefresh: ct,
1594
1597
  doRemoveIndex: (e) => {
1595
- s.value.splice(e, 1), Se();
1598
+ s.value.splice(e, 1), pe();
1596
1599
  },
1597
1600
  getHtml: () => ie.value,
1598
- reRender: Se,
1601
+ reRender: pe,
1599
1602
  turnStoredIntoOriginal: () => {
1600
- c.value.turnStoredIntoOriginal(), Bt(() => {
1601
- Se();
1603
+ c.value.turnStoredIntoOriginal(), Lt(() => {
1604
+ pe();
1602
1605
  });
1603
1606
  }
1604
1607
  });
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 : [
1608
+ const Ea = r(() => typeof ke.defaultEmptySlot < "u"), Aa = r(() => ke.defaultEmptySlot), Va = r(() => !t.drag || Object.keys(t.drag).length === 0 || !t.drag.enabled ? !1 : typeof t.drag.canRender > "u" ? !0 : t.drag.canRender), Ra = r(() => !t.drag || Object.keys(t.drag).length === 0 || !t.drag.enabled || typeof t.drag.isDisabled > "u" ? !1 : t.drag.isDisabled), La = 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), Na = r(() => Array.isArray(t.switchableTypes) ? t.switchableTypes.length > 0 ? t.switchableTypes.includes(t.type) ? t.switchableTypes : [
1606
1609
  t.type,
1607
1610
  ...t.switchableTypes
1608
- ] : [] : []), Ra = r(() => {
1611
+ ] : [] : []), Ma = r(() => {
1609
1612
  let e = [];
1610
- return Va.value.forEach((u) => {
1611
- let M = t.switchableTypesButtons[u];
1613
+ return Na.value.forEach((u) => {
1614
+ let N = t.switchableTypesButtons[u];
1612
1615
  e.push({
1613
- ...M,
1614
- class: [M.class, u === Ce.value ? "is-current" : ""].join(" "),
1616
+ ...N,
1617
+ class: [N.class, u === we.value ? "is-current" : ""].join(" "),
1615
1618
  events: {
1616
- click: (F) => {
1617
- le.value = u, typeof t.switchableTypesButtons[u] == "function" && t.switchableTypesButtons[u](F);
1619
+ click: ($) => {
1620
+ ne.value = u, typeof t.switchableTypesButtons[u] == "function" && t.switchableTypesButtons[u]($);
1618
1621
  }
1619
1622
  }
1620
1623
  });
1621
1624
  }), e;
1622
- }), La = r(() => {
1625
+ }), Oa = r(() => {
1623
1626
  var e, u;
1624
1627
  return {
1625
1628
  ...t.header,
1626
1629
  topEndButtons: [
1627
1630
  ...typeof ((e = t.header) == null ? void 0 : e.topEndButtons) > "u" ? [] : (u = t.header) == null ? void 0 : u.topEndButtons,
1628
- ...Ra.value
1631
+ ...Ma.value
1629
1632
  ]
1630
1633
  };
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 [];
1634
+ }), aa = (e, u) => typeof t.useItemSlot == "function" ? t.useItemSlot({ item: e, index: u }) === !0 : t.useItemSlot, $a = r(() => {
1635
+ if (we.value !== Le.Calendar || !ze.value || typeof ze.value > "u") return [];
1633
1636
  let e = [], u = [];
1634
- return s.value.forEach((M) => {
1637
+ return s.value.forEach((N) => {
1635
1638
  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
+ let $ = N[ze.value.key], z = an("Y-m-d H:i:s", $), K;
1640
+ (S = Tt.value) != null && S.key && (K = N[Tt.value.key]);
1641
+ let Xe = {};
1642
+ K && t.calendarGroups && typeof t.calendarGroups[K] == "object" && (Xe = t.calendarGroups[K]);
1643
+ const Ge = [z, K].join("-");
1644
+ let Ve = -1;
1645
+ u.includes(Ge) ? Ve = u.findIndex((m) => m === Ge) : (Ve = u.length, u.push(Ge), e.push({
1646
+ date: $,
1644
1647
  data: {
1645
1648
  items: []
1646
1649
  },
1647
1650
  dot: {
1648
- ...He,
1649
- class: `lkt-calendar-group--${X}`
1651
+ ...Xe,
1652
+ class: `lkt-calendar-group--${K}`
1650
1653
  }
1651
- })), e[Ee].data.items.push(M);
1654
+ })), e[Ve].data.items.push(N);
1652
1655
  }), e;
1653
- }), Na = {
1656
+ }), Fa = {
1654
1657
  dayPicked: (e) => {
1655
1658
  var u;
1656
1659
  typeof ((u = t.calendar.events) == null ? void 0 : u.dayPicked) == "function" && t.calendar.events.dayPicked(e);
1657
1660
  },
1658
1661
  visibleMonthChanged: (e) => {
1659
1662
  var u;
1660
- typeof ((u = t.calendar.events) == null ? void 0 : u.visibleMonthChanged) == "function" && t.calendar.events.visibleMonthChanged(e);
1663
+ typeof ((u = t.calendar.events) == null ? void 0 : u.visibleMonthChanged) == "function" && t.calendar.events.visibleMonthChanged(e), $e.value = e.visibleDate;
1661
1664
  }
1662
1665
  };
1663
1666
  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", {
1667
+ const N = he("lkt-header"), $ = he("lkt-button"), z = he("lkt-accordion"), K = he("lkt-calendar"), Xe = he("lkt-loader"), Ge = he("lkt-paginator");
1668
+ return p(), C("section", {
1666
1669
  ref_key: "element",
1667
1670
  ref: ie,
1668
1671
  class: "lkt-table-page",
1669
- id: "lkt-table-page-" + b(K)
1672
+ id: "lkt-table-page-" + b(ee)
1670
1673
  }, [
1671
- Aa.value ? (p(), O(M, fe(Y({ key: 0 }, La.value)), null, 16)) : ot.value || b(n).title ? (p(), w("header", {
1674
+ La.value ? (p(), O(N, me(X({ key: 0 }, Oa.value)), null, 16)) : ut.value || b(n).title ? (p(), C("header", {
1672
1675
  key: 1,
1673
1676
  class: Z(e.headerClass)
1674
1677
  }, [
1675
- ot.value ? (p(), O(ge(Nt.value), { key: 0 }, {
1678
+ ut.value ? (p(), O(be(Pt.value), { key: 0 }, {
1676
1679
  default: P(() => [
1677
- e.titleIcon ? (p(), w("i", {
1680
+ e.titleIcon ? (p(), C("i", {
1678
1681
  key: 0,
1679
1682
  class: Z(e.titleIcon)
1680
1683
  }, null, 2)) : R("", !0),
1681
- Je(" " + Qe(ot.value), 1)
1684
+ et(" " + tt(ut.value), 1)
1682
1685
  ]),
1683
1686
  _: 1
1684
1687
  })) : R("", !0),
1685
- b(n).title ? $(e.$slots, "title", { key: 1 }) : R("", !0)
1688
+ b(n).title ? F(e.$slots, "title", { key: 1 }) : R("", !0)
1686
1689
  ], 2)) : R("", !0),
1687
- (p(), O(ge(Ot.value), {
1690
+ (p(), O(be(wt.value), {
1688
1691
  class: Z(["lkt-table-page-content-wrapper", e.wrapContentClass])
1689
1692
  }, {
1690
1693
  default: P(() => {
1691
- var Ee;
1694
+ var Ve;
1692
1695
  return [
1693
- qe(me("div", Pn, [
1694
- e.groupButton !== !1 ? (p(), O(F, Y({
1696
+ Ye(ye("div", zn, [
1697
+ e.groupButton !== !1 ? (p(), O($, X({
1695
1698
  key: 0,
1696
1699
  ref: "groupButton"
1697
- }, Rt.value, { class: "lkt-item-crud-group-button" }), {
1700
+ }, Ot.value, { class: "lkt-item-crud-group-button" }), {
1698
1701
  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)
1702
+ ye("div", Gn, [
1703
+ Ye(ge($, X(W.value, {
1704
+ checked: I.value,
1705
+ "onUpdate:checked": u[0] || (u[0] = (S) => I.value = S)
1703
1706
  }), null, 16, ["checked"]), [
1704
- [Xe, $e.value]
1707
+ [We, Ee.value]
1705
1708
  ])
1706
1709
  ]),
1707
- b(n)["prev-buttons-ever"] ? $(e.$slots, "prev-buttons-ever", {
1710
+ b(n)["prev-buttons-ever"] ? F(e.$slots, "prev-buttons-ever", {
1708
1711
  key: 0,
1709
- canUpdate: ee.value,
1710
- canDrop: q.value,
1712
+ canUpdate: ae.value,
1713
+ canDrop: le.value,
1711
1714
  perms: e.perms
1712
1715
  }) : R("", !0),
1713
- b(n)["prev-buttons"] ? $(e.$slots, "prev-buttons", {
1716
+ b(n)["prev-buttons"] ? F(e.$slots, "prev-buttons", {
1714
1717
  key: 1,
1715
- canUpdate: ee.value,
1716
- canDrop: q.value,
1718
+ canUpdate: ae.value,
1719
+ canDrop: le.value,
1717
1720
  perms: e.perms
1718
1721
  }) : R("", !0),
1719
- qe(pe(F, Y({
1722
+ Ye(ge($, X({
1720
1723
  class: "lkt-table--save-button",
1721
1724
  ref_key: "saveButtonRef",
1722
1725
  ref: re
1723
1726
  }, {
1724
- ..._.value,
1725
- disabled: x.value,
1726
- resourceData: lt.value
1727
+ ...x.value,
1728
+ disabled: He.value,
1729
+ resourceData: pt.value
1727
1730
  }, {
1728
- onLoading: B,
1729
- onLoaded: L,
1730
- onClick: W
1731
+ onLoading: J,
1732
+ onLoaded: Q,
1733
+ onClick: Bt
1731
1734
  }), {
1732
1735
  split: P(({ doClose: S, doRootClick: m }) => [
1733
- $(e.$slots, "button-save-split", {
1736
+ F(e.$slots, "button-save-split", {
1734
1737
  doClose: S,
1735
1738
  doRootClick: m,
1736
1739
  dataState: c.value,
1737
- onButtonLoading: B,
1738
- onButtonLoaded: L
1740
+ onButtonLoading: J,
1741
+ onButtonLoaded: Q
1739
1742
  })
1740
1743
  ]),
1741
1744
  default: P(() => [
1742
- b(n)["button-save"] ? $(e.$slots, "button-save", {
1745
+ b(n)["button-save"] ? F(e.$slots, "button-save", {
1743
1746
  key: 0,
1744
1747
  items: s.value,
1745
1748
  editMode: e.editMode,
1746
- canUpdate: !x.value
1749
+ canUpdate: !He.value
1747
1750
  }) : R("", !0)
1748
1751
  ]),
1749
1752
  _: 3
1750
1753
  }, 16), [
1751
- [Xe, ce.value]
1754
+ [We, Pe.value]
1752
1755
  ]),
1753
- pt.value && s.value.length >= e.requiredItemsForTopCreate ? (p(), O(Yt, {
1756
+ ht.value && s.value.length >= e.requiredItemsForTopCreate ? (p(), O(Yt, {
1754
1757
  key: 2,
1755
- config: z.value,
1756
- disabled: !zt.value,
1757
- onClick: h,
1758
- onAppend: C
1758
+ config: Ie.value,
1759
+ disabled: !Gt.value,
1760
+ onClick: L,
1761
+ onAppend: q
1759
1762
  }, null, 8, ["config", "disabled"])) : R("", !0)
1760
1763
  ]),
1761
1764
  _: 3
1762
1765
  }, 16)) : R("", !0),
1763
- b(n)["prev-buttons-ever"] ? $(e.$slots, "prev-buttons-ever", {
1766
+ b(n)["prev-buttons-ever"] ? F(e.$slots, "prev-buttons-ever", {
1764
1767
  key: 1,
1765
- canUpdate: ee.value,
1766
- canDrop: q.value,
1768
+ canUpdate: ae.value,
1769
+ canDrop: le.value,
1767
1770
  perms: e.perms
1768
1771
  }) : R("", !0),
1769
- b(n)["prev-buttons"] ? $(e.$slots, "prev-buttons", {
1772
+ b(n)["prev-buttons"] ? F(e.$slots, "prev-buttons", {
1770
1773
  key: 2,
1771
- canUpdate: ee.value,
1772
- canDrop: q.value,
1774
+ canUpdate: ae.value,
1775
+ canDrop: le.value,
1773
1776
  perms: e.perms
1774
1777
  }) : R("", !0),
1775
- qe(pe(F, Y({
1778
+ Ye(ge($, X({
1776
1779
  class: "lkt-table--save-button",
1777
1780
  ref_key: "saveButtonRef",
1778
1781
  ref: re
1779
1782
  }, {
1780
- ..._.value,
1781
- disabled: x.value,
1782
- resourceData: lt.value
1783
+ ...x.value,
1784
+ disabled: He.value,
1785
+ resourceData: pt.value
1783
1786
  }, {
1784
- onLoading: B,
1785
- onLoaded: L,
1786
- onClick: W
1787
+ onLoading: J,
1788
+ onLoaded: Q,
1789
+ onClick: Bt
1787
1790
  }), {
1788
1791
  split: P(({ doClose: S, doRootClick: m }) => [
1789
- $(e.$slots, "button-save-split", {
1792
+ F(e.$slots, "button-save-split", {
1790
1793
  doClose: S,
1791
1794
  doRootClick: m,
1792
1795
  dataState: c.value,
1793
- onButtonLoading: B,
1794
- onButtonLoaded: L
1796
+ onButtonLoading: J,
1797
+ onButtonLoaded: Q
1795
1798
  })
1796
1799
  ]),
1797
1800
  default: P(() => [
1798
- b(n)["button-save"] ? $(e.$slots, "button-save", {
1801
+ b(n)["button-save"] ? F(e.$slots, "button-save", {
1799
1802
  key: 0,
1800
1803
  items: s.value,
1801
1804
  editMode: e.editMode,
1802
- canUpdate: !x.value
1805
+ canUpdate: !He.value
1803
1806
  }) : R("", !0)
1804
1807
  ]),
1805
1808
  _: 3
1806
1809
  }, 16), [
1807
- [Xe, ce.value]
1810
+ [We, Pe.value]
1808
1811
  ]),
1809
- pt.value && s.value.length >= e.requiredItemsForTopCreate ? (p(), O(Yt, {
1812
+ ht.value && s.value.length >= e.requiredItemsForTopCreate ? (p(), O(Yt, {
1810
1813
  key: 3,
1811
- config: z.value,
1812
- disabled: !zt.value,
1813
- onClick: h,
1814
- onAppend: C
1814
+ config: Ie.value,
1815
+ disabled: !Gt.value,
1816
+ onClick: L,
1817
+ onAppend: q
1815
1818
  }, 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)
1819
+ ye("div", Hn, [
1820
+ Ye(ge($, X(W.value, {
1821
+ checked: I.value,
1822
+ "onUpdate:checked": u[1] || (u[1] = (S) => I.value = S)
1820
1823
  }), null, 16, ["checked"]), [
1821
- [Xe, $e.value]
1824
+ [We, Ee.value]
1822
1825
  ])
1823
1826
  ])
1824
1827
  ], 512), [
1825
- [Xe, at.value]
1828
+ [We, ft.value]
1826
1829
  ]),
1827
- b(n).buttons ? (p(), w("div", jn, [
1828
- $(e.$slots, "buttons")
1830
+ b(n).buttons ? (p(), C("div", qn, [
1831
+ F(e.$slots, "buttons")
1829
1832
  ])) : R("", !0),
1830
- V.value && b(n).filters ? (p(), w("div", zn, [
1831
- $(e.$slots, "filters", {
1833
+ V.value && b(n).filters ? (p(), C("div", Kn, [
1834
+ F(e.$slots, "filters", {
1832
1835
  items: s.value,
1833
1836
  isLoading: g.value
1834
1837
  })
1835
1838
  ])) : 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, {
1839
+ Ye(ye("div", Xn, [
1840
+ we.value === b(Le).Table ? (p(), C("table", Yn, [
1841
+ e.hideTableHeader ? R("", !0) : (p(), C("thead", Wn, [
1842
+ ye("tr", null, [
1843
+ st.value && I.value ? (p(), C("th", Jn)) : R("", !0),
1844
+ e.addNavigation && I.value ? (p(), C("th", Qn)) : R("", !0),
1845
+ (p(!0), C(G, null, De(Fe.value, (S) => (p(), C(G, null, [
1846
+ vt.value.indexOf(S.key) === -1 ? (p(), O(Un, {
1844
1847
  key: 0,
1845
1848
  column: S,
1846
1849
  "sort-by": k.value,
1847
1850
  "sort-direction": D.value,
1848
1851
  "amount-of-columns": e.columns.length,
1849
1852
  items: s.value,
1850
- onClick: (m) => vt(S)
1853
+ onClick: (m) => d(S)
1851
1854
  }, null, 8, ["column", "sort-by", "sort-direction", "amount-of-columns", "items", "onClick"])) : R("", !0)
1852
1855
  ], 64))), 256))
1853
1856
  ])
1854
1857
  ])),
1855
- me("tbody", {
1858
+ ye("tbody", {
1856
1859
  ref_key: "tableBody",
1857
1860
  ref: v,
1858
- id: "lkt-table-body-" + b(K),
1861
+ id: "lkt-table-body-" + b(ee),
1859
1862
  class: Z(e.itemsContainerClass)
1860
1863
  }, [
1861
- (p(!0), w(H, null, we(s.value, (S, m) => qe((p(), O(Nn, {
1864
+ (p(!0), C(G, null, De(s.value, (S, m) => Ye((p(), O(Pn, {
1862
1865
  modelValue: s.value[m],
1863
- "onUpdate:modelValue": (N) => s.value[m] = N,
1864
- key: Dt(S, m),
1866
+ "onUpdate:modelValue": (M) => s.value[m] = M,
1867
+ key: At(S, m),
1865
1868
  i: m,
1866
- "is-draggable": d(S),
1867
- sortable: kt.value,
1868
- "visible-columns": Te.value,
1869
- "empty-columns": Ue.value,
1869
+ "is-draggable": E(S),
1870
+ sortable: st.value,
1871
+ "visible-columns": Fe.value,
1872
+ "empty-columns": vt.value,
1870
1873
  "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,
1874
+ "latest-row": m + 1 === Ft.value,
1875
+ "can-drop": le.value && I.value,
1876
+ "can-edit": mt.value && ae.value && I.value,
1877
+ "can-read": _e.value,
1875
1878
  "can-create": ve.value,
1876
- "edit-mode-enabled": T.value,
1877
- "has-inline-edit-perm": it.value,
1879
+ "edit-mode-enabled": I.value,
1880
+ "has-inline-edit-perm": fe.value,
1878
1881
  "row-display-type": e.rowDisplayType,
1879
- "render-drag": Ba.value,
1880
- "disabled-drag": Ea.value,
1882
+ "render-drag": Va.value,
1883
+ "disabled-drag": Ra.value,
1881
1884
  "is-loading": g.value,
1882
1885
  "item-container-class": e.itemContainerClass,
1883
- "item-slot-component": Ge.value,
1884
- "item-slot-data": Tt.value,
1886
+ "item-slot-component": Ke.value,
1887
+ "item-slot-data": Rt.value,
1885
1888
  "item-slot-events": e.itemSlotEvents,
1886
1889
  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) ? {
1890
+ onClick: h,
1891
+ onItemUp: jt,
1892
+ onItemDown: Ta,
1893
+ onItemDrop: bt
1894
+ }, Ka({ _: 2 }, [
1895
+ b(n)[`item-${m}`] && aa(e.row, m) ? {
1893
1896
  name: `item-${m}`,
1894
- fn: P((N) => [
1895
- $(e.$slots, `item-${m}`, fe({
1896
- [e.slotItemVar || ""]: N.item,
1897
+ fn: P((M) => [
1898
+ F(e.$slots, `item-${m}`, me({
1899
+ [e.slotItemVar || ""]: M.item,
1897
1900
  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
1901
+ editing: M.editing,
1902
+ canCreate: M.canCreate,
1903
+ canRead: M.canRead,
1904
+ canUpdate: M.canUpdate,
1905
+ canDrop: M.canDrop,
1906
+ isLoading: M.isLoading,
1907
+ doDrop: M.doDrop
1905
1908
  }))
1906
1909
  ]),
1907
1910
  key: "0"
1908
- } : b(n).item && ea(e.row, m) ? {
1911
+ } : b(n).item && aa(e.row, m) ? {
1909
1912
  name: "item",
1910
- fn: P((N) => [
1911
- $(e.$slots, "item", fe({
1912
- [e.slotItemVar || ""]: N.item,
1913
+ fn: P((M) => [
1914
+ F(e.$slots, "item", me({
1915
+ [e.slotItemVar || ""]: M.item,
1913
1916
  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
1917
+ editing: M.editing,
1918
+ canCreate: M.canCreate,
1919
+ canRead: M.canRead,
1920
+ canUpdate: M.canUpdate,
1921
+ canDrop: M.canDrop,
1922
+ isLoading: M.isLoading,
1923
+ doDrop: M.doDrop
1921
1924
  }))
1922
1925
  ]),
1923
1926
  key: "1"
1924
1927
  } : 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
1928
+ De(rt.value, (M) => ({
1929
+ name: M,
1930
+ fn: P((dt) => [
1931
+ F(e.$slots, M, me({
1932
+ [e.slotItemVar || ""]: dt.item,
1933
+ value: dt.value,
1934
+ column: dt.column
1932
1935
  }))
1933
1936
  ])
1934
1937
  }))
1935
1938
  ]), 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)]
1939
+ [We, kt(s.value[m], m)]
1937
1940
  ])), 128))
1938
- ], 10, Kn)
1939
- ])) : Ce.value === b(Ve).Item ? (p(), w("div", {
1941
+ ], 10, Zn)
1942
+ ])) : we.value === b(Le).Item ? (p(), C("div", {
1940
1943
  key: 1,
1941
1944
  ref_key: "tableBody",
1942
1945
  ref: v,
1943
- id: "lkt-table-body-" + b(K),
1946
+ id: "lkt-table-body-" + b(ee),
1944
1947
  class: Z(["lkt-table-items-container", e.itemsContainerClass])
1945
1948
  }, [
1946
- (p(!0), w(H, null, we(s.value, (S, m) => (p(), w(H, {
1947
- key: Dt(S, m)
1949
+ (p(!0), C(G, null, De(s.value, (S, m) => (p(), C(G, {
1950
+ key: At(S, m)
1948
1951
  }, [
1949
- !e.skipTableItemsContainer && mt(S, m) ? (p(), w("div", {
1952
+ !e.skipTableItemsContainer && kt(S, m) ? (p(), C("div", {
1950
1953
  key: 0,
1951
- class: Z(["lkt-table-item", It(S, m)]),
1954
+ class: Z(["lkt-table-item", Vt(S, m)]),
1952
1955
  "data-i": m
1953
1956
  }, [
1954
- Ge.value ? (p(), O(ge(Ge.value), Y({
1957
+ Ke.value ? (p(), O(be(Ke.value), X({
1955
1958
  key: 0,
1956
1959
  ref_for: !0
1957
1960
  }, {
1958
1961
  item: S,
1959
1962
  index: m,
1960
- editing: T.value,
1963
+ editing: I.value,
1961
1964
  perms: A.value,
1962
- data: Tt.value,
1965
+ data: Rt.value,
1963
1966
  events: e.itemSlotEvents
1964
- }), null, 16)) : $(e.$slots, "item", fe({
1967
+ }), null, 16)) : F(e.$slots, "item", me({
1965
1968
  key: 1,
1966
1969
  [e.slotItemVar || ""]: S,
1967
1970
  index: m,
1968
- editing: T.value,
1971
+ editing: I.value,
1969
1972
  canCreate: ve.value,
1970
- canRead: Oe.value,
1971
- canUpdate: ee.value,
1972
- canDrop: q.value,
1973
+ canRead: _e.value,
1974
+ canUpdate: ae.value,
1975
+ canDrop: le.value,
1973
1976
  isLoading: g.value,
1974
- doDrop: () => ze(m)
1977
+ doDrop: () => bt(m)
1975
1978
  }))
1976
- ], 10, Jn)) : mt(S, m) ? $(e.$slots, "item", fe({
1979
+ ], 10, el)) : kt(S, m) ? F(e.$slots, "item", me({
1977
1980
  key: 1,
1978
- class: It(S, m),
1981
+ class: Vt(S, m),
1979
1982
  dataI: m,
1980
1983
  [e.slotItemVar || ""]: S,
1981
1984
  index: m,
1982
- editing: T.value,
1985
+ editing: I.value,
1983
1986
  canCreate: ve.value,
1984
- canRead: Oe.value,
1985
- canUpdate: ee.value,
1986
- canDrop: q.value,
1987
+ canRead: _e.value,
1988
+ canUpdate: ae.value,
1989
+ canDrop: le.value,
1987
1990
  isLoading: g.value,
1988
- doDrop: () => ze(m)
1991
+ doDrop: () => bt(m)
1989
1992
  })) : R("", !0)
1990
1993
  ], 64))), 128))
1991
- ], 10, Wn)) : Ce.value === b(Ve).Accordion ? (p(), w("div", {
1994
+ ], 10, xn)) : we.value === b(Le).Accordion ? (p(), C("div", {
1992
1995
  key: 2,
1993
1996
  ref_key: "tableBody",
1994
1997
  ref: v,
1995
- id: "lkt-table-body-" + b(K),
1998
+ id: "lkt-table-body-" + b(ee),
1996
1999
  class: Z(["lkt-table-items-container", e.itemsContainerClass])
1997
2000
  }, [
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), {
2001
+ (p(!0), C(G, null, De(s.value, (S, m) => (p(), C(G, null, [
2002
+ [b(Te).Auto, b(Te).PreferCustomItem].includes(e.rowDisplayType) && b(n)[It(S, m)] ? F(e.$slots, It(S, m), {
2000
2003
  key: 0,
2001
2004
  item: S,
2002
2005
  index: m,
2003
- editing: T.value,
2006
+ editing: I.value,
2004
2007
  isLoading: g.value
2005
- }) : [b(De).Auto, b(De).PreferCustomItem].includes(e.rowDisplayType) && b(n)[`item-${m}`] ? $(e.$slots, `item-${m}`, {
2008
+ }) : [b(Te).Auto, b(Te).PreferCustomItem].includes(e.rowDisplayType) && b(n)[`item-${m}`] ? F(e.$slots, `item-${m}`, {
2006
2009
  key: 1,
2007
2010
  item: S,
2008
2011
  index: m,
2009
- editing: T.value,
2012
+ editing: I.value,
2010
2013
  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)],
2014
+ }) : (p(), C(G, { key: 2 }, [
2015
+ kt(S, m) ? (p(), O(z, X({
2016
+ class: ["lkt-table-item", Vt(S, m)],
2014
2017
  "data-i": m,
2015
- key: Dt(S, m)
2018
+ key: At(S, m)
2016
2019
  }, { ref_for: !0 }, {
2017
2020
  ...e.accordion,
2018
- title: Da(S)
2021
+ title: Ba(S)
2019
2022
  }), {
2020
2023
  header: P(() => [
2021
- pe(Qt, {
2024
+ ge(Zt, {
2022
2025
  modelValue: s.value[m],
2023
- "onUpdate:modelValue": (N) => s.value[m] = N,
2026
+ "onUpdate:modelValue": (M) => s.value[m] = M,
2024
2027
  i: m,
2025
- column: Fe.value,
2026
- columns: Te.value,
2027
- "edit-mode-enabled": T.value,
2028
- "has-inline-edit-perm": it.value
2028
+ column: Ae.value,
2029
+ columns: Fe.value,
2030
+ "edit-mode-enabled": I.value,
2031
+ "has-inline-edit-perm": fe.value
2029
2032
  }, null, 8, ["modelValue", "onUpdate:modelValue", "i", "column", "columns", "edit-mode-enabled", "has-inline-edit-perm"])
2030
2033
  ]),
2031
2034
  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, {
2035
+ (p(!0), C(G, null, De(Fe.value, (M) => {
2036
+ var dt, oa;
2037
+ return p(), C(G, null, [
2038
+ M.key !== ((dt = Ae.value) == null ? void 0 : dt.key) && e.$slots[M.key] && b(wa)(M, s.value[m]) ? F(e.$slots, M.key, {
2036
2039
  key: 0,
2037
- value: s.value[m][N.key],
2040
+ value: s.value[m][M.key],
2038
2041
  item: s.value[m],
2039
- column: N,
2042
+ column: M,
2040
2043
  i: m
2041
- }) : (p(), w(H, { key: 1 }, [
2042
- N.key !== ((na = Fe.value) == null ? void 0 : na.key) ? (p(), O(Qt, {
2044
+ }) : (p(), C(G, { key: 1 }, [
2045
+ M.key !== ((oa = Ae.value) == null ? void 0 : oa.key) ? (p(), O(Zt, {
2043
2046
  key: 0,
2044
2047
  modelValue: s.value[m],
2045
- "onUpdate:modelValue": (Oa) => s.value[m] = Oa,
2048
+ "onUpdate:modelValue": (Pa) => s.value[m] = Pa,
2046
2049
  i: m,
2047
- column: N,
2048
- columns: Te.value,
2049
- "edit-mode-enabled": T.value,
2050
- "has-inline-edit-perm": it.value
2050
+ column: M,
2051
+ columns: Fe.value,
2052
+ "edit-mode-enabled": I.value,
2053
+ "has-inline-edit-perm": fe.value
2051
2054
  }, null, 8, ["modelValue", "onUpdate:modelValue", "i", "column", "columns", "edit-mode-enabled", "has-inline-edit-perm"])) : R("", !0)
2052
2055
  ], 64))
2053
2056
  ], 64);
@@ -2057,101 +2060,101 @@ const Dn = ["data-i", "data-draggable"], In = ["data-role", "data-i"], Tn = {
2057
2060
  }, 1040, ["class", "data-i"])) : R("", !0)
2058
2061
  ], 64))
2059
2062
  ], 64))), 256))
2060
- ], 10, Qn)) : wa.value ? (p(), O(ge(Ce.value), {
2063
+ ], 10, tl)) : Ia.value ? (p(), O(be(we.value), {
2061
2064
  key: 3,
2062
2065
  class: Z(["lkt-table-items-container", e.itemsContainerClass])
2063
2066
  }, {
2064
2067
  default: P(() => [
2065
- (p(!0), w(H, null, we(s.value, (S, m) => (p(), w(H, {
2066
- key: Dt(S, m)
2068
+ (p(!0), C(G, null, De(s.value, (S, m) => (p(), C(G, {
2069
+ key: At(S, m)
2067
2070
  }, [
2068
- mt(S, m) ? (p(), w("li", {
2071
+ kt(S, m) ? (p(), C("li", {
2069
2072
  key: 0,
2070
- class: Z(["lkt-table-item", It(S, m)]),
2073
+ class: Z(["lkt-table-item", Vt(S, m)]),
2071
2074
  "data-i": m
2072
2075
  }, [
2073
- Ge.value ? (p(), O(ge(Ge.value), Y({
2076
+ Ke.value ? (p(), O(be(Ke.value), X({
2074
2077
  key: 0,
2075
2078
  ref_for: !0
2076
2079
  }, {
2077
2080
  item: S,
2078
2081
  index: m,
2079
- editing: T.value,
2082
+ editing: I.value,
2080
2083
  perms: A.value,
2081
- data: Tt.value,
2084
+ data: Rt.value,
2082
2085
  events: e.itemSlotEvents
2083
- }), null, 16)) : $(e.$slots, "item", fe({
2086
+ }), null, 16)) : F(e.$slots, "item", me({
2084
2087
  key: 1,
2085
2088
  [e.slotItemVar || ""]: S,
2086
2089
  index: m,
2087
- editing: T.value,
2090
+ editing: I.value,
2088
2091
  canCreate: ve.value,
2089
- canRead: Oe.value,
2090
- canUpdate: ee.value,
2091
- canDrop: q.value,
2092
+ canRead: _e.value,
2093
+ canUpdate: ae.value,
2094
+ canDrop: le.value,
2092
2095
  isLoading: g.value,
2093
- doDrop: () => ze(m)
2096
+ doDrop: () => bt(m)
2094
2097
  }))
2095
- ], 10, Zn)) : R("", !0)
2098
+ ], 10, al)) : R("", !0)
2096
2099
  ], 64))), 128))
2097
2100
  ]),
2098
2101
  _: 3
2099
- }, 8, ["class"])) : Ce.value === b(Ve).Carousel ? (p(), w("div", {
2102
+ }, 8, ["class"])) : we.value === b(Le).Carousel ? (p(), C("div", {
2100
2103
  key: 4,
2101
2104
  ref_key: "tableBody",
2102
2105
  ref: v,
2103
- id: "lkt-table-body-" + b(K),
2106
+ id: "lkt-table-body-" + b(ee),
2104
2107
  class: Z(["lkt-table-items-container", e.itemsContainerClass])
2105
2108
  }, [
2106
- pe(b(pn), Y({
2109
+ ge(b(bn), X({
2107
2110
  modelValue: se.value,
2108
2111
  "onUpdate:modelValue": u[2] || (u[2] = (S) => se.value = S)
2109
2112
  }, e.carousel, {
2110
- "wrap-around": ((Ee = e.carousel) == null ? void 0 : Ee.infinite) === !0
2113
+ "wrap-around": ((Ve = e.carousel) == null ? void 0 : Ve.infinite) === !0
2111
2114
  }), {
2112
2115
  addons: P(() => [
2113
- pe(b(yn)),
2114
- pe(b(bn))
2116
+ ge(b(Sn)),
2117
+ ge(b(Cn))
2115
2118
  ]),
2116
2119
  default: P(() => [
2117
- (p(!0), w(H, null, we(tt.value, (S, m) => (p(), O(b(sa), {
2120
+ (p(!0), C(G, null, De(ce.value, (S, m) => (p(), O(b(ca), {
2118
2121
  key: S,
2119
2122
  index: m
2120
2123
  }, {
2121
2124
  default: P(() => [
2122
- me("div", el, [
2123
- $(e.$slots, S)
2125
+ ye("div", ll, [
2126
+ F(e.$slots, S)
2124
2127
  ])
2125
2128
  ]),
2126
2129
  _: 2
2127
2130
  }, 1032, ["index"]))), 128)),
2128
- (p(!0), w(H, null, we(s.value, (S, m) => (p(), O(b(sa), {
2131
+ (p(!0), C(G, null, De(s.value, (S, m) => (p(), O(b(ca), {
2129
2132
  key: e.slide,
2130
2133
  index: m
2131
2134
  }, {
2132
2135
  default: P(() => [
2133
- me("div", tl, [
2134
- Ge.value ? (p(), O(ge(Ge.value), Y({
2136
+ ye("div", ol, [
2137
+ Ke.value ? (p(), O(be(Ke.value), X({
2135
2138
  key: 0,
2136
2139
  ref_for: !0
2137
2140
  }, {
2138
2141
  item: S,
2139
2142
  index: m,
2140
- editing: T.value,
2143
+ editing: I.value,
2141
2144
  perms: A.value,
2142
- data: Tt.value,
2145
+ data: Rt.value,
2143
2146
  events: e.itemSlotEvents
2144
- }), null, 16)) : $(e.$slots, "item", fe({
2147
+ }), null, 16)) : F(e.$slots, "item", me({
2145
2148
  key: 1,
2146
2149
  [e.slotItemVar || ""]: S,
2147
2150
  index: m,
2148
- editing: T.value,
2151
+ editing: I.value,
2149
2152
  canCreate: ve.value,
2150
- canRead: Oe.value,
2151
- canUpdate: ee.value,
2152
- canDrop: q.value,
2153
+ canRead: _e.value,
2154
+ canUpdate: ae.value,
2155
+ canDrop: le.value,
2153
2156
  isLoading: g.value,
2154
- doDrop: () => ze(m)
2157
+ doDrop: () => bt(m)
2155
2158
  }))
2156
2159
  ])
2157
2160
  ]),
@@ -2160,73 +2163,78 @@ const Dn = ["data-i", "data-draggable"], In = ["data-role", "data-i"], Tn = {
2160
2163
  ]),
2161
2164
  _: 3
2162
2165
  }, 16, ["modelValue", "wrap-around"])
2163
- ], 10, xn)) : Ce.value === b(Ve).Calendar ? (p(), w("div", {
2166
+ ], 10, nl)) : we.value === b(Le).Calendar ? (p(), C("div", {
2164
2167
  key: 5,
2165
2168
  ref_key: "tableBody",
2166
2169
  ref: v,
2167
- id: "lkt-table-body-" + b(K),
2170
+ id: "lkt-table-body-" + b(ee),
2168
2171
  class: Z(["lkt-table-items-container", e.itemsContainerClass])
2169
2172
  }, [
2170
- pe(X, fe(va({
2173
+ ge(K, me(pa({
2171
2174
  ...e.calendar,
2172
- items: Ma.value,
2173
- events: Na
2175
+ items: $a.value,
2176
+ events: Fa
2174
2177
  })), null, 16)
2175
- ], 10, al)) : R("", !0)
2178
+ ], 10, il)) : R("", !0)
2176
2179
  ], 512), [
2177
- [Xe, $t.value]
2180
+ [We, gt.value]
2178
2181
  ]),
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), {
2182
+ !g.value && s.value.length === 0 ? (p(), C("div", rl, [
2183
+ b(n).empty ? F(e.$slots, "empty", { key: 0 }) : Ea.value ? (p(), O(be(Aa.value), {
2181
2184
  key: 1,
2182
2185
  message: e.noResultsText
2183
- }, null, 8, ["message"])) : e.noResultsText ? (p(), w(H, { key: 2 }, [
2184
- Je(Qe(e.noResultsText), 1)
2186
+ }, null, 8, ["message"])) : e.noResultsText ? (p(), C(G, { key: 2 }, [
2187
+ et(tt(e.noResultsText), 1)
2185
2188
  ], 64)) : R("", !0)
2186
2189
  ])) : 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, {
2190
+ g.value ? (p(), O(Xe, { key: 3 })) : R("", !0),
2191
+ ht.value || b(n).bottomButtons ? (p(), C("div", ul, [
2192
+ ht.value && s.value.length >= e.requiredItemsForBottomCreate ? (p(), O(Yt, {
2190
2193
  key: 0,
2191
- config: z.value,
2192
- disabled: !zt.value,
2193
- onClick: h,
2194
- onAppend: C
2194
+ config: Ie.value,
2195
+ disabled: !Gt.value,
2196
+ onClick: L,
2197
+ onAppend: q
2195
2198
  }, null, 8, ["config", "disabled"])) : R("", !0),
2196
- $(e.$slots, "bottom-buttons")
2199
+ F(e.$slots, "bottom-buttons")
2197
2200
  ])) : R("", !0),
2198
- e.paginator && Object.keys(e.paginator).length > 0 ? (p(), O(Pe, Y({
2201
+ e.paginator && Object.keys(e.paginator).length > 0 ? (p(), O(Ge, X({
2199
2202
  key: 5,
2200
2203
  ref_key: "paginatorRef",
2201
- ref: et
2202
- }, e.paginator, {
2204
+ ref: lt
2205
+ }, {
2206
+ ...e.paginator,
2207
+ timelineOldestDate: de.value,
2208
+ timelineNewestDate: H.value,
2209
+ timelineVisibleDate: $e.value
2210
+ }, {
2203
2211
  modelValue: f.value,
2204
2212
  "onUpdate:modelValue": u[3] || (u[3] = (S) => f.value = S),
2205
- onLoading: _e,
2206
- onPerms: ae,
2207
- onResponse: Lt
2213
+ onLoading: ot,
2214
+ onPerms: $t,
2215
+ onResponse: Ce
2208
2216
  }), null, 16, ["modelValue"])) : R("", !0),
2209
- b(n)["web-element-actions"] ? $(e.$slots, "web-element-actions", { key: 6 }) : R("", !0)
2217
+ b(n)["web-element-actions"] ? F(e.$slots, "web-element-actions", { key: 6 }) : R("", !0)
2210
2218
  ];
2211
2219
  }),
2212
2220
  _: 3
2213
2221
  }, 8, ["class"]))
2214
- ], 8, Fn);
2222
+ ], 8, jn);
2215
2223
  };
2216
2224
  }
2217
- }), fl = {
2225
+ }), yl = {
2218
2226
  install: (a) => {
2219
- a.component("lkt-table") === void 0 && a.component("lkt-table", ol);
2227
+ a.component("lkt-table") === void 0 && a.component("lkt-table", sl);
2220
2228
  }
2221
- }, pl = (a) => (be.navButtonSlot = a, !0), ml = (a) => (be.createButtonSlot = a, !0), gl = (a) => {
2222
- be.defaultEmptySlot = a;
2229
+ }, bl = (a) => (ke.navButtonSlot = a, !0), hl = (a) => (ke.createButtonSlot = a, !0), kl = (a) => {
2230
+ ke.defaultEmptySlot = a;
2223
2231
  };
2224
2232
  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
2233
+ wl as Column,
2234
+ Dl as createColumn,
2235
+ yl as default,
2236
+ wn as defaultTableSorter,
2237
+ hl as setTableCreateButtonSlot,
2238
+ kl as setTableEmptySlot,
2239
+ bl as setTableNavButtonSlot
2232
2240
  };