lkt-table 2.0.19 → 2.0.20

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 ae, computed as u, ref as S, shallowReactive as Pt, watch as U, watchEffect as Lt, onMounted as jt, onBeforeUnmount as Ca, reactive as _t, provide as ta, h as X, useId as wa, inject as ut, getCurrentInstance as Ba, onUnmounted as Da, onUpdated as Ia, cloneVNode as Ta, resolveComponent as Se, createBlock as O, createElementBlock as h, unref as D, openBlock as v, normalizeProps as Re, mergeProps as fe, withCtx as j, createTextVNode as lt, toDisplayString as ze, Fragment as W, withModifiers as aa, createCommentVNode as V, resolveDynamicComponent as Ae, useSlots as la, normalizeClass as oe, createElementVNode as J, createVNode as Ee, renderSlot as H, renderList as ue, withDirectives as tt, vShow as at, mergeDefaults as Ea, nextTick as yt, createSlots as Yt } from "vue";
2
- import { __ as Aa } from "lkt-i18n";
3
- import { SortDirection as je, Column as na, extractPropValue as Va, ColumnType as kt, prepareResourceData as oa, TableRowType as Ze, extractI18nValue as ia, LktSettings as ke, ensureButtonConfig as Ve, TablePermission as De, PaginatorType as St, TableType as et, getDefaultValues as Ra, Table as Na, ButtonType as $t } from "lkt-vue-kernel";
4
- import { Column as fn, createColumn as pn } from "lkt-vue-kernel";
5
- import { replaceAll as ra, generateRandomString as Ma } from "lkt-string-tools";
6
- import { DataState as La } from "lkt-data-state";
7
- import _a from "sortablejs";
8
- import { time as $a } from "lkt-date-tools";
1
+ import { defineComponent as le, computed as s, ref as S, shallowReactive as Pt, watch as F, watchEffect as Lt, onMounted as jt, onBeforeUnmount as wa, reactive as _t, provide as aa, h as X, useId as Ba, inject as ut, getCurrentInstance as Da, onUnmounted as Ia, onUpdated as Ta, cloneVNode as Ea, resolveComponent as Se, createBlock as $, createElementBlock as h, unref as T, openBlock as v, normalizeProps as Re, mergeProps as fe, withCtx as j, createTextVNode as lt, toDisplayString as ze, Fragment as x, withModifiers as la, createCommentVNode as A, resolveDynamicComponent as Ae, useSlots as na, normalizeClass as Q, createElementVNode as Z, createVNode as Ee, renderSlot as H, renderList as ue, withDirectives as tt, vShow as at, mergeDefaults as Aa, nextTick as yt, createSlots as Kt } from "vue";
2
+ import { __ as Va } from "lkt-i18n";
3
+ import { SortDirection as je, Column as oa, extractPropValue as Ra, ColumnType as kt, prepareResourceData as ia, TableRowType as Ze, extractI18nValue as ra, LktSettings as ke, ensureButtonConfig as Ve, TablePermission as De, PaginatorType as St, TableType as et, getDefaultValues as Na, Table as Ma, ButtonType as $t } from "lkt-vue-kernel";
4
+ import { Column as pn, createColumn as mn } from "lkt-vue-kernel";
5
+ import { replaceAll as ua, generateRandomString as La } from "lkt-string-tools";
6
+ import { DataState as _a } from "lkt-data-state";
7
+ import $a from "sortablejs";
8
+ import { time as Oa } 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 ua = ["viewport", "carousel"], wt = {
14
+ const sa = ["viewport", "carousel"], wt = {
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
- }, sa = [
19
+ }, da = [
20
20
  "ltr",
21
21
  "left-to-right",
22
22
  "rtl",
@@ -25,7 +25,7 @@ const ua = ["viewport", "carousel"], wt = {
25
25
  "top-to-bottom",
26
26
  "btt",
27
27
  "bottom-to-top"
28
- ], Oa = {
28
+ ], Pa = {
29
29
  ariaGallery: "Gallery",
30
30
  ariaNavigateToPage: "Navigate to page {slideNumber}",
31
31
  ariaNavigateToSlide: "Navigate to slide {slideNumber}",
@@ -36,21 +36,21 @@ const ua = ["viewport", "carousel"], wt = {
36
36
  iconArrowRight: "Arrow pointing to the right",
37
37
  iconArrowUp: "Arrow pointing upwards",
38
38
  itemXofY: "Item {currentSlide} of {slidesCount}"
39
- }, da = ["slide", "fade"], ca = [
39
+ }, ca = ["slide", "fade"], va = [
40
40
  "center",
41
41
  "start",
42
42
  "end",
43
43
  "center-even",
44
44
  "center-odd"
45
- ], F = {
45
+ ], U = {
46
46
  autoplay: 0,
47
- breakpointMode: ua[0],
47
+ breakpointMode: sa[0],
48
48
  breakpoints: void 0,
49
- dir: sa[0],
49
+ dir: da[0],
50
50
  enabled: !0,
51
51
  gap: 0,
52
52
  height: "auto",
53
- i18n: Oa,
53
+ i18n: Pa,
54
54
  ignoreAnimations: !1,
55
55
  itemsToScroll: 1,
56
56
  itemsToShow: 1,
@@ -58,12 +58,12 @@ const ua = ["viewport", "carousel"], wt = {
58
58
  mouseDrag: !0,
59
59
  pauseAutoplayOnHover: !1,
60
60
  preventExcessiveDragging: !1,
61
- slideEffect: da[0],
62
- snapAlign: ca[0],
61
+ slideEffect: ca[0],
62
+ snapAlign: va[0],
63
63
  touchDrag: !0,
64
64
  transition: 300,
65
65
  wrapAround: !1
66
- }, He = Symbol("carousel"), Pa = (e) => {
66
+ }, He = Symbol("carousel"), Fa = (e) => {
67
67
  const i = Pt([]), r = (n) => {
68
68
  n !== void 0 ? i.slice(n).forEach((l, a) => {
69
69
  var f;
@@ -93,7 +93,7 @@ const ua = ["viewport", "carousel"], wt = {
93
93
  function Ua(e) {
94
94
  return e.length === 0 ? 0 : e.reduce((r, n) => r + n, 0) / e.length;
95
95
  }
96
- function Kt({ slides: e, position: i, toShow: r }) {
96
+ function Wt({ slides: e, position: i, toShow: r }) {
97
97
  const n = [], l = i === "before", a = l ? -r : 0, f = l ? 0 : r;
98
98
  if (e.length <= 0)
99
99
  return n;
@@ -105,23 +105,23 @@ function Kt({ slides: e, position: i, toShow: r }) {
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}-${g}`
108
- }, o = e[(g % e.length + e.length) % e.length].vnode, I = Ta(o, C);
109
- I.el = null, n.push(I);
108
+ }, o = e[(g % e.length + e.length) % e.length].vnode, B = Ea(o, C);
109
+ B.el = null, n.push(B);
110
110
  }
111
111
  return n;
112
112
  }
113
- const Fa = 'a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"])';
114
- function Wt(e) {
113
+ const ja = 'a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"])';
114
+ function xt(e) {
115
115
  if (!e.el || !(e.el instanceof Element))
116
116
  return;
117
- const i = e.el.querySelectorAll(Fa);
117
+ const i = e.el.querySelectorAll(ja);
118
118
  for (const r of i)
119
119
  r instanceof HTMLElement && !r.hasAttribute("disabled") && r.getAttribute("aria-hidden") !== "true" && r.setAttribute("tabindex", "-1");
120
120
  }
121
- function ja(e, i) {
121
+ function za(e, i) {
122
122
  return Object.keys(e).filter((r) => !i.includes(r)).reduce((r, n) => (r[n] = e[n], r), {});
123
123
  }
124
- function za(e) {
124
+ function Ha(e) {
125
125
  const { isVertical: i, isReversed: r, dragged: n, effectiveSlideSize: l } = e, a = i ? n.y : n.x;
126
126
  if (a === 0)
127
127
  return 0;
@@ -131,18 +131,18 @@ function za(e) {
131
131
  function Ie({ val: e, max: i, min: r }) {
132
132
  return i < r ? e : Math.min(Math.max(e, isNaN(r) ? e : r), isNaN(i) ? e : i);
133
133
  }
134
- function Ha(e) {
134
+ function qa(e) {
135
135
  const { transform: i } = window.getComputedStyle(e);
136
136
  return i.split(/[(,)]/).slice(1, -1).map((r) => parseFloat(r));
137
137
  }
138
- function qa(e) {
138
+ function Ga(e) {
139
139
  let i = 1, r = 1;
140
140
  return e.forEach((n) => {
141
- const l = Ha(n);
141
+ const l = qa(n);
142
142
  l.length === 6 && (i /= l[0], r /= l[3]);
143
143
  }), { widthMultiplier: i, heightMultiplier: r };
144
144
  }
145
- function Ga(e, i) {
145
+ function Xa(e, i) {
146
146
  switch (e) {
147
147
  case "start":
148
148
  return 0;
@@ -157,7 +157,7 @@ function Ga(e, i) {
157
157
  return 0;
158
158
  }
159
159
  }
160
- function Xa(e, i, r) {
160
+ function Ya(e, i, r) {
161
161
  switch (e) {
162
162
  case "start":
163
163
  return 0;
@@ -172,13 +172,13 @@ function Xa(e, i, r) {
172
172
  return 0;
173
173
  }
174
174
  }
175
- function Ut({ slideSize: e, viewportSize: i, align: r, itemsToShow: n }) {
176
- return n !== void 0 ? Ga(r, n) : e !== void 0 && i !== void 0 ? Xa(r, e, i) : 0;
175
+ function Ft({ slideSize: e, viewportSize: i, align: r, itemsToShow: n }) {
176
+ return n !== void 0 ? Xa(r, n) : e !== void 0 && i !== void 0 ? Ya(r, e, i) : 0;
177
177
  }
178
- function va(e = "", i = {}) {
178
+ function fa(e = "", i = {}) {
179
179
  return Object.entries(i).reduce((r, [n, l]) => r.replace(`{${n}}`, String(l)), e);
180
180
  }
181
- function fa({ val: e, max: i, min: r = 0 }) {
181
+ function pa({ val: e, max: i, min: r = 0 }) {
182
182
  const n = i - r + 1;
183
183
  return ((e - r) % n + n) % n + r;
184
184
  }
@@ -203,7 +203,7 @@ function Ct(e, i = "px") {
203
203
  if (!(e == null || e === ""))
204
204
  return typeof e == "number" || parseFloat(e).toString() === e ? `${e}${i}` : e;
205
205
  }
206
- const Ya = ae({
206
+ const Ka = le({
207
207
  name: "CarouselAria",
208
208
  setup() {
209
209
  const e = ut(He);
@@ -211,42 +211,42 @@ const Ya = ae({
211
211
  class: ["carousel__liveregion", "carousel__sr-only"],
212
212
  "aria-live": "polite",
213
213
  "aria-atomic": "true"
214
- }, va(e.config.i18n.itemXofY, {
214
+ }, fa(e.config.i18n.itemXofY, {
215
215
  currentSlide: e.currentSlide + 1,
216
216
  slidesCount: e.slidesCount
217
217
  })) : () => "";
218
218
  }
219
- }), Ka = {
219
+ }), Wa = {
220
220
  // time to auto advance slides in ms
221
221
  autoplay: {
222
- default: F.autoplay,
222
+ default: U.autoplay,
223
223
  type: Number
224
224
  },
225
225
  // an object to store breakpoints
226
226
  breakpoints: {
227
- default: F.breakpoints,
227
+ default: U.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: F.breakpointMode,
232
+ default: U.breakpointMode,
233
233
  validator(e) {
234
- return ua.includes(e);
234
+ return sa.includes(e);
235
235
  }
236
236
  },
237
237
  // enable/disable the carousel component
238
238
  enabled: {
239
- default: F.enabled,
239
+ default: U.enabled,
240
240
  type: Boolean
241
241
  },
242
242
  // control the gap between slides
243
243
  gap: {
244
- default: F.gap,
244
+ default: U.gap,
245
245
  type: Number
246
246
  },
247
247
  // control the gap between slides
248
248
  height: {
249
- default: F.height,
249
+ default: U.height,
250
250
  type: [Number, String]
251
251
  },
252
252
  ignoreAnimations: {
@@ -255,17 +255,17 @@ const Ya = ae({
255
255
  },
256
256
  // count of items to be scrolled
257
257
  itemsToScroll: {
258
- default: F.itemsToScroll,
258
+ default: U.itemsToScroll,
259
259
  type: Number
260
260
  },
261
261
  // count of items to showed per view
262
262
  itemsToShow: {
263
- default: F.itemsToShow,
263
+ default: U.itemsToShow,
264
264
  type: [Number, String]
265
265
  },
266
266
  // aria-labels and additional text labels
267
267
  i18n: {
268
- default: F.i18n,
268
+ default: U.i18n,
269
269
  type: Object
270
270
  },
271
271
  // slide number number of initial slide
@@ -275,16 +275,16 @@ const Ya = ae({
275
275
  },
276
276
  // toggle mouse dragging.
277
277
  mouseDrag: {
278
- default: F.mouseDrag,
278
+ default: U.mouseDrag,
279
279
  type: Boolean
280
280
  },
281
281
  // toggle mouse dragging.
282
282
  touchDrag: {
283
- default: F.touchDrag,
283
+ default: U.touchDrag,
284
284
  type: Boolean
285
285
  },
286
286
  pauseAutoplayOnHover: {
287
- default: F.pauseAutoplayOnHover,
287
+ default: U.pauseAutoplayOnHover,
288
288
  type: Boolean
289
289
  },
290
290
  preventExcessiveDragging: {
@@ -296,29 +296,29 @@ const Ya = ae({
296
296
  },
297
297
  // control snap position alignment
298
298
  snapAlign: {
299
- default: F.snapAlign,
299
+ default: U.snapAlign,
300
300
  validator(e) {
301
- return ca.includes(e);
301
+ return va.includes(e);
302
302
  }
303
303
  },
304
304
  slideEffect: {
305
305
  type: String,
306
- default: F.slideEffect,
306
+ default: U.slideEffect,
307
307
  validator(e) {
308
- return da.includes(e);
308
+ return ca.includes(e);
309
309
  }
310
310
  },
311
311
  // sliding transition time in ms
312
312
  transition: {
313
- default: F.transition,
313
+ default: U.transition,
314
314
  type: Number
315
315
  },
316
316
  // control the gap between slides
317
317
  dir: {
318
318
  type: String,
319
- default: F.dir,
319
+ default: U.dir,
320
320
  validator(e, i) {
321
- if (!sa.includes(e))
321
+ if (!da.includes(e))
322
322
  return !1;
323
323
  const r = e in wt ? wt[e] : e;
324
324
  return ["ttb", "btt"].includes(r) && (!i.height || i.height === "auto") && console.warn(`[vue3-carousel warn]: The dir "${e}" is not supported with height "auto".`), !0;
@@ -326,12 +326,12 @@ const Ya = ae({
326
326
  },
327
327
  // control infinite scrolling mode
328
328
  wrapAround: {
329
- default: F.wrapAround,
329
+ default: U.wrapAround,
330
330
  type: Boolean
331
331
  }
332
- }, Wa = ae({
332
+ }, xa = le({
333
333
  name: "VueCarousel",
334
- props: Ka,
334
+ props: Wa,
335
335
  emits: [
336
336
  "before-init",
337
337
  "drag",
@@ -345,30 +345,30 @@ const Ya = ae({
345
345
  ],
346
346
  setup(e, { slots: i, emit: r, expose: n }) {
347
347
  var l;
348
- const a = Pa(r), f = a.getSlides(), g = u(() => f.length), m = S(null), C = S(null), o = S(0), I = u(() => Object.assign(Object.assign(Object.assign({}, F), ja(e, ["breakpoints", "modelValue"])), { i18n: Object.assign(Object.assign({}, F.i18n), e.i18n) })), c = Pt(Object.assign({}, I.value)), k = S((l = e.modelValue) !== null && l !== void 0 ? l : 0), T = S(k.value);
349
- U(k, (s) => T.value = s);
350
- const A = S(0), Ce = u(() => Math.ceil((g.value - 1) / 2)), $ = u(() => g.value - 1), Q = u(() => 0);
351
- let q = null, Ne = null, Z = null;
352
- const d = u(() => o.value + c.gap), w = u(() => {
353
- const s = c.dir || "ltr";
354
- return s in wt ? wt[s] : s;
355
- }), le = u(() => ["rtl", "btt"].includes(w.value)), P = u(() => ["ttb", "btt"].includes(w.value)), x = u(() => c.itemsToShow === "auto"), _ = u(() => P.value ? "height" : "width");
348
+ const a = Fa(r), f = a.getSlides(), g = s(() => f.length), m = S(null), C = S(null), o = S(0), B = s(() => Object.assign(Object.assign(Object.assign({}, U), za(e, ["breakpoints", "modelValue"])), { i18n: Object.assign(Object.assign({}, U.i18n), e.i18n) })), c = Pt(Object.assign({}, B.value)), k = S((l = e.modelValue) !== null && l !== void 0 ? l : 0), D = S(k.value);
349
+ F(k, (d) => D.value = d);
350
+ const E = S(0), Ce = s(() => Math.ceil((g.value - 1) / 2)), _ = s(() => g.value - 1), ee = s(() => 0);
351
+ let q = null, Ne = null, ne = null;
352
+ const K = s(() => o.value + c.gap), u = s(() => {
353
+ const d = c.dir || "ltr";
354
+ return d in wt ? wt[d] : d;
355
+ }), O = s(() => ["rtl", "btt"].includes(u.value)), J = s(() => ["ttb", "btt"].includes(u.value)), P = s(() => c.itemsToShow === "auto"), N = s(() => J.value ? "height" : "width");
356
356
  function we() {
357
- var s;
357
+ var d;
358
358
  if (!Ge.value)
359
359
  return;
360
- const b = (I.value.breakpointMode === "carousel" ? (s = m.value) === null || s === void 0 ? void 0 : s.getBoundingClientRect().width : typeof window < "u" ? window.innerWidth : 0) || 0, y = Object.keys(e.breakpoints || {}).map((R) => Number(R)).sort((R, G) => +G - +R), B = {};
361
- y.some((R) => b >= R ? (Object.assign(B, e.breakpoints[R]), B.i18n && Object.assign(B.i18n, I.value.i18n, e.breakpoints[R].i18n), !0) : !1), Object.assign(c, I.value, B);
360
+ const b = (B.value.breakpointMode === "carousel" ? (d = m.value) === null || d === void 0 ? void 0 : d.getBoundingClientRect().width : typeof window < "u" ? window.innerWidth : 0) || 0, y = Object.keys(e.breakpoints || {}).map((R) => Number(R)).sort((R, G) => +G - +R), w = {};
361
+ y.some((R) => b >= R ? (Object.assign(w, e.breakpoints[R]), w.i18n && Object.assign(w.i18n, B.value.i18n, e.breakpoints[R].i18n), !0) : !1), Object.assign(c, B.value, w);
362
362
  }
363
363
  const st = Ot(() => {
364
364
  we(), se(), pe();
365
365
  }), Me = Pt(/* @__PURE__ */ new Set()), z = S([]);
366
- function Bt({ widthMultiplier: s, heightMultiplier: b }) {
366
+ function Bt({ widthMultiplier: d, heightMultiplier: b }) {
367
367
  z.value = f.map((y) => {
368
- var B;
369
- const R = (B = y.exposed) === null || B === void 0 ? void 0 : B.getBoundingRect();
368
+ var w;
369
+ const R = (w = y.exposed) === null || w === void 0 ? void 0 : w.getBoundingRect();
370
370
  return {
371
- width: R.width * s,
371
+ width: R.width * d,
372
372
  height: R.height * b
373
373
  };
374
374
  });
@@ -377,44 +377,44 @@ const Ya = ae({
377
377
  width: 0,
378
378
  height: 0
379
379
  });
380
- function Dt({ widthMultiplier: s, heightMultiplier: b }) {
380
+ function Dt({ widthMultiplier: d, heightMultiplier: b }) {
381
381
  var y;
382
- const B = ((y = C.value) === null || y === void 0 ? void 0 : y.getBoundingClientRect()) || { width: 0, height: 0 };
382
+ const w = ((y = C.value) === null || y === void 0 ? void 0 : y.getBoundingClientRect()) || { width: 0, height: 0 };
383
383
  Le.value = {
384
- width: B.width * s,
385
- height: B.height * b
384
+ width: w.width * d,
385
+ height: w.height * b
386
386
  };
387
387
  }
388
388
  function pe() {
389
389
  if (!C.value)
390
390
  return;
391
- const s = qa(Me);
392
- if (Dt(s), Bt(s), x.value)
393
- o.value = Ua(z.value.map((b) => b[_.value]));
391
+ const d = Ga(Me);
392
+ if (Dt(d), Bt(d), P.value)
393
+ o.value = Ua(z.value.map((b) => b[N.value]));
394
394
  else {
395
395
  const b = Number(c.itemsToShow), y = (b - 1) * c.gap;
396
- o.value = (Le.value[_.value] - y) / b;
396
+ o.value = (Le.value[N.value] - y) / b;
397
397
  }
398
398
  }
399
399
  function se() {
400
400
  !c.wrapAround && g.value > 0 && (k.value = Ie({
401
401
  val: k.value,
402
- max: $.value,
403
- min: Q.value
404
- })), x.value || (c.itemsToShow = Ie({
402
+ max: _.value,
403
+ min: ee.value
404
+ })), P.value || (c.itemsToShow = Ie({
405
405
  val: Number(c.itemsToShow),
406
406
  max: g.value,
407
407
  min: 1
408
408
  }));
409
409
  }
410
- const _e = u(() => typeof e.ignoreAnimations == "string" ? e.ignoreAnimations.split(",") : Array.isArray(e.ignoreAnimations) ? e.ignoreAnimations : e.ignoreAnimations ? !1 : []);
410
+ const _e = s(() => typeof e.ignoreAnimations == "string" ? e.ignoreAnimations.split(",") : Array.isArray(e.ignoreAnimations) ? e.ignoreAnimations : e.ignoreAnimations ? !1 : []);
411
411
  Lt(() => se()), Lt(() => {
412
412
  pe();
413
413
  });
414
414
  let de;
415
- const qe = (s) => {
416
- const b = s.target;
417
- if (!(!(b != null && b.contains(m.value)) || Array.isArray(_e.value) && _e.value.includes(s.animationName)) && (Me.add(b), !de)) {
415
+ const qe = (d) => {
416
+ const b = d.target;
417
+ if (!(!(b != null && b.contains(m.value)) || Array.isArray(_e.value) && _e.value.includes(d.animationName)) && (Me.add(b), !de)) {
418
418
  const y = () => {
419
419
  de = requestAnimationFrame(() => {
420
420
  pe(), y();
@@ -422,32 +422,32 @@ const Ya = ae({
422
422
  };
423
423
  y();
424
424
  }
425
- }, dt = (s) => {
426
- const b = s.target;
425
+ }, dt = (d) => {
426
+ const b = d.target;
427
427
  b && Me.delete(b), de && Me.size === 0 && (cancelAnimationFrame(de), pe());
428
428
  }, Ge = S(!1);
429
429
  typeof document < "u" && Lt(() => {
430
430
  Ge.value && _e.value !== !1 ? (document.addEventListener("animationstart", qe), document.addEventListener("animationend", dt)) : (document.removeEventListener("animationstart", qe), document.removeEventListener("animationend", dt));
431
431
  }), jt(() => {
432
- Ge.value = !0, we(), ge(), m.value && (Z = new ResizeObserver(st), Z.observe(m.value)), r("init");
433
- }), Ca(() => {
434
- Ge.value = !1, a.cleanup(), Ne && clearTimeout(Ne), de && cancelAnimationFrame(de), q && clearInterval(q), Z && (Z.disconnect(), Z = null), typeof document < "u" && vt(), m.value && (m.value.removeEventListener("transitionend", pe), m.value.removeEventListener("animationiteration", pe));
432
+ Ge.value = !0, we(), ge(), m.value && (ne = new ResizeObserver(st), ne.observe(m.value)), r("init");
433
+ }), wa(() => {
434
+ Ge.value = !1, a.cleanup(), Ne && clearTimeout(Ne), de && cancelAnimationFrame(de), q && clearInterval(q), ne && (ne.disconnect(), ne = null), typeof document < "u" && vt(), m.value && (m.value.removeEventListener("transitionend", pe), m.value.removeEventListener("animationiteration", pe));
435
435
  });
436
436
  let me = !1;
437
437
  const Xe = { x: 0, y: 0 }, ie = _t({ x: 0, y: 0 }), Ye = S(!1), Ke = S(!1), It = () => {
438
438
  Ye.value = !0;
439
439
  }, ot = () => {
440
440
  Ye.value = !1;
441
- }, ct = Ot((s) => {
442
- if (!s.ctrlKey)
443
- switch (s.key) {
441
+ }, ct = Ot((d) => {
442
+ if (!d.ctrlKey)
443
+ switch (d.key) {
444
444
  case "ArrowLeft":
445
445
  case "ArrowUp":
446
- P.value === s.key.endsWith("Up") && (le.value ? Pe(!0) : Ue(!0));
446
+ J.value === d.key.endsWith("Up") && (O.value ? Pe(!0) : Fe(!0));
447
447
  break;
448
448
  case "ArrowRight":
449
449
  case "ArrowDown":
450
- P.value === s.key.endsWith("Down") && (le.value ? Ue(!0) : Pe(!0));
450
+ J.value === d.key.endsWith("Down") && (O.value ? Fe(!0) : Pe(!0));
451
451
  break;
452
452
  }
453
453
  }, 200), Tt = () => {
@@ -455,40 +455,40 @@ const Ya = ae({
455
455
  }, vt = () => {
456
456
  document.removeEventListener("keydown", ct);
457
457
  };
458
- function ft(s) {
459
- const b = s.target.tagName;
460
- if (["INPUT", "TEXTAREA", "SELECT"].includes(b) || be.value || (me = s.type === "touchstart", !me && (s.preventDefault(), s.button !== 0)))
458
+ function ft(d) {
459
+ const b = d.target.tagName;
460
+ if (["INPUT", "TEXTAREA", "SELECT"].includes(b) || be.value || (me = d.type === "touchstart", !me && (d.preventDefault(), d.button !== 0)))
461
461
  return;
462
- Xe.x = "touches" in s ? s.touches[0].clientX : s.clientX, Xe.y = "touches" in s ? s.touches[0].clientY : s.clientY;
463
- const y = me ? "touchmove" : "mousemove", B = me ? "touchend" : "mouseup";
464
- document.addEventListener(y, $e, { passive: !1 }), document.addEventListener(B, We, { passive: !0 });
462
+ Xe.x = "touches" in d ? d.touches[0].clientX : d.clientX, Xe.y = "touches" in d ? d.touches[0].clientY : d.clientY;
463
+ const y = me ? "touchmove" : "mousemove", w = me ? "touchend" : "mouseup";
464
+ document.addEventListener(y, $e, { passive: !1 }), document.addEventListener(w, We, { passive: !0 });
465
465
  }
466
- const $e = Ot((s) => {
466
+ const $e = Ot((d) => {
467
467
  Ke.value = !0;
468
- const b = "touches" in s ? s.touches[0].clientX : s.clientX, y = "touches" in s ? s.touches[0].clientY : s.clientY;
468
+ const b = "touches" in d ? d.touches[0].clientX : d.clientX, y = "touches" in d ? d.touches[0].clientY : d.clientY;
469
469
  ie.x = b - Xe.x, ie.y = y - Xe.y;
470
- const B = za({
471
- isVertical: P.value,
472
- isReversed: le.value,
470
+ const w = Ha({
471
+ isVertical: J.value,
472
+ isReversed: O.value,
473
473
  dragged: ie,
474
- effectiveSlideSize: d.value
474
+ effectiveSlideSize: K.value
475
475
  });
476
- T.value = c.wrapAround ? k.value + B : Ie({
477
- val: k.value + B,
478
- max: $.value,
479
- min: Q.value
476
+ D.value = c.wrapAround ? k.value + w : Ie({
477
+ val: k.value + w,
478
+ max: _.value,
479
+ min: ee.value
480
480
  }), r("drag", { deltaX: ie.x, deltaY: ie.y });
481
481
  });
482
482
  function We() {
483
- if ($e.cancel(), T.value !== k.value && !me) {
484
- const y = (B) => {
485
- B.preventDefault(), window.removeEventListener("click", y);
483
+ if ($e.cancel(), D.value !== k.value && !me) {
484
+ const y = (w) => {
485
+ w.preventDefault(), window.removeEventListener("click", y);
486
486
  };
487
487
  window.addEventListener("click", y);
488
488
  }
489
- Be(T.value), ie.x = 0, ie.y = 0, Ke.value = !1;
490
- const s = me ? "touchmove" : "mousemove", b = me ? "touchend" : "mouseup";
491
- document.removeEventListener(s, $e), document.removeEventListener(b, We);
489
+ Be(D.value), ie.x = 0, ie.y = 0, Ke.value = !1;
490
+ const d = me ? "touchmove" : "mousemove", b = me ? "touchend" : "mouseup";
491
+ document.removeEventListener(d, $e), document.removeEventListener(b, We);
492
492
  }
493
493
  function ge() {
494
494
  !c.autoplay || c.autoplay <= 0 || (q = setInterval(() => {
@@ -502,79 +502,79 @@ const Ya = ae({
502
502
  Oe(), ge();
503
503
  }
504
504
  const be = S(!1);
505
- function Be(s, b = !1) {
505
+ function Be(d, b = !1) {
506
506
  if (!b && be.value)
507
507
  return;
508
- let y = s, B = s;
509
- A.value = k.value, c.wrapAround ? B = fa({
508
+ let y = d, w = d;
509
+ E.value = k.value, c.wrapAround ? w = pa({
510
510
  val: y,
511
- max: $.value,
512
- min: Q.value
511
+ max: _.value,
512
+ min: ee.value
513
513
  }) : y = Ie({
514
514
  val: y,
515
- max: $.value,
516
- min: Q.value
515
+ max: _.value,
516
+ min: ee.value
517
517
  }), r("slide-start", {
518
- slidingToIndex: s,
518
+ slidingToIndex: d,
519
519
  currentSlideIndex: k.value,
520
- prevSlideIndex: A.value,
520
+ prevSlideIndex: E.value,
521
521
  slidesCount: g.value
522
- }), Oe(), be.value = !0, k.value = y, B !== y && he.pause(), r("update:modelValue", B), Ne = setTimeout(() => {
523
- c.wrapAround && B !== y && (he.resume(), k.value = B, r("loop", {
522
+ }), Oe(), be.value = !0, k.value = y, w !== y && he.pause(), r("update:modelValue", w), Ne = setTimeout(() => {
523
+ c.wrapAround && w !== y && (he.resume(), k.value = w, r("loop", {
524
524
  currentSlideIndex: k.value,
525
- slidingToIndex: s
525
+ slidingToIndex: d
526
526
  })), r("slide-end", {
527
527
  currentSlideIndex: k.value,
528
- prevSlideIndex: A.value,
528
+ prevSlideIndex: E.value,
529
529
  slidesCount: g.value
530
530
  }), be.value = !1, ce();
531
531
  }, c.transition);
532
532
  }
533
- function Pe(s = !1) {
534
- Be(k.value + c.itemsToScroll, s);
533
+ function Pe(d = !1) {
534
+ Be(k.value + c.itemsToScroll, d);
535
535
  }
536
- function Ue(s = !1) {
537
- Be(k.value - c.itemsToScroll, s);
536
+ function Fe(d = !1) {
537
+ Be(k.value - c.itemsToScroll, d);
538
538
  }
539
539
  function pt() {
540
540
  we(), se(), pe(), ce();
541
541
  }
542
- U(() => [I.value, e.breakpoints], () => we(), { deep: !0 }), U(() => e.autoplay, () => ce());
543
- const he = U(() => e.modelValue, (s) => {
544
- s !== k.value && Be(Number(s), !0);
542
+ F(() => [B.value, e.breakpoints], () => we(), { deep: !0 }), F(() => e.autoplay, () => ce());
543
+ const he = F(() => e.modelValue, (d) => {
544
+ d !== k.value && Be(Number(d), !0);
545
545
  });
546
546
  r("before-init");
547
- const Fe = u(() => {
547
+ const Ue = s(() => {
548
548
  if (!c.wrapAround)
549
549
  return { before: 0, after: 0 };
550
- if (x.value)
550
+ if (P.value)
551
551
  return { before: f.length, after: f.length };
552
- const s = Number(c.itemsToShow), b = Math.ceil(s + (c.itemsToScroll - 1)), y = b - T.value, B = b - (g.value - (T.value + 1));
552
+ const d = Number(c.itemsToShow), b = Math.ceil(d + (c.itemsToScroll - 1)), y = b - D.value, w = b - (g.value - (D.value + 1));
553
553
  return {
554
554
  before: Math.max(0, y),
555
- after: Math.max(0, B)
555
+ after: Math.max(0, w)
556
556
  };
557
- }), xe = u(() => Fe.value.before ? x.value ? z.value.slice(-1 * Fe.value.before).reduce((s, b) => s + b[_.value] + c.gap, 0) * -1 : Fe.value.before * d.value * -1 : 0), it = u(() => {
558
- var s;
559
- if (x.value) {
557
+ }), xe = s(() => Ue.value.before ? P.value ? z.value.slice(-1 * Ue.value.before).reduce((d, b) => d + b[N.value] + c.gap, 0) * -1 : Ue.value.before * K.value * -1 : 0), it = s(() => {
558
+ var d;
559
+ if (P.value) {
560
560
  const b = (k.value % f.length + f.length) % f.length;
561
- return Ut({
562
- slideSize: (s = z.value[b]) === null || s === void 0 ? void 0 : s[_.value],
563
- viewportSize: Le.value[_.value],
561
+ return Ft({
562
+ slideSize: (d = z.value[b]) === null || d === void 0 ? void 0 : d[N.value],
563
+ viewportSize: Le.value[N.value],
564
564
  align: c.snapAlign
565
565
  });
566
566
  }
567
- return Ut({
567
+ return Ft({
568
568
  align: c.snapAlign,
569
569
  itemsToShow: +c.itemsToShow
570
570
  });
571
- }), Je = u(() => {
572
- let s = 0;
573
- if (x.value) {
574
- if (k.value < 0 ? s = z.value.slice(k.value).reduce((b, y) => b + y[_.value] + c.gap, 0) * -1 : s = z.value.slice(0, k.value).reduce((b, y) => b + y[_.value] + c.gap, 0), s -= it.value, !c.wrapAround) {
575
- const b = z.value.reduce((y, B) => y + B[_.value] + c.gap, 0) - Le.value[_.value] - c.gap;
576
- s = Ie({
577
- val: s,
571
+ }), Je = s(() => {
572
+ let d = 0;
573
+ if (P.value) {
574
+ if (k.value < 0 ? d = z.value.slice(k.value).reduce((b, y) => b + y[N.value] + c.gap, 0) * -1 : d = z.value.slice(0, k.value).reduce((b, y) => b + y[N.value] + c.gap, 0), d -= it.value, !c.wrapAround) {
575
+ const b = z.value.reduce((y, w) => y + w[N.value] + c.gap, 0) - Le.value[N.value] - c.gap;
576
+ d = Ie({
577
+ val: d,
578
578
  max: b,
579
579
  min: 0
580
580
  });
@@ -585,12 +585,12 @@ const Ya = ae({
585
585
  val: b,
586
586
  max: g.value - +c.itemsToShow,
587
587
  min: 0
588
- })), s = b * d.value;
588
+ })), d = b * K.value;
589
589
  }
590
- return s * (le.value ? 1 : -1);
591
- }), ve = u(() => {
592
- var s, b;
593
- if (!x.value) {
590
+ return d * (O.value ? 1 : -1);
591
+ }), ve = s(() => {
592
+ var d, b;
593
+ if (!P.value) {
594
594
  const R = k.value - it.value;
595
595
  return c.wrapAround ? {
596
596
  min: Math.floor(R),
@@ -610,58 +610,58 @@ const Ya = ae({
610
610
  }
611
611
  let y = 0;
612
612
  {
613
- let R = 0, G = 0 - Fe.value.before;
614
- const ee = Math.abs(Je.value + xe.value);
615
- for (; R <= ee; ) {
616
- const ne = (G % f.length + f.length) % f.length;
617
- R += ((s = z.value[ne]) === null || s === void 0 ? void 0 : s[_.value]) + c.gap, G++;
613
+ let R = 0, G = 0 - Ue.value.before;
614
+ const te = Math.abs(Je.value + xe.value);
615
+ for (; R <= te; ) {
616
+ const oe = (G % f.length + f.length) % f.length;
617
+ R += ((d = z.value[oe]) === null || d === void 0 ? void 0 : d[N.value]) + c.gap, G++;
618
618
  }
619
619
  y = G - 1;
620
620
  }
621
- let B = 0;
621
+ let w = 0;
622
622
  {
623
623
  let R = y, G = 0;
624
- for (R < 0 ? G = z.value.slice(0, R).reduce((ee, ne) => ee + ne[_.value] + c.gap, 0) - Math.abs(Je.value + xe.value) : G = z.value.slice(0, R).reduce((ee, ne) => ee + ne[_.value] + c.gap, 0) - Math.abs(Je.value); G < Le.value[_.value]; ) {
625
- const ee = (R % f.length + f.length) % f.length;
626
- G += ((b = z.value[ee]) === null || b === void 0 ? void 0 : b[_.value]) + c.gap, R++;
624
+ for (R < 0 ? G = z.value.slice(0, R).reduce((te, oe) => te + oe[N.value] + c.gap, 0) - Math.abs(Je.value + xe.value) : G = z.value.slice(0, R).reduce((te, oe) => te + oe[N.value] + c.gap, 0) - Math.abs(Je.value); G < Le.value[N.value]; ) {
625
+ const te = (R % f.length + f.length) % f.length;
626
+ G += ((b = z.value[te]) === null || b === void 0 ? void 0 : b[N.value]) + c.gap, R++;
627
627
  }
628
- B = R - 1;
628
+ w = R - 1;
629
629
  }
630
630
  return {
631
631
  min: Math.floor(y),
632
- max: Math.ceil(B)
632
+ max: Math.ceil(w)
633
633
  };
634
- }), Et = u(() => {
634
+ }), Et = s(() => {
635
635
  if (c.slideEffect === "fade")
636
636
  return;
637
- const s = P.value ? "Y" : "X", b = P.value ? ie.y : ie.x;
637
+ const d = J.value ? "Y" : "X", b = J.value ? ie.y : ie.x;
638
638
  let y = Je.value + b;
639
639
  if (!c.wrapAround && c.preventExcessiveDragging) {
640
- let B = 0;
641
- x.value ? B = z.value.reduce((ee, ne) => ee + ne[_.value], 0) : B = (g.value - Number(c.itemsToShow)) * d.value;
642
- const R = le.value ? 0 : -1 * B, G = le.value ? B : 0;
640
+ let w = 0;
641
+ P.value ? w = z.value.reduce((te, oe) => te + oe[N.value], 0) : w = (g.value - Number(c.itemsToShow)) * K.value;
642
+ const R = O.value ? 0 : -1 * w, G = O.value ? w : 0;
643
643
  y = Ie({
644
644
  val: y,
645
645
  min: R,
646
646
  max: G
647
647
  });
648
648
  }
649
- return `translate${s}(${y}px)`;
650
- }), At = u(() => ({
649
+ return `translate${d}(${y}px)`;
650
+ }), At = s(() => ({
651
651
  "--vc-transition-duration": be.value ? Ct(c.transition, "ms") : void 0,
652
652
  "--vc-slide-gap": Ct(c.gap),
653
653
  "--vc-carousel-height": Ct(c.height),
654
654
  "--vc-cloned-offset": Ct(xe.value)
655
- })), rt = { slideTo: Be, next: Pe, prev: Ue }, mt = _t({
656
- activeSlide: T,
655
+ })), rt = { slideTo: Be, next: Pe, prev: Fe }, mt = _t({
656
+ activeSlide: D,
657
657
  config: c,
658
658
  currentSlide: k,
659
659
  isSliding: be,
660
- isVertical: P,
661
- maxSlide: $,
662
- minSlide: Q,
660
+ isVertical: J,
661
+ maxSlide: _,
662
+ minSlide: ee,
663
663
  nav: rt,
664
- normalizedDir: w,
664
+ normalizedDir: u,
665
665
  slideRegistry: a,
666
666
  slideSize: o,
667
667
  slides: f,
@@ -669,13 +669,13 @@ const Ya = ae({
669
669
  viewport: C,
670
670
  visibleRange: ve
671
671
  });
672
- ta(He, mt);
672
+ aa(He, mt);
673
673
  const Qe = _t({
674
674
  config: c,
675
675
  currentSlide: k,
676
- maxSlide: $,
676
+ maxSlide: _,
677
677
  middleSlide: Ce,
678
- minSlide: Q,
678
+ minSlide: ee,
679
679
  slideSize: o,
680
680
  slidesCount: g
681
681
  });
@@ -683,48 +683,48 @@ const Ya = ae({
683
683
  data: Qe,
684
684
  nav: rt,
685
685
  next: Pe,
686
- prev: Ue,
686
+ prev: Fe,
687
687
  restartCarousel: pt,
688
688
  slideTo: Be,
689
689
  updateBreakpointsConfig: we,
690
690
  updateSlideSize: pe,
691
691
  updateSlidesData: se
692
692
  }), () => {
693
- var s;
694
- const b = i.default || i.slides, y = (b == null ? void 0 : b(Qe)) || [], { before: B, after: R } = Fe.value, G = Kt({
693
+ var d;
694
+ const b = i.default || i.slides, y = (b == null ? void 0 : b(Qe)) || [], { before: w, after: R } = Ue.value, G = Wt({
695
695
  slides: f,
696
696
  position: "before",
697
- toShow: B
698
- }), ee = Kt({
697
+ toShow: w
698
+ }), te = Wt({
699
699
  slides: f,
700
700
  position: "after",
701
701
  toShow: R
702
- }), ne = [...G, ...y, ...ee];
703
- if (!c.enabled || !ne.length)
702
+ }), oe = [...G, ...y, ...te];
703
+ if (!c.enabled || !oe.length)
704
704
  return X("section", {
705
705
  ref: m,
706
706
  class: ["carousel", "is-disabled"]
707
- }, ne);
708
- const gt = ((s = i.addons) === null || s === void 0 ? void 0 : s.call(i, Qe)) || [], Vt = X("ol", {
707
+ }, oe);
708
+ const gt = ((d = i.addons) === null || d === void 0 ? void 0 : d.call(i, Qe)) || [], Vt = X("ol", {
709
709
  class: "carousel__track",
710
710
  style: { transform: Et.value },
711
711
  onMousedownCapture: c.mouseDrag ? ft : null,
712
712
  onTouchstartPassiveCapture: c.touchDrag ? ft : null
713
- }, ne), Rt = X("div", { class: "carousel__viewport", ref: C }, Vt);
713
+ }, oe), Rt = X("div", { class: "carousel__viewport", ref: C }, Vt);
714
714
  return X("section", {
715
715
  ref: m,
716
716
  class: [
717
717
  "carousel",
718
- `is-${w.value}`,
718
+ `is-${u.value}`,
719
719
  `is-effect-${c.slideEffect}`,
720
720
  {
721
- "is-vertical": P.value,
721
+ "is-vertical": J.value,
722
722
  "is-sliding": be.value,
723
723
  "is-dragging": Ke.value,
724
724
  "is-hover": Ye.value
725
725
  }
726
726
  ],
727
- dir: w.value,
727
+ dir: u.value,
728
728
  style: At.value,
729
729
  "aria-label": c.i18n.ariaGallery,
730
730
  tabindex: "0",
@@ -732,42 +732,42 @@ const Ya = ae({
732
732
  onBlur: vt,
733
733
  onMouseenter: It,
734
734
  onMouseleave: ot
735
- }, [Rt, gt, X(Ya)]);
735
+ }, [Rt, gt, X(Ka)]);
736
736
  };
737
737
  }
738
738
  });
739
- var Ft;
739
+ var Ut;
740
740
  (function(e) {
741
741
  e.arrowDown = "arrowDown", e.arrowLeft = "arrowLeft", e.arrowRight = "arrowRight", e.arrowUp = "arrowUp";
742
- })(Ft || (Ft = {}));
743
- const xt = (e) => `icon${e.charAt(0).toUpperCase() + e.slice(1)}`, xa = {
742
+ })(Ut || (Ut = {}));
743
+ const Jt = (e) => `icon${e.charAt(0).toUpperCase() + e.slice(1)}`, Ja = {
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 Ja(e) {
750
- return e in Ft;
749
+ function Qa(e) {
750
+ return e in Ut;
751
751
  }
752
- const Jt = (e) => e && Ja(e), Qt = ae({
752
+ const Qt = (e) => e && Qa(e), Zt = le({
753
753
  props: {
754
754
  name: {
755
755
  type: String,
756
756
  required: !0,
757
- validator: Jt
757
+ validator: Qt
758
758
  },
759
759
  title: {
760
760
  type: String,
761
- default: (e) => e.name ? F.i18n[xt(e.name)] : ""
761
+ default: (e) => e.name ? U.i18n[Jt(e.name)] : ""
762
762
  }
763
763
  },
764
764
  setup(e) {
765
765
  const i = ut(He, null);
766
766
  return () => {
767
767
  const r = e.name;
768
- if (!r || !Jt(r))
768
+ if (!r || !Qt(r))
769
769
  return;
770
- const n = xa[r], l = X("path", { d: n }), a = (i == null ? void 0 : i.config.i18n[xt(r)]) || e.title, f = X("title", a);
770
+ const n = Ja[r], l = X("path", { d: n }), a = (i == null ? void 0 : i.config.i18n[Jt(r)]) || e.title, f = X("title", a);
771
771
  return X("svg", {
772
772
  class: "carousel__icon",
773
773
  viewBox: "0 0 24 24",
@@ -776,7 +776,7 @@ const Jt = (e) => e && Ja(e), Qt = ae({
776
776
  }, [f, l]);
777
777
  };
778
778
  }
779
- }), Qa = ae({
779
+ }), Za = le({
780
780
  name: "CarouselNavigation",
781
781
  inheritAttrs: !1,
782
782
  setup(e, { slots: i, attrs: r }) {
@@ -793,21 +793,21 @@ const Jt = (e) => e && Ja(e), Qt = ae({
793
793
  ltr: "arrowRight",
794
794
  rtl: "arrowLeft",
795
795
  ttb: "arrowDown"
796
- })[n.normalizedDir], m = u(() => !n.config.wrapAround && n.currentSlide <= n.minSlide), C = u(() => !n.config.wrapAround && n.currentSlide >= n.maxSlide);
796
+ })[n.normalizedDir], m = s(() => !n.config.wrapAround && n.currentSlide <= n.minSlide), C = s(() => !n.config.wrapAround && n.currentSlide >= n.maxSlide);
797
797
  return () => {
798
- const { i18n: o } = n.config, I = X("button", Object.assign(Object.assign({ type: "button", disabled: m.value, "aria-label": o.ariaPreviousSlide, title: o.ariaPreviousSlide, onClick: n.nav.prev }, r), { class: [
798
+ const { i18n: o } = n.config, B = X("button", Object.assign(Object.assign({ type: "button", disabled: m.value, "aria-label": o.ariaPreviousSlide, title: o.ariaPreviousSlide, onClick: n.nav.prev }, r), { class: [
799
799
  "carousel__prev",
800
800
  { "carousel__prev--disabled": m.value },
801
801
  r.class
802
- ] }), (a == null ? void 0 : a()) || X(Qt, { name: f() })), c = X("button", Object.assign(Object.assign({ type: "button", disabled: C.value, "aria-label": o.ariaNextSlide, title: o.ariaNextSlide, onClick: n.nav.next }, r), { class: [
802
+ ] }), (a == null ? void 0 : a()) || X(Zt, { name: f() })), c = X("button", Object.assign(Object.assign({ type: "button", disabled: C.value, "aria-label": o.ariaNextSlide, title: o.ariaNextSlide, onClick: n.nav.next }, r), { class: [
803
803
  "carousel__next",
804
804
  { "carousel__next--disabled": C.value },
805
805
  r.class
806
- ] }), (l == null ? void 0 : l()) || X(Qt, { name: g() }));
807
- return [I, c];
806
+ ] }), (l == null ? void 0 : l()) || X(Zt, { name: g() }));
807
+ return [B, c];
808
808
  };
809
809
  }
810
- }), Za = ae({
810
+ }), el = le({
811
811
  name: "CarouselPagination",
812
812
  props: {
813
813
  disableOnClick: {
@@ -821,10 +821,10 @@ const Jt = (e) => e && Ja(e), Qt = ae({
821
821
  const i = ut(He);
822
822
  if (!i)
823
823
  return () => "";
824
- const r = u(() => i.config.itemsToShow), n = u(() => Ut({
824
+ const r = s(() => i.config.itemsToShow), n = s(() => Ft({
825
825
  align: i.config.snapAlign,
826
826
  itemsToShow: r.value
827
- })), l = u(() => e.paginateByItemsToShow && r.value > 1), a = u(() => Math.ceil((i.activeSlide - n.value) / r.value)), f = u(() => Math.ceil(i.slidesCount / r.value)), g = (m) => fa(l.value ? {
827
+ })), l = s(() => e.paginateByItemsToShow && r.value > 1), a = s(() => Math.ceil((i.activeSlide - n.value) / r.value)), f = s(() => Math.ceil(i.slidesCount / r.value)), g = (m) => pa(l.value ? {
828
828
  val: a.value,
829
829
  max: f.value - 1,
830
830
  min: 0
@@ -836,10 +836,10 @@ const Jt = (e) => e && Ja(e), Qt = ae({
836
836
  return () => {
837
837
  var m, C;
838
838
  const o = [];
839
- for (let I = l.value ? 0 : i.minSlide; I <= (l.value ? f.value - 1 : i.maxSlide); I++) {
840
- const c = va(i.config.i18n[l.value ? "ariaNavigateToPage" : "ariaNavigateToSlide"], {
841
- slideNumber: I + 1
842
- }), k = g(I), T = X("button", {
839
+ for (let B = l.value ? 0 : i.minSlide; B <= (l.value ? f.value - 1 : i.maxSlide); B++) {
840
+ const c = fa(i.config.i18n[l.value ? "ariaNavigateToPage" : "ariaNavigateToSlide"], {
841
+ slideNumber: B + 1
842
+ }), k = g(B), D = X("button", {
843
843
  type: "button",
844
844
  class: {
845
845
  "carousel__pagination-button": !0,
@@ -847,22 +847,22 @@ const Jt = (e) => e && Ja(e), Qt = ae({
847
847
  },
848
848
  "aria-label": c,
849
849
  "aria-pressed": k,
850
- "aria-controls": (C = (m = i.slides[I]) === null || m === void 0 ? void 0 : m.exposed) === null || C === void 0 ? void 0 : C.id,
850
+ "aria-controls": (C = (m = i.slides[B]) === null || m === void 0 ? void 0 : m.exposed) === null || C === void 0 ? void 0 : C.id,
851
851
  title: c,
852
852
  disabled: e.disableOnClick,
853
- onClick: () => i.nav.slideTo(l.value ? Math.floor(I * +i.config.itemsToShow + n.value) : I)
854
- }), A = X("li", { class: "carousel__pagination-item", key: I }, T);
855
- o.push(A);
853
+ onClick: () => i.nav.slideTo(l.value ? Math.floor(B * +i.config.itemsToShow + n.value) : B)
854
+ }), E = X("li", { class: "carousel__pagination-item", key: B }, D);
855
+ o.push(E);
856
856
  }
857
857
  return X("ol", { class: "carousel__pagination" }, o);
858
858
  };
859
859
  }
860
- }), Zt = ae({
860
+ }), ea = le({
861
861
  name: "CarouselSlide",
862
862
  props: {
863
863
  id: {
864
864
  type: String,
865
- default: (e) => e.isClone ? void 0 : wa()
865
+ default: (e) => e.isClone ? void 0 : Ba()
866
866
  },
867
867
  index: {
868
868
  type: Number,
@@ -879,33 +879,33 @@ const Jt = (e) => e && Ja(e), Qt = ae({
879
879
  },
880
880
  setup(e, { attrs: i, slots: r, expose: n }) {
881
881
  const l = ut(He);
882
- if (ta(He, void 0), !l)
882
+ if (aa(He, void 0), !l)
883
883
  return () => "";
884
- const a = S(e.index), f = (T) => {
885
- a.value = T;
886
- }, g = Ba(), m = () => {
887
- const T = g.vnode.el;
888
- return T ? T.getBoundingClientRect() : { width: 0, height: 0 };
884
+ const a = S(e.index), f = (D) => {
885
+ a.value = D;
886
+ }, g = Da(), m = () => {
887
+ const D = g.vnode.el;
888
+ return D ? D.getBoundingClientRect() : { width: 0, height: 0 };
889
889
  };
890
890
  n({
891
891
  id: e.id,
892
892
  setIndex: f,
893
893
  getBoundingRect: m
894
894
  });
895
- const C = u(() => a.value === l.activeSlide), o = u(() => a.value === l.activeSlide - 1), I = u(() => a.value === l.activeSlide + 1), c = u(() => a.value >= l.visibleRange.min && a.value <= l.visibleRange.max), k = u(() => {
895
+ const C = s(() => a.value === l.activeSlide), o = s(() => a.value === l.activeSlide - 1), B = s(() => a.value === l.activeSlide + 1), c = s(() => a.value >= l.visibleRange.min && a.value <= l.visibleRange.max), k = s(() => {
896
896
  if (l.config.itemsToShow === "auto")
897
897
  return;
898
- const T = l.config.itemsToShow, A = l.config.gap > 0 && T > 1 ? `calc(${100 / T}% - ${l.config.gap * (T - 1) / T}px)` : `${100 / T}%`;
899
- return l.isVertical ? { height: A } : { width: A };
898
+ const D = l.config.itemsToShow, E = l.config.gap > 0 && D > 1 ? `calc(${100 / D}% - ${l.config.gap * (D - 1) / D}px)` : `${100 / D}%`;
899
+ return l.isVertical ? { height: E } : { width: E };
900
900
  });
901
- return l.slideRegistry.registerSlide(g, e.index), Da(() => {
901
+ return l.slideRegistry.registerSlide(g, e.index), Ia(() => {
902
902
  l.slideRegistry.unregisterSlide(g);
903
903
  }), e.isClone && (jt(() => {
904
- Wt(g.vnode);
905
- }), Ia(() => {
906
- Wt(g.vnode);
904
+ xt(g.vnode);
905
+ }), Ta(() => {
906
+ xt(g.vnode);
907
907
  })), () => {
908
- var T, A;
908
+ var D, E;
909
909
  return l.config.enabled ? X("li", {
910
910
  style: [i.style, Object.assign({}, k.value)],
911
911
  class: {
@@ -914,7 +914,7 @@ const Jt = (e) => e && Ja(e), Qt = ae({
914
914
  "carousel__slide--visible": c.value,
915
915
  "carousel__slide--active": C.value,
916
916
  "carousel__slide--prev": o.value,
917
- "carousel__slide--next": I.value,
917
+ "carousel__slide--next": B.value,
918
918
  "carousel__slide--sliding": l.isSliding
919
919
  },
920
920
  onFocusin: () => {
@@ -922,18 +922,18 @@ const Jt = (e) => e && Ja(e), Qt = ae({
922
922
  },
923
923
  id: e.isClone ? void 0 : e.id,
924
924
  "aria-hidden": e.isClone || void 0
925
- }, (A = r.default) === null || A === void 0 ? void 0 : A.call(r, {
925
+ }, (E = r.default) === null || E === void 0 ? void 0 : E.call(r, {
926
926
  currentIndex: a.value,
927
927
  isActive: C.value,
928
928
  isClone: e.isClone,
929
929
  isPrev: o.value,
930
- isNext: I.value,
930
+ isNext: B.value,
931
931
  isSliding: l.isSliding,
932
932
  isVisible: c.value
933
- })) : (T = r.default) === null || T === void 0 ? void 0 : T.call(r);
933
+ })) : (D = r.default) === null || D === void 0 ? void 0 : D.call(r);
934
934
  };
935
935
  }
936
- }), el = (e, i, r, n) => {
936
+ }), tl = (e, i, r, n) => {
937
937
  if (!r) return 0;
938
938
  let l = String(e[r.key]).toLowerCase(), a = String(i[r.key]).toLowerCase();
939
939
  if (n === je.Asc) {
@@ -952,37 +952,37 @@ const Jt = (e) => e && Ja(e), Qt = ae({
952
952
  }
953
953
  if (e.formatter && typeof e.formatter == "function") {
954
954
  let l = e.formatter(i[e.key], i, e, r);
955
- return l.startsWith("__:") ? Aa(l.substring(3)) : l;
955
+ return l.startsWith("__:") ? Va(l.substring(3)) : l;
956
956
  }
957
957
  return i[e.key];
958
- }, tl = (e, i, r) => {
958
+ }, al = (e, i, r) => {
959
959
  if (!e.colspan) return -1;
960
960
  let n = i;
961
961
  return r.forEach((l) => {
962
962
  let a = zt(e, l);
963
963
  a > 0 && a < n && (n = a);
964
964
  }), n;
965
- }, zt = (e, i) => e.colspan === !1 ? !1 : typeof e.colspan == "function" ? e.colspan(i) : e.colspan, al = (e, i) => typeof e.preferSlot > "u" ? !0 : e.preferSlot === !1 ? !1 : typeof e.preferSlot == "function" ? e.preferSlot(i) : !0, ll = (e, i, r) => {
965
+ }, zt = (e, i) => e.colspan === !1 ? !1 : typeof e.colspan == "function" ? e.colspan(i) : e.colspan, ll = (e, i) => typeof e.preferSlot > "u" ? !0 : e.preferSlot === !1 ? !1 : typeof e.preferSlot == "function" ? e.preferSlot(i) : !0, nl = (e, i, r) => {
966
966
  if (typeof e != "object" || !e.key || i.indexOf(e.key) > -1) return !1;
967
967
  let n = zt(e, r);
968
968
  return typeof e.colspan > "u" ? !0 : (typeof e.colspan < "u" && (typeof e.colspan == "function" ? n = parseInt(e.colspan(r)) : n = parseInt(e.colspan)), n > 0);
969
- }, nl = (e = []) => {
969
+ }, ol = (e = []) => {
970
970
  if (e.length > 0) {
971
971
  for (let i = 0; i < e.length; ++i)
972
972
  if (e[i].sortable) return e[i].key;
973
973
  }
974
974
  return "";
975
- }, ol = (e, i) => {
975
+ }, il = (e, i) => {
976
976
  if (e.length > 0) {
977
977
  for (let r = 0; r < e.length; ++r)
978
978
  if (e[r].key === i) return e[r];
979
979
  }
980
980
  return null;
981
- }, pa = (e) => e.type ? `is-${e.type}` : "", ma = /* @__PURE__ */ ae({
981
+ }, ma = (e) => e.type ? `is-${e.type}` : "", ga = /* @__PURE__ */ le({
982
982
  __name: "LktTableCell",
983
983
  props: {
984
984
  modelValue: { default: () => ({}) },
985
- column: { default: () => new na() },
985
+ column: { default: () => new oa() },
986
986
  columns: { default: () => [] },
987
987
  i: { default: 0 },
988
988
  editModeEnabled: { type: Boolean, default: !1 },
@@ -993,55 +993,55 @@ const Jt = (e) => e && Ja(e), Qt = ae({
993
993
  ],
994
994
  setup(e, { emit: i }) {
995
995
  const r = i, n = e, l = S(n.modelValue), a = S(l.value[n.column.key]), f = S(null);
996
- U(a, (o) => {
997
- const I = JSON.parse(JSON.stringify(l.value));
998
- I[n.column.key] = o, r("update:modelValue", I);
999
- }), U(() => n.modelValue, (o) => {
996
+ F(a, (o) => {
997
+ const B = JSON.parse(JSON.stringify(l.value));
998
+ B[n.column.key] = o, r("update:modelValue", B);
999
+ }), F(() => n.modelValue, (o) => {
1000
1000
  l.value = o, a.value = l.value[n.column.key];
1001
1001
  });
1002
- const g = u(() => ({ ...n.column.slotData, item: l.value })), m = u(() => {
1003
- var o, I, c, k;
1004
- if ((o = n.column.field) != null && o.modalData && typeof ((I = n.column.field) == null ? void 0 : I.modalData) == "object")
1005
- for (let T in n.column.field.modalData)
1006
- if (typeof ((c = n.column.field) == null ? void 0 : c.modalData[T]) == "string" && n.column.field.modalData[T].startsWith("prop:")) {
1007
- let A = n.column.field.modalData[T].substring(5);
1008
- l.value[A];
1002
+ const g = s(() => ({ ...n.column.slotData, item: l.value })), m = s(() => {
1003
+ var o, B, c, k;
1004
+ if ((o = n.column.field) != null && o.modalData && typeof ((B = n.column.field) == null ? void 0 : B.modalData) == "object")
1005
+ for (let D in n.column.field.modalData)
1006
+ if (typeof ((c = n.column.field) == null ? void 0 : c.modalData[D]) == "string" && n.column.field.modalData[D].startsWith("prop:")) {
1007
+ let E = n.column.field.modalData[D].substring(5);
1008
+ l.value[E];
1009
1009
  } else
1010
- n.column.field.modalData[T];
1010
+ n.column.field.modalData[D];
1011
1011
  return (k = n.column.field) == null ? void 0 : k.modalData;
1012
- }), C = u(() => typeof n.column.field == "string" && n.column.field.startsWith("prop:") ? Va(n.column.field, l.value) : n.column.field);
1013
- return (o, I) => {
1014
- var A, Ce, $, Q;
1015
- const c = Se("lkt-anchor"), k = Se("lkt-button"), T = Se("lkt-field");
1016
- return o.column.type === D(kt).Anchor ? (v(), O(c, Re(fe({ key: 0 }, o.column.anchor)), {
1012
+ }), C = s(() => typeof n.column.field == "string" && n.column.field.startsWith("prop:") ? Ra(n.column.field, l.value) : n.column.field);
1013
+ return (o, B) => {
1014
+ var E, Ce, _, ee;
1015
+ const c = Se("lkt-anchor"), k = Se("lkt-button"), D = Se("lkt-field");
1016
+ return o.column.type === T(kt).Anchor ? (v(), $(c, Re(fe({ key: 0 }, o.column.anchor)), {
1017
1017
  default: j(() => [
1018
- lt(ze(D(nt)(o.column, l.value, o.i)), 1)
1018
+ lt(ze(T(nt)(o.column, l.value, o.i)), 1)
1019
1019
  ]),
1020
1020
  _: 1
1021
- }, 16)) : o.column.type === D(kt).Button ? (v(), O(k, fe({ key: 1 }, o.column.button, { prop: l.value }), {
1021
+ }, 16)) : o.column.type === T(kt).Button ? (v(), $(k, fe({ key: 1 }, o.column.button, { prop: l.value }), {
1022
1022
  default: j(() => [
1023
- lt(ze(D(nt)(o.column, l.value, o.i)), 1)
1023
+ lt(ze(T(nt)(o.column, l.value, o.i)), 1)
1024
1024
  ]),
1025
1025
  _: 1
1026
- }, 16, ["prop"])) : o.column.type === D(kt).Field && o.hasInlineEditPerm ? (v(), O(T, fe({ key: 2 }, C.value, {
1026
+ }, 16, ["prop"])) : o.column.type === T(kt).Field && o.hasInlineEditPerm ? (v(), $(D, fe({ key: 2 }, C.value, {
1027
1027
  "read-mode": !o.column.editable || !o.editModeEnabled,
1028
1028
  ref: (q) => f.value = q,
1029
1029
  "slot-data": g.value,
1030
- label: ((A = o.column.field) == null ? void 0 : A.type) === "switch" || ((Ce = o.column.field) == null ? void 0 : Ce.type) === "check" ? o.column.label : "",
1030
+ label: ((E = o.column.field) == null ? void 0 : E.type) === "switch" || ((Ce = o.column.field) == null ? void 0 : Ce.type) === "check" ? o.column.label : "",
1031
1031
  "modal-data": m.value,
1032
1032
  prop: l.value,
1033
1033
  modelValue: a.value,
1034
- "onUpdate:modelValue": I[0] || (I[0] = (q) => a.value = q)
1035
- }), null, 16, ["read-mode", "slot-data", "label", "modal-data", "prop", "modelValue"])) : o.column.type === D(kt).Field ? (v(), O(T, fe({ key: 3 }, C.value, {
1034
+ "onUpdate:modelValue": B[0] || (B[0] = (q) => a.value = q)
1035
+ }), null, 16, ["read-mode", "slot-data", "label", "modal-data", "prop", "modelValue"])) : o.column.type === T(kt).Field ? (v(), $(D, fe({ key: 3 }, C.value, {
1036
1036
  "read-mode": "",
1037
1037
  ref: (q) => f.value = q,
1038
1038
  "slot-data": g.value,
1039
- label: (($ = o.column.field) == null ? void 0 : $.type) === "switch" || ((Q = o.column.field) == null ? void 0 : Q.type) === "check" ? o.column.label : "",
1039
+ label: ((_ = o.column.field) == null ? void 0 : _.type) === "switch" || ((ee = o.column.field) == null ? void 0 : ee.type) === "check" ? o.column.label : "",
1040
1040
  "modal-data": m.value,
1041
1041
  prop: l.value,
1042
1042
  "model-value": a.value
1043
- }), null, 16, ["slot-data", "label", "modal-data", "prop", "model-value"])) : (v(), h(W, { key: 4 }, [
1044
- lt(ze(D(nt)(o.column, l.value, o.i, o.columns)), 1)
1043
+ }), null, 16, ["slot-data", "label", "modal-data", "prop", "model-value"])) : (v(), h(x, { key: 4 }, [
1044
+ lt(ze(T(nt)(o.column, l.value, o.i, o.columns)), 1)
1045
1045
  ], 64));
1046
1046
  };
1047
1047
  }
@@ -1049,7 +1049,7 @@ const Jt = (e) => e && Ja(e), Qt = ae({
1049
1049
  };
1050
1050
  Te.navButtonSlot = "", Te.dropButtonSlot = "", Te.editButtonSlot = "", Te.createButtonSlot = "", Te.defaultEmptySlot = void 0, Te.defaultSaveIcon = "", Te.defaultNoResultsMessage = "No results";
1051
1051
  let Y = Te;
1052
- const il = /* @__PURE__ */ ae({
1052
+ const rl = /* @__PURE__ */ le({
1053
1053
  __name: "DropButtonComponent",
1054
1054
  props: {
1055
1055
  config: {},
@@ -1060,22 +1060,22 @@ const il = /* @__PURE__ */ ae({
1060
1060
  "click"
1061
1061
  ],
1062
1062
  setup(e, { emit: i }) {
1063
- const r = i, n = e, l = u(() => Y.dropButtonSlot !== ""), a = u(() => Y.dropButtonSlot), f = u(() => oa(n.config.resourceData, n.item));
1063
+ const r = i, n = e, l = s(() => Y.dropButtonSlot !== ""), a = s(() => Y.dropButtonSlot), f = s(() => ia(n.config.resourceData, n.item));
1064
1064
  return (g, m) => {
1065
1065
  const C = Se("lkt-button");
1066
- return v(), O(C, fe({ palette: "table-delete" }, n.config, {
1066
+ return v(), $(C, fe({ palette: "table-delete" }, n.config, {
1067
1067
  disabled: g.disabled,
1068
1068
  "resource-data": f.value,
1069
- onClick: m[0] || (m[0] = aa((o) => r("click", o), ["prevent", "stop"]))
1069
+ onClick: m[0] || (m[0] = la((o) => r("click", o), ["prevent", "stop"]))
1070
1070
  }), {
1071
1071
  default: j(() => [
1072
- l.value ? (v(), O(Ae(a.value), { key: 0 })) : V("", !0)
1072
+ l.value ? (v(), $(Ae(a.value), { key: 0 })) : A("", !0)
1073
1073
  ]),
1074
1074
  _: 1
1075
1075
  }, 16, ["disabled", "resource-data"]);
1076
1076
  };
1077
1077
  }
1078
- }), rl = /* @__PURE__ */ ae({
1078
+ }), ul = /* @__PURE__ */ le({
1079
1079
  __name: "EditButtonComponent",
1080
1080
  props: {
1081
1081
  config: {},
@@ -1086,37 +1086,37 @@ const il = /* @__PURE__ */ ae({
1086
1086
  "click"
1087
1087
  ],
1088
1088
  setup(e, { emit: i }) {
1089
- const r = i, n = e, l = u(() => Y.editButtonSlot !== ""), a = u(() => Y.editButtonSlot), f = u(() => oa(n.config.resourceData, n.item));
1089
+ const r = i, n = e, l = s(() => Y.editButtonSlot !== ""), a = s(() => Y.editButtonSlot), f = s(() => ia(n.config.resourceData, n.item));
1090
1090
  return (g, m) => {
1091
1091
  const C = Se("lkt-button");
1092
- return v(), O(C, fe({ palette: "table-edit" }, n.config, {
1092
+ return v(), $(C, fe({ palette: "table-edit" }, n.config, {
1093
1093
  disabled: g.disabled,
1094
1094
  "resource-data": f.value,
1095
- onClick: m[0] || (m[0] = aa((o) => r("click"), ["prevent", "stop"]))
1095
+ onClick: m[0] || (m[0] = la((o) => r("click"), ["prevent", "stop"]))
1096
1096
  }), {
1097
1097
  default: j(() => [
1098
- l.value ? (v(), O(Ae(a.value), { key: 0 })) : V("", !0)
1098
+ l.value ? (v(), $(Ae(a.value), { key: 0 })) : A("", !0)
1099
1099
  ]),
1100
1100
  _: 1
1101
1101
  }, 16, ["disabled", "resource-data"]);
1102
1102
  };
1103
1103
  }
1104
- }), ul = ["data-i", "data-draggable"], sl = ["data-role", "data-i"], dl = {
1104
+ }), sl = ["data-i", "data-draggable"], dl = ["data-role", "data-i"], cl = {
1105
1105
  key: 1,
1106
1106
  class: "lkt-table-nav-cell"
1107
- }, cl = { class: "lkt-table-nav-container" }, vl = {
1107
+ }, vl = { class: "lkt-table-nav-container" }, fl = {
1108
1108
  key: 1,
1109
1109
  class: "lkt-icn-arrow-top"
1110
- }, fl = {
1110
+ }, pl = {
1111
1111
  key: 1,
1112
1112
  class: "lkt-icn-arrow-bottom"
1113
- }, pl = ["colspan"], ml = ["colspan"], gl = ["data-column", "colspan", "title"], bl = {
1113
+ }, ml = ["colspan"], gl = ["colspan"], bl = ["data-column", "colspan", "title"], hl = {
1114
1114
  key: 6,
1115
1115
  class: "lkt-table-col-drop"
1116
- }, hl = {
1116
+ }, yl = {
1117
1117
  key: 7,
1118
1118
  class: "lkt-table-col-edit"
1119
- }, yl = /* @__PURE__ */ ae({
1119
+ }, kl = /* @__PURE__ */ le({
1120
1120
  __name: "LktTableRow",
1121
1121
  props: {
1122
1122
  modelValue: { default: () => ({}) },
@@ -1140,7 +1140,8 @@ const il = /* @__PURE__ */ ae({
1140
1140
  emptyColumns: { default: () => [] },
1141
1141
  rowDisplayType: { type: [Number, Function], default: Ze.Auto },
1142
1142
  renderDrag: { type: [Boolean, Function], default: !0 },
1143
- disabledDrag: { type: [Boolean, Function], default: !0 }
1143
+ disabledDrag: { type: [Boolean, Function], default: !0 },
1144
+ itemContainerClass: { type: [String, Function], default: "" }
1144
1145
  },
1145
1146
  emits: [
1146
1147
  "update:modelValue",
@@ -1151,153 +1152,156 @@ const il = /* @__PURE__ */ ae({
1151
1152
  "item-drop"
1152
1153
  ],
1153
1154
  setup(e, { emit: i }) {
1154
- var Z;
1155
- const r = la(), n = i, l = e, a = S(l.modelValue);
1155
+ var K;
1156
+ const r = na(), n = i, l = e, a = S(l.modelValue);
1156
1157
  let f = typeof l.rowDisplayType == "function" ? l.rowDisplayType(a.value, l.i) : l.rowDisplayType;
1157
1158
  f || (f = Ze.Auto);
1158
- const g = [Ze.Auto, Ze.PreferCustomItem].includes(f), m = [Ze.Auto, Ze.PreferItem].includes(f), C = S((Z = l.editButton.anchor) == null ? void 0 : Z.to);
1159
- for (let d in a.value) C.value = ra(C.value, ":" + d, a.value[d]);
1160
- const o = (d) => n("click", d), I = (d, w) => {
1161
- n("show", d, w);
1162
- }, c = u(() => {
1163
- let d = [], w = !1;
1164
- return typeof l.disabledDrag == "function" ? w = l.disabledDrag(a.value) : w = q.value === !0, !w && l.sortable && l.isDraggable ? d.push("handle") : w && d.push("disabled"), d.join(" ");
1165
- }), k = u(() => Y.navButtonSlot !== ""), T = u(() => Y.navButtonSlot), A = () => {
1159
+ const g = [Ze.Auto, Ze.PreferCustomItem].includes(f), m = [Ze.Auto, Ze.PreferItem].includes(f), C = S((K = l.editButton.anchor) == null ? void 0 : K.to);
1160
+ for (let u in a.value) C.value = ua(C.value, ":" + u, a.value[u]);
1161
+ const o = (u) => n("click", u), B = (u, O) => {
1162
+ n("show", u, O);
1163
+ }, c = s(() => {
1164
+ let u = [], O = !1;
1165
+ return typeof l.disabledDrag == "function" ? O = l.disabledDrag(a.value) : O = q.value === !0, !O && l.sortable && l.isDraggable ? u.push("handle") : O && u.push("disabled"), u.join(" ");
1166
+ }), k = s(() => Y.navButtonSlot !== ""), D = s(() => Y.navButtonSlot), E = () => {
1166
1167
  n("item-up", l.i);
1167
1168
  }, Ce = () => {
1168
1169
  n("item-down", l.i);
1169
- }, $ = () => {
1170
+ }, _ = () => {
1170
1171
  n("item-drop", l.i);
1171
1172
  };
1172
- U(() => l.modelValue, (d) => a.value = d), U(a, (d) => {
1173
- n("update:modelValue", d);
1173
+ F(() => l.modelValue, (u) => a.value = u), F(a, (u) => {
1174
+ n("update:modelValue", u);
1174
1175
  }, { deep: !0 });
1175
- const Q = u(() => typeof l.renderDrag == "function" ? l.renderDrag(a.value) : l.renderDrag === !0), q = u(() => typeof l.disabledDrag == "function" ? l.disabledDrag(a.value) : l.disabledDrag === !0), Ne = u(() => c.value.includes("handle") ? "drag-indicator" : "invalid-drag-indicator");
1176
- return (d, w) => {
1177
- const le = Se("lkt-button");
1176
+ const ee = s(() => typeof l.renderDrag == "function" ? l.renderDrag(a.value) : l.renderDrag === !0), q = s(() => typeof l.disabledDrag == "function" ? l.disabledDrag(a.value) : l.disabledDrag === !0), Ne = s(() => c.value.includes("handle") ? "drag-indicator" : "invalid-drag-indicator"), ne = s(() => {
1177
+ let u = [];
1178
+ return g && u.push("type-custom-item"), m && u.push("type-item"), typeof l.itemContainerClass == "function" ? u.push(l.itemContainerClass(a.value)) : l.itemContainerClass !== "" && u.push(l.itemContainerClass), u.join(" ");
1179
+ });
1180
+ return (u, O) => {
1181
+ const J = Se("lkt-button");
1178
1182
  return v(), h("tr", {
1179
- "data-i": d.i,
1180
- "data-draggable": d.isDraggable,
1181
- class: oe({ "type-custom-item": D(g), "type-item": D(m) })
1183
+ "data-i": u.i,
1184
+ "data-draggable": u.isDraggable,
1185
+ class: Q(ne.value)
1182
1186
  }, [
1183
- d.sortable && d.editModeEnabled && Q.value ? (v(), h("td", {
1187
+ u.sortable && u.editModeEnabled && ee.value ? (v(), h("td", {
1184
1188
  key: 0,
1185
1189
  "data-role": Ne.value,
1186
- class: oe(c.value),
1187
- "data-i": d.i
1188
- }, w[3] || (w[3] = [
1189
- J("i", { class: "lkt-icn-drag-indicator" }, null, -1)
1190
- ]), 10, sl)) : V("", !0),
1191
- d.addNavigation && d.editModeEnabled ? (v(), h("td", dl, [
1192
- J("div", cl, [
1193
- Ee(le, {
1190
+ class: Q(c.value),
1191
+ "data-i": u.i
1192
+ }, O[3] || (O[3] = [
1193
+ Z("i", { class: "lkt-icn-drag-indicator" }, null, -1)
1194
+ ]), 10, dl)) : A("", !0),
1195
+ u.addNavigation && u.editModeEnabled ? (v(), h("td", cl, [
1196
+ Z("div", vl, [
1197
+ Ee(J, {
1194
1198
  palette: "table-nav",
1195
- disabled: d.i === 0,
1196
- onClick: A
1199
+ disabled: u.i === 0,
1200
+ onClick: E
1197
1201
  }, {
1198
1202
  default: j(() => [
1199
- k.value ? (v(), O(Ae(T.value), {
1203
+ k.value ? (v(), $(Ae(D.value), {
1200
1204
  key: 0,
1201
1205
  direction: "up"
1202
- })) : (v(), h("i", vl))
1206
+ })) : (v(), h("i", fl))
1203
1207
  ]),
1204
1208
  _: 1
1205
1209
  }, 8, ["disabled"]),
1206
- Ee(le, {
1210
+ Ee(J, {
1207
1211
  palette: "table-nav",
1208
- disabled: d.latestRow,
1212
+ disabled: u.latestRow,
1209
1213
  onClick: Ce
1210
1214
  }, {
1211
1215
  default: j(() => [
1212
- k.value ? (v(), O(Ae(T.value), {
1216
+ k.value ? (v(), $(Ae(D.value), {
1213
1217
  key: 0,
1214
1218
  direction: "down"
1215
- })) : (v(), h("i", fl))
1219
+ })) : (v(), h("i", pl))
1216
1220
  ]),
1217
1221
  _: 1
1218
1222
  }, 8, ["disabled"])
1219
1223
  ])
1220
- ])) : V("", !0),
1221
- d.displayHiddenColumnsIndicator ? (v(), h("td", {
1224
+ ])) : A("", !0),
1225
+ u.displayHiddenColumnsIndicator ? (v(), h("td", {
1222
1226
  key: 2,
1223
- onClick: w[0] || (w[0] = (P) => I(P, d.i)),
1227
+ onClick: O[0] || (O[0] = (P) => B(P, u.i)),
1224
1228
  "data-role": "show-more",
1225
- class: oe(d.hiddenIsVisible ? "state-open" : "")
1226
- }, null, 2)) : V("", !0),
1227
- D(g) && D(r)[`item-${d.i}`] ? (v(), h("td", {
1228
- key: "td" + d.i,
1229
- colspan: d.visibleColumns.length
1229
+ class: Q(u.hiddenIsVisible ? "state-open" : "")
1230
+ }, null, 2)) : A("", !0),
1231
+ T(g) && T(r)[`item-${u.i}`] ? (v(), h("td", {
1232
+ key: "td" + u.i,
1233
+ colspan: u.visibleColumns.length
1230
1234
  }, [
1231
- H(d.$slots, `item-${d.i}`, {
1235
+ H(u.$slots, `item-${u.i}`, {
1232
1236
  item: a.value,
1233
- index: d.i,
1234
- editing: d.editModeEnabled,
1235
- canCreate: d.canCreate,
1236
- canRead: d.canRead,
1237
- canUpdate: d.canEdit,
1238
- canDrop: d.canDrop,
1239
- isLoading: d.isLoading,
1240
- doDrop: () => $()
1237
+ index: u.i,
1238
+ editing: u.editModeEnabled,
1239
+ canCreate: u.canCreate,
1240
+ canRead: u.canRead,
1241
+ canUpdate: u.canEdit,
1242
+ canDrop: u.canDrop,
1243
+ isLoading: u.isLoading,
1244
+ doDrop: () => _()
1241
1245
  })
1242
- ], 8, pl)) : D(m) && D(r).item ? (v(), h("td", {
1243
- key: "td" + d.i,
1244
- colspan: d.visibleColumns.length
1246
+ ], 8, ml)) : T(m) && T(r).item ? (v(), h("td", {
1247
+ key: "td" + u.i,
1248
+ colspan: u.visibleColumns.length
1245
1249
  }, [
1246
- H(d.$slots, "item", {
1250
+ H(u.$slots, "item", {
1247
1251
  item: a.value,
1248
- index: d.i,
1249
- editing: d.editModeEnabled,
1250
- canCreate: d.canCreate,
1251
- canRead: d.canRead,
1252
- canUpdate: d.canEdit,
1253
- canDrop: d.canDrop,
1254
- isLoading: d.isLoading,
1255
- doDrop: () => $()
1252
+ index: u.i,
1253
+ editing: u.editModeEnabled,
1254
+ canCreate: u.canCreate,
1255
+ canRead: u.canRead,
1256
+ canUpdate: u.canEdit,
1257
+ canDrop: u.canDrop,
1258
+ isLoading: u.isLoading,
1259
+ doDrop: () => _()
1256
1260
  })
1257
- ], 8, ml)) : (v(!0), h(W, { key: 5 }, ue(d.visibleColumns, (P) => (v(), h(W, null, [
1258
- D(ll)(P, d.emptyColumns, a.value) ? (v(), h("td", {
1259
- key: "td" + d.i,
1261
+ ], 8, gl)) : (v(!0), h(x, { key: 5 }, ue(u.visibleColumns, (P) => (v(), h(x, null, [
1262
+ T(nl)(P, u.emptyColumns, a.value) ? (v(), h("td", {
1263
+ key: "td" + u.i,
1260
1264
  "data-column": P.key,
1261
- colspan: D(zt)(P, a.value),
1262
- title: D(nt)(P, a.value, d.i, d.visibleColumns),
1263
- class: oe(D(pa)(P)),
1264
- onClick: w[2] || (w[2] = (x) => o(x))
1265
+ colspan: T(zt)(P, a.value),
1266
+ title: T(nt)(P, a.value, u.i, u.visibleColumns),
1267
+ class: Q(T(ma)(P)),
1268
+ onClick: O[2] || (O[2] = (N) => o(N))
1265
1269
  }, [
1266
- d.$slots[P.key] && D(al)(P, a.value) ? H(d.$slots, P.key, {
1270
+ u.$slots[P.key] && T(ll)(P, a.value) ? H(u.$slots, P.key, {
1267
1271
  key: 0,
1268
1272
  value: a.value[P.key],
1269
1273
  item: a.value,
1270
1274
  column: P,
1271
- i: d.i
1272
- }) : a.value ? (v(), O(ma, {
1275
+ i: u.i
1276
+ }) : a.value ? (v(), $(ga, {
1273
1277
  key: 1,
1274
1278
  modelValue: a.value,
1275
- "onUpdate:modelValue": w[1] || (w[1] = (x) => a.value = x),
1279
+ "onUpdate:modelValue": O[1] || (O[1] = (N) => a.value = N),
1276
1280
  column: P,
1277
- columns: d.visibleColumns,
1278
- "edit-mode-enabled": d.editModeEnabled,
1279
- "has-inline-edit-perm": d.hasInlineEditPerm,
1280
- i: d.i
1281
- }, null, 8, ["modelValue", "column", "columns", "edit-mode-enabled", "has-inline-edit-perm", "i"])) : V("", !0)
1282
- ], 10, gl)) : V("", !0)
1281
+ columns: u.visibleColumns,
1282
+ "edit-mode-enabled": u.editModeEnabled,
1283
+ "has-inline-edit-perm": u.hasInlineEditPerm,
1284
+ i: u.i
1285
+ }, null, 8, ["modelValue", "column", "columns", "edit-mode-enabled", "has-inline-edit-perm", "i"])) : A("", !0)
1286
+ ], 10, bl)) : A("", !0)
1283
1287
  ], 64))), 256)),
1284
- d.canDrop && d.editModeEnabled ? (v(), h("td", bl, [
1285
- Ee(il, {
1286
- config: d.dropButton,
1288
+ u.canDrop && u.editModeEnabled ? (v(), h("td", hl, [
1289
+ Ee(rl, {
1290
+ config: u.dropButton,
1287
1291
  item: a.value,
1288
- onClick: $
1292
+ onClick: _
1289
1293
  }, null, 8, ["config", "item"])
1290
- ])) : V("", !0),
1291
- d.canEdit && d.editModeEnabled ? (v(), h("td", hl, [
1292
- Ee(rl, {
1293
- config: d.editButton,
1294
+ ])) : A("", !0),
1295
+ u.canEdit && u.editModeEnabled ? (v(), h("td", yl, [
1296
+ Ee(ul, {
1297
+ config: u.editButton,
1294
1298
  item: a.value
1295
1299
  }, null, 8, ["config", "item"])
1296
- ])) : V("", !0)
1297
- ], 10, ul);
1300
+ ])) : A("", !0)
1301
+ ], 10, sl);
1298
1302
  };
1299
1303
  }
1300
- }), kl = { "data-role": "hidden-row" }, Sl = ["colspan"], Cl = ["data-column"], wl = ["data-i"], Bl = ["data-column", "title"], Dl = /* @__PURE__ */ ae({
1304
+ }), Sl = { "data-role": "hidden-row" }, Cl = ["colspan"], wl = ["data-column"], Bl = ["data-i"], Dl = ["data-column", "title"], Il = /* @__PURE__ */ le({
1301
1305
  __name: "LktHiddenRow",
1302
1306
  props: {
1303
1307
  modelValue: { default: () => ({}) },
@@ -1318,20 +1322,20 @@ const il = /* @__PURE__ */ ae({
1318
1322
  ],
1319
1323
  setup(e, { emit: i }) {
1320
1324
  const r = i, n = e, l = S(n.modelValue), a = (f) => r("click", f);
1321
- return U(() => n.modelValue, (f) => l.value = f), U(l, () => r("update:modelValue", l.value)), (f, g) => tt((v(), h("tr", kl, [
1322
- J("td", { colspan: f.hiddenColumnsColSpan }, [
1323
- J("table", null, [
1324
- J("tr", null, [
1325
- (v(!0), h(W, null, ue(f.hiddenColumns, (m) => (v(), h("th", {
1325
+ return F(() => n.modelValue, (f) => l.value = f), F(l, () => r("update:modelValue", l.value)), (f, g) => tt((v(), h("tr", Sl, [
1326
+ Z("td", { colspan: f.hiddenColumnsColSpan }, [
1327
+ Z("table", null, [
1328
+ Z("tr", null, [
1329
+ (v(!0), h(x, null, ue(f.hiddenColumns, (m) => (v(), h("th", {
1326
1330
  "data-column": m.key
1327
1331
  }, [
1328
- J("div", null, ze(m.label), 1)
1329
- ], 8, Cl))), 256))
1332
+ Z("div", null, ze(m.label), 1)
1333
+ ], 8, wl))), 256))
1330
1334
  ]),
1331
- J("tr", { "data-i": f.i }, [
1332
- (v(!0), h(W, null, ue(f.hiddenColumns, (m, C) => (v(), h("td", {
1335
+ Z("tr", { "data-i": f.i }, [
1336
+ (v(!0), h(x, null, ue(f.hiddenColumns, (m, C) => (v(), h("td", {
1333
1337
  "data-column": m.key,
1334
- title: D(nt)(m, l.value, C, f.hiddenColumns),
1338
+ title: T(nt)(m, l.value, C, f.hiddenColumns),
1335
1339
  onClick: g[1] || (g[1] = (o) => a(o))
1336
1340
  }, [
1337
1341
  f.$slots[m.key] ? H(f.$slots, m.key, {
@@ -1340,7 +1344,7 @@ const il = /* @__PURE__ */ ae({
1340
1344
  item: l.value,
1341
1345
  column: m,
1342
1346
  i: C
1343
- }) : (v(), O(ma, {
1347
+ }) : (v(), $(ga, {
1344
1348
  key: 1,
1345
1349
  column: m,
1346
1350
  columns: f.hiddenColumns,
@@ -1350,15 +1354,15 @@ const il = /* @__PURE__ */ ae({
1350
1354
  "edit-mode-enabled": f.editModeEnabled,
1351
1355
  "has-inline-edit-perm": f.hasInlineEditPerm
1352
1356
  }, null, 8, ["column", "columns", "modelValue", "i", "edit-mode-enabled", "has-inline-edit-perm"]))
1353
- ], 8, Bl))), 256))
1354
- ], 8, wl)
1357
+ ], 8, Dl))), 256))
1358
+ ], 8, Bl)
1355
1359
  ])
1356
- ], 8, Sl)
1360
+ ], 8, Cl)
1357
1361
  ], 512)), [
1358
1362
  [at, f.hiddenIsVisible]
1359
1363
  ]);
1360
1364
  }
1361
- }), ea = /* @__PURE__ */ ae({
1365
+ }), ta = /* @__PURE__ */ le({
1362
1366
  __name: "CreateButton",
1363
1367
  props: {
1364
1368
  config: { default: void 0 },
@@ -1370,7 +1374,7 @@ const il = /* @__PURE__ */ ae({
1370
1374
  ],
1371
1375
  setup(e, { emit: i }) {
1372
1376
  var C;
1373
- const r = i, n = e, l = u(() => Y.createButtonSlot !== ""), a = u(() => Y.createButtonSlot), f = {
1377
+ const r = i, n = e, l = s(() => Y.createButtonSlot !== ""), a = s(() => Y.createButtonSlot), f = {
1374
1378
  ...(C = n.config) == null ? void 0 : C.modalData,
1375
1379
  beforeClose: (o) => {
1376
1380
  "itemCreated" in o && o.itemCreated === !0 && r("append", o.item);
@@ -1386,23 +1390,23 @@ const il = /* @__PURE__ */ ae({
1386
1390
  return;
1387
1391
  }
1388
1392
  };
1389
- return (o, I) => {
1393
+ return (o, B) => {
1390
1394
  const c = Se("lkt-button");
1391
- return v(), O(c, fe(g, {
1395
+ return v(), $(c, fe(g, {
1392
1396
  disabled: o.disabled,
1393
1397
  onClick: m
1394
1398
  }), {
1395
1399
  default: j(() => [
1396
- l.value ? (v(), O(Ae(a.value), { key: 0 })) : V("", !0)
1400
+ l.value ? (v(), $(Ae(a.value), { key: 0 })) : A("", !0)
1397
1401
  ]),
1398
1402
  _: 1
1399
1403
  }, 16, ["disabled"]);
1400
1404
  };
1401
1405
  }
1402
- }), Il = ["data-column", "data-sortable", "data-sort", "colspan", "title"], Tl = /* @__PURE__ */ ae({
1406
+ }), Tl = ["data-column", "data-sortable", "data-sort", "colspan", "title"], El = /* @__PURE__ */ le({
1403
1407
  __name: "TableHeader",
1404
1408
  props: {
1405
- column: { default: () => new na() },
1409
+ column: { default: () => new oa() },
1406
1410
  sortBy: { default: "" },
1407
1411
  sortDirection: { default: "" },
1408
1412
  amountOfColumns: { default: 0 },
@@ -1412,49 +1416,49 @@ const il = /* @__PURE__ */ ae({
1412
1416
  "click"
1413
1417
  ],
1414
1418
  setup(e, { emit: i }) {
1415
- const r = i, n = e, l = u(() => tl(n.column, n.amountOfColumns, n.items)), a = u(() => n.column.sortable === !0), f = u(() => a.value && n.sortBy === n.column.key ? n.sortDirection : ""), g = u(() => ia(n.column.label)), m = u(() => a.value && n.sortBy === n.column.key ? n.sortDirection === je.Asc ? ke.defaultTableSortAscIcon : n.sortDirection === je.Desc ? ke.defaultTableSortDescIcon : "" : ""), C = () => r("click", n.column);
1416
- return (o, I) => (v(), h("th", {
1419
+ const r = i, n = e, l = s(() => al(n.column, n.amountOfColumns, n.items)), a = s(() => n.column.sortable === !0), f = s(() => a.value && n.sortBy === n.column.key ? n.sortDirection : ""), g = s(() => ra(n.column.label)), m = s(() => a.value && n.sortBy === n.column.key ? n.sortDirection === je.Asc ? ke.defaultTableSortAscIcon : n.sortDirection === je.Desc ? ke.defaultTableSortDescIcon : "" : ""), C = () => r("click", n.column);
1420
+ return (o, B) => (v(), h("th", {
1417
1421
  "data-column": o.column.key,
1418
1422
  "data-sortable": a.value,
1419
1423
  "data-sort": f.value,
1420
1424
  colspan: l.value,
1421
1425
  title: g.value,
1422
- class: oe(D(pa)(o.column)),
1426
+ class: Q(T(ma)(o.column)),
1423
1427
  onClick: C
1424
1428
  }, [
1425
- J("div", null, [
1429
+ Z("div", null, [
1426
1430
  lt(ze(g.value) + " ", 1),
1427
1431
  m.value ? (v(), h("i", {
1428
1432
  key: 0,
1429
- class: oe(m.value)
1430
- }, null, 2)) : V("", !0)
1433
+ class: Q(m.value)
1434
+ }, null, 2)) : A("", !0)
1431
1435
  ])
1432
- ], 10, Il));
1436
+ ], 10, Tl));
1433
1437
  }
1434
- }), El = ["id"], Al = { class: "lkt-table-page-buttons" }, Vl = { class: "switch-edition-mode" }, Rl = {
1438
+ }), Al = ["id"], Vl = { class: "lkt-table-page-buttons" }, Rl = { class: "switch-edition-mode" }, Nl = {
1435
1439
  key: 0,
1436
1440
  class: "lkt-table-page-buttons"
1437
- }, Nl = {
1441
+ }, Ml = {
1438
1442
  key: 1,
1439
1443
  class: "lkt-table-page-filters"
1440
- }, Ml = { class: "lkt-table" }, Ll = { key: 0 }, _l = { key: 0 }, $l = {
1444
+ }, Ll = { class: "lkt-table" }, _l = { key: 0 }, $l = { key: 0 }, Ol = {
1441
1445
  key: 0,
1442
1446
  "data-role": "drag-indicator"
1443
- }, Ol = { key: 1 }, Pl = { key: 2 }, Ul = {
1447
+ }, Pl = { key: 1 }, Fl = { key: 2 }, Ul = {
1444
1448
  key: 3,
1445
1449
  class: "lkt-table-col-drop"
1446
- }, Fl = {
1450
+ }, jl = {
1447
1451
  key: 4,
1448
1452
  class: "lkt-table-col-edit"
1449
- }, jl = ["id"], zl = ["id"], Hl = ["data-i"], ql = ["data-i"], Gl = ["id"], Xl = { class: "lkt-carousel-slide" }, Yl = { class: "lkt-carousel-slide" }, Kl = {
1453
+ }, zl = ["id"], Hl = ["id"], ql = ["data-i"], Gl = ["data-i"], Xl = ["id"], Yl = { class: "lkt-carousel-slide" }, Kl = { class: "lkt-carousel-slide" }, Wl = {
1450
1454
  key: 2,
1451
1455
  class: "lkt-table-empty"
1452
- }, Wl = {
1456
+ }, xl = {
1453
1457
  key: 4,
1454
1458
  class: "lkt-table-page-buttons lkt-table-page-buttons-bottom"
1455
- }, xl = /* @__PURE__ */ ae({
1459
+ }, Jl = /* @__PURE__ */ le({
1456
1460
  __name: "LktTable",
1457
- props: /* @__PURE__ */ Ea({
1461
+ props: /* @__PURE__ */ Aa({
1458
1462
  modelValue: {},
1459
1463
  type: {},
1460
1464
  columns: {},
@@ -1493,8 +1497,9 @@ const il = /* @__PURE__ */ ae({
1493
1497
  wrapContentTag: {},
1494
1498
  wrapContentClass: {},
1495
1499
  itemsContainerClass: {},
1500
+ itemContainerClass: { type: [String, Function] },
1496
1501
  createEnabledValidator: { type: Function }
1497
- }, Ra(Na)),
1502
+ }, Na(Ma)),
1498
1503
  emits: [
1499
1504
  "update:modelValue",
1500
1505
  "update:perms",
@@ -1510,63 +1515,63 @@ const il = /* @__PURE__ */ ae({
1510
1515
  "drag-end"
1511
1516
  ],
1512
1517
  setup(e, { expose: i, emit: r }) {
1513
- var Gt, Xt;
1514
- const n = r, l = la(), a = e, f = {}, g = S(typeof a.sorter == "function" ? a.sorter : el), m = S(nl(a.columns)), C = S(je.Asc), o = S(a.modelValue), I = S(f), c = S(null), k = S(a.columns), T = S((Gt = a.paginator) == null ? void 0 : Gt.modelValue), A = S(a.loading), Ce = S(!1), $ = S(a.perms), Q = S(null), q = S(null), Ne = S(null), Z = S({}), d = S(new La({ items: o.value }, a.dataStateConfig)), w = S(a.editMode), le = S(0), P = S(null), x = S(((Xt = a.carousel) == null ? void 0 : Xt.currentSlide) || 0), _ = S(Ve(a.saveButton, ke.defaultSaveButton)), we = S(Ve(a.createButton, ke.defaultCreateButton)), st = S(Ve(a.editModeButton, ke.defaultEditModeButton)), Me = S(Ve(a.dropButton, ke.defaultDropButton));
1515
- U(() => a.saveButton, (t) => _.value = Ve(a.saveButton, ke.defaultSaveButton)), U(() => a.createButton, (t) => we.value = Ve(a.createButton, ke.defaultCreateButton)), U(() => a.editModeButton, (t) => st.value = Ve(a.editModeButton, ke.defaultEditModeButton)), U(() => a.dropButton, (t) => Me.value = Ve(a.dropButton, ke.defaultDropButton));
1518
+ var Xt, Yt;
1519
+ const n = r, l = na(), a = e, f = {}, g = S(typeof a.sorter == "function" ? a.sorter : tl), m = S(ol(a.columns)), C = S(je.Asc), o = S(a.modelValue), B = S(f), c = S(null), k = S(a.columns), D = S((Xt = a.paginator) == null ? void 0 : Xt.modelValue), E = S(a.loading), Ce = S(!1), _ = S(a.perms), ee = S(null), q = S(null), Ne = S(null), ne = S({}), K = S(new _a({ items: o.value }, a.dataStateConfig)), u = S(a.editMode), O = S(0), J = S(null), P = S(((Yt = a.carousel) == null ? void 0 : Yt.currentSlide) || 0), N = S(Ve(a.saveButton, ke.defaultSaveButton)), we = S(Ve(a.createButton, ke.defaultCreateButton)), st = S(Ve(a.editModeButton, ke.defaultEditModeButton)), Me = S(Ve(a.dropButton, ke.defaultDropButton));
1520
+ F(() => a.saveButton, (t) => N.value = Ve(a.saveButton, ke.defaultSaveButton)), F(() => a.createButton, (t) => we.value = Ve(a.createButton, ke.defaultCreateButton)), F(() => a.editModeButton, (t) => st.value = Ve(a.editModeButton, ke.defaultEditModeButton)), F(() => a.dropButton, (t) => Me.value = Ve(a.dropButton, ke.defaultDropButton));
1516
1521
  const z = S(!1);
1517
- U(A, (t) => n("update:loading", t)), U(T, (t) => n("page", t));
1522
+ F(E, (t) => n("update:loading", t)), F(D, (t) => n("page", t));
1518
1523
  const Bt = (t) => {
1519
- $.value = t;
1524
+ _.value = t;
1520
1525
  }, Le = (t) => {
1521
1526
  var p;
1522
- Array.isArray(t.data) && ((!a.paginator || ![St.LoadMore, St.Infinite].includes((p = a.paginator) == null ? void 0 : p.type)) && o.value.splice(0, o.value.length), o.value = [...o.value, ...t.data]), A.value = !1, Ce.value = !0, d.value.store({ items: o.value }).turnStoredIntoOriginal(), z.value = !1, yt(() => {
1527
+ Array.isArray(t.data) && ((!a.paginator || ![St.LoadMore, St.Infinite].includes((p = a.paginator) == null ? void 0 : p.type)) && o.value.splice(0, o.value.length), o.value = [...o.value, ...t.data]), E.value = !1, Ce.value = !0, K.value.store({ items: o.value }).turnStoredIntoOriginal(), z.value = !1, yt(() => {
1523
1528
  ve(), ot.value, n("read-response", t);
1524
1529
  });
1525
- }, Dt = () => yt(() => A.value = !0), pe = () => {
1526
- Q.value.doRefresh();
1527
- }, se = Ma(12), _e = u(() => {
1530
+ }, Dt = () => yt(() => E.value = !0), pe = () => {
1531
+ ee.value.doRefresh();
1532
+ }, se = La(12), _e = s(() => {
1528
1533
  if (!a.hideEmptyColumns) return [];
1529
1534
  let t = [];
1530
1535
  return k.value.forEach((p) => {
1531
- let L = p.key, K = !1;
1532
- o.value.forEach((te) => {
1533
- if (typeof te.checkEmpty == "function")
1534
- return te.checkEmpty(te);
1535
- te[L] && (K = !0);
1536
- }), K || t.push(L);
1536
+ let L = p.key, W = !1;
1537
+ o.value.forEach((ae) => {
1538
+ if (typeof ae.checkEmpty == "function")
1539
+ return ae.checkEmpty(ae);
1540
+ ae[L] && (W = !0);
1541
+ }), W || t.push(L);
1537
1542
  }), t;
1538
- }), de = u(() => k.value.filter((t) => !t.hidden)), qe = u(() => k.value.filter((t) => t.hidden)), dt = u(() => {
1543
+ }), de = s(() => k.value.filter((t) => !t.hidden)), qe = s(() => k.value.filter((t) => t.hidden)), dt = s(() => {
1539
1544
  let t = de.value.length + 1;
1540
1545
  return a.sortable && ++t, t;
1541
- }), Ge = u(() => k.value.filter((t) => t.isForRowKey)), me = u(() => qe.value.length > 0 && !a.sortable), Xe = u(() => k.value.map((t) => t.key)), ie = u(() => {
1546
+ }), Ge = s(() => k.value.filter((t) => t.isForRowKey)), me = s(() => qe.value.length > 0 && !a.sortable), Xe = s(() => k.value.map((t) => t.key)), ie = s(() => {
1542
1547
  let t = [];
1543
1548
  for (let p in l) Xe.value.indexOf(p) !== -1 && t.push(p);
1544
1549
  return t;
1545
- }), Ye = u(() => {
1550
+ }), Ye = s(() => {
1546
1551
  let t = [];
1547
1552
  for (let p in l) p.indexOf("slide-") !== -1 && t.push(p);
1548
1553
  return t;
1549
- }), Ke = u(() => {
1554
+ }), Ke = s(() => {
1550
1555
  var t;
1551
- return a.hiddenSave || A.value || !((t = _.value) != null && t.resource || _.value.type) ? !1 : w.value && z.value ? !0 : w.value;
1552
- }), It = u(() => ht.value && o.value.length >= a.requiredItemsForTopCreate || xe.value ? !0 : Ke.value || w.value && ge.value), ot = u(() => {
1556
+ return a.hiddenSave || E.value || !((t = N.value) != null && t.resource || N.value.type) ? !1 : u.value && z.value ? !0 : u.value;
1557
+ }), It = s(() => ht.value && o.value.length >= a.requiredItemsForTopCreate || xe.value ? !0 : Ke.value || u.value && ge.value), ot = s(() => {
1553
1558
  var t, p;
1554
- return le.value, typeof ((t = _.value) == null ? void 0 : t.disabled) == "function" ? _.value.disabled({
1559
+ return O.value, typeof ((t = N.value) == null ? void 0 : t.disabled) == "function" ? N.value.disabled({
1555
1560
  value: o.value,
1556
- dataState: d.value
1557
- }) : typeof ((p = _.value) == null ? void 0 : p.disabled) == "boolean" ? _.value.disabled : !z.value;
1558
- }), ct = u(() => o.value.length), Tt = u(() => {
1561
+ dataState: K.value
1562
+ }) : typeof ((p = N.value) == null ? void 0 : p.disabled) == "boolean" ? N.value.disabled : !z.value;
1563
+ }), ct = s(() => o.value.length), Tt = s(() => {
1559
1564
  var t;
1560
1565
  return {
1561
1566
  items: o.value,
1562
- ...(t = _.value) == null ? void 0 : t.resourceData
1567
+ ...(t = N.value) == null ? void 0 : t.resourceData
1563
1568
  };
1564
- }), vt = u(() => a.titleTag === "" ? "h2" : a.titleTag), ft = u(() => a.wrapContentTag === "" ? "div" : a.wrapContentTag), $e = u(() => ia(a.title)), We = u(() => {
1569
+ }), vt = s(() => a.titleTag === "" ? "h2" : a.titleTag), ft = s(() => a.wrapContentTag === "" ? "div" : a.wrapContentTag), $e = s(() => ra(a.title)), We = s(() => {
1565
1570
  var t;
1566
1571
  return (t = a.drag) == null ? void 0 : t.enabled;
1567
- }), ge = u(() => $.value.includes(De.Create)), Oe = u(() => $.value.includes("read")), ce = u(() => $.value.includes(De.Update)), be = u(() => $.value.includes(De.Edit)), Be = u(() => $.value.includes(De.InlineEdit)), Pe = u(() => $.value.includes(De.ModalCreate)), Ue = u(() => $.value.includes(De.InlineCreate)), pt = u(() => $.value.includes(De.InlineCreateEver)), he = u(() => $.value.includes(De.Drop)), Fe = u(() => $.value.includes(De.SwitchEditMode)), xe = u(() => !Fe.value || !ce.value && !he.value || !ce.value && he.value ? !1 : !A.value), it = u(() => {
1572
+ }), ge = s(() => _.value.includes(De.Create)), Oe = s(() => _.value.includes("read")), ce = s(() => _.value.includes(De.Update)), be = s(() => _.value.includes(De.Edit)), Be = s(() => _.value.includes(De.InlineEdit)), Pe = s(() => _.value.includes(De.ModalCreate)), Fe = s(() => _.value.includes(De.InlineCreate)), pt = s(() => _.value.includes(De.InlineCreateEver)), he = s(() => _.value.includes(De.Drop)), Ue = s(() => _.value.includes(De.SwitchEditMode)), xe = s(() => !Ue.value || !ce.value && !he.value || !ce.value && he.value ? !1 : !E.value), it = s(() => {
1568
1573
  var t;
1569
- return (typeof ((t = a.paginator) == null ? void 0 : t.type) < "u" && [St.LoadMore, St.Infinite].includes(a.paginator.type) || !A.value) && o.value.length > 0;
1574
+ return (typeof ((t = a.paginator) == null ? void 0 : t.type) < "u" && [St.LoadMore, St.Infinite].includes(a.paginator.type) || !E.value) && o.value.length > 0;
1570
1575
  }), Je = (t) => {
1571
1576
  let p = t.target;
1572
1577
  if (typeof p.dataset.column > "u")
@@ -1576,30 +1581,30 @@ const il = /* @__PURE__ */ ae({
1576
1581
  if (p.tagName === "TD" && (p = p.parentNode, p = p.dataset.i, typeof p < "u"))
1577
1582
  return o.value[p];
1578
1583
  }, ve = () => {
1579
- le.value = $a();
1584
+ O.value = Oa();
1580
1585
  }, Et = (t) => o.value[t], At = (t) => {
1581
1586
  var p;
1582
1587
  return (p = c.value) == null ? void 0 : p.querySelector(`[data-i="${t}"]`);
1583
- }, rt = (t) => I.value["tr_" + t] === !0, mt = (t) => {
1588
+ }, rt = (t) => B.value["tr_" + t] === !0, mt = (t) => {
1584
1589
  t && t.sortable && (o.value = o.value.sort((p, L) => g.value(p, L, t, C.value)), C.value = C.value === je.Asc ? je.Desc : je.Asc, m.value = t.key, ve(), n("sort", [m.value, C.value]));
1585
1590
  }, Qe = (t) => {
1586
1591
  n("click", t);
1587
- }, s = (t, p) => {
1592
+ }, d = (t, p) => {
1588
1593
  let L = "tr_" + p;
1589
- I.value[L] = typeof I.value[L] > "u" ? !0 : !I.value[L];
1594
+ B.value[L] = typeof B.value[L] > "u" ? !0 : !B.value[L];
1590
1595
  }, b = (t) => {
1591
- var L, K, te, re, N, E, M, ye;
1592
- let p = parseInt((re = (te = (K = (L = t == null ? void 0 : t.originalEvent) == null ? void 0 : L.toElement) == null ? void 0 : K.closest("tr")) == null ? void 0 : te.dataset) == null ? void 0 : re.i);
1593
- return !(typeof ((N = a.drag) == null ? void 0 : N.isValid) == "function" && !((E = a.drag) != null && E.isValid(o.value[p])) || typeof ((M = a.drag) == null ? void 0 : M.isValid) == "boolean" && !((ye = a.drag) != null && ye.isValid));
1596
+ var L, W, ae, re, V, I, M, ye;
1597
+ let p = parseInt((re = (ae = (W = (L = t == null ? void 0 : t.originalEvent) == null ? void 0 : L.toElement) == null ? void 0 : W.closest("tr")) == null ? void 0 : ae.dataset) == null ? void 0 : re.i);
1598
+ return !(typeof ((V = a.drag) == null ? void 0 : V.isValid) == "function" && !((I = a.drag) != null && I.isValid(o.value[p])) || typeof ((M = a.drag) == null ? void 0 : M.isValid) == "boolean" && !((ye = a.drag) != null && ye.isValid));
1594
1599
  }, y = (t) => {
1595
1600
  var p, L;
1596
1601
  return typeof ((p = a.drag) == null ? void 0 : p.isDraggable) == "function" ? (L = a.drag) == null ? void 0 : L.isDraggable(t) : !0;
1597
- }, B = () => {
1602
+ }, w = () => {
1598
1603
  if (ge.value) {
1599
1604
  n("click-create");
1600
1605
  return;
1601
1606
  }
1602
- if (Ue.value || pt.value) {
1607
+ if (Fe.value || pt.value) {
1603
1608
  if (typeof a.newValueGenerator == "function") {
1604
1609
  let t = a.newValueGenerator();
1605
1610
  if (typeof t == "object" || a.type !== et.Table) {
@@ -1612,23 +1617,23 @@ const il = /* @__PURE__ */ ae({
1612
1617
  n("click-create");
1613
1618
  }, R = (t) => {
1614
1619
  o.value.push(t);
1615
- }, G = () => A.value = !0, ee = () => A.value = !1, ne = (t, p) => {
1616
- var L, K, te;
1617
- if (!((L = _.value) != null && L.type && [
1620
+ }, G = () => E.value = !0, te = () => E.value = !1, oe = (t, p) => {
1621
+ var L, W, ae;
1622
+ if (!((L = N.value) != null && L.type && [
1618
1623
  $t.Split,
1619
1624
  $t.SplitEver,
1620
1625
  $t.SplitLazy
1621
- ].includes((K = _.value) == null ? void 0 : K.type))) {
1622
- if (n("before-save"), (te = _.value) != null && te.resource && (A.value = !1, !p.success)) {
1626
+ ].includes((W = N.value) == null ? void 0 : W.type))) {
1627
+ if (n("before-save"), (ae = N.value) != null && ae.resource && (E.value = !1, !p.success)) {
1623
1628
  n("error", p.httpStatus);
1624
1629
  return;
1625
1630
  }
1626
- d.value.turnStoredIntoOriginal(), z.value = !1, n("save", p);
1631
+ K.value.turnStoredIntoOriginal(), z.value = !1, n("save", p);
1627
1632
  }
1628
1633
  }, gt = (t, p, L) => {
1629
1634
  if (L >= t.length) {
1630
- let K = L - t.length + 1;
1631
- for (; K--; ) t.push(void 0);
1635
+ let W = L - t.length + 1;
1636
+ for (; W--; ) t.push(void 0);
1632
1637
  }
1633
1638
  return t.splice(L, 0, t.splice(p, 1)[0]), t;
1634
1639
  }, Vt = (t) => {
@@ -1637,11 +1642,11 @@ const il = /* @__PURE__ */ ae({
1637
1642
  gt(o.value, t, t + 1), ve();
1638
1643
  }, bt = (t) => {
1639
1644
  o.value.splice(t, 1), ve();
1640
- }, ga = () => {
1645
+ }, ba = () => {
1641
1646
  var t;
1642
- Z.value && typeof ((t = Z.value) == null ? void 0 : t.destroy) == "function" && (Z.value.destroy(), Z.value = {});
1647
+ ne.value && typeof ((t = ne.value) == null ? void 0 : t.destroy) == "function" && (ne.value.destroy(), ne.value = {});
1643
1648
  }, Ht = () => {
1644
- P.value || (P.value = document.getElementById("lkt-table-body-" + se)), Z.value = new _a(P.value, {
1649
+ J.value || (J.value = document.getElementById("lkt-table-body-" + se)), ne.value = new $a(J.value, {
1645
1650
  direction: "vertical",
1646
1651
  handle: ".handle",
1647
1652
  animation: 150,
@@ -1654,26 +1659,26 @@ const il = /* @__PURE__ */ ae({
1654
1659
  }
1655
1660
  });
1656
1661
  }, Nt = (t, p, L = !1) => {
1657
- let K = [le.value, se, "row", p];
1658
- return L && K.push("hidden"), Ge.value.forEach((te) => {
1659
- let re = String(t[te.key]).toLowerCase();
1660
- re.length > 50 && (re = re.substring(0, 50)), re = ra(re, " ", "-"), K.push(re);
1661
- }), K.join("-");
1662
- }, qt = u(() => typeof a.createEnabledValidator == "function" ? a.createEnabledValidator({ items: o.value }) : !0), ht = u(() => pt.value || ge.value && w.value || Ue.value && w.value || Pe.value && w.value), ba = u(() => [et.Ol, et.Ul].includes(a.type)), Mt = (t, p) => typeof a.itemDisplayChecker == "function" ? a.itemDisplayChecker(t) : !0;
1662
+ let W = [O.value, se, "row", p];
1663
+ return L && W.push("hidden"), Ge.value.forEach((ae) => {
1664
+ let re = String(t[ae.key]).toLowerCase();
1665
+ re.length > 50 && (re = re.substring(0, 50)), re = ua(re, " ", "-"), W.push(re);
1666
+ }), W.join("-");
1667
+ }, qt = s(() => typeof a.createEnabledValidator == "function" ? a.createEnabledValidator({ items: o.value }) : !0), ht = s(() => pt.value || ge.value && u.value || Fe.value && u.value || Pe.value && u.value), ha = s(() => [et.Ol, et.Ul].includes(a.type)), Mt = (t, p) => typeof a.itemDisplayChecker == "function" ? a.itemDisplayChecker(t) : !0, Gt = (t) => typeof a.itemContainerClass == "function" ? a.itemContainerClass(t) : a.itemContainerClass;
1663
1668
  jt(() => {
1664
1669
  var t;
1665
- a.initialSorting && mt(ol(a.columns, m.value)), d.value.store({ items: o.value }).turnStoredIntoOriginal(), z.value = !1, (t = a.drag) != null && t.enabled && yt(() => {
1670
+ a.initialSorting && mt(il(a.columns, m.value)), K.value.store({ items: o.value }).turnStoredIntoOriginal(), z.value = !1, (t = a.drag) != null && t.enabled && yt(() => {
1666
1671
  Ht();
1667
1672
  });
1668
- }), U(() => {
1673
+ }), F(() => {
1669
1674
  var t;
1670
1675
  return (t = a.drag) == null ? void 0 : t.enabled;
1671
1676
  }, (t) => {
1672
- t ? Ht() : ga();
1673
- }), U(() => a.perms, (t) => $.value = t), U($, (t) => n("update:perms", t)), U(() => a.editMode, (t) => w.value = t), U(() => a.columns, (t) => k.value = t, { deep: !0 }), U(() => a.modelValue, (t) => {
1677
+ t ? Ht() : ba();
1678
+ }), F(() => a.perms, (t) => _.value = t), F(_, (t) => n("update:perms", t)), F(() => a.editMode, (t) => u.value = t), F(() => a.columns, (t) => k.value = t, { deep: !0 }), F(() => a.modelValue, (t) => {
1674
1679
  o.value = t;
1675
- }, { deep: !0 }), U(o, (t) => {
1676
- d.value.increment({ items: t }), z.value = d.value.changed(), n("update:modelValue", t);
1680
+ }, { deep: !0 }), F(o, (t) => {
1681
+ K.value.increment({ items: t }), z.value = K.value.changed(), n("update:modelValue", t);
1677
1682
  }, { deep: !0 }), i({
1678
1683
  getItemByEvent: Je,
1679
1684
  getItemByIndex: Et,
@@ -1685,88 +1690,88 @@ const il = /* @__PURE__ */ ae({
1685
1690
  getHtml: () => q.value,
1686
1691
  reRender: ve,
1687
1692
  turnStoredIntoOriginal: () => {
1688
- d.value.turnStoredIntoOriginal(), yt(() => {
1693
+ K.value.turnStoredIntoOriginal(), yt(() => {
1689
1694
  ve();
1690
1695
  });
1691
1696
  }
1692
1697
  });
1693
- const ha = u(() => typeof Y.defaultEmptySlot < "u"), ya = u(() => Y.defaultEmptySlot), ka = u(() => !a.drag || Object.keys(a.drag).length === 0 || !a.drag.enabled ? !1 : typeof a.drag.canRender > "u" ? !0 : a.drag.canRender), Sa = u(() => !a.drag || Object.keys(a.drag).length === 0 || !a.drag.enabled || typeof a.drag.isDisabled > "u" ? !1 : a.drag.isDisabled);
1698
+ const ya = s(() => typeof Y.defaultEmptySlot < "u"), ka = s(() => Y.defaultEmptySlot), Sa = s(() => !a.drag || Object.keys(a.drag).length === 0 || !a.drag.enabled ? !1 : typeof a.drag.canRender > "u" ? !0 : a.drag.canRender), Ca = s(() => !a.drag || Object.keys(a.drag).length === 0 || !a.drag.enabled || typeof a.drag.isDisabled > "u" ? !1 : a.drag.isDisabled);
1694
1699
  return (t, p) => {
1695
- const L = Se("lkt-button"), K = Se("lkt-loader"), te = Se("lkt-paginator");
1700
+ const L = Se("lkt-button"), W = Se("lkt-loader"), ae = Se("lkt-paginator");
1696
1701
  return v(), h("section", {
1697
1702
  ref_key: "element",
1698
1703
  ref: q,
1699
1704
  class: "lkt-table-page",
1700
- id: "lkt-table-page-" + D(se)
1705
+ id: "lkt-table-page-" + T(se)
1701
1706
  }, [
1702
- $e.value || D(l).title ? (v(), h("header", {
1707
+ $e.value || T(l).title ? (v(), h("header", {
1703
1708
  key: 0,
1704
- class: oe(t.headerClass)
1709
+ class: Q(t.headerClass)
1705
1710
  }, [
1706
- $e.value ? (v(), O(Ae(vt.value), { key: 0 }, {
1711
+ $e.value ? (v(), $(Ae(vt.value), { key: 0 }, {
1707
1712
  default: j(() => [
1708
1713
  t.titleIcon ? (v(), h("i", {
1709
1714
  key: 0,
1710
- class: oe(t.titleIcon)
1711
- }, null, 2)) : V("", !0),
1715
+ class: Q(t.titleIcon)
1716
+ }, null, 2)) : A("", !0),
1712
1717
  lt(" " + ze($e.value), 1)
1713
1718
  ]),
1714
1719
  _: 1
1715
- })) : V("", !0),
1716
- D(l).title ? H(t.$slots, "title", { key: 1 }) : V("", !0)
1717
- ], 2)) : V("", !0),
1718
- (v(), O(Ae(ft.value), {
1719
- class: oe(["lkt-table-page-content-wrapper", t.wrapContentClass])
1720
+ })) : A("", !0),
1721
+ T(l).title ? H(t.$slots, "title", { key: 1 }) : A("", !0)
1722
+ ], 2)) : A("", !0),
1723
+ (v(), $(Ae(ft.value), {
1724
+ class: Q(["lkt-table-page-content-wrapper", t.wrapContentClass])
1720
1725
  }, {
1721
1726
  default: j(() => {
1722
1727
  var re;
1723
1728
  return [
1724
- tt(J("div", Al, [
1729
+ tt(Z("div", Vl, [
1725
1730
  tt(Ee(L, fe({
1726
1731
  class: "lkt-table--save-button",
1727
1732
  ref_key: "saveButtonRef",
1728
1733
  ref: Ne
1729
1734
  }, {
1730
- ..._.value,
1735
+ ...N.value,
1731
1736
  disabled: ot.value,
1732
1737
  resourceData: Tt.value
1733
1738
  }, {
1734
1739
  onLoading: G,
1735
- onLoaded: ee,
1736
- onClick: ne
1740
+ onLoaded: te,
1741
+ onClick: oe
1737
1742
  }), {
1738
- split: j(({ doClose: N, doRootClick: E }) => [
1743
+ split: j(({ doClose: V, doRootClick: I }) => [
1739
1744
  H(t.$slots, "button-save-split", {
1740
- doClose: N,
1741
- doRootClick: E,
1742
- dataState: d.value,
1745
+ doClose: V,
1746
+ doRootClick: I,
1747
+ dataState: K.value,
1743
1748
  onButtonLoading: G,
1744
- onButtonLoaded: ee
1749
+ onButtonLoaded: te
1745
1750
  })
1746
1751
  ]),
1747
1752
  default: j(() => [
1748
- D(l)["button-save"] ? H(t.$slots, "button-save", {
1753
+ T(l)["button-save"] ? H(t.$slots, "button-save", {
1749
1754
  key: 0,
1750
1755
  items: o.value,
1751
1756
  editMode: t.editMode,
1752
1757
  canUpdate: !ot.value
1753
- }) : V("", !0)
1758
+ }) : A("", !0)
1754
1759
  ]),
1755
1760
  _: 3
1756
1761
  }, 16), [
1757
1762
  [at, Ke.value]
1758
1763
  ]),
1759
- ht.value && o.value.length >= t.requiredItemsForTopCreate ? (v(), O(ea, {
1764
+ ht.value && o.value.length >= t.requiredItemsForTopCreate ? (v(), $(ta, {
1760
1765
  key: 0,
1761
1766
  config: we.value,
1762
1767
  disabled: !qt.value,
1763
- onClick: B,
1768
+ onClick: w,
1764
1769
  onAppend: R
1765
- }, null, 8, ["config", "disabled"])) : V("", !0),
1766
- J("div", Vl, [
1770
+ }, null, 8, ["config", "disabled"])) : A("", !0),
1771
+ Z("div", Rl, [
1767
1772
  tt(Ee(L, fe(st.value, {
1768
- checked: w.value,
1769
- "onUpdate:checked": p[0] || (p[0] = (N) => w.value = N)
1773
+ checked: u.value,
1774
+ "onUpdate:checked": p[0] || (p[0] = (V) => u.value = V)
1770
1775
  }), null, 16, ["checked"]), [
1771
1776
  [at, xe.value]
1772
1777
  ])
@@ -1774,80 +1779,81 @@ const il = /* @__PURE__ */ ae({
1774
1779
  ], 512), [
1775
1780
  [at, It.value]
1776
1781
  ]),
1777
- D(l).buttons ? (v(), h("div", Rl, [
1782
+ T(l).buttons ? (v(), h("div", Nl, [
1778
1783
  H(t.$slots, "buttons")
1779
- ])) : V("", !0),
1780
- Ce.value && D(l).filters ? (v(), h("div", Nl, [
1784
+ ])) : A("", !0),
1785
+ Ce.value && T(l).filters ? (v(), h("div", Ml, [
1781
1786
  H(t.$slots, "filters", {
1782
1787
  items: o.value,
1783
- isLoading: A.value
1788
+ isLoading: E.value
1784
1789
  })
1785
- ])) : V("", !0),
1786
- tt(J("div", Ml, [
1787
- t.type === D(et).Table ? (v(), h("table", Ll, [
1788
- t.hideTableHeader ? V("", !0) : (v(), h("thead", _l, [
1789
- J("tr", null, [
1790
- We.value && w.value ? (v(), h("th", $l)) : V("", !0),
1791
- t.addNavigation && w.value ? (v(), h("th", Ol)) : V("", !0),
1792
- me.value ? (v(), h("th", Pl)) : V("", !0),
1793
- (v(!0), h(W, null, ue(de.value, (N) => (v(), h(W, null, [
1794
- _e.value.indexOf(N.key) === -1 ? (v(), O(Tl, {
1790
+ ])) : A("", !0),
1791
+ tt(Z("div", Ll, [
1792
+ t.type === T(et).Table ? (v(), h("table", _l, [
1793
+ t.hideTableHeader ? A("", !0) : (v(), h("thead", $l, [
1794
+ Z("tr", null, [
1795
+ We.value && u.value ? (v(), h("th", Ol)) : A("", !0),
1796
+ t.addNavigation && u.value ? (v(), h("th", Pl)) : A("", !0),
1797
+ me.value ? (v(), h("th", Fl)) : A("", !0),
1798
+ (v(!0), h(x, null, ue(de.value, (V) => (v(), h(x, null, [
1799
+ _e.value.indexOf(V.key) === -1 ? (v(), $(El, {
1795
1800
  key: 0,
1796
- column: N,
1801
+ column: V,
1797
1802
  "sort-by": m.value,
1798
1803
  "sort-direction": C.value,
1799
1804
  "amount-of-columns": t.columns.length,
1800
1805
  items: o.value,
1801
- onClick: (E) => mt(N)
1802
- }, null, 8, ["column", "sort-by", "sort-direction", "amount-of-columns", "items", "onClick"])) : V("", !0)
1806
+ onClick: (I) => mt(V)
1807
+ }, null, 8, ["column", "sort-by", "sort-direction", "amount-of-columns", "items", "onClick"])) : A("", !0)
1803
1808
  ], 64))), 256)),
1804
- he.value && w.value ? (v(), h("th", Ul)) : V("", !0),
1805
- be.value && ce.value && w.value ? (v(), h("th", Fl)) : V("", !0)
1809
+ he.value && u.value ? (v(), h("th", Ul)) : A("", !0),
1810
+ be.value && ce.value && u.value ? (v(), h("th", jl)) : A("", !0)
1806
1811
  ])
1807
1812
  ])),
1808
- J("tbody", {
1813
+ Z("tbody", {
1809
1814
  ref_key: "tableBody",
1810
1815
  ref: c,
1811
- id: "lkt-table-body-" + D(se),
1812
- class: oe(t.itemsContainerClass)
1816
+ id: "lkt-table-body-" + T(se),
1817
+ class: Q(t.itemsContainerClass)
1813
1818
  }, [
1814
- (v(!0), h(W, null, ue(o.value, (N, E) => tt((v(), O(yl, {
1815
- modelValue: o.value[E],
1816
- "onUpdate:modelValue": (M) => o.value[E] = M,
1817
- key: Nt(N, E),
1818
- i: E,
1819
+ (v(!0), h(x, null, ue(o.value, (V, I) => tt((v(), $(kl, {
1820
+ modelValue: o.value[I],
1821
+ "onUpdate:modelValue": (M) => o.value[I] = M,
1822
+ key: Nt(V, I),
1823
+ i: I,
1819
1824
  "drop-button": Me.value,
1820
1825
  "edit-button": t.editButton,
1821
1826
  "display-hidden-columns-indicator": me.value,
1822
- "is-draggable": y(N),
1827
+ "is-draggable": y(V),
1823
1828
  sortable: We.value,
1824
1829
  "visible-columns": de.value,
1825
1830
  "empty-columns": _e.value,
1826
1831
  "add-navigation": t.addNavigation,
1827
- "hidden-is-visible": rt(E),
1828
- "latest-row": E + 1 === ct.value,
1829
- "can-drop": he.value && w.value,
1830
- "can-edit": be.value && ce.value && w.value,
1832
+ "hidden-is-visible": rt(I),
1833
+ "latest-row": I + 1 === ct.value,
1834
+ "can-drop": he.value && u.value,
1835
+ "can-edit": be.value && ce.value && u.value,
1831
1836
  "can-read": Oe.value,
1832
1837
  "can-create": ge.value,
1833
- "edit-mode-enabled": w.value,
1838
+ "edit-mode-enabled": u.value,
1834
1839
  "has-inline-edit-perm": Be.value,
1835
1840
  "row-display-type": t.rowDisplayType,
1836
- "render-drag": ka.value,
1837
- "disabled-drag": Sa.value,
1838
- "is-loading": A.value,
1841
+ "render-drag": Sa.value,
1842
+ "disabled-drag": Ca.value,
1843
+ "is-loading": E.value,
1844
+ "item-container-class": t.itemContainerClass,
1839
1845
  onClick: Qe,
1840
- onShow: s,
1846
+ onShow: d,
1841
1847
  onItemUp: Vt,
1842
1848
  onItemDown: Rt,
1843
1849
  onItemDrop: bt
1844
- }, Yt({ _: 2 }, [
1845
- D(l)[`item-${E}`] ? {
1846
- name: `item-${E}`,
1850
+ }, Kt({ _: 2 }, [
1851
+ T(l)[`item-${I}`] ? {
1852
+ name: `item-${I}`,
1847
1853
  fn: j((M) => [
1848
- H(t.$slots, `item-${E}`, Re({
1854
+ H(t.$slots, `item-${I}`, Re({
1849
1855
  [t.slotItemVar || ""]: M.item,
1850
- index: E,
1856
+ index: I,
1851
1857
  editing: M.editing,
1852
1858
  canCreate: M.canCreate,
1853
1859
  canRead: M.canRead,
@@ -1858,12 +1864,12 @@ const il = /* @__PURE__ */ ae({
1858
1864
  }))
1859
1865
  ]),
1860
1866
  key: "0"
1861
- } : D(l).item ? {
1867
+ } : T(l).item ? {
1862
1868
  name: "item",
1863
1869
  fn: j((M) => [
1864
1870
  H(t.$slots, "item", Re({
1865
1871
  [t.slotItemVar || ""]: M.item,
1866
- index: E,
1872
+ index: I,
1867
1873
  editing: M.editing,
1868
1874
  canCreate: M.canCreate,
1869
1875
  canRead: M.canRead,
@@ -1885,26 +1891,26 @@ const il = /* @__PURE__ */ ae({
1885
1891
  }))
1886
1892
  ])
1887
1893
  }))
1888
- ]), 1032, ["modelValue", "onUpdate:modelValue", "i", "drop-button", "edit-button", "display-hidden-columns-indicator", "is-draggable", "sortable", "visible-columns", "empty-columns", "add-navigation", "hidden-is-visible", "latest-row", "can-drop", "can-edit", "can-read", "can-create", "edit-mode-enabled", "has-inline-edit-perm", "row-display-type", "render-drag", "disabled-drag", "is-loading"])), [
1889
- [at, Mt(o.value[E])]
1894
+ ]), 1032, ["modelValue", "onUpdate:modelValue", "i", "drop-button", "edit-button", "display-hidden-columns-indicator", "is-draggable", "sortable", "visible-columns", "empty-columns", "add-navigation", "hidden-is-visible", "latest-row", "can-drop", "can-edit", "can-read", "can-create", "edit-mode-enabled", "has-inline-edit-perm", "row-display-type", "render-drag", "disabled-drag", "is-loading", "item-container-class"])), [
1895
+ [at, Mt(o.value[I])]
1890
1896
  ])), 128)),
1891
- qe.value.length > 0 ? (v(!0), h(W, { key: 0 }, ue(o.value, (N, E) => (v(), O(Dl, {
1892
- modelValue: o.value[E],
1893
- "onUpdate:modelValue": (M) => o.value[E] = M,
1894
- key: Nt(N, E, !0),
1895
- i: E,
1897
+ qe.value.length > 0 ? (v(!0), h(x, { key: 0 }, ue(o.value, (V, I) => (v(), $(Il, {
1898
+ modelValue: o.value[I],
1899
+ "onUpdate:modelValue": (M) => o.value[I] = M,
1900
+ key: Nt(V, I, !0),
1901
+ i: I,
1896
1902
  "hidden-columns": qe.value,
1897
1903
  "hidden-columns-col-span": dt.value,
1898
- "is-draggable": y(N),
1904
+ "is-draggable": y(V),
1899
1905
  sortable: We.value,
1900
1906
  "visible-columns": de.value,
1901
1907
  "empty-columns": _e.value,
1902
- "hidden-is-visible": rt(E),
1903
- "edit-mode-enabled": w.value,
1908
+ "hidden-is-visible": rt(I),
1909
+ "edit-mode-enabled": u.value,
1904
1910
  "has-inline-edit-perm": Be.value,
1905
1911
  onClick: Qe,
1906
- onShow: s
1907
- }, Yt({ _: 2 }, [
1912
+ onShow: d
1913
+ }, Kt({ _: 2 }, [
1908
1914
  ue(ie.value, (M) => ({
1909
1915
  name: M,
1910
1916
  fn: j((ye) => [
@@ -1915,105 +1921,105 @@ const il = /* @__PURE__ */ ae({
1915
1921
  }))
1916
1922
  ])
1917
1923
  }))
1918
- ]), 1032, ["modelValue", "onUpdate:modelValue", "i", "hidden-columns", "hidden-columns-col-span", "is-draggable", "sortable", "visible-columns", "empty-columns", "hidden-is-visible", "edit-mode-enabled", "has-inline-edit-perm"]))), 128)) : V("", !0)
1919
- ], 10, jl)
1920
- ])) : t.type === D(et).Item ? (v(), h("div", {
1924
+ ]), 1032, ["modelValue", "onUpdate:modelValue", "i", "hidden-columns", "hidden-columns-col-span", "is-draggable", "sortable", "visible-columns", "empty-columns", "hidden-is-visible", "edit-mode-enabled", "has-inline-edit-perm"]))), 128)) : A("", !0)
1925
+ ], 10, zl)
1926
+ ])) : t.type === T(et).Item ? (v(), h("div", {
1921
1927
  key: 1,
1922
1928
  ref_key: "tableBody",
1923
1929
  ref: c,
1924
- id: "lkt-table-body-" + D(se),
1925
- class: oe(["lkt-table-items-container", t.itemsContainerClass])
1930
+ id: "lkt-table-body-" + T(se),
1931
+ class: Q(["lkt-table-items-container", t.itemsContainerClass])
1926
1932
  }, [
1927
- (v(!0), h(W, null, ue(o.value, (N, E) => (v(), h(W, null, [
1928
- Mt(N) ? (v(), h("div", {
1929
- class: "lkt-table-item",
1930
- "data-i": E,
1931
- key: Nt(N, E)
1933
+ (v(!0), h(x, null, ue(o.value, (V, I) => (v(), h(x, null, [
1934
+ Mt(V) ? (v(), h("div", {
1935
+ class: Q(["lkt-table-item", Gt(V)]),
1936
+ "data-i": I,
1937
+ key: Nt(V, I)
1932
1938
  }, [
1933
1939
  H(t.$slots, "item", Re({
1934
- [t.slotItemVar || ""]: N,
1935
- index: E,
1936
- editing: w.value,
1940
+ [t.slotItemVar || ""]: V,
1941
+ index: I,
1942
+ editing: u.value,
1937
1943
  canCreate: ge.value,
1938
1944
  canRead: Oe.value,
1939
1945
  canUpdate: ce.value,
1940
1946
  canDrop: he.value,
1941
- isLoading: A.value,
1942
- doDrop: () => bt(E)
1947
+ isLoading: E.value,
1948
+ doDrop: () => bt(I)
1943
1949
  }))
1944
- ], 8, Hl)) : V("", !0)
1950
+ ], 10, ql)) : A("", !0)
1945
1951
  ], 64))), 256))
1946
- ], 10, zl)) : ba.value ? (v(), O(Ae(t.type), {
1952
+ ], 10, Hl)) : ha.value ? (v(), $(Ae(t.type), {
1947
1953
  key: 2,
1948
- class: oe(["lkt-table-items-container", t.itemsContainerClass])
1954
+ class: Q(["lkt-table-items-container", t.itemsContainerClass])
1949
1955
  }, {
1950
1956
  default: j(() => [
1951
- (v(!0), h(W, null, ue(o.value, (N, E) => (v(), h(W, null, [
1952
- Mt(N) ? (v(), h("li", {
1957
+ (v(!0), h(x, null, ue(o.value, (V, I) => (v(), h(x, null, [
1958
+ Mt(V) ? (v(), h("li", {
1953
1959
  key: 0,
1954
- class: "lkt-table-item",
1955
- "data-i": E
1960
+ class: Q(["lkt-table-item", Gt(V)]),
1961
+ "data-i": I
1956
1962
  }, [
1957
1963
  H(t.$slots, "item", Re({
1958
- [t.slotItemVar || ""]: N,
1959
- index: E,
1960
- editing: w.value,
1964
+ [t.slotItemVar || ""]: V,
1965
+ index: I,
1966
+ editing: u.value,
1961
1967
  canCreate: ge.value,
1962
1968
  canRead: Oe.value,
1963
1969
  canUpdate: ce.value,
1964
1970
  canDrop: he.value,
1965
- isLoading: A.value,
1966
- doDrop: () => bt(E)
1971
+ isLoading: E.value,
1972
+ doDrop: () => bt(I)
1967
1973
  }))
1968
- ], 8, ql)) : V("", !0)
1974
+ ], 10, Gl)) : A("", !0)
1969
1975
  ], 64))), 256))
1970
1976
  ]),
1971
1977
  _: 3
1972
- }, 8, ["class"])) : t.type === D(et).Carousel ? (v(), h("div", {
1978
+ }, 8, ["class"])) : t.type === T(et).Carousel ? (v(), h("div", {
1973
1979
  key: 3,
1974
1980
  ref_key: "tableBody",
1975
1981
  ref: c,
1976
- id: "lkt-table-body-" + D(se),
1977
- class: oe(["lkt-table-items-container", t.itemsContainerClass])
1982
+ id: "lkt-table-body-" + T(se),
1983
+ class: Q(["lkt-table-items-container", t.itemsContainerClass])
1978
1984
  }, [
1979
- Ee(D(Wa), fe({
1980
- modelValue: x.value,
1981
- "onUpdate:modelValue": p[1] || (p[1] = (N) => x.value = N)
1985
+ Ee(T(xa), fe({
1986
+ modelValue: P.value,
1987
+ "onUpdate:modelValue": p[1] || (p[1] = (V) => P.value = V)
1982
1988
  }, t.carousel, {
1983
1989
  "wrap-around": ((re = t.carousel) == null ? void 0 : re.infinite) === !0
1984
1990
  }), {
1985
1991
  addons: j(() => [
1986
- Ee(D(Qa)),
1987
- Ee(D(Za))
1992
+ Ee(T(Za)),
1993
+ Ee(T(el))
1988
1994
  ]),
1989
1995
  default: j(() => [
1990
- (v(!0), h(W, null, ue(Ye.value, (N, E) => (v(), O(D(Zt), {
1991
- key: N,
1992
- index: E
1996
+ (v(!0), h(x, null, ue(Ye.value, (V, I) => (v(), $(T(ea), {
1997
+ key: V,
1998
+ index: I
1993
1999
  }, {
1994
2000
  default: j(() => [
1995
- J("div", Xl, [
1996
- H(t.$slots, N)
2001
+ Z("div", Yl, [
2002
+ H(t.$slots, V)
1997
2003
  ])
1998
2004
  ]),
1999
2005
  _: 2
2000
2006
  }, 1032, ["index"]))), 128)),
2001
- (v(!0), h(W, null, ue(o.value, (N, E) => (v(), O(D(Zt), {
2007
+ (v(!0), h(x, null, ue(o.value, (V, I) => (v(), $(T(ea), {
2002
2008
  key: t.slide,
2003
- index: E
2009
+ index: I
2004
2010
  }, {
2005
2011
  default: j(() => [
2006
- J("div", Yl, [
2012
+ Z("div", Kl, [
2007
2013
  H(t.$slots, "item", Re({
2008
- [t.slotItemVar || ""]: N,
2009
- index: E,
2010
- editing: w.value,
2014
+ [t.slotItemVar || ""]: V,
2015
+ index: I,
2016
+ editing: u.value,
2011
2017
  canCreate: ge.value,
2012
2018
  canRead: Oe.value,
2013
2019
  canUpdate: ce.value,
2014
2020
  canDrop: he.value,
2015
- isLoading: A.value,
2016
- doDrop: () => bt(E)
2021
+ isLoading: E.value,
2022
+ doDrop: () => bt(I)
2017
2023
  }))
2018
2024
  ])
2019
2025
  ]),
@@ -2022,63 +2028,63 @@ const il = /* @__PURE__ */ ae({
2022
2028
  ]),
2023
2029
  _: 3
2024
2030
  }, 16, ["modelValue", "wrap-around"])
2025
- ], 10, Gl)) : V("", !0)
2031
+ ], 10, Xl)) : A("", !0)
2026
2032
  ], 512), [
2027
2033
  [at, it.value]
2028
2034
  ]),
2029
- !A.value && o.value.length === 0 ? (v(), h("div", Kl, [
2030
- D(l).empty ? H(t.$slots, "empty", { key: 0 }) : ha.value ? (v(), O(Ae(ya.value), {
2035
+ !E.value && o.value.length === 0 ? (v(), h("div", Wl, [
2036
+ T(l).empty ? H(t.$slots, "empty", { key: 0 }) : ya.value ? (v(), $(Ae(ka.value), {
2031
2037
  key: 1,
2032
2038
  message: t.noResultsText
2033
- }, null, 8, ["message"])) : t.noResultsText ? (v(), h(W, { key: 2 }, [
2039
+ }, null, 8, ["message"])) : t.noResultsText ? (v(), h(x, { key: 2 }, [
2034
2040
  lt(ze(t.noResultsText), 1)
2035
- ], 64)) : V("", !0)
2036
- ])) : V("", !0),
2037
- A.value ? (v(), O(K, { key: 3 })) : V("", !0),
2038
- ht.value || D(l).bottomButtons ? (v(), h("div", Wl, [
2039
- ht.value && o.value.length >= t.requiredItemsForBottomCreate ? (v(), O(ea, {
2041
+ ], 64)) : A("", !0)
2042
+ ])) : A("", !0),
2043
+ E.value ? (v(), $(W, { key: 3 })) : A("", !0),
2044
+ ht.value || T(l).bottomButtons ? (v(), h("div", xl, [
2045
+ ht.value && o.value.length >= t.requiredItemsForBottomCreate ? (v(), $(ta, {
2040
2046
  key: 0,
2041
2047
  config: we.value,
2042
2048
  disabled: !qt.value,
2043
- onClick: B,
2049
+ onClick: w,
2044
2050
  onAppend: R
2045
- }, null, 8, ["config", "disabled"])) : V("", !0),
2051
+ }, null, 8, ["config", "disabled"])) : A("", !0),
2046
2052
  H(t.$slots, "bottom-buttons")
2047
- ])) : V("", !0),
2048
- t.paginator && Object.keys(t.paginator).length > 0 ? (v(), O(te, fe({
2053
+ ])) : A("", !0),
2054
+ t.paginator && Object.keys(t.paginator).length > 0 ? (v(), $(ae, fe({
2049
2055
  key: 5,
2050
2056
  ref_key: "paginatorRef",
2051
- ref: Q
2057
+ ref: ee
2052
2058
  }, t.paginator, {
2053
- modelValue: T.value,
2054
- "onUpdate:modelValue": p[2] || (p[2] = (N) => T.value = N),
2059
+ modelValue: D.value,
2060
+ "onUpdate:modelValue": p[2] || (p[2] = (V) => D.value = V),
2055
2061
  onLoading: Dt,
2056
2062
  onPerms: Bt,
2057
2063
  onResponse: Le
2058
- }), null, 16, ["modelValue"])) : V("", !0)
2064
+ }), null, 16, ["modelValue"])) : A("", !0)
2059
2065
  ];
2060
2066
  }),
2061
2067
  _: 3
2062
2068
  }, 8, ["class"]))
2063
- ], 8, El);
2069
+ ], 8, Al);
2064
2070
  };
2065
2071
  }
2066
- }), nn = {
2072
+ }), on = {
2067
2073
  install: (e) => {
2068
- e.component("lkt-table") === void 0 && e.component("lkt-table", xl);
2074
+ e.component("lkt-table") === void 0 && e.component("lkt-table", Jl);
2069
2075
  }
2070
- }, on = (e) => (Y.navButtonSlot = e, !0), rn = (e) => (Y.dropButtonSlot = e, !0), un = (e) => (Y.createButtonSlot = e, !0), sn = (e) => {
2076
+ }, rn = (e) => (Y.navButtonSlot = e, !0), un = (e) => (Y.dropButtonSlot = e, !0), sn = (e) => (Y.createButtonSlot = e, !0), dn = (e) => {
2071
2077
  Y.defaultEmptySlot = e;
2072
- }, dn = (e) => {
2078
+ }, cn = (e) => {
2073
2079
  Y.defaultSaveIcon = e;
2074
2080
  };
2075
2081
  export {
2076
- fn as Column,
2077
- pn as createColumn,
2078
- nn as default,
2079
- un as setTableCreateButtonSlot,
2080
- rn as setTableDropButtonSlot,
2081
- sn as setTableEmptySlot,
2082
- on as setTableNavButtonSlot,
2083
- dn as setTableSaveIcon
2082
+ pn as Column,
2083
+ mn as createColumn,
2084
+ on as default,
2085
+ sn as setTableCreateButtonSlot,
2086
+ un as setTableDropButtonSlot,
2087
+ dn as setTableEmptySlot,
2088
+ rn as setTableNavButtonSlot,
2089
+ cn as setTableSaveIcon
2084
2090
  };