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