@citruslime/ui 3.0.2-beta.1 → 3.0.2-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Icon as _ } from "@iconify/vue";
|
|
2
|
-
import { defineComponent as P, ref as V, openBlock as p, createElementBlock as v, renderSlot as M, normalizeProps as ce, guardReactiveProps as pe, Fragment as Y, createElementVNode as m, normalizeClass as O, createVNode as C, unref as g, Transition as Me, withCtx as
|
|
2
|
+
import { defineComponent as P, ref as V, openBlock as p, createElementBlock as v, renderSlot as M, normalizeProps as ce, guardReactiveProps as pe, Fragment as Y, createElementVNode as m, normalizeClass as O, createVNode as C, unref as g, Transition as Me, withCtx as E, withDirectives as le, mergeProps as J, vShow as ue, createBlock as G, Teleport as wl, renderList as ne, toDisplayString as A, createCommentVNode as L, computed as $, mergeModels as fe, useModel as ve, createSlots as Te, vModelDynamic as jl, watch as te, toRefs as Pl, withKeys as be, onMounted as We, onUnmounted as sl, withModifiers as ae, nextTick as Ue, useAttrs as Ke, resolveComponent as Se, createTextVNode as ie, inject as rl, vModelCheckbox as yt, toValue as Al, watchEffect as wt, vModelText as kl, useCssVars as Gl, toHandlers as kt, pushScopeId as Hl, popScopeId as Zl, provide as vl, normalizeStyle as il } from "vue";
|
|
3
3
|
import { generateStringId as $t, highlightText as Ct, validateEmail as Tt } from "@citruslime/utils";
|
|
4
|
-
import { onKeyDown as bl, unrefElement as St, tryOnScopeDispose as qt, onClickOutside as Qe, useTimeoutFn as Wl, useMouseInElement as Ot, useFocusWithin as Dt, useMediaQuery as Kl, useThrottle as
|
|
4
|
+
import { onKeyDown as bl, unrefElement as St, tryOnScopeDispose as qt, onClickOutside as Qe, useTimeoutFn as Wl, useMouseInElement as Ot, useFocusWithin as Dt, useMediaQuery as Kl, useThrottle as At, useElementBounding as Et, useDebounceFn as el, useThrottleFn as Vt, useWindowSize as Mt, useBreakpoints as It, breakpointsTailwind as Nt } from "@vueuse/core";
|
|
5
5
|
import { useI18n as de, createI18n as Rt } from "vue-i18n";
|
|
6
6
|
import { createFocusTrap as Ut } from "focus-trap";
|
|
7
7
|
import { copy as me } from "@citruslime/vue-utils";
|
|
@@ -68,7 +68,7 @@ const Lt = { class: "cl-overflow-hidden" }, Bt = /* @__PURE__ */ P({
|
|
|
68
68
|
], 2),
|
|
69
69
|
m("div", Pt, [
|
|
70
70
|
C(Me, { name: "grow-down" }, {
|
|
71
|
-
default:
|
|
71
|
+
default: E(() => [
|
|
72
72
|
le(m("div", J(n.$attrs, { class: "cl-ml-10 cl-p-4" }), [
|
|
73
73
|
M(n.$slots, "default")
|
|
74
74
|
], 16), [
|
|
@@ -92,7 +92,7 @@ function Wt(o, t) {
|
|
|
92
92
|
]);
|
|
93
93
|
}
|
|
94
94
|
const Kt = /* @__PURE__ */ ye(Ht, [["render", Wt]]), ll = V([]);
|
|
95
|
-
function
|
|
95
|
+
function El(o) {
|
|
96
96
|
const t = {
|
|
97
97
|
id: $t(),
|
|
98
98
|
...o
|
|
@@ -132,7 +132,7 @@ const Qt = ["onClick"], Yt = { class: "cl-flex-1 cl-select-none cl-text-ellipsis
|
|
|
132
132
|
}],
|
|
133
133
|
onClick: (n) => g(Ql)(e)
|
|
134
134
|
}), [
|
|
135
|
-
m("span", Yt,
|
|
135
|
+
m("span", Yt, A(e.message), 1),
|
|
136
136
|
C(g(_), {
|
|
137
137
|
class: "cl-inline-block cl-opacity-0 cl-transition-opacity group-hover:cl-opacity-100",
|
|
138
138
|
icon: "ph:x",
|
|
@@ -322,7 +322,7 @@ const cl = /* @__PURE__ */ ye(xt, [["render", eo], ["__scopeId", "data-v-a21dc5d
|
|
|
322
322
|
(p(!0), v(Y, null, ne(e.errors, (n, d) => (p(), v("div", {
|
|
323
323
|
key: d,
|
|
324
324
|
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"
|
|
325
|
-
},
|
|
325
|
+
}, A(n), 1))), 128))
|
|
326
326
|
])
|
|
327
327
|
])) : e.errors ? (p(), v("div", vo, " ")) : L("", !0)
|
|
328
328
|
]));
|
|
@@ -360,7 +360,7 @@ const cl = /* @__PURE__ */ ye(xt, [["render", eo], ["__scopeId", "data-v-a21dc5d
|
|
|
360
360
|
"show-required-asterisk": d.required,
|
|
361
361
|
errors: d.errors
|
|
362
362
|
}, Te({
|
|
363
|
-
default:
|
|
363
|
+
default: E(() => [
|
|
364
364
|
le(m("input", J(d.$attrs, {
|
|
365
365
|
ref_key: "inputRef",
|
|
366
366
|
ref: n,
|
|
@@ -380,7 +380,7 @@ const cl = /* @__PURE__ */ ye(xt, [["render", eo], ["__scopeId", "data-v-a21dc5d
|
|
|
380
380
|
}, [
|
|
381
381
|
d.$slots.default ? {
|
|
382
382
|
name: "label",
|
|
383
|
-
fn:
|
|
383
|
+
fn: E(() => [
|
|
384
384
|
M(d.$slots, "default")
|
|
385
385
|
]),
|
|
386
386
|
key: "0"
|
|
@@ -456,7 +456,7 @@ const yo = /* @__PURE__ */ m("div", { tabindex: "0" }, null, -1), wo = {
|
|
|
456
456
|
M(i.$slots, "trigger", ce(pe({ open: d }))),
|
|
457
457
|
(p(), G(wl, { to: "body" }, [
|
|
458
458
|
C(Me, { name: "fade" }, {
|
|
459
|
-
default:
|
|
459
|
+
default: E(() => [
|
|
460
460
|
le(m("div", {
|
|
461
461
|
ref_key: "clUiModal",
|
|
462
462
|
ref: s,
|
|
@@ -521,13 +521,13 @@ const yo = /* @__PURE__ */ m("div", { tabindex: "0" }, null, -1), wo = {
|
|
|
521
521
|
emits: ["clear-object"],
|
|
522
522
|
setup(o) {
|
|
523
523
|
return (t, l) => (p(), v("div", $o, [
|
|
524
|
-
t.additionalText !== "" ? (p(), v("div", Co,
|
|
524
|
+
t.additionalText !== "" ? (p(), v("div", Co, A(t.additionalText), 1)) : L("", !0),
|
|
525
525
|
m("div", {
|
|
526
526
|
class: O({
|
|
527
527
|
"cl-w-1/2": t.additionalText !== "",
|
|
528
528
|
"cl-w-full": t.additionalText === ""
|
|
529
529
|
})
|
|
530
|
-
},
|
|
530
|
+
}, A(t.text), 3),
|
|
531
531
|
le(m("div", {
|
|
532
532
|
class: "cl-cursor-pointer cl-float-right",
|
|
533
533
|
onMousedown: l[0] || (l[0] = (e) => t.$emit("clear-object"))
|
|
@@ -584,13 +584,13 @@ const yo = /* @__PURE__ */ m("div", { tabindex: "0" }, null, -1), wo = {
|
|
|
584
584
|
onMousemove: r[0] || (r[0] = (k) => c(!0)),
|
|
585
585
|
onMouseleave: r[1] || (r[1] = (k) => c(!1))
|
|
586
586
|
}, [
|
|
587
|
-
a.option !== null && ((f = a.option) == null ? void 0 : f.parentId) !== 0 && ((y = a.option) == null ? void 0 : y.parentId) !== void 0 ? (p(), v("div", To,
|
|
587
|
+
a.option !== null && ((f = a.option) == null ? void 0 : f.parentId) !== 0 && ((y = a.option) == null ? void 0 : y.parentId) !== void 0 ? (p(), v("div", To, A(n.value), 1)) : L("", !0),
|
|
588
588
|
m("div", {
|
|
589
589
|
class: O({
|
|
590
590
|
"cl-w-1/2": n.value !== "",
|
|
591
591
|
"cl-w-full": n.value === ""
|
|
592
592
|
})
|
|
593
|
-
},
|
|
593
|
+
}, A(s.value), 3),
|
|
594
594
|
le(m("div", So, [
|
|
595
595
|
C(g(_), {
|
|
596
596
|
class: "cl-transition-colors",
|
|
@@ -605,7 +605,7 @@ const yo = /* @__PURE__ */ m("div", { tabindex: "0" }, null, -1), wo = {
|
|
|
605
605
|
}), qo = ["onKeyup"], Oo = {
|
|
606
606
|
key: 0,
|
|
607
607
|
class: "cl-absolute cl-bg-off-white cl-flex cl-h-full cl-items-center cl-justify-center cl-top-0 cl-w-full cl-z-20"
|
|
608
|
-
}, Do = { class: "cl-bg-white cl-flex cl-p-2 cl-pb-1 cl-sticky cl-top-0 cl-w-full cl-z-10" },
|
|
608
|
+
}, Do = { class: "cl-bg-white cl-flex cl-p-2 cl-pb-1 cl-sticky cl-top-0 cl-w-full cl-z-10" }, Ao = { class: "cl-inline-block cl-w-full" }, Eo = /* @__PURE__ */ m("span", null, null, -1), Vo = { key: 6 }, Mo = /* @__PURE__ */ P({
|
|
609
609
|
__name: "cl-ui-combo-box-search",
|
|
610
610
|
props: {
|
|
611
611
|
loading: { type: Boolean, default: !1 },
|
|
@@ -693,7 +693,7 @@ const yo = /* @__PURE__ */ m("div", { tabindex: "0" }, null, -1), wo = {
|
|
|
693
693
|
C(cl)
|
|
694
694
|
])) : L("", !0),
|
|
695
695
|
m("div", Do, [
|
|
696
|
-
m("div",
|
|
696
|
+
m("div", Ao, [
|
|
697
697
|
C(Re, {
|
|
698
698
|
id: `cl-ui-combo-box-search-input-${I.objectType}`,
|
|
699
699
|
modelValue: n.value,
|
|
@@ -704,8 +704,8 @@ const yo = /* @__PURE__ */ m("div", { tabindex: "0" }, null, -1), wo = {
|
|
|
704
704
|
onKeyup: a,
|
|
705
705
|
onBlur: y
|
|
706
706
|
}, {
|
|
707
|
-
default:
|
|
708
|
-
|
|
707
|
+
default: E(() => [
|
|
708
|
+
Eo
|
|
709
709
|
]),
|
|
710
710
|
_: 1
|
|
711
711
|
}, 8, ["id", "modelValue", "placeholder"])
|
|
@@ -827,7 +827,7 @@ const yo = /* @__PURE__ */ m("div", { tabindex: "0" }, null, -1), wo = {
|
|
|
827
827
|
}
|
|
828
828
|
function he() {
|
|
829
829
|
var w, N;
|
|
830
|
-
(w = e.objectCreatedResponse) != null && w.error ?
|
|
830
|
+
(w = e.objectCreatedResponse) != null && w.error ? El({
|
|
831
831
|
message: a("comboBox.createFailed", {
|
|
832
832
|
name: b.value,
|
|
833
833
|
error: e.objectCreatedResponse.error
|
|
@@ -845,7 +845,7 @@ const yo = /* @__PURE__ */ m("div", { tabindex: "0" }, null, -1), wo = {
|
|
|
845
845
|
}
|
|
846
846
|
function je() {
|
|
847
847
|
var N, Q, h, U, W;
|
|
848
|
-
|
|
848
|
+
El({
|
|
849
849
|
message: a("comboBox.createSuccessful", {
|
|
850
850
|
object: e.objectType,
|
|
851
851
|
name: ((N = e.objectCreatedResponse) == null ? void 0 : N.name) ?? ""
|
|
@@ -865,11 +865,11 @@ const yo = /* @__PURE__ */ m("div", { tabindex: "0" }, null, -1), wo = {
|
|
|
865
865
|
let w = "";
|
|
866
866
|
return f.value && (f.value.parentName ? w = f.value.parentName + "; " + f.value.name : w = f.value.name), w;
|
|
867
867
|
}
|
|
868
|
-
function
|
|
868
|
+
function D() {
|
|
869
869
|
let w = !0;
|
|
870
870
|
b.value === "" && (w = !1), e.objectParentType !== "" && y.value === null && (w = !1), B.value = w;
|
|
871
871
|
}
|
|
872
|
-
te(() => e.objectCreatedResponse, () => he()), te(() => e.parentObjectCreatedResponse, () => ge()), te(() => b.value, () =>
|
|
872
|
+
te(() => e.objectCreatedResponse, () => he()), te(() => e.parentObjectCreatedResponse, () => ge()), te(() => b.value, () => D()), te(() => y.value, () => D());
|
|
873
873
|
const Z = V();
|
|
874
874
|
return Qe(Z, () => r.value ? z(!1) : ""), t({
|
|
875
875
|
focus() {
|
|
@@ -896,7 +896,7 @@ const yo = /* @__PURE__ */ m("div", { tabindex: "0" }, null, -1), wo = {
|
|
|
896
896
|
z(), w.$emit("focus");
|
|
897
897
|
})
|
|
898
898
|
}, {
|
|
899
|
-
default:
|
|
899
|
+
default: E(() => [
|
|
900
900
|
Ro
|
|
901
901
|
]),
|
|
902
902
|
_: 1
|
|
@@ -904,7 +904,7 @@ const yo = /* @__PURE__ */ m("div", { tabindex: "0" }, null, -1), wo = {
|
|
|
904
904
|
]),
|
|
905
905
|
le(m("div", Uo, [
|
|
906
906
|
m("div", zo, [
|
|
907
|
-
ie(
|
|
907
|
+
ie(A(g(a)("comboBox.required")) + " ", 1),
|
|
908
908
|
C(g(_), {
|
|
909
909
|
class: "cl-ml-1 cl-mt-1",
|
|
910
910
|
icon: "ph:warning"
|
|
@@ -942,10 +942,10 @@ const yo = /* @__PURE__ */ m("div", { tabindex: "0" }, null, -1), wo = {
|
|
|
942
942
|
], 10, Lo))
|
|
943
943
|
]),
|
|
944
944
|
C(_l, { size: "small" }, {
|
|
945
|
-
title:
|
|
946
|
-
ie(
|
|
945
|
+
title: E(() => [
|
|
946
|
+
ie(A(g(a)("comboBox.createTitle", { object: w.objectType })), 1)
|
|
947
947
|
]),
|
|
948
|
-
trigger:
|
|
948
|
+
trigger: E(({ open: h }) => [
|
|
949
949
|
le(C(Mo, {
|
|
950
950
|
"can-create-new-object": w.canCreateNewObject,
|
|
951
951
|
"can-clear-selected-object": w.canClearSelectedObject,
|
|
@@ -969,7 +969,7 @@ const yo = /* @__PURE__ */ m("div", { tabindex: "0" }, null, -1), wo = {
|
|
|
969
969
|
[ue, r.value]
|
|
970
970
|
])
|
|
971
971
|
]),
|
|
972
|
-
footer:
|
|
972
|
+
footer: E(({ close: h }) => [
|
|
973
973
|
m("div", jo, [
|
|
974
974
|
C(ke, {
|
|
975
975
|
class: "cl-mr-3",
|
|
@@ -977,8 +977,8 @@ const yo = /* @__PURE__ */ m("div", { tabindex: "0" }, null, -1), wo = {
|
|
|
977
977
|
size: "small",
|
|
978
978
|
onClick: h
|
|
979
979
|
}, {
|
|
980
|
-
default:
|
|
981
|
-
ie(
|
|
980
|
+
default: E(() => [
|
|
981
|
+
ie(A(g(a)("comboBox.cancel")), 1)
|
|
982
982
|
]),
|
|
983
983
|
_: 2
|
|
984
984
|
}, 1032, ["onClick"]),
|
|
@@ -990,14 +990,14 @@ const yo = /* @__PURE__ */ m("div", { tabindex: "0" }, null, -1), wo = {
|
|
|
990
990
|
j(), h();
|
|
991
991
|
}
|
|
992
992
|
}, {
|
|
993
|
-
default:
|
|
994
|
-
ie(
|
|
993
|
+
default: E(() => [
|
|
994
|
+
ie(A(g(a)("comboBox.create")), 1)
|
|
995
995
|
]),
|
|
996
996
|
_: 2
|
|
997
997
|
}, 1032, ["disabled", "onClick"])
|
|
998
998
|
])
|
|
999
999
|
]),
|
|
1000
|
-
default:
|
|
1000
|
+
default: E(() => [
|
|
1001
1001
|
m("div", Fo, [
|
|
1002
1002
|
w.objectParentType ? (p(), G(Q, {
|
|
1003
1003
|
key: 0,
|
|
@@ -1019,8 +1019,8 @@ const yo = /* @__PURE__ */ m("div", { tabindex: "0" }, null, -1), wo = {
|
|
|
1019
1019
|
"onUpdate:modelValue": N[6] || (N[6] = (h) => b.value = h),
|
|
1020
1020
|
class: "cl-box-border cl-font-light cl-mb-2 cl-p-2 cl-placeholder-grey-3 cl-text-sm"
|
|
1021
1021
|
}, {
|
|
1022
|
-
default:
|
|
1023
|
-
ie(
|
|
1022
|
+
default: E(() => [
|
|
1023
|
+
ie(A(g(a)("comboBox.createProperty")), 1)
|
|
1024
1024
|
]),
|
|
1025
1025
|
_: 1
|
|
1026
1026
|
}, 8, ["modelValue"])
|
|
@@ -1094,7 +1094,7 @@ const ea = { class: "cl-flex cl-flex-wrap cl-gap-1 cl-overflow-auto cl-pb-2 lg:c
|
|
|
1094
1094
|
"cl-hidden": n.options.hideGridMobileView
|
|
1095
1095
|
}])
|
|
1096
1096
|
}, [
|
|
1097
|
-
m("strong", null,
|
|
1097
|
+
m("strong", null, A(g(l)("grid.gridTools")), 1)
|
|
1098
1098
|
], 2),
|
|
1099
1099
|
m("div", ea, [
|
|
1100
1100
|
m("div", la, [
|
|
@@ -1112,11 +1112,11 @@ const ea = { class: "cl-flex cl-flex-wrap cl-gap-1 cl-overflow-auto cl-pb-2 lg:c
|
|
|
1112
1112
|
disabled: n.loading,
|
|
1113
1113
|
onClick: d[0] || (d[0] = ae((u) => n.$emit("update:edit-mode", !n.editMode), ["prevent"]))
|
|
1114
1114
|
}, {
|
|
1115
|
-
default:
|
|
1115
|
+
default: E(() => [
|
|
1116
1116
|
n.editMode ? (p(), v(Y, { key: 0 }, [
|
|
1117
|
-
ie(
|
|
1117
|
+
ie(A(g(l)("grid.finishEditing")), 1)
|
|
1118
1118
|
], 64)) : (p(), v(Y, { key: 1 }, [
|
|
1119
|
-
ie(
|
|
1119
|
+
ie(A(g(l)("grid.editData")), 1)
|
|
1120
1120
|
], 64))
|
|
1121
1121
|
]),
|
|
1122
1122
|
_: 1
|
|
@@ -1141,8 +1141,8 @@ const ea = { class: "cl-flex cl-flex-wrap cl-gap-1 cl-overflow-auto cl-pb-2 lg:c
|
|
|
1141
1141
|
disabled: n.loading,
|
|
1142
1142
|
onClick: d[1] || (d[1] = ae((u) => n.$emit("update:filterPanelOpen", !n.filterPanelOpen), ["prevent"]))
|
|
1143
1143
|
}, {
|
|
1144
|
-
default:
|
|
1145
|
-
ie(
|
|
1144
|
+
default: E(() => [
|
|
1145
|
+
ie(A(g(l)("grid.modifyFilters")), 1)
|
|
1146
1146
|
]),
|
|
1147
1147
|
_: 1
|
|
1148
1148
|
}, 8, ["disabled"])
|
|
@@ -1156,8 +1156,8 @@ const ea = { class: "cl-flex cl-flex-wrap cl-gap-1 cl-overflow-auto cl-pb-2 lg:c
|
|
|
1156
1156
|
class: "cl-basis-full lg:cl-flex-none",
|
|
1157
1157
|
onClick: d[2] || (d[2] = ae((u) => n.$emit("clear-filters"), ["prevent"]))
|
|
1158
1158
|
}, {
|
|
1159
|
-
default:
|
|
1160
|
-
ie(
|
|
1159
|
+
default: E(() => [
|
|
1160
|
+
ie(A(g(l)("grid.clearFilters")), 1)
|
|
1161
1161
|
]),
|
|
1162
1162
|
_: 1
|
|
1163
1163
|
}, 8, ["id", "disabled"])) : L("", !0)
|
|
@@ -1192,7 +1192,7 @@ const ea = { class: "cl-flex cl-flex-wrap cl-gap-1 cl-overflow-auto cl-pb-2 lg:c
|
|
|
1192
1192
|
"show-required-asterisk": d.required,
|
|
1193
1193
|
errors: d.errors
|
|
1194
1194
|
}, Te({
|
|
1195
|
-
default:
|
|
1195
|
+
default: E(() => [
|
|
1196
1196
|
le(m("input", J({
|
|
1197
1197
|
ref_key: "inputRef",
|
|
1198
1198
|
ref: n
|
|
@@ -1215,7 +1215,7 @@ const ea = { class: "cl-flex cl-flex-wrap cl-gap-1 cl-overflow-auto cl-pb-2 lg:c
|
|
|
1215
1215
|
}, [
|
|
1216
1216
|
d.$slots.default ? {
|
|
1217
1217
|
name: "label",
|
|
1218
|
-
fn:
|
|
1218
|
+
fn: E(() => [
|
|
1219
1219
|
M(d.$slots, "default", {}, void 0, !0)
|
|
1220
1220
|
]),
|
|
1221
1221
|
key: "0"
|
|
@@ -1420,18 +1420,18 @@ function qc(o) {
|
|
|
1420
1420
|
}
|
|
1421
1421
|
const { locale: ca, getNumberFormat: ua } = Ce.global, pl = X.DECIMAL;
|
|
1422
1422
|
function we(o) {
|
|
1423
|
-
return
|
|
1423
|
+
return Ae(o, X.DECIMAL, { additionalOptions: {
|
|
1424
1424
|
minimumFractionDigits: 0,
|
|
1425
1425
|
maximumFractionDigits: 0
|
|
1426
1426
|
} });
|
|
1427
1427
|
}
|
|
1428
1428
|
function ml(o, t) {
|
|
1429
|
-
return
|
|
1429
|
+
return Ae(o, X.DECIMAL, { additionalOptions: {
|
|
1430
1430
|
minimumFractionDigits: 0,
|
|
1431
1431
|
maximumFractionDigits: t
|
|
1432
1432
|
} });
|
|
1433
1433
|
}
|
|
1434
|
-
function
|
|
1434
|
+
function Ae(o, t, l) {
|
|
1435
1435
|
if (fl(t)) {
|
|
1436
1436
|
const e = Fe(pl, l);
|
|
1437
1437
|
return t.replace(/\{0\}/g, Nl(o, e) ?? "");
|
|
@@ -1523,7 +1523,7 @@ function Ye(o) {
|
|
|
1523
1523
|
}
|
|
1524
1524
|
}
|
|
1525
1525
|
function Fe(o, t) {
|
|
1526
|
-
const l =
|
|
1526
|
+
const l = Al(t == null ? void 0 : t.locale) || g(ca), e = ua(l), s = me(Al(t == null ? void 0 : t.additionalOptions) ?? {});
|
|
1527
1527
|
let n = "decimal";
|
|
1528
1528
|
switch (o) {
|
|
1529
1529
|
case X.PERCENTAGE:
|
|
@@ -1757,13 +1757,19 @@ const wa = {
|
|
|
1757
1757
|
return t.column.maxLength && (c = c.trimToLength(t.column.maxLength, t.column.format !== void 0 ? t.column.format === "ellipsis" : !1)), t.searchValue && t.column.searchable && (c = Ct(c, t.searchValue.split(" "))), t.column.format === "wrap-text" && (c = `<span class="cl-break-words cl-whitespace-pre-wrap">${c}</span>`), c;
|
|
1758
1758
|
}
|
|
1759
1759
|
function u(c, i) {
|
|
1760
|
-
return t.column.format === X.INTEGER ?
|
|
1760
|
+
return t.column.format === X.INTEGER ? Ae(c, X.DECIMAL, {
|
|
1761
1761
|
locale: i,
|
|
1762
1762
|
additionalOptions: {
|
|
1763
1763
|
maximumFractionDigits: 0,
|
|
1764
1764
|
minimumFractionDigits: 0
|
|
1765
1765
|
}
|
|
1766
|
-
}) :
|
|
1766
|
+
}) : Ae(c, t.column.format ?? X.DECIMAL, {
|
|
1767
|
+
locale: i,
|
|
1768
|
+
additionalOptions: {
|
|
1769
|
+
maximumFractionDigits: t.column.precision ?? 2,
|
|
1770
|
+
minimumFractionDigits: t.column.precision ?? 2
|
|
1771
|
+
}
|
|
1772
|
+
});
|
|
1767
1773
|
}
|
|
1768
1774
|
return (c, i) => {
|
|
1769
1775
|
var a;
|
|
@@ -1774,13 +1780,13 @@ const wa = {
|
|
|
1774
1780
|
disabled: !0
|
|
1775
1781
|
}, null, 8, ["model-value"])) : (c.column.type === "date" || c.column.type === "datetime" || c.column.type === "dateRange") && c.column.field !== void 0 ? (p(), v(Y, { key: 2 }, [
|
|
1776
1782
|
c.column.format !== void 0 ? (p(), v(Y, { key: 0 }, [
|
|
1777
|
-
ie(
|
|
1783
|
+
ie(A(n(c.data[c.column.field], c.column.format)), 1)
|
|
1778
1784
|
], 64)) : c.column.type === "date" || c.column.type === "dateRange" ? (p(), v(Y, { key: 1 }, [
|
|
1779
|
-
ie(
|
|
1785
|
+
ie(A(n(c.data[c.column.field], g(se).DATE)), 1)
|
|
1780
1786
|
], 64)) : (p(), v(Y, { key: 2 }, [
|
|
1781
|
-
ie(
|
|
1787
|
+
ie(A(n(c.data[c.column.field], g(se).DATETIME)), 1)
|
|
1782
1788
|
], 64))
|
|
1783
|
-
], 64)) : c.column.type === "list" && c.column.field !== void 0 && c.column.listEntries !== void 0 ? (p(), v("span", wa,
|
|
1789
|
+
], 64)) : c.column.type === "list" && c.column.field !== void 0 && c.column.listEntries !== void 0 ? (p(), v("span", wa, A(g(e)(((a = c.column.listEntries.find((r) => r.value === c.data[c.column.field])) == null ? void 0 : a.translationKey) ?? "")), 1)) : c.column.type === "number" && c.column.field !== void 0 ? (p(), v("span", ka, A(u(c.data[c.column.field], g(s))), 1)) : c.column.field !== void 0 ? (p(), v("span", $a, [
|
|
1784
1790
|
m("span", {
|
|
1785
1791
|
innerHTML: d()
|
|
1786
1792
|
}, null, 8, Ca)
|
|
@@ -1823,7 +1829,7 @@ const wa = {
|
|
|
1823
1829
|
class: O(["cl-font-semibold lg:cl-hidden", {
|
|
1824
1830
|
"cl-hidden": c.options.hideGridMobileView
|
|
1825
1831
|
}])
|
|
1826
|
-
},
|
|
1832
|
+
}, A(c.column.caption), 3),
|
|
1827
1833
|
c.editMode && c.column.editable === !0 ? M(c.$slots, `${c.column.name}Edit`, ce(J({ key: 0 }, {
|
|
1828
1834
|
cellFocused: () => e("focus"),
|
|
1829
1835
|
column: c.column,
|
|
@@ -1838,7 +1844,7 @@ const wa = {
|
|
|
1838
1844
|
"time-zone": c.timeZone,
|
|
1839
1845
|
"search-value": c.searchValue
|
|
1840
1846
|
}, {
|
|
1841
|
-
[c.column.name]:
|
|
1847
|
+
[c.column.name]: E(() => [
|
|
1842
1848
|
M(c.$slots, c.column.name, ce(pe({
|
|
1843
1849
|
column: c.column,
|
|
1844
1850
|
record: c.data,
|
|
@@ -1854,7 +1860,7 @@ const wa = {
|
|
|
1854
1860
|
"time-zone": c.timeZone,
|
|
1855
1861
|
"search-value": c.searchValue
|
|
1856
1862
|
}, {
|
|
1857
|
-
[c.column.name]:
|
|
1863
|
+
[c.column.name]: E(() => [
|
|
1858
1864
|
M(c.$slots, c.column.name, ce(pe({ column: c.column, record: c.data, searchValue: c.searchValue })))
|
|
1859
1865
|
]),
|
|
1860
1866
|
_: 2
|
|
@@ -1888,14 +1894,14 @@ const wa = {
|
|
|
1888
1894
|
}, Te({ _: 2 }, [
|
|
1889
1895
|
ne(t.$slots, (n, d) => ({
|
|
1890
1896
|
name: d,
|
|
1891
|
-
fn:
|
|
1897
|
+
fn: E((u) => [
|
|
1892
1898
|
M(t.$slots, d, ce(pe(u)))
|
|
1893
1899
|
])
|
|
1894
1900
|
}))
|
|
1895
1901
|
]), 1032, ["data", "column", "options", "time-zone", "search-value", "edit-mode", "onEdit", "onUndo"]))), 128))
|
|
1896
1902
|
]));
|
|
1897
1903
|
}
|
|
1898
|
-
}), qa = { key: 1 }, Oa = ["colspan"], Da = { class: "cl-flex cl-flex-wrap cl-justify-center cl-text-center cl-text-sm cl-w-full" },
|
|
1904
|
+
}), qa = { key: 1 }, Oa = ["colspan"], Da = { class: "cl-flex cl-flex-wrap cl-justify-center cl-text-center cl-text-sm cl-w-full" }, Aa = { key: 0 }, Ea = {
|
|
1899
1905
|
key: 1,
|
|
1900
1906
|
class: "cl-mt-6 cl-w-full"
|
|
1901
1907
|
}, Va = {
|
|
@@ -2000,7 +2006,7 @@ const wa = {
|
|
|
2000
2006
|
}, Te({ _: 2 }, [
|
|
2001
2007
|
ne(b.$slots, (z, ee) => ({
|
|
2002
2008
|
name: ee,
|
|
2003
|
-
fn:
|
|
2009
|
+
fn: E((I) => [
|
|
2004
2010
|
M(b.$slots, ee, J(I, { disabled: b.loading }))
|
|
2005
2011
|
])
|
|
2006
2012
|
}))
|
|
@@ -2009,18 +2015,18 @@ const wa = {
|
|
|
2009
2015
|
colspan: b.columns.length
|
|
2010
2016
|
}, [
|
|
2011
2017
|
m("div", Da, [
|
|
2012
|
-
b.$slots.noData && b.request.filters.some((B) => B.filterValue !== "") === !1 ? (p(), v("div",
|
|
2018
|
+
b.$slots.noData && b.request.filters.some((B) => B.filterValue !== "") === !1 ? (p(), v("div", Aa, [
|
|
2013
2019
|
M(b.$slots, "noData")
|
|
2014
|
-
])) : (p(), v("strong",
|
|
2020
|
+
])) : (p(), v("strong", Ea, A(g(s)("grid.noData")), 1)),
|
|
2015
2021
|
b.request.filters.some((B) => B.filterValue !== "") ? (p(), v("div", Va, [
|
|
2016
|
-
m("div", Ma,
|
|
2022
|
+
m("div", Ma, A(g(s)("grid.noDataFiltersPresent")), 1),
|
|
2017
2023
|
C(ke, {
|
|
2018
2024
|
size: "small",
|
|
2019
2025
|
colour: "danger",
|
|
2020
2026
|
onClick: T[0] || (T[0] = ae((B) => b.$emit("clear-filters"), ["prevent"]))
|
|
2021
2027
|
}, {
|
|
2022
|
-
default:
|
|
2023
|
-
ie(
|
|
2028
|
+
default: E(() => [
|
|
2029
|
+
ie(A(g(s)("grid.clearFilters")), 1)
|
|
2024
2030
|
]),
|
|
2025
2031
|
_: 1
|
|
2026
2032
|
})
|
|
@@ -2091,7 +2097,7 @@ const wa = {
|
|
|
2091
2097
|
}
|
|
2092
2098
|
}
|
|
2093
2099
|
function R(j) {
|
|
2094
|
-
return j === null ? "" : e.format ?
|
|
2100
|
+
return j === null ? "" : e.format ? Ae(j, e.format, {
|
|
2095
2101
|
locale: e.locale,
|
|
2096
2102
|
additionalOptions: f.value
|
|
2097
2103
|
}) : j.toString();
|
|
@@ -2121,7 +2127,7 @@ const wa = {
|
|
|
2121
2127
|
"show-required-asterisk": j.required,
|
|
2122
2128
|
errors: j.errors
|
|
2123
2129
|
}, Te({
|
|
2124
|
-
default:
|
|
2130
|
+
default: E(() => [
|
|
2125
2131
|
m("div", {
|
|
2126
2132
|
ref_key: "focusWithinRef",
|
|
2127
2133
|
ref: u,
|
|
@@ -2178,7 +2184,7 @@ const wa = {
|
|
|
2178
2184
|
}, [
|
|
2179
2185
|
j.$slots.default ? {
|
|
2180
2186
|
name: "label",
|
|
2181
|
-
fn:
|
|
2187
|
+
fn: E(() => [
|
|
2182
2188
|
M(j.$slots, "default")
|
|
2183
2189
|
]),
|
|
2184
2190
|
key: "0"
|
|
@@ -2237,15 +2243,15 @@ const wa = {
|
|
|
2237
2243
|
m("div", Ba, [
|
|
2238
2244
|
m("div", Fa, [
|
|
2239
2245
|
m("div", ja, [
|
|
2240
|
-
m("span", Pa,
|
|
2241
|
-
m("span", null,
|
|
2246
|
+
m("span", Pa, A(g(s)("grid.page")), 1),
|
|
2247
|
+
m("span", null, A(g(we)(a.request.pageNumber)) + " / " + A(g(we)(n.value)), 1)
|
|
2242
2248
|
]),
|
|
2243
2249
|
m("div", Ga, [
|
|
2244
|
-
m("span", Ha,
|
|
2245
|
-
m("span", null,
|
|
2250
|
+
m("span", Ha, A(g(s)("grid.totalRecords")), 1),
|
|
2251
|
+
m("span", null, A(g(we)(a.data.totalRecords)), 1)
|
|
2246
2252
|
]),
|
|
2247
2253
|
m("div", Za, [
|
|
2248
|
-
m("span", Wa,
|
|
2254
|
+
m("span", Wa, A(g(s)("grid.pageSize")), 1),
|
|
2249
2255
|
m("ul", Ka, [
|
|
2250
2256
|
(p(), v(Y, null, ne(c, (k, b) => m("li", {
|
|
2251
2257
|
key: b,
|
|
@@ -2254,7 +2260,7 @@ const wa = {
|
|
|
2254
2260
|
"cl-cursor-pointer": a.request.pageSize !== k
|
|
2255
2261
|
}]),
|
|
2256
2262
|
onClick: (T) => i(k)
|
|
2257
|
-
},
|
|
2263
|
+
}, A(g(we)(k)), 11, Qa)), 64))
|
|
2258
2264
|
])
|
|
2259
2265
|
]),
|
|
2260
2266
|
m("div", null, [
|
|
@@ -2290,7 +2296,7 @@ const wa = {
|
|
|
2290
2296
|
"cl-cursor-pointer ": a.request.pageNumber !== k
|
|
2291
2297
|
}]),
|
|
2292
2298
|
onClick: (T) => u(k)
|
|
2293
|
-
},
|
|
2299
|
+
}, A(g(we)(k)), 11, _a))), 128)),
|
|
2294
2300
|
m("li", {
|
|
2295
2301
|
class: O({
|
|
2296
2302
|
"cl-text-grey-2 cl-pointer-events-none": a.request.pageNumber >= n.value,
|
|
@@ -2321,7 +2327,7 @@ const wa = {
|
|
|
2321
2327
|
]),
|
|
2322
2328
|
m("div", Ja, [
|
|
2323
2329
|
m("div", xa, [
|
|
2324
|
-
m("span", Xa,
|
|
2330
|
+
m("span", Xa, A(g(s)("grid.jumpToPage")), 1),
|
|
2325
2331
|
C(_e, {
|
|
2326
2332
|
"model-value": a.request.pageNumber,
|
|
2327
2333
|
min: 1,
|
|
@@ -2331,7 +2337,7 @@ const wa = {
|
|
|
2331
2337
|
autocomplete: "off",
|
|
2332
2338
|
"onUpdate:modelValue": u
|
|
2333
2339
|
}, {
|
|
2334
|
-
default:
|
|
2340
|
+
default: E(() => [
|
|
2335
2341
|
en
|
|
2336
2342
|
]),
|
|
2337
2343
|
_: 1
|
|
@@ -2470,7 +2476,7 @@ const on = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, an = ["onClick"], nn =
|
|
|
2470
2476
|
}]),
|
|
2471
2477
|
onClick: (a) => l("quick-date-selected", d)
|
|
2472
2478
|
}, [
|
|
2473
|
-
m("span", null,
|
|
2479
|
+
m("span", null, A(g(e)(d.translationKey)), 1)
|
|
2474
2480
|
], 10, an);
|
|
2475
2481
|
}), 128))
|
|
2476
2482
|
]));
|
|
@@ -2603,7 +2609,7 @@ const on = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, an = ["onClick"], nn =
|
|
|
2603
2609
|
return d;
|
|
2604
2610
|
});
|
|
2605
2611
|
return (d, u) => (p(), v("div", rn, [
|
|
2606
|
-
m("div", null,
|
|
2612
|
+
m("div", null, A(g(s)("quickDates.quickDatesHeader")), 1),
|
|
2607
2613
|
(p(!0), v(Y, null, ne(n.value, (c, i) => (p(), v("div", {
|
|
2608
2614
|
key: i,
|
|
2609
2615
|
class: "cl-pt-2"
|
|
@@ -2649,7 +2655,7 @@ const on = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, an = ["onClick"], nn =
|
|
|
2649
2655
|
disabled: e.disabled,
|
|
2650
2656
|
onClick: s[0] || (s[0] = (d) => e.$emit("togglePopover"))
|
|
2651
2657
|
}), {
|
|
2652
|
-
default:
|
|
2658
|
+
default: E(() => [
|
|
2653
2659
|
C(n, {
|
|
2654
2660
|
icon: "bi:calendar3",
|
|
2655
2661
|
class: "cl-text-xl icon"
|
|
@@ -2669,7 +2675,7 @@ const on = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, an = ["onClick"], nn =
|
|
|
2669
2675
|
disabled: e.disabled,
|
|
2670
2676
|
onClick: s[1] || (s[1] = (d) => e.$emit("clear"))
|
|
2671
2677
|
}, {
|
|
2672
|
-
default:
|
|
2678
|
+
default: E(() => [
|
|
2673
2679
|
C(n, {
|
|
2674
2680
|
icon: "ph:x",
|
|
2675
2681
|
class: "cl-text-sm clear-icon"
|
|
@@ -2728,10 +2734,10 @@ const on = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, an = ["onClick"], nn =
|
|
|
2728
2734
|
}
|
|
2729
2735
|
const y = Kl("(min-width: 768px)"), k = $(() => y.value ? 2 : 1);
|
|
2730
2736
|
return (b, T) => (p(), G(Ie, { "show-required-asterisk": b.required }, {
|
|
2731
|
-
label:
|
|
2737
|
+
label: E(() => [
|
|
2732
2738
|
M(b.$slots, "default")
|
|
2733
2739
|
]),
|
|
2734
|
-
default:
|
|
2740
|
+
default: E(() => [
|
|
2735
2741
|
C(g(Le), {
|
|
2736
2742
|
ref_key: "calendar",
|
|
2737
2743
|
ref: r,
|
|
@@ -2750,7 +2756,7 @@ const on = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, an = ["onClick"], nn =
|
|
|
2750
2756
|
"initial-page": c.value,
|
|
2751
2757
|
onDayclick: T[2] || (T[2] = (S) => a.value = null)
|
|
2752
2758
|
}, {
|
|
2753
|
-
default:
|
|
2759
|
+
default: E(({ togglePopover: S }) => [
|
|
2754
2760
|
C(Dl, J(b.$attrs, {
|
|
2755
2761
|
required: b.required,
|
|
2756
2762
|
disabled: b.disabled,
|
|
@@ -2762,7 +2768,7 @@ const on = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, an = ["onClick"], nn =
|
|
|
2762
2768
|
})
|
|
2763
2769
|
}), null, 16, ["required", "disabled", "date-range-selected", "title", "onTogglePopover"])
|
|
2764
2770
|
]),
|
|
2765
|
-
footer:
|
|
2771
|
+
footer: E(() => [
|
|
2766
2772
|
b.quickDateScope !== "none" ? (p(), G(nt, {
|
|
2767
2773
|
key: 0,
|
|
2768
2774
|
scope: b.quickDateScope,
|
|
@@ -2834,7 +2840,7 @@ const on = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, an = ["onClick"], nn =
|
|
|
2834
2840
|
errors: u.errors,
|
|
2835
2841
|
"show-required-asterisk": u.required
|
|
2836
2842
|
}, Te({
|
|
2837
|
-
default:
|
|
2843
|
+
default: E(() => [
|
|
2838
2844
|
le(m("textarea", J({
|
|
2839
2845
|
ref_key: "inputRef",
|
|
2840
2846
|
ref: n
|
|
@@ -2856,7 +2862,7 @@ const on = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, an = ["onClick"], nn =
|
|
|
2856
2862
|
}, [
|
|
2857
2863
|
u.$slots.default ? {
|
|
2858
2864
|
name: "label",
|
|
2859
|
-
fn:
|
|
2865
|
+
fn: E(() => [
|
|
2860
2866
|
M(u.$slots, "default")
|
|
2861
2867
|
]),
|
|
2862
2868
|
key: "0"
|
|
@@ -2883,7 +2889,7 @@ const on = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, an = ["onClick"], nn =
|
|
|
2883
2889
|
Gl((r) => ({
|
|
2884
2890
|
"5aa4acec": u.value
|
|
2885
2891
|
}));
|
|
2886
|
-
const l = o, e = ve(o, "modelValue"), { t: s } = de(), n = V(), d = V(), u = $(() => `${100 * (e.value - l.min) / (l.max - l.min)}%`), c = V(!1), i =
|
|
2892
|
+
const l = o, e = ve(o, "modelValue"), { t: s } = de(), n = V(), d = V(), u = $(() => `${100 * (e.value - l.min) / (l.max - l.min)}%`), c = V(!1), i = At(e, 50);
|
|
2887
2893
|
function a(r) {
|
|
2888
2894
|
var f;
|
|
2889
2895
|
e.value = r, (f = n.value) == null || f.focus();
|
|
@@ -2903,13 +2909,13 @@ const on = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, an = ["onClick"], nn =
|
|
|
2903
2909
|
errors: r.errors,
|
|
2904
2910
|
"show-required-asterisk": r.required
|
|
2905
2911
|
}, Te({
|
|
2906
|
-
default:
|
|
2912
|
+
default: E(() => [
|
|
2907
2913
|
m("div", pn, [
|
|
2908
2914
|
m("button", {
|
|
2909
2915
|
disabled: r.disabled,
|
|
2910
2916
|
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",
|
|
2911
2917
|
onClick: f[0] || (f[0] = (k) => a(r.min))
|
|
2912
|
-
},
|
|
2918
|
+
}, A(g(ml)(r.min, r.precision)), 9, fn),
|
|
2913
2919
|
m("div", mn, [
|
|
2914
2920
|
le(m("div", gn, [
|
|
2915
2921
|
le(m("input", J({
|
|
@@ -2932,7 +2938,7 @@ const on = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, an = ["onClick"], nn =
|
|
|
2932
2938
|
{ number: !0 }
|
|
2933
2939
|
]
|
|
2934
2940
|
]),
|
|
2935
|
-
m("div", bn,
|
|
2941
|
+
m("div", bn, A(g(ml)(g(i), r.precision)), 1)
|
|
2936
2942
|
], 512), [
|
|
2937
2943
|
[ue, c.value === !1]
|
|
2938
2944
|
]),
|
|
@@ -2956,7 +2962,7 @@ const on = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, an = ["onClick"], nn =
|
|
|
2956
2962
|
disabled: r.disabled,
|
|
2957
2963
|
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",
|
|
2958
2964
|
onClick: f[3] || (f[3] = (k) => a(r.max))
|
|
2959
|
-
},
|
|
2965
|
+
}, A(g(ml)(r.max, r.precision)), 9, hn),
|
|
2960
2966
|
m("button", {
|
|
2961
2967
|
disabled: r.disabled,
|
|
2962
2968
|
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",
|
|
@@ -2971,7 +2977,7 @@ const on = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, an = ["onClick"], nn =
|
|
|
2971
2977
|
}, [
|
|
2972
2978
|
r.$slots.default ? {
|
|
2973
2979
|
name: "label",
|
|
2974
|
-
fn:
|
|
2980
|
+
fn: E(() => [
|
|
2975
2981
|
M(r.$slots, "default", {}, void 0, !0)
|
|
2976
2982
|
]),
|
|
2977
2983
|
key: "0"
|
|
@@ -3117,10 +3123,10 @@ const on = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, an = ["onClick"], nn =
|
|
|
3117
3123
|
(b = y.value) == null || b.focus(), n("focus");
|
|
3118
3124
|
}
|
|
3119
3125
|
}), (b, T) => (p(), G(Ie, { "show-required-asterisk": b.required }, {
|
|
3120
|
-
label:
|
|
3126
|
+
label: E(() => [
|
|
3121
3127
|
M(b.$slots, "default")
|
|
3122
3128
|
]),
|
|
3123
|
-
default:
|
|
3129
|
+
default: E(() => [
|
|
3124
3130
|
b.type === "time" ? (p(), G(g(Le), {
|
|
3125
3131
|
key: 0,
|
|
3126
3132
|
modelValue: u.value,
|
|
@@ -3137,7 +3143,7 @@ const on = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, an = ["onClick"], nn =
|
|
|
3137
3143
|
"hide-time-header": "",
|
|
3138
3144
|
popover: r.value
|
|
3139
3145
|
}, {
|
|
3140
|
-
default:
|
|
3146
|
+
default: E(({ inputValue: S, inputEvents: B }) => [
|
|
3141
3147
|
C(Ze, J(b.$attrs, {
|
|
3142
3148
|
ref_key: "input",
|
|
3143
3149
|
ref: y,
|
|
@@ -3170,7 +3176,7 @@ const on = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, an = ["onClick"], nn =
|
|
|
3170
3176
|
"hide-time-header": "",
|
|
3171
3177
|
popover: r.value
|
|
3172
3178
|
}, {
|
|
3173
|
-
default:
|
|
3179
|
+
default: E(({ inputValue: S, inputEvents: B }) => [
|
|
3174
3180
|
C(Ze, J(b.$attrs, {
|
|
3175
3181
|
ref_key: "input",
|
|
3176
3182
|
ref: y,
|
|
@@ -3203,7 +3209,7 @@ const on = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, an = ["onClick"], nn =
|
|
|
3203
3209
|
M(s.$slots, "default", ce(pe({ toggleModalInput: e })))
|
|
3204
3210
|
], 16));
|
|
3205
3211
|
}
|
|
3206
|
-
}), On = { class: "cl-relative cl-w-full" }, Dn = ["placeholder"],
|
|
3212
|
+
}), On = { class: "cl-relative cl-w-full" }, Dn = ["placeholder"], An = ["value", "disabled"], En = ["value", "disabled"], Vn = ["disabled"], hl = /* @__PURE__ */ P({
|
|
3207
3213
|
inheritAttrs: !1,
|
|
3208
3214
|
__name: "cl-ui-select",
|
|
3209
3215
|
props: /* @__PURE__ */ fe({
|
|
@@ -3252,10 +3258,10 @@ const on = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, an = ["onClick"], nn =
|
|
|
3252
3258
|
"show-required-asterisk": a.required,
|
|
3253
3259
|
errors: a.errors
|
|
3254
3260
|
}, {
|
|
3255
|
-
label:
|
|
3261
|
+
label: E(() => [
|
|
3256
3262
|
M(a.$slots, "label")
|
|
3257
3263
|
]),
|
|
3258
|
-
default:
|
|
3264
|
+
default: E(() => [
|
|
3259
3265
|
m("div", On, [
|
|
3260
3266
|
M(a.$slots, "input", ce(pe({ selectModalVisible: s.value, toggleSelectModalState: d })), () => [
|
|
3261
3267
|
n.value === !1 ? (p(), G(al, {
|
|
@@ -3263,7 +3269,7 @@ const on = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, an = ["onClick"], nn =
|
|
|
3263
3269
|
class: O([i.value, "cl-border cl-border-grey-2 cl-flex cl-gap-2 cl-items-center cl-justify-between cl-min-h-8 cl-rounded-lg cl-select-none cl-transition-colors cl-w-full disabled:cl-bg-grey-1 disabled:cl-border-grey-2 disabled:cl-placeholder-grey-3"]),
|
|
3264
3270
|
onToggleModal: d
|
|
3265
3271
|
}, {
|
|
3266
|
-
default:
|
|
3272
|
+
default: E(() => [
|
|
3267
3273
|
l.value === null || l.value === void 0 ? (p(), v("input", J({ key: 0 }, a.$attrs, {
|
|
3268
3274
|
readonly: "",
|
|
3269
3275
|
class: [i.value, "cl-outline-none cl-overflow-hidden cl-px-2 cl-py-1 cl-rounded-lg cl-text-ellipsis cl-transition-colors cl-w-full cl-whitespace-nowrap"],
|
|
@@ -3275,13 +3281,13 @@ const on = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, an = ["onClick"], nn =
|
|
|
3275
3281
|
value: l.value.name,
|
|
3276
3282
|
disabled: a.disabled,
|
|
3277
3283
|
onClick: r[1] || (r[1] = (y) => d())
|
|
3278
|
-
}), null, 16,
|
|
3284
|
+
}), null, 16, An)) : (p(), v("input", J({ key: 2 }, a.$attrs, {
|
|
3279
3285
|
readonly: "",
|
|
3280
3286
|
class: [i.value, "cl-outline-none cl-overflow-hidden cl-px-2 cl-py-1 cl-rounded-lg cl-text-ellipsis cl-transition-colors cl-w-full cl-whitespace-nowrap"],
|
|
3281
3287
|
value: l.value,
|
|
3282
3288
|
disabled: a.disabled,
|
|
3283
3289
|
onClick: r[2] || (r[2] = (y) => d())
|
|
3284
|
-
}), null, 16,
|
|
3290
|
+
}), null, 16, En)),
|
|
3285
3291
|
m("div", {
|
|
3286
3292
|
class: "cl-flex cl-items-center cl-px-2 cl-py-1 cl-relative cl-text-grey-3 cl-z-10",
|
|
3287
3293
|
disabled: a.disabled,
|
|
@@ -3558,7 +3564,7 @@ const Fn = {
|
|
|
3558
3564
|
return;
|
|
3559
3565
|
e("selection-changed"), e("update:filter", f);
|
|
3560
3566
|
}
|
|
3561
|
-
const c = V(), { left: i } =
|
|
3567
|
+
const c = V(), { left: i } = Et(c), a = $(() => i.value / 2 < 208);
|
|
3562
3568
|
return (r, f) => (p(), v("div", {
|
|
3563
3569
|
ref_key: "gridMethodSelectElement",
|
|
3564
3570
|
ref: c,
|
|
@@ -3581,7 +3587,7 @@ const Fn = {
|
|
|
3581
3587
|
"cl-left-0": a.value
|
|
3582
3588
|
}])
|
|
3583
3589
|
}, [
|
|
3584
|
-
m("strong", Hn,
|
|
3590
|
+
m("strong", Hn, A(g(s)("grid.availableMethods")), 1),
|
|
3585
3591
|
(p(!0), v(Y, null, ne(n.value, (y, k) => {
|
|
3586
3592
|
var b;
|
|
3587
3593
|
return p(), v("span", {
|
|
@@ -3591,7 +3597,7 @@ const Fn = {
|
|
|
3591
3597
|
}]),
|
|
3592
3598
|
onClick: ae((T) => u(y.method), ["prevent"])
|
|
3593
3599
|
}, [
|
|
3594
|
-
ie(
|
|
3600
|
+
ie(A(y.description) + " ", 1),
|
|
3595
3601
|
C(g(_), {
|
|
3596
3602
|
icon: y.icon,
|
|
3597
3603
|
class: "cl-float-right cl-text-grey-4 cl-text-sm"
|
|
@@ -3601,7 +3607,7 @@ const Fn = {
|
|
|
3601
3607
|
], 2)
|
|
3602
3608
|
], 512));
|
|
3603
3609
|
}
|
|
3604
|
-
}), ut = (o) => (Hl("data-v-
|
|
3610
|
+
}), ut = (o) => (Hl("data-v-448a7917"), o = o(), Zl(), o), Kn = ["onClick"], Qn = { class: "cl-p-1" }, Yn = ["disabled"], _n = {
|
|
3605
3611
|
key: 1,
|
|
3606
3612
|
class: "cl-w-full"
|
|
3607
3613
|
}, Jn = {
|
|
@@ -3632,51 +3638,51 @@ const Fn = {
|
|
|
3632
3638
|
}
|
|
3633
3639
|
const u = $({
|
|
3634
3640
|
get: () => l.filter,
|
|
3635
|
-
set: (
|
|
3641
|
+
set: (D) => e("update:filter", D)
|
|
3636
3642
|
}), c = $(() => l.column.type === "date" || l.column.type === "datetime" || l.column.type === "slot" && (l.column.slotType === "date" || l.column.slotType === "datetime")), i = $(() => l.column.type === "dateRange" || l.column.type === "slot" && l.column.slotType === "dateRange"), a = $(() => l.column.type === "list" || l.column.type === "slot" && l.column.slotType === "list"), r = $(() => a.value && l.column.listType === "number"), f = $(() => l.column.type === "string" || l.column.type === "slot" && l.column.slotType === "string"), y = $(() => l.column.format === X.INTEGER ? X.DECIMAL : l.column.format ?? X.DECIMAL), k = V(!1), b = $(() => k.value || f.value === !1), T = $({
|
|
3637
3643
|
get() {
|
|
3638
3644
|
var Z, w, N, Q, h, U, W;
|
|
3639
|
-
let
|
|
3640
|
-
if (
|
|
3645
|
+
let D = (Z = u.value) == null ? void 0 : Z[0];
|
|
3646
|
+
if (D) {
|
|
3641
3647
|
if (c.value) {
|
|
3642
3648
|
if ((((w = l.filter) == null ? void 0 : w.length) ?? 0) > 1) {
|
|
3643
|
-
const re = (N = u.value) == null ? void 0 : N.find((qe) => qe.filterOperation === oe.EQUAL_OR_GREATER_THAN),
|
|
3644
|
-
re &&
|
|
3649
|
+
const re = (N = u.value) == null ? void 0 : N.find((qe) => qe.filterOperation === oe.EQUAL_OR_GREATER_THAN), Ee = (Q = u.value) == null ? void 0 : Q.find((qe) => qe.filterOperation === oe.LESS_THAN);
|
|
3650
|
+
re && Ee && (D = {
|
|
3645
3651
|
filterOnColumn: l.column.field,
|
|
3646
3652
|
filterOperation: oe.EQUAL,
|
|
3647
3653
|
filterMethod: "equal",
|
|
3648
3654
|
filterValue: re.filterValue
|
|
3649
3655
|
});
|
|
3650
|
-
} else if (
|
|
3651
|
-
let re = K.fromISO(
|
|
3656
|
+
} else if (D.filterOperation === oe.EQUAL_OR_LESS_THAN || D.filterOperation === oe.GREATER_THAN) {
|
|
3657
|
+
let re = K.fromISO(D.filterValue, {
|
|
3652
3658
|
zone: l.timeZone ?? "UTC"
|
|
3653
3659
|
});
|
|
3654
|
-
l.column.type === "date" || l.column.type === "slot" && l.column.slotType === "date" ? re = re.minus({ days: 1 }) : re = re.minus({ minutes: 1 }),
|
|
3660
|
+
l.column.type === "date" || l.column.type === "slot" && l.column.slotType === "date" ? re = re.minus({ days: 1 }) : re = re.minus({ minutes: 1 }), D = {
|
|
3655
3661
|
filterOnColumn: l.column.field,
|
|
3656
|
-
filterOperation:
|
|
3657
|
-
filterMethod:
|
|
3662
|
+
filterOperation: D.filterOperation,
|
|
3663
|
+
filterMethod: D.filterOperation === oe.EQUAL_OR_LESS_THAN ? "equalorlessthan" : "greaterthan",
|
|
3658
3664
|
filterValue: re.plus({ milliseconds: 1 }).toISO() ?? ""
|
|
3659
3665
|
};
|
|
3660
3666
|
}
|
|
3661
3667
|
} else if (i.value && (((h = l.filter) == null ? void 0 : h.length) ?? 0) > 1) {
|
|
3662
|
-
const re = (U = u.value) == null ? void 0 : U.find((qe) => qe.filterOperation === oe.EQUAL_OR_GREATER_THAN),
|
|
3663
|
-
re &&
|
|
3668
|
+
const re = (U = u.value) == null ? void 0 : U.find((qe) => qe.filterOperation === oe.EQUAL_OR_GREATER_THAN), Ee = (W = u.value) == null ? void 0 : W.find((qe) => qe.filterOperation === oe.EQUAL_OR_LESS_THAN);
|
|
3669
|
+
re && Ee && (D = {
|
|
3664
3670
|
filterOnColumn: l.column.field,
|
|
3665
3671
|
filterOperation: oe.EQUAL,
|
|
3666
3672
|
filterMethod: "equal",
|
|
3667
3673
|
filterValue: {
|
|
3668
3674
|
start: re.filterValue,
|
|
3669
|
-
end:
|
|
3675
|
+
end: Ee.filterValue
|
|
3670
3676
|
}
|
|
3671
3677
|
});
|
|
3672
3678
|
}
|
|
3673
3679
|
}
|
|
3674
|
-
return
|
|
3680
|
+
return D;
|
|
3675
3681
|
},
|
|
3676
|
-
set(
|
|
3682
|
+
set(D) {
|
|
3677
3683
|
let Z = null;
|
|
3678
3684
|
if (c.value) {
|
|
3679
|
-
const w =
|
|
3685
|
+
const w = D, N = (w == null ? void 0 : w.filterMethod) && q(w.filterMethod, w.filterValue, "equal"), Q = (w == null ? void 0 : w.filterMethod) && q(w.filterMethod, w.filterValue, "equalorlessthan"), h = (w == null ? void 0 : w.filterMethod) && q(w.filterMethod, w.filterValue, "greaterthan");
|
|
3680
3686
|
if (N) {
|
|
3681
3687
|
let U = K.fromISO(w.filterValue, {
|
|
3682
3688
|
zone: l.timeZone ?? "UTC"
|
|
@@ -3717,8 +3723,8 @@ const Fn = {
|
|
|
3717
3723
|
}
|
|
3718
3724
|
];
|
|
3719
3725
|
}
|
|
3720
|
-
} else if (i.value && (
|
|
3721
|
-
const w =
|
|
3726
|
+
} else if (i.value && (D != null && D.filterValue)) {
|
|
3727
|
+
const w = D.filterValue, N = K.fromISO(w.start, {
|
|
3722
3728
|
zone: l.timeZone ?? "UTC"
|
|
3723
3729
|
}).toISO(), Q = K.fromISO(w.end, {
|
|
3724
3730
|
zone: l.timeZone ?? "UTC"
|
|
@@ -3739,7 +3745,7 @@ const Fn = {
|
|
|
3739
3745
|
];
|
|
3740
3746
|
}
|
|
3741
3747
|
if (Z === null) {
|
|
3742
|
-
const w =
|
|
3748
|
+
const w = D;
|
|
3743
3749
|
Z = w && [w];
|
|
3744
3750
|
}
|
|
3745
3751
|
if (Z && (c.value || i.value))
|
|
@@ -3747,34 +3753,34 @@ const Fn = {
|
|
|
3747
3753
|
l.timeZone ? w.filterValue = K.fromISO(w.filterValue).setZone("UTC").toISO() ?? "" : w.filterValue = w.filterValue.replace("Z", "");
|
|
3748
3754
|
b.value ? (u.value = Z, k.value = !1) : S(Z);
|
|
3749
3755
|
}
|
|
3750
|
-
}), S = el((
|
|
3751
|
-
u.value =
|
|
3756
|
+
}), S = el((D) => {
|
|
3757
|
+
u.value = D;
|
|
3752
3758
|
}, 1e3), B = $({
|
|
3753
3759
|
get: () => T.value,
|
|
3754
|
-
set(
|
|
3755
|
-
T.value =
|
|
3760
|
+
set(D) {
|
|
3761
|
+
T.value = D;
|
|
3756
3762
|
}
|
|
3757
3763
|
});
|
|
3758
|
-
function q(
|
|
3759
|
-
return Z !== void 0 && Z !== "" &&
|
|
3764
|
+
function q(D, Z, w) {
|
|
3765
|
+
return Z !== void 0 && Z !== "" && D === w && c.value;
|
|
3760
3766
|
}
|
|
3761
3767
|
const z = $(() => {
|
|
3762
|
-
var
|
|
3763
|
-
return ((
|
|
3768
|
+
var D;
|
|
3769
|
+
return ((D = T.value) == null ? void 0 : D.filterValue) ?? "";
|
|
3764
3770
|
}), ee = $(() => z.value === "" ? null : z.value), I = $(() => z.value === "" ? null : z.value), R = $(() => $l(l.column));
|
|
3765
|
-
function H(
|
|
3771
|
+
function H(D, Z) {
|
|
3766
3772
|
var re;
|
|
3767
|
-
let w, N = (
|
|
3773
|
+
let w, N = (D == null ? void 0 : D.value) ?? Z;
|
|
3768
3774
|
const Q = ((re = T.value) == null ? void 0 : re.filterValue.toString()) ?? "", h = !!N.trim(), U = !!Q.trim();
|
|
3769
3775
|
if (h === !1 && U && (N = ""), h || U) {
|
|
3770
3776
|
if (T.value)
|
|
3771
3777
|
w = me(B.value), w.filterValue = N;
|
|
3772
3778
|
else if (h && typeof l.column.field < "u") {
|
|
3773
|
-
const
|
|
3779
|
+
const Ee = d();
|
|
3774
3780
|
w = {
|
|
3775
3781
|
filterOnColumn: l.column.field,
|
|
3776
|
-
filterMethod: oe[
|
|
3777
|
-
filterOperation:
|
|
3782
|
+
filterMethod: oe[Ee].replace("_", "").toLowerCase(),
|
|
3783
|
+
filterOperation: Ee,
|
|
3778
3784
|
filterValue: N
|
|
3779
3785
|
};
|
|
3780
3786
|
} else
|
|
@@ -3782,8 +3788,8 @@ const Fn = {
|
|
|
3782
3788
|
T.value = w;
|
|
3783
3789
|
}
|
|
3784
3790
|
}
|
|
3785
|
-
function F(
|
|
3786
|
-
let w = (
|
|
3791
|
+
function F(D, Z) {
|
|
3792
|
+
let w = (D == null ? void 0 : D.value) ?? Z ?? 0;
|
|
3787
3793
|
if (typeof w == "string") {
|
|
3788
3794
|
const N = l.column.format === X.INTEGER, Q = (N ? X.DECIMAL : l.column.format) ?? X.DECIMAL;
|
|
3789
3795
|
w = Jl(w, Q, { additionalOptions: {
|
|
@@ -3793,26 +3799,26 @@ const Fn = {
|
|
|
3793
3799
|
}
|
|
3794
3800
|
H(null, isNaN(w) ? "" : w.toString());
|
|
3795
3801
|
}
|
|
3796
|
-
function j(
|
|
3802
|
+
function j(D) {
|
|
3797
3803
|
var N;
|
|
3798
3804
|
let Z, w = !1;
|
|
3799
3805
|
if (T.value)
|
|
3800
|
-
w = ((N = T.value) == null ? void 0 : N.filterValue) ===
|
|
3801
|
-
else if (
|
|
3806
|
+
w = ((N = T.value) == null ? void 0 : N.filterValue) === D, Z = me(T.value), Z.filterValue = D ?? "";
|
|
3807
|
+
else if (D !== null && typeof l.column.field < "u") {
|
|
3802
3808
|
const Q = d();
|
|
3803
3809
|
Z = {
|
|
3804
3810
|
filterOnColumn: l.column.field,
|
|
3805
3811
|
filterMethod: oe[Q].replace("_", "").toLowerCase(),
|
|
3806
3812
|
filterOperation: Q,
|
|
3807
|
-
filterValue:
|
|
3813
|
+
filterValue: D
|
|
3808
3814
|
};
|
|
3809
3815
|
} else
|
|
3810
3816
|
return;
|
|
3811
3817
|
w === !1 && (T.value = Z);
|
|
3812
3818
|
}
|
|
3813
3819
|
const x = V("");
|
|
3814
|
-
function he(
|
|
3815
|
-
k.value = !1,
|
|
3820
|
+
function he(D) {
|
|
3821
|
+
k.value = !1, D === "Enter" && (k.value = !0, H(null, x.value));
|
|
3816
3822
|
}
|
|
3817
3823
|
te(() => z.value, () => {
|
|
3818
3824
|
x.value = z.value;
|
|
@@ -3828,33 +3834,33 @@ const Fn = {
|
|
|
3828
3834
|
dedupe: !0
|
|
3829
3835
|
});
|
|
3830
3836
|
const $e = rl("cl-ui-grid-id") ?? "cl-ui-grid-filter";
|
|
3831
|
-
return (
|
|
3837
|
+
return (D, Z) => {
|
|
3832
3838
|
const w = Se("icon");
|
|
3833
3839
|
return R.value ? (p(), v("div", {
|
|
3834
3840
|
key: 0,
|
|
3835
3841
|
class: O(["cl-border cl-border-grey-2 cl-flex cl-rounded-md", [
|
|
3836
|
-
|
|
3842
|
+
D.options.hideGridMobileView ? "cl-overflow-visible" : "cl-overflow-hidden lg:cl-overflow-visible"
|
|
3837
3843
|
]])
|
|
3838
3844
|
}, [
|
|
3839
|
-
|
|
3845
|
+
D.column.type === "boolean" || D.column.type === "slot" && D.column.slotType === "boolean" ? (p(), G(hl, {
|
|
3840
3846
|
key: 0,
|
|
3841
3847
|
id: "`${gridId}-${column.name}`",
|
|
3842
|
-
disabled:
|
|
3848
|
+
disabled: D.loading,
|
|
3843
3849
|
class: "!cl-border-t !cl-min-h-0 !cl-rounded-lg cl-bg-white cl-font-normal cl-max-h-max",
|
|
3844
3850
|
"model-value": z.value,
|
|
3845
3851
|
"onUpdate:modelValue": Z[0] || (Z[0] = (N) => H(null, N))
|
|
3846
3852
|
}, {
|
|
3847
|
-
input:
|
|
3853
|
+
input: E(({ selectModalVisible: N, toggleSelectModalState: Q }) => [
|
|
3848
3854
|
C(al, { onToggleModal: Q }, {
|
|
3849
|
-
default:
|
|
3855
|
+
default: E(({ toggleModalInput: h }) => [
|
|
3850
3856
|
m("div", {
|
|
3851
3857
|
class: "!cl-h-[2rem] cl-bg-white cl-flex cl-font-normal cl-items-center cl-mb-0 cl-rounded-md cl-w-full",
|
|
3852
3858
|
onClick: h
|
|
3853
3859
|
}, [
|
|
3854
|
-
m("span", Qn,
|
|
3860
|
+
m("span", Qn, A(z.value === "" ? "" : z.value === "true" ? g(s)("grid.true") : g(s)("grid.false")), 1),
|
|
3855
3861
|
m("div", {
|
|
3856
3862
|
class: "cl-absolute cl-flex cl-items-center cl-right-1 cl-text-grey-3 cl-z-10",
|
|
3857
|
-
disabled:
|
|
3863
|
+
disabled: D.loading
|
|
3858
3864
|
}, [
|
|
3859
3865
|
C(w, {
|
|
3860
3866
|
icon: N ? "ph:caret-up-bold" : "ph:caret-down-bold"
|
|
@@ -3865,12 +3871,12 @@ const Fn = {
|
|
|
3865
3871
|
_: 2
|
|
3866
3872
|
}, 1032, ["onToggleModal"])
|
|
3867
3873
|
]),
|
|
3868
|
-
default:
|
|
3874
|
+
default: E(({ select: N }) => [
|
|
3869
3875
|
C(ze, {
|
|
3870
3876
|
class: "!cl-py-0 cl-text-xs",
|
|
3871
3877
|
onSelect: (Q) => N("")
|
|
3872
3878
|
}, {
|
|
3873
|
-
default:
|
|
3879
|
+
default: E(() => [
|
|
3874
3880
|
ie(" ")
|
|
3875
3881
|
]),
|
|
3876
3882
|
_: 2
|
|
@@ -3880,8 +3886,8 @@ const Fn = {
|
|
|
3880
3886
|
class: "!cl-py-0 cl-text-xs",
|
|
3881
3887
|
onSelect: (Q) => N("true")
|
|
3882
3888
|
}, {
|
|
3883
|
-
default:
|
|
3884
|
-
ie(
|
|
3889
|
+
default: E(() => [
|
|
3890
|
+
ie(A(g(s)("grid.true")), 1)
|
|
3885
3891
|
]),
|
|
3886
3892
|
_: 2
|
|
3887
3893
|
}, 1032, ["is-selected", "onSelect"]),
|
|
@@ -3890,8 +3896,8 @@ const Fn = {
|
|
|
3890
3896
|
class: "!cl-py-0 cl-text-xs",
|
|
3891
3897
|
onSelect: (Q) => N("false")
|
|
3892
3898
|
}, {
|
|
3893
|
-
default:
|
|
3894
|
-
ie(
|
|
3899
|
+
default: E(() => [
|
|
3900
|
+
ie(A(g(s)("grid.false")), 1)
|
|
3895
3901
|
]),
|
|
3896
3902
|
_: 2
|
|
3897
3903
|
}, 1032, ["is-selected", "onSelect"])
|
|
@@ -3899,81 +3905,81 @@ const Fn = {
|
|
|
3899
3905
|
_: 1
|
|
3900
3906
|
}, 8, ["disabled", "model-value"])) : c.value ? (p(), v("div", _n, [
|
|
3901
3907
|
C(it, {
|
|
3902
|
-
id: `${g($e)}-${
|
|
3908
|
+
id: `${g($e)}-${D.column.name}`,
|
|
3903
3909
|
"model-value": ee.value,
|
|
3904
|
-
"time-zone":
|
|
3905
|
-
readonly:
|
|
3906
|
-
type:
|
|
3910
|
+
"time-zone": D.timeZone,
|
|
3911
|
+
readonly: D.loading,
|
|
3912
|
+
type: D.column.type === "slot" ? D.column.slotType : D.column.type,
|
|
3907
3913
|
class: "!cl-h-[2rem] cl-border-none cl-mb-0 cl-text-xs cl-w-full lg:!cl-text-base readonly-filter",
|
|
3908
3914
|
"popover-placement": "bottom-start",
|
|
3909
3915
|
"onUpdate:modelValue": Z[1] || (Z[1] = (N) => H(null, N ?? ""))
|
|
3910
3916
|
}, null, 8, ["id", "model-value", "time-zone", "readonly", "type"])
|
|
3911
3917
|
])) : i.value ? (p(), v("div", Jn, [
|
|
3912
3918
|
C(st, {
|
|
3913
|
-
id: `${g($e)}-${
|
|
3919
|
+
id: `${g($e)}-${D.column.name}`,
|
|
3914
3920
|
"model-value": I.value,
|
|
3915
3921
|
class: "[&_.clear-icon]:-cl-pb-4 [&_.icon]:cl-text-sm [&_.range-input]:cl-h-[2rem] cl-border-none cl-h-[2rem] cl-mb-0 cl-w-full cl-z-50",
|
|
3916
|
-
disabled:
|
|
3917
|
-
"time-zone":
|
|
3918
|
-
"quick-date-scope":
|
|
3922
|
+
disabled: D.loading,
|
|
3923
|
+
"time-zone": D.headerDisplayTimezone,
|
|
3924
|
+
"quick-date-scope": D.quickDateScope,
|
|
3919
3925
|
"popover-placement": "bottom-start",
|
|
3920
3926
|
"onUpdate:modelValue": Z[2] || (Z[2] = (N) => j(N))
|
|
3921
3927
|
}, null, 8, ["id", "model-value", "disabled", "time-zone", "quick-date-scope"])
|
|
3922
|
-
])) :
|
|
3928
|
+
])) : D.column.type === "number" || D.column.type === "slot" && D.column.slotType === "number" ? (p(), v("div", xn, [
|
|
3923
3929
|
C(_e, {
|
|
3924
|
-
id: `${g($e)}-${
|
|
3930
|
+
id: `${g($e)}-${D.column.name}`,
|
|
3925
3931
|
"model-value": z.value === "" || isNaN(+z.value) ? null : +z.value,
|
|
3926
3932
|
format: y.value,
|
|
3927
|
-
precision:
|
|
3933
|
+
precision: D.column.format === g(X).INTEGER ? 0 : g(Cl)(y.value, { locale: g(n), additionalOptions: { maximumFractionDigits: D.column.precision ?? 2 } }).maximumFractionDigits,
|
|
3928
3934
|
class: "cl-border-none cl-font-normal cl-h-[2rem] cl-mb-0 cl-text-xs cl-w-full lg:cl-text-base readonly-filter",
|
|
3929
|
-
readonly:
|
|
3935
|
+
readonly: D.loading,
|
|
3930
3936
|
"show-arrows": !1,
|
|
3931
3937
|
"allow-empty": !0,
|
|
3932
3938
|
"onUpdate:modelValue": Z[3] || (Z[3] = (N) => N !== null ? F(null, N) : H(null, ""))
|
|
3933
3939
|
}, {
|
|
3934
|
-
default:
|
|
3940
|
+
default: E(() => [
|
|
3935
3941
|
Xn
|
|
3936
3942
|
]),
|
|
3937
3943
|
_: 1
|
|
3938
3944
|
}, 8, ["id", "model-value", "format", "precision", "readonly"])
|
|
3939
|
-
])) :
|
|
3945
|
+
])) : D.column.type === "string" || D.column.type === "slot" && D.column.slotType === "string" ? (p(), v("div", es, [
|
|
3940
3946
|
C(Re, {
|
|
3941
|
-
id: `${g($e)}-${
|
|
3947
|
+
id: `${g($e)}-${D.column.name}`,
|
|
3942
3948
|
modelValue: x.value,
|
|
3943
3949
|
"onUpdate:modelValue": [
|
|
3944
3950
|
Z[4] || (Z[4] = (N) => x.value = N),
|
|
3945
3951
|
Z[5] || (Z[5] = (N) => H(null, N))
|
|
3946
3952
|
],
|
|
3947
3953
|
class: "cl-border-none cl-font-normal cl-h-[2rem] cl-px-3 cl-text-xs lg:cl-text-base readonly-filter",
|
|
3948
|
-
readonly:
|
|
3954
|
+
readonly: D.loading,
|
|
3949
3955
|
onKeySinglePress: he
|
|
3950
3956
|
}, {
|
|
3951
|
-
default:
|
|
3957
|
+
default: E(() => [
|
|
3952
3958
|
ls
|
|
3953
3959
|
]),
|
|
3954
3960
|
_: 1
|
|
3955
3961
|
}, 8, ["id", "modelValue", "readonly"])
|
|
3956
3962
|
])) : a.value ? (p(), G(hl, {
|
|
3957
3963
|
key: 5,
|
|
3958
|
-
id: `${g($e)}-${
|
|
3964
|
+
id: `${g($e)}-${D.column.name}`,
|
|
3959
3965
|
"model-value": z.value,
|
|
3960
3966
|
class: "!cl-border-t !cl-min-h-0 !cl-rounded-lg cl-bg-white cl-font-normal cl-max-h-max",
|
|
3961
|
-
disabled:
|
|
3967
|
+
disabled: D.loading,
|
|
3962
3968
|
"onUpdate:modelValue": Z[6] || (Z[6] = (N) => r.value ? F(null, N) : H(null, N))
|
|
3963
3969
|
}, {
|
|
3964
|
-
input:
|
|
3970
|
+
input: E(({ selectModalVisible: N, toggleSelectModalState: Q }) => [
|
|
3965
3971
|
C(al, { onToggleModal: Q }, {
|
|
3966
|
-
default:
|
|
3972
|
+
default: E(({ toggleModalInput: h }) => {
|
|
3967
3973
|
var U, W;
|
|
3968
3974
|
return [
|
|
3969
3975
|
m("div", {
|
|
3970
3976
|
class: "!cl-h-[2rem] cl-bg-white cl-flex cl-font-normal cl-items-center cl-mb-0 cl-rounded-md cl-w-full",
|
|
3971
3977
|
onClick: h
|
|
3972
3978
|
}, [
|
|
3973
|
-
m("span", os,
|
|
3979
|
+
m("span", os, A(g(s)(((W = (U = D.column.listEntries) == null ? void 0 : U.find((re) => re.value.toString() === z.value)) == null ? void 0 : W.translationKey) ?? "")), 1),
|
|
3974
3980
|
m("div", {
|
|
3975
3981
|
class: "cl-absolute cl-flex cl-items-center cl-right-1 cl-text-grey-3 cl-z-10",
|
|
3976
|
-
disabled:
|
|
3982
|
+
disabled: D.loading
|
|
3977
3983
|
}, [
|
|
3978
3984
|
C(w, {
|
|
3979
3985
|
icon: N ? "ph:caret-up-bold" : "ph:caret-down-bold"
|
|
@@ -3985,24 +3991,24 @@ const Fn = {
|
|
|
3985
3991
|
_: 2
|
|
3986
3992
|
}, 1032, ["onToggleModal"])
|
|
3987
3993
|
]),
|
|
3988
|
-
default:
|
|
3994
|
+
default: E(({ select: N }) => [
|
|
3989
3995
|
C(ze, {
|
|
3990
3996
|
class: "!cl-py-0 cl-text-xs",
|
|
3991
3997
|
onSelect: (Q) => N("")
|
|
3992
3998
|
}, {
|
|
3993
|
-
default:
|
|
3999
|
+
default: E(() => [
|
|
3994
4000
|
ie(" ")
|
|
3995
4001
|
]),
|
|
3996
4002
|
_: 2
|
|
3997
4003
|
}, 1032, ["onSelect"]),
|
|
3998
|
-
(p(!0), v(Y, null, ne(
|
|
4004
|
+
(p(!0), v(Y, null, ne(D.column.listEntries ?? [], (Q) => (p(), G(ze, {
|
|
3999
4005
|
key: Q.value,
|
|
4000
4006
|
"is-selected": z.value === Q.value.toString(),
|
|
4001
4007
|
class: "!cl-py-0 cl-text-xs",
|
|
4002
4008
|
onSelect: (h) => N(Q.value)
|
|
4003
4009
|
}, {
|
|
4004
|
-
default:
|
|
4005
|
-
ie(
|
|
4010
|
+
default: E(() => [
|
|
4011
|
+
ie(A(g(s)(Q.translationKey)), 1)
|
|
4006
4012
|
]),
|
|
4007
4013
|
_: 2
|
|
4008
4014
|
}, 1032, ["is-selected", "onSelect"]))), 128))
|
|
@@ -4013,15 +4019,15 @@ const Fn = {
|
|
|
4013
4019
|
key: 6,
|
|
4014
4020
|
filter: B.value,
|
|
4015
4021
|
"onUpdate:filter": Z[7] || (Z[7] = (N) => B.value = N),
|
|
4016
|
-
loading:
|
|
4017
|
-
column:
|
|
4022
|
+
loading: D.loading,
|
|
4023
|
+
column: D.column,
|
|
4018
4024
|
"default-operation": d(),
|
|
4019
4025
|
onSelectionChanged: Z[8] || (Z[8] = (N) => k.value = !0)
|
|
4020
4026
|
}, null, 8, ["filter", "loading", "column", "default-operation"]))
|
|
4021
4027
|
], 2)) : L("", !0);
|
|
4022
4028
|
};
|
|
4023
4029
|
}
|
|
4024
|
-
}), ss = /* @__PURE__ */ ye(ns, [["__scopeId", "data-v-
|
|
4030
|
+
}), ss = /* @__PURE__ */ ye(ns, [["__scopeId", "data-v-448a7917"]]), rs = ["onClick"], is = ["onClick"], cs = { class: "cl-font-normal cl-mr-1" }, us = /* @__PURE__ */ P({
|
|
4025
4031
|
__name: "cl-ui-grid-header",
|
|
4026
4032
|
props: {
|
|
4027
4033
|
request: {},
|
|
@@ -4078,7 +4084,7 @@ const Fn = {
|
|
|
4078
4084
|
onClick: (y) => g(Xe)(r) && i.loading === !1 ? u(r.field) : () => {
|
|
4079
4085
|
}
|
|
4080
4086
|
}, [
|
|
4081
|
-
ie(
|
|
4087
|
+
ie(A(r.caption) + " ", 1),
|
|
4082
4088
|
le(C(g(_), {
|
|
4083
4089
|
class: "cl-inline-block",
|
|
4084
4090
|
icon: "ph:caret-up"
|
|
@@ -4124,7 +4130,7 @@ const Fn = {
|
|
|
4124
4130
|
class: O(["cl-col-span-2 lg:cl-hidden", {
|
|
4125
4131
|
"cl-hidden": i.options.hideGridMobileView
|
|
4126
4132
|
}])
|
|
4127
|
-
},
|
|
4133
|
+
}, A(r.caption), 3),
|
|
4128
4134
|
g(Xe)(r) ? (p(), v("div", {
|
|
4129
4135
|
key: 0,
|
|
4130
4136
|
class: O(["cl-col-span-2 cl-gap-1 cl-span lg:cl-hidden", {
|
|
@@ -4132,7 +4138,7 @@ const Fn = {
|
|
|
4132
4138
|
}]),
|
|
4133
4139
|
onClick: (y) => i.loading === !1 ? u(r.field) : void 0
|
|
4134
4140
|
}, [
|
|
4135
|
-
m("span", cs,
|
|
4141
|
+
m("span", cs, A(g(s)("grid.sortBy")), 1),
|
|
4136
4142
|
d(r, !0) ? (p(), G(g(_), {
|
|
4137
4143
|
key: 0,
|
|
4138
4144
|
class: "cl-cursor-pointer cl-inline-block",
|
|
@@ -4211,7 +4217,7 @@ const Fn = {
|
|
|
4211
4217
|
placeholder: i.columns.length > 4 ? g(c)("grid.search") : g(c)("grid.searchSpecific", { columns: i.columns.map((f) => f.caption).join(", ") }),
|
|
4212
4218
|
onKeypress: a[1] || (a[1] = be((f) => d(e.value), ["enter"]))
|
|
4213
4219
|
}, {
|
|
4214
|
-
default:
|
|
4220
|
+
default: E(() => [
|
|
4215
4221
|
fs
|
|
4216
4222
|
]),
|
|
4217
4223
|
_: 1
|
|
@@ -4255,14 +4261,14 @@ const Fn = {
|
|
|
4255
4261
|
disabled: i.loading,
|
|
4256
4262
|
onClick: a[0] || (a[0] = ae((r) => n.value = !0, ["prevent"]))
|
|
4257
4263
|
}), {
|
|
4258
|
-
default:
|
|
4259
|
-
ie(
|
|
4264
|
+
default: E(() => [
|
|
4265
|
+
ie(A(g(s)("grid.manageView")), 1)
|
|
4260
4266
|
]),
|
|
4261
4267
|
_: 1
|
|
4262
4268
|
}, 16, ["disabled"]),
|
|
4263
4269
|
(p(), G(wl, { to: "body" }, [
|
|
4264
4270
|
C(Me, { name: "slide-left" }, {
|
|
4265
|
-
default:
|
|
4271
|
+
default: E(() => [
|
|
4266
4272
|
le(m("div", gs, [
|
|
4267
4273
|
m("div", vs, [
|
|
4268
4274
|
C(g(_), {
|
|
@@ -4271,18 +4277,18 @@ const Fn = {
|
|
|
4271
4277
|
size: 16,
|
|
4272
4278
|
onClick: a[1] || (a[1] = (r) => n.value = !1)
|
|
4273
4279
|
}),
|
|
4274
|
-
m("h3", bs,
|
|
4280
|
+
m("h3", bs, A(g(s)("grid.manageView")), 1),
|
|
4275
4281
|
m("ul", hs, [
|
|
4276
4282
|
m("li", ys, [
|
|
4277
|
-
m("strong", ws,
|
|
4278
|
-
m("strong", ks,
|
|
4279
|
-
m("strong", $s,
|
|
4283
|
+
m("strong", ws, A(g(s)("grid.column")), 1),
|
|
4284
|
+
m("strong", ks, A(g(s)("grid.visible")), 1),
|
|
4285
|
+
m("strong", $s, A(g(s)("grid.order")), 1)
|
|
4280
4286
|
]),
|
|
4281
4287
|
(p(!0), v(Y, null, ne(i.columns, (r, f) => (p(), v("li", {
|
|
4282
4288
|
key: f,
|
|
4283
4289
|
class: "cl-border-b cl-border-grey-2 cl-flex cl-py-2 cl-text-sm cl-w-full"
|
|
4284
4290
|
}, [
|
|
4285
|
-
m("div", Cs,
|
|
4291
|
+
m("div", Cs, A(r.caption), 1),
|
|
4286
4292
|
m("div", Ts, [
|
|
4287
4293
|
C(dl, {
|
|
4288
4294
|
"model-value": r.visible === void 0 || r.visible === !0,
|
|
@@ -4303,7 +4309,7 @@ const Fn = {
|
|
|
4303
4309
|
icon: "ph:arrow-right",
|
|
4304
4310
|
onClick: (y) => c(f, "up")
|
|
4305
4311
|
}, null, 8, ["onClick"])) : L("", !0)
|
|
4306
|
-
], 64)) : (p(), v("em", qs,
|
|
4312
|
+
], 64)) : (p(), v("em", qs, A(g(s)("grid.hidden")), 1))
|
|
4307
4313
|
])
|
|
4308
4314
|
]))), 128))
|
|
4309
4315
|
])
|
|
@@ -4317,7 +4323,7 @@ const Fn = {
|
|
|
4317
4323
|
]))
|
|
4318
4324
|
], 64));
|
|
4319
4325
|
}
|
|
4320
|
-
}), Ds = { class: "cl-relative cl-w-full grid-wrapper lg:cl-min-h-fit" },
|
|
4326
|
+
}), Ds = { class: "cl-relative cl-w-full grid-wrapper lg:cl-min-h-fit" }, As = { class: "cl-absolute cl-flex cl-items-center cl-justify-center cl-min-h-full cl-p-28 cl-pt-0 cl-w-full" }, Es = { class: "cl-overflow-x-auto cl-overscroll-x-none cl-pt-1" }, Vs = /* @__PURE__ */ P({
|
|
4321
4327
|
__name: "cl-ui-grid",
|
|
4322
4328
|
props: {
|
|
4323
4329
|
columns: {},
|
|
@@ -4403,14 +4409,14 @@ const Fn = {
|
|
|
4403
4409
|
"onUpdate:request": H[1] || (H[1] = (F) => f.value = F),
|
|
4404
4410
|
columns: ee.value
|
|
4405
4411
|
}, {
|
|
4406
|
-
search:
|
|
4412
|
+
search: E((F) => [
|
|
4407
4413
|
M(R.$slots, "search", ce(pe(F)))
|
|
4408
4414
|
]),
|
|
4409
4415
|
_: 3
|
|
4410
4416
|
}, 8, ["search-value", "request", "columns"])) : L("", !0),
|
|
4411
4417
|
C(Me, { name: "fade" }, {
|
|
4412
|
-
default:
|
|
4413
|
-
le(m("div",
|
|
4418
|
+
default: E(() => [
|
|
4419
|
+
le(m("div", As, [
|
|
4414
4420
|
C(cl, { class: "after:!cl-h-20 after:!cl-w-20 cl-h-20 cl-w-20" })
|
|
4415
4421
|
], 512), [
|
|
4416
4422
|
[ue, R.loading]
|
|
@@ -4429,10 +4435,10 @@ const Fn = {
|
|
|
4429
4435
|
loading: R.loading,
|
|
4430
4436
|
onClearFilters: y
|
|
4431
4437
|
}, {
|
|
4432
|
-
"additional-grid-actions":
|
|
4438
|
+
"additional-grid-actions": E((F) => [
|
|
4433
4439
|
M(R.$slots, "additional-grid-actions", ce(pe(F)))
|
|
4434
4440
|
]),
|
|
4435
|
-
"view-manager":
|
|
4441
|
+
"view-manager": E(() => [
|
|
4436
4442
|
C(Os, {
|
|
4437
4443
|
columns: u.value,
|
|
4438
4444
|
"onUpdate:columns": H[2] || (H[2] = (F) => u.value = F),
|
|
@@ -4441,7 +4447,7 @@ const Fn = {
|
|
|
4441
4447
|
]),
|
|
4442
4448
|
_: 3
|
|
4443
4449
|
}, 8, ["edit-mode", "filter-panel-open", "columns", "options", "request", "loading"]),
|
|
4444
|
-
m("div",
|
|
4450
|
+
m("div", Es, [
|
|
4445
4451
|
m("table", {
|
|
4446
4452
|
class: O(["cl-delay-75 cl-min-h-[276px] cl-overflow-x-auto cl-overscroll-x-none cl-text-left cl-transition-opacity cl-w-full", {
|
|
4447
4453
|
"cl-opacity-40 cl-pointer-events-none": R.loading
|
|
@@ -4486,7 +4492,7 @@ const Fn = {
|
|
|
4486
4492
|
}, Te({ _: 2 }, [
|
|
4487
4493
|
ne(R.$slots, (F, j) => ({
|
|
4488
4494
|
name: j,
|
|
4489
|
-
fn:
|
|
4495
|
+
fn: E((x) => [
|
|
4490
4496
|
M(R.$slots, j, ce(pe(x)))
|
|
4491
4497
|
])
|
|
4492
4498
|
}))
|
|
@@ -4551,7 +4557,7 @@ const Fn = {
|
|
|
4551
4557
|
}, Te({ _: 2 }, [
|
|
4552
4558
|
ne(r.$slots, (y, k) => ({
|
|
4553
4559
|
name: k,
|
|
4554
|
-
fn:
|
|
4560
|
+
fn: E((b) => [
|
|
4555
4561
|
M(r.$slots, k, ce(pe(b)))
|
|
4556
4562
|
])
|
|
4557
4563
|
}))
|
|
@@ -4627,7 +4633,7 @@ const Us = ["id", "onClick"], dt = /* @__PURE__ */ P({
|
|
|
4627
4633
|
class: O(["cl-tracking-wide", {
|
|
4628
4634
|
"cl-opacity-0": d.loading
|
|
4629
4635
|
}])
|
|
4630
|
-
},
|
|
4636
|
+
}, A(i.caption ? g(e)(i.caption) : i.name), 3),
|
|
4631
4637
|
le(m("div", {
|
|
4632
4638
|
class: O(["cl-px-0.5 cl-py-1 cl-rounded hover:cl-bg-link-lighter", {
|
|
4633
4639
|
"cl-bg-link-lighter": s(i, !1) || s(i, !0),
|
|
@@ -4708,7 +4714,7 @@ const Us = ["id", "onClick"], dt = /* @__PURE__ */ P({
|
|
|
4708
4714
|
}, Te({ _: 2 }, [
|
|
4709
4715
|
ne(t.$slots, (n, d) => ({
|
|
4710
4716
|
name: d,
|
|
4711
|
-
fn:
|
|
4717
|
+
fn: E((u) => [
|
|
4712
4718
|
M(t.$slots, d, ce(pe(u)))
|
|
4713
4719
|
])
|
|
4714
4720
|
}))
|
|
@@ -4744,7 +4750,7 @@ const Us = ["id", "onClick"], dt = /* @__PURE__ */ P({
|
|
|
4744
4750
|
]])
|
|
4745
4751
|
}, [
|
|
4746
4752
|
M(n.$slots, "noData", {}, () => [
|
|
4747
|
-
ie(
|
|
4753
|
+
ie(A(g(l)("grid.noData")), 1)
|
|
4748
4754
|
])
|
|
4749
4755
|
], 2)) : (p(!0), v(Y, { key: 2 }, ne(n.data.results, (c, i) => {
|
|
4750
4756
|
var a, r;
|
|
@@ -4766,7 +4772,7 @@ const Us = ["id", "onClick"], dt = /* @__PURE__ */ P({
|
|
|
4766
4772
|
}, Te({ _: 2 }, [
|
|
4767
4773
|
ne(n.$slots, (f, y) => ({
|
|
4768
4774
|
name: y,
|
|
4769
|
-
fn:
|
|
4775
|
+
fn: E((k) => [
|
|
4770
4776
|
M(n.$slots, y, ce(pe(k)))
|
|
4771
4777
|
])
|
|
4772
4778
|
}))
|
|
@@ -4826,13 +4832,19 @@ const Us = ["id", "onClick"], dt = /* @__PURE__ */ P({
|
|
|
4826
4832
|
return t.column.maxLength && (a = a.trimToLength(t.column.maxLength, t.column.format !== void 0 ? t.column.format === "ellipsis" : !1)), t.column.format === "wrap-text" && (a = `<span class="cl-break-words cl-whitespace-pre-wrap">${a}</span>`), a;
|
|
4827
4833
|
}
|
|
4828
4834
|
function i(a, r) {
|
|
4829
|
-
return t.column.format === X.INTEGER ?
|
|
4835
|
+
return t.column.format === X.INTEGER ? Ae(a, X.DECIMAL, {
|
|
4830
4836
|
locale: r,
|
|
4831
4837
|
additionalOptions: {
|
|
4832
4838
|
maximumFractionDigits: 0,
|
|
4833
4839
|
minimumFractionDigits: 0
|
|
4834
4840
|
}
|
|
4835
|
-
}) :
|
|
4841
|
+
}) : Ae(a, t.column.format ?? X.DECIMAL, {
|
|
4842
|
+
locale: r,
|
|
4843
|
+
additionalOptions: {
|
|
4844
|
+
maximumFractionDigits: t.column.precision ?? 2,
|
|
4845
|
+
minimumFractionDigits: t.column.precision ?? 2
|
|
4846
|
+
}
|
|
4847
|
+
});
|
|
4836
4848
|
}
|
|
4837
4849
|
return (a, r) => {
|
|
4838
4850
|
var f;
|
|
@@ -4852,21 +4864,21 @@ const Us = ["id", "onClick"], dt = /* @__PURE__ */ P({
|
|
|
4852
4864
|
id: g(l)
|
|
4853
4865
|
}, [
|
|
4854
4866
|
a.column.format !== void 0 ? (p(), v(Y, { key: 0 }, [
|
|
4855
|
-
ie(
|
|
4867
|
+
ie(A(u(a.data[a.column.field], a.column.format)), 1)
|
|
4856
4868
|
], 64)) : a.column.type === "date" || a.column.type === "dateRange" ? (p(), v(Y, { key: 1 }, [
|
|
4857
|
-
ie(
|
|
4869
|
+
ie(A(u(a.data[a.column.field], g(se).DATE)), 1)
|
|
4858
4870
|
], 64)) : (p(), v(Y, { key: 2 }, [
|
|
4859
|
-
ie(
|
|
4871
|
+
ie(A(u(a.data[a.column.field], g(se).DATETIME)), 1)
|
|
4860
4872
|
], 64))
|
|
4861
4873
|
], 8, Ls)) : a.column.type === "list" && a.column.field !== void 0 && a.column.listEntries !== void 0 ? (p(), v("span", {
|
|
4862
4874
|
key: 3,
|
|
4863
4875
|
id: g(l),
|
|
4864
4876
|
class: "cl-inline-block cl-whitespace-nowrap"
|
|
4865
|
-
},
|
|
4877
|
+
}, A(g(n)(((f = a.column.listEntries.find((y) => y.value === a.data[a.column.field])) == null ? void 0 : f.translationKey) ?? "")), 9, Bs)) : a.column.type === "number" && a.column.field !== void 0 ? (p(), v("span", {
|
|
4866
4878
|
key: 4,
|
|
4867
4879
|
id: g(l),
|
|
4868
4880
|
class: "cl-inline-block cl-whitespace-nowrap"
|
|
4869
|
-
},
|
|
4881
|
+
}, A(i(a.data[a.column.field], g(d))), 9, Fs)) : a.column.field !== void 0 ? (p(), v("span", js, [
|
|
4870
4882
|
m("span", {
|
|
4871
4883
|
id: g(l),
|
|
4872
4884
|
innerHTML: c()
|
|
@@ -4941,11 +4953,11 @@ const vt = /* @__PURE__ */ ye(Gs, [["render", Qs]]), Ys = { class: "cl-flex cl-g
|
|
|
4941
4953
|
}, [
|
|
4942
4954
|
m("div", Ys, [
|
|
4943
4955
|
m("div", null, [
|
|
4944
|
-
m("span", _s,
|
|
4945
|
-
m("span", null,
|
|
4956
|
+
m("span", _s, A(g(e)("grid.page")), 1),
|
|
4957
|
+
m("span", null, A(g(we)(l.value.pageNumber)) + " / " + A(g(we)(s.value)), 1)
|
|
4946
4958
|
]),
|
|
4947
4959
|
c.value.length ? (p(), v("ul", Js, [
|
|
4948
|
-
m("li", xs,
|
|
4960
|
+
m("li", xs, A(g(e)("grid.pageSize")), 1),
|
|
4949
4961
|
(p(!0), v(Y, null, ne(c.value, (k, b) => (p(), v("li", {
|
|
4950
4962
|
id: `${a.gridId}-page-size-${k}`,
|
|
4951
4963
|
key: b,
|
|
@@ -4954,7 +4966,7 @@ const vt = /* @__PURE__ */ ye(Gs, [["render", Qs]]), Ys = { class: "cl-flex cl-g
|
|
|
4954
4966
|
"cl-border-b-transparent hover:cl-border-b-link-lighter hover:cl-text-link-light cl-cursor-pointer": l.value.pageSize !== k
|
|
4955
4967
|
}]),
|
|
4956
4968
|
onClick: (T) => l.value.pageSize !== k ? i(k) : null
|
|
4957
|
-
},
|
|
4969
|
+
}, A(g(we)(k)), 11, Xs))), 128))
|
|
4958
4970
|
])) : L("", !0)
|
|
4959
4971
|
]),
|
|
4960
4972
|
m("div", null, [
|
|
@@ -4993,7 +5005,7 @@ const vt = /* @__PURE__ */ ye(Gs, [["render", Qs]]), Ys = { class: "cl-flex cl-g
|
|
|
4993
5005
|
"cl-cursor-pointer ": l.value.pageNumber !== k
|
|
4994
5006
|
}]),
|
|
4995
5007
|
onClick: (T) => l.value.pageNumber !== k ? d(k) : null
|
|
4996
|
-
},
|
|
5008
|
+
}, A(g(we)(k)), 11, or))), 128)),
|
|
4997
5009
|
m("li", {
|
|
4998
5010
|
id: `${a.gridId}-page-next`,
|
|
4999
5011
|
class: O({
|
|
@@ -5090,8 +5102,8 @@ const vt = /* @__PURE__ */ ye(Gs, [["render", Qs]]), Ys = { class: "cl-flex cl-g
|
|
|
5090
5102
|
"cl-text-white": t.colour === "secondary"
|
|
5091
5103
|
}])
|
|
5092
5104
|
}, [
|
|
5093
|
-
t.username ? (p(), v("div", ur,
|
|
5094
|
-
t.group ? (p(), v("div", dr,
|
|
5105
|
+
t.username ? (p(), v("div", ur, A(t.username), 1)) : L("", !0),
|
|
5106
|
+
t.group ? (p(), v("div", dr, A(t.group), 1)) : L("", !0)
|
|
5095
5107
|
], 2),
|
|
5096
5108
|
m("div", pr, [
|
|
5097
5109
|
C(g(_), {
|
|
@@ -5105,7 +5117,7 @@ const vt = /* @__PURE__ */ ye(Gs, [["render", Qs]]), Ys = { class: "cl-flex cl-g
|
|
|
5105
5117
|
])
|
|
5106
5118
|
]),
|
|
5107
5119
|
C(Me, { name: "fade" }, {
|
|
5108
|
-
default:
|
|
5120
|
+
default: E(() => [
|
|
5109
5121
|
le(m("div", fr, [
|
|
5110
5122
|
M(t.$slots, "default")
|
|
5111
5123
|
], 512), [
|
|
@@ -5193,7 +5205,7 @@ const vt = /* @__PURE__ */ ye(Gs, [["render", Qs]]), Ys = { class: "cl-flex cl-g
|
|
|
5193
5205
|
"hide-time-header": "",
|
|
5194
5206
|
popover: i.value
|
|
5195
5207
|
}, {
|
|
5196
|
-
default:
|
|
5208
|
+
default: E(({ inputValue: ee, inputEvents: I }) => [
|
|
5197
5209
|
C(Ze, J(q.$attrs, {
|
|
5198
5210
|
ref_key: "input",
|
|
5199
5211
|
ref: r,
|
|
@@ -5227,7 +5239,7 @@ const vt = /* @__PURE__ */ ye(Gs, [["render", Qs]]), Ys = { class: "cl-flex cl-g
|
|
|
5227
5239
|
"initial-page": f.value,
|
|
5228
5240
|
onDayclick: z[4] || (z[4] = (ee) => y.value = null)
|
|
5229
5241
|
}, {
|
|
5230
|
-
default:
|
|
5242
|
+
default: E(({ togglePopover: ee }) => [
|
|
5231
5243
|
C(Ze, J(q.$attrs, {
|
|
5232
5244
|
ref_key: "input",
|
|
5233
5245
|
ref: r,
|
|
@@ -5243,7 +5255,7 @@ const vt = /* @__PURE__ */ ye(Gs, [["render", Qs]]), Ys = { class: "cl-flex cl-g
|
|
|
5243
5255
|
})
|
|
5244
5256
|
}), null, 16, ["type", "required", "disabled", "range-selected", "title", "onTogglePopover"])
|
|
5245
5257
|
]),
|
|
5246
|
-
footer:
|
|
5258
|
+
footer: E(() => [
|
|
5247
5259
|
q.quickDateScope !== "none" ? (p(), G(nt, {
|
|
5248
5260
|
key: 0,
|
|
5249
5261
|
scope: q.quickDateScope,
|
|
@@ -5272,7 +5284,7 @@ const vt = /* @__PURE__ */ ye(Gs, [["render", Qs]]), Ys = { class: "cl-flex cl-g
|
|
|
5272
5284
|
"hide-time-header": "",
|
|
5273
5285
|
popover: i.value
|
|
5274
5286
|
}, {
|
|
5275
|
-
default:
|
|
5287
|
+
default: E(({ inputValue: ee, inputEvents: I }) => [
|
|
5276
5288
|
C(Ze, J(q.$attrs, {
|
|
5277
5289
|
ref_key: "input",
|
|
5278
5290
|
ref: r,
|
|
@@ -5402,7 +5414,7 @@ const vt = /* @__PURE__ */ ye(Gs, [["render", Qs]]), Ys = { class: "cl-flex cl-g
|
|
|
5402
5414
|
"cl-bg-grey-0": i.disabled
|
|
5403
5415
|
}]),
|
|
5404
5416
|
onClick: a[0] || (a[0] = (r) => e.value = i.disabled ? e.value : i.min)
|
|
5405
|
-
},
|
|
5417
|
+
}, A(Number.isInteger(i.min) ? g(we)(i.min) : g(Ae)(i.min, g(X).DECIMAL)), 3),
|
|
5406
5418
|
m("div", kr, [
|
|
5407
5419
|
c.value ? (p(), G(_e, {
|
|
5408
5420
|
key: 0,
|
|
@@ -5419,7 +5431,7 @@ const vt = /* @__PURE__ */ ye(Gs, [["render", Qs]]), Ys = { class: "cl-flex cl-g
|
|
|
5419
5431
|
disabled: i.disabled,
|
|
5420
5432
|
placeholder: i.placeholder
|
|
5421
5433
|
}, {
|
|
5422
|
-
default:
|
|
5434
|
+
default: E(() => [
|
|
5423
5435
|
$r
|
|
5424
5436
|
]),
|
|
5425
5437
|
_: 1
|
|
@@ -5442,7 +5454,7 @@ const vt = /* @__PURE__ */ ye(Gs, [["render", Qs]]), Ys = { class: "cl-flex cl-g
|
|
|
5442
5454
|
{ number: !0 }
|
|
5443
5455
|
]
|
|
5444
5456
|
]),
|
|
5445
|
-
m("div", Tr,
|
|
5457
|
+
m("div", Tr, A(Number.isInteger(e.value) ? g(we)(e.value) : g(Ae)(e.value, g(X).DECIMAL)), 1)
|
|
5446
5458
|
], 64))
|
|
5447
5459
|
]),
|
|
5448
5460
|
m("span", {
|
|
@@ -5451,7 +5463,7 @@ const vt = /* @__PURE__ */ ye(Gs, [["render", Qs]]), Ys = { class: "cl-flex cl-g
|
|
|
5451
5463
|
"cl-bg-grey-0": i.disabled
|
|
5452
5464
|
}]),
|
|
5453
5465
|
onClick: a[3] || (a[3] = (r) => e.value = i.disabled ? e.value : i.max)
|
|
5454
|
-
},
|
|
5466
|
+
}, A(Number.isInteger(i.max) ? g(we)(i.max) : g(Ae)(i.max, g(X).DECIMAL)), 3),
|
|
5455
5467
|
m("div", Sr, [
|
|
5456
5468
|
m("div", {
|
|
5457
5469
|
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",
|
|
@@ -5461,7 +5473,7 @@ const vt = /* @__PURE__ */ ye(Gs, [["render", Qs]]), Ys = { class: "cl-flex cl-g
|
|
|
5461
5473
|
])
|
|
5462
5474
|
])
|
|
5463
5475
|
])
|
|
5464
|
-
], 16)) : (p(), v("div", qr,
|
|
5476
|
+
], 16)) : (p(), v("div", qr, A(g(s)("slider.invalidProps")), 1));
|
|
5465
5477
|
}
|
|
5466
5478
|
}), Dr = /* @__PURE__ */ ye(Or, [["__scopeId", "data-v-5cb4ccea"]]);
|
|
5467
5479
|
function zl(o) {
|
|
@@ -5481,7 +5493,7 @@ function zl(o) {
|
|
|
5481
5493
|
}
|
|
5482
5494
|
return t;
|
|
5483
5495
|
}
|
|
5484
|
-
function
|
|
5496
|
+
function Ar(o) {
|
|
5485
5497
|
return o === "number" || o === "range";
|
|
5486
5498
|
}
|
|
5487
5499
|
function Ll(o) {
|
|
@@ -5502,7 +5514,7 @@ function Ll(o) {
|
|
|
5502
5514
|
function Ge(o) {
|
|
5503
5515
|
return o === "button" || o === "submit" || o === "reset";
|
|
5504
5516
|
}
|
|
5505
|
-
function
|
|
5517
|
+
function Er(o) {
|
|
5506
5518
|
let t;
|
|
5507
5519
|
switch (o) {
|
|
5508
5520
|
case "datetime":
|
|
@@ -5523,7 +5535,7 @@ function Ar(o) {
|
|
|
5523
5535
|
}
|
|
5524
5536
|
function Bl(o, t) {
|
|
5525
5537
|
const l = o.target;
|
|
5526
|
-
return
|
|
5538
|
+
return Ar(t) ? l.valueAsNumber : Ge(t) ? l.checked : l.value;
|
|
5527
5539
|
}
|
|
5528
5540
|
const Vr = { class: "cl-flex cl-justify-between" }, Mr = { class: "cl-w-full" }, Ir = {
|
|
5529
5541
|
key: 0,
|
|
@@ -5623,8 +5635,8 @@ const Vr = { class: "cl-flex cl-justify-between" }, Mr = { class: "cl-w-full" },
|
|
|
5623
5635
|
})
|
|
5624
5636
|
];
|
|
5625
5637
|
return (typeof h == "string" || typeof h == "number") && (W.push(va(e.min, e.inputType, e.label, h, e.timeZone)), W.push(ba(e.max, e.inputType, e.label, h, e.timeZone))), e.isRequired && W.push(ha(e.label, h)), e.inputType === "email" && typeof h == "string" && W.push(ya(e.label, h)), Promise.all(W).then((re) => {
|
|
5626
|
-
const
|
|
5627
|
-
z.value = !0, qe ? (ee.value =
|
|
5638
|
+
const Ee = [...re.map((Je) => Je.message)], qe = re.some((Je) => Je.message.length > 0 && Je.valid === !1) || e.externalErrors.length > 0;
|
|
5639
|
+
z.value = !0, qe ? (ee.value = Ee, s("validated", !1, h)) : (ee.value = [], s("validated", !0, h)), q.value = !qe;
|
|
5628
5640
|
});
|
|
5629
5641
|
}
|
|
5630
5642
|
function x() {
|
|
@@ -5655,7 +5667,7 @@ const Vr = { class: "cl-flex cl-justify-between" }, Mr = { class: "cl-w-full" },
|
|
|
5655
5667
|
function $e(h) {
|
|
5656
5668
|
u.value = h;
|
|
5657
5669
|
}
|
|
5658
|
-
async function
|
|
5670
|
+
async function D() {
|
|
5659
5671
|
c.value = !0, $e(!1), e.validateOn === "change" && await j(f.value);
|
|
5660
5672
|
}
|
|
5661
5673
|
function Z() {
|
|
@@ -5671,7 +5683,7 @@ const Vr = { class: "cl-flex cl-justify-between" }, Mr = { class: "cl-w-full" },
|
|
|
5671
5683
|
}
|
|
5672
5684
|
}
|
|
5673
5685
|
async function Q() {
|
|
5674
|
-
await
|
|
5686
|
+
await D(), Z();
|
|
5675
5687
|
}
|
|
5676
5688
|
return We(() => {
|
|
5677
5689
|
e.validateImmediately && F(e.modelValue, !0);
|
|
@@ -5701,11 +5713,11 @@ const Vr = { class: "cl-flex cl-justify-between" }, Mr = { class: "cl-w-full" },
|
|
|
5701
5713
|
}, [
|
|
5702
5714
|
m("div", Vr, [
|
|
5703
5715
|
m("div", Mr, [
|
|
5704
|
-
le(m("label", { class: "cl-block cl-mb-1 cl-text-grey-4 cl-text-xs cl-tracking-widest" },
|
|
5716
|
+
le(m("label", { class: "cl-block cl-mb-1 cl-text-grey-4 cl-text-xs cl-tracking-widest" }, A(h.label), 513), [
|
|
5705
5717
|
[ue, h.showLabel && h.label !== ""]
|
|
5706
5718
|
])
|
|
5707
5719
|
]),
|
|
5708
|
-
i.value ? (p(), v("label", Ir, " * ")) : h.isRequired && h.requiredText.length ? (p(), v("label", Nr,
|
|
5720
|
+
i.value ? (p(), v("label", Ir, " * ")) : h.isRequired && h.requiredText.length ? (p(), v("label", Nr, A(h.requiredText), 1)) : L("", !0)
|
|
5709
5721
|
]),
|
|
5710
5722
|
h.inputType !== "range" && h.inputType !== "currency" && !g(Ll)(h.inputType) ? (p(), v("div", Rr, [
|
|
5711
5723
|
le(m("input", J({
|
|
@@ -5749,7 +5761,7 @@ const Vr = { class: "cl-flex cl-justify-between" }, Mr = { class: "cl-w-full" },
|
|
|
5749
5761
|
name: "fade",
|
|
5750
5762
|
duration: 300
|
|
5751
5763
|
}, {
|
|
5752
|
-
default:
|
|
5764
|
+
default: E(() => [
|
|
5753
5765
|
h.inputType === "number" && !h.disabled && h.showArrows ? le((p(), v("div", zr, [
|
|
5754
5766
|
C(g(_), {
|
|
5755
5767
|
icon: "ph:caret-up-bold",
|
|
@@ -5789,7 +5801,7 @@ const Vr = { class: "cl-flex cl-justify-between" }, Mr = { class: "cl-w-full" },
|
|
|
5789
5801
|
"currency-options": R.value,
|
|
5790
5802
|
onChange: U[7] || (U[7] = (W, re) => N(W, re)),
|
|
5791
5803
|
onFocus: U[8] || (U[8] = (W) => s("focus")),
|
|
5792
|
-
onBlur:
|
|
5804
|
+
onBlur: D
|
|
5793
5805
|
}), null, 16, ["modelValue", "disabled", "placeholder", "is-valid", "highlight-when-valid", "input-specific-classes", "group", "step", "currency-options"])
|
|
5794
5806
|
])) : g(Ll)(h.inputType) ? (p(), G(g(vr), J({ key: 2 }, h.$attrs, {
|
|
5795
5807
|
ref_key: "inputElement",
|
|
@@ -5803,7 +5815,7 @@ const Vr = { class: "cl-flex cl-justify-between" }, Mr = { class: "cl-w-full" },
|
|
|
5803
5815
|
}],
|
|
5804
5816
|
disabled: h.disabled,
|
|
5805
5817
|
required: h.isRequired,
|
|
5806
|
-
type: g(
|
|
5818
|
+
type: g(Er)(h.inputType),
|
|
5807
5819
|
"time-zone": h.timeZone,
|
|
5808
5820
|
min: k.value,
|
|
5809
5821
|
max: b.value,
|
|
@@ -5811,7 +5823,7 @@ const Vr = { class: "cl-flex cl-justify-between" }, Mr = { class: "cl-w-full" },
|
|
|
5811
5823
|
"initial-date": h.initialDate,
|
|
5812
5824
|
"quick-date-scope": h.quickDateScope,
|
|
5813
5825
|
"date-format-locale": h.dateFormatLocale,
|
|
5814
|
-
onBlur: ae(
|
|
5826
|
+
onBlur: ae(D, ["self"]),
|
|
5815
5827
|
onFocus: U[10] || (U[10] = (W) => s("focus"))
|
|
5816
5828
|
}), null, 16, ["date", "class", "disabled", "required", "type", "time-zone", "min", "max", "placeholder", "initial-date", "quick-date-scope", "date-format-locale"])) : h.inputType === "range" && typeof f.value == "number" ? (p(), v("div", Br, [
|
|
5817
5829
|
C(g(Dr), {
|
|
@@ -5825,13 +5837,13 @@ const Vr = { class: "cl-flex cl-justify-between" }, Mr = { class: "cl-w-full" },
|
|
|
5825
5837
|
placeholder: a.value,
|
|
5826
5838
|
"enforce-step": !0,
|
|
5827
5839
|
disabled: h.disabled,
|
|
5828
|
-
onBlur: ae(
|
|
5840
|
+
onBlur: ae(D, ["self"]),
|
|
5829
5841
|
onFocus: U[12] || (U[12] = (W) => s("focus"))
|
|
5830
5842
|
}, null, 8, ["value", "min", "max", "step", "placeholder", "disabled"])
|
|
5831
5843
|
])) : L("", !0)
|
|
5832
5844
|
], 32),
|
|
5833
|
-
q.value && B.value && z.value ? (p(), v("div", Fr,
|
|
5834
|
-
!q.value && I.value.length > 0 && h.showValidationMessages && z.value ? (p(), v("div", jr,
|
|
5845
|
+
q.value && B.value && z.value ? (p(), v("div", Fr, A(B.value), 1)) : L("", !0),
|
|
5846
|
+
!q.value && I.value.length > 0 && h.showValidationMessages && z.value ? (p(), v("div", jr, A(I.value), 1)) : L("", !0)
|
|
5835
5847
|
], 16));
|
|
5836
5848
|
}
|
|
5837
5849
|
}), Gr = /* @__PURE__ */ ye(Pr, [["__scopeId", "data-v-2373f106"]]), Hr = [
|
|
@@ -5903,10 +5915,10 @@ const Kr = {
|
|
|
5903
5915
|
class: O(["cl-font-semibold cl-text-xs", {
|
|
5904
5916
|
"cl-opacity-50": a.disabled
|
|
5905
5917
|
}])
|
|
5906
|
-
},
|
|
5918
|
+
}, A(d.value.nativeName), 3)
|
|
5907
5919
|
], 2),
|
|
5908
5920
|
C(Me, { name: "fade" }, {
|
|
5909
|
-
default:
|
|
5921
|
+
default: E(() => [
|
|
5910
5922
|
le(m("div", Qr, [
|
|
5911
5923
|
(p(!0), v(Y, null, ne(u.value, (f, y) => (p(), v("div", {
|
|
5912
5924
|
key: y,
|
|
@@ -5917,7 +5929,7 @@ const Kr = {
|
|
|
5917
5929
|
s.value = f.localeCode, i(), e("language-select", f.localeCode);
|
|
5918
5930
|
}
|
|
5919
5931
|
}, [
|
|
5920
|
-
m("span", _r,
|
|
5932
|
+
m("span", _r, A(f.nativeName), 1)
|
|
5921
5933
|
], 8, Yr))), 128))
|
|
5922
5934
|
], 512), [
|
|
5923
5935
|
[ue, n.value]
|
|
@@ -5994,12 +6006,12 @@ const Kr = {
|
|
|
5994
6006
|
placeholder: g(e)("login.email"),
|
|
5995
6007
|
autocomplete: "username"
|
|
5996
6008
|
}, {
|
|
5997
|
-
default:
|
|
6009
|
+
default: E(() => [
|
|
5998
6010
|
si
|
|
5999
6011
|
]),
|
|
6000
6012
|
_: 1
|
|
6001
6013
|
}, 8, ["modelValue", "class", "errors", "placeholder"]),
|
|
6002
|
-
u.value ? (p(), v("div", ri,
|
|
6014
|
+
u.value ? (p(), v("div", ri, A(g(e)("login.validEmail")), 1)) : L("", !0)
|
|
6003
6015
|
])
|
|
6004
6016
|
])
|
|
6005
6017
|
]),
|
|
@@ -6037,7 +6049,7 @@ const Kr = {
|
|
|
6037
6049
|
placeholder: g(e)("login.password"),
|
|
6038
6050
|
autocomplete: "current-password"
|
|
6039
6051
|
}, {
|
|
6040
|
-
default:
|
|
6052
|
+
default: E(() => [
|
|
6041
6053
|
ui
|
|
6042
6054
|
]),
|
|
6043
6055
|
_: 1
|
|
@@ -6057,15 +6069,15 @@ const Kr = {
|
|
|
6057
6069
|
disabled: !u.value || n.value === "",
|
|
6058
6070
|
onClick: ae(i, ["prevent"])
|
|
6059
6071
|
}, {
|
|
6060
|
-
default:
|
|
6061
|
-
ie(
|
|
6072
|
+
default: E(() => [
|
|
6073
|
+
ie(A(g(e)("login.login")), 1)
|
|
6062
6074
|
]),
|
|
6063
6075
|
_: 1
|
|
6064
6076
|
}, 8, ["loading", "disabled"])
|
|
6065
6077
|
], 2)
|
|
6066
6078
|
], 2),
|
|
6067
6079
|
C(Me, { name: "cl-grow-down" }, {
|
|
6068
|
-
default:
|
|
6080
|
+
default: E(() => {
|
|
6069
6081
|
var y;
|
|
6070
6082
|
return [
|
|
6071
6083
|
le(m("span", di, [
|
|
@@ -6073,7 +6085,7 @@ const Kr = {
|
|
|
6073
6085
|
id: "cl-ui-login-errors",
|
|
6074
6086
|
key: b,
|
|
6075
6087
|
class: "cl-font-semibold"
|
|
6076
|
-
},
|
|
6088
|
+
}, A(k), 1))), 128))
|
|
6077
6089
|
], 512), [
|
|
6078
6090
|
[ue, (y = r.errors) == null ? void 0 : y.length]
|
|
6079
6091
|
])
|
|
@@ -6160,7 +6172,7 @@ const Kr = {
|
|
|
6160
6172
|
], 2),
|
|
6161
6173
|
a.value ? (p(), v("div", gi)) : L("", !0),
|
|
6162
6174
|
C(Me, { name: "slide-right" }, {
|
|
6163
|
-
default:
|
|
6175
|
+
default: E(() => [
|
|
6164
6176
|
le(m("div", {
|
|
6165
6177
|
class: O(["cl-bg-grey-0 cl-border-grey-2 cl-border-r cl-duration-75 cl-h-full cl-min-w-[260px] cl-overflow-y-auto cl-overscroll-y-none cl-p-8 cl-pb-24 cl-top-0 cl-transition-shadow cl-w-[260px] cl-z-30 xl:cl-pb-0", {
|
|
6166
6178
|
"cl-relative": i.value,
|
|
@@ -6249,13 +6261,13 @@ function Oi(o, t) {
|
|
|
6249
6261
|
])
|
|
6250
6262
|
]);
|
|
6251
6263
|
}
|
|
6252
|
-
const Di = /* @__PURE__ */ ye(Ci, [["render", Oi]]),
|
|
6264
|
+
const Di = /* @__PURE__ */ ye(Ci, [["render", Oi]]), Ai = {}, Ei = { class: "cl-cursor-pointer cl-transition-colors cl-w-full hover:cl-text-primary-darker" };
|
|
6253
6265
|
function Vi(o, t) {
|
|
6254
|
-
return p(), v("div",
|
|
6266
|
+
return p(), v("div", Ei, [
|
|
6255
6267
|
M(o.$slots, "default")
|
|
6256
6268
|
]);
|
|
6257
6269
|
}
|
|
6258
|
-
const Mi = /* @__PURE__ */ ye(
|
|
6270
|
+
const Mi = /* @__PURE__ */ ye(Ai, [["render", Vi]]), Ii = /* @__PURE__ */ P({
|
|
6259
6271
|
__name: "cl-ui-tab",
|
|
6260
6272
|
props: {
|
|
6261
6273
|
colour: { default: "default" },
|
|
@@ -6385,7 +6397,7 @@ const Mi = /* @__PURE__ */ ye(Ei, [["render", Vi]]), Ii = /* @__PURE__ */ P({
|
|
|
6385
6397
|
inert: e.disabled
|
|
6386
6398
|
}, [
|
|
6387
6399
|
M(e.$slots, "default", {}, () => [
|
|
6388
|
-
ie(
|
|
6400
|
+
ie(A(e.title), 1)
|
|
6389
6401
|
])
|
|
6390
6402
|
], 10, Ni));
|
|
6391
6403
|
}
|
|
@@ -6398,7 +6410,7 @@ const Mi = /* @__PURE__ */ ye(Ei, [["render", Vi]]), Ii = /* @__PURE__ */ P({
|
|
|
6398
6410
|
setup(o) {
|
|
6399
6411
|
return (t, l) => t.open ? (p(), v("div", Ui, [
|
|
6400
6412
|
M(t.$slots, "header", {}, () => [
|
|
6401
|
-
m("h4", zi,
|
|
6413
|
+
m("h4", zi, A(t.title), 1)
|
|
6402
6414
|
]),
|
|
6403
6415
|
M(t.$slots, "default")
|
|
6404
6416
|
])) : L("", !0);
|
|
@@ -6527,10 +6539,10 @@ const Mi = /* @__PURE__ */ ye(Ei, [["render", Vi]]), Ii = /* @__PURE__ */ P({
|
|
|
6527
6539
|
}), (c, i) => (p(), G(Ie, {
|
|
6528
6540
|
"show-required-asterisk": c.required && c.$slots.label !== void 0
|
|
6529
6541
|
}, {
|
|
6530
|
-
label:
|
|
6542
|
+
label: E(() => [
|
|
6531
6543
|
M(c.$slots, "label")
|
|
6532
6544
|
]),
|
|
6533
|
-
default:
|
|
6545
|
+
default: E(() => [
|
|
6534
6546
|
m("div", J(c.$attrs, {
|
|
6535
6547
|
class: ["cl-flex", {
|
|
6536
6548
|
"cl-gap-0 [&_button:not(:last-of-type)]:cl-border-r-0 cl-flex-wrap [&_button:first-of-type]:cl-rounded-l-lg [&_button:last-of-type]:cl-rounded-r-lg": c.orientation === "horizontal",
|
|
@@ -6557,7 +6569,7 @@ const Mi = /* @__PURE__ */ ye(Ei, [["render", Vi]]), Ii = /* @__PURE__ */ P({
|
|
|
6557
6569
|
"cl-rounded-none ": t.orientation === "horizontal"
|
|
6558
6570
|
})
|
|
6559
6571
|
}, {
|
|
6560
|
-
default:
|
|
6572
|
+
default: E(() => [
|
|
6561
6573
|
M(t.$slots, "default")
|
|
6562
6574
|
]),
|
|
6563
6575
|
_: 3
|
|
@@ -6571,11 +6583,12 @@ const Mi = /* @__PURE__ */ ye(Ei, [["render", Vi]]), Ii = /* @__PURE__ */ P({
|
|
|
6571
6583
|
class: "cl-mb-1 cl-mt-0.5"
|
|
6572
6584
|
}, _i = { class: "cl-overflow-y-auto cl-w-full" }, Ji = {
|
|
6573
6585
|
key: 1,
|
|
6574
|
-
class: "cl-mt-auto cl-w-full"
|
|
6586
|
+
class: "cl-mt-auto cl-text-white cl-w-full hover:cl-text-secondary-default"
|
|
6575
6587
|
}, xi = {
|
|
6576
6588
|
key: 0,
|
|
6577
6589
|
class: "cl-flex cl-flex-shrink-0 cl-w-16"
|
|
6578
6590
|
}, Xi = /* @__PURE__ */ P({
|
|
6591
|
+
inheritAttrs: !1,
|
|
6579
6592
|
__name: "cl-ui-menu",
|
|
6580
6593
|
props: {
|
|
6581
6594
|
open: { type: Boolean, required: !0 },
|
|
@@ -6603,14 +6616,15 @@ const Mi = /* @__PURE__ */ ye(Ei, [["render", Vi]]), Ii = /* @__PURE__ */ P({
|
|
|
6603
6616
|
return Qe(u, () => {
|
|
6604
6617
|
t.value === !0 && d.value === !1 && (t.value = !1);
|
|
6605
6618
|
}), (c, i) => (p(), v(Y, null, [
|
|
6606
|
-
m("div", {
|
|
6619
|
+
m("div", J({
|
|
6607
6620
|
ref_key: "menuElement",
|
|
6608
|
-
ref: u
|
|
6609
|
-
|
|
6621
|
+
ref: u
|
|
6622
|
+
}, c.$attrs, {
|
|
6623
|
+
class: ["cl-bg-secondary-default cl-flex cl-flex-col cl-flex-shrink-0 cl-items-start cl-justify-start cl-overflow-hidden cl-p-2", {
|
|
6610
6624
|
"cl-w-16": t.value === !1,
|
|
6611
|
-
"cl-w-72 cl-absolute lg:cl-static lg:cl-h-full cl-h-[calc(100%_-_5rem)] cl-top-20 lg:cl-top-0 cl-left-0": t.value
|
|
6612
|
-
}]
|
|
6613
|
-
}, [
|
|
6625
|
+
"cl-w-72 cl-absolute lg:cl-static lg:cl-h-full cl-h-[calc(100%_-_5rem)] cl-top-20 lg:cl-top-0 cl-left-0 lg:cl-z-50": t.value
|
|
6626
|
+
}]
|
|
6627
|
+
}), [
|
|
6614
6628
|
m("div", {
|
|
6615
6629
|
class: O(["cl-flex cl-items-center cl-rounded cl-w-full", {
|
|
6616
6630
|
"hover:cl-bg-primary-lighter cl-cursor-pointer": t.value === !1,
|
|
@@ -6625,9 +6639,10 @@ const Mi = /* @__PURE__ */ ye(Ei, [["render", Vi]]), Ii = /* @__PURE__ */ P({
|
|
|
6625
6639
|
])) : L("", !0),
|
|
6626
6640
|
C(g(nl), {
|
|
6627
6641
|
"icon-value": t.value ? "ph:caret-circle-left" : "ph:list",
|
|
6628
|
-
class: O({
|
|
6629
|
-
"!cl-justify-end cl-opacity-
|
|
6630
|
-
|
|
6642
|
+
class: O(["cl-text-white", {
|
|
6643
|
+
"!cl-justify-end cl-opacity-50 hover:cl-opacity-100 cl-cursor-pointer hover:cl-transition-opacity": t.value,
|
|
6644
|
+
"hover:cl-text-secondary-default": t.value === !1
|
|
6645
|
+
}]),
|
|
6631
6646
|
onClick: i[0] || (i[0] = ae(() => n(), ["stop"]))
|
|
6632
6647
|
}, null, 8, ["icon-value", "class"])
|
|
6633
6648
|
], 2),
|
|
@@ -6642,7 +6657,8 @@ const Mi = /* @__PURE__ */ ye(Ei, [["render", Vi]]), Ii = /* @__PURE__ */ P({
|
|
|
6642
6657
|
}, [
|
|
6643
6658
|
t.value === !1 ? (p(), G(g(nl), {
|
|
6644
6659
|
key: 0,
|
|
6645
|
-
"icon-value": "ph:magnifying-glass"
|
|
6660
|
+
"icon-value": "ph:magnifying-glass",
|
|
6661
|
+
class: "cl-text-white hover:cl-text-secondary-default"
|
|
6646
6662
|
})) : (p(), v("div", Yi, [
|
|
6647
6663
|
M(c.$slots, "searchInput")
|
|
6648
6664
|
]))
|
|
@@ -6653,11 +6669,11 @@ const Mi = /* @__PURE__ */ ye(Ei, [["render", Vi]]), Ii = /* @__PURE__ */ P({
|
|
|
6653
6669
|
c.$slots.footer ? (p(), v("div", Ji, [
|
|
6654
6670
|
M(c.$slots, "footer", ce(pe({ toggleOpen: s, groupIsOpen: e })))
|
|
6655
6671
|
])) : L("", !0)
|
|
6656
|
-
],
|
|
6672
|
+
], 16),
|
|
6657
6673
|
g(d) === !1 && t.value ? (p(), v("div", xi)) : L("", !0)
|
|
6658
6674
|
], 64));
|
|
6659
6675
|
}
|
|
6660
|
-
}), ec = { class: "cl-overflow-hidden cl-w-full" }, lc = { class: "cl-flex cl-flex-1 cl-items-center cl-justify-between" }, tc = { class: "cl-font-
|
|
6676
|
+
}), ec = { class: "cl-overflow-hidden cl-w-full" }, lc = { class: "cl-flex cl-flex-1 cl-items-center cl-justify-between" }, tc = { class: "cl-font-semibold" }, oc = { class: "cl-overflow-hidden" }, ac = {
|
|
6661
6677
|
key: 0,
|
|
6662
6678
|
class: "cl-mt-1"
|
|
6663
6679
|
}, nc = /* @__PURE__ */ P({
|
|
@@ -6674,12 +6690,12 @@ const Mi = /* @__PURE__ */ ye(Ei, [["render", Vi]]), Ii = /* @__PURE__ */ P({
|
|
|
6674
6690
|
const e = Se("icon");
|
|
6675
6691
|
return p(), v("div", ec, [
|
|
6676
6692
|
m("div", {
|
|
6677
|
-
class: "cl-cursor-pointer cl-flex cl-items-center cl-rounded hover:cl-bg-primary-lighter",
|
|
6693
|
+
class: "cl-cursor-pointer cl-flex cl-items-center cl-rounded cl-text-white hover:cl-bg-primary-lighter hover:cl-text-secondary-default",
|
|
6678
6694
|
onClick: l[0] || (l[0] = (s) => t.$emit("toggle-open"))
|
|
6679
6695
|
}, [
|
|
6680
6696
|
C(g(nl), { "icon-value": t.iconValue }, null, 8, ["icon-value"]),
|
|
6681
6697
|
le(m("div", lc, [
|
|
6682
|
-
m("span", tc,
|
|
6698
|
+
m("span", tc, A(t.title), 1),
|
|
6683
6699
|
t.$slots.default ? (p(), G(e, {
|
|
6684
6700
|
key: 0,
|
|
6685
6701
|
icon: t.open ? "ph:caret-up" : "ph:caret-down",
|
|
@@ -6692,7 +6708,7 @@ const Mi = /* @__PURE__ */ ye(Ei, [["render", Vi]]), Ii = /* @__PURE__ */ P({
|
|
|
6692
6708
|
m("div", oc, [
|
|
6693
6709
|
t.open && t.menuOpen === !0 ? (p(), v("div", ac, [
|
|
6694
6710
|
C(g(ht), null, {
|
|
6695
|
-
default:
|
|
6711
|
+
default: E(() => [
|
|
6696
6712
|
M(t.$slots, "default")
|
|
6697
6713
|
]),
|
|
6698
6714
|
_: 3
|
|
@@ -6719,9 +6735,9 @@ const Mi = /* @__PURE__ */ ye(Ei, [["render", Vi]]), Ii = /* @__PURE__ */ P({
|
|
|
6719
6735
|
]);
|
|
6720
6736
|
};
|
|
6721
6737
|
}
|
|
6722
|
-
}), rc = { class: "cl-flex cl-flex-row" }, ic = /* @__PURE__ */ m("div", { class: "cl-flex cl-justify-center cl-w-[47px]" }, [
|
|
6723
|
-
/* @__PURE__ */ m("div", { class: "cl-bg-
|
|
6724
|
-
], -1), cc = { class: "cl-flex cl-flex-
|
|
6738
|
+
}), rc = { class: "cl-flex cl-flex-row" }, ic = /* @__PURE__ */ m("div", { class: "cl-flex cl-flex-shrink-0 cl-justify-center cl-w-[47px]" }, [
|
|
6739
|
+
/* @__PURE__ */ m("div", { class: "cl-bg-secondary-light cl-w-[1px]" }, " ")
|
|
6740
|
+
], -1), cc = { class: "cl-flex cl-flex-1 cl-flex-col" }, ht = /* @__PURE__ */ P({
|
|
6725
6741
|
__name: "cl-ui-menu-section",
|
|
6726
6742
|
setup(o) {
|
|
6727
6743
|
return (t, l) => (p(), v("div", rc, [
|
|
@@ -6731,7 +6747,7 @@ const Mi = /* @__PURE__ */ ye(Ei, [["render", Vi]]), Ii = /* @__PURE__ */ P({
|
|
|
6731
6747
|
])
|
|
6732
6748
|
]));
|
|
6733
6749
|
}
|
|
6734
|
-
}), uc = { class: "cl-cursor-pointer cl-text-sm cl-transition-colors cl-w-full hover:cl-text-primary-
|
|
6750
|
+
}), uc = { class: "cl-cursor-pointer cl-py-1 cl-text-sm cl-text-white cl-transition-colors cl-w-full hover:cl-text-primary-default" }, dc = /* @__PURE__ */ P({
|
|
6735
6751
|
__name: "cl-ui-menu-item",
|
|
6736
6752
|
setup(o) {
|
|
6737
6753
|
return (t, l) => (p(), v("div", uc, [
|
|
@@ -6897,7 +6913,7 @@ export {
|
|
|
6897
6913
|
Dc as default,
|
|
6898
6914
|
da as doesNumberStringContainPart,
|
|
6899
6915
|
Rn as filterMethodTypes,
|
|
6900
|
-
|
|
6916
|
+
Ae as formatNumber,
|
|
6901
6917
|
ml as formatNumberAsDecimal,
|
|
6902
6918
|
we as formatNumberAsInteger,
|
|
6903
6919
|
ol as futureQuickDates,
|
|
@@ -6927,7 +6943,7 @@ export {
|
|
|
6927
6943
|
Sc as setLocaleDateTimeFormats,
|
|
6928
6944
|
Cc as setLocaleMessages,
|
|
6929
6945
|
Tc as setLocaleNumberFormats,
|
|
6930
|
-
|
|
6946
|
+
El as showNotification,
|
|
6931
6947
|
Nn as stringFormats,
|
|
6932
6948
|
Bi as tabColours,
|
|
6933
6949
|
ji as tabLayout,
|