@citruslime/ui 4.0.0-beta.8 → 4.0.0-beta.9
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 +314 -318
- package/dist/citrus-lime-ui.umd.js +2 -2
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Icon as le } from "@iconify/vue";
|
|
2
|
-
import { defineComponent as j, ref as V, openBlock as u, createElementBlock as g, renderSlot as D, normalizeProps as me, guardReactiveProps as be, Fragment as K, createElementVNode as h, normalizeClass as
|
|
2
|
+
import { defineComponent as j, ref as V, openBlock as u, createElementBlock as g, renderSlot as D, normalizeProps as me, guardReactiveProps as be, Fragment as K, createElementVNode as h, normalizeClass as E, createVNode as q, unref as m, Transition as Ne, withCtx as M, withDirectives as se, mergeProps as Q, vShow as fe, createBlock as L, Teleport as Tl, renderList as _, toDisplayString as R, createCommentVNode as U, computed as $, createTextVNode as ue, mergeModels as de, useModel as ke, createSlots as ye, vModelDynamic as Yl, watch as te, toRefs as Jl, withKeys as re, onMounted as Ge, onUnmounted as Cl, withModifiers as x, nextTick as Fe, useAttrs as Ze, resolveComponent as Se, inject as il, vModelCheckbox as At, toValue as Il, watchEffect as Vt, vModelText as Sl, useCssVars as Xl, toHandlers as Mt, useSlots as It, provide as vl, normalizeStyle as xl, isRef as Nt } from "vue";
|
|
3
3
|
import { generateStringId as Rt, highlightText as Ut, validateEmail as zt, escapeStringForRegExp as Bt } from "@citruslime/utils";
|
|
4
4
|
import { onKeyDown as hl, unrefElement as Lt, tryOnScopeDispose as Ft, onClickOutside as xe, useTimeoutFn as _l, useMouseInElement as jt, useFocusWithin as Pt, useMediaQuery as et, useThrottle as Ht, useElementBounding as bl, useDebounceFn as Je, useBreakpoints as lt, breakpointsTailwind as tt, useThrottleFn as Gt, useWindowSize as Zt, useElementSize as Nl } from "@vueuse/core";
|
|
5
5
|
import { useI18n as ce, createI18n as Wt } from "vue-i18n";
|
|
@@ -47,7 +47,7 @@ const Yt = { class: "cl-overflow-hidden" }, Jt = /* @__PURE__ */ j({
|
|
|
47
47
|
}
|
|
48
48
|
return (a, i) => (u(), g(K, null, [
|
|
49
49
|
h("div", {
|
|
50
|
-
class:
|
|
50
|
+
class: E(["cl-border-b cl-border-grey-1 cl-relative", {
|
|
51
51
|
"cl-bg-grey-0": a.disabled,
|
|
52
52
|
"cl-cursor-pointer": !a.disabled
|
|
53
53
|
}]),
|
|
@@ -55,7 +55,7 @@ const Yt = { class: "cl-overflow-hidden" }, Jt = /* @__PURE__ */ j({
|
|
|
55
55
|
}, [
|
|
56
56
|
h("div", Xt, [
|
|
57
57
|
q(m(le), {
|
|
58
|
-
class:
|
|
58
|
+
class: E(["cl-duration-300 cl-ease-in-out cl-text-grey-3 cl-transform-gpu cl-transition-transform", {
|
|
59
59
|
"cl-rotate-180": a.open
|
|
60
60
|
}]),
|
|
61
61
|
icon: "ph:caret-down-bold",
|
|
@@ -113,7 +113,7 @@ const no = ["onClick"], so = { class: "cl-flex-1 cl-select-none cl-text-ellipsis
|
|
|
113
113
|
setup(o) {
|
|
114
114
|
return (l, t) => (u(), L(Tl, { to: l.container }, [
|
|
115
115
|
h("div", {
|
|
116
|
-
class:
|
|
116
|
+
class: E(["cl-fixed cl-w-80 cl-z-50", {
|
|
117
117
|
"cl-top-[5.5rem] cl-left-5": l.position === "top-left" && l.headerVisible,
|
|
118
118
|
"cl-top-[5.5rem] cl-left-1/2": l.position === "top-centre" && l.headerVisible,
|
|
119
119
|
"cl-top-[5.5rem] cl-right-5": l.position === "top-right" && l.headerVisible,
|
|
@@ -160,14 +160,14 @@ const no = ["onClick"], so = { class: "cl-flex-1 cl-select-none cl-text-ellipsis
|
|
|
160
160
|
h("div", ro, [
|
|
161
161
|
D(l.$slots, "header"),
|
|
162
162
|
h("div", {
|
|
163
|
-
class:
|
|
163
|
+
class: E(["cl-content-start cl-flex cl-flex-nowrap cl-h-dscreen cl-items-stretch cl-max-h-full cl-relative cl-w-full xl:cl-max-h-screen", {
|
|
164
164
|
"cl-pt-20": l.$slots.header
|
|
165
165
|
}])
|
|
166
166
|
}, [
|
|
167
167
|
D(l.$slots, "navigation"),
|
|
168
168
|
h("div", {
|
|
169
169
|
id: "cl-ui-app-container",
|
|
170
|
-
class:
|
|
170
|
+
class: E(["cl-grow cl-max-h-full cl-overflow-x-hidden cl-overflow-y-auto cl-overscroll-y-none cl-w-auto", {
|
|
171
171
|
"lg:cl-pb-0": l.removePadding,
|
|
172
172
|
"lg:cl-pb-8 md:cl-px-8 cl-px-2 md:cl-pt-8 cl-pt-2": !l.removePadding
|
|
173
173
|
}])
|
|
@@ -222,7 +222,7 @@ const _e = /* @__PURE__ */ Te(uo, [["render", po], ["__scopeId", "data-v-a21dc5d
|
|
|
222
222
|
"hover:cl-bg-orange-dark hover:cl-border-orange-dark": e.colour === "orange" && !e.disabled && !e.loading,
|
|
223
223
|
"cl-border-grey-3 cl-bg-grey-3 cl-text-grey-0 hover:cl-bg-grey-3 hover:cl-border-grey-3 cl-cursor-default": e.disabled
|
|
224
224
|
}],
|
|
225
|
-
disabled: e.disabled
|
|
225
|
+
disabled: e.disabled || e.loading
|
|
226
226
|
}), [
|
|
227
227
|
D(e.$slots, "default"),
|
|
228
228
|
e.loading ? (u(), g("div", mo, [
|
|
@@ -249,7 +249,7 @@ const _e = /* @__PURE__ */ Te(uo, [["render", po], ["__scopeId", "data-v-a21dc5d
|
|
|
249
249
|
},
|
|
250
250
|
setup(o) {
|
|
251
251
|
return (l, t) => (u(), g("div", {
|
|
252
|
-
class:
|
|
252
|
+
class: E(["cl-border cl-border-transparent cl-overflow-hidden cl-relative cl-rounded-md cl-shadow-lg cl-transition-all", {
|
|
253
253
|
"cl-cursor-pointer hover:cl-shadow-xl hover:cl-border-grey-0": l.hover
|
|
254
254
|
}])
|
|
255
255
|
}, [
|
|
@@ -258,7 +258,7 @@ const _e = /* @__PURE__ */ Te(uo, [["render", po], ["__scopeId", "data-v-a21dc5d
|
|
|
258
258
|
])) : U("", !0),
|
|
259
259
|
l.$slots.title ? (u(), g("div", {
|
|
260
260
|
key: 1,
|
|
261
|
-
class:
|
|
261
|
+
class: E(["cl-border-grey-2 cl-font-normal", {
|
|
262
262
|
"cl-p-2 cl-text-2xl cl-leading-8": l.size === "small",
|
|
263
263
|
"cl-p-4 cl-text-3xl cl-leading-9": l.size === "medium",
|
|
264
264
|
"cl-p-6 cl-text-4xl cl-leading-10": l.size === "large",
|
|
@@ -268,7 +268,7 @@ const _e = /* @__PURE__ */ Te(uo, [["render", po], ["__scopeId", "data-v-a21dc5d
|
|
|
268
268
|
D(l.$slots, "title")
|
|
269
269
|
], 2)) : U("", !0),
|
|
270
270
|
h("div", {
|
|
271
|
-
class:
|
|
271
|
+
class: E(["cl-border-grey-2", {
|
|
272
272
|
"cl-p-2": l.size === "small",
|
|
273
273
|
"cl-p-4": l.size === "medium",
|
|
274
274
|
"cl-p-6": l.size === "large",
|
|
@@ -279,7 +279,7 @@ const _e = /* @__PURE__ */ Te(uo, [["render", po], ["__scopeId", "data-v-a21dc5d
|
|
|
279
279
|
], 2),
|
|
280
280
|
l.$slots.footer ? (u(), g("div", {
|
|
281
281
|
key: 2,
|
|
282
|
-
class:
|
|
282
|
+
class: E(["cl-border-grey-2 cl-border-t", {
|
|
283
283
|
"cl-p-2": l.size === "small",
|
|
284
284
|
"cl-p-4": l.size === "medium",
|
|
285
285
|
"cl-p-6": l.size === "large"
|
|
@@ -316,7 +316,7 @@ const _e = /* @__PURE__ */ Te(uo, [["render", po], ["__scopeId", "data-v-a21dc5d
|
|
|
316
316
|
const l = o, t = $(() => Object.keys(l.errors ?? []).length > 0);
|
|
317
317
|
return (e, r) => (u(), g("div", wo, [
|
|
318
318
|
h("div", {
|
|
319
|
-
class:
|
|
319
|
+
class: E(["cl-flex", { "cl-flex-col": e.labelPosition === "above", "cl-flex-row-reverse cl-gap-2 cl-items-center cl-justify-end": e.labelPosition === "right" }])
|
|
320
320
|
}, [
|
|
321
321
|
h("div", ko, [
|
|
322
322
|
e.$slots.label ? (u(), g("span", $o, [
|
|
@@ -511,7 +511,7 @@ const Vo = {
|
|
|
511
511
|
}]
|
|
512
512
|
}), [
|
|
513
513
|
se(h("div", {
|
|
514
|
-
class:
|
|
514
|
+
class: E(["cl-absolute cl-cursor-pointer cl-right-4 cl-top-4 cl-transition-colors cl-w-3", {
|
|
515
515
|
"cl-text-white hover:cl-text-off-white": n.headerColour === "secondary",
|
|
516
516
|
"cl-text-secondary hover:cl-text-off-white": n.headerColour === "primary",
|
|
517
517
|
"cl-text-black hover:cl-text-grey-7": n.headerColour === "white"
|
|
@@ -525,7 +525,7 @@ const Vo = {
|
|
|
525
525
|
[fe, !n.preventClose]
|
|
526
526
|
]),
|
|
527
527
|
h("div", {
|
|
528
|
-
class:
|
|
528
|
+
class: E(["cl-leading-[2.75rem] cl-min-h-12 cl-overflow-hidden cl-pb-2 cl-pl-4 cl-pr-8 cl-pt-2 cl-text-2xl cl-w-full", {
|
|
529
529
|
"cl-bg-secondary-default cl-text-white": n.headerColour === "secondary",
|
|
530
530
|
"cl-bg-primary-default cl-text-secondary": n.headerColour === "primary"
|
|
531
531
|
}])
|
|
@@ -562,7 +562,7 @@ const Vo = {
|
|
|
562
562
|
return (l, t) => (u(), g("div", Io, [
|
|
563
563
|
l.additionalText !== "" ? (u(), g("div", No, R(l.additionalText), 1)) : U("", !0),
|
|
564
564
|
h("div", {
|
|
565
|
-
class:
|
|
565
|
+
class: E({
|
|
566
566
|
"cl-w-1/2": l.additionalText !== "",
|
|
567
567
|
"cl-w-full": l.additionalText === ""
|
|
568
568
|
})
|
|
@@ -614,7 +614,7 @@ const Vo = {
|
|
|
614
614
|
return te(() => t.selectedIndex, () => n()), (s, c) => {
|
|
615
615
|
var p, w;
|
|
616
616
|
return u(), g("div", {
|
|
617
|
-
class:
|
|
617
|
+
class: E(["cl-cursor-pointer cl-duration-75 cl-flex cl-p-1 cl-text-left cl-transition-colors", {
|
|
618
618
|
"cl-bg-white": i.value === !1,
|
|
619
619
|
"cl-bg-link-light cl-text-white cl-opacity-90": i.value && s.isCreateNewOption === !1,
|
|
620
620
|
"cl-bg-primary-default cl-text-black cl-opacity-90": i.value && s.isCreateNewOption
|
|
@@ -625,7 +625,7 @@ const Vo = {
|
|
|
625
625
|
}, [
|
|
626
626
|
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", Ro, R(a.value), 1)) : U("", !0),
|
|
627
627
|
h("div", {
|
|
628
|
-
class:
|
|
628
|
+
class: E({
|
|
629
629
|
"cl-w-1/2": a.value !== "",
|
|
630
630
|
"cl-w-full": a.value === ""
|
|
631
631
|
})
|
|
@@ -674,10 +674,10 @@ const Vo = {
|
|
|
674
674
|
e("hide-dropdown");
|
|
675
675
|
}
|
|
676
676
|
function y(k) {
|
|
677
|
-
d.value < t.results.length - 1 ? (d.value === -2 && a.value === "" && d.value++, d.value++) : d.value = k,
|
|
677
|
+
d.value < t.results.length - 1 ? (d.value === -2 && a.value === "" && d.value++, d.value++) : d.value = k, O();
|
|
678
678
|
}
|
|
679
679
|
function f(k) {
|
|
680
|
-
d.value > k ? d.value-- : d.value = t.results.length - 1,
|
|
680
|
+
d.value > k ? d.value-- : d.value = t.results.length - 1, O();
|
|
681
681
|
}
|
|
682
682
|
function C() {
|
|
683
683
|
d.value >= 0 && t.results !== void 0 ? c(t.results[d.value].id) : d.value === -1 && p();
|
|
@@ -691,7 +691,7 @@ const Vo = {
|
|
|
691
691
|
oe >= 0 && (W[oe].focus(), w());
|
|
692
692
|
}
|
|
693
693
|
}
|
|
694
|
-
function
|
|
694
|
+
function O() {
|
|
695
695
|
var k;
|
|
696
696
|
t.results && t.results.length > 1 && ((k = n.value) == null || k.scrollTo(0, (d.value + 1) * 34 - 34 * 2));
|
|
697
697
|
}
|
|
@@ -720,7 +720,7 @@ const Vo = {
|
|
|
720
720
|
key: 0,
|
|
721
721
|
ref_key: "container",
|
|
722
722
|
ref: n,
|
|
723
|
-
class:
|
|
723
|
+
class: E(["cl-absolute cl-bg-white cl-border cl-border-collapse cl-border-grey-0 cl-h-52 cl-mt-2 cl-overflow-y-auto cl-overscroll-y-none cl-rounded cl-text-sm cl-w-full cl-z-20", {
|
|
724
724
|
"cl-overflow-y-hidden": k.loading
|
|
725
725
|
}]),
|
|
726
726
|
onKeydown: [
|
|
@@ -822,7 +822,7 @@ const Vo = {
|
|
|
822
822
|
const e = o, r = t, { id: a, ...i } = Ze(), d = a ?? `cl-ui-combo-box-input-${e.objectType}`, b = $(() => e.placeholderText ? e.placeholderText : s("comboBox.emptyHintText", { object: e.objectType })), n = $(() => e.searchHint ? e.searchHint : s("comboBox.searchHint", { object: e.objectType })), { t: s } = ce(), c = V(!1), p = $({
|
|
823
823
|
get: () => e.currentObject,
|
|
824
824
|
set: (F) => r("update:current-object", F)
|
|
825
|
-
}), w = V(null), y = $(() => J()), f = V(""), C = V(""), A = V(),
|
|
825
|
+
}), w = V(null), y = $(() => J()), f = V(""), C = V(""), A = V(), O = V(!0), S = V(!1);
|
|
826
826
|
function P(F) {
|
|
827
827
|
var H;
|
|
828
828
|
const T = ((H = Oe.value) == null ? void 0 : H.getBoundingClientRect().top) || 0;
|
|
@@ -907,7 +907,7 @@ const Vo = {
|
|
|
907
907
|
}
|
|
908
908
|
function he() {
|
|
909
909
|
let F = !0;
|
|
910
|
-
f.value === "" && (F = !1), e.objectParentType !== "" && w.value === null && (F = !1),
|
|
910
|
+
f.value === "" && (F = !1), e.objectParentType !== "" && w.value === null && (F = !1), O.value = F;
|
|
911
911
|
}
|
|
912
912
|
te(() => e.objectCreatedResponse, () => $e()), te(() => e.parentObjectCreatedResponse, () => z()), te(() => f.value, () => he()), te(() => w.value, () => he());
|
|
913
913
|
const Oe = V();
|
|
@@ -927,7 +927,7 @@ const Vo = {
|
|
|
927
927
|
id: m(d),
|
|
928
928
|
modelValue: y.value,
|
|
929
929
|
"onUpdate:modelValue": T[0] || (T[0] = (v) => y.value = v),
|
|
930
|
-
class:
|
|
930
|
+
class: E(["cl-box-border cl-font-light cl-mb-0 cl-p-[5.5px] cl-rounded-r-none cl-text-sm", {
|
|
931
931
|
"cl-cursor-pointer": F.disabled === !1
|
|
932
932
|
}]),
|
|
933
933
|
placeholder: b.value,
|
|
@@ -955,7 +955,7 @@ const Vo = {
|
|
|
955
955
|
]),
|
|
956
956
|
c.value ? (u(), g("div", {
|
|
957
957
|
key: 1,
|
|
958
|
-
class:
|
|
958
|
+
class: E(["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]", {
|
|
959
959
|
"cl-cursor-default cl-bg-off-white": F.disabled,
|
|
960
960
|
"cl-cursor-pointer hover:cl-bg-link-light hover:cl-opacity-90 hover:cl-text-white cl-bg-white": F.disabled === !1
|
|
961
961
|
}]),
|
|
@@ -968,7 +968,7 @@ const Vo = {
|
|
|
968
968
|
})
|
|
969
969
|
], 10, Qo)) : (u(), g("div", {
|
|
970
970
|
key: 0,
|
|
971
|
-
class:
|
|
971
|
+
class: E(["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]", {
|
|
972
972
|
"cl-cursor-default cl-bg-off-white": F.disabled,
|
|
973
973
|
"cl-cursor-pointer hover:cl-bg-link-light hover:cl-opacity-90 hover:cl-text-white cl-bg-white": F.disabled === !1
|
|
974
974
|
}]),
|
|
@@ -996,7 +996,7 @@ const Vo = {
|
|
|
996
996
|
"error-message": F.errorMessage,
|
|
997
997
|
"current-object-name": y.value,
|
|
998
998
|
"is-visible": c.value,
|
|
999
|
-
class:
|
|
999
|
+
class: E({
|
|
1000
1000
|
"cl-bottom-full": S.value
|
|
1001
1001
|
}),
|
|
1002
1002
|
"search-hint": n.value,
|
|
@@ -1025,7 +1025,7 @@ const Vo = {
|
|
|
1025
1025
|
q(Ce, {
|
|
1026
1026
|
colour: "primary",
|
|
1027
1027
|
size: "small",
|
|
1028
|
-
disabled: !
|
|
1028
|
+
disabled: !O.value,
|
|
1029
1029
|
onClick: (N) => {
|
|
1030
1030
|
B(), v();
|
|
1031
1031
|
}
|
|
@@ -1173,7 +1173,7 @@ const ga = {
|
|
|
1173
1173
|
})), 64))
|
|
1174
1174
|
])) : (u(), g("div", va, [
|
|
1175
1175
|
h("div", {
|
|
1176
|
-
class:
|
|
1176
|
+
class: E(["cl-mb-2 cl-text-sm lg:cl-hidden", {
|
|
1177
1177
|
"cl-hidden": a.options.hideGridMobileView
|
|
1178
1178
|
}])
|
|
1179
1179
|
}, [
|
|
@@ -1226,7 +1226,7 @@ const ga = {
|
|
|
1226
1226
|
])) : U("", !0),
|
|
1227
1227
|
m(fl)(a.columns) || m(Bl)(a.columns) ? (u(), g(K, { key: 3 }, [
|
|
1228
1228
|
h("div", {
|
|
1229
|
-
class:
|
|
1229
|
+
class: E(["cl-block cl-flex-1 lg:cl-flex-none lg:cl-hidden", {
|
|
1230
1230
|
"cl-hidden": a.options.hideGridMobileView
|
|
1231
1231
|
}])
|
|
1232
1232
|
}, [
|
|
@@ -1519,16 +1519,16 @@ const Ca = {
|
|
|
1519
1519
|
fallbackWarn: !1,
|
|
1520
1520
|
warnHtmlMessage: !1
|
|
1521
1521
|
});
|
|
1522
|
-
function
|
|
1522
|
+
function Ju(o, l) {
|
|
1523
1523
|
return qe.global.mergeLocaleMessage(o, l), Fe();
|
|
1524
1524
|
}
|
|
1525
|
-
function
|
|
1525
|
+
function Xu(o, l) {
|
|
1526
1526
|
return qe.global.mergeNumberFormat(o, l), Fe();
|
|
1527
1527
|
}
|
|
1528
|
-
function
|
|
1528
|
+
function xu(o, l) {
|
|
1529
1529
|
return qe.global.mergeDateTimeFormat(o, l), Fe();
|
|
1530
1530
|
}
|
|
1531
|
-
function
|
|
1531
|
+
function _u(o) {
|
|
1532
1532
|
return qe.global.locale.value = o, Fe();
|
|
1533
1533
|
}
|
|
1534
1534
|
const { locale: Da, getNumberFormat: Oa } = qe.global, dl = ae.DECIMAL;
|
|
@@ -1682,7 +1682,7 @@ function Ia(o) {
|
|
|
1682
1682
|
from: "@iconify/vue"
|
|
1683
1683
|
};
|
|
1684
1684
|
}
|
|
1685
|
-
function
|
|
1685
|
+
function ec() {
|
|
1686
1686
|
return Ia;
|
|
1687
1687
|
}
|
|
1688
1688
|
const { t: Ae } = qe.global;
|
|
@@ -1940,7 +1940,7 @@ const Ba = {
|
|
|
1940
1940
|
});
|
|
1941
1941
|
const b = $(() => t.options.textSize === "x-small" ? "lg:cl-text-xs" : t.options.textSize === "small" ? "lg:cl-text-sm" : t.options.textSize === "medium" ? "lg:cl-text-base" : t.options.textSize === "large" ? "lg:cl-text-lg" : "lg:cl-text-sm");
|
|
1942
1942
|
return (n, s) => (u(), g("td", {
|
|
1943
|
-
class:
|
|
1943
|
+
class: E(["cl-gap-1 cl-py-2 cl-text-xs lg:cl-px-1", [
|
|
1944
1944
|
n.options.hideGridMobileView ? "cl-table-cell cl-m-0" : "cl-border-b cl-border-grey-1 cl-grid cl-grid-cols-2 cl-m-1 cl-mb-0 lg:cl-border-b-0 lg:cl-m-0 lg:cl-table-cell",
|
|
1945
1945
|
{
|
|
1946
1946
|
"cl-bg-link-lighter": i.value
|
|
@@ -1949,7 +1949,7 @@ const Ba = {
|
|
|
1949
1949
|
]])
|
|
1950
1950
|
}, [
|
|
1951
1951
|
h("span", {
|
|
1952
|
-
class:
|
|
1952
|
+
class: E(["cl-font-semibold lg:cl-hidden", {
|
|
1953
1953
|
"cl-hidden": n.options.hideGridMobileView
|
|
1954
1954
|
}])
|
|
1955
1955
|
}, R(m(r)(n.column.caption)), 3),
|
|
@@ -2073,13 +2073,13 @@ const Ba = {
|
|
|
2073
2073
|
const s = V({});
|
|
2074
2074
|
te(() => t.data, () => {
|
|
2075
2075
|
var f, C;
|
|
2076
|
-
return s.value = Object.fromEntries(((C = (f = t.data) == null ? void 0 : f.results) == null ? void 0 : C.map((A,
|
|
2077
|
-
[
|
|
2076
|
+
return s.value = Object.fromEntries(((C = (f = t.data) == null ? void 0 : f.results) == null ? void 0 : C.map((A, O) => [
|
|
2077
|
+
[O],
|
|
2078
2078
|
{
|
|
2079
2079
|
count: 0,
|
|
2080
2080
|
target: null,
|
|
2081
2081
|
reset: _l(() => {
|
|
2082
|
-
s.value[
|
|
2082
|
+
s.value[O] && (s.value[O].count = 0, s.value[O].target = null);
|
|
2083
2083
|
}, 400, { immediate: !1 })
|
|
2084
2084
|
}
|
|
2085
2085
|
])) ?? []);
|
|
@@ -2089,8 +2089,8 @@ const Ba = {
|
|
|
2089
2089
|
});
|
|
2090
2090
|
const c = V();
|
|
2091
2091
|
function p(f, C, A) {
|
|
2092
|
-
const { currentTarget:
|
|
2093
|
-
t.options.rowSelectionEnabled ? w(f, C) : (s.value[f].count++, s.value[f].target =
|
|
2092
|
+
const { currentTarget: O } = A;
|
|
2093
|
+
t.options.rowSelectionEnabled ? w(f, C) : (s.value[f].count++, s.value[f].target = O, s.value[f].count > 1 ? (s.value[f].reset.stop(), s.value[f].count = 0, w(f, C), s.value[f].target = null) : s.value[f].reset.start());
|
|
2094
2094
|
}
|
|
2095
2095
|
function w(f, C) {
|
|
2096
2096
|
f !== c.value && (c.value = f), e("row-select", C);
|
|
@@ -2106,26 +2106,26 @@ const Ba = {
|
|
|
2106
2106
|
), te(() => t.options.rowSelectionEnabled, y), te(() => t.request, y), (f, C) => {
|
|
2107
2107
|
var A;
|
|
2108
2108
|
return u(), g("tbody", null, [
|
|
2109
|
-
f.initialLoad ? (u(!0), g(K, { key: 0 }, _(f.request.pageSize, (
|
|
2109
|
+
f.initialLoad ? (u(!0), g(K, { key: 0 }, _(f.request.pageSize, (O) => (u(), g("tr", { key: O }, [
|
|
2110
2110
|
h("td", {
|
|
2111
2111
|
colspan: f.columns.length,
|
|
2112
|
-
class:
|
|
2112
|
+
class: E(
|
|
2113
2113
|
{
|
|
2114
|
-
"cl-border-t cl-border-off-white":
|
|
2114
|
+
"cl-border-t cl-border-off-white": O % 2 === 0
|
|
2115
2115
|
}
|
|
2116
2116
|
)
|
|
2117
2117
|
}, " ", 10, Ga)
|
|
2118
2118
|
]))), 128)) : U("", !0),
|
|
2119
2119
|
f.data && ((A = f.data.results) != null && A.length) && !f.initialLoad ? (u(), g(K, { key: 1 }, [
|
|
2120
|
-
(u(!0), g(K, null, _(f.data.results, (
|
|
2120
|
+
(u(!0), g(K, null, _(f.data.results, (O, S) => (u(), L(Ha, {
|
|
2121
2121
|
key: S,
|
|
2122
|
-
data:
|
|
2122
|
+
data: O,
|
|
2123
2123
|
options: f.options,
|
|
2124
2124
|
columns: f.columns,
|
|
2125
2125
|
"time-zone": f.timeZone,
|
|
2126
2126
|
"search-value": f.searchValue,
|
|
2127
2127
|
"edit-mode": f.editMode,
|
|
2128
|
-
class:
|
|
2128
|
+
class: E(["cl-bg-opacity-100 cl-transition-colors", {
|
|
2129
2129
|
"cl-bg-white": S % 2 === 0 && f.data.totalRecords > 1,
|
|
2130
2130
|
"cl-bg-off-white": S % 2 === 1 || f.data.totalRecords === 1,
|
|
2131
2131
|
"cl-cursor-pointer": (f.options.highlightRowSelection || f.options.rowSelectionEnabled) && !f.editMode,
|
|
@@ -2134,7 +2134,7 @@ const Ba = {
|
|
|
2134
2134
|
}]),
|
|
2135
2135
|
"row-index": S,
|
|
2136
2136
|
onClick: (P) => {
|
|
2137
|
-
f.editMode || p(S,
|
|
2137
|
+
f.editMode || p(S, O, P);
|
|
2138
2138
|
},
|
|
2139
2139
|
onCellFocus: (P) => {
|
|
2140
2140
|
d(S);
|
|
@@ -2151,9 +2151,9 @@ const Ba = {
|
|
|
2151
2151
|
])
|
|
2152
2152
|
}))
|
|
2153
2153
|
]), 1032, ["data", "options", "columns", "time-zone", "search-value", "edit-mode", "class", "row-index", "onClick", "onCellFocus", "onCellEdit"]))), 128)),
|
|
2154
|
-
f.data.results.length < f.request.pageSize ? (u(!0), g(K, { key: 0 }, _(Math.max(5 - f.data.results.length, 0), (
|
|
2155
|
-
key:
|
|
2156
|
-
class:
|
|
2154
|
+
f.data.results.length < f.request.pageSize ? (u(!0), g(K, { key: 0 }, _(Math.max(5 - f.data.results.length, 0), (O) => (u(), g("tr", {
|
|
2155
|
+
key: O,
|
|
2156
|
+
class: E(["lg:cl-table-row", {
|
|
2157
2157
|
"cl-hidden": t.options.hideGridMobileView === !1
|
|
2158
2158
|
}])
|
|
2159
2159
|
}, [
|
|
@@ -2167,15 +2167,15 @@ const Ba = {
|
|
|
2167
2167
|
colspan: f.columns.length
|
|
2168
2168
|
}, [
|
|
2169
2169
|
h("div", Qa, [
|
|
2170
|
-
f.$slots.noData && f.request.filters.some((
|
|
2170
|
+
f.$slots.noData && f.request.filters.some((O) => O.filterValue !== "") === !1 ? (u(), g("div", Ya, [
|
|
2171
2171
|
D(f.$slots, "noData")
|
|
2172
2172
|
])) : (u(), g("strong", Ja, R(m(r)("grid.noData")), 1)),
|
|
2173
|
-
f.request.filters.some((
|
|
2173
|
+
f.request.filters.some((O) => O.filterValue !== "") ? (u(), g("div", Xa, [
|
|
2174
2174
|
h("div", xa, R(m(r)("grid.noDataFiltersPresent")), 1),
|
|
2175
2175
|
q(Ce, {
|
|
2176
2176
|
size: "small",
|
|
2177
2177
|
colour: "danger",
|
|
2178
|
-
onClick: C[0] || (C[0] = x((
|
|
2178
|
+
onClick: C[0] || (C[0] = x((O) => f.$emit("clear-filters"), ["prevent"]))
|
|
2179
2179
|
}, {
|
|
2180
2180
|
default: M(() => [
|
|
2181
2181
|
ue(R(m(r)("grid.clearFilters")), 1)
|
|
@@ -2215,7 +2215,7 @@ const Ba = {
|
|
|
2215
2215
|
te(s, () => {
|
|
2216
2216
|
s.value ? (A.value = Ma(P.value, {
|
|
2217
2217
|
locale: e.locale
|
|
2218
|
-
}),
|
|
2218
|
+
}), O.value = !1, a("focus")) : (O.value && k(P.value, !0), A.value = void 0, O.value = !1, a("blur"));
|
|
2219
2219
|
});
|
|
2220
2220
|
const p = $(() => ({
|
|
2221
2221
|
style: e.format === ae.CURRENCY ? "currency" : void 0,
|
|
@@ -2226,7 +2226,7 @@ const Ba = {
|
|
|
2226
2226
|
})), w = $(() => e.format ? Dl(e.format, {
|
|
2227
2227
|
locale: e.locale,
|
|
2228
2228
|
additionalOptions: p.value
|
|
2229
|
-
}) : p.value), y = $(() => Math.pow(10, w.value.maximumFractionDigits ?? 0)), f = $(() => Math.pow(10, e.format === ae.PERCENTAGE ? 2 : 0)), C = $(() => y.value * f.value), A = V(void 0),
|
|
2229
|
+
}) : p.value), y = $(() => Math.pow(10, w.value.maximumFractionDigits ?? 0)), f = $(() => Math.pow(10, e.format === ae.PERCENTAGE ? 2 : 0)), C = $(() => y.value * f.value), A = V(void 0), O = V(!1);
|
|
2230
2230
|
te(r, () => A.value = void 0);
|
|
2231
2231
|
const S = $({
|
|
2232
2232
|
get: () => A.value ? oe(A.value) : r.value,
|
|
@@ -2234,7 +2234,7 @@ const Ba = {
|
|
|
2234
2234
|
}), P = $({
|
|
2235
2235
|
get: () => A.value ?? W(r.value),
|
|
2236
2236
|
set(B) {
|
|
2237
|
-
A.value = B,
|
|
2237
|
+
A.value = B, O.value = !0;
|
|
2238
2238
|
}
|
|
2239
2239
|
});
|
|
2240
2240
|
function I(B) {
|
|
@@ -2298,7 +2298,7 @@ const Ba = {
|
|
|
2298
2298
|
onInput: ee[0] || (ee[0] = (z) => P.value = z.target.value),
|
|
2299
2299
|
onKeydown: [
|
|
2300
2300
|
ee[1] || (ee[1] = re(x((z) => {
|
|
2301
|
-
k(z.target.value,
|
|
2301
|
+
k(z.target.value, O.value), O.value = !1;
|
|
2302
2302
|
}, ["stop", "prevent"]), ["enter"])),
|
|
2303
2303
|
ee[2] || (ee[2] = re(x((z) => G(!0), ["stop", "prevent"]), ["down"])),
|
|
2304
2304
|
ee[3] || (ee[3] = re(x((z) => G(!1), ["stop", "prevent"]), ["up"]))
|
|
@@ -2416,7 +2416,7 @@ const Ba = {
|
|
|
2416
2416
|
])
|
|
2417
2417
|
])) : s.loading || (w = (p = s.data) == null ? void 0 : p.results) != null && w.length && s.request ? (u(), g("div", {
|
|
2418
2418
|
key: 1,
|
|
2419
|
-
class:
|
|
2419
|
+
class: E(["cl-flex cl-flex-wrap lg:cl-gap-2", {
|
|
2420
2420
|
"cl-opacity-40": s.loading
|
|
2421
2421
|
}]),
|
|
2422
2422
|
inert: s.loading
|
|
@@ -2437,7 +2437,7 @@ const Ba = {
|
|
|
2437
2437
|
h("ul", bn, [
|
|
2438
2438
|
(u(), g(K, null, _(b, (f, C) => h("li", {
|
|
2439
2439
|
key: C,
|
|
2440
|
-
class:
|
|
2440
|
+
class: E(["cl-mr-1 last:cl-mr-0", {
|
|
2441
2441
|
"cl-text-black cl-font-bold": s.request.pageSize === f,
|
|
2442
2442
|
"cl-cursor-pointer": s.request.pageSize !== f
|
|
2443
2443
|
}]),
|
|
@@ -2449,7 +2449,7 @@ const Ba = {
|
|
|
2449
2449
|
h("div", null, [
|
|
2450
2450
|
h("ul", wn, [
|
|
2451
2451
|
h("li", {
|
|
2452
|
-
class:
|
|
2452
|
+
class: E({
|
|
2453
2453
|
"cl-text-grey-2 cl-pointer-events-none": s.request.pageNumber === 1,
|
|
2454
2454
|
"cl-cursor-pointer": s.request.pageNumber > 1
|
|
2455
2455
|
}),
|
|
@@ -2461,7 +2461,7 @@ const Ba = {
|
|
|
2461
2461
|
})
|
|
2462
2462
|
], 2),
|
|
2463
2463
|
h("li", {
|
|
2464
|
-
class:
|
|
2464
|
+
class: E({
|
|
2465
2465
|
"cl-cursor-pointer": s.request.pageNumber > 1,
|
|
2466
2466
|
"cl-text-grey-2 cl-pointer-events-none": s.request.pageNumber < 2
|
|
2467
2467
|
}),
|
|
@@ -2474,7 +2474,7 @@ const Ba = {
|
|
|
2474
2474
|
], 2),
|
|
2475
2475
|
(u(!0), g(K, null, _(i.value, (f, C) => (u(), g("li", {
|
|
2476
2476
|
key: C,
|
|
2477
|
-
class:
|
|
2477
|
+
class: E(["cl-border cl-border-grey-2 cl-px-1.5 cl-rounded cl-text-secondary-default", {
|
|
2478
2478
|
"cl-font-bold cl-bg-primary-lighter cl-border-primary-default": s.request.pageNumber === f && !s.loading,
|
|
2479
2479
|
"cl-cursor-pointer ": s.request.pageNumber !== f,
|
|
2480
2480
|
"cl-bg-grey-0": s.loading
|
|
@@ -2482,7 +2482,7 @@ const Ba = {
|
|
|
2482
2482
|
onClick: (A) => d(f)
|
|
2483
2483
|
}, R(m(De)(f)), 11, kn))), 128)),
|
|
2484
2484
|
h("li", {
|
|
2485
|
-
class:
|
|
2485
|
+
class: E({
|
|
2486
2486
|
"cl-text-grey-2 cl-pointer-events-none": s.request.pageNumber >= a.value,
|
|
2487
2487
|
"cl-cursor-pointer": s.request.pageNumber < a.value
|
|
2488
2488
|
}),
|
|
@@ -2494,7 +2494,7 @@ const Ba = {
|
|
|
2494
2494
|
})
|
|
2495
2495
|
], 2),
|
|
2496
2496
|
h("li", {
|
|
2497
|
-
class:
|
|
2497
|
+
class: E({
|
|
2498
2498
|
"cl-text-grey-2 cl-pointer-events-none": s.request.pageNumber >= a.value,
|
|
2499
2499
|
"cl-cursor-pointer": s.request.pageNumber < a.value
|
|
2500
2500
|
}),
|
|
@@ -2654,7 +2654,7 @@ const Dn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, On = ["onClick"], En =
|
|
|
2654
2654
|
var b, n;
|
|
2655
2655
|
return u(), g("button", {
|
|
2656
2656
|
key: d,
|
|
2657
|
-
class:
|
|
2657
|
+
class: E(["cl-border cl-cursor-pointer cl-py-1 cl-rounded-md cl-text-center", {
|
|
2658
2658
|
"cl-bg-primary-lighter cl-bg-opacity-30 cl-border-primary-default cl-font-bold hover:cl-border-primary-darker": ((b = r.selectedQuickDate) == null ? void 0 : b.name) === i.name,
|
|
2659
2659
|
"cl-border-grey-2 hover:cl-border-grey-3 hover:cl-opacity-95 cl-opacity-60": ((n = r.selectedQuickDate) == null ? void 0 : n.name) !== i.name
|
|
2660
2660
|
}]),
|
|
@@ -2824,7 +2824,7 @@ const Dn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, On = ["onClick"], En =
|
|
|
2824
2824
|
return (e, r) => {
|
|
2825
2825
|
const a = Se("icon");
|
|
2826
2826
|
return u(), g("div", {
|
|
2827
|
-
class:
|
|
2827
|
+
class: E(["cl-border cl-border-grey-1 cl-flex cl-flex-nowrap cl-flex-row cl-overflow-hidden cl-rounded-sm range-input", [
|
|
2828
2828
|
e.$attrs.class,
|
|
2829
2829
|
{
|
|
2830
2830
|
"cl-bg-grey-3 ": e.disabled
|
|
@@ -2852,7 +2852,7 @@ const Dn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, On = ["onClick"], En =
|
|
|
2852
2852
|
id: e.$attrs.id ? e.$attrs.id + "Clear" : "clUiDateRangeInputClear",
|
|
2853
2853
|
title: m(l)("input.clearDateRange"),
|
|
2854
2854
|
size: "small",
|
|
2855
|
-
class:
|
|
2855
|
+
class: E(["cl-basis-0 cl-border-transparent cl-flex cl-items-center cl-justify-center hover:cl-border-transparent", {
|
|
2856
2856
|
"cl-text-grey-4 hover:cl-text-grey-3": !e.dateRangeSelected && !e.disabled,
|
|
2857
2857
|
"cl-text-danger-dark hover:cl-text-danger-default": e.dateRangeSelected && !e.disabled
|
|
2858
2858
|
}]),
|
|
@@ -2947,7 +2947,7 @@ const Dn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, On = ["onClick"], En =
|
|
|
2947
2947
|
"date-range-selected": !!r.value,
|
|
2948
2948
|
title: n.value,
|
|
2949
2949
|
onTogglePopover: A,
|
|
2950
|
-
onClear: C[0] || (C[0] = (
|
|
2950
|
+
onClear: C[0] || (C[0] = (O) => {
|
|
2951
2951
|
r.value = null, s.value = null, c.value.hidePopover();
|
|
2952
2952
|
})
|
|
2953
2953
|
}), null, 16, ["required", "disabled", "date-range-selected", "title", "onTogglePopover"])
|
|
@@ -3349,12 +3349,12 @@ const Dn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, On = ["onClick"], En =
|
|
|
3349
3349
|
"hide-time-header": "",
|
|
3350
3350
|
popover: c.value
|
|
3351
3351
|
}, {
|
|
3352
|
-
default: M(({ inputValue: A, inputEvents:
|
|
3352
|
+
default: M(({ inputValue: A, inputEvents: O }) => [
|
|
3353
3353
|
q(Ye, Q(f.$attrs, {
|
|
3354
3354
|
ref_key: "input",
|
|
3355
3355
|
ref: w,
|
|
3356
3356
|
date: A,
|
|
3357
|
-
events:
|
|
3357
|
+
events: O,
|
|
3358
3358
|
type: f.type,
|
|
3359
3359
|
placeholder: f.placeholder,
|
|
3360
3360
|
required: f.required,
|
|
@@ -3382,12 +3382,12 @@ const Dn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, On = ["onClick"], En =
|
|
|
3382
3382
|
"hide-time-header": "",
|
|
3383
3383
|
popover: c.value
|
|
3384
3384
|
}, {
|
|
3385
|
-
default: M(({ inputValue: A, inputEvents:
|
|
3385
|
+
default: M(({ inputValue: A, inputEvents: O }) => [
|
|
3386
3386
|
q(Ye, Q(f.$attrs, {
|
|
3387
3387
|
ref_key: "input",
|
|
3388
3388
|
ref: w,
|
|
3389
3389
|
date: A,
|
|
3390
|
-
events:
|
|
3390
|
+
events: O,
|
|
3391
3391
|
type: f.type,
|
|
3392
3392
|
placeholder: f.placeholder,
|
|
3393
3393
|
required: f.required,
|
|
@@ -3488,7 +3488,7 @@ const Dn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, On = ["onClick"], En =
|
|
|
3488
3488
|
function A() {
|
|
3489
3489
|
s(l.list[e.value]);
|
|
3490
3490
|
}
|
|
3491
|
-
function
|
|
3491
|
+
function O(I) {
|
|
3492
3492
|
if (t.value === null || t.value === void 0)
|
|
3493
3493
|
return !1;
|
|
3494
3494
|
if (Array.isArray(t.value))
|
|
@@ -3523,14 +3523,14 @@ const Dn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, On = ["onClick"], En =
|
|
|
3523
3523
|
]),
|
|
3524
3524
|
default: M(() => [
|
|
3525
3525
|
h("div", {
|
|
3526
|
-
class:
|
|
3526
|
+
class: E(["cl-w-full", {
|
|
3527
3527
|
"cl-relative": I.isGridFilter === !1
|
|
3528
3528
|
}])
|
|
3529
3529
|
}, [
|
|
3530
3530
|
D(I.$slots, "input", me(be({ selectHighlightedElement: A, selectModalVisible: i.value, toggleSelectModalState: n, moveHighlightBackwards: w, moveHighlightForwards: y, moveHighlightToStart: c, moveHighlightToEnd: p })), () => [
|
|
3531
3531
|
d.value === !1 ? (u(), L(bt, {
|
|
3532
3532
|
key: 0,
|
|
3533
|
-
class:
|
|
3533
|
+
class: E([[P.value, {
|
|
3534
3534
|
"cl-border cl-border-grey-2": I.isGridFilter === !1
|
|
3535
3535
|
}], "cl-flex cl-gap-2 cl-items-center cl-justify-between cl-min-h-8 cl-rounded-lg cl-select-none cl-transition-colors cl-w-full"]),
|
|
3536
3536
|
onToggleModal: n
|
|
@@ -3600,13 +3600,13 @@ const Dn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, On = ["onClick"], En =
|
|
|
3600
3600
|
]
|
|
3601
3601
|
}), [
|
|
3602
3602
|
(u(!0), g(K, null, _(I.list, (G, B) => (u(), g("div", { key: B }, [
|
|
3603
|
-
D(I.$slots, "default", Q({ ref_for: !0 }, { option: G, index: B, select: s, highlightIndex: e.value, isSelected:
|
|
3603
|
+
D(I.$slots, "default", Q({ ref_for: !0 }, { option: G, index: B, select: s, highlightIndex: e.value, isSelected: O }), () => [
|
|
3604
3604
|
(u(), L(oe, {
|
|
3605
3605
|
id: m(b) + "-option-" + (f(G) ? G.id : B),
|
|
3606
3606
|
key: B,
|
|
3607
3607
|
disabled: I.disabled,
|
|
3608
3608
|
"is-highlighted": e.value === B,
|
|
3609
|
-
"is-selected":
|
|
3609
|
+
"is-selected": O(G),
|
|
3610
3610
|
onSelect: (ee) => s(G)
|
|
3611
3611
|
}, {
|
|
3612
3612
|
default: M(() => [
|
|
@@ -3643,7 +3643,7 @@ const Dn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, On = ["onClick"], En =
|
|
|
3643
3643
|
setup(o, { emit: l }) {
|
|
3644
3644
|
const t = l;
|
|
3645
3645
|
return (e, r) => (u(), g("div", {
|
|
3646
|
-
class:
|
|
3646
|
+
class: E(["cl-px-2 cl-py-0.5", e.disabled ? "cl-bg-grey-1 cl-border-grey-2 cl-placeholder-grey-3" : ["cl-cursor-pointer", {
|
|
3647
3647
|
"cl-bg-primary-lighter hover:cl-bg-primary-default": e.isSelected && e.isHighlighted === !1,
|
|
3648
3648
|
"cl-bg-primary-default": e.isSelected && e.isHighlighted,
|
|
3649
3649
|
"hover:cl-bg-link-lighter": e.isSelected === !1 && e.isHighlighted === !1,
|
|
@@ -3889,14 +3889,14 @@ const rs = {
|
|
|
3889
3889
|
i.value ? (u(), L(m(le), {
|
|
3890
3890
|
key: 0,
|
|
3891
3891
|
icon: i.value.icon,
|
|
3892
|
-
class:
|
|
3892
|
+
class: E(["cl-text-lg", {
|
|
3893
3893
|
"cl-text-grey-4": t.filter === void 0 || t.filter.filterValue === "",
|
|
3894
3894
|
"cl-text-primary-default": t.filter && t.filter.filterValue !== ""
|
|
3895
3895
|
}])
|
|
3896
3896
|
}, null, 8, ["icon", "class"])) : U("", !0)
|
|
3897
3897
|
]),
|
|
3898
3898
|
h("div", {
|
|
3899
|
-
class:
|
|
3899
|
+
class: E(["cl-absolute cl-bg-white cl-border cl-border-grey-0 cl-flex-wrap cl-font-normal cl-h-0 cl-hidden cl-rounded cl-shadow-lg cl-text-left cl-text-xs cl-top-8 cl-z-10", {
|
|
3900
3900
|
"group-hover:cl-flex group-hover:cl-h-auto group-hover:cl-w-52": c.loading === !1,
|
|
3901
3901
|
"cl-right-0": s.value === !1,
|
|
3902
3902
|
"cl-left-0": s.value
|
|
@@ -3907,7 +3907,7 @@ const rs = {
|
|
|
3907
3907
|
var f;
|
|
3908
3908
|
return u(), g("span", {
|
|
3909
3909
|
key: y,
|
|
3910
|
-
class:
|
|
3910
|
+
class: E(["cl-cursor-pointer cl-px-4 cl-py-1 cl-transition-colors cl-w-full hover:cl-bg-grey-0", {
|
|
3911
3911
|
"cl-bg-primary-default cl-opacity-80": w.method === ((f = i.value) == null ? void 0 : f.method)
|
|
3912
3912
|
}]),
|
|
3913
3913
|
onClick: x((C) => d(w.method), ["prevent"])
|
|
@@ -3980,7 +3980,7 @@ const rs = {
|
|
|
3980
3980
|
value: H.value.toString()
|
|
3981
3981
|
}))) ?? []
|
|
3982
3982
|
];
|
|
3983
|
-
}), C = $(() => f.value.find((T) => T.value === W.value) ?? null), A = V(!1),
|
|
3983
|
+
}), C = $(() => f.value.find((T) => T.value === W.value) ?? null), A = V(!1), O = $(() => A.value || p.value === !1), S = $({
|
|
3984
3984
|
get() {
|
|
3985
3985
|
var H, v, N, Z, ge, pe, Ee;
|
|
3986
3986
|
let T = (H = d.value) == null ? void 0 : H[0];
|
|
@@ -4092,7 +4092,7 @@ const rs = {
|
|
|
4092
4092
|
if (H && (b.value || n.value))
|
|
4093
4093
|
for (const v of H)
|
|
4094
4094
|
t.timeZone ? v.filterValue = Y.fromISO(v.filterValue).setZone("UTC").toISO() ?? "" : v.filterValue = v.filterValue.replace("Z", "");
|
|
4095
|
-
(T == null ? void 0 : T.filterValue) === "" ||
|
|
4095
|
+
(T == null ? void 0 : T.filterValue) === "" || O.value ? (P(!1), d.value = H, A.value = !1) : P(H);
|
|
4096
4096
|
}
|
|
4097
4097
|
}), P = Je((T) => {
|
|
4098
4098
|
T !== !1 && (d.value = T);
|
|
@@ -4177,7 +4177,7 @@ const rs = {
|
|
|
4177
4177
|
const F = il("cl-ui-grid-id") ?? "cl-ui-grid-filter";
|
|
4178
4178
|
return (T, H) => B.value ? (u(), g("div", {
|
|
4179
4179
|
key: 0,
|
|
4180
|
-
class:
|
|
4180
|
+
class: E(["cl-border cl-border-grey-2 cl-flex cl-relative cl-rounded-md", [
|
|
4181
4181
|
T.options.hideGridMobileView || s.value || T.column.type === "boolean" || T.column.type === "slot" && T.column.slotType === "boolean" ? "cl-overflow-visible" : "cl-overflow-hidden lg:cl-overflow-visible"
|
|
4182
4182
|
]])
|
|
4183
4183
|
}, [
|
|
@@ -4275,7 +4275,7 @@ const rs = {
|
|
|
4275
4275
|
q(kl, {
|
|
4276
4276
|
"is-highlighted": Z === ge,
|
|
4277
4277
|
"is-selected": pe(N),
|
|
4278
|
-
class:
|
|
4278
|
+
class: E({
|
|
4279
4279
|
"!cl-py-0": N.name === "",
|
|
4280
4280
|
"cl-text-xs": N.name !== ""
|
|
4281
4281
|
}),
|
|
@@ -4391,18 +4391,18 @@ const rs = {
|
|
|
4391
4391
|
}
|
|
4392
4392
|
}
|
|
4393
4393
|
return (n, s) => (u(), g("thead", {
|
|
4394
|
-
class:
|
|
4394
|
+
class: E(["-cl-top-1 cl-bg-white cl-z-20", [
|
|
4395
4395
|
n.options.hideGridMobileView ? "cl-relative" : "cl-shadow-sm cl-sticky lg:cl-bg-transparent lg:cl-relative lg:cl-shadow-none"
|
|
4396
4396
|
]])
|
|
4397
4397
|
}, [
|
|
4398
4398
|
h("tr", {
|
|
4399
|
-
class:
|
|
4399
|
+
class: E(["cl-table-row", {
|
|
4400
4400
|
"cl-hidden lg:cl-table-row": n.options.hideGridMobileView === !1
|
|
4401
4401
|
}])
|
|
4402
4402
|
}, [
|
|
4403
4403
|
(u(!0), g(K, null, _(n.columns, (c, p) => (u(), g("th", {
|
|
4404
4404
|
key: p,
|
|
4405
|
-
class:
|
|
4405
|
+
class: E(["cl-text-grey-3 cl-text-sm", {
|
|
4406
4406
|
"cl-cursor-pointer": m(ol)(c) && n.loading === !1
|
|
4407
4407
|
}]),
|
|
4408
4408
|
onClick: (w) => m(ol)(c) && n.loading === !1 ? d(c.field) : () => {
|
|
@@ -4426,13 +4426,13 @@ const rs = {
|
|
|
4426
4426
|
], 10, ks))), 128))
|
|
4427
4427
|
], 2),
|
|
4428
4428
|
h("tr", {
|
|
4429
|
-
class:
|
|
4429
|
+
class: E(["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", {
|
|
4430
4430
|
"cl-hidden lg:cl-table-row": !n.filterPanelOpen && n.options.hideGridMobileView === !1,
|
|
4431
4431
|
"cl-border-none cl-p-0 cl-table-row": n.options.hideGridMobileView
|
|
4432
4432
|
}])
|
|
4433
4433
|
}, [
|
|
4434
4434
|
h("div", {
|
|
4435
|
-
class:
|
|
4435
|
+
class: E(["cl-flex cl-justify-end cl-w-full lg:cl-hidden", {
|
|
4436
4436
|
"cl-hidden": n.options.hideGridMobileView
|
|
4437
4437
|
}])
|
|
4438
4438
|
}, [
|
|
@@ -4445,7 +4445,7 @@ const rs = {
|
|
|
4445
4445
|
], 2),
|
|
4446
4446
|
(u(!0), g(K, null, _(n.columns, (c, p) => (u(), g("th", {
|
|
4447
4447
|
key: p,
|
|
4448
|
-
class:
|
|
4448
|
+
class: E(["cl-py-1 cl-text-xs lg:cl-table-cell lg:cl-w-auto", [
|
|
4449
4449
|
n.options.hideGridMobileView ? "cl-table-cell cl-w-auto" : "cl-grid cl-grid-cols-4 cl-w-full",
|
|
4450
4450
|
{
|
|
4451
4451
|
"cl-hidden": !m(Xe)(c) && n.options.hideGridMobileView == !1
|
|
@@ -4453,13 +4453,13 @@ const rs = {
|
|
|
4453
4453
|
]])
|
|
4454
4454
|
}, [
|
|
4455
4455
|
h("div", {
|
|
4456
|
-
class:
|
|
4456
|
+
class: E(["cl-col-span-2 lg:cl-hidden", {
|
|
4457
4457
|
"cl-hidden": n.options.hideGridMobileView
|
|
4458
4458
|
}])
|
|
4459
4459
|
}, R(m(r)(c.caption)), 3),
|
|
4460
4460
|
m(ol)(c) ? (u(), g("div", {
|
|
4461
4461
|
key: 0,
|
|
4462
|
-
class:
|
|
4462
|
+
class: E(["cl-col-span-2 cl-gap-1 cl-span lg:cl-hidden", {
|
|
4463
4463
|
"cl-hidden": n.options.hideGridMobileView
|
|
4464
4464
|
}]),
|
|
4465
4465
|
onClick: (w) => n.loading === !1 ? d(c.field) : void 0
|
|
@@ -4723,7 +4723,7 @@ const rs = {
|
|
|
4723
4723
|
deep: !0,
|
|
4724
4724
|
immediate: !0
|
|
4725
4725
|
});
|
|
4726
|
-
const
|
|
4726
|
+
const O = $(() => e.data), S = V(!1), P = $({
|
|
4727
4727
|
get: () => e.options.forceEditMode || S.value,
|
|
4728
4728
|
set(z) {
|
|
4729
4729
|
S.value = z;
|
|
@@ -4832,12 +4832,12 @@ const rs = {
|
|
|
4832
4832
|
}, 8, ["edit-mode", "filter-panel-open", "can-bulk-edit", "columns", "options", "request", "loading", "initial-load"]),
|
|
4833
4833
|
h("div", Gs, [
|
|
4834
4834
|
h("table", {
|
|
4835
|
-
class:
|
|
4835
|
+
class: E(["cl-delay-75 cl-min-h-[276px] cl-overflow-x-auto cl-overscroll-x-none cl-text-left cl-transition-opacity cl-w-full", {
|
|
4836
4836
|
"cl-opacity-40 cl-pointer-events-none": z.loading && B.value === !1
|
|
4837
4837
|
}])
|
|
4838
4838
|
}, [
|
|
4839
4839
|
h("colgroup", {
|
|
4840
|
-
class:
|
|
4840
|
+
class: E([
|
|
4841
4841
|
z.options.hideGridMobileView ? "cl-table-column-group" : "cl-hidden lg:cl-table-column-group"
|
|
4842
4842
|
])
|
|
4843
4843
|
}, [
|
|
@@ -4871,7 +4871,7 @@ const rs = {
|
|
|
4871
4871
|
q(_a, {
|
|
4872
4872
|
columns: c.value,
|
|
4873
4873
|
request: f.value,
|
|
4874
|
-
data:
|
|
4874
|
+
data: O.value,
|
|
4875
4875
|
"time-zone": z.timeZone,
|
|
4876
4876
|
loading: z.loading,
|
|
4877
4877
|
"initial-load": B.value,
|
|
@@ -5049,12 +5049,12 @@ const Ys = { class: "cl-col-[1_/_-1] cl-grid cl-grid-cols-subgrid" }, Js = ["id"
|
|
|
5049
5049
|
}
|
|
5050
5050
|
}), [
|
|
5051
5051
|
h("span", {
|
|
5052
|
-
class:
|
|
5052
|
+
class: E(["cl-tracking-wide cl-whitespace-nowrap", {
|
|
5053
5053
|
"cl-opacity-0": a.initialLoad
|
|
5054
5054
|
}])
|
|
5055
5055
|
}, R(b.caption ? m(t)(b.caption) : b.name), 3),
|
|
5056
5056
|
se(h("div", {
|
|
5057
|
-
class:
|
|
5057
|
+
class: E(["cl-px-0.5 cl-py-1 cl-rounded hover:cl-bg-link-lighter", {
|
|
5058
5058
|
"cl-bg-link-lighter": e(b, !1) || e(b, !0),
|
|
5059
5059
|
"cl-opacity-0": a.initialLoad
|
|
5060
5060
|
}])
|
|
@@ -5092,7 +5092,7 @@ const Ys = { class: "cl-col-[1_/_-1] cl-grid cl-grid-cols-subgrid" }, Js = ["id"
|
|
|
5092
5092
|
}, [
|
|
5093
5093
|
(u(!0), g(K, null, _(l.columnCount, (r) => (u(), g("div", {
|
|
5094
5094
|
key: r,
|
|
5095
|
-
class:
|
|
5095
|
+
class: E(["cl-border-off-white cl-p-2 cl-w-full", {
|
|
5096
5096
|
"cl-border-r": r !== r - 1
|
|
5097
5097
|
}])
|
|
5098
5098
|
}, " ", 2))), 128))
|
|
@@ -5152,7 +5152,7 @@ const Ys = { class: "cl-col-[1_/_-1] cl-grid cl-grid-cols-subgrid" }, Js = ["id"
|
|
|
5152
5152
|
"column-count": a.columns.length
|
|
5153
5153
|
}, null, 8, ["page-size", "column-count"])) : (((d = a.data) == null ? void 0 : d.results.length) ?? 0) < 1 && a.initialLoad === !1 ? (u(), g("div", {
|
|
5154
5154
|
key: 1,
|
|
5155
|
-
class:
|
|
5155
|
+
class: E(["cl-col-[1_/_-1] cl-text-center cl-w-full", [
|
|
5156
5156
|
e.value ? "cl-p-1" : "cl-p-2"
|
|
5157
5157
|
]])
|
|
5158
5158
|
}, [
|
|
@@ -5165,7 +5165,7 @@ const Ys = { class: "cl-col-[1_/_-1] cl-grid cl-grid-cols-subgrid" }, Js = ["id"
|
|
|
5165
5165
|
"grid-id": `${a.gridId}-r${n}`,
|
|
5166
5166
|
row: b,
|
|
5167
5167
|
columns: a.columns,
|
|
5168
|
-
class:
|
|
5168
|
+
class: E(
|
|
5169
5169
|
{
|
|
5170
5170
|
"cl-border-b cl-border-off-white": n !== a.data.results.length - 1,
|
|
5171
5171
|
"cl-bg-off-white cl-bg-opacity-75": n % 2 != 0 && r.value
|
|
@@ -5350,7 +5350,7 @@ const qt = /* @__PURE__ */ Te(ar, [["render", sr]]), rr = { class: "cl-flex cl-g
|
|
|
5350
5350
|
const p = Se("icon");
|
|
5351
5351
|
return s.initialLoad ? (u(), L(qt, { key: 0 })) : (w = s.data) != null && w.results.length && t.value && r.value > 1 ? (u(), g("div", {
|
|
5352
5352
|
key: 1,
|
|
5353
|
-
class:
|
|
5353
|
+
class: E(["cl-border-off-white cl-border-t cl-flex cl-flex-wrap cl-gap-y-2 cl-justify-between cl-p-2 cl-text-grey-4", [
|
|
5354
5354
|
s.options.smallGridText ? "cl-px-1 cl-py-1.5 cl-text-xs" : "cl-p-2 cl-text-sm"
|
|
5355
5355
|
]])
|
|
5356
5356
|
}, [
|
|
@@ -5364,7 +5364,7 @@ const qt = /* @__PURE__ */ Te(ar, [["render", sr]]), rr = { class: "cl-flex cl-g
|
|
|
5364
5364
|
(u(!0), g(K, null, _(b.value, (y, f) => (u(), g("li", {
|
|
5365
5365
|
id: `${s.gridId}-page-size-${y}`,
|
|
5366
5366
|
key: f,
|
|
5367
|
-
class:
|
|
5367
|
+
class: E(["cl-border-b cl-px-1", {
|
|
5368
5368
|
"cl-text-link-default": t.value.pageSize === y,
|
|
5369
5369
|
"cl-border-b-transparent hover:cl-border-b-link-lighter hover:cl-text-link-light cl-cursor-pointer": t.value.pageSize !== y
|
|
5370
5370
|
}]),
|
|
@@ -5376,7 +5376,7 @@ const qt = /* @__PURE__ */ Te(ar, [["render", sr]]), rr = { class: "cl-flex cl-g
|
|
|
5376
5376
|
h("ul", pr, [
|
|
5377
5377
|
h("li", {
|
|
5378
5378
|
id: `${s.gridId}-page-first`,
|
|
5379
|
-
class:
|
|
5379
|
+
class: E({
|
|
5380
5380
|
"cl-text-grey-2 cl-pointer-events-none": t.value.pageNumber === 1,
|
|
5381
5381
|
"cl-cursor-pointer": t.value.pageNumber > 1
|
|
5382
5382
|
}),
|
|
@@ -5389,7 +5389,7 @@ const qt = /* @__PURE__ */ Te(ar, [["render", sr]]), rr = { class: "cl-flex cl-g
|
|
|
5389
5389
|
], 10, fr),
|
|
5390
5390
|
h("li", {
|
|
5391
5391
|
id: `${s.gridId}-page-previous`,
|
|
5392
|
-
class:
|
|
5392
|
+
class: E({
|
|
5393
5393
|
"cl-cursor-pointer": t.value.pageNumber > 1,
|
|
5394
5394
|
"cl-text-grey-2 cl-pointer-events-none": t.value.pageNumber < 2
|
|
5395
5395
|
}),
|
|
@@ -5403,7 +5403,7 @@ const qt = /* @__PURE__ */ Te(ar, [["render", sr]]), rr = { class: "cl-flex cl-g
|
|
|
5403
5403
|
(u(!0), g(K, null, _(a.value, (y, f) => (u(), g("li", {
|
|
5404
5404
|
id: `${s.gridId}-page-${y}`,
|
|
5405
5405
|
key: f,
|
|
5406
|
-
class:
|
|
5406
|
+
class: E(["cl-border cl-border-grey-2 cl-px-1.5 cl-rounded hover:cl-bg-primary-lighter", {
|
|
5407
5407
|
"cl-text-secondary-default cl-bg-primary-lighter cl-border-primary-lighter": t.value.pageNumber === y,
|
|
5408
5408
|
"cl-cursor-pointer ": t.value.pageNumber !== y
|
|
5409
5409
|
}]),
|
|
@@ -5411,7 +5411,7 @@ const qt = /* @__PURE__ */ Te(ar, [["render", sr]]), rr = { class: "cl-flex cl-g
|
|
|
5411
5411
|
}, R(m(De)(y)), 11, gr))), 128)),
|
|
5412
5412
|
h("li", {
|
|
5413
5413
|
id: `${s.gridId}-page-next`,
|
|
5414
|
-
class:
|
|
5414
|
+
class: E({
|
|
5415
5415
|
"cl-text-grey-2 cl-pointer-events-none": t.value.pageNumber >= r.value,
|
|
5416
5416
|
"cl-cursor-pointer": t.value.pageNumber < r.value
|
|
5417
5417
|
}),
|
|
@@ -5424,7 +5424,7 @@ const qt = /* @__PURE__ */ Te(ar, [["render", sr]]), rr = { class: "cl-flex cl-g
|
|
|
5424
5424
|
], 10, vr),
|
|
5425
5425
|
h("li", {
|
|
5426
5426
|
id: `${s.gridId}-page-last`,
|
|
5427
|
-
class:
|
|
5427
|
+
class: E({
|
|
5428
5428
|
"cl-text-grey-2 cl-pointer-events-none": t.value.pageNumber >= r.value,
|
|
5429
5429
|
"cl-cursor-pointer": t.value.pageNumber < r.value
|
|
5430
5430
|
}),
|
|
@@ -5482,7 +5482,7 @@ const qt = /* @__PURE__ */ Te(ar, [["render", sr]]), rr = { class: "cl-flex cl-g
|
|
|
5482
5482
|
},
|
|
5483
5483
|
setup(o) {
|
|
5484
5484
|
return (l, t) => (u(), g("div", {
|
|
5485
|
-
class:
|
|
5485
|
+
class: E(["md:cl-relative", {
|
|
5486
5486
|
"cl-bg-primary-default": l.colour === "default",
|
|
5487
5487
|
"cl-bg-blue-light": l.colour === "secondary"
|
|
5488
5488
|
}])
|
|
@@ -5500,7 +5500,7 @@ const qt = /* @__PURE__ */ Te(ar, [["render", sr]]), rr = { class: "cl-flex cl-g
|
|
|
5500
5500
|
height: "48"
|
|
5501
5501
|
})),
|
|
5502
5502
|
h("div", {
|
|
5503
|
-
class:
|
|
5503
|
+
class: E(["cl-grow cl-hidden cl-my-4 md:cl-block", {
|
|
5504
5504
|
"cl-text-secondary-default": l.colour === "default",
|
|
5505
5505
|
"cl-text-white": l.colour === "secondary"
|
|
5506
5506
|
}])
|
|
@@ -5510,7 +5510,7 @@ const qt = /* @__PURE__ */ Te(ar, [["render", sr]]), rr = { class: "cl-flex cl-g
|
|
|
5510
5510
|
], 2),
|
|
5511
5511
|
h("div", Cr, [
|
|
5512
5512
|
q(m(le), {
|
|
5513
|
-
class:
|
|
5513
|
+
class: E(["cl-transform-gpu cl-transition-transform", {
|
|
5514
5514
|
"cl-rotate-180": l.isOpen,
|
|
5515
5515
|
"cl-text-secondary-default": l.colour === "default",
|
|
5516
5516
|
"cl-text-white": l.colour === "secondary"
|
|
@@ -5586,7 +5586,7 @@ const qt = /* @__PURE__ */ Te(ar, [["render", sr]]), rr = { class: "cl-flex cl-g
|
|
|
5586
5586
|
const P = ut(S, a.value);
|
|
5587
5587
|
i.value = P, w.value = S, y.value.move(P.start), y.value.hidePopover();
|
|
5588
5588
|
}
|
|
5589
|
-
const C = $(() => ct(i.value, a.value, b.value)), A = et("(min-width: 768px)"),
|
|
5589
|
+
const C = $(() => ct(i.value, a.value, b.value)), A = et("(min-width: 768px)"), O = $(() => A.value ? 2 : 1);
|
|
5590
5590
|
return l({
|
|
5591
5591
|
focus() {
|
|
5592
5592
|
var S;
|
|
@@ -5635,7 +5635,7 @@ const qt = /* @__PURE__ */ Te(ar, [["render", sr]]), rr = { class: "cl-flex cl-g
|
|
|
5635
5635
|
locale: m(d),
|
|
5636
5636
|
is24hr: m(d) !== "en-US",
|
|
5637
5637
|
timezone: a.value,
|
|
5638
|
-
columns:
|
|
5638
|
+
columns: O.value,
|
|
5639
5639
|
popover: n.value,
|
|
5640
5640
|
"min-date": S.min,
|
|
5641
5641
|
"max-date": S.max,
|
|
@@ -5762,7 +5762,7 @@ const qt = /* @__PURE__ */ Te(ar, [["render", sr]]), rr = { class: "cl-flex cl-g
|
|
|
5762
5762
|
ref: a,
|
|
5763
5763
|
type: "text",
|
|
5764
5764
|
disabled: f.disabled,
|
|
5765
|
-
class:
|
|
5765
|
+
class: E(["!cl-mb-1 cl-block cl-border cl-duration-300 cl-h-full cl-p-3 cl-rounded-lg cl-transition cl-w-full focus:cl-outline-none", {
|
|
5766
5766
|
"hover:!cl-border-grey-3": f.disabled === !1,
|
|
5767
5767
|
"!cl-cursor-default": f.disabled,
|
|
5768
5768
|
"!cl-border-danger-default": !f.isValid,
|
|
@@ -5812,7 +5812,7 @@ const qt = /* @__PURE__ */ Te(ar, [["render", sr]]), rr = { class: "cl-flex cl-g
|
|
|
5812
5812
|
}), (n, s) => d.value ? (u(), g("div", me(Q({ key: 0 }, n.$attrs)), [
|
|
5813
5813
|
h("div", Vr, [
|
|
5814
5814
|
h("span", {
|
|
5815
|
-
class:
|
|
5815
|
+
class: E(["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", {
|
|
5816
5816
|
"cl-bg-white cl-cursor-pointer hover:cl-border-grey-1": !n.disabled,
|
|
5817
5817
|
"cl-bg-grey-0": n.disabled
|
|
5818
5818
|
}]),
|
|
@@ -5861,7 +5861,7 @@ const qt = /* @__PURE__ */ Te(ar, [["render", sr]]), rr = { class: "cl-flex cl-g
|
|
|
5861
5861
|
], 64))
|
|
5862
5862
|
]),
|
|
5863
5863
|
h("span", {
|
|
5864
|
-
class:
|
|
5864
|
+
class: E(["cl-border cl-border-transparent cl-leading-6 cl-ml-1 cl-px-2 cl-rounded-full cl-select-none cl-shadow cl-text-center cl-text-xs", {
|
|
5865
5865
|
"cl-bg-white cl-cursor-pointer hover:cl-border-grey-1": !n.disabled,
|
|
5866
5866
|
"cl-bg-grey-0": n.disabled
|
|
5867
5867
|
}]),
|
|
@@ -6004,7 +6004,7 @@ const jr = { class: "cl-flex cl-justify-between" }, Pr = { class: "cl-w-full" },
|
|
|
6004
6004
|
}), w = $({
|
|
6005
6005
|
get: () => e.modelValue,
|
|
6006
6006
|
set: (v) => oe(v)
|
|
6007
|
-
}), y = $(() => typeof e.min == "number" ? e.min.toString() : e.min), f = $(() => typeof e.max == "number" ? e.max.toString() : e.max), C = $(() => typeof e.min == "number" || e.min === null ? e.min : parseFloat(e.min)), A = $(() => typeof e.max == "number" || e.max === null ? e.max : parseFloat(e.max)),
|
|
6007
|
+
}), y = $(() => typeof e.min == "number" ? e.min.toString() : e.min), f = $(() => typeof e.max == "number" ? e.max.toString() : e.max), C = $(() => typeof e.min == "number" || e.min === null ? e.min : parseFloat(e.min)), A = $(() => typeof e.max == "number" || e.max === null ? e.max : parseFloat(e.max)), O = $(() => e.messageWhenValid.trim() !== "" ? e.messageWhenValid : ""), S = V(!0), P = V(!0), I = V([]), k = $(() => {
|
|
6008
6008
|
var v, N;
|
|
6009
6009
|
return [
|
|
6010
6010
|
...((v = I.value) == null ? void 0 : v.filter((Z) => ((Z == null ? void 0 : Z.length) ?? 0) > 0)) ?? [],
|
|
@@ -6245,7 +6245,7 @@ const jr = { class: "cl-flex cl-justify-between" }, Pr = { class: "cl-w-full" },
|
|
|
6245
6245
|
}, null, 8, ["value", "min", "max", "step", "placeholder", "disabled"])
|
|
6246
6246
|
])) : U("", !0)
|
|
6247
6247
|
], 32),
|
|
6248
|
-
S.value &&
|
|
6248
|
+
S.value && O.value && P.value ? (u(), g("div", Jr, R(O.value), 1)) : U("", !0),
|
|
6249
6249
|
!S.value && k.value.length > 0 && v.showValidationMessages && P.value ? (u(), g("div", Xr, R(k.value), 1)) : U("", !0)
|
|
6250
6250
|
], 16));
|
|
6251
6251
|
}
|
|
@@ -6309,13 +6309,13 @@ const oi = {
|
|
|
6309
6309
|
s && (a.value = !1);
|
|
6310
6310
|
}), (s, c) => i.value !== null && m($l)(i.value) ? (u(), g("div", oi, [
|
|
6311
6311
|
h("div", {
|
|
6312
|
-
class:
|
|
6312
|
+
class: E(["cl-flex cl-items-center", {
|
|
6313
6313
|
"cl-cursor-pointer": !s.disabled
|
|
6314
6314
|
}]),
|
|
6315
6315
|
onClick: n
|
|
6316
6316
|
}, [
|
|
6317
6317
|
h("span", {
|
|
6318
|
-
class:
|
|
6318
|
+
class: E(["cl-font-semibold cl-text-xs", {
|
|
6319
6319
|
"cl-opacity-50": s.disabled
|
|
6320
6320
|
}])
|
|
6321
6321
|
}, R(i.value.nativeName), 3)
|
|
@@ -6348,7 +6348,7 @@ const oi = {
|
|
|
6348
6348
|
}, fi = { class: "cl-col-span-3" }, mi = { class: "cl-relative cl-text-grey-4" }, gi = { class: "cl-w-full" }, vi = {
|
|
6349
6349
|
key: 0,
|
|
6350
6350
|
class: "cl-bg-primary-lighter cl-mt-1 cl-rounded-md cl-text-center cl-text-secondary-default cl-text-xs cl-w-full"
|
|
6351
|
-
}, hi = { class: "cl-col-span-3" }, bi = { class: "cl-relative cl-text-grey-4" }, yi = { class: "cl-col-span-10 cl-emphasis-danger cl-mt-10 cl-p-3 cl-rounded-md cl-text-sm md:cl-mt-3" },
|
|
6351
|
+
}, hi = { class: "cl-col-span-3" }, bi = { class: "cl-relative cl-text-grey-4" }, yi = { class: "cl-col-span-2" }, wi = { class: "cl-col-span-10 cl-emphasis-danger cl-mt-10 cl-p-3 cl-rounded-md cl-text-sm md:cl-mt-3" }, ki = /* @__PURE__ */ j({
|
|
6352
6352
|
__name: "cl-ui-login",
|
|
6353
6353
|
props: {
|
|
6354
6354
|
errors: { default: () => [] },
|
|
@@ -6382,7 +6382,7 @@ const oi = {
|
|
|
6382
6382
|
D(c.$slots, "language-switcher")
|
|
6383
6383
|
])) : U("", !0),
|
|
6384
6384
|
h("div", {
|
|
6385
|
-
class:
|
|
6385
|
+
class: E(["cl-gap-y-4 cl-grid cl-grid-cols-1 lg:cl-gap-x-2 lg:cl-grid-cols-8", {
|
|
6386
6386
|
"cl-col-span-7": !c.$slots["language-switcher"],
|
|
6387
6387
|
"cl-col-span-6": c.$slots["language-switcher"]
|
|
6388
6388
|
}])
|
|
@@ -6400,7 +6400,7 @@ const oi = {
|
|
|
6400
6400
|
modelValue: r.value,
|
|
6401
6401
|
"onUpdate:modelValue": p[0] || (p[0] = (w) => r.value = w),
|
|
6402
6402
|
modelModifiers: { trim: !0 },
|
|
6403
|
-
class:
|
|
6403
|
+
class: E(["cl-border-2 cl-outline-none cl-p-2 cl-pl-9 cl-text-grey-5 cl-text-sm", {
|
|
6404
6404
|
"!cl-border-primary-default hover:!cl-border-grey-3 focus-within:!cl-border-link-light": r.value !== "" && d.value,
|
|
6405
6405
|
"!cl-border-danger-dark hover:!cl-border-grey-3 focus-within:!cl-border-link-light": r.value !== "" && !d.value
|
|
6406
6406
|
}]),
|
|
@@ -6445,7 +6445,7 @@ const oi = {
|
|
|
6445
6445
|
id: "cl-ui-login-passwordinput",
|
|
6446
6446
|
modelValue: a.value,
|
|
6447
6447
|
"onUpdate:modelValue": p[3] || (p[3] = (w) => a.value = w),
|
|
6448
|
-
class:
|
|
6448
|
+
class: E(["cl-border-2 cl-outline-none cl-p-2 cl-px-9 cl-text-grey-5 cl-text-sm", {
|
|
6449
6449
|
"!cl-border-primary-default hover:!cl-border-grey-3 focus-within:!cl-border-link-light": a.value
|
|
6450
6450
|
}]),
|
|
6451
6451
|
type: i.value,
|
|
@@ -6459,11 +6459,7 @@ const oi = {
|
|
|
6459
6459
|
}, 8, ["modelValue", "class", "type", "placeholder"])
|
|
6460
6460
|
])
|
|
6461
6461
|
]),
|
|
6462
|
-
h("div",
|
|
6463
|
-
class: O(["cl-col-span-2", {
|
|
6464
|
-
"cl-mt-1.5 cl-mb-1 md:cl-mt-0.5 md:cl-mb-7 lg:cl-mb-0": c.loading
|
|
6465
|
-
}])
|
|
6466
|
-
}, [
|
|
6462
|
+
h("div", yi, [
|
|
6467
6463
|
q(Ce, {
|
|
6468
6464
|
id: "cl-ui-login-loginbutton",
|
|
6469
6465
|
class: "cl-w-full",
|
|
@@ -6477,13 +6473,13 @@ const oi = {
|
|
|
6477
6473
|
]),
|
|
6478
6474
|
_: 1
|
|
6479
6475
|
}, 8, ["loading", "disabled"])
|
|
6480
|
-
]
|
|
6476
|
+
])
|
|
6481
6477
|
], 2),
|
|
6482
6478
|
q(Ne, { name: "cl-grow-down" }, {
|
|
6483
6479
|
default: M(() => {
|
|
6484
6480
|
var w;
|
|
6485
6481
|
return [
|
|
6486
|
-
se(h("span",
|
|
6482
|
+
se(h("span", wi, [
|
|
6487
6483
|
(u(!0), g(K, null, _(c.errors, (y, f) => (u(), g("div", {
|
|
6488
6484
|
id: "cl-ui-login-errors",
|
|
6489
6485
|
key: f,
|
|
@@ -6499,19 +6495,19 @@ const oi = {
|
|
|
6499
6495
|
])
|
|
6500
6496
|
]));
|
|
6501
6497
|
}
|
|
6502
|
-
}),
|
|
6498
|
+
}), $i = [
|
|
6503
6499
|
"x-small",
|
|
6504
6500
|
"small",
|
|
6505
6501
|
"medium",
|
|
6506
6502
|
"large"
|
|
6507
|
-
],
|
|
6503
|
+
], Ti = [
|
|
6508
6504
|
"primary",
|
|
6509
6505
|
"secondary",
|
|
6510
6506
|
"white"
|
|
6511
|
-
],
|
|
6507
|
+
], Ci = {
|
|
6512
6508
|
key: 0,
|
|
6513
6509
|
class: "cl-h-0 cl-w-0"
|
|
6514
|
-
},
|
|
6510
|
+
}, Si = { class: "cl-relative cl-w-full" }, qi = /* @__PURE__ */ j({
|
|
6515
6511
|
__name: "cl-ui-navigation",
|
|
6516
6512
|
props: {
|
|
6517
6513
|
colour: { default: "default" }
|
|
@@ -6520,7 +6516,7 @@ const oi = {
|
|
|
6520
6516
|
setup(o, { expose: l, emit: t }) {
|
|
6521
6517
|
const e = t, r = V([]), a = $(() => r.value.filter((C) => C.open === !0).length > 0);
|
|
6522
6518
|
function i(C) {
|
|
6523
|
-
let A = r.value.find((
|
|
6519
|
+
let A = r.value.find((O) => O.id === C);
|
|
6524
6520
|
return A || (A = {
|
|
6525
6521
|
id: C,
|
|
6526
6522
|
open: !1
|
|
@@ -6528,10 +6524,10 @@ const oi = {
|
|
|
6528
6524
|
}
|
|
6529
6525
|
function d(C) {
|
|
6530
6526
|
const A = r.value.find((S) => S.id === C);
|
|
6531
|
-
let
|
|
6532
|
-
A && (A.open = !A.open, A.open && (
|
|
6527
|
+
let O;
|
|
6528
|
+
A && (A.open = !A.open, A.open && (O = A.id), r.value.forEach((S) => {
|
|
6533
6529
|
S.id !== C && (S.open = !1);
|
|
6534
|
-
})), e("open-state", !!(A != null && A.open),
|
|
6530
|
+
})), e("open-state", !!(A != null && A.open), O);
|
|
6535
6531
|
}
|
|
6536
6532
|
const b = Zt();
|
|
6537
6533
|
te(
|
|
@@ -6566,23 +6562,23 @@ const oi = {
|
|
|
6566
6562
|
}, [
|
|
6567
6563
|
h("div", {
|
|
6568
6564
|
id: "group-container",
|
|
6569
|
-
class:
|
|
6565
|
+
class: E(["cl-h-full cl-overflow-y-auto cl-overscroll-y-none cl-pb-20 cl-w-20 cl-z-40 xl:cl-pb-0", {
|
|
6570
6566
|
"cl-bg-primary-default": C.colour === "default",
|
|
6571
6567
|
"cl-bg-blue-dark": C.colour === "secondary"
|
|
6572
6568
|
}])
|
|
6573
6569
|
}, [
|
|
6574
6570
|
D(C.$slots, "icon", Q({ navcolour: C.colour }, { groupIsOpen: i, toggleOpen: d }), void 0, !0)
|
|
6575
6571
|
], 2),
|
|
6576
|
-
s.value ? (u(), g("div",
|
|
6572
|
+
s.value ? (u(), g("div", Ci)) : U("", !0),
|
|
6577
6573
|
q(Ne, { name: "slide-right" }, {
|
|
6578
6574
|
default: M(() => [
|
|
6579
6575
|
se(h("div", {
|
|
6580
|
-
class:
|
|
6576
|
+
class: E(["cl-bg-grey-0 cl-border-grey-2 cl-border-r cl-duration-75 cl-h-full cl-min-w-[260px] cl-overflow-y-auto cl-overscroll-y-none cl-p-8 cl-pb-24 cl-top-0 cl-transition-shadow cl-w-[260px] cl-z-30 xl:cl-pb-0", {
|
|
6581
6577
|
"cl-relative": n.value,
|
|
6582
6578
|
"cl-absolute cl-left-20 cl-shadow-lg": !n.value
|
|
6583
6579
|
}])
|
|
6584
6580
|
}, [
|
|
6585
|
-
h("div",
|
|
6581
|
+
h("div", Si, [
|
|
6586
6582
|
h("span", {
|
|
6587
6583
|
class: "cl-absolute cl-cursor-pointer cl-hidden cl-right-0 cl-top-1.5 lg:cl-block",
|
|
6588
6584
|
onClick: A[0] || (A[0] = () => p())
|
|
@@ -6605,7 +6601,7 @@ const oi = {
|
|
|
6605
6601
|
})
|
|
6606
6602
|
], 512));
|
|
6607
6603
|
}
|
|
6608
|
-
}),
|
|
6604
|
+
}), Di = /* @__PURE__ */ Te(qi, [["__scopeId", "data-v-db3283cd"]]), Oi = /* @__PURE__ */ j({
|
|
6609
6605
|
__name: "cl-ui-navigation-icon",
|
|
6610
6606
|
props: {
|
|
6611
6607
|
iconValue: {},
|
|
@@ -6614,7 +6610,7 @@ const oi = {
|
|
|
6614
6610
|
},
|
|
6615
6611
|
setup(o) {
|
|
6616
6612
|
return (l, t) => (u(), g("div", {
|
|
6617
|
-
class:
|
|
6613
|
+
class: E(["cl-cursor-pointer cl-flex cl-h-20 cl-items-center cl-justify-center cl-transition-colors cl-w-20", {
|
|
6618
6614
|
"cl-text-secondary-default hover:cl-bg-primary-dark hover:cl-text-white": l.colour === "default",
|
|
6619
6615
|
"cl-bg-primary-darker cl-text-white": l.open && l.colour === "default",
|
|
6620
6616
|
"cl-text-white hover:cl-bg-blue-light": l.colour === "secondary",
|
|
@@ -6628,49 +6624,49 @@ const oi = {
|
|
|
6628
6624
|
}, null, 8, ["icon"])
|
|
6629
6625
|
], 2));
|
|
6630
6626
|
}
|
|
6631
|
-
}),
|
|
6627
|
+
}), Ei = {
|
|
6632
6628
|
key: 0,
|
|
6633
6629
|
class: "cl-font-bold cl-leading-8 cl-mb-8 cl-pr-8 cl-select-none cl-text-lg cl-text-secondary-default"
|
|
6634
|
-
},
|
|
6630
|
+
}, Ai = { class: "cl-flex cl-flex-wrap cl-space-y-8 cl-text-sm cl-w-full" }, Vi = /* @__PURE__ */ j({
|
|
6635
6631
|
__name: "cl-ui-navigation-group",
|
|
6636
6632
|
props: {
|
|
6637
6633
|
open: { type: Boolean }
|
|
6638
6634
|
},
|
|
6639
6635
|
setup(o) {
|
|
6640
6636
|
return (l, t) => (u(), g("div", {
|
|
6641
|
-
class:
|
|
6637
|
+
class: E({
|
|
6642
6638
|
"cl-hidden": !l.open
|
|
6643
6639
|
})
|
|
6644
6640
|
}, [
|
|
6645
|
-
l.$slots.title ? (u(), g("div",
|
|
6641
|
+
l.$slots.title ? (u(), g("div", Ei, [
|
|
6646
6642
|
D(l.$slots, "title")
|
|
6647
6643
|
])) : U("", !0),
|
|
6648
|
-
h("div",
|
|
6644
|
+
h("div", Ai, [
|
|
6649
6645
|
D(l.$slots, "default")
|
|
6650
6646
|
])
|
|
6651
6647
|
], 2));
|
|
6652
6648
|
}
|
|
6653
|
-
}),
|
|
6649
|
+
}), Mi = {}, Ii = { class: "cl-w-full" }, Ni = {
|
|
6654
6650
|
key: 0,
|
|
6655
6651
|
class: "cl-font-bold cl-mb-4 cl-select-none"
|
|
6656
|
-
},
|
|
6657
|
-
function
|
|
6658
|
-
return u(), g("div",
|
|
6659
|
-
o.$slots.title ? (u(), g("div",
|
|
6652
|
+
}, Ri = { class: "cl-flex cl-flex-wrap cl-space-y-2" };
|
|
6653
|
+
function Ui(o, l) {
|
|
6654
|
+
return u(), g("div", Ii, [
|
|
6655
|
+
o.$slots.title ? (u(), g("div", Ni, [
|
|
6660
6656
|
D(o.$slots, "title")
|
|
6661
6657
|
])) : U("", !0),
|
|
6662
|
-
h("span",
|
|
6658
|
+
h("span", Ri, [
|
|
6663
6659
|
D(o.$slots, "default")
|
|
6664
6660
|
])
|
|
6665
6661
|
]);
|
|
6666
6662
|
}
|
|
6667
|
-
const
|
|
6668
|
-
function
|
|
6669
|
-
return u(), g("div",
|
|
6663
|
+
const zi = /* @__PURE__ */ Te(Mi, [["render", Ui]]), Bi = {}, Li = { class: "cl-cursor-pointer cl-transition-colors cl-w-full hover:cl-text-primary-darker" };
|
|
6664
|
+
function Fi(o, l) {
|
|
6665
|
+
return u(), g("div", Li, [
|
|
6670
6666
|
D(o.$slots, "default")
|
|
6671
6667
|
]);
|
|
6672
6668
|
}
|
|
6673
|
-
const
|
|
6669
|
+
const ji = /* @__PURE__ */ Te(Bi, [["render", Fi]]), Pi = /* @__PURE__ */ j({
|
|
6674
6670
|
__name: "cl-ui-tab",
|
|
6675
6671
|
props: {
|
|
6676
6672
|
colour: { default: "default" },
|
|
@@ -6701,12 +6697,12 @@ const Fi = /* @__PURE__ */ Te(zi, [["render", Li]]), ji = /* @__PURE__ */ j({
|
|
|
6701
6697
|
}), l({
|
|
6702
6698
|
setTab: c
|
|
6703
6699
|
}), (p, w) => (u(), g("div", {
|
|
6704
|
-
class:
|
|
6700
|
+
class: E(["cl-w-full", {
|
|
6705
6701
|
"cl-flex cl-flex-row cl-gap-4 xl:cl-gap-6 cl-h-full": b.value === !1
|
|
6706
6702
|
}])
|
|
6707
6703
|
}, [
|
|
6708
6704
|
h("div", {
|
|
6709
|
-
class:
|
|
6705
|
+
class: E(["cl-flex cl-flex-nowrap", [
|
|
6710
6706
|
b.value === !1 ? "cl-items-start" : "cl-items-center cl-w-full",
|
|
6711
6707
|
{
|
|
6712
6708
|
"cl-border-r cl-h-full cl-border-grey-1": b.value === !1
|
|
@@ -6716,7 +6712,7 @@ const Fi = /* @__PURE__ */ Te(zi, [["render", Li]]), ji = /* @__PURE__ */ j({
|
|
|
6716
6712
|
h("div", {
|
|
6717
6713
|
ref_key: "headerContainer",
|
|
6718
6714
|
ref: d,
|
|
6719
|
-
class:
|
|
6715
|
+
class: E(["cl-border-b cl-border-grey-1 cl-flex cl-flex-nowrap cl-flex-row", {
|
|
6720
6716
|
"cl-overflow-x-auto cl-overscroll-x-none cl-w-full cl-gap-4 xl:cl-gap-6 cl-px-4": b.value,
|
|
6721
6717
|
"cl-flex-col cl-border-b-0": b.value === !1
|
|
6722
6718
|
}])
|
|
@@ -6725,7 +6721,7 @@ const Fi = /* @__PURE__ */ Te(zi, [["render", Li]]), ji = /* @__PURE__ */ j({
|
|
|
6725
6721
|
], 2)
|
|
6726
6722
|
], 2),
|
|
6727
6723
|
se(h("div", {
|
|
6728
|
-
class:
|
|
6724
|
+
class: E(["cl-basis-full cl-p-4", {
|
|
6729
6725
|
"cl-overflow-hidden": p.overflowHidden
|
|
6730
6726
|
}])
|
|
6731
6727
|
}, [
|
|
@@ -6735,7 +6731,7 @@ const Fi = /* @__PURE__ */ Te(zi, [["render", Li]]), ji = /* @__PURE__ */ j({
|
|
|
6735
6731
|
])
|
|
6736
6732
|
], 2));
|
|
6737
6733
|
}
|
|
6738
|
-
}),
|
|
6734
|
+
}), Hi = ["inert"], Gi = /* @__PURE__ */ j({
|
|
6739
6735
|
__name: "cl-ui-tab-header",
|
|
6740
6736
|
props: {
|
|
6741
6737
|
open: { type: Boolean },
|
|
@@ -6747,7 +6743,7 @@ const Fi = /* @__PURE__ */ Te(zi, [["render", Li]]), ji = /* @__PURE__ */ j({
|
|
|
6747
6743
|
setup(o) {
|
|
6748
6744
|
const l = o, t = $(() => l.layout === "horizontal");
|
|
6749
6745
|
return (e, r) => (u(), g("div", {
|
|
6750
|
-
class:
|
|
6746
|
+
class: E(["cl-flex cl-font-bold cl-items-center cl-whitespace-nowrap", {
|
|
6751
6747
|
"cl-border-b-4 cl-p-2 cl-pt-4": t.value,
|
|
6752
6748
|
"cl-border-b-0 cl-border-r-4 cl-pr-4 cl-py-2": t.value === !1,
|
|
6753
6749
|
"cl-cursor-pointer hover:cl-border-opacity-100 cl-border-link-lighter cl-border-opacity-0 cl-text-secondary-light hover:cl-text-secondary-dark": e.open === !1 && !e.disabled,
|
|
@@ -6764,32 +6760,32 @@ const Fi = /* @__PURE__ */ Te(zi, [["render", Li]]), ji = /* @__PURE__ */ j({
|
|
|
6764
6760
|
D(e.$slots, "default", {}, () => [
|
|
6765
6761
|
ue(R(e.title), 1)
|
|
6766
6762
|
])
|
|
6767
|
-
], 10,
|
|
6763
|
+
], 10, Hi));
|
|
6768
6764
|
}
|
|
6769
|
-
}),
|
|
6765
|
+
}), Zi = { key: 0 }, Wi = { class: "cl-font-bold cl-mb-4" }, Ki = /* @__PURE__ */ j({
|
|
6770
6766
|
__name: "cl-ui-tab-content",
|
|
6771
6767
|
props: {
|
|
6772
6768
|
open: { type: Boolean },
|
|
6773
6769
|
title: { default: "" }
|
|
6774
6770
|
},
|
|
6775
6771
|
setup(o) {
|
|
6776
|
-
return (l, t) => l.open ? (u(), g("div",
|
|
6772
|
+
return (l, t) => l.open ? (u(), g("div", Zi, [
|
|
6777
6773
|
l.$slots.header || l.title ? D(l.$slots, "header", { key: 0 }, () => [
|
|
6778
|
-
h("h4",
|
|
6774
|
+
h("h4", Wi, R(l.title), 1)
|
|
6779
6775
|
]) : U("", !0),
|
|
6780
6776
|
D(l.$slots, "default")
|
|
6781
6777
|
])) : U("", !0);
|
|
6782
6778
|
}
|
|
6783
|
-
}),
|
|
6779
|
+
}), Qi = [
|
|
6784
6780
|
"default",
|
|
6785
6781
|
"primary",
|
|
6786
6782
|
"secondary",
|
|
6787
6783
|
"danger",
|
|
6788
6784
|
"blue"
|
|
6789
|
-
],
|
|
6785
|
+
], Yi = [
|
|
6790
6786
|
"horizontal",
|
|
6791
6787
|
"vertical"
|
|
6792
|
-
],
|
|
6788
|
+
], Ji = { class: "cl-flex cl-flex-col cl-h-full cl-w-full" }, Xi = ["multiple", "accept", "disabled"], xi = ["multiple", "accept", "disabled"], _i = /* @__PURE__ */ j({
|
|
6793
6789
|
inheritAttrs: !1,
|
|
6794
6790
|
__name: "cl-ui-file-uploader",
|
|
6795
6791
|
props: {
|
|
@@ -6815,12 +6811,12 @@ const Fi = /* @__PURE__ */ Te(zi, [["render", Li]]), ji = /* @__PURE__ */ j({
|
|
|
6815
6811
|
}
|
|
6816
6812
|
}
|
|
6817
6813
|
function b(y) {
|
|
6818
|
-
const f = t.acceptedFileTypes.split(",").map((
|
|
6819
|
-
y.forEach((
|
|
6814
|
+
const f = t.acceptedFileTypes.split(",").map((O) => O.trim()), C = [], A = [];
|
|
6815
|
+
y.forEach((O) => {
|
|
6820
6816
|
f.some((S) => {
|
|
6821
6817
|
const P = Bt(S).replace(/\\\*/g, ".*?");
|
|
6822
|
-
return new RegExp(`^${P}$`).test(
|
|
6823
|
-
}) ? C.push(
|
|
6818
|
+
return new RegExp(`^${P}$`).test(O.type) || O.name.endsWith(S);
|
|
6819
|
+
}) ? C.push(O) : A.push(O);
|
|
6824
6820
|
}), C.length && e("files-uploaded", C), a.value = A, A.length && e("invalid-files", A), w();
|
|
6825
6821
|
}
|
|
6826
6822
|
const n = [
|
|
@@ -6842,7 +6838,7 @@ const Fi = /* @__PURE__ */ Te(zi, [["render", Li]]), ji = /* @__PURE__ */ j({
|
|
|
6842
6838
|
function w() {
|
|
6843
6839
|
c.value && (c.value.value = ""), p.value && (p.value.value = "");
|
|
6844
6840
|
}
|
|
6845
|
-
return (y, f) => (u(), g("div",
|
|
6841
|
+
return (y, f) => (u(), g("div", Ji, [
|
|
6846
6842
|
y.uploaderType === "dragDrop" ? (u(), g("label", Q({ key: 0 }, y.$attrs, {
|
|
6847
6843
|
role: "button",
|
|
6848
6844
|
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", {
|
|
@@ -6864,14 +6860,14 @@ const Fi = /* @__PURE__ */ Te(zi, [["render", Li]]), ji = /* @__PURE__ */ j({
|
|
|
6864
6860
|
accept: y.acceptedFileTypes,
|
|
6865
6861
|
disabled: y.disabled,
|
|
6866
6862
|
onInput: d
|
|
6867
|
-
}, null, 40,
|
|
6863
|
+
}, null, 40, Xi),
|
|
6868
6864
|
D(y.$slots, "default")
|
|
6869
6865
|
], 16)) : (u(), g("input", {
|
|
6870
6866
|
key: 1,
|
|
6871
6867
|
ref_key: "fileRefClassic",
|
|
6872
6868
|
ref: p,
|
|
6873
6869
|
type: "file",
|
|
6874
|
-
class:
|
|
6870
|
+
class: E({
|
|
6875
6871
|
"cl-cursor-default": y.disabled === !0,
|
|
6876
6872
|
"cl-cursor-pointer": y.disabled === !1
|
|
6877
6873
|
}),
|
|
@@ -6879,13 +6875,13 @@ const Fi = /* @__PURE__ */ Te(zi, [["render", Li]]), ji = /* @__PURE__ */ j({
|
|
|
6879
6875
|
accept: y.acceptedFileTypes,
|
|
6880
6876
|
disabled: y.disabled,
|
|
6881
6877
|
onInput: d
|
|
6882
|
-
}, null, 42,
|
|
6878
|
+
}, null, 42, xi)),
|
|
6883
6879
|
a.value.length > 0 ? D(y.$slots, "invalid-files", {
|
|
6884
6880
|
key: 2,
|
|
6885
6881
|
invalidFiles: a.value
|
|
6886
6882
|
}, () => [
|
|
6887
6883
|
h("div", {
|
|
6888
|
-
class:
|
|
6884
|
+
class: E(["cl-flex cl-flex-col cl-flex-nowrap cl-gap-1 cl-pt-1", {
|
|
6889
6885
|
"cl-w-full": y.uploaderType === "dragDrop",
|
|
6890
6886
|
"cl-w-max": y.uploaderType == "classic"
|
|
6891
6887
|
}])
|
|
@@ -6898,7 +6894,7 @@ const Fi = /* @__PURE__ */ Te(zi, [["render", Li]]), ji = /* @__PURE__ */ j({
|
|
|
6898
6894
|
]) : U("", !0)
|
|
6899
6895
|
]));
|
|
6900
6896
|
}
|
|
6901
|
-
}),
|
|
6897
|
+
}), eu = /* @__PURE__ */ j({
|
|
6902
6898
|
inheritAttrs: !1,
|
|
6903
6899
|
__name: "cl-ui-toggle",
|
|
6904
6900
|
props: /* @__PURE__ */ de({
|
|
@@ -6950,7 +6946,7 @@ const Fi = /* @__PURE__ */ Te(zi, [["render", Li]]), ji = /* @__PURE__ */ j({
|
|
|
6950
6946
|
} : void 0
|
|
6951
6947
|
]), 1032, ["show-required-asterisk"]));
|
|
6952
6948
|
}
|
|
6953
|
-
}),
|
|
6949
|
+
}), lu = /* @__PURE__ */ j({
|
|
6954
6950
|
__name: "cl-ui-toggle-button",
|
|
6955
6951
|
props: {
|
|
6956
6952
|
isSelected: { type: Boolean },
|
|
@@ -6958,7 +6954,7 @@ const Fi = /* @__PURE__ */ Te(zi, [["render", Li]]), ji = /* @__PURE__ */ j({
|
|
|
6958
6954
|
},
|
|
6959
6955
|
setup(o) {
|
|
6960
6956
|
return (l, t) => (u(), L(Ce, {
|
|
6961
|
-
class:
|
|
6957
|
+
class: E({
|
|
6962
6958
|
"!cl-bg-primary-default cl-border-primary-dark hover:cl-border-primary-dark cl-text-black !cl-bg-opacity-40 cl-font-bold": l.isSelected,
|
|
6963
6959
|
"cl-border-secondary-light hover:cl-shadow-md cl-border-opacity-40 hover:cl-border-opacity-100 !cl-text-secondary-default hover:cl-bg-primary-default hover:cl-bg-opacity-15 hover:cl-font-bold": l.isSelected === !1,
|
|
6964
6960
|
"cl-rounded-none ": l.orientation === "horizontal"
|
|
@@ -6970,7 +6966,7 @@ const Fi = /* @__PURE__ */ Te(zi, [["render", Li]]), ji = /* @__PURE__ */ j({
|
|
|
6970
6966
|
_: 3
|
|
6971
6967
|
}, 8, ["class"]));
|
|
6972
6968
|
}
|
|
6973
|
-
}),
|
|
6969
|
+
}), tu = { class: "*:cl-cursor-pointer cl-flex cl-gap-2 cl-items-center cl-select-none" }, ou = ["id", "name", "checked"], Ot = /* @__PURE__ */ j({
|
|
6974
6970
|
__name: "cl-ui-radio",
|
|
6975
6971
|
props: {
|
|
6976
6972
|
id: {},
|
|
@@ -6979,7 +6975,7 @@ const Fi = /* @__PURE__ */ Te(zi, [["render", Li]]), ji = /* @__PURE__ */ j({
|
|
|
6979
6975
|
},
|
|
6980
6976
|
emits: ["click"],
|
|
6981
6977
|
setup(o) {
|
|
6982
|
-
return (l, t) => (u(), g("div",
|
|
6978
|
+
return (l, t) => (u(), g("div", tu, [
|
|
6983
6979
|
h("input", {
|
|
6984
6980
|
id: l.id,
|
|
6985
6981
|
name: l.name,
|
|
@@ -6987,11 +6983,11 @@ const Fi = /* @__PURE__ */ Te(zi, [["render", Li]]), ji = /* @__PURE__ */ j({
|
|
|
6987
6983
|
checked: l.checked,
|
|
6988
6984
|
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",
|
|
6989
6985
|
onClick: t[0] || (t[0] = (e) => l.$emit("click"))
|
|
6990
|
-
}, null, 8,
|
|
6986
|
+
}, null, 8, ou),
|
|
6991
6987
|
D(l.$slots, "default")
|
|
6992
6988
|
]));
|
|
6993
6989
|
}
|
|
6994
|
-
}),
|
|
6990
|
+
}), au = /* @__PURE__ */ j({
|
|
6995
6991
|
__name: "cl-ui-radio-group",
|
|
6996
6992
|
props: {
|
|
6997
6993
|
id: {},
|
|
@@ -7015,19 +7011,19 @@ const Fi = /* @__PURE__ */ Te(zi, [["render", Li]]), ji = /* @__PURE__ */ j({
|
|
|
7015
7011
|
_: 2
|
|
7016
7012
|
}, 1032, ["id", "checked", "name", "onClick"]))), 128));
|
|
7017
7013
|
}
|
|
7018
|
-
}),
|
|
7014
|
+
}), nu = {
|
|
7019
7015
|
key: 0,
|
|
7020
7016
|
class: "cl-flex-1"
|
|
7021
|
-
},
|
|
7017
|
+
}, su = {
|
|
7022
7018
|
key: 0,
|
|
7023
7019
|
class: "cl-mb-1 cl-mt-0.5"
|
|
7024
|
-
},
|
|
7020
|
+
}, ru = { class: "cl-overflow-y-auto cl-w-full" }, iu = {
|
|
7025
7021
|
key: 1,
|
|
7026
7022
|
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"
|
|
7027
|
-
},
|
|
7023
|
+
}, uu = {
|
|
7028
7024
|
key: 0,
|
|
7029
7025
|
class: "cl-flex cl-flex-shrink-0 cl-w-16"
|
|
7030
|
-
},
|
|
7026
|
+
}, cu = /* @__PURE__ */ j({
|
|
7031
7027
|
inheritAttrs: !1,
|
|
7032
7028
|
__name: "cl-ui-menu",
|
|
7033
7029
|
props: {
|
|
@@ -7066,7 +7062,7 @@ const Fi = /* @__PURE__ */ Te(zi, [["render", Li]]), ji = /* @__PURE__ */ j({
|
|
|
7066
7062
|
}]
|
|
7067
7063
|
}), [
|
|
7068
7064
|
h("div", {
|
|
7069
|
-
class:
|
|
7065
|
+
class: E(["cl-flex cl-items-center cl-rounded-lg cl-w-full", {
|
|
7070
7066
|
"hover:cl-bg-primary-lighter cl-cursor-pointer cl-transition-colors": l.value === !1,
|
|
7071
7067
|
"cl-gap-3": l.value
|
|
7072
7068
|
}]),
|
|
@@ -7078,19 +7074,19 @@ const Fi = /* @__PURE__ */ Te(zi, [["render", Li]]), ji = /* @__PURE__ */ j({
|
|
|
7078
7074
|
}, [
|
|
7079
7075
|
q(m(rl), {
|
|
7080
7076
|
"icon-value": l.value ? "ph:caret-double-left" : i.value ? "ph:caret-double-right" : "ph:list",
|
|
7081
|
-
class:
|
|
7077
|
+
class: E({
|
|
7082
7078
|
"cl-rounded-lg hover:cl-bg-grey-1 cl-text-grey-3 hover:cl-text-secondary-default cl-transition-colors cl-cursor-pointer": l.value,
|
|
7083
7079
|
"cl-text-secondary-default": l.value === !1
|
|
7084
7080
|
}),
|
|
7085
7081
|
onClick: s[0] || (s[0] = x(() => a(), ["stop"]))
|
|
7086
7082
|
}, null, 8, ["icon-value", "class"]),
|
|
7087
|
-
l.value && n.$slots.menuHeader ? (u(), g("div",
|
|
7083
|
+
l.value && n.$slots.menuHeader ? (u(), g("div", nu, [
|
|
7088
7084
|
D(n.$slots, "menuHeader")
|
|
7089
7085
|
])) : U("", !0)
|
|
7090
7086
|
], 34),
|
|
7091
7087
|
n.$slots.searchInput ? (u(), g("div", {
|
|
7092
7088
|
key: 0,
|
|
7093
|
-
class:
|
|
7089
|
+
class: E(["cl-w-full", {
|
|
7094
7090
|
"hover:cl-bg-primary-lighter cl-cursor-pointer cl-rounded-lg cl-transition-colors": l.value === !1
|
|
7095
7091
|
}]),
|
|
7096
7092
|
onClick: s[4] || (s[4] = () => {
|
|
@@ -7099,29 +7095,29 @@ const Fi = /* @__PURE__ */ Te(zi, [["render", Li]]), ji = /* @__PURE__ */ j({
|
|
|
7099
7095
|
}, [
|
|
7100
7096
|
q(m(rl), {
|
|
7101
7097
|
"icon-value": "ph:magnifying-glass",
|
|
7102
|
-
class:
|
|
7098
|
+
class: E({
|
|
7103
7099
|
"cl-absolute cl-z-10 cl-text-grey-3": l.value,
|
|
7104
7100
|
"cl-text-secondary-default": l.value === !1
|
|
7105
7101
|
})
|
|
7106
7102
|
}, null, 8, ["class"]),
|
|
7107
|
-
l.value ? (u(), g("div",
|
|
7103
|
+
l.value ? (u(), g("div", su, [
|
|
7108
7104
|
D(n.$slots, "searchInput")
|
|
7109
7105
|
])) : U("", !0)
|
|
7110
7106
|
], 2)) : U("", !0),
|
|
7111
|
-
h("div",
|
|
7107
|
+
h("div", ru, [
|
|
7112
7108
|
D(n.$slots, "default", me(be({ toggleOpen: r, groupIsOpen: e })))
|
|
7113
7109
|
]),
|
|
7114
|
-
n.$slots.footer ? (u(), g("div",
|
|
7110
|
+
n.$slots.footer ? (u(), g("div", iu, [
|
|
7115
7111
|
D(n.$slots, "footer", me(be({ toggleOpen: r, groupIsOpen: e })))
|
|
7116
7112
|
])) : U("", !0)
|
|
7117
7113
|
], 16),
|
|
7118
|
-
m(d) === !1 && l.value ? (u(), g("div",
|
|
7114
|
+
m(d) === !1 && l.value ? (u(), g("div", uu)) : U("", !0)
|
|
7119
7115
|
], 64));
|
|
7120
7116
|
}
|
|
7121
|
-
}),
|
|
7117
|
+
}), du = { class: "cl-overflow-hidden cl-w-full" }, pu = ["title"], fu = { class: "cl-flex cl-flex-1 cl-items-center cl-justify-between" }, mu = { class: "cl-font-semibold" }, gu = { class: "cl-overflow-hidden" }, vu = {
|
|
7122
7118
|
key: 0,
|
|
7123
7119
|
class: "cl-mt-1"
|
|
7124
|
-
},
|
|
7120
|
+
}, hu = /* @__PURE__ */ j({
|
|
7125
7121
|
__name: "cl-ui-menu-group",
|
|
7126
7122
|
props: {
|
|
7127
7123
|
title: {},
|
|
@@ -7133,15 +7129,15 @@ const Fi = /* @__PURE__ */ Te(zi, [["render", Li]]), ji = /* @__PURE__ */ j({
|
|
|
7133
7129
|
setup(o) {
|
|
7134
7130
|
return (l, t) => {
|
|
7135
7131
|
const e = Se("icon");
|
|
7136
|
-
return u(), g("div",
|
|
7132
|
+
return u(), g("div", du, [
|
|
7137
7133
|
h("div", {
|
|
7138
7134
|
class: "cl-cursor-pointer cl-flex cl-items-center cl-rounded-lg cl-text-secondary-default cl-transition-colors hover:cl-bg-primary-lighter",
|
|
7139
7135
|
title: l.title,
|
|
7140
7136
|
onClick: t[0] || (t[0] = (r) => l.$emit("toggle-open"))
|
|
7141
7137
|
}, [
|
|
7142
7138
|
q(m(rl), { "icon-value": l.iconValue }, null, 8, ["icon-value"]),
|
|
7143
|
-
se(h("div",
|
|
7144
|
-
h("span",
|
|
7139
|
+
se(h("div", fu, [
|
|
7140
|
+
h("span", mu, R(l.title), 1),
|
|
7145
7141
|
l.$slots.default ? (u(), L(e, {
|
|
7146
7142
|
key: 0,
|
|
7147
7143
|
icon: l.open ? "ph:caret-up" : "ph:caret-down",
|
|
@@ -7150,9 +7146,9 @@ const Fi = /* @__PURE__ */ Te(zi, [["render", Li]]), ji = /* @__PURE__ */ j({
|
|
|
7150
7146
|
], 512), [
|
|
7151
7147
|
[fe, l.menuOpen]
|
|
7152
7148
|
])
|
|
7153
|
-
], 8,
|
|
7154
|
-
h("div",
|
|
7155
|
-
l.open && l.menuOpen === !0 ? (u(), g("div",
|
|
7149
|
+
], 8, pu),
|
|
7150
|
+
h("div", gu, [
|
|
7151
|
+
l.open && l.menuOpen === !0 ? (u(), g("div", vu, [
|
|
7156
7152
|
q(m(Et), null, {
|
|
7157
7153
|
default: M(() => [
|
|
7158
7154
|
D(l.$slots, "default")
|
|
@@ -7164,7 +7160,7 @@ const Fi = /* @__PURE__ */ Te(zi, [["render", Li]]), ji = /* @__PURE__ */ j({
|
|
|
7164
7160
|
]);
|
|
7165
7161
|
};
|
|
7166
7162
|
}
|
|
7167
|
-
}),
|
|
7163
|
+
}), bu = { class: "cl-flex cl-flex-shrink-0 cl-h-12 cl-items-center cl-justify-center cl-w-12" }, Ql = "24", rl = /* @__PURE__ */ j({
|
|
7168
7164
|
__name: "cl-ui-menu-icon",
|
|
7169
7165
|
props: {
|
|
7170
7166
|
iconValue: {}
|
|
@@ -7172,7 +7168,7 @@ const Fi = /* @__PURE__ */ Te(zi, [["render", Li]]), ji = /* @__PURE__ */ j({
|
|
|
7172
7168
|
setup(o) {
|
|
7173
7169
|
return (l, t) => {
|
|
7174
7170
|
const e = Se("icon");
|
|
7175
|
-
return u(), g("div",
|
|
7171
|
+
return u(), g("div", bu, [
|
|
7176
7172
|
q(e, {
|
|
7177
7173
|
icon: l.iconValue,
|
|
7178
7174
|
width: Ql,
|
|
@@ -7181,26 +7177,26 @@ const Fi = /* @__PURE__ */ Te(zi, [["render", Li]]), ji = /* @__PURE__ */ j({
|
|
|
7181
7177
|
]);
|
|
7182
7178
|
};
|
|
7183
7179
|
}
|
|
7184
|
-
}),
|
|
7180
|
+
}), yu = { class: "cl-flex cl-flex-row" }, wu = { class: "cl-flex cl-flex-1 cl-flex-col cl-pl-1" }, Et = /* @__PURE__ */ j({
|
|
7185
7181
|
__name: "cl-ui-menu-section",
|
|
7186
7182
|
setup(o) {
|
|
7187
|
-
return (l, t) => (u(), g("div",
|
|
7183
|
+
return (l, t) => (u(), g("div", yu, [
|
|
7188
7184
|
t[0] || (t[0] = h("div", { class: "cl-flex cl-flex-shrink-0 cl-justify-center cl-w-[47px]" }, [
|
|
7189
7185
|
h("div", { class: "cl-bg-grey-2 cl-w-[1px]" }, " ")
|
|
7190
7186
|
], -1)),
|
|
7191
|
-
h("div",
|
|
7187
|
+
h("div", wu, [
|
|
7192
7188
|
D(l.$slots, "default")
|
|
7193
7189
|
])
|
|
7194
7190
|
]));
|
|
7195
7191
|
}
|
|
7196
|
-
}),
|
|
7192
|
+
}), ku = { class: "cl-cursor-pointer cl-text-secondary-default cl-text-sm cl-transition-colors cl-w-full hover:cl-text-primary-dark" }, $u = /* @__PURE__ */ j({
|
|
7197
7193
|
__name: "cl-ui-menu-item",
|
|
7198
7194
|
setup(o) {
|
|
7199
|
-
return (l, t) => (u(), g("div",
|
|
7195
|
+
return (l, t) => (u(), g("div", ku, [
|
|
7200
7196
|
D(l.$slots, "default")
|
|
7201
7197
|
]));
|
|
7202
7198
|
}
|
|
7203
|
-
}),
|
|
7199
|
+
}), Tu = ["height"], Cu = ["y2"], Su = ["y1", "y2"], qu = /* @__PURE__ */ j({
|
|
7204
7200
|
__name: "cl-ui-tree-list-tree-path",
|
|
7205
7201
|
props: {
|
|
7206
7202
|
branchesAt: {}
|
|
@@ -7221,7 +7217,7 @@ const Fi = /* @__PURE__ */ Te(zi, [["render", Li]]), ji = /* @__PURE__ */ j({
|
|
|
7221
7217
|
x2: "50%",
|
|
7222
7218
|
y2: l.branchesAt.at(-1) ?? 0,
|
|
7223
7219
|
"stroke-linecap": "round"
|
|
7224
|
-
}, null, 8,
|
|
7220
|
+
}, null, 8, Cu),
|
|
7225
7221
|
(u(!0), g(K, null, _(e.branchesAt, (a, i) => (u(), g("line", {
|
|
7226
7222
|
key: i,
|
|
7227
7223
|
x1: "50%",
|
|
@@ -7229,14 +7225,14 @@ const Fi = /* @__PURE__ */ Te(zi, [["render", Li]]), ji = /* @__PURE__ */ j({
|
|
|
7229
7225
|
x2: "100%",
|
|
7230
7226
|
y2: a,
|
|
7231
7227
|
"stroke-linecap": "round"
|
|
7232
|
-
}, null, 8,
|
|
7233
|
-
], 8,
|
|
7228
|
+
}, null, 8, Su))), 128))
|
|
7229
|
+
], 8, Tu));
|
|
7234
7230
|
}
|
|
7235
7231
|
});
|
|
7236
|
-
function
|
|
7232
|
+
function Du(...o) {
|
|
7237
7233
|
return o.map((l) => l.replace(/ /g, "_")).join(" ");
|
|
7238
7234
|
}
|
|
7239
|
-
function
|
|
7235
|
+
function Ou(o, l) {
|
|
7240
7236
|
var r;
|
|
7241
7237
|
const t = l.split(" ");
|
|
7242
7238
|
let e;
|
|
@@ -7245,13 +7241,13 @@ function Du(o, l) {
|
|
|
7245
7241
|
break;
|
|
7246
7242
|
return e ?? null;
|
|
7247
7243
|
}
|
|
7248
|
-
const
|
|
7244
|
+
const Eu = { class: "cl-flex cl-flex-nowrap cl-flex-row cl-w-full" }, Au = { class: "cl-h-8 cl-px-1.5 cl-py-[3px] cl-w-8" }, Vu = ["id"], Mu = {
|
|
7249
7245
|
key: 0,
|
|
7250
7246
|
class: "cl-w-8"
|
|
7251
|
-
},
|
|
7247
|
+
}, Iu = ["id"], Nu = ["id"], Ru = {
|
|
7252
7248
|
key: 3,
|
|
7253
7249
|
class: "cl-basis-full cl-flex cl-flex-col cl-gap-2 cl-pt-2"
|
|
7254
|
-
},
|
|
7250
|
+
}, Uu = /* @__PURE__ */ j({
|
|
7255
7251
|
__name: "cl-ui-tree-list-subtree",
|
|
7256
7252
|
props: /* @__PURE__ */ de({
|
|
7257
7253
|
idPrefix: {},
|
|
@@ -7266,12 +7262,12 @@ const Ou = { class: "cl-flex cl-flex-nowrap cl-flex-row cl-w-full" }, Eu = { cla
|
|
|
7266
7262
|
emits: /* @__PURE__ */ de(["recalculate-tree-path", "set-child-node-height"], ["update:selectedPath"]),
|
|
7267
7263
|
setup(o, { emit: l }) {
|
|
7268
7264
|
var A;
|
|
7269
|
-
const t = o, e = ke(o, "selectedPath"), r = l, a = $(() =>
|
|
7265
|
+
const t = o, e = ke(o, "selectedPath"), r = l, a = $(() => Du(...t.pathFragments)), i = Nt(t.rootNode.expanded) ? t.rootNode.expanded : V(t.rootNode.expanded ?? !1), d = V(), { height: b } = Nl(d), n = bl(d), s = V([]), c = $(() => s.value.map((O) => Nl(O))), p = $(() => s.value.map((O) => bl(O))), w = V(new Array(((A = t.rootNode.children) == null ? void 0 : A.length) ?? 0).fill(0)), y = V([]);
|
|
7270
7266
|
function f() {
|
|
7271
|
-
n.update(), y.value = p.value.map((
|
|
7267
|
+
n.update(), y.value = p.value.map((O, S) => (O.update(), O.top.value - n.bottom.value + w.value[S] / 2 + 3)), r("recalculate-tree-path");
|
|
7272
7268
|
}
|
|
7273
7269
|
const C = Je(f, 1);
|
|
7274
|
-
return te(b, (
|
|
7270
|
+
return te(b, (O) => r("set-child-node-height", O), {
|
|
7275
7271
|
immediate: !0,
|
|
7276
7272
|
flush: "sync"
|
|
7277
7273
|
}), te([
|
|
@@ -7280,71 +7276,71 @@ const Ou = { class: "cl-flex cl-flex-nowrap cl-flex-row cl-w-full" }, Eu = { cla
|
|
|
7280
7276
|
], C, {
|
|
7281
7277
|
flush: "post",
|
|
7282
7278
|
deep: !0
|
|
7283
|
-
}), Ge(C), (
|
|
7279
|
+
}), Ge(C), (O, S) => {
|
|
7284
7280
|
const P = Se("icon"), I = Se("cl-ui-tree-list-subtree", !0);
|
|
7285
|
-
return u(), g("div",
|
|
7286
|
-
h("div",
|
|
7287
|
-
|
|
7281
|
+
return u(), g("div", Eu, [
|
|
7282
|
+
h("div", Au, [
|
|
7283
|
+
O.rootNode.children && O.rootNode.children.length > 0 ? (u(), g("button", {
|
|
7288
7284
|
key: 0,
|
|
7289
|
-
id: `${
|
|
7285
|
+
id: `${O.idPrefix}-expand-button`,
|
|
7290
7286
|
class: "cl-basis-0 cl-bg-white cl-p-1 cl-text-base cl-text-secondary-light",
|
|
7291
7287
|
onClick: S[0] || (S[0] = (k) => i.value = !m(i))
|
|
7292
7288
|
}, [
|
|
7293
7289
|
q(P, {
|
|
7294
7290
|
icon: m(i) ? "ph:minus-square" : "ph:plus-square"
|
|
7295
7291
|
}, null, 8, ["icon"])
|
|
7296
|
-
], 8,
|
|
7292
|
+
], 8, Vu)) : U("", !0)
|
|
7297
7293
|
]),
|
|
7298
|
-
|
|
7294
|
+
O.depth > 0 ? (u(), g("div", Mu)) : U("", !0),
|
|
7299
7295
|
h("div", {
|
|
7300
|
-
class:
|
|
7296
|
+
class: E(["cl-basis-full cl-relative", {
|
|
7301
7297
|
"cl-tree-list-selection": e.value === a.value
|
|
7302
7298
|
}])
|
|
7303
7299
|
}, [
|
|
7304
7300
|
e.value === null ? (u(), g("div", {
|
|
7305
7301
|
key: 0,
|
|
7306
|
-
id: `${
|
|
7302
|
+
id: `${O.idPrefix}-node-content`,
|
|
7307
7303
|
ref_key: "nodeContentDiv",
|
|
7308
7304
|
ref: d,
|
|
7309
7305
|
class: "cl-bg-white cl-border cl-border-grey-2 cl-px-2 cl-py-1 cl-rounded"
|
|
7310
7306
|
}, [
|
|
7311
|
-
D(
|
|
7312
|
-
node:
|
|
7307
|
+
D(O.$slots, O.rootNode.slotName ?? "default", {
|
|
7308
|
+
node: O.rootNode,
|
|
7313
7309
|
path: a.value,
|
|
7314
|
-
depth:
|
|
7315
|
-
breadth:
|
|
7310
|
+
depth: O.depth,
|
|
7311
|
+
breadth: O.breadth,
|
|
7316
7312
|
isSelected: e.value === a.value,
|
|
7317
7313
|
isExpanded: m(i),
|
|
7318
7314
|
expand: (k) => i.value = k
|
|
7319
7315
|
})
|
|
7320
|
-
], 8,
|
|
7316
|
+
], 8, Iu)) : (u(), g("button", {
|
|
7321
7317
|
key: 1,
|
|
7322
|
-
id: `${
|
|
7318
|
+
id: `${O.idPrefix}-node-content`,
|
|
7323
7319
|
ref_key: "nodeContentDiv",
|
|
7324
7320
|
ref: d,
|
|
7325
|
-
class:
|
|
7321
|
+
class: E(["cl-border cl-border-grey-2 cl-px-2 cl-py-1 cl-rounded cl-text-left cl-w-full", {
|
|
7326
7322
|
"cl-bg-primary-lightest cl-border-primary-dark": e.value === a.value,
|
|
7327
7323
|
"cl-tree-list-button": e.value !== a.value
|
|
7328
7324
|
}]),
|
|
7329
7325
|
onClick: S[1] || (S[1] = (k) => e.value = e.value === a.value ? "" : a.value)
|
|
7330
7326
|
}, [
|
|
7331
|
-
D(
|
|
7332
|
-
node:
|
|
7327
|
+
D(O.$slots, O.rootNode.slotName ?? "default", {
|
|
7328
|
+
node: O.rootNode,
|
|
7333
7329
|
path: a.value,
|
|
7334
|
-
depth:
|
|
7335
|
-
breadth:
|
|
7330
|
+
depth: O.depth,
|
|
7331
|
+
breadth: O.breadth,
|
|
7336
7332
|
isSelected: e.value === a.value,
|
|
7337
7333
|
isExpanded: m(i),
|
|
7338
7334
|
expand: (k) => i.value = k
|
|
7339
7335
|
})
|
|
7340
|
-
], 10,
|
|
7341
|
-
|
|
7336
|
+
], 10, Nu)),
|
|
7337
|
+
O.rootNode.children && O.rootNode.children.length > 0 && m(i) ? (u(), L(qu, {
|
|
7342
7338
|
key: 2,
|
|
7343
7339
|
class: "cl-tree-list-path",
|
|
7344
7340
|
"branches-at": y.value
|
|
7345
7341
|
}, null, 8, ["branches-at"])) : U("", !0),
|
|
7346
|
-
|
|
7347
|
-
(u(!0), g(K, null, _(
|
|
7342
|
+
O.rootNode.children && O.rootNode.children.length > 0 && m(i) ? (u(), g("div", Ru, [
|
|
7343
|
+
(u(!0), g(K, null, _(O.rootNode.children, (k, W) => (u(), g("div", {
|
|
7348
7344
|
key: k.id,
|
|
7349
7345
|
ref_for: !0,
|
|
7350
7346
|
ref_key: "childSubtreeDivs",
|
|
@@ -7353,18 +7349,18 @@ const Ou = { class: "cl-flex cl-flex-nowrap cl-flex-row cl-w-full" }, Eu = { cla
|
|
|
7353
7349
|
q(I, {
|
|
7354
7350
|
"selected-path": e.value,
|
|
7355
7351
|
"onUpdate:selectedPath": S[2] || (S[2] = (oe) => e.value = oe),
|
|
7356
|
-
"id-prefix": `${
|
|
7357
|
-
depth:
|
|
7352
|
+
"id-prefix": `${O.idPrefix}-${k.id}`,
|
|
7353
|
+
depth: O.depth + 1,
|
|
7358
7354
|
breadth: W,
|
|
7359
|
-
"path-fragments": [...
|
|
7355
|
+
"path-fragments": [...O.pathFragments, k.id],
|
|
7360
7356
|
"root-node": k,
|
|
7361
7357
|
onRecalculateTreePath: m(C),
|
|
7362
7358
|
onSetChildNodeHeight: (oe) => w.value[W] = oe
|
|
7363
7359
|
}, ye({ _: 2 }, [
|
|
7364
|
-
_(
|
|
7360
|
+
_(O.$slots, (oe, G) => ({
|
|
7365
7361
|
name: G,
|
|
7366
7362
|
fn: M((B) => [
|
|
7367
|
-
D(
|
|
7363
|
+
D(O.$slots, G, Q({ ref_for: !0 }, B))
|
|
7368
7364
|
])
|
|
7369
7365
|
}))
|
|
7370
7366
|
]), 1032, ["selected-path", "id-prefix", "depth", "breadth", "path-fragments", "root-node", "onRecalculateTreePath", "onSetChildNodeHeight"])
|
|
@@ -7374,7 +7370,7 @@ const Ou = { class: "cl-flex cl-flex-nowrap cl-flex-row cl-w-full" }, Eu = { cla
|
|
|
7374
7370
|
]);
|
|
7375
7371
|
};
|
|
7376
7372
|
}
|
|
7377
|
-
}),
|
|
7373
|
+
}), zu = { class: "cl-flex cl-flex-col cl-flex-nowrap cl-gap-4 cl-w-full" }, Bu = /* @__PURE__ */ j({
|
|
7378
7374
|
__name: "cl-ui-tree-list",
|
|
7379
7375
|
props: {
|
|
7380
7376
|
idPrefix: {},
|
|
@@ -7388,15 +7384,15 @@ const Ou = { class: "cl-flex cl-flex-nowrap cl-flex-row cl-w-full" }, Eu = { cla
|
|
|
7388
7384
|
const t = o, e = l, r = V(""), a = $({
|
|
7389
7385
|
get: () => t.allowSelect ? r.value : null,
|
|
7390
7386
|
set(i) {
|
|
7391
|
-
i ? (r.value = i, e("select",
|
|
7387
|
+
i ? (r.value = i, e("select", Ou(t.rootNodes, i))) : t.allowDeselect && (r.value = "", e("select", null));
|
|
7392
7388
|
}
|
|
7393
7389
|
});
|
|
7394
|
-
return (i, d) => (u(), g("div",
|
|
7395
|
-
(u(!0), g(K, null, _(i.rootNodes, (b, n) => (u(), L(
|
|
7390
|
+
return (i, d) => (u(), g("div", zu, [
|
|
7391
|
+
(u(!0), g(K, null, _(i.rootNodes, (b, n) => (u(), L(Uu, {
|
|
7396
7392
|
key: b.id,
|
|
7397
7393
|
"selected-path": a.value,
|
|
7398
7394
|
"onUpdate:selectedPath": d[0] || (d[0] = (s) => a.value = s),
|
|
7399
|
-
class:
|
|
7395
|
+
class: E({
|
|
7400
7396
|
"cl-tree-list-highlight-descendants": i.highlightSelectedDescendants
|
|
7401
7397
|
}),
|
|
7402
7398
|
"root-node": b,
|
|
@@ -7414,7 +7410,7 @@ const Ou = { class: "cl-flex cl-flex-nowrap cl-flex-row cl-w-full" }, Eu = { cla
|
|
|
7414
7410
|
]), 1032, ["selected-path", "class", "root-node", "breadth", "id-prefix", "path-fragments"]))), 128))
|
|
7415
7411
|
]));
|
|
7416
7412
|
}
|
|
7417
|
-
}),
|
|
7413
|
+
}), Lu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7418
7414
|
__proto__: null,
|
|
7419
7415
|
FilterOperation: ne,
|
|
7420
7416
|
allQuickDates: ft,
|
|
@@ -7429,7 +7425,7 @@ const Ou = { class: "cl-flex cl-flex-nowrap cl-flex-row cl-w-full" }, Eu = { cla
|
|
|
7429
7425
|
clUiButton: Ce,
|
|
7430
7426
|
clUiCard: bo,
|
|
7431
7427
|
clUiComboBox: Xo,
|
|
7432
|
-
clUiFileUploader:
|
|
7428
|
+
clUiFileUploader: _i,
|
|
7433
7429
|
clUiFooter: ra,
|
|
7434
7430
|
clUiGrid: Zs,
|
|
7435
7431
|
clUiGridLite: Qs,
|
|
@@ -7453,29 +7449,29 @@ const Ou = { class: "cl-flex cl-flex-nowrap cl-flex-row cl-w-full" }, Eu = { cla
|
|
|
7453
7449
|
clUiInputTextArea: Nn,
|
|
7454
7450
|
clUiLanguageSwitcher: ri,
|
|
7455
7451
|
clUiLoadingSpinner: _e,
|
|
7456
|
-
clUiLogin:
|
|
7457
|
-
clUiMenu:
|
|
7458
|
-
clUiMenuGroup:
|
|
7452
|
+
clUiLogin: ki,
|
|
7453
|
+
clUiMenu: cu,
|
|
7454
|
+
clUiMenuGroup: hu,
|
|
7459
7455
|
clUiMenuIcon: rl,
|
|
7460
|
-
clUiMenuItem:
|
|
7456
|
+
clUiMenuItem: $u,
|
|
7461
7457
|
clUiMenuSection: Et,
|
|
7462
7458
|
clUiModal: nt,
|
|
7463
|
-
clUiNavigation:
|
|
7464
|
-
clUiNavigationGroup:
|
|
7465
|
-
clUiNavigationIcon:
|
|
7466
|
-
clUiNavigationItem:
|
|
7467
|
-
clUiNavigationSection:
|
|
7459
|
+
clUiNavigation: Di,
|
|
7460
|
+
clUiNavigationGroup: Vi,
|
|
7461
|
+
clUiNavigationIcon: Oi,
|
|
7462
|
+
clUiNavigationItem: ji,
|
|
7463
|
+
clUiNavigationSection: zi,
|
|
7468
7464
|
clUiNotification: at,
|
|
7469
7465
|
clUiRadio: Ot,
|
|
7470
|
-
clUiRadioGroup:
|
|
7466
|
+
clUiRadioGroup: au,
|
|
7471
7467
|
clUiSelect: wl,
|
|
7472
7468
|
clUiSelectOption: kl,
|
|
7473
|
-
clUiTab:
|
|
7474
|
-
clUiTabContent:
|
|
7475
|
-
clUiTabHeader:
|
|
7476
|
-
clUiToggle:
|
|
7477
|
-
clUiToggleButton:
|
|
7478
|
-
clUiTreeList:
|
|
7469
|
+
clUiTab: Pi,
|
|
7470
|
+
clUiTabContent: Ki,
|
|
7471
|
+
clUiTabHeader: Gi,
|
|
7472
|
+
clUiToggle: eu,
|
|
7473
|
+
clUiToggleButton: lu,
|
|
7474
|
+
clUiTreeList: Bu,
|
|
7479
7475
|
currentQuickDates: Qe,
|
|
7480
7476
|
dateTimeCalendarTypes: vt,
|
|
7481
7477
|
filterMethodTypes: ts,
|
|
@@ -7492,16 +7488,16 @@ const Ou = { class: "cl-flex cl-flex-nowrap cl-flex-row cl-w-full" }, Eu = { cla
|
|
|
7492
7488
|
isGridColumnArray: es,
|
|
7493
7489
|
isLanguageArray: li,
|
|
7494
7490
|
isLanguageLocaleFormat: $l,
|
|
7495
|
-
modalColours:
|
|
7496
|
-
modalSizes:
|
|
7491
|
+
modalColours: Ti,
|
|
7492
|
+
modalSizes: $i,
|
|
7497
7493
|
pastQuickDates: nl,
|
|
7498
7494
|
popoverPlacements: Zn,
|
|
7499
7495
|
quickDateNames: An,
|
|
7500
7496
|
stringFormats: ls,
|
|
7501
|
-
tabColours:
|
|
7502
|
-
tabLayout:
|
|
7503
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
7504
|
-
o.use(qe), o.component("Icon", le), Object.entries(
|
|
7497
|
+
tabColours: Qi,
|
|
7498
|
+
tabLayout: Yi
|
|
7499
|
+
}, Symbol.toStringTag, { value: "Module" })), lc = (o) => {
|
|
7500
|
+
o.use(qe), o.component("Icon", le), Object.entries(Lu).forEach(([
|
|
7505
7501
|
l,
|
|
7506
7502
|
t
|
|
7507
7503
|
]) => {
|
|
@@ -7509,7 +7505,7 @@ const Ou = { class: "cl-flex cl-flex-nowrap cl-flex-row cl-w-full" }, Eu = { cla
|
|
|
7509
7505
|
});
|
|
7510
7506
|
};
|
|
7511
7507
|
export {
|
|
7512
|
-
|
|
7508
|
+
ec as CitrusLimeUI,
|
|
7513
7509
|
ie as DateFormat,
|
|
7514
7510
|
ne as FilterOperation,
|
|
7515
7511
|
ae as NumberFormat,
|
|
@@ -7525,7 +7521,7 @@ export {
|
|
|
7525
7521
|
Ce as clUiButton,
|
|
7526
7522
|
bo as clUiCard,
|
|
7527
7523
|
Xo as clUiComboBox,
|
|
7528
|
-
|
|
7524
|
+
_i as clUiFileUploader,
|
|
7529
7525
|
ra as clUiFooter,
|
|
7530
7526
|
Zs as clUiGrid,
|
|
7531
7527
|
Qs as clUiGridLite,
|
|
@@ -7549,33 +7545,33 @@ export {
|
|
|
7549
7545
|
Nn as clUiInputTextArea,
|
|
7550
7546
|
ri as clUiLanguageSwitcher,
|
|
7551
7547
|
_e as clUiLoadingSpinner,
|
|
7552
|
-
|
|
7553
|
-
|
|
7554
|
-
|
|
7548
|
+
ki as clUiLogin,
|
|
7549
|
+
cu as clUiMenu,
|
|
7550
|
+
hu as clUiMenuGroup,
|
|
7555
7551
|
rl as clUiMenuIcon,
|
|
7556
|
-
|
|
7552
|
+
$u as clUiMenuItem,
|
|
7557
7553
|
Et as clUiMenuSection,
|
|
7558
7554
|
nt as clUiModal,
|
|
7559
|
-
|
|
7560
|
-
|
|
7561
|
-
|
|
7562
|
-
|
|
7563
|
-
|
|
7555
|
+
Di as clUiNavigation,
|
|
7556
|
+
Vi as clUiNavigationGroup,
|
|
7557
|
+
Oi as clUiNavigationIcon,
|
|
7558
|
+
ji as clUiNavigationItem,
|
|
7559
|
+
zi as clUiNavigationSection,
|
|
7564
7560
|
at as clUiNotification,
|
|
7565
7561
|
Ot as clUiRadio,
|
|
7566
|
-
|
|
7562
|
+
au as clUiRadioGroup,
|
|
7567
7563
|
wl as clUiSelect,
|
|
7568
7564
|
kl as clUiSelectOption,
|
|
7569
|
-
|
|
7570
|
-
|
|
7571
|
-
|
|
7572
|
-
|
|
7573
|
-
|
|
7574
|
-
|
|
7565
|
+
Pi as clUiTab,
|
|
7566
|
+
Ki as clUiTabContent,
|
|
7567
|
+
Gi as clUiTabHeader,
|
|
7568
|
+
eu as clUiToggle,
|
|
7569
|
+
lu as clUiToggleButton,
|
|
7570
|
+
Bu as clUiTreeList,
|
|
7575
7571
|
Qe as currentQuickDates,
|
|
7576
7572
|
vt as dateTimeCalendarTypes,
|
|
7577
7573
|
qa as datetimeFormats,
|
|
7578
|
-
|
|
7574
|
+
lc as default,
|
|
7579
7575
|
Ea as doesNumberStringContainPart,
|
|
7580
7576
|
ts as filterMethodTypes,
|
|
7581
7577
|
Me as formatNumber,
|
|
@@ -7597,21 +7593,21 @@ export {
|
|
|
7597
7593
|
li as isLanguageArray,
|
|
7598
7594
|
$l as isLanguageLocaleFormat,
|
|
7599
7595
|
Ca as messages,
|
|
7600
|
-
|
|
7601
|
-
|
|
7596
|
+
Ti as modalColours,
|
|
7597
|
+
$i as modalSizes,
|
|
7602
7598
|
Sa as numberFormats,
|
|
7603
7599
|
nl as pastQuickDates,
|
|
7604
7600
|
Zn as popoverPlacements,
|
|
7605
7601
|
An as quickDateNames,
|
|
7606
7602
|
Ma as scrubGroupSeparatorsFromFormattedValue,
|
|
7607
|
-
|
|
7608
|
-
|
|
7609
|
-
|
|
7610
|
-
|
|
7603
|
+
_u as setCurrentLocale,
|
|
7604
|
+
xu as setLocaleDateTimeFormats,
|
|
7605
|
+
Ju as setLocaleMessages,
|
|
7606
|
+
Xu as setLocaleNumberFormats,
|
|
7611
7607
|
Rl as showNotification,
|
|
7612
7608
|
ls as stringFormats,
|
|
7613
|
-
|
|
7614
|
-
|
|
7609
|
+
Qi as tabColours,
|
|
7610
|
+
Yi as tabLayout,
|
|
7615
7611
|
st as unformatNumber,
|
|
7616
7612
|
za as validateEmail,
|
|
7617
7613
|
Ra as validateMaxValue,
|