@citruslime/ui 3.1.0-beta.1 → 3.1.0-beta.2
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 +131 -129
- package/dist/citrus-lime-ui.umd.js +2 -2
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Icon as J } from "@iconify/vue";
|
|
2
|
-
import { defineComponent as j, ref as R, openBlock as u, createElementBlock as g, renderSlot as A, normalizeProps as pe, guardReactiveProps as me, Fragment as Z, createElementVNode as v, normalizeClass as M, createVNode as k, unref as m, Transition as Me, withCtx as V, withDirectives as te, mergeProps as K, vShow as ue, createBlock as P, Teleport as Cl, renderList as X, toDisplayString as U, createCommentVNode as L, computed as $, createTextVNode as re, mergeModels as de, useModel as he, createSlots as be, vModelDynamic as Wl, watch as ee, toRefs as Kl, withKeys as we, onMounted as je, onUnmounted as il, withModifiers as ae, nextTick as Ue, useAttrs as Qe, resolveComponent as $e, inject as cl, vModelCheckbox as Ct, toValue as Ml, watchEffect as Tt, vModelText as Tl, useCssVars as Ql, toHandlers as St, provide as hl, normalizeStyle as
|
|
2
|
+
import { defineComponent as j, ref as R, openBlock as u, createElementBlock as g, renderSlot as A, normalizeProps as pe, guardReactiveProps as me, Fragment as Z, createElementVNode as v, normalizeClass as M, createVNode as k, unref as m, Transition as Me, withCtx as V, withDirectives as te, mergeProps as K, vShow as ue, createBlock as P, Teleport as Cl, renderList as X, toDisplayString as U, createCommentVNode as L, computed as $, createTextVNode as re, mergeModels as de, useModel as he, createSlots as be, vModelDynamic as Wl, watch as ee, toRefs as Kl, withKeys as we, onMounted as je, onUnmounted as il, withModifiers as ae, nextTick as Ue, useAttrs as Qe, resolveComponent as $e, inject as cl, vModelCheckbox as Ct, toValue as Ml, watchEffect as Tt, vModelText as Tl, useCssVars as Ql, toHandlers as St, provide as hl, normalizeStyle as Yl, isRef as qt } from "vue";
|
|
3
3
|
import { generateStringId as Ot, highlightText as Dt, validateEmail as At } from "@citruslime/utils";
|
|
4
|
-
import { onKeyDown as bl, unrefElement as Et, tryOnScopeDispose as Vt, onClickOutside as
|
|
4
|
+
import { onKeyDown as bl, unrefElement as Et, tryOnScopeDispose as Vt, onClickOutside as Ye, useTimeoutFn as xl, useMouseInElement as Mt, useFocusWithin as Nt, useMediaQuery as Jl, useThrottle as It, useElementBounding as yl, useDebounceFn as Ke, useThrottleFn as Rt, useWindowSize as Ut, useBreakpoints as zt, breakpointsTailwind as Lt, useElementSize as Nl } from "@vueuse/core";
|
|
5
5
|
import { useI18n as ce, createI18n as Bt } from "vue-i18n";
|
|
6
6
|
import { createFocusTrap as Ft } from "focus-trap";
|
|
7
7
|
import { copy as ve } from "@citruslime/vue-utils";
|
|
@@ -85,13 +85,13 @@ const Pt = { class: "cl-overflow-hidden" }, Gt = /* @__PURE__ */ j({
|
|
|
85
85
|
for (const [e, s] of t)
|
|
86
86
|
l[e] = s;
|
|
87
87
|
return l;
|
|
88
|
-
}, Qt = {},
|
|
89
|
-
function
|
|
90
|
-
return u(), g("div",
|
|
88
|
+
}, Qt = {}, Yt = { class: "cl-border-b cl-border-grey-1 cl-font-semibold cl-pl-14 cl-pr-4 cl-py-2 cl-text-grey-3 cl-text-sm" };
|
|
89
|
+
function xt(o, t) {
|
|
90
|
+
return u(), g("div", Yt, [
|
|
91
91
|
A(o.$slots, "default")
|
|
92
92
|
]);
|
|
93
93
|
}
|
|
94
|
-
const Jt = /* @__PURE__ */ ye(Qt, [["render",
|
|
94
|
+
const Jt = /* @__PURE__ */ ye(Qt, [["render", xt]]), tl = R([]);
|
|
95
95
|
function Il(o) {
|
|
96
96
|
const t = {
|
|
97
97
|
id: Ot(),
|
|
@@ -182,7 +182,7 @@ const Xt = ["onClick"], _t = { class: "cl-flex-1 cl-select-none cl-text-ellipsis
|
|
|
182
182
|
function ao(o, t) {
|
|
183
183
|
return u(), g("div", oo);
|
|
184
184
|
}
|
|
185
|
-
const
|
|
185
|
+
const xe = /* @__PURE__ */ ye(to, [["render", ao], ["__scopeId", "data-v-a21dc5d2"]]), no = ["disabled"], Ce = /* @__PURE__ */ j({
|
|
186
186
|
inheritAttrs: !1,
|
|
187
187
|
__name: "cl-ui-button",
|
|
188
188
|
props: {
|
|
@@ -198,7 +198,7 @@ const Ye = /* @__PURE__ */ ye(to, [["render", ao], ["__scopeId", "data-v-a21dc5d
|
|
|
198
198
|
l.value && l.value.focus();
|
|
199
199
|
}
|
|
200
200
|
}), (e, s) => (u(), g(Z, null, [
|
|
201
|
-
te(k(
|
|
201
|
+
te(k(xe, { class: "relative" }, null, 512), [
|
|
202
202
|
[ue, e.loading]
|
|
203
203
|
]),
|
|
204
204
|
te(v("button", K(e.$attrs, {
|
|
@@ -678,11 +678,11 @@ const Co = {
|
|
|
678
678
|
}
|
|
679
679
|
function T(N) {
|
|
680
680
|
if (N.key === "Tab" && N.shiftKey === !0) {
|
|
681
|
-
const
|
|
681
|
+
const x = document.getElementsByTagName("input");
|
|
682
682
|
let ne = -1;
|
|
683
|
-
for (let I = 0; I <
|
|
684
|
-
|
|
685
|
-
ne >= 0 && (
|
|
683
|
+
for (let I = 0; I < x.length; I++)
|
|
684
|
+
x[I] === N.target && (ne = I - 1);
|
|
685
|
+
ne >= 0 && (x[ne].focus(), y());
|
|
686
686
|
}
|
|
687
687
|
}
|
|
688
688
|
function S() {
|
|
@@ -698,8 +698,8 @@ const Co = {
|
|
|
698
698
|
}
|
|
699
699
|
function _() {
|
|
700
700
|
l.isVisible === !0 && (n.value = "", a(), Ue(() => {
|
|
701
|
-
var N,
|
|
702
|
-
return (
|
|
701
|
+
var N, x;
|
|
702
|
+
return (x = (N = r.value) == null ? void 0 : N.querySelector("input")) == null ? void 0 : x.focus();
|
|
703
703
|
}));
|
|
704
704
|
}
|
|
705
705
|
return ee(() => l.results, () => q()), ee(() => l.errorMessage, () => q()), ee(() => l.isVisible, () => _()), je(() => {
|
|
@@ -708,7 +708,7 @@ const Co = {
|
|
|
708
708
|
}), il(() => {
|
|
709
709
|
var N;
|
|
710
710
|
return (N = r.value) == null ? void 0 : N.removeEventListener("keydown", T);
|
|
711
|
-
}), (N,
|
|
711
|
+
}), (N, x) => {
|
|
712
712
|
var ne;
|
|
713
713
|
return u(), g("div", {
|
|
714
714
|
ref_key: "container",
|
|
@@ -717,27 +717,27 @@ const Co = {
|
|
|
717
717
|
"cl-overflow-y-hidden": N.loading
|
|
718
718
|
}]),
|
|
719
719
|
onKeydown: [
|
|
720
|
-
|
|
721
|
-
|
|
720
|
+
x[2] || (x[2] = we(ae((I) => h(p.value), ["prevent", "stop"]), ["up"])),
|
|
721
|
+
x[3] || (x[3] = we(ae((I) => C(p.value), ["prevent", "stop"]), ["down"]))
|
|
722
722
|
],
|
|
723
723
|
onKeyup: we(ae(O, ["prevent", "stop"]), ["enter"])
|
|
724
724
|
}, [
|
|
725
725
|
N.loading ? (u(), g("div", Eo, [
|
|
726
|
-
k(
|
|
726
|
+
k(xe)
|
|
727
727
|
])) : L("", !0),
|
|
728
728
|
v("div", Vo, [
|
|
729
729
|
v("div", Mo, [
|
|
730
730
|
k(Re, {
|
|
731
731
|
id: `cl-ui-combo-box-search-input-${N.objectType}`,
|
|
732
732
|
modelValue: n.value,
|
|
733
|
-
"onUpdate:modelValue":
|
|
733
|
+
"onUpdate:modelValue": x[0] || (x[0] = (I) => n.value = I),
|
|
734
734
|
class: "cl-box-border cl-font-light cl-mb-2 cl-p-2 cl-placeholder-grey-3 cl-text-sm",
|
|
735
735
|
placeholder: N.searchHint,
|
|
736
736
|
type: "search",
|
|
737
737
|
onKeyup: a,
|
|
738
738
|
onBlur: y
|
|
739
739
|
}, {
|
|
740
|
-
default: V(() =>
|
|
740
|
+
default: V(() => x[4] || (x[4] = [
|
|
741
741
|
v("span", null, null, -1)
|
|
742
742
|
])),
|
|
743
743
|
_: 1
|
|
@@ -748,7 +748,7 @@ const Co = {
|
|
|
748
748
|
key: 1,
|
|
749
749
|
"show-clear-button": N.canClearSelectedObject,
|
|
750
750
|
text: N.currentObjectName,
|
|
751
|
-
onClearObject:
|
|
751
|
+
onClearObject: x[1] || (x[1] = (I) => N.$emit("clear-object"))
|
|
752
752
|
}, null, 8, ["show-clear-button", "text"])) : L("", !0),
|
|
753
753
|
N.objectParentType !== "" && N.results !== void 0 && N.results.length > 0 && N.errorMessage === "" ? (u(), P(el, {
|
|
754
754
|
key: 2,
|
|
@@ -817,8 +817,8 @@ const Co = {
|
|
|
817
817
|
set: (w) => s("update:current-object", w)
|
|
818
818
|
}), y = R(null), C = $(() => Te()), h = R(""), O = R(""), T = R(), S = R(!0), q = R(!1);
|
|
819
819
|
function F(w) {
|
|
820
|
-
var
|
|
821
|
-
const z = ((
|
|
820
|
+
var Y;
|
|
821
|
+
const z = ((Y = H.value) == null ? void 0 : Y.getBoundingClientRect().top) || 0;
|
|
822
822
|
q.value = window.innerHeight - z < 280, e.disabled || (typeof w < "u" ? i.value = w : i.value = !i.value);
|
|
823
823
|
}
|
|
824
824
|
function _(w) {
|
|
@@ -827,7 +827,7 @@ const Co = {
|
|
|
827
827
|
function N(w) {
|
|
828
828
|
O.value = w, s("search-parent", w);
|
|
829
829
|
}
|
|
830
|
-
function
|
|
830
|
+
function x() {
|
|
831
831
|
f.value = null, F(!1);
|
|
832
832
|
}
|
|
833
833
|
function ne(w) {
|
|
@@ -837,9 +837,9 @@ const Co = {
|
|
|
837
837
|
function I(w) {
|
|
838
838
|
let z = null;
|
|
839
839
|
if (e.results !== null) {
|
|
840
|
-
for (let
|
|
841
|
-
if (e.results[
|
|
842
|
-
z = e.results[
|
|
840
|
+
for (let Y = 0; Y < e.results.length; Y++)
|
|
841
|
+
if (e.results[Y].id === w) {
|
|
842
|
+
z = e.results[Y];
|
|
843
843
|
break;
|
|
844
844
|
}
|
|
845
845
|
}
|
|
@@ -877,7 +877,7 @@ const Co = {
|
|
|
877
877
|
});
|
|
878
878
|
}
|
|
879
879
|
function Pe() {
|
|
880
|
-
var z,
|
|
880
|
+
var z, Y, b, B, W;
|
|
881
881
|
Il({
|
|
882
882
|
message: a("comboBox.createSuccessful", {
|
|
883
883
|
object: e.objectType,
|
|
@@ -887,7 +887,7 @@ const Co = {
|
|
|
887
887
|
duration: 1e4
|
|
888
888
|
});
|
|
889
889
|
let w = "";
|
|
890
|
-
y.value && y.value.id === ((
|
|
890
|
+
y.value && y.value.id === ((Y = e.objectCreatedResponse) == null ? void 0 : Y.parentId) && (w = y.value.name), f.value = {
|
|
891
891
|
id: ((b = e.objectCreatedResponse) == null ? void 0 : b.id) ?? 0,
|
|
892
892
|
name: ((B = e.objectCreatedResponse) == null ? void 0 : B.name) ?? "",
|
|
893
893
|
parentId: ((W = e.objectCreatedResponse) == null ? void 0 : W.parentId) ?? 0,
|
|
@@ -904,12 +904,12 @@ const Co = {
|
|
|
904
904
|
}
|
|
905
905
|
ee(() => e.objectCreatedResponse, () => fe()), ee(() => e.parentObjectCreatedResponse, () => ge()), ee(() => h.value, () => E()), ee(() => y.value, () => E());
|
|
906
906
|
const H = R();
|
|
907
|
-
return
|
|
907
|
+
return Ye(H, () => i.value ? F(!1) : ""), t({
|
|
908
908
|
focus() {
|
|
909
909
|
F(), s("focus");
|
|
910
910
|
}
|
|
911
911
|
}), (w, z) => {
|
|
912
|
-
const
|
|
912
|
+
const Y = $e("cl-ui-combo-box", !0);
|
|
913
913
|
return u(), g("div", K({
|
|
914
914
|
ref_key: "outsideRef",
|
|
915
915
|
ref: H
|
|
@@ -995,7 +995,7 @@ const Co = {
|
|
|
995
995
|
"search-hint": r.value,
|
|
996
996
|
onCreateObject: () => w.objectParentType === "" && w.skipObjectCreationModal === !0 ? D() : b(),
|
|
997
997
|
onSelectObject: ne,
|
|
998
|
-
onClearObject:
|
|
998
|
+
onClearObject: x,
|
|
999
999
|
onSearch: _,
|
|
1000
1000
|
onHideDropdown: z[4] || (z[4] = (B) => F(!1))
|
|
1001
1001
|
}, null, 8, ["can-create-new-object", "can-clear-selected-object", "loading", "results", "object-type", "object-parent-type", "error-message", "current-object-name", "is-visible", "class", "search-hint", "onCreateObject"]), [
|
|
@@ -1032,7 +1032,7 @@ const Co = {
|
|
|
1032
1032
|
]),
|
|
1033
1033
|
default: V(() => [
|
|
1034
1034
|
v("div", jo, [
|
|
1035
|
-
w.objectParentType ? (u(), P(
|
|
1035
|
+
w.objectParentType ? (u(), P(Y, {
|
|
1036
1036
|
key: 0,
|
|
1037
1037
|
"current-object": y.value,
|
|
1038
1038
|
"onUpdate:currentObject": z[5] || (z[5] = (b) => y.value = b),
|
|
@@ -1074,17 +1074,17 @@ function Zo(o) {
|
|
|
1074
1074
|
const Wo = {}, Ko = { class: "cl-flex cl-flex-wrap cl-left-0 cl-mt-4 cl-w-full" }, Qo = {
|
|
1075
1075
|
key: 0,
|
|
1076
1076
|
class: "cl-w-full"
|
|
1077
|
-
},
|
|
1077
|
+
}, Yo = {
|
|
1078
1078
|
key: 1,
|
|
1079
1079
|
class: "cl-leading-10 cl-text-sm cl-w-full"
|
|
1080
|
-
},
|
|
1080
|
+
}, xo = { class: "cl-float-left" }, Jo = { class: "cl-float-right" };
|
|
1081
1081
|
function Xo(o, t) {
|
|
1082
1082
|
return u(), g("div", Ko, [
|
|
1083
1083
|
o.$slots.default ? (u(), g("div", Qo, [
|
|
1084
1084
|
A(o.$slots, "default")
|
|
1085
1085
|
])) : L("", !0),
|
|
1086
|
-
o.$slots.left || o.$slots.right ? (u(), g("div",
|
|
1087
|
-
v("span",
|
|
1086
|
+
o.$slots.left || o.$slots.right ? (u(), g("div", Yo, [
|
|
1087
|
+
v("span", xo, [
|
|
1088
1088
|
A(o.$slots, "left")
|
|
1089
1089
|
]),
|
|
1090
1090
|
v("span", Jo, [
|
|
@@ -1494,10 +1494,10 @@ function Kc(o, t) {
|
|
|
1494
1494
|
function Qc(o, t) {
|
|
1495
1495
|
return Se.global.mergeNumberFormat(o, t), Ue();
|
|
1496
1496
|
}
|
|
1497
|
-
function
|
|
1497
|
+
function Yc(o, t) {
|
|
1498
1498
|
return Se.global.mergeDateTimeFormat(o, t), Ue();
|
|
1499
1499
|
}
|
|
1500
|
-
function
|
|
1500
|
+
function xc(o) {
|
|
1501
1501
|
return Se.global.locale.value = o, Ue();
|
|
1502
1502
|
}
|
|
1503
1503
|
const { locale: ya, getNumberFormat: wa } = Se.global, pl = le.DECIMAL;
|
|
@@ -2043,7 +2043,7 @@ const Ea = {
|
|
|
2043
2043
|
{
|
|
2044
2044
|
count: 0,
|
|
2045
2045
|
target: null,
|
|
2046
|
-
reset:
|
|
2046
|
+
reset: xl(() => {
|
|
2047
2047
|
a.value[S] && (a.value[S].count = 0, a.value[S].target = null);
|
|
2048
2048
|
}, 400, { immediate: !1 })
|
|
2049
2049
|
}
|
|
@@ -2154,7 +2154,7 @@ const Ea = {
|
|
|
2154
2154
|
]);
|
|
2155
2155
|
};
|
|
2156
2156
|
}
|
|
2157
|
-
}), Wa = ["value", "inputmode", "disabled", "placeholder"], Ka = { class: "cl-absolute cl-flex-col cl-flex-nowrap cl-h-full cl-hidden cl-justify-between cl-py-0.5 cl-right-1 cl-text-xs cl-top-0 xl:cl-flex" }, Qa = ["disabled"],
|
|
2157
|
+
}), Wa = ["value", "inputmode", "disabled", "placeholder"], Ka = { class: "cl-absolute cl-flex-col cl-flex-nowrap cl-h-full cl-hidden cl-justify-between cl-py-0.5 cl-right-1 cl-text-xs cl-top-0 xl:cl-flex" }, Qa = ["disabled"], Ya = ["disabled"], Xe = /* @__PURE__ */ j({
|
|
2158
2158
|
inheritAttrs: !1,
|
|
2159
2159
|
__name: "cl-ui-input-number",
|
|
2160
2160
|
props: /* @__PURE__ */ de({
|
|
@@ -2195,9 +2195,9 @@ const Ea = {
|
|
|
2195
2195
|
ee(s, () => T.value = void 0);
|
|
2196
2196
|
const q = $({
|
|
2197
2197
|
get: () => T.value ? ne(T.value) : s.value,
|
|
2198
|
-
set: (D) => T.value =
|
|
2198
|
+
set: (D) => T.value = x(D)
|
|
2199
2199
|
}), F = $({
|
|
2200
|
-
get: () => T.value ??
|
|
2200
|
+
get: () => T.value ?? x(s.value),
|
|
2201
2201
|
set(D) {
|
|
2202
2202
|
T.value = D, S.value = !0;
|
|
2203
2203
|
}
|
|
@@ -2213,7 +2213,7 @@ const Ea = {
|
|
|
2213
2213
|
G && e.format === le.PERCENTAGE && !$a(F.value, "percentSign", y.value) && (fe = fe / h.value), isNaN(fe) === !1 && (s.value = _(Math.round(fe * O.value) / O.value));
|
|
2214
2214
|
}
|
|
2215
2215
|
}
|
|
2216
|
-
function
|
|
2216
|
+
function x(D) {
|
|
2217
2217
|
return D === null ? "" : e.format ? Ae(D, e.format, {
|
|
2218
2218
|
locale: e.locale,
|
|
2219
2219
|
additionalOptions: f.value
|
|
@@ -2291,7 +2291,7 @@ const Ea = {
|
|
|
2291
2291
|
]
|
|
2292
2292
|
}, [
|
|
2293
2293
|
k(fe, { icon: "ph:caret-down-bold" })
|
|
2294
|
-
], 40,
|
|
2294
|
+
], 40, Ya)
|
|
2295
2295
|
], 512), [
|
|
2296
2296
|
[ue, i.value && !D.disabled]
|
|
2297
2297
|
])
|
|
@@ -2316,7 +2316,7 @@ const Ea = {
|
|
|
2316
2316
|
]), 1032, ["show-required-asterisk", "errors"]);
|
|
2317
2317
|
};
|
|
2318
2318
|
}
|
|
2319
|
-
}),
|
|
2319
|
+
}), xa = {
|
|
2320
2320
|
key: 0,
|
|
2321
2321
|
class: "cl-flex cl-flex-col lg:cl-flex-row lg:cl-gap-2"
|
|
2322
2322
|
}, Ja = { class: "cl-border cl-border-off-white cl-flex cl-items-center cl-mt-2 cl-p-2 cl-rounded-lg cl-w-full lg:cl-px-4 lg:cl-py-3" }, Xa = { class: "cl-border cl-border-off-white cl-mt-2 cl-p-2 cl-rounded-lg lg:cl-px-4 lg:cl-py-3" }, _a = ["inert"], en = { class: "cl-basis-full cl-bg-off-white cl-border cl-border-grey-1 cl-flex cl-flex-1 cl-items-center cl-justify-between cl-mt-2 cl-p-2 cl-rounded-lg cl-shadow cl-text-sm lg:cl-basis-0 lg:cl-px-4 lg:cl-py-3" }, ln = { class: "cl-flex cl-flex-wrap cl-gap-x-4 cl-gap-y-2 cl-items-center cl-w-full" }, tn = { class: "cl-flex cl-flex-col lg:cl-flex-row" }, on = { class: "cl-mr-2 cl-text-grey-3" }, an = { class: "cl-flex cl-flex-col lg:cl-flex-row" }, nn = { class: "cl-mr-1 cl-text-grey-3" }, sn = { class: "cl-flex cl-flex-col cl-mr-auto lg:cl-flex-row" }, rn = { class: "cl-basis-full cl-mr-1 cl-text-grey-3" }, cn = { class: "cl-flex cl-gap-0.5" }, un = ["onClick"], dn = { class: "cl-flex cl-gap-1 cl-items-center" }, pn = ["onClick"], fn = { class: "cl-basis-full cl-bg-off-white cl-border cl-border-grey-1 cl-flex cl-gap-2 cl-items-center cl-justify-between cl-mt-2 cl-px-2 cl-py-1 cl-rounded-lg cl-shadow cl-text-sm lg:cl-basis-auto lg:cl-px-4 lg:cl-py-3" }, mn = { class: "cl-flex cl-items-center" }, gn = { class: "cl-mr-2 cl-text-grey-3" }, vn = /* @__PURE__ */ j({
|
|
@@ -2364,7 +2364,7 @@ const Ea = {
|
|
|
2364
2364
|
}
|
|
2365
2365
|
return (a, i) => {
|
|
2366
2366
|
var f, y, C;
|
|
2367
|
-
return a.initialLoad ? (u(), g("div",
|
|
2367
|
+
return a.initialLoad ? (u(), g("div", xa, [
|
|
2368
2368
|
v("div", Ja, [
|
|
2369
2369
|
k(m(wl), { words: 3 }),
|
|
2370
2370
|
k(m(wl), {
|
|
@@ -3415,7 +3415,7 @@ const bn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, yn = ["onClick"], wn =
|
|
|
3415
3415
|
function p(a) {
|
|
3416
3416
|
return a.name !== void 0 && a.id !== void 0;
|
|
3417
3417
|
}
|
|
3418
|
-
|
|
3418
|
+
Ye(e, () => s.value ? c(!1) : "");
|
|
3419
3419
|
const r = $(() => ({
|
|
3420
3420
|
"cl-cursor-pointer cl-bg-white": !t.disabled,
|
|
3421
3421
|
"cl-border-b-transparent cl-rounded-b-none": s.value,
|
|
@@ -3567,17 +3567,17 @@ const Qn = [
|
|
|
3567
3567
|
"equalorgreaterthan",
|
|
3568
3568
|
"andcontains"
|
|
3569
3569
|
];
|
|
3570
|
-
function
|
|
3570
|
+
function Yn(o) {
|
|
3571
3571
|
return typeof o.filterOnColumn == "string" && typeof o.filterOperation == "number" && typeof o.filterValue == "string";
|
|
3572
3572
|
}
|
|
3573
|
-
function
|
|
3573
|
+
function xn(o) {
|
|
3574
3574
|
return o === null || typeof o.sortByAscending == "boolean" && typeof o.sortOnColumn == "string";
|
|
3575
3575
|
}
|
|
3576
3576
|
function Jn(o) {
|
|
3577
|
-
let t = typeof o.filters == "object" && Array.isArray(o.filters) && typeof o.pageNumber == "number" && typeof o.pageSize == "number" && typeof o.sort == "object" &&
|
|
3577
|
+
let t = typeof o.filters == "object" && Array.isArray(o.filters) && typeof o.pageNumber == "number" && typeof o.pageSize == "number" && typeof o.sort == "object" && xn(o.sort);
|
|
3578
3578
|
if (t) {
|
|
3579
3579
|
for (const l of o.filters)
|
|
3580
|
-
if (!
|
|
3580
|
+
if (!Yn(l)) {
|
|
3581
3581
|
t = !1;
|
|
3582
3582
|
break;
|
|
3583
3583
|
}
|
|
@@ -3828,12 +3828,12 @@ const _n = {
|
|
|
3828
3828
|
set: (E) => e("update:filter", E)
|
|
3829
3829
|
}), p = $(() => l.column.type === "date" || l.column.type === "datetime" || l.column.type === "slot" && (l.column.slotType === "date" || l.column.slotType === "datetime")), r = $(() => l.column.type === "dateRange" || l.column.type === "slot" && l.column.slotType === "dateRange"), a = $(() => l.column.type === "list" || l.column.type === "slot" && l.column.slotType === "list"), i = $(() => a.value && l.column.listType === "number"), f = $(() => l.column.type === "string" || l.column.type === "slot" && l.column.slotType === "string"), y = $(() => l.column.format === le.INTEGER ? le.DECIMAL : l.column.format ?? le.DECIMAL), C = R(!1), h = $(() => C.value || f.value === !1), O = $({
|
|
3830
3830
|
get() {
|
|
3831
|
-
var H, w, z,
|
|
3831
|
+
var H, w, z, Y, b, B, W;
|
|
3832
3832
|
let E = (H = d.value) == null ? void 0 : H[0];
|
|
3833
3833
|
if (E) {
|
|
3834
3834
|
if (p.value) {
|
|
3835
3835
|
if ((((w = l.filter) == null ? void 0 : w.length) ?? 0) > 1) {
|
|
3836
|
-
const ie = (z = d.value) == null ? void 0 : z.find((qe) => qe.filterOperation === oe.EQUAL_OR_GREATER_THAN), Ee = (
|
|
3836
|
+
const ie = (z = d.value) == null ? void 0 : z.find((qe) => qe.filterOperation === oe.EQUAL_OR_GREATER_THAN), Ee = (Y = d.value) == null ? void 0 : Y.find((qe) => qe.filterOperation === oe.LESS_THAN);
|
|
3837
3837
|
ie && Ee && (E = {
|
|
3838
3838
|
filterOnColumn: l.column.field,
|
|
3839
3839
|
filterOperation: oe.EQUAL,
|
|
@@ -3869,7 +3869,7 @@ const _n = {
|
|
|
3869
3869
|
set(E) {
|
|
3870
3870
|
let H = null;
|
|
3871
3871
|
if (p.value) {
|
|
3872
|
-
const w = E, z = (w == null ? void 0 : w.filterMethod) && q(w.filterMethod, w.filterValue, "equal"),
|
|
3872
|
+
const w = E, z = (w == null ? void 0 : w.filterMethod) && q(w.filterMethod, w.filterValue, "equal"), Y = (w == null ? void 0 : w.filterMethod) && q(w.filterMethod, w.filterValue, "equalorlessthan"), b = (w == null ? void 0 : w.filterMethod) && q(w.filterMethod, w.filterValue, "greaterthan");
|
|
3873
3873
|
if (z) {
|
|
3874
3874
|
let B = Q.fromISO(w.filterValue, {
|
|
3875
3875
|
zone: l.timeZone ?? "UTC"
|
|
@@ -3894,7 +3894,7 @@ const _n = {
|
|
|
3894
3894
|
filterValue: ie
|
|
3895
3895
|
}
|
|
3896
3896
|
];
|
|
3897
|
-
} else if (
|
|
3897
|
+
} else if (Y || b) {
|
|
3898
3898
|
let B = Q.fromISO(w.filterValue, {
|
|
3899
3899
|
zone: l.timeZone ?? "UTC"
|
|
3900
3900
|
}).set({
|
|
@@ -3904,8 +3904,8 @@ const _n = {
|
|
|
3904
3904
|
l.column.type === "date" || l.column.type === "slot" && l.column.slotType === "date" ? B = B.plus({ days: 1 }) : B = B.plus({ minutes: 1 }), H = [
|
|
3905
3905
|
{
|
|
3906
3906
|
filterOnColumn: l.column.field,
|
|
3907
|
-
filterOperation:
|
|
3908
|
-
filterMethod:
|
|
3907
|
+
filterOperation: Y ? oe.EQUAL_OR_LESS_THAN : oe.GREATER_THAN,
|
|
3908
|
+
filterMethod: Y ? "equalorlessthan" : "greaterthan",
|
|
3909
3909
|
filterValue: B.minus({ milliseconds: 1 }).toISO()
|
|
3910
3910
|
}
|
|
3911
3911
|
];
|
|
@@ -3913,7 +3913,7 @@ const _n = {
|
|
|
3913
3913
|
} else if (r.value && (E != null && E.filterValue)) {
|
|
3914
3914
|
const w = E.filterValue, z = Q.fromISO(w.start, {
|
|
3915
3915
|
zone: l.timeZone ?? "UTC"
|
|
3916
|
-
}).toISO(),
|
|
3916
|
+
}).toISO(), Y = Q.fromISO(w.end, {
|
|
3917
3917
|
zone: l.timeZone ?? "UTC"
|
|
3918
3918
|
}).toISO();
|
|
3919
3919
|
H = [
|
|
@@ -3927,7 +3927,7 @@ const _n = {
|
|
|
3927
3927
|
filterOnColumn: l.column.field,
|
|
3928
3928
|
filterOperation: oe.EQUAL_OR_LESS_THAN,
|
|
3929
3929
|
filterMethod: "equalorlessthan",
|
|
3930
|
-
filterValue:
|
|
3930
|
+
filterValue: Y
|
|
3931
3931
|
}
|
|
3932
3932
|
];
|
|
3933
3933
|
}
|
|
@@ -3954,11 +3954,11 @@ const _n = {
|
|
|
3954
3954
|
const F = $(() => {
|
|
3955
3955
|
var E;
|
|
3956
3956
|
return ((E = O.value) == null ? void 0 : E.filterValue) ?? "";
|
|
3957
|
-
}), _ = $(() => F.value === "" ? null : F.value), N = $(() => F.value === "" ? null : F.value),
|
|
3957
|
+
}), _ = $(() => F.value === "" ? null : F.value), N = $(() => F.value === "" ? null : F.value), x = $(() => ol(l.column));
|
|
3958
3958
|
function ne(E, H) {
|
|
3959
3959
|
var ie;
|
|
3960
3960
|
let w, z = (E == null ? void 0 : E.value) ?? H;
|
|
3961
|
-
const
|
|
3961
|
+
const Y = ((ie = O.value) == null ? void 0 : ie.filterValue.toString()) ?? "", b = !!z.trim(), B = !!Y.trim();
|
|
3962
3962
|
if (b === !1 && B && (z = ""), b || B) {
|
|
3963
3963
|
if (O.value)
|
|
3964
3964
|
w = ve(S.value), w.filterValue = z;
|
|
@@ -3978,8 +3978,8 @@ const _n = {
|
|
|
3978
3978
|
function I(E, H) {
|
|
3979
3979
|
let w = (E == null ? void 0 : E.value) ?? H ?? 0;
|
|
3980
3980
|
if (typeof w == "string") {
|
|
3981
|
-
const z = l.column.format === le.INTEGER,
|
|
3982
|
-
w = lt(w,
|
|
3981
|
+
const z = l.column.format === le.INTEGER, Y = (z ? le.DECIMAL : l.column.format) ?? le.DECIMAL;
|
|
3982
|
+
w = lt(w, Y, { additionalOptions: {
|
|
3983
3983
|
maximumFractionDigits: z ? 0 : void 0,
|
|
3984
3984
|
minimumFractionDigits: z ? 0 : void 0
|
|
3985
3985
|
} });
|
|
@@ -3992,11 +3992,11 @@ const _n = {
|
|
|
3992
3992
|
if (O.value)
|
|
3993
3993
|
w = ((z = O.value) == null ? void 0 : z.filterValue) === E, H = ve(O.value), H.filterValue = E ?? "";
|
|
3994
3994
|
else if (E !== null && typeof l.column.field < "u") {
|
|
3995
|
-
const
|
|
3995
|
+
const Y = c();
|
|
3996
3996
|
H = {
|
|
3997
3997
|
filterOnColumn: l.column.field,
|
|
3998
|
-
filterMethod: oe[
|
|
3999
|
-
filterOperation:
|
|
3998
|
+
filterMethod: oe[Y].replace("_", "").toLowerCase(),
|
|
3999
|
+
filterOperation: Y,
|
|
4000
4000
|
filterValue: E
|
|
4001
4001
|
};
|
|
4002
4002
|
} else
|
|
@@ -4026,7 +4026,7 @@ const _n = {
|
|
|
4026
4026
|
return E.initialLoad && m(ol)(E.column) ? (u(), P(m(Sl), {
|
|
4027
4027
|
key: 0,
|
|
4028
4028
|
class: "cl-h-[34px]"
|
|
4029
|
-
})) :
|
|
4029
|
+
})) : x.value ? (u(), g("div", {
|
|
4030
4030
|
key: 1,
|
|
4031
4031
|
class: M(["cl-border cl-border-grey-2 cl-flex cl-relative cl-rounded-md", [
|
|
4032
4032
|
E.options.hideGridMobileView || a.value || E.column.type === "boolean" || E.column.type === "slot" && E.column.slotType === "boolean" ? "cl-overflow-visible" : "cl-overflow-hidden lg:cl-overflow-visible"
|
|
@@ -4041,8 +4041,8 @@ const _n = {
|
|
|
4041
4041
|
"model-value": F.value,
|
|
4042
4042
|
"onUpdate:modelValue": H[0] || (H[0] = (z) => ne(null, z))
|
|
4043
4043
|
}, {
|
|
4044
|
-
input: V(({ selectModalVisible: z, toggleSelectModalState:
|
|
4045
|
-
k(sl, { onToggleModal:
|
|
4044
|
+
input: V(({ selectModalVisible: z, toggleSelectModalState: Y }) => [
|
|
4045
|
+
k(sl, { onToggleModal: Y }, {
|
|
4046
4046
|
default: V(({ toggleModalInput: b }) => [
|
|
4047
4047
|
v("div", {
|
|
4048
4048
|
class: "!cl-h-[2rem] cl-bg-white cl-flex cl-font-normal cl-items-center cl-mb-0 cl-rounded-md cl-w-full",
|
|
@@ -4065,7 +4065,7 @@ const _n = {
|
|
|
4065
4065
|
default: V(({ select: z }) => [
|
|
4066
4066
|
k(ze, {
|
|
4067
4067
|
class: "!cl-py-0 cl-text-xs",
|
|
4068
|
-
onSelect: (
|
|
4068
|
+
onSelect: (Y) => z("")
|
|
4069
4069
|
}, {
|
|
4070
4070
|
default: V(() => H[9] || (H[9] = [
|
|
4071
4071
|
re(" ")
|
|
@@ -4075,7 +4075,7 @@ const _n = {
|
|
|
4075
4075
|
k(ze, {
|
|
4076
4076
|
"is-selected": F.value === "true",
|
|
4077
4077
|
class: "!cl-py-0 cl-text-xs",
|
|
4078
|
-
onSelect: (
|
|
4078
|
+
onSelect: (Y) => z("true")
|
|
4079
4079
|
}, {
|
|
4080
4080
|
default: V(() => [
|
|
4081
4081
|
re(U(m(s)("grid.true")), 1)
|
|
@@ -4085,7 +4085,7 @@ const _n = {
|
|
|
4085
4085
|
k(ze, {
|
|
4086
4086
|
"is-selected": F.value === "false",
|
|
4087
4087
|
class: "!cl-py-0 cl-text-xs",
|
|
4088
|
-
onSelect: (
|
|
4088
|
+
onSelect: (Y) => z("false")
|
|
4089
4089
|
}, {
|
|
4090
4090
|
default: V(() => [
|
|
4091
4091
|
re(U(m(s)("grid.false")), 1)
|
|
@@ -4159,8 +4159,8 @@ const _n = {
|
|
|
4159
4159
|
"is-grid-filter": !0,
|
|
4160
4160
|
"onUpdate:modelValue": H[6] || (H[6] = (z) => i.value ? I(null, z) : ne(null, z))
|
|
4161
4161
|
}, {
|
|
4162
|
-
input: V(({ selectModalVisible: z, toggleSelectModalState:
|
|
4163
|
-
k(sl, { onToggleModal:
|
|
4162
|
+
input: V(({ selectModalVisible: z, toggleSelectModalState: Y }) => [
|
|
4163
|
+
k(sl, { onToggleModal: Y }, {
|
|
4164
4164
|
default: V(({ toggleModalInput: b }) => {
|
|
4165
4165
|
var B, W;
|
|
4166
4166
|
return [
|
|
@@ -4186,21 +4186,21 @@ const _n = {
|
|
|
4186
4186
|
default: V(({ select: z }) => [
|
|
4187
4187
|
k(ze, {
|
|
4188
4188
|
class: "!cl-py-0",
|
|
4189
|
-
onSelect: (
|
|
4189
|
+
onSelect: (Y) => z("")
|
|
4190
4190
|
}, {
|
|
4191
4191
|
default: V(() => H[12] || (H[12] = [
|
|
4192
4192
|
re(" ")
|
|
4193
4193
|
])),
|
|
4194
4194
|
_: 2
|
|
4195
4195
|
}, 1032, ["onSelect"]),
|
|
4196
|
-
(u(!0), g(Z, null, X(E.column.listEntries ?? [], (
|
|
4197
|
-
key:
|
|
4198
|
-
"is-selected": F.value ===
|
|
4196
|
+
(u(!0), g(Z, null, X(E.column.listEntries ?? [], (Y) => (u(), P(ze, {
|
|
4197
|
+
key: Y.value,
|
|
4198
|
+
"is-selected": F.value === Y.value.toString(),
|
|
4199
4199
|
class: "cl-text-xs",
|
|
4200
|
-
onSelect: (b) => z(
|
|
4200
|
+
onSelect: (b) => z(Y.value)
|
|
4201
4201
|
}, {
|
|
4202
4202
|
default: V(() => [
|
|
4203
|
-
re(U(m(s)(
|
|
4203
|
+
re(U(m(s)(Y.translationKey)), 1)
|
|
4204
4204
|
]),
|
|
4205
4205
|
_: 2
|
|
4206
4206
|
}, 1032, ["is-selected", "onSelect"]))), 128))
|
|
@@ -4607,9 +4607,9 @@ const _n = {
|
|
|
4607
4607
|
filters: D
|
|
4608
4608
|
};
|
|
4609
4609
|
}
|
|
4610
|
-
}), _ = R(((ne = l.request.filters.find((I) => I.filterMethod === "andcontains" || I.filterOperation === oe.AND_CONTAINS)) == null ? void 0 : ne.filterValue) ?? ""), N = $(() => l.columns.filter((I) => (I.type === "string" || I.type === "slot" && I.slotType === "string") && I.searchable)),
|
|
4610
|
+
}), _ = R(((ne = l.request.filters.find((I) => I.filterMethod === "andcontains" || I.filterOperation === oe.AND_CONTAINS)) == null ? void 0 : ne.filterValue) ?? ""), N = $(() => l.columns.filter((I) => (I.type === "string" || I.type === "slot" && I.slotType === "string") && I.searchable)), x = R(!0);
|
|
4611
4611
|
return ee(() => l.loading, () => {
|
|
4612
|
-
|
|
4612
|
+
x.value = !1;
|
|
4613
4613
|
}, {
|
|
4614
4614
|
once: !0
|
|
4615
4615
|
}), je(() => {
|
|
@@ -4621,7 +4621,7 @@ const _n = {
|
|
|
4621
4621
|
((D = l.data) == null ? void 0 : D.results.length) === 0 && f.value.pageNumber > 1 && (f.value.pageNumber = l.data.totalRecords > 0 ? Math.ceil(l.data.totalRecords / f.value.pageSize) : 1);
|
|
4622
4622
|
}
|
|
4623
4623
|
}), (I, D) => (u(), g("div", Bs, [
|
|
4624
|
-
|
|
4624
|
+
x.value && N.value.length > 0 ? (u(), P(m(Sl), {
|
|
4625
4625
|
key: 0,
|
|
4626
4626
|
class: "cl-h-[39px] cl-mb-2"
|
|
4627
4627
|
})) : N.value.length > 0 ? (u(), P(Ss, {
|
|
@@ -4639,8 +4639,8 @@ const _n = {
|
|
|
4639
4639
|
}, 8, ["search-value", "request", "columns"])) : L("", !0),
|
|
4640
4640
|
k(Me, { name: "fade" }, {
|
|
4641
4641
|
default: V(() => [
|
|
4642
|
-
I.loading &&
|
|
4643
|
-
k(
|
|
4642
|
+
I.loading && x.value === !1 ? (u(), g("div", Fs, [
|
|
4643
|
+
k(xe, { class: "after:!cl-h-20 after:!cl-w-20 cl-h-20 cl-w-20" })
|
|
4644
4644
|
])) : L("", !0)
|
|
4645
4645
|
]),
|
|
4646
4646
|
_: 1
|
|
@@ -4654,7 +4654,7 @@ const _n = {
|
|
|
4654
4654
|
options: q.value,
|
|
4655
4655
|
request: f.value,
|
|
4656
4656
|
loading: I.loading,
|
|
4657
|
-
"initial-load":
|
|
4657
|
+
"initial-load": x.value,
|
|
4658
4658
|
onClearFilters: y
|
|
4659
4659
|
}, {
|
|
4660
4660
|
"additional-grid-actions": V((G) => [
|
|
@@ -4672,7 +4672,7 @@ const _n = {
|
|
|
4672
4672
|
v("div", js, [
|
|
4673
4673
|
v("table", {
|
|
4674
4674
|
class: M(["cl-delay-75 cl-min-h-[276px] cl-overflow-x-auto cl-overscroll-x-none cl-text-left cl-transition-opacity cl-w-full", {
|
|
4675
|
-
"cl-opacity-40 cl-pointer-events-none": I.loading &&
|
|
4675
|
+
"cl-opacity-40 cl-pointer-events-none": I.loading && x.value === !1
|
|
4676
4676
|
}])
|
|
4677
4677
|
}, [
|
|
4678
4678
|
v("colgroup", {
|
|
@@ -4682,7 +4682,7 @@ const _n = {
|
|
|
4682
4682
|
}, [
|
|
4683
4683
|
(u(!0), g(Z, null, X(p.value, (G, fe) => (u(), g("col", {
|
|
4684
4684
|
key: fe,
|
|
4685
|
-
style:
|
|
4685
|
+
style: Yl(i(G.name)),
|
|
4686
4686
|
span: 1
|
|
4687
4687
|
}, null, 4))), 128))
|
|
4688
4688
|
], 2),
|
|
@@ -4694,7 +4694,7 @@ const _n = {
|
|
|
4694
4694
|
columns: p.value,
|
|
4695
4695
|
options: q.value,
|
|
4696
4696
|
loading: I.loading,
|
|
4697
|
-
"initial-load":
|
|
4697
|
+
"initial-load": x.value,
|
|
4698
4698
|
"time-zone": I.timeZone,
|
|
4699
4699
|
"header-display-timezone": n.value,
|
|
4700
4700
|
onPerformDataRequest: D[7] || (D[7] = (G) => e("data-request"))
|
|
@@ -4705,7 +4705,7 @@ const _n = {
|
|
|
4705
4705
|
data: h.value,
|
|
4706
4706
|
"time-zone": I.timeZone,
|
|
4707
4707
|
loading: I.loading,
|
|
4708
|
-
"initial-load":
|
|
4708
|
+
"initial-load": x.value,
|
|
4709
4709
|
"search-value": _.value,
|
|
4710
4710
|
options: q.value,
|
|
4711
4711
|
"edit-mode": T.value,
|
|
@@ -4727,7 +4727,7 @@ const _n = {
|
|
|
4727
4727
|
key: 2,
|
|
4728
4728
|
request: f.value,
|
|
4729
4729
|
loading: I.loading,
|
|
4730
|
-
"initial-load":
|
|
4730
|
+
"initial-load": x.value,
|
|
4731
4731
|
"show-unsaved-changes-warning": T.value && q.value.disableUnsavedChangesWarning === !1,
|
|
4732
4732
|
data: I.data,
|
|
4733
4733
|
"onUpdate:request": D[11] || (D[11] = (G) => {
|
|
@@ -4781,7 +4781,7 @@ const _n = {
|
|
|
4781
4781
|
}), [
|
|
4782
4782
|
v("div", {
|
|
4783
4783
|
class: "0 cl-grid cl-min-w-full cl-overflow-auto",
|
|
4784
|
-
style:
|
|
4784
|
+
style: Yl(r())
|
|
4785
4785
|
}, [
|
|
4786
4786
|
k(m(mt), {
|
|
4787
4787
|
request: e.value,
|
|
@@ -4820,7 +4820,7 @@ const _n = {
|
|
|
4820
4820
|
"is-small-grid": i.value.smallGridText
|
|
4821
4821
|
}, null, 8, ["request", "inert", "grid-id", "data", "initial-load", "is-small-grid"])) : L("", !0)
|
|
4822
4822
|
], 16, Hs),
|
|
4823
|
-
y.loading && !f.value ? (u(), P(
|
|
4823
|
+
y.loading && !f.value ? (u(), P(xe, {
|
|
4824
4824
|
key: 0,
|
|
4825
4825
|
class: "after:!cl-h-14 after:!cl-w-14 cl-absolute cl-left-1/2 cl-top-20"
|
|
4826
4826
|
})) : L("", !0)
|
|
@@ -4959,7 +4959,7 @@ const Ws = { class: "cl-col-[1_/_-1] cl-grid cl-grid-cols-subgrid" }, Ks = ["id"
|
|
|
4959
4959
|
]), 1040, ["id", "data", "time-zone", "column", "is-small-grid", "class"]))), 128))
|
|
4960
4960
|
]));
|
|
4961
4961
|
}
|
|
4962
|
-
}),
|
|
4962
|
+
}), Ys = { class: "cl-col-[1_/_-1] cl-grid cl-grid-cols-subgrid" }, ht = /* @__PURE__ */ j({
|
|
4963
4963
|
__name: "cl-ui-grid-lite-body",
|
|
4964
4964
|
props: {
|
|
4965
4965
|
columns: {},
|
|
@@ -4974,7 +4974,7 @@ const Ws = { class: "cl-col-[1_/_-1] cl-grid cl-grid-cols-subgrid" }, Ks = ["id"
|
|
|
4974
4974
|
const t = o, { t: l } = ce(), e = $(() => t.options.smallGridText ?? !1), s = $(() => t.options.alternatingRows ?? !1);
|
|
4975
4975
|
return (n, c) => {
|
|
4976
4976
|
var d;
|
|
4977
|
-
return u(), g("div",
|
|
4977
|
+
return u(), g("div", Ys, [
|
|
4978
4978
|
n.initialLoad && n.pageSize > 0 ? (u(), P(gt, {
|
|
4979
4979
|
key: 0,
|
|
4980
4980
|
"page-size": n.pageSize,
|
|
@@ -5013,7 +5013,7 @@ const Ws = { class: "cl-col-[1_/_-1] cl-grid cl-grid-cols-subgrid" }, Ks = ["id"
|
|
|
5013
5013
|
]);
|
|
5014
5014
|
};
|
|
5015
5015
|
}
|
|
5016
|
-
}),
|
|
5016
|
+
}), xs = ["id"], Js = ["id"], Xs = ["id"], _s = {
|
|
5017
5017
|
key: 5,
|
|
5018
5018
|
class: "cl-inline-block cl-whitespace-nowrap"
|
|
5019
5019
|
}, er = ["id", "innerHTML"], bt = /* @__PURE__ */ j({
|
|
@@ -5102,7 +5102,7 @@ const Ws = { class: "cl-col-[1_/_-1] cl-grid cl-grid-cols-subgrid" }, Ks = ["id"
|
|
|
5102
5102
|
], 64)) : (u(), g(Z, { key: 2 }, [
|
|
5103
5103
|
re(U(d(a.data[a.column.field], m(se).DATETIME)), 1)
|
|
5104
5104
|
], 64))
|
|
5105
|
-
], 8,
|
|
5105
|
+
], 8, xs)) : a.column.type === "list" && a.column.field !== void 0 && a.column.listEntries !== void 0 ? (u(), g("span", {
|
|
5106
5106
|
key: 3,
|
|
5107
5107
|
id: m(l),
|
|
5108
5108
|
class: "cl-inline-block cl-whitespace-nowrap"
|
|
@@ -5277,7 +5277,7 @@ const yt = /* @__PURE__ */ ye(lr, [["render", or]]), ar = { class: "cl-flex cl-g
|
|
|
5277
5277
|
emits: ["open-click"],
|
|
5278
5278
|
setup(o, { emit: t }) {
|
|
5279
5279
|
const l = o, e = t, s = R();
|
|
5280
|
-
return
|
|
5280
|
+
return Ye(s, () => {
|
|
5281
5281
|
(l.isOpen ?? !1) && e("open-click");
|
|
5282
5282
|
}), (n, c) => (u(), g("header", gr, [
|
|
5283
5283
|
A(n.$slots, "logo"),
|
|
@@ -5447,7 +5447,7 @@ const yt = /* @__PURE__ */ ye(lr, [["render", or]]), ar = { class: "cl-flex cl-g
|
|
|
5447
5447
|
placeholder: q.placeholder,
|
|
5448
5448
|
required: q.required,
|
|
5449
5449
|
disabled: q.disabled,
|
|
5450
|
-
onClear: F[0] || (F[0] = (
|
|
5450
|
+
onClear: F[0] || (F[0] = (x) => c.value = null)
|
|
5451
5451
|
}), null, 16, ["date", "events", "type", "placeholder", "required", "disabled"])
|
|
5452
5452
|
]),
|
|
5453
5453
|
_: 1
|
|
@@ -5526,8 +5526,8 @@ const yt = /* @__PURE__ */ ye(lr, [["render", or]]), ar = { class: "cl-flex cl-g
|
|
|
5526
5526
|
placeholder: q.placeholder,
|
|
5527
5527
|
required: q.required,
|
|
5528
5528
|
disabled: q.disabled,
|
|
5529
|
-
onClear: F[5] || (F[5] = (
|
|
5530
|
-
onReset: F[6] || (F[6] = (
|
|
5529
|
+
onClear: F[5] || (F[5] = (x) => c.value = null),
|
|
5530
|
+
onReset: F[6] || (F[6] = (x) => c.value = m(tt)(e.min, e.max, n.value, q.type))
|
|
5531
5531
|
}), null, 16, ["date", "events", "type", "placeholder", "required", "disabled"])
|
|
5532
5532
|
]),
|
|
5533
5533
|
_: 1
|
|
@@ -5787,7 +5787,7 @@ const Lr = { class: "cl-flex cl-justify-between" }, Br = { class: "cl-w-full" },
|
|
|
5787
5787
|
}, Qr = {
|
|
5788
5788
|
key: 1,
|
|
5789
5789
|
class: "cl-bg-danger-light cl-px-2 cl-rounded-md cl-text-center cl-text-danger-default cl-text-xs cl-w-auto cl-whitespace-pre-line"
|
|
5790
|
-
},
|
|
5790
|
+
}, Yr = /* @__PURE__ */ j({
|
|
5791
5791
|
inheritAttrs: !1,
|
|
5792
5792
|
__name: "cl-ui-input",
|
|
5793
5793
|
props: {
|
|
@@ -5840,7 +5840,7 @@ const Lr = { class: "cl-flex cl-justify-between" }, Br = { class: "cl-w-full" },
|
|
|
5840
5840
|
...((B = e.externalErrors) == null ? void 0 : B.filter((W) => ((W == null ? void 0 : W.length) ?? 0) > 0)) ?? []
|
|
5841
5841
|
].join(`
|
|
5842
5842
|
`);
|
|
5843
|
-
}),
|
|
5843
|
+
}), x = $(() => ({
|
|
5844
5844
|
currency: "GBP",
|
|
5845
5845
|
locale: "en-GB",
|
|
5846
5846
|
valueRange: {
|
|
@@ -5914,7 +5914,7 @@ const Lr = { class: "cl-flex cl-justify-between" }, Br = { class: "cl-w-full" },
|
|
|
5914
5914
|
e.validateOn === "change" && await D(W), s("change", b, W);
|
|
5915
5915
|
}
|
|
5916
5916
|
}
|
|
5917
|
-
async function
|
|
5917
|
+
async function Y() {
|
|
5918
5918
|
await E(), H();
|
|
5919
5919
|
}
|
|
5920
5920
|
return je(() => {
|
|
@@ -5980,7 +5980,7 @@ const Lr = { class: "cl-flex cl-justify-between" }, Br = { class: "cl-w-full" },
|
|
|
5980
5980
|
autocomplete: b.autocomplete,
|
|
5981
5981
|
onClick: B[1] || (B[1] = (W) => fe(W)),
|
|
5982
5982
|
onFocus: B[2] || (B[2] = (W) => s("focus")),
|
|
5983
|
-
onBlur: ae(
|
|
5983
|
+
onBlur: ae(Y, ["self"]),
|
|
5984
5984
|
onMousewheelPassive: w,
|
|
5985
5985
|
onInput: B[3] || (B[3] = (W) => {
|
|
5986
5986
|
s("input", W, m(Hl)(W, b.inputType));
|
|
@@ -6030,7 +6030,7 @@ const Lr = { class: "cl-flex cl-justify-between" }, Br = { class: "cl-w-full" },
|
|
|
6030
6030
|
"input-specific-classes": b.inputSpecificClasses,
|
|
6031
6031
|
group: b.group,
|
|
6032
6032
|
step: b.step,
|
|
6033
|
-
"currency-options":
|
|
6033
|
+
"currency-options": x.value,
|
|
6034
6034
|
onChange: B[7] || (B[7] = (W, ie) => z(W, ie)),
|
|
6035
6035
|
onFocus: B[8] || (B[8] = (W) => s("focus")),
|
|
6036
6036
|
onBlur: E
|
|
@@ -6078,7 +6078,7 @@ const Lr = { class: "cl-flex cl-justify-between" }, Br = { class: "cl-w-full" },
|
|
|
6078
6078
|
!q.value && N.value.length > 0 && b.showValidationMessages && F.value ? (u(), g("div", Qr, U(N.value), 1)) : L("", !0)
|
|
6079
6079
|
], 16));
|
|
6080
6080
|
}
|
|
6081
|
-
}),
|
|
6081
|
+
}), xr = /* @__PURE__ */ ye(Yr, [["__scopeId", "data-v-2373f106"]]), Jr = [
|
|
6082
6082
|
"button",
|
|
6083
6083
|
"checkbox",
|
|
6084
6084
|
"color",
|
|
@@ -6372,7 +6372,7 @@ const ei = {
|
|
|
6372
6372
|
deep: !0
|
|
6373
6373
|
}
|
|
6374
6374
|
);
|
|
6375
|
-
const r = R(!1), a = R(!1), { start: i } =
|
|
6375
|
+
const r = R(!1), a = R(!1), { start: i } = xl(() => a.value = !1, 100);
|
|
6376
6376
|
function f() {
|
|
6377
6377
|
r.value = !r.value, e("pinned-state", r.value), a.value = !0, i();
|
|
6378
6378
|
}
|
|
@@ -6385,7 +6385,7 @@ const ei = {
|
|
|
6385
6385
|
O.open = !1;
|
|
6386
6386
|
}), e("open-state", !1, void 0));
|
|
6387
6387
|
}
|
|
6388
|
-
return
|
|
6388
|
+
return Ye(y, h), t({
|
|
6389
6389
|
closeNavigation: h,
|
|
6390
6390
|
restorePinnedNavigation: C
|
|
6391
6391
|
}), (O, T) => (u(), g("div", {
|
|
@@ -6574,7 +6574,7 @@ const zi = /* @__PURE__ */ ye(Ii, [["render", Ui]]), Li = /* @__PURE__ */ j({
|
|
|
6574
6574
|
ref: d,
|
|
6575
6575
|
class: M(["cl-border-b cl-border-grey-1 cl-flex cl-flex-nowrap cl-flex-row", {
|
|
6576
6576
|
"cl-mr-4": r.value && a.value,
|
|
6577
|
-
"cl-mb-4 xl:cl-mb-6 cl-overflow-x-auto cl-overscroll-x-none cl-w-full": a.value,
|
|
6577
|
+
"cl-mb-4 xl:cl-mb-6 cl-overflow-x-auto cl-overscroll-x-none cl-w-full cl-gap-4 xl:cl-gap-6": a.value,
|
|
6578
6578
|
"cl-flex-col cl-border-b-0": a.value === !1
|
|
6579
6579
|
}]),
|
|
6580
6580
|
onScrollPassive: i
|
|
@@ -6615,16 +6615,18 @@ const zi = /* @__PURE__ */ ye(Ii, [["render", Ui]]), Li = /* @__PURE__ */ j({
|
|
|
6615
6615
|
setup(o) {
|
|
6616
6616
|
const t = o, l = $(() => t.layout === "horizontal");
|
|
6617
6617
|
return (e, s) => (u(), g("div", {
|
|
6618
|
-
class: M(["cl-flex cl-
|
|
6619
|
-
"cl-border-b-4": l.value,
|
|
6620
|
-
"cl-border-b-0 cl-border-r-4": l.value === !1,
|
|
6618
|
+
class: M(["cl-flex cl-items-center cl-whitespace-nowrap", {
|
|
6619
|
+
"cl-border-b-4 cl-pb-2": l.value,
|
|
6620
|
+
"cl-border-b-0 cl-border-r-4 cl-pr-4 cl-py-2": l.value === !1,
|
|
6621
6621
|
"cl-cursor-pointer hover:cl-border-opacity-100 cl-border-link-lighter cl-border-opacity-0 cl-text-secondary-light hover:cl-text-black": e.open === !1 && !e.disabled,
|
|
6622
6622
|
"cl-border-primary-default": e.open && (e.colour === "primary" || e.colour === "default") && !e.disabled,
|
|
6623
6623
|
"cl-border-secondary-default": e.open && e.colour === "secondary" && !e.disabled,
|
|
6624
6624
|
"cl-border-danger-default": e.open && e.colour === "danger" && !e.disabled,
|
|
6625
6625
|
"cl-border-blue-default": e.open && e.colour === "blue" && !e.disabled,
|
|
6626
6626
|
"cl-text-grey-2 cl-border-link-lighter cl-border-opacity-0": e.disabled,
|
|
6627
|
-
"cl-border-grey-1": e.disabled && e.open
|
|
6627
|
+
"cl-border-grey-1": e.disabled && e.open,
|
|
6628
|
+
"cl-text-secondary-default": e.disabled == !1,
|
|
6629
|
+
"cl-font-bold": e.open
|
|
6628
6630
|
}]),
|
|
6629
6631
|
inert: e.disabled
|
|
6630
6632
|
}, [
|
|
@@ -6659,7 +6661,7 @@ const zi = /* @__PURE__ */ ye(Ii, [["render", Ui]]), Li = /* @__PURE__ */ j({
|
|
|
6659
6661
|
], Wi = [
|
|
6660
6662
|
"horizontal",
|
|
6661
6663
|
"vertical"
|
|
6662
|
-
], Ki = { class: "cl-block cl-h-full cl-w-full" }, Qi = ["multiple", "accept", "disabled"],
|
|
6664
|
+
], Ki = { class: "cl-block cl-h-full cl-w-full" }, Qi = ["multiple", "accept", "disabled"], Yi = ["multiple", "accept", "disabled"], xi = /* @__PURE__ */ j({
|
|
6663
6665
|
inheritAttrs: !1,
|
|
6664
6666
|
__name: "cl-ui-file-uploader",
|
|
6665
6667
|
props: {
|
|
@@ -6740,7 +6742,7 @@ const zi = /* @__PURE__ */ ye(Ii, [["render", Ui]]), Li = /* @__PURE__ */ j({
|
|
|
6740
6742
|
accept: i.acceptedFileTypes,
|
|
6741
6743
|
disabled: i.disabled,
|
|
6742
6744
|
onInput: n
|
|
6743
|
-
}, null, 42,
|
|
6745
|
+
}, null, 42, Yi))
|
|
6744
6746
|
]));
|
|
6745
6747
|
}
|
|
6746
6748
|
}), Ji = /* @__PURE__ */ j({
|
|
@@ -6898,7 +6900,7 @@ const zi = /* @__PURE__ */ ye(Ii, [["render", Ui]]), Li = /* @__PURE__ */ j({
|
|
|
6898
6900
|
t.value = !t.value;
|
|
6899
6901
|
}
|
|
6900
6902
|
const c = R(!1), { lg: d } = zt(Lt), p = R();
|
|
6901
|
-
return
|
|
6903
|
+
return Ye(p, () => {
|
|
6902
6904
|
t.value === !0 && d.value === !1 && (t.value = !1);
|
|
6903
6905
|
}), (r, a) => (u(), g(Z, null, [
|
|
6904
6906
|
v("div", K({
|
|
@@ -7189,7 +7191,7 @@ const qc = { class: "cl-flex cl-flex-nowrap cl-flex-row cl-w-full" }, Oc = { cla
|
|
|
7189
7191
|
"branches-at": C.value
|
|
7190
7192
|
}, null, 8, ["branches-at"])) : L("", !0),
|
|
7191
7193
|
S.rootNode.children && S.rootNode.children.length > 0 && m(c) ? (u(), g("div", Mc, [
|
|
7192
|
-
(u(!0), g(Z, null, X(S.rootNode.children, (N,
|
|
7194
|
+
(u(!0), g(Z, null, X(S.rootNode.children, (N, x) => (u(), g("div", {
|
|
7193
7195
|
key: N.id,
|
|
7194
7196
|
ref_for: !0,
|
|
7195
7197
|
ref_key: "childSubtreeDivs",
|
|
@@ -7200,11 +7202,11 @@ const qc = { class: "cl-flex cl-flex-nowrap cl-flex-row cl-w-full" }, Oc = { cla
|
|
|
7200
7202
|
"onUpdate:selectedPath": q[2] || (q[2] = (ne) => e.value = ne),
|
|
7201
7203
|
"id-prefix": `${S.idPrefix}-${N.id}`,
|
|
7202
7204
|
depth: S.depth + 1,
|
|
7203
|
-
breadth:
|
|
7205
|
+
breadth: x,
|
|
7204
7206
|
"path-fragments": [...S.pathFragments, N.id],
|
|
7205
7207
|
"root-node": N,
|
|
7206
7208
|
onRecalculateTreePath: m(O),
|
|
7207
|
-
onSetChildNodeHeight: (ne) => y.value[
|
|
7209
|
+
onSetChildNodeHeight: (ne) => y.value[x] = ne
|
|
7208
7210
|
}, be({ _: 2 }, [
|
|
7209
7211
|
X(S.$slots, (ne, I) => ({
|
|
7210
7212
|
name: I,
|
|
@@ -7274,7 +7276,7 @@ const qc = { class: "cl-flex cl-flex-nowrap cl-flex-row cl-w-full" }, Oc = { cla
|
|
|
7274
7276
|
clUiButton: Ce,
|
|
7275
7277
|
clUiCard: co,
|
|
7276
7278
|
clUiComboBox: Go,
|
|
7277
|
-
clUiFileUploader:
|
|
7279
|
+
clUiFileUploader: xi,
|
|
7278
7280
|
clUiFooter: _o,
|
|
7279
7281
|
clUiGrid: Ps,
|
|
7280
7282
|
clUiGridLite: Zs,
|
|
@@ -7287,7 +7289,7 @@ const qc = { class: "cl-flex cl-flex-nowrap cl-flex-row cl-w-full" }, Oc = { cla
|
|
|
7287
7289
|
clUiGridLiteRow: vt,
|
|
7288
7290
|
clUiHeader: vr,
|
|
7289
7291
|
clUiHeaderMenu: Cr,
|
|
7290
|
-
clUiInput:
|
|
7292
|
+
clUiInput: xr,
|
|
7291
7293
|
clUiInputCheckbox: dl,
|
|
7292
7294
|
clUiInputDateRange: ut,
|
|
7293
7295
|
clUiInputDateRangeInput: Vl,
|
|
@@ -7297,7 +7299,7 @@ const qc = { class: "cl-flex cl-flex-nowrap cl-flex-row cl-w-full" }, Oc = { cla
|
|
|
7297
7299
|
clUiInputText: Re,
|
|
7298
7300
|
clUiInputTextArea: Sn,
|
|
7299
7301
|
clUiLanguageSwitcher: ai,
|
|
7300
|
-
clUiLoadingSpinner:
|
|
7302
|
+
clUiLoadingSpinner: xe,
|
|
7301
7303
|
clUiLogin: hi,
|
|
7302
7304
|
clUiMenu: rc,
|
|
7303
7305
|
clUiMenuGroup: mc,
|
|
@@ -7371,7 +7373,7 @@ export {
|
|
|
7371
7373
|
Ce as clUiButton,
|
|
7372
7374
|
co as clUiCard,
|
|
7373
7375
|
Go as clUiComboBox,
|
|
7374
|
-
|
|
7376
|
+
xi as clUiFileUploader,
|
|
7375
7377
|
_o as clUiFooter,
|
|
7376
7378
|
Ps as clUiGrid,
|
|
7377
7379
|
Zs as clUiGridLite,
|
|
@@ -7384,7 +7386,7 @@ export {
|
|
|
7384
7386
|
vt as clUiGridLiteRow,
|
|
7385
7387
|
vr as clUiHeader,
|
|
7386
7388
|
Cr as clUiHeaderMenu,
|
|
7387
|
-
|
|
7389
|
+
xr as clUiInput,
|
|
7388
7390
|
dl as clUiInputCheckbox,
|
|
7389
7391
|
ut as clUiInputDateRange,
|
|
7390
7392
|
Vl as clUiInputDateRangeInput,
|
|
@@ -7394,7 +7396,7 @@ export {
|
|
|
7394
7396
|
Re as clUiInputText,
|
|
7395
7397
|
Sn as clUiInputTextArea,
|
|
7396
7398
|
ai as clUiLanguageSwitcher,
|
|
7397
|
-
|
|
7399
|
+
xe as clUiLoadingSpinner,
|
|
7398
7400
|
hi as clUiLogin,
|
|
7399
7401
|
rc as clUiMenu,
|
|
7400
7402
|
mc as clUiMenuGroup,
|
|
@@ -7450,8 +7452,8 @@ export {
|
|
|
7450
7452
|
Un as popoverPlacements,
|
|
7451
7453
|
$n as quickDateNames,
|
|
7452
7454
|
Ta as scrubGroupSeparatorsFromFormattedValue,
|
|
7453
|
-
|
|
7454
|
-
|
|
7455
|
+
xc as setCurrentLocale,
|
|
7456
|
+
Yc as setLocaleDateTimeFormats,
|
|
7455
7457
|
Kc as setLocaleMessages,
|
|
7456
7458
|
Qc as setLocaleNumberFormats,
|
|
7457
7459
|
Il as showNotification,
|