lkt-table 1.2.21 → 1.2.22

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,11 +1,11 @@
1
- import { reactive as A, defineComponent as J, ref as C, watch as $, nextTick as ve, computed as p, resolveComponent as L, openBlock as u, createBlock as b, withCtx as N, createTextVNode as ne, toDisplayString as G, unref as E, createElementBlock as f, Fragment as R, withModifiers as Ue, resolveDynamicComponent as X, createCommentVNode as y, normalizeClass as ae, createElementVNode as T, createVNode as _, renderList as q, renderSlot as O, withDirectives as le, vShow as oe, useSlots as ct, onMounted as mt, createSlots as Re } from "vue";
1
+ import { reactive as A, defineComponent as J, ref as C, watch as $, nextTick as ve, computed as p, resolveComponent as L, openBlock as i, createBlock as b, withCtx as N, createTextVNode as ne, toDisplayString as G, unref as D, createElementBlock as f, Fragment as R, withModifiers as Ue, resolveDynamicComponent as X, createCommentVNode as y, normalizeClass as ae, createElementVNode as T, createVNode as _, renderList as q, renderSlot as O, withDirectives as le, vShow as oe, useSlots as ct, onMounted as mt, createSlots as Re } from "vue";
2
2
  import { httpCall as ft } from "lkt-http-client";
3
3
  import { __ as z } from "lkt-i18n";
4
4
  import { createLktEvent as he } from "lkt-events";
5
5
  import { replaceAll as Oe, generateRandomString as pt } from "lkt-string-tools";
6
6
  import { DataState as vt } from "lkt-data-state";
7
7
  import ht from "sortablejs";
8
- import { time as re } from "lkt-date-tools";
8
+ import { time as se } from "lkt-date-tools";
9
9
  import kt from "lkt-loader";
10
10
  import yt from "lkt-button";
11
11
  import bt from "lkt-paginator";
@@ -15,8 +15,8 @@ import St from "lkt-field-select";
15
15
  import Vt from "lkt-field-switch";
16
16
  import Bt from "lkt-field-file";
17
17
  class F {
18
- constructor(t = "", r = "") {
19
- this.key = t, this.label = r, this.sortable = !0, this.hidden = !1, this.formatter = void 0, this.checkEmpty = void 0, this.colspan = void 0, this.resource = "", this.resourceData = {}, this.isMultiple = !1, this.isLoading = !1, this.resourceLoaded = !1, this.valueSlot = "", this.editSlot = "", this.multipleDisplay = "", this.multipleDisplayEdition = "";
18
+ constructor(t = "", s = "") {
19
+ this.preferSlot = !0, this.key = t, this.label = s, this.sortable = !0, this.hidden = !1, this.formatter = void 0, this.checkEmpty = void 0, this.colspan = void 0, this.preferSlot = !0, this.resource = "", this.resourceData = {}, this.isMultiple = !1, this.isLoading = !1, this.resourceLoaded = !1, this.valueSlot = "", this.editSlot = "", this.multipleDisplay = "", this.multipleDisplayEdition = "";
20
20
  }
21
21
  setIsSortable(t = !0) {
22
22
  return this.sortable = t, this;
@@ -37,7 +37,10 @@ class F {
37
37
  return this.checkEmpty = t, this;
38
38
  }
39
39
  setColSpan(t = void 0) {
40
- return this.colspan = void 0, this;
40
+ return this.colspan = t, this;
41
+ }
42
+ setPreferSlot(t = !0) {
43
+ return this.preferSlot = t, this;
41
44
  }
42
45
  getHref(t) {
43
46
  return typeof this.link == "function" ? this.link(t) : this.link;
@@ -140,8 +143,8 @@ class F {
140
143
  setSlotData(t) {
141
144
  return this.slotData = t, this;
142
145
  }
143
- setAutoLoadSelectOptions(t = !0, r = "") {
144
- return this.autoLoadSelectOptions = t, this.autoLoadSelectOptionsKey = r, this;
146
+ setAutoLoadSelectOptions(t = !0, s = "") {
147
+ return this.autoLoadSelectOptions = t, this.autoLoadSelectOptionsKey = s, this;
145
148
  }
146
149
  setTagMode(t = !0) {
147
150
  return this.tags = t, this;
@@ -159,49 +162,49 @@ class F {
159
162
  return this.equivalentToSelectValue = t, this;
160
163
  }
161
164
  }
162
- const Ml = (l, t, r = !0) => A(new F(l, t).setIsSortable(r)), $l = (l, t, r, n = !0) => A(new F(l, t).setIsSortable(n).defineAsLink(r)), Rl = (l, t, r, n = !0) => A(new F(l, t).setIsSortable(n).defineAsAction(r)), Al = (l, t, r = !0) => A(new F(l, t).setIsSortable(r).defineAsText()), Fl = (l, t, r = !0) => A(new F(l, t).setIsSortable(r).defineAsInteger()), Ul = (l, t, r = !0) => A(new F(l, t).setIsSortable(r).defineAsFloat()), Ol = (l, t, r = !0) => A(new F(l, t).setIsSortable(r).defineAsEmail()), Nl = (l, t, r = !0) => A(new F(l, t).setIsSortable(r).defineAsTel()), Wl = (l, t, r = !0) => A(new F(l, t).setIsSortable(r).defineAsCheck()), Hl = (l, t, r = !0) => A(new F(l, t).setIsSortable(r).defineAsSwitch()), Kl = (l, t, r, n = !0) => A(new F(l, t).setIsSortable(n).defineAsSelect(r)), Pl = (l, t, r = !0) => A(new F(l, t).setIsSortable(r).defineAsFile()), ql = (l, t, r = !0) => A(new F(l, t).setIsSortable(r).setIsHidden(!0)), Ae = (l, t, r, n) => {
163
- if (!r) return 0;
164
- let i = l[r.key], o = t[r.key];
165
+ const $l = (l, t, s = !0) => A(new F(l, t).setIsSortable(s)), Rl = (l, t, s, n = !0) => A(new F(l, t).setIsSortable(n).defineAsLink(s)), Al = (l, t, s, n = !0) => A(new F(l, t).setIsSortable(n).defineAsAction(s)), Fl = (l, t, s = !0) => A(new F(l, t).setIsSortable(s).defineAsText()), Ul = (l, t, s = !0) => A(new F(l, t).setIsSortable(s).defineAsInteger()), Ol = (l, t, s = !0) => A(new F(l, t).setIsSortable(s).defineAsFloat()), Nl = (l, t, s = !0) => A(new F(l, t).setIsSortable(s).defineAsEmail()), Wl = (l, t, s = !0) => A(new F(l, t).setIsSortable(s).defineAsTel()), Hl = (l, t, s = !0) => A(new F(l, t).setIsSortable(s).defineAsCheck()), Pl = (l, t, s = !0) => A(new F(l, t).setIsSortable(s).defineAsSwitch()), Kl = (l, t, s, n = !0) => A(new F(l, t).setIsSortable(n).defineAsSelect(s)), ql = (l, t, s = !0) => A(new F(l, t).setIsSortable(s).defineAsFile()), jl = (l, t, s = !0) => A(new F(l, t).setIsSortable(s).setIsHidden(!0)), Ae = (l, t, s, n) => {
166
+ if (!s) return 0;
167
+ let u = l[s.key], o = t[s.key];
165
168
  if (n === "asc") {
166
- if (i > o) return 1;
167
- if (o > i) return -1;
169
+ if (u > o) return 1;
170
+ if (o > u) return -1;
168
171
  } else {
169
- if (i > o) return -1;
170
- if (o > i) return 1;
172
+ if (u > o) return -1;
173
+ if (o > u) return 1;
171
174
  }
172
175
  return 0;
173
- }, x = (l, t, r, n = []) => {
176
+ }, x = (l, t, s, n = []) => {
174
177
  if (l.extractTitleFromColumn) {
175
- let i = n.find((o) => o.key === l.extractTitleFromColumn);
176
- if (i)
177
- return x(i, t, r, n);
178
+ let u = n.find((o) => o.key === l.extractTitleFromColumn);
179
+ if (u)
180
+ return x(u, t, s, n);
178
181
  }
179
182
  if (l.formatter && typeof l.formatter == "function") {
180
- let i = l.formatter(t[l.key], t, l, r);
181
- return i.startsWith("__:") ? z(i.substring(3)) : i;
183
+ let u = l.formatter(t[l.key], t, l, s);
184
+ return u.startsWith("__:") ? z(u.substring(3)) : u;
182
185
  }
183
186
  return t[l.key];
184
- }, Dt = (l, t, r) => {
187
+ }, Dt = (l, t, s) => {
185
188
  if (!l.colspan) return -1;
186
189
  let n = t;
187
- return r.forEach((i) => {
188
- let o = ke(l, i);
190
+ return s.forEach((u) => {
191
+ let o = ke(l, u);
189
192
  o > 0 && o < n && (n = o);
190
193
  }), n;
191
- }, ke = (l, t) => l.colspan === !1 ? !1 : typeof l.colspan == "function" ? l.colspan(t) : l.colspan, Et = (l, t, r) => {
194
+ }, ke = (l, t) => l.colspan === !1 ? !1 : typeof l.colspan == "function" ? l.colspan(t) : l.colspan, Et = (l, t) => typeof l.preferSlot > "u" ? !0 : l.preferSlot === !1 ? !1 : typeof l.preferSlot == "function" ? l.preferSlot(t) : !0, Tt = (l, t, s) => {
192
195
  if (typeof l != "object" || !l.key || t.indexOf(l.key) > -1) return !1;
193
- let n = ke(l, r);
194
- return typeof l.colspan > "u" ? !0 : (typeof l.colspan < "u" && (typeof l.colspan == "function" ? n = parseInt(l.colspan()) : n = parseInt(l.colspan)), n > 0);
195
- }, Tt = (l = []) => {
196
+ let n = ke(l, s);
197
+ return typeof l.colspan > "u" ? !0 : (typeof l.colspan < "u" && (typeof l.colspan == "function" ? n = parseInt(l.colspan(s)) : n = parseInt(l.colspan)), n > 0);
198
+ }, wt = (l = []) => {
196
199
  if (l.length > 0) {
197
200
  for (let t = 0; t < l.length; ++t)
198
201
  if (l[t].sortable) return l[t].key;
199
202
  }
200
203
  return "";
201
- }, wt = (l, t) => {
204
+ }, It = (l, t) => {
202
205
  if (l.length > 0) {
203
- for (let r = 0; r < l.length; ++r)
204
- if (l[r].key === t) return l[r];
206
+ for (let s = 0; s < l.length; ++s)
207
+ if (l[s].key === t) return l[s];
205
208
  }
206
209
  return null;
207
210
  }, Ne = /* @__PURE__ */ J({
@@ -215,31 +218,31 @@ const Ml = (l, t, r = !0) => A(new F(l, t).setIsSortable(r)), $l = (l, t, r, n =
215
218
  },
216
219
  emits: ["update:modelValue"],
217
220
  setup(l, { emit: t }) {
218
- const r = t, n = l, i = C(n.modelValue), o = C(i.value[n.column.key]), h = C(null), k = C(n.column.showLoading());
221
+ const s = t, n = l, u = C(n.modelValue), o = C(u.value[n.column.key]), h = C(null), k = C(n.column.showLoading());
219
222
  $(o, (a) => {
220
- const s = JSON.parse(JSON.stringify(i.value));
221
- s[n.column.key] = a, r("update:modelValue", s);
223
+ const r = JSON.parse(JSON.stringify(u.value));
224
+ r[n.column.key] = a, s("update:modelValue", r);
222
225
  }), $(() => n.modelValue, (a) => {
223
- i.value = a, o.value = i.value[n.column.key];
226
+ u.value = a, o.value = u.value[n.column.key];
224
227
  }), $(() => n.column, () => {
225
228
  n.column.resourceLoaded && ve(() => k.value = !1);
226
229
  }, { deep: !0 }), n.column.hasToLoadResource() && n.column.loadResource();
227
- const v = p(() => ({ ...n.column.slotData, item: i.value }));
228
- return (a, s) => {
229
- const j = L("lkt-anchor"), K = L("lkt-field-text"), U = L("lkt-field-switch"), Y = L("lkt-field-file"), d = L("lkt-loader"), M = L("lkt-field-select");
230
- return a.column.type === "link" ? (u(), b(j, {
230
+ const v = p(() => ({ ...n.column.slotData, item: u.value }));
231
+ return (a, r) => {
232
+ const j = L("lkt-anchor"), P = L("lkt-field-text"), U = L("lkt-field-switch"), Y = L("lkt-field-file"), d = L("lkt-loader"), M = L("lkt-field-select");
233
+ return a.column.type === "link" ? (i(), b(j, {
231
234
  key: 0,
232
- to: a.column.getHref(i.value)
235
+ to: a.column.getHref(u.value)
233
236
  }, {
234
237
  default: N(() => [
235
- ne(G(E(x)(a.column, i.value, a.i)), 1)
238
+ ne(G(D(x)(a.column, u.value, a.i)), 1)
236
239
  ]),
237
240
  _: 1
238
- }, 8, ["to"])) : a.column.type === "action" ? (u(), f("a", {
241
+ }, 8, ["to"])) : a.column.type === "action" ? (i(), f("a", {
239
242
  key: 1,
240
243
  href: "#",
241
- onClick: s[0] || (s[0] = (c) => a.column.doAction(i.value))
242
- }, G(E(x)(a.column, i.value, a.i)), 1)) : a.column.type === "text" ? (u(), b(K, {
244
+ onClick: r[0] || (r[0] = (c) => a.column.doAction(u.value))
245
+ }, G(D(x)(a.column, u.value, a.i)), 1)) : a.column.type === "text" ? (i(), b(P, {
243
246
  key: 2,
244
247
  "read-mode": !a.column.editable || !a.editModeEnabled,
245
248
  ref: (c) => h.value = c,
@@ -247,8 +250,8 @@ const Ml = (l, t, r = !0) => A(new F(l, t).setIsSortable(r)), $l = (l, t, r, n =
247
250
  "value-slot": a.column.valueSlot,
248
251
  "slot-data": v.value,
249
252
  modelValue: o.value,
250
- "onUpdate:modelValue": s[1] || (s[1] = (c) => o.value = c)
251
- }, null, 8, ["read-mode", "edit-slot", "value-slot", "slot-data", "modelValue"])) : a.column.type === "email" ? (u(), b(K, {
253
+ "onUpdate:modelValue": r[1] || (r[1] = (c) => o.value = c)
254
+ }, null, 8, ["read-mode", "edit-slot", "value-slot", "slot-data", "modelValue"])) : a.column.type === "email" ? (i(), b(P, {
252
255
  key: 3,
253
256
  "read-mode": !a.column.editable || !a.editModeEnabled,
254
257
  ref: (c) => h.value = c,
@@ -257,8 +260,8 @@ const Ml = (l, t, r = !0) => A(new F(l, t).setIsSortable(r)), $l = (l, t, r, n =
257
260
  "slot-data": v.value,
258
261
  "is-email": "",
259
262
  modelValue: o.value,
260
- "onUpdate:modelValue": s[2] || (s[2] = (c) => o.value = c)
261
- }, null, 8, ["read-mode", "edit-slot", "value-slot", "slot-data", "modelValue"])) : a.column.type === "tel" ? (u(), b(K, {
263
+ "onUpdate:modelValue": r[2] || (r[2] = (c) => o.value = c)
264
+ }, null, 8, ["read-mode", "edit-slot", "value-slot", "slot-data", "modelValue"])) : a.column.type === "tel" ? (i(), b(P, {
262
265
  key: 4,
263
266
  "read-mode": !a.column.editable || !a.editModeEnabled,
264
267
  ref: (c) => h.value = c,
@@ -267,8 +270,8 @@ const Ml = (l, t, r = !0) => A(new F(l, t).setIsSortable(r)), $l = (l, t, r, n =
267
270
  "slot-data": v.value,
268
271
  "is-tel": "",
269
272
  modelValue: o.value,
270
- "onUpdate:modelValue": s[3] || (s[3] = (c) => o.value = c)
271
- }, null, 8, ["read-mode", "edit-slot", "value-slot", "slot-data", "modelValue"])) : a.column.type === "int" ? (u(), b(K, {
273
+ "onUpdate:modelValue": r[3] || (r[3] = (c) => o.value = c)
274
+ }, null, 8, ["read-mode", "edit-slot", "value-slot", "slot-data", "modelValue"])) : a.column.type === "int" ? (i(), b(P, {
272
275
  key: 5,
273
276
  "read-mode": !a.column.editable || !a.editModeEnabled,
274
277
  ref: (c) => h.value = c,
@@ -277,8 +280,8 @@ const Ml = (l, t, r = !0) => A(new F(l, t).setIsSortable(r)), $l = (l, t, r, n =
277
280
  "slot-data": v.value,
278
281
  "is-number": "",
279
282
  modelValue: o.value,
280
- "onUpdate:modelValue": s[4] || (s[4] = (c) => o.value = c)
281
- }, null, 8, ["read-mode", "edit-slot", "value-slot", "slot-data", "modelValue"])) : a.column.type === "float" ? (u(), b(K, {
283
+ "onUpdate:modelValue": r[4] || (r[4] = (c) => o.value = c)
284
+ }, null, 8, ["read-mode", "edit-slot", "value-slot", "slot-data", "modelValue"])) : a.column.type === "float" ? (i(), b(P, {
282
285
  key: 6,
283
286
  "read-mode": !a.column.editable || !a.editModeEnabled,
284
287
  ref: (c) => h.value = c,
@@ -287,33 +290,33 @@ const Ml = (l, t, r = !0) => A(new F(l, t).setIsSortable(r)), $l = (l, t, r, n =
287
290
  "slot-data": v.value,
288
291
  "is-number": "",
289
292
  modelValue: o.value,
290
- "onUpdate:modelValue": s[5] || (s[5] = (c) => o.value = c)
291
- }, null, 8, ["read-mode", "edit-slot", "value-slot", "slot-data", "modelValue"])) : a.column.type === "check" ? (u(), b(U, {
293
+ "onUpdate:modelValue": r[5] || (r[5] = (c) => o.value = c)
294
+ }, null, 8, ["read-mode", "edit-slot", "value-slot", "slot-data", "modelValue"])) : a.column.type === "check" ? (i(), b(U, {
292
295
  key: 7,
293
296
  "is-check": "",
294
297
  "read-mode": !a.column.editable || !a.editModeEnabled,
295
298
  ref: (c) => h.value = c,
296
299
  modelValue: o.value,
297
- "onUpdate:modelValue": s[6] || (s[6] = (c) => o.value = c)
298
- }, null, 8, ["read-mode", "modelValue"])) : a.column.type === "switch" ? (u(), b(U, {
300
+ "onUpdate:modelValue": r[6] || (r[6] = (c) => o.value = c)
301
+ }, null, 8, ["read-mode", "modelValue"])) : a.column.type === "switch" ? (i(), b(U, {
299
302
  key: 8,
300
303
  "read-mode": !a.column.editable || !a.editModeEnabled,
301
304
  ref: (c) => h.value = c,
302
305
  modelValue: o.value,
303
- "onUpdate:modelValue": s[7] || (s[7] = (c) => o.value = c)
304
- }, null, 8, ["read-mode", "modelValue"])) : a.column.type === "file" ? (u(), b(Y, {
306
+ "onUpdate:modelValue": r[7] || (r[7] = (c) => o.value = c)
307
+ }, null, 8, ["read-mode", "modelValue"])) : a.column.type === "file" ? (i(), b(Y, {
305
308
  key: 9,
306
309
  "read-mode": !a.column.editable || !a.editModeEnabled,
307
310
  ref: (c) => h.value = c,
308
311
  modelValue: o.value,
309
- "onUpdate:modelValue": s[8] || (s[8] = (c) => o.value = c)
310
- }, null, 8, ["read-mode", "modelValue"])) : a.column.type === "select" ? (u(), f(R, { key: 10 }, [
311
- k.value ? (u(), b(d, { key: 0 })) : (u(), b(M, {
312
+ "onUpdate:modelValue": r[8] || (r[8] = (c) => o.value = c)
313
+ }, null, 8, ["read-mode", "modelValue"])) : a.column.type === "select" ? (i(), f(R, { key: 10 }, [
314
+ k.value ? (i(), b(d, { key: 0 })) : (i(), b(M, {
312
315
  key: 1,
313
316
  "read-mode": !a.column.editable || !a.editModeEnabled,
314
317
  ref: (c) => h.value = c,
315
318
  modelValue: o.value,
316
- "onUpdate:modelValue": s[9] || (s[9] = (c) => o.value = c),
319
+ "onUpdate:modelValue": r[9] || (r[9] = (c) => o.value = c),
317
320
  "slot-data": v.value,
318
321
  resource: a.column.resource,
319
322
  "use-resource-slot": a.column.resourceSlot ? a.column.resourceSlot : a.column.resource,
@@ -324,8 +327,8 @@ const Ml = (l, t, r = !0) => A(new F(l, t).setIsSortable(r)), $l = (l, t, r, n =
324
327
  "multiple-display": a.column.multipleDisplay,
325
328
  "multiple-display-edition": a.column.multipleDisplayEdition
326
329
  }, null, 8, ["read-mode", "modelValue", "slot-data", "resource", "use-resource-slot", "resource-data", "options", "multiple", "tags", "multiple-display", "multiple-display-edition"]))
327
- ], 64)) : (u(), f(R, { key: 11 }, [
328
- ne(G(E(x)(a.column, i.value, a.i, a.columns)), 1)
330
+ ], 64)) : (i(), f(R, { key: 11 }, [
331
+ ne(G(D(x)(a.column, u.value, a.i, a.columns)), 1)
329
332
  ], 64));
330
333
  };
331
334
  }
@@ -334,7 +337,7 @@ const Ml = (l, t, r = !0) => A(new F(l, t).setIsSortable(r)), $l = (l, t, r, n =
334
337
  dropButtonSlot: "",
335
338
  editButtonSlot: "",
336
339
  createButtonSlot: ""
337
- }, It = /* @__PURE__ */ J({
340
+ }, Lt = /* @__PURE__ */ J({
338
341
  __name: "DropButton",
339
342
  props: {
340
343
  disabled: { type: Boolean, default: !1 },
@@ -346,27 +349,27 @@ const Ml = (l, t, r = !0) => A(new F(l, t).setIsSortable(r)), $l = (l, t, r, n =
346
349
  },
347
350
  emits: ["click"],
348
351
  setup(l, { emit: t }) {
349
- const r = t, n = l, i = p(() => W.dropButtonSlot !== ""), o = p(() => W.dropButtonSlot), h = p(() => n.text.startsWith("__:") ? z(n.text.substring(3)) : n.text);
352
+ const s = t, n = l, u = p(() => W.dropButtonSlot !== ""), o = p(() => W.dropButtonSlot), h = p(() => n.text.startsWith("__:") ? z(n.text.substring(3)) : n.text);
350
353
  return (k, v) => {
351
354
  const a = L("lkt-button");
352
- return u(), b(a, {
355
+ return i(), b(a, {
353
356
  palette: "table-delete",
354
- icon: i.value ? "" : k.icon,
355
- text: i.value ? "" : h.value,
357
+ icon: u.value ? "" : k.icon,
358
+ text: u.value ? "" : h.value,
356
359
  resource: k.resource,
357
360
  "resource-data": k.resourceData,
358
361
  "confirm-modal": k.confirm,
359
362
  disabled: k.disabled,
360
- onClick: v[0] || (v[0] = Ue((s) => r("click"), ["prevent", "stop"]))
363
+ onClick: v[0] || (v[0] = Ue((r) => s("click"), ["prevent", "stop"]))
361
364
  }, {
362
365
  default: N(() => [
363
- i.value ? (u(), b(X(o.value), { key: 0 })) : y("", !0)
366
+ u.value ? (i(), b(X(o.value), { key: 0 })) : y("", !0)
364
367
  ]),
365
368
  _: 1
366
369
  }, 8, ["icon", "text", "resource", "resource-data", "confirm-modal", "disabled"]);
367
370
  };
368
371
  }
369
- }), Lt = /* @__PURE__ */ J({
372
+ }), Mt = /* @__PURE__ */ J({
370
373
  __name: "EditButton",
371
374
  props: {
372
375
  disabled: { type: Boolean, default: !1 },
@@ -379,41 +382,41 @@ const Ml = (l, t, r = !0) => A(new F(l, t).setIsSortable(r)), $l = (l, t, r, n =
379
382
  },
380
383
  emits: ["click"],
381
384
  setup(l, { emit: t }) {
382
- const r = t, n = l, i = p(() => W.editButtonSlot !== ""), o = p(() => W.editButtonSlot), h = p(() => n.text.startsWith("__:") ? z(n.text.substring(3)) : n.text);
385
+ const s = t, n = l, u = p(() => W.editButtonSlot !== ""), o = p(() => W.editButtonSlot), h = p(() => n.text.startsWith("__:") ? z(n.text.substring(3)) : n.text);
383
386
  return (k, v) => {
384
387
  const a = L("lkt-button");
385
- return u(), b(a, {
388
+ return i(), b(a, {
386
389
  palette: "table-delete",
387
- icon: i.value ? "" : k.icon,
388
- text: i.value ? "" : h.value,
390
+ icon: u.value ? "" : k.icon,
391
+ text: u.value ? "" : h.value,
389
392
  "on-click-to": k.link,
390
393
  "is-anchor": k.link !== "",
391
394
  resource: k.resource,
392
395
  "resource-data": k.resourceData,
393
396
  "confirm-modal": k.confirm,
394
397
  disabled: k.disabled,
395
- onClick: v[0] || (v[0] = Ue((s) => r("click"), ["prevent", "stop"]))
398
+ onClick: v[0] || (v[0] = Ue((r) => s("click"), ["prevent", "stop"]))
396
399
  }, {
397
400
  default: N(() => [
398
- i.value ? (u(), b(X(o.value), { key: 0 })) : y("", !0)
401
+ u.value ? (i(), b(X(o.value), { key: 0 })) : y("", !0)
399
402
  ]),
400
403
  _: 1
401
404
  }, 8, ["icon", "text", "on-click-to", "is-anchor", "resource", "resource-data", "confirm-modal", "disabled"]);
402
405
  };
403
406
  }
404
- }), Mt = ["data-i", "data-draggable"], $t = {
407
+ }), $t = ["data-i", "data-draggable"], Rt = {
405
408
  key: 1,
406
409
  "data-role": "invalid-drag-indicator"
407
- }, Rt = {
410
+ }, At = {
408
411
  key: 2,
409
412
  class: "lkt-table-nav-cell"
410
- }, At = { class: "lkt-table-nav-container" }, Ft = /* @__PURE__ */ T("i", { class: "" }, null, -1), Ut = /* @__PURE__ */ T("i", { class: "" }, null, -1), Ot = ["data-column", "colspan", "title", "onClick"], Nt = {
413
+ }, Ft = { class: "lkt-table-nav-container" }, Ut = /* @__PURE__ */ T("i", { class: "" }, null, -1), Ot = /* @__PURE__ */ T("i", { class: "" }, null, -1), Nt = ["data-column", "colspan", "title", "onClick"], Wt = {
411
414
  key: 4,
412
415
  class: "lkt-table-col-drop"
413
- }, Wt = {
416
+ }, Ht = {
414
417
  key: 5,
415
418
  class: "lkt-table-col-edit"
416
- }, Ht = /* @__PURE__ */ J({
419
+ }, Pt = /* @__PURE__ */ J({
417
420
  __name: "LktTableRow",
418
421
  props: {
419
422
  modelValue: { default: () => ({}) },
@@ -439,49 +442,49 @@ const Ml = (l, t, r = !0) => A(new F(l, t).setIsSortable(r)), $l = (l, t, r, n =
439
442
  },
440
443
  emits: ["update:modelValue", "click", "show", "item-up", "item-down", "item-drop"],
441
444
  setup(l, { emit: t }) {
442
- const r = t, n = l, i = C(n.modelValue), o = C(n.editLink);
443
- for (let d in i.value) o.value = Oe(o.value, ":" + d, i.value[d]);
445
+ const s = t, n = l, u = C(n.modelValue), o = C(n.editLink);
446
+ for (let d in u.value) o.value = Oe(o.value, ":" + d, u.value[d]);
444
447
  const h = (d, M, c) => {
445
- r("click", d, he("", { item: M, column: c }));
448
+ s("click", d, he("", { item: M, column: c }));
446
449
  }, k = (d, M) => {
447
- r("show", d, he("", { i: M }));
450
+ s("show", d, he("", { i: M }));
448
451
  }, v = p(() => {
449
452
  let d = [];
450
453
  return n.sortable && n.isDraggable && d.push("handle"), d.join(" ");
451
- }), a = p(() => W.navButtonSlot !== ""), s = p(() => W.navButtonSlot), j = () => {
452
- r("item-up", n.i);
453
- }, K = () => {
454
- r("item-down", n.i);
454
+ }), a = p(() => W.navButtonSlot !== ""), r = p(() => W.navButtonSlot), j = () => {
455
+ s("item-up", n.i);
456
+ }, P = () => {
457
+ s("item-down", n.i);
455
458
  }, U = () => {
456
- r("item-drop", n.i);
459
+ s("item-drop", n.i);
457
460
  }, Y = () => {
458
461
  };
459
- return $(() => n.modelValue, (d) => i.value = d), $(i, (d) => {
460
- r("update:modelValue", d, n.i);
462
+ return $(() => n.modelValue, (d) => u.value = d), $(u, (d) => {
463
+ s("update:modelValue", d, n.i);
461
464
  }, { deep: !0 }), (d, M) => {
462
465
  const c = L("lkt-button");
463
- return u(), f("tr", {
466
+ return i(), f("tr", {
464
467
  "data-i": d.i,
465
468
  "data-draggable": d.isDraggable
466
469
  }, [
467
- d.sortable && d.isDraggable && d.editModeEnabled ? (u(), f("td", {
470
+ d.sortable && d.isDraggable && d.editModeEnabled ? (i(), f("td", {
468
471
  key: 0,
469
472
  "data-role": "drag-indicator",
470
473
  class: ae(v.value)
471
- }, null, 2)) : d.sortable && d.editModeEnabled ? (u(), f("td", $t)) : y("", !0),
472
- d.addNavigation && d.editModeEnabled ? (u(), f("td", Rt, [
473
- T("div", At, [
474
+ }, null, 2)) : d.sortable && d.editModeEnabled ? (i(), f("td", Rt)) : y("", !0),
475
+ d.addNavigation && d.editModeEnabled ? (i(), f("td", At, [
476
+ T("div", Ft, [
474
477
  _(c, {
475
478
  palette: "table-nav",
476
479
  disabled: d.i === 0,
477
480
  onClick: j
478
481
  }, {
479
482
  default: N(() => [
480
- a.value ? (u(), b(X(s.value), {
483
+ a.value ? (i(), b(X(r.value), {
481
484
  key: 0,
482
485
  direction: "up"
483
- })) : (u(), f(R, { key: 1 }, [
484
- Ft,
486
+ })) : (i(), f(R, { key: 1 }, [
487
+ Ut,
485
488
  ne(" UP ")
486
489
  ], 64))
487
490
  ]),
@@ -490,14 +493,14 @@ const Ml = (l, t, r = !0) => A(new F(l, t).setIsSortable(r)), $l = (l, t, r, n =
490
493
  _(c, {
491
494
  palette: "table-nav",
492
495
  disabled: d.latestRow,
493
- onClick: K
496
+ onClick: P
494
497
  }, {
495
498
  default: N(() => [
496
- a.value ? (u(), b(X(s.value), {
499
+ a.value ? (i(), b(X(r.value), {
497
500
  key: 0,
498
501
  direction: "down"
499
- })) : (u(), f(R, { key: 1 }, [
500
- Ut,
502
+ })) : (i(), f(R, { key: 1 }, [
503
+ Ot,
501
504
  ne(" DOWN ")
502
505
  ], 64))
503
506
  ]),
@@ -505,60 +508,60 @@ const Ml = (l, t, r = !0) => A(new F(l, t).setIsSortable(r)), $l = (l, t, r, n =
505
508
  }, 8, ["disabled"])
506
509
  ])
507
510
  ])) : y("", !0),
508
- d.displayHiddenColumnsIndicator ? (u(), f("td", {
511
+ d.displayHiddenColumnsIndicator ? (i(), f("td", {
509
512
  key: 3,
510
- onClick: M[0] || (M[0] = (B) => k(B, d.i)),
513
+ onClick: M[0] || (M[0] = (V) => k(V, d.i)),
511
514
  "data-role": "show-more",
512
515
  class: ae(d.hiddenIsVisible ? "state-open" : "")
513
516
  }, null, 2)) : y("", !0),
514
- (u(!0), f(R, null, q(d.visibleColumns, (B) => (u(), f(R, null, [
515
- E(Et)(B, d.emptyColumns, i.value) ? (u(), f("td", {
517
+ (i(!0), f(R, null, q(d.visibleColumns, (V) => (i(), f(R, null, [
518
+ D(Tt)(V, d.emptyColumns, u.value) ? (i(), f("td", {
516
519
  key: "td" + d.i,
517
- "data-column": B.key,
518
- colspan: E(ke)(B, i.value),
519
- title: E(x)(B, i.value, d.i, d.visibleColumns),
520
- onClick: (ee) => h(ee, i.value, B)
520
+ "data-column": V.key,
521
+ colspan: D(ke)(V, u.value),
522
+ title: D(x)(V, u.value, d.i, d.visibleColumns),
523
+ onClick: (ee) => h(ee, u.value, V)
521
524
  }, [
522
- d.$slots[B.key] ? O(d.$slots, B.key, {
525
+ d.$slots[V.key] && D(Et)(V, u.value) ? O(d.$slots, V.key, {
523
526
  key: 0,
524
- value: i.value[B.key],
525
- item: i.value,
526
- column: B,
527
+ value: u.value[V.key],
528
+ item: u.value,
529
+ column: V,
527
530
  i: d.i
528
- }) : i.value ? (u(), b(Ne, {
531
+ }) : u.value ? (i(), b(Ne, {
529
532
  key: 1,
530
- modelValue: i.value,
531
- "onUpdate:modelValue": M[1] || (M[1] = (ee) => i.value = ee),
532
- column: B,
533
+ modelValue: u.value,
534
+ "onUpdate:modelValue": M[1] || (M[1] = (ee) => u.value = ee),
535
+ column: V,
533
536
  columns: d.visibleColumns,
534
537
  "edit-mode-enabled": d.editModeEnabled,
535
538
  i: d.i
536
539
  }, null, 8, ["modelValue", "column", "columns", "edit-mode-enabled", "i"])) : y("", !0)
537
- ], 8, Ot)) : y("", !0)
540
+ ], 8, Nt)) : y("", !0)
538
541
  ], 64))), 256)),
539
- d.canDrop && d.editModeEnabled ? (u(), f("td", Nt, [
540
- _(It, {
542
+ d.canDrop && d.editModeEnabled ? (i(), f("td", Wt, [
543
+ _(Lt, {
541
544
  resource: d.dropResource,
542
- "resource-data": i.value,
545
+ "resource-data": u.value,
543
546
  confirm: d.dropConfirm,
544
547
  text: d.dropText,
545
548
  icon: d.dropIcon,
546
549
  onClick: U
547
550
  }, null, 8, ["resource", "resource-data", "confirm", "text", "icon"])
548
551
  ])) : y("", !0),
549
- d.canEdit && d.editModeEnabled ? (u(), f("td", Wt, [
550
- _(Lt, {
551
- "resource-data": i.value,
552
+ d.canEdit && d.editModeEnabled ? (i(), f("td", Ht, [
553
+ _(Mt, {
554
+ "resource-data": u.value,
552
555
  text: d.editText,
553
556
  icon: d.editIcon,
554
557
  link: o.value,
555
558
  onClick: Y
556
559
  }, null, 8, ["resource-data", "text", "icon", "link"])
557
560
  ])) : y("", !0)
558
- ], 8, Mt);
561
+ ], 8, $t);
559
562
  };
560
563
  }
561
- }), Kt = { "data-role": "hidden-row" }, Pt = ["colspan"], qt = ["data-column"], jt = ["data-i"], Gt = ["data-column", "title", "onClick"], zt = /* @__PURE__ */ J({
564
+ }), Kt = { "data-role": "hidden-row" }, qt = ["colspan"], jt = ["data-column"], Gt = ["data-i"], zt = ["data-column", "title", "onClick"], Jt = /* @__PURE__ */ J({
562
565
  __name: "LktHiddenRow",
563
566
  props: {
564
567
  modelValue: { default: () => ({}) },
@@ -573,43 +576,43 @@ const Ml = (l, t, r = !0) => A(new F(l, t).setIsSortable(r)), $l = (l, t, r, n =
573
576
  },
574
577
  emits: ["update:modelValue", "click"],
575
578
  setup(l, { emit: t }) {
576
- const r = t, n = l, i = C(n.modelValue), o = (h, k, v) => {
577
- r("click", h, he("", { item: k, column: v }));
579
+ const s = t, n = l, u = C(n.modelValue), o = (h, k, v) => {
580
+ s("click", h, he("", { item: k, column: v }));
578
581
  };
579
- return $(() => n.modelValue, (h) => i.value = h), $(i, () => r("update:modelValue", i.value)), (h, k) => le((u(), f("tr", Kt, [
582
+ return $(() => n.modelValue, (h) => u.value = h), $(u, () => s("update:modelValue", u.value)), (h, k) => le((i(), f("tr", Kt, [
580
583
  T("td", { colspan: h.hiddenColumnsColSpan }, [
581
584
  T("table", null, [
582
585
  T("tr", null, [
583
- (u(!0), f(R, null, q(h.hiddenColumns, (v) => (u(), f("th", {
586
+ (i(!0), f(R, null, q(h.hiddenColumns, (v) => (i(), f("th", {
584
587
  "data-column": v.key
585
588
  }, [
586
589
  T("div", null, G(v.label), 1)
587
- ], 8, qt))), 256))
590
+ ], 8, jt))), 256))
588
591
  ]),
589
592
  T("tr", { "data-i": h.i }, [
590
- (u(!0), f(R, null, q(h.hiddenColumns, (v, a) => (u(), f("td", {
593
+ (i(!0), f(R, null, q(h.hiddenColumns, (v, a) => (i(), f("td", {
591
594
  "data-column": v.key,
592
- title: E(x)(v, i.value, a, h.hiddenColumns),
593
- onClick: (s) => o(s, i.value, v)
595
+ title: D(x)(v, u.value, a, h.hiddenColumns),
596
+ onClick: (r) => o(r, u.value, v)
594
597
  }, [
595
598
  h.$slots[v.key] ? O(h.$slots, v.key, {
596
599
  key: 0,
597
- value: i.value[v.key],
598
- item: i.value,
600
+ value: u.value[v.key],
601
+ item: u.value,
599
602
  column: v,
600
603
  i: a
601
- }) : (u(), b(Ne, {
604
+ }) : (i(), b(Ne, {
602
605
  key: 1,
603
606
  column: v,
604
607
  columns: h.hiddenColumns,
605
- modelValue: i.value,
606
- "onUpdate:modelValue": k[0] || (k[0] = (s) => i.value = s),
608
+ modelValue: u.value,
609
+ "onUpdate:modelValue": k[0] || (k[0] = (r) => u.value = r),
607
610
  i: a
608
611
  }, null, 8, ["column", "columns", "modelValue", "i"]))
609
- ], 8, Gt))), 256))
610
- ], 8, jt)
612
+ ], 8, zt))), 256))
613
+ ], 8, Gt)
611
614
  ])
612
- ], 8, Pt)
615
+ ], 8, qt)
613
616
  ], 512)), [
614
617
  [oe, h.hiddenIsVisible]
615
618
  ]);
@@ -624,25 +627,25 @@ const Ml = (l, t, r = !0) => A(new F(l, t).setIsSortable(r)), $l = (l, t, r, n =
624
627
  },
625
628
  emits: ["click"],
626
629
  setup(l, { emit: t }) {
627
- const r = t, n = l, i = p(() => W.createButtonSlot !== ""), o = p(() => W.createButtonSlot), h = p(() => n.text.startsWith("__:") ? z(n.text.substring(3)) : n.text);
630
+ const s = t, n = l, u = p(() => W.createButtonSlot !== ""), o = p(() => W.createButtonSlot), h = p(() => n.text.startsWith("__:") ? z(n.text.substring(3)) : n.text);
628
631
  return (k, v) => {
629
632
  const a = L("lkt-button");
630
- return u(), b(a, {
633
+ return i(), b(a, {
631
634
  palette: "table-create",
632
635
  disabled: k.disabled,
633
- icon: i.value ? "" : k.icon,
634
- text: i.value ? "" : h.value,
636
+ icon: u.value ? "" : k.icon,
637
+ text: u.value ? "" : h.value,
635
638
  "on-click-to": k.to,
636
- onClick: v[0] || (v[0] = (s) => r("click"))
639
+ onClick: v[0] || (v[0] = (r) => s("click"))
637
640
  }, {
638
641
  default: N(() => [
639
- i.value ? (u(), b(X(o.value), { key: 0 })) : y("", !0)
642
+ u.value ? (i(), b(X(o.value), { key: 0 })) : y("", !0)
640
643
  ]),
641
644
  _: 1
642
645
  }, 8, ["disabled", "icon", "text", "on-click-to"]);
643
646
  };
644
647
  }
645
- }), Jt = ["data-column", "data-sortable", "data-sort", "colspan", "title"], Qt = /* @__PURE__ */ J({
648
+ }), Qt = ["data-column", "data-sortable", "data-sort", "colspan", "title"], Xt = /* @__PURE__ */ J({
646
649
  __name: "TableHeader",
647
650
  props: {
648
651
  column: { default: () => ({}) },
@@ -653,45 +656,45 @@ const Ml = (l, t, r = !0) => A(new F(l, t).setIsSortable(r)), $l = (l, t, r, n =
653
656
  },
654
657
  emits: ["click"],
655
658
  setup(l, { emit: t }) {
656
- const r = t, n = l, i = p(() => Dt(n.column, n.amountOfColumns, n.items)), o = p(() => n.column.sortable === !0), h = p(() => o.value && n.sortBy === n.column.key ? n.sortDirection : ""), k = p(() => n.column.label.startsWith("__:") ? z(n.column.label.substring(3)) : n.column.label), v = () => {
657
- r("click", n.column);
659
+ const s = t, n = l, u = p(() => Dt(n.column, n.amountOfColumns, n.items)), o = p(() => n.column.sortable === !0), h = p(() => o.value && n.sortBy === n.column.key ? n.sortDirection : ""), k = p(() => n.column.label.startsWith("__:") ? z(n.column.label.substring(3)) : n.column.label), v = () => {
660
+ s("click", n.column);
658
661
  };
659
- return (a, s) => (u(), f("th", {
662
+ return (a, r) => (i(), f("th", {
660
663
  "data-column": a.column.key,
661
664
  "data-sortable": o.value,
662
665
  "data-sort": h.value,
663
- colspan: i.value,
666
+ colspan: u.value,
664
667
  title: k.value,
665
668
  onClick: v
666
669
  }, [
667
670
  T("div", null, G(k.value), 1)
668
- ], 8, Jt));
671
+ ], 8, Qt));
669
672
  }
670
- }), Xt = ["id"], Yt = { key: 0 }, Zt = { class: "lkt-table-page-buttons" }, _t = { key: 1 }, xt = { class: "switch-edition-mode" }, el = {
673
+ }), Yt = ["id"], Zt = { key: 0 }, _t = { class: "lkt-table-page-buttons" }, xt = { key: 1 }, el = { class: "switch-edition-mode" }, tl = {
671
674
  key: 0,
672
675
  class: "lkt-table-page-buttons"
673
- }, tl = {
676
+ }, ll = {
674
677
  key: 1,
675
678
  class: "lkt-table-page-filters"
676
- }, ll = ["data-sortable"], ol = { key: 0 }, al = {
679
+ }, ol = ["data-sortable"], al = { key: 0 }, nl = {
677
680
  key: 0,
678
681
  "data-role": "drag-indicator"
679
- }, nl = { key: 1 }, ul = { key: 2 }, il = {
682
+ }, ul = { key: 1 }, il = { key: 2 }, rl = {
680
683
  key: 3,
681
684
  class: "lkt-table-col-drop"
682
685
  }, sl = {
683
686
  key: 4,
684
687
  class: "lkt-table-col-edit"
685
- }, rl = ["id"], dl = { class: "lkt-table-item" }, cl = {
688
+ }, dl = ["id"], cl = { class: "lkt-table-item" }, ml = {
686
689
  key: 3,
687
690
  class: "lkt-empty-table"
688
- }, ml = {
691
+ }, fl = {
689
692
  key: 4,
690
693
  class: "lkt-table-page-empty"
691
- }, fl = {
694
+ }, pl = {
692
695
  key: 5,
693
696
  class: "lkt-table-page-buttons lkt-table-page-buttons-bottom"
694
- }, pl = /* @__PURE__ */ J({
697
+ }, vl = /* @__PURE__ */ J({
695
698
  __name: "LktTable",
696
699
  props: {
697
700
  modelValue: { default: () => [] },
@@ -701,6 +704,7 @@ const Ml = (l, t, r = !0) => A(new F(l, t).setIsSortable(r)), $l = (l, t, r, n =
701
704
  checkValidDrag: { type: Function, default: void 0 },
702
705
  sortable: { type: Boolean, default: !1 },
703
706
  hideEmptyColumns: { type: Boolean, default: !1 },
707
+ initialSorting: { type: Boolean, default: !1 },
704
708
  draggableItemKey: { default: "name" },
705
709
  page: { default: 1 },
706
710
  perms: { default: [] },
@@ -748,36 +752,36 @@ const Ml = (l, t, r = !0) => A(new F(l, t).setIsSortable(r)), $l = (l, t, r, n =
748
752
  requiredItemsForBottomCreate: { default: 0 }
749
753
  },
750
754
  emits: ["update:modelValue", "update:perms", "sort", "click", "save", "error", "before-save", "read-response", "click-create"],
751
- setup(l, { expose: t, emit: r }) {
752
- const n = r, i = ct(), o = l, h = {}, k = C(typeof o.sorter == "function" ? o.sorter : Ae), v = C(Tt(o.columns)), a = C("asc"), s = C(o.modelValue), j = C(h), K = C(null), U = C(o.columns), Y = C(o.page), d = C(!1), M = C(!1), c = C(o.perms), B = C(null), ee = C({}), Z = C(new vt({ items: s.value }, o.dataStateConfig)), w = C(o.editMode), te = C(0), We = (e) => {
753
- Array.isArray(e) && (s.value = e), d.value = !1, M.value = !0, Z.value.store({ items: s.value }).turnStoredIntoOriginal();
755
+ setup(l, { expose: t, emit: s }) {
756
+ const n = s, u = ct(), o = l, h = {}, k = C(typeof o.sorter == "function" ? o.sorter : Ae), v = C(wt(o.columns)), a = C("asc"), r = C(o.modelValue), j = C(h), P = C(null), U = C(o.columns), Y = C(o.page), d = C(!1), M = C(!1), c = C(o.perms), V = C(null), ee = C({}), Z = C(new vt({ items: r.value }, o.dataStateConfig)), w = C(o.editMode), te = C(0), We = (e) => {
757
+ Array.isArray(e) && (r.value = e), d.value = !1, M.value = !0, Z.value.store({ items: r.value }).turnStoredIntoOriginal();
754
758
  }, He = (e) => {
755
759
  c.value = e;
756
- }, Ke = (e) => {
757
760
  }, Pe = (e) => {
761
+ }, Ke = (e) => {
758
762
  n("read-response", e);
759
763
  }, qe = () => ve(() => d.value = !0), je = () => {
760
- B.value.doRefresh();
764
+ V.value.doRefresh();
761
765
  }, ue = pt(12), de = p(() => {
762
766
  if (!o.hideEmptyColumns) return [];
763
767
  let e = [];
764
768
  return U.value.forEach((m) => {
765
- let g = m.key, D = !1;
766
- s.value.forEach((I) => {
769
+ let g = m.key, E = !1;
770
+ r.value.forEach((I) => {
767
771
  if (typeof I.checkEmpty == "function")
768
772
  return I.checkEmpty(I);
769
- I[g] && (D = !0);
770
- }), D || e.push(g);
773
+ I[g] && (E = !0);
774
+ }), E || e.push(g);
771
775
  }), e;
772
776
  }), ie = p(() => U.value.filter((e) => !e.hidden)), ce = p(() => U.value.filter((e) => e.hidden)), Ge = p(() => {
773
777
  let e = ie.value.length + 1;
774
778
  return o.sortable && ++e, e;
775
779
  }), ze = p(() => U.value.filter((e) => e.isForRowKey)), ye = p(() => ce.value.length > 0 && !o.sortable), Je = p(() => U.value.map((e) => e.key)), be = p(() => {
776
780
  let e = [];
777
- for (let m in i) Je.value.indexOf(m) !== -1 && e.push(m);
781
+ for (let m in u) Je.value.indexOf(m) !== -1 && e.push(m);
778
782
  return e;
779
- }), ge = p(() => o.hiddenSave || d.value || !o.saveResource ? !1 : w.value && Z.value.changed() ? !0 : w.value), Qe = p(() => se.value || o.switchEditionEnabled ? !0 : ge.value || w.value && o.canCreate), Xe = p(() => o.saveDisabled || typeof o.saveValidator == "function" && !o.saveValidator(s.value) ? !1 : Z.value.changed()), Ye = p(() => s.value.length), Ze = p(() => ({
780
- items: s.value,
783
+ }), ge = p(() => o.hiddenSave || d.value || !o.saveResource ? !1 : w.value && Z.value.changed() ? !0 : w.value), Qe = p(() => re.value || o.switchEditionEnabled ? !0 : ge.value || w.value && o.canCreate), Xe = p(() => o.saveDisabled || typeof o.saveValidator == "function" && !o.saveValidator(r.value) ? !1 : Z.value.changed()), Ye = p(() => r.value.length), Ze = p(() => ({
784
+ items: r.value,
781
785
  ...o.saveResourceData
782
786
  })), _e = p(() => o.titleTag === "" ? "h2" : o.titleTag), xe = p(() => o.wrapContentTag === "" ? "div" : o.wrapContentTag), me = p(() => o.title.startsWith("__:") ? z(o.title.substring(3)) : o.title), et = p(() => o.saveText.startsWith("__:") ? z(o.saveText.substring(3)) : o.saveText), tt = p(() => o.editModeText.startsWith("__:") ? z(o.editModeText.substring(3)) : o.editModeText), Ce = p(() => c.value.includes("create")), lt = p(() => c.value.includes("read")), fe = p(() => c.value.includes("update")), pe = p(() => c.value.includes("drop")), ot = (e) => {
783
787
  let m = e.target;
@@ -786,9 +790,9 @@ const Ml = (l, t, r = !0) => A(new F(l, t).setIsSortable(r)), $l = (l, t, r, n =
786
790
  m = m.parentNode;
787
791
  while (typeof m.dataset.column > "u" && m.tagName !== "TABLE" && m.tagName !== "body");
788
792
  if (m.tagName === "TD" && (m = m.parentNode, m = m.dataset.i, typeof m < "u"))
789
- return s.value[m];
793
+ return r.value[m];
790
794
  }, Se = (e) => j.value["tr_" + e] === !0, Ve = (e) => {
791
- e && e.sortable && (s.value = s.value.sort((m, g) => k.value(m, g, e, a.value)), a.value = a.value === "asc" ? "desc" : "asc", v.value = e.key, n("sort", [v.value, a.value]));
795
+ e && e.sortable && (r.value = r.value.sort((m, g) => k.value(m, g, e, a.value)), a.value = a.value === "asc" ? "desc" : "asc", v.value = e.key, n("sort", [v.value, a.value]));
792
796
  }, Be = (e, m) => {
793
797
  n("click", e, m);
794
798
  }, De = (e, m) => {
@@ -798,12 +802,12 @@ const Ml = (l, t, r = !0) => A(new F(l, t).setIsSortable(r)), $l = (l, t, r, n =
798
802
  U.value.forEach((e) => {
799
803
  if (e.type === "select" && e.autoLoadSelectOptions) {
800
804
  let m = e.autoLoadSelectOptionsKey !== "" ? e.autoLoadSelectOptionsKey : e.key, g = [];
801
- s.value.forEach((I) => {
805
+ r.value.forEach((I) => {
802
806
  Array.isArray(I[m]) && I[m].forEach((H) => g.push(H));
803
807
  });
804
- let D = {};
808
+ let E = {};
805
809
  g = g.filter(function(I) {
806
- return D[I.value] ? !1 : (D[I.value] = !0, !0);
810
+ return E[I.value] ? !1 : (E[I.value] = !0, !0);
807
811
  }), e.setOptions(g);
808
812
  }
809
813
  });
@@ -814,11 +818,11 @@ const Ml = (l, t, r = !0) => A(new F(l, t).setIsSortable(r)), $l = (l, t, r, n =
814
818
  if (typeof o.newValueGenerator == "function") {
815
819
  let e = o.newValueGenerator();
816
820
  if (typeof e == "object") {
817
- s.value.push(e);
821
+ r.value.push(e);
818
822
  return;
819
823
  }
820
824
  }
821
- s.value.push({});
825
+ r.value.push({});
822
826
  }
823
827
  }, nt = () => {
824
828
  d.value = !0;
@@ -832,16 +836,16 @@ const Ml = (l, t, r = !0) => A(new F(l, t).setIsSortable(r)), $l = (l, t, r, n =
832
836
  Z.value.turnStoredIntoOriginal(), n("save", m);
833
837
  }, Ie = (e, m, g) => {
834
838
  if (g >= e.length) {
835
- let D = g - e.length + 1;
836
- for (; D--; ) e.push(void 0);
839
+ let E = g - e.length + 1;
840
+ for (; E--; ) e.push(void 0);
837
841
  }
838
842
  return e.splice(g, 0, e.splice(m, 1)[0]), e;
839
- }, st = (e) => {
840
- Ie(s.value, e, e - 1), te.value = re();
841
843
  }, rt = (e) => {
842
- Ie(s.value, e, e + 1), te.value = re();
844
+ Ie(r.value, e, e - 1), te.value = se();
845
+ }, st = (e) => {
846
+ Ie(r.value, e, e + 1), te.value = se();
843
847
  }, Le = (e) => {
844
- s.value.splice(e, 1), te.value = re();
848
+ r.value.splice(e, 1), te.value = se();
845
849
  }, dt = () => {
846
850
  let e = document.getElementById("lkt-table-body-" + ue);
847
851
  ee.value = new ht(e, {
@@ -849,39 +853,39 @@ const Ml = (l, t, r = !0) => A(new F(l, t).setIsSortable(r)), $l = (l, t, r, n =
849
853
  handle: ".handle",
850
854
  animation: 150,
851
855
  onEnd: function(m) {
852
- let g = m.oldIndex, D = m.newIndex;
853
- s.value.splice(D, 0, s.value.splice(g, 1)[0]), te.value = re();
856
+ let g = m.oldIndex, E = m.newIndex;
857
+ r.value.splice(E, 0, r.value.splice(g, 1)[0]), te.value = se();
854
858
  },
855
859
  onMove: function(m, g) {
856
860
  return at(m);
857
861
  }
858
862
  });
859
863
  }, Me = (e, m, g = !1) => {
860
- let D = [te.value, ue, "row", m];
861
- return g && D.push("hidden"), ze.value.forEach((I) => {
864
+ let E = [te.value, ue, "row", m];
865
+ return g && E.push("hidden"), ze.value.forEach((I) => {
862
866
  let H = String(e[I.key]).toLowerCase();
863
- H.length > 50 && (H = H.substring(0, 50)), H = Oe(H, " ", "-"), D.push(H);
864
- }), D.join("-");
865
- }, $e = p(() => typeof o.createEnabledValidator == "function" ? o.createEnabledValidator({ items: s.value }) : !0), se = p(() => Ce.value ? o.canCreateWithoutEdition || o.canCreate && w.value : !1);
867
+ H.length > 50 && (H = H.substring(0, 50)), H = Oe(H, " ", "-"), E.push(H);
868
+ }), E.join("-");
869
+ }, $e = p(() => typeof o.createEnabledValidator == "function" ? o.createEnabledValidator({ items: r.value }) : !0), re = p(() => Ce.value ? o.canCreateWithoutEdition || o.canCreate && w.value : !1);
866
870
  return mt(() => {
867
- Ee(), Ve(wt(o.columns, v.value)), Z.value.store({ items: s.value }).turnStoredIntoOriginal(), o.sortable && ve(() => {
871
+ Ee(), o.initialSorting && Ve(It(o.columns, v.value)), Z.value.store({ items: r.value }).turnStoredIntoOriginal(), o.sortable && ve(() => {
868
872
  dt();
869
873
  });
870
- }), $(() => o.perms, (e) => c.value = e), $(c, (e) => n("update:perms", e)), $(() => o.editMode, (e) => w.value = e), $(() => o.columns, (e) => U.value = e), $(() => o.modelValue, (e) => s.value = e), $(s, (e) => {
874
+ }), $(() => o.perms, (e) => c.value = e), $(c, (e) => n("update:perms", e)), $(() => o.editMode, (e) => w.value = e), $(() => o.columns, (e) => U.value = e), $(() => o.modelValue, (e) => r.value = e), $(r, (e) => {
871
875
  Ee(), Z.value.increment({ items: e }), n("update:modelValue", e);
872
876
  }, { deep: !0 }), t({
873
877
  getItemByEvent: ot,
874
878
  doRefresh: je
875
879
  }), (e, m) => {
876
- const g = L("lkt-button"), D = L("lkt-field-switch"), I = L("lkt-loader"), H = L("lkt-paginator");
877
- return u(), f("section", {
880
+ const g = L("lkt-button"), E = L("lkt-field-switch"), I = L("lkt-loader"), H = L("lkt-paginator");
881
+ return i(), f("section", {
878
882
  class: "lkt-table-page",
879
- id: "lkt-table-page-" + E(ue)
883
+ id: "lkt-table-page-" + D(ue)
880
884
  }, [
881
- me.value || E(i).title ? (u(), f("header", Yt, [
882
- me.value ? (u(), b(X(_e.value), { key: 0 }, {
885
+ me.value || D(u).title ? (i(), f("header", Zt, [
886
+ me.value ? (i(), b(X(_e.value), { key: 0 }, {
883
887
  default: N(() => [
884
- e.titleIcon ? (u(), f("i", {
888
+ e.titleIcon ? (i(), f("i", {
885
889
  key: 0,
886
890
  class: ae(e.titleIcon)
887
891
  }, null, 2)) : y("", !0),
@@ -889,13 +893,13 @@ const Ml = (l, t, r = !0) => A(new F(l, t).setIsSortable(r)), $l = (l, t, r, n =
889
893
  ]),
890
894
  _: 1
891
895
  })) : y("", !0),
892
- E(i).title ? O(e.$slots, "title", { key: 1 }) : y("", !0)
896
+ D(u).title ? O(e.$slots, "title", { key: 1 }) : y("", !0)
893
897
  ])) : y("", !0),
894
- (u(), b(X(xe.value), {
898
+ (i(), b(X(xe.value), {
895
899
  class: ae(["lkt-table-page-content-wrapper", e.wrapContentClass])
896
900
  }, {
897
901
  default: N(() => [
898
- le(T("div", Zt, [
902
+ le(T("div", _t, [
899
903
  le(_(g, {
900
904
  ref: "saveButton",
901
905
  palette: "success",
@@ -909,18 +913,18 @@ const Ml = (l, t, r = !0) => A(new F(l, t).setIsSortable(r)), $l = (l, t, r, n =
909
913
  onClick: it
910
914
  }, {
911
915
  default: N(() => [
912
- E(i)["button-save"] ? O(e.$slots, "button-save", {
916
+ D(u)["button-save"] ? O(e.$slots, "button-save", {
913
917
  key: 0,
914
- items: s.value,
918
+ items: r.value,
915
919
  editMode: e.editMode,
916
920
  canUpdate: !e.saveDisabled
917
- }) : (u(), f("span", _t, G(et.value), 1))
921
+ }) : (i(), f("span", xt, G(et.value), 1))
918
922
  ]),
919
923
  _: 3
920
924
  }, 8, ["disabled", "confirm-modal", "confirm-data", "resource", "resource-data"]), [
921
925
  [oe, ge.value]
922
926
  ]),
923
- se.value && s.value.length >= e.requiredItemsForTopCreate ? (u(), b(Fe, {
927
+ re.value && r.value.length >= e.requiredItemsForTopCreate ? (i(), b(Fe, {
924
928
  key: 0,
925
929
  disabled: !$e.value || e.createDisabled,
926
930
  text: e.createText,
@@ -928,8 +932,8 @@ const Ml = (l, t, r = !0) => A(new F(l, t).setIsSortable(r)), $l = (l, t, r, n =
928
932
  to: e.createRoute,
929
933
  onClick: we
930
934
  }, null, 8, ["disabled", "text", "icon", "to"])) : y("", !0),
931
- T("div", xt, [
932
- le(_(D, {
935
+ T("div", el, [
936
+ le(_(E, {
933
937
  modelValue: w.value,
934
938
  "onUpdate:modelValue": m[0] || (m[0] = (S) => w.value = S),
935
939
  label: tt.value
@@ -940,74 +944,74 @@ const Ml = (l, t, r = !0) => A(new F(l, t).setIsSortable(r)), $l = (l, t, r, n =
940
944
  ], 512), [
941
945
  [oe, Qe.value]
942
946
  ]),
943
- E(i).buttons ? (u(), f("div", el, [
947
+ D(u).buttons ? (i(), f("div", tl, [
944
948
  O(e.$slots, "buttons")
945
949
  ])) : y("", !0),
946
- M.value && E(i).filters ? (u(), f("div", tl, [
950
+ M.value && D(u).filters ? (i(), f("div", ll, [
947
951
  O(e.$slots, "filters", {
948
- items: s.value,
952
+ items: r.value,
949
953
  isLoading: d.value
950
954
  })
951
955
  ])) : y("", !0),
952
- d.value ? (u(), b(I, { key: 2 })) : y("", !0),
956
+ d.value ? (i(), b(I, { key: 2 })) : y("", !0),
953
957
  le(T("div", {
954
958
  class: "lkt-table",
955
959
  "data-sortable": e.sortable
956
960
  }, [
957
- e.itemMode ? (u(), f("div", {
961
+ e.itemMode ? (i(), f("div", {
958
962
  key: 1,
959
963
  class: ae(["lkt-table-items-container", e.itemsContainerClass])
960
964
  }, [
961
- (u(!0), f(R, null, q(s.value, (S, V) => (u(), f("div", dl, [
965
+ (i(!0), f(R, null, q(r.value, (S, B) => (i(), f("div", cl, [
962
966
  O(e.$slots, "item", {
963
967
  item: S,
964
- index: V,
968
+ index: B,
965
969
  canCreate: Ce.value,
966
970
  canRead: lt.value,
967
971
  canUpdate: fe.value,
968
972
  canDrop: pe.value,
969
973
  isLoading: d.value,
970
- doDrop: () => Le(V)
974
+ doDrop: () => Le(B)
971
975
  })
972
976
  ]))), 256))
973
- ], 2)) : (u(), f("table", ol, [
977
+ ], 2)) : (i(), f("table", al, [
974
978
  T("thead", null, [
975
979
  T("tr", null, [
976
- e.sortable && w.value ? (u(), f("th", al)) : y("", !0),
977
- e.addNavigation && w.value ? (u(), f("th", nl)) : y("", !0),
978
- ye.value ? (u(), f("th", ul)) : y("", !0),
979
- (u(!0), f(R, null, q(ie.value, (S) => (u(), f(R, null, [
980
- de.value.indexOf(S.key) === -1 ? (u(), b(Qt, {
980
+ e.sortable && w.value ? (i(), f("th", nl)) : y("", !0),
981
+ e.addNavigation && w.value ? (i(), f("th", ul)) : y("", !0),
982
+ ye.value ? (i(), f("th", il)) : y("", !0),
983
+ (i(!0), f(R, null, q(ie.value, (S) => (i(), f(R, null, [
984
+ de.value.indexOf(S.key) === -1 ? (i(), b(Xt, {
981
985
  key: 0,
982
986
  column: S,
983
987
  "sort-by": v.value,
984
988
  "sort-direction": a.value,
985
989
  "amount-of-columns": e.columns.length,
986
- items: s.value,
987
- onClick: (V) => Ve(S)
990
+ items: r.value,
991
+ onClick: (B) => Ve(S)
988
992
  }, null, 8, ["column", "sort-by", "sort-direction", "amount-of-columns", "items", "onClick"])) : y("", !0)
989
993
  ], 64))), 256)),
990
- e.canDrop && pe.value && w.value ? (u(), f("th", il)) : y("", !0),
991
- e.canEditButton && fe.value && w.value ? (u(), f("th", sl)) : y("", !0)
994
+ e.canDrop && pe.value && w.value ? (i(), f("th", rl)) : y("", !0),
995
+ e.canEditButton && fe.value && w.value ? (i(), f("th", sl)) : y("", !0)
992
996
  ])
993
997
  ]),
994
998
  T("tbody", {
995
- ref: (S) => K.value = S,
996
- id: "lkt-table-body-" + E(ue)
999
+ ref: (S) => P.value = S,
1000
+ id: "lkt-table-body-" + D(ue)
997
1001
  }, [
998
- (u(!0), f(R, null, q(s.value, (S, V) => (u(), b(Ht, {
999
- modelValue: s.value[V],
1000
- "onUpdate:modelValue": (P) => s.value[V] = P,
1001
- key: Me(S, V),
1002
- i: V,
1002
+ (i(!0), f(R, null, q(r.value, (S, B) => (i(), b(Pt, {
1003
+ modelValue: r.value[B],
1004
+ "onUpdate:modelValue": (K) => r.value[B] = K,
1005
+ key: Me(S, B),
1006
+ i: B,
1003
1007
  "display-hidden-columns-indicator": ye.value,
1004
1008
  "is-draggable": Te(S),
1005
1009
  sortable: e.sortable,
1006
1010
  "visible-columns": ie.value,
1007
1011
  "empty-columns": de.value,
1008
1012
  "add-navigation": e.addNavigation,
1009
- "hidden-is-visible": Se(V),
1010
- "latest-row": V + 1 === Ye.value,
1013
+ "hidden-is-visible": Se(B),
1014
+ "latest-row": B + 1 === Ye.value,
1011
1015
  "can-drop": e.canDrop && pe.value && w.value,
1012
1016
  "drop-confirm": e.dropConfirm,
1013
1017
  "drop-resource": e.dropResource,
@@ -1020,14 +1024,14 @@ const Ml = (l, t, r = !0) => A(new F(l, t).setIsSortable(r)), $l = (l, t, r, n =
1020
1024
  "edit-mode-enabled": w.value,
1021
1025
  onClick: Be,
1022
1026
  onShow: De,
1023
- onItemUp: st,
1024
- onItemDown: rt,
1027
+ onItemUp: rt,
1028
+ onItemDown: st,
1025
1029
  onItemDrop: Le
1026
1030
  }, Re({ _: 2 }, [
1027
- q(be.value, (P) => ({
1028
- name: P,
1031
+ q(be.value, (K) => ({
1032
+ name: K,
1029
1033
  fn: N((Q) => [
1030
- O(e.$slots, P, {
1034
+ O(e.$slots, K, {
1031
1035
  item: Q.item,
1032
1036
  value: Q.value,
1033
1037
  column: Q.column
@@ -1035,25 +1039,25 @@ const Ml = (l, t, r = !0) => A(new F(l, t).setIsSortable(r)), $l = (l, t, r, n =
1035
1039
  ])
1036
1040
  }))
1037
1041
  ]), 1032, ["modelValue", "onUpdate:modelValue", "i", "display-hidden-columns-indicator", "is-draggable", "sortable", "visible-columns", "empty-columns", "add-navigation", "hidden-is-visible", "latest-row", "can-drop", "drop-confirm", "drop-resource", "drop-text", "drop-icon", "can-edit", "edit-text", "edit-icon", "edit-link", "edit-mode-enabled"]))), 128)),
1038
- ce.value.length > 0 ? (u(!0), f(R, { key: 0 }, q(s.value, (S, V) => (u(), b(zt, {
1039
- modelValue: s.value[V],
1040
- "onUpdate:modelValue": (P) => s.value[V] = P,
1041
- key: Me(S, V, !0),
1042
- i: V,
1042
+ ce.value.length > 0 ? (i(!0), f(R, { key: 0 }, q(r.value, (S, B) => (i(), b(Jt, {
1043
+ modelValue: r.value[B],
1044
+ "onUpdate:modelValue": (K) => r.value[B] = K,
1045
+ key: Me(S, B, !0),
1046
+ i: B,
1043
1047
  "hidden-columns": ce.value,
1044
1048
  "hidden-columns-col-span": Ge.value,
1045
1049
  "is-draggable": Te(S),
1046
1050
  sortable: e.sortable,
1047
1051
  "visible-columns": ie.value,
1048
1052
  "empty-columns": de.value,
1049
- "hidden-is-visible": Se(V),
1053
+ "hidden-is-visible": Se(B),
1050
1054
  onClick: Be,
1051
1055
  onShow: De
1052
1056
  }, Re({ _: 2 }, [
1053
- q(be.value, (P) => ({
1054
- name: P,
1057
+ q(be.value, (K) => ({
1058
+ name: K,
1055
1059
  fn: N((Q) => [
1056
- O(e.$slots, P, {
1060
+ O(e.$slots, K, {
1057
1061
  item: Q.item,
1058
1062
  value: Q.value,
1059
1063
  column: Q.column
@@ -1061,17 +1065,17 @@ const Ml = (l, t, r = !0) => A(new F(l, t).setIsSortable(r)), $l = (l, t, r, n =
1061
1065
  ])
1062
1066
  }))
1063
1067
  ]), 1032, ["modelValue", "onUpdate:modelValue", "i", "hidden-columns", "hidden-columns-col-span", "is-draggable", "sortable", "visible-columns", "empty-columns", "hidden-is-visible"]))), 128)) : y("", !0)
1064
- ], 8, rl)
1068
+ ], 8, dl)
1065
1069
  ]))
1066
- ], 8, ll), [
1067
- [oe, !d.value && s.value.length > 0]
1070
+ ], 8, ol), [
1071
+ [oe, !d.value && r.value.length > 0]
1068
1072
  ]),
1069
- e.$slots["no-items"] ? (u(), f("div", cl, [
1073
+ e.$slots["no-items"] ? (i(), f("div", ml, [
1070
1074
  O(e.$slots, "no-items")
1071
1075
  ])) : y("", !0),
1072
- !d.value && s.value.length === 0 ? (u(), f("div", ml, G(e.noResultsText), 1)) : y("", !0),
1073
- se.value || E(i).bottomButtons ? (u(), f("div", fl, [
1074
- se.value && s.value.length >= e.requiredItemsForBottomCreate ? (u(), b(Fe, {
1076
+ !d.value && r.value.length === 0 ? (i(), f("div", fl, G(e.noResultsText), 1)) : y("", !0),
1077
+ re.value || D(u).bottomButtons ? (i(), f("div", pl, [
1078
+ re.value && r.value.length >= e.requiredItemsForBottomCreate ? (i(), b(Fe, {
1075
1079
  key: 0,
1076
1080
  disabled: !$e.value || e.createDisabled,
1077
1081
  text: e.createText,
@@ -1081,10 +1085,10 @@ const Ml = (l, t, r = !0) => A(new F(l, t).setIsSortable(r)), $l = (l, t, r, n =
1081
1085
  }, null, 8, ["disabled", "text", "icon", "to"])) : y("", !0),
1082
1086
  O(e.$slots, "bottom-buttons")
1083
1087
  ])) : y("", !0),
1084
- e.resource.length > 0 ? (u(), b(H, {
1088
+ e.resource.length > 0 ? (i(), b(H, {
1085
1089
  key: 6,
1086
1090
  ref_key: "paginator",
1087
- ref: B,
1091
+ ref: V,
1088
1092
  modelValue: Y.value,
1089
1093
  "onUpdate:modelValue": m[1] || (m[1] = (S) => Y.value = S),
1090
1094
  resource: e.resource,
@@ -1092,37 +1096,37 @@ const Ml = (l, t, r = !0) => A(new F(l, t).setIsSortable(r)), $l = (l, t, r, n =
1092
1096
  onResults: We,
1093
1097
  onLoading: qe,
1094
1098
  onPerms: He,
1095
- onCustom: Ke,
1096
- onResponse: Pe
1099
+ onCustom: Pe,
1100
+ onResponse: Ke
1097
1101
  }, null, 8, ["modelValue", "resource", "filters"])) : y("", !0)
1098
1102
  ]),
1099
1103
  _: 3
1100
1104
  }, 8, ["class"]))
1101
- ], 8, Xt);
1105
+ ], 8, Yt);
1102
1106
  };
1103
1107
  }
1104
- }), jl = {
1108
+ }), Gl = {
1105
1109
  install: (l) => {
1106
- l.component("lkt-loader") === void 0 && l.use(kt), l.component("lkt-button") === void 0 && l.use(yt), l.component("lkt-paginator") === void 0 && l.use(bt), l.component("lkt-field-text") === void 0 && l.use(gt), l.component("lkt-field-textarea") === void 0 && l.use(Ct), l.component("lkt-field-select") === void 0 && l.use(St), l.component("lkt-field-switch") === void 0 && l.use(Vt), l.component("lkt-field-file") === void 0 && l.use(Bt), l.component("lkt-table") === void 0 && l.component("lkt-table", pl);
1110
+ l.component("lkt-loader") === void 0 && l.use(kt), l.component("lkt-button") === void 0 && l.use(yt), l.component("lkt-paginator") === void 0 && l.use(bt), l.component("lkt-field-text") === void 0 && l.use(gt), l.component("lkt-field-textarea") === void 0 && l.use(Ct), l.component("lkt-field-select") === void 0 && l.use(St), l.component("lkt-field-switch") === void 0 && l.use(Vt), l.component("lkt-field-file") === void 0 && l.use(Bt), l.component("lkt-table") === void 0 && l.component("lkt-table", vl);
1107
1111
  }
1108
- }, Gl = (l) => (W.navButtonSlot = l, !0), zl = (l) => (W.dropButtonSlot = l, !0), Jl = (l) => (W.createButtonSlot = l, !0);
1112
+ }, zl = (l) => (W.navButtonSlot = l, !0), Jl = (l) => (W.dropButtonSlot = l, !0), Ql = (l) => (W.createButtonSlot = l, !0);
1109
1113
  export {
1110
1114
  F as LktTableColumn,
1111
- Rl as createActionColumn,
1112
- Wl as createCheckColumn,
1113
- Ml as createColumn,
1114
- Ol as createEmailColumn,
1115
- Pl as createFileColumn,
1116
- Ul as createFloatColumn,
1117
- ql as createHiddenColumn,
1118
- Fl as createIntegerColumn,
1119
- $l as createLinkColumn,
1115
+ Al as createActionColumn,
1116
+ Hl as createCheckColumn,
1117
+ $l as createColumn,
1118
+ Nl as createEmailColumn,
1119
+ ql as createFileColumn,
1120
+ Ol as createFloatColumn,
1121
+ jl as createHiddenColumn,
1122
+ Ul as createIntegerColumn,
1123
+ Rl as createLinkColumn,
1120
1124
  Kl as createSelectColumn,
1121
- Hl as createSwitchColumn,
1122
- Nl as createTelColumn,
1123
- Al as createTextColumn,
1124
- jl as default,
1125
- Jl as setTableCreateButtonSlot,
1126
- zl as setTableDropButtonSlot,
1127
- Gl as setTableNavButtonSlot
1125
+ Pl as createSwitchColumn,
1126
+ Wl as createTelColumn,
1127
+ Fl as createTextColumn,
1128
+ Gl as default,
1129
+ Ql as setTableCreateButtonSlot,
1130
+ Jl as setTableDropButtonSlot,
1131
+ zl as setTableNavButtonSlot
1128
1132
  };