lkt-table 2.0.23 → 2.0.25

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