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