@citruslime/ui 3.0.0-beta.17 → 3.0.0-beta.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Icon as Z } from "@iconify/vue";
|
|
2
|
-
import { defineComponent as
|
|
2
|
+
import { defineComponent as B, ref as I, openBlock as p, createElementBlock as b, renderSlot as M, normalizeProps as de, guardReactiveProps as fe, Fragment as Y, createElementVNode as f, normalizeClass as L, createVNode as D, unref as g, Transition as Ce, withCtx as R, withDirectives as Q, mergeProps as te, vShow as ee, createBlock as P, Teleport as tl, renderList as re, toDisplayString as N, createCommentVNode as z, computed as O, mergeModels as ge, useModel as Ae, createSlots as Ne, vModelDynamic as Dl, watch as oe, toRefs as Jl, withKeys as me, onMounted as Be, onUnmounted as Ye, withModifiers as le, nextTick as Me, resolveComponent as De, createTextVNode as ue, inject as ol, vModelCheckbox as Xl, toValue as vl, watchEffect as et, useAttrs as El, useCssVars as Al, vModelText as Vl, toHandlers as lt, provide as bl, normalizeStyle as tt, pushScopeId as ot, popScopeId as at } from "vue";
|
|
3
3
|
import { generateStringId as nt, highlightText as st, validateEmail as rt } from "@citruslime/utils";
|
|
4
4
|
import { unrefElement as it, tryOnScopeDispose as ct, onClickOutside as al, useTimeoutFn as Nl, useMouseInElement as ut, useFocusWithin as dt, useMediaQuery as Il, useThrottle as pt, useElementBounding as ft, useDebounceFn as mt, useWindowSize as gt } from "@vueuse/core";
|
|
5
5
|
import { useI18n as se, createI18n as vt } from "vue-i18n";
|
|
@@ -8,7 +8,7 @@ import { copy as pe } from "@citruslime/vue-utils";
|
|
|
8
8
|
import { DateTime as W } from "luxon";
|
|
9
9
|
import { DatePicker as Ie } from "v-calendar";
|
|
10
10
|
import { useCurrencyInput as ht } from "vue-currency-input";
|
|
11
|
-
const yt = { class: "cl-overflow-hidden" }, wt = /* @__PURE__ */
|
|
11
|
+
const yt = { class: "cl-overflow-hidden" }, wt = /* @__PURE__ */ B({
|
|
12
12
|
__name: "cl-ui-accordion",
|
|
13
13
|
props: {
|
|
14
14
|
exclusive: { type: Boolean, default: !1 }
|
|
@@ -32,7 +32,7 @@ const yt = { class: "cl-overflow-hidden" }, wt = /* @__PURE__ */ F({
|
|
|
32
32
|
M(a.$slots, "default", de(fe({ isItemOpen: e, toggleItem: n })))
|
|
33
33
|
]));
|
|
34
34
|
}
|
|
35
|
-
}), kt = { class: "cl-absolute cl-left-5 cl-top-5" }, $t = { class: "cl-font-semibold cl-ml-10 cl-p-4 cl-select-none cl-text-grey-5" }, Ct = { class: "cl-overflow-hidden" }, Tt = /* @__PURE__ */
|
|
35
|
+
}), kt = { class: "cl-absolute cl-left-5 cl-top-5" }, $t = { class: "cl-font-semibold cl-ml-10 cl-p-4 cl-select-none cl-text-grey-5" }, Ct = { class: "cl-overflow-hidden" }, Tt = /* @__PURE__ */ B({
|
|
36
36
|
inheritAttrs: !1,
|
|
37
37
|
__name: "cl-ui-accordion-item",
|
|
38
38
|
props: {
|
|
@@ -102,7 +102,7 @@ function hl(t) {
|
|
|
102
102
|
function Rl(t) {
|
|
103
103
|
Ke.value = Ke.value.filter((o) => o.id !== t.id);
|
|
104
104
|
}
|
|
105
|
-
const Et = ["onClick"], At = { class: "cl-flex-1 cl-select-none cl-text-ellipsis cl-w-64" }, Ml = /* @__PURE__ */
|
|
105
|
+
const Et = ["onClick"], At = { class: "cl-flex-1 cl-select-none cl-text-ellipsis cl-w-64" }, Ml = /* @__PURE__ */ B({
|
|
106
106
|
inheritAttrs: !1,
|
|
107
107
|
__name: "cl-ui-notification",
|
|
108
108
|
props: {
|
|
@@ -143,7 +143,7 @@ const Et = ["onClick"], At = { class: "cl-flex-1 cl-select-none cl-text-ellipsis
|
|
|
143
143
|
], 2)
|
|
144
144
|
], 8, ["to"]));
|
|
145
145
|
}
|
|
146
|
-
}), Vt = { class: "cl-absolute cl-flex cl-flex-wrap cl-h-full cl-max-h-full cl-max-w-full cl-min-h-full cl-min-w-full cl-w-full xl:cl-h-screen xl:cl-max-h-screen xl:cl-min-h-screen" }, Nt = /* @__PURE__ */
|
|
146
|
+
}), Vt = { class: "cl-absolute cl-flex cl-flex-wrap cl-h-full cl-max-h-full cl-max-w-full cl-min-h-full cl-min-w-full cl-w-full xl:cl-h-screen xl:cl-max-h-screen xl:cl-min-h-screen" }, Nt = /* @__PURE__ */ B({
|
|
147
147
|
__name: "cl-ui-app",
|
|
148
148
|
props: {
|
|
149
149
|
removePadding: { type: Boolean, default: !1 }
|
|
@@ -180,7 +180,7 @@ const Et = ["onClick"], At = { class: "cl-flex-1 cl-select-none cl-text-ellipsis
|
|
|
180
180
|
function Mt(t, o) {
|
|
181
181
|
return p(), b("div", Rt);
|
|
182
182
|
}
|
|
183
|
-
const _e = /* @__PURE__ */ he(It, [["render", Mt], ["__scopeId", "data-v-a21dc5d2"]]), Ut = ["disabled"], $e = /* @__PURE__ */
|
|
183
|
+
const _e = /* @__PURE__ */ he(It, [["render", Mt], ["__scopeId", "data-v-a21dc5d2"]]), Ut = ["disabled"], $e = /* @__PURE__ */ B({
|
|
184
184
|
inheritAttrs: !1,
|
|
185
185
|
__name: "cl-ui-button",
|
|
186
186
|
props: {
|
|
@@ -233,7 +233,7 @@ const _e = /* @__PURE__ */ he(It, [["render", Mt], ["__scopeId", "data-v-a21dc5d
|
|
|
233
233
|
"small",
|
|
234
234
|
"medium",
|
|
235
235
|
"large"
|
|
236
|
-
], jt = { key: 0 },
|
|
236
|
+
], jt = { key: 0 }, Ft = /* @__PURE__ */ B({
|
|
237
237
|
__name: "cl-ui-card",
|
|
238
238
|
props: {
|
|
239
239
|
size: { default: "medium" },
|
|
@@ -281,7 +281,7 @@ const _e = /* @__PURE__ */ he(It, [["render", Mt], ["__scopeId", "data-v-a21dc5d
|
|
|
281
281
|
], 2)) : z("", !0)
|
|
282
282
|
], 2));
|
|
283
283
|
}
|
|
284
|
-
}),
|
|
284
|
+
}), Bt = [
|
|
285
285
|
"small",
|
|
286
286
|
"medium",
|
|
287
287
|
"large"
|
|
@@ -294,7 +294,7 @@ const _e = /* @__PURE__ */ he(It, [["render", Mt], ["__scopeId", "data-v-a21dc5d
|
|
|
294
294
|
}, Kt = { class: "cl-basis-1/2 cl-w-full" }, Qt = {
|
|
295
295
|
key: 0,
|
|
296
296
|
class: "cl-pt-1 cl-w-full"
|
|
297
|
-
}, xt = { class: "cl-flex cl-flex-col cl-flex-nowrap cl-gap-1 cl-w-full" }, Je = /* @__PURE__ */
|
|
297
|
+
}, xt = { class: "cl-flex cl-flex-col cl-flex-nowrap cl-gap-1 cl-w-full" }, Je = /* @__PURE__ */ B({
|
|
298
298
|
__name: "cl-ui-input-layout-wrapper",
|
|
299
299
|
props: {
|
|
300
300
|
showRequiredAsterisk: { type: Boolean },
|
|
@@ -324,7 +324,7 @@ const _e = /* @__PURE__ */ he(It, [["render", Mt], ["__scopeId", "data-v-a21dc5d
|
|
|
324
324
|
])) : z("", !0)
|
|
325
325
|
]));
|
|
326
326
|
}
|
|
327
|
-
}), Yt = ["type", "maxlength", "required", "disabled", "placeholder"], Ee = /* @__PURE__ */
|
|
327
|
+
}), Yt = ["type", "maxlength", "required", "disabled", "placeholder"], Ee = /* @__PURE__ */ B({
|
|
328
328
|
inheritAttrs: !1,
|
|
329
329
|
__name: "cl-ui-input-text",
|
|
330
330
|
props: /* @__PURE__ */ ge({
|
|
@@ -416,7 +416,7 @@ function _t(t, o = {}) {
|
|
|
416
416
|
const Jt = /* @__PURE__ */ f("div", { tabindex: "0" }, null, -1), Xt = {
|
|
417
417
|
key: 0,
|
|
418
418
|
class: "cl-mt-1 cl-opacity-60 cl-text-primary-default"
|
|
419
|
-
}, eo = { class: "cl-overflow-y-auto cl-overscroll-y-none cl-p-2 cl-w-full" }, Ul = /* @__PURE__ */
|
|
419
|
+
}, eo = { class: "cl-overflow-y-auto cl-overscroll-y-none cl-p-2 cl-w-full" }, Ul = /* @__PURE__ */ B({
|
|
420
420
|
inheritAttrs: !1,
|
|
421
421
|
__name: "cl-ui-modal",
|
|
422
422
|
props: {
|
|
@@ -506,7 +506,7 @@ const Jt = /* @__PURE__ */ f("div", { tabindex: "0" }, null, -1), Xt = {
|
|
|
506
506
|
}), lo = { class: "cl-bg-grey-0 cl-flex cl-p-1 cl-text-left" }, to = {
|
|
507
507
|
key: 0,
|
|
508
508
|
class: "cl-w-1/2"
|
|
509
|
-
}, Ze = /* @__PURE__ */
|
|
509
|
+
}, Ze = /* @__PURE__ */ B({
|
|
510
510
|
__name: "cl-ui-combo-box-header",
|
|
511
511
|
props: {
|
|
512
512
|
showClearButton: { type: Boolean, default: !1 },
|
|
@@ -539,7 +539,7 @@ const Jt = /* @__PURE__ */ f("div", { tabindex: "0" }, null, -1), Xt = {
|
|
|
539
539
|
}), oo = {
|
|
540
540
|
key: 0,
|
|
541
541
|
class: "cl-w-1/2"
|
|
542
|
-
}, ao = { class: "cl-float-right cl-py-1 cl-text-black" }, yl = /* @__PURE__ */
|
|
542
|
+
}, ao = { class: "cl-float-right cl-py-1 cl-text-black" }, yl = /* @__PURE__ */ B({
|
|
543
543
|
__name: "cl-ui-combo-box-selectable",
|
|
544
544
|
props: {
|
|
545
545
|
isCreateNewOption: { type: Boolean, default: !1 },
|
|
@@ -600,7 +600,7 @@ const Jt = /* @__PURE__ */ f("div", { tabindex: "0" }, null, -1), Xt = {
|
|
|
600
600
|
}), no = ["onKeyup"], so = {
|
|
601
601
|
key: 0,
|
|
602
602
|
class: "cl-absolute cl-bg-off-white cl-flex cl-h-full cl-items-center cl-justify-center cl-top-0 cl-w-full cl-z-20"
|
|
603
|
-
}, ro = { class: "cl-bg-white cl-flex cl-p-2 cl-pb-1 cl-sticky cl-top-0 cl-w-full cl-z-10" }, io = { class: "cl-inline-block cl-w-full" }, co = /* @__PURE__ */ f("span", null, null, -1), uo = { key: 6 }, po = /* @__PURE__ */
|
|
603
|
+
}, ro = { class: "cl-bg-white cl-flex cl-p-2 cl-pb-1 cl-sticky cl-top-0 cl-w-full cl-z-10" }, io = { class: "cl-inline-block cl-w-full" }, co = /* @__PURE__ */ f("span", null, null, -1), uo = { key: 6 }, po = /* @__PURE__ */ B({
|
|
604
604
|
__name: "cl-ui-combo-box-search",
|
|
605
605
|
props: {
|
|
606
606
|
loading: { type: Boolean, default: !1 },
|
|
@@ -655,7 +655,7 @@ const Jt = /* @__PURE__ */ f("div", { tabindex: "0" }, null, -1), Xt = {
|
|
|
655
655
|
let A = !1;
|
|
656
656
|
l.results !== null && l.results.length === 1 && (A = a.value.toUpperCase().trim() === l.results[0].name.toUpperCase().trim()), d.value = l.canCreateNewObject === !0 && l.errorMessage === "" && a.value.trim() !== "" && A === !1;
|
|
657
657
|
}
|
|
658
|
-
function
|
|
658
|
+
function F(A) {
|
|
659
659
|
c.value = A;
|
|
660
660
|
}
|
|
661
661
|
function x() {
|
|
@@ -664,7 +664,7 @@ const Jt = /* @__PURE__ */ f("div", { tabindex: "0" }, null, -1), Xt = {
|
|
|
664
664
|
return (E = (A = r.value) == null ? void 0 : A.querySelector("input")) == null ? void 0 : E.focus();
|
|
665
665
|
}));
|
|
666
666
|
}
|
|
667
|
-
return oe(() => l.results, () => S()), oe(() => l.errorMessage, () => S()), oe(() => l.isVisible, () => x()),
|
|
667
|
+
return oe(() => l.results, () => S()), oe(() => l.errorMessage, () => S()), oe(() => l.isVisible, () => x()), Be(() => {
|
|
668
668
|
var A;
|
|
669
669
|
return (A = r.value) == null ? void 0 : A.addEventListener("keydown", q);
|
|
670
670
|
}), Ye(() => {
|
|
@@ -735,7 +735,7 @@ const Jt = /* @__PURE__ */ f("div", { tabindex: "0" }, null, -1), Xt = {
|
|
|
735
735
|
"selected-index": c.value,
|
|
736
736
|
class: "cl-px-2",
|
|
737
737
|
onCreateObject: m,
|
|
738
|
-
onOptionHighlighted:
|
|
738
|
+
onOptionHighlighted: F
|
|
739
739
|
}, null, 8, ["text", "selected-index"])) : z("", !0),
|
|
740
740
|
A.errorMessage === "" && A.results !== null ? (p(), b("div", uo, [
|
|
741
741
|
(p(!0), b(Y, null, re(A.results, (v, C) => (p(), P(yl, {
|
|
@@ -745,13 +745,13 @@ const Jt = /* @__PURE__ */ f("div", { tabindex: "0" }, null, -1), Xt = {
|
|
|
745
745
|
class: "cl-px-2",
|
|
746
746
|
"selected-index": c.value,
|
|
747
747
|
onSelectObject: s,
|
|
748
|
-
onOptionHighlighted:
|
|
748
|
+
onOptionHighlighted: F
|
|
749
749
|
}, null, 8, ["option", "index", "selected-index"]))), 128))
|
|
750
750
|
])) : z("", !0)
|
|
751
751
|
], 42, no);
|
|
752
752
|
};
|
|
753
753
|
}
|
|
754
|
-
}), fo = { class: "cl-flex" }, mo = { class: "cl-inline-block cl-w-full" }, go = /* @__PURE__ */ f("span", null, null, -1), vo = { class: "cl-pointer-events-none cl-relative cl-top-0.5" }, bo = { 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" }, ho = ["disabled"], yo = ["disabled"], wo = { class: "cl-min-h-[16rem] cl-mx-4" }, ko = { class: "cl-p-2 cl-text-right cl-w-full" }, $o = /* @__PURE__ */
|
|
754
|
+
}), fo = { class: "cl-flex" }, mo = { class: "cl-inline-block cl-w-full" }, go = /* @__PURE__ */ f("span", null, null, -1), vo = { class: "cl-pointer-events-none cl-relative cl-top-0.5" }, bo = { 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" }, ho = ["disabled"], yo = ["disabled"], wo = { class: "cl-min-h-[16rem] cl-mx-4" }, ko = { class: "cl-p-2 cl-text-right cl-w-full" }, $o = /* @__PURE__ */ B({
|
|
755
755
|
__name: "cl-ui-combo-box",
|
|
756
756
|
props: {
|
|
757
757
|
loading: { type: Boolean, default: !1 },
|
|
@@ -788,7 +788,7 @@ const Jt = /* @__PURE__ */ f("div", { tabindex: "0" }, null, -1), Xt = {
|
|
|
788
788
|
function S(V) {
|
|
789
789
|
h.value = V, n("search-parent", V);
|
|
790
790
|
}
|
|
791
|
-
function
|
|
791
|
+
function F() {
|
|
792
792
|
r.value = null, q(!1);
|
|
793
793
|
}
|
|
794
794
|
function x(V) {
|
|
@@ -957,7 +957,7 @@ const Jt = /* @__PURE__ */ f("div", { tabindex: "0" }, null, -1), Xt = {
|
|
|
957
957
|
"search-hint": d.value,
|
|
958
958
|
onCreateObject: () => V.objectParentType === "" && V.skipObjectCreationModal === !0 ? E() : ae(),
|
|
959
959
|
onSelectObject: x,
|
|
960
|
-
onClearObject:
|
|
960
|
+
onClearObject: F,
|
|
961
961
|
onSearch: U,
|
|
962
962
|
onHideDropdown: H[4] || (H[4] = (Ve) => q(!1))
|
|
963
963
|
}, null, 8, ["can-create-new-object", "can-clear-selected-object", "loading", "results", "object-type", "object-parent-type", "error-message", "current-object-name", "is-visible", "class", "search-hint", "onCreateObject"]), [
|
|
@@ -1073,7 +1073,7 @@ function wl(t) {
|
|
|
1073
1073
|
const Ro = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Mo = { class: "cl-gap-1 cl-grid cl-grid-cols-2 cl-justify-end cl-mb-2 lg:cl-flex lg:cl-gap-2" }, Uo = { class: "cl-basis-0 cl-col-span-2 cl-flex-grow" }, zo = /* @__PURE__ */ f("hr", { class: "cl-block cl-border-grey-3 cl-col-span-2 cl-my-4 lg:cl-hidden" }, null, -1), Lo = {
|
|
1074
1074
|
key: 1,
|
|
1075
1075
|
class: "cl-hidden lg:cl-block"
|
|
1076
|
-
}, jo = { class: "cl-block lg:cl-hidden" },
|
|
1076
|
+
}, jo = { class: "cl-block lg:cl-hidden" }, Fo = /* @__PURE__ */ B({
|
|
1077
1077
|
__name: "cl-ui-grid-action-row",
|
|
1078
1078
|
props: {
|
|
1079
1079
|
editMode: { type: Boolean },
|
|
@@ -1151,7 +1151,7 @@ const Ro = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Mo = { class: "cl-gap-1
|
|
|
1151
1151
|
])
|
|
1152
1152
|
], 64));
|
|
1153
1153
|
}
|
|
1154
|
-
}),
|
|
1154
|
+
}), Bo = ["required", "disabled"], Po = /* @__PURE__ */ B({
|
|
1155
1155
|
inheritAttrs: !1,
|
|
1156
1156
|
__name: "cl-ui-input-checkbox",
|
|
1157
1157
|
props: /* @__PURE__ */ ge({
|
|
@@ -1193,7 +1193,7 @@ const Ro = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Mo = { class: "cl-gap-1
|
|
|
1193
1193
|
}, ["stop", "prevent"]), ["enter"])),
|
|
1194
1194
|
onFocus: c[2] || (c[2] = (u) => n("focus")),
|
|
1195
1195
|
onBlur: c[3] || (c[3] = (u) => n("blur"))
|
|
1196
|
-
}), null, 16,
|
|
1196
|
+
}), null, 16, Bo), [
|
|
1197
1197
|
[Xl, e.value]
|
|
1198
1198
|
])
|
|
1199
1199
|
]),
|
|
@@ -1419,10 +1419,10 @@ function el(t, o) {
|
|
|
1419
1419
|
}
|
|
1420
1420
|
function Se(t, o, l) {
|
|
1421
1421
|
if (Xe(o)) {
|
|
1422
|
-
const e =
|
|
1422
|
+
const e = Fe(rl, l);
|
|
1423
1423
|
return o.replace(/\{0\}/g, $l(t, e) ?? "");
|
|
1424
1424
|
} else {
|
|
1425
|
-
const e =
|
|
1425
|
+
const e = Fe(ul(o), l);
|
|
1426
1426
|
let n = $l(t, e) ?? "";
|
|
1427
1427
|
if (o === "currency-without-symbol") {
|
|
1428
1428
|
const a = cl(e);
|
|
@@ -1442,7 +1442,7 @@ function Ll(t, o, l) {
|
|
|
1442
1442
|
return kl(t, ul(o), l);
|
|
1443
1443
|
}
|
|
1444
1444
|
function il(t, o) {
|
|
1445
|
-
return Xe(t) ?
|
|
1445
|
+
return Xe(t) ? Fe(rl, o) : Fe(ul(t), o);
|
|
1446
1446
|
}
|
|
1447
1447
|
function Qo(t, o) {
|
|
1448
1448
|
let l = null;
|
|
@@ -1464,7 +1464,7 @@ function Qo(t, o) {
|
|
|
1464
1464
|
function kl(t, o, l) {
|
|
1465
1465
|
if (!t)
|
|
1466
1466
|
return NaN;
|
|
1467
|
-
const e =
|
|
1467
|
+
const e = Fe(o, l), n = cl(e);
|
|
1468
1468
|
if (n === null)
|
|
1469
1469
|
return NaN;
|
|
1470
1470
|
const a = qe(n, 10000.11111, "group"), d = qe(n, 1.111, "decimal"), c = qe(n, 1, "currency", "unit"), u = qe(n, 1, "percentSign"), r = qe(n, 1, "plusSign"), i = qe(n, -1, "minusSign"), s = qe(n, -10000.11111, "literal", "unknown"), m = i.some((q) => t.startsWith(q) || t.endsWith(q)) || t.startsWith("(") && t.endsWith(")"), h = u.some((q) => t.startsWith(q) || t.endsWith(q)), k = d.some((q) => t.includes(q)), T = (m ? -1 : 1) * (h ? 0.01 : 1);
|
|
@@ -1503,7 +1503,7 @@ function cl(t) {
|
|
|
1503
1503
|
return console.error(o), null;
|
|
1504
1504
|
}
|
|
1505
1505
|
}
|
|
1506
|
-
function
|
|
1506
|
+
function Fe(t, o) {
|
|
1507
1507
|
const l = vl(o == null ? void 0 : o.locale) || g(Go), e = Ko(l), n = pe(vl(o == null ? void 0 : o.additionalOptions) ?? {});
|
|
1508
1508
|
return {
|
|
1509
1509
|
...e[t],
|
|
@@ -1674,7 +1674,7 @@ const la = {
|
|
|
1674
1674
|
}, oa = {
|
|
1675
1675
|
key: 5,
|
|
1676
1676
|
class: "cl-inline-block cl-whitespace-nowrap"
|
|
1677
|
-
}, aa = ["innerHTML"], Cl = /* @__PURE__ */
|
|
1677
|
+
}, aa = ["innerHTML"], Cl = /* @__PURE__ */ B({
|
|
1678
1678
|
__name: "cl-ui-grid-cell-value",
|
|
1679
1679
|
props: {
|
|
1680
1680
|
data: {},
|
|
@@ -1751,7 +1751,7 @@ const la = {
|
|
|
1751
1751
|
])) : z("", !0);
|
|
1752
1752
|
};
|
|
1753
1753
|
}
|
|
1754
|
-
}), na = { class: "cl-font-semibold lg:cl-hidden" }, sa = /* @__PURE__ */
|
|
1754
|
+
}), na = { class: "cl-font-semibold lg:cl-hidden" }, sa = /* @__PURE__ */ B({
|
|
1755
1755
|
__name: "cl-ui-grid-cell",
|
|
1756
1756
|
props: {
|
|
1757
1757
|
data: {},
|
|
@@ -1817,7 +1817,7 @@ const la = {
|
|
|
1817
1817
|
}, 1032, ["column", "data", "time-zone", "search-value"]))
|
|
1818
1818
|
], 2));
|
|
1819
1819
|
}
|
|
1820
|
-
}), ra = /* @__PURE__ */
|
|
1820
|
+
}), ra = /* @__PURE__ */ B({
|
|
1821
1821
|
__name: "cl-ui-grid-row",
|
|
1822
1822
|
props: {
|
|
1823
1823
|
data: {},
|
|
@@ -1852,7 +1852,7 @@ const la = {
|
|
|
1852
1852
|
}), ia = { key: 1 }, ca = ["colspan"], ua = { class: "cl-flex cl-flex-wrap cl-justify-center cl-text-center cl-text-sm cl-w-full" }, da = { class: "cl-mt-6 cl-w-full" }, pa = {
|
|
1853
1853
|
key: 0,
|
|
1854
1854
|
class: "cl-mt-4"
|
|
1855
|
-
}, fa = { class: "cl-mb-2 cl-w-full" }, ma = /* @__PURE__ */
|
|
1855
|
+
}, fa = { class: "cl-mb-2 cl-w-full" }, ma = /* @__PURE__ */ B({
|
|
1856
1856
|
__name: "cl-ui-grid-body",
|
|
1857
1857
|
props: {
|
|
1858
1858
|
columns: {},
|
|
@@ -1942,8 +1942,8 @@ const la = {
|
|
|
1942
1942
|
}, Ne({ _: 2 }, [
|
|
1943
1943
|
re(h.$slots, (U, S) => ({
|
|
1944
1944
|
name: S,
|
|
1945
|
-
fn: R((
|
|
1946
|
-
M(h.$slots, S, te(
|
|
1945
|
+
fn: R((F) => [
|
|
1946
|
+
M(h.$slots, S, te(F, { disabled: h.loading }))
|
|
1947
1947
|
])
|
|
1948
1948
|
}))
|
|
1949
1949
|
]), 1032, ["data", "columns", "time-zone", "search-value", "edit-mode", "class", "onClick", "onCellFocus", "onCellEdit"]))), 128)) : h.loading ? z("", !0) : (p(), b("tr", ia, [
|
|
@@ -1971,7 +1971,7 @@ const la = {
|
|
|
1971
1971
|
]);
|
|
1972
1972
|
};
|
|
1973
1973
|
}
|
|
1974
|
-
}), ga = ["value", "inputmode", "required", "disabled", "placeholder"], va = { class: "cl-absolute cl-flex-col cl-flex-nowrap cl-h-full cl-hidden cl-justify-between cl-py-0.5 cl-right-1 cl-text-xs cl-top-0 xl:cl-flex" }, ba = ["disabled"], ha = ["disabled"], Pe = /* @__PURE__ */
|
|
1974
|
+
}), ga = ["value", "inputmode", "required", "disabled", "placeholder"], va = { class: "cl-absolute cl-flex-col cl-flex-nowrap cl-h-full cl-hidden cl-justify-between cl-py-0.5 cl-right-1 cl-text-xs cl-top-0 xl:cl-flex" }, ba = ["disabled"], ha = ["disabled"], Pe = /* @__PURE__ */ B({
|
|
1975
1975
|
inheritAttrs: !1,
|
|
1976
1976
|
__name: "cl-ui-input-number",
|
|
1977
1977
|
props: /* @__PURE__ */ ge({
|
|
@@ -2015,7 +2015,7 @@ const la = {
|
|
|
2015
2015
|
get: () => q.value ?? A(n.value),
|
|
2016
2016
|
set: (v) => q.value = v
|
|
2017
2017
|
});
|
|
2018
|
-
function
|
|
2018
|
+
function F(v) {
|
|
2019
2019
|
return v = e.min === null ? v : Math.max(e.min, v), v = e.max === null ? v : Math.min(e.max, v), v;
|
|
2020
2020
|
}
|
|
2021
2021
|
function x(v, C) {
|
|
@@ -2023,7 +2023,7 @@ const la = {
|
|
|
2023
2023
|
n.value = null;
|
|
2024
2024
|
else if (v !== "") {
|
|
2025
2025
|
let _ = typeof v == "number" ? v : E(v);
|
|
2026
|
-
C && e.format === X.PERCENTAGE && (_ = _ / T.value), isNaN(_) === !1 && (n.value =
|
|
2026
|
+
C && e.format === X.PERCENTAGE && (_ = _ / T.value), isNaN(_) === !1 && (n.value = F(Math.round(_ * $.value) / $.value));
|
|
2027
2027
|
}
|
|
2028
2028
|
}
|
|
2029
2029
|
function A(v) {
|
|
@@ -2124,7 +2124,7 @@ const la = {
|
|
|
2124
2124
|
}), ya = {
|
|
2125
2125
|
key: 0,
|
|
2126
2126
|
class: "cl-flex cl-flex-wrap cl-justify-end cl-mt-2 cl-w-full"
|
|
2127
|
-
}, wa = { class: "cl-bg-off-white cl-border cl-border-grey-1 cl-flex cl-items-center cl-mb-2 cl-px-3 cl-rounded-lg cl-shadow-md cl-text-sm cl-w-full lg:cl-w-auto" }, ka = { class: "cl-text-grey-3 cl-w-max" }, $a = /* @__PURE__ */ f("span", null, null, -1), Ca = { class: "cl-bg-off-white cl-border cl-border-grey-1 cl-flex cl-flex-wrap cl-items-center cl-mb-2 cl-px-3 cl-py-2 cl-rounded-lg cl-shadow-md cl-text-sm cl-w-full lg:cl-ml-2 lg:cl-w-auto mb:cl-flex-nowrap" }, Ta = { class: "cl-flex cl-flex-wrap cl-mb-2 cl-text-sm cl-w-full lg:cl-p-2 md:cl-mb-0 md:cl-w-auto" }, qa = { class: "cl-flex cl-flex-wrap cl-mb-2 cl-w-full lg:cl-mb-0 lg:cl-mr-2 lg:cl-w-auto" }, Oa = { class: "cl-text-grey-3 cl-w-full lg:cl-mr-2 lg:cl-w-auto" }, Sa = { class: "cl-flex cl-flex-wrap cl-text-sm mb:cl-flex-nowrap" }, Da = { class: "cl-pr-2" }, Ea = ["onClick"], Aa = { class: "cl-flex cl-flex-wrap cl-mb-2 cl-text-sm cl-w-full lg:cl-p-2 md:cl-mb-0 md:cl-w-auto" }, Va = { class: "cl-mb-2 cl-text-grey-3 cl-w-full lg:cl-mb-0 lg:cl-mr-2 lg:cl-w-auto" }, Na = ["onClick"], Ia = { class: "cl-mb-2 cl-w-full lg:cl-p-2 md:cl-mb-0 md:cl-w-auto" }, Ra = { class: "cl-block cl-mb-2 cl-text-grey-3 cl-w-full lg:cl-inline-block lg:cl-mb-0 lg:cl-mr-1 lg:cl-w-auto" }, Ma = { class: "cl-block lg:cl-inline-block" }, Ua = /* @__PURE__ */
|
|
2127
|
+
}, wa = { class: "cl-bg-off-white cl-border cl-border-grey-1 cl-flex cl-items-center cl-mb-2 cl-px-3 cl-rounded-lg cl-shadow-md cl-text-sm cl-w-full lg:cl-w-auto" }, ka = { class: "cl-text-grey-3 cl-w-max" }, $a = /* @__PURE__ */ f("span", null, null, -1), Ca = { class: "cl-bg-off-white cl-border cl-border-grey-1 cl-flex cl-flex-wrap cl-items-center cl-mb-2 cl-px-3 cl-py-2 cl-rounded-lg cl-shadow-md cl-text-sm cl-w-full lg:cl-ml-2 lg:cl-w-auto mb:cl-flex-nowrap" }, Ta = { class: "cl-flex cl-flex-wrap cl-mb-2 cl-text-sm cl-w-full lg:cl-p-2 md:cl-mb-0 md:cl-w-auto" }, qa = { class: "cl-flex cl-flex-wrap cl-mb-2 cl-w-full lg:cl-mb-0 lg:cl-mr-2 lg:cl-w-auto" }, Oa = { class: "cl-text-grey-3 cl-w-full lg:cl-mr-2 lg:cl-w-auto" }, Sa = { class: "cl-flex cl-flex-wrap cl-text-sm mb:cl-flex-nowrap" }, Da = { class: "cl-pr-2" }, Ea = ["onClick"], Aa = { class: "cl-flex cl-flex-wrap cl-mb-2 cl-text-sm cl-w-full lg:cl-p-2 md:cl-mb-0 md:cl-w-auto" }, Va = { class: "cl-mb-2 cl-text-grey-3 cl-w-full lg:cl-mb-0 lg:cl-mr-2 lg:cl-w-auto" }, Na = ["onClick"], Ia = { class: "cl-mb-2 cl-w-full lg:cl-p-2 md:cl-mb-0 md:cl-w-auto" }, Ra = { class: "cl-block cl-mb-2 cl-text-grey-3 cl-w-full lg:cl-inline-block lg:cl-mb-0 lg:cl-mr-1 lg:cl-w-auto" }, Ma = { class: "cl-block lg:cl-inline-block" }, Ua = /* @__PURE__ */ B({
|
|
2128
2128
|
__name: "cl-ui-grid-footer",
|
|
2129
2129
|
props: {
|
|
2130
2130
|
request: {},
|
|
@@ -2282,7 +2282,7 @@ function za(t, o, l, e, n) {
|
|
|
2282
2282
|
let a = W.fromJSDate(l, { zone: e });
|
|
2283
2283
|
return a = Wl(o, e, a, n), a = Hl(t, e, a, n), a.toJSDate();
|
|
2284
2284
|
}
|
|
2285
|
-
function
|
|
2285
|
+
function Fl(t, o) {
|
|
2286
2286
|
const l = W.fromObject({
|
|
2287
2287
|
day: 3,
|
|
2288
2288
|
month: 4,
|
|
@@ -2331,7 +2331,7 @@ function pl(t, o, l, e) {
|
|
|
2331
2331
|
}) : n = W.utc().setZone(l);
|
|
2332
2332
|
return n;
|
|
2333
2333
|
}
|
|
2334
|
-
function
|
|
2334
|
+
function Bl(t, o) {
|
|
2335
2335
|
const l = t.range, e = t.scope === "past" ? -1 : t.scope === "current" ? 0 : 1, n = W.now().setZone(o).startOf(l).plus({
|
|
2336
2336
|
days: l === "day" ? e : 0,
|
|
2337
2337
|
weeks: l === "week" ? e : 0,
|
|
@@ -2375,7 +2375,7 @@ function Wl(t, o, l, e) {
|
|
|
2375
2375
|
}
|
|
2376
2376
|
return l;
|
|
2377
2377
|
}
|
|
2378
|
-
const La = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, ja = ["onClick"],
|
|
2378
|
+
const La = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, ja = ["onClick"], Fa = /* @__PURE__ */ B({
|
|
2379
2379
|
__name: "cl-ui-quick-dates-group",
|
|
2380
2380
|
props: {
|
|
2381
2381
|
dates: {},
|
|
@@ -2400,7 +2400,7 @@ const La = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, ja = ["onClick"], Ba =
|
|
|
2400
2400
|
}), 128))
|
|
2401
2401
|
]));
|
|
2402
2402
|
}
|
|
2403
|
-
}),
|
|
2403
|
+
}), Ba = [
|
|
2404
2404
|
"today",
|
|
2405
2405
|
"this week",
|
|
2406
2406
|
"this month",
|
|
@@ -2495,7 +2495,7 @@ const La = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, ja = ["onClick"], Ba =
|
|
|
2495
2495
|
], Pa = { class: "cl-p-2 cl-pt-0" }, Ha = {
|
|
2496
2496
|
key: 0,
|
|
2497
2497
|
class: "cl-mt-2 cl-opacity-20"
|
|
2498
|
-
}, Gl = /* @__PURE__ */
|
|
2498
|
+
}, Gl = /* @__PURE__ */ B({
|
|
2499
2499
|
__name: "cl-ui-quick-dates",
|
|
2500
2500
|
props: {
|
|
2501
2501
|
scope: {},
|
|
@@ -2533,7 +2533,7 @@ const La = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, ja = ["onClick"], Ba =
|
|
|
2533
2533
|
key: r,
|
|
2534
2534
|
class: "cl-pt-2"
|
|
2535
2535
|
}, [
|
|
2536
|
-
D(
|
|
2536
|
+
D(Fa, {
|
|
2537
2537
|
dates: u,
|
|
2538
2538
|
"selected-quick-date": d.selectedQuickDate,
|
|
2539
2539
|
onQuickDateSelected: c[0] || (c[0] = (i) => e("quick-date-selected", i))
|
|
@@ -2542,7 +2542,7 @@ const La = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, ja = ["onClick"], Ba =
|
|
|
2542
2542
|
]))), 128))
|
|
2543
2543
|
]));
|
|
2544
2544
|
}
|
|
2545
|
-
}), ml = /* @__PURE__ */
|
|
2545
|
+
}), ml = /* @__PURE__ */ B({
|
|
2546
2546
|
inheritAttrs: !1,
|
|
2547
2547
|
__name: "cl-ui-input-date-range-input",
|
|
2548
2548
|
props: {
|
|
@@ -2605,7 +2605,7 @@ const La = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, ja = ["onClick"], Ba =
|
|
|
2605
2605
|
], 2);
|
|
2606
2606
|
};
|
|
2607
2607
|
}
|
|
2608
|
-
}), Kl = /* @__PURE__ */
|
|
2608
|
+
}), Kl = /* @__PURE__ */ B({
|
|
2609
2609
|
inheritAttrs: !1,
|
|
2610
2610
|
__name: "cl-ui-input-date-range",
|
|
2611
2611
|
props: /* @__PURE__ */ ge({
|
|
@@ -2648,7 +2648,7 @@ const La = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, ja = ["onClick"], Ba =
|
|
|
2648
2648
|
}
|
|
2649
2649
|
}), { locale: a } = se(), d = O(() => o.dateFormatLocale ?? a.value), c = O(() => dl(o.disabled, o.popoverPlacement)), u = O(() => pl(l.value, o.initialCalendarDate, e.value, "dateRange")), r = O(() => Pl(n.value, e.value, d.value)), i = I(null), s = I(null);
|
|
2650
2650
|
function m(T) {
|
|
2651
|
-
const $ =
|
|
2651
|
+
const $ = Bl(T, e.value);
|
|
2652
2652
|
n.value = $, i.value = T, s.value.move($.start), s.value.hidePopover();
|
|
2653
2653
|
}
|
|
2654
2654
|
const h = Il("(min-width: 768px)"), k = O(() => h.value ? 2 : 1);
|
|
@@ -2711,7 +2711,7 @@ const La = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, ja = ["onClick"], Ba =
|
|
|
2711
2711
|
"tel",
|
|
2712
2712
|
"password",
|
|
2713
2713
|
"search"
|
|
2714
|
-
], Za = { class: "cl-gap-1 cl-grid cl-grid-cols-[auto_1fr_auto_auto] cl-pt-0.5 cl-w-full" }, Ga = ["disabled"], Ka = { class: "cl-max-w-max" }, Qa = { class: "cl-flex cl-flex-col cl-gap-1 cl-w-full" }, xa = ["min", "disabled", "required", "step", "max"], Ya = { class: "cl-bg-white cl-border cl-border-grey-2 cl-leading-none cl-rounded-full cl-text-center cl-text-xs" }, _a = ["disabled"], Ja = ["disabled", "title"], Xa = /* @__PURE__ */
|
|
2714
|
+
], Za = { class: "cl-gap-1 cl-grid cl-grid-cols-[auto_1fr_auto_auto] cl-pt-0.5 cl-w-full" }, Ga = ["disabled"], Ka = { class: "cl-max-w-max" }, Qa = { class: "cl-flex cl-flex-col cl-gap-1 cl-w-full" }, xa = ["min", "disabled", "required", "step", "max"], Ya = { class: "cl-bg-white cl-border cl-border-grey-2 cl-leading-none cl-rounded-full cl-text-center cl-text-xs" }, _a = ["disabled"], Ja = ["disabled", "title"], Xa = /* @__PURE__ */ B({
|
|
2715
2715
|
inheritAttrs: !1,
|
|
2716
2716
|
__name: "cl-ui-input-range",
|
|
2717
2717
|
props: /* @__PURE__ */ ge({
|
|
@@ -2849,7 +2849,7 @@ const La = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, ja = ["onClick"], Ba =
|
|
|
2849
2849
|
}, on = ["value", "disabled", "placeholder"], an = {
|
|
2850
2850
|
key: 0,
|
|
2851
2851
|
class: "action-icon cl-absolute cl-bg-transparent cl-flex cl-right-2 cl-text-grey-4 cl-top-3.5"
|
|
2852
|
-
}, nn = /* @__PURE__ */
|
|
2852
|
+
}, nn = /* @__PURE__ */ B({
|
|
2853
2853
|
inheritAttrs: !1,
|
|
2854
2854
|
__name: "cl-ui-calendar-input",
|
|
2855
2855
|
props: {
|
|
@@ -2922,7 +2922,7 @@ const La = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, ja = ["onClick"], Ba =
|
|
|
2922
2922
|
]))
|
|
2923
2923
|
]));
|
|
2924
2924
|
}
|
|
2925
|
-
}), je = /* @__PURE__ */ he(nn, [["__scopeId", "data-v-307fea23"]]), xl = /* @__PURE__ */
|
|
2925
|
+
}), je = /* @__PURE__ */ he(nn, [["__scopeId", "data-v-307fea23"]]), xl = /* @__PURE__ */ B({
|
|
2926
2926
|
inheritAttrs: !1,
|
|
2927
2927
|
__name: "cl-ui-input-datetime",
|
|
2928
2928
|
props: /* @__PURE__ */ ge({
|
|
@@ -2952,7 +2952,7 @@ const La = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, ja = ["onClick"], Ba =
|
|
|
2952
2952
|
set(k) {
|
|
2953
2953
|
e.type === "time" ? n.value = k : k !== null ? n.value = Re(k, null, !0, e.timeZone) : n.value = null;
|
|
2954
2954
|
}
|
|
2955
|
-
}), { locale: u } = se(), r = O(() => e.dateFormatLocale ?? u.value), i = O(() => dl(e.disabled, e.popoverPlacement)), s = O(() =>
|
|
2955
|
+
}), { locale: u } = se(), r = O(() => e.dateFormatLocale ?? u.value), i = O(() => dl(e.disabled, e.popoverPlacement)), s = O(() => Fl(r.value, e.type)), m = I(null), h = O(() => pl(n.value, e.initialCalendarDate, d.value, e.type));
|
|
2956
2956
|
return oe(() => [
|
|
2957
2957
|
e.minDate,
|
|
2958
2958
|
e.maxDate
|
|
@@ -3225,7 +3225,7 @@ const gn = {
|
|
|
3225
3225
|
description: "Less than",
|
|
3226
3226
|
allowedTypes: ["number"]
|
|
3227
3227
|
}
|
|
3228
|
-
], hn = { class: "cl-bg-off-white cl-border-grey-1 cl-border-r cl-flex cl-h-full cl-items-center cl-justify-center cl-rounded-md cl-w-10" }, yn = { class: "cl-p-2 cl-select-none" }, wn = ["onClick"], kn = /* @__PURE__ */
|
|
3228
|
+
], hn = { class: "cl-bg-off-white cl-border-grey-1 cl-border-r cl-flex cl-h-full cl-items-center cl-justify-center cl-rounded-md cl-w-10" }, yn = { class: "cl-p-2 cl-select-none" }, wn = ["onClick"], kn = /* @__PURE__ */ B({
|
|
3229
3229
|
__name: "cl-ui-grid-method-selector",
|
|
3230
3230
|
props: {
|
|
3231
3231
|
filter: {},
|
|
@@ -3320,7 +3320,7 @@ const gn = {
|
|
|
3320
3320
|
}, En = /* @__PURE__ */ f("span", null, null, -1), An = {
|
|
3321
3321
|
key: 4,
|
|
3322
3322
|
class: "cl-w-full"
|
|
3323
|
-
}, Vn = /* @__PURE__ */ f("span", null, null, -1), Nn = ["id", "disabled"], In = /* @__PURE__ */ f("option", { value: void 0 }, null, -1), Rn = ["value", "selected"], Mn = /* @__PURE__ */
|
|
3323
|
+
}, Vn = /* @__PURE__ */ f("span", null, null, -1), Nn = ["id", "disabled"], In = /* @__PURE__ */ f("option", { value: void 0 }, null, -1), Rn = ["value", "selected"], Mn = /* @__PURE__ */ B({
|
|
3324
3324
|
__name: "cl-ui-grid-filter",
|
|
3325
3325
|
props: {
|
|
3326
3326
|
loading: { type: Boolean },
|
|
@@ -3466,7 +3466,7 @@ const gn = {
|
|
|
3466
3466
|
var y;
|
|
3467
3467
|
return ((y = h.value) == null ? void 0 : y.filterValue) ?? "";
|
|
3468
3468
|
}), q = O(() => $.value === "" ? null : $.value), U = O(() => $.value === "" ? null : $.value), S = O(() => nl(l.column));
|
|
3469
|
-
function
|
|
3469
|
+
function F(y, v) {
|
|
3470
3470
|
var ve;
|
|
3471
3471
|
let C, _ = !1;
|
|
3472
3472
|
const K = ((y == null ? void 0 : y.value) ?? v).trim();
|
|
@@ -3493,7 +3493,7 @@ const gn = {
|
|
|
3493
3493
|
minimumFractionDigits: _ ? 0 : void 0
|
|
3494
3494
|
} });
|
|
3495
3495
|
}
|
|
3496
|
-
|
|
3496
|
+
F(null, isNaN(C) ? "" : C.toString());
|
|
3497
3497
|
}
|
|
3498
3498
|
function A(y) {
|
|
3499
3499
|
var _;
|
|
@@ -3519,7 +3519,7 @@ const gn = {
|
|
|
3519
3519
|
id: `${g(E)}-${y.column.name}`,
|
|
3520
3520
|
disabled: y.loading,
|
|
3521
3521
|
class: "!cl-h-[2rem] cl-bg-white cl-border-none cl-font-normal cl-mb-0 cl-rounded-md cl-w-full",
|
|
3522
|
-
onChange: v[0] || (v[0] = (C) =>
|
|
3522
|
+
onChange: v[0] || (v[0] = (C) => F(C.target))
|
|
3523
3523
|
}, [
|
|
3524
3524
|
Tn,
|
|
3525
3525
|
f("option", {
|
|
@@ -3539,7 +3539,7 @@ const gn = {
|
|
|
3539
3539
|
type: y.column.type === "slot" ? y.column.slotType : y.column.type,
|
|
3540
3540
|
class: "!cl-h-[2rem] cl-border-none cl-mb-0 cl-text-xs cl-w-full lg:!cl-text-base",
|
|
3541
3541
|
"popover-placement": "bottom-start",
|
|
3542
|
-
"onUpdate:modelValue": v[1] || (v[1] = (C) =>
|
|
3542
|
+
"onUpdate:modelValue": v[1] || (v[1] = (C) => F(null, C ?? ""))
|
|
3543
3543
|
}, null, 8, ["id", "model-value", "time-zone", "disabled", "type"])) : r.value ? (p(), b("div", Sn, [
|
|
3544
3544
|
D(Kl, {
|
|
3545
3545
|
id: `${g(E)}-${y.column.name}`,
|
|
@@ -3556,14 +3556,13 @@ const gn = {
|
|
|
3556
3556
|
id: `${g(E)}-${y.column.name}`,
|
|
3557
3557
|
"model-value": $.value === "" || isNaN(+$.value) ? null : +$.value,
|
|
3558
3558
|
format: m.value,
|
|
3559
|
-
precision: y.column.format === g(X).INTEGER ? 0 : g(il)(m.value, { locale: g(a) }).maximumFractionDigits,
|
|
3559
|
+
precision: y.column.format === g(X).INTEGER ? 0 : g(il)(m.value, { locale: g(a), additionalOptions: { maximumFractionDigits: 2 } }).maximumFractionDigits,
|
|
3560
3560
|
class: "cl-border-none cl-font-normal cl-h-[2rem] cl-mb-0 cl-text-xs cl-w-full lg:cl-text-base",
|
|
3561
3561
|
disabled: y.loading,
|
|
3562
3562
|
readonly: y.loading,
|
|
3563
3563
|
"show-arrows": !1,
|
|
3564
3564
|
"allow-empty": !0,
|
|
3565
|
-
"
|
|
3566
|
-
"onUpdate:modelValue": v[3] || (v[3] = (C) => C !== null ? x(null, C) : B(null, ""))
|
|
3565
|
+
"onUpdate:modelValue": v[3] || (v[3] = (C) => C !== null ? x(null, C) : F(null, ""))
|
|
3567
3566
|
}, {
|
|
3568
3567
|
default: R(() => [
|
|
3569
3568
|
En
|
|
@@ -3576,7 +3575,7 @@ const gn = {
|
|
|
3576
3575
|
"model-value": $.value,
|
|
3577
3576
|
class: "cl-border-none cl-font-normal cl-h-[2rem] cl-px-3 cl-text-xs lg:cl-text-base",
|
|
3578
3577
|
disabled: y.loading,
|
|
3579
|
-
"onUpdate:modelValue": v[4] || (v[4] = (C) =>
|
|
3578
|
+
"onUpdate:modelValue": v[4] || (v[4] = (C) => F(null, C))
|
|
3580
3579
|
}, {
|
|
3581
3580
|
default: R(() => [
|
|
3582
3581
|
Vn
|
|
@@ -3588,7 +3587,7 @@ const gn = {
|
|
|
3588
3587
|
id: `${g(E)}-${y.column.name}`,
|
|
3589
3588
|
class: "!cl-h-[2rem] cl-bg-white cl-border-none cl-font-normal cl-mb-0 cl-rounded-md cl-w-full",
|
|
3590
3589
|
disabled: y.loading,
|
|
3591
|
-
onChange: v[5] || (v[5] = (C) => s.value ? x(C.target) :
|
|
3590
|
+
onChange: v[5] || (v[5] = (C) => s.value ? x(C.target) : F(C.target))
|
|
3592
3591
|
}, [
|
|
3593
3592
|
In,
|
|
3594
3593
|
(p(!0), b(Y, null, re(y.column.listEntries ?? [], (C) => (p(), b("option", {
|
|
@@ -3607,7 +3606,7 @@ const gn = {
|
|
|
3607
3606
|
}, null, 8, ["filter", "loading", "column", "default-operation"]))
|
|
3608
3607
|
])) : z("", !0);
|
|
3609
3608
|
}
|
|
3610
|
-
}), Un = { class: "-cl-top-1 cl-bg-white cl-shadow-sm cl-sticky cl-z-20 lg:cl-bg-transparent lg:cl-relative lg:cl-shadow-none" }, zn = { class: "cl-hidden lg:cl-table-row" }, Ln = ["onClick"], jn = { class: "cl-flex cl-justify-end cl-w-full lg:cl-hidden" },
|
|
3609
|
+
}), Un = { class: "-cl-top-1 cl-bg-white cl-shadow-sm cl-sticky cl-z-20 lg:cl-bg-transparent lg:cl-relative lg:cl-shadow-none" }, zn = { class: "cl-hidden lg:cl-table-row" }, Ln = ["onClick"], jn = { class: "cl-flex cl-justify-end cl-w-full lg:cl-hidden" }, Fn = { class: "cl-col-span-2 lg:cl-hidden" }, Bn = ["onClick"], Pn = { class: "cl-font-normal cl-mr-1" }, Hn = /* @__PURE__ */ B({
|
|
3611
3610
|
__name: "cl-ui-grid-header",
|
|
3612
3611
|
props: {
|
|
3613
3612
|
request: {},
|
|
@@ -3689,7 +3688,7 @@ const gn = {
|
|
|
3689
3688
|
"cl-hidden lg:cl-table-cell": !g(nl)(s)
|
|
3690
3689
|
}])
|
|
3691
3690
|
}, [
|
|
3692
|
-
f("div",
|
|
3691
|
+
f("div", Fn, N(s.caption), 1),
|
|
3693
3692
|
g(Ge)(s) ? (p(), b("div", {
|
|
3694
3693
|
key: 0,
|
|
3695
3694
|
class: "cl-col-span-2 cl-gap-1 cl-span lg:cl-hidden",
|
|
@@ -3709,7 +3708,7 @@ const gn = {
|
|
|
3709
3708
|
class: "cl-cursor-pointer cl-inline-block",
|
|
3710
3709
|
icon: "ph:minus"
|
|
3711
3710
|
}))
|
|
3712
|
-
], 8,
|
|
3711
|
+
], 8, Bn)) : z("", !0),
|
|
3713
3712
|
D(Mn, {
|
|
3714
3713
|
class: "cl-col-span-4",
|
|
3715
3714
|
loading: r.loading,
|
|
@@ -3724,7 +3723,7 @@ const gn = {
|
|
|
3724
3723
|
], 2)
|
|
3725
3724
|
]));
|
|
3726
3725
|
}
|
|
3727
|
-
}), Wn = { class: "cl-flex cl-mb-2" }, Zn = { class: "cl-basis-full cl-grow" }, Gn = /* @__PURE__ */ f("span", null, null, -1), Kn = /* @__PURE__ */
|
|
3726
|
+
}), Wn = { class: "cl-flex cl-mb-2" }, Zn = { class: "cl-basis-full cl-grow" }, Gn = /* @__PURE__ */ f("span", null, null, -1), Kn = /* @__PURE__ */ B({
|
|
3728
3727
|
__name: "cl-ui-grid-search",
|
|
3729
3728
|
props: /* @__PURE__ */ ge({
|
|
3730
3729
|
columns: {},
|
|
@@ -3784,7 +3783,7 @@ const gn = {
|
|
|
3784
3783
|
]);
|
|
3785
3784
|
};
|
|
3786
3785
|
}
|
|
3787
|
-
}), Qn = { class: "cl-fixed cl-flex cl-h-full cl-justify-end cl-right-0 cl-shadow-lg cl-top-0 cl-z-40" }, xn = { class: "cl-bg-secondary-default cl-h-full cl-overflow-y-auto cl-overscroll-y-none cl-px-10 cl-py-20 cl-relative cl-text-grey-2 cl-w-80" }, Yn = { class: "cl-mb-4 cl-text-2xl cl-text-off-white" }, _n = { class: "cl-border-grey-3 cl-border-t cl-flex cl-flex-wrap cl-text-sm cl-w-full" }, Jn = { class: "cl-border-b cl-border-grey-2 cl-flex cl-py-2 cl-text-sm cl-w-full" }, Xn = { class: "cl-flex-1 cl-py-2" }, es = { class: "cl-py-2 cl-w-1/4" }, ls = { class: "cl-py-2 cl-w-1/5" }, ts = { class: "cl-flex-1 cl-py-2" }, os = { class: "cl-py-2 cl-w-1/4" }, as = { class: "cl-py-2 cl-text-off-white cl-w-1/5" }, ns = { key: 1 }, ss = /* @__PURE__ */
|
|
3786
|
+
}), Qn = { class: "cl-fixed cl-flex cl-h-full cl-justify-end cl-right-0 cl-shadow-lg cl-top-0 cl-z-40" }, xn = { class: "cl-bg-secondary-default cl-h-full cl-overflow-y-auto cl-overscroll-y-none cl-px-10 cl-py-20 cl-relative cl-text-grey-2 cl-w-80" }, Yn = { class: "cl-mb-4 cl-text-2xl cl-text-off-white" }, _n = { class: "cl-border-grey-3 cl-border-t cl-flex cl-flex-wrap cl-text-sm cl-w-full" }, Jn = { class: "cl-border-b cl-border-grey-2 cl-flex cl-py-2 cl-text-sm cl-w-full" }, Xn = { class: "cl-flex-1 cl-py-2" }, es = { class: "cl-py-2 cl-w-1/4" }, ls = { class: "cl-py-2 cl-w-1/5" }, ts = { class: "cl-flex-1 cl-py-2" }, os = { class: "cl-py-2 cl-w-1/4" }, as = { class: "cl-py-2 cl-text-off-white cl-w-1/5" }, ns = { key: 1 }, ss = /* @__PURE__ */ B({
|
|
3788
3787
|
inheritAttrs: !1,
|
|
3789
3788
|
__name: "cl-ui-grid-view-manager",
|
|
3790
3789
|
props: {
|
|
@@ -3874,7 +3873,7 @@ const gn = {
|
|
|
3874
3873
|
]))
|
|
3875
3874
|
], 64));
|
|
3876
3875
|
}
|
|
3877
|
-
}), rs = { class: "cl-relative cl-w-full grid-wrapper lg:cl-min-h-fit" }, is = { class: "cl-absolute cl-flex cl-items-center cl-justify-center cl-min-h-full cl-p-28 cl-pt-0 cl-w-full" }, cs = { class: "cl-overflow-x-auto cl-overscroll-x-none cl-pt-1" }, us = { class: "cl-hidden lg:cl-table-column-group" }, ds = /* @__PURE__ */
|
|
3876
|
+
}), rs = { class: "cl-relative cl-w-full grid-wrapper lg:cl-min-h-fit" }, is = { class: "cl-absolute cl-flex cl-items-center cl-justify-center cl-min-h-full cl-p-28 cl-pt-0 cl-w-full" }, cs = { class: "cl-overflow-x-auto cl-overscroll-x-none cl-pt-1" }, us = { class: "cl-hidden lg:cl-table-column-group" }, ds = /* @__PURE__ */ B({
|
|
3878
3877
|
__name: "cl-ui-grid",
|
|
3879
3878
|
props: {
|
|
3880
3879
|
columns: {},
|
|
@@ -3907,7 +3906,7 @@ const gn = {
|
|
|
3907
3906
|
function s(E) {
|
|
3908
3907
|
return r.value[E] ?? "";
|
|
3909
3908
|
}
|
|
3910
|
-
|
|
3909
|
+
Be(() => {
|
|
3911
3910
|
window.addEventListener("resize", i), i();
|
|
3912
3911
|
}), Ye(() => window.removeEventListener("resize", i));
|
|
3913
3912
|
const m = O({
|
|
@@ -3916,7 +3915,7 @@ const gn = {
|
|
|
3916
3915
|
});
|
|
3917
3916
|
function h() {
|
|
3918
3917
|
const E = pe(m.value);
|
|
3919
|
-
E.pageNumber = 1, E.filters = [],
|
|
3918
|
+
E.pageNumber = 1, E.filters = [], F.value = "", m.value = E;
|
|
3920
3919
|
}
|
|
3921
3920
|
const k = mt(() => e("data-request"), 750);
|
|
3922
3921
|
oe(m, k, {
|
|
@@ -3946,12 +3945,12 @@ const gn = {
|
|
|
3946
3945
|
filters: y
|
|
3947
3946
|
};
|
|
3948
3947
|
}
|
|
3949
|
-
}),
|
|
3948
|
+
}), F = I(((A = l.request.filters.find((E) => E.filterMethod === "andcontains" || E.filterOperation === J.AND_CONTAINS)) == null ? void 0 : A.filterValue) ?? ""), x = O(() => l.columns.filter((E) => (E.type === "string" || E.type === "slot" && E.slotType === "string") && E.searchable));
|
|
3950
3949
|
return (E, y) => (p(), b("div", rs, [
|
|
3951
3950
|
x.value.length > 0 ? (p(), P(Kn, {
|
|
3952
3951
|
key: 0,
|
|
3953
|
-
"search-value":
|
|
3954
|
-
"onUpdate:searchValue": y[0] || (y[0] = (v) =>
|
|
3952
|
+
"search-value": F.value,
|
|
3953
|
+
"onUpdate:searchValue": y[0] || (y[0] = (v) => F.value = v),
|
|
3955
3954
|
request: m.value,
|
|
3956
3955
|
"onUpdate:request": y[1] || (y[1] = (v) => m.value = v),
|
|
3957
3956
|
columns: x.value
|
|
@@ -3971,7 +3970,7 @@ const gn = {
|
|
|
3971
3970
|
]),
|
|
3972
3971
|
_: 1
|
|
3973
3972
|
}),
|
|
3974
|
-
D(
|
|
3973
|
+
D(Fo, {
|
|
3975
3974
|
"edit-mode": $.value,
|
|
3976
3975
|
"onUpdate:editMode": y[3] || (y[3] = (v) => $.value = v),
|
|
3977
3976
|
"filter-panel-open": q.value,
|
|
@@ -4024,7 +4023,7 @@ const gn = {
|
|
|
4024
4023
|
data: T.value,
|
|
4025
4024
|
"time-zone": E.timeZone,
|
|
4026
4025
|
loading: E.loading,
|
|
4027
|
-
"search-value":
|
|
4026
|
+
"search-value": F.value,
|
|
4028
4027
|
options: U.value,
|
|
4029
4028
|
"edit-mode": $.value,
|
|
4030
4029
|
onClearFilters: h,
|
|
@@ -4052,7 +4051,7 @@ const gn = {
|
|
|
4052
4051
|
}, null, 8, ["request", "loading", "show-unsaved-changes-warning", "data"])
|
|
4053
4052
|
]));
|
|
4054
4053
|
}
|
|
4055
|
-
}), ps = { class: "cl-absolute cl-bg-secondary-default cl-flex cl-h-20 cl-items-center cl-justify-between cl-left-0 cl-top-0 cl-w-full cl-z-40" }, fs = /* @__PURE__ */
|
|
4054
|
+
}), ps = { class: "cl-absolute cl-bg-secondary-default cl-flex cl-h-20 cl-items-center cl-justify-between cl-left-0 cl-top-0 cl-w-full cl-z-40" }, fs = /* @__PURE__ */ B({
|
|
4056
4055
|
__name: "cl-ui-header",
|
|
4057
4056
|
props: {
|
|
4058
4057
|
isOpen: { type: Boolean }
|
|
@@ -4083,7 +4082,7 @@ const gn = {
|
|
|
4083
4082
|
key: 1,
|
|
4084
4083
|
id: "cl-ui-header-menu-group",
|
|
4085
4084
|
class: "cl-text-ellipsis cl-text-xs cl-whitespace-nowrap"
|
|
4086
|
-
}, hs = { class: "cl-content-center cl-flex cl-h-20 cl-items-center cl-justify-center cl-justify-items-center cl-transition-all cl-w-10 md:cl-ml-4 md:cl-w-20" }, ys = { class: "cl-absolute cl-bg-white cl-right-0 cl-shadow-2xl cl-top-20 cl-w-full cl-z-20" }, ws = /* @__PURE__ */
|
|
4085
|
+
}, hs = { class: "cl-content-center cl-flex cl-h-20 cl-items-center cl-justify-center cl-justify-items-center cl-transition-all cl-w-10 md:cl-ml-4 md:cl-w-20" }, ys = { class: "cl-absolute cl-bg-white cl-right-0 cl-shadow-2xl cl-top-20 cl-w-full cl-z-20" }, ws = /* @__PURE__ */ B({
|
|
4087
4086
|
__name: "cl-ui-header-menu",
|
|
4088
4087
|
props: {
|
|
4089
4088
|
username: { default: "" },
|
|
@@ -4146,7 +4145,7 @@ const gn = {
|
|
|
4146
4145
|
}), ks = [
|
|
4147
4146
|
"default",
|
|
4148
4147
|
"secondary"
|
|
4149
|
-
], $s = /* @__PURE__ */
|
|
4148
|
+
], $s = /* @__PURE__ */ B({
|
|
4150
4149
|
inheritAttrs: !1,
|
|
4151
4150
|
__name: "cl-ui-calendar",
|
|
4152
4151
|
props: {
|
|
@@ -4179,24 +4178,24 @@ const gn = {
|
|
|
4179
4178
|
}), S;
|
|
4180
4179
|
},
|
|
4181
4180
|
set(S) {
|
|
4182
|
-
let
|
|
4181
|
+
let F = null;
|
|
4183
4182
|
if (e.type === "time")
|
|
4184
|
-
|
|
4183
|
+
F = S;
|
|
4185
4184
|
else if (S !== null && e.type !== "dateRange")
|
|
4186
|
-
|
|
4185
|
+
F = Re(S, null, !0, e.timeZone);
|
|
4187
4186
|
else if (S !== null) {
|
|
4188
4187
|
const x = S;
|
|
4189
|
-
|
|
4188
|
+
F = {
|
|
4190
4189
|
start: Re(x.start, "start", !1, e.timeZone) ?? "",
|
|
4191
4190
|
end: Re(x.end, "end", !1, e.timeZone) ?? ""
|
|
4192
4191
|
};
|
|
4193
4192
|
}
|
|
4194
|
-
n("update:date",
|
|
4193
|
+
n("update:date", F);
|
|
4195
4194
|
}
|
|
4196
|
-
}), { locale: c } = se(), u = O(() => e.dateFormatLocale ?? c.value), r = O(() => dl(e.disabled, "auto")), i = O(() =>
|
|
4195
|
+
}), { locale: c } = se(), u = O(() => e.dateFormatLocale ?? c.value), r = O(() => dl(e.disabled, "auto")), i = O(() => Fl(u.value, e.type)), s = I(null), m = O(() => pl(e.date, e.initialDate, a.value, e.type)), h = I(null), k = I();
|
|
4197
4196
|
function T(S) {
|
|
4198
|
-
const
|
|
4199
|
-
d.value =
|
|
4197
|
+
const F = Bl(S, a.value);
|
|
4198
|
+
d.value = F, h.value = S, k.value.move(F.start), k.value.hidePopover();
|
|
4200
4199
|
}
|
|
4201
4200
|
const $ = O(() => Pl(d.value, a.value, u.value)), q = Il("(min-width: 768px)"), U = O(() => q.value ? 2 : 1);
|
|
4202
4201
|
return o({
|
|
@@ -4204,10 +4203,10 @@ const gn = {
|
|
|
4204
4203
|
var S;
|
|
4205
4204
|
(S = s.value) == null || S.focus();
|
|
4206
4205
|
}
|
|
4207
|
-
}), (S,
|
|
4206
|
+
}), (S, F) => S.type === "time" ? (p(), P(g(Ie), {
|
|
4208
4207
|
key: 0,
|
|
4209
4208
|
modelValue: d.value,
|
|
4210
|
-
"onUpdate:modelValue":
|
|
4209
|
+
"onUpdate:modelValue": F[1] || (F[1] = (x) => d.value = x),
|
|
4211
4210
|
modelModifiers: { string: !0 },
|
|
4212
4211
|
locale: g(c),
|
|
4213
4212
|
is24hr: g(c) !== "en-US",
|
|
@@ -4230,7 +4229,7 @@ const gn = {
|
|
|
4230
4229
|
placeholder: S.placeholder,
|
|
4231
4230
|
required: S.required,
|
|
4232
4231
|
disabled: S.disabled,
|
|
4233
|
-
onClear:
|
|
4232
|
+
onClear: F[0] || (F[0] = (E) => d.value = null)
|
|
4234
4233
|
}), null, 16, ["date", "events", "type", "placeholder", "required", "disabled"])
|
|
4235
4234
|
]),
|
|
4236
4235
|
_: 1
|
|
@@ -4239,7 +4238,7 @@ const gn = {
|
|
|
4239
4238
|
ref_key: "calendar",
|
|
4240
4239
|
ref: k,
|
|
4241
4240
|
modelValue: d.value,
|
|
4242
|
-
"onUpdate:modelValue":
|
|
4241
|
+
"onUpdate:modelValue": F[3] || (F[3] = (x) => d.value = x),
|
|
4243
4242
|
modelModifiers: { range: !0 },
|
|
4244
4243
|
mode: "date",
|
|
4245
4244
|
color: "primary",
|
|
@@ -4252,7 +4251,7 @@ const gn = {
|
|
|
4252
4251
|
"min-date": S.min,
|
|
4253
4252
|
"max-date": S.max,
|
|
4254
4253
|
"initial-page": m.value,
|
|
4255
|
-
onDayclick:
|
|
4254
|
+
onDayclick: F[4] || (F[4] = (x) => h.value = null)
|
|
4256
4255
|
}, {
|
|
4257
4256
|
default: R(({ togglePopover: x }) => [
|
|
4258
4257
|
D(je, te(S.$attrs, {
|
|
@@ -4265,7 +4264,7 @@ const gn = {
|
|
|
4265
4264
|
title: $.value,
|
|
4266
4265
|
placeholder: null,
|
|
4267
4266
|
onTogglePopover: x,
|
|
4268
|
-
onClear:
|
|
4267
|
+
onClear: F[2] || (F[2] = (A) => {
|
|
4269
4268
|
d.value = null, h.value = null, k.value.hidePopover();
|
|
4270
4269
|
})
|
|
4271
4270
|
}), null, 16, ["type", "required", "disabled", "range-selected", "title", "onTogglePopover"])
|
|
@@ -4283,7 +4282,7 @@ const gn = {
|
|
|
4283
4282
|
}, 8, ["modelValue", "locale", "is24hr", "timezone", "columns", "popover", "min-date", "max-date", "initial-page"])) : (p(), P(g(Ie), {
|
|
4284
4283
|
key: 2,
|
|
4285
4284
|
modelValue: d.value,
|
|
4286
|
-
"onUpdate:modelValue":
|
|
4285
|
+
"onUpdate:modelValue": F[7] || (F[7] = (x) => d.value = x),
|
|
4287
4286
|
locale: g(c),
|
|
4288
4287
|
is24hr: g(c) !== "en-US",
|
|
4289
4288
|
timezone: a.value,
|
|
@@ -4309,8 +4308,8 @@ const gn = {
|
|
|
4309
4308
|
placeholder: S.placeholder,
|
|
4310
4309
|
required: S.required,
|
|
4311
4310
|
disabled: S.disabled,
|
|
4312
|
-
onClear:
|
|
4313
|
-
onReset:
|
|
4311
|
+
onClear: F[5] || (F[5] = (E) => d.value = null),
|
|
4312
|
+
onReset: F[6] || (F[6] = (E) => d.value = g(jl)(e.min, e.max, a.value, S.type))
|
|
4314
4313
|
}), null, 16, ["date", "events", "type", "placeholder", "required", "disabled"])
|
|
4315
4314
|
]),
|
|
4316
4315
|
_: 1
|
|
@@ -4319,7 +4318,7 @@ const gn = {
|
|
|
4319
4318
|
}), Ue = [
|
|
4320
4319
|
...Ql,
|
|
4321
4320
|
"dateRange"
|
|
4322
|
-
], Cs = ["disabled", "step", "placeholder", "name"], Ts = /* @__PURE__ */
|
|
4321
|
+
], Cs = ["disabled", "step", "placeholder", "name"], Ts = /* @__PURE__ */ B({
|
|
4323
4322
|
__name: "cl-ui-currency-input",
|
|
4324
4323
|
props: {
|
|
4325
4324
|
modelValue: { type: [String, Object, Number, Boolean, null] },
|
|
@@ -4394,7 +4393,7 @@ const gn = {
|
|
|
4394
4393
|
}), qs = (t) => (ot("data-v-5cb4ccea"), t = t(), at(), t), Os = { class: "cl-flex cl-items-start" }, Ss = { class: "cl-w-full" }, Ds = /* @__PURE__ */ qs(() => /* @__PURE__ */ f("span", null, null, -1)), Es = ["min", "max", "step", "disabled"], As = { class: "cl-bg-transparent cl-text-center cl-text-sm cl-w-full" }, Vs = { class: "cl-bg-transparent cl-text-sm" }, Ns = {
|
|
4395
4394
|
key: 1,
|
|
4396
4395
|
class: "cl-emphasis-danger cl-text-sm cl-w-full"
|
|
4397
|
-
}, Is = /* @__PURE__ */
|
|
4396
|
+
}, Is = /* @__PURE__ */ B({
|
|
4398
4397
|
inheritAttrs: !1,
|
|
4399
4398
|
__name: "cl-ui-slider",
|
|
4400
4399
|
props: /* @__PURE__ */ ge({
|
|
@@ -4555,10 +4554,10 @@ function Sl(t, o) {
|
|
|
4555
4554
|
const zs = { class: "cl-flex cl-justify-between" }, Ls = { class: "cl-w-full" }, js = {
|
|
4556
4555
|
key: 0,
|
|
4557
4556
|
class: "cl-block cl-left-auto cl-relative cl-text-danger-default"
|
|
4558
|
-
},
|
|
4557
|
+
}, Fs = {
|
|
4559
4558
|
key: 1,
|
|
4560
4559
|
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"
|
|
4561
|
-
},
|
|
4560
|
+
}, Bs = {
|
|
4562
4561
|
key: 0,
|
|
4563
4562
|
class: "cl-relative"
|
|
4564
4563
|
}, Ps = ["type", "disabled", "min", "max", "minlength", "maxlength", "step", "placeholder", "name", "autocomplete"], Hs = { key: 0 }, Ws = { key: 1 }, Zs = {
|
|
@@ -4570,7 +4569,7 @@ const zs = { class: "cl-flex cl-justify-between" }, Ls = { class: "cl-w-full" },
|
|
|
4570
4569
|
}, Ks = {
|
|
4571
4570
|
key: 1,
|
|
4572
4571
|
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"
|
|
4573
|
-
}, Qs = /* @__PURE__ */
|
|
4572
|
+
}, Qs = /* @__PURE__ */ B({
|
|
4574
4573
|
inheritAttrs: !1,
|
|
4575
4574
|
__name: "cl-ui-input",
|
|
4576
4575
|
props: {
|
|
@@ -4616,7 +4615,7 @@ const zs = { class: "cl-flex cl-justify-between" }, Ls = { class: "cl-w-full" },
|
|
|
4616
4615
|
}), h = O({
|
|
4617
4616
|
get: () => e.modelValue,
|
|
4618
4617
|
set: (w) => y(w)
|
|
4619
|
-
}), k = O(() => typeof e.min == "number" ? e.min.toString() : e.min), T = O(() => typeof e.max == "number" ? e.max.toString() : e.max), $ = O(() => typeof e.min == "number" || e.min === null ? e.min : parseFloat(e.min)), q = O(() => typeof e.max == "number" || e.max === null ? e.max : parseFloat(e.max)), U = O(() => e.messageWhenValid.trim() !== "" ? e.messageWhenValid : ""), S = I(!0),
|
|
4618
|
+
}), k = O(() => typeof e.min == "number" ? e.min.toString() : e.min), T = O(() => typeof e.max == "number" ? e.max.toString() : e.max), $ = O(() => typeof e.min == "number" || e.min === null ? e.min : parseFloat(e.min)), q = O(() => typeof e.max == "number" || e.max === null ? e.max : parseFloat(e.max)), U = O(() => e.messageWhenValid.trim() !== "" ? e.messageWhenValid : ""), S = I(!0), F = I(!0), x = I([]), A = O(() => {
|
|
4620
4619
|
var w, j;
|
|
4621
4620
|
return [
|
|
4622
4621
|
...((w = x.value) == null ? void 0 : w.filter((G) => ((G == null ? void 0 : G.length) ?? 0) > 0)) ?? [],
|
|
@@ -4636,7 +4635,7 @@ const zs = { class: "cl-flex cl-justify-between" }, Ls = { class: "cl-w-full" },
|
|
|
4636
4635
|
e.validateOn === "input" && await C(w), n("update:model-value", w);
|
|
4637
4636
|
}
|
|
4638
4637
|
async function v(w, j) {
|
|
4639
|
-
e.onInputFunction !== void 0 && (w = e.onInputFunction(w)), e.validateOn === "change" && (
|
|
4638
|
+
e.onInputFunction !== void 0 && (w = e.onInputFunction(w)), e.validateOn === "change" && (F.value = !1), (j || e.validateOn === "input") && await C(w), n("update:model-value", w);
|
|
4640
4639
|
}
|
|
4641
4640
|
function C(w) {
|
|
4642
4641
|
const j = {
|
|
@@ -4651,7 +4650,7 @@ const zs = { class: "cl-flex cl-justify-between" }, Ls = { class: "cl-w-full" },
|
|
|
4651
4650
|
];
|
|
4652
4651
|
return (typeof w == "string" || typeof w == "number") && (G.push(_o(e.min, e.inputType, e.label, w, e.timeZone)), G.push(Jo(e.max, e.inputType, e.label, w, e.timeZone))), e.isRequired && G.push(Xo(e.label, w)), e.inputType === "email" && typeof w == "string" && G.push(ea(e.label, w)), Promise.all(G).then((Te) => {
|
|
4653
4652
|
const _l = [...Te.map((We) => We.message)], gl = Te.some((We) => We.message.length > 0 && We.valid === !1) || e.externalErrors.length > 0;
|
|
4654
|
-
|
|
4653
|
+
F.value = !0, gl ? (x.value = _l, n("validated", !1, w)) : (x.value = [], n("validated", !0, w)), S.value = !gl;
|
|
4655
4654
|
});
|
|
4656
4655
|
}
|
|
4657
4656
|
function _() {
|
|
@@ -4700,7 +4699,7 @@ const zs = { class: "cl-flex cl-justify-between" }, Ls = { class: "cl-w-full" },
|
|
|
4700
4699
|
async function He() {
|
|
4701
4700
|
await H(), ie();
|
|
4702
4701
|
}
|
|
4703
|
-
return
|
|
4702
|
+
return Be(() => {
|
|
4704
4703
|
e.validateImmediately && v(e.modelValue, !0);
|
|
4705
4704
|
}), oe(() => e.isRequired, () => v(e.modelValue, !0)), oe(() => e.externalErrors, async () => {
|
|
4706
4705
|
await C(m.value), n("update:model-value", m.value);
|
|
@@ -4732,9 +4731,9 @@ const zs = { class: "cl-flex cl-justify-between" }, Ls = { class: "cl-w-full" },
|
|
|
4732
4731
|
[ee, w.showLabel && w.label !== ""]
|
|
4733
4732
|
])
|
|
4734
4733
|
]),
|
|
4735
|
-
r.value ? (p(), b("label", js, " * ")) : w.isRequired && w.requiredText.length ? (p(), b("label",
|
|
4734
|
+
r.value ? (p(), b("label", js, " * ")) : w.isRequired && w.requiredText.length ? (p(), b("label", Fs, N(w.requiredText), 1)) : z("", !0)
|
|
4736
4735
|
]),
|
|
4737
|
-
w.inputType !== "range" && w.inputType !== "currency" && !g(Ol)(w.inputType) ? (p(), b("div",
|
|
4736
|
+
w.inputType !== "range" && w.inputType !== "currency" && !g(Ol)(w.inputType) ? (p(), b("div", Bs, [
|
|
4738
4737
|
Q(f("input", te({
|
|
4739
4738
|
ref_key: "inputElement",
|
|
4740
4739
|
ref: a,
|
|
@@ -4857,8 +4856,8 @@ const zs = { class: "cl-flex cl-justify-between" }, Ls = { class: "cl-w-full" },
|
|
|
4857
4856
|
}, null, 8, ["value", "min", "max", "step", "placeholder", "disabled"])
|
|
4858
4857
|
])) : z("", !0)
|
|
4859
4858
|
], 32),
|
|
4860
|
-
S.value && U.value &&
|
|
4861
|
-
!S.value && A.value.length > 0 && w.showValidationMessages &&
|
|
4859
|
+
S.value && U.value && F.value ? (p(), b("div", Gs, N(U.value), 1)) : z("", !0),
|
|
4860
|
+
!S.value && A.value.length > 0 && w.showValidationMessages && F.value ? (p(), b("div", Ks, N(A.value), 1)) : z("", !0)
|
|
4862
4861
|
], 16));
|
|
4863
4862
|
}
|
|
4864
4863
|
}), xs = /* @__PURE__ */ he(Qs, [["__scopeId", "data-v-2373f106"]]), Ys = [
|
|
@@ -4900,7 +4899,7 @@ function Js(t) {
|
|
|
4900
4899
|
const Xs = {
|
|
4901
4900
|
key: 0,
|
|
4902
4901
|
class: "cl-flex cl-relative cl-select-none cl-w-auto cl-z-30"
|
|
4903
|
-
}, er = { class: "cl-absolute cl-bg-white cl-border cl-border-grey-0 cl-overflow-hidden cl-right-0 cl-rounded cl-shadow-xl cl-text-black cl-top-6 cl-z-30" }, lr = ["data-localename", "data-localecode", "onClick"], tr = { class: "cl-text-xs" }, or = /* @__PURE__ */
|
|
4902
|
+
}, er = { class: "cl-absolute cl-bg-white cl-border cl-border-grey-0 cl-overflow-hidden cl-right-0 cl-rounded cl-shadow-xl cl-text-black cl-top-6 cl-z-30" }, lr = ["data-localename", "data-localecode", "onClick"], tr = { class: "cl-text-xs" }, or = /* @__PURE__ */ B({
|
|
4904
4903
|
__name: "cl-ui-language-switcher",
|
|
4905
4904
|
props: {
|
|
4906
4905
|
supportedLanguages: {},
|
|
@@ -4960,7 +4959,7 @@ const Xs = {
|
|
|
4960
4959
|
}, cr = { class: "cl-col-span-3" }, ur = { class: "cl-relative cl-text-grey-4" }, dr = { class: "cl-w-full" }, pr = /* @__PURE__ */ f("span", null, null, -1), fr = {
|
|
4961
4960
|
key: 0,
|
|
4962
4961
|
class: "cl-bg-primary-lighter cl-mt-1 cl-rounded-md cl-text-center cl-text-secondary-default cl-text-xs cl-w-full"
|
|
4963
|
-
}, mr = { class: "cl-col-span-3" }, gr = { class: "cl-relative cl-text-grey-4" }, vr = /* @__PURE__ */ f("span", null, null, -1), br = { class: "cl-col-span-10 cl-emphasis-danger cl-mt-10 cl-p-3 cl-rounded-md cl-text-sm md:cl-mt-3" }, hr = /* @__PURE__ */
|
|
4962
|
+
}, mr = { class: "cl-col-span-3" }, gr = { class: "cl-relative cl-text-grey-4" }, vr = /* @__PURE__ */ f("span", null, null, -1), br = { class: "cl-col-span-10 cl-emphasis-danger cl-mt-10 cl-p-3 cl-rounded-md cl-text-sm md:cl-mt-3" }, hr = /* @__PURE__ */ B({
|
|
4964
4963
|
__name: "cl-ui-login",
|
|
4965
4964
|
props: {
|
|
4966
4965
|
errors: { default: () => [] },
|
|
@@ -5123,7 +5122,7 @@ const Xs = {
|
|
|
5123
5122
|
], kr = {
|
|
5124
5123
|
key: 0,
|
|
5125
5124
|
class: "cl-h-0 cl-w-0"
|
|
5126
|
-
}, $r = { class: "cl-relative cl-w-full" }, Cr = /* @__PURE__ */
|
|
5125
|
+
}, $r = { class: "cl-relative cl-w-full" }, Cr = /* @__PURE__ */ B({
|
|
5127
5126
|
__name: "cl-ui-navigation",
|
|
5128
5127
|
props: {
|
|
5129
5128
|
colour: { default: "default" }
|
|
@@ -5217,7 +5216,7 @@ const Xs = {
|
|
|
5217
5216
|
})
|
|
5218
5217
|
], 512));
|
|
5219
5218
|
}
|
|
5220
|
-
}), Tr = /* @__PURE__ */ he(Cr, [["__scopeId", "data-v-db3283cd"]]), qr = /* @__PURE__ */
|
|
5219
|
+
}), Tr = /* @__PURE__ */ he(Cr, [["__scopeId", "data-v-db3283cd"]]), qr = /* @__PURE__ */ B({
|
|
5221
5220
|
__name: "cl-ui-navigation-icon",
|
|
5222
5221
|
props: {
|
|
5223
5222
|
iconValue: {},
|
|
@@ -5243,7 +5242,7 @@ const Xs = {
|
|
|
5243
5242
|
}), Or = {
|
|
5244
5243
|
key: 0,
|
|
5245
5244
|
class: "cl-font-bold cl-leading-8 cl-mb-8 cl-pr-8 cl-select-none cl-text-lg cl-text-secondary-default"
|
|
5246
|
-
}, Sr = { class: "cl-flex cl-flex-wrap cl-space-y-8 cl-text-sm cl-w-full" }, Dr = /* @__PURE__ */
|
|
5245
|
+
}, Sr = { class: "cl-flex cl-flex-wrap cl-space-y-8 cl-text-sm cl-w-full" }, Dr = /* @__PURE__ */ B({
|
|
5247
5246
|
__name: "cl-ui-navigation-group",
|
|
5248
5247
|
props: {
|
|
5249
5248
|
open: { type: Boolean }
|
|
@@ -5282,7 +5281,7 @@ function zr(t, o) {
|
|
|
5282
5281
|
M(t.$slots, "default")
|
|
5283
5282
|
]);
|
|
5284
5283
|
}
|
|
5285
|
-
const Lr = /* @__PURE__ */ he(Mr, [["render", zr]]), jr = /* @__PURE__ */
|
|
5284
|
+
const Lr = /* @__PURE__ */ he(Mr, [["render", zr]]), jr = /* @__PURE__ */ B({
|
|
5286
5285
|
__name: "cl-ui-tab",
|
|
5287
5286
|
props: {
|
|
5288
5287
|
colour: { default: "default" },
|
|
@@ -5324,7 +5323,7 @@ const Lr = /* @__PURE__ */ he(Mr, [["render", zr]]), jr = /* @__PURE__ */ F({
|
|
|
5324
5323
|
function $(q) {
|
|
5325
5324
|
typeof q == "number" && T(q);
|
|
5326
5325
|
}
|
|
5327
|
-
return
|
|
5326
|
+
return Be(() => {
|
|
5328
5327
|
m(), T(a.value[0].id);
|
|
5329
5328
|
}), Ye(() => window.removeEventListener("resize", s)), o({
|
|
5330
5329
|
setTab: $
|
|
@@ -5381,7 +5380,7 @@ const Lr = /* @__PURE__ */ he(Mr, [["render", zr]]), jr = /* @__PURE__ */ F({
|
|
|
5381
5380
|
])
|
|
5382
5381
|
], 2));
|
|
5383
5382
|
}
|
|
5384
|
-
}),
|
|
5383
|
+
}), Fr = ["inert"], Br = /* @__PURE__ */ B({
|
|
5385
5384
|
__name: "cl-ui-tab-header",
|
|
5386
5385
|
props: {
|
|
5387
5386
|
open: { type: Boolean },
|
|
@@ -5409,9 +5408,9 @@ const Lr = /* @__PURE__ */ he(Mr, [["render", zr]]), jr = /* @__PURE__ */ F({
|
|
|
5409
5408
|
M(e.$slots, "default", {}, () => [
|
|
5410
5409
|
ue(N(e.title), 1)
|
|
5411
5410
|
])
|
|
5412
|
-
], 10,
|
|
5411
|
+
], 10, Fr));
|
|
5413
5412
|
}
|
|
5414
|
-
}), Pr = { key: 0 }, Hr = { class: "cl-font-bold cl-mb-4" }, Wr = /* @__PURE__ */
|
|
5413
|
+
}), Pr = { key: 0 }, Hr = { class: "cl-font-bold cl-mb-4" }, Wr = /* @__PURE__ */ B({
|
|
5415
5414
|
__name: "cl-ui-tab-content",
|
|
5416
5415
|
props: {
|
|
5417
5416
|
open: { type: Boolean },
|
|
@@ -5437,7 +5436,7 @@ const Lr = /* @__PURE__ */ he(Mr, [["render", zr]]), jr = /* @__PURE__ */ F({
|
|
|
5437
5436
|
], Kr = [
|
|
5438
5437
|
"horizontal",
|
|
5439
5438
|
"vertical"
|
|
5440
|
-
], Qr = { class: "cl-block cl-h-full cl-w-full" }, xr = ["multiple", "accept", "disabled"], Yr = ["multiple", "accept", "disabled"], _r = /* @__PURE__ */
|
|
5439
|
+
], Qr = { class: "cl-block cl-h-full cl-w-full" }, xr = ["multiple", "accept", "disabled"], Yr = ["multiple", "accept", "disabled"], _r = /* @__PURE__ */ B({
|
|
5441
5440
|
inheritAttrs: !1,
|
|
5442
5441
|
__name: "cl-ui-file-uploader",
|
|
5443
5442
|
props: {
|
|
@@ -5468,7 +5467,7 @@ const Lr = /* @__PURE__ */ he(Mr, [["render", zr]]), jr = /* @__PURE__ */ F({
|
|
|
5468
5467
|
"dragleave",
|
|
5469
5468
|
"drop"
|
|
5470
5469
|
], c = I(!1);
|
|
5471
|
-
|
|
5470
|
+
Be(() => {
|
|
5472
5471
|
d.forEach((s) => {
|
|
5473
5472
|
document.body.addEventListener(s, (m) => m.preventDefault());
|
|
5474
5473
|
});
|
|
@@ -5527,13 +5526,13 @@ const Lr = /* @__PURE__ */ he(Mr, [["render", zr]]), jr = /* @__PURE__ */ F({
|
|
|
5527
5526
|
allQuickDates: Zl,
|
|
5528
5527
|
buttonColours: zt,
|
|
5529
5528
|
buttonSizes: Lt,
|
|
5530
|
-
cardSizes:
|
|
5529
|
+
cardSizes: Bt,
|
|
5531
5530
|
clUiAccordion: wt,
|
|
5532
5531
|
clUiAccordionHeader: Dt,
|
|
5533
5532
|
clUiAccordionItem: Tt,
|
|
5534
5533
|
clUiApp: Nt,
|
|
5535
5534
|
clUiButton: $e,
|
|
5536
|
-
clUiCard:
|
|
5535
|
+
clUiCard: Ft,
|
|
5537
5536
|
clUiComboBox: $o,
|
|
5538
5537
|
clUiFileUploader: _r,
|
|
5539
5538
|
clUiFooter: No,
|
|
@@ -5560,7 +5559,7 @@ const Lr = /* @__PURE__ */ he(Mr, [["render", zr]]), jr = /* @__PURE__ */ F({
|
|
|
5560
5559
|
clUiNotification: Ml,
|
|
5561
5560
|
clUiTab: jr,
|
|
5562
5561
|
clUiTabContent: Wr,
|
|
5563
|
-
clUiTabHeader:
|
|
5562
|
+
clUiTabHeader: Br,
|
|
5564
5563
|
currentQuickDates: Le,
|
|
5565
5564
|
dateTimeCalendarTypes: Ql,
|
|
5566
5565
|
filterMethodTypes: un,
|
|
@@ -5581,7 +5580,7 @@ const Lr = /* @__PURE__ */ he(Mr, [["render", zr]]), jr = /* @__PURE__ */ F({
|
|
|
5581
5580
|
modalSizes: yr,
|
|
5582
5581
|
pastQuickDates: Qe,
|
|
5583
5582
|
popoverPlacements: ln,
|
|
5584
|
-
quickDateNames:
|
|
5583
|
+
quickDateNames: Ba,
|
|
5585
5584
|
stringFormats: cn,
|
|
5586
5585
|
tabColours: Zr,
|
|
5587
5586
|
tabLayout: Kr,
|
|
@@ -5602,13 +5601,13 @@ export {
|
|
|
5602
5601
|
Zl as allQuickDates,
|
|
5603
5602
|
zt as buttonColours,
|
|
5604
5603
|
Lt as buttonSizes,
|
|
5605
|
-
|
|
5604
|
+
Bt as cardSizes,
|
|
5606
5605
|
wt as clUiAccordion,
|
|
5607
5606
|
Dt as clUiAccordionHeader,
|
|
5608
5607
|
Tt as clUiAccordionItem,
|
|
5609
5608
|
Nt as clUiApp,
|
|
5610
5609
|
$e as clUiButton,
|
|
5611
|
-
|
|
5610
|
+
Ft as clUiCard,
|
|
5612
5611
|
$o as clUiComboBox,
|
|
5613
5612
|
_r as clUiFileUploader,
|
|
5614
5613
|
No as clUiFooter,
|
|
@@ -5635,7 +5634,7 @@ export {
|
|
|
5635
5634
|
Ml as clUiNotification,
|
|
5636
5635
|
jr as clUiTab,
|
|
5637
5636
|
Wr as clUiTabContent,
|
|
5638
|
-
|
|
5637
|
+
Br as clUiTabHeader,
|
|
5639
5638
|
Le as currentQuickDates,
|
|
5640
5639
|
Ql as dateTimeCalendarTypes,
|
|
5641
5640
|
Zo as datetimeFormats,
|
|
@@ -5665,7 +5664,7 @@ export {
|
|
|
5665
5664
|
Wo as numberFormats,
|
|
5666
5665
|
Qe as pastQuickDates,
|
|
5667
5666
|
ln as popoverPlacements,
|
|
5668
|
-
|
|
5667
|
+
Ba as quickDateNames,
|
|
5669
5668
|
pi as setCurrentLocale,
|
|
5670
5669
|
di as setLocaleDateTimeFormats,
|
|
5671
5670
|
ci as setLocaleMessages,
|