@citruslime/ui 3.0.2-beta.2 → 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.
- package/dist/citrus-lime-ui.es.js +236 -232
- package/dist/citrus-lime-ui.umd.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -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) ?? ""
|
|
@@ -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,13 @@ 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
1767
|
locale: i,
|
|
1768
1768
|
additionalOptions: {
|
|
1769
1769
|
maximumFractionDigits: t.column.precision ?? 2,
|
|
@@ -1780,13 +1780,13 @@ const wa = {
|
|
|
1780
1780
|
disabled: !0
|
|
1781
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 }, [
|
|
1782
1782
|
c.column.format !== void 0 ? (p(), v(Y, { key: 0 }, [
|
|
1783
|
-
ie(
|
|
1783
|
+
ie(A(n(c.data[c.column.field], c.column.format)), 1)
|
|
1784
1784
|
], 64)) : c.column.type === "date" || c.column.type === "dateRange" ? (p(), v(Y, { key: 1 }, [
|
|
1785
|
-
ie(
|
|
1785
|
+
ie(A(n(c.data[c.column.field], g(se).DATE)), 1)
|
|
1786
1786
|
], 64)) : (p(), v(Y, { key: 2 }, [
|
|
1787
|
-
ie(
|
|
1787
|
+
ie(A(n(c.data[c.column.field], g(se).DATETIME)), 1)
|
|
1788
1788
|
], 64))
|
|
1789
|
-
], 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, [
|
|
1790
1790
|
m("span", {
|
|
1791
1791
|
innerHTML: d()
|
|
1792
1792
|
}, null, 8, Ca)
|
|
@@ -1829,7 +1829,7 @@ const wa = {
|
|
|
1829
1829
|
class: O(["cl-font-semibold lg:cl-hidden", {
|
|
1830
1830
|
"cl-hidden": c.options.hideGridMobileView
|
|
1831
1831
|
}])
|
|
1832
|
-
},
|
|
1832
|
+
}, A(c.column.caption), 3),
|
|
1833
1833
|
c.editMode && c.column.editable === !0 ? M(c.$slots, `${c.column.name}Edit`, ce(J({ key: 0 }, {
|
|
1834
1834
|
cellFocused: () => e("focus"),
|
|
1835
1835
|
column: c.column,
|
|
@@ -1844,7 +1844,7 @@ const wa = {
|
|
|
1844
1844
|
"time-zone": c.timeZone,
|
|
1845
1845
|
"search-value": c.searchValue
|
|
1846
1846
|
}, {
|
|
1847
|
-
[c.column.name]:
|
|
1847
|
+
[c.column.name]: E(() => [
|
|
1848
1848
|
M(c.$slots, c.column.name, ce(pe({
|
|
1849
1849
|
column: c.column,
|
|
1850
1850
|
record: c.data,
|
|
@@ -1860,7 +1860,7 @@ const wa = {
|
|
|
1860
1860
|
"time-zone": c.timeZone,
|
|
1861
1861
|
"search-value": c.searchValue
|
|
1862
1862
|
}, {
|
|
1863
|
-
[c.column.name]:
|
|
1863
|
+
[c.column.name]: E(() => [
|
|
1864
1864
|
M(c.$slots, c.column.name, ce(pe({ column: c.column, record: c.data, searchValue: c.searchValue })))
|
|
1865
1865
|
]),
|
|
1866
1866
|
_: 2
|
|
@@ -1894,14 +1894,14 @@ const wa = {
|
|
|
1894
1894
|
}, Te({ _: 2 }, [
|
|
1895
1895
|
ne(t.$slots, (n, d) => ({
|
|
1896
1896
|
name: d,
|
|
1897
|
-
fn:
|
|
1897
|
+
fn: E((u) => [
|
|
1898
1898
|
M(t.$slots, d, ce(pe(u)))
|
|
1899
1899
|
])
|
|
1900
1900
|
}))
|
|
1901
1901
|
]), 1032, ["data", "column", "options", "time-zone", "search-value", "edit-mode", "onEdit", "onUndo"]))), 128))
|
|
1902
1902
|
]));
|
|
1903
1903
|
}
|
|
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" },
|
|
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 = {
|
|
1905
1905
|
key: 1,
|
|
1906
1906
|
class: "cl-mt-6 cl-w-full"
|
|
1907
1907
|
}, Va = {
|
|
@@ -2006,7 +2006,7 @@ const wa = {
|
|
|
2006
2006
|
}, Te({ _: 2 }, [
|
|
2007
2007
|
ne(b.$slots, (z, ee) => ({
|
|
2008
2008
|
name: ee,
|
|
2009
|
-
fn:
|
|
2009
|
+
fn: E((I) => [
|
|
2010
2010
|
M(b.$slots, ee, J(I, { disabled: b.loading }))
|
|
2011
2011
|
])
|
|
2012
2012
|
}))
|
|
@@ -2015,18 +2015,18 @@ const wa = {
|
|
|
2015
2015
|
colspan: b.columns.length
|
|
2016
2016
|
}, [
|
|
2017
2017
|
m("div", Da, [
|
|
2018
|
-
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, [
|
|
2019
2019
|
M(b.$slots, "noData")
|
|
2020
|
-
])) : (p(), v("strong",
|
|
2020
|
+
])) : (p(), v("strong", Ea, A(g(s)("grid.noData")), 1)),
|
|
2021
2021
|
b.request.filters.some((B) => B.filterValue !== "") ? (p(), v("div", Va, [
|
|
2022
|
-
m("div", Ma,
|
|
2022
|
+
m("div", Ma, A(g(s)("grid.noDataFiltersPresent")), 1),
|
|
2023
2023
|
C(ke, {
|
|
2024
2024
|
size: "small",
|
|
2025
2025
|
colour: "danger",
|
|
2026
2026
|
onClick: T[0] || (T[0] = ae((B) => b.$emit("clear-filters"), ["prevent"]))
|
|
2027
2027
|
}, {
|
|
2028
|
-
default:
|
|
2029
|
-
ie(
|
|
2028
|
+
default: E(() => [
|
|
2029
|
+
ie(A(g(s)("grid.clearFilters")), 1)
|
|
2030
2030
|
]),
|
|
2031
2031
|
_: 1
|
|
2032
2032
|
})
|
|
@@ -2097,7 +2097,7 @@ const wa = {
|
|
|
2097
2097
|
}
|
|
2098
2098
|
}
|
|
2099
2099
|
function R(j) {
|
|
2100
|
-
return j === null ? "" : e.format ?
|
|
2100
|
+
return j === null ? "" : e.format ? Ae(j, e.format, {
|
|
2101
2101
|
locale: e.locale,
|
|
2102
2102
|
additionalOptions: f.value
|
|
2103
2103
|
}) : j.toString();
|
|
@@ -2127,7 +2127,7 @@ const wa = {
|
|
|
2127
2127
|
"show-required-asterisk": j.required,
|
|
2128
2128
|
errors: j.errors
|
|
2129
2129
|
}, Te({
|
|
2130
|
-
default:
|
|
2130
|
+
default: E(() => [
|
|
2131
2131
|
m("div", {
|
|
2132
2132
|
ref_key: "focusWithinRef",
|
|
2133
2133
|
ref: u,
|
|
@@ -2184,7 +2184,7 @@ const wa = {
|
|
|
2184
2184
|
}, [
|
|
2185
2185
|
j.$slots.default ? {
|
|
2186
2186
|
name: "label",
|
|
2187
|
-
fn:
|
|
2187
|
+
fn: E(() => [
|
|
2188
2188
|
M(j.$slots, "default")
|
|
2189
2189
|
]),
|
|
2190
2190
|
key: "0"
|
|
@@ -2243,15 +2243,15 @@ const wa = {
|
|
|
2243
2243
|
m("div", Ba, [
|
|
2244
2244
|
m("div", Fa, [
|
|
2245
2245
|
m("div", ja, [
|
|
2246
|
-
m("span", Pa,
|
|
2247
|
-
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)
|
|
2248
2248
|
]),
|
|
2249
2249
|
m("div", Ga, [
|
|
2250
|
-
m("span", Ha,
|
|
2251
|
-
m("span", null,
|
|
2250
|
+
m("span", Ha, A(g(s)("grid.totalRecords")), 1),
|
|
2251
|
+
m("span", null, A(g(we)(a.data.totalRecords)), 1)
|
|
2252
2252
|
]),
|
|
2253
2253
|
m("div", Za, [
|
|
2254
|
-
m("span", Wa,
|
|
2254
|
+
m("span", Wa, A(g(s)("grid.pageSize")), 1),
|
|
2255
2255
|
m("ul", Ka, [
|
|
2256
2256
|
(p(), v(Y, null, ne(c, (k, b) => m("li", {
|
|
2257
2257
|
key: b,
|
|
@@ -2260,7 +2260,7 @@ const wa = {
|
|
|
2260
2260
|
"cl-cursor-pointer": a.request.pageSize !== k
|
|
2261
2261
|
}]),
|
|
2262
2262
|
onClick: (T) => i(k)
|
|
2263
|
-
},
|
|
2263
|
+
}, A(g(we)(k)), 11, Qa)), 64))
|
|
2264
2264
|
])
|
|
2265
2265
|
]),
|
|
2266
2266
|
m("div", null, [
|
|
@@ -2296,7 +2296,7 @@ const wa = {
|
|
|
2296
2296
|
"cl-cursor-pointer ": a.request.pageNumber !== k
|
|
2297
2297
|
}]),
|
|
2298
2298
|
onClick: (T) => u(k)
|
|
2299
|
-
},
|
|
2299
|
+
}, A(g(we)(k)), 11, _a))), 128)),
|
|
2300
2300
|
m("li", {
|
|
2301
2301
|
class: O({
|
|
2302
2302
|
"cl-text-grey-2 cl-pointer-events-none": a.request.pageNumber >= n.value,
|
|
@@ -2327,7 +2327,7 @@ const wa = {
|
|
|
2327
2327
|
]),
|
|
2328
2328
|
m("div", Ja, [
|
|
2329
2329
|
m("div", xa, [
|
|
2330
|
-
m("span", Xa,
|
|
2330
|
+
m("span", Xa, A(g(s)("grid.jumpToPage")), 1),
|
|
2331
2331
|
C(_e, {
|
|
2332
2332
|
"model-value": a.request.pageNumber,
|
|
2333
2333
|
min: 1,
|
|
@@ -2337,7 +2337,7 @@ const wa = {
|
|
|
2337
2337
|
autocomplete: "off",
|
|
2338
2338
|
"onUpdate:modelValue": u
|
|
2339
2339
|
}, {
|
|
2340
|
-
default:
|
|
2340
|
+
default: E(() => [
|
|
2341
2341
|
en
|
|
2342
2342
|
]),
|
|
2343
2343
|
_: 1
|
|
@@ -2476,7 +2476,7 @@ const on = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, an = ["onClick"], nn =
|
|
|
2476
2476
|
}]),
|
|
2477
2477
|
onClick: (a) => l("quick-date-selected", d)
|
|
2478
2478
|
}, [
|
|
2479
|
-
m("span", null,
|
|
2479
|
+
m("span", null, A(g(e)(d.translationKey)), 1)
|
|
2480
2480
|
], 10, an);
|
|
2481
2481
|
}), 128))
|
|
2482
2482
|
]));
|
|
@@ -2609,7 +2609,7 @@ const on = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, an = ["onClick"], nn =
|
|
|
2609
2609
|
return d;
|
|
2610
2610
|
});
|
|
2611
2611
|
return (d, u) => (p(), v("div", rn, [
|
|
2612
|
-
m("div", null,
|
|
2612
|
+
m("div", null, A(g(s)("quickDates.quickDatesHeader")), 1),
|
|
2613
2613
|
(p(!0), v(Y, null, ne(n.value, (c, i) => (p(), v("div", {
|
|
2614
2614
|
key: i,
|
|
2615
2615
|
class: "cl-pt-2"
|
|
@@ -2655,7 +2655,7 @@ const on = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, an = ["onClick"], nn =
|
|
|
2655
2655
|
disabled: e.disabled,
|
|
2656
2656
|
onClick: s[0] || (s[0] = (d) => e.$emit("togglePopover"))
|
|
2657
2657
|
}), {
|
|
2658
|
-
default:
|
|
2658
|
+
default: E(() => [
|
|
2659
2659
|
C(n, {
|
|
2660
2660
|
icon: "bi:calendar3",
|
|
2661
2661
|
class: "cl-text-xl icon"
|
|
@@ -2675,7 +2675,7 @@ const on = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, an = ["onClick"], nn =
|
|
|
2675
2675
|
disabled: e.disabled,
|
|
2676
2676
|
onClick: s[1] || (s[1] = (d) => e.$emit("clear"))
|
|
2677
2677
|
}, {
|
|
2678
|
-
default:
|
|
2678
|
+
default: E(() => [
|
|
2679
2679
|
C(n, {
|
|
2680
2680
|
icon: "ph:x",
|
|
2681
2681
|
class: "cl-text-sm clear-icon"
|
|
@@ -2734,10 +2734,10 @@ const on = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, an = ["onClick"], nn =
|
|
|
2734
2734
|
}
|
|
2735
2735
|
const y = Kl("(min-width: 768px)"), k = $(() => y.value ? 2 : 1);
|
|
2736
2736
|
return (b, T) => (p(), G(Ie, { "show-required-asterisk": b.required }, {
|
|
2737
|
-
label:
|
|
2737
|
+
label: E(() => [
|
|
2738
2738
|
M(b.$slots, "default")
|
|
2739
2739
|
]),
|
|
2740
|
-
default:
|
|
2740
|
+
default: E(() => [
|
|
2741
2741
|
C(g(Le), {
|
|
2742
2742
|
ref_key: "calendar",
|
|
2743
2743
|
ref: r,
|
|
@@ -2756,7 +2756,7 @@ const on = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, an = ["onClick"], nn =
|
|
|
2756
2756
|
"initial-page": c.value,
|
|
2757
2757
|
onDayclick: T[2] || (T[2] = (S) => a.value = null)
|
|
2758
2758
|
}, {
|
|
2759
|
-
default:
|
|
2759
|
+
default: E(({ togglePopover: S }) => [
|
|
2760
2760
|
C(Dl, J(b.$attrs, {
|
|
2761
2761
|
required: b.required,
|
|
2762
2762
|
disabled: b.disabled,
|
|
@@ -2768,7 +2768,7 @@ const on = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, an = ["onClick"], nn =
|
|
|
2768
2768
|
})
|
|
2769
2769
|
}), null, 16, ["required", "disabled", "date-range-selected", "title", "onTogglePopover"])
|
|
2770
2770
|
]),
|
|
2771
|
-
footer:
|
|
2771
|
+
footer: E(() => [
|
|
2772
2772
|
b.quickDateScope !== "none" ? (p(), G(nt, {
|
|
2773
2773
|
key: 0,
|
|
2774
2774
|
scope: b.quickDateScope,
|
|
@@ -2840,7 +2840,7 @@ const on = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, an = ["onClick"], nn =
|
|
|
2840
2840
|
errors: u.errors,
|
|
2841
2841
|
"show-required-asterisk": u.required
|
|
2842
2842
|
}, Te({
|
|
2843
|
-
default:
|
|
2843
|
+
default: E(() => [
|
|
2844
2844
|
le(m("textarea", J({
|
|
2845
2845
|
ref_key: "inputRef",
|
|
2846
2846
|
ref: n
|
|
@@ -2862,7 +2862,7 @@ const on = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, an = ["onClick"], nn =
|
|
|
2862
2862
|
}, [
|
|
2863
2863
|
u.$slots.default ? {
|
|
2864
2864
|
name: "label",
|
|
2865
|
-
fn:
|
|
2865
|
+
fn: E(() => [
|
|
2866
2866
|
M(u.$slots, "default")
|
|
2867
2867
|
]),
|
|
2868
2868
|
key: "0"
|
|
@@ -2889,7 +2889,7 @@ const on = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, an = ["onClick"], nn =
|
|
|
2889
2889
|
Gl((r) => ({
|
|
2890
2890
|
"5aa4acec": u.value
|
|
2891
2891
|
}));
|
|
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 =
|
|
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);
|
|
2893
2893
|
function a(r) {
|
|
2894
2894
|
var f;
|
|
2895
2895
|
e.value = r, (f = n.value) == null || f.focus();
|
|
@@ -2909,13 +2909,13 @@ const on = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, an = ["onClick"], nn =
|
|
|
2909
2909
|
errors: r.errors,
|
|
2910
2910
|
"show-required-asterisk": r.required
|
|
2911
2911
|
}, Te({
|
|
2912
|
-
default:
|
|
2912
|
+
default: E(() => [
|
|
2913
2913
|
m("div", pn, [
|
|
2914
2914
|
m("button", {
|
|
2915
2915
|
disabled: r.disabled,
|
|
2916
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",
|
|
2917
2917
|
onClick: f[0] || (f[0] = (k) => a(r.min))
|
|
2918
|
-
},
|
|
2918
|
+
}, A(g(ml)(r.min, r.precision)), 9, fn),
|
|
2919
2919
|
m("div", mn, [
|
|
2920
2920
|
le(m("div", gn, [
|
|
2921
2921
|
le(m("input", J({
|
|
@@ -2938,7 +2938,7 @@ const on = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, an = ["onClick"], nn =
|
|
|
2938
2938
|
{ number: !0 }
|
|
2939
2939
|
]
|
|
2940
2940
|
]),
|
|
2941
|
-
m("div", bn,
|
|
2941
|
+
m("div", bn, A(g(ml)(g(i), r.precision)), 1)
|
|
2942
2942
|
], 512), [
|
|
2943
2943
|
[ue, c.value === !1]
|
|
2944
2944
|
]),
|
|
@@ -2962,7 +2962,7 @@ const on = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, an = ["onClick"], nn =
|
|
|
2962
2962
|
disabled: r.disabled,
|
|
2963
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",
|
|
2964
2964
|
onClick: f[3] || (f[3] = (k) => a(r.max))
|
|
2965
|
-
},
|
|
2965
|
+
}, A(g(ml)(r.max, r.precision)), 9, hn),
|
|
2966
2966
|
m("button", {
|
|
2967
2967
|
disabled: r.disabled,
|
|
2968
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",
|
|
@@ -2977,7 +2977,7 @@ const on = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, an = ["onClick"], nn =
|
|
|
2977
2977
|
}, [
|
|
2978
2978
|
r.$slots.default ? {
|
|
2979
2979
|
name: "label",
|
|
2980
|
-
fn:
|
|
2980
|
+
fn: E(() => [
|
|
2981
2981
|
M(r.$slots, "default", {}, void 0, !0)
|
|
2982
2982
|
]),
|
|
2983
2983
|
key: "0"
|
|
@@ -3123,10 +3123,10 @@ const on = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, an = ["onClick"], nn =
|
|
|
3123
3123
|
(b = y.value) == null || b.focus(), n("focus");
|
|
3124
3124
|
}
|
|
3125
3125
|
}), (b, T) => (p(), G(Ie, { "show-required-asterisk": b.required }, {
|
|
3126
|
-
label:
|
|
3126
|
+
label: E(() => [
|
|
3127
3127
|
M(b.$slots, "default")
|
|
3128
3128
|
]),
|
|
3129
|
-
default:
|
|
3129
|
+
default: E(() => [
|
|
3130
3130
|
b.type === "time" ? (p(), G(g(Le), {
|
|
3131
3131
|
key: 0,
|
|
3132
3132
|
modelValue: u.value,
|
|
@@ -3143,7 +3143,7 @@ const on = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, an = ["onClick"], nn =
|
|
|
3143
3143
|
"hide-time-header": "",
|
|
3144
3144
|
popover: r.value
|
|
3145
3145
|
}, {
|
|
3146
|
-
default:
|
|
3146
|
+
default: E(({ inputValue: S, inputEvents: B }) => [
|
|
3147
3147
|
C(Ze, J(b.$attrs, {
|
|
3148
3148
|
ref_key: "input",
|
|
3149
3149
|
ref: y,
|
|
@@ -3176,7 +3176,7 @@ const on = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, an = ["onClick"], nn =
|
|
|
3176
3176
|
"hide-time-header": "",
|
|
3177
3177
|
popover: r.value
|
|
3178
3178
|
}, {
|
|
3179
|
-
default:
|
|
3179
|
+
default: E(({ inputValue: S, inputEvents: B }) => [
|
|
3180
3180
|
C(Ze, J(b.$attrs, {
|
|
3181
3181
|
ref_key: "input",
|
|
3182
3182
|
ref: y,
|
|
@@ -3209,7 +3209,7 @@ const on = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, an = ["onClick"], nn =
|
|
|
3209
3209
|
M(s.$slots, "default", ce(pe({ toggleModalInput: e })))
|
|
3210
3210
|
], 16));
|
|
3211
3211
|
}
|
|
3212
|
-
}), 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({
|
|
3213
3213
|
inheritAttrs: !1,
|
|
3214
3214
|
__name: "cl-ui-select",
|
|
3215
3215
|
props: /* @__PURE__ */ fe({
|
|
@@ -3258,10 +3258,10 @@ const on = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, an = ["onClick"], nn =
|
|
|
3258
3258
|
"show-required-asterisk": a.required,
|
|
3259
3259
|
errors: a.errors
|
|
3260
3260
|
}, {
|
|
3261
|
-
label:
|
|
3261
|
+
label: E(() => [
|
|
3262
3262
|
M(a.$slots, "label")
|
|
3263
3263
|
]),
|
|
3264
|
-
default:
|
|
3264
|
+
default: E(() => [
|
|
3265
3265
|
m("div", On, [
|
|
3266
3266
|
M(a.$slots, "input", ce(pe({ selectModalVisible: s.value, toggleSelectModalState: d })), () => [
|
|
3267
3267
|
n.value === !1 ? (p(), G(al, {
|
|
@@ -3269,7 +3269,7 @@ const on = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, an = ["onClick"], nn =
|
|
|
3269
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"]),
|
|
3270
3270
|
onToggleModal: d
|
|
3271
3271
|
}, {
|
|
3272
|
-
default:
|
|
3272
|
+
default: E(() => [
|
|
3273
3273
|
l.value === null || l.value === void 0 ? (p(), v("input", J({ key: 0 }, a.$attrs, {
|
|
3274
3274
|
readonly: "",
|
|
3275
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"],
|
|
@@ -3281,13 +3281,13 @@ const on = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, an = ["onClick"], nn =
|
|
|
3281
3281
|
value: l.value.name,
|
|
3282
3282
|
disabled: a.disabled,
|
|
3283
3283
|
onClick: r[1] || (r[1] = (y) => d())
|
|
3284
|
-
}), null, 16,
|
|
3284
|
+
}), null, 16, An)) : (p(), v("input", J({ key: 2 }, a.$attrs, {
|
|
3285
3285
|
readonly: "",
|
|
3286
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"],
|
|
3287
3287
|
value: l.value,
|
|
3288
3288
|
disabled: a.disabled,
|
|
3289
3289
|
onClick: r[2] || (r[2] = (y) => d())
|
|
3290
|
-
}), null, 16,
|
|
3290
|
+
}), null, 16, En)),
|
|
3291
3291
|
m("div", {
|
|
3292
3292
|
class: "cl-flex cl-items-center cl-px-2 cl-py-1 cl-relative cl-text-grey-3 cl-z-10",
|
|
3293
3293
|
disabled: a.disabled,
|
|
@@ -3564,7 +3564,7 @@ const Fn = {
|
|
|
3564
3564
|
return;
|
|
3565
3565
|
e("selection-changed"), e("update:filter", f);
|
|
3566
3566
|
}
|
|
3567
|
-
const c = V(), { left: i } =
|
|
3567
|
+
const c = V(), { left: i } = Et(c), a = $(() => i.value / 2 < 208);
|
|
3568
3568
|
return (r, f) => (p(), v("div", {
|
|
3569
3569
|
ref_key: "gridMethodSelectElement",
|
|
3570
3570
|
ref: c,
|
|
@@ -3587,7 +3587,7 @@ const Fn = {
|
|
|
3587
3587
|
"cl-left-0": a.value
|
|
3588
3588
|
}])
|
|
3589
3589
|
}, [
|
|
3590
|
-
m("strong", Hn,
|
|
3590
|
+
m("strong", Hn, A(g(s)("grid.availableMethods")), 1),
|
|
3591
3591
|
(p(!0), v(Y, null, ne(n.value, (y, k) => {
|
|
3592
3592
|
var b;
|
|
3593
3593
|
return p(), v("span", {
|
|
@@ -3597,7 +3597,7 @@ const Fn = {
|
|
|
3597
3597
|
}]),
|
|
3598
3598
|
onClick: ae((T) => u(y.method), ["prevent"])
|
|
3599
3599
|
}, [
|
|
3600
|
-
ie(
|
|
3600
|
+
ie(A(y.description) + " ", 1),
|
|
3601
3601
|
C(g(_), {
|
|
3602
3602
|
icon: y.icon,
|
|
3603
3603
|
class: "cl-float-right cl-text-grey-4 cl-text-sm"
|
|
@@ -3646,8 +3646,8 @@ const Fn = {
|
|
|
3646
3646
|
if (D) {
|
|
3647
3647
|
if (c.value) {
|
|
3648
3648
|
if ((((w = l.filter) == null ? void 0 : w.length) ?? 0) > 1) {
|
|
3649
|
-
const re = (N = u.value) == null ? void 0 : N.find((qe) => qe.filterOperation === oe.EQUAL_OR_GREATER_THAN),
|
|
3650
|
-
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 = {
|
|
3651
3651
|
filterOnColumn: l.column.field,
|
|
3652
3652
|
filterOperation: oe.EQUAL,
|
|
3653
3653
|
filterMethod: "equal",
|
|
@@ -3665,14 +3665,14 @@ const Fn = {
|
|
|
3665
3665
|
};
|
|
3666
3666
|
}
|
|
3667
3667
|
} else if (i.value && (((h = l.filter) == null ? void 0 : h.length) ?? 0) > 1) {
|
|
3668
|
-
const re = (U = u.value) == null ? void 0 : U.find((qe) => qe.filterOperation === oe.EQUAL_OR_GREATER_THAN),
|
|
3669
|
-
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 = {
|
|
3670
3670
|
filterOnColumn: l.column.field,
|
|
3671
3671
|
filterOperation: oe.EQUAL,
|
|
3672
3672
|
filterMethod: "equal",
|
|
3673
3673
|
filterValue: {
|
|
3674
3674
|
start: re.filterValue,
|
|
3675
|
-
end:
|
|
3675
|
+
end: Ee.filterValue
|
|
3676
3676
|
}
|
|
3677
3677
|
});
|
|
3678
3678
|
}
|
|
@@ -3776,11 +3776,11 @@ const Fn = {
|
|
|
3776
3776
|
if (T.value)
|
|
3777
3777
|
w = me(B.value), w.filterValue = N;
|
|
3778
3778
|
else if (h && typeof l.column.field < "u") {
|
|
3779
|
-
const
|
|
3779
|
+
const Ee = d();
|
|
3780
3780
|
w = {
|
|
3781
3781
|
filterOnColumn: l.column.field,
|
|
3782
|
-
filterMethod: oe[
|
|
3783
|
-
filterOperation:
|
|
3782
|
+
filterMethod: oe[Ee].replace("_", "").toLowerCase(),
|
|
3783
|
+
filterOperation: Ee,
|
|
3784
3784
|
filterValue: N
|
|
3785
3785
|
};
|
|
3786
3786
|
} else
|
|
@@ -3850,14 +3850,14 @@ const Fn = {
|
|
|
3850
3850
|
"model-value": z.value,
|
|
3851
3851
|
"onUpdate:modelValue": Z[0] || (Z[0] = (N) => H(null, N))
|
|
3852
3852
|
}, {
|
|
3853
|
-
input:
|
|
3853
|
+
input: E(({ selectModalVisible: N, toggleSelectModalState: Q }) => [
|
|
3854
3854
|
C(al, { onToggleModal: Q }, {
|
|
3855
|
-
default:
|
|
3855
|
+
default: E(({ toggleModalInput: h }) => [
|
|
3856
3856
|
m("div", {
|
|
3857
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",
|
|
3858
3858
|
onClick: h
|
|
3859
3859
|
}, [
|
|
3860
|
-
m("span", Qn,
|
|
3860
|
+
m("span", Qn, A(z.value === "" ? "" : z.value === "true" ? g(s)("grid.true") : g(s)("grid.false")), 1),
|
|
3861
3861
|
m("div", {
|
|
3862
3862
|
class: "cl-absolute cl-flex cl-items-center cl-right-1 cl-text-grey-3 cl-z-10",
|
|
3863
3863
|
disabled: D.loading
|
|
@@ -3871,12 +3871,12 @@ const Fn = {
|
|
|
3871
3871
|
_: 2
|
|
3872
3872
|
}, 1032, ["onToggleModal"])
|
|
3873
3873
|
]),
|
|
3874
|
-
default:
|
|
3874
|
+
default: E(({ select: N }) => [
|
|
3875
3875
|
C(ze, {
|
|
3876
3876
|
class: "!cl-py-0 cl-text-xs",
|
|
3877
3877
|
onSelect: (Q) => N("")
|
|
3878
3878
|
}, {
|
|
3879
|
-
default:
|
|
3879
|
+
default: E(() => [
|
|
3880
3880
|
ie(" ")
|
|
3881
3881
|
]),
|
|
3882
3882
|
_: 2
|
|
@@ -3886,8 +3886,8 @@ const Fn = {
|
|
|
3886
3886
|
class: "!cl-py-0 cl-text-xs",
|
|
3887
3887
|
onSelect: (Q) => N("true")
|
|
3888
3888
|
}, {
|
|
3889
|
-
default:
|
|
3890
|
-
ie(
|
|
3889
|
+
default: E(() => [
|
|
3890
|
+
ie(A(g(s)("grid.true")), 1)
|
|
3891
3891
|
]),
|
|
3892
3892
|
_: 2
|
|
3893
3893
|
}, 1032, ["is-selected", "onSelect"]),
|
|
@@ -3896,8 +3896,8 @@ const Fn = {
|
|
|
3896
3896
|
class: "!cl-py-0 cl-text-xs",
|
|
3897
3897
|
onSelect: (Q) => N("false")
|
|
3898
3898
|
}, {
|
|
3899
|
-
default:
|
|
3900
|
-
ie(
|
|
3899
|
+
default: E(() => [
|
|
3900
|
+
ie(A(g(s)("grid.false")), 1)
|
|
3901
3901
|
]),
|
|
3902
3902
|
_: 2
|
|
3903
3903
|
}, 1032, ["is-selected", "onSelect"])
|
|
@@ -3937,7 +3937,7 @@ const Fn = {
|
|
|
3937
3937
|
"allow-empty": !0,
|
|
3938
3938
|
"onUpdate:modelValue": Z[3] || (Z[3] = (N) => N !== null ? F(null, N) : H(null, ""))
|
|
3939
3939
|
}, {
|
|
3940
|
-
default:
|
|
3940
|
+
default: E(() => [
|
|
3941
3941
|
Xn
|
|
3942
3942
|
]),
|
|
3943
3943
|
_: 1
|
|
@@ -3954,7 +3954,7 @@ const Fn = {
|
|
|
3954
3954
|
readonly: D.loading,
|
|
3955
3955
|
onKeySinglePress: he
|
|
3956
3956
|
}, {
|
|
3957
|
-
default:
|
|
3957
|
+
default: E(() => [
|
|
3958
3958
|
ls
|
|
3959
3959
|
]),
|
|
3960
3960
|
_: 1
|
|
@@ -3967,16 +3967,16 @@ const Fn = {
|
|
|
3967
3967
|
disabled: D.loading,
|
|
3968
3968
|
"onUpdate:modelValue": Z[6] || (Z[6] = (N) => r.value ? F(null, N) : H(null, N))
|
|
3969
3969
|
}, {
|
|
3970
|
-
input:
|
|
3970
|
+
input: E(({ selectModalVisible: N, toggleSelectModalState: Q }) => [
|
|
3971
3971
|
C(al, { onToggleModal: Q }, {
|
|
3972
|
-
default:
|
|
3972
|
+
default: E(({ toggleModalInput: h }) => {
|
|
3973
3973
|
var U, W;
|
|
3974
3974
|
return [
|
|
3975
3975
|
m("div", {
|
|
3976
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",
|
|
3977
3977
|
onClick: h
|
|
3978
3978
|
}, [
|
|
3979
|
-
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),
|
|
3980
3980
|
m("div", {
|
|
3981
3981
|
class: "cl-absolute cl-flex cl-items-center cl-right-1 cl-text-grey-3 cl-z-10",
|
|
3982
3982
|
disabled: D.loading
|
|
@@ -3991,12 +3991,12 @@ const Fn = {
|
|
|
3991
3991
|
_: 2
|
|
3992
3992
|
}, 1032, ["onToggleModal"])
|
|
3993
3993
|
]),
|
|
3994
|
-
default:
|
|
3994
|
+
default: E(({ select: N }) => [
|
|
3995
3995
|
C(ze, {
|
|
3996
3996
|
class: "!cl-py-0 cl-text-xs",
|
|
3997
3997
|
onSelect: (Q) => N("")
|
|
3998
3998
|
}, {
|
|
3999
|
-
default:
|
|
3999
|
+
default: E(() => [
|
|
4000
4000
|
ie(" ")
|
|
4001
4001
|
]),
|
|
4002
4002
|
_: 2
|
|
@@ -4007,8 +4007,8 @@ const Fn = {
|
|
|
4007
4007
|
class: "!cl-py-0 cl-text-xs",
|
|
4008
4008
|
onSelect: (h) => N(Q.value)
|
|
4009
4009
|
}, {
|
|
4010
|
-
default:
|
|
4011
|
-
ie(
|
|
4010
|
+
default: E(() => [
|
|
4011
|
+
ie(A(g(s)(Q.translationKey)), 1)
|
|
4012
4012
|
]),
|
|
4013
4013
|
_: 2
|
|
4014
4014
|
}, 1032, ["is-selected", "onSelect"]))), 128))
|
|
@@ -4084,7 +4084,7 @@ const Fn = {
|
|
|
4084
4084
|
onClick: (y) => g(Xe)(r) && i.loading === !1 ? u(r.field) : () => {
|
|
4085
4085
|
}
|
|
4086
4086
|
}, [
|
|
4087
|
-
ie(
|
|
4087
|
+
ie(A(r.caption) + " ", 1),
|
|
4088
4088
|
le(C(g(_), {
|
|
4089
4089
|
class: "cl-inline-block",
|
|
4090
4090
|
icon: "ph:caret-up"
|
|
@@ -4130,7 +4130,7 @@ const Fn = {
|
|
|
4130
4130
|
class: O(["cl-col-span-2 lg:cl-hidden", {
|
|
4131
4131
|
"cl-hidden": i.options.hideGridMobileView
|
|
4132
4132
|
}])
|
|
4133
|
-
},
|
|
4133
|
+
}, A(r.caption), 3),
|
|
4134
4134
|
g(Xe)(r) ? (p(), v("div", {
|
|
4135
4135
|
key: 0,
|
|
4136
4136
|
class: O(["cl-col-span-2 cl-gap-1 cl-span lg:cl-hidden", {
|
|
@@ -4138,7 +4138,7 @@ const Fn = {
|
|
|
4138
4138
|
}]),
|
|
4139
4139
|
onClick: (y) => i.loading === !1 ? u(r.field) : void 0
|
|
4140
4140
|
}, [
|
|
4141
|
-
m("span", cs,
|
|
4141
|
+
m("span", cs, A(g(s)("grid.sortBy")), 1),
|
|
4142
4142
|
d(r, !0) ? (p(), G(g(_), {
|
|
4143
4143
|
key: 0,
|
|
4144
4144
|
class: "cl-cursor-pointer cl-inline-block",
|
|
@@ -4217,7 +4217,7 @@ const Fn = {
|
|
|
4217
4217
|
placeholder: i.columns.length > 4 ? g(c)("grid.search") : g(c)("grid.searchSpecific", { columns: i.columns.map((f) => f.caption).join(", ") }),
|
|
4218
4218
|
onKeypress: a[1] || (a[1] = be((f) => d(e.value), ["enter"]))
|
|
4219
4219
|
}, {
|
|
4220
|
-
default:
|
|
4220
|
+
default: E(() => [
|
|
4221
4221
|
fs
|
|
4222
4222
|
]),
|
|
4223
4223
|
_: 1
|
|
@@ -4261,14 +4261,14 @@ const Fn = {
|
|
|
4261
4261
|
disabled: i.loading,
|
|
4262
4262
|
onClick: a[0] || (a[0] = ae((r) => n.value = !0, ["prevent"]))
|
|
4263
4263
|
}), {
|
|
4264
|
-
default:
|
|
4265
|
-
ie(
|
|
4264
|
+
default: E(() => [
|
|
4265
|
+
ie(A(g(s)("grid.manageView")), 1)
|
|
4266
4266
|
]),
|
|
4267
4267
|
_: 1
|
|
4268
4268
|
}, 16, ["disabled"]),
|
|
4269
4269
|
(p(), G(wl, { to: "body" }, [
|
|
4270
4270
|
C(Me, { name: "slide-left" }, {
|
|
4271
|
-
default:
|
|
4271
|
+
default: E(() => [
|
|
4272
4272
|
le(m("div", gs, [
|
|
4273
4273
|
m("div", vs, [
|
|
4274
4274
|
C(g(_), {
|
|
@@ -4277,18 +4277,18 @@ const Fn = {
|
|
|
4277
4277
|
size: 16,
|
|
4278
4278
|
onClick: a[1] || (a[1] = (r) => n.value = !1)
|
|
4279
4279
|
}),
|
|
4280
|
-
m("h3", bs,
|
|
4280
|
+
m("h3", bs, A(g(s)("grid.manageView")), 1),
|
|
4281
4281
|
m("ul", hs, [
|
|
4282
4282
|
m("li", ys, [
|
|
4283
|
-
m("strong", ws,
|
|
4284
|
-
m("strong", ks,
|
|
4285
|
-
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)
|
|
4286
4286
|
]),
|
|
4287
4287
|
(p(!0), v(Y, null, ne(i.columns, (r, f) => (p(), v("li", {
|
|
4288
4288
|
key: f,
|
|
4289
4289
|
class: "cl-border-b cl-border-grey-2 cl-flex cl-py-2 cl-text-sm cl-w-full"
|
|
4290
4290
|
}, [
|
|
4291
|
-
m("div", Cs,
|
|
4291
|
+
m("div", Cs, A(r.caption), 1),
|
|
4292
4292
|
m("div", Ts, [
|
|
4293
4293
|
C(dl, {
|
|
4294
4294
|
"model-value": r.visible === void 0 || r.visible === !0,
|
|
@@ -4309,7 +4309,7 @@ const Fn = {
|
|
|
4309
4309
|
icon: "ph:arrow-right",
|
|
4310
4310
|
onClick: (y) => c(f, "up")
|
|
4311
4311
|
}, null, 8, ["onClick"])) : L("", !0)
|
|
4312
|
-
], 64)) : (p(), v("em", qs,
|
|
4312
|
+
], 64)) : (p(), v("em", qs, A(g(s)("grid.hidden")), 1))
|
|
4313
4313
|
])
|
|
4314
4314
|
]))), 128))
|
|
4315
4315
|
])
|
|
@@ -4323,7 +4323,7 @@ const Fn = {
|
|
|
4323
4323
|
]))
|
|
4324
4324
|
], 64));
|
|
4325
4325
|
}
|
|
4326
|
-
}), 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({
|
|
4327
4327
|
__name: "cl-ui-grid",
|
|
4328
4328
|
props: {
|
|
4329
4329
|
columns: {},
|
|
@@ -4409,14 +4409,14 @@ const Fn = {
|
|
|
4409
4409
|
"onUpdate:request": H[1] || (H[1] = (F) => f.value = F),
|
|
4410
4410
|
columns: ee.value
|
|
4411
4411
|
}, {
|
|
4412
|
-
search:
|
|
4412
|
+
search: E((F) => [
|
|
4413
4413
|
M(R.$slots, "search", ce(pe(F)))
|
|
4414
4414
|
]),
|
|
4415
4415
|
_: 3
|
|
4416
4416
|
}, 8, ["search-value", "request", "columns"])) : L("", !0),
|
|
4417
4417
|
C(Me, { name: "fade" }, {
|
|
4418
|
-
default:
|
|
4419
|
-
le(m("div",
|
|
4418
|
+
default: E(() => [
|
|
4419
|
+
le(m("div", As, [
|
|
4420
4420
|
C(cl, { class: "after:!cl-h-20 after:!cl-w-20 cl-h-20 cl-w-20" })
|
|
4421
4421
|
], 512), [
|
|
4422
4422
|
[ue, R.loading]
|
|
@@ -4435,10 +4435,10 @@ const Fn = {
|
|
|
4435
4435
|
loading: R.loading,
|
|
4436
4436
|
onClearFilters: y
|
|
4437
4437
|
}, {
|
|
4438
|
-
"additional-grid-actions":
|
|
4438
|
+
"additional-grid-actions": E((F) => [
|
|
4439
4439
|
M(R.$slots, "additional-grid-actions", ce(pe(F)))
|
|
4440
4440
|
]),
|
|
4441
|
-
"view-manager":
|
|
4441
|
+
"view-manager": E(() => [
|
|
4442
4442
|
C(Os, {
|
|
4443
4443
|
columns: u.value,
|
|
4444
4444
|
"onUpdate:columns": H[2] || (H[2] = (F) => u.value = F),
|
|
@@ -4447,7 +4447,7 @@ const Fn = {
|
|
|
4447
4447
|
]),
|
|
4448
4448
|
_: 3
|
|
4449
4449
|
}, 8, ["edit-mode", "filter-panel-open", "columns", "options", "request", "loading"]),
|
|
4450
|
-
m("div",
|
|
4450
|
+
m("div", Es, [
|
|
4451
4451
|
m("table", {
|
|
4452
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", {
|
|
4453
4453
|
"cl-opacity-40 cl-pointer-events-none": R.loading
|
|
@@ -4492,7 +4492,7 @@ const Fn = {
|
|
|
4492
4492
|
}, Te({ _: 2 }, [
|
|
4493
4493
|
ne(R.$slots, (F, j) => ({
|
|
4494
4494
|
name: j,
|
|
4495
|
-
fn:
|
|
4495
|
+
fn: E((x) => [
|
|
4496
4496
|
M(R.$slots, j, ce(pe(x)))
|
|
4497
4497
|
])
|
|
4498
4498
|
}))
|
|
@@ -4557,7 +4557,7 @@ const Fn = {
|
|
|
4557
4557
|
}, Te({ _: 2 }, [
|
|
4558
4558
|
ne(r.$slots, (y, k) => ({
|
|
4559
4559
|
name: k,
|
|
4560
|
-
fn:
|
|
4560
|
+
fn: E((b) => [
|
|
4561
4561
|
M(r.$slots, k, ce(pe(b)))
|
|
4562
4562
|
])
|
|
4563
4563
|
}))
|
|
@@ -4633,7 +4633,7 @@ const Us = ["id", "onClick"], dt = /* @__PURE__ */ P({
|
|
|
4633
4633
|
class: O(["cl-tracking-wide", {
|
|
4634
4634
|
"cl-opacity-0": d.loading
|
|
4635
4635
|
}])
|
|
4636
|
-
},
|
|
4636
|
+
}, A(i.caption ? g(e)(i.caption) : i.name), 3),
|
|
4637
4637
|
le(m("div", {
|
|
4638
4638
|
class: O(["cl-px-0.5 cl-py-1 cl-rounded hover:cl-bg-link-lighter", {
|
|
4639
4639
|
"cl-bg-link-lighter": s(i, !1) || s(i, !0),
|
|
@@ -4714,7 +4714,7 @@ const Us = ["id", "onClick"], dt = /* @__PURE__ */ P({
|
|
|
4714
4714
|
}, Te({ _: 2 }, [
|
|
4715
4715
|
ne(t.$slots, (n, d) => ({
|
|
4716
4716
|
name: d,
|
|
4717
|
-
fn:
|
|
4717
|
+
fn: E((u) => [
|
|
4718
4718
|
M(t.$slots, d, ce(pe(u)))
|
|
4719
4719
|
])
|
|
4720
4720
|
}))
|
|
@@ -4750,7 +4750,7 @@ const Us = ["id", "onClick"], dt = /* @__PURE__ */ P({
|
|
|
4750
4750
|
]])
|
|
4751
4751
|
}, [
|
|
4752
4752
|
M(n.$slots, "noData", {}, () => [
|
|
4753
|
-
ie(
|
|
4753
|
+
ie(A(g(l)("grid.noData")), 1)
|
|
4754
4754
|
])
|
|
4755
4755
|
], 2)) : (p(!0), v(Y, { key: 2 }, ne(n.data.results, (c, i) => {
|
|
4756
4756
|
var a, r;
|
|
@@ -4772,7 +4772,7 @@ const Us = ["id", "onClick"], dt = /* @__PURE__ */ P({
|
|
|
4772
4772
|
}, Te({ _: 2 }, [
|
|
4773
4773
|
ne(n.$slots, (f, y) => ({
|
|
4774
4774
|
name: y,
|
|
4775
|
-
fn:
|
|
4775
|
+
fn: E((k) => [
|
|
4776
4776
|
M(n.$slots, y, ce(pe(k)))
|
|
4777
4777
|
])
|
|
4778
4778
|
}))
|
|
@@ -4832,13 +4832,13 @@ const Us = ["id", "onClick"], dt = /* @__PURE__ */ P({
|
|
|
4832
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;
|
|
4833
4833
|
}
|
|
4834
4834
|
function i(a, r) {
|
|
4835
|
-
return t.column.format === X.INTEGER ?
|
|
4835
|
+
return t.column.format === X.INTEGER ? Ae(a, X.DECIMAL, {
|
|
4836
4836
|
locale: r,
|
|
4837
4837
|
additionalOptions: {
|
|
4838
4838
|
maximumFractionDigits: 0,
|
|
4839
4839
|
minimumFractionDigits: 0
|
|
4840
4840
|
}
|
|
4841
|
-
}) :
|
|
4841
|
+
}) : Ae(a, t.column.format ?? X.DECIMAL, {
|
|
4842
4842
|
locale: r,
|
|
4843
4843
|
additionalOptions: {
|
|
4844
4844
|
maximumFractionDigits: t.column.precision ?? 2,
|
|
@@ -4864,21 +4864,21 @@ const Us = ["id", "onClick"], dt = /* @__PURE__ */ P({
|
|
|
4864
4864
|
id: g(l)
|
|
4865
4865
|
}, [
|
|
4866
4866
|
a.column.format !== void 0 ? (p(), v(Y, { key: 0 }, [
|
|
4867
|
-
ie(
|
|
4867
|
+
ie(A(u(a.data[a.column.field], a.column.format)), 1)
|
|
4868
4868
|
], 64)) : a.column.type === "date" || a.column.type === "dateRange" ? (p(), v(Y, { key: 1 }, [
|
|
4869
|
-
ie(
|
|
4869
|
+
ie(A(u(a.data[a.column.field], g(se).DATE)), 1)
|
|
4870
4870
|
], 64)) : (p(), v(Y, { key: 2 }, [
|
|
4871
|
-
ie(
|
|
4871
|
+
ie(A(u(a.data[a.column.field], g(se).DATETIME)), 1)
|
|
4872
4872
|
], 64))
|
|
4873
4873
|
], 8, Ls)) : a.column.type === "list" && a.column.field !== void 0 && a.column.listEntries !== void 0 ? (p(), v("span", {
|
|
4874
4874
|
key: 3,
|
|
4875
4875
|
id: g(l),
|
|
4876
4876
|
class: "cl-inline-block cl-whitespace-nowrap"
|
|
4877
|
-
},
|
|
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", {
|
|
4878
4878
|
key: 4,
|
|
4879
4879
|
id: g(l),
|
|
4880
4880
|
class: "cl-inline-block cl-whitespace-nowrap"
|
|
4881
|
-
},
|
|
4881
|
+
}, A(i(a.data[a.column.field], g(d))), 9, Fs)) : a.column.field !== void 0 ? (p(), v("span", js, [
|
|
4882
4882
|
m("span", {
|
|
4883
4883
|
id: g(l),
|
|
4884
4884
|
innerHTML: c()
|
|
@@ -4953,11 +4953,11 @@ const vt = /* @__PURE__ */ ye(Gs, [["render", Qs]]), Ys = { class: "cl-flex cl-g
|
|
|
4953
4953
|
}, [
|
|
4954
4954
|
m("div", Ys, [
|
|
4955
4955
|
m("div", null, [
|
|
4956
|
-
m("span", _s,
|
|
4957
|
-
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)
|
|
4958
4958
|
]),
|
|
4959
4959
|
c.value.length ? (p(), v("ul", Js, [
|
|
4960
|
-
m("li", xs,
|
|
4960
|
+
m("li", xs, A(g(e)("grid.pageSize")), 1),
|
|
4961
4961
|
(p(!0), v(Y, null, ne(c.value, (k, b) => (p(), v("li", {
|
|
4962
4962
|
id: `${a.gridId}-page-size-${k}`,
|
|
4963
4963
|
key: b,
|
|
@@ -4966,7 +4966,7 @@ const vt = /* @__PURE__ */ ye(Gs, [["render", Qs]]), Ys = { class: "cl-flex cl-g
|
|
|
4966
4966
|
"cl-border-b-transparent hover:cl-border-b-link-lighter hover:cl-text-link-light cl-cursor-pointer": l.value.pageSize !== k
|
|
4967
4967
|
}]),
|
|
4968
4968
|
onClick: (T) => l.value.pageSize !== k ? i(k) : null
|
|
4969
|
-
},
|
|
4969
|
+
}, A(g(we)(k)), 11, Xs))), 128))
|
|
4970
4970
|
])) : L("", !0)
|
|
4971
4971
|
]),
|
|
4972
4972
|
m("div", null, [
|
|
@@ -5005,7 +5005,7 @@ const vt = /* @__PURE__ */ ye(Gs, [["render", Qs]]), Ys = { class: "cl-flex cl-g
|
|
|
5005
5005
|
"cl-cursor-pointer ": l.value.pageNumber !== k
|
|
5006
5006
|
}]),
|
|
5007
5007
|
onClick: (T) => l.value.pageNumber !== k ? d(k) : null
|
|
5008
|
-
},
|
|
5008
|
+
}, A(g(we)(k)), 11, or))), 128)),
|
|
5009
5009
|
m("li", {
|
|
5010
5010
|
id: `${a.gridId}-page-next`,
|
|
5011
5011
|
class: O({
|
|
@@ -5102,8 +5102,8 @@ const vt = /* @__PURE__ */ ye(Gs, [["render", Qs]]), Ys = { class: "cl-flex cl-g
|
|
|
5102
5102
|
"cl-text-white": t.colour === "secondary"
|
|
5103
5103
|
}])
|
|
5104
5104
|
}, [
|
|
5105
|
-
t.username ? (p(), v("div", ur,
|
|
5106
|
-
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)
|
|
5107
5107
|
], 2),
|
|
5108
5108
|
m("div", pr, [
|
|
5109
5109
|
C(g(_), {
|
|
@@ -5117,7 +5117,7 @@ const vt = /* @__PURE__ */ ye(Gs, [["render", Qs]]), Ys = { class: "cl-flex cl-g
|
|
|
5117
5117
|
])
|
|
5118
5118
|
]),
|
|
5119
5119
|
C(Me, { name: "fade" }, {
|
|
5120
|
-
default:
|
|
5120
|
+
default: E(() => [
|
|
5121
5121
|
le(m("div", fr, [
|
|
5122
5122
|
M(t.$slots, "default")
|
|
5123
5123
|
], 512), [
|
|
@@ -5205,7 +5205,7 @@ const vt = /* @__PURE__ */ ye(Gs, [["render", Qs]]), Ys = { class: "cl-flex cl-g
|
|
|
5205
5205
|
"hide-time-header": "",
|
|
5206
5206
|
popover: i.value
|
|
5207
5207
|
}, {
|
|
5208
|
-
default:
|
|
5208
|
+
default: E(({ inputValue: ee, inputEvents: I }) => [
|
|
5209
5209
|
C(Ze, J(q.$attrs, {
|
|
5210
5210
|
ref_key: "input",
|
|
5211
5211
|
ref: r,
|
|
@@ -5239,7 +5239,7 @@ const vt = /* @__PURE__ */ ye(Gs, [["render", Qs]]), Ys = { class: "cl-flex cl-g
|
|
|
5239
5239
|
"initial-page": f.value,
|
|
5240
5240
|
onDayclick: z[4] || (z[4] = (ee) => y.value = null)
|
|
5241
5241
|
}, {
|
|
5242
|
-
default:
|
|
5242
|
+
default: E(({ togglePopover: ee }) => [
|
|
5243
5243
|
C(Ze, J(q.$attrs, {
|
|
5244
5244
|
ref_key: "input",
|
|
5245
5245
|
ref: r,
|
|
@@ -5255,7 +5255,7 @@ const vt = /* @__PURE__ */ ye(Gs, [["render", Qs]]), Ys = { class: "cl-flex cl-g
|
|
|
5255
5255
|
})
|
|
5256
5256
|
}), null, 16, ["type", "required", "disabled", "range-selected", "title", "onTogglePopover"])
|
|
5257
5257
|
]),
|
|
5258
|
-
footer:
|
|
5258
|
+
footer: E(() => [
|
|
5259
5259
|
q.quickDateScope !== "none" ? (p(), G(nt, {
|
|
5260
5260
|
key: 0,
|
|
5261
5261
|
scope: q.quickDateScope,
|
|
@@ -5284,7 +5284,7 @@ const vt = /* @__PURE__ */ ye(Gs, [["render", Qs]]), Ys = { class: "cl-flex cl-g
|
|
|
5284
5284
|
"hide-time-header": "",
|
|
5285
5285
|
popover: i.value
|
|
5286
5286
|
}, {
|
|
5287
|
-
default:
|
|
5287
|
+
default: E(({ inputValue: ee, inputEvents: I }) => [
|
|
5288
5288
|
C(Ze, J(q.$attrs, {
|
|
5289
5289
|
ref_key: "input",
|
|
5290
5290
|
ref: r,
|
|
@@ -5414,7 +5414,7 @@ const vt = /* @__PURE__ */ ye(Gs, [["render", Qs]]), Ys = { class: "cl-flex cl-g
|
|
|
5414
5414
|
"cl-bg-grey-0": i.disabled
|
|
5415
5415
|
}]),
|
|
5416
5416
|
onClick: a[0] || (a[0] = (r) => e.value = i.disabled ? e.value : i.min)
|
|
5417
|
-
},
|
|
5417
|
+
}, A(Number.isInteger(i.min) ? g(we)(i.min) : g(Ae)(i.min, g(X).DECIMAL)), 3),
|
|
5418
5418
|
m("div", kr, [
|
|
5419
5419
|
c.value ? (p(), G(_e, {
|
|
5420
5420
|
key: 0,
|
|
@@ -5431,7 +5431,7 @@ const vt = /* @__PURE__ */ ye(Gs, [["render", Qs]]), Ys = { class: "cl-flex cl-g
|
|
|
5431
5431
|
disabled: i.disabled,
|
|
5432
5432
|
placeholder: i.placeholder
|
|
5433
5433
|
}, {
|
|
5434
|
-
default:
|
|
5434
|
+
default: E(() => [
|
|
5435
5435
|
$r
|
|
5436
5436
|
]),
|
|
5437
5437
|
_: 1
|
|
@@ -5454,7 +5454,7 @@ const vt = /* @__PURE__ */ ye(Gs, [["render", Qs]]), Ys = { class: "cl-flex cl-g
|
|
|
5454
5454
|
{ number: !0 }
|
|
5455
5455
|
]
|
|
5456
5456
|
]),
|
|
5457
|
-
m("div", Tr,
|
|
5457
|
+
m("div", Tr, A(Number.isInteger(e.value) ? g(we)(e.value) : g(Ae)(e.value, g(X).DECIMAL)), 1)
|
|
5458
5458
|
], 64))
|
|
5459
5459
|
]),
|
|
5460
5460
|
m("span", {
|
|
@@ -5463,7 +5463,7 @@ const vt = /* @__PURE__ */ ye(Gs, [["render", Qs]]), Ys = { class: "cl-flex cl-g
|
|
|
5463
5463
|
"cl-bg-grey-0": i.disabled
|
|
5464
5464
|
}]),
|
|
5465
5465
|
onClick: a[3] || (a[3] = (r) => e.value = i.disabled ? e.value : i.max)
|
|
5466
|
-
},
|
|
5466
|
+
}, A(Number.isInteger(i.max) ? g(we)(i.max) : g(Ae)(i.max, g(X).DECIMAL)), 3),
|
|
5467
5467
|
m("div", Sr, [
|
|
5468
5468
|
m("div", {
|
|
5469
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",
|
|
@@ -5473,7 +5473,7 @@ const vt = /* @__PURE__ */ ye(Gs, [["render", Qs]]), Ys = { class: "cl-flex cl-g
|
|
|
5473
5473
|
])
|
|
5474
5474
|
])
|
|
5475
5475
|
])
|
|
5476
|
-
], 16)) : (p(), v("div", qr,
|
|
5476
|
+
], 16)) : (p(), v("div", qr, A(g(s)("slider.invalidProps")), 1));
|
|
5477
5477
|
}
|
|
5478
5478
|
}), Dr = /* @__PURE__ */ ye(Or, [["__scopeId", "data-v-5cb4ccea"]]);
|
|
5479
5479
|
function zl(o) {
|
|
@@ -5493,7 +5493,7 @@ function zl(o) {
|
|
|
5493
5493
|
}
|
|
5494
5494
|
return t;
|
|
5495
5495
|
}
|
|
5496
|
-
function
|
|
5496
|
+
function Ar(o) {
|
|
5497
5497
|
return o === "number" || o === "range";
|
|
5498
5498
|
}
|
|
5499
5499
|
function Ll(o) {
|
|
@@ -5514,7 +5514,7 @@ function Ll(o) {
|
|
|
5514
5514
|
function Ge(o) {
|
|
5515
5515
|
return o === "button" || o === "submit" || o === "reset";
|
|
5516
5516
|
}
|
|
5517
|
-
function
|
|
5517
|
+
function Er(o) {
|
|
5518
5518
|
let t;
|
|
5519
5519
|
switch (o) {
|
|
5520
5520
|
case "datetime":
|
|
@@ -5535,7 +5535,7 @@ function Ar(o) {
|
|
|
5535
5535
|
}
|
|
5536
5536
|
function Bl(o, t) {
|
|
5537
5537
|
const l = o.target;
|
|
5538
|
-
return
|
|
5538
|
+
return Ar(t) ? l.valueAsNumber : Ge(t) ? l.checked : l.value;
|
|
5539
5539
|
}
|
|
5540
5540
|
const Vr = { class: "cl-flex cl-justify-between" }, Mr = { class: "cl-w-full" }, Ir = {
|
|
5541
5541
|
key: 0,
|
|
@@ -5635,8 +5635,8 @@ const Vr = { class: "cl-flex cl-justify-between" }, Mr = { class: "cl-w-full" },
|
|
|
5635
5635
|
})
|
|
5636
5636
|
];
|
|
5637
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) => {
|
|
5638
|
-
const
|
|
5639
|
-
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;
|
|
5640
5640
|
});
|
|
5641
5641
|
}
|
|
5642
5642
|
function x() {
|
|
@@ -5713,11 +5713,11 @@ const Vr = { class: "cl-flex cl-justify-between" }, Mr = { class: "cl-w-full" },
|
|
|
5713
5713
|
}, [
|
|
5714
5714
|
m("div", Vr, [
|
|
5715
5715
|
m("div", Mr, [
|
|
5716
|
-
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), [
|
|
5717
5717
|
[ue, h.showLabel && h.label !== ""]
|
|
5718
5718
|
])
|
|
5719
5719
|
]),
|
|
5720
|
-
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)
|
|
5721
5721
|
]),
|
|
5722
5722
|
h.inputType !== "range" && h.inputType !== "currency" && !g(Ll)(h.inputType) ? (p(), v("div", Rr, [
|
|
5723
5723
|
le(m("input", J({
|
|
@@ -5761,7 +5761,7 @@ const Vr = { class: "cl-flex cl-justify-between" }, Mr = { class: "cl-w-full" },
|
|
|
5761
5761
|
name: "fade",
|
|
5762
5762
|
duration: 300
|
|
5763
5763
|
}, {
|
|
5764
|
-
default:
|
|
5764
|
+
default: E(() => [
|
|
5765
5765
|
h.inputType === "number" && !h.disabled && h.showArrows ? le((p(), v("div", zr, [
|
|
5766
5766
|
C(g(_), {
|
|
5767
5767
|
icon: "ph:caret-up-bold",
|
|
@@ -5815,7 +5815,7 @@ const Vr = { class: "cl-flex cl-justify-between" }, Mr = { class: "cl-w-full" },
|
|
|
5815
5815
|
}],
|
|
5816
5816
|
disabled: h.disabled,
|
|
5817
5817
|
required: h.isRequired,
|
|
5818
|
-
type: g(
|
|
5818
|
+
type: g(Er)(h.inputType),
|
|
5819
5819
|
"time-zone": h.timeZone,
|
|
5820
5820
|
min: k.value,
|
|
5821
5821
|
max: b.value,
|
|
@@ -5842,8 +5842,8 @@ const Vr = { class: "cl-flex cl-justify-between" }, Mr = { class: "cl-w-full" },
|
|
|
5842
5842
|
}, null, 8, ["value", "min", "max", "step", "placeholder", "disabled"])
|
|
5843
5843
|
])) : L("", !0)
|
|
5844
5844
|
], 32),
|
|
5845
|
-
q.value && B.value && z.value ? (p(), v("div", Fr,
|
|
5846
|
-
!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)
|
|
5847
5847
|
], 16));
|
|
5848
5848
|
}
|
|
5849
5849
|
}), Gr = /* @__PURE__ */ ye(Pr, [["__scopeId", "data-v-2373f106"]]), Hr = [
|
|
@@ -5915,10 +5915,10 @@ const Kr = {
|
|
|
5915
5915
|
class: O(["cl-font-semibold cl-text-xs", {
|
|
5916
5916
|
"cl-opacity-50": a.disabled
|
|
5917
5917
|
}])
|
|
5918
|
-
},
|
|
5918
|
+
}, A(d.value.nativeName), 3)
|
|
5919
5919
|
], 2),
|
|
5920
5920
|
C(Me, { name: "fade" }, {
|
|
5921
|
-
default:
|
|
5921
|
+
default: E(() => [
|
|
5922
5922
|
le(m("div", Qr, [
|
|
5923
5923
|
(p(!0), v(Y, null, ne(u.value, (f, y) => (p(), v("div", {
|
|
5924
5924
|
key: y,
|
|
@@ -5929,7 +5929,7 @@ const Kr = {
|
|
|
5929
5929
|
s.value = f.localeCode, i(), e("language-select", f.localeCode);
|
|
5930
5930
|
}
|
|
5931
5931
|
}, [
|
|
5932
|
-
m("span", _r,
|
|
5932
|
+
m("span", _r, A(f.nativeName), 1)
|
|
5933
5933
|
], 8, Yr))), 128))
|
|
5934
5934
|
], 512), [
|
|
5935
5935
|
[ue, n.value]
|
|
@@ -6006,12 +6006,12 @@ const Kr = {
|
|
|
6006
6006
|
placeholder: g(e)("login.email"),
|
|
6007
6007
|
autocomplete: "username"
|
|
6008
6008
|
}, {
|
|
6009
|
-
default:
|
|
6009
|
+
default: E(() => [
|
|
6010
6010
|
si
|
|
6011
6011
|
]),
|
|
6012
6012
|
_: 1
|
|
6013
6013
|
}, 8, ["modelValue", "class", "errors", "placeholder"]),
|
|
6014
|
-
u.value ? (p(), v("div", ri,
|
|
6014
|
+
u.value ? (p(), v("div", ri, A(g(e)("login.validEmail")), 1)) : L("", !0)
|
|
6015
6015
|
])
|
|
6016
6016
|
])
|
|
6017
6017
|
]),
|
|
@@ -6049,7 +6049,7 @@ const Kr = {
|
|
|
6049
6049
|
placeholder: g(e)("login.password"),
|
|
6050
6050
|
autocomplete: "current-password"
|
|
6051
6051
|
}, {
|
|
6052
|
-
default:
|
|
6052
|
+
default: E(() => [
|
|
6053
6053
|
ui
|
|
6054
6054
|
]),
|
|
6055
6055
|
_: 1
|
|
@@ -6069,15 +6069,15 @@ const Kr = {
|
|
|
6069
6069
|
disabled: !u.value || n.value === "",
|
|
6070
6070
|
onClick: ae(i, ["prevent"])
|
|
6071
6071
|
}, {
|
|
6072
|
-
default:
|
|
6073
|
-
ie(
|
|
6072
|
+
default: E(() => [
|
|
6073
|
+
ie(A(g(e)("login.login")), 1)
|
|
6074
6074
|
]),
|
|
6075
6075
|
_: 1
|
|
6076
6076
|
}, 8, ["loading", "disabled"])
|
|
6077
6077
|
], 2)
|
|
6078
6078
|
], 2),
|
|
6079
6079
|
C(Me, { name: "cl-grow-down" }, {
|
|
6080
|
-
default:
|
|
6080
|
+
default: E(() => {
|
|
6081
6081
|
var y;
|
|
6082
6082
|
return [
|
|
6083
6083
|
le(m("span", di, [
|
|
@@ -6085,7 +6085,7 @@ const Kr = {
|
|
|
6085
6085
|
id: "cl-ui-login-errors",
|
|
6086
6086
|
key: b,
|
|
6087
6087
|
class: "cl-font-semibold"
|
|
6088
|
-
},
|
|
6088
|
+
}, A(k), 1))), 128))
|
|
6089
6089
|
], 512), [
|
|
6090
6090
|
[ue, (y = r.errors) == null ? void 0 : y.length]
|
|
6091
6091
|
])
|
|
@@ -6172,7 +6172,7 @@ const Kr = {
|
|
|
6172
6172
|
], 2),
|
|
6173
6173
|
a.value ? (p(), v("div", gi)) : L("", !0),
|
|
6174
6174
|
C(Me, { name: "slide-right" }, {
|
|
6175
|
-
default:
|
|
6175
|
+
default: E(() => [
|
|
6176
6176
|
le(m("div", {
|
|
6177
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", {
|
|
6178
6178
|
"cl-relative": i.value,
|
|
@@ -6261,13 +6261,13 @@ function Oi(o, t) {
|
|
|
6261
6261
|
])
|
|
6262
6262
|
]);
|
|
6263
6263
|
}
|
|
6264
|
-
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" };
|
|
6265
6265
|
function Vi(o, t) {
|
|
6266
|
-
return p(), v("div",
|
|
6266
|
+
return p(), v("div", Ei, [
|
|
6267
6267
|
M(o.$slots, "default")
|
|
6268
6268
|
]);
|
|
6269
6269
|
}
|
|
6270
|
-
const Mi = /* @__PURE__ */ ye(
|
|
6270
|
+
const Mi = /* @__PURE__ */ ye(Ai, [["render", Vi]]), Ii = /* @__PURE__ */ P({
|
|
6271
6271
|
__name: "cl-ui-tab",
|
|
6272
6272
|
props: {
|
|
6273
6273
|
colour: { default: "default" },
|
|
@@ -6397,7 +6397,7 @@ const Mi = /* @__PURE__ */ ye(Ei, [["render", Vi]]), Ii = /* @__PURE__ */ P({
|
|
|
6397
6397
|
inert: e.disabled
|
|
6398
6398
|
}, [
|
|
6399
6399
|
M(e.$slots, "default", {}, () => [
|
|
6400
|
-
ie(
|
|
6400
|
+
ie(A(e.title), 1)
|
|
6401
6401
|
])
|
|
6402
6402
|
], 10, Ni));
|
|
6403
6403
|
}
|
|
@@ -6410,7 +6410,7 @@ const Mi = /* @__PURE__ */ ye(Ei, [["render", Vi]]), Ii = /* @__PURE__ */ P({
|
|
|
6410
6410
|
setup(o) {
|
|
6411
6411
|
return (t, l) => t.open ? (p(), v("div", Ui, [
|
|
6412
6412
|
M(t.$slots, "header", {}, () => [
|
|
6413
|
-
m("h4", zi,
|
|
6413
|
+
m("h4", zi, A(t.title), 1)
|
|
6414
6414
|
]),
|
|
6415
6415
|
M(t.$slots, "default")
|
|
6416
6416
|
])) : L("", !0);
|
|
@@ -6539,10 +6539,10 @@ const Mi = /* @__PURE__ */ ye(Ei, [["render", Vi]]), Ii = /* @__PURE__ */ P({
|
|
|
6539
6539
|
}), (c, i) => (p(), G(Ie, {
|
|
6540
6540
|
"show-required-asterisk": c.required && c.$slots.label !== void 0
|
|
6541
6541
|
}, {
|
|
6542
|
-
label:
|
|
6542
|
+
label: E(() => [
|
|
6543
6543
|
M(c.$slots, "label")
|
|
6544
6544
|
]),
|
|
6545
|
-
default:
|
|
6545
|
+
default: E(() => [
|
|
6546
6546
|
m("div", J(c.$attrs, {
|
|
6547
6547
|
class: ["cl-flex", {
|
|
6548
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",
|
|
@@ -6569,7 +6569,7 @@ const Mi = /* @__PURE__ */ ye(Ei, [["render", Vi]]), Ii = /* @__PURE__ */ P({
|
|
|
6569
6569
|
"cl-rounded-none ": t.orientation === "horizontal"
|
|
6570
6570
|
})
|
|
6571
6571
|
}, {
|
|
6572
|
-
default:
|
|
6572
|
+
default: E(() => [
|
|
6573
6573
|
M(t.$slots, "default")
|
|
6574
6574
|
]),
|
|
6575
6575
|
_: 3
|
|
@@ -6583,11 +6583,12 @@ const Mi = /* @__PURE__ */ ye(Ei, [["render", Vi]]), Ii = /* @__PURE__ */ P({
|
|
|
6583
6583
|
class: "cl-mb-1 cl-mt-0.5"
|
|
6584
6584
|
}, _i = { class: "cl-overflow-y-auto cl-w-full" }, Ji = {
|
|
6585
6585
|
key: 1,
|
|
6586
|
-
class: "cl-mt-auto cl-w-full"
|
|
6586
|
+
class: "cl-mt-auto cl-text-white cl-w-full hover:cl-text-secondary-default"
|
|
6587
6587
|
}, xi = {
|
|
6588
6588
|
key: 0,
|
|
6589
6589
|
class: "cl-flex cl-flex-shrink-0 cl-w-16"
|
|
6590
6590
|
}, Xi = /* @__PURE__ */ P({
|
|
6591
|
+
inheritAttrs: !1,
|
|
6591
6592
|
__name: "cl-ui-menu",
|
|
6592
6593
|
props: {
|
|
6593
6594
|
open: { type: Boolean, required: !0 },
|
|
@@ -6615,14 +6616,15 @@ const Mi = /* @__PURE__ */ ye(Ei, [["render", Vi]]), Ii = /* @__PURE__ */ P({
|
|
|
6615
6616
|
return Qe(u, () => {
|
|
6616
6617
|
t.value === !0 && d.value === !1 && (t.value = !1);
|
|
6617
6618
|
}), (c, i) => (p(), v(Y, null, [
|
|
6618
|
-
m("div", {
|
|
6619
|
+
m("div", J({
|
|
6619
6620
|
ref_key: "menuElement",
|
|
6620
|
-
ref: u
|
|
6621
|
-
|
|
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", {
|
|
6622
6624
|
"cl-w-16": t.value === !1,
|
|
6623
|
-
"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
|
|
6624
|
-
}]
|
|
6625
|
-
}, [
|
|
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
|
+
}), [
|
|
6626
6628
|
m("div", {
|
|
6627
6629
|
class: O(["cl-flex cl-items-center cl-rounded cl-w-full", {
|
|
6628
6630
|
"hover:cl-bg-primary-lighter cl-cursor-pointer": t.value === !1,
|
|
@@ -6637,9 +6639,10 @@ const Mi = /* @__PURE__ */ ye(Ei, [["render", Vi]]), Ii = /* @__PURE__ */ P({
|
|
|
6637
6639
|
])) : L("", !0),
|
|
6638
6640
|
C(g(nl), {
|
|
6639
6641
|
"icon-value": t.value ? "ph:caret-circle-left" : "ph:list",
|
|
6640
|
-
class: O({
|
|
6641
|
-
"!cl-justify-end cl-opacity-
|
|
6642
|
-
|
|
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
|
+
}]),
|
|
6643
6646
|
onClick: i[0] || (i[0] = ae(() => n(), ["stop"]))
|
|
6644
6647
|
}, null, 8, ["icon-value", "class"])
|
|
6645
6648
|
], 2),
|
|
@@ -6654,7 +6657,8 @@ const Mi = /* @__PURE__ */ ye(Ei, [["render", Vi]]), Ii = /* @__PURE__ */ P({
|
|
|
6654
6657
|
}, [
|
|
6655
6658
|
t.value === !1 ? (p(), G(g(nl), {
|
|
6656
6659
|
key: 0,
|
|
6657
|
-
"icon-value": "ph:magnifying-glass"
|
|
6660
|
+
"icon-value": "ph:magnifying-glass",
|
|
6661
|
+
class: "cl-text-white hover:cl-text-secondary-default"
|
|
6658
6662
|
})) : (p(), v("div", Yi, [
|
|
6659
6663
|
M(c.$slots, "searchInput")
|
|
6660
6664
|
]))
|
|
@@ -6665,11 +6669,11 @@ const Mi = /* @__PURE__ */ ye(Ei, [["render", Vi]]), Ii = /* @__PURE__ */ P({
|
|
|
6665
6669
|
c.$slots.footer ? (p(), v("div", Ji, [
|
|
6666
6670
|
M(c.$slots, "footer", ce(pe({ toggleOpen: s, groupIsOpen: e })))
|
|
6667
6671
|
])) : L("", !0)
|
|
6668
|
-
],
|
|
6672
|
+
], 16),
|
|
6669
6673
|
g(d) === !1 && t.value ? (p(), v("div", xi)) : L("", !0)
|
|
6670
6674
|
], 64));
|
|
6671
6675
|
}
|
|
6672
|
-
}), 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 = {
|
|
6673
6677
|
key: 0,
|
|
6674
6678
|
class: "cl-mt-1"
|
|
6675
6679
|
}, nc = /* @__PURE__ */ P({
|
|
@@ -6686,12 +6690,12 @@ const Mi = /* @__PURE__ */ ye(Ei, [["render", Vi]]), Ii = /* @__PURE__ */ P({
|
|
|
6686
6690
|
const e = Se("icon");
|
|
6687
6691
|
return p(), v("div", ec, [
|
|
6688
6692
|
m("div", {
|
|
6689
|
-
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",
|
|
6690
6694
|
onClick: l[0] || (l[0] = (s) => t.$emit("toggle-open"))
|
|
6691
6695
|
}, [
|
|
6692
6696
|
C(g(nl), { "icon-value": t.iconValue }, null, 8, ["icon-value"]),
|
|
6693
6697
|
le(m("div", lc, [
|
|
6694
|
-
m("span", tc,
|
|
6698
|
+
m("span", tc, A(t.title), 1),
|
|
6695
6699
|
t.$slots.default ? (p(), G(e, {
|
|
6696
6700
|
key: 0,
|
|
6697
6701
|
icon: t.open ? "ph:caret-up" : "ph:caret-down",
|
|
@@ -6704,7 +6708,7 @@ const Mi = /* @__PURE__ */ ye(Ei, [["render", Vi]]), Ii = /* @__PURE__ */ P({
|
|
|
6704
6708
|
m("div", oc, [
|
|
6705
6709
|
t.open && t.menuOpen === !0 ? (p(), v("div", ac, [
|
|
6706
6710
|
C(g(ht), null, {
|
|
6707
|
-
default:
|
|
6711
|
+
default: E(() => [
|
|
6708
6712
|
M(t.$slots, "default")
|
|
6709
6713
|
]),
|
|
6710
6714
|
_: 3
|
|
@@ -6731,9 +6735,9 @@ const Mi = /* @__PURE__ */ ye(Ei, [["render", Vi]]), Ii = /* @__PURE__ */ P({
|
|
|
6731
6735
|
]);
|
|
6732
6736
|
};
|
|
6733
6737
|
}
|
|
6734
|
-
}), rc = { class: "cl-flex cl-flex-row" }, ic = /* @__PURE__ */ m("div", { class: "cl-flex cl-justify-center cl-w-[47px]" }, [
|
|
6735
|
-
/* @__PURE__ */ m("div", { class: "cl-bg-
|
|
6736
|
-
], -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({
|
|
6737
6741
|
__name: "cl-ui-menu-section",
|
|
6738
6742
|
setup(o) {
|
|
6739
6743
|
return (t, l) => (p(), v("div", rc, [
|
|
@@ -6743,7 +6747,7 @@ const Mi = /* @__PURE__ */ ye(Ei, [["render", Vi]]), Ii = /* @__PURE__ */ P({
|
|
|
6743
6747
|
])
|
|
6744
6748
|
]));
|
|
6745
6749
|
}
|
|
6746
|
-
}), 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({
|
|
6747
6751
|
__name: "cl-ui-menu-item",
|
|
6748
6752
|
setup(o) {
|
|
6749
6753
|
return (t, l) => (p(), v("div", uc, [
|
|
@@ -6909,7 +6913,7 @@ export {
|
|
|
6909
6913
|
Dc as default,
|
|
6910
6914
|
da as doesNumberStringContainPart,
|
|
6911
6915
|
Rn as filterMethodTypes,
|
|
6912
|
-
|
|
6916
|
+
Ae as formatNumber,
|
|
6913
6917
|
ml as formatNumberAsDecimal,
|
|
6914
6918
|
we as formatNumberAsInteger,
|
|
6915
6919
|
ol as futureQuickDates,
|
|
@@ -6939,7 +6943,7 @@ export {
|
|
|
6939
6943
|
Sc as setLocaleDateTimeFormats,
|
|
6940
6944
|
Cc as setLocaleMessages,
|
|
6941
6945
|
Tc as setLocaleNumberFormats,
|
|
6942
|
-
|
|
6946
|
+
El as showNotification,
|
|
6943
6947
|
Nn as stringFormats,
|
|
6944
6948
|
Bi as tabColours,
|
|
6945
6949
|
ji as tabLayout,
|