lkt-table 1.2.19 → 1.2.20

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.d.ts CHANGED
@@ -72,7 +72,7 @@ declare class A {
72
72
  setIsEquivalentToSelectValue(t?: boolean): this;
73
73
  equivalentToSelectValue: boolean | undefined;
74
74
  }
75
- declare function $l(l: any, t: any, r: any, n?: boolean): {
75
+ declare function Rl(l: any, t: any, r: any, n?: boolean): {
76
76
  key: string;
77
77
  label: string;
78
78
  sortable: boolean;
@@ -656,7 +656,7 @@ declare function Fl(l: any, t: any, r?: boolean): {
656
656
  setIsEquivalentToSelectValue: (t?: boolean) => A;
657
657
  equivalentToSelectValue: boolean | undefined;
658
658
  };
659
- declare function Rl(l: any, t: any, r: any, n?: boolean): {
659
+ declare function $l(l: any, t: any, r: any, n?: boolean): {
660
660
  key: string;
661
661
  label: string;
662
662
  sortable: boolean;
@@ -1027,4 +1027,4 @@ declare namespace jl {
1027
1027
  declare function Jl(l: any): boolean;
1028
1028
  declare function zl(l: any): boolean;
1029
1029
  declare function Gl(l: any): boolean;
1030
- export { A as LktTableColumn, $l as createActionColumn, Wl as createCheckColumn, Ml as createColumn, Ol as createEmailColumn, Pl as createFileColumn, Ul as createFloatColumn, ql as createHiddenColumn, Fl as createIntegerColumn, Rl as createLinkColumn, Kl as createSelectColumn, Hl as createSwitchColumn, Nl as createTelColumn, Al as createTextColumn, jl as default, Jl as setTableCreateButtonSlot, zl as setTableDropButtonSlot, Gl as setTableNavButtonSlot };
1030
+ export { A as LktTableColumn, Rl as createActionColumn, Wl as createCheckColumn, Ml as createColumn, Ol as createEmailColumn, Pl as createFileColumn, Ul as createFloatColumn, ql as createHiddenColumn, Fl as createIntegerColumn, $l as createLinkColumn, Kl as createSelectColumn, Hl as createSwitchColumn, Nl as createTelColumn, Al as createTextColumn, jl as default, Jl as setTableCreateButtonSlot, zl as setTableDropButtonSlot, Gl as setTableNavButtonSlot };
package/dist/build.js CHANGED
@@ -1,4 +1,4 @@
1
- import { reactive as $, defineComponent as J, ref as C, watch as O, nextTick as ve, computed as p, resolveComponent as L, openBlock as u, createBlock as b, withCtx as U, createTextVNode as ne, toDisplayString as G, unref as I, createElementBlock as f, Fragment as R, withModifiers as Ue, resolveDynamicComponent as X, createCommentVNode as y, normalizeClass as ae, createElementVNode as D, createVNode as _, renderList as q, renderSlot as H, withDirectives as le, vShow as oe, useSlots as ct, onMounted as mt, createSlots as $e } from "vue";
1
+ import { reactive as R, defineComponent as J, ref as C, watch as N, nextTick as ve, computed as p, resolveComponent as L, openBlock as u, createBlock as b, withCtx as O, createTextVNode as ne, toDisplayString as G, unref as D, createElementBlock as f, Fragment as $, withModifiers as Ue, resolveDynamicComponent as X, createCommentVNode as y, normalizeClass as ae, createElementVNode as T, createVNode as _, renderList as q, renderSlot as U, 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";
@@ -13,7 +13,7 @@ import gt from "lkt-field-text";
13
13
  import Ct from "lkt-field-textarea";
14
14
  import St from "lkt-field-select";
15
15
  import Vt from "lkt-field-switch";
16
- import Et from "lkt-field-file";
16
+ import Bt from "lkt-field-file";
17
17
  class A {
18
18
  constructor(t = "", r = "") {
19
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 = "";
@@ -159,7 +159,7 @@ class A {
159
159
  return this.equivalentToSelectValue = t, this;
160
160
  }
161
161
  }
162
- const Ml = (l, t, r = !0) => $(new A(l, t).setIsSortable(r)), Rl = (l, t, r, n = !0) => $(new A(l, t).setIsSortable(n).defineAsLink(r)), $l = (l, t, r, n = !0) => $(new A(l, t).setIsSortable(n).defineAsAction(r)), Al = (l, t, r = !0) => $(new A(l, t).setIsSortable(r).defineAsText()), Fl = (l, t, r = !0) => $(new A(l, t).setIsSortable(r).defineAsInteger()), Ul = (l, t, r = !0) => $(new A(l, t).setIsSortable(r).defineAsFloat()), Ol = (l, t, r = !0) => $(new A(l, t).setIsSortable(r).defineAsEmail()), Nl = (l, t, r = !0) => $(new A(l, t).setIsSortable(r).defineAsTel()), Wl = (l, t, r = !0) => $(new A(l, t).setIsSortable(r).defineAsCheck()), Hl = (l, t, r = !0) => $(new A(l, t).setIsSortable(r).defineAsSwitch()), Kl = (l, t, r, n = !0) => $(new A(l, t).setIsSortable(n).defineAsSelect(r)), Pl = (l, t, r = !0) => $(new A(l, t).setIsSortable(r).defineAsFile()), ql = (l, t, r = !0) => $(new A(l, t).setIsSortable(r).setIsHidden(!0)), Ae = (l, t, r, n) => {
162
+ const Ml = (l, t, r = !0) => R(new A(l, t).setIsSortable(r)), $l = (l, t, r, n = !0) => R(new A(l, t).setIsSortable(n).defineAsLink(r)), Rl = (l, t, r, n = !0) => R(new A(l, t).setIsSortable(n).defineAsAction(r)), Al = (l, t, r = !0) => R(new A(l, t).setIsSortable(r).defineAsText()), Fl = (l, t, r = !0) => R(new A(l, t).setIsSortable(r).defineAsInteger()), Ul = (l, t, r = !0) => R(new A(l, t).setIsSortable(r).defineAsFloat()), Ol = (l, t, r = !0) => R(new A(l, t).setIsSortable(r).defineAsEmail()), Nl = (l, t, r = !0) => R(new A(l, t).setIsSortable(r).defineAsTel()), Wl = (l, t, r = !0) => R(new A(l, t).setIsSortable(r).defineAsCheck()), Hl = (l, t, r = !0) => R(new A(l, t).setIsSortable(r).defineAsSwitch()), Kl = (l, t, r, n = !0) => R(new A(l, t).setIsSortable(n).defineAsSelect(r)), Pl = (l, t, r = !0) => R(new A(l, t).setIsSortable(r).defineAsFile()), ql = (l, t, r = !0) => R(new A(l, t).setIsSortable(r).setIsHidden(!0)), Ae = (l, t, r, n) => {
163
163
  if (!r) return 0;
164
164
  let i = l[r.key], o = t[r.key];
165
165
  if (n === "asc") {
@@ -181,7 +181,7 @@ const Ml = (l, t, r = !0) => $(new A(l, t).setIsSortable(r)), Rl = (l, t, r, n =
181
181
  return i.startsWith("__:") ? z(i.substring(3)) : i;
182
182
  }
183
183
  return t[l.key];
184
- }, Bt = (l, t, r) => {
184
+ }, Et = (l, t, r) => {
185
185
  if (!l.colspan) return -1;
186
186
  let n = t;
187
187
  return r.forEach((i) => {
@@ -216,12 +216,12 @@ const Ml = (l, t, r = !0) => $(new A(l, t).setIsSortable(r)), Rl = (l, t, r, n =
216
216
  emits: ["update:modelValue"],
217
217
  setup(l, { emit: t }) {
218
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());
219
- O(o, (a) => {
219
+ N(o, (a) => {
220
220
  const s = JSON.parse(JSON.stringify(i.value));
221
221
  s[n.column.key] = a, r("update:modelValue", s);
222
- }), O(() => n.modelValue, (a) => {
222
+ }), N(() => n.modelValue, (a) => {
223
223
  i.value = a, o.value = i.value[n.column.key];
224
- }), O(() => n.column, () => {
224
+ }), N(() => n.column, () => {
225
225
  n.column.resourceLoaded && ve(() => k.value = !1);
226
226
  }, { deep: !0 }), n.column.hasToLoadResource() && n.column.loadResource();
227
227
  const v = p(() => ({ ...n.column.slotData, item: i.value }));
@@ -231,15 +231,15 @@ const Ml = (l, t, r = !0) => $(new A(l, t).setIsSortable(r)), Rl = (l, t, r, n =
231
231
  key: 0,
232
232
  to: a.column.getHref(i.value)
233
233
  }, {
234
- default: U(() => [
235
- ne(G(I(x)(a.column, i.value, a.i)), 1)
234
+ default: O(() => [
235
+ ne(G(D(x)(a.column, i.value, a.i)), 1)
236
236
  ]),
237
237
  _: 1
238
238
  }, 8, ["to"])) : a.column.type === "action" ? (u(), f("a", {
239
239
  key: 1,
240
240
  href: "#",
241
241
  onClick: s[0] || (s[0] = (c) => a.column.doAction(i.value))
242
- }, G(I(x)(a.column, i.value, a.i)), 1)) : a.column.type === "text" ? (u(), b(K, {
242
+ }, G(D(x)(a.column, i.value, a.i)), 1)) : a.column.type === "text" ? (u(), b(K, {
243
243
  key: 2,
244
244
  "read-mode": !a.column.editable || !a.editModeEnabled,
245
245
  ref: (c) => h.value = c,
@@ -307,7 +307,7 @@ const Ml = (l, t, r = !0) => $(new A(l, t).setIsSortable(r)), Rl = (l, t, r, n =
307
307
  ref: (c) => h.value = c,
308
308
  modelValue: o.value,
309
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 }, [
310
+ }, null, 8, ["read-mode", "modelValue"])) : a.column.type === "select" ? (u(), f($, { key: 10 }, [
311
311
  k.value ? (u(), b(d, { key: 0 })) : (u(), b(M, {
312
312
  key: 1,
313
313
  "read-mode": !a.column.editable || !a.editModeEnabled,
@@ -324,12 +324,12 @@ const Ml = (l, t, r = !0) => $(new A(l, t).setIsSortable(r)), Rl = (l, t, r, n =
324
324
  "multiple-display": a.column.multipleDisplay,
325
325
  "multiple-display-edition": a.column.multipleDisplayEdition
326
326
  }, 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(I(x)(a.column, i.value, a.i, a.columns)), 1)
327
+ ], 64)) : (u(), f($, { key: 11 }, [
328
+ ne(G(D(x)(a.column, i.value, a.i, a.columns)), 1)
329
329
  ], 64));
330
330
  };
331
331
  }
332
- }), N = {
332
+ }), W = {
333
333
  navButtonSlot: "",
334
334
  dropButtonSlot: "",
335
335
  editButtonSlot: "",
@@ -346,7 +346,7 @@ const Ml = (l, t, r = !0) => $(new A(l, t).setIsSortable(r)), Rl = (l, t, r, n =
346
346
  },
347
347
  emits: ["click"],
348
348
  setup(l, { emit: t }) {
349
- const r = t, n = l, i = p(() => N.dropButtonSlot !== ""), o = p(() => N.dropButtonSlot), h = p(() => n.text.startsWith("__:") ? z(n.text.substring(3)) : n.text);
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);
350
350
  return (k, v) => {
351
351
  const a = L("lkt-button");
352
352
  return u(), b(a, {
@@ -359,7 +359,7 @@ const Ml = (l, t, r = !0) => $(new A(l, t).setIsSortable(r)), Rl = (l, t, r, n =
359
359
  disabled: k.disabled,
360
360
  onClick: v[0] || (v[0] = Ue((s) => r("click"), ["prevent", "stop"]))
361
361
  }, {
362
- default: U(() => [
362
+ default: O(() => [
363
363
  i.value ? (u(), b(X(o.value), { key: 0 })) : y("", !0)
364
364
  ]),
365
365
  _: 1
@@ -379,7 +379,7 @@ const Ml = (l, t, r = !0) => $(new A(l, t).setIsSortable(r)), Rl = (l, t, r, n =
379
379
  },
380
380
  emits: ["click"],
381
381
  setup(l, { emit: t }) {
382
- const r = t, n = l, i = p(() => N.editButtonSlot !== ""), o = p(() => N.editButtonSlot), h = p(() => n.text.startsWith("__:") ? z(n.text.substring(3)) : n.text);
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);
383
383
  return (k, v) => {
384
384
  const a = L("lkt-button");
385
385
  return u(), b(a, {
@@ -394,20 +394,20 @@ const Ml = (l, t, r = !0) => $(new A(l, t).setIsSortable(r)), Rl = (l, t, r, n =
394
394
  disabled: k.disabled,
395
395
  onClick: v[0] || (v[0] = Ue((s) => r("click"), ["prevent", "stop"]))
396
396
  }, {
397
- default: U(() => [
397
+ default: O(() => [
398
398
  i.value ? (u(), b(X(o.value), { key: 0 })) : y("", !0)
399
399
  ]),
400
400
  _: 1
401
401
  }, 8, ["icon", "text", "on-click-to", "is-anchor", "resource", "resource-data", "confirm-modal", "disabled"]);
402
402
  };
403
403
  }
404
- }), Mt = ["data-i", "data-draggable"], Rt = {
404
+ }), Mt = ["data-i", "data-draggable"], $t = {
405
405
  key: 1,
406
406
  "data-role": "invalid-drag-indicator"
407
- }, $t = {
407
+ }, Rt = {
408
408
  key: 2,
409
409
  class: "lkt-table-nav-cell"
410
- }, At = { class: "lkt-table-nav-container" }, Ft = /* @__PURE__ */ D("i", { class: "" }, null, -1), Ut = /* @__PURE__ */ D("i", { class: "" }, null, -1), Ot = ["data-column", "colspan", "title", "onClick"], Nt = {
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 = {
411
411
  key: 4,
412
412
  class: "lkt-table-col-drop"
413
413
  }, Wt = {
@@ -448,7 +448,7 @@ const Ml = (l, t, r = !0) => $(new A(l, t).setIsSortable(r)), Rl = (l, t, r, n =
448
448
  }, v = p(() => {
449
449
  let d = [];
450
450
  return n.sortable && n.isDraggable && d.push("handle"), d.join(" ");
451
- }), a = p(() => N.navButtonSlot !== ""), s = p(() => N.navButtonSlot), j = () => {
451
+ }), a = p(() => W.navButtonSlot !== ""), s = p(() => W.navButtonSlot), j = () => {
452
452
  r("item-up", n.i);
453
453
  }, K = () => {
454
454
  r("item-down", n.i);
@@ -456,7 +456,7 @@ const Ml = (l, t, r = !0) => $(new A(l, t).setIsSortable(r)), Rl = (l, t, r, n =
456
456
  r("item-drop", n.i);
457
457
  }, Y = () => {
458
458
  };
459
- return O(() => n.modelValue, (d) => i.value = d), O(i, (d) => {
459
+ return N(() => n.modelValue, (d) => i.value = d), N(i, (d) => {
460
460
  r("update:modelValue", d, n.i);
461
461
  }, { deep: !0 }), (d, M) => {
462
462
  const c = L("lkt-button");
@@ -468,19 +468,19 @@ const Ml = (l, t, r = !0) => $(new A(l, t).setIsSortable(r)), Rl = (l, t, r, n =
468
468
  key: 0,
469
469
  "data-role": "drag-indicator",
470
470
  class: ae(v.value)
471
- }, null, 2)) : d.sortable && d.editModeEnabled ? (u(), f("td", Rt)) : y("", !0),
472
- d.addNavigation && d.editModeEnabled ? (u(), f("td", $t, [
473
- D("div", At, [
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
474
  _(c, {
475
475
  palette: "table-nav",
476
476
  disabled: d.i === 0,
477
477
  onClick: j
478
478
  }, {
479
- default: U(() => [
479
+ default: O(() => [
480
480
  a.value ? (u(), b(X(s.value), {
481
481
  key: 0,
482
482
  direction: "up"
483
- })) : (u(), f(R, { key: 1 }, [
483
+ })) : (u(), f($, { key: 1 }, [
484
484
  Ft,
485
485
  ne(" UP ")
486
486
  ], 64))
@@ -492,11 +492,11 @@ const Ml = (l, t, r = !0) => $(new A(l, t).setIsSortable(r)), Rl = (l, t, r, n =
492
492
  disabled: d.latestRow,
493
493
  onClick: K
494
494
  }, {
495
- default: U(() => [
495
+ default: O(() => [
496
496
  a.value ? (u(), b(X(s.value), {
497
497
  key: 0,
498
498
  direction: "down"
499
- })) : (u(), f(R, { key: 1 }, [
499
+ })) : (u(), f($, { key: 1 }, [
500
500
  Ut,
501
501
  ne(" DOWN ")
502
502
  ], 64))
@@ -507,29 +507,29 @@ const Ml = (l, t, r = !0) => $(new A(l, t).setIsSortable(r)), Rl = (l, t, r, n =
507
507
  ])) : y("", !0),
508
508
  d.displayHiddenColumnsIndicator ? (u(), f("td", {
509
509
  key: 3,
510
- onClick: M[0] || (M[0] = (E) => k(E, d.i)),
510
+ onClick: M[0] || (M[0] = (B) => k(B, d.i)),
511
511
  "data-role": "show-more",
512
512
  class: ae(d.hiddenIsVisible ? "state-open" : "")
513
513
  }, null, 2)) : y("", !0),
514
- (u(!0), f(R, null, q(d.visibleColumns, (E) => (u(), f(R, null, [
515
- I(Dt)(E, d.emptyColumns, i.value) ? (u(), f("td", {
514
+ (u(!0), f($, null, q(d.visibleColumns, (B) => (u(), f($, null, [
515
+ D(Dt)(B, d.emptyColumns, i.value) ? (u(), f("td", {
516
516
  key: "td" + d.i,
517
- "data-column": E.key,
518
- colspan: I(ke)(E, i.value),
519
- title: I(x)(E, i.value, d.i, d.visibleColumns),
520
- onClick: (ee) => h(ee, i.value, E)
517
+ "data-column": B.key,
518
+ colspan: D(ke)(B, i.value),
519
+ title: D(x)(B, i.value, d.i, d.visibleColumns),
520
+ onClick: (ee) => h(ee, i.value, B)
521
521
  }, [
522
- d.$slots[E.key] ? H(d.$slots, E.key, {
522
+ d.$slots[B.key] ? U(d.$slots, B.key, {
523
523
  key: 0,
524
- value: i.value[E.key],
524
+ value: i.value[B.key],
525
525
  item: i.value,
526
- column: E,
526
+ column: B,
527
527
  i: d.i
528
528
  }) : i.value ? (u(), b(Ne, {
529
529
  key: 1,
530
530
  modelValue: i.value,
531
531
  "onUpdate:modelValue": M[1] || (M[1] = (ee) => i.value = ee),
532
- column: E,
532
+ column: B,
533
533
  columns: d.visibleColumns,
534
534
  "edit-mode-enabled": d.editModeEnabled,
535
535
  i: d.i
@@ -576,23 +576,23 @@ const Ml = (l, t, r = !0) => $(new A(l, t).setIsSortable(r)), Rl = (l, t, r, n =
576
576
  const r = t, n = l, i = C(n.modelValue), o = (h, k, v) => {
577
577
  r("click", h, he("", { item: k, column: v }));
578
578
  };
579
- return O(() => n.modelValue, (h) => i.value = h), O(i, () => r("update:modelValue", i.value)), (h, k) => le((u(), f("tr", Kt, [
580
- D("td", { colspan: h.hiddenColumnsColSpan }, [
581
- D("table", null, [
582
- D("tr", null, [
583
- (u(!0), f(R, null, q(h.hiddenColumns, (v) => (u(), f("th", {
579
+ return N(() => n.modelValue, (h) => i.value = h), N(i, () => r("update:modelValue", i.value)), (h, k) => le((u(), f("tr", Kt, [
580
+ T("td", { colspan: h.hiddenColumnsColSpan }, [
581
+ T("table", null, [
582
+ T("tr", null, [
583
+ (u(!0), f($, null, q(h.hiddenColumns, (v) => (u(), f("th", {
584
584
  "data-column": v.key
585
585
  }, [
586
- D("div", null, G(v.label), 1)
586
+ T("div", null, G(v.label), 1)
587
587
  ], 8, qt))), 256))
588
588
  ]),
589
- D("tr", { "data-i": h.i }, [
590
- (u(!0), f(R, null, q(h.hiddenColumns, (v, a) => (u(), f("td", {
589
+ T("tr", { "data-i": h.i }, [
590
+ (u(!0), f($, null, q(h.hiddenColumns, (v, a) => (u(), f("td", {
591
591
  "data-column": v.key,
592
- title: I(x)(v, i.value, a, h.hiddenColumns),
592
+ title: D(x)(v, i.value, a, h.hiddenColumns),
593
593
  onClick: (s) => o(s, i.value, v)
594
594
  }, [
595
- h.$slots[v.key] ? H(h.$slots, v.key, {
595
+ h.$slots[v.key] ? U(h.$slots, v.key, {
596
596
  key: 0,
597
597
  value: i.value[v.key],
598
598
  item: i.value,
@@ -624,7 +624,7 @@ const Ml = (l, t, r = !0) => $(new A(l, t).setIsSortable(r)), Rl = (l, t, r, n =
624
624
  },
625
625
  emits: ["click"],
626
626
  setup(l, { emit: t }) {
627
- const r = t, n = l, i = p(() => N.createButtonSlot !== ""), o = p(() => N.createButtonSlot), h = p(() => n.text.startsWith("__:") ? z(n.text.substring(3)) : n.text);
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);
628
628
  return (k, v) => {
629
629
  const a = L("lkt-button");
630
630
  return u(), b(a, {
@@ -635,7 +635,7 @@ const Ml = (l, t, r = !0) => $(new A(l, t).setIsSortable(r)), Rl = (l, t, r, n =
635
635
  "on-click-to": k.to,
636
636
  onClick: v[0] || (v[0] = (s) => r("click"))
637
637
  }, {
638
- default: U(() => [
638
+ default: O(() => [
639
639
  i.value ? (u(), b(X(o.value), { key: 0 })) : y("", !0)
640
640
  ]),
641
641
  _: 1
@@ -653,7 +653,7 @@ const Ml = (l, t, r = !0) => $(new A(l, t).setIsSortable(r)), Rl = (l, t, r, n =
653
653
  },
654
654
  emits: ["click"],
655
655
  setup(l, { emit: t }) {
656
- const r = t, n = l, i = p(() => Bt(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 = () => {
656
+ const r = t, n = l, i = p(() => Et(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
657
  r("click", n.column);
658
658
  };
659
659
  return (a, s) => (u(), f("th", {
@@ -664,7 +664,7 @@ const Ml = (l, t, r = !0) => $(new A(l, t).setIsSortable(r)), Rl = (l, t, r, n =
664
664
  title: k.value,
665
665
  onClick: v
666
666
  }, [
667
- D("div", null, G(k.value), 1)
667
+ T("div", null, G(k.value), 1)
668
668
  ], 8, Jt));
669
669
  }
670
670
  }), Xt = ["id"], Yt = { key: 0 }, Zt = { class: "lkt-table-page-buttons" }, _t = { key: 1 }, xt = { class: "switch-edition-mode" }, el = {
@@ -748,7 +748,7 @@ const Ml = (l, t, r = !0) => $(new A(l, t).setIsSortable(r)), Rl = (l, t, r, n =
748
748
  },
749
749
  emits: ["update:modelValue", "sort", "click", "save", "error", "before-save", "read-response", "click-create"],
750
750
  setup(l, { expose: t, emit: r }) {
751
- 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), F = C(o.columns), Y = C(o.page), d = C(!1), M = C(!1), c = C(o.perms), E = C(null), ee = C({}), Z = C(new vt({ items: s.value }, o.dataStateConfig)), T = C(o.editMode), te = C(0), We = (e) => {
751
+ 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), F = 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) => {
752
752
  Array.isArray(e) && (s.value = e), d.value = !1, M.value = !0, Z.value.store({ items: s.value }).turnStoredIntoOriginal();
753
753
  }, He = (e) => {
754
754
  c.value = e;
@@ -756,17 +756,17 @@ const Ml = (l, t, r = !0) => $(new A(l, t).setIsSortable(r)), Rl = (l, t, r, n =
756
756
  }, Pe = (e) => {
757
757
  n("read-response", e);
758
758
  }, qe = () => ve(() => d.value = !0), je = () => {
759
- E.value.doRefresh();
759
+ B.value.doRefresh();
760
760
  }, ue = pt(12), de = p(() => {
761
761
  if (!o.hideEmptyColumns) return [];
762
762
  let e = [];
763
763
  return F.value.forEach((m) => {
764
- let g = m.key, B = !1;
765
- s.value.forEach((w) => {
766
- if (typeof w.checkEmpty == "function")
767
- return w.checkEmpty(w);
768
- w[g] && (B = !0);
769
- }), B || e.push(g);
764
+ let g = m.key, E = !1;
765
+ s.value.forEach((I) => {
766
+ if (typeof I.checkEmpty == "function")
767
+ return I.checkEmpty(I);
768
+ I[g] && (E = !0);
769
+ }), E || e.push(g);
770
770
  }), e;
771
771
  }), ie = p(() => F.value.filter((e) => !e.hidden)), ce = p(() => F.value.filter((e) => e.hidden)), Ge = p(() => {
772
772
  let e = ie.value.length + 1;
@@ -775,7 +775,7 @@ const Ml = (l, t, r = !0) => $(new A(l, t).setIsSortable(r)), Rl = (l, t, r, n =
775
775
  let e = [];
776
776
  for (let m in i) Je.value.indexOf(m) !== -1 && e.push(m);
777
777
  return e;
778
- }), ge = p(() => o.hiddenSave || d.value || !o.saveResource ? !1 : T.value && Z.value.changed() ? !0 : T.value), Qe = p(() => se.value || o.switchEditionEnabled ? !0 : ge.value || T.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(() => ({
778
+ }), 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(() => ({
779
779
  items: s.value,
780
780
  ...o.saveResourceData
781
781
  })), _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) => {
@@ -788,21 +788,21 @@ const Ml = (l, t, r = !0) => $(new A(l, t).setIsSortable(r)), Rl = (l, t, r, n =
788
788
  return s.value[m];
789
789
  }, Se = (e) => j.value["tr_" + e] === !0, Ve = (e) => {
790
790
  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]));
791
- }, Ee = (e, m) => {
792
- n("click", e, m);
793
791
  }, Be = (e, m) => {
792
+ n("click", e, m);
793
+ }, Ee = (e, m) => {
794
794
  let g = "tr_" + m.value.i;
795
795
  j.value[g] = typeof j.value[g] > "u" ? !0 : !j.value[g];
796
796
  }, De = () => {
797
797
  F.value.forEach((e) => {
798
798
  if (e.type === "select" && e.autoLoadSelectOptions) {
799
799
  let m = e.autoLoadSelectOptionsKey !== "" ? e.autoLoadSelectOptionsKey : e.key, g = [];
800
- s.value.forEach((w) => {
801
- Array.isArray(w[m]) && w[m].forEach((W) => g.push(W));
800
+ s.value.forEach((I) => {
801
+ Array.isArray(I[m]) && I[m].forEach((H) => g.push(H));
802
802
  });
803
- let B = {};
804
- g = g.filter(function(w) {
805
- return B[w.value] ? !1 : (B[w.value] = !0, !0);
803
+ let E = {};
804
+ g = g.filter(function(I) {
805
+ return E[I.value] ? !1 : (E[I.value] = !0, !0);
806
806
  }), e.setOptions(g);
807
807
  }
808
808
  });
@@ -831,8 +831,8 @@ const Ml = (l, t, r = !0) => $(new A(l, t).setIsSortable(r)), Rl = (l, t, r, n =
831
831
  Z.value.turnStoredIntoOriginal(), n("save", m);
832
832
  }, Ie = (e, m, g) => {
833
833
  if (g >= e.length) {
834
- let B = g - e.length + 1;
835
- for (; B--; ) e.push(void 0);
834
+ let E = g - e.length + 1;
835
+ for (; E--; ) e.push(void 0);
836
836
  }
837
837
  return e.splice(g, 0, e.splice(m, 1)[0]), e;
838
838
  }, st = (e) => {
@@ -848,38 +848,38 @@ const Ml = (l, t, r = !0) => $(new A(l, t).setIsSortable(r)), Rl = (l, t, r, n =
848
848
  handle: ".handle",
849
849
  animation: 150,
850
850
  onEnd: function(m) {
851
- let g = m.oldIndex, B = m.newIndex;
852
- s.value.splice(B, 0, s.value.splice(g, 1)[0]), te.value = re();
851
+ let g = m.oldIndex, E = m.newIndex;
852
+ s.value.splice(E, 0, s.value.splice(g, 1)[0]), te.value = re();
853
853
  },
854
854
  onMove: function(m, g) {
855
855
  return at(m);
856
856
  }
857
857
  });
858
858
  }, Me = (e, m, g = !1) => {
859
- let B = [te.value, ue, "row", m];
860
- return g && B.push("hidden"), ze.value.forEach((w) => {
861
- let W = String(e[w.key]).toLowerCase();
862
- W.length > 50 && (W = W.substring(0, 50)), W = Oe(W, " ", "-"), B.push(W);
863
- }), B.join("-");
864
- }, Re = p(() => typeof o.createEnabledValidator == "function" ? o.createEnabledValidator({ items: s.value }) : !0), se = p(() => Ce.value ? o.canCreateWithoutEdition || o.canCreate && T.value : !1);
859
+ let E = [te.value, ue, "row", m];
860
+ return g && E.push("hidden"), ze.value.forEach((I) => {
861
+ let H = String(e[I.key]).toLowerCase();
862
+ H.length > 50 && (H = H.substring(0, 50)), H = Oe(H, " ", "-"), E.push(H);
863
+ }), E.join("-");
864
+ }, $e = p(() => typeof o.createEnabledValidator == "function" ? o.createEnabledValidator({ items: s.value }) : !0), se = p(() => Ce.value ? o.canCreateWithoutEdition || o.canCreate && w.value : !1);
865
865
  return mt(() => {
866
866
  De(), Ve(wt(o.columns, v.value)), Z.value.store({ items: s.value }).turnStoredIntoOriginal(), o.sortable && ve(() => {
867
867
  dt();
868
868
  });
869
- }), O(() => o.editMode, (e) => T.value = e), O(() => o.columns, (e) => F.value = e), O(() => o.modelValue, (e) => s.value = e), O(s, (e) => {
869
+ }), N(() => o.editMode, (e) => w.value = e), N(() => o.columns, (e) => F.value = e), N(() => o.modelValue, (e) => s.value = e), N(s, (e) => {
870
870
  De(), Z.value.increment({ items: e }), n("update:modelValue", e);
871
871
  }, { deep: !0 }), t({
872
872
  getItemByEvent: ot,
873
873
  doRefresh: je
874
874
  }), (e, m) => {
875
- const g = L("lkt-button"), B = L("lkt-field-switch"), w = L("lkt-loader"), W = L("lkt-paginator");
875
+ const g = L("lkt-button"), E = L("lkt-field-switch"), I = L("lkt-loader"), H = L("lkt-paginator");
876
876
  return u(), f("section", {
877
877
  class: "lkt-table-page",
878
- id: "lkt-table-page-" + I(ue)
878
+ id: "lkt-table-page-" + D(ue)
879
879
  }, [
880
- me.value || I(i).title ? (u(), f("header", Yt, [
880
+ me.value || D(i).title ? (u(), f("header", Yt, [
881
881
  me.value ? (u(), b(X(_e.value), { key: 0 }, {
882
- default: U(() => [
882
+ default: O(() => [
883
883
  e.titleIcon ? (u(), f("i", {
884
884
  key: 0,
885
885
  class: ae(e.titleIcon)
@@ -888,13 +888,13 @@ const Ml = (l, t, r = !0) => $(new A(l, t).setIsSortable(r)), Rl = (l, t, r, n =
888
888
  ]),
889
889
  _: 1
890
890
  })) : y("", !0),
891
- I(i).title ? H(e.$slots, "title", { key: 1 }) : y("", !0)
891
+ D(i).title ? U(e.$slots, "title", { key: 1 }) : y("", !0)
892
892
  ])) : y("", !0),
893
893
  (u(), b(X(xe.value), {
894
894
  class: ae(["lkt-table-page-content-wrapper", e.wrapContentClass])
895
895
  }, {
896
- default: U(() => [
897
- le(D("div", Zt, [
896
+ default: O(() => [
897
+ le(T("div", Zt, [
898
898
  le(_(g, {
899
899
  ref: "saveButton",
900
900
  palette: "success",
@@ -907,8 +907,8 @@ const Ml = (l, t, r = !0) => $(new A(l, t).setIsSortable(r)), Rl = (l, t, r, n =
907
907
  onLoaded: ut,
908
908
  onClick: it
909
909
  }, {
910
- default: U(() => [
911
- I(i)["button-save"] ? H(e.$slots, "button-save", {
910
+ default: O(() => [
911
+ D(i)["button-save"] ? U(e.$slots, "button-save", {
912
912
  key: 0,
913
913
  items: s.value,
914
914
  editMode: e.editMode,
@@ -921,16 +921,16 @@ const Ml = (l, t, r = !0) => $(new A(l, t).setIsSortable(r)), Rl = (l, t, r, n =
921
921
  ]),
922
922
  se.value && s.value.length >= e.requiredItemsForTopCreate ? (u(), b(Fe, {
923
923
  key: 0,
924
- disabled: !Re.value,
924
+ disabled: !$e.value,
925
925
  text: e.createText,
926
926
  icon: e.createIcon,
927
927
  to: e.createRoute,
928
928
  onClick: we
929
929
  }, null, 8, ["disabled", "text", "icon", "to"])) : y("", !0),
930
- D("div", xt, [
931
- le(_(B, {
932
- modelValue: T.value,
933
- "onUpdate:modelValue": m[0] || (m[0] = (S) => T.value = S),
930
+ T("div", xt, [
931
+ le(_(E, {
932
+ modelValue: w.value,
933
+ "onUpdate:modelValue": m[0] || (m[0] = (S) => w.value = S),
934
934
  label: tt.value
935
935
  }, null, 8, ["modelValue", "label"]), [
936
936
  [oe, e.switchEditionEnabled]
@@ -939,17 +939,17 @@ const Ml = (l, t, r = !0) => $(new A(l, t).setIsSortable(r)), Rl = (l, t, r, n =
939
939
  ], 512), [
940
940
  [oe, Qe.value]
941
941
  ]),
942
- I(i).buttons ? (u(), f("div", el, [
943
- H(e.$slots, "buttons")
942
+ D(i).buttons ? (u(), f("div", el, [
943
+ U(e.$slots, "buttons")
944
944
  ])) : y("", !0),
945
- M.value && I(i).filters ? (u(), f("div", tl, [
946
- H(e.$slots, "filters", {
945
+ M.value && D(i).filters ? (u(), f("div", tl, [
946
+ U(e.$slots, "filters", {
947
947
  items: s.value,
948
948
  isLoading: d.value
949
949
  })
950
950
  ])) : y("", !0),
951
- d.value ? (u(), b(w, { key: 2 })) : y("", !0),
952
- le(D("div", {
951
+ d.value ? (u(), b(I, { key: 2 })) : y("", !0),
952
+ le(T("div", {
953
953
  class: "lkt-table",
954
954
  "data-sortable": e.sortable
955
955
  }, [
@@ -957,8 +957,8 @@ const Ml = (l, t, r = !0) => $(new A(l, t).setIsSortable(r)), Rl = (l, t, r, n =
957
957
  key: 1,
958
958
  class: ae(["lkt-table-items-container", e.itemsContainerClass])
959
959
  }, [
960
- (u(!0), f(R, null, q(s.value, (S, V) => (u(), f("div", dl, [
961
- H(e.$slots, "item", {
960
+ (u(!0), f($, null, q(s.value, (S, V) => (u(), f("div", dl, [
961
+ U(e.$slots, "item", {
962
962
  item: S,
963
963
  index: V,
964
964
  canCreate: Ce.value,
@@ -970,12 +970,12 @@ const Ml = (l, t, r = !0) => $(new A(l, t).setIsSortable(r)), Rl = (l, t, r, n =
970
970
  })
971
971
  ]))), 256))
972
972
  ], 2)) : (u(), f("table", ol, [
973
- D("thead", null, [
974
- D("tr", null, [
975
- e.sortable && T.value ? (u(), f("th", al)) : y("", !0),
976
- e.addNavigation && T.value ? (u(), f("th", nl)) : y("", !0),
973
+ T("thead", null, [
974
+ T("tr", null, [
975
+ e.sortable && w.value ? (u(), f("th", al)) : y("", !0),
976
+ e.addNavigation && w.value ? (u(), f("th", nl)) : y("", !0),
977
977
  ye.value ? (u(), f("th", ul)) : y("", !0),
978
- (u(!0), f(R, null, q(ie.value, (S) => (u(), f(R, null, [
978
+ (u(!0), f($, null, q(ie.value, (S) => (u(), f($, null, [
979
979
  de.value.indexOf(S.key) === -1 ? (u(), b(Qt, {
980
980
  key: 0,
981
981
  column: S,
@@ -986,15 +986,15 @@ const Ml = (l, t, r = !0) => $(new A(l, t).setIsSortable(r)), Rl = (l, t, r, n =
986
986
  onClick: (V) => Ve(S)
987
987
  }, null, 8, ["column", "sort-by", "sort-direction", "amount-of-columns", "items", "onClick"])) : y("", !0)
988
988
  ], 64))), 256)),
989
- e.canDrop && pe.value && T.value ? (u(), f("th", il)) : y("", !0),
990
- e.canEditButton && fe.value && T.value ? (u(), f("th", sl)) : y("", !0)
989
+ e.canDrop && pe.value && w.value ? (u(), f("th", il)) : y("", !0),
990
+ e.canEditButton && fe.value && w.value ? (u(), f("th", sl)) : y("", !0)
991
991
  ])
992
992
  ]),
993
- D("tbody", {
993
+ T("tbody", {
994
994
  ref: (S) => K.value = S,
995
- id: "lkt-table-body-" + I(ue)
995
+ id: "lkt-table-body-" + D(ue)
996
996
  }, [
997
- (u(!0), f(R, null, q(s.value, (S, V) => (u(), b(Ht, {
997
+ (u(!0), f($, null, q(s.value, (S, V) => (u(), b(Ht, {
998
998
  modelValue: s.value[V],
999
999
  "onUpdate:modelValue": (P) => s.value[V] = P,
1000
1000
  key: Me(S, V),
@@ -1007,26 +1007,26 @@ const Ml = (l, t, r = !0) => $(new A(l, t).setIsSortable(r)), Rl = (l, t, r, n =
1007
1007
  "add-navigation": e.addNavigation,
1008
1008
  "hidden-is-visible": Se(V),
1009
1009
  "latest-row": V + 1 === Ye.value,
1010
- "can-drop": e.canDrop && pe.value && T.value,
1010
+ "can-drop": e.canDrop && pe.value && w.value,
1011
1011
  "drop-confirm": e.dropConfirm,
1012
1012
  "drop-resource": e.dropResource,
1013
1013
  "drop-text": e.dropText,
1014
1014
  "drop-icon": e.dropIcon,
1015
- "can-edit": e.canEditButton && fe.value && T.value,
1015
+ "can-edit": e.canEditButton && fe.value && w.value,
1016
1016
  "edit-text": e.editText,
1017
1017
  "edit-icon": e.editIcon,
1018
1018
  "edit-link": e.editLink,
1019
- "edit-mode-enabled": T.value,
1020
- onClick: Ee,
1021
- onShow: Be,
1019
+ "edit-mode-enabled": w.value,
1020
+ onClick: Be,
1021
+ onShow: Ee,
1022
1022
  onItemUp: st,
1023
1023
  onItemDown: rt,
1024
1024
  onItemDrop: Le
1025
- }, $e({ _: 2 }, [
1025
+ }, Re({ _: 2 }, [
1026
1026
  q(be.value, (P) => ({
1027
1027
  name: P,
1028
- fn: U((Q) => [
1029
- H(e.$slots, P, {
1028
+ fn: O((Q) => [
1029
+ U(e.$slots, P, {
1030
1030
  item: Q.item,
1031
1031
  value: Q.value,
1032
1032
  column: Q.column
@@ -1034,7 +1034,7 @@ const Ml = (l, t, r = !0) => $(new A(l, t).setIsSortable(r)), Rl = (l, t, r, n =
1034
1034
  ])
1035
1035
  }))
1036
1036
  ]), 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)),
1037
- ce.value.length > 0 ? (u(!0), f(R, { key: 0 }, q(s.value, (S, V) => (u(), b(zt, {
1037
+ ce.value.length > 0 ? (u(!0), f($, { key: 0 }, q(s.value, (S, V) => (u(), b(zt, {
1038
1038
  modelValue: s.value[V],
1039
1039
  "onUpdate:modelValue": (P) => s.value[V] = P,
1040
1040
  key: Me(S, V, !0),
@@ -1046,13 +1046,13 @@ const Ml = (l, t, r = !0) => $(new A(l, t).setIsSortable(r)), Rl = (l, t, r, n =
1046
1046
  "visible-columns": ie.value,
1047
1047
  "empty-columns": de.value,
1048
1048
  "hidden-is-visible": Se(V),
1049
- onClick: Ee,
1050
- onShow: Be
1051
- }, $e({ _: 2 }, [
1049
+ onClick: Be,
1050
+ onShow: Ee
1051
+ }, Re({ _: 2 }, [
1052
1052
  q(be.value, (P) => ({
1053
1053
  name: P,
1054
- fn: U((Q) => [
1055
- H(e.$slots, P, {
1054
+ fn: O((Q) => [
1055
+ U(e.$slots, P, {
1056
1056
  item: Q.item,
1057
1057
  value: Q.value,
1058
1058
  column: Q.column
@@ -1066,23 +1066,24 @@ const Ml = (l, t, r = !0) => $(new A(l, t).setIsSortable(r)), Rl = (l, t, r, n =
1066
1066
  [oe, !d.value && s.value.length > 0]
1067
1067
  ]),
1068
1068
  e.$slots["no-items"] ? (u(), f("div", cl, [
1069
- H(e.$slots, "no-items")
1069
+ U(e.$slots, "no-items")
1070
1070
  ])) : y("", !0),
1071
1071
  !d.value && s.value.length === 0 ? (u(), f("div", ml, G(e.noResultsText), 1)) : y("", !0),
1072
- se.value ? (u(), f("div", fl, [
1072
+ se.value || D(i).bottomButtons.length > 0 ? (u(), f("div", fl, [
1073
1073
  se.value && s.value.length >= e.requiredItemsForBottomCreate ? (u(), b(Fe, {
1074
1074
  key: 0,
1075
- disabled: !Re.value,
1075
+ disabled: !$e.value,
1076
1076
  text: e.createText,
1077
1077
  icon: e.createIcon,
1078
1078
  to: e.createRoute,
1079
1079
  onClick: we
1080
- }, null, 8, ["disabled", "text", "icon", "to"])) : y("", !0)
1080
+ }, null, 8, ["disabled", "text", "icon", "to"])) : y("", !0),
1081
+ U(e.$slots, "bottom-buttons")
1081
1082
  ])) : y("", !0),
1082
- e.resource.length > 0 ? (u(), b(W, {
1083
+ e.resource.length > 0 ? (u(), b(H, {
1083
1084
  key: 6,
1084
1085
  ref_key: "paginator",
1085
- ref: E,
1086
+ ref: B,
1086
1087
  modelValue: Y.value,
1087
1088
  "onUpdate:modelValue": m[1] || (m[1] = (S) => Y.value = S),
1088
1089
  resource: e.resource,
@@ -1101,12 +1102,12 @@ const Ml = (l, t, r = !0) => $(new A(l, t).setIsSortable(r)), Rl = (l, t, r, n =
1101
1102
  }
1102
1103
  }), jl = {
1103
1104
  install: (l) => {
1104
- 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(Et), l.component("lkt-table") === void 0 && l.component("lkt-table", pl);
1105
+ 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);
1105
1106
  }
1106
- }, Gl = (l) => (N.navButtonSlot = l, !0), zl = (l) => (N.dropButtonSlot = l, !0), Jl = (l) => (N.createButtonSlot = l, !0);
1107
+ }, Gl = (l) => (W.navButtonSlot = l, !0), zl = (l) => (W.dropButtonSlot = l, !0), Jl = (l) => (W.createButtonSlot = l, !0);
1107
1108
  export {
1108
1109
  A as LktTableColumn,
1109
- $l as createActionColumn,
1110
+ Rl as createActionColumn,
1110
1111
  Wl as createCheckColumn,
1111
1112
  Ml as createColumn,
1112
1113
  Ol as createEmailColumn,
@@ -1114,7 +1115,7 @@ export {
1114
1115
  Ul as createFloatColumn,
1115
1116
  ql as createHiddenColumn,
1116
1117
  Fl as createIntegerColumn,
1117
- Rl as createLinkColumn,
1118
+ $l as createLinkColumn,
1118
1119
  Kl as createSelectColumn,
1119
1120
  Hl as createSwitchColumn,
1120
1121
  Nl as createTelColumn,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lkt-table",
3
- "version": "1.2.19",
3
+ "version": "1.2.20",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "lkt",
@@ -678,7 +678,7 @@ defineExpose({
678
678
  {{ noResultsText }}
679
679
  </div>
680
680
 
681
- <div v-if="computedDisplayCreateButton" class="lkt-table-page-buttons lkt-table-page-buttons-bottom">
681
+ <div v-if="computedDisplayCreateButton || slots.bottomButtons.length > 0" class="lkt-table-page-buttons lkt-table-page-buttons-bottom">
682
682
  <create-button
683
683
  v-if="computedDisplayCreateButton && Items.length >= requiredItemsForBottomCreate"
684
684
  :disabled="!createEnabled"
@@ -687,6 +687,7 @@ defineExpose({
687
687
  :to="createRoute"
688
688
  @click="onClickAddItem"
689
689
  />
690
+ <slot name="bottom-buttons"/>
690
691
  </div>
691
692
 
692
693
  <lkt-paginator