@citruslime/ui 3.0.0-beta.11 → 3.0.0-beta.13
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 +198 -197
- 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 N, 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 X, createBlock as P, Teleport as ol, renderList as re, toDisplayString as I, createCommentVNode as z, computed as O, mergeModels as ge, useModel as Ae, createSlots as Ie, vModelDynamic as Dl, watch as oe, toRefs as _l, withKeys as me, onMounted as Fe, onUnmounted as Ye, withModifiers as ee, nextTick as Me, resolveComponent as De, createTextVNode as ue, inject as al, vModelCheckbox as Jl, toValue as vl, watchEffect as Xl, useCssVars as El, vModelText as Al, useAttrs as Vl, toHandlers as et, pushScopeId as lt, popScopeId as tt, provide as bl, normalizeStyle as ot } from "vue";
|
|
3
3
|
import { generateStringId as at, highlightText as nt, validateEmail as st } from "@citruslime/utils";
|
|
4
|
-
import { unrefElement as rt, tryOnScopeDispose as it, onClickOutside as nl, useTimeoutFn as
|
|
4
|
+
import { unrefElement as rt, tryOnScopeDispose as it, onClickOutside as nl, useTimeoutFn as Il, useMouseInElement as ct, useFocusWithin as ut, useThrottle as dt, useMediaQuery as Nl, useElementBounding as pt, useDebounceFn as ft, useWindowSize as mt } from "@vueuse/core";
|
|
5
5
|
import { useI18n as se, createI18n as gt } from "vue-i18n";
|
|
6
6
|
import { createFocusTrap as vt } 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 Ne } from "v-calendar";
|
|
10
10
|
import { useCurrencyInput as bt } from "vue-currency-input";
|
|
11
11
|
const ht = { class: "cl-overflow-hidden" }, yt = /* @__PURE__ */ F({
|
|
12
12
|
__name: "cl-ui-accordion",
|
|
@@ -14,7 +14,7 @@ const ht = { class: "cl-overflow-hidden" }, yt = /* @__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 = N([]);
|
|
18
18
|
function e(a) {
|
|
19
19
|
let d = l.value.find((c) => c.id === a);
|
|
20
20
|
return d || (d = {
|
|
@@ -69,7 +69,7 @@ const ht = { class: "cl-overflow-hidden" }, yt = /* @__PURE__ */ F({
|
|
|
69
69
|
f("div", $t, [
|
|
70
70
|
D(Ce, { name: "grow-down" }, {
|
|
71
71
|
default: R(() => [
|
|
72
|
-
Q(f("div",
|
|
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
|
[X, a.open]
|
|
@@ -91,7 +91,7 @@ function Ot(t, o) {
|
|
|
91
91
|
M(t.$slots, "default")
|
|
92
92
|
]);
|
|
93
93
|
}
|
|
94
|
-
const St = /* @__PURE__ */ he(Tt, [["render", Ot]]), Ke =
|
|
94
|
+
const St = /* @__PURE__ */ he(Tt, [["render", Ot]]), Ke = N([]);
|
|
95
95
|
function hl(t) {
|
|
96
96
|
const o = {
|
|
97
97
|
id: at(),
|
|
@@ -121,7 +121,7 @@ const Dt = ["onClick"], Et = { class: "cl-flex-1 cl-select-none cl-text-ellipsis
|
|
|
121
121
|
"cl-bottom-5 cl-right-5": o.position === "bottom-right"
|
|
122
122
|
}])
|
|
123
123
|
}, [
|
|
124
|
-
(p(!0), b(Y, null, re(g(Ke), (e, n) => (p(), b("div",
|
|
124
|
+
(p(!0), b(Y, null, re(g(Ke), (e, n) => (p(), b("div", te(o.$attrs, {
|
|
125
125
|
key: n,
|
|
126
126
|
class: ["cl-break-words cl-cursor-pointer cl-flex cl-font-semibold cl-group cl-mb-2 cl-overflow-hidden cl-p-4 cl-rounded cl-shadow-lg cl-text-sm", {
|
|
127
127
|
"cl-bg-white": e.colour === "default",
|
|
@@ -132,7 +132,7 @@ const Dt = ["onClick"], Et = { class: "cl-flex-1 cl-select-none cl-text-ellipsis
|
|
|
132
132
|
}],
|
|
133
133
|
onClick: (a) => g(Rl)(e)
|
|
134
134
|
}), [
|
|
135
|
-
f("span", Et,
|
|
135
|
+
f("span", Et, I(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",
|
|
@@ -176,11 +176,11 @@ const Dt = ["onClick"], Et = { class: "cl-flex-1 cl-select-none cl-text-ellipsis
|
|
|
176
176
|
])
|
|
177
177
|
], 64));
|
|
178
178
|
}
|
|
179
|
-
}),
|
|
179
|
+
}), It = {}, Nt = { class: "loading-spinner" };
|
|
180
180
|
function Rt(t, o) {
|
|
181
|
-
return p(), b("div",
|
|
181
|
+
return p(), b("div", Nt);
|
|
182
182
|
}
|
|
183
|
-
const _e = /* @__PURE__ */ he(
|
|
183
|
+
const _e = /* @__PURE__ */ he(It, [["render", Rt], ["__scopeId", "data-v-a21dc5d2"]]), Mt = ["disabled"], $e = /* @__PURE__ */ F({
|
|
184
184
|
inheritAttrs: !1,
|
|
185
185
|
__name: "cl-ui-button",
|
|
186
186
|
props: {
|
|
@@ -190,7 +190,7 @@ const _e = /* @__PURE__ */ he(Nt, [["render", Rt], ["__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 = N(null);
|
|
194
194
|
return o({
|
|
195
195
|
focus() {
|
|
196
196
|
l.value && l.value.focus();
|
|
@@ -199,7 +199,7 @@ const _e = /* @__PURE__ */ he(Nt, [["render", Rt], ["__scopeId", "data-v-a21dc5d
|
|
|
199
199
|
Q(D(_e, { class: "relative" }, null, 512), [
|
|
200
200
|
[X, e.loading]
|
|
201
201
|
]),
|
|
202
|
-
Q(f("button",
|
|
202
|
+
Q(f("button", te(e.$attrs, {
|
|
203
203
|
ref_key: "buttonRef",
|
|
204
204
|
ref: l,
|
|
205
205
|
class: ["cl-align-middle cl-border cl-font-semibold cl-inline-block cl-rounded cl-select-none cl-shadow cl-text-center cl-transition-colors", {
|
|
@@ -319,7 +319,7 @@ const _e = /* @__PURE__ */ he(Nt, [["render", Rt], ["__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
|
+
}, I(a), 1))), 128))
|
|
323
323
|
])
|
|
324
324
|
])) : z("", !0)
|
|
325
325
|
]));
|
|
@@ -340,7 +340,7 @@ const _e = /* @__PURE__ */ he(Nt, [["render", Rt], ["__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 = N();
|
|
344
344
|
return o({
|
|
345
345
|
focus: () => {
|
|
346
346
|
var d;
|
|
@@ -353,9 +353,9 @@ const _e = /* @__PURE__ */ he(Nt, [["render", Rt], ["__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
|
+
}, Ie({
|
|
357
357
|
default: R(() => [
|
|
358
|
-
Q(f("input",
|
|
358
|
+
Q(f("input", te(d.$attrs, {
|
|
359
359
|
ref_key: "inputRef",
|
|
360
360
|
ref: a,
|
|
361
361
|
"onUpdate:modelValue": c[0] || (c[0] = (u) => e.value = u),
|
|
@@ -385,7 +385,7 @@ const _e = /* @__PURE__ */ he(Nt, [["render", Rt], ["__scopeId", "data-v-a21dc5d
|
|
|
385
385
|
});
|
|
386
386
|
function Yt(t, o = {}) {
|
|
387
387
|
let l;
|
|
388
|
-
const { immediate: e, ...n } = o, a =
|
|
388
|
+
const { immediate: e, ...n } = o, a = N(!1), d = N(!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);
|
|
@@ -426,7 +426,7 @@ const _t = /* @__PURE__ */ f("div", { tabindex: "0" }, null, -1), Jt = {
|
|
|
426
426
|
trapFocus: { type: Boolean, default: !1 }
|
|
427
427
|
},
|
|
428
428
|
setup(t) {
|
|
429
|
-
const o = t, { trapFocus: l } = _l(o), e =
|
|
429
|
+
const o = t, { trapFocus: l } = _l(o), e = N(!1), n = N(), a = Yt(n);
|
|
430
430
|
oe([
|
|
431
431
|
l,
|
|
432
432
|
e
|
|
@@ -458,7 +458,7 @@ const _t = /* @__PURE__ */ f("div", { tabindex: "0" }, null, -1), Jt = {
|
|
|
458
458
|
class: "cl-align-items-center cl-bg-black cl-bg-opacity-40 cl-bottom-0 cl-fixed cl-flex cl-h-full cl-justify-center cl-left-0 cl-right-0 cl-top-0 cl-w-full cl-z-40 xl:cl-h-screen"
|
|
459
459
|
}, [
|
|
460
460
|
_t,
|
|
461
|
-
f("div",
|
|
461
|
+
f("div", te(r.$attrs, {
|
|
462
462
|
class: ["cl-bg-white cl-flex cl-flex-wrap cl-max-h-[calc(100%-8rem)] cl-mx-0 cl-my-auto cl-overflow-y-auto cl-overscroll-y-none cl-relative cl-rounded-lg cl-shadow-lg xl:cl-max-h-[calc(100vh-8rem)]", {
|
|
463
463
|
"lg:cl-w-2/12 cl-w-10/12": r.size === "x-small",
|
|
464
464
|
"cl-w-6/12": r.size === "small",
|
|
@@ -516,13 +516,13 @@ const _t = /* @__PURE__ */ f("div", { tabindex: "0" }, null, -1), Jt = {
|
|
|
516
516
|
emits: ["clear-object"],
|
|
517
517
|
setup(t) {
|
|
518
518
|
return (o, l) => (p(), b("div", eo, [
|
|
519
|
-
o.additionalText !== "" ? (p(), b("div", lo,
|
|
519
|
+
o.additionalText !== "" ? (p(), b("div", lo, I(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
|
+
}, I(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"))
|
|
@@ -556,7 +556,7 @@ const _t = /* @__PURE__ */ f("div", { tabindex: "0" }, null, -1), Jt = {
|
|
|
556
556
|
}), a = O(() => {
|
|
557
557
|
var i;
|
|
558
558
|
return ((i = l.option) == null ? void 0 : i.parentName) ?? "";
|
|
559
|
-
}), d =
|
|
559
|
+
}), d = N(!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,13 +579,13 @@ const _t = /* @__PURE__ */ f("div", { tabindex: "0" }, null, -1), Jt = {
|
|
|
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", to,
|
|
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", to, I(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
|
+
}, I(n.value), 3),
|
|
589
589
|
Q(f("div", oo, [
|
|
590
590
|
D(g(Z), {
|
|
591
591
|
class: "cl-transition-colors",
|
|
@@ -616,7 +616,7 @@ const _t = /* @__PURE__ */ f("div", { tabindex: "0" }, null, -1), Jt = {
|
|
|
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 = N(""), d = N(!1), c = N(-1), u = O(() => d.value ? -1 : 0), r = N();
|
|
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
|
}
|
|
@@ -690,6 +690,7 @@ const _t = /* @__PURE__ */ f("div", { tabindex: "0" }, null, -1), Jt = {
|
|
|
690
690
|
f("div", so, [
|
|
691
691
|
f("div", ro, [
|
|
692
692
|
D(Ee, {
|
|
693
|
+
id: `cl-ui-combo-box-search-input-${A.objectType}`,
|
|
693
694
|
modelValue: a.value,
|
|
694
695
|
"onUpdate:modelValue": E[0] || (E[0] = (v) => a.value = v),
|
|
695
696
|
class: "cl-box-border cl-font-light cl-mb-2 cl-p-2 cl-placeholder-grey-3 cl-text-sm",
|
|
@@ -702,7 +703,7 @@ const _t = /* @__PURE__ */ f("div", { tabindex: "0" }, null, -1), Jt = {
|
|
|
702
703
|
io
|
|
703
704
|
]),
|
|
704
705
|
_: 1
|
|
705
|
-
}, 8, ["modelValue", "placeholder"])
|
|
706
|
+
}, 8, ["id", "modelValue", "placeholder"])
|
|
706
707
|
])
|
|
707
708
|
]),
|
|
708
709
|
A.currentObjectName !== "" ? (p(), P(Ze, {
|
|
@@ -772,10 +773,10 @@ const _t = /* @__PURE__ */ f("div", { tabindex: "0" }, null, -1), Jt = {
|
|
|
772
773
|
},
|
|
773
774
|
emits: ["focus", "search", "search-parent", "create-object", "create-parent-object", "update:current-object"],
|
|
774
775
|
setup(t, { expose: o, emit: l }) {
|
|
775
|
-
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 = N(!1), r = O({
|
|
776
777
|
get: () => e.currentObject,
|
|
777
778
|
set: (V) => n("update:current-object", V)
|
|
778
|
-
}), i =
|
|
779
|
+
}), i = N(null), s = O(() => K()), m = N(""), h = N(""), k = N(), T = N(!0), $ = N(!1);
|
|
779
780
|
function q(V) {
|
|
780
781
|
var ie;
|
|
781
782
|
const H = ((ie = ne.value) == null ? void 0 : ie.getBoundingClientRect().top) || 0;
|
|
@@ -863,7 +864,7 @@ const _t = /* @__PURE__ */ f("div", { tabindex: "0" }, null, -1), Jt = {
|
|
|
863
864
|
m.value === "" && (V = !1), e.objectParentType !== "" && i.value === null && (V = !1), T.value = V;
|
|
864
865
|
}
|
|
865
866
|
oe(() => e.objectCreatedResponse, () => v()), oe(() => e.parentObjectCreatedResponse, () => C()), oe(() => m.value, () => ve()), oe(() => i.value, () => ve());
|
|
866
|
-
const ne =
|
|
867
|
+
const ne = N();
|
|
867
868
|
return nl(ne, () => u.value ? q(!1) : ""), o({
|
|
868
869
|
focus() {
|
|
869
870
|
q(), n("focus");
|
|
@@ -878,7 +879,7 @@ const _t = /* @__PURE__ */ f("div", { tabindex: "0" }, null, -1), Jt = {
|
|
|
878
879
|
f("div", po, [
|
|
879
880
|
f("div", fo, [
|
|
880
881
|
D(Ee, {
|
|
881
|
-
id: `cl-ui-combo-box-
|
|
882
|
+
id: `cl-ui-combo-box-input-${V.objectType}`,
|
|
882
883
|
modelValue: s.value,
|
|
883
884
|
"onUpdate:modelValue": H[0] || (H[0] = (ae) => s.value = ae),
|
|
884
885
|
class: L(["cl-box-border cl-font-light cl-mb-0 cl-p-2 cl-placeholder-grey-3 cl-rounded-r-none cl-text-sm", {
|
|
@@ -898,7 +899,7 @@ const _t = /* @__PURE__ */ f("div", { tabindex: "0" }, null, -1), Jt = {
|
|
|
898
899
|
]),
|
|
899
900
|
Q(f("div", go, [
|
|
900
901
|
f("div", vo, [
|
|
901
|
-
ue(
|
|
902
|
+
ue(I(g(c)("comboBox.required")) + " ", 1),
|
|
902
903
|
D(g(Z), {
|
|
903
904
|
class: "cl-ml-1 cl-mt-1",
|
|
904
905
|
icon: "ph:warning"
|
|
@@ -937,7 +938,7 @@ const _t = /* @__PURE__ */ f("div", { tabindex: "0" }, null, -1), Jt = {
|
|
|
937
938
|
]),
|
|
938
939
|
D(Ul, { size: "small" }, {
|
|
939
940
|
title: R(() => [
|
|
940
|
-
ue(
|
|
941
|
+
ue(I(g(c)("comboBox.createTitle", { object: V.objectType })), 1)
|
|
941
942
|
]),
|
|
942
943
|
trigger: R(({ open: ae }) => [
|
|
943
944
|
Q(D(uo, {
|
|
@@ -972,7 +973,7 @@ const _t = /* @__PURE__ */ f("div", { tabindex: "0" }, null, -1), Jt = {
|
|
|
972
973
|
onClick: ae
|
|
973
974
|
}, {
|
|
974
975
|
default: R(() => [
|
|
975
|
-
ue(
|
|
976
|
+
ue(I(g(c)("comboBox.cancel")), 1)
|
|
976
977
|
]),
|
|
977
978
|
_: 2
|
|
978
979
|
}, 1032, ["onClick"]),
|
|
@@ -985,7 +986,7 @@ const _t = /* @__PURE__ */ f("div", { tabindex: "0" }, null, -1), Jt = {
|
|
|
985
986
|
}
|
|
986
987
|
}, {
|
|
987
988
|
default: R(() => [
|
|
988
|
-
ue(
|
|
989
|
+
ue(I(g(c)("comboBox.create")), 1)
|
|
989
990
|
]),
|
|
990
991
|
_: 2
|
|
991
992
|
}, 1032, ["disabled", "onClick"])
|
|
@@ -1014,7 +1015,7 @@ const _t = /* @__PURE__ */ f("div", { tabindex: "0" }, null, -1), Jt = {
|
|
|
1014
1015
|
class: "cl-box-border cl-font-light cl-mb-2 cl-p-2 cl-placeholder-grey-3 cl-text-sm"
|
|
1015
1016
|
}, {
|
|
1016
1017
|
default: R(() => [
|
|
1017
|
-
ue(
|
|
1018
|
+
ue(I(g(c)("comboBox.createProperty")), 1)
|
|
1018
1019
|
]),
|
|
1019
1020
|
_: 1
|
|
1020
1021
|
}, 8, ["modelValue"])
|
|
@@ -1063,13 +1064,13 @@ function sl(t) {
|
|
|
1063
1064
|
const o = t.type !== "slot" || t.slotType !== void 0 && t.field !== void 0, l = t.filterable ?? !0;
|
|
1064
1065
|
return o && l;
|
|
1065
1066
|
}
|
|
1066
|
-
function
|
|
1067
|
+
function Io(t) {
|
|
1067
1068
|
return t.some((o) => Ge(o));
|
|
1068
1069
|
}
|
|
1069
1070
|
function wl(t) {
|
|
1070
1071
|
return t.some((o) => sl(o));
|
|
1071
1072
|
}
|
|
1072
|
-
const
|
|
1073
|
+
const No = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Ro = { class: "cl-gap-1 cl-grid cl-grid-cols-2 cl-justify-end cl-mb-2 lg:cl-flex lg:cl-gap-2" }, Mo = { class: "cl-basis-0 cl-col-span-2 cl-flex-grow" }, Uo = /* @__PURE__ */ f("hr", { class: "cl-block cl-border-grey-3 cl-col-span-2 cl-my-4 lg:cl-hidden" }, null, -1), zo = {
|
|
1073
1074
|
key: 1,
|
|
1074
1075
|
class: "cl-hidden lg:cl-block"
|
|
1075
1076
|
}, Lo = { class: "cl-block lg:cl-hidden" }, jo = /* @__PURE__ */ F({
|
|
@@ -1086,8 +1087,8 @@ const Io = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Ro = { class: "cl-gap-1
|
|
|
1086
1087
|
setup(t) {
|
|
1087
1088
|
const o = t, { t: l } = se(), e = O(() => o.request.filters.some((a) => a.filterValue !== "")), n = al("cl-ui-grid-id") ?? "cl-ui-grid-filter";
|
|
1088
1089
|
return (a, d) => (p(), b(Y, null, [
|
|
1089
|
-
f("div",
|
|
1090
|
-
f("strong", null,
|
|
1090
|
+
f("div", No, [
|
|
1091
|
+
f("strong", null, I(g(l)("grid.gridTools")), 1)
|
|
1091
1092
|
]),
|
|
1092
1093
|
f("div", Ro, [
|
|
1093
1094
|
f("div", Mo, [
|
|
@@ -1106,9 +1107,9 @@ const Io = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Ro = { class: "cl-gap-1
|
|
|
1106
1107
|
}, {
|
|
1107
1108
|
default: R(() => [
|
|
1108
1109
|
a.editMode ? (p(), b(Y, { key: 0 }, [
|
|
1109
|
-
ue(
|
|
1110
|
+
ue(I(g(l)("grid.finishEditing")), 1)
|
|
1110
1111
|
], 64)) : (p(), b(Y, { key: 1 }, [
|
|
1111
|
-
ue(
|
|
1112
|
+
ue(I(g(l)("grid.editData")), 1)
|
|
1112
1113
|
], 64))
|
|
1113
1114
|
]),
|
|
1114
1115
|
_: 1
|
|
@@ -1116,7 +1117,7 @@ const Io = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Ro = { class: "cl-gap-1
|
|
|
1116
1117
|
a.options.hideViewManager ? z("", !0) : (p(), b("div", zo, [
|
|
1117
1118
|
M(a.$slots, "view-manager")
|
|
1118
1119
|
])),
|
|
1119
|
-
g(wl)(a.columns) || g(
|
|
1120
|
+
g(wl)(a.columns) || g(Io)(a.columns) ? (p(), b(Y, { key: 2 }, [
|
|
1120
1121
|
f("div", Lo, [
|
|
1121
1122
|
D($e, {
|
|
1122
1123
|
class: "cl-w-full",
|
|
@@ -1125,7 +1126,7 @@ const Io = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Ro = { class: "cl-gap-1
|
|
|
1125
1126
|
onClick: d[1] || (d[1] = ee((c) => a.$emit("update:filterPanelOpen", !a.filterPanelOpen), ["prevent"]))
|
|
1126
1127
|
}, {
|
|
1127
1128
|
default: R(() => [
|
|
1128
|
-
ue(
|
|
1129
|
+
ue(I(g(l)("grid.modifyFilters")), 1)
|
|
1129
1130
|
]),
|
|
1130
1131
|
_: 1
|
|
1131
1132
|
}, 8, ["disabled"])
|
|
@@ -1142,7 +1143,7 @@ const Io = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Ro = { class: "cl-gap-1
|
|
|
1142
1143
|
onClick: d[2] || (d[2] = ee((c) => a.$emit("clear-filters"), ["prevent"]))
|
|
1143
1144
|
}, {
|
|
1144
1145
|
default: R(() => [
|
|
1145
|
-
ue(
|
|
1146
|
+
ue(I(g(l)("grid.clearFilters")), 1)
|
|
1146
1147
|
]),
|
|
1147
1148
|
_: 1
|
|
1148
1149
|
}, 8, ["id", "disabled", "class"])) : z("", !0)
|
|
@@ -1163,7 +1164,7 @@ const Io = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Ro = { class: "cl-gap-1
|
|
|
1163
1164
|
}),
|
|
1164
1165
|
emits: /* @__PURE__ */ ge(["focus", "blur"], ["update:modelValue"]),
|
|
1165
1166
|
setup(t, { expose: o, emit: l }) {
|
|
1166
|
-
const e = Ae(t, "modelValue"), n = l, a =
|
|
1167
|
+
const e = Ae(t, "modelValue"), n = l, a = N();
|
|
1167
1168
|
return o({
|
|
1168
1169
|
focus: () => {
|
|
1169
1170
|
var d;
|
|
@@ -1176,9 +1177,9 @@ const Io = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Ro = { class: "cl-gap-1
|
|
|
1176
1177
|
}), (d, c) => (p(), P(Je, {
|
|
1177
1178
|
"show-required-asterisk": d.required,
|
|
1178
1179
|
errors: d.errors
|
|
1179
|
-
},
|
|
1180
|
+
}, Ie({
|
|
1180
1181
|
default: R(() => [
|
|
1181
|
-
Q(f("input",
|
|
1182
|
+
Q(f("input", te({
|
|
1182
1183
|
ref_key: "inputRef",
|
|
1183
1184
|
ref: a
|
|
1184
1185
|
}, d.$attrs, {
|
|
@@ -1208,7 +1209,7 @@ const Io = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Ro = { class: "cl-gap-1
|
|
|
1208
1209
|
]), 1032, ["show-required-asterisk", "errors"]));
|
|
1209
1210
|
}
|
|
1210
1211
|
}), rl = /* @__PURE__ */ he(Fo, [["__scopeId", "data-v-d8bbd8db"]]);
|
|
1211
|
-
var
|
|
1212
|
+
var le = /* @__PURE__ */ ((t) => (t.CURRENCY = "currency", t.PERCENTAGE = "percentage", t.INTEGER = "integer", t.DECIMAL = "decimal", t.MULTIPLIER = "multiplier", t))(le || {}), 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 || {});
|
|
1212
1213
|
const Po = {
|
|
1213
1214
|
"en-GB": {
|
|
1214
1215
|
comboBox: {
|
|
@@ -1312,20 +1313,20 @@ const Po = {
|
|
|
1312
1313
|
}
|
|
1313
1314
|
}, Ho = {
|
|
1314
1315
|
"en-GB": {
|
|
1315
|
-
[
|
|
1316
|
+
[le.PERCENTAGE]: {
|
|
1316
1317
|
style: "percent",
|
|
1317
1318
|
maximumFractionDigits: 2,
|
|
1318
1319
|
minimumFractionDigits: 0
|
|
1319
1320
|
},
|
|
1320
|
-
[
|
|
1321
|
+
[le.INTEGER]: {
|
|
1321
1322
|
maximumFractionDigits: 0,
|
|
1322
1323
|
minimumFractionDigits: 0
|
|
1323
1324
|
},
|
|
1324
|
-
[
|
|
1325
|
+
[le.DECIMAL]: {
|
|
1325
1326
|
maximumFractionDigits: 2,
|
|
1326
1327
|
minimumFractionDigits: 1
|
|
1327
1328
|
},
|
|
1328
|
-
[
|
|
1329
|
+
[le.CURRENCY]: {
|
|
1329
1330
|
style: "currency",
|
|
1330
1331
|
currency: "GBP",
|
|
1331
1332
|
currencyDisplay: "symbol",
|
|
@@ -1403,15 +1404,15 @@ function di(t, o) {
|
|
|
1403
1404
|
function pi(t) {
|
|
1404
1405
|
return be.global.locale.value = t, Me();
|
|
1405
1406
|
}
|
|
1406
|
-
const { n: Zo, locale: Go, getNumberFormat: Ko } = be.global, il =
|
|
1407
|
+
const { n: Zo, locale: Go, getNumberFormat: Ko } = be.global, il = le.DECIMAL;
|
|
1407
1408
|
function Oe(t) {
|
|
1408
|
-
return Se(t,
|
|
1409
|
+
return Se(t, le.DECIMAL, { additionalOptions: {
|
|
1409
1410
|
minimumFractionDigits: 0,
|
|
1410
1411
|
maximumFractionDigits: 0
|
|
1411
1412
|
} });
|
|
1412
1413
|
}
|
|
1413
1414
|
function el(t, o) {
|
|
1414
|
-
return Se(t,
|
|
1415
|
+
return Se(t, le.DECIMAL, { additionalOptions: {
|
|
1415
1416
|
minimumFractionDigits: 0,
|
|
1416
1417
|
maximumFractionDigits: o
|
|
1417
1418
|
} });
|
|
@@ -1515,7 +1516,7 @@ function Be(t, o) {
|
|
|
1515
1516
|
};
|
|
1516
1517
|
}
|
|
1517
1518
|
function ul(t) {
|
|
1518
|
-
return xo(t) ? t :
|
|
1519
|
+
return xo(t) ? t : le.CURRENCY;
|
|
1519
1520
|
}
|
|
1520
1521
|
function Xe(t) {
|
|
1521
1522
|
return t.includes("{0}");
|
|
@@ -1723,13 +1724,13 @@ const la = {
|
|
|
1723
1724
|
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 = nt(u, o.searchValue.split(" "))), o.column.format === "wrap-text" && (u = `<span class="cl-break-words cl-whitespace-pre-wrap">${u}</span>`), u;
|
|
1724
1725
|
}
|
|
1725
1726
|
function c(u, r) {
|
|
1726
|
-
return o.column.format ===
|
|
1727
|
+
return o.column.format === le.INTEGER ? Se(u, le.DECIMAL, {
|
|
1727
1728
|
locale: r,
|
|
1728
1729
|
additionalOptions: {
|
|
1729
1730
|
maximumFractionDigits: 0,
|
|
1730
1731
|
minimumFractionDigits: 0
|
|
1731
1732
|
}
|
|
1732
|
-
}) : Se(u, o.column.format ??
|
|
1733
|
+
}) : Se(u, o.column.format ?? le.DECIMAL, { locale: r });
|
|
1733
1734
|
}
|
|
1734
1735
|
return (u, r) => {
|
|
1735
1736
|
var i;
|
|
@@ -1740,13 +1741,13 @@ const la = {
|
|
|
1740
1741
|
disabled: !0
|
|
1741
1742
|
}, 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 }, [
|
|
1742
1743
|
u.column.format !== void 0 ? (p(), b(Y, { key: 0 }, [
|
|
1743
|
-
ue(
|
|
1744
|
+
ue(I(a(u.data[u.column.field], u.column.format)), 1)
|
|
1744
1745
|
], 64)) : u.column.type === "date" || u.column.type === "dateRange" ? (p(), b(Y, { key: 1 }, [
|
|
1745
|
-
ue(
|
|
1746
|
+
ue(I(a(u.data[u.column.field], g(ce).DATE)), 1)
|
|
1746
1747
|
], 64)) : (p(), b(Y, { key: 2 }, [
|
|
1747
|
-
ue(
|
|
1748
|
+
ue(I(a(u.data[u.column.field], g(ce).DATETIME)), 1)
|
|
1748
1749
|
], 64))
|
|
1749
|
-
], 64)) : u.column.type === "list" && u.column.field !== void 0 && u.column.listEntries !== void 0 ? (p(), b("span", la,
|
|
1750
|
+
], 64)) : u.column.type === "list" && u.column.field !== void 0 && u.column.listEntries !== void 0 ? (p(), b("span", la, I(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, I(c(u.data[u.column.field], g(n))), 1)) : u.column.field !== void 0 ? (p(), b("span", oa, [
|
|
1750
1751
|
f("span", {
|
|
1751
1752
|
innerHTML: d()
|
|
1752
1753
|
}, null, 8, aa)
|
|
@@ -1764,7 +1765,7 @@ const la = {
|
|
|
1764
1765
|
},
|
|
1765
1766
|
emits: ["edit", "focus", "undo"],
|
|
1766
1767
|
setup(t, { emit: o }) {
|
|
1767
|
-
const l = t, e = o, { t: n } = se(), a =
|
|
1768
|
+
const l = t, e = o, { t: n } = se(), a = N(pe(l.data)), d = O(() => l.column.field !== void 0 && a.value[l.column.field] !== l.data[l.column.field]), c = O(() => {
|
|
1768
1769
|
var u;
|
|
1769
1770
|
return ((u = l.column.listEntries) == null ? void 0 : u.map((r, i) => ({
|
|
1770
1771
|
id: i,
|
|
@@ -1781,8 +1782,8 @@ const la = {
|
|
|
1781
1782
|
"cl-bg-link-lighter": d.value
|
|
1782
1783
|
}])
|
|
1783
1784
|
}, [
|
|
1784
|
-
f("span", na,
|
|
1785
|
-
u.editMode && u.column.editable === !0 ? M(u.$slots, `${u.column.name}Edit`, de(
|
|
1785
|
+
f("span", na, I(u.column.caption), 1),
|
|
1786
|
+
u.editMode && u.column.editable === !0 ? M(u.$slots, `${u.column.name}Edit`, de(te({ key: 0 }, {
|
|
1786
1787
|
cellFocused: () => e("focus"),
|
|
1787
1788
|
column: u.column,
|
|
1788
1789
|
edited: d.value,
|
|
@@ -1841,7 +1842,7 @@ const la = {
|
|
|
1841
1842
|
onFocus: l[0] || (l[0] = (a) => o.$emit("cell-focus")),
|
|
1842
1843
|
onEdit: (a) => o.$emit("cell-edit", { field: e.field, value: a }),
|
|
1843
1844
|
onUndo: (a) => o.$emit("cell-undo", e.field)
|
|
1844
|
-
},
|
|
1845
|
+
}, Ie({ _: 2 }, [
|
|
1845
1846
|
re(o.$slots, (a, d) => ({
|
|
1846
1847
|
name: d,
|
|
1847
1848
|
fn: R((c) => [
|
|
@@ -1868,7 +1869,7 @@ const la = {
|
|
|
1868
1869
|
},
|
|
1869
1870
|
emits: ["row-select", "row-edit", "row-edit-cancelled", "clear-filters"],
|
|
1870
1871
|
setup(t, { emit: o }) {
|
|
1871
|
-
const l = t, e = o, { t: n } = se(), a =
|
|
1872
|
+
const l = t, e = o, { t: n } = se(), a = N({
|
|
1872
1873
|
index: -1,
|
|
1873
1874
|
record: {}
|
|
1874
1875
|
});
|
|
@@ -1889,7 +1890,7 @@ const la = {
|
|
|
1889
1890
|
}, e("row-edit-cancelled", pe(a.value));
|
|
1890
1891
|
}
|
|
1891
1892
|
}
|
|
1892
|
-
const i =
|
|
1893
|
+
const i = N({});
|
|
1893
1894
|
oe(() => l.data, () => {
|
|
1894
1895
|
var h, k;
|
|
1895
1896
|
return i.value = Object.fromEntries(((k = (h = l.data) == null ? void 0 : h.results) == null ? void 0 : k.map((T, $) => [
|
|
@@ -1897,7 +1898,7 @@ const la = {
|
|
|
1897
1898
|
{
|
|
1898
1899
|
count: 0,
|
|
1899
1900
|
target: null,
|
|
1900
|
-
reset:
|
|
1901
|
+
reset: Il(() => {
|
|
1901
1902
|
i.value[$] && (i.value[$].count = 0, i.value[$].target = null);
|
|
1902
1903
|
}, 2500, { immediate: !1 })
|
|
1903
1904
|
}
|
|
@@ -1941,11 +1942,11 @@ const la = {
|
|
|
1941
1942
|
u(q, U);
|
|
1942
1943
|
},
|
|
1943
1944
|
onCellUndo: r
|
|
1944
|
-
},
|
|
1945
|
+
}, Ie({ _: 2 }, [
|
|
1945
1946
|
re(h.$slots, (U, S) => ({
|
|
1946
1947
|
name: S,
|
|
1947
1948
|
fn: R((B) => [
|
|
1948
|
-
M(h.$slots, S,
|
|
1949
|
+
M(h.$slots, S, te(B, { disabled: h.loading }))
|
|
1949
1950
|
])
|
|
1950
1951
|
}))
|
|
1951
1952
|
]), 1032, ["data", "columns", "time-zone", "search-value", "edit-mode", "class", "onClick", "onCellFocus", "onCellEdit"]))), 128)) : h.loading ? z("", !0) : (p(), b("tr", ia, [
|
|
@@ -1953,16 +1954,16 @@ const la = {
|
|
|
1953
1954
|
colspan: h.columns.length
|
|
1954
1955
|
}, [
|
|
1955
1956
|
f("div", ua, [
|
|
1956
|
-
f("strong", da,
|
|
1957
|
+
f("strong", da, I(g(n)("grid.noData")), 1),
|
|
1957
1958
|
h.request.filters.some(($) => $.filterValue !== "") ? (p(), b("div", pa, [
|
|
1958
|
-
f("div", fa,
|
|
1959
|
+
f("div", fa, I(g(n)("grid.noDataFiltersPresent")), 1),
|
|
1959
1960
|
D($e, {
|
|
1960
1961
|
size: "small",
|
|
1961
1962
|
colour: "danger",
|
|
1962
1963
|
onClick: k[0] || (k[0] = ee(($) => h.$emit("clear-filters"), ["prevent"]))
|
|
1963
1964
|
}, {
|
|
1964
1965
|
default: R(() => [
|
|
1965
|
-
ue(
|
|
1966
|
+
ue(I(g(n)("grid.clearFilters")), 1)
|
|
1966
1967
|
]),
|
|
1967
1968
|
_: 1
|
|
1968
1969
|
})
|
|
@@ -1978,7 +1979,7 @@ const la = {
|
|
|
1978
1979
|
__name: "cl-ui-input-number",
|
|
1979
1980
|
props: /* @__PURE__ */ ge({
|
|
1980
1981
|
errors: { default: () => [] },
|
|
1981
|
-
format: { default:
|
|
1982
|
+
format: { default: le.DECIMAL },
|
|
1982
1983
|
locale: { default: null },
|
|
1983
1984
|
currency: { default: null },
|
|
1984
1985
|
required: { type: Boolean, default: !1 },
|
|
@@ -1995,7 +1996,7 @@ const la = {
|
|
|
1995
1996
|
}),
|
|
1996
1997
|
emits: /* @__PURE__ */ ge(["focus", "blur"], ["update:modelValue"]),
|
|
1997
1998
|
setup(t, { expose: o, emit: l }) {
|
|
1998
|
-
const e = t, n = Ae(t, "modelValue"), a = l, d =
|
|
1999
|
+
const e = t, n = Ae(t, "modelValue"), a = l, d = N(0), c = N(), u = N(), { isOutside: r } = ct(u), { focused: i } = ut(c), s = O(() => e.showArrows && r.value === !1);
|
|
1999
2000
|
oe(i, () => {
|
|
2000
2001
|
i.value ? a("focus") : (x(S.value, !0), q.value = void 0, a("blur"));
|
|
2001
2002
|
});
|
|
@@ -2007,7 +2008,7 @@ const la = {
|
|
|
2007
2008
|
})), h = O(() => e.format ? cl(e.format, {
|
|
2008
2009
|
locale: e.locale,
|
|
2009
2010
|
additionalOptions: m.value
|
|
2010
|
-
}) : m.value), k = O(() => Math.pow(10, h.value.maximumFractionDigits ?? 0)), T = O(() => Math.pow(10, e.format ===
|
|
2011
|
+
}) : m.value), k = O(() => Math.pow(10, h.value.maximumFractionDigits ?? 0)), T = O(() => Math.pow(10, e.format === le.PERCENTAGE ? 2 : 0)), $ = O(() => k.value * T.value), q = N(void 0);
|
|
2011
2012
|
oe(n, () => q.value = void 0);
|
|
2012
2013
|
const U = O({
|
|
2013
2014
|
get: () => q.value ? E(q.value) : n.value,
|
|
@@ -2024,7 +2025,7 @@ const la = {
|
|
|
2024
2025
|
n.value = null;
|
|
2025
2026
|
else if (v !== "") {
|
|
2026
2027
|
let _ = typeof v == "number" ? v : E(v);
|
|
2027
|
-
C && e.format ===
|
|
2028
|
+
C && e.format === le.PERCENTAGE && (_ = _ / T.value), isNaN(_) === !1 && (n.value = B(Math.round(_ * $.value) / $.value));
|
|
2028
2029
|
}
|
|
2029
2030
|
}
|
|
2030
2031
|
function A(v) {
|
|
@@ -2057,21 +2058,21 @@ const la = {
|
|
|
2057
2058
|
return p(), P(Je, {
|
|
2058
2059
|
"show-required-asterisk": v.required,
|
|
2059
2060
|
errors: v.errors
|
|
2060
|
-
},
|
|
2061
|
+
}, Ie({
|
|
2061
2062
|
default: R(() => [
|
|
2062
2063
|
f("div", {
|
|
2063
2064
|
ref_key: "focusWithinRef",
|
|
2064
2065
|
ref: c,
|
|
2065
2066
|
class: "cl-relative cl-w-full"
|
|
2066
2067
|
}, [
|
|
2067
|
-
(p(), b("input",
|
|
2068
|
+
(p(), b("input", te(v.$attrs, {
|
|
2068
2069
|
ref_key: "inputRef",
|
|
2069
2070
|
ref: u,
|
|
2070
2071
|
key: d.value,
|
|
2071
2072
|
value: S.value,
|
|
2072
2073
|
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",
|
|
2073
2074
|
type: "text",
|
|
2074
|
-
inputmode: v.format === g(
|
|
2075
|
+
inputmode: v.format === g(le).DECIMAL && v.precision === 0 ? "numeric" : "decimal",
|
|
2075
2076
|
required: v.required,
|
|
2076
2077
|
disabled: v.disabled,
|
|
2077
2078
|
placeholder: v.placeholder ?? void 0,
|
|
@@ -2125,7 +2126,7 @@ const la = {
|
|
|
2125
2126
|
}), ya = {
|
|
2126
2127
|
key: 0,
|
|
2127
2128
|
class: "cl-flex cl-flex-wrap cl-justify-end cl-mt-2 cl-w-full"
|
|
2128
|
-
}, 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" },
|
|
2129
|
+
}, 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" }, Ia = ["onClick"], Na = { 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({
|
|
2129
2130
|
__name: "cl-ui-grid-footer",
|
|
2130
2131
|
props: {
|
|
2131
2132
|
request: {},
|
|
@@ -2171,7 +2172,7 @@ const la = {
|
|
|
2171
2172
|
var m, h;
|
|
2172
2173
|
return (h = (m = i.data) == null ? void 0 : m.results) != null && h.length && i.request ? (p(), b("div", ya, [
|
|
2173
2174
|
f("div", wa, [
|
|
2174
|
-
f("span", ka,
|
|
2175
|
+
f("span", ka, I(g(n)("grid.jumpToPage")), 1),
|
|
2175
2176
|
D(Pe, {
|
|
2176
2177
|
"model-value": i.request.pageNumber,
|
|
2177
2178
|
class: "cl-ml-1 cl-mt-0.5 cl-text-sm cl-w-full",
|
|
@@ -2190,10 +2191,10 @@ const la = {
|
|
|
2190
2191
|
f("div", Ca, [
|
|
2191
2192
|
f("div", Ta, [
|
|
2192
2193
|
f("li", qa, [
|
|
2193
|
-
f("span", Oa,
|
|
2194
|
+
f("span", Oa, I(g(n)("grid.page")), 1)
|
|
2194
2195
|
]),
|
|
2195
2196
|
f("ul", Sa, [
|
|
2196
|
-
f("li", Da,
|
|
2197
|
+
f("li", Da, I(g(Oe)(i.request.pageNumber)) + " / " + I(g(Oe)(a.value)), 1),
|
|
2197
2198
|
Q(f("li", {
|
|
2198
2199
|
class: "cl-cursor-pointer cl-mr-1 cl-mt-1 lg:cl-mr-2",
|
|
2199
2200
|
onClick: s[0] || (s[0] = (k) => c(1))
|
|
@@ -2223,7 +2224,7 @@ const la = {
|
|
|
2223
2224
|
"cl-text-grey-6": i.request.pageNumber !== k
|
|
2224
2225
|
}]),
|
|
2225
2226
|
onClick: ($) => c(k)
|
|
2226
|
-
},
|
|
2227
|
+
}, I(g(Oe)(k)), 11, Ea))), 128)),
|
|
2227
2228
|
Q(f("li", {
|
|
2228
2229
|
class: "cl-cursor-pointer cl-mr-1 cl-mt-1 lg:cl-mr-2",
|
|
2229
2230
|
onClick: s[2] || (s[2] = (k) => c(i.request.pageNumber + 1))
|
|
@@ -2249,7 +2250,7 @@ const la = {
|
|
|
2249
2250
|
])
|
|
2250
2251
|
]),
|
|
2251
2252
|
f("ul", Aa, [
|
|
2252
|
-
f("li", Va,
|
|
2253
|
+
f("li", Va, I(g(n)("grid.pageSize")), 1),
|
|
2253
2254
|
(p(), b(Y, null, re(u, (k, T) => f("li", {
|
|
2254
2255
|
key: T,
|
|
2255
2256
|
class: L(["cl-cursor-pointer cl-mr-1 lg:cl-mr-2", {
|
|
@@ -2257,11 +2258,11 @@ const la = {
|
|
|
2257
2258
|
"cl-text-grey-6": i.request.pageSize !== k
|
|
2258
2259
|
}]),
|
|
2259
2260
|
onClick: ($) => r(k)
|
|
2260
|
-
},
|
|
2261
|
+
}, I(g(Oe)(k)), 11, Ia)), 64))
|
|
2261
2262
|
]),
|
|
2262
|
-
f("ul",
|
|
2263
|
-
f("li", Ra,
|
|
2264
|
-
f("li", Ma,
|
|
2263
|
+
f("ul", Na, [
|
|
2264
|
+
f("li", Ra, I(g(n)("grid.totalRecords")), 1),
|
|
2265
|
+
f("li", Ma, I(g(Oe)(i.data.totalRecords)), 1)
|
|
2265
2266
|
])
|
|
2266
2267
|
])
|
|
2267
2268
|
])) : z("", !0);
|
|
@@ -2401,7 +2402,7 @@ const La = [
|
|
|
2401
2402
|
El((s) => ({
|
|
2402
2403
|
"28c20101": c.value
|
|
2403
2404
|
}));
|
|
2404
|
-
const l = t, e = Ae(t, "modelValue"), { t: n } = se(), a =
|
|
2405
|
+
const l = t, e = Ae(t, "modelValue"), { t: n } = se(), a = N(), d = N(), c = O(() => `${100 * (e.value - l.min) / (l.max - l.min)}%`), u = N(!1), r = dt(e, 50);
|
|
2405
2406
|
function i(s) {
|
|
2406
2407
|
var m;
|
|
2407
2408
|
e.value = s, (m = a.value) == null || m.focus();
|
|
@@ -2420,17 +2421,17 @@ const La = [
|
|
|
2420
2421
|
return p(), P(Je, {
|
|
2421
2422
|
errors: s.errors,
|
|
2422
2423
|
"show-required-asterisk": s.required
|
|
2423
|
-
},
|
|
2424
|
+
}, Ie({
|
|
2424
2425
|
default: R(() => [
|
|
2425
2426
|
f("div", ja, [
|
|
2426
2427
|
f("button", {
|
|
2427
2428
|
disabled: s.disabled,
|
|
2428
2429
|
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",
|
|
2429
2430
|
onClick: m[0] || (m[0] = (k) => i(s.min))
|
|
2430
|
-
},
|
|
2431
|
+
}, I(g(el)(s.min, s.precision)), 9, Ba),
|
|
2431
2432
|
f("div", Fa, [
|
|
2432
2433
|
Q(f("div", Pa, [
|
|
2433
|
-
Q(f("input",
|
|
2434
|
+
Q(f("input", te({
|
|
2434
2435
|
ref_key: "sliderRef",
|
|
2435
2436
|
ref: a,
|
|
2436
2437
|
"onUpdate:modelValue": m[1] || (m[1] = (k) => e.value = k)
|
|
@@ -2450,11 +2451,11 @@ const La = [
|
|
|
2450
2451
|
{ number: !0 }
|
|
2451
2452
|
]
|
|
2452
2453
|
]),
|
|
2453
|
-
f("div", Wa,
|
|
2454
|
+
f("div", Wa, I(g(el)(g(r), s.precision)), 1)
|
|
2454
2455
|
], 512), [
|
|
2455
2456
|
[X, u.value === !1]
|
|
2456
2457
|
]),
|
|
2457
|
-
Q(D(Pe,
|
|
2458
|
+
Q(D(Pe, te({
|
|
2458
2459
|
ref_key: "inputRef",
|
|
2459
2460
|
ref: d,
|
|
2460
2461
|
modelValue: e.value,
|
|
@@ -2474,7 +2475,7 @@ const La = [
|
|
|
2474
2475
|
disabled: s.disabled,
|
|
2475
2476
|
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",
|
|
2476
2477
|
onClick: m[3] || (m[3] = (k) => i(s.max))
|
|
2477
|
-
},
|
|
2478
|
+
}, I(g(el)(s.max, s.precision)), 9, Za),
|
|
2478
2479
|
f("button", {
|
|
2479
2480
|
disabled: s.disabled,
|
|
2480
2481
|
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",
|
|
@@ -2527,7 +2528,7 @@ const La = [
|
|
|
2527
2528
|
set(k) {
|
|
2528
2529
|
e.type === "time" ? n.value = k : k !== null ? n.value = Re(k, null, !0, e.timeZone) : n.value = null;
|
|
2529
2530
|
}
|
|
2530
|
-
}), { locale: u } = se(), r = O(() => e.dateFormatLocale ?? u.value), i = O(() => dl(e.disabled, e.popoverPlacement)), s = O(() => Fl(r.value, e.type)), m =
|
|
2531
|
+
}), { locale: u } = se(), r = O(() => e.dateFormatLocale ?? u.value), i = O(() => dl(e.disabled, e.popoverPlacement)), s = O(() => Fl(r.value, e.type)), m = N(null), h = O(() => pl(n.value, e.initialCalendarDate, d.value, e.type));
|
|
2531
2532
|
return oe(() => [
|
|
2532
2533
|
e.minDate,
|
|
2533
2534
|
e.maxDate
|
|
@@ -2545,7 +2546,7 @@ const La = [
|
|
|
2545
2546
|
M(k.$slots, "default")
|
|
2546
2547
|
]),
|
|
2547
2548
|
default: R(() => [
|
|
2548
|
-
k.type === "time" ? (p(), P(g(
|
|
2549
|
+
k.type === "time" ? (p(), P(g(Ne), {
|
|
2549
2550
|
key: 0,
|
|
2550
2551
|
modelValue: c.value,
|
|
2551
2552
|
"onUpdate:modelValue": T[1] || (T[1] = (q) => c.value = q),
|
|
@@ -2562,7 +2563,7 @@ const La = [
|
|
|
2562
2563
|
popover: i.value
|
|
2563
2564
|
}, {
|
|
2564
2565
|
default: R(({ inputValue: q, inputEvents: U }) => [
|
|
2565
|
-
D(je,
|
|
2566
|
+
D(je, te(k.$attrs, {
|
|
2566
2567
|
ref_key: "input",
|
|
2567
2568
|
ref: m,
|
|
2568
2569
|
date: q,
|
|
@@ -2575,7 +2576,7 @@ const La = [
|
|
|
2575
2576
|
}), null, 16, ["date", "events", "type", "placeholder", "required", "disabled"])
|
|
2576
2577
|
]),
|
|
2577
2578
|
_: 1
|
|
2578
|
-
}, 8, ["modelValue", "locale", "is24hr", "mode", "is-required", "masks", "popover"])) : (p(), P(g(
|
|
2579
|
+
}, 8, ["modelValue", "locale", "is24hr", "mode", "is-required", "masks", "popover"])) : (p(), P(g(Ne), {
|
|
2579
2580
|
key: 1,
|
|
2580
2581
|
modelValue: c.value,
|
|
2581
2582
|
"onUpdate:modelValue": T[4] || (T[4] = (q) => c.value = q),
|
|
@@ -2595,7 +2596,7 @@ const La = [
|
|
|
2595
2596
|
popover: i.value
|
|
2596
2597
|
}, {
|
|
2597
2598
|
default: R(({ inputValue: q, inputEvents: U }) => [
|
|
2598
|
-
D(je,
|
|
2599
|
+
D(je, te(k.$attrs, {
|
|
2599
2600
|
ref_key: "input",
|
|
2600
2601
|
ref: m,
|
|
2601
2602
|
date: q,
|
|
@@ -2639,7 +2640,7 @@ const La = [
|
|
|
2639
2640
|
}]),
|
|
2640
2641
|
onClick: (i) => l("quick-date-selected", d)
|
|
2641
2642
|
}, [
|
|
2642
|
-
f("span", null,
|
|
2643
|
+
f("span", null, I(g(e)(d.translationKey)), 1)
|
|
2643
2644
|
], 10, _a);
|
|
2644
2645
|
}), 128))
|
|
2645
2646
|
]));
|
|
@@ -2772,7 +2773,7 @@ const La = [
|
|
|
2772
2773
|
return d;
|
|
2773
2774
|
});
|
|
2774
2775
|
return (d, c) => (p(), b("div", en, [
|
|
2775
|
-
f("div", null,
|
|
2776
|
+
f("div", null, I(g(n)("quickDates.quickDatesHeader")), 1),
|
|
2776
2777
|
(p(!0), b(Y, null, re(a.value, (u, r) => (p(), b("div", {
|
|
2777
2778
|
key: r,
|
|
2778
2779
|
class: "cl-pt-2"
|
|
@@ -2810,7 +2811,7 @@ const La = [
|
|
|
2810
2811
|
}
|
|
2811
2812
|
]])
|
|
2812
2813
|
}, [
|
|
2813
|
-
D(d,
|
|
2814
|
+
D(d, te(l.value, {
|
|
2814
2815
|
class: ["cl-basis-full cl-border-transparent cl-flex cl-items-center cl-justify-center hover:cl-border-transparent", {
|
|
2815
2816
|
"cl-text-grey-4 hover:cl-text-grey-3": !e.dateRangeSelected && !e.disabled,
|
|
2816
2817
|
"cl-text-primary-darker hover:cl-text-primary-dark": e.dateRangeSelected && !e.disabled
|
|
@@ -2890,12 +2891,12 @@ const La = [
|
|
|
2890
2891
|
} else
|
|
2891
2892
|
l.value = null;
|
|
2892
2893
|
}
|
|
2893
|
-
}), { 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(() => Hl(n.value, e.value, d.value)), i =
|
|
2894
|
+
}), { 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(() => Hl(n.value, e.value, d.value)), i = N(null), s = N(null);
|
|
2894
2895
|
function m(T) {
|
|
2895
2896
|
const $ = Pl(T, e.value);
|
|
2896
2897
|
n.value = $, i.value = T, s.value.move($.start), s.value.hidePopover();
|
|
2897
2898
|
}
|
|
2898
|
-
const h =
|
|
2899
|
+
const h = Nl("(min-width: 768px)"), k = O(() => h.value ? 2 : 1);
|
|
2899
2900
|
return (T, $) => {
|
|
2900
2901
|
const q = De("cl-ui-input-layout-wrapper");
|
|
2901
2902
|
return p(), P(q, { "show-required-asterisk": T.required }, {
|
|
@@ -2903,7 +2904,7 @@ const La = [
|
|
|
2903
2904
|
M(T.$slots, "default")
|
|
2904
2905
|
]),
|
|
2905
2906
|
default: R(() => [
|
|
2906
|
-
D(g(
|
|
2907
|
+
D(g(Ne), {
|
|
2907
2908
|
ref_key: "calendar",
|
|
2908
2909
|
ref: s,
|
|
2909
2910
|
modelValue: n.value,
|
|
@@ -2922,7 +2923,7 @@ const La = [
|
|
|
2922
2923
|
onDayclick: $[2] || ($[2] = (U) => i.value = null)
|
|
2923
2924
|
}, {
|
|
2924
2925
|
default: R(({ togglePopover: U }) => [
|
|
2925
|
-
D(ml,
|
|
2926
|
+
D(ml, te(T.$attrs, {
|
|
2926
2927
|
required: T.required,
|
|
2927
2928
|
disabled: T.disabled,
|
|
2928
2929
|
"date-range-selected": !!n.value,
|
|
@@ -2981,7 +2982,7 @@ const La = [
|
|
|
2981
2982
|
},
|
|
2982
2983
|
emits: ["clear", "reset", "togglePopover"],
|
|
2983
2984
|
setup(t, { expose: o }) {
|
|
2984
|
-
const l = t, e =
|
|
2985
|
+
const l = t, e = N(null);
|
|
2985
2986
|
function n() {
|
|
2986
2987
|
var c;
|
|
2987
2988
|
(c = e.value) == null || c.focus();
|
|
@@ -3003,14 +3004,14 @@ const La = [
|
|
|
3003
3004
|
});
|
|
3004
3005
|
return o({
|
|
3005
3006
|
focus: n
|
|
3006
|
-
}), (c, u) => c.type === "dateRange" ? (p(), P(g(ml),
|
|
3007
|
+
}), (c, u) => c.type === "dateRange" ? (p(), P(g(ml), te({ key: 0 }, c.$attrs, {
|
|
3007
3008
|
disabled: !!c.disabled,
|
|
3008
3009
|
required: c.required,
|
|
3009
3010
|
"date-range-selected": !!c.rangeSelected,
|
|
3010
3011
|
onTogglePopover: u[0] || (u[0] = (r) => c.$emit("togglePopover")),
|
|
3011
3012
|
onClear: u[1] || (u[1] = (r) => c.$emit("clear"))
|
|
3012
3013
|
}), null, 16, ["disabled", "required", "date-range-selected"])) : (p(), b("div", an, [
|
|
3013
|
-
f("input",
|
|
3014
|
+
f("input", te({
|
|
3014
3015
|
ref_key: "element",
|
|
3015
3016
|
ref: e
|
|
3016
3017
|
}, c.$attrs, {
|
|
@@ -3087,18 +3088,18 @@ const La = [
|
|
|
3087
3088
|
}
|
|
3088
3089
|
n("update:date", B);
|
|
3089
3090
|
}
|
|
3090
|
-
}), { locale: c } = se(), u = O(() => e.dateFormatLocale ?? c.value), r = O(() => dl(e.disabled, "auto")), i = O(() => Fl(u.value, e.type)), s =
|
|
3091
|
+
}), { locale: c } = se(), u = O(() => e.dateFormatLocale ?? c.value), r = O(() => dl(e.disabled, "auto")), i = O(() => Fl(u.value, e.type)), s = N(null), m = O(() => pl(e.date, e.initialDate, a.value, e.type)), h = N(null), k = N();
|
|
3091
3092
|
function T(S) {
|
|
3092
3093
|
const B = Pl(S, a.value);
|
|
3093
3094
|
d.value = B, h.value = S, k.value.move(B.start), k.value.hidePopover();
|
|
3094
3095
|
}
|
|
3095
|
-
const $ = O(() => Hl(d.value, a.value, u.value)), q =
|
|
3096
|
+
const $ = O(() => Hl(d.value, a.value, u.value)), q = Nl("(min-width: 768px)"), U = O(() => q.value ? 2 : 1);
|
|
3096
3097
|
return o({
|
|
3097
3098
|
focus() {
|
|
3098
3099
|
var S;
|
|
3099
3100
|
(S = s.value) == null || S.focus();
|
|
3100
3101
|
}
|
|
3101
|
-
}), (S, B) => S.type === "time" ? (p(), P(g(
|
|
3102
|
+
}), (S, B) => S.type === "time" ? (p(), P(g(Ne), {
|
|
3102
3103
|
key: 0,
|
|
3103
3104
|
modelValue: d.value,
|
|
3104
3105
|
"onUpdate:modelValue": B[1] || (B[1] = (x) => d.value = x),
|
|
@@ -3115,7 +3116,7 @@ const La = [
|
|
|
3115
3116
|
popover: r.value
|
|
3116
3117
|
}, {
|
|
3117
3118
|
default: R(({ inputValue: x, inputEvents: A }) => [
|
|
3118
|
-
D(je,
|
|
3119
|
+
D(je, te(S.$attrs, {
|
|
3119
3120
|
ref_key: "input",
|
|
3120
3121
|
ref: s,
|
|
3121
3122
|
date: x,
|
|
@@ -3128,7 +3129,7 @@ const La = [
|
|
|
3128
3129
|
}), null, 16, ["date", "events", "type", "placeholder", "required", "disabled"])
|
|
3129
3130
|
]),
|
|
3130
3131
|
_: 1
|
|
3131
|
-
}, 8, ["modelValue", "locale", "is24hr", "mode", "is-required", "masks", "popover"])) : S.type === "dateRange" ? (p(), P(g(
|
|
3132
|
+
}, 8, ["modelValue", "locale", "is24hr", "mode", "is-required", "masks", "popover"])) : S.type === "dateRange" ? (p(), P(g(Ne), {
|
|
3132
3133
|
key: 1,
|
|
3133
3134
|
ref_key: "calendar",
|
|
3134
3135
|
ref: k,
|
|
@@ -3149,7 +3150,7 @@ const La = [
|
|
|
3149
3150
|
onDayclick: B[4] || (B[4] = (x) => h.value = null)
|
|
3150
3151
|
}, {
|
|
3151
3152
|
default: R(({ togglePopover: x }) => [
|
|
3152
|
-
D(je,
|
|
3153
|
+
D(je, te(S.$attrs, {
|
|
3153
3154
|
ref_key: "input",
|
|
3154
3155
|
ref: s,
|
|
3155
3156
|
type: S.type,
|
|
@@ -3174,7 +3175,7 @@ const La = [
|
|
|
3174
3175
|
}, null, 8, ["scope", "selected-quick-date", "current-date-range"])) : z("", !0)
|
|
3175
3176
|
]),
|
|
3176
3177
|
_: 1
|
|
3177
|
-
}, 8, ["modelValue", "locale", "is24hr", "timezone", "columns", "popover", "min-date", "max-date", "initial-page"])) : (p(), P(g(
|
|
3178
|
+
}, 8, ["modelValue", "locale", "is24hr", "timezone", "columns", "popover", "min-date", "max-date", "initial-page"])) : (p(), P(g(Ne), {
|
|
3178
3179
|
key: 2,
|
|
3179
3180
|
modelValue: d.value,
|
|
3180
3181
|
"onUpdate:modelValue": B[7] || (B[7] = (x) => d.value = x),
|
|
@@ -3194,7 +3195,7 @@ const La = [
|
|
|
3194
3195
|
popover: r.value
|
|
3195
3196
|
}, {
|
|
3196
3197
|
default: R(({ inputValue: x, inputEvents: A }) => [
|
|
3197
|
-
D(je,
|
|
3198
|
+
D(je, te(S.$attrs, {
|
|
3198
3199
|
ref_key: "input",
|
|
3199
3200
|
ref: s,
|
|
3200
3201
|
date: x,
|
|
@@ -3306,16 +3307,16 @@ const La = [
|
|
|
3306
3307
|
El((r) => ({
|
|
3307
3308
|
"59055b28": d.value
|
|
3308
3309
|
}));
|
|
3309
|
-
const l = t, e = Ae(t, "value"), { t: n } = se(), a =
|
|
3310
|
+
const l = t, e = Ae(t, "value"), { t: n } = se(), a = N(), d = O(() => {
|
|
3310
3311
|
let r = (e.value - l.min) / (l.max - l.min) * 100;
|
|
3311
3312
|
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}%`;
|
|
3312
|
-
}), c = O(() => l.min <= l.max && l.step > 0), u =
|
|
3313
|
+
}), c = O(() => l.min <= l.max && l.step > 0), u = N(!1);
|
|
3313
3314
|
return o({
|
|
3314
3315
|
focus() {
|
|
3315
3316
|
var r;
|
|
3316
3317
|
(r = a.value) == null || r.focus();
|
|
3317
3318
|
}
|
|
3318
|
-
}), (r, i) => c.value ? (p(), b("div", de(
|
|
3319
|
+
}), (r, i) => c.value ? (p(), b("div", de(te({ key: 0 }, r.$attrs)), [
|
|
3319
3320
|
f("div", fn, [
|
|
3320
3321
|
f("span", {
|
|
3321
3322
|
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", {
|
|
@@ -3323,7 +3324,7 @@ const La = [
|
|
|
3323
3324
|
"cl-bg-grey-0": r.disabled
|
|
3324
3325
|
}]),
|
|
3325
3326
|
onClick: i[0] || (i[0] = (s) => e.value = r.disabled ? e.value : r.min)
|
|
3326
|
-
},
|
|
3327
|
+
}, I(Number.isInteger(r.min) ? g(Oe)(r.min) : g(Se)(r.min, g(le).DECIMAL)), 3),
|
|
3327
3328
|
f("div", mn, [
|
|
3328
3329
|
u.value ? (p(), P(Pe, {
|
|
3329
3330
|
key: 0,
|
|
@@ -3332,8 +3333,8 @@ const La = [
|
|
|
3332
3333
|
modelValue: e.value,
|
|
3333
3334
|
"onUpdate:modelValue": i[1] || (i[1] = (s) => e.value = s),
|
|
3334
3335
|
class: "cl-min-w-[8.5rem] cl-w-full",
|
|
3335
|
-
format: g(
|
|
3336
|
-
precision: Number.isInteger(r.min) ? 0 : g(cl)(g(
|
|
3336
|
+
format: g(le).DECIMAL,
|
|
3337
|
+
precision: Number.isInteger(r.min) ? 0 : g(cl)(g(le).DECIMAL).maximumFractionDigits,
|
|
3337
3338
|
min: r.min,
|
|
3338
3339
|
max: r.max,
|
|
3339
3340
|
step: r.step,
|
|
@@ -3363,7 +3364,7 @@ const La = [
|
|
|
3363
3364
|
{ number: !0 }
|
|
3364
3365
|
]
|
|
3365
3366
|
]),
|
|
3366
|
-
f("div", bn,
|
|
3367
|
+
f("div", bn, I(Number.isInteger(e.value) ? g(Oe)(e.value) : g(Se)(e.value, g(le).DECIMAL)), 1)
|
|
3367
3368
|
], 64))
|
|
3368
3369
|
]),
|
|
3369
3370
|
f("span", {
|
|
@@ -3372,7 +3373,7 @@ const La = [
|
|
|
3372
3373
|
"cl-bg-grey-0": r.disabled
|
|
3373
3374
|
}]),
|
|
3374
3375
|
onClick: i[3] || (i[3] = (s) => e.value = r.disabled ? e.value : r.max)
|
|
3375
|
-
},
|
|
3376
|
+
}, I(Number.isInteger(r.max) ? g(Oe)(r.max) : g(Se)(r.max, g(le).DECIMAL)), 3),
|
|
3376
3377
|
f("div", hn, [
|
|
3377
3378
|
f("div", {
|
|
3378
3379
|
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",
|
|
@@ -3382,7 +3383,7 @@ const La = [
|
|
|
3382
3383
|
])
|
|
3383
3384
|
])
|
|
3384
3385
|
])
|
|
3385
|
-
], 16)) : (p(), b("div", yn,
|
|
3386
|
+
], 16)) : (p(), b("div", yn, I(g(n)("slider.invalidProps")), 1));
|
|
3386
3387
|
}
|
|
3387
3388
|
}), kn = /* @__PURE__ */ he(wn, [["__scopeId", "data-v-5cb4ccea"]]);
|
|
3388
3389
|
function Tl(t) {
|
|
@@ -3455,10 +3456,10 @@ const Tn = { class: "cl-flex cl-justify-between" }, qn = { class: "cl-w-full" },
|
|
|
3455
3456
|
}, Dn = {
|
|
3456
3457
|
key: 0,
|
|
3457
3458
|
class: "cl-relative"
|
|
3458
|
-
}, En = ["type", "disabled", "min", "max", "minlength", "maxlength", "step", "placeholder", "name", "autocomplete"], An = { key: 0 }, Vn = { key: 1 },
|
|
3459
|
+
}, En = ["type", "disabled", "min", "max", "minlength", "maxlength", "step", "placeholder", "name", "autocomplete"], An = { key: 0 }, Vn = { key: 1 }, In = {
|
|
3459
3460
|
key: 3,
|
|
3460
3461
|
class: "cl-max-h-[2.75rem] cl-pb-0.5"
|
|
3461
|
-
},
|
|
3462
|
+
}, Nn = {
|
|
3462
3463
|
key: 0,
|
|
3463
3464
|
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"
|
|
3464
3465
|
}, Rn = {
|
|
@@ -3500,17 +3501,17 @@ const Tn = { class: "cl-flex cl-justify-between" }, qn = { class: "cl-w-full" },
|
|
|
3500
3501
|
},
|
|
3501
3502
|
emits: ["update:model-value", "click", "focus", "input", "change", "validated"],
|
|
3502
3503
|
setup(t, { expose: o, emit: l }) {
|
|
3503
|
-
const e = t, n = l, a =
|
|
3504
|
+
const e = t, n = l, a = N(null), d = N(null), c = N(!1), u = N(!1), r = O(() => {
|
|
3504
3505
|
var j;
|
|
3505
3506
|
let w = e.isRequired;
|
|
3506
3507
|
return u.value && ((j = m.value) == null ? void 0 : j.toString().trim()) === "" && e.requiredText.trim() !== "" && (w = !1), !e.hideRequiredAsterisk && w;
|
|
3507
|
-
}), i = O(() => e.placeholderText.trim() !== "" ? e.placeholderText : e.label), s =
|
|
3508
|
+
}), i = O(() => e.placeholderText.trim() !== "" ? e.placeholderText : e.label), s = N(0), m = O({
|
|
3508
3509
|
get: () => e.modelValue,
|
|
3509
3510
|
set: (w) => v(w, !1)
|
|
3510
3511
|
}), h = O({
|
|
3511
3512
|
get: () => e.modelValue,
|
|
3512
3513
|
set: (w) => y(w)
|
|
3513
|
-
}), 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 =
|
|
3514
|
+
}), 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 = N(!0), B = N(!0), x = N([]), A = O(() => {
|
|
3514
3515
|
var w, j;
|
|
3515
3516
|
return [
|
|
3516
3517
|
...((w = x.value) == null ? void 0 : w.filter((G) => ((G == null ? void 0 : G.length) ?? 0) > 0)) ?? [],
|
|
@@ -3612,7 +3613,7 @@ const Tn = { class: "cl-flex cl-justify-between" }, qn = { class: "cl-w-full" },
|
|
|
3612
3613
|
var w, j;
|
|
3613
3614
|
e.inputType === "currency" ? (w = d == null ? void 0 : d.value) == null || w.blur() : (j = a.value) == null || j.blur();
|
|
3614
3615
|
}
|
|
3615
|
-
}), (w, j) => (p(), b("div",
|
|
3616
|
+
}), (w, j) => (p(), b("div", te({ ...w.$attrs, id: void 0 }, {
|
|
3616
3617
|
key: s.value,
|
|
3617
3618
|
class: "cl-align-top cl-border-none cl-inline-block cl-text-left"
|
|
3618
3619
|
}), [
|
|
@@ -3622,14 +3623,14 @@ const Tn = { class: "cl-flex cl-justify-between" }, qn = { class: "cl-w-full" },
|
|
|
3622
3623
|
}, [
|
|
3623
3624
|
f("div", Tn, [
|
|
3624
3625
|
f("div", qn, [
|
|
3625
|
-
Q(f("label", { class: "cl-block cl-mb-1 cl-text-grey-4 cl-text-xs cl-tracking-widest" },
|
|
3626
|
+
Q(f("label", { class: "cl-block cl-mb-1 cl-text-grey-4 cl-text-xs cl-tracking-widest" }, I(w.label), 513), [
|
|
3626
3627
|
[X, w.showLabel && w.label !== ""]
|
|
3627
3628
|
])
|
|
3628
3629
|
]),
|
|
3629
|
-
r.value ? (p(), b("label", On, " * ")) : w.isRequired && w.requiredText.length ? (p(), b("label", Sn,
|
|
3630
|
+
r.value ? (p(), b("label", On, " * ")) : w.isRequired && w.requiredText.length ? (p(), b("label", Sn, I(w.requiredText), 1)) : z("", !0)
|
|
3630
3631
|
]),
|
|
3631
3632
|
w.inputType !== "range" && w.inputType !== "currency" && !g(ql)(w.inputType) ? (p(), b("div", Dn, [
|
|
3632
|
-
Q(f("input",
|
|
3633
|
+
Q(f("input", te({
|
|
3633
3634
|
ref_key: "inputElement",
|
|
3634
3635
|
ref: a,
|
|
3635
3636
|
"onUpdate:modelValue": j[0] || (j[0] = (G) => m.value = G)
|
|
@@ -3693,7 +3694,7 @@ const Tn = { class: "cl-flex cl-justify-between" }, qn = { class: "cl-w-full" },
|
|
|
3693
3694
|
_: 1
|
|
3694
3695
|
})
|
|
3695
3696
|
])) : w.inputType === "currency" ? (p(), b("div", Vn, [
|
|
3696
|
-
D(dn,
|
|
3697
|
+
D(dn, te({
|
|
3697
3698
|
ref_key: "currencyInputRef",
|
|
3698
3699
|
ref: d,
|
|
3699
3700
|
modelValue: m.value,
|
|
@@ -3712,7 +3713,7 @@ const Tn = { class: "cl-flex cl-justify-between" }, qn = { class: "cl-w-full" },
|
|
|
3712
3713
|
onFocus: j[8] || (j[8] = (G) => n("focus")),
|
|
3713
3714
|
onBlur: H
|
|
3714
3715
|
}), null, 16, ["modelValue", "disabled", "placeholder", "is-valid", "highlight-when-valid", "input-specific-classes", "group", "step", "currency-options"])
|
|
3715
|
-
])) : g(ql)(w.inputType) ? (p(), P(g(cn),
|
|
3716
|
+
])) : g(ql)(w.inputType) ? (p(), P(g(cn), te({ key: 2 }, w.$attrs, {
|
|
3716
3717
|
ref_key: "inputElement",
|
|
3717
3718
|
ref: a,
|
|
3718
3719
|
date: h.value,
|
|
@@ -3734,7 +3735,7 @@ const Tn = { class: "cl-flex cl-justify-between" }, qn = { class: "cl-w-full" },
|
|
|
3734
3735
|
"date-format-locale": w.dateFormatLocale,
|
|
3735
3736
|
onBlur: ee(H, ["self"]),
|
|
3736
3737
|
onFocus: j[10] || (j[10] = (G) => n("focus"))
|
|
3737
|
-
}), 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",
|
|
3738
|
+
}), 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", In, [
|
|
3738
3739
|
D(g(kn), {
|
|
3739
3740
|
ref_key: "inputElement",
|
|
3740
3741
|
ref: a,
|
|
@@ -3751,8 +3752,8 @@ const Tn = { class: "cl-flex cl-justify-between" }, qn = { class: "cl-w-full" },
|
|
|
3751
3752
|
}, null, 8, ["value", "min", "max", "step", "placeholder", "disabled"])
|
|
3752
3753
|
])) : z("", !0)
|
|
3753
3754
|
], 32),
|
|
3754
|
-
S.value && U.value && B.value ? (p(), b("div",
|
|
3755
|
-
!S.value && A.value.length > 0 && w.showValidationMessages && B.value ? (p(), b("div", Rn,
|
|
3755
|
+
S.value && U.value && B.value ? (p(), b("div", Nn, I(U.value), 1)) : z("", !0),
|
|
3756
|
+
!S.value && A.value.length > 0 && w.showValidationMessages && B.value ? (p(), b("div", Rn, I(A.value), 1)) : z("", !0)
|
|
3756
3757
|
], 16));
|
|
3757
3758
|
}
|
|
3758
3759
|
}), ll = /* @__PURE__ */ he(Mn, [["__scopeId", "data-v-2373f106"]]), Un = [
|
|
@@ -3980,7 +3981,7 @@ const Wn = {
|
|
|
3980
3981
|
return;
|
|
3981
3982
|
e("update:filter", m);
|
|
3982
3983
|
}
|
|
3983
|
-
const u =
|
|
3984
|
+
const u = N(), { left: r } = pt(u), i = O(() => r.value / 2 < 208);
|
|
3984
3985
|
return (s, m) => (p(), b("div", {
|
|
3985
3986
|
ref_key: "gridMethodSelectElement",
|
|
3986
3987
|
ref: u,
|
|
@@ -4003,7 +4004,7 @@ const Wn = {
|
|
|
4003
4004
|
"cl-left-0": i.value
|
|
4004
4005
|
}])
|
|
4005
4006
|
}, [
|
|
4006
|
-
f("strong", Qn,
|
|
4007
|
+
f("strong", Qn, I(g(n)("grid.availableMethods")), 1),
|
|
4007
4008
|
(p(!0), b(Y, null, re(a.value, (h, k) => {
|
|
4008
4009
|
var T;
|
|
4009
4010
|
return p(), b("span", {
|
|
@@ -4013,7 +4014,7 @@ const Wn = {
|
|
|
4013
4014
|
}]),
|
|
4014
4015
|
onClick: ee(($) => c(h.method), ["prevent"])
|
|
4015
4016
|
}, [
|
|
4016
|
-
ue(
|
|
4017
|
+
ue(I(h.description) + " ", 1),
|
|
4017
4018
|
D(g(Z), {
|
|
4018
4019
|
icon: h.icon,
|
|
4019
4020
|
class: "cl-float-right cl-text-grey-4 cl-text-sm"
|
|
@@ -4051,7 +4052,7 @@ const Wn = {
|
|
|
4051
4052
|
const c = O({
|
|
4052
4053
|
get: () => l.filter,
|
|
4053
4054
|
set: (y) => e("update:filter", y)
|
|
4054
|
-
}), 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 ===
|
|
4055
|
+
}), 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 === le.INTEGER ? le.DECIMAL : l.column.format ?? le.DECIMAL), h = O({
|
|
4055
4056
|
get() {
|
|
4056
4057
|
var v, C, _, K, ve, ne, V;
|
|
4057
4058
|
let y = (v = c.value) == null ? void 0 : v[0];
|
|
@@ -4199,7 +4200,7 @@ const Wn = {
|
|
|
4199
4200
|
function x(y, v) {
|
|
4200
4201
|
let C = (y == null ? void 0 : y.value) ?? v ?? 0;
|
|
4201
4202
|
if (typeof C == "string") {
|
|
4202
|
-
const _ = l.column.format ===
|
|
4203
|
+
const _ = l.column.format === le.INTEGER, K = (_ ? le.DECIMAL : l.column.format) ?? le.DECIMAL;
|
|
4203
4204
|
C = Ll(C, K, { additionalOptions: {
|
|
4204
4205
|
maximumFractionDigits: _ ? 0 : void 0,
|
|
4205
4206
|
minimumFractionDigits: _ ? 0 : void 0
|
|
@@ -4237,11 +4238,11 @@ const Wn = {
|
|
|
4237
4238
|
f("option", {
|
|
4238
4239
|
value: "true",
|
|
4239
4240
|
selected: $.value === "true"
|
|
4240
|
-
},
|
|
4241
|
+
}, I(g(n)("grid.true")), 9, es),
|
|
4241
4242
|
f("option", {
|
|
4242
4243
|
value: "false",
|
|
4243
4244
|
selected: $.value === "false"
|
|
4244
|
-
},
|
|
4245
|
+
}, I(g(n)("grid.false")), 9, ls)
|
|
4245
4246
|
], 40, Jn)) : u.value ? (p(), P(ll, {
|
|
4246
4247
|
key: 1,
|
|
4247
4248
|
id: `${g(E)}-${y.column.name}`,
|
|
@@ -4268,7 +4269,7 @@ const Wn = {
|
|
|
4268
4269
|
id: `${g(E)}-${y.column.name}`,
|
|
4269
4270
|
"model-value": $.value === "" || isNaN(+$.value) ? null : +$.value,
|
|
4270
4271
|
format: m.value,
|
|
4271
|
-
precision: y.column.format === g(
|
|
4272
|
+
precision: y.column.format === g(le).INTEGER ? 0 : g(cl)(m.value, { locale: g(a) }).maximumFractionDigits,
|
|
4272
4273
|
class: "cl-border-none cl-font-normal cl-h-[2rem] cl-mb-0 cl-text-xs cl-w-full lg:cl-text-base",
|
|
4273
4274
|
disabled: y.loading,
|
|
4274
4275
|
readonly: y.loading,
|
|
@@ -4307,7 +4308,7 @@ const Wn = {
|
|
|
4307
4308
|
key: C.value,
|
|
4308
4309
|
value: C.value,
|
|
4309
4310
|
selected: $.value === C.value.toString()
|
|
4310
|
-
},
|
|
4311
|
+
}, I(g(n)(C.translationKey)), 9, is))), 128))
|
|
4311
4312
|
], 40, ss)) : z("", !0),
|
|
4312
4313
|
r.value ? z("", !0) : (p(), P(Yn, {
|
|
4313
4314
|
key: 6,
|
|
@@ -4367,7 +4368,7 @@ const Wn = {
|
|
|
4367
4368
|
onClick: (h) => g(Ge)(s) && r.loading === !1 ? c(s.field) : () => {
|
|
4368
4369
|
}
|
|
4369
4370
|
}, [
|
|
4370
|
-
ue(
|
|
4371
|
+
ue(I(s.caption) + " ", 1),
|
|
4371
4372
|
Q(D(g(Z), {
|
|
4372
4373
|
class: "cl-inline-block",
|
|
4373
4374
|
icon: "ph:caret-up"
|
|
@@ -4401,13 +4402,13 @@ const Wn = {
|
|
|
4401
4402
|
"cl-hidden lg:cl-table-cell": !g(sl)(s)
|
|
4402
4403
|
}])
|
|
4403
4404
|
}, [
|
|
4404
|
-
f("div", ms,
|
|
4405
|
+
f("div", ms, I(s.caption), 1),
|
|
4405
4406
|
g(Ge)(s) ? (p(), b("div", {
|
|
4406
4407
|
key: 0,
|
|
4407
4408
|
class: "cl-col-span-2 cl-gap-1 cl-span lg:cl-hidden",
|
|
4408
4409
|
onClick: (h) => r.loading === !1 ? c(s.field) : void 0
|
|
4409
4410
|
}, [
|
|
4410
|
-
f("span", vs,
|
|
4411
|
+
f("span", vs, I(g(n)("grid.sortBy")), 1),
|
|
4411
4412
|
d(s, !0) ? (p(), P(g(Z), {
|
|
4412
4413
|
key: 0,
|
|
4413
4414
|
class: "cl-cursor-pointer cl-inline-block",
|
|
@@ -4496,7 +4497,7 @@ const Wn = {
|
|
|
4496
4497
|
]);
|
|
4497
4498
|
};
|
|
4498
4499
|
}
|
|
4499
|
-
}), $s = { class: "cl-fixed cl-flex cl-h-full cl-justify-end cl-right-0 cl-shadow-lg cl-top-0 cl-z-40" }, Cs = { 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" }, Ts = { class: "cl-mb-4 cl-text-2xl cl-text-off-white" }, qs = { class: "cl-border-grey-3 cl-border-t cl-flex cl-flex-wrap cl-text-sm cl-w-full" }, Os = { class: "cl-border-b cl-border-grey-2 cl-flex cl-py-2 cl-text-sm cl-w-full" }, Ss = { class: "cl-flex-1 cl-py-2" }, Ds = { class: "cl-py-2 cl-w-1/4" }, Es = { class: "cl-py-2 cl-w-1/5" }, As = { class: "cl-flex-1 cl-py-2" }, Vs = { class: "cl-py-2 cl-w-1/4" },
|
|
4500
|
+
}), $s = { class: "cl-fixed cl-flex cl-h-full cl-justify-end cl-right-0 cl-shadow-lg cl-top-0 cl-z-40" }, Cs = { 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" }, Ts = { class: "cl-mb-4 cl-text-2xl cl-text-off-white" }, qs = { class: "cl-border-grey-3 cl-border-t cl-flex cl-flex-wrap cl-text-sm cl-w-full" }, Os = { class: "cl-border-b cl-border-grey-2 cl-flex cl-py-2 cl-text-sm cl-w-full" }, Ss = { class: "cl-flex-1 cl-py-2" }, Ds = { class: "cl-py-2 cl-w-1/4" }, Es = { class: "cl-py-2 cl-w-1/5" }, As = { class: "cl-flex-1 cl-py-2" }, Vs = { class: "cl-py-2 cl-w-1/4" }, Is = { class: "cl-py-2 cl-text-off-white cl-w-1/5" }, Ns = { key: 1 }, Rs = /* @__PURE__ */ F({
|
|
4500
4501
|
inheritAttrs: !1,
|
|
4501
4502
|
__name: "cl-ui-grid-view-manager",
|
|
4502
4503
|
props: {
|
|
@@ -4505,7 +4506,7 @@ const Wn = {
|
|
|
4505
4506
|
},
|
|
4506
4507
|
emits: ["update:columns"],
|
|
4507
4508
|
setup(t, { emit: o }) {
|
|
4508
|
-
const l = t, e = o, { t: n } = se(), a =
|
|
4509
|
+
const l = t, e = o, { t: n } = se(), a = N(!1);
|
|
4509
4510
|
function d(r, i, s) {
|
|
4510
4511
|
s < r.length && s >= 0 && r.splice(s, 0, r.splice(i, 1)[0]);
|
|
4511
4512
|
}
|
|
@@ -4518,14 +4519,14 @@ const Wn = {
|
|
|
4518
4519
|
d(s, r, m), e("update:columns", s);
|
|
4519
4520
|
}
|
|
4520
4521
|
return (r, i) => (p(), b(Y, null, [
|
|
4521
|
-
D($e,
|
|
4522
|
+
D($e, te(r.$attrs, {
|
|
4522
4523
|
class: "cl-w-full",
|
|
4523
4524
|
size: "small",
|
|
4524
4525
|
disabled: r.loading,
|
|
4525
4526
|
onClick: i[0] || (i[0] = ee((s) => a.value = !0, ["prevent"]))
|
|
4526
4527
|
}), {
|
|
4527
4528
|
default: R(() => [
|
|
4528
|
-
ue(
|
|
4529
|
+
ue(I(g(n)("grid.manageView")), 1)
|
|
4529
4530
|
]),
|
|
4530
4531
|
_: 1
|
|
4531
4532
|
}, 16, ["disabled"]),
|
|
@@ -4540,25 +4541,25 @@ const Wn = {
|
|
|
4540
4541
|
size: 16,
|
|
4541
4542
|
onClick: i[1] || (i[1] = (s) => a.value = !1)
|
|
4542
4543
|
}),
|
|
4543
|
-
f("h3", Ts,
|
|
4544
|
+
f("h3", Ts, I(g(n)("grid.manageView")), 1),
|
|
4544
4545
|
f("ul", qs, [
|
|
4545
4546
|
f("li", Os, [
|
|
4546
|
-
f("strong", Ss,
|
|
4547
|
-
f("strong", Ds,
|
|
4548
|
-
f("strong", Es,
|
|
4547
|
+
f("strong", Ss, I(g(n)("grid.column")), 1),
|
|
4548
|
+
f("strong", Ds, I(g(n)("grid.visible")), 1),
|
|
4549
|
+
f("strong", Es, I(g(n)("grid.order")), 1)
|
|
4549
4550
|
]),
|
|
4550
4551
|
(p(!0), b(Y, null, re(r.columns, (s, m) => (p(), b("li", {
|
|
4551
4552
|
key: m,
|
|
4552
4553
|
class: "cl-border-b cl-border-grey-2 cl-flex cl-py-2 cl-text-sm cl-w-full"
|
|
4553
4554
|
}, [
|
|
4554
|
-
f("div", As,
|
|
4555
|
+
f("div", As, I(s.caption), 1),
|
|
4555
4556
|
f("div", Vs, [
|
|
4556
4557
|
D(rl, {
|
|
4557
4558
|
"model-value": s.visible === void 0 || s.visible === !0,
|
|
4558
4559
|
"onUpdate:modelValue": (h) => c(h, s)
|
|
4559
4560
|
}, null, 8, ["model-value", "onUpdate:modelValue"])
|
|
4560
4561
|
]),
|
|
4561
|
-
f("div",
|
|
4562
|
+
f("div", Is, [
|
|
4562
4563
|
s.visible === void 0 || s.visible === !0 ? (p(), b(Y, { key: 0 }, [
|
|
4563
4564
|
m !== 0 ? (p(), P(g(Z), {
|
|
4564
4565
|
key: 0,
|
|
@@ -4572,7 +4573,7 @@ const Wn = {
|
|
|
4572
4573
|
icon: "ph:arrow-right",
|
|
4573
4574
|
onClick: (h) => u(m, "up")
|
|
4574
4575
|
}, null, 8, ["onClick"])) : z("", !0)
|
|
4575
|
-
], 64)) : (p(), b("em",
|
|
4576
|
+
], 64)) : (p(), b("em", Ns, I(g(n)("grid.hidden")), 1))
|
|
4576
4577
|
])
|
|
4577
4578
|
]))), 128))
|
|
4578
4579
|
])
|
|
@@ -4608,7 +4609,7 @@ const Wn = {
|
|
|
4608
4609
|
const c = O({
|
|
4609
4610
|
get: () => l.columns,
|
|
4610
4611
|
set: (E) => e("update:columns", E)
|
|
4611
|
-
}), u = O(() => c.value.filter((E) => E.visible ?? !0)), r =
|
|
4612
|
+
}), u = O(() => c.value.filter((E) => E.visible ?? !0)), r = N({});
|
|
4612
4613
|
function i() {
|
|
4613
4614
|
const E = {};
|
|
4614
4615
|
window.innerWidth >= 1024 && c.value.forEach((y) => {
|
|
@@ -4635,7 +4636,7 @@ const Wn = {
|
|
|
4635
4636
|
deep: !0,
|
|
4636
4637
|
immediate: !0
|
|
4637
4638
|
});
|
|
4638
|
-
const T = O(() => l.data), $ =
|
|
4639
|
+
const T = O(() => l.data), $ = N(!1), q = N(!1);
|
|
4639
4640
|
oe($, () => {
|
|
4640
4641
|
$.value ? e("edit-start") : Me(() => e("edit-end"));
|
|
4641
4642
|
});
|
|
@@ -4658,7 +4659,7 @@ const Wn = {
|
|
|
4658
4659
|
filters: y
|
|
4659
4660
|
};
|
|
4660
4661
|
}
|
|
4661
|
-
}), B =
|
|
4662
|
+
}), B = N(((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));
|
|
4662
4663
|
return (E, y) => (p(), b("div", Ms, [
|
|
4663
4664
|
x.value.length > 0 ? (p(), P(ks, {
|
|
4664
4665
|
key: 0,
|
|
@@ -4743,7 +4744,7 @@ const Wn = {
|
|
|
4743
4744
|
onRowEdit: y[7] || (y[7] = (v) => E.$emit("row-edit", v)),
|
|
4744
4745
|
onRowEditCancelled: y[8] || (y[8] = (v) => E.$emit("row-edit-cancelled", v)),
|
|
4745
4746
|
onRowSelect: y[9] || (y[9] = (v) => E.$emit("row-select", v))
|
|
4746
|
-
},
|
|
4747
|
+
}, Ie({ _: 2 }, [
|
|
4747
4748
|
re(E.$slots, (v, C) => ({
|
|
4748
4749
|
name: C,
|
|
4749
4750
|
fn: R((_) => [
|
|
@@ -4771,7 +4772,7 @@ const Wn = {
|
|
|
4771
4772
|
},
|
|
4772
4773
|
emits: ["open-click"],
|
|
4773
4774
|
setup(t, { emit: o }) {
|
|
4774
|
-
const l = t, e = o, n =
|
|
4775
|
+
const l = t, e = o, n = N();
|
|
4775
4776
|
return nl(n, () => {
|
|
4776
4777
|
(l.isOpen ?? !1) && e("open-click");
|
|
4777
4778
|
}), (a, d) => (p(), b("header", Bs, [
|
|
@@ -4829,8 +4830,8 @@ const Wn = {
|
|
|
4829
4830
|
"cl-text-white": o.colour === "secondary"
|
|
4830
4831
|
}])
|
|
4831
4832
|
}, [
|
|
4832
|
-
o.username ? (p(), b("div", Ws,
|
|
4833
|
-
o.group ? (p(), b("div", Zs,
|
|
4833
|
+
o.username ? (p(), b("div", Ws, I(o.username), 1)) : z("", !0),
|
|
4834
|
+
o.group ? (p(), b("div", Zs, I(o.group), 1)) : z("", !0)
|
|
4834
4835
|
], 2),
|
|
4835
4836
|
f("div", Gs, [
|
|
4836
4837
|
D(g(Z), {
|
|
@@ -4906,7 +4907,7 @@ const Xs = {
|
|
|
4906
4907
|
},
|
|
4907
4908
|
emits: ["language-select"],
|
|
4908
4909
|
setup(t, { emit: o }) {
|
|
4909
|
-
const l = t, e = o, { locale: n } = se(), a =
|
|
4910
|
+
const l = t, e = o, { locale: n } = se(), a = N(!1), d = O(() => l.supportedLanguages.find((i) => i.localeCode === n.value) ?? u(l.supportedLanguages, n.value) ?? l.defaultLangauge), c = O(() => l.supportedLanguages.filter((i) => tl(i)).sort((i, s) => i.nativeName > s.nativeName ? 1 : s.nativeName > i.nativeName ? -1 : 0));
|
|
4910
4911
|
function u(i, s) {
|
|
4911
4912
|
const m = s.split("-")[0];
|
|
4912
4913
|
return i.find((k) => k.localeCode.split("-")[0] === m) ?? null;
|
|
@@ -4927,7 +4928,7 @@ const Xs = {
|
|
|
4927
4928
|
class: L(["cl-font-semibold cl-text-xs", {
|
|
4928
4929
|
"cl-opacity-50": i.disabled
|
|
4929
4930
|
}])
|
|
4930
|
-
},
|
|
4931
|
+
}, I(d.value.nativeName), 3)
|
|
4931
4932
|
], 2),
|
|
4932
4933
|
D(Ce, { name: "fade" }, {
|
|
4933
4934
|
default: R(() => [
|
|
@@ -4941,7 +4942,7 @@ const Xs = {
|
|
|
4941
4942
|
n.value = m.localeCode, r(), e("language-select", m.localeCode);
|
|
4942
4943
|
}
|
|
4943
4944
|
}, [
|
|
4944
|
-
f("span", tr,
|
|
4945
|
+
f("span", tr, I(m.nativeName), 1)
|
|
4945
4946
|
], 8, lr))), 128))
|
|
4946
4947
|
], 512), [
|
|
4947
4948
|
[X, a.value]
|
|
@@ -4965,7 +4966,7 @@ const Xs = {
|
|
|
4965
4966
|
},
|
|
4966
4967
|
emits: ["login", "update:errors"],
|
|
4967
4968
|
setup(t, { emit: o }) {
|
|
4968
|
-
const l = o, { t: e } = se(), n =
|
|
4969
|
+
const l = o, { t: e } = se(), n = N(""), a = N(""), d = N("password"), c = O(() => st(n.value));
|
|
4969
4970
|
function u() {
|
|
4970
4971
|
const i = {
|
|
4971
4972
|
username: n.value,
|
|
@@ -5023,7 +5024,7 @@ const Xs = {
|
|
|
5023
5024
|
]),
|
|
5024
5025
|
_: 1
|
|
5025
5026
|
}, 8, ["modelValue", "class", "errors", "placeholder"]),
|
|
5026
|
-
c.value ? (p(), b("div", fr,
|
|
5027
|
+
c.value ? (p(), b("div", fr, I(g(e)("login.validEmail")), 1)) : z("", !0)
|
|
5027
5028
|
])
|
|
5028
5029
|
])
|
|
5029
5030
|
]),
|
|
@@ -5082,7 +5083,7 @@ const Xs = {
|
|
|
5082
5083
|
onClick: ee(u, ["prevent"])
|
|
5083
5084
|
}, {
|
|
5084
5085
|
default: R(() => [
|
|
5085
|
-
ue(
|
|
5086
|
+
ue(I(g(e)("login.login")), 1)
|
|
5086
5087
|
]),
|
|
5087
5088
|
_: 1
|
|
5088
5089
|
}, 8, ["loading", "disabled"])
|
|
@@ -5097,7 +5098,7 @@ const Xs = {
|
|
|
5097
5098
|
id: "cl-ui-login-errors",
|
|
5098
5099
|
key: k,
|
|
5099
5100
|
class: "cl-font-semibold"
|
|
5100
|
-
},
|
|
5101
|
+
}, I(h), 1))), 128))
|
|
5101
5102
|
], 512), [
|
|
5102
5103
|
[X, (m = i.errors) == null ? void 0 : m.length]
|
|
5103
5104
|
])
|
|
@@ -5127,7 +5128,7 @@ const Xs = {
|
|
|
5127
5128
|
},
|
|
5128
5129
|
emits: ["pinned-state", "open-state"],
|
|
5129
5130
|
setup(t, { expose: o, emit: l }) {
|
|
5130
|
-
const e = l, n =
|
|
5131
|
+
const e = l, n = N([]), a = O(() => n.value.filter(($) => $.open === !0).length > 0);
|
|
5131
5132
|
function d($) {
|
|
5132
5133
|
let q = n.value.find((U) => U.id === $);
|
|
5133
5134
|
return q || (q = {
|
|
@@ -5152,11 +5153,11 @@ const Xs = {
|
|
|
5152
5153
|
deep: !0
|
|
5153
5154
|
}
|
|
5154
5155
|
);
|
|
5155
|
-
const r =
|
|
5156
|
+
const r = N(!1), i = N(!1), { start: s } = Il(() => i.value = !1, 100);
|
|
5156
5157
|
function m() {
|
|
5157
5158
|
r.value = !r.value, e("pinned-state", r.value), i.value = !0, s();
|
|
5158
5159
|
}
|
|
5159
|
-
const h =
|
|
5160
|
+
const h = N();
|
|
5160
5161
|
function k($) {
|
|
5161
5162
|
m(), typeof $ == "number" && c($);
|
|
5162
5163
|
}
|
|
@@ -5180,7 +5181,7 @@ const Xs = {
|
|
|
5180
5181
|
"cl-bg-blue-dark": $.colour === "secondary"
|
|
5181
5182
|
}])
|
|
5182
5183
|
}, [
|
|
5183
|
-
M($.$slots, "icon",
|
|
5184
|
+
M($.$slots, "icon", te({ navcolour: $.colour }, { groupIsOpen: d, toggleOpen: c }), void 0, !0)
|
|
5184
5185
|
], 2),
|
|
5185
5186
|
i.value ? (p(), b("div", kr)) : z("", !0),
|
|
5186
5187
|
D(Ce, { name: "slide-right" }, {
|
|
@@ -5262,18 +5263,18 @@ const Xs = {
|
|
|
5262
5263
|
}), Er = {}, Ar = { class: "cl-w-full" }, Vr = {
|
|
5263
5264
|
key: 0,
|
|
5264
5265
|
class: "cl-font-bold cl-mb-4 cl-select-none"
|
|
5265
|
-
},
|
|
5266
|
-
function
|
|
5266
|
+
}, Ir = { class: "cl-flex cl-flex-wrap cl-space-y-2" };
|
|
5267
|
+
function Nr(t, o) {
|
|
5267
5268
|
return p(), b("div", Ar, [
|
|
5268
5269
|
t.$slots.title ? (p(), b("div", Vr, [
|
|
5269
5270
|
M(t.$slots, "title")
|
|
5270
5271
|
])) : z("", !0),
|
|
5271
|
-
f("span",
|
|
5272
|
+
f("span", Ir, [
|
|
5272
5273
|
M(t.$slots, "default")
|
|
5273
5274
|
])
|
|
5274
5275
|
]);
|
|
5275
5276
|
}
|
|
5276
|
-
const Rr = /* @__PURE__ */ he(Er, [["render",
|
|
5277
|
+
const Rr = /* @__PURE__ */ he(Er, [["render", Nr]]), Mr = {}, Ur = { class: "cl-cursor-pointer cl-transition-colors cl-w-full hover:cl-text-primary-darker" };
|
|
5277
5278
|
function zr(t, o) {
|
|
5278
5279
|
return p(), b("div", Ur, [
|
|
5279
5280
|
M(t.$slots, "default")
|
|
@@ -5287,7 +5288,7 @@ const Lr = /* @__PURE__ */ he(Mr, [["render", zr]]), jr = /* @__PURE__ */ F({
|
|
|
5287
5288
|
},
|
|
5288
5289
|
emits: ["tab-opened"],
|
|
5289
5290
|
setup(t, { expose: o, emit: l }) {
|
|
5290
|
-
const e = t, n = l, a =
|
|
5291
|
+
const e = t, n = l, a = N([]), d = O(() => a.value.filter((q) => q.open).length > 0), c = N(), u = N(!1), r = N(!1), i = O(() => e.layout === "horizontal");
|
|
5291
5292
|
function s() {
|
|
5292
5293
|
if (c.value) {
|
|
5293
5294
|
const q = c.value.scrollWidth - c.value.clientWidth;
|
|
@@ -5404,7 +5405,7 @@ const Lr = /* @__PURE__ */ he(Mr, [["render", zr]]), jr = /* @__PURE__ */ F({
|
|
|
5404
5405
|
inert: e.disabled
|
|
5405
5406
|
}, [
|
|
5406
5407
|
M(e.$slots, "default", {}, () => [
|
|
5407
|
-
ue(
|
|
5408
|
+
ue(I(e.title), 1)
|
|
5408
5409
|
])
|
|
5409
5410
|
], 10, Br));
|
|
5410
5411
|
}
|
|
@@ -5417,7 +5418,7 @@ const Lr = /* @__PURE__ */ he(Mr, [["render", zr]]), jr = /* @__PURE__ */ F({
|
|
|
5417
5418
|
setup(t) {
|
|
5418
5419
|
return (o, l) => o.open ? (p(), b("div", Pr, [
|
|
5419
5420
|
M(o.$slots, "header", {}, () => [
|
|
5420
|
-
f("h4", Hr,
|
|
5421
|
+
f("h4", Hr, I(o.title), 1)
|
|
5421
5422
|
]),
|
|
5422
5423
|
M(o.$slots, "default")
|
|
5423
5424
|
])) : z("", !0);
|
|
@@ -5464,7 +5465,7 @@ const Lr = /* @__PURE__ */ he(Mr, [["render", zr]]), jr = /* @__PURE__ */ F({
|
|
|
5464
5465
|
"dragover",
|
|
5465
5466
|
"dragleave",
|
|
5466
5467
|
"drop"
|
|
5467
|
-
], c =
|
|
5468
|
+
], c = N(!1);
|
|
5468
5469
|
Fe(() => {
|
|
5469
5470
|
d.forEach((s) => {
|
|
5470
5471
|
document.body.addEventListener(s, (m) => m.preventDefault());
|
|
@@ -5474,12 +5475,12 @@ const Lr = /* @__PURE__ */ he(Mr, [["render", zr]]), jr = /* @__PURE__ */ F({
|
|
|
5474
5475
|
document.body.removeEventListener(s, (m) => m.preventDefault());
|
|
5475
5476
|
});
|
|
5476
5477
|
});
|
|
5477
|
-
const u =
|
|
5478
|
+
const u = N(null), r = N(null);
|
|
5478
5479
|
function i() {
|
|
5479
5480
|
u.value && (u.value.value = ""), r.value && (r.value.value = "");
|
|
5480
5481
|
}
|
|
5481
5482
|
return (s, m) => (p(), b("div", Qr, [
|
|
5482
|
-
s.uploaderType === "dragDrop" ? (p(), b("label",
|
|
5483
|
+
s.uploaderType === "dragDrop" ? (p(), b("label", te({ key: 0 }, s.$attrs, {
|
|
5483
5484
|
role: "button",
|
|
5484
5485
|
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", {
|
|
5485
5486
|
"cl-bg-grey-3 cl-border-grey-5 cl-cursor-default": s.disabled === !0,
|
|
@@ -5595,7 +5596,7 @@ export {
|
|
|
5595
5596
|
fi as CitrusLimeUI,
|
|
5596
5597
|
ce as DateFormat,
|
|
5597
5598
|
J as FilterOperation,
|
|
5598
|
-
|
|
5599
|
+
le as NumberFormat,
|
|
5599
5600
|
Kl as allQuickDates,
|
|
5600
5601
|
Ut as buttonColours,
|
|
5601
5602
|
zt as buttonSizes,
|