@citruslime/ui 2.4.7 → 2.4.8-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/citrus-lime-ui.es.js +414 -410
- package/dist/citrus-lime-ui.umd.js +2 -2
- package/dist/style.css +1 -1
- package/package.json +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Icon as U } from "@iconify/vue";
|
|
2
|
-
import { defineComponent as B, ref as I, openBlock as u, createElementBlock as
|
|
2
|
+
import { defineComponent as B, ref as I, openBlock as u, createElementBlock as g, renderSlot as j, normalizeProps as oe, guardReactiveProps as ae, Fragment as D, createElementVNode as f, normalizeClass as _, createVNode as C, unref as p, Transition as ve, withCtx as P, withDirectives as H, mergeProps as re, vShow as Z, createBlock as V, Teleport as Re, renderList as ee, toDisplayString as S, createCommentVNode as N, nextTick as Ce, toHandlers as ol, withModifiers as Q, computed as A, useCssVars as sl, watch as Y, vModelText as nl, onMounted as Ae, vModelDynamic as al, withKeys as ke, onUnmounted as ze, resolveComponent as rl, createTextVNode as te, watchEffect as il, createSlots as Ue, normalizeStyle as cl } from "vue";
|
|
3
3
|
import { generateStringId as ul } from "@citruslime/utils";
|
|
4
4
|
import { onClickOutside as Me, useTimeoutFn as Qe, useDebounceFn as Ye, useWindowSize as dl } from "@vueuse/core";
|
|
5
5
|
import { createI18n as pl, useI18n as se } from "vue-i18n";
|
|
@@ -26,7 +26,7 @@ const ml = { class: "cl-overflow-hidden" }, gl = /* @__PURE__ */ B({
|
|
|
26
26
|
i.id !== d && (i.open = !1);
|
|
27
27
|
}), a.open = !a.open);
|
|
28
28
|
}
|
|
29
|
-
return (d, a) => (u(),
|
|
29
|
+
return (d, a) => (u(), g("div", ml, [
|
|
30
30
|
j(d.$slots, "default", oe(ae({ isItemOpen: l, toggleItem: s })))
|
|
31
31
|
]));
|
|
32
32
|
}
|
|
@@ -45,7 +45,7 @@ const ml = { class: "cl-overflow-hidden" }, gl = /* @__PURE__ */ B({
|
|
|
45
45
|
function l() {
|
|
46
46
|
e.disabled || o("toggle");
|
|
47
47
|
}
|
|
48
|
-
return (s, d) => (u(),
|
|
48
|
+
return (s, d) => (u(), g(D, null, [
|
|
49
49
|
f("div", {
|
|
50
50
|
class: _(["cl-border-b cl-border-grey-1 cl-relative", {
|
|
51
51
|
"cl-bg-grey-0": s.disabled,
|
|
@@ -87,7 +87,7 @@ const ml = { class: "cl-overflow-hidden" }, gl = /* @__PURE__ */ B({
|
|
|
87
87
|
return e;
|
|
88
88
|
}, wl = {}, $l = { class: "cl-border-b cl-border-grey-1 cl-font-semibold cl-pl-14 cl-pr-4 cl-py-2 cl-text-grey-3 cl-text-sm" };
|
|
89
89
|
function kl(t, o) {
|
|
90
|
-
return u(),
|
|
90
|
+
return u(), g("div", $l, [
|
|
91
91
|
j(t.$slots, "default")
|
|
92
92
|
]);
|
|
93
93
|
}
|
|
@@ -121,7 +121,7 @@ const Tl = ["onClick"], Ol = { class: "cl-flex-1 cl-select-none cl-text-ellipsis
|
|
|
121
121
|
"cl-bottom-5 cl-right-5": o.position === "bottom-right"
|
|
122
122
|
}])
|
|
123
123
|
}, [
|
|
124
|
-
(u(!0),
|
|
124
|
+
(u(!0), g(D, null, ee(p(qe), (l, s) => (u(), g("div", re(o.$attrs, {
|
|
125
125
|
key: s,
|
|
126
126
|
class: ["cl-break-words cl-cursor-pointer cl-flex cl-font-semibold cl-group cl-mb-2 cl-overflow-hidden cl-p-4 cl-rounded cl-shadow-lg cl-text-sm", {
|
|
127
127
|
"cl-bg-white": l.colour === "default",
|
|
@@ -149,7 +149,7 @@ const Tl = ["onClick"], Ol = { class: "cl-flex-1 cl-select-none cl-text-ellipsis
|
|
|
149
149
|
removePadding: { type: Boolean, default: !1 }
|
|
150
150
|
},
|
|
151
151
|
setup(t) {
|
|
152
|
-
return (o, e) => (u(),
|
|
152
|
+
return (o, e) => (u(), g(D, null, [
|
|
153
153
|
C(Xe, {
|
|
154
154
|
class: _({
|
|
155
155
|
"first:cl-mt-[4.25rem]": o.$slots.header
|
|
@@ -178,7 +178,7 @@ const Tl = ["onClick"], Ol = { class: "cl-flex-1 cl-select-none cl-text-ellipsis
|
|
|
178
178
|
});
|
|
179
179
|
const ql = {}, Al = { class: "loading-spinner" };
|
|
180
180
|
function Il(t, o) {
|
|
181
|
-
return u(),
|
|
181
|
+
return u(), g("div", Al);
|
|
182
182
|
}
|
|
183
183
|
const Ie = /* @__PURE__ */ me(ql, [["render", Il], ["__scopeId", "data-v-a21dc5d2"]]), Nl = ["disabled"], ge = /* @__PURE__ */ B({
|
|
184
184
|
inheritAttrs: !1,
|
|
@@ -195,7 +195,7 @@ const Ie = /* @__PURE__ */ me(ql, [["render", Il], ["__scopeId", "data-v-a21dc5d
|
|
|
195
195
|
focus() {
|
|
196
196
|
e.value && e.value.focus();
|
|
197
197
|
}
|
|
198
|
-
}), (l, s) => (u(),
|
|
198
|
+
}), (l, s) => (u(), g(D, null, [
|
|
199
199
|
H(C(Ie, { class: "relative" }, null, 512), [
|
|
200
200
|
[Z, l.loading]
|
|
201
201
|
]),
|
|
@@ -240,15 +240,15 @@ const Ie = /* @__PURE__ */ me(ql, [["render", Il], ["__scopeId", "data-v-a21dc5d
|
|
|
240
240
|
hover: { type: Boolean, default: !1 }
|
|
241
241
|
},
|
|
242
242
|
setup(t) {
|
|
243
|
-
return (o, e) => (u(),
|
|
243
|
+
return (o, e) => (u(), g("div", {
|
|
244
244
|
class: _(["cl-border cl-border-transparent cl-overflow-hidden cl-relative cl-rounded-md cl-shadow-lg cl-transition-all", {
|
|
245
245
|
"cl-cursor-pointer hover:cl-shadow-xl hover:cl-border-grey-0": o.hover
|
|
246
246
|
}])
|
|
247
247
|
}, [
|
|
248
|
-
o.$slots.image ? (u(),
|
|
248
|
+
o.$slots.image ? (u(), g("div", Rl, [
|
|
249
249
|
j(o.$slots, "image")
|
|
250
250
|
])) : N("", !0),
|
|
251
|
-
o.$slots.title ? (u(),
|
|
251
|
+
o.$slots.title ? (u(), g("div", {
|
|
252
252
|
key: 1,
|
|
253
253
|
class: _(["cl-border-grey-2 cl-font-normal", {
|
|
254
254
|
"cl-p-2 cl-text-2xl cl-leading-8": o.size === "small",
|
|
@@ -269,7 +269,7 @@ const Ie = /* @__PURE__ */ me(ql, [["render", Il], ["__scopeId", "data-v-a21dc5d
|
|
|
269
269
|
}, [
|
|
270
270
|
j(o.$slots, "default")
|
|
271
271
|
], 2),
|
|
272
|
-
o.$slots.footer ? (u(),
|
|
272
|
+
o.$slots.footer ? (u(), g("div", {
|
|
273
273
|
key: 2,
|
|
274
274
|
class: _(["cl-border-grey-2 cl-border-t", {
|
|
275
275
|
"cl-p-2": o.size === "small",
|
|
@@ -443,16 +443,16 @@ const Ml = {
|
|
|
443
443
|
fallbackWarn: !1,
|
|
444
444
|
warnHtmlMessage: !1
|
|
445
445
|
});
|
|
446
|
-
function
|
|
446
|
+
function Ln(t, o) {
|
|
447
447
|
return fe.global.mergeLocaleMessage(t, o), Ce();
|
|
448
448
|
}
|
|
449
|
-
function
|
|
449
|
+
function Dn(t, o) {
|
|
450
450
|
return fe.global.mergeNumberFormat(t, o), Ce();
|
|
451
451
|
}
|
|
452
|
-
function
|
|
452
|
+
function Pn(t, o) {
|
|
453
453
|
return fe.global.mergeDateTimeFormat(t, o), Ce();
|
|
454
454
|
}
|
|
455
|
-
function
|
|
455
|
+
function Fn(t) {
|
|
456
456
|
return fe.global.locale.value = t, Ce();
|
|
457
457
|
}
|
|
458
458
|
const { t: de } = fe.global;
|
|
@@ -594,7 +594,7 @@ const Hl = { class: "cl-relative" }, xl = ["value", "disabled", "placeholder"],
|
|
|
594
594
|
}
|
|
595
595
|
return o({
|
|
596
596
|
focus: l
|
|
597
|
-
}), (s, d) => (u(),
|
|
597
|
+
}), (s, d) => (u(), g("div", Hl, [
|
|
598
598
|
f("input", re({
|
|
599
599
|
ref_key: "element",
|
|
600
600
|
ref: e
|
|
@@ -613,7 +613,7 @@ const Hl = { class: "cl-relative" }, xl = ["value", "disabled", "placeholder"],
|
|
|
613
613
|
}, null, 8, ["class", "icon"]), [
|
|
614
614
|
[Z, !s.disabled]
|
|
615
615
|
]),
|
|
616
|
-
s.disabled ? N("", !0) : (u(),
|
|
616
|
+
s.disabled ? N("", !0) : (u(), g("div", Zl, [
|
|
617
617
|
s.type !== "time" ? (u(), V(p(U), {
|
|
618
618
|
key: 0,
|
|
619
619
|
class: "cl-cursor-pointer hover:cl-text-link-light",
|
|
@@ -792,7 +792,7 @@ function Kl(t) {
|
|
|
792
792
|
from: "@iconify/vue"
|
|
793
793
|
};
|
|
794
794
|
}
|
|
795
|
-
function
|
|
795
|
+
function Hn() {
|
|
796
796
|
return Kl;
|
|
797
797
|
}
|
|
798
798
|
const Ql = [
|
|
@@ -855,7 +855,7 @@ const Ql = [
|
|
|
855
855
|
}
|
|
856
856
|
});
|
|
857
857
|
const k = I(!1);
|
|
858
|
-
return (n, b) => m.value ? (u(),
|
|
858
|
+
return (n, b) => m.value ? (u(), g("div", oe(re({ key: 0 }, n.$attrs)), [
|
|
859
859
|
f("div", Yl, [
|
|
860
860
|
f("span", {
|
|
861
861
|
class: _(["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", {
|
|
@@ -864,7 +864,7 @@ const Ql = [
|
|
|
864
864
|
}]),
|
|
865
865
|
onClick: b[0] || (b[0] = (h) => r.value = n.disabled ? r.value : n.min)
|
|
866
866
|
}, S(p(s)(n.min, Number.isInteger(n.min) ? p(le).INTEGER : p(le).DECIMAL)), 3),
|
|
867
|
-
typeof r.value == "number" ? (u(),
|
|
867
|
+
typeof r.value == "number" ? (u(), g("div", Jl, [
|
|
868
868
|
k.value ? (u(), V(p(ie), {
|
|
869
869
|
key: 0,
|
|
870
870
|
ref_key: "sliderRef",
|
|
@@ -877,7 +877,7 @@ const Ql = [
|
|
|
877
877
|
max: n.max,
|
|
878
878
|
step: n.step,
|
|
879
879
|
disabled: n.disabled
|
|
880
|
-
}, null, 8, ["modelValue", "min", "max", "step", "disabled"])) : (u(),
|
|
880
|
+
}, null, 8, ["modelValue", "min", "max", "step", "disabled"])) : (u(), g(D, { key: 1 }, [
|
|
881
881
|
H(f("input", {
|
|
882
882
|
ref_key: "sliderRef",
|
|
883
883
|
ref: i,
|
|
@@ -915,7 +915,7 @@ const Ql = [
|
|
|
915
915
|
])
|
|
916
916
|
])
|
|
917
917
|
])
|
|
918
|
-
], 16)) : (u(),
|
|
918
|
+
], 16)) : (u(), g("div", ot, S(p(d)("slider.invalidProps")), 1));
|
|
919
919
|
}
|
|
920
920
|
});
|
|
921
921
|
const nt = /* @__PURE__ */ me(st, [["__scopeId", "data-v-298c940f"]]);
|
|
@@ -1029,25 +1029,25 @@ const it = { class: "cl-flex cl-justify-between" }, ct = { class: "cl-w-full" },
|
|
|
1029
1029
|
setup(t, { expose: o, emit: e }) {
|
|
1030
1030
|
const l = t, s = I(null), d = I(!1), a = I(!1), i = A(F), r = A(() => l.placeholderText.trim() !== "" ? l.placeholderText : l.label), c = I(0), m = A({
|
|
1031
1031
|
get: () => l.modelValue,
|
|
1032
|
-
set: (
|
|
1032
|
+
set: (v) => M(v, !1)
|
|
1033
1033
|
}), k = A({
|
|
1034
1034
|
get: () => l.modelValue,
|
|
1035
|
-
set: (
|
|
1035
|
+
set: (v) => w(v)
|
|
1036
1036
|
}), n = A(() => typeof l.min == "number" ? l.min.toString() : l.min), b = A(() => typeof l.max == "number" ? l.max.toString() : l.max), h = A(() => typeof l.min == "number" || l.min === null ? l.min : parseFloat(l.min)), y = A(() => typeof l.max == "number" || l.max === null ? l.max : parseFloat(l.max)), T = A(() => l.messageWhenValid.trim() !== "" ? l.messageWhenValid : ""), E = I(!0), $ = I(!0), z = I([]), q = A(() => {
|
|
1037
|
-
var
|
|
1037
|
+
var v, R;
|
|
1038
1038
|
return [
|
|
1039
|
-
...((
|
|
1039
|
+
...((v = z.value) == null ? void 0 : v.filter((L) => ((L == null ? void 0 : L.length) ?? 0) > 0)) ?? [],
|
|
1040
1040
|
...((R = l.externalErrors) == null ? void 0 : R.filter((L) => ((L == null ? void 0 : L.length) ?? 0) > 0)) ?? []
|
|
1041
1041
|
].join(`
|
|
1042
1042
|
`);
|
|
1043
1043
|
});
|
|
1044
|
-
async function w(
|
|
1045
|
-
l.validateOn === "input" && await G(
|
|
1044
|
+
async function w(v) {
|
|
1045
|
+
l.validateOn === "input" && await G(v), e("update:model-value", v);
|
|
1046
1046
|
}
|
|
1047
|
-
async function M(
|
|
1048
|
-
l.onInputFunction !== void 0 && (
|
|
1047
|
+
async function M(v, R) {
|
|
1048
|
+
l.onInputFunction !== void 0 && (v = l.onInputFunction(v)), l.validateOn === "change" && ($.value = !1), (R || l.validateOn === "input") && await G(v), e("update:model-value", v);
|
|
1049
1049
|
}
|
|
1050
|
-
function G(
|
|
1050
|
+
function G(v) {
|
|
1051
1051
|
const R = {
|
|
1052
1052
|
message: "",
|
|
1053
1053
|
valid: !0
|
|
@@ -1055,41 +1055,41 @@ const it = { class: "cl-flex cl-justify-between" }, ct = { class: "cl-w-full" },
|
|
|
1055
1055
|
l.customValidationFunction === null || l.customValidationFunction === void 0 ? new Promise((he) => {
|
|
1056
1056
|
he(R);
|
|
1057
1057
|
}) : new Promise((he) => {
|
|
1058
|
-
he(l.customValidationFunction(l.label,
|
|
1058
|
+
he(l.customValidationFunction(l.label, v));
|
|
1059
1059
|
})
|
|
1060
1060
|
];
|
|
1061
|
-
return (typeof
|
|
1061
|
+
return (typeof v == "string" || typeof v == "number") && (L.push(Ll(l.min, l.inputType, l.label, v, l.timeZone)), L.push(Dl(l.max, l.inputType, l.label, v, l.timeZone))), l.isRequired && L.push(Pl(l.label, v)), l.inputType === "email" && typeof v == "string" && L.push(Fl(l.label, v)), Promise.all(L).then((he) => {
|
|
1062
1062
|
const tl = [...he.map((Te) => Te.message)], Ve = he.some((Te) => Te.message.length > 0 && Te.valid === !1) || l.externalErrors.length > 0;
|
|
1063
|
-
$.value = !0, Ve ? (z.value = tl, e("validated", !1,
|
|
1063
|
+
$.value = !0, Ve ? (z.value = tl, e("validated", !1, v)) : (z.value = [], e("validated", !0, v)), E.value = !Ve;
|
|
1064
1064
|
});
|
|
1065
1065
|
}
|
|
1066
1066
|
function K() {
|
|
1067
|
-
let
|
|
1068
|
-
return l.inputType === "color" && m.value && (l.disabled ?
|
|
1067
|
+
let v = "";
|
|
1068
|
+
return l.inputType === "color" && m.value && (l.disabled ? v = "background: #999999" : v = `background: ${m.value};`), v;
|
|
1069
1069
|
}
|
|
1070
|
-
function ue(
|
|
1071
|
-
$e(l.inputType) ? (
|
|
1070
|
+
function ue(v) {
|
|
1071
|
+
$e(l.inputType) ? (v.preventDefault(), e("click", v)) : l.inputType === "checkbox" && e("click", v);
|
|
1072
1072
|
}
|
|
1073
|
-
function Ne(
|
|
1073
|
+
function Ne(v) {
|
|
1074
1074
|
if (s.value) {
|
|
1075
1075
|
s.value.stepUp(), s.value.focus(), M(s.value.valueAsNumber, !1);
|
|
1076
1076
|
const R = {
|
|
1077
1077
|
target: s.value
|
|
1078
1078
|
};
|
|
1079
|
-
e("input", R, s.value.valueAsNumber), e("change",
|
|
1079
|
+
e("input", R, s.value.valueAsNumber), e("change", v, s.value.valueAsNumber);
|
|
1080
1080
|
}
|
|
1081
1081
|
}
|
|
1082
|
-
function je(
|
|
1082
|
+
function je(v) {
|
|
1083
1083
|
if (s.value) {
|
|
1084
1084
|
s.value.stepDown(), s.value.focus(), M(s.value.valueAsNumber, !1);
|
|
1085
1085
|
const R = {
|
|
1086
1086
|
target: s.value
|
|
1087
1087
|
};
|
|
1088
|
-
e("input", R, s.value.valueAsNumber), e("change",
|
|
1088
|
+
e("input", R, s.value.valueAsNumber), e("change", v, s.value.valueAsNumber);
|
|
1089
1089
|
}
|
|
1090
1090
|
}
|
|
1091
|
-
function ye(
|
|
1092
|
-
d.value =
|
|
1091
|
+
function ye(v) {
|
|
1092
|
+
d.value = v;
|
|
1093
1093
|
}
|
|
1094
1094
|
async function be() {
|
|
1095
1095
|
a.value = !0, ye(!1), l.validateOn === "change" && await G(m.value);
|
|
@@ -1097,18 +1097,18 @@ const it = { class: "cl-flex cl-justify-between" }, ct = { class: "cl-w-full" },
|
|
|
1097
1097
|
function we() {
|
|
1098
1098
|
c.value++;
|
|
1099
1099
|
}
|
|
1100
|
-
function O(
|
|
1101
|
-
|
|
1100
|
+
function O(v) {
|
|
1101
|
+
v.target.blur();
|
|
1102
1102
|
}
|
|
1103
1103
|
function F() {
|
|
1104
1104
|
var L;
|
|
1105
|
-
let
|
|
1105
|
+
let v = !0;
|
|
1106
1106
|
const R = i.value;
|
|
1107
|
-
return d.value ?
|
|
1107
|
+
return d.value ? v = R : a.value && ((L = m.value) == null ? void 0 : L.toString().trim()) === "" && l.requiredText.trim() !== "" && (v = !1), !l.hideRequiredAsterisk && v;
|
|
1108
1108
|
}
|
|
1109
|
-
async function ne(
|
|
1110
|
-
const R = xe(
|
|
1111
|
-
l.validateOn === "change" && await G(R), e("change",
|
|
1109
|
+
async function ne(v) {
|
|
1110
|
+
const R = xe(v, l.inputType);
|
|
1111
|
+
l.validateOn === "change" && await G(R), e("change", v, R);
|
|
1112
1112
|
}
|
|
1113
1113
|
async function W() {
|
|
1114
1114
|
await be(), we();
|
|
@@ -1124,14 +1124,14 @@ const it = { class: "cl-flex cl-justify-between" }, ct = { class: "cl-w-full" },
|
|
|
1124
1124
|
}
|
|
1125
1125
|
), o({
|
|
1126
1126
|
focus() {
|
|
1127
|
-
var
|
|
1128
|
-
(
|
|
1127
|
+
var v;
|
|
1128
|
+
(v = s.value) == null || v.focus();
|
|
1129
1129
|
},
|
|
1130
1130
|
blur() {
|
|
1131
|
-
var
|
|
1132
|
-
(
|
|
1131
|
+
var v;
|
|
1132
|
+
(v = s.value) == null || v.blur();
|
|
1133
1133
|
}
|
|
1134
|
-
}), (
|
|
1134
|
+
}), (v, R) => (u(), g("div", re({ ...v.$attrs, id: void 0 }, {
|
|
1135
1135
|
key: c.value,
|
|
1136
1136
|
class: "cl-align-top cl-border-none cl-inline-block cl-text-left"
|
|
1137
1137
|
}), [
|
|
@@ -1141,47 +1141,47 @@ const it = { class: "cl-flex cl-justify-between" }, ct = { class: "cl-w-full" },
|
|
|
1141
1141
|
}, [
|
|
1142
1142
|
f("div", it, [
|
|
1143
1143
|
f("div", ct, [
|
|
1144
|
-
H(f("label", { class: "cl-block cl-mb-1 cl-text-grey-4 cl-text-xs cl-tracking-widest" }, S(
|
|
1145
|
-
[Z,
|
|
1144
|
+
H(f("label", { class: "cl-block cl-mb-1 cl-text-grey-4 cl-text-xs cl-tracking-widest" }, S(v.label), 513), [
|
|
1145
|
+
[Z, v.showLabel && v.label !== ""]
|
|
1146
1146
|
])
|
|
1147
1147
|
]),
|
|
1148
|
-
|
|
1149
|
-
|
|
1148
|
+
v.isRequired && i.value ? (u(), g("label", ut, " * ")) : N("", !0),
|
|
1149
|
+
v.isRequired && !i.value && v.requiredText.length ? (u(), g("label", dt, S(v.requiredText), 1)) : N("", !0)
|
|
1150
1150
|
]),
|
|
1151
|
-
|
|
1151
|
+
v.inputType !== "range" && !p(He)(v.inputType) ? (u(), g("div", pt, [
|
|
1152
1152
|
H(f("input", re({
|
|
1153
1153
|
ref_key: "inputElement",
|
|
1154
1154
|
ref: s,
|
|
1155
1155
|
"onUpdate:modelValue": R[0] || (R[0] = (L) => m.value = L)
|
|
1156
|
-
},
|
|
1156
|
+
}, v.$attrs, {
|
|
1157
1157
|
class: ["!cl-mb-1 cl-block cl-border cl-duration-300 cl-h-full cl-transition cl-w-full focus:cl-outline-none", {
|
|
1158
|
-
"hover:!cl-border-grey-3":
|
|
1159
|
-
"!cl-cursor-default":
|
|
1158
|
+
"hover:!cl-border-grey-3": v.disabled === !1 && !p($e)(v.inputType),
|
|
1159
|
+
"!cl-cursor-default": v.disabled,
|
|
1160
1160
|
"!cl-border-danger-default": !E.value,
|
|
1161
|
-
"!cl-border-primary-default": E.value &&
|
|
1162
|
-
"cl-border-grey-0 focus:cl-border-blue-light": E.value && !p($e)(
|
|
1163
|
-
"!cl-p-2":
|
|
1164
|
-
"cl-p-3 cl-rounded-lg": !p($e)(
|
|
1165
|
-
[`${
|
|
1161
|
+
"!cl-border-primary-default": E.value && v.highlightWhenValid,
|
|
1162
|
+
"cl-border-grey-0 focus:cl-border-blue-light": E.value && !p($e)(v.inputType),
|
|
1163
|
+
"!cl-p-2": v.inputType === "checkbox" || v.inputType === "radio",
|
|
1164
|
+
"cl-p-3 cl-rounded-lg": !p($e)(v.inputType),
|
|
1165
|
+
[`${v.inputSpecificClasses}`]: v.inputSpecificClasses !== ""
|
|
1166
1166
|
}],
|
|
1167
1167
|
style: K(),
|
|
1168
|
-
type:
|
|
1169
|
-
disabled:
|
|
1170
|
-
min:
|
|
1171
|
-
max:
|
|
1172
|
-
minlength:
|
|
1173
|
-
maxlength:
|
|
1174
|
-
step:
|
|
1168
|
+
type: v.inputType,
|
|
1169
|
+
disabled: v.disabled,
|
|
1170
|
+
min: v.min ?? void 0,
|
|
1171
|
+
max: v.max ?? void 0,
|
|
1172
|
+
minlength: v.min !== null && p(Fe)(v.inputType) ? v.min : void 0,
|
|
1173
|
+
maxlength: v.max !== null && p(Fe)(v.inputType) ? v.max : void 0,
|
|
1174
|
+
step: v.step,
|
|
1175
1175
|
placeholder: r.value,
|
|
1176
|
-
accept:
|
|
1177
|
-
name:
|
|
1178
|
-
autocomplete:
|
|
1176
|
+
accept: v.fileExtensions,
|
|
1177
|
+
name: v.group,
|
|
1178
|
+
autocomplete: v.autocomplete,
|
|
1179
1179
|
onClick: R[1] || (R[1] = (L) => ue(L)),
|
|
1180
1180
|
onFocus: R[2] || (R[2] = (L) => e("focus")),
|
|
1181
1181
|
onBlur: Q(W, ["self"]),
|
|
1182
1182
|
onMousewheelPassive: O,
|
|
1183
1183
|
onInput: R[3] || (R[3] = (L) => {
|
|
1184
|
-
e("input", L, p(xe)(L,
|
|
1184
|
+
e("input", L, p(xe)(L, v.inputType));
|
|
1185
1185
|
}),
|
|
1186
1186
|
onChange: ne
|
|
1187
1187
|
}), null, 16, ft), [
|
|
@@ -1192,7 +1192,7 @@ const it = { class: "cl-flex cl-justify-between" }, ct = { class: "cl-w-full" },
|
|
|
1192
1192
|
duration: 300
|
|
1193
1193
|
}, {
|
|
1194
1194
|
default: P(() => [
|
|
1195
|
-
|
|
1195
|
+
v.inputType === "number" && !v.disabled && v.showArrows ? H((u(), g("div", mt, [
|
|
1196
1196
|
C(p(U), {
|
|
1197
1197
|
icon: "ph:caret-up-bold",
|
|
1198
1198
|
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",
|
|
@@ -1213,26 +1213,26 @@ const it = { class: "cl-flex cl-justify-between" }, ct = { class: "cl-w-full" },
|
|
|
1213
1213
|
]),
|
|
1214
1214
|
_: 1
|
|
1215
1215
|
})
|
|
1216
|
-
])) : p(He)(
|
|
1216
|
+
])) : p(He)(v.inputType) ? (u(), V(p(Wl), re({ key: 1 }, v.$attrs, {
|
|
1217
1217
|
ref_key: "inputElement",
|
|
1218
1218
|
ref: s,
|
|
1219
1219
|
date: k.value,
|
|
1220
1220
|
"onUpdate:date": R[6] || (R[6] = (L) => k.value = L),
|
|
1221
1221
|
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", {
|
|
1222
|
-
"hover:cl-border-grey-3": !
|
|
1222
|
+
"hover:cl-border-grey-3": !v.disabled,
|
|
1223
1223
|
"!cl-border-danger-default": !E.value,
|
|
1224
|
-
"!cl-border-primary-default": E.value &&
|
|
1224
|
+
"!cl-border-primary-default": E.value && v.highlightWhenValid
|
|
1225
1225
|
}],
|
|
1226
|
-
disabled:
|
|
1227
|
-
required:
|
|
1228
|
-
type: p(rt)(
|
|
1229
|
-
"time-zone":
|
|
1226
|
+
disabled: v.disabled,
|
|
1227
|
+
required: v.isRequired,
|
|
1228
|
+
type: p(rt)(v.inputType),
|
|
1229
|
+
"time-zone": v.timeZone,
|
|
1230
1230
|
min: n.value,
|
|
1231
1231
|
max: b.value,
|
|
1232
1232
|
placeholder: r.value,
|
|
1233
1233
|
onBlur: Q(be, ["self"]),
|
|
1234
1234
|
onFocus: R[7] || (R[7] = (L) => e("focus"))
|
|
1235
|
-
}), null, 16, ["date", "class", "disabled", "required", "type", "time-zone", "min", "max", "placeholder", "onBlur"])) :
|
|
1235
|
+
}), null, 16, ["date", "class", "disabled", "required", "type", "time-zone", "min", "max", "placeholder", "onBlur"])) : v.inputType === "range" && typeof m.value == "number" ? (u(), g("div", gt, [
|
|
1236
1236
|
C(p(nt), {
|
|
1237
1237
|
ref_key: "inputElement",
|
|
1238
1238
|
ref: s,
|
|
@@ -1240,20 +1240,23 @@ const it = { class: "cl-flex cl-justify-between" }, ct = { class: "cl-w-full" },
|
|
|
1240
1240
|
"onUpdate:value": R[8] || (R[8] = (L) => m.value = L),
|
|
1241
1241
|
min: h.value ?? 0,
|
|
1242
1242
|
max: y.value ?? 1e3,
|
|
1243
|
-
step:
|
|
1243
|
+
step: v.step,
|
|
1244
1244
|
"enforce-step": !0,
|
|
1245
|
-
disabled:
|
|
1245
|
+
disabled: v.disabled,
|
|
1246
1246
|
onBlur: Q(be, ["self"]),
|
|
1247
1247
|
onFocus: R[9] || (R[9] = (L) => e("focus"))
|
|
1248
1248
|
}, null, 8, ["value", "min", "max", "step", "disabled", "onBlur"])
|
|
1249
1249
|
])) : N("", !0)
|
|
1250
1250
|
], 32),
|
|
1251
|
-
E.value && T.value && $.value ? (u(),
|
|
1252
|
-
!E.value && q.value.length > 0 &&
|
|
1251
|
+
E.value && T.value && $.value ? (u(), g("div", vt, S(T.value), 1)) : N("", !0),
|
|
1252
|
+
!E.value && q.value.length > 0 && v.showValidationMessages && $.value ? (u(), g("div", bt, S(q.value), 1)) : N("", !0)
|
|
1253
1253
|
], 16));
|
|
1254
1254
|
}
|
|
1255
1255
|
});
|
|
1256
|
-
const ie = /* @__PURE__ */ me(ht, [["__scopeId", "data-v-e205e4b1"]]), yt = { 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" }, wt = ["onKeypress"], $t = {
|
|
1256
|
+
const ie = /* @__PURE__ */ me(ht, [["__scopeId", "data-v-e205e4b1"]]), yt = { 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" }, wt = ["onKeypress"], $t = {
|
|
1257
|
+
key: 0,
|
|
1258
|
+
class: "cl-mt-1 cl-opacity-60 cl-text-primary-default"
|
|
1259
|
+
}, kt = { class: "cl-overflow-y-auto cl-overscroll-y-none cl-p-2 cl-w-full" }, el = /* @__PURE__ */ B({
|
|
1257
1260
|
inheritAttrs: !1,
|
|
1258
1261
|
__name: "cl-ui-modal",
|
|
1259
1262
|
props: {
|
|
@@ -1272,7 +1275,7 @@ const ie = /* @__PURE__ */ me(ht, [["__scopeId", "data-v-e205e4b1"]]), yt = { cl
|
|
|
1272
1275
|
function d(a) {
|
|
1273
1276
|
a.key === "Escape" && s();
|
|
1274
1277
|
}
|
|
1275
|
-
return (a, i) => (u(),
|
|
1278
|
+
return (a, i) => (u(), g(D, null, [
|
|
1276
1279
|
j(a.$slots, "trigger", oe(ae({ open: l }))),
|
|
1277
1280
|
(u(), V(Re, { to: "body" }, [
|
|
1278
1281
|
C(ve, { name: "fade" }, {
|
|
@@ -1288,7 +1291,8 @@ const ie = /* @__PURE__ */ me(ht, [["__scopeId", "data-v-e205e4b1"]]), yt = { cl
|
|
|
1288
1291
|
}), [
|
|
1289
1292
|
H(f("div", {
|
|
1290
1293
|
class: _(["cl-absolute cl-cursor-pointer cl-right-4 cl-top-4 cl-transition-colors cl-w-3", {
|
|
1291
|
-
"cl-text-white hover:cl-text-off-white": a.headerColour === "secondary"
|
|
1294
|
+
"cl-text-white hover:cl-text-off-white": a.headerColour === "secondary",
|
|
1295
|
+
"cl-text-secondary hover:cl-text-off-white": a.headerColour === "primary",
|
|
1292
1296
|
"cl-text-black hover:cl-text-grey-7": a.headerColour === "white"
|
|
1293
1297
|
}]),
|
|
1294
1298
|
tabindex: 0,
|
|
@@ -1300,15 +1304,15 @@ const ie = /* @__PURE__ */ me(ht, [["__scopeId", "data-v-e205e4b1"]]), yt = { cl
|
|
|
1300
1304
|
[Z, !a.preventClose]
|
|
1301
1305
|
]),
|
|
1302
1306
|
f("div", {
|
|
1303
|
-
class: _(["cl-leading-[2.75rem] cl-min-h-12 cl-overflow-hidden cl-pl-
|
|
1304
|
-
"cl-border-b cl-border-grey-2": a.headerColour === "white",
|
|
1307
|
+
class: _(["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", {
|
|
1305
1308
|
"cl-bg-secondary-default cl-text-white": a.headerColour === "secondary",
|
|
1306
|
-
"cl-bg-primary-default cl-text-
|
|
1309
|
+
"cl-bg-primary-default cl-text-secondary": a.headerColour === "primary"
|
|
1307
1310
|
}])
|
|
1308
1311
|
}, [
|
|
1309
|
-
j(a.$slots, "title")
|
|
1312
|
+
j(a.$slots, "title"),
|
|
1313
|
+
a.headerColour === "white" ? (u(), g("hr", $t)) : N("", !0)
|
|
1310
1314
|
], 2),
|
|
1311
|
-
f("div",
|
|
1315
|
+
f("div", kt, [
|
|
1312
1316
|
j(a.$slots, "default", oe(ae({ close: s })))
|
|
1313
1317
|
]),
|
|
1314
1318
|
j(a.$slots, "footer", oe(ae({ close: s })))
|
|
@@ -1322,7 +1326,7 @@ const ie = /* @__PURE__ */ me(ht, [["__scopeId", "data-v-e205e4b1"]]), yt = { cl
|
|
|
1322
1326
|
]))
|
|
1323
1327
|
], 64));
|
|
1324
1328
|
}
|
|
1325
|
-
}),
|
|
1329
|
+
}), Ct = { class: "cl-bg-grey-0 cl-flex cl-p-1 cl-text-left" }, Tt = {
|
|
1326
1330
|
key: 0,
|
|
1327
1331
|
class: "cl-w-1/2"
|
|
1328
1332
|
}, Oe = /* @__PURE__ */ B({
|
|
@@ -1336,8 +1340,8 @@ const ie = /* @__PURE__ */ me(ht, [["__scopeId", "data-v-e205e4b1"]]), yt = { cl
|
|
|
1336
1340
|
"clear-object": null
|
|
1337
1341
|
},
|
|
1338
1342
|
setup(t) {
|
|
1339
|
-
return (o, e) => (u(),
|
|
1340
|
-
o.additionalText !== "" ? (u(),
|
|
1343
|
+
return (o, e) => (u(), g("div", Ct, [
|
|
1344
|
+
o.additionalText !== "" ? (u(), g("div", Tt, S(o.additionalText), 1)) : N("", !0),
|
|
1341
1345
|
f("div", {
|
|
1342
1346
|
class: _({
|
|
1343
1347
|
"cl-w-1/2": o.additionalText !== "",
|
|
@@ -1357,10 +1361,10 @@ const ie = /* @__PURE__ */ me(ht, [["__scopeId", "data-v-e205e4b1"]]), yt = { cl
|
|
|
1357
1361
|
])
|
|
1358
1362
|
]));
|
|
1359
1363
|
}
|
|
1360
|
-
}),
|
|
1364
|
+
}), Ot = {
|
|
1361
1365
|
key: 0,
|
|
1362
1366
|
class: "cl-w-1/2"
|
|
1363
|
-
},
|
|
1367
|
+
}, St = { class: "cl-float-right cl-py-1" }, Ze = /* @__PURE__ */ B({
|
|
1364
1368
|
__name: "cl-ui-combo-box-selectable",
|
|
1365
1369
|
props: {
|
|
1366
1370
|
isCreateNewOption: { type: Boolean, default: !1 },
|
|
@@ -1394,7 +1398,7 @@ const ie = /* @__PURE__ */ me(ht, [["__scopeId", "data-v-e205e4b1"]]), yt = { cl
|
|
|
1394
1398
|
}
|
|
1395
1399
|
return Y(() => e.selectedIndex, () => r()), (c, m) => {
|
|
1396
1400
|
var k, n;
|
|
1397
|
-
return u(),
|
|
1401
|
+
return u(), g("div", {
|
|
1398
1402
|
class: _(["cl-cursor-pointer cl-duration-75 cl-flex cl-p-1 cl-text-left cl-transition-colors", {
|
|
1399
1403
|
"cl-bg-white": d.value === !1,
|
|
1400
1404
|
"cl-bg-link-light cl-text-white cl-opacity-90": d.value && c.isCreateNewOption === !1,
|
|
@@ -1404,14 +1408,14 @@ const ie = /* @__PURE__ */ me(ht, [["__scopeId", "data-v-e205e4b1"]]), yt = { cl
|
|
|
1404
1408
|
onMousemove: m[0] || (m[0] = (b) => i(!0)),
|
|
1405
1409
|
onMouseleave: m[1] || (m[1] = (b) => i(!1))
|
|
1406
1410
|
}, [
|
|
1407
|
-
c.option !== null && ((k = c.option) == null ? void 0 : k.parentId) !== 0 && ((n = c.option) == null ? void 0 : n.parentId) !== void 0 ? (u(),
|
|
1411
|
+
c.option !== null && ((k = c.option) == null ? void 0 : k.parentId) !== 0 && ((n = c.option) == null ? void 0 : n.parentId) !== void 0 ? (u(), g("div", Ot, S(s.value), 1)) : N("", !0),
|
|
1408
1412
|
f("div", {
|
|
1409
1413
|
class: _({
|
|
1410
1414
|
"cl-w-1/2": s.value !== "",
|
|
1411
1415
|
"cl-w-full": s.value === ""
|
|
1412
1416
|
})
|
|
1413
1417
|
}, S(l.value), 3),
|
|
1414
|
-
H(f("div",
|
|
1418
|
+
H(f("div", St, [
|
|
1415
1419
|
C(p(U), {
|
|
1416
1420
|
class: _(["cl-transition-colors", {
|
|
1417
1421
|
"cl-text-white": d.value,
|
|
@@ -1425,7 +1429,7 @@ const ie = /* @__PURE__ */ me(ht, [["__scopeId", "data-v-e205e4b1"]]), yt = { cl
|
|
|
1425
1429
|
], 34);
|
|
1426
1430
|
};
|
|
1427
1431
|
}
|
|
1428
|
-
}),
|
|
1432
|
+
}), Et = ["onKeyup"], qt = { class: "cl-bg-white cl-flex cl-p-2 cl-pb-1 cl-sticky cl-top-0 cl-w-full cl-z-10" }, At = { key: 5 }, It = /* @__PURE__ */ B({
|
|
1429
1433
|
__name: "cl-ui-combo-box-search",
|
|
1430
1434
|
props: {
|
|
1431
1435
|
loading: { type: Boolean, default: !1 },
|
|
@@ -1503,7 +1507,7 @@ const ie = /* @__PURE__ */ me(ht, [["__scopeId", "data-v-e205e4b1"]]), yt = { cl
|
|
|
1503
1507
|
return (w = r.value) == null ? void 0 : w.removeEventListener("keydown", T);
|
|
1504
1508
|
}), (w, M) => {
|
|
1505
1509
|
var G;
|
|
1506
|
-
return u(),
|
|
1510
|
+
return u(), g("div", {
|
|
1507
1511
|
ref_key: "container",
|
|
1508
1512
|
ref: r,
|
|
1509
1513
|
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",
|
|
@@ -1513,7 +1517,7 @@ const ie = /* @__PURE__ */ me(ht, [["__scopeId", "data-v-e205e4b1"]]), yt = { cl
|
|
|
1513
1517
|
],
|
|
1514
1518
|
onKeyup: ke(Q(y, ["prevent", "stop"]), ["enter"])
|
|
1515
1519
|
}, [
|
|
1516
|
-
f("div",
|
|
1520
|
+
f("div", qt, [
|
|
1517
1521
|
C(ie, {
|
|
1518
1522
|
modelValue: s.value,
|
|
1519
1523
|
"onUpdate:modelValue": M[0] || (M[0] = (K) => s.value = K),
|
|
@@ -1558,8 +1562,8 @@ const ie = /* @__PURE__ */ me(ht, [["__scopeId", "data-v-e205e4b1"]]), yt = { cl
|
|
|
1558
1562
|
onCreateObject: k,
|
|
1559
1563
|
onOptionHighlighted: z
|
|
1560
1564
|
}, null, 8, ["text", "selected-index"])) : N("", !0),
|
|
1561
|
-
w.errorMessage === "" && w.results !== null ? (u(),
|
|
1562
|
-
(u(!0),
|
|
1565
|
+
w.errorMessage === "" && w.results !== null ? (u(), g("div", At, [
|
|
1566
|
+
(u(!0), g(D, null, ee(w.results, (K, ue) => (u(), V(Ze, {
|
|
1563
1567
|
key: ue,
|
|
1564
1568
|
option: K,
|
|
1565
1569
|
index: ue,
|
|
@@ -1569,10 +1573,10 @@ const ie = /* @__PURE__ */ me(ht, [["__scopeId", "data-v-e205e4b1"]]), yt = { cl
|
|
|
1569
1573
|
onOptionHighlighted: z
|
|
1570
1574
|
}, null, 8, ["option", "index", "selected-index"]))), 128))
|
|
1571
1575
|
])) : N("", !0)
|
|
1572
|
-
], 40,
|
|
1576
|
+
], 40, Et);
|
|
1573
1577
|
};
|
|
1574
1578
|
}
|
|
1575
|
-
}),
|
|
1579
|
+
}), Nt = { class: "cl-flex" }, jt = { class: "cl-relative cl-right-20 cl-top-0.5" }, _t = { class: "cl-absolute cl-flex cl-float-right cl-font-semibold cl-mt-2 cl-text-danger-default cl-text-sm cl-z-10" }, Rt = { class: "cl-min-h-[16rem] cl-mx-4" }, zt = { class: "cl-p-2 cl-text-right cl-w-full" }, Ut = /* @__PURE__ */ B({
|
|
1576
1580
|
__name: "cl-ui-combo-box",
|
|
1577
1581
|
props: {
|
|
1578
1582
|
loading: { type: Boolean, default: !1 },
|
|
@@ -1662,7 +1666,7 @@ const ie = /* @__PURE__ */ me(ht, [["__scopeId", "data-v-e205e4b1"]]), yt = { cl
|
|
|
1662
1666
|
});
|
|
1663
1667
|
}
|
|
1664
1668
|
function je() {
|
|
1665
|
-
var F, ne, W,
|
|
1669
|
+
var F, ne, W, v, R;
|
|
1666
1670
|
De({
|
|
1667
1671
|
message: a("comboBox.createSuccessful", { object: l.objectType, name: ((F = l.objectCreatedResponse) == null ? void 0 : F.name) ?? "" }),
|
|
1668
1672
|
colour: "primary",
|
|
@@ -1671,7 +1675,7 @@ const ie = /* @__PURE__ */ me(ht, [["__scopeId", "data-v-e205e4b1"]]), yt = { cl
|
|
|
1671
1675
|
let O = "";
|
|
1672
1676
|
m.value && m.value.id === ((ne = l.objectCreatedResponse) == null ? void 0 : ne.parentId) && (O = m.value.name), r.value = {
|
|
1673
1677
|
id: ((W = l.objectCreatedResponse) == null ? void 0 : W.id) ?? 0,
|
|
1674
|
-
name: ((
|
|
1678
|
+
name: ((v = l.objectCreatedResponse) == null ? void 0 : v.name) ?? "",
|
|
1675
1679
|
parentId: ((R = l.objectCreatedResponse) == null ? void 0 : R.parentId) ?? 0,
|
|
1676
1680
|
parentName: O
|
|
1677
1681
|
};
|
|
@@ -1693,12 +1697,12 @@ const ie = /* @__PURE__ */ me(ht, [["__scopeId", "data-v-e205e4b1"]]), yt = { cl
|
|
|
1693
1697
|
const we = I();
|
|
1694
1698
|
return Me(we, () => i.value ? E(!1) : ""), (O, F) => {
|
|
1695
1699
|
const ne = rl("cl-ui-combo-box", !0);
|
|
1696
|
-
return u(),
|
|
1700
|
+
return u(), g("div", {
|
|
1697
1701
|
ref_key: "outsideRef",
|
|
1698
1702
|
ref: we,
|
|
1699
1703
|
class: "cl-relative"
|
|
1700
1704
|
}, [
|
|
1701
|
-
f("div",
|
|
1705
|
+
f("div", Nt, [
|
|
1702
1706
|
C(ie, {
|
|
1703
1707
|
ref_key: "inputRef",
|
|
1704
1708
|
ref: c,
|
|
@@ -1713,8 +1717,8 @@ const ie = /* @__PURE__ */ me(ht, [["__scopeId", "data-v-e205e4b1"]]), yt = { cl
|
|
|
1713
1717
|
E(), O.$emit("focus");
|
|
1714
1718
|
})
|
|
1715
1719
|
}, null, 8, ["modelValue", "class", "placeholder-text"]),
|
|
1716
|
-
H(f("div",
|
|
1717
|
-
f("div",
|
|
1720
|
+
H(f("div", jt, [
|
|
1721
|
+
f("div", _t, [
|
|
1718
1722
|
te(S(p(a)("comboBox.required")) + " ", 1),
|
|
1719
1723
|
C(p(U), {
|
|
1720
1724
|
class: "cl-ml-1 cl-mt-1",
|
|
@@ -1724,7 +1728,7 @@ const ie = /* @__PURE__ */ me(ht, [["__scopeId", "data-v-e205e4b1"]]), yt = { cl
|
|
|
1724
1728
|
], 512), [
|
|
1725
1729
|
[Z, O.required && O.disabled === !1 && O.currentObject === null]
|
|
1726
1730
|
]),
|
|
1727
|
-
i.value ? (u(),
|
|
1731
|
+
i.value ? (u(), g("div", {
|
|
1728
1732
|
key: 1,
|
|
1729
1733
|
class: _(["cl-bg-white cl-border cl-border-grey-1 cl-float-right cl-h-10 cl-rounded cl-rounded-l-none cl-text-grey-3 cl-transition-colors cl-w-[27px] hover:cl-bg-link-light hover:cl-opacity-90 hover:cl-text-white", {
|
|
1730
1734
|
"cl-cursor-default": O.disabled,
|
|
@@ -1736,7 +1740,7 @@ const ie = /* @__PURE__ */ me(ht, [["__scopeId", "data-v-e205e4b1"]]), yt = { cl
|
|
|
1736
1740
|
icon: "ph:caret-up-bold",
|
|
1737
1741
|
class: "cl-ml-[5px] cl-mt-[12px]"
|
|
1738
1742
|
})
|
|
1739
|
-
], 2)) : (u(),
|
|
1743
|
+
], 2)) : (u(), g("div", {
|
|
1740
1744
|
key: 0,
|
|
1741
1745
|
class: _(["cl-bg-white cl-border cl-border-grey-1 cl-float-right cl-h-10 cl-rounded cl-rounded-l-none cl-text-grey-3 cl-transition-colors cl-w-[27px] hover:cl-bg-link-light hover:cl-opacity-90 hover:cl-text-white", {
|
|
1742
1746
|
"cl-cursor-default": O.disabled,
|
|
@@ -1755,7 +1759,7 @@ const ie = /* @__PURE__ */ me(ht, [["__scopeId", "data-v-e205e4b1"]]), yt = { cl
|
|
|
1755
1759
|
te(S(p(a)("comboBox.createTitle", { object: O.objectType })), 1)
|
|
1756
1760
|
]),
|
|
1757
1761
|
trigger: P(({ open: W }) => [
|
|
1758
|
-
H(C(
|
|
1762
|
+
H(C(It, {
|
|
1759
1763
|
"can-create-new-object": O.canCreateNewObject,
|
|
1760
1764
|
"can-clear-selected-object": O.canClearSelectedObject,
|
|
1761
1765
|
loading: O.loading,
|
|
@@ -1773,13 +1777,13 @@ const ie = /* @__PURE__ */ me(ht, [["__scopeId", "data-v-e205e4b1"]]), yt = { cl
|
|
|
1773
1777
|
onSelectObject: w,
|
|
1774
1778
|
onClearObject: q,
|
|
1775
1779
|
onSearch: $,
|
|
1776
|
-
onHideDropdown: F[4] || (F[4] = (
|
|
1780
|
+
onHideDropdown: F[4] || (F[4] = (v) => E(!1))
|
|
1777
1781
|
}, null, 8, ["can-create-new-object", "can-clear-selected-object", "loading", "results", "object-type", "object-parent-type", "error-message", "current-object-name", "is-visible", "class", "search-hint", "onCreateObject"]), [
|
|
1778
1782
|
[Z, i.value]
|
|
1779
1783
|
])
|
|
1780
1784
|
]),
|
|
1781
1785
|
footer: P(({ close: W }) => [
|
|
1782
|
-
f("div",
|
|
1786
|
+
f("div", zt, [
|
|
1783
1787
|
C(ge, {
|
|
1784
1788
|
class: "cl-mr-3",
|
|
1785
1789
|
colour: "default",
|
|
@@ -1795,7 +1799,7 @@ const ie = /* @__PURE__ */ me(ht, [["__scopeId", "data-v-e205e4b1"]]), yt = { cl
|
|
|
1795
1799
|
colour: "primary",
|
|
1796
1800
|
size: "small",
|
|
1797
1801
|
disabled: !y.value,
|
|
1798
|
-
onClick: (
|
|
1802
|
+
onClick: (v) => {
|
|
1799
1803
|
G(), W();
|
|
1800
1804
|
}
|
|
1801
1805
|
}, {
|
|
@@ -1807,7 +1811,7 @@ const ie = /* @__PURE__ */ me(ht, [["__scopeId", "data-v-e205e4b1"]]), yt = { cl
|
|
|
1807
1811
|
])
|
|
1808
1812
|
]),
|
|
1809
1813
|
default: P(() => [
|
|
1810
|
-
f("div",
|
|
1814
|
+
f("div", Rt, [
|
|
1811
1815
|
O.objectParentType ? (u(), V(ne, {
|
|
1812
1816
|
key: 0,
|
|
1813
1817
|
"current-object": m.value,
|
|
@@ -1838,35 +1842,35 @@ const ie = /* @__PURE__ */ me(ht, [["__scopeId", "data-v-e205e4b1"]]), yt = { cl
|
|
|
1838
1842
|
};
|
|
1839
1843
|
}
|
|
1840
1844
|
});
|
|
1841
|
-
function
|
|
1845
|
+
function Mt(t) {
|
|
1842
1846
|
return typeof t.id == "number" && typeof t.name == "string";
|
|
1843
1847
|
}
|
|
1844
|
-
function
|
|
1848
|
+
function Bt(t) {
|
|
1845
1849
|
return typeof t.name == "string";
|
|
1846
1850
|
}
|
|
1847
|
-
const
|
|
1851
|
+
const Vt = {}, Lt = { class: "cl-flex cl-flex-wrap cl-left-0 cl-mt-4 cl-w-full" }, Dt = {
|
|
1848
1852
|
key: 0,
|
|
1849
1853
|
class: "cl-w-full"
|
|
1850
|
-
},
|
|
1854
|
+
}, Pt = {
|
|
1851
1855
|
key: 1,
|
|
1852
1856
|
class: "cl-leading-10 cl-text-sm cl-w-full"
|
|
1853
|
-
},
|
|
1854
|
-
function
|
|
1855
|
-
return u(),
|
|
1856
|
-
t.$slots.default ? (u(),
|
|
1857
|
+
}, Ft = { class: "cl-float-left" }, Ht = { class: "cl-float-right" };
|
|
1858
|
+
function xt(t, o) {
|
|
1859
|
+
return u(), g("div", Lt, [
|
|
1860
|
+
t.$slots.default ? (u(), g("div", Dt, [
|
|
1857
1861
|
j(t.$slots, "default")
|
|
1858
1862
|
])) : N("", !0),
|
|
1859
|
-
t.$slots.left || t.$slots.right ? (u(),
|
|
1860
|
-
f("span",
|
|
1863
|
+
t.$slots.left || t.$slots.right ? (u(), g("div", Pt, [
|
|
1864
|
+
f("span", Ft, [
|
|
1861
1865
|
j(t.$slots, "left")
|
|
1862
1866
|
]),
|
|
1863
|
-
f("span",
|
|
1867
|
+
f("span", Ht, [
|
|
1864
1868
|
j(t.$slots, "right")
|
|
1865
1869
|
])
|
|
1866
1870
|
])) : N("", !0)
|
|
1867
1871
|
]);
|
|
1868
1872
|
}
|
|
1869
|
-
const
|
|
1873
|
+
const Zt = /* @__PURE__ */ me(Vt, [["render", xt]]);
|
|
1870
1874
|
function Ee(t) {
|
|
1871
1875
|
const o = t.type !== "slot" || t.slotType !== void 0 && t.field !== void 0, e = t.sortable ?? !0;
|
|
1872
1876
|
return o && e;
|
|
@@ -1875,16 +1879,16 @@ function Be(t) {
|
|
|
1875
1879
|
const o = t.type !== "slot" || t.slotType !== void 0 && t.field !== void 0, e = t.filterable ?? !0;
|
|
1876
1880
|
return o && e;
|
|
1877
1881
|
}
|
|
1878
|
-
function
|
|
1882
|
+
function Gt(t) {
|
|
1879
1883
|
return t.some((o) => Ee(o));
|
|
1880
1884
|
}
|
|
1881
1885
|
function Ge(t) {
|
|
1882
1886
|
return t.some((o) => Be(o));
|
|
1883
1887
|
}
|
|
1884
|
-
const
|
|
1888
|
+
const Wt = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Kt = { class: "cl-gap-1 cl-grid cl-grid-cols-2 cl-justify-end cl-mb-2 lg:cl-flex lg:cl-gap-2" }, Qt = { class: "cl-basis-0 cl-col-span-2 cl-flex-grow" }, Yt = /* @__PURE__ */ f("hr", { class: "cl-block cl-border-grey-3 cl-col-span-2 cl-my-4 lg:cl-hidden" }, null, -1), Jt = {
|
|
1885
1889
|
key: 1,
|
|
1886
1890
|
class: "cl-hidden lg:cl-block"
|
|
1887
|
-
},
|
|
1891
|
+
}, Xt = { class: "cl-block lg:cl-hidden" }, eo = /* @__PURE__ */ B({
|
|
1888
1892
|
__name: "cl-ui-grid-action-row",
|
|
1889
1893
|
props: {
|
|
1890
1894
|
editMode: { type: Boolean },
|
|
@@ -1897,18 +1901,18 @@ const Gt = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Wt = { class: "cl-gap-1
|
|
|
1897
1901
|
emits: ["update:edit-mode", "update:filterPanelOpen", "clear-filters"],
|
|
1898
1902
|
setup(t) {
|
|
1899
1903
|
const o = t, { t: e } = se(), l = A(() => o.request.filters.some((s) => s.filterValue !== ""));
|
|
1900
|
-
return (s, d) => (u(),
|
|
1901
|
-
f("div",
|
|
1904
|
+
return (s, d) => (u(), g(D, null, [
|
|
1905
|
+
f("div", Wt, [
|
|
1902
1906
|
f("strong", null, S(p(e)("grid.gridTools")), 1)
|
|
1903
1907
|
]),
|
|
1904
|
-
f("div",
|
|
1905
|
-
f("div",
|
|
1908
|
+
f("div", Kt, [
|
|
1909
|
+
f("div", Qt, [
|
|
1906
1910
|
j(s.$slots, "additional-grid-actions", oe(ae({
|
|
1907
1911
|
loading: s.loading,
|
|
1908
1912
|
editMode: s.editMode
|
|
1909
1913
|
})))
|
|
1910
1914
|
]),
|
|
1911
|
-
|
|
1915
|
+
Yt,
|
|
1912
1916
|
s.columns.some((a) => a.editable) ? (u(), V(ge, {
|
|
1913
1917
|
key: 0,
|
|
1914
1918
|
size: "small",
|
|
@@ -1916,19 +1920,19 @@ const Gt = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Wt = { class: "cl-gap-1
|
|
|
1916
1920
|
onClick: d[0] || (d[0] = Q((a) => s.$emit("update:edit-mode", !s.editMode), ["prevent"]))
|
|
1917
1921
|
}, {
|
|
1918
1922
|
default: P(() => [
|
|
1919
|
-
s.editMode ? (u(),
|
|
1923
|
+
s.editMode ? (u(), g(D, { key: 0 }, [
|
|
1920
1924
|
te(S(p(e)("grid.finishEditing")), 1)
|
|
1921
|
-
], 64)) : (u(),
|
|
1925
|
+
], 64)) : (u(), g(D, { key: 1 }, [
|
|
1922
1926
|
te(S(p(e)("grid.editData")), 1)
|
|
1923
1927
|
], 64))
|
|
1924
1928
|
]),
|
|
1925
1929
|
_: 1
|
|
1926
1930
|
})) : N("", !0),
|
|
1927
|
-
s.options.hideViewManager ? N("", !0) : (u(),
|
|
1931
|
+
s.options.hideViewManager ? N("", !0) : (u(), g("div", Jt, [
|
|
1928
1932
|
j(s.$slots, "view-manager")
|
|
1929
1933
|
])),
|
|
1930
|
-
p(Ge)(s.columns) || p(
|
|
1931
|
-
f("div",
|
|
1934
|
+
p(Ge)(s.columns) || p(Gt)(s.columns) ? (u(), g(D, { key: 2 }, [
|
|
1935
|
+
f("div", Xt, [
|
|
1932
1936
|
C(ge, {
|
|
1933
1937
|
class: "cl-w-full",
|
|
1934
1938
|
size: "small",
|
|
@@ -1959,16 +1963,16 @@ const Gt = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Wt = { class: "cl-gap-1
|
|
|
1959
1963
|
])
|
|
1960
1964
|
], 64));
|
|
1961
1965
|
}
|
|
1962
|
-
}),
|
|
1966
|
+
}), lo = {
|
|
1963
1967
|
key: 3,
|
|
1964
1968
|
class: "cl-inline-block cl-whitespace-nowrap"
|
|
1965
|
-
},
|
|
1969
|
+
}, to = {
|
|
1966
1970
|
key: 4,
|
|
1967
1971
|
class: "cl-inline-block cl-whitespace-nowrap"
|
|
1968
|
-
},
|
|
1972
|
+
}, oo = {
|
|
1969
1973
|
key: 0,
|
|
1970
1974
|
class: "cl-inline-block cl-whitespace-nowrap"
|
|
1971
|
-
},
|
|
1975
|
+
}, so = {
|
|
1972
1976
|
key: 1,
|
|
1973
1977
|
class: "cl-inline-block cl-whitespace-nowrap"
|
|
1974
1978
|
}, We = /* @__PURE__ */ B({
|
|
@@ -2017,20 +2021,20 @@ const Gt = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Wt = { class: "cl-gap-1
|
|
|
2017
2021
|
"input-type": "checkbox",
|
|
2018
2022
|
"model-value": a.data[a.column.field],
|
|
2019
2023
|
disabled: !0
|
|
2020
|
-
}, null, 8, ["model-value"])) : (a.column.type === "date" || a.column.type === "datetime") && a.column.field !== void 0 ? (u(),
|
|
2021
|
-
a.column.format !== void 0 ? (u(),
|
|
2024
|
+
}, null, 8, ["model-value"])) : (a.column.type === "date" || a.column.type === "datetime") && a.column.field !== void 0 ? (u(), g(D, { key: 2 }, [
|
|
2025
|
+
a.column.format !== void 0 ? (u(), g(D, { key: 0 }, [
|
|
2022
2026
|
te(S(d(a.data[a.column.field], a.column.format)), 1)
|
|
2023
|
-
], 64)) : a.column.type === "date" ? (u(),
|
|
2027
|
+
], 64)) : a.column.type === "date" ? (u(), g(D, { key: 1 }, [
|
|
2024
2028
|
te(S(d(a.data[a.column.field], p(J).DATE)), 1)
|
|
2025
|
-
], 64)) : (u(),
|
|
2029
|
+
], 64)) : (u(), g(D, { key: 2 }, [
|
|
2026
2030
|
te(S(d(a.data[a.column.field], p(J).DATETIME)), 1)
|
|
2027
2031
|
], 64))
|
|
2028
|
-
], 64)) : a.column.type === "list" && a.column.field !== void 0 && a.column.listEntries !== void 0 ? (u(),
|
|
2029
|
-
a.column.maxLength !== void 0 ? (u(),
|
|
2032
|
+
], 64)) : a.column.type === "list" && a.column.field !== void 0 && a.column.listEntries !== void 0 ? (u(), g("span", lo, S(p(e)(((r = a.column.listEntries.find((c) => c.value === a.data[a.column.field])) == null ? void 0 : r.translationKey) ?? "")), 1)) : a.column.type === "number" && a.column.field !== void 0 ? (u(), g("span", to, S(p(s)(a.data[a.column.field], a.column.format ?? p(le).DECIMAL)), 1)) : a.column.field !== void 0 ? (u(), g(D, { key: 5 }, [
|
|
2033
|
+
a.column.maxLength !== void 0 ? (u(), g("span", oo, S(a.data[a.column.field].trimToLength(a.column.maxLength, a.column.format !== void 0 ? a.column.format === "ellipsis" : !1)), 1)) : (u(), g("span", so, S(a.data[a.column.field]), 1))
|
|
2030
2034
|
], 64)) : N("", !0);
|
|
2031
2035
|
};
|
|
2032
2036
|
}
|
|
2033
|
-
}),
|
|
2037
|
+
}), no = { class: "cl-font-semibold lg:cl-hidden" }, ao = /* @__PURE__ */ B({
|
|
2034
2038
|
__name: "cl-ui-grid-cell",
|
|
2035
2039
|
props: {
|
|
2036
2040
|
data: {},
|
|
@@ -2052,12 +2056,12 @@ const Gt = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Wt = { class: "cl-gap-1
|
|
|
2052
2056
|
r !== "" && (i[r] !== e.data[r] ? o("edit", i[r]) : o("undo"));
|
|
2053
2057
|
}, {
|
|
2054
2058
|
deep: !0
|
|
2055
|
-
}), (i, r) => (u(),
|
|
2059
|
+
}), (i, r) => (u(), g("td", {
|
|
2056
2060
|
class: _(["cl-border-b cl-border-grey-1 cl-gap-1 cl-grid cl-grid-cols-2 cl-m-1 cl-mb-0 cl-py-2 cl-text-xs lg:cl-border-b-0 lg:cl-m-0 lg:cl-px-1 lg:cl-table-cell lg:cl-text-base", {
|
|
2057
2061
|
"cl-bg-link-lighter": d.value
|
|
2058
2062
|
}])
|
|
2059
2063
|
}, [
|
|
2060
|
-
f("span",
|
|
2064
|
+
f("span", no, S(i.column.caption), 1),
|
|
2061
2065
|
i.editMode && i.column.editable === !0 ? j(i.$slots, `${i.column.name}Edit`, oe(re({ key: 0 }, {
|
|
2062
2066
|
cellFocused: () => o("focus"),
|
|
2063
2067
|
column: i.column,
|
|
@@ -2088,7 +2092,7 @@ const Gt = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Wt = { class: "cl-gap-1
|
|
|
2088
2092
|
}, 1032, ["column", "data", "time-zone"]))
|
|
2089
2093
|
], 2));
|
|
2090
2094
|
}
|
|
2091
|
-
}),
|
|
2095
|
+
}), ro = /* @__PURE__ */ B({
|
|
2092
2096
|
__name: "cl-ui-grid-row",
|
|
2093
2097
|
props: {
|
|
2094
2098
|
data: {},
|
|
@@ -2098,8 +2102,8 @@ const Gt = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Wt = { class: "cl-gap-1
|
|
|
2098
2102
|
},
|
|
2099
2103
|
emits: ["cell-focus", "cell-edit", "cell-undo", "row-select"],
|
|
2100
2104
|
setup(t) {
|
|
2101
|
-
return (o, e) => (u(),
|
|
2102
|
-
(u(!0),
|
|
2105
|
+
return (o, e) => (u(), g("tr", null, [
|
|
2106
|
+
(u(!0), g(D, null, ee(o.columns, (l, s) => (u(), V(ao, {
|
|
2103
2107
|
key: s,
|
|
2104
2108
|
data: o.data,
|
|
2105
2109
|
column: l,
|
|
@@ -2118,10 +2122,10 @@ const Gt = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Wt = { class: "cl-gap-1
|
|
|
2118
2122
|
]), 1032, ["data", "column", "time-zone", "edit-mode", "onEdit", "onUndo"]))), 128))
|
|
2119
2123
|
]));
|
|
2120
2124
|
}
|
|
2121
|
-
}),
|
|
2125
|
+
}), io = { key: 1 }, co = ["colspan"], uo = { class: "cl-flex cl-flex-wrap cl-justify-center cl-text-center cl-text-sm cl-w-full" }, po = { class: "cl-mt-6 cl-w-full" }, fo = {
|
|
2122
2126
|
key: 0,
|
|
2123
2127
|
class: "cl-mt-4"
|
|
2124
|
-
},
|
|
2128
|
+
}, mo = { class: "cl-mb-2 cl-w-full" }, go = /* @__PURE__ */ B({
|
|
2125
2129
|
__name: "cl-ui-grid-body",
|
|
2126
2130
|
props: {
|
|
2127
2131
|
columns: {},
|
|
@@ -2183,8 +2187,8 @@ const Gt = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Wt = { class: "cl-gap-1
|
|
|
2183
2187
|
e.editMode || (d(), s.value.index = -1);
|
|
2184
2188
|
}), (n, b) => {
|
|
2185
2189
|
var h;
|
|
2186
|
-
return u(),
|
|
2187
|
-
n.data && ((h = n.data.results) != null && h.length) ? (u(!0),
|
|
2190
|
+
return u(), g("tbody", null, [
|
|
2191
|
+
n.data && ((h = n.data.results) != null && h.length) ? (u(!0), g(D, { key: 0 }, ee(n.data.results, (y, T) => (u(), V(ro, {
|
|
2188
2192
|
key: T,
|
|
2189
2193
|
data: y,
|
|
2190
2194
|
columns: n.columns,
|
|
@@ -2212,14 +2216,14 @@ const Gt = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Wt = { class: "cl-gap-1
|
|
|
2212
2216
|
j(n.$slots, $, oe(ae(z)))
|
|
2213
2217
|
])
|
|
2214
2218
|
}))
|
|
2215
|
-
]), 1032, ["data", "columns", "time-zone", "edit-mode", "class", "onClick", "onCellFocus", "onCellEdit"]))), 128)) : n.loading ? N("", !0) : (u(),
|
|
2219
|
+
]), 1032, ["data", "columns", "time-zone", "edit-mode", "class", "onClick", "onCellFocus", "onCellEdit"]))), 128)) : n.loading ? N("", !0) : (u(), g("tr", io, [
|
|
2216
2220
|
f("td", {
|
|
2217
2221
|
colspan: n.columns.length
|
|
2218
2222
|
}, [
|
|
2219
|
-
f("div",
|
|
2220
|
-
f("strong",
|
|
2221
|
-
n.request.filters.some((y) => y.filterValue !== "") ? (u(),
|
|
2222
|
-
f("div",
|
|
2223
|
+
f("div", uo, [
|
|
2224
|
+
f("strong", po, S(p(l)("grid.noData")), 1),
|
|
2225
|
+
n.request.filters.some((y) => y.filterValue !== "") ? (u(), g("div", fo, [
|
|
2226
|
+
f("div", mo, S(p(l)("grid.noDataFiltersPresent")), 1),
|
|
2223
2227
|
C(ge, {
|
|
2224
2228
|
size: "small",
|
|
2225
2229
|
colour: "danger",
|
|
@@ -2232,15 +2236,15 @@ const Gt = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Wt = { class: "cl-gap-1
|
|
|
2232
2236
|
})
|
|
2233
2237
|
])) : N("", !0)
|
|
2234
2238
|
])
|
|
2235
|
-
], 8,
|
|
2239
|
+
], 8, co)
|
|
2236
2240
|
]))
|
|
2237
2241
|
]);
|
|
2238
2242
|
};
|
|
2239
2243
|
}
|
|
2240
|
-
}),
|
|
2244
|
+
}), vo = {
|
|
2241
2245
|
key: 0,
|
|
2242
2246
|
class: "cl-flex cl-flex-wrap cl-justify-end cl-mt-2 cl-w-full"
|
|
2243
|
-
},
|
|
2247
|
+
}, bo = { class: "cl-bg-off-white cl-border cl-border-grey-1 cl-flex cl-items-center cl-mb-2 cl-px-3 cl-rounded cl-shadow-md cl-text-sm cl-w-full lg:cl-w-auto" }, ho = { class: "cl-text-grey-3 cl-w-max" }, yo = { class: "cl-bg-off-white cl-border cl-border-grey-1 cl-flex cl-flex-wrap cl-items-center cl-mb-2 cl-px-3 cl-py-2 cl-rounded cl-shadow-md cl-text-sm cl-w-full lg:cl-ml-2 lg:cl-w-auto mb:cl-flex-nowrap" }, wo = { class: "cl-flex cl-flex-wrap cl-mb-2 cl-text-sm cl-w-full lg:cl-p-2 md:cl-mb-0 md:cl-w-auto" }, $o = { class: "cl-flex cl-flex-wrap cl-mb-2 cl-w-full lg:cl-mb-0 lg:cl-mr-2 lg:cl-w-auto" }, ko = { class: "cl-text-grey-3 cl-w-full lg:cl-mr-2 lg:cl-w-auto" }, Co = { class: "cl-flex cl-flex-wrap cl-text-sm mb:cl-flex-nowrap" }, To = { class: "cl-pr-2" }, Oo = ["onClick"], So = { class: "cl-flex cl-flex-wrap cl-mb-2 cl-text-sm cl-w-full lg:cl-p-2 md:cl-mb-0 md:cl-w-auto" }, Eo = { class: "cl-mb-2 cl-text-grey-3 cl-w-full lg:cl-mb-0 lg:cl-mr-2 lg:cl-w-auto" }, qo = ["onClick"], Ao = { class: "cl-mb-2 cl-w-full lg:cl-p-2 md:cl-mb-0 md:cl-w-auto" }, Io = { class: "cl-block cl-mb-2 cl-text-grey-3 cl-w-full lg:cl-inline-block lg:cl-mb-0 lg:cl-mr-1 lg:cl-w-auto" }, No = { class: "cl-block lg:cl-inline-block" }, jo = /* @__PURE__ */ B({
|
|
2244
2248
|
__name: "cl-ui-grid-footer",
|
|
2245
2249
|
props: {
|
|
2246
2250
|
request: {},
|
|
@@ -2285,9 +2289,9 @@ const Gt = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Wt = { class: "cl-gap-1
|
|
|
2285
2289
|
const k = Ye(r, 750);
|
|
2286
2290
|
return (n, b) => {
|
|
2287
2291
|
var h, y;
|
|
2288
|
-
return (y = (h = n.data) == null ? void 0 : h.results) != null && y.length && n.request ? (u(),
|
|
2289
|
-
f("div",
|
|
2290
|
-
f("span",
|
|
2292
|
+
return (y = (h = n.data) == null ? void 0 : h.results) != null && y.length && n.request ? (u(), g("div", vo, [
|
|
2293
|
+
f("div", bo, [
|
|
2294
|
+
f("span", ho, S(p(s)("grid.jumpToPage")), 1),
|
|
2291
2295
|
C(ie, {
|
|
2292
2296
|
"model-value": n.request.pageNumber,
|
|
2293
2297
|
class: "cl-ml-1 cl-mt-0.5 cl-text-sm",
|
|
@@ -2299,13 +2303,13 @@ const Gt = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Wt = { class: "cl-gap-1
|
|
|
2299
2303
|
onInput: b[0] || (b[0] = (T) => p(k)(T.target))
|
|
2300
2304
|
}, null, 8, ["model-value", "max"])
|
|
2301
2305
|
]),
|
|
2302
|
-
f("div",
|
|
2303
|
-
f("div",
|
|
2304
|
-
f("li",
|
|
2305
|
-
f("span",
|
|
2306
|
+
f("div", yo, [
|
|
2307
|
+
f("div", wo, [
|
|
2308
|
+
f("li", $o, [
|
|
2309
|
+
f("span", ko, S(p(s)("grid.page")), 1)
|
|
2306
2310
|
]),
|
|
2307
|
-
f("ul",
|
|
2308
|
-
f("li",
|
|
2311
|
+
f("ul", Co, [
|
|
2312
|
+
f("li", To, S(p(l)(n.request.pageNumber, p(le).INTEGER)) + " / " + S(p(l)(d.value, p(le).INTEGER)), 1),
|
|
2309
2313
|
H(f("li", {
|
|
2310
2314
|
class: "cl-cursor-pointer cl-mr-1 cl-mt-1 lg:cl-mr-2",
|
|
2311
2315
|
onClick: b[1] || (b[1] = (T) => i(1))
|
|
@@ -2328,14 +2332,14 @@ const Gt = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Wt = { class: "cl-gap-1
|
|
|
2328
2332
|
], 512), [
|
|
2329
2333
|
[Z, n.request.pageNumber > 1]
|
|
2330
2334
|
]),
|
|
2331
|
-
(u(!0),
|
|
2335
|
+
(u(!0), g(D, null, ee(a.value, (T, E) => (u(), g("li", {
|
|
2332
2336
|
key: E,
|
|
2333
2337
|
class: _(["cl-cursor-pointer cl-mr-1 lg:cl-mr-2", {
|
|
2334
2338
|
"cl-text-black cl-font-bold": n.request.pageNumber === T,
|
|
2335
2339
|
"cl-text-grey-6": n.request.pageNumber !== T
|
|
2336
2340
|
}]),
|
|
2337
2341
|
onClick: ($) => i(T)
|
|
2338
|
-
}, S(p(l)(T, p(le).INTEGER)), 11,
|
|
2342
|
+
}, S(p(l)(T, p(le).INTEGER)), 11, Oo))), 128)),
|
|
2339
2343
|
H(f("li", {
|
|
2340
2344
|
class: "cl-cursor-pointer cl-mr-1 cl-mt-1 lg:cl-mr-2",
|
|
2341
2345
|
onClick: b[3] || (b[3] = (T) => i(n.request.pageNumber + 1))
|
|
@@ -2360,26 +2364,26 @@ const Gt = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Wt = { class: "cl-gap-1
|
|
|
2360
2364
|
])
|
|
2361
2365
|
])
|
|
2362
2366
|
]),
|
|
2363
|
-
f("ul",
|
|
2364
|
-
f("li",
|
|
2365
|
-
(u(),
|
|
2367
|
+
f("ul", So, [
|
|
2368
|
+
f("li", Eo, S(p(s)("grid.pageSize")), 1),
|
|
2369
|
+
(u(), g(D, null, ee(c, (T, E) => f("li", {
|
|
2366
2370
|
key: E,
|
|
2367
2371
|
class: _(["cl-cursor-pointer cl-mr-1 lg:cl-mr-2", {
|
|
2368
2372
|
"cl-text-black cl-font-bold": n.request.pageSize === T,
|
|
2369
2373
|
"cl-text-grey-6": n.request.pageSize !== T
|
|
2370
2374
|
}]),
|
|
2371
2375
|
onClick: ($) => m(T)
|
|
2372
|
-
}, S(p(l)(T, p(le).INTEGER)), 11,
|
|
2376
|
+
}, S(p(l)(T, p(le).INTEGER)), 11, qo)), 64))
|
|
2373
2377
|
]),
|
|
2374
|
-
f("ul",
|
|
2375
|
-
f("li",
|
|
2376
|
-
f("li",
|
|
2378
|
+
f("ul", Ao, [
|
|
2379
|
+
f("li", Io, S(p(s)("grid.totalRecords")), 1),
|
|
2380
|
+
f("li", No, S(p(l)(n.data.totalRecords, p(le).INTEGER)), 1)
|
|
2377
2381
|
])
|
|
2378
2382
|
])
|
|
2379
2383
|
])) : N("", !0);
|
|
2380
2384
|
};
|
|
2381
2385
|
}
|
|
2382
|
-
}),
|
|
2386
|
+
}), _o = [
|
|
2383
2387
|
"string",
|
|
2384
2388
|
"boolean",
|
|
2385
2389
|
"number",
|
|
@@ -2391,7 +2395,7 @@ const Gt = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Wt = { class: "cl-gap-1
|
|
|
2391
2395
|
function ll(t) {
|
|
2392
2396
|
return typeof t.caption == "string" && typeof t.name == "string" && typeof t.type == "string";
|
|
2393
2397
|
}
|
|
2394
|
-
function
|
|
2398
|
+
function Ro(t) {
|
|
2395
2399
|
let o = Array.isArray(t);
|
|
2396
2400
|
if (o) {
|
|
2397
2401
|
for (const e of t)
|
|
@@ -2402,9 +2406,9 @@ function _o(t) {
|
|
|
2402
2406
|
}
|
|
2403
2407
|
return o;
|
|
2404
2408
|
}
|
|
2405
|
-
const
|
|
2409
|
+
const zo = ["ellipsis"];
|
|
2406
2410
|
var X = /* @__PURE__ */ ((t) => (t[t.CONTAINS = 0] = "CONTAINS", t[t.NOT_CONTAINS = 1] = "NOT_CONTAINS", t[t.EQUAL = 2] = "EQUAL", t[t.NOT_EQUAL = 3] = "NOT_EQUAL", t[t.STARTS_WITH = 4] = "STARTS_WITH", t[t.ENDS_WITH = 5] = "ENDS_WITH", t[t.GREATER_THAN = 6] = "GREATER_THAN", t[t.LESS_THAN = 7] = "LESS_THAN", t[t.EQUAL_OR_GREATER_THAN = 8] = "EQUAL_OR_GREATER_THAN", t[t.EQUAL_OR_LESS_THAN = 9] = "EQUAL_OR_LESS_THAN", t))(X || {});
|
|
2407
|
-
const
|
|
2411
|
+
const Uo = [
|
|
2408
2412
|
"equal",
|
|
2409
2413
|
"notequal",
|
|
2410
2414
|
"contains",
|
|
@@ -2416,24 +2420,24 @@ const zo = [
|
|
|
2416
2420
|
"equalorlessthan",
|
|
2417
2421
|
"equalorgreaterthan"
|
|
2418
2422
|
];
|
|
2419
|
-
function
|
|
2423
|
+
function Mo(t) {
|
|
2420
2424
|
return typeof t.filterOnColumn == "string" && typeof t.filterOperation == "number" && typeof t.filterValue == "string";
|
|
2421
2425
|
}
|
|
2422
|
-
function
|
|
2426
|
+
function Bo(t) {
|
|
2423
2427
|
return t === null || typeof t.sortByAscending == "boolean" && typeof t.sortOnColumn == "string";
|
|
2424
2428
|
}
|
|
2425
|
-
function
|
|
2426
|
-
let o = typeof t.filters == "object" && Array.isArray(t.filters) && typeof t.pageNumber == "number" && typeof t.pageSize == "number" && typeof t.sort == "object" &&
|
|
2429
|
+
function Vo(t) {
|
|
2430
|
+
let o = typeof t.filters == "object" && Array.isArray(t.filters) && typeof t.pageNumber == "number" && typeof t.pageSize == "number" && typeof t.sort == "object" && Bo(t.sort);
|
|
2427
2431
|
if (o) {
|
|
2428
2432
|
for (const e of t.filters)
|
|
2429
|
-
if (!
|
|
2433
|
+
if (!Mo(e)) {
|
|
2430
2434
|
o = !1;
|
|
2431
2435
|
break;
|
|
2432
2436
|
}
|
|
2433
2437
|
}
|
|
2434
2438
|
return o;
|
|
2435
2439
|
}
|
|
2436
|
-
function
|
|
2440
|
+
function Lo(t, o) {
|
|
2437
2441
|
let e = typeof t.results == "object" && Array.isArray(t.results) && typeof t.totalRecords == "number";
|
|
2438
2442
|
if (e) {
|
|
2439
2443
|
for (const l of t.results)
|
|
@@ -2444,7 +2448,7 @@ function Vo(t, o) {
|
|
|
2444
2448
|
}
|
|
2445
2449
|
return e;
|
|
2446
2450
|
}
|
|
2447
|
-
const
|
|
2451
|
+
const Do = {
|
|
2448
2452
|
method: "equal",
|
|
2449
2453
|
icon: "mdi:equal",
|
|
2450
2454
|
description: "Equals",
|
|
@@ -2457,12 +2461,12 @@ const Lo = {
|
|
|
2457
2461
|
"list"
|
|
2458
2462
|
],
|
|
2459
2463
|
key: "equal"
|
|
2460
|
-
},
|
|
2464
|
+
}, Po = {
|
|
2461
2465
|
method: "contains",
|
|
2462
2466
|
icon: "mdi:format-letter-matches",
|
|
2463
2467
|
description: "Contains",
|
|
2464
2468
|
allowedTypes: ["string"]
|
|
2465
|
-
},
|
|
2469
|
+
}, Fo = {
|
|
2466
2470
|
method: "lessthan",
|
|
2467
2471
|
icon: "mdi:less-than",
|
|
2468
2472
|
description: "Before",
|
|
@@ -2472,7 +2476,7 @@ const Lo = {
|
|
|
2472
2476
|
],
|
|
2473
2477
|
key: "before"
|
|
2474
2478
|
}, Ke = [
|
|
2475
|
-
|
|
2479
|
+
Po,
|
|
2476
2480
|
{
|
|
2477
2481
|
method: "notcontains",
|
|
2478
2482
|
icon: "mdi:format-letter-spacing-variant",
|
|
@@ -2491,7 +2495,7 @@ const Lo = {
|
|
|
2491
2495
|
description: "Ends with",
|
|
2492
2496
|
allowedTypes: ["string"]
|
|
2493
2497
|
},
|
|
2494
|
-
|
|
2498
|
+
Do,
|
|
2495
2499
|
{
|
|
2496
2500
|
method: "notequal",
|
|
2497
2501
|
icon: "mdi:not-equal",
|
|
@@ -2504,7 +2508,7 @@ const Lo = {
|
|
|
2504
2508
|
],
|
|
2505
2509
|
key: "notequal"
|
|
2506
2510
|
},
|
|
2507
|
-
|
|
2511
|
+
Fo,
|
|
2508
2512
|
{
|
|
2509
2513
|
method: "greaterthan",
|
|
2510
2514
|
icon: "mdi:greater-than",
|
|
@@ -2559,7 +2563,7 @@ const Lo = {
|
|
|
2559
2563
|
description: "Less than",
|
|
2560
2564
|
allowedTypes: ["number"]
|
|
2561
2565
|
}
|
|
2562
|
-
],
|
|
2566
|
+
], Ho = { class: "cl-group cl-inline cl-relative cl-w-auto" }, xo = { class: "cl-bg-off-white cl-border-grey-1 cl-border-r cl-flex cl-h-full cl-items-center cl-justify-center cl-rounded-md cl-w-10" }, Zo = { class: "cl-p-2 cl-select-none" }, Go = ["onClick"], Wo = /* @__PURE__ */ B({
|
|
2563
2567
|
__name: "cl-ui-grid-method-selector",
|
|
2564
2568
|
props: {
|
|
2565
2569
|
filter: {},
|
|
@@ -2599,8 +2603,8 @@ const Lo = {
|
|
|
2599
2603
|
return;
|
|
2600
2604
|
o("update:filter", r);
|
|
2601
2605
|
}
|
|
2602
|
-
return (i, r) => (u(),
|
|
2603
|
-
f("div",
|
|
2606
|
+
return (i, r) => (u(), g("div", Ho, [
|
|
2607
|
+
f("div", xo, [
|
|
2604
2608
|
d.value ? (u(), V(p(U), {
|
|
2605
2609
|
key: 0,
|
|
2606
2610
|
icon: d.value.icon,
|
|
@@ -2616,10 +2620,10 @@ const Lo = {
|
|
|
2616
2620
|
"cl--left-44": !i.firstHalf
|
|
2617
2621
|
}])
|
|
2618
2622
|
}, [
|
|
2619
|
-
f("strong",
|
|
2620
|
-
(u(!0),
|
|
2623
|
+
f("strong", Zo, S(p(l)("grid.availableMethods")), 1),
|
|
2624
|
+
(u(!0), g(D, null, ee(s.value, (c, m) => {
|
|
2621
2625
|
var k;
|
|
2622
|
-
return u(),
|
|
2626
|
+
return u(), g("span", {
|
|
2623
2627
|
key: m,
|
|
2624
2628
|
class: _(["cl-cursor-pointer cl-px-4 cl-py-1 cl-transition-colors cl-w-full hover:cl-bg-grey-0", {
|
|
2625
2629
|
"cl-bg-primary-default cl-opacity-80": c.method === ((k = d.value) == null ? void 0 : k.method)
|
|
@@ -2631,15 +2635,15 @@ const Lo = {
|
|
|
2631
2635
|
icon: c.icon,
|
|
2632
2636
|
class: "cl-float-right cl-text-grey-4 cl-text-sm"
|
|
2633
2637
|
}, null, 8, ["icon"])
|
|
2634
|
-
], 10,
|
|
2638
|
+
], 10, Go);
|
|
2635
2639
|
}), 128))
|
|
2636
2640
|
], 2)
|
|
2637
2641
|
]));
|
|
2638
2642
|
}
|
|
2639
|
-
}),
|
|
2643
|
+
}), Ko = {
|
|
2640
2644
|
key: 0,
|
|
2641
2645
|
class: "cl-border cl-border-grey-2 cl-flex cl-overflow-hidden cl-rounded-md lg:cl-overflow-visible"
|
|
2642
|
-
},
|
|
2646
|
+
}, Qo = /* @__PURE__ */ f("option", { value: void 0 }, null, -1), Yo = ["selected"], Jo = ["selected"], Xo = /* @__PURE__ */ f("option", { value: void 0 }, null, -1), es = ["value", "selected"], ls = /* @__PURE__ */ B({
|
|
2643
2647
|
__name: "cl-ui-grid-filter",
|
|
2644
2648
|
props: {
|
|
2645
2649
|
filter: {},
|
|
@@ -2755,21 +2759,21 @@ const Lo = {
|
|
|
2755
2759
|
let q, w = ($ == null ? void 0 : $.value) ?? z ?? 0;
|
|
2756
2760
|
e.column.format === le.INTEGER ? (typeof w == "string" && (w = parseInt(w)), q = Math.round(w)) : (typeof w == "string" && (w = parseFloat(w.replace(h.value, "."))), q = w), T(null, isNaN(q) ? "" : q.toString());
|
|
2757
2761
|
}
|
|
2758
|
-
return ($, z) => y.value ? (u(),
|
|
2759
|
-
$.column.type === "boolean" || $.column.slotType === "boolean" ? (u(),
|
|
2762
|
+
return ($, z) => y.value ? (u(), g("div", Ko, [
|
|
2763
|
+
$.column.type === "boolean" || $.column.slotType === "boolean" ? (u(), g("select", {
|
|
2760
2764
|
key: 0,
|
|
2761
2765
|
class: "!cl-h-[2rem] cl-border-none cl-mb-0 cl-rounded-md cl-w-full",
|
|
2762
2766
|
onChange: z[0] || (z[0] = (q) => T(q.target))
|
|
2763
2767
|
}, [
|
|
2764
|
-
|
|
2768
|
+
Qo,
|
|
2765
2769
|
f("option", {
|
|
2766
2770
|
value: "true",
|
|
2767
2771
|
selected: n.value === "true"
|
|
2768
|
-
}, S(p(s)("grid.true")), 9,
|
|
2772
|
+
}, S(p(s)("grid.true")), 9, Yo),
|
|
2769
2773
|
f("option", {
|
|
2770
2774
|
value: "false",
|
|
2771
2775
|
selected: n.value === "false"
|
|
2772
|
-
}, S(p(s)("grid.false")), 9,
|
|
2776
|
+
}, S(p(s)("grid.false")), 9, Jo)
|
|
2773
2777
|
], 32)) : $.column.type === "date" || $.column.type === "datetime" || $.column.slotType === "date" || $.column.slotType === "datetime" ? (u(), V(ie, {
|
|
2774
2778
|
key: 1,
|
|
2775
2779
|
"model-value": b.value,
|
|
@@ -2792,19 +2796,19 @@ const Lo = {
|
|
|
2792
2796
|
class: "!cl-h-[2rem] !cl-text-xs cl-border-none cl-mb-0 cl-w-full lg:!cl-text-base",
|
|
2793
2797
|
"input-type": "text",
|
|
2794
2798
|
onInput: z[3] || (z[3] = (q, w) => T(null, w))
|
|
2795
|
-
}, null, 8, ["model-value"])) : r.value ? (u(),
|
|
2799
|
+
}, null, 8, ["model-value"])) : r.value ? (u(), g("select", {
|
|
2796
2800
|
key: 4,
|
|
2797
2801
|
class: "!cl-h-[2rem] cl-border-none cl-mb-0 cl-rounded-md cl-w-full",
|
|
2798
2802
|
onChange: z[4] || (z[4] = (q) => c.value ? E(q.target) : T(q.target))
|
|
2799
2803
|
}, [
|
|
2800
|
-
|
|
2801
|
-
(u(!0),
|
|
2804
|
+
Xo,
|
|
2805
|
+
(u(!0), g(D, null, ee($.column.listEntries ?? [], (q) => (u(), g("option", {
|
|
2802
2806
|
key: q.value,
|
|
2803
2807
|
value: q.value,
|
|
2804
2808
|
selected: n.value === q.value.toString()
|
|
2805
|
-
}, S(p(s)(q.translationKey)), 9,
|
|
2809
|
+
}, S(p(s)(q.translationKey)), 9, es))), 128))
|
|
2806
2810
|
], 32)) : N("", !0),
|
|
2807
|
-
C(
|
|
2811
|
+
C(Wo, {
|
|
2808
2812
|
filter: m.value,
|
|
2809
2813
|
"onUpdate:filter": z[5] || (z[5] = (q) => m.value = q),
|
|
2810
2814
|
column: $.column,
|
|
@@ -2813,7 +2817,7 @@ const Lo = {
|
|
|
2813
2817
|
}, null, 8, ["filter", "column", "default-operation", "first-half"])
|
|
2814
2818
|
])) : N("", !0);
|
|
2815
2819
|
}
|
|
2816
|
-
}),
|
|
2820
|
+
}), ts = { class: "-cl-top-1 cl-bg-white cl-shadow-sm cl-sticky cl-z-20 lg:cl-bg-transparent lg:cl-relative lg:cl-shadow-none" }, os = { class: "cl-hidden lg:cl-table-row" }, ss = ["onClick"], ns = { class: "cl-flex cl-justify-end cl-w-full lg:cl-hidden" }, as = { class: "cl-col-span-2 lg:cl-hidden" }, rs = ["onClick"], is = { class: "cl-font-normal cl-mr-1" }, cs = /* @__PURE__ */ B({
|
|
2817
2821
|
__name: "cl-ui-grid-header",
|
|
2818
2822
|
props: {
|
|
2819
2823
|
request: {},
|
|
@@ -2850,9 +2854,9 @@ const Lo = {
|
|
|
2850
2854
|
], c.pageNumber = 1, s.value = c;
|
|
2851
2855
|
}
|
|
2852
2856
|
}
|
|
2853
|
-
return (r, c) => (u(),
|
|
2854
|
-
f("tr",
|
|
2855
|
-
(u(!0),
|
|
2857
|
+
return (r, c) => (u(), g("thead", ts, [
|
|
2858
|
+
f("tr", os, [
|
|
2859
|
+
(u(!0), g(D, null, ee(r.columns, (m, k) => (u(), g("th", {
|
|
2856
2860
|
key: k,
|
|
2857
2861
|
class: _(["cl-text-grey-3 cl-text-sm", {
|
|
2858
2862
|
"cl-cursor-pointer": p(Ee)(m)
|
|
@@ -2873,14 +2877,14 @@ const Lo = {
|
|
|
2873
2877
|
}, null, 512), [
|
|
2874
2878
|
[Z, d(m, !1)]
|
|
2875
2879
|
])
|
|
2876
|
-
], 10,
|
|
2880
|
+
], 10, ss))), 128))
|
|
2877
2881
|
]),
|
|
2878
2882
|
f("tr", {
|
|
2879
2883
|
class: _(["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", {
|
|
2880
2884
|
"cl-hidden lg:cl-table-row": !r.filterPanelOpen
|
|
2881
2885
|
}])
|
|
2882
2886
|
}, [
|
|
2883
|
-
f("div",
|
|
2887
|
+
f("div", ns, [
|
|
2884
2888
|
C(p(U), {
|
|
2885
2889
|
class: "cl-text-grey-4 hover:cl-cursor-pointer hover:cl-text-link-default",
|
|
2886
2890
|
icon: "ph:x",
|
|
@@ -2888,19 +2892,19 @@ const Lo = {
|
|
|
2888
2892
|
onClick: c[0] || (c[0] = Q((m) => r.$emit("update:filterPanelOpen", !1), ["prevent"]))
|
|
2889
2893
|
})
|
|
2890
2894
|
]),
|
|
2891
|
-
(u(!0),
|
|
2895
|
+
(u(!0), g(D, null, ee(r.columns, (m, k) => (u(), g("th", {
|
|
2892
2896
|
key: k,
|
|
2893
2897
|
class: _(["cl-grid cl-grid-cols-4 cl-py-1 cl-text-xs cl-w-full lg:cl-table-cell lg:cl-w-auto", {
|
|
2894
2898
|
"cl-hidden lg:cl-table-cell": !p(Be)(m)
|
|
2895
2899
|
}])
|
|
2896
2900
|
}, [
|
|
2897
|
-
f("div",
|
|
2898
|
-
p(Ee)(m) ? (u(),
|
|
2901
|
+
f("div", as, S(m.caption), 1),
|
|
2902
|
+
p(Ee)(m) ? (u(), g("div", {
|
|
2899
2903
|
key: 0,
|
|
2900
2904
|
class: "cl-col-span-2 cl-gap-1 cl-span lg:cl-hidden",
|
|
2901
2905
|
onClick: (n) => a(m.field)
|
|
2902
2906
|
}, [
|
|
2903
|
-
f("span",
|
|
2907
|
+
f("span", is, S(p(l)("grid.sortBy")), 1),
|
|
2904
2908
|
d(m, !0) ? (u(), V(p(U), {
|
|
2905
2909
|
key: 0,
|
|
2906
2910
|
class: "cl-cursor-pointer cl-inline-block",
|
|
@@ -2914,8 +2918,8 @@ const Lo = {
|
|
|
2914
2918
|
class: "cl-cursor-pointer cl-inline-block",
|
|
2915
2919
|
icon: "ph:minus"
|
|
2916
2920
|
}))
|
|
2917
|
-
], 8,
|
|
2918
|
-
C(
|
|
2921
|
+
], 8, rs)) : N("", !0),
|
|
2922
|
+
C(ls, {
|
|
2919
2923
|
class: "cl-col-span-4",
|
|
2920
2924
|
filter: s.value.filters.filter((n) => n.filterOnColumn === m.field),
|
|
2921
2925
|
column: m,
|
|
@@ -2927,7 +2931,7 @@ const Lo = {
|
|
|
2927
2931
|
], 2)
|
|
2928
2932
|
]));
|
|
2929
2933
|
}
|
|
2930
|
-
}),
|
|
2934
|
+
}), us = { class: "cl-fixed cl-flex cl-h-full cl-justify-end cl-right-0 cl-shadow-lg cl-top-0 cl-z-40" }, ds = { class: "cl-bg-secondary-default cl-h-full cl-overflow-y-auto cl-overscroll-y-none cl-px-10 cl-py-20 cl-relative cl-text-grey-2 cl-w-80" }, ps = { class: "cl-mb-4 cl-text-2xl cl-text-off-white" }, fs = { class: "cl-border-grey-3 cl-border-t cl-flex cl-flex-wrap cl-text-sm cl-w-full" }, ms = { class: "cl-border-b cl-border-grey-2 cl-flex cl-py-2 cl-text-sm cl-w-full" }, gs = { class: "cl-flex-1 cl-py-2" }, vs = { class: "cl-py-2 cl-w-1/4" }, bs = { class: "cl-py-2 cl-w-1/5" }, hs = { class: "cl-flex-1 cl-py-2" }, ys = { class: "cl-py-2 cl-w-1/4" }, ws = { class: "cl-py-2 cl-text-off-white cl-w-1/5" }, $s = { key: 1 }, ks = /* @__PURE__ */ B({
|
|
2931
2935
|
inheritAttrs: !1,
|
|
2932
2936
|
__name: "cl-ui-grid-view-manager",
|
|
2933
2937
|
props: {
|
|
@@ -2947,7 +2951,7 @@ const Lo = {
|
|
|
2947
2951
|
const m = ce(e.columns), k = c === "up" ? r + 1 : r - 1;
|
|
2948
2952
|
d(m, r, k), o("update:columns", m);
|
|
2949
2953
|
}
|
|
2950
|
-
return (r, c) => (u(),
|
|
2954
|
+
return (r, c) => (u(), g(D, null, [
|
|
2951
2955
|
C(ge, re(r.$attrs, {
|
|
2952
2956
|
class: "cl-w-full",
|
|
2953
2957
|
size: "small",
|
|
@@ -2961,35 +2965,35 @@ const Lo = {
|
|
|
2961
2965
|
(u(), V(Re, { to: "body" }, [
|
|
2962
2966
|
C(ve, { name: "slide-left" }, {
|
|
2963
2967
|
default: P(() => [
|
|
2964
|
-
H(f("div",
|
|
2965
|
-
f("div",
|
|
2968
|
+
H(f("div", us, [
|
|
2969
|
+
f("div", ds, [
|
|
2966
2970
|
C(p(U), {
|
|
2967
2971
|
class: "cl-absolute cl-cursor-pointer cl-right-3 cl-text-off-white cl-top-3",
|
|
2968
2972
|
icon: "ph:x",
|
|
2969
2973
|
size: 16,
|
|
2970
2974
|
onClick: c[1] || (c[1] = (m) => s.value = !1)
|
|
2971
2975
|
}),
|
|
2972
|
-
f("h3",
|
|
2973
|
-
f("ul",
|
|
2974
|
-
f("li",
|
|
2975
|
-
f("strong",
|
|
2976
|
-
f("strong",
|
|
2977
|
-
f("strong",
|
|
2976
|
+
f("h3", ps, S(p(l)("grid.manageView")), 1),
|
|
2977
|
+
f("ul", fs, [
|
|
2978
|
+
f("li", ms, [
|
|
2979
|
+
f("strong", gs, S(p(l)("grid.column")), 1),
|
|
2980
|
+
f("strong", vs, S(p(l)("grid.visible")), 1),
|
|
2981
|
+
f("strong", bs, S(p(l)("grid.order")), 1)
|
|
2978
2982
|
]),
|
|
2979
|
-
(u(!0),
|
|
2983
|
+
(u(!0), g(D, null, ee(r.columns, (m, k) => (u(), g("li", {
|
|
2980
2984
|
key: k,
|
|
2981
2985
|
class: "cl-border-b cl-border-grey-2 cl-flex cl-py-2 cl-text-sm cl-w-full"
|
|
2982
2986
|
}, [
|
|
2983
|
-
f("div",
|
|
2984
|
-
f("div",
|
|
2987
|
+
f("div", hs, S(m.caption), 1),
|
|
2988
|
+
f("div", ys, [
|
|
2985
2989
|
C(ie, {
|
|
2986
2990
|
"model-value": m.visible === void 0 || m.visible === !0,
|
|
2987
2991
|
"input-type": "checkbox",
|
|
2988
2992
|
onClick: (n) => a(n.target, m)
|
|
2989
2993
|
}, null, 8, ["model-value", "onClick"])
|
|
2990
2994
|
]),
|
|
2991
|
-
f("div",
|
|
2992
|
-
m.visible === void 0 || m.visible === !0 ? (u(),
|
|
2995
|
+
f("div", ws, [
|
|
2996
|
+
m.visible === void 0 || m.visible === !0 ? (u(), g(D, { key: 0 }, [
|
|
2993
2997
|
k !== 0 ? (u(), V(p(U), {
|
|
2994
2998
|
key: 0,
|
|
2995
2999
|
class: "cl-cursor-pointer cl-inline-block cl-mr-2",
|
|
@@ -3002,7 +3006,7 @@ const Lo = {
|
|
|
3002
3006
|
icon: "ph:arrow-right",
|
|
3003
3007
|
onClick: (n) => i(k, "up")
|
|
3004
3008
|
}, null, 8, ["onClick"])) : N("", !0)
|
|
3005
|
-
], 64)) : (u(),
|
|
3009
|
+
], 64)) : (u(), g("em", $s, S(p(l)("grid.hidden")), 1))
|
|
3006
3010
|
])
|
|
3007
3011
|
]))), 128))
|
|
3008
3012
|
])
|
|
@@ -3016,7 +3020,7 @@ const Lo = {
|
|
|
3016
3020
|
]))
|
|
3017
3021
|
], 64));
|
|
3018
3022
|
}
|
|
3019
|
-
}),
|
|
3023
|
+
}), Cs = { class: "cl-relative cl-w-full grid-wrapper lg:cl-min-h-fit" }, Ts = { class: "cl-absolute cl-flex cl-items-center cl-justify-center cl-min-h-full cl-p-32 cl-w-full" }, Os = { class: "cl-overflow-x-auto cl-overscroll-x-none cl-pt-1" }, Ss = { class: "cl-hidden lg:cl-table-column-group" }, Es = /* @__PURE__ */ B({
|
|
3020
3024
|
__name: "cl-ui-grid",
|
|
3021
3025
|
props: {
|
|
3022
3026
|
columns: {},
|
|
@@ -3064,10 +3068,10 @@ const Lo = {
|
|
|
3064
3068
|
highlightRowSelection: !0,
|
|
3065
3069
|
...e.options
|
|
3066
3070
|
}));
|
|
3067
|
-
return (y, T) => (u(),
|
|
3071
|
+
return (y, T) => (u(), g("div", Cs, [
|
|
3068
3072
|
C(ve, { name: "fade" }, {
|
|
3069
3073
|
default: P(() => [
|
|
3070
|
-
H(f("div",
|
|
3074
|
+
H(f("div", Ts, [
|
|
3071
3075
|
C(Ie)
|
|
3072
3076
|
], 512), [
|
|
3073
3077
|
[Z, y.loading]
|
|
@@ -3075,7 +3079,7 @@ const Lo = {
|
|
|
3075
3079
|
]),
|
|
3076
3080
|
_: 1
|
|
3077
3081
|
}),
|
|
3078
|
-
C(
|
|
3082
|
+
C(eo, {
|
|
3079
3083
|
"edit-mode": n.value,
|
|
3080
3084
|
"onUpdate:editMode": T[1] || (T[1] = (E) => n.value = E),
|
|
3081
3085
|
"filter-panel-open": b.value,
|
|
@@ -3090,27 +3094,27 @@ const Lo = {
|
|
|
3090
3094
|
j(y.$slots, "additional-grid-actions", oe(ae(E)))
|
|
3091
3095
|
]),
|
|
3092
3096
|
"view-manager": P(() => [
|
|
3093
|
-
C(
|
|
3097
|
+
C(ks, {
|
|
3094
3098
|
columns: l.value,
|
|
3095
3099
|
"onUpdate:columns": T[0] || (T[0] = (E) => l.value = E)
|
|
3096
3100
|
}, null, 8, ["columns"])
|
|
3097
3101
|
]),
|
|
3098
3102
|
_: 3
|
|
3099
3103
|
}, 8, ["edit-mode", "filter-panel-open", "columns", "options", "request", "loading"]),
|
|
3100
|
-
f("div",
|
|
3104
|
+
f("div", Os, [
|
|
3101
3105
|
f("table", {
|
|
3102
3106
|
class: _(["cl-delay-75 cl-min-h-[276px] cl-overflow-x-auto cl-overscroll-x-none cl-text-left cl-transition-opacity cl-w-full", {
|
|
3103
3107
|
"cl-opacity-40": y.loading
|
|
3104
3108
|
}])
|
|
3105
3109
|
}, [
|
|
3106
|
-
f("colgroup",
|
|
3107
|
-
(u(!0),
|
|
3110
|
+
f("colgroup", Ss, [
|
|
3111
|
+
(u(!0), g(D, null, ee(s.value, (E, $) => (u(), g("col", {
|
|
3108
3112
|
key: $,
|
|
3109
3113
|
style: cl(i(E.name)),
|
|
3110
3114
|
span: 1
|
|
3111
3115
|
}, null, 4))), 128))
|
|
3112
3116
|
]),
|
|
3113
|
-
C(
|
|
3117
|
+
C(cs, {
|
|
3114
3118
|
request: r.value,
|
|
3115
3119
|
"onUpdate:request": T[3] || (T[3] = (E) => r.value = E),
|
|
3116
3120
|
"filter-panel-open": b.value,
|
|
@@ -3119,7 +3123,7 @@ const Lo = {
|
|
|
3119
3123
|
options: h.value,
|
|
3120
3124
|
"time-zone": y.timeZone
|
|
3121
3125
|
}, null, 8, ["request", "filter-panel-open", "columns", "options", "time-zone"]),
|
|
3122
|
-
C(
|
|
3126
|
+
C(go, {
|
|
3123
3127
|
columns: s.value,
|
|
3124
3128
|
request: r.value,
|
|
3125
3129
|
data: k.value,
|
|
@@ -3140,14 +3144,14 @@ const Lo = {
|
|
|
3140
3144
|
]), 1032, ["columns", "request", "data", "time-zone", "loading", "edit-mode", "options"])
|
|
3141
3145
|
], 2)
|
|
3142
3146
|
]),
|
|
3143
|
-
C(
|
|
3147
|
+
C(jo, {
|
|
3144
3148
|
request: r.value,
|
|
3145
3149
|
"onUpdate:request": T[7] || (T[7] = (E) => r.value = E),
|
|
3146
3150
|
data: y.data
|
|
3147
3151
|
}, null, 8, ["request", "data"])
|
|
3148
3152
|
]));
|
|
3149
3153
|
}
|
|
3150
|
-
}),
|
|
3154
|
+
}), qs = { class: "cl-absolute cl-bg-secondary-default cl-flex cl-h-20 cl-items-center cl-justify-between cl-left-0 cl-top-0 cl-w-full cl-z-40" }, As = /* @__PURE__ */ B({
|
|
3151
3155
|
__name: "cl-ui-header",
|
|
3152
3156
|
props: {
|
|
3153
3157
|
isOpen: { type: Boolean }
|
|
@@ -3157,7 +3161,7 @@ const Lo = {
|
|
|
3157
3161
|
const e = t, l = I();
|
|
3158
3162
|
return Me(l, () => {
|
|
3159
3163
|
(e.isOpen ?? !1) && o("open-click");
|
|
3160
|
-
}), (s, d) => (u(),
|
|
3164
|
+
}), (s, d) => (u(), g("header", qs, [
|
|
3161
3165
|
j(s.$slots, "logo"),
|
|
3162
3166
|
f("div", {
|
|
3163
3167
|
ref_key: "headerMenuElement",
|
|
@@ -3170,13 +3174,13 @@ const Lo = {
|
|
|
3170
3174
|
], 512)
|
|
3171
3175
|
]));
|
|
3172
3176
|
}
|
|
3173
|
-
}),
|
|
3177
|
+
}), Is = { class: "cl-bg-transparent cl-flex cl-items-center cl-select-none hover:cl-bg-opacity-10 hover:cl-bg-white md:cl-min-w-[320px]" }, Ns = ["src"], js = {
|
|
3174
3178
|
key: 0,
|
|
3175
3179
|
class: "cl-text-ellipsis cl-whitespace-nowrap"
|
|
3176
|
-
},
|
|
3180
|
+
}, _s = {
|
|
3177
3181
|
key: 1,
|
|
3178
3182
|
class: "cl-text-ellipsis cl-text-xs cl-whitespace-nowrap"
|
|
3179
|
-
},
|
|
3183
|
+
}, Rs = { class: "cl-content-center cl-flex cl-h-20 cl-items-center cl-justify-center cl-justify-items-center cl-transition-all cl-w-10 md:cl-ml-4 md:cl-w-20" }, zs = { class: "cl-absolute cl-bg-white cl-right-0 cl-shadow-2xl cl-top-20 cl-w-full cl-z-20" }, Us = /* @__PURE__ */ B({
|
|
3180
3184
|
__name: "cl-ui-header-menu",
|
|
3181
3185
|
props: {
|
|
3182
3186
|
username: { default: "" },
|
|
@@ -3187,18 +3191,18 @@ const Lo = {
|
|
|
3187
3191
|
},
|
|
3188
3192
|
setup(t) {
|
|
3189
3193
|
const o = t;
|
|
3190
|
-
return (e, l) => (u(),
|
|
3194
|
+
return (e, l) => (u(), g("div", {
|
|
3191
3195
|
class: _(["md:cl-relative", {
|
|
3192
3196
|
"cl-bg-primary-default": (o == null ? void 0 : o.colour) === "default",
|
|
3193
3197
|
"cl-bg-blue-light": o.colour === "secondary"
|
|
3194
3198
|
}])
|
|
3195
3199
|
}, [
|
|
3196
|
-
f("div",
|
|
3197
|
-
e.image ? (u(),
|
|
3200
|
+
f("div", Is, [
|
|
3201
|
+
e.image ? (u(), g("img", {
|
|
3198
3202
|
key: 0,
|
|
3199
3203
|
src: e.image,
|
|
3200
3204
|
class: "cl-hidden cl-m-4 cl-max-h-12 cl-max-w-12 cl-ring-2 cl-ring-white cl-rounded-full md:cl-block"
|
|
3201
|
-
}, null, 8,
|
|
3205
|
+
}, null, 8, Ns)) : (u(), V(p(U), {
|
|
3202
3206
|
key: 1,
|
|
3203
3207
|
class: "cl-hidden cl-m-4 cl-text-white md:cl-block",
|
|
3204
3208
|
icon: "ph:user-circle",
|
|
@@ -3211,10 +3215,10 @@ const Lo = {
|
|
|
3211
3215
|
"cl-text-white": o.colour === "secondary"
|
|
3212
3216
|
}])
|
|
3213
3217
|
}, [
|
|
3214
|
-
e.username ? (u(),
|
|
3215
|
-
e.group ? (u(),
|
|
3218
|
+
e.username ? (u(), g("div", js, S(e.username), 1)) : N("", !0),
|
|
3219
|
+
e.group ? (u(), g("div", _s, S(e.group), 1)) : N("", !0)
|
|
3216
3220
|
], 2),
|
|
3217
|
-
f("div",
|
|
3221
|
+
f("div", Rs, [
|
|
3218
3222
|
C(p(U), {
|
|
3219
3223
|
class: _(["cl-transform-gpu cl-transition-transform", {
|
|
3220
3224
|
"cl-rotate-180": e.isOpen,
|
|
@@ -3227,7 +3231,7 @@ const Lo = {
|
|
|
3227
3231
|
]),
|
|
3228
3232
|
C(ve, { name: "fade" }, {
|
|
3229
3233
|
default: P(() => [
|
|
3230
|
-
H(f("div",
|
|
3234
|
+
H(f("div", zs, [
|
|
3231
3235
|
j(e.$slots, "default")
|
|
3232
3236
|
], 512), [
|
|
3233
3237
|
[Z, e.isOpen]
|
|
@@ -3241,24 +3245,24 @@ const Lo = {
|
|
|
3241
3245
|
function _e(t) {
|
|
3242
3246
|
return /[a-z]{2}-[A-Z]{2}/gm.test(t.localeCode);
|
|
3243
3247
|
}
|
|
3244
|
-
function
|
|
3248
|
+
function Ms(t) {
|
|
3245
3249
|
let o = Array.isArray(t);
|
|
3246
3250
|
if (o) {
|
|
3247
3251
|
for (const e of t)
|
|
3248
|
-
if (!
|
|
3252
|
+
if (!Bs(e)) {
|
|
3249
3253
|
o = !1;
|
|
3250
3254
|
break;
|
|
3251
3255
|
}
|
|
3252
3256
|
}
|
|
3253
3257
|
return o;
|
|
3254
3258
|
}
|
|
3255
|
-
function
|
|
3259
|
+
function Bs(t) {
|
|
3256
3260
|
return typeof t.name == "string" && typeof t.nativeName == "string" && typeof t.localeCode == "string";
|
|
3257
3261
|
}
|
|
3258
|
-
const
|
|
3262
|
+
const Vs = {
|
|
3259
3263
|
key: 0,
|
|
3260
3264
|
class: "cl-flex cl-relative cl-select-none cl-w-auto cl-z-30"
|
|
3261
|
-
},
|
|
3265
|
+
}, Ls = { 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" }, Ds = ["data-localename", "data-localecode", "onClick"], Ps = { class: "cl-text-xs" }, Fs = /* @__PURE__ */ B({
|
|
3262
3266
|
__name: "cl-ui-language-switcher",
|
|
3263
3267
|
props: {
|
|
3264
3268
|
supportedLanguages: {},
|
|
@@ -3273,7 +3277,7 @@ const Bs = {
|
|
|
3273
3277
|
}
|
|
3274
3278
|
return Y(() => e.disabled, (r) => {
|
|
3275
3279
|
r && (s.value = !1);
|
|
3276
|
-
}), (r, c) => d.value !== null && p(_e)(d.value) ? (u(),
|
|
3280
|
+
}), (r, c) => d.value !== null && p(_e)(d.value) ? (u(), g("div", Vs, [
|
|
3277
3281
|
f("div", {
|
|
3278
3282
|
class: _(["cl-flex cl-items-center", {
|
|
3279
3283
|
"cl-cursor-pointer": !r.disabled
|
|
@@ -3288,8 +3292,8 @@ const Bs = {
|
|
|
3288
3292
|
], 2),
|
|
3289
3293
|
C(ve, { name: "fade" }, {
|
|
3290
3294
|
default: P(() => [
|
|
3291
|
-
H(f("div",
|
|
3292
|
-
(u(!0),
|
|
3295
|
+
H(f("div", Ls, [
|
|
3296
|
+
(u(!0), g(D, null, ee(a.value, (m, k) => (u(), g("div", {
|
|
3293
3297
|
key: k,
|
|
3294
3298
|
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",
|
|
3295
3299
|
"data-localename": m.name,
|
|
@@ -3298,8 +3302,8 @@ const Bs = {
|
|
|
3298
3302
|
l.value = m.localeCode, i(), o("language-select", m.localeCode);
|
|
3299
3303
|
}
|
|
3300
3304
|
}, [
|
|
3301
|
-
f("span",
|
|
3302
|
-
], 8,
|
|
3305
|
+
f("span", Ps, S(m.nativeName), 1)
|
|
3306
|
+
], 8, Ds))), 128))
|
|
3303
3307
|
], 512), [
|
|
3304
3308
|
[Z, s.value]
|
|
3305
3309
|
])
|
|
@@ -3308,10 +3312,10 @@ const Bs = {
|
|
|
3308
3312
|
})
|
|
3309
3313
|
])) : N("", !0);
|
|
3310
3314
|
}
|
|
3311
|
-
}),
|
|
3315
|
+
}), Hs = { class: "cl-relative" }, xs = { class: "cl-h-full cl-z-0 xl:cl-h-screen" }, Zs = { class: "cl-absolute cl-bg-secondary-default cl-gap-y-1 cl-grid cl-grid-cols-1 cl-left-0 cl-opacity-95 cl-p-6 cl-top-0 cl-w-full cl-z-10 lg:cl-gap-x-1 lg:cl-grid-cols-10 lg:cl-p-10" }, Gs = { class: "cl-col-span-10 lg:cl-col-span-3" }, Ws = {
|
|
3312
3316
|
key: 0,
|
|
3313
3317
|
class: "cl-col-span-10 cl-flex cl-items-start cl-justify-end cl-text-white lg:cl-col-span-1 lg:cl-p-2"
|
|
3314
|
-
},
|
|
3318
|
+
}, Ks = { class: "cl-col-span-3" }, Qs = { class: "cl-inline cl-relative cl-text-grey-4" }, Ys = { class: "cl-col-span-3" }, Js = { class: "cl-inline cl-relative cl-text-grey-4" }, Xs = { class: "cl-col-span-10 cl-emphasis-danger cl-mt-10 cl-p-3 cl-rounded-md cl-text-sm md:cl-mt-3" }, en = /* @__PURE__ */ B({
|
|
3315
3319
|
__name: "cl-ui-login",
|
|
3316
3320
|
props: {
|
|
3317
3321
|
errors: { default: () => [] },
|
|
@@ -3343,15 +3347,15 @@ const Bs = {
|
|
|
3343
3347
|
function m(k, n) {
|
|
3344
3348
|
a.value = k;
|
|
3345
3349
|
}
|
|
3346
|
-
return (k, n) => (u(),
|
|
3347
|
-
f("div",
|
|
3350
|
+
return (k, n) => (u(), g("div", Hs, [
|
|
3351
|
+
f("div", xs, [
|
|
3348
3352
|
j(k.$slots, "background")
|
|
3349
3353
|
]),
|
|
3350
|
-
f("form",
|
|
3351
|
-
f("div",
|
|
3354
|
+
f("form", Zs, [
|
|
3355
|
+
f("div", Gs, [
|
|
3352
3356
|
j(k.$slots, "logo")
|
|
3353
3357
|
]),
|
|
3354
|
-
k.$slots["language-switcher"] ? (u(),
|
|
3358
|
+
k.$slots["language-switcher"] ? (u(), g("div", Ws, [
|
|
3355
3359
|
j(k.$slots, "language-switcher")
|
|
3356
3360
|
])) : N("", !0),
|
|
3357
3361
|
f("div", {
|
|
@@ -3360,8 +3364,8 @@ const Bs = {
|
|
|
3360
3364
|
"cl-col-span-6": k.$slots["language-switcher"]
|
|
3361
3365
|
}])
|
|
3362
3366
|
}, [
|
|
3363
|
-
f("div",
|
|
3364
|
-
f("div",
|
|
3367
|
+
f("div", Ks, [
|
|
3368
|
+
f("div", Qs, [
|
|
3365
3369
|
C(p(U), {
|
|
3366
3370
|
class: "cl-absolute cl-left-3 cl-top-2.5 cl-z-10",
|
|
3367
3371
|
icon: "ph:user",
|
|
@@ -3389,8 +3393,8 @@ const Bs = {
|
|
|
3389
3393
|
}, null, 8, ["modelValue", "highlight-when-valid", "label", "placeholder-text", "message-when-valid"])
|
|
3390
3394
|
])
|
|
3391
3395
|
]),
|
|
3392
|
-
f("div",
|
|
3393
|
-
f("div",
|
|
3396
|
+
f("div", Ys, [
|
|
3397
|
+
f("div", Js, [
|
|
3394
3398
|
C(p(U), {
|
|
3395
3399
|
class: "cl-absolute cl-left-3 cl-top-2.5 cl-z-10",
|
|
3396
3400
|
icon: "ph:lock",
|
|
@@ -3454,8 +3458,8 @@ const Bs = {
|
|
|
3454
3458
|
default: P(() => {
|
|
3455
3459
|
var b;
|
|
3456
3460
|
return [
|
|
3457
|
-
H(f("span",
|
|
3458
|
-
(u(!0),
|
|
3461
|
+
H(f("span", Xs, [
|
|
3462
|
+
(u(!0), g(D, null, ee(k.errors, (h, y) => (u(), g("div", {
|
|
3459
3463
|
id: "cl-ui-login-errors",
|
|
3460
3464
|
key: y,
|
|
3461
3465
|
class: "cl-font-semibold"
|
|
@@ -3470,19 +3474,19 @@ const Bs = {
|
|
|
3470
3474
|
])
|
|
3471
3475
|
]));
|
|
3472
3476
|
}
|
|
3473
|
-
}),
|
|
3477
|
+
}), ln = [
|
|
3474
3478
|
"x-small",
|
|
3475
3479
|
"small",
|
|
3476
3480
|
"medium",
|
|
3477
3481
|
"large"
|
|
3478
|
-
],
|
|
3482
|
+
], tn = [
|
|
3479
3483
|
"primary",
|
|
3480
3484
|
"secondary",
|
|
3481
3485
|
"white"
|
|
3482
|
-
],
|
|
3486
|
+
], on = {
|
|
3483
3487
|
key: 0,
|
|
3484
3488
|
class: "cl-h-0 cl-w-0"
|
|
3485
|
-
},
|
|
3489
|
+
}, sn = { class: "cl-relative cl-w-full" }, nn = /* @__PURE__ */ B({
|
|
3486
3490
|
__name: "cl-ui-navigation",
|
|
3487
3491
|
props: {
|
|
3488
3492
|
colour: { default: "default" }
|
|
@@ -3524,7 +3528,7 @@ const Bs = {
|
|
|
3524
3528
|
}
|
|
3525
3529
|
return Me(k, n), o({
|
|
3526
3530
|
closeNavigation: n
|
|
3527
|
-
}), (b, h) => (u(),
|
|
3531
|
+
}), (b, h) => (u(), g("div", {
|
|
3528
3532
|
ref_key: "navElement",
|
|
3529
3533
|
ref: k,
|
|
3530
3534
|
class: "cl-flex cl-flex-nowrap cl-relative"
|
|
@@ -3538,7 +3542,7 @@ const Bs = {
|
|
|
3538
3542
|
}, [
|
|
3539
3543
|
j(b.$slots, "icon", re({ navcolour: b.colour }, { groupIsOpen: s, toggleOpen: d }), void 0, !0)
|
|
3540
3544
|
], 2),
|
|
3541
|
-
r.value ? (u(),
|
|
3545
|
+
r.value ? (u(), g("div", on)) : N("", !0),
|
|
3542
3546
|
C(ve, { name: "slide-right" }, {
|
|
3543
3547
|
default: P(() => [
|
|
3544
3548
|
H(f("div", {
|
|
@@ -3547,7 +3551,7 @@ const Bs = {
|
|
|
3547
3551
|
"cl-absolute cl-left-20 cl-shadow-lg": !i.value
|
|
3548
3552
|
}])
|
|
3549
3553
|
}, [
|
|
3550
|
-
f("div",
|
|
3554
|
+
f("div", sn, [
|
|
3551
3555
|
f("span", {
|
|
3552
3556
|
class: "cl-absolute cl-cursor-pointer cl-hidden cl-right-0 cl-top-1.5 lg:cl-block",
|
|
3553
3557
|
onClick: m
|
|
@@ -3571,7 +3575,7 @@ const Bs = {
|
|
|
3571
3575
|
], 512));
|
|
3572
3576
|
}
|
|
3573
3577
|
});
|
|
3574
|
-
const
|
|
3578
|
+
const an = /* @__PURE__ */ me(nn, [["__scopeId", "data-v-0958dcf5"]]), rn = /* @__PURE__ */ B({
|
|
3575
3579
|
__name: "cl-ui-navigation-icon",
|
|
3576
3580
|
props: {
|
|
3577
3581
|
iconValue: {},
|
|
@@ -3579,7 +3583,7 @@ const nn = /* @__PURE__ */ me(sn, [["__scopeId", "data-v-0958dcf5"]]), an = /* @
|
|
|
3579
3583
|
colour: { default: "default" }
|
|
3580
3584
|
},
|
|
3581
3585
|
setup(t) {
|
|
3582
|
-
return (o, e) => (u(),
|
|
3586
|
+
return (o, e) => (u(), g("div", {
|
|
3583
3587
|
class: _(["cl-cursor-pointer cl-flex cl-h-20 cl-items-center cl-justify-center cl-transition-colors cl-w-20", {
|
|
3584
3588
|
"cl-text-secondary-default hover:cl-bg-primary-dark hover:cl-text-white": o.colour === "default",
|
|
3585
3589
|
"cl-bg-primary-darker cl-text-white": o.open && o.colour === "default",
|
|
@@ -3594,45 +3598,45 @@ const nn = /* @__PURE__ */ me(sn, [["__scopeId", "data-v-0958dcf5"]]), an = /* @
|
|
|
3594
3598
|
}, null, 8, ["icon"])
|
|
3595
3599
|
], 2));
|
|
3596
3600
|
}
|
|
3597
|
-
}),
|
|
3601
|
+
}), cn = {
|
|
3598
3602
|
key: 0,
|
|
3599
3603
|
class: "cl-font-bold cl-leading-8 cl-mb-8 cl-pr-8 cl-select-none cl-text-lg cl-text-secondary-default"
|
|
3600
|
-
},
|
|
3604
|
+
}, un = { class: "cl-flex cl-flex-wrap cl-space-y-8 cl-text-sm cl-w-full" }, dn = /* @__PURE__ */ B({
|
|
3601
3605
|
__name: "cl-ui-navigation-group",
|
|
3602
3606
|
props: {
|
|
3603
3607
|
open: { type: Boolean }
|
|
3604
3608
|
},
|
|
3605
3609
|
setup(t) {
|
|
3606
|
-
return (o, e) => o.open ? (u(),
|
|
3607
|
-
o.$slots.title ? (u(),
|
|
3610
|
+
return (o, e) => o.open ? (u(), g(D, { key: 0 }, [
|
|
3611
|
+
o.$slots.title ? (u(), g("div", cn, [
|
|
3608
3612
|
j(o.$slots, "title")
|
|
3609
3613
|
])) : N("", !0),
|
|
3610
|
-
f("div",
|
|
3614
|
+
f("div", un, [
|
|
3611
3615
|
j(o.$slots, "default")
|
|
3612
3616
|
])
|
|
3613
3617
|
], 64)) : N("", !0);
|
|
3614
3618
|
}
|
|
3615
|
-
}),
|
|
3619
|
+
}), pn = {}, fn = { class: "cl-w-full" }, mn = {
|
|
3616
3620
|
key: 0,
|
|
3617
3621
|
class: "cl-font-bold cl-mb-4 cl-select-none"
|
|
3618
|
-
},
|
|
3619
|
-
function
|
|
3620
|
-
return u(),
|
|
3621
|
-
t.$slots.title ? (u(),
|
|
3622
|
+
}, gn = { class: "cl-flex cl-flex-wrap cl-space-y-2" };
|
|
3623
|
+
function vn(t, o) {
|
|
3624
|
+
return u(), g("div", fn, [
|
|
3625
|
+
t.$slots.title ? (u(), g("div", mn, [
|
|
3622
3626
|
j(t.$slots, "title")
|
|
3623
3627
|
])) : N("", !0),
|
|
3624
|
-
f("span",
|
|
3628
|
+
f("span", gn, [
|
|
3625
3629
|
j(t.$slots, "default")
|
|
3626
3630
|
])
|
|
3627
3631
|
]);
|
|
3628
3632
|
}
|
|
3629
|
-
const
|
|
3630
|
-
function
|
|
3631
|
-
return u(),
|
|
3633
|
+
const bn = /* @__PURE__ */ me(pn, [["render", vn]]), hn = {}, yn = { class: "cl-cursor-pointer cl-transition-colors cl-w-full hover:cl-text-primary-darker" };
|
|
3634
|
+
function wn(t, o) {
|
|
3635
|
+
return u(), g("div", yn, [
|
|
3632
3636
|
j(t.$slots, "default")
|
|
3633
3637
|
]);
|
|
3634
3638
|
}
|
|
3635
|
-
const
|
|
3639
|
+
const $n = /* @__PURE__ */ me(hn, [["render", wn]]), kn = { class: "cl-w-full" }, Cn = /* @__PURE__ */ B({
|
|
3636
3640
|
__name: "cl-ui-tab",
|
|
3637
3641
|
props: {
|
|
3638
3642
|
currentTab: { default: 0 },
|
|
@@ -3661,9 +3665,9 @@ const wn = /* @__PURE__ */ me(bn, [["render", yn]]), $n = { class: "cl-w-full" }
|
|
|
3661
3665
|
c === "left" && (k = -m), e.value.scroll(e.value.scrollLeft + k, 0);
|
|
3662
3666
|
}
|
|
3663
3667
|
}
|
|
3664
|
-
return Ae(() => i()), ze(() => window.removeEventListener("resize", a)), (c, m) => (u(),
|
|
3668
|
+
return Ae(() => i()), ze(() => window.removeEventListener("resize", a)), (c, m) => (u(), g("div", kn, [
|
|
3665
3669
|
f("div", null, [
|
|
3666
|
-
l.value ? (u(),
|
|
3670
|
+
l.value ? (u(), g("div", {
|
|
3667
3671
|
key: 0,
|
|
3668
3672
|
class: "cl-bg-white cl-cursor-pointer cl-float-left cl-h-11 cl-w-4",
|
|
3669
3673
|
onClick: m[0] || (m[0] = (k) => r("left"))
|
|
@@ -3689,7 +3693,7 @@ const wn = /* @__PURE__ */ me(bn, [["render", yn]]), $n = { class: "cl-w-full" }
|
|
|
3689
3693
|
}, [
|
|
3690
3694
|
j(c.$slots, "headings", oe(ae({ isTabOpen: d, disabled: c.disabled, colour: c.colour })))
|
|
3691
3695
|
], 34),
|
|
3692
|
-
s.value ? (u(),
|
|
3696
|
+
s.value ? (u(), g("div", {
|
|
3693
3697
|
key: 1,
|
|
3694
3698
|
class: "cl-bg-white cl-bottom-12 cl-cursor-pointer cl-float-right cl-h-11 cl-relative cl-w-4",
|
|
3695
3699
|
onClick: m[1] || (m[1] = (k) => r("right"))
|
|
@@ -3703,7 +3707,7 @@ const wn = /* @__PURE__ */ me(bn, [["render", yn]]), $n = { class: "cl-w-full" }
|
|
|
3703
3707
|
j(c.$slots, "content", oe(ae({ isTabOpen: d, disabled: c.disabled, colour: c.colour })))
|
|
3704
3708
|
]));
|
|
3705
3709
|
}
|
|
3706
|
-
}),
|
|
3710
|
+
}), Tn = ["onKeyup"], On = /* @__PURE__ */ B({
|
|
3707
3711
|
__name: "cl-ui-tab-header",
|
|
3708
3712
|
props: {
|
|
3709
3713
|
id: {},
|
|
@@ -3719,7 +3723,7 @@ const wn = /* @__PURE__ */ me(bn, [["render", yn]]), $n = { class: "cl-w-full" }
|
|
|
3719
3723
|
function a() {
|
|
3720
3724
|
e.disabled || (l.value = !1, s.value = !1, o("update:currentTab", e.id));
|
|
3721
3725
|
}
|
|
3722
|
-
return (i, r) => (u(),
|
|
3726
|
+
return (i, r) => (u(), g("div", {
|
|
3723
3727
|
class: _(["cl-border-b cl-cursor-pointer cl-flex cl-items-center cl-px-4 cl-py-2 cl-rounded-b-none cl-rounded-sm cl-select-none cl-text-xl cl-transition cl-whitespace-nowrap focus:cl-outline-none", {
|
|
3724
3728
|
"!cl-cursor-default cl-text-grey-4 !cl-border-grey-2": i.disabled,
|
|
3725
3729
|
"cl-border cl-border-b-0 cl-rounded-t-md cl-shadow-[inset_0_-1px_0_#ffffff] cl-cursor-default": d.value,
|
|
@@ -3748,22 +3752,22 @@ const wn = /* @__PURE__ */ me(bn, [["render", yn]]), $n = { class: "cl-w-full" }
|
|
|
3748
3752
|
onKeyup: ke(Q(a, ["self"]), ["enter"])
|
|
3749
3753
|
}, [
|
|
3750
3754
|
j(i.$slots, "default")
|
|
3751
|
-
], 42,
|
|
3755
|
+
], 42, Tn));
|
|
3752
3756
|
}
|
|
3753
|
-
}),
|
|
3754
|
-
function
|
|
3757
|
+
}), Sn = {};
|
|
3758
|
+
function En(t, o) {
|
|
3755
3759
|
return j(t.$slots, "default");
|
|
3756
3760
|
}
|
|
3757
|
-
const
|
|
3761
|
+
const qn = /* @__PURE__ */ me(Sn, [["render", En]]), An = [
|
|
3758
3762
|
"default",
|
|
3759
3763
|
"primary",
|
|
3760
3764
|
"secondary",
|
|
3761
3765
|
"danger",
|
|
3762
3766
|
"blue"
|
|
3763
|
-
],
|
|
3767
|
+
], In = [
|
|
3764
3768
|
"left",
|
|
3765
3769
|
"right"
|
|
3766
|
-
],
|
|
3770
|
+
], Nn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3767
3771
|
__proto__: null,
|
|
3768
3772
|
FilterOperation: X,
|
|
3769
3773
|
buttonColours: jl,
|
|
@@ -3775,44 +3779,44 @@ const En = /* @__PURE__ */ me(On, [["render", Sn]]), qn = [
|
|
|
3775
3779
|
clUiApp: El,
|
|
3776
3780
|
clUiButton: ge,
|
|
3777
3781
|
clUiCard: zl,
|
|
3778
|
-
clUiComboBox:
|
|
3779
|
-
clUiFooter:
|
|
3780
|
-
clUiGrid:
|
|
3781
|
-
clUiHeader:
|
|
3782
|
-
clUiHeaderMenu:
|
|
3782
|
+
clUiComboBox: Ut,
|
|
3783
|
+
clUiFooter: Zt,
|
|
3784
|
+
clUiGrid: Es,
|
|
3785
|
+
clUiHeader: As,
|
|
3786
|
+
clUiHeaderMenu: Us,
|
|
3783
3787
|
clUiInput: ie,
|
|
3784
|
-
clUiLanguageSwitcher:
|
|
3788
|
+
clUiLanguageSwitcher: Fs,
|
|
3785
3789
|
clUiLoadingSpinner: Ie,
|
|
3786
|
-
clUiLogin:
|
|
3790
|
+
clUiLogin: en,
|
|
3787
3791
|
clUiModal: el,
|
|
3788
|
-
clUiNavigation:
|
|
3789
|
-
clUiNavigationGroup:
|
|
3790
|
-
clUiNavigationIcon:
|
|
3791
|
-
clUiNavigationItem:
|
|
3792
|
-
clUiNavigationSection:
|
|
3792
|
+
clUiNavigation: an,
|
|
3793
|
+
clUiNavigationGroup: dn,
|
|
3794
|
+
clUiNavigationIcon: rn,
|
|
3795
|
+
clUiNavigationItem: $n,
|
|
3796
|
+
clUiNavigationSection: bn,
|
|
3793
3797
|
clUiNotification: Xe,
|
|
3794
|
-
clUiTab:
|
|
3795
|
-
clUiTabContent:
|
|
3796
|
-
clUiTabHeader:
|
|
3797
|
-
filterMethodTypes:
|
|
3798
|
-
gridColumnTypes:
|
|
3798
|
+
clUiTab: Cn,
|
|
3799
|
+
clUiTabContent: qn,
|
|
3800
|
+
clUiTabHeader: On,
|
|
3801
|
+
filterMethodTypes: Uo,
|
|
3802
|
+
gridColumnTypes: _o,
|
|
3799
3803
|
inputTypes: Ql,
|
|
3800
|
-
isComboBoxCreateRequest:
|
|
3801
|
-
isComboBoxItem:
|
|
3802
|
-
isFilterRequest:
|
|
3803
|
-
isFilterResponse:
|
|
3804
|
+
isComboBoxCreateRequest: Bt,
|
|
3805
|
+
isComboBoxItem: Mt,
|
|
3806
|
+
isFilterRequest: Vo,
|
|
3807
|
+
isFilterResponse: Lo,
|
|
3804
3808
|
isGridColumn: ll,
|
|
3805
|
-
isGridColumnArray:
|
|
3806
|
-
isLanguageArray:
|
|
3809
|
+
isGridColumnArray: Ro,
|
|
3810
|
+
isLanguageArray: Ms,
|
|
3807
3811
|
isLanguageLocaleFormat: _e,
|
|
3808
|
-
modalColours:
|
|
3809
|
-
modalSizes:
|
|
3810
|
-
stringFormats:
|
|
3811
|
-
tabColours:
|
|
3812
|
-
tabScroll:
|
|
3812
|
+
modalColours: tn,
|
|
3813
|
+
modalSizes: ln,
|
|
3814
|
+
stringFormats: zo,
|
|
3815
|
+
tabColours: An,
|
|
3816
|
+
tabScroll: In
|
|
3813
3817
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3814
|
-
const
|
|
3815
|
-
t.use(fe), t.component("Icon", U), Object.entries(
|
|
3818
|
+
const xn = (t) => {
|
|
3819
|
+
t.use(fe), t.component("Icon", U), Object.entries(Nn).forEach(([
|
|
3816
3820
|
o,
|
|
3817
3821
|
e
|
|
3818
3822
|
]) => {
|
|
@@ -3820,7 +3824,7 @@ const Hn = (t) => {
|
|
|
3820
3824
|
});
|
|
3821
3825
|
};
|
|
3822
3826
|
export {
|
|
3823
|
-
|
|
3827
|
+
Hn as CitrusLimeUI,
|
|
3824
3828
|
J as DateFormat,
|
|
3825
3829
|
X as FilterOperation,
|
|
3826
3830
|
le as NumberFormat,
|
|
@@ -3833,51 +3837,51 @@ export {
|
|
|
3833
3837
|
El as clUiApp,
|
|
3834
3838
|
ge as clUiButton,
|
|
3835
3839
|
zl as clUiCard,
|
|
3836
|
-
|
|
3837
|
-
|
|
3838
|
-
|
|
3839
|
-
|
|
3840
|
-
|
|
3840
|
+
Ut as clUiComboBox,
|
|
3841
|
+
Zt as clUiFooter,
|
|
3842
|
+
Es as clUiGrid,
|
|
3843
|
+
As as clUiHeader,
|
|
3844
|
+
Us as clUiHeaderMenu,
|
|
3841
3845
|
ie as clUiInput,
|
|
3842
|
-
|
|
3846
|
+
Fs as clUiLanguageSwitcher,
|
|
3843
3847
|
Ie as clUiLoadingSpinner,
|
|
3844
|
-
|
|
3848
|
+
en as clUiLogin,
|
|
3845
3849
|
el as clUiModal,
|
|
3846
|
-
|
|
3847
|
-
|
|
3848
|
-
|
|
3849
|
-
|
|
3850
|
-
|
|
3850
|
+
an as clUiNavigation,
|
|
3851
|
+
dn as clUiNavigationGroup,
|
|
3852
|
+
rn as clUiNavigationIcon,
|
|
3853
|
+
$n as clUiNavigationItem,
|
|
3854
|
+
bn as clUiNavigationSection,
|
|
3851
3855
|
Xe as clUiNotification,
|
|
3852
|
-
|
|
3853
|
-
|
|
3854
|
-
|
|
3856
|
+
Cn as clUiTab,
|
|
3857
|
+
qn as clUiTabContent,
|
|
3858
|
+
On as clUiTabHeader,
|
|
3855
3859
|
Vl as datetimeFormats,
|
|
3856
|
-
|
|
3857
|
-
|
|
3858
|
-
|
|
3860
|
+
xn as default,
|
|
3861
|
+
Uo as filterMethodTypes,
|
|
3862
|
+
_o as gridColumnTypes,
|
|
3859
3863
|
fe as i18n,
|
|
3860
3864
|
Ql as inputTypes,
|
|
3861
|
-
|
|
3862
|
-
|
|
3863
|
-
|
|
3864
|
-
|
|
3865
|
+
Bt as isComboBoxCreateRequest,
|
|
3866
|
+
Mt as isComboBoxItem,
|
|
3867
|
+
Vo as isFilterRequest,
|
|
3868
|
+
Lo as isFilterResponse,
|
|
3865
3869
|
ll as isGridColumn,
|
|
3866
|
-
|
|
3867
|
-
|
|
3870
|
+
Ro as isGridColumnArray,
|
|
3871
|
+
Ms as isLanguageArray,
|
|
3868
3872
|
_e as isLanguageLocaleFormat,
|
|
3869
3873
|
Ml as messages,
|
|
3870
|
-
|
|
3871
|
-
|
|
3874
|
+
tn as modalColours,
|
|
3875
|
+
ln as modalSizes,
|
|
3872
3876
|
Bl as numberFormats,
|
|
3873
|
-
|
|
3874
|
-
|
|
3875
|
-
|
|
3876
|
-
|
|
3877
|
+
Fn as setCurrentLocale,
|
|
3878
|
+
Pn as setLocaleDateTimeFormats,
|
|
3879
|
+
Ln as setLocaleMessages,
|
|
3880
|
+
Dn as setLocaleNumberFormats,
|
|
3877
3881
|
De as showNotification,
|
|
3878
|
-
|
|
3879
|
-
|
|
3880
|
-
|
|
3882
|
+
zo as stringFormats,
|
|
3883
|
+
An as tabColours,
|
|
3884
|
+
In as tabScroll,
|
|
3881
3885
|
Fl as validateEmail,
|
|
3882
3886
|
Dl as validateMaxValue,
|
|
3883
3887
|
Ll as validateMinValue
|