lkt-table 2.0.13 → 2.0.15

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