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