@citruslime/ui 3.0.0-beta.0 → 3.0.0-beta.1
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 +587 -580
- package/dist/citrus-lime-ui.umd.js +3 -3
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Icon as Z } from "@iconify/vue";
|
|
2
|
-
import { defineComponent as K, ref as R, openBlock as p, createElementBlock as w, renderSlot as U, normalizeProps as me, guardReactiveProps as he, Fragment as
|
|
2
|
+
import { defineComponent as K, ref as R, openBlock as p, createElementBlock as w, renderSlot as U, normalizeProps as me, guardReactiveProps as he, Fragment as J, createElementVNode as v, normalizeClass as B, createVNode as N, unref as g, Transition as Ee, withCtx as H, withDirectives as X, mergeProps as ce, vShow as ae, createBlock as _, Teleport as bl, renderList as ue, toDisplayString as I, createCommentVNode as z, computed as A, mergeModels as Oe, useModel as Ke, createSlots as Le, vModelDynamic as xl, watch as ne, toRefs as ut, withKeys as ge, onMounted as Ze, onUnmounted as il, withModifiers as oe, nextTick as je, resolveComponent as yl, createTextVNode as pe, vModelCheckbox as dt, inject as ft, watchEffect as pt, toValue as Cl, toHandlers as mt, getCurrentInstance as vt, version as ht, useCssVars as gt, vModelText as bt, pushScopeId as yt, popScopeId as wt, provide as kt, normalizeStyle as $t } from "vue";
|
|
3
3
|
import { generateStringId as St, highlightText as Tt, validateEmail as Ct } from "@citruslime/utils";
|
|
4
4
|
import { unrefElement as Ot, tryOnScopeDispose as Et, onClickOutside as wl, useTimeoutFn as Hl, useMouseInElement as Ft, useFocusWithin as Dt, useMediaQuery as Nt, useDebounceFn as At, useWindowSize as Vt } from "@vueuse/core";
|
|
5
5
|
import { useI18n as fe, createI18n as qt } from "vue-i18n";
|
|
@@ -43,7 +43,7 @@ const It = { class: "cl-overflow-hidden" }, Rt = /* @__PURE__ */ K({
|
|
|
43
43
|
function n() {
|
|
44
44
|
t.disabled || l("toggle");
|
|
45
45
|
}
|
|
46
|
-
return (r, a) => (p(), w(
|
|
46
|
+
return (r, a) => (p(), w(J, null, [
|
|
47
47
|
v("div", {
|
|
48
48
|
class: B(["cl-border-b cl-border-grey-1 cl-relative", {
|
|
49
49
|
"cl-bg-grey-0": r.disabled,
|
|
@@ -67,10 +67,10 @@ const It = { class: "cl-overflow-hidden" }, Rt = /* @__PURE__ */ K({
|
|
|
67
67
|
v("div", jt, [
|
|
68
68
|
N(Ee, { name: "grow-down" }, {
|
|
69
69
|
default: H(() => [
|
|
70
|
-
|
|
70
|
+
X(v("div", ce(r.$attrs, { class: "cl-ml-10 cl-p-4" }), [
|
|
71
71
|
U(r.$slots, "default")
|
|
72
72
|
], 16), [
|
|
73
|
-
[
|
|
73
|
+
[ae, r.open]
|
|
74
74
|
])
|
|
75
75
|
]),
|
|
76
76
|
_: 3
|
|
@@ -119,7 +119,7 @@ const Ht = ["onClick"], Gt = { class: "cl-flex-1 cl-select-none cl-text-ellipsis
|
|
|
119
119
|
"cl-bottom-5 cl-right-5": e.position === "bottom-right"
|
|
120
120
|
}])
|
|
121
121
|
}, [
|
|
122
|
-
(p(!0), w(
|
|
122
|
+
(p(!0), w(J, null, ue(g(el), (l, n) => (p(), w("div", ce(e.$attrs, {
|
|
123
123
|
key: n,
|
|
124
124
|
class: ["cl-break-words cl-cursor-pointer cl-flex cl-font-semibold cl-group cl-mb-2 cl-overflow-hidden cl-p-4 cl-rounded cl-shadow-lg cl-text-sm", {
|
|
125
125
|
"cl-bg-white": l.colour === "default",
|
|
@@ -147,7 +147,7 @@ const Ht = ["onClick"], Gt = { class: "cl-flex-1 cl-select-none cl-text-ellipsis
|
|
|
147
147
|
removePadding: { type: Boolean, default: !1 }
|
|
148
148
|
},
|
|
149
149
|
setup(o) {
|
|
150
|
-
return (e, t) => (p(), w(
|
|
150
|
+
return (e, t) => (p(), w(J, null, [
|
|
151
151
|
N(Wl, {
|
|
152
152
|
class: B({
|
|
153
153
|
"first:cl-mt-[4.25rem]": e.$slots.header
|
|
@@ -193,11 +193,11 @@ const sl = /* @__PURE__ */ Se(Zt, [["render", Qt], ["__scopeId", "data-v-a21dc5d
|
|
|
193
193
|
focus() {
|
|
194
194
|
t.value && t.value.focus();
|
|
195
195
|
}
|
|
196
|
-
}), (l, n) => (p(), w(
|
|
197
|
-
|
|
198
|
-
[
|
|
196
|
+
}), (l, n) => (p(), w(J, null, [
|
|
197
|
+
X(N(sl, { class: "relative" }, null, 512), [
|
|
198
|
+
[ae, l.loading]
|
|
199
199
|
]),
|
|
200
|
-
|
|
200
|
+
X(v("button", ce(l.$attrs, {
|
|
201
201
|
ref_key: "buttonRef",
|
|
202
202
|
ref: t,
|
|
203
203
|
class: ["cl-align-middle cl-border cl-font-semibold cl-inline-block cl-rounded cl-select-none cl-shadow cl-text-center cl-transition-colors", {
|
|
@@ -216,7 +216,7 @@ const sl = /* @__PURE__ */ Se(Zt, [["render", Qt], ["__scopeId", "data-v-a21dc5d
|
|
|
216
216
|
}), [
|
|
217
217
|
U(l.$slots, "default")
|
|
218
218
|
], 16, Yt), [
|
|
219
|
-
[
|
|
219
|
+
[ae, !l.loading]
|
|
220
220
|
])
|
|
221
221
|
], 64));
|
|
222
222
|
}
|
|
@@ -319,7 +319,7 @@ const sl = /* @__PURE__ */ Se(Zt, [["render", Qt], ["__scopeId", "data-v-a21dc5d
|
|
|
319
319
|
]),
|
|
320
320
|
t.value ? (p(), w("div", so, [
|
|
321
321
|
v("div", co, [
|
|
322
|
-
(p(!0), w(
|
|
322
|
+
(p(!0), w(J, null, ue(l.errors, (r, a) => (p(), w("div", {
|
|
323
323
|
key: a,
|
|
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
|
}, I(r), 1))), 128))
|
|
@@ -358,7 +358,7 @@ const sl = /* @__PURE__ */ Se(Zt, [["render", Qt], ["__scopeId", "data-v-a21dc5d
|
|
|
358
358
|
errors: a.errors
|
|
359
359
|
}, Le({
|
|
360
360
|
default: H(() => [
|
|
361
|
-
|
|
361
|
+
X(v("input", ce(a.$attrs, {
|
|
362
362
|
ref_key: "inputRef",
|
|
363
363
|
ref: r,
|
|
364
364
|
"onUpdate:modelValue": u[0] || (u[0] = (s) => l.value = s),
|
|
@@ -1078,12 +1078,12 @@ const Po = /* @__PURE__ */ v("div", { tabindex: "0" }, null, -1), zo = {
|
|
|
1078
1078
|
function s(i) {
|
|
1079
1079
|
i.key === "Escape" && u();
|
|
1080
1080
|
}
|
|
1081
|
-
return (i, c) => (p(), w(
|
|
1081
|
+
return (i, c) => (p(), w(J, null, [
|
|
1082
1082
|
U(i.$slots, "trigger", me(he({ open: a }))),
|
|
1083
1083
|
(p(), _(bl, { to: "body" }, [
|
|
1084
1084
|
N(Ee, { name: "fade" }, {
|
|
1085
1085
|
default: H(() => [
|
|
1086
|
-
|
|
1086
|
+
X(v("div", {
|
|
1087
1087
|
ref_key: "clUiModal",
|
|
1088
1088
|
ref: n,
|
|
1089
1089
|
class: "cl-align-items-center cl-bg-black cl-bg-opacity-40 cl-bottom-0 cl-fixed cl-flex cl-h-full cl-justify-center cl-left-0 cl-right-0 cl-top-0 cl-w-full cl-z-40 xl:cl-h-screen"
|
|
@@ -1097,7 +1097,7 @@ const Po = /* @__PURE__ */ v("div", { tabindex: "0" }, null, -1), zo = {
|
|
|
1097
1097
|
"cl-w-10/12": i.size === "large"
|
|
1098
1098
|
}]
|
|
1099
1099
|
}), [
|
|
1100
|
-
|
|
1100
|
+
X(v("div", {
|
|
1101
1101
|
class: B(["cl-absolute cl-cursor-pointer cl-right-4 cl-top-4 cl-transition-colors cl-w-3", {
|
|
1102
1102
|
"cl-text-white hover:cl-text-off-white": i.headerColour === "secondary",
|
|
1103
1103
|
"cl-text-secondary hover:cl-text-off-white": i.headerColour === "primary",
|
|
@@ -1109,7 +1109,7 @@ const Po = /* @__PURE__ */ v("div", { tabindex: "0" }, null, -1), zo = {
|
|
|
1109
1109
|
}, [
|
|
1110
1110
|
N(g(Z), { icon: "ph:x" })
|
|
1111
1111
|
], 34), [
|
|
1112
|
-
[
|
|
1112
|
+
[ae, !i.preventClose]
|
|
1113
1113
|
]),
|
|
1114
1114
|
v("div", {
|
|
1115
1115
|
class: B(["cl-leading-[2.75rem] cl-min-h-12 cl-overflow-hidden cl-pb-2 cl-pl-4 cl-pr-8 cl-pt-2 cl-text-2xl cl-w-full", {
|
|
@@ -1126,7 +1126,7 @@ const Po = /* @__PURE__ */ v("div", { tabindex: "0" }, null, -1), zo = {
|
|
|
1126
1126
|
U(i.$slots, "footer", me(he({ close: u })))
|
|
1127
1127
|
], 16)
|
|
1128
1128
|
], 512), [
|
|
1129
|
-
[
|
|
1129
|
+
[ae, l.value]
|
|
1130
1130
|
])
|
|
1131
1131
|
]),
|
|
1132
1132
|
_: 3
|
|
@@ -1154,7 +1154,7 @@ const Po = /* @__PURE__ */ v("div", { tabindex: "0" }, null, -1), zo = {
|
|
|
1154
1154
|
"cl-w-full": e.additionalText === ""
|
|
1155
1155
|
})
|
|
1156
1156
|
}, I(e.text), 3),
|
|
1157
|
-
|
|
1157
|
+
X(v("div", {
|
|
1158
1158
|
class: "cl-cursor-pointer cl-float-right",
|
|
1159
1159
|
onMousedown: t[0] || (t[0] = (l) => e.$emit("clear-object"))
|
|
1160
1160
|
}, [
|
|
@@ -1163,7 +1163,7 @@ const Po = /* @__PURE__ */ v("div", { tabindex: "0" }, null, -1), zo = {
|
|
|
1163
1163
|
icon: "ph:x"
|
|
1164
1164
|
})
|
|
1165
1165
|
], 544), [
|
|
1166
|
-
[
|
|
1166
|
+
[ae, e.showClearButton]
|
|
1167
1167
|
])
|
|
1168
1168
|
]));
|
|
1169
1169
|
}
|
|
@@ -1217,18 +1217,21 @@ const Po = /* @__PURE__ */ v("div", { tabindex: "0" }, null, -1), zo = {
|
|
|
1217
1217
|
"cl-w-full": r.value === ""
|
|
1218
1218
|
})
|
|
1219
1219
|
}, I(n.value), 3),
|
|
1220
|
-
|
|
1220
|
+
X(v("div", Go, [
|
|
1221
1221
|
N(g(Z), {
|
|
1222
1222
|
class: "cl-transition-colors",
|
|
1223
1223
|
icon: "ph:plus"
|
|
1224
1224
|
})
|
|
1225
1225
|
], 512), [
|
|
1226
|
-
[
|
|
1226
|
+
[ae, c.isCreateNewOption]
|
|
1227
1227
|
])
|
|
1228
1228
|
], 34);
|
|
1229
1229
|
};
|
|
1230
1230
|
}
|
|
1231
|
-
}), Wo = ["onKeyup"], Ko = {
|
|
1231
|
+
}), Wo = ["onKeyup"], Ko = {
|
|
1232
|
+
key: 0,
|
|
1233
|
+
class: "cl-absolute cl-bg-off-white cl-flex cl-h-full cl-items-center cl-justify-center cl-w-full"
|
|
1234
|
+
}, Zo = { class: "cl-bg-white cl-flex cl-p-2 cl-pb-1 cl-sticky cl-top-0 cl-w-full cl-z-10" }, _o = { class: "cl-inline-block cl-w-full" }, Qo = /* @__PURE__ */ v("span", null, null, -1), Yo = { key: 5 }, Jo = /* @__PURE__ */ K({
|
|
1232
1235
|
__name: "cl-ui-combo-box-search",
|
|
1233
1236
|
props: {
|
|
1234
1237
|
loading: { type: Boolean, default: !1 },
|
|
@@ -1303,80 +1306,81 @@ const Po = /* @__PURE__ */ v("div", { tabindex: "0" }, null, -1), zo = {
|
|
|
1303
1306
|
return p(), w("div", {
|
|
1304
1307
|
ref_key: "container",
|
|
1305
1308
|
ref: i,
|
|
1306
|
-
class: "cl-absolute cl-bg-white cl-border cl-border-collapse cl-border-grey-0 cl-h-52 cl-overflow-y-auto cl-overscroll-y-none cl-rounded cl-text-sm cl-w-full cl-z-20",
|
|
1309
|
+
class: "cl-absolute cl-bg-white cl-border cl-border-collapse cl-border-grey-0 cl-h-52 cl-mt-2 cl-overflow-y-auto cl-overscroll-y-none cl-rounded cl-text-sm cl-w-full cl-z-20",
|
|
1307
1310
|
onKeydown: [
|
|
1308
|
-
f[2] || (f[2] = ge(
|
|
1309
|
-
f[3] || (f[3] = ge(
|
|
1311
|
+
f[2] || (f[2] = ge(oe((m) => D(s.value), ["prevent", "stop"]), ["up"])),
|
|
1312
|
+
f[3] || (f[3] = ge(oe((m) => F(s.value), ["prevent", "stop"]), ["down"]))
|
|
1310
1313
|
],
|
|
1311
|
-
onKeyup: ge(
|
|
1314
|
+
onKeyup: ge(oe(O, ["prevent", "stop"]), ["enter"])
|
|
1312
1315
|
}, [
|
|
1313
|
-
|
|
1316
|
+
$.loading ? (p(), w("div", Ko, [
|
|
1317
|
+
N(sl)
|
|
1318
|
+
])) : (p(), w(J, { key: 1 }, [
|
|
1314
1319
|
v("div", Zo, [
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1320
|
+
v("div", _o, [
|
|
1321
|
+
N(Ne, {
|
|
1322
|
+
modelValue: r.value,
|
|
1323
|
+
"onUpdate:modelValue": f[0] || (f[0] = (m) => r.value = m),
|
|
1324
|
+
class: "cl-box-border cl-font-light cl-mb-2 cl-p-2 cl-placeholder-grey-3 cl-text-sm",
|
|
1325
|
+
placeholder: $.searchHint,
|
|
1326
|
+
type: "search",
|
|
1327
|
+
onKeyup: c,
|
|
1328
|
+
onBlur: y
|
|
1329
|
+
}, {
|
|
1330
|
+
default: H(() => [
|
|
1331
|
+
Qo
|
|
1332
|
+
]),
|
|
1333
|
+
_: 1
|
|
1334
|
+
}, 8, ["modelValue", "placeholder"])
|
|
1335
|
+
])
|
|
1329
1336
|
]),
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
"
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
key: 4,
|
|
1357
|
-
"is-create-new-option": !0,
|
|
1358
|
-
text: g(n)("comboBox.addPrompt", { value: r.value, object: $.objectType }),
|
|
1359
|
-
index: -1,
|
|
1360
|
-
"selected-index": u.value,
|
|
1361
|
-
class: "cl-px-2",
|
|
1362
|
-
onCreateObject: b,
|
|
1363
|
-
onOptionHighlighted: ee
|
|
1364
|
-
}, null, 8, ["text", "selected-index"])) : z("", !0),
|
|
1365
|
-
$.errorMessage === "" && $.results !== null ? (p(), w("div", Qo, [
|
|
1366
|
-
(p(!0), w(X, null, ue($.results, (m, q) => (p(), _(ql, {
|
|
1367
|
-
key: q,
|
|
1368
|
-
option: m,
|
|
1369
|
-
index: q,
|
|
1370
|
-
class: "cl-px-2",
|
|
1337
|
+
$.currentObjectName !== "" ? (p(), _(Ye, {
|
|
1338
|
+
key: 0,
|
|
1339
|
+
"show-clear-button": $.canClearSelectedObject,
|
|
1340
|
+
text: $.currentObjectName,
|
|
1341
|
+
onClearObject: f[1] || (f[1] = (m) => $.$emit("clear-object"))
|
|
1342
|
+
}, null, 8, ["show-clear-button", "text"])) : z("", !0),
|
|
1343
|
+
$.objectParentType !== "" && $.results !== void 0 && $.results.length > 0 && $.errorMessage === "" ? (p(), _(Ye, {
|
|
1344
|
+
key: 1,
|
|
1345
|
+
text: $.objectType,
|
|
1346
|
+
"additional-text": $.objectParentType,
|
|
1347
|
+
class: "cl-bg-grey-2 cl-mt-1"
|
|
1348
|
+
}, null, 8, ["text", "additional-text"])) : z("", !0),
|
|
1349
|
+
$.results !== null && ((h = $.results) == null ? void 0 : h.length) === 0 && r.value.trim() !== "" && $.canCreateNewObject === !1 && $.errorMessage === "" ? (p(), _(Ye, {
|
|
1350
|
+
key: 2,
|
|
1351
|
+
text: g(n)("comboBox.noResults", { value: r.value })
|
|
1352
|
+
}, null, 8, ["text"])) : z("", !0),
|
|
1353
|
+
$.errorMessage !== "" ? (p(), _(Ye, {
|
|
1354
|
+
key: 3,
|
|
1355
|
+
class: "!cl-bg-danger-light cl-border-danger-light cl-rounded cl-text-danger-dark",
|
|
1356
|
+
text: g(n)("comboBox.errorMessage", { error: $.errorMessage })
|
|
1357
|
+
}, null, 8, ["text"])) : z("", !0),
|
|
1358
|
+
a.value ? (p(), _(ql, {
|
|
1359
|
+
key: 4,
|
|
1360
|
+
"is-create-new-option": !0,
|
|
1361
|
+
text: g(n)("comboBox.addPrompt", { value: r.value, object: $.objectType }),
|
|
1362
|
+
index: -1,
|
|
1371
1363
|
"selected-index": u.value,
|
|
1372
|
-
|
|
1364
|
+
class: "cl-px-2",
|
|
1365
|
+
onCreateObject: b,
|
|
1373
1366
|
onOptionHighlighted: ee
|
|
1374
|
-
}, null, 8, ["
|
|
1375
|
-
|
|
1367
|
+
}, null, 8, ["text", "selected-index"])) : z("", !0),
|
|
1368
|
+
$.errorMessage === "" && $.results !== null ? (p(), w("div", Yo, [
|
|
1369
|
+
(p(!0), w(J, null, ue($.results, (m, q) => (p(), _(ql, {
|
|
1370
|
+
key: q,
|
|
1371
|
+
option: m,
|
|
1372
|
+
index: q,
|
|
1373
|
+
class: "cl-px-2",
|
|
1374
|
+
"selected-index": u.value,
|
|
1375
|
+
onSelectObject: d,
|
|
1376
|
+
onOptionHighlighted: ee
|
|
1377
|
+
}, null, 8, ["option", "index", "selected-index"]))), 128))
|
|
1378
|
+
])) : z("", !0)
|
|
1379
|
+
], 64))
|
|
1376
1380
|
], 40, Wo);
|
|
1377
1381
|
};
|
|
1378
1382
|
}
|
|
1379
|
-
}),
|
|
1383
|
+
}), Xo = { class: "cl-flex" }, ea = { class: "cl-inline-block cl-w-full" }, la = /* @__PURE__ */ v("span", null, null, -1), ta = { class: "cl-pointer-events-none cl-relative cl-top-0.5" }, oa = { class: "cl-absolute cl-flex cl-float-right cl-font-semibold cl-mt-2 cl-right-2 cl-text-danger-default cl-text-sm cl-z-10" }, aa = ["disabled"], na = ["disabled"], ra = { class: "cl-min-h-[16rem] cl-mx-4" }, ia = { class: "cl-p-2 cl-text-right cl-w-full" }, sa = /* @__PURE__ */ K({
|
|
1380
1384
|
__name: "cl-ui-combo-box",
|
|
1381
1385
|
props: {
|
|
1382
1386
|
loading: { type: Boolean, default: !1 },
|
|
@@ -1501,27 +1505,28 @@ const Po = /* @__PURE__ */ v("div", { tabindex: "0" }, null, -1), zo = {
|
|
|
1501
1505
|
ref: j,
|
|
1502
1506
|
class: "cl-relative"
|
|
1503
1507
|
}, [
|
|
1504
|
-
v("div",
|
|
1505
|
-
v("div",
|
|
1508
|
+
v("div", Xo, [
|
|
1509
|
+
v("div", ea, [
|
|
1506
1510
|
N(Ne, {
|
|
1507
1511
|
modelValue: d.value,
|
|
1508
1512
|
"onUpdate:modelValue": L[0] || (L[0] = (Y) => d.value = Y),
|
|
1509
|
-
class: B(["cl-box-border cl-font-light cl-mb-
|
|
1513
|
+
class: B(["cl-box-border cl-font-light cl-mb-0 cl-p-2 cl-placeholder-grey-3 cl-rounded-r-none cl-text-sm", {
|
|
1510
1514
|
"cl-cursor-pointer": C.disabled === !1
|
|
1511
1515
|
}]),
|
|
1512
1516
|
placeholder: r.value,
|
|
1517
|
+
disabled: C.disabled,
|
|
1513
1518
|
onFocus: L[1] || (L[1] = (Y) => {
|
|
1514
1519
|
E(), C.$emit("focus");
|
|
1515
1520
|
})
|
|
1516
1521
|
}, {
|
|
1517
1522
|
default: H(() => [
|
|
1518
|
-
|
|
1523
|
+
la
|
|
1519
1524
|
]),
|
|
1520
1525
|
_: 1
|
|
1521
|
-
}, 8, ["modelValue", "class", "placeholder"])
|
|
1526
|
+
}, 8, ["modelValue", "class", "placeholder", "disabled"])
|
|
1522
1527
|
]),
|
|
1523
|
-
|
|
1524
|
-
v("div",
|
|
1528
|
+
X(v("div", ta, [
|
|
1529
|
+
v("div", oa, [
|
|
1525
1530
|
pe(I(g(u)("comboBox.required")) + " ", 1),
|
|
1526
1531
|
N(g(Z), {
|
|
1527
1532
|
class: "cl-ml-1 cl-mt-1",
|
|
@@ -1529,40 +1534,42 @@ const Po = /* @__PURE__ */ v("div", { tabindex: "0" }, null, -1), zo = {
|
|
|
1529
1534
|
})
|
|
1530
1535
|
])
|
|
1531
1536
|
], 512), [
|
|
1532
|
-
[
|
|
1537
|
+
[ae, C.required && C.disabled === !1 && C.currentObject === null]
|
|
1533
1538
|
]),
|
|
1534
1539
|
s.value ? (p(), w("div", {
|
|
1535
1540
|
key: 1,
|
|
1536
|
-
class: B(["cl-
|
|
1537
|
-
"cl-cursor-default": C.disabled,
|
|
1538
|
-
"cl-cursor-pointer": C.disabled === !1
|
|
1541
|
+
class: B(["cl-border cl-border-grey-2 cl-border-l-0 cl-float-right cl-rounded cl-rounded-l-none cl-text-grey-3 cl-transition-colors cl-w-[27px]", {
|
|
1542
|
+
"cl-cursor-default cl-bg-off-white": C.disabled,
|
|
1543
|
+
"cl-cursor-pointer hover:cl-bg-link-light hover:cl-opacity-90 hover:cl-text-white cl-bg-white": C.disabled === !1
|
|
1539
1544
|
}]),
|
|
1545
|
+
disabled: C.disabled,
|
|
1540
1546
|
onClick: L[3] || (L[3] = (Y) => E(!1))
|
|
1541
1547
|
}, [
|
|
1542
1548
|
N(g(Z), {
|
|
1543
1549
|
icon: "ph:caret-up-bold",
|
|
1544
1550
|
class: "cl-ml-[4px] cl-mt-[12px]"
|
|
1545
1551
|
})
|
|
1546
|
-
],
|
|
1552
|
+
], 10, na)) : (p(), w("div", {
|
|
1547
1553
|
key: 0,
|
|
1548
|
-
class: B(["cl-
|
|
1549
|
-
"cl-cursor-default": C.disabled,
|
|
1550
|
-
"cl-cursor-pointer": C.disabled === !1
|
|
1554
|
+
class: B(["cl-border cl-border-grey-2 cl-border-l-0 cl-float-right cl-rounded cl-rounded-l-none cl-text-grey-3 cl-transition-colors cl-w-[27px]", {
|
|
1555
|
+
"cl-cursor-default cl-bg-off-white": C.disabled,
|
|
1556
|
+
"cl-cursor-pointer hover:cl-bg-link-light hover:cl-opacity-90 hover:cl-text-white cl-bg-white": C.disabled === !1
|
|
1551
1557
|
}]),
|
|
1558
|
+
disabled: C.disabled,
|
|
1552
1559
|
onClick: L[2] || (L[2] = (Y) => E(!0))
|
|
1553
1560
|
}, [
|
|
1554
1561
|
N(g(Z), {
|
|
1555
1562
|
icon: "ph:caret-down-bold",
|
|
1556
1563
|
class: "cl-ml-[4px] cl-mt-[12px]"
|
|
1557
1564
|
})
|
|
1558
|
-
],
|
|
1565
|
+
], 10, aa))
|
|
1559
1566
|
]),
|
|
1560
1567
|
N(Xl, { size: "small" }, {
|
|
1561
1568
|
title: H(() => [
|
|
1562
1569
|
pe(I(g(u)("comboBox.createTitle", { object: C.objectType })), 1)
|
|
1563
1570
|
]),
|
|
1564
1571
|
trigger: H(({ open: Y }) => [
|
|
1565
|
-
|
|
1572
|
+
X(N(Jo, {
|
|
1566
1573
|
"can-create-new-object": C.canCreateNewObject,
|
|
1567
1574
|
"can-clear-selected-object": C.canClearSelectedObject,
|
|
1568
1575
|
loading: C.loading,
|
|
@@ -1582,11 +1589,11 @@ const Po = /* @__PURE__ */ v("div", { tabindex: "0" }, null, -1), zo = {
|
|
|
1582
1589
|
onSearch: V,
|
|
1583
1590
|
onHideDropdown: L[4] || (L[4] = (ie) => E(!1))
|
|
1584
1591
|
}, null, 8, ["can-create-new-object", "can-clear-selected-object", "loading", "results", "object-type", "object-parent-type", "error-message", "current-object-name", "is-visible", "class", "search-hint", "onCreateObject"]), [
|
|
1585
|
-
[
|
|
1592
|
+
[ae, s.value]
|
|
1586
1593
|
])
|
|
1587
1594
|
]),
|
|
1588
1595
|
footer: H(({ close: Y }) => [
|
|
1589
|
-
v("div",
|
|
1596
|
+
v("div", ia, [
|
|
1590
1597
|
N(ye, {
|
|
1591
1598
|
class: "cl-mr-3",
|
|
1592
1599
|
colour: "default",
|
|
@@ -1614,7 +1621,7 @@ const Po = /* @__PURE__ */ v("div", { tabindex: "0" }, null, -1), zo = {
|
|
|
1614
1621
|
])
|
|
1615
1622
|
]),
|
|
1616
1623
|
default: H(() => [
|
|
1617
|
-
v("div",
|
|
1624
|
+
v("div", ra, [
|
|
1618
1625
|
C.objectParentType ? (p(), _(W, {
|
|
1619
1626
|
key: 0,
|
|
1620
1627
|
"current-object": c.value,
|
|
@@ -1648,35 +1655,35 @@ const Po = /* @__PURE__ */ v("div", { tabindex: "0" }, null, -1), zo = {
|
|
|
1648
1655
|
};
|
|
1649
1656
|
}
|
|
1650
1657
|
});
|
|
1651
|
-
function
|
|
1658
|
+
function ca(o) {
|
|
1652
1659
|
return typeof o.id == "number" && typeof o.name == "string";
|
|
1653
1660
|
}
|
|
1654
|
-
function
|
|
1661
|
+
function ua(o) {
|
|
1655
1662
|
return typeof o.name == "string";
|
|
1656
1663
|
}
|
|
1657
|
-
const
|
|
1664
|
+
const da = {}, fa = { class: "cl-flex cl-flex-wrap cl-left-0 cl-mt-4 cl-w-full" }, pa = {
|
|
1658
1665
|
key: 0,
|
|
1659
1666
|
class: "cl-w-full"
|
|
1660
|
-
},
|
|
1667
|
+
}, ma = {
|
|
1661
1668
|
key: 1,
|
|
1662
1669
|
class: "cl-leading-10 cl-text-sm cl-w-full"
|
|
1663
|
-
},
|
|
1664
|
-
function
|
|
1665
|
-
return p(), w("div",
|
|
1666
|
-
o.$slots.default ? (p(), w("div",
|
|
1670
|
+
}, va = { class: "cl-float-left" }, ha = { class: "cl-float-right" };
|
|
1671
|
+
function ga(o, e) {
|
|
1672
|
+
return p(), w("div", fa, [
|
|
1673
|
+
o.$slots.default ? (p(), w("div", pa, [
|
|
1667
1674
|
U(o.$slots, "default")
|
|
1668
1675
|
])) : z("", !0),
|
|
1669
|
-
o.$slots.left || o.$slots.right ? (p(), w("div",
|
|
1670
|
-
v("span",
|
|
1676
|
+
o.$slots.left || o.$slots.right ? (p(), w("div", ma, [
|
|
1677
|
+
v("span", va, [
|
|
1671
1678
|
U(o.$slots, "left")
|
|
1672
1679
|
]),
|
|
1673
|
-
v("span",
|
|
1680
|
+
v("span", ha, [
|
|
1674
1681
|
U(o.$slots, "right")
|
|
1675
1682
|
])
|
|
1676
1683
|
])) : z("", !0)
|
|
1677
1684
|
]);
|
|
1678
1685
|
}
|
|
1679
|
-
const
|
|
1686
|
+
const ba = /* @__PURE__ */ Se(da, [["render", ga]]), et = Symbol();
|
|
1680
1687
|
function Je(o) {
|
|
1681
1688
|
const e = o.type !== "slot" || o.slotType !== void 0 && o.field !== void 0, t = o.sortable ?? !0;
|
|
1682
1689
|
return e && t;
|
|
@@ -1685,16 +1692,16 @@ function $l(o) {
|
|
|
1685
1692
|
const e = o.type !== "slot" || o.slotType !== void 0 && o.field !== void 0, t = o.filterable ?? !0;
|
|
1686
1693
|
return e && t;
|
|
1687
1694
|
}
|
|
1688
|
-
function
|
|
1695
|
+
function ya(o) {
|
|
1689
1696
|
return o.some((e) => Je(e));
|
|
1690
1697
|
}
|
|
1691
1698
|
function Il(o) {
|
|
1692
1699
|
return o.some((e) => $l(e));
|
|
1693
1700
|
}
|
|
1694
|
-
const
|
|
1701
|
+
const wa = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, ka = { class: "cl-gap-1 cl-grid cl-grid-cols-2 cl-justify-end cl-mb-2 lg:cl-flex lg:cl-gap-2" }, $a = { class: "cl-basis-0 cl-col-span-2 cl-flex-grow" }, Sa = /* @__PURE__ */ v("hr", { class: "cl-block cl-border-grey-3 cl-col-span-2 cl-my-4 lg:cl-hidden" }, null, -1), Ta = {
|
|
1695
1702
|
key: 1,
|
|
1696
1703
|
class: "cl-hidden lg:cl-block"
|
|
1697
|
-
},
|
|
1704
|
+
}, Ca = { class: "cl-block lg:cl-hidden" }, Oa = /* @__PURE__ */ K({
|
|
1698
1705
|
__name: "cl-ui-grid-action-row",
|
|
1699
1706
|
props: {
|
|
1700
1707
|
editMode: { type: Boolean },
|
|
@@ -1707,44 +1714,44 @@ const ga = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, ba = { class: "cl-gap-1
|
|
|
1707
1714
|
emits: ["update:edit-mode", "update:filterPanelOpen", "clear-filters"],
|
|
1708
1715
|
setup(o) {
|
|
1709
1716
|
const e = o, { t } = fe(), l = A(() => e.request.filters.some((n) => n.filterValue !== ""));
|
|
1710
|
-
return (n, r) => (p(), w(
|
|
1711
|
-
v("div",
|
|
1717
|
+
return (n, r) => (p(), w(J, null, [
|
|
1718
|
+
v("div", wa, [
|
|
1712
1719
|
v("strong", null, I(g(t)("grid.gridTools")), 1)
|
|
1713
1720
|
]),
|
|
1714
|
-
v("div",
|
|
1715
|
-
v("div",
|
|
1721
|
+
v("div", ka, [
|
|
1722
|
+
v("div", $a, [
|
|
1716
1723
|
U(n.$slots, "additional-grid-actions", me(he({
|
|
1717
1724
|
loading: n.loading,
|
|
1718
1725
|
editMode: n.editMode
|
|
1719
1726
|
})))
|
|
1720
1727
|
]),
|
|
1721
|
-
|
|
1728
|
+
Sa,
|
|
1722
1729
|
n.columns.some((a) => a.editable) ? (p(), _(ye, {
|
|
1723
1730
|
key: 0,
|
|
1724
1731
|
size: "small",
|
|
1725
1732
|
colour: "default",
|
|
1726
1733
|
disabled: n.loading,
|
|
1727
|
-
onClick: r[0] || (r[0] =
|
|
1734
|
+
onClick: r[0] || (r[0] = oe((a) => n.$emit("update:edit-mode", !n.editMode), ["prevent"]))
|
|
1728
1735
|
}, {
|
|
1729
1736
|
default: H(() => [
|
|
1730
|
-
n.editMode ? (p(), w(
|
|
1737
|
+
n.editMode ? (p(), w(J, { key: 0 }, [
|
|
1731
1738
|
pe(I(g(t)("grid.finishEditing")), 1)
|
|
1732
|
-
], 64)) : (p(), w(
|
|
1739
|
+
], 64)) : (p(), w(J, { key: 1 }, [
|
|
1733
1740
|
pe(I(g(t)("grid.editData")), 1)
|
|
1734
1741
|
], 64))
|
|
1735
1742
|
]),
|
|
1736
1743
|
_: 1
|
|
1737
1744
|
}, 8, ["disabled"])) : z("", !0),
|
|
1738
|
-
n.options.hideViewManager ? z("", !0) : (p(), w("div",
|
|
1745
|
+
n.options.hideViewManager ? z("", !0) : (p(), w("div", Ta, [
|
|
1739
1746
|
U(n.$slots, "view-manager")
|
|
1740
1747
|
])),
|
|
1741
|
-
g(Il)(n.columns) || g(
|
|
1742
|
-
v("div",
|
|
1748
|
+
g(Il)(n.columns) || g(ya)(n.columns) ? (p(), w(J, { key: 2 }, [
|
|
1749
|
+
v("div", Ca, [
|
|
1743
1750
|
N(ye, {
|
|
1744
1751
|
class: "cl-w-full",
|
|
1745
1752
|
size: "small",
|
|
1746
1753
|
disabled: n.loading,
|
|
1747
|
-
onClick: r[1] || (r[1] =
|
|
1754
|
+
onClick: r[1] || (r[1] = oe((a) => n.$emit("update:filterPanelOpen", !n.filterPanelOpen), ["prevent"]))
|
|
1748
1755
|
}, {
|
|
1749
1756
|
default: H(() => [
|
|
1750
1757
|
pe(I(g(t)("grid.modifyFilters")), 1)
|
|
@@ -1760,7 +1767,7 @@ const ga = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, ba = { class: "cl-gap-1
|
|
|
1760
1767
|
class: B({
|
|
1761
1768
|
"cl-col-span-2": n.columns.some((a) => a.editable)
|
|
1762
1769
|
}),
|
|
1763
|
-
onClick: r[2] || (r[2] =
|
|
1770
|
+
onClick: r[2] || (r[2] = oe((a) => n.$emit("clear-filters"), ["prevent"]))
|
|
1764
1771
|
}, {
|
|
1765
1772
|
default: H(() => [
|
|
1766
1773
|
pe(I(g(t)("grid.clearFilters")), 1)
|
|
@@ -1771,7 +1778,7 @@ const ga = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, ba = { class: "cl-gap-1
|
|
|
1771
1778
|
])
|
|
1772
1779
|
], 64));
|
|
1773
1780
|
}
|
|
1774
|
-
}),
|
|
1781
|
+
}), Ea = ["required", "disabled"], Fa = /* @__PURE__ */ K({
|
|
1775
1782
|
inheritAttrs: !1,
|
|
1776
1783
|
__name: "cl-ui-input-checkbox",
|
|
1777
1784
|
props: /* @__PURE__ */ Oe({
|
|
@@ -1799,7 +1806,7 @@ const ga = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, ba = { class: "cl-gap-1
|
|
|
1799
1806
|
errors: a.errors
|
|
1800
1807
|
}, Le({
|
|
1801
1808
|
default: H(() => [
|
|
1802
|
-
|
|
1809
|
+
X(v("input", ce({
|
|
1803
1810
|
ref_key: "inputRef",
|
|
1804
1811
|
ref: r
|
|
1805
1812
|
}, a.$attrs, {
|
|
@@ -1808,12 +1815,12 @@ const ga = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, ba = { class: "cl-gap-1
|
|
|
1808
1815
|
type: "checkbox",
|
|
1809
1816
|
required: a.required,
|
|
1810
1817
|
disabled: a.disabled,
|
|
1811
|
-
onKeydown: u[1] || (u[1] = ge(
|
|
1818
|
+
onKeydown: u[1] || (u[1] = ge(oe((s) => {
|
|
1812
1819
|
l.value = !l.value;
|
|
1813
1820
|
}, ["stop", "prevent"]), ["enter"])),
|
|
1814
1821
|
onFocus: u[2] || (u[2] = (s) => n("focus")),
|
|
1815
1822
|
onBlur: u[3] || (u[3] = (s) => n("blur"))
|
|
1816
|
-
}), null, 16,
|
|
1823
|
+
}), null, 16, Ea), [
|
|
1817
1824
|
[dt, l.value]
|
|
1818
1825
|
])
|
|
1819
1826
|
]),
|
|
@@ -1828,18 +1835,18 @@ const ga = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, ba = { class: "cl-gap-1
|
|
|
1828
1835
|
} : void 0
|
|
1829
1836
|
]), 1032, ["show-required-asterisk", "errors"]));
|
|
1830
1837
|
}
|
|
1831
|
-
}), lt = /* @__PURE__ */ Se(
|
|
1838
|
+
}), lt = /* @__PURE__ */ Se(Fa, [["__scopeId", "data-v-d8bbd8db"]]);
|
|
1832
1839
|
var re = /* @__PURE__ */ ((o) => (o.CURRENCY = "currency", o.PERCENTAGE = "percentage", o.INTEGER = "integer", o.DECIMAL = "decimal", o.MULTIPLIER = "multiplier", o))(re || {}), de = /* @__PURE__ */ ((o) => (o.SHORT_DATE = "short-date", o.SHORT_DATETIME = "short-datetime", o.DATE = "date", o.DATETIME = "datetime", o.LONG_DATE = "long-date", o.LONG_DATETIME = "long-datetime", o.TIME = "time", o.MONTH_YEAR = "month-year", o))(de || {});
|
|
1833
|
-
const
|
|
1840
|
+
const Da = {
|
|
1834
1841
|
key: 3,
|
|
1835
1842
|
class: "cl-inline-block cl-whitespace-nowrap"
|
|
1836
|
-
},
|
|
1843
|
+
}, Na = {
|
|
1837
1844
|
key: 4,
|
|
1838
1845
|
class: "cl-inline-block cl-whitespace-nowrap"
|
|
1839
|
-
},
|
|
1846
|
+
}, Aa = {
|
|
1840
1847
|
key: 5,
|
|
1841
1848
|
class: "cl-inline-block cl-whitespace-nowrap"
|
|
1842
|
-
},
|
|
1849
|
+
}, Va = ["innerHTML"], Rl = /* @__PURE__ */ K({
|
|
1843
1850
|
__name: "cl-ui-grid-cell-value",
|
|
1844
1851
|
props: {
|
|
1845
1852
|
data: {},
|
|
@@ -1892,22 +1899,22 @@ const Oa = {
|
|
|
1892
1899
|
class: "disabled:checked:cl-bg-primary-light disabled:checked:cl-border-primary-light",
|
|
1893
1900
|
"model-value": s.data[s.column.field],
|
|
1894
1901
|
disabled: !0
|
|
1895
|
-
}, null, 8, ["model-value"])) : (s.column.type === "date" || s.column.type === "datetime" || s.column.type === "dateRange") && s.column.field !== void 0 ? (p(), w(
|
|
1896
|
-
s.column.format !== void 0 ? (p(), w(
|
|
1902
|
+
}, null, 8, ["model-value"])) : (s.column.type === "date" || s.column.type === "datetime" || s.column.type === "dateRange") && s.column.field !== void 0 ? (p(), w(J, { key: 2 }, [
|
|
1903
|
+
s.column.format !== void 0 ? (p(), w(J, { key: 0 }, [
|
|
1897
1904
|
pe(I(a(s.data[s.column.field], s.column.format)), 1)
|
|
1898
|
-
], 64)) : s.column.type === "date" || s.column.type === "dateRange" ? (p(), w(
|
|
1905
|
+
], 64)) : s.column.type === "date" || s.column.type === "dateRange" ? (p(), w(J, { key: 1 }, [
|
|
1899
1906
|
pe(I(a(s.data[s.column.field], g(de).DATE)), 1)
|
|
1900
|
-
], 64)) : (p(), w(
|
|
1907
|
+
], 64)) : (p(), w(J, { key: 2 }, [
|
|
1901
1908
|
pe(I(a(s.data[s.column.field], g(de).DATETIME)), 1)
|
|
1902
1909
|
], 64))
|
|
1903
|
-
], 64)) : s.column.type === "list" && s.column.field !== void 0 && s.column.listEntries !== void 0 ? (p(), w("span",
|
|
1910
|
+
], 64)) : s.column.type === "list" && s.column.field !== void 0 && s.column.listEntries !== void 0 ? (p(), w("span", Da, I(g(l)(((c = s.column.listEntries.find((d) => d.value === s.data[s.column.field])) == null ? void 0 : c.translationKey) ?? "")), 1)) : s.column.type === "number" && s.column.field !== void 0 ? (p(), w("span", Na, I(g(r)(s.data[s.column.field], s.column.format ?? g(re).DECIMAL)), 1)) : s.column.field !== void 0 ? (p(), w("span", Aa, [
|
|
1904
1911
|
v("span", {
|
|
1905
1912
|
innerHTML: u()
|
|
1906
|
-
}, null, 8,
|
|
1913
|
+
}, null, 8, Va)
|
|
1907
1914
|
])) : z("", !0);
|
|
1908
1915
|
};
|
|
1909
1916
|
}
|
|
1910
|
-
}),
|
|
1917
|
+
}), qa = { class: "cl-font-semibold lg:cl-hidden" }, Ia = /* @__PURE__ */ K({
|
|
1911
1918
|
__name: "cl-ui-grid-cell",
|
|
1912
1919
|
props: {
|
|
1913
1920
|
data: {},
|
|
@@ -1935,7 +1942,7 @@ const Oa = {
|
|
|
1935
1942
|
"cl-bg-link-lighter": a.value
|
|
1936
1943
|
}])
|
|
1937
1944
|
}, [
|
|
1938
|
-
v("span",
|
|
1945
|
+
v("span", qa, I(s.column.caption), 1),
|
|
1939
1946
|
s.editMode && s.column.editable === !0 ? U(s.$slots, `${s.column.name}Edit`, me(ce({ key: 0 }, {
|
|
1940
1947
|
cellFocused: () => l("focus"),
|
|
1941
1948
|
column: s.column,
|
|
@@ -1973,7 +1980,7 @@ const Oa = {
|
|
|
1973
1980
|
}, 1032, ["column", "data", "time-zone", "search-value"]))
|
|
1974
1981
|
], 2));
|
|
1975
1982
|
}
|
|
1976
|
-
}),
|
|
1983
|
+
}), Ra = /* @__PURE__ */ K({
|
|
1977
1984
|
__name: "cl-ui-grid-row",
|
|
1978
1985
|
props: {
|
|
1979
1986
|
data: {},
|
|
@@ -1985,7 +1992,7 @@ const Oa = {
|
|
|
1985
1992
|
emits: ["cell-focus", "cell-edit", "cell-undo"],
|
|
1986
1993
|
setup(o) {
|
|
1987
1994
|
return (e, t) => (p(), w("tr", null, [
|
|
1988
|
-
(p(!0), w(
|
|
1995
|
+
(p(!0), w(J, null, ue(e.columns, (l, n) => (p(), _(Ia, {
|
|
1989
1996
|
key: n,
|
|
1990
1997
|
data: e.data,
|
|
1991
1998
|
column: l,
|
|
@@ -2005,10 +2012,10 @@ const Oa = {
|
|
|
2005
2012
|
]), 1032, ["data", "column", "time-zone", "search-value", "edit-mode", "onEdit", "onUndo"]))), 128))
|
|
2006
2013
|
]));
|
|
2007
2014
|
}
|
|
2008
|
-
}),
|
|
2015
|
+
}), Ma = { key: 1 }, La = ["colspan"], ja = { class: "cl-flex cl-flex-wrap cl-justify-center cl-text-center cl-text-sm cl-w-full" }, Pa = { class: "cl-mt-6 cl-w-full" }, za = {
|
|
2009
2016
|
key: 0,
|
|
2010
2017
|
class: "cl-mt-4"
|
|
2011
|
-
},
|
|
2018
|
+
}, Ba = { class: "cl-mb-2 cl-w-full" }, Ua = /* @__PURE__ */ K({
|
|
2012
2019
|
__name: "cl-ui-grid-body",
|
|
2013
2020
|
props: {
|
|
2014
2021
|
columns: {},
|
|
@@ -2072,7 +2079,7 @@ const Oa = {
|
|
|
2072
2079
|
}), (y, F) => {
|
|
2073
2080
|
var D;
|
|
2074
2081
|
return p(), w("tbody", null, [
|
|
2075
|
-
y.data && ((D = y.data.results) != null && D.length) ? (p(!0), w(
|
|
2082
|
+
y.data && ((D = y.data.results) != null && D.length) ? (p(!0), w(J, { key: 0 }, ue(y.data.results, (O, E) => (p(), _(Ra, {
|
|
2076
2083
|
key: E,
|
|
2077
2084
|
data: O,
|
|
2078
2085
|
columns: y.columns,
|
|
@@ -2102,18 +2109,18 @@ const Oa = {
|
|
|
2102
2109
|
U(y.$slots, x, ce(ee, { disabled: y.loading }))
|
|
2103
2110
|
])
|
|
2104
2111
|
}))
|
|
2105
|
-
]), 1032, ["data", "columns", "time-zone", "search-value", "edit-mode", "class", "onClick", "onCellFocus", "onCellEdit"]))), 128)) : y.loading ? z("", !0) : (p(), w("tr",
|
|
2112
|
+
]), 1032, ["data", "columns", "time-zone", "search-value", "edit-mode", "class", "onClick", "onCellFocus", "onCellEdit"]))), 128)) : y.loading ? z("", !0) : (p(), w("tr", Ma, [
|
|
2106
2113
|
v("td", {
|
|
2107
2114
|
colspan: y.columns.length
|
|
2108
2115
|
}, [
|
|
2109
|
-
v("div",
|
|
2110
|
-
v("strong",
|
|
2111
|
-
y.request.filters.some((O) => O.filterValue !== "") ? (p(), w("div",
|
|
2112
|
-
v("div",
|
|
2116
|
+
v("div", ja, [
|
|
2117
|
+
v("strong", Pa, I(g(n)("grid.noData")), 1),
|
|
2118
|
+
y.request.filters.some((O) => O.filterValue !== "") ? (p(), w("div", za, [
|
|
2119
|
+
v("div", Ba, I(g(n)("grid.noDataFiltersPresent")), 1),
|
|
2113
2120
|
N(ye, {
|
|
2114
2121
|
size: "small",
|
|
2115
2122
|
colour: "danger",
|
|
2116
|
-
onClick: F[0] || (F[0] =
|
|
2123
|
+
onClick: F[0] || (F[0] = oe((O) => y.$emit("clear-filters"), ["prevent"]))
|
|
2117
2124
|
}, {
|
|
2118
2125
|
default: H(() => [
|
|
2119
2126
|
pe(I(g(n)("grid.clearFilters")), 1)
|
|
@@ -2122,12 +2129,12 @@ const Oa = {
|
|
|
2122
2129
|
})
|
|
2123
2130
|
])) : z("", !0)
|
|
2124
2131
|
])
|
|
2125
|
-
], 8,
|
|
2132
|
+
], 8, La)
|
|
2126
2133
|
]))
|
|
2127
2134
|
]);
|
|
2128
2135
|
};
|
|
2129
2136
|
}
|
|
2130
|
-
}),
|
|
2137
|
+
}), xa = {
|
|
2131
2138
|
"en-GB": {
|
|
2132
2139
|
comboBox: {
|
|
2133
2140
|
emptyHintText: "Choose a {object}",
|
|
@@ -2225,7 +2232,7 @@ const Oa = {
|
|
|
2225
2232
|
quickDatesHeader: "Quick Dates"
|
|
2226
2233
|
}
|
|
2227
2234
|
}
|
|
2228
|
-
},
|
|
2235
|
+
}, Ha = {
|
|
2229
2236
|
"en-GB": {
|
|
2230
2237
|
[re.PERCENTAGE]: {
|
|
2231
2238
|
style: "percent",
|
|
@@ -2248,7 +2255,7 @@ const Oa = {
|
|
|
2248
2255
|
minimumFractionDigits: 2
|
|
2249
2256
|
}
|
|
2250
2257
|
}
|
|
2251
|
-
},
|
|
2258
|
+
}, Ga = {
|
|
2252
2259
|
"en-GB": {
|
|
2253
2260
|
[de.SHORT_DATE]: {
|
|
2254
2261
|
day: "numeric",
|
|
@@ -2298,27 +2305,27 @@ const Oa = {
|
|
|
2298
2305
|
}, we = qt({
|
|
2299
2306
|
locale: "en-GB",
|
|
2300
2307
|
fallbackLocale: "en-GB",
|
|
2301
|
-
messages:
|
|
2302
|
-
numberFormats:
|
|
2303
|
-
datetimeFormats:
|
|
2308
|
+
messages: xa,
|
|
2309
|
+
numberFormats: Ha,
|
|
2310
|
+
datetimeFormats: Ga,
|
|
2304
2311
|
useScope: "global",
|
|
2305
2312
|
missingWarn: !1,
|
|
2306
2313
|
fallbackWarn: !1,
|
|
2307
2314
|
warnHtmlMessage: !1
|
|
2308
2315
|
});
|
|
2309
|
-
function
|
|
2316
|
+
function Hs(o, e) {
|
|
2310
2317
|
return we.global.mergeLocaleMessage(o, e), je();
|
|
2311
2318
|
}
|
|
2312
|
-
function
|
|
2319
|
+
function Gs(o, e) {
|
|
2313
2320
|
return we.global.mergeNumberFormat(o, e), je();
|
|
2314
2321
|
}
|
|
2315
|
-
function
|
|
2322
|
+
function Ws(o, e) {
|
|
2316
2323
|
return we.global.mergeDateTimeFormat(o, e), je();
|
|
2317
2324
|
}
|
|
2318
|
-
function
|
|
2325
|
+
function Ks(o) {
|
|
2319
2326
|
return we.global.locale.value = o, je();
|
|
2320
2327
|
}
|
|
2321
|
-
const { n:
|
|
2328
|
+
const { n: Wa, locale: Ka, getNumberFormat: Za } = we.global, Sl = re.DECIMAL;
|
|
2322
2329
|
function De(o) {
|
|
2323
2330
|
return He(o, re.DECIMAL, { additionalOptions: {
|
|
2324
2331
|
minimumFractionDigits: 0,
|
|
@@ -2344,7 +2351,7 @@ function He(o, e, t) {
|
|
|
2344
2351
|
}
|
|
2345
2352
|
function tt(o, e, t) {
|
|
2346
2353
|
if (cl(e)) {
|
|
2347
|
-
const l =
|
|
2354
|
+
const l = _a(o, e);
|
|
2348
2355
|
return Ml(l ?? o, Sl, t);
|
|
2349
2356
|
} else
|
|
2350
2357
|
return Ml(o, Tl(e), t);
|
|
@@ -2352,7 +2359,7 @@ function tt(o, e, t) {
|
|
|
2352
2359
|
function ot(o, e) {
|
|
2353
2360
|
return cl(o) ? We(Sl, e) : We(Tl(o), e);
|
|
2354
2361
|
}
|
|
2355
|
-
function
|
|
2362
|
+
function _a(o, e) {
|
|
2356
2363
|
let t = null;
|
|
2357
2364
|
o = `!${o}!`;
|
|
2358
2365
|
const l = `!${e}!`.split("{0}");
|
|
@@ -2402,7 +2409,7 @@ function Fe(o, e, ...t) {
|
|
|
2402
2409
|
}
|
|
2403
2410
|
function Ll(o, e) {
|
|
2404
2411
|
try {
|
|
2405
|
-
return
|
|
2412
|
+
return Wa(o, e);
|
|
2406
2413
|
} catch (t) {
|
|
2407
2414
|
return console.error(t), null;
|
|
2408
2415
|
}
|
|
@@ -2415,7 +2422,7 @@ function at(o) {
|
|
|
2415
2422
|
}
|
|
2416
2423
|
}
|
|
2417
2424
|
function We(o, e) {
|
|
2418
|
-
const t = Cl(e == null ? void 0 : e.locale) || g(
|
|
2425
|
+
const t = Cl(e == null ? void 0 : e.locale) || g(Ka), l = Za(t), n = ve(Cl(e == null ? void 0 : e.additionalOptions) ?? {});
|
|
2419
2426
|
return {
|
|
2420
2427
|
...l[o],
|
|
2421
2428
|
locale: t,
|
|
@@ -2424,15 +2431,15 @@ function We(o, e) {
|
|
|
2424
2431
|
};
|
|
2425
2432
|
}
|
|
2426
2433
|
function Tl(o) {
|
|
2427
|
-
return
|
|
2434
|
+
return Qa(o) ? o : re.CURRENCY;
|
|
2428
2435
|
}
|
|
2429
2436
|
function cl(o) {
|
|
2430
2437
|
return o.includes("{0}");
|
|
2431
2438
|
}
|
|
2432
|
-
function
|
|
2439
|
+
function Qa(o) {
|
|
2433
2440
|
return !cl(o) && o !== "currency-without-symbol";
|
|
2434
2441
|
}
|
|
2435
|
-
function
|
|
2442
|
+
function Ya(o) {
|
|
2436
2443
|
if (o.startsWith("ClUi"))
|
|
2437
2444
|
return {
|
|
2438
2445
|
name: `clUi${o.slice(4)}`,
|
|
@@ -2444,11 +2451,11 @@ function Za(o) {
|
|
|
2444
2451
|
from: "@iconify/vue"
|
|
2445
2452
|
};
|
|
2446
2453
|
}
|
|
2447
|
-
function
|
|
2448
|
-
return
|
|
2454
|
+
function Zs() {
|
|
2455
|
+
return Ya;
|
|
2449
2456
|
}
|
|
2450
2457
|
const { t: ke } = we.global;
|
|
2451
|
-
function
|
|
2458
|
+
function Ja(o, e, t, l, n) {
|
|
2452
2459
|
return new Promise((r) => {
|
|
2453
2460
|
let a = {
|
|
2454
2461
|
valid: !1,
|
|
@@ -2503,7 +2510,7 @@ function _a(o, e, t, l, n) {
|
|
|
2503
2510
|
r(a);
|
|
2504
2511
|
});
|
|
2505
2512
|
}
|
|
2506
|
-
function
|
|
2513
|
+
function Xa(o, e, t, l, n) {
|
|
2507
2514
|
return new Promise((r) => {
|
|
2508
2515
|
let a = {
|
|
2509
2516
|
valid: !1,
|
|
@@ -2558,13 +2565,13 @@ function Qa(o, e, t, l, n) {
|
|
|
2558
2565
|
r(a);
|
|
2559
2566
|
});
|
|
2560
2567
|
}
|
|
2561
|
-
function
|
|
2568
|
+
function en(o, e) {
|
|
2562
2569
|
return new Promise((t) => {
|
|
2563
2570
|
const l = e != null && e !== "" && e.toString().trim() !== "", n = $e(l, ke("input.valueIsRequired", { label: o }));
|
|
2564
2571
|
t(n);
|
|
2565
2572
|
});
|
|
2566
2573
|
}
|
|
2567
|
-
function
|
|
2574
|
+
function ln(o, e) {
|
|
2568
2575
|
return new Promise((t) => {
|
|
2569
2576
|
const n = e === "" || /[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?/.exec(e) !== null, r = $e(n, ke("input.valueNotValidEmail", { label: o }));
|
|
2570
2577
|
t(r);
|
|
@@ -2576,7 +2583,7 @@ function $e(o, e) {
|
|
|
2576
2583
|
message: o ? "" : e
|
|
2577
2584
|
};
|
|
2578
2585
|
}
|
|
2579
|
-
const
|
|
2586
|
+
const tn = ["value", "inputmode", "required", "disabled", "placeholder"], on = { class: "cl-absolute cl-flex-col cl-flex-nowrap cl-h-full cl-hidden cl-justify-between cl-py-0.5 cl-right-1 cl-text-xs cl-top-0 xl:cl-flex" }, an = ["disabled"], nn = ["disabled"], ul = /* @__PURE__ */ K({
|
|
2580
2587
|
inheritAttrs: !1,
|
|
2581
2588
|
__name: "cl-ui-input-number",
|
|
2582
2589
|
props: /* @__PURE__ */ Oe({
|
|
@@ -2680,36 +2687,36 @@ const Xa = ["value", "inputmode", "required", "disabled", "placeholder"], en = {
|
|
|
2680
2687
|
placeholder: m.placeholder ?? void 0,
|
|
2681
2688
|
onInput: q[0] || (q[0] = (T) => x.value = T.target.value),
|
|
2682
2689
|
onKeydown: [
|
|
2683
|
-
q[1] || (q[1] = ge(
|
|
2684
|
-
q[2] || (q[2] = ge(
|
|
2685
|
-
q[3] || (q[3] = ge(
|
|
2690
|
+
q[1] || (q[1] = ge(oe((T) => te(T.target.value, !0), ["stop", "prevent"]), ["enter"])),
|
|
2691
|
+
q[2] || (q[2] = ge(oe((T) => h(!0), ["stop", "prevent"]), ["down"])),
|
|
2692
|
+
q[3] || (q[3] = ge(oe((T) => h(!1), ["stop", "prevent"]), ["up"]))
|
|
2686
2693
|
]
|
|
2687
|
-
}), null, 16,
|
|
2688
|
-
|
|
2694
|
+
}), null, 16, tn)),
|
|
2695
|
+
X(v("div", on, [
|
|
2689
2696
|
v("button", {
|
|
2690
2697
|
class: "cl-bg-opacity-30 cl-bg-secondary-light cl-border cl-border-grey-3 cl-px-1 cl-rounded hover:cl-bg-opacity-20",
|
|
2691
2698
|
disabled: m.disabled,
|
|
2692
2699
|
onClick: q[4] || (q[4] = (T) => h(!1)),
|
|
2693
2700
|
onKeydown: [
|
|
2694
|
-
q[5] || (q[5] = ge(
|
|
2695
|
-
q[6] || (q[6] = ge(
|
|
2701
|
+
q[5] || (q[5] = ge(oe((T) => h(!0), ["stop", "prevent"]), ["down"])),
|
|
2702
|
+
q[6] || (q[6] = ge(oe((T) => h(!1), ["stop", "prevent"]), ["up"]))
|
|
2696
2703
|
]
|
|
2697
2704
|
}, [
|
|
2698
2705
|
N(M, { icon: "ph:caret-up-bold" })
|
|
2699
|
-
], 40,
|
|
2706
|
+
], 40, an),
|
|
2700
2707
|
v("button", {
|
|
2701
2708
|
class: "cl-bg-opacity-30 cl-bg-secondary-light cl-border cl-border-grey-3 cl-px-1 cl-rounded hover:cl-bg-opacity-20",
|
|
2702
2709
|
disabled: m.disabled,
|
|
2703
2710
|
onClick: q[7] || (q[7] = (T) => h(!0)),
|
|
2704
2711
|
onKeydown: [
|
|
2705
|
-
q[8] || (q[8] = ge(
|
|
2706
|
-
q[9] || (q[9] = ge(
|
|
2712
|
+
q[8] || (q[8] = ge(oe((T) => h(!0), ["stop", "prevent"]), ["down"])),
|
|
2713
|
+
q[9] || (q[9] = ge(oe((T) => h(!1), ["stop", "prevent"]), ["up"]))
|
|
2707
2714
|
]
|
|
2708
2715
|
}, [
|
|
2709
2716
|
N(M, { icon: "ph:caret-down-bold" })
|
|
2710
|
-
], 40,
|
|
2717
|
+
], 40, nn)
|
|
2711
2718
|
], 512), [
|
|
2712
|
-
[
|
|
2719
|
+
[ae, d.value && !m.disabled]
|
|
2713
2720
|
])
|
|
2714
2721
|
], 512)
|
|
2715
2722
|
]),
|
|
@@ -2725,10 +2732,10 @@ const Xa = ["value", "inputmode", "required", "disabled", "placeholder"], en = {
|
|
|
2725
2732
|
]), 1032, ["show-required-asterisk", "errors"]);
|
|
2726
2733
|
};
|
|
2727
2734
|
}
|
|
2728
|
-
}),
|
|
2735
|
+
}), rn = {
|
|
2729
2736
|
key: 0,
|
|
2730
2737
|
class: "cl-flex cl-flex-wrap cl-justify-end cl-mt-2 cl-w-full"
|
|
2731
|
-
},
|
|
2738
|
+
}, sn = { class: "cl-bg-off-white cl-border cl-border-grey-1 cl-flex cl-items-center cl-mb-2 cl-px-3 cl-rounded-lg cl-shadow-md cl-text-sm cl-w-full lg:cl-w-auto" }, cn = { class: "cl-text-grey-3 cl-w-max" }, un = /* @__PURE__ */ v("span", null, null, -1), dn = { class: "cl-bg-off-white cl-border cl-border-grey-1 cl-flex cl-flex-wrap cl-items-center cl-mb-2 cl-px-3 cl-py-2 cl-rounded-lg cl-shadow-md cl-text-sm cl-w-full lg:cl-ml-2 lg:cl-w-auto mb:cl-flex-nowrap" }, fn = { class: "cl-flex cl-flex-wrap cl-mb-2 cl-text-sm cl-w-full lg:cl-p-2 md:cl-mb-0 md:cl-w-auto" }, pn = { class: "cl-flex cl-flex-wrap cl-mb-2 cl-w-full lg:cl-mb-0 lg:cl-mr-2 lg:cl-w-auto" }, mn = { class: "cl-text-grey-3 cl-w-full lg:cl-mr-2 lg:cl-w-auto" }, vn = { class: "cl-flex cl-flex-wrap cl-text-sm mb:cl-flex-nowrap" }, hn = { class: "cl-pr-2" }, gn = ["onClick"], bn = { class: "cl-flex cl-flex-wrap cl-mb-2 cl-text-sm cl-w-full lg:cl-p-2 md:cl-mb-0 md:cl-w-auto" }, yn = { class: "cl-mb-2 cl-text-grey-3 cl-w-full lg:cl-mb-0 lg:cl-mr-2 lg:cl-w-auto" }, wn = ["onClick"], kn = { class: "cl-mb-2 cl-w-full lg:cl-p-2 md:cl-mb-0 md:cl-w-auto" }, $n = { class: "cl-block cl-mb-2 cl-text-grey-3 cl-w-full lg:cl-inline-block lg:cl-mb-0 lg:cl-mr-1 lg:cl-w-auto" }, Sn = { class: "cl-block lg:cl-inline-block" }, Tn = /* @__PURE__ */ K({
|
|
2732
2739
|
__name: "cl-ui-grid-footer",
|
|
2733
2740
|
props: {
|
|
2734
2741
|
request: {},
|
|
@@ -2767,9 +2774,9 @@ const Xa = ["value", "inputmode", "required", "disabled", "placeholder"], en = {
|
|
|
2767
2774
|
}
|
|
2768
2775
|
return (c, d) => {
|
|
2769
2776
|
var b, y;
|
|
2770
|
-
return (y = (b = c.data) == null ? void 0 : b.results) != null && y.length && c.request ? (p(), w("div",
|
|
2771
|
-
v("div",
|
|
2772
|
-
v("span",
|
|
2777
|
+
return (y = (b = c.data) == null ? void 0 : b.results) != null && y.length && c.request ? (p(), w("div", rn, [
|
|
2778
|
+
v("div", sn, [
|
|
2779
|
+
v("span", cn, I(g(n)("grid.jumpToPage")), 1),
|
|
2773
2780
|
N(ul, {
|
|
2774
2781
|
"model-value": c.request.pageNumber,
|
|
2775
2782
|
class: "cl-ml-1 cl-mt-0.5 cl-text-sm",
|
|
@@ -2780,19 +2787,19 @@ const Xa = ["value", "inputmode", "required", "disabled", "placeholder"], en = {
|
|
|
2780
2787
|
"onUpdate:modelValue": u
|
|
2781
2788
|
}, {
|
|
2782
2789
|
default: H(() => [
|
|
2783
|
-
|
|
2790
|
+
un
|
|
2784
2791
|
]),
|
|
2785
2792
|
_: 1
|
|
2786
2793
|
}, 8, ["model-value", "max", "disabled"])
|
|
2787
2794
|
]),
|
|
2788
|
-
v("div",
|
|
2789
|
-
v("div",
|
|
2790
|
-
v("li",
|
|
2791
|
-
v("span",
|
|
2795
|
+
v("div", dn, [
|
|
2796
|
+
v("div", fn, [
|
|
2797
|
+
v("li", pn, [
|
|
2798
|
+
v("span", mn, I(g(n)("grid.page")), 1)
|
|
2792
2799
|
]),
|
|
2793
|
-
v("ul",
|
|
2794
|
-
v("li",
|
|
2795
|
-
|
|
2800
|
+
v("ul", vn, [
|
|
2801
|
+
v("li", hn, I(g(De)(c.request.pageNumber)) + " / " + I(g(De)(r.value)), 1),
|
|
2802
|
+
X(v("li", {
|
|
2796
2803
|
class: "cl-cursor-pointer cl-mr-1 cl-mt-1 lg:cl-mr-2",
|
|
2797
2804
|
onClick: d[0] || (d[0] = (F) => u(1))
|
|
2798
2805
|
}, [
|
|
@@ -2801,9 +2808,9 @@ const Xa = ["value", "inputmode", "required", "disabled", "placeholder"], en = {
|
|
|
2801
2808
|
size: 14
|
|
2802
2809
|
})
|
|
2803
2810
|
], 512), [
|
|
2804
|
-
[
|
|
2811
|
+
[ae, c.request.pageNumber > 1]
|
|
2805
2812
|
]),
|
|
2806
|
-
|
|
2813
|
+
X(v("li", {
|
|
2807
2814
|
class: "cl-cursor-pointer cl-mt-1 lg:cl-mr-2 mr-1",
|
|
2808
2815
|
onClick: d[1] || (d[1] = (F) => u(c.request.pageNumber - 1))
|
|
2809
2816
|
}, [
|
|
@@ -2812,17 +2819,17 @@ const Xa = ["value", "inputmode", "required", "disabled", "placeholder"], en = {
|
|
|
2812
2819
|
size: 14
|
|
2813
2820
|
})
|
|
2814
2821
|
], 512), [
|
|
2815
|
-
[
|
|
2822
|
+
[ae, c.request.pageNumber > 1]
|
|
2816
2823
|
]),
|
|
2817
|
-
(p(!0), w(
|
|
2824
|
+
(p(!0), w(J, null, ue(a.value, (F, D) => (p(), w("li", {
|
|
2818
2825
|
key: D,
|
|
2819
2826
|
class: B(["cl-cursor-pointer cl-mr-1 lg:cl-mr-2", {
|
|
2820
2827
|
"cl-text-black cl-font-bold": c.request.pageNumber === F,
|
|
2821
2828
|
"cl-text-grey-6": c.request.pageNumber !== F
|
|
2822
2829
|
}]),
|
|
2823
2830
|
onClick: (O) => u(F)
|
|
2824
|
-
}, I(g(De)(F)), 11,
|
|
2825
|
-
|
|
2831
|
+
}, I(g(De)(F)), 11, gn))), 128)),
|
|
2832
|
+
X(v("li", {
|
|
2826
2833
|
class: "cl-cursor-pointer cl-mr-1 cl-mt-1 lg:cl-mr-2",
|
|
2827
2834
|
onClick: d[2] || (d[2] = (F) => u(c.request.pageNumber + 1))
|
|
2828
2835
|
}, [
|
|
@@ -2831,9 +2838,9 @@ const Xa = ["value", "inputmode", "required", "disabled", "placeholder"], en = {
|
|
|
2831
2838
|
size: 14
|
|
2832
2839
|
})
|
|
2833
2840
|
], 512), [
|
|
2834
|
-
[
|
|
2841
|
+
[ae, c.request.pageNumber < r.value]
|
|
2835
2842
|
]),
|
|
2836
|
-
|
|
2843
|
+
X(v("li", {
|
|
2837
2844
|
class: "cl-cursor-pointer cl-mr-1 cl-mt-1 lg:cl-mr-2",
|
|
2838
2845
|
onClick: d[3] || (d[3] = (F) => u(r.value))
|
|
2839
2846
|
}, [
|
|
@@ -2842,39 +2849,39 @@ const Xa = ["value", "inputmode", "required", "disabled", "placeholder"], en = {
|
|
|
2842
2849
|
size: 14
|
|
2843
2850
|
})
|
|
2844
2851
|
], 512), [
|
|
2845
|
-
[
|
|
2852
|
+
[ae, c.request.pageNumber < r.value]
|
|
2846
2853
|
])
|
|
2847
2854
|
])
|
|
2848
2855
|
]),
|
|
2849
|
-
v("ul",
|
|
2850
|
-
v("li",
|
|
2851
|
-
(p(), w(
|
|
2856
|
+
v("ul", bn, [
|
|
2857
|
+
v("li", yn, I(g(n)("grid.pageSize")), 1),
|
|
2858
|
+
(p(), w(J, null, ue(s, (F, D) => v("li", {
|
|
2852
2859
|
key: D,
|
|
2853
2860
|
class: B(["cl-cursor-pointer cl-mr-1 lg:cl-mr-2", {
|
|
2854
2861
|
"cl-text-black cl-font-bold": c.request.pageSize === F,
|
|
2855
2862
|
"cl-text-grey-6": c.request.pageSize !== F
|
|
2856
2863
|
}]),
|
|
2857
2864
|
onClick: (O) => i(F)
|
|
2858
|
-
}, I(g(De)(F)), 11,
|
|
2865
|
+
}, I(g(De)(F)), 11, wn)), 64))
|
|
2859
2866
|
]),
|
|
2860
|
-
v("ul",
|
|
2861
|
-
v("li",
|
|
2862
|
-
v("li",
|
|
2867
|
+
v("ul", kn, [
|
|
2868
|
+
v("li", $n, I(g(n)("grid.totalRecords")), 1),
|
|
2869
|
+
v("li", Sn, I(g(De)(c.data.totalRecords)), 1)
|
|
2863
2870
|
])
|
|
2864
2871
|
])
|
|
2865
2872
|
])) : z("", !0);
|
|
2866
2873
|
};
|
|
2867
2874
|
}
|
|
2868
|
-
}),
|
|
2875
|
+
}), Cn = {
|
|
2869
2876
|
key: 0,
|
|
2870
2877
|
class: "!cl-h-10 cl-border cl-border-grey-1 cl-flex cl-flex-nowrap cl-flex-row cl-overflow-hidden cl-rounded-sm"
|
|
2871
|
-
},
|
|
2878
|
+
}, On = {
|
|
2872
2879
|
key: 1,
|
|
2873
2880
|
class: "cl-relative"
|
|
2874
|
-
},
|
|
2881
|
+
}, En = ["value", "disabled", "placeholder"], Fn = {
|
|
2875
2882
|
key: 0,
|
|
2876
2883
|
class: "action-icon cl-absolute cl-bg-transparent cl-flex cl-right-2 cl-text-grey-4 cl-top-3.5"
|
|
2877
|
-
},
|
|
2884
|
+
}, Dn = /* @__PURE__ */ K({
|
|
2878
2885
|
inheritAttrs: !1,
|
|
2879
2886
|
__name: "cl-ui-calendar-input",
|
|
2880
2887
|
props: {
|
|
@@ -2910,7 +2917,7 @@ const Xa = ["value", "inputmode", "required", "disabled", "placeholder"], en = {
|
|
|
2910
2917
|
});
|
|
2911
2918
|
return e({
|
|
2912
2919
|
focus: n
|
|
2913
|
-
}), (u, s) => u.type === "dateRange" ? (p(), w("div",
|
|
2920
|
+
}), (u, s) => u.type === "dateRange" ? (p(), w("div", Cn, [
|
|
2914
2921
|
N(ye, {
|
|
2915
2922
|
class: B(["cl-basis-full cl-border-transparent cl-col-span-4 cl-flex cl-items-center cl-justify-center hover:cl-border-transparent", {
|
|
2916
2923
|
"cl-text-grey-4 hover:cl-text-grey-3": !u.rangeSelected,
|
|
@@ -2945,7 +2952,7 @@ const Xa = ["value", "inputmode", "required", "disabled", "placeholder"], en = {
|
|
|
2945
2952
|
]),
|
|
2946
2953
|
_: 1
|
|
2947
2954
|
}, 8, ["disabled", "class"]))
|
|
2948
|
-
])) : (p(), w("div",
|
|
2955
|
+
])) : (p(), w("div", On, [
|
|
2949
2956
|
v("input", ce({
|
|
2950
2957
|
ref_key: "element",
|
|
2951
2958
|
ref: l
|
|
@@ -2954,33 +2961,33 @@ const Xa = ["value", "inputmode", "required", "disabled", "placeholder"], en = {
|
|
|
2954
2961
|
type: "text",
|
|
2955
2962
|
disabled: u.disabled,
|
|
2956
2963
|
placeholder: a.value
|
|
2957
|
-
}, mt(u.events, !0)), null, 16,
|
|
2958
|
-
|
|
2964
|
+
}, mt(u.events, !0)), null, 16, En),
|
|
2965
|
+
X(N(g(Z), {
|
|
2959
2966
|
class: B(["cl-absolute cl-bg-transparent cl-cursor-text cl-left-2 cl-text-grey-4 cl-top-3.5 icon", {
|
|
2960
2967
|
"!cl-bg-off-white": u.disabled
|
|
2961
2968
|
}]),
|
|
2962
2969
|
icon: u.type === "time" ? "ph-clock" : "ph:calendar",
|
|
2963
2970
|
onClick: n
|
|
2964
2971
|
}, null, 8, ["class", "icon"]), [
|
|
2965
|
-
[
|
|
2972
|
+
[ae, !u.disabled]
|
|
2966
2973
|
]),
|
|
2967
|
-
u.disabled ? z("", !0) : (p(), w("div",
|
|
2974
|
+
u.disabled ? z("", !0) : (p(), w("div", Fn, [
|
|
2968
2975
|
u.type !== "time" ? (p(), _(g(Z), {
|
|
2969
2976
|
key: 0,
|
|
2970
2977
|
class: "cl-cursor-pointer hover:cl-text-link-light",
|
|
2971
2978
|
icon: "ph:arrow-counter-clockwise",
|
|
2972
|
-
onClick: s[2] || (s[2] =
|
|
2979
|
+
onClick: s[2] || (s[2] = oe((i) => u.$emit("reset"), ["prevent"]))
|
|
2973
2980
|
})) : z("", !0),
|
|
2974
2981
|
!u.required && u.date && (u.type !== "time" || u.date !== "00:00") ? (p(), _(g(Z), {
|
|
2975
2982
|
key: 1,
|
|
2976
2983
|
class: "cl-cursor-pointer clear-icon hover:cl-text-link-light md:cl-ml-0.5",
|
|
2977
2984
|
icon: "ph:x",
|
|
2978
|
-
onClick: s[3] || (s[3] =
|
|
2985
|
+
onClick: s[3] || (s[3] = oe((i) => u.$emit("clear"), ["prevent"]))
|
|
2979
2986
|
})) : z("", !0)
|
|
2980
2987
|
]))
|
|
2981
2988
|
]));
|
|
2982
2989
|
}
|
|
2983
|
-
}), pl = /* @__PURE__ */ Se(
|
|
2990
|
+
}), pl = /* @__PURE__ */ Se(Dn, [["__scopeId", "data-v-d44ed831"]]), Nn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, An = ["onClick"], Vn = /* @__PURE__ */ K({
|
|
2984
2991
|
__name: "cl-ui-quick-dates-group",
|
|
2985
2992
|
props: {
|
|
2986
2993
|
dates: {},
|
|
@@ -2989,8 +2996,8 @@ const Xa = ["value", "inputmode", "required", "disabled", "placeholder"], en = {
|
|
|
2989
2996
|
emits: ["quick-date-selected"],
|
|
2990
2997
|
setup(o, { emit: e }) {
|
|
2991
2998
|
const t = e, { t: l } = fe();
|
|
2992
|
-
return (n, r) => (p(), w("div",
|
|
2993
|
-
(p(!0), w(
|
|
2999
|
+
return (n, r) => (p(), w("div", Nn, [
|
|
3000
|
+
(p(!0), w(J, null, ue(n.dates, (a, u) => {
|
|
2994
3001
|
var s, i;
|
|
2995
3002
|
return p(), w("button", {
|
|
2996
3003
|
key: u,
|
|
@@ -3001,11 +3008,11 @@ const Xa = ["value", "inputmode", "required", "disabled", "placeholder"], en = {
|
|
|
3001
3008
|
onClick: (c) => t("quick-date-selected", a)
|
|
3002
3009
|
}, [
|
|
3003
3010
|
v("span", null, I(g(l)(a.translationKey)), 1)
|
|
3004
|
-
], 10,
|
|
3011
|
+
], 10, An);
|
|
3005
3012
|
}), 128))
|
|
3006
3013
|
]));
|
|
3007
3014
|
}
|
|
3008
|
-
}),
|
|
3015
|
+
}), qn = [
|
|
3009
3016
|
"today",
|
|
3010
3017
|
"this week",
|
|
3011
3018
|
"this month",
|
|
@@ -3097,10 +3104,10 @@ const Xa = ["value", "inputmode", "required", "disabled", "placeholder"], en = {
|
|
|
3097
3104
|
...nl,
|
|
3098
3105
|
...rl,
|
|
3099
3106
|
...Ge
|
|
3100
|
-
],
|
|
3107
|
+
], In = { class: "cl-p-2 cl-pt-0" }, Rn = {
|
|
3101
3108
|
key: 0,
|
|
3102
3109
|
class: "cl-mt-2 cl-opacity-20"
|
|
3103
|
-
},
|
|
3110
|
+
}, Mn = /* @__PURE__ */ K({
|
|
3104
3111
|
__name: "cl-ui-quick-dates",
|
|
3105
3112
|
props: {
|
|
3106
3113
|
scope: {},
|
|
@@ -3132,22 +3139,22 @@ const Xa = ["value", "inputmode", "required", "disabled", "placeholder"], en = {
|
|
|
3132
3139
|
}
|
|
3133
3140
|
return a;
|
|
3134
3141
|
});
|
|
3135
|
-
return (a, u) => (p(), w("div",
|
|
3142
|
+
return (a, u) => (p(), w("div", In, [
|
|
3136
3143
|
v("div", null, I(g(n)("quickDates.quickDatesHeader")), 1),
|
|
3137
|
-
(p(!0), w(
|
|
3144
|
+
(p(!0), w(J, null, ue(r.value, (s, i) => (p(), w("div", {
|
|
3138
3145
|
key: i,
|
|
3139
3146
|
class: "cl-pt-2"
|
|
3140
3147
|
}, [
|
|
3141
|
-
N(
|
|
3148
|
+
N(Vn, {
|
|
3142
3149
|
dates: s,
|
|
3143
3150
|
"selected-quick-date": a.selectedQuickDate,
|
|
3144
3151
|
onQuickDateSelected: u[0] || (u[0] = (c) => l("quick-date-selected", c))
|
|
3145
3152
|
}, null, 8, ["dates", "selected-quick-date"]),
|
|
3146
|
-
i < r.value.length - 1 ? (p(), w("div",
|
|
3153
|
+
i < r.value.length - 1 ? (p(), w("div", Rn)) : z("", !0)
|
|
3147
3154
|
]))), 128))
|
|
3148
3155
|
]));
|
|
3149
3156
|
}
|
|
3150
|
-
}),
|
|
3157
|
+
}), Ln = /* @__PURE__ */ K({
|
|
3151
3158
|
inheritAttrs: !1,
|
|
3152
3159
|
__name: "cl-ui-calendar",
|
|
3153
3160
|
props: {
|
|
@@ -3362,7 +3369,7 @@ const Xa = ["value", "inputmode", "required", "disabled", "placeholder"], en = {
|
|
|
3362
3369
|
}), null, 16, ["type", "required", "disabled", "range-selected", "title", "onTogglePopover"])
|
|
3363
3370
|
]),
|
|
3364
3371
|
footer: H(() => [
|
|
3365
|
-
f.quickDateScope !== "none" ? (p(), _(
|
|
3372
|
+
f.quickDateScope !== "none" ? (p(), _(Mn, {
|
|
3366
3373
|
key: 0,
|
|
3367
3374
|
scope: f.quickDateScope,
|
|
3368
3375
|
"selected-quick-date": O.value,
|
|
@@ -3426,13 +3433,13 @@ var Ve;
|
|
|
3426
3433
|
(function(o) {
|
|
3427
3434
|
o.precision = "precision", o.thousands = "thousands", o.millions = "millions", o.billions = "billions";
|
|
3428
3435
|
})(Ve || (Ve = {}));
|
|
3429
|
-
const Xe = (o) => o.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), rt = (o) => o.replace(/^0+(0$|[^0])/, "$1"), ml = (o, e) => (o.match(new RegExp(Xe(e), "g")) || []).length,
|
|
3436
|
+
const Xe = (o) => o.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), rt = (o) => o.replace(/^0+(0$|[^0])/, "$1"), ml = (o, e) => (o.match(new RegExp(Xe(e), "g")) || []).length, jn = (o, e) => o.substring(0, o.indexOf(e)), it = [
|
|
3430
3437
|
",",
|
|
3431
3438
|
".",
|
|
3432
3439
|
"٫",
|
|
3433
3440
|
"。"
|
|
3434
3441
|
], jl = "(0|[1-9]\\d*)";
|
|
3435
|
-
class
|
|
3442
|
+
class Pn {
|
|
3436
3443
|
constructor(e) {
|
|
3437
3444
|
var t, l, n, r, a, u;
|
|
3438
3445
|
const { currency: s, currencyDisplay: i, locale: c, precision: d, accountingSign: b, useGrouping: y } = e;
|
|
@@ -3445,7 +3452,7 @@ class Mn {
|
|
|
3445
3452
|
};
|
|
3446
3453
|
const F = new Intl.NumberFormat(c, this.options), D = F.formatToParts(123456);
|
|
3447
3454
|
this.currency = (t = D.find(({ type: V }) => V === "currency")) === null || t === void 0 ? void 0 : t.value, this.digits = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9].map((V) => V.toLocaleString(c)), this.decimalSymbol = (l = D.find(({ type: V }) => V === "decimal")) === null || l === void 0 ? void 0 : l.value, this.groupingSymbol = (n = D.find(({ type: V }) => V === "group")) === null || n === void 0 ? void 0 : n.value, this.minusSign = (r = F.formatToParts(-1).find(({ type: V }) => V === "minusSign")) === null || r === void 0 ? void 0 : r.value, this.decimalSymbol === void 0 ? this.minimumFractionDigits = this.maximumFractionDigits = 0 : typeof d == "number" ? this.minimumFractionDigits = this.maximumFractionDigits = d : (this.minimumFractionDigits = (a = d == null ? void 0 : d.min) !== null && a !== void 0 ? a : F.resolvedOptions().minimumFractionDigits, this.maximumFractionDigits = (u = d == null ? void 0 : d.max) !== null && u !== void 0 ? u : F.resolvedOptions().maximumFractionDigits);
|
|
3448
|
-
const O = (V) =>
|
|
3455
|
+
const O = (V) => jn(V, this.digits[1]), E = (V) => V.substring(V.lastIndexOf(this.decimalSymbol ? this.digits[0] : this.digits[1]) + 1);
|
|
3449
3456
|
this.prefix = O(F.format(1)), this.suffix = E(F.format(1)), this.negativePrefix = O(F.format(-1)), this.negativeSuffix = E(F.format(-1));
|
|
3450
3457
|
}
|
|
3451
3458
|
parse(e) {
|
|
@@ -3514,7 +3521,7 @@ class st {
|
|
|
3514
3521
|
this.currencyFormat = e;
|
|
3515
3522
|
}
|
|
3516
3523
|
}
|
|
3517
|
-
class
|
|
3524
|
+
class zn extends st {
|
|
3518
3525
|
conformToMask(e, t = "") {
|
|
3519
3526
|
const l = this.currencyFormat.isNegative(e), n = (F) => F === "" && l && !(this.currencyFormat.minusSign === void 0 ? t === this.currencyFormat.negativePrefix + this.currencyFormat.negativeSuffix : t === this.currencyFormat.negativePrefix), r = (F) => {
|
|
3520
3527
|
if (n(F))
|
|
@@ -3539,7 +3546,7 @@ class Ln extends st {
|
|
|
3539
3546
|
} : "";
|
|
3540
3547
|
}
|
|
3541
3548
|
}
|
|
3542
|
-
class
|
|
3549
|
+
class Bn extends st {
|
|
3543
3550
|
conformToMask(e, t = "") {
|
|
3544
3551
|
if (e === "" || this.currencyFormat.parse(t) === 0 && this.currencyFormat.stripCurrency(t, !0).slice(0, -1) === this.currencyFormat.stripCurrency(e, !0))
|
|
3545
3552
|
return "";
|
|
@@ -3550,7 +3557,7 @@ class jn extends st {
|
|
|
3550
3557
|
};
|
|
3551
3558
|
}
|
|
3552
3559
|
}
|
|
3553
|
-
const
|
|
3560
|
+
const Un = {
|
|
3554
3561
|
locale: void 0,
|
|
3555
3562
|
currency: void 0,
|
|
3556
3563
|
currencyDisplay: void 0,
|
|
@@ -3563,7 +3570,7 @@ const Pn = {
|
|
|
3563
3570
|
useGrouping: void 0,
|
|
3564
3571
|
valueScaling: void 0
|
|
3565
3572
|
};
|
|
3566
|
-
class
|
|
3573
|
+
class xn {
|
|
3567
3574
|
constructor(e) {
|
|
3568
3575
|
this.el = e.el, this.onInput = e.onInput, this.onChange = e.onChange, this.addEventListener(), this.init(e.options);
|
|
3569
3576
|
}
|
|
@@ -3579,9 +3586,9 @@ class zn {
|
|
|
3579
3586
|
}
|
|
3580
3587
|
init(e) {
|
|
3581
3588
|
this.options = {
|
|
3582
|
-
...
|
|
3589
|
+
...Un,
|
|
3583
3590
|
...e
|
|
3584
|
-
}, this.options.autoDecimalDigits && (this.options.hideNegligibleDecimalDigitsOnFocus = !1), this.el.getAttribute("inputmode") || this.el.setAttribute("inputmode", this.options.autoDecimalDigits ? "numeric" : "decimal"), this.currencyFormat = new
|
|
3591
|
+
}, this.options.autoDecimalDigits && (this.options.hideNegligibleDecimalDigitsOnFocus = !1), this.el.getAttribute("inputmode") || this.el.setAttribute("inputmode", this.options.autoDecimalDigits ? "numeric" : "decimal"), this.currencyFormat = new Pn(this.options), this.numberMask = this.options.autoDecimalDigits ? new Bn(this.currencyFormat) : new zn(this.currencyFormat);
|
|
3585
3592
|
const t = {
|
|
3586
3593
|
[Ve.precision]: this.currencyFormat.maximumFractionDigits,
|
|
3587
3594
|
[Ve.thousands]: 3,
|
|
@@ -3692,16 +3699,16 @@ class zn {
|
|
|
3692
3699
|
this.el.setSelectionRange(e, t);
|
|
3693
3700
|
}
|
|
3694
3701
|
}
|
|
3695
|
-
const
|
|
3696
|
-
function
|
|
3702
|
+
const Hn = (o) => o != null && o.matches("input") ? o : o == null ? void 0 : o.querySelector("input");
|
|
3703
|
+
function Gn(o, e) {
|
|
3697
3704
|
var t, l, n, r;
|
|
3698
3705
|
let a;
|
|
3699
3706
|
const u = R(null), s = R(null), i = R(null), c = vt(), d = (c == null ? void 0 : c.emit) || ((l = (t = c == null ? void 0 : c.proxy) === null || t === void 0 ? void 0 : t.$emit) === null || l === void 0 ? void 0 : l.bind(c == null ? void 0 : c.proxy)), b = (c == null ? void 0 : c.props) || ((n = c == null ? void 0 : c.proxy) === null || n === void 0 ? void 0 : n.$props), y = ht.startsWith("3"), F = y && ((r = c == null ? void 0 : c.attrs.modelModifiers) === null || r === void 0 ? void 0 : r.lazy), D = A(() => b == null ? void 0 : b[y ? "modelValue" : "value"]), O = y ? "update:modelValue" : "input", E = F ? "update:modelValue" : "change";
|
|
3700
3707
|
return ne(u, (V) => {
|
|
3701
3708
|
var x;
|
|
3702
3709
|
if (V) {
|
|
3703
|
-
const ee =
|
|
3704
|
-
ee ? (a = new
|
|
3710
|
+
const ee = Hn((x = V == null ? void 0 : V.$el) !== null && x !== void 0 ? x : V);
|
|
3711
|
+
ee ? (a = new xn({
|
|
3705
3712
|
el: ee,
|
|
3706
3713
|
options: o,
|
|
3707
3714
|
onInput: (te) => {
|
|
@@ -3721,7 +3728,7 @@ function Un(o, e) {
|
|
|
3721
3728
|
setOptions: (V) => a == null ? void 0 : a.setOptions(V)
|
|
3722
3729
|
};
|
|
3723
3730
|
}
|
|
3724
|
-
const
|
|
3731
|
+
const Wn = ["disabled", "step", "placeholder", "name"], Kn = /* @__PURE__ */ K({
|
|
3725
3732
|
__name: "cl-ui-currency-input",
|
|
3726
3733
|
props: {
|
|
3727
3734
|
modelValue: { type: [String, Object, Number, Boolean, null] },
|
|
@@ -3736,7 +3743,7 @@ const xn = ["disabled", "step", "placeholder", "name"], Hn = /* @__PURE__ */ K({
|
|
|
3736
3743
|
},
|
|
3737
3744
|
emits: ["update:modelValue", "focus", "change"],
|
|
3738
3745
|
setup(o, { expose: e, emit: t }) {
|
|
3739
|
-
const l = o, n = t, { inputRef: r, setOptions: a, setValue: u, numberValue: s } =
|
|
3746
|
+
const l = o, n = t, { inputRef: r, setOptions: a, setValue: u, numberValue: s } = Gn(l.currencyOptions, !1), i = A(() => c(l.modelValue) ? l.modelValue : 0);
|
|
3740
3747
|
function c(D) {
|
|
3741
3748
|
return typeof D == "number" && isNaN(D) === !1;
|
|
3742
3749
|
}
|
|
@@ -3791,12 +3798,12 @@ const xn = ["disabled", "step", "placeholder", "name"], Hn = /* @__PURE__ */ K({
|
|
|
3791
3798
|
onChange: F,
|
|
3792
3799
|
onBlur: b,
|
|
3793
3800
|
onFocus: O[0] || (O[0] = (E) => n("focus"))
|
|
3794
|
-
}, null, 42,
|
|
3801
|
+
}, null, 42, Wn));
|
|
3795
3802
|
}
|
|
3796
|
-
}),
|
|
3803
|
+
}), Zn = (o) => (yt("data-v-5cb4ccea"), o = o(), wt(), o), _n = { class: "cl-flex cl-items-start" }, Qn = { class: "cl-w-full" }, Yn = /* @__PURE__ */ Zn(() => /* @__PURE__ */ v("span", null, null, -1)), Jn = ["min", "max", "step", "disabled"], Xn = { class: "cl-bg-transparent cl-text-center cl-text-sm cl-w-full" }, er = { class: "cl-bg-transparent cl-text-sm" }, lr = {
|
|
3797
3804
|
key: 1,
|
|
3798
3805
|
class: "cl-emphasis-danger cl-text-sm cl-w-full"
|
|
3799
|
-
},
|
|
3806
|
+
}, tr = /* @__PURE__ */ K({
|
|
3800
3807
|
inheritAttrs: !1,
|
|
3801
3808
|
__name: "cl-ui-slider",
|
|
3802
3809
|
props: /* @__PURE__ */ Oe({
|
|
@@ -3824,7 +3831,7 @@ const xn = ["disabled", "step", "placeholder", "name"], Hn = /* @__PURE__ */ K({
|
|
|
3824
3831
|
(i = r.value) == null || i.focus();
|
|
3825
3832
|
}
|
|
3826
3833
|
}), (i, c) => u.value ? (p(), w("div", me(ce({ key: 0 }, i.$attrs)), [
|
|
3827
|
-
v("div",
|
|
3834
|
+
v("div", _n, [
|
|
3828
3835
|
v("span", {
|
|
3829
3836
|
class: B(["cl-border cl-border-transparent cl-leading-6 cl-mr-1 cl-px-2 cl-rounded-full cl-select-none cl-shadow cl-text-center cl-text-xs", {
|
|
3830
3837
|
"cl-bg-white cl-cursor-pointer hover:cl-border-grey-1": !i.disabled,
|
|
@@ -3832,7 +3839,7 @@ const xn = ["disabled", "step", "placeholder", "name"], Hn = /* @__PURE__ */ K({
|
|
|
3832
3839
|
}]),
|
|
3833
3840
|
onClick: c[0] || (c[0] = (d) => l.value = i.disabled ? l.value : i.min)
|
|
3834
3841
|
}, I(Number.isInteger(i.min) ? g(De)(i.min) : g(He)(i.min, g(re).DECIMAL)), 3),
|
|
3835
|
-
v("div",
|
|
3842
|
+
v("div", Qn, [
|
|
3836
3843
|
s.value ? (p(), _(ul, {
|
|
3837
3844
|
key: 0,
|
|
3838
3845
|
ref_key: "sliderRef",
|
|
@@ -3849,11 +3856,11 @@ const xn = ["disabled", "step", "placeholder", "name"], Hn = /* @__PURE__ */ K({
|
|
|
3849
3856
|
placeholder: i.placeholder
|
|
3850
3857
|
}, {
|
|
3851
3858
|
default: H(() => [
|
|
3852
|
-
|
|
3859
|
+
Yn
|
|
3853
3860
|
]),
|
|
3854
3861
|
_: 1
|
|
3855
|
-
}, 8, ["modelValue", "format", "precision", "min", "max", "step", "disabled", "placeholder"])) : (p(), w(
|
|
3856
|
-
|
|
3862
|
+
}, 8, ["modelValue", "format", "precision", "min", "max", "step", "disabled", "placeholder"])) : (p(), w(J, { key: 1 }, [
|
|
3863
|
+
X(v("input", {
|
|
3857
3864
|
ref_key: "sliderRef",
|
|
3858
3865
|
ref: r,
|
|
3859
3866
|
"onUpdate:modelValue": c[2] || (c[2] = (d) => l.value = d),
|
|
@@ -3863,7 +3870,7 @@ const xn = ["disabled", "step", "placeholder", "name"], Hn = /* @__PURE__ */ K({
|
|
|
3863
3870
|
max: i.max,
|
|
3864
3871
|
step: i.step,
|
|
3865
3872
|
disabled: i.disabled
|
|
3866
|
-
}, null, 8,
|
|
3873
|
+
}, null, 8, Jn), [
|
|
3867
3874
|
[
|
|
3868
3875
|
bt,
|
|
3869
3876
|
l.value,
|
|
@@ -3871,7 +3878,7 @@ const xn = ["disabled", "step", "placeholder", "name"], Hn = /* @__PURE__ */ K({
|
|
|
3871
3878
|
{ number: !0 }
|
|
3872
3879
|
]
|
|
3873
3880
|
]),
|
|
3874
|
-
v("div",
|
|
3881
|
+
v("div", Xn, I(Number.isInteger(l.value) ? g(De)(l.value) : g(He)(l.value, g(re).DECIMAL)), 1)
|
|
3875
3882
|
], 64))
|
|
3876
3883
|
]),
|
|
3877
3884
|
v("span", {
|
|
@@ -3881,7 +3888,7 @@ const xn = ["disabled", "step", "placeholder", "name"], Hn = /* @__PURE__ */ K({
|
|
|
3881
3888
|
}]),
|
|
3882
3889
|
onClick: c[3] || (c[3] = (d) => l.value = i.disabled ? l.value : i.max)
|
|
3883
3890
|
}, I(Number.isInteger(i.max) ? g(De)(i.max) : g(He)(i.max, g(re).DECIMAL)), 3),
|
|
3884
|
-
v("div",
|
|
3891
|
+
v("div", er, [
|
|
3885
3892
|
v("div", {
|
|
3886
3893
|
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",
|
|
3887
3894
|
onClick: c[4] || (c[4] = (d) => s.value = !s.value)
|
|
@@ -3890,9 +3897,9 @@ const xn = ["disabled", "step", "placeholder", "name"], Hn = /* @__PURE__ */ K({
|
|
|
3890
3897
|
])
|
|
3891
3898
|
])
|
|
3892
3899
|
])
|
|
3893
|
-
], 16)) : (p(), w("div",
|
|
3900
|
+
], 16)) : (p(), w("div", lr, I(g(n)("slider.invalidProps")), 1));
|
|
3894
3901
|
}
|
|
3895
|
-
}),
|
|
3902
|
+
}), or = /* @__PURE__ */ Se(tr, [["__scopeId", "data-v-5cb4ccea"]]);
|
|
3896
3903
|
function Pl(o) {
|
|
3897
3904
|
let e = !1;
|
|
3898
3905
|
switch (o) {
|
|
@@ -3910,7 +3917,7 @@ function Pl(o) {
|
|
|
3910
3917
|
}
|
|
3911
3918
|
return e;
|
|
3912
3919
|
}
|
|
3913
|
-
function
|
|
3920
|
+
function ar(o) {
|
|
3914
3921
|
return o === "number" || o === "range";
|
|
3915
3922
|
}
|
|
3916
3923
|
function zl(o) {
|
|
@@ -3931,7 +3938,7 @@ function zl(o) {
|
|
|
3931
3938
|
function Ue(o) {
|
|
3932
3939
|
return o === "button" || o === "submit" || o === "reset";
|
|
3933
3940
|
}
|
|
3934
|
-
function
|
|
3941
|
+
function nr(o) {
|
|
3935
3942
|
let e;
|
|
3936
3943
|
switch (o) {
|
|
3937
3944
|
case "datetime":
|
|
@@ -3952,27 +3959,27 @@ function tr(o) {
|
|
|
3952
3959
|
}
|
|
3953
3960
|
function Bl(o, e) {
|
|
3954
3961
|
const t = o.target;
|
|
3955
|
-
return
|
|
3962
|
+
return ar(e) ? t.valueAsNumber : Ue(e) ? t.checked : t.value;
|
|
3956
3963
|
}
|
|
3957
|
-
const
|
|
3964
|
+
const rr = { class: "cl-flex cl-justify-between" }, ir = { class: "cl-w-full" }, sr = {
|
|
3958
3965
|
key: 0,
|
|
3959
3966
|
class: "cl-block cl-left-auto cl-relative cl-text-danger-default"
|
|
3960
|
-
},
|
|
3967
|
+
}, cr = {
|
|
3961
3968
|
key: 1,
|
|
3962
3969
|
class: "cl-bg-danger-light cl-block cl-max-h-6 cl-mb-1 cl-ml-2 cl-px-2 cl-rounded-md cl-text-center cl-text-danger-default cl-text-xs"
|
|
3963
|
-
},
|
|
3970
|
+
}, ur = {
|
|
3964
3971
|
key: 0,
|
|
3965
3972
|
class: "cl-relative"
|
|
3966
|
-
},
|
|
3973
|
+
}, dr = ["type", "disabled", "min", "max", "minlength", "maxlength", "step", "placeholder", "name", "autocomplete"], fr = { key: 0 }, pr = { key: 1 }, mr = {
|
|
3967
3974
|
key: 3,
|
|
3968
3975
|
class: "cl-max-h-[2.75rem] cl-pb-0.5"
|
|
3969
|
-
},
|
|
3976
|
+
}, vr = {
|
|
3970
3977
|
key: 0,
|
|
3971
3978
|
class: "cl-bg-primary-lighter cl-px-2 cl-rounded-md cl-text-center cl-text-secondary-light cl-text-xs cl-w-auto cl-whitespace-pre-line"
|
|
3972
|
-
},
|
|
3979
|
+
}, hr = {
|
|
3973
3980
|
key: 1,
|
|
3974
3981
|
class: "cl-bg-danger-light cl-px-2 cl-rounded-md cl-text-center cl-text-danger-default cl-text-xs cl-w-auto cl-whitespace-pre-line"
|
|
3975
|
-
},
|
|
3982
|
+
}, gr = /* @__PURE__ */ K({
|
|
3976
3983
|
inheritAttrs: !1,
|
|
3977
3984
|
__name: "cl-ui-input",
|
|
3978
3985
|
props: {
|
|
@@ -4047,7 +4054,7 @@ const or = { class: "cl-flex cl-justify-between" }, ar = { class: "cl-w-full" },
|
|
|
4047
4054
|
be(l.customValidationFunction(l.label, k));
|
|
4048
4055
|
})
|
|
4049
4056
|
];
|
|
4050
|
-
return (typeof k == "string" || typeof k == "number") && (G.push(
|
|
4057
|
+
return (typeof k == "string" || typeof k == "number") && (G.push(Ja(l.min, l.inputType, l.label, k, l.timeZone)), G.push(Xa(l.max, l.inputType, l.label, k, l.timeZone))), l.isRequired && G.push(en(l.label, k)), l.inputType === "email" && typeof k == "string" && G.push(ln(l.label, k)), Promise.all(G).then((be) => {
|
|
4051
4058
|
const Pe = [...be.map((_e) => _e.message)], Re = be.some((_e) => _e.message.length > 0 && _e.valid === !1) || l.externalErrors.length > 0;
|
|
4052
4059
|
ee.value = !0, Re ? (te.value = Pe, n("validated", !1, k)) : (te.value = [], n("validated", !0, k)), x.value = !Re;
|
|
4053
4060
|
});
|
|
@@ -4130,17 +4137,17 @@ const or = { class: "cl-flex cl-justify-between" }, ar = { class: "cl-w-full" },
|
|
|
4130
4137
|
onMouseenter: P[13] || (P[13] = (G) => C(!0)),
|
|
4131
4138
|
onMouseleave: P[14] || (P[14] = (G) => C(!1))
|
|
4132
4139
|
}, [
|
|
4133
|
-
v("div",
|
|
4134
|
-
v("div",
|
|
4135
|
-
|
|
4136
|
-
[
|
|
4140
|
+
v("div", rr, [
|
|
4141
|
+
v("div", ir, [
|
|
4142
|
+
X(v("label", { class: "cl-block cl-mb-1 cl-text-grey-4 cl-text-xs cl-tracking-widest" }, I(k.label), 513), [
|
|
4143
|
+
[ae, k.showLabel && k.label !== ""]
|
|
4137
4144
|
])
|
|
4138
4145
|
]),
|
|
4139
|
-
k.isRequired && i.value ? (p(), w("label",
|
|
4140
|
-
k.isRequired && !i.value && k.requiredText.length ? (p(), w("label",
|
|
4146
|
+
k.isRequired && i.value ? (p(), w("label", sr, " * ")) : z("", !0),
|
|
4147
|
+
k.isRequired && !i.value && k.requiredText.length ? (p(), w("label", cr, I(k.requiredText), 1)) : z("", !0)
|
|
4141
4148
|
]),
|
|
4142
|
-
k.inputType !== "range" && k.inputType !== "currency" && !g(zl)(k.inputType) ? (p(), w("div",
|
|
4143
|
-
|
|
4149
|
+
k.inputType !== "range" && k.inputType !== "currency" && !g(zl)(k.inputType) ? (p(), w("div", ur, [
|
|
4150
|
+
X(v("input", ce({
|
|
4144
4151
|
ref_key: "inputElement",
|
|
4145
4152
|
ref: r,
|
|
4146
4153
|
"onUpdate:modelValue": P[0] || (P[0] = (G) => b.value = G)
|
|
@@ -4168,13 +4175,13 @@ const or = { class: "cl-flex cl-justify-between" }, ar = { class: "cl-w-full" },
|
|
|
4168
4175
|
autocomplete: k.autocomplete,
|
|
4169
4176
|
onClick: P[1] || (P[1] = (G) => T(G)),
|
|
4170
4177
|
onFocus: P[2] || (P[2] = (G) => n("focus")),
|
|
4171
|
-
onBlur:
|
|
4178
|
+
onBlur: oe(Te, ["self"]),
|
|
4172
4179
|
onMousewheelPassive: Y,
|
|
4173
4180
|
onInput: P[3] || (P[3] = (G) => {
|
|
4174
4181
|
n("input", G, g(Bl)(G, k.inputType));
|
|
4175
4182
|
}),
|
|
4176
4183
|
onChange: se
|
|
4177
|
-
}), null, 16,
|
|
4184
|
+
}), null, 16, dr), [
|
|
4178
4185
|
[xl, b.value]
|
|
4179
4186
|
]),
|
|
4180
4187
|
N(Ee, {
|
|
@@ -4182,29 +4189,29 @@ const or = { class: "cl-flex cl-justify-between" }, ar = { class: "cl-w-full" },
|
|
|
4182
4189
|
duration: 300
|
|
4183
4190
|
}, {
|
|
4184
4191
|
default: H(() => [
|
|
4185
|
-
k.inputType === "number" && !k.disabled && k.showArrows ?
|
|
4192
|
+
k.inputType === "number" && !k.disabled && k.showArrows ? X((p(), w("div", fr, [
|
|
4186
4193
|
N(g(Z), {
|
|
4187
4194
|
icon: "ph:caret-up-bold",
|
|
4188
4195
|
class: "cl-absolute cl-bg-link-default cl-right-1 cl-rounded-full cl-text-sm cl-text-white cl-top-1 hover:cl-bg-link-light hover:cl-cursor-pointer",
|
|
4189
4196
|
onClick: S,
|
|
4190
|
-
onMousedown: P[4] || (P[4] =
|
|
4197
|
+
onMousedown: P[4] || (P[4] = oe(() => {
|
|
4191
4198
|
}, ["prevent"]))
|
|
4192
4199
|
}),
|
|
4193
4200
|
N(g(Z), {
|
|
4194
4201
|
icon: "ph:caret-down-bold",
|
|
4195
4202
|
class: "cl-absolute cl-bg-link-default cl-bottom-2 cl-right-1 cl-rounded-full cl-text-sm cl-text-white hover:cl-bg-link-light hover:cl-cursor-pointer",
|
|
4196
4203
|
onClick: j,
|
|
4197
|
-
onMousedown: P[5] || (P[5] =
|
|
4204
|
+
onMousedown: P[5] || (P[5] = oe(() => {
|
|
4198
4205
|
}, ["prevent"]))
|
|
4199
4206
|
})
|
|
4200
4207
|
], 512)), [
|
|
4201
|
-
[
|
|
4208
|
+
[ae, u.value]
|
|
4202
4209
|
]) : z("", !0)
|
|
4203
4210
|
]),
|
|
4204
4211
|
_: 1
|
|
4205
4212
|
})
|
|
4206
|
-
])) : k.inputType === "currency" ? (p(), w("div",
|
|
4207
|
-
N(
|
|
4213
|
+
])) : k.inputType === "currency" ? (p(), w("div", pr, [
|
|
4214
|
+
N(Kn, ce({
|
|
4208
4215
|
ref_key: "currencyInputRef",
|
|
4209
4216
|
ref: a,
|
|
4210
4217
|
modelValue: b.value,
|
|
@@ -4223,7 +4230,7 @@ const or = { class: "cl-flex cl-justify-between" }, ar = { class: "cl-w-full" },
|
|
|
4223
4230
|
onFocus: P[8] || (P[8] = (G) => n("focus")),
|
|
4224
4231
|
onBlur: L
|
|
4225
4232
|
}), null, 16, ["modelValue", "disabled", "placeholder", "is-valid", "highlight-when-valid", "input-specific-classes", "group", "step", "currency-options"])
|
|
4226
|
-
])) : g(zl)(k.inputType) ? (p(), _(g(
|
|
4233
|
+
])) : g(zl)(k.inputType) ? (p(), _(g(Ln), ce({ key: 2 }, k.$attrs, {
|
|
4227
4234
|
ref_key: "inputElement",
|
|
4228
4235
|
ref: r,
|
|
4229
4236
|
date: y.value,
|
|
@@ -4235,7 +4242,7 @@ const or = { class: "cl-flex cl-justify-between" }, ar = { class: "cl-w-full" },
|
|
|
4235
4242
|
}],
|
|
4236
4243
|
disabled: k.disabled,
|
|
4237
4244
|
required: k.isRequired,
|
|
4238
|
-
type: g(
|
|
4245
|
+
type: g(nr)(k.inputType),
|
|
4239
4246
|
"time-zone": k.timeZone,
|
|
4240
4247
|
min: F.value,
|
|
4241
4248
|
max: D.value,
|
|
@@ -4243,10 +4250,10 @@ const or = { class: "cl-flex cl-justify-between" }, ar = { class: "cl-w-full" },
|
|
|
4243
4250
|
"initial-date": k.initialDate,
|
|
4244
4251
|
"quick-date-scope": k.quickDateScope,
|
|
4245
4252
|
"date-format-locale": k.dateFormatLocale,
|
|
4246
|
-
onBlur:
|
|
4253
|
+
onBlur: oe(L, ["self"]),
|
|
4247
4254
|
onFocus: P[10] || (P[10] = (G) => n("focus"))
|
|
4248
|
-
}), null, 16, ["date", "class", "disabled", "required", "type", "time-zone", "min", "max", "placeholder", "initial-date", "quick-date-scope", "date-format-locale"])) : k.inputType === "range" && typeof b.value == "number" ? (p(), w("div",
|
|
4249
|
-
N(g(
|
|
4255
|
+
}), null, 16, ["date", "class", "disabled", "required", "type", "time-zone", "min", "max", "placeholder", "initial-date", "quick-date-scope", "date-format-locale"])) : k.inputType === "range" && typeof b.value == "number" ? (p(), w("div", mr, [
|
|
4256
|
+
N(g(or), {
|
|
4250
4257
|
ref_key: "inputElement",
|
|
4251
4258
|
ref: r,
|
|
4252
4259
|
value: b.value,
|
|
@@ -4257,16 +4264,16 @@ const or = { class: "cl-flex cl-justify-between" }, ar = { class: "cl-w-full" },
|
|
|
4257
4264
|
placeholder: c.value,
|
|
4258
4265
|
"enforce-step": !0,
|
|
4259
4266
|
disabled: k.disabled,
|
|
4260
|
-
onBlur:
|
|
4267
|
+
onBlur: oe(L, ["self"]),
|
|
4261
4268
|
onFocus: P[12] || (P[12] = (G) => n("focus"))
|
|
4262
4269
|
}, null, 8, ["value", "min", "max", "step", "placeholder", "disabled"])
|
|
4263
4270
|
])) : z("", !0)
|
|
4264
4271
|
], 32),
|
|
4265
|
-
x.value && V.value && ee.value ? (p(), w("div",
|
|
4266
|
-
!x.value && $.value.length > 0 && k.showValidationMessages && ee.value ? (p(), w("div",
|
|
4272
|
+
x.value && V.value && ee.value ? (p(), w("div", vr, I(V.value), 1)) : z("", !0),
|
|
4273
|
+
!x.value && $.value.length > 0 && k.showValidationMessages && ee.value ? (p(), w("div", hr, I($.value), 1)) : z("", !0)
|
|
4267
4274
|
], 16));
|
|
4268
4275
|
}
|
|
4269
|
-
}), hl = /* @__PURE__ */ Se(
|
|
4276
|
+
}), hl = /* @__PURE__ */ Se(gr, [["__scopeId", "data-v-7748b62a"]]), br = [
|
|
4270
4277
|
"string",
|
|
4271
4278
|
"boolean",
|
|
4272
4279
|
"number",
|
|
@@ -4279,7 +4286,7 @@ const or = { class: "cl-flex cl-justify-between" }, ar = { class: "cl-w-full" },
|
|
|
4279
4286
|
function ct(o) {
|
|
4280
4287
|
return typeof o.caption == "string" && typeof o.name == "string" && typeof o.type == "string";
|
|
4281
4288
|
}
|
|
4282
|
-
function
|
|
4289
|
+
function yr(o) {
|
|
4283
4290
|
let e = Array.isArray(o);
|
|
4284
4291
|
if (e) {
|
|
4285
4292
|
for (const t of o)
|
|
@@ -4290,12 +4297,12 @@ function hr(o) {
|
|
|
4290
4297
|
}
|
|
4291
4298
|
return e;
|
|
4292
4299
|
}
|
|
4293
|
-
const
|
|
4300
|
+
const wr = [
|
|
4294
4301
|
"ellipsis",
|
|
4295
4302
|
"wrap-text"
|
|
4296
4303
|
];
|
|
4297
4304
|
var le = /* @__PURE__ */ ((o) => (o[o.CONTAINS = 0] = "CONTAINS", o[o.NOT_CONTAINS = 1] = "NOT_CONTAINS", o[o.EQUAL = 2] = "EQUAL", o[o.NOT_EQUAL = 3] = "NOT_EQUAL", o[o.STARTS_WITH = 4] = "STARTS_WITH", o[o.ENDS_WITH = 5] = "ENDS_WITH", o[o.GREATER_THAN = 6] = "GREATER_THAN", o[o.LESS_THAN = 7] = "LESS_THAN", o[o.EQUAL_OR_GREATER_THAN = 8] = "EQUAL_OR_GREATER_THAN", o[o.EQUAL_OR_LESS_THAN = 9] = "EQUAL_OR_LESS_THAN", o[o.AND_CONTAINS = 10] = "AND_CONTAINS", o))(le || {});
|
|
4298
|
-
const
|
|
4305
|
+
const kr = [
|
|
4299
4306
|
"equal",
|
|
4300
4307
|
"notequal",
|
|
4301
4308
|
"contains",
|
|
@@ -4308,24 +4315,24 @@ const br = [
|
|
|
4308
4315
|
"equalorgreaterthan",
|
|
4309
4316
|
"andcontains"
|
|
4310
4317
|
];
|
|
4311
|
-
function
|
|
4318
|
+
function $r(o) {
|
|
4312
4319
|
return typeof o.filterOnColumn == "string" && typeof o.filterOperation == "number" && typeof o.filterValue == "string";
|
|
4313
4320
|
}
|
|
4314
|
-
function
|
|
4321
|
+
function Sr(o) {
|
|
4315
4322
|
return o === null || typeof o.sortByAscending == "boolean" && typeof o.sortOnColumn == "string";
|
|
4316
4323
|
}
|
|
4317
|
-
function
|
|
4318
|
-
let e = typeof o.filters == "object" && Array.isArray(o.filters) && typeof o.pageNumber == "number" && typeof o.pageSize == "number" && typeof o.sort == "object" &&
|
|
4324
|
+
function Tr(o) {
|
|
4325
|
+
let e = typeof o.filters == "object" && Array.isArray(o.filters) && typeof o.pageNumber == "number" && typeof o.pageSize == "number" && typeof o.sort == "object" && Sr(o.sort);
|
|
4319
4326
|
if (e) {
|
|
4320
4327
|
for (const t of o.filters)
|
|
4321
|
-
if (
|
|
4328
|
+
if (!$r(t)) {
|
|
4322
4329
|
e = !1;
|
|
4323
4330
|
break;
|
|
4324
4331
|
}
|
|
4325
4332
|
}
|
|
4326
4333
|
return e;
|
|
4327
4334
|
}
|
|
4328
|
-
function
|
|
4335
|
+
function Cr(o, e) {
|
|
4329
4336
|
let t = typeof o.results == "object" && Array.isArray(o.results) && typeof o.totalRecords == "number";
|
|
4330
4337
|
if (t) {
|
|
4331
4338
|
for (const l of o.results)
|
|
@@ -4336,7 +4343,7 @@ function $r(o, e) {
|
|
|
4336
4343
|
}
|
|
4337
4344
|
return t;
|
|
4338
4345
|
}
|
|
4339
|
-
const
|
|
4346
|
+
const Or = {
|
|
4340
4347
|
method: "equal",
|
|
4341
4348
|
icon: "mdi:equal",
|
|
4342
4349
|
description: "Equals",
|
|
@@ -4349,12 +4356,12 @@ const Sr = {
|
|
|
4349
4356
|
"list"
|
|
4350
4357
|
],
|
|
4351
4358
|
key: "equal"
|
|
4352
|
-
},
|
|
4359
|
+
}, Er = {
|
|
4353
4360
|
method: "contains",
|
|
4354
4361
|
icon: "mdi:format-letter-matches",
|
|
4355
4362
|
description: "Contains",
|
|
4356
4363
|
allowedTypes: ["string"]
|
|
4357
|
-
},
|
|
4364
|
+
}, Fr = {
|
|
4358
4365
|
method: "lessthan",
|
|
4359
4366
|
icon: "mdi:less-than",
|
|
4360
4367
|
description: "Before",
|
|
@@ -4364,7 +4371,7 @@ const Sr = {
|
|
|
4364
4371
|
],
|
|
4365
4372
|
key: "before"
|
|
4366
4373
|
}, Ul = [
|
|
4367
|
-
|
|
4374
|
+
Er,
|
|
4368
4375
|
{
|
|
4369
4376
|
method: "notcontains",
|
|
4370
4377
|
icon: "mdi:format-letter-spacing-variant",
|
|
@@ -4383,7 +4390,7 @@ const Sr = {
|
|
|
4383
4390
|
description: "Ends with",
|
|
4384
4391
|
allowedTypes: ["string"]
|
|
4385
4392
|
},
|
|
4386
|
-
|
|
4393
|
+
Or,
|
|
4387
4394
|
{
|
|
4388
4395
|
method: "notequal",
|
|
4389
4396
|
icon: "mdi:not-equal",
|
|
@@ -4396,7 +4403,7 @@ const Sr = {
|
|
|
4396
4403
|
],
|
|
4397
4404
|
key: "notequal"
|
|
4398
4405
|
},
|
|
4399
|
-
|
|
4406
|
+
Fr,
|
|
4400
4407
|
{
|
|
4401
4408
|
method: "greaterthan",
|
|
4402
4409
|
icon: "mdi:greater-than",
|
|
@@ -4451,7 +4458,7 @@ const Sr = {
|
|
|
4451
4458
|
description: "Less than",
|
|
4452
4459
|
allowedTypes: ["number"]
|
|
4453
4460
|
}
|
|
4454
|
-
],
|
|
4461
|
+
], Dr = { class: "cl-group cl-inline cl-relative cl-w-auto" }, Nr = { class: "cl-bg-off-white cl-border-grey-1 cl-border-r cl-flex cl-h-full cl-items-center cl-justify-center cl-rounded-md cl-w-10" }, Ar = { class: "cl-p-2 cl-select-none" }, Vr = ["onClick"], qr = /* @__PURE__ */ K({
|
|
4455
4462
|
__name: "cl-ui-grid-method-selector",
|
|
4456
4463
|
props: {
|
|
4457
4464
|
filter: {},
|
|
@@ -4492,8 +4499,8 @@ const Sr = {
|
|
|
4492
4499
|
return;
|
|
4493
4500
|
l("update:filter", i);
|
|
4494
4501
|
}
|
|
4495
|
-
return (s, i) => (p(), w("div",
|
|
4496
|
-
v("div",
|
|
4502
|
+
return (s, i) => (p(), w("div", Dr, [
|
|
4503
|
+
v("div", Nr, [
|
|
4497
4504
|
a.value ? (p(), _(g(Z), {
|
|
4498
4505
|
key: 0,
|
|
4499
4506
|
icon: a.value.icon,
|
|
@@ -4510,33 +4517,33 @@ const Sr = {
|
|
|
4510
4517
|
"cl--left-44": !s.firstHalf
|
|
4511
4518
|
}])
|
|
4512
4519
|
}, [
|
|
4513
|
-
v("strong",
|
|
4514
|
-
(p(!0), w(
|
|
4520
|
+
v("strong", Ar, I(g(n)("grid.availableMethods")), 1),
|
|
4521
|
+
(p(!0), w(J, null, ue(r.value, (c, d) => {
|
|
4515
4522
|
var b;
|
|
4516
4523
|
return p(), w("span", {
|
|
4517
4524
|
key: d,
|
|
4518
4525
|
class: B(["cl-cursor-pointer cl-px-4 cl-py-1 cl-transition-colors cl-w-full hover:cl-bg-grey-0", {
|
|
4519
4526
|
"cl-bg-primary-default cl-opacity-80": c.method === ((b = a.value) == null ? void 0 : b.method)
|
|
4520
4527
|
}]),
|
|
4521
|
-
onClick:
|
|
4528
|
+
onClick: oe((y) => u(c.method), ["prevent"])
|
|
4522
4529
|
}, [
|
|
4523
4530
|
pe(I(c.description) + " ", 1),
|
|
4524
4531
|
N(g(Z), {
|
|
4525
4532
|
icon: c.icon,
|
|
4526
4533
|
class: "cl-float-right cl-text-grey-4 cl-text-sm"
|
|
4527
4534
|
}, null, 8, ["icon"])
|
|
4528
|
-
], 10,
|
|
4535
|
+
], 10, Vr);
|
|
4529
4536
|
}), 128))
|
|
4530
4537
|
], 2)
|
|
4531
4538
|
]));
|
|
4532
4539
|
}
|
|
4533
|
-
}),
|
|
4540
|
+
}), Ir = {
|
|
4534
4541
|
key: 0,
|
|
4535
4542
|
class: "cl-border cl-border-grey-2 cl-flex cl-overflow-hidden cl-rounded-md lg:cl-overflow-visible"
|
|
4536
|
-
},
|
|
4543
|
+
}, Rr = ["disabled"], Mr = /* @__PURE__ */ v("option", { value: void 0 }, null, -1), Lr = ["selected"], jr = ["selected"], Pr = /* @__PURE__ */ v("span", null, null, -1), zr = {
|
|
4537
4544
|
key: 4,
|
|
4538
4545
|
class: "cl-w-full"
|
|
4539
|
-
},
|
|
4546
|
+
}, Br = /* @__PURE__ */ v("span", null, null, -1), Ur = ["disabled"], xr = /* @__PURE__ */ v("option", { value: void 0 }, null, -1), Hr = ["value", "selected"], Gr = /* @__PURE__ */ K({
|
|
4540
4547
|
__name: "cl-ui-grid-filter",
|
|
4541
4548
|
props: {
|
|
4542
4549
|
loading: { type: Boolean },
|
|
@@ -4729,23 +4736,23 @@ const Sr = {
|
|
|
4729
4736
|
return;
|
|
4730
4737
|
m === !1 && (y.value = h);
|
|
4731
4738
|
}
|
|
4732
|
-
return (f, h) => x.value ? (p(), w("div",
|
|
4739
|
+
return (f, h) => x.value ? (p(), w("div", Ir, [
|
|
4733
4740
|
f.column.type === "boolean" || f.column.type === "slot" && f.column.slotType === "boolean" ? (p(), w("select", {
|
|
4734
4741
|
key: 0,
|
|
4735
4742
|
disabled: f.loading,
|
|
4736
4743
|
class: "!cl-h-[2rem] cl-bg-white cl-border-none cl-font-normal cl-mb-0 cl-rounded-md cl-w-full",
|
|
4737
4744
|
onChange: h[0] || (h[0] = (m) => ee(m.target))
|
|
4738
4745
|
}, [
|
|
4739
|
-
|
|
4746
|
+
Mr,
|
|
4740
4747
|
v("option", {
|
|
4741
4748
|
value: "true",
|
|
4742
4749
|
selected: O.value === "true"
|
|
4743
|
-
}, I(g(n)("grid.true")), 9,
|
|
4750
|
+
}, I(g(n)("grid.true")), 9, Lr),
|
|
4744
4751
|
v("option", {
|
|
4745
4752
|
value: "false",
|
|
4746
4753
|
selected: O.value === "false"
|
|
4747
|
-
}, I(g(n)("grid.false")), 9,
|
|
4748
|
-
], 40,
|
|
4754
|
+
}, I(g(n)("grid.false")), 9, jr)
|
|
4755
|
+
], 40, Rr)) : i.value ? (p(), _(hl, {
|
|
4749
4756
|
key: 1,
|
|
4750
4757
|
"model-value": E.value,
|
|
4751
4758
|
class: "!cl-h-[2rem] !cl-text-xs cl-border-none cl-mb-0 cl-w-full lg:!cl-text-base",
|
|
@@ -4778,10 +4785,10 @@ const Sr = {
|
|
|
4778
4785
|
"onUpdate:modelValue": h[3] || (h[3] = (m) => m !== null ? te(null, m) : ee(null, ""))
|
|
4779
4786
|
}, {
|
|
4780
4787
|
default: H(() => [
|
|
4781
|
-
|
|
4788
|
+
Pr
|
|
4782
4789
|
]),
|
|
4783
4790
|
_: 1
|
|
4784
|
-
}, 8, ["model-value", "format", "precision", "disabled", "readonly"])) : f.column.type === "string" || f.column.type === "slot" && f.column.slotType === "string" ? (p(), w("div",
|
|
4791
|
+
}, 8, ["model-value", "format", "precision", "disabled", "readonly"])) : f.column.type === "string" || f.column.type === "slot" && f.column.slotType === "string" ? (p(), w("div", zr, [
|
|
4785
4792
|
N(Ne, {
|
|
4786
4793
|
"model-value": O.value,
|
|
4787
4794
|
class: "cl-border-none cl-font-normal cl-h-[2rem] cl-px-3 cl-text-xs lg:cl-text-base",
|
|
@@ -4789,7 +4796,7 @@ const Sr = {
|
|
|
4789
4796
|
"onUpdate:modelValue": h[4] || (h[4] = (m) => ee(null, m))
|
|
4790
4797
|
}, {
|
|
4791
4798
|
default: H(() => [
|
|
4792
|
-
|
|
4799
|
+
Br
|
|
4793
4800
|
]),
|
|
4794
4801
|
_: 1
|
|
4795
4802
|
}, 8, ["model-value", "disabled"])
|
|
@@ -4799,14 +4806,14 @@ const Sr = {
|
|
|
4799
4806
|
disabled: f.loading,
|
|
4800
4807
|
onChange: h[5] || (h[5] = (m) => b.value ? te(m.target) : ee(m.target))
|
|
4801
4808
|
}, [
|
|
4802
|
-
|
|
4803
|
-
(p(!0), w(
|
|
4809
|
+
xr,
|
|
4810
|
+
(p(!0), w(J, null, ue(f.column.listEntries ?? [], (m) => (p(), w("option", {
|
|
4804
4811
|
key: m.value,
|
|
4805
4812
|
value: m.value,
|
|
4806
4813
|
selected: O.value === m.value.toString()
|
|
4807
|
-
}, I(g(n)(m.translationKey)), 9,
|
|
4808
|
-
], 40,
|
|
4809
|
-
c.value ? z("", !0) : (p(), _(
|
|
4814
|
+
}, I(g(n)(m.translationKey)), 9, Hr))), 128))
|
|
4815
|
+
], 40, Ur)) : z("", !0),
|
|
4816
|
+
c.value ? z("", !0) : (p(), _(qr, {
|
|
4810
4817
|
key: 6,
|
|
4811
4818
|
filter: F.value,
|
|
4812
4819
|
"onUpdate:filter": h[6] || (h[6] = (m) => F.value = m),
|
|
@@ -4817,7 +4824,7 @@ const Sr = {
|
|
|
4817
4824
|
}, null, 8, ["filter", "loading", "column", "default-operation", "first-half"]))
|
|
4818
4825
|
])) : z("", !0);
|
|
4819
4826
|
}
|
|
4820
|
-
}),
|
|
4827
|
+
}), Wr = { class: "-cl-top-1 cl-bg-white cl-shadow-sm cl-sticky cl-z-20 lg:cl-bg-transparent lg:cl-relative lg:cl-shadow-none" }, Kr = { class: "cl-hidden lg:cl-table-row" }, Zr = ["onClick"], _r = { class: "cl-flex cl-justify-end cl-w-full lg:cl-hidden" }, Qr = { class: "cl-col-span-2 lg:cl-hidden" }, Yr = ["onClick"], Jr = { class: "cl-font-normal cl-mr-1" }, Xr = /* @__PURE__ */ K({
|
|
4821
4828
|
__name: "cl-ui-grid-header",
|
|
4822
4829
|
props: {
|
|
4823
4830
|
request: {},
|
|
@@ -4855,9 +4862,9 @@ const Sr = {
|
|
|
4855
4862
|
], c.pageNumber = 1, r.value = c;
|
|
4856
4863
|
}
|
|
4857
4864
|
}
|
|
4858
|
-
return (i, c) => (p(), w("thead",
|
|
4859
|
-
v("tr",
|
|
4860
|
-
(p(!0), w(
|
|
4865
|
+
return (i, c) => (p(), w("thead", Wr, [
|
|
4866
|
+
v("tr", Kr, [
|
|
4867
|
+
(p(!0), w(J, null, ue(i.columns, (d, b) => (p(), w("th", {
|
|
4861
4868
|
key: b,
|
|
4862
4869
|
class: B(["cl-text-grey-3 cl-text-sm", {
|
|
4863
4870
|
"cl-cursor-pointer": g(Je)(d) && i.loading === !1
|
|
@@ -4866,46 +4873,46 @@ const Sr = {
|
|
|
4866
4873
|
}
|
|
4867
4874
|
}, [
|
|
4868
4875
|
pe(I(d.caption) + " ", 1),
|
|
4869
|
-
|
|
4876
|
+
X(N(g(Z), {
|
|
4870
4877
|
class: "cl-inline-block",
|
|
4871
4878
|
icon: "ph:caret-up"
|
|
4872
4879
|
}, null, 512), [
|
|
4873
|
-
[
|
|
4880
|
+
[ae, a(d, !0)]
|
|
4874
4881
|
]),
|
|
4875
|
-
|
|
4882
|
+
X(N(g(Z), {
|
|
4876
4883
|
class: "cl-inline-block",
|
|
4877
4884
|
icon: "ph:caret-down"
|
|
4878
4885
|
}, null, 512), [
|
|
4879
|
-
[
|
|
4886
|
+
[ae, a(d, !1)]
|
|
4880
4887
|
])
|
|
4881
|
-
], 10,
|
|
4888
|
+
], 10, Zr))), 128))
|
|
4882
4889
|
]),
|
|
4883
4890
|
v("tr", {
|
|
4884
4891
|
class: B(["cl-border cl-border-grey-2 cl-flex cl-flex-wrap cl-p-2 lg:cl-border-none lg:cl-p-0 lg:cl-table-row", {
|
|
4885
4892
|
"cl-hidden lg:cl-table-row": !i.filterPanelOpen
|
|
4886
4893
|
}])
|
|
4887
4894
|
}, [
|
|
4888
|
-
v("div",
|
|
4895
|
+
v("div", _r, [
|
|
4889
4896
|
N(g(Z), {
|
|
4890
4897
|
class: "cl-text-grey-4 hover:cl-cursor-pointer hover:cl-text-link-default",
|
|
4891
4898
|
icon: "ph:x",
|
|
4892
4899
|
size: 16,
|
|
4893
|
-
onClick: c[0] || (c[0] =
|
|
4900
|
+
onClick: c[0] || (c[0] = oe((d) => i.loading === !1 ? i.$emit("update:filterPanelOpen", !1) : void 0, ["prevent"]))
|
|
4894
4901
|
})
|
|
4895
4902
|
]),
|
|
4896
|
-
(p(!0), w(
|
|
4903
|
+
(p(!0), w(J, null, ue(i.columns, (d, b) => (p(), w("th", {
|
|
4897
4904
|
key: b,
|
|
4898
4905
|
class: B(["cl-grid cl-grid-cols-4 cl-py-1 cl-text-xs cl-w-full lg:cl-table-cell lg:cl-w-auto", {
|
|
4899
4906
|
"cl-hidden lg:cl-table-cell": !g($l)(d)
|
|
4900
4907
|
}])
|
|
4901
4908
|
}, [
|
|
4902
|
-
v("div",
|
|
4909
|
+
v("div", Qr, I(d.caption), 1),
|
|
4903
4910
|
g(Je)(d) ? (p(), w("div", {
|
|
4904
4911
|
key: 0,
|
|
4905
4912
|
class: "cl-col-span-2 cl-gap-1 cl-span lg:cl-hidden",
|
|
4906
4913
|
onClick: (y) => i.loading === !1 ? u(d.field) : void 0
|
|
4907
4914
|
}, [
|
|
4908
|
-
v("span",
|
|
4915
|
+
v("span", Jr, I(g(n)("grid.sortBy")), 1),
|
|
4909
4916
|
a(d, !0) ? (p(), _(g(Z), {
|
|
4910
4917
|
key: 0,
|
|
4911
4918
|
class: "cl-cursor-pointer cl-inline-block",
|
|
@@ -4919,8 +4926,8 @@ const Sr = {
|
|
|
4919
4926
|
class: "cl-cursor-pointer cl-inline-block",
|
|
4920
4927
|
icon: "ph:minus"
|
|
4921
4928
|
}))
|
|
4922
|
-
], 8,
|
|
4923
|
-
N(
|
|
4929
|
+
], 8, Yr)) : z("", !0),
|
|
4930
|
+
N(Gr, {
|
|
4924
4931
|
class: "cl-col-span-4",
|
|
4925
4932
|
loading: i.loading,
|
|
4926
4933
|
filter: r.value.filters.filter((y) => y.filterOnColumn === d.field),
|
|
@@ -4935,7 +4942,7 @@ const Sr = {
|
|
|
4935
4942
|
], 2)
|
|
4936
4943
|
]));
|
|
4937
4944
|
}
|
|
4938
|
-
}),
|
|
4945
|
+
}), ei = { class: "cl-flex cl-mb-2" }, li = { class: "cl-basis-full cl-grow" }, ti = /* @__PURE__ */ v("span", null, null, -1), oi = /* @__PURE__ */ K({
|
|
4939
4946
|
__name: "cl-ui-grid-search",
|
|
4940
4947
|
props: /* @__PURE__ */ Oe({
|
|
4941
4948
|
columns: {},
|
|
@@ -4969,8 +4976,8 @@ const Sr = {
|
|
|
4969
4976
|
return (s, i) => {
|
|
4970
4977
|
const c = yl("icon");
|
|
4971
4978
|
return U(s.$slots, "search", me(he({ searchValue: l.value, performSearch: a })), () => [
|
|
4972
|
-
v("div",
|
|
4973
|
-
v("div",
|
|
4979
|
+
v("div", ei, [
|
|
4980
|
+
v("div", li, [
|
|
4974
4981
|
N(Ne, {
|
|
4975
4982
|
modelValue: l.value,
|
|
4976
4983
|
"onUpdate:modelValue": i[0] || (i[0] = (d) => l.value = d),
|
|
@@ -4981,7 +4988,7 @@ const Sr = {
|
|
|
4981
4988
|
onBlur: i[2] || (i[2] = (d) => a(l.value))
|
|
4982
4989
|
}, {
|
|
4983
4990
|
default: H(() => [
|
|
4984
|
-
|
|
4991
|
+
ti
|
|
4985
4992
|
]),
|
|
4986
4993
|
_: 1
|
|
4987
4994
|
}, 8, ["modelValue", "placeholder"])
|
|
@@ -4989,13 +4996,13 @@ const Sr = {
|
|
|
4989
4996
|
N(c, {
|
|
4990
4997
|
class: "cl-absolute cl-cursor-pointer cl-right-1 cl-text-grey-4 cl-top-3 cl-z-10 hover:cl-text-link-light lg:cl-right-4",
|
|
4991
4998
|
icon: "ph:x-bold",
|
|
4992
|
-
onClick: i[3] || (i[3] =
|
|
4999
|
+
onClick: i[3] || (i[3] = oe((d) => a(""), ["prevent"]))
|
|
4993
5000
|
})
|
|
4994
5001
|
])
|
|
4995
5002
|
]);
|
|
4996
5003
|
};
|
|
4997
5004
|
}
|
|
4998
|
-
}),
|
|
5005
|
+
}), ai = { class: "cl-fixed cl-flex cl-h-full cl-justify-end cl-right-0 cl-shadow-lg cl-top-0 cl-z-40" }, ni = { class: "cl-bg-secondary-default cl-h-full cl-overflow-y-auto cl-overscroll-y-none cl-px-10 cl-py-20 cl-relative cl-text-grey-2 cl-w-80" }, ri = { class: "cl-mb-4 cl-text-2xl cl-text-off-white" }, ii = { class: "cl-border-grey-3 cl-border-t cl-flex cl-flex-wrap cl-text-sm cl-w-full" }, si = { class: "cl-border-b cl-border-grey-2 cl-flex cl-py-2 cl-text-sm cl-w-full" }, ci = { class: "cl-flex-1 cl-py-2" }, ui = { class: "cl-py-2 cl-w-1/4" }, di = { class: "cl-py-2 cl-w-1/5" }, fi = { class: "cl-flex-1 cl-py-2" }, pi = { class: "cl-py-2 cl-w-1/4" }, mi = { class: "cl-py-2 cl-text-off-white cl-w-1/5" }, vi = { key: 1 }, hi = /* @__PURE__ */ K({
|
|
4999
5006
|
inheritAttrs: !1,
|
|
5000
5007
|
__name: "cl-ui-grid-view-manager",
|
|
5001
5008
|
props: {
|
|
@@ -5016,12 +5023,12 @@ const Sr = {
|
|
|
5016
5023
|
const d = ve(t.columns), b = c === "up" ? i + 1 : i - 1;
|
|
5017
5024
|
a(d, i, b), l("update:columns", d);
|
|
5018
5025
|
}
|
|
5019
|
-
return (i, c) => (p(), w(
|
|
5026
|
+
return (i, c) => (p(), w(J, null, [
|
|
5020
5027
|
N(ye, ce(i.$attrs, {
|
|
5021
5028
|
class: "cl-w-full",
|
|
5022
5029
|
size: "small",
|
|
5023
5030
|
disabled: i.loading,
|
|
5024
|
-
onClick: c[0] || (c[0] =
|
|
5031
|
+
onClick: c[0] || (c[0] = oe((d) => r.value = !0, ["prevent"]))
|
|
5025
5032
|
}), {
|
|
5026
5033
|
default: H(() => [
|
|
5027
5034
|
pe(I(g(n)("grid.manageView")), 1)
|
|
@@ -5031,34 +5038,34 @@ const Sr = {
|
|
|
5031
5038
|
(p(), _(bl, { to: "body" }, [
|
|
5032
5039
|
N(Ee, { name: "slide-left" }, {
|
|
5033
5040
|
default: H(() => [
|
|
5034
|
-
|
|
5035
|
-
v("div",
|
|
5041
|
+
X(v("div", ai, [
|
|
5042
|
+
v("div", ni, [
|
|
5036
5043
|
N(g(Z), {
|
|
5037
5044
|
class: "cl-absolute cl-cursor-pointer cl-right-3 cl-text-off-white cl-top-3",
|
|
5038
5045
|
icon: "ph:x",
|
|
5039
5046
|
size: 16,
|
|
5040
5047
|
onClick: c[1] || (c[1] = (d) => r.value = !1)
|
|
5041
5048
|
}),
|
|
5042
|
-
v("h3",
|
|
5043
|
-
v("ul",
|
|
5044
|
-
v("li",
|
|
5045
|
-
v("strong",
|
|
5046
|
-
v("strong",
|
|
5047
|
-
v("strong",
|
|
5049
|
+
v("h3", ri, I(g(n)("grid.manageView")), 1),
|
|
5050
|
+
v("ul", ii, [
|
|
5051
|
+
v("li", si, [
|
|
5052
|
+
v("strong", ci, I(g(n)("grid.column")), 1),
|
|
5053
|
+
v("strong", ui, I(g(n)("grid.visible")), 1),
|
|
5054
|
+
v("strong", di, I(g(n)("grid.order")), 1)
|
|
5048
5055
|
]),
|
|
5049
|
-
(p(!0), w(
|
|
5056
|
+
(p(!0), w(J, null, ue(i.columns, (d, b) => (p(), w("li", {
|
|
5050
5057
|
key: b,
|
|
5051
5058
|
class: "cl-border-b cl-border-grey-2 cl-flex cl-py-2 cl-text-sm cl-w-full"
|
|
5052
5059
|
}, [
|
|
5053
|
-
v("div",
|
|
5054
|
-
v("div",
|
|
5060
|
+
v("div", fi, I(d.caption), 1),
|
|
5061
|
+
v("div", pi, [
|
|
5055
5062
|
N(lt, {
|
|
5056
5063
|
"model-value": d.visible === void 0 || d.visible === !0,
|
|
5057
5064
|
"onUpdate:modelValue": (y) => u(y, d)
|
|
5058
5065
|
}, null, 8, ["model-value", "onUpdate:modelValue"])
|
|
5059
5066
|
]),
|
|
5060
|
-
v("div",
|
|
5061
|
-
d.visible === void 0 || d.visible === !0 ? (p(), w(
|
|
5067
|
+
v("div", mi, [
|
|
5068
|
+
d.visible === void 0 || d.visible === !0 ? (p(), w(J, { key: 0 }, [
|
|
5062
5069
|
b !== 0 ? (p(), _(g(Z), {
|
|
5063
5070
|
key: 0,
|
|
5064
5071
|
class: "cl-cursor-pointer cl-inline-block cl-mr-2",
|
|
@@ -5071,13 +5078,13 @@ const Sr = {
|
|
|
5071
5078
|
icon: "ph:arrow-right",
|
|
5072
5079
|
onClick: (y) => s(b, "up")
|
|
5073
5080
|
}, null, 8, ["onClick"])) : z("", !0)
|
|
5074
|
-
], 64)) : (p(), w("em",
|
|
5081
|
+
], 64)) : (p(), w("em", vi, I(g(n)("grid.hidden")), 1))
|
|
5075
5082
|
])
|
|
5076
5083
|
]))), 128))
|
|
5077
5084
|
])
|
|
5078
5085
|
])
|
|
5079
5086
|
], 512), [
|
|
5080
|
-
[
|
|
5087
|
+
[ae, r.value]
|
|
5081
5088
|
])
|
|
5082
5089
|
]),
|
|
5083
5090
|
_: 1
|
|
@@ -5085,7 +5092,7 @@ const Sr = {
|
|
|
5085
5092
|
]))
|
|
5086
5093
|
], 64));
|
|
5087
5094
|
}
|
|
5088
|
-
}),
|
|
5095
|
+
}), gi = { class: "cl-relative cl-w-full grid-wrapper lg:cl-min-h-fit" }, bi = { class: "cl-absolute cl-flex cl-items-center cl-justify-center cl-min-h-full cl-p-28 cl-pt-0 cl-w-full" }, yi = { class: "cl-overflow-x-auto cl-overscroll-x-none cl-pt-1" }, wi = { class: "cl-hidden lg:cl-table-column-group" }, ki = /* @__PURE__ */ K({
|
|
5089
5096
|
__name: "cl-ui-grid",
|
|
5090
5097
|
props: {
|
|
5091
5098
|
columns: {},
|
|
@@ -5155,8 +5162,8 @@ const Sr = {
|
|
|
5155
5162
|
};
|
|
5156
5163
|
}
|
|
5157
5164
|
}), x = R(((te = t.request.filters.find(($) => $.filterMethod === "andcontains" || $.filterOperation === le.AND_CONTAINS)) == null ? void 0 : te.filterValue) ?? ""), ee = A(() => t.columns.filter(($) => ($.type === "string" || $.type === "slot" && $.slotType === "string") && $.searchable));
|
|
5158
|
-
return ($, f) => (p(), w("div",
|
|
5159
|
-
ee.value.length > 0 ? (p(), _(
|
|
5165
|
+
return ($, f) => (p(), w("div", gi, [
|
|
5166
|
+
ee.value.length > 0 ? (p(), _(oi, {
|
|
5160
5167
|
key: 0,
|
|
5161
5168
|
"search-value": x.value,
|
|
5162
5169
|
"onUpdate:searchValue": f[0] || (f[0] = (h) => x.value = h),
|
|
@@ -5171,15 +5178,15 @@ const Sr = {
|
|
|
5171
5178
|
}, 8, ["search-value", "request", "columns"])) : z("", !0),
|
|
5172
5179
|
N(Ee, { name: "fade" }, {
|
|
5173
5180
|
default: H(() => [
|
|
5174
|
-
|
|
5181
|
+
X(v("div", bi, [
|
|
5175
5182
|
N(sl, { class: "after:!cl-h-20 after:!cl-w-20 cl-h-20 cl-w-20" })
|
|
5176
5183
|
], 512), [
|
|
5177
|
-
[
|
|
5184
|
+
[ae, $.loading]
|
|
5178
5185
|
])
|
|
5179
5186
|
]),
|
|
5180
5187
|
_: 1
|
|
5181
5188
|
}),
|
|
5182
|
-
N(
|
|
5189
|
+
N(Oa, {
|
|
5183
5190
|
"edit-mode": D.value,
|
|
5184
5191
|
"onUpdate:editMode": f[3] || (f[3] = (h) => D.value = h),
|
|
5185
5192
|
"filter-panel-open": O.value,
|
|
@@ -5194,7 +5201,7 @@ const Sr = {
|
|
|
5194
5201
|
U($.$slots, "additional-grid-actions", me(he(h)))
|
|
5195
5202
|
]),
|
|
5196
5203
|
"view-manager": H(() => [
|
|
5197
|
-
N(
|
|
5204
|
+
N(hi, {
|
|
5198
5205
|
columns: a.value,
|
|
5199
5206
|
"onUpdate:columns": f[2] || (f[2] = (h) => a.value = h),
|
|
5200
5207
|
loading: $.loading
|
|
@@ -5202,20 +5209,20 @@ const Sr = {
|
|
|
5202
5209
|
]),
|
|
5203
5210
|
_: 3
|
|
5204
5211
|
}, 8, ["edit-mode", "filter-panel-open", "columns", "options", "request", "loading"]),
|
|
5205
|
-
v("div",
|
|
5212
|
+
v("div", yi, [
|
|
5206
5213
|
v("table", {
|
|
5207
5214
|
class: B(["cl-delay-75 cl-min-h-[276px] cl-overflow-x-auto cl-overscroll-x-none cl-text-left cl-transition-opacity cl-w-full", {
|
|
5208
5215
|
"cl-opacity-40 cl-pointer-events-none": $.loading
|
|
5209
5216
|
}])
|
|
5210
5217
|
}, [
|
|
5211
|
-
v("colgroup",
|
|
5212
|
-
(p(!0), w(
|
|
5218
|
+
v("colgroup", wi, [
|
|
5219
|
+
(p(!0), w(J, null, ue(u.value, (h, m) => (p(), w("col", {
|
|
5213
5220
|
key: m,
|
|
5214
5221
|
style: $t(c(h.name)),
|
|
5215
5222
|
span: 1
|
|
5216
5223
|
}, null, 4))), 128))
|
|
5217
5224
|
]),
|
|
5218
|
-
N(
|
|
5225
|
+
N(Xr, {
|
|
5219
5226
|
request: V.value,
|
|
5220
5227
|
"onUpdate:request": f[5] || (f[5] = (h) => V.value = h),
|
|
5221
5228
|
"filter-panel-open": O.value,
|
|
@@ -5226,7 +5233,7 @@ const Sr = {
|
|
|
5226
5233
|
"time-zone": $.timeZone,
|
|
5227
5234
|
"header-display-timezone": n.value
|
|
5228
5235
|
}, null, 8, ["request", "filter-panel-open", "columns", "options", "loading", "time-zone", "header-display-timezone"]),
|
|
5229
|
-
N(
|
|
5236
|
+
N(Ua, {
|
|
5230
5237
|
columns: u.value,
|
|
5231
5238
|
request: d.value,
|
|
5232
5239
|
data: F.value,
|
|
@@ -5249,7 +5256,7 @@ const Sr = {
|
|
|
5249
5256
|
]), 1032, ["columns", "request", "data", "time-zone", "loading", "search-value", "options", "edit-mode"])
|
|
5250
5257
|
], 2)
|
|
5251
5258
|
]),
|
|
5252
|
-
N(
|
|
5259
|
+
N(Tn, {
|
|
5253
5260
|
request: d.value,
|
|
5254
5261
|
"onUpdate:request": f[10] || (f[10] = (h) => d.value = h),
|
|
5255
5262
|
loading: $.loading,
|
|
@@ -5257,7 +5264,7 @@ const Sr = {
|
|
|
5257
5264
|
}, null, 8, ["request", "loading", "data"])
|
|
5258
5265
|
]));
|
|
5259
5266
|
}
|
|
5260
|
-
}),
|
|
5267
|
+
}), $i = { class: "cl-absolute cl-bg-secondary-default cl-flex cl-h-20 cl-items-center cl-justify-between cl-left-0 cl-top-0 cl-w-full cl-z-40" }, Si = /* @__PURE__ */ K({
|
|
5261
5268
|
__name: "cl-ui-header",
|
|
5262
5269
|
props: {
|
|
5263
5270
|
isOpen: { type: Boolean }
|
|
@@ -5267,7 +5274,7 @@ const Sr = {
|
|
|
5267
5274
|
const t = o, l = e, n = R();
|
|
5268
5275
|
return wl(n, () => {
|
|
5269
5276
|
(t.isOpen ?? !1) && l("open-click");
|
|
5270
|
-
}), (r, a) => (p(), w("header",
|
|
5277
|
+
}), (r, a) => (p(), w("header", $i, [
|
|
5271
5278
|
U(r.$slots, "logo"),
|
|
5272
5279
|
v("div", {
|
|
5273
5280
|
ref_key: "headerMenuElement",
|
|
@@ -5280,13 +5287,13 @@ const Sr = {
|
|
|
5280
5287
|
], 512)
|
|
5281
5288
|
]));
|
|
5282
5289
|
}
|
|
5283
|
-
}),
|
|
5290
|
+
}), Ti = { class: "cl-bg-transparent cl-flex cl-items-center cl-select-none hover:cl-bg-opacity-10 hover:cl-bg-white md:cl-min-w-[320px]" }, Ci = ["src"], Oi = {
|
|
5284
5291
|
key: 0,
|
|
5285
5292
|
class: "cl-text-ellipsis cl-whitespace-nowrap"
|
|
5286
|
-
},
|
|
5293
|
+
}, Ei = {
|
|
5287
5294
|
key: 1,
|
|
5288
5295
|
class: "cl-text-ellipsis cl-text-xs cl-whitespace-nowrap"
|
|
5289
|
-
},
|
|
5296
|
+
}, Fi = { class: "cl-content-center cl-flex cl-h-20 cl-items-center cl-justify-center cl-justify-items-center cl-transition-all cl-w-10 md:cl-ml-4 md:cl-w-20" }, Di = { class: "cl-absolute cl-bg-white cl-right-0 cl-shadow-2xl cl-top-20 cl-w-full cl-z-20" }, Ni = /* @__PURE__ */ K({
|
|
5290
5297
|
__name: "cl-ui-header-menu",
|
|
5291
5298
|
props: {
|
|
5292
5299
|
username: { default: "" },
|
|
@@ -5302,12 +5309,12 @@ const Sr = {
|
|
|
5302
5309
|
"cl-bg-blue-light": e.colour === "secondary"
|
|
5303
5310
|
}])
|
|
5304
5311
|
}, [
|
|
5305
|
-
v("div",
|
|
5312
|
+
v("div", Ti, [
|
|
5306
5313
|
e.image ? (p(), w("img", {
|
|
5307
5314
|
key: 0,
|
|
5308
5315
|
src: e.image,
|
|
5309
5316
|
class: "cl-hidden cl-m-4 cl-max-h-12 cl-max-w-12 cl-ring-2 cl-ring-white cl-rounded-full md:cl-block"
|
|
5310
|
-
}, null, 8,
|
|
5317
|
+
}, null, 8, Ci)) : (p(), _(g(Z), {
|
|
5311
5318
|
key: 1,
|
|
5312
5319
|
class: "cl-hidden cl-m-4 cl-text-white md:cl-block",
|
|
5313
5320
|
icon: "ph:user-circle",
|
|
@@ -5320,10 +5327,10 @@ const Sr = {
|
|
|
5320
5327
|
"cl-text-white": e.colour === "secondary"
|
|
5321
5328
|
}])
|
|
5322
5329
|
}, [
|
|
5323
|
-
e.username ? (p(), w("div",
|
|
5324
|
-
e.group ? (p(), w("div",
|
|
5330
|
+
e.username ? (p(), w("div", Oi, I(e.username), 1)) : z("", !0),
|
|
5331
|
+
e.group ? (p(), w("div", Ei, I(e.group), 1)) : z("", !0)
|
|
5325
5332
|
], 2),
|
|
5326
|
-
v("div",
|
|
5333
|
+
v("div", Fi, [
|
|
5327
5334
|
N(g(Z), {
|
|
5328
5335
|
class: B(["cl-transform-gpu cl-transition-transform", {
|
|
5329
5336
|
"cl-rotate-180": e.isOpen,
|
|
@@ -5336,20 +5343,20 @@ const Sr = {
|
|
|
5336
5343
|
]),
|
|
5337
5344
|
N(Ee, { name: "fade" }, {
|
|
5338
5345
|
default: H(() => [
|
|
5339
|
-
|
|
5346
|
+
X(v("div", Di, [
|
|
5340
5347
|
U(e.$slots, "default")
|
|
5341
5348
|
], 512), [
|
|
5342
|
-
[
|
|
5349
|
+
[ae, e.isOpen]
|
|
5343
5350
|
])
|
|
5344
5351
|
]),
|
|
5345
5352
|
_: 3
|
|
5346
5353
|
})
|
|
5347
5354
|
], 2));
|
|
5348
5355
|
}
|
|
5349
|
-
}),
|
|
5356
|
+
}), Ai = [
|
|
5350
5357
|
"default",
|
|
5351
5358
|
"secondary"
|
|
5352
|
-
],
|
|
5359
|
+
], Vi = [
|
|
5353
5360
|
"button",
|
|
5354
5361
|
"checkbox",
|
|
5355
5362
|
"color",
|
|
@@ -5371,24 +5378,24 @@ const Sr = {
|
|
|
5371
5378
|
function gl(o) {
|
|
5372
5379
|
return /[a-z]{2}-[A-Z]{2}/gm.test(o.localeCode);
|
|
5373
5380
|
}
|
|
5374
|
-
function
|
|
5381
|
+
function qi(o) {
|
|
5375
5382
|
let e = Array.isArray(o);
|
|
5376
5383
|
if (e) {
|
|
5377
5384
|
for (const t of o)
|
|
5378
|
-
if (!
|
|
5385
|
+
if (!Ii(t)) {
|
|
5379
5386
|
e = !1;
|
|
5380
5387
|
break;
|
|
5381
5388
|
}
|
|
5382
5389
|
}
|
|
5383
5390
|
return e;
|
|
5384
5391
|
}
|
|
5385
|
-
function
|
|
5392
|
+
function Ii(o) {
|
|
5386
5393
|
return typeof o.name == "string" && typeof o.nativeName == "string" && typeof o.localeCode == "string";
|
|
5387
5394
|
}
|
|
5388
|
-
const
|
|
5395
|
+
const Ri = {
|
|
5389
5396
|
key: 0,
|
|
5390
5397
|
class: "cl-flex cl-relative cl-select-none cl-w-auto cl-z-30"
|
|
5391
|
-
},
|
|
5398
|
+
}, Mi = { class: "cl-absolute cl-bg-white cl-border cl-border-grey-0 cl-overflow-hidden cl-right-0 cl-rounded cl-shadow-xl cl-text-black cl-top-6 cl-z-30" }, Li = ["data-localename", "data-localecode", "onClick"], ji = { class: "cl-text-xs" }, Pi = /* @__PURE__ */ K({
|
|
5392
5399
|
__name: "cl-ui-language-switcher",
|
|
5393
5400
|
props: {
|
|
5394
5401
|
supportedLanguages: {},
|
|
@@ -5407,7 +5414,7 @@ const Vi = {
|
|
|
5407
5414
|
}
|
|
5408
5415
|
return ne(() => t.disabled, (c) => {
|
|
5409
5416
|
c && (r.value = !1);
|
|
5410
|
-
}), (c, d) => a.value !== null && g(gl)(a.value) ? (p(), w("div",
|
|
5417
|
+
}), (c, d) => a.value !== null && g(gl)(a.value) ? (p(), w("div", Ri, [
|
|
5411
5418
|
v("div", {
|
|
5412
5419
|
class: B(["cl-flex cl-items-center", {
|
|
5413
5420
|
"cl-cursor-pointer": !c.disabled
|
|
@@ -5422,8 +5429,8 @@ const Vi = {
|
|
|
5422
5429
|
], 2),
|
|
5423
5430
|
N(Ee, { name: "fade" }, {
|
|
5424
5431
|
default: H(() => [
|
|
5425
|
-
|
|
5426
|
-
(p(!0), w(
|
|
5432
|
+
X(v("div", Mi, [
|
|
5433
|
+
(p(!0), w(J, null, ue(u.value, (b, y) => (p(), w("div", {
|
|
5427
5434
|
key: y,
|
|
5428
5435
|
class: "cl-border-b cl-border-grey-0 cl-cursor-pointer cl-flex cl-items-center cl-justify-center cl-p-1 cl-text-center cl-transition-colors cl-w-28 hover:cl-bg-grey-0 last-child:cl-border-b-0 last:cl-border-b-0 lg:cl-p-2",
|
|
5429
5436
|
"data-localename": b.name,
|
|
@@ -5432,23 +5439,23 @@ const Vi = {
|
|
|
5432
5439
|
n.value = b.localeCode, i(), l("language-select", b.localeCode);
|
|
5433
5440
|
}
|
|
5434
5441
|
}, [
|
|
5435
|
-
v("span",
|
|
5436
|
-
], 8,
|
|
5442
|
+
v("span", ji, I(b.nativeName), 1)
|
|
5443
|
+
], 8, Li))), 128))
|
|
5437
5444
|
], 512), [
|
|
5438
|
-
[
|
|
5445
|
+
[ae, r.value]
|
|
5439
5446
|
])
|
|
5440
5447
|
]),
|
|
5441
5448
|
_: 1
|
|
5442
5449
|
})
|
|
5443
5450
|
])) : z("", !0);
|
|
5444
5451
|
}
|
|
5445
|
-
}),
|
|
5452
|
+
}), zi = { class: "cl-relative" }, Bi = { class: "cl-h-full cl-z-0 xl:cl-h-screen" }, Ui = { class: "cl-absolute cl-bg-secondary-default cl-gap-y-1 cl-grid cl-grid-cols-1 cl-left-0 cl-opacity-95 cl-p-6 cl-top-0 cl-w-full cl-z-10 lg:cl-gap-x-1 lg:cl-grid-cols-10 lg:cl-p-10" }, xi = { class: "cl-col-span-10 lg:cl-col-span-3" }, Hi = {
|
|
5446
5453
|
key: 0,
|
|
5447
5454
|
class: "cl-col-span-10 cl-flex cl-items-start cl-justify-end cl-text-white lg:cl-col-span-1 lg:cl-p-2"
|
|
5448
|
-
},
|
|
5455
|
+
}, Gi = { class: "cl-col-span-3" }, Wi = { class: "cl-relative cl-text-grey-4" }, Ki = { class: "cl-w-full" }, Zi = /* @__PURE__ */ v("span", null, null, -1), _i = {
|
|
5449
5456
|
key: 0,
|
|
5450
5457
|
class: "cl-bg-primary-lighter cl-mt-1 cl-rounded-md cl-text-center cl-text-secondary-default cl-text-xs cl-w-full"
|
|
5451
|
-
},
|
|
5458
|
+
}, Qi = { class: "cl-col-span-3" }, Yi = { class: "cl-relative cl-text-grey-4" }, Ji = /* @__PURE__ */ v("span", null, null, -1), Xi = { class: "cl-col-span-10 cl-emphasis-danger cl-mt-10 cl-p-3 cl-rounded-md cl-text-sm md:cl-mt-3" }, es = /* @__PURE__ */ K({
|
|
5452
5459
|
__name: "cl-ui-login",
|
|
5453
5460
|
props: {
|
|
5454
5461
|
errors: { default: () => [] },
|
|
@@ -5470,15 +5477,15 @@ const Vi = {
|
|
|
5470
5477
|
return ne([
|
|
5471
5478
|
n,
|
|
5472
5479
|
r
|
|
5473
|
-
], i), (c, d) => (p(), w("div",
|
|
5474
|
-
v("div",
|
|
5480
|
+
], i), (c, d) => (p(), w("div", zi, [
|
|
5481
|
+
v("div", Bi, [
|
|
5475
5482
|
U(c.$slots, "background")
|
|
5476
5483
|
]),
|
|
5477
|
-
v("form",
|
|
5478
|
-
v("div",
|
|
5484
|
+
v("form", Ui, [
|
|
5485
|
+
v("div", xi, [
|
|
5479
5486
|
U(c.$slots, "logo")
|
|
5480
5487
|
]),
|
|
5481
|
-
c.$slots["language-switcher"] ? (p(), w("div",
|
|
5488
|
+
c.$slots["language-switcher"] ? (p(), w("div", Hi, [
|
|
5482
5489
|
U(c.$slots, "language-switcher")
|
|
5483
5490
|
])) : z("", !0),
|
|
5484
5491
|
v("div", {
|
|
@@ -5487,14 +5494,14 @@ const Vi = {
|
|
|
5487
5494
|
"cl-col-span-6": c.$slots["language-switcher"]
|
|
5488
5495
|
}])
|
|
5489
5496
|
}, [
|
|
5490
|
-
v("div",
|
|
5491
|
-
v("div",
|
|
5497
|
+
v("div", Gi, [
|
|
5498
|
+
v("div", Wi, [
|
|
5492
5499
|
N(g(Z), {
|
|
5493
5500
|
class: "cl-absolute cl-left-3 cl-top-3 cl-z-10",
|
|
5494
5501
|
icon: "ph:user",
|
|
5495
5502
|
size: 18
|
|
5496
5503
|
}),
|
|
5497
|
-
v("div",
|
|
5504
|
+
v("div", Ki, [
|
|
5498
5505
|
N(Ne, {
|
|
5499
5506
|
id: "cl-ui-login-usernameinput",
|
|
5500
5507
|
modelValue: n.value,
|
|
@@ -5510,36 +5517,36 @@ const Vi = {
|
|
|
5510
5517
|
autocomplete: "username"
|
|
5511
5518
|
}, {
|
|
5512
5519
|
default: H(() => [
|
|
5513
|
-
|
|
5520
|
+
Zi
|
|
5514
5521
|
]),
|
|
5515
5522
|
_: 1
|
|
5516
5523
|
}, 8, ["modelValue", "class", "errors", "placeholder"]),
|
|
5517
|
-
u.value ? (p(), w("div",
|
|
5524
|
+
u.value ? (p(), w("div", _i, I(g(l)("login.validEmail")), 1)) : z("", !0)
|
|
5518
5525
|
])
|
|
5519
5526
|
])
|
|
5520
5527
|
]),
|
|
5521
|
-
v("div",
|
|
5522
|
-
v("div",
|
|
5528
|
+
v("div", Qi, [
|
|
5529
|
+
v("div", Yi, [
|
|
5523
5530
|
N(g(Z), {
|
|
5524
5531
|
class: "cl-absolute cl-left-3 cl-top-3 cl-z-10",
|
|
5525
5532
|
icon: "ph:lock",
|
|
5526
5533
|
size: 18
|
|
5527
5534
|
}),
|
|
5528
|
-
|
|
5535
|
+
X(N(g(Z), {
|
|
5529
5536
|
class: "cl-absolute cl-cursor-pointer cl-right-4 cl-top-3 cl-z-10",
|
|
5530
5537
|
icon: "ph:eye",
|
|
5531
5538
|
size: 18,
|
|
5532
5539
|
onClick: d[1] || (d[1] = (b) => a.value = "text")
|
|
5533
5540
|
}, null, 512), [
|
|
5534
|
-
[
|
|
5541
|
+
[ae, a.value === "password"]
|
|
5535
5542
|
]),
|
|
5536
|
-
|
|
5543
|
+
X(N(g(Z), {
|
|
5537
5544
|
class: "cl-absolute cl-cursor-pointer cl-right-4 cl-top-3 cl-z-10",
|
|
5538
5545
|
icon: "ph:eye-slash",
|
|
5539
5546
|
size: 18,
|
|
5540
5547
|
onClick: d[2] || (d[2] = (b) => a.value = "password")
|
|
5541
5548
|
}, null, 512), [
|
|
5542
|
-
[
|
|
5549
|
+
[ae, a.value === "text"]
|
|
5543
5550
|
]),
|
|
5544
5551
|
N(Ne, {
|
|
5545
5552
|
id: "cl-ui-login-passwordinput",
|
|
@@ -5553,7 +5560,7 @@ const Vi = {
|
|
|
5553
5560
|
autocomplete: "current-password"
|
|
5554
5561
|
}, {
|
|
5555
5562
|
default: H(() => [
|
|
5556
|
-
|
|
5563
|
+
Ji
|
|
5557
5564
|
]),
|
|
5558
5565
|
_: 1
|
|
5559
5566
|
}, 8, ["modelValue", "class", "type", "placeholder"])
|
|
@@ -5570,7 +5577,7 @@ const Vi = {
|
|
|
5570
5577
|
colour: "blue",
|
|
5571
5578
|
loading: c.loading,
|
|
5572
5579
|
disabled: !u.value || r.value === "",
|
|
5573
|
-
onClick:
|
|
5580
|
+
onClick: oe(s, ["prevent"])
|
|
5574
5581
|
}, {
|
|
5575
5582
|
default: H(() => [
|
|
5576
5583
|
pe(I(g(l)("login.login")), 1)
|
|
@@ -5583,14 +5590,14 @@ const Vi = {
|
|
|
5583
5590
|
default: H(() => {
|
|
5584
5591
|
var b;
|
|
5585
5592
|
return [
|
|
5586
|
-
|
|
5587
|
-
(p(!0), w(
|
|
5593
|
+
X(v("span", Xi, [
|
|
5594
|
+
(p(!0), w(J, null, ue(c.errors, (y, F) => (p(), w("div", {
|
|
5588
5595
|
id: "cl-ui-login-errors",
|
|
5589
5596
|
key: F,
|
|
5590
5597
|
class: "cl-font-semibold"
|
|
5591
5598
|
}, I(y), 1))), 128))
|
|
5592
5599
|
], 512), [
|
|
5593
|
-
[
|
|
5600
|
+
[ae, (b = c.errors) == null ? void 0 : b.length]
|
|
5594
5601
|
])
|
|
5595
5602
|
];
|
|
5596
5603
|
}),
|
|
@@ -5599,19 +5606,19 @@ const Vi = {
|
|
|
5599
5606
|
])
|
|
5600
5607
|
]));
|
|
5601
5608
|
}
|
|
5602
|
-
}),
|
|
5609
|
+
}), ls = [
|
|
5603
5610
|
"x-small",
|
|
5604
5611
|
"small",
|
|
5605
5612
|
"medium",
|
|
5606
5613
|
"large"
|
|
5607
|
-
],
|
|
5614
|
+
], ts = [
|
|
5608
5615
|
"primary",
|
|
5609
5616
|
"secondary",
|
|
5610
5617
|
"white"
|
|
5611
|
-
],
|
|
5618
|
+
], os = {
|
|
5612
5619
|
key: 0,
|
|
5613
5620
|
class: "cl-h-0 cl-w-0"
|
|
5614
|
-
},
|
|
5621
|
+
}, as = { class: "cl-relative cl-w-full" }, ns = /* @__PURE__ */ K({
|
|
5615
5622
|
__name: "cl-ui-navigation",
|
|
5616
5623
|
props: {
|
|
5617
5624
|
colour: { default: "default" }
|
|
@@ -5673,16 +5680,16 @@ const Vi = {
|
|
|
5673
5680
|
}, [
|
|
5674
5681
|
U(O.$slots, "icon", ce({ navcolour: O.colour }, { groupIsOpen: a, toggleOpen: u }), void 0, !0)
|
|
5675
5682
|
], 2),
|
|
5676
|
-
c.value ? (p(), w("div",
|
|
5683
|
+
c.value ? (p(), w("div", os)) : z("", !0),
|
|
5677
5684
|
N(Ee, { name: "slide-right" }, {
|
|
5678
5685
|
default: H(() => [
|
|
5679
|
-
|
|
5686
|
+
X(v("div", {
|
|
5680
5687
|
class: B(["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", {
|
|
5681
5688
|
"cl-relative": i.value,
|
|
5682
5689
|
"cl-absolute cl-left-20 cl-shadow-lg": !i.value
|
|
5683
5690
|
}])
|
|
5684
5691
|
}, [
|
|
5685
|
-
v("div",
|
|
5692
|
+
v("div", as, [
|
|
5686
5693
|
v("span", {
|
|
5687
5694
|
class: "cl-absolute cl-cursor-pointer cl-hidden cl-right-0 cl-top-1.5 lg:cl-block",
|
|
5688
5695
|
onClick: E[0] || (E[0] = () => b())
|
|
@@ -5698,14 +5705,14 @@ const Vi = {
|
|
|
5698
5705
|
U(O.$slots, "default", me(he({ groupIsOpen: a })), void 0, !0)
|
|
5699
5706
|
])
|
|
5700
5707
|
], 2), [
|
|
5701
|
-
[
|
|
5708
|
+
[ae, r.value]
|
|
5702
5709
|
])
|
|
5703
5710
|
]),
|
|
5704
5711
|
_: 3
|
|
5705
5712
|
})
|
|
5706
5713
|
], 512));
|
|
5707
5714
|
}
|
|
5708
|
-
}),
|
|
5715
|
+
}), rs = /* @__PURE__ */ Se(ns, [["__scopeId", "data-v-db3283cd"]]), is = /* @__PURE__ */ K({
|
|
5709
5716
|
__name: "cl-ui-navigation-icon",
|
|
5710
5717
|
props: {
|
|
5711
5718
|
iconValue: {},
|
|
@@ -5728,10 +5735,10 @@ const Vi = {
|
|
|
5728
5735
|
}, null, 8, ["icon"])
|
|
5729
5736
|
], 2));
|
|
5730
5737
|
}
|
|
5731
|
-
}),
|
|
5738
|
+
}), ss = {
|
|
5732
5739
|
key: 0,
|
|
5733
5740
|
class: "cl-font-bold cl-leading-8 cl-mb-8 cl-pr-8 cl-select-none cl-text-lg cl-text-secondary-default"
|
|
5734
|
-
},
|
|
5741
|
+
}, cs = { class: "cl-flex cl-flex-wrap cl-space-y-8 cl-text-sm cl-w-full" }, us = /* @__PURE__ */ K({
|
|
5735
5742
|
__name: "cl-ui-navigation-group",
|
|
5736
5743
|
props: {
|
|
5737
5744
|
open: { type: Boolean }
|
|
@@ -5742,35 +5749,35 @@ const Vi = {
|
|
|
5742
5749
|
"cl-hidden": !e.open
|
|
5743
5750
|
})
|
|
5744
5751
|
}, [
|
|
5745
|
-
e.$slots.title ? (p(), w("div",
|
|
5752
|
+
e.$slots.title ? (p(), w("div", ss, [
|
|
5746
5753
|
U(e.$slots, "title")
|
|
5747
5754
|
])) : z("", !0),
|
|
5748
|
-
v("div",
|
|
5755
|
+
v("div", cs, [
|
|
5749
5756
|
U(e.$slots, "default")
|
|
5750
5757
|
])
|
|
5751
5758
|
], 2));
|
|
5752
5759
|
}
|
|
5753
|
-
}),
|
|
5760
|
+
}), ds = {}, fs = { class: "cl-w-full" }, ps = {
|
|
5754
5761
|
key: 0,
|
|
5755
5762
|
class: "cl-font-bold cl-mb-4 cl-select-none"
|
|
5756
|
-
},
|
|
5757
|
-
function
|
|
5758
|
-
return p(), w("div",
|
|
5759
|
-
o.$slots.title ? (p(), w("div",
|
|
5763
|
+
}, ms = { class: "cl-flex cl-flex-wrap cl-space-y-2" };
|
|
5764
|
+
function vs(o, e) {
|
|
5765
|
+
return p(), w("div", fs, [
|
|
5766
|
+
o.$slots.title ? (p(), w("div", ps, [
|
|
5760
5767
|
U(o.$slots, "title")
|
|
5761
5768
|
])) : z("", !0),
|
|
5762
|
-
v("span",
|
|
5769
|
+
v("span", ms, [
|
|
5763
5770
|
U(o.$slots, "default")
|
|
5764
5771
|
])
|
|
5765
5772
|
]);
|
|
5766
5773
|
}
|
|
5767
|
-
const
|
|
5768
|
-
function
|
|
5769
|
-
return p(), w("div",
|
|
5774
|
+
const hs = /* @__PURE__ */ Se(ds, [["render", vs]]), gs = {}, bs = { class: "cl-cursor-pointer cl-transition-colors cl-w-full hover:cl-text-primary-darker" };
|
|
5775
|
+
function ys(o, e) {
|
|
5776
|
+
return p(), w("div", bs, [
|
|
5770
5777
|
U(o.$slots, "default")
|
|
5771
5778
|
]);
|
|
5772
5779
|
}
|
|
5773
|
-
const
|
|
5780
|
+
const ws = /* @__PURE__ */ Se(gs, [["render", ys]]), ks = /* @__PURE__ */ K({
|
|
5774
5781
|
__name: "cl-ui-tab",
|
|
5775
5782
|
props: {
|
|
5776
5783
|
colour: { default: "default" },
|
|
@@ -5862,14 +5869,14 @@ const gs = /* @__PURE__ */ Se(ms, [["render", hs]]), bs = /* @__PURE__ */ K({
|
|
|
5862
5869
|
})
|
|
5863
5870
|
])) : z("", !0)
|
|
5864
5871
|
], 2),
|
|
5865
|
-
|
|
5872
|
+
X(v("div", null, [
|
|
5866
5873
|
U(E.$slots, "content", me(he({ isTabOpen: F })))
|
|
5867
5874
|
], 512), [
|
|
5868
|
-
[
|
|
5875
|
+
[ae, a.value]
|
|
5869
5876
|
])
|
|
5870
5877
|
], 2));
|
|
5871
5878
|
}
|
|
5872
|
-
}),
|
|
5879
|
+
}), $s = ["inert"], Ss = /* @__PURE__ */ K({
|
|
5873
5880
|
__name: "cl-ui-tab-header",
|
|
5874
5881
|
props: {
|
|
5875
5882
|
open: { type: Boolean },
|
|
@@ -5897,35 +5904,35 @@ const gs = /* @__PURE__ */ Se(ms, [["render", hs]]), bs = /* @__PURE__ */ K({
|
|
|
5897
5904
|
U(l.$slots, "default", {}, () => [
|
|
5898
5905
|
pe(I(l.title), 1)
|
|
5899
5906
|
])
|
|
5900
|
-
], 10,
|
|
5907
|
+
], 10, $s));
|
|
5901
5908
|
}
|
|
5902
|
-
}),
|
|
5909
|
+
}), Ts = { key: 0 }, Cs = { class: "cl-font-bold cl-mb-4" }, Os = /* @__PURE__ */ K({
|
|
5903
5910
|
__name: "cl-ui-tab-content",
|
|
5904
5911
|
props: {
|
|
5905
5912
|
open: { type: Boolean },
|
|
5906
5913
|
title: { default: "" }
|
|
5907
5914
|
},
|
|
5908
5915
|
setup(o) {
|
|
5909
|
-
return (e, t) => e.open ? (p(), w("div",
|
|
5916
|
+
return (e, t) => e.open ? (p(), w("div", Ts, [
|
|
5910
5917
|
U(e.$slots, "header", {}, () => [
|
|
5911
|
-
v("h4",
|
|
5918
|
+
v("h4", Cs, I(e.title), 1)
|
|
5912
5919
|
]),
|
|
5913
5920
|
U(e.$slots, "default")
|
|
5914
5921
|
])) : z("", !0);
|
|
5915
5922
|
}
|
|
5916
|
-
}),
|
|
5923
|
+
}), Es = [
|
|
5917
5924
|
"default",
|
|
5918
5925
|
"primary",
|
|
5919
5926
|
"secondary",
|
|
5920
5927
|
"danger",
|
|
5921
5928
|
"blue"
|
|
5922
|
-
],
|
|
5929
|
+
], Fs = [
|
|
5923
5930
|
"left",
|
|
5924
5931
|
"right"
|
|
5925
|
-
],
|
|
5932
|
+
], Ds = [
|
|
5926
5933
|
"horizontal",
|
|
5927
5934
|
"vertical"
|
|
5928
|
-
],
|
|
5935
|
+
], Ns = { class: "cl-block cl-h-full cl-w-full" }, As = ["multiple", "accept", "disabled"], Vs = ["multiple", "accept", "disabled"], qs = /* @__PURE__ */ K({
|
|
5929
5936
|
inheritAttrs: !1,
|
|
5930
5937
|
__name: "cl-ui-file-uploader",
|
|
5931
5938
|
props: {
|
|
@@ -5969,7 +5976,7 @@ const gs = /* @__PURE__ */ Se(ms, [["render", hs]]), bs = /* @__PURE__ */ K({
|
|
|
5969
5976
|
function c() {
|
|
5970
5977
|
s.value && (s.value.value = ""), i.value && (i.value.value = "");
|
|
5971
5978
|
}
|
|
5972
|
-
return (d, b) => (p(), w("div",
|
|
5979
|
+
return (d, b) => (p(), w("div", Ns, [
|
|
5973
5980
|
d.uploaderType === "dragDrop" ? (p(), w("label", ce({ key: 0 }, d.$attrs, {
|
|
5974
5981
|
role: "button",
|
|
5975
5982
|
class: ["cl-bg-opacity-10 cl-border cl-border-dashed cl-duration-300 cl-ease-in-out cl-flex cl-justify-center cl-relative cl-rounded-lg", {
|
|
@@ -5978,7 +5985,7 @@ const gs = /* @__PURE__ */ Se(ms, [["render", hs]]), bs = /* @__PURE__ */ K({
|
|
|
5978
5985
|
"cl-bg-opacity-40 hover:cl-bg-opacity-40": u.value === !0 && d.disabled === !1,
|
|
5979
5986
|
"cl-bg-opacity-10 hover:cl-bg-opacity-40": u.value === !1 && d.disabled === !1
|
|
5980
5987
|
}],
|
|
5981
|
-
onDrop:
|
|
5988
|
+
onDrop: oe(n, ["prevent"]),
|
|
5982
5989
|
onDragenter: b[0] || (b[0] = (y) => u.value = !0),
|
|
5983
5990
|
onDragleave: b[1] || (b[1] = (y) => u.value = !1)
|
|
5984
5991
|
}), [
|
|
@@ -5991,7 +5998,7 @@ const gs = /* @__PURE__ */ Se(ms, [["render", hs]]), bs = /* @__PURE__ */ K({
|
|
|
5991
5998
|
accept: d.acceptedFileTypes,
|
|
5992
5999
|
disabled: d.disabled,
|
|
5993
6000
|
onInput: r
|
|
5994
|
-
}, null, 40,
|
|
6001
|
+
}, null, 40, As),
|
|
5995
6002
|
U(d.$slots, "default")
|
|
5996
6003
|
], 16)) : (p(), w("input", {
|
|
5997
6004
|
key: 1,
|
|
@@ -6006,16 +6013,16 @@ const gs = /* @__PURE__ */ Se(ms, [["render", hs]]), bs = /* @__PURE__ */ K({
|
|
|
6006
6013
|
accept: d.acceptedFileTypes,
|
|
6007
6014
|
disabled: d.disabled,
|
|
6008
6015
|
onInput: r
|
|
6009
|
-
}, null, 42,
|
|
6016
|
+
}, null, 42, Vs))
|
|
6010
6017
|
]));
|
|
6011
6018
|
}
|
|
6012
|
-
}),
|
|
6019
|
+
}), Is = [
|
|
6013
6020
|
"text",
|
|
6014
6021
|
"email",
|
|
6015
6022
|
"tel",
|
|
6016
6023
|
"password",
|
|
6017
6024
|
"search"
|
|
6018
|
-
],
|
|
6025
|
+
], Rs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6019
6026
|
__proto__: null,
|
|
6020
6027
|
FilterOperation: le,
|
|
6021
6028
|
allQuickDates: nt,
|
|
@@ -6028,53 +6035,53 @@ const gs = /* @__PURE__ */ Se(ms, [["render", hs]]), bs = /* @__PURE__ */ K({
|
|
|
6028
6035
|
clUiApp: Kt,
|
|
6029
6036
|
clUiButton: ye,
|
|
6030
6037
|
clUiCard: lo,
|
|
6031
|
-
clUiComboBox:
|
|
6032
|
-
clUiFileUploader:
|
|
6033
|
-
clUiFooter:
|
|
6034
|
-
clUiGrid:
|
|
6035
|
-
clUiHeader:
|
|
6036
|
-
clUiHeaderMenu:
|
|
6038
|
+
clUiComboBox: sa,
|
|
6039
|
+
clUiFileUploader: qs,
|
|
6040
|
+
clUiFooter: ba,
|
|
6041
|
+
clUiGrid: ki,
|
|
6042
|
+
clUiHeader: Si,
|
|
6043
|
+
clUiHeaderMenu: Ni,
|
|
6037
6044
|
clUiInput: hl,
|
|
6038
6045
|
clUiInputNumber: ul,
|
|
6039
6046
|
clUiInputText: Ne,
|
|
6040
|
-
clUiLanguageSwitcher:
|
|
6047
|
+
clUiLanguageSwitcher: Pi,
|
|
6041
6048
|
clUiLoadingSpinner: sl,
|
|
6042
|
-
clUiLogin:
|
|
6049
|
+
clUiLogin: es,
|
|
6043
6050
|
clUiModal: Xl,
|
|
6044
|
-
clUiNavigation:
|
|
6045
|
-
clUiNavigationGroup:
|
|
6046
|
-
clUiNavigationIcon:
|
|
6047
|
-
clUiNavigationItem:
|
|
6048
|
-
clUiNavigationSection:
|
|
6051
|
+
clUiNavigation: rs,
|
|
6052
|
+
clUiNavigationGroup: us,
|
|
6053
|
+
clUiNavigationIcon: is,
|
|
6054
|
+
clUiNavigationItem: ws,
|
|
6055
|
+
clUiNavigationSection: hs,
|
|
6049
6056
|
clUiNotification: Wl,
|
|
6050
|
-
clUiTab:
|
|
6051
|
-
clUiTabContent:
|
|
6052
|
-
clUiTabHeader:
|
|
6057
|
+
clUiTab: ks,
|
|
6058
|
+
clUiTabContent: Os,
|
|
6059
|
+
clUiTabHeader: Ss,
|
|
6053
6060
|
currentQuickDates: Ge,
|
|
6054
|
-
filterMethodTypes:
|
|
6061
|
+
filterMethodTypes: kr,
|
|
6055
6062
|
futureQuickDates: rl,
|
|
6056
|
-
gridColumnTypes:
|
|
6057
|
-
headerColour:
|
|
6058
|
-
inputTextTypes:
|
|
6059
|
-
inputTypes:
|
|
6060
|
-
isComboBoxCreateRequest:
|
|
6061
|
-
isComboBoxItem:
|
|
6062
|
-
isFilterRequest:
|
|
6063
|
-
isFilterResponse:
|
|
6063
|
+
gridColumnTypes: br,
|
|
6064
|
+
headerColour: Ai,
|
|
6065
|
+
inputTextTypes: Is,
|
|
6066
|
+
inputTypes: Vi,
|
|
6067
|
+
isComboBoxCreateRequest: ua,
|
|
6068
|
+
isComboBoxItem: ca,
|
|
6069
|
+
isFilterRequest: Tr,
|
|
6070
|
+
isFilterResponse: Cr,
|
|
6064
6071
|
isGridColumn: ct,
|
|
6065
|
-
isGridColumnArray:
|
|
6066
|
-
isLanguageArray:
|
|
6072
|
+
isGridColumnArray: yr,
|
|
6073
|
+
isLanguageArray: qi,
|
|
6067
6074
|
isLanguageLocaleFormat: gl,
|
|
6068
|
-
modalColours:
|
|
6069
|
-
modalSizes:
|
|
6075
|
+
modalColours: ts,
|
|
6076
|
+
modalSizes: ls,
|
|
6070
6077
|
pastQuickDates: nl,
|
|
6071
|
-
quickDateNames:
|
|
6072
|
-
stringFormats:
|
|
6073
|
-
tabColours:
|
|
6074
|
-
tabLayout:
|
|
6075
|
-
tabScroll:
|
|
6076
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
6077
|
-
o.use(we), o.component("Icon", Z), Object.entries(
|
|
6078
|
+
quickDateNames: qn,
|
|
6079
|
+
stringFormats: wr,
|
|
6080
|
+
tabColours: Es,
|
|
6081
|
+
tabLayout: Ds,
|
|
6082
|
+
tabScroll: Fs
|
|
6083
|
+
}, Symbol.toStringTag, { value: "Module" })), _s = (o) => {
|
|
6084
|
+
o.use(we), o.component("Icon", Z), Object.entries(Rs).forEach(([
|
|
6078
6085
|
e,
|
|
6079
6086
|
t
|
|
6080
6087
|
]) => {
|
|
@@ -6082,7 +6089,7 @@ const gs = /* @__PURE__ */ Se(ms, [["render", hs]]), bs = /* @__PURE__ */ K({
|
|
|
6082
6089
|
});
|
|
6083
6090
|
};
|
|
6084
6091
|
export {
|
|
6085
|
-
|
|
6092
|
+
Zs as CitrusLimeUI,
|
|
6086
6093
|
de as DateFormat,
|
|
6087
6094
|
le as FilterOperation,
|
|
6088
6095
|
re as NumberFormat,
|
|
@@ -6096,66 +6103,66 @@ export {
|
|
|
6096
6103
|
Kt as clUiApp,
|
|
6097
6104
|
ye as clUiButton,
|
|
6098
6105
|
lo as clUiCard,
|
|
6099
|
-
|
|
6100
|
-
|
|
6101
|
-
|
|
6102
|
-
|
|
6103
|
-
|
|
6104
|
-
|
|
6106
|
+
sa as clUiComboBox,
|
|
6107
|
+
qs as clUiFileUploader,
|
|
6108
|
+
ba as clUiFooter,
|
|
6109
|
+
ki as clUiGrid,
|
|
6110
|
+
Si as clUiHeader,
|
|
6111
|
+
Ni as clUiHeaderMenu,
|
|
6105
6112
|
hl as clUiInput,
|
|
6106
6113
|
ul as clUiInputNumber,
|
|
6107
6114
|
Ne as clUiInputText,
|
|
6108
|
-
|
|
6115
|
+
Pi as clUiLanguageSwitcher,
|
|
6109
6116
|
sl as clUiLoadingSpinner,
|
|
6110
|
-
|
|
6117
|
+
es as clUiLogin,
|
|
6111
6118
|
Xl as clUiModal,
|
|
6112
|
-
|
|
6113
|
-
|
|
6114
|
-
|
|
6115
|
-
|
|
6116
|
-
|
|
6119
|
+
rs as clUiNavigation,
|
|
6120
|
+
us as clUiNavigationGroup,
|
|
6121
|
+
is as clUiNavigationIcon,
|
|
6122
|
+
ws as clUiNavigationItem,
|
|
6123
|
+
hs as clUiNavigationSection,
|
|
6117
6124
|
Wl as clUiNotification,
|
|
6118
|
-
|
|
6119
|
-
|
|
6120
|
-
|
|
6125
|
+
ks as clUiTab,
|
|
6126
|
+
Os as clUiTabContent,
|
|
6127
|
+
Ss as clUiTabHeader,
|
|
6121
6128
|
Ge as currentQuickDates,
|
|
6122
|
-
|
|
6123
|
-
|
|
6124
|
-
|
|
6129
|
+
Ga as datetimeFormats,
|
|
6130
|
+
_s as default,
|
|
6131
|
+
kr as filterMethodTypes,
|
|
6125
6132
|
He as formatNumber,
|
|
6126
6133
|
De as formatNumberAsInteger,
|
|
6127
6134
|
rl as futureQuickDates,
|
|
6128
6135
|
ot as getMergedFormatOptions,
|
|
6129
|
-
|
|
6130
|
-
|
|
6136
|
+
br as gridColumnTypes,
|
|
6137
|
+
Ai as headerColour,
|
|
6131
6138
|
we as i18n,
|
|
6132
|
-
|
|
6133
|
-
|
|
6134
|
-
|
|
6135
|
-
|
|
6136
|
-
|
|
6137
|
-
|
|
6139
|
+
Is as inputTextTypes,
|
|
6140
|
+
Vi as inputTypes,
|
|
6141
|
+
ua as isComboBoxCreateRequest,
|
|
6142
|
+
ca as isComboBoxItem,
|
|
6143
|
+
Tr as isFilterRequest,
|
|
6144
|
+
Cr as isFilterResponse,
|
|
6138
6145
|
ct as isGridColumn,
|
|
6139
|
-
|
|
6140
|
-
|
|
6146
|
+
yr as isGridColumnArray,
|
|
6147
|
+
qi as isLanguageArray,
|
|
6141
6148
|
gl as isLanguageLocaleFormat,
|
|
6142
|
-
|
|
6143
|
-
|
|
6144
|
-
|
|
6145
|
-
|
|
6149
|
+
xa as messages,
|
|
6150
|
+
ts as modalColours,
|
|
6151
|
+
ls as modalSizes,
|
|
6152
|
+
Ha as numberFormats,
|
|
6146
6153
|
nl as pastQuickDates,
|
|
6147
|
-
|
|
6148
|
-
|
|
6149
|
-
|
|
6150
|
-
|
|
6151
|
-
|
|
6154
|
+
qn as quickDateNames,
|
|
6155
|
+
Ks as setCurrentLocale,
|
|
6156
|
+
Ws as setLocaleDateTimeFormats,
|
|
6157
|
+
Hs as setLocaleMessages,
|
|
6158
|
+
Gs as setLocaleNumberFormats,
|
|
6152
6159
|
Ol as showNotification,
|
|
6153
|
-
|
|
6154
|
-
|
|
6155
|
-
|
|
6156
|
-
|
|
6160
|
+
wr as stringFormats,
|
|
6161
|
+
Es as tabColours,
|
|
6162
|
+
Ds as tabLayout,
|
|
6163
|
+
Fs as tabScroll,
|
|
6157
6164
|
tt as unformatNumber,
|
|
6158
|
-
|
|
6159
|
-
|
|
6160
|
-
|
|
6165
|
+
ln as validateEmail,
|
|
6166
|
+
Xa as validateMaxValue,
|
|
6167
|
+
Ja as validateMinValue
|
|
6161
6168
|
};
|