@citruslime/ui 3.0.2 → 3.0.3-beta.0
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Icon as
|
|
2
|
-
import { defineComponent as G, ref as I, openBlock as d, createElementBlock as b, renderSlot as N, normalizeProps as ie, guardReactiveProps as pe, Fragment as K, createElementVNode as g, normalizeClass as D, createVNode as k, unref as m, Transition as Ie, withCtx as M, withDirectives as te, mergeProps as
|
|
1
|
+
import { Icon as Y } from "@iconify/vue";
|
|
2
|
+
import { defineComponent as G, ref as I, openBlock as d, createElementBlock as b, renderSlot as N, normalizeProps as ie, guardReactiveProps as pe, Fragment as K, createElementVNode as g, normalizeClass as D, createVNode as k, unref as m, Transition as Ie, withCtx as M, withDirectives as te, mergeProps as _, vShow as ue, createBlock as P, Teleport as kl, renderList as le, toDisplayString as V, createCommentVNode as L, computed as $, mergeModels as fe, useModel as be, createSlots as Se, vModelDynamic as Gl, watch as X, toRefs as Hl, withKeys as he, onMounted as We, onUnmounted as il, withModifiers as oe, nextTick as Ue, useAttrs as Ke, resolveComponent as Te, createTextVNode as se, inject as cl, vModelCheckbox as kt, toValue as Vl, watchEffect as Ct, vModelText as Cl, useCssVars as Zl, toHandlers as St, pushScopeId as Wl, popScopeId as Kl, provide as bl, normalizeStyle as Ql } from "vue";
|
|
3
3
|
import { generateStringId as Tt, highlightText as qt, validateEmail as Ot } from "@citruslime/utils";
|
|
4
|
-
import { onKeyDown as hl, unrefElement as Dt, tryOnScopeDispose as Et, onClickOutside as
|
|
4
|
+
import { onKeyDown as hl, unrefElement as Dt, tryOnScopeDispose as Et, onClickOutside as Qe, useTimeoutFn as _l, useMouseInElement as At, useFocusWithin as Vt, useMediaQuery as Yl, useThrottle as It, useElementBounding as Mt, useDebounceFn as ll, useThrottleFn as Nt, useWindowSize as Rt, useBreakpoints as Ut, breakpointsTailwind as zt } from "@vueuse/core";
|
|
5
5
|
import { useI18n as ce, createI18n as Lt } from "vue-i18n";
|
|
6
6
|
import { createFocusTrap as Bt } from "focus-trap";
|
|
7
7
|
import { copy as ve } from "@citruslime/vue-utils";
|
|
@@ -54,7 +54,7 @@ const jt = { class: "cl-overflow-hidden" }, Pt = /* @__PURE__ */ G({
|
|
|
54
54
|
onClick: r
|
|
55
55
|
}, [
|
|
56
56
|
g("div", Gt, [
|
|
57
|
-
k(m(
|
|
57
|
+
k(m(Y), {
|
|
58
58
|
class: D(["cl-duration-300 cl-ease-in-out cl-text-grey-3 cl-transform-gpu cl-transition-transform", {
|
|
59
59
|
"cl-rotate-180": n.open
|
|
60
60
|
}]),
|
|
@@ -69,7 +69,7 @@ const jt = { class: "cl-overflow-hidden" }, Pt = /* @__PURE__ */ G({
|
|
|
69
69
|
g("div", Zt, [
|
|
70
70
|
k(Ie, { name: "grow-down" }, {
|
|
71
71
|
default: M(() => [
|
|
72
|
-
te(g("div",
|
|
72
|
+
te(g("div", _(n.$attrs, { class: "cl-ml-10 cl-p-4" }), [
|
|
73
73
|
N(n.$slots, "default")
|
|
74
74
|
], 16), [
|
|
75
75
|
[ue, n.open]
|
|
@@ -80,29 +80,29 @@ const jt = { class: "cl-overflow-hidden" }, Pt = /* @__PURE__ */ G({
|
|
|
80
80
|
])
|
|
81
81
|
], 64));
|
|
82
82
|
}
|
|
83
|
-
}),
|
|
83
|
+
}), ye = (o, t) => {
|
|
84
84
|
const l = o.__vccOpts || o;
|
|
85
85
|
for (const [e, r] of t)
|
|
86
86
|
l[e] = r;
|
|
87
87
|
return l;
|
|
88
|
-
}, Kt = {},
|
|
89
|
-
function
|
|
90
|
-
return d(), b("div",
|
|
88
|
+
}, Kt = {}, Qt = { 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 _t(o, t) {
|
|
90
|
+
return d(), b("div", Qt, [
|
|
91
91
|
N(o.$slots, "default")
|
|
92
92
|
]);
|
|
93
93
|
}
|
|
94
|
-
const
|
|
94
|
+
const Yt = /* @__PURE__ */ ye(Kt, [["render", _t]]), tl = I([]);
|
|
95
95
|
function Il(o) {
|
|
96
96
|
const t = {
|
|
97
97
|
id: Tt(),
|
|
98
98
|
...o
|
|
99
99
|
};
|
|
100
|
-
tl.value.push(t), setTimeout(() =>
|
|
100
|
+
tl.value.push(t), setTimeout(() => xl(t), o.duration);
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function xl(o) {
|
|
103
103
|
tl.value = tl.value.filter((t) => t.id !== o.id);
|
|
104
104
|
}
|
|
105
|
-
const
|
|
105
|
+
const xt = ["onClick"], Jt = { class: "cl-flex-1 cl-select-none cl-text-ellipsis cl-w-64" }, Jl = /* @__PURE__ */ G({
|
|
106
106
|
inheritAttrs: !1,
|
|
107
107
|
__name: "cl-ui-notification",
|
|
108
108
|
props: {
|
|
@@ -121,7 +121,7 @@ const Yt = ["onClick"], Jt = { class: "cl-flex-1 cl-select-none cl-text-ellipsis
|
|
|
121
121
|
"cl-bottom-5 cl-right-5": t.position === "bottom-right"
|
|
122
122
|
}])
|
|
123
123
|
}, [
|
|
124
|
-
(d(!0), b(K, null, le(m(tl), (e, r) => (d(), b("div",
|
|
124
|
+
(d(!0), b(K, null, le(m(tl), (e, r) => (d(), b("div", _(t.$attrs, {
|
|
125
125
|
key: r,
|
|
126
126
|
class: ["cl-break-words cl-cursor-pointer cl-flex cl-font-semibold cl-group cl-mb-2 cl-overflow-hidden cl-p-4 cl-rounded cl-shadow-lg cl-text-sm", {
|
|
127
127
|
"cl-bg-white": e.colour === "default",
|
|
@@ -130,16 +130,16 @@ const Yt = ["onClick"], Jt = { class: "cl-flex-1 cl-select-none cl-text-ellipsis
|
|
|
130
130
|
"cl-bg-danger-default": e.colour === "danger",
|
|
131
131
|
"cl-bg-warning-default": e.colour === "warning"
|
|
132
132
|
}],
|
|
133
|
-
onClick: (n) => m(
|
|
133
|
+
onClick: (n) => m(xl)(e)
|
|
134
134
|
}), [
|
|
135
135
|
g("span", Jt, V(e.message), 1),
|
|
136
|
-
k(m(
|
|
136
|
+
k(m(Y), {
|
|
137
137
|
class: "cl-inline-block cl-opacity-0 cl-transition-opacity group-hover:cl-opacity-100",
|
|
138
138
|
icon: "ph:x",
|
|
139
139
|
size: 16,
|
|
140
140
|
weight: "bold"
|
|
141
141
|
})
|
|
142
|
-
], 16,
|
|
142
|
+
], 16, xt))), 128))
|
|
143
143
|
], 2)
|
|
144
144
|
], 8, ["to"]));
|
|
145
145
|
}
|
|
@@ -180,7 +180,7 @@ const Yt = ["onClick"], Jt = { class: "cl-flex-1 cl-select-none cl-text-ellipsis
|
|
|
180
180
|
function oo(o, t) {
|
|
181
181
|
return d(), b("div", to);
|
|
182
182
|
}
|
|
183
|
-
const
|
|
183
|
+
const _e = /* @__PURE__ */ ye(lo, [["render", oo], ["__scopeId", "data-v-a21dc5d2"]]), ao = ["disabled"], $e = /* @__PURE__ */ G({
|
|
184
184
|
inheritAttrs: !1,
|
|
185
185
|
__name: "cl-ui-button",
|
|
186
186
|
props: {
|
|
@@ -196,10 +196,10 @@ const Qe = /* @__PURE__ */ he(lo, [["render", oo], ["__scopeId", "data-v-a21dc5d
|
|
|
196
196
|
l.value && l.value.focus();
|
|
197
197
|
}
|
|
198
198
|
}), (e, r) => (d(), b(K, null, [
|
|
199
|
-
te(k(
|
|
199
|
+
te(k(_e, { class: "relative" }, null, 512), [
|
|
200
200
|
[ue, e.loading]
|
|
201
201
|
]),
|
|
202
|
-
te(g("button",
|
|
202
|
+
te(g("button", _(e.$attrs, {
|
|
203
203
|
ref_key: "buttonRef",
|
|
204
204
|
ref: l,
|
|
205
205
|
class: ["cl-align-middle cl-border cl-font-semibold cl-inline-block cl-rounded cl-select-none cl-shadow cl-text-center cl-transition-colors", {
|
|
@@ -364,7 +364,7 @@ const Qe = /* @__PURE__ */ he(lo, [["render", oo], ["__scopeId", "data-v-a21dc5d
|
|
|
364
364
|
errors: c.errors
|
|
365
365
|
}, Se({
|
|
366
366
|
default: M(() => [
|
|
367
|
-
te(g("input",
|
|
367
|
+
te(g("input", _(c.$attrs, {
|
|
368
368
|
ref_key: "inputRef",
|
|
369
369
|
ref: n,
|
|
370
370
|
"onUpdate:modelValue": u[0] || (u[0] = (p) => e.value = p),
|
|
@@ -466,7 +466,7 @@ const wo = /* @__PURE__ */ g("div", { tabindex: "0" }, null, -1), $o = {
|
|
|
466
466
|
class: "cl-align-items-center cl-bg-black cl-bg-opacity-40 cl-bottom-0 cl-fixed cl-flex cl-h-full cl-justify-center cl-left-0 cl-right-0 cl-top-0 cl-w-full cl-z-40 xl:cl-h-screen"
|
|
467
467
|
}, [
|
|
468
468
|
wo,
|
|
469
|
-
g("div",
|
|
469
|
+
g("div", _(s.$attrs, {
|
|
470
470
|
class: ["cl-bg-white cl-flex cl-flex-wrap cl-max-h-[calc(100%-8rem)] cl-mx-0 cl-my-auto cl-overflow-y-auto cl-overscroll-y-none cl-relative cl-rounded-lg cl-shadow-lg xl:cl-max-h-[calc(100vh-8rem)]", {
|
|
471
471
|
"lg:cl-w-2/12 cl-w-10/12": s.size === "x-small",
|
|
472
472
|
"cl-w-6/12": s.size === "small",
|
|
@@ -481,10 +481,10 @@ const wo = /* @__PURE__ */ g("div", { tabindex: "0" }, null, -1), $o = {
|
|
|
481
481
|
"cl-text-black hover:cl-text-grey-7": s.headerColour === "white"
|
|
482
482
|
}]),
|
|
483
483
|
tabindex: 0,
|
|
484
|
-
onKeypress:
|
|
484
|
+
onKeypress: he(u, ["enter"]),
|
|
485
485
|
onClick: u
|
|
486
486
|
}, [
|
|
487
|
-
k(m(
|
|
487
|
+
k(m(Y), { icon: "ph:x" })
|
|
488
488
|
], 34), [
|
|
489
489
|
[ue, !s.preventClose]
|
|
490
490
|
]),
|
|
@@ -535,7 +535,7 @@ const wo = /* @__PURE__ */ g("div", { tabindex: "0" }, null, -1), $o = {
|
|
|
535
535
|
class: "cl-cursor-pointer cl-float-right",
|
|
536
536
|
onMousedown: l[0] || (l[0] = (e) => t.$emit("clear-object"))
|
|
537
537
|
}, [
|
|
538
|
-
k(m(
|
|
538
|
+
k(m(Y), {
|
|
539
539
|
class: "cl-mt-1 cl-transition-colors hover:cl-text-link-default",
|
|
540
540
|
icon: "ph:x"
|
|
541
541
|
})
|
|
@@ -595,7 +595,7 @@ const wo = /* @__PURE__ */ g("div", { tabindex: "0" }, null, -1), $o = {
|
|
|
595
595
|
})
|
|
596
596
|
}, V(r.value), 3),
|
|
597
597
|
te(g("div", qo, [
|
|
598
|
-
k(m(
|
|
598
|
+
k(m(Y), {
|
|
599
599
|
class: "cl-transition-colors",
|
|
600
600
|
icon: "ph:plus"
|
|
601
601
|
})
|
|
@@ -648,11 +648,11 @@ const wo = /* @__PURE__ */ g("div", { tabindex: "0" }, null, -1), $o = {
|
|
|
648
648
|
}
|
|
649
649
|
function C(R) {
|
|
650
650
|
if (R.key === "Tab" && R.shiftKey === !0) {
|
|
651
|
-
const
|
|
651
|
+
const x = document.getElementsByTagName("input");
|
|
652
652
|
let de = -1;
|
|
653
|
-
for (let A = 0; A <
|
|
654
|
-
|
|
655
|
-
de >= 0 && (
|
|
653
|
+
for (let A = 0; A < x.length; A++)
|
|
654
|
+
x[A] === R.target && (de = A - 1);
|
|
655
|
+
de >= 0 && (x[de].focus(), y());
|
|
656
656
|
}
|
|
657
657
|
}
|
|
658
658
|
function F() {
|
|
@@ -668,8 +668,8 @@ const wo = /* @__PURE__ */ g("div", { tabindex: "0" }, null, -1), $o = {
|
|
|
668
668
|
}
|
|
669
669
|
function J() {
|
|
670
670
|
l.isVisible === !0 && (n.value = "", a(), Ue(() => {
|
|
671
|
-
var R,
|
|
672
|
-
return (
|
|
671
|
+
var R, x;
|
|
672
|
+
return (x = (R = s.value) == null ? void 0 : R.querySelector("input")) == null ? void 0 : x.focus();
|
|
673
673
|
}));
|
|
674
674
|
}
|
|
675
675
|
return X(() => l.results, () => q()), X(() => l.errorMessage, () => q()), X(() => l.isVisible, () => J()), We(() => {
|
|
@@ -678,7 +678,7 @@ const wo = /* @__PURE__ */ g("div", { tabindex: "0" }, null, -1), $o = {
|
|
|
678
678
|
}), il(() => {
|
|
679
679
|
var R;
|
|
680
680
|
return (R = s.value) == null ? void 0 : R.removeEventListener("keydown", C);
|
|
681
|
-
}), (R,
|
|
681
|
+
}), (R, x) => {
|
|
682
682
|
var de;
|
|
683
683
|
return d(), b("div", {
|
|
684
684
|
ref_key: "container",
|
|
@@ -687,20 +687,20 @@ const wo = /* @__PURE__ */ g("div", { tabindex: "0" }, null, -1), $o = {
|
|
|
687
687
|
"cl-overflow-y-hidden": R.loading
|
|
688
688
|
}]),
|
|
689
689
|
onKeydown: [
|
|
690
|
-
|
|
691
|
-
|
|
690
|
+
x[2] || (x[2] = he(oe((A) => v(p.value), ["prevent", "stop"]), ["up"])),
|
|
691
|
+
x[3] || (x[3] = he(oe((A) => T(p.value), ["prevent", "stop"]), ["down"]))
|
|
692
692
|
],
|
|
693
|
-
onKeyup:
|
|
693
|
+
onKeyup: he(oe(S, ["prevent", "stop"]), ["enter"])
|
|
694
694
|
}, [
|
|
695
695
|
R.loading ? (d(), b("div", Do, [
|
|
696
|
-
k(
|
|
696
|
+
k(_e)
|
|
697
697
|
])) : L("", !0),
|
|
698
698
|
g("div", Eo, [
|
|
699
699
|
g("div", Ao, [
|
|
700
700
|
k(Re, {
|
|
701
701
|
id: `cl-ui-combo-box-search-input-${R.objectType}`,
|
|
702
702
|
modelValue: n.value,
|
|
703
|
-
"onUpdate:modelValue":
|
|
703
|
+
"onUpdate:modelValue": x[0] || (x[0] = (A) => n.value = A),
|
|
704
704
|
class: "cl-box-border cl-font-light cl-mb-2 cl-p-2 cl-placeholder-grey-3 cl-text-sm",
|
|
705
705
|
placeholder: R.searchHint,
|
|
706
706
|
type: "search",
|
|
@@ -718,7 +718,7 @@ const wo = /* @__PURE__ */ g("div", { tabindex: "0" }, null, -1), $o = {
|
|
|
718
718
|
key: 1,
|
|
719
719
|
"show-clear-button": R.canClearSelectedObject,
|
|
720
720
|
text: R.currentObjectName,
|
|
721
|
-
onClearObject:
|
|
721
|
+
onClearObject: x[1] || (x[1] = (A) => R.$emit("clear-object"))
|
|
722
722
|
}, null, 8, ["show-clear-button", "text"])) : L("", !0),
|
|
723
723
|
R.objectParentType !== "" && R.results !== void 0 && R.results.length > 0 && R.errorMessage === "" ? (d(), P(Xe, {
|
|
724
724
|
key: 2,
|
|
@@ -787,8 +787,8 @@ const wo = /* @__PURE__ */ g("div", { tabindex: "0" }, null, -1), $o = {
|
|
|
787
787
|
set: (w) => r("update:current-object", w)
|
|
788
788
|
}), y = I(null), T = $(() => ke()), v = I(""), S = I(""), C = I(), F = I(!0), q = I(!1);
|
|
789
789
|
function B(w) {
|
|
790
|
-
var
|
|
791
|
-
const U = ((
|
|
790
|
+
var Q;
|
|
791
|
+
const U = ((Q = H.value) == null ? void 0 : Q.getBoundingClientRect().top) || 0;
|
|
792
792
|
q.value = window.innerHeight - U < 280, e.disabled || (typeof w < "u" ? i.value = w : i.value = !i.value);
|
|
793
793
|
}
|
|
794
794
|
function J(w) {
|
|
@@ -797,7 +797,7 @@ const wo = /* @__PURE__ */ g("div", { tabindex: "0" }, null, -1), $o = {
|
|
|
797
797
|
function R(w) {
|
|
798
798
|
S.value = w, r("search-parent", w);
|
|
799
799
|
}
|
|
800
|
-
function
|
|
800
|
+
function x() {
|
|
801
801
|
f.value = null, B(!1);
|
|
802
802
|
}
|
|
803
803
|
function de(w) {
|
|
@@ -807,9 +807,9 @@ const wo = /* @__PURE__ */ g("div", { tabindex: "0" }, null, -1), $o = {
|
|
|
807
807
|
function A(w) {
|
|
808
808
|
let U = null;
|
|
809
809
|
if (e.results !== null) {
|
|
810
|
-
for (let
|
|
811
|
-
if (e.results[
|
|
812
|
-
U = e.results[
|
|
810
|
+
for (let Q = 0; Q < e.results.length; Q++)
|
|
811
|
+
if (e.results[Q].id === w) {
|
|
812
|
+
U = e.results[Q];
|
|
813
813
|
break;
|
|
814
814
|
}
|
|
815
815
|
}
|
|
@@ -847,7 +847,7 @@ const wo = /* @__PURE__ */ g("div", { tabindex: "0" }, null, -1), $o = {
|
|
|
847
847
|
});
|
|
848
848
|
}
|
|
849
849
|
function je() {
|
|
850
|
-
var U,
|
|
850
|
+
var U, Q, h, z, Z;
|
|
851
851
|
Il({
|
|
852
852
|
message: a("comboBox.createSuccessful", {
|
|
853
853
|
object: e.objectType,
|
|
@@ -857,7 +857,7 @@ const wo = /* @__PURE__ */ g("div", { tabindex: "0" }, null, -1), $o = {
|
|
|
857
857
|
duration: 1e4
|
|
858
858
|
});
|
|
859
859
|
let w = "";
|
|
860
|
-
y.value && y.value.id === ((
|
|
860
|
+
y.value && y.value.id === ((Q = e.objectCreatedResponse) == null ? void 0 : Q.parentId) && (w = y.value.name), f.value = {
|
|
861
861
|
id: ((h = e.objectCreatedResponse) == null ? void 0 : h.id) ?? 0,
|
|
862
862
|
name: ((z = e.objectCreatedResponse) == null ? void 0 : z.name) ?? "",
|
|
863
863
|
parentId: ((Z = e.objectCreatedResponse) == null ? void 0 : Z.parentId) ?? 0,
|
|
@@ -874,13 +874,13 @@ const wo = /* @__PURE__ */ g("div", { tabindex: "0" }, null, -1), $o = {
|
|
|
874
874
|
}
|
|
875
875
|
X(() => e.objectCreatedResponse, () => me()), X(() => e.parentObjectCreatedResponse, () => ge()), X(() => v.value, () => E()), X(() => y.value, () => E());
|
|
876
876
|
const H = I();
|
|
877
|
-
return
|
|
877
|
+
return Qe(H, () => i.value ? B(!1) : ""), t({
|
|
878
878
|
focus() {
|
|
879
879
|
B(), r("focus");
|
|
880
880
|
}
|
|
881
881
|
}), (w, U) => {
|
|
882
|
-
const
|
|
883
|
-
return d(), b("div",
|
|
882
|
+
const Q = Te("cl-ui-combo-box", !0);
|
|
883
|
+
return d(), b("div", _({
|
|
884
884
|
ref_key: "outsideRef",
|
|
885
885
|
ref: H
|
|
886
886
|
}, c, { class: "cl-relative" }), [
|
|
@@ -908,7 +908,7 @@ const wo = /* @__PURE__ */ g("div", { tabindex: "0" }, null, -1), $o = {
|
|
|
908
908
|
te(g("div", zo, [
|
|
909
909
|
g("div", Lo, [
|
|
910
910
|
se(V(m(a)("comboBox.required")) + " ", 1),
|
|
911
|
-
k(m(
|
|
911
|
+
k(m(Y), {
|
|
912
912
|
class: "cl-ml-1 cl-mt-1",
|
|
913
913
|
icon: "ph:warning"
|
|
914
914
|
})
|
|
@@ -925,7 +925,7 @@ const wo = /* @__PURE__ */ g("div", { tabindex: "0" }, null, -1), $o = {
|
|
|
925
925
|
disabled: w.disabled,
|
|
926
926
|
onClick: U[3] || (U[3] = (h) => B(!1))
|
|
927
927
|
}, [
|
|
928
|
-
k(m(
|
|
928
|
+
k(m(Y), {
|
|
929
929
|
icon: "ph:caret-up-bold",
|
|
930
930
|
class: "cl-ml-[4px] cl-mt-[12px]"
|
|
931
931
|
})
|
|
@@ -938,7 +938,7 @@ const wo = /* @__PURE__ */ g("div", { tabindex: "0" }, null, -1), $o = {
|
|
|
938
938
|
disabled: w.disabled,
|
|
939
939
|
onClick: U[2] || (U[2] = (h) => B(!0))
|
|
940
940
|
}, [
|
|
941
|
-
k(m(
|
|
941
|
+
k(m(Y), {
|
|
942
942
|
icon: "ph:caret-down-bold",
|
|
943
943
|
class: "cl-ml-[4px] cl-mt-[12px]"
|
|
944
944
|
})
|
|
@@ -965,7 +965,7 @@ const wo = /* @__PURE__ */ g("div", { tabindex: "0" }, null, -1), $o = {
|
|
|
965
965
|
"search-hint": s.value,
|
|
966
966
|
onCreateObject: () => w.objectParentType === "" && w.skipObjectCreationModal === !0 ? O() : h(),
|
|
967
967
|
onSelectObject: de,
|
|
968
|
-
onClearObject:
|
|
968
|
+
onClearObject: x,
|
|
969
969
|
onSearch: J,
|
|
970
970
|
onHideDropdown: U[4] || (U[4] = (z) => B(!1))
|
|
971
971
|
}, 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"]), [
|
|
@@ -1002,7 +1002,7 @@ const wo = /* @__PURE__ */ g("div", { tabindex: "0" }, null, -1), $o = {
|
|
|
1002
1002
|
]),
|
|
1003
1003
|
default: M(() => [
|
|
1004
1004
|
g("div", jo, [
|
|
1005
|
-
w.objectParentType ? (d(), P(
|
|
1005
|
+
w.objectParentType ? (d(), P(Q, {
|
|
1006
1006
|
key: 0,
|
|
1007
1007
|
"current-object": y.value,
|
|
1008
1008
|
"onUpdate:currentObject": U[5] || (U[5] = (h) => y.value = h),
|
|
@@ -1041,37 +1041,37 @@ function Ho(o) {
|
|
|
1041
1041
|
function Zo(o) {
|
|
1042
1042
|
return typeof o.name == "string";
|
|
1043
1043
|
}
|
|
1044
|
-
const Wo = {}, Ko = { class: "cl-flex cl-flex-wrap cl-left-0 cl-mt-4 cl-w-full" },
|
|
1044
|
+
const Wo = {}, Ko = { class: "cl-flex cl-flex-wrap cl-left-0 cl-mt-4 cl-w-full" }, Qo = {
|
|
1045
1045
|
key: 0,
|
|
1046
1046
|
class: "cl-w-full"
|
|
1047
|
-
},
|
|
1047
|
+
}, _o = {
|
|
1048
1048
|
key: 1,
|
|
1049
1049
|
class: "cl-leading-10 cl-text-sm cl-w-full"
|
|
1050
|
-
},
|
|
1050
|
+
}, Yo = { class: "cl-float-left" }, xo = { class: "cl-float-right" };
|
|
1051
1051
|
function Jo(o, t) {
|
|
1052
1052
|
return d(), b("div", Ko, [
|
|
1053
|
-
o.$slots.default ? (d(), b("div",
|
|
1053
|
+
o.$slots.default ? (d(), b("div", Qo, [
|
|
1054
1054
|
N(o.$slots, "default")
|
|
1055
1055
|
])) : L("", !0),
|
|
1056
|
-
o.$slots.left || o.$slots.right ? (d(), b("div",
|
|
1057
|
-
g("span",
|
|
1056
|
+
o.$slots.left || o.$slots.right ? (d(), b("div", _o, [
|
|
1057
|
+
g("span", Yo, [
|
|
1058
1058
|
N(o.$slots, "left")
|
|
1059
1059
|
]),
|
|
1060
|
-
g("span",
|
|
1060
|
+
g("span", xo, [
|
|
1061
1061
|
N(o.$slots, "right")
|
|
1062
1062
|
])
|
|
1063
1063
|
])) : L("", !0)
|
|
1064
1064
|
]);
|
|
1065
1065
|
}
|
|
1066
|
-
const Xo = /* @__PURE__ */
|
|
1066
|
+
const Xo = /* @__PURE__ */ ye(Wo, [["render", Jo]]), ul = Symbol(), ea = {}, la = { class: "cl-animate-pulse cl-bg-off-white cl-h-[33px] cl-px-20 cl-rounded-md" };
|
|
1067
1067
|
function ta(o, t) {
|
|
1068
1068
|
return d(), b("div", la);
|
|
1069
1069
|
}
|
|
1070
|
-
const oa = /* @__PURE__ */
|
|
1070
|
+
const oa = /* @__PURE__ */ ye(ea, [["render", ta]]), aa = {}, na = { class: "cl-animate-pulse cl-bg-off-white cl-h-8 cl-rounded-md" };
|
|
1071
1071
|
function sa(o, t) {
|
|
1072
1072
|
return d(), b("div", na);
|
|
1073
1073
|
}
|
|
1074
|
-
const Sl = /* @__PURE__ */
|
|
1074
|
+
const Sl = /* @__PURE__ */ ye(aa, [["render", sa]]), yl = /* @__PURE__ */ G({
|
|
1075
1075
|
inheritAttrs: !1,
|
|
1076
1076
|
__name: "cl-ui-skeleton-text",
|
|
1077
1077
|
props: {
|
|
@@ -1079,7 +1079,7 @@ const Sl = /* @__PURE__ */ he(aa, [["render", sa]]), yl = /* @__PURE__ */ G({
|
|
|
1079
1079
|
rows: { default: 1 }
|
|
1080
1080
|
},
|
|
1081
1081
|
setup(o) {
|
|
1082
|
-
return (t, l) => (d(!0), b(K, null, le(t.rows, (e) => (d(), b("div",
|
|
1082
|
+
return (t, l) => (d(!0), b(K, null, le(t.rows, (e) => (d(), b("div", _({ key: e }, t.$attrs, { class: "cl-flex cl-gap-1 cl-items-start" }), [
|
|
1083
1083
|
(d(!0), b(K, null, le(t.words, (r) => (d(), b("span", {
|
|
1084
1084
|
key: r,
|
|
1085
1085
|
class: "cl-animate-pulse cl-bg-off-white cl-rounded-full cl-w-16"
|
|
@@ -1152,7 +1152,7 @@ const ra = {
|
|
|
1152
1152
|
colour: "default",
|
|
1153
1153
|
class: "cl-flex-1 lg:cl-flex-none",
|
|
1154
1154
|
disabled: n.loading,
|
|
1155
|
-
onClick: c[0] || (c[0] =
|
|
1155
|
+
onClick: c[0] || (c[0] = oe((u) => n.$emit("update:edit-mode", !n.editMode), ["prevent"]))
|
|
1156
1156
|
}, {
|
|
1157
1157
|
default: M(() => [
|
|
1158
1158
|
n.editMode ? (d(), b(K, { key: 0 }, [
|
|
@@ -1176,7 +1176,7 @@ const ra = {
|
|
|
1176
1176
|
class: "cl-w-full",
|
|
1177
1177
|
size: "small",
|
|
1178
1178
|
disabled: n.loading,
|
|
1179
|
-
onClick: c[1] || (c[1] =
|
|
1179
|
+
onClick: c[1] || (c[1] = oe((u) => n.$emit("update:filterPanelOpen", !n.filterPanelOpen), ["prevent"]))
|
|
1180
1180
|
}, {
|
|
1181
1181
|
default: M(() => [
|
|
1182
1182
|
se(V(m(l)("grid.modifyFilters")), 1)
|
|
@@ -1191,7 +1191,7 @@ const ra = {
|
|
|
1191
1191
|
colour: "danger",
|
|
1192
1192
|
disabled: !e.value || n.loading,
|
|
1193
1193
|
class: "cl-basis-full lg:cl-flex-none",
|
|
1194
|
-
onClick: c[2] || (c[2] =
|
|
1194
|
+
onClick: c[2] || (c[2] = oe((u) => n.$emit("clear-filters"), ["prevent"]))
|
|
1195
1195
|
}, {
|
|
1196
1196
|
default: M(() => [
|
|
1197
1197
|
se(V(m(l)("grid.clearFilters")), 1)
|
|
@@ -1231,7 +1231,7 @@ const ra = {
|
|
|
1231
1231
|
"label-position": "right"
|
|
1232
1232
|
}, Se({
|
|
1233
1233
|
default: M(() => [
|
|
1234
|
-
te(g("input",
|
|
1234
|
+
te(g("input", _({
|
|
1235
1235
|
ref_key: "inputRef",
|
|
1236
1236
|
ref: n
|
|
1237
1237
|
}, c.$attrs, {
|
|
@@ -1240,7 +1240,7 @@ const ra = {
|
|
|
1240
1240
|
type: "checkbox",
|
|
1241
1241
|
required: c.required,
|
|
1242
1242
|
disabled: c.disabled,
|
|
1243
|
-
onKeydown: u[1] || (u[1] =
|
|
1243
|
+
onKeydown: u[1] || (u[1] = he(oe((p) => {
|
|
1244
1244
|
e.value = !e.value;
|
|
1245
1245
|
}, ["stop", "prevent"]), ["enter"])),
|
|
1246
1246
|
onFocus: u[2] || (u[2] = (p) => r("focus")),
|
|
@@ -1264,7 +1264,7 @@ const ra = {
|
|
|
1264
1264
|
} : void 0
|
|
1265
1265
|
]), 1032, ["show-required-asterisk", "errors"]));
|
|
1266
1266
|
}
|
|
1267
|
-
}), dl = /* @__PURE__ */
|
|
1267
|
+
}), dl = /* @__PURE__ */ ye(va, [["__scopeId", "data-v-7fefeb3d"]]);
|
|
1268
1268
|
var ee = /* @__PURE__ */ ((o) => (o.CURRENCY = "currency", o.PERCENTAGE = "percentage", o.INTEGER = "integer", o.DECIMAL = "decimal", o.MULTIPLIER = "multiplier", o))(ee || {}), ne = /* @__PURE__ */ ((o) => (o.SHORT_DATE = "short-date", o.SHORT_DATETIME = "short-datetime", o.DATE = "date", o.DATETIME = "datetime", o.LONG_DATE = "long-date", o.LONG_DATETIME = "long-datetime", o.TIME = "time", o.MONTH_YEAR = "month-year", o))(ne || {});
|
|
1269
1269
|
const ba = {
|
|
1270
1270
|
"en-GB": {
|
|
@@ -1448,16 +1448,16 @@ const ba = {
|
|
|
1448
1448
|
fallbackWarn: !1,
|
|
1449
1449
|
warnHtmlMessage: !1
|
|
1450
1450
|
});
|
|
1451
|
-
function
|
|
1451
|
+
function Pc(o, t) {
|
|
1452
1452
|
return Ce.global.mergeLocaleMessage(o, t), Ue();
|
|
1453
1453
|
}
|
|
1454
|
-
function
|
|
1454
|
+
function Gc(o, t) {
|
|
1455
1455
|
return Ce.global.mergeNumberFormat(o, t), Ue();
|
|
1456
1456
|
}
|
|
1457
|
-
function
|
|
1457
|
+
function Hc(o, t) {
|
|
1458
1458
|
return Ce.global.mergeDateTimeFormat(o, t), Ue();
|
|
1459
1459
|
}
|
|
1460
|
-
function
|
|
1460
|
+
function Zc(o) {
|
|
1461
1461
|
return Ce.global.locale.value = o, Ue();
|
|
1462
1462
|
}
|
|
1463
1463
|
const { locale: wa, getNumberFormat: $a } = Ce.global, pl = ee.DECIMAL;
|
|
@@ -1481,7 +1481,7 @@ function Ee(o, t, l) {
|
|
|
1481
1481
|
const e = Fe(ql(t), l);
|
|
1482
1482
|
let r = Ul(o, e) ?? "";
|
|
1483
1483
|
if (t === "currency-without-symbol") {
|
|
1484
|
-
const n =
|
|
1484
|
+
const n = Ye(e);
|
|
1485
1485
|
if (n) {
|
|
1486
1486
|
const c = Ve(n, 0, "unit", "currency", "literal");
|
|
1487
1487
|
r = Ne(r, c, "");
|
|
@@ -1501,7 +1501,7 @@ function Tl(o, t) {
|
|
|
1501
1501
|
return fl(o) ? Fe(pl, t) : Fe(ql(o), t);
|
|
1502
1502
|
}
|
|
1503
1503
|
function ka(o, t, l) {
|
|
1504
|
-
const e =
|
|
1504
|
+
const e = Ye(l);
|
|
1505
1505
|
return !!e && (o.includes(Ve(e, 10000.11111, t)[0]) || o.includes(Ve(e, -10000.11111, t)[0]));
|
|
1506
1506
|
}
|
|
1507
1507
|
function Ca(o, t) {
|
|
@@ -1524,7 +1524,7 @@ function Ca(o, t) {
|
|
|
1524
1524
|
function Rl(o, t, l) {
|
|
1525
1525
|
if (!o)
|
|
1526
1526
|
return NaN;
|
|
1527
|
-
const e = Fe(t, l), r =
|
|
1527
|
+
const e = Fe(t, l), r = Ye(e);
|
|
1528
1528
|
if (r === null)
|
|
1529
1529
|
return NaN;
|
|
1530
1530
|
const n = [
|
|
@@ -1555,9 +1555,9 @@ function Ve(o, t, ...l) {
|
|
|
1555
1555
|
}
|
|
1556
1556
|
function Ul(o, t) {
|
|
1557
1557
|
var l;
|
|
1558
|
-
return isNaN(o) ? "" : ((l =
|
|
1558
|
+
return isNaN(o) ? "" : ((l = Ye(t)) == null ? void 0 : l.format(o)) ?? null;
|
|
1559
1559
|
}
|
|
1560
|
-
function
|
|
1560
|
+
function Ye(o) {
|
|
1561
1561
|
try {
|
|
1562
1562
|
return new Intl.NumberFormat(o.locale, o);
|
|
1563
1563
|
} catch (t) {
|
|
@@ -1593,7 +1593,7 @@ function Sa(o) {
|
|
|
1593
1593
|
return !fl(o) && o !== "currency-without-symbol";
|
|
1594
1594
|
}
|
|
1595
1595
|
function Ta(o, t) {
|
|
1596
|
-
const l = Fe(pl, t), e =
|
|
1596
|
+
const l = Fe(pl, t), e = Ye(l);
|
|
1597
1597
|
if (e === null)
|
|
1598
1598
|
return o;
|
|
1599
1599
|
const r = Ve(e, 10000.11111, "group");
|
|
@@ -1611,7 +1611,7 @@ function qa(o) {
|
|
|
1611
1611
|
from: "@iconify/vue"
|
|
1612
1612
|
};
|
|
1613
1613
|
}
|
|
1614
|
-
function
|
|
1614
|
+
function Wc() {
|
|
1615
1615
|
return qa;
|
|
1616
1616
|
}
|
|
1617
1617
|
const { t: Oe } = Ce.global;
|
|
@@ -1878,7 +1878,7 @@ const Va = {
|
|
|
1878
1878
|
"cl-hidden": s.options.hideGridMobileView
|
|
1879
1879
|
}])
|
|
1880
1880
|
}, V(s.column.caption), 3),
|
|
1881
|
-
s.editMode && s.column.editable === !0 ? N(s.$slots, `${s.column.name}Edit`, ie(
|
|
1881
|
+
s.editMode && s.column.editable === !0 ? N(s.$slots, `${s.column.name}Edit`, ie(_({ key: 0 }, {
|
|
1882
1882
|
cellFocused: () => e("focus"),
|
|
1883
1883
|
column: s.column,
|
|
1884
1884
|
edited: c.value,
|
|
@@ -2003,7 +2003,7 @@ const Va = {
|
|
|
2003
2003
|
{
|
|
2004
2004
|
count: 0,
|
|
2005
2005
|
target: null,
|
|
2006
|
-
reset:
|
|
2006
|
+
reset: _l(() => {
|
|
2007
2007
|
a.value[F] && (a.value[F].count = 0, a.value[F].target = null);
|
|
2008
2008
|
}, 400, { immediate: !1 })
|
|
2009
2009
|
}
|
|
@@ -2087,7 +2087,7 @@ const Va = {
|
|
|
2087
2087
|
k($e, {
|
|
2088
2088
|
size: "small",
|
|
2089
2089
|
colour: "danger",
|
|
2090
|
-
onClick: S[0] || (S[0] =
|
|
2090
|
+
onClick: S[0] || (S[0] = oe((F) => v.$emit("clear-filters"), ["prevent"]))
|
|
2091
2091
|
}, {
|
|
2092
2092
|
default: M(() => [
|
|
2093
2093
|
se(V(m(r)("grid.clearFilters")), 1)
|
|
@@ -2101,7 +2101,7 @@ const Va = {
|
|
|
2101
2101
|
]);
|
|
2102
2102
|
};
|
|
2103
2103
|
}
|
|
2104
|
-
}), 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" },
|
|
2104
|
+
}), 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"], _a = ["disabled"], xe = /* @__PURE__ */ G({
|
|
2105
2105
|
inheritAttrs: !1,
|
|
2106
2106
|
__name: "cl-ui-input-number",
|
|
2107
2107
|
props: /* @__PURE__ */ fe({
|
|
@@ -2142,9 +2142,9 @@ const Va = {
|
|
|
2142
2142
|
X(r, () => C.value = void 0);
|
|
2143
2143
|
const q = $({
|
|
2144
2144
|
get: () => C.value ? de(C.value) : r.value,
|
|
2145
|
-
set: (O) => C.value =
|
|
2145
|
+
set: (O) => C.value = x(O)
|
|
2146
2146
|
}), B = $({
|
|
2147
|
-
get: () => C.value ??
|
|
2147
|
+
get: () => C.value ?? x(r.value),
|
|
2148
2148
|
set(O) {
|
|
2149
2149
|
C.value = O, F.value = !0;
|
|
2150
2150
|
}
|
|
@@ -2160,7 +2160,7 @@ const Va = {
|
|
|
2160
2160
|
j && e.format === ee.PERCENTAGE && !ka(B.value, "percentSign", y.value) && (me = me / v.value), isNaN(me) === !1 && (r.value = J(Math.round(me * S.value) / S.value));
|
|
2161
2161
|
}
|
|
2162
2162
|
}
|
|
2163
|
-
function
|
|
2163
|
+
function x(O) {
|
|
2164
2164
|
return O === null ? "" : e.format ? Ee(O, e.format, {
|
|
2165
2165
|
locale: e.locale,
|
|
2166
2166
|
additionalOptions: f.value
|
|
@@ -2197,7 +2197,7 @@ const Va = {
|
|
|
2197
2197
|
ref: u,
|
|
2198
2198
|
class: "cl-relative cl-w-full"
|
|
2199
2199
|
}, [
|
|
2200
|
-
(d(), b("input",
|
|
2200
|
+
(d(), b("input", _(O.$attrs, {
|
|
2201
2201
|
ref_key: "inputRef",
|
|
2202
2202
|
ref: p,
|
|
2203
2203
|
key: c.value,
|
|
@@ -2209,11 +2209,11 @@ const Va = {
|
|
|
2209
2209
|
placeholder: O.placeholder ?? void 0,
|
|
2210
2210
|
onInput: j[0] || (j[0] = (ge) => B.value = ge.target.value),
|
|
2211
2211
|
onKeydown: [
|
|
2212
|
-
j[1] || (j[1] =
|
|
2212
|
+
j[1] || (j[1] = he(oe((ge) => {
|
|
2213
2213
|
R(ge.target.value, F.value), F.value = !1;
|
|
2214
2214
|
}, ["stop", "prevent"]), ["enter"])),
|
|
2215
|
-
j[2] || (j[2] =
|
|
2216
|
-
j[3] || (j[3] =
|
|
2215
|
+
j[2] || (j[2] = he(oe((ge) => A(!0), ["stop", "prevent"]), ["down"])),
|
|
2216
|
+
j[3] || (j[3] = he(oe((ge) => A(!1), ["stop", "prevent"]), ["up"]))
|
|
2217
2217
|
]
|
|
2218
2218
|
}), null, 16, Wa)),
|
|
2219
2219
|
te(g("div", Ka, [
|
|
@@ -2222,23 +2222,23 @@ const Va = {
|
|
|
2222
2222
|
disabled: O.disabled,
|
|
2223
2223
|
onClick: j[4] || (j[4] = (ge) => A(!1)),
|
|
2224
2224
|
onKeydown: [
|
|
2225
|
-
j[5] || (j[5] =
|
|
2226
|
-
j[6] || (j[6] =
|
|
2225
|
+
j[5] || (j[5] = he(oe((ge) => A(!0), ["stop", "prevent"]), ["down"])),
|
|
2226
|
+
j[6] || (j[6] = he(oe((ge) => A(!1), ["stop", "prevent"]), ["up"]))
|
|
2227
2227
|
]
|
|
2228
2228
|
}, [
|
|
2229
2229
|
k(me, { icon: "ph:caret-up-bold" })
|
|
2230
|
-
], 40,
|
|
2230
|
+
], 40, Qa),
|
|
2231
2231
|
g("button", {
|
|
2232
2232
|
class: "cl-bg-opacity-30 cl-bg-secondary-light cl-border cl-border-grey-3 cl-px-1 cl-rounded hover:cl-bg-opacity-20",
|
|
2233
2233
|
disabled: O.disabled,
|
|
2234
2234
|
onClick: j[7] || (j[7] = (ge) => A(!0)),
|
|
2235
2235
|
onKeydown: [
|
|
2236
|
-
j[8] || (j[8] =
|
|
2237
|
-
j[9] || (j[9] =
|
|
2236
|
+
j[8] || (j[8] = he(oe((ge) => A(!0), ["stop", "prevent"]), ["down"])),
|
|
2237
|
+
j[9] || (j[9] = he(oe((ge) => A(!1), ["stop", "prevent"]), ["up"]))
|
|
2238
2238
|
]
|
|
2239
2239
|
}, [
|
|
2240
2240
|
k(me, { icon: "ph:caret-down-bold" })
|
|
2241
|
-
], 40,
|
|
2241
|
+
], 40, _a)
|
|
2242
2242
|
], 512), [
|
|
2243
2243
|
[ue, i.value && !O.disabled]
|
|
2244
2244
|
])
|
|
@@ -2256,10 +2256,10 @@ const Va = {
|
|
|
2256
2256
|
]), 1032, ["show-required-asterisk", "errors"]);
|
|
2257
2257
|
};
|
|
2258
2258
|
}
|
|
2259
|
-
}),
|
|
2259
|
+
}), Ya = {
|
|
2260
2260
|
key: 0,
|
|
2261
2261
|
class: "cl-flex cl-flex-col lg:cl-flex-row lg:cl-gap-2"
|
|
2262
|
-
},
|
|
2262
|
+
}, xa = { 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" }, Ja = { class: "cl-border cl-border-off-white cl-mt-2 cl-p-2 cl-rounded-lg lg:cl-px-4 lg:cl-py-3" }, Xa = ["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__ */ g("span", null, null, -1), bn = /* @__PURE__ */ G({
|
|
2263
2263
|
__name: "cl-ui-grid-footer",
|
|
2264
2264
|
props: {
|
|
2265
2265
|
request: {},
|
|
@@ -2304,8 +2304,8 @@ const Va = {
|
|
|
2304
2304
|
}
|
|
2305
2305
|
return (a, i) => {
|
|
2306
2306
|
var f, y, T;
|
|
2307
|
-
return a.initialLoad ? (d(), b("div",
|
|
2308
|
-
g("div",
|
|
2307
|
+
return a.initialLoad ? (d(), b("div", Ya, [
|
|
2308
|
+
g("div", xa, [
|
|
2309
2309
|
k(m(yl), { words: 3 }),
|
|
2310
2310
|
k(m(yl), {
|
|
2311
2311
|
class: "cl-ml-auto",
|
|
@@ -2354,7 +2354,7 @@ const Va = {
|
|
|
2354
2354
|
}),
|
|
2355
2355
|
onClick: i[0] || (i[0] = (v) => u(1))
|
|
2356
2356
|
}, [
|
|
2357
|
-
k(m(
|
|
2357
|
+
k(m(Y), {
|
|
2358
2358
|
icon: "ph:caret-double-left",
|
|
2359
2359
|
size: 14
|
|
2360
2360
|
})
|
|
@@ -2366,7 +2366,7 @@ const Va = {
|
|
|
2366
2366
|
}),
|
|
2367
2367
|
onClick: i[1] || (i[1] = (v) => a.request.pageNumber > 1 ? u(a.request.pageNumber - 1) : null)
|
|
2368
2368
|
}, [
|
|
2369
|
-
k(m(
|
|
2369
|
+
k(m(Y), {
|
|
2370
2370
|
icon: "ph:caret-left",
|
|
2371
2371
|
size: 14
|
|
2372
2372
|
})
|
|
@@ -2387,7 +2387,7 @@ const Va = {
|
|
|
2387
2387
|
}),
|
|
2388
2388
|
onClick: i[2] || (i[2] = (v) => u(a.request.pageNumber + 1))
|
|
2389
2389
|
}, [
|
|
2390
|
-
k(m(
|
|
2390
|
+
k(m(Y), {
|
|
2391
2391
|
icon: "ph:caret-right",
|
|
2392
2392
|
size: 14
|
|
2393
2393
|
})
|
|
@@ -2399,7 +2399,7 @@ const Va = {
|
|
|
2399
2399
|
}),
|
|
2400
2400
|
onClick: i[3] || (i[3] = (v) => u(n.value))
|
|
2401
2401
|
}, [
|
|
2402
|
-
k(m(
|
|
2402
|
+
k(m(Y), {
|
|
2403
2403
|
icon: "ph:caret-double-right",
|
|
2404
2404
|
size: 14
|
|
2405
2405
|
})
|
|
@@ -2411,7 +2411,7 @@ const Va = {
|
|
|
2411
2411
|
g("div", fn, [
|
|
2412
2412
|
g("div", mn, [
|
|
2413
2413
|
g("span", gn, V(m(r)("grid.jumpToPage")), 1),
|
|
2414
|
-
k(
|
|
2414
|
+
k(xe, {
|
|
2415
2415
|
"model-value": a.request.pageNumber,
|
|
2416
2416
|
min: 1,
|
|
2417
2417
|
max: n.value,
|
|
@@ -2730,7 +2730,7 @@ const yn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, wn = ["onClick"], $n =
|
|
|
2730
2730
|
}
|
|
2731
2731
|
]])
|
|
2732
2732
|
}, [
|
|
2733
|
-
k($e,
|
|
2733
|
+
k($e, _(l.value, {
|
|
2734
2734
|
class: ["cl-basis-full cl-border-transparent cl-flex cl-items-center cl-justify-center hover:cl-border-transparent", {
|
|
2735
2735
|
"cl-text-grey-4 hover:cl-text-grey-3": !e.dateRangeSelected && !e.disabled,
|
|
2736
2736
|
"cl-text-primary-darker hover:cl-text-primary-dark": e.dateRangeSelected && !e.disabled
|
|
@@ -2815,7 +2815,7 @@ const yn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, wn = ["onClick"], $n =
|
|
|
2815
2815
|
const S = ot(v, e.value);
|
|
2816
2816
|
r.value = S, a.value = v, i.value.move(S.start), i.value.hidePopover();
|
|
2817
2817
|
}
|
|
2818
|
-
const y =
|
|
2818
|
+
const y = Yl("(min-width: 768px)"), T = $(() => y.value ? 2 : 1);
|
|
2819
2819
|
return (v, S) => (d(), P(Me, { "show-required-asterisk": v.required }, {
|
|
2820
2820
|
label: M(() => [
|
|
2821
2821
|
N(v.$slots, "default")
|
|
@@ -2840,7 +2840,7 @@ const yn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, wn = ["onClick"], $n =
|
|
|
2840
2840
|
onDayclick: S[2] || (S[2] = (C) => a.value = null)
|
|
2841
2841
|
}, {
|
|
2842
2842
|
default: M(({ togglePopover: C }) => [
|
|
2843
|
-
k(Al,
|
|
2843
|
+
k(Al, _(v.$attrs, {
|
|
2844
2844
|
required: v.required,
|
|
2845
2845
|
disabled: v.disabled,
|
|
2846
2846
|
"date-range-selected": !!r.value,
|
|
@@ -2924,7 +2924,7 @@ const yn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, wn = ["onClick"], $n =
|
|
|
2924
2924
|
"show-required-asterisk": u.required
|
|
2925
2925
|
}, Se({
|
|
2926
2926
|
default: M(() => [
|
|
2927
|
-
te(g("textarea",
|
|
2927
|
+
te(g("textarea", _({
|
|
2928
2928
|
ref_key: "inputRef",
|
|
2929
2929
|
ref: n
|
|
2930
2930
|
}, u.$attrs, {
|
|
@@ -3001,7 +3001,7 @@ const yn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, wn = ["onClick"], $n =
|
|
|
3001
3001
|
}, V(m(gl)(i.min, i.precision)), 9, Dn),
|
|
3002
3002
|
g("div", En, [
|
|
3003
3003
|
te(g("div", An, [
|
|
3004
|
-
te(g("input",
|
|
3004
|
+
te(g("input", _({
|
|
3005
3005
|
ref_key: "sliderRef",
|
|
3006
3006
|
ref: n,
|
|
3007
3007
|
"onUpdate:modelValue": f[1] || (f[1] = (T) => e.value = T)
|
|
@@ -3025,7 +3025,7 @@ const yn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, wn = ["onClick"], $n =
|
|
|
3025
3025
|
], 512), [
|
|
3026
3026
|
[ue, p.value === !1]
|
|
3027
3027
|
]),
|
|
3028
|
-
te(k(
|
|
3028
|
+
te(k(xe, _({
|
|
3029
3029
|
ref_key: "inputRef",
|
|
3030
3030
|
ref: c,
|
|
3031
3031
|
modelValue: e.value,
|
|
@@ -3068,7 +3068,7 @@ const yn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, wn = ["onClick"], $n =
|
|
|
3068
3068
|
]), 1032, ["errors", "show-required-asterisk"]);
|
|
3069
3069
|
};
|
|
3070
3070
|
}
|
|
3071
|
-
}), Un = /* @__PURE__ */
|
|
3071
|
+
}), Un = /* @__PURE__ */ ye(Rn, [["__scopeId", "data-v-b582bc6a"]]), ut = [
|
|
3072
3072
|
"date",
|
|
3073
3073
|
"datetime",
|
|
3074
3074
|
"time"
|
|
@@ -3126,14 +3126,14 @@ const yn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, wn = ["onClick"], $n =
|
|
|
3126
3126
|
});
|
|
3127
3127
|
return t({
|
|
3128
3128
|
focus: r
|
|
3129
|
-
}), (u, p) => u.type === "dateRange" ? (d(), P(m(Al),
|
|
3129
|
+
}), (u, p) => u.type === "dateRange" ? (d(), P(m(Al), _({ key: 0 }, u.$attrs, {
|
|
3130
3130
|
disabled: !!u.disabled,
|
|
3131
3131
|
required: u.required,
|
|
3132
3132
|
"date-range-selected": !!u.rangeSelected,
|
|
3133
3133
|
onTogglePopover: p[0] || (p[0] = (s) => u.$emit("togglePopover")),
|
|
3134
3134
|
onClear: p[1] || (p[1] = (s) => u.$emit("clear"))
|
|
3135
3135
|
}), null, 16, ["disabled", "required", "date-range-selected"])) : (d(), b("div", Ln, [
|
|
3136
|
-
g("input",
|
|
3136
|
+
g("input", _({
|
|
3137
3137
|
ref_key: "element",
|
|
3138
3138
|
ref: e
|
|
3139
3139
|
}, u.$attrs, {
|
|
@@ -3142,28 +3142,28 @@ const yn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, wn = ["onClick"], $n =
|
|
|
3142
3142
|
disabled: u.disabled,
|
|
3143
3143
|
placeholder: c.value
|
|
3144
3144
|
}, St(u.events, !0)), null, 16, Bn),
|
|
3145
|
-
k(m(
|
|
3145
|
+
k(m(Y), {
|
|
3146
3146
|
class: "cl-absolute cl-bg-transparent cl-cursor-text cl-left-2 cl-text-grey-4 cl-top-3.5 icon",
|
|
3147
3147
|
icon: u.type === "time" ? "ph-clock" : "ph:calendar",
|
|
3148
3148
|
onClick: r
|
|
3149
3149
|
}, null, 8, ["icon"]),
|
|
3150
3150
|
u.disabled ? L("", !0) : (d(), b("div", Fn, [
|
|
3151
|
-
u.type !== "time" ? (d(), P(m(
|
|
3151
|
+
u.type !== "time" ? (d(), P(m(Y), {
|
|
3152
3152
|
key: 0,
|
|
3153
3153
|
class: "cl-cursor-pointer hover:cl-text-link-light",
|
|
3154
3154
|
icon: "ph:arrow-counter-clockwise",
|
|
3155
|
-
onClick: p[2] || (p[2] =
|
|
3155
|
+
onClick: p[2] || (p[2] = oe((s) => u.$emit("reset"), ["prevent"]))
|
|
3156
3156
|
})) : L("", !0),
|
|
3157
|
-
!u.required && u.date && (u.type !== "time" || u.date !== "00:00") ? (d(), P(m(
|
|
3157
|
+
!u.required && u.date && (u.type !== "time" || u.date !== "00:00") ? (d(), P(m(Y), {
|
|
3158
3158
|
key: 1,
|
|
3159
3159
|
class: "cl-cursor-pointer clear-icon hover:cl-text-link-light md:cl-ml-0.5",
|
|
3160
3160
|
icon: "ph:x",
|
|
3161
|
-
onClick: p[3] || (p[3] =
|
|
3161
|
+
onClick: p[3] || (p[3] = oe((s) => u.$emit("clear"), ["prevent"]))
|
|
3162
3162
|
})) : L("", !0)
|
|
3163
3163
|
]))
|
|
3164
3164
|
]));
|
|
3165
3165
|
}
|
|
3166
|
-
}), Ze = /* @__PURE__ */
|
|
3166
|
+
}), Ze = /* @__PURE__ */ ye(jn, [["__scopeId", "data-v-307fea23"]]), dt = /* @__PURE__ */ G({
|
|
3167
3167
|
inheritAttrs: !1,
|
|
3168
3168
|
__name: "cl-ui-input-datetime",
|
|
3169
3169
|
props: /* @__PURE__ */ fe({
|
|
@@ -3227,7 +3227,7 @@ const yn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, wn = ["onClick"], $n =
|
|
|
3227
3227
|
popover: i.value
|
|
3228
3228
|
}, {
|
|
3229
3229
|
default: M(({ inputValue: C, inputEvents: F }) => [
|
|
3230
|
-
k(Ze,
|
|
3230
|
+
k(Ze, _(v.$attrs, {
|
|
3231
3231
|
ref_key: "input",
|
|
3232
3232
|
ref: y,
|
|
3233
3233
|
date: C,
|
|
@@ -3260,7 +3260,7 @@ const yn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, wn = ["onClick"], $n =
|
|
|
3260
3260
|
popover: i.value
|
|
3261
3261
|
}, {
|
|
3262
3262
|
default: M(({ inputValue: C, inputEvents: F }) => [
|
|
3263
|
-
k(Ze,
|
|
3263
|
+
k(Ze, _(v.$attrs, {
|
|
3264
3264
|
ref_key: "input",
|
|
3265
3265
|
ref: y,
|
|
3266
3266
|
date: C,
|
|
@@ -3292,7 +3292,7 @@ const yn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, wn = ["onClick"], $n =
|
|
|
3292
3292
|
N(r.$slots, "default", ie(pe({ toggleModalInput: e })))
|
|
3293
3293
|
], 16));
|
|
3294
3294
|
}
|
|
3295
|
-
}), Pn =
|
|
3295
|
+
}), Pn = ["placeholder"], Gn = ["value", "disabled"], Hn = ["value", "disabled"], Zn = ["disabled"], wl = /* @__PURE__ */ G({
|
|
3296
3296
|
inheritAttrs: !1,
|
|
3297
3297
|
__name: "cl-ui-select",
|
|
3298
3298
|
props: /* @__PURE__ */ fe({
|
|
@@ -3300,7 +3300,8 @@ const yn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, wn = ["onClick"], $n =
|
|
|
3300
3300
|
disabled: { type: Boolean, default: !1 },
|
|
3301
3301
|
placeholder: { default: null },
|
|
3302
3302
|
canClear: { type: Boolean, default: !1 },
|
|
3303
|
-
errors: { default: null }
|
|
3303
|
+
errors: { default: null },
|
|
3304
|
+
isGridFilter: { type: Boolean, default: !1 }
|
|
3304
3305
|
}, {
|
|
3305
3306
|
modelValue: { required: !0 },
|
|
3306
3307
|
modelModifiers: {}
|
|
@@ -3324,7 +3325,7 @@ const yn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, wn = ["onClick"], $n =
|
|
|
3324
3325
|
function p(a) {
|
|
3325
3326
|
return a.name !== void 0 && a.id !== void 0;
|
|
3326
3327
|
}
|
|
3327
|
-
|
|
3328
|
+
Qe(e, () => r.value ? c(!1) : "");
|
|
3328
3329
|
const s = $(() => ({
|
|
3329
3330
|
"cl-cursor-pointer cl-bg-white": !t.disabled,
|
|
3330
3331
|
"cl-border-b-transparent cl-rounded-b-none": r.value,
|
|
@@ -3345,7 +3346,11 @@ const yn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, wn = ["onClick"], $n =
|
|
|
3345
3346
|
N(a.$slots, "label")
|
|
3346
3347
|
]),
|
|
3347
3348
|
default: M(() => [
|
|
3348
|
-
g("div",
|
|
3349
|
+
g("div", {
|
|
3350
|
+
class: D(["cl-w-full", {
|
|
3351
|
+
"cl-relative": a.isGridFilter === !1
|
|
3352
|
+
}])
|
|
3353
|
+
}, [
|
|
3349
3354
|
N(a.$slots, "input", ie(pe({ selectModalVisible: r.value, toggleSelectModalState: c })), () => [
|
|
3350
3355
|
n.value === !1 ? (d(), P(sl, {
|
|
3351
3356
|
key: 0,
|
|
@@ -3353,24 +3358,24 @@ const yn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, wn = ["onClick"], $n =
|
|
|
3353
3358
|
onToggleModal: c
|
|
3354
3359
|
}, {
|
|
3355
3360
|
default: M(() => [
|
|
3356
|
-
l.value === null || l.value === void 0 ? (d(), b("input",
|
|
3361
|
+
l.value === null || l.value === void 0 ? (d(), b("input", _({ key: 0 }, a.$attrs, {
|
|
3357
3362
|
readonly: "",
|
|
3358
3363
|
class: [s.value, "cl-outline-none cl-overflow-hidden cl-px-2 cl-py-1 cl-rounded-lg cl-text-ellipsis cl-transition-colors cl-w-full cl-whitespace-nowrap"],
|
|
3359
3364
|
placeholder: a.placeholder,
|
|
3360
3365
|
onClick: i[0] || (i[0] = (y) => c())
|
|
3361
|
-
}), null, 16,
|
|
3366
|
+
}), null, 16, Pn)) : p(l.value) ? (d(), b("input", _({ key: 1 }, a.$attrs, {
|
|
3362
3367
|
readonly: "",
|
|
3363
3368
|
class: [s.value, "cl-outline-none cl-overflow-hidden cl-px-2 cl-py-1 cl-rounded-lg cl-text-ellipsis cl-transition-colors cl-w-full cl-whitespace-nowrap"],
|
|
3364
3369
|
value: l.value.name,
|
|
3365
3370
|
disabled: a.disabled,
|
|
3366
3371
|
onClick: i[1] || (i[1] = (y) => c())
|
|
3367
|
-
}), null, 16,
|
|
3372
|
+
}), null, 16, Gn)) : (d(), b("input", _({ key: 2 }, a.$attrs, {
|
|
3368
3373
|
readonly: "",
|
|
3369
3374
|
class: [s.value, "cl-outline-none cl-overflow-hidden cl-px-2 cl-py-1 cl-rounded-lg cl-text-ellipsis cl-transition-colors cl-w-full cl-whitespace-nowrap"],
|
|
3370
3375
|
value: l.value,
|
|
3371
3376
|
disabled: a.disabled,
|
|
3372
3377
|
onClick: i[2] || (i[2] = (y) => c())
|
|
3373
|
-
}), null, 16,
|
|
3378
|
+
}), null, 16, Hn)),
|
|
3374
3379
|
g("div", {
|
|
3375
3380
|
class: "cl-flex cl-items-center cl-px-2 cl-py-1 cl-relative cl-text-grey-3 cl-z-10",
|
|
3376
3381
|
disabled: a.disabled,
|
|
@@ -3379,12 +3384,12 @@ const yn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, wn = ["onClick"], $n =
|
|
|
3379
3384
|
k(f, {
|
|
3380
3385
|
icon: r.value ? "ph:caret-up-bold" : "ph:caret-down-bold"
|
|
3381
3386
|
}, null, 8, ["icon"])
|
|
3382
|
-
], 8,
|
|
3387
|
+
], 8, Zn)
|
|
3383
3388
|
]),
|
|
3384
3389
|
_: 1
|
|
3385
3390
|
}, 8, ["class"])) : L("", !0)
|
|
3386
3391
|
]),
|
|
3387
|
-
r.value || n.value ? (d(), b("div",
|
|
3392
|
+
r.value || n.value ? (d(), b("div", _({ key: 0 }, a.$attrs, {
|
|
3388
3393
|
class: ["cl-bg-white cl-border cl-border-grey-2 cl-flex cl-flex-col cl-rounded-lg cl-w-full cl-z-20", {
|
|
3389
3394
|
"cl-absolute cl-border-t-0 cl-left-0 cl-rounded-t-none cl-top-8 cl-min-h-20 cl-max-h-56 cl-text-sm": n.value === !1,
|
|
3390
3395
|
"cl-max-h-28": n.value,
|
|
@@ -3394,7 +3399,7 @@ const yn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, wn = ["onClick"], $n =
|
|
|
3394
3399
|
}), [
|
|
3395
3400
|
N(a.$slots, "default", ie(pe({ select: u })))
|
|
3396
3401
|
], 16)) : L("", !0)
|
|
3397
|
-
])
|
|
3402
|
+
], 2)
|
|
3398
3403
|
]),
|
|
3399
3404
|
_: 3
|
|
3400
3405
|
}, 8, ["show-required-asterisk", "errors"])
|
|
@@ -3422,7 +3427,7 @@ const yn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, wn = ["onClick"], $n =
|
|
|
3422
3427
|
N(e.$slots, "default")
|
|
3423
3428
|
], 2));
|
|
3424
3429
|
}
|
|
3425
|
-
}),
|
|
3430
|
+
}), Wn = [
|
|
3426
3431
|
"string",
|
|
3427
3432
|
"boolean",
|
|
3428
3433
|
"number",
|
|
@@ -3435,7 +3440,7 @@ const yn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, wn = ["onClick"], $n =
|
|
|
3435
3440
|
function pt(o) {
|
|
3436
3441
|
return typeof o.caption == "string" && typeof o.name == "string" && typeof o.type == "string";
|
|
3437
3442
|
}
|
|
3438
|
-
function
|
|
3443
|
+
function Kn(o) {
|
|
3439
3444
|
let t = Array.isArray(o);
|
|
3440
3445
|
if (t) {
|
|
3441
3446
|
for (const l of o)
|
|
@@ -3450,8 +3455,8 @@ const Qn = [
|
|
|
3450
3455
|
"ellipsis",
|
|
3451
3456
|
"wrap-text"
|
|
3452
3457
|
];
|
|
3453
|
-
var
|
|
3454
|
-
const
|
|
3458
|
+
var ae = /* @__PURE__ */ ((o) => (o[o.CONTAINS = 0] = "CONTAINS", o[o.NOT_CONTAINS = 1] = "NOT_CONTAINS", o[o.EQUAL = 2] = "EQUAL", o[o.NOT_EQUAL = 3] = "NOT_EQUAL", o[o.STARTS_WITH = 4] = "STARTS_WITH", o[o.ENDS_WITH = 5] = "ENDS_WITH", o[o.GREATER_THAN = 6] = "GREATER_THAN", o[o.LESS_THAN = 7] = "LESS_THAN", o[o.EQUAL_OR_GREATER_THAN = 8] = "EQUAL_OR_GREATER_THAN", o[o.EQUAL_OR_LESS_THAN = 9] = "EQUAL_OR_LESS_THAN", o[o.AND_CONTAINS = 10] = "AND_CONTAINS", o))(ae || {});
|
|
3459
|
+
const _n = [
|
|
3455
3460
|
"equal",
|
|
3456
3461
|
"notequal",
|
|
3457
3462
|
"contains",
|
|
@@ -3467,11 +3472,11 @@ const xn = [
|
|
|
3467
3472
|
function Yn(o) {
|
|
3468
3473
|
return typeof o.filterOnColumn == "string" && typeof o.filterOperation == "number" && typeof o.filterValue == "string";
|
|
3469
3474
|
}
|
|
3470
|
-
function
|
|
3475
|
+
function xn(o) {
|
|
3471
3476
|
return o === null || typeof o.sortByAscending == "boolean" && typeof o.sortOnColumn == "string";
|
|
3472
3477
|
}
|
|
3473
|
-
function
|
|
3474
|
-
let t = typeof o.filters == "object" && Array.isArray(o.filters) && typeof o.pageNumber == "number" && typeof o.pageSize == "number" && typeof o.sort == "object" &&
|
|
3478
|
+
function Jn(o) {
|
|
3479
|
+
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);
|
|
3475
3480
|
if (t) {
|
|
3476
3481
|
for (const l of o.filters)
|
|
3477
3482
|
if (!Yn(l)) {
|
|
@@ -3481,7 +3486,7 @@ function Xn(o) {
|
|
|
3481
3486
|
}
|
|
3482
3487
|
return t;
|
|
3483
3488
|
}
|
|
3484
|
-
function
|
|
3489
|
+
function Xn(o, t) {
|
|
3485
3490
|
let l = typeof o.results == "object" && Array.isArray(o.results) && typeof o.totalRecords == "number";
|
|
3486
3491
|
if (l) {
|
|
3487
3492
|
for (const e of o.results)
|
|
@@ -3492,7 +3497,7 @@ function es(o, t) {
|
|
|
3492
3497
|
}
|
|
3493
3498
|
return l;
|
|
3494
3499
|
}
|
|
3495
|
-
const
|
|
3500
|
+
const es = {
|
|
3496
3501
|
method: "equal",
|
|
3497
3502
|
icon: "mdi:equal",
|
|
3498
3503
|
description: "Equals",
|
|
@@ -3505,12 +3510,12 @@ const ls = {
|
|
|
3505
3510
|
"list"
|
|
3506
3511
|
],
|
|
3507
3512
|
key: "equal"
|
|
3508
|
-
},
|
|
3513
|
+
}, ls = {
|
|
3509
3514
|
method: "contains",
|
|
3510
3515
|
icon: "mdi:format-letter-matches",
|
|
3511
3516
|
description: "Contains",
|
|
3512
3517
|
allowedTypes: ["string"]
|
|
3513
|
-
},
|
|
3518
|
+
}, ts = {
|
|
3514
3519
|
method: "lessthan",
|
|
3515
3520
|
icon: "mdi:less-than",
|
|
3516
3521
|
description: "Before",
|
|
@@ -3520,7 +3525,7 @@ const ls = {
|
|
|
3520
3525
|
],
|
|
3521
3526
|
key: "before"
|
|
3522
3527
|
}, Ll = [
|
|
3523
|
-
|
|
3528
|
+
ls,
|
|
3524
3529
|
{
|
|
3525
3530
|
method: "notcontains",
|
|
3526
3531
|
icon: "mdi:format-letter-spacing-variant",
|
|
@@ -3539,7 +3544,7 @@ const ls = {
|
|
|
3539
3544
|
description: "Ends with",
|
|
3540
3545
|
allowedTypes: ["string"]
|
|
3541
3546
|
},
|
|
3542
|
-
|
|
3547
|
+
es,
|
|
3543
3548
|
{
|
|
3544
3549
|
method: "notequal",
|
|
3545
3550
|
icon: "mdi:not-equal",
|
|
@@ -3552,7 +3557,7 @@ const ls = {
|
|
|
3552
3557
|
],
|
|
3553
3558
|
key: "notequal"
|
|
3554
3559
|
},
|
|
3555
|
-
|
|
3560
|
+
ts,
|
|
3556
3561
|
{
|
|
3557
3562
|
method: "greaterthan",
|
|
3558
3563
|
icon: "mdi:greater-than",
|
|
@@ -3607,7 +3612,7 @@ const ls = {
|
|
|
3607
3612
|
description: "Less than",
|
|
3608
3613
|
allowedTypes: ["number"]
|
|
3609
3614
|
}
|
|
3610
|
-
],
|
|
3615
|
+
], os = { class: "cl-bg-off-white cl-border-grey-1 cl-border-r cl-flex cl-h-full cl-items-center cl-justify-center cl-rounded-md cl-w-10" }, as = { class: "cl-p-2 cl-select-none" }, ns = ["onClick"], ss = /* @__PURE__ */ G({
|
|
3611
3616
|
__name: "cl-ui-grid-method-selector",
|
|
3612
3617
|
props: {
|
|
3613
3618
|
filter: {},
|
|
@@ -3627,7 +3632,7 @@ const ls = {
|
|
|
3627
3632
|
}), c = $(() => {
|
|
3628
3633
|
var f;
|
|
3629
3634
|
let i = (f = l.filter) == null ? void 0 : f.filterMethod;
|
|
3630
|
-
return typeof i > "u" && (i =
|
|
3635
|
+
return typeof i > "u" && (i = ae[l.defaultOperation].replace("_", "").toLowerCase()), n.value.find((y) => {
|
|
3631
3636
|
var T;
|
|
3632
3637
|
return y.method.toLowerCase() === ((T = i == null ? void 0 : i.removeNonAlphanumeric()) == null ? void 0 : T.toLowerCase());
|
|
3633
3638
|
});
|
|
@@ -3635,12 +3640,12 @@ const ls = {
|
|
|
3635
3640
|
function u(i) {
|
|
3636
3641
|
let f;
|
|
3637
3642
|
if (l.filter)
|
|
3638
|
-
f = ve(l.filter), f.filterOperation =
|
|
3643
|
+
f = ve(l.filter), f.filterOperation = ae[i.toUpperCase()], f.filterMethod = i.toLowerCase();
|
|
3639
3644
|
else if (typeof l.column.field < "u")
|
|
3640
3645
|
f = {
|
|
3641
3646
|
filterOnColumn: l.column.field,
|
|
3642
3647
|
filterMethod: i.toLowerCase(),
|
|
3643
|
-
filterOperation:
|
|
3648
|
+
filterOperation: ae[i.toUpperCase()],
|
|
3644
3649
|
filterValue: ""
|
|
3645
3650
|
};
|
|
3646
3651
|
else
|
|
@@ -3653,8 +3658,8 @@ const ls = {
|
|
|
3653
3658
|
ref: p,
|
|
3654
3659
|
class: "cl-group cl-inline cl-relative cl-w-auto"
|
|
3655
3660
|
}, [
|
|
3656
|
-
g("div",
|
|
3657
|
-
c.value ? (d(), P(m(
|
|
3661
|
+
g("div", os, [
|
|
3662
|
+
c.value ? (d(), P(m(Y), {
|
|
3658
3663
|
key: 0,
|
|
3659
3664
|
icon: c.value.icon,
|
|
3660
3665
|
class: D(["cl-text-lg", {
|
|
@@ -3670,7 +3675,7 @@ const ls = {
|
|
|
3670
3675
|
"cl-left-0": a.value
|
|
3671
3676
|
}])
|
|
3672
3677
|
}, [
|
|
3673
|
-
g("strong",
|
|
3678
|
+
g("strong", as, V(m(r)("grid.availableMethods")), 1),
|
|
3674
3679
|
(d(!0), b(K, null, le(n.value, (y, T) => {
|
|
3675
3680
|
var v;
|
|
3676
3681
|
return d(), b("span", {
|
|
@@ -3678,31 +3683,31 @@ const ls = {
|
|
|
3678
3683
|
class: D(["cl-cursor-pointer cl-px-4 cl-py-1 cl-transition-colors cl-w-full hover:cl-bg-grey-0", {
|
|
3679
3684
|
"cl-bg-primary-default cl-opacity-80": y.method === ((v = c.value) == null ? void 0 : v.method)
|
|
3680
3685
|
}]),
|
|
3681
|
-
onClick:
|
|
3686
|
+
onClick: oe((S) => u(y.method), ["prevent"])
|
|
3682
3687
|
}, [
|
|
3683
3688
|
se(V(y.description) + " ", 1),
|
|
3684
|
-
k(m(
|
|
3689
|
+
k(m(Y), {
|
|
3685
3690
|
icon: y.icon,
|
|
3686
3691
|
class: "cl-float-right cl-text-grey-4 cl-text-sm"
|
|
3687
3692
|
}, null, 8, ["icon"])
|
|
3688
|
-
], 10,
|
|
3693
|
+
], 10, ns);
|
|
3689
3694
|
}), 128))
|
|
3690
3695
|
], 2)
|
|
3691
3696
|
], 512));
|
|
3692
3697
|
}
|
|
3693
|
-
}), ft = (o) => (Wl("data-v-
|
|
3698
|
+
}), ft = (o) => (Wl("data-v-59ca84b3"), o = o(), Kl(), o), rs = ["onClick"], is = { class: "cl-p-1" }, cs = ["disabled"], us = {
|
|
3694
3699
|
key: 1,
|
|
3695
3700
|
class: "cl-w-full"
|
|
3696
|
-
},
|
|
3701
|
+
}, ds = {
|
|
3697
3702
|
key: 2,
|
|
3698
3703
|
class: "cl-w-full"
|
|
3699
|
-
},
|
|
3704
|
+
}, ps = {
|
|
3700
3705
|
key: 3,
|
|
3701
3706
|
class: "cl-w-full"
|
|
3702
|
-
},
|
|
3707
|
+
}, fs = /* @__PURE__ */ ft(() => /* @__PURE__ */ g("span", null, null, -1)), ms = {
|
|
3703
3708
|
key: 4,
|
|
3704
3709
|
class: "cl-w-full"
|
|
3705
|
-
},
|
|
3710
|
+
}, gs = /* @__PURE__ */ ft(() => /* @__PURE__ */ g("span", null, null, -1)), vs = ["onClick"], bs = { class: "cl-p-1" }, hs = ["disabled"], ys = /* @__PURE__ */ G({
|
|
3706
3711
|
__name: "cl-ui-grid-filter",
|
|
3707
3712
|
props: {
|
|
3708
3713
|
loading: { type: Boolean },
|
|
@@ -3718,41 +3723,41 @@ const ls = {
|
|
|
3718
3723
|
setup(o, { emit: t }) {
|
|
3719
3724
|
const l = o, e = t, { t: r, locale: n } = ce();
|
|
3720
3725
|
function c() {
|
|
3721
|
-
return l.column.type === "string" || l.column.slotType === "string" ?
|
|
3726
|
+
return l.column.type === "string" || l.column.slotType === "string" ? ae.CONTAINS : l.column.type === "datetime" || l.column.slotType === "datetime" || l.column.type === "date" || l.column.slotType === "date" ? ae.LESS_THAN : ae.EQUAL;
|
|
3722
3727
|
}
|
|
3723
3728
|
const u = $({
|
|
3724
3729
|
get: () => l.filter,
|
|
3725
3730
|
set: (E) => e("update:filter", E)
|
|
3726
3731
|
}), p = $(() => l.column.type === "date" || l.column.type === "datetime" || l.column.type === "slot" && (l.column.slotType === "date" || l.column.slotType === "datetime")), s = $(() => 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 === ee.INTEGER ? ee.DECIMAL : l.column.format ?? ee.DECIMAL), T = I(!1), v = $(() => T.value || f.value === !1), S = $({
|
|
3727
3732
|
get() {
|
|
3728
|
-
var H, w, U,
|
|
3733
|
+
var H, w, U, Q, h, z, Z;
|
|
3729
3734
|
let E = (H = u.value) == null ? void 0 : H[0];
|
|
3730
3735
|
if (E) {
|
|
3731
3736
|
if (p.value) {
|
|
3732
3737
|
if ((((w = l.filter) == null ? void 0 : w.length) ?? 0) > 1) {
|
|
3733
|
-
const re = (U = u.value) == null ? void 0 : U.find((qe) => qe.filterOperation ===
|
|
3738
|
+
const re = (U = u.value) == null ? void 0 : U.find((qe) => qe.filterOperation === ae.EQUAL_OR_GREATER_THAN), Ae = (Q = u.value) == null ? void 0 : Q.find((qe) => qe.filterOperation === ae.LESS_THAN);
|
|
3734
3739
|
re && Ae && (E = {
|
|
3735
3740
|
filterOnColumn: l.column.field,
|
|
3736
|
-
filterOperation:
|
|
3741
|
+
filterOperation: ae.EQUAL,
|
|
3737
3742
|
filterMethod: "equal",
|
|
3738
3743
|
filterValue: re.filterValue
|
|
3739
3744
|
});
|
|
3740
|
-
} else if (E.filterOperation ===
|
|
3745
|
+
} else if (E.filterOperation === ae.EQUAL_OR_LESS_THAN || E.filterOperation === ae.GREATER_THAN) {
|
|
3741
3746
|
let re = W.fromISO(E.filterValue, {
|
|
3742
3747
|
zone: l.timeZone ?? "UTC"
|
|
3743
3748
|
});
|
|
3744
3749
|
l.column.type === "date" || l.column.type === "slot" && l.column.slotType === "date" ? re = re.minus({ days: 1 }) : re = re.minus({ minutes: 1 }), E = {
|
|
3745
3750
|
filterOnColumn: l.column.field,
|
|
3746
3751
|
filterOperation: E.filterOperation,
|
|
3747
|
-
filterMethod: E.filterOperation ===
|
|
3752
|
+
filterMethod: E.filterOperation === ae.EQUAL_OR_LESS_THAN ? "equalorlessthan" : "greaterthan",
|
|
3748
3753
|
filterValue: re.plus({ milliseconds: 1 }).toISO() ?? ""
|
|
3749
3754
|
};
|
|
3750
3755
|
}
|
|
3751
3756
|
} else if (s.value && (((h = l.filter) == null ? void 0 : h.length) ?? 0) > 1) {
|
|
3752
|
-
const re = (z = u.value) == null ? void 0 : z.find((qe) => qe.filterOperation ===
|
|
3757
|
+
const re = (z = u.value) == null ? void 0 : z.find((qe) => qe.filterOperation === ae.EQUAL_OR_GREATER_THAN), Ae = (Z = u.value) == null ? void 0 : Z.find((qe) => qe.filterOperation === ae.EQUAL_OR_LESS_THAN);
|
|
3753
3758
|
re && Ae && (E = {
|
|
3754
3759
|
filterOnColumn: l.column.field,
|
|
3755
|
-
filterOperation:
|
|
3760
|
+
filterOperation: ae.EQUAL,
|
|
3756
3761
|
filterMethod: "equal",
|
|
3757
3762
|
filterValue: {
|
|
3758
3763
|
start: re.filterValue,
|
|
@@ -3766,7 +3771,7 @@ const ls = {
|
|
|
3766
3771
|
set(E) {
|
|
3767
3772
|
let H = null;
|
|
3768
3773
|
if (p.value) {
|
|
3769
|
-
const w = E, U = (w == null ? void 0 : w.filterMethod) && q(w.filterMethod, w.filterValue, "equal"),
|
|
3774
|
+
const w = E, U = (w == null ? void 0 : w.filterMethod) && q(w.filterMethod, w.filterValue, "equal"), Q = (w == null ? void 0 : w.filterMethod) && q(w.filterMethod, w.filterValue, "equalorlessthan"), h = (w == null ? void 0 : w.filterMethod) && q(w.filterMethod, w.filterValue, "greaterthan");
|
|
3770
3775
|
if (U) {
|
|
3771
3776
|
let z = W.fromISO(w.filterValue, {
|
|
3772
3777
|
zone: l.timeZone ?? "UTC"
|
|
@@ -3780,18 +3785,18 @@ const ls = {
|
|
|
3780
3785
|
H = [
|
|
3781
3786
|
{
|
|
3782
3787
|
filterOnColumn: l.column.field,
|
|
3783
|
-
filterOperation:
|
|
3788
|
+
filterOperation: ae.EQUAL_OR_GREATER_THAN,
|
|
3784
3789
|
filterMethod: "equalorgreaterthan",
|
|
3785
3790
|
filterValue: Z
|
|
3786
3791
|
},
|
|
3787
3792
|
{
|
|
3788
3793
|
filterOnColumn: l.column.field,
|
|
3789
|
-
filterOperation:
|
|
3794
|
+
filterOperation: ae.LESS_THAN,
|
|
3790
3795
|
filterMethod: "lessthan",
|
|
3791
3796
|
filterValue: re
|
|
3792
3797
|
}
|
|
3793
3798
|
];
|
|
3794
|
-
} else if (
|
|
3799
|
+
} else if (Q || h) {
|
|
3795
3800
|
let z = W.fromISO(w.filterValue, {
|
|
3796
3801
|
zone: l.timeZone ?? "UTC"
|
|
3797
3802
|
}).set({
|
|
@@ -3801,8 +3806,8 @@ const ls = {
|
|
|
3801
3806
|
l.column.type === "date" || l.column.type === "slot" && l.column.slotType === "date" ? z = z.plus({ days: 1 }) : z = z.plus({ minutes: 1 }), H = [
|
|
3802
3807
|
{
|
|
3803
3808
|
filterOnColumn: l.column.field,
|
|
3804
|
-
filterOperation:
|
|
3805
|
-
filterMethod:
|
|
3809
|
+
filterOperation: Q ? ae.EQUAL_OR_LESS_THAN : ae.GREATER_THAN,
|
|
3810
|
+
filterMethod: Q ? "equalorlessthan" : "greaterthan",
|
|
3806
3811
|
filterValue: z.minus({ milliseconds: 1 }).toISO()
|
|
3807
3812
|
}
|
|
3808
3813
|
];
|
|
@@ -3810,21 +3815,21 @@ const ls = {
|
|
|
3810
3815
|
} else if (s.value && (E != null && E.filterValue)) {
|
|
3811
3816
|
const w = E.filterValue, U = W.fromISO(w.start, {
|
|
3812
3817
|
zone: l.timeZone ?? "UTC"
|
|
3813
|
-
}).toISO(),
|
|
3818
|
+
}).toISO(), Q = W.fromISO(w.end, {
|
|
3814
3819
|
zone: l.timeZone ?? "UTC"
|
|
3815
3820
|
}).toISO();
|
|
3816
3821
|
H = [
|
|
3817
3822
|
{
|
|
3818
3823
|
filterOnColumn: l.column.field,
|
|
3819
|
-
filterOperation:
|
|
3824
|
+
filterOperation: ae.EQUAL_OR_GREATER_THAN,
|
|
3820
3825
|
filterMethod: "equalorgreaterthan",
|
|
3821
3826
|
filterValue: U
|
|
3822
3827
|
},
|
|
3823
3828
|
{
|
|
3824
3829
|
filterOnColumn: l.column.field,
|
|
3825
|
-
filterOperation:
|
|
3830
|
+
filterOperation: ae.EQUAL_OR_LESS_THAN,
|
|
3826
3831
|
filterMethod: "equalorlessthan",
|
|
3827
|
-
filterValue:
|
|
3832
|
+
filterValue: Q
|
|
3828
3833
|
}
|
|
3829
3834
|
];
|
|
3830
3835
|
}
|
|
@@ -3851,11 +3856,11 @@ const ls = {
|
|
|
3851
3856
|
const B = $(() => {
|
|
3852
3857
|
var E;
|
|
3853
3858
|
return ((E = S.value) == null ? void 0 : E.filterValue) ?? "";
|
|
3854
|
-
}), J = $(() => B.value === "" ? null : B.value), R = $(() => B.value === "" ? null : B.value),
|
|
3859
|
+
}), J = $(() => B.value === "" ? null : B.value), R = $(() => B.value === "" ? null : B.value), x = $(() => ol(l.column));
|
|
3855
3860
|
function de(E, H) {
|
|
3856
3861
|
var re;
|
|
3857
3862
|
let w, U = (E == null ? void 0 : E.value) ?? H;
|
|
3858
|
-
const
|
|
3863
|
+
const Q = ((re = S.value) == null ? void 0 : re.filterValue.toString()) ?? "", h = !!U.trim(), z = !!Q.trim();
|
|
3859
3864
|
if (h === !1 && z && (U = ""), h || z) {
|
|
3860
3865
|
if (S.value)
|
|
3861
3866
|
w = ve(F.value), w.filterValue = U;
|
|
@@ -3863,7 +3868,7 @@ const ls = {
|
|
|
3863
3868
|
const Ae = c();
|
|
3864
3869
|
w = {
|
|
3865
3870
|
filterOnColumn: l.column.field,
|
|
3866
|
-
filterMethod:
|
|
3871
|
+
filterMethod: ae[Ae].replace("_", "").toLowerCase(),
|
|
3867
3872
|
filterOperation: Ae,
|
|
3868
3873
|
filterValue: U
|
|
3869
3874
|
};
|
|
@@ -3875,8 +3880,8 @@ const ls = {
|
|
|
3875
3880
|
function A(E, H) {
|
|
3876
3881
|
let w = (E == null ? void 0 : E.value) ?? H ?? 0;
|
|
3877
3882
|
if (typeof w == "string") {
|
|
3878
|
-
const U = l.column.format === ee.INTEGER,
|
|
3879
|
-
w = et(w,
|
|
3883
|
+
const U = l.column.format === ee.INTEGER, Q = (U ? ee.DECIMAL : l.column.format) ?? ee.DECIMAL;
|
|
3884
|
+
w = et(w, Q, { additionalOptions: {
|
|
3880
3885
|
maximumFractionDigits: U ? 0 : void 0,
|
|
3881
3886
|
minimumFractionDigits: U ? 0 : void 0
|
|
3882
3887
|
} });
|
|
@@ -3889,11 +3894,11 @@ const ls = {
|
|
|
3889
3894
|
if (S.value)
|
|
3890
3895
|
w = ((U = S.value) == null ? void 0 : U.filterValue) === E, H = ve(S.value), H.filterValue = E ?? "";
|
|
3891
3896
|
else if (E !== null && typeof l.column.field < "u") {
|
|
3892
|
-
const
|
|
3897
|
+
const Q = c();
|
|
3893
3898
|
H = {
|
|
3894
3899
|
filterOnColumn: l.column.field,
|
|
3895
|
-
filterMethod:
|
|
3896
|
-
filterOperation:
|
|
3900
|
+
filterMethod: ae[Q].replace("_", "").toLowerCase(),
|
|
3901
|
+
filterOperation: Q,
|
|
3897
3902
|
filterValue: E
|
|
3898
3903
|
};
|
|
3899
3904
|
} else
|
|
@@ -3923,37 +3928,38 @@ const ls = {
|
|
|
3923
3928
|
return E.initialLoad && m(ol)(E.column) ? (d(), P(m(Sl), {
|
|
3924
3929
|
key: 0,
|
|
3925
3930
|
class: "cl-h-[34px]"
|
|
3926
|
-
})) :
|
|
3931
|
+
})) : x.value ? (d(), b("div", {
|
|
3927
3932
|
key: 1,
|
|
3928
|
-
class: D(["cl-border cl-border-grey-2 cl-flex cl-rounded-md", [
|
|
3929
|
-
E.options.hideGridMobileView ? "cl-overflow-visible" : "cl-overflow-hidden lg:cl-overflow-visible"
|
|
3933
|
+
class: D(["cl-border cl-border-grey-2 cl-flex cl-relative cl-rounded-md", [
|
|
3934
|
+
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"
|
|
3930
3935
|
]])
|
|
3931
3936
|
}, [
|
|
3932
3937
|
E.column.type === "boolean" || E.column.type === "slot" && E.column.slotType === "boolean" ? (d(), P(wl, {
|
|
3933
3938
|
key: 0,
|
|
3934
3939
|
id: "`${gridId}-${column.name}`",
|
|
3935
3940
|
disabled: E.loading,
|
|
3936
|
-
|
|
3941
|
+
"is-grid-filter": !0,
|
|
3942
|
+
class: "!cl-border-t !cl-min-h-0 !cl-rounded-lg cl-bg-white cl-font-normal",
|
|
3937
3943
|
"model-value": B.value,
|
|
3938
3944
|
"onUpdate:modelValue": H[0] || (H[0] = (U) => de(null, U))
|
|
3939
3945
|
}, {
|
|
3940
|
-
input: M(({ selectModalVisible: U, toggleSelectModalState:
|
|
3941
|
-
k(sl, { onToggleModal:
|
|
3946
|
+
input: M(({ selectModalVisible: U, toggleSelectModalState: Q }) => [
|
|
3947
|
+
k(sl, { onToggleModal: Q }, {
|
|
3942
3948
|
default: M(({ toggleModalInput: h }) => [
|
|
3943
3949
|
g("div", {
|
|
3944
3950
|
class: "!cl-h-[2rem] cl-bg-white cl-flex cl-font-normal cl-items-center cl-mb-0 cl-rounded-md cl-w-full",
|
|
3945
3951
|
onClick: h
|
|
3946
3952
|
}, [
|
|
3947
|
-
g("span",
|
|
3953
|
+
g("span", is, V(B.value === "" ? "" : B.value === "true" ? m(r)("grid.true") : m(r)("grid.false")), 1),
|
|
3948
3954
|
g("div", {
|
|
3949
|
-
class: "cl-absolute cl-flex cl-items-center cl-right-
|
|
3955
|
+
class: "cl-absolute cl-flex cl-items-center cl-right-11 cl-text-grey-3 cl-z-10",
|
|
3950
3956
|
disabled: E.loading
|
|
3951
3957
|
}, [
|
|
3952
3958
|
k(w, {
|
|
3953
3959
|
icon: U ? "ph:caret-up-bold" : "ph:caret-down-bold"
|
|
3954
3960
|
}, null, 8, ["icon"])
|
|
3955
|
-
], 8,
|
|
3956
|
-
], 8,
|
|
3961
|
+
], 8, cs)
|
|
3962
|
+
], 8, rs)
|
|
3957
3963
|
]),
|
|
3958
3964
|
_: 2
|
|
3959
3965
|
}, 1032, ["onToggleModal"])
|
|
@@ -3961,7 +3967,7 @@ const ls = {
|
|
|
3961
3967
|
default: M(({ select: U }) => [
|
|
3962
3968
|
k(ze, {
|
|
3963
3969
|
class: "!cl-py-0 cl-text-xs",
|
|
3964
|
-
onSelect: (
|
|
3970
|
+
onSelect: (Q) => U("")
|
|
3965
3971
|
}, {
|
|
3966
3972
|
default: M(() => [
|
|
3967
3973
|
se(" ")
|
|
@@ -3971,7 +3977,7 @@ const ls = {
|
|
|
3971
3977
|
k(ze, {
|
|
3972
3978
|
"is-selected": B.value === "true",
|
|
3973
3979
|
class: "!cl-py-0 cl-text-xs",
|
|
3974
|
-
onSelect: (
|
|
3980
|
+
onSelect: (Q) => U("true")
|
|
3975
3981
|
}, {
|
|
3976
3982
|
default: M(() => [
|
|
3977
3983
|
se(V(m(r)("grid.true")), 1)
|
|
@@ -3981,7 +3987,7 @@ const ls = {
|
|
|
3981
3987
|
k(ze, {
|
|
3982
3988
|
"is-selected": B.value === "false",
|
|
3983
3989
|
class: "!cl-py-0 cl-text-xs",
|
|
3984
|
-
onSelect: (
|
|
3990
|
+
onSelect: (Q) => U("false")
|
|
3985
3991
|
}, {
|
|
3986
3992
|
default: M(() => [
|
|
3987
3993
|
se(V(m(r)("grid.false")), 1)
|
|
@@ -3990,7 +3996,7 @@ const ls = {
|
|
|
3990
3996
|
}, 1032, ["is-selected", "onSelect"])
|
|
3991
3997
|
]),
|
|
3992
3998
|
_: 1
|
|
3993
|
-
}, 8, ["disabled", "model-value"])) : p.value ? (d(), b("div",
|
|
3999
|
+
}, 8, ["disabled", "model-value"])) : p.value ? (d(), b("div", us, [
|
|
3994
4000
|
k(dt, {
|
|
3995
4001
|
id: `${m(ke)}-${E.column.name}`,
|
|
3996
4002
|
"model-value": J.value,
|
|
@@ -4001,7 +4007,7 @@ const ls = {
|
|
|
4001
4007
|
"popover-placement": "bottom-start",
|
|
4002
4008
|
"onUpdate:modelValue": H[1] || (H[1] = (U) => de(null, U ?? ""))
|
|
4003
4009
|
}, null, 8, ["id", "model-value", "time-zone", "readonly", "type"])
|
|
4004
|
-
])) : s.value ? (d(), b("div",
|
|
4010
|
+
])) : s.value ? (d(), b("div", ds, [
|
|
4005
4011
|
k(ct, {
|
|
4006
4012
|
id: `${m(ke)}-${E.column.name}`,
|
|
4007
4013
|
"model-value": R.value,
|
|
@@ -4012,8 +4018,8 @@ const ls = {
|
|
|
4012
4018
|
"popover-placement": "bottom-start",
|
|
4013
4019
|
"onUpdate:modelValue": H[2] || (H[2] = (U) => O(U))
|
|
4014
4020
|
}, null, 8, ["id", "model-value", "disabled", "time-zone", "quick-date-scope"])
|
|
4015
|
-
])) : E.column.type === "number" || E.column.type === "slot" && E.column.slotType === "number" ? (d(), b("div",
|
|
4016
|
-
k(
|
|
4021
|
+
])) : E.column.type === "number" || E.column.type === "slot" && E.column.slotType === "number" ? (d(), b("div", ps, [
|
|
4022
|
+
k(xe, {
|
|
4017
4023
|
id: `${m(ke)}-${E.column.name}`,
|
|
4018
4024
|
"model-value": B.value === "" || isNaN(+B.value) ? null : +B.value,
|
|
4019
4025
|
format: y.value,
|
|
@@ -4025,11 +4031,11 @@ const ls = {
|
|
|
4025
4031
|
"onUpdate:modelValue": H[3] || (H[3] = (U) => U !== null ? A(null, U) : de(null, ""))
|
|
4026
4032
|
}, {
|
|
4027
4033
|
default: M(() => [
|
|
4028
|
-
|
|
4034
|
+
fs
|
|
4029
4035
|
]),
|
|
4030
4036
|
_: 1
|
|
4031
4037
|
}, 8, ["id", "model-value", "format", "precision", "readonly"])
|
|
4032
|
-
])) : E.column.type === "string" || E.column.type === "slot" && E.column.slotType === "string" ? (d(), b("div",
|
|
4038
|
+
])) : E.column.type === "string" || E.column.type === "slot" && E.column.slotType === "string" ? (d(), b("div", ms, [
|
|
4033
4039
|
k(Re, {
|
|
4034
4040
|
id: `${m(ke)}-${E.column.name}`,
|
|
4035
4041
|
modelValue: j.value,
|
|
@@ -4042,7 +4048,7 @@ const ls = {
|
|
|
4042
4048
|
onKeySinglePress: me
|
|
4043
4049
|
}, {
|
|
4044
4050
|
default: M(() => [
|
|
4045
|
-
|
|
4051
|
+
gs
|
|
4046
4052
|
]),
|
|
4047
4053
|
_: 1
|
|
4048
4054
|
}, 8, ["id", "modelValue", "readonly"])
|
|
@@ -4050,12 +4056,13 @@ const ls = {
|
|
|
4050
4056
|
key: 5,
|
|
4051
4057
|
id: `${m(ke)}-${E.column.name}`,
|
|
4052
4058
|
"model-value": B.value,
|
|
4053
|
-
class: "!cl-border-t !cl-min-h-0 !cl-rounded-lg cl-bg-white cl-font-normal
|
|
4059
|
+
class: "!cl-border-t !cl-max-h-52 !cl-min-h-0 !cl-rounded-lg cl-bg-white cl-font-normal",
|
|
4054
4060
|
disabled: E.loading,
|
|
4061
|
+
"is-grid-filter": !0,
|
|
4055
4062
|
"onUpdate:modelValue": H[6] || (H[6] = (U) => i.value ? A(null, U) : de(null, U))
|
|
4056
4063
|
}, {
|
|
4057
|
-
input: M(({ selectModalVisible: U, toggleSelectModalState:
|
|
4058
|
-
k(sl, { onToggleModal:
|
|
4064
|
+
input: M(({ selectModalVisible: U, toggleSelectModalState: Q }) => [
|
|
4065
|
+
k(sl, { onToggleModal: Q }, {
|
|
4059
4066
|
default: M(({ toggleModalInput: h }) => {
|
|
4060
4067
|
var z, Z;
|
|
4061
4068
|
return [
|
|
@@ -4063,16 +4070,16 @@ const ls = {
|
|
|
4063
4070
|
class: "!cl-h-[2rem] cl-bg-white cl-flex cl-font-normal cl-items-center cl-mb-0 cl-rounded-md cl-w-full",
|
|
4064
4071
|
onClick: h
|
|
4065
4072
|
}, [
|
|
4066
|
-
g("span",
|
|
4073
|
+
g("span", bs, V(m(r)(((Z = (z = E.column.listEntries) == null ? void 0 : z.find((re) => re.value.toString() === B.value)) == null ? void 0 : Z.translationKey) ?? "")), 1),
|
|
4067
4074
|
g("div", {
|
|
4068
|
-
class: "cl-absolute cl-flex cl-items-center cl-right-
|
|
4075
|
+
class: "cl-absolute cl-flex cl-items-center cl-right-11 cl-text-grey-3 cl-z-10",
|
|
4069
4076
|
disabled: E.loading
|
|
4070
4077
|
}, [
|
|
4071
4078
|
k(w, {
|
|
4072
4079
|
icon: U ? "ph:caret-up-bold" : "ph:caret-down-bold"
|
|
4073
4080
|
}, null, 8, ["icon"])
|
|
4074
|
-
], 8,
|
|
4075
|
-
], 8,
|
|
4081
|
+
], 8, hs)
|
|
4082
|
+
], 8, vs)
|
|
4076
4083
|
];
|
|
4077
4084
|
}),
|
|
4078
4085
|
_: 2
|
|
@@ -4080,29 +4087,29 @@ const ls = {
|
|
|
4080
4087
|
]),
|
|
4081
4088
|
default: M(({ select: U }) => [
|
|
4082
4089
|
k(ze, {
|
|
4083
|
-
class: "!cl-py-0
|
|
4084
|
-
onSelect: (
|
|
4090
|
+
class: "!cl-py-0",
|
|
4091
|
+
onSelect: (Q) => U("")
|
|
4085
4092
|
}, {
|
|
4086
4093
|
default: M(() => [
|
|
4087
4094
|
se(" ")
|
|
4088
4095
|
]),
|
|
4089
4096
|
_: 2
|
|
4090
4097
|
}, 1032, ["onSelect"]),
|
|
4091
|
-
(d(!0), b(K, null, le(E.column.listEntries ?? [], (
|
|
4092
|
-
key:
|
|
4093
|
-
"is-selected": B.value ===
|
|
4094
|
-
class: "
|
|
4095
|
-
onSelect: (h) => U(
|
|
4098
|
+
(d(!0), b(K, null, le(E.column.listEntries ?? [], (Q) => (d(), P(ze, {
|
|
4099
|
+
key: Q.value,
|
|
4100
|
+
"is-selected": B.value === Q.value.toString(),
|
|
4101
|
+
class: "cl-text-xs",
|
|
4102
|
+
onSelect: (h) => U(Q.value)
|
|
4096
4103
|
}, {
|
|
4097
4104
|
default: M(() => [
|
|
4098
|
-
se(V(m(r)(
|
|
4105
|
+
se(V(m(r)(Q.translationKey)), 1)
|
|
4099
4106
|
]),
|
|
4100
4107
|
_: 2
|
|
4101
4108
|
}, 1032, ["is-selected", "onSelect"]))), 128))
|
|
4102
4109
|
]),
|
|
4103
4110
|
_: 1
|
|
4104
4111
|
}, 8, ["id", "model-value", "disabled"])) : L("", !0),
|
|
4105
|
-
s.value ? L("", !0) : (d(), P(
|
|
4112
|
+
s.value ? L("", !0) : (d(), P(ss, {
|
|
4106
4113
|
key: 6,
|
|
4107
4114
|
filter: F.value,
|
|
4108
4115
|
"onUpdate:filter": H[7] || (H[7] = (U) => F.value = U),
|
|
@@ -4114,7 +4121,7 @@ const ls = {
|
|
|
4114
4121
|
], 2)) : L("", !0);
|
|
4115
4122
|
};
|
|
4116
4123
|
}
|
|
4117
|
-
}),
|
|
4124
|
+
}), ws = /* @__PURE__ */ ye(ys, [["__scopeId", "data-v-59ca84b3"]]), $s = ["onClick"], ks = { key: 1 }, Cs = ["onClick"], Ss = { class: "cl-font-normal cl-mr-1" }, Ts = /* @__PURE__ */ G({
|
|
4118
4125
|
__name: "cl-ui-grid-header",
|
|
4119
4126
|
props: {
|
|
4120
4127
|
request: {},
|
|
@@ -4172,22 +4179,22 @@ const ls = {
|
|
|
4172
4179
|
onClick: (y) => m(el)(i) && s.loading === !1 ? u(i.field) : () => {
|
|
4173
4180
|
}
|
|
4174
4181
|
}, [
|
|
4175
|
-
s.initialLoad ? (d(), P(m(yl), { key: 0 })) : (d(), b("div",
|
|
4182
|
+
s.initialLoad ? (d(), P(m(yl), { key: 0 })) : (d(), b("div", ks, [
|
|
4176
4183
|
se(V(i.caption) + " ", 1),
|
|
4177
|
-
te(k(m(
|
|
4184
|
+
te(k(m(Y), {
|
|
4178
4185
|
class: "cl-inline-block",
|
|
4179
4186
|
icon: "ph:caret-up"
|
|
4180
4187
|
}, null, 512), [
|
|
4181
4188
|
[ue, c(i, !0)]
|
|
4182
4189
|
]),
|
|
4183
|
-
te(k(m(
|
|
4190
|
+
te(k(m(Y), {
|
|
4184
4191
|
class: "cl-inline-block",
|
|
4185
4192
|
icon: "ph:caret-down"
|
|
4186
4193
|
}, null, 512), [
|
|
4187
4194
|
[ue, c(i, !1)]
|
|
4188
4195
|
])
|
|
4189
4196
|
]))
|
|
4190
|
-
], 10,
|
|
4197
|
+
], 10, $s))), 128))
|
|
4191
4198
|
], 2),
|
|
4192
4199
|
g("tr", {
|
|
4193
4200
|
class: D(["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", {
|
|
@@ -4200,11 +4207,11 @@ const ls = {
|
|
|
4200
4207
|
"cl-hidden": s.options.hideGridMobileView
|
|
4201
4208
|
}])
|
|
4202
4209
|
}, [
|
|
4203
|
-
k(m(
|
|
4210
|
+
k(m(Y), {
|
|
4204
4211
|
class: "cl-text-grey-4 hover:cl-cursor-pointer hover:cl-text-link-default",
|
|
4205
4212
|
icon: "ph:x",
|
|
4206
4213
|
size: 16,
|
|
4207
|
-
onClick: a[0] || (a[0] =
|
|
4214
|
+
onClick: a[0] || (a[0] = oe((i) => s.loading === !1 ? s.$emit("update:filterPanelOpen", !1) : void 0, ["prevent"]))
|
|
4208
4215
|
})
|
|
4209
4216
|
], 2),
|
|
4210
4217
|
(d(!0), b(K, null, le(s.columns, (i, f) => (d(), b("th", {
|
|
@@ -4228,22 +4235,22 @@ const ls = {
|
|
|
4228
4235
|
}]),
|
|
4229
4236
|
onClick: (y) => s.loading === !1 ? u(i.field) : void 0
|
|
4230
4237
|
}, [
|
|
4231
|
-
g("span",
|
|
4232
|
-
c(i, !0) ? (d(), P(m(
|
|
4238
|
+
g("span", Ss, V(m(r)("grid.sortBy")), 1),
|
|
4239
|
+
c(i, !0) ? (d(), P(m(Y), {
|
|
4233
4240
|
key: 0,
|
|
4234
4241
|
class: "cl-cursor-pointer cl-inline-block",
|
|
4235
4242
|
icon: "ph:caret-up"
|
|
4236
|
-
})) : c(i, !1) ? (d(), P(m(
|
|
4243
|
+
})) : c(i, !1) ? (d(), P(m(Y), {
|
|
4237
4244
|
key: 1,
|
|
4238
4245
|
class: "cl-cursor-pointer cl-inline-block",
|
|
4239
4246
|
icon: "ph:caret-down"
|
|
4240
|
-
})) : (d(), P(m(
|
|
4247
|
+
})) : (d(), P(m(Y), {
|
|
4241
4248
|
key: 2,
|
|
4242
4249
|
class: "cl-cursor-pointer cl-inline-block",
|
|
4243
4250
|
icon: "ph:minus"
|
|
4244
4251
|
}))
|
|
4245
|
-
], 10,
|
|
4246
|
-
k(
|
|
4252
|
+
], 10, Cs)) : L("", !0),
|
|
4253
|
+
k(ws, {
|
|
4247
4254
|
class: "cl-col-span-4 cl-min-w-[100px]",
|
|
4248
4255
|
loading: s.loading,
|
|
4249
4256
|
"initial-load": s.initialLoad,
|
|
@@ -4260,7 +4267,7 @@ const ls = {
|
|
|
4260
4267
|
], 2)
|
|
4261
4268
|
], 2));
|
|
4262
4269
|
}
|
|
4263
|
-
}),
|
|
4270
|
+
}), qs = { class: "cl-flex cl-mb-2" }, Os = { class: "cl-basis-full cl-grow" }, Ds = /* @__PURE__ */ g("span", null, null, -1), Es = /* @__PURE__ */ G({
|
|
4264
4271
|
__name: "cl-ui-grid-search",
|
|
4265
4272
|
props: /* @__PURE__ */ fe({
|
|
4266
4273
|
columns: {},
|
|
@@ -4277,12 +4284,12 @@ const ls = {
|
|
|
4277
4284
|
});
|
|
4278
4285
|
function c(s) {
|
|
4279
4286
|
s === "" && (e.value = s);
|
|
4280
|
-
const a = n.value.filters.filter((i) => i.filterMethod !== "andcontains" && i.filterOperation !==
|
|
4287
|
+
const a = n.value.filters.filter((i) => i.filterMethod !== "andcontains" && i.filterOperation !== ae.AND_CONTAINS);
|
|
4281
4288
|
for (const i of l.columns)
|
|
4282
4289
|
i.field && s && a.push({
|
|
4283
4290
|
filterOnColumn: i.field,
|
|
4284
4291
|
filterMethod: "andcontains",
|
|
4285
|
-
filterOperation:
|
|
4292
|
+
filterOperation: ae.AND_CONTAINS,
|
|
4286
4293
|
filterValue: s
|
|
4287
4294
|
});
|
|
4288
4295
|
n.value = {
|
|
@@ -4295,8 +4302,8 @@ const ls = {
|
|
|
4295
4302
|
return (s, a) => {
|
|
4296
4303
|
const i = Te("icon");
|
|
4297
4304
|
return N(s.$slots, "search", ie(pe({ searchValue: e.value, performSearch: c })), () => [
|
|
4298
|
-
g("div",
|
|
4299
|
-
g("div",
|
|
4305
|
+
g("div", qs, [
|
|
4306
|
+
g("div", Os, [
|
|
4300
4307
|
k(Re, {
|
|
4301
4308
|
modelValue: e.value,
|
|
4302
4309
|
"onUpdate:modelValue": [
|
|
@@ -4306,10 +4313,10 @@ const ls = {
|
|
|
4306
4313
|
class: "cl-box-border cl-font-light cl-p-2 cl-placeholder-grey-3 cl-pr-9 cl-text-sm",
|
|
4307
4314
|
type: "search",
|
|
4308
4315
|
placeholder: s.columns.length > 4 ? m(p)("grid.search") : m(p)("grid.searchSpecific", { columns: s.columns.map((f) => f.caption).join(", ") }),
|
|
4309
|
-
onKeypress: a[1] || (a[1] =
|
|
4316
|
+
onKeypress: a[1] || (a[1] = he((f) => c(e.value), ["enter"]))
|
|
4310
4317
|
}, {
|
|
4311
4318
|
default: M(() => [
|
|
4312
|
-
|
|
4319
|
+
Ds
|
|
4313
4320
|
]),
|
|
4314
4321
|
_: 1
|
|
4315
4322
|
}, 8, ["modelValue", "placeholder", "onUpdate:modelValue"])
|
|
@@ -4318,13 +4325,13 @@ const ls = {
|
|
|
4318
4325
|
key: 0,
|
|
4319
4326
|
class: "cl-absolute cl-cursor-pointer cl-right-1 cl-text-grey-4 cl-top-3 cl-z-10 hover:cl-text-link-light lg:cl-right-4",
|
|
4320
4327
|
icon: "ph:x-bold",
|
|
4321
|
-
onClick: a[2] || (a[2] =
|
|
4328
|
+
onClick: a[2] || (a[2] = oe((f) => c(""), ["prevent"]))
|
|
4322
4329
|
})) : L("", !0)
|
|
4323
4330
|
])
|
|
4324
4331
|
]);
|
|
4325
4332
|
};
|
|
4326
4333
|
}
|
|
4327
|
-
}),
|
|
4334
|
+
}), As = { class: "cl-fixed cl-flex cl-h-full cl-justify-end cl-right-0 cl-shadow-lg cl-top-0 cl-z-40" }, Vs = { class: "cl-bg-secondary-default cl-h-full cl-overflow-y-auto cl-overscroll-y-none cl-px-10 cl-py-20 cl-relative cl-text-grey-2 cl-w-80" }, Is = { class: "cl-mb-4 cl-text-2xl cl-text-off-white" }, Ms = { class: "cl-border-grey-3 cl-border-t cl-flex cl-flex-wrap cl-text-sm cl-w-full" }, Ns = { class: "cl-border-b cl-border-grey-2 cl-flex cl-py-2 cl-text-sm cl-w-full" }, Rs = { class: "cl-flex-1 cl-py-2" }, Us = { class: "cl-py-2 cl-w-1/4" }, zs = { class: "cl-py-2 cl-w-1/5" }, Ls = { class: "cl-flex-1 cl-py-2" }, Bs = { class: "cl-py-2 cl-w-1/4" }, Fs = { class: "cl-py-2 cl-text-off-white cl-w-1/5" }, js = { key: 1 }, Ps = /* @__PURE__ */ G({
|
|
4328
4335
|
inheritAttrs: !1,
|
|
4329
4336
|
__name: "cl-ui-grid-view-manager",
|
|
4330
4337
|
props: {
|
|
@@ -4346,11 +4353,11 @@ const ls = {
|
|
|
4346
4353
|
c(i, s, f), e("update:columns", i);
|
|
4347
4354
|
}
|
|
4348
4355
|
return (s, a) => (d(), b(K, null, [
|
|
4349
|
-
k($e,
|
|
4356
|
+
k($e, _(s.$attrs, {
|
|
4350
4357
|
class: "cl-w-full",
|
|
4351
4358
|
size: "small",
|
|
4352
4359
|
disabled: s.loading,
|
|
4353
|
-
onClick: a[0] || (a[0] =
|
|
4360
|
+
onClick: a[0] || (a[0] = oe((i) => n.value = !0, ["prevent"]))
|
|
4354
4361
|
}), {
|
|
4355
4362
|
default: M(() => [
|
|
4356
4363
|
se(V(m(r)("grid.manageView")), 1)
|
|
@@ -4360,47 +4367,47 @@ const ls = {
|
|
|
4360
4367
|
(d(), P(kl, { to: "body" }, [
|
|
4361
4368
|
k(Ie, { name: "slide-left" }, {
|
|
4362
4369
|
default: M(() => [
|
|
4363
|
-
te(g("div",
|
|
4364
|
-
g("div",
|
|
4365
|
-
k(m(
|
|
4370
|
+
te(g("div", As, [
|
|
4371
|
+
g("div", Vs, [
|
|
4372
|
+
k(m(Y), {
|
|
4366
4373
|
class: "cl-absolute cl-cursor-pointer cl-right-3 cl-text-off-white cl-top-3",
|
|
4367
4374
|
icon: "ph:x",
|
|
4368
4375
|
size: 16,
|
|
4369
4376
|
onClick: a[1] || (a[1] = (i) => n.value = !1)
|
|
4370
4377
|
}),
|
|
4371
|
-
g("h3",
|
|
4372
|
-
g("ul",
|
|
4373
|
-
g("li",
|
|
4374
|
-
g("strong",
|
|
4375
|
-
g("strong",
|
|
4376
|
-
g("strong",
|
|
4378
|
+
g("h3", Is, V(m(r)("grid.manageView")), 1),
|
|
4379
|
+
g("ul", Ms, [
|
|
4380
|
+
g("li", Ns, [
|
|
4381
|
+
g("strong", Rs, V(m(r)("grid.column")), 1),
|
|
4382
|
+
g("strong", Us, V(m(r)("grid.visible")), 1),
|
|
4383
|
+
g("strong", zs, V(m(r)("grid.order")), 1)
|
|
4377
4384
|
]),
|
|
4378
4385
|
(d(!0), b(K, null, le(s.columns, (i, f) => (d(), b("li", {
|
|
4379
4386
|
key: f,
|
|
4380
4387
|
class: "cl-border-b cl-border-grey-2 cl-flex cl-py-2 cl-text-sm cl-w-full"
|
|
4381
4388
|
}, [
|
|
4382
|
-
g("div",
|
|
4383
|
-
g("div",
|
|
4389
|
+
g("div", Ls, V(i.caption), 1),
|
|
4390
|
+
g("div", Bs, [
|
|
4384
4391
|
k(dl, {
|
|
4385
4392
|
"model-value": i.visible === void 0 || i.visible === !0,
|
|
4386
4393
|
"onUpdate:modelValue": (y) => u(y, i)
|
|
4387
4394
|
}, null, 8, ["model-value", "onUpdate:modelValue"])
|
|
4388
4395
|
]),
|
|
4389
|
-
g("div",
|
|
4396
|
+
g("div", Fs, [
|
|
4390
4397
|
i.visible === void 0 || i.visible === !0 ? (d(), b(K, { key: 0 }, [
|
|
4391
|
-
f !== 0 ? (d(), P(m(
|
|
4398
|
+
f !== 0 ? (d(), P(m(Y), {
|
|
4392
4399
|
key: 0,
|
|
4393
4400
|
class: "cl-cursor-pointer cl-inline-block cl-mr-2",
|
|
4394
4401
|
icon: "ph:arrow-left",
|
|
4395
4402
|
onClick: (y) => p(f, "down")
|
|
4396
4403
|
}, null, 8, ["onClick"])) : L("", !0),
|
|
4397
|
-
f !== s.columns.length - 1 ? (d(), P(m(
|
|
4404
|
+
f !== s.columns.length - 1 ? (d(), P(m(Y), {
|
|
4398
4405
|
key: 1,
|
|
4399
4406
|
class: "cl-cursor-pointer cl-inline-block",
|
|
4400
4407
|
icon: "ph:arrow-right",
|
|
4401
4408
|
onClick: (y) => p(f, "up")
|
|
4402
4409
|
}, null, 8, ["onClick"])) : L("", !0)
|
|
4403
|
-
], 64)) : (d(), b("em",
|
|
4410
|
+
], 64)) : (d(), b("em", js, V(m(r)("grid.hidden")), 1))
|
|
4404
4411
|
])
|
|
4405
4412
|
]))), 128))
|
|
4406
4413
|
])
|
|
@@ -4414,10 +4421,10 @@ const ls = {
|
|
|
4414
4421
|
]))
|
|
4415
4422
|
], 64));
|
|
4416
4423
|
}
|
|
4417
|
-
}),
|
|
4424
|
+
}), Gs = { class: "cl-relative cl-w-full grid-wrapper lg:cl-min-h-fit" }, Hs = {
|
|
4418
4425
|
key: 0,
|
|
4419
4426
|
class: "cl-absolute cl-flex cl-items-center cl-justify-center cl-min-h-full cl-p-28 cl-pt-0 cl-w-full"
|
|
4420
|
-
},
|
|
4427
|
+
}, Zs = { class: "cl-overflow-x-auto cl-overscroll-x-none cl-pt-1" }, Ws = /* @__PURE__ */ G({
|
|
4421
4428
|
__name: "cl-ui-grid",
|
|
4422
4429
|
props: {
|
|
4423
4430
|
columns: {},
|
|
@@ -4488,21 +4495,21 @@ const ls = {
|
|
|
4488
4495
|
})), B = $({
|
|
4489
4496
|
get() {
|
|
4490
4497
|
const A = ve(f.value);
|
|
4491
|
-
return A.filters = A.filters.filter((O) => O.filterMethod !== "andcontains" && O.filterOperation !==
|
|
4498
|
+
return A.filters = A.filters.filter((O) => O.filterMethod !== "andcontains" && O.filterOperation !== ae.AND_CONTAINS), A;
|
|
4492
4499
|
},
|
|
4493
4500
|
set(A) {
|
|
4494
4501
|
const O = [
|
|
4495
4502
|
...A.filters,
|
|
4496
|
-
...f.value.filters.filter((j) => j.filterMethod === "andcontains" || j.filterOperation ===
|
|
4503
|
+
...f.value.filters.filter((j) => j.filterMethod === "andcontains" || j.filterOperation === ae.AND_CONTAINS)
|
|
4497
4504
|
];
|
|
4498
4505
|
f.value = {
|
|
4499
4506
|
...A,
|
|
4500
4507
|
filters: O
|
|
4501
4508
|
};
|
|
4502
4509
|
}
|
|
4503
|
-
}), J = I(((de = l.request.filters.find((A) => A.filterMethod === "andcontains" || A.filterOperation ===
|
|
4510
|
+
}), J = I(((de = l.request.filters.find((A) => A.filterMethod === "andcontains" || A.filterOperation === ae.AND_CONTAINS)) == null ? void 0 : de.filterValue) ?? ""), R = $(() => l.columns.filter((A) => (A.type === "string" || A.type === "slot" && A.slotType === "string") && A.searchable)), x = I(!0);
|
|
4504
4511
|
return X(() => l.loading, () => {
|
|
4505
|
-
|
|
4512
|
+
x.value = !1;
|
|
4506
4513
|
}, {
|
|
4507
4514
|
once: !0
|
|
4508
4515
|
}), We(() => {
|
|
@@ -4513,11 +4520,11 @@ const ls = {
|
|
|
4513
4520
|
var O;
|
|
4514
4521
|
((O = l.data) == null ? void 0 : O.results.length) === 0 && f.value.pageNumber > 1 && f.value.pageNumber--;
|
|
4515
4522
|
}
|
|
4516
|
-
}), (A, O) => (d(), b("div",
|
|
4517
|
-
|
|
4523
|
+
}), (A, O) => (d(), b("div", Gs, [
|
|
4524
|
+
x.value && R.value.length > 0 ? (d(), P(m(Sl), {
|
|
4518
4525
|
key: 0,
|
|
4519
4526
|
class: "cl-h-[39px] cl-mb-2"
|
|
4520
|
-
})) : R.value.length > 0 ? (d(), P(
|
|
4527
|
+
})) : R.value.length > 0 ? (d(), P(Es, {
|
|
4521
4528
|
key: 1,
|
|
4522
4529
|
"search-value": J.value,
|
|
4523
4530
|
"onUpdate:searchValue": O[0] || (O[0] = (j) => J.value = j),
|
|
@@ -4532,8 +4539,8 @@ const ls = {
|
|
|
4532
4539
|
}, 8, ["search-value", "request", "columns"])) : L("", !0),
|
|
4533
4540
|
k(Ie, { name: "fade" }, {
|
|
4534
4541
|
default: M(() => [
|
|
4535
|
-
A.loading &&
|
|
4536
|
-
k(
|
|
4542
|
+
A.loading && x.value === !1 ? (d(), b("div", Hs, [
|
|
4543
|
+
k(_e, { class: "after:!cl-h-20 after:!cl-w-20 cl-h-20 cl-w-20" })
|
|
4537
4544
|
])) : L("", !0)
|
|
4538
4545
|
]),
|
|
4539
4546
|
_: 1
|
|
@@ -4547,14 +4554,14 @@ const ls = {
|
|
|
4547
4554
|
options: q.value,
|
|
4548
4555
|
request: f.value,
|
|
4549
4556
|
loading: A.loading,
|
|
4550
|
-
"initial-load":
|
|
4557
|
+
"initial-load": x.value,
|
|
4551
4558
|
onClearFilters: y
|
|
4552
4559
|
}, {
|
|
4553
4560
|
"additional-grid-actions": M((j) => [
|
|
4554
4561
|
N(A.$slots, "additional-grid-actions", ie(pe(j)))
|
|
4555
4562
|
]),
|
|
4556
4563
|
"view-manager": M(() => [
|
|
4557
|
-
k(
|
|
4564
|
+
k(Ps, {
|
|
4558
4565
|
columns: u.value,
|
|
4559
4566
|
"onUpdate:columns": O[2] || (O[2] = (j) => u.value = j),
|
|
4560
4567
|
loading: A.loading
|
|
@@ -4562,10 +4569,10 @@ const ls = {
|
|
|
4562
4569
|
]),
|
|
4563
4570
|
_: 3
|
|
4564
4571
|
}, 8, ["edit-mode", "filter-panel-open", "columns", "options", "request", "loading", "initial-load"]),
|
|
4565
|
-
g("div",
|
|
4572
|
+
g("div", Zs, [
|
|
4566
4573
|
g("table", {
|
|
4567
4574
|
class: D(["cl-delay-75 cl-min-h-[276px] cl-overflow-x-auto cl-overscroll-x-none cl-text-left cl-transition-opacity cl-w-full", {
|
|
4568
|
-
"cl-opacity-40 cl-pointer-events-none": A.loading &&
|
|
4575
|
+
"cl-opacity-40 cl-pointer-events-none": A.loading && x.value === !1
|
|
4569
4576
|
}])
|
|
4570
4577
|
}, [
|
|
4571
4578
|
g("colgroup", {
|
|
@@ -4575,11 +4582,11 @@ const ls = {
|
|
|
4575
4582
|
}, [
|
|
4576
4583
|
(d(!0), b(K, null, le(p.value, (j, me) => (d(), b("col", {
|
|
4577
4584
|
key: me,
|
|
4578
|
-
style:
|
|
4585
|
+
style: Ql(i(j.name)),
|
|
4579
4586
|
span: 1
|
|
4580
4587
|
}, null, 4))), 128))
|
|
4581
4588
|
], 2),
|
|
4582
|
-
k(
|
|
4589
|
+
k(Ts, {
|
|
4583
4590
|
request: B.value,
|
|
4584
4591
|
"onUpdate:request": O[5] || (O[5] = (j) => B.value = j),
|
|
4585
4592
|
"filter-panel-open": F.value,
|
|
@@ -4587,7 +4594,7 @@ const ls = {
|
|
|
4587
4594
|
columns: p.value,
|
|
4588
4595
|
options: q.value,
|
|
4589
4596
|
loading: A.loading,
|
|
4590
|
-
"initial-load":
|
|
4597
|
+
"initial-load": x.value,
|
|
4591
4598
|
"time-zone": A.timeZone,
|
|
4592
4599
|
"header-display-timezone": n.value,
|
|
4593
4600
|
onPerformDataRequest: O[7] || (O[7] = (j) => e("data-request"))
|
|
@@ -4598,7 +4605,7 @@ const ls = {
|
|
|
4598
4605
|
data: v.value,
|
|
4599
4606
|
"time-zone": A.timeZone,
|
|
4600
4607
|
loading: A.loading,
|
|
4601
|
-
"initial-load":
|
|
4608
|
+
"initial-load": x.value,
|
|
4602
4609
|
"search-value": J.value,
|
|
4603
4610
|
options: q.value,
|
|
4604
4611
|
"edit-mode": C.value,
|
|
@@ -4610,7 +4617,7 @@ const ls = {
|
|
|
4610
4617
|
le(A.$slots, (j, me) => ({
|
|
4611
4618
|
name: me,
|
|
4612
4619
|
fn: M((ge) => [
|
|
4613
|
-
N(A.$slots, me,
|
|
4620
|
+
N(A.$slots, me, _(ge, { disabled: A.loading }))
|
|
4614
4621
|
])
|
|
4615
4622
|
}))
|
|
4616
4623
|
]), 1032, ["columns", "request", "data", "time-zone", "loading", "initial-load", "search-value", "options", "edit-mode"])
|
|
@@ -4620,7 +4627,7 @@ const ls = {
|
|
|
4620
4627
|
key: 2,
|
|
4621
4628
|
request: f.value,
|
|
4622
4629
|
loading: A.loading,
|
|
4623
|
-
"initial-load":
|
|
4630
|
+
"initial-load": x.value,
|
|
4624
4631
|
"show-unsaved-changes-warning": C.value && q.value.disableUnsavedChangesWarning === !1,
|
|
4625
4632
|
data: A.data,
|
|
4626
4633
|
"onUpdate:request": O[11] || (O[11] = (j) => {
|
|
@@ -4629,7 +4636,7 @@ const ls = {
|
|
|
4629
4636
|
}, null, 8, ["request", "loading", "initial-load", "show-unsaved-changes-warning", "data"])) : L("", !0)
|
|
4630
4637
|
]));
|
|
4631
4638
|
}
|
|
4632
|
-
}),
|
|
4639
|
+
}), Ks = { class: "cl-relative" }, Qs = ["id"], _s = /* @__PURE__ */ G({
|
|
4633
4640
|
inheritAttrs: !1,
|
|
4634
4641
|
__name: "cl-ui-grid-lite",
|
|
4635
4642
|
props: /* @__PURE__ */ fe({
|
|
@@ -4665,8 +4672,8 @@ const ls = {
|
|
|
4665
4672
|
f.value = !1;
|
|
4666
4673
|
}, {
|
|
4667
4674
|
once: !0
|
|
4668
|
-
}), (y, T) => (d(), b("div",
|
|
4669
|
-
g("div",
|
|
4675
|
+
}), (y, T) => (d(), b("div", Ks, [
|
|
4676
|
+
g("div", _({ id: m(c) }, n, {
|
|
4670
4677
|
class: ["cl-border cl-border-off-white cl-grid cl-overflow-hidden cl-rounded cl-text-base cl-w-full", {
|
|
4671
4678
|
"cl-opacity-60": y.loading,
|
|
4672
4679
|
"cl-text-xs": i.value.smallGridText
|
|
@@ -4674,7 +4681,7 @@ const ls = {
|
|
|
4674
4681
|
}), [
|
|
4675
4682
|
g("div", {
|
|
4676
4683
|
class: "0 cl-grid cl-min-w-full cl-overflow-auto",
|
|
4677
|
-
style:
|
|
4684
|
+
style: Ql(s())
|
|
4678
4685
|
}, [
|
|
4679
4686
|
k(m(mt), {
|
|
4680
4687
|
request: e.value,
|
|
@@ -4713,7 +4720,7 @@ const ls = {
|
|
|
4713
4720
|
"is-small-grid": i.value.smallGridText
|
|
4714
4721
|
}, null, 8, ["request", "inert", "grid-id", "data", "initial-load", "is-small-grid"])) : L("", !0)
|
|
4715
4722
|
], 16, Qs),
|
|
4716
|
-
y.loading && !f.value ? (d(), P(
|
|
4723
|
+
y.loading && !f.value ? (d(), P(_e, {
|
|
4717
4724
|
key: 0,
|
|
4718
4725
|
class: "after:!cl-h-14 after:!cl-w-14 cl-absolute cl-left-1/2 cl-top-20"
|
|
4719
4726
|
})) : L("", !0)
|
|
@@ -4724,7 +4731,7 @@ function vl(o) {
|
|
|
4724
4731
|
const t = o.type !== "slot" || o.slotType !== void 0 && o.field !== void 0, l = o.sortable ?? !0;
|
|
4725
4732
|
return t && l;
|
|
4726
4733
|
}
|
|
4727
|
-
const Ys = { class: "cl-col-[1_/_-1] cl-grid cl-grid-cols-subgrid" },
|
|
4734
|
+
const Ys = { class: "cl-col-[1_/_-1] cl-grid cl-grid-cols-subgrid" }, xs = ["id", "onClick"], mt = /* @__PURE__ */ G({
|
|
4728
4735
|
inheritAttrs: !1,
|
|
4729
4736
|
__name: "cl-ui-grid-lite-header",
|
|
4730
4737
|
props: /* @__PURE__ */ fe({
|
|
@@ -4755,7 +4762,7 @@ const Ys = { class: "cl-col-[1_/_-1] cl-grid cl-grid-cols-subgrid" }, Js = ["id"
|
|
|
4755
4762
|
return (n, c) => {
|
|
4756
4763
|
const u = Te("icon");
|
|
4757
4764
|
return d(), b("div", Ys, [
|
|
4758
|
-
(d(!0), b(K, null, le(n.columns, (p, s) => (d(), b("div",
|
|
4765
|
+
(d(!0), b(K, null, le(n.columns, (p, s) => (d(), b("div", _(n.$attrs, {
|
|
4759
4766
|
id: `${n.gridId}-header-${p.name}`,
|
|
4760
4767
|
key: p.name,
|
|
4761
4768
|
class: ["cl-border-grey-1 cl-flex cl-font-bold cl-gap-1 cl-items-center cl-justify-between cl-p-2", [
|
|
@@ -4797,7 +4804,7 @@ const Ys = { class: "cl-col-[1_/_-1] cl-grid cl-grid-cols-subgrid" }, Js = ["id"
|
|
|
4797
4804
|
], 2), [
|
|
4798
4805
|
[ue, m(vl)(p)]
|
|
4799
4806
|
])
|
|
4800
|
-
], 16,
|
|
4807
|
+
], 16, xs))), 128))
|
|
4801
4808
|
]);
|
|
4802
4809
|
};
|
|
4803
4810
|
}
|
|
@@ -4820,7 +4827,7 @@ const Ys = { class: "cl-col-[1_/_-1] cl-grid cl-grid-cols-subgrid" }, Js = ["id"
|
|
|
4820
4827
|
}, " ", 2))), 128))
|
|
4821
4828
|
]))), 128));
|
|
4822
4829
|
}
|
|
4823
|
-
}),
|
|
4830
|
+
}), Js = { class: "cl-col-[1_/_-1] cl-grid cl-grid-cols-subgrid" }, vt = /* @__PURE__ */ G({
|
|
4824
4831
|
inheritAttrs: !1,
|
|
4825
4832
|
__name: "cl-ui-grid-lite-row",
|
|
4826
4833
|
props: {
|
|
@@ -4831,8 +4838,8 @@ const Ys = { class: "cl-col-[1_/_-1] cl-grid cl-grid-cols-subgrid" }, Js = ["id"
|
|
|
4831
4838
|
gridId: {}
|
|
4832
4839
|
},
|
|
4833
4840
|
setup(o) {
|
|
4834
|
-
return (t, l) => (d(), b("div",
|
|
4835
|
-
(d(!0), b(K, null, le(t.columns, (e, r) => (d(), P(m(ht),
|
|
4841
|
+
return (t, l) => (d(), b("div", Js, [
|
|
4842
|
+
(d(!0), b(K, null, le(t.columns, (e, r) => (d(), P(m(ht), _(t.$attrs, {
|
|
4836
4843
|
id: `${t.gridId}-c${r}`,
|
|
4837
4844
|
key: e.name,
|
|
4838
4845
|
data: t.row,
|
|
@@ -4852,7 +4859,7 @@ const Ys = { class: "cl-col-[1_/_-1] cl-grid cl-grid-cols-subgrid" }, Js = ["id"
|
|
|
4852
4859
|
]), 1040, ["id", "data", "time-zone", "column", "is-small-grid", "class"]))), 128))
|
|
4853
4860
|
]));
|
|
4854
4861
|
}
|
|
4855
|
-
}),
|
|
4862
|
+
}), Xs = { class: "cl-col-[1_/_-1] cl-grid cl-grid-cols-subgrid" }, bt = /* @__PURE__ */ G({
|
|
4856
4863
|
__name: "cl-ui-grid-lite-body",
|
|
4857
4864
|
props: {
|
|
4858
4865
|
columns: {},
|
|
@@ -4867,7 +4874,7 @@ const Ys = { class: "cl-col-[1_/_-1] cl-grid cl-grid-cols-subgrid" }, Js = ["id"
|
|
|
4867
4874
|
const t = o, { t: l } = ce(), e = $(() => t.options.smallGridText ?? !1), r = $(() => t.options.alternatingRows ?? !1);
|
|
4868
4875
|
return (n, c) => {
|
|
4869
4876
|
var u;
|
|
4870
|
-
return d(), b("div",
|
|
4877
|
+
return d(), b("div", Xs, [
|
|
4871
4878
|
n.initialLoad && n.pageSize > 0 ? (d(), P(gt, {
|
|
4872
4879
|
key: 0,
|
|
4873
4880
|
"page-size": n.pageSize,
|
|
@@ -4906,10 +4913,10 @@ const Ys = { class: "cl-col-[1_/_-1] cl-grid cl-grid-cols-subgrid" }, Js = ["id"
|
|
|
4906
4913
|
]);
|
|
4907
4914
|
};
|
|
4908
4915
|
}
|
|
4909
|
-
}),
|
|
4916
|
+
}), er = ["id"], lr = ["id"], tr = ["id"], or = {
|
|
4910
4917
|
key: 5,
|
|
4911
4918
|
class: "cl-inline-block cl-whitespace-nowrap"
|
|
4912
|
-
},
|
|
4919
|
+
}, ar = ["id", "innerHTML"], ht = /* @__PURE__ */ G({
|
|
4913
4920
|
inheritAttrs: !1,
|
|
4914
4921
|
__name: "cl-ui-grid-lite-cell",
|
|
4915
4922
|
props: {
|
|
@@ -4973,12 +4980,12 @@ const Ys = { class: "cl-col-[1_/_-1] cl-grid cl-grid-cols-subgrid" }, Js = ["id"
|
|
|
4973
4980
|
}
|
|
4974
4981
|
return (a, i) => {
|
|
4975
4982
|
var f;
|
|
4976
|
-
return d(), b("div",
|
|
4983
|
+
return d(), b("div", _({
|
|
4977
4984
|
class: [
|
|
4978
4985
|
a.isSmallGrid ? "cl-px-1 cl-py-1.5 cl-text-xs" : "cl-p-2 cl-text-sm"
|
|
4979
4986
|
]
|
|
4980
4987
|
}, e), [
|
|
4981
|
-
a.$slots[a.column.name] ? N(a.$slots, a.column.name, ie(
|
|
4988
|
+
a.$slots[a.column.name] ? N(a.$slots, a.column.name, ie(_({ key: 0 }, { column: a.column, data: a.data }))) : a.column.type === "boolean" && a.column.field !== void 0 ? (d(), P(dl, {
|
|
4982
4989
|
key: 1,
|
|
4983
4990
|
id: m(l),
|
|
4984
4991
|
class: "disabled:checked:cl-bg-primary-light disabled:checked:cl-border-primary-light",
|
|
@@ -4995,37 +5002,37 @@ const Ys = { class: "cl-col-[1_/_-1] cl-grid cl-grid-cols-subgrid" }, Js = ["id"
|
|
|
4995
5002
|
], 64)) : (d(), b(K, { key: 2 }, [
|
|
4996
5003
|
se(V(u(a.data[a.column.field], m(ne).DATETIME)), 1)
|
|
4997
5004
|
], 64))
|
|
4998
|
-
], 8,
|
|
5005
|
+
], 8, er)) : a.column.type === "list" && a.column.field !== void 0 && a.column.listEntries !== void 0 ? (d(), b("span", {
|
|
4999
5006
|
key: 3,
|
|
5000
5007
|
id: m(l),
|
|
5001
5008
|
class: "cl-inline-block cl-whitespace-nowrap"
|
|
5002
|
-
}, V(m(n)(((f = a.column.listEntries.find((y) => y.value === a.data[a.column.field])) == null ? void 0 : f.translationKey) ?? "")), 9,
|
|
5009
|
+
}, V(m(n)(((f = a.column.listEntries.find((y) => y.value === a.data[a.column.field])) == null ? void 0 : f.translationKey) ?? "")), 9, lr)) : a.column.type === "number" && a.column.field !== void 0 ? (d(), b("span", {
|
|
5003
5010
|
key: 4,
|
|
5004
5011
|
id: m(l),
|
|
5005
5012
|
class: "cl-inline-block cl-whitespace-nowrap"
|
|
5006
|
-
}, V(s(a.data[a.column.field], m(c))), 9,
|
|
5013
|
+
}, V(s(a.data[a.column.field], m(c))), 9, tr)) : a.column.field !== void 0 ? (d(), b("span", or, [
|
|
5007
5014
|
g("span", {
|
|
5008
5015
|
id: m(l),
|
|
5009
5016
|
innerHTML: p()
|
|
5010
|
-
}, null, 8,
|
|
5017
|
+
}, null, 8, ar)
|
|
5011
5018
|
])) : L("", !0)
|
|
5012
5019
|
], 16);
|
|
5013
5020
|
};
|
|
5014
5021
|
}
|
|
5015
|
-
}),
|
|
5022
|
+
}), nr = {}, sr = { class: "cl-border cl-border-off-white cl-border-t cl-flex cl-justify-between cl-p-2" }, rr = /* @__PURE__ */ g("div", { class: "cl-flex cl-gap-2 cl-w-full" }, [
|
|
5016
5023
|
/* @__PURE__ */ g("p", { class: "cl-animate-pulse cl-basis-3/12 cl-bg-grey-1 cl-leading-none cl-rounded-full" }, " "),
|
|
5017
5024
|
/* @__PURE__ */ g("p", { class: "cl-animate-pulse cl-basis-1/12 cl-bg-grey-1 cl-leading-none cl-rounded-full" }, " ")
|
|
5018
|
-
], -1),
|
|
5019
|
-
|
|
5020
|
-
|
|
5025
|
+
], -1), ir = /* @__PURE__ */ g("p", { class: "cl-animate-pulse cl-basis-1/12 cl-bg-grey-1 cl-leading-none cl-rounded-full" }, " ", -1), cr = [
|
|
5026
|
+
rr,
|
|
5027
|
+
ir
|
|
5021
5028
|
];
|
|
5022
|
-
function
|
|
5023
|
-
return d(), b("div",
|
|
5029
|
+
function ur(o, t) {
|
|
5030
|
+
return d(), b("div", sr, cr);
|
|
5024
5031
|
}
|
|
5025
|
-
const yt = /* @__PURE__ */
|
|
5032
|
+
const yt = /* @__PURE__ */ ye(nr, [["render", ur]]), dr = { class: "cl-flex cl-gap-4" }, pr = { class: "cl-mr-2" }, fr = {
|
|
5026
5033
|
key: 0,
|
|
5027
5034
|
class: "cl-flex cl-gap-0.5"
|
|
5028
|
-
},
|
|
5035
|
+
}, mr = { class: "cl-mr-1 cl-w-full" }, gr = ["id", "onClick"], vr = { class: "cl-flex cl-gap-1 cl-items-center" }, br = ["id"], hr = ["id"], yr = ["id", "onClick"], wr = ["id"], $r = ["id"], wt = /* @__PURE__ */ G({
|
|
5029
5036
|
__name: "cl-ui-grid-lite-footer",
|
|
5030
5037
|
props: /* @__PURE__ */ fe({
|
|
5031
5038
|
gridId: {},
|
|
@@ -5076,13 +5083,13 @@ const yt = /* @__PURE__ */ he(sr, [["render", dr]]), pr = { class: "cl-flex cl-g
|
|
|
5076
5083
|
a.isSmallGrid ? "cl-px-1 cl-py-1.5 cl-text-xs" : "cl-p-2 cl-text-sm"
|
|
5077
5084
|
]])
|
|
5078
5085
|
}, [
|
|
5079
|
-
g("div",
|
|
5086
|
+
g("div", dr, [
|
|
5080
5087
|
g("div", null, [
|
|
5081
|
-
g("span",
|
|
5088
|
+
g("span", pr, V(m(e)("grid.page")), 1),
|
|
5082
5089
|
g("span", null, V(m(we)(l.value.pageNumber)) + " / " + V(m(we)(r.value)), 1)
|
|
5083
5090
|
]),
|
|
5084
|
-
p.value.length ? (d(), b("ul",
|
|
5085
|
-
g("li",
|
|
5091
|
+
p.value.length ? (d(), b("ul", fr, [
|
|
5092
|
+
g("li", mr, V(m(e)("grid.pageSize")), 1),
|
|
5086
5093
|
(d(!0), b(K, null, le(p.value, (T, v) => (d(), b("li", {
|
|
5087
5094
|
id: `${a.gridId}-page-size-${T}`,
|
|
5088
5095
|
key: v,
|
|
@@ -5091,11 +5098,11 @@ const yt = /* @__PURE__ */ he(sr, [["render", dr]]), pr = { class: "cl-flex cl-g
|
|
|
5091
5098
|
"cl-border-b-transparent hover:cl-border-b-link-lighter hover:cl-text-link-light cl-cursor-pointer": l.value.pageSize !== T
|
|
5092
5099
|
}]),
|
|
5093
5100
|
onClick: (S) => l.value.pageSize !== T ? s(T) : null
|
|
5094
|
-
}, V(m(we)(T)), 11,
|
|
5101
|
+
}, V(m(we)(T)), 11, gr))), 128))
|
|
5095
5102
|
])) : L("", !0)
|
|
5096
5103
|
]),
|
|
5097
5104
|
g("div", null, [
|
|
5098
|
-
g("ul",
|
|
5105
|
+
g("ul", vr, [
|
|
5099
5106
|
g("li", {
|
|
5100
5107
|
id: `${a.gridId}-page-first`,
|
|
5101
5108
|
class: D({
|
|
@@ -5108,7 +5115,7 @@ const yt = /* @__PURE__ */ he(sr, [["render", dr]]), pr = { class: "cl-flex cl-g
|
|
|
5108
5115
|
icon: "ph:caret-double-left-bold",
|
|
5109
5116
|
size: 14
|
|
5110
5117
|
})
|
|
5111
|
-
], 10,
|
|
5118
|
+
], 10, br),
|
|
5112
5119
|
g("li", {
|
|
5113
5120
|
id: `${a.gridId}-page-previous`,
|
|
5114
5121
|
class: D({
|
|
@@ -5121,7 +5128,7 @@ const yt = /* @__PURE__ */ he(sr, [["render", dr]]), pr = { class: "cl-flex cl-g
|
|
|
5121
5128
|
icon: "ph:caret-left-bold",
|
|
5122
5129
|
size: 14
|
|
5123
5130
|
})
|
|
5124
|
-
], 10,
|
|
5131
|
+
], 10, hr),
|
|
5125
5132
|
(d(!0), b(K, null, le(n.value, (T, v) => (d(), b("li", {
|
|
5126
5133
|
id: `${a.gridId}-page-${T}`,
|
|
5127
5134
|
key: v,
|
|
@@ -5130,7 +5137,7 @@ const yt = /* @__PURE__ */ he(sr, [["render", dr]]), pr = { class: "cl-flex cl-g
|
|
|
5130
5137
|
"cl-cursor-pointer ": l.value.pageNumber !== T
|
|
5131
5138
|
}]),
|
|
5132
5139
|
onClick: (S) => l.value.pageNumber !== T ? c(T) : null
|
|
5133
|
-
}, V(m(we)(T)), 11,
|
|
5140
|
+
}, V(m(we)(T)), 11, yr))), 128)),
|
|
5134
5141
|
g("li", {
|
|
5135
5142
|
id: `${a.gridId}-page-next`,
|
|
5136
5143
|
class: D({
|
|
@@ -5143,7 +5150,7 @@ const yt = /* @__PURE__ */ he(sr, [["render", dr]]), pr = { class: "cl-flex cl-g
|
|
|
5143
5150
|
icon: "ph:caret-right-bold",
|
|
5144
5151
|
size: 14
|
|
5145
5152
|
})
|
|
5146
|
-
], 10,
|
|
5153
|
+
], 10, wr),
|
|
5147
5154
|
g("li", {
|
|
5148
5155
|
id: `${a.gridId}-page-last`,
|
|
5149
5156
|
class: D({
|
|
@@ -5156,13 +5163,13 @@ const yt = /* @__PURE__ */ he(sr, [["render", dr]]), pr = { class: "cl-flex cl-g
|
|
|
5156
5163
|
icon: "ph:caret-double-right-bold",
|
|
5157
5164
|
size: 14
|
|
5158
5165
|
})
|
|
5159
|
-
], 10,
|
|
5166
|
+
], 10, $r)
|
|
5160
5167
|
])
|
|
5161
5168
|
])
|
|
5162
5169
|
], 2)) : L("", !0);
|
|
5163
5170
|
};
|
|
5164
5171
|
}
|
|
5165
|
-
}),
|
|
5172
|
+
}), kr = { class: "cl-absolute cl-bg-secondary-default cl-flex cl-h-20 cl-items-center cl-justify-between cl-left-0 cl-top-0 cl-w-full cl-z-40" }, Cr = /* @__PURE__ */ G({
|
|
5166
5173
|
__name: "cl-ui-header",
|
|
5167
5174
|
props: {
|
|
5168
5175
|
isOpen: { type: Boolean }
|
|
@@ -5170,9 +5177,9 @@ const yt = /* @__PURE__ */ he(sr, [["render", dr]]), pr = { class: "cl-flex cl-g
|
|
|
5170
5177
|
emits: ["open-click"],
|
|
5171
5178
|
setup(o, { emit: t }) {
|
|
5172
5179
|
const l = o, e = t, r = I();
|
|
5173
|
-
return
|
|
5180
|
+
return Qe(r, () => {
|
|
5174
5181
|
(l.isOpen ?? !1) && e("open-click");
|
|
5175
|
-
}), (n, c) => (d(), b("header",
|
|
5182
|
+
}), (n, c) => (d(), b("header", kr, [
|
|
5176
5183
|
N(n.$slots, "logo"),
|
|
5177
5184
|
g("div", {
|
|
5178
5185
|
ref_key: "headerMenuElement",
|
|
@@ -5185,15 +5192,15 @@ const yt = /* @__PURE__ */ he(sr, [["render", dr]]), pr = { class: "cl-flex cl-g
|
|
|
5185
5192
|
], 512)
|
|
5186
5193
|
]));
|
|
5187
5194
|
}
|
|
5188
|
-
}),
|
|
5195
|
+
}), Sr = { class: "cl-bg-transparent cl-flex cl-items-center cl-select-none hover:cl-bg-opacity-10 hover:cl-bg-white md:cl-min-w-[320px]" }, Tr = ["src"], qr = {
|
|
5189
5196
|
key: 0,
|
|
5190
5197
|
id: "cl-ui-header-menu-username",
|
|
5191
5198
|
class: "cl-text-ellipsis cl-whitespace-nowrap"
|
|
5192
|
-
},
|
|
5199
|
+
}, Or = {
|
|
5193
5200
|
key: 1,
|
|
5194
5201
|
id: "cl-ui-header-menu-group",
|
|
5195
5202
|
class: "cl-text-ellipsis cl-text-xs cl-whitespace-nowrap"
|
|
5196
|
-
},
|
|
5203
|
+
}, Dr = { class: "cl-content-center cl-flex cl-h-20 cl-items-center cl-justify-center cl-justify-items-center cl-transition-all cl-w-10 md:cl-ml-4 md:cl-w-20" }, Er = { class: "cl-absolute cl-bg-white cl-right-0 cl-shadow-2xl cl-top-20 cl-w-full cl-z-20" }, Ar = /* @__PURE__ */ G({
|
|
5197
5204
|
__name: "cl-ui-header-menu",
|
|
5198
5205
|
props: {
|
|
5199
5206
|
username: { default: "" },
|
|
@@ -5209,12 +5216,12 @@ const yt = /* @__PURE__ */ he(sr, [["render", dr]]), pr = { class: "cl-flex cl-g
|
|
|
5209
5216
|
"cl-bg-blue-light": t.colour === "secondary"
|
|
5210
5217
|
}])
|
|
5211
5218
|
}, [
|
|
5212
|
-
g("div",
|
|
5219
|
+
g("div", Sr, [
|
|
5213
5220
|
t.image ? (d(), b("img", {
|
|
5214
5221
|
key: 0,
|
|
5215
5222
|
src: t.image,
|
|
5216
5223
|
class: "cl-hidden cl-m-4 cl-max-h-12 cl-max-w-12 cl-ring-2 cl-ring-white cl-rounded-full md:cl-block"
|
|
5217
|
-
}, null, 8,
|
|
5224
|
+
}, null, 8, Tr)) : (d(), P(m(Y), {
|
|
5218
5225
|
key: 1,
|
|
5219
5226
|
class: "cl-hidden cl-m-4 cl-text-white md:cl-block",
|
|
5220
5227
|
icon: "ph:user-circle",
|
|
@@ -5227,11 +5234,11 @@ const yt = /* @__PURE__ */ he(sr, [["render", dr]]), pr = { class: "cl-flex cl-g
|
|
|
5227
5234
|
"cl-text-white": t.colour === "secondary"
|
|
5228
5235
|
}])
|
|
5229
5236
|
}, [
|
|
5230
|
-
t.username ? (d(), b("div",
|
|
5231
|
-
t.group ? (d(), b("div",
|
|
5237
|
+
t.username ? (d(), b("div", qr, V(t.username), 1)) : L("", !0),
|
|
5238
|
+
t.group ? (d(), b("div", Or, V(t.group), 1)) : L("", !0)
|
|
5232
5239
|
], 2),
|
|
5233
|
-
g("div",
|
|
5234
|
-
k(m(
|
|
5240
|
+
g("div", Dr, [
|
|
5241
|
+
k(m(Y), {
|
|
5235
5242
|
class: D(["cl-transform-gpu cl-transition-transform", {
|
|
5236
5243
|
"cl-rotate-180": t.isOpen,
|
|
5237
5244
|
"cl-text-secondary-default": t.colour === "default",
|
|
@@ -5243,7 +5250,7 @@ const yt = /* @__PURE__ */ he(sr, [["render", dr]]), pr = { class: "cl-flex cl-g
|
|
|
5243
5250
|
]),
|
|
5244
5251
|
k(Ie, { name: "fade" }, {
|
|
5245
5252
|
default: M(() => [
|
|
5246
|
-
te(g("div",
|
|
5253
|
+
te(g("div", Er, [
|
|
5247
5254
|
N(t.$slots, "default")
|
|
5248
5255
|
], 512), [
|
|
5249
5256
|
[ue, t.isOpen]
|
|
@@ -5253,10 +5260,10 @@ const yt = /* @__PURE__ */ he(sr, [["render", dr]]), pr = { class: "cl-flex cl-g
|
|
|
5253
5260
|
})
|
|
5254
5261
|
], 2));
|
|
5255
5262
|
}
|
|
5256
|
-
}),
|
|
5263
|
+
}), Vr = [
|
|
5257
5264
|
"default",
|
|
5258
5265
|
"secondary"
|
|
5259
|
-
],
|
|
5266
|
+
], Ir = /* @__PURE__ */ G({
|
|
5260
5267
|
inheritAttrs: !1,
|
|
5261
5268
|
__name: "cl-ui-calendar",
|
|
5262
5269
|
props: {
|
|
@@ -5308,7 +5315,7 @@ const yt = /* @__PURE__ */ he(sr, [["render", dr]]), pr = { class: "cl-flex cl-g
|
|
|
5308
5315
|
const B = ot(q, n.value);
|
|
5309
5316
|
c.value = B, y.value = q, T.value.move(B.start), T.value.hidePopover();
|
|
5310
5317
|
}
|
|
5311
|
-
const S = $(() => at(c.value, n.value, p.value)), C =
|
|
5318
|
+
const S = $(() => at(c.value, n.value, p.value)), C = Yl("(min-width: 768px)"), F = $(() => C.value ? 2 : 1);
|
|
5312
5319
|
return t({
|
|
5313
5320
|
focus() {
|
|
5314
5321
|
var q;
|
|
@@ -5331,7 +5338,7 @@ const yt = /* @__PURE__ */ he(sr, [["render", dr]]), pr = { class: "cl-flex cl-g
|
|
|
5331
5338
|
popover: s.value
|
|
5332
5339
|
}, {
|
|
5333
5340
|
default: M(({ inputValue: J, inputEvents: R }) => [
|
|
5334
|
-
k(Ze,
|
|
5341
|
+
k(Ze, _(q.$attrs, {
|
|
5335
5342
|
ref_key: "input",
|
|
5336
5343
|
ref: i,
|
|
5337
5344
|
date: J,
|
|
@@ -5340,7 +5347,7 @@ const yt = /* @__PURE__ */ he(sr, [["render", dr]]), pr = { class: "cl-flex cl-g
|
|
|
5340
5347
|
placeholder: q.placeholder,
|
|
5341
5348
|
required: q.required,
|
|
5342
5349
|
disabled: q.disabled,
|
|
5343
|
-
onClear: B[0] || (B[0] = (
|
|
5350
|
+
onClear: B[0] || (B[0] = (x) => c.value = null)
|
|
5344
5351
|
}), null, 16, ["date", "events", "type", "placeholder", "required", "disabled"])
|
|
5345
5352
|
]),
|
|
5346
5353
|
_: 1
|
|
@@ -5365,7 +5372,7 @@ const yt = /* @__PURE__ */ he(sr, [["render", dr]]), pr = { class: "cl-flex cl-g
|
|
|
5365
5372
|
onDayclick: B[4] || (B[4] = (J) => y.value = null)
|
|
5366
5373
|
}, {
|
|
5367
5374
|
default: M(({ togglePopover: J }) => [
|
|
5368
|
-
k(Ze,
|
|
5375
|
+
k(Ze, _(q.$attrs, {
|
|
5369
5376
|
ref_key: "input",
|
|
5370
5377
|
ref: i,
|
|
5371
5378
|
type: q.type,
|
|
@@ -5410,7 +5417,7 @@ const yt = /* @__PURE__ */ he(sr, [["render", dr]]), pr = { class: "cl-flex cl-g
|
|
|
5410
5417
|
popover: s.value
|
|
5411
5418
|
}, {
|
|
5412
5419
|
default: M(({ inputValue: J, inputEvents: R }) => [
|
|
5413
|
-
k(Ze,
|
|
5420
|
+
k(Ze, _(q.$attrs, {
|
|
5414
5421
|
ref_key: "input",
|
|
5415
5422
|
ref: i,
|
|
5416
5423
|
date: J,
|
|
@@ -5419,8 +5426,8 @@ const yt = /* @__PURE__ */ he(sr, [["render", dr]]), pr = { class: "cl-flex cl-g
|
|
|
5419
5426
|
placeholder: q.placeholder,
|
|
5420
5427
|
required: q.required,
|
|
5421
5428
|
disabled: q.disabled,
|
|
5422
|
-
onClear: B[5] || (B[5] = (
|
|
5423
|
-
onReset: B[6] || (B[6] = (
|
|
5429
|
+
onClear: B[5] || (B[5] = (x) => c.value = null),
|
|
5430
|
+
onReset: B[6] || (B[6] = (x) => c.value = m(lt)(e.min, e.max, n.value, q.type))
|
|
5424
5431
|
}), null, 16, ["date", "events", "type", "placeholder", "required", "disabled"])
|
|
5425
5432
|
]),
|
|
5426
5433
|
_: 1
|
|
@@ -5429,7 +5436,7 @@ const yt = /* @__PURE__ */ he(sr, [["render", dr]]), pr = { class: "cl-flex cl-g
|
|
|
5429
5436
|
}), Pe = [
|
|
5430
5437
|
...ut,
|
|
5431
5438
|
"dateRange"
|
|
5432
|
-
],
|
|
5439
|
+
], Mr = ["disabled", "step", "placeholder", "name"], Nr = /* @__PURE__ */ G({
|
|
5433
5440
|
__name: "cl-ui-currency-input",
|
|
5434
5441
|
props: {
|
|
5435
5442
|
modelValue: { type: [String, Object, Number, Boolean, null] },
|
|
@@ -5495,16 +5502,16 @@ const yt = /* @__PURE__ */ he(sr, [["render", dr]]), pr = { class: "cl-flex cl-g
|
|
|
5495
5502
|
step: v.step,
|
|
5496
5503
|
placeholder: v.placeholder,
|
|
5497
5504
|
name: v.group,
|
|
5498
|
-
onKeydown:
|
|
5505
|
+
onKeydown: he(i, ["enter"]),
|
|
5499
5506
|
onChange: T,
|
|
5500
5507
|
onBlur: f,
|
|
5501
5508
|
onFocus: S[0] || (S[0] = (C) => r("focus"))
|
|
5502
|
-
}, null, 42,
|
|
5509
|
+
}, null, 42, Mr));
|
|
5503
5510
|
}
|
|
5504
|
-
}),
|
|
5511
|
+
}), Rr = (o) => (Wl("data-v-5cb4ccea"), o = o(), Kl(), o), Ur = { class: "cl-flex cl-items-start" }, zr = { class: "cl-w-full" }, Lr = /* @__PURE__ */ Rr(() => /* @__PURE__ */ g("span", null, null, -1)), Br = ["min", "max", "step", "disabled"], Fr = { class: "cl-bg-transparent cl-text-center cl-text-sm cl-w-full" }, jr = { class: "cl-bg-transparent cl-text-sm" }, Pr = {
|
|
5505
5512
|
key: 1,
|
|
5506
5513
|
class: "cl-emphasis-danger cl-text-sm cl-w-full"
|
|
5507
|
-
},
|
|
5514
|
+
}, Gr = /* @__PURE__ */ G({
|
|
5508
5515
|
inheritAttrs: !1,
|
|
5509
5516
|
__name: "cl-ui-slider",
|
|
5510
5517
|
props: /* @__PURE__ */ fe({
|
|
@@ -5531,8 +5538,8 @@ const yt = /* @__PURE__ */ he(sr, [["render", dr]]), pr = { class: "cl-flex cl-g
|
|
|
5531
5538
|
var s;
|
|
5532
5539
|
(s = n.value) == null || s.focus();
|
|
5533
5540
|
}
|
|
5534
|
-
}), (s, a) => u.value ? (d(), b("div", ie(
|
|
5535
|
-
g("div",
|
|
5541
|
+
}), (s, a) => u.value ? (d(), b("div", ie(_({ key: 0 }, s.$attrs)), [
|
|
5542
|
+
g("div", Ur, [
|
|
5536
5543
|
g("span", {
|
|
5537
5544
|
class: D(["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", {
|
|
5538
5545
|
"cl-bg-white cl-cursor-pointer hover:cl-border-grey-1": !s.disabled,
|
|
@@ -5540,8 +5547,8 @@ const yt = /* @__PURE__ */ he(sr, [["render", dr]]), pr = { class: "cl-flex cl-g
|
|
|
5540
5547
|
}]),
|
|
5541
5548
|
onClick: a[0] || (a[0] = (i) => e.value = s.disabled ? e.value : s.min)
|
|
5542
5549
|
}, V(Number.isInteger(s.min) ? m(we)(s.min) : m(Ee)(s.min, m(ee).DECIMAL)), 3),
|
|
5543
|
-
g("div",
|
|
5544
|
-
p.value ? (d(), P(
|
|
5550
|
+
g("div", zr, [
|
|
5551
|
+
p.value ? (d(), P(xe, {
|
|
5545
5552
|
key: 0,
|
|
5546
5553
|
ref_key: "sliderRef",
|
|
5547
5554
|
ref: n,
|
|
@@ -5557,7 +5564,7 @@ const yt = /* @__PURE__ */ he(sr, [["render", dr]]), pr = { class: "cl-flex cl-g
|
|
|
5557
5564
|
placeholder: s.placeholder
|
|
5558
5565
|
}, {
|
|
5559
5566
|
default: M(() => [
|
|
5560
|
-
|
|
5567
|
+
Lr
|
|
5561
5568
|
]),
|
|
5562
5569
|
_: 1
|
|
5563
5570
|
}, 8, ["modelValue", "format", "precision", "min", "max", "step", "disabled", "placeholder"])) : (d(), b(K, { key: 1 }, [
|
|
@@ -5571,7 +5578,7 @@ const yt = /* @__PURE__ */ he(sr, [["render", dr]]), pr = { class: "cl-flex cl-g
|
|
|
5571
5578
|
max: s.max,
|
|
5572
5579
|
step: s.step,
|
|
5573
5580
|
disabled: s.disabled
|
|
5574
|
-
}, null, 8,
|
|
5581
|
+
}, null, 8, Br), [
|
|
5575
5582
|
[
|
|
5576
5583
|
Cl,
|
|
5577
5584
|
e.value,
|
|
@@ -5579,7 +5586,7 @@ const yt = /* @__PURE__ */ he(sr, [["render", dr]]), pr = { class: "cl-flex cl-g
|
|
|
5579
5586
|
{ number: !0 }
|
|
5580
5587
|
]
|
|
5581
5588
|
]),
|
|
5582
|
-
g("div",
|
|
5589
|
+
g("div", Fr, V(Number.isInteger(e.value) ? m(we)(e.value) : m(Ee)(e.value, m(ee).DECIMAL)), 1)
|
|
5583
5590
|
], 64))
|
|
5584
5591
|
]),
|
|
5585
5592
|
g("span", {
|
|
@@ -5589,18 +5596,18 @@ const yt = /* @__PURE__ */ he(sr, [["render", dr]]), pr = { class: "cl-flex cl-g
|
|
|
5589
5596
|
}]),
|
|
5590
5597
|
onClick: a[3] || (a[3] = (i) => e.value = s.disabled ? e.value : s.max)
|
|
5591
5598
|
}, V(Number.isInteger(s.max) ? m(we)(s.max) : m(Ee)(s.max, m(ee).DECIMAL)), 3),
|
|
5592
|
-
g("div",
|
|
5599
|
+
g("div", jr, [
|
|
5593
5600
|
g("div", {
|
|
5594
5601
|
class: "cl-bg-white cl-border cl-border-transparent cl-cursor-pointer cl-float-right cl-p-1.5 cl-px-2 cl-rounded-full cl-shadow cl-text-xs hover:cl-border-grey-1",
|
|
5595
5602
|
onClick: a[4] || (a[4] = (i) => p.value = !p.value)
|
|
5596
5603
|
}, [
|
|
5597
|
-
k(m(
|
|
5604
|
+
k(m(Y), { icon: "ph:arrows-left-right-thin" })
|
|
5598
5605
|
])
|
|
5599
5606
|
])
|
|
5600
5607
|
])
|
|
5601
|
-
], 16)) : (d(), b("div",
|
|
5608
|
+
], 16)) : (d(), b("div", Pr, V(m(r)("slider.invalidProps")), 1));
|
|
5602
5609
|
}
|
|
5603
|
-
}),
|
|
5610
|
+
}), Hr = /* @__PURE__ */ ye(Gr, [["__scopeId", "data-v-5cb4ccea"]]);
|
|
5604
5611
|
function Bl(o) {
|
|
5605
5612
|
let t = !1;
|
|
5606
5613
|
switch (o) {
|
|
@@ -5618,7 +5625,7 @@ function Bl(o) {
|
|
|
5618
5625
|
}
|
|
5619
5626
|
return t;
|
|
5620
5627
|
}
|
|
5621
|
-
function
|
|
5628
|
+
function Zr(o) {
|
|
5622
5629
|
return o === "number" || o === "range";
|
|
5623
5630
|
}
|
|
5624
5631
|
function Fl(o) {
|
|
@@ -5639,7 +5646,7 @@ function Fl(o) {
|
|
|
5639
5646
|
function Ge(o) {
|
|
5640
5647
|
return o === "button" || o === "submit" || o === "reset";
|
|
5641
5648
|
}
|
|
5642
|
-
function
|
|
5649
|
+
function Wr(o) {
|
|
5643
5650
|
let t;
|
|
5644
5651
|
switch (o) {
|
|
5645
5652
|
case "datetime":
|
|
@@ -5660,27 +5667,27 @@ function Kr(o) {
|
|
|
5660
5667
|
}
|
|
5661
5668
|
function jl(o, t) {
|
|
5662
5669
|
const l = o.target;
|
|
5663
|
-
return
|
|
5670
|
+
return Zr(t) ? l.valueAsNumber : Ge(t) ? l.checked : l.value;
|
|
5664
5671
|
}
|
|
5665
|
-
const
|
|
5672
|
+
const Kr = { class: "cl-flex cl-justify-between" }, Qr = { class: "cl-w-full" }, _r = {
|
|
5666
5673
|
key: 0,
|
|
5667
5674
|
class: "cl-block cl-left-auto cl-relative cl-text-danger-default"
|
|
5668
5675
|
}, Yr = {
|
|
5669
5676
|
key: 1,
|
|
5670
5677
|
class: "cl-bg-danger-light cl-block cl-max-h-6 cl-mb-1 cl-ml-2 cl-px-2 cl-rounded-md cl-text-center cl-text-danger-default cl-text-xs"
|
|
5671
|
-
},
|
|
5678
|
+
}, xr = {
|
|
5672
5679
|
key: 0,
|
|
5673
5680
|
class: "cl-relative"
|
|
5674
|
-
},
|
|
5681
|
+
}, Jr = ["type", "disabled", "min", "max", "minlength", "maxlength", "step", "placeholder", "name", "autocomplete"], Xr = { key: 0 }, ei = { key: 1 }, li = {
|
|
5675
5682
|
key: 3,
|
|
5676
5683
|
class: "cl-max-h-[2.75rem] cl-pb-0.5"
|
|
5677
|
-
},
|
|
5684
|
+
}, ti = {
|
|
5678
5685
|
key: 0,
|
|
5679
5686
|
class: "cl-bg-primary-lighter cl-px-2 cl-rounded-md cl-text-center cl-text-secondary-light cl-text-xs cl-w-auto cl-whitespace-pre-line"
|
|
5680
|
-
},
|
|
5687
|
+
}, oi = {
|
|
5681
5688
|
key: 1,
|
|
5682
5689
|
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"
|
|
5683
|
-
},
|
|
5690
|
+
}, ai = /* @__PURE__ */ G({
|
|
5684
5691
|
inheritAttrs: !1,
|
|
5685
5692
|
__name: "cl-ui-input",
|
|
5686
5693
|
props: {
|
|
@@ -5733,7 +5740,7 @@ const _r = { class: "cl-flex cl-justify-between" }, Qr = { class: "cl-w-full" },
|
|
|
5733
5740
|
...((z = e.externalErrors) == null ? void 0 : z.filter((Z) => ((Z == null ? void 0 : Z.length) ?? 0) > 0)) ?? []
|
|
5734
5741
|
].join(`
|
|
5735
5742
|
`);
|
|
5736
|
-
}),
|
|
5743
|
+
}), x = $(() => ({
|
|
5737
5744
|
currency: "GBP",
|
|
5738
5745
|
locale: "en-GB",
|
|
5739
5746
|
valueRange: {
|
|
@@ -5807,7 +5814,7 @@ const _r = { class: "cl-flex cl-justify-between" }, Qr = { class: "cl-w-full" },
|
|
|
5807
5814
|
e.validateOn === "change" && await O(Z), r("change", h, Z);
|
|
5808
5815
|
}
|
|
5809
5816
|
}
|
|
5810
|
-
async function
|
|
5817
|
+
async function Q() {
|
|
5811
5818
|
await E(), H();
|
|
5812
5819
|
}
|
|
5813
5820
|
return We(() => {
|
|
@@ -5828,7 +5835,7 @@ const _r = { class: "cl-flex cl-justify-between" }, Qr = { class: "cl-w-full" },
|
|
|
5828
5835
|
var h, z;
|
|
5829
5836
|
e.inputType === "currency" ? (h = c == null ? void 0 : c.value) == null || h.blur() : (z = n.value) == null || z.blur();
|
|
5830
5837
|
}
|
|
5831
|
-
}), (h, z) => (d(), b("div",
|
|
5838
|
+
}), (h, z) => (d(), b("div", _({ ...h.$attrs, id: void 0 }, {
|
|
5832
5839
|
key: i.value,
|
|
5833
5840
|
class: "cl-align-top cl-border-none cl-inline-block cl-text-left"
|
|
5834
5841
|
}), [
|
|
@@ -5836,16 +5843,16 @@ const _r = { class: "cl-flex cl-justify-between" }, Qr = { class: "cl-w-full" },
|
|
|
5836
5843
|
onMouseenter: z[13] || (z[13] = (Z) => ke(!0)),
|
|
5837
5844
|
onMouseleave: z[14] || (z[14] = (Z) => ke(!1))
|
|
5838
5845
|
}, [
|
|
5839
|
-
g("div",
|
|
5846
|
+
g("div", Kr, [
|
|
5840
5847
|
g("div", Qr, [
|
|
5841
5848
|
te(g("label", { class: "cl-block cl-mb-1 cl-text-grey-4 cl-text-xs cl-tracking-widest" }, V(h.label), 513), [
|
|
5842
5849
|
[ue, h.showLabel && h.label !== ""]
|
|
5843
5850
|
])
|
|
5844
5851
|
]),
|
|
5845
|
-
s.value ? (d(), b("label",
|
|
5852
|
+
s.value ? (d(), b("label", _r, " * ")) : h.isRequired && h.requiredText.length ? (d(), b("label", Yr, V(h.requiredText), 1)) : L("", !0)
|
|
5846
5853
|
]),
|
|
5847
|
-
h.inputType !== "range" && h.inputType !== "currency" && !m(Fl)(h.inputType) ? (d(), b("div",
|
|
5848
|
-
te(g("input",
|
|
5854
|
+
h.inputType !== "range" && h.inputType !== "currency" && !m(Fl)(h.inputType) ? (d(), b("div", xr, [
|
|
5855
|
+
te(g("input", _({
|
|
5849
5856
|
ref_key: "inputElement",
|
|
5850
5857
|
ref: n,
|
|
5851
5858
|
"onUpdate:modelValue": z[0] || (z[0] = (Z) => f.value = Z)
|
|
@@ -5873,13 +5880,13 @@ const _r = { class: "cl-flex cl-justify-between" }, Qr = { class: "cl-w-full" },
|
|
|
5873
5880
|
autocomplete: h.autocomplete,
|
|
5874
5881
|
onClick: z[1] || (z[1] = (Z) => me(Z)),
|
|
5875
5882
|
onFocus: z[2] || (z[2] = (Z) => r("focus")),
|
|
5876
|
-
onBlur:
|
|
5883
|
+
onBlur: oe(Q, ["self"]),
|
|
5877
5884
|
onMousewheelPassive: w,
|
|
5878
5885
|
onInput: z[3] || (z[3] = (Z) => {
|
|
5879
5886
|
r("input", Z, m(jl)(Z, h.inputType));
|
|
5880
5887
|
}),
|
|
5881
5888
|
onChange: U
|
|
5882
|
-
}), null, 16,
|
|
5889
|
+
}), null, 16, Jr), [
|
|
5883
5890
|
[Gl, f.value]
|
|
5884
5891
|
]),
|
|
5885
5892
|
k(Ie, {
|
|
@@ -5887,19 +5894,19 @@ const _r = { class: "cl-flex cl-justify-between" }, Qr = { class: "cl-w-full" },
|
|
|
5887
5894
|
duration: 300
|
|
5888
5895
|
}, {
|
|
5889
5896
|
default: M(() => [
|
|
5890
|
-
h.inputType === "number" && !h.disabled && h.showArrows ? te((d(), b("div",
|
|
5891
|
-
k(m(
|
|
5897
|
+
h.inputType === "number" && !h.disabled && h.showArrows ? te((d(), b("div", Xr, [
|
|
5898
|
+
k(m(Y), {
|
|
5892
5899
|
icon: "ph:caret-up-bold",
|
|
5893
5900
|
class: "cl-absolute cl-bg-link-default cl-right-1 cl-rounded-full cl-text-sm cl-text-white cl-top-1 hover:cl-bg-link-light hover:cl-cursor-pointer",
|
|
5894
5901
|
onClick: ge,
|
|
5895
|
-
onMousedown: z[4] || (z[4] =
|
|
5902
|
+
onMousedown: z[4] || (z[4] = oe(() => {
|
|
5896
5903
|
}, ["prevent"]))
|
|
5897
5904
|
}),
|
|
5898
|
-
k(m(
|
|
5905
|
+
k(m(Y), {
|
|
5899
5906
|
icon: "ph:caret-down-bold",
|
|
5900
5907
|
class: "cl-absolute cl-bg-link-default cl-bottom-2 cl-right-1 cl-rounded-full cl-text-sm cl-text-white hover:cl-bg-link-light hover:cl-cursor-pointer",
|
|
5901
5908
|
onClick: je,
|
|
5902
|
-
onMousedown: z[5] || (z[5] =
|
|
5909
|
+
onMousedown: z[5] || (z[5] = oe(() => {
|
|
5903
5910
|
}, ["prevent"]))
|
|
5904
5911
|
})
|
|
5905
5912
|
], 512)), [
|
|
@@ -5908,8 +5915,8 @@ const _r = { class: "cl-flex cl-justify-between" }, Qr = { class: "cl-w-full" },
|
|
|
5908
5915
|
]),
|
|
5909
5916
|
_: 1
|
|
5910
5917
|
})
|
|
5911
|
-
])) : h.inputType === "currency" ? (d(), b("div",
|
|
5912
|
-
k(
|
|
5918
|
+
])) : h.inputType === "currency" ? (d(), b("div", ei, [
|
|
5919
|
+
k(Nr, _({
|
|
5913
5920
|
ref_key: "currencyInputRef",
|
|
5914
5921
|
ref: c,
|
|
5915
5922
|
modelValue: f.value,
|
|
@@ -5923,12 +5930,12 @@ const _r = { class: "cl-flex cl-justify-between" }, Qr = { class: "cl-w-full" },
|
|
|
5923
5930
|
"input-specific-classes": h.inputSpecificClasses,
|
|
5924
5931
|
group: h.group,
|
|
5925
5932
|
step: h.step,
|
|
5926
|
-
"currency-options":
|
|
5933
|
+
"currency-options": x.value,
|
|
5927
5934
|
onChange: z[7] || (z[7] = (Z, re) => U(Z, re)),
|
|
5928
5935
|
onFocus: z[8] || (z[8] = (Z) => r("focus")),
|
|
5929
5936
|
onBlur: E
|
|
5930
5937
|
}), null, 16, ["modelValue", "disabled", "placeholder", "is-valid", "highlight-when-valid", "input-specific-classes", "group", "step", "currency-options"])
|
|
5931
|
-
])) : m(Fl)(h.inputType) ? (d(), P(m(
|
|
5938
|
+
])) : m(Fl)(h.inputType) ? (d(), P(m(Ir), _({ key: 2 }, h.$attrs, {
|
|
5932
5939
|
ref_key: "inputElement",
|
|
5933
5940
|
ref: n,
|
|
5934
5941
|
date: y.value,
|
|
@@ -5940,7 +5947,7 @@ const _r = { class: "cl-flex cl-justify-between" }, Qr = { class: "cl-w-full" },
|
|
|
5940
5947
|
}],
|
|
5941
5948
|
disabled: h.disabled,
|
|
5942
5949
|
required: h.isRequired,
|
|
5943
|
-
type: m(
|
|
5950
|
+
type: m(Wr)(h.inputType),
|
|
5944
5951
|
"time-zone": h.timeZone,
|
|
5945
5952
|
min: T.value,
|
|
5946
5953
|
max: v.value,
|
|
@@ -5948,10 +5955,10 @@ const _r = { class: "cl-flex cl-justify-between" }, Qr = { class: "cl-w-full" },
|
|
|
5948
5955
|
"initial-date": h.initialDate,
|
|
5949
5956
|
"quick-date-scope": h.quickDateScope,
|
|
5950
5957
|
"date-format-locale": h.dateFormatLocale,
|
|
5951
|
-
onBlur:
|
|
5958
|
+
onBlur: oe(E, ["self"]),
|
|
5952
5959
|
onFocus: z[10] || (z[10] = (Z) => r("focus"))
|
|
5953
|
-
}), null, 16, ["date", "class", "disabled", "required", "type", "time-zone", "min", "max", "placeholder", "initial-date", "quick-date-scope", "date-format-locale"])) : h.inputType === "range" && typeof f.value == "number" ? (d(), b("div",
|
|
5954
|
-
k(m(
|
|
5960
|
+
}), null, 16, ["date", "class", "disabled", "required", "type", "time-zone", "min", "max", "placeholder", "initial-date", "quick-date-scope", "date-format-locale"])) : h.inputType === "range" && typeof f.value == "number" ? (d(), b("div", li, [
|
|
5961
|
+
k(m(Hr), {
|
|
5955
5962
|
ref_key: "inputElement",
|
|
5956
5963
|
ref: n,
|
|
5957
5964
|
value: f.value,
|
|
@@ -5962,16 +5969,16 @@ const _r = { class: "cl-flex cl-justify-between" }, Qr = { class: "cl-w-full" },
|
|
|
5962
5969
|
placeholder: a.value,
|
|
5963
5970
|
"enforce-step": !0,
|
|
5964
5971
|
disabled: h.disabled,
|
|
5965
|
-
onBlur:
|
|
5972
|
+
onBlur: oe(E, ["self"]),
|
|
5966
5973
|
onFocus: z[12] || (z[12] = (Z) => r("focus"))
|
|
5967
5974
|
}, null, 8, ["value", "min", "max", "step", "placeholder", "disabled"])
|
|
5968
5975
|
])) : L("", !0)
|
|
5969
5976
|
], 32),
|
|
5970
|
-
q.value && F.value && B.value ? (d(), b("div",
|
|
5971
|
-
!q.value && R.value.length > 0 && h.showValidationMessages && B.value ? (d(), b("div",
|
|
5977
|
+
q.value && F.value && B.value ? (d(), b("div", ti, V(F.value), 1)) : L("", !0),
|
|
5978
|
+
!q.value && R.value.length > 0 && h.showValidationMessages && B.value ? (d(), b("div", oi, V(R.value), 1)) : L("", !0)
|
|
5972
5979
|
], 16));
|
|
5973
5980
|
}
|
|
5974
|
-
}),
|
|
5981
|
+
}), ni = /* @__PURE__ */ ye(ai, [["__scopeId", "data-v-2373f106"]]), si = [
|
|
5975
5982
|
"button",
|
|
5976
5983
|
"checkbox",
|
|
5977
5984
|
"color",
|
|
@@ -5993,24 +6000,24 @@ const _r = { class: "cl-flex cl-justify-between" }, Qr = { class: "cl-w-full" },
|
|
|
5993
6000
|
function $l(o) {
|
|
5994
6001
|
return /[a-z]{2}-[A-Z]{2}/gm.test(o.localeCode);
|
|
5995
6002
|
}
|
|
5996
|
-
function
|
|
6003
|
+
function ri(o) {
|
|
5997
6004
|
let t = Array.isArray(o);
|
|
5998
6005
|
if (t) {
|
|
5999
6006
|
for (const l of o)
|
|
6000
|
-
if (!
|
|
6007
|
+
if (!ii(l)) {
|
|
6001
6008
|
t = !1;
|
|
6002
6009
|
break;
|
|
6003
6010
|
}
|
|
6004
6011
|
}
|
|
6005
6012
|
return t;
|
|
6006
6013
|
}
|
|
6007
|
-
function
|
|
6014
|
+
function ii(o) {
|
|
6008
6015
|
return typeof o.name == "string" && typeof o.nativeName == "string" && typeof o.localeCode == "string";
|
|
6009
6016
|
}
|
|
6010
|
-
const
|
|
6017
|
+
const ci = {
|
|
6011
6018
|
key: 0,
|
|
6012
6019
|
class: "cl-flex cl-relative cl-select-none cl-w-auto cl-z-30"
|
|
6013
|
-
},
|
|
6020
|
+
}, ui = { class: "cl-absolute cl-bg-white cl-border cl-border-grey-0 cl-overflow-hidden cl-right-0 cl-rounded cl-shadow-xl cl-text-black cl-top-6 cl-z-30" }, di = ["data-localename", "data-localecode", "onClick"], pi = { class: "cl-text-xs" }, fi = /* @__PURE__ */ G({
|
|
6014
6021
|
__name: "cl-ui-language-switcher",
|
|
6015
6022
|
props: {
|
|
6016
6023
|
supportedLanguages: {},
|
|
@@ -6029,7 +6036,7 @@ const ui = {
|
|
|
6029
6036
|
}
|
|
6030
6037
|
return X(() => l.disabled, (a) => {
|
|
6031
6038
|
a && (n.value = !1);
|
|
6032
|
-
}), (a, i) => c.value !== null && m($l)(c.value) ? (d(), b("div",
|
|
6039
|
+
}), (a, i) => c.value !== null && m($l)(c.value) ? (d(), b("div", ci, [
|
|
6033
6040
|
g("div", {
|
|
6034
6041
|
class: D(["cl-flex cl-items-center", {
|
|
6035
6042
|
"cl-cursor-pointer": !a.disabled
|
|
@@ -6044,7 +6051,7 @@ const ui = {
|
|
|
6044
6051
|
], 2),
|
|
6045
6052
|
k(Ie, { name: "fade" }, {
|
|
6046
6053
|
default: M(() => [
|
|
6047
|
-
te(g("div",
|
|
6054
|
+
te(g("div", ui, [
|
|
6048
6055
|
(d(!0), b(K, null, le(u.value, (f, y) => (d(), b("div", {
|
|
6049
6056
|
key: y,
|
|
6050
6057
|
class: "cl-border-b cl-border-grey-0 cl-cursor-pointer cl-flex cl-items-center cl-justify-center cl-p-1 cl-text-center cl-transition-colors cl-w-28 hover:cl-bg-grey-0 last-child:cl-border-b-0 last:cl-border-b-0 lg:cl-p-2",
|
|
@@ -6054,8 +6061,8 @@ const ui = {
|
|
|
6054
6061
|
r.value = f.localeCode, s(), e("language-select", f.localeCode);
|
|
6055
6062
|
}
|
|
6056
6063
|
}, [
|
|
6057
|
-
g("span",
|
|
6058
|
-
], 8,
|
|
6064
|
+
g("span", pi, V(f.nativeName), 1)
|
|
6065
|
+
], 8, di))), 128))
|
|
6059
6066
|
], 512), [
|
|
6060
6067
|
[ue, n.value]
|
|
6061
6068
|
])
|
|
@@ -6064,13 +6071,13 @@ const ui = {
|
|
|
6064
6071
|
})
|
|
6065
6072
|
])) : L("", !0);
|
|
6066
6073
|
}
|
|
6067
|
-
}),
|
|
6074
|
+
}), mi = { class: "cl-relative" }, gi = { class: "cl-h-full cl-z-0 xl:cl-h-screen" }, vi = { class: "cl-absolute cl-bg-secondary-default cl-gap-y-1 cl-grid cl-grid-cols-1 cl-left-0 cl-opacity-95 cl-p-6 cl-top-0 cl-w-full cl-z-10 lg:cl-gap-x-1 lg:cl-grid-cols-10 lg:cl-p-10" }, bi = { class: "cl-col-span-10 lg:cl-col-span-3" }, hi = {
|
|
6068
6075
|
key: 0,
|
|
6069
6076
|
class: "cl-col-span-10 cl-flex cl-items-start cl-justify-end cl-text-white lg:cl-col-span-1 lg:cl-p-2"
|
|
6070
|
-
},
|
|
6077
|
+
}, yi = { class: "cl-col-span-3" }, wi = { class: "cl-relative cl-text-grey-4" }, $i = { class: "cl-w-full" }, ki = /* @__PURE__ */ g("span", null, null, -1), Ci = {
|
|
6071
6078
|
key: 0,
|
|
6072
6079
|
class: "cl-bg-primary-lighter cl-mt-1 cl-rounded-md cl-text-center cl-text-secondary-default cl-text-xs cl-w-full"
|
|
6073
|
-
},
|
|
6080
|
+
}, Si = { class: "cl-col-span-3" }, Ti = { class: "cl-relative cl-text-grey-4" }, qi = /* @__PURE__ */ g("span", null, null, -1), Oi = { class: "cl-col-span-10 cl-emphasis-danger cl-mt-10 cl-p-3 cl-rounded-md cl-text-sm md:cl-mt-3" }, Di = /* @__PURE__ */ G({
|
|
6074
6081
|
__name: "cl-ui-login",
|
|
6075
6082
|
props: {
|
|
6076
6083
|
errors: { default: () => [] },
|
|
@@ -6092,15 +6099,15 @@ const ui = {
|
|
|
6092
6099
|
return X([
|
|
6093
6100
|
r,
|
|
6094
6101
|
n
|
|
6095
|
-
], a), (i, f) => (d(), b("div",
|
|
6096
|
-
g("div",
|
|
6102
|
+
], a), (i, f) => (d(), b("div", mi, [
|
|
6103
|
+
g("div", gi, [
|
|
6097
6104
|
N(i.$slots, "background")
|
|
6098
6105
|
]),
|
|
6099
|
-
g("form",
|
|
6100
|
-
g("div",
|
|
6106
|
+
g("form", vi, [
|
|
6107
|
+
g("div", bi, [
|
|
6101
6108
|
N(i.$slots, "logo")
|
|
6102
6109
|
]),
|
|
6103
|
-
i.$slots["language-switcher"] ? (d(), b("div",
|
|
6110
|
+
i.$slots["language-switcher"] ? (d(), b("div", hi, [
|
|
6104
6111
|
N(i.$slots, "language-switcher")
|
|
6105
6112
|
])) : L("", !0),
|
|
6106
6113
|
g("div", {
|
|
@@ -6109,14 +6116,14 @@ const ui = {
|
|
|
6109
6116
|
"cl-col-span-6": i.$slots["language-switcher"]
|
|
6110
6117
|
}])
|
|
6111
6118
|
}, [
|
|
6112
|
-
g("div",
|
|
6113
|
-
g("div",
|
|
6114
|
-
k(m(
|
|
6119
|
+
g("div", yi, [
|
|
6120
|
+
g("div", wi, [
|
|
6121
|
+
k(m(Y), {
|
|
6115
6122
|
class: "cl-absolute cl-left-3 cl-top-3 cl-z-10",
|
|
6116
6123
|
icon: "ph:user",
|
|
6117
6124
|
size: 18
|
|
6118
6125
|
}),
|
|
6119
|
-
g("div",
|
|
6126
|
+
g("div", $i, [
|
|
6120
6127
|
k(Re, {
|
|
6121
6128
|
id: "cl-ui-login-usernameinput",
|
|
6122
6129
|
modelValue: r.value,
|
|
@@ -6132,22 +6139,22 @@ const ui = {
|
|
|
6132
6139
|
autocomplete: "username"
|
|
6133
6140
|
}, {
|
|
6134
6141
|
default: M(() => [
|
|
6135
|
-
|
|
6142
|
+
ki
|
|
6136
6143
|
]),
|
|
6137
6144
|
_: 1
|
|
6138
6145
|
}, 8, ["modelValue", "class", "errors", "placeholder"]),
|
|
6139
|
-
u.value ? (d(), b("div",
|
|
6146
|
+
u.value ? (d(), b("div", Ci, V(m(e)("login.validEmail")), 1)) : L("", !0)
|
|
6140
6147
|
])
|
|
6141
6148
|
])
|
|
6142
6149
|
]),
|
|
6143
|
-
g("div",
|
|
6144
|
-
g("div",
|
|
6145
|
-
k(m(
|
|
6150
|
+
g("div", Si, [
|
|
6151
|
+
g("div", Ti, [
|
|
6152
|
+
k(m(Y), {
|
|
6146
6153
|
class: "cl-absolute cl-left-3 cl-top-3 cl-z-10",
|
|
6147
6154
|
icon: "ph:lock",
|
|
6148
6155
|
size: 18
|
|
6149
6156
|
}),
|
|
6150
|
-
te(k(m(
|
|
6157
|
+
te(k(m(Y), {
|
|
6151
6158
|
class: "cl-absolute cl-cursor-pointer cl-right-4 cl-top-3 cl-z-10",
|
|
6152
6159
|
icon: "ph:eye",
|
|
6153
6160
|
size: 18,
|
|
@@ -6155,7 +6162,7 @@ const ui = {
|
|
|
6155
6162
|
}, null, 512), [
|
|
6156
6163
|
[ue, c.value === "password"]
|
|
6157
6164
|
]),
|
|
6158
|
-
te(k(m(
|
|
6165
|
+
te(k(m(Y), {
|
|
6159
6166
|
class: "cl-absolute cl-cursor-pointer cl-right-4 cl-top-3 cl-z-10",
|
|
6160
6167
|
icon: "ph:eye-slash",
|
|
6161
6168
|
size: 18,
|
|
@@ -6175,7 +6182,7 @@ const ui = {
|
|
|
6175
6182
|
autocomplete: "current-password"
|
|
6176
6183
|
}, {
|
|
6177
6184
|
default: M(() => [
|
|
6178
|
-
|
|
6185
|
+
qi
|
|
6179
6186
|
]),
|
|
6180
6187
|
_: 1
|
|
6181
6188
|
}, 8, ["modelValue", "class", "type", "placeholder"])
|
|
@@ -6192,7 +6199,7 @@ const ui = {
|
|
|
6192
6199
|
colour: "blue",
|
|
6193
6200
|
loading: i.loading,
|
|
6194
6201
|
disabled: !u.value || n.value === "",
|
|
6195
|
-
onClick:
|
|
6202
|
+
onClick: oe(s, ["prevent"])
|
|
6196
6203
|
}, {
|
|
6197
6204
|
default: M(() => [
|
|
6198
6205
|
se(V(m(e)("login.login")), 1)
|
|
@@ -6205,7 +6212,7 @@ const ui = {
|
|
|
6205
6212
|
default: M(() => {
|
|
6206
6213
|
var y;
|
|
6207
6214
|
return [
|
|
6208
|
-
te(g("span",
|
|
6215
|
+
te(g("span", Oi, [
|
|
6209
6216
|
(d(!0), b(K, null, le(i.errors, (T, v) => (d(), b("div", {
|
|
6210
6217
|
id: "cl-ui-login-errors",
|
|
6211
6218
|
key: v,
|
|
@@ -6221,19 +6228,19 @@ const ui = {
|
|
|
6221
6228
|
])
|
|
6222
6229
|
]));
|
|
6223
6230
|
}
|
|
6224
|
-
}),
|
|
6231
|
+
}), Ei = [
|
|
6225
6232
|
"x-small",
|
|
6226
6233
|
"small",
|
|
6227
6234
|
"medium",
|
|
6228
6235
|
"large"
|
|
6229
|
-
],
|
|
6236
|
+
], Ai = [
|
|
6230
6237
|
"primary",
|
|
6231
6238
|
"secondary",
|
|
6232
6239
|
"white"
|
|
6233
|
-
],
|
|
6240
|
+
], Vi = {
|
|
6234
6241
|
key: 0,
|
|
6235
6242
|
class: "cl-h-0 cl-w-0"
|
|
6236
|
-
},
|
|
6243
|
+
}, Ii = { class: "cl-relative cl-w-full" }, Mi = /* @__PURE__ */ G({
|
|
6237
6244
|
__name: "cl-ui-navigation",
|
|
6238
6245
|
props: {
|
|
6239
6246
|
colour: { default: "default" }
|
|
@@ -6265,7 +6272,7 @@ const ui = {
|
|
|
6265
6272
|
deep: !0
|
|
6266
6273
|
}
|
|
6267
6274
|
);
|
|
6268
|
-
const s = I(!1), a = I(!1), { start: i } =
|
|
6275
|
+
const s = I(!1), a = I(!1), { start: i } = _l(() => a.value = !1, 100);
|
|
6269
6276
|
function f() {
|
|
6270
6277
|
s.value = !s.value, e("pinned-state", s.value), a.value = !0, i();
|
|
6271
6278
|
}
|
|
@@ -6278,7 +6285,7 @@ const ui = {
|
|
|
6278
6285
|
S.open = !1;
|
|
6279
6286
|
}), e("open-state", !1, void 0));
|
|
6280
6287
|
}
|
|
6281
|
-
return
|
|
6288
|
+
return Qe(y, v), t({
|
|
6282
6289
|
closeNavigation: v,
|
|
6283
6290
|
restorePinnedNavigation: T
|
|
6284
6291
|
}), (S, C) => (d(), b("div", {
|
|
@@ -6293,9 +6300,9 @@ const ui = {
|
|
|
6293
6300
|
"cl-bg-blue-dark": S.colour === "secondary"
|
|
6294
6301
|
}])
|
|
6295
6302
|
}, [
|
|
6296
|
-
N(S.$slots, "icon",
|
|
6303
|
+
N(S.$slots, "icon", _({ navcolour: S.colour }, { groupIsOpen: c, toggleOpen: u }), void 0, !0)
|
|
6297
6304
|
], 2),
|
|
6298
|
-
a.value ? (d(), b("div",
|
|
6305
|
+
a.value ? (d(), b("div", Vi)) : L("", !0),
|
|
6299
6306
|
k(Ie, { name: "slide-right" }, {
|
|
6300
6307
|
default: M(() => [
|
|
6301
6308
|
te(g("div", {
|
|
@@ -6304,15 +6311,15 @@ const ui = {
|
|
|
6304
6311
|
"cl-absolute cl-left-20 cl-shadow-lg": !s.value
|
|
6305
6312
|
}])
|
|
6306
6313
|
}, [
|
|
6307
|
-
g("div",
|
|
6314
|
+
g("div", Ii, [
|
|
6308
6315
|
g("span", {
|
|
6309
6316
|
class: "cl-absolute cl-cursor-pointer cl-hidden cl-right-0 cl-top-1.5 lg:cl-block",
|
|
6310
6317
|
onClick: C[0] || (C[0] = () => f())
|
|
6311
6318
|
}, [
|
|
6312
|
-
s.value ? (d(), P(m(
|
|
6319
|
+
s.value ? (d(), P(m(Y), {
|
|
6313
6320
|
key: 1,
|
|
6314
6321
|
icon: "ph:push-pin-slash"
|
|
6315
|
-
})) : (d(), P(m(
|
|
6322
|
+
})) : (d(), P(m(Y), {
|
|
6316
6323
|
key: 0,
|
|
6317
6324
|
icon: "ph:push-pin"
|
|
6318
6325
|
}))
|
|
@@ -6327,7 +6334,7 @@ const ui = {
|
|
|
6327
6334
|
})
|
|
6328
6335
|
], 512));
|
|
6329
6336
|
}
|
|
6330
|
-
}),
|
|
6337
|
+
}), Ni = /* @__PURE__ */ ye(Mi, [["__scopeId", "data-v-db3283cd"]]), Ri = /* @__PURE__ */ G({
|
|
6331
6338
|
__name: "cl-ui-navigation-icon",
|
|
6332
6339
|
props: {
|
|
6333
6340
|
iconValue: {},
|
|
@@ -6343,17 +6350,17 @@ const ui = {
|
|
|
6343
6350
|
"cl-bg-blue-light": t.open && t.colour === "secondary"
|
|
6344
6351
|
}])
|
|
6345
6352
|
}, [
|
|
6346
|
-
k(m(
|
|
6353
|
+
k(m(Y), {
|
|
6347
6354
|
class: "cl-block",
|
|
6348
6355
|
icon: t.iconValue,
|
|
6349
6356
|
width: "24"
|
|
6350
6357
|
}, null, 8, ["icon"])
|
|
6351
6358
|
], 2));
|
|
6352
6359
|
}
|
|
6353
|
-
}),
|
|
6360
|
+
}), Ui = {
|
|
6354
6361
|
key: 0,
|
|
6355
6362
|
class: "cl-font-bold cl-leading-8 cl-mb-8 cl-pr-8 cl-select-none cl-text-lg cl-text-secondary-default"
|
|
6356
|
-
},
|
|
6363
|
+
}, zi = { class: "cl-flex cl-flex-wrap cl-space-y-8 cl-text-sm cl-w-full" }, Li = /* @__PURE__ */ G({
|
|
6357
6364
|
__name: "cl-ui-navigation-group",
|
|
6358
6365
|
props: {
|
|
6359
6366
|
open: { type: Boolean }
|
|
@@ -6364,35 +6371,35 @@ const ui = {
|
|
|
6364
6371
|
"cl-hidden": !t.open
|
|
6365
6372
|
})
|
|
6366
6373
|
}, [
|
|
6367
|
-
t.$slots.title ? (d(), b("div",
|
|
6374
|
+
t.$slots.title ? (d(), b("div", Ui, [
|
|
6368
6375
|
N(t.$slots, "title")
|
|
6369
6376
|
])) : L("", !0),
|
|
6370
|
-
g("div",
|
|
6377
|
+
g("div", zi, [
|
|
6371
6378
|
N(t.$slots, "default")
|
|
6372
6379
|
])
|
|
6373
6380
|
], 2));
|
|
6374
6381
|
}
|
|
6375
|
-
}),
|
|
6382
|
+
}), Bi = {}, Fi = { class: "cl-w-full" }, ji = {
|
|
6376
6383
|
key: 0,
|
|
6377
6384
|
class: "cl-font-bold cl-mb-4 cl-select-none"
|
|
6378
|
-
},
|
|
6379
|
-
function
|
|
6380
|
-
return d(), b("div",
|
|
6381
|
-
o.$slots.title ? (d(), b("div",
|
|
6385
|
+
}, Pi = { class: "cl-flex cl-flex-wrap cl-space-y-2" };
|
|
6386
|
+
function Gi(o, t) {
|
|
6387
|
+
return d(), b("div", Fi, [
|
|
6388
|
+
o.$slots.title ? (d(), b("div", ji, [
|
|
6382
6389
|
N(o.$slots, "title")
|
|
6383
6390
|
])) : L("", !0),
|
|
6384
|
-
g("span",
|
|
6391
|
+
g("span", Pi, [
|
|
6385
6392
|
N(o.$slots, "default")
|
|
6386
6393
|
])
|
|
6387
6394
|
]);
|
|
6388
6395
|
}
|
|
6389
|
-
const
|
|
6390
|
-
function
|
|
6391
|
-
return d(), b("div",
|
|
6396
|
+
const Hi = /* @__PURE__ */ ye(Bi, [["render", Gi]]), Zi = {}, Wi = { class: "cl-cursor-pointer cl-transition-colors cl-w-full hover:cl-text-primary-darker" };
|
|
6397
|
+
function Ki(o, t) {
|
|
6398
|
+
return d(), b("div", Wi, [
|
|
6392
6399
|
N(o.$slots, "default")
|
|
6393
6400
|
]);
|
|
6394
6401
|
}
|
|
6395
|
-
const Qi = /* @__PURE__ */
|
|
6402
|
+
const Qi = /* @__PURE__ */ ye(Zi, [["render", Ki]]), _i = /* @__PURE__ */ G({
|
|
6396
6403
|
__name: "cl-ui-tab",
|
|
6397
6404
|
props: {
|
|
6398
6405
|
colour: { default: "default" },
|
|
@@ -6457,7 +6464,7 @@ const Qi = /* @__PURE__ */ he(Wi, [["render", _i]]), xi = /* @__PURE__ */ G({
|
|
|
6457
6464
|
class: "cl-bg-white cl-cursor-pointer cl-float-left cl-h-11 cl-w-4",
|
|
6458
6465
|
onClick: F[0] || (F[0] = (q) => y("left"))
|
|
6459
6466
|
}, [
|
|
6460
|
-
k(m(
|
|
6467
|
+
k(m(Y), {
|
|
6461
6468
|
icon: "ph:caret-left",
|
|
6462
6469
|
class: "cl-mt-4 cl-text-secondary-default"
|
|
6463
6470
|
})
|
|
@@ -6479,7 +6486,7 @@ const Qi = /* @__PURE__ */ he(Wi, [["render", _i]]), xi = /* @__PURE__ */ G({
|
|
|
6479
6486
|
class: "cl-bg-white cl-cursor-pointer cl-float-right cl-h-11 cl-relative cl-w-4",
|
|
6480
6487
|
onClick: F[1] || (F[1] = (q) => y("right"))
|
|
6481
6488
|
}, [
|
|
6482
|
-
k(m(
|
|
6489
|
+
k(m(Y), {
|
|
6483
6490
|
icon: "ph:caret-right",
|
|
6484
6491
|
class: "cl-mt-4 cl-text-secondary-default"
|
|
6485
6492
|
})
|
|
@@ -6496,7 +6503,7 @@ const Qi = /* @__PURE__ */ he(Wi, [["render", _i]]), xi = /* @__PURE__ */ G({
|
|
|
6496
6503
|
])
|
|
6497
6504
|
], 2));
|
|
6498
6505
|
}
|
|
6499
|
-
}), Yi = ["inert"],
|
|
6506
|
+
}), Yi = ["inert"], xi = /* @__PURE__ */ G({
|
|
6500
6507
|
__name: "cl-ui-tab-header",
|
|
6501
6508
|
props: {
|
|
6502
6509
|
open: { type: Boolean },
|
|
@@ -6526,33 +6533,33 @@ const Qi = /* @__PURE__ */ he(Wi, [["render", _i]]), xi = /* @__PURE__ */ G({
|
|
|
6526
6533
|
])
|
|
6527
6534
|
], 10, Yi));
|
|
6528
6535
|
}
|
|
6529
|
-
}),
|
|
6536
|
+
}), Ji = { key: 0 }, Xi = { class: "cl-font-bold cl-mb-4" }, ec = /* @__PURE__ */ G({
|
|
6530
6537
|
__name: "cl-ui-tab-content",
|
|
6531
6538
|
props: {
|
|
6532
6539
|
open: { type: Boolean },
|
|
6533
6540
|
title: { default: "" }
|
|
6534
6541
|
},
|
|
6535
6542
|
setup(o) {
|
|
6536
|
-
return (t, l) => t.open ? (d(), b("div",
|
|
6543
|
+
return (t, l) => t.open ? (d(), b("div", Ji, [
|
|
6537
6544
|
t.$slots.header || t.title ? N(t.$slots, "header", { key: 0 }, () => [
|
|
6538
|
-
g("h4",
|
|
6545
|
+
g("h4", Xi, V(t.title), 1)
|
|
6539
6546
|
]) : L("", !0),
|
|
6540
6547
|
N(t.$slots, "default")
|
|
6541
6548
|
])) : L("", !0);
|
|
6542
6549
|
}
|
|
6543
|
-
}),
|
|
6550
|
+
}), lc = [
|
|
6544
6551
|
"default",
|
|
6545
6552
|
"primary",
|
|
6546
6553
|
"secondary",
|
|
6547
6554
|
"danger",
|
|
6548
6555
|
"blue"
|
|
6549
|
-
],
|
|
6556
|
+
], tc = [
|
|
6550
6557
|
"left",
|
|
6551
6558
|
"right"
|
|
6552
|
-
],
|
|
6559
|
+
], oc = [
|
|
6553
6560
|
"horizontal",
|
|
6554
6561
|
"vertical"
|
|
6555
|
-
],
|
|
6562
|
+
], ac = { class: "cl-block cl-h-full cl-w-full" }, nc = ["multiple", "accept", "disabled"], sc = ["multiple", "accept", "disabled"], rc = /* @__PURE__ */ G({
|
|
6556
6563
|
inheritAttrs: !1,
|
|
6557
6564
|
__name: "cl-ui-file-uploader",
|
|
6558
6565
|
props: {
|
|
@@ -6596,8 +6603,8 @@ const Qi = /* @__PURE__ */ he(Wi, [["render", _i]]), xi = /* @__PURE__ */ G({
|
|
|
6596
6603
|
function a() {
|
|
6597
6604
|
p.value && (p.value.value = ""), s.value && (s.value.value = "");
|
|
6598
6605
|
}
|
|
6599
|
-
return (i, f) => (d(), b("div",
|
|
6600
|
-
i.uploaderType === "dragDrop" ? (d(), b("label",
|
|
6606
|
+
return (i, f) => (d(), b("div", ac, [
|
|
6607
|
+
i.uploaderType === "dragDrop" ? (d(), b("label", _({ key: 0 }, i.$attrs, {
|
|
6601
6608
|
role: "button",
|
|
6602
6609
|
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", {
|
|
6603
6610
|
"cl-bg-grey-3 cl-border-grey-5 cl-cursor-default": i.disabled === !0,
|
|
@@ -6605,7 +6612,7 @@ const Qi = /* @__PURE__ */ he(Wi, [["render", _i]]), xi = /* @__PURE__ */ G({
|
|
|
6605
6612
|
"cl-bg-opacity-40 hover:cl-bg-opacity-40": u.value === !0 && i.disabled === !1,
|
|
6606
6613
|
"cl-bg-opacity-10 hover:cl-bg-opacity-40": u.value === !1 && i.disabled === !1
|
|
6607
6614
|
}],
|
|
6608
|
-
onDrop:
|
|
6615
|
+
onDrop: oe(r, ["prevent"]),
|
|
6609
6616
|
onDragenter: f[0] || (f[0] = (y) => u.value = !0),
|
|
6610
6617
|
onDragleave: f[1] || (f[1] = (y) => u.value = !1)
|
|
6611
6618
|
}), [
|
|
@@ -6618,7 +6625,7 @@ const Qi = /* @__PURE__ */ he(Wi, [["render", _i]]), xi = /* @__PURE__ */ G({
|
|
|
6618
6625
|
accept: i.acceptedFileTypes,
|
|
6619
6626
|
disabled: i.disabled,
|
|
6620
6627
|
onInput: n
|
|
6621
|
-
}, null, 40,
|
|
6628
|
+
}, null, 40, nc),
|
|
6622
6629
|
N(i.$slots, "default")
|
|
6623
6630
|
], 16)) : (d(), b("input", {
|
|
6624
6631
|
key: 1,
|
|
@@ -6633,10 +6640,10 @@ const Qi = /* @__PURE__ */ he(Wi, [["render", _i]]), xi = /* @__PURE__ */ G({
|
|
|
6633
6640
|
accept: i.acceptedFileTypes,
|
|
6634
6641
|
disabled: i.disabled,
|
|
6635
6642
|
onInput: n
|
|
6636
|
-
}, null, 42,
|
|
6643
|
+
}, null, 42, sc))
|
|
6637
6644
|
]));
|
|
6638
6645
|
}
|
|
6639
|
-
}),
|
|
6646
|
+
}), ic = /* @__PURE__ */ G({
|
|
6640
6647
|
inheritAttrs: !1,
|
|
6641
6648
|
__name: "cl-ui-toggle",
|
|
6642
6649
|
props: /* @__PURE__ */ fe({
|
|
@@ -6668,7 +6675,7 @@ const Qi = /* @__PURE__ */ he(Wi, [["render", _i]]), xi = /* @__PURE__ */ G({
|
|
|
6668
6675
|
N(p.$slots, "label")
|
|
6669
6676
|
]),
|
|
6670
6677
|
default: M(() => [
|
|
6671
|
-
g("div",
|
|
6678
|
+
g("div", _(p.$attrs, {
|
|
6672
6679
|
class: ["cl-flex", {
|
|
6673
6680
|
"cl-gap-0 [&_button:not(:last-of-type)]:cl-border-r-0 cl-flex-wrap [&_button:first-of-type]:cl-rounded-l-lg [&_button:last-of-type]:cl-rounded-r-lg": p.orientation === "horizontal",
|
|
6674
6681
|
"cl-gap-1 cl-flex-col ": p.orientation === "vertical"
|
|
@@ -6680,7 +6687,7 @@ const Qi = /* @__PURE__ */ he(Wi, [["render", _i]]), xi = /* @__PURE__ */ G({
|
|
|
6680
6687
|
_: 3
|
|
6681
6688
|
}, 8, ["show-required-asterisk"]));
|
|
6682
6689
|
}
|
|
6683
|
-
}),
|
|
6690
|
+
}), cc = /* @__PURE__ */ G({
|
|
6684
6691
|
__name: "cl-ui-toggle-button",
|
|
6685
6692
|
props: {
|
|
6686
6693
|
isSelected: { type: Boolean },
|
|
@@ -6700,19 +6707,44 @@ const Qi = /* @__PURE__ */ he(Wi, [["render", _i]]), xi = /* @__PURE__ */ G({
|
|
|
6700
6707
|
_: 3
|
|
6701
6708
|
}, 8, ["class"]));
|
|
6702
6709
|
}
|
|
6703
|
-
}), dc = {
|
|
6710
|
+
}), uc = ["id"], dc = /* @__PURE__ */ G({
|
|
6711
|
+
inheritAttrs: !1,
|
|
6712
|
+
__name: "cl-ui-radio",
|
|
6713
|
+
props: {
|
|
6714
|
+
id: {},
|
|
6715
|
+
isSelected: { type: Boolean }
|
|
6716
|
+
},
|
|
6717
|
+
emits: ["click"],
|
|
6718
|
+
setup(o) {
|
|
6719
|
+
return (t, l) => (d(), b("div", _({ id: t.id }, t.$attrs, {
|
|
6720
|
+
tabindex: "0",
|
|
6721
|
+
class: "cl-cursor-pointer cl-flex cl-gap-2 cl-items-center cl-p-0.5",
|
|
6722
|
+
onKeydown: l[0] || (l[0] = he(oe((e) => t.$emit("click"), ["prevent"]), ["enter"])),
|
|
6723
|
+
onClick: l[1] || (l[1] = (e) => t.$emit("click"))
|
|
6724
|
+
}), [
|
|
6725
|
+
g("div", {
|
|
6726
|
+
class: D(["cl-border cl-border-grey-3 cl-p-1 cl-rounded-full", { "cl-bg-primary-default cl-border-primary-darker": t.isSelected }])
|
|
6727
|
+
}, [
|
|
6728
|
+
g("div", {
|
|
6729
|
+
class: D(["cl-h-1.5 cl-rounded-full cl-w-1.5", { "cl-bg-black": t.isSelected }])
|
|
6730
|
+
}, null, 2)
|
|
6731
|
+
], 2),
|
|
6732
|
+
N(t.$slots, "default")
|
|
6733
|
+
], 16, uc));
|
|
6734
|
+
}
|
|
6735
|
+
}), pc = {
|
|
6704
6736
|
key: 0,
|
|
6705
6737
|
class: "cl-flex-1"
|
|
6706
|
-
},
|
|
6738
|
+
}, fc = {
|
|
6707
6739
|
key: 0,
|
|
6708
6740
|
class: "cl-mb-1 cl-mt-0.5"
|
|
6709
|
-
},
|
|
6741
|
+
}, mc = { class: "cl-overflow-y-auto cl-w-full" }, gc = {
|
|
6710
6742
|
key: 1,
|
|
6711
6743
|
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"
|
|
6712
|
-
},
|
|
6744
|
+
}, vc = {
|
|
6713
6745
|
key: 0,
|
|
6714
6746
|
class: "cl-flex cl-flex-shrink-0 cl-w-16"
|
|
6715
|
-
},
|
|
6747
|
+
}, bc = /* @__PURE__ */ G({
|
|
6716
6748
|
inheritAttrs: !1,
|
|
6717
6749
|
__name: "cl-ui-menu",
|
|
6718
6750
|
props: {
|
|
@@ -6738,10 +6770,10 @@ const Qi = /* @__PURE__ */ he(Wi, [["render", _i]]), xi = /* @__PURE__ */ G({
|
|
|
6738
6770
|
t.value = !t.value;
|
|
6739
6771
|
}
|
|
6740
6772
|
const c = I(!1), { lg: u } = Ut(zt), p = I();
|
|
6741
|
-
return
|
|
6773
|
+
return Qe(p, () => {
|
|
6742
6774
|
t.value === !0 && u.value === !1 && (t.value = !1);
|
|
6743
6775
|
}), (s, a) => (d(), b(K, null, [
|
|
6744
|
-
g("div",
|
|
6776
|
+
g("div", _({
|
|
6745
6777
|
ref_key: "menuElement",
|
|
6746
6778
|
ref: p
|
|
6747
6779
|
}, s.$attrs, {
|
|
@@ -6755,7 +6787,7 @@ const Qi = /* @__PURE__ */ he(Wi, [["render", _i]]), xi = /* @__PURE__ */ G({
|
|
|
6755
6787
|
"hover:cl-bg-primary-lighter cl-cursor-pointer cl-transition-colors": t.value === !1,
|
|
6756
6788
|
"cl-gap-3": t.value
|
|
6757
6789
|
}]),
|
|
6758
|
-
onClick: a[1] || (a[1] =
|
|
6790
|
+
onClick: a[1] || (a[1] = oe(() => {
|
|
6759
6791
|
t.value === !1 && n();
|
|
6760
6792
|
}, ["self"])),
|
|
6761
6793
|
onMouseenter: a[2] || (a[2] = (i) => c.value = !0),
|
|
@@ -6767,9 +6799,9 @@ const Qi = /* @__PURE__ */ he(Wi, [["render", _i]]), xi = /* @__PURE__ */ G({
|
|
|
6767
6799
|
"cl-rounded-lg hover:cl-bg-grey-1 cl-text-grey-3 hover:cl-text-secondary-default cl-transition-colors cl-cursor-pointer": t.value,
|
|
6768
6800
|
"cl-text-secondary-default": t.value === !1
|
|
6769
6801
|
}),
|
|
6770
|
-
onClick: a[0] || (a[0] =
|
|
6802
|
+
onClick: a[0] || (a[0] = oe(() => n(), ["stop"]))
|
|
6771
6803
|
}, null, 8, ["icon-value", "class"]),
|
|
6772
|
-
t.value && s.$slots.menuHeader ? (d(), b("div",
|
|
6804
|
+
t.value && s.$slots.menuHeader ? (d(), b("div", pc, [
|
|
6773
6805
|
N(s.$slots, "menuHeader")
|
|
6774
6806
|
])) : L("", !0)
|
|
6775
6807
|
], 34),
|
|
@@ -6789,24 +6821,24 @@ const Qi = /* @__PURE__ */ he(Wi, [["render", _i]]), xi = /* @__PURE__ */ G({
|
|
|
6789
6821
|
"cl-text-secondary-default": t.value === !1
|
|
6790
6822
|
})
|
|
6791
6823
|
}, null, 8, ["class"]),
|
|
6792
|
-
t.value ? (d(), b("div",
|
|
6824
|
+
t.value ? (d(), b("div", fc, [
|
|
6793
6825
|
N(s.$slots, "searchInput")
|
|
6794
6826
|
])) : L("", !0)
|
|
6795
6827
|
], 2)) : L("", !0),
|
|
6796
|
-
g("div",
|
|
6828
|
+
g("div", mc, [
|
|
6797
6829
|
N(s.$slots, "default", ie(pe({ toggleOpen: r, groupIsOpen: e })))
|
|
6798
6830
|
]),
|
|
6799
|
-
s.$slots.footer ? (d(), b("div",
|
|
6831
|
+
s.$slots.footer ? (d(), b("div", gc, [
|
|
6800
6832
|
N(s.$slots, "footer", ie(pe({ toggleOpen: r, groupIsOpen: e })))
|
|
6801
6833
|
])) : L("", !0)
|
|
6802
6834
|
], 16),
|
|
6803
|
-
m(u) === !1 && t.value ? (d(), b("div",
|
|
6835
|
+
m(u) === !1 && t.value ? (d(), b("div", vc)) : L("", !0)
|
|
6804
6836
|
], 64));
|
|
6805
6837
|
}
|
|
6806
|
-
}),
|
|
6838
|
+
}), hc = { class: "cl-overflow-hidden cl-w-full" }, yc = ["title"], wc = { class: "cl-flex cl-flex-1 cl-items-center cl-justify-between" }, $c = { class: "cl-font-semibold" }, kc = { class: "cl-overflow-hidden" }, Cc = {
|
|
6807
6839
|
key: 0,
|
|
6808
6840
|
class: "cl-mt-1"
|
|
6809
|
-
},
|
|
6841
|
+
}, Sc = /* @__PURE__ */ G({
|
|
6810
6842
|
__name: "cl-ui-menu-group",
|
|
6811
6843
|
props: {
|
|
6812
6844
|
title: {},
|
|
@@ -6818,15 +6850,15 @@ const Qi = /* @__PURE__ */ he(Wi, [["render", _i]]), xi = /* @__PURE__ */ G({
|
|
|
6818
6850
|
setup(o) {
|
|
6819
6851
|
return (t, l) => {
|
|
6820
6852
|
const e = Te("icon");
|
|
6821
|
-
return d(), b("div",
|
|
6853
|
+
return d(), b("div", hc, [
|
|
6822
6854
|
g("div", {
|
|
6823
6855
|
class: "cl-cursor-pointer cl-flex cl-items-center cl-rounded-lg cl-text-secondary-default cl-transition-colors hover:cl-bg-primary-lighter",
|
|
6824
6856
|
title: t.title,
|
|
6825
6857
|
onClick: l[0] || (l[0] = (r) => t.$emit("toggle-open"))
|
|
6826
6858
|
}, [
|
|
6827
6859
|
k(m(rl), { "icon-value": t.iconValue }, null, 8, ["icon-value"]),
|
|
6828
|
-
te(g("div",
|
|
6829
|
-
g("span",
|
|
6860
|
+
te(g("div", wc, [
|
|
6861
|
+
g("span", $c, V(t.title), 1),
|
|
6830
6862
|
t.$slots.default ? (d(), P(e, {
|
|
6831
6863
|
key: 0,
|
|
6832
6864
|
icon: t.open ? "ph:caret-up" : "ph:caret-down",
|
|
@@ -6835,9 +6867,9 @@ const Qi = /* @__PURE__ */ he(Wi, [["render", _i]]), xi = /* @__PURE__ */ G({
|
|
|
6835
6867
|
], 512), [
|
|
6836
6868
|
[ue, t.menuOpen]
|
|
6837
6869
|
])
|
|
6838
|
-
], 8,
|
|
6839
|
-
g("div",
|
|
6840
|
-
t.open && t.menuOpen === !0 ? (d(), b("div",
|
|
6870
|
+
], 8, yc),
|
|
6871
|
+
g("div", kc, [
|
|
6872
|
+
t.open && t.menuOpen === !0 ? (d(), b("div", Cc, [
|
|
6841
6873
|
k(m($t), null, {
|
|
6842
6874
|
default: M(() => [
|
|
6843
6875
|
N(t.$slots, "default")
|
|
@@ -6849,7 +6881,7 @@ const Qi = /* @__PURE__ */ he(Wi, [["render", _i]]), xi = /* @__PURE__ */ G({
|
|
|
6849
6881
|
]);
|
|
6850
6882
|
};
|
|
6851
6883
|
}
|
|
6852
|
-
}),
|
|
6884
|
+
}), Tc = { class: "cl-flex cl-flex-shrink-0 cl-h-12 cl-items-center cl-justify-center cl-w-12" }, Pl = "24", rl = /* @__PURE__ */ G({
|
|
6853
6885
|
__name: "cl-ui-menu-icon",
|
|
6854
6886
|
props: {
|
|
6855
6887
|
iconValue: {}
|
|
@@ -6857,7 +6889,7 @@ const Qi = /* @__PURE__ */ he(Wi, [["render", _i]]), xi = /* @__PURE__ */ G({
|
|
|
6857
6889
|
setup(o) {
|
|
6858
6890
|
return (t, l) => {
|
|
6859
6891
|
const e = Te("icon");
|
|
6860
|
-
return d(), b("div",
|
|
6892
|
+
return d(), b("div", Tc, [
|
|
6861
6893
|
k(e, {
|
|
6862
6894
|
icon: t.iconValue,
|
|
6863
6895
|
width: Pl,
|
|
@@ -6866,44 +6898,44 @@ const Qi = /* @__PURE__ */ he(Wi, [["render", _i]]), xi = /* @__PURE__ */ G({
|
|
|
6866
6898
|
]);
|
|
6867
6899
|
};
|
|
6868
6900
|
}
|
|
6869
|
-
}),
|
|
6901
|
+
}), qc = { class: "cl-flex cl-flex-row" }, Oc = /* @__PURE__ */ g("div", { class: "cl-flex cl-flex-shrink-0 cl-justify-center cl-w-[47px]" }, [
|
|
6870
6902
|
/* @__PURE__ */ g("div", { class: "cl-bg-grey-2 cl-w-[1px]" }, " ")
|
|
6871
|
-
], -1),
|
|
6903
|
+
], -1), Dc = { class: "cl-flex cl-flex-1 cl-flex-col cl-pl-1" }, $t = /* @__PURE__ */ G({
|
|
6872
6904
|
__name: "cl-ui-menu-section",
|
|
6873
6905
|
setup(o) {
|
|
6874
|
-
return (t, l) => (d(), b("div",
|
|
6875
|
-
|
|
6876
|
-
g("div",
|
|
6906
|
+
return (t, l) => (d(), b("div", qc, [
|
|
6907
|
+
Oc,
|
|
6908
|
+
g("div", Dc, [
|
|
6877
6909
|
N(t.$slots, "default")
|
|
6878
6910
|
])
|
|
6879
6911
|
]));
|
|
6880
6912
|
}
|
|
6881
|
-
}),
|
|
6913
|
+
}), Ec = { class: "cl-cursor-pointer cl-text-secondary-default cl-text-sm cl-transition-colors cl-w-full hover:cl-text-primary-dark" }, Ac = /* @__PURE__ */ G({
|
|
6882
6914
|
__name: "cl-ui-menu-item",
|
|
6883
6915
|
setup(o) {
|
|
6884
|
-
return (t, l) => (d(), b("div",
|
|
6916
|
+
return (t, l) => (d(), b("div", Ec, [
|
|
6885
6917
|
N(t.$slots, "default")
|
|
6886
6918
|
]));
|
|
6887
6919
|
}
|
|
6888
|
-
}),
|
|
6920
|
+
}), Vc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6889
6921
|
__proto__: null,
|
|
6890
|
-
FilterOperation:
|
|
6922
|
+
FilterOperation: ae,
|
|
6891
6923
|
allQuickDates: rt,
|
|
6892
6924
|
buttonColours: no,
|
|
6893
6925
|
buttonSizes: so,
|
|
6894
6926
|
cardSizes: co,
|
|
6895
6927
|
clUISlectInput: sl,
|
|
6896
6928
|
clUiAccordion: Pt,
|
|
6897
|
-
clUiAccordionHeader:
|
|
6929
|
+
clUiAccordionHeader: Yt,
|
|
6898
6930
|
clUiAccordionItem: Wt,
|
|
6899
6931
|
clUiApp: eo,
|
|
6900
6932
|
clUiButton: $e,
|
|
6901
6933
|
clUiCard: io,
|
|
6902
6934
|
clUiComboBox: Go,
|
|
6903
|
-
clUiFileUploader:
|
|
6935
|
+
clUiFileUploader: rc,
|
|
6904
6936
|
clUiFooter: Xo,
|
|
6905
|
-
clUiGrid:
|
|
6906
|
-
clUiGridLite:
|
|
6937
|
+
clUiGrid: Ws,
|
|
6938
|
+
clUiGridLite: _s,
|
|
6907
6939
|
clUiGridLiteBody: bt,
|
|
6908
6940
|
clUiGridLiteBodySkeleton: gt,
|
|
6909
6941
|
clUiGridLiteCell: ht,
|
|
@@ -6911,66 +6943,67 @@ const Qi = /* @__PURE__ */ he(Wi, [["render", _i]]), xi = /* @__PURE__ */ G({
|
|
|
6911
6943
|
clUiGridLiteFooterSkeleton: yt,
|
|
6912
6944
|
clUiGridLiteHeader: mt,
|
|
6913
6945
|
clUiGridLiteRow: vt,
|
|
6914
|
-
clUiHeader:
|
|
6915
|
-
clUiHeaderMenu:
|
|
6916
|
-
clUiInput:
|
|
6946
|
+
clUiHeader: Cr,
|
|
6947
|
+
clUiHeaderMenu: Ar,
|
|
6948
|
+
clUiInput: ni,
|
|
6917
6949
|
clUiInputCheckbox: dl,
|
|
6918
6950
|
clUiInputDateRange: ct,
|
|
6919
6951
|
clUiInputDateRangeInput: Al,
|
|
6920
6952
|
clUiInputDateTime: dt,
|
|
6921
|
-
clUiInputNumber:
|
|
6953
|
+
clUiInputNumber: xe,
|
|
6922
6954
|
clUiInputRange: Un,
|
|
6923
6955
|
clUiInputText: Re,
|
|
6924
6956
|
clUiInputTextArea: qn,
|
|
6925
|
-
clUiLanguageSwitcher:
|
|
6926
|
-
clUiLoadingSpinner:
|
|
6927
|
-
clUiLogin:
|
|
6928
|
-
clUiMenu:
|
|
6929
|
-
clUiMenuGroup:
|
|
6957
|
+
clUiLanguageSwitcher: fi,
|
|
6958
|
+
clUiLoadingSpinner: _e,
|
|
6959
|
+
clUiLogin: Di,
|
|
6960
|
+
clUiMenu: bc,
|
|
6961
|
+
clUiMenuGroup: Sc,
|
|
6930
6962
|
clUiMenuIcon: rl,
|
|
6931
|
-
clUiMenuItem:
|
|
6963
|
+
clUiMenuItem: Ac,
|
|
6932
6964
|
clUiMenuSection: $t,
|
|
6933
6965
|
clUiModal: Xl,
|
|
6934
|
-
clUiNavigation:
|
|
6935
|
-
clUiNavigationGroup:
|
|
6936
|
-
clUiNavigationIcon:
|
|
6966
|
+
clUiNavigation: Ni,
|
|
6967
|
+
clUiNavigationGroup: Li,
|
|
6968
|
+
clUiNavigationIcon: Ri,
|
|
6937
6969
|
clUiNavigationItem: Qi,
|
|
6938
|
-
clUiNavigationSection:
|
|
6970
|
+
clUiNavigationSection: Hi,
|
|
6939
6971
|
clUiNotification: Jl,
|
|
6972
|
+
clUiRadio: dc,
|
|
6940
6973
|
clUiSelect: wl,
|
|
6941
6974
|
clUiSelectOption: ze,
|
|
6942
|
-
clUiTab:
|
|
6943
|
-
clUiTabContent:
|
|
6944
|
-
clUiTabHeader:
|
|
6945
|
-
clUiToggle:
|
|
6946
|
-
clUiToggleButton:
|
|
6975
|
+
clUiTab: _i,
|
|
6976
|
+
clUiTabContent: ec,
|
|
6977
|
+
clUiTabHeader: xi,
|
|
6978
|
+
clUiToggle: ic,
|
|
6979
|
+
clUiToggleButton: cc,
|
|
6947
6980
|
currentQuickDates: He,
|
|
6948
6981
|
dateTimeCalendarTypes: ut,
|
|
6949
|
-
filterMethodTypes:
|
|
6982
|
+
filterMethodTypes: _n,
|
|
6950
6983
|
futureQuickDates: nl,
|
|
6951
|
-
gridColumnTypes:
|
|
6952
|
-
headerColour:
|
|
6984
|
+
gridColumnTypes: Wn,
|
|
6985
|
+
headerColour: Vr,
|
|
6953
6986
|
inputTextTypes: Tn,
|
|
6954
|
-
inputTypes:
|
|
6987
|
+
inputTypes: si,
|
|
6955
6988
|
isComboBoxCreateRequest: Zo,
|
|
6956
6989
|
isComboBoxItem: Ho,
|
|
6957
|
-
isFilterRequest:
|
|
6958
|
-
isFilterResponse:
|
|
6990
|
+
isFilterRequest: Jn,
|
|
6991
|
+
isFilterResponse: Xn,
|
|
6959
6992
|
isGridColumn: pt,
|
|
6960
|
-
isGridColumnArray:
|
|
6961
|
-
isLanguageArray:
|
|
6993
|
+
isGridColumnArray: Kn,
|
|
6994
|
+
isLanguageArray: ri,
|
|
6962
6995
|
isLanguageLocaleFormat: $l,
|
|
6963
|
-
modalColours:
|
|
6964
|
-
modalSizes:
|
|
6996
|
+
modalColours: Ai,
|
|
6997
|
+
modalSizes: Ei,
|
|
6965
6998
|
pastQuickDates: al,
|
|
6966
6999
|
popoverPlacements: zn,
|
|
6967
7000
|
quickDateNames: kn,
|
|
6968
7001
|
stringFormats: Qn,
|
|
6969
|
-
tabColours:
|
|
6970
|
-
tabLayout:
|
|
6971
|
-
tabScroll:
|
|
6972
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
6973
|
-
o.use(Ce), o.component("Icon",
|
|
7002
|
+
tabColours: lc,
|
|
7003
|
+
tabLayout: oc,
|
|
7004
|
+
tabScroll: tc
|
|
7005
|
+
}, Symbol.toStringTag, { value: "Module" })), Kc = (o) => {
|
|
7006
|
+
o.use(Ce), o.component("Icon", Y), Object.entries(Vc).forEach(([
|
|
6974
7007
|
t,
|
|
6975
7008
|
l
|
|
6976
7009
|
]) => {
|
|
@@ -6978,9 +7011,9 @@ const Qi = /* @__PURE__ */ he(Wi, [["render", _i]]), xi = /* @__PURE__ */ G({
|
|
|
6978
7011
|
});
|
|
6979
7012
|
};
|
|
6980
7013
|
export {
|
|
6981
|
-
|
|
7014
|
+
Wc as CitrusLimeUI,
|
|
6982
7015
|
ne as DateFormat,
|
|
6983
|
-
|
|
7016
|
+
ae as FilterOperation,
|
|
6984
7017
|
ee as NumberFormat,
|
|
6985
7018
|
rt as allQuickDates,
|
|
6986
7019
|
no as buttonColours,
|
|
@@ -6988,16 +7021,16 @@ export {
|
|
|
6988
7021
|
co as cardSizes,
|
|
6989
7022
|
sl as clUISlectInput,
|
|
6990
7023
|
Pt as clUiAccordion,
|
|
6991
|
-
|
|
7024
|
+
Yt as clUiAccordionHeader,
|
|
6992
7025
|
Wt as clUiAccordionItem,
|
|
6993
7026
|
eo as clUiApp,
|
|
6994
7027
|
$e as clUiButton,
|
|
6995
7028
|
io as clUiCard,
|
|
6996
7029
|
Go as clUiComboBox,
|
|
6997
|
-
|
|
7030
|
+
rc as clUiFileUploader,
|
|
6998
7031
|
Xo as clUiFooter,
|
|
6999
|
-
|
|
7000
|
-
|
|
7032
|
+
Ws as clUiGrid,
|
|
7033
|
+
_s as clUiGridLite,
|
|
7001
7034
|
bt as clUiGridLiteBody,
|
|
7002
7035
|
gt as clUiGridLiteBodySkeleton,
|
|
7003
7036
|
ht as clUiGridLiteCell,
|
|
@@ -7005,80 +7038,81 @@ export {
|
|
|
7005
7038
|
yt as clUiGridLiteFooterSkeleton,
|
|
7006
7039
|
mt as clUiGridLiteHeader,
|
|
7007
7040
|
vt as clUiGridLiteRow,
|
|
7008
|
-
|
|
7009
|
-
|
|
7010
|
-
|
|
7041
|
+
Cr as clUiHeader,
|
|
7042
|
+
Ar as clUiHeaderMenu,
|
|
7043
|
+
ni as clUiInput,
|
|
7011
7044
|
dl as clUiInputCheckbox,
|
|
7012
7045
|
ct as clUiInputDateRange,
|
|
7013
7046
|
Al as clUiInputDateRangeInput,
|
|
7014
7047
|
dt as clUiInputDateTime,
|
|
7015
|
-
|
|
7048
|
+
xe as clUiInputNumber,
|
|
7016
7049
|
Un as clUiInputRange,
|
|
7017
7050
|
Re as clUiInputText,
|
|
7018
7051
|
qn as clUiInputTextArea,
|
|
7019
|
-
|
|
7020
|
-
|
|
7021
|
-
|
|
7022
|
-
|
|
7023
|
-
|
|
7052
|
+
fi as clUiLanguageSwitcher,
|
|
7053
|
+
_e as clUiLoadingSpinner,
|
|
7054
|
+
Di as clUiLogin,
|
|
7055
|
+
bc as clUiMenu,
|
|
7056
|
+
Sc as clUiMenuGroup,
|
|
7024
7057
|
rl as clUiMenuIcon,
|
|
7025
|
-
|
|
7058
|
+
Ac as clUiMenuItem,
|
|
7026
7059
|
$t as clUiMenuSection,
|
|
7027
7060
|
Xl as clUiModal,
|
|
7028
|
-
|
|
7029
|
-
|
|
7030
|
-
|
|
7061
|
+
Ni as clUiNavigation,
|
|
7062
|
+
Li as clUiNavigationGroup,
|
|
7063
|
+
Ri as clUiNavigationIcon,
|
|
7031
7064
|
Qi as clUiNavigationItem,
|
|
7032
|
-
|
|
7065
|
+
Hi as clUiNavigationSection,
|
|
7033
7066
|
Jl as clUiNotification,
|
|
7067
|
+
dc as clUiRadio,
|
|
7034
7068
|
wl as clUiSelect,
|
|
7035
7069
|
ze as clUiSelectOption,
|
|
7036
|
-
|
|
7037
|
-
|
|
7038
|
-
|
|
7039
|
-
|
|
7040
|
-
|
|
7070
|
+
_i as clUiTab,
|
|
7071
|
+
ec as clUiTabContent,
|
|
7072
|
+
xi as clUiTabHeader,
|
|
7073
|
+
ic as clUiToggle,
|
|
7074
|
+
cc as clUiToggleButton,
|
|
7041
7075
|
He as currentQuickDates,
|
|
7042
7076
|
ut as dateTimeCalendarTypes,
|
|
7043
7077
|
ya as datetimeFormats,
|
|
7044
|
-
|
|
7078
|
+
Kc as default,
|
|
7045
7079
|
ka as doesNumberStringContainPart,
|
|
7046
|
-
|
|
7080
|
+
_n as filterMethodTypes,
|
|
7047
7081
|
Ee as formatNumber,
|
|
7048
7082
|
gl as formatNumberAsDecimal,
|
|
7049
7083
|
we as formatNumberAsInteger,
|
|
7050
7084
|
nl as futureQuickDates,
|
|
7051
7085
|
Tl as getMergedFormatOptions,
|
|
7052
|
-
|
|
7053
|
-
|
|
7086
|
+
Wn as gridColumnTypes,
|
|
7087
|
+
Vr as headerColour,
|
|
7054
7088
|
Ce as i18n,
|
|
7055
7089
|
Tn as inputTextTypes,
|
|
7056
|
-
|
|
7090
|
+
si as inputTypes,
|
|
7057
7091
|
Zo as isComboBoxCreateRequest,
|
|
7058
7092
|
Ho as isComboBoxItem,
|
|
7059
|
-
|
|
7060
|
-
|
|
7093
|
+
Jn as isFilterRequest,
|
|
7094
|
+
Xn as isFilterResponse,
|
|
7061
7095
|
pt as isGridColumn,
|
|
7062
|
-
|
|
7063
|
-
|
|
7096
|
+
Kn as isGridColumnArray,
|
|
7097
|
+
ri as isLanguageArray,
|
|
7064
7098
|
$l as isLanguageLocaleFormat,
|
|
7065
7099
|
ba as messages,
|
|
7066
|
-
|
|
7067
|
-
|
|
7100
|
+
Ai as modalColours,
|
|
7101
|
+
Ei as modalSizes,
|
|
7068
7102
|
ha as numberFormats,
|
|
7069
7103
|
al as pastQuickDates,
|
|
7070
7104
|
zn as popoverPlacements,
|
|
7071
7105
|
kn as quickDateNames,
|
|
7072
7106
|
Ta as scrubGroupSeparatorsFromFormattedValue,
|
|
7073
|
-
|
|
7074
|
-
|
|
7075
|
-
|
|
7076
|
-
|
|
7107
|
+
Zc as setCurrentLocale,
|
|
7108
|
+
Hc as setLocaleDateTimeFormats,
|
|
7109
|
+
Pc as setLocaleMessages,
|
|
7110
|
+
Gc as setLocaleNumberFormats,
|
|
7077
7111
|
Il as showNotification,
|
|
7078
7112
|
Qn as stringFormats,
|
|
7079
|
-
|
|
7080
|
-
|
|
7081
|
-
|
|
7113
|
+
lc as tabColours,
|
|
7114
|
+
oc as tabLayout,
|
|
7115
|
+
tc as tabScroll,
|
|
7082
7116
|
et as unformatNumber,
|
|
7083
7117
|
Aa as validateEmail,
|
|
7084
7118
|
Da as validateMaxValue,
|