@citruslime/ui 2.4.1-beta.2 → 2.4.1-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Icon as I } from "@iconify/vue";
|
|
2
|
-
import { defineComponent as U, ref as A, openBlock as u, createElementBlock as v, renderSlot as
|
|
2
|
+
import { defineComponent as U, ref as A, openBlock as u, createElementBlock as v, renderSlot as S, normalizeProps as te, guardReactiveProps as ae, Fragment as F, createElementVNode as f, normalizeClass as _, createVNode as $, unref as d, Transition as ge, withCtx as P, withDirectives as L, mergeProps as re, vShow as H, createBlock as V, Teleport as _e, renderList as J, toDisplayString as E, createCommentVNode as q, nextTick as ye, toHandlers as ll, withModifiers as K, computed as N, watch as Q, normalizeStyle as xe, vModelText as tl, onMounted as qe, vModelDynamic as ol, withKeys as $e, onUnmounted as Ie, resolveComponent as nl, createTextVNode as le, watchEffect as sl, createSlots as Re } from "vue";
|
|
3
3
|
import { generateStringId as al } from "@citruslime/utils";
|
|
4
4
|
import { onClickOutside as ze, useTimeoutFn as We, useDebounceFn as Ke, useWindowSize as rl } from "@vueuse/core";
|
|
5
|
-
import { createI18n as il, useI18n as
|
|
5
|
+
import { createI18n as il, useI18n as ne } from "vue-i18n";
|
|
6
6
|
import { DateTime as ke } from "luxon";
|
|
7
7
|
import { DatePicker as Me } from "v-calendar";
|
|
8
8
|
import { useDebouncer as cl, copy as ce } from "@citruslime/vue-utils";
|
|
@@ -27,7 +27,7 @@ const ul = { class: "cl-overflow-hidden" }, dl = /* @__PURE__ */ U({
|
|
|
27
27
|
}), s.open = !s.open);
|
|
28
28
|
}
|
|
29
29
|
return (p, s) => (u(), v("div", ul, [
|
|
30
|
-
|
|
30
|
+
S(p.$slots, "default", te(ae({ isItemOpen: l, toggleItem: n })))
|
|
31
31
|
]));
|
|
32
32
|
}
|
|
33
33
|
}), pl = { class: "cl-absolute cl-left-5 cl-top-5" }, fl = { class: "cl-font-semibold cl-ml-10 cl-p-4 cl-select-none cl-text-grey-5" }, ml = { class: "cl-overflow-hidden" }, gl = /* @__PURE__ */ U({
|
|
@@ -45,7 +45,7 @@ const ul = { class: "cl-overflow-hidden" }, dl = /* @__PURE__ */ U({
|
|
|
45
45
|
function l() {
|
|
46
46
|
e.disabled || o("toggle");
|
|
47
47
|
}
|
|
48
|
-
return (n, p) => (u(), v(
|
|
48
|
+
return (n, p) => (u(), v(F, null, [
|
|
49
49
|
f("div", {
|
|
50
50
|
class: _(["cl-border-b cl-border-grey-1 cl-relative", {
|
|
51
51
|
"cl-bg-grey-0": n.disabled,
|
|
@@ -63,14 +63,14 @@ const ul = { class: "cl-overflow-hidden" }, dl = /* @__PURE__ */ U({
|
|
|
63
63
|
}, null, 8, ["class"])
|
|
64
64
|
]),
|
|
65
65
|
f("div", fl, [
|
|
66
|
-
|
|
66
|
+
S(n.$slots, "title")
|
|
67
67
|
])
|
|
68
68
|
], 2),
|
|
69
69
|
f("div", ml, [
|
|
70
70
|
$(ge, { name: "grow-down" }, {
|
|
71
|
-
default:
|
|
72
|
-
L(f("div",
|
|
73
|
-
|
|
71
|
+
default: P(() => [
|
|
72
|
+
L(f("div", re(n.$attrs, { class: "cl-ml-10 cl-p-4" }), [
|
|
73
|
+
S(n.$slots, "default")
|
|
74
74
|
], 16), [
|
|
75
75
|
[H, n.open]
|
|
76
76
|
])
|
|
@@ -88,7 +88,7 @@ const ul = { class: "cl-overflow-hidden" }, dl = /* @__PURE__ */ U({
|
|
|
88
88
|
}, vl = {}, bl = { 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 hl(t, o) {
|
|
90
90
|
return u(), v("div", bl, [
|
|
91
|
-
|
|
91
|
+
S(t.$slots, "default")
|
|
92
92
|
]);
|
|
93
93
|
}
|
|
94
94
|
const yl = /* @__PURE__ */ fe(vl, [["render", hl]]), Ae = A([]);
|
|
@@ -121,7 +121,7 @@ const wl = ["onClick"], $l = { 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), v(
|
|
124
|
+
(u(!0), v(F, null, J(d(Ae), (l, n) => (u(), v("div", re(o.$attrs, {
|
|
125
125
|
key: n,
|
|
126
126
|
class: ["cl-break-words cl-cursor-pointer cl-flex cl-font-semibold cl-group cl-mb-2 cl-overflow-hidden cl-p-4 cl-rounded cl-shadow-lg cl-text-sm", {
|
|
127
127
|
"cl-bg-white": l.colour === "default",
|
|
@@ -149,23 +149,23 @@ const wl = ["onClick"], $l = { 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(), v(
|
|
152
|
+
return (o, e) => (u(), v(F, null, [
|
|
153
153
|
$(Je),
|
|
154
154
|
f("div", kl, [
|
|
155
|
-
|
|
155
|
+
S(o.$slots, "header"),
|
|
156
156
|
f("div", {
|
|
157
157
|
class: _(["cl-content-start cl-flex cl-flex-nowrap cl-items-stretch cl-max-h-screen cl-relative cl-w-full", {
|
|
158
158
|
"cl-pt-20": o.$slots.header
|
|
159
159
|
}])
|
|
160
160
|
}, [
|
|
161
|
-
|
|
161
|
+
S(o.$slots, "navigation"),
|
|
162
162
|
f("div", {
|
|
163
163
|
class: _(["cl-grow cl-max-h-full cl-overflow-x-hidden cl-overflow-y-auto cl-overscroll-y-none cl-w-auto", {
|
|
164
164
|
"cl-pb-20 lg:cl-pb-0": o.removePadding,
|
|
165
165
|
"lg:cl-pb-8 md:cl-px-8 cl-px-2 md:cl-pt-8 cl-pt-2 cl-pb-20": !o.removePadding
|
|
166
166
|
}])
|
|
167
167
|
}, [
|
|
168
|
-
|
|
168
|
+
S(o.$slots, "default")
|
|
169
169
|
], 2)
|
|
170
170
|
], 2)
|
|
171
171
|
])
|
|
@@ -191,11 +191,11 @@ const Se = /* @__PURE__ */ fe(Tl, [["render", Ol], ["__scopeId", "data-v-a21dc5d
|
|
|
191
191
|
focus() {
|
|
192
192
|
e.value && e.value.focus();
|
|
193
193
|
}
|
|
194
|
-
}), (l, n) => (u(), v(
|
|
194
|
+
}), (l, n) => (u(), v(F, null, [
|
|
195
195
|
L($(Se, { class: "relative" }, null, 512), [
|
|
196
196
|
[H, l.loading]
|
|
197
197
|
]),
|
|
198
|
-
L(f("button",
|
|
198
|
+
L(f("button", re(l.$attrs, {
|
|
199
199
|
ref_key: "buttonRef",
|
|
200
200
|
ref: e,
|
|
201
201
|
class: ["cl-align-middle cl-border cl-font-semibold cl-inline-block cl-rounded cl-select-none cl-shadow cl-text-center cl-transition-colors", {
|
|
@@ -212,7 +212,7 @@ const Se = /* @__PURE__ */ fe(Tl, [["render", Ol], ["__scopeId", "data-v-a21dc5d
|
|
|
212
212
|
}],
|
|
213
213
|
disabled: l.disabled
|
|
214
214
|
}), [
|
|
215
|
-
|
|
215
|
+
S(l.$slots, "default")
|
|
216
216
|
], 16, Al), [
|
|
217
217
|
[H, !l.loading]
|
|
218
218
|
])
|
|
@@ -242,7 +242,7 @@ const Se = /* @__PURE__ */ fe(Tl, [["render", Ol], ["__scopeId", "data-v-a21dc5d
|
|
|
242
242
|
}])
|
|
243
243
|
}, [
|
|
244
244
|
o.$slots.image ? (u(), v("div", Nl, [
|
|
245
|
-
|
|
245
|
+
S(o.$slots, "image")
|
|
246
246
|
])) : q("", !0),
|
|
247
247
|
o.$slots.title ? (u(), v("div", {
|
|
248
248
|
key: 1,
|
|
@@ -253,7 +253,7 @@ const Se = /* @__PURE__ */ fe(Tl, [["render", Ol], ["__scopeId", "data-v-a21dc5d
|
|
|
253
253
|
"cl-border-t": o.$slots.image
|
|
254
254
|
}])
|
|
255
255
|
}, [
|
|
256
|
-
|
|
256
|
+
S(o.$slots, "title")
|
|
257
257
|
], 2)) : q("", !0),
|
|
258
258
|
f("div", {
|
|
259
259
|
class: _(["cl-border-grey-2", {
|
|
@@ -263,7 +263,7 @@ const Se = /* @__PURE__ */ fe(Tl, [["render", Ol], ["__scopeId", "data-v-a21dc5d
|
|
|
263
263
|
"cl-border-t": o.$slots.image || o.$slots.title
|
|
264
264
|
}])
|
|
265
265
|
}, [
|
|
266
|
-
|
|
266
|
+
S(o.$slots, "default")
|
|
267
267
|
], 2),
|
|
268
268
|
o.$slots.footer ? (u(), v("div", {
|
|
269
269
|
key: 2,
|
|
@@ -273,7 +273,7 @@ const Se = /* @__PURE__ */ fe(Tl, [["render", Ol], ["__scopeId", "data-v-a21dc5d
|
|
|
273
273
|
"cl-p-6": o.size === "large"
|
|
274
274
|
}])
|
|
275
275
|
}, [
|
|
276
|
-
|
|
276
|
+
S(o.$slots, "footer")
|
|
277
277
|
], 2)) : q("", !0)
|
|
278
278
|
], 2));
|
|
279
279
|
}
|
|
@@ -439,16 +439,16 @@ const Il = {
|
|
|
439
439
|
fallbackWarn: !1,
|
|
440
440
|
warnHtmlMessage: !1
|
|
441
441
|
});
|
|
442
|
-
function
|
|
442
|
+
function Rs(t, o) {
|
|
443
443
|
return ee.global.mergeLocaleMessage(t, o), ye();
|
|
444
444
|
}
|
|
445
|
-
function
|
|
445
|
+
function zs(t, o) {
|
|
446
446
|
return ee.global.mergeNumberFormat(t, o), ye();
|
|
447
447
|
}
|
|
448
|
-
function
|
|
448
|
+
function Us(t, o) {
|
|
449
449
|
return ee.global.mergeDateTimeFormat(t, o), ye();
|
|
450
450
|
}
|
|
451
|
-
function
|
|
451
|
+
function Bs(t) {
|
|
452
452
|
return ee.global.locale.value = t, ye();
|
|
453
453
|
}
|
|
454
454
|
const { t: de } = ee.global;
|
|
@@ -564,7 +564,7 @@ const Dl = { class: "cl-relative" }, Ll = ["value", "disabled", "placeholder"],
|
|
|
564
564
|
(l = e.value) == null || l.focus();
|
|
565
565
|
}
|
|
566
566
|
}), (l, n) => (u(), v("div", Dl, [
|
|
567
|
-
f("input",
|
|
567
|
+
f("input", re({
|
|
568
568
|
ref_key: "element",
|
|
569
569
|
ref: e
|
|
570
570
|
}, l.$attrs, {
|
|
@@ -613,7 +613,7 @@ const De = /* @__PURE__ */ fe(Fl, [["__scopeId", "data-v-4c802181"]]), Hl = /* @
|
|
|
613
613
|
},
|
|
614
614
|
emits: ["update:date"],
|
|
615
615
|
setup(t, { expose: o, emit: e }) {
|
|
616
|
-
const l = t, n =
|
|
616
|
+
const l = t, n = N({
|
|
617
617
|
get() {
|
|
618
618
|
let b = null;
|
|
619
619
|
return l.type === "time" ? b = l.date === null ? "00:00" : l.date : l.date !== null && (b = ke.fromISO(l.date, {
|
|
@@ -626,7 +626,7 @@ const De = /* @__PURE__ */ fe(Fl, [["__scopeId", "data-v-4c802181"]]), Hl = /* @
|
|
|
626
626
|
zone: l.timeZone
|
|
627
627
|
}).setZone(l.timeZone).toISO()), e("update:date", r);
|
|
628
628
|
}
|
|
629
|
-
}), { locale: p, t: s } =
|
|
629
|
+
}), { locale: p, t: s } = ne(), a = N(() => {
|
|
630
630
|
let b;
|
|
631
631
|
switch (l.type) {
|
|
632
632
|
case "date":
|
|
@@ -640,7 +640,7 @@ const De = /* @__PURE__ */ fe(Fl, [["__scopeId", "data-v-4c802181"]]), Hl = /* @
|
|
|
640
640
|
break;
|
|
641
641
|
}
|
|
642
642
|
return l.placeholder ?? b;
|
|
643
|
-
}), i =
|
|
643
|
+
}), i = N(() => l.disabled ? !1 : {
|
|
644
644
|
visibility: "focus",
|
|
645
645
|
showDelay: 150,
|
|
646
646
|
hideDelay: 100
|
|
@@ -670,8 +670,8 @@ const De = /* @__PURE__ */ fe(Fl, [["__scopeId", "data-v-4c802181"]]), Hl = /* @
|
|
|
670
670
|
"hide-time-header": "",
|
|
671
671
|
popover: i.value
|
|
672
672
|
}, {
|
|
673
|
-
default:
|
|
674
|
-
$(De,
|
|
673
|
+
default: P(({ inputValue: w, inputEvents: h }) => [
|
|
674
|
+
$(De, re(b.$attrs, {
|
|
675
675
|
ref_key: "input",
|
|
676
676
|
ref: m,
|
|
677
677
|
date: w,
|
|
@@ -701,8 +701,8 @@ const De = /* @__PURE__ */ fe(Fl, [["__scopeId", "data-v-4c802181"]]), Hl = /* @
|
|
|
701
701
|
"hide-time-header": "",
|
|
702
702
|
popover: i.value
|
|
703
703
|
}, {
|
|
704
|
-
default:
|
|
705
|
-
$(De,
|
|
704
|
+
default: P(({ inputValue: w, inputEvents: h }) => [
|
|
705
|
+
$(De, re(b.$attrs, {
|
|
706
706
|
ref_key: "input",
|
|
707
707
|
ref: m,
|
|
708
708
|
date: w,
|
|
@@ -736,7 +736,7 @@ function Gl(t) {
|
|
|
736
736
|
from: "@iconify/vue"
|
|
737
737
|
};
|
|
738
738
|
}
|
|
739
|
-
function
|
|
739
|
+
function Ms() {
|
|
740
740
|
return Gl;
|
|
741
741
|
}
|
|
742
742
|
const Zl = [
|
|
@@ -777,13 +777,13 @@ const Zl = [
|
|
|
777
777
|
"update:value": null
|
|
778
778
|
},
|
|
779
779
|
setup(t, { expose: o, emit: e }) {
|
|
780
|
-
const l = t, { n, t: p } =
|
|
780
|
+
const l = t, { n, t: p } = ne(), { debounce: s } = cl(), a = A(l.value), i = A(), c = N({
|
|
781
781
|
get: () => l.value,
|
|
782
782
|
set: (h) => e("update:value", h)
|
|
783
|
-
}), m =
|
|
783
|
+
}), m = N(() => l.disabled ? "rgba(153, 153, 153, 0.8)" : "#9acd32"), b = N(() => {
|
|
784
784
|
let h = (c.value - l.min) / (l.max - l.min) * 100;
|
|
785
785
|
return h < 35 && h > 0 ? h < 20 ? h += 0.5 : h += 0.25 : h > 65 && h < 100 && (h > 80 ? h -= 0.5 : h -= 0.25), h;
|
|
786
|
-
}), r =
|
|
786
|
+
}), r = N(() => l.min <= l.max && l.step > 0);
|
|
787
787
|
function w(h, T) {
|
|
788
788
|
const k = (h == null ? void 0 : h.value) ?? "", B = Math.max(Math.min(parseFloat(k) || l.min, l.max), l.min);
|
|
789
789
|
c.value = l.enforceStep ? Math.ceil(B / l.step) * l.step : B, ye(() => T());
|
|
@@ -793,12 +793,12 @@ const Zl = [
|
|
|
793
793
|
var h;
|
|
794
794
|
(h = i.value) == null || h.focus();
|
|
795
795
|
}
|
|
796
|
-
}), (h, T) => r.value ? (u(), v("div",
|
|
796
|
+
}), (h, T) => r.value ? (u(), v("div", te(re({ key: 0 }, h.$attrs)), [
|
|
797
797
|
L(f("div", { class: "cl-bg-transparent cl-relative cl-text-center cl-text-sm" }, E(c.value), 513), [
|
|
798
798
|
[H, !h.showNumericInput]
|
|
799
799
|
]),
|
|
800
800
|
f("div", xl, [
|
|
801
|
-
L($(d(
|
|
801
|
+
L($(d(ie), {
|
|
802
802
|
modelValue: a.value,
|
|
803
803
|
"onUpdate:modelValue": T[0] || (T[0] = (k) => a.value = k),
|
|
804
804
|
class: "!cl-text-sm md:!cl-w-auto",
|
|
@@ -950,33 +950,33 @@ const nt = { class: "cl-flex cl-justify-between" }, st = { class: "cl-w-full" },
|
|
|
950
950
|
},
|
|
951
951
|
emits: ["update:model-value", "click", "focus", "input", "change", "validated"],
|
|
952
952
|
setup(t, { expose: o, emit: e }) {
|
|
953
|
-
const l = t, n = A(null), p = A(!1), s = A(!1), a =
|
|
953
|
+
const l = t, n = A(null), p = A(!1), s = A(!1), a = N(se), i = N(() => l.placeholderText.trim() !== "" ? l.placeholderText : l.label), c = A(0), m = N({
|
|
954
954
|
get: () => l.modelValue,
|
|
955
955
|
set: (g) => y(g, !1)
|
|
956
|
-
}), b =
|
|
956
|
+
}), b = N({
|
|
957
957
|
get: () => l.modelValue,
|
|
958
958
|
set: (g) => z(g)
|
|
959
|
-
}), r =
|
|
960
|
-
var g,
|
|
959
|
+
}), r = N(() => typeof l.min == "number" ? l.min.toString() : l.min), w = N(() => typeof l.max == "number" ? l.max.toString() : l.max), h = N(() => typeof l.min == "number" || l.min === null ? l.min : parseFloat(l.min)), T = N(() => typeof l.max == "number" || l.max === null ? l.max : parseFloat(l.max)), k = N(() => l.messageWhenValid.trim() !== "" ? l.messageWhenValid : ""), B = A(!0), O = A([]), R = N(() => {
|
|
960
|
+
var g, j;
|
|
961
961
|
return [
|
|
962
962
|
...((g = O.value) == null ? void 0 : g.filter((M) => ((M == null ? void 0 : M.length) ?? 0) > 0)) ?? [],
|
|
963
|
-
...((
|
|
963
|
+
...((j = l.externalErrors) == null ? void 0 : j.filter((M) => ((M == null ? void 0 : M.length) ?? 0) > 0)) ?? []
|
|
964
964
|
].join(`
|
|
965
965
|
`);
|
|
966
966
|
});
|
|
967
967
|
async function z(g) {
|
|
968
968
|
l.validateOn === "input" && await D(g), e("update:model-value", g);
|
|
969
969
|
}
|
|
970
|
-
async function y(g,
|
|
971
|
-
l.onInputFunction !== void 0 && (g = l.onInputFunction(g)), (
|
|
970
|
+
async function y(g, j) {
|
|
971
|
+
l.onInputFunction !== void 0 && (g = l.onInputFunction(g)), (j || l.validateOn === "input") && await D(g), e("update:model-value", g);
|
|
972
972
|
}
|
|
973
973
|
function D(g) {
|
|
974
|
-
const
|
|
974
|
+
const j = {
|
|
975
975
|
message: "",
|
|
976
976
|
valid: !0
|
|
977
977
|
}, M = [
|
|
978
978
|
l.customValidationFunction === null || l.customValidationFunction === void 0 ? new Promise((he) => {
|
|
979
|
-
he(
|
|
979
|
+
he(j);
|
|
980
980
|
}) : new Promise((he) => {
|
|
981
981
|
he(l.customValidationFunction(l.label, g));
|
|
982
982
|
})
|
|
@@ -996,19 +996,19 @@ const nt = { class: "cl-flex cl-justify-between" }, st = { class: "cl-w-full" },
|
|
|
996
996
|
function ue(g) {
|
|
997
997
|
if (n.value) {
|
|
998
998
|
n.value.stepUp(), n.value.focus(), y(n.value.valueAsNumber, !1);
|
|
999
|
-
const
|
|
999
|
+
const j = {
|
|
1000
1000
|
target: n.value
|
|
1001
1001
|
};
|
|
1002
|
-
e("input",
|
|
1002
|
+
e("input", j, n.value.valueAsNumber), e("change", g, n.value.valueAsNumber);
|
|
1003
1003
|
}
|
|
1004
1004
|
}
|
|
1005
1005
|
function Ne(g) {
|
|
1006
1006
|
if (n.value) {
|
|
1007
1007
|
n.value.stepDown(), n.value.focus(), y(n.value.valueAsNumber, !1);
|
|
1008
|
-
const
|
|
1008
|
+
const j = {
|
|
1009
1009
|
target: n.value
|
|
1010
1010
|
};
|
|
1011
|
-
e("input",
|
|
1011
|
+
e("input", j, n.value.valueAsNumber), e("change", g, n.value.valueAsNumber);
|
|
1012
1012
|
}
|
|
1013
1013
|
}
|
|
1014
1014
|
function be(g) {
|
|
@@ -1023,15 +1023,15 @@ const nt = { class: "cl-flex cl-justify-between" }, st = { class: "cl-w-full" },
|
|
|
1023
1023
|
function G(g) {
|
|
1024
1024
|
g.target.blur();
|
|
1025
1025
|
}
|
|
1026
|
-
function
|
|
1026
|
+
function se() {
|
|
1027
1027
|
var M;
|
|
1028
1028
|
let g = !0;
|
|
1029
|
-
const
|
|
1030
|
-
return p.value ? g =
|
|
1029
|
+
const j = a.value;
|
|
1030
|
+
return p.value ? g = j : s.value && ((M = m.value) == null ? void 0 : M.toString().trim()) === "" && (g = !1), g;
|
|
1031
1031
|
}
|
|
1032
1032
|
async function x(g) {
|
|
1033
|
-
const
|
|
1034
|
-
l.validateOn === "change" && await D(
|
|
1033
|
+
const j = Fe(g, l.inputType);
|
|
1034
|
+
l.validateOn === "change" && await D(j), e("change", g, j);
|
|
1035
1035
|
}
|
|
1036
1036
|
return qe(() => {
|
|
1037
1037
|
l.validateImmediately && y(l.modelValue, !0);
|
|
@@ -1046,13 +1046,13 @@ const nt = { class: "cl-flex cl-justify-between" }, st = { class: "cl-w-full" },
|
|
|
1046
1046
|
var g;
|
|
1047
1047
|
(g = n.value) == null || g.blur();
|
|
1048
1048
|
}
|
|
1049
|
-
}), (g,
|
|
1049
|
+
}), (g, j) => (u(), v("div", re({ ...g.$attrs, id: void 0 }, {
|
|
1050
1050
|
key: c.value,
|
|
1051
1051
|
class: "cl-align-top cl-border-none cl-inline-block cl-text-left"
|
|
1052
1052
|
}), [
|
|
1053
1053
|
f("div", {
|
|
1054
|
-
onMouseenter:
|
|
1055
|
-
onMouseleave:
|
|
1054
|
+
onMouseenter: j[11] || (j[11] = (M) => be(!0)),
|
|
1055
|
+
onMouseleave: j[12] || (j[12] = (M) => be(!1))
|
|
1056
1056
|
}, [
|
|
1057
1057
|
f("div", nt, [
|
|
1058
1058
|
f("div", st, [
|
|
@@ -1064,10 +1064,10 @@ const nt = { class: "cl-flex cl-justify-between" }, st = { class: "cl-w-full" },
|
|
|
1064
1064
|
g.isRequired && !a.value && g.requiredText.length ? (u(), v("label", rt, E(g.requiredText), 1)) : q("", !0)
|
|
1065
1065
|
]),
|
|
1066
1066
|
g.inputType !== "range" && !d(Pe)(g.inputType) ? (u(), v("div", it, [
|
|
1067
|
-
L(f("input",
|
|
1067
|
+
L(f("input", re({
|
|
1068
1068
|
ref_key: "inputElement",
|
|
1069
1069
|
ref: n,
|
|
1070
|
-
"onUpdate:modelValue":
|
|
1070
|
+
"onUpdate:modelValue": j[0] || (j[0] = (M) => m.value = M)
|
|
1071
1071
|
}, g.$attrs, {
|
|
1072
1072
|
class: ["!cl-mb-1 cl-block cl-border cl-duration-300 cl-h-full cl-transition cl-w-full focus:cl-outline-none", {
|
|
1073
1073
|
"hover:!cl-border-grey-3": g.disabled === !1 && !d(we)(g.inputType),
|
|
@@ -1091,13 +1091,13 @@ const nt = { class: "cl-flex cl-justify-between" }, st = { class: "cl-w-full" },
|
|
|
1091
1091
|
accept: g.fileExtensions,
|
|
1092
1092
|
name: g.group,
|
|
1093
1093
|
autocomplete: g.autocomplete,
|
|
1094
|
-
onClick:
|
|
1095
|
-
onFocus:
|
|
1096
|
-
onBlur:
|
|
1094
|
+
onClick: j[1] || (j[1] = (M) => W(M)),
|
|
1095
|
+
onFocus: j[2] || (j[2] = (M) => e("focus")),
|
|
1096
|
+
onBlur: j[3] || (j[3] = K((M) => {
|
|
1097
1097
|
ve(), C();
|
|
1098
1098
|
}, ["self"])),
|
|
1099
1099
|
onMousewheelPassive: G,
|
|
1100
|
-
onInput:
|
|
1100
|
+
onInput: j[4] || (j[4] = (M) => {
|
|
1101
1101
|
e("input", M, d(Fe)(M, g.inputType));
|
|
1102
1102
|
}),
|
|
1103
1103
|
onChange: x
|
|
@@ -1108,20 +1108,20 @@ const nt = { class: "cl-flex cl-justify-between" }, st = { class: "cl-w-full" },
|
|
|
1108
1108
|
name: "fade",
|
|
1109
1109
|
duration: 300
|
|
1110
1110
|
}, {
|
|
1111
|
-
default:
|
|
1111
|
+
default: P(() => [
|
|
1112
1112
|
g.inputType === "number" && !g.disabled && g.showArrows ? L((u(), v("div", ut, [
|
|
1113
1113
|
$(d(I), {
|
|
1114
1114
|
icon: "ph:caret-up-bold",
|
|
1115
1115
|
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",
|
|
1116
1116
|
onClick: ue,
|
|
1117
|
-
onMousedown:
|
|
1117
|
+
onMousedown: j[5] || (j[5] = K(() => {
|
|
1118
1118
|
}, ["prevent"]))
|
|
1119
1119
|
}),
|
|
1120
1120
|
$(d(I), {
|
|
1121
1121
|
icon: "ph:caret-down-bold",
|
|
1122
1122
|
class: "cl-absolute cl-bg-link-default cl-bottom-2 cl-right-1 cl-rounded-full cl-text-sm cl-text-white hover:cl-bg-link-light hover:cl-cursor-pointer",
|
|
1123
1123
|
onClick: Ne,
|
|
1124
|
-
onMousedown:
|
|
1124
|
+
onMousedown: j[6] || (j[6] = K(() => {
|
|
1125
1125
|
}, ["prevent"]))
|
|
1126
1126
|
})
|
|
1127
1127
|
], 512)), [
|
|
@@ -1130,11 +1130,11 @@ const nt = { class: "cl-flex cl-justify-between" }, st = { class: "cl-w-full" },
|
|
|
1130
1130
|
]),
|
|
1131
1131
|
_: 1
|
|
1132
1132
|
})
|
|
1133
|
-
])) : d(Pe)(g.inputType) ? (u(), V(d(Hl),
|
|
1133
|
+
])) : d(Pe)(g.inputType) ? (u(), V(d(Hl), re({ key: 1 }, g.$attrs, {
|
|
1134
1134
|
ref_key: "inputElement",
|
|
1135
1135
|
ref: n,
|
|
1136
1136
|
date: b.value,
|
|
1137
|
-
"onUpdate:date":
|
|
1137
|
+
"onUpdate:date": j[7] || (j[7] = (M) => b.value = M),
|
|
1138
1138
|
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", {
|
|
1139
1139
|
"hover:cl-border-grey-3": !g.disabled,
|
|
1140
1140
|
"!cl-border-danger-default": !B.value,
|
|
@@ -1148,20 +1148,20 @@ const nt = { class: "cl-flex cl-justify-between" }, st = { class: "cl-w-full" },
|
|
|
1148
1148
|
max: w.value,
|
|
1149
1149
|
placeholder: i.value,
|
|
1150
1150
|
onBlur: K(ve, ["self"]),
|
|
1151
|
-
onFocus:
|
|
1151
|
+
onFocus: j[8] || (j[8] = (M) => e("focus"))
|
|
1152
1152
|
}), null, 16, ["date", "class", "disabled", "required", "type", "time-zone", "min", "max", "placeholder", "onBlur"])) : g.inputType === "range" && typeof m.value == "number" ? (u(), v("div", dt, [
|
|
1153
1153
|
$(d(lt), {
|
|
1154
1154
|
ref_key: "inputElement",
|
|
1155
1155
|
ref: n,
|
|
1156
1156
|
value: m.value,
|
|
1157
|
-
"onUpdate:value":
|
|
1157
|
+
"onUpdate:value": j[9] || (j[9] = (M) => m.value = M),
|
|
1158
1158
|
min: h.value ?? 0,
|
|
1159
1159
|
max: T.value ?? 1e3,
|
|
1160
1160
|
step: g.step,
|
|
1161
1161
|
disabled: g.disabled,
|
|
1162
1162
|
"show-numeric-input": !1,
|
|
1163
1163
|
onBlur: K(ve, ["self"]),
|
|
1164
|
-
onFocus:
|
|
1164
|
+
onFocus: j[10] || (j[10] = (M) => e("focus"))
|
|
1165
1165
|
}, null, 8, ["value", "min", "max", "step", "disabled", "onBlur"])
|
|
1166
1166
|
])) : q("", !0)
|
|
1167
1167
|
], 32),
|
|
@@ -1170,7 +1170,7 @@ const nt = { class: "cl-flex cl-justify-between" }, st = { class: "cl-w-full" },
|
|
|
1170
1170
|
], 16));
|
|
1171
1171
|
}
|
|
1172
1172
|
});
|
|
1173
|
-
const
|
|
1173
|
+
const ie = /* @__PURE__ */ fe(mt, [["__scopeId", "data-v-d01c4a47"]]), gt = { class: "cl-align-items-center cl-bg-black cl-bg-opacity-40 cl-bottom-0 cl-fixed cl-flex cl-h-screen cl-justify-center cl-left-0 cl-right-0 cl-top-0 cl-w-full cl-z-40" }, vt = ["onKeypress"], bt = { class: "cl-overflow-y-auto cl-overscroll-y-none cl-p-2 cl-w-full" }, Ye = /* @__PURE__ */ U({
|
|
1174
1174
|
inheritAttrs: !1,
|
|
1175
1175
|
__name: "cl-ui-modal",
|
|
1176
1176
|
props: {
|
|
@@ -1189,13 +1189,13 @@ const re = /* @__PURE__ */ fe(mt, [["__scopeId", "data-v-d01c4a47"]]), gt = { cl
|
|
|
1189
1189
|
function p(s) {
|
|
1190
1190
|
s.key === "Escape" && n();
|
|
1191
1191
|
}
|
|
1192
|
-
return (s, a) => (u(), v(
|
|
1193
|
-
|
|
1192
|
+
return (s, a) => (u(), v(F, null, [
|
|
1193
|
+
S(s.$slots, "trigger", te(ae({ open: l }))),
|
|
1194
1194
|
(u(), V(_e, { to: "body" }, [
|
|
1195
1195
|
$(ge, { name: "fade" }, {
|
|
1196
|
-
default:
|
|
1196
|
+
default: P(() => [
|
|
1197
1197
|
L(f("div", gt, [
|
|
1198
|
-
f("div",
|
|
1198
|
+
f("div", re(s.$attrs, {
|
|
1199
1199
|
class: ["cl-bg-white cl-flex cl-flex-wrap cl-max-h-[calc(100vh-8rem)] cl-mx-0 cl-my-auto cl-overflow-y-auto cl-overscroll-y-none cl-relative cl-rounded-lg cl-shadow-lg", {
|
|
1200
1200
|
"lg:cl-w-2/12 cl-w-10/12": s.size === "x-small",
|
|
1201
1201
|
"cl-w-6/12": s.size === "small",
|
|
@@ -1223,12 +1223,12 @@ const re = /* @__PURE__ */ fe(mt, [["__scopeId", "data-v-d01c4a47"]]), gt = { cl
|
|
|
1223
1223
|
"cl-bg-primary-default cl-text-white": s.headerColour === "primary"
|
|
1224
1224
|
}])
|
|
1225
1225
|
}, [
|
|
1226
|
-
|
|
1226
|
+
S(s.$slots, "title")
|
|
1227
1227
|
], 2),
|
|
1228
1228
|
f("div", bt, [
|
|
1229
|
-
|
|
1229
|
+
S(s.$slots, "default", te(ae({ close: n })))
|
|
1230
1230
|
]),
|
|
1231
|
-
|
|
1231
|
+
S(s.$slots, "footer", te(ae({ close: n })))
|
|
1232
1232
|
], 16)
|
|
1233
1233
|
], 512), [
|
|
1234
1234
|
[H, e.value]
|
|
@@ -1292,10 +1292,10 @@ const re = /* @__PURE__ */ fe(mt, [["__scopeId", "data-v-d01c4a47"]]), gt = { cl
|
|
|
1292
1292
|
"option-highlighted": null
|
|
1293
1293
|
},
|
|
1294
1294
|
setup(t, { emit: o }) {
|
|
1295
|
-
const e = t, l =
|
|
1295
|
+
const e = t, l = N(() => {
|
|
1296
1296
|
var c;
|
|
1297
1297
|
return ((c = e.option) == null ? void 0 : c.name) ?? e.text;
|
|
1298
|
-
}), n =
|
|
1298
|
+
}), n = N(() => {
|
|
1299
1299
|
var c;
|
|
1300
1300
|
return ((c = e.option) == null ? void 0 : c.parentName) ?? "";
|
|
1301
1301
|
}), p = A(!1);
|
|
@@ -1363,7 +1363,7 @@ const re = /* @__PURE__ */ fe(mt, [["__scopeId", "data-v-d01c4a47"]]), gt = { cl
|
|
|
1363
1363
|
"hide-dropdown": null
|
|
1364
1364
|
},
|
|
1365
1365
|
setup(t, { emit: o }) {
|
|
1366
|
-
const e = t, { t: l } =
|
|
1366
|
+
const e = t, { t: l } = ne(), n = A(""), p = A(!1), s = A(-1), a = N(() => p.value ? -1 : 0), i = A();
|
|
1367
1367
|
function c(y) {
|
|
1368
1368
|
(y === void 0 || (y == null ? void 0 : y.code.startsWith("Arrow")) === !1 && (y == null ? void 0 : y.code.startsWith("Control")) === !1 && (y == null ? void 0 : y.code.startsWith("Shift")) === !1 && (y == null ? void 0 : y.code.startsWith("Tab")) === !1 && (y == null ? void 0 : y.code) !== "Enter") && (o("search", n.value), s.value = -2);
|
|
1369
1369
|
}
|
|
@@ -1430,7 +1430,7 @@ const re = /* @__PURE__ */ fe(mt, [["__scopeId", "data-v-d01c4a47"]]), gt = { cl
|
|
|
1430
1430
|
onKeyup: $e(K(T, ["prevent", "stop"]), ["enter"])
|
|
1431
1431
|
}, [
|
|
1432
1432
|
f("div", Ct, [
|
|
1433
|
-
$(
|
|
1433
|
+
$(ie, {
|
|
1434
1434
|
modelValue: n.value,
|
|
1435
1435
|
"onUpdate:modelValue": D[0] || (D[0] = (W) => n.value = W),
|
|
1436
1436
|
class: "!cl-mr-0 cl-w-full",
|
|
@@ -1475,7 +1475,7 @@ const re = /* @__PURE__ */ fe(mt, [["__scopeId", "data-v-d01c4a47"]]), gt = { cl
|
|
|
1475
1475
|
onOptionHighlighted: R
|
|
1476
1476
|
}, null, 8, ["text", "selected-index"])) : q("", !0),
|
|
1477
1477
|
y.errorMessage === "" && y.results !== null ? (u(), v("div", Tt, [
|
|
1478
|
-
(u(!0), v(
|
|
1478
|
+
(u(!0), v(F, null, J(y.results, (W, ue) => (u(), V(He, {
|
|
1479
1479
|
key: ue,
|
|
1480
1480
|
option: W,
|
|
1481
1481
|
index: ue,
|
|
@@ -1514,13 +1514,13 @@ const re = /* @__PURE__ */ fe(mt, [["__scopeId", "data-v-d01c4a47"]]), gt = { cl
|
|
|
1514
1514
|
"update:current-object": null
|
|
1515
1515
|
},
|
|
1516
1516
|
setup(t, { expose: o, emit: e }) {
|
|
1517
|
-
const l = t, { t: n } =
|
|
1517
|
+
const l = t, { t: n } = ne(), p = A(!1), s = N({
|
|
1518
1518
|
get: () => l.currentObject,
|
|
1519
1519
|
set: (C) => e("update:current-object", C)
|
|
1520
|
-
}), a = A(null), i = A(null), c =
|
|
1520
|
+
}), a = A(null), i = A(null), c = N(() => Ne()), m = A(""), b = A(""), r = A(), w = A(!0), h = A(!1);
|
|
1521
1521
|
function T(C) {
|
|
1522
|
-
var
|
|
1523
|
-
const G = ((
|
|
1522
|
+
var se, x;
|
|
1523
|
+
const G = ((se = ve.value) == null ? void 0 : se.getBoundingClientRect().top) || 0;
|
|
1524
1524
|
h.value = window.innerHeight - G < 280, l.disabled || (typeof C < "u" ? p.value = C : p.value = !p.value), (x = a.value) == null || x.blur();
|
|
1525
1525
|
}
|
|
1526
1526
|
function k(C) {
|
|
@@ -1539,9 +1539,9 @@ const re = /* @__PURE__ */ fe(mt, [["__scopeId", "data-v-d01c4a47"]]), gt = { cl
|
|
|
1539
1539
|
function z(C) {
|
|
1540
1540
|
let G = null;
|
|
1541
1541
|
if (l.results !== null) {
|
|
1542
|
-
for (let
|
|
1543
|
-
if (l.results[
|
|
1544
|
-
G = l.results[
|
|
1542
|
+
for (let se = 0; se < l.results.length; se++)
|
|
1543
|
+
if (l.results[se].id === C) {
|
|
1544
|
+
G = l.results[se];
|
|
1545
1545
|
break;
|
|
1546
1546
|
}
|
|
1547
1547
|
}
|
|
@@ -1576,17 +1576,17 @@ const re = /* @__PURE__ */ fe(mt, [["__scopeId", "data-v-d01c4a47"]]), gt = { cl
|
|
|
1576
1576
|
});
|
|
1577
1577
|
}
|
|
1578
1578
|
function ue() {
|
|
1579
|
-
var G,
|
|
1579
|
+
var G, se, x, g, j;
|
|
1580
1580
|
Ve({
|
|
1581
1581
|
message: n("comboBox.createSuccessful", { object: l.objectType, name: ((G = l.objectCreatedResponse) == null ? void 0 : G.name) ?? "" }),
|
|
1582
1582
|
colour: "primary",
|
|
1583
1583
|
duration: 1e4
|
|
1584
1584
|
});
|
|
1585
1585
|
let C = "";
|
|
1586
|
-
i.value && i.value.id === ((
|
|
1586
|
+
i.value && i.value.id === ((se = l.objectCreatedResponse) == null ? void 0 : se.parentId) && (C = i.value.name), s.value = {
|
|
1587
1587
|
id: ((x = l.objectCreatedResponse) == null ? void 0 : x.id) ?? 0,
|
|
1588
1588
|
name: ((g = l.objectCreatedResponse) == null ? void 0 : g.name) ?? "",
|
|
1589
|
-
parentId: ((
|
|
1589
|
+
parentId: ((j = l.objectCreatedResponse) == null ? void 0 : j.parentId) ?? 0,
|
|
1590
1590
|
parentName: C
|
|
1591
1591
|
};
|
|
1592
1592
|
}
|
|
@@ -1606,14 +1606,14 @@ const re = /* @__PURE__ */ fe(mt, [["__scopeId", "data-v-d01c4a47"]]), gt = { cl
|
|
|
1606
1606
|
});
|
|
1607
1607
|
const ve = A();
|
|
1608
1608
|
return ze(ve, () => p.value ? T(!1) : ""), (C, G) => {
|
|
1609
|
-
const
|
|
1609
|
+
const se = nl("cl-ui-combo-box", !0);
|
|
1610
1610
|
return u(), v("div", {
|
|
1611
1611
|
ref_key: "outsideRef",
|
|
1612
1612
|
ref: ve,
|
|
1613
1613
|
class: "cl-relative"
|
|
1614
1614
|
}, [
|
|
1615
1615
|
f("div", Ot, [
|
|
1616
|
-
$(
|
|
1616
|
+
$(ie, {
|
|
1617
1617
|
ref_key: "inputRef",
|
|
1618
1618
|
ref: a,
|
|
1619
1619
|
modelValue: c.value,
|
|
@@ -1665,10 +1665,10 @@ const re = /* @__PURE__ */ fe(mt, [["__scopeId", "data-v-d01c4a47"]]), gt = { cl
|
|
|
1665
1665
|
], 2))
|
|
1666
1666
|
]),
|
|
1667
1667
|
$(Ye, { size: "small" }, {
|
|
1668
|
-
title:
|
|
1668
|
+
title: P(() => [
|
|
1669
1669
|
le(E(d(n)("comboBox.createTitle", { object: C.objectType })), 1)
|
|
1670
1670
|
]),
|
|
1671
|
-
trigger:
|
|
1671
|
+
trigger: P(({ open: x }) => [
|
|
1672
1672
|
L($(Et, {
|
|
1673
1673
|
"can-create-new-object": C.canCreateNewObject,
|
|
1674
1674
|
"can-clear-selected-object": C.canClearSelectedObject,
|
|
@@ -1690,7 +1690,7 @@ const re = /* @__PURE__ */ fe(mt, [["__scopeId", "data-v-d01c4a47"]]), gt = { cl
|
|
|
1690
1690
|
[H, p.value]
|
|
1691
1691
|
])
|
|
1692
1692
|
]),
|
|
1693
|
-
footer:
|
|
1693
|
+
footer: P(({ close: x }) => [
|
|
1694
1694
|
f("div", Nt, [
|
|
1695
1695
|
$(me, {
|
|
1696
1696
|
class: "cl-mr-3",
|
|
@@ -1698,7 +1698,7 @@ const re = /* @__PURE__ */ fe(mt, [["__scopeId", "data-v-d01c4a47"]]), gt = { cl
|
|
|
1698
1698
|
size: "small",
|
|
1699
1699
|
onClick: x
|
|
1700
1700
|
}, {
|
|
1701
|
-
default:
|
|
1701
|
+
default: P(() => [
|
|
1702
1702
|
le(E(d(n)("comboBox.cancel")), 1)
|
|
1703
1703
|
]),
|
|
1704
1704
|
_: 2
|
|
@@ -1711,16 +1711,16 @@ const re = /* @__PURE__ */ fe(mt, [["__scopeId", "data-v-d01c4a47"]]), gt = { cl
|
|
|
1711
1711
|
y(), x();
|
|
1712
1712
|
}
|
|
1713
1713
|
}, {
|
|
1714
|
-
default:
|
|
1714
|
+
default: P(() => [
|
|
1715
1715
|
le(E(d(n)("comboBox.create")), 1)
|
|
1716
1716
|
]),
|
|
1717
1717
|
_: 2
|
|
1718
1718
|
}, 1032, ["disabled", "onClick"])
|
|
1719
1719
|
])
|
|
1720
1720
|
]),
|
|
1721
|
-
default:
|
|
1721
|
+
default: P(() => [
|
|
1722
1722
|
f("div", St, [
|
|
1723
|
-
C.objectParentType ? (u(), V(
|
|
1723
|
+
C.objectParentType ? (u(), V(se, {
|
|
1724
1724
|
key: 0,
|
|
1725
1725
|
"current-object": i.value,
|
|
1726
1726
|
"onUpdate:currentObject": G[4] || (G[4] = (x) => i.value = x),
|
|
@@ -1735,7 +1735,7 @@ const re = /* @__PURE__ */ fe(mt, [["__scopeId", "data-v-d01c4a47"]]), gt = { cl
|
|
|
1735
1735
|
onSearch: B,
|
|
1736
1736
|
onCreateObject: D
|
|
1737
1737
|
}, null, 8, ["current-object", "results", "loading", "object-type", "object-created-response", "can-create-new-object", "can-clear-selected-object", "error-message"])) : q("", !0),
|
|
1738
|
-
$(
|
|
1738
|
+
$(ie, {
|
|
1739
1739
|
modelValue: m.value,
|
|
1740
1740
|
"onUpdate:modelValue": G[5] || (G[5] = (x) => m.value = x),
|
|
1741
1741
|
label: d(n)("comboBox.createProperty"),
|
|
@@ -1766,14 +1766,14 @@ const Rt = {}, zt = { class: "cl-flex cl-flex-wrap cl-left-0 cl-mt-4 cl-w-full"
|
|
|
1766
1766
|
function Dt(t, o) {
|
|
1767
1767
|
return u(), v("div", zt, [
|
|
1768
1768
|
t.$slots.default ? (u(), v("div", Ut, [
|
|
1769
|
-
|
|
1769
|
+
S(t.$slots, "default")
|
|
1770
1770
|
])) : q("", !0),
|
|
1771
1771
|
t.$slots.left || t.$slots.right ? (u(), v("div", Bt, [
|
|
1772
1772
|
f("span", Mt, [
|
|
1773
|
-
|
|
1773
|
+
S(t.$slots, "left")
|
|
1774
1774
|
]),
|
|
1775
1775
|
f("span", Vt, [
|
|
1776
|
-
|
|
1776
|
+
S(t.$slots, "right")
|
|
1777
1777
|
])
|
|
1778
1778
|
])) : q("", !0)
|
|
1779
1779
|
]);
|
|
@@ -1787,13 +1787,14 @@ function Ue(t) {
|
|
|
1787
1787
|
const o = t.type !== "slot" || t.slotType !== void 0 && t.field !== void 0, e = t.filterable ?? !0;
|
|
1788
1788
|
return o && e;
|
|
1789
1789
|
}
|
|
1790
|
-
const Pt = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Ft = { class: "cl-gap-1 cl-grid cl-grid-cols-2 cl-justify-end cl-mb-2 lg:cl-flex lg:cl-gap-2" }, Ht = {
|
|
1790
|
+
const Pt = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Ft = { class: "cl-gap-1 cl-grid cl-grid-cols-2 cl-justify-end cl-mb-2 lg:cl-flex lg:cl-gap-2" }, Ht = { class: "cl-basis-0 cl-col-span-2 cl-flex-grow" }, Gt = /* @__PURE__ */ f("hr", { class: "cl-block cl-border-grey-3 cl-col-span-2 cl-my-4 lg:cl-hidden" }, null, -1), Zt = {
|
|
1791
1791
|
key: 1,
|
|
1792
1792
|
class: "cl-hidden lg:cl-block"
|
|
1793
|
-
},
|
|
1793
|
+
}, xt = { class: "cl-block lg:cl-hidden" }, Wt = /* @__PURE__ */ U({
|
|
1794
1794
|
__name: "cl-ui-grid-action-row",
|
|
1795
1795
|
props: {
|
|
1796
1796
|
editMode: { type: Boolean },
|
|
1797
|
+
loading: { type: Boolean },
|
|
1797
1798
|
filterPanelOpen: { type: Boolean },
|
|
1798
1799
|
columns: {},
|
|
1799
1800
|
options: {},
|
|
@@ -1801,38 +1802,45 @@ const Pt = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Ft = { class: "cl-gap-1
|
|
|
1801
1802
|
},
|
|
1802
1803
|
emits: ["update:edit-mode", "update:filterPanelOpen", "clear-filters"],
|
|
1803
1804
|
setup(t) {
|
|
1804
|
-
const { t: o } =
|
|
1805
|
-
return (e, l) => (u(), v(
|
|
1805
|
+
const { t: o } = ne();
|
|
1806
|
+
return (e, l) => (u(), v(F, null, [
|
|
1806
1807
|
f("div", Pt, [
|
|
1807
1808
|
f("strong", null, E(d(o)("grid.gridTools")), 1)
|
|
1808
1809
|
]),
|
|
1809
1810
|
f("div", Ft, [
|
|
1811
|
+
f("div", Ht, [
|
|
1812
|
+
S(e.$slots, "additional-grid-actions", te(ae({
|
|
1813
|
+
loading: e.loading,
|
|
1814
|
+
editMode: e.editMode
|
|
1815
|
+
})))
|
|
1816
|
+
]),
|
|
1817
|
+
Gt,
|
|
1810
1818
|
e.columns.some((n) => n.editable) ? (u(), V(me, {
|
|
1811
1819
|
key: 0,
|
|
1812
1820
|
size: "small",
|
|
1813
1821
|
colour: "default",
|
|
1814
1822
|
onClick: l[0] || (l[0] = K((n) => e.$emit("update:edit-mode", !e.editMode), ["prevent"]))
|
|
1815
1823
|
}, {
|
|
1816
|
-
default:
|
|
1817
|
-
e.editMode ? (u(), v(
|
|
1824
|
+
default: P(() => [
|
|
1825
|
+
e.editMode ? (u(), v(F, { key: 0 }, [
|
|
1818
1826
|
le(E(d(o)("grid.finishEditing")), 1)
|
|
1819
|
-
], 64)) : (u(), v(
|
|
1827
|
+
], 64)) : (u(), v(F, { key: 1 }, [
|
|
1820
1828
|
le(E(d(o)("grid.editData")), 1)
|
|
1821
1829
|
], 64))
|
|
1822
1830
|
]),
|
|
1823
1831
|
_: 1
|
|
1824
1832
|
})) : q("", !0),
|
|
1825
|
-
e.options.hideViewManager ? q("", !0) : (u(), v("div",
|
|
1826
|
-
|
|
1833
|
+
e.options.hideViewManager ? q("", !0) : (u(), v("div", Zt, [
|
|
1834
|
+
S(e.$slots, "view-manager")
|
|
1827
1835
|
])),
|
|
1828
|
-
e.columns.some((n) => d(Ue)(n) || d(Oe)(n)) ? (u(), v(
|
|
1829
|
-
f("div",
|
|
1836
|
+
e.columns.some((n) => d(Ue)(n) || d(Oe)(n)) ? (u(), v(F, { key: 2 }, [
|
|
1837
|
+
f("div", xt, [
|
|
1830
1838
|
$(me, {
|
|
1831
1839
|
class: "cl-w-full",
|
|
1832
1840
|
size: "small",
|
|
1833
1841
|
onClick: l[1] || (l[1] = K((n) => e.$emit("update:filterPanelOpen", !e.filterPanelOpen), ["prevent"]))
|
|
1834
1842
|
}, {
|
|
1835
|
-
default:
|
|
1843
|
+
default: P(() => [
|
|
1836
1844
|
le(E(d(o)("grid.modifyFilters")), 1)
|
|
1837
1845
|
]),
|
|
1838
1846
|
_: 1
|
|
@@ -1846,7 +1854,7 @@ const Pt = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Ft = { class: "cl-gap-1
|
|
|
1846
1854
|
}),
|
|
1847
1855
|
onClick: l[2] || (l[2] = K((n) => e.$emit("clear-filters"), ["prevent"]))
|
|
1848
1856
|
}, {
|
|
1849
|
-
default:
|
|
1857
|
+
default: P(() => [
|
|
1850
1858
|
le(E(d(o)("grid.clearFilters")), 1)
|
|
1851
1859
|
]),
|
|
1852
1860
|
_: 1
|
|
@@ -1855,16 +1863,16 @@ const Pt = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Ft = { class: "cl-gap-1
|
|
|
1855
1863
|
])
|
|
1856
1864
|
], 64));
|
|
1857
1865
|
}
|
|
1858
|
-
}),
|
|
1866
|
+
}), Kt = {
|
|
1859
1867
|
key: 3,
|
|
1860
1868
|
class: "cl-inline-block cl-whitespace-nowrap"
|
|
1861
|
-
},
|
|
1869
|
+
}, Qt = {
|
|
1862
1870
|
key: 4,
|
|
1863
1871
|
class: "cl-inline-block cl-whitespace-nowrap"
|
|
1864
|
-
},
|
|
1872
|
+
}, Jt = {
|
|
1865
1873
|
key: 0,
|
|
1866
1874
|
class: "cl-inline-block cl-whitespace-nowrap"
|
|
1867
|
-
},
|
|
1875
|
+
}, Yt = {
|
|
1868
1876
|
key: 1,
|
|
1869
1877
|
class: "cl-inline-block cl-whitespace-nowrap"
|
|
1870
1878
|
}, Ge = /* @__PURE__ */ U({
|
|
@@ -1875,7 +1883,7 @@ const Pt = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Ft = { class: "cl-gap-1
|
|
|
1875
1883
|
timeZone: {}
|
|
1876
1884
|
},
|
|
1877
1885
|
setup(t) {
|
|
1878
|
-
const o = t, { t: e, locale: l, n } =
|
|
1886
|
+
const o = t, { t: e, locale: l, n } = ne();
|
|
1879
1887
|
function p(s, a) {
|
|
1880
1888
|
const i = ke.fromISO(s, {
|
|
1881
1889
|
locale: l.value
|
|
@@ -1904,25 +1912,25 @@ const Pt = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Ft = { class: "cl-gap-1
|
|
|
1904
1912
|
}
|
|
1905
1913
|
return (s, a) => {
|
|
1906
1914
|
var i;
|
|
1907
|
-
return s.column.type === "slot" ?
|
|
1915
|
+
return s.column.type === "slot" ? S(s.$slots, s.column.name, { key: 0 }) : s.column.type === "boolean" && s.column.field !== void 0 ? (u(), V(ie, {
|
|
1908
1916
|
key: 1,
|
|
1909
1917
|
"input-type": "checkbox",
|
|
1910
1918
|
"model-value": s.data[s.column.field],
|
|
1911
1919
|
disabled: !0
|
|
1912
|
-
}, null, 8, ["model-value"])) : (s.column.type === "date" || s.column.type === "datetime") && s.column.field !== void 0 ? (u(), v(
|
|
1913
|
-
s.column.format !== void 0 ? (u(), v(
|
|
1920
|
+
}, null, 8, ["model-value"])) : (s.column.type === "date" || s.column.type === "datetime") && s.column.field !== void 0 ? (u(), v(F, { key: 2 }, [
|
|
1921
|
+
s.column.format !== void 0 ? (u(), v(F, { key: 0 }, [
|
|
1914
1922
|
le(E(p(s.data[s.column.field], s.column.format)), 1)
|
|
1915
|
-
], 64)) : s.column.type === "date" ? (u(), v(
|
|
1923
|
+
], 64)) : s.column.type === "date" ? (u(), v(F, { key: 1 }, [
|
|
1916
1924
|
le(E(p(s.data[s.column.field], d(Z).DATE)), 1)
|
|
1917
|
-
], 64)) : (u(), v(
|
|
1925
|
+
], 64)) : (u(), v(F, { key: 2 }, [
|
|
1918
1926
|
le(E(p(s.data[s.column.field], d(Z).DATETIME)), 1)
|
|
1919
1927
|
], 64))
|
|
1920
|
-
], 64)) : s.column.type === "list" && s.column.field !== void 0 && s.column.listEntries !== void 0 ? (u(), v("span",
|
|
1921
|
-
s.column.maxLength !== void 0 ? (u(), v("span",
|
|
1928
|
+
], 64)) : s.column.type === "list" && s.column.field !== void 0 && s.column.listEntries !== void 0 ? (u(), v("span", Kt, E(d(e)(((i = s.column.listEntries.find((c) => c.value === s.data[s.column.field])) == null ? void 0 : i.translationKey) ?? "")), 1)) : s.column.type === "number" && s.column.field !== void 0 ? (u(), v("span", Qt, E(d(n)(s.data[s.column.field], s.column.format ?? d(X).DECIMAL)), 1)) : s.column.field !== void 0 ? (u(), v(F, { key: 5 }, [
|
|
1929
|
+
s.column.maxLength !== void 0 ? (u(), v("span", Jt, E(s.data[s.column.field].trimToLength(s.column.maxLength, s.column.format !== void 0 ? s.column.format === "ellipsis" : !1)), 1)) : (u(), v("span", Yt, E(s.data[s.column.field]), 1))
|
|
1922
1930
|
], 64)) : q("", !0);
|
|
1923
1931
|
};
|
|
1924
1932
|
}
|
|
1925
|
-
}),
|
|
1933
|
+
}), Xt = { class: "cl-font-semibold lg:cl-hidden" }, eo = /* @__PURE__ */ U({
|
|
1926
1934
|
__name: "cl-ui-grid-cell",
|
|
1927
1935
|
props: {
|
|
1928
1936
|
data: {},
|
|
@@ -1932,7 +1940,7 @@ const Pt = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Ft = { class: "cl-gap-1
|
|
|
1932
1940
|
},
|
|
1933
1941
|
emits: ["edit", "focus", "undo"],
|
|
1934
1942
|
setup(t, { emit: o }) {
|
|
1935
|
-
const e = t, { t: l } =
|
|
1943
|
+
const e = t, { t: l } = ne(), n = A(ce(e.data)), p = N(() => e.column.field !== void 0 && n.value[e.column.field] !== e.data[e.column.field]), s = N(() => {
|
|
1936
1944
|
var a;
|
|
1937
1945
|
return ((a = e.column.listEntries) == null ? void 0 : a.map((i, c) => ({
|
|
1938
1946
|
id: c,
|
|
@@ -1949,8 +1957,8 @@ const Pt = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Ft = { class: "cl-gap-1
|
|
|
1949
1957
|
"cl-bg-link-lighter": p.value
|
|
1950
1958
|
}])
|
|
1951
1959
|
}, [
|
|
1952
|
-
f("span",
|
|
1953
|
-
a.editMode && a.column.editable === !0 ?
|
|
1960
|
+
f("span", Xt, E(a.column.caption), 1),
|
|
1961
|
+
a.editMode && a.column.editable === !0 ? S(a.$slots, `${a.column.name}Edit`, te(re({ key: 0 }, {
|
|
1954
1962
|
cellFocused: () => o("focus"),
|
|
1955
1963
|
column: a.column,
|
|
1956
1964
|
edited: p.value,
|
|
@@ -1962,8 +1970,8 @@ const Pt = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Ft = { class: "cl-gap-1
|
|
|
1962
1970
|
data: a.data,
|
|
1963
1971
|
"time-zone": a.timeZone
|
|
1964
1972
|
}, {
|
|
1965
|
-
[a.column.name]:
|
|
1966
|
-
|
|
1973
|
+
[a.column.name]: P(() => [
|
|
1974
|
+
S(a.$slots, a.column.name, te(ae({ column: a.column, record: a.data })))
|
|
1967
1975
|
]),
|
|
1968
1976
|
_: 2
|
|
1969
1977
|
}, 1032, ["column", "data", "time-zone"])
|
|
@@ -1973,14 +1981,14 @@ const Pt = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Ft = { class: "cl-gap-1
|
|
|
1973
1981
|
data: a.data,
|
|
1974
1982
|
"time-zone": a.timeZone
|
|
1975
1983
|
}, {
|
|
1976
|
-
[a.column.name]:
|
|
1977
|
-
|
|
1984
|
+
[a.column.name]: P(() => [
|
|
1985
|
+
S(a.$slots, a.column.name, te(ae({ column: a.column, record: a.data })))
|
|
1978
1986
|
]),
|
|
1979
1987
|
_: 2
|
|
1980
1988
|
}, 1032, ["column", "data", "time-zone"]))
|
|
1981
1989
|
], 2));
|
|
1982
1990
|
}
|
|
1983
|
-
}),
|
|
1991
|
+
}), lo = /* @__PURE__ */ U({
|
|
1984
1992
|
__name: "cl-ui-grid-row",
|
|
1985
1993
|
props: {
|
|
1986
1994
|
data: {},
|
|
@@ -1991,7 +1999,7 @@ const Pt = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Ft = { class: "cl-gap-1
|
|
|
1991
1999
|
emits: ["cell-focus", "cell-edit", "cell-undo", "row-select"],
|
|
1992
2000
|
setup(t) {
|
|
1993
2001
|
return (o, e) => (u(), v("tr", null, [
|
|
1994
|
-
(u(!0), v(
|
|
2002
|
+
(u(!0), v(F, null, J(o.columns, (l, n) => (u(), V(eo, {
|
|
1995
2003
|
key: n,
|
|
1996
2004
|
data: o.data,
|
|
1997
2005
|
column: l,
|
|
@@ -2003,17 +2011,17 @@ const Pt = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Ft = { class: "cl-gap-1
|
|
|
2003
2011
|
}, Re({ _: 2 }, [
|
|
2004
2012
|
J(o.$slots, (p, s) => ({
|
|
2005
2013
|
name: s,
|
|
2006
|
-
fn:
|
|
2007
|
-
|
|
2014
|
+
fn: P((a) => [
|
|
2015
|
+
S(o.$slots, s, te(ae(a)))
|
|
2008
2016
|
])
|
|
2009
2017
|
}))
|
|
2010
2018
|
]), 1032, ["data", "column", "time-zone", "edit-mode", "onEdit", "onUndo"]))), 128))
|
|
2011
2019
|
]));
|
|
2012
2020
|
}
|
|
2013
|
-
}),
|
|
2021
|
+
}), to = { key: 1 }, oo = ["colspan"], no = { class: "cl-flex cl-flex-wrap cl-justify-center cl-text-center cl-text-sm cl-w-full" }, so = { class: "cl-mt-6 cl-w-full" }, ao = {
|
|
2014
2022
|
key: 0,
|
|
2015
2023
|
class: "cl-mt-4"
|
|
2016
|
-
},
|
|
2024
|
+
}, ro = { class: "cl-mb-2 cl-w-full" }, io = /* @__PURE__ */ U({
|
|
2017
2025
|
__name: "cl-ui-grid-body",
|
|
2018
2026
|
props: {
|
|
2019
2027
|
columns: {},
|
|
@@ -2026,7 +2034,7 @@ const Pt = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Ft = { class: "cl-gap-1
|
|
|
2026
2034
|
},
|
|
2027
2035
|
emits: ["row-select", "row-edit", "clear-filters"],
|
|
2028
2036
|
setup(t, { emit: o }) {
|
|
2029
|
-
const e = t, { t: l } =
|
|
2037
|
+
const e = t, { t: l } = ne(), n = A({
|
|
2030
2038
|
index: -1,
|
|
2031
2039
|
record: {}
|
|
2032
2040
|
});
|
|
@@ -2076,7 +2084,7 @@ const Pt = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Ft = { class: "cl-gap-1
|
|
|
2076
2084
|
}), (r, w) => {
|
|
2077
2085
|
var h;
|
|
2078
2086
|
return u(), v("tbody", null, [
|
|
2079
|
-
r.data && ((h = r.data.results) != null && h.length) ? (u(!0), v(
|
|
2087
|
+
r.data && ((h = r.data.results) != null && h.length) ? (u(!0), v(F, { key: 0 }, J(r.data.results, (T, k) => (u(), V(lo, {
|
|
2080
2088
|
key: k,
|
|
2081
2089
|
data: T,
|
|
2082
2090
|
columns: r.columns,
|
|
@@ -2100,39 +2108,39 @@ const Pt = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Ft = { class: "cl-gap-1
|
|
|
2100
2108
|
}, Re({ _: 2 }, [
|
|
2101
2109
|
J(r.$slots, (B, O) => ({
|
|
2102
2110
|
name: O,
|
|
2103
|
-
fn:
|
|
2104
|
-
|
|
2111
|
+
fn: P((R) => [
|
|
2112
|
+
S(r.$slots, O, te(ae(R)))
|
|
2105
2113
|
])
|
|
2106
2114
|
}))
|
|
2107
|
-
]), 1032, ["data", "columns", "time-zone", "edit-mode", "class", "onClick", "onCellFocus", "onCellEdit"]))), 128)) : r.loading ? q("", !0) : (u(), v("tr",
|
|
2115
|
+
]), 1032, ["data", "columns", "time-zone", "edit-mode", "class", "onClick", "onCellFocus", "onCellEdit"]))), 128)) : r.loading ? q("", !0) : (u(), v("tr", to, [
|
|
2108
2116
|
f("td", {
|
|
2109
2117
|
colspan: r.columns.length
|
|
2110
2118
|
}, [
|
|
2111
|
-
f("div",
|
|
2112
|
-
f("strong",
|
|
2113
|
-
r.request.filters.length > 0 ? (u(), v("div",
|
|
2114
|
-
f("div",
|
|
2119
|
+
f("div", no, [
|
|
2120
|
+
f("strong", so, E(d(l)("grid.noData")), 1),
|
|
2121
|
+
r.request.filters.length > 0 ? (u(), v("div", ao, [
|
|
2122
|
+
f("div", ro, E(d(l)("grid.noDataFiltersPresent")), 1),
|
|
2115
2123
|
$(me, {
|
|
2116
2124
|
size: "small",
|
|
2117
2125
|
colour: "danger",
|
|
2118
2126
|
onClick: w[0] || (w[0] = K((T) => r.$emit("clear-filters"), ["prevent"]))
|
|
2119
2127
|
}, {
|
|
2120
|
-
default:
|
|
2128
|
+
default: P(() => [
|
|
2121
2129
|
le(E(d(l)("grid.clearFilters")), 1)
|
|
2122
2130
|
]),
|
|
2123
2131
|
_: 1
|
|
2124
2132
|
})
|
|
2125
2133
|
])) : q("", !0)
|
|
2126
2134
|
])
|
|
2127
|
-
], 8,
|
|
2135
|
+
], 8, oo)
|
|
2128
2136
|
]))
|
|
2129
2137
|
]);
|
|
2130
2138
|
};
|
|
2131
2139
|
}
|
|
2132
|
-
}),
|
|
2140
|
+
}), co = {
|
|
2133
2141
|
key: 0,
|
|
2134
2142
|
class: "cl-flex cl-flex-wrap cl-justify-end cl-mt-2 cl-w-full"
|
|
2135
|
-
},
|
|
2143
|
+
}, uo = { 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" }, po = { class: "cl-text-grey-3 cl-w-max" }, fo = { 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" }, mo = { 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" }, go = { class: "cl-flex cl-flex-wrap cl-mb-2 cl-w-full lg:cl-mb-0 lg:cl-mr-2 lg:cl-w-auto" }, vo = { class: "cl-text-grey-3 cl-w-full lg:cl-mr-2 lg:cl-w-auto" }, bo = { class: "cl-flex cl-flex-wrap cl-text-sm mb:cl-flex-nowrap" }, ho = { class: "cl-pr-2" }, yo = ["onClick"], 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-mb-2 cl-text-grey-3 cl-w-full lg:cl-mb-0 lg:cl-mr-2 lg:cl-w-auto" }, ko = ["onClick"], Co = { class: "cl-mb-2 cl-w-full lg:cl-p-2 md:cl-mb-0 md:cl-w-auto" }, To = { 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" }, Eo = { class: "cl-block lg:cl-inline-block" }, Oo = /* @__PURE__ */ U({
|
|
2136
2144
|
__name: "cl-ui-grid-footer",
|
|
2137
2145
|
props: {
|
|
2138
2146
|
request: {},
|
|
@@ -2142,10 +2150,10 @@ const Pt = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Ft = { class: "cl-gap-1
|
|
|
2142
2150
|
"update:request": null
|
|
2143
2151
|
},
|
|
2144
2152
|
setup(t, { emit: o }) {
|
|
2145
|
-
const e = t, { n: l, t: n } =
|
|
2153
|
+
const e = t, { n: l, t: n } = ne(), p = N(() => {
|
|
2146
2154
|
var r;
|
|
2147
2155
|
return e.data !== null ? Math.ceil((((r = e.data) == null ? void 0 : r.totalRecords) ?? 0) / e.request.pageSize) : 1;
|
|
2148
|
-
}), s =
|
|
2156
|
+
}), s = N(() => {
|
|
2149
2157
|
const r = Array.from(Array(p.value + 1).keys());
|
|
2150
2158
|
let w = [];
|
|
2151
2159
|
if (r.shift(), r.length) {
|
|
@@ -2177,10 +2185,10 @@ const Pt = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Ft = { class: "cl-gap-1
|
|
|
2177
2185
|
const b = Ke(i, 750);
|
|
2178
2186
|
return (r, w) => {
|
|
2179
2187
|
var h, T;
|
|
2180
|
-
return (T = (h = r.data) == null ? void 0 : h.results) != null && T.length && r.request ? (u(), v("div",
|
|
2181
|
-
f("div",
|
|
2182
|
-
f("span",
|
|
2183
|
-
$(
|
|
2188
|
+
return (T = (h = r.data) == null ? void 0 : h.results) != null && T.length && r.request ? (u(), v("div", co, [
|
|
2189
|
+
f("div", uo, [
|
|
2190
|
+
f("span", po, E(d(n)("grid.jumpToPage")), 1),
|
|
2191
|
+
$(ie, {
|
|
2184
2192
|
"model-value": r.request.pageNumber,
|
|
2185
2193
|
class: "cl-ml-1 cl-mt-0.5 cl-text-sm",
|
|
2186
2194
|
"input-type": "number",
|
|
@@ -2191,13 +2199,13 @@ const Pt = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Ft = { class: "cl-gap-1
|
|
|
2191
2199
|
onInput: w[0] || (w[0] = (k) => d(b)(k.target))
|
|
2192
2200
|
}, null, 8, ["model-value", "max"])
|
|
2193
2201
|
]),
|
|
2194
|
-
f("div",
|
|
2195
|
-
f("div",
|
|
2196
|
-
f("li",
|
|
2197
|
-
f("span",
|
|
2202
|
+
f("div", fo, [
|
|
2203
|
+
f("div", mo, [
|
|
2204
|
+
f("li", go, [
|
|
2205
|
+
f("span", vo, E(d(n)("grid.page")), 1)
|
|
2198
2206
|
]),
|
|
2199
|
-
f("ul",
|
|
2200
|
-
f("li",
|
|
2207
|
+
f("ul", bo, [
|
|
2208
|
+
f("li", ho, E(d(l)(r.request.pageNumber, d(X).INTEGER)) + " / " + E(d(l)(p.value, d(X).INTEGER)), 1),
|
|
2201
2209
|
L(f("li", {
|
|
2202
2210
|
class: "cl-cursor-pointer cl-mr-1 cl-mt-1 lg:cl-mr-2",
|
|
2203
2211
|
onClick: w[1] || (w[1] = (k) => a(1))
|
|
@@ -2220,14 +2228,14 @@ const Pt = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Ft = { class: "cl-gap-1
|
|
|
2220
2228
|
], 512), [
|
|
2221
2229
|
[H, r.request.pageNumber > 1]
|
|
2222
2230
|
]),
|
|
2223
|
-
(u(!0), v(
|
|
2231
|
+
(u(!0), v(F, null, J(s.value, (k, B) => (u(), v("li", {
|
|
2224
2232
|
key: B,
|
|
2225
2233
|
class: _(["cl-cursor-pointer cl-mr-1 lg:cl-mr-2", {
|
|
2226
2234
|
"cl-text-black cl-font-bold": r.request.pageNumber === k,
|
|
2227
2235
|
"cl-text-grey-6": r.request.pageNumber !== k
|
|
2228
2236
|
}]),
|
|
2229
2237
|
onClick: (O) => a(k)
|
|
2230
|
-
}, E(d(l)(k, d(X).INTEGER)), 11,
|
|
2238
|
+
}, E(d(l)(k, d(X).INTEGER)), 11, yo))), 128)),
|
|
2231
2239
|
L(f("li", {
|
|
2232
2240
|
class: "cl-cursor-pointer cl-mr-1 cl-mt-1 lg:cl-mr-2",
|
|
2233
2241
|
onClick: w[3] || (w[3] = (k) => a(r.request.pageNumber + 1))
|
|
@@ -2252,26 +2260,26 @@ const Pt = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Ft = { class: "cl-gap-1
|
|
|
2252
2260
|
])
|
|
2253
2261
|
])
|
|
2254
2262
|
]),
|
|
2255
|
-
f("ul",
|
|
2256
|
-
f("li",
|
|
2257
|
-
(u(), v(
|
|
2263
|
+
f("ul", wo, [
|
|
2264
|
+
f("li", $o, E(d(n)("grid.pageSize")), 1),
|
|
2265
|
+
(u(), v(F, null, J(c, (k, B) => f("li", {
|
|
2258
2266
|
key: B,
|
|
2259
2267
|
class: _(["cl-cursor-pointer cl-mr-1 lg:cl-mr-2", {
|
|
2260
2268
|
"cl-text-black cl-font-bold": r.request.pageSize === k,
|
|
2261
2269
|
"cl-text-grey-6": r.request.pageSize !== k
|
|
2262
2270
|
}]),
|
|
2263
2271
|
onClick: (O) => m(k)
|
|
2264
|
-
}, E(d(l)(k, d(X).INTEGER)), 11,
|
|
2272
|
+
}, E(d(l)(k, d(X).INTEGER)), 11, ko)), 64))
|
|
2265
2273
|
]),
|
|
2266
|
-
f("ul",
|
|
2267
|
-
f("li",
|
|
2268
|
-
f("li",
|
|
2274
|
+
f("ul", Co, [
|
|
2275
|
+
f("li", To, E(d(n)("grid.totalRecords")), 1),
|
|
2276
|
+
f("li", Eo, E(d(l)(r.data.totalRecords, d(X).INTEGER)), 1)
|
|
2269
2277
|
])
|
|
2270
2278
|
])
|
|
2271
2279
|
])) : q("", !0);
|
|
2272
2280
|
};
|
|
2273
2281
|
}
|
|
2274
|
-
}),
|
|
2282
|
+
}), Ao = [
|
|
2275
2283
|
"string",
|
|
2276
2284
|
"boolean",
|
|
2277
2285
|
"number",
|
|
@@ -2283,7 +2291,7 @@ const Pt = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Ft = { class: "cl-gap-1
|
|
|
2283
2291
|
function Xe(t) {
|
|
2284
2292
|
return typeof t.caption == "string" && typeof t.name == "string" && typeof t.type == "string";
|
|
2285
2293
|
}
|
|
2286
|
-
function
|
|
2294
|
+
function qo(t) {
|
|
2287
2295
|
let o = Array.isArray(t);
|
|
2288
2296
|
if (o) {
|
|
2289
2297
|
for (const e of t)
|
|
@@ -2294,9 +2302,9 @@ function Oo(t) {
|
|
|
2294
2302
|
}
|
|
2295
2303
|
return o;
|
|
2296
2304
|
}
|
|
2297
|
-
const
|
|
2298
|
-
var
|
|
2299
|
-
const
|
|
2305
|
+
const So = ["ellipsis"];
|
|
2306
|
+
var oe = /* @__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))(oe || {});
|
|
2307
|
+
const No = [
|
|
2300
2308
|
"equal",
|
|
2301
2309
|
"notequal",
|
|
2302
2310
|
"contains",
|
|
@@ -2308,24 +2316,24 @@ const qo = [
|
|
|
2308
2316
|
"equalorlessthan",
|
|
2309
2317
|
"equalorgreaterthan"
|
|
2310
2318
|
];
|
|
2311
|
-
function
|
|
2319
|
+
function jo(t) {
|
|
2312
2320
|
return typeof t.filterOnColumn == "string" && typeof t.filterOperation == "number" && typeof t.filterValue == "string";
|
|
2313
2321
|
}
|
|
2314
|
-
function
|
|
2322
|
+
function _o(t) {
|
|
2315
2323
|
return t === null || typeof t.sortByAscending == "boolean" && typeof t.sortOnColumn == "string";
|
|
2316
2324
|
}
|
|
2317
|
-
function
|
|
2318
|
-
let o = typeof t.filters == "object" && Array.isArray(t.filters) && typeof t.pageNumber == "number" && typeof t.pageSize == "number" && typeof t.sort == "object" &&
|
|
2325
|
+
function Io(t) {
|
|
2326
|
+
let o = typeof t.filters == "object" && Array.isArray(t.filters) && typeof t.pageNumber == "number" && typeof t.pageSize == "number" && typeof t.sort == "object" && _o(t.sort);
|
|
2319
2327
|
if (o) {
|
|
2320
2328
|
for (const e of t.filters)
|
|
2321
|
-
if (!
|
|
2329
|
+
if (!jo(e)) {
|
|
2322
2330
|
o = !1;
|
|
2323
2331
|
break;
|
|
2324
2332
|
}
|
|
2325
2333
|
}
|
|
2326
2334
|
return o;
|
|
2327
2335
|
}
|
|
2328
|
-
function
|
|
2336
|
+
function Ro(t, o) {
|
|
2329
2337
|
let e = typeof t.results == "object" && Array.isArray(t.results) && typeof t.totalRecords == "number";
|
|
2330
2338
|
if (e) {
|
|
2331
2339
|
for (const l of t.results)
|
|
@@ -2336,7 +2344,7 @@ function _o(t, o) {
|
|
|
2336
2344
|
}
|
|
2337
2345
|
return e;
|
|
2338
2346
|
}
|
|
2339
|
-
const
|
|
2347
|
+
const zo = {
|
|
2340
2348
|
method: "equal",
|
|
2341
2349
|
icon: "mdi:equal",
|
|
2342
2350
|
description: "Equals",
|
|
@@ -2349,12 +2357,12 @@ const Io = {
|
|
|
2349
2357
|
"list"
|
|
2350
2358
|
],
|
|
2351
2359
|
key: "equal"
|
|
2352
|
-
},
|
|
2360
|
+
}, Uo = {
|
|
2353
2361
|
method: "contains",
|
|
2354
2362
|
icon: "mdi:format-letter-matches",
|
|
2355
2363
|
description: "Contains",
|
|
2356
2364
|
allowedTypes: ["string"]
|
|
2357
|
-
},
|
|
2365
|
+
}, Bo = {
|
|
2358
2366
|
method: "lessthan",
|
|
2359
2367
|
icon: "mdi:less-than",
|
|
2360
2368
|
description: "Before",
|
|
@@ -2364,7 +2372,7 @@ const Io = {
|
|
|
2364
2372
|
],
|
|
2365
2373
|
key: "before"
|
|
2366
2374
|
}, Ze = [
|
|
2367
|
-
|
|
2375
|
+
Uo,
|
|
2368
2376
|
{
|
|
2369
2377
|
method: "notcontains",
|
|
2370
2378
|
icon: "mdi:format-letter-spacing-variant",
|
|
@@ -2383,7 +2391,7 @@ const Io = {
|
|
|
2383
2391
|
description: "Ends with",
|
|
2384
2392
|
allowedTypes: ["string"]
|
|
2385
2393
|
},
|
|
2386
|
-
|
|
2394
|
+
zo,
|
|
2387
2395
|
{
|
|
2388
2396
|
method: "notequal",
|
|
2389
2397
|
icon: "mdi:not-equal",
|
|
@@ -2396,7 +2404,7 @@ const Io = {
|
|
|
2396
2404
|
],
|
|
2397
2405
|
key: "notequal"
|
|
2398
2406
|
},
|
|
2399
|
-
|
|
2407
|
+
Bo,
|
|
2400
2408
|
{
|
|
2401
2409
|
method: "greaterthan",
|
|
2402
2410
|
icon: "mdi:greater-than",
|
|
@@ -2451,7 +2459,7 @@ const Io = {
|
|
|
2451
2459
|
description: "Less than",
|
|
2452
2460
|
allowedTypes: ["number"]
|
|
2453
2461
|
}
|
|
2454
|
-
],
|
|
2462
|
+
], Mo = { class: "cl-group cl-inline cl-relative cl-w-auto" }, Vo = { 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" }, Do = { class: "cl-p-2 cl-select-none" }, Lo = ["onClick"], Po = /* @__PURE__ */ U({
|
|
2455
2463
|
__name: "cl-ui-grid-method-selector",
|
|
2456
2464
|
props: {
|
|
2457
2465
|
filter: {},
|
|
@@ -2461,17 +2469,17 @@ const Io = {
|
|
|
2461
2469
|
},
|
|
2462
2470
|
emits: ["update:filter"],
|
|
2463
2471
|
setup(t, { emit: o }) {
|
|
2464
|
-
const e = t, { t: l } =
|
|
2472
|
+
const e = t, { t: l } = ne(), n = N(() => {
|
|
2465
2473
|
let a = [];
|
|
2466
2474
|
return e.column.type !== "slot" ? a = Ze.filter((i) => i.allowedTypes.includes(e.column.type)) : typeof e.column.slotType < "u" && typeof e.column.field < "u" && (a = Ze.filter((i) => i.allowedTypes.includes(e.column.slotType))), e.column.type === "date" || e.column.type === "datetime" || e.column.slotType === "date" || e.column.slotType === "datetime" ? a.forEach((i) => {
|
|
2467
2475
|
i.description = l(`grid.${i.key}`);
|
|
2468
2476
|
}) : a.forEach((i) => {
|
|
2469
2477
|
i.description = l(`grid.${i.method}`);
|
|
2470
2478
|
}), a;
|
|
2471
|
-
}), p =
|
|
2479
|
+
}), p = N(() => {
|
|
2472
2480
|
var i;
|
|
2473
2481
|
let a = (i = e.filter) == null ? void 0 : i.filterMethod;
|
|
2474
|
-
return typeof a > "u" && (a =
|
|
2482
|
+
return typeof a > "u" && (a = oe[e.defaultOperation].toLowerCase()), n.value.find((c) => {
|
|
2475
2483
|
var m;
|
|
2476
2484
|
return c.method.toLowerCase() === ((m = a == null ? void 0 : a.removeNonAlphanumeric()) == null ? void 0 : m.toLowerCase());
|
|
2477
2485
|
});
|
|
@@ -2479,20 +2487,20 @@ const Io = {
|
|
|
2479
2487
|
function s(a) {
|
|
2480
2488
|
let i;
|
|
2481
2489
|
if (e.filter)
|
|
2482
|
-
i = ce(e.filter), i.filterOperation =
|
|
2490
|
+
i = ce(e.filter), i.filterOperation = oe[a.toUpperCase()], i.filterMethod = a.toLowerCase();
|
|
2483
2491
|
else if (typeof e.column.field < "u")
|
|
2484
2492
|
i = {
|
|
2485
2493
|
filterOnColumn: e.column.field,
|
|
2486
2494
|
filterMethod: a.toLowerCase(),
|
|
2487
|
-
filterOperation:
|
|
2495
|
+
filterOperation: oe[a.toUpperCase()],
|
|
2488
2496
|
filterValue: ""
|
|
2489
2497
|
};
|
|
2490
2498
|
else
|
|
2491
2499
|
return;
|
|
2492
2500
|
o("update:filter", i);
|
|
2493
2501
|
}
|
|
2494
|
-
return (a, i) => (u(), v("div",
|
|
2495
|
-
f("div",
|
|
2502
|
+
return (a, i) => (u(), v("div", Mo, [
|
|
2503
|
+
f("div", Vo, [
|
|
2496
2504
|
p.value ? (u(), V(d(I), {
|
|
2497
2505
|
key: 0,
|
|
2498
2506
|
icon: p.value.icon,
|
|
@@ -2508,8 +2516,8 @@ const Io = {
|
|
|
2508
2516
|
"cl--left-44": !a.firstHalf
|
|
2509
2517
|
}])
|
|
2510
2518
|
}, [
|
|
2511
|
-
f("strong",
|
|
2512
|
-
(u(!0), v(
|
|
2519
|
+
f("strong", Do, E(d(l)("grid.availableMethods")), 1),
|
|
2520
|
+
(u(!0), v(F, null, J(n.value, (c, m) => {
|
|
2513
2521
|
var b;
|
|
2514
2522
|
return u(), v("span", {
|
|
2515
2523
|
key: m,
|
|
@@ -2523,15 +2531,15 @@ const Io = {
|
|
|
2523
2531
|
icon: c.icon,
|
|
2524
2532
|
class: "cl-float-right cl-text-grey-4 cl-text-sm"
|
|
2525
2533
|
}, null, 8, ["icon"])
|
|
2526
|
-
], 10,
|
|
2534
|
+
], 10, Lo);
|
|
2527
2535
|
}), 128))
|
|
2528
2536
|
], 2)
|
|
2529
2537
|
]));
|
|
2530
2538
|
}
|
|
2531
|
-
}),
|
|
2539
|
+
}), Fo = {
|
|
2532
2540
|
key: 0,
|
|
2533
2541
|
class: "cl-border cl-border-grey-2 cl-flex cl-overflow-hidden cl-rounded-md lg:cl-overflow-visible"
|
|
2534
|
-
},
|
|
2542
|
+
}, Ho = /* @__PURE__ */ f("option", { value: void 0 }, null, -1), Go = ["selected"], Zo = ["selected"], xo = /* @__PURE__ */ f("option", { value: void 0 }, null, -1), Wo = ["value", "selected"], Ko = /* @__PURE__ */ U({
|
|
2535
2543
|
__name: "cl-ui-grid-filter",
|
|
2536
2544
|
props: {
|
|
2537
2545
|
filter: {},
|
|
@@ -2541,22 +2549,22 @@ const Io = {
|
|
|
2541
2549
|
},
|
|
2542
2550
|
emits: ["update:filter"],
|
|
2543
2551
|
setup(t, { emit: o }) {
|
|
2544
|
-
const e = t, { locale: l, t: n } =
|
|
2552
|
+
const e = t, { locale: l, t: n } = ne();
|
|
2545
2553
|
function p() {
|
|
2546
|
-
return e.column.type === "string" || e.column.slotType === "string" ?
|
|
2554
|
+
return e.column.type === "string" || e.column.slotType === "string" ? oe.CONTAINS : e.column.type === "datetime" || e.column.slotType === "datetime" || e.column.type === "date" || e.column.slotType === "date" ? oe.LESS_THAN : oe.EQUAL;
|
|
2547
2555
|
}
|
|
2548
|
-
const s =
|
|
2556
|
+
const s = N({
|
|
2549
2557
|
get: () => e.filter,
|
|
2550
2558
|
set: (O) => o("update:filter", O)
|
|
2551
|
-
}), a =
|
|
2559
|
+
}), a = N(() => e.column.type === "date" || e.column.type === "datetime" || e.column.type === "slot" && (e.column.slotType === "date" || e.column.slotType === "datetime")), i = N(() => e.column.type === "list" || e.column.type === "slot" && e.column.slotType === "list"), c = N(() => i.value && e.column.listType === "number"), m = N({
|
|
2552
2560
|
get() {
|
|
2553
2561
|
var R, z, y, D;
|
|
2554
2562
|
let O = (R = s.value) == null ? void 0 : R[0];
|
|
2555
2563
|
if (O && a.value && (((z = e.filter) == null ? void 0 : z.length) ?? 0 > 1)) {
|
|
2556
|
-
const Y = (y = s.value) == null ? void 0 : y.find((ue) => ue.filterOperation ===
|
|
2564
|
+
const Y = (y = s.value) == null ? void 0 : y.find((ue) => ue.filterOperation === oe.EQUAL_OR_GREATER_THAN), W = (D = s.value) == null ? void 0 : D.find((ue) => ue.filterOperation === oe.LESS_THAN);
|
|
2557
2565
|
Y && W && (O = {
|
|
2558
2566
|
filterOnColumn: e.column.field,
|
|
2559
|
-
filterOperation:
|
|
2567
|
+
filterOperation: oe.EQUAL,
|
|
2560
2568
|
filterMethod: "equal",
|
|
2561
2569
|
filterValue: Y.filterValue
|
|
2562
2570
|
});
|
|
@@ -2574,13 +2582,13 @@ const Io = {
|
|
|
2574
2582
|
s.value = [
|
|
2575
2583
|
{
|
|
2576
2584
|
filterOnColumn: e.column.field,
|
|
2577
|
-
filterOperation:
|
|
2585
|
+
filterOperation: oe.EQUAL_OR_GREATER_THAN,
|
|
2578
2586
|
filterMethod: "equalorgreaterthan",
|
|
2579
2587
|
filterValue: z
|
|
2580
2588
|
},
|
|
2581
2589
|
{
|
|
2582
2590
|
filterOnColumn: e.column.field,
|
|
2583
|
-
filterOperation:
|
|
2591
|
+
filterOperation: oe.LESS_THAN,
|
|
2584
2592
|
filterMethod: "lessthan",
|
|
2585
2593
|
filterValue: y
|
|
2586
2594
|
}
|
|
@@ -2590,13 +2598,13 @@ const Io = {
|
|
|
2590
2598
|
}
|
|
2591
2599
|
});
|
|
2592
2600
|
function b(O, R) {
|
|
2593
|
-
const z = R !== void 0 && R !== "", y = O ===
|
|
2601
|
+
const z = R !== void 0 && R !== "", y = O === oe.EQUAL;
|
|
2594
2602
|
return z && y && a.value;
|
|
2595
2603
|
}
|
|
2596
|
-
const r =
|
|
2604
|
+
const r = N(() => {
|
|
2597
2605
|
var O;
|
|
2598
2606
|
return ((O = m.value) == null ? void 0 : O.filterValue) ?? "";
|
|
2599
|
-
}), w =
|
|
2607
|
+
}), w = N(() => r.value === "" ? null : r.value), h = N(() => Intl.NumberFormat(l.value).format(1.1).replace(/[0-9]+/g, "")), T = N(() => Ue(e.column));
|
|
2600
2608
|
function k(O, R) {
|
|
2601
2609
|
var Y;
|
|
2602
2610
|
let z, y = !1;
|
|
@@ -2607,7 +2615,7 @@ const Io = {
|
|
|
2607
2615
|
const W = p();
|
|
2608
2616
|
z = {
|
|
2609
2617
|
filterOnColumn: e.column.field,
|
|
2610
|
-
filterMethod:
|
|
2618
|
+
filterMethod: oe[W].toLowerCase(),
|
|
2611
2619
|
filterOperation: W,
|
|
2612
2620
|
filterValue: D
|
|
2613
2621
|
};
|
|
@@ -2619,22 +2627,22 @@ const Io = {
|
|
|
2619
2627
|
let z, y = (O == null ? void 0 : O.value) ?? R ?? 0;
|
|
2620
2628
|
e.column.format === X.INTEGER ? (typeof y == "string" && (y = parseInt(y)), z = Math.round(y)) : (typeof y == "string" && (y = parseFloat(y.replace(h.value, "."))), z = y), k(null, isNaN(z) ? "" : z.toString());
|
|
2621
2629
|
}
|
|
2622
|
-
return (O, R) => T.value ? (u(), v("div",
|
|
2630
|
+
return (O, R) => T.value ? (u(), v("div", Fo, [
|
|
2623
2631
|
O.column.type === "boolean" || O.column.slotType === "boolean" ? (u(), v("select", {
|
|
2624
2632
|
key: 0,
|
|
2625
2633
|
class: "!cl-h-[2rem] cl-border-none cl-mb-0 cl-rounded-md cl-w-full",
|
|
2626
2634
|
onChange: R[0] || (R[0] = (z) => k(z.target))
|
|
2627
2635
|
}, [
|
|
2628
|
-
|
|
2636
|
+
Ho,
|
|
2629
2637
|
f("option", {
|
|
2630
2638
|
value: "true",
|
|
2631
2639
|
selected: r.value === "true"
|
|
2632
|
-
}, E(d(n)("grid.true")), 9,
|
|
2640
|
+
}, E(d(n)("grid.true")), 9, Go),
|
|
2633
2641
|
f("option", {
|
|
2634
2642
|
value: "false",
|
|
2635
2643
|
selected: r.value === "false"
|
|
2636
|
-
}, E(d(n)("grid.false")), 9,
|
|
2637
|
-
], 32)) : O.column.type === "date" || O.column.type === "datetime" || O.column.slotType === "date" || O.column.slotType === "datetime" ? (u(), V(
|
|
2644
|
+
}, E(d(n)("grid.false")), 9, Zo)
|
|
2645
|
+
], 32)) : O.column.type === "date" || O.column.type === "datetime" || O.column.slotType === "date" || O.column.slotType === "datetime" ? (u(), V(ie, {
|
|
2638
2646
|
key: 1,
|
|
2639
2647
|
"model-value": w.value,
|
|
2640
2648
|
class: "!cl-h-[2rem] !cl-text-xs cl-border-none cl-mb-0 cl-w-full lg:!cl-text-base",
|
|
@@ -2643,14 +2651,14 @@ const Io = {
|
|
|
2643
2651
|
"input-type": O.column.type === "slot" ? O.column.slotType : O.column.type,
|
|
2644
2652
|
"time-zone": O.timeZone,
|
|
2645
2653
|
"onUpdate:modelValue": R[1] || (R[1] = (z) => k(null, z ?? ""))
|
|
2646
|
-
}, null, 8, ["model-value", "label", "input-type", "time-zone"])) : O.column.type === "number" || O.column.slotType === "number" ? (u(), V(
|
|
2654
|
+
}, null, 8, ["model-value", "label", "input-type", "time-zone"])) : O.column.type === "number" || O.column.slotType === "number" ? (u(), V(ie, {
|
|
2647
2655
|
key: 2,
|
|
2648
2656
|
"model-value": r.value,
|
|
2649
2657
|
class: "!cl-h-[2rem] !cl-text-xs cl-border-none cl-mb-0 cl-w-full lg:!cl-text-base",
|
|
2650
2658
|
"input-type": "number",
|
|
2651
2659
|
"show-arrows": !1,
|
|
2652
2660
|
onInput: R[2] || (R[2] = (z, y) => B(null, y))
|
|
2653
|
-
}, null, 8, ["model-value"])) : O.column.type === "string" || O.column.slotType === "string" ? (u(), V(
|
|
2661
|
+
}, null, 8, ["model-value"])) : O.column.type === "string" || O.column.slotType === "string" ? (u(), V(ie, {
|
|
2654
2662
|
key: 3,
|
|
2655
2663
|
"model-value": r.value,
|
|
2656
2664
|
class: "!cl-h-[2rem] !cl-text-xs cl-border-none cl-mb-0 cl-w-full lg:!cl-text-base",
|
|
@@ -2661,14 +2669,14 @@ const Io = {
|
|
|
2661
2669
|
class: "!cl-h-[2rem] cl-border-none cl-mb-0 cl-rounded-md cl-w-full",
|
|
2662
2670
|
onChange: R[4] || (R[4] = (z) => c.value ? B(z.target) : k(z.target))
|
|
2663
2671
|
}, [
|
|
2664
|
-
|
|
2665
|
-
(u(!0), v(
|
|
2672
|
+
xo,
|
|
2673
|
+
(u(!0), v(F, null, J(O.column.listEntries ?? [], (z) => (u(), v("option", {
|
|
2666
2674
|
key: z.value,
|
|
2667
2675
|
value: z.value,
|
|
2668
2676
|
selected: r.value === z.value.toString()
|
|
2669
|
-
}, E(d(n)(z.translationKey)), 9,
|
|
2677
|
+
}, E(d(n)(z.translationKey)), 9, Wo))), 128))
|
|
2670
2678
|
], 32)) : q("", !0),
|
|
2671
|
-
$(
|
|
2679
|
+
$(Po, {
|
|
2672
2680
|
filter: m.value,
|
|
2673
2681
|
"onUpdate:filter": R[5] || (R[5] = (z) => m.value = z),
|
|
2674
2682
|
column: O.column,
|
|
@@ -2677,7 +2685,7 @@ const Io = {
|
|
|
2677
2685
|
}, null, 8, ["filter", "column", "default-operation", "first-half"])
|
|
2678
2686
|
])) : q("", !0);
|
|
2679
2687
|
}
|
|
2680
|
-
}),
|
|
2688
|
+
}), Qo = { class: "-cl-top-1 cl-bg-white cl-shadow-sm cl-sticky cl-z-30 lg:cl-bg-transparent lg:cl-relative lg:cl-shadow-none" }, Jo = { class: "cl-hidden lg:cl-table-row" }, Yo = ["onClick"], Xo = { class: "cl-flex cl-justify-end cl-w-full lg:cl-hidden" }, en = { class: "cl-col-span-2 lg:cl-hidden" }, ln = ["onClick"], tn = { class: "cl-font-normal cl-mr-1" }, on = /* @__PURE__ */ U({
|
|
2681
2689
|
__name: "cl-ui-grid-header",
|
|
2682
2690
|
props: {
|
|
2683
2691
|
request: {},
|
|
@@ -2688,7 +2696,7 @@ const Io = {
|
|
|
2688
2696
|
},
|
|
2689
2697
|
emits: ["update:request", "update:filterPanelOpen"],
|
|
2690
2698
|
setup(t, { emit: o }) {
|
|
2691
|
-
const e = t, { t: l } =
|
|
2699
|
+
const e = t, { t: l } = ne(), n = N({
|
|
2692
2700
|
get: () => e.request,
|
|
2693
2701
|
set: (i) => o("update:request", i)
|
|
2694
2702
|
});
|
|
@@ -2714,9 +2722,9 @@ const Io = {
|
|
|
2714
2722
|
], c.pageNumber = 1, n.value = c;
|
|
2715
2723
|
}
|
|
2716
2724
|
}
|
|
2717
|
-
return (i, c) => (u(), v("thead",
|
|
2718
|
-
f("tr",
|
|
2719
|
-
(u(!0), v(
|
|
2725
|
+
return (i, c) => (u(), v("thead", Qo, [
|
|
2726
|
+
f("tr", Jo, [
|
|
2727
|
+
(u(!0), v(F, null, J(i.columns, (m, b) => (u(), v("th", {
|
|
2720
2728
|
key: b,
|
|
2721
2729
|
class: _(["cl-text-grey-3 cl-text-sm", {
|
|
2722
2730
|
"cl-cursor-pointer": d(Oe)(m)
|
|
@@ -2737,14 +2745,14 @@ const Io = {
|
|
|
2737
2745
|
}, null, 512), [
|
|
2738
2746
|
[H, p(m, !1)]
|
|
2739
2747
|
])
|
|
2740
|
-
], 10,
|
|
2748
|
+
], 10, Yo))), 128))
|
|
2741
2749
|
]),
|
|
2742
2750
|
f("tr", {
|
|
2743
2751
|
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", {
|
|
2744
2752
|
"cl-hidden lg:cl-table-row": !i.filterPanelOpen
|
|
2745
2753
|
}])
|
|
2746
2754
|
}, [
|
|
2747
|
-
f("div",
|
|
2755
|
+
f("div", Xo, [
|
|
2748
2756
|
$(d(I), {
|
|
2749
2757
|
class: "cl-text-grey-4 hover:cl-cursor-pointer hover:cl-text-link-default",
|
|
2750
2758
|
icon: "ph:x",
|
|
@@ -2752,19 +2760,19 @@ const Io = {
|
|
|
2752
2760
|
onClick: c[0] || (c[0] = K((m) => i.$emit("update:filterPanelOpen", !1), ["prevent"]))
|
|
2753
2761
|
})
|
|
2754
2762
|
]),
|
|
2755
|
-
(u(!0), v(
|
|
2763
|
+
(u(!0), v(F, null, J(i.columns, (m, b) => (u(), v("th", {
|
|
2756
2764
|
key: b,
|
|
2757
2765
|
class: _(["cl-grid cl-grid-cols-4 cl-py-1 cl-text-xs cl-w-full lg:cl-table-cell lg:cl-w-auto", {
|
|
2758
2766
|
"cl-hidden lg:cl-table-cell": !d(Ue)(m)
|
|
2759
2767
|
}])
|
|
2760
2768
|
}, [
|
|
2761
|
-
f("div",
|
|
2769
|
+
f("div", en, E(m.caption), 1),
|
|
2762
2770
|
d(Oe)(m) ? (u(), v("div", {
|
|
2763
2771
|
key: 0,
|
|
2764
2772
|
class: "cl-col-span-2 cl-gap-1 cl-span lg:cl-hidden",
|
|
2765
2773
|
onClick: (r) => s(m.field)
|
|
2766
2774
|
}, [
|
|
2767
|
-
f("span",
|
|
2775
|
+
f("span", tn, E(d(l)("grid.sortBy")), 1),
|
|
2768
2776
|
p(m, !0) ? (u(), V(d(I), {
|
|
2769
2777
|
key: 0,
|
|
2770
2778
|
class: "cl-cursor-pointer cl-inline-block",
|
|
@@ -2778,8 +2786,8 @@ const Io = {
|
|
|
2778
2786
|
class: "cl-cursor-pointer cl-inline-block",
|
|
2779
2787
|
icon: "ph:minus"
|
|
2780
2788
|
}))
|
|
2781
|
-
], 8,
|
|
2782
|
-
$(
|
|
2789
|
+
], 8, ln)) : q("", !0),
|
|
2790
|
+
$(Ko, {
|
|
2783
2791
|
class: "cl-col-span-4",
|
|
2784
2792
|
filter: n.value.filters.filter((r) => r.filterOnColumn === m.field),
|
|
2785
2793
|
column: m,
|
|
@@ -2791,7 +2799,7 @@ const Io = {
|
|
|
2791
2799
|
], 2)
|
|
2792
2800
|
]));
|
|
2793
2801
|
}
|
|
2794
|
-
}),
|
|
2802
|
+
}), nn = { class: "cl-fixed cl-flex cl-h-full cl-justify-end cl-right-0 cl-shadow-lg cl-top-0 cl-z-50" }, sn = { 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" }, an = { class: "cl-mb-4 cl-text-2xl cl-text-off-white" }, rn = { class: "cl-border-grey-3 cl-border-t cl-flex cl-flex-wrap cl-text-sm cl-w-full" }, cn = { class: "cl-border-b cl-border-grey-2 cl-flex cl-py-2 cl-text-sm cl-w-full" }, un = { class: "cl-flex-1 cl-py-2" }, dn = { class: "cl-py-2 cl-w-1/4" }, pn = { class: "cl-py-2 cl-w-1/5" }, fn = { class: "cl-flex-1 cl-py-2" }, mn = { class: "cl-py-2 cl-w-1/4" }, gn = { class: "cl-py-2 cl-text-off-white cl-w-1/5" }, vn = { key: 1 }, bn = /* @__PURE__ */ U({
|
|
2795
2803
|
inheritAttrs: !1,
|
|
2796
2804
|
__name: "cl-ui-grid-view-manager",
|
|
2797
2805
|
props: {
|
|
@@ -2799,7 +2807,7 @@ const Io = {
|
|
|
2799
2807
|
},
|
|
2800
2808
|
emits: ["update:columns"],
|
|
2801
2809
|
setup(t, { emit: o }) {
|
|
2802
|
-
const e = t, { t: l } =
|
|
2810
|
+
const e = t, { t: l } = ne(), n = A(!1);
|
|
2803
2811
|
function p(i, c, m) {
|
|
2804
2812
|
m < i.length && m >= 0 && i.splice(m, 0, i.splice(c, 1)[0]);
|
|
2805
2813
|
}
|
|
@@ -2811,49 +2819,49 @@ const Io = {
|
|
|
2811
2819
|
const m = ce(e.columns), b = c === "up" ? i + 1 : i - 1;
|
|
2812
2820
|
p(m, i, b), o("update:columns", m);
|
|
2813
2821
|
}
|
|
2814
|
-
return (i, c) => (u(), v(
|
|
2815
|
-
$(me,
|
|
2822
|
+
return (i, c) => (u(), v(F, null, [
|
|
2823
|
+
$(me, re(i.$attrs, {
|
|
2816
2824
|
class: "cl-w-full",
|
|
2817
2825
|
size: "small",
|
|
2818
2826
|
onClick: c[0] || (c[0] = K((m) => n.value = !0, ["prevent"]))
|
|
2819
2827
|
}), {
|
|
2820
|
-
default:
|
|
2828
|
+
default: P(() => [
|
|
2821
2829
|
le(E(d(l)("grid.manageView")), 1)
|
|
2822
2830
|
]),
|
|
2823
2831
|
_: 1
|
|
2824
2832
|
}, 16),
|
|
2825
2833
|
(u(), V(_e, { to: "body" }, [
|
|
2826
2834
|
$(ge, { name: "slide-left" }, {
|
|
2827
|
-
default:
|
|
2828
|
-
L(f("div",
|
|
2829
|
-
f("div",
|
|
2835
|
+
default: P(() => [
|
|
2836
|
+
L(f("div", nn, [
|
|
2837
|
+
f("div", sn, [
|
|
2830
2838
|
$(d(I), {
|
|
2831
2839
|
class: "cl-absolute cl-cursor-pointer cl-right-3 cl-text-off-white cl-top-3",
|
|
2832
2840
|
icon: "ph:x",
|
|
2833
2841
|
size: 16,
|
|
2834
2842
|
onClick: c[1] || (c[1] = (m) => n.value = !1)
|
|
2835
2843
|
}),
|
|
2836
|
-
f("h3",
|
|
2837
|
-
f("ul",
|
|
2838
|
-
f("li",
|
|
2839
|
-
f("strong",
|
|
2840
|
-
f("strong",
|
|
2841
|
-
f("strong",
|
|
2844
|
+
f("h3", an, E(d(l)("grid.manageView")), 1),
|
|
2845
|
+
f("ul", rn, [
|
|
2846
|
+
f("li", cn, [
|
|
2847
|
+
f("strong", un, E(d(l)("grid.column")), 1),
|
|
2848
|
+
f("strong", dn, E(d(l)("grid.visible")), 1),
|
|
2849
|
+
f("strong", pn, E(d(l)("grid.order")), 1)
|
|
2842
2850
|
]),
|
|
2843
|
-
(u(!0), v(
|
|
2851
|
+
(u(!0), v(F, null, J(i.columns, (m, b) => (u(), v("li", {
|
|
2844
2852
|
key: b,
|
|
2845
2853
|
class: "cl-border-b cl-border-grey-2 cl-flex cl-py-2 cl-text-sm cl-w-full"
|
|
2846
2854
|
}, [
|
|
2847
|
-
f("div",
|
|
2848
|
-
f("div",
|
|
2849
|
-
$(
|
|
2855
|
+
f("div", fn, E(m.caption), 1),
|
|
2856
|
+
f("div", mn, [
|
|
2857
|
+
$(ie, {
|
|
2850
2858
|
"model-value": m.visible === void 0 || m.visible === !0,
|
|
2851
2859
|
"input-type": "checkbox",
|
|
2852
2860
|
onClick: (r) => s(r.target, m)
|
|
2853
2861
|
}, null, 8, ["model-value", "onClick"])
|
|
2854
2862
|
]),
|
|
2855
|
-
f("div",
|
|
2856
|
-
m.visible === void 0 || m.visible === !0 ? (u(), v(
|
|
2863
|
+
f("div", gn, [
|
|
2864
|
+
m.visible === void 0 || m.visible === !0 ? (u(), v(F, { key: 0 }, [
|
|
2857
2865
|
b !== 0 ? (u(), V(d(I), {
|
|
2858
2866
|
key: 0,
|
|
2859
2867
|
class: "cl-cursor-pointer cl-inline-block cl-mr-2",
|
|
@@ -2866,7 +2874,7 @@ const Io = {
|
|
|
2866
2874
|
icon: "ph:arrow-right",
|
|
2867
2875
|
onClick: (r) => a(b, "up")
|
|
2868
2876
|
}, null, 8, ["onClick"])) : q("", !0)
|
|
2869
|
-
], 64)) : (u(), v("em",
|
|
2877
|
+
], 64)) : (u(), v("em", vn, E(d(l)("grid.hidden")), 1))
|
|
2870
2878
|
])
|
|
2871
2879
|
]))), 128))
|
|
2872
2880
|
])
|
|
@@ -2880,7 +2888,7 @@ const Io = {
|
|
|
2880
2888
|
]))
|
|
2881
2889
|
], 64));
|
|
2882
2890
|
}
|
|
2883
|
-
}),
|
|
2891
|
+
}), hn = { class: "cl-relative cl-w-full grid lg:cl-min-h-fit" }, yn = { class: "cl-absolute cl-flex cl-items-center cl-justify-center cl-min-h-full cl-p-32 cl-w-full" }, wn = { class: "cl-overflow-x-auto cl-overscroll-x-none cl-pt-1" }, $n = { class: "cl-hidden lg:cl-table-column-group" }, kn = /* @__PURE__ */ U({
|
|
2884
2892
|
__name: "cl-ui-grid",
|
|
2885
2893
|
props: {
|
|
2886
2894
|
columns: {},
|
|
@@ -2892,10 +2900,10 @@ const Io = {
|
|
|
2892
2900
|
},
|
|
2893
2901
|
emits: ["update:columns", "update:request", "data-request", "row-edit", "edit-start", "edit-end", "row-select"],
|
|
2894
2902
|
setup(t, { emit: o }) {
|
|
2895
|
-
const e = t, l =
|
|
2903
|
+
const e = t, l = N({
|
|
2896
2904
|
get: () => e.columns,
|
|
2897
2905
|
set: (h) => o("update:columns", h)
|
|
2898
|
-
}), n =
|
|
2906
|
+
}), n = N(() => l.value.filter((h) => h.visible ?? !0)), p = A({});
|
|
2899
2907
|
function s() {
|
|
2900
2908
|
const h = {};
|
|
2901
2909
|
window.innerWidth >= 1024 && l.value.forEach((T) => {
|
|
@@ -2909,7 +2917,7 @@ const Io = {
|
|
|
2909
2917
|
qe(() => {
|
|
2910
2918
|
window.addEventListener("resize", s), s();
|
|
2911
2919
|
}), Ie(() => window.removeEventListener("resize", s));
|
|
2912
|
-
const i =
|
|
2920
|
+
const i = N({
|
|
2913
2921
|
get: () => e.request,
|
|
2914
2922
|
set: (h) => o("update:request", h)
|
|
2915
2923
|
});
|
|
@@ -2922,11 +2930,11 @@ const Io = {
|
|
|
2922
2930
|
deep: !0,
|
|
2923
2931
|
immediate: !0
|
|
2924
2932
|
});
|
|
2925
|
-
const b =
|
|
2926
|
-
return Q(r, () => r.value ? o("edit-start") : o("edit-end")), (h, T) => (u(), v("div",
|
|
2933
|
+
const b = N(() => e.data), r = A(!1), w = A(!1);
|
|
2934
|
+
return Q(r, () => r.value ? o("edit-start") : o("edit-end")), (h, T) => (u(), v("div", hn, [
|
|
2927
2935
|
$(ge, { name: "fade" }, {
|
|
2928
|
-
default:
|
|
2929
|
-
L(f("div",
|
|
2936
|
+
default: P(() => [
|
|
2937
|
+
L(f("div", yn, [
|
|
2930
2938
|
$(Se)
|
|
2931
2939
|
], 512), [
|
|
2932
2940
|
[H, h.loading]
|
|
@@ -2934,7 +2942,7 @@ const Io = {
|
|
|
2934
2942
|
]),
|
|
2935
2943
|
_: 1
|
|
2936
2944
|
}),
|
|
2937
|
-
$(
|
|
2945
|
+
$(Wt, {
|
|
2938
2946
|
"edit-mode": r.value,
|
|
2939
2947
|
"onUpdate:editMode": T[1] || (T[1] = (k) => r.value = k),
|
|
2940
2948
|
"filter-panel-open": w.value,
|
|
@@ -2942,30 +2950,34 @@ const Io = {
|
|
|
2942
2950
|
columns: h.columns,
|
|
2943
2951
|
options: h.options,
|
|
2944
2952
|
request: h.request,
|
|
2953
|
+
loading: h.loading,
|
|
2945
2954
|
onClearFilters: c
|
|
2946
2955
|
}, {
|
|
2947
|
-
"
|
|
2948
|
-
|
|
2956
|
+
"additional-grid-actions": P((k) => [
|
|
2957
|
+
S(h.$slots, "additional-grid-actions", te(ae(k)))
|
|
2958
|
+
]),
|
|
2959
|
+
"view-manager": P(() => [
|
|
2960
|
+
$(bn, {
|
|
2949
2961
|
columns: l.value,
|
|
2950
2962
|
"onUpdate:columns": T[0] || (T[0] = (k) => l.value = k)
|
|
2951
2963
|
}, null, 8, ["columns"])
|
|
2952
2964
|
]),
|
|
2953
|
-
_:
|
|
2954
|
-
}, 8, ["edit-mode", "filter-panel-open", "columns", "options", "request"]),
|
|
2955
|
-
f("div",
|
|
2965
|
+
_: 3
|
|
2966
|
+
}, 8, ["edit-mode", "filter-panel-open", "columns", "options", "request", "loading"]),
|
|
2967
|
+
f("div", wn, [
|
|
2956
2968
|
f("table", {
|
|
2957
2969
|
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", {
|
|
2958
2970
|
"cl-opacity-40": h.loading
|
|
2959
2971
|
}])
|
|
2960
2972
|
}, [
|
|
2961
|
-
f("colgroup",
|
|
2962
|
-
(u(!0), v(
|
|
2973
|
+
f("colgroup", $n, [
|
|
2974
|
+
(u(!0), v(F, null, J(n.value, (k, B) => (u(), v("col", {
|
|
2963
2975
|
key: B,
|
|
2964
2976
|
style: xe(a(k.name)),
|
|
2965
2977
|
span: 1
|
|
2966
2978
|
}, null, 4))), 128))
|
|
2967
2979
|
]),
|
|
2968
|
-
$(
|
|
2980
|
+
$(on, {
|
|
2969
2981
|
request: i.value,
|
|
2970
2982
|
"onUpdate:request": T[3] || (T[3] = (k) => i.value = k),
|
|
2971
2983
|
"filter-panel-open": w.value,
|
|
@@ -2974,7 +2986,7 @@ const Io = {
|
|
|
2974
2986
|
options: h.options,
|
|
2975
2987
|
"time-zone": h.timeZone
|
|
2976
2988
|
}, null, 8, ["request", "filter-panel-open", "columns", "options", "time-zone"]),
|
|
2977
|
-
$(
|
|
2989
|
+
$(io, {
|
|
2978
2990
|
columns: n.value,
|
|
2979
2991
|
request: i.value,
|
|
2980
2992
|
data: b.value,
|
|
@@ -2988,42 +3000,42 @@ const Io = {
|
|
|
2988
3000
|
}, Re({ _: 2 }, [
|
|
2989
3001
|
J(h.$slots, (k, B) => ({
|
|
2990
3002
|
name: B,
|
|
2991
|
-
fn:
|
|
2992
|
-
|
|
3003
|
+
fn: P((O) => [
|
|
3004
|
+
S(h.$slots, B, te(ae(O)))
|
|
2993
3005
|
])
|
|
2994
3006
|
}))
|
|
2995
3007
|
]), 1032, ["columns", "request", "data", "time-zone", "loading", "edit-mode", "selection-enabled"])
|
|
2996
3008
|
], 2)
|
|
2997
3009
|
]),
|
|
2998
|
-
$(
|
|
3010
|
+
$(Oo, {
|
|
2999
3011
|
request: i.value,
|
|
3000
3012
|
"onUpdate:request": T[7] || (T[7] = (k) => i.value = k),
|
|
3001
3013
|
data: h.data
|
|
3002
3014
|
}, null, 8, ["request", "data"])
|
|
3003
3015
|
]));
|
|
3004
3016
|
}
|
|
3005
|
-
}),
|
|
3017
|
+
}), Cn = { 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" }, Tn = /* @__PURE__ */ U({
|
|
3006
3018
|
__name: "cl-ui-header",
|
|
3007
3019
|
emits: ["open-click"],
|
|
3008
3020
|
setup(t) {
|
|
3009
|
-
return (o, e) => (u(), v("header",
|
|
3010
|
-
|
|
3021
|
+
return (o, e) => (u(), v("header", Cn, [
|
|
3022
|
+
S(o.$slots, "logo"),
|
|
3011
3023
|
f("div", {
|
|
3012
3024
|
class: "cl-cursor-pointer cl-flex cl-flex-nowrap",
|
|
3013
3025
|
onClick: e[0] || (e[0] = (l) => o.$emit("open-click"))
|
|
3014
3026
|
}, [
|
|
3015
|
-
|
|
3016
|
-
|
|
3027
|
+
S(o.$slots, "menu"),
|
|
3028
|
+
S(o.$slots, "icon")
|
|
3017
3029
|
])
|
|
3018
3030
|
]));
|
|
3019
3031
|
}
|
|
3020
|
-
}),
|
|
3032
|
+
}), En = { 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]" }, On = ["src"], An = {
|
|
3021
3033
|
key: 0,
|
|
3022
3034
|
class: "cl-text-ellipsis cl-whitespace-nowrap"
|
|
3023
|
-
},
|
|
3035
|
+
}, qn = {
|
|
3024
3036
|
key: 1,
|
|
3025
3037
|
class: "cl-text-ellipsis cl-text-xs cl-whitespace-nowrap"
|
|
3026
|
-
},
|
|
3038
|
+
}, Sn = { 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" }, Nn = { class: "cl-absolute cl-bg-white cl-right-0 cl-shadow-2xl cl-top-20 cl-w-full cl-z-20" }, jn = /* @__PURE__ */ U({
|
|
3027
3039
|
__name: "cl-ui-header-menu",
|
|
3028
3040
|
props: {
|
|
3029
3041
|
username: { default: "" },
|
|
@@ -3047,12 +3059,12 @@ const Io = {
|
|
|
3047
3059
|
"cl-bg-blue-light": e.colour === "secondary"
|
|
3048
3060
|
}])
|
|
3049
3061
|
}, [
|
|
3050
|
-
f("div",
|
|
3062
|
+
f("div", En, [
|
|
3051
3063
|
p.image ? (u(), v("img", {
|
|
3052
3064
|
key: 0,
|
|
3053
3065
|
src: p.image,
|
|
3054
3066
|
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"
|
|
3055
|
-
}, null, 8,
|
|
3067
|
+
}, null, 8, On)) : (u(), V(d(I), {
|
|
3056
3068
|
key: 1,
|
|
3057
3069
|
class: "cl-hidden cl-m-4 cl-text-white md:cl-block",
|
|
3058
3070
|
icon: "ph:user-circle",
|
|
@@ -3065,10 +3077,10 @@ const Io = {
|
|
|
3065
3077
|
"cl-text-white": e.colour === "secondary"
|
|
3066
3078
|
}])
|
|
3067
3079
|
}, [
|
|
3068
|
-
p.username ? (u(), v("div",
|
|
3069
|
-
p.group ? (u(), v("div",
|
|
3080
|
+
p.username ? (u(), v("div", An, E(p.username), 1)) : q("", !0),
|
|
3081
|
+
p.group ? (u(), v("div", qn, E(p.group), 1)) : q("", !0)
|
|
3070
3082
|
], 2),
|
|
3071
|
-
f("div",
|
|
3083
|
+
f("div", Sn, [
|
|
3072
3084
|
$(d(I), {
|
|
3073
3085
|
class: _(["cl-transform-gpu cl-transition-transform", {
|
|
3074
3086
|
"cl-rotate-180": p.isOpen,
|
|
@@ -3080,9 +3092,9 @@ const Io = {
|
|
|
3080
3092
|
])
|
|
3081
3093
|
]),
|
|
3082
3094
|
$(ge, { name: "fade" }, {
|
|
3083
|
-
default:
|
|
3084
|
-
L(f("div",
|
|
3085
|
-
|
|
3095
|
+
default: P(() => [
|
|
3096
|
+
L(f("div", Nn, [
|
|
3097
|
+
S(p.$slots, "default")
|
|
3086
3098
|
], 512), [
|
|
3087
3099
|
[H, p.isOpen]
|
|
3088
3100
|
])
|
|
@@ -3095,24 +3107,24 @@ const Io = {
|
|
|
3095
3107
|
function je(t) {
|
|
3096
3108
|
return /[a-z]{2}-[A-Z]{2}/gm.test(t.localeCode);
|
|
3097
3109
|
}
|
|
3098
|
-
function
|
|
3110
|
+
function _n(t) {
|
|
3099
3111
|
let o = Array.isArray(t);
|
|
3100
3112
|
if (o) {
|
|
3101
3113
|
for (const e of t)
|
|
3102
|
-
if (!
|
|
3114
|
+
if (!In(e)) {
|
|
3103
3115
|
o = !1;
|
|
3104
3116
|
break;
|
|
3105
3117
|
}
|
|
3106
3118
|
}
|
|
3107
3119
|
return o;
|
|
3108
3120
|
}
|
|
3109
|
-
function
|
|
3121
|
+
function In(t) {
|
|
3110
3122
|
return typeof t.name == "string" && typeof t.nativeName == "string" && typeof t.localeCode == "string";
|
|
3111
3123
|
}
|
|
3112
|
-
const
|
|
3124
|
+
const Rn = {
|
|
3113
3125
|
key: 0,
|
|
3114
3126
|
class: "cl-flex cl-relative cl-select-none cl-w-auto cl-z-30"
|
|
3115
|
-
},
|
|
3127
|
+
}, zn = { 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-3" }, Un = ["data-localename", "data-localecode", "onClick"], Bn = { class: "cl-text-xs" }, Mn = /* @__PURE__ */ U({
|
|
3116
3128
|
__name: "cl-ui-language-switcher",
|
|
3117
3129
|
props: {
|
|
3118
3130
|
supportedLanguages: {},
|
|
@@ -3121,13 +3133,13 @@ const _n = {
|
|
|
3121
3133
|
},
|
|
3122
3134
|
emits: ["language-select"],
|
|
3123
3135
|
setup(t, { emit: o }) {
|
|
3124
|
-
const e = t, { locale: l } =
|
|
3136
|
+
const e = t, { locale: l } = ne(), n = A(!1), p = N(() => e.supportedLanguages.find((i) => i.localeCode === l.value) ?? e.defaultLangauge), s = N(() => e.supportedLanguages.filter((i) => je(i)).sort((i, c) => i.nativeName > c.nativeName ? 1 : c.nativeName > i.nativeName ? -1 : 0));
|
|
3125
3137
|
function a() {
|
|
3126
3138
|
e.disabled || (n.value = !n.value);
|
|
3127
3139
|
}
|
|
3128
3140
|
return Q(() => e.disabled, (i) => {
|
|
3129
3141
|
i && (n.value = !1);
|
|
3130
|
-
}), (i, c) => p.value !== null && d(je)(p.value) ? (u(), v("div",
|
|
3142
|
+
}), (i, c) => p.value !== null && d(je)(p.value) ? (u(), v("div", Rn, [
|
|
3131
3143
|
f("div", {
|
|
3132
3144
|
class: _(["cl-flex cl-items-center", {
|
|
3133
3145
|
"cl-cursor-pointer": !i.disabled
|
|
@@ -3141,9 +3153,9 @@ const _n = {
|
|
|
3141
3153
|
}, E(p.value.nativeName), 3)
|
|
3142
3154
|
], 2),
|
|
3143
3155
|
$(ge, { name: "fade" }, {
|
|
3144
|
-
default:
|
|
3145
|
-
L(f("div",
|
|
3146
|
-
(u(!0), v(
|
|
3156
|
+
default: P(() => [
|
|
3157
|
+
L(f("div", zn, [
|
|
3158
|
+
(u(!0), v(F, null, J(s.value, (m, b) => (u(), v("div", {
|
|
3147
3159
|
key: b,
|
|
3148
3160
|
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",
|
|
3149
3161
|
"data-localename": m.name,
|
|
@@ -3152,8 +3164,8 @@ const _n = {
|
|
|
3152
3164
|
l.value = m.localeCode, a(), o("language-select", m.localeCode);
|
|
3153
3165
|
}
|
|
3154
3166
|
}, [
|
|
3155
|
-
f("span",
|
|
3156
|
-
], 8,
|
|
3167
|
+
f("span", Bn, E(m.nativeName), 1)
|
|
3168
|
+
], 8, Un))), 128))
|
|
3157
3169
|
], 512), [
|
|
3158
3170
|
[H, n.value]
|
|
3159
3171
|
])
|
|
@@ -3162,10 +3174,10 @@ const _n = {
|
|
|
3162
3174
|
})
|
|
3163
3175
|
])) : q("", !0);
|
|
3164
3176
|
}
|
|
3165
|
-
}),
|
|
3177
|
+
}), Vn = { class: "cl-relative" }, Dn = { class: "cl-h-screen cl-z-0" }, Ln = { 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" }, Pn = { class: "cl-col-span-10 lg:cl-col-span-3" }, Fn = {
|
|
3166
3178
|
key: 0,
|
|
3167
3179
|
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"
|
|
3168
|
-
},
|
|
3180
|
+
}, Hn = { class: "cl-col-span-3" }, Gn = { class: "cl-inline cl-relative cl-text-grey-4" }, Zn = { class: "cl-col-span-3" }, xn = { class: "cl-inline cl-relative cl-text-grey-4" }, Wn = { class: "cl-col-span-10 cl-emphasis-danger cl-mt-10 cl-p-3 cl-rounded-md cl-text-sm md:cl-mt-3" }, Kn = /* @__PURE__ */ U({
|
|
3169
3181
|
__name: "cl-ui-login",
|
|
3170
3182
|
props: {
|
|
3171
3183
|
errors: { default: () => [] },
|
|
@@ -3176,7 +3188,7 @@ const _n = {
|
|
|
3176
3188
|
"update:errors": null
|
|
3177
3189
|
},
|
|
3178
3190
|
setup(t, { emit: o }) {
|
|
3179
|
-
const { t: e } =
|
|
3191
|
+
const { t: e } = ne(), l = A(""), n = A(""), p = A("password"), s = A();
|
|
3180
3192
|
function a() {
|
|
3181
3193
|
const b = {
|
|
3182
3194
|
username: l.value,
|
|
@@ -3197,16 +3209,16 @@ const _n = {
|
|
|
3197
3209
|
function m(b, r) {
|
|
3198
3210
|
s.value = b;
|
|
3199
3211
|
}
|
|
3200
|
-
return (b, r) => (u(), v("div",
|
|
3201
|
-
f("div",
|
|
3202
|
-
|
|
3212
|
+
return (b, r) => (u(), v("div", Vn, [
|
|
3213
|
+
f("div", Dn, [
|
|
3214
|
+
S(b.$slots, "background")
|
|
3203
3215
|
]),
|
|
3204
|
-
f("form",
|
|
3205
|
-
f("div",
|
|
3206
|
-
|
|
3216
|
+
f("form", Ln, [
|
|
3217
|
+
f("div", Pn, [
|
|
3218
|
+
S(b.$slots, "logo")
|
|
3207
3219
|
]),
|
|
3208
|
-
b.$slots["language-switcher"] ? (u(), v("div",
|
|
3209
|
-
|
|
3220
|
+
b.$slots["language-switcher"] ? (u(), v("div", Fn, [
|
|
3221
|
+
S(b.$slots, "language-switcher")
|
|
3210
3222
|
])) : q("", !0),
|
|
3211
3223
|
f("div", {
|
|
3212
3224
|
class: _(["cl-gap-y-4 cl-grid cl-grid-cols-1 lg:cl-gap-x-2 lg:cl-grid-cols-8", {
|
|
@@ -3214,14 +3226,14 @@ const _n = {
|
|
|
3214
3226
|
"cl-col-span-6": b.$slots["language-switcher"]
|
|
3215
3227
|
}])
|
|
3216
3228
|
}, [
|
|
3217
|
-
f("div",
|
|
3218
|
-
f("div",
|
|
3229
|
+
f("div", Hn, [
|
|
3230
|
+
f("div", Gn, [
|
|
3219
3231
|
$(d(I), {
|
|
3220
3232
|
class: "cl-absolute cl-left-3 cl-top-2.5 cl-z-10",
|
|
3221
3233
|
icon: "ph:user",
|
|
3222
3234
|
size: 18
|
|
3223
3235
|
}),
|
|
3224
|
-
$(
|
|
3236
|
+
$(ie, {
|
|
3225
3237
|
id: "cl-ui-login-usernameinput",
|
|
3226
3238
|
modelValue: l.value,
|
|
3227
3239
|
"onUpdate:modelValue": r[0] || (r[0] = (w) => l.value = w),
|
|
@@ -3242,8 +3254,8 @@ const _n = {
|
|
|
3242
3254
|
}, null, 8, ["modelValue", "highlight-when-valid", "label", "placeholder-text", "message-when-valid"])
|
|
3243
3255
|
])
|
|
3244
3256
|
]),
|
|
3245
|
-
f("div",
|
|
3246
|
-
f("div",
|
|
3257
|
+
f("div", Zn, [
|
|
3258
|
+
f("div", xn, [
|
|
3247
3259
|
$(d(I), {
|
|
3248
3260
|
class: "cl-absolute cl-left-3 cl-top-2.5 cl-z-10",
|
|
3249
3261
|
icon: "ph:lock",
|
|
@@ -3265,7 +3277,7 @@ const _n = {
|
|
|
3265
3277
|
}, null, 512), [
|
|
3266
3278
|
[H, p.value === "text"]
|
|
3267
3279
|
]),
|
|
3268
|
-
$(
|
|
3280
|
+
$(ie, {
|
|
3269
3281
|
id: "cl-ui-login-passwordinput",
|
|
3270
3282
|
modelValue: n.value,
|
|
3271
3283
|
"onUpdate:modelValue": r[3] || (r[3] = (w) => n.value = w),
|
|
@@ -3296,7 +3308,7 @@ const _n = {
|
|
|
3296
3308
|
disabled: !s.value || n.value === "",
|
|
3297
3309
|
onClick: K(a, ["prevent"])
|
|
3298
3310
|
}, {
|
|
3299
|
-
default:
|
|
3311
|
+
default: P(() => [
|
|
3300
3312
|
le(E(d(e)("login.login")), 1)
|
|
3301
3313
|
]),
|
|
3302
3314
|
_: 1
|
|
@@ -3304,11 +3316,11 @@ const _n = {
|
|
|
3304
3316
|
], 2)
|
|
3305
3317
|
], 2),
|
|
3306
3318
|
$(ge, { name: "cl-grow-down" }, {
|
|
3307
|
-
default:
|
|
3319
|
+
default: P(() => {
|
|
3308
3320
|
var w;
|
|
3309
3321
|
return [
|
|
3310
|
-
L(f("span",
|
|
3311
|
-
(u(!0), v(
|
|
3322
|
+
L(f("span", Wn, [
|
|
3323
|
+
(u(!0), v(F, null, J(b.errors, (h, T) => (u(), v("div", {
|
|
3312
3324
|
id: "cl-ui-login-errors",
|
|
3313
3325
|
key: T,
|
|
3314
3326
|
class: "cl-font-semibold"
|
|
@@ -3323,25 +3335,25 @@ const _n = {
|
|
|
3323
3335
|
])
|
|
3324
3336
|
]));
|
|
3325
3337
|
}
|
|
3326
|
-
}),
|
|
3338
|
+
}), Qn = [
|
|
3327
3339
|
"x-small",
|
|
3328
3340
|
"small",
|
|
3329
3341
|
"medium",
|
|
3330
3342
|
"large"
|
|
3331
|
-
],
|
|
3343
|
+
], Jn = [
|
|
3332
3344
|
"primary",
|
|
3333
3345
|
"secondary",
|
|
3334
3346
|
"white"
|
|
3335
|
-
],
|
|
3347
|
+
], Yn = {
|
|
3336
3348
|
key: 0,
|
|
3337
3349
|
class: "cl-h-0 cl-w-0"
|
|
3338
|
-
},
|
|
3350
|
+
}, Xn = { class: "cl-relative cl-w-full" }, es = /* @__PURE__ */ U({
|
|
3339
3351
|
__name: "cl-ui-navigation",
|
|
3340
3352
|
props: {
|
|
3341
3353
|
colour: { default: "default" }
|
|
3342
3354
|
},
|
|
3343
3355
|
setup(t) {
|
|
3344
|
-
const o = A([]), e =
|
|
3356
|
+
const o = A([]), e = N(() => o.value.filter((r) => r.open === !0).length > 0);
|
|
3345
3357
|
function l(r) {
|
|
3346
3358
|
let w = o.value.find((h) => h.id === r);
|
|
3347
3359
|
return w || (w = {
|
|
@@ -3387,18 +3399,18 @@ const _n = {
|
|
|
3387
3399
|
"cl-bg-blue-dark": r.colour === "secondary"
|
|
3388
3400
|
}])
|
|
3389
3401
|
}, [
|
|
3390
|
-
|
|
3402
|
+
S(r.$slots, "icon", re({ navcolour: r.colour }, { groupIsOpen: l, toggleOpen: n }), void 0, !0)
|
|
3391
3403
|
], 2),
|
|
3392
|
-
a.value ? (u(), v("div",
|
|
3404
|
+
a.value ? (u(), v("div", Yn)) : q("", !0),
|
|
3393
3405
|
$(ge, { name: "slide-right" }, {
|
|
3394
|
-
default:
|
|
3406
|
+
default: P(() => [
|
|
3395
3407
|
L(f("div", {
|
|
3396
3408
|
class: _(["cl-bg-grey-0 cl-border-grey-2 cl-border-r cl-duration-75 cl-h-full cl-min-w-[260px] cl-overflow-y-auto cl-overscroll-y-none cl-p-8 cl-pb-24 cl-top-0 cl-transition-shadow cl-w-[260px] cl-z-20 xl:cl-pb-0", {
|
|
3397
3409
|
"cl-relative": s.value,
|
|
3398
3410
|
"cl-absolute cl-left-20 cl-shadow-lg": !s.value
|
|
3399
3411
|
}])
|
|
3400
3412
|
}, [
|
|
3401
|
-
f("div",
|
|
3413
|
+
f("div", Xn, [
|
|
3402
3414
|
f("span", {
|
|
3403
3415
|
class: "cl-absolute cl-cursor-pointer cl-hidden cl-right-0 cl-top-1.5 lg:cl-block",
|
|
3404
3416
|
onClick: c
|
|
@@ -3411,7 +3423,7 @@ const _n = {
|
|
|
3411
3423
|
icon: "ph:push-pin"
|
|
3412
3424
|
}))
|
|
3413
3425
|
]),
|
|
3414
|
-
|
|
3426
|
+
S(r.$slots, "default", te(ae({ groupIsOpen: l })), void 0, !0)
|
|
3415
3427
|
])
|
|
3416
3428
|
], 2), [
|
|
3417
3429
|
[H, e.value]
|
|
@@ -3422,7 +3434,7 @@ const _n = {
|
|
|
3422
3434
|
], 512));
|
|
3423
3435
|
}
|
|
3424
3436
|
});
|
|
3425
|
-
const
|
|
3437
|
+
const ls = /* @__PURE__ */ fe(es, [["__scopeId", "data-v-7db412a7"]]), ts = /* @__PURE__ */ U({
|
|
3426
3438
|
__name: "cl-ui-navigation-icon",
|
|
3427
3439
|
props: {
|
|
3428
3440
|
iconValue: {},
|
|
@@ -3445,45 +3457,45 @@ const Xn = /* @__PURE__ */ fe(Yn, [["__scopeId", "data-v-7db412a7"]]), es = /* @
|
|
|
3445
3457
|
}, null, 8, ["icon"])
|
|
3446
3458
|
], 2));
|
|
3447
3459
|
}
|
|
3448
|
-
}),
|
|
3460
|
+
}), os = {
|
|
3449
3461
|
key: 0,
|
|
3450
3462
|
class: "cl-font-bold cl-leading-8 cl-mb-8 cl-pr-8 cl-select-none cl-text-lg cl-text-secondary-default"
|
|
3451
|
-
},
|
|
3463
|
+
}, ns = { class: "cl-flex cl-flex-wrap cl-space-y-8 cl-text-sm cl-w-full" }, ss = /* @__PURE__ */ U({
|
|
3452
3464
|
__name: "cl-ui-navigation-group",
|
|
3453
3465
|
props: {
|
|
3454
3466
|
open: { type: Boolean }
|
|
3455
3467
|
},
|
|
3456
3468
|
setup(t) {
|
|
3457
|
-
return (o, e) => o.open ? (u(), v(
|
|
3458
|
-
o.$slots.title ? (u(), v("div",
|
|
3459
|
-
|
|
3469
|
+
return (o, e) => o.open ? (u(), v(F, { key: 0 }, [
|
|
3470
|
+
o.$slots.title ? (u(), v("div", os, [
|
|
3471
|
+
S(o.$slots, "title")
|
|
3460
3472
|
])) : q("", !0),
|
|
3461
|
-
f("div",
|
|
3462
|
-
|
|
3473
|
+
f("div", ns, [
|
|
3474
|
+
S(o.$slots, "default")
|
|
3463
3475
|
])
|
|
3464
3476
|
], 64)) : q("", !0);
|
|
3465
3477
|
}
|
|
3466
|
-
}),
|
|
3478
|
+
}), as = {}, rs = { class: "cl-w-full" }, is = {
|
|
3467
3479
|
key: 0,
|
|
3468
3480
|
class: "cl-font-bold cl-mb-4 cl-select-none"
|
|
3469
|
-
},
|
|
3470
|
-
function
|
|
3471
|
-
return u(), v("div",
|
|
3472
|
-
t.$slots.title ? (u(), v("div",
|
|
3473
|
-
|
|
3481
|
+
}, cs = { class: "cl-flex cl-flex-wrap cl-space-y-2" };
|
|
3482
|
+
function us(t, o) {
|
|
3483
|
+
return u(), v("div", rs, [
|
|
3484
|
+
t.$slots.title ? (u(), v("div", is, [
|
|
3485
|
+
S(t.$slots, "title")
|
|
3474
3486
|
])) : q("", !0),
|
|
3475
|
-
f("span",
|
|
3476
|
-
|
|
3487
|
+
f("span", cs, [
|
|
3488
|
+
S(t.$slots, "default")
|
|
3477
3489
|
])
|
|
3478
3490
|
]);
|
|
3479
3491
|
}
|
|
3480
|
-
const
|
|
3481
|
-
function
|
|
3482
|
-
return u(), v("div",
|
|
3483
|
-
|
|
3492
|
+
const ds = /* @__PURE__ */ fe(as, [["render", us]]), ps = {}, fs = { class: "cl-cursor-pointer cl-transition-colors cl-w-full hover:cl-text-blue-light" };
|
|
3493
|
+
function ms(t, o) {
|
|
3494
|
+
return u(), v("div", fs, [
|
|
3495
|
+
S(t.$slots, "default")
|
|
3484
3496
|
]);
|
|
3485
3497
|
}
|
|
3486
|
-
const
|
|
3498
|
+
const gs = /* @__PURE__ */ fe(ps, [["render", ms]]), vs = { class: "cl-w-full" }, bs = /* @__PURE__ */ U({
|
|
3487
3499
|
__name: "cl-ui-tab",
|
|
3488
3500
|
props: {
|
|
3489
3501
|
currentTab: { default: 0 },
|
|
@@ -3512,7 +3524,7 @@ const fs = /* @__PURE__ */ fe(us, [["render", ps]]), ms = { class: "cl-w-full" }
|
|
|
3512
3524
|
c === "left" && (b = -m), e.value.scroll(e.value.scrollLeft + b, 0);
|
|
3513
3525
|
}
|
|
3514
3526
|
}
|
|
3515
|
-
return qe(() => a()), Ie(() => window.removeEventListener("resize", s)), (c, m) => (u(), v("div",
|
|
3527
|
+
return qe(() => a()), Ie(() => window.removeEventListener("resize", s)), (c, m) => (u(), v("div", vs, [
|
|
3516
3528
|
f("div", null, [
|
|
3517
3529
|
l.value ? (u(), v("div", {
|
|
3518
3530
|
key: 0,
|
|
@@ -3538,7 +3550,7 @@ const fs = /* @__PURE__ */ fe(us, [["render", ps]]), ms = { class: "cl-w-full" }
|
|
|
3538
3550
|
}]),
|
|
3539
3551
|
onScrollPassive: s
|
|
3540
3552
|
}, [
|
|
3541
|
-
|
|
3553
|
+
S(c.$slots, "headings", te(ae({ isTabOpen: p, disabled: c.disabled, colour: c.colour })))
|
|
3542
3554
|
], 34),
|
|
3543
3555
|
n.value ? (u(), v("div", {
|
|
3544
3556
|
key: 1,
|
|
@@ -3551,10 +3563,10 @@ const fs = /* @__PURE__ */ fe(us, [["render", ps]]), ms = { class: "cl-w-full" }
|
|
|
3551
3563
|
})
|
|
3552
3564
|
])) : q("", !0)
|
|
3553
3565
|
]),
|
|
3554
|
-
|
|
3566
|
+
S(c.$slots, "content", te(ae({ isTabOpen: p, disabled: c.disabled, colour: c.colour })))
|
|
3555
3567
|
]));
|
|
3556
3568
|
}
|
|
3557
|
-
}),
|
|
3569
|
+
}), hs = ["onKeyup"], ys = /* @__PURE__ */ U({
|
|
3558
3570
|
__name: "cl-ui-tab-header",
|
|
3559
3571
|
props: {
|
|
3560
3572
|
id: {},
|
|
@@ -3566,7 +3578,7 @@ const fs = /* @__PURE__ */ fe(us, [["render", ps]]), ms = { class: "cl-w-full" }
|
|
|
3566
3578
|
"update:currentTab": null
|
|
3567
3579
|
},
|
|
3568
3580
|
setup(t, { emit: o }) {
|
|
3569
|
-
const e = t, l = A(), n = A(), p =
|
|
3581
|
+
const e = t, l = A(), n = A(), p = N(() => e.id === e.currentTab);
|
|
3570
3582
|
function s() {
|
|
3571
3583
|
e.disabled || (l.value = !1, n.value = !1, o("update:currentTab", e.id));
|
|
3572
3584
|
}
|
|
@@ -3598,25 +3610,25 @@ const fs = /* @__PURE__ */ fe(us, [["render", ps]]), ms = { class: "cl-w-full" }
|
|
|
3598
3610
|
onFocusout: i[3] || (i[3] = (c) => l.value = !1),
|
|
3599
3611
|
onKeyup: $e(K(s, ["self"]), ["enter"])
|
|
3600
3612
|
}, [
|
|
3601
|
-
|
|
3602
|
-
], 42,
|
|
3613
|
+
S(a.$slots, "default")
|
|
3614
|
+
], 42, hs));
|
|
3603
3615
|
}
|
|
3604
|
-
}),
|
|
3605
|
-
function
|
|
3606
|
-
return
|
|
3616
|
+
}), ws = {};
|
|
3617
|
+
function $s(t, o) {
|
|
3618
|
+
return S(t.$slots, "default");
|
|
3607
3619
|
}
|
|
3608
|
-
const
|
|
3620
|
+
const ks = /* @__PURE__ */ fe(ws, [["render", $s]]), Cs = [
|
|
3609
3621
|
"default",
|
|
3610
3622
|
"primary",
|
|
3611
3623
|
"secondary",
|
|
3612
3624
|
"danger",
|
|
3613
3625
|
"blue"
|
|
3614
|
-
],
|
|
3626
|
+
], Ts = [
|
|
3615
3627
|
"left",
|
|
3616
3628
|
"right"
|
|
3617
|
-
],
|
|
3629
|
+
], Es = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3618
3630
|
__proto__: null,
|
|
3619
|
-
FilterOperation:
|
|
3631
|
+
FilterOperation: oe,
|
|
3620
3632
|
buttonColours: ql,
|
|
3621
3633
|
buttonSizes: Sl,
|
|
3622
3634
|
cardSizes: _l,
|
|
@@ -3628,42 +3640,42 @@ const ws = /* @__PURE__ */ fe(hs, [["render", ys]]), $s = [
|
|
|
3628
3640
|
clUiCard: jl,
|
|
3629
3641
|
clUiComboBox: jt,
|
|
3630
3642
|
clUiFooter: Lt,
|
|
3631
|
-
clUiGrid:
|
|
3632
|
-
clUiHeader:
|
|
3633
|
-
clUiHeaderMenu:
|
|
3634
|
-
clUiInput:
|
|
3635
|
-
clUiLanguageSwitcher:
|
|
3643
|
+
clUiGrid: kn,
|
|
3644
|
+
clUiHeader: Tn,
|
|
3645
|
+
clUiHeaderMenu: jn,
|
|
3646
|
+
clUiInput: ie,
|
|
3647
|
+
clUiLanguageSwitcher: Mn,
|
|
3636
3648
|
clUiLoadingSpinner: Se,
|
|
3637
|
-
clUiLogin:
|
|
3649
|
+
clUiLogin: Kn,
|
|
3638
3650
|
clUiModal: Ye,
|
|
3639
|
-
clUiNavigation:
|
|
3640
|
-
clUiNavigationGroup:
|
|
3641
|
-
clUiNavigationIcon:
|
|
3642
|
-
clUiNavigationItem:
|
|
3643
|
-
clUiNavigationSection:
|
|
3651
|
+
clUiNavigation: ls,
|
|
3652
|
+
clUiNavigationGroup: ss,
|
|
3653
|
+
clUiNavigationIcon: ts,
|
|
3654
|
+
clUiNavigationItem: gs,
|
|
3655
|
+
clUiNavigationSection: ds,
|
|
3644
3656
|
clUiNotification: Je,
|
|
3645
|
-
clUiTab:
|
|
3646
|
-
clUiTabContent:
|
|
3647
|
-
clUiTabHeader:
|
|
3648
|
-
filterMethodTypes:
|
|
3649
|
-
gridColumnTypes:
|
|
3657
|
+
clUiTab: bs,
|
|
3658
|
+
clUiTabContent: ks,
|
|
3659
|
+
clUiTabHeader: ys,
|
|
3660
|
+
filterMethodTypes: No,
|
|
3661
|
+
gridColumnTypes: Ao,
|
|
3650
3662
|
inputTypes: Zl,
|
|
3651
3663
|
isComboBoxCreateRequest: It,
|
|
3652
3664
|
isComboBoxItem: _t,
|
|
3653
|
-
isFilterRequest:
|
|
3654
|
-
isFilterResponse:
|
|
3665
|
+
isFilterRequest: Io,
|
|
3666
|
+
isFilterResponse: Ro,
|
|
3655
3667
|
isGridColumn: Xe,
|
|
3656
|
-
isGridColumnArray:
|
|
3657
|
-
isLanguageArray:
|
|
3668
|
+
isGridColumnArray: qo,
|
|
3669
|
+
isLanguageArray: _n,
|
|
3658
3670
|
isLanguageLocaleFormat: je,
|
|
3659
|
-
modalColours:
|
|
3660
|
-
modalSizes:
|
|
3661
|
-
stringFormats:
|
|
3662
|
-
tabColours:
|
|
3663
|
-
tabScroll:
|
|
3671
|
+
modalColours: Jn,
|
|
3672
|
+
modalSizes: Qn,
|
|
3673
|
+
stringFormats: So,
|
|
3674
|
+
tabColours: Cs,
|
|
3675
|
+
tabScroll: Ts
|
|
3664
3676
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3665
|
-
const
|
|
3666
|
-
t.use(ee), t.component("Icon", I), Object.entries(
|
|
3677
|
+
const Vs = (t) => {
|
|
3678
|
+
t.use(ee), t.component("Icon", I), Object.entries(Es).forEach(([
|
|
3667
3679
|
o,
|
|
3668
3680
|
e
|
|
3669
3681
|
]) => {
|
|
@@ -3671,9 +3683,9 @@ const Bs = (t) => {
|
|
|
3671
3683
|
});
|
|
3672
3684
|
};
|
|
3673
3685
|
export {
|
|
3674
|
-
|
|
3686
|
+
Ms as CitrusLimeUI,
|
|
3675
3687
|
Z as DateFormat,
|
|
3676
|
-
|
|
3688
|
+
oe as FilterOperation,
|
|
3677
3689
|
X as NumberFormat,
|
|
3678
3690
|
ql as buttonColours,
|
|
3679
3691
|
Sl as buttonSizes,
|
|
@@ -3686,49 +3698,49 @@ export {
|
|
|
3686
3698
|
jl as clUiCard,
|
|
3687
3699
|
jt as clUiComboBox,
|
|
3688
3700
|
Lt as clUiFooter,
|
|
3689
|
-
|
|
3690
|
-
|
|
3691
|
-
|
|
3692
|
-
|
|
3693
|
-
|
|
3701
|
+
kn as clUiGrid,
|
|
3702
|
+
Tn as clUiHeader,
|
|
3703
|
+
jn as clUiHeaderMenu,
|
|
3704
|
+
ie as clUiInput,
|
|
3705
|
+
Mn as clUiLanguageSwitcher,
|
|
3694
3706
|
Se as clUiLoadingSpinner,
|
|
3695
|
-
|
|
3707
|
+
Kn as clUiLogin,
|
|
3696
3708
|
Ye as clUiModal,
|
|
3697
|
-
|
|
3698
|
-
|
|
3699
|
-
|
|
3700
|
-
|
|
3701
|
-
|
|
3709
|
+
ls as clUiNavigation,
|
|
3710
|
+
ss as clUiNavigationGroup,
|
|
3711
|
+
ts as clUiNavigationIcon,
|
|
3712
|
+
gs as clUiNavigationItem,
|
|
3713
|
+
ds as clUiNavigationSection,
|
|
3702
3714
|
Je as clUiNotification,
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
|
|
3715
|
+
bs as clUiTab,
|
|
3716
|
+
ks as clUiTabContent,
|
|
3717
|
+
ys as clUiTabHeader,
|
|
3706
3718
|
zl as datetimeFormats,
|
|
3707
|
-
|
|
3708
|
-
|
|
3709
|
-
|
|
3719
|
+
Vs as default,
|
|
3720
|
+
No as filterMethodTypes,
|
|
3721
|
+
Ao as gridColumnTypes,
|
|
3710
3722
|
ee as i18n,
|
|
3711
3723
|
Zl as inputTypes,
|
|
3712
3724
|
It as isComboBoxCreateRequest,
|
|
3713
3725
|
_t as isComboBoxItem,
|
|
3714
|
-
|
|
3715
|
-
|
|
3726
|
+
Io as isFilterRequest,
|
|
3727
|
+
Ro as isFilterResponse,
|
|
3716
3728
|
Xe as isGridColumn,
|
|
3717
|
-
|
|
3718
|
-
|
|
3729
|
+
qo as isGridColumnArray,
|
|
3730
|
+
_n as isLanguageArray,
|
|
3719
3731
|
je as isLanguageLocaleFormat,
|
|
3720
3732
|
Il as messages,
|
|
3721
|
-
|
|
3722
|
-
|
|
3733
|
+
Jn as modalColours,
|
|
3734
|
+
Qn as modalSizes,
|
|
3723
3735
|
Rl as numberFormats,
|
|
3724
|
-
|
|
3725
|
-
|
|
3726
|
-
|
|
3727
|
-
|
|
3736
|
+
Bs as setCurrentLocale,
|
|
3737
|
+
Us as setLocaleDateTimeFormats,
|
|
3738
|
+
Rs as setLocaleMessages,
|
|
3739
|
+
zs as setLocaleNumberFormats,
|
|
3728
3740
|
Ve as showNotification,
|
|
3729
|
-
|
|
3730
|
-
|
|
3731
|
-
|
|
3741
|
+
So as stringFormats,
|
|
3742
|
+
Cs as tabColours,
|
|
3743
|
+
Ts as tabScroll,
|
|
3732
3744
|
Vl as validateEmail,
|
|
3733
3745
|
Bl as validateMaxValue,
|
|
3734
3746
|
Ul as validateMinValue
|