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