lkt-table 2.0.40 → 2.0.42

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