@citruslime/ui 4.0.1-beta.9 → 4.0.2-beta.0
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 ee } from "@iconify/vue";
|
|
2
|
-
import { defineComponent as P, ref as
|
|
2
|
+
import { defineComponent as P, ref as A, createElementBlock as v, openBlock as c, renderSlot as E, normalizeProps as ge, guardReactiveProps as he, Fragment as K, createElementVNode as h, normalizeClass as I, createVNode as O, unref as g, Transition as Ve, withCtx as V, withDirectives as ae, mergeProps as Q, vShow as fe, createBlock as F, Teleport as Dl, renderList as x, toDisplayString as U, createCommentVNode as B, computed as S, createTextVNode as re, mergeModels as ie, useModel as ve, watch as _, createSlots as be, vModelDynamic as et, shallowRef as zl, toValue as rl, toRefs as lt, withKeys as le, onMounted as Ke, onUnmounted as Ol, withModifiers as X, nextTick as Pe, useAttrs as Qe, resolveComponent as Te, inject as fl, vModelCheckbox as Mt, watchEffect as At, vModelText as El, useCssVars as tt, toHandlers as Vt, useSlots as Nt, provide as kl, normalizeStyle as ot, isRef as Rt } from "vue";
|
|
3
3
|
import { generateStringId as Ut, highlightText as Bt, validateEmail as zt, isTouchDevice as Ft, escapeStringForRegExp as Lt } from "@citruslime/utils";
|
|
4
4
|
import { useFocusWithin as Il, onKeyDown as $l, toArray as Pt, unrefElement as jt, tryOnScopeDispose as Ht, onClickOutside as ll, useTimeoutFn as at, useMouseInElement as Gt, useMediaQuery as il, useThrottle as Zt, useDebounceFn as el, useBreakpoints as Wt, breakpointsTailwind as Kt, useThrottleFn as Qt, useWindowSize as Yt, useElementSize as Fl, useElementBounding as Ll } from "@vueuse/core";
|
|
5
5
|
import { useI18n as ue, createI18n as Jt } from "vue-i18n";
|
|
@@ -14,7 +14,7 @@ const _t = { class: "cl:overflow-hidden" }, eo = /* @__PURE__ */ P({
|
|
|
14
14
|
exclusive: { type: Boolean, default: !1 }
|
|
15
15
|
},
|
|
16
16
|
setup(o) {
|
|
17
|
-
const t = o, l =
|
|
17
|
+
const t = o, l = A([]);
|
|
18
18
|
function e(n) {
|
|
19
19
|
let i = l.value.find((p) => p.id === n);
|
|
20
20
|
return i || (i = {
|
|
@@ -91,7 +91,7 @@ function ro(o, t) {
|
|
|
91
91
|
E(o.$slots, "default")
|
|
92
92
|
]);
|
|
93
93
|
}
|
|
94
|
-
const io = /* @__PURE__ */ Ce(no, [["render", ro]]), ul =
|
|
94
|
+
const io = /* @__PURE__ */ Ce(no, [["render", ro]]), ul = A([]);
|
|
95
95
|
function Pl(o) {
|
|
96
96
|
const t = {
|
|
97
97
|
id: Ut(),
|
|
@@ -195,7 +195,7 @@ const tl = /* @__PURE__ */ Ce(mo, [["render", vo], ["__scopeId", "data-v-1eee625
|
|
|
195
195
|
disabled: { type: Boolean, default: !1 }
|
|
196
196
|
},
|
|
197
197
|
setup(o, { expose: t }) {
|
|
198
|
-
const l =
|
|
198
|
+
const l = A(null);
|
|
199
199
|
return t({
|
|
200
200
|
focus() {
|
|
201
201
|
l.value && l.value.focus();
|
|
@@ -305,7 +305,7 @@ const tl = /* @__PURE__ */ Ce(mo, [["render", vo], ["__scopeId", "data-v-1eee625
|
|
|
305
305
|
}, Eo = { class: "cl:flex cl:flex-col cl:flex-nowrap cl:gap-1 cl:w-full" }, Io = {
|
|
306
306
|
key: 1,
|
|
307
307
|
class: "cl:pt-1 cl:select-none cl:text-xs"
|
|
308
|
-
},
|
|
308
|
+
}, Mo = { class: "cl:text-xs cl:w-full" }, Re = /* @__PURE__ */ P({
|
|
309
309
|
__name: "cl-ui-input-layout-wrapper",
|
|
310
310
|
props: {
|
|
311
311
|
showRequiredAsterisk: { type: Boolean },
|
|
@@ -336,7 +336,7 @@ const tl = /* @__PURE__ */ Ce(mo, [["render", vo], ["__scopeId", "data-v-1eee625
|
|
|
336
336
|
}, U(n), 1))), 128))
|
|
337
337
|
])
|
|
338
338
|
])) : e.errors || e.$slots.helpText ? (c(), v("div", Io, [
|
|
339
|
-
h("span",
|
|
339
|
+
h("span", Mo, [
|
|
340
340
|
E(e.$slots, "helpText", {}, () => [
|
|
341
341
|
s[0] || (s[0] = re(" "))
|
|
342
342
|
])
|
|
@@ -344,7 +344,7 @@ const tl = /* @__PURE__ */ Ce(mo, [["render", vo], ["__scopeId", "data-v-1eee625
|
|
|
344
344
|
])) : B("", !0)
|
|
345
345
|
]));
|
|
346
346
|
}
|
|
347
|
-
}),
|
|
347
|
+
}), Ao = ["type", "maxlength", "disabled", "placeholder"], Be = /* @__PURE__ */ P({
|
|
348
348
|
inheritAttrs: !1,
|
|
349
349
|
__name: "cl-ui-input-text",
|
|
350
350
|
props: /* @__PURE__ */ ie({
|
|
@@ -361,7 +361,7 @@ const tl = /* @__PURE__ */ Ce(mo, [["render", vo], ["__scopeId", "data-v-1eee625
|
|
|
361
361
|
}),
|
|
362
362
|
emits: /* @__PURE__ */ ie(["focus", "blur", "keySinglePress"], ["update:modelValue"]),
|
|
363
363
|
setup(o, { expose: t, emit: l }) {
|
|
364
|
-
const e = o, s = ve(o, "modelValue"), n = l, i =
|
|
364
|
+
const e = o, s = ve(o, "modelValue"), n = l, i = A(), { focused: p } = Il(i);
|
|
365
365
|
return _(p, () => {
|
|
366
366
|
var m;
|
|
367
367
|
p.value && e.selectOnFocus && ((m = i.value) == null || m.select());
|
|
@@ -397,7 +397,7 @@ const tl = /* @__PURE__ */ Ce(mo, [["render", vo], ["__scopeId", "data-v-1eee625
|
|
|
397
397
|
placeholder: m.placeholder ?? void 0,
|
|
398
398
|
onFocus: r[1] || (r[1] = (a) => n("focus")),
|
|
399
399
|
onBlur: r[2] || (r[2] = (a) => n("blur"))
|
|
400
|
-
}), null, 16,
|
|
400
|
+
}), null, 16, Ao), [
|
|
401
401
|
[et, s.value]
|
|
402
402
|
])
|
|
403
403
|
]),
|
|
@@ -475,7 +475,7 @@ const Ro = {
|
|
|
475
475
|
}),
|
|
476
476
|
emits: ["update:visible"],
|
|
477
477
|
setup(o) {
|
|
478
|
-
const t = o, l = ve(o, "visible"), { trapFocus: e } = lt(t), s =
|
|
478
|
+
const t = o, l = ve(o, "visible"), { trapFocus: e } = lt(t), s = A(), n = No(s);
|
|
479
479
|
_([
|
|
480
480
|
e,
|
|
481
481
|
l
|
|
@@ -605,7 +605,7 @@ const Ro = {
|
|
|
605
605
|
}), n = S(() => {
|
|
606
606
|
var a;
|
|
607
607
|
return ((a = l.option) == null ? void 0 : a.parentName) ?? "";
|
|
608
|
-
}), i =
|
|
608
|
+
}), i = A(!1);
|
|
609
609
|
function p() {
|
|
610
610
|
var a;
|
|
611
611
|
l.isCreateNewOption === !0 ? e("create-object") : e("select-object", (a = l.option) == null ? void 0 : a.id);
|
|
@@ -665,7 +665,7 @@ const Ro = {
|
|
|
665
665
|
},
|
|
666
666
|
emits: ["clear-object", "create-object", "select-object", "search", "hide-dropdown"],
|
|
667
667
|
setup(o, { emit: t }) {
|
|
668
|
-
const l = o, e = t, { t: s } = ue(), n =
|
|
668
|
+
const l = o, e = t, { t: s } = ue(), n = A(""), i = A(!1), p = A(-1), m = S(() => i.value ? -1 : 0), r = A();
|
|
669
669
|
function a(D) {
|
|
670
670
|
(D === void 0 || D.code && D.code.startsWith("Arrow") === !1 && D.code.startsWith("Control") === !1 && D.code.startsWith("Shift") === !1 && D.code.startsWith("Tab") === !1 && D.code !== "Enter") && (e("search", n.value), p.value = -2);
|
|
671
671
|
}
|
|
@@ -679,10 +679,10 @@ const Ro = {
|
|
|
679
679
|
e("hide-dropdown");
|
|
680
680
|
}
|
|
681
681
|
function w(D) {
|
|
682
|
-
p.value < l.results.length - 1 ? (p.value === -2 && n.value === "" && p.value++, p.value++) : p.value = D,
|
|
682
|
+
p.value < l.results.length - 1 ? (p.value === -2 && n.value === "" && p.value++, p.value++) : p.value = D, M();
|
|
683
683
|
}
|
|
684
684
|
function b(D) {
|
|
685
|
-
p.value > D ? p.value-- : p.value = l.results.length - 1,
|
|
685
|
+
p.value > D ? p.value-- : p.value = l.results.length - 1, M();
|
|
686
686
|
}
|
|
687
687
|
function k() {
|
|
688
688
|
p.value >= 0 && l.results !== void 0 ? d(l.results[p.value].id) : p.value === -1 && f();
|
|
@@ -696,7 +696,7 @@ const Ro = {
|
|
|
696
696
|
oe >= 0 && (J[oe].focus(), y());
|
|
697
697
|
}
|
|
698
698
|
}
|
|
699
|
-
function
|
|
699
|
+
function M() {
|
|
700
700
|
var D;
|
|
701
701
|
l.results && l.results.length > 1 && ((D = r.value) == null || D.scrollTo(0, (p.value + 1) * 34 - 34 * 2));
|
|
702
702
|
}
|
|
@@ -825,10 +825,10 @@ const Ro = {
|
|
|
825
825
|
},
|
|
826
826
|
emits: ["focus", "search", "search-parent", "create-object", "create-parent-object", "update:current-object"],
|
|
827
827
|
setup(o, { expose: t, emit: l }) {
|
|
828
|
-
const e = o, s = l, { id: n, ...i } = Qe(), p = n ?? `cl-ui-combo-box-input-${e.objectType}`, m = S(() => e.placeholderText ? e.placeholderText : a("comboBox.emptyHintText", { object: e.objectType })), r = S(() => e.searchHint ? e.searchHint : a("comboBox.searchHint", { object: e.objectType })), { t: a } = ue(), d =
|
|
828
|
+
const e = o, s = l, { id: n, ...i } = Qe(), p = n ?? `cl-ui-combo-box-input-${e.objectType}`, m = S(() => e.placeholderText ? e.placeholderText : a("comboBox.emptyHintText", { object: e.objectType })), r = S(() => e.searchHint ? e.searchHint : a("comboBox.searchHint", { object: e.objectType })), { t: a } = ue(), d = A(!1), f = S({
|
|
829
829
|
get: () => e.currentObject,
|
|
830
830
|
set: (u) => s("update:current-object", u)
|
|
831
|
-
}), y =
|
|
831
|
+
}), y = A(null), w = S(() => j()), b = A(""), k = A(""), q = A(), M = A(!0), H = A(!1);
|
|
832
832
|
function N(u) {
|
|
833
833
|
var T;
|
|
834
834
|
const $ = ((T = me.value) == null ? void 0 : T.getBoundingClientRect().top) || 0;
|
|
@@ -914,14 +914,14 @@ const Ro = {
|
|
|
914
914
|
}
|
|
915
915
|
function L() {
|
|
916
916
|
let u = !0;
|
|
917
|
-
b.value === "" && (u = !1), e.objectParentType !== "" && y.value === null && (u = !1),
|
|
917
|
+
b.value === "" && (u = !1), e.objectParentType !== "" && y.value === null && (u = !1), M.value = u;
|
|
918
918
|
}
|
|
919
919
|
_(() => e.objectCreatedResponse, () => C()), _(() => e.parentObjectCreatedResponse, () => z()), _(() => b.value, () => L()), _(() => y.value, () => L());
|
|
920
|
-
const me =
|
|
920
|
+
const me = A();
|
|
921
921
|
ll(me, () => {
|
|
922
922
|
d.value && N(!1);
|
|
923
923
|
});
|
|
924
|
-
const Se =
|
|
924
|
+
const Se = A();
|
|
925
925
|
function je() {
|
|
926
926
|
var u;
|
|
927
927
|
N(!1), e.openDropDownOnFocus || (u = Se.value) == null || u.focus();
|
|
@@ -1048,7 +1048,7 @@ const Ro = {
|
|
|
1048
1048
|
O(qe, {
|
|
1049
1049
|
colour: "primary",
|
|
1050
1050
|
size: "small",
|
|
1051
|
-
disabled: !
|
|
1051
|
+
disabled: !M.value,
|
|
1052
1052
|
onClick: (ce) => {
|
|
1053
1053
|
pe(), Z();
|
|
1054
1054
|
}
|
|
@@ -1131,7 +1131,7 @@ const ga = /* @__PURE__ */ Ce(pa, [["render", ma]]), va = {}, ha = { class: "cl:
|
|
|
1131
1131
|
function ba(o, t) {
|
|
1132
1132
|
return c(), v("div", ha);
|
|
1133
1133
|
}
|
|
1134
|
-
const
|
|
1134
|
+
const Ml = /* @__PURE__ */ Ce(va, [["render", ba]]), Cl = /* @__PURE__ */ P({
|
|
1135
1135
|
inheritAttrs: !1,
|
|
1136
1136
|
__name: "cl-ui-skeleton-text",
|
|
1137
1137
|
props: {
|
|
@@ -1184,7 +1184,8 @@ const ya = {
|
|
|
1184
1184
|
columns: {},
|
|
1185
1185
|
options: {},
|
|
1186
1186
|
request: {},
|
|
1187
|
-
canBulkEdit: { type: Boolean }
|
|
1187
|
+
canBulkEdit: { type: Boolean },
|
|
1188
|
+
disableEditMode: { type: Boolean }
|
|
1188
1189
|
},
|
|
1189
1190
|
emits: ["update:edit-mode", "update:filterPanelOpen", "clear-filters"],
|
|
1190
1191
|
setup(o) {
|
|
@@ -1215,7 +1216,7 @@ const ya = {
|
|
|
1215
1216
|
size: "small",
|
|
1216
1217
|
colour: "blue",
|
|
1217
1218
|
class: "cl:flex-1 cl:lg:flex-none",
|
|
1218
|
-
disabled: n.loading,
|
|
1219
|
+
disabled: n.loading || n.disableEditMode,
|
|
1219
1220
|
onClick: i[0] || (i[0] = X((p) => n.$emit("update:edit-mode", !n.editMode), ["prevent"]))
|
|
1220
1221
|
}, {
|
|
1221
1222
|
default: V(() => [
|
|
@@ -1232,7 +1233,7 @@ const ya = {
|
|
|
1232
1233
|
size: "small",
|
|
1233
1234
|
colour: "blue",
|
|
1234
1235
|
class: "cl:flex-1 cl:lg:flex-none",
|
|
1235
|
-
disabled: n.loading,
|
|
1236
|
+
disabled: n.loading || n.disableEditMode,
|
|
1236
1237
|
onClick: i[1] || (i[1] = X((p) => n.$emit("update:edit-mode", !n.editMode), ["prevent"]))
|
|
1237
1238
|
}, {
|
|
1238
1239
|
default: V(() => [
|
|
@@ -1297,7 +1298,7 @@ const ya = {
|
|
|
1297
1298
|
}),
|
|
1298
1299
|
emits: /* @__PURE__ */ ie(["focus", "blur"], ["update:modelValue"]),
|
|
1299
1300
|
setup(o, { expose: t, emit: l }) {
|
|
1300
|
-
const e = ve(o, "modelValue"), s = l, n =
|
|
1301
|
+
const e = ve(o, "modelValue"), s = l, n = A();
|
|
1301
1302
|
return t({
|
|
1302
1303
|
focus: () => {
|
|
1303
1304
|
var i;
|
|
@@ -1332,7 +1333,7 @@ const ya = {
|
|
|
1332
1333
|
onFocus: p[2] || (p[2] = (m) => s("focus")),
|
|
1333
1334
|
onBlur: p[3] || (p[3] = (m) => s("blur"))
|
|
1334
1335
|
}), null, 16, qa), [
|
|
1335
|
-
[
|
|
1336
|
+
[Mt, e.value]
|
|
1336
1337
|
])
|
|
1337
1338
|
]),
|
|
1338
1339
|
_: 2
|
|
@@ -1559,20 +1560,20 @@ function lc(o, t) {
|
|
|
1559
1560
|
function tc(o) {
|
|
1560
1561
|
return De.global.locale.value = o, Pe();
|
|
1561
1562
|
}
|
|
1562
|
-
const { locale:
|
|
1563
|
+
const { locale: Ma, getNumberFormat: Aa } = De.global, vl = te.DECIMAL;
|
|
1563
1564
|
function Oe(o) {
|
|
1564
|
-
return
|
|
1565
|
+
return Ae(o, te.DECIMAL, { additionalOptions: {
|
|
1565
1566
|
minimumFractionDigits: 0,
|
|
1566
1567
|
maximumFractionDigits: 0
|
|
1567
1568
|
} });
|
|
1568
1569
|
}
|
|
1569
1570
|
function yl(o, t) {
|
|
1570
|
-
return
|
|
1571
|
+
return Ae(o, te.DECIMAL, { additionalOptions: {
|
|
1571
1572
|
minimumFractionDigits: 0,
|
|
1572
1573
|
maximumFractionDigits: t
|
|
1573
1574
|
} });
|
|
1574
1575
|
}
|
|
1575
|
-
function
|
|
1576
|
+
function Ae(o, t, l) {
|
|
1576
1577
|
if (hl(t)) {
|
|
1577
1578
|
const e = We(vl, l);
|
|
1578
1579
|
return t.replace(/\{0\}/g, Zl(o, e) ?? "");
|
|
@@ -1596,7 +1597,7 @@ function it(o, t, l) {
|
|
|
1596
1597
|
} else
|
|
1597
1598
|
return Gl(o, Vl(t), l);
|
|
1598
1599
|
}
|
|
1599
|
-
function
|
|
1600
|
+
function Al(o, t) {
|
|
1600
1601
|
return hl(o) ? We(vl, t) : We(Vl(o), t);
|
|
1601
1602
|
}
|
|
1602
1603
|
function Va(o, t, l) {
|
|
@@ -1664,7 +1665,7 @@ function ol(o) {
|
|
|
1664
1665
|
}
|
|
1665
1666
|
}
|
|
1666
1667
|
function We(o, t) {
|
|
1667
|
-
const l = rl(t == null ? void 0 : t.locale) || g(
|
|
1668
|
+
const l = rl(t == null ? void 0 : t.locale) || g(Ma), e = Aa(l), s = ye(rl(t == null ? void 0 : t.additionalOptions) ?? {});
|
|
1668
1669
|
let n = "decimal";
|
|
1669
1670
|
switch (o) {
|
|
1670
1671
|
case te.PERCENTAGE:
|
|
@@ -1729,14 +1730,14 @@ function za(o, t, l, e, s) {
|
|
|
1729
1730
|
case "tel":
|
|
1730
1731
|
case "text":
|
|
1731
1732
|
case "url":
|
|
1732
|
-
p = ((e == null ? void 0 : e.length) ?? 0) >= (Number(o) || 0), i =
|
|
1733
|
+
p = ((e == null ? void 0 : e.length) ?? 0) >= (Number(o) || 0), i = Me(p, Ie("input.greaterOrEqualToCharacters", {
|
|
1733
1734
|
label: l,
|
|
1734
1735
|
min: o.toString()
|
|
1735
1736
|
}));
|
|
1736
1737
|
break;
|
|
1737
1738
|
case "number":
|
|
1738
1739
|
case "range":
|
|
1739
|
-
p = e >= (Number(o) || 0), i =
|
|
1740
|
+
p = e >= (Number(o) || 0), i = Me(p, Ie("input.greaterOrEqualToValue", {
|
|
1740
1741
|
label: l,
|
|
1741
1742
|
min: o.toString()
|
|
1742
1743
|
}));
|
|
@@ -1746,7 +1747,7 @@ function za(o, t, l, e, s) {
|
|
|
1746
1747
|
zone: "UTC"
|
|
1747
1748
|
}), r = Y.fromISO(o, {
|
|
1748
1749
|
zone: "UTC"
|
|
1749
|
-
})), p = m >= r, i =
|
|
1750
|
+
})), p = m >= r, i = Me(p, Ie("input.afterOrEqualToValue", {
|
|
1750
1751
|
label: l,
|
|
1751
1752
|
min: r.setLocale(De.global.locale.value).toFormat("D")
|
|
1752
1753
|
}));
|
|
@@ -1756,7 +1757,7 @@ function za(o, t, l, e, s) {
|
|
|
1756
1757
|
zone: "UTC"
|
|
1757
1758
|
}), r = Y.fromISO(o, {
|
|
1758
1759
|
zone: "UTC"
|
|
1759
|
-
})), p = m >= r, s && (r = r.setZone(s)), i =
|
|
1760
|
+
})), p = m >= r, s && (r = r.setZone(s)), i = Me(p, Ie("input.afterOrEqualToValue", {
|
|
1760
1761
|
label: l,
|
|
1761
1762
|
min: r.setLocale(De.global.locale.value).toFormat("f")
|
|
1762
1763
|
}));
|
|
@@ -1784,14 +1785,14 @@ function Fa(o, t, l, e, s) {
|
|
|
1784
1785
|
case "tel":
|
|
1785
1786
|
case "text":
|
|
1786
1787
|
case "url":
|
|
1787
|
-
p = ((e == null ? void 0 : e.length) ?? 0) <= (Number(o) || 0), i =
|
|
1788
|
+
p = ((e == null ? void 0 : e.length) ?? 0) <= (Number(o) || 0), i = Me(p, Ie("input.lessOrEqualToCharacters", {
|
|
1788
1789
|
label: l,
|
|
1789
1790
|
max: o.toString()
|
|
1790
1791
|
}));
|
|
1791
1792
|
break;
|
|
1792
1793
|
case "number":
|
|
1793
1794
|
case "range":
|
|
1794
|
-
p = e <= (Number(o) || 0), i =
|
|
1795
|
+
p = e <= (Number(o) || 0), i = Me(p, Ie("input.lessOrEqualToValue", {
|
|
1795
1796
|
label: l,
|
|
1796
1797
|
max: o.toString()
|
|
1797
1798
|
}));
|
|
@@ -1801,7 +1802,7 @@ function Fa(o, t, l, e, s) {
|
|
|
1801
1802
|
zone: "UTC"
|
|
1802
1803
|
}), r = Y.fromISO(o, {
|
|
1803
1804
|
zone: "UTC"
|
|
1804
|
-
})), p = m <= r, i =
|
|
1805
|
+
})), p = m <= r, i = Me(p, Ie("input.beforeOrEqualToValue", {
|
|
1805
1806
|
label: l,
|
|
1806
1807
|
max: r.setLocale(De.global.locale.value).toFormat("D")
|
|
1807
1808
|
}));
|
|
@@ -1811,7 +1812,7 @@ function Fa(o, t, l, e, s) {
|
|
|
1811
1812
|
zone: "UTC"
|
|
1812
1813
|
}), r = Y.fromISO(o, {
|
|
1813
1814
|
zone: "UTC"
|
|
1814
|
-
})), p = m <= r, i =
|
|
1815
|
+
})), p = m <= r, i = Me(p, Ie("input.beforeOrEqualToValue", {
|
|
1815
1816
|
label: l,
|
|
1816
1817
|
max: r.setLocale(De.global.locale.value).toFormat("f")
|
|
1817
1818
|
}));
|
|
@@ -1826,17 +1827,17 @@ function Fa(o, t, l, e, s) {
|
|
|
1826
1827
|
}
|
|
1827
1828
|
function La(o, t) {
|
|
1828
1829
|
return new Promise((l) => {
|
|
1829
|
-
const e = t != null && t !== "" && t.toString().trim() !== "", s =
|
|
1830
|
+
const e = t != null && t !== "" && t.toString().trim() !== "", s = Me(e, Ie("input.valueIsRequired", { label: o }));
|
|
1830
1831
|
l(s);
|
|
1831
1832
|
});
|
|
1832
1833
|
}
|
|
1833
1834
|
function Pa(o, t) {
|
|
1834
1835
|
return new Promise((l) => {
|
|
1835
|
-
const s = t === "" || /[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(t) !== null, n =
|
|
1836
|
+
const s = t === "" || /[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(t) !== null, n = Me(s, Ie("input.valueNotValidEmail", { label: o }));
|
|
1836
1837
|
l(n);
|
|
1837
1838
|
});
|
|
1838
1839
|
}
|
|
1839
|
-
function
|
|
1840
|
+
function Me(o, t) {
|
|
1840
1841
|
return {
|
|
1841
1842
|
valid: o,
|
|
1842
1843
|
message: o ? "" : t
|
|
@@ -1902,13 +1903,13 @@ const ja = {
|
|
|
1902
1903
|
return r ? (t.column.maxLength && (r = r.trimToLength(t.column.maxLength, t.column.format !== void 0 ? t.column.format === "ellipsis" : !1)), t.searchValue && t.column.searchable && (r = Bt(r, t.searchValue.split(" "))), t.column.format === "wrap-text" && (r = `<span class="cl:break-words cl:whitespace-pre-wrap">${r}</span>`), r) : "";
|
|
1903
1904
|
}
|
|
1904
1905
|
function m(r, a) {
|
|
1905
|
-
return t.column.format === te.INTEGER ?
|
|
1906
|
+
return t.column.format === te.INTEGER ? Ae(r, te.DECIMAL, {
|
|
1906
1907
|
locale: a,
|
|
1907
1908
|
additionalOptions: {
|
|
1908
1909
|
maximumFractionDigits: 0,
|
|
1909
1910
|
minimumFractionDigits: 0
|
|
1910
1911
|
}
|
|
1911
|
-
}) :
|
|
1912
|
+
}) : Ae(r, t.column.format ?? te.DECIMAL, {
|
|
1912
1913
|
locale: a,
|
|
1913
1914
|
additionalOptions: {
|
|
1914
1915
|
maximumFractionDigits: t.column.precision ?? 2,
|
|
@@ -1952,14 +1953,14 @@ const ja = {
|
|
|
1952
1953
|
},
|
|
1953
1954
|
emits: ["edit", "focus", "undo"],
|
|
1954
1955
|
setup(o, { emit: t }) {
|
|
1955
|
-
const l = o, e = t, { t: s } = ue(), n =
|
|
1956
|
+
const l = o, e = t, { t: s } = ue(), n = A(ye(l.data)), i = S(() => l.column.field !== void 0 && n.value[l.column.field] !== l.data[l.column.field]), p = S(() => {
|
|
1956
1957
|
var r;
|
|
1957
1958
|
return ((r = l.column.listEntries) == null ? void 0 : r.map((a, d) => ({
|
|
1958
1959
|
id: d,
|
|
1959
1960
|
name: s(a.translationKey)
|
|
1960
1961
|
}))) ?? [];
|
|
1961
1962
|
});
|
|
1962
|
-
|
|
1963
|
+
At(() => n.value = ye(l.data)), _(n, (r) => {
|
|
1963
1964
|
const a = l.column.field ?? "";
|
|
1964
1965
|
a !== "" && (r[a] !== l.data[a] ? e("edit", r[a]) : e("undo"));
|
|
1965
1966
|
}, {
|
|
@@ -2079,7 +2080,7 @@ const ja = {
|
|
|
2079
2080
|
}),
|
|
2080
2081
|
emits: /* @__PURE__ */ ie(["row-select", "row-edit", "row-edit-cancelled", "clear-filters"], ["update:selectedRowIndex"]),
|
|
2081
2082
|
setup(o, { emit: t }) {
|
|
2082
|
-
const l = o, e = ve(o, "selectedRowIndex"), s = t, { t: n } = ue(), i =
|
|
2083
|
+
const l = o, e = ve(o, "selectedRowIndex"), s = t, { t: n } = ue(), i = A({
|
|
2083
2084
|
index: -1,
|
|
2084
2085
|
record: {}
|
|
2085
2086
|
});
|
|
@@ -2100,16 +2101,16 @@ const ja = {
|
|
|
2100
2101
|
}, s("row-edit-cancelled", ye(i.value));
|
|
2101
2102
|
}
|
|
2102
2103
|
}
|
|
2103
|
-
const d =
|
|
2104
|
+
const d = A({});
|
|
2104
2105
|
_(() => l.data, () => {
|
|
2105
2106
|
var b, k;
|
|
2106
|
-
return d.value = Object.fromEntries(((k = (b = l.data) == null ? void 0 : b.results) == null ? void 0 : k.map((q,
|
|
2107
|
-
[
|
|
2107
|
+
return d.value = Object.fromEntries(((k = (b = l.data) == null ? void 0 : b.results) == null ? void 0 : k.map((q, M) => [
|
|
2108
|
+
[M],
|
|
2108
2109
|
{
|
|
2109
2110
|
count: 0,
|
|
2110
2111
|
target: null,
|
|
2111
2112
|
reset: at(() => {
|
|
2112
|
-
d.value[
|
|
2113
|
+
d.value[M] && (d.value[M].count = 0, d.value[M].target = null);
|
|
2113
2114
|
}, 400, { immediate: !1 })
|
|
2114
2115
|
}
|
|
2115
2116
|
])) ?? []);
|
|
@@ -2118,8 +2119,8 @@ const ja = {
|
|
|
2118
2119
|
immediate: !0
|
|
2119
2120
|
});
|
|
2120
2121
|
function f(b, k, q) {
|
|
2121
|
-
const { currentTarget:
|
|
2122
|
-
l.options.rowSelectionEnabled ? y(b, k) : (d.value[b].count++, d.value[b].target =
|
|
2122
|
+
const { currentTarget: M } = q;
|
|
2123
|
+
l.options.rowSelectionEnabled ? y(b, k) : (d.value[b].count++, d.value[b].target = M, d.value[b].count > 1 ? (d.value[b].reset.stop(), d.value[b].count = 0, y(b, k), d.value[b].target = null) : d.value[b].reset.start());
|
|
2123
2124
|
}
|
|
2124
2125
|
function y(b, k) {
|
|
2125
2126
|
b !== e.value ? e.value = b : s("row-select", k);
|
|
@@ -2138,20 +2139,20 @@ const ja = {
|
|
|
2138
2139
|
}), (b, k) => {
|
|
2139
2140
|
var q;
|
|
2140
2141
|
return c(), v("tbody", null, [
|
|
2141
|
-
b.initialLoad ? (c(!0), v(K, { key: 0 }, x(b.request.pageSize, (
|
|
2142
|
+
b.initialLoad ? (c(!0), v(K, { key: 0 }, x(b.request.pageSize, (M) => (c(), v("tr", { key: M }, [
|
|
2142
2143
|
h("td", {
|
|
2143
2144
|
colspan: b.columns.length,
|
|
2144
2145
|
class: I(
|
|
2145
2146
|
{
|
|
2146
|
-
"cl:border-t cl:border-off-white":
|
|
2147
|
+
"cl:border-t cl:border-off-white": M % 2 === 0
|
|
2147
2148
|
}
|
|
2148
2149
|
)
|
|
2149
2150
|
}, " ", 10, Qa)
|
|
2150
2151
|
]))), 128)) : B("", !0),
|
|
2151
2152
|
b.data && ((q = b.data.results) != null && q.length) && !b.initialLoad ? (c(), v(K, { key: 1 }, [
|
|
2152
|
-
(c(!0), v(K, null, x(b.data.results, (
|
|
2153
|
+
(c(!0), v(K, null, x(b.data.results, (M, H) => (c(), F(Ka, {
|
|
2153
2154
|
key: H,
|
|
2154
|
-
data:
|
|
2155
|
+
data: M,
|
|
2155
2156
|
options: b.options,
|
|
2156
2157
|
columns: b.columns,
|
|
2157
2158
|
"time-zone": b.timeZone,
|
|
@@ -2166,7 +2167,7 @@ const ja = {
|
|
|
2166
2167
|
}]),
|
|
2167
2168
|
"row-index": H,
|
|
2168
2169
|
onClick: (N) => {
|
|
2169
|
-
b.editMode || f(H,
|
|
2170
|
+
b.editMode || f(H, M, N);
|
|
2170
2171
|
},
|
|
2171
2172
|
onCellFocus: (N) => {
|
|
2172
2173
|
m(H);
|
|
@@ -2183,8 +2184,8 @@ const ja = {
|
|
|
2183
2184
|
])
|
|
2184
2185
|
}))
|
|
2185
2186
|
]), 1032, ["data", "options", "columns", "time-zone", "search-value", "edit-mode", "class", "row-index", "onClick", "onCellFocus", "onCellEdit"]))), 128)),
|
|
2186
|
-
b.data.results.length < b.request.pageSize ? (c(!0), v(K, { key: 0 }, x(Math.max(5 - b.data.results.length, 0), (
|
|
2187
|
-
key:
|
|
2187
|
+
b.data.results.length < b.request.pageSize ? (c(!0), v(K, { key: 0 }, x(Math.max(5 - b.data.results.length, 0), (M) => (c(), v("tr", {
|
|
2188
|
+
key: M,
|
|
2188
2189
|
class: I(["cl:lg:table-row", {
|
|
2189
2190
|
"cl:hidden": l.options.hideGridMobileView === !1
|
|
2190
2191
|
}])
|
|
@@ -2199,15 +2200,15 @@ const ja = {
|
|
|
2199
2200
|
colspan: b.columns.length
|
|
2200
2201
|
}, [
|
|
2201
2202
|
h("div", xa, [
|
|
2202
|
-
b.$slots.noData && b.request.filters.some((
|
|
2203
|
+
b.$slots.noData && b.request.filters.some((M) => M.filterValue !== "") === !1 ? (c(), v("div", _a, [
|
|
2203
2204
|
E(b.$slots, "noData")
|
|
2204
2205
|
])) : (c(), v("strong", en, U(g(n)("grid.noData")), 1)),
|
|
2205
|
-
b.request.filters.some((
|
|
2206
|
+
b.request.filters.some((M) => M.filterValue !== "") ? (c(), v("div", ln, [
|
|
2206
2207
|
h("div", tn, U(g(n)("grid.noDataFiltersPresent")), 1),
|
|
2207
2208
|
O(qe, {
|
|
2208
2209
|
size: "small",
|
|
2209
2210
|
colour: "danger",
|
|
2210
|
-
onClick: k[0] || (k[0] = X((
|
|
2211
|
+
onClick: k[0] || (k[0] = X((M) => b.$emit("clear-filters"), ["prevent"]))
|
|
2211
2212
|
}, {
|
|
2212
2213
|
default: V(() => [
|
|
2213
2214
|
re(U(g(n)("grid.clearFilters")), 1)
|
|
@@ -2245,12 +2246,12 @@ const ja = {
|
|
|
2245
2246
|
}),
|
|
2246
2247
|
emits: /* @__PURE__ */ ie(["focus", "blur"], ["update:modelValue"]),
|
|
2247
2248
|
setup(o, { expose: t, emit: l }) {
|
|
2248
|
-
const e = o, s = ve(o, "modelValue"), n = l, i =
|
|
2249
|
+
const e = o, s = ve(o, "modelValue"), n = l, i = A(0), p = A(), m = A(), { isOutside: r } = Gt(m), { focused: a } = Il(p), d = S(() => e.showArrows && r.value === !1);
|
|
2249
2250
|
_(a, () => {
|
|
2250
|
-
a.value ? (q.value = N.value,
|
|
2251
|
+
a.value ? (q.value = N.value, M.value = !1, (pe.value || e.selectOnFocus || s.value === 0) && setTimeout(() => {
|
|
2251
2252
|
var C, z;
|
|
2252
2253
|
(z = m.value) == null || z.setSelectionRange(0, ((C = q.value) == null ? void 0 : C.length) ?? 0);
|
|
2253
|
-
}), pe.value = !1, n("focus")) : (
|
|
2254
|
+
}), pe.value = !1, n("focus")) : (M.value && D(N.value, !0), q.value = void 0, M.value = !1, n("blur"));
|
|
2254
2255
|
});
|
|
2255
2256
|
const f = S(() => ({
|
|
2256
2257
|
style: e.format === te.CURRENCY ? "currency" : void 0,
|
|
@@ -2258,10 +2259,10 @@ const ja = {
|
|
|
2258
2259
|
currencyDisplay: "narrowSymbol",
|
|
2259
2260
|
minimumFractionDigits: e.precision,
|
|
2260
2261
|
maximumFractionDigits: e.precision
|
|
2261
|
-
})), y = S(() => e.format ?
|
|
2262
|
+
})), y = S(() => e.format ? Al(e.format, {
|
|
2262
2263
|
locale: e.locale,
|
|
2263
2264
|
additionalOptions: f.value
|
|
2264
|
-
}) : f.value), w = S(() => Math.pow(10, y.value.maximumFractionDigits ?? 0)), b = S(() => Math.pow(10, e.format === te.PERCENTAGE ? 2 : 0)), k = S(() => w.value * b.value), q =
|
|
2265
|
+
}) : f.value), w = S(() => Math.pow(10, y.value.maximumFractionDigits ?? 0)), b = S(() => Math.pow(10, e.format === te.PERCENTAGE ? 2 : 0)), k = S(() => w.value * b.value), q = A(void 0), M = A(!1);
|
|
2265
2266
|
_(s, () => q.value = void 0);
|
|
2266
2267
|
const H = S({
|
|
2267
2268
|
get: () => q.value ? oe(q.value) : s.value,
|
|
@@ -2272,7 +2273,7 @@ const ja = {
|
|
|
2272
2273
|
return q.value ?? z;
|
|
2273
2274
|
},
|
|
2274
2275
|
set(C) {
|
|
2275
|
-
q.value = C,
|
|
2276
|
+
q.value = C, M.value = !0;
|
|
2276
2277
|
}
|
|
2277
2278
|
});
|
|
2278
2279
|
function G(C) {
|
|
@@ -2287,7 +2288,7 @@ const ja = {
|
|
|
2287
2288
|
}
|
|
2288
2289
|
}
|
|
2289
2290
|
function J(C) {
|
|
2290
|
-
return C === null ? "" : e.format ?
|
|
2291
|
+
return C === null ? "" : e.format ? Ae(C, e.format, {
|
|
2291
2292
|
locale: e.locale,
|
|
2292
2293
|
additionalOptions: f.value
|
|
2293
2294
|
}) : C.toString();
|
|
@@ -2304,7 +2305,7 @@ const ja = {
|
|
|
2304
2305
|
D(z, !1);
|
|
2305
2306
|
}
|
|
2306
2307
|
}
|
|
2307
|
-
const pe =
|
|
2308
|
+
const pe = A(!1);
|
|
2308
2309
|
function we() {
|
|
2309
2310
|
var C;
|
|
2310
2311
|
pe.value = !0, (C = m.value) == null || C.focus();
|
|
@@ -2344,7 +2345,7 @@ const ja = {
|
|
|
2344
2345
|
onInput: z[0] || (z[0] = (j) => N.value = j.target.value),
|
|
2345
2346
|
onKeydown: [
|
|
2346
2347
|
z[1] || (z[1] = le(X((j) => {
|
|
2347
|
-
D(j.target.value,
|
|
2348
|
+
D(j.target.value, M.value), M.value = !1;
|
|
2348
2349
|
}, ["stop", "prevent"]), ["enter"])),
|
|
2349
2350
|
z[2] || (z[2] = le(X((j) => W(!0), ["prevent"]), ["down"])),
|
|
2350
2351
|
z[3] || (z[3] = le(X((j) => W(!1), ["prevent"]), ["up"]))
|
|
@@ -2458,7 +2459,7 @@ const ja = {
|
|
|
2458
2459
|
})
|
|
2459
2460
|
]),
|
|
2460
2461
|
h("div", dn, [
|
|
2461
|
-
O(g(
|
|
2462
|
+
O(g(Ml), { class: "cl:w-64" })
|
|
2462
2463
|
])
|
|
2463
2464
|
])) : a.loading || (y = (f = a.data) == null ? void 0 : f.results) != null && y.length && a.request ? (c(), v("div", {
|
|
2464
2465
|
key: 1,
|
|
@@ -2687,7 +2688,7 @@ function mt(o, t, l, e) {
|
|
|
2687
2688
|
}
|
|
2688
2689
|
return l;
|
|
2689
2690
|
}
|
|
2690
|
-
const
|
|
2691
|
+
const Mn = { class: "cl:gap-1 cl:grid cl:grid-cols-2" }, An = ["onClick"], Vn = /* @__PURE__ */ P({
|
|
2691
2692
|
__name: "cl-ui-quick-dates-group",
|
|
2692
2693
|
props: {
|
|
2693
2694
|
dates: {},
|
|
@@ -2696,7 +2697,7 @@ const An = { class: "cl:gap-1 cl:grid cl:grid-cols-2" }, Mn = ["onClick"], Vn =
|
|
|
2696
2697
|
emits: ["quick-date-selected"],
|
|
2697
2698
|
setup(o, { emit: t }) {
|
|
2698
2699
|
const l = t, { t: e } = ue();
|
|
2699
|
-
return (s, n) => (c(), v("div",
|
|
2700
|
+
return (s, n) => (c(), v("div", Mn, [
|
|
2700
2701
|
(c(!0), v(K, null, x(s.dates, (i, p) => {
|
|
2701
2702
|
var m, r;
|
|
2702
2703
|
return c(), v("button", {
|
|
@@ -2708,7 +2709,7 @@ const An = { class: "cl:gap-1 cl:grid cl:grid-cols-2" }, Mn = ["onClick"], Vn =
|
|
|
2708
2709
|
onClick: (a) => l("quick-date-selected", i)
|
|
2709
2710
|
}, [
|
|
2710
2711
|
h("span", null, U(g(e)(i.translationKey)), 1)
|
|
2711
|
-
], 10,
|
|
2712
|
+
], 10, An);
|
|
2712
2713
|
}), 128))
|
|
2713
2714
|
]));
|
|
2714
2715
|
}
|
|
@@ -2958,7 +2959,7 @@ const An = { class: "cl:gap-1 cl:grid cl:grid-cols-2" }, Mn = ["onClick"], Vn =
|
|
|
2958
2959
|
} else
|
|
2959
2960
|
l.value = null;
|
|
2960
2961
|
}
|
|
2961
|
-
}), { locale: n } = ue(), i = S(() => t.dateFormatLocale ?? n.value), p = S(() => Nl(t.disabled, t.popoverPlacement)), m = S(() => Rl(l.value, t.initialCalendarDate, e.value, "dateRange")), r = S(() => pt(s.value, e.value, i.value)), a =
|
|
2962
|
+
}), { locale: n } = ue(), i = S(() => t.dateFormatLocale ?? n.value), p = S(() => Nl(t.disabled, t.popoverPlacement)), m = S(() => Rl(l.value, t.initialCalendarDate, e.value, "dateRange")), r = S(() => pt(s.value, e.value, i.value)), a = A(null), d = A(null);
|
|
2962
2963
|
function f(k) {
|
|
2963
2964
|
const q = dt(k, e.value);
|
|
2964
2965
|
s.value = q, a.value = k, d.value.move(q.start), d.value.hidePopover();
|
|
@@ -2973,7 +2974,7 @@ const An = { class: "cl:gap-1 cl:grid cl:grid-cols-2" }, Mn = ["onClick"], Vn =
|
|
|
2973
2974
|
ref_key: "calendar",
|
|
2974
2975
|
ref: d,
|
|
2975
2976
|
modelValue: s.value,
|
|
2976
|
-
"onUpdate:modelValue": q[1] || (q[1] = (
|
|
2977
|
+
"onUpdate:modelValue": q[1] || (q[1] = (M) => s.value = M),
|
|
2977
2978
|
modelModifiers: { range: !0 },
|
|
2978
2979
|
mode: "date",
|
|
2979
2980
|
color: "primary",
|
|
@@ -2985,15 +2986,15 @@ const An = { class: "cl:gap-1 cl:grid cl:grid-cols-2" }, Mn = ["onClick"], Vn =
|
|
|
2985
2986
|
"min-date": k.minDate,
|
|
2986
2987
|
"max-date": k.maxDate,
|
|
2987
2988
|
"initial-page": m.value,
|
|
2988
|
-
onDayclick: q[2] || (q[2] = (
|
|
2989
|
+
onDayclick: q[2] || (q[2] = (M) => a.value = null)
|
|
2989
2990
|
}, {
|
|
2990
|
-
default: V(({ togglePopover:
|
|
2991
|
+
default: V(({ togglePopover: M }) => [
|
|
2991
2992
|
O(Bl, Q(k.$attrs, {
|
|
2992
2993
|
required: k.required,
|
|
2993
2994
|
disabled: k.disabled,
|
|
2994
2995
|
"date-range-selected": !!s.value,
|
|
2995
2996
|
title: r.value,
|
|
2996
|
-
onTogglePopover:
|
|
2997
|
+
onTogglePopover: M,
|
|
2997
2998
|
onClear: q[0] || (q[0] = (H) => {
|
|
2998
2999
|
s.value = null, a.value = null, d.value.hidePopover();
|
|
2999
3000
|
})
|
|
@@ -3041,7 +3042,7 @@ const An = { class: "cl:gap-1 cl:grid cl:grid-cols-2" }, Mn = ["onClick"], Vn =
|
|
|
3041
3042
|
}),
|
|
3042
3043
|
emits: /* @__PURE__ */ ie(["focus", "blur"], ["update:modelValue"]),
|
|
3043
3044
|
setup(o, { expose: t }) {
|
|
3044
|
-
const l = o, e = ve(o, "modelValue"), { resizability: s } = lt(l), n =
|
|
3045
|
+
const l = o, e = ve(o, "modelValue"), { resizability: s } = lt(l), n = A();
|
|
3045
3046
|
_([
|
|
3046
3047
|
e,
|
|
3047
3048
|
n,
|
|
@@ -3135,7 +3136,7 @@ const An = { class: "cl:gap-1 cl:grid cl:grid-cols-2" }, Mn = ["onClick"], Vn =
|
|
|
3135
3136
|
tt((d) => ({
|
|
3136
3137
|
fa14ae6c: p.value
|
|
3137
3138
|
}));
|
|
3138
|
-
const l = o, e = ve(o, "modelValue"), { t: s } = ue(), n =
|
|
3139
|
+
const l = o, e = ve(o, "modelValue"), { t: s } = ue(), n = A(), i = A(), p = S(() => `${100 * (e.value - l.min) / (l.max - l.min)}%`), m = A(!1), r = Zt(e, 50);
|
|
3139
3140
|
function a(d) {
|
|
3140
3141
|
var f;
|
|
3141
3142
|
e.value = d, (f = n.value) == null || f.focus();
|
|
@@ -3274,7 +3275,7 @@ const An = { class: "cl:gap-1 cl:grid cl:grid-cols-2" }, Mn = ["onClick"], Vn =
|
|
|
3274
3275
|
},
|
|
3275
3276
|
emits: ["clear", "reset", "togglePopover", "focus", "blur"],
|
|
3276
3277
|
setup(o, { expose: t }) {
|
|
3277
|
-
const l = o, e =
|
|
3278
|
+
const l = o, e = A(null);
|
|
3278
3279
|
function s() {
|
|
3279
3280
|
var p;
|
|
3280
3281
|
(p = e.value) == null || p.focus();
|
|
@@ -3366,7 +3367,7 @@ const An = { class: "cl:gap-1 cl:grid cl:grid-cols-2" }, Mn = ["onClick"], Vn =
|
|
|
3366
3367
|
set(y) {
|
|
3367
3368
|
l.type === "time" ? e.value = y : y !== null ? e.value = Ge(y, null, !1, l.timeZone) : e.value = null;
|
|
3368
3369
|
}
|
|
3369
|
-
}), { locale: i } = ue(), p = S(() => l.dateFormatLocale ?? i.value), m = S(() => l.showPopover !== void 0 ? l.showPopover : l.type !== "time"), r = S(() => Nl(l.disabled || !m.value, l.popoverPlacement)), a = S(() => ct(p.value, l.type)), d =
|
|
3370
|
+
}), { locale: i } = ue(), p = S(() => l.dateFormatLocale ?? i.value), m = S(() => l.showPopover !== void 0 ? l.showPopover : l.type !== "time"), r = S(() => Nl(l.disabled || !m.value, l.popoverPlacement)), a = S(() => ct(p.value, l.type)), d = A(null), f = S(() => Rl(e.value, l.initialCalendarDate, s.value, l.type));
|
|
3370
3371
|
return _(() => [
|
|
3371
3372
|
l.minDate,
|
|
3372
3373
|
l.maxDate
|
|
@@ -3494,7 +3495,7 @@ const An = { class: "cl:gap-1 cl:grid cl:grid-cols-2" }, Mn = ["onClick"], Vn =
|
|
|
3494
3495
|
}),
|
|
3495
3496
|
emits: ["update:modelValue"],
|
|
3496
3497
|
setup(o, { expose: t }) {
|
|
3497
|
-
const l = o, e = ve(o, "modelValue"), s =
|
|
3498
|
+
const l = o, e = ve(o, "modelValue"), s = A(-1), n = A(), i = A(), p = A(!1), m = A(), { focused: r } = Il(m), a = S(() => Array.isArray(e.value)), d = Qe().id ?? "select";
|
|
3498
3499
|
function f(C) {
|
|
3499
3500
|
typeof C < "u" ? p.value = C : l.disabled === !1 && (p.value = !p.value), p.value === !1 && (s.value = -1);
|
|
3500
3501
|
}
|
|
@@ -3528,7 +3529,7 @@ const An = { class: "cl:gap-1 cl:grid cl:grid-cols-2" }, Mn = ["onClick"], Vn =
|
|
|
3528
3529
|
function q(C) {
|
|
3529
3530
|
(p.value || a.value) && (C.stopPropagation(), s.value < l.list.length - 1 ? (s.value++, H()) : w(C));
|
|
3530
3531
|
}
|
|
3531
|
-
function
|
|
3532
|
+
function M(C) {
|
|
3532
3533
|
return !!C && typeof C == "object" && "name" in C && typeof C.name == "string" && "id" in C && typeof C.id == "number";
|
|
3533
3534
|
}
|
|
3534
3535
|
function H() {
|
|
@@ -3552,7 +3553,7 @@ const An = { class: "cl:gap-1 cl:grid cl:grid-cols-2" }, Mn = ["onClick"], Vn =
|
|
|
3552
3553
|
return e.value.some((R) => z(R, C)) ?? !1;
|
|
3553
3554
|
return z(e.value, C);
|
|
3554
3555
|
function z(R, j) {
|
|
3555
|
-
return
|
|
3556
|
+
return M(R) && M(j) ? R.id === j.id : R === j;
|
|
3556
3557
|
}
|
|
3557
3558
|
}
|
|
3558
3559
|
function J(C) {
|
|
@@ -3610,7 +3611,7 @@ const An = { class: "cl:gap-1 cl:grid cl:grid-cols-2" }, Mn = ["onClick"], Vn =
|
|
|
3610
3611
|
readonly: "",
|
|
3611
3612
|
class: [oe.value, "cl:disabled:border-grey-2 cl:disabled:placeholder-grey-3 cl:outline-none cl:overflow-hidden cl:px-2 cl:py-1 cl:rounded-lg cl:text-ellipsis cl:transition-colors cl:w-full cl:whitespace-nowrap"],
|
|
3612
3613
|
placeholder: e.value === null || e.value === void 0 ? C.placeholder ?? void 0 : void 0,
|
|
3613
|
-
value:
|
|
3614
|
+
value: M(e.value) ? e.value.name : e.value,
|
|
3614
3615
|
disabled: C.disabled,
|
|
3615
3616
|
onMousedown: we,
|
|
3616
3617
|
onFocus: pe,
|
|
@@ -3674,7 +3675,7 @@ const An = { class: "cl:gap-1 cl:grid cl:grid-cols-2" }, Mn = ["onClick"], Vn =
|
|
|
3674
3675
|
(c(!0), v(K, null, x(C.list, (L, me) => (c(), v("div", { key: me }, [
|
|
3675
3676
|
E(C.$slots, "default", Q({ ref_for: !0 }, { option: L, index: me, select: y, highlightIndex: s.value, isSelected: D }), () => [
|
|
3676
3677
|
(c(), F(j, {
|
|
3677
|
-
id: g(d) + "-option-" + (
|
|
3678
|
+
id: g(d) + "-option-" + (M(L) ? L.id : me),
|
|
3678
3679
|
key: me,
|
|
3679
3680
|
disabled: C.disabled,
|
|
3680
3681
|
"is-highlighted": s.value === me,
|
|
@@ -3682,7 +3683,7 @@ const An = { class: "cl:gap-1 cl:grid cl:grid-cols-2" }, Mn = ["onClick"], Vn =
|
|
|
3682
3683
|
onSelect: (Se) => y(L)
|
|
3683
3684
|
}, {
|
|
3684
3685
|
default: V(() => [
|
|
3685
|
-
re(U(
|
|
3686
|
+
re(U(M(L) ? L.name : L), 1)
|
|
3686
3687
|
]),
|
|
3687
3688
|
_: 2
|
|
3688
3689
|
}, 1032, ["id", "disabled", "is-highlighted", "is-selected", "onSelect"]))
|
|
@@ -3952,7 +3953,7 @@ const ds = {
|
|
|
3952
3953
|
return;
|
|
3953
3954
|
e("selection-changed"), e("update:filter", a);
|
|
3954
3955
|
}
|
|
3955
|
-
const m =
|
|
3956
|
+
const m = A();
|
|
3956
3957
|
return (r, a) => (c(), v("div", {
|
|
3957
3958
|
ref_key: "gridMethodSelectElement",
|
|
3958
3959
|
ref: m,
|
|
@@ -4054,11 +4055,11 @@ const ds = {
|
|
|
4054
4055
|
value: $.value.toString()
|
|
4055
4056
|
}))) ?? []
|
|
4056
4057
|
];
|
|
4057
|
-
}), k = S(() => b.value.find((u) => u.value === W.value && u.id === q.value) ?? b.value.find((u) => u.value === W.value) ?? null), q =
|
|
4058
|
-
function
|
|
4058
|
+
}), k = S(() => b.value.find((u) => u.value === W.value && u.id === q.value) ?? b.value.find((u) => u.value === W.value) ?? null), q = A(Ye.id);
|
|
4059
|
+
function M(u) {
|
|
4059
4060
|
u && !Array.isArray(u) && (q.value = u.id), d.value ? R(null, u == null ? void 0 : u.value) : z(null, u == null ? void 0 : u.value);
|
|
4060
4061
|
}
|
|
4061
|
-
const H =
|
|
4062
|
+
const H = A(!1), N = S(() => H.value || f.value === !1), G = S({
|
|
4062
4063
|
get() {
|
|
4063
4064
|
var $, T, Z, ce, ke, de, ze;
|
|
4064
4065
|
let u = ($ = p.value) == null ? void 0 : $[0];
|
|
@@ -4235,7 +4236,7 @@ const ds = {
|
|
|
4235
4236
|
return;
|
|
4236
4237
|
T === !1 && (G.value = $);
|
|
4237
4238
|
}
|
|
4238
|
-
const L =
|
|
4239
|
+
const L = A("");
|
|
4239
4240
|
function me(u) {
|
|
4240
4241
|
H.value = !1, u === "Enter" && (H.value = !0, z(null, L.value));
|
|
4241
4242
|
}
|
|
@@ -4244,7 +4245,7 @@ const ds = {
|
|
|
4244
4245
|
}, {
|
|
4245
4246
|
immediate: !0
|
|
4246
4247
|
});
|
|
4247
|
-
const Se =
|
|
4248
|
+
const Se = A(), je = A();
|
|
4248
4249
|
$l("Enter", () => e("perform-data-request"), {
|
|
4249
4250
|
target: Se,
|
|
4250
4251
|
dedupe: !0
|
|
@@ -4313,7 +4314,7 @@ const ds = {
|
|
|
4313
4314
|
id: `${g(Ee)}-${u.column.name}`,
|
|
4314
4315
|
"model-value": W.value === "" || isNaN(+W.value) ? null : +W.value,
|
|
4315
4316
|
format: y.value,
|
|
4316
|
-
precision: u.column.format === g(te).INTEGER ? 0 : g(
|
|
4317
|
+
precision: u.column.format === g(te).INTEGER ? 0 : g(Al)(y.value, { locale: g(n), additionalOptions: { maximumFractionDigits: u.column.precision ?? 2 } }).maximumFractionDigits,
|
|
4317
4318
|
class: "cl:border-none cl:font-normal cl:h-[2rem] cl:lg:text-base cl:mb-0 cl:text-xs cl:w-full readonly-filter",
|
|
4318
4319
|
readonly: u.loading,
|
|
4319
4320
|
"show-arrows": !1,
|
|
@@ -4350,7 +4351,7 @@ const ds = {
|
|
|
4350
4351
|
class: "cl:bg-white cl:font-normal cl:max-h-52! cl:min-h-0! cl:rounded-lg!",
|
|
4351
4352
|
"is-grid-filter": !0,
|
|
4352
4353
|
disabled: u.loading,
|
|
4353
|
-
"onUpdate:modelValue": $[6] || ($[6] = (T) =>
|
|
4354
|
+
"onUpdate:modelValue": $[6] || ($[6] = (T) => M(T))
|
|
4354
4355
|
}, {
|
|
4355
4356
|
default: V(({ select: T, option: Z, index: ce, highlightIndex: ke, isSelected: de }) => [
|
|
4356
4357
|
O(Sl, {
|
|
@@ -4399,7 +4400,7 @@ const ds = {
|
|
|
4399
4400
|
emits: ["update:filter", "perform-data-request"],
|
|
4400
4401
|
setup(o) {
|
|
4401
4402
|
const t = o, l = S(() => Ze(t.column));
|
|
4402
|
-
return (e, s) => e.initialLoad && g(Ze)(e.column) ? (c(), F(g(
|
|
4403
|
+
return (e, s) => e.initialLoad && g(Ze)(e.column) ? (c(), F(g(Ml), {
|
|
4403
4404
|
key: 0,
|
|
4404
4405
|
class: "cl:h-[34px]"
|
|
4405
4406
|
})) : e.bulkEditMode && e.column.editable ? (c(), v("div", Cs, [
|
|
@@ -4596,7 +4597,7 @@ const ds = {
|
|
|
4596
4597
|
], 2)
|
|
4597
4598
|
], 2));
|
|
4598
4599
|
}
|
|
4599
|
-
}), Is = { class: "cl:flex cl:mb-2" },
|
|
4600
|
+
}), Is = { class: "cl:flex cl:mb-2" }, Ms = { class: "cl:basis-full cl:grow" }, As = /* @__PURE__ */ P({
|
|
4600
4601
|
__name: "cl-ui-grid-search",
|
|
4601
4602
|
props: /* @__PURE__ */ ie({
|
|
4602
4603
|
columns: {},
|
|
@@ -4629,7 +4630,7 @@ const ds = {
|
|
|
4629
4630
|
_(() => e.columns, () => p(s.value));
|
|
4630
4631
|
const m = el((d) => {
|
|
4631
4632
|
d !== !1 && p(d);
|
|
4632
|
-
}, 1e3), { t: r } = ue(), a =
|
|
4633
|
+
}, 1e3), { t: r } = ue(), a = A();
|
|
4633
4634
|
return t({
|
|
4634
4635
|
focusMegaSearch: () => {
|
|
4635
4636
|
var d;
|
|
@@ -4639,7 +4640,7 @@ const ds = {
|
|
|
4639
4640
|
const y = Te("icon");
|
|
4640
4641
|
return E(d.$slots, "search", ge(he({ searchValue: s.value, performSearch: p })), () => [
|
|
4641
4642
|
h("div", Is, [
|
|
4642
|
-
h("div",
|
|
4643
|
+
h("div", Ms, [
|
|
4643
4644
|
O(Be, {
|
|
4644
4645
|
ref_key: "gridSearchInputRef",
|
|
4645
4646
|
ref: a,
|
|
@@ -4678,7 +4679,7 @@ const ds = {
|
|
|
4678
4679
|
},
|
|
4679
4680
|
emits: ["update:columns", "view-manager-visible"],
|
|
4680
4681
|
setup(o, { emit: t }) {
|
|
4681
|
-
const l = o, e = t, { t: s } = ue(), n =
|
|
4682
|
+
const l = o, e = t, { t: s } = ue(), n = A(!1), i = S(() => l.columns.filter((a) => !a.hideFromViewManager));
|
|
4682
4683
|
function p(a, d, f) {
|
|
4683
4684
|
f < a.length && f >= 0 && a.splice(f, 0, a.splice(d, 1)[0]);
|
|
4684
4685
|
}
|
|
@@ -4778,7 +4779,8 @@ const ds = {
|
|
|
4778
4779
|
options: { default: () => ({}) },
|
|
4779
4780
|
timeZone: { default: null },
|
|
4780
4781
|
headerDisplayTimezone: { default: null },
|
|
4781
|
-
dateFormatLocale: { default: null }
|
|
4782
|
+
dateFormatLocale: { default: null },
|
|
4783
|
+
disableEditMode: { type: Boolean, default: !1 }
|
|
4782
4784
|
}, {
|
|
4783
4785
|
selectedRowIndex: { default: void 0 },
|
|
4784
4786
|
selectedRowIndexModifiers: {}
|
|
@@ -4793,7 +4795,7 @@ const ds = {
|
|
|
4793
4795
|
const d = S({
|
|
4794
4796
|
get: () => e.columns,
|
|
4795
4797
|
set: (R) => n("update:columns", R)
|
|
4796
|
-
}), f = S(() => d.value.filter((R) => R.visible ?? !0)), y =
|
|
4798
|
+
}), f = S(() => d.value.filter((R) => R.visible ?? !0)), y = A({});
|
|
4797
4799
|
function w() {
|
|
4798
4800
|
var j;
|
|
4799
4801
|
const R = {};
|
|
@@ -4813,19 +4815,19 @@ const ds = {
|
|
|
4813
4815
|
const R = ye(k.value);
|
|
4814
4816
|
R.pageNumber = 1, R.filters = [], W.value = "", k.value = R, n("clear-filters-clicked");
|
|
4815
4817
|
}
|
|
4816
|
-
const
|
|
4818
|
+
const M = Qt(() => n("data-request"), 400);
|
|
4817
4819
|
_(k, () => {
|
|
4818
|
-
|
|
4820
|
+
M();
|
|
4819
4821
|
}, {
|
|
4820
4822
|
deep: !0,
|
|
4821
4823
|
immediate: !0
|
|
4822
4824
|
});
|
|
4823
|
-
const H = S(() => e.data), N =
|
|
4825
|
+
const H = S(() => e.data), N = A(!1), G = S({
|
|
4824
4826
|
get: () => e.options.forceEditMode || N.value,
|
|
4825
4827
|
set(R) {
|
|
4826
4828
|
N.value = R;
|
|
4827
4829
|
}
|
|
4828
|
-
}), D =
|
|
4830
|
+
}), D = A(!1);
|
|
4829
4831
|
_(G, () => {
|
|
4830
4832
|
G.value ? n("edit-start") : Pe(() => n("edit-end"));
|
|
4831
4833
|
});
|
|
@@ -4855,7 +4857,7 @@ const ds = {
|
|
|
4855
4857
|
filters: j
|
|
4856
4858
|
};
|
|
4857
4859
|
}
|
|
4858
|
-
}), W =
|
|
4860
|
+
}), W = A(((z = e.request.filters.find((R) => R.filterMethod === "andcontains" || R.filterOperation === ne.AND_CONTAINS)) == null ? void 0 : z.filterValue) ?? ""), pe = S(() => e.columns.filter((R) => (R.type === "string" || R.type === "slot" && R.slotType === "string") && R.searchable)), we = A(!0);
|
|
4859
4861
|
_(() => e.loading, () => {
|
|
4860
4862
|
we.value = !1;
|
|
4861
4863
|
}, {
|
|
@@ -4869,17 +4871,17 @@ const ds = {
|
|
|
4869
4871
|
((j = e.data) == null ? void 0 : j.results.length) === 0 && k.value.pageNumber > 1 && (k.value.pageNumber = e.data.totalRecords > 0 ? Math.ceil(e.data.totalRecords / k.value.pageSize) : 1);
|
|
4870
4872
|
}
|
|
4871
4873
|
});
|
|
4872
|
-
const C =
|
|
4874
|
+
const C = A();
|
|
4873
4875
|
return t({
|
|
4874
4876
|
focusMegaSearch: () => {
|
|
4875
4877
|
var R;
|
|
4876
4878
|
return (R = C.value) == null ? void 0 : R.focusMegaSearch();
|
|
4877
4879
|
}
|
|
4878
4880
|
}), (R, j) => (c(), v("div", Ws, [
|
|
4879
|
-
we.value && pe.value.length > 0 ? (c(), F(g(
|
|
4881
|
+
we.value && pe.value.length > 0 ? (c(), F(g(Ml), {
|
|
4880
4882
|
key: 0,
|
|
4881
4883
|
class: "cl:h-[39px] cl:mb-2"
|
|
4882
|
-
})) : pe.value.length > 0 ? (c(), F(
|
|
4884
|
+
})) : pe.value.length > 0 ? (c(), F(As, {
|
|
4883
4885
|
key: 1,
|
|
4884
4886
|
ref_key: "gridSearchRef",
|
|
4885
4887
|
ref: C,
|
|
@@ -4913,6 +4915,7 @@ const ds = {
|
|
|
4913
4915
|
request: k.value,
|
|
4914
4916
|
loading: R.loading,
|
|
4915
4917
|
"initial-load": we.value,
|
|
4918
|
+
"disable-edit-mode": R.disableEditMode,
|
|
4916
4919
|
onClearFilters: q
|
|
4917
4920
|
}, {
|
|
4918
4921
|
"additional-grid-actions": V((L) => [
|
|
@@ -4927,7 +4930,7 @@ const ds = {
|
|
|
4927
4930
|
}, null, 8, ["columns", "loading"])
|
|
4928
4931
|
]),
|
|
4929
4932
|
_: 3
|
|
4930
|
-
}, 8, ["edit-mode", "filter-panel-open", "can-bulk-edit", "columns", "options", "request", "loading", "initial-load"]),
|
|
4933
|
+
}, 8, ["edit-mode", "filter-panel-open", "can-bulk-edit", "columns", "options", "request", "loading", "initial-load", "disable-edit-mode"]),
|
|
4931
4934
|
h("div", Qs, [
|
|
4932
4935
|
h("table", {
|
|
4933
4936
|
class: I(["cl:delay-75 cl:min-h-[276px] cl:overflow-x-auto cl:overscroll-x-none cl:text-left cl:transition-opacity cl:w-full", {
|
|
@@ -5038,7 +5041,7 @@ const ds = {
|
|
|
5038
5041
|
smallGridText: !1,
|
|
5039
5042
|
showPageSizeOptions: !0,
|
|
5040
5043
|
...t.options
|
|
5041
|
-
})), f =
|
|
5044
|
+
})), f = A(t.loading);
|
|
5042
5045
|
return _(() => t.loading, () => {
|
|
5043
5046
|
f.value = !1;
|
|
5044
5047
|
}, {
|
|
@@ -5335,13 +5338,13 @@ const _s = { class: "cl:col-[1_/_-1] cl:grid cl:grid-cols-subgrid" }, er = ["id"
|
|
|
5335
5338
|
return a ? (t.column.maxLength && (a = a.trimToLength(t.column.maxLength, t.column.format !== void 0 ? t.column.format === "ellipsis" : !1)), t.column.format === "wrap-text" && (a = `<span class="cl:break-words cl:whitespace-pre-wrap">${a}</span>`), a) : "";
|
|
5336
5339
|
}
|
|
5337
5340
|
function r(a, d) {
|
|
5338
|
-
return t.column.format === te.INTEGER ?
|
|
5341
|
+
return t.column.format === te.INTEGER ? Ae(a, te.DECIMAL, {
|
|
5339
5342
|
locale: d,
|
|
5340
5343
|
additionalOptions: {
|
|
5341
5344
|
maximumFractionDigits: 0,
|
|
5342
5345
|
minimumFractionDigits: 0
|
|
5343
5346
|
}
|
|
5344
|
-
}) :
|
|
5347
|
+
}) : Ae(a, t.column.format ?? te.DECIMAL, {
|
|
5345
5348
|
locale: d,
|
|
5346
5349
|
additionalOptions: {
|
|
5347
5350
|
maximumFractionDigits: t.column.precision ?? 2,
|
|
@@ -5547,7 +5550,7 @@ const Dt = /* @__PURE__ */ Ce(ir, [["render", cr]]), dr = { class: "cl:flex cl:g
|
|
|
5547
5550
|
},
|
|
5548
5551
|
emits: ["open-click"],
|
|
5549
5552
|
setup(o, { emit: t }) {
|
|
5550
|
-
const l = o, e = t, s =
|
|
5553
|
+
const l = o, e = t, s = A();
|
|
5551
5554
|
return ll(s, () => {
|
|
5552
5555
|
(l.isOpen ?? !1) && e("open-click");
|
|
5553
5556
|
}), (n, i) => (c(), v("header", $r, [
|
|
@@ -5631,10 +5634,10 @@ const Dt = /* @__PURE__ */ Ce(ir, [["render", cr]]), dr = { class: "cl:flex cl:g
|
|
|
5631
5634
|
})
|
|
5632
5635
|
], 2));
|
|
5633
5636
|
}
|
|
5634
|
-
}),
|
|
5637
|
+
}), Mr = [
|
|
5635
5638
|
"default",
|
|
5636
5639
|
"secondary"
|
|
5637
|
-
],
|
|
5640
|
+
], Ar = /* @__PURE__ */ P({
|
|
5638
5641
|
inheritAttrs: !1,
|
|
5639
5642
|
__name: "cl-ui-calendar",
|
|
5640
5643
|
props: {
|
|
@@ -5681,12 +5684,12 @@ const Dt = /* @__PURE__ */ Ce(ir, [["render", cr]]), dr = { class: "cl:flex cl:g
|
|
|
5681
5684
|
}
|
|
5682
5685
|
s("update:date", G);
|
|
5683
5686
|
}
|
|
5684
|
-
}), { locale: p } = ue(), m = S(() => e.dateFormatLocale ?? p.value), r = S(() => Nl(e.disabled, "auto")), a = S(() => ct(m.value, e.type)), d =
|
|
5687
|
+
}), { locale: p } = ue(), m = S(() => e.dateFormatLocale ?? p.value), r = S(() => Nl(e.disabled, "auto")), a = S(() => ct(m.value, e.type)), d = A(null), f = S(() => Rl(e.date, e.initialDate, n.value, e.type)), y = A(null), w = A();
|
|
5685
5688
|
function b(N) {
|
|
5686
5689
|
const G = dt(N, n.value);
|
|
5687
5690
|
i.value = G, y.value = N, w.value.move(G.start), w.value.hidePopover();
|
|
5688
5691
|
}
|
|
5689
|
-
const k = S(() => pt(i.value, n.value, m.value)), q = il("(min-width: 768px)"),
|
|
5692
|
+
const k = S(() => pt(i.value, n.value, m.value)), q = il("(min-width: 768px)"), M = S(() => q.value ? 2 : 1), H = il("(min-height: 800px)");
|
|
5690
5693
|
return t({
|
|
5691
5694
|
focus() {
|
|
5692
5695
|
var N;
|
|
@@ -5735,7 +5738,7 @@ const Dt = /* @__PURE__ */ Ce(ir, [["render", cr]]), dr = { class: "cl:flex cl:g
|
|
|
5735
5738
|
locale: g(p),
|
|
5736
5739
|
is24hr: g(p) !== "en-US",
|
|
5737
5740
|
timezone: n.value,
|
|
5738
|
-
columns:
|
|
5741
|
+
columns: M.value,
|
|
5739
5742
|
popover: r.value,
|
|
5740
5743
|
"min-date": N.min,
|
|
5741
5744
|
"max-date": N.max,
|
|
@@ -5900,10 +5903,10 @@ const Dt = /* @__PURE__ */ Ce(ir, [["render", cr]]), dr = { class: "cl:flex cl:g
|
|
|
5900
5903
|
tt((r) => ({
|
|
5901
5904
|
"1f0967fd": i.value
|
|
5902
5905
|
}));
|
|
5903
|
-
const l = o, e = ve(o, "value"), { t: s } = ue(), n =
|
|
5906
|
+
const l = o, e = ve(o, "value"), { t: s } = ue(), n = A(), i = S(() => {
|
|
5904
5907
|
let r = (e.value - l.min) / (l.max - l.min) * 100;
|
|
5905
5908
|
return r < 35 && r > 0 ? r < 20 ? r += 0.5 : r += 0.25 : r > 65 && r < 100 && (r > 80 ? r -= 0.5 : r -= 0.25), `${r}%`;
|
|
5906
|
-
}), p = S(() => l.min <= l.max && l.step > 0), m =
|
|
5909
|
+
}), p = S(() => l.min <= l.max && l.step > 0), m = A(!1);
|
|
5907
5910
|
return t({
|
|
5908
5911
|
focus() {
|
|
5909
5912
|
var r;
|
|
@@ -5917,7 +5920,7 @@ const Dt = /* @__PURE__ */ Ce(ir, [["render", cr]]), dr = { class: "cl:flex cl:g
|
|
|
5917
5920
|
"cl:bg-grey-0": r.disabled
|
|
5918
5921
|
}]),
|
|
5919
5922
|
onClick: a[0] || (a[0] = (d) => e.value = r.disabled ? e.value : r.min)
|
|
5920
|
-
}, U(Number.isInteger(r.min) ? g(Oe)(r.min) : g(
|
|
5923
|
+
}, U(Number.isInteger(r.min) ? g(Oe)(r.min) : g(Ae)(r.min, g(te).DECIMAL)), 3),
|
|
5921
5924
|
h("div", Ur, [
|
|
5922
5925
|
m.value ? (c(), F(al, {
|
|
5923
5926
|
key: 0,
|
|
@@ -5927,7 +5930,7 @@ const Dt = /* @__PURE__ */ Ce(ir, [["render", cr]]), dr = { class: "cl:flex cl:g
|
|
|
5927
5930
|
"onUpdate:modelValue": a[1] || (a[1] = (d) => e.value = d),
|
|
5928
5931
|
class: "cl:min-w-[8.5rem] cl:w-full",
|
|
5929
5932
|
format: g(te).DECIMAL,
|
|
5930
|
-
precision: Number.isInteger(r.min) ? 0 : g(
|
|
5933
|
+
precision: Number.isInteger(r.min) ? 0 : g(Al)(g(te).DECIMAL).maximumFractionDigits,
|
|
5931
5934
|
min: r.min,
|
|
5932
5935
|
max: r.max,
|
|
5933
5936
|
step: r.step,
|
|
@@ -5957,7 +5960,7 @@ const Dt = /* @__PURE__ */ Ce(ir, [["render", cr]]), dr = { class: "cl:flex cl:g
|
|
|
5957
5960
|
{ number: !0 }
|
|
5958
5961
|
]
|
|
5959
5962
|
]),
|
|
5960
|
-
h("div", zr, U(Number.isInteger(e.value) ? g(Oe)(e.value) : g(
|
|
5963
|
+
h("div", zr, U(Number.isInteger(e.value) ? g(Oe)(e.value) : g(Ae)(e.value, g(te).DECIMAL)), 1)
|
|
5961
5964
|
], 64))
|
|
5962
5965
|
]),
|
|
5963
5966
|
h("span", {
|
|
@@ -5966,7 +5969,7 @@ const Dt = /* @__PURE__ */ Ce(ir, [["render", cr]]), dr = { class: "cl:flex cl:g
|
|
|
5966
5969
|
"cl:bg-grey-0": r.disabled
|
|
5967
5970
|
}]),
|
|
5968
5971
|
onClick: a[3] || (a[3] = (d) => e.value = r.disabled ? e.value : r.max)
|
|
5969
|
-
}, U(Number.isInteger(r.max) ? g(Oe)(r.max) : g(
|
|
5972
|
+
}, U(Number.isInteger(r.max) ? g(Oe)(r.max) : g(Ae)(r.max, g(te).DECIMAL)), 3),
|
|
5970
5973
|
h("div", Fr, [
|
|
5971
5974
|
h("div", {
|
|
5972
5975
|
class: "cl:bg-white cl:border cl:border-transparent cl:cursor-pointer cl:float-right cl:hover:border-grey-1 cl:p-1.5 cl:px-2 cl:rounded-full cl:shadow cl:text-xs",
|
|
@@ -6094,17 +6097,17 @@ const Zr = { class: "cl:flex cl:justify-between" }, Wr = { class: "cl:w-full" },
|
|
|
6094
6097
|
},
|
|
6095
6098
|
emits: ["update:model-value", "click", "focus", "input", "change", "validated"],
|
|
6096
6099
|
setup(o, { expose: t, emit: l }) {
|
|
6097
|
-
const e = o, s = l, n =
|
|
6100
|
+
const e = o, s = l, n = A(null), i = A(null), p = A(!1), m = A(!1), r = S(() => {
|
|
6098
6101
|
var $;
|
|
6099
6102
|
let u = e.isRequired;
|
|
6100
6103
|
return m.value && (($ = f.value) == null ? void 0 : $.toString().trim()) === "" && e.requiredText.trim() !== "" && (u = !1), !e.hideRequiredAsterisk && u;
|
|
6101
|
-
}), a = S(() => e.placeholderText.trim() !== "" ? e.placeholderText : e.label), d =
|
|
6104
|
+
}), a = S(() => e.placeholderText.trim() !== "" ? e.placeholderText : e.label), d = A(0), f = S({
|
|
6102
6105
|
get: () => e.modelValue,
|
|
6103
6106
|
set: (u) => W(u, !1)
|
|
6104
6107
|
}), y = S({
|
|
6105
6108
|
get: () => e.modelValue,
|
|
6106
6109
|
set: (u) => oe(u)
|
|
6107
|
-
}), w = S(() => typeof e.min == "number" ? e.min.toString() : e.min), b = S(() => typeof e.max == "number" ? e.max.toString() : e.max), k = S(() => typeof e.min == "number" || e.min === null ? e.min : parseFloat(e.min)), q = S(() => typeof e.max == "number" || e.max === null ? e.max : parseFloat(e.max)),
|
|
6110
|
+
}), w = S(() => typeof e.min == "number" ? e.min.toString() : e.min), b = S(() => typeof e.max == "number" ? e.max.toString() : e.max), k = S(() => typeof e.min == "number" || e.min === null ? e.min : parseFloat(e.min)), q = S(() => typeof e.max == "number" || e.max === null ? e.max : parseFloat(e.max)), M = S(() => e.messageWhenValid.trim() !== "" ? e.messageWhenValid : ""), H = A(!0), N = A(!0), G = A([]), D = S(() => {
|
|
6108
6111
|
var u, $;
|
|
6109
6112
|
return [
|
|
6110
6113
|
...((u = G.value) == null ? void 0 : u.filter((T) => ((T == null ? void 0 : T.length) ?? 0) > 0)) ?? [],
|
|
@@ -6306,7 +6309,7 @@ const Zr = { class: "cl:flex cl:justify-between" }, Wr = { class: "cl:w-full" },
|
|
|
6306
6309
|
onFocus: $[8] || ($[8] = (T) => s("focus")),
|
|
6307
6310
|
onBlur: L
|
|
6308
6311
|
}), null, 16, ["modelValue", "disabled", "placeholder", "is-valid", "highlight-when-valid", "input-specific-classes", "group", "step", "currency-options"])
|
|
6309
|
-
])) : g(Xl)(u.inputType) ? (c(), F(g(
|
|
6312
|
+
])) : g(Xl)(u.inputType) ? (c(), F(g(Ar), Q({ key: 2 }, u.$attrs, {
|
|
6310
6313
|
ref_key: "inputElement",
|
|
6311
6314
|
ref: n,
|
|
6312
6315
|
date: y.value,
|
|
@@ -6345,7 +6348,7 @@ const Zr = { class: "cl:flex cl:justify-between" }, Wr = { class: "cl:w-full" },
|
|
|
6345
6348
|
}, null, 8, ["value", "min", "max", "step", "placeholder", "disabled"])
|
|
6346
6349
|
])) : B("", !0)
|
|
6347
6350
|
], 32),
|
|
6348
|
-
H.value &&
|
|
6351
|
+
H.value && M.value && N.value ? (c(), v("div", ei, U(M.value), 1)) : B("", !0),
|
|
6349
6352
|
!H.value && D.value.length > 0 && u.showValidationMessages && N.value ? (c(), v("div", li, U(D.value), 1)) : B("", !0)
|
|
6350
6353
|
], 16));
|
|
6351
6354
|
}
|
|
@@ -6397,7 +6400,7 @@ const ri = {
|
|
|
6397
6400
|
},
|
|
6398
6401
|
emits: ["language-select"],
|
|
6399
6402
|
setup(o, { emit: t }) {
|
|
6400
|
-
const l = o, e = t, { locale: s } = ue(), n =
|
|
6403
|
+
const l = o, e = t, { locale: s } = ue(), n = A(!1), i = S(() => l.supportedLanguages.find((a) => a.localeCode === s.value) ?? m(l.supportedLanguages, s.value) ?? l.defaultLangauge), p = S(() => l.supportedLanguages.filter((a) => ql(a)).sort((a, d) => a.nativeName > d.nativeName ? 1 : d.nativeName > a.nativeName ? -1 : 0));
|
|
6401
6404
|
function m(a, d) {
|
|
6402
6405
|
const f = d.split("-")[0];
|
|
6403
6406
|
return a.find((w) => w.localeCode.split("-")[0] === f) ?? null;
|
|
@@ -6456,7 +6459,7 @@ const ri = {
|
|
|
6456
6459
|
},
|
|
6457
6460
|
emits: ["login", "update:errors"],
|
|
6458
6461
|
setup(o, { emit: t }) {
|
|
6459
|
-
const l = t, { t: e } = ue(), s =
|
|
6462
|
+
const l = t, { t: e } = ue(), s = A(""), n = A(""), i = A("password"), p = S(() => zt(s.value)), m = S(() => s.value ? p.value ? null : [e("input.valueNotValidEmail", { label: e("login.email") })] : []);
|
|
6460
6463
|
function r() {
|
|
6461
6464
|
const d = {
|
|
6462
6465
|
username: s.value,
|
|
@@ -6614,9 +6617,9 @@ const ri = {
|
|
|
6614
6617
|
},
|
|
6615
6618
|
emits: ["pinned-state", "open-state"],
|
|
6616
6619
|
setup(o, { expose: t, emit: l }) {
|
|
6617
|
-
const e = l, s =
|
|
6620
|
+
const e = l, s = A([]), n = S(() => s.value.filter((k) => k.open === !0).length > 0);
|
|
6618
6621
|
function i(k) {
|
|
6619
|
-
let q = s.value.find((
|
|
6622
|
+
let q = s.value.find((M) => M.id === k);
|
|
6620
6623
|
return q || (q = {
|
|
6621
6624
|
id: k,
|
|
6622
6625
|
open: !1
|
|
@@ -6624,10 +6627,10 @@ const ri = {
|
|
|
6624
6627
|
}
|
|
6625
6628
|
function p(k) {
|
|
6626
6629
|
const q = s.value.find((H) => H.id === k);
|
|
6627
|
-
let
|
|
6628
|
-
q && (q.open = !q.open, q.open && (
|
|
6630
|
+
let M;
|
|
6631
|
+
q && (q.open = !q.open, q.open && (M = q.id), s.value.forEach((H) => {
|
|
6629
6632
|
H.id !== k && (H.open = !1);
|
|
6630
|
-
})), e("open-state", !!(q != null && q.open),
|
|
6633
|
+
})), e("open-state", !!(q != null && q.open), M);
|
|
6631
6634
|
}
|
|
6632
6635
|
const m = Yt();
|
|
6633
6636
|
_(
|
|
@@ -6639,11 +6642,11 @@ const ri = {
|
|
|
6639
6642
|
deep: !0
|
|
6640
6643
|
}
|
|
6641
6644
|
);
|
|
6642
|
-
const r =
|
|
6645
|
+
const r = A(!1), a = A(!1), { start: d } = at(() => a.value = !1, 100);
|
|
6643
6646
|
function f() {
|
|
6644
6647
|
r.value = !r.value, e("pinned-state", r.value), a.value = !0, d();
|
|
6645
6648
|
}
|
|
6646
|
-
const y =
|
|
6649
|
+
const y = A();
|
|
6647
6650
|
function w(k) {
|
|
6648
6651
|
f(), typeof k == "number" && p(k);
|
|
6649
6652
|
}
|
|
@@ -6701,7 +6704,7 @@ const ri = {
|
|
|
6701
6704
|
})
|
|
6702
6705
|
], 512));
|
|
6703
6706
|
}
|
|
6704
|
-
}),
|
|
6707
|
+
}), Mi = /* @__PURE__ */ Ce(Ii, [["__scopeId", "data-v-4ef1ab95"]]), Ai = /* @__PURE__ */ P({
|
|
6705
6708
|
__name: "cl-ui-navigation-icon",
|
|
6706
6709
|
props: {
|
|
6707
6710
|
iconValue: {},
|
|
@@ -6776,7 +6779,7 @@ const Zi = /* @__PURE__ */ Ce(ji, [["render", Gi]]), Wi = /* @__PURE__ */ P({
|
|
|
6776
6779
|
},
|
|
6777
6780
|
emits: ["tab-opened"],
|
|
6778
6781
|
setup(o, { expose: t, emit: l }) {
|
|
6779
|
-
const e = o, s = l, n =
|
|
6782
|
+
const e = o, s = l, n = A([]), i = S(() => n.value.filter((f) => f.open).length > 0), p = A(), m = S(() => e.layout === "horizontal");
|
|
6780
6783
|
function r(f) {
|
|
6781
6784
|
let y = n.value.find((w) => w.id === f);
|
|
6782
6785
|
return y || (y = {
|
|
@@ -6898,7 +6901,7 @@ const Zi = /* @__PURE__ */ Ce(ji, [["render", Gi]]), Wi = /* @__PURE__ */ P({
|
|
|
6898
6901
|
},
|
|
6899
6902
|
emits: ["files-uploaded", "invalid-files"],
|
|
6900
6903
|
setup(o, { emit: t }) {
|
|
6901
|
-
const l = o, e = t, { t: s } = ue(), n =
|
|
6904
|
+
const l = o, e = t, { t: s } = ue(), n = A([]), i = S(() => {
|
|
6902
6905
|
switch (l.uploaderType) {
|
|
6903
6906
|
case "dragDrop":
|
|
6904
6907
|
return !1;
|
|
@@ -6924,20 +6927,20 @@ const Zi = /* @__PURE__ */ Ce(ji, [["render", Gi]]), Wi = /* @__PURE__ */ P({
|
|
|
6924
6927
|
}
|
|
6925
6928
|
}
|
|
6926
6929
|
function r(b) {
|
|
6927
|
-
const k = l.acceptedFileTypes.split(",").map((H) => H.trim()), q = [],
|
|
6930
|
+
const k = l.acceptedFileTypes.split(",").map((H) => H.trim()), q = [], M = [];
|
|
6928
6931
|
b.forEach((H) => {
|
|
6929
6932
|
k.some((N) => {
|
|
6930
6933
|
const G = Lt(N).replace(/\\\*/g, ".*?");
|
|
6931
6934
|
return new RegExp(`^${G}$`).test(H.type) || H.name.endsWith(N);
|
|
6932
|
-
}) ? q.push(H) :
|
|
6933
|
-
}), q.length && e("files-uploaded", q), n.value =
|
|
6935
|
+
}) ? q.push(H) : M.push(H);
|
|
6936
|
+
}), q.length && e("files-uploaded", q), n.value = M, M.length && e("invalid-files", M), w();
|
|
6934
6937
|
}
|
|
6935
6938
|
const a = [
|
|
6936
6939
|
"dragenter",
|
|
6937
6940
|
"dragover",
|
|
6938
6941
|
"dragleave",
|
|
6939
6942
|
"drop"
|
|
6940
|
-
], d =
|
|
6943
|
+
], d = A(!1);
|
|
6941
6944
|
Ke(() => {
|
|
6942
6945
|
a.forEach((b) => {
|
|
6943
6946
|
document.body.addEventListener(b, (k) => k.preventDefault());
|
|
@@ -6947,7 +6950,7 @@ const Zi = /* @__PURE__ */ Ce(ji, [["render", Gi]]), Wi = /* @__PURE__ */ P({
|
|
|
6947
6950
|
document.body.removeEventListener(b, (k) => k.preventDefault());
|
|
6948
6951
|
});
|
|
6949
6952
|
});
|
|
6950
|
-
const f =
|
|
6953
|
+
const f = A(null), y = A(null);
|
|
6951
6954
|
function w() {
|
|
6952
6955
|
f.value && (f.value.value = ""), y.value && (y.value.value = "");
|
|
6953
6956
|
}
|
|
@@ -7068,7 +7071,7 @@ const Zi = /* @__PURE__ */ Ce(ji, [["render", Gi]]), Wi = /* @__PURE__ */ P({
|
|
|
7068
7071
|
setup(o) {
|
|
7069
7072
|
return (t, l) => (c(), F(qe, {
|
|
7070
7073
|
class: I({
|
|
7071
|
-
"cl:bg-primary-default! cl:border-primary-dark cl:hover:border-primary-dark cl:text-black cl:font-bold": t.isSelected,
|
|
7074
|
+
"cl:bg-primary-default/40! cl:border-primary-dark cl:hover:border-primary-dark cl:text-black cl:font-bold": t.isSelected,
|
|
7072
7075
|
"cl:border-secondary-light/40 cl:hover:shadow-md cl:hover:border-secondary-light/100 cl:text-secondary-default! cl:hover:bg-primary-default/15 cl:hover:font-bold": t.isSelected === !1,
|
|
7073
7076
|
"cl:rounded-none!": t.orientation === "horizontal"
|
|
7074
7077
|
})
|
|
@@ -7144,7 +7147,7 @@ const Zi = /* @__PURE__ */ Ce(ji, [["render", Gi]]), Wi = /* @__PURE__ */ P({
|
|
|
7144
7147
|
},
|
|
7145
7148
|
emits: /* @__PURE__ */ ie(["search-clicked"], ["update:open", "update:pinned"]),
|
|
7146
7149
|
setup(o) {
|
|
7147
|
-
const t = ve(o, "open"), l = ve(o, "pinned"), e =
|
|
7150
|
+
const t = ve(o, "open"), l = ve(o, "pinned"), e = A([]), s = A(!1);
|
|
7148
7151
|
function n(r) {
|
|
7149
7152
|
let a = e.value.find((d) => d.id === r);
|
|
7150
7153
|
return a || (a = {
|
|
@@ -7160,7 +7163,7 @@ const Zi = /* @__PURE__ */ Ce(ji, [["render", Gi]]), Wi = /* @__PURE__ */ P({
|
|
|
7160
7163
|
function p() {
|
|
7161
7164
|
t.value = !t.value;
|
|
7162
7165
|
}
|
|
7163
|
-
const m =
|
|
7166
|
+
const m = A();
|
|
7164
7167
|
return ll(m, () => {
|
|
7165
7168
|
t.value === !0 && l.value === !1 && (t.value = !1);
|
|
7166
7169
|
}), (r, a) => {
|
|
@@ -7370,7 +7373,7 @@ const Zi = /* @__PURE__ */ Ce(ji, [["render", Gi]]), Wi = /* @__PURE__ */ P({
|
|
|
7370
7373
|
function Iu(...o) {
|
|
7371
7374
|
return o.map((t) => t.replace(/ /g, "_")).join(" ");
|
|
7372
7375
|
}
|
|
7373
|
-
function
|
|
7376
|
+
function Mu(o, t) {
|
|
7374
7377
|
var s;
|
|
7375
7378
|
const l = t.split(" ");
|
|
7376
7379
|
let e;
|
|
@@ -7379,7 +7382,7 @@ function Au(o, t) {
|
|
|
7379
7382
|
break;
|
|
7380
7383
|
return e ?? null;
|
|
7381
7384
|
}
|
|
7382
|
-
const
|
|
7385
|
+
const Au = { class: "cl:flex cl:flex-nowrap cl:flex-row cl:w-full" }, Vu = { class: "cl:h-8 cl:px-1.5 cl:py-[3px] cl:w-8" }, Nu = ["id"], Ru = {
|
|
7383
7386
|
key: 0,
|
|
7384
7387
|
class: "cl:w-8"
|
|
7385
7388
|
}, Uu = ["id"], Bu = ["id"], zu = {
|
|
@@ -7400,12 +7403,12 @@ const Mu = { class: "cl:flex cl:flex-nowrap cl:flex-row cl:w-full" }, Vu = { cla
|
|
|
7400
7403
|
emits: /* @__PURE__ */ ie(["recalculate-tree-path", "set-child-node-height"], ["update:selectedPath"]),
|
|
7401
7404
|
setup(o, { emit: t }) {
|
|
7402
7405
|
var q;
|
|
7403
|
-
const l = o, e = ve(o, "selectedPath"), s = t, n = S(() => Iu(...l.pathFragments)), i = Rt(l.rootNode.expanded) ? l.rootNode.expanded :
|
|
7406
|
+
const l = o, e = ve(o, "selectedPath"), s = t, n = S(() => Iu(...l.pathFragments)), i = Rt(l.rootNode.expanded) ? l.rootNode.expanded : A(l.rootNode.expanded ?? !1), p = A(), { height: m } = Fl(p), r = Ll(p), a = A([]), d = S(() => a.value.map((M) => Fl(M))), f = S(() => a.value.map((M) => Ll(M))), y = A(new Array(((q = l.rootNode.children) == null ? void 0 : q.length) ?? 0).fill(0)), w = A([]);
|
|
7404
7407
|
function b() {
|
|
7405
|
-
r.update(), w.value = f.value.map((
|
|
7408
|
+
r.update(), w.value = f.value.map((M, H) => (M.update(), M.top.value - r.bottom.value + y.value[H] / 2 + 3)), s("recalculate-tree-path");
|
|
7406
7409
|
}
|
|
7407
7410
|
const k = el(b, 1);
|
|
7408
|
-
return _(m, (
|
|
7411
|
+
return _(m, (M) => s("set-child-node-height", M), {
|
|
7409
7412
|
immediate: !0,
|
|
7410
7413
|
flush: "sync"
|
|
7411
7414
|
}), _([
|
|
@@ -7414,13 +7417,13 @@ const Mu = { class: "cl:flex cl:flex-nowrap cl:flex-row cl:w-full" }, Vu = { cla
|
|
|
7414
7417
|
], k, {
|
|
7415
7418
|
flush: "post",
|
|
7416
7419
|
deep: !0
|
|
7417
|
-
}), Ke(k), (
|
|
7420
|
+
}), Ke(k), (M, H) => {
|
|
7418
7421
|
const N = Te("icon"), G = Te("cl-ui-tree-list-subtree", !0);
|
|
7419
|
-
return c(), v("div",
|
|
7422
|
+
return c(), v("div", Au, [
|
|
7420
7423
|
h("div", Vu, [
|
|
7421
|
-
|
|
7424
|
+
M.rootNode.children && M.rootNode.children.length > 0 ? (c(), v("button", {
|
|
7422
7425
|
key: 0,
|
|
7423
|
-
id: `${
|
|
7426
|
+
id: `${M.idPrefix}-expand-button`,
|
|
7424
7427
|
class: "cl:basis-0 cl:bg-white cl:p-1 cl:text-base cl:text-secondary-light",
|
|
7425
7428
|
onClick: H[0] || (H[0] = (D) => i.value = !g(i))
|
|
7426
7429
|
}, [
|
|
@@ -7429,7 +7432,7 @@ const Mu = { class: "cl:flex cl:flex-nowrap cl:flex-row cl:w-full" }, Vu = { cla
|
|
|
7429
7432
|
}, null, 8, ["icon"])
|
|
7430
7433
|
], 8, Nu)) : B("", !0)
|
|
7431
7434
|
]),
|
|
7432
|
-
|
|
7435
|
+
M.depth > 0 ? (c(), v("div", Ru)) : B("", !0),
|
|
7433
7436
|
h("div", {
|
|
7434
7437
|
class: I(["cl:basis-full cl:relative", {
|
|
7435
7438
|
"cl-tree-list-selection": e.value === n.value
|
|
@@ -7437,23 +7440,23 @@ const Mu = { class: "cl:flex cl:flex-nowrap cl:flex-row cl:w-full" }, Vu = { cla
|
|
|
7437
7440
|
}, [
|
|
7438
7441
|
e.value === null ? (c(), v("div", {
|
|
7439
7442
|
key: 0,
|
|
7440
|
-
id: `${
|
|
7443
|
+
id: `${M.idPrefix}-node-content`,
|
|
7441
7444
|
ref_key: "nodeContentDiv",
|
|
7442
7445
|
ref: p,
|
|
7443
7446
|
class: "cl:bg-white cl:border cl:border-grey-2 cl:px-2 cl:py-1 cl:rounded"
|
|
7444
7447
|
}, [
|
|
7445
|
-
E(
|
|
7446
|
-
node:
|
|
7448
|
+
E(M.$slots, M.rootNode.slotName ?? "default", {
|
|
7449
|
+
node: M.rootNode,
|
|
7447
7450
|
path: n.value,
|
|
7448
|
-
depth:
|
|
7449
|
-
breadth:
|
|
7451
|
+
depth: M.depth,
|
|
7452
|
+
breadth: M.breadth,
|
|
7450
7453
|
isSelected: e.value === n.value,
|
|
7451
7454
|
isExpanded: g(i),
|
|
7452
7455
|
expand: (D) => i.value = D
|
|
7453
7456
|
})
|
|
7454
7457
|
], 8, Uu)) : (c(), v("button", {
|
|
7455
7458
|
key: 1,
|
|
7456
|
-
id: `${
|
|
7459
|
+
id: `${M.idPrefix}-node-content`,
|
|
7457
7460
|
ref_key: "nodeContentDiv",
|
|
7458
7461
|
ref: p,
|
|
7459
7462
|
class: I(["cl:border cl:border-grey-2 cl:px-2 cl:py-1 cl:rounded-sm cl:text-left cl:w-full", {
|
|
@@ -7462,23 +7465,23 @@ const Mu = { class: "cl:flex cl:flex-nowrap cl:flex-row cl:w-full" }, Vu = { cla
|
|
|
7462
7465
|
}]),
|
|
7463
7466
|
onClick: H[1] || (H[1] = (D) => e.value = e.value === n.value ? "" : n.value)
|
|
7464
7467
|
}, [
|
|
7465
|
-
E(
|
|
7466
|
-
node:
|
|
7468
|
+
E(M.$slots, M.rootNode.slotName ?? "default", {
|
|
7469
|
+
node: M.rootNode,
|
|
7467
7470
|
path: n.value,
|
|
7468
|
-
depth:
|
|
7469
|
-
breadth:
|
|
7471
|
+
depth: M.depth,
|
|
7472
|
+
breadth: M.breadth,
|
|
7470
7473
|
isSelected: e.value === n.value,
|
|
7471
7474
|
isExpanded: g(i),
|
|
7472
7475
|
expand: (D) => i.value = D
|
|
7473
7476
|
})
|
|
7474
7477
|
], 10, Bu)),
|
|
7475
|
-
|
|
7478
|
+
M.rootNode.children && M.rootNode.children.length > 0 && g(i) ? (c(), F(Eu, {
|
|
7476
7479
|
key: 2,
|
|
7477
7480
|
class: "cl-tree-list-path",
|
|
7478
7481
|
"branches-at": w.value
|
|
7479
7482
|
}, null, 8, ["branches-at"])) : B("", !0),
|
|
7480
|
-
|
|
7481
|
-
(c(!0), v(K, null, x(
|
|
7483
|
+
M.rootNode.children && M.rootNode.children.length > 0 && g(i) ? (c(), v("div", zu, [
|
|
7484
|
+
(c(!0), v(K, null, x(M.rootNode.children, (D, J) => (c(), v("div", {
|
|
7482
7485
|
key: D.id,
|
|
7483
7486
|
ref_for: !0,
|
|
7484
7487
|
ref_key: "childSubtreeDivs",
|
|
@@ -7487,18 +7490,18 @@ const Mu = { class: "cl:flex cl:flex-nowrap cl:flex-row cl:w-full" }, Vu = { cla
|
|
|
7487
7490
|
O(G, {
|
|
7488
7491
|
"selected-path": e.value,
|
|
7489
7492
|
"onUpdate:selectedPath": H[2] || (H[2] = (oe) => e.value = oe),
|
|
7490
|
-
"id-prefix": `${
|
|
7491
|
-
depth:
|
|
7493
|
+
"id-prefix": `${M.idPrefix}-${D.id}`,
|
|
7494
|
+
depth: M.depth + 1,
|
|
7492
7495
|
breadth: J,
|
|
7493
|
-
"path-fragments": [...
|
|
7496
|
+
"path-fragments": [...M.pathFragments, D.id],
|
|
7494
7497
|
"root-node": D,
|
|
7495
7498
|
onRecalculateTreePath: g(k),
|
|
7496
7499
|
onSetChildNodeHeight: (oe) => y.value[J] = oe
|
|
7497
7500
|
}, be({ _: 2 }, [
|
|
7498
|
-
x(
|
|
7501
|
+
x(M.$slots, (oe, W) => ({
|
|
7499
7502
|
name: W,
|
|
7500
7503
|
fn: V((pe) => [
|
|
7501
|
-
E(
|
|
7504
|
+
E(M.$slots, W, Q({ ref_for: !0 }, pe))
|
|
7502
7505
|
])
|
|
7503
7506
|
}))
|
|
7504
7507
|
]), 1032, ["selected-path", "id-prefix", "depth", "breadth", "path-fragments", "root-node", "onRecalculateTreePath", "onSetChildNodeHeight"])
|
|
@@ -7519,10 +7522,10 @@ const Mu = { class: "cl:flex cl:flex-nowrap cl:flex-row cl:w-full" }, Vu = { cla
|
|
|
7519
7522
|
},
|
|
7520
7523
|
emits: ["select"],
|
|
7521
7524
|
setup(o, { emit: t }) {
|
|
7522
|
-
const l = o, e = t, s =
|
|
7525
|
+
const l = o, e = t, s = A(""), n = S({
|
|
7523
7526
|
get: () => l.allowSelect ? s.value : null,
|
|
7524
7527
|
set(i) {
|
|
7525
|
-
i ? (s.value = i, e("select",
|
|
7528
|
+
i ? (s.value = i, e("select", Mu(l.rootNodes, i))) : l.allowDeselect && (s.value = "", e("select", null));
|
|
7526
7529
|
}
|
|
7527
7530
|
});
|
|
7528
7531
|
return (i, p) => (c(), v("div", Lu, [
|
|
@@ -7594,9 +7597,9 @@ const Mu = { class: "cl:flex cl:flex-nowrap cl:flex-row cl:w-full" }, Vu = { cla
|
|
|
7594
7597
|
clUiMenuItem: Su,
|
|
7595
7598
|
clUiMenuSection: It,
|
|
7596
7599
|
clUiModal: rt,
|
|
7597
|
-
clUiNavigation:
|
|
7600
|
+
clUiNavigation: Mi,
|
|
7598
7601
|
clUiNavigationGroup: Ri,
|
|
7599
|
-
clUiNavigationIcon:
|
|
7602
|
+
clUiNavigationIcon: Ai,
|
|
7600
7603
|
clUiNavigationItem: Zi,
|
|
7601
7604
|
clUiNavigationSection: Pi,
|
|
7602
7605
|
clUiNotification: st,
|
|
@@ -7615,7 +7618,7 @@ const Mu = { class: "cl:flex cl:flex-nowrap cl:flex-row cl:w-full" }, Vu = { cla
|
|
|
7615
7618
|
filterMethodTypes: ss,
|
|
7616
7619
|
futureQuickDates: dl,
|
|
7617
7620
|
gridColumnTypes: os,
|
|
7618
|
-
headerColour:
|
|
7621
|
+
headerColour: Mr,
|
|
7619
7622
|
inputTextTypes: Bn,
|
|
7620
7623
|
inputTypes: ai,
|
|
7621
7624
|
isComboBoxCreateRequest: oa,
|
|
@@ -7690,9 +7693,9 @@ export {
|
|
|
7690
7693
|
Su as clUiMenuItem,
|
|
7691
7694
|
It as clUiMenuSection,
|
|
7692
7695
|
rt as clUiModal,
|
|
7693
|
-
|
|
7696
|
+
Mi as clUiNavigation,
|
|
7694
7697
|
Ri as clUiNavigationGroup,
|
|
7695
|
-
|
|
7698
|
+
Ai as clUiNavigationIcon,
|
|
7696
7699
|
Zi as clUiNavigationItem,
|
|
7697
7700
|
Pi as clUiNavigationSection,
|
|
7698
7701
|
st as clUiNotification,
|
|
@@ -7712,13 +7715,13 @@ export {
|
|
|
7712
7715
|
ac as default,
|
|
7713
7716
|
Va as doesNumberStringContainPart,
|
|
7714
7717
|
ss as filterMethodTypes,
|
|
7715
|
-
|
|
7718
|
+
Ae as formatNumber,
|
|
7716
7719
|
yl as formatNumberAsDecimal,
|
|
7717
7720
|
Oe as formatNumberAsInteger,
|
|
7718
7721
|
dl as futureQuickDates,
|
|
7719
|
-
|
|
7722
|
+
Al as getMergedFormatOptions,
|
|
7720
7723
|
os as gridColumnTypes,
|
|
7721
|
-
|
|
7724
|
+
Mr as headerColour,
|
|
7722
7725
|
De as i18n,
|
|
7723
7726
|
Bn as inputTextTypes,
|
|
7724
7727
|
ai as inputTypes,
|