@citruslime/ui 3.0.0-beta.1 → 3.0.0-beta.3
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/citrus-lime-ui.es.js +614 -618
- package/dist/citrus-lime-ui.umd.js +5 -5
- package/dist/components/input-v2/input-layout-wrapper/cl-ui-input-layout-wrapper.vue.d.ts +18 -4
- package/dist/components/toggle/cl-ui-toggle-button.vue.d.ts +40 -0
- package/dist/components/toggle/cl-ui-toggle.vue.d.ts +58 -0
- package/dist/components/toggle/index.d.ts +2 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Icon as
|
|
2
|
-
import { defineComponent as K, ref as R, openBlock as p, createElementBlock as w, renderSlot as U, normalizeProps as me, guardReactiveProps as he, Fragment as J, createElementVNode as v, normalizeClass as B, createVNode as N, unref as g, Transition as Ee, withCtx as H, withDirectives as X, mergeProps as ce, vShow as ae, createBlock as
|
|
1
|
+
import { Icon as _ } from "@iconify/vue";
|
|
2
|
+
import { defineComponent as K, ref as R, openBlock as p, createElementBlock as w, renderSlot as U, normalizeProps as me, guardReactiveProps as he, Fragment as J, createElementVNode as v, normalizeClass as B, createVNode as N, unref as g, Transition as Ee, withCtx as H, withDirectives as X, mergeProps as ce, vShow as ae, createBlock as Z, Teleport as bl, renderList as ue, toDisplayString as I, createCommentVNode as z, computed as A, mergeModels as Oe, useModel as Ke, createSlots as Le, vModelDynamic as xl, watch as ne, toRefs as ut, withKeys as ge, onMounted as _e, onUnmounted as il, withModifiers as oe, nextTick as je, resolveComponent as yl, createTextVNode as pe, vModelCheckbox as dt, inject as ft, watchEffect as pt, toValue as Cl, toHandlers as mt, getCurrentInstance as vt, version as ht, useCssVars as gt, vModelText as bt, pushScopeId as yt, popScopeId as wt, provide as kt, normalizeStyle as $t } from "vue";
|
|
3
3
|
import { generateStringId as St, highlightText as Tt, validateEmail as Ct } from "@citruslime/utils";
|
|
4
4
|
import { unrefElement as Ot, tryOnScopeDispose as Et, onClickOutside as wl, useTimeoutFn as Hl, useMouseInElement as Ft, useFocusWithin as Dt, useMediaQuery as Nt, useDebounceFn as At, useWindowSize as Vt } from "@vueuse/core";
|
|
5
5
|
import { useI18n as fe, createI18n as qt } from "vue-i18n";
|
|
@@ -52,7 +52,7 @@ const It = { class: "cl-overflow-hidden" }, Rt = /* @__PURE__ */ K({
|
|
|
52
52
|
onClick: n
|
|
53
53
|
}, [
|
|
54
54
|
v("div", Mt, [
|
|
55
|
-
N(g(
|
|
55
|
+
N(g(_), {
|
|
56
56
|
class: B(["cl-duration-300 cl-ease-in-out cl-text-grey-3 cl-transform-gpu cl-transition-transform", {
|
|
57
57
|
"cl-rotate-180": r.open
|
|
58
58
|
}]),
|
|
@@ -108,7 +108,7 @@ const Ht = ["onClick"], Gt = { class: "cl-flex-1 cl-select-none cl-text-ellipsis
|
|
|
108
108
|
position: { default: "top-right" }
|
|
109
109
|
},
|
|
110
110
|
setup(o) {
|
|
111
|
-
return (e, t) => (p(),
|
|
111
|
+
return (e, t) => (p(), Z(bl, { to: e.container }, [
|
|
112
112
|
v("div", {
|
|
113
113
|
class: B(["cl-fixed cl-w-80 cl-z-50", {
|
|
114
114
|
"cl-top-5 cl-left-5": e.position === "top-left",
|
|
@@ -131,7 +131,7 @@ const Ht = ["onClick"], Gt = { class: "cl-flex-1 cl-select-none cl-text-ellipsis
|
|
|
131
131
|
onClick: (r) => g(Gl)(l)
|
|
132
132
|
}), [
|
|
133
133
|
v("span", Gt, I(l.message), 1),
|
|
134
|
-
N(g(
|
|
134
|
+
N(g(_), {
|
|
135
135
|
class: "cl-inline-block cl-opacity-0 cl-transition-opacity group-hover:cl-opacity-100",
|
|
136
136
|
icon: "ph:x",
|
|
137
137
|
size: 16,
|
|
@@ -174,11 +174,11 @@ const Ht = ["onClick"], Gt = { class: "cl-flex-1 cl-select-none cl-text-ellipsis
|
|
|
174
174
|
])
|
|
175
175
|
], 64));
|
|
176
176
|
}
|
|
177
|
-
}),
|
|
177
|
+
}), _t = {}, Zt = { class: "loading-spinner" };
|
|
178
178
|
function Qt(o, e) {
|
|
179
|
-
return p(), w("div",
|
|
179
|
+
return p(), w("div", Zt);
|
|
180
180
|
}
|
|
181
|
-
const sl = /* @__PURE__ */ Se(
|
|
181
|
+
const sl = /* @__PURE__ */ Se(_t, [["render", Qt], ["__scopeId", "data-v-a21dc5d2"]]), Yt = ["disabled"], ye = /* @__PURE__ */ K({
|
|
182
182
|
inheritAttrs: !1,
|
|
183
183
|
__name: "cl-ui-button",
|
|
184
184
|
props: {
|
|
@@ -283,42 +283,37 @@ const sl = /* @__PURE__ */ Se(Zt, [["render", Qt], ["__scopeId", "data-v-a21dc5d
|
|
|
283
283
|
"small",
|
|
284
284
|
"medium",
|
|
285
285
|
"large"
|
|
286
|
-
], oo = { class: "cl-w-full sm:cl-w-auto" }, ao = { class: "cl-flex cl-flex-
|
|
286
|
+
], oo = { class: "cl-w-full sm:cl-w-auto" }, ao = { class: "cl-flex cl-flex-col cl-gap-2 cl-nowrap sm:cl-gap-0" }, no = { class: "cl-basis-1/2 cl-flex cl-flex-nowrap cl-flex-row cl-gap-2 cl-items-center cl-justify-start cl-text-grey-4 cl-text-xs cl-tracking-widest cl-w-full" }, ro = {
|
|
287
287
|
key: 0,
|
|
288
288
|
class: "cl-self-center"
|
|
289
|
-
},
|
|
289
|
+
}, io = {
|
|
290
290
|
key: 1,
|
|
291
291
|
class: "cl-text-danger-dark"
|
|
292
|
-
},
|
|
292
|
+
}, so = { class: "cl-basis-1/2 cl-w-full" }, co = {
|
|
293
293
|
key: 0,
|
|
294
294
|
class: "cl-pt-1 cl-w-full"
|
|
295
|
-
},
|
|
295
|
+
}, uo = { class: "cl-flex cl-flex-col cl-flex-nowrap cl-gap-1 cl-w-full" }, kl = /* @__PURE__ */ K({
|
|
296
296
|
__name: "cl-ui-input-layout-wrapper",
|
|
297
297
|
props: {
|
|
298
298
|
showRequiredAsterisk: { type: Boolean },
|
|
299
|
-
errors: {}
|
|
299
|
+
errors: { default: () => [] }
|
|
300
300
|
},
|
|
301
301
|
setup(o) {
|
|
302
302
|
const e = o, t = A(() => Object.keys(e.errors).length > 0);
|
|
303
303
|
return (l, n) => (p(), w("div", oo, [
|
|
304
304
|
v("div", ao, [
|
|
305
|
-
v("div",
|
|
306
|
-
|
|
307
|
-
"cl-justify-between": !!l.$slots.label,
|
|
308
|
-
"cl-justify-end": !l.$slots.label
|
|
309
|
-
}])
|
|
310
|
-
}, [
|
|
311
|
-
l.$slots.label ? (p(), w("span", no, [
|
|
305
|
+
v("div", no, [
|
|
306
|
+
l.$slots.label ? (p(), w("span", ro, [
|
|
312
307
|
U(l.$slots, "label")
|
|
313
308
|
])) : z("", !0),
|
|
314
|
-
l.showRequiredAsterisk ? (p(), w("span",
|
|
315
|
-
]
|
|
316
|
-
v("div",
|
|
309
|
+
l.showRequiredAsterisk ? (p(), w("span", io, "*")) : z("", !0)
|
|
310
|
+
]),
|
|
311
|
+
v("div", so, [
|
|
317
312
|
U(l.$slots, "default")
|
|
318
313
|
])
|
|
319
314
|
]),
|
|
320
|
-
t.value ? (p(), w("div",
|
|
321
|
-
v("div",
|
|
315
|
+
t.value ? (p(), w("div", co, [
|
|
316
|
+
v("div", uo, [
|
|
322
317
|
(p(!0), w(J, null, ue(l.errors, (r, a) => (p(), w("div", {
|
|
323
318
|
key: a,
|
|
324
319
|
class: "cl-bg-danger-light cl-px-2 cl-rounded-md cl-text-center cl-text-danger-default cl-text-xs cl-w-full cl-whitespace-pre-line"
|
|
@@ -327,7 +322,7 @@ const sl = /* @__PURE__ */ Se(Zt, [["render", Qt], ["__scopeId", "data-v-a21dc5d
|
|
|
327
322
|
])) : z("", !0)
|
|
328
323
|
]));
|
|
329
324
|
}
|
|
330
|
-
}),
|
|
325
|
+
}), fo = ["type", "maxlength", "required", "disabled", "placeholder"], Ne = /* @__PURE__ */ K({
|
|
331
326
|
inheritAttrs: !1,
|
|
332
327
|
__name: "cl-ui-input-text",
|
|
333
328
|
props: /* @__PURE__ */ Oe({
|
|
@@ -353,7 +348,7 @@ const sl = /* @__PURE__ */ Se(Zt, [["render", Qt], ["__scopeId", "data-v-a21dc5d
|
|
|
353
348
|
var a;
|
|
354
349
|
return (a = r.value) == null ? void 0 : a.blur();
|
|
355
350
|
}
|
|
356
|
-
}), (a, u) => (p(),
|
|
351
|
+
}), (a, u) => (p(), Z(kl, {
|
|
357
352
|
"show-required-asterisk": a.required,
|
|
358
353
|
errors: a.errors
|
|
359
354
|
}, Le({
|
|
@@ -370,7 +365,7 @@ const sl = /* @__PURE__ */ Se(Zt, [["render", Qt], ["__scopeId", "data-v-a21dc5d
|
|
|
370
365
|
placeholder: a.placeholder ?? void 0,
|
|
371
366
|
onFocus: u[1] || (u[1] = (s) => n("focus")),
|
|
372
367
|
onBlur: u[2] || (u[2] = (s) => n("blur"))
|
|
373
|
-
}), null, 16,
|
|
368
|
+
}), null, 16, fo), [
|
|
374
369
|
[xl, l.value]
|
|
375
370
|
])
|
|
376
371
|
]),
|
|
@@ -390,8 +385,8 @@ const sl = /* @__PURE__ */ Se(Zt, [["render", Qt], ["__scopeId", "data-v-a21dc5d
|
|
|
390
385
|
* tabbable 6.2.0
|
|
391
386
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
392
387
|
*/
|
|
393
|
-
var Kl = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])", "a[href]:not([inert])", "button:not([inert])", "[tabindex]:not(slot):not([inert])", "audio[controls]:not([inert])", "video[controls]:not([inert])", '[contenteditable]:not([contenteditable="false"]):not([inert])', "details>summary:first-of-type:not([inert])", "details:not([inert])"], ll = /* @__PURE__ */ Kl.join(","),
|
|
394
|
-
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, tl = !
|
|
388
|
+
var Kl = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])", "a[href]:not([inert])", "button:not([inert])", "[tabindex]:not(slot):not([inert])", "audio[controls]:not([inert])", "video[controls]:not([inert])", '[contenteditable]:not([contenteditable="false"]):not([inert])', "details>summary:first-of-type:not([inert])", "details:not([inert])"], ll = /* @__PURE__ */ Kl.join(","), _l = typeof Element > "u", Ie = _l ? function() {
|
|
389
|
+
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, tl = !_l && Element.prototype.getRootNode ? function(o) {
|
|
395
390
|
var e;
|
|
396
391
|
return o == null || (e = o.getRootNode) === null || e === void 0 ? void 0 : e.call(o);
|
|
397
392
|
} : function(o) {
|
|
@@ -401,10 +396,10 @@ var Kl = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
401
396
|
t === void 0 && (t = !0);
|
|
402
397
|
var n = e == null || (l = e.getAttribute) === null || l === void 0 ? void 0 : l.call(e, "inert"), r = n === "" || n === "true", a = r || t && e && o(e.parentNode);
|
|
403
398
|
return a;
|
|
404
|
-
},
|
|
399
|
+
}, po = function(e) {
|
|
405
400
|
var t, l = e == null || (t = e.getAttribute) === null || t === void 0 ? void 0 : t.call(e, "contenteditable");
|
|
406
401
|
return l === "" || l === "true";
|
|
407
|
-
},
|
|
402
|
+
}, Zl = function(e, t, l) {
|
|
408
403
|
if (ol(e))
|
|
409
404
|
return [];
|
|
410
405
|
var n = Array.prototype.slice.apply(e.querySelectorAll(ll));
|
|
@@ -440,26 +435,26 @@ var Kl = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
440
435
|
}, Ae = function(e) {
|
|
441
436
|
if (!e)
|
|
442
437
|
throw new Error("No node provided");
|
|
443
|
-
return e.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName) ||
|
|
444
|
-
},
|
|
438
|
+
return e.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName) || po(e)) && !Yl(e) ? 0 : e.tabIndex;
|
|
439
|
+
}, mo = function(e, t) {
|
|
445
440
|
var l = Ae(e);
|
|
446
441
|
return l < 0 && t && !Yl(e) ? 0 : l;
|
|
447
|
-
},
|
|
442
|
+
}, vo = function(e, t) {
|
|
448
443
|
return e.tabIndex === t.tabIndex ? e.documentOrder - t.documentOrder : e.tabIndex - t.tabIndex;
|
|
449
444
|
}, Jl = function(e) {
|
|
450
445
|
return e.tagName === "INPUT";
|
|
451
|
-
}, vo = function(e) {
|
|
452
|
-
return Jl(e) && e.type === "hidden";
|
|
453
446
|
}, ho = function(e) {
|
|
447
|
+
return Jl(e) && e.type === "hidden";
|
|
448
|
+
}, go = function(e) {
|
|
454
449
|
var t = e.tagName === "DETAILS" && Array.prototype.slice.apply(e.children).some(function(l) {
|
|
455
450
|
return l.tagName === "SUMMARY";
|
|
456
451
|
});
|
|
457
452
|
return t;
|
|
458
|
-
},
|
|
453
|
+
}, bo = function(e, t) {
|
|
459
454
|
for (var l = 0; l < e.length; l++)
|
|
460
455
|
if (e[l].checked && e[l].form === t)
|
|
461
456
|
return e[l];
|
|
462
|
-
},
|
|
457
|
+
}, yo = function(e) {
|
|
463
458
|
if (!e.name)
|
|
464
459
|
return !0;
|
|
465
460
|
var t = e.form || tl(e), l = function(u) {
|
|
@@ -473,13 +468,13 @@ var Kl = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
473
468
|
} catch (a) {
|
|
474
469
|
return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s", a.message), !1;
|
|
475
470
|
}
|
|
476
|
-
var r =
|
|
471
|
+
var r = bo(n, e.form);
|
|
477
472
|
return !r || r === e;
|
|
478
|
-
}, yo = function(e) {
|
|
479
|
-
return Jl(e) && e.type === "radio";
|
|
480
473
|
}, wo = function(e) {
|
|
481
|
-
return
|
|
474
|
+
return Jl(e) && e.type === "radio";
|
|
482
475
|
}, ko = function(e) {
|
|
476
|
+
return wo(e) && !yo(e);
|
|
477
|
+
}, $o = function(e) {
|
|
483
478
|
var t, l = e && tl(e), n = (t = l) === null || t === void 0 ? void 0 : t.host, r = !1;
|
|
484
479
|
if (l && l !== e) {
|
|
485
480
|
var a, u, s;
|
|
@@ -492,7 +487,7 @@ var Kl = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
492
487
|
}, El = function(e) {
|
|
493
488
|
var t = e.getBoundingClientRect(), l = t.width, n = t.height;
|
|
494
489
|
return l === 0 && n === 0;
|
|
495
|
-
},
|
|
490
|
+
}, So = function(e, t) {
|
|
496
491
|
var l = t.displayCheck, n = t.getShadowRoot;
|
|
497
492
|
if (getComputedStyle(e).visibility === "hidden")
|
|
498
493
|
return !0;
|
|
@@ -509,14 +504,14 @@ var Kl = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
509
504
|
}
|
|
510
505
|
e = u;
|
|
511
506
|
}
|
|
512
|
-
if (
|
|
507
|
+
if ($o(e))
|
|
513
508
|
return !e.getClientRects().length;
|
|
514
509
|
if (l !== "legacy-full")
|
|
515
510
|
return !0;
|
|
516
511
|
} else if (l === "non-zero-area")
|
|
517
512
|
return El(e);
|
|
518
513
|
return !1;
|
|
519
|
-
},
|
|
514
|
+
}, To = function(e) {
|
|
520
515
|
if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))
|
|
521
516
|
for (var t = e.parentElement; t; ) {
|
|
522
517
|
if (t.tagName === "FIELDSET" && t.disabled) {
|
|
@@ -534,17 +529,17 @@ var Kl = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
534
529
|
return !(t.disabled || // we must do an inert look up to filter out any elements inside an inert ancestor
|
|
535
530
|
// because we're limited in the type of selectors we can use in JSDom (see related
|
|
536
531
|
// note related to `candidateSelectors`)
|
|
537
|
-
ol(t) ||
|
|
538
|
-
|
|
532
|
+
ol(t) || ho(t) || So(t, e) || // For a details element with a summary, the summary element gets the focus
|
|
533
|
+
go(t) || To(t));
|
|
539
534
|
}, vl = function(e, t) {
|
|
540
|
-
return !(
|
|
541
|
-
},
|
|
535
|
+
return !(ko(t) || Ae(t) < 0 || !al(e, t));
|
|
536
|
+
}, Co = function(e) {
|
|
542
537
|
var t = parseInt(e.getAttribute("tabindex"), 10);
|
|
543
538
|
return !!(isNaN(t) || t >= 0);
|
|
544
|
-
},
|
|
539
|
+
}, Oo = function o(e) {
|
|
545
540
|
var t = [], l = [];
|
|
546
541
|
return e.forEach(function(n, r) {
|
|
547
|
-
var a = !!n.scopeParent, u = a ? n.scopeParent : n, s =
|
|
542
|
+
var a = !!n.scopeParent, u = a ? n.scopeParent : n, s = mo(u, a), i = a ? o(n.candidates) : u;
|
|
548
543
|
s === 0 ? a ? t.push.apply(t, i) : t.push(u) : l.push({
|
|
549
544
|
documentOrder: r,
|
|
550
545
|
tabIndex: s,
|
|
@@ -552,34 +547,34 @@ var Kl = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
552
547
|
isScope: a,
|
|
553
548
|
content: i
|
|
554
549
|
});
|
|
555
|
-
}), l.sort(
|
|
550
|
+
}), l.sort(vo).reduce(function(n, r) {
|
|
556
551
|
return r.isScope ? n.push.apply(n, r.content) : n.push(r.content), n;
|
|
557
552
|
}, []).concat(t);
|
|
558
|
-
},
|
|
553
|
+
}, Eo = function(e, t) {
|
|
559
554
|
t = t || {};
|
|
560
555
|
var l;
|
|
561
556
|
return t.getShadowRoot ? l = Ql([e], t.includeContainer, {
|
|
562
557
|
filter: vl.bind(null, t),
|
|
563
558
|
flatten: !1,
|
|
564
559
|
getShadowRoot: t.getShadowRoot,
|
|
565
|
-
shadowRootFilter:
|
|
566
|
-
}) : l =
|
|
567
|
-
},
|
|
560
|
+
shadowRootFilter: Co
|
|
561
|
+
}) : l = Zl(e, t.includeContainer, vl.bind(null, t)), Oo(l);
|
|
562
|
+
}, Fo = function(e, t) {
|
|
568
563
|
t = t || {};
|
|
569
564
|
var l;
|
|
570
565
|
return t.getShadowRoot ? l = Ql([e], t.includeContainer, {
|
|
571
566
|
filter: al.bind(null, t),
|
|
572
567
|
flatten: !0,
|
|
573
568
|
getShadowRoot: t.getShadowRoot
|
|
574
|
-
}) : l =
|
|
569
|
+
}) : l = Zl(e, t.includeContainer, al.bind(null, t)), l;
|
|
575
570
|
}, Me = function(e, t) {
|
|
576
571
|
if (t = t || {}, !e)
|
|
577
572
|
throw new Error("No node provided");
|
|
578
573
|
return Ie.call(e, ll) === !1 ? !1 : vl(t, e);
|
|
579
|
-
},
|
|
574
|
+
}, Do = /* @__PURE__ */ Kl.concat("iframe").join(","), fl = function(e, t) {
|
|
580
575
|
if (t = t || {}, !e)
|
|
581
576
|
throw new Error("No node provided");
|
|
582
|
-
return Ie.call(e,
|
|
577
|
+
return Ie.call(e, Do) === !1 ? !1 : al(t, e);
|
|
583
578
|
};
|
|
584
579
|
/*!
|
|
585
580
|
* focus-trap 7.5.4
|
|
@@ -599,22 +594,22 @@ function Dl(o) {
|
|
|
599
594
|
for (var e = 1; e < arguments.length; e++) {
|
|
600
595
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
601
596
|
e % 2 ? Fl(Object(t), !0).forEach(function(l) {
|
|
602
|
-
|
|
597
|
+
No(o, l, t[l]);
|
|
603
598
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(t)) : Fl(Object(t)).forEach(function(l) {
|
|
604
599
|
Object.defineProperty(o, l, Object.getOwnPropertyDescriptor(t, l));
|
|
605
600
|
});
|
|
606
601
|
}
|
|
607
602
|
return o;
|
|
608
603
|
}
|
|
609
|
-
function
|
|
610
|
-
return e =
|
|
604
|
+
function No(o, e, t) {
|
|
605
|
+
return e = Vo(e), e in o ? Object.defineProperty(o, e, {
|
|
611
606
|
value: t,
|
|
612
607
|
enumerable: !0,
|
|
613
608
|
configurable: !0,
|
|
614
609
|
writable: !0
|
|
615
610
|
}) : o[e] = t, o;
|
|
616
611
|
}
|
|
617
|
-
function
|
|
612
|
+
function Ao(o, e) {
|
|
618
613
|
if (typeof o != "object" || o === null)
|
|
619
614
|
return o;
|
|
620
615
|
var t = o[Symbol.toPrimitive];
|
|
@@ -626,8 +621,8 @@ function No(o, e) {
|
|
|
626
621
|
}
|
|
627
622
|
return (e === "string" ? String : Number)(o);
|
|
628
623
|
}
|
|
629
|
-
function
|
|
630
|
-
var e =
|
|
624
|
+
function Vo(o) {
|
|
625
|
+
var e = Ao(o, "string");
|
|
631
626
|
return typeof e == "symbol" ? e : String(e);
|
|
632
627
|
}
|
|
633
628
|
var Nl = {
|
|
@@ -643,15 +638,15 @@ var Nl = {
|
|
|
643
638
|
var l = e.indexOf(t);
|
|
644
639
|
l !== -1 && e.splice(l, 1), e.length > 0 && e[e.length - 1].unpause();
|
|
645
640
|
}
|
|
646
|
-
}, Vo = function(e) {
|
|
647
|
-
return e.tagName && e.tagName.toLowerCase() === "input" && typeof e.select == "function";
|
|
648
641
|
}, qo = function(e) {
|
|
642
|
+
return e.tagName && e.tagName.toLowerCase() === "input" && typeof e.select == "function";
|
|
643
|
+
}, Io = function(e) {
|
|
649
644
|
return (e == null ? void 0 : e.key) === "Escape" || (e == null ? void 0 : e.key) === "Esc" || (e == null ? void 0 : e.keyCode) === 27;
|
|
650
645
|
}, xe = function(e) {
|
|
651
646
|
return (e == null ? void 0 : e.key) === "Tab" || (e == null ? void 0 : e.keyCode) === 9;
|
|
652
|
-
}, Io = function(e) {
|
|
653
|
-
return xe(e) && !e.shiftKey;
|
|
654
647
|
}, Ro = function(e) {
|
|
648
|
+
return xe(e) && !e.shiftKey;
|
|
649
|
+
}, Mo = function(e) {
|
|
655
650
|
return xe(e) && e.shiftKey;
|
|
656
651
|
}, Al = function(e) {
|
|
657
652
|
return setTimeout(e, 0);
|
|
@@ -666,13 +661,13 @@ var Nl = {
|
|
|
666
661
|
return typeof e == "function" ? e.apply(void 0, l) : e;
|
|
667
662
|
}, Qe = function(e) {
|
|
668
663
|
return e.target.shadowRoot && typeof e.composedPath == "function" ? e.composedPath()[0] : e.target;
|
|
669
|
-
},
|
|
670
|
-
var l = (t == null ? void 0 : t.document) || document, n = (t == null ? void 0 : t.trapStack) ||
|
|
664
|
+
}, Lo = [], jo = function(e, t) {
|
|
665
|
+
var l = (t == null ? void 0 : t.document) || document, n = (t == null ? void 0 : t.trapStack) || Lo, r = Dl({
|
|
671
666
|
returnFocusOnDeactivate: !0,
|
|
672
667
|
escapeDeactivates: !0,
|
|
673
668
|
delayInitialFocus: !0,
|
|
674
|
-
isKeyForward:
|
|
675
|
-
isKeyBackward:
|
|
669
|
+
isKeyForward: Ro,
|
|
670
|
+
isKeyBackward: Mo
|
|
676
671
|
}, t), a = {
|
|
677
672
|
// containers given to createFocusTrap()
|
|
678
673
|
// @type {Array<HTMLElement>}
|
|
@@ -755,7 +750,7 @@ var Nl = {
|
|
|
755
750
|
return T;
|
|
756
751
|
}, b = function() {
|
|
757
752
|
if (a.containerGroups = a.containers.map(function(T) {
|
|
758
|
-
var S =
|
|
753
|
+
var S = Eo(T, r.tabbableOptions), j = Fo(T, r.tabbableOptions), C = S.length > 0 ? S[0] : void 0, L = S.length > 0 ? S[S.length - 1] : void 0, W = j.find(function(se) {
|
|
759
754
|
return Me(se);
|
|
760
755
|
}), Y = j.slice().reverse().find(function(se) {
|
|
761
756
|
return Me(se);
|
|
@@ -820,7 +815,7 @@ var Nl = {
|
|
|
820
815
|
}
|
|
821
816
|
T.focus({
|
|
822
817
|
preventScroll: !!r.preventScroll
|
|
823
|
-
}), a.mostRecentlyFocusedNode = T,
|
|
818
|
+
}), a.mostRecentlyFocusedNode = T, qo(T) && T.select();
|
|
824
819
|
}
|
|
825
820
|
}, D = function(T) {
|
|
826
821
|
var S = c("setReturnFocus", T);
|
|
@@ -915,7 +910,7 @@ var Nl = {
|
|
|
915
910
|
});
|
|
916
911
|
j && (xe(T) && T.preventDefault(), F(j));
|
|
917
912
|
}, ee = function(T) {
|
|
918
|
-
if (
|
|
913
|
+
if (Io(T) && ze(r.escapeDeactivates, T) !== !1) {
|
|
919
914
|
T.preventDefault(), u.deactivate();
|
|
920
915
|
return;
|
|
921
916
|
}
|
|
@@ -1014,7 +1009,7 @@ var Nl = {
|
|
|
1014
1009
|
}
|
|
1015
1010
|
}, u.updateContainerElements(e), u;
|
|
1016
1011
|
};
|
|
1017
|
-
function
|
|
1012
|
+
function Po(o, e = {}) {
|
|
1018
1013
|
let t;
|
|
1019
1014
|
const { immediate: l, ...n } = e, r = R(!1), a = R(!1), u = (d) => t && t.activate(d), s = (d) => t && t.deactivate(d), i = () => {
|
|
1020
1015
|
t && (t.pause(), a.value = !0);
|
|
@@ -1024,7 +1019,7 @@ function jo(o, e = {}) {
|
|
|
1024
1019
|
return ne(
|
|
1025
1020
|
() => Ot(o),
|
|
1026
1021
|
(d) => {
|
|
1027
|
-
d && (t =
|
|
1022
|
+
d && (t = jo(d, {
|
|
1028
1023
|
...n,
|
|
1029
1024
|
onActivate() {
|
|
1030
1025
|
r.value = !0, e.onActivate && e.onActivate();
|
|
@@ -1044,10 +1039,10 @@ function jo(o, e = {}) {
|
|
|
1044
1039
|
unpause: c
|
|
1045
1040
|
};
|
|
1046
1041
|
}
|
|
1047
|
-
const
|
|
1042
|
+
const zo = /* @__PURE__ */ v("div", { tabindex: "0" }, null, -1), Bo = {
|
|
1048
1043
|
key: 0,
|
|
1049
1044
|
class: "cl-mt-1 cl-opacity-60 cl-text-primary-default"
|
|
1050
|
-
},
|
|
1045
|
+
}, Uo = { class: "cl-overflow-y-auto cl-overscroll-y-none cl-p-2 cl-w-full" }, Xl = /* @__PURE__ */ K({
|
|
1051
1046
|
inheritAttrs: !1,
|
|
1052
1047
|
__name: "cl-ui-modal",
|
|
1053
1048
|
props: {
|
|
@@ -1057,7 +1052,7 @@ const Po = /* @__PURE__ */ v("div", { tabindex: "0" }, null, -1), zo = {
|
|
|
1057
1052
|
trapFocus: { type: Boolean, default: !1 }
|
|
1058
1053
|
},
|
|
1059
1054
|
setup(o) {
|
|
1060
|
-
const e = o, { trapFocus: t } = ut(e), l = R(!1), n = R(), r =
|
|
1055
|
+
const e = o, { trapFocus: t } = ut(e), l = R(!1), n = R(), r = Po(n);
|
|
1061
1056
|
ne([
|
|
1062
1057
|
t,
|
|
1063
1058
|
l
|
|
@@ -1080,7 +1075,7 @@ const Po = /* @__PURE__ */ v("div", { tabindex: "0" }, null, -1), zo = {
|
|
|
1080
1075
|
}
|
|
1081
1076
|
return (i, c) => (p(), w(J, null, [
|
|
1082
1077
|
U(i.$slots, "trigger", me(he({ open: a }))),
|
|
1083
|
-
(p(),
|
|
1078
|
+
(p(), Z(bl, { to: "body" }, [
|
|
1084
1079
|
N(Ee, { name: "fade" }, {
|
|
1085
1080
|
default: H(() => [
|
|
1086
1081
|
X(v("div", {
|
|
@@ -1088,7 +1083,7 @@ const Po = /* @__PURE__ */ v("div", { tabindex: "0" }, null, -1), zo = {
|
|
|
1088
1083
|
ref: n,
|
|
1089
1084
|
class: "cl-align-items-center cl-bg-black cl-bg-opacity-40 cl-bottom-0 cl-fixed cl-flex cl-h-full cl-justify-center cl-left-0 cl-right-0 cl-top-0 cl-w-full cl-z-40 xl:cl-h-screen"
|
|
1090
1085
|
}, [
|
|
1091
|
-
|
|
1086
|
+
zo,
|
|
1092
1087
|
v("div", ce(i.$attrs, {
|
|
1093
1088
|
class: ["cl-bg-white cl-flex cl-flex-wrap cl-max-h-[calc(100%-8rem)] cl-mx-0 cl-my-auto cl-overflow-y-auto cl-overscroll-y-none cl-relative cl-rounded-lg cl-shadow-lg xl:cl-max-h-[calc(100vh-8rem)]", {
|
|
1094
1089
|
"lg:cl-w-2/12 cl-w-10/12": i.size === "x-small",
|
|
@@ -1107,7 +1102,7 @@ const Po = /* @__PURE__ */ v("div", { tabindex: "0" }, null, -1), zo = {
|
|
|
1107
1102
|
onKeypress: ge(u, ["enter"]),
|
|
1108
1103
|
onClick: u
|
|
1109
1104
|
}, [
|
|
1110
|
-
N(g(
|
|
1105
|
+
N(g(_), { icon: "ph:x" })
|
|
1111
1106
|
], 34), [
|
|
1112
1107
|
[ae, !i.preventClose]
|
|
1113
1108
|
]),
|
|
@@ -1118,9 +1113,9 @@ const Po = /* @__PURE__ */ v("div", { tabindex: "0" }, null, -1), zo = {
|
|
|
1118
1113
|
}])
|
|
1119
1114
|
}, [
|
|
1120
1115
|
U(i.$slots, "title"),
|
|
1121
|
-
i.headerColour === "white" ? (p(), w("hr",
|
|
1116
|
+
i.headerColour === "white" ? (p(), w("hr", Bo)) : z("", !0)
|
|
1122
1117
|
], 2),
|
|
1123
|
-
v("div",
|
|
1118
|
+
v("div", Uo, [
|
|
1124
1119
|
U(i.$slots, "default", me(he({ close: u })))
|
|
1125
1120
|
]),
|
|
1126
1121
|
U(i.$slots, "footer", me(he({ close: u })))
|
|
@@ -1134,7 +1129,7 @@ const Po = /* @__PURE__ */ v("div", { tabindex: "0" }, null, -1), zo = {
|
|
|
1134
1129
|
]))
|
|
1135
1130
|
], 64));
|
|
1136
1131
|
}
|
|
1137
|
-
}),
|
|
1132
|
+
}), xo = { class: "cl-bg-grey-0 cl-flex cl-p-1 cl-text-left" }, Ho = {
|
|
1138
1133
|
key: 0,
|
|
1139
1134
|
class: "cl-w-1/2"
|
|
1140
1135
|
}, Ye = /* @__PURE__ */ K({
|
|
@@ -1146,8 +1141,8 @@ const Po = /* @__PURE__ */ v("div", { tabindex: "0" }, null, -1), zo = {
|
|
|
1146
1141
|
},
|
|
1147
1142
|
emits: ["clear-object"],
|
|
1148
1143
|
setup(o) {
|
|
1149
|
-
return (e, t) => (p(), w("div",
|
|
1150
|
-
e.additionalText !== "" ? (p(), w("div",
|
|
1144
|
+
return (e, t) => (p(), w("div", xo, [
|
|
1145
|
+
e.additionalText !== "" ? (p(), w("div", Ho, I(e.additionalText), 1)) : z("", !0),
|
|
1151
1146
|
v("div", {
|
|
1152
1147
|
class: B({
|
|
1153
1148
|
"cl-w-1/2": e.additionalText !== "",
|
|
@@ -1158,7 +1153,7 @@ const Po = /* @__PURE__ */ v("div", { tabindex: "0" }, null, -1), zo = {
|
|
|
1158
1153
|
class: "cl-cursor-pointer cl-float-right",
|
|
1159
1154
|
onMousedown: t[0] || (t[0] = (l) => e.$emit("clear-object"))
|
|
1160
1155
|
}, [
|
|
1161
|
-
N(g(
|
|
1156
|
+
N(g(_), {
|
|
1162
1157
|
class: "cl-mt-1 cl-transition-colors hover:cl-text-link-default",
|
|
1163
1158
|
icon: "ph:x"
|
|
1164
1159
|
})
|
|
@@ -1167,10 +1162,10 @@ const Po = /* @__PURE__ */ v("div", { tabindex: "0" }, null, -1), zo = {
|
|
|
1167
1162
|
])
|
|
1168
1163
|
]));
|
|
1169
1164
|
}
|
|
1170
|
-
}),
|
|
1165
|
+
}), Go = {
|
|
1171
1166
|
key: 0,
|
|
1172
1167
|
class: "cl-w-1/2"
|
|
1173
|
-
},
|
|
1168
|
+
}, Wo = { class: "cl-float-right cl-py-1 cl-text-black" }, ql = /* @__PURE__ */ K({
|
|
1174
1169
|
__name: "cl-ui-combo-box-selectable",
|
|
1175
1170
|
props: {
|
|
1176
1171
|
isCreateNewOption: { type: Boolean, default: !1 },
|
|
@@ -1210,15 +1205,15 @@ const Po = /* @__PURE__ */ v("div", { tabindex: "0" }, null, -1), zo = {
|
|
|
1210
1205
|
onMousemove: d[0] || (d[0] = (F) => s(!0)),
|
|
1211
1206
|
onMouseleave: d[1] || (d[1] = (F) => s(!1))
|
|
1212
1207
|
}, [
|
|
1213
|
-
c.option !== null && ((b = c.option) == null ? void 0 : b.parentId) !== 0 && ((y = c.option) == null ? void 0 : y.parentId) !== void 0 ? (p(), w("div",
|
|
1208
|
+
c.option !== null && ((b = c.option) == null ? void 0 : b.parentId) !== 0 && ((y = c.option) == null ? void 0 : y.parentId) !== void 0 ? (p(), w("div", Go, I(r.value), 1)) : z("", !0),
|
|
1214
1209
|
v("div", {
|
|
1215
1210
|
class: B({
|
|
1216
1211
|
"cl-w-1/2": r.value !== "",
|
|
1217
1212
|
"cl-w-full": r.value === ""
|
|
1218
1213
|
})
|
|
1219
1214
|
}, I(n.value), 3),
|
|
1220
|
-
X(v("div",
|
|
1221
|
-
N(g(
|
|
1215
|
+
X(v("div", Wo, [
|
|
1216
|
+
N(g(_), {
|
|
1222
1217
|
class: "cl-transition-colors",
|
|
1223
1218
|
icon: "ph:plus"
|
|
1224
1219
|
})
|
|
@@ -1228,10 +1223,10 @@ const Po = /* @__PURE__ */ v("div", { tabindex: "0" }, null, -1), zo = {
|
|
|
1228
1223
|
], 34);
|
|
1229
1224
|
};
|
|
1230
1225
|
}
|
|
1231
|
-
}),
|
|
1226
|
+
}), Ko = ["onKeyup"], _o = {
|
|
1232
1227
|
key: 0,
|
|
1233
|
-
class: "cl-absolute cl-bg-off-white cl-flex cl-h-full cl-items-center cl-justify-center cl-w-full"
|
|
1234
|
-
}, Zo = { class: "cl-bg-white cl-flex cl-p-2 cl-pb-1 cl-sticky cl-top-0 cl-w-full cl-z-10" },
|
|
1228
|
+
class: "cl-absolute cl-bg-off-white cl-flex cl-h-full cl-items-center cl-justify-center cl-top-0 cl-w-full cl-z-20"
|
|
1229
|
+
}, Zo = { class: "cl-bg-white cl-flex cl-p-2 cl-pb-1 cl-sticky cl-top-0 cl-w-full cl-z-10" }, Qo = { class: "cl-inline-block cl-w-full" }, Yo = /* @__PURE__ */ v("span", null, null, -1), Jo = { key: 6 }, Xo = /* @__PURE__ */ K({
|
|
1235
1230
|
__name: "cl-ui-combo-box-search",
|
|
1236
1231
|
props: {
|
|
1237
1232
|
loading: { type: Boolean, default: !1 },
|
|
@@ -1295,7 +1290,7 @@ const Po = /* @__PURE__ */ v("div", { tabindex: "0" }, null, -1), zo = {
|
|
|
1295
1290
|
return (f = ($ = i.value) == null ? void 0 : $.querySelector("input")) == null ? void 0 : f.focus();
|
|
1296
1291
|
}));
|
|
1297
1292
|
}
|
|
1298
|
-
return ne(() => t.results, () => x()), ne(() => t.errorMessage, () => x()), ne(() => t.isVisible, () => te()),
|
|
1293
|
+
return ne(() => t.results, () => x()), ne(() => t.errorMessage, () => x()), ne(() => t.isVisible, () => te()), _e(() => {
|
|
1299
1294
|
var $;
|
|
1300
1295
|
return ($ = i.value) == null ? void 0 : $.addEventListener("keydown", E);
|
|
1301
1296
|
}), il(() => {
|
|
@@ -1306,81 +1301,82 @@ const Po = /* @__PURE__ */ v("div", { tabindex: "0" }, null, -1), zo = {
|
|
|
1306
1301
|
return p(), w("div", {
|
|
1307
1302
|
ref_key: "container",
|
|
1308
1303
|
ref: i,
|
|
1309
|
-
class: "cl-absolute cl-bg-white cl-border cl-border-collapse cl-border-grey-0 cl-h-52 cl-mt-2 cl-overflow-y-auto cl-overscroll-y-none cl-rounded cl-text-sm cl-w-full cl-z-20",
|
|
1304
|
+
class: B(["cl-absolute cl-bg-white cl-border cl-border-collapse cl-border-grey-0 cl-h-52 cl-mt-2 cl-overflow-y-auto cl-overscroll-y-none cl-rounded cl-text-sm cl-w-full cl-z-20", {
|
|
1305
|
+
"cl-overflow-y-hidden": $.loading
|
|
1306
|
+
}]),
|
|
1310
1307
|
onKeydown: [
|
|
1311
1308
|
f[2] || (f[2] = ge(oe((m) => D(s.value), ["prevent", "stop"]), ["up"])),
|
|
1312
1309
|
f[3] || (f[3] = ge(oe((m) => F(s.value), ["prevent", "stop"]), ["down"]))
|
|
1313
1310
|
],
|
|
1314
1311
|
onKeyup: ge(oe(O, ["prevent", "stop"]), ["enter"])
|
|
1315
1312
|
}, [
|
|
1316
|
-
$.loading ? (p(), w("div",
|
|
1313
|
+
$.loading ? (p(), w("div", _o, [
|
|
1317
1314
|
N(sl)
|
|
1318
|
-
])) : (
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1315
|
+
])) : z("", !0),
|
|
1316
|
+
v("div", Zo, [
|
|
1317
|
+
v("div", Qo, [
|
|
1318
|
+
N(Ne, {
|
|
1319
|
+
modelValue: r.value,
|
|
1320
|
+
"onUpdate:modelValue": f[0] || (f[0] = (m) => r.value = m),
|
|
1321
|
+
class: "cl-box-border cl-font-light cl-mb-2 cl-p-2 cl-placeholder-grey-3 cl-text-sm",
|
|
1322
|
+
placeholder: $.searchHint,
|
|
1323
|
+
type: "search",
|
|
1324
|
+
onKeyup: c,
|
|
1325
|
+
onBlur: y
|
|
1326
|
+
}, {
|
|
1327
|
+
default: H(() => [
|
|
1328
|
+
Yo
|
|
1329
|
+
]),
|
|
1330
|
+
_: 1
|
|
1331
|
+
}, 8, ["modelValue", "placeholder"])
|
|
1332
|
+
])
|
|
1333
|
+
]),
|
|
1334
|
+
$.currentObjectName !== "" ? (p(), Z(Ye, {
|
|
1335
|
+
key: 1,
|
|
1336
|
+
"show-clear-button": $.canClearSelectedObject,
|
|
1337
|
+
text: $.currentObjectName,
|
|
1338
|
+
onClearObject: f[1] || (f[1] = (m) => $.$emit("clear-object"))
|
|
1339
|
+
}, null, 8, ["show-clear-button", "text"])) : z("", !0),
|
|
1340
|
+
$.objectParentType !== "" && $.results !== void 0 && $.results.length > 0 && $.errorMessage === "" ? (p(), Z(Ye, {
|
|
1341
|
+
key: 2,
|
|
1342
|
+
text: $.objectType,
|
|
1343
|
+
"additional-text": $.objectParentType,
|
|
1344
|
+
class: "cl-bg-grey-2 cl-mt-1"
|
|
1345
|
+
}, null, 8, ["text", "additional-text"])) : z("", !0),
|
|
1346
|
+
$.results !== null && ((h = $.results) == null ? void 0 : h.length) === 0 && r.value.trim() !== "" && $.canCreateNewObject === !1 && $.errorMessage === "" ? (p(), Z(Ye, {
|
|
1347
|
+
key: 3,
|
|
1348
|
+
text: g(n)("comboBox.noResults", { value: r.value })
|
|
1349
|
+
}, null, 8, ["text"])) : z("", !0),
|
|
1350
|
+
$.errorMessage !== "" ? (p(), Z(Ye, {
|
|
1351
|
+
key: 4,
|
|
1352
|
+
class: "!cl-bg-danger-light cl-border-danger-light cl-rounded cl-text-danger-dark",
|
|
1353
|
+
text: g(n)("comboBox.errorMessage", { error: $.errorMessage })
|
|
1354
|
+
}, null, 8, ["text"])) : z("", !0),
|
|
1355
|
+
a.value ? (p(), Z(ql, {
|
|
1356
|
+
key: 5,
|
|
1357
|
+
"is-create-new-option": !0,
|
|
1358
|
+
text: g(n)("comboBox.addPrompt", { value: r.value, object: $.objectType }),
|
|
1359
|
+
index: -1,
|
|
1360
|
+
"selected-index": u.value,
|
|
1361
|
+
class: "cl-px-2",
|
|
1362
|
+
onCreateObject: b,
|
|
1363
|
+
onOptionHighlighted: ee
|
|
1364
|
+
}, null, 8, ["text", "selected-index"])) : z("", !0),
|
|
1365
|
+
$.errorMessage === "" && $.results !== null ? (p(), w("div", Jo, [
|
|
1366
|
+
(p(!0), w(J, null, ue($.results, (m, q) => (p(), Z(ql, {
|
|
1367
|
+
key: q,
|
|
1368
|
+
option: m,
|
|
1369
|
+
index: q,
|
|
1364
1370
|
class: "cl-px-2",
|
|
1365
|
-
|
|
1371
|
+
"selected-index": u.value,
|
|
1372
|
+
onSelectObject: d,
|
|
1366
1373
|
onOptionHighlighted: ee
|
|
1367
|
-
}, null, 8, ["
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
key: q,
|
|
1371
|
-
option: m,
|
|
1372
|
-
index: q,
|
|
1373
|
-
class: "cl-px-2",
|
|
1374
|
-
"selected-index": u.value,
|
|
1375
|
-
onSelectObject: d,
|
|
1376
|
-
onOptionHighlighted: ee
|
|
1377
|
-
}, null, 8, ["option", "index", "selected-index"]))), 128))
|
|
1378
|
-
])) : z("", !0)
|
|
1379
|
-
], 64))
|
|
1380
|
-
], 40, Wo);
|
|
1374
|
+
}, null, 8, ["option", "index", "selected-index"]))), 128))
|
|
1375
|
+
])) : z("", !0)
|
|
1376
|
+
], 42, Ko);
|
|
1381
1377
|
};
|
|
1382
1378
|
}
|
|
1383
|
-
}),
|
|
1379
|
+
}), ea = { class: "cl-flex" }, la = { class: "cl-inline-block cl-w-full" }, ta = /* @__PURE__ */ v("span", null, null, -1), oa = { class: "cl-pointer-events-none cl-relative cl-top-0.5" }, aa = { class: "cl-absolute cl-flex cl-float-right cl-font-semibold cl-mt-2 cl-right-2 cl-text-danger-default cl-text-sm cl-z-10" }, na = ["disabled"], ra = ["disabled"], ia = { class: "cl-min-h-[16rem] cl-mx-4" }, sa = { class: "cl-p-2 cl-text-right cl-w-full" }, ca = /* @__PURE__ */ K({
|
|
1384
1380
|
__name: "cl-ui-combo-box",
|
|
1385
1381
|
props: {
|
|
1386
1382
|
loading: { type: Boolean, default: !1 },
|
|
@@ -1505,8 +1501,8 @@ const Po = /* @__PURE__ */ v("div", { tabindex: "0" }, null, -1), zo = {
|
|
|
1505
1501
|
ref: j,
|
|
1506
1502
|
class: "cl-relative"
|
|
1507
1503
|
}, [
|
|
1508
|
-
v("div",
|
|
1509
|
-
v("div",
|
|
1504
|
+
v("div", ea, [
|
|
1505
|
+
v("div", la, [
|
|
1510
1506
|
N(Ne, {
|
|
1511
1507
|
modelValue: d.value,
|
|
1512
1508
|
"onUpdate:modelValue": L[0] || (L[0] = (Y) => d.value = Y),
|
|
@@ -1520,15 +1516,15 @@ const Po = /* @__PURE__ */ v("div", { tabindex: "0" }, null, -1), zo = {
|
|
|
1520
1516
|
})
|
|
1521
1517
|
}, {
|
|
1522
1518
|
default: H(() => [
|
|
1523
|
-
|
|
1519
|
+
ta
|
|
1524
1520
|
]),
|
|
1525
1521
|
_: 1
|
|
1526
1522
|
}, 8, ["modelValue", "class", "placeholder", "disabled"])
|
|
1527
1523
|
]),
|
|
1528
|
-
X(v("div",
|
|
1529
|
-
v("div",
|
|
1524
|
+
X(v("div", oa, [
|
|
1525
|
+
v("div", aa, [
|
|
1530
1526
|
pe(I(g(u)("comboBox.required")) + " ", 1),
|
|
1531
|
-
N(g(
|
|
1527
|
+
N(g(_), {
|
|
1532
1528
|
class: "cl-ml-1 cl-mt-1",
|
|
1533
1529
|
icon: "ph:warning"
|
|
1534
1530
|
})
|
|
@@ -1545,11 +1541,11 @@ const Po = /* @__PURE__ */ v("div", { tabindex: "0" }, null, -1), zo = {
|
|
|
1545
1541
|
disabled: C.disabled,
|
|
1546
1542
|
onClick: L[3] || (L[3] = (Y) => E(!1))
|
|
1547
1543
|
}, [
|
|
1548
|
-
N(g(
|
|
1544
|
+
N(g(_), {
|
|
1549
1545
|
icon: "ph:caret-up-bold",
|
|
1550
1546
|
class: "cl-ml-[4px] cl-mt-[12px]"
|
|
1551
1547
|
})
|
|
1552
|
-
], 10,
|
|
1548
|
+
], 10, ra)) : (p(), w("div", {
|
|
1553
1549
|
key: 0,
|
|
1554
1550
|
class: B(["cl-border cl-border-grey-2 cl-border-l-0 cl-float-right cl-rounded cl-rounded-l-none cl-text-grey-3 cl-transition-colors cl-w-[27px]", {
|
|
1555
1551
|
"cl-cursor-default cl-bg-off-white": C.disabled,
|
|
@@ -1558,18 +1554,18 @@ const Po = /* @__PURE__ */ v("div", { tabindex: "0" }, null, -1), zo = {
|
|
|
1558
1554
|
disabled: C.disabled,
|
|
1559
1555
|
onClick: L[2] || (L[2] = (Y) => E(!0))
|
|
1560
1556
|
}, [
|
|
1561
|
-
N(g(
|
|
1557
|
+
N(g(_), {
|
|
1562
1558
|
icon: "ph:caret-down-bold",
|
|
1563
1559
|
class: "cl-ml-[4px] cl-mt-[12px]"
|
|
1564
1560
|
})
|
|
1565
|
-
], 10,
|
|
1561
|
+
], 10, na))
|
|
1566
1562
|
]),
|
|
1567
1563
|
N(Xl, { size: "small" }, {
|
|
1568
1564
|
title: H(() => [
|
|
1569
1565
|
pe(I(g(u)("comboBox.createTitle", { object: C.objectType })), 1)
|
|
1570
1566
|
]),
|
|
1571
1567
|
trigger: H(({ open: Y }) => [
|
|
1572
|
-
X(N(
|
|
1568
|
+
X(N(Xo, {
|
|
1573
1569
|
"can-create-new-object": C.canCreateNewObject,
|
|
1574
1570
|
"can-clear-selected-object": C.canClearSelectedObject,
|
|
1575
1571
|
loading: C.loading,
|
|
@@ -1593,7 +1589,7 @@ const Po = /* @__PURE__ */ v("div", { tabindex: "0" }, null, -1), zo = {
|
|
|
1593
1589
|
])
|
|
1594
1590
|
]),
|
|
1595
1591
|
footer: H(({ close: Y }) => [
|
|
1596
|
-
v("div",
|
|
1592
|
+
v("div", sa, [
|
|
1597
1593
|
N(ye, {
|
|
1598
1594
|
class: "cl-mr-3",
|
|
1599
1595
|
colour: "default",
|
|
@@ -1621,8 +1617,8 @@ const Po = /* @__PURE__ */ v("div", { tabindex: "0" }, null, -1), zo = {
|
|
|
1621
1617
|
])
|
|
1622
1618
|
]),
|
|
1623
1619
|
default: H(() => [
|
|
1624
|
-
v("div",
|
|
1625
|
-
C.objectParentType ? (p(),
|
|
1620
|
+
v("div", ia, [
|
|
1621
|
+
C.objectParentType ? (p(), Z(W, {
|
|
1626
1622
|
key: 0,
|
|
1627
1623
|
"current-object": c.value,
|
|
1628
1624
|
"onUpdate:currentObject": L[5] || (L[5] = (Y) => c.value = Y),
|
|
@@ -1655,35 +1651,35 @@ const Po = /* @__PURE__ */ v("div", { tabindex: "0" }, null, -1), zo = {
|
|
|
1655
1651
|
};
|
|
1656
1652
|
}
|
|
1657
1653
|
});
|
|
1658
|
-
function
|
|
1654
|
+
function ua(o) {
|
|
1659
1655
|
return typeof o.id == "number" && typeof o.name == "string";
|
|
1660
1656
|
}
|
|
1661
|
-
function
|
|
1657
|
+
function da(o) {
|
|
1662
1658
|
return typeof o.name == "string";
|
|
1663
1659
|
}
|
|
1664
|
-
const
|
|
1660
|
+
const fa = {}, pa = { class: "cl-flex cl-flex-wrap cl-left-0 cl-mt-4 cl-w-full" }, ma = {
|
|
1665
1661
|
key: 0,
|
|
1666
1662
|
class: "cl-w-full"
|
|
1667
|
-
},
|
|
1663
|
+
}, va = {
|
|
1668
1664
|
key: 1,
|
|
1669
1665
|
class: "cl-leading-10 cl-text-sm cl-w-full"
|
|
1670
|
-
},
|
|
1671
|
-
function
|
|
1672
|
-
return p(), w("div",
|
|
1673
|
-
o.$slots.default ? (p(), w("div",
|
|
1666
|
+
}, ha = { class: "cl-float-left" }, ga = { class: "cl-float-right" };
|
|
1667
|
+
function ba(o, e) {
|
|
1668
|
+
return p(), w("div", pa, [
|
|
1669
|
+
o.$slots.default ? (p(), w("div", ma, [
|
|
1674
1670
|
U(o.$slots, "default")
|
|
1675
1671
|
])) : z("", !0),
|
|
1676
|
-
o.$slots.left || o.$slots.right ? (p(), w("div",
|
|
1677
|
-
v("span",
|
|
1672
|
+
o.$slots.left || o.$slots.right ? (p(), w("div", va, [
|
|
1673
|
+
v("span", ha, [
|
|
1678
1674
|
U(o.$slots, "left")
|
|
1679
1675
|
]),
|
|
1680
|
-
v("span",
|
|
1676
|
+
v("span", ga, [
|
|
1681
1677
|
U(o.$slots, "right")
|
|
1682
1678
|
])
|
|
1683
1679
|
])) : z("", !0)
|
|
1684
1680
|
]);
|
|
1685
1681
|
}
|
|
1686
|
-
const
|
|
1682
|
+
const ya = /* @__PURE__ */ Se(fa, [["render", ba]]), et = Symbol();
|
|
1687
1683
|
function Je(o) {
|
|
1688
1684
|
const e = o.type !== "slot" || o.slotType !== void 0 && o.field !== void 0, t = o.sortable ?? !0;
|
|
1689
1685
|
return e && t;
|
|
@@ -1692,16 +1688,16 @@ function $l(o) {
|
|
|
1692
1688
|
const e = o.type !== "slot" || o.slotType !== void 0 && o.field !== void 0, t = o.filterable ?? !0;
|
|
1693
1689
|
return e && t;
|
|
1694
1690
|
}
|
|
1695
|
-
function
|
|
1691
|
+
function wa(o) {
|
|
1696
1692
|
return o.some((e) => Je(e));
|
|
1697
1693
|
}
|
|
1698
1694
|
function Il(o) {
|
|
1699
1695
|
return o.some((e) => $l(e));
|
|
1700
1696
|
}
|
|
1701
|
-
const
|
|
1697
|
+
const ka = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, $a = { class: "cl-gap-1 cl-grid cl-grid-cols-2 cl-justify-end cl-mb-2 lg:cl-flex lg:cl-gap-2" }, Sa = { class: "cl-basis-0 cl-col-span-2 cl-flex-grow" }, Ta = /* @__PURE__ */ v("hr", { class: "cl-block cl-border-grey-3 cl-col-span-2 cl-my-4 lg:cl-hidden" }, null, -1), Ca = {
|
|
1702
1698
|
key: 1,
|
|
1703
1699
|
class: "cl-hidden lg:cl-block"
|
|
1704
|
-
},
|
|
1700
|
+
}, Oa = { class: "cl-block lg:cl-hidden" }, Ea = /* @__PURE__ */ K({
|
|
1705
1701
|
__name: "cl-ui-grid-action-row",
|
|
1706
1702
|
props: {
|
|
1707
1703
|
editMode: { type: Boolean },
|
|
@@ -1715,18 +1711,18 @@ const wa = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, ka = { class: "cl-gap-1
|
|
|
1715
1711
|
setup(o) {
|
|
1716
1712
|
const e = o, { t } = fe(), l = A(() => e.request.filters.some((n) => n.filterValue !== ""));
|
|
1717
1713
|
return (n, r) => (p(), w(J, null, [
|
|
1718
|
-
v("div",
|
|
1714
|
+
v("div", ka, [
|
|
1719
1715
|
v("strong", null, I(g(t)("grid.gridTools")), 1)
|
|
1720
1716
|
]),
|
|
1721
|
-
v("div",
|
|
1722
|
-
v("div",
|
|
1717
|
+
v("div", $a, [
|
|
1718
|
+
v("div", Sa, [
|
|
1723
1719
|
U(n.$slots, "additional-grid-actions", me(he({
|
|
1724
1720
|
loading: n.loading,
|
|
1725
1721
|
editMode: n.editMode
|
|
1726
1722
|
})))
|
|
1727
1723
|
]),
|
|
1728
|
-
|
|
1729
|
-
n.columns.some((a) => a.editable) ? (p(),
|
|
1724
|
+
Ta,
|
|
1725
|
+
n.columns.some((a) => a.editable) ? (p(), Z(ye, {
|
|
1730
1726
|
key: 0,
|
|
1731
1727
|
size: "small",
|
|
1732
1728
|
colour: "default",
|
|
@@ -1742,11 +1738,11 @@ const wa = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, ka = { class: "cl-gap-1
|
|
|
1742
1738
|
]),
|
|
1743
1739
|
_: 1
|
|
1744
1740
|
}, 8, ["disabled"])) : z("", !0),
|
|
1745
|
-
n.options.hideViewManager ? z("", !0) : (p(), w("div",
|
|
1741
|
+
n.options.hideViewManager ? z("", !0) : (p(), w("div", Ca, [
|
|
1746
1742
|
U(n.$slots, "view-manager")
|
|
1747
1743
|
])),
|
|
1748
|
-
g(Il)(n.columns) || g(
|
|
1749
|
-
v("div",
|
|
1744
|
+
g(Il)(n.columns) || g(wa)(n.columns) ? (p(), w(J, { key: 2 }, [
|
|
1745
|
+
v("div", Oa, [
|
|
1750
1746
|
N(ye, {
|
|
1751
1747
|
class: "cl-w-full",
|
|
1752
1748
|
size: "small",
|
|
@@ -1759,7 +1755,7 @@ const wa = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, ka = { class: "cl-gap-1
|
|
|
1759
1755
|
_: 1
|
|
1760
1756
|
}, 8, ["disabled"])
|
|
1761
1757
|
]),
|
|
1762
|
-
g(Il)(n.columns) ? (p(),
|
|
1758
|
+
g(Il)(n.columns) ? (p(), Z(ye, {
|
|
1763
1759
|
key: 0,
|
|
1764
1760
|
size: "small",
|
|
1765
1761
|
colour: "danger",
|
|
@@ -1778,7 +1774,7 @@ const wa = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, ka = { class: "cl-gap-1
|
|
|
1778
1774
|
])
|
|
1779
1775
|
], 64));
|
|
1780
1776
|
}
|
|
1781
|
-
}),
|
|
1777
|
+
}), Fa = ["required", "disabled"], Da = /* @__PURE__ */ K({
|
|
1782
1778
|
inheritAttrs: !1,
|
|
1783
1779
|
__name: "cl-ui-input-checkbox",
|
|
1784
1780
|
props: /* @__PURE__ */ Oe({
|
|
@@ -1801,7 +1797,7 @@ const wa = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, ka = { class: "cl-gap-1
|
|
|
1801
1797
|
var a;
|
|
1802
1798
|
return (a = r.value) == null ? void 0 : a.blur();
|
|
1803
1799
|
}
|
|
1804
|
-
}), (a, u) => (p(),
|
|
1800
|
+
}), (a, u) => (p(), Z(kl, {
|
|
1805
1801
|
"show-required-asterisk": a.required,
|
|
1806
1802
|
errors: a.errors
|
|
1807
1803
|
}, Le({
|
|
@@ -1820,7 +1816,7 @@ const wa = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, ka = { class: "cl-gap-1
|
|
|
1820
1816
|
}, ["stop", "prevent"]), ["enter"])),
|
|
1821
1817
|
onFocus: u[2] || (u[2] = (s) => n("focus")),
|
|
1822
1818
|
onBlur: u[3] || (u[3] = (s) => n("blur"))
|
|
1823
|
-
}), null, 16,
|
|
1819
|
+
}), null, 16, Fa), [
|
|
1824
1820
|
[dt, l.value]
|
|
1825
1821
|
])
|
|
1826
1822
|
]),
|
|
@@ -1835,18 +1831,18 @@ const wa = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, ka = { class: "cl-gap-1
|
|
|
1835
1831
|
} : void 0
|
|
1836
1832
|
]), 1032, ["show-required-asterisk", "errors"]));
|
|
1837
1833
|
}
|
|
1838
|
-
}), lt = /* @__PURE__ */ Se(
|
|
1834
|
+
}), lt = /* @__PURE__ */ Se(Da, [["__scopeId", "data-v-d8bbd8db"]]);
|
|
1839
1835
|
var re = /* @__PURE__ */ ((o) => (o.CURRENCY = "currency", o.PERCENTAGE = "percentage", o.INTEGER = "integer", o.DECIMAL = "decimal", o.MULTIPLIER = "multiplier", o))(re || {}), de = /* @__PURE__ */ ((o) => (o.SHORT_DATE = "short-date", o.SHORT_DATETIME = "short-datetime", o.DATE = "date", o.DATETIME = "datetime", o.LONG_DATE = "long-date", o.LONG_DATETIME = "long-datetime", o.TIME = "time", o.MONTH_YEAR = "month-year", o))(de || {});
|
|
1840
|
-
const
|
|
1836
|
+
const Na = {
|
|
1841
1837
|
key: 3,
|
|
1842
1838
|
class: "cl-inline-block cl-whitespace-nowrap"
|
|
1843
|
-
},
|
|
1839
|
+
}, Aa = {
|
|
1844
1840
|
key: 4,
|
|
1845
1841
|
class: "cl-inline-block cl-whitespace-nowrap"
|
|
1846
|
-
},
|
|
1842
|
+
}, Va = {
|
|
1847
1843
|
key: 5,
|
|
1848
1844
|
class: "cl-inline-block cl-whitespace-nowrap"
|
|
1849
|
-
},
|
|
1845
|
+
}, qa = ["innerHTML"], Rl = /* @__PURE__ */ K({
|
|
1850
1846
|
__name: "cl-ui-grid-cell-value",
|
|
1851
1847
|
props: {
|
|
1852
1848
|
data: {},
|
|
@@ -1894,7 +1890,7 @@ const Da = {
|
|
|
1894
1890
|
}
|
|
1895
1891
|
return (s, i) => {
|
|
1896
1892
|
var c;
|
|
1897
|
-
return s.column.type === "slot" ? U(s.$slots, s.column.name, { key: 0 }) : s.column.type === "boolean" && s.column.field !== void 0 ? (p(),
|
|
1893
|
+
return s.column.type === "slot" ? U(s.$slots, s.column.name, { key: 0 }) : s.column.type === "boolean" && s.column.field !== void 0 ? (p(), Z(lt, {
|
|
1898
1894
|
key: 1,
|
|
1899
1895
|
class: "disabled:checked:cl-bg-primary-light disabled:checked:cl-border-primary-light",
|
|
1900
1896
|
"model-value": s.data[s.column.field],
|
|
@@ -1907,14 +1903,14 @@ const Da = {
|
|
|
1907
1903
|
], 64)) : (p(), w(J, { key: 2 }, [
|
|
1908
1904
|
pe(I(a(s.data[s.column.field], g(de).DATETIME)), 1)
|
|
1909
1905
|
], 64))
|
|
1910
|
-
], 64)) : s.column.type === "list" && s.column.field !== void 0 && s.column.listEntries !== void 0 ? (p(), w("span",
|
|
1906
|
+
], 64)) : s.column.type === "list" && s.column.field !== void 0 && s.column.listEntries !== void 0 ? (p(), w("span", Na, I(g(l)(((c = s.column.listEntries.find((d) => d.value === s.data[s.column.field])) == null ? void 0 : c.translationKey) ?? "")), 1)) : s.column.type === "number" && s.column.field !== void 0 ? (p(), w("span", Aa, I(g(r)(s.data[s.column.field], s.column.format ?? g(re).DECIMAL)), 1)) : s.column.field !== void 0 ? (p(), w("span", Va, [
|
|
1911
1907
|
v("span", {
|
|
1912
1908
|
innerHTML: u()
|
|
1913
|
-
}, null, 8,
|
|
1909
|
+
}, null, 8, qa)
|
|
1914
1910
|
])) : z("", !0);
|
|
1915
1911
|
};
|
|
1916
1912
|
}
|
|
1917
|
-
}),
|
|
1913
|
+
}), Ia = { class: "cl-font-semibold lg:cl-hidden" }, Ra = /* @__PURE__ */ K({
|
|
1918
1914
|
__name: "cl-ui-grid-cell",
|
|
1919
1915
|
props: {
|
|
1920
1916
|
data: {},
|
|
@@ -1942,7 +1938,7 @@ const Da = {
|
|
|
1942
1938
|
"cl-bg-link-lighter": a.value
|
|
1943
1939
|
}])
|
|
1944
1940
|
}, [
|
|
1945
|
-
v("span",
|
|
1941
|
+
v("span", Ia, I(s.column.caption), 1),
|
|
1946
1942
|
s.editMode && s.column.editable === !0 ? U(s.$slots, `${s.column.name}Edit`, me(ce({ key: 0 }, {
|
|
1947
1943
|
cellFocused: () => l("focus"),
|
|
1948
1944
|
column: s.column,
|
|
@@ -1966,7 +1962,7 @@ const Da = {
|
|
|
1966
1962
|
]),
|
|
1967
1963
|
_: 2
|
|
1968
1964
|
}, 1032, ["column", "data", "time-zone", "search-value"])
|
|
1969
|
-
]) : (p(),
|
|
1965
|
+
]) : (p(), Z(Rl, {
|
|
1970
1966
|
key: 1,
|
|
1971
1967
|
column: s.column,
|
|
1972
1968
|
data: s.data,
|
|
@@ -1980,7 +1976,7 @@ const Da = {
|
|
|
1980
1976
|
}, 1032, ["column", "data", "time-zone", "search-value"]))
|
|
1981
1977
|
], 2));
|
|
1982
1978
|
}
|
|
1983
|
-
}),
|
|
1979
|
+
}), Ma = /* @__PURE__ */ K({
|
|
1984
1980
|
__name: "cl-ui-grid-row",
|
|
1985
1981
|
props: {
|
|
1986
1982
|
data: {},
|
|
@@ -1992,7 +1988,7 @@ const Da = {
|
|
|
1992
1988
|
emits: ["cell-focus", "cell-edit", "cell-undo"],
|
|
1993
1989
|
setup(o) {
|
|
1994
1990
|
return (e, t) => (p(), w("tr", null, [
|
|
1995
|
-
(p(!0), w(J, null, ue(e.columns, (l, n) => (p(),
|
|
1991
|
+
(p(!0), w(J, null, ue(e.columns, (l, n) => (p(), Z(Ra, {
|
|
1996
1992
|
key: n,
|
|
1997
1993
|
data: e.data,
|
|
1998
1994
|
column: l,
|
|
@@ -2012,10 +2008,10 @@ const Da = {
|
|
|
2012
2008
|
]), 1032, ["data", "column", "time-zone", "search-value", "edit-mode", "onEdit", "onUndo"]))), 128))
|
|
2013
2009
|
]));
|
|
2014
2010
|
}
|
|
2015
|
-
}),
|
|
2011
|
+
}), La = { key: 1 }, ja = ["colspan"], Pa = { class: "cl-flex cl-flex-wrap cl-justify-center cl-text-center cl-text-sm cl-w-full" }, za = { class: "cl-mt-6 cl-w-full" }, Ba = {
|
|
2016
2012
|
key: 0,
|
|
2017
2013
|
class: "cl-mt-4"
|
|
2018
|
-
},
|
|
2014
|
+
}, Ua = { class: "cl-mb-2 cl-w-full" }, xa = /* @__PURE__ */ K({
|
|
2019
2015
|
__name: "cl-ui-grid-body",
|
|
2020
2016
|
props: {
|
|
2021
2017
|
columns: {},
|
|
@@ -2079,7 +2075,7 @@ const Da = {
|
|
|
2079
2075
|
}), (y, F) => {
|
|
2080
2076
|
var D;
|
|
2081
2077
|
return p(), w("tbody", null, [
|
|
2082
|
-
y.data && ((D = y.data.results) != null && D.length) ? (p(!0), w(J, { key: 0 }, ue(y.data.results, (O, E) => (p(),
|
|
2078
|
+
y.data && ((D = y.data.results) != null && D.length) ? (p(!0), w(J, { key: 0 }, ue(y.data.results, (O, E) => (p(), Z(Ma, {
|
|
2083
2079
|
key: E,
|
|
2084
2080
|
data: O,
|
|
2085
2081
|
columns: y.columns,
|
|
@@ -2109,14 +2105,14 @@ const Da = {
|
|
|
2109
2105
|
U(y.$slots, x, ce(ee, { disabled: y.loading }))
|
|
2110
2106
|
])
|
|
2111
2107
|
}))
|
|
2112
|
-
]), 1032, ["data", "columns", "time-zone", "search-value", "edit-mode", "class", "onClick", "onCellFocus", "onCellEdit"]))), 128)) : y.loading ? z("", !0) : (p(), w("tr",
|
|
2108
|
+
]), 1032, ["data", "columns", "time-zone", "search-value", "edit-mode", "class", "onClick", "onCellFocus", "onCellEdit"]))), 128)) : y.loading ? z("", !0) : (p(), w("tr", La, [
|
|
2113
2109
|
v("td", {
|
|
2114
2110
|
colspan: y.columns.length
|
|
2115
2111
|
}, [
|
|
2116
|
-
v("div",
|
|
2117
|
-
v("strong",
|
|
2118
|
-
y.request.filters.some((O) => O.filterValue !== "") ? (p(), w("div",
|
|
2119
|
-
v("div",
|
|
2112
|
+
v("div", Pa, [
|
|
2113
|
+
v("strong", za, I(g(n)("grid.noData")), 1),
|
|
2114
|
+
y.request.filters.some((O) => O.filterValue !== "") ? (p(), w("div", Ba, [
|
|
2115
|
+
v("div", Ua, I(g(n)("grid.noDataFiltersPresent")), 1),
|
|
2120
2116
|
N(ye, {
|
|
2121
2117
|
size: "small",
|
|
2122
2118
|
colour: "danger",
|
|
@@ -2129,12 +2125,12 @@ const Da = {
|
|
|
2129
2125
|
})
|
|
2130
2126
|
])) : z("", !0)
|
|
2131
2127
|
])
|
|
2132
|
-
], 8,
|
|
2128
|
+
], 8, ja)
|
|
2133
2129
|
]))
|
|
2134
2130
|
]);
|
|
2135
2131
|
};
|
|
2136
2132
|
}
|
|
2137
|
-
}),
|
|
2133
|
+
}), Ha = {
|
|
2138
2134
|
"en-GB": {
|
|
2139
2135
|
comboBox: {
|
|
2140
2136
|
emptyHintText: "Choose a {object}",
|
|
@@ -2232,7 +2228,7 @@ const Da = {
|
|
|
2232
2228
|
quickDatesHeader: "Quick Dates"
|
|
2233
2229
|
}
|
|
2234
2230
|
}
|
|
2235
|
-
},
|
|
2231
|
+
}, Ga = {
|
|
2236
2232
|
"en-GB": {
|
|
2237
2233
|
[re.PERCENTAGE]: {
|
|
2238
2234
|
style: "percent",
|
|
@@ -2255,7 +2251,7 @@ const Da = {
|
|
|
2255
2251
|
minimumFractionDigits: 2
|
|
2256
2252
|
}
|
|
2257
2253
|
}
|
|
2258
|
-
},
|
|
2254
|
+
}, Wa = {
|
|
2259
2255
|
"en-GB": {
|
|
2260
2256
|
[de.SHORT_DATE]: {
|
|
2261
2257
|
day: "numeric",
|
|
@@ -2305,27 +2301,27 @@ const Da = {
|
|
|
2305
2301
|
}, we = qt({
|
|
2306
2302
|
locale: "en-GB",
|
|
2307
2303
|
fallbackLocale: "en-GB",
|
|
2308
|
-
messages:
|
|
2309
|
-
numberFormats:
|
|
2310
|
-
datetimeFormats:
|
|
2304
|
+
messages: Ha,
|
|
2305
|
+
numberFormats: Ga,
|
|
2306
|
+
datetimeFormats: Wa,
|
|
2311
2307
|
useScope: "global",
|
|
2312
2308
|
missingWarn: !1,
|
|
2313
2309
|
fallbackWarn: !1,
|
|
2314
2310
|
warnHtmlMessage: !1
|
|
2315
2311
|
});
|
|
2316
|
-
function
|
|
2312
|
+
function Gs(o, e) {
|
|
2317
2313
|
return we.global.mergeLocaleMessage(o, e), je();
|
|
2318
2314
|
}
|
|
2319
|
-
function
|
|
2315
|
+
function Ws(o, e) {
|
|
2320
2316
|
return we.global.mergeNumberFormat(o, e), je();
|
|
2321
2317
|
}
|
|
2322
|
-
function
|
|
2318
|
+
function Ks(o, e) {
|
|
2323
2319
|
return we.global.mergeDateTimeFormat(o, e), je();
|
|
2324
2320
|
}
|
|
2325
|
-
function
|
|
2321
|
+
function _s(o) {
|
|
2326
2322
|
return we.global.locale.value = o, je();
|
|
2327
2323
|
}
|
|
2328
|
-
const { n:
|
|
2324
|
+
const { n: Ka, locale: _a, getNumberFormat: Za } = we.global, Sl = re.DECIMAL;
|
|
2329
2325
|
function De(o) {
|
|
2330
2326
|
return He(o, re.DECIMAL, { additionalOptions: {
|
|
2331
2327
|
minimumFractionDigits: 0,
|
|
@@ -2351,7 +2347,7 @@ function He(o, e, t) {
|
|
|
2351
2347
|
}
|
|
2352
2348
|
function tt(o, e, t) {
|
|
2353
2349
|
if (cl(e)) {
|
|
2354
|
-
const l =
|
|
2350
|
+
const l = Qa(o, e);
|
|
2355
2351
|
return Ml(l ?? o, Sl, t);
|
|
2356
2352
|
} else
|
|
2357
2353
|
return Ml(o, Tl(e), t);
|
|
@@ -2359,7 +2355,7 @@ function tt(o, e, t) {
|
|
|
2359
2355
|
function ot(o, e) {
|
|
2360
2356
|
return cl(o) ? We(Sl, e) : We(Tl(o), e);
|
|
2361
2357
|
}
|
|
2362
|
-
function
|
|
2358
|
+
function Qa(o, e) {
|
|
2363
2359
|
let t = null;
|
|
2364
2360
|
o = `!${o}!`;
|
|
2365
2361
|
const l = `!${e}!`.split("{0}");
|
|
@@ -2409,7 +2405,7 @@ function Fe(o, e, ...t) {
|
|
|
2409
2405
|
}
|
|
2410
2406
|
function Ll(o, e) {
|
|
2411
2407
|
try {
|
|
2412
|
-
return
|
|
2408
|
+
return Ka(o, e);
|
|
2413
2409
|
} catch (t) {
|
|
2414
2410
|
return console.error(t), null;
|
|
2415
2411
|
}
|
|
@@ -2422,7 +2418,7 @@ function at(o) {
|
|
|
2422
2418
|
}
|
|
2423
2419
|
}
|
|
2424
2420
|
function We(o, e) {
|
|
2425
|
-
const t = Cl(e == null ? void 0 : e.locale) || g(
|
|
2421
|
+
const t = Cl(e == null ? void 0 : e.locale) || g(_a), l = Za(t), n = ve(Cl(e == null ? void 0 : e.additionalOptions) ?? {});
|
|
2426
2422
|
return {
|
|
2427
2423
|
...l[o],
|
|
2428
2424
|
locale: t,
|
|
@@ -2431,15 +2427,15 @@ function We(o, e) {
|
|
|
2431
2427
|
};
|
|
2432
2428
|
}
|
|
2433
2429
|
function Tl(o) {
|
|
2434
|
-
return
|
|
2430
|
+
return Ya(o) ? o : re.CURRENCY;
|
|
2435
2431
|
}
|
|
2436
2432
|
function cl(o) {
|
|
2437
2433
|
return o.includes("{0}");
|
|
2438
2434
|
}
|
|
2439
|
-
function
|
|
2435
|
+
function Ya(o) {
|
|
2440
2436
|
return !cl(o) && o !== "currency-without-symbol";
|
|
2441
2437
|
}
|
|
2442
|
-
function
|
|
2438
|
+
function Ja(o) {
|
|
2443
2439
|
if (o.startsWith("ClUi"))
|
|
2444
2440
|
return {
|
|
2445
2441
|
name: `clUi${o.slice(4)}`,
|
|
@@ -2452,10 +2448,10 @@ function Ya(o) {
|
|
|
2452
2448
|
};
|
|
2453
2449
|
}
|
|
2454
2450
|
function Zs() {
|
|
2455
|
-
return
|
|
2451
|
+
return Ja;
|
|
2456
2452
|
}
|
|
2457
2453
|
const { t: ke } = we.global;
|
|
2458
|
-
function
|
|
2454
|
+
function Xa(o, e, t, l, n) {
|
|
2459
2455
|
return new Promise((r) => {
|
|
2460
2456
|
let a = {
|
|
2461
2457
|
valid: !1,
|
|
@@ -2510,7 +2506,7 @@ function Ja(o, e, t, l, n) {
|
|
|
2510
2506
|
r(a);
|
|
2511
2507
|
});
|
|
2512
2508
|
}
|
|
2513
|
-
function
|
|
2509
|
+
function en(o, e, t, l, n) {
|
|
2514
2510
|
return new Promise((r) => {
|
|
2515
2511
|
let a = {
|
|
2516
2512
|
valid: !1,
|
|
@@ -2565,13 +2561,13 @@ function Xa(o, e, t, l, n) {
|
|
|
2565
2561
|
r(a);
|
|
2566
2562
|
});
|
|
2567
2563
|
}
|
|
2568
|
-
function
|
|
2564
|
+
function ln(o, e) {
|
|
2569
2565
|
return new Promise((t) => {
|
|
2570
2566
|
const l = e != null && e !== "" && e.toString().trim() !== "", n = $e(l, ke("input.valueIsRequired", { label: o }));
|
|
2571
2567
|
t(n);
|
|
2572
2568
|
});
|
|
2573
2569
|
}
|
|
2574
|
-
function
|
|
2570
|
+
function tn(o, e) {
|
|
2575
2571
|
return new Promise((t) => {
|
|
2576
2572
|
const n = e === "" || /[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?/.exec(e) !== null, r = $e(n, ke("input.valueNotValidEmail", { label: o }));
|
|
2577
2573
|
t(r);
|
|
@@ -2583,7 +2579,7 @@ function $e(o, e) {
|
|
|
2583
2579
|
message: o ? "" : e
|
|
2584
2580
|
};
|
|
2585
2581
|
}
|
|
2586
|
-
const
|
|
2582
|
+
const on = ["value", "inputmode", "required", "disabled", "placeholder"], an = { class: "cl-absolute cl-flex-col cl-flex-nowrap cl-h-full cl-hidden cl-justify-between cl-py-0.5 cl-right-1 cl-text-xs cl-top-0 xl:cl-flex" }, nn = ["disabled"], rn = ["disabled"], ul = /* @__PURE__ */ K({
|
|
2587
2583
|
inheritAttrs: !1,
|
|
2588
2584
|
__name: "cl-ui-input-number",
|
|
2589
2585
|
props: /* @__PURE__ */ Oe({
|
|
@@ -2664,7 +2660,7 @@ const tn = ["value", "inputmode", "required", "disabled", "placeholder"], on = {
|
|
|
2664
2660
|
}
|
|
2665
2661
|
}), (m, q) => {
|
|
2666
2662
|
const M = yl("icon");
|
|
2667
|
-
return p(),
|
|
2663
|
+
return p(), Z(kl, {
|
|
2668
2664
|
"show-required-asterisk": m.required,
|
|
2669
2665
|
errors: m.errors
|
|
2670
2666
|
}, Le({
|
|
@@ -2691,8 +2687,8 @@ const tn = ["value", "inputmode", "required", "disabled", "placeholder"], on = {
|
|
|
2691
2687
|
q[2] || (q[2] = ge(oe((T) => h(!0), ["stop", "prevent"]), ["down"])),
|
|
2692
2688
|
q[3] || (q[3] = ge(oe((T) => h(!1), ["stop", "prevent"]), ["up"]))
|
|
2693
2689
|
]
|
|
2694
|
-
}), null, 16,
|
|
2695
|
-
X(v("div",
|
|
2690
|
+
}), null, 16, on)),
|
|
2691
|
+
X(v("div", an, [
|
|
2696
2692
|
v("button", {
|
|
2697
2693
|
class: "cl-bg-opacity-30 cl-bg-secondary-light cl-border cl-border-grey-3 cl-px-1 cl-rounded hover:cl-bg-opacity-20",
|
|
2698
2694
|
disabled: m.disabled,
|
|
@@ -2703,7 +2699,7 @@ const tn = ["value", "inputmode", "required", "disabled", "placeholder"], on = {
|
|
|
2703
2699
|
]
|
|
2704
2700
|
}, [
|
|
2705
2701
|
N(M, { icon: "ph:caret-up-bold" })
|
|
2706
|
-
], 40,
|
|
2702
|
+
], 40, nn),
|
|
2707
2703
|
v("button", {
|
|
2708
2704
|
class: "cl-bg-opacity-30 cl-bg-secondary-light cl-border cl-border-grey-3 cl-px-1 cl-rounded hover:cl-bg-opacity-20",
|
|
2709
2705
|
disabled: m.disabled,
|
|
@@ -2714,7 +2710,7 @@ const tn = ["value", "inputmode", "required", "disabled", "placeholder"], on = {
|
|
|
2714
2710
|
]
|
|
2715
2711
|
}, [
|
|
2716
2712
|
N(M, { icon: "ph:caret-down-bold" })
|
|
2717
|
-
], 40,
|
|
2713
|
+
], 40, rn)
|
|
2718
2714
|
], 512), [
|
|
2719
2715
|
[ae, d.value && !m.disabled]
|
|
2720
2716
|
])
|
|
@@ -2732,10 +2728,10 @@ const tn = ["value", "inputmode", "required", "disabled", "placeholder"], on = {
|
|
|
2732
2728
|
]), 1032, ["show-required-asterisk", "errors"]);
|
|
2733
2729
|
};
|
|
2734
2730
|
}
|
|
2735
|
-
}),
|
|
2731
|
+
}), sn = {
|
|
2736
2732
|
key: 0,
|
|
2737
2733
|
class: "cl-flex cl-flex-wrap cl-justify-end cl-mt-2 cl-w-full"
|
|
2738
|
-
},
|
|
2734
|
+
}, cn = { class: "cl-bg-off-white cl-border cl-border-grey-1 cl-flex cl-items-center cl-mb-2 cl-px-3 cl-rounded-lg cl-shadow-md cl-text-sm cl-w-full lg:cl-w-auto" }, un = { class: "cl-text-grey-3 cl-w-max" }, dn = /* @__PURE__ */ v("span", null, null, -1), fn = { class: "cl-bg-off-white cl-border cl-border-grey-1 cl-flex cl-flex-wrap cl-items-center cl-mb-2 cl-px-3 cl-py-2 cl-rounded-lg cl-shadow-md cl-text-sm cl-w-full lg:cl-ml-2 lg:cl-w-auto mb:cl-flex-nowrap" }, pn = { class: "cl-flex cl-flex-wrap cl-mb-2 cl-text-sm cl-w-full lg:cl-p-2 md:cl-mb-0 md:cl-w-auto" }, mn = { class: "cl-flex cl-flex-wrap cl-mb-2 cl-w-full lg:cl-mb-0 lg:cl-mr-2 lg:cl-w-auto" }, vn = { class: "cl-text-grey-3 cl-w-full lg:cl-mr-2 lg:cl-w-auto" }, hn = { class: "cl-flex cl-flex-wrap cl-text-sm mb:cl-flex-nowrap" }, gn = { class: "cl-pr-2" }, bn = ["onClick"], yn = { class: "cl-flex cl-flex-wrap cl-mb-2 cl-text-sm cl-w-full lg:cl-p-2 md:cl-mb-0 md:cl-w-auto" }, wn = { class: "cl-mb-2 cl-text-grey-3 cl-w-full lg:cl-mb-0 lg:cl-mr-2 lg:cl-w-auto" }, kn = ["onClick"], $n = { class: "cl-mb-2 cl-w-full lg:cl-p-2 md:cl-mb-0 md:cl-w-auto" }, Sn = { class: "cl-block cl-mb-2 cl-text-grey-3 cl-w-full lg:cl-inline-block lg:cl-mb-0 lg:cl-mr-1 lg:cl-w-auto" }, Tn = { class: "cl-block lg:cl-inline-block" }, Cn = /* @__PURE__ */ K({
|
|
2739
2735
|
__name: "cl-ui-grid-footer",
|
|
2740
2736
|
props: {
|
|
2741
2737
|
request: {},
|
|
@@ -2774,9 +2770,9 @@ const tn = ["value", "inputmode", "required", "disabled", "placeholder"], on = {
|
|
|
2774
2770
|
}
|
|
2775
2771
|
return (c, d) => {
|
|
2776
2772
|
var b, y;
|
|
2777
|
-
return (y = (b = c.data) == null ? void 0 : b.results) != null && y.length && c.request ? (p(), w("div",
|
|
2778
|
-
v("div",
|
|
2779
|
-
v("span",
|
|
2773
|
+
return (y = (b = c.data) == null ? void 0 : b.results) != null && y.length && c.request ? (p(), w("div", sn, [
|
|
2774
|
+
v("div", cn, [
|
|
2775
|
+
v("span", un, I(g(n)("grid.jumpToPage")), 1),
|
|
2780
2776
|
N(ul, {
|
|
2781
2777
|
"model-value": c.request.pageNumber,
|
|
2782
2778
|
class: "cl-ml-1 cl-mt-0.5 cl-text-sm",
|
|
@@ -2787,23 +2783,23 @@ const tn = ["value", "inputmode", "required", "disabled", "placeholder"], on = {
|
|
|
2787
2783
|
"onUpdate:modelValue": u
|
|
2788
2784
|
}, {
|
|
2789
2785
|
default: H(() => [
|
|
2790
|
-
|
|
2786
|
+
dn
|
|
2791
2787
|
]),
|
|
2792
2788
|
_: 1
|
|
2793
2789
|
}, 8, ["model-value", "max", "disabled"])
|
|
2794
2790
|
]),
|
|
2795
|
-
v("div",
|
|
2796
|
-
v("div",
|
|
2797
|
-
v("li",
|
|
2798
|
-
v("span",
|
|
2791
|
+
v("div", fn, [
|
|
2792
|
+
v("div", pn, [
|
|
2793
|
+
v("li", mn, [
|
|
2794
|
+
v("span", vn, I(g(n)("grid.page")), 1)
|
|
2799
2795
|
]),
|
|
2800
|
-
v("ul",
|
|
2801
|
-
v("li",
|
|
2796
|
+
v("ul", hn, [
|
|
2797
|
+
v("li", gn, I(g(De)(c.request.pageNumber)) + " / " + I(g(De)(r.value)), 1),
|
|
2802
2798
|
X(v("li", {
|
|
2803
2799
|
class: "cl-cursor-pointer cl-mr-1 cl-mt-1 lg:cl-mr-2",
|
|
2804
2800
|
onClick: d[0] || (d[0] = (F) => u(1))
|
|
2805
2801
|
}, [
|
|
2806
|
-
N(g(
|
|
2802
|
+
N(g(_), {
|
|
2807
2803
|
icon: "ph:caret-double-left",
|
|
2808
2804
|
size: 14
|
|
2809
2805
|
})
|
|
@@ -2814,7 +2810,7 @@ const tn = ["value", "inputmode", "required", "disabled", "placeholder"], on = {
|
|
|
2814
2810
|
class: "cl-cursor-pointer cl-mt-1 lg:cl-mr-2 mr-1",
|
|
2815
2811
|
onClick: d[1] || (d[1] = (F) => u(c.request.pageNumber - 1))
|
|
2816
2812
|
}, [
|
|
2817
|
-
N(g(
|
|
2813
|
+
N(g(_), {
|
|
2818
2814
|
icon: "ph:caret-left",
|
|
2819
2815
|
size: 14
|
|
2820
2816
|
})
|
|
@@ -2828,12 +2824,12 @@ const tn = ["value", "inputmode", "required", "disabled", "placeholder"], on = {
|
|
|
2828
2824
|
"cl-text-grey-6": c.request.pageNumber !== F
|
|
2829
2825
|
}]),
|
|
2830
2826
|
onClick: (O) => u(F)
|
|
2831
|
-
}, I(g(De)(F)), 11,
|
|
2827
|
+
}, I(g(De)(F)), 11, bn))), 128)),
|
|
2832
2828
|
X(v("li", {
|
|
2833
2829
|
class: "cl-cursor-pointer cl-mr-1 cl-mt-1 lg:cl-mr-2",
|
|
2834
2830
|
onClick: d[2] || (d[2] = (F) => u(c.request.pageNumber + 1))
|
|
2835
2831
|
}, [
|
|
2836
|
-
N(g(
|
|
2832
|
+
N(g(_), {
|
|
2837
2833
|
icon: "ph:caret-right",
|
|
2838
2834
|
size: 14
|
|
2839
2835
|
})
|
|
@@ -2844,7 +2840,7 @@ const tn = ["value", "inputmode", "required", "disabled", "placeholder"], on = {
|
|
|
2844
2840
|
class: "cl-cursor-pointer cl-mr-1 cl-mt-1 lg:cl-mr-2",
|
|
2845
2841
|
onClick: d[3] || (d[3] = (F) => u(r.value))
|
|
2846
2842
|
}, [
|
|
2847
|
-
N(g(
|
|
2843
|
+
N(g(_), {
|
|
2848
2844
|
icon: "ph:caret-double-right",
|
|
2849
2845
|
size: 14
|
|
2850
2846
|
})
|
|
@@ -2853,8 +2849,8 @@ const tn = ["value", "inputmode", "required", "disabled", "placeholder"], on = {
|
|
|
2853
2849
|
])
|
|
2854
2850
|
])
|
|
2855
2851
|
]),
|
|
2856
|
-
v("ul",
|
|
2857
|
-
v("li",
|
|
2852
|
+
v("ul", yn, [
|
|
2853
|
+
v("li", wn, I(g(n)("grid.pageSize")), 1),
|
|
2858
2854
|
(p(), w(J, null, ue(s, (F, D) => v("li", {
|
|
2859
2855
|
key: D,
|
|
2860
2856
|
class: B(["cl-cursor-pointer cl-mr-1 lg:cl-mr-2", {
|
|
@@ -2862,26 +2858,26 @@ const tn = ["value", "inputmode", "required", "disabled", "placeholder"], on = {
|
|
|
2862
2858
|
"cl-text-grey-6": c.request.pageSize !== F
|
|
2863
2859
|
}]),
|
|
2864
2860
|
onClick: (O) => i(F)
|
|
2865
|
-
}, I(g(De)(F)), 11,
|
|
2861
|
+
}, I(g(De)(F)), 11, kn)), 64))
|
|
2866
2862
|
]),
|
|
2867
|
-
v("ul",
|
|
2868
|
-
v("li",
|
|
2869
|
-
v("li",
|
|
2863
|
+
v("ul", $n, [
|
|
2864
|
+
v("li", Sn, I(g(n)("grid.totalRecords")), 1),
|
|
2865
|
+
v("li", Tn, I(g(De)(c.data.totalRecords)), 1)
|
|
2870
2866
|
])
|
|
2871
2867
|
])
|
|
2872
2868
|
])) : z("", !0);
|
|
2873
2869
|
};
|
|
2874
2870
|
}
|
|
2875
|
-
}),
|
|
2871
|
+
}), On = {
|
|
2876
2872
|
key: 0,
|
|
2877
2873
|
class: "!cl-h-10 cl-border cl-border-grey-1 cl-flex cl-flex-nowrap cl-flex-row cl-overflow-hidden cl-rounded-sm"
|
|
2878
|
-
},
|
|
2874
|
+
}, En = {
|
|
2879
2875
|
key: 1,
|
|
2880
2876
|
class: "cl-relative"
|
|
2881
|
-
},
|
|
2877
|
+
}, Fn = ["value", "disabled", "placeholder"], Dn = {
|
|
2882
2878
|
key: 0,
|
|
2883
2879
|
class: "action-icon cl-absolute cl-bg-transparent cl-flex cl-right-2 cl-text-grey-4 cl-top-3.5"
|
|
2884
|
-
},
|
|
2880
|
+
}, Nn = /* @__PURE__ */ K({
|
|
2885
2881
|
inheritAttrs: !1,
|
|
2886
2882
|
__name: "cl-ui-calendar-input",
|
|
2887
2883
|
props: {
|
|
@@ -2917,7 +2913,7 @@ const tn = ["value", "inputmode", "required", "disabled", "placeholder"], on = {
|
|
|
2917
2913
|
});
|
|
2918
2914
|
return e({
|
|
2919
2915
|
focus: n
|
|
2920
|
-
}), (u, s) => u.type === "dateRange" ? (p(), w("div",
|
|
2916
|
+
}), (u, s) => u.type === "dateRange" ? (p(), w("div", On, [
|
|
2921
2917
|
N(ye, {
|
|
2922
2918
|
class: B(["cl-basis-full cl-border-transparent cl-col-span-4 cl-flex cl-items-center cl-justify-center hover:cl-border-transparent", {
|
|
2923
2919
|
"cl-text-grey-4 hover:cl-text-grey-3": !u.rangeSelected,
|
|
@@ -2927,14 +2923,14 @@ const tn = ["value", "inputmode", "required", "disabled", "placeholder"], on = {
|
|
|
2927
2923
|
onClick: s[0] || (s[0] = (i) => u.$emit("togglePopover"))
|
|
2928
2924
|
}, {
|
|
2929
2925
|
default: H(() => [
|
|
2930
|
-
N(g(
|
|
2926
|
+
N(g(_), {
|
|
2931
2927
|
icon: "bi:calendar3",
|
|
2932
2928
|
class: "cl-text-xl icon"
|
|
2933
2929
|
})
|
|
2934
2930
|
]),
|
|
2935
2931
|
_: 1
|
|
2936
2932
|
}, 8, ["disabled", "class"]),
|
|
2937
|
-
u.required ? z("", !0) : (p(),
|
|
2933
|
+
u.required ? z("", !0) : (p(), Z(ye, {
|
|
2938
2934
|
key: 0,
|
|
2939
2935
|
size: "small",
|
|
2940
2936
|
class: B(["cl-basis-0 cl-border-transparent cl-flex cl-items-center cl-justify-center hover:cl-border-transparent", {
|
|
@@ -2945,14 +2941,14 @@ const tn = ["value", "inputmode", "required", "disabled", "placeholder"], on = {
|
|
|
2945
2941
|
onClick: s[1] || (s[1] = (i) => u.$emit("clear"))
|
|
2946
2942
|
}, {
|
|
2947
2943
|
default: H(() => [
|
|
2948
|
-
N(g(
|
|
2944
|
+
N(g(_), {
|
|
2949
2945
|
icon: "ph:x",
|
|
2950
2946
|
class: "clear-icon"
|
|
2951
2947
|
})
|
|
2952
2948
|
]),
|
|
2953
2949
|
_: 1
|
|
2954
2950
|
}, 8, ["disabled", "class"]))
|
|
2955
|
-
])) : (p(), w("div",
|
|
2951
|
+
])) : (p(), w("div", En, [
|
|
2956
2952
|
v("input", ce({
|
|
2957
2953
|
ref_key: "element",
|
|
2958
2954
|
ref: l
|
|
@@ -2961,8 +2957,8 @@ const tn = ["value", "inputmode", "required", "disabled", "placeholder"], on = {
|
|
|
2961
2957
|
type: "text",
|
|
2962
2958
|
disabled: u.disabled,
|
|
2963
2959
|
placeholder: a.value
|
|
2964
|
-
}, mt(u.events, !0)), null, 16,
|
|
2965
|
-
X(N(g(
|
|
2960
|
+
}, mt(u.events, !0)), null, 16, Fn),
|
|
2961
|
+
X(N(g(_), {
|
|
2966
2962
|
class: B(["cl-absolute cl-bg-transparent cl-cursor-text cl-left-2 cl-text-grey-4 cl-top-3.5 icon", {
|
|
2967
2963
|
"!cl-bg-off-white": u.disabled
|
|
2968
2964
|
}]),
|
|
@@ -2971,14 +2967,14 @@ const tn = ["value", "inputmode", "required", "disabled", "placeholder"], on = {
|
|
|
2971
2967
|
}, null, 8, ["class", "icon"]), [
|
|
2972
2968
|
[ae, !u.disabled]
|
|
2973
2969
|
]),
|
|
2974
|
-
u.disabled ? z("", !0) : (p(), w("div",
|
|
2975
|
-
u.type !== "time" ? (p(),
|
|
2970
|
+
u.disabled ? z("", !0) : (p(), w("div", Dn, [
|
|
2971
|
+
u.type !== "time" ? (p(), Z(g(_), {
|
|
2976
2972
|
key: 0,
|
|
2977
2973
|
class: "cl-cursor-pointer hover:cl-text-link-light",
|
|
2978
2974
|
icon: "ph:arrow-counter-clockwise",
|
|
2979
2975
|
onClick: s[2] || (s[2] = oe((i) => u.$emit("reset"), ["prevent"]))
|
|
2980
2976
|
})) : z("", !0),
|
|
2981
|
-
!u.required && u.date && (u.type !== "time" || u.date !== "00:00") ? (p(),
|
|
2977
|
+
!u.required && u.date && (u.type !== "time" || u.date !== "00:00") ? (p(), Z(g(_), {
|
|
2982
2978
|
key: 1,
|
|
2983
2979
|
class: "cl-cursor-pointer clear-icon hover:cl-text-link-light md:cl-ml-0.5",
|
|
2984
2980
|
icon: "ph:x",
|
|
@@ -2987,7 +2983,7 @@ const tn = ["value", "inputmode", "required", "disabled", "placeholder"], on = {
|
|
|
2987
2983
|
]))
|
|
2988
2984
|
]));
|
|
2989
2985
|
}
|
|
2990
|
-
}), pl = /* @__PURE__ */ Se(
|
|
2986
|
+
}), pl = /* @__PURE__ */ Se(Nn, [["__scopeId", "data-v-d44ed831"]]), An = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Vn = ["onClick"], qn = /* @__PURE__ */ K({
|
|
2991
2987
|
__name: "cl-ui-quick-dates-group",
|
|
2992
2988
|
props: {
|
|
2993
2989
|
dates: {},
|
|
@@ -2996,7 +2992,7 @@ const tn = ["value", "inputmode", "required", "disabled", "placeholder"], on = {
|
|
|
2996
2992
|
emits: ["quick-date-selected"],
|
|
2997
2993
|
setup(o, { emit: e }) {
|
|
2998
2994
|
const t = e, { t: l } = fe();
|
|
2999
|
-
return (n, r) => (p(), w("div",
|
|
2995
|
+
return (n, r) => (p(), w("div", An, [
|
|
3000
2996
|
(p(!0), w(J, null, ue(n.dates, (a, u) => {
|
|
3001
2997
|
var s, i;
|
|
3002
2998
|
return p(), w("button", {
|
|
@@ -3008,11 +3004,11 @@ const tn = ["value", "inputmode", "required", "disabled", "placeholder"], on = {
|
|
|
3008
3004
|
onClick: (c) => t("quick-date-selected", a)
|
|
3009
3005
|
}, [
|
|
3010
3006
|
v("span", null, I(g(l)(a.translationKey)), 1)
|
|
3011
|
-
], 10,
|
|
3007
|
+
], 10, Vn);
|
|
3012
3008
|
}), 128))
|
|
3013
3009
|
]));
|
|
3014
3010
|
}
|
|
3015
|
-
}),
|
|
3011
|
+
}), In = [
|
|
3016
3012
|
"today",
|
|
3017
3013
|
"this week",
|
|
3018
3014
|
"this month",
|
|
@@ -3104,10 +3100,10 @@ const tn = ["value", "inputmode", "required", "disabled", "placeholder"], on = {
|
|
|
3104
3100
|
...nl,
|
|
3105
3101
|
...rl,
|
|
3106
3102
|
...Ge
|
|
3107
|
-
],
|
|
3103
|
+
], Rn = { class: "cl-p-2 cl-pt-0" }, Mn = {
|
|
3108
3104
|
key: 0,
|
|
3109
3105
|
class: "cl-mt-2 cl-opacity-20"
|
|
3110
|
-
},
|
|
3106
|
+
}, Ln = /* @__PURE__ */ K({
|
|
3111
3107
|
__name: "cl-ui-quick-dates",
|
|
3112
3108
|
props: {
|
|
3113
3109
|
scope: {},
|
|
@@ -3139,22 +3135,22 @@ const tn = ["value", "inputmode", "required", "disabled", "placeholder"], on = {
|
|
|
3139
3135
|
}
|
|
3140
3136
|
return a;
|
|
3141
3137
|
});
|
|
3142
|
-
return (a, u) => (p(), w("div",
|
|
3138
|
+
return (a, u) => (p(), w("div", Rn, [
|
|
3143
3139
|
v("div", null, I(g(n)("quickDates.quickDatesHeader")), 1),
|
|
3144
3140
|
(p(!0), w(J, null, ue(r.value, (s, i) => (p(), w("div", {
|
|
3145
3141
|
key: i,
|
|
3146
3142
|
class: "cl-pt-2"
|
|
3147
3143
|
}, [
|
|
3148
|
-
N(
|
|
3144
|
+
N(qn, {
|
|
3149
3145
|
dates: s,
|
|
3150
3146
|
"selected-quick-date": a.selectedQuickDate,
|
|
3151
3147
|
onQuickDateSelected: u[0] || (u[0] = (c) => l("quick-date-selected", c))
|
|
3152
3148
|
}, null, 8, ["dates", "selected-quick-date"]),
|
|
3153
|
-
i < r.value.length - 1 ? (p(), w("div",
|
|
3149
|
+
i < r.value.length - 1 ? (p(), w("div", Mn)) : z("", !0)
|
|
3154
3150
|
]))), 128))
|
|
3155
3151
|
]));
|
|
3156
3152
|
}
|
|
3157
|
-
}),
|
|
3153
|
+
}), jn = /* @__PURE__ */ K({
|
|
3158
3154
|
inheritAttrs: !1,
|
|
3159
3155
|
__name: "cl-ui-calendar",
|
|
3160
3156
|
props: {
|
|
@@ -3302,7 +3298,7 @@ const tn = ["value", "inputmode", "required", "disabled", "placeholder"], on = {
|
|
|
3302
3298
|
var f;
|
|
3303
3299
|
(f = F.value) == null || f.focus();
|
|
3304
3300
|
}
|
|
3305
|
-
}), (f, h) => f.type === "time" ? (p(),
|
|
3301
|
+
}), (f, h) => f.type === "time" ? (p(), Z(g(dl), {
|
|
3306
3302
|
key: 0,
|
|
3307
3303
|
modelValue: a.value,
|
|
3308
3304
|
"onUpdate:modelValue": h[1] || (h[1] = (m) => a.value = m),
|
|
@@ -3332,7 +3328,7 @@ const tn = ["value", "inputmode", "required", "disabled", "placeholder"], on = {
|
|
|
3332
3328
|
}), null, 16, ["date", "events", "type", "placeholder", "required", "disabled"])
|
|
3333
3329
|
]),
|
|
3334
3330
|
_: 1
|
|
3335
|
-
}, 8, ["modelValue", "locale", "is24hr", "mode", "is-required", "masks", "popover"])) : f.type === "dateRange" ? (p(),
|
|
3331
|
+
}, 8, ["modelValue", "locale", "is24hr", "mode", "is-required", "masks", "popover"])) : f.type === "dateRange" ? (p(), Z(g(dl), {
|
|
3336
3332
|
key: 1,
|
|
3337
3333
|
ref_key: "calendar",
|
|
3338
3334
|
ref: E,
|
|
@@ -3369,7 +3365,7 @@ const tn = ["value", "inputmode", "required", "disabled", "placeholder"], on = {
|
|
|
3369
3365
|
}), null, 16, ["type", "required", "disabled", "range-selected", "title", "onTogglePopover"])
|
|
3370
3366
|
]),
|
|
3371
3367
|
footer: H(() => [
|
|
3372
|
-
f.quickDateScope !== "none" ? (p(),
|
|
3368
|
+
f.quickDateScope !== "none" ? (p(), Z(Ln, {
|
|
3373
3369
|
key: 0,
|
|
3374
3370
|
scope: f.quickDateScope,
|
|
3375
3371
|
"selected-quick-date": O.value,
|
|
@@ -3378,7 +3374,7 @@ const tn = ["value", "inputmode", "required", "disabled", "placeholder"], on = {
|
|
|
3378
3374
|
}, null, 8, ["scope", "selected-quick-date", "current-date-range"])) : z("", !0)
|
|
3379
3375
|
]),
|
|
3380
3376
|
_: 1
|
|
3381
|
-
}, 8, ["modelValue", "locale", "is24hr", "timezone", "columns", "popover", "min-date", "max-date", "initial-page"])) : (p(),
|
|
3377
|
+
}, 8, ["modelValue", "locale", "is24hr", "timezone", "columns", "popover", "min-date", "max-date", "initial-page"])) : (p(), Z(g(dl), {
|
|
3382
3378
|
key: 2,
|
|
3383
3379
|
modelValue: a.value,
|
|
3384
3380
|
"onUpdate:modelValue": h[6] || (h[6] = (m) => a.value = m),
|
|
@@ -3433,13 +3429,13 @@ var Ve;
|
|
|
3433
3429
|
(function(o) {
|
|
3434
3430
|
o.precision = "precision", o.thousands = "thousands", o.millions = "millions", o.billions = "billions";
|
|
3435
3431
|
})(Ve || (Ve = {}));
|
|
3436
|
-
const Xe = (o) => o.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), rt = (o) => o.replace(/^0+(0$|[^0])/, "$1"), ml = (o, e) => (o.match(new RegExp(Xe(e), "g")) || []).length,
|
|
3432
|
+
const Xe = (o) => o.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), rt = (o) => o.replace(/^0+(0$|[^0])/, "$1"), ml = (o, e) => (o.match(new RegExp(Xe(e), "g")) || []).length, Pn = (o, e) => o.substring(0, o.indexOf(e)), it = [
|
|
3437
3433
|
",",
|
|
3438
3434
|
".",
|
|
3439
3435
|
"٫",
|
|
3440
3436
|
"。"
|
|
3441
3437
|
], jl = "(0|[1-9]\\d*)";
|
|
3442
|
-
class
|
|
3438
|
+
class zn {
|
|
3443
3439
|
constructor(e) {
|
|
3444
3440
|
var t, l, n, r, a, u;
|
|
3445
3441
|
const { currency: s, currencyDisplay: i, locale: c, precision: d, accountingSign: b, useGrouping: y } = e;
|
|
@@ -3452,7 +3448,7 @@ class Pn {
|
|
|
3452
3448
|
};
|
|
3453
3449
|
const F = new Intl.NumberFormat(c, this.options), D = F.formatToParts(123456);
|
|
3454
3450
|
this.currency = (t = D.find(({ type: V }) => V === "currency")) === null || t === void 0 ? void 0 : t.value, this.digits = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9].map((V) => V.toLocaleString(c)), this.decimalSymbol = (l = D.find(({ type: V }) => V === "decimal")) === null || l === void 0 ? void 0 : l.value, this.groupingSymbol = (n = D.find(({ type: V }) => V === "group")) === null || n === void 0 ? void 0 : n.value, this.minusSign = (r = F.formatToParts(-1).find(({ type: V }) => V === "minusSign")) === null || r === void 0 ? void 0 : r.value, this.decimalSymbol === void 0 ? this.minimumFractionDigits = this.maximumFractionDigits = 0 : typeof d == "number" ? this.minimumFractionDigits = this.maximumFractionDigits = d : (this.minimumFractionDigits = (a = d == null ? void 0 : d.min) !== null && a !== void 0 ? a : F.resolvedOptions().minimumFractionDigits, this.maximumFractionDigits = (u = d == null ? void 0 : d.max) !== null && u !== void 0 ? u : F.resolvedOptions().maximumFractionDigits);
|
|
3455
|
-
const O = (V) =>
|
|
3451
|
+
const O = (V) => Pn(V, this.digits[1]), E = (V) => V.substring(V.lastIndexOf(this.decimalSymbol ? this.digits[0] : this.digits[1]) + 1);
|
|
3456
3452
|
this.prefix = O(F.format(1)), this.suffix = E(F.format(1)), this.negativePrefix = O(F.format(-1)), this.negativeSuffix = E(F.format(-1));
|
|
3457
3453
|
}
|
|
3458
3454
|
parse(e) {
|
|
@@ -3521,7 +3517,7 @@ class st {
|
|
|
3521
3517
|
this.currencyFormat = e;
|
|
3522
3518
|
}
|
|
3523
3519
|
}
|
|
3524
|
-
class
|
|
3520
|
+
class Bn extends st {
|
|
3525
3521
|
conformToMask(e, t = "") {
|
|
3526
3522
|
const l = this.currencyFormat.isNegative(e), n = (F) => F === "" && l && !(this.currencyFormat.minusSign === void 0 ? t === this.currencyFormat.negativePrefix + this.currencyFormat.negativeSuffix : t === this.currencyFormat.negativePrefix), r = (F) => {
|
|
3527
3523
|
if (n(F))
|
|
@@ -3546,7 +3542,7 @@ class zn extends st {
|
|
|
3546
3542
|
} : "";
|
|
3547
3543
|
}
|
|
3548
3544
|
}
|
|
3549
|
-
class
|
|
3545
|
+
class Un extends st {
|
|
3550
3546
|
conformToMask(e, t = "") {
|
|
3551
3547
|
if (e === "" || this.currencyFormat.parse(t) === 0 && this.currencyFormat.stripCurrency(t, !0).slice(0, -1) === this.currencyFormat.stripCurrency(e, !0))
|
|
3552
3548
|
return "";
|
|
@@ -3557,7 +3553,7 @@ class Bn extends st {
|
|
|
3557
3553
|
};
|
|
3558
3554
|
}
|
|
3559
3555
|
}
|
|
3560
|
-
const
|
|
3556
|
+
const xn = {
|
|
3561
3557
|
locale: void 0,
|
|
3562
3558
|
currency: void 0,
|
|
3563
3559
|
currencyDisplay: void 0,
|
|
@@ -3570,7 +3566,7 @@ const Un = {
|
|
|
3570
3566
|
useGrouping: void 0,
|
|
3571
3567
|
valueScaling: void 0
|
|
3572
3568
|
};
|
|
3573
|
-
class
|
|
3569
|
+
class Hn {
|
|
3574
3570
|
constructor(e) {
|
|
3575
3571
|
this.el = e.el, this.onInput = e.onInput, this.onChange = e.onChange, this.addEventListener(), this.init(e.options);
|
|
3576
3572
|
}
|
|
@@ -3586,9 +3582,9 @@ class xn {
|
|
|
3586
3582
|
}
|
|
3587
3583
|
init(e) {
|
|
3588
3584
|
this.options = {
|
|
3589
|
-
...
|
|
3585
|
+
...xn,
|
|
3590
3586
|
...e
|
|
3591
|
-
}, this.options.autoDecimalDigits && (this.options.hideNegligibleDecimalDigitsOnFocus = !1), this.el.getAttribute("inputmode") || this.el.setAttribute("inputmode", this.options.autoDecimalDigits ? "numeric" : "decimal"), this.currencyFormat = new
|
|
3587
|
+
}, this.options.autoDecimalDigits && (this.options.hideNegligibleDecimalDigitsOnFocus = !1), this.el.getAttribute("inputmode") || this.el.setAttribute("inputmode", this.options.autoDecimalDigits ? "numeric" : "decimal"), this.currencyFormat = new zn(this.options), this.numberMask = this.options.autoDecimalDigits ? new Un(this.currencyFormat) : new Bn(this.currencyFormat);
|
|
3592
3588
|
const t = {
|
|
3593
3589
|
[Ve.precision]: this.currencyFormat.maximumFractionDigits,
|
|
3594
3590
|
[Ve.thousands]: 3,
|
|
@@ -3699,16 +3695,16 @@ class xn {
|
|
|
3699
3695
|
this.el.setSelectionRange(e, t);
|
|
3700
3696
|
}
|
|
3701
3697
|
}
|
|
3702
|
-
const
|
|
3703
|
-
function
|
|
3698
|
+
const Gn = (o) => o != null && o.matches("input") ? o : o == null ? void 0 : o.querySelector("input");
|
|
3699
|
+
function Wn(o, e) {
|
|
3704
3700
|
var t, l, n, r;
|
|
3705
3701
|
let a;
|
|
3706
3702
|
const u = R(null), s = R(null), i = R(null), c = vt(), d = (c == null ? void 0 : c.emit) || ((l = (t = c == null ? void 0 : c.proxy) === null || t === void 0 ? void 0 : t.$emit) === null || l === void 0 ? void 0 : l.bind(c == null ? void 0 : c.proxy)), b = (c == null ? void 0 : c.props) || ((n = c == null ? void 0 : c.proxy) === null || n === void 0 ? void 0 : n.$props), y = ht.startsWith("3"), F = y && ((r = c == null ? void 0 : c.attrs.modelModifiers) === null || r === void 0 ? void 0 : r.lazy), D = A(() => b == null ? void 0 : b[y ? "modelValue" : "value"]), O = y ? "update:modelValue" : "input", E = F ? "update:modelValue" : "change";
|
|
3707
3703
|
return ne(u, (V) => {
|
|
3708
3704
|
var x;
|
|
3709
3705
|
if (V) {
|
|
3710
|
-
const ee =
|
|
3711
|
-
ee ? (a = new
|
|
3706
|
+
const ee = Gn((x = V == null ? void 0 : V.$el) !== null && x !== void 0 ? x : V);
|
|
3707
|
+
ee ? (a = new Hn({
|
|
3712
3708
|
el: ee,
|
|
3713
3709
|
options: o,
|
|
3714
3710
|
onInput: (te) => {
|
|
@@ -3728,7 +3724,7 @@ function Gn(o, e) {
|
|
|
3728
3724
|
setOptions: (V) => a == null ? void 0 : a.setOptions(V)
|
|
3729
3725
|
};
|
|
3730
3726
|
}
|
|
3731
|
-
const
|
|
3727
|
+
const Kn = ["disabled", "step", "placeholder", "name"], _n = /* @__PURE__ */ K({
|
|
3732
3728
|
__name: "cl-ui-currency-input",
|
|
3733
3729
|
props: {
|
|
3734
3730
|
modelValue: { type: [String, Object, Number, Boolean, null] },
|
|
@@ -3743,7 +3739,7 @@ const Wn = ["disabled", "step", "placeholder", "name"], Kn = /* @__PURE__ */ K({
|
|
|
3743
3739
|
},
|
|
3744
3740
|
emits: ["update:modelValue", "focus", "change"],
|
|
3745
3741
|
setup(o, { expose: e, emit: t }) {
|
|
3746
|
-
const l = o, n = t, { inputRef: r, setOptions: a, setValue: u, numberValue: s } =
|
|
3742
|
+
const l = o, n = t, { inputRef: r, setOptions: a, setValue: u, numberValue: s } = Wn(l.currencyOptions, !1), i = A(() => c(l.modelValue) ? l.modelValue : 0);
|
|
3747
3743
|
function c(D) {
|
|
3748
3744
|
return typeof D == "number" && isNaN(D) === !1;
|
|
3749
3745
|
}
|
|
@@ -3798,12 +3794,12 @@ const Wn = ["disabled", "step", "placeholder", "name"], Kn = /* @__PURE__ */ K({
|
|
|
3798
3794
|
onChange: F,
|
|
3799
3795
|
onBlur: b,
|
|
3800
3796
|
onFocus: O[0] || (O[0] = (E) => n("focus"))
|
|
3801
|
-
}, null, 42,
|
|
3797
|
+
}, null, 42, Kn));
|
|
3802
3798
|
}
|
|
3803
|
-
}), Zn = (o) => (yt("data-v-5cb4ccea"), o = o(), wt(), o),
|
|
3799
|
+
}), Zn = (o) => (yt("data-v-5cb4ccea"), o = o(), wt(), o), Qn = { class: "cl-flex cl-items-start" }, Yn = { class: "cl-w-full" }, Jn = /* @__PURE__ */ Zn(() => /* @__PURE__ */ v("span", null, null, -1)), Xn = ["min", "max", "step", "disabled"], er = { class: "cl-bg-transparent cl-text-center cl-text-sm cl-w-full" }, lr = { class: "cl-bg-transparent cl-text-sm" }, tr = {
|
|
3804
3800
|
key: 1,
|
|
3805
3801
|
class: "cl-emphasis-danger cl-text-sm cl-w-full"
|
|
3806
|
-
},
|
|
3802
|
+
}, or = /* @__PURE__ */ K({
|
|
3807
3803
|
inheritAttrs: !1,
|
|
3808
3804
|
__name: "cl-ui-slider",
|
|
3809
3805
|
props: /* @__PURE__ */ Oe({
|
|
@@ -3831,7 +3827,7 @@ const Wn = ["disabled", "step", "placeholder", "name"], Kn = /* @__PURE__ */ K({
|
|
|
3831
3827
|
(i = r.value) == null || i.focus();
|
|
3832
3828
|
}
|
|
3833
3829
|
}), (i, c) => u.value ? (p(), w("div", me(ce({ key: 0 }, i.$attrs)), [
|
|
3834
|
-
v("div",
|
|
3830
|
+
v("div", Qn, [
|
|
3835
3831
|
v("span", {
|
|
3836
3832
|
class: B(["cl-border cl-border-transparent cl-leading-6 cl-mr-1 cl-px-2 cl-rounded-full cl-select-none cl-shadow cl-text-center cl-text-xs", {
|
|
3837
3833
|
"cl-bg-white cl-cursor-pointer hover:cl-border-grey-1": !i.disabled,
|
|
@@ -3839,8 +3835,8 @@ const Wn = ["disabled", "step", "placeholder", "name"], Kn = /* @__PURE__ */ K({
|
|
|
3839
3835
|
}]),
|
|
3840
3836
|
onClick: c[0] || (c[0] = (d) => l.value = i.disabled ? l.value : i.min)
|
|
3841
3837
|
}, I(Number.isInteger(i.min) ? g(De)(i.min) : g(He)(i.min, g(re).DECIMAL)), 3),
|
|
3842
|
-
v("div",
|
|
3843
|
-
s.value ? (p(),
|
|
3838
|
+
v("div", Yn, [
|
|
3839
|
+
s.value ? (p(), Z(ul, {
|
|
3844
3840
|
key: 0,
|
|
3845
3841
|
ref_key: "sliderRef",
|
|
3846
3842
|
ref: r,
|
|
@@ -3856,7 +3852,7 @@ const Wn = ["disabled", "step", "placeholder", "name"], Kn = /* @__PURE__ */ K({
|
|
|
3856
3852
|
placeholder: i.placeholder
|
|
3857
3853
|
}, {
|
|
3858
3854
|
default: H(() => [
|
|
3859
|
-
|
|
3855
|
+
Jn
|
|
3860
3856
|
]),
|
|
3861
3857
|
_: 1
|
|
3862
3858
|
}, 8, ["modelValue", "format", "precision", "min", "max", "step", "disabled", "placeholder"])) : (p(), w(J, { key: 1 }, [
|
|
@@ -3870,7 +3866,7 @@ const Wn = ["disabled", "step", "placeholder", "name"], Kn = /* @__PURE__ */ K({
|
|
|
3870
3866
|
max: i.max,
|
|
3871
3867
|
step: i.step,
|
|
3872
3868
|
disabled: i.disabled
|
|
3873
|
-
}, null, 8,
|
|
3869
|
+
}, null, 8, Xn), [
|
|
3874
3870
|
[
|
|
3875
3871
|
bt,
|
|
3876
3872
|
l.value,
|
|
@@ -3878,7 +3874,7 @@ const Wn = ["disabled", "step", "placeholder", "name"], Kn = /* @__PURE__ */ K({
|
|
|
3878
3874
|
{ number: !0 }
|
|
3879
3875
|
]
|
|
3880
3876
|
]),
|
|
3881
|
-
v("div",
|
|
3877
|
+
v("div", er, I(Number.isInteger(l.value) ? g(De)(l.value) : g(He)(l.value, g(re).DECIMAL)), 1)
|
|
3882
3878
|
], 64))
|
|
3883
3879
|
]),
|
|
3884
3880
|
v("span", {
|
|
@@ -3888,18 +3884,18 @@ const Wn = ["disabled", "step", "placeholder", "name"], Kn = /* @__PURE__ */ K({
|
|
|
3888
3884
|
}]),
|
|
3889
3885
|
onClick: c[3] || (c[3] = (d) => l.value = i.disabled ? l.value : i.max)
|
|
3890
3886
|
}, I(Number.isInteger(i.max) ? g(De)(i.max) : g(He)(i.max, g(re).DECIMAL)), 3),
|
|
3891
|
-
v("div",
|
|
3887
|
+
v("div", lr, [
|
|
3892
3888
|
v("div", {
|
|
3893
3889
|
class: "cl-bg-white cl-border cl-border-transparent cl-cursor-pointer cl-float-right cl-p-1.5 cl-px-2 cl-rounded-full cl-shadow cl-text-xs hover:cl-border-grey-1",
|
|
3894
3890
|
onClick: c[4] || (c[4] = (d) => s.value = !s.value)
|
|
3895
3891
|
}, [
|
|
3896
|
-
N(g(
|
|
3892
|
+
N(g(_), { icon: "ph:arrows-left-right-thin" })
|
|
3897
3893
|
])
|
|
3898
3894
|
])
|
|
3899
3895
|
])
|
|
3900
|
-
], 16)) : (p(), w("div",
|
|
3896
|
+
], 16)) : (p(), w("div", tr, I(g(n)("slider.invalidProps")), 1));
|
|
3901
3897
|
}
|
|
3902
|
-
}),
|
|
3898
|
+
}), ar = /* @__PURE__ */ Se(or, [["__scopeId", "data-v-5cb4ccea"]]);
|
|
3903
3899
|
function Pl(o) {
|
|
3904
3900
|
let e = !1;
|
|
3905
3901
|
switch (o) {
|
|
@@ -3917,7 +3913,7 @@ function Pl(o) {
|
|
|
3917
3913
|
}
|
|
3918
3914
|
return e;
|
|
3919
3915
|
}
|
|
3920
|
-
function
|
|
3916
|
+
function nr(o) {
|
|
3921
3917
|
return o === "number" || o === "range";
|
|
3922
3918
|
}
|
|
3923
3919
|
function zl(o) {
|
|
@@ -3938,7 +3934,7 @@ function zl(o) {
|
|
|
3938
3934
|
function Ue(o) {
|
|
3939
3935
|
return o === "button" || o === "submit" || o === "reset";
|
|
3940
3936
|
}
|
|
3941
|
-
function
|
|
3937
|
+
function rr(o) {
|
|
3942
3938
|
let e;
|
|
3943
3939
|
switch (o) {
|
|
3944
3940
|
case "datetime":
|
|
@@ -3959,27 +3955,27 @@ function nr(o) {
|
|
|
3959
3955
|
}
|
|
3960
3956
|
function Bl(o, e) {
|
|
3961
3957
|
const t = o.target;
|
|
3962
|
-
return
|
|
3958
|
+
return nr(e) ? t.valueAsNumber : Ue(e) ? t.checked : t.value;
|
|
3963
3959
|
}
|
|
3964
|
-
const
|
|
3960
|
+
const ir = { class: "cl-flex cl-justify-between" }, sr = { class: "cl-w-full" }, cr = {
|
|
3965
3961
|
key: 0,
|
|
3966
3962
|
class: "cl-block cl-left-auto cl-relative cl-text-danger-default"
|
|
3967
|
-
},
|
|
3963
|
+
}, ur = {
|
|
3968
3964
|
key: 1,
|
|
3969
3965
|
class: "cl-bg-danger-light cl-block cl-max-h-6 cl-mb-1 cl-ml-2 cl-px-2 cl-rounded-md cl-text-center cl-text-danger-default cl-text-xs"
|
|
3970
|
-
},
|
|
3966
|
+
}, dr = {
|
|
3971
3967
|
key: 0,
|
|
3972
3968
|
class: "cl-relative"
|
|
3973
|
-
},
|
|
3969
|
+
}, fr = ["type", "disabled", "min", "max", "minlength", "maxlength", "step", "placeholder", "name", "autocomplete"], pr = { key: 0 }, mr = { key: 1 }, vr = {
|
|
3974
3970
|
key: 3,
|
|
3975
3971
|
class: "cl-max-h-[2.75rem] cl-pb-0.5"
|
|
3976
|
-
},
|
|
3972
|
+
}, hr = {
|
|
3977
3973
|
key: 0,
|
|
3978
3974
|
class: "cl-bg-primary-lighter cl-px-2 cl-rounded-md cl-text-center cl-text-secondary-light cl-text-xs cl-w-auto cl-whitespace-pre-line"
|
|
3979
|
-
},
|
|
3975
|
+
}, gr = {
|
|
3980
3976
|
key: 1,
|
|
3981
3977
|
class: "cl-bg-danger-light cl-px-2 cl-rounded-md cl-text-center cl-text-danger-default cl-text-xs cl-w-auto cl-whitespace-pre-line"
|
|
3982
|
-
},
|
|
3978
|
+
}, br = /* @__PURE__ */ K({
|
|
3983
3979
|
inheritAttrs: !1,
|
|
3984
3980
|
__name: "cl-ui-input",
|
|
3985
3981
|
props: {
|
|
@@ -4054,8 +4050,8 @@ const rr = { class: "cl-flex cl-justify-between" }, ir = { class: "cl-w-full" },
|
|
|
4054
4050
|
be(l.customValidationFunction(l.label, k));
|
|
4055
4051
|
})
|
|
4056
4052
|
];
|
|
4057
|
-
return (typeof k == "string" || typeof k == "number") && (G.push(
|
|
4058
|
-
const Pe = [...be.map((
|
|
4053
|
+
return (typeof k == "string" || typeof k == "number") && (G.push(Xa(l.min, l.inputType, l.label, k, l.timeZone)), G.push(en(l.max, l.inputType, l.label, k, l.timeZone))), l.isRequired && G.push(ln(l.label, k)), l.inputType === "email" && typeof k == "string" && G.push(tn(l.label, k)), Promise.all(G).then((be) => {
|
|
4054
|
+
const Pe = [...be.map((Ze) => Ze.message)], Re = be.some((Ze) => Ze.message.length > 0 && Ze.valid === !1) || l.externalErrors.length > 0;
|
|
4059
4055
|
ee.value = !0, Re ? (te.value = Pe, n("validated", !1, k)) : (te.value = [], n("validated", !0, k)), x.value = !Re;
|
|
4060
4056
|
});
|
|
4061
4057
|
}
|
|
@@ -4111,7 +4107,7 @@ const rr = { class: "cl-flex cl-justify-between" }, ir = { class: "cl-w-full" },
|
|
|
4111
4107
|
async function Te() {
|
|
4112
4108
|
await L(), W();
|
|
4113
4109
|
}
|
|
4114
|
-
return
|
|
4110
|
+
return _e(() => {
|
|
4115
4111
|
l.validateImmediately && m(l.modelValue, !0);
|
|
4116
4112
|
}), ne(() => l.isRequired, () => m(l.modelValue, !0)), ne(() => l.externalErrors, async () => {
|
|
4117
4113
|
await q(b.value), n("update:model-value", b.value);
|
|
@@ -4137,16 +4133,16 @@ const rr = { class: "cl-flex cl-justify-between" }, ir = { class: "cl-w-full" },
|
|
|
4137
4133
|
onMouseenter: P[13] || (P[13] = (G) => C(!0)),
|
|
4138
4134
|
onMouseleave: P[14] || (P[14] = (G) => C(!1))
|
|
4139
4135
|
}, [
|
|
4140
|
-
v("div",
|
|
4141
|
-
v("div",
|
|
4136
|
+
v("div", ir, [
|
|
4137
|
+
v("div", sr, [
|
|
4142
4138
|
X(v("label", { class: "cl-block cl-mb-1 cl-text-grey-4 cl-text-xs cl-tracking-widest" }, I(k.label), 513), [
|
|
4143
4139
|
[ae, k.showLabel && k.label !== ""]
|
|
4144
4140
|
])
|
|
4145
4141
|
]),
|
|
4146
|
-
k.isRequired && i.value ? (p(), w("label",
|
|
4147
|
-
k.isRequired && !i.value && k.requiredText.length ? (p(), w("label",
|
|
4142
|
+
k.isRequired && i.value ? (p(), w("label", cr, " * ")) : z("", !0),
|
|
4143
|
+
k.isRequired && !i.value && k.requiredText.length ? (p(), w("label", ur, I(k.requiredText), 1)) : z("", !0)
|
|
4148
4144
|
]),
|
|
4149
|
-
k.inputType !== "range" && k.inputType !== "currency" && !g(zl)(k.inputType) ? (p(), w("div",
|
|
4145
|
+
k.inputType !== "range" && k.inputType !== "currency" && !g(zl)(k.inputType) ? (p(), w("div", dr, [
|
|
4150
4146
|
X(v("input", ce({
|
|
4151
4147
|
ref_key: "inputElement",
|
|
4152
4148
|
ref: r,
|
|
@@ -4181,7 +4177,7 @@ const rr = { class: "cl-flex cl-justify-between" }, ir = { class: "cl-w-full" },
|
|
|
4181
4177
|
n("input", G, g(Bl)(G, k.inputType));
|
|
4182
4178
|
}),
|
|
4183
4179
|
onChange: se
|
|
4184
|
-
}), null, 16,
|
|
4180
|
+
}), null, 16, fr), [
|
|
4185
4181
|
[xl, b.value]
|
|
4186
4182
|
]),
|
|
4187
4183
|
N(Ee, {
|
|
@@ -4189,15 +4185,15 @@ const rr = { class: "cl-flex cl-justify-between" }, ir = { class: "cl-w-full" },
|
|
|
4189
4185
|
duration: 300
|
|
4190
4186
|
}, {
|
|
4191
4187
|
default: H(() => [
|
|
4192
|
-
k.inputType === "number" && !k.disabled && k.showArrows ? X((p(), w("div",
|
|
4193
|
-
N(g(
|
|
4188
|
+
k.inputType === "number" && !k.disabled && k.showArrows ? X((p(), w("div", pr, [
|
|
4189
|
+
N(g(_), {
|
|
4194
4190
|
icon: "ph:caret-up-bold",
|
|
4195
4191
|
class: "cl-absolute cl-bg-link-default cl-right-1 cl-rounded-full cl-text-sm cl-text-white cl-top-1 hover:cl-bg-link-light hover:cl-cursor-pointer",
|
|
4196
4192
|
onClick: S,
|
|
4197
4193
|
onMousedown: P[4] || (P[4] = oe(() => {
|
|
4198
4194
|
}, ["prevent"]))
|
|
4199
4195
|
}),
|
|
4200
|
-
N(g(
|
|
4196
|
+
N(g(_), {
|
|
4201
4197
|
icon: "ph:caret-down-bold",
|
|
4202
4198
|
class: "cl-absolute cl-bg-link-default cl-bottom-2 cl-right-1 cl-rounded-full cl-text-sm cl-text-white hover:cl-bg-link-light hover:cl-cursor-pointer",
|
|
4203
4199
|
onClick: j,
|
|
@@ -4210,8 +4206,8 @@ const rr = { class: "cl-flex cl-justify-between" }, ir = { class: "cl-w-full" },
|
|
|
4210
4206
|
]),
|
|
4211
4207
|
_: 1
|
|
4212
4208
|
})
|
|
4213
|
-
])) : k.inputType === "currency" ? (p(), w("div",
|
|
4214
|
-
N(
|
|
4209
|
+
])) : k.inputType === "currency" ? (p(), w("div", mr, [
|
|
4210
|
+
N(_n, ce({
|
|
4215
4211
|
ref_key: "currencyInputRef",
|
|
4216
4212
|
ref: a,
|
|
4217
4213
|
modelValue: b.value,
|
|
@@ -4230,7 +4226,7 @@ const rr = { class: "cl-flex cl-justify-between" }, ir = { class: "cl-w-full" },
|
|
|
4230
4226
|
onFocus: P[8] || (P[8] = (G) => n("focus")),
|
|
4231
4227
|
onBlur: L
|
|
4232
4228
|
}), null, 16, ["modelValue", "disabled", "placeholder", "is-valid", "highlight-when-valid", "input-specific-classes", "group", "step", "currency-options"])
|
|
4233
|
-
])) : g(zl)(k.inputType) ? (p(),
|
|
4229
|
+
])) : g(zl)(k.inputType) ? (p(), Z(g(jn), ce({ key: 2 }, k.$attrs, {
|
|
4234
4230
|
ref_key: "inputElement",
|
|
4235
4231
|
ref: r,
|
|
4236
4232
|
date: y.value,
|
|
@@ -4242,7 +4238,7 @@ const rr = { class: "cl-flex cl-justify-between" }, ir = { class: "cl-w-full" },
|
|
|
4242
4238
|
}],
|
|
4243
4239
|
disabled: k.disabled,
|
|
4244
4240
|
required: k.isRequired,
|
|
4245
|
-
type: g(
|
|
4241
|
+
type: g(rr)(k.inputType),
|
|
4246
4242
|
"time-zone": k.timeZone,
|
|
4247
4243
|
min: F.value,
|
|
4248
4244
|
max: D.value,
|
|
@@ -4252,8 +4248,8 @@ const rr = { class: "cl-flex cl-justify-between" }, ir = { class: "cl-w-full" },
|
|
|
4252
4248
|
"date-format-locale": k.dateFormatLocale,
|
|
4253
4249
|
onBlur: oe(L, ["self"]),
|
|
4254
4250
|
onFocus: P[10] || (P[10] = (G) => n("focus"))
|
|
4255
|
-
}), null, 16, ["date", "class", "disabled", "required", "type", "time-zone", "min", "max", "placeholder", "initial-date", "quick-date-scope", "date-format-locale"])) : k.inputType === "range" && typeof b.value == "number" ? (p(), w("div",
|
|
4256
|
-
N(g(
|
|
4251
|
+
}), null, 16, ["date", "class", "disabled", "required", "type", "time-zone", "min", "max", "placeholder", "initial-date", "quick-date-scope", "date-format-locale"])) : k.inputType === "range" && typeof b.value == "number" ? (p(), w("div", vr, [
|
|
4252
|
+
N(g(ar), {
|
|
4257
4253
|
ref_key: "inputElement",
|
|
4258
4254
|
ref: r,
|
|
4259
4255
|
value: b.value,
|
|
@@ -4269,11 +4265,11 @@ const rr = { class: "cl-flex cl-justify-between" }, ir = { class: "cl-w-full" },
|
|
|
4269
4265
|
}, null, 8, ["value", "min", "max", "step", "placeholder", "disabled"])
|
|
4270
4266
|
])) : z("", !0)
|
|
4271
4267
|
], 32),
|
|
4272
|
-
x.value && V.value && ee.value ? (p(), w("div",
|
|
4273
|
-
!x.value && $.value.length > 0 && k.showValidationMessages && ee.value ? (p(), w("div",
|
|
4268
|
+
x.value && V.value && ee.value ? (p(), w("div", hr, I(V.value), 1)) : z("", !0),
|
|
4269
|
+
!x.value && $.value.length > 0 && k.showValidationMessages && ee.value ? (p(), w("div", gr, I($.value), 1)) : z("", !0)
|
|
4274
4270
|
], 16));
|
|
4275
4271
|
}
|
|
4276
|
-
}), hl = /* @__PURE__ */ Se(
|
|
4272
|
+
}), hl = /* @__PURE__ */ Se(br, [["__scopeId", "data-v-7748b62a"]]), yr = [
|
|
4277
4273
|
"string",
|
|
4278
4274
|
"boolean",
|
|
4279
4275
|
"number",
|
|
@@ -4286,7 +4282,7 @@ const rr = { class: "cl-flex cl-justify-between" }, ir = { class: "cl-w-full" },
|
|
|
4286
4282
|
function ct(o) {
|
|
4287
4283
|
return typeof o.caption == "string" && typeof o.name == "string" && typeof o.type == "string";
|
|
4288
4284
|
}
|
|
4289
|
-
function
|
|
4285
|
+
function wr(o) {
|
|
4290
4286
|
let e = Array.isArray(o);
|
|
4291
4287
|
if (e) {
|
|
4292
4288
|
for (const t of o)
|
|
@@ -4297,12 +4293,12 @@ function yr(o) {
|
|
|
4297
4293
|
}
|
|
4298
4294
|
return e;
|
|
4299
4295
|
}
|
|
4300
|
-
const
|
|
4296
|
+
const kr = [
|
|
4301
4297
|
"ellipsis",
|
|
4302
4298
|
"wrap-text"
|
|
4303
4299
|
];
|
|
4304
4300
|
var le = /* @__PURE__ */ ((o) => (o[o.CONTAINS = 0] = "CONTAINS", o[o.NOT_CONTAINS = 1] = "NOT_CONTAINS", o[o.EQUAL = 2] = "EQUAL", o[o.NOT_EQUAL = 3] = "NOT_EQUAL", o[o.STARTS_WITH = 4] = "STARTS_WITH", o[o.ENDS_WITH = 5] = "ENDS_WITH", o[o.GREATER_THAN = 6] = "GREATER_THAN", o[o.LESS_THAN = 7] = "LESS_THAN", o[o.EQUAL_OR_GREATER_THAN = 8] = "EQUAL_OR_GREATER_THAN", o[o.EQUAL_OR_LESS_THAN = 9] = "EQUAL_OR_LESS_THAN", o[o.AND_CONTAINS = 10] = "AND_CONTAINS", o))(le || {});
|
|
4305
|
-
const
|
|
4301
|
+
const $r = [
|
|
4306
4302
|
"equal",
|
|
4307
4303
|
"notequal",
|
|
4308
4304
|
"contains",
|
|
@@ -4315,24 +4311,24 @@ const kr = [
|
|
|
4315
4311
|
"equalorgreaterthan",
|
|
4316
4312
|
"andcontains"
|
|
4317
4313
|
];
|
|
4318
|
-
function
|
|
4314
|
+
function Sr(o) {
|
|
4319
4315
|
return typeof o.filterOnColumn == "string" && typeof o.filterOperation == "number" && typeof o.filterValue == "string";
|
|
4320
4316
|
}
|
|
4321
|
-
function
|
|
4317
|
+
function Tr(o) {
|
|
4322
4318
|
return o === null || typeof o.sortByAscending == "boolean" && typeof o.sortOnColumn == "string";
|
|
4323
4319
|
}
|
|
4324
|
-
function
|
|
4325
|
-
let e = typeof o.filters == "object" && Array.isArray(o.filters) && typeof o.pageNumber == "number" && typeof o.pageSize == "number" && typeof o.sort == "object" &&
|
|
4320
|
+
function Cr(o) {
|
|
4321
|
+
let e = typeof o.filters == "object" && Array.isArray(o.filters) && typeof o.pageNumber == "number" && typeof o.pageSize == "number" && typeof o.sort == "object" && Tr(o.sort);
|
|
4326
4322
|
if (e) {
|
|
4327
4323
|
for (const t of o.filters)
|
|
4328
|
-
if (
|
|
4324
|
+
if (!Sr(t)) {
|
|
4329
4325
|
e = !1;
|
|
4330
4326
|
break;
|
|
4331
4327
|
}
|
|
4332
4328
|
}
|
|
4333
4329
|
return e;
|
|
4334
4330
|
}
|
|
4335
|
-
function
|
|
4331
|
+
function Or(o, e) {
|
|
4336
4332
|
let t = typeof o.results == "object" && Array.isArray(o.results) && typeof o.totalRecords == "number";
|
|
4337
4333
|
if (t) {
|
|
4338
4334
|
for (const l of o.results)
|
|
@@ -4343,7 +4339,7 @@ function Cr(o, e) {
|
|
|
4343
4339
|
}
|
|
4344
4340
|
return t;
|
|
4345
4341
|
}
|
|
4346
|
-
const
|
|
4342
|
+
const Er = {
|
|
4347
4343
|
method: "equal",
|
|
4348
4344
|
icon: "mdi:equal",
|
|
4349
4345
|
description: "Equals",
|
|
@@ -4356,12 +4352,12 @@ const Or = {
|
|
|
4356
4352
|
"list"
|
|
4357
4353
|
],
|
|
4358
4354
|
key: "equal"
|
|
4359
|
-
},
|
|
4355
|
+
}, Fr = {
|
|
4360
4356
|
method: "contains",
|
|
4361
4357
|
icon: "mdi:format-letter-matches",
|
|
4362
4358
|
description: "Contains",
|
|
4363
4359
|
allowedTypes: ["string"]
|
|
4364
|
-
},
|
|
4360
|
+
}, Dr = {
|
|
4365
4361
|
method: "lessthan",
|
|
4366
4362
|
icon: "mdi:less-than",
|
|
4367
4363
|
description: "Before",
|
|
@@ -4371,7 +4367,7 @@ const Or = {
|
|
|
4371
4367
|
],
|
|
4372
4368
|
key: "before"
|
|
4373
4369
|
}, Ul = [
|
|
4374
|
-
|
|
4370
|
+
Fr,
|
|
4375
4371
|
{
|
|
4376
4372
|
method: "notcontains",
|
|
4377
4373
|
icon: "mdi:format-letter-spacing-variant",
|
|
@@ -4390,7 +4386,7 @@ const Or = {
|
|
|
4390
4386
|
description: "Ends with",
|
|
4391
4387
|
allowedTypes: ["string"]
|
|
4392
4388
|
},
|
|
4393
|
-
|
|
4389
|
+
Er,
|
|
4394
4390
|
{
|
|
4395
4391
|
method: "notequal",
|
|
4396
4392
|
icon: "mdi:not-equal",
|
|
@@ -4403,7 +4399,7 @@ const Or = {
|
|
|
4403
4399
|
],
|
|
4404
4400
|
key: "notequal"
|
|
4405
4401
|
},
|
|
4406
|
-
|
|
4402
|
+
Dr,
|
|
4407
4403
|
{
|
|
4408
4404
|
method: "greaterthan",
|
|
4409
4405
|
icon: "mdi:greater-than",
|
|
@@ -4458,7 +4454,7 @@ const Or = {
|
|
|
4458
4454
|
description: "Less than",
|
|
4459
4455
|
allowedTypes: ["number"]
|
|
4460
4456
|
}
|
|
4461
|
-
],
|
|
4457
|
+
], Nr = { class: "cl-group cl-inline cl-relative cl-w-auto" }, Ar = { class: "cl-bg-off-white cl-border-grey-1 cl-border-r cl-flex cl-h-full cl-items-center cl-justify-center cl-rounded-md cl-w-10" }, Vr = { class: "cl-p-2 cl-select-none" }, qr = ["onClick"], Ir = /* @__PURE__ */ K({
|
|
4462
4458
|
__name: "cl-ui-grid-method-selector",
|
|
4463
4459
|
props: {
|
|
4464
4460
|
filter: {},
|
|
@@ -4499,9 +4495,9 @@ const Or = {
|
|
|
4499
4495
|
return;
|
|
4500
4496
|
l("update:filter", i);
|
|
4501
4497
|
}
|
|
4502
|
-
return (s, i) => (p(), w("div",
|
|
4503
|
-
v("div",
|
|
4504
|
-
a.value ? (p(),
|
|
4498
|
+
return (s, i) => (p(), w("div", Nr, [
|
|
4499
|
+
v("div", Ar, [
|
|
4500
|
+
a.value ? (p(), Z(g(_), {
|
|
4505
4501
|
key: 0,
|
|
4506
4502
|
icon: a.value.icon,
|
|
4507
4503
|
class: B(["cl-text-lg", {
|
|
@@ -4517,7 +4513,7 @@ const Or = {
|
|
|
4517
4513
|
"cl--left-44": !s.firstHalf
|
|
4518
4514
|
}])
|
|
4519
4515
|
}, [
|
|
4520
|
-
v("strong",
|
|
4516
|
+
v("strong", Vr, I(g(n)("grid.availableMethods")), 1),
|
|
4521
4517
|
(p(!0), w(J, null, ue(r.value, (c, d) => {
|
|
4522
4518
|
var b;
|
|
4523
4519
|
return p(), w("span", {
|
|
@@ -4528,22 +4524,22 @@ const Or = {
|
|
|
4528
4524
|
onClick: oe((y) => u(c.method), ["prevent"])
|
|
4529
4525
|
}, [
|
|
4530
4526
|
pe(I(c.description) + " ", 1),
|
|
4531
|
-
N(g(
|
|
4527
|
+
N(g(_), {
|
|
4532
4528
|
icon: c.icon,
|
|
4533
4529
|
class: "cl-float-right cl-text-grey-4 cl-text-sm"
|
|
4534
4530
|
}, null, 8, ["icon"])
|
|
4535
|
-
], 10,
|
|
4531
|
+
], 10, qr);
|
|
4536
4532
|
}), 128))
|
|
4537
4533
|
], 2)
|
|
4538
4534
|
]));
|
|
4539
4535
|
}
|
|
4540
|
-
}),
|
|
4536
|
+
}), Rr = {
|
|
4541
4537
|
key: 0,
|
|
4542
4538
|
class: "cl-border cl-border-grey-2 cl-flex cl-overflow-hidden cl-rounded-md lg:cl-overflow-visible"
|
|
4543
|
-
},
|
|
4539
|
+
}, Mr = ["disabled"], Lr = /* @__PURE__ */ v("option", { value: void 0 }, null, -1), jr = ["selected"], Pr = ["selected"], zr = /* @__PURE__ */ v("span", null, null, -1), Br = {
|
|
4544
4540
|
key: 4,
|
|
4545
4541
|
class: "cl-w-full"
|
|
4546
|
-
},
|
|
4542
|
+
}, Ur = /* @__PURE__ */ v("span", null, null, -1), xr = ["disabled"], Hr = /* @__PURE__ */ v("option", { value: void 0 }, null, -1), Gr = ["value", "selected"], Wr = /* @__PURE__ */ K({
|
|
4547
4543
|
__name: "cl-ui-grid-filter",
|
|
4548
4544
|
props: {
|
|
4549
4545
|
loading: { type: Boolean },
|
|
@@ -4736,23 +4732,23 @@ const Or = {
|
|
|
4736
4732
|
return;
|
|
4737
4733
|
m === !1 && (y.value = h);
|
|
4738
4734
|
}
|
|
4739
|
-
return (f, h) => x.value ? (p(), w("div",
|
|
4735
|
+
return (f, h) => x.value ? (p(), w("div", Rr, [
|
|
4740
4736
|
f.column.type === "boolean" || f.column.type === "slot" && f.column.slotType === "boolean" ? (p(), w("select", {
|
|
4741
4737
|
key: 0,
|
|
4742
4738
|
disabled: f.loading,
|
|
4743
4739
|
class: "!cl-h-[2rem] cl-bg-white cl-border-none cl-font-normal cl-mb-0 cl-rounded-md cl-w-full",
|
|
4744
4740
|
onChange: h[0] || (h[0] = (m) => ee(m.target))
|
|
4745
4741
|
}, [
|
|
4746
|
-
|
|
4742
|
+
Lr,
|
|
4747
4743
|
v("option", {
|
|
4748
4744
|
value: "true",
|
|
4749
4745
|
selected: O.value === "true"
|
|
4750
|
-
}, I(g(n)("grid.true")), 9,
|
|
4746
|
+
}, I(g(n)("grid.true")), 9, jr),
|
|
4751
4747
|
v("option", {
|
|
4752
4748
|
value: "false",
|
|
4753
4749
|
selected: O.value === "false"
|
|
4754
|
-
}, I(g(n)("grid.false")), 9,
|
|
4755
|
-
], 40,
|
|
4750
|
+
}, I(g(n)("grid.false")), 9, Pr)
|
|
4751
|
+
], 40, Mr)) : i.value ? (p(), Z(hl, {
|
|
4756
4752
|
key: 1,
|
|
4757
4753
|
"model-value": E.value,
|
|
4758
4754
|
class: "!cl-h-[2rem] !cl-text-xs cl-border-none cl-mb-0 cl-w-full lg:!cl-text-base",
|
|
@@ -4762,7 +4758,7 @@ const Or = {
|
|
|
4762
4758
|
"input-type": f.column.type === "slot" ? f.column.slotType : f.column.type,
|
|
4763
4759
|
"time-zone": f.timeZone,
|
|
4764
4760
|
"onUpdate:modelValue": h[1] || (h[1] = (m) => ee(null, m ?? ""))
|
|
4765
|
-
}, null, 8, ["model-value", "disabled", "label", "input-type", "time-zone"])) : c.value ? (p(),
|
|
4761
|
+
}, null, 8, ["model-value", "disabled", "label", "input-type", "time-zone"])) : c.value ? (p(), Z(hl, {
|
|
4766
4762
|
key: 2,
|
|
4767
4763
|
"model-value": V.value,
|
|
4768
4764
|
class: "!cl-h-[2rem] [&_.clear-icon]:-cl-m-1 [&_.icon]:cl-text-sm cl-border-none cl-mb-0 cl-w-full",
|
|
@@ -4771,7 +4767,7 @@ const Or = {
|
|
|
4771
4767
|
"time-zone": f.headerDisplayTimezone,
|
|
4772
4768
|
"quick-date-scope": f.quickDateScope,
|
|
4773
4769
|
"onUpdate:modelValue": h[2] || (h[2] = (m) => $(m))
|
|
4774
|
-
}, null, 8, ["model-value", "disabled", "time-zone", "quick-date-scope"])) : f.column.type === "number" || f.column.type === "slot" && f.column.slotType === "number" ? (p(),
|
|
4770
|
+
}, null, 8, ["model-value", "disabled", "time-zone", "quick-date-scope"])) : f.column.type === "number" || f.column.type === "slot" && f.column.slotType === "number" ? (p(), Z(ul, {
|
|
4775
4771
|
key: 3,
|
|
4776
4772
|
"model-value": O.value === "" || isNaN(+O.value) ? null : +O.value,
|
|
4777
4773
|
format: f.column.format === g(re).INTEGER ? g(re).DECIMAL : f.column.format,
|
|
@@ -4785,10 +4781,10 @@ const Or = {
|
|
|
4785
4781
|
"onUpdate:modelValue": h[3] || (h[3] = (m) => m !== null ? te(null, m) : ee(null, ""))
|
|
4786
4782
|
}, {
|
|
4787
4783
|
default: H(() => [
|
|
4788
|
-
|
|
4784
|
+
zr
|
|
4789
4785
|
]),
|
|
4790
4786
|
_: 1
|
|
4791
|
-
}, 8, ["model-value", "format", "precision", "disabled", "readonly"])) : f.column.type === "string" || f.column.type === "slot" && f.column.slotType === "string" ? (p(), w("div",
|
|
4787
|
+
}, 8, ["model-value", "format", "precision", "disabled", "readonly"])) : f.column.type === "string" || f.column.type === "slot" && f.column.slotType === "string" ? (p(), w("div", Br, [
|
|
4792
4788
|
N(Ne, {
|
|
4793
4789
|
"model-value": O.value,
|
|
4794
4790
|
class: "cl-border-none cl-font-normal cl-h-[2rem] cl-px-3 cl-text-xs lg:cl-text-base",
|
|
@@ -4796,7 +4792,7 @@ const Or = {
|
|
|
4796
4792
|
"onUpdate:modelValue": h[4] || (h[4] = (m) => ee(null, m))
|
|
4797
4793
|
}, {
|
|
4798
4794
|
default: H(() => [
|
|
4799
|
-
|
|
4795
|
+
Ur
|
|
4800
4796
|
]),
|
|
4801
4797
|
_: 1
|
|
4802
4798
|
}, 8, ["model-value", "disabled"])
|
|
@@ -4806,14 +4802,14 @@ const Or = {
|
|
|
4806
4802
|
disabled: f.loading,
|
|
4807
4803
|
onChange: h[5] || (h[5] = (m) => b.value ? te(m.target) : ee(m.target))
|
|
4808
4804
|
}, [
|
|
4809
|
-
|
|
4805
|
+
Hr,
|
|
4810
4806
|
(p(!0), w(J, null, ue(f.column.listEntries ?? [], (m) => (p(), w("option", {
|
|
4811
4807
|
key: m.value,
|
|
4812
4808
|
value: m.value,
|
|
4813
4809
|
selected: O.value === m.value.toString()
|
|
4814
|
-
}, I(g(n)(m.translationKey)), 9,
|
|
4815
|
-
], 40,
|
|
4816
|
-
c.value ? z("", !0) : (p(),
|
|
4810
|
+
}, I(g(n)(m.translationKey)), 9, Gr))), 128))
|
|
4811
|
+
], 40, xr)) : z("", !0),
|
|
4812
|
+
c.value ? z("", !0) : (p(), Z(Ir, {
|
|
4817
4813
|
key: 6,
|
|
4818
4814
|
filter: F.value,
|
|
4819
4815
|
"onUpdate:filter": h[6] || (h[6] = (m) => F.value = m),
|
|
@@ -4824,7 +4820,7 @@ const Or = {
|
|
|
4824
4820
|
}, null, 8, ["filter", "loading", "column", "default-operation", "first-half"]))
|
|
4825
4821
|
])) : z("", !0);
|
|
4826
4822
|
}
|
|
4827
|
-
}),
|
|
4823
|
+
}), Kr = { class: "-cl-top-1 cl-bg-white cl-shadow-sm cl-sticky cl-z-20 lg:cl-bg-transparent lg:cl-relative lg:cl-shadow-none" }, _r = { class: "cl-hidden lg:cl-table-row" }, Zr = ["onClick"], Qr = { class: "cl-flex cl-justify-end cl-w-full lg:cl-hidden" }, Yr = { class: "cl-col-span-2 lg:cl-hidden" }, Jr = ["onClick"], Xr = { class: "cl-font-normal cl-mr-1" }, ei = /* @__PURE__ */ K({
|
|
4828
4824
|
__name: "cl-ui-grid-header",
|
|
4829
4825
|
props: {
|
|
4830
4826
|
request: {},
|
|
@@ -4862,8 +4858,8 @@ const Or = {
|
|
|
4862
4858
|
], c.pageNumber = 1, r.value = c;
|
|
4863
4859
|
}
|
|
4864
4860
|
}
|
|
4865
|
-
return (i, c) => (p(), w("thead",
|
|
4866
|
-
v("tr",
|
|
4861
|
+
return (i, c) => (p(), w("thead", Kr, [
|
|
4862
|
+
v("tr", _r, [
|
|
4867
4863
|
(p(!0), w(J, null, ue(i.columns, (d, b) => (p(), w("th", {
|
|
4868
4864
|
key: b,
|
|
4869
4865
|
class: B(["cl-text-grey-3 cl-text-sm", {
|
|
@@ -4873,13 +4869,13 @@ const Or = {
|
|
|
4873
4869
|
}
|
|
4874
4870
|
}, [
|
|
4875
4871
|
pe(I(d.caption) + " ", 1),
|
|
4876
|
-
X(N(g(
|
|
4872
|
+
X(N(g(_), {
|
|
4877
4873
|
class: "cl-inline-block",
|
|
4878
4874
|
icon: "ph:caret-up"
|
|
4879
4875
|
}, null, 512), [
|
|
4880
4876
|
[ae, a(d, !0)]
|
|
4881
4877
|
]),
|
|
4882
|
-
X(N(g(
|
|
4878
|
+
X(N(g(_), {
|
|
4883
4879
|
class: "cl-inline-block",
|
|
4884
4880
|
icon: "ph:caret-down"
|
|
4885
4881
|
}, null, 512), [
|
|
@@ -4892,8 +4888,8 @@ const Or = {
|
|
|
4892
4888
|
"cl-hidden lg:cl-table-row": !i.filterPanelOpen
|
|
4893
4889
|
}])
|
|
4894
4890
|
}, [
|
|
4895
|
-
v("div",
|
|
4896
|
-
N(g(
|
|
4891
|
+
v("div", Qr, [
|
|
4892
|
+
N(g(_), {
|
|
4897
4893
|
class: "cl-text-grey-4 hover:cl-cursor-pointer hover:cl-text-link-default",
|
|
4898
4894
|
icon: "ph:x",
|
|
4899
4895
|
size: 16,
|
|
@@ -4906,28 +4902,28 @@ const Or = {
|
|
|
4906
4902
|
"cl-hidden lg:cl-table-cell": !g($l)(d)
|
|
4907
4903
|
}])
|
|
4908
4904
|
}, [
|
|
4909
|
-
v("div",
|
|
4905
|
+
v("div", Yr, I(d.caption), 1),
|
|
4910
4906
|
g(Je)(d) ? (p(), w("div", {
|
|
4911
4907
|
key: 0,
|
|
4912
4908
|
class: "cl-col-span-2 cl-gap-1 cl-span lg:cl-hidden",
|
|
4913
4909
|
onClick: (y) => i.loading === !1 ? u(d.field) : void 0
|
|
4914
4910
|
}, [
|
|
4915
|
-
v("span",
|
|
4916
|
-
a(d, !0) ? (p(),
|
|
4911
|
+
v("span", Xr, I(g(n)("grid.sortBy")), 1),
|
|
4912
|
+
a(d, !0) ? (p(), Z(g(_), {
|
|
4917
4913
|
key: 0,
|
|
4918
4914
|
class: "cl-cursor-pointer cl-inline-block",
|
|
4919
4915
|
icon: "ph:caret-up"
|
|
4920
|
-
})) : a(d, !1) ? (p(),
|
|
4916
|
+
})) : a(d, !1) ? (p(), Z(g(_), {
|
|
4921
4917
|
key: 1,
|
|
4922
4918
|
class: "cl-cursor-pointer cl-inline-block",
|
|
4923
4919
|
icon: "ph:caret-down"
|
|
4924
|
-
})) : (p(),
|
|
4920
|
+
})) : (p(), Z(g(_), {
|
|
4925
4921
|
key: 2,
|
|
4926
4922
|
class: "cl-cursor-pointer cl-inline-block",
|
|
4927
4923
|
icon: "ph:minus"
|
|
4928
4924
|
}))
|
|
4929
|
-
], 8,
|
|
4930
|
-
N(
|
|
4925
|
+
], 8, Jr)) : z("", !0),
|
|
4926
|
+
N(Wr, {
|
|
4931
4927
|
class: "cl-col-span-4",
|
|
4932
4928
|
loading: i.loading,
|
|
4933
4929
|
filter: r.value.filters.filter((y) => y.filterOnColumn === d.field),
|
|
@@ -4942,7 +4938,7 @@ const Or = {
|
|
|
4942
4938
|
], 2)
|
|
4943
4939
|
]));
|
|
4944
4940
|
}
|
|
4945
|
-
}),
|
|
4941
|
+
}), li = { class: "cl-flex cl-mb-2" }, ti = { class: "cl-basis-full cl-grow" }, oi = /* @__PURE__ */ v("span", null, null, -1), ai = /* @__PURE__ */ K({
|
|
4946
4942
|
__name: "cl-ui-grid-search",
|
|
4947
4943
|
props: /* @__PURE__ */ Oe({
|
|
4948
4944
|
columns: {},
|
|
@@ -4976,8 +4972,8 @@ const Or = {
|
|
|
4976
4972
|
return (s, i) => {
|
|
4977
4973
|
const c = yl("icon");
|
|
4978
4974
|
return U(s.$slots, "search", me(he({ searchValue: l.value, performSearch: a })), () => [
|
|
4979
|
-
v("div",
|
|
4980
|
-
v("div",
|
|
4975
|
+
v("div", li, [
|
|
4976
|
+
v("div", ti, [
|
|
4981
4977
|
N(Ne, {
|
|
4982
4978
|
modelValue: l.value,
|
|
4983
4979
|
"onUpdate:modelValue": i[0] || (i[0] = (d) => l.value = d),
|
|
@@ -4988,7 +4984,7 @@ const Or = {
|
|
|
4988
4984
|
onBlur: i[2] || (i[2] = (d) => a(l.value))
|
|
4989
4985
|
}, {
|
|
4990
4986
|
default: H(() => [
|
|
4991
|
-
|
|
4987
|
+
oi
|
|
4992
4988
|
]),
|
|
4993
4989
|
_: 1
|
|
4994
4990
|
}, 8, ["modelValue", "placeholder"])
|
|
@@ -5002,7 +4998,7 @@ const Or = {
|
|
|
5002
4998
|
]);
|
|
5003
4999
|
};
|
|
5004
5000
|
}
|
|
5005
|
-
}),
|
|
5001
|
+
}), ni = { class: "cl-fixed cl-flex cl-h-full cl-justify-end cl-right-0 cl-shadow-lg cl-top-0 cl-z-40" }, ri = { class: "cl-bg-secondary-default cl-h-full cl-overflow-y-auto cl-overscroll-y-none cl-px-10 cl-py-20 cl-relative cl-text-grey-2 cl-w-80" }, ii = { class: "cl-mb-4 cl-text-2xl cl-text-off-white" }, si = { class: "cl-border-grey-3 cl-border-t cl-flex cl-flex-wrap cl-text-sm cl-w-full" }, ci = { class: "cl-border-b cl-border-grey-2 cl-flex cl-py-2 cl-text-sm cl-w-full" }, ui = { class: "cl-flex-1 cl-py-2" }, di = { class: "cl-py-2 cl-w-1/4" }, fi = { class: "cl-py-2 cl-w-1/5" }, pi = { class: "cl-flex-1 cl-py-2" }, mi = { class: "cl-py-2 cl-w-1/4" }, vi = { class: "cl-py-2 cl-text-off-white cl-w-1/5" }, hi = { key: 1 }, gi = /* @__PURE__ */ K({
|
|
5006
5002
|
inheritAttrs: !1,
|
|
5007
5003
|
__name: "cl-ui-grid-view-manager",
|
|
5008
5004
|
props: {
|
|
@@ -5035,50 +5031,50 @@ const Or = {
|
|
|
5035
5031
|
]),
|
|
5036
5032
|
_: 1
|
|
5037
5033
|
}, 16, ["disabled"]),
|
|
5038
|
-
(p(),
|
|
5034
|
+
(p(), Z(bl, { to: "body" }, [
|
|
5039
5035
|
N(Ee, { name: "slide-left" }, {
|
|
5040
5036
|
default: H(() => [
|
|
5041
|
-
X(v("div",
|
|
5042
|
-
v("div",
|
|
5043
|
-
N(g(
|
|
5037
|
+
X(v("div", ni, [
|
|
5038
|
+
v("div", ri, [
|
|
5039
|
+
N(g(_), {
|
|
5044
5040
|
class: "cl-absolute cl-cursor-pointer cl-right-3 cl-text-off-white cl-top-3",
|
|
5045
5041
|
icon: "ph:x",
|
|
5046
5042
|
size: 16,
|
|
5047
5043
|
onClick: c[1] || (c[1] = (d) => r.value = !1)
|
|
5048
5044
|
}),
|
|
5049
|
-
v("h3",
|
|
5050
|
-
v("ul",
|
|
5051
|
-
v("li",
|
|
5052
|
-
v("strong",
|
|
5053
|
-
v("strong",
|
|
5054
|
-
v("strong",
|
|
5045
|
+
v("h3", ii, I(g(n)("grid.manageView")), 1),
|
|
5046
|
+
v("ul", si, [
|
|
5047
|
+
v("li", ci, [
|
|
5048
|
+
v("strong", ui, I(g(n)("grid.column")), 1),
|
|
5049
|
+
v("strong", di, I(g(n)("grid.visible")), 1),
|
|
5050
|
+
v("strong", fi, I(g(n)("grid.order")), 1)
|
|
5055
5051
|
]),
|
|
5056
5052
|
(p(!0), w(J, null, ue(i.columns, (d, b) => (p(), w("li", {
|
|
5057
5053
|
key: b,
|
|
5058
5054
|
class: "cl-border-b cl-border-grey-2 cl-flex cl-py-2 cl-text-sm cl-w-full"
|
|
5059
5055
|
}, [
|
|
5060
|
-
v("div",
|
|
5061
|
-
v("div",
|
|
5056
|
+
v("div", pi, I(d.caption), 1),
|
|
5057
|
+
v("div", mi, [
|
|
5062
5058
|
N(lt, {
|
|
5063
5059
|
"model-value": d.visible === void 0 || d.visible === !0,
|
|
5064
5060
|
"onUpdate:modelValue": (y) => u(y, d)
|
|
5065
5061
|
}, null, 8, ["model-value", "onUpdate:modelValue"])
|
|
5066
5062
|
]),
|
|
5067
|
-
v("div",
|
|
5063
|
+
v("div", vi, [
|
|
5068
5064
|
d.visible === void 0 || d.visible === !0 ? (p(), w(J, { key: 0 }, [
|
|
5069
|
-
b !== 0 ? (p(),
|
|
5065
|
+
b !== 0 ? (p(), Z(g(_), {
|
|
5070
5066
|
key: 0,
|
|
5071
5067
|
class: "cl-cursor-pointer cl-inline-block cl-mr-2",
|
|
5072
5068
|
icon: "ph:arrow-left",
|
|
5073
5069
|
onClick: (y) => s(b, "down")
|
|
5074
5070
|
}, null, 8, ["onClick"])) : z("", !0),
|
|
5075
|
-
b !== i.columns.length - 1 ? (p(),
|
|
5071
|
+
b !== i.columns.length - 1 ? (p(), Z(g(_), {
|
|
5076
5072
|
key: 1,
|
|
5077
5073
|
class: "cl-cursor-pointer cl-inline-block",
|
|
5078
5074
|
icon: "ph:arrow-right",
|
|
5079
5075
|
onClick: (y) => s(b, "up")
|
|
5080
5076
|
}, null, 8, ["onClick"])) : z("", !0)
|
|
5081
|
-
], 64)) : (p(), w("em",
|
|
5077
|
+
], 64)) : (p(), w("em", hi, I(g(n)("grid.hidden")), 1))
|
|
5082
5078
|
])
|
|
5083
5079
|
]))), 128))
|
|
5084
5080
|
])
|
|
@@ -5092,7 +5088,7 @@ const Or = {
|
|
|
5092
5088
|
]))
|
|
5093
5089
|
], 64));
|
|
5094
5090
|
}
|
|
5095
|
-
}),
|
|
5091
|
+
}), bi = { class: "cl-relative cl-w-full grid-wrapper lg:cl-min-h-fit" }, yi = { class: "cl-absolute cl-flex cl-items-center cl-justify-center cl-min-h-full cl-p-28 cl-pt-0 cl-w-full" }, wi = { class: "cl-overflow-x-auto cl-overscroll-x-none cl-pt-1" }, ki = { class: "cl-hidden lg:cl-table-column-group" }, $i = /* @__PURE__ */ K({
|
|
5096
5092
|
__name: "cl-ui-grid",
|
|
5097
5093
|
props: {
|
|
5098
5094
|
columns: {},
|
|
@@ -5123,7 +5119,7 @@ const Or = {
|
|
|
5123
5119
|
function c($) {
|
|
5124
5120
|
return s.value[$] ?? "";
|
|
5125
5121
|
}
|
|
5126
|
-
|
|
5122
|
+
_e(() => {
|
|
5127
5123
|
window.addEventListener("resize", i), i();
|
|
5128
5124
|
}), il(() => window.removeEventListener("resize", i));
|
|
5129
5125
|
const d = A({
|
|
@@ -5162,8 +5158,8 @@ const Or = {
|
|
|
5162
5158
|
};
|
|
5163
5159
|
}
|
|
5164
5160
|
}), x = R(((te = t.request.filters.find(($) => $.filterMethod === "andcontains" || $.filterOperation === le.AND_CONTAINS)) == null ? void 0 : te.filterValue) ?? ""), ee = A(() => t.columns.filter(($) => ($.type === "string" || $.type === "slot" && $.slotType === "string") && $.searchable));
|
|
5165
|
-
return ($, f) => (p(), w("div",
|
|
5166
|
-
ee.value.length > 0 ? (p(),
|
|
5161
|
+
return ($, f) => (p(), w("div", bi, [
|
|
5162
|
+
ee.value.length > 0 ? (p(), Z(ai, {
|
|
5167
5163
|
key: 0,
|
|
5168
5164
|
"search-value": x.value,
|
|
5169
5165
|
"onUpdate:searchValue": f[0] || (f[0] = (h) => x.value = h),
|
|
@@ -5178,7 +5174,7 @@ const Or = {
|
|
|
5178
5174
|
}, 8, ["search-value", "request", "columns"])) : z("", !0),
|
|
5179
5175
|
N(Ee, { name: "fade" }, {
|
|
5180
5176
|
default: H(() => [
|
|
5181
|
-
X(v("div",
|
|
5177
|
+
X(v("div", yi, [
|
|
5182
5178
|
N(sl, { class: "after:!cl-h-20 after:!cl-w-20 cl-h-20 cl-w-20" })
|
|
5183
5179
|
], 512), [
|
|
5184
5180
|
[ae, $.loading]
|
|
@@ -5186,7 +5182,7 @@ const Or = {
|
|
|
5186
5182
|
]),
|
|
5187
5183
|
_: 1
|
|
5188
5184
|
}),
|
|
5189
|
-
N(
|
|
5185
|
+
N(Ea, {
|
|
5190
5186
|
"edit-mode": D.value,
|
|
5191
5187
|
"onUpdate:editMode": f[3] || (f[3] = (h) => D.value = h),
|
|
5192
5188
|
"filter-panel-open": O.value,
|
|
@@ -5201,7 +5197,7 @@ const Or = {
|
|
|
5201
5197
|
U($.$slots, "additional-grid-actions", me(he(h)))
|
|
5202
5198
|
]),
|
|
5203
5199
|
"view-manager": H(() => [
|
|
5204
|
-
N(
|
|
5200
|
+
N(gi, {
|
|
5205
5201
|
columns: a.value,
|
|
5206
5202
|
"onUpdate:columns": f[2] || (f[2] = (h) => a.value = h),
|
|
5207
5203
|
loading: $.loading
|
|
@@ -5209,20 +5205,20 @@ const Or = {
|
|
|
5209
5205
|
]),
|
|
5210
5206
|
_: 3
|
|
5211
5207
|
}, 8, ["edit-mode", "filter-panel-open", "columns", "options", "request", "loading"]),
|
|
5212
|
-
v("div",
|
|
5208
|
+
v("div", wi, [
|
|
5213
5209
|
v("table", {
|
|
5214
5210
|
class: B(["cl-delay-75 cl-min-h-[276px] cl-overflow-x-auto cl-overscroll-x-none cl-text-left cl-transition-opacity cl-w-full", {
|
|
5215
5211
|
"cl-opacity-40 cl-pointer-events-none": $.loading
|
|
5216
5212
|
}])
|
|
5217
5213
|
}, [
|
|
5218
|
-
v("colgroup",
|
|
5214
|
+
v("colgroup", ki, [
|
|
5219
5215
|
(p(!0), w(J, null, ue(u.value, (h, m) => (p(), w("col", {
|
|
5220
5216
|
key: m,
|
|
5221
5217
|
style: $t(c(h.name)),
|
|
5222
5218
|
span: 1
|
|
5223
5219
|
}, null, 4))), 128))
|
|
5224
5220
|
]),
|
|
5225
|
-
N(
|
|
5221
|
+
N(ei, {
|
|
5226
5222
|
request: V.value,
|
|
5227
5223
|
"onUpdate:request": f[5] || (f[5] = (h) => V.value = h),
|
|
5228
5224
|
"filter-panel-open": O.value,
|
|
@@ -5233,7 +5229,7 @@ const Or = {
|
|
|
5233
5229
|
"time-zone": $.timeZone,
|
|
5234
5230
|
"header-display-timezone": n.value
|
|
5235
5231
|
}, null, 8, ["request", "filter-panel-open", "columns", "options", "loading", "time-zone", "header-display-timezone"]),
|
|
5236
|
-
N(
|
|
5232
|
+
N(xa, {
|
|
5237
5233
|
columns: u.value,
|
|
5238
5234
|
request: d.value,
|
|
5239
5235
|
data: F.value,
|
|
@@ -5256,7 +5252,7 @@ const Or = {
|
|
|
5256
5252
|
]), 1032, ["columns", "request", "data", "time-zone", "loading", "search-value", "options", "edit-mode"])
|
|
5257
5253
|
], 2)
|
|
5258
5254
|
]),
|
|
5259
|
-
N(
|
|
5255
|
+
N(Cn, {
|
|
5260
5256
|
request: d.value,
|
|
5261
5257
|
"onUpdate:request": f[10] || (f[10] = (h) => d.value = h),
|
|
5262
5258
|
loading: $.loading,
|
|
@@ -5264,7 +5260,7 @@ const Or = {
|
|
|
5264
5260
|
}, null, 8, ["request", "loading", "data"])
|
|
5265
5261
|
]));
|
|
5266
5262
|
}
|
|
5267
|
-
}),
|
|
5263
|
+
}), Si = { class: "cl-absolute cl-bg-secondary-default cl-flex cl-h-20 cl-items-center cl-justify-between cl-left-0 cl-top-0 cl-w-full cl-z-40" }, Ti = /* @__PURE__ */ K({
|
|
5268
5264
|
__name: "cl-ui-header",
|
|
5269
5265
|
props: {
|
|
5270
5266
|
isOpen: { type: Boolean }
|
|
@@ -5274,7 +5270,7 @@ const Or = {
|
|
|
5274
5270
|
const t = o, l = e, n = R();
|
|
5275
5271
|
return wl(n, () => {
|
|
5276
5272
|
(t.isOpen ?? !1) && l("open-click");
|
|
5277
|
-
}), (r, a) => (p(), w("header",
|
|
5273
|
+
}), (r, a) => (p(), w("header", Si, [
|
|
5278
5274
|
U(r.$slots, "logo"),
|
|
5279
5275
|
v("div", {
|
|
5280
5276
|
ref_key: "headerMenuElement",
|
|
@@ -5287,13 +5283,13 @@ const Or = {
|
|
|
5287
5283
|
], 512)
|
|
5288
5284
|
]));
|
|
5289
5285
|
}
|
|
5290
|
-
}),
|
|
5286
|
+
}), Ci = { class: "cl-bg-transparent cl-flex cl-items-center cl-select-none hover:cl-bg-opacity-10 hover:cl-bg-white md:cl-min-w-[320px]" }, Oi = ["src"], Ei = {
|
|
5291
5287
|
key: 0,
|
|
5292
5288
|
class: "cl-text-ellipsis cl-whitespace-nowrap"
|
|
5293
|
-
},
|
|
5289
|
+
}, Fi = {
|
|
5294
5290
|
key: 1,
|
|
5295
5291
|
class: "cl-text-ellipsis cl-text-xs cl-whitespace-nowrap"
|
|
5296
|
-
},
|
|
5292
|
+
}, Di = { class: "cl-content-center cl-flex cl-h-20 cl-items-center cl-justify-center cl-justify-items-center cl-transition-all cl-w-10 md:cl-ml-4 md:cl-w-20" }, Ni = { class: "cl-absolute cl-bg-white cl-right-0 cl-shadow-2xl cl-top-20 cl-w-full cl-z-20" }, Ai = /* @__PURE__ */ K({
|
|
5297
5293
|
__name: "cl-ui-header-menu",
|
|
5298
5294
|
props: {
|
|
5299
5295
|
username: { default: "" },
|
|
@@ -5309,12 +5305,12 @@ const Or = {
|
|
|
5309
5305
|
"cl-bg-blue-light": e.colour === "secondary"
|
|
5310
5306
|
}])
|
|
5311
5307
|
}, [
|
|
5312
|
-
v("div",
|
|
5308
|
+
v("div", Ci, [
|
|
5313
5309
|
e.image ? (p(), w("img", {
|
|
5314
5310
|
key: 0,
|
|
5315
5311
|
src: e.image,
|
|
5316
5312
|
class: "cl-hidden cl-m-4 cl-max-h-12 cl-max-w-12 cl-ring-2 cl-ring-white cl-rounded-full md:cl-block"
|
|
5317
|
-
}, null, 8,
|
|
5313
|
+
}, null, 8, Oi)) : (p(), Z(g(_), {
|
|
5318
5314
|
key: 1,
|
|
5319
5315
|
class: "cl-hidden cl-m-4 cl-text-white md:cl-block",
|
|
5320
5316
|
icon: "ph:user-circle",
|
|
@@ -5327,11 +5323,11 @@ const Or = {
|
|
|
5327
5323
|
"cl-text-white": e.colour === "secondary"
|
|
5328
5324
|
}])
|
|
5329
5325
|
}, [
|
|
5330
|
-
e.username ? (p(), w("div",
|
|
5331
|
-
e.group ? (p(), w("div",
|
|
5326
|
+
e.username ? (p(), w("div", Ei, I(e.username), 1)) : z("", !0),
|
|
5327
|
+
e.group ? (p(), w("div", Fi, I(e.group), 1)) : z("", !0)
|
|
5332
5328
|
], 2),
|
|
5333
|
-
v("div",
|
|
5334
|
-
N(g(
|
|
5329
|
+
v("div", Di, [
|
|
5330
|
+
N(g(_), {
|
|
5335
5331
|
class: B(["cl-transform-gpu cl-transition-transform", {
|
|
5336
5332
|
"cl-rotate-180": e.isOpen,
|
|
5337
5333
|
"cl-text-secondary-default": e.colour === "default",
|
|
@@ -5343,7 +5339,7 @@ const Or = {
|
|
|
5343
5339
|
]),
|
|
5344
5340
|
N(Ee, { name: "fade" }, {
|
|
5345
5341
|
default: H(() => [
|
|
5346
|
-
X(v("div",
|
|
5342
|
+
X(v("div", Ni, [
|
|
5347
5343
|
U(e.$slots, "default")
|
|
5348
5344
|
], 512), [
|
|
5349
5345
|
[ae, e.isOpen]
|
|
@@ -5353,10 +5349,10 @@ const Or = {
|
|
|
5353
5349
|
})
|
|
5354
5350
|
], 2));
|
|
5355
5351
|
}
|
|
5356
|
-
}),
|
|
5352
|
+
}), Vi = [
|
|
5357
5353
|
"default",
|
|
5358
5354
|
"secondary"
|
|
5359
|
-
],
|
|
5355
|
+
], qi = [
|
|
5360
5356
|
"button",
|
|
5361
5357
|
"checkbox",
|
|
5362
5358
|
"color",
|
|
@@ -5378,24 +5374,24 @@ const Or = {
|
|
|
5378
5374
|
function gl(o) {
|
|
5379
5375
|
return /[a-z]{2}-[A-Z]{2}/gm.test(o.localeCode);
|
|
5380
5376
|
}
|
|
5381
|
-
function
|
|
5377
|
+
function Ii(o) {
|
|
5382
5378
|
let e = Array.isArray(o);
|
|
5383
5379
|
if (e) {
|
|
5384
5380
|
for (const t of o)
|
|
5385
|
-
if (!
|
|
5381
|
+
if (!Ri(t)) {
|
|
5386
5382
|
e = !1;
|
|
5387
5383
|
break;
|
|
5388
5384
|
}
|
|
5389
5385
|
}
|
|
5390
5386
|
return e;
|
|
5391
5387
|
}
|
|
5392
|
-
function
|
|
5388
|
+
function Ri(o) {
|
|
5393
5389
|
return typeof o.name == "string" && typeof o.nativeName == "string" && typeof o.localeCode == "string";
|
|
5394
5390
|
}
|
|
5395
|
-
const
|
|
5391
|
+
const Mi = {
|
|
5396
5392
|
key: 0,
|
|
5397
5393
|
class: "cl-flex cl-relative cl-select-none cl-w-auto cl-z-30"
|
|
5398
|
-
},
|
|
5394
|
+
}, Li = { class: "cl-absolute cl-bg-white cl-border cl-border-grey-0 cl-overflow-hidden cl-right-0 cl-rounded cl-shadow-xl cl-text-black cl-top-6 cl-z-30" }, ji = ["data-localename", "data-localecode", "onClick"], Pi = { class: "cl-text-xs" }, zi = /* @__PURE__ */ K({
|
|
5399
5395
|
__name: "cl-ui-language-switcher",
|
|
5400
5396
|
props: {
|
|
5401
5397
|
supportedLanguages: {},
|
|
@@ -5414,7 +5410,7 @@ const Ri = {
|
|
|
5414
5410
|
}
|
|
5415
5411
|
return ne(() => t.disabled, (c) => {
|
|
5416
5412
|
c && (r.value = !1);
|
|
5417
|
-
}), (c, d) => a.value !== null && g(gl)(a.value) ? (p(), w("div",
|
|
5413
|
+
}), (c, d) => a.value !== null && g(gl)(a.value) ? (p(), w("div", Mi, [
|
|
5418
5414
|
v("div", {
|
|
5419
5415
|
class: B(["cl-flex cl-items-center", {
|
|
5420
5416
|
"cl-cursor-pointer": !c.disabled
|
|
@@ -5429,7 +5425,7 @@ const Ri = {
|
|
|
5429
5425
|
], 2),
|
|
5430
5426
|
N(Ee, { name: "fade" }, {
|
|
5431
5427
|
default: H(() => [
|
|
5432
|
-
X(v("div",
|
|
5428
|
+
X(v("div", Li, [
|
|
5433
5429
|
(p(!0), w(J, null, ue(u.value, (b, y) => (p(), w("div", {
|
|
5434
5430
|
key: y,
|
|
5435
5431
|
class: "cl-border-b cl-border-grey-0 cl-cursor-pointer cl-flex cl-items-center cl-justify-center cl-p-1 cl-text-center cl-transition-colors cl-w-28 hover:cl-bg-grey-0 last-child:cl-border-b-0 last:cl-border-b-0 lg:cl-p-2",
|
|
@@ -5439,8 +5435,8 @@ const Ri = {
|
|
|
5439
5435
|
n.value = b.localeCode, i(), l("language-select", b.localeCode);
|
|
5440
5436
|
}
|
|
5441
5437
|
}, [
|
|
5442
|
-
v("span",
|
|
5443
|
-
], 8,
|
|
5438
|
+
v("span", Pi, I(b.nativeName), 1)
|
|
5439
|
+
], 8, ji))), 128))
|
|
5444
5440
|
], 512), [
|
|
5445
5441
|
[ae, r.value]
|
|
5446
5442
|
])
|
|
@@ -5449,13 +5445,13 @@ const Ri = {
|
|
|
5449
5445
|
})
|
|
5450
5446
|
])) : z("", !0);
|
|
5451
5447
|
}
|
|
5452
|
-
}),
|
|
5448
|
+
}), Bi = { class: "cl-relative" }, Ui = { class: "cl-h-full cl-z-0 xl:cl-h-screen" }, xi = { class: "cl-absolute cl-bg-secondary-default cl-gap-y-1 cl-grid cl-grid-cols-1 cl-left-0 cl-opacity-95 cl-p-6 cl-top-0 cl-w-full cl-z-10 lg:cl-gap-x-1 lg:cl-grid-cols-10 lg:cl-p-10" }, Hi = { class: "cl-col-span-10 lg:cl-col-span-3" }, Gi = {
|
|
5453
5449
|
key: 0,
|
|
5454
5450
|
class: "cl-col-span-10 cl-flex cl-items-start cl-justify-end cl-text-white lg:cl-col-span-1 lg:cl-p-2"
|
|
5455
|
-
},
|
|
5451
|
+
}, Wi = { class: "cl-col-span-3" }, Ki = { class: "cl-relative cl-text-grey-4" }, _i = { class: "cl-w-full" }, Zi = /* @__PURE__ */ v("span", null, null, -1), Qi = {
|
|
5456
5452
|
key: 0,
|
|
5457
5453
|
class: "cl-bg-primary-lighter cl-mt-1 cl-rounded-md cl-text-center cl-text-secondary-default cl-text-xs cl-w-full"
|
|
5458
|
-
},
|
|
5454
|
+
}, Yi = { class: "cl-col-span-3" }, Ji = { class: "cl-relative cl-text-grey-4" }, Xi = /* @__PURE__ */ v("span", null, null, -1), es = { class: "cl-col-span-10 cl-emphasis-danger cl-mt-10 cl-p-3 cl-rounded-md cl-text-sm md:cl-mt-3" }, ls = /* @__PURE__ */ K({
|
|
5459
5455
|
__name: "cl-ui-login",
|
|
5460
5456
|
props: {
|
|
5461
5457
|
errors: { default: () => [] },
|
|
@@ -5477,15 +5473,15 @@ const Ri = {
|
|
|
5477
5473
|
return ne([
|
|
5478
5474
|
n,
|
|
5479
5475
|
r
|
|
5480
|
-
], i), (c, d) => (p(), w("div",
|
|
5481
|
-
v("div",
|
|
5476
|
+
], i), (c, d) => (p(), w("div", Bi, [
|
|
5477
|
+
v("div", Ui, [
|
|
5482
5478
|
U(c.$slots, "background")
|
|
5483
5479
|
]),
|
|
5484
|
-
v("form",
|
|
5485
|
-
v("div",
|
|
5480
|
+
v("form", xi, [
|
|
5481
|
+
v("div", Hi, [
|
|
5486
5482
|
U(c.$slots, "logo")
|
|
5487
5483
|
]),
|
|
5488
|
-
c.$slots["language-switcher"] ? (p(), w("div",
|
|
5484
|
+
c.$slots["language-switcher"] ? (p(), w("div", Gi, [
|
|
5489
5485
|
U(c.$slots, "language-switcher")
|
|
5490
5486
|
])) : z("", !0),
|
|
5491
5487
|
v("div", {
|
|
@@ -5494,14 +5490,14 @@ const Ri = {
|
|
|
5494
5490
|
"cl-col-span-6": c.$slots["language-switcher"]
|
|
5495
5491
|
}])
|
|
5496
5492
|
}, [
|
|
5497
|
-
v("div",
|
|
5498
|
-
v("div",
|
|
5499
|
-
N(g(
|
|
5493
|
+
v("div", Wi, [
|
|
5494
|
+
v("div", Ki, [
|
|
5495
|
+
N(g(_), {
|
|
5500
5496
|
class: "cl-absolute cl-left-3 cl-top-3 cl-z-10",
|
|
5501
5497
|
icon: "ph:user",
|
|
5502
5498
|
size: 18
|
|
5503
5499
|
}),
|
|
5504
|
-
v("div",
|
|
5500
|
+
v("div", _i, [
|
|
5505
5501
|
N(Ne, {
|
|
5506
5502
|
id: "cl-ui-login-usernameinput",
|
|
5507
5503
|
modelValue: n.value,
|
|
@@ -5521,18 +5517,18 @@ const Ri = {
|
|
|
5521
5517
|
]),
|
|
5522
5518
|
_: 1
|
|
5523
5519
|
}, 8, ["modelValue", "class", "errors", "placeholder"]),
|
|
5524
|
-
u.value ? (p(), w("div",
|
|
5520
|
+
u.value ? (p(), w("div", Qi, I(g(l)("login.validEmail")), 1)) : z("", !0)
|
|
5525
5521
|
])
|
|
5526
5522
|
])
|
|
5527
5523
|
]),
|
|
5528
|
-
v("div",
|
|
5529
|
-
v("div",
|
|
5530
|
-
N(g(
|
|
5524
|
+
v("div", Yi, [
|
|
5525
|
+
v("div", Ji, [
|
|
5526
|
+
N(g(_), {
|
|
5531
5527
|
class: "cl-absolute cl-left-3 cl-top-3 cl-z-10",
|
|
5532
5528
|
icon: "ph:lock",
|
|
5533
5529
|
size: 18
|
|
5534
5530
|
}),
|
|
5535
|
-
X(N(g(
|
|
5531
|
+
X(N(g(_), {
|
|
5536
5532
|
class: "cl-absolute cl-cursor-pointer cl-right-4 cl-top-3 cl-z-10",
|
|
5537
5533
|
icon: "ph:eye",
|
|
5538
5534
|
size: 18,
|
|
@@ -5540,7 +5536,7 @@ const Ri = {
|
|
|
5540
5536
|
}, null, 512), [
|
|
5541
5537
|
[ae, a.value === "password"]
|
|
5542
5538
|
]),
|
|
5543
|
-
X(N(g(
|
|
5539
|
+
X(N(g(_), {
|
|
5544
5540
|
class: "cl-absolute cl-cursor-pointer cl-right-4 cl-top-3 cl-z-10",
|
|
5545
5541
|
icon: "ph:eye-slash",
|
|
5546
5542
|
size: 18,
|
|
@@ -5560,7 +5556,7 @@ const Ri = {
|
|
|
5560
5556
|
autocomplete: "current-password"
|
|
5561
5557
|
}, {
|
|
5562
5558
|
default: H(() => [
|
|
5563
|
-
|
|
5559
|
+
Xi
|
|
5564
5560
|
]),
|
|
5565
5561
|
_: 1
|
|
5566
5562
|
}, 8, ["modelValue", "class", "type", "placeholder"])
|
|
@@ -5590,7 +5586,7 @@ const Ri = {
|
|
|
5590
5586
|
default: H(() => {
|
|
5591
5587
|
var b;
|
|
5592
5588
|
return [
|
|
5593
|
-
X(v("span",
|
|
5589
|
+
X(v("span", es, [
|
|
5594
5590
|
(p(!0), w(J, null, ue(c.errors, (y, F) => (p(), w("div", {
|
|
5595
5591
|
id: "cl-ui-login-errors",
|
|
5596
5592
|
key: F,
|
|
@@ -5606,19 +5602,19 @@ const Ri = {
|
|
|
5606
5602
|
])
|
|
5607
5603
|
]));
|
|
5608
5604
|
}
|
|
5609
|
-
}),
|
|
5605
|
+
}), ts = [
|
|
5610
5606
|
"x-small",
|
|
5611
5607
|
"small",
|
|
5612
5608
|
"medium",
|
|
5613
5609
|
"large"
|
|
5614
|
-
],
|
|
5610
|
+
], os = [
|
|
5615
5611
|
"primary",
|
|
5616
5612
|
"secondary",
|
|
5617
5613
|
"white"
|
|
5618
|
-
],
|
|
5614
|
+
], as = {
|
|
5619
5615
|
key: 0,
|
|
5620
5616
|
class: "cl-h-0 cl-w-0"
|
|
5621
|
-
},
|
|
5617
|
+
}, ns = { class: "cl-relative cl-w-full" }, rs = /* @__PURE__ */ K({
|
|
5622
5618
|
__name: "cl-ui-navigation",
|
|
5623
5619
|
props: {
|
|
5624
5620
|
colour: { default: "default" }
|
|
@@ -5680,7 +5676,7 @@ const Ri = {
|
|
|
5680
5676
|
}, [
|
|
5681
5677
|
U(O.$slots, "icon", ce({ navcolour: O.colour }, { groupIsOpen: a, toggleOpen: u }), void 0, !0)
|
|
5682
5678
|
], 2),
|
|
5683
|
-
c.value ? (p(), w("div",
|
|
5679
|
+
c.value ? (p(), w("div", as)) : z("", !0),
|
|
5684
5680
|
N(Ee, { name: "slide-right" }, {
|
|
5685
5681
|
default: H(() => [
|
|
5686
5682
|
X(v("div", {
|
|
@@ -5689,15 +5685,15 @@ const Ri = {
|
|
|
5689
5685
|
"cl-absolute cl-left-20 cl-shadow-lg": !i.value
|
|
5690
5686
|
}])
|
|
5691
5687
|
}, [
|
|
5692
|
-
v("div",
|
|
5688
|
+
v("div", ns, [
|
|
5693
5689
|
v("span", {
|
|
5694
5690
|
class: "cl-absolute cl-cursor-pointer cl-hidden cl-right-0 cl-top-1.5 lg:cl-block",
|
|
5695
5691
|
onClick: E[0] || (E[0] = () => b())
|
|
5696
5692
|
}, [
|
|
5697
|
-
i.value ? (p(),
|
|
5693
|
+
i.value ? (p(), Z(g(_), {
|
|
5698
5694
|
key: 1,
|
|
5699
5695
|
icon: "ph:push-pin-slash"
|
|
5700
|
-
})) : (p(),
|
|
5696
|
+
})) : (p(), Z(g(_), {
|
|
5701
5697
|
key: 0,
|
|
5702
5698
|
icon: "ph:push-pin"
|
|
5703
5699
|
}))
|
|
@@ -5712,7 +5708,7 @@ const Ri = {
|
|
|
5712
5708
|
})
|
|
5713
5709
|
], 512));
|
|
5714
5710
|
}
|
|
5715
|
-
}),
|
|
5711
|
+
}), is = /* @__PURE__ */ Se(rs, [["__scopeId", "data-v-db3283cd"]]), ss = /* @__PURE__ */ K({
|
|
5716
5712
|
__name: "cl-ui-navigation-icon",
|
|
5717
5713
|
props: {
|
|
5718
5714
|
iconValue: {},
|
|
@@ -5728,17 +5724,17 @@ const Ri = {
|
|
|
5728
5724
|
"cl-bg-blue-light": e.open && e.colour === "secondary"
|
|
5729
5725
|
}])
|
|
5730
5726
|
}, [
|
|
5731
|
-
N(g(
|
|
5727
|
+
N(g(_), {
|
|
5732
5728
|
class: "cl-block",
|
|
5733
5729
|
icon: e.iconValue,
|
|
5734
5730
|
width: "24"
|
|
5735
5731
|
}, null, 8, ["icon"])
|
|
5736
5732
|
], 2));
|
|
5737
5733
|
}
|
|
5738
|
-
}),
|
|
5734
|
+
}), cs = {
|
|
5739
5735
|
key: 0,
|
|
5740
5736
|
class: "cl-font-bold cl-leading-8 cl-mb-8 cl-pr-8 cl-select-none cl-text-lg cl-text-secondary-default"
|
|
5741
|
-
},
|
|
5737
|
+
}, us = { class: "cl-flex cl-flex-wrap cl-space-y-8 cl-text-sm cl-w-full" }, ds = /* @__PURE__ */ K({
|
|
5742
5738
|
__name: "cl-ui-navigation-group",
|
|
5743
5739
|
props: {
|
|
5744
5740
|
open: { type: Boolean }
|
|
@@ -5749,35 +5745,35 @@ const Ri = {
|
|
|
5749
5745
|
"cl-hidden": !e.open
|
|
5750
5746
|
})
|
|
5751
5747
|
}, [
|
|
5752
|
-
e.$slots.title ? (p(), w("div",
|
|
5748
|
+
e.$slots.title ? (p(), w("div", cs, [
|
|
5753
5749
|
U(e.$slots, "title")
|
|
5754
5750
|
])) : z("", !0),
|
|
5755
|
-
v("div",
|
|
5751
|
+
v("div", us, [
|
|
5756
5752
|
U(e.$slots, "default")
|
|
5757
5753
|
])
|
|
5758
5754
|
], 2));
|
|
5759
5755
|
}
|
|
5760
|
-
}),
|
|
5756
|
+
}), fs = {}, ps = { class: "cl-w-full" }, ms = {
|
|
5761
5757
|
key: 0,
|
|
5762
5758
|
class: "cl-font-bold cl-mb-4 cl-select-none"
|
|
5763
|
-
},
|
|
5764
|
-
function
|
|
5765
|
-
return p(), w("div",
|
|
5766
|
-
o.$slots.title ? (p(), w("div",
|
|
5759
|
+
}, vs = { class: "cl-flex cl-flex-wrap cl-space-y-2" };
|
|
5760
|
+
function hs(o, e) {
|
|
5761
|
+
return p(), w("div", ps, [
|
|
5762
|
+
o.$slots.title ? (p(), w("div", ms, [
|
|
5767
5763
|
U(o.$slots, "title")
|
|
5768
5764
|
])) : z("", !0),
|
|
5769
|
-
v("span",
|
|
5765
|
+
v("span", vs, [
|
|
5770
5766
|
U(o.$slots, "default")
|
|
5771
5767
|
])
|
|
5772
5768
|
]);
|
|
5773
5769
|
}
|
|
5774
|
-
const
|
|
5775
|
-
function
|
|
5776
|
-
return p(), w("div",
|
|
5770
|
+
const gs = /* @__PURE__ */ Se(fs, [["render", hs]]), bs = {}, ys = { class: "cl-cursor-pointer cl-transition-colors cl-w-full hover:cl-text-primary-darker" };
|
|
5771
|
+
function ws(o, e) {
|
|
5772
|
+
return p(), w("div", ys, [
|
|
5777
5773
|
U(o.$slots, "default")
|
|
5778
5774
|
]);
|
|
5779
5775
|
}
|
|
5780
|
-
const
|
|
5776
|
+
const ks = /* @__PURE__ */ Se(bs, [["render", ws]]), $s = /* @__PURE__ */ K({
|
|
5781
5777
|
__name: "cl-ui-tab",
|
|
5782
5778
|
props: {
|
|
5783
5779
|
colour: { default: "default" },
|
|
@@ -5819,7 +5815,7 @@ const ws = /* @__PURE__ */ Se(gs, [["render", ys]]), ks = /* @__PURE__ */ K({
|
|
|
5819
5815
|
function O(E) {
|
|
5820
5816
|
typeof E == "number" && D(E);
|
|
5821
5817
|
}
|
|
5822
|
-
return
|
|
5818
|
+
return _e(() => {
|
|
5823
5819
|
b(), D(r.value[0].id);
|
|
5824
5820
|
}), il(() => window.removeEventListener("resize", d)), e({
|
|
5825
5821
|
setTab: O
|
|
@@ -5841,7 +5837,7 @@ const ws = /* @__PURE__ */ Se(gs, [["render", ys]]), ks = /* @__PURE__ */ K({
|
|
|
5841
5837
|
class: "cl-bg-white cl-cursor-pointer cl-float-left cl-h-11 cl-w-4",
|
|
5842
5838
|
onClick: V[0] || (V[0] = (x) => y("left"))
|
|
5843
5839
|
}, [
|
|
5844
|
-
N(g(
|
|
5840
|
+
N(g(_), {
|
|
5845
5841
|
icon: "ph:caret-left",
|
|
5846
5842
|
class: "cl-mt-4 cl-text-secondary-default"
|
|
5847
5843
|
})
|
|
@@ -5863,7 +5859,7 @@ const ws = /* @__PURE__ */ Se(gs, [["render", ys]]), ks = /* @__PURE__ */ K({
|
|
|
5863
5859
|
class: "cl-bg-white cl-cursor-pointer cl-float-right cl-h-11 cl-relative cl-w-4",
|
|
5864
5860
|
onClick: V[1] || (V[1] = (x) => y("right"))
|
|
5865
5861
|
}, [
|
|
5866
|
-
N(g(
|
|
5862
|
+
N(g(_), {
|
|
5867
5863
|
icon: "ph:caret-right",
|
|
5868
5864
|
class: "cl-mt-4 cl-text-secondary-default"
|
|
5869
5865
|
})
|
|
@@ -5876,7 +5872,7 @@ const ws = /* @__PURE__ */ Se(gs, [["render", ys]]), ks = /* @__PURE__ */ K({
|
|
|
5876
5872
|
])
|
|
5877
5873
|
], 2));
|
|
5878
5874
|
}
|
|
5879
|
-
}),
|
|
5875
|
+
}), Ss = ["inert"], Ts = /* @__PURE__ */ K({
|
|
5880
5876
|
__name: "cl-ui-tab-header",
|
|
5881
5877
|
props: {
|
|
5882
5878
|
open: { type: Boolean },
|
|
@@ -5904,35 +5900,35 @@ const ws = /* @__PURE__ */ Se(gs, [["render", ys]]), ks = /* @__PURE__ */ K({
|
|
|
5904
5900
|
U(l.$slots, "default", {}, () => [
|
|
5905
5901
|
pe(I(l.title), 1)
|
|
5906
5902
|
])
|
|
5907
|
-
], 10,
|
|
5903
|
+
], 10, Ss));
|
|
5908
5904
|
}
|
|
5909
|
-
}),
|
|
5905
|
+
}), Cs = { key: 0 }, Os = { class: "cl-font-bold cl-mb-4" }, Es = /* @__PURE__ */ K({
|
|
5910
5906
|
__name: "cl-ui-tab-content",
|
|
5911
5907
|
props: {
|
|
5912
5908
|
open: { type: Boolean },
|
|
5913
5909
|
title: { default: "" }
|
|
5914
5910
|
},
|
|
5915
5911
|
setup(o) {
|
|
5916
|
-
return (e, t) => e.open ? (p(), w("div",
|
|
5912
|
+
return (e, t) => e.open ? (p(), w("div", Cs, [
|
|
5917
5913
|
U(e.$slots, "header", {}, () => [
|
|
5918
|
-
v("h4",
|
|
5914
|
+
v("h4", Os, I(e.title), 1)
|
|
5919
5915
|
]),
|
|
5920
5916
|
U(e.$slots, "default")
|
|
5921
5917
|
])) : z("", !0);
|
|
5922
5918
|
}
|
|
5923
|
-
}),
|
|
5919
|
+
}), Fs = [
|
|
5924
5920
|
"default",
|
|
5925
5921
|
"primary",
|
|
5926
5922
|
"secondary",
|
|
5927
5923
|
"danger",
|
|
5928
5924
|
"blue"
|
|
5929
|
-
],
|
|
5925
|
+
], Ds = [
|
|
5930
5926
|
"left",
|
|
5931
5927
|
"right"
|
|
5932
|
-
],
|
|
5928
|
+
], Ns = [
|
|
5933
5929
|
"horizontal",
|
|
5934
5930
|
"vertical"
|
|
5935
|
-
],
|
|
5931
|
+
], As = { class: "cl-block cl-h-full cl-w-full" }, Vs = ["multiple", "accept", "disabled"], qs = ["multiple", "accept", "disabled"], Is = /* @__PURE__ */ K({
|
|
5936
5932
|
inheritAttrs: !1,
|
|
5937
5933
|
__name: "cl-ui-file-uploader",
|
|
5938
5934
|
props: {
|
|
@@ -5963,7 +5959,7 @@ const ws = /* @__PURE__ */ Se(gs, [["render", ys]]), ks = /* @__PURE__ */ K({
|
|
|
5963
5959
|
"dragleave",
|
|
5964
5960
|
"drop"
|
|
5965
5961
|
], u = R(!1);
|
|
5966
|
-
|
|
5962
|
+
_e(() => {
|
|
5967
5963
|
a.forEach((d) => {
|
|
5968
5964
|
document.body.addEventListener(d, (b) => b.preventDefault());
|
|
5969
5965
|
});
|
|
@@ -5976,7 +5972,7 @@ const ws = /* @__PURE__ */ Se(gs, [["render", ys]]), ks = /* @__PURE__ */ K({
|
|
|
5976
5972
|
function c() {
|
|
5977
5973
|
s.value && (s.value.value = ""), i.value && (i.value.value = "");
|
|
5978
5974
|
}
|
|
5979
|
-
return (d, b) => (p(), w("div",
|
|
5975
|
+
return (d, b) => (p(), w("div", As, [
|
|
5980
5976
|
d.uploaderType === "dragDrop" ? (p(), w("label", ce({ key: 0 }, d.$attrs, {
|
|
5981
5977
|
role: "button",
|
|
5982
5978
|
class: ["cl-bg-opacity-10 cl-border cl-border-dashed cl-duration-300 cl-ease-in-out cl-flex cl-justify-center cl-relative cl-rounded-lg", {
|
|
@@ -5998,7 +5994,7 @@ const ws = /* @__PURE__ */ Se(gs, [["render", ys]]), ks = /* @__PURE__ */ K({
|
|
|
5998
5994
|
accept: d.acceptedFileTypes,
|
|
5999
5995
|
disabled: d.disabled,
|
|
6000
5996
|
onInput: r
|
|
6001
|
-
}, null, 40,
|
|
5997
|
+
}, null, 40, Vs),
|
|
6002
5998
|
U(d.$slots, "default")
|
|
6003
5999
|
], 16)) : (p(), w("input", {
|
|
6004
6000
|
key: 1,
|
|
@@ -6013,16 +6009,16 @@ const ws = /* @__PURE__ */ Se(gs, [["render", ys]]), ks = /* @__PURE__ */ K({
|
|
|
6013
6009
|
accept: d.acceptedFileTypes,
|
|
6014
6010
|
disabled: d.disabled,
|
|
6015
6011
|
onInput: r
|
|
6016
|
-
}, null, 42,
|
|
6012
|
+
}, null, 42, qs))
|
|
6017
6013
|
]));
|
|
6018
6014
|
}
|
|
6019
|
-
}),
|
|
6015
|
+
}), Rs = [
|
|
6020
6016
|
"text",
|
|
6021
6017
|
"email",
|
|
6022
6018
|
"tel",
|
|
6023
6019
|
"password",
|
|
6024
6020
|
"search"
|
|
6025
|
-
],
|
|
6021
|
+
], Ms = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6026
6022
|
__proto__: null,
|
|
6027
6023
|
FilterOperation: le,
|
|
6028
6024
|
allQuickDates: nt,
|
|
@@ -6035,53 +6031,53 @@ const ws = /* @__PURE__ */ Se(gs, [["render", ys]]), ks = /* @__PURE__ */ K({
|
|
|
6035
6031
|
clUiApp: Kt,
|
|
6036
6032
|
clUiButton: ye,
|
|
6037
6033
|
clUiCard: lo,
|
|
6038
|
-
clUiComboBox:
|
|
6039
|
-
clUiFileUploader:
|
|
6040
|
-
clUiFooter:
|
|
6041
|
-
clUiGrid:
|
|
6042
|
-
clUiHeader:
|
|
6043
|
-
clUiHeaderMenu:
|
|
6034
|
+
clUiComboBox: ca,
|
|
6035
|
+
clUiFileUploader: Is,
|
|
6036
|
+
clUiFooter: ya,
|
|
6037
|
+
clUiGrid: $i,
|
|
6038
|
+
clUiHeader: Ti,
|
|
6039
|
+
clUiHeaderMenu: Ai,
|
|
6044
6040
|
clUiInput: hl,
|
|
6045
6041
|
clUiInputNumber: ul,
|
|
6046
6042
|
clUiInputText: Ne,
|
|
6047
|
-
clUiLanguageSwitcher:
|
|
6043
|
+
clUiLanguageSwitcher: zi,
|
|
6048
6044
|
clUiLoadingSpinner: sl,
|
|
6049
|
-
clUiLogin:
|
|
6045
|
+
clUiLogin: ls,
|
|
6050
6046
|
clUiModal: Xl,
|
|
6051
|
-
clUiNavigation:
|
|
6052
|
-
clUiNavigationGroup:
|
|
6053
|
-
clUiNavigationIcon:
|
|
6054
|
-
clUiNavigationItem:
|
|
6055
|
-
clUiNavigationSection:
|
|
6047
|
+
clUiNavigation: is,
|
|
6048
|
+
clUiNavigationGroup: ds,
|
|
6049
|
+
clUiNavigationIcon: ss,
|
|
6050
|
+
clUiNavigationItem: ks,
|
|
6051
|
+
clUiNavigationSection: gs,
|
|
6056
6052
|
clUiNotification: Wl,
|
|
6057
|
-
clUiTab:
|
|
6058
|
-
clUiTabContent:
|
|
6059
|
-
clUiTabHeader:
|
|
6053
|
+
clUiTab: $s,
|
|
6054
|
+
clUiTabContent: Es,
|
|
6055
|
+
clUiTabHeader: Ts,
|
|
6060
6056
|
currentQuickDates: Ge,
|
|
6061
|
-
filterMethodTypes:
|
|
6057
|
+
filterMethodTypes: $r,
|
|
6062
6058
|
futureQuickDates: rl,
|
|
6063
|
-
gridColumnTypes:
|
|
6064
|
-
headerColour:
|
|
6065
|
-
inputTextTypes:
|
|
6066
|
-
inputTypes:
|
|
6067
|
-
isComboBoxCreateRequest:
|
|
6068
|
-
isComboBoxItem:
|
|
6069
|
-
isFilterRequest:
|
|
6070
|
-
isFilterResponse:
|
|
6059
|
+
gridColumnTypes: yr,
|
|
6060
|
+
headerColour: Vi,
|
|
6061
|
+
inputTextTypes: Rs,
|
|
6062
|
+
inputTypes: qi,
|
|
6063
|
+
isComboBoxCreateRequest: da,
|
|
6064
|
+
isComboBoxItem: ua,
|
|
6065
|
+
isFilterRequest: Cr,
|
|
6066
|
+
isFilterResponse: Or,
|
|
6071
6067
|
isGridColumn: ct,
|
|
6072
|
-
isGridColumnArray:
|
|
6073
|
-
isLanguageArray:
|
|
6068
|
+
isGridColumnArray: wr,
|
|
6069
|
+
isLanguageArray: Ii,
|
|
6074
6070
|
isLanguageLocaleFormat: gl,
|
|
6075
|
-
modalColours:
|
|
6076
|
-
modalSizes:
|
|
6071
|
+
modalColours: os,
|
|
6072
|
+
modalSizes: ts,
|
|
6077
6073
|
pastQuickDates: nl,
|
|
6078
|
-
quickDateNames:
|
|
6079
|
-
stringFormats:
|
|
6080
|
-
tabColours:
|
|
6081
|
-
tabLayout:
|
|
6082
|
-
tabScroll:
|
|
6083
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
6084
|
-
o.use(we), o.component("Icon",
|
|
6074
|
+
quickDateNames: In,
|
|
6075
|
+
stringFormats: kr,
|
|
6076
|
+
tabColours: Fs,
|
|
6077
|
+
tabLayout: Ns,
|
|
6078
|
+
tabScroll: Ds
|
|
6079
|
+
}, Symbol.toStringTag, { value: "Module" })), Qs = (o) => {
|
|
6080
|
+
o.use(we), o.component("Icon", _), Object.entries(Ms).forEach(([
|
|
6085
6081
|
e,
|
|
6086
6082
|
t
|
|
6087
6083
|
]) => {
|
|
@@ -6103,66 +6099,66 @@ export {
|
|
|
6103
6099
|
Kt as clUiApp,
|
|
6104
6100
|
ye as clUiButton,
|
|
6105
6101
|
lo as clUiCard,
|
|
6106
|
-
|
|
6107
|
-
|
|
6108
|
-
|
|
6109
|
-
|
|
6110
|
-
|
|
6111
|
-
|
|
6102
|
+
ca as clUiComboBox,
|
|
6103
|
+
Is as clUiFileUploader,
|
|
6104
|
+
ya as clUiFooter,
|
|
6105
|
+
$i as clUiGrid,
|
|
6106
|
+
Ti as clUiHeader,
|
|
6107
|
+
Ai as clUiHeaderMenu,
|
|
6112
6108
|
hl as clUiInput,
|
|
6113
6109
|
ul as clUiInputNumber,
|
|
6114
6110
|
Ne as clUiInputText,
|
|
6115
|
-
|
|
6111
|
+
zi as clUiLanguageSwitcher,
|
|
6116
6112
|
sl as clUiLoadingSpinner,
|
|
6117
|
-
|
|
6113
|
+
ls as clUiLogin,
|
|
6118
6114
|
Xl as clUiModal,
|
|
6119
|
-
|
|
6120
|
-
|
|
6121
|
-
|
|
6122
|
-
|
|
6123
|
-
|
|
6115
|
+
is as clUiNavigation,
|
|
6116
|
+
ds as clUiNavigationGroup,
|
|
6117
|
+
ss as clUiNavigationIcon,
|
|
6118
|
+
ks as clUiNavigationItem,
|
|
6119
|
+
gs as clUiNavigationSection,
|
|
6124
6120
|
Wl as clUiNotification,
|
|
6125
|
-
|
|
6126
|
-
|
|
6127
|
-
|
|
6121
|
+
$s as clUiTab,
|
|
6122
|
+
Es as clUiTabContent,
|
|
6123
|
+
Ts as clUiTabHeader,
|
|
6128
6124
|
Ge as currentQuickDates,
|
|
6129
|
-
|
|
6130
|
-
|
|
6131
|
-
|
|
6125
|
+
Wa as datetimeFormats,
|
|
6126
|
+
Qs as default,
|
|
6127
|
+
$r as filterMethodTypes,
|
|
6132
6128
|
He as formatNumber,
|
|
6133
6129
|
De as formatNumberAsInteger,
|
|
6134
6130
|
rl as futureQuickDates,
|
|
6135
6131
|
ot as getMergedFormatOptions,
|
|
6136
|
-
|
|
6137
|
-
|
|
6132
|
+
yr as gridColumnTypes,
|
|
6133
|
+
Vi as headerColour,
|
|
6138
6134
|
we as i18n,
|
|
6139
|
-
|
|
6140
|
-
|
|
6141
|
-
|
|
6142
|
-
|
|
6143
|
-
|
|
6144
|
-
|
|
6135
|
+
Rs as inputTextTypes,
|
|
6136
|
+
qi as inputTypes,
|
|
6137
|
+
da as isComboBoxCreateRequest,
|
|
6138
|
+
ua as isComboBoxItem,
|
|
6139
|
+
Cr as isFilterRequest,
|
|
6140
|
+
Or as isFilterResponse,
|
|
6145
6141
|
ct as isGridColumn,
|
|
6146
|
-
|
|
6147
|
-
|
|
6142
|
+
wr as isGridColumnArray,
|
|
6143
|
+
Ii as isLanguageArray,
|
|
6148
6144
|
gl as isLanguageLocaleFormat,
|
|
6149
|
-
|
|
6150
|
-
|
|
6151
|
-
|
|
6152
|
-
|
|
6145
|
+
Ha as messages,
|
|
6146
|
+
os as modalColours,
|
|
6147
|
+
ts as modalSizes,
|
|
6148
|
+
Ga as numberFormats,
|
|
6153
6149
|
nl as pastQuickDates,
|
|
6154
|
-
|
|
6155
|
-
|
|
6156
|
-
|
|
6157
|
-
|
|
6158
|
-
|
|
6150
|
+
In as quickDateNames,
|
|
6151
|
+
_s as setCurrentLocale,
|
|
6152
|
+
Ks as setLocaleDateTimeFormats,
|
|
6153
|
+
Gs as setLocaleMessages,
|
|
6154
|
+
Ws as setLocaleNumberFormats,
|
|
6159
6155
|
Ol as showNotification,
|
|
6160
|
-
|
|
6161
|
-
|
|
6162
|
-
|
|
6163
|
-
|
|
6156
|
+
kr as stringFormats,
|
|
6157
|
+
Fs as tabColours,
|
|
6158
|
+
Ns as tabLayout,
|
|
6159
|
+
Ds as tabScroll,
|
|
6164
6160
|
tt as unformatNumber,
|
|
6165
|
-
|
|
6166
|
-
|
|
6167
|
-
|
|
6161
|
+
tn as validateEmail,
|
|
6162
|
+
en as validateMaxValue,
|
|
6163
|
+
Xa as validateMinValue
|
|
6168
6164
|
};
|