lkt-table 2.0.45 → 2.0.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/build.d.ts +8 -8
- package/dist/build.js +387 -383
- package/package.json +1 -1
- package/src/lib-components/LktTable.vue +18 -4
package/dist/build.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { defineComponent as Se, computed as r, ref as B, shallowReactive as Wt, watch as
|
|
2
|
-
import { __ as
|
|
3
|
-
import { ColumnType as Oe, FieldType as Ze, MultipleOptionsDisplay as
|
|
4
|
-
import { Column as
|
|
5
|
-
import { generateRandomString as
|
|
6
|
-
import { DataState as
|
|
7
|
-
import
|
|
8
|
-
import { date as
|
|
1
|
+
import { defineComponent as Se, computed as r, ref as B, shallowReactive as Wt, watch as U, watchEffect as Ht, onMounted as xt, onBeforeUnmount as ja, reactive as qt, provide as pa, h as Y, useId as za, inject as Ct, getCurrentInstance as Ga, onUnmounted as Ha, onUpdated as qa, cloneVNode as Ka, resolveComponent as he, createBlock as O, createElementBlock as C, unref as b, openBlock as p, mergeProps as X, withCtx as P, createTextVNode as et, toDisplayString as tt, normalizeProps as me, Fragment as H, useSlots as ma, normalizeClass as Z, createCommentVNode as R, createElementVNode as ye, createVNode as ge, resolveDynamicComponent as be, guardReactiveProps as ga, renderSlot as F, renderList as De, mergeDefaults as Xa, nextTick as Lt, withDirectives as Ye, vShow as We, createSlots as Ya, normalizeStyle as ra } from "vue";
|
|
2
|
+
import { __ as Wa } from "lkt-i18n";
|
|
3
|
+
import { ColumnType as Oe, FieldType as Ze, MultipleOptionsDisplay as Ja, SortDirection as at, Column as ya, extractPropValue as Qa, TableRowType as Te, extractI18nValue as ba, LktSettings as Me, ensureButtonConfig as Je, TablePermission as Re, PaginatorType as Qe, TableType as Le, getDefaultValues as Za, Table as xa, ButtonType as Kt } from "lkt-vue-kernel";
|
|
4
|
+
import { Column as Tl, createColumn as Il } from "lkt-vue-kernel";
|
|
5
|
+
import { generateRandomString as en, replaceAll as tn } from "lkt-string-tools";
|
|
6
|
+
import { DataState as an } from "lkt-data-state";
|
|
7
|
+
import nn from "sortablejs";
|
|
8
|
+
import { date as ln, findOldestAndNewestDateInObjects as on, time as rn } 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 ha = ["viewport", "carousel"], Mt = {
|
|
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
|
+
}, ka = [
|
|
20
20
|
"ltr",
|
|
21
21
|
"left-to-right",
|
|
22
22
|
"rtl",
|
|
@@ -25,7 +25,7 @@ const ya = ["viewport", "carousel"], Mt = {
|
|
|
25
25
|
"top-to-bottom",
|
|
26
26
|
"btt",
|
|
27
27
|
"bottom-to-top"
|
|
28
|
-
],
|
|
28
|
+
], un = {
|
|
29
29
|
ariaGallery: "Gallery",
|
|
30
30
|
ariaNavigateToPage: "Navigate to page {slideNumber}",
|
|
31
31
|
ariaNavigateToSlide: "Navigate to slide {slideNumber}",
|
|
@@ -36,21 +36,21 @@ const ya = ["viewport", "carousel"], Mt = {
|
|
|
36
36
|
iconArrowRight: "Arrow pointing to the right",
|
|
37
37
|
iconArrowUp: "Arrow pointing upwards",
|
|
38
38
|
itemXofY: "Item {currentSlide} of {slidesCount}"
|
|
39
|
-
},
|
|
39
|
+
}, Sa = ["slide", "fade"], Ca = [
|
|
40
40
|
"center",
|
|
41
41
|
"start",
|
|
42
42
|
"end",
|
|
43
43
|
"center-even",
|
|
44
44
|
"center-odd"
|
|
45
|
-
],
|
|
45
|
+
], G = {
|
|
46
46
|
autoplay: 0,
|
|
47
|
-
breakpointMode:
|
|
47
|
+
breakpointMode: ha[0],
|
|
48
48
|
breakpoints: void 0,
|
|
49
|
-
dir:
|
|
49
|
+
dir: ka[0],
|
|
50
50
|
enabled: !0,
|
|
51
51
|
gap: 0,
|
|
52
52
|
height: "auto",
|
|
53
|
-
i18n:
|
|
53
|
+
i18n: un,
|
|
54
54
|
ignoreAnimations: !1,
|
|
55
55
|
itemsToScroll: 1,
|
|
56
56
|
itemsToShow: 1,
|
|
@@ -58,12 +58,12 @@ const ya = ["viewport", "carousel"], Mt = {
|
|
|
58
58
|
mouseDrag: !0,
|
|
59
59
|
pauseAutoplayOnHover: !1,
|
|
60
60
|
preventExcessiveDragging: !1,
|
|
61
|
-
slideEffect:
|
|
62
|
-
snapAlign:
|
|
61
|
+
slideEffect: Sa[0],
|
|
62
|
+
snapAlign: Ca[0],
|
|
63
63
|
touchDrag: !0,
|
|
64
64
|
transition: 300,
|
|
65
65
|
wrapAround: !1
|
|
66
|
-
}, nt = Symbol("carousel"),
|
|
66
|
+
}, nt = Symbol("carousel"), sn = (a) => {
|
|
67
67
|
const i = Wt([]), o = (l) => {
|
|
68
68
|
l !== void 0 ? i.slice(l).forEach((n, t) => {
|
|
69
69
|
var y;
|
|
@@ -90,38 +90,38 @@ const ya = ["viewport", "carousel"], Mt = {
|
|
|
90
90
|
}
|
|
91
91
|
};
|
|
92
92
|
};
|
|
93
|
-
function
|
|
93
|
+
function dn(a) {
|
|
94
94
|
return a.length === 0 ? 0 : a.reduce((o, l) => o + l, 0) / a.length;
|
|
95
95
|
}
|
|
96
|
-
function
|
|
96
|
+
function ua({ slides: a, position: i, toShow: o }) {
|
|
97
97
|
const l = [], n = i === "before", t = n ? -o : 0, y = n ? 0 : o;
|
|
98
98
|
if (a.length <= 0)
|
|
99
99
|
return l;
|
|
100
|
-
for (let
|
|
100
|
+
for (let S = t; S < y; S++) {
|
|
101
101
|
const s = {
|
|
102
|
-
index: n ?
|
|
102
|
+
index: n ? S : S + a.length,
|
|
103
103
|
isClone: !0,
|
|
104
104
|
position: i,
|
|
105
105
|
id: void 0,
|
|
106
106
|
// Make sure we don't duplicate the id which would be invalid html
|
|
107
|
-
key: `clone-${i}-${
|
|
108
|
-
}, v = a[(
|
|
107
|
+
key: `clone-${i}-${S}`
|
|
108
|
+
}, v = a[(S % a.length + a.length) % a.length].vnode, T = Ka(v, s);
|
|
109
109
|
T.el = null, l.push(T);
|
|
110
110
|
}
|
|
111
111
|
return l;
|
|
112
112
|
}
|
|
113
|
-
const
|
|
114
|
-
function
|
|
113
|
+
const cn = 'a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"])';
|
|
114
|
+
function sa(a) {
|
|
115
115
|
if (!a.el || !(a.el instanceof Element))
|
|
116
116
|
return;
|
|
117
|
-
const i = a.el.querySelectorAll(
|
|
117
|
+
const i = a.el.querySelectorAll(cn);
|
|
118
118
|
for (const o of i)
|
|
119
119
|
o instanceof HTMLElement && !o.hasAttribute("disabled") && o.getAttribute("aria-hidden") !== "true" && o.setAttribute("tabindex", "-1");
|
|
120
120
|
}
|
|
121
|
-
function
|
|
121
|
+
function vn(a, i) {
|
|
122
122
|
return Object.keys(a).filter((o) => !i.includes(o)).reduce((o, l) => (o[l] = a[l], o), {});
|
|
123
123
|
}
|
|
124
|
-
function
|
|
124
|
+
function fn(a) {
|
|
125
125
|
const { isVertical: i, isReversed: o, dragged: l, effectiveSlideSize: n } = a, t = i ? l.y : l.x;
|
|
126
126
|
if (t === 0)
|
|
127
127
|
return 0;
|
|
@@ -131,18 +131,18 @@ function cn(a) {
|
|
|
131
131
|
function Ne({ val: a, max: i, min: o }) {
|
|
132
132
|
return i < o ? a : Math.min(Math.max(a, isNaN(o) ? a : o), isNaN(i) ? a : i);
|
|
133
133
|
}
|
|
134
|
-
function
|
|
134
|
+
function pn(a) {
|
|
135
135
|
const { transform: i } = window.getComputedStyle(a);
|
|
136
136
|
return i.split(/[(,)]/).slice(1, -1).map((o) => parseFloat(o));
|
|
137
137
|
}
|
|
138
|
-
function
|
|
138
|
+
function mn(a) {
|
|
139
139
|
let i = 1, o = 1;
|
|
140
140
|
return a.forEach((l) => {
|
|
141
|
-
const n =
|
|
141
|
+
const n = pn(l);
|
|
142
142
|
n.length === 6 && (i /= n[0], o /= n[3]);
|
|
143
143
|
}), { widthMultiplier: i, heightMultiplier: o };
|
|
144
144
|
}
|
|
145
|
-
function
|
|
145
|
+
function gn(a, i) {
|
|
146
146
|
switch (a) {
|
|
147
147
|
case "start":
|
|
148
148
|
return 0;
|
|
@@ -157,7 +157,7 @@ function pn(a, i) {
|
|
|
157
157
|
return 0;
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
|
-
function
|
|
160
|
+
function yn(a, i, o) {
|
|
161
161
|
switch (a) {
|
|
162
162
|
case "start":
|
|
163
163
|
return 0;
|
|
@@ -173,12 +173,12 @@ function mn(a, i, o) {
|
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
175
|
function Jt({ slideSize: a, viewportSize: i, align: o, itemsToShow: l }) {
|
|
176
|
-
return l !== void 0 ?
|
|
176
|
+
return l !== void 0 ? gn(o, l) : a !== void 0 && i !== void 0 ? yn(o, a, i) : 0;
|
|
177
177
|
}
|
|
178
|
-
function
|
|
178
|
+
function wa(a = "", i = {}) {
|
|
179
179
|
return Object.entries(i).reduce((o, [l, n]) => o.replace(`{${l}}`, String(n)), a);
|
|
180
180
|
}
|
|
181
|
-
function
|
|
181
|
+
function Da({ val: a, max: i, min: o = 0 }) {
|
|
182
182
|
const l = i - o + 1;
|
|
183
183
|
return ((a - o) % l + l) % l + o;
|
|
184
184
|
}
|
|
@@ -188,12 +188,12 @@ function Xt(a, i = 0) {
|
|
|
188
188
|
if (o)
|
|
189
189
|
return;
|
|
190
190
|
o = !0;
|
|
191
|
-
const
|
|
191
|
+
const S = () => {
|
|
192
192
|
n = requestAnimationFrame((D) => {
|
|
193
|
-
D - l > i ? (l = D, a(...y), o = !1) :
|
|
193
|
+
D - l > i ? (l = D, a(...y), o = !1) : S();
|
|
194
194
|
});
|
|
195
195
|
};
|
|
196
|
-
|
|
196
|
+
S();
|
|
197
197
|
}
|
|
198
198
|
return t.cancel = () => {
|
|
199
199
|
n && (cancelAnimationFrame(n), n = null, o = !1);
|
|
@@ -203,7 +203,7 @@ function Nt(a, i = "px") {
|
|
|
203
203
|
if (!(a == null || a === ""))
|
|
204
204
|
return typeof a == "number" || parseFloat(a).toString() === a ? `${a}${i}` : a;
|
|
205
205
|
}
|
|
206
|
-
const
|
|
206
|
+
const bn = Se({
|
|
207
207
|
name: "CarouselAria",
|
|
208
208
|
setup() {
|
|
209
209
|
const a = Ct(nt);
|
|
@@ -211,42 +211,42 @@ const gn = Se({
|
|
|
211
211
|
class: ["carousel__liveregion", "carousel__sr-only"],
|
|
212
212
|
"aria-live": "polite",
|
|
213
213
|
"aria-atomic": "true"
|
|
214
|
-
},
|
|
214
|
+
}, wa(a.config.i18n.itemXofY, {
|
|
215
215
|
currentSlide: a.currentSlide + 1,
|
|
216
216
|
slidesCount: a.slidesCount
|
|
217
217
|
})) : () => "";
|
|
218
218
|
}
|
|
219
|
-
}),
|
|
219
|
+
}), hn = {
|
|
220
220
|
// time to auto advance slides in ms
|
|
221
221
|
autoplay: {
|
|
222
|
-
default:
|
|
222
|
+
default: G.autoplay,
|
|
223
223
|
type: Number
|
|
224
224
|
},
|
|
225
225
|
// an object to store breakpoints
|
|
226
226
|
breakpoints: {
|
|
227
|
-
default:
|
|
227
|
+
default: G.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: G.breakpointMode,
|
|
233
233
|
validator(a) {
|
|
234
|
-
return
|
|
234
|
+
return ha.includes(a);
|
|
235
235
|
}
|
|
236
236
|
},
|
|
237
237
|
// enable/disable the carousel component
|
|
238
238
|
enabled: {
|
|
239
|
-
default:
|
|
239
|
+
default: G.enabled,
|
|
240
240
|
type: Boolean
|
|
241
241
|
},
|
|
242
242
|
// control the gap between slides
|
|
243
243
|
gap: {
|
|
244
|
-
default:
|
|
244
|
+
default: G.gap,
|
|
245
245
|
type: Number
|
|
246
246
|
},
|
|
247
247
|
// control the gap between slides
|
|
248
248
|
height: {
|
|
249
|
-
default:
|
|
249
|
+
default: G.height,
|
|
250
250
|
type: [Number, String]
|
|
251
251
|
},
|
|
252
252
|
ignoreAnimations: {
|
|
@@ -255,17 +255,17 @@ const gn = Se({
|
|
|
255
255
|
},
|
|
256
256
|
// count of items to be scrolled
|
|
257
257
|
itemsToScroll: {
|
|
258
|
-
default:
|
|
258
|
+
default: G.itemsToScroll,
|
|
259
259
|
type: Number
|
|
260
260
|
},
|
|
261
261
|
// count of items to showed per view
|
|
262
262
|
itemsToShow: {
|
|
263
|
-
default:
|
|
263
|
+
default: G.itemsToShow,
|
|
264
264
|
type: [Number, String]
|
|
265
265
|
},
|
|
266
266
|
// aria-labels and additional text labels
|
|
267
267
|
i18n: {
|
|
268
|
-
default:
|
|
268
|
+
default: G.i18n,
|
|
269
269
|
type: Object
|
|
270
270
|
},
|
|
271
271
|
// slide number number of initial slide
|
|
@@ -275,16 +275,16 @@ const gn = Se({
|
|
|
275
275
|
},
|
|
276
276
|
// toggle mouse dragging.
|
|
277
277
|
mouseDrag: {
|
|
278
|
-
default:
|
|
278
|
+
default: G.mouseDrag,
|
|
279
279
|
type: Boolean
|
|
280
280
|
},
|
|
281
281
|
// toggle mouse dragging.
|
|
282
282
|
touchDrag: {
|
|
283
|
-
default:
|
|
283
|
+
default: G.touchDrag,
|
|
284
284
|
type: Boolean
|
|
285
285
|
},
|
|
286
286
|
pauseAutoplayOnHover: {
|
|
287
|
-
default:
|
|
287
|
+
default: G.pauseAutoplayOnHover,
|
|
288
288
|
type: Boolean
|
|
289
289
|
},
|
|
290
290
|
preventExcessiveDragging: {
|
|
@@ -296,29 +296,29 @@ const gn = Se({
|
|
|
296
296
|
},
|
|
297
297
|
// control snap position alignment
|
|
298
298
|
snapAlign: {
|
|
299
|
-
default:
|
|
299
|
+
default: G.snapAlign,
|
|
300
300
|
validator(a) {
|
|
301
|
-
return
|
|
301
|
+
return Ca.includes(a);
|
|
302
302
|
}
|
|
303
303
|
},
|
|
304
304
|
slideEffect: {
|
|
305
305
|
type: String,
|
|
306
|
-
default:
|
|
306
|
+
default: G.slideEffect,
|
|
307
307
|
validator(a) {
|
|
308
|
-
return
|
|
308
|
+
return Sa.includes(a);
|
|
309
309
|
}
|
|
310
310
|
},
|
|
311
311
|
// sliding transition time in ms
|
|
312
312
|
transition: {
|
|
313
|
-
default:
|
|
313
|
+
default: G.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: G.dir,
|
|
320
320
|
validator(a, i) {
|
|
321
|
-
if (!
|
|
321
|
+
if (!ka.includes(a))
|
|
322
322
|
return !1;
|
|
323
323
|
const o = a in Mt ? Mt[a] : a;
|
|
324
324
|
return ["ttb", "btt"].includes(o) && (!i.height || i.height === "auto") && console.warn(`[vue3-carousel warn]: The dir "${a}" is not supported with height "auto".`), !0;
|
|
@@ -326,12 +326,12 @@ const gn = Se({
|
|
|
326
326
|
},
|
|
327
327
|
// control infinite scrolling mode
|
|
328
328
|
wrapAround: {
|
|
329
|
-
default:
|
|
329
|
+
default: G.wrapAround,
|
|
330
330
|
type: Boolean
|
|
331
331
|
}
|
|
332
|
-
},
|
|
332
|
+
}, kn = Se({
|
|
333
333
|
name: "VueCarousel",
|
|
334
|
-
props:
|
|
334
|
+
props: hn,
|
|
335
335
|
emits: [
|
|
336
336
|
"before-init",
|
|
337
337
|
"drag",
|
|
@@ -345,31 +345,31 @@ const gn = Se({
|
|
|
345
345
|
],
|
|
346
346
|
setup(a, { slots: i, emit: o, expose: l }) {
|
|
347
347
|
var n;
|
|
348
|
-
const t =
|
|
349
|
-
|
|
350
|
-
const A = B(0), lt = r(() => Math.ceil((
|
|
348
|
+
const t = sn(o), y = t.getSlides(), S = r(() => y.length), D = B(null), s = B(null), v = B(0), T = r(() => Object.assign(Object.assign(Object.assign({}, G), vn(a, ["breakpoints", "modelValue"])), { i18n: Object.assign(Object.assign({}, G.i18n), a.i18n) })), f = Wt(Object.assign({}, T.value)), g = B((n = a.modelValue) !== null && n !== void 0 ? n : 0), V = B(g.value);
|
|
349
|
+
U(g, (d) => V.value = d);
|
|
350
|
+
const A = B(0), lt = r(() => Math.ceil((S.value - 1) / 2)), ie = r(() => S.value - 1), re = r(() => 0);
|
|
351
351
|
let te = null, c = null, I = null;
|
|
352
|
-
const ue = r(() => v.value + f.gap),
|
|
352
|
+
const ue = r(() => v.value + f.gap), j = r(() => {
|
|
353
353
|
const d = f.dir || "ltr";
|
|
354
354
|
return d in Mt ? Mt[d] : d;
|
|
355
|
-
}), ne = r(() => ["rtl", "btt"].includes(
|
|
355
|
+
}), ne = r(() => ["rtl", "btt"].includes(j.value)), se = r(() => ["ttb", "btt"].includes(j.value)), de = r(() => f.itemsToShow === "auto"), q = r(() => se.value ? "height" : "width");
|
|
356
356
|
function $e() {
|
|
357
357
|
var d;
|
|
358
358
|
if (!it.value)
|
|
359
359
|
return;
|
|
360
|
-
const
|
|
361
|
-
w.some((L) =>
|
|
360
|
+
const k = (T.value.breakpointMode === "carousel" ? (d = D.value) === null || d === void 0 ? void 0 : d.getBoundingClientRect().width : typeof window < "u" ? window.innerWidth : 0) || 0, w = Object.keys(a.breakpoints || {}).map((L) => Number(L)).sort((L, K) => +K - +L), E = {};
|
|
361
|
+
w.some((L) => k >= L ? (Object.assign(E, a.breakpoints[L]), E.i18n && Object.assign(E.i18n, T.value.i18n, a.breakpoints[L].i18n), !0) : !1), Object.assign(f, T.value, E);
|
|
362
362
|
}
|
|
363
363
|
const x = Xt(() => {
|
|
364
364
|
$e(), ot(), Ce();
|
|
365
365
|
}), Ie = Wt(/* @__PURE__ */ new Set()), W = B([]);
|
|
366
|
-
function Ot({ widthMultiplier: d, heightMultiplier:
|
|
366
|
+
function Ot({ widthMultiplier: d, heightMultiplier: k }) {
|
|
367
367
|
W.value = y.map((w) => {
|
|
368
368
|
var E;
|
|
369
369
|
const L = (E = w.exposed) === null || E === void 0 ? void 0 : E.getBoundingRect();
|
|
370
370
|
return {
|
|
371
371
|
width: L.width * d,
|
|
372
|
-
height: L.height *
|
|
372
|
+
height: L.height * k
|
|
373
373
|
};
|
|
374
374
|
});
|
|
375
375
|
}
|
|
@@ -377,33 +377,33 @@ const gn = Se({
|
|
|
377
377
|
width: 0,
|
|
378
378
|
height: 0
|
|
379
379
|
});
|
|
380
|
-
function $t({ widthMultiplier: d, heightMultiplier:
|
|
380
|
+
function $t({ widthMultiplier: d, heightMultiplier: k }) {
|
|
381
381
|
var w;
|
|
382
382
|
const E = ((w = s.value) === null || w === void 0 ? void 0 : w.getBoundingClientRect()) || { width: 0, height: 0 };
|
|
383
383
|
oe.value = {
|
|
384
384
|
width: E.width * d,
|
|
385
|
-
height: E.height *
|
|
385
|
+
height: E.height * k
|
|
386
386
|
};
|
|
387
387
|
}
|
|
388
388
|
function Ce() {
|
|
389
389
|
if (!s.value)
|
|
390
390
|
return;
|
|
391
|
-
const d =
|
|
391
|
+
const d = mn(Ie);
|
|
392
392
|
if ($t(d), Ot(d), de.value)
|
|
393
|
-
v.value =
|
|
393
|
+
v.value = dn(W.value.map((k) => k[q.value]));
|
|
394
394
|
else {
|
|
395
|
-
const
|
|
396
|
-
v.value = (oe.value[
|
|
395
|
+
const k = Number(f.itemsToShow), w = (k - 1) * f.gap;
|
|
396
|
+
v.value = (oe.value[q.value] - w) / k;
|
|
397
397
|
}
|
|
398
398
|
}
|
|
399
399
|
function ot() {
|
|
400
|
-
!f.wrapAround &&
|
|
400
|
+
!f.wrapAround && S.value > 0 && (g.value = Ne({
|
|
401
401
|
val: g.value,
|
|
402
402
|
max: ie.value,
|
|
403
403
|
min: re.value
|
|
404
404
|
})), de.value || (f.itemsToShow = Ne({
|
|
405
405
|
val: Number(f.itemsToShow),
|
|
406
|
-
max:
|
|
406
|
+
max: S.value,
|
|
407
407
|
min: 1
|
|
408
408
|
}));
|
|
409
409
|
}
|
|
@@ -413,8 +413,8 @@ const gn = Se({
|
|
|
413
413
|
});
|
|
414
414
|
let ee;
|
|
415
415
|
const vt = (d) => {
|
|
416
|
-
const
|
|
417
|
-
if (!(!(
|
|
416
|
+
const k = d.target;
|
|
417
|
+
if (!(!(k != null && k.contains(D.value)) || Array.isArray(ct.value) && ct.value.includes(d.animationName)) && (Ie.add(k), !ee)) {
|
|
418
418
|
const w = () => {
|
|
419
419
|
ee = requestAnimationFrame(() => {
|
|
420
420
|
Ce(), w();
|
|
@@ -423,14 +423,14 @@ const gn = Se({
|
|
|
423
423
|
w();
|
|
424
424
|
}
|
|
425
425
|
}, Fe = (d) => {
|
|
426
|
-
const
|
|
427
|
-
|
|
426
|
+
const k = d.target;
|
|
427
|
+
k && Ie.delete(k), ee && Ie.size === 0 && (cancelAnimationFrame(ee), Ce());
|
|
428
428
|
}, it = B(!1);
|
|
429
429
|
typeof document < "u" && Ht(() => {
|
|
430
430
|
it.value && ct.value !== !1 ? (document.addEventListener("animationstart", vt), document.addEventListener("animationend", Fe)) : (document.removeEventListener("animationstart", vt), document.removeEventListener("animationend", Fe));
|
|
431
431
|
}), xt(() => {
|
|
432
432
|
it.value = !0, $e(), _e(), D.value && (I = new ResizeObserver(x), I.observe(D.value)), o("init");
|
|
433
|
-
}),
|
|
433
|
+
}), ja(() => {
|
|
434
434
|
it.value = !1, t.cleanup(), c && clearTimeout(c), ee && cancelAnimationFrame(ee), te && clearInterval(te), I && (I.disconnect(), I = null), typeof document < "u" && wt(), D.value && (D.value.removeEventListener("transitionend", Ce), D.value.removeEventListener("animationiteration", Ce));
|
|
435
435
|
});
|
|
436
436
|
let Be = !1;
|
|
@@ -456,8 +456,8 @@ const gn = Se({
|
|
|
456
456
|
document.removeEventListener("keydown", pt);
|
|
457
457
|
};
|
|
458
458
|
function ut(d) {
|
|
459
|
-
const
|
|
460
|
-
if (["INPUT", "TEXTAREA", "SELECT"].includes(
|
|
459
|
+
const k = d.target.tagName;
|
|
460
|
+
if (["INPUT", "TEXTAREA", "SELECT"].includes(k) || fe.value || (Be = d.type === "touchstart", !Be && (d.preventDefault(), d.button !== 0)))
|
|
461
461
|
return;
|
|
462
462
|
rt.x = "touches" in d ? d.touches[0].clientX : d.clientX, rt.y = "touches" in d ? d.touches[0].clientY : d.clientY;
|
|
463
463
|
const w = Be ? "touchmove" : "mousemove", E = Be ? "touchend" : "mouseup";
|
|
@@ -465,9 +465,9 @@ const gn = Se({
|
|
|
465
465
|
}
|
|
466
466
|
const st = Xt((d) => {
|
|
467
467
|
ft.value = !0;
|
|
468
|
-
const
|
|
469
|
-
ce.x =
|
|
470
|
-
const E =
|
|
468
|
+
const k = "touches" in d ? d.touches[0].clientX : d.clientX, w = "touches" in d ? d.touches[0].clientY : d.clientY;
|
|
469
|
+
ce.x = k - rt.x, ce.y = w - rt.y;
|
|
470
|
+
const E = fn({
|
|
471
471
|
isVertical: se.value,
|
|
472
472
|
isReversed: ne.value,
|
|
473
473
|
dragged: ce,
|
|
@@ -487,8 +487,8 @@ const gn = Se({
|
|
|
487
487
|
window.addEventListener("click", w);
|
|
488
488
|
}
|
|
489
489
|
Ue(V.value), ce.x = 0, ce.y = 0, ft.value = !1;
|
|
490
|
-
const d = Be ? "touchmove" : "mousemove",
|
|
491
|
-
document.removeEventListener(d, st), document.removeEventListener(
|
|
490
|
+
const d = Be ? "touchmove" : "mousemove", k = Be ? "touchend" : "mouseup";
|
|
491
|
+
document.removeEventListener(d, st), document.removeEventListener(k, ve);
|
|
492
492
|
}
|
|
493
493
|
function _e() {
|
|
494
494
|
!f.autoplay || f.autoplay <= 0 || (te = setInterval(() => {
|
|
@@ -502,11 +502,11 @@ const gn = Se({
|
|
|
502
502
|
ae(), _e();
|
|
503
503
|
}
|
|
504
504
|
const fe = B(!1);
|
|
505
|
-
function Ue(d,
|
|
506
|
-
if (!
|
|
505
|
+
function Ue(d, k = !1) {
|
|
506
|
+
if (!k && fe.value)
|
|
507
507
|
return;
|
|
508
508
|
let w = d, E = d;
|
|
509
|
-
A.value = g.value, f.wrapAround ? E =
|
|
509
|
+
A.value = g.value, f.wrapAround ? E = Da({
|
|
510
510
|
val: w,
|
|
511
511
|
max: ie.value,
|
|
512
512
|
min: re.value
|
|
@@ -518,7 +518,7 @@ const gn = Se({
|
|
|
518
518
|
slidingToIndex: d,
|
|
519
519
|
currentSlideIndex: g.value,
|
|
520
520
|
prevSlideIndex: A.value,
|
|
521
|
-
slidesCount:
|
|
521
|
+
slidesCount: S.value
|
|
522
522
|
}), ae(), fe.value = !0, g.value = w, E !== w && Dt.pause(), o("update:modelValue", E), c = setTimeout(() => {
|
|
523
523
|
f.wrapAround && E !== w && (Dt.resume(), g.value = E, o("loop", {
|
|
524
524
|
currentSlideIndex: g.value,
|
|
@@ -526,7 +526,7 @@ const gn = Se({
|
|
|
526
526
|
})), o("slide-end", {
|
|
527
527
|
currentSlideIndex: g.value,
|
|
528
528
|
prevSlideIndex: A.value,
|
|
529
|
-
slidesCount:
|
|
529
|
+
slidesCount: S.value
|
|
530
530
|
}), fe.value = !1, mt();
|
|
531
531
|
}, f.transition);
|
|
532
532
|
}
|
|
@@ -539,8 +539,8 @@ const gn = Se({
|
|
|
539
539
|
function le() {
|
|
540
540
|
$e(), ot(), Ce(), mt();
|
|
541
541
|
}
|
|
542
|
-
|
|
543
|
-
const Dt =
|
|
542
|
+
U(() => [T.value, a.breakpoints], () => $e(), { deep: !0 }), U(() => a.autoplay, () => mt());
|
|
543
|
+
const Dt = U(() => a.modelValue, (d) => {
|
|
544
544
|
d !== g.value && Ue(Number(d), !0);
|
|
545
545
|
});
|
|
546
546
|
o("before-init");
|
|
@@ -549,18 +549,18 @@ const gn = Se({
|
|
|
549
549
|
return { before: 0, after: 0 };
|
|
550
550
|
if (de.value)
|
|
551
551
|
return { before: y.length, after: y.length };
|
|
552
|
-
const d = Number(f.itemsToShow),
|
|
552
|
+
const d = Number(f.itemsToShow), k = Math.ceil(d + (f.itemsToScroll - 1)), w = k - V.value, E = k - (S.value - (V.value + 1));
|
|
553
553
|
return {
|
|
554
554
|
before: Math.max(0, w),
|
|
555
555
|
after: Math.max(0, E)
|
|
556
556
|
};
|
|
557
|
-
}), gt = r(() => Ee.value.before ? de.value ? W.value.slice(-1 * Ee.value.before).reduce((d,
|
|
557
|
+
}), gt = r(() => Ee.value.before ? de.value ? W.value.slice(-1 * Ee.value.before).reduce((d, k) => d + k[q.value] + f.gap, 0) * -1 : Ee.value.before * ue.value * -1 : 0), Ae = r(() => {
|
|
558
558
|
var d;
|
|
559
559
|
if (de.value) {
|
|
560
|
-
const
|
|
560
|
+
const k = (g.value % y.length + y.length) % y.length;
|
|
561
561
|
return Jt({
|
|
562
|
-
slideSize: (d = W.value[
|
|
563
|
-
viewportSize: oe.value[
|
|
562
|
+
slideSize: (d = W.value[k]) === null || d === void 0 ? void 0 : d[q.value],
|
|
563
|
+
viewportSize: oe.value[q.value],
|
|
564
564
|
align: f.snapAlign
|
|
565
565
|
});
|
|
566
566
|
}
|
|
@@ -571,25 +571,25 @@ const gn = Se({
|
|
|
571
571
|
}), ze = r(() => {
|
|
572
572
|
let d = 0;
|
|
573
573
|
if (de.value) {
|
|
574
|
-
if (g.value < 0 ? d = W.value.slice(g.value).reduce((
|
|
575
|
-
const
|
|
574
|
+
if (g.value < 0 ? d = W.value.slice(g.value).reduce((k, w) => k + w[q.value] + f.gap, 0) * -1 : d = W.value.slice(0, g.value).reduce((k, w) => k + w[q.value] + f.gap, 0), d -= Ae.value, !f.wrapAround) {
|
|
575
|
+
const k = W.value.reduce((w, E) => w + E[q.value] + f.gap, 0) - oe.value[q.value] - f.gap;
|
|
576
576
|
d = Ne({
|
|
577
577
|
val: d,
|
|
578
|
-
max:
|
|
578
|
+
max: k,
|
|
579
579
|
min: 0
|
|
580
580
|
});
|
|
581
581
|
}
|
|
582
582
|
} else {
|
|
583
|
-
let
|
|
584
|
-
f.wrapAround || (
|
|
585
|
-
val:
|
|
586
|
-
max:
|
|
583
|
+
let k = g.value - Ae.value;
|
|
584
|
+
f.wrapAround || (k = Ne({
|
|
585
|
+
val: k,
|
|
586
|
+
max: S.value - +f.itemsToShow,
|
|
587
587
|
min: 0
|
|
588
|
-
})), d =
|
|
588
|
+
})), d = k * ue.value;
|
|
589
589
|
}
|
|
590
590
|
return d * (ne.value ? 1 : -1);
|
|
591
591
|
}), Tt = r(() => {
|
|
592
|
-
var d,
|
|
592
|
+
var d, k;
|
|
593
593
|
if (!de.value) {
|
|
594
594
|
const L = g.value - Ae.value;
|
|
595
595
|
return f.wrapAround ? {
|
|
@@ -598,32 +598,32 @@ const gn = Se({
|
|
|
598
598
|
} : {
|
|
599
599
|
min: Math.floor(Ne({
|
|
600
600
|
val: L,
|
|
601
|
-
max:
|
|
601
|
+
max: S.value - Number(f.itemsToShow),
|
|
602
602
|
min: 0
|
|
603
603
|
})),
|
|
604
604
|
max: Math.ceil(Ne({
|
|
605
605
|
val: L + Number(f.itemsToShow) - 1,
|
|
606
|
-
max:
|
|
606
|
+
max: S.value - 1,
|
|
607
607
|
min: 0
|
|
608
608
|
}))
|
|
609
609
|
};
|
|
610
610
|
}
|
|
611
611
|
let w = 0;
|
|
612
612
|
{
|
|
613
|
-
let L = 0,
|
|
613
|
+
let L = 0, K = 0 - Ee.value.before;
|
|
614
614
|
const J = Math.abs(ze.value + gt.value);
|
|
615
615
|
for (; L <= J; ) {
|
|
616
|
-
const Q = (
|
|
617
|
-
L += ((d = W.value[Q]) === null || d === void 0 ? void 0 : d[
|
|
616
|
+
const Q = (K % y.length + y.length) % y.length;
|
|
617
|
+
L += ((d = W.value[Q]) === null || d === void 0 ? void 0 : d[q.value]) + f.gap, K++;
|
|
618
618
|
}
|
|
619
|
-
w =
|
|
619
|
+
w = K - 1;
|
|
620
620
|
}
|
|
621
621
|
let E = 0;
|
|
622
622
|
{
|
|
623
|
-
let L = w,
|
|
624
|
-
for (L < 0 ?
|
|
623
|
+
let L = w, K = 0;
|
|
624
|
+
for (L < 0 ? K = W.value.slice(0, L).reduce((J, Q) => J + Q[q.value] + f.gap, 0) - Math.abs(ze.value + gt.value) : K = W.value.slice(0, L).reduce((J, Q) => J + Q[q.value] + f.gap, 0) - Math.abs(ze.value); K < oe.value[q.value]; ) {
|
|
625
625
|
const J = (L % y.length + y.length) % y.length;
|
|
626
|
-
|
|
626
|
+
K += ((k = W.value[J]) === null || k === void 0 ? void 0 : k[q.value]) + f.gap, L++;
|
|
627
627
|
}
|
|
628
628
|
E = L - 1;
|
|
629
629
|
}
|
|
@@ -634,16 +634,16 @@ const gn = Se({
|
|
|
634
634
|
}), It = r(() => {
|
|
635
635
|
if (f.slideEffect === "fade")
|
|
636
636
|
return;
|
|
637
|
-
const d = se.value ? "Y" : "X",
|
|
638
|
-
let w = ze.value +
|
|
637
|
+
const d = se.value ? "Y" : "X", k = se.value ? ce.y : ce.x;
|
|
638
|
+
let w = ze.value + k;
|
|
639
639
|
if (!f.wrapAround && f.preventExcessiveDragging) {
|
|
640
640
|
let E = 0;
|
|
641
|
-
de.value ? E = W.value.reduce((J, Q) => J + Q[
|
|
642
|
-
const L = ne.value ? 0 : -1 * E,
|
|
641
|
+
de.value ? E = W.value.reduce((J, Q) => J + Q[q.value], 0) : E = (S.value - Number(f.itemsToShow)) * ue.value;
|
|
642
|
+
const L = ne.value ? 0 : -1 * E, K = ne.value ? E : 0;
|
|
643
643
|
w = Ne({
|
|
644
644
|
val: w,
|
|
645
645
|
min: L,
|
|
646
|
-
max:
|
|
646
|
+
max: K
|
|
647
647
|
});
|
|
648
648
|
}
|
|
649
649
|
return `translate${d}(${w}px)`;
|
|
@@ -661,15 +661,15 @@ const gn = Se({
|
|
|
661
661
|
maxSlide: ie,
|
|
662
662
|
minSlide: re,
|
|
663
663
|
nav: pe,
|
|
664
|
-
normalizedDir:
|
|
664
|
+
normalizedDir: j,
|
|
665
665
|
slideRegistry: t,
|
|
666
666
|
slideSize: v,
|
|
667
667
|
slides: y,
|
|
668
|
-
slidesCount:
|
|
668
|
+
slidesCount: S,
|
|
669
669
|
viewport: s,
|
|
670
670
|
visibleRange: Tt
|
|
671
671
|
});
|
|
672
|
-
|
|
672
|
+
pa(nt, Ut);
|
|
673
673
|
const yt = qt({
|
|
674
674
|
config: f,
|
|
675
675
|
currentSlide: g,
|
|
@@ -677,7 +677,7 @@ const gn = Se({
|
|
|
677
677
|
middleSlide: lt,
|
|
678
678
|
minSlide: re,
|
|
679
679
|
slideSize: v,
|
|
680
|
-
slidesCount:
|
|
680
|
+
slidesCount: S
|
|
681
681
|
});
|
|
682
682
|
return l({
|
|
683
683
|
data: yt,
|
|
@@ -691,15 +691,15 @@ const gn = Se({
|
|
|
691
691
|
updateSlidesData: ot
|
|
692
692
|
}), () => {
|
|
693
693
|
var d;
|
|
694
|
-
const
|
|
694
|
+
const k = i.default || i.slides, w = (k == null ? void 0 : k(yt)) || [], { before: E, after: L } = Ee.value, K = ua({
|
|
695
695
|
slides: y,
|
|
696
696
|
position: "before",
|
|
697
697
|
toShow: E
|
|
698
|
-
}), J =
|
|
698
|
+
}), J = ua({
|
|
699
699
|
slides: y,
|
|
700
700
|
position: "after",
|
|
701
701
|
toShow: L
|
|
702
|
-
}), Q = [...
|
|
702
|
+
}), Q = [...K, ...w, ...J];
|
|
703
703
|
if (!f.enabled || !Q.length)
|
|
704
704
|
return Y("section", {
|
|
705
705
|
ref: D,
|
|
@@ -715,7 +715,7 @@ const gn = Se({
|
|
|
715
715
|
ref: D,
|
|
716
716
|
class: [
|
|
717
717
|
"carousel",
|
|
718
|
-
`is-${
|
|
718
|
+
`is-${j.value}`,
|
|
719
719
|
`is-effect-${f.slideEffect}`,
|
|
720
720
|
{
|
|
721
721
|
"is-vertical": se.value,
|
|
@@ -724,7 +724,7 @@ const gn = Se({
|
|
|
724
724
|
"is-hover": Pe.value
|
|
725
725
|
}
|
|
726
726
|
],
|
|
727
|
-
dir:
|
|
727
|
+
dir: j.value,
|
|
728
728
|
style: _t.value,
|
|
729
729
|
"aria-label": f.i18n.ariaGallery,
|
|
730
730
|
tabindex: "0",
|
|
@@ -732,7 +732,7 @@ const gn = Se({
|
|
|
732
732
|
onBlur: wt,
|
|
733
733
|
onMouseenter: He,
|
|
734
734
|
onMouseleave: Ft
|
|
735
|
-
}, [jt, Bt, Y(
|
|
735
|
+
}, [jt, Bt, Y(bn)]);
|
|
736
736
|
};
|
|
737
737
|
}
|
|
738
738
|
});
|
|
@@ -740,34 +740,34 @@ var Qt;
|
|
|
740
740
|
(function(a) {
|
|
741
741
|
a.arrowDown = "arrowDown", a.arrowLeft = "arrowLeft", a.arrowRight = "arrowRight", a.arrowUp = "arrowUp";
|
|
742
742
|
})(Qt || (Qt = {}));
|
|
743
|
-
const
|
|
743
|
+
const da = (a) => `icon${a.charAt(0).toUpperCase() + a.slice(1)}`, Sn = {
|
|
744
744
|
arrowDown: "M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z",
|
|
745
745
|
arrowLeft: "M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z",
|
|
746
746
|
arrowRight: "M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z",
|
|
747
747
|
arrowUp: "M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"
|
|
748
748
|
};
|
|
749
|
-
function
|
|
749
|
+
function Cn(a) {
|
|
750
750
|
return a in Qt;
|
|
751
751
|
}
|
|
752
|
-
const
|
|
752
|
+
const ca = (a) => a && Cn(a), va = Se({
|
|
753
753
|
props: {
|
|
754
754
|
name: {
|
|
755
755
|
type: String,
|
|
756
756
|
required: !0,
|
|
757
|
-
validator:
|
|
757
|
+
validator: ca
|
|
758
758
|
},
|
|
759
759
|
title: {
|
|
760
760
|
type: String,
|
|
761
|
-
default: (a) => a.name ?
|
|
761
|
+
default: (a) => a.name ? G.i18n[da(a.name)] : ""
|
|
762
762
|
}
|
|
763
763
|
},
|
|
764
764
|
setup(a) {
|
|
765
765
|
const i = Ct(nt, null);
|
|
766
766
|
return () => {
|
|
767
767
|
const o = a.name;
|
|
768
|
-
if (!o || !
|
|
768
|
+
if (!o || !ca(o))
|
|
769
769
|
return;
|
|
770
|
-
const l =
|
|
770
|
+
const l = Sn[o], n = Y("path", { d: l }), t = (i == null ? void 0 : i.config.i18n[da(o)]) || a.title, y = Y("title", t);
|
|
771
771
|
return Y("svg", {
|
|
772
772
|
class: "carousel__icon",
|
|
773
773
|
viewBox: "0 0 24 24",
|
|
@@ -776,7 +776,7 @@ const sa = (a) => a && kn(a), da = Se({
|
|
|
776
776
|
}, [y, n]);
|
|
777
777
|
};
|
|
778
778
|
}
|
|
779
|
-
}),
|
|
779
|
+
}), wn = Se({
|
|
780
780
|
name: "CarouselNavigation",
|
|
781
781
|
inheritAttrs: !1,
|
|
782
782
|
setup(a, { slots: i, attrs: o }) {
|
|
@@ -788,7 +788,7 @@ const sa = (a) => a && kn(a), da = Se({
|
|
|
788
788
|
ltr: "arrowLeft",
|
|
789
789
|
rtl: "arrowRight",
|
|
790
790
|
ttb: "arrowUp"
|
|
791
|
-
})[l.normalizedDir],
|
|
791
|
+
})[l.normalizedDir], S = () => ({
|
|
792
792
|
btt: "arrowUp",
|
|
793
793
|
ltr: "arrowRight",
|
|
794
794
|
rtl: "arrowLeft",
|
|
@@ -799,15 +799,15 @@ const sa = (a) => a && kn(a), da = Se({
|
|
|
799
799
|
"carousel__prev",
|
|
800
800
|
{ "carousel__prev--disabled": D.value },
|
|
801
801
|
o.class
|
|
802
|
-
] }), (t == null ? void 0 : t()) || Y(
|
|
802
|
+
] }), (t == null ? void 0 : t()) || Y(va, { name: y() })), f = Y("button", Object.assign(Object.assign({ type: "button", disabled: s.value, "aria-label": v.ariaNextSlide, title: v.ariaNextSlide, onClick: l.nav.next }, o), { class: [
|
|
803
803
|
"carousel__next",
|
|
804
804
|
{ "carousel__next--disabled": s.value },
|
|
805
805
|
o.class
|
|
806
|
-
] }), (n == null ? void 0 : n()) || Y(
|
|
806
|
+
] }), (n == null ? void 0 : n()) || Y(va, { name: S() }));
|
|
807
807
|
return [T, f];
|
|
808
808
|
};
|
|
809
809
|
}
|
|
810
|
-
}),
|
|
810
|
+
}), Dn = Se({
|
|
811
811
|
name: "CarouselPagination",
|
|
812
812
|
props: {
|
|
813
813
|
disableOnClick: {
|
|
@@ -824,7 +824,7 @@ const sa = (a) => a && kn(a), da = Se({
|
|
|
824
824
|
const o = r(() => i.config.itemsToShow), l = r(() => Jt({
|
|
825
825
|
align: i.config.snapAlign,
|
|
826
826
|
itemsToShow: o.value
|
|
827
|
-
})), n = r(() => a.paginateByItemsToShow && o.value > 1), t = r(() => Math.ceil((i.activeSlide - l.value) / o.value)), y = r(() => Math.ceil(i.slidesCount / o.value)),
|
|
827
|
+
})), n = r(() => a.paginateByItemsToShow && o.value > 1), t = r(() => Math.ceil((i.activeSlide - l.value) / o.value)), y = r(() => Math.ceil(i.slidesCount / o.value)), S = (D) => Da(n.value ? {
|
|
828
828
|
val: t.value,
|
|
829
829
|
max: y.value - 1,
|
|
830
830
|
min: 0
|
|
@@ -837,9 +837,9 @@ const sa = (a) => a && kn(a), da = Se({
|
|
|
837
837
|
var D, s;
|
|
838
838
|
const v = [];
|
|
839
839
|
for (let T = n.value ? 0 : i.minSlide; T <= (n.value ? y.value - 1 : i.maxSlide); T++) {
|
|
840
|
-
const f =
|
|
840
|
+
const f = wa(i.config.i18n[n.value ? "ariaNavigateToPage" : "ariaNavigateToSlide"], {
|
|
841
841
|
slideNumber: T + 1
|
|
842
|
-
}), g =
|
|
842
|
+
}), g = S(T), V = Y("button", {
|
|
843
843
|
type: "button",
|
|
844
844
|
class: {
|
|
845
845
|
"carousel__pagination-button": !0,
|
|
@@ -857,12 +857,12 @@ const sa = (a) => a && kn(a), da = Se({
|
|
|
857
857
|
return Y("ol", { class: "carousel__pagination" }, v);
|
|
858
858
|
};
|
|
859
859
|
}
|
|
860
|
-
}),
|
|
860
|
+
}), fa = Se({
|
|
861
861
|
name: "CarouselSlide",
|
|
862
862
|
props: {
|
|
863
863
|
id: {
|
|
864
864
|
type: String,
|
|
865
|
-
default: (a) => a.isClone ? void 0 :
|
|
865
|
+
default: (a) => a.isClone ? void 0 : za()
|
|
866
866
|
},
|
|
867
867
|
index: {
|
|
868
868
|
type: Number,
|
|
@@ -879,12 +879,12 @@ const sa = (a) => a && kn(a), da = Se({
|
|
|
879
879
|
},
|
|
880
880
|
setup(a, { attrs: i, slots: o, expose: l }) {
|
|
881
881
|
const n = Ct(nt);
|
|
882
|
-
if (
|
|
882
|
+
if (pa(nt, void 0), !n)
|
|
883
883
|
return () => "";
|
|
884
884
|
const t = B(a.index), y = (V) => {
|
|
885
885
|
t.value = V;
|
|
886
|
-
},
|
|
887
|
-
const V =
|
|
886
|
+
}, S = Ga(), D = () => {
|
|
887
|
+
const V = S.vnode.el;
|
|
888
888
|
return V ? V.getBoundingClientRect() : { width: 0, height: 0 };
|
|
889
889
|
};
|
|
890
890
|
l({
|
|
@@ -898,12 +898,12 @@ const sa = (a) => a && kn(a), da = Se({
|
|
|
898
898
|
const V = n.config.itemsToShow, A = n.config.gap > 0 && V > 1 ? `calc(${100 / V}% - ${n.config.gap * (V - 1) / V}px)` : `${100 / V}%`;
|
|
899
899
|
return n.isVertical ? { height: A } : { width: A };
|
|
900
900
|
});
|
|
901
|
-
return n.slideRegistry.registerSlide(
|
|
902
|
-
n.slideRegistry.unregisterSlide(
|
|
901
|
+
return n.slideRegistry.registerSlide(S, a.index), Ha(() => {
|
|
902
|
+
n.slideRegistry.unregisterSlide(S);
|
|
903
903
|
}), a.isClone && (xt(() => {
|
|
904
|
-
|
|
905
|
-
}),
|
|
906
|
-
|
|
904
|
+
sa(S.vnode);
|
|
905
|
+
}), qa(() => {
|
|
906
|
+
sa(S.vnode);
|
|
907
907
|
})), () => {
|
|
908
908
|
var V, A;
|
|
909
909
|
return n.config.enabled ? Y("li", {
|
|
@@ -933,11 +933,11 @@ const sa = (a) => a && kn(a), da = Se({
|
|
|
933
933
|
})) : (V = o.default) === null || V === void 0 ? void 0 : V.call(o);
|
|
934
934
|
};
|
|
935
935
|
}
|
|
936
|
-
}),
|
|
937
|
-
var y,
|
|
936
|
+
}), Tn = (a, i, o, l) => {
|
|
937
|
+
var y, S, D, s, v;
|
|
938
938
|
if (!o) return 0;
|
|
939
939
|
let n, t;
|
|
940
|
-
if (o.type === Oe.Field ? [Ze.Number, Ze.Range].includes((y = o.field) == null ? void 0 : y.type) ? (n = parseFloat(a[o.key]), t = parseFloat(i[o.key])) : [Ze.Date, Ze.Date].includes((
|
|
940
|
+
if (o.type === Oe.Field ? [Ze.Number, Ze.Range].includes((y = o.field) == null ? void 0 : y.type) ? (n = parseFloat(a[o.key]), t = parseFloat(i[o.key])) : [Ze.Date, Ze.Date].includes((S = o.field) == null ? void 0 : S.type) ? (n = a[o.key], t = i[o.key]) : ((D = o.field) == null ? void 0 : D.type) === Ze.Select && ((s = o.field) != null && s.multiple) && ((v = o.field) == null ? void 0 : v.multipleDisplay) === Ja.Count ? (n = a[o.key].length, t = i[o.key].length) : (n = String(a[o.key]).toLowerCase(), t = String(i[o.key]).toLowerCase()) : (n = String(a[o.key]).toLowerCase(), t = String(i[o.key]).toLowerCase()), l === at.Asc) {
|
|
941
941
|
if (n > t) return 1;
|
|
942
942
|
if (t > n) return -1;
|
|
943
943
|
} else {
|
|
@@ -954,40 +954,40 @@ const sa = (a) => a && kn(a), da = Se({
|
|
|
954
954
|
let n = a.type === Oe.ColumnIndex ? o : i[a.key];
|
|
955
955
|
if (a.formatter && typeof a.formatter == "function") {
|
|
956
956
|
let t = a.formatter(n, i, a, o);
|
|
957
|
-
return typeof t == "string" && t.startsWith("__:") ?
|
|
957
|
+
return typeof t == "string" && t.startsWith("__:") ? Wa(t.substring(3)) : t;
|
|
958
958
|
}
|
|
959
959
|
return n;
|
|
960
|
-
},
|
|
960
|
+
}, In = (a, i, o) => {
|
|
961
961
|
if (!a.colspan) return -1;
|
|
962
962
|
let l = i;
|
|
963
963
|
return o.forEach((n) => {
|
|
964
964
|
let t = ea(a, n);
|
|
965
965
|
t > 0 && t < l && (l = t);
|
|
966
966
|
}), l;
|
|
967
|
-
}, ea = (a, i) => a.colspan === !1 ? !1 : typeof a.colspan == "function" ? a.colspan(i) : a.colspan,
|
|
967
|
+
}, ea = (a, i) => a.colspan === !1 ? !1 : typeof a.colspan == "function" ? a.colspan(i) : a.colspan, Ta = (a, i) => typeof a.preferSlot > "u" ? !0 : a.preferSlot === !1 ? !1 : typeof a.preferSlot == "function" ? a.preferSlot(i) : !0, Bn = (a, i, o) => {
|
|
968
968
|
if (typeof a != "object" || !a.key && [Oe.Field].includes(a.type) || i.indexOf(a.key) > -1) return !1;
|
|
969
969
|
let l = ea(a, o);
|
|
970
970
|
return typeof a.colspan > "u" ? !0 : (typeof a.colspan < "u" && (typeof a.colspan == "function" ? l = parseInt(a.colspan(o)) : l = parseInt(a.colspan)), l > 0);
|
|
971
|
-
},
|
|
971
|
+
}, En = (a = []) => {
|
|
972
972
|
if (a.length > 0) {
|
|
973
973
|
for (let i = 0; i < a.length; ++i)
|
|
974
974
|
if (a[i].sortable) return a[i].key;
|
|
975
975
|
}
|
|
976
976
|
return "";
|
|
977
|
-
},
|
|
977
|
+
}, An = (a, i) => {
|
|
978
978
|
if (a.length > 0) {
|
|
979
979
|
for (let o = 0; o < a.length; ++o)
|
|
980
980
|
if (a[o].key === i) return a[o];
|
|
981
981
|
}
|
|
982
982
|
return null;
|
|
983
|
-
},
|
|
983
|
+
}, Ia = (a) => {
|
|
984
984
|
let i = [];
|
|
985
985
|
return a.class && i.push(a.class), a.type && i.push(`is-${a.type}`), i.join(" ");
|
|
986
986
|
}, Zt = /* @__PURE__ */ Se({
|
|
987
987
|
__name: "LktTableCell",
|
|
988
988
|
props: {
|
|
989
989
|
modelValue: { default: () => ({}) },
|
|
990
|
-
column: { default: () => new
|
|
990
|
+
column: { default: () => new ya() },
|
|
991
991
|
columns: { default: () => [] },
|
|
992
992
|
i: { default: 0 },
|
|
993
993
|
editModeEnabled: { type: Boolean, default: !1 },
|
|
@@ -1000,14 +1000,14 @@ const sa = (a) => a && kn(a), da = Se({
|
|
|
1000
1000
|
],
|
|
1001
1001
|
setup(a, { emit: i }) {
|
|
1002
1002
|
const o = i, l = a, n = B(l.modelValue);
|
|
1003
|
-
|
|
1003
|
+
U(() => l.modelValue, (v) => {
|
|
1004
1004
|
n.value = v;
|
|
1005
|
-
}),
|
|
1005
|
+
}), U(n, (v) => {
|
|
1006
1006
|
o("update:modelValue", v);
|
|
1007
1007
|
});
|
|
1008
1008
|
const t = () => {
|
|
1009
1009
|
o("inline-drop");
|
|
1010
|
-
}, y = r(() => ({ ...l.column.slotData, item: n.value })),
|
|
1010
|
+
}, y = r(() => ({ ...l.column.slotData, item: n.value })), S = r(() => {
|
|
1011
1011
|
var v, T, f, g;
|
|
1012
1012
|
if ((v = l.column.field) != null && v.modalData && typeof ((T = l.column.field) == null ? void 0 : T.modalData) == "object")
|
|
1013
1013
|
for (let V in l.column.field.modalData)
|
|
@@ -1017,7 +1017,7 @@ const sa = (a) => a && kn(a), da = Se({
|
|
|
1017
1017
|
} else
|
|
1018
1018
|
l.column.field.modalData[V];
|
|
1019
1019
|
return (g = l.column.field) == null ? void 0 : g.modalData;
|
|
1020
|
-
}), D = r(() => typeof l.column.field == "string" && l.column.field.startsWith("prop:") ?
|
|
1020
|
+
}), D = r(() => typeof l.column.field == "string" && l.column.field.startsWith("prop:") ? Qa(l.column.field, n.value) : l.column.field), s = r(() => {
|
|
1021
1021
|
var v, T, f, g;
|
|
1022
1022
|
return l.column.type === Oe.Field ? !((T = (v = l.column) == null ? void 0 : v.field) != null && T.label) && (l.column.ensureFieldLabel || [
|
|
1023
1023
|
Ze.Switch,
|
|
@@ -1045,7 +1045,7 @@ const sa = (a) => a && kn(a), da = Se({
|
|
|
1045
1045
|
readMode: !v.hasInlineEditPerm || D.value.readMode,
|
|
1046
1046
|
slotData: y.value,
|
|
1047
1047
|
label: s.value,
|
|
1048
|
-
modalData:
|
|
1048
|
+
modalData: S.value,
|
|
1049
1049
|
prop: n.value
|
|
1050
1050
|
}), null, 16, ["modelValue"])) : v.column.type === b(Oe).InlineDrop ? (p(), O(g, X({ key: 3 }, v.column.button, {
|
|
1051
1051
|
prop: n.value,
|
|
@@ -1061,9 +1061,9 @@ const sa = (a) => a && kn(a), da = Se({
|
|
|
1061
1061
|
readMode: !0,
|
|
1062
1062
|
slotData: y.value,
|
|
1063
1063
|
label: s.value,
|
|
1064
|
-
modalData:
|
|
1064
|
+
modalData: S.value,
|
|
1065
1065
|
prop: n.value
|
|
1066
|
-
})), null, 16)) : (p(), C(
|
|
1066
|
+
})), null, 16)) : (p(), C(H, { key: 5 }, [
|
|
1067
1067
|
et(tt(b(xe)(v.column, n.value, v.i, v.columns)), 1)
|
|
1068
1068
|
], 64));
|
|
1069
1069
|
};
|
|
@@ -1072,16 +1072,16 @@ const sa = (a) => a && kn(a), da = Se({
|
|
|
1072
1072
|
};
|
|
1073
1073
|
St.navButtonSlot = "", St.createButtonSlot = "", St.defaultEmptySlot = void 0;
|
|
1074
1074
|
let ke = St;
|
|
1075
|
-
const
|
|
1075
|
+
const Vn = ["data-i", "data-draggable"], Rn = ["data-role", "data-i"], Ln = {
|
|
1076
1076
|
key: 1,
|
|
1077
1077
|
class: "lkt-table-nav-cell"
|
|
1078
|
-
},
|
|
1078
|
+
}, Nn = { class: "lkt-table-nav-container" }, Mn = {
|
|
1079
1079
|
key: 1,
|
|
1080
1080
|
class: "lkt-icn-arrow-top"
|
|
1081
|
-
},
|
|
1081
|
+
}, On = {
|
|
1082
1082
|
key: 1,
|
|
1083
1083
|
class: "lkt-icn-arrow-bottom"
|
|
1084
|
-
},
|
|
1084
|
+
}, $n = ["colspan"], Fn = ["colspan"], Pn = ["colspan"], _n = ["data-column", "colspan", "title"], Un = /* @__PURE__ */ Se({
|
|
1085
1085
|
__name: "LktTableRow",
|
|
1086
1086
|
props: {
|
|
1087
1087
|
modelValue: { default: () => ({}) },
|
|
@@ -1116,10 +1116,10 @@ const En = ["data-i", "data-draggable"], An = ["data-role", "data-i"], Vn = {
|
|
|
1116
1116
|
"item-drop"
|
|
1117
1117
|
],
|
|
1118
1118
|
setup(a, { emit: i }) {
|
|
1119
|
-
const o =
|
|
1119
|
+
const o = ma(), l = i, n = a, t = B(n.modelValue);
|
|
1120
1120
|
let y = typeof n.rowDisplayType == "function" ? n.rowDisplayType(t.value, n.i) : n.rowDisplayType;
|
|
1121
1121
|
y || (y = Te.Auto);
|
|
1122
|
-
const
|
|
1122
|
+
const S = [Te.Auto, Te.PreferCustomItem].includes(y), D = [Te.Auto, Te.PreferItem].includes(y), s = (c) => l("click", c), v = r(() => {
|
|
1123
1123
|
let c = [], I = typeof n.disabledDrag == "function" ? n.disabledDrag(t.value) : ie.value === !0;
|
|
1124
1124
|
return !I && n.sortable && n.isDraggable ? c.push("handle") : I && c.push("disabled"), c.join(" ");
|
|
1125
1125
|
}), T = r(() => ke.navButtonSlot !== ""), f = r(() => ke.navButtonSlot), g = () => {
|
|
@@ -1129,12 +1129,12 @@ const En = ["data-i", "data-draggable"], An = ["data-role", "data-i"], Vn = {
|
|
|
1129
1129
|
}, A = () => {
|
|
1130
1130
|
l("item-drop", n.i);
|
|
1131
1131
|
};
|
|
1132
|
-
|
|
1132
|
+
U(() => n.modelValue, (c) => t.value = c), U(t, (c) => {
|
|
1133
1133
|
l("update:modelValue", c);
|
|
1134
1134
|
}, { deep: !0 });
|
|
1135
1135
|
const lt = r(() => typeof n.renderDrag == "function" ? n.renderDrag(t.value) : n.renderDrag === !0), ie = r(() => typeof n.disabledDrag == "function" ? n.disabledDrag(t.value) : n.disabledDrag === !0), re = r(() => v.value.includes("handle") ? "drag-indicator" : "invalid-drag-indicator"), te = r(() => {
|
|
1136
1136
|
let c = [];
|
|
1137
|
-
return
|
|
1137
|
+
return S && c.push("type-custom-item"), D && c.push("type-item"), typeof n.itemContainerClass == "function" ? c.push(n.itemContainerClass(t.value, n.i)) : n.itemContainerClass !== "" && c.push(n.itemContainerClass), c.join(" ");
|
|
1138
1138
|
});
|
|
1139
1139
|
return (c, I) => {
|
|
1140
1140
|
const ue = he("lkt-button");
|
|
@@ -1150,9 +1150,9 @@ const En = ["data-i", "data-draggable"], An = ["data-role", "data-i"], Vn = {
|
|
|
1150
1150
|
"data-i": c.i
|
|
1151
1151
|
}, I[2] || (I[2] = [
|
|
1152
1152
|
ye("i", { class: "lkt-icn-drag-indicator" }, null, -1)
|
|
1153
|
-
]), 10,
|
|
1154
|
-
c.addNavigation && c.editModeEnabled ? (p(), C("td",
|
|
1155
|
-
ye("div",
|
|
1153
|
+
]), 10, Rn)) : R("", !0),
|
|
1154
|
+
c.addNavigation && c.editModeEnabled ? (p(), C("td", Ln, [
|
|
1155
|
+
ye("div", Nn, [
|
|
1156
1156
|
ge(ue, {
|
|
1157
1157
|
palette: "table-nav",
|
|
1158
1158
|
disabled: c.i === 0,
|
|
@@ -1162,7 +1162,7 @@ const En = ["data-i", "data-draggable"], An = ["data-role", "data-i"], Vn = {
|
|
|
1162
1162
|
T.value ? (p(), O(be(f.value), {
|
|
1163
1163
|
key: 0,
|
|
1164
1164
|
direction: "up"
|
|
1165
|
-
})) : (p(), C("i",
|
|
1165
|
+
})) : (p(), C("i", Mn))
|
|
1166
1166
|
]),
|
|
1167
1167
|
_: 1
|
|
1168
1168
|
}, 8, ["disabled"]),
|
|
@@ -1175,7 +1175,7 @@ const En = ["data-i", "data-draggable"], An = ["data-role", "data-i"], Vn = {
|
|
|
1175
1175
|
T.value ? (p(), O(be(f.value), {
|
|
1176
1176
|
key: 0,
|
|
1177
1177
|
direction: "down"
|
|
1178
|
-
})) : (p(), C("i",
|
|
1178
|
+
})) : (p(), C("i", On))
|
|
1179
1179
|
]),
|
|
1180
1180
|
_: 1
|
|
1181
1181
|
}, 8, ["disabled"])
|
|
@@ -1185,7 +1185,7 @@ const En = ["data-i", "data-draggable"], An = ["data-role", "data-i"], Vn = {
|
|
|
1185
1185
|
key: "td" + c.i,
|
|
1186
1186
|
colspan: c.visibleColumns.length
|
|
1187
1187
|
}, [
|
|
1188
|
-
(p(), O(be(c.itemSlotComponent), me(
|
|
1188
|
+
(p(), O(be(c.itemSlotComponent), me(ga({
|
|
1189
1189
|
item: t.value,
|
|
1190
1190
|
index: c.i,
|
|
1191
1191
|
editing: c.editModeEnabled,
|
|
@@ -1193,7 +1193,7 @@ const En = ["data-i", "data-draggable"], An = ["data-role", "data-i"], Vn = {
|
|
|
1193
1193
|
data: c.itemSlotData,
|
|
1194
1194
|
events: c.itemSlotEvents
|
|
1195
1195
|
})), null, 16))
|
|
1196
|
-
], 8,
|
|
1196
|
+
], 8, $n)) : b(S) && b(o)[`item-${c.i}`] ? (p(), C("td", {
|
|
1197
1197
|
key: "td" + c.i,
|
|
1198
1198
|
colspan: c.visibleColumns.length
|
|
1199
1199
|
}, [
|
|
@@ -1208,7 +1208,7 @@ const En = ["data-i", "data-draggable"], An = ["data-role", "data-i"], Vn = {
|
|
|
1208
1208
|
isLoading: c.isLoading,
|
|
1209
1209
|
doDrop: () => A()
|
|
1210
1210
|
})
|
|
1211
|
-
], 8,
|
|
1211
|
+
], 8, Fn)) : b(D) && b(o).item ? (p(), C("td", {
|
|
1212
1212
|
key: "td" + c.i,
|
|
1213
1213
|
colspan: c.visibleColumns.length
|
|
1214
1214
|
}, [
|
|
@@ -1223,35 +1223,35 @@ const En = ["data-i", "data-draggable"], An = ["data-role", "data-i"], Vn = {
|
|
|
1223
1223
|
isLoading: c.isLoading,
|
|
1224
1224
|
doDrop: () => A()
|
|
1225
1225
|
})
|
|
1226
|
-
], 8,
|
|
1227
|
-
b(
|
|
1226
|
+
], 8, Pn)) : (p(!0), C(H, { key: 5 }, De(c.visibleColumns, (j) => (p(), C(H, null, [
|
|
1227
|
+
b(Bn)(j, c.emptyColumns, t.value) ? (p(), C("td", {
|
|
1228
1228
|
key: "td" + c.i,
|
|
1229
|
-
"data-column":
|
|
1230
|
-
colspan: b(ea)(
|
|
1231
|
-
title: b(xe)(
|
|
1232
|
-
class: Z(b(
|
|
1229
|
+
"data-column": j.key,
|
|
1230
|
+
colspan: b(ea)(j, t.value),
|
|
1231
|
+
title: b(xe)(j, t.value, c.i, c.visibleColumns),
|
|
1232
|
+
class: Z(b(Ia)(j)),
|
|
1233
1233
|
onClick: I[1] || (I[1] = (ne) => s(ne))
|
|
1234
1234
|
}, [
|
|
1235
|
-
c.$slots[
|
|
1235
|
+
c.$slots[j.key] && b(Ta)(j, t.value) ? F(c.$slots, j.key, {
|
|
1236
1236
|
key: 0,
|
|
1237
|
-
value: t.value[
|
|
1237
|
+
value: t.value[j.key],
|
|
1238
1238
|
item: t.value,
|
|
1239
|
-
column:
|
|
1239
|
+
column: j,
|
|
1240
1240
|
i: c.i
|
|
1241
1241
|
}) : t.value ? (p(), O(Zt, {
|
|
1242
1242
|
key: 1,
|
|
1243
1243
|
modelValue: t.value,
|
|
1244
1244
|
"onUpdate:modelValue": I[0] || (I[0] = (ne) => t.value = ne),
|
|
1245
|
-
column:
|
|
1245
|
+
column: j,
|
|
1246
1246
|
columns: c.visibleColumns,
|
|
1247
1247
|
"edit-mode-enabled": c.editModeEnabled,
|
|
1248
1248
|
"has-inline-edit-perm": c.hasInlineEditPerm,
|
|
1249
1249
|
i: c.i,
|
|
1250
1250
|
onInlineDrop: A
|
|
1251
1251
|
}, null, 8, ["modelValue", "column", "columns", "edit-mode-enabled", "has-inline-edit-perm", "i"])) : R("", !0)
|
|
1252
|
-
], 10,
|
|
1252
|
+
], 10, _n)) : R("", !0)
|
|
1253
1253
|
], 64))), 256))
|
|
1254
|
-
], 10,
|
|
1254
|
+
], 10, Vn);
|
|
1255
1255
|
};
|
|
1256
1256
|
}
|
|
1257
1257
|
}), Yt = /* @__PURE__ */ Se({
|
|
@@ -1271,10 +1271,10 @@ const En = ["data-i", "data-draggable"], An = ["data-role", "data-i"], Vn = {
|
|
|
1271
1271
|
beforeClose: (v) => {
|
|
1272
1272
|
"itemCreated" in v && v.itemCreated === !0 && o("append", v.item);
|
|
1273
1273
|
}
|
|
1274
|
-
},
|
|
1274
|
+
}, S = {
|
|
1275
1275
|
...l.config
|
|
1276
1276
|
};
|
|
1277
|
-
|
|
1277
|
+
S.modalData = y;
|
|
1278
1278
|
const D = () => {
|
|
1279
1279
|
var v;
|
|
1280
1280
|
if (!((v = l.config) != null && v.modal)) {
|
|
@@ -1284,7 +1284,7 @@ const En = ["data-i", "data-draggable"], An = ["data-role", "data-i"], Vn = {
|
|
|
1284
1284
|
};
|
|
1285
1285
|
return (v, T) => {
|
|
1286
1286
|
const f = he("lkt-button");
|
|
1287
|
-
return p(), O(f, X(
|
|
1287
|
+
return p(), O(f, X(S, {
|
|
1288
1288
|
disabled: v.disabled,
|
|
1289
1289
|
onClick: D
|
|
1290
1290
|
}), {
|
|
@@ -1295,10 +1295,10 @@ const En = ["data-i", "data-draggable"], An = ["data-role", "data-i"], Vn = {
|
|
|
1295
1295
|
}, 16, ["disabled"]);
|
|
1296
1296
|
};
|
|
1297
1297
|
}
|
|
1298
|
-
}),
|
|
1298
|
+
}), jn = ["data-column", "data-sortable", "data-sort", "colspan", "title"], zn = /* @__PURE__ */ Se({
|
|
1299
1299
|
__name: "TableHeader",
|
|
1300
1300
|
props: {
|
|
1301
|
-
column: { default: () => new
|
|
1301
|
+
column: { default: () => new ya() },
|
|
1302
1302
|
sortBy: { default: "" },
|
|
1303
1303
|
sortDirection: { default: "" },
|
|
1304
1304
|
amountOfColumns: { default: 0 },
|
|
@@ -1308,43 +1308,43 @@ const En = ["data-i", "data-draggable"], An = ["data-role", "data-i"], Vn = {
|
|
|
1308
1308
|
"click"
|
|
1309
1309
|
],
|
|
1310
1310
|
setup(a, { emit: i }) {
|
|
1311
|
-
const o = i, l = a, n = r(() =>
|
|
1311
|
+
const o = i, l = a, n = r(() => In(l.column, l.amountOfColumns, l.items)), t = r(() => l.column.sortable === !0), y = r(() => t.value && l.sortBy === l.column.key ? l.sortDirection : ""), S = r(() => ba(l.column.label)), D = r(() => t.value && l.sortBy === l.column.key ? l.sortDirection === at.Asc ? Me.defaultTableSortAscIcon : l.sortDirection === at.Desc ? Me.defaultTableSortDescIcon : "" : ""), s = () => o("click", l.column);
|
|
1312
1312
|
return (v, T) => (p(), C("th", {
|
|
1313
1313
|
"data-column": v.column.key,
|
|
1314
1314
|
"data-sortable": t.value,
|
|
1315
1315
|
"data-sort": y.value,
|
|
1316
1316
|
colspan: n.value,
|
|
1317
|
-
title:
|
|
1318
|
-
class: Z(b(
|
|
1317
|
+
title: S.value,
|
|
1318
|
+
class: Z(b(Ia)(v.column)),
|
|
1319
1319
|
onClick: s
|
|
1320
1320
|
}, [
|
|
1321
1321
|
ye("div", null, [
|
|
1322
|
-
et(tt(
|
|
1322
|
+
et(tt(S.value) + " ", 1),
|
|
1323
1323
|
D.value ? (p(), C("i", {
|
|
1324
1324
|
key: 0,
|
|
1325
1325
|
class: Z(D.value)
|
|
1326
1326
|
}, null, 2)) : R("", !0)
|
|
1327
1327
|
])
|
|
1328
|
-
], 10,
|
|
1328
|
+
], 10, jn));
|
|
1329
1329
|
}
|
|
1330
|
-
}),
|
|
1330
|
+
}), Gn = ["id"], Hn = { class: "lkt-table-page-buttons" }, qn = { class: "switch-edition-mode" }, Kn = { class: "switch-edition-mode" }, Xn = {
|
|
1331
1331
|
key: 0,
|
|
1332
1332
|
class: "lkt-table-page-buttons"
|
|
1333
|
-
},
|
|
1333
|
+
}, Yn = {
|
|
1334
1334
|
key: 1,
|
|
1335
1335
|
class: "lkt-table-page-filters"
|
|
1336
|
-
},
|
|
1336
|
+
}, Wn = { class: "lkt-table" }, Jn = { key: 0 }, Qn = { key: 0 }, Zn = {
|
|
1337
1337
|
key: 0,
|
|
1338
1338
|
"data-role": "drag-indicator"
|
|
1339
|
-
},
|
|
1339
|
+
}, xn = { key: 1 }, el = ["id"], tl = ["id"], al = ["data-i"], nl = ["id"], ll = ["data-i"], ol = ["id"], il = { class: "lkt-carousel-slide" }, rl = { class: "lkt-carousel-slide" }, ul = ["id"], sl = {
|
|
1340
1340
|
key: 2,
|
|
1341
1341
|
class: "lkt-table-empty"
|
|
1342
|
-
},
|
|
1342
|
+
}, dl = {
|
|
1343
1343
|
key: 4,
|
|
1344
1344
|
class: "lkt-table-page-buttons lkt-table-page-buttons-bottom"
|
|
1345
|
-
},
|
|
1345
|
+
}, cl = /* @__PURE__ */ Se({
|
|
1346
1346
|
__name: "LktTable",
|
|
1347
|
-
props: /* @__PURE__ */
|
|
1347
|
+
props: /* @__PURE__ */ Xa({
|
|
1348
1348
|
modelValue: {},
|
|
1349
1349
|
type: {},
|
|
1350
1350
|
columns: {},
|
|
@@ -1390,13 +1390,14 @@ const En = ["data-i", "data-draggable"], An = ["data-role", "data-i"], Vn = {
|
|
|
1390
1390
|
wrapContentClass: {},
|
|
1391
1391
|
itemsContainerClass: {},
|
|
1392
1392
|
itemContainerClass: { type: [String, Function] },
|
|
1393
|
+
itemContainerStyle: { type: [String, Function] },
|
|
1393
1394
|
skipTableItemsContainer: { type: Boolean },
|
|
1394
1395
|
createEnabledValidator: { type: Function },
|
|
1395
1396
|
switchableTypes: {},
|
|
1396
1397
|
switchableTypesButtons: {},
|
|
1397
1398
|
useItemSlot: { type: [Boolean, Function] },
|
|
1398
1399
|
events: {}
|
|
1399
|
-
},
|
|
1400
|
+
}, Za(xa)),
|
|
1400
1401
|
emits: [
|
|
1401
1402
|
"update:modelValue",
|
|
1402
1403
|
"update:perms",
|
|
@@ -1413,11 +1414,11 @@ const En = ["data-i", "data-draggable"], An = ["data-role", "data-i"], Vn = {
|
|
|
1413
1414
|
"drag-end"
|
|
1414
1415
|
],
|
|
1415
1416
|
setup(a, { expose: i, emit: o }) {
|
|
1416
|
-
var
|
|
1417
|
-
const l = o, n =
|
|
1418
|
-
|
|
1417
|
+
var la, oa;
|
|
1418
|
+
const l = o, n = ma(), t = a, y = B(typeof t.sorter == "function" ? t.sorter : Tn), S = B(En(t.columns)), D = B(at.Asc), s = B(t.modelValue), v = B(null), T = B(t.columns), f = B((la = t.paginator) == null ? void 0 : la.modelValue), g = B(t.loading), V = B(!1), A = B(t.perms), lt = B(null), ie = B(null), re = B(null), te = B({}), c = B(new an({ items: s.value }, t.dataStateConfig)), I = B(t.editMode), ue = B(0), j = B(null), ne = B(t.type), se = B(((oa = t.carousel) == null ? void 0 : oa.currentSlide) || 0), de = B(void 0), q = B(void 0), $e = B(void 0), x = B(Je(t.saveButton, Me.defaultSaveButton)), Ie = B(Je(t.createButton, Me.defaultCreateButton)), W = B(Je(t.editModeButton, Me.defaultEditModeButton)), Ot = B(Je(t.groupButton, Me.defaultGroupButton));
|
|
1419
|
+
U(() => t.saveButton, (e) => x.value = Je(t.saveButton, Me.defaultSaveButton)), U(() => t.createButton, (e) => Ie.value = Je(t.createButton, Me.defaultCreateButton)), U(() => t.editModeButton, (e) => W.value = Je(t.editModeButton, Me.defaultEditModeButton));
|
|
1419
1420
|
const oe = B(!1);
|
|
1420
|
-
|
|
1421
|
+
U(g, (e) => l("update:loading", e)), U(f, (e) => l("page", e));
|
|
1421
1422
|
const $t = (e) => {
|
|
1422
1423
|
A.value = e;
|
|
1423
1424
|
}, Ce = (e) => {
|
|
@@ -1425,8 +1426,8 @@ const En = ["data-i", "data-draggable"], An = ["data-role", "data-i"], Vn = {
|
|
|
1425
1426
|
if (Array.isArray(e.data)) {
|
|
1426
1427
|
let $ = e.data;
|
|
1427
1428
|
if (typeof ((u = t.events) == null ? void 0 : u.parseResults) == "function" && ($ = t.events.parseResults($)), s.value = [...s.value, ...$], [Qe.TimelineAsc, Qe.TimelineDesc, Qe.TimelineAscDesc].includes((N = t.paginator) == null ? void 0 : N.type)) {
|
|
1428
|
-
const
|
|
1429
|
-
de.value =
|
|
1429
|
+
const _ = on(s.value, t.paginator.dateKey);
|
|
1430
|
+
de.value = _.oldest, q.value = _.newest;
|
|
1430
1431
|
}
|
|
1431
1432
|
}
|
|
1432
1433
|
g.value = !1, V.value = !0, c.value.store({ items: s.value }).turnStoredIntoOriginal(), oe.value = !1, Lt(() => {
|
|
@@ -1437,15 +1438,15 @@ const En = ["data-i", "data-draggable"], An = ["data-role", "data-i"], Vn = {
|
|
|
1437
1438
|
(!t.paginator || ![Qe.LoadMore, Qe.Infinite].includes((e = t.paginator) == null ? void 0 : e.type)) && s.value.splice(0, s.value.length), g.value = !0;
|
|
1438
1439
|
}), ct = () => {
|
|
1439
1440
|
lt.value.doRefresh();
|
|
1440
|
-
}, ee =
|
|
1441
|
+
}, ee = en(12), vt = r(() => {
|
|
1441
1442
|
if (!t.hideEmptyColumns) return [];
|
|
1442
1443
|
let e = [];
|
|
1443
1444
|
return T.value.forEach((u) => {
|
|
1444
1445
|
let N = u.key, $ = !1;
|
|
1445
|
-
s.value.forEach((
|
|
1446
|
-
if (typeof
|
|
1447
|
-
return
|
|
1448
|
-
|
|
1446
|
+
s.value.forEach((_) => {
|
|
1447
|
+
if (typeof _.checkEmpty == "function")
|
|
1448
|
+
return _.checkEmpty(_);
|
|
1449
|
+
_[N] && ($ = !0);
|
|
1449
1450
|
}), $ || e.push(N);
|
|
1450
1451
|
}), e;
|
|
1451
1452
|
}), Fe = r(() => T.value.filter((e) => !e.hidden)), it = r(() => T.value.filter((e) => e.isForRowKey)), Be = r(() => T.value.map((e) => e.key)), rt = r(() => {
|
|
@@ -1471,7 +1472,7 @@ const En = ["data-i", "data-draggable"], An = ["data-role", "data-i"], Vn = {
|
|
|
1471
1472
|
items: s.value,
|
|
1472
1473
|
...(e = x.value) == null ? void 0 : e.resourceData
|
|
1473
1474
|
};
|
|
1474
|
-
}), Pt = r(() => t.titleTag === "" ? "h2" : t.titleTag), wt = r(() => t.wrapContentTag === "" ? "div" : t.wrapContentTag), ut = r(() =>
|
|
1475
|
+
}), Pt = r(() => t.titleTag === "" ? "h2" : t.titleTag), wt = r(() => t.wrapContentTag === "" ? "div" : t.wrapContentTag), ut = r(() => ba(t.title)), st = r(() => {
|
|
1475
1476
|
var e;
|
|
1476
1477
|
return (e = t.drag) == null ? void 0 : e.enabled;
|
|
1477
1478
|
}), ve = r(() => A.value.includes(Re.Create)), _e = r(() => A.value.includes("read")), ae = r(() => A.value.includes(Re.Update)), mt = r(() => A.value.includes(Re.Edit)), fe = r(() => A.value.includes(Re.InlineEdit)), Ue = r(() => A.value.includes(Re.ModalCreate)), je = r(() => A.value.includes(Re.InlineCreate)), qe = r(() => A.value.includes(Re.InlineCreateEver)), le = r(() => A.value.includes(Re.Drop)), Dt = r(() => A.value.includes(Re.SwitchEditMode)), Ee = r(() => !Dt.value || !ae.value && !le.value || !ae.value && le.value ? !1 : !g.value), gt = r(() => {
|
|
@@ -1486,21 +1487,21 @@ const En = ["data-i", "data-draggable"], An = ["data-role", "data-i"], Vn = {
|
|
|
1486
1487
|
if (u.tagName === "TD" && (u = u.parentNode, u = u.dataset.i, typeof u < "u"))
|
|
1487
1488
|
return s.value[u];
|
|
1488
1489
|
}, pe = () => {
|
|
1489
|
-
ue.value =
|
|
1490
|
+
ue.value = rn();
|
|
1490
1491
|
}, Ut = (e) => s.value[e], yt = (e) => {
|
|
1491
1492
|
var u;
|
|
1492
1493
|
return (u = v.value) == null ? void 0 : u.querySelector(`[data-i="${e}"]`);
|
|
1493
1494
|
}, d = (e) => {
|
|
1494
|
-
e && e.sortable && (e.key ===
|
|
1495
|
-
sortBy:
|
|
1495
|
+
e && e.sortable && (e.key === S.value && (D.value = D.value === at.Asc ? at.Desc : at.Asc), S.value = e.key, s.value = s.value.sort((u, N) => y.value(u, N, e, D.value)), pe(), l("sort", {
|
|
1496
|
+
sortBy: S.value,
|
|
1496
1497
|
sortDirection: D.value
|
|
1497
1498
|
}));
|
|
1498
|
-
},
|
|
1499
|
+
}, k = (e) => {
|
|
1499
1500
|
l("click", e);
|
|
1500
1501
|
}, w = (e) => {
|
|
1501
|
-
var N, $,
|
|
1502
|
-
let u = parseInt((
|
|
1503
|
-
return !(typeof ((Xe = t.drag) == null ? void 0 : Xe.isValid) == "function" && !((Ge = t.drag) != null && Ge.isValid(s.value[u])) || typeof ((Ve = t.drag) == null ? void 0 : Ve.isValid) == "boolean" && !((
|
|
1502
|
+
var N, $, _, z, Xe, Ge, Ve, h;
|
|
1503
|
+
let u = parseInt((z = (_ = ($ = (N = e == null ? void 0 : e.originalEvent) == null ? void 0 : N.toElement) == null ? void 0 : $.closest("tr")) == null ? void 0 : _.dataset) == null ? void 0 : z.i);
|
|
1504
|
+
return !(typeof ((Xe = t.drag) == null ? void 0 : Xe.isValid) == "function" && !((Ge = t.drag) != null && Ge.isValid(s.value[u])) || typeof ((Ve = t.drag) == null ? void 0 : Ve.isValid) == "boolean" && !((h = t.drag) != null && h.isValid));
|
|
1504
1505
|
}, E = (e) => {
|
|
1505
1506
|
var u, N;
|
|
1506
1507
|
return typeof ((u = t.drag) == null ? void 0 : u.isDraggable) == "function" ? (N = t.drag) == null ? void 0 : N.isDraggable(e) : !0;
|
|
@@ -1520,16 +1521,16 @@ const En = ["data-i", "data-draggable"], An = ["data-role", "data-i"], Vn = {
|
|
|
1520
1521
|
s.value.push({});
|
|
1521
1522
|
} else
|
|
1522
1523
|
l("click-create");
|
|
1523
|
-
},
|
|
1524
|
+
}, K = (e) => {
|
|
1524
1525
|
s.value.push(e);
|
|
1525
1526
|
}, J = () => g.value = !0, Q = () => g.value = !1, Bt = (e, u) => {
|
|
1526
|
-
var N, $,
|
|
1527
|
+
var N, $, _;
|
|
1527
1528
|
if (!((N = x.value) != null && N.type && [
|
|
1528
1529
|
Kt.Split,
|
|
1529
1530
|
Kt.SplitEver,
|
|
1530
1531
|
Kt.SplitLazy
|
|
1531
1532
|
].includes(($ = x.value) == null ? void 0 : $.type))) {
|
|
1532
|
-
if (l("before-save"), (
|
|
1533
|
+
if (l("before-save"), (_ = x.value) != null && _.resource && (g.value = !1, !u.success)) {
|
|
1533
1534
|
l("error", u.httpStatus);
|
|
1534
1535
|
return;
|
|
1535
1536
|
}
|
|
@@ -1543,7 +1544,7 @@ const En = ["data-i", "data-draggable"], An = ["data-role", "data-i"], Vn = {
|
|
|
1543
1544
|
return e.splice(N, 0, e.splice(u, 1)[0]), e;
|
|
1544
1545
|
}, jt = (e) => {
|
|
1545
1546
|
Et(s.value, e, e - 1), pe();
|
|
1546
|
-
},
|
|
1547
|
+
}, Ba = (e) => {
|
|
1547
1548
|
Et(s.value, e, e + 1), pe();
|
|
1548
1549
|
}, bt = (e) => {
|
|
1549
1550
|
s.value.splice(e, 1), pe();
|
|
@@ -1551,7 +1552,7 @@ const En = ["data-i", "data-draggable"], An = ["data-role", "data-i"], Vn = {
|
|
|
1551
1552
|
var e;
|
|
1552
1553
|
te.value && typeof ((e = te.value) == null ? void 0 : e.destroy) == "function" && (te.value.destroy(), te.value = {});
|
|
1553
1554
|
}, zt = () => {
|
|
1554
|
-
|
|
1555
|
+
j.value || (j.value = document.getElementById("lkt-table-body-" + ee)), te.value = new nn(j.value, {
|
|
1555
1556
|
direction: "vertical",
|
|
1556
1557
|
handle: ".handle",
|
|
1557
1558
|
animation: 150,
|
|
@@ -1565,29 +1566,29 @@ const En = ["data-i", "data-draggable"], An = ["data-role", "data-i"], Vn = {
|
|
|
1565
1566
|
});
|
|
1566
1567
|
}, At = (e, u, N = !1) => {
|
|
1567
1568
|
let $ = [ue.value, ee, "row", u];
|
|
1568
|
-
return N && $.push("hidden"), it.value.forEach((
|
|
1569
|
-
let
|
|
1570
|
-
|
|
1569
|
+
return N && $.push("hidden"), it.value.forEach((_) => {
|
|
1570
|
+
let z = String(e[_.key]).toLowerCase();
|
|
1571
|
+
z.length > 50 && (z = z.substring(0, 50)), z = tn(z, " ", "-"), $.push(z);
|
|
1571
1572
|
}), $.join("-");
|
|
1572
|
-
}, Gt = r(() => typeof t.createEnabledValidator == "function" ? t.createEnabledValidator({ items: s.value }) : !0), ht = r(() => t.createButton === !1 ? !1 : qe.value || ve.value && I.value || je.value && I.value || Ue.value && I.value),
|
|
1573
|
+
}, Gt = r(() => typeof t.createEnabledValidator == "function" ? t.createEnabledValidator({ items: s.value }) : !0), ht = r(() => t.createButton === !1 ? !1 : qe.value || ve.value && I.value || je.value && I.value || Ue.value && I.value), Ea = r(() => [Le.Ol, Le.Ul].includes(we.value)), kt = (e, u) => typeof t.itemDisplayChecker == "function" ? t.itemDisplayChecker(e, u) : !0, Vt = (e, u) => typeof t.itemContainerClass == "function" ? t.itemContainerClass(e, u) : t.itemContainerClass, aa = (e, u) => typeof t.itemContainerStyle == "function" ? t.itemContainerStyle(e, u) : t.itemContainerStyle, Aa = (e, u) => Ae.value ? e[Ae.value.key] : "", Ke = r(() => typeof t.itemSlotComponent == "function" ? t.itemSlotComponent() : t.itemSlotComponent), Rt = r(() => typeof t.itemSlotData == "function" ? t.itemSlotData() : t.itemSlotData);
|
|
1573
1574
|
xt(() => {
|
|
1574
1575
|
var e;
|
|
1575
|
-
t.initialSorting && d(
|
|
1576
|
+
t.initialSorting && d(An(t.columns, S.value)), c.value.store({ items: s.value }).turnStoredIntoOriginal(), oe.value = !1, (e = t.drag) != null && e.enabled && Lt(() => {
|
|
1576
1577
|
zt();
|
|
1577
1578
|
});
|
|
1578
|
-
}),
|
|
1579
|
+
}), U(() => {
|
|
1579
1580
|
var e;
|
|
1580
1581
|
return (e = t.drag) == null ? void 0 : e.enabled;
|
|
1581
1582
|
}, (e) => {
|
|
1582
1583
|
e ? zt() : ta();
|
|
1583
|
-
}),
|
|
1584
|
+
}), U(() => t.type, (e) => {
|
|
1584
1585
|
var u;
|
|
1585
1586
|
(u = t.drag) != null && u.enabled ? zt() : ta();
|
|
1586
|
-
}),
|
|
1587
|
+
}), U(() => t.perms, (e) => A.value = e), U(A, (e) => l("update:perms", e)), U(I, (e) => {
|
|
1587
1588
|
l("update:editMode", e);
|
|
1588
|
-
}),
|
|
1589
|
+
}), U(() => t.editMode, (e) => I.value = e), U(() => t.columns, (e) => T.value = e, { deep: !0 }), U(() => t.modelValue, (e) => {
|
|
1589
1590
|
s.value = e;
|
|
1590
|
-
}, { deep: !0 }),
|
|
1591
|
+
}, { deep: !0 }), U(s, (e) => {
|
|
1591
1592
|
c.value.increment({ items: e }), oe.value = c.value.changed(), l("update:modelValue", e);
|
|
1592
1593
|
}, { deep: !0 }), i({
|
|
1593
1594
|
getItemByEvent: _t,
|
|
@@ -1605,42 +1606,43 @@ const En = ["data-i", "data-draggable"], An = ["data-role", "data-i"], Vn = {
|
|
|
1605
1606
|
});
|
|
1606
1607
|
}
|
|
1607
1608
|
});
|
|
1608
|
-
const
|
|
1609
|
+
const Va = r(() => typeof ke.defaultEmptySlot < "u"), Ra = r(() => ke.defaultEmptySlot), La = r(() => !t.drag || Object.keys(t.drag).length === 0 || !t.drag.enabled ? !1 : typeof t.drag.canRender > "u" ? !0 : t.drag.canRender), Na = r(() => !t.drag || Object.keys(t.drag).length === 0 || !t.drag.enabled || typeof t.drag.isDisabled > "u" ? !1 : t.drag.isDisabled), Ma = r(() => typeof t.header == "object" && Object.keys(t.header).length > 0), we = r(() => Array.isArray(t.switchableTypes) && t.switchableTypes.length > 0 ? ne.value : t.type), Oa = r(() => Array.isArray(t.switchableTypes) ? t.switchableTypes.length > 0 ? t.switchableTypes.includes(t.type) ? t.switchableTypes : [
|
|
1609
1610
|
t.type,
|
|
1610
1611
|
...t.switchableTypes
|
|
1611
|
-
] : [] : []),
|
|
1612
|
+
] : [] : []), $a = r(() => {
|
|
1612
1613
|
let e = [];
|
|
1613
|
-
return
|
|
1614
|
+
return Oa.value.forEach((u) => {
|
|
1614
1615
|
let N = t.switchableTypesButtons[u];
|
|
1615
1616
|
e.push({
|
|
1616
1617
|
...N,
|
|
1617
1618
|
class: [N.class, u === we.value ? "is-current" : ""].join(" "),
|
|
1618
1619
|
events: {
|
|
1619
1620
|
click: ($) => {
|
|
1620
|
-
|
|
1621
|
+
var _, z;
|
|
1622
|
+
ne.value = u, typeof ((_ = t.switchableTypesButtons[u].events) == null ? void 0 : _.click) == "function" && t.switchableTypesButtons[u].events.click($), typeof ((z = t.events) == null ? void 0 : z.viewChanged) == "function" && t.events.viewChanged(u);
|
|
1621
1623
|
}
|
|
1622
1624
|
}
|
|
1623
1625
|
});
|
|
1624
1626
|
}), e;
|
|
1625
|
-
}),
|
|
1627
|
+
}), Fa = r(() => {
|
|
1626
1628
|
var e, u;
|
|
1627
1629
|
return {
|
|
1628
1630
|
...t.header,
|
|
1629
1631
|
topEndButtons: [
|
|
1630
1632
|
...typeof ((e = t.header) == null ? void 0 : e.topEndButtons) > "u" ? [] : (u = t.header) == null ? void 0 : u.topEndButtons,
|
|
1631
|
-
|
|
1633
|
+
...$a.value
|
|
1632
1634
|
]
|
|
1633
1635
|
};
|
|
1634
|
-
}),
|
|
1636
|
+
}), na = (e, u) => typeof t.useItemSlot == "function" ? t.useItemSlot({ item: e, index: u }) === !0 : t.useItemSlot, Pa = r(() => {
|
|
1635
1637
|
if (we.value !== Le.Calendar || !ze.value || typeof ze.value > "u") return [];
|
|
1636
1638
|
let e = [], u = [];
|
|
1637
1639
|
return s.value.forEach((N) => {
|
|
1638
|
-
var
|
|
1639
|
-
let $ = N[ze.value.key],
|
|
1640
|
-
(
|
|
1640
|
+
var h;
|
|
1641
|
+
let $ = N[ze.value.key], _ = ln("Y-m-d H:i:s", $), z;
|
|
1642
|
+
(h = Tt.value) != null && h.key && (z = N[Tt.value.key]);
|
|
1641
1643
|
let Xe = {};
|
|
1642
|
-
|
|
1643
|
-
const Ge = [
|
|
1644
|
+
z && t.calendarGroups && typeof t.calendarGroups[z] == "object" && (Xe = t.calendarGroups[z]);
|
|
1645
|
+
const Ge = [_, z].join("-");
|
|
1644
1646
|
let Ve = -1;
|
|
1645
1647
|
u.includes(Ge) ? Ve = u.findIndex((m) => m === Ge) : (Ve = u.length, u.push(Ge), e.push({
|
|
1646
1648
|
date: $,
|
|
@@ -1649,11 +1651,11 @@ const En = ["data-i", "data-draggable"], An = ["data-role", "data-i"], Vn = {
|
|
|
1649
1651
|
},
|
|
1650
1652
|
dot: {
|
|
1651
1653
|
...Xe,
|
|
1652
|
-
class: `lkt-calendar-group--${
|
|
1654
|
+
class: `lkt-calendar-group--${z}`
|
|
1653
1655
|
}
|
|
1654
1656
|
})), e[Ve].data.items.push(N);
|
|
1655
1657
|
}), e;
|
|
1656
|
-
}),
|
|
1658
|
+
}), _a = {
|
|
1657
1659
|
dayPicked: (e) => {
|
|
1658
1660
|
var u;
|
|
1659
1661
|
typeof ((u = t.calendar.events) == null ? void 0 : u.dayPicked) == "function" && t.calendar.events.dayPicked(e);
|
|
@@ -1664,14 +1666,14 @@ const En = ["data-i", "data-draggable"], An = ["data-role", "data-i"], Vn = {
|
|
|
1664
1666
|
}
|
|
1665
1667
|
};
|
|
1666
1668
|
return (e, u) => {
|
|
1667
|
-
const N = he("lkt-header"), $ = he("lkt-button"),
|
|
1669
|
+
const N = he("lkt-header"), $ = he("lkt-button"), _ = he("lkt-accordion"), z = he("lkt-calendar"), Xe = he("lkt-loader"), Ge = he("lkt-paginator");
|
|
1668
1670
|
return p(), C("section", {
|
|
1669
1671
|
ref_key: "element",
|
|
1670
1672
|
ref: ie,
|
|
1671
1673
|
class: "lkt-table-page",
|
|
1672
1674
|
id: "lkt-table-page-" + b(ee)
|
|
1673
1675
|
}, [
|
|
1674
|
-
|
|
1676
|
+
Ma.value ? (p(), O(N, me(X({ key: 0 }, Fa.value)), null, 16)) : ut.value || b(n).title ? (p(), C("header", {
|
|
1675
1677
|
key: 1,
|
|
1676
1678
|
class: Z(e.headerClass)
|
|
1677
1679
|
}, [
|
|
@@ -1693,16 +1695,16 @@ const En = ["data-i", "data-draggable"], An = ["data-role", "data-i"], Vn = {
|
|
|
1693
1695
|
default: P(() => {
|
|
1694
1696
|
var Ve;
|
|
1695
1697
|
return [
|
|
1696
|
-
Ye(ye("div",
|
|
1698
|
+
Ye(ye("div", Hn, [
|
|
1697
1699
|
e.groupButton !== !1 ? (p(), O($, X({
|
|
1698
1700
|
key: 0,
|
|
1699
1701
|
ref: "groupButton"
|
|
1700
1702
|
}, Ot.value, { class: "lkt-item-crud-group-button" }), {
|
|
1701
1703
|
split: P(() => [
|
|
1702
|
-
ye("div",
|
|
1704
|
+
ye("div", qn, [
|
|
1703
1705
|
Ye(ge($, X(W.value, {
|
|
1704
1706
|
checked: I.value,
|
|
1705
|
-
"onUpdate:checked": u[0] || (u[0] = (
|
|
1707
|
+
"onUpdate:checked": u[0] || (u[0] = (h) => I.value = h)
|
|
1706
1708
|
}), null, 16, ["checked"]), [
|
|
1707
1709
|
[We, Ee.value]
|
|
1708
1710
|
])
|
|
@@ -1732,9 +1734,9 @@ const En = ["data-i", "data-draggable"], An = ["data-role", "data-i"], Vn = {
|
|
|
1732
1734
|
onLoaded: Q,
|
|
1733
1735
|
onClick: Bt
|
|
1734
1736
|
}), {
|
|
1735
|
-
split: P(({ doClose:
|
|
1737
|
+
split: P(({ doClose: h, doRootClick: m }) => [
|
|
1736
1738
|
F(e.$slots, "button-save-split", {
|
|
1737
|
-
doClose:
|
|
1739
|
+
doClose: h,
|
|
1738
1740
|
doRootClick: m,
|
|
1739
1741
|
dataState: c.value,
|
|
1740
1742
|
onButtonLoading: J,
|
|
@@ -1758,7 +1760,7 @@ const En = ["data-i", "data-draggable"], An = ["data-role", "data-i"], Vn = {
|
|
|
1758
1760
|
config: Ie.value,
|
|
1759
1761
|
disabled: !Gt.value,
|
|
1760
1762
|
onClick: L,
|
|
1761
|
-
onAppend:
|
|
1763
|
+
onAppend: K
|
|
1762
1764
|
}, null, 8, ["config", "disabled"])) : R("", !0)
|
|
1763
1765
|
]),
|
|
1764
1766
|
_: 3
|
|
@@ -1788,9 +1790,9 @@ const En = ["data-i", "data-draggable"], An = ["data-role", "data-i"], Vn = {
|
|
|
1788
1790
|
onLoaded: Q,
|
|
1789
1791
|
onClick: Bt
|
|
1790
1792
|
}), {
|
|
1791
|
-
split: P(({ doClose:
|
|
1793
|
+
split: P(({ doClose: h, doRootClick: m }) => [
|
|
1792
1794
|
F(e.$slots, "button-save-split", {
|
|
1793
|
-
doClose:
|
|
1795
|
+
doClose: h,
|
|
1794
1796
|
doRootClick: m,
|
|
1795
1797
|
dataState: c.value,
|
|
1796
1798
|
onButtonLoading: J,
|
|
@@ -1814,12 +1816,12 @@ const En = ["data-i", "data-draggable"], An = ["data-role", "data-i"], Vn = {
|
|
|
1814
1816
|
config: Ie.value,
|
|
1815
1817
|
disabled: !Gt.value,
|
|
1816
1818
|
onClick: L,
|
|
1817
|
-
onAppend:
|
|
1819
|
+
onAppend: K
|
|
1818
1820
|
}, null, 8, ["config", "disabled"])) : R("", !0),
|
|
1819
|
-
ye("div",
|
|
1821
|
+
ye("div", Kn, [
|
|
1820
1822
|
Ye(ge($, X(W.value, {
|
|
1821
1823
|
checked: I.value,
|
|
1822
|
-
"onUpdate:checked": u[1] || (u[1] = (
|
|
1824
|
+
"onUpdate:checked": u[1] || (u[1] = (h) => I.value = h)
|
|
1823
1825
|
}), null, 16, ["checked"]), [
|
|
1824
1826
|
[We, Ee.value]
|
|
1825
1827
|
])
|
|
@@ -1827,30 +1829,30 @@ const En = ["data-i", "data-draggable"], An = ["data-role", "data-i"], Vn = {
|
|
|
1827
1829
|
], 512), [
|
|
1828
1830
|
[We, ft.value]
|
|
1829
1831
|
]),
|
|
1830
|
-
b(n).buttons ? (p(), C("div",
|
|
1832
|
+
b(n).buttons ? (p(), C("div", Xn, [
|
|
1831
1833
|
F(e.$slots, "buttons")
|
|
1832
1834
|
])) : R("", !0),
|
|
1833
|
-
V.value && b(n).filters ? (p(), C("div",
|
|
1835
|
+
V.value && b(n).filters ? (p(), C("div", Yn, [
|
|
1834
1836
|
F(e.$slots, "filters", {
|
|
1835
1837
|
items: s.value,
|
|
1836
1838
|
isLoading: g.value
|
|
1837
1839
|
})
|
|
1838
1840
|
])) : R("", !0),
|
|
1839
|
-
Ye(ye("div",
|
|
1840
|
-
we.value === b(Le).Table ? (p(), C("table",
|
|
1841
|
-
e.hideTableHeader ? R("", !0) : (p(), C("thead",
|
|
1841
|
+
Ye(ye("div", Wn, [
|
|
1842
|
+
we.value === b(Le).Table ? (p(), C("table", Jn, [
|
|
1843
|
+
e.hideTableHeader ? R("", !0) : (p(), C("thead", Qn, [
|
|
1842
1844
|
ye("tr", null, [
|
|
1843
|
-
st.value && I.value ? (p(), C("th",
|
|
1844
|
-
e.addNavigation && I.value ? (p(), C("th",
|
|
1845
|
-
(p(!0), C(
|
|
1846
|
-
vt.value.indexOf(
|
|
1845
|
+
st.value && I.value ? (p(), C("th", Zn)) : R("", !0),
|
|
1846
|
+
e.addNavigation && I.value ? (p(), C("th", xn)) : R("", !0),
|
|
1847
|
+
(p(!0), C(H, null, De(Fe.value, (h) => (p(), C(H, null, [
|
|
1848
|
+
vt.value.indexOf(h.key) === -1 ? (p(), O(zn, {
|
|
1847
1849
|
key: 0,
|
|
1848
|
-
column:
|
|
1849
|
-
"sort-by":
|
|
1850
|
+
column: h,
|
|
1851
|
+
"sort-by": S.value,
|
|
1850
1852
|
"sort-direction": D.value,
|
|
1851
1853
|
"amount-of-columns": e.columns.length,
|
|
1852
1854
|
items: s.value,
|
|
1853
|
-
onClick: (m) => d(
|
|
1855
|
+
onClick: (m) => d(h)
|
|
1854
1856
|
}, null, 8, ["column", "sort-by", "sort-direction", "amount-of-columns", "items", "onClick"])) : R("", !0)
|
|
1855
1857
|
], 64))), 256))
|
|
1856
1858
|
])
|
|
@@ -1861,12 +1863,12 @@ const En = ["data-i", "data-draggable"], An = ["data-role", "data-i"], Vn = {
|
|
|
1861
1863
|
id: "lkt-table-body-" + b(ee),
|
|
1862
1864
|
class: Z(e.itemsContainerClass)
|
|
1863
1865
|
}, [
|
|
1864
|
-
(p(!0), C(
|
|
1866
|
+
(p(!0), C(H, null, De(s.value, (h, m) => Ye((p(), O(Un, {
|
|
1865
1867
|
modelValue: s.value[m],
|
|
1866
1868
|
"onUpdate:modelValue": (M) => s.value[m] = M,
|
|
1867
|
-
key: At(
|
|
1869
|
+
key: At(h, m),
|
|
1868
1870
|
i: m,
|
|
1869
|
-
"is-draggable": E(
|
|
1871
|
+
"is-draggable": E(h),
|
|
1870
1872
|
sortable: st.value,
|
|
1871
1873
|
"visible-columns": Fe.value,
|
|
1872
1874
|
"empty-columns": vt.value,
|
|
@@ -1879,20 +1881,20 @@ const En = ["data-i", "data-draggable"], An = ["data-role", "data-i"], Vn = {
|
|
|
1879
1881
|
"edit-mode-enabled": I.value,
|
|
1880
1882
|
"has-inline-edit-perm": fe.value,
|
|
1881
1883
|
"row-display-type": e.rowDisplayType,
|
|
1882
|
-
"render-drag":
|
|
1883
|
-
"disabled-drag":
|
|
1884
|
+
"render-drag": La.value,
|
|
1885
|
+
"disabled-drag": Na.value,
|
|
1884
1886
|
"is-loading": g.value,
|
|
1885
1887
|
"item-container-class": e.itemContainerClass,
|
|
1886
1888
|
"item-slot-component": Ke.value,
|
|
1887
1889
|
"item-slot-data": Rt.value,
|
|
1888
1890
|
"item-slot-events": e.itemSlotEvents,
|
|
1889
1891
|
permissions: A.value,
|
|
1890
|
-
onClick:
|
|
1892
|
+
onClick: k,
|
|
1891
1893
|
onItemUp: jt,
|
|
1892
|
-
onItemDown:
|
|
1894
|
+
onItemDown: Ba,
|
|
1893
1895
|
onItemDrop: bt
|
|
1894
|
-
},
|
|
1895
|
-
b(n)[`item-${m}`] &&
|
|
1896
|
+
}, Ya({ _: 2 }, [
|
|
1897
|
+
b(n)[`item-${m}`] && na(e.row, m) ? {
|
|
1896
1898
|
name: `item-${m}`,
|
|
1897
1899
|
fn: P((M) => [
|
|
1898
1900
|
F(e.$slots, `item-${m}`, me({
|
|
@@ -1908,7 +1910,7 @@ const En = ["data-i", "data-draggable"], An = ["data-role", "data-i"], Vn = {
|
|
|
1908
1910
|
}))
|
|
1909
1911
|
]),
|
|
1910
1912
|
key: "0"
|
|
1911
|
-
} : b(n).item &&
|
|
1913
|
+
} : b(n).item && na(e.row, m) ? {
|
|
1912
1914
|
name: "item",
|
|
1913
1915
|
fn: P((M) => [
|
|
1914
1916
|
F(e.$slots, "item", me({
|
|
@@ -1938,7 +1940,7 @@ const En = ["data-i", "data-draggable"], An = ["data-role", "data-i"], Vn = {
|
|
|
1938
1940
|
]), 1032, ["modelValue", "onUpdate:modelValue", "i", "is-draggable", "sortable", "visible-columns", "empty-columns", "add-navigation", "latest-row", "can-drop", "can-edit", "can-read", "can-create", "edit-mode-enabled", "has-inline-edit-perm", "row-display-type", "render-drag", "disabled-drag", "is-loading", "item-container-class", "item-slot-component", "item-slot-data", "item-slot-events", "permissions"])), [
|
|
1939
1941
|
[We, kt(s.value[m], m)]
|
|
1940
1942
|
])), 128))
|
|
1941
|
-
], 10,
|
|
1943
|
+
], 10, el)
|
|
1942
1944
|
])) : we.value === b(Le).Item ? (p(), C("div", {
|
|
1943
1945
|
key: 1,
|
|
1944
1946
|
ref_key: "tableBody",
|
|
@@ -1946,19 +1948,20 @@ const En = ["data-i", "data-draggable"], An = ["data-role", "data-i"], Vn = {
|
|
|
1946
1948
|
id: "lkt-table-body-" + b(ee),
|
|
1947
1949
|
class: Z(["lkt-table-items-container", e.itemsContainerClass])
|
|
1948
1950
|
}, [
|
|
1949
|
-
(p(!0), C(
|
|
1950
|
-
key: At(
|
|
1951
|
+
(p(!0), C(H, null, De(s.value, (h, m) => (p(), C(H, {
|
|
1952
|
+
key: At(h, m)
|
|
1951
1953
|
}, [
|
|
1952
|
-
!e.skipTableItemsContainer && kt(
|
|
1954
|
+
!e.skipTableItemsContainer && kt(h, m) ? (p(), C("div", {
|
|
1953
1955
|
key: 0,
|
|
1954
|
-
class: Z(["lkt-table-item", Vt(
|
|
1956
|
+
class: Z(["lkt-table-item", Vt(h, m)]),
|
|
1957
|
+
style: ra(aa(h, m)),
|
|
1955
1958
|
"data-i": m
|
|
1956
1959
|
}, [
|
|
1957
1960
|
Ke.value ? (p(), O(be(Ke.value), X({
|
|
1958
1961
|
key: 0,
|
|
1959
1962
|
ref_for: !0
|
|
1960
1963
|
}, {
|
|
1961
|
-
item:
|
|
1964
|
+
item: h,
|
|
1962
1965
|
index: m,
|
|
1963
1966
|
editing: I.value,
|
|
1964
1967
|
perms: A.value,
|
|
@@ -1966,7 +1969,7 @@ const En = ["data-i", "data-draggable"], An = ["data-role", "data-i"], Vn = {
|
|
|
1966
1969
|
events: e.itemSlotEvents
|
|
1967
1970
|
}), null, 16)) : F(e.$slots, "item", me({
|
|
1968
1971
|
key: 1,
|
|
1969
|
-
[e.slotItemVar || ""]:
|
|
1972
|
+
[e.slotItemVar || ""]: h,
|
|
1970
1973
|
index: m,
|
|
1971
1974
|
editing: I.value,
|
|
1972
1975
|
canCreate: ve.value,
|
|
@@ -1976,11 +1979,11 @@ const En = ["data-i", "data-draggable"], An = ["data-role", "data-i"], Vn = {
|
|
|
1976
1979
|
isLoading: g.value,
|
|
1977
1980
|
doDrop: () => bt(m)
|
|
1978
1981
|
}))
|
|
1979
|
-
],
|
|
1982
|
+
], 14, al)) : kt(h, m) ? F(e.$slots, "item", me({
|
|
1980
1983
|
key: 1,
|
|
1981
|
-
class: Vt(
|
|
1984
|
+
class: Vt(h, m),
|
|
1982
1985
|
dataI: m,
|
|
1983
|
-
[e.slotItemVar || ""]:
|
|
1986
|
+
[e.slotItemVar || ""]: h,
|
|
1984
1987
|
index: m,
|
|
1985
1988
|
editing: I.value,
|
|
1986
1989
|
canCreate: ve.value,
|
|
@@ -1991,34 +1994,34 @@ const En = ["data-i", "data-draggable"], An = ["data-role", "data-i"], Vn = {
|
|
|
1991
1994
|
doDrop: () => bt(m)
|
|
1992
1995
|
})) : R("", !0)
|
|
1993
1996
|
], 64))), 128))
|
|
1994
|
-
], 10,
|
|
1997
|
+
], 10, tl)) : we.value === b(Le).Accordion ? (p(), C("div", {
|
|
1995
1998
|
key: 2,
|
|
1996
1999
|
ref_key: "tableBody",
|
|
1997
2000
|
ref: v,
|
|
1998
2001
|
id: "lkt-table-body-" + b(ee),
|
|
1999
2002
|
class: Z(["lkt-table-items-container", e.itemsContainerClass])
|
|
2000
2003
|
}, [
|
|
2001
|
-
(p(!0), C(
|
|
2002
|
-
[b(Te).Auto, b(Te).PreferCustomItem].includes(e.rowDisplayType) && b(n)[It(
|
|
2004
|
+
(p(!0), C(H, null, De(s.value, (h, m) => (p(), C(H, null, [
|
|
2005
|
+
[b(Te).Auto, b(Te).PreferCustomItem].includes(e.rowDisplayType) && b(n)[It(h, m)] ? F(e.$slots, It(h, m), {
|
|
2003
2006
|
key: 0,
|
|
2004
|
-
item:
|
|
2007
|
+
item: h,
|
|
2005
2008
|
index: m,
|
|
2006
2009
|
editing: I.value,
|
|
2007
2010
|
isLoading: g.value
|
|
2008
2011
|
}) : [b(Te).Auto, b(Te).PreferCustomItem].includes(e.rowDisplayType) && b(n)[`item-${m}`] ? F(e.$slots, `item-${m}`, {
|
|
2009
2012
|
key: 1,
|
|
2010
|
-
item:
|
|
2013
|
+
item: h,
|
|
2011
2014
|
index: m,
|
|
2012
2015
|
editing: I.value,
|
|
2013
2016
|
isLoading: g.value
|
|
2014
|
-
}) : (p(), C(
|
|
2015
|
-
kt(
|
|
2016
|
-
class: ["lkt-table-item", Vt(
|
|
2017
|
+
}) : (p(), C(H, { key: 2 }, [
|
|
2018
|
+
kt(h, m) ? (p(), O(_, X({
|
|
2019
|
+
class: ["lkt-table-item", Vt(h, m)],
|
|
2017
2020
|
"data-i": m,
|
|
2018
|
-
key: At(
|
|
2021
|
+
key: At(h, m)
|
|
2019
2022
|
}, { ref_for: !0 }, {
|
|
2020
2023
|
...e.accordion,
|
|
2021
|
-
title:
|
|
2024
|
+
title: Aa(h)
|
|
2022
2025
|
}), {
|
|
2023
2026
|
header: P(() => [
|
|
2024
2027
|
ge(Zt, {
|
|
@@ -2032,20 +2035,20 @@ const En = ["data-i", "data-draggable"], An = ["data-role", "data-i"], Vn = {
|
|
|
2032
2035
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "i", "column", "columns", "edit-mode-enabled", "has-inline-edit-perm"])
|
|
2033
2036
|
]),
|
|
2034
2037
|
default: P(() => [
|
|
2035
|
-
(p(!0), C(
|
|
2036
|
-
var dt,
|
|
2037
|
-
return p(), C(
|
|
2038
|
-
M.key !== ((dt = Ae.value) == null ? void 0 : dt.key) && e.$slots[M.key] && b(
|
|
2038
|
+
(p(!0), C(H, null, De(Fe.value, (M) => {
|
|
2039
|
+
var dt, ia;
|
|
2040
|
+
return p(), C(H, null, [
|
|
2041
|
+
M.key !== ((dt = Ae.value) == null ? void 0 : dt.key) && e.$slots[M.key] && b(Ta)(M, s.value[m]) ? F(e.$slots, M.key, {
|
|
2039
2042
|
key: 0,
|
|
2040
2043
|
value: s.value[m][M.key],
|
|
2041
2044
|
item: s.value[m],
|
|
2042
2045
|
column: M,
|
|
2043
2046
|
i: m
|
|
2044
|
-
}) : (p(), C(
|
|
2045
|
-
M.key !== ((
|
|
2047
|
+
}) : (p(), C(H, { key: 1 }, [
|
|
2048
|
+
M.key !== ((ia = Ae.value) == null ? void 0 : ia.key) ? (p(), O(Zt, {
|
|
2046
2049
|
key: 0,
|
|
2047
2050
|
modelValue: s.value[m],
|
|
2048
|
-
"onUpdate:modelValue": (
|
|
2051
|
+
"onUpdate:modelValue": (Ua) => s.value[m] = Ua,
|
|
2049
2052
|
i: m,
|
|
2050
2053
|
column: M,
|
|
2051
2054
|
columns: Fe.value,
|
|
@@ -2060,24 +2063,25 @@ const En = ["data-i", "data-draggable"], An = ["data-role", "data-i"], Vn = {
|
|
|
2060
2063
|
}, 1040, ["class", "data-i"])) : R("", !0)
|
|
2061
2064
|
], 64))
|
|
2062
2065
|
], 64))), 256))
|
|
2063
|
-
], 10,
|
|
2066
|
+
], 10, nl)) : Ea.value ? (p(), O(be(we.value), {
|
|
2064
2067
|
key: 3,
|
|
2065
2068
|
class: Z(["lkt-table-items-container", e.itemsContainerClass])
|
|
2066
2069
|
}, {
|
|
2067
2070
|
default: P(() => [
|
|
2068
|
-
(p(!0), C(
|
|
2069
|
-
key: At(
|
|
2071
|
+
(p(!0), C(H, null, De(s.value, (h, m) => (p(), C(H, {
|
|
2072
|
+
key: At(h, m)
|
|
2070
2073
|
}, [
|
|
2071
|
-
kt(
|
|
2074
|
+
kt(h, m) ? (p(), C("li", {
|
|
2072
2075
|
key: 0,
|
|
2073
|
-
class: Z(["lkt-table-item", Vt(
|
|
2074
|
-
"data-i": m
|
|
2076
|
+
class: Z(["lkt-table-item", Vt(h, m)]),
|
|
2077
|
+
"data-i": m,
|
|
2078
|
+
style: ra(aa(h, m))
|
|
2075
2079
|
}, [
|
|
2076
2080
|
Ke.value ? (p(), O(be(Ke.value), X({
|
|
2077
2081
|
key: 0,
|
|
2078
2082
|
ref_for: !0
|
|
2079
2083
|
}, {
|
|
2080
|
-
item:
|
|
2084
|
+
item: h,
|
|
2081
2085
|
index: m,
|
|
2082
2086
|
editing: I.value,
|
|
2083
2087
|
perms: A.value,
|
|
@@ -2085,7 +2089,7 @@ const En = ["data-i", "data-draggable"], An = ["data-role", "data-i"], Vn = {
|
|
|
2085
2089
|
events: e.itemSlotEvents
|
|
2086
2090
|
}), null, 16)) : F(e.$slots, "item", me({
|
|
2087
2091
|
key: 1,
|
|
2088
|
-
[e.slotItemVar || ""]:
|
|
2092
|
+
[e.slotItemVar || ""]: h,
|
|
2089
2093
|
index: m,
|
|
2090
2094
|
editing: I.value,
|
|
2091
2095
|
canCreate: ve.value,
|
|
@@ -2095,7 +2099,7 @@ const En = ["data-i", "data-draggable"], An = ["data-role", "data-i"], Vn = {
|
|
|
2095
2099
|
isLoading: g.value,
|
|
2096
2100
|
doDrop: () => bt(m)
|
|
2097
2101
|
}))
|
|
2098
|
-
],
|
|
2102
|
+
], 14, ll)) : R("", !0)
|
|
2099
2103
|
], 64))), 128))
|
|
2100
2104
|
]),
|
|
2101
2105
|
_: 3
|
|
@@ -2106,39 +2110,39 @@ const En = ["data-i", "data-draggable"], An = ["data-role", "data-i"], Vn = {
|
|
|
2106
2110
|
id: "lkt-table-body-" + b(ee),
|
|
2107
2111
|
class: Z(["lkt-table-items-container", e.itemsContainerClass])
|
|
2108
2112
|
}, [
|
|
2109
|
-
ge(b(
|
|
2113
|
+
ge(b(kn), X({
|
|
2110
2114
|
modelValue: se.value,
|
|
2111
|
-
"onUpdate:modelValue": u[2] || (u[2] = (
|
|
2115
|
+
"onUpdate:modelValue": u[2] || (u[2] = (h) => se.value = h)
|
|
2112
2116
|
}, e.carousel, {
|
|
2113
2117
|
"wrap-around": ((Ve = e.carousel) == null ? void 0 : Ve.infinite) === !0
|
|
2114
2118
|
}), {
|
|
2115
2119
|
addons: P(() => [
|
|
2116
|
-
ge(b(
|
|
2117
|
-
ge(b(
|
|
2120
|
+
ge(b(wn)),
|
|
2121
|
+
ge(b(Dn))
|
|
2118
2122
|
]),
|
|
2119
2123
|
default: P(() => [
|
|
2120
|
-
(p(!0), C(
|
|
2121
|
-
key:
|
|
2124
|
+
(p(!0), C(H, null, De(ce.value, (h, m) => (p(), O(b(fa), {
|
|
2125
|
+
key: h,
|
|
2122
2126
|
index: m
|
|
2123
2127
|
}, {
|
|
2124
2128
|
default: P(() => [
|
|
2125
|
-
ye("div",
|
|
2126
|
-
F(e.$slots,
|
|
2129
|
+
ye("div", il, [
|
|
2130
|
+
F(e.$slots, h)
|
|
2127
2131
|
])
|
|
2128
2132
|
]),
|
|
2129
2133
|
_: 2
|
|
2130
2134
|
}, 1032, ["index"]))), 128)),
|
|
2131
|
-
(p(!0), C(
|
|
2135
|
+
(p(!0), C(H, null, De(s.value, (h, m) => (p(), O(b(fa), {
|
|
2132
2136
|
key: e.slide,
|
|
2133
2137
|
index: m
|
|
2134
2138
|
}, {
|
|
2135
2139
|
default: P(() => [
|
|
2136
|
-
ye("div",
|
|
2140
|
+
ye("div", rl, [
|
|
2137
2141
|
Ke.value ? (p(), O(be(Ke.value), X({
|
|
2138
2142
|
key: 0,
|
|
2139
2143
|
ref_for: !0
|
|
2140
2144
|
}, {
|
|
2141
|
-
item:
|
|
2145
|
+
item: h,
|
|
2142
2146
|
index: m,
|
|
2143
2147
|
editing: I.value,
|
|
2144
2148
|
perms: A.value,
|
|
@@ -2146,7 +2150,7 @@ const En = ["data-i", "data-draggable"], An = ["data-role", "data-i"], Vn = {
|
|
|
2146
2150
|
events: e.itemSlotEvents
|
|
2147
2151
|
}), null, 16)) : F(e.$slots, "item", me({
|
|
2148
2152
|
key: 1,
|
|
2149
|
-
[e.slotItemVar || ""]:
|
|
2153
|
+
[e.slotItemVar || ""]: h,
|
|
2150
2154
|
index: m,
|
|
2151
2155
|
editing: I.value,
|
|
2152
2156
|
canCreate: ve.value,
|
|
@@ -2163,38 +2167,38 @@ const En = ["data-i", "data-draggable"], An = ["data-role", "data-i"], Vn = {
|
|
|
2163
2167
|
]),
|
|
2164
2168
|
_: 3
|
|
2165
2169
|
}, 16, ["modelValue", "wrap-around"])
|
|
2166
|
-
], 10,
|
|
2170
|
+
], 10, ol)) : we.value === b(Le).Calendar ? (p(), C("div", {
|
|
2167
2171
|
key: 5,
|
|
2168
2172
|
ref_key: "tableBody",
|
|
2169
2173
|
ref: v,
|
|
2170
2174
|
id: "lkt-table-body-" + b(ee),
|
|
2171
2175
|
class: Z(["lkt-table-items-container", e.itemsContainerClass])
|
|
2172
2176
|
}, [
|
|
2173
|
-
ge(
|
|
2177
|
+
ge(z, me(ga({
|
|
2174
2178
|
...e.calendar,
|
|
2175
|
-
items:
|
|
2176
|
-
events:
|
|
2179
|
+
items: Pa.value,
|
|
2180
|
+
events: _a
|
|
2177
2181
|
})), null, 16)
|
|
2178
|
-
], 10,
|
|
2182
|
+
], 10, ul)) : R("", !0)
|
|
2179
2183
|
], 512), [
|
|
2180
2184
|
[We, gt.value]
|
|
2181
2185
|
]),
|
|
2182
|
-
!g.value && s.value.length === 0 ? (p(), C("div",
|
|
2183
|
-
b(n).empty ? F(e.$slots, "empty", { key: 0 }) :
|
|
2186
|
+
!g.value && s.value.length === 0 ? (p(), C("div", sl, [
|
|
2187
|
+
b(n).empty ? F(e.$slots, "empty", { key: 0 }) : Va.value ? (p(), O(be(Ra.value), {
|
|
2184
2188
|
key: 1,
|
|
2185
2189
|
message: e.noResultsText
|
|
2186
|
-
}, null, 8, ["message"])) : e.noResultsText ? (p(), C(
|
|
2190
|
+
}, null, 8, ["message"])) : e.noResultsText ? (p(), C(H, { key: 2 }, [
|
|
2187
2191
|
et(tt(e.noResultsText), 1)
|
|
2188
2192
|
], 64)) : R("", !0)
|
|
2189
2193
|
])) : R("", !0),
|
|
2190
2194
|
g.value ? (p(), O(Xe, { key: 3 })) : R("", !0),
|
|
2191
|
-
ht.value || b(n).bottomButtons ? (p(), C("div",
|
|
2195
|
+
ht.value || b(n).bottomButtons ? (p(), C("div", dl, [
|
|
2192
2196
|
ht.value && s.value.length >= e.requiredItemsForBottomCreate ? (p(), O(Yt, {
|
|
2193
2197
|
key: 0,
|
|
2194
2198
|
config: Ie.value,
|
|
2195
2199
|
disabled: !Gt.value,
|
|
2196
2200
|
onClick: L,
|
|
2197
|
-
onAppend:
|
|
2201
|
+
onAppend: K
|
|
2198
2202
|
}, null, 8, ["config", "disabled"])) : R("", !0),
|
|
2199
2203
|
F(e.$slots, "bottom-buttons")
|
|
2200
2204
|
])) : R("", !0),
|
|
@@ -2205,11 +2209,11 @@ const En = ["data-i", "data-draggable"], An = ["data-role", "data-i"], Vn = {
|
|
|
2205
2209
|
}, {
|
|
2206
2210
|
...e.paginator,
|
|
2207
2211
|
timelineOldestDate: de.value,
|
|
2208
|
-
timelineNewestDate:
|
|
2212
|
+
timelineNewestDate: q.value,
|
|
2209
2213
|
timelineVisibleDate: $e.value
|
|
2210
2214
|
}, {
|
|
2211
2215
|
modelValue: f.value,
|
|
2212
|
-
"onUpdate:modelValue": u[3] || (u[3] = (
|
|
2216
|
+
"onUpdate:modelValue": u[3] || (u[3] = (h) => f.value = h),
|
|
2213
2217
|
onLoading: ot,
|
|
2214
2218
|
onPerms: $t,
|
|
2215
2219
|
onResponse: Ce
|
|
@@ -2219,22 +2223,22 @@ const En = ["data-i", "data-draggable"], An = ["data-role", "data-i"], Vn = {
|
|
|
2219
2223
|
}),
|
|
2220
2224
|
_: 3
|
|
2221
2225
|
}, 8, ["class"]))
|
|
2222
|
-
], 8,
|
|
2226
|
+
], 8, Gn);
|
|
2223
2227
|
};
|
|
2224
2228
|
}
|
|
2225
|
-
}),
|
|
2229
|
+
}), hl = {
|
|
2226
2230
|
install: (a) => {
|
|
2227
|
-
a.component("lkt-table") === void 0 && a.component("lkt-table",
|
|
2231
|
+
a.component("lkt-table") === void 0 && a.component("lkt-table", cl);
|
|
2228
2232
|
}
|
|
2229
|
-
},
|
|
2233
|
+
}, kl = (a) => (ke.navButtonSlot = a, !0), Sl = (a) => (ke.createButtonSlot = a, !0), Cl = (a) => {
|
|
2230
2234
|
ke.defaultEmptySlot = a;
|
|
2231
2235
|
};
|
|
2232
2236
|
export {
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2237
|
+
Tl as Column,
|
|
2238
|
+
Il as createColumn,
|
|
2239
|
+
hl as default,
|
|
2240
|
+
Tn as defaultTableSorter,
|
|
2241
|
+
Sl as setTableCreateButtonSlot,
|
|
2242
|
+
Cl as setTableEmptySlot,
|
|
2243
|
+
kl as setTableNavButtonSlot
|
|
2240
2244
|
};
|