lkt-table 2.0.28 → 2.0.30

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