lkt-table 2.0.40 → 2.0.41

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