@citruslime/ui 2.6.20-beta.0 → 2.6.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/citrus-lime-ui.es.js +551 -551
- package/dist/citrus-lime-ui.umd.js +5 -5
- package/package.json +3 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Icon as H } from "@iconify/vue";
|
|
2
|
-
import { defineComponent as Z, ref as R, openBlock as m, createElementBlock as T, renderSlot as U, normalizeProps as de, guardReactiveProps as ve, Fragment as J, createElementVNode as
|
|
2
|
+
import { defineComponent as Z, ref as R, openBlock as m, createElementBlock as T, renderSlot as U, normalizeProps as de, guardReactiveProps as ve, Fragment as J, createElementVNode as g, normalizeClass as z, createVNode as E, unref as h, Transition as Se, withCtx as Q, withDirectives as le, mergeProps as ue, vShow as te, createBlock as K, Teleport as ol, renderList as se, toDisplayString as A, createCommentVNode as P, nextTick as je, computed as F, toHandlers as xl, withModifiers as re, getCurrentInstance as _l, version as Hl, watch as ne, withKeys as Ne, useCssVars as Gl, vModelText as Kl, onMounted as Ye, vModelDynamic as Zl, toRefs as Wl, onUnmounted as rl, resolveComponent as Ol, createTextVNode as pe, inject as Ql, watchEffect as Yl, createSlots as il, provide as Jl, normalizeStyle as Xl } from "vue";
|
|
3
3
|
import { generateStringId as et, highlightText as lt } from "@citruslime/utils";
|
|
4
|
-
import { useMediaQuery as tt, useDebounceFn as sl, unrefElement as at, tryOnScopeDispose as nt, onClickOutside as cl, useTimeoutFn as
|
|
4
|
+
import { useMediaQuery as tt, useDebounceFn as sl, unrefElement as at, tryOnScopeDispose as nt, onClickOutside as cl, useTimeoutFn as El, useWindowSize as ot } from "@vueuse/core";
|
|
5
5
|
import { createI18n as rt, useI18n as ce } from "vue-i18n";
|
|
6
6
|
import { DateTime as G } from "luxon";
|
|
7
7
|
import { DatePicker as Xe } from "v-calendar";
|
|
@@ -46,15 +46,15 @@ const it = { class: "cl-overflow-hidden" }, st = /* @__PURE__ */ Z({
|
|
|
46
46
|
l.disabled || e("toggle");
|
|
47
47
|
}
|
|
48
48
|
return (n, c) => (m(), T(J, null, [
|
|
49
|
-
|
|
49
|
+
g("div", {
|
|
50
50
|
class: z(["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
|
-
|
|
56
|
+
g("div", ct, [
|
|
57
|
+
E(h(H), {
|
|
58
58
|
class: z(["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 it = { class: "cl-overflow-hidden" }, st = /* @__PURE__ */ Z({
|
|
|
62
62
|
width: "20"
|
|
63
63
|
}, null, 8, ["class"])
|
|
64
64
|
]),
|
|
65
|
-
|
|
65
|
+
g("div", ut, [
|
|
66
66
|
U(n.$slots, "title")
|
|
67
67
|
])
|
|
68
68
|
], 2),
|
|
69
|
-
|
|
70
|
-
|
|
69
|
+
g("div", dt, [
|
|
70
|
+
E(Se, { name: "grow-down" }, {
|
|
71
71
|
default: Q(() => [
|
|
72
|
-
le(
|
|
72
|
+
le(g("div", ue(n.$attrs, { class: "cl-ml-10 cl-p-4" }), [
|
|
73
73
|
U(n.$slots, "default")
|
|
74
74
|
], 16), [
|
|
75
75
|
[te, n.open]
|
|
@@ -97,9 +97,9 @@ function dl(a) {
|
|
|
97
97
|
id: et(),
|
|
98
98
|
...a
|
|
99
99
|
};
|
|
100
|
-
_e.value.push(e), setTimeout(() =>
|
|
100
|
+
_e.value.push(e), setTimeout(() => Nl(e), a.duration);
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function Nl(a) {
|
|
103
103
|
_e.value = _e.value.filter((e) => e.id !== a.id);
|
|
104
104
|
}
|
|
105
105
|
const gt = ["onClick"], bt = { class: "cl-flex-1 cl-select-none cl-text-ellipsis cl-w-64" }, Dl = /* @__PURE__ */ Z({
|
|
@@ -111,7 +111,7 @@ const gt = ["onClick"], bt = { class: "cl-flex-1 cl-select-none cl-text-ellipsis
|
|
|
111
111
|
},
|
|
112
112
|
setup(a) {
|
|
113
113
|
return (e, l) => (m(), K(ol, { to: e.container }, [
|
|
114
|
-
|
|
114
|
+
g("div", {
|
|
115
115
|
class: z(["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",
|
|
@@ -130,10 +130,10 @@ const gt = ["onClick"], bt = { 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) => h(
|
|
133
|
+
onClick: (c) => h(Nl)(t)
|
|
134
134
|
}), [
|
|
135
|
-
|
|
136
|
-
|
|
135
|
+
g("span", bt, A(t.message), 1),
|
|
136
|
+
E(h(H), {
|
|
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,
|
|
@@ -150,20 +150,20 @@ const gt = ["onClick"], bt = { class: "cl-flex-1 cl-select-none cl-text-ellipsis
|
|
|
150
150
|
},
|
|
151
151
|
setup(a) {
|
|
152
152
|
return (e, l) => (m(), T(J, null, [
|
|
153
|
-
|
|
153
|
+
E(Dl, {
|
|
154
154
|
class: z({
|
|
155
155
|
"first:cl-mt-[4.25rem]": e.$slots.header
|
|
156
156
|
})
|
|
157
157
|
}, null, 8, ["class"]),
|
|
158
|
-
|
|
158
|
+
g("div", yt, [
|
|
159
159
|
U(e.$slots, "header"),
|
|
160
|
-
|
|
160
|
+
g("div", {
|
|
161
161
|
class: z(["cl-content-start cl-flex cl-flex-nowrap cl-h-dscreen cl-items-stretch cl-max-h-full cl-relative cl-w-full xl:cl-max-h-screen", {
|
|
162
162
|
"cl-pt-20": e.$slots.header
|
|
163
163
|
}])
|
|
164
164
|
}, [
|
|
165
165
|
U(e.$slots, "navigation"),
|
|
166
|
-
|
|
166
|
+
g("div", {
|
|
167
167
|
id: "cl-ui-app-container",
|
|
168
168
|
class: z(["cl-grow cl-max-h-full cl-overflow-x-hidden cl-overflow-y-auto cl-overscroll-y-none cl-w-auto", {
|
|
169
169
|
"lg:cl-pb-0": e.removePadding,
|
|
@@ -197,10 +197,10 @@ const Je = /* @__PURE__ */ $e(kt, [["render", $t], ["__scopeId", "data-v-a21dc5d
|
|
|
197
197
|
l.value && l.value.focus();
|
|
198
198
|
}
|
|
199
199
|
}), (t, n) => (m(), T(J, null, [
|
|
200
|
-
le(
|
|
200
|
+
le(E(Je, { class: "relative" }, null, 512), [
|
|
201
201
|
[te, t.loading]
|
|
202
202
|
]),
|
|
203
|
-
le(
|
|
203
|
+
le(g("button", ue(t.$attrs, {
|
|
204
204
|
ref_key: "buttonRef",
|
|
205
205
|
ref: l,
|
|
206
206
|
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", {
|
|
@@ -234,7 +234,7 @@ const Je = /* @__PURE__ */ $e(kt, [["render", $t], ["__scopeId", "data-v-a21dc5d
|
|
|
234
234
|
"small",
|
|
235
235
|
"medium",
|
|
236
236
|
"large"
|
|
237
|
-
],
|
|
237
|
+
], Et = { key: 0 }, Nt = /* @__PURE__ */ Z({
|
|
238
238
|
__name: "cl-ui-card",
|
|
239
239
|
props: {
|
|
240
240
|
size: { default: "medium" },
|
|
@@ -246,7 +246,7 @@ const Je = /* @__PURE__ */ $e(kt, [["render", $t], ["__scopeId", "data-v-a21dc5d
|
|
|
246
246
|
"cl-cursor-pointer hover:cl-shadow-xl hover:cl-border-grey-0": e.hover
|
|
247
247
|
}])
|
|
248
248
|
}, [
|
|
249
|
-
e.$slots.image ? (m(), T("div",
|
|
249
|
+
e.$slots.image ? (m(), T("div", Et, [
|
|
250
250
|
U(e.$slots, "image")
|
|
251
251
|
])) : P("", !0),
|
|
252
252
|
e.$slots.title ? (m(), T("div", {
|
|
@@ -260,7 +260,7 @@ const Je = /* @__PURE__ */ $e(kt, [["render", $t], ["__scopeId", "data-v-a21dc5d
|
|
|
260
260
|
}, [
|
|
261
261
|
U(e.$slots, "title")
|
|
262
262
|
], 2)) : P("", !0),
|
|
263
|
-
|
|
263
|
+
g("div", {
|
|
264
264
|
class: z(["cl-border-grey-2", {
|
|
265
265
|
"cl-p-2": e.size === "small",
|
|
266
266
|
"cl-p-4": e.size === "medium",
|
|
@@ -461,7 +461,7 @@ const Ft = {
|
|
|
461
461
|
fallbackWarn: !1,
|
|
462
462
|
warnHtmlMessage: !1
|
|
463
463
|
});
|
|
464
|
-
function
|
|
464
|
+
function Ni(a, e) {
|
|
465
465
|
return Te.global.mergeLocaleMessage(a, e), je();
|
|
466
466
|
}
|
|
467
467
|
function Di(a, e) {
|
|
@@ -635,7 +635,7 @@ const Lt = {
|
|
|
635
635
|
return e({
|
|
636
636
|
focus: n
|
|
637
637
|
}), (o, r) => o.type === "dateRange" ? (m(), T("div", Lt, [
|
|
638
|
-
|
|
638
|
+
E(ye, {
|
|
639
639
|
class: z(["cl-basis-full cl-border-transparent cl-col-span-4 cl-flex cl-items-center cl-justify-center hover:cl-border-transparent", {
|
|
640
640
|
"cl-text-grey-4 hover:cl-text-grey-3": !o.rangeSelected,
|
|
641
641
|
"cl-text-primary-darker hover:cl-text-primary-dark": o.rangeSelected
|
|
@@ -644,7 +644,7 @@ const Lt = {
|
|
|
644
644
|
onClick: r[0] || (r[0] = (s) => o.$emit("togglePopover"))
|
|
645
645
|
}, {
|
|
646
646
|
default: Q(() => [
|
|
647
|
-
|
|
647
|
+
E(h(H), {
|
|
648
648
|
icon: "bi:calendar3",
|
|
649
649
|
class: "cl-text-xl icon"
|
|
650
650
|
})
|
|
@@ -662,7 +662,7 @@ const Lt = {
|
|
|
662
662
|
onClick: r[1] || (r[1] = (s) => o.$emit("clear"))
|
|
663
663
|
}, {
|
|
664
664
|
default: Q(() => [
|
|
665
|
-
|
|
665
|
+
E(h(H), {
|
|
666
666
|
icon: "ph:x",
|
|
667
667
|
class: "clear-icon"
|
|
668
668
|
})
|
|
@@ -670,7 +670,7 @@ const Lt = {
|
|
|
670
670
|
_: 1
|
|
671
671
|
}, 8, ["disabled", "class"]))
|
|
672
672
|
])) : (m(), T("div", jt, [
|
|
673
|
-
|
|
673
|
+
g("input", ue({
|
|
674
674
|
ref_key: "element",
|
|
675
675
|
ref: t
|
|
676
676
|
}, o.$attrs, {
|
|
@@ -679,7 +679,7 @@ const Lt = {
|
|
|
679
679
|
disabled: o.disabled,
|
|
680
680
|
placeholder: i.value
|
|
681
681
|
}, xl(o.events, !0)), null, 16, Pt),
|
|
682
|
-
le(
|
|
682
|
+
le(E(h(H), {
|
|
683
683
|
class: z(["cl-absolute cl-bg-transparent cl-cursor-text cl-left-2 cl-text-grey-4 cl-top-3.5 icon", {
|
|
684
684
|
"!cl-bg-off-white": o.disabled
|
|
685
685
|
}]),
|
|
@@ -725,7 +725,7 @@ const el = /* @__PURE__ */ $e(Bt, [["__scopeId", "data-v-14711049"]]), Ut = { cl
|
|
|
725
725
|
}]),
|
|
726
726
|
onClick: (s) => e("quick-date-selected", c)
|
|
727
727
|
}, [
|
|
728
|
-
|
|
728
|
+
g("span", null, A(h(l)(c.translationKey)), 1)
|
|
729
729
|
], 10, xt);
|
|
730
730
|
}), 128))
|
|
731
731
|
]));
|
|
@@ -859,12 +859,12 @@ const el = /* @__PURE__ */ $e(Bt, [["__scopeId", "data-v-14711049"]]), Ut = { cl
|
|
|
859
859
|
return c;
|
|
860
860
|
});
|
|
861
861
|
return (c, i) => (m(), T("div", Gt, [
|
|
862
|
-
|
|
862
|
+
g("div", null, A(h(t)("quickDates.quickDatesHeader")), 1),
|
|
863
863
|
(m(!0), T(J, null, se(n.value, (o, r) => (m(), T("div", {
|
|
864
864
|
key: r,
|
|
865
865
|
class: "cl-pt-2"
|
|
866
866
|
}, [
|
|
867
|
-
|
|
867
|
+
E(_t, {
|
|
868
868
|
dates: o,
|
|
869
869
|
"selected-quick-date": c.selectedQuickDate,
|
|
870
870
|
onQuickDateSelected: i[0] || (i[0] = (s) => e("quick-date-selected", s))
|
|
@@ -968,7 +968,7 @@ const el = /* @__PURE__ */ $e(Bt, [["__scopeId", "data-v-14711049"]]), Ut = { cl
|
|
|
968
968
|
}).setLocale(r.value);
|
|
969
969
|
let v;
|
|
970
970
|
return t.type === "date" ? v = d.toFormat("D") : t.type === "datetime" ? v = d.toFormat("f") : v = d.toFormat("t"), r.value === "en-US" ? v = v.replace("05", "hh").replace("5", "h") : v = v.replace("05", "HH").replace("5", "H"), v.replace("2000", "YYYY").replace("20", "YY").replace("04", "MM").replace("4", "M").replace("03", "DD").replace("3", "D").replace("06", "mm").replace("6", "m").replace("AM", "A").trim();
|
|
971
|
-
}),
|
|
971
|
+
}), b = R(null), S = F(() => {
|
|
972
972
|
let d;
|
|
973
973
|
if (t.date && t.type !== "dateRange")
|
|
974
974
|
d = G.fromISO(t.date, {
|
|
@@ -988,13 +988,13 @@ const el = /* @__PURE__ */ $e(Bt, [["__scopeId", "data-v-14711049"]]), Ut = { cl
|
|
|
988
988
|
e({
|
|
989
989
|
focus() {
|
|
990
990
|
var d;
|
|
991
|
-
(d =
|
|
991
|
+
(d = b.value) == null || d.focus();
|
|
992
992
|
}
|
|
993
993
|
});
|
|
994
|
-
const
|
|
994
|
+
const N = R(null), D = R();
|
|
995
995
|
function _(d) {
|
|
996
996
|
const v = V(d);
|
|
997
|
-
c.value = v,
|
|
997
|
+
c.value = v, N.value = d, D.value.move(v.start), D.value.hidePopover();
|
|
998
998
|
}
|
|
999
999
|
function V(d) {
|
|
1000
1000
|
const v = d.range, k = d.scope === "past" ? -1 : d.scope === "current" ? 0 : 1, L = G.now().setZone(n.value).startOf(v).plus({ days: v === "day" ? k : 0, weeks: v === "week" ? k : 0, months: v === "month" ? k : 0, years: v === "year" ? k : 0 }), j = L.endOf(v);
|
|
@@ -1011,7 +1011,7 @@ const el = /* @__PURE__ */ $e(Bt, [["__scopeId", "data-v-14711049"]]), Ut = { cl
|
|
|
1011
1011
|
d = `${k} - ${L}`;
|
|
1012
1012
|
}
|
|
1013
1013
|
return d;
|
|
1014
|
-
}), oe = tt("(min-width: 768px)"),
|
|
1014
|
+
}), oe = tt("(min-width: 768px)"), w = F(() => oe.value ? 2 : 1);
|
|
1015
1015
|
return (d, v) => d.type === "time" ? (m(), K(h(Xe), {
|
|
1016
1016
|
key: 0,
|
|
1017
1017
|
modelValue: c.value,
|
|
@@ -1029,9 +1029,9 @@ const el = /* @__PURE__ */ $e(Bt, [["__scopeId", "data-v-14711049"]]), Ut = { cl
|
|
|
1029
1029
|
popover: s.value
|
|
1030
1030
|
}, {
|
|
1031
1031
|
default: Q(({ inputValue: k, inputEvents: L }) => [
|
|
1032
|
-
|
|
1032
|
+
E(el, ue(d.$attrs, {
|
|
1033
1033
|
ref_key: "input",
|
|
1034
|
-
ref:
|
|
1034
|
+
ref: b,
|
|
1035
1035
|
date: k,
|
|
1036
1036
|
events: L,
|
|
1037
1037
|
type: d.type,
|
|
@@ -1055,17 +1055,17 @@ const el = /* @__PURE__ */ $e(Bt, [["__scopeId", "data-v-14711049"]]), Ut = { cl
|
|
|
1055
1055
|
locale: h(o),
|
|
1056
1056
|
is24hr: h(o) !== "en-US",
|
|
1057
1057
|
timezone: n.value,
|
|
1058
|
-
columns:
|
|
1058
|
+
columns: w.value,
|
|
1059
1059
|
popover: s.value,
|
|
1060
1060
|
"min-date": d.min,
|
|
1061
1061
|
"max-date": d.max,
|
|
1062
1062
|
"initial-page": S.value,
|
|
1063
|
-
onDayclick: v[4] || (v[4] = (k) =>
|
|
1063
|
+
onDayclick: v[4] || (v[4] = (k) => N.value = null)
|
|
1064
1064
|
}, {
|
|
1065
1065
|
default: Q(({ togglePopover: k }) => [
|
|
1066
|
-
|
|
1066
|
+
E(el, ue(d.$attrs, {
|
|
1067
1067
|
ref_key: "input",
|
|
1068
|
-
ref:
|
|
1068
|
+
ref: b,
|
|
1069
1069
|
type: d.type,
|
|
1070
1070
|
required: d.required,
|
|
1071
1071
|
disabled: d.disabled,
|
|
@@ -1074,7 +1074,7 @@ const el = /* @__PURE__ */ $e(Bt, [["__scopeId", "data-v-14711049"]]), Ut = { cl
|
|
|
1074
1074
|
placeholder: null,
|
|
1075
1075
|
onTogglePopover: k,
|
|
1076
1076
|
onClear: v[2] || (v[2] = (L) => {
|
|
1077
|
-
c.value = null,
|
|
1077
|
+
c.value = null, N.value = null, D.value.hidePopover();
|
|
1078
1078
|
})
|
|
1079
1079
|
}), null, 16, ["type", "required", "disabled", "range-selected", "title", "onTogglePopover"])
|
|
1080
1080
|
]),
|
|
@@ -1082,7 +1082,7 @@ const el = /* @__PURE__ */ $e(Bt, [["__scopeId", "data-v-14711049"]]), Ut = { cl
|
|
|
1082
1082
|
d.quickDateScope !== "none" ? (m(), K(Zt, {
|
|
1083
1083
|
key: 0,
|
|
1084
1084
|
scope: d.quickDateScope,
|
|
1085
|
-
"selected-quick-date":
|
|
1085
|
+
"selected-quick-date": N.value,
|
|
1086
1086
|
"current-date-range": t.date,
|
|
1087
1087
|
onQuickDateSelected: _
|
|
1088
1088
|
}, null, 8, ["scope", "selected-quick-date", "current-date-range"])) : P("", !0)
|
|
@@ -1108,9 +1108,9 @@ const el = /* @__PURE__ */ $e(Bt, [["__scopeId", "data-v-14711049"]]), Ut = { cl
|
|
|
1108
1108
|
popover: s.value
|
|
1109
1109
|
}, {
|
|
1110
1110
|
default: Q(({ inputValue: k, inputEvents: L }) => [
|
|
1111
|
-
|
|
1111
|
+
E(el, ue(d.$attrs, {
|
|
1112
1112
|
ref_key: "input",
|
|
1113
|
-
ref:
|
|
1113
|
+
ref: b,
|
|
1114
1114
|
date: k,
|
|
1115
1115
|
events: L,
|
|
1116
1116
|
type: d.type,
|
|
@@ -1136,10 +1136,10 @@ const Ve = [
|
|
|
1136
1136
|
* (c) 2018-2023 Matthias Stiller
|
|
1137
1137
|
* @license MIT
|
|
1138
1138
|
*/
|
|
1139
|
-
var
|
|
1139
|
+
var Ee;
|
|
1140
1140
|
(function(a) {
|
|
1141
1141
|
a.symbol = "symbol", a.narrowSymbol = "narrowSymbol", a.code = "code", a.name = "name", a.hidden = "hidden";
|
|
1142
|
-
})(
|
|
1142
|
+
})(Ee || (Ee = {}));
|
|
1143
1143
|
var Ce;
|
|
1144
1144
|
(function(a) {
|
|
1145
1145
|
a.precision = "precision", a.thousands = "thousands", a.millions = "millions", a.billions = "billions";
|
|
@@ -1148,16 +1148,16 @@ const Ue = (a) => a.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), Al = (a) => a.replac
|
|
|
1148
1148
|
class Yt {
|
|
1149
1149
|
constructor(e) {
|
|
1150
1150
|
var l, t, n, c, i, o;
|
|
1151
|
-
const { currency: r, currencyDisplay: s, locale: f, precision: p, accountingSign: u, useGrouping:
|
|
1151
|
+
const { currency: r, currencyDisplay: s, locale: f, precision: p, accountingSign: u, useGrouping: b } = e;
|
|
1152
1152
|
this.locale = f, this.options = {
|
|
1153
1153
|
currency: r,
|
|
1154
|
-
useGrouping:
|
|
1154
|
+
useGrouping: b,
|
|
1155
1155
|
style: "currency",
|
|
1156
1156
|
currencySign: u ? "accounting" : void 0,
|
|
1157
|
-
currencyDisplay: s !==
|
|
1157
|
+
currencyDisplay: s !== Ee.hidden ? s : void 0
|
|
1158
1158
|
};
|
|
1159
|
-
const S = new Intl.NumberFormat(f, this.options),
|
|
1160
|
-
this.currency = (l =
|
|
1159
|
+
const S = new Intl.NumberFormat(f, this.options), N = S.formatToParts(123456);
|
|
1160
|
+
this.currency = (l = N.find(({ type: V }) => V === "currency")) === null || l === void 0 ? void 0 : l.value, this.digits = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9].map((V) => V.toLocaleString(f)), this.decimalSymbol = (t = N.find(({ type: V }) => V === "decimal")) === null || t === void 0 ? void 0 : t.value, this.groupingSymbol = (n = N.find(({ type: V }) => V === "group")) === null || n === void 0 ? void 0 : n.value, this.minusSign = (c = S.formatToParts(-1).find(({ type: V }) => V === "minusSign")) === null || c === void 0 ? void 0 : c.value, this.decimalSymbol === void 0 ? this.minimumFractionDigits = this.maximumFractionDigits = 0 : typeof p == "number" ? this.minimumFractionDigits = this.maximumFractionDigits = p : (this.minimumFractionDigits = (i = p == null ? void 0 : p.min) !== null && i !== void 0 ? i : S.resolvedOptions().minimumFractionDigits, this.maximumFractionDigits = (o = p == null ? void 0 : p.max) !== null && o !== void 0 ? o : S.resolvedOptions().maximumFractionDigits);
|
|
1161
1161
|
const D = (V) => Qt(V, this.digits[1]), _ = (V) => V.substring(V.lastIndexOf(this.decimalSymbol ? this.digits[0] : this.digits[1]) + 1);
|
|
1162
1162
|
this.prefix = D(S.format(1)), this.suffix = _(S.format(1)), this.negativePrefix = D(S.format(-1)), this.negativeSuffix = _(S.format(-1));
|
|
1163
1163
|
}
|
|
@@ -1245,8 +1245,8 @@ class Jt extends Rl {
|
|
|
1245
1245
|
const o = c(i);
|
|
1246
1246
|
if (o != null)
|
|
1247
1247
|
return this.currencyFormat.insertCurrency(o, t);
|
|
1248
|
-
const [r, ...s] = i.split(this.currencyFormat.decimalSymbol), f = Al(this.currencyFormat.onlyDigits(r)), p = this.currencyFormat.onlyDigits(s.join("")).substr(0, this.currencyFormat.maximumFractionDigits), u = s.length > 0 && p.length === 0,
|
|
1249
|
-
return u ||
|
|
1248
|
+
const [r, ...s] = i.split(this.currencyFormat.decimalSymbol), f = Al(this.currencyFormat.onlyDigits(r)), p = this.currencyFormat.onlyDigits(s.join("")).substr(0, this.currencyFormat.maximumFractionDigits), u = s.length > 0 && p.length === 0, b = f === "" && t && (this.currencyFormat.minusSign === void 0 ? l === e.slice(0, -2) + this.currencyFormat.negativeSuffix : l === e.slice(0, -1));
|
|
1249
|
+
return u || b || n(f) ? l : f.match(/\d+/) ? {
|
|
1250
1250
|
numberValue: +`${t ? "-" : ""}${f}.${p}`,
|
|
1251
1251
|
fractionDigits: p
|
|
1252
1252
|
} : "";
|
|
@@ -1337,7 +1337,7 @@ class la {
|
|
|
1337
1337
|
});
|
|
1338
1338
|
} else
|
|
1339
1339
|
n = t;
|
|
1340
|
-
this.maxValue <= 0 && !this.currencyFormat.isNegative(n) && this.currencyFormat.parse(n) !== 0 && (n = n.replace(this.currencyFormat.prefix, this.currencyFormat.negativePrefix)), this.minValue >= 0 && (n = n.replace(this.currencyFormat.negativePrefix, this.currencyFormat.prefix)), (this.options.currencyDisplay ===
|
|
1340
|
+
this.maxValue <= 0 && !this.currencyFormat.isNegative(n) && this.currencyFormat.parse(n) !== 0 && (n = n.replace(this.currencyFormat.prefix, this.currencyFormat.negativePrefix)), this.minValue >= 0 && (n = n.replace(this.currencyFormat.negativePrefix, this.currencyFormat.prefix)), (this.options.currencyDisplay === Ee.hidden || this.focus && this.options.hideCurrencySymbolOnFocus) && (n = n.replace(this.currencyFormat.negativePrefix, this.currencyFormat.minusSign !== void 0 ? this.currencyFormat.minusSign : "(").replace(this.currencyFormat.negativeSuffix, this.currencyFormat.minusSign !== void 0 ? "" : ")").replace(this.currencyFormat.prefix, "").replace(this.currencyFormat.suffix, "")), this.el.value = n, this.numberValue = this.currencyFormat.parse(n);
|
|
1341
1341
|
} else
|
|
1342
1342
|
this.el.value = "", this.numberValue = null;
|
|
1343
1343
|
this.formattedValue = this.el.value, this.onInput(this.getValue());
|
|
@@ -1357,12 +1357,12 @@ class la {
|
|
|
1357
1357
|
if (u < p)
|
|
1358
1358
|
return t;
|
|
1359
1359
|
if (r !== void 0 && l.indexOf(r) !== -1) {
|
|
1360
|
-
const
|
|
1361
|
-
if (Math.abs(u - l.length) > 1 && t <=
|
|
1360
|
+
const b = l.indexOf(r) + 1;
|
|
1361
|
+
if (Math.abs(u - l.length) > 1 && t <= b)
|
|
1362
1362
|
return this.formattedValue.indexOf(r) + 1;
|
|
1363
|
-
!this.options.autoDecimalDigits && t >
|
|
1363
|
+
!this.options.autoDecimalDigits && t > b && this.currencyFormat.onlyDigits(l.substr(b)).length - 1 === s && (p -= 1);
|
|
1364
1364
|
}
|
|
1365
|
-
return this.options.hideCurrencySymbolOnFocus || this.options.currencyDisplay ===
|
|
1365
|
+
return this.options.hideCurrencySymbolOnFocus || this.options.currencyDisplay === Ee.hidden ? u - p : Math.max(u - Math.max(p, o.length), i.length);
|
|
1366
1366
|
};
|
|
1367
1367
|
this.setCaretPosition(c());
|
|
1368
1368
|
}
|
|
@@ -1384,7 +1384,7 @@ class la {
|
|
|
1384
1384
|
if (this.numberValue == null)
|
|
1385
1385
|
return l;
|
|
1386
1386
|
const { prefix: t, negativePrefix: n, suffix: c, negativeSuffix: i, groupingSymbol: o, currency: r } = this.currencyFormat, s = this.numberValue < 0, f = s ? n : t, p = f.length;
|
|
1387
|
-
if (this.options.hideCurrencySymbolOnFocus || this.options.currencyDisplay ===
|
|
1387
|
+
if (this.options.hideCurrencySymbolOnFocus || this.options.currencyDisplay === Ee.hidden) {
|
|
1388
1388
|
if (s) {
|
|
1389
1389
|
if (l <= 1)
|
|
1390
1390
|
return 1;
|
|
@@ -1392,14 +1392,14 @@ class la {
|
|
|
1392
1392
|
return this.formattedValue.length - 1;
|
|
1393
1393
|
}
|
|
1394
1394
|
} else {
|
|
1395
|
-
const
|
|
1396
|
-
if (l >= e.length -
|
|
1397
|
-
return this.formattedValue.length -
|
|
1395
|
+
const b = s ? i.length : c.length;
|
|
1396
|
+
if (l >= e.length - b)
|
|
1397
|
+
return this.formattedValue.length - b;
|
|
1398
1398
|
if (l < p)
|
|
1399
1399
|
return p;
|
|
1400
1400
|
}
|
|
1401
1401
|
let u = l;
|
|
1402
|
-
return this.options.hideCurrencySymbolOnFocus && this.options.currencyDisplay !==
|
|
1402
|
+
return this.options.hideCurrencySymbolOnFocus && this.options.currencyDisplay !== Ee.hidden && l >= p && r !== void 0 && f.includes(r) && (u -= p, s && (u += 1)), this.options.hideGroupingSeparatorOnFocus && o !== void 0 && (u -= ll(e.substring(0, l), o)), u;
|
|
1403
1403
|
}
|
|
1404
1404
|
setCaretPosition(e, l = e) {
|
|
1405
1405
|
this.el.setSelectionRange(e, l);
|
|
@@ -1409,7 +1409,7 @@ const ta = (a) => a != null && a.matches("input") ? a : a == null ? void 0 : a.q
|
|
|
1409
1409
|
function aa(a, e) {
|
|
1410
1410
|
var l, t, n, c;
|
|
1411
1411
|
let i;
|
|
1412
|
-
const o = R(null), r = R(null), s = R(null), f = _l(), p = (f == null ? void 0 : f.emit) || ((t = (l = f == null ? void 0 : f.proxy) === null || l === void 0 ? void 0 : l.$emit) === null || t === void 0 ? void 0 : t.bind(f == null ? void 0 : f.proxy)), u = (f == null ? void 0 : f.props) || ((n = f == null ? void 0 : f.proxy) === null || n === void 0 ? void 0 : n.$props),
|
|
1412
|
+
const o = R(null), r = R(null), s = R(null), f = _l(), p = (f == null ? void 0 : f.emit) || ((t = (l = f == null ? void 0 : f.proxy) === null || l === void 0 ? void 0 : l.$emit) === null || t === void 0 ? void 0 : t.bind(f == null ? void 0 : f.proxy)), u = (f == null ? void 0 : f.props) || ((n = f == null ? void 0 : f.proxy) === null || n === void 0 ? void 0 : n.$props), b = Hl.startsWith("3"), S = b && ((c = f == null ? void 0 : f.attrs.modelModifiers) === null || c === void 0 ? void 0 : c.lazy), N = F(() => u == null ? void 0 : u[b ? "modelValue" : "value"]), D = b ? "update:modelValue" : "input", _ = S ? "update:modelValue" : "change";
|
|
1413
1413
|
return ne(o, (V) => {
|
|
1414
1414
|
var ee;
|
|
1415
1415
|
if (V) {
|
|
@@ -1417,13 +1417,13 @@ function aa(a, e) {
|
|
|
1417
1417
|
oe ? (i = new la({
|
|
1418
1418
|
el: oe,
|
|
1419
1419
|
options: a,
|
|
1420
|
-
onInput: (
|
|
1421
|
-
!S && e !== !1 &&
|
|
1420
|
+
onInput: (w) => {
|
|
1421
|
+
!S && e !== !1 && N.value !== w.number && (p == null || p(D, w.number)), s.value = w.number, r.value = w.formatted;
|
|
1422
1422
|
},
|
|
1423
|
-
onChange: (
|
|
1424
|
-
e !== !1 && (p == null || p(_,
|
|
1423
|
+
onChange: (w) => {
|
|
1424
|
+
e !== !1 && (p == null || p(_, w.number));
|
|
1425
1425
|
}
|
|
1426
|
-
}), i.setValue(
|
|
1426
|
+
}), i.setValue(N.value)) : console.error('No input element found. Please make sure that the "inputRef" template ref is properly assigned.');
|
|
1427
1427
|
} else
|
|
1428
1428
|
i = null;
|
|
1429
1429
|
}), {
|
|
@@ -1460,9 +1460,9 @@ const na = ["disabled", "step", "placeholder", "name", "onKeydown"], oa = /* @__
|
|
|
1460
1460
|
s(o.value) === !1 && i(r.value), l("update:modelValue", o.value);
|
|
1461
1461
|
}
|
|
1462
1462
|
function u(S) {
|
|
1463
|
-
return Object.values(S).some((
|
|
1463
|
+
return Object.values(S).some((N) => N !== "");
|
|
1464
1464
|
}
|
|
1465
|
-
function
|
|
1465
|
+
function b(S) {
|
|
1466
1466
|
s(o.value) && l("change", S, o.value ?? 0);
|
|
1467
1467
|
}
|
|
1468
1468
|
return ne(
|
|
@@ -1484,7 +1484,7 @@ const na = ["disabled", "step", "placeholder", "name", "onKeydown"], oa = /* @__
|
|
|
1484
1484
|
var S;
|
|
1485
1485
|
(S = n.value) == null || S.blur();
|
|
1486
1486
|
}
|
|
1487
|
-
}), (S,
|
|
1487
|
+
}), (S, N) => (m(), T("input", {
|
|
1488
1488
|
ref_key: "inputRef",
|
|
1489
1489
|
ref: n,
|
|
1490
1490
|
type: "text",
|
|
@@ -1500,10 +1500,10 @@ const na = ["disabled", "step", "placeholder", "name", "onKeydown"], oa = /* @__
|
|
|
1500
1500
|
step: S.step,
|
|
1501
1501
|
placeholder: S.placeholder,
|
|
1502
1502
|
name: S.group,
|
|
1503
|
-
onKeydown:
|
|
1504
|
-
onChange:
|
|
1503
|
+
onKeydown: Ne(f, ["enter"]),
|
|
1504
|
+
onChange: b,
|
|
1505
1505
|
onBlur: p,
|
|
1506
|
-
onFocus:
|
|
1506
|
+
onFocus: N[0] || (N[0] = (D) => l("focus"))
|
|
1507
1507
|
}, null, 42, na));
|
|
1508
1508
|
}
|
|
1509
1509
|
});
|
|
@@ -1566,8 +1566,8 @@ const ia = [
|
|
|
1566
1566
|
get: () => t.value,
|
|
1567
1567
|
set: (u) => l("update:value", u ?? "")
|
|
1568
1568
|
}), r = sl((u) => o.value = u || u === 0 ? u : t.min, 1e3), s = F(() => {
|
|
1569
|
-
let
|
|
1570
|
-
return
|
|
1569
|
+
let b = ((typeof o.value == "number" ? o.value : t.min) - t.min) / (t.max - t.min) * 100;
|
|
1570
|
+
return b < 35 && b > 0 ? b < 20 ? b += 0.5 : b += 0.25 : b > 65 && b < 100 && (b > 80 ? b -= 0.5 : b -= 0.25), `${b}%`;
|
|
1571
1571
|
}), f = F(() => t.min <= t.max && t.step > 0);
|
|
1572
1572
|
e({
|
|
1573
1573
|
focus() {
|
|
@@ -1576,23 +1576,23 @@ const ia = [
|
|
|
1576
1576
|
}
|
|
1577
1577
|
});
|
|
1578
1578
|
const p = R(!1);
|
|
1579
|
-
return (u,
|
|
1580
|
-
|
|
1581
|
-
|
|
1579
|
+
return (u, b) => f.value ? (m(), T("div", de(ue({ key: 0 }, u.$attrs)), [
|
|
1580
|
+
g("div", sa, [
|
|
1581
|
+
g("span", {
|
|
1582
1582
|
class: z(["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", {
|
|
1583
1583
|
"cl-bg-white cl-cursor-pointer hover:cl-border-grey-1": !u.disabled,
|
|
1584
1584
|
"cl-bg-grey-0": u.disabled
|
|
1585
1585
|
}]),
|
|
1586
|
-
onClick:
|
|
1586
|
+
onClick: b[0] || (b[0] = (S) => o.value = u.disabled ? o.value : u.min)
|
|
1587
1587
|
}, A(h(n)(u.min, Number.isInteger(u.min) ? h(fe).INTEGER : h(fe).DECIMAL)), 3),
|
|
1588
|
-
|
|
1588
|
+
g("div", ca, [
|
|
1589
1589
|
p.value ? (m(), K(h(me), {
|
|
1590
1590
|
key: 0,
|
|
1591
1591
|
ref_key: "sliderRef",
|
|
1592
1592
|
ref: i,
|
|
1593
1593
|
modelValue: o.value,
|
|
1594
1594
|
"onUpdate:modelValue": [
|
|
1595
|
-
|
|
1595
|
+
b[1] || (b[1] = (S) => o.value = S),
|
|
1596
1596
|
h(r)
|
|
1597
1597
|
],
|
|
1598
1598
|
class: "cl-min-w-[8.5rem] cl-w-full",
|
|
@@ -1604,10 +1604,10 @@ const ia = [
|
|
|
1604
1604
|
"placeholder-text": u.placeholder,
|
|
1605
1605
|
"show-validation-messages": !1
|
|
1606
1606
|
}, null, 8, ["modelValue", "min", "max", "step", "disabled", "placeholder-text", "onUpdate:modelValue"])) : (m(), T(J, { key: 1 }, [
|
|
1607
|
-
le(
|
|
1607
|
+
le(g("input", {
|
|
1608
1608
|
ref_key: "sliderRef",
|
|
1609
1609
|
ref: i,
|
|
1610
|
-
"onUpdate:modelValue":
|
|
1610
|
+
"onUpdate:modelValue": b[2] || (b[2] = (S) => o.value = S),
|
|
1611
1611
|
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",
|
|
1612
1612
|
type: "range",
|
|
1613
1613
|
min: u.min,
|
|
@@ -1622,22 +1622,22 @@ const ia = [
|
|
|
1622
1622
|
{ number: !0 }
|
|
1623
1623
|
]
|
|
1624
1624
|
]),
|
|
1625
|
-
|
|
1625
|
+
g("div", da, A(o.value), 1)
|
|
1626
1626
|
], 64))
|
|
1627
1627
|
]),
|
|
1628
|
-
|
|
1628
|
+
g("span", {
|
|
1629
1629
|
class: z(["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", {
|
|
1630
1630
|
"cl-bg-white cl-cursor-pointer hover:cl-border-grey-1": !u.disabled,
|
|
1631
1631
|
"cl-bg-grey-0": u.disabled
|
|
1632
1632
|
}]),
|
|
1633
|
-
onClick:
|
|
1633
|
+
onClick: b[3] || (b[3] = (S) => o.value = u.disabled ? o.value : u.max)
|
|
1634
1634
|
}, A(h(n)(u.max, Number.isInteger(u.max) ? h(fe).INTEGER : h(fe).DECIMAL)), 3),
|
|
1635
|
-
|
|
1636
|
-
|
|
1635
|
+
g("div", fa, [
|
|
1636
|
+
g("div", {
|
|
1637
1637
|
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",
|
|
1638
|
-
onClick:
|
|
1638
|
+
onClick: b[4] || (b[4] = (S) => p.value = !p.value)
|
|
1639
1639
|
}, [
|
|
1640
|
-
|
|
1640
|
+
E(h(H), { icon: "ph:arrows-left-right-thin" })
|
|
1641
1641
|
])
|
|
1642
1642
|
])
|
|
1643
1643
|
])
|
|
@@ -1718,10 +1718,10 @@ const ba = { class: "cl-flex cl-justify-between" }, ya = { class: "cl-w-full" },
|
|
|
1718
1718
|
}, $a = ["type", "disabled", "min", "max", "minlength", "maxlength", "step", "placeholder", "accept", "name", "autocomplete", "onBlur"], Sa = { key: 0 }, Ca = { key: 1 }, Oa = {
|
|
1719
1719
|
key: 3,
|
|
1720
1720
|
class: "cl-max-h-[2.75rem] cl-pb-0.5"
|
|
1721
|
-
},
|
|
1721
|
+
}, Ea = {
|
|
1722
1722
|
key: 0,
|
|
1723
1723
|
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"
|
|
1724
|
-
},
|
|
1724
|
+
}, Na = {
|
|
1725
1725
|
key: 1,
|
|
1726
1726
|
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"
|
|
1727
1727
|
}, Da = /* @__PURE__ */ Z({
|
|
@@ -1763,14 +1763,14 @@ const ba = { class: "cl-flex cl-justify-between" }, ya = { class: "cl-w-full" },
|
|
|
1763
1763
|
setup(a, { expose: e, emit: l }) {
|
|
1764
1764
|
const t = a, n = R(null), c = R(null), i = R(!1), o = R(!1), r = F(W), s = F(() => t.placeholderText.trim() !== "" ? t.placeholderText : t.label), f = R(0), p = F({
|
|
1765
1765
|
get: () => t.modelValue,
|
|
1766
|
-
set: (
|
|
1766
|
+
set: (y) => k(y, !1)
|
|
1767
1767
|
}), u = F({
|
|
1768
1768
|
get: () => t.modelValue,
|
|
1769
|
-
set: (
|
|
1770
|
-
}),
|
|
1771
|
-
var
|
|
1769
|
+
set: (y) => v(y)
|
|
1770
|
+
}), b = F(() => typeof t.min == "number" ? t.min.toString() : t.min), S = F(() => typeof t.max == "number" ? t.max.toString() : t.max), N = F(() => typeof t.min == "number" || t.min === null ? t.min : parseFloat(t.min)), D = F(() => typeof t.max == "number" || t.max === null ? t.max : parseFloat(t.max)), _ = F(() => t.messageWhenValid.trim() !== "" ? t.messageWhenValid : ""), V = R(!0), ee = R(!0), oe = R([]), w = F(() => {
|
|
1771
|
+
var y, M;
|
|
1772
1772
|
return [
|
|
1773
|
-
...((
|
|
1773
|
+
...((y = oe.value) == null ? void 0 : y.filter((x) => ((x == null ? void 0 : x.length) ?? 0) > 0)) ?? [],
|
|
1774
1774
|
...((M = t.externalErrors) == null ? void 0 : M.filter((x) => ((x == null ? void 0 : x.length) ?? 0) > 0)) ?? []
|
|
1775
1775
|
].join(`
|
|
1776
1776
|
`);
|
|
@@ -1783,13 +1783,13 @@ const ba = { class: "cl-flex cl-justify-between" }, ya = { class: "cl-w-full" },
|
|
|
1783
1783
|
},
|
|
1784
1784
|
...t.currencyOptions
|
|
1785
1785
|
}));
|
|
1786
|
-
async function v(
|
|
1787
|
-
t.validateOn === "input" && await L(
|
|
1786
|
+
async function v(y) {
|
|
1787
|
+
t.validateOn === "input" && await L(y), l("update:model-value", y);
|
|
1788
1788
|
}
|
|
1789
|
-
async function k(
|
|
1790
|
-
t.onInputFunction !== void 0 && (
|
|
1789
|
+
async function k(y, M) {
|
|
1790
|
+
t.onInputFunction !== void 0 && (y = t.onInputFunction(y)), t.validateOn === "change" && (ee.value = !1), (M || t.validateOn === "input") && await L(y), l("update:model-value", y);
|
|
1791
1791
|
}
|
|
1792
|
-
function L(
|
|
1792
|
+
function L(y) {
|
|
1793
1793
|
const M = {
|
|
1794
1794
|
message: "",
|
|
1795
1795
|
valid: !0
|
|
@@ -1797,41 +1797,41 @@ const ba = { class: "cl-flex cl-justify-between" }, ya = { class: "cl-w-full" },
|
|
|
1797
1797
|
t.customValidationFunction === null || t.customValidationFunction === void 0 ? new Promise((be) => {
|
|
1798
1798
|
be(M);
|
|
1799
1799
|
}) : new Promise((be) => {
|
|
1800
|
-
be(t.customValidationFunction(t.label,
|
|
1800
|
+
be(t.customValidationFunction(t.label, y));
|
|
1801
1801
|
})
|
|
1802
1802
|
];
|
|
1803
|
-
return (typeof
|
|
1803
|
+
return (typeof y == "string" || typeof y == "number") && (x.push(Rt(t.min, t.inputType, t.label, y, t.timeZone)), x.push(Vt(t.max, t.inputType, t.label, y, t.timeZone))), t.isRequired && x.push(qt(t.label, y)), t.inputType === "email" && typeof y == "string" && x.push(Mt(t.label, y)), Promise.all(x).then((be) => {
|
|
1804
1804
|
const Ie = [...be.map((Pe) => Pe.message)], Fe = be.some((Pe) => Pe.message.length > 0 && Pe.valid === !1) || t.externalErrors.length > 0;
|
|
1805
|
-
ee.value = !0, Fe ? (oe.value = Ie, l("validated", !1,
|
|
1805
|
+
ee.value = !0, Fe ? (oe.value = Ie, l("validated", !1, y)) : (oe.value = [], l("validated", !0, y)), V.value = !Fe;
|
|
1806
1806
|
});
|
|
1807
1807
|
}
|
|
1808
1808
|
function j() {
|
|
1809
|
-
let
|
|
1810
|
-
return t.inputType === "color" && p.value && (t.disabled ?
|
|
1809
|
+
let y = "";
|
|
1810
|
+
return t.inputType === "color" && p.value && (t.disabled ? y = "background: #999999" : y = `background: ${p.value};`), y;
|
|
1811
1811
|
}
|
|
1812
|
-
function O(
|
|
1813
|
-
qe(t.inputType) ? (
|
|
1812
|
+
function O(y) {
|
|
1813
|
+
qe(t.inputType) ? (y.preventDefault(), l("click", y)) : t.inputType === "checkbox" && l("click", y);
|
|
1814
1814
|
}
|
|
1815
|
-
function $(
|
|
1815
|
+
function $(y) {
|
|
1816
1816
|
if (n.value) {
|
|
1817
1817
|
n.value.stepUp(), n.value.focus(), k(n.value.valueAsNumber, !1);
|
|
1818
1818
|
const M = {
|
|
1819
1819
|
target: n.value
|
|
1820
1820
|
};
|
|
1821
|
-
l("input", M, n.value.valueAsNumber), l("change",
|
|
1821
|
+
l("input", M, n.value.valueAsNumber), l("change", y, n.value.valueAsNumber);
|
|
1822
1822
|
}
|
|
1823
1823
|
}
|
|
1824
|
-
function I(
|
|
1824
|
+
function I(y) {
|
|
1825
1825
|
if (n.value) {
|
|
1826
1826
|
n.value.stepDown(), n.value.focus(), k(n.value.valueAsNumber, !1);
|
|
1827
1827
|
const M = {
|
|
1828
1828
|
target: n.value
|
|
1829
1829
|
};
|
|
1830
|
-
l("input", M, n.value.valueAsNumber), l("change",
|
|
1830
|
+
l("input", M, n.value.valueAsNumber), l("change", y, n.value.valueAsNumber);
|
|
1831
1831
|
}
|
|
1832
1832
|
}
|
|
1833
|
-
function B(
|
|
1834
|
-
i.value =
|
|
1833
|
+
function B(y) {
|
|
1834
|
+
i.value = y;
|
|
1835
1835
|
}
|
|
1836
1836
|
async function C() {
|
|
1837
1837
|
o.value = !0, B(!1), t.validateOn === "change" && await L(p.value);
|
|
@@ -1839,19 +1839,19 @@ const ba = { class: "cl-flex cl-justify-between" }, ya = { class: "cl-w-full" },
|
|
|
1839
1839
|
function q() {
|
|
1840
1840
|
f.value++;
|
|
1841
1841
|
}
|
|
1842
|
-
function Y(
|
|
1843
|
-
|
|
1842
|
+
function Y(y) {
|
|
1843
|
+
y.target.blur();
|
|
1844
1844
|
}
|
|
1845
1845
|
function W() {
|
|
1846
1846
|
var x;
|
|
1847
|
-
let
|
|
1847
|
+
let y = !0;
|
|
1848
1848
|
const M = r.value;
|
|
1849
|
-
return i.value ?
|
|
1849
|
+
return i.value ? y = M : o.value && ((x = p.value) == null ? void 0 : x.toString().trim()) === "" && t.requiredText.trim() !== "" && (y = !1), !t.hideRequiredAsterisk && y;
|
|
1850
1850
|
}
|
|
1851
|
-
async function ae(
|
|
1852
|
-
if (
|
|
1853
|
-
const x = t.inputType === "currency" ? M ?? 0 : vl(
|
|
1854
|
-
t.validateOn === "change" && await L(x), l("change",
|
|
1851
|
+
async function ae(y, M) {
|
|
1852
|
+
if (y) {
|
|
1853
|
+
const x = t.inputType === "currency" ? M ?? 0 : vl(y, t.inputType);
|
|
1854
|
+
t.validateOn === "change" && await L(x), l("change", y, x);
|
|
1855
1855
|
}
|
|
1856
1856
|
}
|
|
1857
1857
|
async function ge() {
|
|
@@ -1868,83 +1868,83 @@ const ba = { class: "cl-flex cl-justify-between" }, ya = { class: "cl-w-full" },
|
|
|
1868
1868
|
}
|
|
1869
1869
|
), e({
|
|
1870
1870
|
focus() {
|
|
1871
|
-
var
|
|
1872
|
-
t.inputType === "currency" ? (
|
|
1871
|
+
var y, M;
|
|
1872
|
+
t.inputType === "currency" ? (y = c == null ? void 0 : c.value) == null || y.focus() : (M = n.value) == null || M.focus();
|
|
1873
1873
|
},
|
|
1874
1874
|
blur() {
|
|
1875
|
-
var
|
|
1876
|
-
t.inputType === "currency" ? (
|
|
1875
|
+
var y, M;
|
|
1876
|
+
t.inputType === "currency" ? (y = c == null ? void 0 : c.value) == null || y.blur() : (M = n.value) == null || M.blur();
|
|
1877
1877
|
}
|
|
1878
|
-
}), (
|
|
1878
|
+
}), (y, M) => (m(), T("div", ue({ ...y.$attrs, id: void 0 }, {
|
|
1879
1879
|
key: f.value,
|
|
1880
1880
|
class: "cl-align-top cl-border-none cl-inline-block cl-text-left"
|
|
1881
1881
|
}), [
|
|
1882
|
-
|
|
1882
|
+
g("div", {
|
|
1883
1883
|
onMouseenter: M[13] || (M[13] = (x) => B(!0)),
|
|
1884
1884
|
onMouseleave: M[14] || (M[14] = (x) => B(!1))
|
|
1885
1885
|
}, [
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
le(
|
|
1889
|
-
[te,
|
|
1886
|
+
g("div", ba, [
|
|
1887
|
+
g("div", ya, [
|
|
1888
|
+
le(g("label", { class: "cl-block cl-mb-1 cl-text-grey-4 cl-text-xs cl-tracking-widest" }, A(y.label), 513), [
|
|
1889
|
+
[te, y.showLabel && y.label !== ""]
|
|
1890
1890
|
])
|
|
1891
1891
|
]),
|
|
1892
|
-
|
|
1893
|
-
|
|
1892
|
+
y.isRequired && r.value ? (m(), T("label", wa, " * ")) : P("", !0),
|
|
1893
|
+
y.isRequired && !r.value && y.requiredText.length ? (m(), T("label", ka, A(y.requiredText), 1)) : P("", !0)
|
|
1894
1894
|
]),
|
|
1895
|
-
|
|
1896
|
-
le(
|
|
1895
|
+
y.inputType !== "range" && y.inputType !== "currency" && !h(ml)(y.inputType) ? (m(), T("div", Ta, [
|
|
1896
|
+
le(g("input", ue({
|
|
1897
1897
|
ref_key: "inputElement",
|
|
1898
1898
|
ref: n,
|
|
1899
1899
|
"onUpdate:modelValue": M[0] || (M[0] = (x) => p.value = x)
|
|
1900
|
-
},
|
|
1900
|
+
}, y.$attrs, {
|
|
1901
1901
|
class: ["!cl-mb-1 cl-block cl-border cl-duration-300 cl-h-full cl-transition cl-w-full focus:cl-outline-none", {
|
|
1902
|
-
"hover:!cl-border-grey-3":
|
|
1903
|
-
"!cl-cursor-default":
|
|
1902
|
+
"hover:!cl-border-grey-3": y.disabled === !1 && !h(qe)(y.inputType),
|
|
1903
|
+
"!cl-cursor-default": y.disabled,
|
|
1904
1904
|
"!cl-border-danger-default": !V.value,
|
|
1905
|
-
"!cl-border-primary-default": V.value &&
|
|
1906
|
-
"cl-border-grey-0 focus:cl-border-blue-light": V.value && !h(qe)(
|
|
1907
|
-
"!cl-p-2":
|
|
1908
|
-
"cl-p-3 cl-rounded-lg": !h(qe)(
|
|
1909
|
-
[`${
|
|
1905
|
+
"!cl-border-primary-default": V.value && y.highlightWhenValid,
|
|
1906
|
+
"cl-border-grey-0 focus:cl-border-blue-light": V.value && !h(qe)(y.inputType),
|
|
1907
|
+
"!cl-p-2": y.inputType === "checkbox" || y.inputType === "radio",
|
|
1908
|
+
"cl-p-3 cl-rounded-lg": !h(qe)(y.inputType),
|
|
1909
|
+
[`${y.inputSpecificClasses}`]: y.inputSpecificClasses !== ""
|
|
1910
1910
|
}],
|
|
1911
1911
|
style: j(),
|
|
1912
|
-
type:
|
|
1913
|
-
disabled:
|
|
1914
|
-
min:
|
|
1915
|
-
max:
|
|
1916
|
-
minlength:
|
|
1917
|
-
maxlength:
|
|
1918
|
-
step:
|
|
1912
|
+
type: y.inputType,
|
|
1913
|
+
disabled: y.disabled,
|
|
1914
|
+
min: y.min ?? void 0,
|
|
1915
|
+
max: y.max ?? void 0,
|
|
1916
|
+
minlength: y.min !== null && h(pl)(y.inputType) ? y.min : void 0,
|
|
1917
|
+
maxlength: y.max !== null && h(pl)(y.inputType) ? y.max : void 0,
|
|
1918
|
+
step: y.step,
|
|
1919
1919
|
placeholder: s.value,
|
|
1920
|
-
accept:
|
|
1921
|
-
name:
|
|
1922
|
-
autocomplete:
|
|
1920
|
+
accept: y.fileExtensions,
|
|
1921
|
+
name: y.group,
|
|
1922
|
+
autocomplete: y.autocomplete,
|
|
1923
1923
|
onClick: M[1] || (M[1] = (x) => O(x)),
|
|
1924
1924
|
onFocus: M[2] || (M[2] = (x) => l("focus")),
|
|
1925
1925
|
onBlur: re(ge, ["self"]),
|
|
1926
1926
|
onMousewheelPassive: Y,
|
|
1927
1927
|
onInput: M[3] || (M[3] = (x) => {
|
|
1928
|
-
l("input", x, h(vl)(x,
|
|
1928
|
+
l("input", x, h(vl)(x, y.inputType));
|
|
1929
1929
|
}),
|
|
1930
1930
|
onChange: ae
|
|
1931
1931
|
}), null, 16, $a), [
|
|
1932
1932
|
[Zl, p.value]
|
|
1933
1933
|
]),
|
|
1934
|
-
|
|
1934
|
+
E(Se, {
|
|
1935
1935
|
name: "fade",
|
|
1936
1936
|
duration: 300
|
|
1937
1937
|
}, {
|
|
1938
1938
|
default: Q(() => [
|
|
1939
|
-
|
|
1940
|
-
|
|
1939
|
+
y.inputType === "number" && !y.disabled && y.showArrows ? le((m(), T("div", Sa, [
|
|
1940
|
+
E(h(H), {
|
|
1941
1941
|
icon: "ph:caret-up-bold",
|
|
1942
1942
|
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",
|
|
1943
1943
|
onClick: $,
|
|
1944
1944
|
onMousedown: M[4] || (M[4] = re(() => {
|
|
1945
1945
|
}, ["prevent"]))
|
|
1946
1946
|
}),
|
|
1947
|
-
|
|
1947
|
+
E(h(H), {
|
|
1948
1948
|
icon: "ph:caret-down-bold",
|
|
1949
1949
|
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",
|
|
1950
1950
|
onClick: I,
|
|
@@ -1957,67 +1957,67 @@ const ba = { class: "cl-flex cl-justify-between" }, ya = { class: "cl-w-full" },
|
|
|
1957
1957
|
]),
|
|
1958
1958
|
_: 1
|
|
1959
1959
|
})
|
|
1960
|
-
])) :
|
|
1961
|
-
|
|
1960
|
+
])) : y.inputType === "currency" ? (m(), T("div", Ca, [
|
|
1961
|
+
E(oa, ue({
|
|
1962
1962
|
ref_key: "currencyInputRef",
|
|
1963
1963
|
ref: c,
|
|
1964
1964
|
modelValue: p.value,
|
|
1965
1965
|
"onUpdate:modelValue": M[6] || (M[6] = (x) => p.value = x),
|
|
1966
1966
|
modelModifiers: { lazy: !0 }
|
|
1967
|
-
},
|
|
1968
|
-
disabled:
|
|
1967
|
+
}, y.$attrs, {
|
|
1968
|
+
disabled: y.disabled,
|
|
1969
1969
|
placeholder: s.value,
|
|
1970
1970
|
"is-valid": V.value,
|
|
1971
|
-
"highlight-when-valid":
|
|
1972
|
-
"input-specific-classes":
|
|
1973
|
-
group:
|
|
1974
|
-
step:
|
|
1971
|
+
"highlight-when-valid": y.highlightWhenValid,
|
|
1972
|
+
"input-specific-classes": y.inputSpecificClasses,
|
|
1973
|
+
group: y.group,
|
|
1974
|
+
step: y.step,
|
|
1975
1975
|
"currency-options": d.value,
|
|
1976
1976
|
onChange: M[7] || (M[7] = (x, be) => ae(x, be)),
|
|
1977
1977
|
onFocus: M[8] || (M[8] = (x) => l("focus")),
|
|
1978
1978
|
onBlur: C
|
|
1979
1979
|
}), null, 16, ["modelValue", "disabled", "placeholder", "is-valid", "highlight-when-valid", "input-specific-classes", "group", "step", "currency-options"])
|
|
1980
|
-
])) : h(ml)(
|
|
1980
|
+
])) : h(ml)(y.inputType) ? (m(), K(h(Wt), ue({ key: 2 }, y.$attrs, {
|
|
1981
1981
|
ref_key: "inputElement",
|
|
1982
1982
|
ref: n,
|
|
1983
1983
|
date: u.value,
|
|
1984
1984
|
"onUpdate:date": M[9] || (M[9] = (x) => u.value = x),
|
|
1985
1985
|
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", {
|
|
1986
|
-
"hover:cl-border-grey-3": !
|
|
1986
|
+
"hover:cl-border-grey-3": !y.disabled && y.inputType !== "dateRange",
|
|
1987
1987
|
"!cl-border-danger-default": !V.value,
|
|
1988
|
-
"!cl-border-primary-default": V.value &&
|
|
1988
|
+
"!cl-border-primary-default": V.value && y.highlightWhenValid
|
|
1989
1989
|
}],
|
|
1990
|
-
disabled:
|
|
1991
|
-
required:
|
|
1992
|
-
type: h(ga)(
|
|
1993
|
-
"time-zone":
|
|
1994
|
-
min:
|
|
1990
|
+
disabled: y.disabled,
|
|
1991
|
+
required: y.isRequired,
|
|
1992
|
+
type: h(ga)(y.inputType),
|
|
1993
|
+
"time-zone": y.timeZone,
|
|
1994
|
+
min: b.value,
|
|
1995
1995
|
max: S.value,
|
|
1996
1996
|
placeholder: s.value,
|
|
1997
|
-
"initial-date":
|
|
1998
|
-
"quick-date-scope":
|
|
1999
|
-
"date-format-locale":
|
|
1997
|
+
"initial-date": y.initialDate,
|
|
1998
|
+
"quick-date-scope": y.quickDateScope,
|
|
1999
|
+
"date-format-locale": y.dateFormatLocale,
|
|
2000
2000
|
onBlur: re(C, ["self"]),
|
|
2001
2001
|
onFocus: M[10] || (M[10] = (x) => l("focus"))
|
|
2002
|
-
}), null, 16, ["date", "class", "disabled", "required", "type", "time-zone", "min", "max", "placeholder", "initial-date", "quick-date-scope", "date-format-locale", "onBlur"])) :
|
|
2003
|
-
|
|
2002
|
+
}), null, 16, ["date", "class", "disabled", "required", "type", "time-zone", "min", "max", "placeholder", "initial-date", "quick-date-scope", "date-format-locale", "onBlur"])) : y.inputType === "range" && (typeof p.value == "number" || typeof p.value == "string") ? (m(), T("div", Oa, [
|
|
2003
|
+
E(h(va), {
|
|
2004
2004
|
ref_key: "inputElement",
|
|
2005
2005
|
ref: n,
|
|
2006
2006
|
value: p.value,
|
|
2007
2007
|
"onUpdate:value": M[11] || (M[11] = (x) => p.value = x),
|
|
2008
|
-
min:
|
|
2008
|
+
min: N.value ?? 0,
|
|
2009
2009
|
max: D.value ?? 1e3,
|
|
2010
|
-
step:
|
|
2010
|
+
step: y.step,
|
|
2011
2011
|
placeholder: s.value,
|
|
2012
2012
|
"enforce-step": !0,
|
|
2013
|
-
disabled:
|
|
2013
|
+
disabled: y.disabled,
|
|
2014
2014
|
onBlur: re(C, ["self"]),
|
|
2015
2015
|
onFocus: M[12] || (M[12] = (x) => l("focus"))
|
|
2016
2016
|
}, null, 8, ["value", "min", "max", "step", "placeholder", "disabled", "onBlur"])
|
|
2017
2017
|
])) : P("", !0)
|
|
2018
2018
|
], 32),
|
|
2019
|
-
V.value && _.value && ee.value ? (m(), T("div",
|
|
2020
|
-
!V.value &&
|
|
2019
|
+
V.value && _.value && ee.value ? (m(), T("div", Ea, A(_.value), 1)) : P("", !0),
|
|
2020
|
+
!V.value && w.value.length > 0 && y.showValidationMessages && ee.value ? (m(), T("div", Na, A(w.value), 1)) : P("", !0)
|
|
2021
2021
|
], 16));
|
|
2022
2022
|
}
|
|
2023
2023
|
});
|
|
@@ -2061,10 +2061,10 @@ var Vl = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
2061
2061
|
var p = i.shadowRoot || // check for an undisclosed shadow
|
|
2062
2062
|
typeof t.getShadowRoot == "function" && t.getShadowRoot(i), u = !We(p, !1) && (!t.shadowRootFilter || t.shadowRootFilter(i));
|
|
2063
2063
|
if (p && u) {
|
|
2064
|
-
var
|
|
2065
|
-
t.flatten ? n.push.apply(n,
|
|
2064
|
+
var b = a(p === !0 ? i.children : p.children, !0, t);
|
|
2065
|
+
t.flatten ? n.push.apply(n, b) : n.push({
|
|
2066
2066
|
scopeParent: i,
|
|
2067
|
-
candidates:
|
|
2067
|
+
candidates: b
|
|
2068
2068
|
});
|
|
2069
2069
|
} else
|
|
2070
2070
|
c.unshift.apply(c, i.children);
|
|
@@ -2428,12 +2428,12 @@ var yl = {
|
|
|
2428
2428
|
* @returns {HTMLElement|undefined} The next tabbable node, if any.
|
|
2429
2429
|
*/
|
|
2430
2430
|
nextTabbableNode: function(ge) {
|
|
2431
|
-
var
|
|
2432
|
-
return M < 0 ?
|
|
2431
|
+
var y = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, M = $.indexOf(ge);
|
|
2432
|
+
return M < 0 ? y ? I.slice(I.indexOf(ge) + 1).find(function(x) {
|
|
2433
2433
|
return Ae(x);
|
|
2434
2434
|
}) : I.slice(0, I.indexOf(ge)).reverse().find(function(x) {
|
|
2435
2435
|
return Ae(x);
|
|
2436
|
-
}) : $[M + (
|
|
2436
|
+
}) : $[M + (y ? 1 : -1)];
|
|
2437
2437
|
}
|
|
2438
2438
|
};
|
|
2439
2439
|
}), i.tabbableGroups = i.containerGroups.filter(function(O) {
|
|
@@ -2444,7 +2444,7 @@ var yl = {
|
|
|
2444
2444
|
return O.posTabIndexesFound;
|
|
2445
2445
|
}) && i.containerGroups.length > 1)
|
|
2446
2446
|
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.");
|
|
2447
|
-
},
|
|
2447
|
+
}, b = function j(O) {
|
|
2448
2448
|
if (O !== !1 && O !== t.activeElement) {
|
|
2449
2449
|
if (!O || !O.focus) {
|
|
2450
2450
|
j(p());
|
|
@@ -2457,7 +2457,7 @@ var yl = {
|
|
|
2457
2457
|
}, S = function(O) {
|
|
2458
2458
|
var $ = f("setReturnFocus", O);
|
|
2459
2459
|
return $ || ($ === !1 ? !1 : O);
|
|
2460
|
-
},
|
|
2460
|
+
}, N = function(O) {
|
|
2461
2461
|
var $ = O.target, I = O.event, B = O.isBackward, C = B === void 0 ? !1 : B;
|
|
2462
2462
|
$ = $ || ze(I), u();
|
|
2463
2463
|
var q = null;
|
|
@@ -2471,8 +2471,8 @@ var yl = {
|
|
|
2471
2471
|
return $ === Fe;
|
|
2472
2472
|
});
|
|
2473
2473
|
if (ae < 0 && (W.container === $ || tl($, c.tabbableOptions) && !Ae($, c.tabbableOptions) && !W.nextTabbableNode($, !1)) && (ae = Y), ae >= 0) {
|
|
2474
|
-
var ge = ae === 0 ? i.tabbableGroups.length - 1 : ae - 1,
|
|
2475
|
-
q = Oe($) >= 0 ?
|
|
2474
|
+
var ge = ae === 0 ? i.tabbableGroups.length - 1 : ae - 1, y = i.tabbableGroups[ge];
|
|
2475
|
+
q = Oe($) >= 0 ? y.lastTabbableNode : y.lastDomTabbableNode;
|
|
2476
2476
|
} else
|
|
2477
2477
|
Le(I) || (q = W.nextTabbableNode($, !1));
|
|
2478
2478
|
} else {
|
|
@@ -2530,22 +2530,22 @@ var yl = {
|
|
|
2530
2530
|
}) || (C = !1);
|
|
2531
2531
|
else
|
|
2532
2532
|
C = !1;
|
|
2533
|
-
C && (B =
|
|
2533
|
+
C && (B = N({
|
|
2534
2534
|
// move FROM the MRU node, not event-related node (which will be the node that is
|
|
2535
2535
|
// outside the trap causing the focus escape we're trying to fix)
|
|
2536
2536
|
target: i.mostRecentlyFocusedNode,
|
|
2537
2537
|
isBackward: c.isKeyBackward(i.recentNavEvent)
|
|
2538
|
-
})),
|
|
2538
|
+
})), b(B || i.mostRecentlyFocusedNode || p());
|
|
2539
2539
|
}
|
|
2540
2540
|
i.recentNavEvent = void 0;
|
|
2541
2541
|
}, V = function(O) {
|
|
2542
2542
|
var $ = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
2543
2543
|
i.recentNavEvent = O;
|
|
2544
|
-
var I =
|
|
2544
|
+
var I = N({
|
|
2545
2545
|
event: O,
|
|
2546
2546
|
isBackward: $
|
|
2547
2547
|
});
|
|
2548
|
-
I && (Le(O) && O.preventDefault(),
|
|
2548
|
+
I && (Le(O) && O.preventDefault(), b(I));
|
|
2549
2549
|
}, ee = function(O) {
|
|
2550
2550
|
if (Ya(O) && Re(c.escapeDeactivates, O) !== !1) {
|
|
2551
2551
|
O.preventDefault(), o.deactivate();
|
|
@@ -2555,11 +2555,11 @@ var yl = {
|
|
|
2555
2555
|
}, oe = function(O) {
|
|
2556
2556
|
var $ = ze(O);
|
|
2557
2557
|
s($, O) >= 0 || Re(c.clickOutsideDeactivates, O) || Re(c.allowOutsideClick, O) || (O.preventDefault(), O.stopImmediatePropagation());
|
|
2558
|
-
},
|
|
2558
|
+
}, w = function() {
|
|
2559
2559
|
if (i.active)
|
|
2560
2560
|
return yl.activateTrap(n, o), i.delayInitialFocusTimer = c.delayInitialFocus ? wl(function() {
|
|
2561
|
-
|
|
2562
|
-
}) :
|
|
2561
|
+
b(p());
|
|
2562
|
+
}) : b(p()), t.addEventListener("focusin", _, !0), t.addEventListener("mousedown", D, {
|
|
2563
2563
|
capture: !0,
|
|
2564
2564
|
passive: !1
|
|
2565
2565
|
}), t.addEventListener("touchstart", D, {
|
|
@@ -2582,7 +2582,7 @@ var yl = {
|
|
|
2582
2582
|
return C === i.mostRecentlyFocusedNode;
|
|
2583
2583
|
});
|
|
2584
2584
|
});
|
|
2585
|
-
$ &&
|
|
2585
|
+
$ && b(p());
|
|
2586
2586
|
}, k = typeof window < "u" && "MutationObserver" in window ? new MutationObserver(v) : void 0, L = function() {
|
|
2587
2587
|
k && (k.disconnect(), i.active && !i.paused && i.containers.map(function(O) {
|
|
2588
2588
|
k.observe(O, {
|
|
@@ -2604,7 +2604,7 @@ var yl = {
|
|
|
2604
2604
|
var $ = r(O, "onActivate"), I = r(O, "onPostActivate"), B = r(O, "checkCanFocusTrap");
|
|
2605
2605
|
B || u(), i.active = !0, i.paused = !1, i.nodeFocusedBeforeActivation = t.activeElement, $ == null || $();
|
|
2606
2606
|
var C = function() {
|
|
2607
|
-
B && u(),
|
|
2607
|
+
B && u(), w(), L(), I == null || I();
|
|
2608
2608
|
};
|
|
2609
2609
|
return B ? (B(i.containers.concat()).then(C, C), this) : (C(), this);
|
|
2610
2610
|
},
|
|
@@ -2621,7 +2621,7 @@ var yl = {
|
|
|
2621
2621
|
I == null || I();
|
|
2622
2622
|
var Y = function() {
|
|
2623
2623
|
wl(function() {
|
|
2624
|
-
q &&
|
|
2624
|
+
q && b(S(i.nodeFocusedBeforeActivation)), B == null || B();
|
|
2625
2625
|
});
|
|
2626
2626
|
};
|
|
2627
2627
|
return q && C ? (C(S(i.nodeFocusedBeforeActivation)).then(Y, Y), this) : (Y(), this);
|
|
@@ -2636,7 +2636,7 @@ var yl = {
|
|
|
2636
2636
|
if (!i.paused || !i.active)
|
|
2637
2637
|
return this;
|
|
2638
2638
|
var $ = r(O, "onUnpause"), I = r(O, "onPostUnpause");
|
|
2639
|
-
return i.paused = !1, $ == null || $(), u(),
|
|
2639
|
+
return i.paused = !1, $ == null || $(), u(), w(), L(), I == null || I(), this;
|
|
2640
2640
|
},
|
|
2641
2641
|
updateContainerElements: function(O) {
|
|
2642
2642
|
var $ = [].concat(O).filter(Boolean);
|
|
@@ -2676,7 +2676,7 @@ function tn(a, e = {}) {
|
|
|
2676
2676
|
unpause: f
|
|
2677
2677
|
};
|
|
2678
2678
|
}
|
|
2679
|
-
const an = /* @__PURE__ */
|
|
2679
|
+
const an = /* @__PURE__ */ g("div", { tabindex: "0" }, null, -1), nn = ["onKeypress"], on = {
|
|
2680
2680
|
key: 0,
|
|
2681
2681
|
class: "cl-mt-1 cl-opacity-60 cl-text-primary-default"
|
|
2682
2682
|
}, rn = { class: "cl-overflow-y-auto cl-overscroll-y-none cl-p-2 cl-w-full" }, zl = /* @__PURE__ */ Z({
|
|
@@ -2713,15 +2713,15 @@ const an = /* @__PURE__ */ b("div", { tabindex: "0" }, null, -1), nn = ["onKeypr
|
|
|
2713
2713
|
return (s, f) => (m(), T(J, null, [
|
|
2714
2714
|
U(s.$slots, "trigger", de(ve({ open: i }))),
|
|
2715
2715
|
(m(), K(ol, { to: "body" }, [
|
|
2716
|
-
|
|
2716
|
+
E(Se, { name: "fade" }, {
|
|
2717
2717
|
default: Q(() => [
|
|
2718
|
-
le(
|
|
2718
|
+
le(g("div", {
|
|
2719
2719
|
ref_key: "clUiModal",
|
|
2720
2720
|
ref: n,
|
|
2721
2721
|
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"
|
|
2722
2722
|
}, [
|
|
2723
2723
|
an,
|
|
2724
|
-
|
|
2724
|
+
g("div", ue(s.$attrs, {
|
|
2725
2725
|
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)]", {
|
|
2726
2726
|
"lg:cl-w-2/12 cl-w-10/12": s.size === "x-small",
|
|
2727
2727
|
"cl-w-6/12": s.size === "small",
|
|
@@ -2729,21 +2729,21 @@ const an = /* @__PURE__ */ b("div", { tabindex: "0" }, null, -1), nn = ["onKeypr
|
|
|
2729
2729
|
"cl-w-10/12": s.size === "large"
|
|
2730
2730
|
}]
|
|
2731
2731
|
}), [
|
|
2732
|
-
le(
|
|
2732
|
+
le(g("div", {
|
|
2733
2733
|
class: z(["cl-absolute cl-cursor-pointer cl-right-4 cl-top-4 cl-transition-colors cl-w-3", {
|
|
2734
2734
|
"cl-text-white hover:cl-text-off-white": s.headerColour === "secondary",
|
|
2735
2735
|
"cl-text-secondary hover:cl-text-off-white": s.headerColour === "primary",
|
|
2736
2736
|
"cl-text-black hover:cl-text-grey-7": s.headerColour === "white"
|
|
2737
2737
|
}]),
|
|
2738
2738
|
tabindex: 0,
|
|
2739
|
-
onKeypress:
|
|
2739
|
+
onKeypress: Ne(o, ["enter"]),
|
|
2740
2740
|
onClick: o
|
|
2741
2741
|
}, [
|
|
2742
|
-
|
|
2742
|
+
E(h(H), { icon: "ph:x" })
|
|
2743
2743
|
], 42, nn), [
|
|
2744
2744
|
[te, !s.preventClose]
|
|
2745
2745
|
]),
|
|
2746
|
-
|
|
2746
|
+
g("div", {
|
|
2747
2747
|
class: z(["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", {
|
|
2748
2748
|
"cl-bg-secondary-default cl-text-white": s.headerColour === "secondary",
|
|
2749
2749
|
"cl-bg-primary-default cl-text-secondary": s.headerColour === "primary"
|
|
@@ -2752,7 +2752,7 @@ const an = /* @__PURE__ */ b("div", { tabindex: "0" }, null, -1), nn = ["onKeypr
|
|
|
2752
2752
|
U(s.$slots, "title"),
|
|
2753
2753
|
s.headerColour === "white" ? (m(), T("hr", on)) : P("", !0)
|
|
2754
2754
|
], 2),
|
|
2755
|
-
|
|
2755
|
+
g("div", rn, [
|
|
2756
2756
|
U(s.$slots, "default", de(ve({ close: o })))
|
|
2757
2757
|
]),
|
|
2758
2758
|
U(s.$slots, "footer", de(ve({ close: o })))
|
|
@@ -2782,17 +2782,17 @@ const an = /* @__PURE__ */ b("div", { tabindex: "0" }, null, -1), nn = ["onKeypr
|
|
|
2782
2782
|
setup(a) {
|
|
2783
2783
|
return (e, l) => (m(), T("div", sn, [
|
|
2784
2784
|
e.additionalText !== "" ? (m(), T("div", cn, A(e.additionalText), 1)) : P("", !0),
|
|
2785
|
-
|
|
2785
|
+
g("div", {
|
|
2786
2786
|
class: z({
|
|
2787
2787
|
"cl-w-1/2": e.additionalText !== "",
|
|
2788
2788
|
"cl-w-full": e.additionalText === ""
|
|
2789
2789
|
})
|
|
2790
2790
|
}, A(e.text), 3),
|
|
2791
|
-
le(
|
|
2791
|
+
le(g("div", {
|
|
2792
2792
|
class: "cl-cursor-pointer cl-float-right",
|
|
2793
2793
|
onMousedown: l[0] || (l[0] = (t) => e.$emit("clear-object"))
|
|
2794
2794
|
}, [
|
|
2795
|
-
|
|
2795
|
+
E(h(H), {
|
|
2796
2796
|
class: "cl-mt-1 cl-transition-colors hover:cl-text-link-default",
|
|
2797
2797
|
icon: "ph:x"
|
|
2798
2798
|
})
|
|
@@ -2845,18 +2845,18 @@ const an = /* @__PURE__ */ b("div", { tabindex: "0" }, null, -1), nn = ["onKeypr
|
|
|
2845
2845
|
"cl-bg-primary-default cl-text-black cl-opacity-90": c.value && s.isCreateNewOption
|
|
2846
2846
|
}]),
|
|
2847
2847
|
onMousedown: i,
|
|
2848
|
-
onMousemove: f[0] || (f[0] = (
|
|
2849
|
-
onMouseleave: f[1] || (f[1] = (
|
|
2848
|
+
onMousemove: f[0] || (f[0] = (b) => o(!0)),
|
|
2849
|
+
onMouseleave: f[1] || (f[1] = (b) => o(!1))
|
|
2850
2850
|
}, [
|
|
2851
2851
|
s.option !== null && ((p = s.option) == null ? void 0 : p.parentId) !== 0 && ((u = s.option) == null ? void 0 : u.parentId) !== void 0 ? (m(), T("div", un, A(n.value), 1)) : P("", !0),
|
|
2852
|
-
|
|
2852
|
+
g("div", {
|
|
2853
2853
|
class: z({
|
|
2854
2854
|
"cl-w-1/2": n.value !== "",
|
|
2855
2855
|
"cl-w-full": n.value === ""
|
|
2856
2856
|
})
|
|
2857
2857
|
}, A(t.value), 3),
|
|
2858
|
-
le(
|
|
2859
|
-
|
|
2858
|
+
le(g("div", dn, [
|
|
2859
|
+
E(h(H), {
|
|
2860
2860
|
class: "cl-transition-colors",
|
|
2861
2861
|
icon: "ph:plus"
|
|
2862
2862
|
})
|
|
@@ -2889,11 +2889,11 @@ const an = /* @__PURE__ */ b("div", { tabindex: "0" }, null, -1), nn = ["onKeypr
|
|
|
2889
2889
|
},
|
|
2890
2890
|
setup(a, { emit: e }) {
|
|
2891
2891
|
const l = a, { t } = ce(), n = R(""), c = R(!1), i = R(-1), o = F(() => c.value ? -1 : 0), r = R();
|
|
2892
|
-
function s(
|
|
2893
|
-
(
|
|
2892
|
+
function s(w) {
|
|
2893
|
+
(w === void 0 || w.code && w.code.startsWith("Arrow") === !1 && w.code.startsWith("Control") === !1 && w.code.startsWith("Shift") === !1 && w.code.startsWith("Tab") === !1 && w.code !== "Enter") && (e("search", n.value), i.value = -2);
|
|
2894
2894
|
}
|
|
2895
|
-
function f(
|
|
2896
|
-
e("select-object",
|
|
2895
|
+
function f(w) {
|
|
2896
|
+
e("select-object", w);
|
|
2897
2897
|
}
|
|
2898
2898
|
function p() {
|
|
2899
2899
|
e("create-object", n.value), u();
|
|
@@ -2901,106 +2901,106 @@ const an = /* @__PURE__ */ b("div", { tabindex: "0" }, null, -1), nn = ["onKeypr
|
|
|
2901
2901
|
function u() {
|
|
2902
2902
|
e("hide-dropdown");
|
|
2903
2903
|
}
|
|
2904
|
-
function
|
|
2905
|
-
i.value < l.results.length - 1 ? (i.value === -2 && n.value === "" && i.value++, i.value++) : i.value =
|
|
2904
|
+
function b(w) {
|
|
2905
|
+
i.value < l.results.length - 1 ? (i.value === -2 && n.value === "" && i.value++, i.value++) : i.value = w, _();
|
|
2906
2906
|
}
|
|
2907
|
-
function S(
|
|
2908
|
-
i.value >
|
|
2907
|
+
function S(w) {
|
|
2908
|
+
i.value > w ? i.value-- : i.value = l.results.length - 1, _();
|
|
2909
2909
|
}
|
|
2910
|
-
function
|
|
2910
|
+
function N() {
|
|
2911
2911
|
i.value >= 0 && l.results !== void 0 ? f(l.results[i.value].id) : i.value === -1 && p();
|
|
2912
2912
|
}
|
|
2913
|
-
function D(
|
|
2914
|
-
if (
|
|
2913
|
+
function D(w) {
|
|
2914
|
+
if (w.key === "Tab" && w.shiftKey === !0) {
|
|
2915
2915
|
const d = document.getElementsByTagName("input");
|
|
2916
2916
|
let v = -1;
|
|
2917
2917
|
for (let k = 0; k < d.length; k++)
|
|
2918
|
-
d[k] ===
|
|
2918
|
+
d[k] === w.target && (v = k - 1);
|
|
2919
2919
|
v >= 0 && (d[v].focus(), u());
|
|
2920
2920
|
}
|
|
2921
2921
|
}
|
|
2922
2922
|
function _() {
|
|
2923
|
-
var
|
|
2924
|
-
l.results && l.results.length > 1 && ((
|
|
2923
|
+
var w;
|
|
2924
|
+
l.results && l.results.length > 1 && ((w = r.value) == null || w.scrollTo(0, (i.value + 1) * 34 - 34 * 2));
|
|
2925
2925
|
}
|
|
2926
2926
|
function V() {
|
|
2927
|
-
let
|
|
2928
|
-
l.results !== null && l.results.length === 1 && (
|
|
2927
|
+
let w = !1;
|
|
2928
|
+
l.results !== null && l.results.length === 1 && (w = n.value.toUpperCase().trim() === l.results[0].name.toUpperCase().trim()), c.value = l.canCreateNewObject === !0 && l.errorMessage === "" && n.value.trim() !== "" && w === !1;
|
|
2929
2929
|
}
|
|
2930
|
-
function ee(
|
|
2931
|
-
i.value =
|
|
2930
|
+
function ee(w) {
|
|
2931
|
+
i.value = w;
|
|
2932
2932
|
}
|
|
2933
2933
|
function oe() {
|
|
2934
2934
|
l.isVisible === !0 && (n.value = "", s(), je(() => {
|
|
2935
|
-
var
|
|
2936
|
-
return (d = (
|
|
2935
|
+
var w, d;
|
|
2936
|
+
return (d = (w = r.value) == null ? void 0 : w.querySelector("input")) == null ? void 0 : d.focus();
|
|
2937
2937
|
}));
|
|
2938
2938
|
}
|
|
2939
2939
|
return ne(() => l.results, () => V()), ne(() => l.errorMessage, () => V()), ne(() => l.isVisible, () => oe()), Ye(() => {
|
|
2940
|
-
var
|
|
2941
|
-
return (
|
|
2940
|
+
var w;
|
|
2941
|
+
return (w = r.value) == null ? void 0 : w.addEventListener("keydown", D);
|
|
2942
2942
|
}), rl(() => {
|
|
2943
|
-
var
|
|
2944
|
-
return (
|
|
2945
|
-
}), (
|
|
2943
|
+
var w;
|
|
2944
|
+
return (w = r.value) == null ? void 0 : w.removeEventListener("keydown", D);
|
|
2945
|
+
}), (w, d) => {
|
|
2946
2946
|
var v;
|
|
2947
2947
|
return m(), T("div", {
|
|
2948
2948
|
ref_key: "container",
|
|
2949
2949
|
ref: r,
|
|
2950
2950
|
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",
|
|
2951
2951
|
onKeydown: [
|
|
2952
|
-
d[2] || (d[2] =
|
|
2953
|
-
d[3] || (d[3] =
|
|
2952
|
+
d[2] || (d[2] = Ne(re((k) => S(o.value), ["prevent", "stop"]), ["up"])),
|
|
2953
|
+
d[3] || (d[3] = Ne(re((k) => b(o.value), ["prevent", "stop"]), ["down"]))
|
|
2954
2954
|
],
|
|
2955
|
-
onKeyup:
|
|
2955
|
+
onKeyup: Ne(re(N, ["prevent", "stop"]), ["enter"])
|
|
2956
2956
|
}, [
|
|
2957
|
-
|
|
2958
|
-
|
|
2957
|
+
g("div", pn, [
|
|
2958
|
+
E(me, {
|
|
2959
2959
|
modelValue: n.value,
|
|
2960
2960
|
"onUpdate:modelValue": d[0] || (d[0] = (k) => n.value = k),
|
|
2961
2961
|
class: "!cl-mr-0 cl-w-full",
|
|
2962
2962
|
"input-type": "text",
|
|
2963
|
-
"placeholder-text":
|
|
2963
|
+
"placeholder-text": w.searchHint,
|
|
2964
2964
|
onKeyup: s,
|
|
2965
2965
|
onBlur: u
|
|
2966
2966
|
}, null, 8, ["modelValue", "placeholder-text"]),
|
|
2967
|
-
le(
|
|
2968
|
-
[te,
|
|
2967
|
+
le(E(Je, { class: "cl-absolute cl-ml-2 cl-mt-11" }, null, 512), [
|
|
2968
|
+
[te, w.loading]
|
|
2969
2969
|
])
|
|
2970
2970
|
]),
|
|
2971
|
-
|
|
2971
|
+
w.currentObjectName !== "" ? (m(), K(Be, {
|
|
2972
2972
|
key: 0,
|
|
2973
|
-
"show-clear-button":
|
|
2974
|
-
text:
|
|
2975
|
-
onClearObject: d[1] || (d[1] = (k) =>
|
|
2973
|
+
"show-clear-button": w.canClearSelectedObject,
|
|
2974
|
+
text: w.currentObjectName,
|
|
2975
|
+
onClearObject: d[1] || (d[1] = (k) => w.$emit("clear-object"))
|
|
2976
2976
|
}, null, 8, ["show-clear-button", "text"])) : P("", !0),
|
|
2977
|
-
|
|
2977
|
+
w.objectParentType !== "" && w.results !== void 0 && w.results.length > 0 && w.errorMessage === "" ? (m(), K(Be, {
|
|
2978
2978
|
key: 1,
|
|
2979
|
-
text:
|
|
2980
|
-
"additional-text":
|
|
2979
|
+
text: w.objectType,
|
|
2980
|
+
"additional-text": w.objectParentType,
|
|
2981
2981
|
class: "cl-bg-grey-2 cl-mt-1"
|
|
2982
2982
|
}, null, 8, ["text", "additional-text"])) : P("", !0),
|
|
2983
|
-
|
|
2983
|
+
w.results !== null && ((v = w.results) == null ? void 0 : v.length) === 0 && n.value.trim() !== "" && w.canCreateNewObject === !1 && w.errorMessage === "" ? (m(), K(Be, {
|
|
2984
2984
|
key: 2,
|
|
2985
2985
|
text: h(t)("comboBox.noResults", { value: n.value })
|
|
2986
2986
|
}, null, 8, ["text"])) : P("", !0),
|
|
2987
|
-
|
|
2987
|
+
w.errorMessage !== "" ? (m(), K(Be, {
|
|
2988
2988
|
key: 3,
|
|
2989
2989
|
class: "!cl-bg-danger-light cl-border-danger-light cl-rounded cl-text-danger-dark",
|
|
2990
|
-
text: h(t)("comboBox.errorMessage", { error:
|
|
2990
|
+
text: h(t)("comboBox.errorMessage", { error: w.errorMessage })
|
|
2991
2991
|
}, null, 8, ["text"])) : P("", !0),
|
|
2992
2992
|
c.value ? (m(), K(Tl, {
|
|
2993
2993
|
key: 4,
|
|
2994
2994
|
"is-create-new-option": !0,
|
|
2995
|
-
text: h(t)("comboBox.addPrompt", { value: n.value, object:
|
|
2995
|
+
text: h(t)("comboBox.addPrompt", { value: n.value, object: w.objectType }),
|
|
2996
2996
|
index: -1,
|
|
2997
2997
|
"selected-index": i.value,
|
|
2998
2998
|
class: "cl-px-2",
|
|
2999
2999
|
onCreateObject: p,
|
|
3000
3000
|
onOptionHighlighted: ee
|
|
3001
3001
|
}, null, 8, ["text", "selected-index"])) : P("", !0),
|
|
3002
|
-
|
|
3003
|
-
(m(!0), T(J, null, se(
|
|
3002
|
+
w.errorMessage === "" && w.results !== null ? (m(), T("div", mn, [
|
|
3003
|
+
(m(!0), T(J, null, se(w.results, (k, L) => (m(), K(Tl, {
|
|
3004
3004
|
key: L,
|
|
3005
3005
|
option: k,
|
|
3006
3006
|
index: L,
|
|
@@ -3045,7 +3045,7 @@ const an = /* @__PURE__ */ b("div", { tabindex: "0" }, null, -1), nn = ["onKeypr
|
|
|
3045
3045
|
const t = a, n = F(() => t.placeholderText ? t.placeholderText : i("comboBox.emptyHintText", { object: t.objectType })), c = F(() => t.searchHint ? t.searchHint : i("comboBox.searchHint", { object: t.objectType })), { t: i } = ce(), o = R(!1), r = F({
|
|
3046
3046
|
get: () => t.currentObject,
|
|
3047
3047
|
set: (C) => l("update:current-object", C)
|
|
3048
|
-
}), s = R(null), f = R(null), p = F(() => $()), u = R(""),
|
|
3048
|
+
}), s = R(null), f = R(null), p = F(() => $()), u = R(""), b = R(""), S = R(), N = R(!0), D = R(!1);
|
|
3049
3049
|
function _(C) {
|
|
3050
3050
|
var Y, W;
|
|
3051
3051
|
const q = ((Y = B.value) == null ? void 0 : Y.getBoundingClientRect().top) || 0;
|
|
@@ -3055,12 +3055,12 @@ const an = /* @__PURE__ */ b("div", { tabindex: "0" }, null, -1), nn = ["onKeypr
|
|
|
3055
3055
|
u.value = C, l("search", C);
|
|
3056
3056
|
}
|
|
3057
3057
|
function ee(C) {
|
|
3058
|
-
|
|
3058
|
+
b.value = C, l("search-parent", C);
|
|
3059
3059
|
}
|
|
3060
3060
|
function oe() {
|
|
3061
3061
|
r.value = null, _(!1);
|
|
3062
3062
|
}
|
|
3063
|
-
function
|
|
3063
|
+
function w(C) {
|
|
3064
3064
|
const q = d(C);
|
|
3065
3065
|
r.value = q, _(!1);
|
|
3066
3066
|
}
|
|
@@ -3084,7 +3084,7 @@ const an = /* @__PURE__ */ b("div", { tabindex: "0" }, null, -1), nn = ["onKeypr
|
|
|
3084
3084
|
}
|
|
3085
3085
|
function k() {
|
|
3086
3086
|
S.value = {
|
|
3087
|
-
name:
|
|
3087
|
+
name: b.value,
|
|
3088
3088
|
parentId: 0
|
|
3089
3089
|
}, l("create-parent-object", S.value);
|
|
3090
3090
|
}
|
|
@@ -3124,7 +3124,7 @@ const an = /* @__PURE__ */ b("div", { tabindex: "0" }, null, -1), nn = ["onKeypr
|
|
|
3124
3124
|
}
|
|
3125
3125
|
function I() {
|
|
3126
3126
|
let C = !0;
|
|
3127
|
-
u.value === "" && (C = !1), t.objectParentType !== "" && f.value === null && (C = !1),
|
|
3127
|
+
u.value === "" && (C = !1), t.objectParentType !== "" && f.value === null && (C = !1), N.value = C;
|
|
3128
3128
|
}
|
|
3129
3129
|
ne(() => t.objectCreatedResponse, () => L()), ne(() => t.parentObjectCreatedResponse, () => j()), ne(() => u.value, () => I()), ne(() => f.value, () => I()), e({
|
|
3130
3130
|
focus() {
|
|
@@ -3140,8 +3140,8 @@ const an = /* @__PURE__ */ b("div", { tabindex: "0" }, null, -1), nn = ["onKeypr
|
|
|
3140
3140
|
ref: B,
|
|
3141
3141
|
class: "cl-relative"
|
|
3142
3142
|
}, [
|
|
3143
|
-
|
|
3144
|
-
|
|
3143
|
+
g("div", hn, [
|
|
3144
|
+
E(me, {
|
|
3145
3145
|
ref_key: "inputRef",
|
|
3146
3146
|
ref: s,
|
|
3147
3147
|
modelValue: p.value,
|
|
@@ -3155,10 +3155,10 @@ const an = /* @__PURE__ */ b("div", { tabindex: "0" }, null, -1), nn = ["onKeypr
|
|
|
3155
3155
|
_(), C.$emit("focus");
|
|
3156
3156
|
})
|
|
3157
3157
|
}, null, 8, ["modelValue", "class", "placeholder-text"]),
|
|
3158
|
-
le(
|
|
3159
|
-
|
|
3158
|
+
le(g("div", gn, [
|
|
3159
|
+
g("div", bn, [
|
|
3160
3160
|
pe(A(h(i)("comboBox.required")) + " ", 1),
|
|
3161
|
-
|
|
3161
|
+
E(h(H), {
|
|
3162
3162
|
class: "cl-ml-1 cl-mt-1",
|
|
3163
3163
|
icon: "ph:warning"
|
|
3164
3164
|
})
|
|
@@ -3174,7 +3174,7 @@ const an = /* @__PURE__ */ b("div", { tabindex: "0" }, null, -1), nn = ["onKeypr
|
|
|
3174
3174
|
}]),
|
|
3175
3175
|
onClick: q[3] || (q[3] = (W) => _(!1))
|
|
3176
3176
|
}, [
|
|
3177
|
-
|
|
3177
|
+
E(h(H), {
|
|
3178
3178
|
icon: "ph:caret-up-bold",
|
|
3179
3179
|
class: "cl-ml-[4px] cl-mt-[12px]"
|
|
3180
3180
|
})
|
|
@@ -3186,18 +3186,18 @@ const an = /* @__PURE__ */ b("div", { tabindex: "0" }, null, -1), nn = ["onKeypr
|
|
|
3186
3186
|
}]),
|
|
3187
3187
|
onClick: q[2] || (q[2] = (W) => _(!0))
|
|
3188
3188
|
}, [
|
|
3189
|
-
|
|
3189
|
+
E(h(H), {
|
|
3190
3190
|
icon: "ph:caret-down-bold",
|
|
3191
3191
|
class: "cl-ml-[4px] cl-mt-[12px]"
|
|
3192
3192
|
})
|
|
3193
3193
|
], 2))
|
|
3194
3194
|
]),
|
|
3195
|
-
|
|
3195
|
+
E(zl, { size: "small" }, {
|
|
3196
3196
|
title: Q(() => [
|
|
3197
3197
|
pe(A(h(i)("comboBox.createTitle", { object: C.objectType })), 1)
|
|
3198
3198
|
]),
|
|
3199
3199
|
trigger: Q(({ open: W }) => [
|
|
3200
|
-
le(
|
|
3200
|
+
le(E(vn, {
|
|
3201
3201
|
"can-create-new-object": C.canCreateNewObject,
|
|
3202
3202
|
"can-clear-selected-object": C.canClearSelectedObject,
|
|
3203
3203
|
loading: C.loading,
|
|
@@ -3212,7 +3212,7 @@ const an = /* @__PURE__ */ b("div", { tabindex: "0" }, null, -1), nn = ["onKeypr
|
|
|
3212
3212
|
}),
|
|
3213
3213
|
"search-hint": c.value,
|
|
3214
3214
|
onCreateObject: () => C.objectParentType === "" && C.skipObjectCreationModal === !0 ? v() : W(),
|
|
3215
|
-
onSelectObject:
|
|
3215
|
+
onSelectObject: w,
|
|
3216
3216
|
onClearObject: oe,
|
|
3217
3217
|
onSearch: V,
|
|
3218
3218
|
onHideDropdown: q[4] || (q[4] = (ae) => _(!1))
|
|
@@ -3221,8 +3221,8 @@ const an = /* @__PURE__ */ b("div", { tabindex: "0" }, null, -1), nn = ["onKeypr
|
|
|
3221
3221
|
])
|
|
3222
3222
|
]),
|
|
3223
3223
|
footer: Q(({ close: W }) => [
|
|
3224
|
-
|
|
3225
|
-
|
|
3224
|
+
g("div", wn, [
|
|
3225
|
+
E(ye, {
|
|
3226
3226
|
class: "cl-mr-3",
|
|
3227
3227
|
colour: "default",
|
|
3228
3228
|
size: "small",
|
|
@@ -3233,10 +3233,10 @@ const an = /* @__PURE__ */ b("div", { tabindex: "0" }, null, -1), nn = ["onKeypr
|
|
|
3233
3233
|
]),
|
|
3234
3234
|
_: 2
|
|
3235
3235
|
}, 1032, ["onClick"]),
|
|
3236
|
-
|
|
3236
|
+
E(ye, {
|
|
3237
3237
|
colour: "primary",
|
|
3238
3238
|
size: "small",
|
|
3239
|
-
disabled: !
|
|
3239
|
+
disabled: !N.value,
|
|
3240
3240
|
onClick: (ae) => {
|
|
3241
3241
|
v(), W();
|
|
3242
3242
|
}
|
|
@@ -3249,7 +3249,7 @@ const an = /* @__PURE__ */ b("div", { tabindex: "0" }, null, -1), nn = ["onKeypr
|
|
|
3249
3249
|
])
|
|
3250
3250
|
]),
|
|
3251
3251
|
default: Q(() => [
|
|
3252
|
-
|
|
3252
|
+
g("div", yn, [
|
|
3253
3253
|
C.objectParentType ? (m(), K(Y, {
|
|
3254
3254
|
key: 0,
|
|
3255
3255
|
"current-object": f.value,
|
|
@@ -3265,7 +3265,7 @@ const an = /* @__PURE__ */ b("div", { tabindex: "0" }, null, -1), nn = ["onKeypr
|
|
|
3265
3265
|
onSearch: ee,
|
|
3266
3266
|
onCreateObject: k
|
|
3267
3267
|
}, null, 8, ["current-object", "results", "loading", "object-type", "object-created-response", "can-create-new-object", "can-clear-selected-object", "error-message"])) : P("", !0),
|
|
3268
|
-
|
|
3268
|
+
E(me, {
|
|
3269
3269
|
modelValue: u.value,
|
|
3270
3270
|
"onUpdate:modelValue": q[6] || (q[6] = (W) => u.value = W),
|
|
3271
3271
|
label: h(i)("comboBox.createProperty"),
|
|
@@ -3289,20 +3289,20 @@ function $n(a) {
|
|
|
3289
3289
|
const Sn = {}, Cn = { class: "cl-flex cl-flex-wrap cl-left-0 cl-mt-4 cl-w-full" }, On = {
|
|
3290
3290
|
key: 0,
|
|
3291
3291
|
class: "cl-w-full"
|
|
3292
|
-
},
|
|
3292
|
+
}, En = {
|
|
3293
3293
|
key: 1,
|
|
3294
3294
|
class: "cl-leading-10 cl-text-sm cl-w-full"
|
|
3295
|
-
},
|
|
3295
|
+
}, Nn = { class: "cl-float-left" }, Dn = { class: "cl-float-right" };
|
|
3296
3296
|
function Fn(a, e) {
|
|
3297
3297
|
return m(), T("div", Cn, [
|
|
3298
3298
|
a.$slots.default ? (m(), T("div", On, [
|
|
3299
3299
|
U(a.$slots, "default")
|
|
3300
3300
|
])) : P("", !0),
|
|
3301
|
-
a.$slots.left || a.$slots.right ? (m(), T("div",
|
|
3302
|
-
|
|
3301
|
+
a.$slots.left || a.$slots.right ? (m(), T("div", En, [
|
|
3302
|
+
g("span", Nn, [
|
|
3303
3303
|
U(a.$slots, "left")
|
|
3304
3304
|
]),
|
|
3305
|
-
|
|
3305
|
+
g("span", Dn, [
|
|
3306
3306
|
U(a.$slots, "right")
|
|
3307
3307
|
])
|
|
3308
3308
|
])) : P("", !0)
|
|
@@ -3323,7 +3323,7 @@ function In(a) {
|
|
|
3323
3323
|
function $l(a) {
|
|
3324
3324
|
return a.some((e) => ul(e));
|
|
3325
3325
|
}
|
|
3326
|
-
const Rn = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Vn = { class: "cl-gap-1 cl-grid cl-grid-cols-2 cl-justify-end cl-mb-2 lg:cl-flex lg:cl-gap-2" }, qn = { class: "cl-basis-0 cl-col-span-2 cl-flex-grow" }, Mn = /* @__PURE__ */
|
|
3326
|
+
const Rn = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Vn = { class: "cl-gap-1 cl-grid cl-grid-cols-2 cl-justify-end cl-mb-2 lg:cl-flex lg:cl-gap-2" }, qn = { class: "cl-basis-0 cl-col-span-2 cl-flex-grow" }, Mn = /* @__PURE__ */ g("hr", { class: "cl-block cl-border-grey-3 cl-col-span-2 cl-my-4 lg:cl-hidden" }, null, -1), Ln = {
|
|
3327
3327
|
key: 1,
|
|
3328
3328
|
class: "cl-hidden lg:cl-block"
|
|
3329
3329
|
}, jn = { class: "cl-block lg:cl-hidden" }, Pn = /* @__PURE__ */ Z({
|
|
@@ -3340,11 +3340,11 @@ const Rn = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Vn = { class: "cl-gap-1
|
|
|
3340
3340
|
setup(a) {
|
|
3341
3341
|
const e = a, { t: l } = ce(), t = F(() => e.request.filters.some((n) => n.filterValue !== ""));
|
|
3342
3342
|
return (n, c) => (m(), T(J, null, [
|
|
3343
|
-
|
|
3344
|
-
|
|
3343
|
+
g("div", Rn, [
|
|
3344
|
+
g("strong", null, A(h(l)("grid.gridTools")), 1)
|
|
3345
3345
|
]),
|
|
3346
|
-
|
|
3347
|
-
|
|
3346
|
+
g("div", Vn, [
|
|
3347
|
+
g("div", qn, [
|
|
3348
3348
|
U(n.$slots, "additional-grid-actions", de(ve({
|
|
3349
3349
|
loading: n.loading,
|
|
3350
3350
|
editMode: n.editMode
|
|
@@ -3371,8 +3371,8 @@ const Rn = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Vn = { class: "cl-gap-1
|
|
|
3371
3371
|
U(n.$slots, "view-manager")
|
|
3372
3372
|
])),
|
|
3373
3373
|
h($l)(n.columns) || h(In)(n.columns) ? (m(), T(J, { key: 2 }, [
|
|
3374
|
-
|
|
3375
|
-
|
|
3374
|
+
g("div", jn, [
|
|
3375
|
+
E(ye, {
|
|
3376
3376
|
class: "cl-w-full",
|
|
3377
3377
|
size: "small",
|
|
3378
3378
|
disabled: n.loading,
|
|
@@ -3474,7 +3474,7 @@ const Rn = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Vn = { class: "cl-gap-1
|
|
|
3474
3474
|
pe(A(i(r.data[r.column.field], h(ie).DATETIME)), 1)
|
|
3475
3475
|
], 64))
|
|
3476
3476
|
], 64)) : r.column.type === "list" && r.column.field !== void 0 && r.column.listEntries !== void 0 ? (m(), T("span", zn, A(h(t)(((f = r.column.listEntries.find((p) => p.value === r.data[r.column.field])) == null ? void 0 : f.translationKey) ?? "")), 1)) : r.column.type === "number" && r.column.field !== void 0 ? (m(), T("span", Bn, A(h(c)(r.data[r.column.field], r.column.format ?? h(fe).DECIMAL)), 1)) : r.column.field !== void 0 ? (m(), T("span", Un, [
|
|
3477
|
-
|
|
3477
|
+
g("span", {
|
|
3478
3478
|
innerHTML: o()
|
|
3479
3479
|
}, null, 8, xn)
|
|
3480
3480
|
])) : P("", !0);
|
|
@@ -3508,7 +3508,7 @@ const Rn = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Vn = { class: "cl-gap-1
|
|
|
3508
3508
|
"cl-bg-link-lighter": c.value
|
|
3509
3509
|
}])
|
|
3510
3510
|
}, [
|
|
3511
|
-
|
|
3511
|
+
g("span", _n, A(o.column.caption), 1),
|
|
3512
3512
|
o.editMode && o.column.editable === !0 ? U(o.$slots, `${o.column.name}Edit`, de(ue({ key: 0 }, {
|
|
3513
3513
|
cellFocused: () => e("focus"),
|
|
3514
3514
|
column: o.column,
|
|
@@ -3517,7 +3517,7 @@ const Rn = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Vn = { class: "cl-gap-1
|
|
|
3517
3517
|
listEntries: i.value,
|
|
3518
3518
|
searchValue: o.searchValue
|
|
3519
3519
|
})), () => [
|
|
3520
|
-
|
|
3520
|
+
E(Sl, {
|
|
3521
3521
|
column: o.column,
|
|
3522
3522
|
data: o.data,
|
|
3523
3523
|
"time-zone": o.timeZone,
|
|
@@ -3605,12 +3605,12 @@ const Rn = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Vn = { class: "cl-gap-1
|
|
|
3605
3605
|
function i(u) {
|
|
3606
3606
|
n.value.index !== -1 && n.value.index !== u && c(), n.value.index = u;
|
|
3607
3607
|
}
|
|
3608
|
-
function o(u,
|
|
3609
|
-
i(u),
|
|
3608
|
+
function o(u, b) {
|
|
3609
|
+
i(u), b.field !== void 0 && (n.value.record[b.field] = b.value);
|
|
3610
3610
|
}
|
|
3611
3611
|
function r(u) {
|
|
3612
3612
|
if (u !== void 0) {
|
|
3613
|
-
const { [u]:
|
|
3613
|
+
const { [u]: b, ...S } = n.value.record;
|
|
3614
3614
|
n.value.record = {
|
|
3615
3615
|
...S
|
|
3616
3616
|
};
|
|
@@ -3618,14 +3618,14 @@ const Rn = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Vn = { class: "cl-gap-1
|
|
|
3618
3618
|
}
|
|
3619
3619
|
const s = R({});
|
|
3620
3620
|
ne(() => l.data, () => {
|
|
3621
|
-
var u,
|
|
3622
|
-
return s.value = Object.fromEntries(((
|
|
3623
|
-
[
|
|
3621
|
+
var u, b;
|
|
3622
|
+
return s.value = Object.fromEntries(((b = (u = l.data) == null ? void 0 : u.results) == null ? void 0 : b.map((S, N) => [
|
|
3623
|
+
[N],
|
|
3624
3624
|
{
|
|
3625
3625
|
count: 0,
|
|
3626
3626
|
target: null,
|
|
3627
|
-
reset:
|
|
3628
|
-
s.value[
|
|
3627
|
+
reset: El(() => {
|
|
3628
|
+
s.value[N] && (s.value[N].count = 0, s.value[N].target = null);
|
|
3629
3629
|
}, 2500, { immediate: !1 })
|
|
3630
3630
|
}
|
|
3631
3631
|
])) ?? []);
|
|
@@ -3633,21 +3633,21 @@ const Rn = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Vn = { class: "cl-gap-1
|
|
|
3633
3633
|
deep: !0,
|
|
3634
3634
|
immediate: !0
|
|
3635
3635
|
});
|
|
3636
|
-
function f(u,
|
|
3637
|
-
const { currentTarget:
|
|
3638
|
-
l.options.rowSelectionEnabled ? (p(
|
|
3636
|
+
function f(u, b, S) {
|
|
3637
|
+
const { currentTarget: N } = S;
|
|
3638
|
+
l.options.rowSelectionEnabled ? (p(N), e("row-select", b)) : (s.value[u].count++, s.value[u].target = N, s.value[u].count > 1 ? (s.value[u].reset.stop(), s.value[u].count = 0, p(N), s.value[u].target = null, e("row-select", b)) : s.value[u].reset.start());
|
|
3639
3639
|
}
|
|
3640
3640
|
function p(u) {
|
|
3641
3641
|
l.options.highlightRowSelection && (u == null || u.classList.toggle("!cl-bg-link-lighter"));
|
|
3642
3642
|
}
|
|
3643
3643
|
return ne(() => l.editMode, () => {
|
|
3644
3644
|
l.editMode || (c(), n.value.index = -1);
|
|
3645
|
-
}), (u,
|
|
3645
|
+
}), (u, b) => {
|
|
3646
3646
|
var S;
|
|
3647
3647
|
return m(), T("tbody", null, [
|
|
3648
|
-
u.data && ((S = u.data.results) != null && S.length) ? (m(!0), T(J, { key: 0 }, se(u.data.results, (
|
|
3648
|
+
u.data && ((S = u.data.results) != null && S.length) ? (m(!0), T(J, { key: 0 }, se(u.data.results, (N, D) => (m(), K(Gn, {
|
|
3649
3649
|
key: D,
|
|
3650
|
-
data:
|
|
3650
|
+
data: N,
|
|
3651
3651
|
columns: u.columns,
|
|
3652
3652
|
"time-zone": u.timeZone,
|
|
3653
3653
|
"search-value": u.searchValue,
|
|
@@ -3659,7 +3659,7 @@ const Rn = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Vn = { class: "cl-gap-1
|
|
|
3659
3659
|
"hover:cl-bg-link-lighter": u.options.rowSelectionEnabled && u.options.highlightRowSelection && !u.editMode
|
|
3660
3660
|
}]),
|
|
3661
3661
|
onClick: (_) => {
|
|
3662
|
-
u.editMode || f(D,
|
|
3662
|
+
u.editMode || f(D, N, _);
|
|
3663
3663
|
},
|
|
3664
3664
|
onCellFocus: (_) => {
|
|
3665
3665
|
i(D);
|
|
@@ -3676,17 +3676,17 @@ const Rn = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Vn = { class: "cl-gap-1
|
|
|
3676
3676
|
])
|
|
3677
3677
|
}))
|
|
3678
3678
|
]), 1032, ["data", "columns", "time-zone", "search-value", "edit-mode", "class", "onClick", "onCellFocus", "onCellEdit"]))), 128)) : u.loading ? P("", !0) : (m(), T("tr", Kn, [
|
|
3679
|
-
|
|
3679
|
+
g("td", {
|
|
3680
3680
|
colspan: u.columns.length
|
|
3681
3681
|
}, [
|
|
3682
|
-
|
|
3683
|
-
|
|
3684
|
-
u.request.filters.some((
|
|
3685
|
-
|
|
3686
|
-
|
|
3682
|
+
g("div", Wn, [
|
|
3683
|
+
g("strong", Qn, A(h(t)("grid.noData")), 1),
|
|
3684
|
+
u.request.filters.some((N) => N.filterValue !== "") ? (m(), T("div", Yn, [
|
|
3685
|
+
g("div", Jn, A(h(t)("grid.noDataFiltersPresent")), 1),
|
|
3686
|
+
E(ye, {
|
|
3687
3687
|
size: "small",
|
|
3688
3688
|
colour: "danger",
|
|
3689
|
-
onClick:
|
|
3689
|
+
onClick: b[0] || (b[0] = re((N) => u.$emit("clear-filters"), ["prevent"]))
|
|
3690
3690
|
}, {
|
|
3691
3691
|
default: Q(() => [
|
|
3692
3692
|
pe(A(h(t)("grid.clearFilters")), 1)
|
|
@@ -3719,20 +3719,20 @@ const Rn = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Vn = { class: "cl-gap-1
|
|
|
3719
3719
|
return l.data !== null ? Math.ceil((((u = l.data) == null ? void 0 : u.totalRecords) ?? 0) / l.request.pageSize) : 1;
|
|
3720
3720
|
}), i = F(() => {
|
|
3721
3721
|
const u = Array.from(Array(c.value + 1).keys());
|
|
3722
|
-
let
|
|
3722
|
+
let b = [];
|
|
3723
3723
|
if (u.shift(), u.length) {
|
|
3724
3724
|
const S = l.request.pageNumber === c.value || l.request.pageNumber === c.value - 1 ? c.value - 3 : l.request.pageNumber - 1;
|
|
3725
|
-
|
|
3725
|
+
b = u.slice(S, S + 3);
|
|
3726
3726
|
}
|
|
3727
|
-
return
|
|
3727
|
+
return b;
|
|
3728
3728
|
});
|
|
3729
3729
|
function o(u) {
|
|
3730
|
-
const
|
|
3731
|
-
|
|
3730
|
+
const b = he(l.request);
|
|
3731
|
+
b.pageNumber !== u && (b.pageNumber = Math.max(Math.min(Math.trunc(u), c.value), 1), e("update:request", b));
|
|
3732
3732
|
}
|
|
3733
3733
|
function r(u) {
|
|
3734
|
-
const
|
|
3735
|
-
o(
|
|
3734
|
+
const b = parseInt(u == null ? void 0 : u.value) || 1;
|
|
3735
|
+
o(b);
|
|
3736
3736
|
}
|
|
3737
3737
|
const s = [
|
|
3738
3738
|
5,
|
|
@@ -3743,16 +3743,16 @@ const Rn = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Vn = { class: "cl-gap-1
|
|
|
3743
3743
|
200
|
|
3744
3744
|
];
|
|
3745
3745
|
function f(u) {
|
|
3746
|
-
const
|
|
3747
|
-
|
|
3746
|
+
const b = he(l.request);
|
|
3747
|
+
b.pageSize = u, b.pageNumber = 1, e("update:request", b);
|
|
3748
3748
|
}
|
|
3749
3749
|
const p = sl(r, 750);
|
|
3750
|
-
return (u,
|
|
3751
|
-
var S,
|
|
3752
|
-
return (
|
|
3753
|
-
|
|
3754
|
-
|
|
3755
|
-
|
|
3750
|
+
return (u, b) => {
|
|
3751
|
+
var S, N;
|
|
3752
|
+
return (N = (S = u.data) == null ? void 0 : S.results) != null && N.length && u.request ? (m(), T("div", eo, [
|
|
3753
|
+
g("div", lo, [
|
|
3754
|
+
g("span", to, A(h(n)("grid.jumpToPage")), 1),
|
|
3755
|
+
E(me, {
|
|
3756
3756
|
"model-value": u.request.pageNumber,
|
|
3757
3757
|
class: "cl-ml-1 cl-mt-0.5 cl-text-sm",
|
|
3758
3758
|
"input-type": "number",
|
|
@@ -3760,32 +3760,32 @@ const Rn = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Vn = { class: "cl-gap-1
|
|
|
3760
3760
|
"show-label": !1,
|
|
3761
3761
|
min: 1,
|
|
3762
3762
|
max: c.value,
|
|
3763
|
-
onInput:
|
|
3763
|
+
onInput: b[0] || (b[0] = (D) => h(p)(D.target))
|
|
3764
3764
|
}, null, 8, ["model-value", "disabled", "max"])
|
|
3765
3765
|
]),
|
|
3766
|
-
|
|
3767
|
-
|
|
3768
|
-
|
|
3769
|
-
|
|
3766
|
+
g("div", ao, [
|
|
3767
|
+
g("div", no, [
|
|
3768
|
+
g("li", oo, [
|
|
3769
|
+
g("span", ro, A(h(n)("grid.page")), 1)
|
|
3770
3770
|
]),
|
|
3771
|
-
|
|
3772
|
-
|
|
3773
|
-
le(
|
|
3771
|
+
g("ul", io, [
|
|
3772
|
+
g("li", so, A(h(t)(u.request.pageNumber, h(fe).INTEGER)) + " / " + A(h(t)(c.value, h(fe).INTEGER)), 1),
|
|
3773
|
+
le(g("li", {
|
|
3774
3774
|
class: "cl-cursor-pointer cl-mr-1 cl-mt-1 lg:cl-mr-2",
|
|
3775
|
-
onClick:
|
|
3775
|
+
onClick: b[1] || (b[1] = (D) => o(1))
|
|
3776
3776
|
}, [
|
|
3777
|
-
|
|
3777
|
+
E(h(H), {
|
|
3778
3778
|
icon: "ph:caret-double-left",
|
|
3779
3779
|
size: 14
|
|
3780
3780
|
})
|
|
3781
3781
|
], 512), [
|
|
3782
3782
|
[te, u.request.pageNumber > 1]
|
|
3783
3783
|
]),
|
|
3784
|
-
le(
|
|
3784
|
+
le(g("li", {
|
|
3785
3785
|
class: "cl-cursor-pointer cl-mt-1 lg:cl-mr-2 mr-1",
|
|
3786
|
-
onClick:
|
|
3786
|
+
onClick: b[2] || (b[2] = (D) => o(u.request.pageNumber - 1))
|
|
3787
3787
|
}, [
|
|
3788
|
-
|
|
3788
|
+
E(h(H), {
|
|
3789
3789
|
icon: "ph:caret-left",
|
|
3790
3790
|
size: 14
|
|
3791
3791
|
})
|
|
@@ -3800,22 +3800,22 @@ const Rn = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Vn = { class: "cl-gap-1
|
|
|
3800
3800
|
}]),
|
|
3801
3801
|
onClick: (V) => o(D)
|
|
3802
3802
|
}, A(h(t)(D, h(fe).INTEGER)), 11, co))), 128)),
|
|
3803
|
-
le(
|
|
3803
|
+
le(g("li", {
|
|
3804
3804
|
class: "cl-cursor-pointer cl-mr-1 cl-mt-1 lg:cl-mr-2",
|
|
3805
|
-
onClick:
|
|
3805
|
+
onClick: b[3] || (b[3] = (D) => o(u.request.pageNumber + 1))
|
|
3806
3806
|
}, [
|
|
3807
|
-
|
|
3807
|
+
E(h(H), {
|
|
3808
3808
|
icon: "ph:caret-right",
|
|
3809
3809
|
size: 14
|
|
3810
3810
|
})
|
|
3811
3811
|
], 512), [
|
|
3812
3812
|
[te, u.request.pageNumber < c.value]
|
|
3813
3813
|
]),
|
|
3814
|
-
le(
|
|
3814
|
+
le(g("li", {
|
|
3815
3815
|
class: "cl-cursor-pointer cl-mr-1 cl-mt-1 lg:cl-mr-2",
|
|
3816
|
-
onClick:
|
|
3816
|
+
onClick: b[4] || (b[4] = (D) => o(c.value))
|
|
3817
3817
|
}, [
|
|
3818
|
-
|
|
3818
|
+
E(h(H), {
|
|
3819
3819
|
icon: "ph:caret-double-right",
|
|
3820
3820
|
size: 14
|
|
3821
3821
|
})
|
|
@@ -3824,9 +3824,9 @@ const Rn = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Vn = { class: "cl-gap-1
|
|
|
3824
3824
|
])
|
|
3825
3825
|
])
|
|
3826
3826
|
]),
|
|
3827
|
-
|
|
3828
|
-
|
|
3829
|
-
(m(), T(J, null, se(s, (D, _) =>
|
|
3827
|
+
g("ul", uo, [
|
|
3828
|
+
g("li", fo, A(h(n)("grid.pageSize")), 1),
|
|
3829
|
+
(m(), T(J, null, se(s, (D, _) => g("li", {
|
|
3830
3830
|
key: _,
|
|
3831
3831
|
class: z(["cl-cursor-pointer cl-mr-1 lg:cl-mr-2", {
|
|
3832
3832
|
"cl-text-black cl-font-bold": u.request.pageSize === D,
|
|
@@ -3835,9 +3835,9 @@ const Rn = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Vn = { class: "cl-gap-1
|
|
|
3835
3835
|
onClick: (V) => f(D)
|
|
3836
3836
|
}, A(h(t)(D, h(fe).INTEGER)), 11, po)), 64))
|
|
3837
3837
|
]),
|
|
3838
|
-
|
|
3839
|
-
|
|
3840
|
-
|
|
3838
|
+
g("ul", mo, [
|
|
3839
|
+
g("li", vo, A(h(n)("grid.totalRecords")), 1),
|
|
3840
|
+
g("li", ho, A(h(t)(u.data.totalRecords, h(fe).INTEGER)), 1)
|
|
3841
3841
|
])
|
|
3842
3842
|
])
|
|
3843
3843
|
])) : P("", !0);
|
|
@@ -3926,12 +3926,12 @@ const Oo = {
|
|
|
3926
3926
|
"list"
|
|
3927
3927
|
],
|
|
3928
3928
|
key: "equal"
|
|
3929
|
-
},
|
|
3929
|
+
}, Eo = {
|
|
3930
3930
|
method: "contains",
|
|
3931
3931
|
icon: "mdi:format-letter-matches",
|
|
3932
3932
|
description: "Contains",
|
|
3933
3933
|
allowedTypes: ["string"]
|
|
3934
|
-
},
|
|
3934
|
+
}, No = {
|
|
3935
3935
|
method: "lessthan",
|
|
3936
3936
|
icon: "mdi:less-than",
|
|
3937
3937
|
description: "Before",
|
|
@@ -3941,7 +3941,7 @@ const Oo = {
|
|
|
3941
3941
|
],
|
|
3942
3942
|
key: "before"
|
|
3943
3943
|
}, Cl = [
|
|
3944
|
-
|
|
3944
|
+
Eo,
|
|
3945
3945
|
{
|
|
3946
3946
|
method: "notcontains",
|
|
3947
3947
|
icon: "mdi:format-letter-spacing-variant",
|
|
@@ -3973,7 +3973,7 @@ const Oo = {
|
|
|
3973
3973
|
],
|
|
3974
3974
|
key: "notequal"
|
|
3975
3975
|
},
|
|
3976
|
-
|
|
3976
|
+
No,
|
|
3977
3977
|
{
|
|
3978
3978
|
method: "greaterthan",
|
|
3979
3979
|
icon: "mdi:greater-than",
|
|
@@ -4070,7 +4070,7 @@ const Oo = {
|
|
|
4070
4070
|
e("update:filter", r);
|
|
4071
4071
|
}
|
|
4072
4072
|
return (o, r) => (m(), T("div", Do, [
|
|
4073
|
-
|
|
4073
|
+
g("div", Fo, [
|
|
4074
4074
|
c.value ? (m(), K(h(H), {
|
|
4075
4075
|
key: 0,
|
|
4076
4076
|
icon: c.value.icon,
|
|
@@ -4080,14 +4080,14 @@ const Oo = {
|
|
|
4080
4080
|
}])
|
|
4081
4081
|
}, null, 8, ["icon", "class"])) : P("", !0)
|
|
4082
4082
|
]),
|
|
4083
|
-
|
|
4083
|
+
g("div", {
|
|
4084
4084
|
class: z(["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", {
|
|
4085
4085
|
"group-hover:cl-flex group-hover:cl-h-auto group-hover:cl-w-52": o.loading === !1,
|
|
4086
4086
|
"cl-left-0": o.firstHalf,
|
|
4087
4087
|
"cl--left-44": !o.firstHalf
|
|
4088
4088
|
}])
|
|
4089
4089
|
}, [
|
|
4090
|
-
|
|
4090
|
+
g("strong", Ao, A(h(t)("grid.availableMethods")), 1),
|
|
4091
4091
|
(m(!0), T(J, null, se(n.value, (s, f) => {
|
|
4092
4092
|
var p;
|
|
4093
4093
|
return m(), T("span", {
|
|
@@ -4098,7 +4098,7 @@ const Oo = {
|
|
|
4098
4098
|
onClick: re((u) => i(s.method), ["prevent"])
|
|
4099
4099
|
}, [
|
|
4100
4100
|
pe(A(s.description) + " ", 1),
|
|
4101
|
-
|
|
4101
|
+
E(h(H), {
|
|
4102
4102
|
icon: s.icon,
|
|
4103
4103
|
class: "cl-float-right cl-text-grey-4 cl-text-sm"
|
|
4104
4104
|
}, null, 8, ["icon"])
|
|
@@ -4110,7 +4110,7 @@ const Oo = {
|
|
|
4110
4110
|
}), Vo = {
|
|
4111
4111
|
key: 0,
|
|
4112
4112
|
class: "cl-border cl-border-grey-2 cl-flex cl-overflow-hidden cl-rounded-md lg:cl-overflow-visible"
|
|
4113
|
-
}, qo = ["disabled"], Mo = /* @__PURE__ */
|
|
4113
|
+
}, qo = ["disabled"], Mo = /* @__PURE__ */ g("option", { value: void 0 }, null, -1), Lo = ["selected"], jo = ["selected"], Po = ["disabled"], zo = /* @__PURE__ */ g("option", { value: void 0 }, null, -1), Bo = ["value", "selected"], Uo = /* @__PURE__ */ Z({
|
|
4114
4114
|
__name: "cl-ui-grid-filter",
|
|
4115
4115
|
props: {
|
|
4116
4116
|
loading: { type: Boolean },
|
|
@@ -4173,7 +4173,7 @@ const Oo = {
|
|
|
4173
4173
|
set(d) {
|
|
4174
4174
|
let v = null;
|
|
4175
4175
|
if (o.value) {
|
|
4176
|
-
const k = d, L = (k == null ? void 0 : k.filterMethod) &&
|
|
4176
|
+
const k = d, L = (k == null ? void 0 : k.filterMethod) && b(k.filterMethod, k.filterValue, "equal"), j = (k == null ? void 0 : k.filterMethod) && b(k.filterMethod, k.filterValue, "equalorlessthan"), O = (k == null ? void 0 : k.filterMethod) && b(k.filterMethod, k.filterValue, "greaterthan");
|
|
4177
4177
|
if (L) {
|
|
4178
4178
|
let $ = G.fromISO(k.filterValue, {
|
|
4179
4179
|
zone: l.timeZone ?? "UTC"
|
|
@@ -4244,13 +4244,13 @@ const Oo = {
|
|
|
4244
4244
|
p.value = d;
|
|
4245
4245
|
}
|
|
4246
4246
|
});
|
|
4247
|
-
function
|
|
4247
|
+
function b(d, v, k) {
|
|
4248
4248
|
return v !== void 0 && v !== "" && d === k && o.value;
|
|
4249
4249
|
}
|
|
4250
4250
|
const S = F(() => {
|
|
4251
4251
|
var d;
|
|
4252
4252
|
return ((d = p.value) == null ? void 0 : d.filterValue) ?? "";
|
|
4253
|
-
}),
|
|
4253
|
+
}), N = F(() => S.value === "" ? null : S.value), D = F(() => S.value === "" ? null : S.value), _ = F(() => Intl.NumberFormat(t.value).format(1.1).replace(/[0-9]+/g, "")), V = F(() => ul(l.column));
|
|
4254
4254
|
function ee(d, v) {
|
|
4255
4255
|
var O;
|
|
4256
4256
|
let k, L = !1;
|
|
@@ -4273,7 +4273,7 @@ const Oo = {
|
|
|
4273
4273
|
let k, L = (d == null ? void 0 : d.value) ?? v ?? 0;
|
|
4274
4274
|
l.column.format === fe.INTEGER ? (typeof L == "string" && (L = parseInt(L)), k = Math.round(L)) : (typeof L == "string" && (L = parseFloat(L.replace(_.value, "."))), k = L), ee(null, isNaN(k) ? "" : k.toString());
|
|
4275
4275
|
}
|
|
4276
|
-
function
|
|
4276
|
+
function w(d) {
|
|
4277
4277
|
var L;
|
|
4278
4278
|
let v, k = !1;
|
|
4279
4279
|
if (p.value)
|
|
@@ -4298,17 +4298,17 @@ const Oo = {
|
|
|
4298
4298
|
onChange: v[0] || (v[0] = (k) => ee(k.target))
|
|
4299
4299
|
}, [
|
|
4300
4300
|
Mo,
|
|
4301
|
-
|
|
4301
|
+
g("option", {
|
|
4302
4302
|
value: "true",
|
|
4303
4303
|
selected: S.value === "true"
|
|
4304
4304
|
}, A(h(n)("grid.true")), 9, Lo),
|
|
4305
|
-
|
|
4305
|
+
g("option", {
|
|
4306
4306
|
value: "false",
|
|
4307
4307
|
selected: S.value === "false"
|
|
4308
4308
|
}, A(h(n)("grid.false")), 9, jo)
|
|
4309
4309
|
], 40, qo)) : o.value ? (m(), K(me, {
|
|
4310
4310
|
key: 1,
|
|
4311
|
-
"model-value":
|
|
4311
|
+
"model-value": N.value,
|
|
4312
4312
|
class: "!cl-h-[2rem] !cl-text-xs cl-border-none cl-mb-0 cl-w-full lg:!cl-text-base",
|
|
4313
4313
|
disabled: d.loading,
|
|
4314
4314
|
label: d.column.caption,
|
|
@@ -4324,7 +4324,7 @@ const Oo = {
|
|
|
4324
4324
|
"input-type": "dateRange",
|
|
4325
4325
|
"time-zone": d.headerDisplayTimezone,
|
|
4326
4326
|
"quick-date-scope": d.quickDateScope,
|
|
4327
|
-
"onUpdate:modelValue": v[2] || (v[2] = (k) =>
|
|
4327
|
+
"onUpdate:modelValue": v[2] || (v[2] = (k) => w(k))
|
|
4328
4328
|
}, null, 8, ["model-value", "disabled", "time-zone", "quick-date-scope"])) : d.column.type === "number" || d.column.type === "slot" && d.column.slotType === "number" ? (m(), K(me, {
|
|
4329
4329
|
key: 3,
|
|
4330
4330
|
"model-value": S.value,
|
|
@@ -4406,7 +4406,7 @@ const Oo = {
|
|
|
4406
4406
|
}
|
|
4407
4407
|
}
|
|
4408
4408
|
return (r, s) => (m(), T("thead", xo, [
|
|
4409
|
-
|
|
4409
|
+
g("tr", _o, [
|
|
4410
4410
|
(m(!0), T(J, null, se(r.columns, (f, p) => (m(), T("th", {
|
|
4411
4411
|
key: p,
|
|
4412
4412
|
class: z(["cl-text-grey-3 cl-text-sm", {
|
|
@@ -4416,13 +4416,13 @@ const Oo = {
|
|
|
4416
4416
|
}
|
|
4417
4417
|
}, [
|
|
4418
4418
|
pe(A(f.caption) + " ", 1),
|
|
4419
|
-
le(
|
|
4419
|
+
le(E(h(H), {
|
|
4420
4420
|
class: "cl-inline-block",
|
|
4421
4421
|
icon: "ph:caret-up"
|
|
4422
4422
|
}, null, 512), [
|
|
4423
4423
|
[te, c(f, !0)]
|
|
4424
4424
|
]),
|
|
4425
|
-
le(
|
|
4425
|
+
le(E(h(H), {
|
|
4426
4426
|
class: "cl-inline-block",
|
|
4427
4427
|
icon: "ph:caret-down"
|
|
4428
4428
|
}, null, 512), [
|
|
@@ -4430,13 +4430,13 @@ const Oo = {
|
|
|
4430
4430
|
])
|
|
4431
4431
|
], 10, Ho))), 128))
|
|
4432
4432
|
]),
|
|
4433
|
-
|
|
4433
|
+
g("tr", {
|
|
4434
4434
|
class: z(["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", {
|
|
4435
4435
|
"cl-hidden lg:cl-table-row": !r.filterPanelOpen
|
|
4436
4436
|
}])
|
|
4437
4437
|
}, [
|
|
4438
|
-
|
|
4439
|
-
|
|
4438
|
+
g("div", Go, [
|
|
4439
|
+
E(h(H), {
|
|
4440
4440
|
class: "cl-text-grey-4 hover:cl-cursor-pointer hover:cl-text-link-default",
|
|
4441
4441
|
icon: "ph:x",
|
|
4442
4442
|
size: 16,
|
|
@@ -4449,13 +4449,13 @@ const Oo = {
|
|
|
4449
4449
|
"cl-hidden lg:cl-table-cell": !h(ul)(f)
|
|
4450
4450
|
}])
|
|
4451
4451
|
}, [
|
|
4452
|
-
|
|
4452
|
+
g("div", Ko, A(f.caption), 1),
|
|
4453
4453
|
h(xe)(f) ? (m(), T("div", {
|
|
4454
4454
|
key: 0,
|
|
4455
4455
|
class: "cl-col-span-2 cl-gap-1 cl-span lg:cl-hidden",
|
|
4456
4456
|
onClick: (u) => r.loading === !1 ? i(f.field) : void 0
|
|
4457
4457
|
}, [
|
|
4458
|
-
|
|
4458
|
+
g("span", Wo, A(h(t)("grid.sortBy")), 1),
|
|
4459
4459
|
c(f, !0) ? (m(), K(h(H), {
|
|
4460
4460
|
key: 0,
|
|
4461
4461
|
class: "cl-cursor-pointer cl-inline-block",
|
|
@@ -4470,7 +4470,7 @@ const Oo = {
|
|
|
4470
4470
|
icon: "ph:minus"
|
|
4471
4471
|
}))
|
|
4472
4472
|
], 8, Zo)) : P("", !0),
|
|
4473
|
-
|
|
4473
|
+
E(Uo, {
|
|
4474
4474
|
class: "cl-col-span-4",
|
|
4475
4475
|
loading: r.loading,
|
|
4476
4476
|
filter: n.value.filters.filter((u) => u.filterOnColumn === f.field),
|
|
@@ -4517,17 +4517,17 @@ const Oo = {
|
|
|
4517
4517
|
return (i, o) => {
|
|
4518
4518
|
const r = Ol("icon");
|
|
4519
4519
|
return U(i.$slots, "search", de(ve({ searchValue: i.searchValue, performSearch: n })), () => [
|
|
4520
|
-
|
|
4521
|
-
|
|
4520
|
+
g("div", Yo, [
|
|
4521
|
+
E(me, {
|
|
4522
4522
|
"model-value": i.searchValue,
|
|
4523
4523
|
class: "cl-grow",
|
|
4524
4524
|
"input-specific-classes": "!cl-pr-6",
|
|
4525
4525
|
"input-type": "text",
|
|
4526
4526
|
"placeholder-text": i.columns.length > 4 ? h(c)("grid.search") : h(c)("grid.searchSpecific", { columns: i.columns.map((s) => s.caption).join(", ") }),
|
|
4527
|
-
onKeypress: o[0] || (o[0] =
|
|
4527
|
+
onKeypress: o[0] || (o[0] = Ne((s) => n(s.target.value), ["enter"])),
|
|
4528
4528
|
onBlur: o[1] || (o[1] = (s) => n(s.target.value))
|
|
4529
4529
|
}, null, 8, ["model-value", "placeholder-text"]),
|
|
4530
|
-
|
|
4530
|
+
E(r, {
|
|
4531
4531
|
class: "cl-absolute cl-cursor-pointer cl-right-1 cl-text-grey-4 cl-top-3 cl-z-10 hover:cl-text-link-light lg:cl-right-4",
|
|
4532
4532
|
icon: "ph:x-bold",
|
|
4533
4533
|
onClick: o[2] || (o[2] = re((s) => n(""), ["prevent"]))
|
|
@@ -4550,7 +4550,7 @@ const Oo = {
|
|
|
4550
4550
|
f < r.length && f >= 0 && r.splice(f, 0, r.splice(s, 1)[0]);
|
|
4551
4551
|
}
|
|
4552
4552
|
function i(r, s) {
|
|
4553
|
-
const f = he(l.columns), p = (r == null ? void 0 : r.checked) ?? !1, u = f.findIndex((
|
|
4553
|
+
const f = he(l.columns), p = (r == null ? void 0 : r.checked) ?? !1, u = f.findIndex((b) => b.name === s.name);
|
|
4554
4554
|
u >= 0 && (f[u].visible = p), e("update:columns", f);
|
|
4555
4555
|
}
|
|
4556
4556
|
function o(r, s) {
|
|
@@ -4558,7 +4558,7 @@ const Oo = {
|
|
|
4558
4558
|
c(f, r, p), e("update:columns", f);
|
|
4559
4559
|
}
|
|
4560
4560
|
return (r, s) => (m(), T(J, null, [
|
|
4561
|
-
|
|
4561
|
+
E(ye, ue(r.$attrs, {
|
|
4562
4562
|
class: "cl-w-full",
|
|
4563
4563
|
size: "small",
|
|
4564
4564
|
disabled: r.loading,
|
|
@@ -4570,36 +4570,36 @@ const Oo = {
|
|
|
4570
4570
|
_: 1
|
|
4571
4571
|
}, 16, ["disabled"]),
|
|
4572
4572
|
(m(), K(ol, { to: "body" }, [
|
|
4573
|
-
|
|
4573
|
+
E(Se, { name: "slide-left" }, {
|
|
4574
4574
|
default: Q(() => [
|
|
4575
|
-
le(
|
|
4576
|
-
|
|
4577
|
-
|
|
4575
|
+
le(g("div", Xo, [
|
|
4576
|
+
g("div", er, [
|
|
4577
|
+
E(h(H), {
|
|
4578
4578
|
class: "cl-absolute cl-cursor-pointer cl-right-3 cl-text-off-white cl-top-3",
|
|
4579
4579
|
icon: "ph:x",
|
|
4580
4580
|
size: 16,
|
|
4581
4581
|
onClick: s[1] || (s[1] = (f) => n.value = !1)
|
|
4582
4582
|
}),
|
|
4583
|
-
|
|
4584
|
-
|
|
4585
|
-
|
|
4586
|
-
|
|
4587
|
-
|
|
4588
|
-
|
|
4583
|
+
g("h3", lr, A(h(t)("grid.manageView")), 1),
|
|
4584
|
+
g("ul", tr, [
|
|
4585
|
+
g("li", ar, [
|
|
4586
|
+
g("strong", nr, A(h(t)("grid.column")), 1),
|
|
4587
|
+
g("strong", or, A(h(t)("grid.visible")), 1),
|
|
4588
|
+
g("strong", rr, A(h(t)("grid.order")), 1)
|
|
4589
4589
|
]),
|
|
4590
4590
|
(m(!0), T(J, null, se(r.columns, (f, p) => (m(), T("li", {
|
|
4591
4591
|
key: p,
|
|
4592
4592
|
class: "cl-border-b cl-border-grey-2 cl-flex cl-py-2 cl-text-sm cl-w-full"
|
|
4593
4593
|
}, [
|
|
4594
|
-
|
|
4595
|
-
|
|
4596
|
-
|
|
4594
|
+
g("div", ir, A(f.caption), 1),
|
|
4595
|
+
g("div", sr, [
|
|
4596
|
+
E(me, {
|
|
4597
4597
|
"model-value": f.visible === void 0 || f.visible === !0,
|
|
4598
4598
|
"input-type": "checkbox",
|
|
4599
4599
|
onClick: (u) => i(u.target, f)
|
|
4600
4600
|
}, null, 8, ["model-value", "onClick"])
|
|
4601
4601
|
]),
|
|
4602
|
-
|
|
4602
|
+
g("div", cr, [
|
|
4603
4603
|
f.visible === void 0 || f.visible === !0 ? (m(), T(J, { key: 0 }, [
|
|
4604
4604
|
p !== 0 ? (m(), K(h(H), {
|
|
4605
4605
|
key: 0,
|
|
@@ -4646,56 +4646,56 @@ const Oo = {
|
|
|
4646
4646
|
Jl(Bl, n);
|
|
4647
4647
|
const c = F({
|
|
4648
4648
|
get: () => l.columns,
|
|
4649
|
-
set: (
|
|
4650
|
-
}), i = F(() => c.value.filter((
|
|
4649
|
+
set: (w) => e("update:columns", w)
|
|
4650
|
+
}), i = F(() => c.value.filter((w) => w.visible ?? !0)), o = R({});
|
|
4651
4651
|
function r() {
|
|
4652
|
-
const
|
|
4652
|
+
const w = {};
|
|
4653
4653
|
window.innerWidth >= 1024 && c.value.forEach((d) => {
|
|
4654
4654
|
const v = d.width ? `${d.width}px` : "";
|
|
4655
|
-
|
|
4656
|
-
}), o.value =
|
|
4655
|
+
w[`${d.name}`] = `width: ${v}; min-width: ${v};`;
|
|
4656
|
+
}), o.value = w;
|
|
4657
4657
|
}
|
|
4658
|
-
function s(
|
|
4659
|
-
return o.value[
|
|
4658
|
+
function s(w) {
|
|
4659
|
+
return o.value[w] ?? "";
|
|
4660
4660
|
}
|
|
4661
4661
|
Ye(() => {
|
|
4662
4662
|
window.addEventListener("resize", r), r();
|
|
4663
4663
|
}), rl(() => window.removeEventListener("resize", r));
|
|
4664
4664
|
const f = F({
|
|
4665
4665
|
get: () => l.request,
|
|
4666
|
-
set: (
|
|
4666
|
+
set: (w) => e("update:request", w)
|
|
4667
4667
|
});
|
|
4668
4668
|
function p() {
|
|
4669
|
-
const
|
|
4670
|
-
|
|
4669
|
+
const w = he(f.value);
|
|
4670
|
+
w.pageNumber = 1, w.filters = [], V.value = "", f.value = w;
|
|
4671
4671
|
}
|
|
4672
4672
|
const u = sl(() => e("data-request"), 750);
|
|
4673
4673
|
ne(f, u, {
|
|
4674
4674
|
deep: !0,
|
|
4675
4675
|
immediate: !0
|
|
4676
4676
|
});
|
|
4677
|
-
const
|
|
4677
|
+
const b = F(() => l.data), S = R(!1), N = R(!1);
|
|
4678
4678
|
ne(S, () => S.value ? e("edit-start") : e("edit-end"));
|
|
4679
4679
|
const D = F(() => ({
|
|
4680
4680
|
highlightRowSelection: !0,
|
|
4681
4681
|
...l.options
|
|
4682
4682
|
})), _ = F({
|
|
4683
4683
|
get() {
|
|
4684
|
-
const
|
|
4685
|
-
return
|
|
4684
|
+
const w = he(f.value);
|
|
4685
|
+
return w.filters = w.filters.filter((d) => d.filterMethod !== "andcontains" && d.filterOperation !== X.AND_CONTAINS), w;
|
|
4686
4686
|
},
|
|
4687
|
-
set(
|
|
4687
|
+
set(w) {
|
|
4688
4688
|
const d = [
|
|
4689
|
-
...
|
|
4689
|
+
...w.filters,
|
|
4690
4690
|
...f.value.filters.filter((v) => v.filterMethod === "andcontains" || v.filterOperation === X.AND_CONTAINS)
|
|
4691
4691
|
];
|
|
4692
4692
|
f.value = {
|
|
4693
|
-
...
|
|
4693
|
+
...w,
|
|
4694
4694
|
filters: d
|
|
4695
4695
|
};
|
|
4696
4696
|
}
|
|
4697
|
-
}), V = R(((oe = l.request.filters.find((
|
|
4698
|
-
return (
|
|
4697
|
+
}), V = R(((oe = l.request.filters.find((w) => w.filterMethod === "andcontains" || w.filterOperation === X.AND_CONTAINS)) == null ? void 0 : oe.filterValue) ?? ""), ee = F(() => l.columns.filter((w) => (w.type === "string" || w.type === "slot" && w.slotType === "string") && w.searchable));
|
|
4698
|
+
return (w, d) => (m(), T("div", fr, [
|
|
4699
4699
|
ee.value.length > 0 ? (m(), K(Jo, {
|
|
4700
4700
|
key: 0,
|
|
4701
4701
|
"search-value": V.value,
|
|
@@ -4705,94 +4705,94 @@ const Oo = {
|
|
|
4705
4705
|
columns: ee.value
|
|
4706
4706
|
}, {
|
|
4707
4707
|
search: Q((v) => [
|
|
4708
|
-
U(
|
|
4708
|
+
U(w.$slots, "search", de(ve(v)))
|
|
4709
4709
|
]),
|
|
4710
4710
|
_: 3
|
|
4711
4711
|
}, 8, ["search-value", "request", "columns"])) : P("", !0),
|
|
4712
|
-
|
|
4712
|
+
E(Se, { name: "fade" }, {
|
|
4713
4713
|
default: Q(() => [
|
|
4714
|
-
le(
|
|
4715
|
-
|
|
4714
|
+
le(g("div", pr, [
|
|
4715
|
+
E(Je, { class: "after:!cl-h-20 after:!cl-w-20 cl-h-20 cl-w-20" })
|
|
4716
4716
|
], 512), [
|
|
4717
|
-
[te,
|
|
4717
|
+
[te, w.loading]
|
|
4718
4718
|
])
|
|
4719
4719
|
]),
|
|
4720
4720
|
_: 1
|
|
4721
4721
|
}),
|
|
4722
|
-
|
|
4722
|
+
E(Pn, {
|
|
4723
4723
|
"edit-mode": S.value,
|
|
4724
4724
|
"onUpdate:editMode": d[3] || (d[3] = (v) => S.value = v),
|
|
4725
|
-
"filter-panel-open":
|
|
4726
|
-
"onUpdate:filterPanelOpen": d[4] || (d[4] = (v) =>
|
|
4727
|
-
columns:
|
|
4725
|
+
"filter-panel-open": N.value,
|
|
4726
|
+
"onUpdate:filterPanelOpen": d[4] || (d[4] = (v) => N.value = v),
|
|
4727
|
+
columns: w.columns,
|
|
4728
4728
|
options: D.value,
|
|
4729
4729
|
request: f.value,
|
|
4730
|
-
loading:
|
|
4730
|
+
loading: w.loading,
|
|
4731
4731
|
onClearFilters: p
|
|
4732
4732
|
}, {
|
|
4733
4733
|
"additional-grid-actions": Q((v) => [
|
|
4734
|
-
U(
|
|
4734
|
+
U(w.$slots, "additional-grid-actions", de(ve(v)))
|
|
4735
4735
|
]),
|
|
4736
4736
|
"view-manager": Q(() => [
|
|
4737
|
-
|
|
4737
|
+
E(dr, {
|
|
4738
4738
|
columns: c.value,
|
|
4739
4739
|
"onUpdate:columns": d[2] || (d[2] = (v) => c.value = v),
|
|
4740
|
-
loading:
|
|
4740
|
+
loading: w.loading
|
|
4741
4741
|
}, null, 8, ["columns", "loading"])
|
|
4742
4742
|
]),
|
|
4743
4743
|
_: 3
|
|
4744
4744
|
}, 8, ["edit-mode", "filter-panel-open", "columns", "options", "request", "loading"]),
|
|
4745
|
-
|
|
4746
|
-
|
|
4745
|
+
g("div", mr, [
|
|
4746
|
+
g("table", {
|
|
4747
4747
|
class: z(["cl-delay-75 cl-min-h-[276px] cl-overflow-x-auto cl-overscroll-x-none cl-text-left cl-transition-opacity cl-w-full", {
|
|
4748
|
-
"cl-opacity-40 cl-pointer-events-none":
|
|
4748
|
+
"cl-opacity-40 cl-pointer-events-none": w.loading
|
|
4749
4749
|
}])
|
|
4750
4750
|
}, [
|
|
4751
|
-
|
|
4751
|
+
g("colgroup", vr, [
|
|
4752
4752
|
(m(!0), T(J, null, se(i.value, (v, k) => (m(), T("col", {
|
|
4753
4753
|
key: k,
|
|
4754
4754
|
style: Xl(s(v.name)),
|
|
4755
4755
|
span: 1
|
|
4756
4756
|
}, null, 4))), 128))
|
|
4757
4757
|
]),
|
|
4758
|
-
|
|
4758
|
+
E(Qo, {
|
|
4759
4759
|
request: _.value,
|
|
4760
4760
|
"onUpdate:request": d[5] || (d[5] = (v) => _.value = v),
|
|
4761
|
-
"filter-panel-open":
|
|
4762
|
-
"onUpdate:filterPanelOpen": d[6] || (d[6] = (v) =>
|
|
4761
|
+
"filter-panel-open": N.value,
|
|
4762
|
+
"onUpdate:filterPanelOpen": d[6] || (d[6] = (v) => N.value = v),
|
|
4763
4763
|
columns: i.value,
|
|
4764
4764
|
options: D.value,
|
|
4765
|
-
loading:
|
|
4766
|
-
"time-zone":
|
|
4765
|
+
loading: w.loading,
|
|
4766
|
+
"time-zone": w.timeZone,
|
|
4767
4767
|
"header-display-timezone": t.value
|
|
4768
4768
|
}, null, 8, ["request", "filter-panel-open", "columns", "options", "loading", "time-zone", "header-display-timezone"]),
|
|
4769
|
-
|
|
4769
|
+
E(Xn, {
|
|
4770
4770
|
columns: i.value,
|
|
4771
4771
|
request: f.value,
|
|
4772
|
-
data:
|
|
4773
|
-
"time-zone":
|
|
4774
|
-
loading:
|
|
4772
|
+
data: b.value,
|
|
4773
|
+
"time-zone": w.timeZone,
|
|
4774
|
+
loading: w.loading,
|
|
4775
4775
|
"search-value": V.value,
|
|
4776
4776
|
options: D.value,
|
|
4777
4777
|
"edit-mode": S.value,
|
|
4778
4778
|
onClearFilters: p,
|
|
4779
|
-
onRowEdit: d[7] || (d[7] = (v) =>
|
|
4780
|
-
onRowSelect: d[8] || (d[8] = (v) =>
|
|
4779
|
+
onRowEdit: d[7] || (d[7] = (v) => w.$emit("row-edit", v)),
|
|
4780
|
+
onRowSelect: d[8] || (d[8] = (v) => w.$emit("row-select", v))
|
|
4781
4781
|
}, il({ _: 2 }, [
|
|
4782
|
-
se(
|
|
4782
|
+
se(w.$slots, (v, k) => ({
|
|
4783
4783
|
name: k,
|
|
4784
4784
|
fn: Q((L) => [
|
|
4785
|
-
U(
|
|
4785
|
+
U(w.$slots, k, de(ve(L)))
|
|
4786
4786
|
])
|
|
4787
4787
|
}))
|
|
4788
4788
|
]), 1032, ["columns", "request", "data", "time-zone", "loading", "search-value", "options", "edit-mode"])
|
|
4789
4789
|
], 2)
|
|
4790
4790
|
]),
|
|
4791
|
-
|
|
4791
|
+
E(go, {
|
|
4792
4792
|
request: f.value,
|
|
4793
4793
|
"onUpdate:request": d[9] || (d[9] = (v) => f.value = v),
|
|
4794
|
-
loading:
|
|
4795
|
-
data:
|
|
4794
|
+
loading: w.loading,
|
|
4795
|
+
data: w.data
|
|
4796
4796
|
}, null, 8, ["request", "loading", "data"])
|
|
4797
4797
|
]));
|
|
4798
4798
|
}
|
|
@@ -4808,7 +4808,7 @@ const Oo = {
|
|
|
4808
4808
|
(l.isOpen ?? !1) && e("open-click");
|
|
4809
4809
|
}), (n, c) => (m(), T("header", gr, [
|
|
4810
4810
|
U(n.$slots, "logo"),
|
|
4811
|
-
|
|
4811
|
+
g("div", {
|
|
4812
4812
|
ref_key: "headerMenuElement",
|
|
4813
4813
|
ref: t,
|
|
4814
4814
|
class: "cl-cursor-pointer cl-flex cl-flex-nowrap",
|
|
@@ -4842,7 +4842,7 @@ const Oo = {
|
|
|
4842
4842
|
"cl-bg-blue-light": e.colour === "secondary"
|
|
4843
4843
|
}])
|
|
4844
4844
|
}, [
|
|
4845
|
-
|
|
4845
|
+
g("div", yr, [
|
|
4846
4846
|
l.image ? (m(), T("img", {
|
|
4847
4847
|
key: 0,
|
|
4848
4848
|
src: l.image,
|
|
@@ -4854,7 +4854,7 @@ const Oo = {
|
|
|
4854
4854
|
width: "48",
|
|
4855
4855
|
height: "48"
|
|
4856
4856
|
})),
|
|
4857
|
-
|
|
4857
|
+
g("div", {
|
|
4858
4858
|
class: z(["cl-grow cl-hidden cl-my-4 md:cl-block", {
|
|
4859
4859
|
"cl-text-secondary-default": e.colour === "default",
|
|
4860
4860
|
"cl-text-white": e.colour === "secondary"
|
|
@@ -4863,8 +4863,8 @@ const Oo = {
|
|
|
4863
4863
|
l.username ? (m(), T("div", kr, A(l.username), 1)) : P("", !0),
|
|
4864
4864
|
l.group ? (m(), T("div", Tr, A(l.group), 1)) : P("", !0)
|
|
4865
4865
|
], 2),
|
|
4866
|
-
|
|
4867
|
-
|
|
4866
|
+
g("div", $r, [
|
|
4867
|
+
E(h(H), {
|
|
4868
4868
|
class: z(["cl-transform-gpu cl-transition-transform", {
|
|
4869
4869
|
"cl-rotate-180": l.isOpen,
|
|
4870
4870
|
"cl-text-secondary-default": e.colour === "default",
|
|
@@ -4874,9 +4874,9 @@ const Oo = {
|
|
|
4874
4874
|
}, null, 8, ["class"])
|
|
4875
4875
|
])
|
|
4876
4876
|
]),
|
|
4877
|
-
|
|
4877
|
+
E(Se, { name: "fade" }, {
|
|
4878
4878
|
default: Q(() => [
|
|
4879
|
-
le(
|
|
4879
|
+
le(g("div", Sr, [
|
|
4880
4880
|
U(l.$slots, "default")
|
|
4881
4881
|
], 512), [
|
|
4882
4882
|
[te, l.isOpen]
|
|
@@ -4894,17 +4894,17 @@ function Or(a) {
|
|
|
4894
4894
|
let e = Array.isArray(a);
|
|
4895
4895
|
if (e) {
|
|
4896
4896
|
for (const l of a)
|
|
4897
|
-
if (!
|
|
4897
|
+
if (!Er(l)) {
|
|
4898
4898
|
e = !1;
|
|
4899
4899
|
break;
|
|
4900
4900
|
}
|
|
4901
4901
|
}
|
|
4902
4902
|
return e;
|
|
4903
4903
|
}
|
|
4904
|
-
function
|
|
4904
|
+
function Er(a) {
|
|
4905
4905
|
return typeof a.name == "string" && typeof a.nativeName == "string" && typeof a.localeCode == "string";
|
|
4906
4906
|
}
|
|
4907
|
-
const
|
|
4907
|
+
const Nr = {
|
|
4908
4908
|
key: 0,
|
|
4909
4909
|
class: "cl-flex cl-relative cl-select-none cl-w-auto cl-z-30"
|
|
4910
4910
|
}, Dr = { 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" }, Fr = ["data-localename", "data-localecode", "onClick"], Ar = { class: "cl-text-xs" }, Ir = /* @__PURE__ */ Z({
|
|
@@ -4919,39 +4919,39 @@ const Er = {
|
|
|
4919
4919
|
const l = a, { locale: t } = ce(), n = R(!1), c = F(() => l.supportedLanguages.find((s) => s.localeCode === t.value) ?? o(l.supportedLanguages, t.value) ?? l.defaultLangauge), i = F(() => l.supportedLanguages.filter((s) => nl(s)).sort((s, f) => s.nativeName > f.nativeName ? 1 : f.nativeName > s.nativeName ? -1 : 0));
|
|
4920
4920
|
function o(s, f) {
|
|
4921
4921
|
const p = f.split("-")[0];
|
|
4922
|
-
return s.find((
|
|
4922
|
+
return s.find((b) => b.localeCode.split("-")[0] === p) ?? null;
|
|
4923
4923
|
}
|
|
4924
4924
|
function r() {
|
|
4925
4925
|
l.disabled || (n.value = !n.value);
|
|
4926
4926
|
}
|
|
4927
4927
|
return ne(() => l.disabled, (s) => {
|
|
4928
4928
|
s && (n.value = !1);
|
|
4929
|
-
}), (s, f) => c.value !== null && h(nl)(c.value) ? (m(), T("div",
|
|
4930
|
-
|
|
4929
|
+
}), (s, f) => c.value !== null && h(nl)(c.value) ? (m(), T("div", Nr, [
|
|
4930
|
+
g("div", {
|
|
4931
4931
|
class: z(["cl-flex cl-items-center", {
|
|
4932
4932
|
"cl-cursor-pointer": !s.disabled
|
|
4933
4933
|
}]),
|
|
4934
4934
|
onClick: r
|
|
4935
4935
|
}, [
|
|
4936
|
-
|
|
4936
|
+
g("span", {
|
|
4937
4937
|
class: z(["cl-font-semibold cl-text-xs", {
|
|
4938
4938
|
"cl-opacity-50": s.disabled
|
|
4939
4939
|
}])
|
|
4940
4940
|
}, A(c.value.nativeName), 3)
|
|
4941
4941
|
], 2),
|
|
4942
|
-
|
|
4942
|
+
E(Se, { name: "fade" }, {
|
|
4943
4943
|
default: Q(() => [
|
|
4944
|
-
le(
|
|
4944
|
+
le(g("div", Dr, [
|
|
4945
4945
|
(m(!0), T(J, null, se(i.value, (p, u) => (m(), T("div", {
|
|
4946
4946
|
key: u,
|
|
4947
4947
|
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",
|
|
4948
4948
|
"data-localename": p.name,
|
|
4949
4949
|
"data-localecode": p.localeCode,
|
|
4950
|
-
onClick: (
|
|
4950
|
+
onClick: (b) => {
|
|
4951
4951
|
t.value = p.localeCode, r(), e("language-select", p.localeCode);
|
|
4952
4952
|
}
|
|
4953
4953
|
}, [
|
|
4954
|
-
|
|
4954
|
+
g("span", Ar, A(p.nativeName), 1)
|
|
4955
4955
|
], 8, Fr))), 128))
|
|
4956
4956
|
], 512), [
|
|
4957
4957
|
[te, n.value]
|
|
@@ -4987,43 +4987,43 @@ const Er = {
|
|
|
4987
4987
|
e("update:errors", []);
|
|
4988
4988
|
}
|
|
4989
4989
|
function s(p, u) {
|
|
4990
|
-
const
|
|
4990
|
+
const b = {
|
|
4991
4991
|
valid: !0,
|
|
4992
4992
|
message: ""
|
|
4993
4993
|
};
|
|
4994
|
-
return typeof u == "string" && u.trim() === "" && (
|
|
4994
|
+
return typeof u == "string" && u.trim() === "" && (b.valid = !1), b;
|
|
4995
4995
|
}
|
|
4996
4996
|
function f(p, u) {
|
|
4997
4997
|
i.value = p;
|
|
4998
4998
|
}
|
|
4999
4999
|
return (p, u) => (m(), T("div", Rr, [
|
|
5000
|
-
|
|
5000
|
+
g("div", Vr, [
|
|
5001
5001
|
U(p.$slots, "background")
|
|
5002
5002
|
]),
|
|
5003
|
-
|
|
5004
|
-
|
|
5003
|
+
g("form", qr, [
|
|
5004
|
+
g("div", Mr, [
|
|
5005
5005
|
U(p.$slots, "logo")
|
|
5006
5006
|
]),
|
|
5007
5007
|
p.$slots["language-switcher"] ? (m(), T("div", Lr, [
|
|
5008
5008
|
U(p.$slots, "language-switcher")
|
|
5009
5009
|
])) : P("", !0),
|
|
5010
|
-
|
|
5010
|
+
g("div", {
|
|
5011
5011
|
class: z(["cl-gap-y-4 cl-grid cl-grid-cols-1 lg:cl-gap-x-2 lg:cl-grid-cols-8", {
|
|
5012
5012
|
"cl-col-span-7": !p.$slots["language-switcher"],
|
|
5013
5013
|
"cl-col-span-6": p.$slots["language-switcher"]
|
|
5014
5014
|
}])
|
|
5015
5015
|
}, [
|
|
5016
|
-
|
|
5017
|
-
|
|
5018
|
-
|
|
5016
|
+
g("div", jr, [
|
|
5017
|
+
g("div", Pr, [
|
|
5018
|
+
E(h(H), {
|
|
5019
5019
|
class: "cl-absolute cl-left-3 cl-top-2.5 cl-z-10",
|
|
5020
5020
|
icon: "ph:user",
|
|
5021
5021
|
size: 18
|
|
5022
5022
|
}),
|
|
5023
|
-
|
|
5023
|
+
E(me, {
|
|
5024
5024
|
id: "cl-ui-login-usernameinput",
|
|
5025
5025
|
modelValue: t.value,
|
|
5026
|
-
"onUpdate:modelValue": u[0] || (u[0] = (
|
|
5026
|
+
"onUpdate:modelValue": u[0] || (u[0] = (b) => t.value = b),
|
|
5027
5027
|
modelModifiers: { trim: !0 },
|
|
5028
5028
|
class: "!cl-border-2 !cl-mb-1 cl-w-full",
|
|
5029
5029
|
"input-type": "email",
|
|
@@ -5042,33 +5042,33 @@ const Er = {
|
|
|
5042
5042
|
}, null, 8, ["modelValue", "highlight-when-valid", "label", "placeholder-text", "message-when-valid"])
|
|
5043
5043
|
])
|
|
5044
5044
|
]),
|
|
5045
|
-
|
|
5046
|
-
|
|
5047
|
-
|
|
5045
|
+
g("div", zr, [
|
|
5046
|
+
g("div", Br, [
|
|
5047
|
+
E(h(H), {
|
|
5048
5048
|
class: "cl-absolute cl-left-3 cl-top-2.5 cl-z-10",
|
|
5049
5049
|
icon: "ph:lock",
|
|
5050
5050
|
size: 18
|
|
5051
5051
|
}),
|
|
5052
|
-
le(
|
|
5052
|
+
le(E(h(H), {
|
|
5053
5053
|
class: "cl-absolute cl-cursor-pointer cl-right-4 cl-top-2.5 cl-z-10",
|
|
5054
5054
|
icon: "ph:eye",
|
|
5055
5055
|
size: 18,
|
|
5056
|
-
onClick: u[1] || (u[1] = (
|
|
5056
|
+
onClick: u[1] || (u[1] = (b) => c.value = "text")
|
|
5057
5057
|
}, null, 512), [
|
|
5058
5058
|
[te, c.value === "password"]
|
|
5059
5059
|
]),
|
|
5060
|
-
le(
|
|
5060
|
+
le(E(h(H), {
|
|
5061
5061
|
class: "cl-absolute cl-cursor-pointer cl-right-4 cl-top-2.5 cl-z-10",
|
|
5062
5062
|
icon: "ph:eye-slash",
|
|
5063
5063
|
size: 18,
|
|
5064
|
-
onClick: u[2] || (u[2] = (
|
|
5064
|
+
onClick: u[2] || (u[2] = (b) => c.value = "password")
|
|
5065
5065
|
}, null, 512), [
|
|
5066
5066
|
[te, c.value === "text"]
|
|
5067
5067
|
]),
|
|
5068
|
-
|
|
5068
|
+
E(me, {
|
|
5069
5069
|
id: "cl-ui-login-passwordinput",
|
|
5070
5070
|
modelValue: n.value,
|
|
5071
|
-
"onUpdate:modelValue": u[3] || (u[3] = (
|
|
5071
|
+
"onUpdate:modelValue": u[3] || (u[3] = (b) => n.value = b),
|
|
5072
5072
|
class: "!cl-border-2 cl-w-full",
|
|
5073
5073
|
"input-type": c.value,
|
|
5074
5074
|
"highlight-when-valid": n.value !== void 0 && n.value !== "",
|
|
@@ -5083,12 +5083,12 @@ const Er = {
|
|
|
5083
5083
|
}, null, 8, ["modelValue", "input-type", "highlight-when-valid", "label", "placeholder-text"])
|
|
5084
5084
|
])
|
|
5085
5085
|
]),
|
|
5086
|
-
|
|
5086
|
+
g("div", {
|
|
5087
5087
|
class: z(["cl-col-span-2", {
|
|
5088
5088
|
"cl-mt-1.5 cl-mb-1 md:cl-mt-0.5 md:cl-mb-7 lg:cl-mb-0": p.loading
|
|
5089
5089
|
}])
|
|
5090
5090
|
}, [
|
|
5091
|
-
|
|
5091
|
+
E(ye, {
|
|
5092
5092
|
id: "cl-ui-login-loginbutton",
|
|
5093
5093
|
class: "cl-w-full",
|
|
5094
5094
|
colour: "blue",
|
|
@@ -5103,18 +5103,18 @@ const Er = {
|
|
|
5103
5103
|
}, 8, ["loading", "disabled", "onClick"])
|
|
5104
5104
|
], 2)
|
|
5105
5105
|
], 2),
|
|
5106
|
-
|
|
5106
|
+
E(Se, { name: "cl-grow-down" }, {
|
|
5107
5107
|
default: Q(() => {
|
|
5108
|
-
var
|
|
5108
|
+
var b;
|
|
5109
5109
|
return [
|
|
5110
|
-
le(
|
|
5111
|
-
(m(!0), T(J, null, se(p.errors, (S,
|
|
5110
|
+
le(g("span", Ur, [
|
|
5111
|
+
(m(!0), T(J, null, se(p.errors, (S, N) => (m(), T("div", {
|
|
5112
5112
|
id: "cl-ui-login-errors",
|
|
5113
|
-
key:
|
|
5113
|
+
key: N,
|
|
5114
5114
|
class: "cl-font-semibold"
|
|
5115
5115
|
}, A(S), 1))), 128))
|
|
5116
5116
|
], 512), [
|
|
5117
|
-
[te, (
|
|
5117
|
+
[te, (b = p.errors) == null ? void 0 : b.length]
|
|
5118
5118
|
])
|
|
5119
5119
|
];
|
|
5120
5120
|
}),
|
|
@@ -5142,19 +5142,19 @@ const Er = {
|
|
|
5142
5142
|
},
|
|
5143
5143
|
emits: ["pinned-state", "open-state"],
|
|
5144
5144
|
setup(a, { expose: e, emit: l }) {
|
|
5145
|
-
const t = R([]), n = F(() => t.value.filter((
|
|
5146
|
-
function c(
|
|
5147
|
-
let D = t.value.find((_) => _.id ===
|
|
5145
|
+
const t = R([]), n = F(() => t.value.filter((N) => N.open === !0).length > 0);
|
|
5146
|
+
function c(N) {
|
|
5147
|
+
let D = t.value.find((_) => _.id === N);
|
|
5148
5148
|
return D || (D = {
|
|
5149
|
-
id:
|
|
5149
|
+
id: N,
|
|
5150
5150
|
open: !1
|
|
5151
5151
|
}, t.value.push(D)), D.open;
|
|
5152
5152
|
}
|
|
5153
|
-
function i(
|
|
5154
|
-
const D = t.value.find((V) => V.id ===
|
|
5153
|
+
function i(N) {
|
|
5154
|
+
const D = t.value.find((V) => V.id === N);
|
|
5155
5155
|
let _;
|
|
5156
5156
|
D && (D.open = !D.open, D.open && (_ = D.id), t.value.forEach((V) => {
|
|
5157
|
-
V.id !==
|
|
5157
|
+
V.id !== N && (V.open = !1);
|
|
5158
5158
|
})), l("open-state", !!(D != null && D.open), _);
|
|
5159
5159
|
}
|
|
5160
5160
|
const o = ot();
|
|
@@ -5167,47 +5167,47 @@ const Er = {
|
|
|
5167
5167
|
deep: !0
|
|
5168
5168
|
}
|
|
5169
5169
|
);
|
|
5170
|
-
const r = R(!1), s = R(!1), { start: f } =
|
|
5170
|
+
const r = R(!1), s = R(!1), { start: f } = El(() => s.value = !1, 100);
|
|
5171
5171
|
function p() {
|
|
5172
5172
|
r.value = !r.value, l("pinned-state", r.value), s.value = !0, f();
|
|
5173
5173
|
}
|
|
5174
5174
|
const u = R();
|
|
5175
|
-
function
|
|
5176
|
-
p(), typeof
|
|
5175
|
+
function b(N) {
|
|
5176
|
+
p(), typeof N == "number" && i(N);
|
|
5177
5177
|
}
|
|
5178
5178
|
function S() {
|
|
5179
|
-
r.value === !1 && n.value === !0 && (t.value.forEach((
|
|
5180
|
-
|
|
5179
|
+
r.value === !1 && n.value === !0 && (t.value.forEach((N) => {
|
|
5180
|
+
N.open = !1;
|
|
5181
5181
|
}), l("open-state", !1, void 0));
|
|
5182
5182
|
}
|
|
5183
5183
|
return cl(u, S), e({
|
|
5184
5184
|
closeNavigation: S,
|
|
5185
|
-
restorePinnedNavigation:
|
|
5186
|
-
}), (
|
|
5185
|
+
restorePinnedNavigation: b
|
|
5186
|
+
}), (N, D) => (m(), T("div", {
|
|
5187
5187
|
ref_key: "navElement",
|
|
5188
5188
|
ref: u,
|
|
5189
5189
|
class: "cl-flex cl-flex-nowrap cl-relative"
|
|
5190
5190
|
}, [
|
|
5191
|
-
|
|
5191
|
+
g("div", {
|
|
5192
5192
|
id: "group-container",
|
|
5193
5193
|
class: z(["cl-h-full cl-overflow-y-auto cl-overscroll-y-none cl-pb-20 cl-w-20 cl-z-40 xl:cl-pb-0", {
|
|
5194
|
-
"cl-bg-primary-default":
|
|
5195
|
-
"cl-bg-blue-dark":
|
|
5194
|
+
"cl-bg-primary-default": N.colour === "default",
|
|
5195
|
+
"cl-bg-blue-dark": N.colour === "secondary"
|
|
5196
5196
|
}])
|
|
5197
5197
|
}, [
|
|
5198
|
-
U(
|
|
5198
|
+
U(N.$slots, "icon", ue({ navcolour: N.colour }, { groupIsOpen: c, toggleOpen: i }), void 0, !0)
|
|
5199
5199
|
], 2),
|
|
5200
5200
|
s.value ? (m(), T("div", Gr)) : P("", !0),
|
|
5201
|
-
|
|
5201
|
+
E(Se, { name: "slide-right" }, {
|
|
5202
5202
|
default: Q(() => [
|
|
5203
|
-
le(
|
|
5203
|
+
le(g("div", {
|
|
5204
5204
|
class: z(["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", {
|
|
5205
5205
|
"cl-relative": r.value,
|
|
5206
5206
|
"cl-absolute cl-left-20 cl-shadow-lg": !r.value
|
|
5207
5207
|
}])
|
|
5208
5208
|
}, [
|
|
5209
|
-
|
|
5210
|
-
|
|
5209
|
+
g("div", Kr, [
|
|
5210
|
+
g("span", {
|
|
5211
5211
|
class: "cl-absolute cl-cursor-pointer cl-hidden cl-right-0 cl-top-1.5 lg:cl-block",
|
|
5212
5212
|
onClick: D[0] || (D[0] = () => p())
|
|
5213
5213
|
}, [
|
|
@@ -5219,7 +5219,7 @@ const Er = {
|
|
|
5219
5219
|
icon: "ph:push-pin"
|
|
5220
5220
|
}))
|
|
5221
5221
|
]),
|
|
5222
|
-
U(
|
|
5222
|
+
U(N.$slots, "default", de(ve({ groupIsOpen: c })), void 0, !0)
|
|
5223
5223
|
])
|
|
5224
5224
|
], 2), [
|
|
5225
5225
|
[te, n.value]
|
|
@@ -5246,7 +5246,7 @@ const Wr = /* @__PURE__ */ $e(Zr, [["__scopeId", "data-v-2b989df8"]]), Qr = /* @
|
|
|
5246
5246
|
"cl-bg-blue-light": e.open && e.colour === "secondary"
|
|
5247
5247
|
}])
|
|
5248
5248
|
}, [
|
|
5249
|
-
|
|
5249
|
+
E(h(H), {
|
|
5250
5250
|
class: "cl-block",
|
|
5251
5251
|
icon: e.iconValue,
|
|
5252
5252
|
width: "24"
|
|
@@ -5270,7 +5270,7 @@ const Wr = /* @__PURE__ */ $e(Zr, [["__scopeId", "data-v-2b989df8"]]), Qr = /* @
|
|
|
5270
5270
|
e.$slots.title ? (m(), T("div", Yr, [
|
|
5271
5271
|
U(e.$slots, "title")
|
|
5272
5272
|
])) : P("", !0),
|
|
5273
|
-
|
|
5273
|
+
g("div", Jr, [
|
|
5274
5274
|
U(e.$slots, "default")
|
|
5275
5275
|
])
|
|
5276
5276
|
], 2));
|
|
@@ -5284,7 +5284,7 @@ function ni(a, e) {
|
|
|
5284
5284
|
a.$slots.title ? (m(), T("div", ti, [
|
|
5285
5285
|
U(a.$slots, "title")
|
|
5286
5286
|
])) : P("", !0),
|
|
5287
|
-
|
|
5287
|
+
g("span", ai, [
|
|
5288
5288
|
U(a.$slots, "default")
|
|
5289
5289
|
])
|
|
5290
5290
|
]);
|
|
@@ -5325,18 +5325,18 @@ const ci = /* @__PURE__ */ $e(ri, [["render", si]]), ui = { class: "cl-w-full" }
|
|
|
5325
5325
|
}
|
|
5326
5326
|
}
|
|
5327
5327
|
return Ye(() => o()), rl(() => window.removeEventListener("resize", i)), (s, f) => (m(), T("div", ui, [
|
|
5328
|
-
|
|
5328
|
+
g("div", null, [
|
|
5329
5329
|
t.value ? (m(), T("div", {
|
|
5330
5330
|
key: 0,
|
|
5331
5331
|
class: "cl-bg-white cl-cursor-pointer cl-float-left cl-h-11 cl-w-4",
|
|
5332
5332
|
onClick: f[0] || (f[0] = (p) => r("left"))
|
|
5333
5333
|
}, [
|
|
5334
|
-
|
|
5334
|
+
E(h(H), {
|
|
5335
5335
|
icon: "ph:caret-left",
|
|
5336
5336
|
class: "cl-mt-4 cl-text-secondary-default"
|
|
5337
5337
|
})
|
|
5338
5338
|
])) : P("", !0),
|
|
5339
|
-
|
|
5339
|
+
g("div", {
|
|
5340
5340
|
ref_key: "headerContainer",
|
|
5341
5341
|
ref: l,
|
|
5342
5342
|
class: z(["cl-flex cl-overflow-x-auto cl-overscroll-x-none", {
|
|
@@ -5357,7 +5357,7 @@ const ci = /* @__PURE__ */ $e(ri, [["render", si]]), ui = { class: "cl-w-full" }
|
|
|
5357
5357
|
class: "cl-bg-white cl-bottom-12 cl-cursor-pointer cl-float-right cl-h-11 cl-relative cl-w-4",
|
|
5358
5358
|
onClick: f[1] || (f[1] = (p) => r("right"))
|
|
5359
5359
|
}, [
|
|
5360
|
-
|
|
5360
|
+
E(h(H), {
|
|
5361
5361
|
icon: "ph:caret-right",
|
|
5362
5362
|
class: "cl-mt-4 cl-text-secondary-default"
|
|
5363
5363
|
})
|
|
@@ -5408,7 +5408,7 @@ const ci = /* @__PURE__ */ $e(ri, [["render", si]]), ui = { class: "cl-w-full" }
|
|
|
5408
5408
|
onMouseout: r[1] || (r[1] = (s) => n.value = !1),
|
|
5409
5409
|
onFocusin: r[2] || (r[2] = (s) => t.value = !0),
|
|
5410
5410
|
onFocusout: r[3] || (r[3] = (s) => t.value = !1),
|
|
5411
|
-
onKeyup:
|
|
5411
|
+
onKeyup: Ne(re(i, ["self"]), ["enter"])
|
|
5412
5412
|
}, [
|
|
5413
5413
|
U(o.$slots, "default")
|
|
5414
5414
|
], 42, fi));
|
|
@@ -5438,7 +5438,7 @@ const hi = /* @__PURE__ */ $e(mi, [["render", vi]]), gi = [
|
|
|
5438
5438
|
clUiAccordionItem: ft,
|
|
5439
5439
|
clUiApp: wt,
|
|
5440
5440
|
clUiButton: ye,
|
|
5441
|
-
clUiCard:
|
|
5441
|
+
clUiCard: Nt,
|
|
5442
5442
|
clUiComboBox: kn,
|
|
5443
5443
|
clUiFooter: An,
|
|
5444
5444
|
clUiGrid: hr,
|
|
@@ -5501,7 +5501,7 @@ export {
|
|
|
5501
5501
|
ft as clUiAccordionItem,
|
|
5502
5502
|
wt as clUiApp,
|
|
5503
5503
|
ye as clUiButton,
|
|
5504
|
-
|
|
5504
|
+
Nt as clUiCard,
|
|
5505
5505
|
kn as clUiComboBox,
|
|
5506
5506
|
An as clUiFooter,
|
|
5507
5507
|
hr as clUiGrid,
|
|
@@ -5545,7 +5545,7 @@ export {
|
|
|
5545
5545
|
Ht as quickDateNames,
|
|
5546
5546
|
Ai as setCurrentLocale,
|
|
5547
5547
|
Fi as setLocaleDateTimeFormats,
|
|
5548
|
-
|
|
5548
|
+
Ni as setLocaleMessages,
|
|
5549
5549
|
Di as setLocaleNumberFormats,
|
|
5550
5550
|
dl as showNotification,
|
|
5551
5551
|
wo as stringFormats,
|