@citruslime/ui 2.6.2-beta.1 → 2.6.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
1
|
import { Icon as x } from "@iconify/vue";
|
|
2
|
-
import { defineComponent as Q, ref as
|
|
2
|
+
import { defineComponent as Q, ref as I, openBlock as f, createElementBlock as y, renderSlot as V, normalizeProps as ce, guardReactiveProps as fe, Fragment as X, createElementVNode as b, normalizeClass as M, createVNode as S, unref as v, Transition as Te, withCtx as Y, withDirectives as le, mergeProps as ve, vShow as te, createBlock as G, Teleport as ll, renderList as re, toDisplayString as A, createCommentVNode as j, nextTick as Fe, computed as D, resolveComponent as tl, toHandlers as Vl, withModifiers as ne, useCssVars as Ul, vModelText as Pl, onMounted as Ze, watch as oe, vModelDynamic as Ll, toRefs as Bl, withKeys as Ee, onUnmounted as al, createTextVNode as de, watchEffect as zl, createSlots as ol, normalizeStyle as _l } from "vue";
|
|
3
3
|
import { generateStringId as xl, highlightText as Hl } from "@citruslime/utils";
|
|
4
|
-
import { useMediaQuery as Gl, unrefElement as Zl, tryOnScopeDispose as Kl, onClickOutside as
|
|
4
|
+
import { useMediaQuery as Gl, useDebounceFn as nl, unrefElement as Zl, tryOnScopeDispose as Kl, onClickOutside as rl, useTimeoutFn as $l, useWindowSize as Ql } from "@vueuse/core";
|
|
5
5
|
import { createI18n as Wl, useI18n as se } from "vue-i18n";
|
|
6
6
|
import { DateTime as H } from "luxon";
|
|
7
7
|
import { DatePicker as We } from "v-calendar";
|
|
@@ -12,7 +12,7 @@ const Yl = { class: "cl-overflow-hidden" }, Jl = /* @__PURE__ */ Q({
|
|
|
12
12
|
exclusive: { type: Boolean, default: !1 }
|
|
13
13
|
},
|
|
14
14
|
setup(a) {
|
|
15
|
-
const e = a, l =
|
|
15
|
+
const e = a, l = I([]);
|
|
16
16
|
function t(c) {
|
|
17
17
|
let r = l.value.find((o) => o.id === c);
|
|
18
18
|
return r || (r = {
|
|
@@ -46,15 +46,15 @@ const Yl = { class: "cl-overflow-hidden" }, Jl = /* @__PURE__ */ Q({
|
|
|
46
46
|
l.disabled || e("toggle");
|
|
47
47
|
}
|
|
48
48
|
return (n, c) => (f(), y(X, null, [
|
|
49
|
-
|
|
49
|
+
b("div", {
|
|
50
50
|
class: M(["cl-border-b cl-border-grey-1 cl-relative", {
|
|
51
51
|
"cl-bg-grey-0": n.disabled,
|
|
52
52
|
"cl-cursor-pointer": !n.disabled
|
|
53
53
|
}]),
|
|
54
54
|
onClick: t
|
|
55
55
|
}, [
|
|
56
|
-
|
|
57
|
-
S(
|
|
56
|
+
b("div", Xl, [
|
|
57
|
+
S(v(x), {
|
|
58
58
|
class: M(["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
|
}]),
|
|
@@ -62,14 +62,14 @@ const Yl = { class: "cl-overflow-hidden" }, Jl = /* @__PURE__ */ Q({
|
|
|
62
62
|
width: "20"
|
|
63
63
|
}, null, 8, ["class"])
|
|
64
64
|
]),
|
|
65
|
-
|
|
65
|
+
b("div", et, [
|
|
66
66
|
V(n.$slots, "title")
|
|
67
67
|
])
|
|
68
68
|
], 2),
|
|
69
|
-
|
|
69
|
+
b("div", lt, [
|
|
70
70
|
S(Te, { name: "grow-down" }, {
|
|
71
71
|
default: Y(() => [
|
|
72
|
-
le(
|
|
72
|
+
le(b("div", ve(n.$attrs, { class: "cl-ml-10 cl-p-4" }), [
|
|
73
73
|
V(n.$slots, "default")
|
|
74
74
|
], 16), [
|
|
75
75
|
[te, n.open]
|
|
@@ -91,16 +91,16 @@ function nt(a, e) {
|
|
|
91
91
|
V(a.$slots, "default")
|
|
92
92
|
]);
|
|
93
93
|
}
|
|
94
|
-
const rt = /* @__PURE__ */ we(at, [["render", nt]]),
|
|
95
|
-
function
|
|
94
|
+
const rt = /* @__PURE__ */ we(at, [["render", nt]]), Pe = I([]);
|
|
95
|
+
function il(a) {
|
|
96
96
|
const e = {
|
|
97
97
|
id: xl(),
|
|
98
98
|
...a
|
|
99
99
|
};
|
|
100
|
-
|
|
100
|
+
Pe.value.push(e), setTimeout(() => Cl(e), a.duration);
|
|
101
101
|
}
|
|
102
102
|
function Cl(a) {
|
|
103
|
-
|
|
103
|
+
Pe.value = Pe.value.filter((e) => e.id !== a.id);
|
|
104
104
|
}
|
|
105
105
|
const st = ["onClick"], it = { class: "cl-flex-1 cl-select-none cl-text-ellipsis cl-w-64" }, Ol = /* @__PURE__ */ Q({
|
|
106
106
|
inheritAttrs: !1,
|
|
@@ -111,7 +111,7 @@ const st = ["onClick"], it = { class: "cl-flex-1 cl-select-none cl-text-ellipsis
|
|
|
111
111
|
},
|
|
112
112
|
setup(a) {
|
|
113
113
|
return (e, l) => (f(), G(ll, { to: e.container }, [
|
|
114
|
-
|
|
114
|
+
b("div", {
|
|
115
115
|
class: M(["cl-fixed cl-w-80 cl-z-50", {
|
|
116
116
|
"cl-top-5 cl-left-5": e.position === "top-left",
|
|
117
117
|
"cl-top-5 cl-left-1/2": e.position === "top-centre",
|
|
@@ -121,7 +121,7 @@ const st = ["onClick"], it = { class: "cl-flex-1 cl-select-none cl-text-ellipsis
|
|
|
121
121
|
"cl-bottom-5 cl-right-5": e.position === "bottom-right"
|
|
122
122
|
}])
|
|
123
123
|
}, [
|
|
124
|
-
(f(!0), y(X, null, re(
|
|
124
|
+
(f(!0), y(X, null, re(v(Pe), (t, n) => (f(), y("div", ve(e.$attrs, {
|
|
125
125
|
key: n,
|
|
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": t.colour === "default",
|
|
@@ -130,10 +130,10 @@ const st = ["onClick"], it = { class: "cl-flex-1 cl-select-none cl-text-ellipsis
|
|
|
130
130
|
"cl-bg-danger-default": t.colour === "danger",
|
|
131
131
|
"cl-bg-warning-default": t.colour === "warning"
|
|
132
132
|
}],
|
|
133
|
-
onClick: (c) =>
|
|
133
|
+
onClick: (c) => v(Cl)(t)
|
|
134
134
|
}), [
|
|
135
|
-
|
|
136
|
-
S(
|
|
135
|
+
b("span", it, A(t.message), 1),
|
|
136
|
+
S(v(x), {
|
|
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,
|
|
@@ -155,15 +155,15 @@ const st = ["onClick"], it = { class: "cl-flex-1 cl-select-none cl-text-ellipsis
|
|
|
155
155
|
"first:cl-mt-[4.25rem]": e.$slots.header
|
|
156
156
|
})
|
|
157
157
|
}, null, 8, ["class"]),
|
|
158
|
-
|
|
158
|
+
b("div", ct, [
|
|
159
159
|
V(e.$slots, "header"),
|
|
160
|
-
|
|
160
|
+
b("div", {
|
|
161
161
|
class: M(["cl-content-start cl-flex cl-flex-nowrap cl-items-stretch cl-max-h-full cl-relative cl-w-full xl:cl-max-h-screen", {
|
|
162
162
|
"cl-pt-20": e.$slots.header
|
|
163
163
|
}])
|
|
164
164
|
}, [
|
|
165
165
|
V(e.$slots, "navigation"),
|
|
166
|
-
|
|
166
|
+
b("div", {
|
|
167
167
|
class: M(["cl-grow cl-max-h-full cl-overflow-x-hidden cl-overflow-y-auto cl-overscroll-y-none cl-w-auto", {
|
|
168
168
|
"lg:cl-pb-0": e.removePadding,
|
|
169
169
|
"lg:cl-pb-8 md:cl-px-8 cl-px-2 md:cl-pt-8 cl-pt-2": !e.removePadding
|
|
@@ -190,7 +190,7 @@ const Ke = /* @__PURE__ */ we(dt, [["render", pt], ["__scopeId", "data-v-a21dc5d
|
|
|
190
190
|
disabled: { type: Boolean, default: !1 }
|
|
191
191
|
},
|
|
192
192
|
setup(a, { expose: e }) {
|
|
193
|
-
const l =
|
|
193
|
+
const l = I(null);
|
|
194
194
|
return e({
|
|
195
195
|
focus() {
|
|
196
196
|
l.value && l.value.focus();
|
|
@@ -199,7 +199,7 @@ const Ke = /* @__PURE__ */ we(dt, [["render", pt], ["__scopeId", "data-v-a21dc5d
|
|
|
199
199
|
le(S(Ke, { class: "relative" }, null, 512), [
|
|
200
200
|
[te, t.loading]
|
|
201
201
|
]),
|
|
202
|
-
le(
|
|
202
|
+
le(b("button", ve(t.$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", {
|
|
@@ -259,7 +259,7 @@ const Ke = /* @__PURE__ */ we(dt, [["render", pt], ["__scopeId", "data-v-a21dc5d
|
|
|
259
259
|
}, [
|
|
260
260
|
V(e.$slots, "title")
|
|
261
261
|
], 2)) : j("", !0),
|
|
262
|
-
|
|
262
|
+
b("div", {
|
|
263
263
|
class: M(["cl-border-grey-2", {
|
|
264
264
|
"cl-p-2": e.size === "small",
|
|
265
265
|
"cl-p-4": e.size === "medium",
|
|
@@ -460,16 +460,16 @@ const wt = {
|
|
|
460
460
|
fallbackWarn: !1,
|
|
461
461
|
warnHtmlMessage: !1
|
|
462
462
|
});
|
|
463
|
-
function
|
|
463
|
+
function ds(a, e) {
|
|
464
464
|
return ye.global.mergeLocaleMessage(a, e), Fe();
|
|
465
465
|
}
|
|
466
|
-
function
|
|
466
|
+
function fs(a, e) {
|
|
467
467
|
return ye.global.mergeNumberFormat(a, e), Fe();
|
|
468
468
|
}
|
|
469
|
-
function
|
|
469
|
+
function ps(a, e) {
|
|
470
470
|
return ye.global.mergeDateTimeFormat(a, e), Fe();
|
|
471
471
|
}
|
|
472
|
-
function
|
|
472
|
+
function ms(a) {
|
|
473
473
|
return ye.global.locale.value = a, Fe();
|
|
474
474
|
}
|
|
475
475
|
const { t: be } = ye.global;
|
|
@@ -611,12 +611,12 @@ const Nt = {
|
|
|
611
611
|
},
|
|
612
612
|
emits: ["clear", "reset", "togglePopover"],
|
|
613
613
|
setup(a, { expose: e }) {
|
|
614
|
-
const l = a, t =
|
|
614
|
+
const l = a, t = I(null);
|
|
615
615
|
function n() {
|
|
616
616
|
var o;
|
|
617
617
|
(o = t.value) == null || o.focus();
|
|
618
618
|
}
|
|
619
|
-
const { t: c } = se(), r =
|
|
619
|
+
const { t: c } = se(), r = D(() => {
|
|
620
620
|
let o = "";
|
|
621
621
|
switch (l.type) {
|
|
622
622
|
case "date":
|
|
@@ -639,10 +639,10 @@ const Nt = {
|
|
|
639
639
|
S(i, {
|
|
640
640
|
class: "cl-border-transparent cl-col-span-4 cl-flex cl-items-center cl-justify-center",
|
|
641
641
|
disabled: o.disabled,
|
|
642
|
-
onClick: s[0] || (s[0] = (
|
|
642
|
+
onClick: s[0] || (s[0] = (m) => o.$emit("togglePopover"))
|
|
643
643
|
}, {
|
|
644
644
|
default: Y(() => [
|
|
645
|
-
S(
|
|
645
|
+
S(v(x), {
|
|
646
646
|
icon: "bi:calendar3",
|
|
647
647
|
class: M(["cl-text-xl icon", {
|
|
648
648
|
"cl-text-grey-4": !o.rangeSelected,
|
|
@@ -657,10 +657,10 @@ const Nt = {
|
|
|
657
657
|
size: "small",
|
|
658
658
|
class: "cl-border-transparent cl-flex cl-items-center cl-justify-center",
|
|
659
659
|
disabled: o.disabled,
|
|
660
|
-
onClick: s[1] || (s[1] = (
|
|
660
|
+
onClick: s[1] || (s[1] = (m) => o.$emit("clear"))
|
|
661
661
|
}, {
|
|
662
662
|
default: Y(() => [
|
|
663
|
-
S(
|
|
663
|
+
S(v(x), {
|
|
664
664
|
icon: "ph:x",
|
|
665
665
|
class: M(["clear-icon", {
|
|
666
666
|
"cl-text-grey-4": !o.rangeSelected,
|
|
@@ -671,7 +671,7 @@ const Nt = {
|
|
|
671
671
|
_: 1
|
|
672
672
|
}, 8, ["disabled"]))
|
|
673
673
|
])) : (f(), y("div", Et, [
|
|
674
|
-
|
|
674
|
+
b("input", ve({
|
|
675
675
|
ref_key: "element",
|
|
676
676
|
ref: t
|
|
677
677
|
}, o.$attrs, {
|
|
@@ -680,7 +680,7 @@ const Nt = {
|
|
|
680
680
|
disabled: o.disabled,
|
|
681
681
|
placeholder: r.value
|
|
682
682
|
}, Vl(o.events, !0)), null, 16, qt),
|
|
683
|
-
le(S(
|
|
683
|
+
le(S(v(x), {
|
|
684
684
|
class: M(["cl-absolute cl-bg-transparent cl-cursor-text cl-left-2 cl-text-grey-4 cl-top-3.5 icon", {
|
|
685
685
|
"!cl-bg-off-white": o.disabled
|
|
686
686
|
}]),
|
|
@@ -690,17 +690,17 @@ const Nt = {
|
|
|
690
690
|
[te, !o.disabled]
|
|
691
691
|
]),
|
|
692
692
|
o.disabled ? j("", !0) : (f(), y("div", At, [
|
|
693
|
-
o.type !== "time" ? (f(), G(
|
|
693
|
+
o.type !== "time" ? (f(), G(v(x), {
|
|
694
694
|
key: 0,
|
|
695
695
|
class: "cl-cursor-pointer hover:cl-text-link-light",
|
|
696
696
|
icon: "ph:arrow-counter-clockwise",
|
|
697
|
-
onClick: s[2] || (s[2] = ne((
|
|
697
|
+
onClick: s[2] || (s[2] = ne((m) => o.$emit("reset"), ["prevent"]))
|
|
698
698
|
})) : j("", !0),
|
|
699
|
-
!o.required && o.date && (o.type !== "time" || o.date !== "00:00") ? (f(), G(
|
|
699
|
+
!o.required && o.date && (o.type !== "time" || o.date !== "00:00") ? (f(), G(v(x), {
|
|
700
700
|
key: 1,
|
|
701
701
|
class: "cl-cursor-pointer clear-icon hover:cl-text-link-light md:cl-ml-0.5",
|
|
702
702
|
icon: "ph:x",
|
|
703
|
-
onClick: s[3] || (s[3] = ne((
|
|
703
|
+
onClick: s[3] || (s[3] = ne((m) => o.$emit("clear"), ["prevent"]))
|
|
704
704
|
})) : j("", !0)
|
|
705
705
|
]))
|
|
706
706
|
]));
|
|
@@ -727,7 +727,7 @@ const Ye = /* @__PURE__ */ we(Dt, [["__scopeId", "data-v-62c35053"]]), Rt = { cl
|
|
|
727
727
|
}]),
|
|
728
728
|
onClick: (i) => e("quick-date-selected", c)
|
|
729
729
|
}, [
|
|
730
|
-
|
|
730
|
+
b("span", null, A(v(l)(c.translationKey)), 1)
|
|
731
731
|
], 10, It);
|
|
732
732
|
}), 128))
|
|
733
733
|
]));
|
|
@@ -827,7 +827,7 @@ const Ye = /* @__PURE__ */ we(Dt, [["__scopeId", "data-v-62c35053"]]), Rt = { cl
|
|
|
827
827
|
], Mt = { class: "cl-p-2 cl-pt-0" }, Vt = {
|
|
828
828
|
key: 0,
|
|
829
829
|
class: "cl-mt-2 cl-opacity-20"
|
|
830
|
-
},
|
|
830
|
+
}, Ut = /* @__PURE__ */ Q({
|
|
831
831
|
__name: "cl-ui-quick-dates",
|
|
832
832
|
props: {
|
|
833
833
|
scope: {},
|
|
@@ -836,7 +836,7 @@ const Ye = /* @__PURE__ */ we(Dt, [["__scopeId", "data-v-62c35053"]]), Rt = { cl
|
|
|
836
836
|
},
|
|
837
837
|
emits: ["quick-date-selected", "apply-button-clicked"],
|
|
838
838
|
setup(a, { emit: e }) {
|
|
839
|
-
const l = a, { t } = se(), n =
|
|
839
|
+
const l = a, { t } = se(), n = D(() => {
|
|
840
840
|
const c = [];
|
|
841
841
|
switch (l.scope) {
|
|
842
842
|
case "past":
|
|
@@ -861,7 +861,7 @@ const Ye = /* @__PURE__ */ we(Dt, [["__scopeId", "data-v-62c35053"]]), Rt = { cl
|
|
|
861
861
|
return c;
|
|
862
862
|
});
|
|
863
863
|
return (c, r) => (f(), y("div", Mt, [
|
|
864
|
-
|
|
864
|
+
b("div", null, A(v(t)("quickDates.quickDatesHeader")), 1),
|
|
865
865
|
(f(!0), y(X, null, re(n.value, (o, s) => (f(), y("div", {
|
|
866
866
|
key: s,
|
|
867
867
|
class: "cl-pt-2"
|
|
@@ -875,7 +875,7 @@ const Ye = /* @__PURE__ */ we(Dt, [["__scopeId", "data-v-62c35053"]]), Rt = { cl
|
|
|
875
875
|
]))), 128))
|
|
876
876
|
]));
|
|
877
877
|
}
|
|
878
|
-
}),
|
|
878
|
+
}), Pt = /* @__PURE__ */ Q({
|
|
879
879
|
inheritAttrs: !1,
|
|
880
880
|
__name: "cl-ui-calendar",
|
|
881
881
|
props: {
|
|
@@ -892,7 +892,7 @@ const Ye = /* @__PURE__ */ we(Dt, [["__scopeId", "data-v-62c35053"]]), Rt = { cl
|
|
|
892
892
|
},
|
|
893
893
|
emits: ["update:date"],
|
|
894
894
|
setup(a, { expose: e, emit: l }) {
|
|
895
|
-
const t = a, n =
|
|
895
|
+
const t = a, n = D(() => t.timeZone ?? "UTC"), c = D({
|
|
896
896
|
get() {
|
|
897
897
|
let u = null;
|
|
898
898
|
return t.type === "time" ? u = t.date === null ? "00:00" : t.date : t.date !== null && typeof t.date == "string" ? u = H.fromISO(t.date, {
|
|
@@ -928,28 +928,28 @@ const Ye = /* @__PURE__ */ we(Dt, [["__scopeId", "data-v-62c35053"]]), Rt = { cl
|
|
|
928
928
|
let $ = O.toISO();
|
|
929
929
|
return t.timeZone === null && ($ = ($ == null ? void 0 : $.replace("Z", "")) ?? null), $;
|
|
930
930
|
}
|
|
931
|
-
const { locale: o } = se(), s =
|
|
931
|
+
const { locale: o } = se(), s = D(() => t.disabled ? !1 : {
|
|
932
932
|
visibility: "focus",
|
|
933
933
|
showDelay: 0,
|
|
934
934
|
hideDelay: 100
|
|
935
935
|
});
|
|
936
936
|
function i() {
|
|
937
|
-
let u =
|
|
937
|
+
let u = m(H.now());
|
|
938
938
|
if (t.max) {
|
|
939
939
|
const p = H.fromISO(t.max).setZone(n.value);
|
|
940
|
-
u > p && (u =
|
|
940
|
+
u > p && (u = m(p), u.equals(p) || (t.type === "date" ? u = u.minus({ days: 1 }) : u = u.minus({ minutes: 1 })));
|
|
941
941
|
}
|
|
942
942
|
if (t.min) {
|
|
943
943
|
const p = H.fromISO(t.min).setZone(n.value);
|
|
944
|
-
u < p && (u =
|
|
944
|
+
u < p && (u = m(p), u.equals(p) || (t.type === "date" ? u = u.plus({ days: 1 }) : u = u.plus({ minutes: 1 })));
|
|
945
945
|
}
|
|
946
946
|
c.value = u.toJSDate();
|
|
947
947
|
}
|
|
948
|
-
function
|
|
948
|
+
function m(u) {
|
|
949
949
|
let p = u.set({ second: 0, millisecond: 0 }).setZone(n.value);
|
|
950
950
|
return t.type === "date" && (p = p.set({ hour: 0, minute: 0 }).setZone(n.value)), p;
|
|
951
951
|
}
|
|
952
|
-
const
|
|
952
|
+
const k = D(() => {
|
|
953
953
|
const u = H.fromObject({
|
|
954
954
|
day: 3,
|
|
955
955
|
month: 4,
|
|
@@ -959,7 +959,7 @@ const Ye = /* @__PURE__ */ we(Dt, [["__scopeId", "data-v-62c35053"]]), Rt = { cl
|
|
|
959
959
|
}).setLocale(o.value);
|
|
960
960
|
let p;
|
|
961
961
|
return t.type === "date" ? p = u.toFormat("D") : t.type === "datetime" ? p = u.toFormat("f") : p = u.toFormat("t"), p.replace("2000", "YYYY").replace("20", "YY").replace("04", "MM").replace("4", "M").replace("03", "DD").replace("3", "D").replace("05", "HH").replace("5", "H").replace("06", "mm").replace("6", "m").replace("AM", "A").trim();
|
|
962
|
-
}), d =
|
|
962
|
+
}), d = I(null), h = D(() => {
|
|
963
963
|
let u;
|
|
964
964
|
if (t.date && t.type !== "dateRange")
|
|
965
965
|
u = H.fromISO(t.date, {
|
|
@@ -982,19 +982,19 @@ const Ye = /* @__PURE__ */ we(Dt, [["__scopeId", "data-v-62c35053"]]), Rt = { cl
|
|
|
982
982
|
(u = d.value) == null || u.focus();
|
|
983
983
|
}
|
|
984
984
|
});
|
|
985
|
-
const
|
|
985
|
+
const q = I(null), P = I();
|
|
986
986
|
function L(u) {
|
|
987
987
|
const p = Z(u);
|
|
988
|
-
c.value = p,
|
|
988
|
+
c.value = p, q.value = u, P.value.move(p.start);
|
|
989
989
|
}
|
|
990
990
|
function Z(u) {
|
|
991
|
-
const p = u.range, O = u.scope === "past" ? -1 : u.scope === "current" ? 0 : 1, $ = H.now().setZone(n.value).startOf(p).plus({ days: p === "day" ? O : 0, weeks: p === "week" ? O : 0, months: p === "month" ? O : 0, years: p === "year" ? O : 0 }),
|
|
991
|
+
const p = u.range, O = u.scope === "past" ? -1 : u.scope === "current" ? 0 : 1, $ = H.now().setZone(n.value).startOf(p).plus({ days: p === "day" ? O : 0, weeks: p === "week" ? O : 0, months: p === "month" ? O : 0, years: p === "year" ? O : 0 }), _ = $.endOf(p);
|
|
992
992
|
return {
|
|
993
993
|
start: $.toJSDate(),
|
|
994
|
-
end:
|
|
994
|
+
end: _.toJSDate()
|
|
995
995
|
};
|
|
996
996
|
}
|
|
997
|
-
const ae =
|
|
997
|
+
const ae = D(() => {
|
|
998
998
|
let u = "";
|
|
999
999
|
const p = c.value;
|
|
1000
1000
|
if (p !== null && Object.hasOwn(p, "start") && Object.hasOwn(p, "end")) {
|
|
@@ -1002,18 +1002,18 @@ const Ye = /* @__PURE__ */ we(Dt, [["__scopeId", "data-v-62c35053"]]), Rt = { cl
|
|
|
1002
1002
|
u = `${O} - ${$}`;
|
|
1003
1003
|
}
|
|
1004
1004
|
return u;
|
|
1005
|
-
}), N = Gl("(min-width: 768px)"), B =
|
|
1006
|
-
return (u, p) => u.type === "time" ? (f(), G(
|
|
1005
|
+
}), N = Gl("(min-width: 768px)"), B = D(() => N.value ? 2 : 1);
|
|
1006
|
+
return (u, p) => u.type === "time" ? (f(), G(v(We), {
|
|
1007
1007
|
key: 0,
|
|
1008
1008
|
modelValue: c.value,
|
|
1009
1009
|
"onUpdate:modelValue": p[1] || (p[1] = (O) => c.value = O),
|
|
1010
1010
|
modelModifiers: { string: !0 },
|
|
1011
|
-
locale:
|
|
1012
|
-
is24hr:
|
|
1011
|
+
locale: v(o),
|
|
1012
|
+
is24hr: v(o) !== "en-US",
|
|
1013
1013
|
mode: u.type,
|
|
1014
1014
|
"is-required": u.required,
|
|
1015
1015
|
"update-on-input": !1,
|
|
1016
|
-
masks: { modelValue: "HH:mm", input:
|
|
1016
|
+
masks: { modelValue: "HH:mm", input: k.value, inputTime: [k.value], inputTime24hr: [k.value] },
|
|
1017
1017
|
color: "primary",
|
|
1018
1018
|
"title-position": "left",
|
|
1019
1019
|
"hide-time-header": "",
|
|
@@ -1029,28 +1029,28 @@ const Ye = /* @__PURE__ */ we(Dt, [["__scopeId", "data-v-62c35053"]]), Rt = { cl
|
|
|
1029
1029
|
placeholder: u.placeholder,
|
|
1030
1030
|
required: u.required,
|
|
1031
1031
|
disabled: u.disabled,
|
|
1032
|
-
onClear: p[0] || (p[0] = (
|
|
1032
|
+
onClear: p[0] || (p[0] = (_) => c.value = null)
|
|
1033
1033
|
}), null, 16, ["date", "events", "type", "placeholder", "required", "disabled"])
|
|
1034
1034
|
]),
|
|
1035
1035
|
_: 1
|
|
1036
|
-
}, 8, ["modelValue", "locale", "is24hr", "mode", "is-required", "masks", "popover"])) : u.type === "dateRange" ? (f(), G(
|
|
1036
|
+
}, 8, ["modelValue", "locale", "is24hr", "mode", "is-required", "masks", "popover"])) : u.type === "dateRange" ? (f(), G(v(We), {
|
|
1037
1037
|
key: 1,
|
|
1038
1038
|
ref_key: "calendar",
|
|
1039
|
-
ref:
|
|
1039
|
+
ref: P,
|
|
1040
1040
|
modelValue: c.value,
|
|
1041
1041
|
"onUpdate:modelValue": p[3] || (p[3] = (O) => c.value = O),
|
|
1042
1042
|
modelModifiers: { range: !0 },
|
|
1043
1043
|
mode: "date",
|
|
1044
1044
|
color: "primary",
|
|
1045
1045
|
"title-position": "left",
|
|
1046
|
-
locale:
|
|
1046
|
+
locale: v(o),
|
|
1047
1047
|
timezone: n.value,
|
|
1048
1048
|
columns: B.value,
|
|
1049
1049
|
popover: s.value,
|
|
1050
1050
|
"min-date": u.min,
|
|
1051
1051
|
"max-date": u.max,
|
|
1052
|
-
"initial-page":
|
|
1053
|
-
onDayclick: p[4] || (p[4] = (O) =>
|
|
1052
|
+
"initial-page": h.value,
|
|
1053
|
+
onDayclick: p[4] || (p[4] = (O) => q.value = null)
|
|
1054
1054
|
}, {
|
|
1055
1055
|
default: Y(({ togglePopover: O }) => [
|
|
1056
1056
|
S(Ye, ve(u.$attrs, {
|
|
@@ -1064,34 +1064,34 @@ const Ye = /* @__PURE__ */ we(Dt, [["__scopeId", "data-v-62c35053"]]), Rt = { cl
|
|
|
1064
1064
|
placeholder: null,
|
|
1065
1065
|
onTogglePopover: O,
|
|
1066
1066
|
onClear: p[2] || (p[2] = ($) => {
|
|
1067
|
-
c.value = null,
|
|
1067
|
+
c.value = null, q.value = null, P.value.hidePopover();
|
|
1068
1068
|
})
|
|
1069
1069
|
}), null, 16, ["type", "required", "disabled", "range-selected", "title", "onTogglePopover"])
|
|
1070
1070
|
]),
|
|
1071
1071
|
footer: Y(() => [
|
|
1072
|
-
u.quickDateScope !== "none" ? (f(), G(
|
|
1072
|
+
u.quickDateScope !== "none" ? (f(), G(Ut, {
|
|
1073
1073
|
key: 0,
|
|
1074
1074
|
scope: u.quickDateScope,
|
|
1075
|
-
"selected-quick-date":
|
|
1075
|
+
"selected-quick-date": q.value,
|
|
1076
1076
|
"current-date-range": t.date,
|
|
1077
1077
|
onQuickDateSelected: L
|
|
1078
1078
|
}, null, 8, ["scope", "selected-quick-date", "current-date-range"])) : j("", !0)
|
|
1079
1079
|
]),
|
|
1080
1080
|
_: 1
|
|
1081
|
-
}, 8, ["modelValue", "locale", "timezone", "columns", "popover", "min-date", "max-date", "initial-page"])) : (f(), G(
|
|
1081
|
+
}, 8, ["modelValue", "locale", "timezone", "columns", "popover", "min-date", "max-date", "initial-page"])) : (f(), G(v(We), {
|
|
1082
1082
|
key: 2,
|
|
1083
1083
|
modelValue: c.value,
|
|
1084
1084
|
"onUpdate:modelValue": p[6] || (p[6] = (O) => c.value = O),
|
|
1085
|
-
locale:
|
|
1086
|
-
is24hr:
|
|
1085
|
+
locale: v(o),
|
|
1086
|
+
is24hr: v(o) !== "en-US",
|
|
1087
1087
|
timezone: n.value,
|
|
1088
1088
|
mode: u.type,
|
|
1089
1089
|
"min-date": u.min,
|
|
1090
1090
|
"max-date": u.max,
|
|
1091
|
-
"initial-page":
|
|
1091
|
+
"initial-page": h.value,
|
|
1092
1092
|
"is-required": u.required,
|
|
1093
1093
|
"update-on-input": !1,
|
|
1094
|
-
masks: { L:
|
|
1094
|
+
masks: { L: k.value, inputDateTime: [k.value], inputDateTime24hr: [k.value] },
|
|
1095
1095
|
color: "primary",
|
|
1096
1096
|
"title-position": "left",
|
|
1097
1097
|
"hide-time-header": "",
|
|
@@ -1107,7 +1107,7 @@ const Ye = /* @__PURE__ */ we(Dt, [["__scopeId", "data-v-62c35053"]]), Rt = { cl
|
|
|
1107
1107
|
placeholder: u.placeholder,
|
|
1108
1108
|
required: u.required,
|
|
1109
1109
|
disabled: u.disabled,
|
|
1110
|
-
onClear: p[5] || (p[5] = (
|
|
1110
|
+
onClear: p[5] || (p[5] = (_) => c.value = null),
|
|
1111
1111
|
onReset: i
|
|
1112
1112
|
}), null, 16, ["date", "events", "type", "placeholder", "required", "disabled"])
|
|
1113
1113
|
]),
|
|
@@ -1133,7 +1133,7 @@ function Lt(a) {
|
|
|
1133
1133
|
from: "@iconify/vue"
|
|
1134
1134
|
};
|
|
1135
1135
|
}
|
|
1136
|
-
function
|
|
1136
|
+
function vs() {
|
|
1137
1137
|
return Lt;
|
|
1138
1138
|
}
|
|
1139
1139
|
const Bt = [
|
|
@@ -1153,19 +1153,17 @@ const Bt = [
|
|
|
1153
1153
|
"text",
|
|
1154
1154
|
"url",
|
|
1155
1155
|
...De
|
|
1156
|
-
],
|
|
1157
|
-
key: 0,
|
|
1158
|
-
class: "cl-w-full"
|
|
1159
|
-
}, xt = ["min", "max", "step", "disabled"], Ht = { class: "cl-bg-transparent cl-text-center cl-text-sm cl-w-full" }, Gt = { class: "cl-bg-transparent cl-text-sm" }, Zt = { 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" }, Kt = {
|
|
1156
|
+
], zt = { class: "cl-flex cl-items-start" }, _t = { class: "cl-w-full" }, xt = ["min", "max", "step", "disabled"], Ht = { class: "cl-bg-transparent cl-text-center cl-text-sm cl-w-full" }, Gt = { class: "cl-bg-transparent cl-text-sm" }, Zt = {
|
|
1160
1157
|
key: 1,
|
|
1161
1158
|
class: "cl-emphasis-danger cl-text-sm cl-w-full"
|
|
1162
|
-
},
|
|
1159
|
+
}, Kt = /* @__PURE__ */ Q({
|
|
1163
1160
|
__name: "cl-ui-slider",
|
|
1164
1161
|
props: {
|
|
1165
1162
|
value: {},
|
|
1166
1163
|
min: {},
|
|
1167
1164
|
max: {},
|
|
1168
1165
|
step: { default: 1 },
|
|
1166
|
+
placeholder: { default: "" },
|
|
1169
1167
|
enforceStep: { type: Boolean, default: !1 },
|
|
1170
1168
|
disabled: { type: Boolean, default: !1 }
|
|
1171
1169
|
},
|
|
@@ -1174,88 +1172,93 @@ const Bt = [
|
|
|
1174
1172
|
},
|
|
1175
1173
|
setup(a, { expose: e, emit: l }) {
|
|
1176
1174
|
const t = a;
|
|
1177
|
-
|
|
1178
|
-
"
|
|
1175
|
+
Ul((d) => ({
|
|
1176
|
+
"64bbf7e6": i.value
|
|
1179
1177
|
}));
|
|
1180
|
-
const { n, t: c } = se(), r =
|
|
1178
|
+
const { n, t: c } = se(), r = I(), o = D({
|
|
1181
1179
|
get: () => t.value,
|
|
1182
|
-
set: (
|
|
1183
|
-
}), s =
|
|
1184
|
-
let
|
|
1185
|
-
return
|
|
1186
|
-
}),
|
|
1180
|
+
set: (d) => l("update:value", d ?? "")
|
|
1181
|
+
}), s = nl((d) => o.value = d || t.min, 1e3), i = D(() => {
|
|
1182
|
+
let h = ((typeof o.value == "number" ? o.value : t.min) - t.min) / (t.max - t.min) * 100;
|
|
1183
|
+
return h < 35 && h > 0 ? h < 20 ? h += 0.5 : h += 0.25 : h > 65 && h < 100 && (h > 80 ? h -= 0.5 : h -= 0.25), `${h}%`;
|
|
1184
|
+
}), m = D(() => t.min <= t.max && t.step > 0);
|
|
1187
1185
|
e({
|
|
1188
1186
|
focus() {
|
|
1189
|
-
var
|
|
1190
|
-
(
|
|
1187
|
+
var d;
|
|
1188
|
+
(d = r.value) == null || d.focus();
|
|
1191
1189
|
}
|
|
1192
1190
|
});
|
|
1193
|
-
const
|
|
1194
|
-
return (
|
|
1195
|
-
|
|
1196
|
-
|
|
1191
|
+
const k = I(!1);
|
|
1192
|
+
return (d, h) => m.value ? (f(), y("div", ce(ve({ key: 0 }, d.$attrs)), [
|
|
1193
|
+
b("div", zt, [
|
|
1194
|
+
b("span", {
|
|
1197
1195
|
class: M(["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", {
|
|
1198
|
-
"cl-bg-white cl-cursor-pointer hover:cl-border-grey-1": !
|
|
1199
|
-
"cl-bg-grey-0":
|
|
1196
|
+
"cl-bg-white cl-cursor-pointer hover:cl-border-grey-1": !d.disabled,
|
|
1197
|
+
"cl-bg-grey-0": d.disabled
|
|
1200
1198
|
}]),
|
|
1201
|
-
onClick:
|
|
1202
|
-
},
|
|
1203
|
-
|
|
1204
|
-
|
|
1199
|
+
onClick: h[0] || (h[0] = (q) => o.value = d.disabled ? o.value : d.min)
|
|
1200
|
+
}, A(v(n)(d.min, Number.isInteger(d.min) ? v(ue).INTEGER : v(ue).DECIMAL)), 3),
|
|
1201
|
+
b("div", _t, [
|
|
1202
|
+
k.value ? (f(), G(v(me), {
|
|
1205
1203
|
key: 0,
|
|
1206
1204
|
ref_key: "sliderRef",
|
|
1207
1205
|
ref: r,
|
|
1208
1206
|
modelValue: o.value,
|
|
1209
|
-
"onUpdate:modelValue":
|
|
1207
|
+
"onUpdate:modelValue": [
|
|
1208
|
+
h[1] || (h[1] = (q) => o.value = q),
|
|
1209
|
+
v(s)
|
|
1210
|
+
],
|
|
1210
1211
|
class: "cl-min-w-[8.5rem] cl-w-full",
|
|
1211
1212
|
"input-type": "number",
|
|
1212
|
-
min:
|
|
1213
|
-
max:
|
|
1214
|
-
step:
|
|
1215
|
-
disabled:
|
|
1216
|
-
|
|
1217
|
-
|
|
1213
|
+
min: d.min,
|
|
1214
|
+
max: d.max,
|
|
1215
|
+
step: d.step,
|
|
1216
|
+
disabled: d.disabled,
|
|
1217
|
+
"placeholder-text": d.placeholder,
|
|
1218
|
+
"show-validation-messages": !1
|
|
1219
|
+
}, null, 8, ["modelValue", "min", "max", "step", "disabled", "placeholder-text", "onUpdate:modelValue"])) : (f(), y(X, { key: 1 }, [
|
|
1220
|
+
le(b("input", {
|
|
1218
1221
|
ref_key: "sliderRef",
|
|
1219
1222
|
ref: r,
|
|
1220
|
-
"onUpdate:modelValue":
|
|
1223
|
+
"onUpdate:modelValue": h[2] || (h[2] = (q) => o.value = q),
|
|
1221
1224
|
class: "cl-align-middle cl-appearance-none cl-border cl-border-grey-2 cl-delay-500 cl-ease-in cl-flex-1 cl-h-5 cl-min-w-[8.5rem] cl-outline-none cl-rounded-full cl-transition-colors cl-w-full",
|
|
1222
1225
|
type: "range",
|
|
1223
|
-
min:
|
|
1224
|
-
max:
|
|
1225
|
-
step:
|
|
1226
|
-
disabled:
|
|
1226
|
+
min: d.min,
|
|
1227
|
+
max: d.max,
|
|
1228
|
+
step: d.step,
|
|
1229
|
+
disabled: d.disabled
|
|
1227
1230
|
}, null, 8, xt), [
|
|
1228
1231
|
[
|
|
1229
|
-
|
|
1232
|
+
Pl,
|
|
1230
1233
|
o.value,
|
|
1231
1234
|
void 0,
|
|
1232
1235
|
{ number: !0 }
|
|
1233
1236
|
]
|
|
1234
1237
|
]),
|
|
1235
|
-
|
|
1238
|
+
b("div", Ht, A(o.value), 1)
|
|
1236
1239
|
], 64))
|
|
1237
|
-
])
|
|
1238
|
-
|
|
1240
|
+
]),
|
|
1241
|
+
b("span", {
|
|
1239
1242
|
class: M(["cl-border cl-border-transparent cl-leading-6 cl-ml-1 cl-px-2 cl-rounded-full cl-select-none cl-shadow cl-text-center cl-text-xs", {
|
|
1240
|
-
"cl-bg-white cl-cursor-pointer hover:cl-border-grey-1": !
|
|
1241
|
-
"cl-bg-grey-0":
|
|
1243
|
+
"cl-bg-white cl-cursor-pointer hover:cl-border-grey-1": !d.disabled,
|
|
1244
|
+
"cl-bg-grey-0": d.disabled
|
|
1242
1245
|
}]),
|
|
1243
|
-
onClick:
|
|
1244
|
-
},
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
})
|
|
1246
|
+
onClick: h[3] || (h[3] = (q) => o.value = d.disabled ? o.value : d.max)
|
|
1247
|
+
}, A(v(n)(d.max, Number.isInteger(d.max) ? v(ue).INTEGER : v(ue).DECIMAL)), 3),
|
|
1248
|
+
b("div", Gt, [
|
|
1249
|
+
b("div", {
|
|
1250
|
+
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",
|
|
1251
|
+
onClick: h[4] || (h[4] = (q) => k.value = !k.value)
|
|
1252
|
+
}, [
|
|
1253
|
+
S(v(x), { icon: "ph:arrows-left-right-thin" })
|
|
1251
1254
|
])
|
|
1252
1255
|
])
|
|
1253
1256
|
])
|
|
1254
|
-
], 16)) : (f(), y("div",
|
|
1257
|
+
], 16)) : (f(), y("div", Zt, A(v(c)("slider.invalidProps")), 1));
|
|
1255
1258
|
}
|
|
1256
1259
|
});
|
|
1257
|
-
const
|
|
1258
|
-
function
|
|
1260
|
+
const Qt = /* @__PURE__ */ we(Kt, [["__scopeId", "data-v-cba99bc9"]]);
|
|
1261
|
+
function cl(a) {
|
|
1259
1262
|
let e = !1;
|
|
1260
1263
|
switch (a) {
|
|
1261
1264
|
case "email":
|
|
@@ -1272,10 +1275,10 @@ function il(a) {
|
|
|
1272
1275
|
}
|
|
1273
1276
|
return e;
|
|
1274
1277
|
}
|
|
1275
|
-
function
|
|
1278
|
+
function Wt(a) {
|
|
1276
1279
|
return a === "number" || a === "range";
|
|
1277
1280
|
}
|
|
1278
|
-
function
|
|
1281
|
+
function ul(a) {
|
|
1279
1282
|
let e = !1;
|
|
1280
1283
|
switch (a) {
|
|
1281
1284
|
case "date":
|
|
@@ -1293,7 +1296,7 @@ function cl(a) {
|
|
|
1293
1296
|
function Re(a) {
|
|
1294
1297
|
return a === "button" || a === "submit" || a === "reset";
|
|
1295
1298
|
}
|
|
1296
|
-
function
|
|
1299
|
+
function Yt(a) {
|
|
1297
1300
|
let e;
|
|
1298
1301
|
switch (a) {
|
|
1299
1302
|
case "datetime":
|
|
@@ -1312,29 +1315,29 @@ function Jt(a) {
|
|
|
1312
1315
|
}
|
|
1313
1316
|
return e;
|
|
1314
1317
|
}
|
|
1315
|
-
function
|
|
1318
|
+
function dl(a, e) {
|
|
1316
1319
|
const l = a.target;
|
|
1317
|
-
return
|
|
1320
|
+
return Wt(e) ? l.valueAsNumber : Re(e) ? l.checked : l.value;
|
|
1318
1321
|
}
|
|
1319
|
-
const
|
|
1322
|
+
const Jt = { class: "cl-flex cl-justify-between" }, Xt = { class: "cl-w-full" }, ea = {
|
|
1320
1323
|
key: 0,
|
|
1321
1324
|
class: "cl-block cl-left-auto cl-relative cl-text-danger-default"
|
|
1322
|
-
},
|
|
1325
|
+
}, la = {
|
|
1323
1326
|
key: 1,
|
|
1324
1327
|
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"
|
|
1325
|
-
},
|
|
1328
|
+
}, ta = {
|
|
1326
1329
|
key: 0,
|
|
1327
1330
|
class: "cl-relative"
|
|
1328
|
-
},
|
|
1331
|
+
}, aa = ["type", "disabled", "min", "max", "minlength", "maxlength", "step", "placeholder", "accept", "name", "autocomplete", "onBlur"], oa = { key: 0 }, na = {
|
|
1329
1332
|
key: 2,
|
|
1330
1333
|
class: "cl-max-h-[2.75rem] cl-pb-0.5"
|
|
1331
|
-
},
|
|
1334
|
+
}, ra = {
|
|
1332
1335
|
key: 0,
|
|
1333
1336
|
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"
|
|
1334
|
-
},
|
|
1337
|
+
}, sa = {
|
|
1335
1338
|
key: 1,
|
|
1336
1339
|
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"
|
|
1337
|
-
},
|
|
1340
|
+
}, ia = /* @__PURE__ */ Q({
|
|
1338
1341
|
inheritAttrs: !1,
|
|
1339
1342
|
__name: "cl-ui-input",
|
|
1340
1343
|
props: {
|
|
@@ -1369,27 +1372,27 @@ const Xt = { class: "cl-flex cl-justify-between" }, ea = { class: "cl-w-full" },
|
|
|
1369
1372
|
},
|
|
1370
1373
|
emits: ["update:model-value", "click", "focus", "input", "change", "validated"],
|
|
1371
1374
|
setup(a, { expose: e, emit: l }) {
|
|
1372
|
-
const t = a, n =
|
|
1375
|
+
const t = a, n = I(null), c = I(!1), r = I(!1), o = D(R), s = D(() => t.placeholderText.trim() !== "" ? t.placeholderText : t.label), i = I(0), m = D({
|
|
1373
1376
|
get: () => t.modelValue,
|
|
1374
|
-
set: (
|
|
1375
|
-
}),
|
|
1377
|
+
set: (g) => p(g, !1)
|
|
1378
|
+
}), k = D({
|
|
1376
1379
|
get: () => t.modelValue,
|
|
1377
|
-
set: (
|
|
1378
|
-
}), d =
|
|
1379
|
-
var
|
|
1380
|
+
set: (g) => u(g)
|
|
1381
|
+
}), d = D(() => typeof t.min == "number" ? t.min.toString() : t.min), h = D(() => typeof t.max == "number" ? t.max.toString() : t.max), q = D(() => typeof t.min == "number" || t.min === null ? t.min : parseFloat(t.min)), P = D(() => typeof t.max == "number" || t.max === null ? t.max : parseFloat(t.max)), L = D(() => t.messageWhenValid.trim() !== "" ? t.messageWhenValid : ""), Z = I(!0), ae = I(!0), N = I([]), B = D(() => {
|
|
1382
|
+
var g, F;
|
|
1380
1383
|
return [
|
|
1381
|
-
...((
|
|
1384
|
+
...((g = N.value) == null ? void 0 : g.filter((K) => ((K == null ? void 0 : K.length) ?? 0) > 0)) ?? [],
|
|
1382
1385
|
...((F = t.externalErrors) == null ? void 0 : F.filter((K) => ((K == null ? void 0 : K.length) ?? 0) > 0)) ?? []
|
|
1383
1386
|
].join(`
|
|
1384
1387
|
`);
|
|
1385
1388
|
});
|
|
1386
|
-
async function u(
|
|
1387
|
-
t.validateOn === "input" && await O(
|
|
1389
|
+
async function u(g) {
|
|
1390
|
+
t.validateOn === "input" && await O(g), l("update:model-value", g);
|
|
1388
1391
|
}
|
|
1389
|
-
async function p(
|
|
1390
|
-
t.onInputFunction !== void 0 && (
|
|
1392
|
+
async function p(g, F) {
|
|
1393
|
+
t.onInputFunction !== void 0 && (g = t.onInputFunction(g)), t.validateOn === "change" && (ae.value = !1), (F || t.validateOn === "input") && await O(g), l("update:model-value", g);
|
|
1391
1394
|
}
|
|
1392
|
-
function O(
|
|
1395
|
+
function O(g) {
|
|
1393
1396
|
const F = {
|
|
1394
1397
|
message: "",
|
|
1395
1398
|
valid: !0
|
|
@@ -1397,68 +1400,68 @@ const Xt = { class: "cl-flex cl-justify-between" }, ea = { class: "cl-w-full" },
|
|
|
1397
1400
|
t.customValidationFunction === null || t.customValidationFunction === void 0 ? new Promise((pe) => {
|
|
1398
1401
|
pe(F);
|
|
1399
1402
|
}) : new Promise((pe) => {
|
|
1400
|
-
pe(t.customValidationFunction(t.label,
|
|
1403
|
+
pe(t.customValidationFunction(t.label, g));
|
|
1401
1404
|
})
|
|
1402
1405
|
];
|
|
1403
|
-
return (typeof
|
|
1406
|
+
return (typeof g == "string" || typeof g == "number") && (K.push($t(t.min, t.inputType, t.label, g, t.timeZone)), K.push(Ct(t.max, t.inputType, t.label, g, t.timeZone))), t.isRequired && K.push(Ot(t.label, g)), t.inputType === "email" && typeof g == "string" && K.push(St(t.label, g)), Promise.all(K).then((pe) => {
|
|
1404
1407
|
const Ce = [...pe.map(($e) => $e.message)], qe = pe.some(($e) => $e.message.length > 0 && $e.valid === !1) || t.externalErrors.length > 0;
|
|
1405
|
-
ae.value = !0, qe ? (N.value = Ce, l("validated", !1,
|
|
1408
|
+
ae.value = !0, qe ? (N.value = Ce, l("validated", !1, g)) : (N.value = [], l("validated", !0, g)), Z.value = !qe;
|
|
1406
1409
|
});
|
|
1407
1410
|
}
|
|
1408
1411
|
function $() {
|
|
1409
|
-
let
|
|
1410
|
-
return t.inputType === "color" &&
|
|
1412
|
+
let g = "";
|
|
1413
|
+
return t.inputType === "color" && m.value && (t.disabled ? g = "background: #999999" : g = `background: ${m.value};`), g;
|
|
1411
1414
|
}
|
|
1412
|
-
function
|
|
1413
|
-
Re(t.inputType) ? (
|
|
1415
|
+
function _(g) {
|
|
1416
|
+
Re(t.inputType) ? (g.preventDefault(), l("click", g)) : t.inputType === "checkbox" && l("click", g);
|
|
1414
1417
|
}
|
|
1415
|
-
function
|
|
1418
|
+
function z(g) {
|
|
1416
1419
|
if (n.value) {
|
|
1417
1420
|
n.value.stepUp(), n.value.focus(), p(n.value.valueAsNumber, !1);
|
|
1418
1421
|
const F = {
|
|
1419
1422
|
target: n.value
|
|
1420
1423
|
};
|
|
1421
|
-
l("input", F, n.value.valueAsNumber), l("change",
|
|
1424
|
+
l("input", F, n.value.valueAsNumber), l("change", g, n.value.valueAsNumber);
|
|
1422
1425
|
}
|
|
1423
1426
|
}
|
|
1424
|
-
function T(
|
|
1427
|
+
function T(g) {
|
|
1425
1428
|
if (n.value) {
|
|
1426
1429
|
n.value.stepDown(), n.value.focus(), p(n.value.valueAsNumber, !1);
|
|
1427
1430
|
const F = {
|
|
1428
1431
|
target: n.value
|
|
1429
1432
|
};
|
|
1430
|
-
l("input", F, n.value.valueAsNumber), l("change",
|
|
1433
|
+
l("input", F, n.value.valueAsNumber), l("change", g, n.value.valueAsNumber);
|
|
1431
1434
|
}
|
|
1432
1435
|
}
|
|
1433
|
-
function w(
|
|
1434
|
-
c.value =
|
|
1436
|
+
function w(g) {
|
|
1437
|
+
c.value = g;
|
|
1435
1438
|
}
|
|
1436
1439
|
async function E() {
|
|
1437
|
-
r.value = !0, w(!1), t.validateOn === "change" && await O(
|
|
1440
|
+
r.value = !0, w(!1), t.validateOn === "change" && await O(m.value);
|
|
1438
1441
|
}
|
|
1439
|
-
function
|
|
1442
|
+
function U() {
|
|
1440
1443
|
i.value++;
|
|
1441
1444
|
}
|
|
1442
|
-
function C(
|
|
1443
|
-
|
|
1445
|
+
function C(g) {
|
|
1446
|
+
g.target.blur();
|
|
1444
1447
|
}
|
|
1445
|
-
function
|
|
1448
|
+
function R() {
|
|
1446
1449
|
var K;
|
|
1447
|
-
let
|
|
1450
|
+
let g = !0;
|
|
1448
1451
|
const F = o.value;
|
|
1449
|
-
return c.value ?
|
|
1452
|
+
return c.value ? g = F : r.value && ((K = m.value) == null ? void 0 : K.toString().trim()) === "" && t.requiredText.trim() !== "" && (g = !1), !t.hideRequiredAsterisk && g;
|
|
1450
1453
|
}
|
|
1451
|
-
async function J(
|
|
1452
|
-
const F =
|
|
1453
|
-
t.validateOn === "change" && await O(F), l("change",
|
|
1454
|
+
async function J(g) {
|
|
1455
|
+
const F = dl(g, t.inputType);
|
|
1456
|
+
t.validateOn === "change" && await O(F), l("change", g, F);
|
|
1454
1457
|
}
|
|
1455
1458
|
async function W() {
|
|
1456
|
-
await E(),
|
|
1459
|
+
await E(), U();
|
|
1457
1460
|
}
|
|
1458
1461
|
return Ze(() => {
|
|
1459
1462
|
t.validateImmediately && p(t.modelValue, !0);
|
|
1460
1463
|
}), oe(() => t.isRequired, () => p(t.modelValue, !0)), oe(() => t.externalErrors, async () => {
|
|
1461
|
-
await O(
|
|
1464
|
+
await O(m.value), l("update:model-value", m.value);
|
|
1462
1465
|
}), oe(
|
|
1463
1466
|
() => t.modelValue,
|
|
1464
1467
|
() => {
|
|
@@ -1466,83 +1469,83 @@ const Xt = { class: "cl-flex cl-justify-between" }, ea = { class: "cl-w-full" },
|
|
|
1466
1469
|
}
|
|
1467
1470
|
), e({
|
|
1468
1471
|
focus() {
|
|
1469
|
-
var
|
|
1470
|
-
(
|
|
1472
|
+
var g;
|
|
1473
|
+
(g = n.value) == null || g.focus();
|
|
1471
1474
|
},
|
|
1472
1475
|
blur() {
|
|
1473
|
-
var
|
|
1474
|
-
(
|
|
1476
|
+
var g;
|
|
1477
|
+
(g = n.value) == null || g.blur();
|
|
1475
1478
|
}
|
|
1476
|
-
}), (
|
|
1479
|
+
}), (g, F) => (f(), y("div", ve({ ...g.$attrs, id: void 0 }, {
|
|
1477
1480
|
key: i.value,
|
|
1478
1481
|
class: "cl-align-top cl-border-none cl-inline-block cl-text-left"
|
|
1479
1482
|
}), [
|
|
1480
|
-
|
|
1483
|
+
b("div", {
|
|
1481
1484
|
onMouseenter: F[10] || (F[10] = (K) => w(!0)),
|
|
1482
1485
|
onMouseleave: F[11] || (F[11] = (K) => w(!1))
|
|
1483
1486
|
}, [
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
le(
|
|
1487
|
-
[te,
|
|
1487
|
+
b("div", Jt, [
|
|
1488
|
+
b("div", Xt, [
|
|
1489
|
+
le(b("label", { class: "cl-block cl-mb-1 cl-text-grey-4 cl-text-xs cl-tracking-widest" }, A(g.label), 513), [
|
|
1490
|
+
[te, g.showLabel && g.label !== ""]
|
|
1488
1491
|
])
|
|
1489
1492
|
]),
|
|
1490
|
-
|
|
1491
|
-
|
|
1493
|
+
g.isRequired && o.value ? (f(), y("label", ea, " * ")) : j("", !0),
|
|
1494
|
+
g.isRequired && !o.value && g.requiredText.length ? (f(), y("label", la, A(g.requiredText), 1)) : j("", !0)
|
|
1492
1495
|
]),
|
|
1493
|
-
|
|
1494
|
-
le(
|
|
1496
|
+
g.inputType !== "range" && !v(ul)(g.inputType) ? (f(), y("div", ta, [
|
|
1497
|
+
le(b("input", ve({
|
|
1495
1498
|
ref_key: "inputElement",
|
|
1496
1499
|
ref: n,
|
|
1497
|
-
"onUpdate:modelValue": F[0] || (F[0] = (K) =>
|
|
1498
|
-
},
|
|
1500
|
+
"onUpdate:modelValue": F[0] || (F[0] = (K) => m.value = K)
|
|
1501
|
+
}, g.$attrs, {
|
|
1499
1502
|
class: ["!cl-mb-1 cl-block cl-border cl-duration-300 cl-h-full cl-transition cl-w-full focus:cl-outline-none", {
|
|
1500
|
-
"hover:!cl-border-grey-3":
|
|
1501
|
-
"!cl-cursor-default":
|
|
1503
|
+
"hover:!cl-border-grey-3": g.disabled === !1 && !v(Re)(g.inputType),
|
|
1504
|
+
"!cl-cursor-default": g.disabled,
|
|
1502
1505
|
"!cl-border-danger-default": !Z.value,
|
|
1503
|
-
"!cl-border-primary-default": Z.value &&
|
|
1504
|
-
"cl-border-grey-0 focus:cl-border-blue-light": Z.value && !
|
|
1505
|
-
"!cl-p-2":
|
|
1506
|
-
"cl-p-3 cl-rounded-lg": !
|
|
1507
|
-
[`${
|
|
1506
|
+
"!cl-border-primary-default": Z.value && g.highlightWhenValid,
|
|
1507
|
+
"cl-border-grey-0 focus:cl-border-blue-light": Z.value && !v(Re)(g.inputType),
|
|
1508
|
+
"!cl-p-2": g.inputType === "checkbox" || g.inputType === "radio",
|
|
1509
|
+
"cl-p-3 cl-rounded-lg": !v(Re)(g.inputType),
|
|
1510
|
+
[`${g.inputSpecificClasses}`]: g.inputSpecificClasses !== ""
|
|
1508
1511
|
}],
|
|
1509
1512
|
style: $(),
|
|
1510
|
-
type:
|
|
1511
|
-
disabled:
|
|
1512
|
-
min:
|
|
1513
|
-
max:
|
|
1514
|
-
minlength:
|
|
1515
|
-
maxlength:
|
|
1516
|
-
step:
|
|
1513
|
+
type: g.inputType,
|
|
1514
|
+
disabled: g.disabled,
|
|
1515
|
+
min: g.min ?? void 0,
|
|
1516
|
+
max: g.max ?? void 0,
|
|
1517
|
+
minlength: g.min !== null && v(cl)(g.inputType) ? g.min : void 0,
|
|
1518
|
+
maxlength: g.max !== null && v(cl)(g.inputType) ? g.max : void 0,
|
|
1519
|
+
step: g.step,
|
|
1517
1520
|
placeholder: s.value,
|
|
1518
|
-
accept:
|
|
1519
|
-
name:
|
|
1520
|
-
autocomplete:
|
|
1521
|
-
onClick: F[1] || (F[1] = (K) =>
|
|
1521
|
+
accept: g.fileExtensions,
|
|
1522
|
+
name: g.group,
|
|
1523
|
+
autocomplete: g.autocomplete,
|
|
1524
|
+
onClick: F[1] || (F[1] = (K) => _(K)),
|
|
1522
1525
|
onFocus: F[2] || (F[2] = (K) => l("focus")),
|
|
1523
1526
|
onBlur: ne(W, ["self"]),
|
|
1524
1527
|
onMousewheelPassive: C,
|
|
1525
1528
|
onInput: F[3] || (F[3] = (K) => {
|
|
1526
|
-
l("input", K,
|
|
1529
|
+
l("input", K, v(dl)(K, g.inputType));
|
|
1527
1530
|
}),
|
|
1528
1531
|
onChange: J
|
|
1529
|
-
}), null, 16,
|
|
1530
|
-
[Ll,
|
|
1532
|
+
}), null, 16, aa), [
|
|
1533
|
+
[Ll, m.value]
|
|
1531
1534
|
]),
|
|
1532
1535
|
S(Te, {
|
|
1533
1536
|
name: "fade",
|
|
1534
1537
|
duration: 300
|
|
1535
1538
|
}, {
|
|
1536
1539
|
default: Y(() => [
|
|
1537
|
-
|
|
1538
|
-
S(
|
|
1540
|
+
g.inputType === "number" && !g.disabled && g.showArrows ? le((f(), y("div", oa, [
|
|
1541
|
+
S(v(x), {
|
|
1539
1542
|
icon: "ph:caret-up-bold",
|
|
1540
1543
|
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",
|
|
1541
|
-
onClick:
|
|
1544
|
+
onClick: z,
|
|
1542
1545
|
onMousedown: F[4] || (F[4] = ne(() => {
|
|
1543
1546
|
}, ["prevent"]))
|
|
1544
1547
|
}),
|
|
1545
|
-
S(
|
|
1548
|
+
S(v(x), {
|
|
1546
1549
|
icon: "ph:caret-down-bold",
|
|
1547
1550
|
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",
|
|
1548
1551
|
onClick: T,
|
|
@@ -1555,55 +1558,56 @@ const Xt = { class: "cl-flex cl-justify-between" }, ea = { class: "cl-w-full" },
|
|
|
1555
1558
|
]),
|
|
1556
1559
|
_: 1
|
|
1557
1560
|
})
|
|
1558
|
-
])) :
|
|
1561
|
+
])) : v(ul)(g.inputType) ? (f(), G(v(Pt), ve({ key: 1 }, g.$attrs, {
|
|
1559
1562
|
ref_key: "inputElement",
|
|
1560
1563
|
ref: n,
|
|
1561
|
-
date:
|
|
1562
|
-
"onUpdate:date": F[6] || (F[6] = (K) =>
|
|
1564
|
+
date: k.value,
|
|
1565
|
+
"onUpdate:date": F[6] || (F[6] = (K) => k.value = K),
|
|
1563
1566
|
class: ["cl-block cl-duration-300 cl-h-fit cl-mb-1 cl-rounded-lg cl-text-sm cl-transition cl-w-full focus:cl-outline-none", {
|
|
1564
|
-
"hover:cl-border-grey-3": !
|
|
1567
|
+
"hover:cl-border-grey-3": !g.disabled && g.inputType !== "dateRange",
|
|
1565
1568
|
"!cl-border-danger-default": !Z.value,
|
|
1566
|
-
"!cl-border-primary-default": Z.value &&
|
|
1569
|
+
"!cl-border-primary-default": Z.value && g.highlightWhenValid
|
|
1567
1570
|
}],
|
|
1568
|
-
disabled:
|
|
1569
|
-
required:
|
|
1570
|
-
type:
|
|
1571
|
-
"time-zone":
|
|
1571
|
+
disabled: g.disabled,
|
|
1572
|
+
required: g.isRequired,
|
|
1573
|
+
type: v(Yt)(g.inputType),
|
|
1574
|
+
"time-zone": g.timeZone,
|
|
1572
1575
|
min: d.value,
|
|
1573
|
-
max:
|
|
1576
|
+
max: h.value,
|
|
1574
1577
|
placeholder: s.value,
|
|
1575
|
-
"initial-date":
|
|
1576
|
-
"quick-date-scope":
|
|
1578
|
+
"initial-date": g.initialDate,
|
|
1579
|
+
"quick-date-scope": g.quickDateScope,
|
|
1577
1580
|
onBlur: ne(E, ["self"]),
|
|
1578
1581
|
onFocus: F[7] || (F[7] = (K) => l("focus"))
|
|
1579
|
-
}), null, 16, ["date", "class", "disabled", "required", "type", "time-zone", "min", "max", "placeholder", "initial-date", "quick-date-scope", "onBlur"])) :
|
|
1580
|
-
S(
|
|
1582
|
+
}), null, 16, ["date", "class", "disabled", "required", "type", "time-zone", "min", "max", "placeholder", "initial-date", "quick-date-scope", "onBlur"])) : g.inputType === "range" && (typeof m.value == "number" || typeof m.value == "string") ? (f(), y("div", na, [
|
|
1583
|
+
S(v(Qt), {
|
|
1581
1584
|
ref_key: "inputElement",
|
|
1582
1585
|
ref: n,
|
|
1583
|
-
value:
|
|
1584
|
-
"onUpdate:value": F[8] || (F[8] = (K) =>
|
|
1585
|
-
min:
|
|
1586
|
-
max:
|
|
1587
|
-
step:
|
|
1586
|
+
value: m.value,
|
|
1587
|
+
"onUpdate:value": F[8] || (F[8] = (K) => m.value = K),
|
|
1588
|
+
min: q.value ?? 0,
|
|
1589
|
+
max: P.value ?? 1e3,
|
|
1590
|
+
step: g.step,
|
|
1591
|
+
placeholder: s.value,
|
|
1588
1592
|
"enforce-step": !0,
|
|
1589
|
-
disabled:
|
|
1593
|
+
disabled: g.disabled,
|
|
1590
1594
|
onBlur: ne(E, ["self"]),
|
|
1591
1595
|
onFocus: F[9] || (F[9] = (K) => l("focus"))
|
|
1592
|
-
}, null, 8, ["value", "min", "max", "step", "disabled", "onBlur"])
|
|
1596
|
+
}, null, 8, ["value", "min", "max", "step", "placeholder", "disabled", "onBlur"])
|
|
1593
1597
|
])) : j("", !0)
|
|
1594
1598
|
], 32),
|
|
1595
|
-
Z.value && L.value && ae.value ? (f(), y("div",
|
|
1596
|
-
!Z.value && B.value.length > 0 &&
|
|
1599
|
+
Z.value && L.value && ae.value ? (f(), y("div", ra, A(L.value), 1)) : j("", !0),
|
|
1600
|
+
!Z.value && B.value.length > 0 && g.showValidationMessages && ae.value ? (f(), y("div", sa, A(B.value), 1)) : j("", !0)
|
|
1597
1601
|
], 16));
|
|
1598
1602
|
}
|
|
1599
1603
|
});
|
|
1600
|
-
const me = /* @__PURE__ */ we(
|
|
1604
|
+
const me = /* @__PURE__ */ we(ia, [["__scopeId", "data-v-3ec80de1"]]);
|
|
1601
1605
|
/*!
|
|
1602
1606
|
* tabbable 6.2.0
|
|
1603
1607
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
1604
1608
|
*/
|
|
1605
|
-
var Nl = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])", "a[href]:not([inert])", "button:not([inert])", "[tabindex]:not(slot):not([inert])", "audio[controls]:not([inert])", "video[controls]:not([inert])", '[contenteditable]:not([contenteditable="false"]):not([inert])', "details>summary:first-of-type:not([inert])", "details:not([inert])"],
|
|
1606
|
-
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector,
|
|
1609
|
+
var Nl = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])", "a[href]:not([inert])", "button:not([inert])", "[tabindex]:not(slot):not([inert])", "audio[controls]:not([inert])", "video[controls]:not([inert])", '[contenteditable]:not([contenteditable="false"]):not([inert])', "details>summary:first-of-type:not([inert])", "details:not([inert])"], ze = /* @__PURE__ */ Nl.join(","), El = typeof Element > "u", Se = El ? function() {
|
|
1610
|
+
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, _e = !El && Element.prototype.getRootNode ? function(a) {
|
|
1607
1611
|
var e;
|
|
1608
1612
|
return a == null || (e = a.getRootNode) === null || e === void 0 ? void 0 : e.call(a);
|
|
1609
1613
|
} : function(a) {
|
|
@@ -1613,14 +1617,14 @@ var Nl = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
1613
1617
|
l === void 0 && (l = !0);
|
|
1614
1618
|
var n = e == null || (t = e.getAttribute) === null || t === void 0 ? void 0 : t.call(e, "inert"), c = n === "" || n === "true", r = c || l && e && a(e.parentNode);
|
|
1615
1619
|
return r;
|
|
1616
|
-
},
|
|
1620
|
+
}, ca = function(e) {
|
|
1617
1621
|
var l, t = e == null || (l = e.getAttribute) === null || l === void 0 ? void 0 : l.call(e, "contenteditable");
|
|
1618
1622
|
return t === "" || t === "true";
|
|
1619
1623
|
}, ql = function(e, l, t) {
|
|
1620
1624
|
if (xe(e))
|
|
1621
1625
|
return [];
|
|
1622
|
-
var n = Array.prototype.slice.apply(e.querySelectorAll(
|
|
1623
|
-
return l && Se.call(e,
|
|
1626
|
+
var n = Array.prototype.slice.apply(e.querySelectorAll(ze));
|
|
1627
|
+
return l && Se.call(e, ze) && n.unshift(e), n = n.filter(t), n;
|
|
1624
1628
|
}, Al = function a(e, l, t) {
|
|
1625
1629
|
for (var n = [], c = Array.from(e); c.length; ) {
|
|
1626
1630
|
var r = c.shift();
|
|
@@ -1632,15 +1636,15 @@ var Nl = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
1632
1636
|
candidates: i
|
|
1633
1637
|
});
|
|
1634
1638
|
} else {
|
|
1635
|
-
var
|
|
1636
|
-
|
|
1637
|
-
var
|
|
1638
|
-
typeof t.getShadowRoot == "function" && t.getShadowRoot(r), d = !xe(
|
|
1639
|
-
if (
|
|
1640
|
-
var
|
|
1641
|
-
t.flatten ? n.push.apply(n,
|
|
1639
|
+
var m = Se.call(r, ze);
|
|
1640
|
+
m && t.filter(r) && (l || !e.includes(r)) && n.push(r);
|
|
1641
|
+
var k = r.shadowRoot || // check for an undisclosed shadow
|
|
1642
|
+
typeof t.getShadowRoot == "function" && t.getShadowRoot(r), d = !xe(k, !1) && (!t.shadowRootFilter || t.shadowRootFilter(r));
|
|
1643
|
+
if (k && d) {
|
|
1644
|
+
var h = a(k === !0 ? r.children : k.children, !0, t);
|
|
1645
|
+
t.flatten ? n.push.apply(n, h) : n.push({
|
|
1642
1646
|
scopeParent: r,
|
|
1643
|
-
candidates:
|
|
1647
|
+
candidates: h
|
|
1644
1648
|
});
|
|
1645
1649
|
} else
|
|
1646
1650
|
c.unshift.apply(c, r.children);
|
|
@@ -1652,29 +1656,29 @@ var Nl = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
1652
1656
|
}, Oe = function(e) {
|
|
1653
1657
|
if (!e)
|
|
1654
1658
|
throw new Error("No node provided");
|
|
1655
|
-
return e.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName) ||
|
|
1656
|
-
},
|
|
1659
|
+
return e.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName) || ca(e)) && !Dl(e) ? 0 : e.tabIndex;
|
|
1660
|
+
}, ua = function(e, l) {
|
|
1657
1661
|
var t = Oe(e);
|
|
1658
1662
|
return t < 0 && l && !Dl(e) ? 0 : t;
|
|
1659
|
-
},
|
|
1663
|
+
}, da = function(e, l) {
|
|
1660
1664
|
return e.tabIndex === l.tabIndex ? e.documentOrder - l.documentOrder : e.tabIndex - l.tabIndex;
|
|
1661
1665
|
}, Rl = function(e) {
|
|
1662
1666
|
return e.tagName === "INPUT";
|
|
1663
|
-
},
|
|
1667
|
+
}, fa = function(e) {
|
|
1664
1668
|
return Rl(e) && e.type === "hidden";
|
|
1665
|
-
},
|
|
1669
|
+
}, pa = function(e) {
|
|
1666
1670
|
var l = e.tagName === "DETAILS" && Array.prototype.slice.apply(e.children).some(function(t) {
|
|
1667
1671
|
return t.tagName === "SUMMARY";
|
|
1668
1672
|
});
|
|
1669
1673
|
return l;
|
|
1670
|
-
},
|
|
1674
|
+
}, ma = function(e, l) {
|
|
1671
1675
|
for (var t = 0; t < e.length; t++)
|
|
1672
1676
|
if (e[t].checked && e[t].form === l)
|
|
1673
1677
|
return e[t];
|
|
1674
|
-
},
|
|
1678
|
+
}, va = function(e) {
|
|
1675
1679
|
if (!e.name)
|
|
1676
1680
|
return !0;
|
|
1677
|
-
var l = e.form ||
|
|
1681
|
+
var l = e.form || _e(e), t = function(o) {
|
|
1678
1682
|
return l.querySelectorAll('input[type="radio"][name="' + o + '"]');
|
|
1679
1683
|
}, n;
|
|
1680
1684
|
if (typeof window < "u" && typeof window.CSS < "u" && typeof window.CSS.escape == "function")
|
|
@@ -1685,26 +1689,26 @@ var Nl = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
1685
1689
|
} catch (r) {
|
|
1686
1690
|
return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s", r.message), !1;
|
|
1687
1691
|
}
|
|
1688
|
-
var c =
|
|
1692
|
+
var c = ma(n, e.form);
|
|
1689
1693
|
return !c || c === e;
|
|
1690
|
-
},
|
|
1694
|
+
}, ga = function(e) {
|
|
1691
1695
|
return Rl(e) && e.type === "radio";
|
|
1696
|
+
}, ba = function(e) {
|
|
1697
|
+
return ga(e) && !va(e);
|
|
1692
1698
|
}, ha = function(e) {
|
|
1693
|
-
|
|
1694
|
-
}, ya = function(e) {
|
|
1695
|
-
var l, t = e && ze(e), n = (l = t) === null || l === void 0 ? void 0 : l.host, c = !1;
|
|
1699
|
+
var l, t = e && _e(e), n = (l = t) === null || l === void 0 ? void 0 : l.host, c = !1;
|
|
1696
1700
|
if (t && t !== e) {
|
|
1697
1701
|
var r, o, s;
|
|
1698
1702
|
for (c = !!((r = n) !== null && r !== void 0 && (o = r.ownerDocument) !== null && o !== void 0 && o.contains(n) || e != null && (s = e.ownerDocument) !== null && s !== void 0 && s.contains(e)); !c && n; ) {
|
|
1699
|
-
var i,
|
|
1700
|
-
t =
|
|
1703
|
+
var i, m, k;
|
|
1704
|
+
t = _e(n), n = (i = t) === null || i === void 0 ? void 0 : i.host, c = !!((m = n) !== null && m !== void 0 && (k = m.ownerDocument) !== null && k !== void 0 && k.contains(n));
|
|
1701
1705
|
}
|
|
1702
1706
|
}
|
|
1703
1707
|
return c;
|
|
1704
|
-
},
|
|
1708
|
+
}, fl = function(e) {
|
|
1705
1709
|
var l = e.getBoundingClientRect(), t = l.width, n = l.height;
|
|
1706
1710
|
return t === 0 && n === 0;
|
|
1707
|
-
},
|
|
1711
|
+
}, ya = function(e, l) {
|
|
1708
1712
|
var t = l.displayCheck, n = l.getShadowRoot;
|
|
1709
1713
|
if (getComputedStyle(e).visibility === "hidden")
|
|
1710
1714
|
return !0;
|
|
@@ -1714,21 +1718,21 @@ var Nl = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
1714
1718
|
if (!t || t === "full" || t === "legacy-full") {
|
|
1715
1719
|
if (typeof n == "function") {
|
|
1716
1720
|
for (var o = e; e; ) {
|
|
1717
|
-
var s = e.parentElement, i =
|
|
1721
|
+
var s = e.parentElement, i = _e(e);
|
|
1718
1722
|
if (s && !s.shadowRoot && n(s) === !0)
|
|
1719
|
-
return
|
|
1723
|
+
return fl(e);
|
|
1720
1724
|
e.assignedSlot ? e = e.assignedSlot : !s && i !== e.ownerDocument ? e = i.host : e = s;
|
|
1721
1725
|
}
|
|
1722
1726
|
e = o;
|
|
1723
1727
|
}
|
|
1724
|
-
if (
|
|
1728
|
+
if (ha(e))
|
|
1725
1729
|
return !e.getClientRects().length;
|
|
1726
1730
|
if (t !== "legacy-full")
|
|
1727
1731
|
return !0;
|
|
1728
1732
|
} else if (t === "non-zero-area")
|
|
1729
|
-
return
|
|
1733
|
+
return fl(e);
|
|
1730
1734
|
return !1;
|
|
1731
|
-
},
|
|
1735
|
+
}, wa = function(e) {
|
|
1732
1736
|
if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))
|
|
1733
1737
|
for (var l = e.parentElement; l; ) {
|
|
1734
1738
|
if (l.tagName === "FIELDSET" && l.disabled) {
|
|
@@ -1746,17 +1750,17 @@ var Nl = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
1746
1750
|
return !(l.disabled || // we must do an inert look up to filter out any elements inside an inert ancestor
|
|
1747
1751
|
// because we're limited in the type of selectors we can use in JSDom (see related
|
|
1748
1752
|
// note related to `candidateSelectors`)
|
|
1749
|
-
xe(l) ||
|
|
1750
|
-
|
|
1753
|
+
xe(l) || fa(l) || ya(l, e) || // For a details element with a summary, the summary element gets the focus
|
|
1754
|
+
pa(l) || wa(l));
|
|
1751
1755
|
}, Xe = function(e, l) {
|
|
1752
|
-
return !(
|
|
1753
|
-
},
|
|
1756
|
+
return !(ba(l) || Oe(l) < 0 || !He(e, l));
|
|
1757
|
+
}, ka = function(e) {
|
|
1754
1758
|
var l = parseInt(e.getAttribute("tabindex"), 10);
|
|
1755
1759
|
return !!(isNaN(l) || l >= 0);
|
|
1756
|
-
},
|
|
1760
|
+
}, Ta = function a(e) {
|
|
1757
1761
|
var l = [], t = [];
|
|
1758
1762
|
return e.forEach(function(n, c) {
|
|
1759
|
-
var r = !!n.scopeParent, o = r ? n.scopeParent : n, s =
|
|
1763
|
+
var r = !!n.scopeParent, o = r ? n.scopeParent : n, s = ua(o, r), i = r ? a(n.candidates) : o;
|
|
1760
1764
|
s === 0 ? r ? l.push.apply(l, i) : l.push(o) : t.push({
|
|
1761
1765
|
documentOrder: c,
|
|
1762
1766
|
tabIndex: s,
|
|
@@ -1764,19 +1768,19 @@ var Nl = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
1764
1768
|
isScope: r,
|
|
1765
1769
|
content: i
|
|
1766
1770
|
});
|
|
1767
|
-
}), t.sort(
|
|
1771
|
+
}), t.sort(da).reduce(function(n, c) {
|
|
1768
1772
|
return c.isScope ? n.push.apply(n, c.content) : n.push(c.content), n;
|
|
1769
1773
|
}, []).concat(l);
|
|
1770
|
-
},
|
|
1774
|
+
}, $a = function(e, l) {
|
|
1771
1775
|
l = l || {};
|
|
1772
1776
|
var t;
|
|
1773
1777
|
return l.getShadowRoot ? t = Al([e], l.includeContainer, {
|
|
1774
1778
|
filter: Xe.bind(null, l),
|
|
1775
1779
|
flatten: !1,
|
|
1776
1780
|
getShadowRoot: l.getShadowRoot,
|
|
1777
|
-
shadowRootFilter:
|
|
1778
|
-
}) : t = ql(e, l.includeContainer, Xe.bind(null, l)),
|
|
1779
|
-
},
|
|
1781
|
+
shadowRootFilter: ka
|
|
1782
|
+
}) : t = ql(e, l.includeContainer, Xe.bind(null, l)), Ta(t);
|
|
1783
|
+
}, Ca = function(e, l) {
|
|
1780
1784
|
l = l || {};
|
|
1781
1785
|
var t;
|
|
1782
1786
|
return l.getShadowRoot ? t = Al([e], l.includeContainer, {
|
|
@@ -1787,17 +1791,17 @@ var Nl = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
1787
1791
|
}, Ne = function(e, l) {
|
|
1788
1792
|
if (l = l || {}, !e)
|
|
1789
1793
|
throw new Error("No node provided");
|
|
1790
|
-
return Se.call(e,
|
|
1791
|
-
},
|
|
1794
|
+
return Se.call(e, ze) === !1 ? !1 : Xe(l, e);
|
|
1795
|
+
}, Oa = /* @__PURE__ */ Nl.concat("iframe").join(","), Je = function(e, l) {
|
|
1792
1796
|
if (l = l || {}, !e)
|
|
1793
1797
|
throw new Error("No node provided");
|
|
1794
|
-
return Se.call(e,
|
|
1798
|
+
return Se.call(e, Oa) === !1 ? !1 : He(l, e);
|
|
1795
1799
|
};
|
|
1796
1800
|
/*!
|
|
1797
1801
|
* focus-trap 7.5.2
|
|
1798
1802
|
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
|
|
1799
1803
|
*/
|
|
1800
|
-
function
|
|
1804
|
+
function pl(a, e) {
|
|
1801
1805
|
var l = Object.keys(a);
|
|
1802
1806
|
if (Object.getOwnPropertySymbols) {
|
|
1803
1807
|
var t = Object.getOwnPropertySymbols(a);
|
|
@@ -1807,26 +1811,26 @@ function fl(a, e) {
|
|
|
1807
1811
|
}
|
|
1808
1812
|
return l;
|
|
1809
1813
|
}
|
|
1810
|
-
function
|
|
1814
|
+
function ml(a) {
|
|
1811
1815
|
for (var e = 1; e < arguments.length; e++) {
|
|
1812
1816
|
var l = arguments[e] != null ? arguments[e] : {};
|
|
1813
|
-
e % 2 ?
|
|
1814
|
-
|
|
1815
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(l)) :
|
|
1817
|
+
e % 2 ? pl(Object(l), !0).forEach(function(t) {
|
|
1818
|
+
Sa(a, t, l[t]);
|
|
1819
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(l)) : pl(Object(l)).forEach(function(t) {
|
|
1816
1820
|
Object.defineProperty(a, t, Object.getOwnPropertyDescriptor(l, t));
|
|
1817
1821
|
});
|
|
1818
1822
|
}
|
|
1819
1823
|
return a;
|
|
1820
1824
|
}
|
|
1821
|
-
function
|
|
1822
|
-
return e =
|
|
1825
|
+
function Sa(a, e, l) {
|
|
1826
|
+
return e = Ea(e), e in a ? Object.defineProperty(a, e, {
|
|
1823
1827
|
value: l,
|
|
1824
1828
|
enumerable: !0,
|
|
1825
1829
|
configurable: !0,
|
|
1826
1830
|
writable: !0
|
|
1827
1831
|
}) : a[e] = l, a;
|
|
1828
1832
|
}
|
|
1829
|
-
function
|
|
1833
|
+
function Na(a, e) {
|
|
1830
1834
|
if (typeof a != "object" || a === null)
|
|
1831
1835
|
return a;
|
|
1832
1836
|
var l = a[Symbol.toPrimitive];
|
|
@@ -1838,11 +1842,11 @@ function Ea(a, e) {
|
|
|
1838
1842
|
}
|
|
1839
1843
|
return (e === "string" ? String : Number)(a);
|
|
1840
1844
|
}
|
|
1841
|
-
function
|
|
1842
|
-
var e =
|
|
1845
|
+
function Ea(a) {
|
|
1846
|
+
var e = Na(a, "string");
|
|
1843
1847
|
return typeof e == "symbol" ? e : String(e);
|
|
1844
1848
|
}
|
|
1845
|
-
var
|
|
1849
|
+
var vl = {
|
|
1846
1850
|
activateTrap: function(e, l) {
|
|
1847
1851
|
if (e.length > 0) {
|
|
1848
1852
|
var t = e[e.length - 1];
|
|
@@ -1855,19 +1859,19 @@ var ml = {
|
|
|
1855
1859
|
var t = e.indexOf(l);
|
|
1856
1860
|
t !== -1 && e.splice(t, 1), e.length > 0 && e[e.length - 1].unpause();
|
|
1857
1861
|
}
|
|
1858
|
-
},
|
|
1862
|
+
}, qa = function(e) {
|
|
1859
1863
|
return e.tagName && e.tagName.toLowerCase() === "input" && typeof e.select == "function";
|
|
1860
|
-
},
|
|
1864
|
+
}, Aa = function(e) {
|
|
1861
1865
|
return (e == null ? void 0 : e.key) === "Escape" || (e == null ? void 0 : e.key) === "Esc" || (e == null ? void 0 : e.keyCode) === 27;
|
|
1862
1866
|
}, je = function(e) {
|
|
1863
1867
|
return (e == null ? void 0 : e.key) === "Tab" || (e == null ? void 0 : e.keyCode) === 9;
|
|
1864
|
-
},
|
|
1868
|
+
}, Da = function(e) {
|
|
1865
1869
|
return je(e) && !e.shiftKey;
|
|
1866
|
-
},
|
|
1870
|
+
}, Ra = function(e) {
|
|
1867
1871
|
return je(e) && e.shiftKey;
|
|
1868
|
-
},
|
|
1872
|
+
}, gl = function(e) {
|
|
1869
1873
|
return setTimeout(e, 0);
|
|
1870
|
-
},
|
|
1874
|
+
}, bl = function(e, l) {
|
|
1871
1875
|
var t = -1;
|
|
1872
1876
|
return e.every(function(n, c) {
|
|
1873
1877
|
return l(n) ? (t = c, !1) : !0;
|
|
@@ -1878,13 +1882,13 @@ var ml = {
|
|
|
1878
1882
|
return typeof e == "function" ? e.apply(void 0, t) : e;
|
|
1879
1883
|
}, Me = function(e) {
|
|
1880
1884
|
return e.target.shadowRoot && typeof e.composedPath == "function" ? e.composedPath()[0] : e.target;
|
|
1881
|
-
},
|
|
1882
|
-
var t = (l == null ? void 0 : l.document) || document, n = (l == null ? void 0 : l.trapStack) ||
|
|
1885
|
+
}, Ia = [], ja = function(e, l) {
|
|
1886
|
+
var t = (l == null ? void 0 : l.document) || document, n = (l == null ? void 0 : l.trapStack) || Ia, c = ml({
|
|
1883
1887
|
returnFocusOnDeactivate: !0,
|
|
1884
1888
|
escapeDeactivates: !0,
|
|
1885
1889
|
delayInitialFocus: !0,
|
|
1886
|
-
isKeyForward:
|
|
1887
|
-
isKeyBackward:
|
|
1890
|
+
isKeyForward: Da,
|
|
1891
|
+
isKeyBackward: Ra
|
|
1888
1892
|
}, l), r = {
|
|
1889
1893
|
// containers given to createFocusTrap()
|
|
1890
1894
|
// @type {Array<HTMLElement>}
|
|
@@ -1925,34 +1929,34 @@ var ml = {
|
|
|
1925
1929
|
return T && T[w] !== void 0 ? T[w] : c[E || w];
|
|
1926
1930
|
}, i = function(T, w) {
|
|
1927
1931
|
var E = typeof (w == null ? void 0 : w.composedPath) == "function" ? w.composedPath() : void 0;
|
|
1928
|
-
return r.containerGroups.findIndex(function(
|
|
1929
|
-
var C =
|
|
1932
|
+
return r.containerGroups.findIndex(function(U) {
|
|
1933
|
+
var C = U.container, R = U.tabbableNodes;
|
|
1930
1934
|
return C.contains(T) || // fall back to explicit tabbable search which will take into consideration any
|
|
1931
1935
|
// web components if the `tabbableOptions.getShadowRoot` option was used for
|
|
1932
1936
|
// the trap, enabling shadow DOM support in tabbable (`Node.contains()` doesn't
|
|
1933
1937
|
// look inside web components even if open)
|
|
1934
|
-
(E == null ? void 0 : E.includes(C)) ||
|
|
1938
|
+
(E == null ? void 0 : E.includes(C)) || R.find(function(J) {
|
|
1935
1939
|
return J === T;
|
|
1936
1940
|
});
|
|
1937
1941
|
});
|
|
1938
|
-
},
|
|
1942
|
+
}, m = function(T) {
|
|
1939
1943
|
var w = c[T];
|
|
1940
1944
|
if (typeof w == "function") {
|
|
1941
|
-
for (var E = arguments.length,
|
|
1942
|
-
|
|
1943
|
-
w = w.apply(void 0,
|
|
1945
|
+
for (var E = arguments.length, U = new Array(E > 1 ? E - 1 : 0), C = 1; C < E; C++)
|
|
1946
|
+
U[C - 1] = arguments[C];
|
|
1947
|
+
w = w.apply(void 0, U);
|
|
1944
1948
|
}
|
|
1945
1949
|
if (w === !0 && (w = void 0), !w) {
|
|
1946
1950
|
if (w === void 0 || w === !1)
|
|
1947
1951
|
return w;
|
|
1948
1952
|
throw new Error("`".concat(T, "` was specified but was not a node, or did not return a node"));
|
|
1949
1953
|
}
|
|
1950
|
-
var
|
|
1951
|
-
if (typeof w == "string" && (
|
|
1954
|
+
var R = w;
|
|
1955
|
+
if (typeof w == "string" && (R = t.querySelector(w), !R))
|
|
1952
1956
|
throw new Error("`".concat(T, "` as selector refers to no known node"));
|
|
1953
|
-
return
|
|
1954
|
-
},
|
|
1955
|
-
var T =
|
|
1957
|
+
return R;
|
|
1958
|
+
}, k = function() {
|
|
1959
|
+
var T = m("initialFocus");
|
|
1956
1960
|
if (T === !1)
|
|
1957
1961
|
return !1;
|
|
1958
1962
|
if (T === void 0 || !Je(T, c.tabbableOptions))
|
|
@@ -1960,19 +1964,19 @@ var ml = {
|
|
|
1960
1964
|
T = t.activeElement;
|
|
1961
1965
|
else {
|
|
1962
1966
|
var w = r.tabbableGroups[0], E = w && w.firstTabbableNode;
|
|
1963
|
-
T = E ||
|
|
1967
|
+
T = E || m("fallbackFocus");
|
|
1964
1968
|
}
|
|
1965
1969
|
if (!T)
|
|
1966
1970
|
throw new Error("Your focus-trap needs to have at least one focusable element");
|
|
1967
1971
|
return T;
|
|
1968
1972
|
}, d = function() {
|
|
1969
1973
|
if (r.containerGroups = r.containers.map(function(T) {
|
|
1970
|
-
var w =
|
|
1971
|
-
return Ne(
|
|
1972
|
-
}), J = E.slice().reverse().find(function(
|
|
1973
|
-
return Ne(
|
|
1974
|
-
}), W = !!w.find(function(
|
|
1975
|
-
return Oe(
|
|
1974
|
+
var w = $a(T, c.tabbableOptions), E = Ca(T, c.tabbableOptions), U = w.length > 0 ? w[0] : void 0, C = w.length > 0 ? w[w.length - 1] : void 0, R = E.find(function(g) {
|
|
1975
|
+
return Ne(g);
|
|
1976
|
+
}), J = E.slice().reverse().find(function(g) {
|
|
1977
|
+
return Ne(g);
|
|
1978
|
+
}), W = !!w.find(function(g) {
|
|
1979
|
+
return Oe(g) > 0;
|
|
1976
1980
|
});
|
|
1977
1981
|
return {
|
|
1978
1982
|
container: T,
|
|
@@ -1981,7 +1985,7 @@ var ml = {
|
|
|
1981
1985
|
/** True if at least one node with positive `tabindex` was found in this container. */
|
|
1982
1986
|
posTabIndexesFound: W,
|
|
1983
1987
|
/** First tabbable node in container, __tabindex__ order; `undefined` if none. */
|
|
1984
|
-
firstTabbableNode:
|
|
1988
|
+
firstTabbableNode: U,
|
|
1985
1989
|
/** Last tabbable node in container, __tabindex__ order; `undefined` if none. */
|
|
1986
1990
|
lastTabbableNode: C,
|
|
1987
1991
|
// NOTE: DOM order is NOT NECESSARILY "document position" order, but figuring that out
|
|
@@ -1992,7 +1996,7 @@ var ml = {
|
|
|
1992
1996
|
// "close enough most of the time" alternative for positive tabindexes which should generally
|
|
1993
1997
|
// be avoided anyway...
|
|
1994
1998
|
/** First tabbable node in container, __DOM__ order; `undefined` if none. */
|
|
1995
|
-
firstDomTabbableNode:
|
|
1999
|
+
firstDomTabbableNode: R,
|
|
1996
2000
|
/** Last tabbable node in container, __DOM__ order; `undefined` if none. */
|
|
1997
2001
|
lastDomTabbableNode: J,
|
|
1998
2002
|
/**
|
|
@@ -2014,57 +2018,57 @@ var ml = {
|
|
|
2014
2018
|
};
|
|
2015
2019
|
}), r.tabbableGroups = r.containerGroups.filter(function(T) {
|
|
2016
2020
|
return T.tabbableNodes.length > 0;
|
|
2017
|
-
}), r.tabbableGroups.length <= 0 && !
|
|
2021
|
+
}), r.tabbableGroups.length <= 0 && !m("fallbackFocus"))
|
|
2018
2022
|
throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");
|
|
2019
2023
|
if (r.containerGroups.find(function(T) {
|
|
2020
2024
|
return T.posTabIndexesFound;
|
|
2021
2025
|
}) && r.containerGroups.length > 1)
|
|
2022
2026
|
throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.");
|
|
2023
|
-
},
|
|
2027
|
+
}, h = function z(T) {
|
|
2024
2028
|
if (T !== !1 && T !== t.activeElement) {
|
|
2025
2029
|
if (!T || !T.focus) {
|
|
2026
|
-
|
|
2030
|
+
z(k());
|
|
2027
2031
|
return;
|
|
2028
2032
|
}
|
|
2029
2033
|
T.focus({
|
|
2030
2034
|
preventScroll: !!c.preventScroll
|
|
2031
|
-
}), r.mostRecentlyFocusedNode = T,
|
|
2035
|
+
}), r.mostRecentlyFocusedNode = T, qa(T) && T.select();
|
|
2032
2036
|
}
|
|
2033
|
-
},
|
|
2034
|
-
var w =
|
|
2037
|
+
}, q = function(T) {
|
|
2038
|
+
var w = m("setReturnFocus", T);
|
|
2035
2039
|
return w || (w === !1 ? !1 : T);
|
|
2036
|
-
},
|
|
2037
|
-
var w = T.target, E = T.event,
|
|
2040
|
+
}, P = function(T) {
|
|
2041
|
+
var w = T.target, E = T.event, U = T.isBackward, C = U === void 0 ? !1 : U;
|
|
2038
2042
|
w = w || Me(E), d();
|
|
2039
|
-
var
|
|
2043
|
+
var R = null;
|
|
2040
2044
|
if (r.tabbableGroups.length > 0) {
|
|
2041
2045
|
var J = i(w, E), W = J >= 0 ? r.containerGroups[J] : void 0;
|
|
2042
2046
|
if (J < 0)
|
|
2043
|
-
C ?
|
|
2047
|
+
C ? R = r.tabbableGroups[r.tabbableGroups.length - 1].lastTabbableNode : R = r.tabbableGroups[0].firstTabbableNode;
|
|
2044
2048
|
else if (C) {
|
|
2045
|
-
var
|
|
2049
|
+
var g = bl(r.tabbableGroups, function($e) {
|
|
2046
2050
|
var Qe = $e.firstTabbableNode;
|
|
2047
2051
|
return w === Qe;
|
|
2048
2052
|
});
|
|
2049
|
-
if (
|
|
2050
|
-
var F =
|
|
2051
|
-
|
|
2053
|
+
if (g < 0 && (W.container === w || Je(w, c.tabbableOptions) && !Ne(w, c.tabbableOptions) && !W.nextTabbableNode(w, !1)) && (g = J), g >= 0) {
|
|
2054
|
+
var F = g === 0 ? r.tabbableGroups.length - 1 : g - 1, K = r.tabbableGroups[F];
|
|
2055
|
+
R = Oe(w) >= 0 ? K.lastTabbableNode : K.lastDomTabbableNode;
|
|
2052
2056
|
} else
|
|
2053
|
-
je(E) || (
|
|
2057
|
+
je(E) || (R = W.nextTabbableNode(w, !1));
|
|
2054
2058
|
} else {
|
|
2055
|
-
var pe =
|
|
2059
|
+
var pe = bl(r.tabbableGroups, function($e) {
|
|
2056
2060
|
var Qe = $e.lastTabbableNode;
|
|
2057
2061
|
return w === Qe;
|
|
2058
2062
|
});
|
|
2059
2063
|
if (pe < 0 && (W.container === w || Je(w, c.tabbableOptions) && !Ne(w, c.tabbableOptions) && !W.nextTabbableNode(w)) && (pe = J), pe >= 0) {
|
|
2060
2064
|
var Ce = pe === r.tabbableGroups.length - 1 ? 0 : pe + 1, qe = r.tabbableGroups[Ce];
|
|
2061
|
-
|
|
2065
|
+
R = Oe(w) >= 0 ? qe.firstTabbableNode : qe.firstDomTabbableNode;
|
|
2062
2066
|
} else
|
|
2063
|
-
je(E) || (
|
|
2067
|
+
je(E) || (R = W.nextTabbableNode(w));
|
|
2064
2068
|
}
|
|
2065
2069
|
} else
|
|
2066
|
-
|
|
2067
|
-
return
|
|
2070
|
+
R = m("fallbackFocus");
|
|
2071
|
+
return R;
|
|
2068
2072
|
}, L = function(T) {
|
|
2069
2073
|
var w = Me(T);
|
|
2070
2074
|
if (!(i(w, T) >= 0)) {
|
|
@@ -2088,42 +2092,42 @@ var ml = {
|
|
|
2088
2092
|
E && (r.mostRecentlyFocusedNode = w);
|
|
2089
2093
|
else {
|
|
2090
2094
|
T.stopImmediatePropagation();
|
|
2091
|
-
var
|
|
2095
|
+
var U, C = !0;
|
|
2092
2096
|
if (r.mostRecentlyFocusedNode)
|
|
2093
2097
|
if (Oe(r.mostRecentlyFocusedNode) > 0) {
|
|
2094
|
-
var
|
|
2098
|
+
var R = i(r.mostRecentlyFocusedNode), J = r.containerGroups[R].tabbableNodes;
|
|
2095
2099
|
if (J.length > 0) {
|
|
2096
|
-
var W = J.findIndex(function(
|
|
2097
|
-
return
|
|
2100
|
+
var W = J.findIndex(function(g) {
|
|
2101
|
+
return g === r.mostRecentlyFocusedNode;
|
|
2098
2102
|
});
|
|
2099
|
-
W >= 0 && (c.isKeyForward(r.recentNavEvent) ? W + 1 < J.length && (
|
|
2103
|
+
W >= 0 && (c.isKeyForward(r.recentNavEvent) ? W + 1 < J.length && (U = J[W + 1], C = !1) : W - 1 >= 0 && (U = J[W - 1], C = !1));
|
|
2100
2104
|
}
|
|
2101
2105
|
} else
|
|
2102
|
-
r.containerGroups.some(function(
|
|
2103
|
-
return
|
|
2106
|
+
r.containerGroups.some(function(g) {
|
|
2107
|
+
return g.tabbableNodes.some(function(F) {
|
|
2104
2108
|
return Oe(F) > 0;
|
|
2105
2109
|
});
|
|
2106
2110
|
}) || (C = !1);
|
|
2107
2111
|
else
|
|
2108
2112
|
C = !1;
|
|
2109
|
-
C && (
|
|
2113
|
+
C && (U = P({
|
|
2110
2114
|
// move FROM the MRU node, not event-related node (which will be the node that is
|
|
2111
2115
|
// outside the trap causing the focus escape we're trying to fix)
|
|
2112
2116
|
target: r.mostRecentlyFocusedNode,
|
|
2113
2117
|
isBackward: c.isKeyBackward(r.recentNavEvent)
|
|
2114
|
-
})),
|
|
2118
|
+
})), h(U || r.mostRecentlyFocusedNode || k());
|
|
2115
2119
|
}
|
|
2116
2120
|
r.recentNavEvent = void 0;
|
|
2117
2121
|
}, ae = function(T) {
|
|
2118
2122
|
var w = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
2119
2123
|
r.recentNavEvent = T;
|
|
2120
|
-
var E =
|
|
2124
|
+
var E = P({
|
|
2121
2125
|
event: T,
|
|
2122
2126
|
isBackward: w
|
|
2123
2127
|
});
|
|
2124
|
-
E && (je(T) && T.preventDefault(),
|
|
2128
|
+
E && (je(T) && T.preventDefault(), h(E));
|
|
2125
2129
|
}, N = function(T) {
|
|
2126
|
-
if (
|
|
2130
|
+
if (Aa(T) && Ae(c.escapeDeactivates, T) !== !1) {
|
|
2127
2131
|
T.preventDefault(), o.deactivate();
|
|
2128
2132
|
return;
|
|
2129
2133
|
}
|
|
@@ -2133,9 +2137,9 @@ var ml = {
|
|
|
2133
2137
|
i(w, T) >= 0 || Ae(c.clickOutsideDeactivates, T) || Ae(c.allowOutsideClick, T) || (T.preventDefault(), T.stopImmediatePropagation());
|
|
2134
2138
|
}, u = function() {
|
|
2135
2139
|
if (r.active)
|
|
2136
|
-
return
|
|
2137
|
-
k(
|
|
2138
|
-
}) : k(
|
|
2140
|
+
return vl.activateTrap(n, o), r.delayInitialFocusTimer = c.delayInitialFocus ? gl(function() {
|
|
2141
|
+
h(k());
|
|
2142
|
+
}) : h(k()), t.addEventListener("focusin", Z, !0), t.addEventListener("mousedown", L, {
|
|
2139
2143
|
capture: !0,
|
|
2140
2144
|
passive: !1
|
|
2141
2145
|
}), t.addEventListener("touchstart", L, {
|
|
@@ -2153,13 +2157,13 @@ var ml = {
|
|
|
2153
2157
|
return t.removeEventListener("focusin", Z, !0), t.removeEventListener("mousedown", L, !0), t.removeEventListener("touchstart", L, !0), t.removeEventListener("click", B, !0), t.removeEventListener("keydown", N, !0), o;
|
|
2154
2158
|
}, O = function(T) {
|
|
2155
2159
|
var w = T.some(function(E) {
|
|
2156
|
-
var
|
|
2157
|
-
return
|
|
2160
|
+
var U = Array.from(E.removedNodes);
|
|
2161
|
+
return U.some(function(C) {
|
|
2158
2162
|
return C === r.mostRecentlyFocusedNode;
|
|
2159
2163
|
});
|
|
2160
2164
|
});
|
|
2161
|
-
w && k(
|
|
2162
|
-
}, $ = typeof window < "u" && "MutationObserver" in window ? new MutationObserver(O) : void 0,
|
|
2165
|
+
w && h(k());
|
|
2166
|
+
}, $ = typeof window < "u" && "MutationObserver" in window ? new MutationObserver(O) : void 0, _ = function() {
|
|
2163
2167
|
$ && ($.disconnect(), r.active && !r.paused && r.containers.map(function(T) {
|
|
2164
2168
|
$.observe(T, {
|
|
2165
2169
|
subtree: !0,
|
|
@@ -2177,58 +2181,58 @@ var ml = {
|
|
|
2177
2181
|
activate: function(T) {
|
|
2178
2182
|
if (r.active)
|
|
2179
2183
|
return this;
|
|
2180
|
-
var w = s(T, "onActivate"), E = s(T, "onPostActivate"),
|
|
2181
|
-
|
|
2184
|
+
var w = s(T, "onActivate"), E = s(T, "onPostActivate"), U = s(T, "checkCanFocusTrap");
|
|
2185
|
+
U || d(), r.active = !0, r.paused = !1, r.nodeFocusedBeforeActivation = t.activeElement, w == null || w();
|
|
2182
2186
|
var C = function() {
|
|
2183
|
-
|
|
2187
|
+
U && d(), u(), _(), E == null || E();
|
|
2184
2188
|
};
|
|
2185
|
-
return
|
|
2189
|
+
return U ? (U(r.containers.concat()).then(C, C), this) : (C(), this);
|
|
2186
2190
|
},
|
|
2187
2191
|
deactivate: function(T) {
|
|
2188
2192
|
if (!r.active)
|
|
2189
2193
|
return this;
|
|
2190
|
-
var w =
|
|
2194
|
+
var w = ml({
|
|
2191
2195
|
onDeactivate: c.onDeactivate,
|
|
2192
2196
|
onPostDeactivate: c.onPostDeactivate,
|
|
2193
2197
|
checkCanReturnFocus: c.checkCanReturnFocus
|
|
2194
2198
|
}, T);
|
|
2195
|
-
clearTimeout(r.delayInitialFocusTimer), r.delayInitialFocusTimer = void 0, p(), r.active = !1, r.paused = !1,
|
|
2196
|
-
var E = s(w, "onDeactivate"),
|
|
2199
|
+
clearTimeout(r.delayInitialFocusTimer), r.delayInitialFocusTimer = void 0, p(), r.active = !1, r.paused = !1, _(), vl.deactivateTrap(n, o);
|
|
2200
|
+
var E = s(w, "onDeactivate"), U = s(w, "onPostDeactivate"), C = s(w, "checkCanReturnFocus"), R = s(w, "returnFocus", "returnFocusOnDeactivate");
|
|
2197
2201
|
E == null || E();
|
|
2198
2202
|
var J = function() {
|
|
2199
|
-
|
|
2200
|
-
|
|
2203
|
+
gl(function() {
|
|
2204
|
+
R && h(q(r.nodeFocusedBeforeActivation)), U == null || U();
|
|
2201
2205
|
});
|
|
2202
2206
|
};
|
|
2203
|
-
return
|
|
2207
|
+
return R && C ? (C(q(r.nodeFocusedBeforeActivation)).then(J, J), this) : (J(), this);
|
|
2204
2208
|
},
|
|
2205
2209
|
pause: function(T) {
|
|
2206
2210
|
if (r.paused || !r.active)
|
|
2207
2211
|
return this;
|
|
2208
2212
|
var w = s(T, "onPause"), E = s(T, "onPostPause");
|
|
2209
|
-
return r.paused = !0, w == null || w(), p(),
|
|
2213
|
+
return r.paused = !0, w == null || w(), p(), _(), E == null || E(), this;
|
|
2210
2214
|
},
|
|
2211
2215
|
unpause: function(T) {
|
|
2212
2216
|
if (!r.paused || !r.active)
|
|
2213
2217
|
return this;
|
|
2214
2218
|
var w = s(T, "onUnpause"), E = s(T, "onPostUnpause");
|
|
2215
|
-
return r.paused = !1, w == null || w(), d(), u(),
|
|
2219
|
+
return r.paused = !1, w == null || w(), d(), u(), _(), E == null || E(), this;
|
|
2216
2220
|
},
|
|
2217
2221
|
updateContainerElements: function(T) {
|
|
2218
2222
|
var w = [].concat(T).filter(Boolean);
|
|
2219
2223
|
return r.containers = w.map(function(E) {
|
|
2220
2224
|
return typeof E == "string" ? t.querySelector(E) : E;
|
|
2221
|
-
}), r.active && d(),
|
|
2225
|
+
}), r.active && d(), _(), this;
|
|
2222
2226
|
}
|
|
2223
2227
|
}, o.updateContainerElements(e), o;
|
|
2224
|
-
},
|
|
2228
|
+
}, Fa = Object.defineProperty, Ma = Object.defineProperties, Va = Object.getOwnPropertyDescriptors, Ge = Object.getOwnPropertySymbols, Il = Object.prototype.hasOwnProperty, jl = Object.prototype.propertyIsEnumerable, hl = (a, e, l) => e in a ? Fa(a, e, { enumerable: !0, configurable: !0, writable: !0, value: l }) : a[e] = l, Ua = (a, e) => {
|
|
2225
2229
|
for (var l in e || (e = {}))
|
|
2226
|
-
Il.call(e, l) &&
|
|
2230
|
+
Il.call(e, l) && hl(a, l, e[l]);
|
|
2227
2231
|
if (Ge)
|
|
2228
2232
|
for (var l of Ge(e))
|
|
2229
|
-
jl.call(e, l) &&
|
|
2233
|
+
jl.call(e, l) && hl(a, l, e[l]);
|
|
2230
2234
|
return a;
|
|
2231
|
-
},
|
|
2235
|
+
}, Pa = (a, e) => Ma(a, Va(e)), La = (a, e) => {
|
|
2232
2236
|
var l = {};
|
|
2233
2237
|
for (var t in a)
|
|
2234
2238
|
Il.call(a, t) && e.indexOf(t) < 0 && (l[t] = a[t]);
|
|
@@ -2237,17 +2241,17 @@ var ml = {
|
|
|
2237
2241
|
e.indexOf(t) < 0 && jl.call(a, t) && (l[t] = a[t]);
|
|
2238
2242
|
return l;
|
|
2239
2243
|
};
|
|
2240
|
-
function
|
|
2244
|
+
function Ba(a, e = {}) {
|
|
2241
2245
|
let l;
|
|
2242
|
-
const t = e, { immediate: n } = t, c =
|
|
2246
|
+
const t = e, { immediate: n } = t, c = La(t, ["immediate"]), r = I(!1), o = I(!1), s = (d) => l && l.activate(d), i = (d) => l && l.deactivate(d), m = () => {
|
|
2243
2247
|
l && (l.pause(), o.value = !0);
|
|
2244
|
-
},
|
|
2248
|
+
}, k = () => {
|
|
2245
2249
|
l && (l.unpause(), o.value = !1);
|
|
2246
2250
|
};
|
|
2247
2251
|
return oe(
|
|
2248
2252
|
() => Zl(a),
|
|
2249
2253
|
(d) => {
|
|
2250
|
-
d && (l =
|
|
2254
|
+
d && (l = ja(d, Pa(Ua({}, c), {
|
|
2251
2255
|
onActivate() {
|
|
2252
2256
|
r.value = !0, e.onActivate && e.onActivate();
|
|
2253
2257
|
},
|
|
@@ -2262,14 +2266,14 @@ function _a(a, e = {}) {
|
|
|
2262
2266
|
isPaused: o,
|
|
2263
2267
|
activate: s,
|
|
2264
2268
|
deactivate: i,
|
|
2265
|
-
pause:
|
|
2266
|
-
unpause:
|
|
2269
|
+
pause: m,
|
|
2270
|
+
unpause: k
|
|
2267
2271
|
};
|
|
2268
2272
|
}
|
|
2269
|
-
const za = /* @__PURE__ */
|
|
2273
|
+
const za = /* @__PURE__ */ b("div", { tabindex: "0" }, null, -1), _a = ["onKeypress"], xa = {
|
|
2270
2274
|
key: 0,
|
|
2271
2275
|
class: "cl-mt-1 cl-opacity-60 cl-text-primary-default"
|
|
2272
|
-
},
|
|
2276
|
+
}, Ha = { class: "cl-overflow-y-auto cl-overscroll-y-none cl-p-2 cl-w-full" }, Fl = /* @__PURE__ */ Q({
|
|
2273
2277
|
inheritAttrs: !1,
|
|
2274
2278
|
__name: "cl-ui-modal",
|
|
2275
2279
|
props: {
|
|
@@ -2279,16 +2283,16 @@ const za = /* @__PURE__ */ h("div", { tabindex: "0" }, null, -1), xa = ["onKeypr
|
|
|
2279
2283
|
trapFocus: { type: Boolean, default: !1 }
|
|
2280
2284
|
},
|
|
2281
2285
|
setup(a) {
|
|
2282
|
-
const e = a, { trapFocus: l } = Bl(e), t =
|
|
2286
|
+
const e = a, { trapFocus: l } = Bl(e), t = I(!1), n = I(), c = Ba(n);
|
|
2283
2287
|
oe([
|
|
2284
2288
|
l,
|
|
2285
2289
|
t
|
|
2286
2290
|
], ([
|
|
2287
2291
|
i,
|
|
2288
|
-
|
|
2292
|
+
m
|
|
2289
2293
|
]) => {
|
|
2290
2294
|
setTimeout(() => {
|
|
2291
|
-
i === !0 &&
|
|
2295
|
+
i === !0 && m === !0 ? c.activate() : c.deactivate();
|
|
2292
2296
|
});
|
|
2293
2297
|
});
|
|
2294
2298
|
function r() {
|
|
@@ -2300,18 +2304,18 @@ const za = /* @__PURE__ */ h("div", { tabindex: "0" }, null, -1), xa = ["onKeypr
|
|
|
2300
2304
|
function s(i) {
|
|
2301
2305
|
i.key === "Escape" && o();
|
|
2302
2306
|
}
|
|
2303
|
-
return (i,
|
|
2307
|
+
return (i, m) => (f(), y(X, null, [
|
|
2304
2308
|
V(i.$slots, "trigger", ce(fe({ open: r }))),
|
|
2305
2309
|
(f(), G(ll, { to: "body" }, [
|
|
2306
2310
|
S(Te, { name: "fade" }, {
|
|
2307
2311
|
default: Y(() => [
|
|
2308
|
-
le(
|
|
2312
|
+
le(b("div", {
|
|
2309
2313
|
ref_key: "clUiModal",
|
|
2310
2314
|
ref: n,
|
|
2311
2315
|
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"
|
|
2312
2316
|
}, [
|
|
2313
2317
|
za,
|
|
2314
|
-
|
|
2318
|
+
b("div", ve(i.$attrs, {
|
|
2315
2319
|
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)]", {
|
|
2316
2320
|
"lg:cl-w-2/12 cl-w-10/12": i.size === "x-small",
|
|
2317
2321
|
"cl-w-6/12": i.size === "small",
|
|
@@ -2319,7 +2323,7 @@ const za = /* @__PURE__ */ h("div", { tabindex: "0" }, null, -1), xa = ["onKeypr
|
|
|
2319
2323
|
"cl-w-10/12": i.size === "large"
|
|
2320
2324
|
}]
|
|
2321
2325
|
}), [
|
|
2322
|
-
le(
|
|
2326
|
+
le(b("div", {
|
|
2323
2327
|
class: M(["cl-absolute cl-cursor-pointer cl-right-4 cl-top-4 cl-transition-colors cl-w-3", {
|
|
2324
2328
|
"cl-text-white hover:cl-text-off-white": i.headerColour === "secondary",
|
|
2325
2329
|
"cl-text-secondary hover:cl-text-off-white": i.headerColour === "primary",
|
|
@@ -2329,20 +2333,20 @@ const za = /* @__PURE__ */ h("div", { tabindex: "0" }, null, -1), xa = ["onKeypr
|
|
|
2329
2333
|
onKeypress: Ee(o, ["enter"]),
|
|
2330
2334
|
onClick: o
|
|
2331
2335
|
}, [
|
|
2332
|
-
S(
|
|
2333
|
-
], 42,
|
|
2336
|
+
S(v(x), { icon: "ph:x" })
|
|
2337
|
+
], 42, _a), [
|
|
2334
2338
|
[te, !i.preventClose]
|
|
2335
2339
|
]),
|
|
2336
|
-
|
|
2340
|
+
b("div", {
|
|
2337
2341
|
class: M(["cl-leading-[2.75rem] cl-min-h-12 cl-overflow-hidden cl-pb-2 cl-pl-4 cl-pr-8 cl-pt-2 cl-text-2xl cl-w-full", {
|
|
2338
2342
|
"cl-bg-secondary-default cl-text-white": i.headerColour === "secondary",
|
|
2339
2343
|
"cl-bg-primary-default cl-text-secondary": i.headerColour === "primary"
|
|
2340
2344
|
}])
|
|
2341
2345
|
}, [
|
|
2342
2346
|
V(i.$slots, "title"),
|
|
2343
|
-
i.headerColour === "white" ? (f(), y("hr",
|
|
2347
|
+
i.headerColour === "white" ? (f(), y("hr", xa)) : j("", !0)
|
|
2344
2348
|
], 2),
|
|
2345
|
-
|
|
2349
|
+
b("div", Ha, [
|
|
2346
2350
|
V(i.$slots, "default", ce(fe({ close: o })))
|
|
2347
2351
|
]),
|
|
2348
2352
|
V(i.$slots, "footer", ce(fe({ close: o })))
|
|
@@ -2356,7 +2360,7 @@ const za = /* @__PURE__ */ h("div", { tabindex: "0" }, null, -1), xa = ["onKeypr
|
|
|
2356
2360
|
]))
|
|
2357
2361
|
], 64));
|
|
2358
2362
|
}
|
|
2359
|
-
}),
|
|
2363
|
+
}), Ga = { class: "cl-bg-grey-0 cl-flex cl-p-1 cl-text-left" }, Za = {
|
|
2360
2364
|
key: 0,
|
|
2361
2365
|
class: "cl-w-1/2"
|
|
2362
2366
|
}, Ve = /* @__PURE__ */ Q({
|
|
@@ -2370,19 +2374,19 @@ const za = /* @__PURE__ */ h("div", { tabindex: "0" }, null, -1), xa = ["onKeypr
|
|
|
2370
2374
|
"clear-object": null
|
|
2371
2375
|
},
|
|
2372
2376
|
setup(a) {
|
|
2373
|
-
return (e, l) => (f(), y("div",
|
|
2374
|
-
e.additionalText !== "" ? (f(), y("div",
|
|
2375
|
-
|
|
2377
|
+
return (e, l) => (f(), y("div", Ga, [
|
|
2378
|
+
e.additionalText !== "" ? (f(), y("div", Za, A(e.additionalText), 1)) : j("", !0),
|
|
2379
|
+
b("div", {
|
|
2376
2380
|
class: M({
|
|
2377
2381
|
"cl-w-1/2": e.additionalText !== "",
|
|
2378
2382
|
"cl-w-full": e.additionalText === ""
|
|
2379
2383
|
})
|
|
2380
|
-
},
|
|
2381
|
-
le(
|
|
2384
|
+
}, A(e.text), 3),
|
|
2385
|
+
le(b("div", {
|
|
2382
2386
|
class: "cl-cursor-pointer cl-float-right",
|
|
2383
2387
|
onMousedown: l[0] || (l[0] = (t) => e.$emit("clear-object"))
|
|
2384
2388
|
}, [
|
|
2385
|
-
S(
|
|
2389
|
+
S(v(x), {
|
|
2386
2390
|
class: "cl-mt-1 cl-transition-colors hover:cl-text-link-default",
|
|
2387
2391
|
icon: "ph:x"
|
|
2388
2392
|
})
|
|
@@ -2391,10 +2395,10 @@ const za = /* @__PURE__ */ h("div", { tabindex: "0" }, null, -1), xa = ["onKeypr
|
|
|
2391
2395
|
])
|
|
2392
2396
|
]));
|
|
2393
2397
|
}
|
|
2394
|
-
}),
|
|
2398
|
+
}), Ka = {
|
|
2395
2399
|
key: 0,
|
|
2396
2400
|
class: "cl-w-1/2"
|
|
2397
|
-
},
|
|
2401
|
+
}, Qa = { class: "cl-float-right cl-py-1 cl-text-black" }, yl = /* @__PURE__ */ Q({
|
|
2398
2402
|
__name: "cl-ui-combo-box-selectable",
|
|
2399
2403
|
props: {
|
|
2400
2404
|
isCreateNewOption: { type: Boolean, default: !1 },
|
|
@@ -2409,13 +2413,13 @@ const za = /* @__PURE__ */ h("div", { tabindex: "0" }, null, -1), xa = ["onKeypr
|
|
|
2409
2413
|
"option-highlighted": null
|
|
2410
2414
|
},
|
|
2411
2415
|
setup(a, { emit: e }) {
|
|
2412
|
-
const l = a, t =
|
|
2416
|
+
const l = a, t = D(() => {
|
|
2413
2417
|
var i;
|
|
2414
2418
|
return ((i = l.option) == null ? void 0 : i.name) ?? l.text;
|
|
2415
|
-
}), n =
|
|
2419
|
+
}), n = D(() => {
|
|
2416
2420
|
var i;
|
|
2417
2421
|
return ((i = l.option) == null ? void 0 : i.parentName) ?? "";
|
|
2418
|
-
}), c =
|
|
2422
|
+
}), c = I(!1);
|
|
2419
2423
|
function r() {
|
|
2420
2424
|
var i;
|
|
2421
2425
|
l.isCreateNewOption === !0 ? e("create-object") : e("select-object", (i = l.option) == null ? void 0 : i.id);
|
|
@@ -2426,8 +2430,8 @@ const za = /* @__PURE__ */ h("div", { tabindex: "0" }, null, -1), xa = ["onKeypr
|
|
|
2426
2430
|
function s() {
|
|
2427
2431
|
l.selectedIndex === l.index ? c.value = !0 : c.value = !1;
|
|
2428
2432
|
}
|
|
2429
|
-
return oe(() => l.selectedIndex, () => s()), (i,
|
|
2430
|
-
var
|
|
2433
|
+
return oe(() => l.selectedIndex, () => s()), (i, m) => {
|
|
2434
|
+
var k, d;
|
|
2431
2435
|
return f(), y("div", {
|
|
2432
2436
|
class: M(["cl-cursor-pointer cl-duration-75 cl-flex cl-p-1 cl-text-left cl-transition-colors", {
|
|
2433
2437
|
"cl-bg-white": c.value === !1,
|
|
@@ -2435,18 +2439,18 @@ const za = /* @__PURE__ */ h("div", { tabindex: "0" }, null, -1), xa = ["onKeypr
|
|
|
2435
2439
|
"cl-bg-primary-default cl-text-black cl-opacity-90": c.value && i.isCreateNewOption
|
|
2436
2440
|
}]),
|
|
2437
2441
|
onMousedown: r,
|
|
2438
|
-
onMousemove:
|
|
2439
|
-
onMouseleave:
|
|
2442
|
+
onMousemove: m[0] || (m[0] = (h) => o(!0)),
|
|
2443
|
+
onMouseleave: m[1] || (m[1] = (h) => o(!1))
|
|
2440
2444
|
}, [
|
|
2441
|
-
i.option !== null && ((
|
|
2442
|
-
|
|
2445
|
+
i.option !== null && ((k = i.option) == null ? void 0 : k.parentId) !== 0 && ((d = i.option) == null ? void 0 : d.parentId) !== void 0 ? (f(), y("div", Ka, A(n.value), 1)) : j("", !0),
|
|
2446
|
+
b("div", {
|
|
2443
2447
|
class: M({
|
|
2444
2448
|
"cl-w-1/2": n.value !== "",
|
|
2445
2449
|
"cl-w-full": n.value === ""
|
|
2446
2450
|
})
|
|
2447
|
-
},
|
|
2448
|
-
le(
|
|
2449
|
-
S(
|
|
2451
|
+
}, A(t.value), 3),
|
|
2452
|
+
le(b("div", Qa, [
|
|
2453
|
+
S(v(x), {
|
|
2450
2454
|
class: "cl-transition-colors",
|
|
2451
2455
|
icon: "ph:plus"
|
|
2452
2456
|
})
|
|
@@ -2456,7 +2460,7 @@ const za = /* @__PURE__ */ h("div", { tabindex: "0" }, null, -1), xa = ["onKeypr
|
|
|
2456
2460
|
], 34);
|
|
2457
2461
|
};
|
|
2458
2462
|
}
|
|
2459
|
-
}),
|
|
2463
|
+
}), Wa = ["onKeyup"], Ya = { class: "cl-bg-white cl-flex cl-p-2 cl-pb-1 cl-sticky cl-top-0 cl-w-full cl-z-10" }, Ja = { key: 5 }, Xa = /* @__PURE__ */ Q({
|
|
2460
2464
|
__name: "cl-ui-combo-box-search",
|
|
2461
2465
|
props: {
|
|
2462
2466
|
loading: { type: Boolean, default: !1 },
|
|
@@ -2478,27 +2482,27 @@ const za = /* @__PURE__ */ h("div", { tabindex: "0" }, null, -1), xa = ["onKeypr
|
|
|
2478
2482
|
"hide-dropdown": null
|
|
2479
2483
|
},
|
|
2480
2484
|
setup(a, { emit: e }) {
|
|
2481
|
-
const l = a, { t } = se(), n =
|
|
2485
|
+
const l = a, { t } = se(), n = I(""), c = I(!1), r = I(-1), o = D(() => c.value ? -1 : 0), s = I();
|
|
2482
2486
|
function i(u) {
|
|
2483
2487
|
(u === void 0 || (u == null ? void 0 : u.code.startsWith("Arrow")) === !1 && (u == null ? void 0 : u.code.startsWith("Control")) === !1 && (u == null ? void 0 : u.code.startsWith("Shift")) === !1 && (u == null ? void 0 : u.code.startsWith("Tab")) === !1 && (u == null ? void 0 : u.code) !== "Enter") && (e("search", n.value), r.value = -2);
|
|
2484
2488
|
}
|
|
2485
|
-
function
|
|
2489
|
+
function m(u) {
|
|
2486
2490
|
e("select-object", u);
|
|
2487
2491
|
}
|
|
2488
|
-
function
|
|
2492
|
+
function k() {
|
|
2489
2493
|
e("create-object", n.value), d();
|
|
2490
2494
|
}
|
|
2491
2495
|
function d() {
|
|
2492
2496
|
e("hide-dropdown");
|
|
2493
2497
|
}
|
|
2494
|
-
function
|
|
2498
|
+
function h(u) {
|
|
2495
2499
|
r.value < l.results.length - 1 ? (r.value === -2 && n.value === "" && r.value++, r.value++) : r.value = u, Z();
|
|
2496
2500
|
}
|
|
2497
|
-
function
|
|
2501
|
+
function q(u) {
|
|
2498
2502
|
r.value > u ? r.value-- : r.value = l.results.length - 1, Z();
|
|
2499
2503
|
}
|
|
2500
|
-
function
|
|
2501
|
-
r.value >= 0 && l.results !== void 0 ?
|
|
2504
|
+
function P() {
|
|
2505
|
+
r.value >= 0 && l.results !== void 0 ? m(l.results[r.value].id) : r.value === -1 && k();
|
|
2502
2506
|
}
|
|
2503
2507
|
function L(u) {
|
|
2504
2508
|
if (u.key === "Tab" && u.shiftKey === !0) {
|
|
@@ -2539,12 +2543,12 @@ const za = /* @__PURE__ */ h("div", { tabindex: "0" }, null, -1), xa = ["onKeypr
|
|
|
2539
2543
|
ref: s,
|
|
2540
2544
|
class: "cl-absolute cl-bg-white cl-border cl-border-collapse cl-border-grey-0 cl-h-52 cl-overflow-y-auto cl-overscroll-y-none cl-rounded cl-text-sm cl-w-full cl-z-20",
|
|
2541
2545
|
onKeydown: [
|
|
2542
|
-
p[2] || (p[2] = Ee(ne(($) =>
|
|
2543
|
-
p[3] || (p[3] = Ee(ne(($) =>
|
|
2546
|
+
p[2] || (p[2] = Ee(ne(($) => q(o.value), ["prevent", "stop"]), ["up"])),
|
|
2547
|
+
p[3] || (p[3] = Ee(ne(($) => h(o.value), ["prevent", "stop"]), ["down"]))
|
|
2544
2548
|
],
|
|
2545
|
-
onKeyup: Ee(ne(
|
|
2549
|
+
onKeyup: Ee(ne(P, ["prevent", "stop"]), ["enter"])
|
|
2546
2550
|
}, [
|
|
2547
|
-
|
|
2551
|
+
b("div", Ya, [
|
|
2548
2552
|
S(me, {
|
|
2549
2553
|
modelValue: n.value,
|
|
2550
2554
|
"onUpdate:modelValue": p[0] || (p[0] = ($) => n.value = $),
|
|
@@ -2572,38 +2576,38 @@ const za = /* @__PURE__ */ h("div", { tabindex: "0" }, null, -1), xa = ["onKeypr
|
|
|
2572
2576
|
}, null, 8, ["text", "additional-text"])) : j("", !0),
|
|
2573
2577
|
u.results !== null && ((O = u.results) == null ? void 0 : O.length) === 0 && n.value.trim() !== "" && u.canCreateNewObject === !1 && u.errorMessage === "" ? (f(), G(Ve, {
|
|
2574
2578
|
key: 2,
|
|
2575
|
-
text:
|
|
2579
|
+
text: v(t)("comboBox.noResults", { value: n.value })
|
|
2576
2580
|
}, null, 8, ["text"])) : j("", !0),
|
|
2577
2581
|
u.errorMessage !== "" ? (f(), G(Ve, {
|
|
2578
2582
|
key: 3,
|
|
2579
2583
|
class: "!cl-bg-danger-light cl-border-danger-light cl-rounded cl-text-danger-dark",
|
|
2580
|
-
text:
|
|
2584
|
+
text: v(t)("comboBox.errorMessage", { error: u.errorMessage })
|
|
2581
2585
|
}, null, 8, ["text"])) : j("", !0),
|
|
2582
|
-
c.value ? (f(), G(
|
|
2586
|
+
c.value ? (f(), G(yl, {
|
|
2583
2587
|
key: 4,
|
|
2584
2588
|
"is-create-new-option": !0,
|
|
2585
|
-
text:
|
|
2589
|
+
text: v(t)("comboBox.addPrompt", { value: n.value, object: u.objectType }),
|
|
2586
2590
|
index: -1,
|
|
2587
2591
|
"selected-index": r.value,
|
|
2588
2592
|
class: "cl-px-2",
|
|
2589
|
-
onCreateObject:
|
|
2593
|
+
onCreateObject: k,
|
|
2590
2594
|
onOptionHighlighted: N
|
|
2591
2595
|
}, null, 8, ["text", "selected-index"])) : j("", !0),
|
|
2592
|
-
u.errorMessage === "" && u.results !== null ? (f(), y("div",
|
|
2593
|
-
(f(!0), y(X, null, re(u.results, ($,
|
|
2594
|
-
key:
|
|
2596
|
+
u.errorMessage === "" && u.results !== null ? (f(), y("div", Ja, [
|
|
2597
|
+
(f(!0), y(X, null, re(u.results, ($, _) => (f(), G(yl, {
|
|
2598
|
+
key: _,
|
|
2595
2599
|
option: $,
|
|
2596
|
-
index:
|
|
2600
|
+
index: _,
|
|
2597
2601
|
class: "cl-px-2",
|
|
2598
2602
|
"selected-index": r.value,
|
|
2599
|
-
onSelectObject:
|
|
2603
|
+
onSelectObject: m,
|
|
2600
2604
|
onOptionHighlighted: N
|
|
2601
2605
|
}, null, 8, ["option", "index", "selected-index"]))), 128))
|
|
2602
2606
|
])) : j("", !0)
|
|
2603
|
-
], 40,
|
|
2607
|
+
], 40, Wa);
|
|
2604
2608
|
};
|
|
2605
2609
|
}
|
|
2606
|
-
}),
|
|
2610
|
+
}), eo = { class: "cl-flex" }, lo = { class: "cl-relative cl-right-20 cl-top-0.5" }, to = { class: "cl-absolute cl-flex cl-float-right cl-font-semibold cl-mt-2 cl-text-danger-default cl-text-sm cl-z-10" }, ao = { class: "cl-min-h-[16rem] cl-mx-4" }, oo = { class: "cl-p-2 cl-text-right cl-w-full" }, no = /* @__PURE__ */ Q({
|
|
2607
2611
|
__name: "cl-ui-combo-box",
|
|
2608
2612
|
props: {
|
|
2609
2613
|
loading: { type: Boolean, default: !1 },
|
|
@@ -2632,78 +2636,78 @@ const za = /* @__PURE__ */ h("div", { tabindex: "0" }, null, -1), xa = ["onKeypr
|
|
|
2632
2636
|
"update:current-object": null
|
|
2633
2637
|
},
|
|
2634
2638
|
setup(a, { expose: e, emit: l }) {
|
|
2635
|
-
const t = a, n =
|
|
2639
|
+
const t = a, n = D(() => t.placeholderText ? t.placeholderText : r("comboBox.emptyHintText", { object: t.objectType })), c = D(() => t.searchHint ? t.searchHint : r("comboBox.searchHint", { object: t.objectType })), { t: r } = se(), o = I(!1), s = D({
|
|
2636
2640
|
get: () => t.currentObject,
|
|
2637
2641
|
set: (C) => l("update:current-object", C)
|
|
2638
|
-
}), i =
|
|
2642
|
+
}), i = I(null), m = I(null), k = D(() => w()), d = I(""), h = I(""), q = I(), P = I(!0), L = I(!1);
|
|
2639
2643
|
function Z(C) {
|
|
2640
2644
|
var J, W;
|
|
2641
|
-
const
|
|
2642
|
-
L.value = window.innerHeight -
|
|
2645
|
+
const R = ((J = U.value) == null ? void 0 : J.getBoundingClientRect().top) || 0;
|
|
2646
|
+
L.value = window.innerHeight - R < 280, t.disabled || (typeof C < "u" ? o.value = C : o.value = !o.value), (W = i.value) == null || W.blur();
|
|
2643
2647
|
}
|
|
2644
2648
|
function ae(C) {
|
|
2645
2649
|
d.value = C, l("search", C);
|
|
2646
2650
|
}
|
|
2647
2651
|
function N(C) {
|
|
2648
|
-
|
|
2652
|
+
h.value = C, l("search-parent", C);
|
|
2649
2653
|
}
|
|
2650
2654
|
function B() {
|
|
2651
2655
|
s.value = null, Z(!1);
|
|
2652
2656
|
}
|
|
2653
2657
|
function u(C) {
|
|
2654
|
-
const
|
|
2655
|
-
s.value =
|
|
2658
|
+
const R = p(C);
|
|
2659
|
+
s.value = R, Z(!1);
|
|
2656
2660
|
}
|
|
2657
2661
|
function p(C) {
|
|
2658
|
-
let
|
|
2662
|
+
let R = null;
|
|
2659
2663
|
if (t.results !== null) {
|
|
2660
2664
|
for (let J = 0; J < t.results.length; J++)
|
|
2661
2665
|
if (t.results[J].id === C) {
|
|
2662
|
-
|
|
2666
|
+
R = t.results[J];
|
|
2663
2667
|
break;
|
|
2664
2668
|
}
|
|
2665
2669
|
}
|
|
2666
|
-
return
|
|
2670
|
+
return R;
|
|
2667
2671
|
}
|
|
2668
2672
|
function O() {
|
|
2669
2673
|
var C;
|
|
2670
|
-
|
|
2674
|
+
q.value = {
|
|
2671
2675
|
name: d.value,
|
|
2672
|
-
parentId: ((C =
|
|
2673
|
-
}, l("create-object",
|
|
2676
|
+
parentId: ((C = m.value) == null ? void 0 : C.id) ?? 0
|
|
2677
|
+
}, l("create-object", q.value);
|
|
2674
2678
|
}
|
|
2675
2679
|
function $() {
|
|
2676
|
-
|
|
2677
|
-
name:
|
|
2680
|
+
q.value = {
|
|
2681
|
+
name: h.value,
|
|
2678
2682
|
parentId: 0
|
|
2679
|
-
}, l("create-parent-object",
|
|
2683
|
+
}, l("create-parent-object", q.value);
|
|
2680
2684
|
}
|
|
2681
|
-
function
|
|
2682
|
-
var C,
|
|
2683
|
-
(C = t.objectCreatedResponse) != null && C.error ?
|
|
2685
|
+
function _() {
|
|
2686
|
+
var C, R;
|
|
2687
|
+
(C = t.objectCreatedResponse) != null && C.error ? il({
|
|
2684
2688
|
message: r("comboBox.createFailed", { name: d.value, error: t.objectCreatedResponse.error }),
|
|
2685
2689
|
colour: "danger",
|
|
2686
2690
|
duration: 1e4
|
|
2687
|
-
}) : (
|
|
2691
|
+
}) : (R = t.objectCreatedResponse) != null && R.id && T();
|
|
2688
2692
|
}
|
|
2689
|
-
function
|
|
2693
|
+
function z() {
|
|
2690
2694
|
var C;
|
|
2691
|
-
(C = t.parentObjectCreatedResponse) != null && C.id && (
|
|
2695
|
+
(C = t.parentObjectCreatedResponse) != null && C.id && (m.value = {
|
|
2692
2696
|
id: t.parentObjectCreatedResponse.id,
|
|
2693
2697
|
name: t.parentObjectCreatedResponse.name ?? ""
|
|
2694
2698
|
});
|
|
2695
2699
|
}
|
|
2696
2700
|
function T() {
|
|
2697
|
-
var
|
|
2698
|
-
|
|
2699
|
-
message: r("comboBox.createSuccessful", { object: t.objectType, name: ((
|
|
2701
|
+
var R, J, W, g, F;
|
|
2702
|
+
il({
|
|
2703
|
+
message: r("comboBox.createSuccessful", { object: t.objectType, name: ((R = t.objectCreatedResponse) == null ? void 0 : R.name) ?? "" }),
|
|
2700
2704
|
colour: "primary",
|
|
2701
2705
|
duration: 1e4
|
|
2702
2706
|
});
|
|
2703
2707
|
let C = "";
|
|
2704
|
-
|
|
2708
|
+
m.value && m.value.id === ((J = t.objectCreatedResponse) == null ? void 0 : J.parentId) && (C = m.value.name), s.value = {
|
|
2705
2709
|
id: ((W = t.objectCreatedResponse) == null ? void 0 : W.id) ?? 0,
|
|
2706
|
-
name: ((
|
|
2710
|
+
name: ((g = t.objectCreatedResponse) == null ? void 0 : g.name) ?? "",
|
|
2707
2711
|
parentId: ((F = t.objectCreatedResponse) == null ? void 0 : F.parentId) ?? 0,
|
|
2708
2712
|
parentName: C
|
|
2709
2713
|
};
|
|
@@ -2714,41 +2718,41 @@ const za = /* @__PURE__ */ h("div", { tabindex: "0" }, null, -1), xa = ["onKeypr
|
|
|
2714
2718
|
}
|
|
2715
2719
|
function E() {
|
|
2716
2720
|
let C = !0;
|
|
2717
|
-
d.value === "" && (C = !1), t.objectParentType !== "" &&
|
|
2721
|
+
d.value === "" && (C = !1), t.objectParentType !== "" && m.value === null && (C = !1), P.value = C;
|
|
2718
2722
|
}
|
|
2719
|
-
oe(() => t.objectCreatedResponse, () =>
|
|
2723
|
+
oe(() => t.objectCreatedResponse, () => _()), oe(() => t.parentObjectCreatedResponse, () => z()), oe(() => d.value, () => E()), oe(() => m.value, () => E()), e({
|
|
2720
2724
|
focus() {
|
|
2721
2725
|
var C;
|
|
2722
2726
|
(C = i.value) == null || C.focus();
|
|
2723
2727
|
}
|
|
2724
2728
|
});
|
|
2725
|
-
const
|
|
2726
|
-
return
|
|
2729
|
+
const U = I();
|
|
2730
|
+
return rl(U, () => o.value ? Z(!1) : ""), (C, R) => {
|
|
2727
2731
|
const J = tl("cl-ui-combo-box", !0);
|
|
2728
2732
|
return f(), y("div", {
|
|
2729
2733
|
ref_key: "outsideRef",
|
|
2730
|
-
ref:
|
|
2734
|
+
ref: U,
|
|
2731
2735
|
class: "cl-relative"
|
|
2732
2736
|
}, [
|
|
2733
|
-
|
|
2737
|
+
b("div", eo, [
|
|
2734
2738
|
S(me, {
|
|
2735
2739
|
ref_key: "inputRef",
|
|
2736
2740
|
ref: i,
|
|
2737
|
-
modelValue:
|
|
2738
|
-
"onUpdate:modelValue":
|
|
2741
|
+
modelValue: k.value,
|
|
2742
|
+
"onUpdate:modelValue": R[0] || (R[0] = (W) => k.value = W),
|
|
2739
2743
|
class: M(["!cl-mr-0 cl-mb-0 cl-rounded-r-none cl-w-full cl-z-10", {
|
|
2740
2744
|
"cl-cursor-pointer": C.disabled === !1
|
|
2741
2745
|
}]),
|
|
2742
2746
|
"input-type": "text",
|
|
2743
2747
|
"placeholder-text": n.value,
|
|
2744
|
-
onFocus:
|
|
2748
|
+
onFocus: R[1] || (R[1] = (W) => {
|
|
2745
2749
|
Z(), C.$emit("focus");
|
|
2746
2750
|
})
|
|
2747
2751
|
}, null, 8, ["modelValue", "class", "placeholder-text"]),
|
|
2748
|
-
le(
|
|
2749
|
-
|
|
2750
|
-
de(
|
|
2751
|
-
S(
|
|
2752
|
+
le(b("div", lo, [
|
|
2753
|
+
b("div", to, [
|
|
2754
|
+
de(A(v(r)("comboBox.required")) + " ", 1),
|
|
2755
|
+
S(v(x), {
|
|
2752
2756
|
class: "cl-ml-1 cl-mt-1",
|
|
2753
2757
|
icon: "ph:warning"
|
|
2754
2758
|
})
|
|
@@ -2762,9 +2766,9 @@ const za = /* @__PURE__ */ h("div", { tabindex: "0" }, null, -1), xa = ["onKeypr
|
|
|
2762
2766
|
"cl-cursor-default": C.disabled,
|
|
2763
2767
|
"cl-cursor-pointer": C.disabled === !1
|
|
2764
2768
|
}]),
|
|
2765
|
-
onClick:
|
|
2769
|
+
onClick: R[3] || (R[3] = (W) => Z(!1))
|
|
2766
2770
|
}, [
|
|
2767
|
-
S(
|
|
2771
|
+
S(v(x), {
|
|
2768
2772
|
icon: "ph:caret-up-bold",
|
|
2769
2773
|
class: "cl-ml-[4px] cl-mt-[12px]"
|
|
2770
2774
|
})
|
|
@@ -2774,9 +2778,9 @@ const za = /* @__PURE__ */ h("div", { tabindex: "0" }, null, -1), xa = ["onKeypr
|
|
|
2774
2778
|
"cl-cursor-default": C.disabled,
|
|
2775
2779
|
"cl-cursor-pointer": C.disabled === !1
|
|
2776
2780
|
}]),
|
|
2777
|
-
onClick:
|
|
2781
|
+
onClick: R[2] || (R[2] = (W) => Z(!0))
|
|
2778
2782
|
}, [
|
|
2779
|
-
S(
|
|
2783
|
+
S(v(x), {
|
|
2780
2784
|
icon: "ph:caret-down-bold",
|
|
2781
2785
|
class: "cl-ml-[4px] cl-mt-[12px]"
|
|
2782
2786
|
})
|
|
@@ -2784,10 +2788,10 @@ const za = /* @__PURE__ */ h("div", { tabindex: "0" }, null, -1), xa = ["onKeypr
|
|
|
2784
2788
|
]),
|
|
2785
2789
|
S(Fl, { size: "small" }, {
|
|
2786
2790
|
title: Y(() => [
|
|
2787
|
-
de(
|
|
2791
|
+
de(A(v(r)("comboBox.createTitle", { object: C.objectType })), 1)
|
|
2788
2792
|
]),
|
|
2789
2793
|
trigger: Y(({ open: W }) => [
|
|
2790
|
-
le(S(
|
|
2794
|
+
le(S(Xa, {
|
|
2791
2795
|
"can-create-new-object": C.canCreateNewObject,
|
|
2792
2796
|
"can-clear-selected-object": C.canClearSelectedObject,
|
|
2793
2797
|
loading: C.loading,
|
|
@@ -2795,7 +2799,7 @@ const za = /* @__PURE__ */ h("div", { tabindex: "0" }, null, -1), xa = ["onKeypr
|
|
|
2795
2799
|
"object-type": C.objectType,
|
|
2796
2800
|
"object-parent-type": C.objectParentType,
|
|
2797
2801
|
"error-message": C.errorMessage,
|
|
2798
|
-
"current-object-name":
|
|
2802
|
+
"current-object-name": k.value,
|
|
2799
2803
|
"is-visible": o.value,
|
|
2800
2804
|
class: M({
|
|
2801
2805
|
"cl-bottom-full": L.value
|
|
@@ -2805,13 +2809,13 @@ const za = /* @__PURE__ */ h("div", { tabindex: "0" }, null, -1), xa = ["onKeypr
|
|
|
2805
2809
|
onSelectObject: u,
|
|
2806
2810
|
onClearObject: B,
|
|
2807
2811
|
onSearch: ae,
|
|
2808
|
-
onHideDropdown:
|
|
2812
|
+
onHideDropdown: R[4] || (R[4] = (g) => Z(!1))
|
|
2809
2813
|
}, 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"]), [
|
|
2810
2814
|
[te, o.value]
|
|
2811
2815
|
])
|
|
2812
2816
|
]),
|
|
2813
2817
|
footer: Y(({ close: W }) => [
|
|
2814
|
-
|
|
2818
|
+
b("div", oo, [
|
|
2815
2819
|
S(ke, {
|
|
2816
2820
|
class: "cl-mr-3",
|
|
2817
2821
|
colour: "default",
|
|
@@ -2819,31 +2823,31 @@ const za = /* @__PURE__ */ h("div", { tabindex: "0" }, null, -1), xa = ["onKeypr
|
|
|
2819
2823
|
onClick: W
|
|
2820
2824
|
}, {
|
|
2821
2825
|
default: Y(() => [
|
|
2822
|
-
de(
|
|
2826
|
+
de(A(v(r)("comboBox.cancel")), 1)
|
|
2823
2827
|
]),
|
|
2824
2828
|
_: 2
|
|
2825
2829
|
}, 1032, ["onClick"]),
|
|
2826
2830
|
S(ke, {
|
|
2827
2831
|
colour: "primary",
|
|
2828
2832
|
size: "small",
|
|
2829
|
-
disabled: !
|
|
2830
|
-
onClick: (
|
|
2833
|
+
disabled: !P.value,
|
|
2834
|
+
onClick: (g) => {
|
|
2831
2835
|
O(), W();
|
|
2832
2836
|
}
|
|
2833
2837
|
}, {
|
|
2834
2838
|
default: Y(() => [
|
|
2835
|
-
de(
|
|
2839
|
+
de(A(v(r)("comboBox.create")), 1)
|
|
2836
2840
|
]),
|
|
2837
2841
|
_: 2
|
|
2838
2842
|
}, 1032, ["disabled", "onClick"])
|
|
2839
2843
|
])
|
|
2840
2844
|
]),
|
|
2841
2845
|
default: Y(() => [
|
|
2842
|
-
|
|
2846
|
+
b("div", ao, [
|
|
2843
2847
|
C.objectParentType ? (f(), G(J, {
|
|
2844
2848
|
key: 0,
|
|
2845
|
-
"current-object":
|
|
2846
|
-
"onUpdate:currentObject":
|
|
2849
|
+
"current-object": m.value,
|
|
2850
|
+
"onUpdate:currentObject": R[5] || (R[5] = (W) => m.value = W),
|
|
2847
2851
|
class: "cl-mt-3",
|
|
2848
2852
|
results: C.parentResults,
|
|
2849
2853
|
loading: C.loading,
|
|
@@ -2857,8 +2861,8 @@ const za = /* @__PURE__ */ h("div", { tabindex: "0" }, null, -1), xa = ["onKeypr
|
|
|
2857
2861
|
}, null, 8, ["current-object", "results", "loading", "object-type", "object-created-response", "can-create-new-object", "can-clear-selected-object", "error-message"])) : j("", !0),
|
|
2858
2862
|
S(me, {
|
|
2859
2863
|
modelValue: d.value,
|
|
2860
|
-
"onUpdate:modelValue":
|
|
2861
|
-
label:
|
|
2864
|
+
"onUpdate:modelValue": R[6] || (R[6] = (W) => d.value = W),
|
|
2865
|
+
label: v(r)("comboBox.createProperty"),
|
|
2862
2866
|
class: "cl-mb-2 cl-pt-3 cl-w-full",
|
|
2863
2867
|
"input-type": "text"
|
|
2864
2868
|
}, null, 8, ["modelValue", "label"])
|
|
@@ -2870,53 +2874,53 @@ const za = /* @__PURE__ */ h("div", { tabindex: "0" }, null, -1), xa = ["onKeypr
|
|
|
2870
2874
|
};
|
|
2871
2875
|
}
|
|
2872
2876
|
});
|
|
2873
|
-
function
|
|
2877
|
+
function ro(a) {
|
|
2874
2878
|
return typeof a.id == "number" && typeof a.name == "string";
|
|
2875
2879
|
}
|
|
2876
|
-
function
|
|
2880
|
+
function so(a) {
|
|
2877
2881
|
return typeof a.name == "string";
|
|
2878
2882
|
}
|
|
2879
|
-
const
|
|
2883
|
+
const io = {}, co = { class: "cl-flex cl-flex-wrap cl-left-0 cl-mt-4 cl-w-full" }, uo = {
|
|
2880
2884
|
key: 0,
|
|
2881
2885
|
class: "cl-w-full"
|
|
2882
|
-
},
|
|
2886
|
+
}, fo = {
|
|
2883
2887
|
key: 1,
|
|
2884
2888
|
class: "cl-leading-10 cl-text-sm cl-w-full"
|
|
2885
|
-
},
|
|
2886
|
-
function
|
|
2887
|
-
return f(), y("div",
|
|
2888
|
-
a.$slots.default ? (f(), y("div",
|
|
2889
|
+
}, po = { class: "cl-float-left" }, mo = { class: "cl-float-right" };
|
|
2890
|
+
function vo(a, e) {
|
|
2891
|
+
return f(), y("div", co, [
|
|
2892
|
+
a.$slots.default ? (f(), y("div", uo, [
|
|
2889
2893
|
V(a.$slots, "default")
|
|
2890
2894
|
])) : j("", !0),
|
|
2891
|
-
a.$slots.left || a.$slots.right ? (f(), y("div",
|
|
2892
|
-
|
|
2895
|
+
a.$slots.left || a.$slots.right ? (f(), y("div", fo, [
|
|
2896
|
+
b("span", po, [
|
|
2893
2897
|
V(a.$slots, "left")
|
|
2894
2898
|
]),
|
|
2895
|
-
|
|
2899
|
+
b("span", mo, [
|
|
2896
2900
|
V(a.$slots, "right")
|
|
2897
2901
|
])
|
|
2898
2902
|
])) : j("", !0)
|
|
2899
2903
|
]);
|
|
2900
2904
|
}
|
|
2901
|
-
const
|
|
2902
|
-
function
|
|
2905
|
+
const go = /* @__PURE__ */ we(io, [["render", vo]]);
|
|
2906
|
+
function Ue(a) {
|
|
2903
2907
|
const e = a.type !== "slot" || a.slotType !== void 0 && a.field !== void 0, l = a.sortable ?? !0;
|
|
2904
2908
|
return e && l;
|
|
2905
2909
|
}
|
|
2906
|
-
function
|
|
2910
|
+
function sl(a) {
|
|
2907
2911
|
const e = a.type !== "slot" || a.slotType !== void 0 && a.field !== void 0, l = a.filterable ?? !0;
|
|
2908
2912
|
return e && l;
|
|
2909
2913
|
}
|
|
2910
|
-
function
|
|
2911
|
-
return a.some((e) =>
|
|
2914
|
+
function bo(a) {
|
|
2915
|
+
return a.some((e) => Ue(e));
|
|
2912
2916
|
}
|
|
2913
|
-
function
|
|
2914
|
-
return a.some((e) =>
|
|
2917
|
+
function wl(a) {
|
|
2918
|
+
return a.some((e) => sl(e));
|
|
2915
2919
|
}
|
|
2916
|
-
const
|
|
2920
|
+
const ho = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, yo = { class: "cl-gap-1 cl-grid cl-grid-cols-2 cl-justify-end cl-mb-2 lg:cl-flex lg:cl-gap-2" }, wo = { class: "cl-basis-0 cl-col-span-2 cl-flex-grow" }, ko = /* @__PURE__ */ b("hr", { class: "cl-block cl-border-grey-3 cl-col-span-2 cl-my-4 lg:cl-hidden" }, null, -1), To = {
|
|
2917
2921
|
key: 1,
|
|
2918
2922
|
class: "cl-hidden lg:cl-block"
|
|
2919
|
-
},
|
|
2923
|
+
}, $o = { class: "cl-block lg:cl-hidden" }, Co = /* @__PURE__ */ Q({
|
|
2920
2924
|
__name: "cl-ui-grid-action-row",
|
|
2921
2925
|
props: {
|
|
2922
2926
|
editMode: { type: Boolean },
|
|
@@ -2928,19 +2932,19 @@ const yo = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, wo = { class: "cl-gap-1
|
|
|
2928
2932
|
},
|
|
2929
2933
|
emits: ["update:edit-mode", "update:filterPanelOpen", "clear-filters"],
|
|
2930
2934
|
setup(a) {
|
|
2931
|
-
const e = a, { t: l } = se(), t =
|
|
2935
|
+
const e = a, { t: l } = se(), t = D(() => e.request.filters.some((n) => n.filterValue !== ""));
|
|
2932
2936
|
return (n, c) => (f(), y(X, null, [
|
|
2933
|
-
|
|
2934
|
-
|
|
2937
|
+
b("div", ho, [
|
|
2938
|
+
b("strong", null, A(v(l)("grid.gridTools")), 1)
|
|
2935
2939
|
]),
|
|
2936
|
-
|
|
2937
|
-
|
|
2940
|
+
b("div", yo, [
|
|
2941
|
+
b("div", wo, [
|
|
2938
2942
|
V(n.$slots, "additional-grid-actions", ce(fe({
|
|
2939
2943
|
loading: n.loading,
|
|
2940
2944
|
editMode: n.editMode
|
|
2941
2945
|
})))
|
|
2942
2946
|
]),
|
|
2943
|
-
|
|
2947
|
+
ko,
|
|
2944
2948
|
n.columns.some((r) => r.editable) ? (f(), G(ke, {
|
|
2945
2949
|
key: 0,
|
|
2946
2950
|
size: "small",
|
|
@@ -2949,30 +2953,30 @@ const yo = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, wo = { class: "cl-gap-1
|
|
|
2949
2953
|
}, {
|
|
2950
2954
|
default: Y(() => [
|
|
2951
2955
|
n.editMode ? (f(), y(X, { key: 0 }, [
|
|
2952
|
-
de(
|
|
2956
|
+
de(A(v(l)("grid.finishEditing")), 1)
|
|
2953
2957
|
], 64)) : (f(), y(X, { key: 1 }, [
|
|
2954
|
-
de(
|
|
2958
|
+
de(A(v(l)("grid.editData")), 1)
|
|
2955
2959
|
], 64))
|
|
2956
2960
|
]),
|
|
2957
2961
|
_: 1
|
|
2958
2962
|
})) : j("", !0),
|
|
2959
|
-
n.options.hideViewManager ? j("", !0) : (f(), y("div",
|
|
2963
|
+
n.options.hideViewManager ? j("", !0) : (f(), y("div", To, [
|
|
2960
2964
|
V(n.$slots, "view-manager")
|
|
2961
2965
|
])),
|
|
2962
|
-
|
|
2963
|
-
|
|
2966
|
+
v(wl)(n.columns) || v(bo)(n.columns) ? (f(), y(X, { key: 2 }, [
|
|
2967
|
+
b("div", $o, [
|
|
2964
2968
|
S(ke, {
|
|
2965
2969
|
class: "cl-w-full",
|
|
2966
2970
|
size: "small",
|
|
2967
2971
|
onClick: c[1] || (c[1] = ne((r) => n.$emit("update:filterPanelOpen", !n.filterPanelOpen), ["prevent"]))
|
|
2968
2972
|
}, {
|
|
2969
2973
|
default: Y(() => [
|
|
2970
|
-
de(
|
|
2974
|
+
de(A(v(l)("grid.modifyFilters")), 1)
|
|
2971
2975
|
]),
|
|
2972
2976
|
_: 1
|
|
2973
2977
|
})
|
|
2974
2978
|
]),
|
|
2975
|
-
|
|
2979
|
+
v(wl)(n.columns) ? (f(), G(ke, {
|
|
2976
2980
|
key: 0,
|
|
2977
2981
|
size: "small",
|
|
2978
2982
|
colour: "danger",
|
|
@@ -2983,7 +2987,7 @@ const yo = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, wo = { class: "cl-gap-1
|
|
|
2983
2987
|
onClick: c[2] || (c[2] = ne((r) => n.$emit("clear-filters"), ["prevent"]))
|
|
2984
2988
|
}, {
|
|
2985
2989
|
default: Y(() => [
|
|
2986
|
-
de(
|
|
2990
|
+
de(A(v(l)("grid.clearFilters")), 1)
|
|
2987
2991
|
]),
|
|
2988
2992
|
_: 1
|
|
2989
2993
|
}, 8, ["disabled", "class"])) : j("", !0)
|
|
@@ -2991,16 +2995,16 @@ const yo = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, wo = { class: "cl-gap-1
|
|
|
2991
2995
|
])
|
|
2992
2996
|
], 64));
|
|
2993
2997
|
}
|
|
2994
|
-
}),
|
|
2998
|
+
}), Oo = {
|
|
2995
2999
|
key: 3,
|
|
2996
3000
|
class: "cl-inline-block cl-whitespace-nowrap"
|
|
2997
|
-
},
|
|
3001
|
+
}, So = {
|
|
2998
3002
|
key: 4,
|
|
2999
3003
|
class: "cl-inline-block cl-whitespace-nowrap"
|
|
3000
|
-
},
|
|
3004
|
+
}, No = {
|
|
3001
3005
|
key: 5,
|
|
3002
3006
|
class: "cl-inline-block cl-whitespace-nowrap"
|
|
3003
|
-
},
|
|
3007
|
+
}, Eo = ["innerHTML"], kl = /* @__PURE__ */ Q({
|
|
3004
3008
|
__name: "cl-ui-grid-cell-value",
|
|
3005
3009
|
props: {
|
|
3006
3010
|
data: {},
|
|
@@ -3018,27 +3022,27 @@ const yo = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, wo = { class: "cl-gap-1
|
|
|
3018
3022
|
locale: t.value,
|
|
3019
3023
|
zone: "UTC"
|
|
3020
3024
|
});
|
|
3021
|
-
let
|
|
3025
|
+
let m = "";
|
|
3022
3026
|
switch (s) {
|
|
3023
3027
|
case ie.SHORT_DATE:
|
|
3024
3028
|
case ie.DATE:
|
|
3025
|
-
|
|
3029
|
+
m = i.toFormat("D");
|
|
3026
3030
|
break;
|
|
3027
3031
|
case ie.LONG_DATE:
|
|
3028
|
-
|
|
3032
|
+
m = i.toFormat("DDD");
|
|
3029
3033
|
break;
|
|
3030
3034
|
case ie.SHORT_DATETIME:
|
|
3031
3035
|
case ie.DATETIME:
|
|
3032
|
-
|
|
3036
|
+
m = i.toFormat("f");
|
|
3033
3037
|
break;
|
|
3034
3038
|
case ie.LONG_DATETIME:
|
|
3035
|
-
|
|
3039
|
+
m = i.toFormat("fff");
|
|
3036
3040
|
break;
|
|
3037
3041
|
case ie.TIME:
|
|
3038
|
-
|
|
3042
|
+
m = i.toFormat("t");
|
|
3039
3043
|
break;
|
|
3040
3044
|
}
|
|
3041
|
-
return
|
|
3045
|
+
return m;
|
|
3042
3046
|
}
|
|
3043
3047
|
function r() {
|
|
3044
3048
|
let o = e.data[e.column.field];
|
|
@@ -3053,20 +3057,20 @@ const yo = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, wo = { class: "cl-gap-1
|
|
|
3053
3057
|
disabled: !0
|
|
3054
3058
|
}, null, 8, ["model-value"])) : (o.column.type === "date" || o.column.type === "datetime" || o.column.type === "dateRange") && o.column.field !== void 0 ? (f(), y(X, { key: 2 }, [
|
|
3055
3059
|
o.column.format !== void 0 ? (f(), y(X, { key: 0 }, [
|
|
3056
|
-
de(
|
|
3060
|
+
de(A(c(o.data[o.column.field], o.column.format)), 1)
|
|
3057
3061
|
], 64)) : o.column.type === "date" || o.column.type === "dateRange" ? (f(), y(X, { key: 1 }, [
|
|
3058
|
-
de(
|
|
3062
|
+
de(A(c(o.data[o.column.field], v(ie).DATE)), 1)
|
|
3059
3063
|
], 64)) : (f(), y(X, { key: 2 }, [
|
|
3060
|
-
de(
|
|
3064
|
+
de(A(c(o.data[o.column.field], v(ie).DATETIME)), 1)
|
|
3061
3065
|
], 64))
|
|
3062
|
-
], 64)) : o.column.type === "list" && o.column.field !== void 0 && o.column.listEntries !== void 0 ? (f(), y("span",
|
|
3063
|
-
|
|
3066
|
+
], 64)) : o.column.type === "list" && o.column.field !== void 0 && o.column.listEntries !== void 0 ? (f(), y("span", Oo, A(v(l)(((i = o.column.listEntries.find((m) => m.value === o.data[o.column.field])) == null ? void 0 : i.translationKey) ?? "")), 1)) : o.column.type === "number" && o.column.field !== void 0 ? (f(), y("span", So, A(v(n)(o.data[o.column.field], o.column.format ?? v(ue).DECIMAL)), 1)) : o.column.field !== void 0 ? (f(), y("span", No, [
|
|
3067
|
+
b("span", {
|
|
3064
3068
|
innerHTML: r()
|
|
3065
|
-
}, null, 8,
|
|
3069
|
+
}, null, 8, Eo)
|
|
3066
3070
|
])) : j("", !0);
|
|
3067
3071
|
};
|
|
3068
3072
|
}
|
|
3069
|
-
}),
|
|
3073
|
+
}), qo = { class: "cl-font-semibold lg:cl-hidden" }, Ao = /* @__PURE__ */ Q({
|
|
3070
3074
|
__name: "cl-ui-grid-cell",
|
|
3071
3075
|
props: {
|
|
3072
3076
|
data: {},
|
|
@@ -3077,14 +3081,14 @@ const yo = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, wo = { class: "cl-gap-1
|
|
|
3077
3081
|
},
|
|
3078
3082
|
emits: ["edit", "focus", "undo"],
|
|
3079
3083
|
setup(a, { emit: e }) {
|
|
3080
|
-
const l = a, { t } = se(), n =
|
|
3084
|
+
const l = a, { t } = se(), n = I(ge(l.data)), c = D(() => l.column.field !== void 0 && n.value[l.column.field] !== l.data[l.column.field]), r = D(() => {
|
|
3081
3085
|
var o;
|
|
3082
3086
|
return ((o = l.column.listEntries) == null ? void 0 : o.map((s, i) => ({
|
|
3083
3087
|
id: i,
|
|
3084
3088
|
name: t(s.translationKey)
|
|
3085
3089
|
}))) ?? [];
|
|
3086
3090
|
});
|
|
3087
|
-
return
|
|
3091
|
+
return zl(() => n.value = ge(l.data)), oe(n, (o) => {
|
|
3088
3092
|
const s = l.column.field ?? "";
|
|
3089
3093
|
s !== "" && (o[s] !== l.data[s] ? e("edit", o[s]) : e("undo"));
|
|
3090
3094
|
}, {
|
|
@@ -3094,7 +3098,7 @@ const yo = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, wo = { class: "cl-gap-1
|
|
|
3094
3098
|
"cl-bg-link-lighter": c.value
|
|
3095
3099
|
}])
|
|
3096
3100
|
}, [
|
|
3097
|
-
|
|
3101
|
+
b("span", qo, A(o.column.caption), 1),
|
|
3098
3102
|
o.editMode && o.column.editable === !0 ? V(o.$slots, `${o.column.name}Edit`, ce(ve({ key: 0 }, {
|
|
3099
3103
|
cellFocused: () => e("focus"),
|
|
3100
3104
|
column: o.column,
|
|
@@ -3103,7 +3107,7 @@ const yo = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, wo = { class: "cl-gap-1
|
|
|
3103
3107
|
listEntries: r.value,
|
|
3104
3108
|
searchValue: o.searchValue
|
|
3105
3109
|
})), () => [
|
|
3106
|
-
S(
|
|
3110
|
+
S(kl, {
|
|
3107
3111
|
column: o.column,
|
|
3108
3112
|
data: o.data,
|
|
3109
3113
|
"time-zone": o.timeZone,
|
|
@@ -3118,7 +3122,7 @@ const yo = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, wo = { class: "cl-gap-1
|
|
|
3118
3122
|
]),
|
|
3119
3123
|
_: 2
|
|
3120
3124
|
}, 1032, ["column", "data", "time-zone", "search-value"])
|
|
3121
|
-
]) : (f(), G(
|
|
3125
|
+
]) : (f(), G(kl, {
|
|
3122
3126
|
key: 1,
|
|
3123
3127
|
column: o.column,
|
|
3124
3128
|
data: o.data,
|
|
@@ -3132,7 +3136,7 @@ const yo = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, wo = { class: "cl-gap-1
|
|
|
3132
3136
|
}, 1032, ["column", "data", "time-zone", "search-value"]))
|
|
3133
3137
|
], 2));
|
|
3134
3138
|
}
|
|
3135
|
-
}),
|
|
3139
|
+
}), Do = /* @__PURE__ */ Q({
|
|
3136
3140
|
__name: "cl-ui-grid-row",
|
|
3137
3141
|
props: {
|
|
3138
3142
|
data: {},
|
|
@@ -3144,7 +3148,7 @@ const yo = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, wo = { class: "cl-gap-1
|
|
|
3144
3148
|
emits: ["cell-focus", "cell-edit", "cell-undo", "row-select"],
|
|
3145
3149
|
setup(a) {
|
|
3146
3150
|
return (e, l) => (f(), y("tr", null, [
|
|
3147
|
-
(f(!0), y(X, null, re(e.columns, (t, n) => (f(), G(
|
|
3151
|
+
(f(!0), y(X, null, re(e.columns, (t, n) => (f(), G(Ao, {
|
|
3148
3152
|
key: n,
|
|
3149
3153
|
data: e.data,
|
|
3150
3154
|
column: t,
|
|
@@ -3164,10 +3168,10 @@ const yo = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, wo = { class: "cl-gap-1
|
|
|
3164
3168
|
]), 1032, ["data", "column", "time-zone", "search-value", "edit-mode", "onEdit", "onUndo"]))), 128))
|
|
3165
3169
|
]));
|
|
3166
3170
|
}
|
|
3167
|
-
}),
|
|
3171
|
+
}), Ro = { key: 1 }, Io = ["colspan"], jo = { class: "cl-flex cl-flex-wrap cl-justify-center cl-text-center cl-text-sm cl-w-full" }, Fo = { class: "cl-mt-6 cl-w-full" }, Mo = {
|
|
3168
3172
|
key: 0,
|
|
3169
3173
|
class: "cl-mt-4"
|
|
3170
|
-
},
|
|
3174
|
+
}, Vo = { class: "cl-mb-2 cl-w-full" }, Uo = /* @__PURE__ */ Q({
|
|
3171
3175
|
__name: "cl-ui-grid-body",
|
|
3172
3176
|
props: {
|
|
3173
3177
|
columns: {},
|
|
@@ -3181,7 +3185,7 @@ const yo = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, wo = { class: "cl-gap-1
|
|
|
3181
3185
|
},
|
|
3182
3186
|
emits: ["row-select", "row-edit", "clear-filters"],
|
|
3183
3187
|
setup(a, { emit: e }) {
|
|
3184
|
-
const l = a, { t } = se(), n =
|
|
3188
|
+
const l = a, { t } = se(), n = I({
|
|
3185
3189
|
index: -1,
|
|
3186
3190
|
record: {}
|
|
3187
3191
|
});
|
|
@@ -3191,27 +3195,27 @@ const yo = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, wo = { class: "cl-gap-1
|
|
|
3191
3195
|
function r(d) {
|
|
3192
3196
|
n.value.index !== -1 && n.value.index !== d && c(), n.value.index = d;
|
|
3193
3197
|
}
|
|
3194
|
-
function o(d,
|
|
3195
|
-
r(d),
|
|
3198
|
+
function o(d, h) {
|
|
3199
|
+
r(d), h.field !== void 0 && (n.value.record[h.field] = h.value);
|
|
3196
3200
|
}
|
|
3197
3201
|
function s(d) {
|
|
3198
3202
|
if (d !== void 0) {
|
|
3199
|
-
const { [d]:
|
|
3203
|
+
const { [d]: h, ...q } = n.value.record;
|
|
3200
3204
|
n.value.record = {
|
|
3201
|
-
...
|
|
3205
|
+
...q
|
|
3202
3206
|
};
|
|
3203
3207
|
}
|
|
3204
3208
|
}
|
|
3205
|
-
const i =
|
|
3209
|
+
const i = I({});
|
|
3206
3210
|
oe(() => l.data, () => {
|
|
3207
|
-
var d,
|
|
3208
|
-
return i.value = Object.fromEntries(((
|
|
3209
|
-
[
|
|
3211
|
+
var d, h;
|
|
3212
|
+
return i.value = Object.fromEntries(((h = (d = l.data) == null ? void 0 : d.results) == null ? void 0 : h.map((q, P) => [
|
|
3213
|
+
[P],
|
|
3210
3214
|
{
|
|
3211
3215
|
count: 0,
|
|
3212
3216
|
target: null,
|
|
3213
|
-
reset:
|
|
3214
|
-
i.value[
|
|
3217
|
+
reset: $l(() => {
|
|
3218
|
+
i.value[P] && (i.value[P].count = 0, i.value[P].target = null);
|
|
3215
3219
|
}, 2500, { immediate: !1 })
|
|
3216
3220
|
}
|
|
3217
3221
|
])) ?? []);
|
|
@@ -3219,21 +3223,21 @@ const yo = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, wo = { class: "cl-gap-1
|
|
|
3219
3223
|
deep: !0,
|
|
3220
3224
|
immediate: !0
|
|
3221
3225
|
});
|
|
3222
|
-
function
|
|
3223
|
-
const { currentTarget:
|
|
3224
|
-
l.options.rowSelectionEnabled ? (
|
|
3226
|
+
function m(d, h, q) {
|
|
3227
|
+
const { currentTarget: P } = q;
|
|
3228
|
+
l.options.rowSelectionEnabled ? (k(P), e("row-select", h)) : (i.value[d].count++, i.value[d].target = P, i.value[d].count > 1 ? (i.value[d].reset.stop(), i.value[d].count = 0, k(P), i.value[d].target = null, e("row-select", h)) : i.value[d].reset.start());
|
|
3225
3229
|
}
|
|
3226
|
-
function
|
|
3230
|
+
function k(d) {
|
|
3227
3231
|
l.options.highlightRowSelection && (d == null || d.classList.toggle("!cl-bg-link-lighter"));
|
|
3228
3232
|
}
|
|
3229
3233
|
return oe(() => l.editMode, () => {
|
|
3230
3234
|
l.editMode || (c(), n.value.index = -1);
|
|
3231
|
-
}), (d,
|
|
3232
|
-
var
|
|
3235
|
+
}), (d, h) => {
|
|
3236
|
+
var q;
|
|
3233
3237
|
return f(), y("tbody", null, [
|
|
3234
|
-
d.data && ((
|
|
3238
|
+
d.data && ((q = d.data.results) != null && q.length) ? (f(!0), y(X, { key: 0 }, re(d.data.results, (P, L) => (f(), G(Do, {
|
|
3235
3239
|
key: L,
|
|
3236
|
-
data:
|
|
3240
|
+
data: P,
|
|
3237
3241
|
columns: d.columns,
|
|
3238
3242
|
"time-zone": d.timeZone,
|
|
3239
3243
|
"search-value": d.searchValue,
|
|
@@ -3244,7 +3248,7 @@ const yo = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, wo = { class: "cl-gap-1
|
|
|
3244
3248
|
"cl-cursor-pointer hover:cl-bg-link-lighter": d.options.rowSelectionEnabled && d.options.highlightRowSelection && !d.editMode
|
|
3245
3249
|
}]),
|
|
3246
3250
|
onClick: (Z) => {
|
|
3247
|
-
d.editMode ||
|
|
3251
|
+
d.editMode || m(L, P, Z);
|
|
3248
3252
|
},
|
|
3249
3253
|
onCellFocus: (Z) => {
|
|
3250
3254
|
r(L);
|
|
@@ -3260,35 +3264,35 @@ const yo = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, wo = { class: "cl-gap-1
|
|
|
3260
3264
|
V(d.$slots, ae, ce(fe(N)))
|
|
3261
3265
|
])
|
|
3262
3266
|
}))
|
|
3263
|
-
]), 1032, ["data", "columns", "time-zone", "search-value", "edit-mode", "class", "onClick", "onCellFocus", "onCellEdit"]))), 128)) : d.loading ? j("", !0) : (f(), y("tr",
|
|
3264
|
-
|
|
3267
|
+
]), 1032, ["data", "columns", "time-zone", "search-value", "edit-mode", "class", "onClick", "onCellFocus", "onCellEdit"]))), 128)) : d.loading ? j("", !0) : (f(), y("tr", Ro, [
|
|
3268
|
+
b("td", {
|
|
3265
3269
|
colspan: d.columns.length
|
|
3266
3270
|
}, [
|
|
3267
|
-
|
|
3268
|
-
|
|
3269
|
-
d.request.filters.some((
|
|
3270
|
-
|
|
3271
|
+
b("div", jo, [
|
|
3272
|
+
b("strong", Fo, A(v(t)("grid.noData")), 1),
|
|
3273
|
+
d.request.filters.some((P) => P.filterValue !== "") ? (f(), y("div", Mo, [
|
|
3274
|
+
b("div", Vo, A(v(t)("grid.noDataFiltersPresent")), 1),
|
|
3271
3275
|
S(ke, {
|
|
3272
3276
|
size: "small",
|
|
3273
3277
|
colour: "danger",
|
|
3274
|
-
onClick:
|
|
3278
|
+
onClick: h[0] || (h[0] = ne((P) => d.$emit("clear-filters"), ["prevent"]))
|
|
3275
3279
|
}, {
|
|
3276
3280
|
default: Y(() => [
|
|
3277
|
-
de(
|
|
3281
|
+
de(A(v(t)("grid.clearFilters")), 1)
|
|
3278
3282
|
]),
|
|
3279
3283
|
_: 1
|
|
3280
3284
|
})
|
|
3281
3285
|
])) : j("", !0)
|
|
3282
3286
|
])
|
|
3283
|
-
], 8,
|
|
3287
|
+
], 8, Io)
|
|
3284
3288
|
]))
|
|
3285
3289
|
]);
|
|
3286
3290
|
};
|
|
3287
3291
|
}
|
|
3288
|
-
}),
|
|
3292
|
+
}), Po = {
|
|
3289
3293
|
key: 0,
|
|
3290
3294
|
class: "cl-flex cl-flex-wrap cl-justify-end cl-mt-2 cl-w-full"
|
|
3291
|
-
},
|
|
3295
|
+
}, Lo = { class: "cl-bg-off-white cl-border cl-border-grey-1 cl-flex cl-items-center cl-mb-2 cl-px-3 cl-rounded-lg cl-shadow-md cl-text-sm cl-w-full lg:cl-w-auto" }, Bo = { class: "cl-text-grey-3 cl-w-max" }, zo = { class: "cl-bg-off-white cl-border cl-border-grey-1 cl-flex cl-flex-wrap cl-items-center cl-mb-2 cl-px-3 cl-py-2 cl-rounded-lg cl-shadow-md cl-text-sm cl-w-full lg:cl-ml-2 lg:cl-w-auto mb:cl-flex-nowrap" }, _o = { class: "cl-flex cl-flex-wrap cl-mb-2 cl-text-sm cl-w-full lg:cl-p-2 md:cl-mb-0 md:cl-w-auto" }, xo = { class: "cl-flex cl-flex-wrap cl-mb-2 cl-w-full lg:cl-mb-0 lg:cl-mr-2 lg:cl-w-auto" }, Ho = { class: "cl-text-grey-3 cl-w-full lg:cl-mr-2 lg:cl-w-auto" }, Go = { class: "cl-flex cl-flex-wrap cl-text-sm mb:cl-flex-nowrap" }, Zo = { class: "cl-pr-2" }, Ko = ["onClick"], Qo = { class: "cl-flex cl-flex-wrap cl-mb-2 cl-text-sm cl-w-full lg:cl-p-2 md:cl-mb-0 md:cl-w-auto" }, Wo = { class: "cl-mb-2 cl-text-grey-3 cl-w-full lg:cl-mb-0 lg:cl-mr-2 lg:cl-w-auto" }, Yo = ["onClick"], Jo = { class: "cl-mb-2 cl-w-full lg:cl-p-2 md:cl-mb-0 md:cl-w-auto" }, Xo = { class: "cl-block cl-mb-2 cl-text-grey-3 cl-w-full lg:cl-inline-block lg:cl-mb-0 lg:cl-mr-1 lg:cl-w-auto" }, en = { class: "cl-block lg:cl-inline-block" }, ln = /* @__PURE__ */ Q({
|
|
3292
3296
|
__name: "cl-ui-grid-footer",
|
|
3293
3297
|
props: {
|
|
3294
3298
|
request: {},
|
|
@@ -3299,25 +3303,25 @@ const yo = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, wo = { class: "cl-gap-1
|
|
|
3299
3303
|
"update:request": null
|
|
3300
3304
|
},
|
|
3301
3305
|
setup(a, { emit: e }) {
|
|
3302
|
-
const l = a, { n: t, t: n } = se(), c =
|
|
3306
|
+
const l = a, { n: t, t: n } = se(), c = D(() => {
|
|
3303
3307
|
var d;
|
|
3304
3308
|
return l.data !== null ? Math.ceil((((d = l.data) == null ? void 0 : d.totalRecords) ?? 0) / l.request.pageSize) : 1;
|
|
3305
|
-
}), r =
|
|
3309
|
+
}), r = D(() => {
|
|
3306
3310
|
const d = Array.from(Array(c.value + 1).keys());
|
|
3307
|
-
let
|
|
3311
|
+
let h = [];
|
|
3308
3312
|
if (d.shift(), d.length) {
|
|
3309
|
-
const
|
|
3310
|
-
|
|
3313
|
+
const q = l.request.pageNumber === c.value || l.request.pageNumber === c.value - 1 ? c.value - 3 : l.request.pageNumber - 1;
|
|
3314
|
+
h = d.slice(q, q + 3);
|
|
3311
3315
|
}
|
|
3312
|
-
return
|
|
3316
|
+
return h;
|
|
3313
3317
|
});
|
|
3314
3318
|
function o(d) {
|
|
3315
|
-
const
|
|
3316
|
-
|
|
3319
|
+
const h = ge(l.request);
|
|
3320
|
+
h.pageNumber !== d && (h.pageNumber = Math.max(Math.min(Math.trunc(d), c.value), 1), e("update:request", h));
|
|
3317
3321
|
}
|
|
3318
3322
|
function s(d) {
|
|
3319
|
-
const
|
|
3320
|
-
o(
|
|
3323
|
+
const h = parseInt(d == null ? void 0 : d.value) || 1;
|
|
3324
|
+
o(h);
|
|
3321
3325
|
}
|
|
3322
3326
|
const i = [
|
|
3323
3327
|
5,
|
|
@@ -3327,16 +3331,16 @@ const yo = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, wo = { class: "cl-gap-1
|
|
|
3327
3331
|
100,
|
|
3328
3332
|
200
|
|
3329
3333
|
];
|
|
3330
|
-
function
|
|
3331
|
-
const
|
|
3332
|
-
|
|
3334
|
+
function m(d) {
|
|
3335
|
+
const h = ge(l.request);
|
|
3336
|
+
h.pageSize = d, h.pageNumber = 1, e("update:request", h);
|
|
3333
3337
|
}
|
|
3334
|
-
const
|
|
3335
|
-
return (d,
|
|
3336
|
-
var
|
|
3337
|
-
return (
|
|
3338
|
-
|
|
3339
|
-
|
|
3338
|
+
const k = nl(s, 750);
|
|
3339
|
+
return (d, h) => {
|
|
3340
|
+
var q, P;
|
|
3341
|
+
return (P = (q = d.data) == null ? void 0 : q.results) != null && P.length && d.request ? (f(), y("div", Po, [
|
|
3342
|
+
b("div", Lo, [
|
|
3343
|
+
b("span", Bo, A(v(n)("grid.jumpToPage")), 1),
|
|
3340
3344
|
S(me, {
|
|
3341
3345
|
"model-value": d.request.pageNumber,
|
|
3342
3346
|
class: "cl-ml-1 cl-mt-0.5 cl-text-sm",
|
|
@@ -3345,32 +3349,32 @@ const yo = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, wo = { class: "cl-gap-1
|
|
|
3345
3349
|
"show-label": !1,
|
|
3346
3350
|
min: 1,
|
|
3347
3351
|
max: c.value,
|
|
3348
|
-
onInput:
|
|
3352
|
+
onInput: h[0] || (h[0] = (L) => v(k)(L.target))
|
|
3349
3353
|
}, null, 8, ["model-value", "disabled", "max"])
|
|
3350
3354
|
]),
|
|
3351
|
-
|
|
3352
|
-
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
+
b("div", zo, [
|
|
3356
|
+
b("div", _o, [
|
|
3357
|
+
b("li", xo, [
|
|
3358
|
+
b("span", Ho, A(v(n)("grid.page")), 1)
|
|
3355
3359
|
]),
|
|
3356
|
-
|
|
3357
|
-
|
|
3358
|
-
le(
|
|
3360
|
+
b("ul", Go, [
|
|
3361
|
+
b("li", Zo, A(v(t)(d.request.pageNumber, v(ue).INTEGER)) + " / " + A(v(t)(c.value, v(ue).INTEGER)), 1),
|
|
3362
|
+
le(b("li", {
|
|
3359
3363
|
class: "cl-cursor-pointer cl-mr-1 cl-mt-1 lg:cl-mr-2",
|
|
3360
|
-
onClick:
|
|
3364
|
+
onClick: h[1] || (h[1] = (L) => o(1))
|
|
3361
3365
|
}, [
|
|
3362
|
-
S(
|
|
3366
|
+
S(v(x), {
|
|
3363
3367
|
icon: "ph:caret-double-left",
|
|
3364
3368
|
size: 14
|
|
3365
3369
|
})
|
|
3366
3370
|
], 512), [
|
|
3367
3371
|
[te, d.request.pageNumber > 1]
|
|
3368
3372
|
]),
|
|
3369
|
-
le(
|
|
3373
|
+
le(b("li", {
|
|
3370
3374
|
class: "cl-cursor-pointer cl-mt-1 lg:cl-mr-2 mr-1",
|
|
3371
|
-
onClick:
|
|
3375
|
+
onClick: h[2] || (h[2] = (L) => o(d.request.pageNumber - 1))
|
|
3372
3376
|
}, [
|
|
3373
|
-
S(
|
|
3377
|
+
S(v(x), {
|
|
3374
3378
|
icon: "ph:caret-left",
|
|
3375
3379
|
size: 14
|
|
3376
3380
|
})
|
|
@@ -3384,23 +3388,23 @@ const yo = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, wo = { class: "cl-gap-1
|
|
|
3384
3388
|
"cl-text-grey-6": d.request.pageNumber !== L
|
|
3385
3389
|
}]),
|
|
3386
3390
|
onClick: (ae) => o(L)
|
|
3387
|
-
},
|
|
3388
|
-
le(
|
|
3391
|
+
}, A(v(t)(L, v(ue).INTEGER)), 11, Ko))), 128)),
|
|
3392
|
+
le(b("li", {
|
|
3389
3393
|
class: "cl-cursor-pointer cl-mr-1 cl-mt-1 lg:cl-mr-2",
|
|
3390
|
-
onClick:
|
|
3394
|
+
onClick: h[3] || (h[3] = (L) => o(d.request.pageNumber + 1))
|
|
3391
3395
|
}, [
|
|
3392
|
-
S(
|
|
3396
|
+
S(v(x), {
|
|
3393
3397
|
icon: "ph:caret-right",
|
|
3394
3398
|
size: 14
|
|
3395
3399
|
})
|
|
3396
3400
|
], 512), [
|
|
3397
3401
|
[te, d.request.pageNumber < c.value]
|
|
3398
3402
|
]),
|
|
3399
|
-
le(
|
|
3403
|
+
le(b("li", {
|
|
3400
3404
|
class: "cl-cursor-pointer cl-mr-1 cl-mt-1 lg:cl-mr-2",
|
|
3401
|
-
onClick:
|
|
3405
|
+
onClick: h[4] || (h[4] = (L) => o(c.value))
|
|
3402
3406
|
}, [
|
|
3403
|
-
S(
|
|
3407
|
+
S(v(x), {
|
|
3404
3408
|
icon: "ph:caret-double-right",
|
|
3405
3409
|
size: 14
|
|
3406
3410
|
})
|
|
@@ -3409,26 +3413,26 @@ const yo = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, wo = { class: "cl-gap-1
|
|
|
3409
3413
|
])
|
|
3410
3414
|
])
|
|
3411
3415
|
]),
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
(f(), y(X, null, re(i, (L, Z) =>
|
|
3416
|
+
b("ul", Qo, [
|
|
3417
|
+
b("li", Wo, A(v(n)("grid.pageSize")), 1),
|
|
3418
|
+
(f(), y(X, null, re(i, (L, Z) => b("li", {
|
|
3415
3419
|
key: Z,
|
|
3416
3420
|
class: M(["cl-cursor-pointer cl-mr-1 lg:cl-mr-2", {
|
|
3417
3421
|
"cl-text-black cl-font-bold": d.request.pageSize === L,
|
|
3418
3422
|
"cl-text-grey-6": d.request.pageSize !== L
|
|
3419
3423
|
}]),
|
|
3420
|
-
onClick: (ae) =>
|
|
3421
|
-
},
|
|
3424
|
+
onClick: (ae) => m(L)
|
|
3425
|
+
}, A(v(t)(L, v(ue).INTEGER)), 11, Yo)), 64))
|
|
3422
3426
|
]),
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
|
|
3427
|
+
b("ul", Jo, [
|
|
3428
|
+
b("li", Xo, A(v(n)("grid.totalRecords")), 1),
|
|
3429
|
+
b("li", en, A(v(t)(d.data.totalRecords, v(ue).INTEGER)), 1)
|
|
3426
3430
|
])
|
|
3427
3431
|
])
|
|
3428
3432
|
])) : j("", !0);
|
|
3429
3433
|
};
|
|
3430
3434
|
}
|
|
3431
|
-
}),
|
|
3435
|
+
}), tn = [
|
|
3432
3436
|
"string",
|
|
3433
3437
|
"boolean",
|
|
3434
3438
|
"number",
|
|
@@ -3441,7 +3445,7 @@ const yo = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, wo = { class: "cl-gap-1
|
|
|
3441
3445
|
function Ml(a) {
|
|
3442
3446
|
return typeof a.caption == "string" && typeof a.name == "string" && typeof a.type == "string";
|
|
3443
3447
|
}
|
|
3444
|
-
function
|
|
3448
|
+
function an(a) {
|
|
3445
3449
|
let e = Array.isArray(a);
|
|
3446
3450
|
if (e) {
|
|
3447
3451
|
for (const l of a)
|
|
@@ -3452,12 +3456,12 @@ function on(a) {
|
|
|
3452
3456
|
}
|
|
3453
3457
|
return e;
|
|
3454
3458
|
}
|
|
3455
|
-
const
|
|
3459
|
+
const on = [
|
|
3456
3460
|
"ellipsis",
|
|
3457
3461
|
"wrap-text"
|
|
3458
3462
|
];
|
|
3459
3463
|
var ee = /* @__PURE__ */ ((a) => (a[a.CONTAINS = 0] = "CONTAINS", a[a.NOT_CONTAINS = 1] = "NOT_CONTAINS", a[a.EQUAL = 2] = "EQUAL", a[a.NOT_EQUAL = 3] = "NOT_EQUAL", a[a.STARTS_WITH = 4] = "STARTS_WITH", a[a.ENDS_WITH = 5] = "ENDS_WITH", a[a.GREATER_THAN = 6] = "GREATER_THAN", a[a.LESS_THAN = 7] = "LESS_THAN", a[a.EQUAL_OR_GREATER_THAN = 8] = "EQUAL_OR_GREATER_THAN", a[a.EQUAL_OR_LESS_THAN = 9] = "EQUAL_OR_LESS_THAN", a[a.AND_CONTAINS = 10] = "AND_CONTAINS", a))(ee || {});
|
|
3460
|
-
const
|
|
3464
|
+
const nn = [
|
|
3461
3465
|
"equal",
|
|
3462
3466
|
"notequal",
|
|
3463
3467
|
"contains",
|
|
@@ -3470,24 +3474,24 @@ const rn = [
|
|
|
3470
3474
|
"equalorgreaterthan",
|
|
3471
3475
|
"andcontains"
|
|
3472
3476
|
];
|
|
3473
|
-
function
|
|
3477
|
+
function rn(a) {
|
|
3474
3478
|
return typeof a.filterOnColumn == "string" && typeof a.filterOperation == "number" && typeof a.filterValue == "string";
|
|
3475
3479
|
}
|
|
3476
|
-
function
|
|
3480
|
+
function sn(a) {
|
|
3477
3481
|
return a === null || typeof a.sortByAscending == "boolean" && typeof a.sortOnColumn == "string";
|
|
3478
3482
|
}
|
|
3479
|
-
function
|
|
3480
|
-
let e = typeof a.filters == "object" && Array.isArray(a.filters) && typeof a.pageNumber == "number" && typeof a.pageSize == "number" && typeof a.sort == "object" &&
|
|
3483
|
+
function cn(a) {
|
|
3484
|
+
let e = typeof a.filters == "object" && Array.isArray(a.filters) && typeof a.pageNumber == "number" && typeof a.pageSize == "number" && typeof a.sort == "object" && sn(a.sort);
|
|
3481
3485
|
if (e) {
|
|
3482
3486
|
for (const l of a.filters)
|
|
3483
|
-
if (!
|
|
3487
|
+
if (!rn(l)) {
|
|
3484
3488
|
e = !1;
|
|
3485
3489
|
break;
|
|
3486
3490
|
}
|
|
3487
3491
|
}
|
|
3488
3492
|
return e;
|
|
3489
3493
|
}
|
|
3490
|
-
function
|
|
3494
|
+
function un(a, e) {
|
|
3491
3495
|
let l = typeof a.results == "object" && Array.isArray(a.results) && typeof a.totalRecords == "number";
|
|
3492
3496
|
if (l) {
|
|
3493
3497
|
for (const t of a.results)
|
|
@@ -3498,7 +3502,7 @@ function dn(a, e) {
|
|
|
3498
3502
|
}
|
|
3499
3503
|
return l;
|
|
3500
3504
|
}
|
|
3501
|
-
const
|
|
3505
|
+
const dn = {
|
|
3502
3506
|
method: "equal",
|
|
3503
3507
|
icon: "mdi:equal",
|
|
3504
3508
|
description: "Equals",
|
|
@@ -3511,12 +3515,12 @@ const fn = {
|
|
|
3511
3515
|
"list"
|
|
3512
3516
|
],
|
|
3513
3517
|
key: "equal"
|
|
3514
|
-
},
|
|
3518
|
+
}, fn = {
|
|
3515
3519
|
method: "contains",
|
|
3516
3520
|
icon: "mdi:format-letter-matches",
|
|
3517
3521
|
description: "Contains",
|
|
3518
3522
|
allowedTypes: ["string"]
|
|
3519
|
-
},
|
|
3523
|
+
}, pn = {
|
|
3520
3524
|
method: "lessthan",
|
|
3521
3525
|
icon: "mdi:less-than",
|
|
3522
3526
|
description: "Before",
|
|
@@ -3525,8 +3529,8 @@ const fn = {
|
|
|
3525
3529
|
"datetime"
|
|
3526
3530
|
],
|
|
3527
3531
|
key: "before"
|
|
3528
|
-
},
|
|
3529
|
-
|
|
3532
|
+
}, Tl = [
|
|
3533
|
+
fn,
|
|
3530
3534
|
{
|
|
3531
3535
|
method: "notcontains",
|
|
3532
3536
|
icon: "mdi:format-letter-spacing-variant",
|
|
@@ -3545,7 +3549,7 @@ const fn = {
|
|
|
3545
3549
|
description: "Ends with",
|
|
3546
3550
|
allowedTypes: ["string"]
|
|
3547
3551
|
},
|
|
3548
|
-
|
|
3552
|
+
dn,
|
|
3549
3553
|
{
|
|
3550
3554
|
method: "notequal",
|
|
3551
3555
|
icon: "mdi:not-equal",
|
|
@@ -3558,7 +3562,7 @@ const fn = {
|
|
|
3558
3562
|
],
|
|
3559
3563
|
key: "notequal"
|
|
3560
3564
|
},
|
|
3561
|
-
|
|
3565
|
+
pn,
|
|
3562
3566
|
{
|
|
3563
3567
|
method: "greaterthan",
|
|
3564
3568
|
icon: "mdi:greater-than",
|
|
@@ -3613,7 +3617,7 @@ const fn = {
|
|
|
3613
3617
|
description: "Less than",
|
|
3614
3618
|
allowedTypes: ["number"]
|
|
3615
3619
|
}
|
|
3616
|
-
],
|
|
3620
|
+
], mn = { class: "cl-group cl-inline cl-relative cl-w-auto" }, vn = { 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" }, gn = { class: "cl-p-2 cl-select-none" }, bn = ["onClick"], hn = /* @__PURE__ */ Q({
|
|
3617
3621
|
__name: "cl-ui-grid-method-selector",
|
|
3618
3622
|
props: {
|
|
3619
3623
|
filter: {},
|
|
@@ -3623,19 +3627,19 @@ const fn = {
|
|
|
3623
3627
|
},
|
|
3624
3628
|
emits: ["update:filter"],
|
|
3625
3629
|
setup(a, { emit: e }) {
|
|
3626
|
-
const l = a, { t } = se(), n =
|
|
3630
|
+
const l = a, { t } = se(), n = D(() => {
|
|
3627
3631
|
let o = [];
|
|
3628
|
-
return l.column.type !== "slot" ? o =
|
|
3632
|
+
return l.column.type !== "slot" ? o = Tl.filter((s) => s.allowedTypes.includes(l.column.type)) : typeof l.column.slotType < "u" && typeof l.column.field < "u" && (o = Tl.filter((s) => s.allowedTypes.includes(l.column.slotType))), l.column.type === "date" || l.column.type === "datetime" || l.column.slotType === "date" || l.column.slotType === "datetime" ? o.forEach((s) => {
|
|
3629
3633
|
s.description = t(`grid.${s.key}`);
|
|
3630
3634
|
}) : o.forEach((s) => {
|
|
3631
3635
|
s.description = t(`grid.${s.method}`);
|
|
3632
3636
|
}), o;
|
|
3633
|
-
}), c =
|
|
3637
|
+
}), c = D(() => {
|
|
3634
3638
|
var s;
|
|
3635
3639
|
let o = (s = l.filter) == null ? void 0 : s.filterMethod;
|
|
3636
3640
|
return typeof o > "u" && (o = ee[l.defaultOperation].replace("_", "").toLowerCase()), n.value.find((i) => {
|
|
3637
|
-
var
|
|
3638
|
-
return i.method.toLowerCase() === ((
|
|
3641
|
+
var m;
|
|
3642
|
+
return i.method.toLowerCase() === ((m = o == null ? void 0 : o.removeNonAlphanumeric()) == null ? void 0 : m.toLowerCase());
|
|
3639
3643
|
});
|
|
3640
3644
|
});
|
|
3641
3645
|
function r(o) {
|
|
@@ -3653,9 +3657,9 @@ const fn = {
|
|
|
3653
3657
|
return;
|
|
3654
3658
|
e("update:filter", s);
|
|
3655
3659
|
}
|
|
3656
|
-
return (o, s) => (f(), y("div",
|
|
3657
|
-
|
|
3658
|
-
c.value ? (f(), G(
|
|
3660
|
+
return (o, s) => (f(), y("div", mn, [
|
|
3661
|
+
b("div", vn, [
|
|
3662
|
+
c.value ? (f(), G(v(x), {
|
|
3659
3663
|
key: 0,
|
|
3660
3664
|
icon: c.value.icon,
|
|
3661
3665
|
class: M(["cl-text-lg", {
|
|
@@ -3664,36 +3668,36 @@ const fn = {
|
|
|
3664
3668
|
}])
|
|
3665
3669
|
}, null, 8, ["icon", "class"])) : j("", !0)
|
|
3666
3670
|
]),
|
|
3667
|
-
|
|
3671
|
+
b("div", {
|
|
3668
3672
|
class: M(["cl-absolute cl-bg-white cl-border cl-border-grey-0 cl-flex-wrap cl-font-normal cl-h-0 cl-hidden cl-rounded cl-shadow-lg cl-text-left cl-text-xs cl-top-8 cl-z-10 group-hover:cl-flex group-hover:cl-h-auto group-hover:cl-w-52", {
|
|
3669
3673
|
"cl-left-0": o.firstHalf,
|
|
3670
3674
|
"cl--left-44": !o.firstHalf
|
|
3671
3675
|
}])
|
|
3672
3676
|
}, [
|
|
3673
|
-
|
|
3674
|
-
(f(!0), y(X, null, re(n.value, (i,
|
|
3675
|
-
var
|
|
3677
|
+
b("strong", gn, A(v(t)("grid.availableMethods")), 1),
|
|
3678
|
+
(f(!0), y(X, null, re(n.value, (i, m) => {
|
|
3679
|
+
var k;
|
|
3676
3680
|
return f(), y("span", {
|
|
3677
|
-
key:
|
|
3681
|
+
key: m,
|
|
3678
3682
|
class: M(["cl-cursor-pointer cl-px-4 cl-py-1 cl-transition-colors cl-w-full hover:cl-bg-grey-0", {
|
|
3679
|
-
"cl-bg-primary-default cl-opacity-80": i.method === ((
|
|
3683
|
+
"cl-bg-primary-default cl-opacity-80": i.method === ((k = c.value) == null ? void 0 : k.method)
|
|
3680
3684
|
}]),
|
|
3681
3685
|
onClick: ne((d) => r(i.method), ["prevent"])
|
|
3682
3686
|
}, [
|
|
3683
|
-
de(
|
|
3684
|
-
S(
|
|
3687
|
+
de(A(i.description) + " ", 1),
|
|
3688
|
+
S(v(x), {
|
|
3685
3689
|
icon: i.icon,
|
|
3686
3690
|
class: "cl-float-right cl-text-grey-4 cl-text-sm"
|
|
3687
3691
|
}, null, 8, ["icon"])
|
|
3688
|
-
], 10,
|
|
3692
|
+
], 10, bn);
|
|
3689
3693
|
}), 128))
|
|
3690
3694
|
], 2)
|
|
3691
3695
|
]));
|
|
3692
3696
|
}
|
|
3693
|
-
}),
|
|
3697
|
+
}), yn = {
|
|
3694
3698
|
key: 0,
|
|
3695
3699
|
class: "cl-border cl-border-grey-2 cl-flex cl-overflow-hidden cl-rounded-md lg:cl-overflow-visible"
|
|
3696
|
-
},
|
|
3700
|
+
}, wn = /* @__PURE__ */ b("option", { value: void 0 }, null, -1), kn = ["selected"], Tn = ["selected"], $n = /* @__PURE__ */ b("option", { value: void 0 }, null, -1), Cn = ["value", "selected"], On = /* @__PURE__ */ Q({
|
|
3697
3701
|
__name: "cl-ui-grid-filter",
|
|
3698
3702
|
props: {
|
|
3699
3703
|
filter: {},
|
|
@@ -3708,42 +3712,42 @@ const fn = {
|
|
|
3708
3712
|
function c() {
|
|
3709
3713
|
return l.column.type === "string" || l.column.slotType === "string" ? ee.CONTAINS : l.column.type === "datetime" || l.column.slotType === "datetime" || l.column.type === "date" || l.column.slotType === "date" ? ee.LESS_THAN : ee.EQUAL;
|
|
3710
3714
|
}
|
|
3711
|
-
const r =
|
|
3715
|
+
const r = D({
|
|
3712
3716
|
get: () => l.filter,
|
|
3713
3717
|
set: (p) => e("update:filter", p)
|
|
3714
|
-
}), o =
|
|
3718
|
+
}), o = D(() => l.column.type === "date" || l.column.type === "datetime" || l.column.type === "slot" && (l.column.slotType === "date" || l.column.slotType === "datetime")), s = D(() => l.column.type === "dateRange" || l.column.type === "slot" && l.column.slotType === "dateRange"), i = D(() => l.column.type === "list" || l.column.type === "slot" && l.column.slotType === "list"), m = D(() => i.value && l.column.listType === "number"), k = D({
|
|
3715
3719
|
get() {
|
|
3716
|
-
var O, $,
|
|
3720
|
+
var O, $, _, z, T, w, E;
|
|
3717
3721
|
let p = (O = r.value) == null ? void 0 : O[0];
|
|
3718
3722
|
if (p) {
|
|
3719
3723
|
if (o.value) {
|
|
3720
3724
|
if (((($ = l.filter) == null ? void 0 : $.length) ?? 0) > 1) {
|
|
3721
|
-
const
|
|
3722
|
-
|
|
3725
|
+
const U = (_ = r.value) == null ? void 0 : _.find((R) => R.filterOperation === ee.EQUAL_OR_GREATER_THAN), C = (z = r.value) == null ? void 0 : z.find((R) => R.filterOperation === ee.LESS_THAN);
|
|
3726
|
+
U && C && (p = {
|
|
3723
3727
|
filterOnColumn: l.column.field,
|
|
3724
3728
|
filterOperation: ee.EQUAL,
|
|
3725
3729
|
filterMethod: "equal",
|
|
3726
|
-
filterValue:
|
|
3730
|
+
filterValue: U.filterValue
|
|
3727
3731
|
});
|
|
3728
3732
|
} else if (p.filterOperation === ee.EQUAL_OR_LESS_THAN || p.filterOperation === ee.GREATER_THAN) {
|
|
3729
|
-
let
|
|
3733
|
+
let U = H.fromISO(p.filterValue, {
|
|
3730
3734
|
zone: l.timeZone ?? "UTC"
|
|
3731
3735
|
});
|
|
3732
|
-
l.column.type === "date" || l.column.type === "slot" && l.column.slotType === "date" ?
|
|
3736
|
+
l.column.type === "date" || l.column.type === "slot" && l.column.slotType === "date" ? U = U.minus({ days: 1 }) : U = U.minus({ minutes: 1 }), p = {
|
|
3733
3737
|
filterOnColumn: l.column.field,
|
|
3734
3738
|
filterOperation: p.filterOperation,
|
|
3735
3739
|
filterMethod: p.filterOperation === ee.EQUAL_OR_LESS_THAN ? "equalorlessthan" : "greaterthan",
|
|
3736
|
-
filterValue:
|
|
3740
|
+
filterValue: U.plus({ milliseconds: 1 }).toISO() ?? ""
|
|
3737
3741
|
};
|
|
3738
3742
|
}
|
|
3739
3743
|
} else if (s.value && (((T = l.filter) == null ? void 0 : T.length) ?? 0) > 1) {
|
|
3740
|
-
const
|
|
3741
|
-
|
|
3744
|
+
const U = (w = r.value) == null ? void 0 : w.find((R) => R.filterOperation === ee.EQUAL_OR_GREATER_THAN), C = (E = r.value) == null ? void 0 : E.find((R) => R.filterOperation === ee.EQUAL_OR_LESS_THAN);
|
|
3745
|
+
U && C && (p = {
|
|
3742
3746
|
filterOnColumn: l.column.field,
|
|
3743
3747
|
filterOperation: ee.EQUAL,
|
|
3744
3748
|
filterMethod: "equal",
|
|
3745
3749
|
filterValue: {
|
|
3746
|
-
start:
|
|
3750
|
+
start: U.filterValue,
|
|
3747
3751
|
end: C.filterValue
|
|
3748
3752
|
}
|
|
3749
3753
|
});
|
|
@@ -3754,14 +3758,14 @@ const fn = {
|
|
|
3754
3758
|
set(p) {
|
|
3755
3759
|
let O = null;
|
|
3756
3760
|
if (o.value) {
|
|
3757
|
-
const $ = p,
|
|
3758
|
-
if (
|
|
3761
|
+
const $ = p, _ = ($ == null ? void 0 : $.filterMethod) && h($.filterMethod, $.filterValue, "equal"), z = ($ == null ? void 0 : $.filterMethod) && h($.filterMethod, $.filterValue, "equalorlessthan"), T = ($ == null ? void 0 : $.filterMethod) && h($.filterMethod, $.filterValue, "greaterthan");
|
|
3762
|
+
if (_) {
|
|
3759
3763
|
let w = H.fromISO($.filterValue, {
|
|
3760
3764
|
zone: l.timeZone ?? "UTC"
|
|
3761
3765
|
}).set({ second: 0, millisecond: 0 });
|
|
3762
3766
|
const E = w.toISO();
|
|
3763
3767
|
l.column.type === "date" || l.column.type === "slot" && l.column.slotType === "date" ? w = w.plus({ days: 1 }) : w = w.plus({ minutes: 1 });
|
|
3764
|
-
const
|
|
3768
|
+
const U = w.toISO();
|
|
3765
3769
|
O = [
|
|
3766
3770
|
{
|
|
3767
3771
|
filterOnColumn: l.column.field,
|
|
@@ -3773,26 +3777,26 @@ const fn = {
|
|
|
3773
3777
|
filterOnColumn: l.column.field,
|
|
3774
3778
|
filterOperation: ee.LESS_THAN,
|
|
3775
3779
|
filterMethod: "lessthan",
|
|
3776
|
-
filterValue:
|
|
3780
|
+
filterValue: U
|
|
3777
3781
|
}
|
|
3778
3782
|
];
|
|
3779
|
-
} else if (
|
|
3783
|
+
} else if (z || T) {
|
|
3780
3784
|
let w = H.fromISO($.filterValue, {
|
|
3781
3785
|
zone: l.timeZone ?? "UTC"
|
|
3782
3786
|
}).set({ second: 0, millisecond: 0 });
|
|
3783
3787
|
l.column.type === "date" || l.column.type === "slot" && l.column.slotType === "date" ? w = w.plus({ days: 1 }) : w = w.plus({ minutes: 1 }), O = [
|
|
3784
3788
|
{
|
|
3785
3789
|
filterOnColumn: l.column.field,
|
|
3786
|
-
filterOperation:
|
|
3787
|
-
filterMethod:
|
|
3790
|
+
filterOperation: z ? ee.EQUAL_OR_LESS_THAN : ee.GREATER_THAN,
|
|
3791
|
+
filterMethod: z ? "equalorlessthan" : "greaterthan",
|
|
3788
3792
|
filterValue: w.minus({ milliseconds: 1 }).toISO()
|
|
3789
3793
|
}
|
|
3790
3794
|
];
|
|
3791
3795
|
}
|
|
3792
3796
|
} else if (s.value && (p != null && p.filterValue)) {
|
|
3793
|
-
const $ = p.filterValue,
|
|
3797
|
+
const $ = p.filterValue, _ = H.fromISO($.start, {
|
|
3794
3798
|
zone: l.timeZone ?? "UTC"
|
|
3795
|
-
}).toISO(),
|
|
3799
|
+
}).toISO(), z = H.fromISO($.end, {
|
|
3796
3800
|
zone: l.timeZone ?? "UTC"
|
|
3797
3801
|
}).toISO();
|
|
3798
3802
|
O = [
|
|
@@ -3800,13 +3804,13 @@ const fn = {
|
|
|
3800
3804
|
filterOnColumn: l.column.field,
|
|
3801
3805
|
filterOperation: ee.EQUAL_OR_GREATER_THAN,
|
|
3802
3806
|
filterMethod: "equalorgreaterthan",
|
|
3803
|
-
filterValue:
|
|
3807
|
+
filterValue: _
|
|
3804
3808
|
},
|
|
3805
3809
|
{
|
|
3806
3810
|
filterOnColumn: l.column.field,
|
|
3807
3811
|
filterOperation: ee.EQUAL_OR_LESS_THAN,
|
|
3808
3812
|
filterMethod: "equalorlessthan",
|
|
3809
|
-
filterValue:
|
|
3813
|
+
filterValue: z
|
|
3810
3814
|
}
|
|
3811
3815
|
];
|
|
3812
3816
|
}
|
|
@@ -3819,76 +3823,76 @@ const fn = {
|
|
|
3819
3823
|
l.timeZone ? $.filterValue = H.fromISO($.filterValue).setZone("UTC").toISO() ?? "" : $.filterValue = $.filterValue.replace("Z", "");
|
|
3820
3824
|
r.value = O;
|
|
3821
3825
|
}
|
|
3822
|
-
}), d =
|
|
3823
|
-
get: () =>
|
|
3826
|
+
}), d = D({
|
|
3827
|
+
get: () => k.value,
|
|
3824
3828
|
set(p) {
|
|
3825
|
-
|
|
3829
|
+
k.value = p;
|
|
3826
3830
|
}
|
|
3827
3831
|
});
|
|
3828
|
-
function
|
|
3832
|
+
function h(p, O, $) {
|
|
3829
3833
|
return O !== void 0 && O !== "" && p === $ && o.value;
|
|
3830
3834
|
}
|
|
3831
|
-
const
|
|
3835
|
+
const q = D(() => {
|
|
3832
3836
|
var p;
|
|
3833
|
-
return ((p =
|
|
3834
|
-
}),
|
|
3837
|
+
return ((p = k.value) == null ? void 0 : p.filterValue) ?? "";
|
|
3838
|
+
}), P = D(() => q.value === "" ? null : q.value), L = D(() => q.value === "" ? null : q.value), Z = D(() => Intl.NumberFormat(t.value).format(1.1).replace(/[0-9]+/g, "")), ae = D(() => sl(l.column));
|
|
3835
3839
|
function N(p, O) {
|
|
3836
3840
|
var T;
|
|
3837
|
-
let $,
|
|
3838
|
-
const
|
|
3839
|
-
if (
|
|
3840
|
-
|
|
3841
|
-
else if (
|
|
3841
|
+
let $, _ = !1;
|
|
3842
|
+
const z = ((p == null ? void 0 : p.value) ?? O).trim();
|
|
3843
|
+
if (k.value)
|
|
3844
|
+
_ = ((T = k.value) == null ? void 0 : T.filterValue) === z, $ = ge(d.value), $.filterValue = z;
|
|
3845
|
+
else if (z !== "" && typeof l.column.field < "u") {
|
|
3842
3846
|
const w = c();
|
|
3843
3847
|
$ = {
|
|
3844
3848
|
filterOnColumn: l.column.field,
|
|
3845
3849
|
filterMethod: ee[w].replace("_", "").toLowerCase(),
|
|
3846
3850
|
filterOperation: w,
|
|
3847
|
-
filterValue:
|
|
3851
|
+
filterValue: z
|
|
3848
3852
|
};
|
|
3849
3853
|
} else
|
|
3850
3854
|
return;
|
|
3851
|
-
|
|
3855
|
+
_ === !1 && (k.value = $);
|
|
3852
3856
|
}
|
|
3853
3857
|
function B(p, O) {
|
|
3854
|
-
let $,
|
|
3855
|
-
l.column.format === ue.INTEGER ? (typeof
|
|
3858
|
+
let $, _ = (p == null ? void 0 : p.value) ?? O ?? 0;
|
|
3859
|
+
l.column.format === ue.INTEGER ? (typeof _ == "string" && (_ = parseInt(_)), $ = Math.round(_)) : (typeof _ == "string" && (_ = parseFloat(_.replace(Z.value, "."))), $ = _), N(null, isNaN($) ? "" : $.toString());
|
|
3856
3860
|
}
|
|
3857
3861
|
function u(p) {
|
|
3858
|
-
var
|
|
3862
|
+
var _;
|
|
3859
3863
|
let O, $ = !1;
|
|
3860
|
-
if (
|
|
3861
|
-
$ = ((
|
|
3864
|
+
if (k.value)
|
|
3865
|
+
$ = ((_ = k.value) == null ? void 0 : _.filterValue) === p, O = ge(k.value), O.filterValue = p ?? "";
|
|
3862
3866
|
else if (p !== null && typeof l.column.field < "u") {
|
|
3863
|
-
const
|
|
3867
|
+
const z = c();
|
|
3864
3868
|
O = {
|
|
3865
3869
|
filterOnColumn: l.column.field,
|
|
3866
|
-
filterMethod: ee[
|
|
3867
|
-
filterOperation:
|
|
3870
|
+
filterMethod: ee[z].replace("_", "").toLowerCase(),
|
|
3871
|
+
filterOperation: z,
|
|
3868
3872
|
filterValue: p
|
|
3869
3873
|
};
|
|
3870
3874
|
} else
|
|
3871
3875
|
return;
|
|
3872
|
-
$ === !1 && (
|
|
3876
|
+
$ === !1 && (k.value = O);
|
|
3873
3877
|
}
|
|
3874
|
-
return (p, O) => ae.value ? (f(), y("div",
|
|
3878
|
+
return (p, O) => ae.value ? (f(), y("div", yn, [
|
|
3875
3879
|
p.column.type === "boolean" || p.column.type === "slot" && p.column.slotType === "boolean" ? (f(), y("select", {
|
|
3876
3880
|
key: 0,
|
|
3877
3881
|
class: "!cl-h-[2rem] cl-bg-white cl-border-none cl-mb-0 cl-rounded-md cl-w-full",
|
|
3878
3882
|
onChange: O[0] || (O[0] = ($) => N($.target))
|
|
3879
3883
|
}, [
|
|
3880
|
-
|
|
3881
|
-
|
|
3884
|
+
wn,
|
|
3885
|
+
b("option", {
|
|
3882
3886
|
value: "true",
|
|
3883
|
-
selected:
|
|
3884
|
-
},
|
|
3885
|
-
|
|
3887
|
+
selected: q.value === "true"
|
|
3888
|
+
}, A(v(n)("grid.true")), 9, kn),
|
|
3889
|
+
b("option", {
|
|
3886
3890
|
value: "false",
|
|
3887
|
-
selected:
|
|
3888
|
-
},
|
|
3891
|
+
selected: q.value === "false"
|
|
3892
|
+
}, A(v(n)("grid.false")), 9, Tn)
|
|
3889
3893
|
], 32)) : o.value ? (f(), G(me, {
|
|
3890
3894
|
key: 1,
|
|
3891
|
-
"model-value":
|
|
3895
|
+
"model-value": P.value,
|
|
3892
3896
|
class: "!cl-h-[2rem] !cl-text-xs cl-border-none cl-mb-0 cl-w-full lg:!cl-text-base",
|
|
3893
3897
|
label: p.column.caption,
|
|
3894
3898
|
"show-label": !1,
|
|
@@ -3905,30 +3909,30 @@ const fn = {
|
|
|
3905
3909
|
"onUpdate:modelValue": O[2] || (O[2] = ($) => u($))
|
|
3906
3910
|
}, null, 8, ["model-value", "time-zone", "quick-date-scope"])) : p.column.type === "number" || p.column.type === "slot" && p.column.slotType === "number" ? (f(), G(me, {
|
|
3907
3911
|
key: 3,
|
|
3908
|
-
"model-value":
|
|
3912
|
+
"model-value": q.value,
|
|
3909
3913
|
class: "!cl-h-[2rem] !cl-text-xs cl-border-none cl-mb-0 cl-w-full lg:!cl-text-base",
|
|
3910
3914
|
"input-type": "number",
|
|
3911
3915
|
"show-arrows": !1,
|
|
3912
|
-
onInput: O[3] || (O[3] = ($,
|
|
3916
|
+
onInput: O[3] || (O[3] = ($, _) => B(null, _))
|
|
3913
3917
|
}, null, 8, ["model-value"])) : p.column.type === "string" || p.column.type === "slot" && p.column.slotType === "string" ? (f(), G(me, {
|
|
3914
3918
|
key: 4,
|
|
3915
|
-
"model-value":
|
|
3919
|
+
"model-value": q.value,
|
|
3916
3920
|
class: "!cl-h-[2rem] !cl-text-xs cl-border-none cl-mb-0 cl-w-full lg:!cl-text-base",
|
|
3917
3921
|
"input-type": "text",
|
|
3918
|
-
onInput: O[4] || (O[4] = ($,
|
|
3922
|
+
onInput: O[4] || (O[4] = ($, _) => N(null, _))
|
|
3919
3923
|
}, null, 8, ["model-value"])) : i.value ? (f(), y("select", {
|
|
3920
3924
|
key: 5,
|
|
3921
3925
|
class: "!cl-h-[2rem] cl-bg-white cl-border-none cl-mb-0 cl-rounded-md cl-w-full",
|
|
3922
|
-
onChange: O[5] || (O[5] = ($) =>
|
|
3926
|
+
onChange: O[5] || (O[5] = ($) => m.value ? B($.target) : N($.target))
|
|
3923
3927
|
}, [
|
|
3924
|
-
|
|
3928
|
+
$n,
|
|
3925
3929
|
(f(!0), y(X, null, re(p.column.listEntries ?? [], ($) => (f(), y("option", {
|
|
3926
3930
|
key: $.value,
|
|
3927
3931
|
value: $.value,
|
|
3928
|
-
selected:
|
|
3929
|
-
},
|
|
3932
|
+
selected: q.value === $.value.toString()
|
|
3933
|
+
}, A(v(n)($.translationKey)), 9, Cn))), 128))
|
|
3930
3934
|
], 32)) : j("", !0),
|
|
3931
|
-
s.value ? j("", !0) : (f(), G(
|
|
3935
|
+
s.value ? j("", !0) : (f(), G(hn, {
|
|
3932
3936
|
key: 6,
|
|
3933
3937
|
filter: d.value,
|
|
3934
3938
|
"onUpdate:filter": O[6] || (O[6] = ($) => d.value = $),
|
|
@@ -3938,7 +3942,7 @@ const fn = {
|
|
|
3938
3942
|
}, null, 8, ["filter", "column", "default-operation", "first-half"]))
|
|
3939
3943
|
])) : j("", !0);
|
|
3940
3944
|
}
|
|
3941
|
-
}),
|
|
3945
|
+
}), Sn = { class: "-cl-top-1 cl-bg-white cl-shadow-sm cl-sticky cl-z-20 lg:cl-bg-transparent lg:cl-relative lg:cl-shadow-none" }, Nn = { class: "cl-hidden lg:cl-table-row" }, En = ["onClick"], qn = { class: "cl-flex cl-justify-end cl-w-full lg:cl-hidden" }, An = { class: "cl-col-span-2 lg:cl-hidden" }, Dn = ["onClick"], Rn = { class: "cl-font-normal cl-mr-1" }, In = /* @__PURE__ */ Q({
|
|
3942
3946
|
__name: "cl-ui-grid-header",
|
|
3943
3947
|
props: {
|
|
3944
3948
|
request: {},
|
|
@@ -3950,13 +3954,13 @@ const fn = {
|
|
|
3950
3954
|
},
|
|
3951
3955
|
emits: ["update:request", "update:filterPanelOpen"],
|
|
3952
3956
|
setup(a, { emit: e }) {
|
|
3953
|
-
const l = a, { t } = se(), n =
|
|
3957
|
+
const l = a, { t } = se(), n = D({
|
|
3954
3958
|
get: () => l.request,
|
|
3955
3959
|
set: (s) => e("update:request", s)
|
|
3956
3960
|
});
|
|
3957
3961
|
function c(s, i) {
|
|
3958
|
-
var
|
|
3959
|
-
return ((
|
|
3962
|
+
var m, k;
|
|
3963
|
+
return ((m = n.value.sort) == null ? void 0 : m.sortOnColumn) === s.field && ((k = n.value.sort) == null ? void 0 : k.sortByAscending) === i;
|
|
3960
3964
|
}
|
|
3961
3965
|
function r(s) {
|
|
3962
3966
|
if (typeof s < "u") {
|
|
@@ -3971,90 +3975,90 @@ const fn = {
|
|
|
3971
3975
|
if (s) {
|
|
3972
3976
|
const i = ge(n.value);
|
|
3973
3977
|
i.filters = [
|
|
3974
|
-
...i.filters.filter((
|
|
3978
|
+
...i.filters.filter((m) => m.filterOnColumn !== s[0].filterOnColumn),
|
|
3975
3979
|
...s
|
|
3976
3980
|
], i.pageNumber = 1, n.value = i;
|
|
3977
3981
|
}
|
|
3978
3982
|
}
|
|
3979
|
-
return (s, i) => (f(), y("thead",
|
|
3980
|
-
|
|
3981
|
-
(f(!0), y(X, null, re(s.columns, (
|
|
3982
|
-
key:
|
|
3983
|
+
return (s, i) => (f(), y("thead", Sn, [
|
|
3984
|
+
b("tr", Nn, [
|
|
3985
|
+
(f(!0), y(X, null, re(s.columns, (m, k) => (f(), y("th", {
|
|
3986
|
+
key: k,
|
|
3983
3987
|
class: M(["cl-text-grey-3 cl-text-sm", {
|
|
3984
|
-
"cl-cursor-pointer":
|
|
3988
|
+
"cl-cursor-pointer": v(Ue)(m)
|
|
3985
3989
|
}]),
|
|
3986
|
-
onClick: (d) =>
|
|
3990
|
+
onClick: (d) => v(Ue)(m) ? r(m.field) : () => {
|
|
3987
3991
|
}
|
|
3988
3992
|
}, [
|
|
3989
|
-
de(
|
|
3990
|
-
le(S(
|
|
3993
|
+
de(A(m.caption) + " ", 1),
|
|
3994
|
+
le(S(v(x), {
|
|
3991
3995
|
class: "cl-inline-block",
|
|
3992
3996
|
icon: "ph:caret-up"
|
|
3993
3997
|
}, null, 512), [
|
|
3994
|
-
[te, c(
|
|
3998
|
+
[te, c(m, !0)]
|
|
3995
3999
|
]),
|
|
3996
|
-
le(S(
|
|
4000
|
+
le(S(v(x), {
|
|
3997
4001
|
class: "cl-inline-block",
|
|
3998
4002
|
icon: "ph:caret-down"
|
|
3999
4003
|
}, null, 512), [
|
|
4000
|
-
[te, c(
|
|
4004
|
+
[te, c(m, !1)]
|
|
4001
4005
|
])
|
|
4002
|
-
], 10,
|
|
4006
|
+
], 10, En))), 128))
|
|
4003
4007
|
]),
|
|
4004
|
-
|
|
4008
|
+
b("tr", {
|
|
4005
4009
|
class: M(["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", {
|
|
4006
4010
|
"cl-hidden lg:cl-table-row": !s.filterPanelOpen
|
|
4007
4011
|
}])
|
|
4008
4012
|
}, [
|
|
4009
|
-
|
|
4010
|
-
S(
|
|
4013
|
+
b("div", qn, [
|
|
4014
|
+
S(v(x), {
|
|
4011
4015
|
class: "cl-text-grey-4 hover:cl-cursor-pointer hover:cl-text-link-default",
|
|
4012
4016
|
icon: "ph:x",
|
|
4013
4017
|
size: 16,
|
|
4014
|
-
onClick: i[0] || (i[0] = ne((
|
|
4018
|
+
onClick: i[0] || (i[0] = ne((m) => s.$emit("update:filterPanelOpen", !1), ["prevent"]))
|
|
4015
4019
|
})
|
|
4016
4020
|
]),
|
|
4017
|
-
(f(!0), y(X, null, re(s.columns, (
|
|
4018
|
-
key:
|
|
4021
|
+
(f(!0), y(X, null, re(s.columns, (m, k) => (f(), y("th", {
|
|
4022
|
+
key: k,
|
|
4019
4023
|
class: M(["cl-grid cl-grid-cols-4 cl-py-1 cl-text-xs cl-w-full lg:cl-table-cell lg:cl-w-auto", {
|
|
4020
|
-
"cl-hidden lg:cl-table-cell": !
|
|
4024
|
+
"cl-hidden lg:cl-table-cell": !v(sl)(m)
|
|
4021
4025
|
}])
|
|
4022
4026
|
}, [
|
|
4023
|
-
|
|
4024
|
-
|
|
4027
|
+
b("div", An, A(m.caption), 1),
|
|
4028
|
+
v(Ue)(m) ? (f(), y("div", {
|
|
4025
4029
|
key: 0,
|
|
4026
4030
|
class: "cl-col-span-2 cl-gap-1 cl-span lg:cl-hidden",
|
|
4027
|
-
onClick: (d) => r(
|
|
4031
|
+
onClick: (d) => r(m.field)
|
|
4028
4032
|
}, [
|
|
4029
|
-
|
|
4030
|
-
c(
|
|
4033
|
+
b("span", Rn, A(v(t)("grid.sortBy")), 1),
|
|
4034
|
+
c(m, !0) ? (f(), G(v(x), {
|
|
4031
4035
|
key: 0,
|
|
4032
4036
|
class: "cl-cursor-pointer cl-inline-block",
|
|
4033
4037
|
icon: "ph:caret-up"
|
|
4034
|
-
})) : c(
|
|
4038
|
+
})) : c(m, !1) ? (f(), G(v(x), {
|
|
4035
4039
|
key: 1,
|
|
4036
4040
|
class: "cl-cursor-pointer cl-inline-block",
|
|
4037
4041
|
icon: "ph:caret-down"
|
|
4038
|
-
})) : (f(), G(
|
|
4042
|
+
})) : (f(), G(v(x), {
|
|
4039
4043
|
key: 2,
|
|
4040
4044
|
class: "cl-cursor-pointer cl-inline-block",
|
|
4041
4045
|
icon: "ph:minus"
|
|
4042
4046
|
}))
|
|
4043
|
-
], 8,
|
|
4044
|
-
S(
|
|
4047
|
+
], 8, Dn)) : j("", !0),
|
|
4048
|
+
S(On, {
|
|
4045
4049
|
class: "cl-col-span-4",
|
|
4046
|
-
filter: n.value.filters.filter((d) => d.filterOnColumn ===
|
|
4047
|
-
column:
|
|
4050
|
+
filter: n.value.filters.filter((d) => d.filterOnColumn === m.field),
|
|
4051
|
+
column: m,
|
|
4048
4052
|
"time-zone": s.timeZone,
|
|
4049
4053
|
"quick-date-scope": s.quickDateScope,
|
|
4050
|
-
"first-half":
|
|
4054
|
+
"first-half": k <= s.columns.length / 2,
|
|
4051
4055
|
"onUpdate:filter": o
|
|
4052
4056
|
}, null, 8, ["filter", "column", "time-zone", "quick-date-scope", "first-half"])
|
|
4053
4057
|
], 2))), 128))
|
|
4054
4058
|
], 2)
|
|
4055
4059
|
]));
|
|
4056
4060
|
}
|
|
4057
|
-
}),
|
|
4061
|
+
}), jn = { class: "cl-flex cl-mb-2" }, Fn = /* @__PURE__ */ Q({
|
|
4058
4062
|
__name: "cl-ui-grid-search",
|
|
4059
4063
|
props: {
|
|
4060
4064
|
searchValue: {},
|
|
@@ -4064,7 +4068,7 @@ const fn = {
|
|
|
4064
4068
|
},
|
|
4065
4069
|
emits: ["update:searchValue", "update:request"],
|
|
4066
4070
|
setup(a, { emit: e }) {
|
|
4067
|
-
const l = a, t =
|
|
4071
|
+
const l = a, t = D({
|
|
4068
4072
|
get: () => l.request,
|
|
4069
4073
|
set: (r) => e("update:request", r)
|
|
4070
4074
|
});
|
|
@@ -4087,13 +4091,13 @@ const fn = {
|
|
|
4087
4091
|
return (r, o) => {
|
|
4088
4092
|
const s = tl("icon");
|
|
4089
4093
|
return V(r.$slots, "search", ce(fe({ searchValue: r.searchValue, performSearch: n })), () => [
|
|
4090
|
-
|
|
4094
|
+
b("div", jn, [
|
|
4091
4095
|
S(me, {
|
|
4092
4096
|
"model-value": r.searchValue,
|
|
4093
4097
|
class: "cl-grow",
|
|
4094
4098
|
"input-specific-classes": "!cl-pr-6",
|
|
4095
4099
|
"input-type": "text",
|
|
4096
|
-
"placeholder-text": r.columns.length > 4 ?
|
|
4100
|
+
"placeholder-text": r.columns.length > 4 ? v(c)("grid.search") : v(c)("grid.searchSpecific", { columns: r.columns.map((i) => i.caption).join(", ") }),
|
|
4097
4101
|
onKeypress: o[0] || (o[0] = Ee((i) => n(i.target.value), ["enter"])),
|
|
4098
4102
|
onBlur: o[1] || (o[1] = (i) => n(i.target.value))
|
|
4099
4103
|
}, null, 8, ["model-value", "placeholder-text"]),
|
|
@@ -4106,7 +4110,7 @@ const fn = {
|
|
|
4106
4110
|
]);
|
|
4107
4111
|
};
|
|
4108
4112
|
}
|
|
4109
|
-
}),
|
|
4113
|
+
}), Mn = { class: "cl-fixed cl-flex cl-h-full cl-justify-end cl-right-0 cl-shadow-lg cl-top-0 cl-z-40" }, Vn = { 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" }, Un = { class: "cl-mb-4 cl-text-2xl cl-text-off-white" }, Pn = { class: "cl-border-grey-3 cl-border-t cl-flex cl-flex-wrap cl-text-sm cl-w-full" }, Ln = { class: "cl-border-b cl-border-grey-2 cl-flex cl-py-2 cl-text-sm cl-w-full" }, Bn = { class: "cl-flex-1 cl-py-2" }, zn = { class: "cl-py-2 cl-w-1/4" }, _n = { class: "cl-py-2 cl-w-1/5" }, xn = { class: "cl-flex-1 cl-py-2" }, Hn = { class: "cl-py-2 cl-w-1/4" }, Gn = { class: "cl-py-2 cl-text-off-white cl-w-1/5" }, Zn = { key: 1 }, Kn = /* @__PURE__ */ Q({
|
|
4110
4114
|
inheritAttrs: !1,
|
|
4111
4115
|
__name: "cl-ui-grid-view-manager",
|
|
4112
4116
|
props: {
|
|
@@ -4114,74 +4118,74 @@ const fn = {
|
|
|
4114
4118
|
},
|
|
4115
4119
|
emits: ["update:columns"],
|
|
4116
4120
|
setup(a, { emit: e }) {
|
|
4117
|
-
const l = a, { t } = se(), n =
|
|
4118
|
-
function c(s, i,
|
|
4119
|
-
|
|
4121
|
+
const l = a, { t } = se(), n = I(!1);
|
|
4122
|
+
function c(s, i, m) {
|
|
4123
|
+
m < s.length && m >= 0 && s.splice(m, 0, s.splice(i, 1)[0]);
|
|
4120
4124
|
}
|
|
4121
4125
|
function r(s, i) {
|
|
4122
|
-
const
|
|
4123
|
-
d >= 0 && (
|
|
4126
|
+
const m = ge(l.columns), k = (s == null ? void 0 : s.checked) ?? !1, d = m.findIndex((h) => h.name === i.name);
|
|
4127
|
+
d >= 0 && (m[d].visible = k), e("update:columns", m);
|
|
4124
4128
|
}
|
|
4125
4129
|
function o(s, i) {
|
|
4126
|
-
const
|
|
4127
|
-
c(
|
|
4130
|
+
const m = ge(l.columns), k = i === "up" ? s + 1 : s - 1;
|
|
4131
|
+
c(m, s, k), e("update:columns", m);
|
|
4128
4132
|
}
|
|
4129
4133
|
return (s, i) => (f(), y(X, null, [
|
|
4130
4134
|
S(ke, ve(s.$attrs, {
|
|
4131
4135
|
class: "cl-w-full",
|
|
4132
4136
|
size: "small",
|
|
4133
|
-
onClick: i[0] || (i[0] = ne((
|
|
4137
|
+
onClick: i[0] || (i[0] = ne((m) => n.value = !0, ["prevent"]))
|
|
4134
4138
|
}), {
|
|
4135
4139
|
default: Y(() => [
|
|
4136
|
-
de(
|
|
4140
|
+
de(A(v(t)("grid.manageView")), 1)
|
|
4137
4141
|
]),
|
|
4138
4142
|
_: 1
|
|
4139
4143
|
}, 16),
|
|
4140
4144
|
(f(), G(ll, { to: "body" }, [
|
|
4141
4145
|
S(Te, { name: "slide-left" }, {
|
|
4142
4146
|
default: Y(() => [
|
|
4143
|
-
le(
|
|
4144
|
-
|
|
4145
|
-
S(
|
|
4147
|
+
le(b("div", Mn, [
|
|
4148
|
+
b("div", Vn, [
|
|
4149
|
+
S(v(x), {
|
|
4146
4150
|
class: "cl-absolute cl-cursor-pointer cl-right-3 cl-text-off-white cl-top-3",
|
|
4147
4151
|
icon: "ph:x",
|
|
4148
4152
|
size: 16,
|
|
4149
|
-
onClick: i[1] || (i[1] = (
|
|
4153
|
+
onClick: i[1] || (i[1] = (m) => n.value = !1)
|
|
4150
4154
|
}),
|
|
4151
|
-
|
|
4152
|
-
|
|
4153
|
-
|
|
4154
|
-
|
|
4155
|
-
|
|
4156
|
-
|
|
4155
|
+
b("h3", Un, A(v(t)("grid.manageView")), 1),
|
|
4156
|
+
b("ul", Pn, [
|
|
4157
|
+
b("li", Ln, [
|
|
4158
|
+
b("strong", Bn, A(v(t)("grid.column")), 1),
|
|
4159
|
+
b("strong", zn, A(v(t)("grid.visible")), 1),
|
|
4160
|
+
b("strong", _n, A(v(t)("grid.order")), 1)
|
|
4157
4161
|
]),
|
|
4158
|
-
(f(!0), y(X, null, re(s.columns, (
|
|
4159
|
-
key:
|
|
4162
|
+
(f(!0), y(X, null, re(s.columns, (m, k) => (f(), y("li", {
|
|
4163
|
+
key: k,
|
|
4160
4164
|
class: "cl-border-b cl-border-grey-2 cl-flex cl-py-2 cl-text-sm cl-w-full"
|
|
4161
4165
|
}, [
|
|
4162
|
-
|
|
4163
|
-
|
|
4166
|
+
b("div", xn, A(m.caption), 1),
|
|
4167
|
+
b("div", Hn, [
|
|
4164
4168
|
S(me, {
|
|
4165
|
-
"model-value":
|
|
4169
|
+
"model-value": m.visible === void 0 || m.visible === !0,
|
|
4166
4170
|
"input-type": "checkbox",
|
|
4167
|
-
onClick: (d) => r(d.target,
|
|
4171
|
+
onClick: (d) => r(d.target, m)
|
|
4168
4172
|
}, null, 8, ["model-value", "onClick"])
|
|
4169
4173
|
]),
|
|
4170
|
-
|
|
4171
|
-
|
|
4172
|
-
|
|
4174
|
+
b("div", Gn, [
|
|
4175
|
+
m.visible === void 0 || m.visible === !0 ? (f(), y(X, { key: 0 }, [
|
|
4176
|
+
k !== 0 ? (f(), G(v(x), {
|
|
4173
4177
|
key: 0,
|
|
4174
4178
|
class: "cl-cursor-pointer cl-inline-block cl-mr-2",
|
|
4175
4179
|
icon: "ph:arrow-left",
|
|
4176
|
-
onClick: (d) => o(
|
|
4180
|
+
onClick: (d) => o(k, "down")
|
|
4177
4181
|
}, null, 8, ["onClick"])) : j("", !0),
|
|
4178
|
-
|
|
4182
|
+
k !== s.columns.length - 1 ? (f(), G(v(x), {
|
|
4179
4183
|
key: 1,
|
|
4180
4184
|
class: "cl-cursor-pointer cl-inline-block",
|
|
4181
4185
|
icon: "ph:arrow-right",
|
|
4182
|
-
onClick: (d) => o(
|
|
4186
|
+
onClick: (d) => o(k, "up")
|
|
4183
4187
|
}, null, 8, ["onClick"])) : j("", !0)
|
|
4184
|
-
], 64)) : (f(), y("em",
|
|
4188
|
+
], 64)) : (f(), y("em", Zn, A(v(t)("grid.hidden")), 1))
|
|
4185
4189
|
])
|
|
4186
4190
|
]))), 128))
|
|
4187
4191
|
])
|
|
@@ -4195,7 +4199,7 @@ const fn = {
|
|
|
4195
4199
|
]))
|
|
4196
4200
|
], 64));
|
|
4197
4201
|
}
|
|
4198
|
-
}),
|
|
4202
|
+
}), Qn = { class: "cl-relative cl-w-full grid-wrapper lg:cl-min-h-fit" }, Wn = { class: "cl-absolute cl-flex cl-items-center cl-justify-center cl-min-h-full cl-p-28 cl-pt-0 cl-w-full" }, Yn = { class: "cl-overflow-x-auto cl-overscroll-x-none cl-pt-1" }, Jn = { class: "cl-hidden lg:cl-table-column-group" }, Xn = /* @__PURE__ */ Q({
|
|
4199
4203
|
__name: "cl-ui-grid",
|
|
4200
4204
|
props: {
|
|
4201
4205
|
columns: {},
|
|
@@ -4209,10 +4213,10 @@ const fn = {
|
|
|
4209
4213
|
emits: ["update:columns", "update:request", "data-request", "row-edit", "edit-start", "edit-end", "row-select"],
|
|
4210
4214
|
setup(a, { emit: e }) {
|
|
4211
4215
|
var ae;
|
|
4212
|
-
const l = a, t =
|
|
4216
|
+
const l = a, t = D({
|
|
4213
4217
|
get: () => l.columns,
|
|
4214
4218
|
set: (N) => e("update:columns", N)
|
|
4215
|
-
}), n =
|
|
4219
|
+
}), n = D(() => t.value.filter((N) => N.visible ?? !0)), c = I({});
|
|
4216
4220
|
function r() {
|
|
4217
4221
|
const N = {};
|
|
4218
4222
|
window.innerWidth >= 1024 && t.value.forEach((B) => {
|
|
@@ -4226,7 +4230,7 @@ const fn = {
|
|
|
4226
4230
|
Ze(() => {
|
|
4227
4231
|
window.addEventListener("resize", r), r();
|
|
4228
4232
|
}), al(() => window.removeEventListener("resize", r));
|
|
4229
|
-
const s =
|
|
4233
|
+
const s = D({
|
|
4230
4234
|
get: () => l.request,
|
|
4231
4235
|
set: (N) => e("update:request", N)
|
|
4232
4236
|
});
|
|
@@ -4234,17 +4238,17 @@ const fn = {
|
|
|
4234
4238
|
const N = ge(s.value);
|
|
4235
4239
|
N.pageNumber = 1, N.filters = [], L.value = "", s.value = N;
|
|
4236
4240
|
}
|
|
4237
|
-
const
|
|
4238
|
-
oe(s,
|
|
4241
|
+
const m = nl(() => e("data-request"), 750);
|
|
4242
|
+
oe(s, m, {
|
|
4239
4243
|
deep: !0,
|
|
4240
4244
|
immediate: !0
|
|
4241
4245
|
});
|
|
4242
|
-
const
|
|
4246
|
+
const k = D(() => l.data), d = I(!1), h = I(!1);
|
|
4243
4247
|
oe(d, () => d.value ? e("edit-start") : e("edit-end"));
|
|
4244
|
-
const
|
|
4248
|
+
const q = D(() => ({
|
|
4245
4249
|
highlightRowSelection: !0,
|
|
4246
4250
|
...l.options
|
|
4247
|
-
})),
|
|
4251
|
+
})), P = D({
|
|
4248
4252
|
get() {
|
|
4249
4253
|
const N = ge(s.value);
|
|
4250
4254
|
return N.filters = N.filters.filter((B) => B.filterMethod !== "andcontains" && B.filterOperation !== ee.AND_CONTAINS), N;
|
|
@@ -4259,9 +4263,9 @@ const fn = {
|
|
|
4259
4263
|
filters: B
|
|
4260
4264
|
};
|
|
4261
4265
|
}
|
|
4262
|
-
}), L =
|
|
4263
|
-
return (N, B) => (f(), y("div",
|
|
4264
|
-
Z.value.length > 0 ? (f(), G(
|
|
4266
|
+
}), L = I(((ae = l.request.filters.find((N) => N.filterMethod === "andcontains" || N.filterOperation === ee.AND_CONTAINS)) == null ? void 0 : ae.filterValue) ?? ""), Z = D(() => l.columns.filter((N) => (N.type === "string" || N.type === "slot" && N.slotType === "string") && N.searchable));
|
|
4267
|
+
return (N, B) => (f(), y("div", Qn, [
|
|
4268
|
+
Z.value.length > 0 ? (f(), G(Fn, {
|
|
4265
4269
|
key: 0,
|
|
4266
4270
|
"search-value": L.value,
|
|
4267
4271
|
"onUpdate:searchValue": B[0] || (B[0] = (u) => L.value = u),
|
|
@@ -4277,7 +4281,7 @@ const fn = {
|
|
|
4277
4281
|
}, 8, ["search-value", "request", "columns", "loading"])) : j("", !0),
|
|
4278
4282
|
S(Te, { name: "fade" }, {
|
|
4279
4283
|
default: Y(() => [
|
|
4280
|
-
le(
|
|
4284
|
+
le(b("div", Wn, [
|
|
4281
4285
|
S(Ke, { class: "after:!cl-h-20 after:!cl-w-20 cl-h-20 cl-w-20" })
|
|
4282
4286
|
], 512), [
|
|
4283
4287
|
[te, N.loading]
|
|
@@ -4285,13 +4289,13 @@ const fn = {
|
|
|
4285
4289
|
]),
|
|
4286
4290
|
_: 1
|
|
4287
4291
|
}),
|
|
4288
|
-
S(
|
|
4292
|
+
S(Co, {
|
|
4289
4293
|
"edit-mode": d.value,
|
|
4290
4294
|
"onUpdate:editMode": B[3] || (B[3] = (u) => d.value = u),
|
|
4291
|
-
"filter-panel-open":
|
|
4292
|
-
"onUpdate:filterPanelOpen": B[4] || (B[4] = (u) =>
|
|
4295
|
+
"filter-panel-open": h.value,
|
|
4296
|
+
"onUpdate:filterPanelOpen": B[4] || (B[4] = (u) => h.value = u),
|
|
4293
4297
|
columns: N.columns,
|
|
4294
|
-
options:
|
|
4298
|
+
options: q.value,
|
|
4295
4299
|
request: s.value,
|
|
4296
4300
|
loading: N.loading,
|
|
4297
4301
|
onClearFilters: i
|
|
@@ -4300,44 +4304,44 @@ const fn = {
|
|
|
4300
4304
|
V(N.$slots, "additional-grid-actions", ce(fe(u)))
|
|
4301
4305
|
]),
|
|
4302
4306
|
"view-manager": Y(() => [
|
|
4303
|
-
S(
|
|
4307
|
+
S(Kn, {
|
|
4304
4308
|
columns: t.value,
|
|
4305
4309
|
"onUpdate:columns": B[2] || (B[2] = (u) => t.value = u)
|
|
4306
4310
|
}, null, 8, ["columns"])
|
|
4307
4311
|
]),
|
|
4308
4312
|
_: 3
|
|
4309
4313
|
}, 8, ["edit-mode", "filter-panel-open", "columns", "options", "request", "loading"]),
|
|
4310
|
-
|
|
4311
|
-
|
|
4314
|
+
b("div", Yn, [
|
|
4315
|
+
b("table", {
|
|
4312
4316
|
class: M(["cl-delay-75 cl-min-h-[276px] cl-overflow-x-auto cl-overscroll-x-none cl-text-left cl-transition-opacity cl-w-full", {
|
|
4313
4317
|
"cl-opacity-40": N.loading
|
|
4314
4318
|
}])
|
|
4315
4319
|
}, [
|
|
4316
|
-
|
|
4320
|
+
b("colgroup", Jn, [
|
|
4317
4321
|
(f(!0), y(X, null, re(n.value, (u, p) => (f(), y("col", {
|
|
4318
4322
|
key: p,
|
|
4319
|
-
style:
|
|
4323
|
+
style: _l(o(u.name)),
|
|
4320
4324
|
span: 1
|
|
4321
4325
|
}, null, 4))), 128))
|
|
4322
4326
|
]),
|
|
4323
|
-
S(
|
|
4324
|
-
request:
|
|
4325
|
-
"onUpdate:request": B[5] || (B[5] = (u) =>
|
|
4326
|
-
"filter-panel-open":
|
|
4327
|
-
"onUpdate:filterPanelOpen": B[6] || (B[6] = (u) =>
|
|
4327
|
+
S(In, {
|
|
4328
|
+
request: P.value,
|
|
4329
|
+
"onUpdate:request": B[5] || (B[5] = (u) => P.value = u),
|
|
4330
|
+
"filter-panel-open": h.value,
|
|
4331
|
+
"onUpdate:filterPanelOpen": B[6] || (B[6] = (u) => h.value = u),
|
|
4328
4332
|
columns: n.value,
|
|
4329
|
-
options:
|
|
4333
|
+
options: q.value,
|
|
4330
4334
|
"time-zone": N.timeZone,
|
|
4331
4335
|
"quick-date-scope": N.quickDateScope
|
|
4332
4336
|
}, null, 8, ["request", "filter-panel-open", "columns", "options", "time-zone", "quick-date-scope"]),
|
|
4333
4337
|
S(Uo, {
|
|
4334
4338
|
columns: n.value,
|
|
4335
4339
|
request: s.value,
|
|
4336
|
-
data:
|
|
4340
|
+
data: k.value,
|
|
4337
4341
|
"time-zone": N.timeZone,
|
|
4338
4342
|
loading: N.loading,
|
|
4339
4343
|
"search-value": L.value,
|
|
4340
|
-
options:
|
|
4344
|
+
options: q.value,
|
|
4341
4345
|
"edit-mode": d.value,
|
|
4342
4346
|
onClearFilters: i,
|
|
4343
4347
|
onRowEdit: B[7] || (B[7] = (u) => N.$emit("row-edit", u)),
|
|
@@ -4352,7 +4356,7 @@ const fn = {
|
|
|
4352
4356
|
]), 1032, ["columns", "request", "data", "time-zone", "loading", "search-value", "options", "edit-mode"])
|
|
4353
4357
|
], 2)
|
|
4354
4358
|
]),
|
|
4355
|
-
S(
|
|
4359
|
+
S(ln, {
|
|
4356
4360
|
request: s.value,
|
|
4357
4361
|
"onUpdate:request": B[9] || (B[9] = (u) => s.value = u),
|
|
4358
4362
|
loading: N.loading,
|
|
@@ -4360,19 +4364,19 @@ const fn = {
|
|
|
4360
4364
|
}, null, 8, ["request", "loading", "data"])
|
|
4361
4365
|
]));
|
|
4362
4366
|
}
|
|
4363
|
-
}),
|
|
4367
|
+
}), er = { 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" }, lr = /* @__PURE__ */ Q({
|
|
4364
4368
|
__name: "cl-ui-header",
|
|
4365
4369
|
props: {
|
|
4366
4370
|
isOpen: { type: Boolean }
|
|
4367
4371
|
},
|
|
4368
4372
|
emits: ["open-click"],
|
|
4369
4373
|
setup(a, { emit: e }) {
|
|
4370
|
-
const l = a, t =
|
|
4371
|
-
return
|
|
4374
|
+
const l = a, t = I();
|
|
4375
|
+
return rl(t, () => {
|
|
4372
4376
|
(l.isOpen ?? !1) && e("open-click");
|
|
4373
|
-
}), (n, c) => (f(), y("header",
|
|
4377
|
+
}), (n, c) => (f(), y("header", er, [
|
|
4374
4378
|
V(n.$slots, "logo"),
|
|
4375
|
-
|
|
4379
|
+
b("div", {
|
|
4376
4380
|
ref_key: "headerMenuElement",
|
|
4377
4381
|
ref: t,
|
|
4378
4382
|
class: "cl-cursor-pointer cl-flex cl-flex-nowrap",
|
|
@@ -4383,13 +4387,13 @@ const fn = {
|
|
|
4383
4387
|
], 512)
|
|
4384
4388
|
]));
|
|
4385
4389
|
}
|
|
4386
|
-
}),
|
|
4390
|
+
}), tr = { 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]" }, ar = ["src"], or = {
|
|
4387
4391
|
key: 0,
|
|
4388
4392
|
class: "cl-text-ellipsis cl-whitespace-nowrap"
|
|
4389
|
-
},
|
|
4393
|
+
}, nr = {
|
|
4390
4394
|
key: 1,
|
|
4391
4395
|
class: "cl-text-ellipsis cl-text-xs cl-whitespace-nowrap"
|
|
4392
|
-
},
|
|
4396
|
+
}, rr = { 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" }, sr = { class: "cl-absolute cl-bg-white cl-right-0 cl-shadow-2xl cl-top-20 cl-w-full cl-z-20" }, ir = /* @__PURE__ */ Q({
|
|
4393
4397
|
__name: "cl-ui-header-menu",
|
|
4394
4398
|
props: {
|
|
4395
4399
|
username: { default: "" },
|
|
@@ -4406,29 +4410,29 @@ const fn = {
|
|
|
4406
4410
|
"cl-bg-blue-light": e.colour === "secondary"
|
|
4407
4411
|
}])
|
|
4408
4412
|
}, [
|
|
4409
|
-
|
|
4413
|
+
b("div", tr, [
|
|
4410
4414
|
l.image ? (f(), y("img", {
|
|
4411
4415
|
key: 0,
|
|
4412
4416
|
src: l.image,
|
|
4413
4417
|
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"
|
|
4414
|
-
}, null, 8,
|
|
4418
|
+
}, null, 8, ar)) : (f(), G(v(x), {
|
|
4415
4419
|
key: 1,
|
|
4416
4420
|
class: "cl-hidden cl-m-4 cl-text-white md:cl-block",
|
|
4417
4421
|
icon: "ph:user-circle",
|
|
4418
4422
|
width: "48",
|
|
4419
4423
|
height: "48"
|
|
4420
4424
|
})),
|
|
4421
|
-
|
|
4425
|
+
b("div", {
|
|
4422
4426
|
class: M(["cl-grow cl-hidden cl-my-4 md:cl-block", {
|
|
4423
4427
|
"cl-text-secondary-default": e.colour === "default",
|
|
4424
4428
|
"cl-text-white": e.colour === "secondary"
|
|
4425
4429
|
}])
|
|
4426
4430
|
}, [
|
|
4427
|
-
l.username ? (f(), y("div",
|
|
4428
|
-
l.group ? (f(), y("div",
|
|
4431
|
+
l.username ? (f(), y("div", or, A(l.username), 1)) : j("", !0),
|
|
4432
|
+
l.group ? (f(), y("div", nr, A(l.group), 1)) : j("", !0)
|
|
4429
4433
|
], 2),
|
|
4430
|
-
|
|
4431
|
-
S(
|
|
4434
|
+
b("div", rr, [
|
|
4435
|
+
S(v(x), {
|
|
4432
4436
|
class: M(["cl-transform-gpu cl-transition-transform", {
|
|
4433
4437
|
"cl-rotate-180": l.isOpen,
|
|
4434
4438
|
"cl-text-secondary-default": e.colour === "default",
|
|
@@ -4440,7 +4444,7 @@ const fn = {
|
|
|
4440
4444
|
]),
|
|
4441
4445
|
S(Te, { name: "fade" }, {
|
|
4442
4446
|
default: Y(() => [
|
|
4443
|
-
le(
|
|
4447
|
+
le(b("div", sr, [
|
|
4444
4448
|
V(l.$slots, "default")
|
|
4445
4449
|
], 512), [
|
|
4446
4450
|
[te, l.isOpen]
|
|
@@ -4454,24 +4458,24 @@ const fn = {
|
|
|
4454
4458
|
function el(a) {
|
|
4455
4459
|
return /[a-z]{2}-[A-Z]{2}/gm.test(a.localeCode);
|
|
4456
4460
|
}
|
|
4457
|
-
function
|
|
4461
|
+
function cr(a) {
|
|
4458
4462
|
let e = Array.isArray(a);
|
|
4459
4463
|
if (e) {
|
|
4460
4464
|
for (const l of a)
|
|
4461
|
-
if (!
|
|
4465
|
+
if (!ur(l)) {
|
|
4462
4466
|
e = !1;
|
|
4463
4467
|
break;
|
|
4464
4468
|
}
|
|
4465
4469
|
}
|
|
4466
4470
|
return e;
|
|
4467
4471
|
}
|
|
4468
|
-
function
|
|
4472
|
+
function ur(a) {
|
|
4469
4473
|
return typeof a.name == "string" && typeof a.nativeName == "string" && typeof a.localeCode == "string";
|
|
4470
4474
|
}
|
|
4471
|
-
const
|
|
4475
|
+
const dr = {
|
|
4472
4476
|
key: 0,
|
|
4473
4477
|
class: "cl-flex cl-relative cl-select-none cl-w-auto cl-z-30"
|
|
4474
|
-
},
|
|
4478
|
+
}, fr = { 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" }, pr = ["data-localename", "data-localecode", "onClick"], mr = { class: "cl-text-xs" }, vr = /* @__PURE__ */ Q({
|
|
4475
4479
|
__name: "cl-ui-language-switcher",
|
|
4476
4480
|
props: {
|
|
4477
4481
|
supportedLanguages: {},
|
|
@@ -4480,39 +4484,39 @@ const fr = {
|
|
|
4480
4484
|
},
|
|
4481
4485
|
emits: ["language-select"],
|
|
4482
4486
|
setup(a, { emit: e }) {
|
|
4483
|
-
const l = a, { locale: t } = se(), n =
|
|
4487
|
+
const l = a, { locale: t } = se(), n = I(!1), c = D(() => l.supportedLanguages.find((s) => s.localeCode === t.value) ?? l.defaultLangauge), r = D(() => l.supportedLanguages.filter((s) => el(s)).sort((s, i) => s.nativeName > i.nativeName ? 1 : i.nativeName > s.nativeName ? -1 : 0));
|
|
4484
4488
|
function o() {
|
|
4485
4489
|
l.disabled || (n.value = !n.value);
|
|
4486
4490
|
}
|
|
4487
4491
|
return oe(() => l.disabled, (s) => {
|
|
4488
4492
|
s && (n.value = !1);
|
|
4489
|
-
}), (s, i) => c.value !== null &&
|
|
4490
|
-
|
|
4493
|
+
}), (s, i) => c.value !== null && v(el)(c.value) ? (f(), y("div", dr, [
|
|
4494
|
+
b("div", {
|
|
4491
4495
|
class: M(["cl-flex cl-items-center", {
|
|
4492
4496
|
"cl-cursor-pointer": !s.disabled
|
|
4493
4497
|
}]),
|
|
4494
4498
|
onClick: o
|
|
4495
4499
|
}, [
|
|
4496
|
-
|
|
4500
|
+
b("span", {
|
|
4497
4501
|
class: M(["cl-font-semibold cl-text-xs", {
|
|
4498
4502
|
"cl-opacity-50": s.disabled
|
|
4499
4503
|
}])
|
|
4500
|
-
},
|
|
4504
|
+
}, A(c.value.nativeName), 3)
|
|
4501
4505
|
], 2),
|
|
4502
4506
|
S(Te, { name: "fade" }, {
|
|
4503
4507
|
default: Y(() => [
|
|
4504
|
-
le(
|
|
4505
|
-
(f(!0), y(X, null, re(r.value, (
|
|
4506
|
-
key:
|
|
4508
|
+
le(b("div", fr, [
|
|
4509
|
+
(f(!0), y(X, null, re(r.value, (m, k) => (f(), y("div", {
|
|
4510
|
+
key: k,
|
|
4507
4511
|
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",
|
|
4508
|
-
"data-localename":
|
|
4509
|
-
"data-localecode":
|
|
4512
|
+
"data-localename": m.name,
|
|
4513
|
+
"data-localecode": m.localeCode,
|
|
4510
4514
|
onClick: (d) => {
|
|
4511
|
-
t.value =
|
|
4515
|
+
t.value = m.localeCode, o(), e("language-select", m.localeCode);
|
|
4512
4516
|
}
|
|
4513
4517
|
}, [
|
|
4514
|
-
|
|
4515
|
-
], 8,
|
|
4518
|
+
b("span", mr, A(m.nativeName), 1)
|
|
4519
|
+
], 8, pr))), 128))
|
|
4516
4520
|
], 512), [
|
|
4517
4521
|
[te, n.value]
|
|
4518
4522
|
])
|
|
@@ -4521,10 +4525,10 @@ const fr = {
|
|
|
4521
4525
|
})
|
|
4522
4526
|
])) : j("", !0);
|
|
4523
4527
|
}
|
|
4524
|
-
}),
|
|
4528
|
+
}), gr = { class: "cl-relative" }, br = { class: "cl-h-full cl-z-0 xl:cl-h-screen" }, hr = { 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" }, yr = { class: "cl-col-span-10 lg:cl-col-span-3" }, wr = {
|
|
4525
4529
|
key: 0,
|
|
4526
4530
|
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"
|
|
4527
|
-
},
|
|
4531
|
+
}, kr = { class: "cl-col-span-3" }, Tr = { class: "cl-inline cl-relative cl-text-grey-4" }, $r = { class: "cl-col-span-3" }, Cr = { class: "cl-inline cl-relative cl-text-grey-4" }, Or = { class: "cl-col-span-10 cl-emphasis-danger cl-mt-10 cl-p-3 cl-rounded-md cl-text-sm md:cl-mt-3" }, Sr = /* @__PURE__ */ Q({
|
|
4528
4532
|
__name: "cl-ui-login",
|
|
4529
4533
|
props: {
|
|
4530
4534
|
errors: { default: () => [] },
|
|
@@ -4535,47 +4539,47 @@ const fr = {
|
|
|
4535
4539
|
"update:errors": null
|
|
4536
4540
|
},
|
|
4537
4541
|
setup(a, { emit: e }) {
|
|
4538
|
-
const { t: l } = se(), t =
|
|
4542
|
+
const { t: l } = se(), t = I(""), n = I(""), c = I("password"), r = I();
|
|
4539
4543
|
function o() {
|
|
4540
|
-
const
|
|
4544
|
+
const k = {
|
|
4541
4545
|
username: t.value,
|
|
4542
4546
|
password: n.value
|
|
4543
4547
|
};
|
|
4544
|
-
e("login",
|
|
4548
|
+
e("login", k);
|
|
4545
4549
|
}
|
|
4546
4550
|
function s() {
|
|
4547
4551
|
e("update:errors", []);
|
|
4548
4552
|
}
|
|
4549
|
-
function i(
|
|
4550
|
-
const
|
|
4553
|
+
function i(k, d) {
|
|
4554
|
+
const h = {
|
|
4551
4555
|
valid: !0,
|
|
4552
4556
|
message: ""
|
|
4553
4557
|
};
|
|
4554
|
-
return typeof d == "string" && d.trim() === "" && (
|
|
4558
|
+
return typeof d == "string" && d.trim() === "" && (h.valid = !1), h;
|
|
4555
4559
|
}
|
|
4556
|
-
function
|
|
4557
|
-
r.value =
|
|
4560
|
+
function m(k, d) {
|
|
4561
|
+
r.value = k;
|
|
4558
4562
|
}
|
|
4559
|
-
return (
|
|
4560
|
-
|
|
4561
|
-
V(
|
|
4563
|
+
return (k, d) => (f(), y("div", gr, [
|
|
4564
|
+
b("div", br, [
|
|
4565
|
+
V(k.$slots, "background")
|
|
4562
4566
|
]),
|
|
4563
|
-
|
|
4564
|
-
|
|
4565
|
-
V(
|
|
4567
|
+
b("form", hr, [
|
|
4568
|
+
b("div", yr, [
|
|
4569
|
+
V(k.$slots, "logo")
|
|
4566
4570
|
]),
|
|
4567
|
-
|
|
4568
|
-
V(
|
|
4571
|
+
k.$slots["language-switcher"] ? (f(), y("div", wr, [
|
|
4572
|
+
V(k.$slots, "language-switcher")
|
|
4569
4573
|
])) : j("", !0),
|
|
4570
|
-
|
|
4574
|
+
b("div", {
|
|
4571
4575
|
class: M(["cl-gap-y-4 cl-grid cl-grid-cols-1 lg:cl-gap-x-2 lg:cl-grid-cols-8", {
|
|
4572
|
-
"cl-col-span-7": !
|
|
4573
|
-
"cl-col-span-6":
|
|
4576
|
+
"cl-col-span-7": !k.$slots["language-switcher"],
|
|
4577
|
+
"cl-col-span-6": k.$slots["language-switcher"]
|
|
4574
4578
|
}])
|
|
4575
4579
|
}, [
|
|
4576
|
-
|
|
4577
|
-
|
|
4578
|
-
S(
|
|
4580
|
+
b("div", kr, [
|
|
4581
|
+
b("div", Tr, [
|
|
4582
|
+
S(v(x), {
|
|
4579
4583
|
class: "cl-absolute cl-left-3 cl-top-2.5 cl-z-10",
|
|
4580
4584
|
icon: "ph:user",
|
|
4581
4585
|
size: 18
|
|
@@ -4583,58 +4587,58 @@ const fr = {
|
|
|
4583
4587
|
S(me, {
|
|
4584
4588
|
id: "cl-ui-login-usernameinput",
|
|
4585
4589
|
modelValue: t.value,
|
|
4586
|
-
"onUpdate:modelValue": d[0] || (d[0] = (
|
|
4590
|
+
"onUpdate:modelValue": d[0] || (d[0] = (h) => t.value = h),
|
|
4587
4591
|
modelModifiers: { trim: !0 },
|
|
4588
4592
|
class: "!cl-border-2 !cl-mb-1 cl-w-full",
|
|
4589
4593
|
"input-type": "email",
|
|
4590
4594
|
"highlight-when-valid": t.value !== void 0 && t.value !== "",
|
|
4591
|
-
label:
|
|
4595
|
+
label: v(l)("login.email"),
|
|
4592
4596
|
"show-label": !1,
|
|
4593
|
-
"placeholder-text":
|
|
4597
|
+
"placeholder-text": v(l)("login.email"),
|
|
4594
4598
|
autocomplete: "username",
|
|
4595
4599
|
"validate-immediately": !1,
|
|
4596
4600
|
"custom-validation-function": i,
|
|
4597
4601
|
"input-specific-classes": "!cl-pl-9",
|
|
4598
|
-
"message-when-valid": t.value ?
|
|
4602
|
+
"message-when-valid": t.value ? v(l)("login.validEmail") : "",
|
|
4599
4603
|
"validate-on": "change",
|
|
4600
4604
|
onInput: s,
|
|
4601
|
-
onValidated:
|
|
4605
|
+
onValidated: m
|
|
4602
4606
|
}, null, 8, ["modelValue", "highlight-when-valid", "label", "placeholder-text", "message-when-valid"])
|
|
4603
4607
|
])
|
|
4604
4608
|
]),
|
|
4605
|
-
|
|
4606
|
-
|
|
4607
|
-
S(
|
|
4609
|
+
b("div", $r, [
|
|
4610
|
+
b("div", Cr, [
|
|
4611
|
+
S(v(x), {
|
|
4608
4612
|
class: "cl-absolute cl-left-3 cl-top-2.5 cl-z-10",
|
|
4609
4613
|
icon: "ph:lock",
|
|
4610
4614
|
size: 18
|
|
4611
4615
|
}),
|
|
4612
|
-
le(S(
|
|
4616
|
+
le(S(v(x), {
|
|
4613
4617
|
class: "cl-absolute cl-cursor-pointer cl-right-4 cl-top-2.5 cl-z-10",
|
|
4614
4618
|
icon: "ph:eye",
|
|
4615
4619
|
size: 18,
|
|
4616
|
-
onClick: d[1] || (d[1] = (
|
|
4620
|
+
onClick: d[1] || (d[1] = (h) => c.value = "text")
|
|
4617
4621
|
}, null, 512), [
|
|
4618
4622
|
[te, c.value === "password"]
|
|
4619
4623
|
]),
|
|
4620
|
-
le(S(
|
|
4624
|
+
le(S(v(x), {
|
|
4621
4625
|
class: "cl-absolute cl-cursor-pointer cl-right-4 cl-top-2.5 cl-z-10",
|
|
4622
4626
|
icon: "ph:eye-slash",
|
|
4623
4627
|
size: 18,
|
|
4624
|
-
onClick: d[2] || (d[2] = (
|
|
4628
|
+
onClick: d[2] || (d[2] = (h) => c.value = "password")
|
|
4625
4629
|
}, null, 512), [
|
|
4626
4630
|
[te, c.value === "text"]
|
|
4627
4631
|
]),
|
|
4628
4632
|
S(me, {
|
|
4629
4633
|
id: "cl-ui-login-passwordinput",
|
|
4630
4634
|
modelValue: n.value,
|
|
4631
|
-
"onUpdate:modelValue": d[3] || (d[3] = (
|
|
4635
|
+
"onUpdate:modelValue": d[3] || (d[3] = (h) => n.value = h),
|
|
4632
4636
|
class: "!cl-border-2 cl-w-full",
|
|
4633
4637
|
"input-type": c.value,
|
|
4634
4638
|
"highlight-when-valid": n.value !== void 0 && n.value !== "",
|
|
4635
|
-
label:
|
|
4639
|
+
label: v(l)("login.password"),
|
|
4636
4640
|
"show-label": !1,
|
|
4637
|
-
"placeholder-text":
|
|
4641
|
+
"placeholder-text": v(l)("login.password"),
|
|
4638
4642
|
autocomplete: "current-password",
|
|
4639
4643
|
"validate-immediately": !0,
|
|
4640
4644
|
"input-specific-classes": "!cl-pl-9 !cl-pr-9",
|
|
@@ -4643,21 +4647,21 @@ const fr = {
|
|
|
4643
4647
|
}, null, 8, ["modelValue", "input-type", "highlight-when-valid", "label", "placeholder-text"])
|
|
4644
4648
|
])
|
|
4645
4649
|
]),
|
|
4646
|
-
|
|
4650
|
+
b("div", {
|
|
4647
4651
|
class: M(["cl-col-span-2", {
|
|
4648
|
-
"cl-mt-1.5 cl-mb-1 md:cl-mt-0.5 md:cl-mb-7 lg:cl-mb-0":
|
|
4652
|
+
"cl-mt-1.5 cl-mb-1 md:cl-mt-0.5 md:cl-mb-7 lg:cl-mb-0": k.loading
|
|
4649
4653
|
}])
|
|
4650
4654
|
}, [
|
|
4651
4655
|
S(ke, {
|
|
4652
4656
|
id: "cl-ui-login-loginbutton",
|
|
4653
4657
|
class: "cl-w-full",
|
|
4654
4658
|
colour: "blue",
|
|
4655
|
-
loading:
|
|
4659
|
+
loading: k.loading,
|
|
4656
4660
|
disabled: !r.value || n.value === "",
|
|
4657
4661
|
onClick: ne(o, ["prevent"])
|
|
4658
4662
|
}, {
|
|
4659
4663
|
default: Y(() => [
|
|
4660
|
-
de(
|
|
4664
|
+
de(A(v(l)("login.login")), 1)
|
|
4661
4665
|
]),
|
|
4662
4666
|
_: 1
|
|
4663
4667
|
}, 8, ["loading", "disabled", "onClick"])
|
|
@@ -4665,16 +4669,16 @@ const fr = {
|
|
|
4665
4669
|
], 2),
|
|
4666
4670
|
S(Te, { name: "cl-grow-down" }, {
|
|
4667
4671
|
default: Y(() => {
|
|
4668
|
-
var
|
|
4672
|
+
var h;
|
|
4669
4673
|
return [
|
|
4670
|
-
le(
|
|
4671
|
-
(f(!0), y(X, null, re(
|
|
4674
|
+
le(b("span", Or, [
|
|
4675
|
+
(f(!0), y(X, null, re(k.errors, (q, P) => (f(), y("div", {
|
|
4672
4676
|
id: "cl-ui-login-errors",
|
|
4673
|
-
key:
|
|
4677
|
+
key: P,
|
|
4674
4678
|
class: "cl-font-semibold"
|
|
4675
|
-
}, q
|
|
4679
|
+
}, A(q), 1))), 128))
|
|
4676
4680
|
], 512), [
|
|
4677
|
-
[te, (
|
|
4681
|
+
[te, (h = k.errors) == null ? void 0 : h.length]
|
|
4678
4682
|
])
|
|
4679
4683
|
];
|
|
4680
4684
|
}),
|
|
@@ -4683,36 +4687,36 @@ const fr = {
|
|
|
4683
4687
|
])
|
|
4684
4688
|
]));
|
|
4685
4689
|
}
|
|
4686
|
-
}),
|
|
4690
|
+
}), Nr = [
|
|
4687
4691
|
"x-small",
|
|
4688
4692
|
"small",
|
|
4689
4693
|
"medium",
|
|
4690
4694
|
"large"
|
|
4691
|
-
],
|
|
4695
|
+
], Er = [
|
|
4692
4696
|
"primary",
|
|
4693
4697
|
"secondary",
|
|
4694
4698
|
"white"
|
|
4695
|
-
],
|
|
4699
|
+
], qr = {
|
|
4696
4700
|
key: 0,
|
|
4697
4701
|
class: "cl-h-0 cl-w-0"
|
|
4698
|
-
},
|
|
4702
|
+
}, Ar = { class: "cl-relative cl-w-full" }, Dr = /* @__PURE__ */ Q({
|
|
4699
4703
|
__name: "cl-ui-navigation",
|
|
4700
4704
|
props: {
|
|
4701
4705
|
colour: { default: "default" }
|
|
4702
4706
|
},
|
|
4703
4707
|
setup(a, { expose: e }) {
|
|
4704
|
-
const l =
|
|
4705
|
-
function n(
|
|
4706
|
-
let
|
|
4707
|
-
return
|
|
4708
|
-
id:
|
|
4708
|
+
const l = I([]), t = D(() => l.value.filter((h) => h.open === !0).length > 0);
|
|
4709
|
+
function n(h) {
|
|
4710
|
+
let q = l.value.find((P) => P.id === h);
|
|
4711
|
+
return q || (q = {
|
|
4712
|
+
id: h,
|
|
4709
4713
|
open: !1
|
|
4710
|
-
}, l.value.push(
|
|
4714
|
+
}, l.value.push(q)), q.open;
|
|
4711
4715
|
}
|
|
4712
|
-
function c(
|
|
4713
|
-
const
|
|
4714
|
-
|
|
4715
|
-
|
|
4716
|
+
function c(h) {
|
|
4717
|
+
const q = l.value.find((P) => P.id === h);
|
|
4718
|
+
q && (q.open = !q.open, l.value.forEach((P) => {
|
|
4719
|
+
P.id !== h && (P.open = !1);
|
|
4716
4720
|
}));
|
|
4717
4721
|
}
|
|
4718
4722
|
const r = Ql();
|
|
@@ -4725,55 +4729,55 @@ const fr = {
|
|
|
4725
4729
|
deep: !0
|
|
4726
4730
|
}
|
|
4727
4731
|
);
|
|
4728
|
-
const o =
|
|
4729
|
-
function
|
|
4732
|
+
const o = I(!1), s = I(!1), { start: i } = $l(() => s.value = !1, 100);
|
|
4733
|
+
function m() {
|
|
4730
4734
|
o.value = !o.value, s.value = !0, i();
|
|
4731
4735
|
}
|
|
4732
|
-
const
|
|
4736
|
+
const k = I();
|
|
4733
4737
|
function d() {
|
|
4734
|
-
o.value === !1 && t.value === !0 && l.value.forEach((
|
|
4735
|
-
|
|
4738
|
+
o.value === !1 && t.value === !0 && l.value.forEach((h) => {
|
|
4739
|
+
h.open = !1;
|
|
4736
4740
|
});
|
|
4737
4741
|
}
|
|
4738
|
-
return
|
|
4742
|
+
return rl(k, d), e({
|
|
4739
4743
|
closeNavigation: d
|
|
4740
|
-
}), (
|
|
4744
|
+
}), (h, q) => (f(), y("div", {
|
|
4741
4745
|
ref_key: "navElement",
|
|
4742
|
-
ref:
|
|
4746
|
+
ref: k,
|
|
4743
4747
|
class: "cl-flex cl-flex-nowrap cl-relative"
|
|
4744
4748
|
}, [
|
|
4745
|
-
|
|
4749
|
+
b("div", {
|
|
4746
4750
|
id: "group-container",
|
|
4747
4751
|
class: M(["cl-h-full cl-overflow-y-auto cl-overscroll-y-none cl-pb-20 cl-w-20 cl-z-40 xl:cl-pb-0", {
|
|
4748
|
-
"cl-bg-primary-default":
|
|
4749
|
-
"cl-bg-blue-dark":
|
|
4752
|
+
"cl-bg-primary-default": h.colour === "default",
|
|
4753
|
+
"cl-bg-blue-dark": h.colour === "secondary"
|
|
4750
4754
|
}])
|
|
4751
4755
|
}, [
|
|
4752
|
-
V(
|
|
4756
|
+
V(h.$slots, "icon", ve({ navcolour: h.colour }, { groupIsOpen: n, toggleOpen: c }), void 0, !0)
|
|
4753
4757
|
], 2),
|
|
4754
|
-
s.value ? (f(), y("div",
|
|
4758
|
+
s.value ? (f(), y("div", qr)) : j("", !0),
|
|
4755
4759
|
S(Te, { name: "slide-right" }, {
|
|
4756
4760
|
default: Y(() => [
|
|
4757
|
-
le(
|
|
4761
|
+
le(b("div", {
|
|
4758
4762
|
class: M(["cl-bg-grey-0 cl-border-grey-2 cl-border-r cl-duration-75 cl-h-full cl-min-w-[260px] cl-overflow-y-auto cl-overscroll-y-none cl-p-8 cl-pb-24 cl-top-0 cl-transition-shadow cl-w-[260px] cl-z-30 xl:cl-pb-0", {
|
|
4759
4763
|
"cl-relative": o.value,
|
|
4760
4764
|
"cl-absolute cl-left-20 cl-shadow-lg": !o.value
|
|
4761
4765
|
}])
|
|
4762
4766
|
}, [
|
|
4763
|
-
|
|
4764
|
-
|
|
4767
|
+
b("div", Ar, [
|
|
4768
|
+
b("span", {
|
|
4765
4769
|
class: "cl-absolute cl-cursor-pointer cl-hidden cl-right-0 cl-top-1.5 lg:cl-block",
|
|
4766
|
-
onClick:
|
|
4770
|
+
onClick: m
|
|
4767
4771
|
}, [
|
|
4768
|
-
o.value ? (f(), G(
|
|
4772
|
+
o.value ? (f(), G(v(x), {
|
|
4769
4773
|
key: 1,
|
|
4770
4774
|
icon: "ph:push-pin-slash"
|
|
4771
|
-
})) : (f(), G(
|
|
4775
|
+
})) : (f(), G(v(x), {
|
|
4772
4776
|
key: 0,
|
|
4773
4777
|
icon: "ph:push-pin"
|
|
4774
4778
|
}))
|
|
4775
4779
|
]),
|
|
4776
|
-
V(
|
|
4780
|
+
V(h.$slots, "default", ce(fe({ groupIsOpen: n })), void 0, !0)
|
|
4777
4781
|
])
|
|
4778
4782
|
], 2), [
|
|
4779
4783
|
[te, t.value]
|
|
@@ -4784,7 +4788,7 @@ const fr = {
|
|
|
4784
4788
|
], 512));
|
|
4785
4789
|
}
|
|
4786
4790
|
});
|
|
4787
|
-
const
|
|
4791
|
+
const Rr = /* @__PURE__ */ we(Dr, [["__scopeId", "data-v-0958dcf5"]]), Ir = /* @__PURE__ */ Q({
|
|
4788
4792
|
__name: "cl-ui-navigation-icon",
|
|
4789
4793
|
props: {
|
|
4790
4794
|
iconValue: {},
|
|
@@ -4800,17 +4804,17 @@ const Ir = /* @__PURE__ */ we(Rr, [["__scopeId", "data-v-0958dcf5"]]), jr = /* @
|
|
|
4800
4804
|
"cl-bg-blue-light": e.open && e.colour === "secondary"
|
|
4801
4805
|
}])
|
|
4802
4806
|
}, [
|
|
4803
|
-
S(
|
|
4807
|
+
S(v(x), {
|
|
4804
4808
|
class: "cl-block",
|
|
4805
4809
|
icon: e.iconValue,
|
|
4806
4810
|
width: "24"
|
|
4807
4811
|
}, null, 8, ["icon"])
|
|
4808
4812
|
], 2));
|
|
4809
4813
|
}
|
|
4810
|
-
}),
|
|
4814
|
+
}), jr = {
|
|
4811
4815
|
key: 0,
|
|
4812
4816
|
class: "cl-font-bold cl-leading-8 cl-mb-8 cl-pr-8 cl-select-none cl-text-lg cl-text-secondary-default"
|
|
4813
|
-
},
|
|
4817
|
+
}, Fr = { class: "cl-flex cl-flex-wrap cl-space-y-8 cl-text-sm cl-w-full" }, Mr = /* @__PURE__ */ Q({
|
|
4814
4818
|
__name: "cl-ui-navigation-group",
|
|
4815
4819
|
props: {
|
|
4816
4820
|
open: { type: Boolean }
|
|
@@ -4821,35 +4825,35 @@ const Ir = /* @__PURE__ */ we(Rr, [["__scopeId", "data-v-0958dcf5"]]), jr = /* @
|
|
|
4821
4825
|
"cl-hidden": !e.open
|
|
4822
4826
|
})
|
|
4823
4827
|
}, [
|
|
4824
|
-
e.$slots.title ? (f(), y("div",
|
|
4828
|
+
e.$slots.title ? (f(), y("div", jr, [
|
|
4825
4829
|
V(e.$slots, "title")
|
|
4826
4830
|
])) : j("", !0),
|
|
4827
|
-
|
|
4831
|
+
b("div", Fr, [
|
|
4828
4832
|
V(e.$slots, "default")
|
|
4829
4833
|
])
|
|
4830
4834
|
], 2));
|
|
4831
4835
|
}
|
|
4832
|
-
}),
|
|
4836
|
+
}), Vr = {}, Ur = { class: "cl-w-full" }, Pr = {
|
|
4833
4837
|
key: 0,
|
|
4834
4838
|
class: "cl-font-bold cl-mb-4 cl-select-none"
|
|
4835
|
-
},
|
|
4836
|
-
function
|
|
4839
|
+
}, Lr = { class: "cl-flex cl-flex-wrap cl-space-y-2" };
|
|
4840
|
+
function Br(a, e) {
|
|
4837
4841
|
return f(), y("div", Ur, [
|
|
4838
|
-
a.$slots.title ? (f(), y("div",
|
|
4842
|
+
a.$slots.title ? (f(), y("div", Pr, [
|
|
4839
4843
|
V(a.$slots, "title")
|
|
4840
4844
|
])) : j("", !0),
|
|
4841
|
-
|
|
4845
|
+
b("span", Lr, [
|
|
4842
4846
|
V(a.$slots, "default")
|
|
4843
4847
|
])
|
|
4844
4848
|
]);
|
|
4845
4849
|
}
|
|
4846
|
-
const zr = /* @__PURE__ */ we(
|
|
4847
|
-
function
|
|
4848
|
-
return f(), y("div",
|
|
4850
|
+
const zr = /* @__PURE__ */ we(Vr, [["render", Br]]), _r = {}, xr = { class: "cl-cursor-pointer cl-transition-colors cl-w-full hover:cl-text-primary-darker" };
|
|
4851
|
+
function Hr(a, e) {
|
|
4852
|
+
return f(), y("div", xr, [
|
|
4849
4853
|
V(a.$slots, "default")
|
|
4850
4854
|
]);
|
|
4851
4855
|
}
|
|
4852
|
-
const
|
|
4856
|
+
const Gr = /* @__PURE__ */ we(_r, [["render", Hr]]), Zr = { class: "cl-w-full" }, Kr = /* @__PURE__ */ Q({
|
|
4853
4857
|
__name: "cl-ui-tab",
|
|
4854
4858
|
props: {
|
|
4855
4859
|
currentTab: { default: 0 },
|
|
@@ -4857,7 +4861,7 @@ const Zr = /* @__PURE__ */ we(xr, [["render", Gr]]), Kr = { class: "cl-w-full" }
|
|
|
4857
4861
|
colour: { default: "default" }
|
|
4858
4862
|
},
|
|
4859
4863
|
setup(a) {
|
|
4860
|
-
const e = a, l =
|
|
4864
|
+
const e = a, l = I(), t = I(!1), n = I(!1);
|
|
4861
4865
|
function c(i) {
|
|
4862
4866
|
return i === e.currentTab;
|
|
4863
4867
|
}
|
|
@@ -4873,24 +4877,24 @@ const Zr = /* @__PURE__ */ we(xr, [["render", Gr]]), Kr = { class: "cl-w-full" }
|
|
|
4873
4877
|
}
|
|
4874
4878
|
function s(i) {
|
|
4875
4879
|
if (l.value) {
|
|
4876
|
-
const
|
|
4877
|
-
let
|
|
4878
|
-
i === "left" && (
|
|
4880
|
+
const m = l.value.scrollWidth / 5;
|
|
4881
|
+
let k = m;
|
|
4882
|
+
i === "left" && (k = -m), l.value.scroll(l.value.scrollLeft + k, 0);
|
|
4879
4883
|
}
|
|
4880
4884
|
}
|
|
4881
|
-
return Ze(() => o()), al(() => window.removeEventListener("resize", r)), (i,
|
|
4882
|
-
|
|
4885
|
+
return Ze(() => o()), al(() => window.removeEventListener("resize", r)), (i, m) => (f(), y("div", Zr, [
|
|
4886
|
+
b("div", null, [
|
|
4883
4887
|
t.value ? (f(), y("div", {
|
|
4884
4888
|
key: 0,
|
|
4885
4889
|
class: "cl-bg-white cl-cursor-pointer cl-float-left cl-h-11 cl-w-4",
|
|
4886
|
-
onClick:
|
|
4890
|
+
onClick: m[0] || (m[0] = (k) => s("left"))
|
|
4887
4891
|
}, [
|
|
4888
|
-
S(
|
|
4892
|
+
S(v(x), {
|
|
4889
4893
|
icon: "ph:caret-left",
|
|
4890
4894
|
class: "cl-mt-4 cl-text-secondary-default"
|
|
4891
4895
|
})
|
|
4892
4896
|
])) : j("", !0),
|
|
4893
|
-
|
|
4897
|
+
b("div", {
|
|
4894
4898
|
ref_key: "headerContainer",
|
|
4895
4899
|
ref: l,
|
|
4896
4900
|
class: M(["cl-flex cl-overflow-x-auto cl-overscroll-x-none", {
|
|
@@ -4909,9 +4913,9 @@ const Zr = /* @__PURE__ */ we(xr, [["render", Gr]]), Kr = { class: "cl-w-full" }
|
|
|
4909
4913
|
n.value ? (f(), y("div", {
|
|
4910
4914
|
key: 1,
|
|
4911
4915
|
class: "cl-bg-white cl-bottom-12 cl-cursor-pointer cl-float-right cl-h-11 cl-relative cl-w-4",
|
|
4912
|
-
onClick:
|
|
4916
|
+
onClick: m[1] || (m[1] = (k) => s("right"))
|
|
4913
4917
|
}, [
|
|
4914
|
-
S(
|
|
4918
|
+
S(v(x), {
|
|
4915
4919
|
icon: "ph:caret-right",
|
|
4916
4920
|
class: "cl-mt-4 cl-text-secondary-default"
|
|
4917
4921
|
})
|
|
@@ -4920,7 +4924,7 @@ const Zr = /* @__PURE__ */ we(xr, [["render", Gr]]), Kr = { class: "cl-w-full" }
|
|
|
4920
4924
|
V(i.$slots, "content", ce(fe({ isTabOpen: c, disabled: i.disabled, colour: i.colour })))
|
|
4921
4925
|
]));
|
|
4922
4926
|
}
|
|
4923
|
-
}),
|
|
4927
|
+
}), Qr = ["onKeyup"], Wr = /* @__PURE__ */ Q({
|
|
4924
4928
|
__name: "cl-ui-tab-header",
|
|
4925
4929
|
props: {
|
|
4926
4930
|
id: {},
|
|
@@ -4932,7 +4936,7 @@ const Zr = /* @__PURE__ */ we(xr, [["render", Gr]]), Kr = { class: "cl-w-full" }
|
|
|
4932
4936
|
"update:currentTab": null
|
|
4933
4937
|
},
|
|
4934
4938
|
setup(a, { emit: e }) {
|
|
4935
|
-
const l = a, t =
|
|
4939
|
+
const l = a, t = I(), n = I(), c = D(() => l.id === l.currentTab);
|
|
4936
4940
|
function r() {
|
|
4937
4941
|
l.disabled || (t.value = !1, n.value = !1, e("update:currentTab", l.id));
|
|
4938
4942
|
}
|
|
@@ -4965,22 +4969,22 @@ const Zr = /* @__PURE__ */ we(xr, [["render", Gr]]), Kr = { class: "cl-w-full" }
|
|
|
4965
4969
|
onKeyup: Ee(ne(r, ["self"]), ["enter"])
|
|
4966
4970
|
}, [
|
|
4967
4971
|
V(o.$slots, "default")
|
|
4968
|
-
], 42,
|
|
4972
|
+
], 42, Qr));
|
|
4969
4973
|
}
|
|
4970
|
-
}),
|
|
4971
|
-
function
|
|
4974
|
+
}), Yr = {};
|
|
4975
|
+
function Jr(a, e) {
|
|
4972
4976
|
return V(a.$slots, "default");
|
|
4973
4977
|
}
|
|
4974
|
-
const
|
|
4978
|
+
const Xr = /* @__PURE__ */ we(Yr, [["render", Jr]]), es = [
|
|
4975
4979
|
"default",
|
|
4976
4980
|
"primary",
|
|
4977
4981
|
"secondary",
|
|
4978
4982
|
"danger",
|
|
4979
4983
|
"blue"
|
|
4980
|
-
],
|
|
4984
|
+
], ls = [
|
|
4981
4985
|
"left",
|
|
4982
4986
|
"right"
|
|
4983
|
-
],
|
|
4987
|
+
], ts = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4984
4988
|
__proto__: null,
|
|
4985
4989
|
FilterOperation: ee,
|
|
4986
4990
|
allQuickDates: Sl,
|
|
@@ -4993,48 +4997,48 @@ const es = /* @__PURE__ */ we(Jr, [["render", Xr]]), ls = [
|
|
|
4993
4997
|
clUiApp: ut,
|
|
4994
4998
|
clUiButton: ke,
|
|
4995
4999
|
clUiCard: ht,
|
|
4996
|
-
clUiComboBox:
|
|
4997
|
-
clUiFooter:
|
|
4998
|
-
clUiGrid:
|
|
4999
|
-
clUiHeader:
|
|
5000
|
-
clUiHeaderMenu:
|
|
5000
|
+
clUiComboBox: no,
|
|
5001
|
+
clUiFooter: go,
|
|
5002
|
+
clUiGrid: Xn,
|
|
5003
|
+
clUiHeader: lr,
|
|
5004
|
+
clUiHeaderMenu: ir,
|
|
5001
5005
|
clUiInput: me,
|
|
5002
|
-
clUiLanguageSwitcher:
|
|
5006
|
+
clUiLanguageSwitcher: vr,
|
|
5003
5007
|
clUiLoadingSpinner: Ke,
|
|
5004
|
-
clUiLogin:
|
|
5008
|
+
clUiLogin: Sr,
|
|
5005
5009
|
clUiModal: Fl,
|
|
5006
|
-
clUiNavigation:
|
|
5007
|
-
clUiNavigationGroup:
|
|
5008
|
-
clUiNavigationIcon:
|
|
5009
|
-
clUiNavigationItem:
|
|
5010
|
+
clUiNavigation: Rr,
|
|
5011
|
+
clUiNavigationGroup: Mr,
|
|
5012
|
+
clUiNavigationIcon: Ir,
|
|
5013
|
+
clUiNavigationItem: Gr,
|
|
5010
5014
|
clUiNavigationSection: zr,
|
|
5011
5015
|
clUiNotification: Ol,
|
|
5012
|
-
clUiTab:
|
|
5013
|
-
clUiTabContent:
|
|
5014
|
-
clUiTabHeader:
|
|
5016
|
+
clUiTab: Kr,
|
|
5017
|
+
clUiTabContent: Xr,
|
|
5018
|
+
clUiTabHeader: Wr,
|
|
5015
5019
|
currentQuickDates: Ie,
|
|
5016
|
-
filterMethodTypes:
|
|
5020
|
+
filterMethodTypes: nn,
|
|
5017
5021
|
futureQuickDates: Be,
|
|
5018
|
-
gridColumnTypes:
|
|
5022
|
+
gridColumnTypes: tn,
|
|
5019
5023
|
inputTypes: Bt,
|
|
5020
|
-
isComboBoxCreateRequest:
|
|
5021
|
-
isComboBoxItem:
|
|
5022
|
-
isFilterRequest:
|
|
5023
|
-
isFilterResponse:
|
|
5024
|
+
isComboBoxCreateRequest: so,
|
|
5025
|
+
isComboBoxItem: ro,
|
|
5026
|
+
isFilterRequest: cn,
|
|
5027
|
+
isFilterResponse: un,
|
|
5024
5028
|
isGridColumn: Ml,
|
|
5025
|
-
isGridColumnArray:
|
|
5026
|
-
isLanguageArray:
|
|
5029
|
+
isGridColumnArray: an,
|
|
5030
|
+
isLanguageArray: cr,
|
|
5027
5031
|
isLanguageLocaleFormat: el,
|
|
5028
|
-
modalColours:
|
|
5029
|
-
modalSizes:
|
|
5032
|
+
modalColours: Er,
|
|
5033
|
+
modalSizes: Nr,
|
|
5030
5034
|
pastQuickDates: Le,
|
|
5031
5035
|
quickDateNames: Ft,
|
|
5032
|
-
stringFormats:
|
|
5033
|
-
tabColours:
|
|
5034
|
-
tabScroll:
|
|
5036
|
+
stringFormats: on,
|
|
5037
|
+
tabColours: es,
|
|
5038
|
+
tabScroll: ls
|
|
5035
5039
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5036
|
-
const
|
|
5037
|
-
a.use(ye), a.component("Icon", x), Object.entries(
|
|
5040
|
+
const gs = (a) => {
|
|
5041
|
+
a.use(ye), a.component("Icon", x), Object.entries(ts).forEach(([
|
|
5038
5042
|
e,
|
|
5039
5043
|
l
|
|
5040
5044
|
]) => {
|
|
@@ -5042,7 +5046,7 @@ const bs = (a) => {
|
|
|
5042
5046
|
});
|
|
5043
5047
|
};
|
|
5044
5048
|
export {
|
|
5045
|
-
|
|
5049
|
+
vs as CitrusLimeUI,
|
|
5046
5050
|
ie as DateFormat,
|
|
5047
5051
|
ee as FilterOperation,
|
|
5048
5052
|
ue as NumberFormat,
|
|
@@ -5056,55 +5060,55 @@ export {
|
|
|
5056
5060
|
ut as clUiApp,
|
|
5057
5061
|
ke as clUiButton,
|
|
5058
5062
|
ht as clUiCard,
|
|
5059
|
-
|
|
5060
|
-
|
|
5061
|
-
|
|
5062
|
-
|
|
5063
|
-
|
|
5063
|
+
no as clUiComboBox,
|
|
5064
|
+
go as clUiFooter,
|
|
5065
|
+
Xn as clUiGrid,
|
|
5066
|
+
lr as clUiHeader,
|
|
5067
|
+
ir as clUiHeaderMenu,
|
|
5064
5068
|
me as clUiInput,
|
|
5065
|
-
|
|
5069
|
+
vr as clUiLanguageSwitcher,
|
|
5066
5070
|
Ke as clUiLoadingSpinner,
|
|
5067
|
-
|
|
5071
|
+
Sr as clUiLogin,
|
|
5068
5072
|
Fl as clUiModal,
|
|
5069
|
-
|
|
5070
|
-
|
|
5071
|
-
|
|
5072
|
-
|
|
5073
|
+
Rr as clUiNavigation,
|
|
5074
|
+
Mr as clUiNavigationGroup,
|
|
5075
|
+
Ir as clUiNavigationIcon,
|
|
5076
|
+
Gr as clUiNavigationItem,
|
|
5073
5077
|
zr as clUiNavigationSection,
|
|
5074
5078
|
Ol as clUiNotification,
|
|
5075
|
-
|
|
5076
|
-
|
|
5077
|
-
|
|
5079
|
+
Kr as clUiTab,
|
|
5080
|
+
Xr as clUiTabContent,
|
|
5081
|
+
Wr as clUiTabHeader,
|
|
5078
5082
|
Ie as currentQuickDates,
|
|
5079
5083
|
Tt as datetimeFormats,
|
|
5080
|
-
|
|
5081
|
-
|
|
5084
|
+
gs as default,
|
|
5085
|
+
nn as filterMethodTypes,
|
|
5082
5086
|
Be as futureQuickDates,
|
|
5083
|
-
|
|
5087
|
+
tn as gridColumnTypes,
|
|
5084
5088
|
ye as i18n,
|
|
5085
5089
|
Bt as inputTypes,
|
|
5086
|
-
|
|
5087
|
-
|
|
5088
|
-
|
|
5089
|
-
|
|
5090
|
+
so as isComboBoxCreateRequest,
|
|
5091
|
+
ro as isComboBoxItem,
|
|
5092
|
+
cn as isFilterRequest,
|
|
5093
|
+
un as isFilterResponse,
|
|
5090
5094
|
Ml as isGridColumn,
|
|
5091
|
-
|
|
5092
|
-
|
|
5095
|
+
an as isGridColumnArray,
|
|
5096
|
+
cr as isLanguageArray,
|
|
5093
5097
|
el as isLanguageLocaleFormat,
|
|
5094
5098
|
wt as messages,
|
|
5095
|
-
|
|
5096
|
-
|
|
5099
|
+
Er as modalColours,
|
|
5100
|
+
Nr as modalSizes,
|
|
5097
5101
|
kt as numberFormats,
|
|
5098
5102
|
Le as pastQuickDates,
|
|
5099
5103
|
Ft as quickDateNames,
|
|
5100
|
-
|
|
5101
|
-
|
|
5102
|
-
|
|
5103
|
-
|
|
5104
|
-
|
|
5105
|
-
|
|
5106
|
-
|
|
5107
|
-
|
|
5104
|
+
ms as setCurrentLocale,
|
|
5105
|
+
ps as setLocaleDateTimeFormats,
|
|
5106
|
+
ds as setLocaleMessages,
|
|
5107
|
+
fs as setLocaleNumberFormats,
|
|
5108
|
+
il as showNotification,
|
|
5109
|
+
on as stringFormats,
|
|
5110
|
+
es as tabColours,
|
|
5111
|
+
ls as tabScroll,
|
|
5108
5112
|
St as validateEmail,
|
|
5109
5113
|
Ct as validateMaxValue,
|
|
5110
5114
|
$t as validateMinValue
|