@citruslime/ui 4.0.0-beta.4 → 4.0.0-beta.5
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 +578 -580
- package/dist/citrus-lime-ui.umd.js +2 -2
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -182,7 +182,7 @@ const no = ["onClick"], so = { class: "cl-flex-1 cl-select-none cl-text-ellipsis
|
|
|
182
182
|
function po(o, l) {
|
|
183
183
|
return u(), g("div", co);
|
|
184
184
|
}
|
|
185
|
-
const _e = /* @__PURE__ */ Te(uo, [["render", po], ["__scopeId", "data-v-a21dc5d2"]]), fo = ["disabled"],
|
|
185
|
+
const _e = /* @__PURE__ */ Te(uo, [["render", po], ["__scopeId", "data-v-a21dc5d2"]]), fo = ["disabled"], Ce = /* @__PURE__ */ j({
|
|
186
186
|
inheritAttrs: !1,
|
|
187
187
|
__name: "cl-ui-button",
|
|
188
188
|
props: {
|
|
@@ -200,7 +200,7 @@ const _e = /* @__PURE__ */ Te(uo, [["render", po], ["__scopeId", "data-v-a21dc5d
|
|
|
200
200
|
}), (e, r) => (u(), g("button", Q(e.$attrs, {
|
|
201
201
|
ref_key: "buttonRef",
|
|
202
202
|
ref: t,
|
|
203
|
-
class: ["cl-align-middle cl-border cl-font-semibold cl-inline-block cl-
|
|
203
|
+
class: ["cl-align-middle cl-border cl-font-semibold cl-inline-block cl-relative cl-rounded cl-select-none cl-shadow cl-text-center cl-transition-colors", {
|
|
204
204
|
"cl-cursor-default": e.loading,
|
|
205
205
|
"cl-py-[5px] cl-px-4 cl-text-sm": e.size === "small",
|
|
206
206
|
"cl-py-[9px] cl-px-8 cl-text-sm": e.size === "medium",
|
|
@@ -221,33 +221,31 @@ const _e = /* @__PURE__ */ Te(uo, [["render", po], ["__scopeId", "data-v-a21dc5d
|
|
|
221
221
|
}],
|
|
222
222
|
disabled: e.disabled
|
|
223
223
|
}), [
|
|
224
|
-
h("div",
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
], 2)) : U("", !0)
|
|
236
|
-
])
|
|
224
|
+
h("div", {
|
|
225
|
+
class: O({ "cl-opacity-50": e.loading })
|
|
226
|
+
}, [
|
|
227
|
+
D(e.$slots, "default")
|
|
228
|
+
], 2),
|
|
229
|
+
e.loading ? (u(), g("div", {
|
|
230
|
+
key: 0,
|
|
231
|
+
class: O(["cl-absolute cl-bg-black cl-bg-opacity-20 cl-flex cl-h-full cl-items-center cl-justify-center cl-left-0 cl-rounded cl-top-0 cl-w-full", { "cl-bg-opacity-30": e.colour === "default" }])
|
|
232
|
+
}, [
|
|
233
|
+
q(_e, { class: "!cl-h-6 !cl-w-6 after:!cl-h-6 after:!cl-w-6 cl--translate-x-1/2" })
|
|
234
|
+
], 2)) : U("", !0)
|
|
237
235
|
], 16, fo));
|
|
238
236
|
}
|
|
239
|
-
}),
|
|
237
|
+
}), mo = [
|
|
240
238
|
"default",
|
|
241
239
|
"primary",
|
|
242
240
|
"secondary",
|
|
243
241
|
"danger",
|
|
244
242
|
"blue",
|
|
245
243
|
"orange"
|
|
246
|
-
],
|
|
244
|
+
], go = [
|
|
247
245
|
"small",
|
|
248
246
|
"medium",
|
|
249
247
|
"large"
|
|
250
|
-
],
|
|
248
|
+
], vo = { key: 0 }, ho = /* @__PURE__ */ j({
|
|
251
249
|
__name: "cl-ui-card",
|
|
252
250
|
props: {
|
|
253
251
|
size: { default: "medium" },
|
|
@@ -259,7 +257,7 @@ const _e = /* @__PURE__ */ Te(uo, [["render", po], ["__scopeId", "data-v-a21dc5d
|
|
|
259
257
|
"cl-cursor-pointer hover:cl-shadow-xl hover:cl-border-grey-0": l.hover
|
|
260
258
|
}])
|
|
261
259
|
}, [
|
|
262
|
-
l.$slots.image ? (u(), g("div",
|
|
260
|
+
l.$slots.image ? (u(), g("div", vo, [
|
|
263
261
|
D(l.$slots, "image")
|
|
264
262
|
])) : U("", !0),
|
|
265
263
|
l.$slots.title ? (u(), g("div", {
|
|
@@ -295,23 +293,23 @@ const _e = /* @__PURE__ */ Te(uo, [["render", po], ["__scopeId", "data-v-a21dc5d
|
|
|
295
293
|
], 2)) : U("", !0)
|
|
296
294
|
], 2));
|
|
297
295
|
}
|
|
298
|
-
}),
|
|
296
|
+
}), bo = [
|
|
299
297
|
"small",
|
|
300
298
|
"medium",
|
|
301
299
|
"large"
|
|
302
|
-
],
|
|
300
|
+
], yo = { class: "cl-w-full sm:cl-w-auto" }, wo = { class: "cl-flex cl-flex-nowrap cl-gap-2 cl-text-grey-4 cl-text-xs cl-tracking-widest" }, ko = {
|
|
303
301
|
key: 0,
|
|
304
302
|
class: "cl-self-center"
|
|
305
|
-
},
|
|
303
|
+
}, $o = {
|
|
306
304
|
key: 1,
|
|
307
305
|
class: "cl-text-danger-dark"
|
|
308
|
-
},
|
|
306
|
+
}, To = {
|
|
309
307
|
key: 0,
|
|
310
308
|
class: "cl-pt-1 cl-w-full"
|
|
311
|
-
},
|
|
309
|
+
}, Co = { class: "cl-flex cl-flex-col cl-flex-nowrap cl-gap-1 cl-w-full" }, So = {
|
|
312
310
|
key: 1,
|
|
313
311
|
class: "cl-pt-1 cl-select-none cl-text-xs"
|
|
314
|
-
},
|
|
312
|
+
}, qo = { class: "cl-text-xs cl-w-full" }, Re = /* @__PURE__ */ j({
|
|
315
313
|
__name: "cl-ui-input-layout-wrapper",
|
|
316
314
|
props: {
|
|
317
315
|
showRequiredAsterisk: { type: Boolean },
|
|
@@ -320,29 +318,29 @@ const _e = /* @__PURE__ */ Te(uo, [["render", po], ["__scopeId", "data-v-a21dc5d
|
|
|
320
318
|
},
|
|
321
319
|
setup(o) {
|
|
322
320
|
const l = o, t = k(() => Object.keys(l.errors ?? []).length > 0);
|
|
323
|
-
return (e, r) => (u(), g("div",
|
|
321
|
+
return (e, r) => (u(), g("div", yo, [
|
|
324
322
|
h("div", {
|
|
325
323
|
class: O(["cl-flex", { "cl-flex-col": e.labelPosition === "above", "cl-flex-row-reverse cl-gap-2 cl-items-center cl-justify-end": e.labelPosition === "right" }])
|
|
326
324
|
}, [
|
|
327
|
-
h("div",
|
|
328
|
-
e.$slots.label ? (u(), g("span",
|
|
325
|
+
h("div", wo, [
|
|
326
|
+
e.$slots.label ? (u(), g("span", ko, [
|
|
329
327
|
D(e.$slots, "label")
|
|
330
328
|
])) : U("", !0),
|
|
331
|
-
e.showRequiredAsterisk ? (u(), g("span",
|
|
329
|
+
e.showRequiredAsterisk ? (u(), g("span", $o, "*")) : U("", !0)
|
|
332
330
|
]),
|
|
333
331
|
h("div", null, [
|
|
334
332
|
D(e.$slots, "default")
|
|
335
333
|
])
|
|
336
334
|
], 2),
|
|
337
|
-
t.value ? (u(), g("div",
|
|
338
|
-
h("div",
|
|
335
|
+
t.value ? (u(), g("div", To, [
|
|
336
|
+
h("div", Co, [
|
|
339
337
|
(u(!0), g(K, null, _(e.errors, (a, i) => (u(), g("div", {
|
|
340
338
|
key: i,
|
|
341
339
|
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"
|
|
342
340
|
}, R(a), 1))), 128))
|
|
343
341
|
])
|
|
344
|
-
])) : e.errors || e.$slots.helpText ? (u(), g("div",
|
|
345
|
-
h("span",
|
|
342
|
+
])) : e.errors || e.$slots.helpText ? (u(), g("div", So, [
|
|
343
|
+
h("span", qo, [
|
|
346
344
|
D(e.$slots, "helpText", {}, () => [
|
|
347
345
|
r[0] || (r[0] = ue(" "))
|
|
348
346
|
])
|
|
@@ -350,7 +348,7 @@ const _e = /* @__PURE__ */ Te(uo, [["render", po], ["__scopeId", "data-v-a21dc5d
|
|
|
350
348
|
])) : U("", !0)
|
|
351
349
|
]));
|
|
352
350
|
}
|
|
353
|
-
}),
|
|
351
|
+
}), Do = ["type", "maxlength", "disabled", "placeholder"], ze = /* @__PURE__ */ j({
|
|
354
352
|
inheritAttrs: !1,
|
|
355
353
|
__name: "cl-ui-input-text",
|
|
356
354
|
props: /* @__PURE__ */ de({
|
|
@@ -395,7 +393,7 @@ const _e = /* @__PURE__ */ Te(uo, [["render", po], ["__scopeId", "data-v-a21dc5d
|
|
|
395
393
|
placeholder: i.placeholder ?? void 0,
|
|
396
394
|
onFocus: d[1] || (d[1] = (b) => r("focus")),
|
|
397
395
|
onBlur: d[2] || (d[2] = (b) => r("blur"))
|
|
398
|
-
}), null, 16,
|
|
396
|
+
}), null, 16, Do), [
|
|
399
397
|
[Yl, e.value]
|
|
400
398
|
])
|
|
401
399
|
]),
|
|
@@ -422,8 +420,8 @@ function Ul(o) {
|
|
|
422
420
|
return typeof o == "function" ? o() : m(o);
|
|
423
421
|
}
|
|
424
422
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
425
|
-
const
|
|
426
|
-
function
|
|
423
|
+
const Oo = (o) => o != null;
|
|
424
|
+
function Eo(o, l = {}) {
|
|
427
425
|
let t;
|
|
428
426
|
const { immediate: e, ...r } = l, a = M(!1), i = M(!1), d = (p) => t && t.activate(p), b = (p) => t && t.deactivate(p), n = () => {
|
|
429
427
|
t && (t.pause(), i.value = !0);
|
|
@@ -434,7 +432,7 @@ function Ao(o, l = {}) {
|
|
|
434
432
|
return (Array.isArray(p) ? p : [p]).map((w) => {
|
|
435
433
|
const y = Ul(w);
|
|
436
434
|
return typeof y == "string" ? y : Lt(y);
|
|
437
|
-
}).filter(
|
|
435
|
+
}).filter(Oo);
|
|
438
436
|
});
|
|
439
437
|
return te(
|
|
440
438
|
c,
|
|
@@ -459,10 +457,10 @@ function Ao(o, l = {}) {
|
|
|
459
457
|
unpause: s
|
|
460
458
|
};
|
|
461
459
|
}
|
|
462
|
-
const
|
|
460
|
+
const Ao = {
|
|
463
461
|
key: 0,
|
|
464
462
|
class: "cl-mt-1 cl-opacity-60 cl-text-primary-default"
|
|
465
|
-
},
|
|
463
|
+
}, Mo = { class: "cl-overflow-y-auto cl-overscroll-y-none cl-p-2 cl-w-full" }, nt = /* @__PURE__ */ j({
|
|
466
464
|
inheritAttrs: !1,
|
|
467
465
|
__name: "cl-ui-modal",
|
|
468
466
|
props: /* @__PURE__ */ de({
|
|
@@ -476,7 +474,7 @@ const Mo = {
|
|
|
476
474
|
}),
|
|
477
475
|
emits: ["update:visible"],
|
|
478
476
|
setup(o) {
|
|
479
|
-
const l = o, t = ke(o, "visible"), { trapFocus: e } = Jl(l), r = M(), a =
|
|
477
|
+
const l = o, t = ke(o, "visible"), { trapFocus: e } = Jl(l), r = M(), a = Eo(r);
|
|
480
478
|
te([
|
|
481
479
|
e,
|
|
482
480
|
t
|
|
@@ -537,9 +535,9 @@ const Mo = {
|
|
|
537
535
|
}])
|
|
538
536
|
}, [
|
|
539
537
|
D(n.$slots, "title"),
|
|
540
|
-
n.headerColour === "white" ? (u(), g("hr",
|
|
538
|
+
n.headerColour === "white" ? (u(), g("hr", Ao)) : U("", !0)
|
|
541
539
|
], 2),
|
|
542
|
-
h("div",
|
|
540
|
+
h("div", Mo, [
|
|
543
541
|
D(n.$slots, "default", me(be({ close: d })))
|
|
544
542
|
]),
|
|
545
543
|
D(n.$slots, "footer", me(be({ close: d })))
|
|
@@ -553,7 +551,7 @@ const Mo = {
|
|
|
553
551
|
]))
|
|
554
552
|
], 64));
|
|
555
553
|
}
|
|
556
|
-
}),
|
|
554
|
+
}), Vo = { class: "cl-bg-grey-0 cl-flex cl-p-1 cl-text-left" }, Io = {
|
|
557
555
|
key: 0,
|
|
558
556
|
class: "cl-w-1/2"
|
|
559
557
|
}, tl = /* @__PURE__ */ j({
|
|
@@ -565,8 +563,8 @@ const Mo = {
|
|
|
565
563
|
},
|
|
566
564
|
emits: ["clear-object"],
|
|
567
565
|
setup(o) {
|
|
568
|
-
return (l, t) => (u(), g("div",
|
|
569
|
-
l.additionalText !== "" ? (u(), g("div",
|
|
566
|
+
return (l, t) => (u(), g("div", Vo, [
|
|
567
|
+
l.additionalText !== "" ? (u(), g("div", Io, R(l.additionalText), 1)) : U("", !0),
|
|
570
568
|
h("div", {
|
|
571
569
|
class: O({
|
|
572
570
|
"cl-w-1/2": l.additionalText !== "",
|
|
@@ -586,10 +584,10 @@ const Mo = {
|
|
|
586
584
|
])
|
|
587
585
|
]));
|
|
588
586
|
}
|
|
589
|
-
}),
|
|
587
|
+
}), No = {
|
|
590
588
|
key: 0,
|
|
591
589
|
class: "cl-w-1/2"
|
|
592
|
-
},
|
|
590
|
+
}, Ro = { class: "cl-float-right cl-py-1 cl-text-black" }, zl = /* @__PURE__ */ j({
|
|
593
591
|
__name: "cl-ui-combo-box-selectable",
|
|
594
592
|
props: {
|
|
595
593
|
isCreateNewOption: { type: Boolean, default: !1 },
|
|
@@ -629,14 +627,14 @@ const Mo = {
|
|
|
629
627
|
onMousemove: c[0] || (c[0] = (y) => b(!0)),
|
|
630
628
|
onMouseleave: c[1] || (c[1] = (y) => b(!1))
|
|
631
629
|
}, [
|
|
632
|
-
s.option !== null && ((p = s.option) == null ? void 0 : p.parentId) !== 0 && ((w = s.option) == null ? void 0 : w.parentId) !== void 0 ? (u(), g("div",
|
|
630
|
+
s.option !== null && ((p = s.option) == null ? void 0 : p.parentId) !== 0 && ((w = s.option) == null ? void 0 : w.parentId) !== void 0 ? (u(), g("div", No, R(a.value), 1)) : U("", !0),
|
|
633
631
|
h("div", {
|
|
634
632
|
class: O({
|
|
635
633
|
"cl-w-1/2": a.value !== "",
|
|
636
634
|
"cl-w-full": a.value === ""
|
|
637
635
|
})
|
|
638
636
|
}, R(r.value), 3),
|
|
639
|
-
se(h("div",
|
|
637
|
+
se(h("div", Ro, [
|
|
640
638
|
q(m(le), {
|
|
641
639
|
class: "cl-transition-colors",
|
|
642
640
|
icon: "ph:plus"
|
|
@@ -647,10 +645,10 @@ const Mo = {
|
|
|
647
645
|
], 34);
|
|
648
646
|
};
|
|
649
647
|
}
|
|
650
|
-
}),
|
|
648
|
+
}), Uo = ["onKeyup"], zo = {
|
|
651
649
|
key: 0,
|
|
652
650
|
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"
|
|
653
|
-
},
|
|
651
|
+
}, Bo = { class: "cl-bg-white cl-flex cl-p-2 cl-pb-1 cl-sticky cl-top-0 cl-w-full cl-z-10" }, Lo = { class: "cl-inline-block cl-w-full" }, Fo = { key: 6 }, jo = /* @__PURE__ */ j({
|
|
654
652
|
__name: "cl-ui-combo-box-search",
|
|
655
653
|
props: {
|
|
656
654
|
loading: { type: Boolean, default: !1 },
|
|
@@ -734,11 +732,11 @@ const Mo = {
|
|
|
734
732
|
],
|
|
735
733
|
onKeyup: re(x(C, ["prevent", "stop"]), ["enter"])
|
|
736
734
|
}, [
|
|
737
|
-
$.loading ? (u(), g("div",
|
|
735
|
+
$.loading ? (u(), g("div", zo, [
|
|
738
736
|
q(_e)
|
|
739
737
|
])) : U("", !0),
|
|
740
|
-
h("div",
|
|
741
|
-
h("div",
|
|
738
|
+
h("div", Bo, [
|
|
739
|
+
h("div", Lo, [
|
|
742
740
|
q(ze, {
|
|
743
741
|
id: `cl-ui-combo-box-search-input-${$.objectType}`,
|
|
744
742
|
modelValue: a.value,
|
|
@@ -787,7 +785,7 @@ const Mo = {
|
|
|
787
785
|
onCreateObject: p,
|
|
788
786
|
onOptionHighlighted: P
|
|
789
787
|
}, null, 8, ["text", "selected-index"])) : U("", !0),
|
|
790
|
-
$.errorMessage === "" && $.results !== null ? (u(), g("div",
|
|
788
|
+
$.errorMessage === "" && $.results !== null ? (u(), g("div", Fo, [
|
|
791
789
|
(u(!0), g(K, null, _($.results, (G, B) => (u(), L(zl, {
|
|
792
790
|
key: B,
|
|
793
791
|
option: G,
|
|
@@ -798,10 +796,10 @@ const Mo = {
|
|
|
798
796
|
onOptionHighlighted: P
|
|
799
797
|
}, null, 8, ["option", "index", "selected-index"]))), 128))
|
|
800
798
|
])) : U("", !0)
|
|
801
|
-
], 42,
|
|
799
|
+
], 42, Uo);
|
|
802
800
|
};
|
|
803
801
|
}
|
|
804
|
-
}),
|
|
802
|
+
}), Po = { class: "cl-flex" }, Ho = { class: "cl-inline-block cl-w-full" }, Go = { class: "cl-pointer-events-none cl-relative cl-top-0.5" }, Zo = { class: "cl-absolute cl-flex cl-float-right cl-font-semibold cl-mt-[5px] cl-right-2 cl-text-danger-default cl-text-sm cl-z-10" }, Wo = ["disabled"], Ko = ["disabled"], Qo = { class: "cl-min-h-[16rem] cl-mx-4" }, Yo = { class: "cl-p-2 cl-text-right cl-w-full" }, Jo = /* @__PURE__ */ j({
|
|
805
803
|
inheritAttrs: !1,
|
|
806
804
|
__name: "cl-ui-combo-box",
|
|
807
805
|
props: {
|
|
@@ -926,8 +924,8 @@ const Mo = {
|
|
|
926
924
|
ref_key: "outsideRef",
|
|
927
925
|
ref: Oe
|
|
928
926
|
}, i, { class: "cl-relative" }), [
|
|
929
|
-
h("div",
|
|
930
|
-
h("div",
|
|
927
|
+
h("div", Po, [
|
|
928
|
+
h("div", Ho, [
|
|
931
929
|
q(ze, {
|
|
932
930
|
id: m(d),
|
|
933
931
|
modelValue: y.value,
|
|
@@ -947,8 +945,8 @@ const Mo = {
|
|
|
947
945
|
_: 1
|
|
948
946
|
}, 8, ["id", "modelValue", "class", "placeholder", "disabled"])
|
|
949
947
|
]),
|
|
950
|
-
se(h("div",
|
|
951
|
-
h("div",
|
|
948
|
+
se(h("div", Go, [
|
|
949
|
+
h("div", Zo, [
|
|
952
950
|
ue(R(m(s)("comboBox.required")) + " ", 1),
|
|
953
951
|
q(m(le), {
|
|
954
952
|
class: "cl-ml-1 cl-mt-[3px]",
|
|
@@ -971,7 +969,7 @@ const Mo = {
|
|
|
971
969
|
icon: "ph:caret-up-bold",
|
|
972
970
|
class: "cl-ml-[4px] cl-mt-[9px]"
|
|
973
971
|
})
|
|
974
|
-
], 10,
|
|
972
|
+
], 10, Ko)) : (u(), g("div", {
|
|
975
973
|
key: 0,
|
|
976
974
|
class: O(["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]", {
|
|
977
975
|
"cl-cursor-default cl-bg-off-white": F.disabled,
|
|
@@ -984,14 +982,14 @@ const Mo = {
|
|
|
984
982
|
icon: "ph:caret-down-bold",
|
|
985
983
|
class: "cl-ml-[4px] cl-mt-[9px]"
|
|
986
984
|
})
|
|
987
|
-
], 10,
|
|
985
|
+
], 10, Wo))
|
|
988
986
|
]),
|
|
989
987
|
q(nt, { size: "small" }, {
|
|
990
988
|
title: V(() => [
|
|
991
989
|
ue(R(m(s)("comboBox.createTitle", { object: F.objectType })), 1)
|
|
992
990
|
]),
|
|
993
991
|
trigger: V(({ open: v }) => [
|
|
994
|
-
se(q(
|
|
992
|
+
se(q(jo, {
|
|
995
993
|
"can-create-new-object": F.canCreateNewObject,
|
|
996
994
|
"can-clear-selected-object": F.canClearSelectedObject,
|
|
997
995
|
loading: F.loading,
|
|
@@ -1015,7 +1013,7 @@ const Mo = {
|
|
|
1015
1013
|
])
|
|
1016
1014
|
]),
|
|
1017
1015
|
footer: V(({ close: v }) => [
|
|
1018
|
-
h("div",
|
|
1016
|
+
h("div", Yo, [
|
|
1019
1017
|
q(Ce, {
|
|
1020
1018
|
class: "cl-mr-3",
|
|
1021
1019
|
colour: "default",
|
|
@@ -1043,7 +1041,7 @@ const Mo = {
|
|
|
1043
1041
|
])
|
|
1044
1042
|
]),
|
|
1045
1043
|
default: V(() => [
|
|
1046
|
-
h("div",
|
|
1044
|
+
h("div", Qo, [
|
|
1047
1045
|
F.objectParentType ? (u(), L(H, {
|
|
1048
1046
|
key: 0,
|
|
1049
1047
|
"current-object": w.value,
|
|
@@ -1077,43 +1075,43 @@ const Mo = {
|
|
|
1077
1075
|
};
|
|
1078
1076
|
}
|
|
1079
1077
|
});
|
|
1080
|
-
function
|
|
1078
|
+
function Xo(o) {
|
|
1081
1079
|
return typeof o.id == "number" && typeof o.name == "string";
|
|
1082
1080
|
}
|
|
1083
|
-
function
|
|
1081
|
+
function xo(o) {
|
|
1084
1082
|
return typeof o.name == "string";
|
|
1085
1083
|
}
|
|
1086
|
-
const
|
|
1084
|
+
const _o = {}, ea = { class: "cl-flex cl-flex-wrap cl-left-0 cl-mt-4 cl-w-full" }, la = {
|
|
1087
1085
|
key: 0,
|
|
1088
1086
|
class: "cl-w-full"
|
|
1089
|
-
},
|
|
1087
|
+
}, ta = {
|
|
1090
1088
|
key: 1,
|
|
1091
1089
|
class: "cl-leading-10 cl-text-sm cl-w-full"
|
|
1092
|
-
},
|
|
1093
|
-
function
|
|
1094
|
-
return u(), g("div",
|
|
1095
|
-
o.$slots.default ? (u(), g("div",
|
|
1090
|
+
}, oa = { class: "cl-float-left" }, aa = { class: "cl-float-right" };
|
|
1091
|
+
function na(o, l) {
|
|
1092
|
+
return u(), g("div", ea, [
|
|
1093
|
+
o.$slots.default ? (u(), g("div", la, [
|
|
1096
1094
|
D(o.$slots, "default")
|
|
1097
1095
|
])) : U("", !0),
|
|
1098
|
-
o.$slots.left || o.$slots.right ? (u(), g("div",
|
|
1099
|
-
h("span",
|
|
1096
|
+
o.$slots.left || o.$slots.right ? (u(), g("div", ta, [
|
|
1097
|
+
h("span", oa, [
|
|
1100
1098
|
D(o.$slots, "left")
|
|
1101
1099
|
]),
|
|
1102
|
-
h("span",
|
|
1100
|
+
h("span", aa, [
|
|
1103
1101
|
D(o.$slots, "right")
|
|
1104
1102
|
])
|
|
1105
1103
|
])) : U("", !0)
|
|
1106
1104
|
]);
|
|
1107
1105
|
}
|
|
1108
|
-
const
|
|
1109
|
-
function
|
|
1110
|
-
return u(), g("div",
|
|
1106
|
+
const sa = /* @__PURE__ */ Te(_o, [["render", na]]), ul = Symbol(), ra = {}, ia = { class: "cl-animate-pulse cl-bg-off-white cl-h-[33px] cl-px-20 cl-rounded-md" };
|
|
1107
|
+
function ua(o, l) {
|
|
1108
|
+
return u(), g("div", ia);
|
|
1111
1109
|
}
|
|
1112
|
-
const
|
|
1113
|
-
function
|
|
1114
|
-
return u(), g("div",
|
|
1110
|
+
const ca = /* @__PURE__ */ Te(ra, [["render", ua]]), da = {}, pa = { class: "cl-animate-pulse cl-bg-off-white cl-h-8 cl-rounded-md" };
|
|
1111
|
+
function fa(o, l) {
|
|
1112
|
+
return u(), g("div", pa);
|
|
1115
1113
|
}
|
|
1116
|
-
const ql = /* @__PURE__ */ Te(
|
|
1114
|
+
const ql = /* @__PURE__ */ Te(da, [["render", fa]]), yl = /* @__PURE__ */ j({
|
|
1117
1115
|
inheritAttrs: !1,
|
|
1118
1116
|
__name: "cl-ui-skeleton-text",
|
|
1119
1117
|
props: {
|
|
@@ -1150,13 +1148,13 @@ function Bl(o) {
|
|
|
1150
1148
|
function fl(o) {
|
|
1151
1149
|
return o.some((l) => Xe(l));
|
|
1152
1150
|
}
|
|
1153
|
-
const
|
|
1151
|
+
const ma = {
|
|
1154
1152
|
key: 0,
|
|
1155
1153
|
class: "cl-flex cl-gap-2 cl-justify-between cl-mb-2 cl-w-full"
|
|
1156
|
-
},
|
|
1154
|
+
}, ga = { key: 1 }, va = { class: "cl-flex cl-flex-wrap cl-gap-1 cl-overflow-auto cl-pb-2 lg:cl-flex-nowrap lg:cl-gap-2 lg:cl-overflow-visible md:cl-justify-end" }, ha = { class: "cl-basis-full cl-col-span-2 cl-flex-grow lg:cl-basis-0" }, ba = {
|
|
1157
1155
|
key: 2,
|
|
1158
1156
|
class: "cl-flex-1 lg:cl-block lg:cl-flex-none"
|
|
1159
|
-
},
|
|
1157
|
+
}, ya = /* @__PURE__ */ j({
|
|
1160
1158
|
__name: "cl-ui-grid-action-row",
|
|
1161
1159
|
props: {
|
|
1162
1160
|
editMode: { type: Boolean },
|
|
@@ -1171,12 +1169,12 @@ const ga = {
|
|
|
1171
1169
|
emits: ["update:edit-mode", "update:filterPanelOpen", "clear-filters"],
|
|
1172
1170
|
setup(o) {
|
|
1173
1171
|
const l = o, { t } = ce(), e = k(() => l.request.filters.some((a) => a.filterValue !== "")), r = il("cl-ui-grid-id") ?? "cl-ui-grid-filter";
|
|
1174
|
-
return (a, i) => a.initialLoad && (a.$slots["additional-grid-actions"] || m(fl)(a.columns) || m(Bl)(a.columns)) ? (u(), g("div",
|
|
1175
|
-
(u(), g(K, null, _(2, (d) => q(m(
|
|
1172
|
+
return (a, i) => a.initialLoad && (a.$slots["additional-grid-actions"] || m(fl)(a.columns) || m(Bl)(a.columns)) ? (u(), g("div", ma, [
|
|
1173
|
+
(u(), g(K, null, _(2, (d) => q(m(ca), {
|
|
1176
1174
|
key: d,
|
|
1177
1175
|
class: "cl-flex-1 lg:cl-flex-initial"
|
|
1178
1176
|
})), 64))
|
|
1179
|
-
])) : (u(), g("div",
|
|
1177
|
+
])) : (u(), g("div", ga, [
|
|
1180
1178
|
h("div", {
|
|
1181
1179
|
class: O(["cl-mb-2 cl-text-sm lg:cl-hidden", {
|
|
1182
1180
|
"cl-hidden": a.options.hideGridMobileView
|
|
@@ -1184,8 +1182,8 @@ const ga = {
|
|
|
1184
1182
|
}, [
|
|
1185
1183
|
h("strong", null, R(m(t)("grid.gridTools")), 1)
|
|
1186
1184
|
], 2),
|
|
1187
|
-
h("div",
|
|
1188
|
-
h("div",
|
|
1185
|
+
h("div", va, [
|
|
1186
|
+
h("div", ha, [
|
|
1189
1187
|
D(a.$slots, "additional-grid-actions", me(be({
|
|
1190
1188
|
loading: a.loading,
|
|
1191
1189
|
editMode: a.options.forceEditMode || a.editMode
|
|
@@ -1226,7 +1224,7 @@ const ga = {
|
|
|
1226
1224
|
]),
|
|
1227
1225
|
_: 1
|
|
1228
1226
|
}, 8, ["disabled"])) : U("", !0),
|
|
1229
|
-
a.options.hideViewManager === !1 ? (u(), g("div",
|
|
1227
|
+
a.options.hideViewManager === !1 ? (u(), g("div", ba, [
|
|
1230
1228
|
D(a.$slots, "view-manager")
|
|
1231
1229
|
])) : U("", !0),
|
|
1232
1230
|
m(fl)(a.columns) || m(Bl)(a.columns) ? (u(), g(K, { key: 3 }, [
|
|
@@ -1265,7 +1263,7 @@ const ga = {
|
|
|
1265
1263
|
])
|
|
1266
1264
|
]));
|
|
1267
1265
|
}
|
|
1268
|
-
}),
|
|
1266
|
+
}), wa = ["for"], ka = ["required", "disabled"], $a = /* @__PURE__ */ j({
|
|
1269
1267
|
inheritAttrs: !1,
|
|
1270
1268
|
__name: "cl-ui-input-checkbox",
|
|
1271
1269
|
props: /* @__PURE__ */ de({
|
|
@@ -1308,7 +1306,7 @@ const ga = {
|
|
|
1308
1306
|
}, ["stop", "prevent"]), ["enter"])),
|
|
1309
1307
|
onFocus: d[2] || (d[2] = (b) => r("focus")),
|
|
1310
1308
|
onBlur: d[3] || (d[3] = (b) => r("blur"))
|
|
1311
|
-
}), null, 16,
|
|
1309
|
+
}), null, 16, ka), [
|
|
1312
1310
|
[At, e.value]
|
|
1313
1311
|
])
|
|
1314
1312
|
]),
|
|
@@ -1321,7 +1319,7 @@ const ga = {
|
|
|
1321
1319
|
for: i.$attrs.id ? i.$attrs.id.toString() : ""
|
|
1322
1320
|
}, [
|
|
1323
1321
|
D(i.$slots, "default", {}, void 0, !0)
|
|
1324
|
-
], 8,
|
|
1322
|
+
], 8, wa)
|
|
1325
1323
|
]),
|
|
1326
1324
|
key: "0"
|
|
1327
1325
|
} : void 0,
|
|
@@ -1334,9 +1332,9 @@ const ga = {
|
|
|
1334
1332
|
} : void 0
|
|
1335
1333
|
]), 1032, ["show-required-asterisk", "errors"]));
|
|
1336
1334
|
}
|
|
1337
|
-
}), cl = /* @__PURE__ */ Te(
|
|
1335
|
+
}), cl = /* @__PURE__ */ Te($a, [["__scopeId", "data-v-96a278cf"]]);
|
|
1338
1336
|
var ae = /* @__PURE__ */ ((o) => (o.CURRENCY = "currency", o.PERCENTAGE = "percentage", o.INTEGER = "integer", o.DECIMAL = "decimal", o.MULTIPLIER = "multiplier", o))(ae || {}), ie = /* @__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))(ie || {});
|
|
1339
|
-
const
|
|
1337
|
+
const Ta = {
|
|
1340
1338
|
"en-GB": {
|
|
1341
1339
|
comboBox: {
|
|
1342
1340
|
emptyHintText: "Choose a {object}",
|
|
@@ -1443,7 +1441,7 @@ const Ca = {
|
|
|
1443
1441
|
invalidFileType: "{filename} is not a valid file type."
|
|
1444
1442
|
}
|
|
1445
1443
|
}
|
|
1446
|
-
},
|
|
1444
|
+
}, Ca = {
|
|
1447
1445
|
"en-GB": {
|
|
1448
1446
|
[ae.PERCENTAGE]: {
|
|
1449
1447
|
style: "percent",
|
|
@@ -1466,7 +1464,7 @@ const Ca = {
|
|
|
1466
1464
|
minimumFractionDigits: 2
|
|
1467
1465
|
}
|
|
1468
1466
|
}
|
|
1469
|
-
},
|
|
1467
|
+
}, Sa = {
|
|
1470
1468
|
"en-GB": {
|
|
1471
1469
|
[ie.SHORT_DATE]: {
|
|
1472
1470
|
day: "numeric",
|
|
@@ -1516,27 +1514,27 @@ const Ca = {
|
|
|
1516
1514
|
}, qe = Wt({
|
|
1517
1515
|
locale: "en-GB",
|
|
1518
1516
|
fallbackLocale: "en-GB",
|
|
1519
|
-
messages:
|
|
1520
|
-
numberFormats:
|
|
1521
|
-
datetimeFormats:
|
|
1517
|
+
messages: Ta,
|
|
1518
|
+
numberFormats: Ca,
|
|
1519
|
+
datetimeFormats: Sa,
|
|
1522
1520
|
useScope: "global",
|
|
1523
1521
|
missingWarn: !1,
|
|
1524
1522
|
fallbackWarn: !1,
|
|
1525
1523
|
warnHtmlMessage: !1
|
|
1526
1524
|
});
|
|
1527
|
-
function
|
|
1525
|
+
function Qu(o, l) {
|
|
1528
1526
|
return qe.global.mergeLocaleMessage(o, l), Fe();
|
|
1529
1527
|
}
|
|
1530
|
-
function
|
|
1528
|
+
function Yu(o, l) {
|
|
1531
1529
|
return qe.global.mergeNumberFormat(o, l), Fe();
|
|
1532
1530
|
}
|
|
1533
|
-
function
|
|
1531
|
+
function Ju(o, l) {
|
|
1534
1532
|
return qe.global.mergeDateTimeFormat(o, l), Fe();
|
|
1535
1533
|
}
|
|
1536
|
-
function
|
|
1534
|
+
function Xu(o) {
|
|
1537
1535
|
return qe.global.locale.value = o, Fe();
|
|
1538
1536
|
}
|
|
1539
|
-
const { locale:
|
|
1537
|
+
const { locale: qa, getNumberFormat: Da } = qe.global, dl = ae.DECIMAL;
|
|
1540
1538
|
function De(o) {
|
|
1541
1539
|
return Ve(o, ae.DECIMAL, { additionalOptions: {
|
|
1542
1540
|
minimumFractionDigits: 0,
|
|
@@ -1568,7 +1566,7 @@ function Ve(o, l, t) {
|
|
|
1568
1566
|
}
|
|
1569
1567
|
function st(o, l, t) {
|
|
1570
1568
|
if (pl(l)) {
|
|
1571
|
-
const e =
|
|
1569
|
+
const e = Ea(o, l);
|
|
1572
1570
|
return Ll(e ?? o, dl, t);
|
|
1573
1571
|
} else
|
|
1574
1572
|
return Ll(o, Ol(l), t);
|
|
@@ -1576,11 +1574,11 @@ function st(o, l, t) {
|
|
|
1576
1574
|
function Dl(o, l) {
|
|
1577
1575
|
return pl(o) ? He(dl, l) : He(Ol(o), l);
|
|
1578
1576
|
}
|
|
1579
|
-
function
|
|
1577
|
+
function Oa(o, l, t) {
|
|
1580
1578
|
const e = el(t);
|
|
1581
1579
|
return !!e && (o.includes(Ie(e, 10000.11111, l)[0]) || o.includes(Ie(e, -10000.11111, l)[0]));
|
|
1582
1580
|
}
|
|
1583
|
-
function
|
|
1581
|
+
function Ea(o, l) {
|
|
1584
1582
|
let t = null;
|
|
1585
1583
|
o = `!${o}!`;
|
|
1586
1584
|
const e = `!${l}!`.split("{0}");
|
|
@@ -1641,7 +1639,7 @@ function el(o) {
|
|
|
1641
1639
|
}
|
|
1642
1640
|
}
|
|
1643
1641
|
function He(o, l) {
|
|
1644
|
-
const t = Il(l == null ? void 0 : l.locale) || m(
|
|
1642
|
+
const t = Il(l == null ? void 0 : l.locale) || m(qa), e = Da(t), r = we(Il(l == null ? void 0 : l.additionalOptions) ?? {});
|
|
1645
1643
|
let a = "decimal";
|
|
1646
1644
|
switch (o) {
|
|
1647
1645
|
case ae.PERCENTAGE:
|
|
@@ -1660,22 +1658,22 @@ function He(o, l) {
|
|
|
1660
1658
|
};
|
|
1661
1659
|
}
|
|
1662
1660
|
function Ol(o) {
|
|
1663
|
-
return
|
|
1661
|
+
return Aa(o) ? o : ae.CURRENCY;
|
|
1664
1662
|
}
|
|
1665
1663
|
function pl(o) {
|
|
1666
1664
|
return o.includes("{0}");
|
|
1667
1665
|
}
|
|
1668
|
-
function
|
|
1666
|
+
function Aa(o) {
|
|
1669
1667
|
return !pl(o) && o !== "currency-without-symbol";
|
|
1670
1668
|
}
|
|
1671
|
-
function
|
|
1669
|
+
function Ma(o, l) {
|
|
1672
1670
|
const t = He(dl, l), e = el(t);
|
|
1673
1671
|
if (e === null)
|
|
1674
1672
|
return o;
|
|
1675
1673
|
const r = Ie(e, 10000.11111, "group");
|
|
1676
1674
|
return Ue(o, r, "", o.length, !0);
|
|
1677
1675
|
}
|
|
1678
|
-
function
|
|
1676
|
+
function Va(o) {
|
|
1679
1677
|
if (o.startsWith("ClUi"))
|
|
1680
1678
|
return {
|
|
1681
1679
|
name: `clUi${o.slice(4)}`,
|
|
@@ -1687,11 +1685,11 @@ function Ia(o) {
|
|
|
1687
1685
|
from: "@iconify/vue"
|
|
1688
1686
|
};
|
|
1689
1687
|
}
|
|
1690
|
-
function
|
|
1691
|
-
return
|
|
1688
|
+
function xu() {
|
|
1689
|
+
return Va;
|
|
1692
1690
|
}
|
|
1693
1691
|
const { t: Ae } = qe.global;
|
|
1694
|
-
function
|
|
1692
|
+
function Ia(o, l, t, e, r) {
|
|
1695
1693
|
return new Promise((a) => {
|
|
1696
1694
|
let i = {
|
|
1697
1695
|
valid: !1,
|
|
@@ -1746,7 +1744,7 @@ function Na(o, l, t, e, r) {
|
|
|
1746
1744
|
a(i);
|
|
1747
1745
|
});
|
|
1748
1746
|
}
|
|
1749
|
-
function
|
|
1747
|
+
function Na(o, l, t, e, r) {
|
|
1750
1748
|
return new Promise((a) => {
|
|
1751
1749
|
let i = {
|
|
1752
1750
|
valid: !1,
|
|
@@ -1801,13 +1799,13 @@ function Ra(o, l, t, e, r) {
|
|
|
1801
1799
|
a(i);
|
|
1802
1800
|
});
|
|
1803
1801
|
}
|
|
1804
|
-
function
|
|
1802
|
+
function Ra(o, l) {
|
|
1805
1803
|
return new Promise((t) => {
|
|
1806
1804
|
const e = l != null && l !== "" && l.toString().trim() !== "", r = Me(e, Ae("input.valueIsRequired", { label: o }));
|
|
1807
1805
|
t(r);
|
|
1808
1806
|
});
|
|
1809
1807
|
}
|
|
1810
|
-
function
|
|
1808
|
+
function Ua(o, l) {
|
|
1811
1809
|
return new Promise((t) => {
|
|
1812
1810
|
const r = l === "" || /[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(l) !== null, a = Me(r, Ae("input.valueNotValidEmail", { label: o }));
|
|
1813
1811
|
t(a);
|
|
@@ -1819,16 +1817,16 @@ function Me(o, l) {
|
|
|
1819
1817
|
message: o ? "" : l
|
|
1820
1818
|
};
|
|
1821
1819
|
}
|
|
1822
|
-
const
|
|
1820
|
+
const za = {
|
|
1823
1821
|
key: 3,
|
|
1824
1822
|
class: "cl-inline-block cl-whitespace-nowrap"
|
|
1825
|
-
},
|
|
1823
|
+
}, Ba = {
|
|
1826
1824
|
key: 4,
|
|
1827
1825
|
class: "cl-inline-block cl-whitespace-nowrap"
|
|
1828
|
-
},
|
|
1826
|
+
}, La = {
|
|
1829
1827
|
key: 5,
|
|
1830
1828
|
class: "cl-inline-block cl-whitespace-nowrap"
|
|
1831
|
-
},
|
|
1829
|
+
}, Fa = ["title", "innerHTML"], jl = /* @__PURE__ */ j({
|
|
1832
1830
|
__name: "cl-ui-grid-cell-value",
|
|
1833
1831
|
props: {
|
|
1834
1832
|
data: {},
|
|
@@ -1909,15 +1907,15 @@ const Ba = {
|
|
|
1909
1907
|
], 64)) : (u(), g(K, { key: 2 }, [
|
|
1910
1908
|
ue(R(i(n.data[n.column.field], m(ie).DATETIME)), 1)
|
|
1911
1909
|
], 64))
|
|
1912
|
-
], 64)) : n.column.type === "list" && n.column.field !== void 0 && n.column.listEntries !== void 0 ? (u(), g("span",
|
|
1910
|
+
], 64)) : n.column.type === "list" && n.column.field !== void 0 && n.column.listEntries !== void 0 ? (u(), g("span", za, R(m(e)(((c = n.column.listEntries.find((p) => p.value === n.data[n.column.field])) == null ? void 0 : c.translationKey) ?? "")), 1)) : n.column.type === "number" && n.column.field !== void 0 ? (u(), g("span", Ba, R(b(n.data[n.column.field], m(r))), 1)) : n.column.field !== void 0 ? (u(), g("span", La, [
|
|
1913
1911
|
h("span", {
|
|
1914
1912
|
title: a.value ? n.data[n.column.field] : void 0,
|
|
1915
1913
|
innerHTML: d()
|
|
1916
|
-
}, null, 8,
|
|
1914
|
+
}, null, 8, Fa)
|
|
1917
1915
|
])) : U("", !0);
|
|
1918
1916
|
};
|
|
1919
1917
|
}
|
|
1920
|
-
}),
|
|
1918
|
+
}), ja = /* @__PURE__ */ j({
|
|
1921
1919
|
__name: "cl-ui-grid-cell",
|
|
1922
1920
|
props: {
|
|
1923
1921
|
data: {},
|
|
@@ -1997,7 +1995,7 @@ const Ba = {
|
|
|
1997
1995
|
}, 1032, ["column", "data", "time-zone", "search-value", "row-index"]))
|
|
1998
1996
|
], 2));
|
|
1999
1997
|
}
|
|
2000
|
-
}),
|
|
1998
|
+
}), Pa = /* @__PURE__ */ j({
|
|
2001
1999
|
__name: "cl-ui-grid-row",
|
|
2002
2000
|
props: {
|
|
2003
2001
|
data: {},
|
|
@@ -2011,7 +2009,7 @@ const Ba = {
|
|
|
2011
2009
|
emits: ["cell-focus", "cell-edit", "cell-undo"],
|
|
2012
2010
|
setup(o) {
|
|
2013
2011
|
return (l, t) => (u(), g("tr", null, [
|
|
2014
|
-
(u(!0), g(K, null, _(l.columns, (e, r) => (u(), L(
|
|
2012
|
+
(u(!0), g(K, null, _(l.columns, (e, r) => (u(), L(ja, {
|
|
2015
2013
|
key: r,
|
|
2016
2014
|
data: l.data,
|
|
2017
2015
|
column: e,
|
|
@@ -2033,13 +2031,13 @@ const Ba = {
|
|
|
2033
2031
|
]), 1032, ["data", "column", "options", "time-zone", "search-value", "edit-mode", "row-index", "onEdit", "onUndo"]))), 128))
|
|
2034
2032
|
]));
|
|
2035
2033
|
}
|
|
2036
|
-
}),
|
|
2034
|
+
}), Ha = ["colspan"], Ga = ["colspan"], Za = { key: 2 }, Wa = ["colspan"], Ka = { class: "cl-flex cl-flex-wrap cl-justify-center cl-text-center cl-text-sm cl-w-full" }, Qa = { key: 0 }, Ya = {
|
|
2037
2035
|
key: 1,
|
|
2038
2036
|
class: "cl-mt-6 cl-w-full"
|
|
2039
|
-
},
|
|
2037
|
+
}, Ja = {
|
|
2040
2038
|
key: 2,
|
|
2041
2039
|
class: "cl-mt-4"
|
|
2042
|
-
},
|
|
2040
|
+
}, Xa = { class: "cl-mb-2 cl-w-full" }, xa = /* @__PURE__ */ j({
|
|
2043
2041
|
__name: "cl-ui-grid-body",
|
|
2044
2042
|
props: {
|
|
2045
2043
|
columns: {},
|
|
@@ -2119,10 +2117,10 @@ const Ba = {
|
|
|
2119
2117
|
"cl-border-t cl-border-off-white": E % 2 === 0
|
|
2120
2118
|
}
|
|
2121
2119
|
)
|
|
2122
|
-
}, " ", 10,
|
|
2120
|
+
}, " ", 10, Ha)
|
|
2123
2121
|
]))), 128)) : U("", !0),
|
|
2124
2122
|
f.data && ((A = f.data.results) != null && A.length) && !f.initialLoad ? (u(), g(K, { key: 1 }, [
|
|
2125
|
-
(u(!0), g(K, null, _(f.data.results, (E, S) => (u(), L(
|
|
2123
|
+
(u(!0), g(K, null, _(f.data.results, (E, S) => (u(), L(Pa, {
|
|
2126
2124
|
key: S,
|
|
2127
2125
|
data: E,
|
|
2128
2126
|
options: f.options,
|
|
@@ -2165,18 +2163,18 @@ const Ba = {
|
|
|
2165
2163
|
h("td", {
|
|
2166
2164
|
colspan: f.columns.length,
|
|
2167
2165
|
class: "cl-gap-1 cl-py-2 cl-text-xs lg:cl-px-1"
|
|
2168
|
-
}, " ", 8,
|
|
2166
|
+
}, " ", 8, Ga)
|
|
2169
2167
|
], 2))), 128)) : U("", !0)
|
|
2170
|
-
], 64)) : f.loading ? U("", !0) : (u(), g("tr",
|
|
2168
|
+
], 64)) : f.loading ? U("", !0) : (u(), g("tr", Za, [
|
|
2171
2169
|
h("td", {
|
|
2172
2170
|
colspan: f.columns.length
|
|
2173
2171
|
}, [
|
|
2174
|
-
h("div",
|
|
2175
|
-
f.$slots.noData && f.request.filters.some((E) => E.filterValue !== "") === !1 ? (u(), g("div",
|
|
2172
|
+
h("div", Ka, [
|
|
2173
|
+
f.$slots.noData && f.request.filters.some((E) => E.filterValue !== "") === !1 ? (u(), g("div", Qa, [
|
|
2176
2174
|
D(f.$slots, "noData")
|
|
2177
|
-
])) : (u(), g("strong",
|
|
2178
|
-
f.request.filters.some((E) => E.filterValue !== "") ? (u(), g("div",
|
|
2179
|
-
h("div",
|
|
2175
|
+
])) : (u(), g("strong", Ya, R(m(r)("grid.noData")), 1)),
|
|
2176
|
+
f.request.filters.some((E) => E.filterValue !== "") ? (u(), g("div", Ja, [
|
|
2177
|
+
h("div", Xa, R(m(r)("grid.noDataFiltersPresent")), 1),
|
|
2180
2178
|
q(Ce, {
|
|
2181
2179
|
size: "small",
|
|
2182
2180
|
colour: "danger",
|
|
@@ -2189,12 +2187,12 @@ const Ba = {
|
|
|
2189
2187
|
})
|
|
2190
2188
|
])) : U("", !0)
|
|
2191
2189
|
])
|
|
2192
|
-
], 8,
|
|
2190
|
+
], 8, Wa)
|
|
2193
2191
|
]))
|
|
2194
2192
|
]);
|
|
2195
2193
|
};
|
|
2196
2194
|
}
|
|
2197
|
-
}),
|
|
2195
|
+
}), _a = ["value", "inputmode", "disabled", "placeholder"], en = { 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" }, ln = ["disabled"], tn = ["disabled"], ll = /* @__PURE__ */ j({
|
|
2198
2196
|
inheritAttrs: !1,
|
|
2199
2197
|
__name: "cl-ui-input-number",
|
|
2200
2198
|
props: /* @__PURE__ */ de({
|
|
@@ -2218,7 +2216,7 @@ const Ba = {
|
|
|
2218
2216
|
setup(o, { expose: l, emit: t }) {
|
|
2219
2217
|
const e = o, r = ke(o, "modelValue"), a = t, i = M(0), d = M(), b = M(), { isOutside: n } = jt(b), { focused: s } = Pt(d), c = k(() => e.showArrows && n.value === !1);
|
|
2220
2218
|
te(s, () => {
|
|
2221
|
-
s.value ? (A.value =
|
|
2219
|
+
s.value ? (A.value = Ma(P.value, {
|
|
2222
2220
|
locale: e.locale
|
|
2223
2221
|
}), E.value = !1, a("focus")) : (E.value && $(P.value, !0), A.value = void 0, E.value = !1, a("blur"));
|
|
2224
2222
|
});
|
|
@@ -2250,7 +2248,7 @@ const Ba = {
|
|
|
2250
2248
|
r.value = null;
|
|
2251
2249
|
else if (B !== "") {
|
|
2252
2250
|
let $e = typeof B == "number" ? B : oe(B);
|
|
2253
|
-
ee && e.format === ae.PERCENTAGE && !
|
|
2251
|
+
ee && e.format === ae.PERCENTAGE && !Oa(P.value, "percentSign", w.value) && ($e = $e / f.value), isNaN($e) === !1 && (r.value = I(Math.round($e * C.value) / C.value));
|
|
2254
2252
|
}
|
|
2255
2253
|
}
|
|
2256
2254
|
function W(B) {
|
|
@@ -2308,8 +2306,8 @@ const Ba = {
|
|
|
2308
2306
|
ee[2] || (ee[2] = re(x((z) => G(!0), ["stop", "prevent"]), ["down"])),
|
|
2309
2307
|
ee[3] || (ee[3] = re(x((z) => G(!1), ["stop", "prevent"]), ["up"]))
|
|
2310
2308
|
]
|
|
2311
|
-
}), null, 16,
|
|
2312
|
-
se(h("div",
|
|
2309
|
+
}), null, 16, _a)),
|
|
2310
|
+
se(h("div", en, [
|
|
2313
2311
|
h("button", {
|
|
2314
2312
|
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",
|
|
2315
2313
|
disabled: B.disabled,
|
|
@@ -2320,7 +2318,7 @@ const Ba = {
|
|
|
2320
2318
|
]
|
|
2321
2319
|
}, [
|
|
2322
2320
|
q($e, { icon: "ph:caret-up-bold" })
|
|
2323
|
-
], 40,
|
|
2321
|
+
], 40, ln),
|
|
2324
2322
|
h("button", {
|
|
2325
2323
|
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",
|
|
2326
2324
|
disabled: B.disabled,
|
|
@@ -2331,7 +2329,7 @@ const Ba = {
|
|
|
2331
2329
|
]
|
|
2332
2330
|
}, [
|
|
2333
2331
|
q($e, { icon: "ph:caret-down-bold" })
|
|
2334
|
-
], 40,
|
|
2332
|
+
], 40, tn)
|
|
2335
2333
|
], 512), [
|
|
2336
2334
|
[fe, c.value && !B.disabled]
|
|
2337
2335
|
])
|
|
@@ -2356,13 +2354,13 @@ const Ba = {
|
|
|
2356
2354
|
]), 1032, ["show-required-asterisk", "errors"]);
|
|
2357
2355
|
};
|
|
2358
2356
|
}
|
|
2359
|
-
}),
|
|
2357
|
+
}), on = {
|
|
2360
2358
|
key: 0,
|
|
2361
2359
|
class: "cl-flex cl-flex-col lg:cl-flex-row lg:cl-gap-2"
|
|
2362
|
-
},
|
|
2360
|
+
}, an = { class: "cl-border cl-border-off-white cl-flex cl-items-center cl-mt-2 cl-p-2 cl-rounded-lg cl-w-full lg:cl-px-4 lg:cl-py-3" }, nn = { class: "cl-border cl-border-off-white cl-mt-2 cl-p-2 cl-rounded-lg lg:cl-px-4 lg:cl-py-3" }, sn = ["inert"], rn = { class: "cl-basis-full cl-bg-off-white cl-border cl-border-grey-1 cl-flex cl-flex-1 cl-items-center cl-justify-between cl-mt-2 cl-p-2 cl-rounded-lg cl-shadow cl-text-sm lg:cl-basis-0 lg:cl-px-4 lg:cl-py-3" }, un = { class: "cl-flex cl-flex-wrap cl-gap-x-4 cl-gap-y-2 cl-items-center cl-justify-between cl-w-full" }, cn = { class: "cl-flex cl-flex-wrap cl-gap-x-4" }, dn = { class: "cl-flex cl-flex-col lg:cl-flex-row" }, pn = { class: "cl-mr-2 cl-text-grey-3" }, fn = { class: "cl-flex cl-flex-col lg:cl-flex-row" }, mn = { class: "cl-mr-1 cl-text-grey-3" }, gn = {
|
|
2363
2361
|
key: 0,
|
|
2364
2362
|
class: "cl-flex cl-flex-col lg:cl-flex-row"
|
|
2365
|
-
},
|
|
2363
|
+
}, vn = { class: "cl-basis-full cl-mr-1 cl-text-grey-3" }, hn = { class: "cl-flex cl-gap-0.5" }, bn = ["onClick"], yn = { class: "cl-flex cl-gap-1 cl-items-center" }, wn = ["onClick"], kn = { class: "cl-basis-full cl-bg-off-white cl-border cl-border-grey-1 cl-flex cl-gap-2 cl-items-center cl-justify-between cl-mt-2 cl-px-2 cl-py-1 cl-rounded-lg cl-shadow cl-text-sm lg:cl-basis-auto lg:cl-px-4 lg:cl-py-3" }, $n = { class: "cl-flex cl-items-center" }, Tn = { class: "cl-mr-2 cl-text-grey-3" }, Cn = /* @__PURE__ */ j({
|
|
2366
2364
|
__name: "cl-ui-grid-footer",
|
|
2367
2365
|
props: {
|
|
2368
2366
|
request: {},
|
|
@@ -2408,15 +2406,15 @@ const Ba = {
|
|
|
2408
2406
|
}
|
|
2409
2407
|
return (s, c) => {
|
|
2410
2408
|
var p, w, y;
|
|
2411
|
-
return s.initialLoad ? (u(), g("div",
|
|
2412
|
-
h("div",
|
|
2409
|
+
return s.initialLoad ? (u(), g("div", on, [
|
|
2410
|
+
h("div", an, [
|
|
2413
2411
|
q(m(yl), { words: 3 }),
|
|
2414
2412
|
q(m(yl), {
|
|
2415
2413
|
class: "cl-ml-auto",
|
|
2416
2414
|
words: 2
|
|
2417
2415
|
})
|
|
2418
2416
|
]),
|
|
2419
|
-
h("div",
|
|
2417
|
+
h("div", nn, [
|
|
2420
2418
|
q(m(ql), { class: "cl-w-64" })
|
|
2421
2419
|
])
|
|
2422
2420
|
])) : s.loading || (w = (p = s.data) == null ? void 0 : p.results) != null && w.length && s.request ? (u(), g("div", {
|
|
@@ -2426,20 +2424,20 @@ const Ba = {
|
|
|
2426
2424
|
}]),
|
|
2427
2425
|
inert: s.loading
|
|
2428
2426
|
}, [
|
|
2429
|
-
h("div",
|
|
2430
|
-
h("div",
|
|
2431
|
-
h("div",
|
|
2432
|
-
h("div",
|
|
2433
|
-
h("span",
|
|
2427
|
+
h("div", rn, [
|
|
2428
|
+
h("div", un, [
|
|
2429
|
+
h("div", cn, [
|
|
2430
|
+
h("div", dn, [
|
|
2431
|
+
h("span", pn, R(m(r)("grid.page")), 1),
|
|
2434
2432
|
h("span", null, R(m(De)(s.request.pageNumber)) + " / " + R(m(De)(a.value)), 1)
|
|
2435
2433
|
]),
|
|
2436
|
-
h("div",
|
|
2437
|
-
h("span",
|
|
2434
|
+
h("div", fn, [
|
|
2435
|
+
h("span", mn, R(m(r)("grid.totalRecords")), 1),
|
|
2438
2436
|
h("span", null, R(m(De)(((y = s.data) == null ? void 0 : y.totalRecords) ?? 0)), 1)
|
|
2439
2437
|
]),
|
|
2440
|
-
s.options.hidePageSizeOptions === !1 ? (u(), g("div",
|
|
2441
|
-
h("span",
|
|
2442
|
-
h("ul",
|
|
2438
|
+
s.options.hidePageSizeOptions === !1 ? (u(), g("div", gn, [
|
|
2439
|
+
h("span", vn, R(m(r)("grid.pageSize")), 1),
|
|
2440
|
+
h("ul", hn, [
|
|
2443
2441
|
(u(), g(K, null, _(b, (f, C) => h("li", {
|
|
2444
2442
|
key: C,
|
|
2445
2443
|
class: O(["cl-mr-1 last:cl-mr-0", {
|
|
@@ -2447,12 +2445,12 @@ const Ba = {
|
|
|
2447
2445
|
"cl-cursor-pointer": s.request.pageSize !== f
|
|
2448
2446
|
}]),
|
|
2449
2447
|
onClick: (A) => n(f)
|
|
2450
|
-
}, R(m(De)(f)), 11,
|
|
2448
|
+
}, R(m(De)(f)), 11, bn)), 64))
|
|
2451
2449
|
])
|
|
2452
2450
|
])) : U("", !0)
|
|
2453
2451
|
]),
|
|
2454
2452
|
h("div", null, [
|
|
2455
|
-
h("ul",
|
|
2453
|
+
h("ul", yn, [
|
|
2456
2454
|
h("li", {
|
|
2457
2455
|
class: O({
|
|
2458
2456
|
"cl-text-grey-2 cl-pointer-events-none": s.request.pageNumber === 1,
|
|
@@ -2485,7 +2483,7 @@ const Ba = {
|
|
|
2485
2483
|
"cl-bg-grey-0": s.loading
|
|
2486
2484
|
}]),
|
|
2487
2485
|
onClick: (A) => d(f)
|
|
2488
|
-
}, R(m(De)(f)), 11,
|
|
2486
|
+
}, R(m(De)(f)), 11, wn))), 128)),
|
|
2489
2487
|
h("li", {
|
|
2490
2488
|
class: O({
|
|
2491
2489
|
"cl-text-grey-2 cl-pointer-events-none": s.request.pageNumber >= a.value,
|
|
@@ -2514,9 +2512,9 @@ const Ba = {
|
|
|
2514
2512
|
])
|
|
2515
2513
|
])
|
|
2516
2514
|
]),
|
|
2517
|
-
h("div",
|
|
2518
|
-
h("div",
|
|
2519
|
-
h("span",
|
|
2515
|
+
h("div", kn, [
|
|
2516
|
+
h("div", $n, [
|
|
2517
|
+
h("span", Tn, R(m(r)("grid.jumpToPage")), 1),
|
|
2520
2518
|
q(ll, {
|
|
2521
2519
|
"model-value": s.request.pageNumber,
|
|
2522
2520
|
min: 1,
|
|
@@ -2533,7 +2531,7 @@ const Ba = {
|
|
|
2533
2531
|
}, 8, ["model-value", "max", "disabled"])
|
|
2534
2532
|
])
|
|
2535
2533
|
])
|
|
2536
|
-
], 10,
|
|
2534
|
+
], 10, sn)) : U("", !0);
|
|
2537
2535
|
};
|
|
2538
2536
|
}
|
|
2539
2537
|
});
|
|
@@ -2548,7 +2546,7 @@ function rt(o, l, t, e) {
|
|
|
2548
2546
|
let r = Ml(Y.now(), t, e);
|
|
2549
2547
|
return r = pt(l, t, r, e), r = dt(o, t, r, e), r.toJSDate();
|
|
2550
2548
|
}
|
|
2551
|
-
function
|
|
2549
|
+
function Sn(o, l, t, e, r) {
|
|
2552
2550
|
let a = Y.fromJSDate(t, { zone: e });
|
|
2553
2551
|
return a = pt(l, e, a, r), a = dt(o, e, a, r), a.toJSDate();
|
|
2554
2552
|
}
|
|
@@ -2645,7 +2643,7 @@ function pt(o, l, t, e) {
|
|
|
2645
2643
|
}
|
|
2646
2644
|
return t;
|
|
2647
2645
|
}
|
|
2648
|
-
const
|
|
2646
|
+
const qn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Dn = ["onClick"], On = /* @__PURE__ */ j({
|
|
2649
2647
|
__name: "cl-ui-quick-dates-group",
|
|
2650
2648
|
props: {
|
|
2651
2649
|
dates: {},
|
|
@@ -2654,7 +2652,7 @@ const Dn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, On = ["onClick"], En =
|
|
|
2654
2652
|
emits: ["quick-date-selected"],
|
|
2655
2653
|
setup(o, { emit: l }) {
|
|
2656
2654
|
const t = l, { t: e } = ce();
|
|
2657
|
-
return (r, a) => (u(), g("div",
|
|
2655
|
+
return (r, a) => (u(), g("div", qn, [
|
|
2658
2656
|
(u(!0), g(K, null, _(r.dates, (i, d) => {
|
|
2659
2657
|
var b, n;
|
|
2660
2658
|
return u(), g("button", {
|
|
@@ -2666,11 +2664,11 @@ const Dn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, On = ["onClick"], En =
|
|
|
2666
2664
|
onClick: (s) => t("quick-date-selected", i)
|
|
2667
2665
|
}, [
|
|
2668
2666
|
h("span", null, R(m(e)(i.translationKey)), 1)
|
|
2669
|
-
], 10,
|
|
2667
|
+
], 10, Dn);
|
|
2670
2668
|
}), 128))
|
|
2671
2669
|
]));
|
|
2672
2670
|
}
|
|
2673
|
-
}),
|
|
2671
|
+
}), En = [
|
|
2674
2672
|
"today",
|
|
2675
2673
|
"this week",
|
|
2676
2674
|
"this month",
|
|
@@ -2762,7 +2760,7 @@ const Dn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, On = ["onClick"], En =
|
|
|
2762
2760
|
...nl,
|
|
2763
2761
|
...sl,
|
|
2764
2762
|
...Qe
|
|
2765
|
-
],
|
|
2763
|
+
], An = { class: "cl-p-2 cl-pt-0" }, Mn = {
|
|
2766
2764
|
key: 0,
|
|
2767
2765
|
class: "cl-mt-2 cl-opacity-20"
|
|
2768
2766
|
}, mt = /* @__PURE__ */ j({
|
|
@@ -2797,18 +2795,18 @@ const Dn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, On = ["onClick"], En =
|
|
|
2797
2795
|
}
|
|
2798
2796
|
return i;
|
|
2799
2797
|
});
|
|
2800
|
-
return (i, d) => (u(), g("div",
|
|
2798
|
+
return (i, d) => (u(), g("div", An, [
|
|
2801
2799
|
h("div", null, R(m(r)("quickDates.quickDatesHeader")), 1),
|
|
2802
2800
|
(u(!0), g(K, null, _(a.value, (b, n) => (u(), g("div", {
|
|
2803
2801
|
key: n,
|
|
2804
2802
|
class: "cl-pt-2"
|
|
2805
2803
|
}, [
|
|
2806
|
-
q(
|
|
2804
|
+
q(On, {
|
|
2807
2805
|
dates: b,
|
|
2808
2806
|
"selected-quick-date": i.selectedQuickDate,
|
|
2809
2807
|
onQuickDateSelected: d[0] || (d[0] = (s) => e("quick-date-selected", s))
|
|
2810
2808
|
}, null, 8, ["dates", "selected-quick-date"]),
|
|
2811
|
-
n < a.value.length - 1 ? (u(), g("div",
|
|
2809
|
+
n < a.value.length - 1 ? (u(), g("div", Mn)) : U("", !0)
|
|
2812
2810
|
]))), 128))
|
|
2813
2811
|
]));
|
|
2814
2812
|
}
|
|
@@ -2980,13 +2978,13 @@ const Dn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, On = ["onClick"], En =
|
|
|
2980
2978
|
} : void 0
|
|
2981
2979
|
]), 1032, ["show-required-asterisk"]));
|
|
2982
2980
|
}
|
|
2983
|
-
}),
|
|
2981
|
+
}), Vn = [
|
|
2984
2982
|
"text",
|
|
2985
2983
|
"email",
|
|
2986
2984
|
"tel",
|
|
2987
2985
|
"password",
|
|
2988
2986
|
"search"
|
|
2989
|
-
],
|
|
2987
|
+
], In = /* @__PURE__ */ j({
|
|
2990
2988
|
inheritAttrs: !1,
|
|
2991
2989
|
__name: "cl-ui-input-text-area",
|
|
2992
2990
|
props: /* @__PURE__ */ de({
|
|
@@ -3073,7 +3071,7 @@ const Dn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, On = ["onClick"], En =
|
|
|
3073
3071
|
} : void 0
|
|
3074
3072
|
]), 1032, ["errors", "show-required-asterisk"]));
|
|
3075
3073
|
}
|
|
3076
|
-
}),
|
|
3074
|
+
}), Nn = { class: "cl-gap-1 cl-grid cl-grid-cols-[auto_1fr_auto_auto] cl-pt-0.5 cl-w-full" }, Rn = ["disabled"], Un = { class: "cl-max-w-max" }, zn = { class: "cl-flex cl-flex-col cl-gap-1 cl-w-full" }, Bn = ["min", "disabled", "required", "step", "max"], Ln = { class: "cl-bg-white cl-border cl-border-grey-2 cl-leading-none cl-rounded-full cl-text-center cl-text-xs" }, Fn = ["disabled"], jn = ["disabled", "title"], Pn = /* @__PURE__ */ j({
|
|
3077
3075
|
inheritAttrs: !1,
|
|
3078
3076
|
__name: "cl-ui-input-range",
|
|
3079
3077
|
props: /* @__PURE__ */ de({
|
|
@@ -3114,14 +3112,14 @@ const Dn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, On = ["onClick"], En =
|
|
|
3114
3112
|
"show-required-asterisk": c.required
|
|
3115
3113
|
}, ye({
|
|
3116
3114
|
default: V(() => [
|
|
3117
|
-
h("div",
|
|
3115
|
+
h("div", Nn, [
|
|
3118
3116
|
h("button", {
|
|
3119
3117
|
disabled: c.disabled,
|
|
3120
3118
|
class: "active:cl-bg-grey-0 cl-bg-white cl-border cl-border-grey-2 cl-leading-none cl-min-w-[26px] cl-p-[5px] cl-rounded-full cl-shadow cl-text-xs cl-transition-colors disabled:cl-bg-grey-1 hover:cl-bg-off-white",
|
|
3121
3119
|
onClick: p[0] || (p[0] = (y) => s(c.min))
|
|
3122
|
-
}, R(m(ml)(c.min, c.precision)), 9,
|
|
3123
|
-
h("div",
|
|
3124
|
-
se(h("div",
|
|
3120
|
+
}, R(m(ml)(c.min, c.precision)), 9, Rn),
|
|
3121
|
+
h("div", Un, [
|
|
3122
|
+
se(h("div", zn, [
|
|
3125
3123
|
se(h("input", Q({
|
|
3126
3124
|
ref_key: "sliderRef",
|
|
3127
3125
|
ref: a,
|
|
@@ -3134,7 +3132,7 @@ const Dn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, On = ["onClick"], En =
|
|
|
3134
3132
|
required: c.required,
|
|
3135
3133
|
step: 1 / Math.pow(10, c.precision),
|
|
3136
3134
|
max: c.max
|
|
3137
|
-
}), null, 16,
|
|
3135
|
+
}), null, 16, Bn), [
|
|
3138
3136
|
[
|
|
3139
3137
|
Sl,
|
|
3140
3138
|
e.value,
|
|
@@ -3142,7 +3140,7 @@ const Dn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, On = ["onClick"], En =
|
|
|
3142
3140
|
{ number: !0 }
|
|
3143
3141
|
]
|
|
3144
3142
|
]),
|
|
3145
|
-
h("div",
|
|
3143
|
+
h("div", Ln, R(m(ml)(m(n), c.precision)), 1)
|
|
3146
3144
|
], 512), [
|
|
3147
3145
|
[fe, b.value === !1]
|
|
3148
3146
|
]),
|
|
@@ -3166,7 +3164,7 @@ const Dn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, On = ["onClick"], En =
|
|
|
3166
3164
|
disabled: c.disabled,
|
|
3167
3165
|
class: "active:cl-bg-grey-0 cl-bg-white cl-border cl-border-grey-2 cl-leading-none cl-min-w-[26px] cl-p-[5px] cl-rounded-full cl-shadow cl-text-xs cl-transition-colors disabled:cl-bg-grey-1 hover:cl-bg-off-white",
|
|
3168
3166
|
onClick: p[3] || (p[3] = (y) => s(c.max))
|
|
3169
|
-
}, R(m(ml)(c.max, c.precision)), 9,
|
|
3167
|
+
}, R(m(ml)(c.max, c.precision)), 9, Fn),
|
|
3170
3168
|
h("button", {
|
|
3171
3169
|
disabled: c.disabled,
|
|
3172
3170
|
class: "active:cl-bg-grey-0 cl-bg-white cl-border cl-border-grey-2 cl-leading-none cl-min-w-0 cl-p-[5px] cl-rounded-full cl-shadow cl-text-xs cl-transition-colors disabled:cl-bg-grey-1 hover:cl-bg-off-white",
|
|
@@ -3174,7 +3172,7 @@ const Dn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, On = ["onClick"], En =
|
|
|
3174
3172
|
onClick: p[4] || (p[4] = (y) => b.value = !b.value)
|
|
3175
3173
|
}, [
|
|
3176
3174
|
q(w, { icon: "ph:arrows-left-right-thin" })
|
|
3177
|
-
], 8,
|
|
3175
|
+
], 8, jn)
|
|
3178
3176
|
])
|
|
3179
3177
|
]),
|
|
3180
3178
|
_: 2
|
|
@@ -3196,11 +3194,11 @@ const Dn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, On = ["onClick"], En =
|
|
|
3196
3194
|
]), 1032, ["errors", "show-required-asterisk"]);
|
|
3197
3195
|
};
|
|
3198
3196
|
}
|
|
3199
|
-
}),
|
|
3197
|
+
}), Hn = /* @__PURE__ */ Te(Pn, [["__scopeId", "data-v-d2902c00"]]), vt = [
|
|
3200
3198
|
"date",
|
|
3201
3199
|
"datetime",
|
|
3202
3200
|
"time"
|
|
3203
|
-
],
|
|
3201
|
+
], Gn = [
|
|
3204
3202
|
"auto",
|
|
3205
3203
|
"auto-start",
|
|
3206
3204
|
"auto-end",
|
|
@@ -3212,13 +3210,13 @@ const Dn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, On = ["onClick"], En =
|
|
|
3212
3210
|
"right-end",
|
|
3213
3211
|
"left-start",
|
|
3214
3212
|
"left-end"
|
|
3215
|
-
],
|
|
3213
|
+
], Zn = {
|
|
3216
3214
|
key: 1,
|
|
3217
3215
|
class: "cl-relative"
|
|
3218
|
-
},
|
|
3216
|
+
}, Wn = ["value", "disabled", "placeholder"], Kn = {
|
|
3219
3217
|
key: 0,
|
|
3220
3218
|
class: "action-icon cl-absolute cl-bg-transparent cl-flex cl-right-2 cl-text-grey-4 cl-top-3.5"
|
|
3221
|
-
},
|
|
3219
|
+
}, Qn = /* @__PURE__ */ j({
|
|
3222
3220
|
inheritAttrs: !1,
|
|
3223
3221
|
__name: "cl-ui-calendar-input",
|
|
3224
3222
|
props: {
|
|
@@ -3260,7 +3258,7 @@ const Dn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, On = ["onClick"], En =
|
|
|
3260
3258
|
"date-range-selected": !!d.rangeSelected,
|
|
3261
3259
|
onTogglePopover: b[0] || (b[0] = (n) => d.$emit("togglePopover")),
|
|
3262
3260
|
onClear: b[1] || (b[1] = (n) => d.$emit("clear"))
|
|
3263
|
-
}), null, 16, ["disabled", "required", "date-range-selected"])) : (u(), g("div",
|
|
3261
|
+
}), null, 16, ["disabled", "required", "date-range-selected"])) : (u(), g("div", Zn, [
|
|
3264
3262
|
h("input", Q({
|
|
3265
3263
|
ref_key: "element",
|
|
3266
3264
|
ref: e
|
|
@@ -3269,13 +3267,13 @@ const Dn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, On = ["onClick"], En =
|
|
|
3269
3267
|
type: "text",
|
|
3270
3268
|
disabled: d.disabled,
|
|
3271
3269
|
placeholder: i.value
|
|
3272
|
-
}, Vt(d.events, !0)), null, 16,
|
|
3270
|
+
}, Vt(d.events, !0)), null, 16, Wn),
|
|
3273
3271
|
q(m(le), {
|
|
3274
3272
|
class: "cl-absolute cl-bg-transparent cl-cursor-text cl-left-2 cl-text-grey-4 cl-top-3.5 icon",
|
|
3275
3273
|
icon: d.type === "time" ? "ph-clock" : "ph:calendar",
|
|
3276
3274
|
onClick: r
|
|
3277
3275
|
}, null, 8, ["icon"]),
|
|
3278
|
-
d.disabled ? U("", !0) : (u(), g("div",
|
|
3276
|
+
d.disabled ? U("", !0) : (u(), g("div", Kn, [
|
|
3279
3277
|
d.type !== "time" ? (u(), L(m(le), {
|
|
3280
3278
|
key: 0,
|
|
3281
3279
|
class: "cl-cursor-pointer hover:cl-text-link-light",
|
|
@@ -3291,7 +3289,7 @@ const Dn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, On = ["onClick"], En =
|
|
|
3291
3289
|
]))
|
|
3292
3290
|
]));
|
|
3293
3291
|
}
|
|
3294
|
-
}), Ye = /* @__PURE__ */ Te(
|
|
3292
|
+
}), Ye = /* @__PURE__ */ Te(Qn, [["__scopeId", "data-v-72ad6b70"]]), ht = /* @__PURE__ */ j({
|
|
3295
3293
|
inheritAttrs: !1,
|
|
3296
3294
|
__name: "cl-ui-input-datetime",
|
|
3297
3295
|
props: /* @__PURE__ */ de({
|
|
@@ -3327,7 +3325,7 @@ const Dn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, On = ["onClick"], En =
|
|
|
3327
3325
|
e.minDate,
|
|
3328
3326
|
e.maxDate
|
|
3329
3327
|
], () => {
|
|
3330
|
-
e.type !== "time" && (d.value instanceof Date || d.value === null) && (d.value =
|
|
3328
|
+
e.type !== "time" && (d.value instanceof Date || d.value === null) && (d.value = Sn(e.minDate, e.maxDate, d.value, i.value, e.type));
|
|
3331
3329
|
}), l({
|
|
3332
3330
|
focus() {
|
|
3333
3331
|
var f;
|
|
@@ -3428,7 +3426,7 @@ const Dn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, On = ["onClick"], En =
|
|
|
3428
3426
|
D(r.$slots, "default", me(be({ toggleModalInput: e })))
|
|
3429
3427
|
], 16));
|
|
3430
3428
|
}
|
|
3431
|
-
}),
|
|
3429
|
+
}), Yn = ["placeholder", "value", "disabled", "onKeydown"], Jn = ["disabled"], Xn = ["id", "tabindex", "inert", "onKeydown"], wl = /* @__PURE__ */ j({
|
|
3432
3430
|
inheritAttrs: !1,
|
|
3433
3431
|
__name: "cl-ui-select",
|
|
3434
3432
|
props: /* @__PURE__ */ de({
|
|
@@ -3565,7 +3563,7 @@ const Dn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, On = ["onClick"], En =
|
|
|
3565
3563
|
A(), G.target.blur();
|
|
3566
3564
|
}, ["stop", "prevent"]), ["enter"]))
|
|
3567
3565
|
]
|
|
3568
|
-
}), null, 16,
|
|
3566
|
+
}), null, 16, Yn),
|
|
3569
3567
|
h("div", {
|
|
3570
3568
|
class: "cl-flex cl-items-center cl-px-2 cl-py-1 cl-relative cl-text-grey-3 cl-z-10",
|
|
3571
3569
|
disabled: I.disabled,
|
|
@@ -3574,7 +3572,7 @@ const Dn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, On = ["onClick"], En =
|
|
|
3574
3572
|
q(W, {
|
|
3575
3573
|
icon: i.value ? "ph:caret-up-bold" : "ph:caret-down-bold"
|
|
3576
3574
|
}, null, 8, ["icon"])
|
|
3577
|
-
], 8,
|
|
3575
|
+
], 8, Jn)
|
|
3578
3576
|
]),
|
|
3579
3577
|
_: 1
|
|
3580
3578
|
}, 8, ["class"])) : U("", !0)
|
|
@@ -3621,7 +3619,7 @@ const Dn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, On = ["onClick"], En =
|
|
|
3621
3619
|
}, 1032, ["id", "disabled", "is-highlighted", "is-selected", "onSelect"]))
|
|
3622
3620
|
])
|
|
3623
3621
|
]))), 128))
|
|
3624
|
-
], 16,
|
|
3622
|
+
], 16, Xn)) : U("", !0)
|
|
3625
3623
|
], 2)
|
|
3626
3624
|
]),
|
|
3627
3625
|
_: 2
|
|
@@ -3659,7 +3657,7 @@ const Dn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, On = ["onClick"], En =
|
|
|
3659
3657
|
D(e.$slots, "default")
|
|
3660
3658
|
], 2));
|
|
3661
3659
|
}
|
|
3662
|
-
}),
|
|
3660
|
+
}), xn = [
|
|
3663
3661
|
"string",
|
|
3664
3662
|
"boolean",
|
|
3665
3663
|
"number",
|
|
@@ -3672,7 +3670,7 @@ const Dn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, On = ["onClick"], En =
|
|
|
3672
3670
|
function yt(o) {
|
|
3673
3671
|
return typeof o.caption == "string" && typeof o.name == "string" && typeof o.type == "string";
|
|
3674
3672
|
}
|
|
3675
|
-
function
|
|
3673
|
+
function _n(o) {
|
|
3676
3674
|
let l = Array.isArray(o);
|
|
3677
3675
|
if (l) {
|
|
3678
3676
|
for (const t of o)
|
|
@@ -3683,12 +3681,12 @@ function es(o) {
|
|
|
3683
3681
|
}
|
|
3684
3682
|
return l;
|
|
3685
3683
|
}
|
|
3686
|
-
const
|
|
3684
|
+
const es = [
|
|
3687
3685
|
"ellipsis",
|
|
3688
3686
|
"wrap-text"
|
|
3689
3687
|
];
|
|
3690
3688
|
var ne = /* @__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))(ne || {});
|
|
3691
|
-
const
|
|
3689
|
+
const ls = [
|
|
3692
3690
|
"equal",
|
|
3693
3691
|
"notequal",
|
|
3694
3692
|
"contains",
|
|
@@ -3701,24 +3699,24 @@ const ts = [
|
|
|
3701
3699
|
"equalorgreaterthan",
|
|
3702
3700
|
"andcontains"
|
|
3703
3701
|
];
|
|
3704
|
-
function
|
|
3702
|
+
function ts(o) {
|
|
3705
3703
|
return typeof o.filterOnColumn == "string" && typeof o.filterOperation == "number" && typeof o.filterValue == "string";
|
|
3706
3704
|
}
|
|
3707
|
-
function
|
|
3705
|
+
function os(o) {
|
|
3708
3706
|
return o === null || typeof o.sortByAscending == "boolean" && typeof o.sortOnColumn == "string";
|
|
3709
3707
|
}
|
|
3710
|
-
function
|
|
3711
|
-
let l = typeof o.filters == "object" && Array.isArray(o.filters) && typeof o.pageNumber == "number" && typeof o.pageSize == "number" && typeof o.sort == "object" &&
|
|
3708
|
+
function as(o) {
|
|
3709
|
+
let l = typeof o.filters == "object" && Array.isArray(o.filters) && typeof o.pageNumber == "number" && typeof o.pageSize == "number" && typeof o.sort == "object" && os(o.sort);
|
|
3712
3710
|
if (l) {
|
|
3713
3711
|
for (const t of o.filters)
|
|
3714
|
-
if (!
|
|
3712
|
+
if (!ts(t)) {
|
|
3715
3713
|
l = !1;
|
|
3716
3714
|
break;
|
|
3717
3715
|
}
|
|
3718
3716
|
}
|
|
3719
3717
|
return l;
|
|
3720
3718
|
}
|
|
3721
|
-
function
|
|
3719
|
+
function ns(o, l) {
|
|
3722
3720
|
let t = typeof o.results == "object" && Array.isArray(o.results) && typeof o.totalRecords == "number";
|
|
3723
3721
|
if (t) {
|
|
3724
3722
|
for (const e of o.results)
|
|
@@ -3729,7 +3727,7 @@ function ss(o, l) {
|
|
|
3729
3727
|
}
|
|
3730
3728
|
return t;
|
|
3731
3729
|
}
|
|
3732
|
-
const
|
|
3730
|
+
const ss = {
|
|
3733
3731
|
method: "equal",
|
|
3734
3732
|
icon: "mdi:equal",
|
|
3735
3733
|
description: "Equals",
|
|
@@ -3742,12 +3740,12 @@ const rs = {
|
|
|
3742
3740
|
"list"
|
|
3743
3741
|
],
|
|
3744
3742
|
key: "equal"
|
|
3745
|
-
},
|
|
3743
|
+
}, rs = {
|
|
3746
3744
|
method: "contains",
|
|
3747
3745
|
icon: "mdi:format-letter-matches",
|
|
3748
3746
|
description: "Contains",
|
|
3749
3747
|
allowedTypes: ["string"]
|
|
3750
|
-
},
|
|
3748
|
+
}, is = {
|
|
3751
3749
|
method: "lessthan",
|
|
3752
3750
|
icon: "mdi:less-than",
|
|
3753
3751
|
description: "Before",
|
|
@@ -3757,7 +3755,7 @@ const rs = {
|
|
|
3757
3755
|
],
|
|
3758
3756
|
key: "before"
|
|
3759
3757
|
}, Pl = [
|
|
3760
|
-
|
|
3758
|
+
rs,
|
|
3761
3759
|
{
|
|
3762
3760
|
method: "notcontains",
|
|
3763
3761
|
icon: "mdi:format-letter-spacing-variant",
|
|
@@ -3776,7 +3774,7 @@ const rs = {
|
|
|
3776
3774
|
description: "Ends with",
|
|
3777
3775
|
allowedTypes: ["string"]
|
|
3778
3776
|
},
|
|
3779
|
-
|
|
3777
|
+
ss,
|
|
3780
3778
|
{
|
|
3781
3779
|
method: "notequal",
|
|
3782
3780
|
icon: "mdi:not-equal",
|
|
@@ -3789,7 +3787,7 @@ const rs = {
|
|
|
3789
3787
|
],
|
|
3790
3788
|
key: "notequal"
|
|
3791
3789
|
},
|
|
3792
|
-
|
|
3790
|
+
is,
|
|
3793
3791
|
{
|
|
3794
3792
|
method: "greaterthan",
|
|
3795
3793
|
icon: "mdi:greater-than",
|
|
@@ -3844,7 +3842,7 @@ const rs = {
|
|
|
3844
3842
|
description: "Less than",
|
|
3845
3843
|
allowedTypes: ["number"]
|
|
3846
3844
|
}
|
|
3847
|
-
],
|
|
3845
|
+
], us = { 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" }, cs = { class: "cl-p-2 cl-select-none" }, ds = ["onClick"], ps = /* @__PURE__ */ j({
|
|
3848
3846
|
__name: "cl-ui-grid-method-selector",
|
|
3849
3847
|
props: {
|
|
3850
3848
|
filter: {},
|
|
@@ -3890,7 +3888,7 @@ const rs = {
|
|
|
3890
3888
|
ref: b,
|
|
3891
3889
|
class: "cl-group cl-inline cl-relative cl-w-auto"
|
|
3892
3890
|
}, [
|
|
3893
|
-
h("div",
|
|
3891
|
+
h("div", us, [
|
|
3894
3892
|
i.value ? (u(), L(m(le), {
|
|
3895
3893
|
key: 0,
|
|
3896
3894
|
icon: i.value.icon,
|
|
@@ -3907,7 +3905,7 @@ const rs = {
|
|
|
3907
3905
|
"cl-left-0": s.value
|
|
3908
3906
|
}])
|
|
3909
3907
|
}, [
|
|
3910
|
-
h("strong",
|
|
3908
|
+
h("strong", cs, R(m(r)("grid.availableMethods")), 1),
|
|
3911
3909
|
(u(!0), g(K, null, _(a.value, (w, y) => {
|
|
3912
3910
|
var f;
|
|
3913
3911
|
return u(), g("span", {
|
|
@@ -3922,7 +3920,7 @@ const rs = {
|
|
|
3922
3920
|
icon: w.icon,
|
|
3923
3921
|
class: "cl-float-right cl-text-grey-4 cl-text-sm"
|
|
3924
3922
|
}, null, 8, ["icon"])
|
|
3925
|
-
], 10,
|
|
3923
|
+
], 10, ds);
|
|
3926
3924
|
}), 128))
|
|
3927
3925
|
], 2)
|
|
3928
3926
|
], 512));
|
|
@@ -3943,19 +3941,19 @@ const rs = {
|
|
|
3943
3941
|
name: qe.global.t("grid.false"),
|
|
3944
3942
|
value: "false"
|
|
3945
3943
|
}
|
|
3946
|
-
]),
|
|
3944
|
+
]), fs = {
|
|
3947
3945
|
key: 1,
|
|
3948
3946
|
class: "cl-w-full"
|
|
3949
|
-
},
|
|
3947
|
+
}, ms = {
|
|
3950
3948
|
key: 2,
|
|
3951
3949
|
class: "cl-w-full"
|
|
3952
|
-
},
|
|
3950
|
+
}, gs = {
|
|
3953
3951
|
key: 3,
|
|
3954
3952
|
class: "cl-w-full"
|
|
3955
|
-
},
|
|
3953
|
+
}, vs = {
|
|
3956
3954
|
key: 4,
|
|
3957
3955
|
class: "cl-w-full"
|
|
3958
|
-
},
|
|
3956
|
+
}, hs = /* @__PURE__ */ j({
|
|
3959
3957
|
__name: "cl-ui-grid-filter-input",
|
|
3960
3958
|
props: {
|
|
3961
3959
|
loading: { type: Boolean },
|
|
@@ -4210,7 +4208,7 @@ const rs = {
|
|
|
4210
4208
|
}, 1032, ["is-selected", "is-highlighted", "onSelect"])
|
|
4211
4209
|
]),
|
|
4212
4210
|
_: 1
|
|
4213
|
-
}, 8, ["id", "list", "disabled", "model-value"])) : b.value ? (u(), g("div",
|
|
4211
|
+
}, 8, ["id", "list", "disabled", "model-value"])) : b.value ? (u(), g("div", fs, [
|
|
4214
4212
|
q(ht, {
|
|
4215
4213
|
id: `${m(F)}-${T.column.name}`,
|
|
4216
4214
|
"model-value": oe.value,
|
|
@@ -4221,7 +4219,7 @@ const rs = {
|
|
|
4221
4219
|
"popover-placement": "bottom-start",
|
|
4222
4220
|
"onUpdate:modelValue": H[1] || (H[1] = (v) => ee(null, v ?? ""))
|
|
4223
4221
|
}, null, 8, ["id", "model-value", "time-zone", "readonly", "type"])
|
|
4224
|
-
])) : n.value ? (u(), g("div",
|
|
4222
|
+
])) : n.value ? (u(), g("div", ms, [
|
|
4225
4223
|
q(gt, {
|
|
4226
4224
|
id: `${m(F)}-${T.column.name}`,
|
|
4227
4225
|
"model-value": G.value,
|
|
@@ -4232,7 +4230,7 @@ const rs = {
|
|
|
4232
4230
|
"popover-placement": "bottom-start",
|
|
4233
4231
|
"onUpdate:modelValue": H[2] || (H[2] = (v) => z(v))
|
|
4234
4232
|
}, null, 8, ["id", "model-value", "disabled", "time-zone", "quick-date-scope"])
|
|
4235
|
-
])) : T.column.type === "number" || T.column.type === "slot" && T.column.slotType === "number" ? (u(), g("div",
|
|
4233
|
+
])) : T.column.type === "number" || T.column.type === "slot" && T.column.slotType === "number" ? (u(), g("div", gs, [
|
|
4236
4234
|
q(ll, {
|
|
4237
4235
|
id: `${m(F)}-${T.column.name}`,
|
|
4238
4236
|
"model-value": W.value === "" || isNaN(+W.value) ? null : +W.value,
|
|
@@ -4249,7 +4247,7 @@ const rs = {
|
|
|
4249
4247
|
])),
|
|
4250
4248
|
_: 1
|
|
4251
4249
|
}, 8, ["id", "model-value", "format", "precision", "readonly"])
|
|
4252
|
-
])) : T.column.type === "string" || T.column.type === "slot" && T.column.slotType === "string" ? (u(), g("div",
|
|
4250
|
+
])) : T.column.type === "string" || T.column.type === "slot" && T.column.slotType === "string" ? (u(), g("div", vs, [
|
|
4253
4251
|
q(ze, {
|
|
4254
4252
|
id: `${m(F)}-${T.column.name}`,
|
|
4255
4253
|
modelValue: X.value,
|
|
@@ -4294,7 +4292,7 @@ const rs = {
|
|
|
4294
4292
|
]),
|
|
4295
4293
|
_: 1
|
|
4296
4294
|
}, 8, ["id", "list", "model-value", "disabled"])) : U("", !0),
|
|
4297
|
-
n.value ? U("", !0) : (u(), L(
|
|
4295
|
+
n.value ? U("", !0) : (u(), L(ps, {
|
|
4298
4296
|
key: 6,
|
|
4299
4297
|
filter: I.value,
|
|
4300
4298
|
"onUpdate:filter": H[7] || (H[7] = (v) => I.value = v),
|
|
@@ -4305,7 +4303,7 @@ const rs = {
|
|
|
4305
4303
|
}, null, 8, ["filter", "loading", "column", "default-operation"]))
|
|
4306
4304
|
], 2)) : U("", !0);
|
|
4307
4305
|
}
|
|
4308
|
-
}), Gl = /* @__PURE__ */ Te(
|
|
4306
|
+
}), Gl = /* @__PURE__ */ Te(hs, [["__scopeId", "data-v-a6f8df27"]]), bs = { key: 1 }, ys = /* @__PURE__ */ j({
|
|
4309
4307
|
__name: "cl-ui-grid-filter",
|
|
4310
4308
|
props: {
|
|
4311
4309
|
loading: { type: Boolean },
|
|
@@ -4324,7 +4322,7 @@ const rs = {
|
|
|
4324
4322
|
return (e, r) => e.initialLoad && m(Xe)(e.column) ? (u(), L(m(ql), {
|
|
4325
4323
|
key: 0,
|
|
4326
4324
|
class: "cl-h-[34px]"
|
|
4327
|
-
})) : e.bulkEditMode && e.column.editable ? (u(), g("div",
|
|
4325
|
+
})) : e.bulkEditMode && e.column.editable ? (u(), g("div", bs, [
|
|
4328
4326
|
D(e.$slots, `${e.column.name}BulkEdit`, me(be({
|
|
4329
4327
|
column: e.column
|
|
4330
4328
|
})), () => [
|
|
@@ -4354,7 +4352,7 @@ const rs = {
|
|
|
4354
4352
|
onPerformDataRequest: r[3] || (r[3] = (a) => e.$emit("perform-data-request"))
|
|
4355
4353
|
}, null, 8, ["loading", "filter", "column", "time-zone", "quick-date-scope", "header-display-timezone", "options"])) : U("", !0);
|
|
4356
4354
|
}
|
|
4357
|
-
}),
|
|
4355
|
+
}), ws = ["onClick"], ks = { key: 1 }, $s = ["onClick"], Ts = { class: "cl-font-normal cl-mr-1" }, Cs = /* @__PURE__ */ j({
|
|
4358
4356
|
__name: "cl-ui-grid-header",
|
|
4359
4357
|
props: {
|
|
4360
4358
|
request: {},
|
|
@@ -4413,7 +4411,7 @@ const rs = {
|
|
|
4413
4411
|
onClick: (w) => m(ol)(c) && n.loading === !1 ? d(c.field) : () => {
|
|
4414
4412
|
}
|
|
4415
4413
|
}, [
|
|
4416
|
-
n.initialLoad ? (u(), L(m(yl), { key: 0 })) : (u(), g("div",
|
|
4414
|
+
n.initialLoad ? (u(), L(m(yl), { key: 0 })) : (u(), g("div", ks, [
|
|
4417
4415
|
ue(R(m(r)(c.caption)) + " ", 1),
|
|
4418
4416
|
se(q(m(le), {
|
|
4419
4417
|
class: "cl-inline-block",
|
|
@@ -4428,7 +4426,7 @@ const rs = {
|
|
|
4428
4426
|
[fe, i(c, !1)]
|
|
4429
4427
|
])
|
|
4430
4428
|
]))
|
|
4431
|
-
], 10,
|
|
4429
|
+
], 10, ws))), 128))
|
|
4432
4430
|
], 2),
|
|
4433
4431
|
h("tr", {
|
|
4434
4432
|
class: O(["cl-border cl-border-grey-2 cl-flex cl-flex-wrap cl-p-2 lg:cl-border-none lg:cl-p-0 lg:cl-table-row", {
|
|
@@ -4469,7 +4467,7 @@ const rs = {
|
|
|
4469
4467
|
}]),
|
|
4470
4468
|
onClick: (w) => n.loading === !1 ? d(c.field) : void 0
|
|
4471
4469
|
}, [
|
|
4472
|
-
h("span",
|
|
4470
|
+
h("span", Ts, R(m(r)("grid.sortBy")), 1),
|
|
4473
4471
|
i(c, !0) ? (u(), L(m(le), {
|
|
4474
4472
|
key: 0,
|
|
4475
4473
|
class: "cl-cursor-pointer cl-inline-block",
|
|
@@ -4483,8 +4481,8 @@ const rs = {
|
|
|
4483
4481
|
class: "cl-cursor-pointer cl-inline-block",
|
|
4484
4482
|
icon: "ph:minus"
|
|
4485
4483
|
}))
|
|
4486
|
-
], 10,
|
|
4487
|
-
q(
|
|
4484
|
+
], 10, $s)) : U("", !0),
|
|
4485
|
+
q(ys, {
|
|
4488
4486
|
class: "cl-col-span-4 cl-min-w-[100px]",
|
|
4489
4487
|
loading: n.loading,
|
|
4490
4488
|
"initial-load": n.initialLoad,
|
|
@@ -4509,7 +4507,7 @@ const rs = {
|
|
|
4509
4507
|
], 2)
|
|
4510
4508
|
], 2));
|
|
4511
4509
|
}
|
|
4512
|
-
}),
|
|
4510
|
+
}), Ss = { class: "cl-flex cl-mb-2" }, qs = { class: "cl-basis-full cl-grow" }, Ds = /* @__PURE__ */ j({
|
|
4513
4511
|
__name: "cl-ui-grid-search",
|
|
4514
4512
|
props: /* @__PURE__ */ de({
|
|
4515
4513
|
columns: {},
|
|
@@ -4551,8 +4549,8 @@ const rs = {
|
|
|
4551
4549
|
}), (c, p) => {
|
|
4552
4550
|
const w = Se("icon");
|
|
4553
4551
|
return D(c.$slots, "search", me(be({ searchValue: r.value, performSearch: d })), () => [
|
|
4554
|
-
h("div",
|
|
4555
|
-
h("div",
|
|
4552
|
+
h("div", Ss, [
|
|
4553
|
+
h("div", qs, [
|
|
4556
4554
|
q(ze, {
|
|
4557
4555
|
ref_key: "gridSearchInputRef",
|
|
4558
4556
|
ref: s,
|
|
@@ -4582,7 +4580,7 @@ const rs = {
|
|
|
4582
4580
|
]);
|
|
4583
4581
|
};
|
|
4584
4582
|
}
|
|
4585
|
-
}),
|
|
4583
|
+
}), Os = { class: "cl-fixed cl-flex cl-h-full cl-justify-end cl-right-0 cl-shadow-lg cl-top-0 cl-z-40" }, Es = { 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" }, As = { class: "cl-mb-4 cl-text-2xl cl-text-off-white" }, Ms = { class: "cl-border-grey-3 cl-border-t cl-flex cl-flex-wrap cl-text-sm cl-w-full" }, Vs = { class: "cl-border-b cl-border-grey-2 cl-flex cl-py-2 cl-text-sm cl-w-full" }, Is = { class: "cl-flex-1 cl-py-2" }, Ns = { class: "cl-py-2 cl-w-1/4" }, Rs = { class: "cl-py-2 cl-w-1/5" }, Us = { class: "cl-flex-1 cl-py-2" }, zs = { class: "cl-py-2 cl-w-1/4" }, Bs = { class: "cl-py-2 cl-text-off-white cl-w-1/5" }, Ls = { key: 1 }, Fs = /* @__PURE__ */ j({
|
|
4586
4584
|
inheritAttrs: !1,
|
|
4587
4585
|
__name: "cl-ui-grid-view-manager",
|
|
4588
4586
|
props: {
|
|
@@ -4622,33 +4620,33 @@ const rs = {
|
|
|
4622
4620
|
(u(), L(Tl, { to: "body" }, [
|
|
4623
4621
|
q(Ne, { name: "slide-left" }, {
|
|
4624
4622
|
default: V(() => [
|
|
4625
|
-
se(h("div",
|
|
4626
|
-
h("div",
|
|
4623
|
+
se(h("div", Os, [
|
|
4624
|
+
h("div", Es, [
|
|
4627
4625
|
q(m(le), {
|
|
4628
4626
|
class: "cl-absolute cl-cursor-pointer cl-right-3 cl-text-off-white cl-top-3",
|
|
4629
4627
|
icon: "ph:x",
|
|
4630
4628
|
size: 16,
|
|
4631
4629
|
onClick: c[1] || (c[1] = (p) => a.value = !1)
|
|
4632
4630
|
}),
|
|
4633
|
-
h("h3",
|
|
4634
|
-
h("ul",
|
|
4635
|
-
h("li",
|
|
4636
|
-
h("strong",
|
|
4637
|
-
h("strong",
|
|
4638
|
-
h("strong",
|
|
4631
|
+
h("h3", As, R(m(r)("grid.manageView")), 1),
|
|
4632
|
+
h("ul", Ms, [
|
|
4633
|
+
h("li", Vs, [
|
|
4634
|
+
h("strong", Is, R(m(r)("grid.column")), 1),
|
|
4635
|
+
h("strong", Ns, R(m(r)("grid.visible")), 1),
|
|
4636
|
+
h("strong", Rs, R(m(r)("grid.order")), 1)
|
|
4639
4637
|
]),
|
|
4640
4638
|
(u(!0), g(K, null, _(i.value, (p, w) => (u(), g("li", {
|
|
4641
4639
|
key: w,
|
|
4642
4640
|
class: "cl-border-b cl-border-grey-2 cl-flex cl-py-2 cl-text-sm cl-w-full"
|
|
4643
4641
|
}, [
|
|
4644
|
-
h("div",
|
|
4645
|
-
h("div",
|
|
4642
|
+
h("div", Us, R(p.viewManagerCaption ? m(r)(p.viewManagerCaption) : m(r)(p.caption)), 1),
|
|
4643
|
+
h("div", zs, [
|
|
4646
4644
|
q(cl, {
|
|
4647
4645
|
"model-value": p.visible === void 0 || p.visible === !0,
|
|
4648
4646
|
"onUpdate:modelValue": (y) => b(y, p)
|
|
4649
4647
|
}, null, 8, ["model-value", "onUpdate:modelValue"])
|
|
4650
4648
|
]),
|
|
4651
|
-
h("div",
|
|
4649
|
+
h("div", Bs, [
|
|
4652
4650
|
p.visible === void 0 || p.visible === !0 ? (u(), g(K, { key: 0 }, [
|
|
4653
4651
|
w !== 0 ? (u(), L(m(le), {
|
|
4654
4652
|
key: 0,
|
|
@@ -4662,7 +4660,7 @@ const rs = {
|
|
|
4662
4660
|
icon: "ph:arrow-right",
|
|
4663
4661
|
onClick: (y) => n(p, "up")
|
|
4664
4662
|
}, null, 8, ["onClick"])) : U("", !0)
|
|
4665
|
-
], 64)) : (u(), g("em",
|
|
4663
|
+
], 64)) : (u(), g("em", Ls, R(m(r)("grid.hidden")), 1))
|
|
4666
4664
|
])
|
|
4667
4665
|
]))), 128))
|
|
4668
4666
|
])
|
|
@@ -4676,10 +4674,10 @@ const rs = {
|
|
|
4676
4674
|
]))
|
|
4677
4675
|
], 64));
|
|
4678
4676
|
}
|
|
4679
|
-
}),
|
|
4677
|
+
}), js = { class: "cl-relative cl-w-full grid-wrapper lg:cl-min-h-fit" }, Ps = {
|
|
4680
4678
|
key: 0,
|
|
4681
4679
|
class: "cl-absolute cl-flex cl-items-center cl-justify-center cl-min-h-full cl-p-28 cl-pt-0 cl-w-full"
|
|
4682
|
-
},
|
|
4680
|
+
}, Hs = { class: "cl-overflow-x-auto cl-overscroll-x-none cl-pt-1" }, Gs = /* @__PURE__ */ j({
|
|
4683
4681
|
__name: "cl-ui-grid",
|
|
4684
4682
|
props: {
|
|
4685
4683
|
columns: {},
|
|
@@ -4783,11 +4781,11 @@ const rs = {
|
|
|
4783
4781
|
var z;
|
|
4784
4782
|
return (z = ee.value) == null ? void 0 : z.focusMegaSearch();
|
|
4785
4783
|
}
|
|
4786
|
-
}), (z, X) => (u(), g("div",
|
|
4784
|
+
}), (z, X) => (u(), g("div", js, [
|
|
4787
4785
|
B.value && G.value.length > 0 ? (u(), L(m(ql), {
|
|
4788
4786
|
key: 0,
|
|
4789
4787
|
class: "cl-h-[39px] cl-mb-2"
|
|
4790
|
-
})) : G.value.length > 0 ? (u(), L(
|
|
4788
|
+
})) : G.value.length > 0 ? (u(), L(Ds, {
|
|
4791
4789
|
key: 1,
|
|
4792
4790
|
ref_key: "gridSearchRef",
|
|
4793
4791
|
ref: ee,
|
|
@@ -4804,13 +4802,13 @@ const rs = {
|
|
|
4804
4802
|
}, 8, ["search-value", "request", "columns"])) : U("", !0),
|
|
4805
4803
|
q(Ne, { name: "fade" }, {
|
|
4806
4804
|
default: V(() => [
|
|
4807
|
-
z.loading && B.value === !1 ? (u(), g("div",
|
|
4805
|
+
z.loading && B.value === !1 ? (u(), g("div", Ps, [
|
|
4808
4806
|
q(_e, { class: "after:!cl-h-20 after:!cl-w-20 cl-h-20 cl-w-20" })
|
|
4809
4807
|
])) : U("", !0)
|
|
4810
4808
|
]),
|
|
4811
4809
|
_: 1
|
|
4812
4810
|
}),
|
|
4813
|
-
q(
|
|
4811
|
+
q(ya, {
|
|
4814
4812
|
"edit-mode": S.value,
|
|
4815
4813
|
"onUpdate:editMode": X[3] || (X[3] = (J) => S.value = J),
|
|
4816
4814
|
"filter-panel-open": I.value,
|
|
@@ -4827,7 +4825,7 @@ const rs = {
|
|
|
4827
4825
|
D(z.$slots, "additional-grid-actions", me(be(J)))
|
|
4828
4826
|
]),
|
|
4829
4827
|
"view-manager": V(() => [
|
|
4830
|
-
q(
|
|
4828
|
+
q(Fs, {
|
|
4831
4829
|
columns: s.value,
|
|
4832
4830
|
"onUpdate:columns": X[2] || (X[2] = (J) => s.value = J),
|
|
4833
4831
|
loading: z.loading
|
|
@@ -4835,7 +4833,7 @@ const rs = {
|
|
|
4835
4833
|
]),
|
|
4836
4834
|
_: 3
|
|
4837
4835
|
}, 8, ["edit-mode", "filter-panel-open", "can-bulk-edit", "columns", "options", "request", "loading", "initial-load"]),
|
|
4838
|
-
h("div",
|
|
4836
|
+
h("div", Hs, [
|
|
4839
4837
|
h("table", {
|
|
4840
4838
|
class: O(["cl-delay-75 cl-min-h-[276px] cl-overflow-x-auto cl-overscroll-x-none cl-text-left cl-transition-opacity cl-w-full", {
|
|
4841
4839
|
"cl-opacity-40 cl-pointer-events-none": z.loading && B.value === !1
|
|
@@ -4852,7 +4850,7 @@ const rs = {
|
|
|
4852
4850
|
span: 1
|
|
4853
4851
|
}, null, 4))), 128))
|
|
4854
4852
|
], 2),
|
|
4855
|
-
q(
|
|
4853
|
+
q(Cs, {
|
|
4856
4854
|
request: W.value,
|
|
4857
4855
|
"onUpdate:request": X[5] || (X[5] = (J) => W.value = J),
|
|
4858
4856
|
"filter-panel-open": I.value,
|
|
@@ -4873,7 +4871,7 @@ const rs = {
|
|
|
4873
4871
|
])
|
|
4874
4872
|
}))
|
|
4875
4873
|
]), 1032, ["request", "filter-panel-open", "columns", "options", "loading", "initial-load", "bulk-edit-mode", "time-zone", "header-display-timezone"]),
|
|
4876
|
-
q(
|
|
4874
|
+
q(xa, {
|
|
4877
4875
|
columns: c.value,
|
|
4878
4876
|
request: f.value,
|
|
4879
4877
|
data: E.value,
|
|
@@ -4897,7 +4895,7 @@ const rs = {
|
|
|
4897
4895
|
]), 1032, ["columns", "request", "data", "time-zone", "loading", "initial-load", "search-value", "options", "edit-mode"])
|
|
4898
4896
|
], 2)
|
|
4899
4897
|
]),
|
|
4900
|
-
z.options.hidePagination !== !0 ? (u(), L(
|
|
4898
|
+
z.options.hidePagination !== !0 ? (u(), L(Cn, {
|
|
4901
4899
|
key: 2,
|
|
4902
4900
|
request: f.value,
|
|
4903
4901
|
loading: z.loading,
|
|
@@ -4911,7 +4909,7 @@ const rs = {
|
|
|
4911
4909
|
}, null, 8, ["request", "loading", "initial-load", "show-unsaved-changes-warning", "data", "options"])) : U("", !0)
|
|
4912
4910
|
]));
|
|
4913
4911
|
}
|
|
4914
|
-
}),
|
|
4912
|
+
}), Zs = { class: "cl-relative" }, Ws = ["id"], Ks = /* @__PURE__ */ j({
|
|
4915
4913
|
inheritAttrs: !1,
|
|
4916
4914
|
__name: "cl-ui-grid-lite",
|
|
4917
4915
|
props: /* @__PURE__ */ de({
|
|
@@ -4948,7 +4946,7 @@ const rs = {
|
|
|
4948
4946
|
p.value = !1;
|
|
4949
4947
|
}, {
|
|
4950
4948
|
once: !0
|
|
4951
|
-
}), (w, y) => (u(), g("div",
|
|
4949
|
+
}), (w, y) => (u(), g("div", Zs, [
|
|
4952
4950
|
h("div", Q({ id: m(i) }, a, {
|
|
4953
4951
|
class: ["cl-border cl-border-off-white cl-grid cl-overflow-hidden cl-rounded cl-text-base cl-w-full", {
|
|
4954
4952
|
"cl-opacity-60": w.loading,
|
|
@@ -4995,7 +4993,7 @@ const rs = {
|
|
|
4995
4993
|
"initial-load": p.value,
|
|
4996
4994
|
options: c.value
|
|
4997
4995
|
}, null, 8, ["request", "inert", "grid-id", "data", "initial-load", "options"])) : U("", !0)
|
|
4998
|
-
], 16,
|
|
4996
|
+
], 16, Ws),
|
|
4999
4997
|
w.loading && !p.value ? (u(), L(_e, {
|
|
5000
4998
|
key: 0,
|
|
5001
4999
|
class: "after:!cl-h-14 after:!cl-w-14 cl-absolute cl-left-1/2 cl-top-20"
|
|
@@ -5007,7 +5005,7 @@ function gl(o) {
|
|
|
5007
5005
|
const l = o.type !== "slot" || o.slotType !== void 0 && o.field !== void 0, t = o.sortable ?? !0;
|
|
5008
5006
|
return l && t;
|
|
5009
5007
|
}
|
|
5010
|
-
const
|
|
5008
|
+
const Qs = { class: "cl-col-[1_/_-1] cl-grid cl-grid-cols-subgrid" }, Ys = ["id", "onClick"], kt = /* @__PURE__ */ j({
|
|
5011
5009
|
inheritAttrs: !1,
|
|
5012
5010
|
__name: "cl-ui-grid-lite-header",
|
|
5013
5011
|
props: /* @__PURE__ */ de({
|
|
@@ -5037,7 +5035,7 @@ const Ys = { class: "cl-col-[1_/_-1] cl-grid cl-grid-cols-subgrid" }, Js = ["id"
|
|
|
5037
5035
|
}
|
|
5038
5036
|
return (a, i) => {
|
|
5039
5037
|
const d = Se("icon");
|
|
5040
|
-
return u(), g("div",
|
|
5038
|
+
return u(), g("div", Qs, [
|
|
5041
5039
|
(u(!0), g(K, null, _(a.columns, (b, n) => (u(), g("div", Q({ ref_for: !0 }, a.$attrs, {
|
|
5042
5040
|
id: `${a.gridId}-header-${b.name}`,
|
|
5043
5041
|
key: b.name,
|
|
@@ -5080,7 +5078,7 @@ const Ys = { class: "cl-col-[1_/_-1] cl-grid cl-grid-cols-subgrid" }, Js = ["id"
|
|
|
5080
5078
|
], 2), [
|
|
5081
5079
|
[fe, m(gl)(b)]
|
|
5082
5080
|
])
|
|
5083
|
-
], 16,
|
|
5081
|
+
], 16, Ys))), 128))
|
|
5084
5082
|
]);
|
|
5085
5083
|
};
|
|
5086
5084
|
}
|
|
@@ -5103,7 +5101,7 @@ const Ys = { class: "cl-col-[1_/_-1] cl-grid cl-grid-cols-subgrid" }, Js = ["id"
|
|
|
5103
5101
|
}, " ", 2))), 128))
|
|
5104
5102
|
]))), 128));
|
|
5105
5103
|
}
|
|
5106
|
-
}),
|
|
5104
|
+
}), Js = { class: "cl-col-[1_/_-1] cl-grid cl-grid-cols-subgrid" }, Tt = /* @__PURE__ */ j({
|
|
5107
5105
|
inheritAttrs: !1,
|
|
5108
5106
|
__name: "cl-ui-grid-lite-row",
|
|
5109
5107
|
props: {
|
|
@@ -5114,7 +5112,7 @@ const Ys = { class: "cl-col-[1_/_-1] cl-grid cl-grid-cols-subgrid" }, Js = ["id"
|
|
|
5114
5112
|
gridId: {}
|
|
5115
5113
|
},
|
|
5116
5114
|
setup(o) {
|
|
5117
|
-
return (l, t) => (u(), g("div",
|
|
5115
|
+
return (l, t) => (u(), g("div", Js, [
|
|
5118
5116
|
(u(!0), g(K, null, _(l.columns, (e, r) => (u(), L(m(St), Q({ ref_for: !0 }, l.$attrs, {
|
|
5119
5117
|
id: `${l.gridId}-c${r}`,
|
|
5120
5118
|
key: e.name,
|
|
@@ -5135,7 +5133,7 @@ const Ys = { class: "cl-col-[1_/_-1] cl-grid cl-grid-cols-subgrid" }, Js = ["id"
|
|
|
5135
5133
|
]), 1040, ["id", "data", "time-zone", "column", "is-small-grid", "class"]))), 128))
|
|
5136
5134
|
]));
|
|
5137
5135
|
}
|
|
5138
|
-
}),
|
|
5136
|
+
}), Xs = { class: "cl-col-[1_/_-1] cl-grid cl-grid-cols-subgrid" }, Ct = /* @__PURE__ */ j({
|
|
5139
5137
|
__name: "cl-ui-grid-lite-body",
|
|
5140
5138
|
props: {
|
|
5141
5139
|
columns: {},
|
|
@@ -5150,7 +5148,7 @@ const Ys = { class: "cl-col-[1_/_-1] cl-grid cl-grid-cols-subgrid" }, Js = ["id"
|
|
|
5150
5148
|
const l = o, { t } = ce(), e = k(() => l.options.smallGridText ?? !1), r = k(() => l.options.alternatingRows ?? !1);
|
|
5151
5149
|
return (a, i) => {
|
|
5152
5150
|
var d;
|
|
5153
|
-
return u(), g("div",
|
|
5151
|
+
return u(), g("div", Xs, [
|
|
5154
5152
|
a.initialLoad && a.pageSize > 0 ? (u(), L($t, {
|
|
5155
5153
|
key: 0,
|
|
5156
5154
|
"page-size": a.pageSize,
|
|
@@ -5189,10 +5187,10 @@ const Ys = { class: "cl-col-[1_/_-1] cl-grid cl-grid-cols-subgrid" }, Js = ["id"
|
|
|
5189
5187
|
]);
|
|
5190
5188
|
};
|
|
5191
5189
|
}
|
|
5192
|
-
}),
|
|
5190
|
+
}), xs = ["id"], _s = ["id"], er = ["id"], lr = {
|
|
5193
5191
|
key: 5,
|
|
5194
5192
|
class: "cl-inline-block cl-whitespace-nowrap"
|
|
5195
|
-
},
|
|
5193
|
+
}, tr = ["id", "innerHTML"], St = /* @__PURE__ */ j({
|
|
5196
5194
|
inheritAttrs: !1,
|
|
5197
5195
|
__name: "cl-ui-grid-lite-cell",
|
|
5198
5196
|
props: {
|
|
@@ -5278,26 +5276,26 @@ const Ys = { class: "cl-col-[1_/_-1] cl-grid cl-grid-cols-subgrid" }, Js = ["id"
|
|
|
5278
5276
|
], 64)) : (u(), g(K, { key: 2 }, [
|
|
5279
5277
|
ue(R(d(s.data[s.column.field], m(ie).DATETIME)), 1)
|
|
5280
5278
|
], 64))
|
|
5281
|
-
], 8,
|
|
5279
|
+
], 8, xs)) : s.column.type === "list" && s.column.field !== void 0 && s.column.listEntries !== void 0 ? (u(), g("span", {
|
|
5282
5280
|
key: 3,
|
|
5283
5281
|
id: m(t),
|
|
5284
5282
|
class: "cl-inline-block cl-whitespace-nowrap"
|
|
5285
|
-
}, R(m(a)(((p = s.column.listEntries.find((w) => w.value === s.data[s.column.field])) == null ? void 0 : p.translationKey) ?? "")), 9,
|
|
5283
|
+
}, R(m(a)(((p = s.column.listEntries.find((w) => w.value === s.data[s.column.field])) == null ? void 0 : p.translationKey) ?? "")), 9, _s)) : s.column.type === "number" && s.column.field !== void 0 ? (u(), g("span", {
|
|
5286
5284
|
key: 4,
|
|
5287
5285
|
id: m(t),
|
|
5288
5286
|
class: "cl-inline-block cl-whitespace-nowrap"
|
|
5289
|
-
}, R(n(s.data[s.column.field], m(i))), 9,
|
|
5287
|
+
}, R(n(s.data[s.column.field], m(i))), 9, er)) : s.column.field !== void 0 ? (u(), g("span", lr, [
|
|
5290
5288
|
h("span", {
|
|
5291
5289
|
id: m(t),
|
|
5292
5290
|
innerHTML: b()
|
|
5293
|
-
}, null, 8,
|
|
5291
|
+
}, null, 8, tr)
|
|
5294
5292
|
])) : U("", !0)
|
|
5295
5293
|
], 16);
|
|
5296
5294
|
};
|
|
5297
5295
|
}
|
|
5298
|
-
}),
|
|
5299
|
-
function
|
|
5300
|
-
return u(), g("div",
|
|
5296
|
+
}), or = {}, ar = { class: "cl-border cl-border-off-white cl-border-t cl-flex cl-justify-between cl-p-2" };
|
|
5297
|
+
function nr(o, l) {
|
|
5298
|
+
return u(), g("div", ar, l[0] || (l[0] = [
|
|
5301
5299
|
h("div", { class: "cl-flex cl-gap-2 cl-w-full" }, [
|
|
5302
5300
|
h("p", { class: "cl-animate-pulse cl-basis-3/12 cl-bg-grey-1 cl-leading-none cl-rounded-full" }, " "),
|
|
5303
5301
|
h("p", { class: "cl-animate-pulse cl-basis-1/12 cl-bg-grey-1 cl-leading-none cl-rounded-full" }, " ")
|
|
@@ -5305,10 +5303,10 @@ function sr(o, l) {
|
|
|
5305
5303
|
h("p", { class: "cl-animate-pulse cl-basis-1/12 cl-bg-grey-1 cl-leading-none cl-rounded-full" }, " ", -1)
|
|
5306
5304
|
]));
|
|
5307
5305
|
}
|
|
5308
|
-
const qt = /* @__PURE__ */ Te(
|
|
5306
|
+
const qt = /* @__PURE__ */ Te(or, [["render", nr]]), sr = { class: "cl-flex cl-gap-4" }, rr = { class: "cl-mr-2" }, ir = {
|
|
5309
5307
|
key: 0,
|
|
5310
5308
|
class: "cl-flex cl-gap-0.5"
|
|
5311
|
-
},
|
|
5309
|
+
}, ur = { class: "cl-mr-1 cl-w-full" }, cr = ["id", "onClick"], dr = { class: "cl-flex cl-gap-1 cl-items-center" }, pr = ["id"], fr = ["id"], mr = ["id", "onClick"], gr = ["id"], vr = ["id"], Dt = /* @__PURE__ */ j({
|
|
5312
5310
|
__name: "cl-ui-grid-lite-footer",
|
|
5313
5311
|
props: /* @__PURE__ */ de({
|
|
5314
5312
|
gridId: {},
|
|
@@ -5359,13 +5357,13 @@ const qt = /* @__PURE__ */ Te(ar, [["render", sr]]), rr = { class: "cl-flex cl-g
|
|
|
5359
5357
|
s.options.smallGridText ? "cl-px-1 cl-py-1.5 cl-text-xs" : "cl-p-2 cl-text-sm"
|
|
5360
5358
|
]])
|
|
5361
5359
|
}, [
|
|
5362
|
-
h("div",
|
|
5360
|
+
h("div", sr, [
|
|
5363
5361
|
h("div", null, [
|
|
5364
|
-
h("span",
|
|
5362
|
+
h("span", rr, R(m(e)("grid.page")), 1),
|
|
5365
5363
|
h("span", null, R(m(De)(t.value.pageNumber)) + " / " + R(m(De)(r.value)), 1)
|
|
5366
5364
|
]),
|
|
5367
|
-
b.value.length && s.options.showPageSizeOptions ? (u(), g("ul",
|
|
5368
|
-
h("li",
|
|
5365
|
+
b.value.length && s.options.showPageSizeOptions ? (u(), g("ul", ir, [
|
|
5366
|
+
h("li", ur, R(m(e)("grid.pageSize")), 1),
|
|
5369
5367
|
(u(!0), g(K, null, _(b.value, (y, f) => (u(), g("li", {
|
|
5370
5368
|
id: `${s.gridId}-page-size-${y}`,
|
|
5371
5369
|
key: f,
|
|
@@ -5374,11 +5372,11 @@ const qt = /* @__PURE__ */ Te(ar, [["render", sr]]), rr = { class: "cl-flex cl-g
|
|
|
5374
5372
|
"cl-border-b-transparent hover:cl-border-b-link-lighter hover:cl-text-link-light cl-cursor-pointer": t.value.pageSize !== y
|
|
5375
5373
|
}]),
|
|
5376
5374
|
onClick: (C) => t.value.pageSize !== y ? n(y) : null
|
|
5377
|
-
}, R(m(De)(y)), 11,
|
|
5375
|
+
}, R(m(De)(y)), 11, cr))), 128))
|
|
5378
5376
|
])) : U("", !0)
|
|
5379
5377
|
]),
|
|
5380
5378
|
h("div", null, [
|
|
5381
|
-
h("ul",
|
|
5379
|
+
h("ul", dr, [
|
|
5382
5380
|
h("li", {
|
|
5383
5381
|
id: `${s.gridId}-page-first`,
|
|
5384
5382
|
class: O({
|
|
@@ -5391,7 +5389,7 @@ const qt = /* @__PURE__ */ Te(ar, [["render", sr]]), rr = { class: "cl-flex cl-g
|
|
|
5391
5389
|
icon: "ph:caret-double-left-bold",
|
|
5392
5390
|
size: 14
|
|
5393
5391
|
})
|
|
5394
|
-
], 10,
|
|
5392
|
+
], 10, pr),
|
|
5395
5393
|
h("li", {
|
|
5396
5394
|
id: `${s.gridId}-page-previous`,
|
|
5397
5395
|
class: O({
|
|
@@ -5404,7 +5402,7 @@ const qt = /* @__PURE__ */ Te(ar, [["render", sr]]), rr = { class: "cl-flex cl-g
|
|
|
5404
5402
|
icon: "ph:caret-left-bold",
|
|
5405
5403
|
size: 14
|
|
5406
5404
|
})
|
|
5407
|
-
], 10,
|
|
5405
|
+
], 10, fr),
|
|
5408
5406
|
(u(!0), g(K, null, _(a.value, (y, f) => (u(), g("li", {
|
|
5409
5407
|
id: `${s.gridId}-page-${y}`,
|
|
5410
5408
|
key: f,
|
|
@@ -5413,7 +5411,7 @@ const qt = /* @__PURE__ */ Te(ar, [["render", sr]]), rr = { class: "cl-flex cl-g
|
|
|
5413
5411
|
"cl-cursor-pointer ": t.value.pageNumber !== y
|
|
5414
5412
|
}]),
|
|
5415
5413
|
onClick: (C) => t.value.pageNumber !== y ? i(y) : null
|
|
5416
|
-
}, R(m(De)(y)), 11,
|
|
5414
|
+
}, R(m(De)(y)), 11, mr))), 128)),
|
|
5417
5415
|
h("li", {
|
|
5418
5416
|
id: `${s.gridId}-page-next`,
|
|
5419
5417
|
class: O({
|
|
@@ -5426,7 +5424,7 @@ const qt = /* @__PURE__ */ Te(ar, [["render", sr]]), rr = { class: "cl-flex cl-g
|
|
|
5426
5424
|
icon: "ph:caret-right-bold",
|
|
5427
5425
|
size: 14
|
|
5428
5426
|
})
|
|
5429
|
-
], 10,
|
|
5427
|
+
], 10, gr),
|
|
5430
5428
|
h("li", {
|
|
5431
5429
|
id: `${s.gridId}-page-last`,
|
|
5432
5430
|
class: O({
|
|
@@ -5439,13 +5437,13 @@ const qt = /* @__PURE__ */ Te(ar, [["render", sr]]), rr = { class: "cl-flex cl-g
|
|
|
5439
5437
|
icon: "ph:caret-double-right-bold",
|
|
5440
5438
|
size: 14
|
|
5441
5439
|
})
|
|
5442
|
-
], 10,
|
|
5440
|
+
], 10, vr)
|
|
5443
5441
|
])
|
|
5444
5442
|
])
|
|
5445
5443
|
], 2)) : U("", !0);
|
|
5446
5444
|
};
|
|
5447
5445
|
}
|
|
5448
|
-
}),
|
|
5446
|
+
}), hr = { 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" }, br = /* @__PURE__ */ j({
|
|
5449
5447
|
__name: "cl-ui-header",
|
|
5450
5448
|
props: {
|
|
5451
5449
|
isOpen: { type: Boolean }
|
|
@@ -5455,7 +5453,7 @@ const qt = /* @__PURE__ */ Te(ar, [["render", sr]]), rr = { class: "cl-flex cl-g
|
|
|
5455
5453
|
const t = o, e = l, r = M();
|
|
5456
5454
|
return xe(r, () => {
|
|
5457
5455
|
(t.isOpen ?? !1) && e("open-click");
|
|
5458
|
-
}), (a, i) => (u(), g("header",
|
|
5456
|
+
}), (a, i) => (u(), g("header", hr, [
|
|
5459
5457
|
D(a.$slots, "logo"),
|
|
5460
5458
|
h("div", {
|
|
5461
5459
|
ref_key: "headerMenuElement",
|
|
@@ -5468,15 +5466,15 @@ const qt = /* @__PURE__ */ Te(ar, [["render", sr]]), rr = { class: "cl-flex cl-g
|
|
|
5468
5466
|
], 512)
|
|
5469
5467
|
]));
|
|
5470
5468
|
}
|
|
5471
|
-
}),
|
|
5469
|
+
}), yr = { 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]" }, wr = ["src"], kr = {
|
|
5472
5470
|
key: 0,
|
|
5473
5471
|
id: "cl-ui-header-menu-username",
|
|
5474
5472
|
class: "cl-text-ellipsis cl-whitespace-nowrap"
|
|
5475
|
-
},
|
|
5473
|
+
}, $r = {
|
|
5476
5474
|
key: 1,
|
|
5477
5475
|
id: "cl-ui-header-menu-group",
|
|
5478
5476
|
class: "cl-text-ellipsis cl-text-xs cl-whitespace-nowrap"
|
|
5479
|
-
},
|
|
5477
|
+
}, Tr = { 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" }, Cr = { class: "cl-absolute cl-bg-white cl-right-0 cl-shadow-2xl cl-top-20 cl-w-full cl-z-20" }, Sr = /* @__PURE__ */ j({
|
|
5480
5478
|
__name: "cl-ui-header-menu",
|
|
5481
5479
|
props: {
|
|
5482
5480
|
username: { default: "" },
|
|
@@ -5492,12 +5490,12 @@ const qt = /* @__PURE__ */ Te(ar, [["render", sr]]), rr = { class: "cl-flex cl-g
|
|
|
5492
5490
|
"cl-bg-blue-light": l.colour === "secondary"
|
|
5493
5491
|
}])
|
|
5494
5492
|
}, [
|
|
5495
|
-
h("div",
|
|
5493
|
+
h("div", yr, [
|
|
5496
5494
|
l.image ? (u(), g("img", {
|
|
5497
5495
|
key: 0,
|
|
5498
5496
|
src: l.image,
|
|
5499
5497
|
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"
|
|
5500
|
-
}, null, 8,
|
|
5498
|
+
}, null, 8, wr)) : (u(), L(m(le), {
|
|
5501
5499
|
key: 1,
|
|
5502
5500
|
class: "cl-hidden cl-m-4 cl-text-white md:cl-block",
|
|
5503
5501
|
icon: "ph:user-circle",
|
|
@@ -5510,10 +5508,10 @@ const qt = /* @__PURE__ */ Te(ar, [["render", sr]]), rr = { class: "cl-flex cl-g
|
|
|
5510
5508
|
"cl-text-white": l.colour === "secondary"
|
|
5511
5509
|
}])
|
|
5512
5510
|
}, [
|
|
5513
|
-
l.username ? (u(), g("div",
|
|
5514
|
-
l.group ? (u(), g("div",
|
|
5511
|
+
l.username ? (u(), g("div", kr, R(l.username), 1)) : U("", !0),
|
|
5512
|
+
l.group ? (u(), g("div", $r, R(l.group), 1)) : U("", !0)
|
|
5515
5513
|
], 2),
|
|
5516
|
-
h("div",
|
|
5514
|
+
h("div", Tr, [
|
|
5517
5515
|
q(m(le), {
|
|
5518
5516
|
class: O(["cl-transform-gpu cl-transition-transform", {
|
|
5519
5517
|
"cl-rotate-180": l.isOpen,
|
|
@@ -5526,7 +5524,7 @@ const qt = /* @__PURE__ */ Te(ar, [["render", sr]]), rr = { class: "cl-flex cl-g
|
|
|
5526
5524
|
]),
|
|
5527
5525
|
q(Ne, { name: "fade" }, {
|
|
5528
5526
|
default: V(() => [
|
|
5529
|
-
se(h("div",
|
|
5527
|
+
se(h("div", Cr, [
|
|
5530
5528
|
D(l.$slots, "default")
|
|
5531
5529
|
], 512), [
|
|
5532
5530
|
[fe, l.isOpen]
|
|
@@ -5536,10 +5534,10 @@ const qt = /* @__PURE__ */ Te(ar, [["render", sr]]), rr = { class: "cl-flex cl-g
|
|
|
5536
5534
|
})
|
|
5537
5535
|
], 2));
|
|
5538
5536
|
}
|
|
5539
|
-
}),
|
|
5537
|
+
}), qr = [
|
|
5540
5538
|
"default",
|
|
5541
5539
|
"secondary"
|
|
5542
|
-
],
|
|
5540
|
+
], Dr = /* @__PURE__ */ j({
|
|
5543
5541
|
inheritAttrs: !1,
|
|
5544
5542
|
__name: "cl-ui-calendar",
|
|
5545
5543
|
props: {
|
|
@@ -5712,7 +5710,7 @@ const qt = /* @__PURE__ */ Te(ar, [["render", sr]]), rr = { class: "cl-flex cl-g
|
|
|
5712
5710
|
}), We = [
|
|
5713
5711
|
...vt,
|
|
5714
5712
|
"dateRange"
|
|
5715
|
-
],
|
|
5713
|
+
], Or = ["disabled", "step", "placeholder", "name"], Er = /* @__PURE__ */ j({
|
|
5716
5714
|
__name: "cl-ui-currency-input",
|
|
5717
5715
|
props: {
|
|
5718
5716
|
modelValue: { type: [String, Object, Number, Boolean, null] },
|
|
@@ -5782,12 +5780,12 @@ const qt = /* @__PURE__ */ Te(ar, [["render", sr]]), rr = { class: "cl-flex cl-g
|
|
|
5782
5780
|
onChange: y,
|
|
5783
5781
|
onBlur: p,
|
|
5784
5782
|
onFocus: C[0] || (C[0] = (A) => r("focus"))
|
|
5785
|
-
}, null, 42,
|
|
5783
|
+
}, null, 42, Or));
|
|
5786
5784
|
}
|
|
5787
|
-
}),
|
|
5785
|
+
}), Ar = { class: "cl-flex cl-items-start" }, Mr = { class: "cl-w-full" }, Vr = ["min", "max", "step", "disabled"], Ir = { class: "cl-bg-transparent cl-text-center cl-text-sm cl-w-full" }, Nr = { class: "cl-bg-transparent cl-text-sm" }, Rr = {
|
|
5788
5786
|
key: 1,
|
|
5789
5787
|
class: "cl-emphasis-danger cl-text-sm cl-w-full"
|
|
5790
|
-
},
|
|
5788
|
+
}, Ur = /* @__PURE__ */ j({
|
|
5791
5789
|
inheritAttrs: !1,
|
|
5792
5790
|
__name: "cl-ui-slider",
|
|
5793
5791
|
props: /* @__PURE__ */ de({
|
|
@@ -5815,7 +5813,7 @@ const qt = /* @__PURE__ */ Te(ar, [["render", sr]]), rr = { class: "cl-flex cl-g
|
|
|
5815
5813
|
(n = a.value) == null || n.focus();
|
|
5816
5814
|
}
|
|
5817
5815
|
}), (n, s) => d.value ? (u(), g("div", me(Q({ key: 0 }, n.$attrs)), [
|
|
5818
|
-
h("div",
|
|
5816
|
+
h("div", Ar, [
|
|
5819
5817
|
h("span", {
|
|
5820
5818
|
class: O(["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", {
|
|
5821
5819
|
"cl-bg-white cl-cursor-pointer hover:cl-border-grey-1": !n.disabled,
|
|
@@ -5823,7 +5821,7 @@ const qt = /* @__PURE__ */ Te(ar, [["render", sr]]), rr = { class: "cl-flex cl-g
|
|
|
5823
5821
|
}]),
|
|
5824
5822
|
onClick: s[0] || (s[0] = (c) => e.value = n.disabled ? e.value : n.min)
|
|
5825
5823
|
}, R(Number.isInteger(n.min) ? m(De)(n.min) : m(Ve)(n.min, m(ae).DECIMAL)), 3),
|
|
5826
|
-
h("div",
|
|
5824
|
+
h("div", Mr, [
|
|
5827
5825
|
b.value ? (u(), L(ll, {
|
|
5828
5826
|
key: 0,
|
|
5829
5827
|
ref_key: "sliderRef",
|
|
@@ -5854,7 +5852,7 @@ const qt = /* @__PURE__ */ Te(ar, [["render", sr]]), rr = { class: "cl-flex cl-g
|
|
|
5854
5852
|
max: n.max,
|
|
5855
5853
|
step: n.step,
|
|
5856
5854
|
disabled: n.disabled
|
|
5857
|
-
}, null, 8,
|
|
5855
|
+
}, null, 8, Vr), [
|
|
5858
5856
|
[
|
|
5859
5857
|
Sl,
|
|
5860
5858
|
e.value,
|
|
@@ -5862,7 +5860,7 @@ const qt = /* @__PURE__ */ Te(ar, [["render", sr]]), rr = { class: "cl-flex cl-g
|
|
|
5862
5860
|
{ number: !0 }
|
|
5863
5861
|
]
|
|
5864
5862
|
]),
|
|
5865
|
-
h("div",
|
|
5863
|
+
h("div", Ir, R(Number.isInteger(e.value) ? m(De)(e.value) : m(Ve)(e.value, m(ae).DECIMAL)), 1)
|
|
5866
5864
|
], 64))
|
|
5867
5865
|
]),
|
|
5868
5866
|
h("span", {
|
|
@@ -5872,7 +5870,7 @@ const qt = /* @__PURE__ */ Te(ar, [["render", sr]]), rr = { class: "cl-flex cl-g
|
|
|
5872
5870
|
}]),
|
|
5873
5871
|
onClick: s[3] || (s[3] = (c) => e.value = n.disabled ? e.value : n.max)
|
|
5874
5872
|
}, R(Number.isInteger(n.max) ? m(De)(n.max) : m(Ve)(n.max, m(ae).DECIMAL)), 3),
|
|
5875
|
-
h("div",
|
|
5873
|
+
h("div", Nr, [
|
|
5876
5874
|
h("div", {
|
|
5877
5875
|
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",
|
|
5878
5876
|
onClick: s[4] || (s[4] = (c) => b.value = !b.value)
|
|
@@ -5881,9 +5879,9 @@ const qt = /* @__PURE__ */ Te(ar, [["render", sr]]), rr = { class: "cl-flex cl-g
|
|
|
5881
5879
|
])
|
|
5882
5880
|
])
|
|
5883
5881
|
])
|
|
5884
|
-
], 16)) : (u(), g("div",
|
|
5882
|
+
], 16)) : (u(), g("div", Rr, R(m(r)("slider.invalidProps")), 1));
|
|
5885
5883
|
}
|
|
5886
|
-
}),
|
|
5884
|
+
}), zr = /* @__PURE__ */ Te(Ur, [["__scopeId", "data-v-5cb4ccea"]]);
|
|
5887
5885
|
function Zl(o) {
|
|
5888
5886
|
let l = !1;
|
|
5889
5887
|
switch (o) {
|
|
@@ -5901,7 +5899,7 @@ function Zl(o) {
|
|
|
5901
5899
|
}
|
|
5902
5900
|
return l;
|
|
5903
5901
|
}
|
|
5904
|
-
function
|
|
5902
|
+
function Br(o) {
|
|
5905
5903
|
return o === "number" || o === "range";
|
|
5906
5904
|
}
|
|
5907
5905
|
function Wl(o) {
|
|
@@ -5922,7 +5920,7 @@ function Wl(o) {
|
|
|
5922
5920
|
function Ke(o) {
|
|
5923
5921
|
return o === "button" || o === "submit" || o === "reset";
|
|
5924
5922
|
}
|
|
5925
|
-
function
|
|
5923
|
+
function Lr(o) {
|
|
5926
5924
|
let l;
|
|
5927
5925
|
switch (o) {
|
|
5928
5926
|
case "datetime":
|
|
@@ -5943,27 +5941,27 @@ function Fr(o) {
|
|
|
5943
5941
|
}
|
|
5944
5942
|
function Kl(o, l) {
|
|
5945
5943
|
const t = o.target;
|
|
5946
|
-
return
|
|
5944
|
+
return Br(l) ? t.valueAsNumber : Ke(l) ? t.checked : t.value;
|
|
5947
5945
|
}
|
|
5948
|
-
const
|
|
5946
|
+
const Fr = { class: "cl-flex cl-justify-between" }, jr = { class: "cl-w-full" }, Pr = {
|
|
5949
5947
|
key: 0,
|
|
5950
5948
|
class: "cl-block cl-left-auto cl-relative cl-text-danger-default"
|
|
5951
|
-
},
|
|
5949
|
+
}, Hr = {
|
|
5952
5950
|
key: 1,
|
|
5953
5951
|
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"
|
|
5954
|
-
},
|
|
5952
|
+
}, Gr = {
|
|
5955
5953
|
key: 0,
|
|
5956
5954
|
class: "cl-relative"
|
|
5957
|
-
},
|
|
5955
|
+
}, Zr = ["type", "disabled", "min", "max", "minlength", "maxlength", "step", "placeholder", "name", "autocomplete"], Wr = { key: 0 }, Kr = { key: 1 }, Qr = {
|
|
5958
5956
|
key: 3,
|
|
5959
5957
|
class: "cl-max-h-[2.75rem] cl-pb-0.5"
|
|
5960
|
-
},
|
|
5958
|
+
}, Yr = {
|
|
5961
5959
|
key: 0,
|
|
5962
5960
|
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"
|
|
5963
|
-
},
|
|
5961
|
+
}, Jr = {
|
|
5964
5962
|
key: 1,
|
|
5965
5963
|
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"
|
|
5966
|
-
},
|
|
5964
|
+
}, Xr = /* @__PURE__ */ j({
|
|
5967
5965
|
inheritAttrs: !1,
|
|
5968
5966
|
__name: "cl-ui-input",
|
|
5969
5967
|
props: {
|
|
@@ -6042,7 +6040,7 @@ const jr = { class: "cl-flex cl-justify-between" }, Pr = { class: "cl-w-full" },
|
|
|
6042
6040
|
ge(e.customValidationFunction(e.label, v));
|
|
6043
6041
|
})
|
|
6044
6042
|
];
|
|
6045
|
-
return (typeof v == "string" || typeof v == "number") && (Z.push(
|
|
6043
|
+
return (typeof v == "string" || typeof v == "number") && (Z.push(Ia(e.min, e.inputType, e.label, v, e.timeZone)), Z.push(Na(e.max, e.inputType, e.label, v, e.timeZone))), e.isRequired && Z.push(Ra(e.label, v)), e.inputType === "email" && typeof v == "string" && Z.push(Ua(e.label, v)), Promise.all(Z).then((ge) => {
|
|
6046
6044
|
const pe = [...ge.map((ve) => ve.message)], Ee = ge.some((ve) => ve.message.length > 0 && ve.valid === !1) || e.externalErrors.length > 0;
|
|
6047
6045
|
P.value = !0, Ee ? (I.value = pe, r("validated", !1, v)) : (I.value = [], r("validated", !0, v)), S.value = !Ee;
|
|
6048
6046
|
});
|
|
@@ -6119,15 +6117,15 @@ const jr = { class: "cl-flex cl-justify-between" }, Pr = { class: "cl-w-full" },
|
|
|
6119
6117
|
onMouseenter: N[13] || (N[13] = (Z) => J(!0)),
|
|
6120
6118
|
onMouseleave: N[14] || (N[14] = (Z) => J(!1))
|
|
6121
6119
|
}, [
|
|
6122
|
-
h("div",
|
|
6123
|
-
h("div",
|
|
6120
|
+
h("div", Fr, [
|
|
6121
|
+
h("div", jr, [
|
|
6124
6122
|
se(h("label", { class: "cl-block cl-mb-1 cl-text-grey-4 cl-text-xs cl-tracking-widest" }, R(v.label), 513), [
|
|
6125
6123
|
[fe, v.showLabel && v.label !== ""]
|
|
6126
6124
|
])
|
|
6127
6125
|
]),
|
|
6128
|
-
n.value ? (u(), g("label",
|
|
6126
|
+
n.value ? (u(), g("label", Pr, " * ")) : v.isRequired && v.requiredText.length ? (u(), g("label", Hr, R(v.requiredText), 1)) : U("", !0)
|
|
6129
6127
|
]),
|
|
6130
|
-
v.inputType !== "range" && v.inputType !== "currency" && !m(Wl)(v.inputType) ? (u(), g("div",
|
|
6128
|
+
v.inputType !== "range" && v.inputType !== "currency" && !m(Wl)(v.inputType) ? (u(), g("div", Gr, [
|
|
6131
6129
|
se(h("input", Q({
|
|
6132
6130
|
ref_key: "inputElement",
|
|
6133
6131
|
ref: a,
|
|
@@ -6162,7 +6160,7 @@ const jr = { class: "cl-flex cl-justify-between" }, Pr = { class: "cl-w-full" },
|
|
|
6162
6160
|
r("input", Z, m(Kl)(Z, v.inputType));
|
|
6163
6161
|
}),
|
|
6164
6162
|
onChange: T
|
|
6165
|
-
}), null, 16,
|
|
6163
|
+
}), null, 16, Zr), [
|
|
6166
6164
|
[Yl, p.value]
|
|
6167
6165
|
]),
|
|
6168
6166
|
q(Ne, {
|
|
@@ -6170,7 +6168,7 @@ const jr = { class: "cl-flex cl-justify-between" }, Pr = { class: "cl-w-full" },
|
|
|
6170
6168
|
duration: 300
|
|
6171
6169
|
}, {
|
|
6172
6170
|
default: V(() => [
|
|
6173
|
-
v.inputType === "number" && !v.disabled && v.showArrows ? se((u(), g("div",
|
|
6171
|
+
v.inputType === "number" && !v.disabled && v.showArrows ? se((u(), g("div", Wr, [
|
|
6174
6172
|
q(m(le), {
|
|
6175
6173
|
icon: "ph:caret-up-bold",
|
|
6176
6174
|
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",
|
|
@@ -6191,8 +6189,8 @@ const jr = { class: "cl-flex cl-justify-between" }, Pr = { class: "cl-w-full" },
|
|
|
6191
6189
|
]),
|
|
6192
6190
|
_: 1
|
|
6193
6191
|
})
|
|
6194
|
-
])) : v.inputType === "currency" ? (u(), g("div",
|
|
6195
|
-
q(
|
|
6192
|
+
])) : v.inputType === "currency" ? (u(), g("div", Kr, [
|
|
6193
|
+
q(Er, Q({
|
|
6196
6194
|
ref_key: "currencyInputRef",
|
|
6197
6195
|
ref: i,
|
|
6198
6196
|
modelValue: p.value,
|
|
@@ -6211,7 +6209,7 @@ const jr = { class: "cl-flex cl-justify-between" }, Pr = { class: "cl-w-full" },
|
|
|
6211
6209
|
onFocus: N[8] || (N[8] = (Z) => r("focus")),
|
|
6212
6210
|
onBlur: he
|
|
6213
6211
|
}), null, 16, ["modelValue", "disabled", "placeholder", "is-valid", "highlight-when-valid", "input-specific-classes", "group", "step", "currency-options"])
|
|
6214
|
-
])) : m(Wl)(v.inputType) ? (u(), L(m(
|
|
6212
|
+
])) : m(Wl)(v.inputType) ? (u(), L(m(Dr), Q({ key: 2 }, v.$attrs, {
|
|
6215
6213
|
ref_key: "inputElement",
|
|
6216
6214
|
ref: a,
|
|
6217
6215
|
date: w.value,
|
|
@@ -6223,7 +6221,7 @@ const jr = { class: "cl-flex cl-justify-between" }, Pr = { class: "cl-w-full" },
|
|
|
6223
6221
|
}],
|
|
6224
6222
|
disabled: v.disabled,
|
|
6225
6223
|
required: v.isRequired,
|
|
6226
|
-
type: m(
|
|
6224
|
+
type: m(Lr)(v.inputType),
|
|
6227
6225
|
"time-zone": v.timeZone,
|
|
6228
6226
|
min: y.value,
|
|
6229
6227
|
max: f.value,
|
|
@@ -6233,8 +6231,8 @@ const jr = { class: "cl-flex cl-justify-between" }, Pr = { class: "cl-w-full" },
|
|
|
6233
6231
|
"date-format-locale": v.dateFormatLocale,
|
|
6234
6232
|
onBlur: x(he, ["self"]),
|
|
6235
6233
|
onFocus: N[10] || (N[10] = (Z) => r("focus"))
|
|
6236
|
-
}), null, 16, ["date", "class", "disabled", "required", "type", "time-zone", "min", "max", "placeholder", "initial-date", "quick-date-scope", "date-format-locale"])) : v.inputType === "range" && typeof p.value == "number" ? (u(), g("div",
|
|
6237
|
-
q(m(
|
|
6234
|
+
}), null, 16, ["date", "class", "disabled", "required", "type", "time-zone", "min", "max", "placeholder", "initial-date", "quick-date-scope", "date-format-locale"])) : v.inputType === "range" && typeof p.value == "number" ? (u(), g("div", Qr, [
|
|
6235
|
+
q(m(zr), {
|
|
6238
6236
|
ref_key: "inputElement",
|
|
6239
6237
|
ref: a,
|
|
6240
6238
|
value: p.value,
|
|
@@ -6250,11 +6248,11 @@ const jr = { class: "cl-flex cl-justify-between" }, Pr = { class: "cl-w-full" },
|
|
|
6250
6248
|
}, null, 8, ["value", "min", "max", "step", "placeholder", "disabled"])
|
|
6251
6249
|
])) : U("", !0)
|
|
6252
6250
|
], 32),
|
|
6253
|
-
S.value && E.value && P.value ? (u(), g("div",
|
|
6254
|
-
!S.value && $.value.length > 0 && v.showValidationMessages && P.value ? (u(), g("div",
|
|
6251
|
+
S.value && E.value && P.value ? (u(), g("div", Yr, R(E.value), 1)) : U("", !0),
|
|
6252
|
+
!S.value && $.value.length > 0 && v.showValidationMessages && P.value ? (u(), g("div", Jr, R($.value), 1)) : U("", !0)
|
|
6255
6253
|
], 16));
|
|
6256
6254
|
}
|
|
6257
|
-
}),
|
|
6255
|
+
}), xr = /* @__PURE__ */ Te(Xr, [["__scopeId", "data-v-7fedabde"]]), _r = [
|
|
6258
6256
|
"button",
|
|
6259
6257
|
"checkbox",
|
|
6260
6258
|
"color",
|
|
@@ -6276,24 +6274,24 @@ const jr = { class: "cl-flex cl-justify-between" }, Pr = { class: "cl-w-full" },
|
|
|
6276
6274
|
function $l(o) {
|
|
6277
6275
|
return /[a-z]{2}-[A-Z]{2}/gm.test(o.localeCode);
|
|
6278
6276
|
}
|
|
6279
|
-
function
|
|
6277
|
+
function ei(o) {
|
|
6280
6278
|
let l = Array.isArray(o);
|
|
6281
6279
|
if (l) {
|
|
6282
6280
|
for (const t of o)
|
|
6283
|
-
if (!
|
|
6281
|
+
if (!li(t)) {
|
|
6284
6282
|
l = !1;
|
|
6285
6283
|
break;
|
|
6286
6284
|
}
|
|
6287
6285
|
}
|
|
6288
6286
|
return l;
|
|
6289
6287
|
}
|
|
6290
|
-
function
|
|
6288
|
+
function li(o) {
|
|
6291
6289
|
return typeof o.name == "string" && typeof o.nativeName == "string" && typeof o.localeCode == "string";
|
|
6292
6290
|
}
|
|
6293
|
-
const
|
|
6291
|
+
const ti = {
|
|
6294
6292
|
key: 0,
|
|
6295
6293
|
class: "cl-flex cl-relative cl-select-none cl-w-auto cl-z-30"
|
|
6296
|
-
},
|
|
6294
|
+
}, oi = { 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" }, ai = ["data-localename", "data-localecode", "onClick"], ni = { class: "cl-text-xs" }, si = /* @__PURE__ */ j({
|
|
6297
6295
|
__name: "cl-ui-language-switcher",
|
|
6298
6296
|
props: {
|
|
6299
6297
|
supportedLanguages: {},
|
|
@@ -6312,7 +6310,7 @@ const oi = {
|
|
|
6312
6310
|
}
|
|
6313
6311
|
return te(() => t.disabled, (s) => {
|
|
6314
6312
|
s && (a.value = !1);
|
|
6315
|
-
}), (s, c) => i.value !== null && m($l)(i.value) ? (u(), g("div",
|
|
6313
|
+
}), (s, c) => i.value !== null && m($l)(i.value) ? (u(), g("div", ti, [
|
|
6316
6314
|
h("div", {
|
|
6317
6315
|
class: O(["cl-flex cl-items-center", {
|
|
6318
6316
|
"cl-cursor-pointer": !s.disabled
|
|
@@ -6327,7 +6325,7 @@ const oi = {
|
|
|
6327
6325
|
], 2),
|
|
6328
6326
|
q(Ne, { name: "fade" }, {
|
|
6329
6327
|
default: V(() => [
|
|
6330
|
-
se(h("div",
|
|
6328
|
+
se(h("div", oi, [
|
|
6331
6329
|
(u(!0), g(K, null, _(d.value, (p, w) => (u(), g("div", {
|
|
6332
6330
|
key: w,
|
|
6333
6331
|
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",
|
|
@@ -6337,8 +6335,8 @@ const oi = {
|
|
|
6337
6335
|
r.value = p.localeCode, n(), e("language-select", p.localeCode);
|
|
6338
6336
|
}
|
|
6339
6337
|
}, [
|
|
6340
|
-
h("span",
|
|
6341
|
-
], 8,
|
|
6338
|
+
h("span", ni, R(p.nativeName), 1)
|
|
6339
|
+
], 8, ai))), 128))
|
|
6342
6340
|
], 512), [
|
|
6343
6341
|
[fe, a.value]
|
|
6344
6342
|
])
|
|
@@ -6347,13 +6345,13 @@ const oi = {
|
|
|
6347
6345
|
})
|
|
6348
6346
|
])) : U("", !0);
|
|
6349
6347
|
}
|
|
6350
|
-
}),
|
|
6348
|
+
}), ri = { class: "cl-relative" }, ii = { class: "cl-h-full cl-z-0 xl:cl-h-screen" }, ui = { 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" }, ci = { class: "cl-col-span-10 lg:cl-col-span-3" }, di = {
|
|
6351
6349
|
key: 0,
|
|
6352
6350
|
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"
|
|
6353
|
-
},
|
|
6351
|
+
}, pi = { class: "cl-col-span-3" }, fi = { class: "cl-relative cl-text-grey-4" }, mi = { class: "cl-w-full" }, gi = {
|
|
6354
6352
|
key: 0,
|
|
6355
6353
|
class: "cl-bg-primary-lighter cl-mt-1 cl-rounded-md cl-text-center cl-text-secondary-default cl-text-xs cl-w-full"
|
|
6356
|
-
},
|
|
6354
|
+
}, vi = { class: "cl-col-span-3" }, hi = { class: "cl-relative cl-text-grey-4" }, bi = { class: "cl-col-span-10 cl-emphasis-danger cl-mt-10 cl-p-3 cl-rounded-md cl-text-sm md:cl-mt-3" }, yi = /* @__PURE__ */ j({
|
|
6357
6355
|
__name: "cl-ui-login",
|
|
6358
6356
|
props: {
|
|
6359
6357
|
errors: { default: () => [] },
|
|
@@ -6375,15 +6373,15 @@ const oi = {
|
|
|
6375
6373
|
return te([
|
|
6376
6374
|
r,
|
|
6377
6375
|
a
|
|
6378
|
-
], s), (c, p) => (u(), g("div",
|
|
6379
|
-
h("div",
|
|
6376
|
+
], s), (c, p) => (u(), g("div", ri, [
|
|
6377
|
+
h("div", ii, [
|
|
6380
6378
|
D(c.$slots, "background")
|
|
6381
6379
|
]),
|
|
6382
|
-
h("form",
|
|
6383
|
-
h("div",
|
|
6380
|
+
h("form", ui, [
|
|
6381
|
+
h("div", ci, [
|
|
6384
6382
|
D(c.$slots, "logo")
|
|
6385
6383
|
]),
|
|
6386
|
-
c.$slots["language-switcher"] ? (u(), g("div",
|
|
6384
|
+
c.$slots["language-switcher"] ? (u(), g("div", di, [
|
|
6387
6385
|
D(c.$slots, "language-switcher")
|
|
6388
6386
|
])) : U("", !0),
|
|
6389
6387
|
h("div", {
|
|
@@ -6392,14 +6390,14 @@ const oi = {
|
|
|
6392
6390
|
"cl-col-span-6": c.$slots["language-switcher"]
|
|
6393
6391
|
}])
|
|
6394
6392
|
}, [
|
|
6395
|
-
h("div",
|
|
6396
|
-
h("div",
|
|
6393
|
+
h("div", pi, [
|
|
6394
|
+
h("div", fi, [
|
|
6397
6395
|
q(m(le), {
|
|
6398
6396
|
class: "cl-absolute cl-left-3 cl-top-3 cl-z-10",
|
|
6399
6397
|
icon: "ph:user",
|
|
6400
6398
|
size: 18
|
|
6401
6399
|
}),
|
|
6402
|
-
h("div",
|
|
6400
|
+
h("div", mi, [
|
|
6403
6401
|
q(ze, {
|
|
6404
6402
|
id: "cl-ui-login-usernameinput",
|
|
6405
6403
|
modelValue: r.value,
|
|
@@ -6419,12 +6417,12 @@ const oi = {
|
|
|
6419
6417
|
])),
|
|
6420
6418
|
_: 1
|
|
6421
6419
|
}, 8, ["modelValue", "class", "errors", "placeholder"]),
|
|
6422
|
-
d.value ? (u(), g("div",
|
|
6420
|
+
d.value ? (u(), g("div", gi, R(m(e)("login.validEmail")), 1)) : U("", !0)
|
|
6423
6421
|
])
|
|
6424
6422
|
])
|
|
6425
6423
|
]),
|
|
6426
|
-
h("div",
|
|
6427
|
-
h("div",
|
|
6424
|
+
h("div", vi, [
|
|
6425
|
+
h("div", hi, [
|
|
6428
6426
|
q(m(le), {
|
|
6429
6427
|
class: "cl-absolute cl-left-3 cl-top-3 cl-z-10",
|
|
6430
6428
|
icon: "ph:lock",
|
|
@@ -6488,7 +6486,7 @@ const oi = {
|
|
|
6488
6486
|
default: V(() => {
|
|
6489
6487
|
var w;
|
|
6490
6488
|
return [
|
|
6491
|
-
se(h("span",
|
|
6489
|
+
se(h("span", bi, [
|
|
6492
6490
|
(u(!0), g(K, null, _(c.errors, (y, f) => (u(), g("div", {
|
|
6493
6491
|
id: "cl-ui-login-errors",
|
|
6494
6492
|
key: f,
|
|
@@ -6504,19 +6502,19 @@ const oi = {
|
|
|
6504
6502
|
])
|
|
6505
6503
|
]));
|
|
6506
6504
|
}
|
|
6507
|
-
}),
|
|
6505
|
+
}), wi = [
|
|
6508
6506
|
"x-small",
|
|
6509
6507
|
"small",
|
|
6510
6508
|
"medium",
|
|
6511
6509
|
"large"
|
|
6512
|
-
],
|
|
6510
|
+
], ki = [
|
|
6513
6511
|
"primary",
|
|
6514
6512
|
"secondary",
|
|
6515
6513
|
"white"
|
|
6516
|
-
],
|
|
6514
|
+
], $i = {
|
|
6517
6515
|
key: 0,
|
|
6518
6516
|
class: "cl-h-0 cl-w-0"
|
|
6519
|
-
},
|
|
6517
|
+
}, Ti = { class: "cl-relative cl-w-full" }, Ci = /* @__PURE__ */ j({
|
|
6520
6518
|
__name: "cl-ui-navigation",
|
|
6521
6519
|
props: {
|
|
6522
6520
|
colour: { default: "default" }
|
|
@@ -6578,7 +6576,7 @@ const oi = {
|
|
|
6578
6576
|
}, [
|
|
6579
6577
|
D(C.$slots, "icon", Q({ navcolour: C.colour }, { groupIsOpen: i, toggleOpen: d }), void 0, !0)
|
|
6580
6578
|
], 2),
|
|
6581
|
-
s.value ? (u(), g("div",
|
|
6579
|
+
s.value ? (u(), g("div", $i)) : U("", !0),
|
|
6582
6580
|
q(Ne, { name: "slide-right" }, {
|
|
6583
6581
|
default: V(() => [
|
|
6584
6582
|
se(h("div", {
|
|
@@ -6587,7 +6585,7 @@ const oi = {
|
|
|
6587
6585
|
"cl-absolute cl-left-20 cl-shadow-lg": !n.value
|
|
6588
6586
|
}])
|
|
6589
6587
|
}, [
|
|
6590
|
-
h("div",
|
|
6588
|
+
h("div", Ti, [
|
|
6591
6589
|
h("span", {
|
|
6592
6590
|
class: "cl-absolute cl-cursor-pointer cl-hidden cl-right-0 cl-top-1.5 lg:cl-block",
|
|
6593
6591
|
onClick: A[0] || (A[0] = () => p())
|
|
@@ -6610,7 +6608,7 @@ const oi = {
|
|
|
6610
6608
|
})
|
|
6611
6609
|
], 512));
|
|
6612
6610
|
}
|
|
6613
|
-
}),
|
|
6611
|
+
}), Si = /* @__PURE__ */ Te(Ci, [["__scopeId", "data-v-db3283cd"]]), qi = /* @__PURE__ */ j({
|
|
6614
6612
|
__name: "cl-ui-navigation-icon",
|
|
6615
6613
|
props: {
|
|
6616
6614
|
iconValue: {},
|
|
@@ -6633,10 +6631,10 @@ const oi = {
|
|
|
6633
6631
|
}, null, 8, ["icon"])
|
|
6634
6632
|
], 2));
|
|
6635
6633
|
}
|
|
6636
|
-
}),
|
|
6634
|
+
}), Di = {
|
|
6637
6635
|
key: 0,
|
|
6638
6636
|
class: "cl-font-bold cl-leading-8 cl-mb-8 cl-pr-8 cl-select-none cl-text-lg cl-text-secondary-default"
|
|
6639
|
-
},
|
|
6637
|
+
}, Oi = { class: "cl-flex cl-flex-wrap cl-space-y-8 cl-text-sm cl-w-full" }, Ei = /* @__PURE__ */ j({
|
|
6640
6638
|
__name: "cl-ui-navigation-group",
|
|
6641
6639
|
props: {
|
|
6642
6640
|
open: { type: Boolean }
|
|
@@ -6647,35 +6645,35 @@ const oi = {
|
|
|
6647
6645
|
"cl-hidden": !l.open
|
|
6648
6646
|
})
|
|
6649
6647
|
}, [
|
|
6650
|
-
l.$slots.title ? (u(), g("div",
|
|
6648
|
+
l.$slots.title ? (u(), g("div", Di, [
|
|
6651
6649
|
D(l.$slots, "title")
|
|
6652
6650
|
])) : U("", !0),
|
|
6653
|
-
h("div",
|
|
6651
|
+
h("div", Oi, [
|
|
6654
6652
|
D(l.$slots, "default")
|
|
6655
6653
|
])
|
|
6656
6654
|
], 2));
|
|
6657
6655
|
}
|
|
6658
|
-
}),
|
|
6656
|
+
}), Ai = {}, Mi = { class: "cl-w-full" }, Vi = {
|
|
6659
6657
|
key: 0,
|
|
6660
6658
|
class: "cl-font-bold cl-mb-4 cl-select-none"
|
|
6661
|
-
},
|
|
6662
|
-
function
|
|
6663
|
-
return u(), g("div",
|
|
6664
|
-
o.$slots.title ? (u(), g("div",
|
|
6659
|
+
}, Ii = { class: "cl-flex cl-flex-wrap cl-space-y-2" };
|
|
6660
|
+
function Ni(o, l) {
|
|
6661
|
+
return u(), g("div", Mi, [
|
|
6662
|
+
o.$slots.title ? (u(), g("div", Vi, [
|
|
6665
6663
|
D(o.$slots, "title")
|
|
6666
6664
|
])) : U("", !0),
|
|
6667
|
-
h("span",
|
|
6665
|
+
h("span", Ii, [
|
|
6668
6666
|
D(o.$slots, "default")
|
|
6669
6667
|
])
|
|
6670
6668
|
]);
|
|
6671
6669
|
}
|
|
6672
|
-
const
|
|
6673
|
-
function
|
|
6674
|
-
return u(), g("div",
|
|
6670
|
+
const Ri = /* @__PURE__ */ Te(Ai, [["render", Ni]]), Ui = {}, zi = { class: "cl-cursor-pointer cl-transition-colors cl-w-full hover:cl-text-primary-darker" };
|
|
6671
|
+
function Bi(o, l) {
|
|
6672
|
+
return u(), g("div", zi, [
|
|
6675
6673
|
D(o.$slots, "default")
|
|
6676
6674
|
]);
|
|
6677
6675
|
}
|
|
6678
|
-
const
|
|
6676
|
+
const Li = /* @__PURE__ */ Te(Ui, [["render", Bi]]), Fi = /* @__PURE__ */ j({
|
|
6679
6677
|
__name: "cl-ui-tab",
|
|
6680
6678
|
props: {
|
|
6681
6679
|
colour: { default: "default" },
|
|
@@ -6740,7 +6738,7 @@ const Fi = /* @__PURE__ */ Te(zi, [["render", Li]]), ji = /* @__PURE__ */ j({
|
|
|
6740
6738
|
])
|
|
6741
6739
|
], 2));
|
|
6742
6740
|
}
|
|
6743
|
-
}),
|
|
6741
|
+
}), ji = ["inert"], Pi = /* @__PURE__ */ j({
|
|
6744
6742
|
__name: "cl-ui-tab-header",
|
|
6745
6743
|
props: {
|
|
6746
6744
|
open: { type: Boolean },
|
|
@@ -6769,32 +6767,32 @@ const Fi = /* @__PURE__ */ Te(zi, [["render", Li]]), ji = /* @__PURE__ */ j({
|
|
|
6769
6767
|
D(e.$slots, "default", {}, () => [
|
|
6770
6768
|
ue(R(e.title), 1)
|
|
6771
6769
|
])
|
|
6772
|
-
], 10,
|
|
6770
|
+
], 10, ji));
|
|
6773
6771
|
}
|
|
6774
|
-
}),
|
|
6772
|
+
}), Hi = { key: 0 }, Gi = { class: "cl-font-bold cl-mb-4" }, Zi = /* @__PURE__ */ j({
|
|
6775
6773
|
__name: "cl-ui-tab-content",
|
|
6776
6774
|
props: {
|
|
6777
6775
|
open: { type: Boolean },
|
|
6778
6776
|
title: { default: "" }
|
|
6779
6777
|
},
|
|
6780
6778
|
setup(o) {
|
|
6781
|
-
return (l, t) => l.open ? (u(), g("div",
|
|
6779
|
+
return (l, t) => l.open ? (u(), g("div", Hi, [
|
|
6782
6780
|
l.$slots.header || l.title ? D(l.$slots, "header", { key: 0 }, () => [
|
|
6783
|
-
h("h4",
|
|
6781
|
+
h("h4", Gi, R(l.title), 1)
|
|
6784
6782
|
]) : U("", !0),
|
|
6785
6783
|
D(l.$slots, "default")
|
|
6786
6784
|
])) : U("", !0);
|
|
6787
6785
|
}
|
|
6788
|
-
}),
|
|
6786
|
+
}), Wi = [
|
|
6789
6787
|
"default",
|
|
6790
6788
|
"primary",
|
|
6791
6789
|
"secondary",
|
|
6792
6790
|
"danger",
|
|
6793
6791
|
"blue"
|
|
6794
|
-
],
|
|
6792
|
+
], Ki = [
|
|
6795
6793
|
"horizontal",
|
|
6796
6794
|
"vertical"
|
|
6797
|
-
],
|
|
6795
|
+
], Qi = { class: "cl-flex cl-flex-col cl-h-full cl-w-full" }, Yi = ["multiple", "accept", "disabled"], Ji = ["multiple", "accept", "disabled"], Xi = /* @__PURE__ */ j({
|
|
6798
6796
|
inheritAttrs: !1,
|
|
6799
6797
|
__name: "cl-ui-file-uploader",
|
|
6800
6798
|
props: {
|
|
@@ -6847,7 +6845,7 @@ const Fi = /* @__PURE__ */ Te(zi, [["render", Li]]), ji = /* @__PURE__ */ j({
|
|
|
6847
6845
|
function w() {
|
|
6848
6846
|
c.value && (c.value.value = ""), p.value && (p.value.value = "");
|
|
6849
6847
|
}
|
|
6850
|
-
return (y, f) => (u(), g("div",
|
|
6848
|
+
return (y, f) => (u(), g("div", Qi, [
|
|
6851
6849
|
y.uploaderType === "dragDrop" ? (u(), g("label", Q({ key: 0 }, y.$attrs, {
|
|
6852
6850
|
role: "button",
|
|
6853
6851
|
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", {
|
|
@@ -6869,7 +6867,7 @@ const Fi = /* @__PURE__ */ Te(zi, [["render", Li]]), ji = /* @__PURE__ */ j({
|
|
|
6869
6867
|
accept: y.acceptedFileTypes,
|
|
6870
6868
|
disabled: y.disabled,
|
|
6871
6869
|
onInput: d
|
|
6872
|
-
}, null, 40,
|
|
6870
|
+
}, null, 40, Yi),
|
|
6873
6871
|
D(y.$slots, "default")
|
|
6874
6872
|
], 16)) : (u(), g("input", {
|
|
6875
6873
|
key: 1,
|
|
@@ -6884,7 +6882,7 @@ const Fi = /* @__PURE__ */ Te(zi, [["render", Li]]), ji = /* @__PURE__ */ j({
|
|
|
6884
6882
|
accept: y.acceptedFileTypes,
|
|
6885
6883
|
disabled: y.disabled,
|
|
6886
6884
|
onInput: d
|
|
6887
|
-
}, null, 42,
|
|
6885
|
+
}, null, 42, Ji)),
|
|
6888
6886
|
a.value.length > 0 ? D(y.$slots, "invalid-files", {
|
|
6889
6887
|
key: 2,
|
|
6890
6888
|
invalidFiles: a.value
|
|
@@ -6903,7 +6901,7 @@ const Fi = /* @__PURE__ */ Te(zi, [["render", Li]]), ji = /* @__PURE__ */ j({
|
|
|
6903
6901
|
]) : U("", !0)
|
|
6904
6902
|
]));
|
|
6905
6903
|
}
|
|
6906
|
-
}),
|
|
6904
|
+
}), xi = /* @__PURE__ */ j({
|
|
6907
6905
|
inheritAttrs: !1,
|
|
6908
6906
|
__name: "cl-ui-toggle",
|
|
6909
6907
|
props: /* @__PURE__ */ de({
|
|
@@ -6955,7 +6953,7 @@ const Fi = /* @__PURE__ */ Te(zi, [["render", Li]]), ji = /* @__PURE__ */ j({
|
|
|
6955
6953
|
} : void 0
|
|
6956
6954
|
]), 1032, ["show-required-asterisk"]));
|
|
6957
6955
|
}
|
|
6958
|
-
}),
|
|
6956
|
+
}), _i = /* @__PURE__ */ j({
|
|
6959
6957
|
__name: "cl-ui-toggle-button",
|
|
6960
6958
|
props: {
|
|
6961
6959
|
isSelected: { type: Boolean },
|
|
@@ -6975,7 +6973,7 @@ const Fi = /* @__PURE__ */ Te(zi, [["render", Li]]), ji = /* @__PURE__ */ j({
|
|
|
6975
6973
|
_: 3
|
|
6976
6974
|
}, 8, ["class"]));
|
|
6977
6975
|
}
|
|
6978
|
-
}),
|
|
6976
|
+
}), eu = { class: "*:cl-cursor-pointer cl-flex cl-gap-2 cl-items-center cl-select-none" }, lu = ["id", "name", "checked"], Ot = /* @__PURE__ */ j({
|
|
6979
6977
|
__name: "cl-ui-radio",
|
|
6980
6978
|
props: {
|
|
6981
6979
|
id: {},
|
|
@@ -6984,7 +6982,7 @@ const Fi = /* @__PURE__ */ Te(zi, [["render", Li]]), ji = /* @__PURE__ */ j({
|
|
|
6984
6982
|
},
|
|
6985
6983
|
emits: ["click"],
|
|
6986
6984
|
setup(o) {
|
|
6987
|
-
return (l, t) => (u(), g("div",
|
|
6985
|
+
return (l, t) => (u(), g("div", eu, [
|
|
6988
6986
|
h("input", {
|
|
6989
6987
|
id: l.id,
|
|
6990
6988
|
name: l.name,
|
|
@@ -6992,11 +6990,11 @@ const Fi = /* @__PURE__ */ Te(zi, [["render", Li]]), ji = /* @__PURE__ */ j({
|
|
|
6992
6990
|
checked: l.checked,
|
|
6993
6991
|
class: "after:checked:cl-bg-secondary-default after:cl-h-1.5 after:cl-m-1 after:cl-rounded-full after:cl-w-1.5 checked:cl-bg-primary-default checked:cl-border-primary-darker cl-appearance-none cl-bg-clip-content cl-border cl-border-grey-3 cl-cursor-pointer cl-flex cl-gap-2 cl-h-4 cl-items-center cl-rounded-full cl-w-4",
|
|
6994
6992
|
onClick: t[0] || (t[0] = (e) => l.$emit("click"))
|
|
6995
|
-
}, null, 8,
|
|
6993
|
+
}, null, 8, lu),
|
|
6996
6994
|
D(l.$slots, "default")
|
|
6997
6995
|
]));
|
|
6998
6996
|
}
|
|
6999
|
-
}),
|
|
6997
|
+
}), tu = /* @__PURE__ */ j({
|
|
7000
6998
|
__name: "cl-ui-radio-group",
|
|
7001
6999
|
props: {
|
|
7002
7000
|
id: {},
|
|
@@ -7020,19 +7018,19 @@ const Fi = /* @__PURE__ */ Te(zi, [["render", Li]]), ji = /* @__PURE__ */ j({
|
|
|
7020
7018
|
_: 2
|
|
7021
7019
|
}, 1032, ["id", "checked", "name", "onClick"]))), 128));
|
|
7022
7020
|
}
|
|
7023
|
-
}),
|
|
7021
|
+
}), ou = {
|
|
7024
7022
|
key: 0,
|
|
7025
7023
|
class: "cl-flex-1"
|
|
7026
|
-
},
|
|
7024
|
+
}, au = {
|
|
7027
7025
|
key: 0,
|
|
7028
7026
|
class: "cl-mb-1 cl-mt-0.5"
|
|
7029
|
-
},
|
|
7027
|
+
}, nu = { class: "cl-overflow-y-auto cl-w-full" }, su = {
|
|
7030
7028
|
key: 1,
|
|
7031
7029
|
class: "cl-border-grey-2 cl-border-t cl-mt-auto cl-pt-1 cl-text-white cl-w-full hover:cl-text-secondary-default"
|
|
7032
|
-
},
|
|
7030
|
+
}, ru = {
|
|
7033
7031
|
key: 0,
|
|
7034
7032
|
class: "cl-flex cl-flex-shrink-0 cl-w-16"
|
|
7035
|
-
},
|
|
7033
|
+
}, iu = /* @__PURE__ */ j({
|
|
7036
7034
|
inheritAttrs: !1,
|
|
7037
7035
|
__name: "cl-ui-menu",
|
|
7038
7036
|
props: {
|
|
@@ -7089,7 +7087,7 @@ const Fi = /* @__PURE__ */ Te(zi, [["render", Li]]), ji = /* @__PURE__ */ j({
|
|
|
7089
7087
|
}),
|
|
7090
7088
|
onClick: s[0] || (s[0] = x(() => a(), ["stop"]))
|
|
7091
7089
|
}, null, 8, ["icon-value", "class"]),
|
|
7092
|
-
l.value && n.$slots.menuHeader ? (u(), g("div",
|
|
7090
|
+
l.value && n.$slots.menuHeader ? (u(), g("div", ou, [
|
|
7093
7091
|
D(n.$slots, "menuHeader")
|
|
7094
7092
|
])) : U("", !0)
|
|
7095
7093
|
], 34),
|
|
@@ -7109,24 +7107,24 @@ const Fi = /* @__PURE__ */ Te(zi, [["render", Li]]), ji = /* @__PURE__ */ j({
|
|
|
7109
7107
|
"cl-text-secondary-default": l.value === !1
|
|
7110
7108
|
})
|
|
7111
7109
|
}, null, 8, ["class"]),
|
|
7112
|
-
l.value ? (u(), g("div",
|
|
7110
|
+
l.value ? (u(), g("div", au, [
|
|
7113
7111
|
D(n.$slots, "searchInput")
|
|
7114
7112
|
])) : U("", !0)
|
|
7115
7113
|
], 2)) : U("", !0),
|
|
7116
|
-
h("div",
|
|
7114
|
+
h("div", nu, [
|
|
7117
7115
|
D(n.$slots, "default", me(be({ toggleOpen: r, groupIsOpen: e })))
|
|
7118
7116
|
]),
|
|
7119
|
-
n.$slots.footer ? (u(), g("div",
|
|
7117
|
+
n.$slots.footer ? (u(), g("div", su, [
|
|
7120
7118
|
D(n.$slots, "footer", me(be({ toggleOpen: r, groupIsOpen: e })))
|
|
7121
7119
|
])) : U("", !0)
|
|
7122
7120
|
], 16),
|
|
7123
|
-
m(d) === !1 && l.value ? (u(), g("div",
|
|
7121
|
+
m(d) === !1 && l.value ? (u(), g("div", ru)) : U("", !0)
|
|
7124
7122
|
], 64));
|
|
7125
7123
|
}
|
|
7126
|
-
}),
|
|
7124
|
+
}), uu = { class: "cl-overflow-hidden cl-w-full" }, cu = ["title"], du = { class: "cl-flex cl-flex-1 cl-items-center cl-justify-between" }, pu = { class: "cl-font-semibold" }, fu = { class: "cl-overflow-hidden" }, mu = {
|
|
7127
7125
|
key: 0,
|
|
7128
7126
|
class: "cl-mt-1"
|
|
7129
|
-
},
|
|
7127
|
+
}, gu = /* @__PURE__ */ j({
|
|
7130
7128
|
__name: "cl-ui-menu-group",
|
|
7131
7129
|
props: {
|
|
7132
7130
|
title: {},
|
|
@@ -7138,15 +7136,15 @@ const Fi = /* @__PURE__ */ Te(zi, [["render", Li]]), ji = /* @__PURE__ */ j({
|
|
|
7138
7136
|
setup(o) {
|
|
7139
7137
|
return (l, t) => {
|
|
7140
7138
|
const e = Se("icon");
|
|
7141
|
-
return u(), g("div",
|
|
7139
|
+
return u(), g("div", uu, [
|
|
7142
7140
|
h("div", {
|
|
7143
7141
|
class: "cl-cursor-pointer cl-flex cl-items-center cl-rounded-lg cl-text-secondary-default cl-transition-colors hover:cl-bg-primary-lighter",
|
|
7144
7142
|
title: l.title,
|
|
7145
7143
|
onClick: t[0] || (t[0] = (r) => l.$emit("toggle-open"))
|
|
7146
7144
|
}, [
|
|
7147
7145
|
q(m(rl), { "icon-value": l.iconValue }, null, 8, ["icon-value"]),
|
|
7148
|
-
se(h("div",
|
|
7149
|
-
h("span",
|
|
7146
|
+
se(h("div", du, [
|
|
7147
|
+
h("span", pu, R(l.title), 1),
|
|
7150
7148
|
l.$slots.default ? (u(), L(e, {
|
|
7151
7149
|
key: 0,
|
|
7152
7150
|
icon: l.open ? "ph:caret-up" : "ph:caret-down",
|
|
@@ -7155,9 +7153,9 @@ const Fi = /* @__PURE__ */ Te(zi, [["render", Li]]), ji = /* @__PURE__ */ j({
|
|
|
7155
7153
|
], 512), [
|
|
7156
7154
|
[fe, l.menuOpen]
|
|
7157
7155
|
])
|
|
7158
|
-
], 8,
|
|
7159
|
-
h("div",
|
|
7160
|
-
l.open && l.menuOpen === !0 ? (u(), g("div",
|
|
7156
|
+
], 8, cu),
|
|
7157
|
+
h("div", fu, [
|
|
7158
|
+
l.open && l.menuOpen === !0 ? (u(), g("div", mu, [
|
|
7161
7159
|
q(m(Et), null, {
|
|
7162
7160
|
default: V(() => [
|
|
7163
7161
|
D(l.$slots, "default")
|
|
@@ -7169,7 +7167,7 @@ const Fi = /* @__PURE__ */ Te(zi, [["render", Li]]), ji = /* @__PURE__ */ j({
|
|
|
7169
7167
|
]);
|
|
7170
7168
|
};
|
|
7171
7169
|
}
|
|
7172
|
-
}),
|
|
7170
|
+
}), vu = { class: "cl-flex cl-flex-shrink-0 cl-h-12 cl-items-center cl-justify-center cl-w-12" }, Ql = "24", rl = /* @__PURE__ */ j({
|
|
7173
7171
|
__name: "cl-ui-menu-icon",
|
|
7174
7172
|
props: {
|
|
7175
7173
|
iconValue: {}
|
|
@@ -7177,7 +7175,7 @@ const Fi = /* @__PURE__ */ Te(zi, [["render", Li]]), ji = /* @__PURE__ */ j({
|
|
|
7177
7175
|
setup(o) {
|
|
7178
7176
|
return (l, t) => {
|
|
7179
7177
|
const e = Se("icon");
|
|
7180
|
-
return u(), g("div",
|
|
7178
|
+
return u(), g("div", vu, [
|
|
7181
7179
|
q(e, {
|
|
7182
7180
|
icon: l.iconValue,
|
|
7183
7181
|
width: Ql,
|
|
@@ -7186,26 +7184,26 @@ const Fi = /* @__PURE__ */ Te(zi, [["render", Li]]), ji = /* @__PURE__ */ j({
|
|
|
7186
7184
|
]);
|
|
7187
7185
|
};
|
|
7188
7186
|
}
|
|
7189
|
-
}),
|
|
7187
|
+
}), hu = { class: "cl-flex cl-flex-row" }, bu = { class: "cl-flex cl-flex-1 cl-flex-col cl-pl-1" }, Et = /* @__PURE__ */ j({
|
|
7190
7188
|
__name: "cl-ui-menu-section",
|
|
7191
7189
|
setup(o) {
|
|
7192
|
-
return (l, t) => (u(), g("div",
|
|
7190
|
+
return (l, t) => (u(), g("div", hu, [
|
|
7193
7191
|
t[0] || (t[0] = h("div", { class: "cl-flex cl-flex-shrink-0 cl-justify-center cl-w-[47px]" }, [
|
|
7194
7192
|
h("div", { class: "cl-bg-grey-2 cl-w-[1px]" }, " ")
|
|
7195
7193
|
], -1)),
|
|
7196
|
-
h("div",
|
|
7194
|
+
h("div", bu, [
|
|
7197
7195
|
D(l.$slots, "default")
|
|
7198
7196
|
])
|
|
7199
7197
|
]));
|
|
7200
7198
|
}
|
|
7201
|
-
}),
|
|
7199
|
+
}), yu = { class: "cl-cursor-pointer cl-text-secondary-default cl-text-sm cl-transition-colors cl-w-full hover:cl-text-primary-dark" }, wu = /* @__PURE__ */ j({
|
|
7202
7200
|
__name: "cl-ui-menu-item",
|
|
7203
7201
|
setup(o) {
|
|
7204
|
-
return (l, t) => (u(), g("div",
|
|
7202
|
+
return (l, t) => (u(), g("div", yu, [
|
|
7205
7203
|
D(l.$slots, "default")
|
|
7206
7204
|
]));
|
|
7207
7205
|
}
|
|
7208
|
-
}),
|
|
7206
|
+
}), ku = ["height"], $u = ["y2"], Tu = ["y1", "y2"], Cu = /* @__PURE__ */ j({
|
|
7209
7207
|
__name: "cl-ui-tree-list-tree-path",
|
|
7210
7208
|
props: {
|
|
7211
7209
|
branchesAt: {}
|
|
@@ -7226,7 +7224,7 @@ const Fi = /* @__PURE__ */ Te(zi, [["render", Li]]), ji = /* @__PURE__ */ j({
|
|
|
7226
7224
|
x2: "50%",
|
|
7227
7225
|
y2: l.branchesAt.at(-1) ?? 0,
|
|
7228
7226
|
"stroke-linecap": "round"
|
|
7229
|
-
}, null, 8,
|
|
7227
|
+
}, null, 8, $u),
|
|
7230
7228
|
(u(!0), g(K, null, _(e.branchesAt, (a, i) => (u(), g("line", {
|
|
7231
7229
|
key: i,
|
|
7232
7230
|
x1: "50%",
|
|
@@ -7234,14 +7232,14 @@ const Fi = /* @__PURE__ */ Te(zi, [["render", Li]]), ji = /* @__PURE__ */ j({
|
|
|
7234
7232
|
x2: "100%",
|
|
7235
7233
|
y2: a,
|
|
7236
7234
|
"stroke-linecap": "round"
|
|
7237
|
-
}, null, 8,
|
|
7238
|
-
], 8,
|
|
7235
|
+
}, null, 8, Tu))), 128))
|
|
7236
|
+
], 8, ku));
|
|
7239
7237
|
}
|
|
7240
7238
|
});
|
|
7241
|
-
function
|
|
7239
|
+
function Su(...o) {
|
|
7242
7240
|
return o.map((l) => l.replace(/ /g, "_")).join(" ");
|
|
7243
7241
|
}
|
|
7244
|
-
function
|
|
7242
|
+
function qu(o, l) {
|
|
7245
7243
|
var r;
|
|
7246
7244
|
const t = l.split(" ");
|
|
7247
7245
|
let e;
|
|
@@ -7250,13 +7248,13 @@ function Du(o, l) {
|
|
|
7250
7248
|
break;
|
|
7251
7249
|
return e ?? null;
|
|
7252
7250
|
}
|
|
7253
|
-
const
|
|
7251
|
+
const Du = { class: "cl-flex cl-flex-nowrap cl-flex-row cl-w-full" }, Ou = { class: "cl-h-8 cl-px-1.5 cl-py-[3px] cl-w-8" }, Eu = ["id"], Au = {
|
|
7254
7252
|
key: 0,
|
|
7255
7253
|
class: "cl-w-8"
|
|
7256
|
-
},
|
|
7254
|
+
}, Mu = ["id"], Vu = ["id"], Iu = {
|
|
7257
7255
|
key: 3,
|
|
7258
7256
|
class: "cl-basis-full cl-flex cl-flex-col cl-gap-2 cl-pt-2"
|
|
7259
|
-
},
|
|
7257
|
+
}, Nu = /* @__PURE__ */ j({
|
|
7260
7258
|
__name: "cl-ui-tree-list-subtree",
|
|
7261
7259
|
props: /* @__PURE__ */ de({
|
|
7262
7260
|
idPrefix: {},
|
|
@@ -7271,7 +7269,7 @@ const Ou = { class: "cl-flex cl-flex-nowrap cl-flex-row cl-w-full" }, Eu = { cla
|
|
|
7271
7269
|
emits: /* @__PURE__ */ de(["recalculate-tree-path", "set-child-node-height"], ["update:selectedPath"]),
|
|
7272
7270
|
setup(o, { emit: l }) {
|
|
7273
7271
|
var A;
|
|
7274
|
-
const t = o, e = ke(o, "selectedPath"), r = l, a = k(() =>
|
|
7272
|
+
const t = o, e = ke(o, "selectedPath"), r = l, a = k(() => Su(...t.pathFragments)), i = Nt(t.rootNode.expanded) ? t.rootNode.expanded : M(t.rootNode.expanded ?? !1), d = M(), { height: b } = Nl(d), n = bl(d), s = M([]), c = k(() => s.value.map((E) => Nl(E))), p = k(() => s.value.map((E) => bl(E))), w = M(new Array(((A = t.rootNode.children) == null ? void 0 : A.length) ?? 0).fill(0)), y = M([]);
|
|
7275
7273
|
function f() {
|
|
7276
7274
|
n.update(), y.value = p.value.map((E, S) => (E.update(), E.top.value - n.bottom.value + w.value[S] / 2 + 3)), r("recalculate-tree-path");
|
|
7277
7275
|
}
|
|
@@ -7287,8 +7285,8 @@ const Ou = { class: "cl-flex cl-flex-nowrap cl-flex-row cl-w-full" }, Eu = { cla
|
|
|
7287
7285
|
deep: !0
|
|
7288
7286
|
}), Ge(C), (E, S) => {
|
|
7289
7287
|
const P = Se("icon"), I = Se("cl-ui-tree-list-subtree", !0);
|
|
7290
|
-
return u(), g("div",
|
|
7291
|
-
h("div",
|
|
7288
|
+
return u(), g("div", Du, [
|
|
7289
|
+
h("div", Ou, [
|
|
7292
7290
|
E.rootNode.children && E.rootNode.children.length > 0 ? (u(), g("button", {
|
|
7293
7291
|
key: 0,
|
|
7294
7292
|
id: `${E.idPrefix}-expand-button`,
|
|
@@ -7298,9 +7296,9 @@ const Ou = { class: "cl-flex cl-flex-nowrap cl-flex-row cl-w-full" }, Eu = { cla
|
|
|
7298
7296
|
q(P, {
|
|
7299
7297
|
icon: m(i) ? "ph:minus-square" : "ph:plus-square"
|
|
7300
7298
|
}, null, 8, ["icon"])
|
|
7301
|
-
], 8,
|
|
7299
|
+
], 8, Eu)) : U("", !0)
|
|
7302
7300
|
]),
|
|
7303
|
-
E.depth > 0 ? (u(), g("div",
|
|
7301
|
+
E.depth > 0 ? (u(), g("div", Au)) : U("", !0),
|
|
7304
7302
|
h("div", {
|
|
7305
7303
|
class: O(["cl-basis-full cl-relative", {
|
|
7306
7304
|
"cl-tree-list-selection": e.value === a.value
|
|
@@ -7322,7 +7320,7 @@ const Ou = { class: "cl-flex cl-flex-nowrap cl-flex-row cl-w-full" }, Eu = { cla
|
|
|
7322
7320
|
isExpanded: m(i),
|
|
7323
7321
|
expand: ($) => i.value = $
|
|
7324
7322
|
})
|
|
7325
|
-
], 8,
|
|
7323
|
+
], 8, Mu)) : (u(), g("button", {
|
|
7326
7324
|
key: 1,
|
|
7327
7325
|
id: `${E.idPrefix}-node-content`,
|
|
7328
7326
|
ref_key: "nodeContentDiv",
|
|
@@ -7342,13 +7340,13 @@ const Ou = { class: "cl-flex cl-flex-nowrap cl-flex-row cl-w-full" }, Eu = { cla
|
|
|
7342
7340
|
isExpanded: m(i),
|
|
7343
7341
|
expand: ($) => i.value = $
|
|
7344
7342
|
})
|
|
7345
|
-
], 10,
|
|
7346
|
-
E.rootNode.children && E.rootNode.children.length > 0 && m(i) ? (u(), L(
|
|
7343
|
+
], 10, Vu)),
|
|
7344
|
+
E.rootNode.children && E.rootNode.children.length > 0 && m(i) ? (u(), L(Cu, {
|
|
7347
7345
|
key: 2,
|
|
7348
7346
|
class: "cl-tree-list-path",
|
|
7349
7347
|
"branches-at": y.value
|
|
7350
7348
|
}, null, 8, ["branches-at"])) : U("", !0),
|
|
7351
|
-
E.rootNode.children && E.rootNode.children.length > 0 && m(i) ? (u(), g("div",
|
|
7349
|
+
E.rootNode.children && E.rootNode.children.length > 0 && m(i) ? (u(), g("div", Iu, [
|
|
7352
7350
|
(u(!0), g(K, null, _(E.rootNode.children, ($, W) => (u(), g("div", {
|
|
7353
7351
|
key: $.id,
|
|
7354
7352
|
ref_for: !0,
|
|
@@ -7379,7 +7377,7 @@ const Ou = { class: "cl-flex cl-flex-nowrap cl-flex-row cl-w-full" }, Eu = { cla
|
|
|
7379
7377
|
]);
|
|
7380
7378
|
};
|
|
7381
7379
|
}
|
|
7382
|
-
}),
|
|
7380
|
+
}), Ru = { class: "cl-flex cl-flex-col cl-flex-nowrap cl-gap-4 cl-w-full" }, Uu = /* @__PURE__ */ j({
|
|
7383
7381
|
__name: "cl-ui-tree-list",
|
|
7384
7382
|
props: {
|
|
7385
7383
|
idPrefix: {},
|
|
@@ -7393,11 +7391,11 @@ const Ou = { class: "cl-flex cl-flex-nowrap cl-flex-row cl-w-full" }, Eu = { cla
|
|
|
7393
7391
|
const t = o, e = l, r = M(""), a = k({
|
|
7394
7392
|
get: () => t.allowSelect ? r.value : null,
|
|
7395
7393
|
set(i) {
|
|
7396
|
-
i ? (r.value = i, e("select",
|
|
7394
|
+
i ? (r.value = i, e("select", qu(t.rootNodes, i))) : t.allowDeselect && (r.value = "", e("select", null));
|
|
7397
7395
|
}
|
|
7398
7396
|
});
|
|
7399
|
-
return (i, d) => (u(), g("div",
|
|
7400
|
-
(u(!0), g(K, null, _(i.rootNodes, (b, n) => (u(), L(
|
|
7397
|
+
return (i, d) => (u(), g("div", Ru, [
|
|
7398
|
+
(u(!0), g(K, null, _(i.rootNodes, (b, n) => (u(), L(Nu, {
|
|
7401
7399
|
key: b.id,
|
|
7402
7400
|
"selected-path": a.value,
|
|
7403
7401
|
"onUpdate:selectedPath": d[0] || (d[0] = (s) => a.value = s),
|
|
@@ -7419,25 +7417,25 @@ const Ou = { class: "cl-flex cl-flex-nowrap cl-flex-row cl-w-full" }, Eu = { cla
|
|
|
7419
7417
|
]), 1032, ["selected-path", "class", "root-node", "breadth", "id-prefix", "path-fragments"]))), 128))
|
|
7420
7418
|
]));
|
|
7421
7419
|
}
|
|
7422
|
-
}),
|
|
7420
|
+
}), zu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7423
7421
|
__proto__: null,
|
|
7424
7422
|
FilterOperation: ne,
|
|
7425
7423
|
allQuickDates: ft,
|
|
7426
|
-
buttonColours:
|
|
7427
|
-
buttonSizes:
|
|
7428
|
-
cardSizes:
|
|
7424
|
+
buttonColours: mo,
|
|
7425
|
+
buttonSizes: go,
|
|
7426
|
+
cardSizes: bo,
|
|
7429
7427
|
clUISlectInput: bt,
|
|
7430
7428
|
clUiAccordion: Jt,
|
|
7431
7429
|
clUiAccordionHeader: ao,
|
|
7432
7430
|
clUiAccordionItem: eo,
|
|
7433
7431
|
clUiApp: io,
|
|
7434
7432
|
clUiButton: Ce,
|
|
7435
|
-
clUiCard:
|
|
7436
|
-
clUiComboBox:
|
|
7437
|
-
clUiFileUploader:
|
|
7438
|
-
clUiFooter:
|
|
7439
|
-
clUiGrid:
|
|
7440
|
-
clUiGridLite:
|
|
7433
|
+
clUiCard: ho,
|
|
7434
|
+
clUiComboBox: Jo,
|
|
7435
|
+
clUiFileUploader: Xi,
|
|
7436
|
+
clUiFooter: sa,
|
|
7437
|
+
clUiGrid: Gs,
|
|
7438
|
+
clUiGridLite: Ks,
|
|
7441
7439
|
clUiGridLiteBody: Ct,
|
|
7442
7440
|
clUiGridLiteBodySkeleton: $t,
|
|
7443
7441
|
clUiGridLiteCell: St,
|
|
@@ -7445,68 +7443,68 @@ const Ou = { class: "cl-flex cl-flex-nowrap cl-flex-row cl-w-full" }, Eu = { cla
|
|
|
7445
7443
|
clUiGridLiteFooterSkeleton: qt,
|
|
7446
7444
|
clUiGridLiteHeader: kt,
|
|
7447
7445
|
clUiGridLiteRow: Tt,
|
|
7448
|
-
clUiHeader:
|
|
7449
|
-
clUiHeaderMenu:
|
|
7450
|
-
clUiInput:
|
|
7446
|
+
clUiHeader: br,
|
|
7447
|
+
clUiHeaderMenu: Sr,
|
|
7448
|
+
clUiInput: xr,
|
|
7451
7449
|
clUiInputCheckbox: cl,
|
|
7452
7450
|
clUiInputDateRange: gt,
|
|
7453
7451
|
clUiInputDateRangeInput: Vl,
|
|
7454
7452
|
clUiInputDateTime: ht,
|
|
7455
7453
|
clUiInputNumber: ll,
|
|
7456
|
-
clUiInputRange:
|
|
7454
|
+
clUiInputRange: Hn,
|
|
7457
7455
|
clUiInputText: ze,
|
|
7458
|
-
clUiInputTextArea:
|
|
7459
|
-
clUiLanguageSwitcher:
|
|
7456
|
+
clUiInputTextArea: In,
|
|
7457
|
+
clUiLanguageSwitcher: si,
|
|
7460
7458
|
clUiLoadingSpinner: _e,
|
|
7461
|
-
clUiLogin:
|
|
7462
|
-
clUiMenu:
|
|
7463
|
-
clUiMenuGroup:
|
|
7459
|
+
clUiLogin: yi,
|
|
7460
|
+
clUiMenu: iu,
|
|
7461
|
+
clUiMenuGroup: gu,
|
|
7464
7462
|
clUiMenuIcon: rl,
|
|
7465
|
-
clUiMenuItem:
|
|
7463
|
+
clUiMenuItem: wu,
|
|
7466
7464
|
clUiMenuSection: Et,
|
|
7467
7465
|
clUiModal: nt,
|
|
7468
|
-
clUiNavigation:
|
|
7469
|
-
clUiNavigationGroup:
|
|
7470
|
-
clUiNavigationIcon:
|
|
7471
|
-
clUiNavigationItem:
|
|
7472
|
-
clUiNavigationSection:
|
|
7466
|
+
clUiNavigation: Si,
|
|
7467
|
+
clUiNavigationGroup: Ei,
|
|
7468
|
+
clUiNavigationIcon: qi,
|
|
7469
|
+
clUiNavigationItem: Li,
|
|
7470
|
+
clUiNavigationSection: Ri,
|
|
7473
7471
|
clUiNotification: at,
|
|
7474
7472
|
clUiRadio: Ot,
|
|
7475
|
-
clUiRadioGroup:
|
|
7473
|
+
clUiRadioGroup: tu,
|
|
7476
7474
|
clUiSelect: wl,
|
|
7477
7475
|
clUiSelectOption: kl,
|
|
7478
|
-
clUiTab:
|
|
7479
|
-
clUiTabContent:
|
|
7480
|
-
clUiTabHeader:
|
|
7481
|
-
clUiToggle:
|
|
7482
|
-
clUiToggleButton:
|
|
7483
|
-
clUiTreeList:
|
|
7476
|
+
clUiTab: Fi,
|
|
7477
|
+
clUiTabContent: Zi,
|
|
7478
|
+
clUiTabHeader: Pi,
|
|
7479
|
+
clUiToggle: xi,
|
|
7480
|
+
clUiToggleButton: _i,
|
|
7481
|
+
clUiTreeList: Uu,
|
|
7484
7482
|
currentQuickDates: Qe,
|
|
7485
7483
|
dateTimeCalendarTypes: vt,
|
|
7486
|
-
filterMethodTypes:
|
|
7484
|
+
filterMethodTypes: ls,
|
|
7487
7485
|
futureQuickDates: sl,
|
|
7488
|
-
gridColumnTypes:
|
|
7489
|
-
headerColour:
|
|
7490
|
-
inputTextTypes:
|
|
7491
|
-
inputTypes:
|
|
7492
|
-
isComboBoxCreateRequest:
|
|
7493
|
-
isComboBoxItem:
|
|
7494
|
-
isFilterRequest:
|
|
7495
|
-
isFilterResponse:
|
|
7486
|
+
gridColumnTypes: xn,
|
|
7487
|
+
headerColour: qr,
|
|
7488
|
+
inputTextTypes: Vn,
|
|
7489
|
+
inputTypes: _r,
|
|
7490
|
+
isComboBoxCreateRequest: xo,
|
|
7491
|
+
isComboBoxItem: Xo,
|
|
7492
|
+
isFilterRequest: as,
|
|
7493
|
+
isFilterResponse: ns,
|
|
7496
7494
|
isGridColumn: yt,
|
|
7497
|
-
isGridColumnArray:
|
|
7498
|
-
isLanguageArray:
|
|
7495
|
+
isGridColumnArray: _n,
|
|
7496
|
+
isLanguageArray: ei,
|
|
7499
7497
|
isLanguageLocaleFormat: $l,
|
|
7500
|
-
modalColours:
|
|
7501
|
-
modalSizes:
|
|
7498
|
+
modalColours: ki,
|
|
7499
|
+
modalSizes: wi,
|
|
7502
7500
|
pastQuickDates: nl,
|
|
7503
|
-
popoverPlacements:
|
|
7504
|
-
quickDateNames:
|
|
7505
|
-
stringFormats:
|
|
7506
|
-
tabColours:
|
|
7507
|
-
tabLayout:
|
|
7508
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
7509
|
-
o.use(qe), o.component("Icon", le), Object.entries(
|
|
7501
|
+
popoverPlacements: Gn,
|
|
7502
|
+
quickDateNames: En,
|
|
7503
|
+
stringFormats: es,
|
|
7504
|
+
tabColours: Wi,
|
|
7505
|
+
tabLayout: Ki
|
|
7506
|
+
}, Symbol.toStringTag, { value: "Module" })), _u = (o) => {
|
|
7507
|
+
o.use(qe), o.component("Icon", le), Object.entries(zu).forEach(([
|
|
7510
7508
|
l,
|
|
7511
7509
|
t
|
|
7512
7510
|
]) => {
|
|
@@ -7514,26 +7512,26 @@ const Ou = { class: "cl-flex cl-flex-nowrap cl-flex-row cl-w-full" }, Eu = { cla
|
|
|
7514
7512
|
});
|
|
7515
7513
|
};
|
|
7516
7514
|
export {
|
|
7517
|
-
|
|
7515
|
+
xu as CitrusLimeUI,
|
|
7518
7516
|
ie as DateFormat,
|
|
7519
7517
|
ne as FilterOperation,
|
|
7520
7518
|
ae as NumberFormat,
|
|
7521
7519
|
ft as allQuickDates,
|
|
7522
|
-
|
|
7523
|
-
|
|
7524
|
-
|
|
7520
|
+
mo as buttonColours,
|
|
7521
|
+
go as buttonSizes,
|
|
7522
|
+
bo as cardSizes,
|
|
7525
7523
|
bt as clUISlectInput,
|
|
7526
7524
|
Jt as clUiAccordion,
|
|
7527
7525
|
ao as clUiAccordionHeader,
|
|
7528
7526
|
eo as clUiAccordionItem,
|
|
7529
7527
|
io as clUiApp,
|
|
7530
7528
|
Ce as clUiButton,
|
|
7531
|
-
|
|
7532
|
-
|
|
7533
|
-
|
|
7534
|
-
|
|
7535
|
-
|
|
7536
|
-
|
|
7529
|
+
ho as clUiCard,
|
|
7530
|
+
Jo as clUiComboBox,
|
|
7531
|
+
Xi as clUiFileUploader,
|
|
7532
|
+
sa as clUiFooter,
|
|
7533
|
+
Gs as clUiGrid,
|
|
7534
|
+
Ks as clUiGridLite,
|
|
7537
7535
|
Ct as clUiGridLiteBody,
|
|
7538
7536
|
$t as clUiGridLiteBodySkeleton,
|
|
7539
7537
|
St as clUiGridLiteCell,
|
|
@@ -7541,84 +7539,84 @@ export {
|
|
|
7541
7539
|
qt as clUiGridLiteFooterSkeleton,
|
|
7542
7540
|
kt as clUiGridLiteHeader,
|
|
7543
7541
|
Tt as clUiGridLiteRow,
|
|
7544
|
-
|
|
7545
|
-
|
|
7546
|
-
|
|
7542
|
+
br as clUiHeader,
|
|
7543
|
+
Sr as clUiHeaderMenu,
|
|
7544
|
+
xr as clUiInput,
|
|
7547
7545
|
cl as clUiInputCheckbox,
|
|
7548
7546
|
gt as clUiInputDateRange,
|
|
7549
7547
|
Vl as clUiInputDateRangeInput,
|
|
7550
7548
|
ht as clUiInputDateTime,
|
|
7551
7549
|
ll as clUiInputNumber,
|
|
7552
|
-
|
|
7550
|
+
Hn as clUiInputRange,
|
|
7553
7551
|
ze as clUiInputText,
|
|
7554
|
-
|
|
7555
|
-
|
|
7552
|
+
In as clUiInputTextArea,
|
|
7553
|
+
si as clUiLanguageSwitcher,
|
|
7556
7554
|
_e as clUiLoadingSpinner,
|
|
7557
|
-
|
|
7558
|
-
|
|
7559
|
-
|
|
7555
|
+
yi as clUiLogin,
|
|
7556
|
+
iu as clUiMenu,
|
|
7557
|
+
gu as clUiMenuGroup,
|
|
7560
7558
|
rl as clUiMenuIcon,
|
|
7561
|
-
|
|
7559
|
+
wu as clUiMenuItem,
|
|
7562
7560
|
Et as clUiMenuSection,
|
|
7563
7561
|
nt as clUiModal,
|
|
7564
|
-
|
|
7565
|
-
|
|
7566
|
-
|
|
7567
|
-
|
|
7568
|
-
|
|
7562
|
+
Si as clUiNavigation,
|
|
7563
|
+
Ei as clUiNavigationGroup,
|
|
7564
|
+
qi as clUiNavigationIcon,
|
|
7565
|
+
Li as clUiNavigationItem,
|
|
7566
|
+
Ri as clUiNavigationSection,
|
|
7569
7567
|
at as clUiNotification,
|
|
7570
7568
|
Ot as clUiRadio,
|
|
7571
|
-
|
|
7569
|
+
tu as clUiRadioGroup,
|
|
7572
7570
|
wl as clUiSelect,
|
|
7573
7571
|
kl as clUiSelectOption,
|
|
7574
|
-
|
|
7575
|
-
|
|
7576
|
-
|
|
7577
|
-
|
|
7578
|
-
|
|
7579
|
-
|
|
7572
|
+
Fi as clUiTab,
|
|
7573
|
+
Zi as clUiTabContent,
|
|
7574
|
+
Pi as clUiTabHeader,
|
|
7575
|
+
xi as clUiToggle,
|
|
7576
|
+
_i as clUiToggleButton,
|
|
7577
|
+
Uu as clUiTreeList,
|
|
7580
7578
|
Qe as currentQuickDates,
|
|
7581
7579
|
vt as dateTimeCalendarTypes,
|
|
7582
|
-
|
|
7583
|
-
|
|
7584
|
-
|
|
7585
|
-
|
|
7580
|
+
Sa as datetimeFormats,
|
|
7581
|
+
_u as default,
|
|
7582
|
+
Oa as doesNumberStringContainPart,
|
|
7583
|
+
ls as filterMethodTypes,
|
|
7586
7584
|
Ve as formatNumber,
|
|
7587
7585
|
ml as formatNumberAsDecimal,
|
|
7588
7586
|
De as formatNumberAsInteger,
|
|
7589
7587
|
sl as futureQuickDates,
|
|
7590
7588
|
Dl as getMergedFormatOptions,
|
|
7591
|
-
|
|
7592
|
-
|
|
7589
|
+
xn as gridColumnTypes,
|
|
7590
|
+
qr as headerColour,
|
|
7593
7591
|
qe as i18n,
|
|
7594
|
-
|
|
7595
|
-
|
|
7596
|
-
|
|
7597
|
-
|
|
7598
|
-
|
|
7599
|
-
|
|
7592
|
+
Vn as inputTextTypes,
|
|
7593
|
+
_r as inputTypes,
|
|
7594
|
+
xo as isComboBoxCreateRequest,
|
|
7595
|
+
Xo as isComboBoxItem,
|
|
7596
|
+
as as isFilterRequest,
|
|
7597
|
+
ns as isFilterResponse,
|
|
7600
7598
|
yt as isGridColumn,
|
|
7601
|
-
|
|
7602
|
-
|
|
7599
|
+
_n as isGridColumnArray,
|
|
7600
|
+
ei as isLanguageArray,
|
|
7603
7601
|
$l as isLanguageLocaleFormat,
|
|
7604
|
-
|
|
7605
|
-
|
|
7606
|
-
|
|
7607
|
-
|
|
7602
|
+
Ta as messages,
|
|
7603
|
+
ki as modalColours,
|
|
7604
|
+
wi as modalSizes,
|
|
7605
|
+
Ca as numberFormats,
|
|
7608
7606
|
nl as pastQuickDates,
|
|
7609
|
-
|
|
7610
|
-
|
|
7611
|
-
|
|
7612
|
-
|
|
7613
|
-
|
|
7614
|
-
|
|
7615
|
-
|
|
7607
|
+
Gn as popoverPlacements,
|
|
7608
|
+
En as quickDateNames,
|
|
7609
|
+
Ma as scrubGroupSeparatorsFromFormattedValue,
|
|
7610
|
+
Xu as setCurrentLocale,
|
|
7611
|
+
Ju as setLocaleDateTimeFormats,
|
|
7612
|
+
Qu as setLocaleMessages,
|
|
7613
|
+
Yu as setLocaleNumberFormats,
|
|
7616
7614
|
Rl as showNotification,
|
|
7617
|
-
|
|
7618
|
-
|
|
7619
|
-
|
|
7615
|
+
es as stringFormats,
|
|
7616
|
+
Wi as tabColours,
|
|
7617
|
+
Ki as tabLayout,
|
|
7620
7618
|
st as unformatNumber,
|
|
7621
|
-
|
|
7622
|
-
|
|
7623
|
-
|
|
7619
|
+
Ua as validateEmail,
|
|
7620
|
+
Na as validateMaxValue,
|
|
7621
|
+
Ia as validateMinValue
|
|
7624
7622
|
};
|