lkt-table 2.0.8 → 2.0.9
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 +7 -7
- package/dist/build.js +220 -199
- package/package.json +1 -1
- package/src/lib-components/LktTable.vue +1 -1
package/dist/build.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Column as
|
|
2
|
-
import { createColumn as
|
|
3
|
-
declare namespace
|
|
1
|
+
import { Column as sn } from "lkt-vue-kernel";
|
|
2
|
+
import { createColumn as dn } from "lkt-vue-kernel";
|
|
3
|
+
declare namespace en {
|
|
4
4
|
function install(e: any): void;
|
|
5
5
|
}
|
|
6
|
+
declare function ln(e: any): boolean;
|
|
6
7
|
declare function an(e: any): boolean;
|
|
7
|
-
declare function tn(e: any): boolean;
|
|
8
|
-
declare function ln(e: any): void;
|
|
9
|
-
declare function en(e: any): boolean;
|
|
10
8
|
declare function nn(e: any): void;
|
|
11
|
-
|
|
9
|
+
declare function tn(e: any): boolean;
|
|
10
|
+
declare function on(e: any): void;
|
|
11
|
+
export { sn as Column, dn as createColumn, en as default, ln as setTableCreateButtonSlot, an as setTableDropButtonSlot, nn as setTableEmptySlot, tn as setTableNavButtonSlot, on as setTableSaveIcon };
|
package/dist/build.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { defineComponent as ae, computed as u, ref as C, shallowReactive as Pt, watch as H, watchEffect as Rt, onMounted as jt, onBeforeUnmount as
|
|
2
|
-
import { __ as
|
|
3
|
-
import { SortDirection as Oe, Column as
|
|
4
|
-
import { Column as
|
|
5
|
-
import { replaceAll as
|
|
6
|
-
import { DataState as
|
|
7
|
-
import
|
|
1
|
+
import { defineComponent as ae, computed as u, ref as C, shallowReactive as Pt, watch as H, watchEffect as Rt, onMounted as jt, onBeforeUnmount as wa, reactive as $t, provide as ta, h as X, useId as Ca, inject as ut, getCurrentInstance as Da, onUnmounted as Ba, onUpdated as Ia, cloneVNode as Ta, resolveComponent as ve, createBlock as $, createElementBlock as h, unref as B, openBlock as d, normalizeProps as Ee, mergeProps as fe, withCtx as F, createTextVNode as Ae, toDisplayString as Pe, Fragment as x, withModifiers as aa, createCommentVNode as A, resolveDynamicComponent as Ie, useSlots as la, normalizeClass as re, createElementVNode as J, createVNode as Be, renderSlot as z, renderList as ie, withDirectives as it, vShow as rt, mergeDefaults as Ea, nextTick as bt, createSlots as Xt } from "vue";
|
|
2
|
+
import { __ as Aa } from "lkt-i18n";
|
|
3
|
+
import { SortDirection as Oe, Column as na, ColumnType as yt, prepareResourceData as oa, TableRowType as Ze, extractI18nValue as ia, LktSettings as tt, ensureButtonConfig as ht, TablePermission as we, PaginatorType as kt, TableType as et, getDefaultValues as Va, Table as Na, ButtonType as Lt } from "lkt-vue-kernel";
|
|
4
|
+
import { Column as sn, createColumn as dn } from "lkt-vue-kernel";
|
|
5
|
+
import { replaceAll as ra, generateRandomString as _a } from "lkt-string-tools";
|
|
6
|
+
import { DataState as Ma } from "lkt-data-state";
|
|
7
|
+
import Ra from "sortablejs";
|
|
8
8
|
import { time as Le } from "lkt-date-tools";
|
|
9
9
|
/**
|
|
10
10
|
* Vue 3 Carousel 0.14.0
|
|
11
11
|
* (c) 2025
|
|
12
12
|
* @license MIT
|
|
13
13
|
*/
|
|
14
|
-
const
|
|
14
|
+
const ua = ["viewport", "carousel"], wt = {
|
|
15
15
|
"bottom-to-top": "btt",
|
|
16
16
|
"left-to-right": "ltr",
|
|
17
17
|
"right-to-left": "rtl",
|
|
18
18
|
"top-to-bottom": "ttb"
|
|
19
|
-
},
|
|
19
|
+
}, sa = [
|
|
20
20
|
"ltr",
|
|
21
21
|
"left-to-right",
|
|
22
22
|
"rtl",
|
|
@@ -25,7 +25,7 @@ const ra = ["viewport", "carousel"], wt = {
|
|
|
25
25
|
"top-to-bottom",
|
|
26
26
|
"btt",
|
|
27
27
|
"bottom-to-top"
|
|
28
|
-
],
|
|
28
|
+
], $a = {
|
|
29
29
|
ariaGallery: "Gallery",
|
|
30
30
|
ariaNavigateToPage: "Navigate to page {slideNumber}",
|
|
31
31
|
ariaNavigateToSlide: "Navigate to slide {slideNumber}",
|
|
@@ -36,7 +36,7 @@ const ra = ["viewport", "carousel"], wt = {
|
|
|
36
36
|
iconArrowRight: "Arrow pointing to the right",
|
|
37
37
|
iconArrowUp: "Arrow pointing upwards",
|
|
38
38
|
itemXofY: "Item {currentSlide} of {slidesCount}"
|
|
39
|
-
},
|
|
39
|
+
}, da = ["slide", "fade"], ca = [
|
|
40
40
|
"center",
|
|
41
41
|
"start",
|
|
42
42
|
"end",
|
|
@@ -44,13 +44,13 @@ const ra = ["viewport", "carousel"], wt = {
|
|
|
44
44
|
"center-odd"
|
|
45
45
|
], P = {
|
|
46
46
|
autoplay: 0,
|
|
47
|
-
breakpointMode:
|
|
47
|
+
breakpointMode: ua[0],
|
|
48
48
|
breakpoints: void 0,
|
|
49
|
-
dir:
|
|
49
|
+
dir: sa[0],
|
|
50
50
|
enabled: !0,
|
|
51
51
|
gap: 0,
|
|
52
52
|
height: "auto",
|
|
53
|
-
i18n:
|
|
53
|
+
i18n: $a,
|
|
54
54
|
ignoreAnimations: !1,
|
|
55
55
|
itemsToScroll: 1,
|
|
56
56
|
itemsToShow: 1,
|
|
@@ -58,12 +58,12 @@ const ra = ["viewport", "carousel"], wt = {
|
|
|
58
58
|
mouseDrag: !0,
|
|
59
59
|
pauseAutoplayOnHover: !1,
|
|
60
60
|
preventExcessiveDragging: !1,
|
|
61
|
-
slideEffect:
|
|
62
|
-
snapAlign:
|
|
61
|
+
slideEffect: da[0],
|
|
62
|
+
snapAlign: ca[0],
|
|
63
63
|
touchDrag: !0,
|
|
64
64
|
transition: 300,
|
|
65
65
|
wrapAround: !1
|
|
66
|
-
}, Fe = Symbol("carousel"),
|
|
66
|
+
}, Fe = Symbol("carousel"), La = (e) => {
|
|
67
67
|
const o = Pt([]), i = (n) => {
|
|
68
68
|
n !== void 0 ? o.slice(n).forEach((l, a) => {
|
|
69
69
|
var v;
|
|
@@ -90,10 +90,10 @@ const ra = ["viewport", "carousel"], wt = {
|
|
|
90
90
|
}
|
|
91
91
|
};
|
|
92
92
|
};
|
|
93
|
-
function
|
|
93
|
+
function Oa(e) {
|
|
94
94
|
return e.length === 0 ? 0 : e.reduce((i, n) => i + n, 0) / e.length;
|
|
95
95
|
}
|
|
96
|
-
function
|
|
96
|
+
function Yt({ slides: e, position: o, toShow: i }) {
|
|
97
97
|
const n = [], l = o === "before", a = l ? -i : 0, v = l ? 0 : i;
|
|
98
98
|
if (e.length <= 0)
|
|
99
99
|
return n;
|
|
@@ -105,23 +105,23 @@ function Xt({ slides: e, position: o, toShow: i }) {
|
|
|
105
105
|
id: void 0,
|
|
106
106
|
// Make sure we don't duplicate the id which would be invalid html
|
|
107
107
|
key: `clone-${o}-${b}`
|
|
108
|
-
}, r = e[(b % e.length + e.length) % e.length].vnode, T =
|
|
108
|
+
}, r = e[(b % e.length + e.length) % e.length].vnode, T = Ta(r, m);
|
|
109
109
|
T.el = null, n.push(T);
|
|
110
110
|
}
|
|
111
111
|
return n;
|
|
112
112
|
}
|
|
113
|
-
const
|
|
114
|
-
function
|
|
113
|
+
const Pa = 'a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"])';
|
|
114
|
+
function Kt(e) {
|
|
115
115
|
if (!e.el || !(e.el instanceof Element))
|
|
116
116
|
return;
|
|
117
|
-
const o = e.el.querySelectorAll(
|
|
117
|
+
const o = e.el.querySelectorAll(Pa);
|
|
118
118
|
for (const i of o)
|
|
119
119
|
i instanceof HTMLElement && !i.hasAttribute("disabled") && i.getAttribute("aria-hidden") !== "true" && i.setAttribute("tabindex", "-1");
|
|
120
120
|
}
|
|
121
|
-
function
|
|
121
|
+
function Fa(e, o) {
|
|
122
122
|
return Object.keys(e).filter((i) => !o.includes(i)).reduce((i, n) => (i[n] = e[n], i), {});
|
|
123
123
|
}
|
|
124
|
-
function
|
|
124
|
+
function Ua(e) {
|
|
125
125
|
const { isVertical: o, isReversed: i, dragged: n, effectiveSlideSize: l } = e, a = o ? n.y : n.x;
|
|
126
126
|
if (a === 0)
|
|
127
127
|
return 0;
|
|
@@ -131,18 +131,18 @@ function Fa(e) {
|
|
|
131
131
|
function Ce({ val: e, max: o, min: i }) {
|
|
132
132
|
return o < i ? e : Math.min(Math.max(e, isNaN(i) ? e : i), isNaN(o) ? e : o);
|
|
133
133
|
}
|
|
134
|
-
function
|
|
134
|
+
function ja(e) {
|
|
135
135
|
const { transform: o } = window.getComputedStyle(e);
|
|
136
136
|
return o.split(/[(,)]/).slice(1, -1).map((i) => parseFloat(i));
|
|
137
137
|
}
|
|
138
|
-
function
|
|
138
|
+
function za(e) {
|
|
139
139
|
let o = 1, i = 1;
|
|
140
140
|
return e.forEach((n) => {
|
|
141
|
-
const l =
|
|
141
|
+
const l = ja(n);
|
|
142
142
|
l.length === 6 && (o /= l[0], i /= l[3]);
|
|
143
143
|
}), { widthMultiplier: o, heightMultiplier: i };
|
|
144
144
|
}
|
|
145
|
-
function
|
|
145
|
+
function Ha(e, o) {
|
|
146
146
|
switch (e) {
|
|
147
147
|
case "start":
|
|
148
148
|
return 0;
|
|
@@ -157,7 +157,7 @@ function za(e, o) {
|
|
|
157
157
|
return 0;
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
|
-
function
|
|
160
|
+
function xa(e, o, i) {
|
|
161
161
|
switch (e) {
|
|
162
162
|
case "start":
|
|
163
163
|
return 0;
|
|
@@ -173,12 +173,12 @@ function Ha(e, o, i) {
|
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
175
|
function Ft({ slideSize: e, viewportSize: o, align: i, itemsToShow: n }) {
|
|
176
|
-
return n !== void 0 ?
|
|
176
|
+
return n !== void 0 ? Ha(i, n) : e !== void 0 && o !== void 0 ? xa(i, e, o) : 0;
|
|
177
177
|
}
|
|
178
|
-
function
|
|
178
|
+
function va(e = "", o = {}) {
|
|
179
179
|
return Object.entries(o).reduce((i, [n, l]) => i.replace(`{${n}}`, String(l)), e);
|
|
180
180
|
}
|
|
181
|
-
function
|
|
181
|
+
function fa({ val: e, max: o, min: i = 0 }) {
|
|
182
182
|
const n = o - i + 1;
|
|
183
183
|
return ((e - i) % n + n) % n + i;
|
|
184
184
|
}
|
|
@@ -203,7 +203,7 @@ function St(e, o = "px") {
|
|
|
203
203
|
if (!(e == null || e === ""))
|
|
204
204
|
return typeof e == "number" || parseFloat(e).toString() === e ? `${e}${o}` : e;
|
|
205
205
|
}
|
|
206
|
-
const
|
|
206
|
+
const qa = ae({
|
|
207
207
|
name: "CarouselAria",
|
|
208
208
|
setup() {
|
|
209
209
|
const e = ut(Fe);
|
|
@@ -211,12 +211,12 @@ const xa = ae({
|
|
|
211
211
|
class: ["carousel__liveregion", "carousel__sr-only"],
|
|
212
212
|
"aria-live": "polite",
|
|
213
213
|
"aria-atomic": "true"
|
|
214
|
-
},
|
|
214
|
+
}, va(e.config.i18n.itemXofY, {
|
|
215
215
|
currentSlide: e.currentSlide + 1,
|
|
216
216
|
slidesCount: e.slidesCount
|
|
217
217
|
})) : () => "";
|
|
218
218
|
}
|
|
219
|
-
}),
|
|
219
|
+
}), Ga = {
|
|
220
220
|
// time to auto advance slides in ms
|
|
221
221
|
autoplay: {
|
|
222
222
|
default: P.autoplay,
|
|
@@ -231,7 +231,7 @@ const xa = ae({
|
|
|
231
231
|
breakpointMode: {
|
|
232
232
|
default: P.breakpointMode,
|
|
233
233
|
validator(e) {
|
|
234
|
-
return
|
|
234
|
+
return ua.includes(e);
|
|
235
235
|
}
|
|
236
236
|
},
|
|
237
237
|
// enable/disable the carousel component
|
|
@@ -298,14 +298,14 @@ const xa = ae({
|
|
|
298
298
|
snapAlign: {
|
|
299
299
|
default: P.snapAlign,
|
|
300
300
|
validator(e) {
|
|
301
|
-
return
|
|
301
|
+
return ca.includes(e);
|
|
302
302
|
}
|
|
303
303
|
},
|
|
304
304
|
slideEffect: {
|
|
305
305
|
type: String,
|
|
306
306
|
default: P.slideEffect,
|
|
307
307
|
validator(e) {
|
|
308
|
-
return
|
|
308
|
+
return da.includes(e);
|
|
309
309
|
}
|
|
310
310
|
},
|
|
311
311
|
// sliding transition time in ms
|
|
@@ -318,7 +318,7 @@ const xa = ae({
|
|
|
318
318
|
type: String,
|
|
319
319
|
default: P.dir,
|
|
320
320
|
validator(e, o) {
|
|
321
|
-
if (!
|
|
321
|
+
if (!sa.includes(e))
|
|
322
322
|
return !1;
|
|
323
323
|
const i = e in wt ? wt[e] : e;
|
|
324
324
|
return ["ttb", "btt"].includes(i) && (!o.height || o.height === "auto") && console.warn(`[vue3-carousel warn]: The dir "${e}" is not supported with height "auto".`), !0;
|
|
@@ -329,9 +329,9 @@ const xa = ae({
|
|
|
329
329
|
default: P.wrapAround,
|
|
330
330
|
type: Boolean
|
|
331
331
|
}
|
|
332
|
-
},
|
|
332
|
+
}, Xa = ae({
|
|
333
333
|
name: "VueCarousel",
|
|
334
|
-
props:
|
|
334
|
+
props: Ga,
|
|
335
335
|
emits: [
|
|
336
336
|
"before-init",
|
|
337
337
|
"drag",
|
|
@@ -345,7 +345,7 @@ const xa = ae({
|
|
|
345
345
|
],
|
|
346
346
|
setup(e, { slots: o, emit: i, expose: n }) {
|
|
347
347
|
var l;
|
|
348
|
-
const a =
|
|
348
|
+
const a = La(i), v = a.getSlides(), b = u(() => v.length), g = C(null), m = C(null), r = C(0), T = u(() => Object.assign(Object.assign(Object.assign({}, P), Fa(e, ["breakpoints", "modelValue"])), { i18n: Object.assign(Object.assign({}, P.i18n), e.i18n) })), c = Pt(Object.assign({}, T.value)), S = C((l = e.modelValue) !== null && l !== void 0 ? l : 0), E = C(S.value);
|
|
349
349
|
H(S, (s) => E.value = s);
|
|
350
350
|
const V = C(0), he = u(() => Math.ceil((b.value - 1) / 2)), O = u(() => b.value - 1), q = u(() => 0);
|
|
351
351
|
let ne = null, Ve = null, Z = null;
|
|
@@ -388,9 +388,9 @@ const xa = ae({
|
|
|
388
388
|
function me() {
|
|
389
389
|
if (!m.value)
|
|
390
390
|
return;
|
|
391
|
-
const s =
|
|
391
|
+
const s = za(Ue);
|
|
392
392
|
if (Bt(s), Dt(s), Q.value)
|
|
393
|
-
r.value =
|
|
393
|
+
r.value = Oa(j.value.map((y) => y[R.value]));
|
|
394
394
|
else {
|
|
395
395
|
const y = Number(c.itemsToShow), w = (y - 1) * c.gap;
|
|
396
396
|
r.value = (Ne.value[R.value] - w) / y;
|
|
@@ -430,7 +430,7 @@ const xa = ae({
|
|
|
430
430
|
ze.value && _e.value !== !1 ? (document.addEventListener("animationstart", je), document.addEventListener("animationend", st)) : (document.removeEventListener("animationstart", je), document.removeEventListener("animationend", st));
|
|
431
431
|
}), jt(() => {
|
|
432
432
|
ze.value = !0, Te(), ke(), g.value && (Z = new ResizeObserver(Ct), Z.observe(g.value)), i("init");
|
|
433
|
-
}),
|
|
433
|
+
}), wa(() => {
|
|
434
434
|
ze.value = !1, a.cleanup(), Ve && clearTimeout(Ve), se && cancelAnimationFrame(se), ne && clearInterval(ne), Z && (Z.disconnect(), Z = null), typeof document < "u" && ct(), g.value && (g.value.removeEventListener("transitionend", me), g.value.removeEventListener("animationiteration", me));
|
|
435
435
|
});
|
|
436
436
|
let pe = !1;
|
|
@@ -467,7 +467,7 @@ const xa = ae({
|
|
|
467
467
|
qe.value = !0;
|
|
468
468
|
const y = "touches" in s ? s.touches[0].clientX : s.clientX, w = "touches" in s ? s.touches[0].clientY : s.clientY;
|
|
469
469
|
oe.x = y - He.x, oe.y = w - He.y;
|
|
470
|
-
const D =
|
|
470
|
+
const D = Ua({
|
|
471
471
|
isVertical: L.value,
|
|
472
472
|
isReversed: U.value,
|
|
473
473
|
dragged: oe,
|
|
@@ -506,7 +506,7 @@ const xa = ae({
|
|
|
506
506
|
if (!y && ge.value)
|
|
507
507
|
return;
|
|
508
508
|
let w = s, D = s;
|
|
509
|
-
V.value = S.value, c.wrapAround ? D =
|
|
509
|
+
V.value = S.value, c.wrapAround ? D = fa({
|
|
510
510
|
val: w,
|
|
511
511
|
max: O.value,
|
|
512
512
|
min: q.value
|
|
@@ -669,7 +669,7 @@ const xa = ae({
|
|
|
669
669
|
viewport: m,
|
|
670
670
|
visibleRange: Et
|
|
671
671
|
});
|
|
672
|
-
|
|
672
|
+
ta(Fe, pt);
|
|
673
673
|
const Je = $t({
|
|
674
674
|
config: c,
|
|
675
675
|
currentSlide: S,
|
|
@@ -691,11 +691,11 @@ const xa = ae({
|
|
|
691
691
|
updateSlidesData: ue
|
|
692
692
|
}), () => {
|
|
693
693
|
var s;
|
|
694
|
-
const y = o.default || o.slides, w = (y == null ? void 0 : y(Je)) || [], { before: D, after: N } = $e.value, G =
|
|
694
|
+
const y = o.default || o.slides, w = (y == null ? void 0 : y(Je)) || [], { before: D, after: N } = $e.value, G = Yt({
|
|
695
695
|
slides: v,
|
|
696
696
|
position: "before",
|
|
697
697
|
toShow: D
|
|
698
|
-
}), le =
|
|
698
|
+
}), le = Yt({
|
|
699
699
|
slides: v,
|
|
700
700
|
position: "after",
|
|
701
701
|
toShow: N
|
|
@@ -732,7 +732,7 @@ const xa = ae({
|
|
|
732
732
|
onBlur: ct,
|
|
733
733
|
onMouseenter: It,
|
|
734
734
|
onMouseleave: lt
|
|
735
|
-
}, [Qe, Vt, X(
|
|
735
|
+
}, [Qe, Vt, X(qa)]);
|
|
736
736
|
};
|
|
737
737
|
}
|
|
738
738
|
});
|
|
@@ -740,34 +740,34 @@ var Ut;
|
|
|
740
740
|
(function(e) {
|
|
741
741
|
e.arrowDown = "arrowDown", e.arrowLeft = "arrowLeft", e.arrowRight = "arrowRight", e.arrowUp = "arrowUp";
|
|
742
742
|
})(Ut || (Ut = {}));
|
|
743
|
-
const
|
|
743
|
+
const Wt = (e) => `icon${e.charAt(0).toUpperCase() + e.slice(1)}`, Ya = {
|
|
744
744
|
arrowDown: "M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z",
|
|
745
745
|
arrowLeft: "M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z",
|
|
746
746
|
arrowRight: "M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z",
|
|
747
747
|
arrowUp: "M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"
|
|
748
748
|
};
|
|
749
|
-
function
|
|
749
|
+
function Ka(e) {
|
|
750
750
|
return e in Ut;
|
|
751
751
|
}
|
|
752
|
-
const
|
|
752
|
+
const Jt = (e) => e && Ka(e), Qt = ae({
|
|
753
753
|
props: {
|
|
754
754
|
name: {
|
|
755
755
|
type: String,
|
|
756
756
|
required: !0,
|
|
757
|
-
validator:
|
|
757
|
+
validator: Jt
|
|
758
758
|
},
|
|
759
759
|
title: {
|
|
760
760
|
type: String,
|
|
761
|
-
default: (e) => e.name ? P.i18n[
|
|
761
|
+
default: (e) => e.name ? P.i18n[Wt(e.name)] : ""
|
|
762
762
|
}
|
|
763
763
|
},
|
|
764
764
|
setup(e) {
|
|
765
765
|
const o = ut(Fe, null);
|
|
766
766
|
return () => {
|
|
767
767
|
const i = e.name;
|
|
768
|
-
if (!i || !
|
|
768
|
+
if (!i || !Jt(i))
|
|
769
769
|
return;
|
|
770
|
-
const n =
|
|
770
|
+
const n = Ya[i], l = X("path", { d: n }), a = (o == null ? void 0 : o.config.i18n[Wt(i)]) || e.title, v = X("title", a);
|
|
771
771
|
return X("svg", {
|
|
772
772
|
class: "carousel__icon",
|
|
773
773
|
viewBox: "0 0 24 24",
|
|
@@ -776,7 +776,7 @@ const Wt = (e) => e && Ya(e), Jt = ae({
|
|
|
776
776
|
}, [v, l]);
|
|
777
777
|
};
|
|
778
778
|
}
|
|
779
|
-
}),
|
|
779
|
+
}), Wa = ae({
|
|
780
780
|
name: "CarouselNavigation",
|
|
781
781
|
inheritAttrs: !1,
|
|
782
782
|
setup(e, { slots: o, attrs: i }) {
|
|
@@ -799,15 +799,15 @@ const Wt = (e) => e && Ya(e), Jt = ae({
|
|
|
799
799
|
"carousel__prev",
|
|
800
800
|
{ "carousel__prev--disabled": g.value },
|
|
801
801
|
i.class
|
|
802
|
-
] }), (a == null ? void 0 : a()) || X(
|
|
802
|
+
] }), (a == null ? void 0 : a()) || X(Qt, { name: v() })), c = X("button", Object.assign(Object.assign({ type: "button", disabled: m.value, "aria-label": r.ariaNextSlide, title: r.ariaNextSlide, onClick: n.nav.next }, i), { class: [
|
|
803
803
|
"carousel__next",
|
|
804
804
|
{ "carousel__next--disabled": m.value },
|
|
805
805
|
i.class
|
|
806
|
-
] }), (l == null ? void 0 : l()) || X(
|
|
806
|
+
] }), (l == null ? void 0 : l()) || X(Qt, { name: b() }));
|
|
807
807
|
return [T, c];
|
|
808
808
|
};
|
|
809
809
|
}
|
|
810
|
-
}),
|
|
810
|
+
}), Ja = ae({
|
|
811
811
|
name: "CarouselPagination",
|
|
812
812
|
props: {
|
|
813
813
|
disableOnClick: {
|
|
@@ -824,7 +824,7 @@ const Wt = (e) => e && Ya(e), Jt = ae({
|
|
|
824
824
|
const i = u(() => o.config.itemsToShow), n = u(() => Ft({
|
|
825
825
|
align: o.config.snapAlign,
|
|
826
826
|
itemsToShow: i.value
|
|
827
|
-
})), l = u(() => e.paginateByItemsToShow && i.value > 1), a = u(() => Math.ceil((o.activeSlide - n.value) / i.value)), v = u(() => Math.ceil(o.slidesCount / i.value)), b = (g) =>
|
|
827
|
+
})), l = u(() => e.paginateByItemsToShow && i.value > 1), a = u(() => Math.ceil((o.activeSlide - n.value) / i.value)), v = u(() => Math.ceil(o.slidesCount / i.value)), b = (g) => fa(l.value ? {
|
|
828
828
|
val: a.value,
|
|
829
829
|
max: v.value - 1,
|
|
830
830
|
min: 0
|
|
@@ -837,7 +837,7 @@ const Wt = (e) => e && Ya(e), Jt = ae({
|
|
|
837
837
|
var g, m;
|
|
838
838
|
const r = [];
|
|
839
839
|
for (let T = l.value ? 0 : o.minSlide; T <= (l.value ? v.value - 1 : o.maxSlide); T++) {
|
|
840
|
-
const c =
|
|
840
|
+
const c = va(o.config.i18n[l.value ? "ariaNavigateToPage" : "ariaNavigateToSlide"], {
|
|
841
841
|
slideNumber: T + 1
|
|
842
842
|
}), S = b(T), E = X("button", {
|
|
843
843
|
type: "button",
|
|
@@ -857,12 +857,12 @@ const Wt = (e) => e && Ya(e), Jt = ae({
|
|
|
857
857
|
return X("ol", { class: "carousel__pagination" }, r);
|
|
858
858
|
};
|
|
859
859
|
}
|
|
860
|
-
}),
|
|
860
|
+
}), Zt = ae({
|
|
861
861
|
name: "CarouselSlide",
|
|
862
862
|
props: {
|
|
863
863
|
id: {
|
|
864
864
|
type: String,
|
|
865
|
-
default: (e) => e.isClone ? void 0 :
|
|
865
|
+
default: (e) => e.isClone ? void 0 : Ca()
|
|
866
866
|
},
|
|
867
867
|
index: {
|
|
868
868
|
type: Number,
|
|
@@ -879,11 +879,11 @@ const Wt = (e) => e && Ya(e), Jt = ae({
|
|
|
879
879
|
},
|
|
880
880
|
setup(e, { attrs: o, slots: i, expose: n }) {
|
|
881
881
|
const l = ut(Fe);
|
|
882
|
-
if (
|
|
882
|
+
if (ta(Fe, void 0), !l)
|
|
883
883
|
return () => "";
|
|
884
884
|
const a = C(e.index), v = (E) => {
|
|
885
885
|
a.value = E;
|
|
886
|
-
}, b =
|
|
886
|
+
}, b = Da(), g = () => {
|
|
887
887
|
const E = b.vnode.el;
|
|
888
888
|
return E ? E.getBoundingClientRect() : { width: 0, height: 0 };
|
|
889
889
|
};
|
|
@@ -898,12 +898,12 @@ const Wt = (e) => e && Ya(e), Jt = ae({
|
|
|
898
898
|
const E = l.config.itemsToShow, V = l.config.gap > 0 && E > 1 ? `calc(${100 / E}% - ${l.config.gap * (E - 1) / E}px)` : `${100 / E}%`;
|
|
899
899
|
return l.isVertical ? { height: V } : { width: V };
|
|
900
900
|
});
|
|
901
|
-
return l.slideRegistry.registerSlide(b, e.index),
|
|
901
|
+
return l.slideRegistry.registerSlide(b, e.index), Ba(() => {
|
|
902
902
|
l.slideRegistry.unregisterSlide(b);
|
|
903
903
|
}), e.isClone && (jt(() => {
|
|
904
|
-
|
|
905
|
-
}),
|
|
906
|
-
|
|
904
|
+
Kt(b.vnode);
|
|
905
|
+
}), Ia(() => {
|
|
906
|
+
Kt(b.vnode);
|
|
907
907
|
})), () => {
|
|
908
908
|
var E, V;
|
|
909
909
|
return l.config.enabled ? X("li", {
|
|
@@ -933,7 +933,7 @@ const Wt = (e) => e && Ya(e), Jt = ae({
|
|
|
933
933
|
})) : (E = i.default) === null || E === void 0 ? void 0 : E.call(i);
|
|
934
934
|
};
|
|
935
935
|
}
|
|
936
|
-
}),
|
|
936
|
+
}), Qa = (e, o, i, n) => {
|
|
937
937
|
if (!i) return 0;
|
|
938
938
|
let l = String(e[i.key]).toLowerCase(), a = String(o[i.key]).toLowerCase();
|
|
939
939
|
if (n === Oe.Asc) {
|
|
@@ -952,43 +952,45 @@ const Wt = (e) => e && Ya(e), Jt = ae({
|
|
|
952
952
|
}
|
|
953
953
|
if (e.formatter && typeof e.formatter == "function") {
|
|
954
954
|
let l = e.formatter(o[e.key], o, e, i);
|
|
955
|
-
return l.startsWith("__:") ?
|
|
955
|
+
return l.startsWith("__:") ? Aa(l.substring(3)) : l;
|
|
956
956
|
}
|
|
957
957
|
return o[e.key];
|
|
958
|
-
},
|
|
958
|
+
}, Za = (e, o, i) => {
|
|
959
959
|
if (!e.colspan) return -1;
|
|
960
960
|
let n = o;
|
|
961
961
|
return i.forEach((l) => {
|
|
962
962
|
let a = zt(e, l);
|
|
963
963
|
a > 0 && a < n && (n = a);
|
|
964
964
|
}), n;
|
|
965
|
-
}, zt = (e, o) => e.colspan === !1 ? !1 : typeof e.colspan == "function" ? e.colspan(o) : e.colspan,
|
|
965
|
+
}, zt = (e, o) => e.colspan === !1 ? !1 : typeof e.colspan == "function" ? e.colspan(o) : e.colspan, el = (e, o) => typeof e.preferSlot > "u" ? !0 : e.preferSlot === !1 ? !1 : typeof e.preferSlot == "function" ? e.preferSlot(o) : !0, tl = (e, o, i) => {
|
|
966
966
|
if (typeof e != "object" || !e.key || o.indexOf(e.key) > -1) return !1;
|
|
967
967
|
let n = zt(e, i);
|
|
968
968
|
return typeof e.colspan > "u" ? !0 : (typeof e.colspan < "u" && (typeof e.colspan == "function" ? n = parseInt(e.colspan(i)) : n = parseInt(e.colspan)), n > 0);
|
|
969
|
-
},
|
|
969
|
+
}, al = (e = []) => {
|
|
970
970
|
if (e.length > 0) {
|
|
971
971
|
for (let o = 0; o < e.length; ++o)
|
|
972
972
|
if (e[o].sortable) return e[o].key;
|
|
973
973
|
}
|
|
974
974
|
return "";
|
|
975
|
-
},
|
|
975
|
+
}, ll = (e, o) => {
|
|
976
976
|
if (e.length > 0) {
|
|
977
977
|
for (let i = 0; i < e.length; ++i)
|
|
978
978
|
if (e[i].key === o) return e[i];
|
|
979
979
|
}
|
|
980
980
|
return null;
|
|
981
|
-
},
|
|
981
|
+
}, ma = (e) => e.type ? `is-${e.type}` : "", pa = /* @__PURE__ */ ae({
|
|
982
982
|
__name: "LktTableCell",
|
|
983
983
|
props: {
|
|
984
984
|
modelValue: { default: () => ({}) },
|
|
985
|
-
column: { default: () => new
|
|
985
|
+
column: { default: () => new na() },
|
|
986
986
|
columns: { default: () => [] },
|
|
987
987
|
i: { default: 0 },
|
|
988
988
|
editModeEnabled: { type: Boolean, default: !1 },
|
|
989
989
|
hasInlineEditPerm: { type: Boolean, default: !1 }
|
|
990
990
|
},
|
|
991
|
-
emits: [
|
|
991
|
+
emits: [
|
|
992
|
+
"update:modelValue"
|
|
993
|
+
],
|
|
992
994
|
setup(e, { emit: o }) {
|
|
993
995
|
const i = o, n = e, l = C(n.modelValue), a = C(l.value[n.column.key]), v = C(null);
|
|
994
996
|
H(a, (m) => {
|
|
@@ -1047,22 +1049,24 @@ const Wt = (e) => e && Ya(e), Jt = ae({
|
|
|
1047
1049
|
};
|
|
1048
1050
|
De.navButtonSlot = "", De.dropButtonSlot = "", De.editButtonSlot = "", De.createButtonSlot = "", De.defaultEmptySlot = void 0, De.defaultSaveIcon = "", De.defaultNoResultsMessage = "No results";
|
|
1049
1051
|
let Y = De;
|
|
1050
|
-
const
|
|
1052
|
+
const nl = /* @__PURE__ */ ae({
|
|
1051
1053
|
__name: "DropButtonComponent",
|
|
1052
1054
|
props: {
|
|
1053
1055
|
config: {},
|
|
1054
1056
|
item: {},
|
|
1055
1057
|
disabled: { type: Boolean, default: !1 }
|
|
1056
1058
|
},
|
|
1057
|
-
emits: [
|
|
1059
|
+
emits: [
|
|
1060
|
+
"click"
|
|
1061
|
+
],
|
|
1058
1062
|
setup(e, { emit: o }) {
|
|
1059
|
-
const i = o, n = e, l = u(() => Y.dropButtonSlot !== ""), a = u(() => Y.dropButtonSlot), v = u(() =>
|
|
1063
|
+
const i = o, n = e, l = u(() => Y.dropButtonSlot !== ""), a = u(() => Y.dropButtonSlot), v = u(() => oa(n.config.resourceData, n.item));
|
|
1060
1064
|
return (b, g) => {
|
|
1061
1065
|
const m = ve("lkt-button");
|
|
1062
1066
|
return d(), $(m, fe({ palette: "table-delete" }, n.config, {
|
|
1063
1067
|
disabled: b.disabled,
|
|
1064
1068
|
"resource-data": v.value,
|
|
1065
|
-
onClick: g[0] || (g[0] =
|
|
1069
|
+
onClick: g[0] || (g[0] = aa((r) => i("click", r), ["prevent", "stop"]))
|
|
1066
1070
|
}), {
|
|
1067
1071
|
default: F(() => [
|
|
1068
1072
|
l.value ? (d(), $(Ie(a.value), { key: 0 })) : A("", !0)
|
|
@@ -1071,22 +1075,24 @@ const ll = /* @__PURE__ */ ae({
|
|
|
1071
1075
|
}, 16, ["disabled", "resource-data"]);
|
|
1072
1076
|
};
|
|
1073
1077
|
}
|
|
1074
|
-
}),
|
|
1078
|
+
}), ol = /* @__PURE__ */ ae({
|
|
1075
1079
|
__name: "EditButtonComponent",
|
|
1076
1080
|
props: {
|
|
1077
1081
|
config: {},
|
|
1078
1082
|
item: {},
|
|
1079
1083
|
disabled: { type: Boolean, default: !1 }
|
|
1080
1084
|
},
|
|
1081
|
-
emits: [
|
|
1085
|
+
emits: [
|
|
1086
|
+
"click"
|
|
1087
|
+
],
|
|
1082
1088
|
setup(e, { emit: o }) {
|
|
1083
|
-
const i = o, n = e, l = u(() => Y.editButtonSlot !== ""), a = u(() => Y.editButtonSlot), v = u(() =>
|
|
1089
|
+
const i = o, n = e, l = u(() => Y.editButtonSlot !== ""), a = u(() => Y.editButtonSlot), v = u(() => oa(n.config.resourceData, n.item));
|
|
1084
1090
|
return (b, g) => {
|
|
1085
1091
|
const m = ve("lkt-button");
|
|
1086
1092
|
return d(), $(m, fe({ palette: "table-edit" }, n.config, {
|
|
1087
1093
|
disabled: b.disabled,
|
|
1088
1094
|
"resource-data": v.value,
|
|
1089
|
-
onClick: g[0] || (g[0] =
|
|
1095
|
+
onClick: g[0] || (g[0] = aa((r) => i("click"), ["prevent", "stop"]))
|
|
1090
1096
|
}), {
|
|
1091
1097
|
default: F(() => [
|
|
1092
1098
|
l.value ? (d(), $(Ie(a.value), { key: 0 })) : A("", !0)
|
|
@@ -1095,19 +1101,19 @@ const ll = /* @__PURE__ */ ae({
|
|
|
1095
1101
|
}, 16, ["disabled", "resource-data"]);
|
|
1096
1102
|
};
|
|
1097
1103
|
}
|
|
1098
|
-
}),
|
|
1104
|
+
}), il = ["data-i", "data-draggable"], rl = ["data-i"], ul = {
|
|
1099
1105
|
key: 1,
|
|
1100
1106
|
"data-role": "invalid-drag-indicator"
|
|
1101
|
-
},
|
|
1107
|
+
}, sl = {
|
|
1102
1108
|
key: 2,
|
|
1103
1109
|
class: "lkt-table-nav-cell"
|
|
1104
|
-
},
|
|
1110
|
+
}, dl = { class: "lkt-table-nav-container" }, cl = ["colspan"], vl = ["colspan"], fl = ["data-column", "colspan", "title"], ml = {
|
|
1105
1111
|
key: 7,
|
|
1106
1112
|
class: "lkt-table-col-drop"
|
|
1107
|
-
},
|
|
1113
|
+
}, pl = {
|
|
1108
1114
|
key: 8,
|
|
1109
1115
|
class: "lkt-table-col-edit"
|
|
1110
|
-
},
|
|
1116
|
+
}, gl = /* @__PURE__ */ ae({
|
|
1111
1117
|
__name: "LktTableRow",
|
|
1112
1118
|
props: {
|
|
1113
1119
|
modelValue: { default: () => ({}) },
|
|
@@ -1130,14 +1136,21 @@ const ll = /* @__PURE__ */ ae({
|
|
|
1130
1136
|
renderDrag: { type: [Boolean, Function], default: !0 },
|
|
1131
1137
|
disabledDrag: { type: [Boolean, Function], default: !0 }
|
|
1132
1138
|
},
|
|
1133
|
-
emits: [
|
|
1139
|
+
emits: [
|
|
1140
|
+
"update:modelValue",
|
|
1141
|
+
"click",
|
|
1142
|
+
"show",
|
|
1143
|
+
"item-up",
|
|
1144
|
+
"item-down",
|
|
1145
|
+
"item-drop"
|
|
1146
|
+
],
|
|
1134
1147
|
setup(e, { emit: o }) {
|
|
1135
1148
|
var Z;
|
|
1136
|
-
const i =
|
|
1149
|
+
const i = la(), n = o, l = e, a = C(l.modelValue);
|
|
1137
1150
|
let v = typeof l.rowDisplayType == "function" ? l.rowDisplayType(a.value, l.i) : l.rowDisplayType;
|
|
1138
1151
|
v || (v = Ze.Auto);
|
|
1139
1152
|
const b = [Ze.Auto, Ze.PreferCustomItem].includes(v), g = [Ze.Auto, Ze.PreferItem].includes(v), m = C((Z = l.editButton.anchor) == null ? void 0 : Z.to);
|
|
1140
|
-
for (let f in a.value) m.value =
|
|
1153
|
+
for (let f in a.value) m.value = ra(m.value, ":" + f, a.value[f]);
|
|
1141
1154
|
const r = (f) => n("click", f), T = (f, k) => {
|
|
1142
1155
|
n("show", f, k);
|
|
1143
1156
|
}, c = u(() => {
|
|
@@ -1167,9 +1180,9 @@ const ll = /* @__PURE__ */ ae({
|
|
|
1167
1180
|
"data-role": "drag-indicator",
|
|
1168
1181
|
class: re(c.value),
|
|
1169
1182
|
"data-i": f.i
|
|
1170
|
-
}, null, 10,
|
|
1171
|
-
f.addNavigation && f.editModeEnabled ? (d(), h("td",
|
|
1172
|
-
J("div",
|
|
1183
|
+
}, null, 10, rl)) : f.sortable && f.editModeEnabled && ne.value ? (d(), h("td", ul)) : A("", !0),
|
|
1184
|
+
f.addNavigation && f.editModeEnabled ? (d(), h("td", sl, [
|
|
1185
|
+
J("div", dl, [
|
|
1173
1186
|
Be(U, {
|
|
1174
1187
|
palette: "table-nav",
|
|
1175
1188
|
disabled: f.i === 0,
|
|
@@ -1218,7 +1231,7 @@ const ll = /* @__PURE__ */ ae({
|
|
|
1218
1231
|
item: a.value,
|
|
1219
1232
|
index: f.i
|
|
1220
1233
|
})
|
|
1221
|
-
], 8,
|
|
1234
|
+
], 8, cl)) : B(g) && B(i).item ? (d(), h("td", {
|
|
1222
1235
|
key: "td" + f.i,
|
|
1223
1236
|
colspan: f.visibleColumns.length
|
|
1224
1237
|
}, [
|
|
@@ -1226,22 +1239,22 @@ const ll = /* @__PURE__ */ ae({
|
|
|
1226
1239
|
item: a.value,
|
|
1227
1240
|
index: f.i
|
|
1228
1241
|
})
|
|
1229
|
-
], 8,
|
|
1230
|
-
B(
|
|
1242
|
+
], 8, vl)) : (d(!0), h(x, { key: 6 }, ie(f.visibleColumns, (L) => (d(), h(x, null, [
|
|
1243
|
+
B(tl)(L, f.emptyColumns, a.value) ? (d(), h("td", {
|
|
1231
1244
|
key: "td" + f.i,
|
|
1232
1245
|
"data-column": L.key,
|
|
1233
1246
|
colspan: B(zt)(L, a.value),
|
|
1234
1247
|
title: B(at)(L, a.value, f.i, f.visibleColumns),
|
|
1235
|
-
class: re(B(
|
|
1248
|
+
class: re(B(ma)(L)),
|
|
1236
1249
|
onClick: k[2] || (k[2] = (Q) => r(Q))
|
|
1237
1250
|
}, [
|
|
1238
|
-
f.$slots[L.key] && B(
|
|
1251
|
+
f.$slots[L.key] && B(el)(L, a.value) ? z(f.$slots, L.key, {
|
|
1239
1252
|
key: 0,
|
|
1240
1253
|
value: a.value[L.key],
|
|
1241
1254
|
item: a.value,
|
|
1242
1255
|
column: L,
|
|
1243
1256
|
i: f.i
|
|
1244
|
-
}) : a.value ? (d(), $(
|
|
1257
|
+
}) : a.value ? (d(), $(pa, {
|
|
1245
1258
|
key: 1,
|
|
1246
1259
|
modelValue: a.value,
|
|
1247
1260
|
"onUpdate:modelValue": k[1] || (k[1] = (Q) => a.value = Q),
|
|
@@ -1251,26 +1264,26 @@ const ll = /* @__PURE__ */ ae({
|
|
|
1251
1264
|
"has-inline-edit-perm": f.hasInlineEditPerm,
|
|
1252
1265
|
i: f.i
|
|
1253
1266
|
}, null, 8, ["modelValue", "column", "columns", "edit-mode-enabled", "has-inline-edit-perm", "i"])) : A("", !0)
|
|
1254
|
-
], 10,
|
|
1267
|
+
], 10, fl)) : A("", !0)
|
|
1255
1268
|
], 64))), 256)),
|
|
1256
|
-
f.canDrop && f.editModeEnabled ? (d(), h("td",
|
|
1257
|
-
Be(
|
|
1269
|
+
f.canDrop && f.editModeEnabled ? (d(), h("td", ml, [
|
|
1270
|
+
Be(nl, {
|
|
1258
1271
|
config: f.dropButton,
|
|
1259
1272
|
item: a.value,
|
|
1260
1273
|
onClick: O
|
|
1261
1274
|
}, null, 8, ["config", "item"])
|
|
1262
1275
|
])) : A("", !0),
|
|
1263
|
-
f.canEdit && f.editModeEnabled ? (d(), h("td",
|
|
1264
|
-
Be(
|
|
1276
|
+
f.canEdit && f.editModeEnabled ? (d(), h("td", pl, [
|
|
1277
|
+
Be(ol, {
|
|
1265
1278
|
config: f.editButton,
|
|
1266
1279
|
item: a.value,
|
|
1267
1280
|
onClick: q
|
|
1268
1281
|
}, null, 8, ["config", "item"])
|
|
1269
1282
|
])) : A("", !0)
|
|
1270
|
-
], 10,
|
|
1283
|
+
], 10, il);
|
|
1271
1284
|
};
|
|
1272
1285
|
}
|
|
1273
|
-
}),
|
|
1286
|
+
}), bl = { "data-role": "hidden-row" }, yl = ["colspan"], hl = ["data-column"], kl = ["data-i"], Sl = ["data-column", "title"], wl = /* @__PURE__ */ ae({
|
|
1274
1287
|
__name: "LktHiddenRow",
|
|
1275
1288
|
props: {
|
|
1276
1289
|
modelValue: { default: () => ({}) },
|
|
@@ -1285,10 +1298,13 @@ const ll = /* @__PURE__ */ ae({
|
|
|
1285
1298
|
editModeEnabled: { type: Boolean, default: !1 },
|
|
1286
1299
|
hasInlineEditPerm: { type: Boolean, default: !1 }
|
|
1287
1300
|
},
|
|
1288
|
-
emits: [
|
|
1301
|
+
emits: [
|
|
1302
|
+
"update:modelValue",
|
|
1303
|
+
"click"
|
|
1304
|
+
],
|
|
1289
1305
|
setup(e, { emit: o }) {
|
|
1290
1306
|
const i = o, n = e, l = C(n.modelValue), a = (v) => i("click", v);
|
|
1291
|
-
return H(() => n.modelValue, (v) => l.value = v), H(l, () => i("update:modelValue", l.value)), (v, b) => it((d(), h("tr",
|
|
1307
|
+
return H(() => n.modelValue, (v) => l.value = v), H(l, () => i("update:modelValue", l.value)), (v, b) => it((d(), h("tr", bl, [
|
|
1292
1308
|
J("td", { colspan: v.hiddenColumnsColSpan }, [
|
|
1293
1309
|
J("table", null, [
|
|
1294
1310
|
J("tr", null, [
|
|
@@ -1296,7 +1312,7 @@ const ll = /* @__PURE__ */ ae({
|
|
|
1296
1312
|
"data-column": g.key
|
|
1297
1313
|
}, [
|
|
1298
1314
|
J("div", null, Pe(g.label), 1)
|
|
1299
|
-
], 8,
|
|
1315
|
+
], 8, hl))), 256))
|
|
1300
1316
|
]),
|
|
1301
1317
|
J("tr", { "data-i": v.i }, [
|
|
1302
1318
|
(d(!0), h(x, null, ie(v.hiddenColumns, (g, m) => (d(), h("td", {
|
|
@@ -1310,7 +1326,7 @@ const ll = /* @__PURE__ */ ae({
|
|
|
1310
1326
|
item: l.value,
|
|
1311
1327
|
column: g,
|
|
1312
1328
|
i: m
|
|
1313
|
-
}) : (d(), $(
|
|
1329
|
+
}) : (d(), $(pa, {
|
|
1314
1330
|
key: 1,
|
|
1315
1331
|
column: g,
|
|
1316
1332
|
columns: v.hiddenColumns,
|
|
@@ -1320,21 +1336,24 @@ const ll = /* @__PURE__ */ ae({
|
|
|
1320
1336
|
"edit-mode-enabled": v.editModeEnabled,
|
|
1321
1337
|
"has-inline-edit-perm": v.hasInlineEditPerm
|
|
1322
1338
|
}, null, 8, ["column", "columns", "modelValue", "i", "edit-mode-enabled", "has-inline-edit-perm"]))
|
|
1323
|
-
], 8,
|
|
1324
|
-
], 8,
|
|
1339
|
+
], 8, Sl))), 256))
|
|
1340
|
+
], 8, kl)
|
|
1325
1341
|
])
|
|
1326
|
-
], 8,
|
|
1342
|
+
], 8, yl)
|
|
1327
1343
|
], 512)), [
|
|
1328
1344
|
[rt, v.hiddenIsVisible]
|
|
1329
1345
|
]);
|
|
1330
1346
|
}
|
|
1331
|
-
}),
|
|
1347
|
+
}), ea = /* @__PURE__ */ ae({
|
|
1332
1348
|
__name: "CreateButton",
|
|
1333
1349
|
props: {
|
|
1334
1350
|
config: { default: void 0 },
|
|
1335
1351
|
disabled: { type: Boolean, default: !1 }
|
|
1336
1352
|
},
|
|
1337
|
-
emits: [
|
|
1353
|
+
emits: [
|
|
1354
|
+
"click",
|
|
1355
|
+
"append"
|
|
1356
|
+
],
|
|
1338
1357
|
setup(e, { emit: o }) {
|
|
1339
1358
|
var m;
|
|
1340
1359
|
const i = o, n = e, l = u(() => Y.createButtonSlot !== ""), a = u(() => Y.createButtonSlot), v = {
|
|
@@ -1366,25 +1385,27 @@ const ll = /* @__PURE__ */ ae({
|
|
|
1366
1385
|
}, 16, ["disabled"]);
|
|
1367
1386
|
};
|
|
1368
1387
|
}
|
|
1369
|
-
}),
|
|
1388
|
+
}), Cl = ["data-column", "data-sortable", "data-sort", "colspan", "title"], Dl = /* @__PURE__ */ ae({
|
|
1370
1389
|
__name: "TableHeader",
|
|
1371
1390
|
props: {
|
|
1372
|
-
column: { default: () => new
|
|
1391
|
+
column: { default: () => new na() },
|
|
1373
1392
|
sortBy: { default: "" },
|
|
1374
1393
|
sortDirection: { default: "" },
|
|
1375
1394
|
amountOfColumns: { default: 0 },
|
|
1376
1395
|
items: { default: () => [] }
|
|
1377
1396
|
},
|
|
1378
|
-
emits: [
|
|
1397
|
+
emits: [
|
|
1398
|
+
"click"
|
|
1399
|
+
],
|
|
1379
1400
|
setup(e, { emit: o }) {
|
|
1380
|
-
const i = o, n = e, l = u(() =>
|
|
1401
|
+
const i = o, n = e, l = u(() => Za(n.column, n.amountOfColumns, n.items)), a = u(() => n.column.sortable === !0), v = u(() => a.value && n.sortBy === n.column.key ? n.sortDirection : ""), b = u(() => ia(n.column.label)), g = u(() => a.value && n.sortBy === n.column.key ? n.sortDirection === Oe.Asc ? tt.defaultTableSortAscIcon : n.sortDirection === Oe.Desc ? tt.defaultTableSortDescIcon : "" : ""), m = () => i("click", n.column);
|
|
1381
1402
|
return (r, T) => (d(), h("th", {
|
|
1382
1403
|
"data-column": r.column.key,
|
|
1383
1404
|
"data-sortable": a.value,
|
|
1384
1405
|
"data-sort": v.value,
|
|
1385
1406
|
colspan: l.value,
|
|
1386
1407
|
title: b.value,
|
|
1387
|
-
class: re(B(
|
|
1408
|
+
class: re(B(ma)(r.column)),
|
|
1388
1409
|
onClick: m
|
|
1389
1410
|
}, [
|
|
1390
1411
|
J("div", null, [
|
|
@@ -1394,35 +1415,35 @@ const ll = /* @__PURE__ */ ae({
|
|
|
1394
1415
|
class: re(g.value)
|
|
1395
1416
|
}, null, 2)) : A("", !0)
|
|
1396
1417
|
])
|
|
1397
|
-
], 10,
|
|
1418
|
+
], 10, Cl));
|
|
1398
1419
|
}
|
|
1399
|
-
}),
|
|
1420
|
+
}), Bl = ["id"], Il = {
|
|
1400
1421
|
key: 0,
|
|
1401
1422
|
class: "lkt-table-page-buttons"
|
|
1402
|
-
},
|
|
1423
|
+
}, Tl = { class: "switch-edition-mode" }, El = {
|
|
1403
1424
|
key: 1,
|
|
1404
1425
|
class: "lkt-table-page-buttons"
|
|
1405
|
-
},
|
|
1426
|
+
}, Al = {
|
|
1406
1427
|
key: 2,
|
|
1407
1428
|
class: "lkt-table-page-filters"
|
|
1408
|
-
},
|
|
1429
|
+
}, Vl = { class: "lkt-table" }, Nl = { key: 0 }, _l = {
|
|
1409
1430
|
key: 0,
|
|
1410
1431
|
"data-role": "drag-indicator"
|
|
1411
|
-
},
|
|
1432
|
+
}, Ml = { key: 1 }, Rl = { key: 2 }, $l = {
|
|
1412
1433
|
key: 3,
|
|
1413
1434
|
class: "lkt-table-col-drop"
|
|
1414
|
-
},
|
|
1435
|
+
}, Ll = {
|
|
1415
1436
|
key: 4,
|
|
1416
1437
|
class: "lkt-table-col-edit"
|
|
1417
|
-
},
|
|
1438
|
+
}, Ol = ["id"], Pl = ["id"], Fl = ["data-i"], Ul = ["data-i"], jl = ["id"], zl = { class: "lkt-carousel-slide" }, Hl = { class: "lkt-carousel-slide" }, xl = {
|
|
1418
1439
|
key: 3,
|
|
1419
1440
|
class: "lkt-table-empty"
|
|
1420
|
-
},
|
|
1441
|
+
}, ql = {
|
|
1421
1442
|
key: 5,
|
|
1422
1443
|
class: "lkt-table-page-buttons lkt-table-page-buttons-bottom"
|
|
1423
|
-
},
|
|
1444
|
+
}, Gl = /* @__PURE__ */ ae({
|
|
1424
1445
|
__name: "LktTable",
|
|
1425
|
-
props: /* @__PURE__ */
|
|
1446
|
+
props: /* @__PURE__ */ Ea({
|
|
1426
1447
|
modelValue: {},
|
|
1427
1448
|
type: {},
|
|
1428
1449
|
columns: {},
|
|
@@ -1461,7 +1482,7 @@ const ll = /* @__PURE__ */ ae({
|
|
|
1461
1482
|
wrapContentClass: {},
|
|
1462
1483
|
itemsContainerClass: {},
|
|
1463
1484
|
createEnabledValidator: { type: Function }
|
|
1464
|
-
},
|
|
1485
|
+
}, Va(Na)),
|
|
1465
1486
|
emits: [
|
|
1466
1487
|
"update:modelValue",
|
|
1467
1488
|
"update:perms",
|
|
@@ -1477,8 +1498,8 @@ const ll = /* @__PURE__ */ ae({
|
|
|
1477
1498
|
"drag-end"
|
|
1478
1499
|
],
|
|
1479
1500
|
setup(e, { expose: o, emit: i }) {
|
|
1480
|
-
var qt;
|
|
1481
|
-
const n = i, l =
|
|
1501
|
+
var qt, Gt;
|
|
1502
|
+
const n = i, l = la(), a = e, v = {}, b = C(typeof a.sorter == "function" ? a.sorter : Qa), g = C(al(a.columns)), m = C(Oe.Asc), r = C(a.modelValue), T = C(v), c = C(null), S = C(a.columns), E = C((qt = a.paginator) == null ? void 0 : qt.modelValue), V = C(a.loading), he = C(!1), O = C(a.perms), q = C(null), ne = C(null), Ve = C(null), Z = C({}), f = C(new Ma({ items: r.value }, a.dataStateConfig)), k = C(a.editMode), U = C(0), L = C(null), Q = C(((Gt = a.carousel) == null ? void 0 : Gt.currentSlide) || 0), R = C(ht(a.saveButton, tt.defaultSaveButton)), Te = C(ht(a.createButton, tt.defaultCreateButton)), Ct = C(ht(a.editModeButton, tt.defaultEditModeButton)), Ue = C(ht(a.dropButton, tt.defaultDropButton)), j = C(!1);
|
|
1482
1503
|
H(V, (t) => n("update:loading", t)), H(E, (t) => n("page", t));
|
|
1483
1504
|
const Dt = (t) => {
|
|
1484
1505
|
O.value = t;
|
|
@@ -1489,7 +1510,7 @@ const ll = /* @__PURE__ */ ae({
|
|
|
1489
1510
|
});
|
|
1490
1511
|
}, Bt = () => bt(() => V.value = !0), me = () => {
|
|
1491
1512
|
q.value.doRefresh();
|
|
1492
|
-
}, ue =
|
|
1513
|
+
}, ue = _a(12), _e = u(() => {
|
|
1493
1514
|
if (!a.hideEmptyColumns) return [];
|
|
1494
1515
|
let t = [];
|
|
1495
1516
|
return S.value.forEach((p) => {
|
|
@@ -1526,7 +1547,7 @@ const ll = /* @__PURE__ */ ae({
|
|
|
1526
1547
|
items: r.value,
|
|
1527
1548
|
...(t = R.value) == null ? void 0 : t.resourceData
|
|
1528
1549
|
};
|
|
1529
|
-
}), ct = u(() => a.titleTag === "" ? "h2" : a.titleTag), vt = u(() => a.wrapContentTag === "" ? "div" : a.wrapContentTag), Me = u(() =>
|
|
1550
|
+
}), ct = u(() => a.titleTag === "" ? "h2" : a.titleTag), vt = u(() => a.wrapContentTag === "" ? "div" : a.wrapContentTag), Me = u(() => ia(a.title)), Ge = u(() => {
|
|
1530
1551
|
var t;
|
|
1531
1552
|
return (t = a.drag) == null ? void 0 : t.enabled;
|
|
1532
1553
|
}), ke = u(() => O.value.includes(we.Create)), Xe = u(() => O.value.includes("read")), de = u(() => O.value.includes(we.Update)), ge = u(() => O.value.includes(we.Edit)), Se = u(() => O.value.includes(we.InlineEdit)), Re = u(() => O.value.includes(we.ModalCreate)), Ye = u(() => O.value.includes(we.InlineCreate)), ft = u(() => O.value.includes(we.InlineCreateEver)), be = u(() => O.value.includes(we.Drop)), $e = u(() => O.value.includes(we.SwitchEditMode)), Ke = u(() => !$e.value || !de.value && !be.value || !de.value && be.value ? !1 : !V.value), nt = u(() => {
|
|
@@ -1601,11 +1622,11 @@ const ll = /* @__PURE__ */ ae({
|
|
|
1601
1622
|
ee(r.value, t, t + 1), U.value = Le();
|
|
1602
1623
|
}, Qe = (t) => {
|
|
1603
1624
|
r.value.splice(t, 1), U.value = Le();
|
|
1604
|
-
},
|
|
1625
|
+
}, ga = () => {
|
|
1605
1626
|
var t;
|
|
1606
1627
|
Z.value && typeof ((t = Z.value) == null ? void 0 : t.destroy) == "function" && (Z.value.destroy(), Z.value = {});
|
|
1607
1628
|
}, Ht = () => {
|
|
1608
|
-
L.value || (L.value = document.getElementById("lkt-table-body-" + ue)), Z.value = new
|
|
1629
|
+
L.value || (L.value = document.getElementById("lkt-table-body-" + ue)), Z.value = new Ra(L.value, {
|
|
1609
1630
|
direction: "vertical",
|
|
1610
1631
|
handle: ".handle",
|
|
1611
1632
|
animation: 150,
|
|
@@ -1621,19 +1642,19 @@ const ll = /* @__PURE__ */ ae({
|
|
|
1621
1642
|
let K = [U.value, ue, "row", p];
|
|
1622
1643
|
return M && K.push("hidden"), ze.value.forEach((te) => {
|
|
1623
1644
|
let ce = String(t[te.key]).toLowerCase();
|
|
1624
|
-
ce.length > 50 && (ce = ce.substring(0, 50)), ce =
|
|
1645
|
+
ce.length > 50 && (ce = ce.substring(0, 50)), ce = ra(ce, " ", "-"), K.push(ce);
|
|
1625
1646
|
}), K.join("-");
|
|
1626
|
-
}, xt = u(() => typeof a.createEnabledValidator == "function" ? a.createEnabledValidator({ items: r.value }) : !0), gt = u(() => ft.value || ke.value && k.value || Ye.value && k.value || Re.value && k.value),
|
|
1647
|
+
}, xt = u(() => typeof a.createEnabledValidator == "function" ? a.createEnabledValidator({ items: r.value }) : !0), gt = u(() => ft.value || ke.value && k.value || Ye.value && k.value || Re.value && k.value), ba = u(() => [et.Ol, et.Ul].includes(a.type)), Mt = (t, p) => typeof a.itemDisplayChecker == "function" ? a.itemDisplayChecker(t) : !0;
|
|
1627
1648
|
jt(() => {
|
|
1628
1649
|
var t;
|
|
1629
|
-
a.initialSorting && ot(
|
|
1650
|
+
a.initialSorting && ot(ll(a.columns, g.value)), f.value.store({ items: r.value }).turnStoredIntoOriginal(), j.value = !1, (t = a.drag) != null && t.enabled && bt(() => {
|
|
1630
1651
|
Ht();
|
|
1631
1652
|
});
|
|
1632
1653
|
}), H(() => {
|
|
1633
1654
|
var t;
|
|
1634
1655
|
return (t = a.drag) == null ? void 0 : t.enabled;
|
|
1635
1656
|
}, (t) => {
|
|
1636
|
-
t ? Ht() :
|
|
1657
|
+
t ? Ht() : ga();
|
|
1637
1658
|
}), H(() => a.perms, (t) => O.value = t), H(O, (t) => n("update:perms", t)), H(() => a.editMode, (t) => k.value = t), H(() => a.columns, (t) => S.value = t, { deep: !0 }), H(() => a.modelValue, (t) => r.value = t, { deep: !0 }), H(r, (t) => {
|
|
1638
1659
|
f.value.increment({ items: t }), j.value = f.value.changed(), n("update:modelValue", t);
|
|
1639
1660
|
}, { deep: !0 }), o({
|
|
@@ -1648,7 +1669,7 @@ const ll = /* @__PURE__ */ ae({
|
|
|
1648
1669
|
});
|
|
1649
1670
|
}
|
|
1650
1671
|
});
|
|
1651
|
-
const
|
|
1672
|
+
const ya = u(() => typeof Y.defaultEmptySlot < "u"), ha = u(() => Y.defaultEmptySlot), ka = u(() => !a.drag || Object.keys(a.drag).length === 0 || !a.drag.enabled ? !1 : typeof a.drag.canRender > "u" ? !0 : a.drag.canRender), Sa = u(() => !a.drag || Object.keys(a.drag).length === 0 || !a.drag.enabled || typeof a.drag.isDisabled > "u" ? !1 : a.drag.isDisabled);
|
|
1652
1673
|
return (t, p) => {
|
|
1653
1674
|
const M = ve("lkt-button"), K = ve("lkt-field"), te = ve("lkt-loader"), ce = ve("lkt-paginator");
|
|
1654
1675
|
return d(), h("section", {
|
|
@@ -1677,7 +1698,7 @@ const ll = /* @__PURE__ */ ae({
|
|
|
1677
1698
|
class: re(["lkt-table-page-content-wrapper", t.wrapContentClass])
|
|
1678
1699
|
}, {
|
|
1679
1700
|
default: F(() => [
|
|
1680
|
-
It.value ? (d(), h("div",
|
|
1701
|
+
It.value ? (d(), h("div", Il, [
|
|
1681
1702
|
it(Be(M, fe({
|
|
1682
1703
|
class: "lkt-table--save-button",
|
|
1683
1704
|
ref_key: "saveButtonRef",
|
|
@@ -1710,14 +1731,14 @@ const ll = /* @__PURE__ */ ae({
|
|
|
1710
1731
|
}, 16, ["disabled", "modal-data"]), [
|
|
1711
1732
|
[rt, qe.value]
|
|
1712
1733
|
]),
|
|
1713
|
-
gt.value && r.value.length >= t.requiredItemsForTopCreate ? (d(), $(
|
|
1734
|
+
gt.value && r.value.length >= t.requiredItemsForTopCreate ? (d(), $(ea, {
|
|
1714
1735
|
key: 0,
|
|
1715
1736
|
config: Te.value,
|
|
1716
1737
|
disabled: !xt.value,
|
|
1717
1738
|
onClick: w,
|
|
1718
1739
|
onAppend: D
|
|
1719
1740
|
}, null, 8, ["config", "disabled"])) : A("", !0),
|
|
1720
|
-
J("div",
|
|
1741
|
+
J("div", Tl, [
|
|
1721
1742
|
it(Be(K, fe(Ct.value, {
|
|
1722
1743
|
modelValue: k.value,
|
|
1723
1744
|
"onUpdate:modelValue": p[0] || (p[0] = (_) => k.value = _)
|
|
@@ -1726,24 +1747,24 @@ const ll = /* @__PURE__ */ ae({
|
|
|
1726
1747
|
])
|
|
1727
1748
|
])
|
|
1728
1749
|
])) : A("", !0),
|
|
1729
|
-
B(l).buttons ? (d(), h("div",
|
|
1750
|
+
B(l).buttons ? (d(), h("div", El, [
|
|
1730
1751
|
z(t.$slots, "buttons")
|
|
1731
1752
|
])) : A("", !0),
|
|
1732
|
-
he.value && B(l).filters ? (d(), h("div",
|
|
1753
|
+
he.value && B(l).filters ? (d(), h("div", Al, [
|
|
1733
1754
|
z(t.$slots, "filters", {
|
|
1734
1755
|
items: r.value,
|
|
1735
1756
|
isLoading: V.value
|
|
1736
1757
|
})
|
|
1737
1758
|
])) : A("", !0),
|
|
1738
|
-
it(J("div",
|
|
1739
|
-
t.type === B(et).Table ? (d(), h("table",
|
|
1759
|
+
it(J("div", Vl, [
|
|
1760
|
+
t.type === B(et).Table ? (d(), h("table", Nl, [
|
|
1740
1761
|
J("thead", null, [
|
|
1741
1762
|
J("tr", null, [
|
|
1742
|
-
Ge.value && k.value ? (d(), h("th",
|
|
1743
|
-
t.addNavigation && k.value ? (d(), h("th",
|
|
1744
|
-
pe.value ? (d(), h("th",
|
|
1763
|
+
Ge.value && k.value ? (d(), h("th", _l)) : A("", !0),
|
|
1764
|
+
t.addNavigation && k.value ? (d(), h("th", Ml)) : A("", !0),
|
|
1765
|
+
pe.value ? (d(), h("th", Rl)) : A("", !0),
|
|
1745
1766
|
(d(!0), h(x, null, ie(se.value, (_) => (d(), h(x, null, [
|
|
1746
|
-
_e.value.indexOf(_.key) === -1 ? (d(), $(
|
|
1767
|
+
_e.value.indexOf(_.key) === -1 ? (d(), $(Dl, {
|
|
1747
1768
|
key: 0,
|
|
1748
1769
|
column: _,
|
|
1749
1770
|
"sort-by": g.value,
|
|
@@ -1753,8 +1774,8 @@ const ll = /* @__PURE__ */ ae({
|
|
|
1753
1774
|
onClick: (I) => ot(_)
|
|
1754
1775
|
}, null, 8, ["column", "sort-by", "sort-direction", "amount-of-columns", "items", "onClick"])) : A("", !0)
|
|
1755
1776
|
], 64))), 256)),
|
|
1756
|
-
be.value && k.value ? (d(), h("th",
|
|
1757
|
-
ge.value && de.value && k.value ? (d(), h("th",
|
|
1777
|
+
be.value && k.value ? (d(), h("th", $l)) : A("", !0),
|
|
1778
|
+
ge.value && de.value && k.value ? (d(), h("th", Ll)) : A("", !0)
|
|
1758
1779
|
])
|
|
1759
1780
|
]),
|
|
1760
1781
|
J("tbody", {
|
|
@@ -1762,7 +1783,7 @@ const ll = /* @__PURE__ */ ae({
|
|
|
1762
1783
|
ref: c,
|
|
1763
1784
|
id: "lkt-table-body-" + B(ue)
|
|
1764
1785
|
}, [
|
|
1765
|
-
(d(!0), h(x, null, ie(r.value, (_, I) => it((d(), $(
|
|
1786
|
+
(d(!0), h(x, null, ie(r.value, (_, I) => it((d(), $(gl, {
|
|
1766
1787
|
modelValue: r.value[I],
|
|
1767
1788
|
"onUpdate:modelValue": (W) => r.value[I] = W,
|
|
1768
1789
|
key: _t(_, I),
|
|
@@ -1782,14 +1803,14 @@ const ll = /* @__PURE__ */ ae({
|
|
|
1782
1803
|
"edit-mode-enabled": k.value,
|
|
1783
1804
|
"has-inline-edit-perm": Se.value,
|
|
1784
1805
|
"row-display-type": t.rowDisplayType,
|
|
1785
|
-
"render-drag":
|
|
1786
|
-
"disabled-drag":
|
|
1806
|
+
"render-drag": ka.value,
|
|
1807
|
+
"disabled-drag": Sa.value,
|
|
1787
1808
|
onClick: pt,
|
|
1788
1809
|
onShow: Je,
|
|
1789
1810
|
onItemUp: Vt,
|
|
1790
1811
|
onItemDown: Nt,
|
|
1791
1812
|
onItemDrop: Qe
|
|
1792
|
-
},
|
|
1813
|
+
}, Xt({ _: 2 }, [
|
|
1793
1814
|
B(l)[`item-${I}`] ? {
|
|
1794
1815
|
name: `item-${I}`,
|
|
1795
1816
|
fn: F((W) => [
|
|
@@ -1822,7 +1843,7 @@ const ll = /* @__PURE__ */ ae({
|
|
|
1822
1843
|
]), 1032, ["modelValue", "onUpdate:modelValue", "i", "drop-button", "edit-button", "display-hidden-columns-indicator", "is-draggable", "sortable", "visible-columns", "empty-columns", "add-navigation", "hidden-is-visible", "latest-row", "can-drop", "can-edit", "edit-mode-enabled", "has-inline-edit-perm", "row-display-type", "render-drag", "disabled-drag"])), [
|
|
1823
1844
|
[rt, Mt(r.value[I])]
|
|
1824
1845
|
])), 128)),
|
|
1825
|
-
je.value.length > 0 ? (d(!0), h(x, { key: 0 }, ie(r.value, (_, I) => (d(), $(
|
|
1846
|
+
je.value.length > 0 ? (d(!0), h(x, { key: 0 }, ie(r.value, (_, I) => (d(), $(wl, {
|
|
1826
1847
|
modelValue: r.value[I],
|
|
1827
1848
|
"onUpdate:modelValue": (W) => r.value[I] = W,
|
|
1828
1849
|
key: _t(_, I, !0),
|
|
@@ -1838,7 +1859,7 @@ const ll = /* @__PURE__ */ ae({
|
|
|
1838
1859
|
"has-inline-edit-perm": Se.value,
|
|
1839
1860
|
onClick: pt,
|
|
1840
1861
|
onShow: Je
|
|
1841
|
-
},
|
|
1862
|
+
}, Xt({ _: 2 }, [
|
|
1842
1863
|
ie(oe.value, (W) => ({
|
|
1843
1864
|
name: W,
|
|
1844
1865
|
fn: F((ye) => [
|
|
@@ -1850,7 +1871,7 @@ const ll = /* @__PURE__ */ ae({
|
|
|
1850
1871
|
])
|
|
1851
1872
|
}))
|
|
1852
1873
|
]), 1032, ["modelValue", "onUpdate:modelValue", "i", "hidden-columns", "hidden-columns-col-span", "is-draggable", "sortable", "visible-columns", "empty-columns", "hidden-is-visible", "edit-mode-enabled", "has-inline-edit-perm"]))), 128)) : A("", !0)
|
|
1853
|
-
], 8,
|
|
1874
|
+
], 8, Ol)
|
|
1854
1875
|
])) : t.type === B(et).Item ? (d(), h("div", {
|
|
1855
1876
|
key: 1,
|
|
1856
1877
|
ref_key: "tableBody",
|
|
@@ -1875,9 +1896,9 @@ const ll = /* @__PURE__ */ ae({
|
|
|
1875
1896
|
isLoading: V.value,
|
|
1876
1897
|
doDrop: () => Qe(I)
|
|
1877
1898
|
}))
|
|
1878
|
-
], 8,
|
|
1899
|
+
], 8, Fl)) : A("", !0)
|
|
1879
1900
|
], 64))), 256))
|
|
1880
|
-
], 10,
|
|
1901
|
+
], 10, Pl)) : ba.value ? (d(), $(Ie(t.type), {
|
|
1881
1902
|
key: 2,
|
|
1882
1903
|
class: re(["lkt-table-items-container", t.itemsContainerClass])
|
|
1883
1904
|
}, {
|
|
@@ -1899,7 +1920,7 @@ const ll = /* @__PURE__ */ ae({
|
|
|
1899
1920
|
isLoading: V.value,
|
|
1900
1921
|
doDrop: () => Qe(I)
|
|
1901
1922
|
}))
|
|
1902
|
-
], 8,
|
|
1923
|
+
], 8, Ul)) : A("", !0)
|
|
1903
1924
|
], 64))), 256))
|
|
1904
1925
|
]),
|
|
1905
1926
|
_: 3
|
|
@@ -1910,32 +1931,32 @@ const ll = /* @__PURE__ */ ae({
|
|
|
1910
1931
|
id: "lkt-table-body-" + B(ue),
|
|
1911
1932
|
class: re(["lkt-table-items-container", t.itemsContainerClass])
|
|
1912
1933
|
}, [
|
|
1913
|
-
Be(B(
|
|
1934
|
+
Be(B(Xa), fe({
|
|
1914
1935
|
modelValue: Q.value,
|
|
1915
1936
|
"onUpdate:modelValue": p[1] || (p[1] = (_) => Q.value = _)
|
|
1916
1937
|
}, t.carousel), {
|
|
1917
1938
|
addons: F(() => [
|
|
1918
|
-
Be(B(
|
|
1919
|
-
Be(B(
|
|
1939
|
+
Be(B(Wa)),
|
|
1940
|
+
Be(B(Ja))
|
|
1920
1941
|
]),
|
|
1921
1942
|
default: F(() => [
|
|
1922
|
-
(d(!0), h(x, null, ie(xe.value, (_, I) => (d(), $(B(
|
|
1943
|
+
(d(!0), h(x, null, ie(xe.value, (_, I) => (d(), $(B(Zt), {
|
|
1923
1944
|
key: _,
|
|
1924
1945
|
index: I
|
|
1925
1946
|
}, {
|
|
1926
1947
|
default: F(() => [
|
|
1927
|
-
J("div",
|
|
1948
|
+
J("div", zl, [
|
|
1928
1949
|
z(t.$slots, _)
|
|
1929
1950
|
])
|
|
1930
1951
|
]),
|
|
1931
1952
|
_: 2
|
|
1932
1953
|
}, 1032, ["index"]))), 128)),
|
|
1933
|
-
(d(!0), h(x, null, ie(r.value, (_, I) => (d(), $(B(
|
|
1954
|
+
(d(!0), h(x, null, ie(r.value, (_, I) => (d(), $(B(Zt), {
|
|
1934
1955
|
key: t.slide,
|
|
1935
1956
|
index: I
|
|
1936
1957
|
}, {
|
|
1937
1958
|
default: F(() => [
|
|
1938
|
-
J("div",
|
|
1959
|
+
J("div", Hl, [
|
|
1939
1960
|
z(t.$slots, "item", Ee({
|
|
1940
1961
|
[t.slotItemVar || ""]: _,
|
|
1941
1962
|
index: I,
|
|
@@ -1954,12 +1975,12 @@ const ll = /* @__PURE__ */ ae({
|
|
|
1954
1975
|
]),
|
|
1955
1976
|
_: 3
|
|
1956
1977
|
}, 16, ["modelValue"])
|
|
1957
|
-
], 10,
|
|
1978
|
+
], 10, jl)) : A("", !0)
|
|
1958
1979
|
], 512), [
|
|
1959
1980
|
[rt, nt.value]
|
|
1960
1981
|
]),
|
|
1961
|
-
!V.value && r.value.length === 0 ? (d(), h("div",
|
|
1962
|
-
B(l).empty ? z(t.$slots, "empty", { key: 0 }) :
|
|
1982
|
+
!V.value && r.value.length === 0 ? (d(), h("div", xl, [
|
|
1983
|
+
B(l).empty ? z(t.$slots, "empty", { key: 0 }) : ya.value ? (d(), $(Ie(ha.value), {
|
|
1963
1984
|
key: 1,
|
|
1964
1985
|
message: t.noResultsText
|
|
1965
1986
|
}, null, 8, ["message"])) : t.noResultsText ? (d(), h(x, { key: 2 }, [
|
|
@@ -1967,8 +1988,8 @@ const ll = /* @__PURE__ */ ae({
|
|
|
1967
1988
|
], 64)) : A("", !0)
|
|
1968
1989
|
])) : A("", !0),
|
|
1969
1990
|
V.value ? (d(), $(te, { key: 4 })) : A("", !0),
|
|
1970
|
-
gt.value || B(l).bottomButtons ? (d(), h("div",
|
|
1971
|
-
gt.value && r.value.length >= t.requiredItemsForBottomCreate ? (d(), $(
|
|
1991
|
+
gt.value || B(l).bottomButtons ? (d(), h("div", ql, [
|
|
1992
|
+
gt.value && r.value.length >= t.requiredItemsForBottomCreate ? (d(), $(ea, {
|
|
1972
1993
|
key: 0,
|
|
1973
1994
|
config: Te.value,
|
|
1974
1995
|
disabled: !xt.value,
|
|
@@ -1991,25 +2012,25 @@ const ll = /* @__PURE__ */ ae({
|
|
|
1991
2012
|
]),
|
|
1992
2013
|
_: 3
|
|
1993
2014
|
}, 8, ["class"]))
|
|
1994
|
-
], 8,
|
|
2015
|
+
], 8, Bl);
|
|
1995
2016
|
};
|
|
1996
2017
|
}
|
|
1997
|
-
}),
|
|
2018
|
+
}), en = {
|
|
1998
2019
|
install: (e) => {
|
|
1999
|
-
e.component("lkt-table") === void 0 && e.component("lkt-table",
|
|
2020
|
+
e.component("lkt-table") === void 0 && e.component("lkt-table", Gl);
|
|
2000
2021
|
}
|
|
2001
|
-
},
|
|
2022
|
+
}, tn = (e) => (Y.navButtonSlot = e, !0), an = (e) => (Y.dropButtonSlot = e, !0), ln = (e) => (Y.createButtonSlot = e, !0), nn = (e) => {
|
|
2002
2023
|
Y.defaultEmptySlot = e;
|
|
2003
|
-
},
|
|
2024
|
+
}, on = (e) => {
|
|
2004
2025
|
Y.defaultSaveIcon = e;
|
|
2005
2026
|
};
|
|
2006
2027
|
export {
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2028
|
+
sn as Column,
|
|
2029
|
+
dn as createColumn,
|
|
2030
|
+
en as default,
|
|
2031
|
+
ln as setTableCreateButtonSlot,
|
|
2032
|
+
an as setTableDropButtonSlot,
|
|
2033
|
+
nn as setTableEmptySlot,
|
|
2034
|
+
tn as setTableNavButtonSlot,
|
|
2035
|
+
on as setTableSaveIcon
|
|
2015
2036
|
};
|
package/package.json
CHANGED
|
@@ -70,7 +70,7 @@ const Page = ref(props.paginator?.modelValue),
|
|
|
70
70
|
editModeEnabled = ref(props.editMode),
|
|
71
71
|
updateTimeStamp = ref(0),
|
|
72
72
|
sortableContainer = ref(<HTMLElement | null>null),
|
|
73
|
-
currentSlide = ref(
|
|
73
|
+
currentSlide = ref(props.carousel?.currentSlide || 0)
|
|
74
74
|
;
|
|
75
75
|
|
|
76
76
|
const safeSaveButton = ref(ensureButtonConfig(props.saveButton, LktSettings.defaultSaveButton));
|