@citruslime/ui 3.0.0-beta.15 → 3.0.0-beta.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/citrus-lime-ui.es.js +598 -600
- package/dist/citrus-lime-ui.umd.js +2 -2
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Icon as Z } from "@iconify/vue";
|
|
2
|
-
import { defineComponent as F, ref as
|
|
2
|
+
import { defineComponent as F, ref as I, openBlock as p, createElementBlock as b, renderSlot as M, normalizeProps as de, guardReactiveProps as fe, Fragment as Y, createElementVNode as f, normalizeClass as L, createVNode as D, unref as g, Transition as Ce, withCtx as R, withDirectives as Q, mergeProps as te, vShow as ee, createBlock as P, Teleport as tl, renderList as re, toDisplayString as N, createCommentVNode as z, computed as O, mergeModels as ge, useModel as Ae, createSlots as Ne, vModelDynamic as Dl, watch as oe, toRefs as Jl, withKeys as me, onMounted as Fe, onUnmounted as Ye, withModifiers as le, nextTick as Me, resolveComponent as De, createTextVNode as ue, inject as ol, vModelCheckbox as Xl, toValue as vl, watchEffect as et, useAttrs as El, useCssVars as Al, vModelText as Vl, toHandlers as lt, provide as bl, normalizeStyle as tt, pushScopeId as ot, popScopeId as at } from "vue";
|
|
3
3
|
import { generateStringId as nt, highlightText as st, validateEmail as rt } from "@citruslime/utils";
|
|
4
|
-
import { unrefElement as it, tryOnScopeDispose as ct, onClickOutside as al, useTimeoutFn as
|
|
4
|
+
import { unrefElement as it, tryOnScopeDispose as ct, onClickOutside as al, useTimeoutFn as Nl, useMouseInElement as ut, useFocusWithin as dt, useMediaQuery as Il, useThrottle as pt, useElementBounding as ft, useDebounceFn as mt, useWindowSize as gt } from "@vueuse/core";
|
|
5
5
|
import { useI18n as se, createI18n as vt } from "vue-i18n";
|
|
6
6
|
import { createFocusTrap as bt } from "focus-trap";
|
|
7
7
|
import { copy as pe } from "@citruslime/vue-utils";
|
|
8
8
|
import { DateTime as W } from "luxon";
|
|
9
|
-
import { DatePicker as
|
|
9
|
+
import { DatePicker as Ie } from "v-calendar";
|
|
10
10
|
import { useCurrencyInput as ht } from "vue-currency-input";
|
|
11
11
|
const yt = { class: "cl-overflow-hidden" }, wt = /* @__PURE__ */ F({
|
|
12
12
|
__name: "cl-ui-accordion",
|
|
@@ -14,7 +14,7 @@ const yt = { class: "cl-overflow-hidden" }, wt = /* @__PURE__ */ F({
|
|
|
14
14
|
exclusive: { type: Boolean, default: !1 }
|
|
15
15
|
},
|
|
16
16
|
setup(t) {
|
|
17
|
-
const o = t, l =
|
|
17
|
+
const o = t, l = I([]);
|
|
18
18
|
function e(a) {
|
|
19
19
|
let d = l.value.find((c) => c.id === a);
|
|
20
20
|
return d || (d = {
|
|
@@ -72,7 +72,7 @@ const yt = { class: "cl-overflow-hidden" }, wt = /* @__PURE__ */ F({
|
|
|
72
72
|
Q(f("div", te(a.$attrs, { class: "cl-ml-10 cl-p-4" }), [
|
|
73
73
|
M(a.$slots, "default")
|
|
74
74
|
], 16), [
|
|
75
|
-
[
|
|
75
|
+
[ee, a.open]
|
|
76
76
|
])
|
|
77
77
|
]),
|
|
78
78
|
_: 3
|
|
@@ -91,18 +91,18 @@ function St(t, o) {
|
|
|
91
91
|
M(t.$slots, "default")
|
|
92
92
|
]);
|
|
93
93
|
}
|
|
94
|
-
const Dt = /* @__PURE__ */ he(qt, [["render", St]]), Ke =
|
|
95
|
-
function
|
|
94
|
+
const Dt = /* @__PURE__ */ he(qt, [["render", St]]), Ke = I([]);
|
|
95
|
+
function hl(t) {
|
|
96
96
|
const o = {
|
|
97
97
|
id: nt(),
|
|
98
98
|
...t
|
|
99
99
|
};
|
|
100
|
-
Ke.value.push(o), setTimeout(() =>
|
|
100
|
+
Ke.value.push(o), setTimeout(() => Rl(o), t.duration);
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function Rl(t) {
|
|
103
103
|
Ke.value = Ke.value.filter((o) => o.id !== t.id);
|
|
104
104
|
}
|
|
105
|
-
const Et = ["onClick"], At = { class: "cl-flex-1 cl-select-none cl-text-ellipsis cl-w-64" },
|
|
105
|
+
const Et = ["onClick"], At = { class: "cl-flex-1 cl-select-none cl-text-ellipsis cl-w-64" }, Ml = /* @__PURE__ */ F({
|
|
106
106
|
inheritAttrs: !1,
|
|
107
107
|
__name: "cl-ui-notification",
|
|
108
108
|
props: {
|
|
@@ -130,9 +130,9 @@ const Et = ["onClick"], At = { class: "cl-flex-1 cl-select-none cl-text-ellipsis
|
|
|
130
130
|
"cl-bg-danger-default": e.colour === "danger",
|
|
131
131
|
"cl-bg-warning-default": e.colour === "warning"
|
|
132
132
|
}],
|
|
133
|
-
onClick: (a) => g(
|
|
133
|
+
onClick: (a) => g(Rl)(e)
|
|
134
134
|
}), [
|
|
135
|
-
f("span", At,
|
|
135
|
+
f("span", At, N(e.message), 1),
|
|
136
136
|
D(g(Z), {
|
|
137
137
|
class: "cl-inline-block cl-opacity-0 cl-transition-opacity group-hover:cl-opacity-100",
|
|
138
138
|
icon: "ph:x",
|
|
@@ -143,14 +143,14 @@ const Et = ["onClick"], At = { class: "cl-flex-1 cl-select-none cl-text-ellipsis
|
|
|
143
143
|
], 2)
|
|
144
144
|
], 8, ["to"]));
|
|
145
145
|
}
|
|
146
|
-
}), Vt = { class: "cl-absolute cl-flex cl-flex-wrap cl-h-full cl-max-h-full cl-max-w-full cl-min-h-full cl-min-w-full cl-w-full xl:cl-h-screen xl:cl-max-h-screen xl:cl-min-h-screen" },
|
|
146
|
+
}), Vt = { class: "cl-absolute cl-flex cl-flex-wrap cl-h-full cl-max-h-full cl-max-w-full cl-min-h-full cl-min-w-full cl-w-full xl:cl-h-screen xl:cl-max-h-screen xl:cl-min-h-screen" }, Nt = /* @__PURE__ */ F({
|
|
147
147
|
__name: "cl-ui-app",
|
|
148
148
|
props: {
|
|
149
149
|
removePadding: { type: Boolean, default: !1 }
|
|
150
150
|
},
|
|
151
151
|
setup(t) {
|
|
152
152
|
return (o, l) => (p(), b(Y, null, [
|
|
153
|
-
D(
|
|
153
|
+
D(Ml, {
|
|
154
154
|
class: L({
|
|
155
155
|
"first:cl-mt-[4.25rem]": o.$slots.header
|
|
156
156
|
})
|
|
@@ -176,11 +176,11 @@ const Et = ["onClick"], At = { class: "cl-flex-1 cl-select-none cl-text-ellipsis
|
|
|
176
176
|
])
|
|
177
177
|
], 64));
|
|
178
178
|
}
|
|
179
|
-
}),
|
|
179
|
+
}), It = {}, Rt = { class: "loading-spinner" };
|
|
180
180
|
function Mt(t, o) {
|
|
181
181
|
return p(), b("div", Rt);
|
|
182
182
|
}
|
|
183
|
-
const _e = /* @__PURE__ */ he(
|
|
183
|
+
const _e = /* @__PURE__ */ he(It, [["render", Mt], ["__scopeId", "data-v-a21dc5d2"]]), Ut = ["disabled"], $e = /* @__PURE__ */ F({
|
|
184
184
|
inheritAttrs: !1,
|
|
185
185
|
__name: "cl-ui-button",
|
|
186
186
|
props: {
|
|
@@ -190,14 +190,14 @@ const _e = /* @__PURE__ */ he(Nt, [["render", Mt], ["__scopeId", "data-v-a21dc5d
|
|
|
190
190
|
disabled: { type: Boolean, default: !1 }
|
|
191
191
|
},
|
|
192
192
|
setup(t, { expose: o }) {
|
|
193
|
-
const l =
|
|
193
|
+
const l = I(null);
|
|
194
194
|
return o({
|
|
195
195
|
focus() {
|
|
196
196
|
l.value && l.value.focus();
|
|
197
197
|
}
|
|
198
198
|
}), (e, n) => (p(), b(Y, null, [
|
|
199
199
|
Q(D(_e, { class: "relative" }, null, 512), [
|
|
200
|
-
[
|
|
200
|
+
[ee, e.loading]
|
|
201
201
|
]),
|
|
202
202
|
Q(f("button", te(e.$attrs, {
|
|
203
203
|
ref_key: "buttonRef",
|
|
@@ -218,7 +218,7 @@ const _e = /* @__PURE__ */ he(Nt, [["render", Mt], ["__scopeId", "data-v-a21dc5d
|
|
|
218
218
|
}), [
|
|
219
219
|
M(e.$slots, "default")
|
|
220
220
|
], 16, Ut), [
|
|
221
|
-
[
|
|
221
|
+
[ee, !e.loading]
|
|
222
222
|
])
|
|
223
223
|
], 64));
|
|
224
224
|
}
|
|
@@ -319,7 +319,7 @@ const _e = /* @__PURE__ */ he(Nt, [["render", Mt], ["__scopeId", "data-v-a21dc5d
|
|
|
319
319
|
(p(!0), b(Y, null, re(e.errors, (a, d) => (p(), b("div", {
|
|
320
320
|
key: d,
|
|
321
321
|
class: "cl-bg-danger-light cl-px-2 cl-rounded-md cl-text-center cl-text-danger-default cl-text-xs cl-w-full cl-whitespace-pre-line"
|
|
322
|
-
},
|
|
322
|
+
}, N(a), 1))), 128))
|
|
323
323
|
])
|
|
324
324
|
])) : z("", !0)
|
|
325
325
|
]));
|
|
@@ -340,7 +340,7 @@ const _e = /* @__PURE__ */ he(Nt, [["render", Mt], ["__scopeId", "data-v-a21dc5d
|
|
|
340
340
|
}),
|
|
341
341
|
emits: /* @__PURE__ */ ge(["focus", "blur"], ["update:modelValue"]),
|
|
342
342
|
setup(t, { expose: o, emit: l }) {
|
|
343
|
-
const e = Ae(t, "modelValue"), n = l, a =
|
|
343
|
+
const e = Ae(t, "modelValue"), n = l, a = I();
|
|
344
344
|
return o({
|
|
345
345
|
focus: () => {
|
|
346
346
|
var d;
|
|
@@ -353,7 +353,7 @@ const _e = /* @__PURE__ */ he(Nt, [["render", Mt], ["__scopeId", "data-v-a21dc5d
|
|
|
353
353
|
}), (d, c) => (p(), P(Je, {
|
|
354
354
|
"show-required-asterisk": d.required,
|
|
355
355
|
errors: d.errors
|
|
356
|
-
},
|
|
356
|
+
}, Ne({
|
|
357
357
|
default: R(() => [
|
|
358
358
|
Q(f("input", te(d.$attrs, {
|
|
359
359
|
ref_key: "inputRef",
|
|
@@ -368,7 +368,7 @@ const _e = /* @__PURE__ */ he(Nt, [["render", Mt], ["__scopeId", "data-v-a21dc5d
|
|
|
368
368
|
onFocus: c[1] || (c[1] = (u) => n("focus")),
|
|
369
369
|
onBlur: c[2] || (c[2] = (u) => n("blur"))
|
|
370
370
|
}), null, 16, Yt), [
|
|
371
|
-
[
|
|
371
|
+
[Dl, e.value]
|
|
372
372
|
])
|
|
373
373
|
]),
|
|
374
374
|
_: 2
|
|
@@ -385,7 +385,7 @@ const _e = /* @__PURE__ */ he(Nt, [["render", Mt], ["__scopeId", "data-v-a21dc5d
|
|
|
385
385
|
});
|
|
386
386
|
function _t(t, o = {}) {
|
|
387
387
|
let l;
|
|
388
|
-
const { immediate: e, ...n } = o, a =
|
|
388
|
+
const { immediate: e, ...n } = o, a = I(!1), d = I(!1), c = (s) => l && l.activate(s), u = (s) => l && l.deactivate(s), r = () => {
|
|
389
389
|
l && (l.pause(), d.value = !0);
|
|
390
390
|
}, i = () => {
|
|
391
391
|
l && (l.unpause(), d.value = !1);
|
|
@@ -416,7 +416,7 @@ function _t(t, o = {}) {
|
|
|
416
416
|
const Jt = /* @__PURE__ */ f("div", { tabindex: "0" }, null, -1), Xt = {
|
|
417
417
|
key: 0,
|
|
418
418
|
class: "cl-mt-1 cl-opacity-60 cl-text-primary-default"
|
|
419
|
-
}, eo = { class: "cl-overflow-y-auto cl-overscroll-y-none cl-p-2 cl-w-full" },
|
|
419
|
+
}, eo = { class: "cl-overflow-y-auto cl-overscroll-y-none cl-p-2 cl-w-full" }, Ul = /* @__PURE__ */ F({
|
|
420
420
|
inheritAttrs: !1,
|
|
421
421
|
__name: "cl-ui-modal",
|
|
422
422
|
props: {
|
|
@@ -426,7 +426,7 @@ const Jt = /* @__PURE__ */ f("div", { tabindex: "0" }, null, -1), Xt = {
|
|
|
426
426
|
trapFocus: { type: Boolean, default: !1 }
|
|
427
427
|
},
|
|
428
428
|
setup(t) {
|
|
429
|
-
const o = t, { trapFocus: l } = Jl(o), e =
|
|
429
|
+
const o = t, { trapFocus: l } = Jl(o), e = I(!1), n = I(), a = _t(n);
|
|
430
430
|
oe([
|
|
431
431
|
l,
|
|
432
432
|
e
|
|
@@ -478,7 +478,7 @@ const Jt = /* @__PURE__ */ f("div", { tabindex: "0" }, null, -1), Xt = {
|
|
|
478
478
|
}, [
|
|
479
479
|
D(g(Z), { icon: "ph:x" })
|
|
480
480
|
], 34), [
|
|
481
|
-
[
|
|
481
|
+
[ee, !r.preventClose]
|
|
482
482
|
]),
|
|
483
483
|
f("div", {
|
|
484
484
|
class: L(["cl-leading-[2.75rem] cl-min-h-12 cl-overflow-hidden cl-pb-2 cl-pl-4 cl-pr-8 cl-pt-2 cl-text-2xl cl-w-full", {
|
|
@@ -495,7 +495,7 @@ const Jt = /* @__PURE__ */ f("div", { tabindex: "0" }, null, -1), Xt = {
|
|
|
495
495
|
M(r.$slots, "footer", de(fe({ close: c })))
|
|
496
496
|
], 16)
|
|
497
497
|
], 512), [
|
|
498
|
-
[
|
|
498
|
+
[ee, e.value]
|
|
499
499
|
])
|
|
500
500
|
]),
|
|
501
501
|
_: 3
|
|
@@ -516,13 +516,13 @@ const Jt = /* @__PURE__ */ f("div", { tabindex: "0" }, null, -1), Xt = {
|
|
|
516
516
|
emits: ["clear-object"],
|
|
517
517
|
setup(t) {
|
|
518
518
|
return (o, l) => (p(), b("div", lo, [
|
|
519
|
-
o.additionalText !== "" ? (p(), b("div", to,
|
|
519
|
+
o.additionalText !== "" ? (p(), b("div", to, N(o.additionalText), 1)) : z("", !0),
|
|
520
520
|
f("div", {
|
|
521
521
|
class: L({
|
|
522
522
|
"cl-w-1/2": o.additionalText !== "",
|
|
523
523
|
"cl-w-full": o.additionalText === ""
|
|
524
524
|
})
|
|
525
|
-
},
|
|
525
|
+
}, N(o.text), 3),
|
|
526
526
|
Q(f("div", {
|
|
527
527
|
class: "cl-cursor-pointer cl-float-right",
|
|
528
528
|
onMousedown: l[0] || (l[0] = (e) => o.$emit("clear-object"))
|
|
@@ -532,14 +532,14 @@ const Jt = /* @__PURE__ */ f("div", { tabindex: "0" }, null, -1), Xt = {
|
|
|
532
532
|
icon: "ph:x"
|
|
533
533
|
})
|
|
534
534
|
], 544), [
|
|
535
|
-
[
|
|
535
|
+
[ee, o.showClearButton]
|
|
536
536
|
])
|
|
537
537
|
]));
|
|
538
538
|
}
|
|
539
539
|
}), oo = {
|
|
540
540
|
key: 0,
|
|
541
541
|
class: "cl-w-1/2"
|
|
542
|
-
}, ao = { class: "cl-float-right cl-py-1 cl-text-black" },
|
|
542
|
+
}, ao = { class: "cl-float-right cl-py-1 cl-text-black" }, yl = /* @__PURE__ */ F({
|
|
543
543
|
__name: "cl-ui-combo-box-selectable",
|
|
544
544
|
props: {
|
|
545
545
|
isCreateNewOption: { type: Boolean, default: !1 },
|
|
@@ -556,7 +556,7 @@ const Jt = /* @__PURE__ */ f("div", { tabindex: "0" }, null, -1), Xt = {
|
|
|
556
556
|
}), a = O(() => {
|
|
557
557
|
var i;
|
|
558
558
|
return ((i = l.option) == null ? void 0 : i.parentName) ?? "";
|
|
559
|
-
}), d =
|
|
559
|
+
}), d = I(!1);
|
|
560
560
|
function c() {
|
|
561
561
|
var i;
|
|
562
562
|
l.isCreateNewOption === !0 ? e("create-object") : e("select-object", (i = l.option) == null ? void 0 : i.id);
|
|
@@ -579,20 +579,20 @@ const Jt = /* @__PURE__ */ f("div", { tabindex: "0" }, null, -1), Xt = {
|
|
|
579
579
|
onMousemove: s[0] || (s[0] = (k) => u(!0)),
|
|
580
580
|
onMouseleave: s[1] || (s[1] = (k) => u(!1))
|
|
581
581
|
}, [
|
|
582
|
-
i.option !== null && ((m = i.option) == null ? void 0 : m.parentId) !== 0 && ((h = i.option) == null ? void 0 : h.parentId) !== void 0 ? (p(), b("div", oo,
|
|
582
|
+
i.option !== null && ((m = i.option) == null ? void 0 : m.parentId) !== 0 && ((h = i.option) == null ? void 0 : h.parentId) !== void 0 ? (p(), b("div", oo, N(a.value), 1)) : z("", !0),
|
|
583
583
|
f("div", {
|
|
584
584
|
class: L({
|
|
585
585
|
"cl-w-1/2": a.value !== "",
|
|
586
586
|
"cl-w-full": a.value === ""
|
|
587
587
|
})
|
|
588
|
-
},
|
|
588
|
+
}, N(n.value), 3),
|
|
589
589
|
Q(f("div", ao, [
|
|
590
590
|
D(g(Z), {
|
|
591
591
|
class: "cl-transition-colors",
|
|
592
592
|
icon: "ph:plus"
|
|
593
593
|
})
|
|
594
594
|
], 512), [
|
|
595
|
-
[
|
|
595
|
+
[ee, i.isCreateNewOption]
|
|
596
596
|
])
|
|
597
597
|
], 34);
|
|
598
598
|
};
|
|
@@ -616,7 +616,7 @@ const Jt = /* @__PURE__ */ f("div", { tabindex: "0" }, null, -1), Xt = {
|
|
|
616
616
|
},
|
|
617
617
|
emits: ["clear-object", "create-object", "select-object", "search", "hide-dropdown"],
|
|
618
618
|
setup(t, { emit: o }) {
|
|
619
|
-
const l = t, e = o, { t: n } = se(), a =
|
|
619
|
+
const l = t, e = o, { t: n } = se(), a = I(""), d = I(!1), c = I(-1), u = O(() => d.value ? -1 : 0), r = I();
|
|
620
620
|
function i(A) {
|
|
621
621
|
(A === void 0 || A.code && A.code.startsWith("Arrow") === !1 && A.code.startsWith("Control") === !1 && A.code.startsWith("Shift") === !1 && A.code.startsWith("Tab") === !1 && A.code !== "Enter") && (e("search", a.value), c.value = -2);
|
|
622
622
|
}
|
|
@@ -679,10 +679,10 @@ const Jt = /* @__PURE__ */ f("div", { tabindex: "0" }, null, -1), Xt = {
|
|
|
679
679
|
"cl-overflow-y-hidden": A.loading
|
|
680
680
|
}]),
|
|
681
681
|
onKeydown: [
|
|
682
|
-
E[2] || (E[2] = me(
|
|
683
|
-
E[3] || (E[3] = me(
|
|
682
|
+
E[2] || (E[2] = me(le((v) => T(u.value), ["prevent", "stop"]), ["up"])),
|
|
683
|
+
E[3] || (E[3] = me(le((v) => k(u.value), ["prevent", "stop"]), ["down"]))
|
|
684
684
|
],
|
|
685
|
-
onKeyup: me(
|
|
685
|
+
onKeyup: me(le($, ["prevent", "stop"]), ["enter"])
|
|
686
686
|
}, [
|
|
687
687
|
A.loading ? (p(), b("div", so, [
|
|
688
688
|
D(_e)
|
|
@@ -727,7 +727,7 @@ const Jt = /* @__PURE__ */ f("div", { tabindex: "0" }, null, -1), Xt = {
|
|
|
727
727
|
class: "!cl-bg-danger-light cl-border-danger-light cl-rounded cl-text-danger-dark",
|
|
728
728
|
text: g(n)("comboBox.errorMessage", { error: A.errorMessage })
|
|
729
729
|
}, null, 8, ["text"])) : z("", !0),
|
|
730
|
-
d.value ? (p(), P(
|
|
730
|
+
d.value ? (p(), P(yl, {
|
|
731
731
|
key: 5,
|
|
732
732
|
"is-create-new-option": !0,
|
|
733
733
|
text: g(n)("comboBox.addPrompt", { value: a.value, object: A.objectType }),
|
|
@@ -738,7 +738,7 @@ const Jt = /* @__PURE__ */ f("div", { tabindex: "0" }, null, -1), Xt = {
|
|
|
738
738
|
onOptionHighlighted: B
|
|
739
739
|
}, null, 8, ["text", "selected-index"])) : z("", !0),
|
|
740
740
|
A.errorMessage === "" && A.results !== null ? (p(), b("div", uo, [
|
|
741
|
-
(p(!0), b(Y, null, re(A.results, (v, C) => (p(), P(
|
|
741
|
+
(p(!0), b(Y, null, re(A.results, (v, C) => (p(), P(yl, {
|
|
742
742
|
key: C,
|
|
743
743
|
option: v,
|
|
744
744
|
index: C,
|
|
@@ -773,10 +773,10 @@ const Jt = /* @__PURE__ */ f("div", { tabindex: "0" }, null, -1), Xt = {
|
|
|
773
773
|
},
|
|
774
774
|
emits: ["focus", "search", "search-parent", "create-object", "create-parent-object", "update:current-object"],
|
|
775
775
|
setup(t, { expose: o, emit: l }) {
|
|
776
|
-
const e = t, n = l, a = O(() => e.placeholderText ? e.placeholderText : c("comboBox.emptyHintText", { object: e.objectType })), d = O(() => e.searchHint ? e.searchHint : c("comboBox.searchHint", { object: e.objectType })), { t: c } = se(), u =
|
|
776
|
+
const e = t, n = l, a = O(() => e.placeholderText ? e.placeholderText : c("comboBox.emptyHintText", { object: e.objectType })), d = O(() => e.searchHint ? e.searchHint : c("comboBox.searchHint", { object: e.objectType })), { t: c } = se(), u = I(!1), r = O({
|
|
777
777
|
get: () => e.currentObject,
|
|
778
778
|
set: (V) => n("update:current-object", V)
|
|
779
|
-
}), i =
|
|
779
|
+
}), i = I(null), s = O(() => K()), m = I(""), h = I(""), k = I(), T = I(!0), $ = I(!1);
|
|
780
780
|
function q(V) {
|
|
781
781
|
var ie;
|
|
782
782
|
const H = ((ie = ne.value) == null ? void 0 : ie.getBoundingClientRect().top) || 0;
|
|
@@ -821,7 +821,7 @@ const Jt = /* @__PURE__ */ f("div", { tabindex: "0" }, null, -1), Xt = {
|
|
|
821
821
|
}
|
|
822
822
|
function v() {
|
|
823
823
|
var V, H;
|
|
824
|
-
(V = e.objectCreatedResponse) != null && V.error ?
|
|
824
|
+
(V = e.objectCreatedResponse) != null && V.error ? hl({
|
|
825
825
|
message: c("comboBox.createFailed", {
|
|
826
826
|
name: m.value,
|
|
827
827
|
error: e.objectCreatedResponse.error
|
|
@@ -839,7 +839,7 @@ const Jt = /* @__PURE__ */ f("div", { tabindex: "0" }, null, -1), Xt = {
|
|
|
839
839
|
}
|
|
840
840
|
function _() {
|
|
841
841
|
var H, ie, ae, Ve, He;
|
|
842
|
-
|
|
842
|
+
hl({
|
|
843
843
|
message: c("comboBox.createSuccessful", {
|
|
844
844
|
object: e.objectType,
|
|
845
845
|
name: ((H = e.objectCreatedResponse) == null ? void 0 : H.name) ?? ""
|
|
@@ -864,7 +864,7 @@ const Jt = /* @__PURE__ */ f("div", { tabindex: "0" }, null, -1), Xt = {
|
|
|
864
864
|
m.value === "" && (V = !1), e.objectParentType !== "" && i.value === null && (V = !1), T.value = V;
|
|
865
865
|
}
|
|
866
866
|
oe(() => e.objectCreatedResponse, () => v()), oe(() => e.parentObjectCreatedResponse, () => C()), oe(() => m.value, () => ve()), oe(() => i.value, () => ve());
|
|
867
|
-
const ne =
|
|
867
|
+
const ne = I();
|
|
868
868
|
return al(ne, () => u.value ? q(!1) : ""), o({
|
|
869
869
|
focus() {
|
|
870
870
|
q(), n("focus");
|
|
@@ -899,14 +899,14 @@ const Jt = /* @__PURE__ */ f("div", { tabindex: "0" }, null, -1), Xt = {
|
|
|
899
899
|
]),
|
|
900
900
|
Q(f("div", vo, [
|
|
901
901
|
f("div", bo, [
|
|
902
|
-
ue(
|
|
902
|
+
ue(N(g(c)("comboBox.required")) + " ", 1),
|
|
903
903
|
D(g(Z), {
|
|
904
904
|
class: "cl-ml-1 cl-mt-1",
|
|
905
905
|
icon: "ph:warning"
|
|
906
906
|
})
|
|
907
907
|
])
|
|
908
908
|
], 512), [
|
|
909
|
-
[
|
|
909
|
+
[ee, V.required && V.disabled === !1 && V.currentObject === null]
|
|
910
910
|
]),
|
|
911
911
|
u.value ? (p(), b("div", {
|
|
912
912
|
key: 1,
|
|
@@ -936,9 +936,9 @@ const Jt = /* @__PURE__ */ f("div", { tabindex: "0" }, null, -1), Xt = {
|
|
|
936
936
|
})
|
|
937
937
|
], 10, ho))
|
|
938
938
|
]),
|
|
939
|
-
D(
|
|
939
|
+
D(Ul, { size: "small" }, {
|
|
940
940
|
title: R(() => [
|
|
941
|
-
ue(
|
|
941
|
+
ue(N(g(c)("comboBox.createTitle", { object: V.objectType })), 1)
|
|
942
942
|
]),
|
|
943
943
|
trigger: R(({ open: ae }) => [
|
|
944
944
|
Q(D(po, {
|
|
@@ -961,7 +961,7 @@ const Jt = /* @__PURE__ */ f("div", { tabindex: "0" }, null, -1), Xt = {
|
|
|
961
961
|
onSearch: U,
|
|
962
962
|
onHideDropdown: H[4] || (H[4] = (Ve) => q(!1))
|
|
963
963
|
}, null, 8, ["can-create-new-object", "can-clear-selected-object", "loading", "results", "object-type", "object-parent-type", "error-message", "current-object-name", "is-visible", "class", "search-hint", "onCreateObject"]), [
|
|
964
|
-
[
|
|
964
|
+
[ee, u.value]
|
|
965
965
|
])
|
|
966
966
|
]),
|
|
967
967
|
footer: R(({ close: ae }) => [
|
|
@@ -973,7 +973,7 @@ const Jt = /* @__PURE__ */ f("div", { tabindex: "0" }, null, -1), Xt = {
|
|
|
973
973
|
onClick: ae
|
|
974
974
|
}, {
|
|
975
975
|
default: R(() => [
|
|
976
|
-
ue(
|
|
976
|
+
ue(N(g(c)("comboBox.cancel")), 1)
|
|
977
977
|
]),
|
|
978
978
|
_: 2
|
|
979
979
|
}, 1032, ["onClick"]),
|
|
@@ -986,7 +986,7 @@ const Jt = /* @__PURE__ */ f("div", { tabindex: "0" }, null, -1), Xt = {
|
|
|
986
986
|
}
|
|
987
987
|
}, {
|
|
988
988
|
default: R(() => [
|
|
989
|
-
ue(
|
|
989
|
+
ue(N(g(c)("comboBox.create")), 1)
|
|
990
990
|
]),
|
|
991
991
|
_: 2
|
|
992
992
|
}, 1032, ["disabled", "onClick"])
|
|
@@ -1015,7 +1015,7 @@ const Jt = /* @__PURE__ */ f("div", { tabindex: "0" }, null, -1), Xt = {
|
|
|
1015
1015
|
class: "cl-box-border cl-font-light cl-mb-2 cl-p-2 cl-placeholder-grey-3 cl-text-sm"
|
|
1016
1016
|
}, {
|
|
1017
1017
|
default: R(() => [
|
|
1018
|
-
ue(
|
|
1018
|
+
ue(N(g(c)("comboBox.createProperty")), 1)
|
|
1019
1019
|
]),
|
|
1020
1020
|
_: 1
|
|
1021
1021
|
}, 8, ["modelValue"])
|
|
@@ -1055,7 +1055,7 @@ function Vo(t, o) {
|
|
|
1055
1055
|
])) : z("", !0)
|
|
1056
1056
|
]);
|
|
1057
1057
|
}
|
|
1058
|
-
const
|
|
1058
|
+
const No = /* @__PURE__ */ he(qo, [["render", Vo]]), zl = Symbol();
|
|
1059
1059
|
function Ge(t) {
|
|
1060
1060
|
const o = t.type !== "slot" || t.slotType !== void 0 && t.field !== void 0, l = t.sortable ?? !0;
|
|
1061
1061
|
return o && l;
|
|
@@ -1064,10 +1064,10 @@ function nl(t) {
|
|
|
1064
1064
|
const o = t.type !== "slot" || t.slotType !== void 0 && t.field !== void 0, l = t.filterable ?? !0;
|
|
1065
1065
|
return o && l;
|
|
1066
1066
|
}
|
|
1067
|
-
function
|
|
1067
|
+
function Io(t) {
|
|
1068
1068
|
return t.some((o) => Ge(o));
|
|
1069
1069
|
}
|
|
1070
|
-
function
|
|
1070
|
+
function wl(t) {
|
|
1071
1071
|
return t.some((o) => nl(o));
|
|
1072
1072
|
}
|
|
1073
1073
|
const Ro = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Mo = { class: "cl-gap-1 cl-grid cl-grid-cols-2 cl-justify-end cl-mb-2 lg:cl-flex lg:cl-gap-2" }, Uo = { class: "cl-basis-0 cl-col-span-2 cl-flex-grow" }, zo = /* @__PURE__ */ f("hr", { class: "cl-block cl-border-grey-3 cl-col-span-2 cl-my-4 lg:cl-hidden" }, null, -1), Lo = {
|
|
@@ -1088,7 +1088,7 @@ const Ro = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Mo = { class: "cl-gap-1
|
|
|
1088
1088
|
const o = t, { t: l } = se(), e = O(() => o.request.filters.some((a) => a.filterValue !== "")), n = ol("cl-ui-grid-id") ?? "cl-ui-grid-filter";
|
|
1089
1089
|
return (a, d) => (p(), b(Y, null, [
|
|
1090
1090
|
f("div", Ro, [
|
|
1091
|
-
f("strong", null,
|
|
1091
|
+
f("strong", null, N(g(l)("grid.gridTools")), 1)
|
|
1092
1092
|
]),
|
|
1093
1093
|
f("div", Mo, [
|
|
1094
1094
|
f("div", Uo, [
|
|
@@ -1103,13 +1103,13 @@ const Ro = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Mo = { class: "cl-gap-1
|
|
|
1103
1103
|
size: "small",
|
|
1104
1104
|
colour: "default",
|
|
1105
1105
|
disabled: a.loading,
|
|
1106
|
-
onClick: d[0] || (d[0] =
|
|
1106
|
+
onClick: d[0] || (d[0] = le((c) => a.$emit("update:edit-mode", !a.editMode), ["prevent"]))
|
|
1107
1107
|
}, {
|
|
1108
1108
|
default: R(() => [
|
|
1109
1109
|
a.editMode ? (p(), b(Y, { key: 0 }, [
|
|
1110
|
-
ue(
|
|
1110
|
+
ue(N(g(l)("grid.finishEditing")), 1)
|
|
1111
1111
|
], 64)) : (p(), b(Y, { key: 1 }, [
|
|
1112
|
-
ue(
|
|
1112
|
+
ue(N(g(l)("grid.editData")), 1)
|
|
1113
1113
|
], 64))
|
|
1114
1114
|
]),
|
|
1115
1115
|
_: 1
|
|
@@ -1117,21 +1117,21 @@ const Ro = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Mo = { class: "cl-gap-1
|
|
|
1117
1117
|
a.options.hideViewManager ? z("", !0) : (p(), b("div", Lo, [
|
|
1118
1118
|
M(a.$slots, "view-manager")
|
|
1119
1119
|
])),
|
|
1120
|
-
g(
|
|
1120
|
+
g(wl)(a.columns) || g(Io)(a.columns) ? (p(), b(Y, { key: 2 }, [
|
|
1121
1121
|
f("div", jo, [
|
|
1122
1122
|
D($e, {
|
|
1123
1123
|
class: "cl-w-full",
|
|
1124
1124
|
size: "small",
|
|
1125
1125
|
disabled: a.loading,
|
|
1126
|
-
onClick: d[1] || (d[1] =
|
|
1126
|
+
onClick: d[1] || (d[1] = le((c) => a.$emit("update:filterPanelOpen", !a.filterPanelOpen), ["prevent"]))
|
|
1127
1127
|
}, {
|
|
1128
1128
|
default: R(() => [
|
|
1129
|
-
ue(
|
|
1129
|
+
ue(N(g(l)("grid.modifyFilters")), 1)
|
|
1130
1130
|
]),
|
|
1131
1131
|
_: 1
|
|
1132
1132
|
}, 8, ["disabled"])
|
|
1133
1133
|
]),
|
|
1134
|
-
g(
|
|
1134
|
+
g(wl)(a.columns) ? (p(), P($e, {
|
|
1135
1135
|
key: 0,
|
|
1136
1136
|
id: `${g(n)}-clear-filters`,
|
|
1137
1137
|
size: "small",
|
|
@@ -1140,10 +1140,10 @@ const Ro = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Mo = { class: "cl-gap-1
|
|
|
1140
1140
|
class: L({
|
|
1141
1141
|
"cl-col-span-2": a.columns.some((c) => c.editable)
|
|
1142
1142
|
}),
|
|
1143
|
-
onClick: d[2] || (d[2] =
|
|
1143
|
+
onClick: d[2] || (d[2] = le((c) => a.$emit("clear-filters"), ["prevent"]))
|
|
1144
1144
|
}, {
|
|
1145
1145
|
default: R(() => [
|
|
1146
|
-
ue(
|
|
1146
|
+
ue(N(g(l)("grid.clearFilters")), 1)
|
|
1147
1147
|
]),
|
|
1148
1148
|
_: 1
|
|
1149
1149
|
}, 8, ["id", "disabled", "class"])) : z("", !0)
|
|
@@ -1164,7 +1164,7 @@ const Ro = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Mo = { class: "cl-gap-1
|
|
|
1164
1164
|
}),
|
|
1165
1165
|
emits: /* @__PURE__ */ ge(["focus", "blur"], ["update:modelValue"]),
|
|
1166
1166
|
setup(t, { expose: o, emit: l }) {
|
|
1167
|
-
const e = Ae(t, "modelValue"), n = l, a =
|
|
1167
|
+
const e = Ae(t, "modelValue"), n = l, a = I();
|
|
1168
1168
|
return o({
|
|
1169
1169
|
focus: () => {
|
|
1170
1170
|
var d;
|
|
@@ -1177,7 +1177,7 @@ const Ro = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Mo = { class: "cl-gap-1
|
|
|
1177
1177
|
}), (d, c) => (p(), P(Je, {
|
|
1178
1178
|
"show-required-asterisk": d.required,
|
|
1179
1179
|
errors: d.errors
|
|
1180
|
-
},
|
|
1180
|
+
}, Ne({
|
|
1181
1181
|
default: R(() => [
|
|
1182
1182
|
Q(f("input", te({
|
|
1183
1183
|
ref_key: "inputRef",
|
|
@@ -1188,7 +1188,7 @@ const Ro = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Mo = { class: "cl-gap-1
|
|
|
1188
1188
|
type: "checkbox",
|
|
1189
1189
|
required: d.required,
|
|
1190
1190
|
disabled: d.disabled,
|
|
1191
|
-
onKeydown: c[1] || (c[1] = me(
|
|
1191
|
+
onKeydown: c[1] || (c[1] = me(le((u) => {
|
|
1192
1192
|
e.value = !e.value;
|
|
1193
1193
|
}, ["stop", "prevent"]), ["enter"])),
|
|
1194
1194
|
onFocus: c[2] || (c[2] = (u) => n("focus")),
|
|
@@ -1209,7 +1209,7 @@ const Ro = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Mo = { class: "cl-gap-1
|
|
|
1209
1209
|
]), 1032, ["show-required-asterisk", "errors"]));
|
|
1210
1210
|
}
|
|
1211
1211
|
}), sl = /* @__PURE__ */ he(Po, [["__scopeId", "data-v-d8bbd8db"]]);
|
|
1212
|
-
var
|
|
1212
|
+
var X = /* @__PURE__ */ ((t) => (t.CURRENCY = "currency", t.PERCENTAGE = "percentage", t.INTEGER = "integer", t.DECIMAL = "decimal", t.MULTIPLIER = "multiplier", t))(X || {}), ce = /* @__PURE__ */ ((t) => (t.SHORT_DATE = "short-date", t.SHORT_DATETIME = "short-datetime", t.DATE = "date", t.DATETIME = "datetime", t.LONG_DATE = "long-date", t.LONG_DATETIME = "long-datetime", t.TIME = "time", t.MONTH_YEAR = "month-year", t))(ce || {});
|
|
1213
1213
|
const Ho = {
|
|
1214
1214
|
"en-GB": {
|
|
1215
1215
|
comboBox: {
|
|
@@ -1313,20 +1313,20 @@ const Ho = {
|
|
|
1313
1313
|
}
|
|
1314
1314
|
}, Wo = {
|
|
1315
1315
|
"en-GB": {
|
|
1316
|
-
[
|
|
1316
|
+
[X.PERCENTAGE]: {
|
|
1317
1317
|
style: "percent",
|
|
1318
1318
|
maximumFractionDigits: 2,
|
|
1319
1319
|
minimumFractionDigits: 0
|
|
1320
1320
|
},
|
|
1321
|
-
[
|
|
1321
|
+
[X.INTEGER]: {
|
|
1322
1322
|
maximumFractionDigits: 0,
|
|
1323
1323
|
minimumFractionDigits: 0
|
|
1324
1324
|
},
|
|
1325
|
-
[
|
|
1325
|
+
[X.DECIMAL]: {
|
|
1326
1326
|
maximumFractionDigits: 2,
|
|
1327
1327
|
minimumFractionDigits: 1
|
|
1328
1328
|
},
|
|
1329
|
-
[
|
|
1329
|
+
[X.CURRENCY]: {
|
|
1330
1330
|
style: "currency",
|
|
1331
1331
|
currency: "GBP",
|
|
1332
1332
|
currencyDisplay: "symbol",
|
|
@@ -1392,27 +1392,27 @@ const Ho = {
|
|
|
1392
1392
|
fallbackWarn: !1,
|
|
1393
1393
|
warnHtmlMessage: !1
|
|
1394
1394
|
});
|
|
1395
|
-
function
|
|
1395
|
+
function ci(t, o) {
|
|
1396
1396
|
return be.global.mergeLocaleMessage(t, o), Me();
|
|
1397
1397
|
}
|
|
1398
|
-
function
|
|
1398
|
+
function ui(t, o) {
|
|
1399
1399
|
return be.global.mergeNumberFormat(t, o), Me();
|
|
1400
1400
|
}
|
|
1401
|
-
function
|
|
1401
|
+
function di(t, o) {
|
|
1402
1402
|
return be.global.mergeDateTimeFormat(t, o), Me();
|
|
1403
1403
|
}
|
|
1404
|
-
function
|
|
1404
|
+
function pi(t) {
|
|
1405
1405
|
return be.global.locale.value = t, Me();
|
|
1406
1406
|
}
|
|
1407
|
-
const {
|
|
1407
|
+
const { locale: Go, getNumberFormat: Ko } = be.global, rl = X.DECIMAL;
|
|
1408
1408
|
function Oe(t) {
|
|
1409
|
-
return Se(t,
|
|
1409
|
+
return Se(t, X.DECIMAL, { additionalOptions: {
|
|
1410
1410
|
minimumFractionDigits: 0,
|
|
1411
1411
|
maximumFractionDigits: 0
|
|
1412
1412
|
} });
|
|
1413
1413
|
}
|
|
1414
1414
|
function el(t, o) {
|
|
1415
|
-
return Se(t,
|
|
1415
|
+
return Se(t, X.DECIMAL, { additionalOptions: {
|
|
1416
1416
|
minimumFractionDigits: 0,
|
|
1417
1417
|
maximumFractionDigits: o
|
|
1418
1418
|
} });
|
|
@@ -1420,12 +1420,12 @@ function el(t, o) {
|
|
|
1420
1420
|
function Se(t, o, l) {
|
|
1421
1421
|
if (Xe(o)) {
|
|
1422
1422
|
const e = Be(rl, l);
|
|
1423
|
-
return o.replace(/\{0\}/g,
|
|
1423
|
+
return o.replace(/\{0\}/g, $l(t, e) ?? "");
|
|
1424
1424
|
} else {
|
|
1425
|
-
const e = Be(
|
|
1426
|
-
let n =
|
|
1425
|
+
const e = Be(ul(o), l);
|
|
1426
|
+
let n = $l(t, e) ?? "";
|
|
1427
1427
|
if (o === "currency-without-symbol") {
|
|
1428
|
-
const a =
|
|
1428
|
+
const a = cl(e);
|
|
1429
1429
|
if (a) {
|
|
1430
1430
|
const d = qe(a, 0, "unit", "currency", "literal");
|
|
1431
1431
|
n = ke(n, d, "");
|
|
@@ -1434,17 +1434,17 @@ function Se(t, o, l) {
|
|
|
1434
1434
|
return n;
|
|
1435
1435
|
}
|
|
1436
1436
|
}
|
|
1437
|
-
function
|
|
1437
|
+
function Ll(t, o, l) {
|
|
1438
1438
|
if (Xe(o)) {
|
|
1439
|
-
const e =
|
|
1440
|
-
return
|
|
1439
|
+
const e = Qo(t, o);
|
|
1440
|
+
return kl(e ?? t, rl, l);
|
|
1441
1441
|
} else
|
|
1442
|
-
return
|
|
1442
|
+
return kl(t, ul(o), l);
|
|
1443
1443
|
}
|
|
1444
1444
|
function il(t, o) {
|
|
1445
|
-
return Xe(t) ? Be(rl, o) : Be(
|
|
1445
|
+
return Xe(t) ? Be(rl, o) : Be(ul(t), o);
|
|
1446
1446
|
}
|
|
1447
|
-
function
|
|
1447
|
+
function Qo(t, o) {
|
|
1448
1448
|
let l = null;
|
|
1449
1449
|
t = `!${t}!`;
|
|
1450
1450
|
const e = `!${o}!`.split("{0}");
|
|
@@ -1461,10 +1461,10 @@ function xo(t, o) {
|
|
|
1461
1461
|
}
|
|
1462
1462
|
return t !== "" && (l = null), l;
|
|
1463
1463
|
}
|
|
1464
|
-
function
|
|
1464
|
+
function kl(t, o, l) {
|
|
1465
1465
|
if (!t)
|
|
1466
1466
|
return NaN;
|
|
1467
|
-
const e = Be(o, l), n =
|
|
1467
|
+
const e = Be(o, l), n = cl(e);
|
|
1468
1468
|
if (n === null)
|
|
1469
1469
|
return NaN;
|
|
1470
1470
|
const a = qe(n, 10000.11111, "group"), d = qe(n, 1.111, "decimal"), c = qe(n, 1, "currency", "unit"), u = qe(n, 1, "percentSign"), r = qe(n, 1, "plusSign"), i = qe(n, -1, "minusSign"), s = qe(n, -10000.11111, "literal", "unknown"), m = i.some((q) => t.startsWith(q) || t.endsWith(q)) || t.startsWith("(") && t.endsWith(")"), h = u.some((q) => t.startsWith(q) || t.endsWith(q)), k = d.some((q) => t.includes(q)), T = (m ? -1 : 1) * (h ? 0.01 : 1);
|
|
@@ -1492,14 +1492,11 @@ function ke(t, o, l, e = t.length + 1, n = !1) {
|
|
|
1492
1492
|
function qe(t, o, ...l) {
|
|
1493
1493
|
return t.formatToParts(o).filter((e) => l.includes(e.type)).map((e) => e.value);
|
|
1494
1494
|
}
|
|
1495
|
-
function
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
} catch (l) {
|
|
1499
|
-
return console.error(l), null;
|
|
1500
|
-
}
|
|
1495
|
+
function $l(t, o) {
|
|
1496
|
+
var l;
|
|
1497
|
+
return isNaN(t) ? "" : ((l = cl(o)) == null ? void 0 : l.format(t)) ?? null;
|
|
1501
1498
|
}
|
|
1502
|
-
function
|
|
1499
|
+
function cl(t) {
|
|
1503
1500
|
try {
|
|
1504
1501
|
return new Intl.NumberFormat(t.locale, t);
|
|
1505
1502
|
} catch (o) {
|
|
@@ -1507,7 +1504,7 @@ function Ll(t) {
|
|
|
1507
1504
|
}
|
|
1508
1505
|
}
|
|
1509
1506
|
function Be(t, o) {
|
|
1510
|
-
const l =
|
|
1507
|
+
const l = vl(o == null ? void 0 : o.locale) || g(Go), e = Ko(l), n = pe(vl(o == null ? void 0 : o.additionalOptions) ?? {});
|
|
1511
1508
|
return {
|
|
1512
1509
|
...e[t],
|
|
1513
1510
|
locale: l,
|
|
@@ -1515,16 +1512,16 @@ function Be(t, o) {
|
|
|
1515
1512
|
...n
|
|
1516
1513
|
};
|
|
1517
1514
|
}
|
|
1518
|
-
function
|
|
1519
|
-
return
|
|
1515
|
+
function ul(t) {
|
|
1516
|
+
return xo(t) ? t : X.CURRENCY;
|
|
1520
1517
|
}
|
|
1521
1518
|
function Xe(t) {
|
|
1522
1519
|
return t.includes("{0}");
|
|
1523
1520
|
}
|
|
1524
|
-
function
|
|
1521
|
+
function xo(t) {
|
|
1525
1522
|
return !Xe(t) && t !== "currency-without-symbol";
|
|
1526
1523
|
}
|
|
1527
|
-
function
|
|
1524
|
+
function Yo(t) {
|
|
1528
1525
|
if (t.startsWith("ClUi"))
|
|
1529
1526
|
return {
|
|
1530
1527
|
name: `clUi${t.slice(4)}`,
|
|
@@ -1536,11 +1533,11 @@ function _o(t) {
|
|
|
1536
1533
|
from: "@iconify/vue"
|
|
1537
1534
|
};
|
|
1538
1535
|
}
|
|
1539
|
-
function
|
|
1540
|
-
return
|
|
1536
|
+
function fi() {
|
|
1537
|
+
return Yo;
|
|
1541
1538
|
}
|
|
1542
1539
|
const { t: ye } = be.global;
|
|
1543
|
-
function
|
|
1540
|
+
function _o(t, o, l, e, n) {
|
|
1544
1541
|
return new Promise((a) => {
|
|
1545
1542
|
let d = {
|
|
1546
1543
|
valid: !1,
|
|
@@ -1595,7 +1592,7 @@ function Jo(t, o, l, e, n) {
|
|
|
1595
1592
|
a(d);
|
|
1596
1593
|
});
|
|
1597
1594
|
}
|
|
1598
|
-
function
|
|
1595
|
+
function Jo(t, o, l, e, n) {
|
|
1599
1596
|
return new Promise((a) => {
|
|
1600
1597
|
let d = {
|
|
1601
1598
|
valid: !1,
|
|
@@ -1650,13 +1647,13 @@ function Xo(t, o, l, e, n) {
|
|
|
1650
1647
|
a(d);
|
|
1651
1648
|
});
|
|
1652
1649
|
}
|
|
1653
|
-
function
|
|
1650
|
+
function Xo(t, o) {
|
|
1654
1651
|
return new Promise((l) => {
|
|
1655
1652
|
const e = o != null && o !== "" && o.toString().trim() !== "", n = we(e, ye("input.valueIsRequired", { label: t }));
|
|
1656
1653
|
l(n);
|
|
1657
1654
|
});
|
|
1658
1655
|
}
|
|
1659
|
-
function
|
|
1656
|
+
function ea(t, o) {
|
|
1660
1657
|
return new Promise((l) => {
|
|
1661
1658
|
const n = o === "" || /[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?/.exec(o) !== null, a = we(n, ye("input.valueNotValidEmail", { label: t }));
|
|
1662
1659
|
l(a);
|
|
@@ -1668,16 +1665,16 @@ function we(t, o) {
|
|
|
1668
1665
|
message: t ? "" : o
|
|
1669
1666
|
};
|
|
1670
1667
|
}
|
|
1671
|
-
const
|
|
1668
|
+
const la = {
|
|
1672
1669
|
key: 3,
|
|
1673
1670
|
class: "cl-inline-block cl-whitespace-nowrap"
|
|
1674
|
-
},
|
|
1671
|
+
}, ta = {
|
|
1675
1672
|
key: 4,
|
|
1676
1673
|
class: "cl-inline-block cl-whitespace-nowrap"
|
|
1677
|
-
},
|
|
1674
|
+
}, oa = {
|
|
1678
1675
|
key: 5,
|
|
1679
1676
|
class: "cl-inline-block cl-whitespace-nowrap"
|
|
1680
|
-
},
|
|
1677
|
+
}, aa = ["innerHTML"], Cl = /* @__PURE__ */ F({
|
|
1681
1678
|
__name: "cl-ui-grid-cell-value",
|
|
1682
1679
|
props: {
|
|
1683
1680
|
data: {},
|
|
@@ -1686,7 +1683,7 @@ const ta = {
|
|
|
1686
1683
|
searchValue: {}
|
|
1687
1684
|
},
|
|
1688
1685
|
setup(t) {
|
|
1689
|
-
const o = t, l = ol(
|
|
1686
|
+
const o = t, l = ol(zl), { t: e, locale: n } = se();
|
|
1690
1687
|
function a(u, r) {
|
|
1691
1688
|
let i;
|
|
1692
1689
|
o.timeZone ? i = W.fromISO(u, {
|
|
@@ -1724,13 +1721,13 @@ const ta = {
|
|
|
1724
1721
|
return o.column.maxLength && (u = u.trimToLength(o.column.maxLength, o.column.format !== void 0 ? o.column.format === "ellipsis" : !1)), o.searchValue && o.column.searchable && (u = st(u, o.searchValue.split(" "))), o.column.format === "wrap-text" && (u = `<span class="cl-break-words cl-whitespace-pre-wrap">${u}</span>`), u;
|
|
1725
1722
|
}
|
|
1726
1723
|
function c(u, r) {
|
|
1727
|
-
return o.column.format ===
|
|
1724
|
+
return o.column.format === X.INTEGER ? Se(u, X.DECIMAL, {
|
|
1728
1725
|
locale: r,
|
|
1729
1726
|
additionalOptions: {
|
|
1730
1727
|
maximumFractionDigits: 0,
|
|
1731
1728
|
minimumFractionDigits: 0
|
|
1732
1729
|
}
|
|
1733
|
-
}) : Se(u, o.column.format ??
|
|
1730
|
+
}) : Se(u, o.column.format ?? X.DECIMAL, { locale: r });
|
|
1734
1731
|
}
|
|
1735
1732
|
return (u, r) => {
|
|
1736
1733
|
var i;
|
|
@@ -1741,20 +1738,20 @@ const ta = {
|
|
|
1741
1738
|
disabled: !0
|
|
1742
1739
|
}, null, 8, ["model-value"])) : (u.column.type === "date" || u.column.type === "datetime" || u.column.type === "dateRange") && u.column.field !== void 0 ? (p(), b(Y, { key: 2 }, [
|
|
1743
1740
|
u.column.format !== void 0 ? (p(), b(Y, { key: 0 }, [
|
|
1744
|
-
ue(
|
|
1741
|
+
ue(N(a(u.data[u.column.field], u.column.format)), 1)
|
|
1745
1742
|
], 64)) : u.column.type === "date" || u.column.type === "dateRange" ? (p(), b(Y, { key: 1 }, [
|
|
1746
|
-
ue(
|
|
1743
|
+
ue(N(a(u.data[u.column.field], g(ce).DATE)), 1)
|
|
1747
1744
|
], 64)) : (p(), b(Y, { key: 2 }, [
|
|
1748
|
-
ue(
|
|
1745
|
+
ue(N(a(u.data[u.column.field], g(ce).DATETIME)), 1)
|
|
1749
1746
|
], 64))
|
|
1750
|
-
], 64)) : u.column.type === "list" && u.column.field !== void 0 && u.column.listEntries !== void 0 ? (p(), b("span",
|
|
1747
|
+
], 64)) : u.column.type === "list" && u.column.field !== void 0 && u.column.listEntries !== void 0 ? (p(), b("span", la, N(g(e)(((i = u.column.listEntries.find((s) => s.value === u.data[u.column.field])) == null ? void 0 : i.translationKey) ?? "")), 1)) : u.column.type === "number" && u.column.field !== void 0 ? (p(), b("span", ta, N(c(u.data[u.column.field], g(n))), 1)) : u.column.field !== void 0 ? (p(), b("span", oa, [
|
|
1751
1748
|
f("span", {
|
|
1752
1749
|
innerHTML: d()
|
|
1753
|
-
}, null, 8,
|
|
1750
|
+
}, null, 8, aa)
|
|
1754
1751
|
])) : z("", !0);
|
|
1755
1752
|
};
|
|
1756
1753
|
}
|
|
1757
|
-
}),
|
|
1754
|
+
}), na = { class: "cl-font-semibold lg:cl-hidden" }, sa = /* @__PURE__ */ F({
|
|
1758
1755
|
__name: "cl-ui-grid-cell",
|
|
1759
1756
|
props: {
|
|
1760
1757
|
data: {},
|
|
@@ -1765,7 +1762,7 @@ const ta = {
|
|
|
1765
1762
|
},
|
|
1766
1763
|
emits: ["edit", "focus", "undo"],
|
|
1767
1764
|
setup(t, { emit: o }) {
|
|
1768
|
-
const l = t, e = o, { t: n } = se(), a =
|
|
1765
|
+
const l = t, e = o, { t: n } = se(), a = I(pe(l.data)), d = O(() => l.column.field !== void 0 && a.value[l.column.field] !== l.data[l.column.field]), c = O(() => {
|
|
1769
1766
|
var u;
|
|
1770
1767
|
return ((u = l.column.listEntries) == null ? void 0 : u.map((r, i) => ({
|
|
1771
1768
|
id: i,
|
|
@@ -1782,7 +1779,7 @@ const ta = {
|
|
|
1782
1779
|
"cl-bg-link-lighter": d.value
|
|
1783
1780
|
}])
|
|
1784
1781
|
}, [
|
|
1785
|
-
f("span",
|
|
1782
|
+
f("span", na, N(u.column.caption), 1),
|
|
1786
1783
|
u.editMode && u.column.editable === !0 ? M(u.$slots, `${u.column.name}Edit`, de(te({ key: 0 }, {
|
|
1787
1784
|
cellFocused: () => e("focus"),
|
|
1788
1785
|
column: u.column,
|
|
@@ -1791,7 +1788,7 @@ const ta = {
|
|
|
1791
1788
|
listEntries: c.value,
|
|
1792
1789
|
searchValue: u.searchValue
|
|
1793
1790
|
})), () => [
|
|
1794
|
-
D(
|
|
1791
|
+
D(Cl, {
|
|
1795
1792
|
column: u.column,
|
|
1796
1793
|
data: u.data,
|
|
1797
1794
|
"time-zone": u.timeZone,
|
|
@@ -1806,7 +1803,7 @@ const ta = {
|
|
|
1806
1803
|
]),
|
|
1807
1804
|
_: 2
|
|
1808
1805
|
}, 1032, ["column", "data", "time-zone", "search-value"])
|
|
1809
|
-
]) : (p(), P(
|
|
1806
|
+
]) : (p(), P(Cl, {
|
|
1810
1807
|
key: 1,
|
|
1811
1808
|
column: u.column,
|
|
1812
1809
|
data: u.data,
|
|
@@ -1820,7 +1817,7 @@ const ta = {
|
|
|
1820
1817
|
}, 1032, ["column", "data", "time-zone", "search-value"]))
|
|
1821
1818
|
], 2));
|
|
1822
1819
|
}
|
|
1823
|
-
}),
|
|
1820
|
+
}), ra = /* @__PURE__ */ F({
|
|
1824
1821
|
__name: "cl-ui-grid-row",
|
|
1825
1822
|
props: {
|
|
1826
1823
|
data: {},
|
|
@@ -1832,7 +1829,7 @@ const ta = {
|
|
|
1832
1829
|
emits: ["cell-focus", "cell-edit", "cell-undo"],
|
|
1833
1830
|
setup(t) {
|
|
1834
1831
|
return (o, l) => (p(), b("tr", null, [
|
|
1835
|
-
(p(!0), b(Y, null, re(o.columns, (e, n) => (p(), P(
|
|
1832
|
+
(p(!0), b(Y, null, re(o.columns, (e, n) => (p(), P(sa, {
|
|
1836
1833
|
key: n,
|
|
1837
1834
|
data: o.data,
|
|
1838
1835
|
column: e,
|
|
@@ -1842,7 +1839,7 @@ const ta = {
|
|
|
1842
1839
|
onFocus: l[0] || (l[0] = (a) => o.$emit("cell-focus")),
|
|
1843
1840
|
onEdit: (a) => o.$emit("cell-edit", { field: e.field, value: a }),
|
|
1844
1841
|
onUndo: (a) => o.$emit("cell-undo", e.field)
|
|
1845
|
-
},
|
|
1842
|
+
}, Ne({ _: 2 }, [
|
|
1846
1843
|
re(o.$slots, (a, d) => ({
|
|
1847
1844
|
name: d,
|
|
1848
1845
|
fn: R((c) => [
|
|
@@ -1852,10 +1849,10 @@ const ta = {
|
|
|
1852
1849
|
]), 1032, ["data", "column", "time-zone", "search-value", "edit-mode", "onEdit", "onUndo"]))), 128))
|
|
1853
1850
|
]));
|
|
1854
1851
|
}
|
|
1855
|
-
}),
|
|
1852
|
+
}), ia = { key: 1 }, ca = ["colspan"], ua = { class: "cl-flex cl-flex-wrap cl-justify-center cl-text-center cl-text-sm cl-w-full" }, da = { class: "cl-mt-6 cl-w-full" }, pa = {
|
|
1856
1853
|
key: 0,
|
|
1857
1854
|
class: "cl-mt-4"
|
|
1858
|
-
},
|
|
1855
|
+
}, fa = { class: "cl-mb-2 cl-w-full" }, ma = /* @__PURE__ */ F({
|
|
1859
1856
|
__name: "cl-ui-grid-body",
|
|
1860
1857
|
props: {
|
|
1861
1858
|
columns: {},
|
|
@@ -1869,7 +1866,7 @@ const ta = {
|
|
|
1869
1866
|
},
|
|
1870
1867
|
emits: ["row-select", "row-edit", "row-edit-cancelled", "clear-filters"],
|
|
1871
1868
|
setup(t, { emit: o }) {
|
|
1872
|
-
const l = t, e = o, { t: n } = se(), a =
|
|
1869
|
+
const l = t, e = o, { t: n } = se(), a = I({
|
|
1873
1870
|
index: -1,
|
|
1874
1871
|
record: {}
|
|
1875
1872
|
});
|
|
@@ -1890,7 +1887,7 @@ const ta = {
|
|
|
1890
1887
|
}, e("row-edit-cancelled", pe(a.value));
|
|
1891
1888
|
}
|
|
1892
1889
|
}
|
|
1893
|
-
const i =
|
|
1890
|
+
const i = I({});
|
|
1894
1891
|
oe(() => l.data, () => {
|
|
1895
1892
|
var h, k;
|
|
1896
1893
|
return i.value = Object.fromEntries(((k = (h = l.data) == null ? void 0 : h.results) == null ? void 0 : k.map((T, $) => [
|
|
@@ -1898,7 +1895,7 @@ const ta = {
|
|
|
1898
1895
|
{
|
|
1899
1896
|
count: 0,
|
|
1900
1897
|
target: null,
|
|
1901
|
-
reset:
|
|
1898
|
+
reset: Nl(() => {
|
|
1902
1899
|
i.value[$] && (i.value[$].count = 0, i.value[$].target = null);
|
|
1903
1900
|
}, 2500, { immediate: !1 })
|
|
1904
1901
|
}
|
|
@@ -1919,7 +1916,7 @@ const ta = {
|
|
|
1919
1916
|
}), (h, k) => {
|
|
1920
1917
|
var T;
|
|
1921
1918
|
return p(), b("tbody", null, [
|
|
1922
|
-
h.data && ((T = h.data.results) != null && T.length) ? (p(!0), b(Y, { key: 0 }, re(h.data.results, ($, q) => (p(), P(
|
|
1919
|
+
h.data && ((T = h.data.results) != null && T.length) ? (p(!0), b(Y, { key: 0 }, re(h.data.results, ($, q) => (p(), P(ra, {
|
|
1923
1920
|
key: q,
|
|
1924
1921
|
data: $,
|
|
1925
1922
|
columns: h.columns,
|
|
@@ -1942,44 +1939,44 @@ const ta = {
|
|
|
1942
1939
|
u(q, U);
|
|
1943
1940
|
},
|
|
1944
1941
|
onCellUndo: r
|
|
1945
|
-
},
|
|
1942
|
+
}, Ne({ _: 2 }, [
|
|
1946
1943
|
re(h.$slots, (U, S) => ({
|
|
1947
1944
|
name: S,
|
|
1948
1945
|
fn: R((B) => [
|
|
1949
1946
|
M(h.$slots, S, te(B, { disabled: h.loading }))
|
|
1950
1947
|
])
|
|
1951
1948
|
}))
|
|
1952
|
-
]), 1032, ["data", "columns", "time-zone", "search-value", "edit-mode", "class", "onClick", "onCellFocus", "onCellEdit"]))), 128)) : h.loading ? z("", !0) : (p(), b("tr",
|
|
1949
|
+
]), 1032, ["data", "columns", "time-zone", "search-value", "edit-mode", "class", "onClick", "onCellFocus", "onCellEdit"]))), 128)) : h.loading ? z("", !0) : (p(), b("tr", ia, [
|
|
1953
1950
|
f("td", {
|
|
1954
1951
|
colspan: h.columns.length
|
|
1955
1952
|
}, [
|
|
1956
|
-
f("div",
|
|
1957
|
-
f("strong",
|
|
1958
|
-
h.request.filters.some(($) => $.filterValue !== "") ? (p(), b("div",
|
|
1959
|
-
f("div",
|
|
1953
|
+
f("div", ua, [
|
|
1954
|
+
f("strong", da, N(g(n)("grid.noData")), 1),
|
|
1955
|
+
h.request.filters.some(($) => $.filterValue !== "") ? (p(), b("div", pa, [
|
|
1956
|
+
f("div", fa, N(g(n)("grid.noDataFiltersPresent")), 1),
|
|
1960
1957
|
D($e, {
|
|
1961
1958
|
size: "small",
|
|
1962
1959
|
colour: "danger",
|
|
1963
|
-
onClick: k[0] || (k[0] =
|
|
1960
|
+
onClick: k[0] || (k[0] = le(($) => h.$emit("clear-filters"), ["prevent"]))
|
|
1964
1961
|
}, {
|
|
1965
1962
|
default: R(() => [
|
|
1966
|
-
ue(
|
|
1963
|
+
ue(N(g(n)("grid.clearFilters")), 1)
|
|
1967
1964
|
]),
|
|
1968
1965
|
_: 1
|
|
1969
1966
|
})
|
|
1970
1967
|
])) : z("", !0)
|
|
1971
1968
|
])
|
|
1972
|
-
], 8,
|
|
1969
|
+
], 8, ca)
|
|
1973
1970
|
]))
|
|
1974
1971
|
]);
|
|
1975
1972
|
};
|
|
1976
1973
|
}
|
|
1977
|
-
}),
|
|
1974
|
+
}), ga = ["value", "inputmode", "required", "disabled", "placeholder"], va = { class: "cl-absolute cl-flex-col cl-flex-nowrap cl-h-full cl-hidden cl-justify-between cl-py-0.5 cl-right-1 cl-text-xs cl-top-0 xl:cl-flex" }, ba = ["disabled"], ha = ["disabled"], Pe = /* @__PURE__ */ F({
|
|
1978
1975
|
inheritAttrs: !1,
|
|
1979
1976
|
__name: "cl-ui-input-number",
|
|
1980
1977
|
props: /* @__PURE__ */ ge({
|
|
1981
1978
|
errors: { default: () => [] },
|
|
1982
|
-
format: { default:
|
|
1979
|
+
format: { default: X.DECIMAL },
|
|
1983
1980
|
locale: { default: null },
|
|
1984
1981
|
currency: { default: null },
|
|
1985
1982
|
required: { type: Boolean, default: !1 },
|
|
@@ -1996,11 +1993,12 @@ const ta = {
|
|
|
1996
1993
|
}),
|
|
1997
1994
|
emits: /* @__PURE__ */ ge(["focus", "blur"], ["update:modelValue"]),
|
|
1998
1995
|
setup(t, { expose: o, emit: l }) {
|
|
1999
|
-
const e = t, n = Ae(t, "modelValue"), a = l, d =
|
|
1996
|
+
const e = t, n = Ae(t, "modelValue"), a = l, d = I(0), c = I(), u = I(), { isOutside: r } = ut(u), { focused: i } = dt(c), s = O(() => e.showArrows && r.value === !1);
|
|
2000
1997
|
oe(i, () => {
|
|
2001
1998
|
i.value ? a("focus") : (x(S.value, !0), q.value = void 0, a("blur"));
|
|
2002
1999
|
});
|
|
2003
2000
|
const m = O(() => ({
|
|
2001
|
+
style: e.format === X.CURRENCY ? "currency" : void 0,
|
|
2004
2002
|
currency: e.currency || void 0,
|
|
2005
2003
|
currencyDisplay: "narrowSymbol",
|
|
2006
2004
|
minimumFractionDigits: e.precision,
|
|
@@ -2008,7 +2006,7 @@ const ta = {
|
|
|
2008
2006
|
})), h = O(() => e.format ? il(e.format, {
|
|
2009
2007
|
locale: e.locale,
|
|
2010
2008
|
additionalOptions: m.value
|
|
2011
|
-
}) : m.value), k = O(() => Math.pow(10, h.value.maximumFractionDigits ?? 0)), T = O(() => Math.pow(10, e.format ===
|
|
2009
|
+
}) : m.value), k = O(() => Math.pow(10, h.value.maximumFractionDigits ?? 0)), T = O(() => Math.pow(10, e.format === X.PERCENTAGE ? 2 : 0)), $ = O(() => k.value * T.value), q = I(void 0);
|
|
2012
2010
|
oe(n, () => q.value = void 0);
|
|
2013
2011
|
const U = O({
|
|
2014
2012
|
get: () => q.value ? E(q.value) : n.value,
|
|
@@ -2025,7 +2023,7 @@ const ta = {
|
|
|
2025
2023
|
n.value = null;
|
|
2026
2024
|
else if (v !== "") {
|
|
2027
2025
|
let _ = typeof v == "number" ? v : E(v);
|
|
2028
|
-
C && e.format ===
|
|
2026
|
+
C && e.format === X.PERCENTAGE && (_ = _ / T.value), isNaN(_) === !1 && (n.value = B(Math.round(_ * $.value) / $.value));
|
|
2029
2027
|
}
|
|
2030
2028
|
}
|
|
2031
2029
|
function A(v) {
|
|
@@ -2035,7 +2033,7 @@ const ta = {
|
|
|
2035
2033
|
}) : v.toString();
|
|
2036
2034
|
}
|
|
2037
2035
|
function E(v) {
|
|
2038
|
-
return e.format ?
|
|
2036
|
+
return e.format ? Ll(v, e.format, {
|
|
2039
2037
|
locale: e.locale,
|
|
2040
2038
|
additionalOptions: m.value
|
|
2041
2039
|
}) : +v;
|
|
@@ -2058,7 +2056,7 @@ const ta = {
|
|
|
2058
2056
|
return p(), P(Je, {
|
|
2059
2057
|
"show-required-asterisk": v.required,
|
|
2060
2058
|
errors: v.errors
|
|
2061
|
-
},
|
|
2059
|
+
}, Ne({
|
|
2062
2060
|
default: R(() => [
|
|
2063
2061
|
f("div", {
|
|
2064
2062
|
ref_key: "focusWithinRef",
|
|
@@ -2072,42 +2070,42 @@ const ta = {
|
|
|
2072
2070
|
value: S.value,
|
|
2073
2071
|
class: "cl-bg-white cl-border cl-border-grey-2 cl-outline-none cl-p-1 cl-px-2 cl-rounded-lg cl-transition-colors disabled:cl-bg-grey-1 disabled:cl-border-grey-2 disabled:cl-placeholder-grey-3 focus-within:cl-border-link-light hover:cl-border-grey-3",
|
|
2074
2072
|
type: "text",
|
|
2075
|
-
inputmode: v.format === g(
|
|
2073
|
+
inputmode: v.format === g(X).DECIMAL && v.precision === 0 ? "numeric" : "decimal",
|
|
2076
2074
|
required: v.required,
|
|
2077
2075
|
disabled: v.disabled,
|
|
2078
2076
|
placeholder: v.placeholder ?? void 0,
|
|
2079
2077
|
onInput: C[0] || (C[0] = (K) => S.value = K.target.value),
|
|
2080
2078
|
onKeydown: [
|
|
2081
|
-
C[1] || (C[1] = me(
|
|
2082
|
-
C[2] || (C[2] = me(
|
|
2083
|
-
C[3] || (C[3] = me(
|
|
2079
|
+
C[1] || (C[1] = me(le((K) => x(K.target.value, !0), ["stop", "prevent"]), ["enter"])),
|
|
2080
|
+
C[2] || (C[2] = me(le((K) => y(!0), ["stop", "prevent"]), ["down"])),
|
|
2081
|
+
C[3] || (C[3] = me(le((K) => y(!1), ["stop", "prevent"]), ["up"]))
|
|
2084
2082
|
]
|
|
2085
|
-
}), null, 16,
|
|
2086
|
-
Q(f("div",
|
|
2083
|
+
}), null, 16, ga)),
|
|
2084
|
+
Q(f("div", va, [
|
|
2087
2085
|
f("button", {
|
|
2088
2086
|
class: "cl-bg-opacity-30 cl-bg-secondary-light cl-border cl-border-grey-3 cl-px-1 cl-rounded hover:cl-bg-opacity-20",
|
|
2089
2087
|
disabled: v.disabled,
|
|
2090
2088
|
onClick: C[4] || (C[4] = (K) => y(!1)),
|
|
2091
2089
|
onKeydown: [
|
|
2092
|
-
C[5] || (C[5] = me(
|
|
2093
|
-
C[6] || (C[6] = me(
|
|
2090
|
+
C[5] || (C[5] = me(le((K) => y(!0), ["stop", "prevent"]), ["down"])),
|
|
2091
|
+
C[6] || (C[6] = me(le((K) => y(!1), ["stop", "prevent"]), ["up"]))
|
|
2094
2092
|
]
|
|
2095
2093
|
}, [
|
|
2096
2094
|
D(_, { icon: "ph:caret-up-bold" })
|
|
2097
|
-
], 40,
|
|
2095
|
+
], 40, ba),
|
|
2098
2096
|
f("button", {
|
|
2099
2097
|
class: "cl-bg-opacity-30 cl-bg-secondary-light cl-border cl-border-grey-3 cl-px-1 cl-rounded hover:cl-bg-opacity-20",
|
|
2100
2098
|
disabled: v.disabled,
|
|
2101
2099
|
onClick: C[7] || (C[7] = (K) => y(!0)),
|
|
2102
2100
|
onKeydown: [
|
|
2103
|
-
C[8] || (C[8] = me(
|
|
2104
|
-
C[9] || (C[9] = me(
|
|
2101
|
+
C[8] || (C[8] = me(le((K) => y(!0), ["stop", "prevent"]), ["down"])),
|
|
2102
|
+
C[9] || (C[9] = me(le((K) => y(!1), ["stop", "prevent"]), ["up"]))
|
|
2105
2103
|
]
|
|
2106
2104
|
}, [
|
|
2107
2105
|
D(_, { icon: "ph:caret-down-bold" })
|
|
2108
|
-
], 40,
|
|
2106
|
+
], 40, ha)
|
|
2109
2107
|
], 512), [
|
|
2110
|
-
[
|
|
2108
|
+
[ee, s.value && !v.disabled]
|
|
2111
2109
|
])
|
|
2112
2110
|
], 512)
|
|
2113
2111
|
]),
|
|
@@ -2123,10 +2121,10 @@ const ta = {
|
|
|
2123
2121
|
]), 1032, ["show-required-asterisk", "errors"]);
|
|
2124
2122
|
};
|
|
2125
2123
|
}
|
|
2126
|
-
}),
|
|
2124
|
+
}), ya = {
|
|
2127
2125
|
key: 0,
|
|
2128
2126
|
class: "cl-flex cl-flex-wrap cl-justify-end cl-mt-2 cl-w-full"
|
|
2129
|
-
},
|
|
2127
|
+
}, wa = { class: "cl-bg-off-white cl-border cl-border-grey-1 cl-flex cl-items-center cl-mb-2 cl-px-3 cl-rounded-lg cl-shadow-md cl-text-sm cl-w-full lg:cl-w-auto" }, ka = { class: "cl-text-grey-3 cl-w-max" }, $a = /* @__PURE__ */ f("span", null, null, -1), Ca = { class: "cl-bg-off-white cl-border cl-border-grey-1 cl-flex cl-flex-wrap cl-items-center cl-mb-2 cl-px-3 cl-py-2 cl-rounded-lg cl-shadow-md cl-text-sm cl-w-full lg:cl-ml-2 lg:cl-w-auto mb:cl-flex-nowrap" }, Ta = { 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" }, qa = { class: "cl-flex cl-flex-wrap cl-mb-2 cl-w-full lg:cl-mb-0 lg:cl-mr-2 lg:cl-w-auto" }, Oa = { class: "cl-text-grey-3 cl-w-full lg:cl-mr-2 lg:cl-w-auto" }, Sa = { class: "cl-flex cl-flex-wrap cl-text-sm mb:cl-flex-nowrap" }, Da = { class: "cl-pr-2" }, Ea = ["onClick"], Aa = { 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" }, Va = { class: "cl-mb-2 cl-text-grey-3 cl-w-full lg:cl-mb-0 lg:cl-mr-2 lg:cl-w-auto" }, Na = ["onClick"], Ia = { class: "cl-mb-2 cl-w-full lg:cl-p-2 md:cl-mb-0 md:cl-w-auto" }, Ra = { 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" }, Ma = { class: "cl-block lg:cl-inline-block" }, Ua = /* @__PURE__ */ F({
|
|
2130
2128
|
__name: "cl-ui-grid-footer",
|
|
2131
2129
|
props: {
|
|
2132
2130
|
request: {},
|
|
@@ -2170,9 +2168,9 @@ const ta = {
|
|
|
2170
2168
|
}
|
|
2171
2169
|
return (i, s) => {
|
|
2172
2170
|
var m, h;
|
|
2173
|
-
return (h = (m = i.data) == null ? void 0 : m.results) != null && h.length && i.request ? (p(), b("div",
|
|
2174
|
-
f("div",
|
|
2175
|
-
f("span",
|
|
2171
|
+
return (h = (m = i.data) == null ? void 0 : m.results) != null && h.length && i.request ? (p(), b("div", ya, [
|
|
2172
|
+
f("div", wa, [
|
|
2173
|
+
f("span", ka, N(g(n)("grid.jumpToPage")), 1),
|
|
2176
2174
|
D(Pe, {
|
|
2177
2175
|
"model-value": i.request.pageNumber,
|
|
2178
2176
|
class: "cl-ml-1 cl-mt-0.5 cl-text-sm cl-w-full",
|
|
@@ -2183,18 +2181,18 @@ const ta = {
|
|
|
2183
2181
|
"onUpdate:modelValue": c
|
|
2184
2182
|
}, {
|
|
2185
2183
|
default: R(() => [
|
|
2186
|
-
|
|
2184
|
+
$a
|
|
2187
2185
|
]),
|
|
2188
2186
|
_: 1
|
|
2189
2187
|
}, 8, ["model-value", "max", "disabled"])
|
|
2190
2188
|
]),
|
|
2191
|
-
f("div",
|
|
2192
|
-
f("div",
|
|
2193
|
-
f("li",
|
|
2194
|
-
f("span",
|
|
2189
|
+
f("div", Ca, [
|
|
2190
|
+
f("div", Ta, [
|
|
2191
|
+
f("li", qa, [
|
|
2192
|
+
f("span", Oa, N(g(n)("grid.page")), 1)
|
|
2195
2193
|
]),
|
|
2196
|
-
f("ul",
|
|
2197
|
-
f("li",
|
|
2194
|
+
f("ul", Sa, [
|
|
2195
|
+
f("li", Da, N(g(Oe)(i.request.pageNumber)) + " / " + N(g(Oe)(a.value)), 1),
|
|
2198
2196
|
Q(f("li", {
|
|
2199
2197
|
class: "cl-cursor-pointer cl-mr-1 cl-mt-1 lg:cl-mr-2",
|
|
2200
2198
|
onClick: s[0] || (s[0] = (k) => c(1))
|
|
@@ -2204,7 +2202,7 @@ const ta = {
|
|
|
2204
2202
|
size: 14
|
|
2205
2203
|
})
|
|
2206
2204
|
], 512), [
|
|
2207
|
-
[
|
|
2205
|
+
[ee, i.request.pageNumber > 1]
|
|
2208
2206
|
]),
|
|
2209
2207
|
Q(f("li", {
|
|
2210
2208
|
class: "cl-cursor-pointer cl-mt-1 lg:cl-mr-2 mr-1",
|
|
@@ -2215,7 +2213,7 @@ const ta = {
|
|
|
2215
2213
|
size: 14
|
|
2216
2214
|
})
|
|
2217
2215
|
], 512), [
|
|
2218
|
-
[
|
|
2216
|
+
[ee, i.request.pageNumber > 1]
|
|
2219
2217
|
]),
|
|
2220
2218
|
(p(!0), b(Y, null, re(d.value, (k, T) => (p(), b("li", {
|
|
2221
2219
|
key: T,
|
|
@@ -2224,7 +2222,7 @@ const ta = {
|
|
|
2224
2222
|
"cl-text-grey-6": i.request.pageNumber !== k
|
|
2225
2223
|
}]),
|
|
2226
2224
|
onClick: ($) => c(k)
|
|
2227
|
-
},
|
|
2225
|
+
}, N(g(Oe)(k)), 11, Ea))), 128)),
|
|
2228
2226
|
Q(f("li", {
|
|
2229
2227
|
class: "cl-cursor-pointer cl-mr-1 cl-mt-1 lg:cl-mr-2",
|
|
2230
2228
|
onClick: s[2] || (s[2] = (k) => c(i.request.pageNumber + 1))
|
|
@@ -2234,7 +2232,7 @@ const ta = {
|
|
|
2234
2232
|
size: 14
|
|
2235
2233
|
})
|
|
2236
2234
|
], 512), [
|
|
2237
|
-
[
|
|
2235
|
+
[ee, i.request.pageNumber < a.value]
|
|
2238
2236
|
]),
|
|
2239
2237
|
Q(f("li", {
|
|
2240
2238
|
class: "cl-cursor-pointer cl-mr-1 cl-mt-1 lg:cl-mr-2",
|
|
@@ -2245,12 +2243,12 @@ const ta = {
|
|
|
2245
2243
|
size: 14
|
|
2246
2244
|
})
|
|
2247
2245
|
], 512), [
|
|
2248
|
-
[
|
|
2246
|
+
[ee, i.request.pageNumber < a.value]
|
|
2249
2247
|
])
|
|
2250
2248
|
])
|
|
2251
2249
|
]),
|
|
2252
|
-
f("ul",
|
|
2253
|
-
f("li",
|
|
2250
|
+
f("ul", Aa, [
|
|
2251
|
+
f("li", Va, N(g(n)("grid.pageSize")), 1),
|
|
2254
2252
|
(p(), b(Y, null, re(u, (k, T) => f("li", {
|
|
2255
2253
|
key: T,
|
|
2256
2254
|
class: L(["cl-cursor-pointer cl-mr-1 lg:cl-mr-2", {
|
|
@@ -2258,11 +2256,11 @@ const ta = {
|
|
|
2258
2256
|
"cl-text-grey-6": i.request.pageSize !== k
|
|
2259
2257
|
}]),
|
|
2260
2258
|
onClick: ($) => r(k)
|
|
2261
|
-
},
|
|
2259
|
+
}, N(g(Oe)(k)), 11, Na)), 64))
|
|
2262
2260
|
]),
|
|
2263
|
-
f("ul",
|
|
2264
|
-
f("li",
|
|
2265
|
-
f("li",
|
|
2261
|
+
f("ul", Ia, [
|
|
2262
|
+
f("li", Ra, N(g(n)("grid.totalRecords")), 1),
|
|
2263
|
+
f("li", Ma, N(g(Oe)(i.data.totalRecords)), 1)
|
|
2266
2264
|
])
|
|
2267
2265
|
])
|
|
2268
2266
|
])) : z("", !0);
|
|
@@ -2277,10 +2275,10 @@ function Re(t, o, l, e) {
|
|
|
2277
2275
|
return e === null && (d = (d == null ? void 0 : d.replace("Z", "")) ?? null), d;
|
|
2278
2276
|
}
|
|
2279
2277
|
function jl(t, o, l, e) {
|
|
2280
|
-
let n =
|
|
2278
|
+
let n = fl(W.now(), l, e);
|
|
2281
2279
|
return n = Wl(o, l, n, e), n = Hl(t, l, n, e), n.toJSDate();
|
|
2282
2280
|
}
|
|
2283
|
-
function
|
|
2281
|
+
function za(t, o, l, e, n) {
|
|
2284
2282
|
let a = W.fromJSDate(l, { zone: e });
|
|
2285
2283
|
return a = Wl(o, e, a, n), a = Hl(t, e, a, n), a.toJSDate();
|
|
2286
2284
|
}
|
|
@@ -2295,7 +2293,7 @@ function Bl(t, o) {
|
|
|
2295
2293
|
let e;
|
|
2296
2294
|
return o === "date" ? e = l.toFormat("D") : o === "datetime" ? e = l.toFormat("f") : e = l.toFormat("t"), t === "en-US" ? e = e.replace("05", "hh").replace("5", "h") : e = e.replace("05", "HH").replace("5", "H"), e.replace("2000", "YYYY").replace("20", "YY").replace("04", "MM").replace("4", "M").replace("03", "DD").replace("3", "D").replace("06", "mm").replace("6", "m").replace("AM", "A").trim();
|
|
2297
2295
|
}
|
|
2298
|
-
function
|
|
2296
|
+
function dl(t, o) {
|
|
2299
2297
|
return t ? !1 : {
|
|
2300
2298
|
visibility: "focus",
|
|
2301
2299
|
showDelay: 0,
|
|
@@ -2316,7 +2314,7 @@ function ul(t, o) {
|
|
|
2316
2314
|
]
|
|
2317
2315
|
};
|
|
2318
2316
|
}
|
|
2319
|
-
function
|
|
2317
|
+
function pl(t, o, l, e) {
|
|
2320
2318
|
let n;
|
|
2321
2319
|
if (t && e !== "dateRange")
|
|
2322
2320
|
n = W.fromISO(t, {
|
|
@@ -2353,7 +2351,7 @@ function Pl(t, o, l) {
|
|
|
2353
2351
|
}
|
|
2354
2352
|
return e;
|
|
2355
2353
|
}
|
|
2356
|
-
function
|
|
2354
|
+
function fl(t, o, l) {
|
|
2357
2355
|
let e = t.set({
|
|
2358
2356
|
second: 0,
|
|
2359
2357
|
millisecond: 0
|
|
@@ -2366,18 +2364,18 @@ function pl(t, o, l) {
|
|
|
2366
2364
|
function Hl(t, o, l, e) {
|
|
2367
2365
|
if (t) {
|
|
2368
2366
|
const n = W.fromISO(t).setZone(o);
|
|
2369
|
-
l < n && (l =
|
|
2367
|
+
l < n && (l = fl(n, o, e), l.equals(n) || (e === "date" ? l = l.plus({ days: 1 }) : l = l.plus({ minutes: 1 })));
|
|
2370
2368
|
}
|
|
2371
2369
|
return l;
|
|
2372
2370
|
}
|
|
2373
2371
|
function Wl(t, o, l, e) {
|
|
2374
2372
|
if (t) {
|
|
2375
2373
|
const n = W.fromISO(t).setZone(o);
|
|
2376
|
-
l > n && (l =
|
|
2374
|
+
l > n && (l = fl(n, o, e), l.equals(n) || (e === "date" ? l = l.minus({ days: 1 }) : l = l.minus({ minutes: 1 })));
|
|
2377
2375
|
}
|
|
2378
2376
|
return l;
|
|
2379
2377
|
}
|
|
2380
|
-
const
|
|
2378
|
+
const La = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, ja = ["onClick"], Ba = /* @__PURE__ */ F({
|
|
2381
2379
|
__name: "cl-ui-quick-dates-group",
|
|
2382
2380
|
props: {
|
|
2383
2381
|
dates: {},
|
|
@@ -2386,7 +2384,7 @@ const ja = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Ba = ["onClick"], Fa =
|
|
|
2386
2384
|
emits: ["quick-date-selected"],
|
|
2387
2385
|
setup(t, { emit: o }) {
|
|
2388
2386
|
const l = o, { t: e } = se();
|
|
2389
|
-
return (n, a) => (p(), b("div",
|
|
2387
|
+
return (n, a) => (p(), b("div", La, [
|
|
2390
2388
|
(p(!0), b(Y, null, re(n.dates, (d, c) => {
|
|
2391
2389
|
var u, r;
|
|
2392
2390
|
return p(), b("button", {
|
|
@@ -2397,12 +2395,12 @@ const ja = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Ba = ["onClick"], Fa =
|
|
|
2397
2395
|
}]),
|
|
2398
2396
|
onClick: (i) => l("quick-date-selected", d)
|
|
2399
2397
|
}, [
|
|
2400
|
-
f("span", null,
|
|
2401
|
-
], 10,
|
|
2398
|
+
f("span", null, N(g(e)(d.translationKey)), 1)
|
|
2399
|
+
], 10, ja);
|
|
2402
2400
|
}), 128))
|
|
2403
2401
|
]));
|
|
2404
2402
|
}
|
|
2405
|
-
}),
|
|
2403
|
+
}), Fa = [
|
|
2406
2404
|
"today",
|
|
2407
2405
|
"this week",
|
|
2408
2406
|
"this month",
|
|
@@ -2494,7 +2492,7 @@ const ja = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Ba = ["onClick"], Fa =
|
|
|
2494
2492
|
...Qe,
|
|
2495
2493
|
...xe,
|
|
2496
2494
|
...Le
|
|
2497
|
-
],
|
|
2495
|
+
], Pa = { class: "cl-p-2 cl-pt-0" }, Ha = {
|
|
2498
2496
|
key: 0,
|
|
2499
2497
|
class: "cl-mt-2 cl-opacity-20"
|
|
2500
2498
|
}, Gl = /* @__PURE__ */ F({
|
|
@@ -2529,22 +2527,22 @@ const ja = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Ba = ["onClick"], Fa =
|
|
|
2529
2527
|
}
|
|
2530
2528
|
return d;
|
|
2531
2529
|
});
|
|
2532
|
-
return (d, c) => (p(), b("div",
|
|
2533
|
-
f("div", null,
|
|
2530
|
+
return (d, c) => (p(), b("div", Pa, [
|
|
2531
|
+
f("div", null, N(g(n)("quickDates.quickDatesHeader")), 1),
|
|
2534
2532
|
(p(!0), b(Y, null, re(a.value, (u, r) => (p(), b("div", {
|
|
2535
2533
|
key: r,
|
|
2536
2534
|
class: "cl-pt-2"
|
|
2537
2535
|
}, [
|
|
2538
|
-
D(
|
|
2536
|
+
D(Ba, {
|
|
2539
2537
|
dates: u,
|
|
2540
2538
|
"selected-quick-date": d.selectedQuickDate,
|
|
2541
2539
|
onQuickDateSelected: c[0] || (c[0] = (i) => e("quick-date-selected", i))
|
|
2542
2540
|
}, null, 8, ["dates", "selected-quick-date"]),
|
|
2543
|
-
r < a.value.length - 1 ? (p(), b("div",
|
|
2541
|
+
r < a.value.length - 1 ? (p(), b("div", Ha)) : z("", !0)
|
|
2544
2542
|
]))), 128))
|
|
2545
2543
|
]));
|
|
2546
2544
|
}
|
|
2547
|
-
}),
|
|
2545
|
+
}), ml = /* @__PURE__ */ F({
|
|
2548
2546
|
inheritAttrs: !1,
|
|
2549
2547
|
__name: "cl-ui-input-date-range-input",
|
|
2550
2548
|
props: {
|
|
@@ -2555,7 +2553,7 @@ const ja = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Ba = ["onClick"], Fa =
|
|
|
2555
2553
|
emits: ["togglePopover", "clear"],
|
|
2556
2554
|
setup(t) {
|
|
2557
2555
|
const { t: o } = se(), l = O(() => {
|
|
2558
|
-
const { class: e, ...n } =
|
|
2556
|
+
const { class: e, ...n } = El();
|
|
2559
2557
|
return n;
|
|
2560
2558
|
});
|
|
2561
2559
|
return (e, n) => {
|
|
@@ -2648,7 +2646,7 @@ const ja = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Ba = ["onClick"], Fa =
|
|
|
2648
2646
|
} else
|
|
2649
2647
|
l.value = null;
|
|
2650
2648
|
}
|
|
2651
|
-
}), { locale: a } = se(), d = O(() => o.dateFormatLocale ?? a.value), c = O(() =>
|
|
2649
|
+
}), { locale: a } = se(), d = O(() => o.dateFormatLocale ?? a.value), c = O(() => dl(o.disabled, o.popoverPlacement)), u = O(() => pl(l.value, o.initialCalendarDate, e.value, "dateRange")), r = O(() => Pl(n.value, e.value, d.value)), i = I(null), s = I(null);
|
|
2652
2650
|
function m(T) {
|
|
2653
2651
|
const $ = Fl(T, e.value);
|
|
2654
2652
|
n.value = $, i.value = T, s.value.move($.start), s.value.hidePopover();
|
|
@@ -2661,7 +2659,7 @@ const ja = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Ba = ["onClick"], Fa =
|
|
|
2661
2659
|
M(T.$slots, "default")
|
|
2662
2660
|
]),
|
|
2663
2661
|
default: R(() => [
|
|
2664
|
-
D(g(
|
|
2662
|
+
D(g(Ie), {
|
|
2665
2663
|
ref_key: "calendar",
|
|
2666
2664
|
ref: s,
|
|
2667
2665
|
modelValue: n.value,
|
|
@@ -2680,7 +2678,7 @@ const ja = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Ba = ["onClick"], Fa =
|
|
|
2680
2678
|
onDayclick: $[2] || ($[2] = (U) => i.value = null)
|
|
2681
2679
|
}, {
|
|
2682
2680
|
default: R(({ togglePopover: U }) => [
|
|
2683
|
-
D(
|
|
2681
|
+
D(ml, te(T.$attrs, {
|
|
2684
2682
|
required: T.required,
|
|
2685
2683
|
disabled: T.disabled,
|
|
2686
2684
|
"date-range-selected": !!n.value,
|
|
@@ -2707,13 +2705,13 @@ const ja = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Ba = ["onClick"], Fa =
|
|
|
2707
2705
|
}, 8, ["show-required-asterisk"]);
|
|
2708
2706
|
};
|
|
2709
2707
|
}
|
|
2710
|
-
}),
|
|
2708
|
+
}), Wa = [
|
|
2711
2709
|
"text",
|
|
2712
2710
|
"email",
|
|
2713
2711
|
"tel",
|
|
2714
2712
|
"password",
|
|
2715
2713
|
"search"
|
|
2716
|
-
],
|
|
2714
|
+
], Za = { class: "cl-gap-1 cl-grid cl-grid-cols-[auto_1fr_auto_auto] cl-pt-0.5 cl-w-full" }, Ga = ["disabled"], Ka = { class: "cl-max-w-max" }, Qa = { class: "cl-flex cl-flex-col cl-gap-1 cl-w-full" }, xa = ["min", "disabled", "required", "step", "max"], Ya = { class: "cl-bg-white cl-border cl-border-grey-2 cl-leading-none cl-rounded-full cl-text-center cl-text-xs" }, _a = ["disabled"], Ja = ["disabled", "title"], Xa = /* @__PURE__ */ F({
|
|
2717
2715
|
inheritAttrs: !1,
|
|
2718
2716
|
__name: "cl-ui-input-range",
|
|
2719
2717
|
props: /* @__PURE__ */ ge({
|
|
@@ -2730,10 +2728,10 @@ const ja = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Ba = ["onClick"], Fa =
|
|
|
2730
2728
|
}),
|
|
2731
2729
|
emits: ["update:modelValue"],
|
|
2732
2730
|
setup(t, { expose: o }) {
|
|
2733
|
-
|
|
2731
|
+
Al((s) => ({
|
|
2734
2732
|
"28c20101": c.value
|
|
2735
2733
|
}));
|
|
2736
|
-
const l = t, e = Ae(t, "modelValue"), { t: n } = se(), a =
|
|
2734
|
+
const l = t, e = Ae(t, "modelValue"), { t: n } = se(), a = I(), d = I(), c = O(() => `${100 * (e.value - l.min) / (l.max - l.min)}%`), u = I(!1), r = pt(e, 50);
|
|
2737
2735
|
function i(s) {
|
|
2738
2736
|
var m;
|
|
2739
2737
|
e.value = s, (m = a.value) == null || m.focus();
|
|
@@ -2752,16 +2750,16 @@ const ja = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Ba = ["onClick"], Fa =
|
|
|
2752
2750
|
return p(), P(Je, {
|
|
2753
2751
|
errors: s.errors,
|
|
2754
2752
|
"show-required-asterisk": s.required
|
|
2755
|
-
},
|
|
2753
|
+
}, Ne({
|
|
2756
2754
|
default: R(() => [
|
|
2757
|
-
f("div",
|
|
2755
|
+
f("div", Za, [
|
|
2758
2756
|
f("button", {
|
|
2759
2757
|
disabled: s.disabled,
|
|
2760
2758
|
class: "active:cl-bg-grey-0 cl-bg-white cl-border cl-border-grey-2 cl-leading-none cl-min-w-[26px] cl-p-[5px] cl-rounded-full cl-shadow cl-text-xs cl-transition-colors disabled:cl-bg-grey-1 hover:cl-bg-off-white",
|
|
2761
2759
|
onClick: m[0] || (m[0] = (k) => i(s.min))
|
|
2762
|
-
},
|
|
2763
|
-
f("div",
|
|
2764
|
-
Q(f("div",
|
|
2760
|
+
}, N(g(el)(s.min, s.precision)), 9, Ga),
|
|
2761
|
+
f("div", Ka, [
|
|
2762
|
+
Q(f("div", Qa, [
|
|
2765
2763
|
Q(f("input", te({
|
|
2766
2764
|
ref_key: "sliderRef",
|
|
2767
2765
|
ref: a,
|
|
@@ -2774,17 +2772,17 @@ const ja = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Ba = ["onClick"], Fa =
|
|
|
2774
2772
|
required: s.required,
|
|
2775
2773
|
step: 1 / Math.pow(10, s.precision),
|
|
2776
2774
|
max: s.max
|
|
2777
|
-
}), null, 16,
|
|
2775
|
+
}), null, 16, xa), [
|
|
2778
2776
|
[
|
|
2779
|
-
|
|
2777
|
+
Vl,
|
|
2780
2778
|
e.value,
|
|
2781
2779
|
void 0,
|
|
2782
2780
|
{ number: !0 }
|
|
2783
2781
|
]
|
|
2784
2782
|
]),
|
|
2785
|
-
f("div",
|
|
2783
|
+
f("div", Ya, N(g(el)(g(r), s.precision)), 1)
|
|
2786
2784
|
], 512), [
|
|
2787
|
-
[
|
|
2785
|
+
[ee, u.value === !1]
|
|
2788
2786
|
]),
|
|
2789
2787
|
Q(D(Pe, te({
|
|
2790
2788
|
ref_key: "inputRef",
|
|
@@ -2799,14 +2797,14 @@ const ja = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Ba = ["onClick"], Fa =
|
|
|
2799
2797
|
disabled: s.disabled,
|
|
2800
2798
|
max: s.max
|
|
2801
2799
|
}), null, 16, ["modelValue", "min", "precision", "placeholder", "disabled", "max"]), [
|
|
2802
|
-
[
|
|
2800
|
+
[ee, u.value]
|
|
2803
2801
|
])
|
|
2804
2802
|
]),
|
|
2805
2803
|
f("button", {
|
|
2806
2804
|
disabled: s.disabled,
|
|
2807
2805
|
class: "active:cl-bg-grey-0 cl-bg-white cl-border cl-border-grey-2 cl-leading-none cl-min-w-[26px] cl-p-[5px] cl-rounded-full cl-shadow cl-text-xs cl-transition-colors disabled:cl-bg-grey-1 hover:cl-bg-off-white",
|
|
2808
2806
|
onClick: m[3] || (m[3] = (k) => i(s.max))
|
|
2809
|
-
},
|
|
2807
|
+
}, N(g(el)(s.max, s.precision)), 9, _a),
|
|
2810
2808
|
f("button", {
|
|
2811
2809
|
disabled: s.disabled,
|
|
2812
2810
|
class: "active:cl-bg-grey-0 cl-bg-white cl-border cl-border-grey-2 cl-leading-none cl-min-w-0 cl-p-[5px] cl-rounded-full cl-shadow cl-text-xs cl-transition-colors disabled:cl-bg-grey-1 hover:cl-bg-off-white",
|
|
@@ -2814,7 +2812,7 @@ const ja = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Ba = ["onClick"], Fa =
|
|
|
2814
2812
|
onClick: m[4] || (m[4] = (k) => u.value = !u.value)
|
|
2815
2813
|
}, [
|
|
2816
2814
|
D(h, { icon: "ph:arrows-left-right-thin" })
|
|
2817
|
-
], 8,
|
|
2815
|
+
], 8, Ja)
|
|
2818
2816
|
])
|
|
2819
2817
|
]),
|
|
2820
2818
|
_: 2
|
|
@@ -2829,11 +2827,11 @@ const ja = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Ba = ["onClick"], Fa =
|
|
|
2829
2827
|
]), 1032, ["errors", "show-required-asterisk"]);
|
|
2830
2828
|
};
|
|
2831
2829
|
}
|
|
2832
|
-
}),
|
|
2830
|
+
}), en = /* @__PURE__ */ he(Xa, [["__scopeId", "data-v-b105db31"]]), Ql = [
|
|
2833
2831
|
"date",
|
|
2834
2832
|
"datetime",
|
|
2835
2833
|
"time"
|
|
2836
|
-
],
|
|
2834
|
+
], ln = [
|
|
2837
2835
|
"auto",
|
|
2838
2836
|
"auto-start",
|
|
2839
2837
|
"auto-end",
|
|
@@ -2845,13 +2843,13 @@ const ja = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Ba = ["onClick"], Fa =
|
|
|
2845
2843
|
"right-end",
|
|
2846
2844
|
"left-start",
|
|
2847
2845
|
"left-end"
|
|
2848
|
-
],
|
|
2846
|
+
], tn = {
|
|
2849
2847
|
key: 1,
|
|
2850
2848
|
class: "cl-relative"
|
|
2851
|
-
},
|
|
2849
|
+
}, on = ["value", "disabled", "placeholder"], an = {
|
|
2852
2850
|
key: 0,
|
|
2853
2851
|
class: "action-icon cl-absolute cl-bg-transparent cl-flex cl-right-2 cl-text-grey-4 cl-top-3.5"
|
|
2854
|
-
},
|
|
2852
|
+
}, nn = /* @__PURE__ */ F({
|
|
2855
2853
|
inheritAttrs: !1,
|
|
2856
2854
|
__name: "cl-ui-calendar-input",
|
|
2857
2855
|
props: {
|
|
@@ -2865,7 +2863,7 @@ const ja = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Ba = ["onClick"], Fa =
|
|
|
2865
2863
|
},
|
|
2866
2864
|
emits: ["clear", "reset", "togglePopover"],
|
|
2867
2865
|
setup(t, { expose: o }) {
|
|
2868
|
-
const l = t, e =
|
|
2866
|
+
const l = t, e = I(null);
|
|
2869
2867
|
function n() {
|
|
2870
2868
|
var c;
|
|
2871
2869
|
(c = e.value) == null || c.focus();
|
|
@@ -2887,13 +2885,13 @@ const ja = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Ba = ["onClick"], Fa =
|
|
|
2887
2885
|
});
|
|
2888
2886
|
return o({
|
|
2889
2887
|
focus: n
|
|
2890
|
-
}), (c, u) => c.type === "dateRange" ? (p(), P(g(
|
|
2888
|
+
}), (c, u) => c.type === "dateRange" ? (p(), P(g(ml), te({ key: 0 }, c.$attrs, {
|
|
2891
2889
|
disabled: !!c.disabled,
|
|
2892
2890
|
required: c.required,
|
|
2893
2891
|
"date-range-selected": !!c.rangeSelected,
|
|
2894
2892
|
onTogglePopover: u[0] || (u[0] = (r) => c.$emit("togglePopover")),
|
|
2895
2893
|
onClear: u[1] || (u[1] = (r) => c.$emit("clear"))
|
|
2896
|
-
}), null, 16, ["disabled", "required", "date-range-selected"])) : (p(), b("div",
|
|
2894
|
+
}), null, 16, ["disabled", "required", "date-range-selected"])) : (p(), b("div", tn, [
|
|
2897
2895
|
f("input", te({
|
|
2898
2896
|
ref_key: "element",
|
|
2899
2897
|
ref: e
|
|
@@ -2902,29 +2900,29 @@ const ja = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Ba = ["onClick"], Fa =
|
|
|
2902
2900
|
type: "text",
|
|
2903
2901
|
disabled: c.disabled,
|
|
2904
2902
|
placeholder: d.value
|
|
2905
|
-
}, lt(c.events, !0)), null, 16,
|
|
2903
|
+
}, lt(c.events, !0)), null, 16, on),
|
|
2906
2904
|
D(g(Z), {
|
|
2907
2905
|
class: "cl-absolute cl-bg-transparent cl-cursor-text cl-left-2 cl-text-grey-4 cl-top-3.5 icon",
|
|
2908
2906
|
icon: c.type === "time" ? "ph-clock" : "ph:calendar",
|
|
2909
2907
|
onClick: n
|
|
2910
2908
|
}, null, 8, ["icon"]),
|
|
2911
|
-
c.disabled ? z("", !0) : (p(), b("div",
|
|
2909
|
+
c.disabled ? z("", !0) : (p(), b("div", an, [
|
|
2912
2910
|
c.type !== "time" ? (p(), P(g(Z), {
|
|
2913
2911
|
key: 0,
|
|
2914
2912
|
class: "cl-cursor-pointer hover:cl-text-link-light",
|
|
2915
2913
|
icon: "ph:arrow-counter-clockwise",
|
|
2916
|
-
onClick: u[2] || (u[2] =
|
|
2914
|
+
onClick: u[2] || (u[2] = le((r) => c.$emit("reset"), ["prevent"]))
|
|
2917
2915
|
})) : z("", !0),
|
|
2918
2916
|
!c.required && c.date && (c.type !== "time" || c.date !== "00:00") ? (p(), P(g(Z), {
|
|
2919
2917
|
key: 1,
|
|
2920
2918
|
class: "cl-cursor-pointer clear-icon hover:cl-text-link-light md:cl-ml-0.5",
|
|
2921
2919
|
icon: "ph:x",
|
|
2922
|
-
onClick: u[3] || (u[3] =
|
|
2920
|
+
onClick: u[3] || (u[3] = le((r) => c.$emit("clear"), ["prevent"]))
|
|
2923
2921
|
})) : z("", !0)
|
|
2924
2922
|
]))
|
|
2925
2923
|
]));
|
|
2926
2924
|
}
|
|
2927
|
-
}), je = /* @__PURE__ */ he(
|
|
2925
|
+
}), je = /* @__PURE__ */ he(nn, [["__scopeId", "data-v-307fea23"]]), xl = /* @__PURE__ */ F({
|
|
2928
2926
|
inheritAttrs: !1,
|
|
2929
2927
|
__name: "cl-ui-input-datetime",
|
|
2930
2928
|
props: /* @__PURE__ */ ge({
|
|
@@ -2954,12 +2952,12 @@ const ja = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Ba = ["onClick"], Fa =
|
|
|
2954
2952
|
set(k) {
|
|
2955
2953
|
e.type === "time" ? n.value = k : k !== null ? n.value = Re(k, null, !0, e.timeZone) : n.value = null;
|
|
2956
2954
|
}
|
|
2957
|
-
}), { locale: u } = se(), r = O(() => e.dateFormatLocale ?? u.value), i = O(() =>
|
|
2955
|
+
}), { locale: u } = se(), r = O(() => e.dateFormatLocale ?? u.value), i = O(() => dl(e.disabled, e.popoverPlacement)), s = O(() => Bl(r.value, e.type)), m = I(null), h = O(() => pl(n.value, e.initialCalendarDate, d.value, e.type));
|
|
2958
2956
|
return oe(() => [
|
|
2959
2957
|
e.minDate,
|
|
2960
2958
|
e.maxDate
|
|
2961
2959
|
], () => {
|
|
2962
|
-
e.type !== "time" && (c.value instanceof Date || c.value === null) && (c.value =
|
|
2960
|
+
e.type !== "time" && (c.value instanceof Date || c.value === null) && (c.value = za(e.minDate, e.maxDate, c.value, d.value, e.type));
|
|
2963
2961
|
}), o({
|
|
2964
2962
|
focus() {
|
|
2965
2963
|
var k;
|
|
@@ -2972,7 +2970,7 @@ const ja = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Ba = ["onClick"], Fa =
|
|
|
2972
2970
|
M(k.$slots, "default")
|
|
2973
2971
|
]),
|
|
2974
2972
|
default: R(() => [
|
|
2975
|
-
k.type === "time" ? (p(), P(g(
|
|
2973
|
+
k.type === "time" ? (p(), P(g(Ie), {
|
|
2976
2974
|
key: 0,
|
|
2977
2975
|
modelValue: c.value,
|
|
2978
2976
|
"onUpdate:modelValue": T[1] || (T[1] = (q) => c.value = q),
|
|
@@ -3002,7 +3000,7 @@ const ja = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Ba = ["onClick"], Fa =
|
|
|
3002
3000
|
}), null, 16, ["date", "events", "type", "placeholder", "required", "disabled"])
|
|
3003
3001
|
]),
|
|
3004
3002
|
_: 1
|
|
3005
|
-
}, 8, ["modelValue", "locale", "is24hr", "mode", "is-required", "masks", "popover"])) : (p(), P(g(
|
|
3003
|
+
}, 8, ["modelValue", "locale", "is24hr", "mode", "is-required", "masks", "popover"])) : (p(), P(g(Ie), {
|
|
3006
3004
|
key: 1,
|
|
3007
3005
|
modelValue: c.value,
|
|
3008
3006
|
"onUpdate:modelValue": T[4] || (T[4] = (q) => c.value = q),
|
|
@@ -3042,7 +3040,7 @@ const ja = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Ba = ["onClick"], Fa =
|
|
|
3042
3040
|
}, 8, ["show-required-asterisk"]);
|
|
3043
3041
|
};
|
|
3044
3042
|
}
|
|
3045
|
-
}),
|
|
3043
|
+
}), sn = [
|
|
3046
3044
|
"string",
|
|
3047
3045
|
"boolean",
|
|
3048
3046
|
"number",
|
|
@@ -3055,7 +3053,7 @@ const ja = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Ba = ["onClick"], Fa =
|
|
|
3055
3053
|
function Yl(t) {
|
|
3056
3054
|
return typeof t.caption == "string" && typeof t.name == "string" && typeof t.type == "string";
|
|
3057
3055
|
}
|
|
3058
|
-
function
|
|
3056
|
+
function rn(t) {
|
|
3059
3057
|
let o = Array.isArray(t);
|
|
3060
3058
|
if (o) {
|
|
3061
3059
|
for (const l of t)
|
|
@@ -3066,12 +3064,12 @@ function cn(t) {
|
|
|
3066
3064
|
}
|
|
3067
3065
|
return o;
|
|
3068
3066
|
}
|
|
3069
|
-
const
|
|
3067
|
+
const cn = [
|
|
3070
3068
|
"ellipsis",
|
|
3071
3069
|
"wrap-text"
|
|
3072
3070
|
];
|
|
3073
3071
|
var J = /* @__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[t.AND_CONTAINS = 10] = "AND_CONTAINS", t))(J || {});
|
|
3074
|
-
const
|
|
3072
|
+
const un = [
|
|
3075
3073
|
"equal",
|
|
3076
3074
|
"notequal",
|
|
3077
3075
|
"contains",
|
|
@@ -3084,24 +3082,24 @@ const dn = [
|
|
|
3084
3082
|
"equalorgreaterthan",
|
|
3085
3083
|
"andcontains"
|
|
3086
3084
|
];
|
|
3087
|
-
function
|
|
3085
|
+
function dn(t) {
|
|
3088
3086
|
return typeof t.filterOnColumn == "string" && typeof t.filterOperation == "number" && typeof t.filterValue == "string";
|
|
3089
3087
|
}
|
|
3090
|
-
function
|
|
3088
|
+
function pn(t) {
|
|
3091
3089
|
return t === null || typeof t.sortByAscending == "boolean" && typeof t.sortOnColumn == "string";
|
|
3092
3090
|
}
|
|
3093
|
-
function
|
|
3094
|
-
let o = typeof t.filters == "object" && Array.isArray(t.filters) && typeof t.pageNumber == "number" && typeof t.pageSize == "number" && typeof t.sort == "object" &&
|
|
3091
|
+
function fn(t) {
|
|
3092
|
+
let o = typeof t.filters == "object" && Array.isArray(t.filters) && typeof t.pageNumber == "number" && typeof t.pageSize == "number" && typeof t.sort == "object" && pn(t.sort);
|
|
3095
3093
|
if (o) {
|
|
3096
3094
|
for (const l of t.filters)
|
|
3097
|
-
if (!
|
|
3095
|
+
if (!dn(l)) {
|
|
3098
3096
|
o = !1;
|
|
3099
3097
|
break;
|
|
3100
3098
|
}
|
|
3101
3099
|
}
|
|
3102
3100
|
return o;
|
|
3103
3101
|
}
|
|
3104
|
-
function
|
|
3102
|
+
function mn(t, o) {
|
|
3105
3103
|
let l = typeof t.results == "object" && Array.isArray(t.results) && typeof t.totalRecords == "number";
|
|
3106
3104
|
if (l) {
|
|
3107
3105
|
for (const e of t.results)
|
|
@@ -3112,7 +3110,7 @@ function gn(t, o) {
|
|
|
3112
3110
|
}
|
|
3113
3111
|
return l;
|
|
3114
3112
|
}
|
|
3115
|
-
const
|
|
3113
|
+
const gn = {
|
|
3116
3114
|
method: "equal",
|
|
3117
3115
|
icon: "mdi:equal",
|
|
3118
3116
|
description: "Equals",
|
|
@@ -3125,12 +3123,12 @@ const vn = {
|
|
|
3125
3123
|
"list"
|
|
3126
3124
|
],
|
|
3127
3125
|
key: "equal"
|
|
3128
|
-
},
|
|
3126
|
+
}, vn = {
|
|
3129
3127
|
method: "contains",
|
|
3130
3128
|
icon: "mdi:format-letter-matches",
|
|
3131
3129
|
description: "Contains",
|
|
3132
3130
|
allowedTypes: ["string"]
|
|
3133
|
-
},
|
|
3131
|
+
}, bn = {
|
|
3134
3132
|
method: "lessthan",
|
|
3135
3133
|
icon: "mdi:less-than",
|
|
3136
3134
|
description: "Before",
|
|
@@ -3139,8 +3137,8 @@ const vn = {
|
|
|
3139
3137
|
"datetime"
|
|
3140
3138
|
],
|
|
3141
3139
|
key: "before"
|
|
3142
|
-
},
|
|
3143
|
-
|
|
3140
|
+
}, Tl = [
|
|
3141
|
+
vn,
|
|
3144
3142
|
{
|
|
3145
3143
|
method: "notcontains",
|
|
3146
3144
|
icon: "mdi:format-letter-spacing-variant",
|
|
@@ -3159,7 +3157,7 @@ const vn = {
|
|
|
3159
3157
|
description: "Ends with",
|
|
3160
3158
|
allowedTypes: ["string"]
|
|
3161
3159
|
},
|
|
3162
|
-
|
|
3160
|
+
gn,
|
|
3163
3161
|
{
|
|
3164
3162
|
method: "notequal",
|
|
3165
3163
|
icon: "mdi:not-equal",
|
|
@@ -3172,7 +3170,7 @@ const vn = {
|
|
|
3172
3170
|
],
|
|
3173
3171
|
key: "notequal"
|
|
3174
3172
|
},
|
|
3175
|
-
|
|
3173
|
+
bn,
|
|
3176
3174
|
{
|
|
3177
3175
|
method: "greaterthan",
|
|
3178
3176
|
icon: "mdi:greater-than",
|
|
@@ -3227,7 +3225,7 @@ const vn = {
|
|
|
3227
3225
|
description: "Less than",
|
|
3228
3226
|
allowedTypes: ["number"]
|
|
3229
3227
|
}
|
|
3230
|
-
],
|
|
3228
|
+
], hn = { 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" }, yn = { class: "cl-p-2 cl-select-none" }, wn = ["onClick"], kn = /* @__PURE__ */ F({
|
|
3231
3229
|
__name: "cl-ui-grid-method-selector",
|
|
3232
3230
|
props: {
|
|
3233
3231
|
filter: {},
|
|
@@ -3239,7 +3237,7 @@ const vn = {
|
|
|
3239
3237
|
setup(t, { emit: o }) {
|
|
3240
3238
|
const l = t, e = o, { t: n } = se(), a = O(() => {
|
|
3241
3239
|
let s = [];
|
|
3242
|
-
return l.column.type !== "slot" ? s =
|
|
3240
|
+
return l.column.type !== "slot" ? s = Tl.filter((m) => m.allowedTypes.includes(l.column.type)) : typeof l.column.slotType < "u" && typeof l.column.field < "u" && (s = Tl.filter((m) => m.allowedTypes.includes(l.column.slotType))), l.column.type === "date" || l.column.type === "datetime" || l.column.slotType === "date" || l.column.slotType === "datetime" ? s.forEach((m) => {
|
|
3243
3241
|
m.description = n(`grid.${m.key}`);
|
|
3244
3242
|
}) : s.forEach((m) => {
|
|
3245
3243
|
m.description = n(`grid.${m.method}`);
|
|
@@ -3267,13 +3265,13 @@ const vn = {
|
|
|
3267
3265
|
return;
|
|
3268
3266
|
e("update:filter", m);
|
|
3269
3267
|
}
|
|
3270
|
-
const u =
|
|
3268
|
+
const u = I(), { left: r } = ft(u), i = O(() => r.value / 2 < 208);
|
|
3271
3269
|
return (s, m) => (p(), b("div", {
|
|
3272
3270
|
ref_key: "gridMethodSelectElement",
|
|
3273
3271
|
ref: u,
|
|
3274
3272
|
class: "cl-group cl-inline cl-relative cl-w-auto"
|
|
3275
3273
|
}, [
|
|
3276
|
-
f("div",
|
|
3274
|
+
f("div", hn, [
|
|
3277
3275
|
d.value ? (p(), P(g(Z), {
|
|
3278
3276
|
key: 0,
|
|
3279
3277
|
icon: d.value.icon,
|
|
@@ -3290,7 +3288,7 @@ const vn = {
|
|
|
3290
3288
|
"cl-left-0": i.value
|
|
3291
3289
|
}])
|
|
3292
3290
|
}, [
|
|
3293
|
-
f("strong",
|
|
3291
|
+
f("strong", yn, N(g(n)("grid.availableMethods")), 1),
|
|
3294
3292
|
(p(!0), b(Y, null, re(a.value, (h, k) => {
|
|
3295
3293
|
var T;
|
|
3296
3294
|
return p(), b("span", {
|
|
@@ -3298,31 +3296,31 @@ const vn = {
|
|
|
3298
3296
|
class: L(["cl-cursor-pointer cl-px-4 cl-py-1 cl-transition-colors cl-w-full hover:cl-bg-grey-0", {
|
|
3299
3297
|
"cl-bg-primary-default cl-opacity-80": h.method === ((T = d.value) == null ? void 0 : T.method)
|
|
3300
3298
|
}]),
|
|
3301
|
-
onClick:
|
|
3299
|
+
onClick: le(($) => c(h.method), ["prevent"])
|
|
3302
3300
|
}, [
|
|
3303
|
-
ue(
|
|
3301
|
+
ue(N(h.description) + " ", 1),
|
|
3304
3302
|
D(g(Z), {
|
|
3305
3303
|
icon: h.icon,
|
|
3306
3304
|
class: "cl-float-right cl-text-grey-4 cl-text-sm"
|
|
3307
3305
|
}, null, 8, ["icon"])
|
|
3308
|
-
], 10,
|
|
3306
|
+
], 10, wn);
|
|
3309
3307
|
}), 128))
|
|
3310
3308
|
], 2)
|
|
3311
3309
|
], 512));
|
|
3312
3310
|
}
|
|
3313
|
-
}),
|
|
3311
|
+
}), $n = {
|
|
3314
3312
|
key: 0,
|
|
3315
3313
|
class: "cl-border cl-border-grey-2 cl-flex cl-overflow-hidden cl-rounded-md lg:cl-overflow-visible"
|
|
3316
|
-
},
|
|
3314
|
+
}, Cn = ["id", "disabled"], Tn = /* @__PURE__ */ f("option", { value: void 0 }, null, -1), qn = ["selected"], On = ["selected"], Sn = {
|
|
3317
3315
|
key: 2,
|
|
3318
3316
|
class: "cl-w-full"
|
|
3319
|
-
},
|
|
3317
|
+
}, Dn = {
|
|
3320
3318
|
key: 3,
|
|
3321
3319
|
class: "cl-w-full"
|
|
3322
|
-
},
|
|
3320
|
+
}, En = /* @__PURE__ */ f("span", null, null, -1), An = {
|
|
3323
3321
|
key: 4,
|
|
3324
3322
|
class: "cl-w-full"
|
|
3325
|
-
},
|
|
3323
|
+
}, Vn = /* @__PURE__ */ f("span", null, null, -1), Nn = ["id", "disabled"], In = /* @__PURE__ */ f("option", { value: void 0 }, null, -1), Rn = ["value", "selected"], Mn = /* @__PURE__ */ F({
|
|
3326
3324
|
__name: "cl-ui-grid-filter",
|
|
3327
3325
|
props: {
|
|
3328
3326
|
loading: { type: Boolean },
|
|
@@ -3341,7 +3339,7 @@ const vn = {
|
|
|
3341
3339
|
const c = O({
|
|
3342
3340
|
get: () => l.filter,
|
|
3343
3341
|
set: (y) => e("update:filter", y)
|
|
3344
|
-
}), u = O(() => l.column.type === "date" || l.column.type === "datetime" || l.column.type === "slot" && (l.column.slotType === "date" || l.column.slotType === "datetime")), r = O(() => l.column.type === "dateRange" || l.column.type === "slot" && l.column.slotType === "dateRange"), i = O(() => l.column.type === "list" || l.column.type === "slot" && l.column.slotType === "list"), s = O(() => i.value && l.column.listType === "number"), m = O(() => l.column.format ===
|
|
3342
|
+
}), u = O(() => l.column.type === "date" || l.column.type === "datetime" || l.column.type === "slot" && (l.column.slotType === "date" || l.column.slotType === "datetime")), r = O(() => l.column.type === "dateRange" || l.column.type === "slot" && l.column.slotType === "dateRange"), i = O(() => l.column.type === "list" || l.column.type === "slot" && l.column.slotType === "list"), s = O(() => i.value && l.column.listType === "number"), m = O(() => l.column.format === X.INTEGER ? X.DECIMAL : l.column.format ?? X.DECIMAL), h = O({
|
|
3345
3343
|
get() {
|
|
3346
3344
|
var v, C, _, K, ve, ne, V;
|
|
3347
3345
|
let y = (v = c.value) == null ? void 0 : v[0];
|
|
@@ -3489,8 +3487,8 @@ const vn = {
|
|
|
3489
3487
|
function x(y, v) {
|
|
3490
3488
|
let C = (y == null ? void 0 : y.value) ?? v ?? 0;
|
|
3491
3489
|
if (typeof C == "string") {
|
|
3492
|
-
const _ = l.column.format ===
|
|
3493
|
-
C =
|
|
3490
|
+
const _ = l.column.format === X.INTEGER, K = (_ ? X.DECIMAL : l.column.format) ?? X.DECIMAL;
|
|
3491
|
+
C = Ll(C, K, { additionalOptions: {
|
|
3494
3492
|
maximumFractionDigits: _ ? 0 : void 0,
|
|
3495
3493
|
minimumFractionDigits: _ ? 0 : void 0
|
|
3496
3494
|
} });
|
|
@@ -3515,7 +3513,7 @@ const vn = {
|
|
|
3515
3513
|
C === !1 && (h.value = v);
|
|
3516
3514
|
}
|
|
3517
3515
|
const E = ol("cl-ui-grid-id") ?? "cl-ui-grid-filter";
|
|
3518
|
-
return (y, v) => S.value ? (p(), b("div",
|
|
3516
|
+
return (y, v) => S.value ? (p(), b("div", $n, [
|
|
3519
3517
|
y.column.type === "boolean" || y.column.type === "slot" && y.column.slotType === "boolean" ? (p(), b("select", {
|
|
3520
3518
|
key: 0,
|
|
3521
3519
|
id: `${g(E)}-${y.column.name}`,
|
|
@@ -3523,16 +3521,16 @@ const vn = {
|
|
|
3523
3521
|
class: "!cl-h-[2rem] cl-bg-white cl-border-none cl-font-normal cl-mb-0 cl-rounded-md cl-w-full",
|
|
3524
3522
|
onChange: v[0] || (v[0] = (C) => B(C.target))
|
|
3525
3523
|
}, [
|
|
3526
|
-
|
|
3524
|
+
Tn,
|
|
3527
3525
|
f("option", {
|
|
3528
3526
|
value: "true",
|
|
3529
3527
|
selected: $.value === "true"
|
|
3530
|
-
},
|
|
3528
|
+
}, N(g(n)("grid.true")), 9, qn),
|
|
3531
3529
|
f("option", {
|
|
3532
3530
|
value: "false",
|
|
3533
3531
|
selected: $.value === "false"
|
|
3534
|
-
},
|
|
3535
|
-
], 40,
|
|
3532
|
+
}, N(g(n)("grid.false")), 9, On)
|
|
3533
|
+
], 40, Cn)) : u.value ? (p(), P(xl, {
|
|
3536
3534
|
key: 1,
|
|
3537
3535
|
id: `${g(E)}-${y.column.name}`,
|
|
3538
3536
|
"model-value": q.value,
|
|
@@ -3542,7 +3540,7 @@ const vn = {
|
|
|
3542
3540
|
class: "!cl-h-[2rem] cl-border-none cl-mb-0 cl-text-xs cl-w-full lg:!cl-text-base",
|
|
3543
3541
|
"popover-placement": "bottom-start",
|
|
3544
3542
|
"onUpdate:modelValue": v[1] || (v[1] = (C) => B(null, C ?? ""))
|
|
3545
|
-
}, null, 8, ["id", "model-value", "time-zone", "disabled", "type"])) : r.value ? (p(), b("div",
|
|
3543
|
+
}, null, 8, ["id", "model-value", "time-zone", "disabled", "type"])) : r.value ? (p(), b("div", Sn, [
|
|
3546
3544
|
D(Kl, {
|
|
3547
3545
|
id: `${g(E)}-${y.column.name}`,
|
|
3548
3546
|
"model-value": U.value,
|
|
@@ -3553,12 +3551,12 @@ const vn = {
|
|
|
3553
3551
|
"popover-placement": "bottom-start",
|
|
3554
3552
|
"onUpdate:modelValue": v[2] || (v[2] = (C) => A(C))
|
|
3555
3553
|
}, null, 8, ["id", "model-value", "disabled", "time-zone", "quick-date-scope"])
|
|
3556
|
-
])) : y.column.type === "number" || y.column.type === "slot" && y.column.slotType === "number" ? (p(), b("div",
|
|
3554
|
+
])) : y.column.type === "number" || y.column.type === "slot" && y.column.slotType === "number" ? (p(), b("div", Dn, [
|
|
3557
3555
|
D(Pe, {
|
|
3558
3556
|
id: `${g(E)}-${y.column.name}`,
|
|
3559
3557
|
"model-value": $.value === "" || isNaN(+$.value) ? null : +$.value,
|
|
3560
3558
|
format: m.value,
|
|
3561
|
-
precision: y.column.format === g(
|
|
3559
|
+
precision: y.column.format === g(X).INTEGER ? 0 : g(il)(m.value, { locale: g(a) }).maximumFractionDigits,
|
|
3562
3560
|
class: "cl-border-none cl-font-normal cl-h-[2rem] cl-mb-0 cl-text-xs cl-w-full lg:cl-text-base",
|
|
3563
3561
|
disabled: y.loading,
|
|
3564
3562
|
readonly: y.loading,
|
|
@@ -3568,11 +3566,11 @@ const vn = {
|
|
|
3568
3566
|
"onUpdate:modelValue": v[3] || (v[3] = (C) => C !== null ? x(null, C) : B(null, ""))
|
|
3569
3567
|
}, {
|
|
3570
3568
|
default: R(() => [
|
|
3571
|
-
|
|
3569
|
+
En
|
|
3572
3570
|
]),
|
|
3573
3571
|
_: 1
|
|
3574
3572
|
}, 8, ["id", "model-value", "format", "precision", "disabled", "readonly"])
|
|
3575
|
-
])) : y.column.type === "string" || y.column.type === "slot" && y.column.slotType === "string" ? (p(), b("div",
|
|
3573
|
+
])) : y.column.type === "string" || y.column.type === "slot" && y.column.slotType === "string" ? (p(), b("div", An, [
|
|
3576
3574
|
D(Ee, {
|
|
3577
3575
|
id: `${g(E)}-${y.column.name}`,
|
|
3578
3576
|
"model-value": $.value,
|
|
@@ -3581,7 +3579,7 @@ const vn = {
|
|
|
3581
3579
|
"onUpdate:modelValue": v[4] || (v[4] = (C) => B(null, C))
|
|
3582
3580
|
}, {
|
|
3583
3581
|
default: R(() => [
|
|
3584
|
-
|
|
3582
|
+
Vn
|
|
3585
3583
|
]),
|
|
3586
3584
|
_: 1
|
|
3587
3585
|
}, 8, ["id", "model-value", "disabled"])
|
|
@@ -3592,14 +3590,14 @@ const vn = {
|
|
|
3592
3590
|
disabled: y.loading,
|
|
3593
3591
|
onChange: v[5] || (v[5] = (C) => s.value ? x(C.target) : B(C.target))
|
|
3594
3592
|
}, [
|
|
3595
|
-
|
|
3593
|
+
In,
|
|
3596
3594
|
(p(!0), b(Y, null, re(y.column.listEntries ?? [], (C) => (p(), b("option", {
|
|
3597
3595
|
key: C.value,
|
|
3598
3596
|
value: C.value,
|
|
3599
3597
|
selected: $.value === C.value.toString()
|
|
3600
|
-
},
|
|
3598
|
+
}, N(g(n)(C.translationKey)), 9, Rn))), 128))
|
|
3601
3599
|
], 40, Nn)) : z("", !0),
|
|
3602
|
-
r.value ? z("", !0) : (p(), P(
|
|
3600
|
+
r.value ? z("", !0) : (p(), P(kn, {
|
|
3603
3601
|
key: 6,
|
|
3604
3602
|
filter: k.value,
|
|
3605
3603
|
"onUpdate:filter": v[6] || (v[6] = (C) => k.value = C),
|
|
@@ -3609,7 +3607,7 @@ const vn = {
|
|
|
3609
3607
|
}, null, 8, ["filter", "loading", "column", "default-operation"]))
|
|
3610
3608
|
])) : z("", !0);
|
|
3611
3609
|
}
|
|
3612
|
-
}),
|
|
3610
|
+
}), Un = { class: "-cl-top-1 cl-bg-white cl-shadow-sm cl-sticky cl-z-20 lg:cl-bg-transparent lg:cl-relative lg:cl-shadow-none" }, zn = { class: "cl-hidden lg:cl-table-row" }, Ln = ["onClick"], jn = { class: "cl-flex cl-justify-end cl-w-full lg:cl-hidden" }, Bn = { class: "cl-col-span-2 lg:cl-hidden" }, Fn = ["onClick"], Pn = { class: "cl-font-normal cl-mr-1" }, Hn = /* @__PURE__ */ F({
|
|
3613
3611
|
__name: "cl-ui-grid-header",
|
|
3614
3612
|
props: {
|
|
3615
3613
|
request: {},
|
|
@@ -3647,8 +3645,8 @@ const vn = {
|
|
|
3647
3645
|
], i.pageNumber = 1, a.value = i;
|
|
3648
3646
|
}
|
|
3649
3647
|
}
|
|
3650
|
-
return (r, i) => (p(), b("thead",
|
|
3651
|
-
f("tr",
|
|
3648
|
+
return (r, i) => (p(), b("thead", Un, [
|
|
3649
|
+
f("tr", zn, [
|
|
3652
3650
|
(p(!0), b(Y, null, re(r.columns, (s, m) => (p(), b("th", {
|
|
3653
3651
|
key: m,
|
|
3654
3652
|
class: L(["cl-text-grey-3 cl-text-sm", {
|
|
@@ -3657,32 +3655,32 @@ const vn = {
|
|
|
3657
3655
|
onClick: (h) => g(Ge)(s) && r.loading === !1 ? c(s.field) : () => {
|
|
3658
3656
|
}
|
|
3659
3657
|
}, [
|
|
3660
|
-
ue(
|
|
3658
|
+
ue(N(s.caption) + " ", 1),
|
|
3661
3659
|
Q(D(g(Z), {
|
|
3662
3660
|
class: "cl-inline-block",
|
|
3663
3661
|
icon: "ph:caret-up"
|
|
3664
3662
|
}, null, 512), [
|
|
3665
|
-
[
|
|
3663
|
+
[ee, d(s, !0)]
|
|
3666
3664
|
]),
|
|
3667
3665
|
Q(D(g(Z), {
|
|
3668
3666
|
class: "cl-inline-block",
|
|
3669
3667
|
icon: "ph:caret-down"
|
|
3670
3668
|
}, null, 512), [
|
|
3671
|
-
[
|
|
3669
|
+
[ee, d(s, !1)]
|
|
3672
3670
|
])
|
|
3673
|
-
], 10,
|
|
3671
|
+
], 10, Ln))), 128))
|
|
3674
3672
|
]),
|
|
3675
3673
|
f("tr", {
|
|
3676
3674
|
class: L(["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", {
|
|
3677
3675
|
"cl-hidden lg:cl-table-row": !r.filterPanelOpen
|
|
3678
3676
|
}])
|
|
3679
3677
|
}, [
|
|
3680
|
-
f("div",
|
|
3678
|
+
f("div", jn, [
|
|
3681
3679
|
D(g(Z), {
|
|
3682
3680
|
class: "cl-text-grey-4 hover:cl-cursor-pointer hover:cl-text-link-default",
|
|
3683
3681
|
icon: "ph:x",
|
|
3684
3682
|
size: 16,
|
|
3685
|
-
onClick: i[0] || (i[0] =
|
|
3683
|
+
onClick: i[0] || (i[0] = le((s) => r.loading === !1 ? r.$emit("update:filterPanelOpen", !1) : void 0, ["prevent"]))
|
|
3686
3684
|
})
|
|
3687
3685
|
]),
|
|
3688
3686
|
(p(!0), b(Y, null, re(r.columns, (s, m) => (p(), b("th", {
|
|
@@ -3691,13 +3689,13 @@ const vn = {
|
|
|
3691
3689
|
"cl-hidden lg:cl-table-cell": !g(nl)(s)
|
|
3692
3690
|
}])
|
|
3693
3691
|
}, [
|
|
3694
|
-
f("div",
|
|
3692
|
+
f("div", Bn, N(s.caption), 1),
|
|
3695
3693
|
g(Ge)(s) ? (p(), b("div", {
|
|
3696
3694
|
key: 0,
|
|
3697
3695
|
class: "cl-col-span-2 cl-gap-1 cl-span lg:cl-hidden",
|
|
3698
3696
|
onClick: (h) => r.loading === !1 ? c(s.field) : void 0
|
|
3699
3697
|
}, [
|
|
3700
|
-
f("span",
|
|
3698
|
+
f("span", Pn, N(g(n)("grid.sortBy")), 1),
|
|
3701
3699
|
d(s, !0) ? (p(), P(g(Z), {
|
|
3702
3700
|
key: 0,
|
|
3703
3701
|
class: "cl-cursor-pointer cl-inline-block",
|
|
@@ -3711,8 +3709,8 @@ const vn = {
|
|
|
3711
3709
|
class: "cl-cursor-pointer cl-inline-block",
|
|
3712
3710
|
icon: "ph:minus"
|
|
3713
3711
|
}))
|
|
3714
|
-
], 8,
|
|
3715
|
-
D(
|
|
3712
|
+
], 8, Fn)) : z("", !0),
|
|
3713
|
+
D(Mn, {
|
|
3716
3714
|
class: "cl-col-span-4",
|
|
3717
3715
|
loading: r.loading,
|
|
3718
3716
|
filter: a.value.filters.filter((h) => h.filterOnColumn === s.field),
|
|
@@ -3726,7 +3724,7 @@ const vn = {
|
|
|
3726
3724
|
], 2)
|
|
3727
3725
|
]));
|
|
3728
3726
|
}
|
|
3729
|
-
}),
|
|
3727
|
+
}), Wn = { class: "cl-flex cl-mb-2" }, Zn = { class: "cl-basis-full cl-grow" }, Gn = /* @__PURE__ */ f("span", null, null, -1), Kn = /* @__PURE__ */ F({
|
|
3730
3728
|
__name: "cl-ui-grid-search",
|
|
3731
3729
|
props: /* @__PURE__ */ ge({
|
|
3732
3730
|
columns: {},
|
|
@@ -3760,8 +3758,8 @@ const vn = {
|
|
|
3760
3758
|
return (u, r) => {
|
|
3761
3759
|
const i = De("icon");
|
|
3762
3760
|
return M(u.$slots, "search", de(fe({ searchValue: e.value, performSearch: d })), () => [
|
|
3763
|
-
f("div",
|
|
3764
|
-
f("div",
|
|
3761
|
+
f("div", Wn, [
|
|
3762
|
+
f("div", Zn, [
|
|
3765
3763
|
D(Ee, {
|
|
3766
3764
|
modelValue: e.value,
|
|
3767
3765
|
"onUpdate:modelValue": r[0] || (r[0] = (s) => e.value = s),
|
|
@@ -3772,7 +3770,7 @@ const vn = {
|
|
|
3772
3770
|
onBlur: r[2] || (r[2] = (s) => d(e.value))
|
|
3773
3771
|
}, {
|
|
3774
3772
|
default: R(() => [
|
|
3775
|
-
|
|
3773
|
+
Gn
|
|
3776
3774
|
]),
|
|
3777
3775
|
_: 1
|
|
3778
3776
|
}, 8, ["modelValue", "placeholder"])
|
|
@@ -3780,13 +3778,13 @@ const vn = {
|
|
|
3780
3778
|
D(i, {
|
|
3781
3779
|
class: "cl-absolute cl-cursor-pointer cl-right-1 cl-text-grey-4 cl-top-3 cl-z-10 hover:cl-text-link-light lg:cl-right-4",
|
|
3782
3780
|
icon: "ph:x-bold",
|
|
3783
|
-
onClick: r[3] || (r[3] =
|
|
3781
|
+
onClick: r[3] || (r[3] = le((s) => d(""), ["prevent"]))
|
|
3784
3782
|
})
|
|
3785
3783
|
])
|
|
3786
3784
|
]);
|
|
3787
3785
|
};
|
|
3788
3786
|
}
|
|
3789
|
-
}),
|
|
3787
|
+
}), Qn = { class: "cl-fixed cl-flex cl-h-full cl-justify-end cl-right-0 cl-shadow-lg cl-top-0 cl-z-40" }, xn = { 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" }, Yn = { class: "cl-mb-4 cl-text-2xl cl-text-off-white" }, _n = { class: "cl-border-grey-3 cl-border-t cl-flex cl-flex-wrap cl-text-sm cl-w-full" }, Jn = { class: "cl-border-b cl-border-grey-2 cl-flex cl-py-2 cl-text-sm cl-w-full" }, Xn = { class: "cl-flex-1 cl-py-2" }, es = { class: "cl-py-2 cl-w-1/4" }, ls = { class: "cl-py-2 cl-w-1/5" }, ts = { class: "cl-flex-1 cl-py-2" }, os = { class: "cl-py-2 cl-w-1/4" }, as = { class: "cl-py-2 cl-text-off-white cl-w-1/5" }, ns = { key: 1 }, ss = /* @__PURE__ */ F({
|
|
3790
3788
|
inheritAttrs: !1,
|
|
3791
3789
|
__name: "cl-ui-grid-view-manager",
|
|
3792
3790
|
props: {
|
|
@@ -3795,7 +3793,7 @@ const vn = {
|
|
|
3795
3793
|
},
|
|
3796
3794
|
emits: ["update:columns"],
|
|
3797
3795
|
setup(t, { emit: o }) {
|
|
3798
|
-
const l = t, e = o, { t: n } = se(), a =
|
|
3796
|
+
const l = t, e = o, { t: n } = se(), a = I(!1);
|
|
3799
3797
|
function d(r, i, s) {
|
|
3800
3798
|
s < r.length && s >= 0 && r.splice(s, 0, r.splice(i, 1)[0]);
|
|
3801
3799
|
}
|
|
@@ -3812,43 +3810,43 @@ const vn = {
|
|
|
3812
3810
|
class: "cl-w-full",
|
|
3813
3811
|
size: "small",
|
|
3814
3812
|
disabled: r.loading,
|
|
3815
|
-
onClick: i[0] || (i[0] =
|
|
3813
|
+
onClick: i[0] || (i[0] = le((s) => a.value = !0, ["prevent"]))
|
|
3816
3814
|
}), {
|
|
3817
3815
|
default: R(() => [
|
|
3818
|
-
ue(
|
|
3816
|
+
ue(N(g(n)("grid.manageView")), 1)
|
|
3819
3817
|
]),
|
|
3820
3818
|
_: 1
|
|
3821
3819
|
}, 16, ["disabled"]),
|
|
3822
3820
|
(p(), P(tl, { to: "body" }, [
|
|
3823
3821
|
D(Ce, { name: "slide-left" }, {
|
|
3824
3822
|
default: R(() => [
|
|
3825
|
-
Q(f("div",
|
|
3826
|
-
f("div",
|
|
3823
|
+
Q(f("div", Qn, [
|
|
3824
|
+
f("div", xn, [
|
|
3827
3825
|
D(g(Z), {
|
|
3828
3826
|
class: "cl-absolute cl-cursor-pointer cl-right-3 cl-text-off-white cl-top-3",
|
|
3829
3827
|
icon: "ph:x",
|
|
3830
3828
|
size: 16,
|
|
3831
3829
|
onClick: i[1] || (i[1] = (s) => a.value = !1)
|
|
3832
3830
|
}),
|
|
3833
|
-
f("h3",
|
|
3834
|
-
f("ul",
|
|
3835
|
-
f("li",
|
|
3836
|
-
f("strong",
|
|
3837
|
-
f("strong",
|
|
3838
|
-
f("strong",
|
|
3831
|
+
f("h3", Yn, N(g(n)("grid.manageView")), 1),
|
|
3832
|
+
f("ul", _n, [
|
|
3833
|
+
f("li", Jn, [
|
|
3834
|
+
f("strong", Xn, N(g(n)("grid.column")), 1),
|
|
3835
|
+
f("strong", es, N(g(n)("grid.visible")), 1),
|
|
3836
|
+
f("strong", ls, N(g(n)("grid.order")), 1)
|
|
3839
3837
|
]),
|
|
3840
3838
|
(p(!0), b(Y, null, re(r.columns, (s, m) => (p(), b("li", {
|
|
3841
3839
|
key: m,
|
|
3842
3840
|
class: "cl-border-b cl-border-grey-2 cl-flex cl-py-2 cl-text-sm cl-w-full"
|
|
3843
3841
|
}, [
|
|
3844
|
-
f("div",
|
|
3845
|
-
f("div",
|
|
3842
|
+
f("div", ts, N(s.caption), 1),
|
|
3843
|
+
f("div", os, [
|
|
3846
3844
|
D(sl, {
|
|
3847
3845
|
"model-value": s.visible === void 0 || s.visible === !0,
|
|
3848
3846
|
"onUpdate:modelValue": (h) => c(h, s)
|
|
3849
3847
|
}, null, 8, ["model-value", "onUpdate:modelValue"])
|
|
3850
3848
|
]),
|
|
3851
|
-
f("div",
|
|
3849
|
+
f("div", as, [
|
|
3852
3850
|
s.visible === void 0 || s.visible === !0 ? (p(), b(Y, { key: 0 }, [
|
|
3853
3851
|
m !== 0 ? (p(), P(g(Z), {
|
|
3854
3852
|
key: 0,
|
|
@@ -3862,13 +3860,13 @@ const vn = {
|
|
|
3862
3860
|
icon: "ph:arrow-right",
|
|
3863
3861
|
onClick: (h) => u(m, "up")
|
|
3864
3862
|
}, null, 8, ["onClick"])) : z("", !0)
|
|
3865
|
-
], 64)) : (p(), b("em",
|
|
3863
|
+
], 64)) : (p(), b("em", ns, N(g(n)("grid.hidden")), 1))
|
|
3866
3864
|
])
|
|
3867
3865
|
]))), 128))
|
|
3868
3866
|
])
|
|
3869
3867
|
])
|
|
3870
3868
|
], 512), [
|
|
3871
|
-
[
|
|
3869
|
+
[ee, a.value]
|
|
3872
3870
|
])
|
|
3873
3871
|
]),
|
|
3874
3872
|
_: 1
|
|
@@ -3876,7 +3874,7 @@ const vn = {
|
|
|
3876
3874
|
]))
|
|
3877
3875
|
], 64));
|
|
3878
3876
|
}
|
|
3879
|
-
}),
|
|
3877
|
+
}), rs = { class: "cl-relative cl-w-full grid-wrapper lg:cl-min-h-fit" }, is = { class: "cl-absolute cl-flex cl-items-center cl-justify-center cl-min-h-full cl-p-28 cl-pt-0 cl-w-full" }, cs = { class: "cl-overflow-x-auto cl-overscroll-x-none cl-pt-1" }, us = { class: "cl-hidden lg:cl-table-column-group" }, ds = /* @__PURE__ */ F({
|
|
3880
3878
|
__name: "cl-ui-grid",
|
|
3881
3879
|
props: {
|
|
3882
3880
|
columns: {},
|
|
@@ -3891,14 +3889,14 @@ const vn = {
|
|
|
3891
3889
|
emits: ["update:columns", "update:request", "data-request", "row-edit", "row-edit-cancelled", "edit-start", "edit-end", "row-select"],
|
|
3892
3890
|
setup(t, { emit: o }) {
|
|
3893
3891
|
var A;
|
|
3894
|
-
const l = t, e = o, n =
|
|
3895
|
-
|
|
3892
|
+
const l = t, e = o, n = El();
|
|
3893
|
+
bl("cl-ui-grid-id", n.id);
|
|
3896
3894
|
const a = O(() => l.headerDisplayTimezone ?? l.timeZone), d = O(() => l.dateFormatLocale);
|
|
3897
|
-
|
|
3895
|
+
bl(zl, d);
|
|
3898
3896
|
const c = O({
|
|
3899
3897
|
get: () => l.columns,
|
|
3900
3898
|
set: (E) => e("update:columns", E)
|
|
3901
|
-
}), u = O(() => c.value.filter((E) => E.visible ?? !0)), r =
|
|
3899
|
+
}), u = O(() => c.value.filter((E) => E.visible ?? !0)), r = I({});
|
|
3902
3900
|
function i() {
|
|
3903
3901
|
const E = {};
|
|
3904
3902
|
window.innerWidth >= 1024 && c.value.forEach((y) => {
|
|
@@ -3925,7 +3923,7 @@ const vn = {
|
|
|
3925
3923
|
deep: !0,
|
|
3926
3924
|
immediate: !0
|
|
3927
3925
|
});
|
|
3928
|
-
const T = O(() => l.data), $ =
|
|
3926
|
+
const T = O(() => l.data), $ = I(!1), q = I(!1);
|
|
3929
3927
|
oe($, () => {
|
|
3930
3928
|
$.value ? e("edit-start") : Me(() => e("edit-end"));
|
|
3931
3929
|
});
|
|
@@ -3948,9 +3946,9 @@ const vn = {
|
|
|
3948
3946
|
filters: y
|
|
3949
3947
|
};
|
|
3950
3948
|
}
|
|
3951
|
-
}), B =
|
|
3952
|
-
return (E, y) => (p(), b("div",
|
|
3953
|
-
x.value.length > 0 ? (p(), P(
|
|
3949
|
+
}), B = I(((A = l.request.filters.find((E) => E.filterMethod === "andcontains" || E.filterOperation === J.AND_CONTAINS)) == null ? void 0 : A.filterValue) ?? ""), x = O(() => l.columns.filter((E) => (E.type === "string" || E.type === "slot" && E.slotType === "string") && E.searchable));
|
|
3950
|
+
return (E, y) => (p(), b("div", rs, [
|
|
3951
|
+
x.value.length > 0 ? (p(), P(Kn, {
|
|
3954
3952
|
key: 0,
|
|
3955
3953
|
"search-value": B.value,
|
|
3956
3954
|
"onUpdate:searchValue": y[0] || (y[0] = (v) => B.value = v),
|
|
@@ -3965,10 +3963,10 @@ const vn = {
|
|
|
3965
3963
|
}, 8, ["search-value", "request", "columns"])) : z("", !0),
|
|
3966
3964
|
D(Ce, { name: "fade" }, {
|
|
3967
3965
|
default: R(() => [
|
|
3968
|
-
Q(f("div",
|
|
3966
|
+
Q(f("div", is, [
|
|
3969
3967
|
D(_e, { class: "after:!cl-h-20 after:!cl-w-20 cl-h-20 cl-w-20" })
|
|
3970
3968
|
], 512), [
|
|
3971
|
-
[
|
|
3969
|
+
[ee, E.loading]
|
|
3972
3970
|
])
|
|
3973
3971
|
]),
|
|
3974
3972
|
_: 1
|
|
@@ -3988,7 +3986,7 @@ const vn = {
|
|
|
3988
3986
|
M(E.$slots, "additional-grid-actions", de(fe(v)))
|
|
3989
3987
|
]),
|
|
3990
3988
|
"view-manager": R(() => [
|
|
3991
|
-
D(
|
|
3989
|
+
D(ss, {
|
|
3992
3990
|
columns: c.value,
|
|
3993
3991
|
"onUpdate:columns": y[2] || (y[2] = (v) => c.value = v),
|
|
3994
3992
|
loading: E.loading
|
|
@@ -3996,20 +3994,20 @@ const vn = {
|
|
|
3996
3994
|
]),
|
|
3997
3995
|
_: 3
|
|
3998
3996
|
}, 8, ["edit-mode", "filter-panel-open", "columns", "options", "request", "loading"]),
|
|
3999
|
-
f("div",
|
|
3997
|
+
f("div", cs, [
|
|
4000
3998
|
f("table", {
|
|
4001
3999
|
class: L(["cl-delay-75 cl-min-h-[276px] cl-overflow-x-auto cl-overscroll-x-none cl-text-left cl-transition-opacity cl-w-full", {
|
|
4002
4000
|
"cl-opacity-40 cl-pointer-events-none": E.loading
|
|
4003
4001
|
}])
|
|
4004
4002
|
}, [
|
|
4005
|
-
f("colgroup",
|
|
4003
|
+
f("colgroup", us, [
|
|
4006
4004
|
(p(!0), b(Y, null, re(u.value, (v, C) => (p(), b("col", {
|
|
4007
4005
|
key: C,
|
|
4008
4006
|
style: tt(s(v.name)),
|
|
4009
4007
|
span: 1
|
|
4010
4008
|
}, null, 4))), 128))
|
|
4011
4009
|
]),
|
|
4012
|
-
D(
|
|
4010
|
+
D(Hn, {
|
|
4013
4011
|
request: S.value,
|
|
4014
4012
|
"onUpdate:request": y[5] || (y[5] = (v) => S.value = v),
|
|
4015
4013
|
"filter-panel-open": q.value,
|
|
@@ -4020,7 +4018,7 @@ const vn = {
|
|
|
4020
4018
|
"time-zone": E.timeZone,
|
|
4021
4019
|
"header-display-timezone": a.value
|
|
4022
4020
|
}, null, 8, ["request", "filter-panel-open", "columns", "options", "loading", "time-zone", "header-display-timezone"]),
|
|
4023
|
-
D(
|
|
4021
|
+
D(ma, {
|
|
4024
4022
|
columns: u.value,
|
|
4025
4023
|
request: m.value,
|
|
4026
4024
|
data: T.value,
|
|
@@ -4033,7 +4031,7 @@ const vn = {
|
|
|
4033
4031
|
onRowEdit: y[7] || (y[7] = (v) => E.$emit("row-edit", v)),
|
|
4034
4032
|
onRowEditCancelled: y[8] || (y[8] = (v) => E.$emit("row-edit-cancelled", v)),
|
|
4035
4033
|
onRowSelect: y[9] || (y[9] = (v) => E.$emit("row-select", v))
|
|
4036
|
-
},
|
|
4034
|
+
}, Ne({ _: 2 }, [
|
|
4037
4035
|
re(E.$slots, (v, C) => ({
|
|
4038
4036
|
name: C,
|
|
4039
4037
|
fn: R((_) => [
|
|
@@ -4043,7 +4041,7 @@ const vn = {
|
|
|
4043
4041
|
]), 1032, ["columns", "request", "data", "time-zone", "loading", "search-value", "options", "edit-mode"])
|
|
4044
4042
|
], 2)
|
|
4045
4043
|
]),
|
|
4046
|
-
D(
|
|
4044
|
+
D(Ua, {
|
|
4047
4045
|
request: m.value,
|
|
4048
4046
|
loading: E.loading,
|
|
4049
4047
|
"show-unsaved-changes-warning": $.value && U.value.disableUnsavedChangesWarning === !1,
|
|
@@ -4054,17 +4052,17 @@ const vn = {
|
|
|
4054
4052
|
}, null, 8, ["request", "loading", "show-unsaved-changes-warning", "data"])
|
|
4055
4053
|
]));
|
|
4056
4054
|
}
|
|
4057
|
-
}),
|
|
4055
|
+
}), ps = { 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" }, fs = /* @__PURE__ */ F({
|
|
4058
4056
|
__name: "cl-ui-header",
|
|
4059
4057
|
props: {
|
|
4060
4058
|
isOpen: { type: Boolean }
|
|
4061
4059
|
},
|
|
4062
4060
|
emits: ["open-click"],
|
|
4063
4061
|
setup(t, { emit: o }) {
|
|
4064
|
-
const l = t, e = o, n =
|
|
4062
|
+
const l = t, e = o, n = I();
|
|
4065
4063
|
return al(n, () => {
|
|
4066
4064
|
(l.isOpen ?? !1) && e("open-click");
|
|
4067
|
-
}), (a, d) => (p(), b("header",
|
|
4065
|
+
}), (a, d) => (p(), b("header", ps, [
|
|
4068
4066
|
M(a.$slots, "logo"),
|
|
4069
4067
|
f("div", {
|
|
4070
4068
|
ref_key: "headerMenuElement",
|
|
@@ -4077,15 +4075,15 @@ const vn = {
|
|
|
4077
4075
|
], 512)
|
|
4078
4076
|
]));
|
|
4079
4077
|
}
|
|
4080
|
-
}),
|
|
4078
|
+
}), ms = { 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]" }, gs = ["src"], vs = {
|
|
4081
4079
|
key: 0,
|
|
4082
4080
|
id: "cl-ui-header-menu-username",
|
|
4083
4081
|
class: "cl-text-ellipsis cl-whitespace-nowrap"
|
|
4084
|
-
},
|
|
4082
|
+
}, bs = {
|
|
4085
4083
|
key: 1,
|
|
4086
4084
|
id: "cl-ui-header-menu-group",
|
|
4087
4085
|
class: "cl-text-ellipsis cl-text-xs cl-whitespace-nowrap"
|
|
4088
|
-
},
|
|
4086
|
+
}, hs = { 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" }, ys = { class: "cl-absolute cl-bg-white cl-right-0 cl-shadow-2xl cl-top-20 cl-w-full cl-z-20" }, ws = /* @__PURE__ */ F({
|
|
4089
4087
|
__name: "cl-ui-header-menu",
|
|
4090
4088
|
props: {
|
|
4091
4089
|
username: { default: "" },
|
|
@@ -4101,12 +4099,12 @@ const vn = {
|
|
|
4101
4099
|
"cl-bg-blue-light": o.colour === "secondary"
|
|
4102
4100
|
}])
|
|
4103
4101
|
}, [
|
|
4104
|
-
f("div",
|
|
4102
|
+
f("div", ms, [
|
|
4105
4103
|
o.image ? (p(), b("img", {
|
|
4106
4104
|
key: 0,
|
|
4107
4105
|
src: o.image,
|
|
4108
4106
|
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"
|
|
4109
|
-
}, null, 8,
|
|
4107
|
+
}, null, 8, gs)) : (p(), P(g(Z), {
|
|
4110
4108
|
key: 1,
|
|
4111
4109
|
class: "cl-hidden cl-m-4 cl-text-white md:cl-block",
|
|
4112
4110
|
icon: "ph:user-circle",
|
|
@@ -4119,10 +4117,10 @@ const vn = {
|
|
|
4119
4117
|
"cl-text-white": o.colour === "secondary"
|
|
4120
4118
|
}])
|
|
4121
4119
|
}, [
|
|
4122
|
-
o.username ? (p(), b("div",
|
|
4123
|
-
o.group ? (p(), b("div",
|
|
4120
|
+
o.username ? (p(), b("div", vs, N(o.username), 1)) : z("", !0),
|
|
4121
|
+
o.group ? (p(), b("div", bs, N(o.group), 1)) : z("", !0)
|
|
4124
4122
|
], 2),
|
|
4125
|
-
f("div",
|
|
4123
|
+
f("div", hs, [
|
|
4126
4124
|
D(g(Z), {
|
|
4127
4125
|
class: L(["cl-transform-gpu cl-transition-transform", {
|
|
4128
4126
|
"cl-rotate-180": o.isOpen,
|
|
@@ -4135,20 +4133,20 @@ const vn = {
|
|
|
4135
4133
|
]),
|
|
4136
4134
|
D(Ce, { name: "fade" }, {
|
|
4137
4135
|
default: R(() => [
|
|
4138
|
-
Q(f("div",
|
|
4136
|
+
Q(f("div", ys, [
|
|
4139
4137
|
M(o.$slots, "default")
|
|
4140
4138
|
], 512), [
|
|
4141
|
-
[
|
|
4139
|
+
[ee, o.isOpen]
|
|
4142
4140
|
])
|
|
4143
4141
|
]),
|
|
4144
4142
|
_: 3
|
|
4145
4143
|
})
|
|
4146
4144
|
], 2));
|
|
4147
4145
|
}
|
|
4148
|
-
}),
|
|
4146
|
+
}), ks = [
|
|
4149
4147
|
"default",
|
|
4150
4148
|
"secondary"
|
|
4151
|
-
],
|
|
4149
|
+
], $s = /* @__PURE__ */ F({
|
|
4152
4150
|
inheritAttrs: !1,
|
|
4153
4151
|
__name: "cl-ui-calendar",
|
|
4154
4152
|
props: {
|
|
@@ -4195,7 +4193,7 @@ const vn = {
|
|
|
4195
4193
|
}
|
|
4196
4194
|
n("update:date", B);
|
|
4197
4195
|
}
|
|
4198
|
-
}), { locale: c } = se(), u = O(() => e.dateFormatLocale ?? c.value), r = O(() =>
|
|
4196
|
+
}), { locale: c } = se(), u = O(() => e.dateFormatLocale ?? c.value), r = O(() => dl(e.disabled, "auto")), i = O(() => Bl(u.value, e.type)), s = I(null), m = O(() => pl(e.date, e.initialDate, a.value, e.type)), h = I(null), k = I();
|
|
4199
4197
|
function T(S) {
|
|
4200
4198
|
const B = Fl(S, a.value);
|
|
4201
4199
|
d.value = B, h.value = S, k.value.move(B.start), k.value.hidePopover();
|
|
@@ -4206,7 +4204,7 @@ const vn = {
|
|
|
4206
4204
|
var S;
|
|
4207
4205
|
(S = s.value) == null || S.focus();
|
|
4208
4206
|
}
|
|
4209
|
-
}), (S, B) => S.type === "time" ? (p(), P(g(
|
|
4207
|
+
}), (S, B) => S.type === "time" ? (p(), P(g(Ie), {
|
|
4210
4208
|
key: 0,
|
|
4211
4209
|
modelValue: d.value,
|
|
4212
4210
|
"onUpdate:modelValue": B[1] || (B[1] = (x) => d.value = x),
|
|
@@ -4236,7 +4234,7 @@ const vn = {
|
|
|
4236
4234
|
}), null, 16, ["date", "events", "type", "placeholder", "required", "disabled"])
|
|
4237
4235
|
]),
|
|
4238
4236
|
_: 1
|
|
4239
|
-
}, 8, ["modelValue", "locale", "is24hr", "mode", "is-required", "masks", "popover"])) : S.type === "dateRange" ? (p(), P(g(
|
|
4237
|
+
}, 8, ["modelValue", "locale", "is24hr", "mode", "is-required", "masks", "popover"])) : S.type === "dateRange" ? (p(), P(g(Ie), {
|
|
4240
4238
|
key: 1,
|
|
4241
4239
|
ref_key: "calendar",
|
|
4242
4240
|
ref: k,
|
|
@@ -4282,7 +4280,7 @@ const vn = {
|
|
|
4282
4280
|
}, null, 8, ["scope", "selected-quick-date", "current-date-range"])) : z("", !0)
|
|
4283
4281
|
]),
|
|
4284
4282
|
_: 1
|
|
4285
|
-
}, 8, ["modelValue", "locale", "is24hr", "timezone", "columns", "popover", "min-date", "max-date", "initial-page"])) : (p(), P(g(
|
|
4283
|
+
}, 8, ["modelValue", "locale", "is24hr", "timezone", "columns", "popover", "min-date", "max-date", "initial-page"])) : (p(), P(g(Ie), {
|
|
4286
4284
|
key: 2,
|
|
4287
4285
|
modelValue: d.value,
|
|
4288
4286
|
"onUpdate:modelValue": B[7] || (B[7] = (x) => d.value = x),
|
|
@@ -4321,7 +4319,7 @@ const vn = {
|
|
|
4321
4319
|
}), Ue = [
|
|
4322
4320
|
...Ql,
|
|
4323
4321
|
"dateRange"
|
|
4324
|
-
],
|
|
4322
|
+
], Cs = ["disabled", "step", "placeholder", "name"], Ts = /* @__PURE__ */ F({
|
|
4325
4323
|
__name: "cl-ui-currency-input",
|
|
4326
4324
|
props: {
|
|
4327
4325
|
modelValue: { type: [String, Object, Number, Boolean, null] },
|
|
@@ -4391,12 +4389,12 @@ const vn = {
|
|
|
4391
4389
|
onChange: k,
|
|
4392
4390
|
onBlur: m,
|
|
4393
4391
|
onFocus: $[0] || ($[0] = (q) => n("focus"))
|
|
4394
|
-
}, null, 42,
|
|
4392
|
+
}, null, 42, Cs));
|
|
4395
4393
|
}
|
|
4396
|
-
}),
|
|
4394
|
+
}), qs = (t) => (ot("data-v-5cb4ccea"), t = t(), at(), t), Os = { class: "cl-flex cl-items-start" }, Ss = { class: "cl-w-full" }, Ds = /* @__PURE__ */ qs(() => /* @__PURE__ */ f("span", null, null, -1)), Es = ["min", "max", "step", "disabled"], As = { class: "cl-bg-transparent cl-text-center cl-text-sm cl-w-full" }, Vs = { class: "cl-bg-transparent cl-text-sm" }, Ns = {
|
|
4397
4395
|
key: 1,
|
|
4398
4396
|
class: "cl-emphasis-danger cl-text-sm cl-w-full"
|
|
4399
|
-
},
|
|
4397
|
+
}, Is = /* @__PURE__ */ F({
|
|
4400
4398
|
inheritAttrs: !1,
|
|
4401
4399
|
__name: "cl-ui-slider",
|
|
4402
4400
|
props: /* @__PURE__ */ ge({
|
|
@@ -4411,28 +4409,28 @@ const vn = {
|
|
|
4411
4409
|
}),
|
|
4412
4410
|
emits: ["update:value"],
|
|
4413
4411
|
setup(t, { expose: o }) {
|
|
4414
|
-
|
|
4412
|
+
Al((r) => ({
|
|
4415
4413
|
"59055b28": d.value
|
|
4416
4414
|
}));
|
|
4417
|
-
const l = t, e = Ae(t, "value"), { t: n } = se(), a =
|
|
4415
|
+
const l = t, e = Ae(t, "value"), { t: n } = se(), a = I(), d = O(() => {
|
|
4418
4416
|
let r = (e.value - l.min) / (l.max - l.min) * 100;
|
|
4419
4417
|
return r < 35 && r > 0 ? r < 20 ? r += 0.5 : r += 0.25 : r > 65 && r < 100 && (r > 80 ? r -= 0.5 : r -= 0.25), `${r}%`;
|
|
4420
|
-
}), c = O(() => l.min <= l.max && l.step > 0), u =
|
|
4418
|
+
}), c = O(() => l.min <= l.max && l.step > 0), u = I(!1);
|
|
4421
4419
|
return o({
|
|
4422
4420
|
focus() {
|
|
4423
4421
|
var r;
|
|
4424
4422
|
(r = a.value) == null || r.focus();
|
|
4425
4423
|
}
|
|
4426
4424
|
}), (r, i) => c.value ? (p(), b("div", de(te({ key: 0 }, r.$attrs)), [
|
|
4427
|
-
f("div",
|
|
4425
|
+
f("div", Os, [
|
|
4428
4426
|
f("span", {
|
|
4429
4427
|
class: L(["cl-border cl-border-transparent cl-leading-6 cl-mr-1 cl-px-2 cl-rounded-full cl-select-none cl-shadow cl-text-center cl-text-xs", {
|
|
4430
4428
|
"cl-bg-white cl-cursor-pointer hover:cl-border-grey-1": !r.disabled,
|
|
4431
4429
|
"cl-bg-grey-0": r.disabled
|
|
4432
4430
|
}]),
|
|
4433
4431
|
onClick: i[0] || (i[0] = (s) => e.value = r.disabled ? e.value : r.min)
|
|
4434
|
-
},
|
|
4435
|
-
f("div",
|
|
4432
|
+
}, N(Number.isInteger(r.min) ? g(Oe)(r.min) : g(Se)(r.min, g(X).DECIMAL)), 3),
|
|
4433
|
+
f("div", Ss, [
|
|
4436
4434
|
u.value ? (p(), P(Pe, {
|
|
4437
4435
|
key: 0,
|
|
4438
4436
|
ref_key: "sliderRef",
|
|
@@ -4440,8 +4438,8 @@ const vn = {
|
|
|
4440
4438
|
modelValue: e.value,
|
|
4441
4439
|
"onUpdate:modelValue": i[1] || (i[1] = (s) => e.value = s),
|
|
4442
4440
|
class: "cl-min-w-[8.5rem] cl-w-full",
|
|
4443
|
-
format: g(
|
|
4444
|
-
precision: Number.isInteger(r.min) ? 0 : g(il)(g(
|
|
4441
|
+
format: g(X).DECIMAL,
|
|
4442
|
+
precision: Number.isInteger(r.min) ? 0 : g(il)(g(X).DECIMAL).maximumFractionDigits,
|
|
4445
4443
|
min: r.min,
|
|
4446
4444
|
max: r.max,
|
|
4447
4445
|
step: r.step,
|
|
@@ -4449,7 +4447,7 @@ const vn = {
|
|
|
4449
4447
|
placeholder: r.placeholder
|
|
4450
4448
|
}, {
|
|
4451
4449
|
default: R(() => [
|
|
4452
|
-
|
|
4450
|
+
Ds
|
|
4453
4451
|
]),
|
|
4454
4452
|
_: 1
|
|
4455
4453
|
}, 8, ["modelValue", "format", "precision", "min", "max", "step", "disabled", "placeholder"])) : (p(), b(Y, { key: 1 }, [
|
|
@@ -4463,15 +4461,15 @@ const vn = {
|
|
|
4463
4461
|
max: r.max,
|
|
4464
4462
|
step: r.step,
|
|
4465
4463
|
disabled: r.disabled
|
|
4466
|
-
}, null, 8,
|
|
4464
|
+
}, null, 8, Es), [
|
|
4467
4465
|
[
|
|
4468
|
-
|
|
4466
|
+
Vl,
|
|
4469
4467
|
e.value,
|
|
4470
4468
|
void 0,
|
|
4471
4469
|
{ number: !0 }
|
|
4472
4470
|
]
|
|
4473
4471
|
]),
|
|
4474
|
-
f("div",
|
|
4472
|
+
f("div", As, N(Number.isInteger(e.value) ? g(Oe)(e.value) : g(Se)(e.value, g(X).DECIMAL)), 1)
|
|
4475
4473
|
], 64))
|
|
4476
4474
|
]),
|
|
4477
4475
|
f("span", {
|
|
@@ -4480,8 +4478,8 @@ const vn = {
|
|
|
4480
4478
|
"cl-bg-grey-0": r.disabled
|
|
4481
4479
|
}]),
|
|
4482
4480
|
onClick: i[3] || (i[3] = (s) => e.value = r.disabled ? e.value : r.max)
|
|
4483
|
-
},
|
|
4484
|
-
f("div",
|
|
4481
|
+
}, N(Number.isInteger(r.max) ? g(Oe)(r.max) : g(Se)(r.max, g(X).DECIMAL)), 3),
|
|
4482
|
+
f("div", Vs, [
|
|
4485
4483
|
f("div", {
|
|
4486
4484
|
class: "cl-bg-white cl-border cl-border-transparent cl-cursor-pointer cl-float-right cl-p-1.5 cl-px-2 cl-rounded-full cl-shadow cl-text-xs hover:cl-border-grey-1",
|
|
4487
4485
|
onClick: i[4] || (i[4] = (s) => u.value = !u.value)
|
|
@@ -4490,10 +4488,10 @@ const vn = {
|
|
|
4490
4488
|
])
|
|
4491
4489
|
])
|
|
4492
4490
|
])
|
|
4493
|
-
], 16)) : (p(), b("div", Ns,
|
|
4491
|
+
], 16)) : (p(), b("div", Ns, N(g(n)("slider.invalidProps")), 1));
|
|
4494
4492
|
}
|
|
4495
|
-
}),
|
|
4496
|
-
function
|
|
4493
|
+
}), Rs = /* @__PURE__ */ he(Is, [["__scopeId", "data-v-5cb4ccea"]]);
|
|
4494
|
+
function ql(t) {
|
|
4497
4495
|
let o = !1;
|
|
4498
4496
|
switch (t) {
|
|
4499
4497
|
case "email":
|
|
@@ -4510,10 +4508,10 @@ function Tl(t) {
|
|
|
4510
4508
|
}
|
|
4511
4509
|
return o;
|
|
4512
4510
|
}
|
|
4513
|
-
function
|
|
4511
|
+
function Ms(t) {
|
|
4514
4512
|
return t === "number" || t === "range";
|
|
4515
4513
|
}
|
|
4516
|
-
function
|
|
4514
|
+
function Ol(t) {
|
|
4517
4515
|
let o = !1;
|
|
4518
4516
|
switch (t) {
|
|
4519
4517
|
case "date":
|
|
@@ -4531,7 +4529,7 @@ function ql(t) {
|
|
|
4531
4529
|
function ze(t) {
|
|
4532
4530
|
return t === "button" || t === "submit" || t === "reset";
|
|
4533
4531
|
}
|
|
4534
|
-
function
|
|
4532
|
+
function Us(t) {
|
|
4535
4533
|
let o;
|
|
4536
4534
|
switch (t) {
|
|
4537
4535
|
case "datetime":
|
|
@@ -4550,29 +4548,29 @@ function zs(t) {
|
|
|
4550
4548
|
}
|
|
4551
4549
|
return o;
|
|
4552
4550
|
}
|
|
4553
|
-
function
|
|
4551
|
+
function Sl(t, o) {
|
|
4554
4552
|
const l = t.target;
|
|
4555
|
-
return
|
|
4553
|
+
return Ms(o) ? l.valueAsNumber : ze(o) ? l.checked : l.value;
|
|
4556
4554
|
}
|
|
4557
|
-
const
|
|
4555
|
+
const zs = { class: "cl-flex cl-justify-between" }, Ls = { class: "cl-w-full" }, js = {
|
|
4558
4556
|
key: 0,
|
|
4559
4557
|
class: "cl-block cl-left-auto cl-relative cl-text-danger-default"
|
|
4560
|
-
},
|
|
4558
|
+
}, Bs = {
|
|
4561
4559
|
key: 1,
|
|
4562
4560
|
class: "cl-bg-danger-light cl-block cl-max-h-6 cl-mb-1 cl-ml-2 cl-px-2 cl-rounded-md cl-text-center cl-text-danger-default cl-text-xs"
|
|
4563
|
-
},
|
|
4561
|
+
}, Fs = {
|
|
4564
4562
|
key: 0,
|
|
4565
4563
|
class: "cl-relative"
|
|
4566
|
-
},
|
|
4564
|
+
}, Ps = ["type", "disabled", "min", "max", "minlength", "maxlength", "step", "placeholder", "name", "autocomplete"], Hs = { key: 0 }, Ws = { key: 1 }, Zs = {
|
|
4567
4565
|
key: 3,
|
|
4568
4566
|
class: "cl-max-h-[2.75rem] cl-pb-0.5"
|
|
4569
|
-
},
|
|
4567
|
+
}, Gs = {
|
|
4570
4568
|
key: 0,
|
|
4571
4569
|
class: "cl-bg-primary-lighter cl-px-2 cl-rounded-md cl-text-center cl-text-secondary-light cl-text-xs cl-w-auto cl-whitespace-pre-line"
|
|
4572
|
-
},
|
|
4570
|
+
}, Ks = {
|
|
4573
4571
|
key: 1,
|
|
4574
4572
|
class: "cl-bg-danger-light cl-px-2 cl-rounded-md cl-text-center cl-text-danger-default cl-text-xs cl-w-auto cl-whitespace-pre-line"
|
|
4575
|
-
},
|
|
4573
|
+
}, Qs = /* @__PURE__ */ F({
|
|
4576
4574
|
inheritAttrs: !1,
|
|
4577
4575
|
__name: "cl-ui-input",
|
|
4578
4576
|
props: {
|
|
@@ -4608,17 +4606,17 @@ const Ls = { class: "cl-flex cl-justify-between" }, js = { class: "cl-w-full" },
|
|
|
4608
4606
|
},
|
|
4609
4607
|
emits: ["update:model-value", "click", "focus", "input", "change", "validated"],
|
|
4610
4608
|
setup(t, { expose: o, emit: l }) {
|
|
4611
|
-
const e = t, n = l, a =
|
|
4609
|
+
const e = t, n = l, a = I(null), d = I(null), c = I(!1), u = I(!1), r = O(() => {
|
|
4612
4610
|
var j;
|
|
4613
4611
|
let w = e.isRequired;
|
|
4614
4612
|
return u.value && ((j = m.value) == null ? void 0 : j.toString().trim()) === "" && e.requiredText.trim() !== "" && (w = !1), !e.hideRequiredAsterisk && w;
|
|
4615
|
-
}), i = O(() => e.placeholderText.trim() !== "" ? e.placeholderText : e.label), s =
|
|
4613
|
+
}), i = O(() => e.placeholderText.trim() !== "" ? e.placeholderText : e.label), s = I(0), m = O({
|
|
4616
4614
|
get: () => e.modelValue,
|
|
4617
4615
|
set: (w) => v(w, !1)
|
|
4618
4616
|
}), h = O({
|
|
4619
4617
|
get: () => e.modelValue,
|
|
4620
4618
|
set: (w) => y(w)
|
|
4621
|
-
}), k = O(() => typeof e.min == "number" ? e.min.toString() : e.min), T = O(() => typeof e.max == "number" ? e.max.toString() : e.max), $ = O(() => typeof e.min == "number" || e.min === null ? e.min : parseFloat(e.min)), q = O(() => typeof e.max == "number" || e.max === null ? e.max : parseFloat(e.max)), U = O(() => e.messageWhenValid.trim() !== "" ? e.messageWhenValid : ""), S =
|
|
4619
|
+
}), k = O(() => typeof e.min == "number" ? e.min.toString() : e.min), T = O(() => typeof e.max == "number" ? e.max.toString() : e.max), $ = O(() => typeof e.min == "number" || e.min === null ? e.min : parseFloat(e.min)), q = O(() => typeof e.max == "number" || e.max === null ? e.max : parseFloat(e.max)), U = O(() => e.messageWhenValid.trim() !== "" ? e.messageWhenValid : ""), S = I(!0), B = I(!0), x = I([]), A = O(() => {
|
|
4622
4620
|
var w, j;
|
|
4623
4621
|
return [
|
|
4624
4622
|
...((w = x.value) == null ? void 0 : w.filter((G) => ((G == null ? void 0 : G.length) ?? 0) > 0)) ?? [],
|
|
@@ -4651,9 +4649,9 @@ const Ls = { class: "cl-flex cl-justify-between" }, js = { class: "cl-w-full" },
|
|
|
4651
4649
|
Te(e.customValidationFunction(e.label, w));
|
|
4652
4650
|
})
|
|
4653
4651
|
];
|
|
4654
|
-
return (typeof w == "string" || typeof w == "number") && (G.push(
|
|
4655
|
-
const _l = [...Te.map((We) => We.message)],
|
|
4656
|
-
B.value = !0,
|
|
4652
|
+
return (typeof w == "string" || typeof w == "number") && (G.push(_o(e.min, e.inputType, e.label, w, e.timeZone)), G.push(Jo(e.max, e.inputType, e.label, w, e.timeZone))), e.isRequired && G.push(Xo(e.label, w)), e.inputType === "email" && typeof w == "string" && G.push(ea(e.label, w)), Promise.all(G).then((Te) => {
|
|
4653
|
+
const _l = [...Te.map((We) => We.message)], gl = Te.some((We) => We.message.length > 0 && We.valid === !1) || e.externalErrors.length > 0;
|
|
4654
|
+
B.value = !0, gl ? (x.value = _l, n("validated", !1, w)) : (x.value = [], n("validated", !0, w)), S.value = !gl;
|
|
4657
4655
|
});
|
|
4658
4656
|
}
|
|
4659
4657
|
function _() {
|
|
@@ -4695,7 +4693,7 @@ const Ls = { class: "cl-flex cl-justify-between" }, js = { class: "cl-w-full" },
|
|
|
4695
4693
|
}
|
|
4696
4694
|
async function Ve(w, j) {
|
|
4697
4695
|
if (w) {
|
|
4698
|
-
const G = e.inputType === "currency" ? j ?? 0 :
|
|
4696
|
+
const G = e.inputType === "currency" ? j ?? 0 : Sl(w, e.inputType);
|
|
4699
4697
|
e.validateOn === "change" && await C(G), n("change", w, G);
|
|
4700
4698
|
}
|
|
4701
4699
|
}
|
|
@@ -4728,15 +4726,15 @@ const Ls = { class: "cl-flex cl-justify-between" }, js = { class: "cl-w-full" },
|
|
|
4728
4726
|
onMouseenter: j[13] || (j[13] = (G) => V(!0)),
|
|
4729
4727
|
onMouseleave: j[14] || (j[14] = (G) => V(!1))
|
|
4730
4728
|
}, [
|
|
4731
|
-
f("div",
|
|
4732
|
-
f("div",
|
|
4733
|
-
Q(f("label", { class: "cl-block cl-mb-1 cl-text-grey-4 cl-text-xs cl-tracking-widest" },
|
|
4734
|
-
[
|
|
4729
|
+
f("div", zs, [
|
|
4730
|
+
f("div", Ls, [
|
|
4731
|
+
Q(f("label", { class: "cl-block cl-mb-1 cl-text-grey-4 cl-text-xs cl-tracking-widest" }, N(w.label), 513), [
|
|
4732
|
+
[ee, w.showLabel && w.label !== ""]
|
|
4735
4733
|
])
|
|
4736
4734
|
]),
|
|
4737
|
-
r.value ? (p(), b("label",
|
|
4735
|
+
r.value ? (p(), b("label", js, " * ")) : w.isRequired && w.requiredText.length ? (p(), b("label", Bs, N(w.requiredText), 1)) : z("", !0)
|
|
4738
4736
|
]),
|
|
4739
|
-
w.inputType !== "range" && w.inputType !== "currency" && !g(
|
|
4737
|
+
w.inputType !== "range" && w.inputType !== "currency" && !g(Ol)(w.inputType) ? (p(), b("div", Fs, [
|
|
4740
4738
|
Q(f("input", te({
|
|
4741
4739
|
ref_key: "inputElement",
|
|
4742
4740
|
ref: a,
|
|
@@ -4757,51 +4755,51 @@ const Ls = { class: "cl-flex cl-justify-between" }, js = { class: "cl-w-full" },
|
|
|
4757
4755
|
disabled: w.disabled,
|
|
4758
4756
|
min: w.min ?? void 0,
|
|
4759
4757
|
max: w.max ?? void 0,
|
|
4760
|
-
minlength: w.min !== null && g(
|
|
4761
|
-
maxlength: w.max !== null && g(
|
|
4758
|
+
minlength: w.min !== null && g(ql)(w.inputType) ? w.min : void 0,
|
|
4759
|
+
maxlength: w.max !== null && g(ql)(w.inputType) ? w.max : void 0,
|
|
4762
4760
|
step: w.step,
|
|
4763
4761
|
placeholder: i.value,
|
|
4764
4762
|
name: w.group,
|
|
4765
4763
|
autocomplete: w.autocomplete,
|
|
4766
4764
|
onClick: j[1] || (j[1] = (G) => K(G)),
|
|
4767
4765
|
onFocus: j[2] || (j[2] = (G) => n("focus")),
|
|
4768
|
-
onBlur:
|
|
4766
|
+
onBlur: le(He, ["self"]),
|
|
4769
4767
|
onMousewheelPassive: ae,
|
|
4770
4768
|
onInput: j[3] || (j[3] = (G) => {
|
|
4771
|
-
n("input", G, g(
|
|
4769
|
+
n("input", G, g(Sl)(G, w.inputType));
|
|
4772
4770
|
}),
|
|
4773
4771
|
onChange: Ve
|
|
4774
|
-
}), null, 16,
|
|
4775
|
-
[
|
|
4772
|
+
}), null, 16, Ps), [
|
|
4773
|
+
[Dl, m.value]
|
|
4776
4774
|
]),
|
|
4777
4775
|
D(Ce, {
|
|
4778
4776
|
name: "fade",
|
|
4779
4777
|
duration: 300
|
|
4780
4778
|
}, {
|
|
4781
4779
|
default: R(() => [
|
|
4782
|
-
w.inputType === "number" && !w.disabled && w.showArrows ? Q((p(), b("div",
|
|
4780
|
+
w.inputType === "number" && !w.disabled && w.showArrows ? Q((p(), b("div", Hs, [
|
|
4783
4781
|
D(g(Z), {
|
|
4784
4782
|
icon: "ph:caret-up-bold",
|
|
4785
4783
|
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",
|
|
4786
4784
|
onClick: ve,
|
|
4787
|
-
onMousedown: j[4] || (j[4] =
|
|
4785
|
+
onMousedown: j[4] || (j[4] = le(() => {
|
|
4788
4786
|
}, ["prevent"]))
|
|
4789
4787
|
}),
|
|
4790
4788
|
D(g(Z), {
|
|
4791
4789
|
icon: "ph:caret-down-bold",
|
|
4792
4790
|
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",
|
|
4793
4791
|
onClick: ne,
|
|
4794
|
-
onMousedown: j[5] || (j[5] =
|
|
4792
|
+
onMousedown: j[5] || (j[5] = le(() => {
|
|
4795
4793
|
}, ["prevent"]))
|
|
4796
4794
|
})
|
|
4797
4795
|
], 512)), [
|
|
4798
|
-
[
|
|
4796
|
+
[ee, c.value]
|
|
4799
4797
|
]) : z("", !0)
|
|
4800
4798
|
]),
|
|
4801
4799
|
_: 1
|
|
4802
4800
|
})
|
|
4803
|
-
])) : w.inputType === "currency" ? (p(), b("div",
|
|
4804
|
-
D(
|
|
4801
|
+
])) : w.inputType === "currency" ? (p(), b("div", Ws, [
|
|
4802
|
+
D(Ts, te({
|
|
4805
4803
|
ref_key: "currencyInputRef",
|
|
4806
4804
|
ref: d,
|
|
4807
4805
|
modelValue: m.value,
|
|
@@ -4820,7 +4818,7 @@ const Ls = { class: "cl-flex cl-justify-between" }, js = { class: "cl-w-full" },
|
|
|
4820
4818
|
onFocus: j[8] || (j[8] = (G) => n("focus")),
|
|
4821
4819
|
onBlur: H
|
|
4822
4820
|
}), null, 16, ["modelValue", "disabled", "placeholder", "is-valid", "highlight-when-valid", "input-specific-classes", "group", "step", "currency-options"])
|
|
4823
|
-
])) : g(
|
|
4821
|
+
])) : g(Ol)(w.inputType) ? (p(), P(g($s), te({ key: 2 }, w.$attrs, {
|
|
4824
4822
|
ref_key: "inputElement",
|
|
4825
4823
|
ref: a,
|
|
4826
4824
|
date: h.value,
|
|
@@ -4832,7 +4830,7 @@ const Ls = { class: "cl-flex cl-justify-between" }, js = { class: "cl-w-full" },
|
|
|
4832
4830
|
}],
|
|
4833
4831
|
disabled: w.disabled,
|
|
4834
4832
|
required: w.isRequired,
|
|
4835
|
-
type: g(
|
|
4833
|
+
type: g(Us)(w.inputType),
|
|
4836
4834
|
"time-zone": w.timeZone,
|
|
4837
4835
|
min: k.value,
|
|
4838
4836
|
max: T.value,
|
|
@@ -4840,10 +4838,10 @@ const Ls = { class: "cl-flex cl-justify-between" }, js = { class: "cl-w-full" },
|
|
|
4840
4838
|
"initial-date": w.initialDate,
|
|
4841
4839
|
"quick-date-scope": w.quickDateScope,
|
|
4842
4840
|
"date-format-locale": w.dateFormatLocale,
|
|
4843
|
-
onBlur:
|
|
4841
|
+
onBlur: le(H, ["self"]),
|
|
4844
4842
|
onFocus: j[10] || (j[10] = (G) => n("focus"))
|
|
4845
|
-
}), null, 16, ["date", "class", "disabled", "required", "type", "time-zone", "min", "max", "placeholder", "initial-date", "quick-date-scope", "date-format-locale"])) : w.inputType === "range" && typeof m.value == "number" ? (p(), b("div",
|
|
4846
|
-
D(g(
|
|
4843
|
+
}), null, 16, ["date", "class", "disabled", "required", "type", "time-zone", "min", "max", "placeholder", "initial-date", "quick-date-scope", "date-format-locale"])) : w.inputType === "range" && typeof m.value == "number" ? (p(), b("div", Zs, [
|
|
4844
|
+
D(g(Rs), {
|
|
4847
4845
|
ref_key: "inputElement",
|
|
4848
4846
|
ref: a,
|
|
4849
4847
|
value: m.value,
|
|
@@ -4854,16 +4852,16 @@ const Ls = { class: "cl-flex cl-justify-between" }, js = { class: "cl-w-full" },
|
|
|
4854
4852
|
placeholder: i.value,
|
|
4855
4853
|
"enforce-step": !0,
|
|
4856
4854
|
disabled: w.disabled,
|
|
4857
|
-
onBlur:
|
|
4855
|
+
onBlur: le(H, ["self"]),
|
|
4858
4856
|
onFocus: j[12] || (j[12] = (G) => n("focus"))
|
|
4859
4857
|
}, null, 8, ["value", "min", "max", "step", "placeholder", "disabled"])
|
|
4860
4858
|
])) : z("", !0)
|
|
4861
4859
|
], 32),
|
|
4862
|
-
S.value && U.value && B.value ? (p(), b("div",
|
|
4863
|
-
!S.value && A.value.length > 0 && w.showValidationMessages && B.value ? (p(), b("div",
|
|
4860
|
+
S.value && U.value && B.value ? (p(), b("div", Gs, N(U.value), 1)) : z("", !0),
|
|
4861
|
+
!S.value && A.value.length > 0 && w.showValidationMessages && B.value ? (p(), b("div", Ks, N(A.value), 1)) : z("", !0)
|
|
4864
4862
|
], 16));
|
|
4865
4863
|
}
|
|
4866
|
-
}),
|
|
4864
|
+
}), xs = /* @__PURE__ */ he(Qs, [["__scopeId", "data-v-2373f106"]]), Ys = [
|
|
4867
4865
|
"button",
|
|
4868
4866
|
"checkbox",
|
|
4869
4867
|
"color",
|
|
@@ -4885,24 +4883,24 @@ const Ls = { class: "cl-flex cl-justify-between" }, js = { class: "cl-w-full" },
|
|
|
4885
4883
|
function ll(t) {
|
|
4886
4884
|
return /[a-z]{2}-[A-Z]{2}/gm.test(t.localeCode);
|
|
4887
4885
|
}
|
|
4888
|
-
function
|
|
4886
|
+
function _s(t) {
|
|
4889
4887
|
let o = Array.isArray(t);
|
|
4890
4888
|
if (o) {
|
|
4891
4889
|
for (const l of t)
|
|
4892
|
-
if (!
|
|
4890
|
+
if (!Js(l)) {
|
|
4893
4891
|
o = !1;
|
|
4894
4892
|
break;
|
|
4895
4893
|
}
|
|
4896
4894
|
}
|
|
4897
4895
|
return o;
|
|
4898
4896
|
}
|
|
4899
|
-
function
|
|
4897
|
+
function Js(t) {
|
|
4900
4898
|
return typeof t.name == "string" && typeof t.nativeName == "string" && typeof t.localeCode == "string";
|
|
4901
4899
|
}
|
|
4902
|
-
const
|
|
4900
|
+
const Xs = {
|
|
4903
4901
|
key: 0,
|
|
4904
4902
|
class: "cl-flex cl-relative cl-select-none cl-w-auto cl-z-30"
|
|
4905
|
-
},
|
|
4903
|
+
}, er = { class: "cl-absolute cl-bg-white cl-border cl-border-grey-0 cl-overflow-hidden cl-right-0 cl-rounded cl-shadow-xl cl-text-black cl-top-6 cl-z-30" }, lr = ["data-localename", "data-localecode", "onClick"], tr = { class: "cl-text-xs" }, or = /* @__PURE__ */ F({
|
|
4906
4904
|
__name: "cl-ui-language-switcher",
|
|
4907
4905
|
props: {
|
|
4908
4906
|
supportedLanguages: {},
|
|
@@ -4911,7 +4909,7 @@ const er = {
|
|
|
4911
4909
|
},
|
|
4912
4910
|
emits: ["language-select"],
|
|
4913
4911
|
setup(t, { emit: o }) {
|
|
4914
|
-
const l = t, e = o, { locale: n } = se(), a =
|
|
4912
|
+
const l = t, e = o, { locale: n } = se(), a = I(!1), d = O(() => l.supportedLanguages.find((i) => i.localeCode === n.value) ?? u(l.supportedLanguages, n.value) ?? l.defaultLangauge), c = O(() => l.supportedLanguages.filter((i) => ll(i)).sort((i, s) => i.nativeName > s.nativeName ? 1 : s.nativeName > i.nativeName ? -1 : 0));
|
|
4915
4913
|
function u(i, s) {
|
|
4916
4914
|
const m = s.split("-")[0];
|
|
4917
4915
|
return i.find((k) => k.localeCode.split("-")[0] === m) ?? null;
|
|
@@ -4921,7 +4919,7 @@ const er = {
|
|
|
4921
4919
|
}
|
|
4922
4920
|
return oe(() => l.disabled, (i) => {
|
|
4923
4921
|
i && (a.value = !1);
|
|
4924
|
-
}), (i, s) => d.value !== null && g(ll)(d.value) ? (p(), b("div",
|
|
4922
|
+
}), (i, s) => d.value !== null && g(ll)(d.value) ? (p(), b("div", Xs, [
|
|
4925
4923
|
f("div", {
|
|
4926
4924
|
class: L(["cl-flex cl-items-center", {
|
|
4927
4925
|
"cl-cursor-pointer": !i.disabled
|
|
@@ -4932,11 +4930,11 @@ const er = {
|
|
|
4932
4930
|
class: L(["cl-font-semibold cl-text-xs", {
|
|
4933
4931
|
"cl-opacity-50": i.disabled
|
|
4934
4932
|
}])
|
|
4935
|
-
},
|
|
4933
|
+
}, N(d.value.nativeName), 3)
|
|
4936
4934
|
], 2),
|
|
4937
4935
|
D(Ce, { name: "fade" }, {
|
|
4938
4936
|
default: R(() => [
|
|
4939
|
-
Q(f("div",
|
|
4937
|
+
Q(f("div", er, [
|
|
4940
4938
|
(p(!0), b(Y, null, re(c.value, (m, h) => (p(), b("div", {
|
|
4941
4939
|
key: h,
|
|
4942
4940
|
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",
|
|
@@ -4946,23 +4944,23 @@ const er = {
|
|
|
4946
4944
|
n.value = m.localeCode, r(), e("language-select", m.localeCode);
|
|
4947
4945
|
}
|
|
4948
4946
|
}, [
|
|
4949
|
-
f("span",
|
|
4950
|
-
], 8,
|
|
4947
|
+
f("span", tr, N(m.nativeName), 1)
|
|
4948
|
+
], 8, lr))), 128))
|
|
4951
4949
|
], 512), [
|
|
4952
|
-
[
|
|
4950
|
+
[ee, a.value]
|
|
4953
4951
|
])
|
|
4954
4952
|
]),
|
|
4955
4953
|
_: 1
|
|
4956
4954
|
})
|
|
4957
4955
|
])) : z("", !0);
|
|
4958
4956
|
}
|
|
4959
|
-
}),
|
|
4957
|
+
}), ar = { class: "cl-relative" }, nr = { class: "cl-h-full cl-z-0 xl:cl-h-screen" }, sr = { 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" }, rr = { class: "cl-col-span-10 lg:cl-col-span-3" }, ir = {
|
|
4960
4958
|
key: 0,
|
|
4961
4959
|
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"
|
|
4962
|
-
},
|
|
4960
|
+
}, cr = { class: "cl-col-span-3" }, ur = { class: "cl-relative cl-text-grey-4" }, dr = { class: "cl-w-full" }, pr = /* @__PURE__ */ f("span", null, null, -1), fr = {
|
|
4963
4961
|
key: 0,
|
|
4964
4962
|
class: "cl-bg-primary-lighter cl-mt-1 cl-rounded-md cl-text-center cl-text-secondary-default cl-text-xs cl-w-full"
|
|
4965
|
-
},
|
|
4963
|
+
}, mr = { class: "cl-col-span-3" }, gr = { class: "cl-relative cl-text-grey-4" }, vr = /* @__PURE__ */ f("span", null, null, -1), br = { class: "cl-col-span-10 cl-emphasis-danger cl-mt-10 cl-p-3 cl-rounded-md cl-text-sm md:cl-mt-3" }, hr = /* @__PURE__ */ F({
|
|
4966
4964
|
__name: "cl-ui-login",
|
|
4967
4965
|
props: {
|
|
4968
4966
|
errors: { default: () => [] },
|
|
@@ -4970,7 +4968,7 @@ const er = {
|
|
|
4970
4968
|
},
|
|
4971
4969
|
emits: ["login", "update:errors"],
|
|
4972
4970
|
setup(t, { emit: o }) {
|
|
4973
|
-
const l = o, { t: e } = se(), n =
|
|
4971
|
+
const l = o, { t: e } = se(), n = I(""), a = I(""), d = I("password"), c = O(() => rt(n.value));
|
|
4974
4972
|
function u() {
|
|
4975
4973
|
const i = {
|
|
4976
4974
|
username: n.value,
|
|
@@ -4984,15 +4982,15 @@ const er = {
|
|
|
4984
4982
|
return oe([
|
|
4985
4983
|
n,
|
|
4986
4984
|
a
|
|
4987
|
-
], r), (i, s) => (p(), b("div",
|
|
4988
|
-
f("div",
|
|
4985
|
+
], r), (i, s) => (p(), b("div", ar, [
|
|
4986
|
+
f("div", nr, [
|
|
4989
4987
|
M(i.$slots, "background")
|
|
4990
4988
|
]),
|
|
4991
|
-
f("form",
|
|
4992
|
-
f("div",
|
|
4989
|
+
f("form", sr, [
|
|
4990
|
+
f("div", rr, [
|
|
4993
4991
|
M(i.$slots, "logo")
|
|
4994
4992
|
]),
|
|
4995
|
-
i.$slots["language-switcher"] ? (p(), b("div",
|
|
4993
|
+
i.$slots["language-switcher"] ? (p(), b("div", ir, [
|
|
4996
4994
|
M(i.$slots, "language-switcher")
|
|
4997
4995
|
])) : z("", !0),
|
|
4998
4996
|
f("div", {
|
|
@@ -5001,14 +4999,14 @@ const er = {
|
|
|
5001
4999
|
"cl-col-span-6": i.$slots["language-switcher"]
|
|
5002
5000
|
}])
|
|
5003
5001
|
}, [
|
|
5004
|
-
f("div",
|
|
5005
|
-
f("div",
|
|
5002
|
+
f("div", cr, [
|
|
5003
|
+
f("div", ur, [
|
|
5006
5004
|
D(g(Z), {
|
|
5007
5005
|
class: "cl-absolute cl-left-3 cl-top-3 cl-z-10",
|
|
5008
5006
|
icon: "ph:user",
|
|
5009
5007
|
size: 18
|
|
5010
5008
|
}),
|
|
5011
|
-
f("div",
|
|
5009
|
+
f("div", dr, [
|
|
5012
5010
|
D(Ee, {
|
|
5013
5011
|
id: "cl-ui-login-usernameinput",
|
|
5014
5012
|
modelValue: n.value,
|
|
@@ -5024,16 +5022,16 @@ const er = {
|
|
|
5024
5022
|
autocomplete: "username"
|
|
5025
5023
|
}, {
|
|
5026
5024
|
default: R(() => [
|
|
5027
|
-
|
|
5025
|
+
pr
|
|
5028
5026
|
]),
|
|
5029
5027
|
_: 1
|
|
5030
5028
|
}, 8, ["modelValue", "class", "errors", "placeholder"]),
|
|
5031
|
-
c.value ? (p(), b("div",
|
|
5029
|
+
c.value ? (p(), b("div", fr, N(g(e)("login.validEmail")), 1)) : z("", !0)
|
|
5032
5030
|
])
|
|
5033
5031
|
])
|
|
5034
5032
|
]),
|
|
5035
|
-
f("div",
|
|
5036
|
-
f("div",
|
|
5033
|
+
f("div", mr, [
|
|
5034
|
+
f("div", gr, [
|
|
5037
5035
|
D(g(Z), {
|
|
5038
5036
|
class: "cl-absolute cl-left-3 cl-top-3 cl-z-10",
|
|
5039
5037
|
icon: "ph:lock",
|
|
@@ -5045,7 +5043,7 @@ const er = {
|
|
|
5045
5043
|
size: 18,
|
|
5046
5044
|
onClick: s[1] || (s[1] = (m) => d.value = "text")
|
|
5047
5045
|
}, null, 512), [
|
|
5048
|
-
[
|
|
5046
|
+
[ee, d.value === "password"]
|
|
5049
5047
|
]),
|
|
5050
5048
|
Q(D(g(Z), {
|
|
5051
5049
|
class: "cl-absolute cl-cursor-pointer cl-right-4 cl-top-3 cl-z-10",
|
|
@@ -5053,7 +5051,7 @@ const er = {
|
|
|
5053
5051
|
size: 18,
|
|
5054
5052
|
onClick: s[2] || (s[2] = (m) => d.value = "password")
|
|
5055
5053
|
}, null, 512), [
|
|
5056
|
-
[
|
|
5054
|
+
[ee, d.value === "text"]
|
|
5057
5055
|
]),
|
|
5058
5056
|
D(Ee, {
|
|
5059
5057
|
id: "cl-ui-login-passwordinput",
|
|
@@ -5067,7 +5065,7 @@ const er = {
|
|
|
5067
5065
|
autocomplete: "current-password"
|
|
5068
5066
|
}, {
|
|
5069
5067
|
default: R(() => [
|
|
5070
|
-
|
|
5068
|
+
vr
|
|
5071
5069
|
]),
|
|
5072
5070
|
_: 1
|
|
5073
5071
|
}, 8, ["modelValue", "class", "type", "placeholder"])
|
|
@@ -5084,10 +5082,10 @@ const er = {
|
|
|
5084
5082
|
colour: "blue",
|
|
5085
5083
|
loading: i.loading,
|
|
5086
5084
|
disabled: !c.value || a.value === "",
|
|
5087
|
-
onClick:
|
|
5085
|
+
onClick: le(u, ["prevent"])
|
|
5088
5086
|
}, {
|
|
5089
5087
|
default: R(() => [
|
|
5090
|
-
ue(
|
|
5088
|
+
ue(N(g(e)("login.login")), 1)
|
|
5091
5089
|
]),
|
|
5092
5090
|
_: 1
|
|
5093
5091
|
}, 8, ["loading", "disabled"])
|
|
@@ -5097,14 +5095,14 @@ const er = {
|
|
|
5097
5095
|
default: R(() => {
|
|
5098
5096
|
var m;
|
|
5099
5097
|
return [
|
|
5100
|
-
Q(f("span",
|
|
5098
|
+
Q(f("span", br, [
|
|
5101
5099
|
(p(!0), b(Y, null, re(i.errors, (h, k) => (p(), b("div", {
|
|
5102
5100
|
id: "cl-ui-login-errors",
|
|
5103
5101
|
key: k,
|
|
5104
5102
|
class: "cl-font-semibold"
|
|
5105
|
-
},
|
|
5103
|
+
}, N(h), 1))), 128))
|
|
5106
5104
|
], 512), [
|
|
5107
|
-
[
|
|
5105
|
+
[ee, (m = i.errors) == null ? void 0 : m.length]
|
|
5108
5106
|
])
|
|
5109
5107
|
];
|
|
5110
5108
|
}),
|
|
@@ -5113,26 +5111,26 @@ const er = {
|
|
|
5113
5111
|
])
|
|
5114
5112
|
]));
|
|
5115
5113
|
}
|
|
5116
|
-
}),
|
|
5114
|
+
}), yr = [
|
|
5117
5115
|
"x-small",
|
|
5118
5116
|
"small",
|
|
5119
5117
|
"medium",
|
|
5120
5118
|
"large"
|
|
5121
|
-
],
|
|
5119
|
+
], wr = [
|
|
5122
5120
|
"primary",
|
|
5123
5121
|
"secondary",
|
|
5124
5122
|
"white"
|
|
5125
|
-
],
|
|
5123
|
+
], kr = {
|
|
5126
5124
|
key: 0,
|
|
5127
5125
|
class: "cl-h-0 cl-w-0"
|
|
5128
|
-
},
|
|
5126
|
+
}, $r = { class: "cl-relative cl-w-full" }, Cr = /* @__PURE__ */ F({
|
|
5129
5127
|
__name: "cl-ui-navigation",
|
|
5130
5128
|
props: {
|
|
5131
5129
|
colour: { default: "default" }
|
|
5132
5130
|
},
|
|
5133
5131
|
emits: ["pinned-state", "open-state"],
|
|
5134
5132
|
setup(t, { expose: o, emit: l }) {
|
|
5135
|
-
const e = l, n =
|
|
5133
|
+
const e = l, n = I([]), a = O(() => n.value.filter(($) => $.open === !0).length > 0);
|
|
5136
5134
|
function d($) {
|
|
5137
5135
|
let q = n.value.find((U) => U.id === $);
|
|
5138
5136
|
return q || (q = {
|
|
@@ -5157,11 +5155,11 @@ const er = {
|
|
|
5157
5155
|
deep: !0
|
|
5158
5156
|
}
|
|
5159
5157
|
);
|
|
5160
|
-
const r =
|
|
5158
|
+
const r = I(!1), i = I(!1), { start: s } = Nl(() => i.value = !1, 100);
|
|
5161
5159
|
function m() {
|
|
5162
5160
|
r.value = !r.value, e("pinned-state", r.value), i.value = !0, s();
|
|
5163
5161
|
}
|
|
5164
|
-
const h =
|
|
5162
|
+
const h = I();
|
|
5165
5163
|
function k($) {
|
|
5166
5164
|
m(), typeof $ == "number" && c($);
|
|
5167
5165
|
}
|
|
@@ -5187,7 +5185,7 @@ const er = {
|
|
|
5187
5185
|
}, [
|
|
5188
5186
|
M($.$slots, "icon", te({ navcolour: $.colour }, { groupIsOpen: d, toggleOpen: c }), void 0, !0)
|
|
5189
5187
|
], 2),
|
|
5190
|
-
i.value ? (p(), b("div",
|
|
5188
|
+
i.value ? (p(), b("div", kr)) : z("", !0),
|
|
5191
5189
|
D(Ce, { name: "slide-right" }, {
|
|
5192
5190
|
default: R(() => [
|
|
5193
5191
|
Q(f("div", {
|
|
@@ -5196,7 +5194,7 @@ const er = {
|
|
|
5196
5194
|
"cl-absolute cl-left-20 cl-shadow-lg": !r.value
|
|
5197
5195
|
}])
|
|
5198
5196
|
}, [
|
|
5199
|
-
f("div",
|
|
5197
|
+
f("div", $r, [
|
|
5200
5198
|
f("span", {
|
|
5201
5199
|
class: "cl-absolute cl-cursor-pointer cl-hidden cl-right-0 cl-top-1.5 lg:cl-block",
|
|
5202
5200
|
onClick: q[0] || (q[0] = () => m())
|
|
@@ -5212,14 +5210,14 @@ const er = {
|
|
|
5212
5210
|
M($.$slots, "default", de(fe({ groupIsOpen: d })), void 0, !0)
|
|
5213
5211
|
])
|
|
5214
5212
|
], 2), [
|
|
5215
|
-
[
|
|
5213
|
+
[ee, a.value]
|
|
5216
5214
|
])
|
|
5217
5215
|
]),
|
|
5218
5216
|
_: 3
|
|
5219
5217
|
})
|
|
5220
5218
|
], 512));
|
|
5221
5219
|
}
|
|
5222
|
-
}),
|
|
5220
|
+
}), Tr = /* @__PURE__ */ he(Cr, [["__scopeId", "data-v-db3283cd"]]), qr = /* @__PURE__ */ F({
|
|
5223
5221
|
__name: "cl-ui-navigation-icon",
|
|
5224
5222
|
props: {
|
|
5225
5223
|
iconValue: {},
|
|
@@ -5242,10 +5240,10 @@ const er = {
|
|
|
5242
5240
|
}, null, 8, ["icon"])
|
|
5243
5241
|
], 2));
|
|
5244
5242
|
}
|
|
5245
|
-
}),
|
|
5243
|
+
}), Or = {
|
|
5246
5244
|
key: 0,
|
|
5247
5245
|
class: "cl-font-bold cl-leading-8 cl-mb-8 cl-pr-8 cl-select-none cl-text-lg cl-text-secondary-default"
|
|
5248
|
-
},
|
|
5246
|
+
}, Sr = { class: "cl-flex cl-flex-wrap cl-space-y-8 cl-text-sm cl-w-full" }, Dr = /* @__PURE__ */ F({
|
|
5249
5247
|
__name: "cl-ui-navigation-group",
|
|
5250
5248
|
props: {
|
|
5251
5249
|
open: { type: Boolean }
|
|
@@ -5256,21 +5254,21 @@ const er = {
|
|
|
5256
5254
|
"cl-hidden": !o.open
|
|
5257
5255
|
})
|
|
5258
5256
|
}, [
|
|
5259
|
-
o.$slots.title ? (p(), b("div",
|
|
5257
|
+
o.$slots.title ? (p(), b("div", Or, [
|
|
5260
5258
|
M(o.$slots, "title")
|
|
5261
5259
|
])) : z("", !0),
|
|
5262
|
-
f("div",
|
|
5260
|
+
f("div", Sr, [
|
|
5263
5261
|
M(o.$slots, "default")
|
|
5264
5262
|
])
|
|
5265
5263
|
], 2));
|
|
5266
5264
|
}
|
|
5267
|
-
}),
|
|
5265
|
+
}), Er = {}, Ar = { class: "cl-w-full" }, Vr = {
|
|
5268
5266
|
key: 0,
|
|
5269
5267
|
class: "cl-font-bold cl-mb-4 cl-select-none"
|
|
5270
5268
|
}, Nr = { class: "cl-flex cl-flex-wrap cl-space-y-2" };
|
|
5271
|
-
function
|
|
5272
|
-
return p(), b("div",
|
|
5273
|
-
t.$slots.title ? (p(), b("div",
|
|
5269
|
+
function Ir(t, o) {
|
|
5270
|
+
return p(), b("div", Ar, [
|
|
5271
|
+
t.$slots.title ? (p(), b("div", Vr, [
|
|
5274
5272
|
M(t.$slots, "title")
|
|
5275
5273
|
])) : z("", !0),
|
|
5276
5274
|
f("span", Nr, [
|
|
@@ -5278,13 +5276,13 @@ function Rr(t, o) {
|
|
|
5278
5276
|
])
|
|
5279
5277
|
]);
|
|
5280
5278
|
}
|
|
5281
|
-
const
|
|
5282
|
-
function
|
|
5283
|
-
return p(), b("div",
|
|
5279
|
+
const Rr = /* @__PURE__ */ he(Er, [["render", Ir]]), Mr = {}, Ur = { class: "cl-cursor-pointer cl-transition-colors cl-w-full hover:cl-text-primary-darker" };
|
|
5280
|
+
function zr(t, o) {
|
|
5281
|
+
return p(), b("div", Ur, [
|
|
5284
5282
|
M(t.$slots, "default")
|
|
5285
5283
|
]);
|
|
5286
5284
|
}
|
|
5287
|
-
const
|
|
5285
|
+
const Lr = /* @__PURE__ */ he(Mr, [["render", zr]]), jr = /* @__PURE__ */ F({
|
|
5288
5286
|
__name: "cl-ui-tab",
|
|
5289
5287
|
props: {
|
|
5290
5288
|
colour: { default: "default" },
|
|
@@ -5292,7 +5290,7 @@ const jr = /* @__PURE__ */ he(Ur, [["render", Lr]]), Br = /* @__PURE__ */ F({
|
|
|
5292
5290
|
},
|
|
5293
5291
|
emits: ["tab-opened"],
|
|
5294
5292
|
setup(t, { expose: o, emit: l }) {
|
|
5295
|
-
const e = t, n = l, a =
|
|
5293
|
+
const e = t, n = l, a = I([]), d = O(() => a.value.filter((q) => q.open).length > 0), c = I(), u = I(!1), r = I(!1), i = O(() => e.layout === "horizontal");
|
|
5296
5294
|
function s() {
|
|
5297
5295
|
if (c.value) {
|
|
5298
5296
|
const q = c.value.scrollWidth - c.value.clientWidth;
|
|
@@ -5379,11 +5377,11 @@ const jr = /* @__PURE__ */ he(Ur, [["render", Lr]]), Br = /* @__PURE__ */ F({
|
|
|
5379
5377
|
Q(f("div", null, [
|
|
5380
5378
|
M(q.$slots, "content", de(fe({ isTabOpen: k })))
|
|
5381
5379
|
], 512), [
|
|
5382
|
-
[
|
|
5380
|
+
[ee, d.value]
|
|
5383
5381
|
])
|
|
5384
5382
|
], 2));
|
|
5385
5383
|
}
|
|
5386
|
-
}),
|
|
5384
|
+
}), Br = ["inert"], Fr = /* @__PURE__ */ F({
|
|
5387
5385
|
__name: "cl-ui-tab-header",
|
|
5388
5386
|
props: {
|
|
5389
5387
|
open: { type: Boolean },
|
|
@@ -5409,37 +5407,37 @@ const jr = /* @__PURE__ */ he(Ur, [["render", Lr]]), Br = /* @__PURE__ */ F({
|
|
|
5409
5407
|
inert: e.disabled
|
|
5410
5408
|
}, [
|
|
5411
5409
|
M(e.$slots, "default", {}, () => [
|
|
5412
|
-
ue(
|
|
5410
|
+
ue(N(e.title), 1)
|
|
5413
5411
|
])
|
|
5414
|
-
], 10,
|
|
5412
|
+
], 10, Br));
|
|
5415
5413
|
}
|
|
5416
|
-
}),
|
|
5414
|
+
}), Pr = { key: 0 }, Hr = { class: "cl-font-bold cl-mb-4" }, Wr = /* @__PURE__ */ F({
|
|
5417
5415
|
__name: "cl-ui-tab-content",
|
|
5418
5416
|
props: {
|
|
5419
5417
|
open: { type: Boolean },
|
|
5420
5418
|
title: { default: "" }
|
|
5421
5419
|
},
|
|
5422
5420
|
setup(t) {
|
|
5423
|
-
return (o, l) => o.open ? (p(), b("div",
|
|
5421
|
+
return (o, l) => o.open ? (p(), b("div", Pr, [
|
|
5424
5422
|
M(o.$slots, "header", {}, () => [
|
|
5425
|
-
f("h4",
|
|
5423
|
+
f("h4", Hr, N(o.title), 1)
|
|
5426
5424
|
]),
|
|
5427
5425
|
M(o.$slots, "default")
|
|
5428
5426
|
])) : z("", !0);
|
|
5429
5427
|
}
|
|
5430
|
-
}),
|
|
5428
|
+
}), Zr = [
|
|
5431
5429
|
"default",
|
|
5432
5430
|
"primary",
|
|
5433
5431
|
"secondary",
|
|
5434
5432
|
"danger",
|
|
5435
5433
|
"blue"
|
|
5436
|
-
],
|
|
5434
|
+
], Gr = [
|
|
5437
5435
|
"left",
|
|
5438
5436
|
"right"
|
|
5439
|
-
],
|
|
5437
|
+
], Kr = [
|
|
5440
5438
|
"horizontal",
|
|
5441
5439
|
"vertical"
|
|
5442
|
-
],
|
|
5440
|
+
], Qr = { class: "cl-block cl-h-full cl-w-full" }, xr = ["multiple", "accept", "disabled"], Yr = ["multiple", "accept", "disabled"], _r = /* @__PURE__ */ F({
|
|
5443
5441
|
inheritAttrs: !1,
|
|
5444
5442
|
__name: "cl-ui-file-uploader",
|
|
5445
5443
|
props: {
|
|
@@ -5469,7 +5467,7 @@ const jr = /* @__PURE__ */ he(Ur, [["render", Lr]]), Br = /* @__PURE__ */ F({
|
|
|
5469
5467
|
"dragover",
|
|
5470
5468
|
"dragleave",
|
|
5471
5469
|
"drop"
|
|
5472
|
-
], c =
|
|
5470
|
+
], c = I(!1);
|
|
5473
5471
|
Fe(() => {
|
|
5474
5472
|
d.forEach((s) => {
|
|
5475
5473
|
document.body.addEventListener(s, (m) => m.preventDefault());
|
|
@@ -5479,11 +5477,11 @@ const jr = /* @__PURE__ */ he(Ur, [["render", Lr]]), Br = /* @__PURE__ */ F({
|
|
|
5479
5477
|
document.body.removeEventListener(s, (m) => m.preventDefault());
|
|
5480
5478
|
});
|
|
5481
5479
|
});
|
|
5482
|
-
const u =
|
|
5480
|
+
const u = I(null), r = I(null);
|
|
5483
5481
|
function i() {
|
|
5484
5482
|
u.value && (u.value.value = ""), r.value && (r.value.value = "");
|
|
5485
5483
|
}
|
|
5486
|
-
return (s, m) => (p(), b("div",
|
|
5484
|
+
return (s, m) => (p(), b("div", Qr, [
|
|
5487
5485
|
s.uploaderType === "dragDrop" ? (p(), b("label", te({ key: 0 }, s.$attrs, {
|
|
5488
5486
|
role: "button",
|
|
5489
5487
|
class: ["cl-bg-opacity-10 cl-border cl-border-dashed cl-duration-300 cl-ease-in-out cl-flex cl-justify-center cl-relative cl-rounded-lg", {
|
|
@@ -5492,7 +5490,7 @@ const jr = /* @__PURE__ */ he(Ur, [["render", Lr]]), Br = /* @__PURE__ */ F({
|
|
|
5492
5490
|
"cl-bg-opacity-40 hover:cl-bg-opacity-40": c.value === !0 && s.disabled === !1,
|
|
5493
5491
|
"cl-bg-opacity-10 hover:cl-bg-opacity-40": c.value === !1 && s.disabled === !1
|
|
5494
5492
|
}],
|
|
5495
|
-
onDrop:
|
|
5493
|
+
onDrop: le(n, ["prevent"]),
|
|
5496
5494
|
onDragenter: m[0] || (m[0] = (h) => c.value = !0),
|
|
5497
5495
|
onDragleave: m[1] || (m[1] = (h) => c.value = !1)
|
|
5498
5496
|
}), [
|
|
@@ -5505,7 +5503,7 @@ const jr = /* @__PURE__ */ he(Ur, [["render", Lr]]), Br = /* @__PURE__ */ F({
|
|
|
5505
5503
|
accept: s.acceptedFileTypes,
|
|
5506
5504
|
disabled: s.disabled,
|
|
5507
5505
|
onInput: a
|
|
5508
|
-
}, null, 40,
|
|
5506
|
+
}, null, 40, xr),
|
|
5509
5507
|
M(s.$slots, "default")
|
|
5510
5508
|
], 16)) : (p(), b("input", {
|
|
5511
5509
|
key: 1,
|
|
@@ -5520,10 +5518,10 @@ const jr = /* @__PURE__ */ he(Ur, [["render", Lr]]), Br = /* @__PURE__ */ F({
|
|
|
5520
5518
|
accept: s.acceptedFileTypes,
|
|
5521
5519
|
disabled: s.disabled,
|
|
5522
5520
|
onInput: a
|
|
5523
|
-
}, null, 42,
|
|
5521
|
+
}, null, 42, Yr))
|
|
5524
5522
|
]));
|
|
5525
5523
|
}
|
|
5526
|
-
}),
|
|
5524
|
+
}), Jr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5527
5525
|
__proto__: null,
|
|
5528
5526
|
FilterOperation: J,
|
|
5529
5527
|
allQuickDates: Zl,
|
|
@@ -5533,63 +5531,63 @@ const jr = /* @__PURE__ */ he(Ur, [["render", Lr]]), Br = /* @__PURE__ */ F({
|
|
|
5533
5531
|
clUiAccordion: wt,
|
|
5534
5532
|
clUiAccordionHeader: Dt,
|
|
5535
5533
|
clUiAccordionItem: Tt,
|
|
5536
|
-
clUiApp:
|
|
5534
|
+
clUiApp: Nt,
|
|
5537
5535
|
clUiButton: $e,
|
|
5538
5536
|
clUiCard: Bt,
|
|
5539
5537
|
clUiComboBox: $o,
|
|
5540
|
-
clUiFileUploader:
|
|
5541
|
-
clUiFooter:
|
|
5542
|
-
clUiGrid:
|
|
5543
|
-
clUiHeader:
|
|
5544
|
-
clUiHeaderMenu:
|
|
5545
|
-
clUiInput:
|
|
5538
|
+
clUiFileUploader: _r,
|
|
5539
|
+
clUiFooter: No,
|
|
5540
|
+
clUiGrid: ds,
|
|
5541
|
+
clUiHeader: fs,
|
|
5542
|
+
clUiHeaderMenu: ws,
|
|
5543
|
+
clUiInput: xs,
|
|
5546
5544
|
clUiInputCheckbox: sl,
|
|
5547
5545
|
clUiInputDateRange: Kl,
|
|
5548
|
-
clUiInputDateRangeInput:
|
|
5546
|
+
clUiInputDateRangeInput: ml,
|
|
5549
5547
|
clUiInputDateTime: xl,
|
|
5550
5548
|
clUiInputNumber: Pe,
|
|
5551
|
-
clUiInputRange:
|
|
5549
|
+
clUiInputRange: en,
|
|
5552
5550
|
clUiInputText: Ee,
|
|
5553
|
-
clUiLanguageSwitcher:
|
|
5551
|
+
clUiLanguageSwitcher: or,
|
|
5554
5552
|
clUiLoadingSpinner: _e,
|
|
5555
|
-
clUiLogin:
|
|
5556
|
-
clUiModal:
|
|
5557
|
-
clUiNavigation:
|
|
5558
|
-
clUiNavigationGroup:
|
|
5559
|
-
clUiNavigationIcon:
|
|
5560
|
-
clUiNavigationItem:
|
|
5561
|
-
clUiNavigationSection:
|
|
5562
|
-
clUiNotification:
|
|
5563
|
-
clUiTab:
|
|
5564
|
-
clUiTabContent:
|
|
5565
|
-
clUiTabHeader:
|
|
5553
|
+
clUiLogin: hr,
|
|
5554
|
+
clUiModal: Ul,
|
|
5555
|
+
clUiNavigation: Tr,
|
|
5556
|
+
clUiNavigationGroup: Dr,
|
|
5557
|
+
clUiNavigationIcon: qr,
|
|
5558
|
+
clUiNavigationItem: Lr,
|
|
5559
|
+
clUiNavigationSection: Rr,
|
|
5560
|
+
clUiNotification: Ml,
|
|
5561
|
+
clUiTab: jr,
|
|
5562
|
+
clUiTabContent: Wr,
|
|
5563
|
+
clUiTabHeader: Fr,
|
|
5566
5564
|
currentQuickDates: Le,
|
|
5567
5565
|
dateTimeCalendarTypes: Ql,
|
|
5568
|
-
filterMethodTypes:
|
|
5566
|
+
filterMethodTypes: un,
|
|
5569
5567
|
futureQuickDates: xe,
|
|
5570
|
-
gridColumnTypes:
|
|
5571
|
-
headerColour:
|
|
5572
|
-
inputTextTypes:
|
|
5573
|
-
inputTypes:
|
|
5568
|
+
gridColumnTypes: sn,
|
|
5569
|
+
headerColour: ks,
|
|
5570
|
+
inputTextTypes: Wa,
|
|
5571
|
+
inputTypes: Ys,
|
|
5574
5572
|
isComboBoxCreateRequest: To,
|
|
5575
5573
|
isComboBoxItem: Co,
|
|
5576
|
-
isFilterRequest:
|
|
5577
|
-
isFilterResponse:
|
|
5574
|
+
isFilterRequest: fn,
|
|
5575
|
+
isFilterResponse: mn,
|
|
5578
5576
|
isGridColumn: Yl,
|
|
5579
|
-
isGridColumnArray:
|
|
5580
|
-
isLanguageArray:
|
|
5577
|
+
isGridColumnArray: rn,
|
|
5578
|
+
isLanguageArray: _s,
|
|
5581
5579
|
isLanguageLocaleFormat: ll,
|
|
5582
|
-
modalColours:
|
|
5583
|
-
modalSizes:
|
|
5580
|
+
modalColours: wr,
|
|
5581
|
+
modalSizes: yr,
|
|
5584
5582
|
pastQuickDates: Qe,
|
|
5585
|
-
popoverPlacements:
|
|
5586
|
-
quickDateNames:
|
|
5587
|
-
stringFormats:
|
|
5588
|
-
tabColours:
|
|
5589
|
-
tabLayout:
|
|
5590
|
-
tabScroll:
|
|
5591
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
5592
|
-
t.use(be), t.component("Icon", Z), Object.entries(
|
|
5583
|
+
popoverPlacements: ln,
|
|
5584
|
+
quickDateNames: Fa,
|
|
5585
|
+
stringFormats: cn,
|
|
5586
|
+
tabColours: Zr,
|
|
5587
|
+
tabLayout: Kr,
|
|
5588
|
+
tabScroll: Gr
|
|
5589
|
+
}, Symbol.toStringTag, { value: "Module" })), mi = (t) => {
|
|
5590
|
+
t.use(be), t.component("Icon", Z), Object.entries(Jr).forEach(([
|
|
5593
5591
|
o,
|
|
5594
5592
|
l
|
|
5595
5593
|
]) => {
|
|
@@ -5597,10 +5595,10 @@ const jr = /* @__PURE__ */ he(Ur, [["render", Lr]]), Br = /* @__PURE__ */ F({
|
|
|
5597
5595
|
});
|
|
5598
5596
|
};
|
|
5599
5597
|
export {
|
|
5600
|
-
|
|
5598
|
+
fi as CitrusLimeUI,
|
|
5601
5599
|
ce as DateFormat,
|
|
5602
5600
|
J as FilterOperation,
|
|
5603
|
-
|
|
5601
|
+
X as NumberFormat,
|
|
5604
5602
|
Zl as allQuickDates,
|
|
5605
5603
|
zt as buttonColours,
|
|
5606
5604
|
Lt as buttonSizes,
|
|
@@ -5608,77 +5606,77 @@ export {
|
|
|
5608
5606
|
wt as clUiAccordion,
|
|
5609
5607
|
Dt as clUiAccordionHeader,
|
|
5610
5608
|
Tt as clUiAccordionItem,
|
|
5611
|
-
|
|
5609
|
+
Nt as clUiApp,
|
|
5612
5610
|
$e as clUiButton,
|
|
5613
5611
|
Bt as clUiCard,
|
|
5614
5612
|
$o as clUiComboBox,
|
|
5615
|
-
|
|
5616
|
-
|
|
5617
|
-
|
|
5618
|
-
|
|
5619
|
-
|
|
5620
|
-
|
|
5613
|
+
_r as clUiFileUploader,
|
|
5614
|
+
No as clUiFooter,
|
|
5615
|
+
ds as clUiGrid,
|
|
5616
|
+
fs as clUiHeader,
|
|
5617
|
+
ws as clUiHeaderMenu,
|
|
5618
|
+
xs as clUiInput,
|
|
5621
5619
|
sl as clUiInputCheckbox,
|
|
5622
5620
|
Kl as clUiInputDateRange,
|
|
5623
|
-
|
|
5621
|
+
ml as clUiInputDateRangeInput,
|
|
5624
5622
|
xl as clUiInputDateTime,
|
|
5625
5623
|
Pe as clUiInputNumber,
|
|
5626
|
-
|
|
5624
|
+
en as clUiInputRange,
|
|
5627
5625
|
Ee as clUiInputText,
|
|
5628
|
-
|
|
5626
|
+
or as clUiLanguageSwitcher,
|
|
5629
5627
|
_e as clUiLoadingSpinner,
|
|
5630
|
-
|
|
5631
|
-
|
|
5632
|
-
|
|
5633
|
-
|
|
5634
|
-
|
|
5635
|
-
|
|
5636
|
-
|
|
5637
|
-
|
|
5638
|
-
|
|
5639
|
-
|
|
5640
|
-
|
|
5628
|
+
hr as clUiLogin,
|
|
5629
|
+
Ul as clUiModal,
|
|
5630
|
+
Tr as clUiNavigation,
|
|
5631
|
+
Dr as clUiNavigationGroup,
|
|
5632
|
+
qr as clUiNavigationIcon,
|
|
5633
|
+
Lr as clUiNavigationItem,
|
|
5634
|
+
Rr as clUiNavigationSection,
|
|
5635
|
+
Ml as clUiNotification,
|
|
5636
|
+
jr as clUiTab,
|
|
5637
|
+
Wr as clUiTabContent,
|
|
5638
|
+
Fr as clUiTabHeader,
|
|
5641
5639
|
Le as currentQuickDates,
|
|
5642
5640
|
Ql as dateTimeCalendarTypes,
|
|
5643
5641
|
Zo as datetimeFormats,
|
|
5644
|
-
|
|
5645
|
-
|
|
5642
|
+
mi as default,
|
|
5643
|
+
un as filterMethodTypes,
|
|
5646
5644
|
Se as formatNumber,
|
|
5647
5645
|
el as formatNumberAsDecimal,
|
|
5648
5646
|
Oe as formatNumberAsInteger,
|
|
5649
5647
|
xe as futureQuickDates,
|
|
5650
5648
|
il as getMergedFormatOptions,
|
|
5651
|
-
|
|
5652
|
-
|
|
5649
|
+
sn as gridColumnTypes,
|
|
5650
|
+
ks as headerColour,
|
|
5653
5651
|
be as i18n,
|
|
5654
|
-
|
|
5655
|
-
|
|
5652
|
+
Wa as inputTextTypes,
|
|
5653
|
+
Ys as inputTypes,
|
|
5656
5654
|
To as isComboBoxCreateRequest,
|
|
5657
5655
|
Co as isComboBoxItem,
|
|
5658
|
-
|
|
5659
|
-
|
|
5656
|
+
fn as isFilterRequest,
|
|
5657
|
+
mn as isFilterResponse,
|
|
5660
5658
|
Yl as isGridColumn,
|
|
5661
|
-
|
|
5662
|
-
|
|
5659
|
+
rn as isGridColumnArray,
|
|
5660
|
+
_s as isLanguageArray,
|
|
5663
5661
|
ll as isLanguageLocaleFormat,
|
|
5664
5662
|
Ho as messages,
|
|
5665
|
-
|
|
5666
|
-
|
|
5663
|
+
wr as modalColours,
|
|
5664
|
+
yr as modalSizes,
|
|
5667
5665
|
Wo as numberFormats,
|
|
5668
5666
|
Qe as pastQuickDates,
|
|
5669
|
-
|
|
5670
|
-
|
|
5671
|
-
|
|
5672
|
-
|
|
5673
|
-
|
|
5674
|
-
|
|
5675
|
-
|
|
5676
|
-
|
|
5677
|
-
|
|
5678
|
-
|
|
5679
|
-
|
|
5680
|
-
|
|
5681
|
-
|
|
5682
|
-
|
|
5683
|
-
|
|
5667
|
+
ln as popoverPlacements,
|
|
5668
|
+
Fa as quickDateNames,
|
|
5669
|
+
pi as setCurrentLocale,
|
|
5670
|
+
di as setLocaleDateTimeFormats,
|
|
5671
|
+
ci as setLocaleMessages,
|
|
5672
|
+
ui as setLocaleNumberFormats,
|
|
5673
|
+
hl as showNotification,
|
|
5674
|
+
cn as stringFormats,
|
|
5675
|
+
Zr as tabColours,
|
|
5676
|
+
Kr as tabLayout,
|
|
5677
|
+
Gr as tabScroll,
|
|
5678
|
+
Ll as unformatNumber,
|
|
5679
|
+
ea as validateEmail,
|
|
5680
|
+
Jo as validateMaxValue,
|
|
5681
|
+
_o as validateMinValue
|
|
5684
5682
|
};
|