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