@citruslime/ui 3.0.0-beta.6 → 3.0.0-beta.7
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,12 +1,12 @@
|
|
|
1
1
|
import { Icon as Z } from "@iconify/vue";
|
|
2
|
-
import { defineComponent as K, ref as L, openBlock as m, createElementBlock as w, renderSlot as z, normalizeProps as me, guardReactiveProps as ge, Fragment as ee, createElementVNode as g, normalizeClass as B, createVNode as N, unref as b, Transition as Ee, withCtx as x, withDirectives as J, mergeProps as ie, vShow as te, createBlock as _, Teleport as kl, renderList as ue, toDisplayString as M, createCommentVNode as
|
|
2
|
+
import { defineComponent as K, ref as L, openBlock as m, createElementBlock as w, renderSlot as z, normalizeProps as me, guardReactiveProps as ge, Fragment as ee, createElementVNode as g, normalizeClass as B, createVNode as N, unref as b, Transition as Ee, withCtx as x, withDirectives as J, mergeProps as ie, vShow as te, createBlock as _, Teleport as kl, renderList as ue, toDisplayString as M, createCommentVNode as P, computed as A, mergeModels as Te, useModel as Ue, createSlots as Re, vModelDynamic as Kl, watch as ne, toRefs as vt, withKeys as he, onMounted as Ze, onUnmounted as sl, withModifiers as ae, nextTick as Pe, resolveComponent as cl, createTextVNode as pe, inject as $l, vModelCheckbox as gt, watchEffect as ht, toValue as Fl, toHandlers as bt, getCurrentInstance as yt, version as wt, useCssVars as Zl, vModelText as _l, pushScopeId as kt, popScopeId as $t, useAttrs as St, provide as Dl, normalizeStyle as Tt } from "vue";
|
|
3
3
|
import { generateStringId as Ct, highlightText as Ot, validateEmail as Et } from "@citruslime/utils";
|
|
4
4
|
import { unrefElement as Ft, tryOnScopeDispose as Dt, onClickOutside as Sl, useTimeoutFn as Ql, useMouseInElement as Nt, useFocusWithin as At, useMediaQuery as Vt, useElementBounding as qt, useDebounceFn as It, useWindowSize as Rt, useThrottle as Mt } from "@vueuse/core";
|
|
5
5
|
import { useI18n as de, createI18n as Lt } from "vue-i18n";
|
|
6
6
|
import { copy as ve } from "@citruslime/vue-utils";
|
|
7
7
|
import { DateTime as Y } from "luxon";
|
|
8
8
|
import { DatePicker as pl } from "v-calendar";
|
|
9
|
-
const jt = { class: "cl-overflow-hidden" },
|
|
9
|
+
const jt = { class: "cl-overflow-hidden" }, Ut = /* @__PURE__ */ K({
|
|
10
10
|
__name: "cl-ui-accordion",
|
|
11
11
|
props: {
|
|
12
12
|
exclusive: { type: Boolean, default: !1 }
|
|
@@ -30,7 +30,7 @@ const jt = { class: "cl-overflow-hidden" }, Pt = /* @__PURE__ */ K({
|
|
|
30
30
|
z(n.$slots, "default", me(ge({ isItemOpen: l, toggleItem: r })))
|
|
31
31
|
]));
|
|
32
32
|
}
|
|
33
|
-
}),
|
|
33
|
+
}), Pt = { class: "cl-absolute cl-left-5 cl-top-5" }, zt = { class: "cl-font-semibold cl-ml-10 cl-p-4 cl-select-none cl-text-grey-5" }, Bt = { class: "cl-overflow-hidden" }, xt = /* @__PURE__ */ K({
|
|
34
34
|
inheritAttrs: !1,
|
|
35
35
|
__name: "cl-ui-accordion-item",
|
|
36
36
|
props: {
|
|
@@ -51,7 +51,7 @@ const jt = { class: "cl-overflow-hidden" }, Pt = /* @__PURE__ */ K({
|
|
|
51
51
|
}]),
|
|
52
52
|
onClick: r
|
|
53
53
|
}, [
|
|
54
|
-
g("div",
|
|
54
|
+
g("div", Pt, [
|
|
55
55
|
N(b(Z), {
|
|
56
56
|
class: B(["cl-duration-300 cl-ease-in-out cl-text-grey-3 cl-transform-gpu cl-transition-transform", {
|
|
57
57
|
"cl-rotate-180": n.open
|
|
@@ -245,7 +245,7 @@ const ul = /* @__PURE__ */ ke(Jt, [["render", eo], ["__scopeId", "data-v-a21dc5d
|
|
|
245
245
|
}, [
|
|
246
246
|
e.$slots.image ? (m(), w("div", ao, [
|
|
247
247
|
z(e.$slots, "image")
|
|
248
|
-
])) :
|
|
248
|
+
])) : P("", !0),
|
|
249
249
|
e.$slots.title ? (m(), w("div", {
|
|
250
250
|
key: 1,
|
|
251
251
|
class: B(["cl-border-grey-2 cl-font-normal", {
|
|
@@ -256,7 +256,7 @@ const ul = /* @__PURE__ */ ke(Jt, [["render", eo], ["__scopeId", "data-v-a21dc5d
|
|
|
256
256
|
}])
|
|
257
257
|
}, [
|
|
258
258
|
z(e.$slots, "title")
|
|
259
|
-
], 2)) :
|
|
259
|
+
], 2)) : P("", !0),
|
|
260
260
|
g("div", {
|
|
261
261
|
class: B(["cl-border-grey-2", {
|
|
262
262
|
"cl-p-2": e.size === "small",
|
|
@@ -276,7 +276,7 @@ const ul = /* @__PURE__ */ ke(Jt, [["render", eo], ["__scopeId", "data-v-a21dc5d
|
|
|
276
276
|
}])
|
|
277
277
|
}, [
|
|
278
278
|
z(e.$slots, "footer")
|
|
279
|
-
], 2)) :
|
|
279
|
+
], 2)) : P("", !0)
|
|
280
280
|
], 2));
|
|
281
281
|
}
|
|
282
282
|
}), ro = [
|
|
@@ -305,8 +305,8 @@ const ul = /* @__PURE__ */ ke(Jt, [["render", eo], ["__scopeId", "data-v-a21dc5d
|
|
|
305
305
|
g("div", co, [
|
|
306
306
|
l.$slots.label ? (m(), w("span", uo, [
|
|
307
307
|
z(l.$slots, "label")
|
|
308
|
-
])) :
|
|
309
|
-
l.showRequiredAsterisk ? (m(), w("span", fo, "*")) :
|
|
308
|
+
])) : P("", !0),
|
|
309
|
+
l.showRequiredAsterisk ? (m(), w("span", fo, "*")) : P("", !0)
|
|
310
310
|
]),
|
|
311
311
|
g("div", po, [
|
|
312
312
|
z(l.$slots, "default")
|
|
@@ -319,7 +319,7 @@ const ul = /* @__PURE__ */ ke(Jt, [["render", eo], ["__scopeId", "data-v-a21dc5d
|
|
|
319
319
|
class: "cl-bg-danger-light cl-px-2 cl-rounded-md cl-text-center cl-text-danger-default cl-text-xs cl-w-full cl-whitespace-pre-line"
|
|
320
320
|
}, M(n), 1))), 128))
|
|
321
321
|
])
|
|
322
|
-
])) :
|
|
322
|
+
])) : P("", !0)
|
|
323
323
|
]));
|
|
324
324
|
}
|
|
325
325
|
}), go = ["type", "maxlength", "required", "disabled", "placeholder"], Ne = /* @__PURE__ */ K({
|
|
@@ -338,7 +338,7 @@ const ul = /* @__PURE__ */ ke(Jt, [["render", eo], ["__scopeId", "data-v-a21dc5d
|
|
|
338
338
|
}),
|
|
339
339
|
emits: /* @__PURE__ */ Te(["focus", "blur"], ["update:modelValue"]),
|
|
340
340
|
setup(o, { expose: e, emit: t }) {
|
|
341
|
-
const l =
|
|
341
|
+
const l = Ue(o, "modelValue"), r = t, n = L();
|
|
342
342
|
return e({
|
|
343
343
|
focus: () => {
|
|
344
344
|
var a;
|
|
@@ -644,9 +644,9 @@ var Il = {
|
|
|
644
644
|
return (e == null ? void 0 : e.key) === "Escape" || (e == null ? void 0 : e.key) === "Esc" || (e == null ? void 0 : e.keyCode) === 27;
|
|
645
645
|
}, Ge = function(e) {
|
|
646
646
|
return (e == null ? void 0 : e.key) === "Tab" || (e == null ? void 0 : e.keyCode) === 9;
|
|
647
|
-
}, Po = function(e) {
|
|
648
|
-
return Ge(e) && !e.shiftKey;
|
|
649
647
|
}, Uo = function(e) {
|
|
648
|
+
return Ge(e) && !e.shiftKey;
|
|
649
|
+
}, Po = function(e) {
|
|
650
650
|
return Ge(e) && e.shiftKey;
|
|
651
651
|
}, Rl = function(e) {
|
|
652
652
|
return setTimeout(e, 0);
|
|
@@ -666,8 +666,8 @@ var Il = {
|
|
|
666
666
|
returnFocusOnDeactivate: !0,
|
|
667
667
|
escapeDeactivates: !0,
|
|
668
668
|
delayInitialFocus: !0,
|
|
669
|
-
isKeyForward:
|
|
670
|
-
isKeyBackward:
|
|
669
|
+
isKeyForward: Uo,
|
|
670
|
+
isKeyBackward: Po
|
|
671
671
|
}, t), a = {
|
|
672
672
|
// containers given to createFocusTrap()
|
|
673
673
|
// @type {Array<HTMLElement>}
|
|
@@ -704,34 +704,34 @@ var Il = {
|
|
|
704
704
|
delayInitialFocusTimer: void 0,
|
|
705
705
|
// the most recent KeyboardEvent for the configured nav key (typically [SHIFT+]TAB), if any
|
|
706
706
|
recentNavEvent: void 0
|
|
707
|
-
}, d, u = function($,
|
|
708
|
-
return $ && $[
|
|
709
|
-
}, c = function($,
|
|
710
|
-
var
|
|
707
|
+
}, d, u = function($, C, q) {
|
|
708
|
+
return $ && $[C] !== void 0 ? $[C] : n[q || C];
|
|
709
|
+
}, c = function($, C) {
|
|
710
|
+
var q = typeof (C == null ? void 0 : C.composedPath) == "function" ? C.composedPath() : void 0;
|
|
711
711
|
return a.containerGroups.findIndex(function(E) {
|
|
712
712
|
var R = E.container, Q = E.tabbableNodes;
|
|
713
713
|
return R.contains($) || // fall back to explicit tabbable search which will take into consideration any
|
|
714
714
|
// web components if the `tabbableOptions.getShadowRoot` option was used for
|
|
715
715
|
// the trap, enabling shadow DOM support in tabbable (`Node.contains()` doesn't
|
|
716
716
|
// look inside web components even if open)
|
|
717
|
-
(
|
|
717
|
+
(q == null ? void 0 : q.includes(R)) || Q.find(function(G) {
|
|
718
718
|
return G === $;
|
|
719
719
|
});
|
|
720
720
|
});
|
|
721
721
|
}, i = function($) {
|
|
722
|
-
var
|
|
723
|
-
if (typeof
|
|
724
|
-
for (var
|
|
722
|
+
var C = n[$];
|
|
723
|
+
if (typeof C == "function") {
|
|
724
|
+
for (var q = arguments.length, E = new Array(q > 1 ? q - 1 : 0), R = 1; R < q; R++)
|
|
725
725
|
E[R - 1] = arguments[R];
|
|
726
|
-
|
|
726
|
+
C = C.apply(void 0, E);
|
|
727
727
|
}
|
|
728
|
-
if (
|
|
729
|
-
if (
|
|
730
|
-
return
|
|
728
|
+
if (C === !0 && (C = void 0), !C) {
|
|
729
|
+
if (C === void 0 || C === !1)
|
|
730
|
+
return C;
|
|
731
731
|
throw new Error("`".concat($, "` was specified but was not a node, or did not return a node"));
|
|
732
732
|
}
|
|
733
|
-
var Q =
|
|
734
|
-
if (typeof
|
|
733
|
+
var Q = C;
|
|
734
|
+
if (typeof C == "string" && (Q = l.querySelector(C), !Q))
|
|
735
735
|
throw new Error("`".concat($, "` as selector refers to no known node"));
|
|
736
736
|
return Q;
|
|
737
737
|
}, s = function() {
|
|
@@ -742,25 +742,25 @@ var Il = {
|
|
|
742
742
|
if (c(l.activeElement) >= 0)
|
|
743
743
|
$ = l.activeElement;
|
|
744
744
|
else {
|
|
745
|
-
var
|
|
746
|
-
$ =
|
|
745
|
+
var C = a.tabbableGroups[0], q = C && C.firstTabbableNode;
|
|
746
|
+
$ = q || i("fallbackFocus");
|
|
747
747
|
}
|
|
748
748
|
if (!$)
|
|
749
749
|
throw new Error("Your focus-trap needs to have at least one focusable element");
|
|
750
750
|
return $;
|
|
751
751
|
}, p = function() {
|
|
752
752
|
if (a.containerGroups = a.containers.map(function($) {
|
|
753
|
-
var
|
|
753
|
+
var C = Ao($, n.tabbableOptions), q = Vo($, n.tabbableOptions), E = C.length > 0 ? C[0] : void 0, R = C.length > 0 ? C[C.length - 1] : void 0, Q = q.find(function(ce) {
|
|
754
754
|
return Le(ce);
|
|
755
|
-
}), G =
|
|
755
|
+
}), G = q.slice().reverse().find(function(ce) {
|
|
756
756
|
return Le(ce);
|
|
757
|
-
}), se = !!
|
|
757
|
+
}), se = !!C.find(function(ce) {
|
|
758
758
|
return Ae(ce) > 0;
|
|
759
759
|
});
|
|
760
760
|
return {
|
|
761
761
|
container: $,
|
|
762
|
-
tabbableNodes:
|
|
763
|
-
focusableNodes:
|
|
762
|
+
tabbableNodes: C,
|
|
763
|
+
focusableNodes: q,
|
|
764
764
|
/** True if at least one node with positive `tabindex` was found in this container. */
|
|
765
765
|
posTabIndexesFound: se,
|
|
766
766
|
/** First tabbable node in container, __tabindex__ order; `undefined` if none. */
|
|
@@ -787,12 +787,12 @@ var Il = {
|
|
|
787
787
|
* @returns {HTMLElement|undefined} The next tabbable node, if any.
|
|
788
788
|
*/
|
|
789
789
|
nextTabbableNode: function(Ce) {
|
|
790
|
-
var S = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0,
|
|
791
|
-
return
|
|
790
|
+
var S = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, U = C.indexOf(Ce);
|
|
791
|
+
return U < 0 ? S ? q.slice(q.indexOf(Ce) + 1).find(function(W) {
|
|
792
792
|
return Le(W);
|
|
793
|
-
}) :
|
|
793
|
+
}) : q.slice(0, q.indexOf(Ce)).reverse().find(function(W) {
|
|
794
794
|
return Le(W);
|
|
795
|
-
}) :
|
|
795
|
+
}) : C[U + (S ? 1 : -1)];
|
|
796
796
|
}
|
|
797
797
|
};
|
|
798
798
|
}), a.tabbableGroups = a.containerGroups.filter(function($) {
|
|
@@ -804,10 +804,10 @@ var Il = {
|
|
|
804
804
|
}) && a.containerGroups.length > 1)
|
|
805
805
|
throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.");
|
|
806
806
|
}, y = function j($) {
|
|
807
|
-
var
|
|
808
|
-
if (
|
|
809
|
-
return
|
|
810
|
-
},
|
|
807
|
+
var C = $.activeElement;
|
|
808
|
+
if (C)
|
|
809
|
+
return C.shadowRoot && C.shadowRoot.activeElement !== null ? j(C.shadowRoot) : C;
|
|
810
|
+
}, O = function j($) {
|
|
811
811
|
if ($ !== !1 && $ !== y(document)) {
|
|
812
812
|
if (!$ || !$.focus) {
|
|
813
813
|
j(s());
|
|
@@ -818,43 +818,43 @@ var Il = {
|
|
|
818
818
|
}), a.mostRecentlyFocusedNode = $, Lo($) && $.select();
|
|
819
819
|
}
|
|
820
820
|
}, D = function($) {
|
|
821
|
-
var
|
|
822
|
-
return
|
|
823
|
-
},
|
|
824
|
-
var
|
|
825
|
-
|
|
821
|
+
var C = i("setReturnFocus", $);
|
|
822
|
+
return C || (C === !1 ? !1 : $);
|
|
823
|
+
}, T = function($) {
|
|
824
|
+
var C = $.target, q = $.event, E = $.isBackward, R = E === void 0 ? !1 : E;
|
|
825
|
+
C = C || Ye(q), p();
|
|
826
826
|
var Q = null;
|
|
827
827
|
if (a.tabbableGroups.length > 0) {
|
|
828
|
-
var G = c(
|
|
828
|
+
var G = c(C, q), se = G >= 0 ? a.containerGroups[G] : void 0;
|
|
829
829
|
if (G < 0)
|
|
830
830
|
R ? Q = a.tabbableGroups[a.tabbableGroups.length - 1].lastTabbableNode : Q = a.tabbableGroups[0].firstTabbableNode;
|
|
831
831
|
else if (R) {
|
|
832
832
|
var ce = Ml(a.tabbableGroups, function(ze) {
|
|
833
833
|
var Me = ze.firstTabbableNode;
|
|
834
|
-
return
|
|
834
|
+
return C === Me;
|
|
835
835
|
});
|
|
836
|
-
if (ce < 0 && (se.container ===
|
|
836
|
+
if (ce < 0 && (se.container === C || ml(C, n.tabbableOptions) && !Le(C, n.tabbableOptions) && !se.nextTabbableNode(C, !1)) && (ce = G), ce >= 0) {
|
|
837
837
|
var Ce = ce === 0 ? a.tabbableGroups.length - 1 : ce - 1, S = a.tabbableGroups[Ce];
|
|
838
|
-
Q = Ae(
|
|
838
|
+
Q = Ae(C) >= 0 ? S.lastTabbableNode : S.lastDomTabbableNode;
|
|
839
839
|
} else
|
|
840
|
-
Ge(
|
|
840
|
+
Ge(q) || (Q = se.nextTabbableNode(C, !1));
|
|
841
841
|
} else {
|
|
842
|
-
var
|
|
842
|
+
var U = Ml(a.tabbableGroups, function(ze) {
|
|
843
843
|
var Me = ze.lastTabbableNode;
|
|
844
|
-
return
|
|
844
|
+
return C === Me;
|
|
845
845
|
});
|
|
846
|
-
if (
|
|
847
|
-
var W =
|
|
848
|
-
Q = Ae(
|
|
846
|
+
if (U < 0 && (se.container === C || ml(C, n.tabbableOptions) && !Le(C, n.tabbableOptions) && !se.nextTabbableNode(C)) && (U = G), U >= 0) {
|
|
847
|
+
var W = U === a.tabbableGroups.length - 1 ? 0 : U + 1, be = a.tabbableGroups[W];
|
|
848
|
+
Q = Ae(C) >= 0 ? be.firstTabbableNode : be.firstDomTabbableNode;
|
|
849
849
|
} else
|
|
850
|
-
Ge(
|
|
850
|
+
Ge(q) || (Q = se.nextTabbableNode(C));
|
|
851
851
|
}
|
|
852
852
|
} else
|
|
853
853
|
Q = i("fallbackFocus");
|
|
854
854
|
return Q;
|
|
855
855
|
}, F = function($) {
|
|
856
|
-
var
|
|
857
|
-
if (!(c(
|
|
856
|
+
var C = Ye($);
|
|
857
|
+
if (!(c(C, $) >= 0)) {
|
|
858
858
|
if (Be(n.clickOutsideDeactivates, $)) {
|
|
859
859
|
d.deactivate({
|
|
860
860
|
// NOTE: by setting `returnFocus: false`, deactivate() will do nothing,
|
|
@@ -869,10 +869,10 @@ var Il = {
|
|
|
869
869
|
}
|
|
870
870
|
Be(n.allowOutsideClick, $) || $.preventDefault();
|
|
871
871
|
}
|
|
872
|
-
},
|
|
873
|
-
var
|
|
874
|
-
if (
|
|
875
|
-
|
|
872
|
+
}, V = function($) {
|
|
873
|
+
var C = Ye($), q = c(C, $) >= 0;
|
|
874
|
+
if (q || C instanceof Document)
|
|
875
|
+
q && (a.mostRecentlyFocusedNode = C);
|
|
876
876
|
else {
|
|
877
877
|
$.stopImmediatePropagation();
|
|
878
878
|
var E, R = !0;
|
|
@@ -893,22 +893,22 @@ var Il = {
|
|
|
893
893
|
}) || (R = !1);
|
|
894
894
|
else
|
|
895
895
|
R = !1;
|
|
896
|
-
R && (E =
|
|
896
|
+
R && (E = T({
|
|
897
897
|
// move FROM the MRU node, not event-related node (which will be the node that is
|
|
898
898
|
// outside the trap causing the focus escape we're trying to fix)
|
|
899
899
|
target: a.mostRecentlyFocusedNode,
|
|
900
900
|
isBackward: n.isKeyBackward(a.recentNavEvent)
|
|
901
|
-
})),
|
|
901
|
+
})), O(E || a.mostRecentlyFocusedNode || s());
|
|
902
902
|
}
|
|
903
903
|
a.recentNavEvent = void 0;
|
|
904
904
|
}, H = function($) {
|
|
905
|
-
var
|
|
905
|
+
var C = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
906
906
|
a.recentNavEvent = $;
|
|
907
|
-
var
|
|
907
|
+
var q = T({
|
|
908
908
|
event: $,
|
|
909
|
-
isBackward:
|
|
909
|
+
isBackward: C
|
|
910
910
|
});
|
|
911
|
-
|
|
911
|
+
q && (Ge($) && $.preventDefault(), O(q));
|
|
912
912
|
}, X = function($) {
|
|
913
913
|
if (jo($) && Be(n.escapeDeactivates, $) !== !1) {
|
|
914
914
|
$.preventDefault(), d.deactivate();
|
|
@@ -916,13 +916,13 @@ var Il = {
|
|
|
916
916
|
}
|
|
917
917
|
(n.isKeyForward($) || n.isKeyBackward($)) && H($, n.isKeyBackward($));
|
|
918
918
|
}, oe = function($) {
|
|
919
|
-
var
|
|
920
|
-
c(
|
|
919
|
+
var C = Ye($);
|
|
920
|
+
c(C, $) >= 0 || Be(n.clickOutsideDeactivates, $) || Be(n.allowOutsideClick, $) || ($.preventDefault(), $.stopImmediatePropagation());
|
|
921
921
|
}, I = function() {
|
|
922
922
|
if (a.active)
|
|
923
923
|
return Il.activateTrap(r, d), a.delayInitialFocusTimer = n.delayInitialFocus ? Rl(function() {
|
|
924
|
-
|
|
925
|
-
}) :
|
|
924
|
+
O(s());
|
|
925
|
+
}) : O(s()), l.addEventListener("focusin", V, !0), l.addEventListener("mousedown", F, {
|
|
926
926
|
capture: !0,
|
|
927
927
|
passive: !1
|
|
928
928
|
}), l.addEventListener("touchstart", F, {
|
|
@@ -937,15 +937,15 @@ var Il = {
|
|
|
937
937
|
}), d;
|
|
938
938
|
}, h = function() {
|
|
939
939
|
if (a.active)
|
|
940
|
-
return l.removeEventListener("focusin",
|
|
940
|
+
return l.removeEventListener("focusin", V, !0), l.removeEventListener("mousedown", F, !0), l.removeEventListener("touchstart", F, !0), l.removeEventListener("click", oe, !0), l.removeEventListener("keydown", X, !0), d;
|
|
941
941
|
}, f = function($) {
|
|
942
|
-
var
|
|
943
|
-
var E = Array.from(
|
|
942
|
+
var C = $.some(function(q) {
|
|
943
|
+
var E = Array.from(q.removedNodes);
|
|
944
944
|
return E.some(function(R) {
|
|
945
945
|
return R === a.mostRecentlyFocusedNode;
|
|
946
946
|
});
|
|
947
947
|
});
|
|
948
|
-
|
|
948
|
+
C && O(s());
|
|
949
949
|
}, v = typeof window < "u" && "MutationObserver" in window ? new MutationObserver(f) : void 0, k = function() {
|
|
950
950
|
v && (v.disconnect(), a.active && !a.paused && a.containers.map(function($) {
|
|
951
951
|
v.observe($, {
|
|
@@ -964,27 +964,27 @@ var Il = {
|
|
|
964
964
|
activate: function($) {
|
|
965
965
|
if (a.active)
|
|
966
966
|
return this;
|
|
967
|
-
var
|
|
968
|
-
E || p(), a.active = !0, a.paused = !1, a.nodeFocusedBeforeActivation = l.activeElement,
|
|
967
|
+
var C = u($, "onActivate"), q = u($, "onPostActivate"), E = u($, "checkCanFocusTrap");
|
|
968
|
+
E || p(), a.active = !0, a.paused = !1, a.nodeFocusedBeforeActivation = l.activeElement, C == null || C();
|
|
969
969
|
var R = function() {
|
|
970
|
-
E && p(), I(), k(),
|
|
970
|
+
E && p(), I(), k(), q == null || q();
|
|
971
971
|
};
|
|
972
972
|
return E ? (E(a.containers.concat()).then(R, R), this) : (R(), this);
|
|
973
973
|
},
|
|
974
974
|
deactivate: function($) {
|
|
975
975
|
if (!a.active)
|
|
976
976
|
return this;
|
|
977
|
-
var
|
|
977
|
+
var C = ql({
|
|
978
978
|
onDeactivate: n.onDeactivate,
|
|
979
979
|
onPostDeactivate: n.onPostDeactivate,
|
|
980
980
|
checkCanReturnFocus: n.checkCanReturnFocus
|
|
981
981
|
}, $);
|
|
982
982
|
clearTimeout(a.delayInitialFocusTimer), a.delayInitialFocusTimer = void 0, h(), a.active = !1, a.paused = !1, k(), Il.deactivateTrap(r, d);
|
|
983
|
-
var
|
|
984
|
-
|
|
983
|
+
var q = u(C, "onDeactivate"), E = u(C, "onPostDeactivate"), R = u(C, "checkCanReturnFocus"), Q = u(C, "returnFocus", "returnFocusOnDeactivate");
|
|
984
|
+
q == null || q();
|
|
985
985
|
var G = function() {
|
|
986
986
|
Rl(function() {
|
|
987
|
-
Q &&
|
|
987
|
+
Q && O(D(a.nodeFocusedBeforeActivation)), E == null || E();
|
|
988
988
|
});
|
|
989
989
|
};
|
|
990
990
|
return Q && R ? (R(D(a.nodeFocusedBeforeActivation)).then(G, G), this) : (G(), this);
|
|
@@ -992,19 +992,19 @@ var Il = {
|
|
|
992
992
|
pause: function($) {
|
|
993
993
|
if (a.paused || !a.active)
|
|
994
994
|
return this;
|
|
995
|
-
var
|
|
996
|
-
return a.paused = !0,
|
|
995
|
+
var C = u($, "onPause"), q = u($, "onPostPause");
|
|
996
|
+
return a.paused = !0, C == null || C(), h(), k(), q == null || q(), this;
|
|
997
997
|
},
|
|
998
998
|
unpause: function($) {
|
|
999
999
|
if (!a.paused || !a.active)
|
|
1000
1000
|
return this;
|
|
1001
|
-
var
|
|
1002
|
-
return a.paused = !1,
|
|
1001
|
+
var C = u($, "onUnpause"), q = u($, "onPostUnpause");
|
|
1002
|
+
return a.paused = !1, C == null || C(), p(), I(), k(), q == null || q(), this;
|
|
1003
1003
|
},
|
|
1004
1004
|
updateContainerElements: function($) {
|
|
1005
|
-
var
|
|
1006
|
-
return a.containers =
|
|
1007
|
-
return typeof
|
|
1005
|
+
var C = [].concat($).filter(Boolean);
|
|
1006
|
+
return a.containers = C.map(function(q) {
|
|
1007
|
+
return typeof q == "string" ? l.querySelector(q) : q;
|
|
1008
1008
|
}), a.active && p(), k(), this;
|
|
1009
1009
|
}
|
|
1010
1010
|
}, d.updateContainerElements(e), d;
|
|
@@ -1113,7 +1113,7 @@ const Ho = /* @__PURE__ */ g("div", { tabindex: "0" }, null, -1), Go = {
|
|
|
1113
1113
|
}])
|
|
1114
1114
|
}, [
|
|
1115
1115
|
z(c.$slots, "title"),
|
|
1116
|
-
c.headerColour === "white" ? (m(), w("hr", Go)) :
|
|
1116
|
+
c.headerColour === "white" ? (m(), w("hr", Go)) : P("", !0)
|
|
1117
1117
|
], 2),
|
|
1118
1118
|
g("div", Wo, [
|
|
1119
1119
|
z(c.$slots, "default", me(ge({ close: d })))
|
|
@@ -1142,7 +1142,7 @@ const Ho = /* @__PURE__ */ g("div", { tabindex: "0" }, null, -1), Go = {
|
|
|
1142
1142
|
emits: ["clear-object"],
|
|
1143
1143
|
setup(o) {
|
|
1144
1144
|
return (e, t) => (m(), w("div", Ko, [
|
|
1145
|
-
e.additionalText !== "" ? (m(), w("div", Zo, M(e.additionalText), 1)) :
|
|
1145
|
+
e.additionalText !== "" ? (m(), w("div", Zo, M(e.additionalText), 1)) : P("", !0),
|
|
1146
1146
|
g("div", {
|
|
1147
1147
|
class: B({
|
|
1148
1148
|
"cl-w-1/2": e.additionalText !== "",
|
|
@@ -1202,10 +1202,10 @@ const Ho = /* @__PURE__ */ g("div", { tabindex: "0" }, null, -1), Go = {
|
|
|
1202
1202
|
"cl-bg-primary-default cl-text-black cl-opacity-90": a.value && i.isCreateNewOption
|
|
1203
1203
|
}]),
|
|
1204
1204
|
onMousedown: d,
|
|
1205
|
-
onMousemove: s[0] || (s[0] = (
|
|
1206
|
-
onMouseleave: s[1] || (s[1] = (
|
|
1205
|
+
onMousemove: s[0] || (s[0] = (O) => u(!0)),
|
|
1206
|
+
onMouseleave: s[1] || (s[1] = (O) => u(!1))
|
|
1207
1207
|
}, [
|
|
1208
|
-
i.option !== null && ((p = i.option) == null ? void 0 : p.parentId) !== 0 && ((y = i.option) == null ? void 0 : y.parentId) !== void 0 ? (m(), w("div", _o, M(n.value), 1)) :
|
|
1208
|
+
i.option !== null && ((p = i.option) == null ? void 0 : p.parentId) !== 0 && ((y = i.option) == null ? void 0 : y.parentId) !== void 0 ? (m(), w("div", _o, M(n.value), 1)) : P("", !0),
|
|
1209
1209
|
g("div", {
|
|
1210
1210
|
class: B({
|
|
1211
1211
|
"cl-w-1/2": n.value !== "",
|
|
@@ -1255,13 +1255,13 @@ const Ho = /* @__PURE__ */ g("div", { tabindex: "0" }, null, -1), Go = {
|
|
|
1255
1255
|
function y() {
|
|
1256
1256
|
l("hide-dropdown");
|
|
1257
1257
|
}
|
|
1258
|
-
function
|
|
1259
|
-
d.value < t.results.length - 1 ? (d.value === -2 && n.value === "" && d.value++, d.value++) : d.value = I,
|
|
1258
|
+
function O(I) {
|
|
1259
|
+
d.value < t.results.length - 1 ? (d.value === -2 && n.value === "" && d.value++, d.value++) : d.value = I, V();
|
|
1260
1260
|
}
|
|
1261
1261
|
function D(I) {
|
|
1262
|
-
d.value > I ? d.value-- : d.value = t.results.length - 1,
|
|
1262
|
+
d.value > I ? d.value-- : d.value = t.results.length - 1, V();
|
|
1263
1263
|
}
|
|
1264
|
-
function
|
|
1264
|
+
function T() {
|
|
1265
1265
|
d.value >= 0 && t.results !== void 0 ? s(t.results[d.value].id) : d.value === -1 && p();
|
|
1266
1266
|
}
|
|
1267
1267
|
function F(I) {
|
|
@@ -1273,7 +1273,7 @@ const Ho = /* @__PURE__ */ g("div", { tabindex: "0" }, null, -1), Go = {
|
|
|
1273
1273
|
f >= 0 && (h[f].focus(), y());
|
|
1274
1274
|
}
|
|
1275
1275
|
}
|
|
1276
|
-
function
|
|
1276
|
+
function V() {
|
|
1277
1277
|
var I;
|
|
1278
1278
|
t.results && t.results.length > 1 && ((I = c.value) == null || I.scrollTo(0, (d.value + 1) * 34 - 34 * 2));
|
|
1279
1279
|
}
|
|
@@ -1285,7 +1285,7 @@ const Ho = /* @__PURE__ */ g("div", { tabindex: "0" }, null, -1), Go = {
|
|
|
1285
1285
|
d.value = I;
|
|
1286
1286
|
}
|
|
1287
1287
|
function oe() {
|
|
1288
|
-
t.isVisible === !0 && (n.value = "", i(),
|
|
1288
|
+
t.isVisible === !0 && (n.value = "", i(), Pe(() => {
|
|
1289
1289
|
var I, h;
|
|
1290
1290
|
return (h = (I = c.value) == null ? void 0 : I.querySelector("input")) == null ? void 0 : h.focus();
|
|
1291
1291
|
}));
|
|
@@ -1306,13 +1306,13 @@ const Ho = /* @__PURE__ */ g("div", { tabindex: "0" }, null, -1), Go = {
|
|
|
1306
1306
|
}]),
|
|
1307
1307
|
onKeydown: [
|
|
1308
1308
|
h[2] || (h[2] = he(ae((v) => D(u.value), ["prevent", "stop"]), ["up"])),
|
|
1309
|
-
h[3] || (h[3] = he(ae((v) =>
|
|
1309
|
+
h[3] || (h[3] = he(ae((v) => O(u.value), ["prevent", "stop"]), ["down"]))
|
|
1310
1310
|
],
|
|
1311
|
-
onKeyup: he(ae(
|
|
1311
|
+
onKeyup: he(ae(T, ["prevent", "stop"]), ["enter"])
|
|
1312
1312
|
}, [
|
|
1313
1313
|
I.loading ? (m(), w("div", Jo, [
|
|
1314
1314
|
N(ul)
|
|
1315
|
-
])) :
|
|
1315
|
+
])) : P("", !0),
|
|
1316
1316
|
g("div", Xo, [
|
|
1317
1317
|
g("div", ea, [
|
|
1318
1318
|
N(Ne, {
|
|
@@ -1336,22 +1336,22 @@ const Ho = /* @__PURE__ */ g("div", { tabindex: "0" }, null, -1), Go = {
|
|
|
1336
1336
|
"show-clear-button": I.canClearSelectedObject,
|
|
1337
1337
|
text: I.currentObjectName,
|
|
1338
1338
|
onClearObject: h[1] || (h[1] = (v) => I.$emit("clear-object"))
|
|
1339
|
-
}, null, 8, ["show-clear-button", "text"])) :
|
|
1339
|
+
}, null, 8, ["show-clear-button", "text"])) : P("", !0),
|
|
1340
1340
|
I.objectParentType !== "" && I.results !== void 0 && I.results.length > 0 && I.errorMessage === "" ? (m(), _(Je, {
|
|
1341
1341
|
key: 2,
|
|
1342
1342
|
text: I.objectType,
|
|
1343
1343
|
"additional-text": I.objectParentType,
|
|
1344
1344
|
class: "cl-bg-grey-2 cl-mt-1"
|
|
1345
|
-
}, null, 8, ["text", "additional-text"])) :
|
|
1345
|
+
}, null, 8, ["text", "additional-text"])) : P("", !0),
|
|
1346
1346
|
I.results !== null && ((f = I.results) == null ? void 0 : f.length) === 0 && n.value.trim() !== "" && I.canCreateNewObject === !1 && I.errorMessage === "" ? (m(), _(Je, {
|
|
1347
1347
|
key: 3,
|
|
1348
1348
|
text: b(r)("comboBox.noResults", { value: n.value })
|
|
1349
|
-
}, null, 8, ["text"])) :
|
|
1349
|
+
}, null, 8, ["text"])) : P("", !0),
|
|
1350
1350
|
I.errorMessage !== "" ? (m(), _(Je, {
|
|
1351
1351
|
key: 4,
|
|
1352
1352
|
class: "!cl-bg-danger-light cl-border-danger-light cl-rounded cl-text-danger-dark",
|
|
1353
1353
|
text: b(r)("comboBox.errorMessage", { error: I.errorMessage })
|
|
1354
|
-
}, null, 8, ["text"])) :
|
|
1354
|
+
}, null, 8, ["text"])) : P("", !0),
|
|
1355
1355
|
a.value ? (m(), _(Ll, {
|
|
1356
1356
|
key: 5,
|
|
1357
1357
|
"is-create-new-option": !0,
|
|
@@ -1361,7 +1361,7 @@ const Ho = /* @__PURE__ */ g("div", { tabindex: "0" }, null, -1), Go = {
|
|
|
1361
1361
|
class: "cl-px-2",
|
|
1362
1362
|
onCreateObject: p,
|
|
1363
1363
|
onOptionHighlighted: X
|
|
1364
|
-
}, null, 8, ["text", "selected-index"])) :
|
|
1364
|
+
}, null, 8, ["text", "selected-index"])) : P("", !0),
|
|
1365
1365
|
I.errorMessage === "" && I.results !== null ? (m(), w("div", ta, [
|
|
1366
1366
|
(m(!0), w(ee, null, ue(I.results, (v, k) => (m(), _(Ll, {
|
|
1367
1367
|
key: k,
|
|
@@ -1372,7 +1372,7 @@ const Ho = /* @__PURE__ */ g("div", { tabindex: "0" }, null, -1), Go = {
|
|
|
1372
1372
|
onSelectObject: s,
|
|
1373
1373
|
onOptionHighlighted: X
|
|
1374
1374
|
}, null, 8, ["option", "index", "selected-index"]))), 128))
|
|
1375
|
-
])) :
|
|
1375
|
+
])) : P("", !0)
|
|
1376
1376
|
], 42, Yo);
|
|
1377
1377
|
};
|
|
1378
1378
|
}
|
|
@@ -1401,13 +1401,13 @@ const Ho = /* @__PURE__ */ g("div", { tabindex: "0" }, null, -1), Go = {
|
|
|
1401
1401
|
const l = o, r = t, n = A(() => l.placeholderText ? l.placeholderText : d("comboBox.emptyHintText", { object: l.objectType })), a = A(() => l.searchHint ? l.searchHint : d("comboBox.searchHint", { object: l.objectType })), { t: d } = de(), u = L(!1), c = A({
|
|
1402
1402
|
get: () => l.currentObject,
|
|
1403
1403
|
set: (E) => r("update:current-object", E)
|
|
1404
|
-
}), i = L(null), s = A(() => $()), p = L(""), y = L(""),
|
|
1404
|
+
}), i = L(null), s = A(() => $()), p = L(""), y = L(""), O = L(), D = L(!0), T = L(!1);
|
|
1405
1405
|
function F(E) {
|
|
1406
1406
|
var Q;
|
|
1407
|
-
const R = ((Q =
|
|
1408
|
-
|
|
1407
|
+
const R = ((Q = q.value) == null ? void 0 : Q.getBoundingClientRect().top) || 0;
|
|
1408
|
+
T.value = window.innerHeight - R < 280, l.disabled || (typeof E < "u" ? u.value = E : u.value = !u.value);
|
|
1409
1409
|
}
|
|
1410
|
-
function
|
|
1410
|
+
function V(E) {
|
|
1411
1411
|
p.value = E, r("search", E);
|
|
1412
1412
|
}
|
|
1413
1413
|
function H(E) {
|
|
@@ -1433,16 +1433,16 @@ const Ho = /* @__PURE__ */ g("div", { tabindex: "0" }, null, -1), Go = {
|
|
|
1433
1433
|
}
|
|
1434
1434
|
function h() {
|
|
1435
1435
|
var E;
|
|
1436
|
-
|
|
1436
|
+
O.value = {
|
|
1437
1437
|
name: p.value,
|
|
1438
1438
|
parentId: ((E = i.value) == null ? void 0 : E.id) ?? 0
|
|
1439
|
-
}, r("create-object",
|
|
1439
|
+
}, r("create-object", O.value);
|
|
1440
1440
|
}
|
|
1441
1441
|
function f() {
|
|
1442
|
-
|
|
1442
|
+
O.value = {
|
|
1443
1443
|
name: y.value,
|
|
1444
1444
|
parentId: 0
|
|
1445
|
-
}, r("create-parent-object",
|
|
1445
|
+
}, r("create-parent-object", O.value);
|
|
1446
1446
|
}
|
|
1447
1447
|
function v() {
|
|
1448
1448
|
var E, R;
|
|
@@ -1484,13 +1484,13 @@ const Ho = /* @__PURE__ */ g("div", { tabindex: "0" }, null, -1), Go = {
|
|
|
1484
1484
|
let E = "";
|
|
1485
1485
|
return c.value && (c.value.parentName ? E = c.value.parentName + "; " + c.value.name : E = c.value.name), E;
|
|
1486
1486
|
}
|
|
1487
|
-
function
|
|
1487
|
+
function C() {
|
|
1488
1488
|
let E = !0;
|
|
1489
1489
|
p.value === "" && (E = !1), l.objectParentType !== "" && i.value === null && (E = !1), D.value = E;
|
|
1490
1490
|
}
|
|
1491
|
-
ne(() => l.objectCreatedResponse, () => v()), ne(() => l.parentObjectCreatedResponse, () => k()), ne(() => p.value, () =>
|
|
1492
|
-
const
|
|
1493
|
-
return Sl(
|
|
1491
|
+
ne(() => l.objectCreatedResponse, () => v()), ne(() => l.parentObjectCreatedResponse, () => k()), ne(() => p.value, () => C()), ne(() => i.value, () => C());
|
|
1492
|
+
const q = L();
|
|
1493
|
+
return Sl(q, () => u.value ? F(!1) : ""), e({
|
|
1494
1494
|
focus() {
|
|
1495
1495
|
F(), r("focus");
|
|
1496
1496
|
}
|
|
@@ -1498,7 +1498,7 @@ const Ho = /* @__PURE__ */ g("div", { tabindex: "0" }, null, -1), Go = {
|
|
|
1498
1498
|
const Q = cl("cl-ui-combo-box", !0);
|
|
1499
1499
|
return m(), w("div", {
|
|
1500
1500
|
ref_key: "outsideRef",
|
|
1501
|
-
ref:
|
|
1501
|
+
ref: q,
|
|
1502
1502
|
class: "cl-relative"
|
|
1503
1503
|
}, [
|
|
1504
1504
|
g("div", aa, [
|
|
@@ -1577,13 +1577,13 @@ const Ho = /* @__PURE__ */ g("div", { tabindex: "0" }, null, -1), Go = {
|
|
|
1577
1577
|
"current-object-name": s.value,
|
|
1578
1578
|
"is-visible": u.value,
|
|
1579
1579
|
class: B({
|
|
1580
|
-
"cl-bottom-full":
|
|
1580
|
+
"cl-bottom-full": T.value
|
|
1581
1581
|
}),
|
|
1582
1582
|
"search-hint": a.value,
|
|
1583
1583
|
onCreateObject: () => E.objectParentType === "" && E.skipObjectCreationModal === !0 ? h() : G(),
|
|
1584
1584
|
onSelectObject: oe,
|
|
1585
1585
|
onClearObject: X,
|
|
1586
|
-
onSearch:
|
|
1586
|
+
onSearch: V,
|
|
1587
1587
|
onHideDropdown: R[4] || (R[4] = (se) => F(!1))
|
|
1588
1588
|
}, 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"]), [
|
|
1589
1589
|
[te, u.value]
|
|
@@ -1633,7 +1633,7 @@ const Ho = /* @__PURE__ */ g("div", { tabindex: "0" }, null, -1), Go = {
|
|
|
1633
1633
|
"error-message": E.errorMessage,
|
|
1634
1634
|
onSearch: H,
|
|
1635
1635
|
onCreateObject: f
|
|
1636
|
-
}, null, 8, ["current-object", "results", "loading", "object-type", "object-created-response", "can-create-new-object", "can-clear-selected-object", "error-message"])) :
|
|
1636
|
+
}, null, 8, ["current-object", "results", "loading", "object-type", "object-created-response", "can-create-new-object", "can-clear-selected-object", "error-message"])) : P("", !0),
|
|
1637
1637
|
N(Ne, {
|
|
1638
1638
|
modelValue: p.value,
|
|
1639
1639
|
"onUpdate:modelValue": R[6] || (R[6] = (G) => p.value = G),
|
|
@@ -1669,7 +1669,7 @@ function $a(o, e) {
|
|
|
1669
1669
|
return m(), w("div", ha, [
|
|
1670
1670
|
o.$slots.default ? (m(), w("div", ba, [
|
|
1671
1671
|
z(o.$slots, "default")
|
|
1672
|
-
])) :
|
|
1672
|
+
])) : P("", !0),
|
|
1673
1673
|
o.$slots.left || o.$slots.right ? (m(), w("div", ya, [
|
|
1674
1674
|
g("span", wa, [
|
|
1675
1675
|
z(o.$slots, "left")
|
|
@@ -1677,7 +1677,7 @@ function $a(o, e) {
|
|
|
1677
1677
|
g("span", ka, [
|
|
1678
1678
|
z(o.$slots, "right")
|
|
1679
1679
|
])
|
|
1680
|
-
])) :
|
|
1680
|
+
])) : P("", !0)
|
|
1681
1681
|
]);
|
|
1682
1682
|
}
|
|
1683
1683
|
const Sa = /* @__PURE__ */ ke(ga, [["render", $a]]), rt = Symbol();
|
|
@@ -1738,8 +1738,8 @@ const Ca = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Oa = { class: "cl-gap-1
|
|
|
1738
1738
|
], 64))
|
|
1739
1739
|
]),
|
|
1740
1740
|
_: 1
|
|
1741
|
-
}, 8, ["disabled"])) :
|
|
1742
|
-
n.options.hideViewManager ?
|
|
1741
|
+
}, 8, ["disabled"])) : P("", !0),
|
|
1742
|
+
n.options.hideViewManager ? P("", !0) : (m(), w("div", Da, [
|
|
1743
1743
|
z(n.$slots, "view-manager")
|
|
1744
1744
|
])),
|
|
1745
1745
|
b(jl)(n.columns) || b(Ta)(n.columns) ? (m(), w(ee, { key: 2 }, [
|
|
@@ -1771,8 +1771,8 @@ const Ca = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Oa = { class: "cl-gap-1
|
|
|
1771
1771
|
pe(M(b(t)("grid.clearFilters")), 1)
|
|
1772
1772
|
]),
|
|
1773
1773
|
_: 1
|
|
1774
|
-
}, 8, ["id", "disabled", "class"])) :
|
|
1775
|
-
], 64)) :
|
|
1774
|
+
}, 8, ["id", "disabled", "class"])) : P("", !0)
|
|
1775
|
+
], 64)) : P("", !0)
|
|
1776
1776
|
])
|
|
1777
1777
|
], 64));
|
|
1778
1778
|
}
|
|
@@ -1789,7 +1789,7 @@ const Ca = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Oa = { class: "cl-gap-1
|
|
|
1789
1789
|
}),
|
|
1790
1790
|
emits: /* @__PURE__ */ Te(["focus", "blur"], ["update:modelValue"]),
|
|
1791
1791
|
setup(o, { expose: e, emit: t }) {
|
|
1792
|
-
const l =
|
|
1792
|
+
const l = Ue(o, "modelValue"), r = t, n = L();
|
|
1793
1793
|
return e({
|
|
1794
1794
|
focus: () => {
|
|
1795
1795
|
var a;
|
|
@@ -1844,7 +1844,7 @@ const Ia = {
|
|
|
1844
1844
|
}, Ma = {
|
|
1845
1845
|
key: 5,
|
|
1846
1846
|
class: "cl-inline-block cl-whitespace-nowrap"
|
|
1847
|
-
}, La = ["innerHTML"],
|
|
1847
|
+
}, La = ["innerHTML"], Ul = /* @__PURE__ */ K({
|
|
1848
1848
|
__name: "cl-ui-grid-cell-value",
|
|
1849
1849
|
props: {
|
|
1850
1850
|
data: {},
|
|
@@ -1909,10 +1909,10 @@ const Ia = {
|
|
|
1909
1909
|
g("span", {
|
|
1910
1910
|
innerHTML: d()
|
|
1911
1911
|
}, null, 8, La)
|
|
1912
|
-
])) :
|
|
1912
|
+
])) : P("", !0);
|
|
1913
1913
|
};
|
|
1914
1914
|
}
|
|
1915
|
-
}), ja = { class: "cl-font-semibold lg:cl-hidden" },
|
|
1915
|
+
}), ja = { class: "cl-font-semibold lg:cl-hidden" }, Ua = /* @__PURE__ */ K({
|
|
1916
1916
|
__name: "cl-ui-grid-cell",
|
|
1917
1917
|
props: {
|
|
1918
1918
|
data: {},
|
|
@@ -1949,7 +1949,7 @@ const Ia = {
|
|
|
1949
1949
|
listEntries: d.value,
|
|
1950
1950
|
searchValue: u.searchValue
|
|
1951
1951
|
})), () => [
|
|
1952
|
-
N(
|
|
1952
|
+
N(Ul, {
|
|
1953
1953
|
column: u.column,
|
|
1954
1954
|
data: u.data,
|
|
1955
1955
|
"time-zone": u.timeZone,
|
|
@@ -1964,7 +1964,7 @@ const Ia = {
|
|
|
1964
1964
|
]),
|
|
1965
1965
|
_: 2
|
|
1966
1966
|
}, 1032, ["column", "data", "time-zone", "search-value"])
|
|
1967
|
-
]) : (m(), _(
|
|
1967
|
+
]) : (m(), _(Ul, {
|
|
1968
1968
|
key: 1,
|
|
1969
1969
|
column: u.column,
|
|
1970
1970
|
data: u.data,
|
|
@@ -1978,7 +1978,7 @@ const Ia = {
|
|
|
1978
1978
|
}, 1032, ["column", "data", "time-zone", "search-value"]))
|
|
1979
1979
|
], 2));
|
|
1980
1980
|
}
|
|
1981
|
-
}),
|
|
1981
|
+
}), Pa = /* @__PURE__ */ K({
|
|
1982
1982
|
__name: "cl-ui-grid-row",
|
|
1983
1983
|
props: {
|
|
1984
1984
|
data: {},
|
|
@@ -1990,7 +1990,7 @@ const Ia = {
|
|
|
1990
1990
|
emits: ["cell-focus", "cell-edit", "cell-undo"],
|
|
1991
1991
|
setup(o) {
|
|
1992
1992
|
return (e, t) => (m(), w("tr", null, [
|
|
1993
|
-
(m(!0), w(ee, null, ue(e.columns, (l, r) => (m(), _(
|
|
1993
|
+
(m(!0), w(ee, null, ue(e.columns, (l, r) => (m(), _(Ua, {
|
|
1994
1994
|
key: r,
|
|
1995
1995
|
data: e.data,
|
|
1996
1996
|
column: l,
|
|
@@ -2037,12 +2037,12 @@ const Ia = {
|
|
|
2037
2037
|
function d(y) {
|
|
2038
2038
|
n.value.index !== -1 && n.value.index !== y && a(), n.value.index = y;
|
|
2039
2039
|
}
|
|
2040
|
-
function u(y,
|
|
2041
|
-
d(y),
|
|
2040
|
+
function u(y, O) {
|
|
2041
|
+
d(y), O.field !== void 0 && (n.value.record[O.field] = O.value);
|
|
2042
2042
|
}
|
|
2043
2043
|
function c(y) {
|
|
2044
2044
|
if (y !== void 0) {
|
|
2045
|
-
const { [y]:
|
|
2045
|
+
const { [y]: O, ...D } = n.value.record;
|
|
2046
2046
|
n.value.record = {
|
|
2047
2047
|
...D
|
|
2048
2048
|
}, l("row-edit-cancelled", ve(n.value));
|
|
@@ -2050,14 +2050,14 @@ const Ia = {
|
|
|
2050
2050
|
}
|
|
2051
2051
|
const i = L({});
|
|
2052
2052
|
ne(() => t.data, () => {
|
|
2053
|
-
var y,
|
|
2054
|
-
return i.value = Object.fromEntries(((
|
|
2055
|
-
[
|
|
2053
|
+
var y, O;
|
|
2054
|
+
return i.value = Object.fromEntries(((O = (y = t.data) == null ? void 0 : y.results) == null ? void 0 : O.map((D, T) => [
|
|
2055
|
+
[T],
|
|
2056
2056
|
{
|
|
2057
2057
|
count: 0,
|
|
2058
2058
|
target: null,
|
|
2059
2059
|
reset: Ql(() => {
|
|
2060
|
-
i.value[
|
|
2060
|
+
i.value[T] && (i.value[T].count = 0, i.value[T].target = null);
|
|
2061
2061
|
}, 2500, { immediate: !1 })
|
|
2062
2062
|
}
|
|
2063
2063
|
])) ?? []);
|
|
@@ -2065,21 +2065,21 @@ const Ia = {
|
|
|
2065
2065
|
deep: !0,
|
|
2066
2066
|
immediate: !0
|
|
2067
2067
|
});
|
|
2068
|
-
function s(y,
|
|
2069
|
-
const { currentTarget:
|
|
2070
|
-
t.options.rowSelectionEnabled ? (p(
|
|
2068
|
+
function s(y, O, D) {
|
|
2069
|
+
const { currentTarget: T } = D;
|
|
2070
|
+
t.options.rowSelectionEnabled ? (p(T), l("row-select", O)) : (i.value[y].count++, i.value[y].target = T, i.value[y].count > 1 ? (i.value[y].reset.stop(), i.value[y].count = 0, p(T), i.value[y].target = null, l("row-select", O)) : i.value[y].reset.start());
|
|
2071
2071
|
}
|
|
2072
2072
|
function p(y) {
|
|
2073
2073
|
t.options.highlightRowSelection && (y == null || y.classList.toggle("!cl-bg-link-lighter"));
|
|
2074
2074
|
}
|
|
2075
2075
|
return ne(() => t.editMode, () => {
|
|
2076
2076
|
t.editMode || (a(), n.value.index = -1);
|
|
2077
|
-
}), (y,
|
|
2077
|
+
}), (y, O) => {
|
|
2078
2078
|
var D;
|
|
2079
2079
|
return m(), w("tbody", null, [
|
|
2080
|
-
y.data && ((D = y.data.results) != null && D.length) ? (m(!0), w(ee, { key: 0 }, ue(y.data.results, (
|
|
2080
|
+
y.data && ((D = y.data.results) != null && D.length) ? (m(!0), w(ee, { key: 0 }, ue(y.data.results, (T, F) => (m(), _(Pa, {
|
|
2081
2081
|
key: F,
|
|
2082
|
-
data:
|
|
2082
|
+
data: T,
|
|
2083
2083
|
columns: y.columns,
|
|
2084
2084
|
"time-zone": y.timeZone,
|
|
2085
2085
|
"search-value": y.searchValue,
|
|
@@ -2090,42 +2090,42 @@ const Ia = {
|
|
|
2090
2090
|
"cl-cursor-pointer": (y.options.highlightRowSelection || y.options.rowSelectionEnabled) && !y.editMode,
|
|
2091
2091
|
"hover:cl-bg-link-lighter": y.options.rowSelectionEnabled && y.options.highlightRowSelection && !y.editMode
|
|
2092
2092
|
}]),
|
|
2093
|
-
onClick: (
|
|
2094
|
-
y.editMode || s(F,
|
|
2093
|
+
onClick: (V) => {
|
|
2094
|
+
y.editMode || s(F, T, V);
|
|
2095
2095
|
},
|
|
2096
|
-
onCellFocus: (
|
|
2096
|
+
onCellFocus: (V) => {
|
|
2097
2097
|
d(F);
|
|
2098
2098
|
},
|
|
2099
|
-
onCellEdit: (
|
|
2100
|
-
u(F,
|
|
2099
|
+
onCellEdit: (V) => {
|
|
2100
|
+
u(F, V);
|
|
2101
2101
|
},
|
|
2102
2102
|
onCellUndo: c
|
|
2103
2103
|
}, Re({ _: 2 }, [
|
|
2104
|
-
ue(y.$slots, (
|
|
2104
|
+
ue(y.$slots, (V, H) => ({
|
|
2105
2105
|
name: H,
|
|
2106
2106
|
fn: x((X) => [
|
|
2107
2107
|
z(y.$slots, H, ie(X, { disabled: y.loading }))
|
|
2108
2108
|
])
|
|
2109
2109
|
}))
|
|
2110
|
-
]), 1032, ["data", "columns", "time-zone", "search-value", "edit-mode", "class", "onClick", "onCellFocus", "onCellEdit"]))), 128)) : y.loading ?
|
|
2110
|
+
]), 1032, ["data", "columns", "time-zone", "search-value", "edit-mode", "class", "onClick", "onCellFocus", "onCellEdit"]))), 128)) : y.loading ? P("", !0) : (m(), w("tr", za, [
|
|
2111
2111
|
g("td", {
|
|
2112
2112
|
colspan: y.columns.length
|
|
2113
2113
|
}, [
|
|
2114
2114
|
g("div", xa, [
|
|
2115
2115
|
g("strong", Ha, M(b(r)("grid.noData")), 1),
|
|
2116
|
-
y.request.filters.some((
|
|
2116
|
+
y.request.filters.some((T) => T.filterValue !== "") ? (m(), w("div", Ga, [
|
|
2117
2117
|
g("div", Wa, M(b(r)("grid.noDataFiltersPresent")), 1),
|
|
2118
2118
|
N(ye, {
|
|
2119
2119
|
size: "small",
|
|
2120
2120
|
colour: "danger",
|
|
2121
|
-
onClick:
|
|
2121
|
+
onClick: O[0] || (O[0] = ae((T) => y.$emit("clear-filters"), ["prevent"]))
|
|
2122
2122
|
}, {
|
|
2123
2123
|
default: x(() => [
|
|
2124
2124
|
pe(M(b(r)("grid.clearFilters")), 1)
|
|
2125
2125
|
]),
|
|
2126
2126
|
_: 1
|
|
2127
2127
|
})
|
|
2128
|
-
])) :
|
|
2128
|
+
])) : P("", !0)
|
|
2129
2129
|
])
|
|
2130
2130
|
], 8, Ba)
|
|
2131
2131
|
]))
|
|
@@ -2181,6 +2181,7 @@ const Ia = {
|
|
|
2181
2181
|
pageSize: "Page Size",
|
|
2182
2182
|
totalRecords: "Total Records",
|
|
2183
2183
|
jumpToPage: "Jump to Page",
|
|
2184
|
+
unsavedChangesWarningMessage: "The grid is currently in edit mode, and you may lose any unsaved changes. Do you still wish to continue?",
|
|
2184
2185
|
manageView: "Manage View",
|
|
2185
2186
|
column: "Column",
|
|
2186
2187
|
visible: "Visible",
|
|
@@ -2313,16 +2314,16 @@ const Ia = {
|
|
|
2313
2314
|
warnHtmlMessage: !1
|
|
2314
2315
|
});
|
|
2315
2316
|
function ac(o, e) {
|
|
2316
|
-
return we.global.mergeLocaleMessage(o, e),
|
|
2317
|
+
return we.global.mergeLocaleMessage(o, e), Pe();
|
|
2317
2318
|
}
|
|
2318
2319
|
function nc(o, e) {
|
|
2319
|
-
return we.global.mergeNumberFormat(o, e),
|
|
2320
|
+
return we.global.mergeNumberFormat(o, e), Pe();
|
|
2320
2321
|
}
|
|
2321
2322
|
function rc(o, e) {
|
|
2322
|
-
return we.global.mergeDateTimeFormat(o, e),
|
|
2323
|
+
return we.global.mergeDateTimeFormat(o, e), Pe();
|
|
2323
2324
|
}
|
|
2324
2325
|
function ic(o) {
|
|
2325
|
-
return we.global.locale.value = o,
|
|
2326
|
+
return we.global.locale.value = o, Pe();
|
|
2326
2327
|
}
|
|
2327
2328
|
const { n: Ya, locale: Ja, getNumberFormat: Xa } = we.global, Ol = re.DECIMAL;
|
|
2328
2329
|
function De(o) {
|
|
@@ -2357,9 +2358,9 @@ function je(o, e, t) {
|
|
|
2357
2358
|
function it(o, e, t) {
|
|
2358
2359
|
if (fl(e)) {
|
|
2359
2360
|
const l = en(o, e);
|
|
2360
|
-
return
|
|
2361
|
+
return Pl(l ?? o, Ol, t);
|
|
2361
2362
|
} else
|
|
2362
|
-
return
|
|
2363
|
+
return Pl(o, El(e), t);
|
|
2363
2364
|
}
|
|
2364
2365
|
function st(o, e) {
|
|
2365
2366
|
return fl(o) ? Ke(Ol, e) : Ke(El(o), e);
|
|
@@ -2381,22 +2382,22 @@ function en(o, e) {
|
|
|
2381
2382
|
}
|
|
2382
2383
|
return o !== "" && (t = null), t;
|
|
2383
2384
|
}
|
|
2384
|
-
function
|
|
2385
|
+
function Pl(o, e, t) {
|
|
2385
2386
|
if (!o)
|
|
2386
2387
|
return NaN;
|
|
2387
2388
|
const l = Ke(e, t), r = ct(l);
|
|
2388
2389
|
if (r === null)
|
|
2389
2390
|
return NaN;
|
|
2390
|
-
const n = Fe(r, 10000.11111, "group"), a = Fe(r, 1.111, "decimal"), d = Fe(r, 1, "currency", "unit"), u = Fe(r, 1, "percentSign"), c = Fe(r, 1, "plusSign"), i = Fe(r, -1, "minusSign"), s = Fe(r, -10000.11111, "literal", "unknown"), p = i.some((F) => o.startsWith(F) || o.endsWith(F)) || o.startsWith("(") && o.endsWith(")"), y = u.some((F) => o.startsWith(F) || o.endsWith(F)),
|
|
2391
|
-
let
|
|
2392
|
-
if (
|
|
2393
|
-
const F =
|
|
2394
|
-
if (n.some((
|
|
2391
|
+
const n = Fe(r, 10000.11111, "group"), a = Fe(r, 1.111, "decimal"), d = Fe(r, 1, "currency", "unit"), u = Fe(r, 1, "percentSign"), c = Fe(r, 1, "plusSign"), i = Fe(r, -1, "minusSign"), s = Fe(r, -10000.11111, "literal", "unknown"), p = i.some((F) => o.startsWith(F) || o.endsWith(F)) || o.startsWith("(") && o.endsWith(")"), y = u.some((F) => o.startsWith(F) || o.endsWith(F)), O = a.some((F) => o.includes(F)), D = (p ? -1 : 1) * (y ? 0.01 : 1);
|
|
2392
|
+
let T = o;
|
|
2393
|
+
if (O) {
|
|
2394
|
+
const F = T.indexOf(a[0]);
|
|
2395
|
+
if (n.some((V) => T.substring(F).includes(V)))
|
|
2395
2396
|
return NaN;
|
|
2396
|
-
|
|
2397
|
+
T = Oe(T, n, "", F, !0);
|
|
2397
2398
|
} else
|
|
2398
|
-
|
|
2399
|
-
return
|
|
2399
|
+
T = Oe(T, n, "", void 0, !0);
|
|
2400
|
+
return T = Oe(T, a, "."), T = Oe(T, d, ""), T = Oe(T, u, ""), T = Oe(T, c, ""), T = Oe(T, i, ""), T = Oe(T, s, ""), +T * D;
|
|
2400
2401
|
}
|
|
2401
2402
|
function Oe(o, e, t, l = o.length + 1, r = !1) {
|
|
2402
2403
|
let n = o.substring(0, l);
|
|
@@ -2610,7 +2611,7 @@ const sn = ["value", "inputmode", "required", "disabled", "placeholder"], cn = {
|
|
|
2610
2611
|
}),
|
|
2611
2612
|
emits: /* @__PURE__ */ Te(["focus", "blur"], ["update:modelValue"]),
|
|
2612
2613
|
setup(o, { expose: e, emit: t }) {
|
|
2613
|
-
const l = o, r =
|
|
2614
|
+
const l = o, r = Ue(o, "modelValue"), n = t, a = L(0), d = L(), u = L(), { isOutside: c } = Nt(u), { focused: i } = At(d), s = A(() => l.showArrows && c.value === !1);
|
|
2614
2615
|
ne(i, () => {
|
|
2615
2616
|
i.value ? n("focus") : (oe(H.value, !0), F.value = void 0, n("blur"));
|
|
2616
2617
|
});
|
|
@@ -2622,9 +2623,9 @@ const sn = ["value", "inputmode", "required", "disabled", "placeholder"], cn = {
|
|
|
2622
2623
|
})), y = A(() => l.format ? st(l.format, {
|
|
2623
2624
|
locale: l.locale,
|
|
2624
2625
|
additionalOptions: p.value
|
|
2625
|
-
}) : p.value),
|
|
2626
|
+
}) : p.value), O = A(() => Math.pow(10, y.value.maximumFractionDigits ?? 0)), D = A(() => Math.pow(10, l.format === re.PERCENTAGE ? 2 : 0)), T = A(() => O.value * D.value), F = L(void 0);
|
|
2626
2627
|
ne(r, () => F.value = void 0);
|
|
2627
|
-
const
|
|
2628
|
+
const V = A({
|
|
2628
2629
|
get: () => F.value ? h(F.value) : r.value,
|
|
2629
2630
|
set: (v) => F.value = I(v)
|
|
2630
2631
|
}), H = A({
|
|
@@ -2639,7 +2640,7 @@ const sn = ["value", "inputmode", "required", "disabled", "placeholder"], cn = {
|
|
|
2639
2640
|
r.value = null;
|
|
2640
2641
|
else if (v !== "") {
|
|
2641
2642
|
let j = typeof v == "number" ? v : h(v);
|
|
2642
|
-
k && l.format === re.PERCENTAGE && (j = j / D.value), isNaN(j) === !1 && (r.value = X(Math.round(j *
|
|
2643
|
+
k && l.format === re.PERCENTAGE && (j = j / D.value), isNaN(j) === !1 && (r.value = X(Math.round(j * T.value) / T.value));
|
|
2643
2644
|
}
|
|
2644
2645
|
}
|
|
2645
2646
|
function I(v) {
|
|
@@ -2655,7 +2656,7 @@ const sn = ["value", "inputmode", "required", "disabled", "placeholder"], cn = {
|
|
|
2655
2656
|
}) : +v;
|
|
2656
2657
|
}
|
|
2657
2658
|
function f(v) {
|
|
2658
|
-
const k = (
|
|
2659
|
+
const k = (V.value || 0) + (v ? -1 : 1) / T.value;
|
|
2659
2660
|
oe(k, !1);
|
|
2660
2661
|
}
|
|
2661
2662
|
return e({
|
|
@@ -2745,6 +2746,7 @@ const sn = ["value", "inputmode", "required", "disabled", "placeholder"], cn = {
|
|
|
2745
2746
|
props: {
|
|
2746
2747
|
request: {},
|
|
2747
2748
|
loading: { type: Boolean },
|
|
2749
|
+
showUnsavedChangesWarning: { type: Boolean },
|
|
2748
2750
|
data: { default: null }
|
|
2749
2751
|
},
|
|
2750
2752
|
emits: ["update:request"],
|
|
@@ -2762,8 +2764,10 @@ const sn = ["value", "inputmode", "required", "disabled", "placeholder"], cn = {
|
|
|
2762
2764
|
return s;
|
|
2763
2765
|
});
|
|
2764
2766
|
function d(i) {
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
+
if (t.showUnsavedChangesWarning === !1 || window.confirm(r("grid.unsavedChangesWarningMessage"))) {
|
|
2768
|
+
const s = ve(t.request);
|
|
2769
|
+
i ?? (i = 1), s.pageNumber !== i && (s.pageNumber = Math.max(Math.min(Math.trunc(i), n.value), 1), l("update:request", s));
|
|
2770
|
+
}
|
|
2767
2771
|
}
|
|
2768
2772
|
const u = [
|
|
2769
2773
|
5,
|
|
@@ -2774,8 +2778,10 @@ const sn = ["value", "inputmode", "required", "disabled", "placeholder"], cn = {
|
|
|
2774
2778
|
200
|
|
2775
2779
|
];
|
|
2776
2780
|
function c(i) {
|
|
2777
|
-
|
|
2778
|
-
|
|
2781
|
+
if (t.showUnsavedChangesWarning === !1 || window.confirm(r("grid.unsavedChangesWarningMessage"))) {
|
|
2782
|
+
const s = ve(t.request);
|
|
2783
|
+
s.pageSize = i, s.pageNumber = 1, l("update:request", s);
|
|
2784
|
+
}
|
|
2779
2785
|
}
|
|
2780
2786
|
return (i, s) => {
|
|
2781
2787
|
var p, y;
|
|
@@ -2806,7 +2812,7 @@ const sn = ["value", "inputmode", "required", "disabled", "placeholder"], cn = {
|
|
|
2806
2812
|
g("li", kn, M(b(De)(i.request.pageNumber)) + " / " + M(b(De)(n.value)), 1),
|
|
2807
2813
|
J(g("li", {
|
|
2808
2814
|
class: "cl-cursor-pointer cl-mr-1 cl-mt-1 lg:cl-mr-2",
|
|
2809
|
-
onClick: s[0] || (s[0] = (
|
|
2815
|
+
onClick: s[0] || (s[0] = (O) => d(1))
|
|
2810
2816
|
}, [
|
|
2811
2817
|
N(b(Z), {
|
|
2812
2818
|
icon: "ph:caret-double-left",
|
|
@@ -2817,7 +2823,7 @@ const sn = ["value", "inputmode", "required", "disabled", "placeholder"], cn = {
|
|
|
2817
2823
|
]),
|
|
2818
2824
|
J(g("li", {
|
|
2819
2825
|
class: "cl-cursor-pointer cl-mt-1 lg:cl-mr-2 mr-1",
|
|
2820
|
-
onClick: s[1] || (s[1] = (
|
|
2826
|
+
onClick: s[1] || (s[1] = (O) => d(i.request.pageNumber - 1))
|
|
2821
2827
|
}, [
|
|
2822
2828
|
N(b(Z), {
|
|
2823
2829
|
icon: "ph:caret-left",
|
|
@@ -2826,17 +2832,17 @@ const sn = ["value", "inputmode", "required", "disabled", "placeholder"], cn = {
|
|
|
2826
2832
|
], 512), [
|
|
2827
2833
|
[te, i.request.pageNumber > 1]
|
|
2828
2834
|
]),
|
|
2829
|
-
(m(!0), w(ee, null, ue(a.value, (
|
|
2835
|
+
(m(!0), w(ee, null, ue(a.value, (O, D) => (m(), w("li", {
|
|
2830
2836
|
key: D,
|
|
2831
2837
|
class: B(["cl-cursor-pointer cl-mr-1 lg:cl-mr-2", {
|
|
2832
|
-
"cl-text-black cl-font-bold": i.request.pageNumber ===
|
|
2833
|
-
"cl-text-grey-6": i.request.pageNumber !==
|
|
2838
|
+
"cl-text-black cl-font-bold": i.request.pageNumber === O,
|
|
2839
|
+
"cl-text-grey-6": i.request.pageNumber !== O
|
|
2834
2840
|
}]),
|
|
2835
|
-
onClick: (
|
|
2836
|
-
}, M(b(De)(
|
|
2841
|
+
onClick: (T) => d(O)
|
|
2842
|
+
}, M(b(De)(O)), 11, $n))), 128)),
|
|
2837
2843
|
J(g("li", {
|
|
2838
2844
|
class: "cl-cursor-pointer cl-mr-1 cl-mt-1 lg:cl-mr-2",
|
|
2839
|
-
onClick: s[2] || (s[2] = (
|
|
2845
|
+
onClick: s[2] || (s[2] = (O) => d(i.request.pageNumber + 1))
|
|
2840
2846
|
}, [
|
|
2841
2847
|
N(b(Z), {
|
|
2842
2848
|
icon: "ph:caret-right",
|
|
@@ -2847,7 +2853,7 @@ const sn = ["value", "inputmode", "required", "disabled", "placeholder"], cn = {
|
|
|
2847
2853
|
]),
|
|
2848
2854
|
J(g("li", {
|
|
2849
2855
|
class: "cl-cursor-pointer cl-mr-1 cl-mt-1 lg:cl-mr-2",
|
|
2850
|
-
onClick: s[3] || (s[3] = (
|
|
2856
|
+
onClick: s[3] || (s[3] = (O) => d(n.value))
|
|
2851
2857
|
}, [
|
|
2852
2858
|
N(b(Z), {
|
|
2853
2859
|
icon: "ph:caret-double-right",
|
|
@@ -2860,21 +2866,21 @@ const sn = ["value", "inputmode", "required", "disabled", "placeholder"], cn = {
|
|
|
2860
2866
|
]),
|
|
2861
2867
|
g("ul", Sn, [
|
|
2862
2868
|
g("li", Tn, M(b(r)("grid.pageSize")), 1),
|
|
2863
|
-
(m(), w(ee, null, ue(u, (
|
|
2869
|
+
(m(), w(ee, null, ue(u, (O, D) => g("li", {
|
|
2864
2870
|
key: D,
|
|
2865
2871
|
class: B(["cl-cursor-pointer cl-mr-1 lg:cl-mr-2", {
|
|
2866
|
-
"cl-text-black cl-font-bold": i.request.pageSize ===
|
|
2867
|
-
"cl-text-grey-6": i.request.pageSize !==
|
|
2872
|
+
"cl-text-black cl-font-bold": i.request.pageSize === O,
|
|
2873
|
+
"cl-text-grey-6": i.request.pageSize !== O
|
|
2868
2874
|
}]),
|
|
2869
|
-
onClick: (
|
|
2870
|
-
}, M(b(De)(
|
|
2875
|
+
onClick: (T) => c(O)
|
|
2876
|
+
}, M(b(De)(O)), 11, Cn)), 64))
|
|
2871
2877
|
]),
|
|
2872
2878
|
g("ul", On, [
|
|
2873
2879
|
g("li", En, M(b(r)("grid.totalRecords")), 1),
|
|
2874
2880
|
g("li", Fn, M(b(De)(i.data.totalRecords)), 1)
|
|
2875
2881
|
])
|
|
2876
2882
|
])
|
|
2877
|
-
])) :
|
|
2883
|
+
])) : P("", !0);
|
|
2878
2884
|
};
|
|
2879
2885
|
}
|
|
2880
2886
|
}), Nn = {
|
|
@@ -2939,7 +2945,7 @@ const sn = ["value", "inputmode", "required", "disabled", "placeholder"], cn = {
|
|
|
2939
2945
|
]),
|
|
2940
2946
|
_: 1
|
|
2941
2947
|
}, 8, ["disabled", "class"]),
|
|
2942
|
-
d.required ?
|
|
2948
|
+
d.required ? P("", !0) : (m(), _(ye, {
|
|
2943
2949
|
key: 0,
|
|
2944
2950
|
size: "small",
|
|
2945
2951
|
class: B(["cl-basis-0 cl-border-transparent cl-flex cl-items-center cl-justify-center hover:cl-border-transparent", {
|
|
@@ -2976,19 +2982,19 @@ const sn = ["value", "inputmode", "required", "disabled", "placeholder"], cn = {
|
|
|
2976
2982
|
}, null, 8, ["class", "icon"]), [
|
|
2977
2983
|
[te, !d.disabled]
|
|
2978
2984
|
]),
|
|
2979
|
-
d.disabled ?
|
|
2985
|
+
d.disabled ? P("", !0) : (m(), w("div", qn, [
|
|
2980
2986
|
d.type !== "time" ? (m(), _(b(Z), {
|
|
2981
2987
|
key: 0,
|
|
2982
2988
|
class: "cl-cursor-pointer hover:cl-text-link-light",
|
|
2983
2989
|
icon: "ph:arrow-counter-clockwise",
|
|
2984
2990
|
onClick: u[2] || (u[2] = ae((c) => d.$emit("reset"), ["prevent"]))
|
|
2985
|
-
})) :
|
|
2991
|
+
})) : P("", !0),
|
|
2986
2992
|
!d.required && d.date && (d.type !== "time" || d.date !== "00:00") ? (m(), _(b(Z), {
|
|
2987
2993
|
key: 1,
|
|
2988
2994
|
class: "cl-cursor-pointer clear-icon hover:cl-text-link-light md:cl-ml-0.5",
|
|
2989
2995
|
icon: "ph:x",
|
|
2990
2996
|
onClick: u[3] || (u[3] = ae((c) => d.$emit("clear"), ["prevent"]))
|
|
2991
|
-
})) :
|
|
2997
|
+
})) : P("", !0)
|
|
2992
2998
|
]))
|
|
2993
2999
|
]));
|
|
2994
3000
|
}
|
|
@@ -3109,7 +3115,7 @@ const sn = ["value", "inputmode", "required", "disabled", "placeholder"], cn = {
|
|
|
3109
3115
|
...rl,
|
|
3110
3116
|
...il,
|
|
3111
3117
|
...We
|
|
3112
|
-
],
|
|
3118
|
+
], Un = { class: "cl-p-2 cl-pt-0" }, Pn = {
|
|
3113
3119
|
key: 0,
|
|
3114
3120
|
class: "cl-mt-2 cl-opacity-20"
|
|
3115
3121
|
}, zn = /* @__PURE__ */ K({
|
|
@@ -3144,7 +3150,7 @@ const sn = ["value", "inputmode", "required", "disabled", "placeholder"], cn = {
|
|
|
3144
3150
|
}
|
|
3145
3151
|
return a;
|
|
3146
3152
|
});
|
|
3147
|
-
return (a, d) => (m(), w("div",
|
|
3153
|
+
return (a, d) => (m(), w("div", Un, [
|
|
3148
3154
|
g("div", null, M(b(r)("quickDates.quickDatesHeader")), 1),
|
|
3149
3155
|
(m(!0), w(ee, null, ue(n.value, (u, c) => (m(), w("div", {
|
|
3150
3156
|
key: c,
|
|
@@ -3155,7 +3161,7 @@ const sn = ["value", "inputmode", "required", "disabled", "placeholder"], cn = {
|
|
|
3155
3161
|
"selected-quick-date": a.selectedQuickDate,
|
|
3156
3162
|
onQuickDateSelected: d[0] || (d[0] = (i) => l("quick-date-selected", i))
|
|
3157
3163
|
}, null, 8, ["dates", "selected-quick-date"]),
|
|
3158
|
-
c < n.value.length - 1 ? (m(), w("div",
|
|
3164
|
+
c < n.value.length - 1 ? (m(), w("div", Pn)) : P("", !0)
|
|
3159
3165
|
]))), 128))
|
|
3160
3166
|
]));
|
|
3161
3167
|
}
|
|
@@ -3260,7 +3266,7 @@ const sn = ["value", "inputmode", "required", "disabled", "placeholder"], cn = {
|
|
|
3260
3266
|
}).setLocale(c.value);
|
|
3261
3267
|
let f;
|
|
3262
3268
|
return l.type === "date" ? f = h.toFormat("D") : l.type === "datetime" ? f = h.toFormat("f") : f = h.toFormat("t"), c.value === "en-US" ? f = f.replace("05", "hh").replace("5", "h") : f = f.replace("05", "HH").replace("5", "H"), f.replace("2000", "YYYY").replace("20", "YY").replace("04", "MM").replace("4", "M").replace("03", "DD").replace("3", "D").replace("06", "mm").replace("6", "m").replace("AM", "A").trim();
|
|
3263
|
-
}),
|
|
3269
|
+
}), O = L(null), D = A(() => {
|
|
3264
3270
|
let h;
|
|
3265
3271
|
if (l.date && l.type !== "dateRange")
|
|
3266
3272
|
h = Y.fromISO(l.date, {
|
|
@@ -3276,10 +3282,10 @@ const sn = ["value", "inputmode", "required", "disabled", "placeholder"], cn = {
|
|
|
3276
3282
|
zone: n.value
|
|
3277
3283
|
}) : h = Y.utc().setZone(n.value);
|
|
3278
3284
|
return h;
|
|
3279
|
-
}),
|
|
3280
|
-
function
|
|
3285
|
+
}), T = L(null), F = L();
|
|
3286
|
+
function V(h) {
|
|
3281
3287
|
const f = H(h);
|
|
3282
|
-
a.value = f,
|
|
3288
|
+
a.value = f, T.value = h, F.value.move(f.start), F.value.hidePopover();
|
|
3283
3289
|
}
|
|
3284
3290
|
function H(h) {
|
|
3285
3291
|
const f = h.range, v = h.scope === "past" ? -1 : h.scope === "current" ? 0 : 1, k = Y.now().setZone(n.value).startOf(f).plus({
|
|
@@ -3305,7 +3311,7 @@ const sn = ["value", "inputmode", "required", "disabled", "placeholder"], cn = {
|
|
|
3305
3311
|
return e({
|
|
3306
3312
|
focus() {
|
|
3307
3313
|
var h;
|
|
3308
|
-
(h =
|
|
3314
|
+
(h = O.value) == null || h.focus();
|
|
3309
3315
|
}
|
|
3310
3316
|
}), (h, f) => h.type === "time" ? (m(), _(b(pl), {
|
|
3311
3317
|
key: 0,
|
|
@@ -3326,7 +3332,7 @@ const sn = ["value", "inputmode", "required", "disabled", "placeholder"], cn = {
|
|
|
3326
3332
|
default: x(({ inputValue: v, inputEvents: k }) => [
|
|
3327
3333
|
N(gl, ie(h.$attrs, {
|
|
3328
3334
|
ref_key: "input",
|
|
3329
|
-
ref:
|
|
3335
|
+
ref: O,
|
|
3330
3336
|
date: v,
|
|
3331
3337
|
events: k,
|
|
3332
3338
|
type: h.type,
|
|
@@ -3355,12 +3361,12 @@ const sn = ["value", "inputmode", "required", "disabled", "placeholder"], cn = {
|
|
|
3355
3361
|
"min-date": h.min,
|
|
3356
3362
|
"max-date": h.max,
|
|
3357
3363
|
"initial-page": D.value,
|
|
3358
|
-
onDayclick: f[4] || (f[4] = (v) =>
|
|
3364
|
+
onDayclick: f[4] || (f[4] = (v) => T.value = null)
|
|
3359
3365
|
}, {
|
|
3360
3366
|
default: x(({ togglePopover: v }) => [
|
|
3361
3367
|
N(gl, ie(h.$attrs, {
|
|
3362
3368
|
ref_key: "input",
|
|
3363
|
-
ref:
|
|
3369
|
+
ref: O,
|
|
3364
3370
|
type: h.type,
|
|
3365
3371
|
required: h.required,
|
|
3366
3372
|
disabled: h.disabled,
|
|
@@ -3369,7 +3375,7 @@ const sn = ["value", "inputmode", "required", "disabled", "placeholder"], cn = {
|
|
|
3369
3375
|
placeholder: null,
|
|
3370
3376
|
onTogglePopover: v,
|
|
3371
3377
|
onClear: f[2] || (f[2] = (k) => {
|
|
3372
|
-
a.value = null,
|
|
3378
|
+
a.value = null, T.value = null, F.value.hidePopover();
|
|
3373
3379
|
})
|
|
3374
3380
|
}), null, 16, ["type", "required", "disabled", "range-selected", "title", "onTogglePopover"])
|
|
3375
3381
|
]),
|
|
@@ -3377,10 +3383,10 @@ const sn = ["value", "inputmode", "required", "disabled", "placeholder"], cn = {
|
|
|
3377
3383
|
h.quickDateScope !== "none" ? (m(), _(zn, {
|
|
3378
3384
|
key: 0,
|
|
3379
3385
|
scope: h.quickDateScope,
|
|
3380
|
-
"selected-quick-date":
|
|
3386
|
+
"selected-quick-date": T.value,
|
|
3381
3387
|
"current-date-range": l.date,
|
|
3382
|
-
onQuickDateSelected:
|
|
3383
|
-
}, null, 8, ["scope", "selected-quick-date", "current-date-range"])) :
|
|
3388
|
+
onQuickDateSelected: V
|
|
3389
|
+
}, null, 8, ["scope", "selected-quick-date", "current-date-range"])) : P("", !0)
|
|
3384
3390
|
]),
|
|
3385
3391
|
_: 1
|
|
3386
3392
|
}, 8, ["modelValue", "locale", "is24hr", "timezone", "columns", "popover", "min-date", "max-date", "initial-page"])) : (m(), _(b(pl), {
|
|
@@ -3405,7 +3411,7 @@ const sn = ["value", "inputmode", "required", "disabled", "placeholder"], cn = {
|
|
|
3405
3411
|
default: x(({ inputValue: v, inputEvents: k }) => [
|
|
3406
3412
|
N(gl, ie(h.$attrs, {
|
|
3407
3413
|
ref_key: "input",
|
|
3408
|
-
ref:
|
|
3414
|
+
ref: O,
|
|
3409
3415
|
date: v,
|
|
3410
3416
|
events: k,
|
|
3411
3417
|
type: h.type,
|
|
@@ -3455,10 +3461,10 @@ class Hn {
|
|
|
3455
3461
|
currencySign: p ? "accounting" : void 0,
|
|
3456
3462
|
currencyDisplay: c !== qe.hidden ? c : void 0
|
|
3457
3463
|
};
|
|
3458
|
-
const
|
|
3459
|
-
this.currency = (t = D.find(({ type:
|
|
3460
|
-
const
|
|
3461
|
-
this.prefix = O
|
|
3464
|
+
const O = new Intl.NumberFormat(i, this.options), D = O.formatToParts(123456);
|
|
3465
|
+
this.currency = (t = D.find(({ type: V }) => V === "currency")) === null || t === void 0 ? void 0 : t.value, this.digits = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9].map((V) => V.toLocaleString(i)), this.decimalSymbol = (l = D.find(({ type: V }) => V === "decimal")) === null || l === void 0 ? void 0 : l.value, this.groupingSymbol = (r = D.find(({ type: V }) => V === "group")) === null || r === void 0 ? void 0 : r.value, this.minusSign = (n = O.formatToParts(-1).find(({ type: V }) => V === "minusSign")) === null || n === void 0 ? void 0 : n.value, this.decimalSymbol === void 0 ? this.minimumFractionDigits = this.maximumFractionDigits = 0 : typeof s == "number" ? this.minimumFractionDigits = this.maximumFractionDigits = s : (this.minimumFractionDigits = (a = s == null ? void 0 : s.min) !== null && a !== void 0 ? a : O.resolvedOptions().minimumFractionDigits, this.maximumFractionDigits = (d = s == null ? void 0 : s.max) !== null && d !== void 0 ? d : O.resolvedOptions().maximumFractionDigits);
|
|
3466
|
+
const T = (V) => xn(V, this.digits[1]), F = (V) => V.substring(V.lastIndexOf(this.decimalSymbol ? this.digits[0] : this.digits[1]) + 1);
|
|
3467
|
+
this.prefix = T(O.format(1)), this.suffix = F(O.format(1)), this.negativePrefix = T(O.format(-1)), this.negativeSuffix = F(O.format(-1));
|
|
3462
3468
|
}
|
|
3463
3469
|
parse(e) {
|
|
3464
3470
|
if (e) {
|
|
@@ -3528,14 +3534,14 @@ class pt {
|
|
|
3528
3534
|
}
|
|
3529
3535
|
class Gn extends pt {
|
|
3530
3536
|
conformToMask(e, t = "") {
|
|
3531
|
-
const l = this.currencyFormat.isNegative(e), r = (
|
|
3532
|
-
if (r(
|
|
3537
|
+
const l = this.currencyFormat.isNegative(e), r = (O) => O === "" && l && !(this.currencyFormat.minusSign === void 0 ? t === this.currencyFormat.negativePrefix + this.currencyFormat.negativeSuffix : t === this.currencyFormat.negativePrefix), n = (O) => {
|
|
3538
|
+
if (r(O))
|
|
3533
3539
|
return "";
|
|
3534
3540
|
if (this.currencyFormat.maximumFractionDigits > 0) {
|
|
3535
|
-
if (this.currencyFormat.isFractionIncomplete(
|
|
3536
|
-
return
|
|
3537
|
-
if (
|
|
3538
|
-
return this.currencyFormat.toFraction(
|
|
3541
|
+
if (this.currencyFormat.isFractionIncomplete(O))
|
|
3542
|
+
return O;
|
|
3543
|
+
if (O.startsWith(this.currencyFormat.decimalSymbol))
|
|
3544
|
+
return this.currencyFormat.toFraction(O);
|
|
3539
3545
|
}
|
|
3540
3546
|
return null;
|
|
3541
3547
|
};
|
|
@@ -3708,16 +3714,16 @@ const _n = (o) => o != null && o.matches("input") ? o : o == null ? void 0 : o.q
|
|
|
3708
3714
|
function Qn(o, e) {
|
|
3709
3715
|
var t, l, r, n;
|
|
3710
3716
|
let a;
|
|
3711
|
-
const d = L(null), u = L(null), c = L(null), i = yt(), s = (i == null ? void 0 : i.emit) || ((l = (t = i == null ? void 0 : i.proxy) === null || t === void 0 ? void 0 : t.$emit) === null || l === void 0 ? void 0 : l.bind(i == null ? void 0 : i.proxy)), p = (i == null ? void 0 : i.props) || ((r = i == null ? void 0 : i.proxy) === null || r === void 0 ? void 0 : r.$props), y = wt.startsWith("3"),
|
|
3712
|
-
return ne(d, (
|
|
3717
|
+
const d = L(null), u = L(null), c = L(null), i = yt(), s = (i == null ? void 0 : i.emit) || ((l = (t = i == null ? void 0 : i.proxy) === null || t === void 0 ? void 0 : t.$emit) === null || l === void 0 ? void 0 : l.bind(i == null ? void 0 : i.proxy)), p = (i == null ? void 0 : i.props) || ((r = i == null ? void 0 : i.proxy) === null || r === void 0 ? void 0 : r.$props), y = wt.startsWith("3"), O = y && ((n = i == null ? void 0 : i.attrs.modelModifiers) === null || n === void 0 ? void 0 : n.lazy), D = A(() => p == null ? void 0 : p[y ? "modelValue" : "value"]), T = y ? "update:modelValue" : "input", F = O ? "update:modelValue" : "change";
|
|
3718
|
+
return ne(d, (V) => {
|
|
3713
3719
|
var H;
|
|
3714
|
-
if (
|
|
3715
|
-
const X = _n((H =
|
|
3720
|
+
if (V) {
|
|
3721
|
+
const X = _n((H = V == null ? void 0 : V.$el) !== null && H !== void 0 ? H : V);
|
|
3716
3722
|
X ? (a = new Zn({
|
|
3717
3723
|
el: X,
|
|
3718
3724
|
options: o,
|
|
3719
3725
|
onInput: (oe) => {
|
|
3720
|
-
!
|
|
3726
|
+
!O && e !== !1 && D.value !== oe.number && (s == null || s(T, oe.number)), c.value = oe.number, u.value = oe.formatted;
|
|
3721
3727
|
},
|
|
3722
3728
|
onChange: (oe) => {
|
|
3723
3729
|
e !== !1 && (s == null || s(F, oe.number));
|
|
@@ -3729,8 +3735,8 @@ function Qn(o, e) {
|
|
|
3729
3735
|
inputRef: d,
|
|
3730
3736
|
numberValue: c,
|
|
3731
3737
|
formattedValue: u,
|
|
3732
|
-
setValue: (
|
|
3733
|
-
setOptions: (
|
|
3738
|
+
setValue: (V) => a == null ? void 0 : a.setValue(V),
|
|
3739
|
+
setOptions: (V) => a == null ? void 0 : a.setOptions(V)
|
|
3734
3740
|
};
|
|
3735
3741
|
}
|
|
3736
3742
|
const Yn = ["disabled", "step", "placeholder", "name"], Jn = /* @__PURE__ */ K({
|
|
@@ -3759,9 +3765,9 @@ const Yn = ["disabled", "step", "placeholder", "name"], Jn = /* @__PURE__ */ K({
|
|
|
3759
3765
|
i(u.value) === !1 && d(c.value), r("update:modelValue", u.value);
|
|
3760
3766
|
}
|
|
3761
3767
|
function y(D) {
|
|
3762
|
-
return Object.values(D).some((
|
|
3768
|
+
return Object.values(D).some((T) => T !== "");
|
|
3763
3769
|
}
|
|
3764
|
-
function
|
|
3770
|
+
function O(D) {
|
|
3765
3771
|
i(u.value) && r("change", D, u.value ?? 0);
|
|
3766
3772
|
}
|
|
3767
3773
|
return ne(
|
|
@@ -3783,7 +3789,7 @@ const Yn = ["disabled", "step", "placeholder", "name"], Jn = /* @__PURE__ */ K({
|
|
|
3783
3789
|
var D;
|
|
3784
3790
|
(D = n.value) == null || D.blur();
|
|
3785
3791
|
}
|
|
3786
|
-
}), (D,
|
|
3792
|
+
}), (D, T) => (m(), w("input", {
|
|
3787
3793
|
ref_key: "inputRef",
|
|
3788
3794
|
ref: n,
|
|
3789
3795
|
type: "text",
|
|
@@ -3800,9 +3806,9 @@ const Yn = ["disabled", "step", "placeholder", "name"], Jn = /* @__PURE__ */ K({
|
|
|
3800
3806
|
placeholder: D.placeholder,
|
|
3801
3807
|
name: D.group,
|
|
3802
3808
|
onKeydown: he(s, ["enter"]),
|
|
3803
|
-
onChange:
|
|
3809
|
+
onChange: O,
|
|
3804
3810
|
onBlur: p,
|
|
3805
|
-
onFocus:
|
|
3811
|
+
onFocus: T[0] || (T[0] = (F) => r("focus"))
|
|
3806
3812
|
}, null, 42, Yn));
|
|
3807
3813
|
}
|
|
3808
3814
|
}), Xn = (o) => (kt("data-v-5cb4ccea"), o = o(), $t(), o), er = { class: "cl-flex cl-items-start" }, lr = { class: "cl-w-full" }, tr = /* @__PURE__ */ Xn(() => /* @__PURE__ */ g("span", null, null, -1)), or = ["min", "max", "step", "disabled"], ar = { class: "cl-bg-transparent cl-text-center cl-text-sm cl-w-full" }, nr = { class: "cl-bg-transparent cl-text-sm" }, rr = {
|
|
@@ -3826,7 +3832,7 @@ const Yn = ["disabled", "step", "placeholder", "name"], Jn = /* @__PURE__ */ K({
|
|
|
3826
3832
|
Zl((c) => ({
|
|
3827
3833
|
"59055b28": a.value
|
|
3828
3834
|
}));
|
|
3829
|
-
const t = o, l =
|
|
3835
|
+
const t = o, l = Ue(o, "value"), { t: r } = de(), n = L(), a = A(() => {
|
|
3830
3836
|
let c = (l.value - t.min) / (t.max - t.min) * 100;
|
|
3831
3837
|
return c < 35 && c > 0 ? c < 20 ? c += 0.5 : c += 0.25 : c > 65 && c < 100 && (c > 80 ? c -= 0.5 : c -= 0.25), `${c}%`;
|
|
3832
3838
|
}), d = A(() => t.min <= t.max && t.step > 0), u = L(!1);
|
|
@@ -4026,11 +4032,11 @@ const dr = { class: "cl-flex cl-justify-between" }, fr = { class: "cl-w-full" },
|
|
|
4026
4032
|
}), y = A({
|
|
4027
4033
|
get: () => l.modelValue,
|
|
4028
4034
|
set: (S) => f(S)
|
|
4029
|
-
}),
|
|
4030
|
-
var S,
|
|
4035
|
+
}), O = A(() => typeof l.min == "number" ? l.min.toString() : l.min), D = A(() => typeof l.max == "number" ? l.max.toString() : l.max), T = A(() => typeof l.min == "number" || l.min === null ? l.min : parseFloat(l.min)), F = A(() => typeof l.max == "number" || l.max === null ? l.max : parseFloat(l.max)), V = A(() => l.messageWhenValid.trim() !== "" ? l.messageWhenValid : ""), H = L(!0), X = L(!0), oe = L([]), I = A(() => {
|
|
4036
|
+
var S, U;
|
|
4031
4037
|
return [
|
|
4032
4038
|
...((S = oe.value) == null ? void 0 : S.filter((W) => ((W == null ? void 0 : W.length) ?? 0) > 0)) ?? [],
|
|
4033
|
-
...((
|
|
4039
|
+
...((U = l.externalErrors) == null ? void 0 : U.filter((W) => ((W == null ? void 0 : W.length) ?? 0) > 0)) ?? []
|
|
4034
4040
|
].join(`
|
|
4035
4041
|
`);
|
|
4036
4042
|
}), h = A(() => ({
|
|
@@ -4045,16 +4051,16 @@ const dr = { class: "cl-flex cl-justify-between" }, fr = { class: "cl-w-full" },
|
|
|
4045
4051
|
async function f(S) {
|
|
4046
4052
|
l.validateOn === "input" && await k(S), r("update:model-value", S);
|
|
4047
4053
|
}
|
|
4048
|
-
async function v(S,
|
|
4049
|
-
l.onInputFunction !== void 0 && (S = l.onInputFunction(S)), l.validateOn === "change" && (X.value = !1), (
|
|
4054
|
+
async function v(S, U) {
|
|
4055
|
+
l.onInputFunction !== void 0 && (S = l.onInputFunction(S)), l.validateOn === "change" && (X.value = !1), (U || l.validateOn === "input") && await k(S), r("update:model-value", S);
|
|
4050
4056
|
}
|
|
4051
4057
|
function k(S) {
|
|
4052
|
-
const
|
|
4058
|
+
const U = {
|
|
4053
4059
|
message: "",
|
|
4054
4060
|
valid: !0
|
|
4055
4061
|
}, W = [
|
|
4056
4062
|
l.customValidationFunction === null || l.customValidationFunction === void 0 ? new Promise((be) => {
|
|
4057
|
-
be(
|
|
4063
|
+
be(U);
|
|
4058
4064
|
}) : new Promise((be) => {
|
|
4059
4065
|
be(l.customValidationFunction(l.label, S));
|
|
4060
4066
|
})
|
|
@@ -4071,22 +4077,22 @@ const dr = { class: "cl-flex cl-justify-between" }, fr = { class: "cl-w-full" },
|
|
|
4071
4077
|
function $(S) {
|
|
4072
4078
|
He(l.inputType) ? (S.preventDefault(), r("click", S)) : l.inputType === "checkbox" && r("click", S);
|
|
4073
4079
|
}
|
|
4074
|
-
function
|
|
4080
|
+
function C(S) {
|
|
4075
4081
|
if (n.value) {
|
|
4076
4082
|
n.value.stepUp(), n.value.focus(), v(n.value.valueAsNumber, !1);
|
|
4077
|
-
const
|
|
4083
|
+
const U = {
|
|
4078
4084
|
target: n.value
|
|
4079
4085
|
};
|
|
4080
|
-
r("input",
|
|
4086
|
+
r("input", U, n.value.valueAsNumber), r("change", S, n.value.valueAsNumber);
|
|
4081
4087
|
}
|
|
4082
4088
|
}
|
|
4083
|
-
function
|
|
4089
|
+
function q(S) {
|
|
4084
4090
|
if (n.value) {
|
|
4085
4091
|
n.value.stepDown(), n.value.focus(), v(n.value.valueAsNumber, !1);
|
|
4086
|
-
const
|
|
4092
|
+
const U = {
|
|
4087
4093
|
target: n.value
|
|
4088
4094
|
};
|
|
4089
|
-
r("input",
|
|
4095
|
+
r("input", U, n.value.valueAsNumber), r("change", S, n.value.valueAsNumber);
|
|
4090
4096
|
}
|
|
4091
4097
|
}
|
|
4092
4098
|
function E(S) {
|
|
@@ -4104,12 +4110,12 @@ const dr = { class: "cl-flex cl-justify-between" }, fr = { class: "cl-w-full" },
|
|
|
4104
4110
|
function se() {
|
|
4105
4111
|
var W;
|
|
4106
4112
|
let S = !0;
|
|
4107
|
-
const
|
|
4108
|
-
return d.value ? S =
|
|
4113
|
+
const U = c.value;
|
|
4114
|
+
return d.value ? S = U : u.value && ((W = p.value) == null ? void 0 : W.toString().trim()) === "" && l.requiredText.trim() !== "" && (S = !1), !l.hideRequiredAsterisk && S;
|
|
4109
4115
|
}
|
|
4110
|
-
async function ce(S,
|
|
4116
|
+
async function ce(S, U) {
|
|
4111
4117
|
if (S) {
|
|
4112
|
-
const W = l.inputType === "currency" ?
|
|
4118
|
+
const W = l.inputType === "currency" ? U ?? 0 : Gl(S, l.inputType);
|
|
4113
4119
|
l.validateOn === "change" && await k(W), r("change", S, W);
|
|
4114
4120
|
}
|
|
4115
4121
|
}
|
|
@@ -4127,20 +4133,20 @@ const dr = { class: "cl-flex cl-justify-between" }, fr = { class: "cl-w-full" },
|
|
|
4127
4133
|
}
|
|
4128
4134
|
), e({
|
|
4129
4135
|
focus() {
|
|
4130
|
-
var S,
|
|
4131
|
-
l.inputType === "currency" ? (S = a == null ? void 0 : a.value) == null || S.focus() : (
|
|
4136
|
+
var S, U;
|
|
4137
|
+
l.inputType === "currency" ? (S = a == null ? void 0 : a.value) == null || S.focus() : (U = n.value) == null || U.focus();
|
|
4132
4138
|
},
|
|
4133
4139
|
blur() {
|
|
4134
|
-
var S,
|
|
4135
|
-
l.inputType === "currency" ? (S = a == null ? void 0 : a.value) == null || S.blur() : (
|
|
4140
|
+
var S, U;
|
|
4141
|
+
l.inputType === "currency" ? (S = a == null ? void 0 : a.value) == null || S.blur() : (U = n.value) == null || U.blur();
|
|
4136
4142
|
}
|
|
4137
|
-
}), (S,
|
|
4143
|
+
}), (S, U) => (m(), w("div", ie({ ...S.$attrs, id: void 0 }, {
|
|
4138
4144
|
key: s.value,
|
|
4139
4145
|
class: "cl-align-top cl-border-none cl-inline-block cl-text-left"
|
|
4140
4146
|
}), [
|
|
4141
4147
|
g("div", {
|
|
4142
|
-
onMouseenter:
|
|
4143
|
-
onMouseleave:
|
|
4148
|
+
onMouseenter: U[13] || (U[13] = (W) => E(!0)),
|
|
4149
|
+
onMouseleave: U[14] || (U[14] = (W) => E(!1))
|
|
4144
4150
|
}, [
|
|
4145
4151
|
g("div", dr, [
|
|
4146
4152
|
g("div", fr, [
|
|
@@ -4148,14 +4154,14 @@ const dr = { class: "cl-flex cl-justify-between" }, fr = { class: "cl-w-full" },
|
|
|
4148
4154
|
[te, S.showLabel && S.label !== ""]
|
|
4149
4155
|
])
|
|
4150
4156
|
]),
|
|
4151
|
-
S.isRequired && c.value ? (m(), w("label", pr, " * ")) :
|
|
4152
|
-
S.isRequired && !c.value && S.requiredText.length ? (m(), w("label", mr, M(S.requiredText), 1)) :
|
|
4157
|
+
S.isRequired && c.value ? (m(), w("label", pr, " * ")) : P("", !0),
|
|
4158
|
+
S.isRequired && !c.value && S.requiredText.length ? (m(), w("label", mr, M(S.requiredText), 1)) : P("", !0)
|
|
4153
4159
|
]),
|
|
4154
4160
|
S.inputType !== "range" && S.inputType !== "currency" && !b(Hl)(S.inputType) ? (m(), w("div", vr, [
|
|
4155
4161
|
J(g("input", ie({
|
|
4156
4162
|
ref_key: "inputElement",
|
|
4157
4163
|
ref: n,
|
|
4158
|
-
"onUpdate:modelValue":
|
|
4164
|
+
"onUpdate:modelValue": U[0] || (U[0] = (W) => p.value = W)
|
|
4159
4165
|
}, S.$attrs, {
|
|
4160
4166
|
class: ["!cl-mb-1 cl-block cl-border cl-duration-300 cl-h-full cl-transition cl-w-full focus:cl-outline-none", {
|
|
4161
4167
|
"hover:!cl-border-grey-3": S.disabled === !1 && !b(He)(S.inputType),
|
|
@@ -4178,11 +4184,11 @@ const dr = { class: "cl-flex cl-justify-between" }, fr = { class: "cl-w-full" },
|
|
|
4178
4184
|
placeholder: i.value,
|
|
4179
4185
|
name: S.group,
|
|
4180
4186
|
autocomplete: S.autocomplete,
|
|
4181
|
-
onClick:
|
|
4182
|
-
onFocus:
|
|
4187
|
+
onClick: U[1] || (U[1] = (W) => $(W)),
|
|
4188
|
+
onFocus: U[2] || (U[2] = (W) => r("focus")),
|
|
4183
4189
|
onBlur: ae(Ce, ["self"]),
|
|
4184
4190
|
onMousewheelPassive: G,
|
|
4185
|
-
onInput:
|
|
4191
|
+
onInput: U[3] || (U[3] = (W) => {
|
|
4186
4192
|
r("input", W, b(Gl)(W, S.inputType));
|
|
4187
4193
|
}),
|
|
4188
4194
|
onChange: ce
|
|
@@ -4198,20 +4204,20 @@ const dr = { class: "cl-flex cl-justify-between" }, fr = { class: "cl-w-full" },
|
|
|
4198
4204
|
N(b(Z), {
|
|
4199
4205
|
icon: "ph:caret-up-bold",
|
|
4200
4206
|
class: "cl-absolute cl-bg-link-default cl-right-1 cl-rounded-full cl-text-sm cl-text-white cl-top-1 hover:cl-bg-link-light hover:cl-cursor-pointer",
|
|
4201
|
-
onClick:
|
|
4202
|
-
onMousedown:
|
|
4207
|
+
onClick: C,
|
|
4208
|
+
onMousedown: U[4] || (U[4] = ae(() => {
|
|
4203
4209
|
}, ["prevent"]))
|
|
4204
4210
|
}),
|
|
4205
4211
|
N(b(Z), {
|
|
4206
4212
|
icon: "ph:caret-down-bold",
|
|
4207
4213
|
class: "cl-absolute cl-bg-link-default cl-bottom-2 cl-right-1 cl-rounded-full cl-text-sm cl-text-white hover:cl-bg-link-light hover:cl-cursor-pointer",
|
|
4208
|
-
onClick:
|
|
4209
|
-
onMousedown:
|
|
4214
|
+
onClick: q,
|
|
4215
|
+
onMousedown: U[5] || (U[5] = ae(() => {
|
|
4210
4216
|
}, ["prevent"]))
|
|
4211
4217
|
})
|
|
4212
4218
|
], 512)), [
|
|
4213
4219
|
[te, d.value]
|
|
4214
|
-
]) :
|
|
4220
|
+
]) : P("", !0)
|
|
4215
4221
|
]),
|
|
4216
4222
|
_: 1
|
|
4217
4223
|
})
|
|
@@ -4220,7 +4226,7 @@ const dr = { class: "cl-flex cl-justify-between" }, fr = { class: "cl-w-full" },
|
|
|
4220
4226
|
ref_key: "currencyInputRef",
|
|
4221
4227
|
ref: a,
|
|
4222
4228
|
modelValue: p.value,
|
|
4223
|
-
"onUpdate:modelValue":
|
|
4229
|
+
"onUpdate:modelValue": U[6] || (U[6] = (W) => p.value = W),
|
|
4224
4230
|
modelModifiers: { lazy: !0 }
|
|
4225
4231
|
}, S.$attrs, {
|
|
4226
4232
|
disabled: S.disabled,
|
|
@@ -4231,15 +4237,15 @@ const dr = { class: "cl-flex cl-justify-between" }, fr = { class: "cl-w-full" },
|
|
|
4231
4237
|
group: S.group,
|
|
4232
4238
|
step: S.step,
|
|
4233
4239
|
"currency-options": h.value,
|
|
4234
|
-
onChange:
|
|
4235
|
-
onFocus:
|
|
4240
|
+
onChange: U[7] || (U[7] = (W, be) => ce(W, be)),
|
|
4241
|
+
onFocus: U[8] || (U[8] = (W) => r("focus")),
|
|
4236
4242
|
onBlur: R
|
|
4237
4243
|
}), null, 16, ["modelValue", "disabled", "placeholder", "is-valid", "highlight-when-valid", "input-specific-classes", "group", "step", "currency-options"])
|
|
4238
4244
|
])) : b(Hl)(S.inputType) ? (m(), _(b(Bn), ie({ key: 2 }, S.$attrs, {
|
|
4239
4245
|
ref_key: "inputElement",
|
|
4240
4246
|
ref: n,
|
|
4241
4247
|
date: y.value,
|
|
4242
|
-
"onUpdate:date":
|
|
4248
|
+
"onUpdate:date": U[9] || (U[9] = (W) => y.value = W),
|
|
4243
4249
|
class: ["cl-block cl-duration-300 cl-h-fit cl-mb-1 cl-rounded-lg cl-text-sm cl-transition cl-w-full focus:cl-outline-none", {
|
|
4244
4250
|
"hover:cl-border-grey-3": !S.disabled && S.inputType !== "dateRange",
|
|
4245
4251
|
"!cl-border-danger-default": !H.value,
|
|
@@ -4249,33 +4255,33 @@ const dr = { class: "cl-flex cl-justify-between" }, fr = { class: "cl-w-full" },
|
|
|
4249
4255
|
required: S.isRequired,
|
|
4250
4256
|
type: b(ur)(S.inputType),
|
|
4251
4257
|
"time-zone": S.timeZone,
|
|
4252
|
-
min:
|
|
4258
|
+
min: O.value,
|
|
4253
4259
|
max: D.value,
|
|
4254
4260
|
placeholder: i.value,
|
|
4255
4261
|
"initial-date": S.initialDate,
|
|
4256
4262
|
"quick-date-scope": S.quickDateScope,
|
|
4257
4263
|
"date-format-locale": S.dateFormatLocale,
|
|
4258
4264
|
onBlur: ae(R, ["self"]),
|
|
4259
|
-
onFocus:
|
|
4265
|
+
onFocus: U[10] || (U[10] = (W) => r("focus"))
|
|
4260
4266
|
}), null, 16, ["date", "class", "disabled", "required", "type", "time-zone", "min", "max", "placeholder", "initial-date", "quick-date-scope", "date-format-locale"])) : S.inputType === "range" && typeof p.value == "number" ? (m(), w("div", yr, [
|
|
4261
4267
|
N(b(sr), {
|
|
4262
4268
|
ref_key: "inputElement",
|
|
4263
4269
|
ref: n,
|
|
4264
4270
|
value: p.value,
|
|
4265
|
-
"onUpdate:value":
|
|
4266
|
-
min:
|
|
4271
|
+
"onUpdate:value": U[11] || (U[11] = (W) => p.value = W),
|
|
4272
|
+
min: T.value ?? 0,
|
|
4267
4273
|
max: F.value ?? 1e3,
|
|
4268
4274
|
step: S.step,
|
|
4269
4275
|
placeholder: i.value,
|
|
4270
4276
|
"enforce-step": !0,
|
|
4271
4277
|
disabled: S.disabled,
|
|
4272
4278
|
onBlur: ae(R, ["self"]),
|
|
4273
|
-
onFocus:
|
|
4279
|
+
onFocus: U[12] || (U[12] = (W) => r("focus"))
|
|
4274
4280
|
}, null, 8, ["value", "min", "max", "step", "placeholder", "disabled"])
|
|
4275
|
-
])) :
|
|
4281
|
+
])) : P("", !0)
|
|
4276
4282
|
], 32),
|
|
4277
|
-
H.value &&
|
|
4278
|
-
!H.value && I.value.length > 0 && S.showValidationMessages && X.value ? (m(), w("div", kr, M(I.value), 1)) :
|
|
4283
|
+
H.value && V.value && X.value ? (m(), w("div", wr, M(V.value), 1)) : P("", !0),
|
|
4284
|
+
!H.value && I.value.length > 0 && S.showValidationMessages && X.value ? (m(), w("div", kr, M(I.value), 1)) : P("", !0)
|
|
4279
4285
|
], 16));
|
|
4280
4286
|
}
|
|
4281
4287
|
}), yl = /* @__PURE__ */ ke($r, [["__scopeId", "data-v-7748b62a"]]), Sr = [
|
|
@@ -4484,8 +4490,8 @@ const Ar = {
|
|
|
4484
4490
|
var p;
|
|
4485
4491
|
let s = (p = t.filter) == null ? void 0 : p.filterMethod;
|
|
4486
4492
|
return typeof s > "u" && (s = le[t.defaultOperation].replace("_", "").toLowerCase()), n.value.find((y) => {
|
|
4487
|
-
var
|
|
4488
|
-
return y.method.toLowerCase() === ((
|
|
4493
|
+
var O;
|
|
4494
|
+
return y.method.toLowerCase() === ((O = s == null ? void 0 : s.removeNonAlphanumeric()) == null ? void 0 : O.toLowerCase());
|
|
4489
4495
|
});
|
|
4490
4496
|
});
|
|
4491
4497
|
function d(s) {
|
|
@@ -4517,7 +4523,7 @@ const Ar = {
|
|
|
4517
4523
|
"cl-text-grey-4": t.filter === void 0 || t.filter.filterValue === "",
|
|
4518
4524
|
"cl-text-primary-default": t.filter && t.filter.filterValue !== ""
|
|
4519
4525
|
}])
|
|
4520
|
-
}, null, 8, ["icon", "class"])) :
|
|
4526
|
+
}, null, 8, ["icon", "class"])) : P("", !0)
|
|
4521
4527
|
]),
|
|
4522
4528
|
g("div", {
|
|
4523
4529
|
class: B(["cl-absolute cl-bg-white cl-border cl-border-grey-0 cl-flex-wrap cl-font-normal cl-h-0 cl-hidden cl-rounded cl-shadow-lg cl-text-left cl-text-xs cl-top-8 cl-z-10", {
|
|
@@ -4527,14 +4533,14 @@ const Ar = {
|
|
|
4527
4533
|
}])
|
|
4528
4534
|
}, [
|
|
4529
4535
|
g("strong", Rr, M(b(r)("grid.availableMethods")), 1),
|
|
4530
|
-
(m(!0), w(ee, null, ue(n.value, (y,
|
|
4536
|
+
(m(!0), w(ee, null, ue(n.value, (y, O) => {
|
|
4531
4537
|
var D;
|
|
4532
4538
|
return m(), w("span", {
|
|
4533
|
-
key:
|
|
4539
|
+
key: O,
|
|
4534
4540
|
class: B(["cl-cursor-pointer cl-px-4 cl-py-1 cl-transition-colors cl-w-full hover:cl-bg-grey-0", {
|
|
4535
4541
|
"cl-bg-primary-default cl-opacity-80": y.method === ((D = a.value) == null ? void 0 : D.method)
|
|
4536
4542
|
}]),
|
|
4537
|
-
onClick: ae((
|
|
4543
|
+
onClick: ae((T) => d(y.method), ["prevent"])
|
|
4538
4544
|
}, [
|
|
4539
4545
|
pe(M(y.description) + " ", 1),
|
|
4540
4546
|
N(b(Z), {
|
|
@@ -4549,7 +4555,7 @@ const Ar = {
|
|
|
4549
4555
|
}), jr = {
|
|
4550
4556
|
key: 0,
|
|
4551
4557
|
class: "cl-border cl-border-grey-2 cl-flex cl-overflow-hidden cl-rounded-md lg:cl-overflow-visible"
|
|
4552
|
-
},
|
|
4558
|
+
}, Ur = ["id", "disabled"], Pr = /* @__PURE__ */ g("option", { value: void 0 }, null, -1), zr = ["selected"], Br = ["selected"], xr = /* @__PURE__ */ g("span", null, null, -1), Hr = {
|
|
4553
4559
|
key: 4,
|
|
4554
4560
|
class: "cl-w-full"
|
|
4555
4561
|
}, Gr = /* @__PURE__ */ g("span", null, null, -1), Wr = ["id", "disabled"], Kr = /* @__PURE__ */ g("option", { value: void 0 }, null, -1), Zr = ["value", "selected"], _r = /* @__PURE__ */ K({
|
|
@@ -4573,7 +4579,7 @@ const Ar = {
|
|
|
4573
4579
|
set: (f) => l("update:filter", f)
|
|
4574
4580
|
}), c = A(() => t.column.type === "date" || t.column.type === "datetime" || t.column.type === "slot" && (t.column.slotType === "date" || t.column.slotType === "datetime")), i = A(() => t.column.type === "dateRange" || t.column.type === "slot" && t.column.slotType === "dateRange"), s = A(() => t.column.type === "list" || t.column.type === "slot" && t.column.slotType === "list"), p = A(() => s.value && t.column.listType === "number"), y = A({
|
|
4575
4581
|
get() {
|
|
4576
|
-
var v, k, j, $,
|
|
4582
|
+
var v, k, j, $, C, q, E;
|
|
4577
4583
|
let f = (v = u.value) == null ? void 0 : v[0];
|
|
4578
4584
|
if (f) {
|
|
4579
4585
|
if (c.value) {
|
|
@@ -4596,8 +4602,8 @@ const Ar = {
|
|
|
4596
4602
|
filterValue: R.plus({ milliseconds: 1 }).toISO() ?? ""
|
|
4597
4603
|
};
|
|
4598
4604
|
}
|
|
4599
|
-
} else if (i.value && (((
|
|
4600
|
-
const R = (
|
|
4605
|
+
} else if (i.value && (((C = t.filter) == null ? void 0 : C.length) ?? 0) > 1) {
|
|
4606
|
+
const R = (q = u.value) == null ? void 0 : q.find((G) => G.filterOperation === le.EQUAL_OR_GREATER_THAN), Q = (E = u.value) == null ? void 0 : E.find((G) => G.filterOperation === le.EQUAL_OR_LESS_THAN);
|
|
4601
4607
|
R && Q && (f = {
|
|
4602
4608
|
filterOnColumn: t.column.field,
|
|
4603
4609
|
filterOperation: le.EQUAL,
|
|
@@ -4614,17 +4620,17 @@ const Ar = {
|
|
|
4614
4620
|
set(f) {
|
|
4615
4621
|
let v = null;
|
|
4616
4622
|
if (c.value) {
|
|
4617
|
-
const k = f, j = (k == null ? void 0 : k.filterMethod) && D(k.filterMethod, k.filterValue, "equal"), $ = (k == null ? void 0 : k.filterMethod) && D(k.filterMethod, k.filterValue, "equalorlessthan"),
|
|
4623
|
+
const k = f, j = (k == null ? void 0 : k.filterMethod) && D(k.filterMethod, k.filterValue, "equal"), $ = (k == null ? void 0 : k.filterMethod) && D(k.filterMethod, k.filterValue, "equalorlessthan"), C = (k == null ? void 0 : k.filterMethod) && D(k.filterMethod, k.filterValue, "greaterthan");
|
|
4618
4624
|
if (j) {
|
|
4619
|
-
let
|
|
4625
|
+
let q = Y.fromISO(k.filterValue, {
|
|
4620
4626
|
zone: t.timeZone ?? "UTC"
|
|
4621
4627
|
}).set({
|
|
4622
4628
|
second: 0,
|
|
4623
4629
|
millisecond: 0
|
|
4624
4630
|
});
|
|
4625
|
-
const E =
|
|
4626
|
-
t.column.type === "date" || t.column.type === "slot" && t.column.slotType === "date" ?
|
|
4627
|
-
const R =
|
|
4631
|
+
const E = q.toISO();
|
|
4632
|
+
t.column.type === "date" || t.column.type === "slot" && t.column.slotType === "date" ? q = q.plus({ days: 1 }) : q = q.plus({ minutes: 1 });
|
|
4633
|
+
const R = q.toISO();
|
|
4628
4634
|
v = [
|
|
4629
4635
|
{
|
|
4630
4636
|
filterOnColumn: t.column.field,
|
|
@@ -4639,19 +4645,19 @@ const Ar = {
|
|
|
4639
4645
|
filterValue: R
|
|
4640
4646
|
}
|
|
4641
4647
|
];
|
|
4642
|
-
} else if ($ ||
|
|
4643
|
-
let
|
|
4648
|
+
} else if ($ || C) {
|
|
4649
|
+
let q = Y.fromISO(k.filterValue, {
|
|
4644
4650
|
zone: t.timeZone ?? "UTC"
|
|
4645
4651
|
}).set({
|
|
4646
4652
|
second: 0,
|
|
4647
4653
|
millisecond: 0
|
|
4648
4654
|
});
|
|
4649
|
-
t.column.type === "date" || t.column.type === "slot" && t.column.slotType === "date" ?
|
|
4655
|
+
t.column.type === "date" || t.column.type === "slot" && t.column.slotType === "date" ? q = q.plus({ days: 1 }) : q = q.plus({ minutes: 1 }), v = [
|
|
4650
4656
|
{
|
|
4651
4657
|
filterOnColumn: t.column.field,
|
|
4652
4658
|
filterOperation: $ ? le.EQUAL_OR_LESS_THAN : le.GREATER_THAN,
|
|
4653
4659
|
filterMethod: $ ? "equalorlessthan" : "greaterthan",
|
|
4654
|
-
filterValue:
|
|
4660
|
+
filterValue: q.minus({ milliseconds: 1 }).toISO()
|
|
4655
4661
|
}
|
|
4656
4662
|
];
|
|
4657
4663
|
}
|
|
@@ -4685,7 +4691,7 @@ const Ar = {
|
|
|
4685
4691
|
t.timeZone ? k.filterValue = Y.fromISO(k.filterValue).setZone("UTC").toISO() ?? "" : k.filterValue = k.filterValue.replace("Z", "");
|
|
4686
4692
|
u.value = v;
|
|
4687
4693
|
}
|
|
4688
|
-
}),
|
|
4694
|
+
}), O = A({
|
|
4689
4695
|
get: () => y.value,
|
|
4690
4696
|
set(f) {
|
|
4691
4697
|
y.value = f;
|
|
@@ -4694,22 +4700,22 @@ const Ar = {
|
|
|
4694
4700
|
function D(f, v, k) {
|
|
4695
4701
|
return v !== void 0 && v !== "" && f === k && c.value;
|
|
4696
4702
|
}
|
|
4697
|
-
const
|
|
4703
|
+
const T = A(() => {
|
|
4698
4704
|
var f;
|
|
4699
4705
|
return ((f = y.value) == null ? void 0 : f.filterValue) ?? "";
|
|
4700
|
-
}), F = A(() =>
|
|
4706
|
+
}), F = A(() => T.value === "" ? null : T.value), V = A(() => T.value === "" ? null : T.value), H = A(() => Tl(t.column));
|
|
4701
4707
|
function X(f, v) {
|
|
4702
|
-
var
|
|
4708
|
+
var C;
|
|
4703
4709
|
let k, j = !1;
|
|
4704
4710
|
const $ = ((f == null ? void 0 : f.value) ?? v).trim();
|
|
4705
4711
|
if (y.value)
|
|
4706
|
-
j = ((
|
|
4712
|
+
j = ((C = y.value) == null ? void 0 : C.filterValue) === $, k = ve(O.value), k.filterValue = $;
|
|
4707
4713
|
else if ($ !== "" && typeof t.column.field < "u") {
|
|
4708
|
-
const
|
|
4714
|
+
const q = d();
|
|
4709
4715
|
k = {
|
|
4710
4716
|
filterOnColumn: t.column.field,
|
|
4711
|
-
filterMethod: le[
|
|
4712
|
-
filterOperation:
|
|
4717
|
+
filterMethod: le[q].replace("_", "").toLowerCase(),
|
|
4718
|
+
filterOperation: q,
|
|
4713
4719
|
filterValue: $
|
|
4714
4720
|
};
|
|
4715
4721
|
} else
|
|
@@ -4753,16 +4759,16 @@ const Ar = {
|
|
|
4753
4759
|
class: "!cl-h-[2rem] cl-bg-white cl-border-none cl-font-normal cl-mb-0 cl-rounded-md cl-w-full",
|
|
4754
4760
|
onChange: v[0] || (v[0] = (k) => X(k.target))
|
|
4755
4761
|
}, [
|
|
4756
|
-
|
|
4762
|
+
Pr,
|
|
4757
4763
|
g("option", {
|
|
4758
4764
|
value: "true",
|
|
4759
|
-
selected:
|
|
4765
|
+
selected: T.value === "true"
|
|
4760
4766
|
}, M(b(r)("grid.true")), 9, zr),
|
|
4761
4767
|
g("option", {
|
|
4762
4768
|
value: "false",
|
|
4763
|
-
selected:
|
|
4769
|
+
selected: T.value === "false"
|
|
4764
4770
|
}, M(b(r)("grid.false")), 9, Br)
|
|
4765
|
-
], 40,
|
|
4771
|
+
], 40, Ur)) : c.value ? (m(), _(yl, {
|
|
4766
4772
|
key: 1,
|
|
4767
4773
|
id: `${b(h)}-${f.column.name}`,
|
|
4768
4774
|
"model-value": F.value,
|
|
@@ -4776,7 +4782,7 @@ const Ar = {
|
|
|
4776
4782
|
}, null, 8, ["id", "model-value", "disabled", "label", "input-type", "time-zone"])) : i.value ? (m(), _(yl, {
|
|
4777
4783
|
key: 2,
|
|
4778
4784
|
id: `${b(h)}-${f.column.name}`,
|
|
4779
|
-
"model-value":
|
|
4785
|
+
"model-value": V.value,
|
|
4780
4786
|
class: "!cl-h-[2rem] [&_.clear-icon]:-cl-m-1 [&_.icon]:cl-text-sm cl-border-none cl-mb-0 cl-w-full",
|
|
4781
4787
|
disabled: f.loading,
|
|
4782
4788
|
"input-type": "dateRange",
|
|
@@ -4786,7 +4792,7 @@ const Ar = {
|
|
|
4786
4792
|
}, null, 8, ["id", "model-value", "disabled", "time-zone", "quick-date-scope"])) : f.column.type === "number" || f.column.type === "slot" && f.column.slotType === "number" ? (m(), _(_e, {
|
|
4787
4793
|
key: 3,
|
|
4788
4794
|
id: `${b(h)}-${f.column.name}`,
|
|
4789
|
-
"model-value":
|
|
4795
|
+
"model-value": T.value === "" || isNaN(+T.value) ? null : +T.value,
|
|
4790
4796
|
format: f.column.format === b(re).INTEGER ? b(re).DECIMAL : f.column.format,
|
|
4791
4797
|
precision: b(n)(b(a))[f.column.format ?? b(re).DECIMAL].maximumFractionDigits,
|
|
4792
4798
|
class: "cl-border-none cl-font-normal cl-h-[2rem] cl-mb-0 cl-text-xs cl-w-full lg:cl-text-base",
|
|
@@ -4804,7 +4810,7 @@ const Ar = {
|
|
|
4804
4810
|
}, 8, ["id", "model-value", "format", "precision", "disabled", "readonly"])) : f.column.type === "string" || f.column.type === "slot" && f.column.slotType === "string" ? (m(), w("div", Hr, [
|
|
4805
4811
|
N(Ne, {
|
|
4806
4812
|
id: `${b(h)}-${f.column.name}`,
|
|
4807
|
-
"model-value":
|
|
4813
|
+
"model-value": T.value,
|
|
4808
4814
|
class: "cl-border-none cl-font-normal cl-h-[2rem] cl-px-3 cl-text-xs lg:cl-text-base",
|
|
4809
4815
|
disabled: f.loading,
|
|
4810
4816
|
"onUpdate:modelValue": v[4] || (v[4] = (k) => X(null, k))
|
|
@@ -4825,18 +4831,18 @@ const Ar = {
|
|
|
4825
4831
|
(m(!0), w(ee, null, ue(f.column.listEntries ?? [], (k) => (m(), w("option", {
|
|
4826
4832
|
key: k.value,
|
|
4827
4833
|
value: k.value,
|
|
4828
|
-
selected:
|
|
4834
|
+
selected: T.value === k.value.toString()
|
|
4829
4835
|
}, M(b(r)(k.translationKey)), 9, Zr))), 128))
|
|
4830
|
-
], 40, Wr)) :
|
|
4831
|
-
i.value ?
|
|
4836
|
+
], 40, Wr)) : P("", !0),
|
|
4837
|
+
i.value ? P("", !0) : (m(), _(Lr, {
|
|
4832
4838
|
key: 6,
|
|
4833
|
-
filter:
|
|
4834
|
-
"onUpdate:filter": v[6] || (v[6] = (k) =>
|
|
4839
|
+
filter: O.value,
|
|
4840
|
+
"onUpdate:filter": v[6] || (v[6] = (k) => O.value = k),
|
|
4835
4841
|
loading: f.loading,
|
|
4836
4842
|
column: f.column,
|
|
4837
4843
|
"default-operation": d()
|
|
4838
4844
|
}, null, 8, ["filter", "loading", "column", "default-operation"]))
|
|
4839
|
-
])) :
|
|
4845
|
+
])) : P("", !0);
|
|
4840
4846
|
}
|
|
4841
4847
|
}), Qr = { 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" }, Yr = { class: "cl-hidden lg:cl-table-row" }, Jr = ["onClick"], Xr = { class: "cl-flex cl-justify-end cl-w-full lg:cl-hidden" }, ei = { class: "cl-col-span-2 lg:cl-hidden" }, li = ["onClick"], ti = { class: "cl-font-normal cl-mr-1" }, oi = /* @__PURE__ */ K({
|
|
4842
4848
|
__name: "cl-ui-grid-header",
|
|
@@ -4940,7 +4946,7 @@ const Ar = {
|
|
|
4940
4946
|
class: "cl-cursor-pointer cl-inline-block",
|
|
4941
4947
|
icon: "ph:minus"
|
|
4942
4948
|
}))
|
|
4943
|
-
], 8, li)) :
|
|
4949
|
+
], 8, li)) : P("", !0),
|
|
4944
4950
|
N(_r, {
|
|
4945
4951
|
class: "cl-col-span-4",
|
|
4946
4952
|
loading: c.loading,
|
|
@@ -4966,7 +4972,7 @@ const Ar = {
|
|
|
4966
4972
|
}),
|
|
4967
4973
|
emits: /* @__PURE__ */ Te(["update:request"], ["update:searchValue"]),
|
|
4968
4974
|
setup(o, { emit: e }) {
|
|
4969
|
-
const t = o, l =
|
|
4975
|
+
const t = o, l = Ue(o, "searchValue"), r = e, n = A({
|
|
4970
4976
|
get: () => t.request,
|
|
4971
4977
|
set: (u) => r("update:request", u)
|
|
4972
4978
|
});
|
|
@@ -5084,13 +5090,13 @@ const Ar = {
|
|
|
5084
5090
|
class: "cl-cursor-pointer cl-inline-block cl-mr-2",
|
|
5085
5091
|
icon: "ph:arrow-left",
|
|
5086
5092
|
onClick: (y) => u(p, "down")
|
|
5087
|
-
}, null, 8, ["onClick"])) :
|
|
5093
|
+
}, null, 8, ["onClick"])) : P("", !0),
|
|
5088
5094
|
p !== c.columns.length - 1 ? (m(), _(b(Z), {
|
|
5089
5095
|
key: 1,
|
|
5090
5096
|
class: "cl-cursor-pointer cl-inline-block",
|
|
5091
5097
|
icon: "ph:arrow-right",
|
|
5092
5098
|
onClick: (y) => u(p, "up")
|
|
5093
|
-
}, null, 8, ["onClick"])) :
|
|
5099
|
+
}, null, 8, ["onClick"])) : P("", !0)
|
|
5094
5100
|
], 64)) : (m(), w("em", yi, M(b(r)("grid.hidden")), 1))
|
|
5095
5101
|
])
|
|
5096
5102
|
]))), 128))
|
|
@@ -5149,17 +5155,18 @@ const Ar = {
|
|
|
5149
5155
|
const h = ve(p.value);
|
|
5150
5156
|
h.pageNumber = 1, h.filters = [], X.value = "", p.value = h;
|
|
5151
5157
|
}
|
|
5152
|
-
const
|
|
5153
|
-
ne(p,
|
|
5158
|
+
const O = It(() => l("data-request"), 750);
|
|
5159
|
+
ne(p, O, {
|
|
5154
5160
|
deep: !0,
|
|
5155
5161
|
immediate: !0
|
|
5156
5162
|
});
|
|
5157
|
-
const D = A(() => t.data),
|
|
5158
|
-
ne(
|
|
5159
|
-
|
|
5163
|
+
const D = A(() => t.data), T = L(!1), F = L(!1);
|
|
5164
|
+
ne(T, () => {
|
|
5165
|
+
T.value ? l("edit-start") : Pe(() => l("edit-end"));
|
|
5160
5166
|
});
|
|
5161
|
-
const
|
|
5167
|
+
const V = A(() => ({
|
|
5162
5168
|
highlightRowSelection: !0,
|
|
5169
|
+
disableUnsavedChangesWarning: !1,
|
|
5163
5170
|
...t.options
|
|
5164
5171
|
})), H = A({
|
|
5165
5172
|
get() {
|
|
@@ -5190,7 +5197,7 @@ const Ar = {
|
|
|
5190
5197
|
z(h.$slots, "search", me(ge(v)))
|
|
5191
5198
|
]),
|
|
5192
5199
|
_: 3
|
|
5193
|
-
}, 8, ["search-value", "request", "columns"])) :
|
|
5200
|
+
}, 8, ["search-value", "request", "columns"])) : P("", !0),
|
|
5194
5201
|
N(Ee, { name: "fade" }, {
|
|
5195
5202
|
default: x(() => [
|
|
5196
5203
|
J(g("div", $i, [
|
|
@@ -5202,12 +5209,12 @@ const Ar = {
|
|
|
5202
5209
|
_: 1
|
|
5203
5210
|
}),
|
|
5204
5211
|
N(Aa, {
|
|
5205
|
-
"edit-mode":
|
|
5206
|
-
"onUpdate:editMode": f[3] || (f[3] = (v) =>
|
|
5212
|
+
"edit-mode": T.value,
|
|
5213
|
+
"onUpdate:editMode": f[3] || (f[3] = (v) => T.value = v),
|
|
5207
5214
|
"filter-panel-open": F.value,
|
|
5208
5215
|
"onUpdate:filterPanelOpen": f[4] || (f[4] = (v) => F.value = v),
|
|
5209
5216
|
columns: h.columns,
|
|
5210
|
-
options:
|
|
5217
|
+
options: V.value,
|
|
5211
5218
|
request: p.value,
|
|
5212
5219
|
loading: h.loading,
|
|
5213
5220
|
onClearFilters: y
|
|
@@ -5243,7 +5250,7 @@ const Ar = {
|
|
|
5243
5250
|
"filter-panel-open": F.value,
|
|
5244
5251
|
"onUpdate:filterPanelOpen": f[6] || (f[6] = (v) => F.value = v),
|
|
5245
5252
|
columns: u.value,
|
|
5246
|
-
options:
|
|
5253
|
+
options: V.value,
|
|
5247
5254
|
loading: h.loading,
|
|
5248
5255
|
"time-zone": h.timeZone,
|
|
5249
5256
|
"header-display-timezone": n.value
|
|
@@ -5255,8 +5262,8 @@ const Ar = {
|
|
|
5255
5262
|
"time-zone": h.timeZone,
|
|
5256
5263
|
loading: h.loading,
|
|
5257
5264
|
"search-value": X.value,
|
|
5258
|
-
options:
|
|
5259
|
-
"edit-mode":
|
|
5265
|
+
options: V.value,
|
|
5266
|
+
"edit-mode": T.value,
|
|
5260
5267
|
onClearFilters: y,
|
|
5261
5268
|
onRowEdit: f[7] || (f[7] = (v) => h.$emit("row-edit", v)),
|
|
5262
5269
|
onRowEditCancelled: f[8] || (f[8] = (v) => h.$emit("row-edit-cancelled", v)),
|
|
@@ -5273,10 +5280,13 @@ const Ar = {
|
|
|
5273
5280
|
]),
|
|
5274
5281
|
N(Dn, {
|
|
5275
5282
|
request: p.value,
|
|
5276
|
-
"onUpdate:request": f[10] || (f[10] = (v) => p.value = v),
|
|
5277
5283
|
loading: h.loading,
|
|
5278
|
-
|
|
5279
|
-
|
|
5284
|
+
"show-unsaved-changes-warning": T.value && V.value.disableUnsavedChangesWarning === !1,
|
|
5285
|
+
data: h.data,
|
|
5286
|
+
"onUpdate:request": f[10] || (f[10] = (v) => {
|
|
5287
|
+
T.value = !1, p.value = v;
|
|
5288
|
+
})
|
|
5289
|
+
}, null, 8, ["request", "loading", "show-unsaved-changes-warning", "data"])
|
|
5280
5290
|
]));
|
|
5281
5291
|
}
|
|
5282
5292
|
}), Oi = { 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" }, Ei = /* @__PURE__ */ K({
|
|
@@ -5344,8 +5354,8 @@ const Ar = {
|
|
|
5344
5354
|
"cl-text-white": e.colour === "secondary"
|
|
5345
5355
|
}])
|
|
5346
5356
|
}, [
|
|
5347
|
-
e.username ? (m(), w("div", Ni, M(e.username), 1)) :
|
|
5348
|
-
e.group ? (m(), w("div", Ai, M(e.group), 1)) :
|
|
5357
|
+
e.username ? (m(), w("div", Ni, M(e.username), 1)) : P("", !0),
|
|
5358
|
+
e.group ? (m(), w("div", Ai, M(e.group), 1)) : P("", !0)
|
|
5349
5359
|
], 2),
|
|
5350
5360
|
g("div", Vi, [
|
|
5351
5361
|
N(b(Z), {
|
|
@@ -5409,10 +5419,10 @@ function Li(o) {
|
|
|
5409
5419
|
function ji(o) {
|
|
5410
5420
|
return typeof o.name == "string" && typeof o.nativeName == "string" && typeof o.localeCode == "string";
|
|
5411
5421
|
}
|
|
5412
|
-
const
|
|
5422
|
+
const Ui = {
|
|
5413
5423
|
key: 0,
|
|
5414
5424
|
class: "cl-flex cl-relative cl-select-none cl-w-auto cl-z-30"
|
|
5415
|
-
},
|
|
5425
|
+
}, Pi = { 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" }, zi = ["data-localename", "data-localecode", "onClick"], Bi = { class: "cl-text-xs" }, xi = /* @__PURE__ */ K({
|
|
5416
5426
|
__name: "cl-ui-language-switcher",
|
|
5417
5427
|
props: {
|
|
5418
5428
|
supportedLanguages: {},
|
|
@@ -5424,14 +5434,14 @@ const Pi = {
|
|
|
5424
5434
|
const t = o, l = e, { locale: r } = de(), n = L(!1), a = A(() => t.supportedLanguages.find((i) => i.localeCode === r.value) ?? u(t.supportedLanguages, r.value) ?? t.defaultLangauge), d = A(() => t.supportedLanguages.filter((i) => wl(i)).sort((i, s) => i.nativeName > s.nativeName ? 1 : s.nativeName > i.nativeName ? -1 : 0));
|
|
5425
5435
|
function u(i, s) {
|
|
5426
5436
|
const p = s.split("-")[0];
|
|
5427
|
-
return i.find((
|
|
5437
|
+
return i.find((O) => O.localeCode.split("-")[0] === p) ?? null;
|
|
5428
5438
|
}
|
|
5429
5439
|
function c() {
|
|
5430
5440
|
t.disabled || (n.value = !n.value);
|
|
5431
5441
|
}
|
|
5432
5442
|
return ne(() => t.disabled, (i) => {
|
|
5433
5443
|
i && (n.value = !1);
|
|
5434
|
-
}), (i, s) => a.value !== null && b(wl)(a.value) ? (m(), w("div",
|
|
5444
|
+
}), (i, s) => a.value !== null && b(wl)(a.value) ? (m(), w("div", Ui, [
|
|
5435
5445
|
g("div", {
|
|
5436
5446
|
class: B(["cl-flex cl-items-center", {
|
|
5437
5447
|
"cl-cursor-pointer": !i.disabled
|
|
@@ -5446,13 +5456,13 @@ const Pi = {
|
|
|
5446
5456
|
], 2),
|
|
5447
5457
|
N(Ee, { name: "fade" }, {
|
|
5448
5458
|
default: x(() => [
|
|
5449
|
-
J(g("div",
|
|
5459
|
+
J(g("div", Pi, [
|
|
5450
5460
|
(m(!0), w(ee, null, ue(d.value, (p, y) => (m(), w("div", {
|
|
5451
5461
|
key: y,
|
|
5452
5462
|
class: "cl-border-b cl-border-grey-0 cl-cursor-pointer cl-flex cl-items-center cl-justify-center cl-p-1 cl-text-center cl-transition-colors cl-w-28 hover:cl-bg-grey-0 last-child:cl-border-b-0 last:cl-border-b-0 lg:cl-p-2",
|
|
5453
5463
|
"data-localename": p.name,
|
|
5454
5464
|
"data-localecode": p.localeCode,
|
|
5455
|
-
onClick: (
|
|
5465
|
+
onClick: (O) => {
|
|
5456
5466
|
r.value = p.localeCode, c(), l("language-select", p.localeCode);
|
|
5457
5467
|
}
|
|
5458
5468
|
}, [
|
|
@@ -5464,7 +5474,7 @@ const Pi = {
|
|
|
5464
5474
|
]),
|
|
5465
5475
|
_: 1
|
|
5466
5476
|
})
|
|
5467
|
-
])) :
|
|
5477
|
+
])) : P("", !0);
|
|
5468
5478
|
}
|
|
5469
5479
|
}), Hi = { class: "cl-relative" }, Gi = { class: "cl-h-full cl-z-0 xl:cl-h-screen" }, Wi = { class: "cl-absolute cl-bg-secondary-default cl-gap-y-1 cl-grid cl-grid-cols-1 cl-left-0 cl-opacity-95 cl-p-6 cl-top-0 cl-w-full cl-z-10 lg:cl-gap-x-1 lg:cl-grid-cols-10 lg:cl-p-10" }, Ki = { class: "cl-col-span-10 lg:cl-col-span-3" }, Zi = {
|
|
5470
5480
|
key: 0,
|
|
@@ -5504,7 +5514,7 @@ const Pi = {
|
|
|
5504
5514
|
]),
|
|
5505
5515
|
i.$slots["language-switcher"] ? (m(), w("div", Zi, [
|
|
5506
5516
|
z(i.$slots, "language-switcher")
|
|
5507
|
-
])) :
|
|
5517
|
+
])) : P("", !0),
|
|
5508
5518
|
g("div", {
|
|
5509
5519
|
class: B(["cl-gap-y-4 cl-grid cl-grid-cols-1 lg:cl-gap-x-2 lg:cl-grid-cols-8", {
|
|
5510
5520
|
"cl-col-span-7": !i.$slots["language-switcher"],
|
|
@@ -5538,7 +5548,7 @@ const Pi = {
|
|
|
5538
5548
|
]),
|
|
5539
5549
|
_: 1
|
|
5540
5550
|
}, 8, ["modelValue", "class", "errors", "placeholder"]),
|
|
5541
|
-
d.value ? (m(), w("div", Xi, M(b(l)("login.validEmail")), 1)) :
|
|
5551
|
+
d.value ? (m(), w("div", Xi, M(b(l)("login.validEmail")), 1)) : P("", !0)
|
|
5542
5552
|
])
|
|
5543
5553
|
])
|
|
5544
5554
|
]),
|
|
@@ -5608,9 +5618,9 @@ const Pi = {
|
|
|
5608
5618
|
var p;
|
|
5609
5619
|
return [
|
|
5610
5620
|
J(g("span", os, [
|
|
5611
|
-
(m(!0), w(ee, null, ue(i.errors, (y,
|
|
5621
|
+
(m(!0), w(ee, null, ue(i.errors, (y, O) => (m(), w("div", {
|
|
5612
5622
|
id: "cl-ui-login-errors",
|
|
5613
|
-
key:
|
|
5623
|
+
key: O,
|
|
5614
5624
|
class: "cl-font-semibold"
|
|
5615
5625
|
}, M(y), 1))), 128))
|
|
5616
5626
|
], 512), [
|
|
@@ -5642,20 +5652,20 @@ const Pi = {
|
|
|
5642
5652
|
},
|
|
5643
5653
|
emits: ["pinned-state", "open-state"],
|
|
5644
5654
|
setup(o, { expose: e, emit: t }) {
|
|
5645
|
-
const l = t, r = L([]), n = A(() => r.value.filter((
|
|
5646
|
-
function a(
|
|
5647
|
-
let F = r.value.find((
|
|
5655
|
+
const l = t, r = L([]), n = A(() => r.value.filter((T) => T.open === !0).length > 0);
|
|
5656
|
+
function a(T) {
|
|
5657
|
+
let F = r.value.find((V) => V.id === T);
|
|
5648
5658
|
return F || (F = {
|
|
5649
|
-
id:
|
|
5659
|
+
id: T,
|
|
5650
5660
|
open: !1
|
|
5651
5661
|
}, r.value.push(F)), F.open;
|
|
5652
5662
|
}
|
|
5653
|
-
function d(
|
|
5654
|
-
const F = r.value.find((H) => H.id ===
|
|
5655
|
-
let
|
|
5656
|
-
F && (F.open = !F.open, F.open && (
|
|
5657
|
-
H.id !==
|
|
5658
|
-
})), l("open-state", !!(F != null && F.open),
|
|
5663
|
+
function d(T) {
|
|
5664
|
+
const F = r.value.find((H) => H.id === T);
|
|
5665
|
+
let V;
|
|
5666
|
+
F && (F.open = !F.open, F.open && (V = F.id), r.value.forEach((H) => {
|
|
5667
|
+
H.id !== T && (H.open = !1);
|
|
5668
|
+
})), l("open-state", !!(F != null && F.open), V);
|
|
5659
5669
|
}
|
|
5660
5670
|
const u = Rt();
|
|
5661
5671
|
ne(
|
|
@@ -5672,18 +5682,18 @@ const Pi = {
|
|
|
5672
5682
|
c.value = !c.value, l("pinned-state", c.value), i.value = !0, s();
|
|
5673
5683
|
}
|
|
5674
5684
|
const y = L();
|
|
5675
|
-
function
|
|
5676
|
-
p(), typeof
|
|
5685
|
+
function O(T) {
|
|
5686
|
+
p(), typeof T == "number" && d(T);
|
|
5677
5687
|
}
|
|
5678
5688
|
function D() {
|
|
5679
|
-
c.value === !1 && n.value === !0 && (r.value.forEach((
|
|
5680
|
-
|
|
5689
|
+
c.value === !1 && n.value === !0 && (r.value.forEach((T) => {
|
|
5690
|
+
T.open = !1;
|
|
5681
5691
|
}), l("open-state", !1, void 0));
|
|
5682
5692
|
}
|
|
5683
5693
|
return Sl(y, D), e({
|
|
5684
5694
|
closeNavigation: D,
|
|
5685
|
-
restorePinnedNavigation:
|
|
5686
|
-
}), (
|
|
5695
|
+
restorePinnedNavigation: O
|
|
5696
|
+
}), (T, F) => (m(), w("div", {
|
|
5687
5697
|
ref_key: "navElement",
|
|
5688
5698
|
ref: y,
|
|
5689
5699
|
class: "cl-flex cl-flex-nowrap cl-relative"
|
|
@@ -5691,13 +5701,13 @@ const Pi = {
|
|
|
5691
5701
|
g("div", {
|
|
5692
5702
|
id: "group-container",
|
|
5693
5703
|
class: B(["cl-h-full cl-overflow-y-auto cl-overscroll-y-none cl-pb-20 cl-w-20 cl-z-40 xl:cl-pb-0", {
|
|
5694
|
-
"cl-bg-primary-default":
|
|
5695
|
-
"cl-bg-blue-dark":
|
|
5704
|
+
"cl-bg-primary-default": T.colour === "default",
|
|
5705
|
+
"cl-bg-blue-dark": T.colour === "secondary"
|
|
5696
5706
|
}])
|
|
5697
5707
|
}, [
|
|
5698
|
-
z(
|
|
5708
|
+
z(T.$slots, "icon", ie({ navcolour: T.colour }, { groupIsOpen: a, toggleOpen: d }), void 0, !0)
|
|
5699
5709
|
], 2),
|
|
5700
|
-
i.value ? (m(), w("div", is)) :
|
|
5710
|
+
i.value ? (m(), w("div", is)) : P("", !0),
|
|
5701
5711
|
N(Ee, { name: "slide-right" }, {
|
|
5702
5712
|
default: x(() => [
|
|
5703
5713
|
J(g("div", {
|
|
@@ -5719,7 +5729,7 @@ const Pi = {
|
|
|
5719
5729
|
icon: "ph:push-pin"
|
|
5720
5730
|
}))
|
|
5721
5731
|
]),
|
|
5722
|
-
z(
|
|
5732
|
+
z(T.$slots, "default", me(ge({ groupIsOpen: a })), void 0, !0)
|
|
5723
5733
|
])
|
|
5724
5734
|
], 2), [
|
|
5725
5735
|
[te, n.value]
|
|
@@ -5768,7 +5778,7 @@ const Pi = {
|
|
|
5768
5778
|
}, [
|
|
5769
5779
|
e.$slots.title ? (m(), w("div", fs, [
|
|
5770
5780
|
z(e.$slots, "title")
|
|
5771
|
-
])) :
|
|
5781
|
+
])) : P("", !0),
|
|
5772
5782
|
g("div", ps, [
|
|
5773
5783
|
z(e.$slots, "default")
|
|
5774
5784
|
])
|
|
@@ -5782,7 +5792,7 @@ function ys(o, e) {
|
|
|
5782
5792
|
return m(), w("div", gs, [
|
|
5783
5793
|
o.$slots.title ? (m(), w("div", hs, [
|
|
5784
5794
|
z(o.$slots, "title")
|
|
5785
|
-
])) :
|
|
5795
|
+
])) : P("", !0),
|
|
5786
5796
|
g("span", bs, [
|
|
5787
5797
|
z(o.$slots, "default")
|
|
5788
5798
|
])
|
|
@@ -5815,32 +5825,32 @@ const Ts = /* @__PURE__ */ ke(ks, [["render", Ss]]), Cs = /* @__PURE__ */ K({
|
|
|
5815
5825
|
}
|
|
5816
5826
|
function y(F) {
|
|
5817
5827
|
if (d.value) {
|
|
5818
|
-
const
|
|
5819
|
-
let H =
|
|
5820
|
-
F === "left" && (H = -
|
|
5828
|
+
const V = d.value.scrollWidth / 5;
|
|
5829
|
+
let H = V;
|
|
5830
|
+
F === "left" && (H = -V), d.value.scroll(d.value.scrollLeft + H, 0);
|
|
5821
5831
|
}
|
|
5822
5832
|
}
|
|
5823
|
-
function
|
|
5824
|
-
let
|
|
5825
|
-
return
|
|
5833
|
+
function O(F) {
|
|
5834
|
+
let V = n.value.find((H) => H.id === F);
|
|
5835
|
+
return V || (V = {
|
|
5826
5836
|
id: F,
|
|
5827
5837
|
open: !1
|
|
5828
|
-
}, n.value.push(
|
|
5838
|
+
}, n.value.push(V)), V.open;
|
|
5829
5839
|
}
|
|
5830
5840
|
function D(F) {
|
|
5831
|
-
const
|
|
5832
|
-
|
|
5841
|
+
const V = n.value.find((H) => H.id === F);
|
|
5842
|
+
V && V.open === !1 && (V.open = !V.open, n.value.forEach((H) => {
|
|
5833
5843
|
H.id !== F && (H.open = !1);
|
|
5834
5844
|
}), r("tab-opened", F));
|
|
5835
5845
|
}
|
|
5836
|
-
function
|
|
5846
|
+
function T(F) {
|
|
5837
5847
|
typeof F == "number" && D(F);
|
|
5838
5848
|
}
|
|
5839
5849
|
return Ze(() => {
|
|
5840
5850
|
p(), D(n.value[0].id);
|
|
5841
5851
|
}), sl(() => window.removeEventListener("resize", s)), e({
|
|
5842
|
-
setTab:
|
|
5843
|
-
}), (F,
|
|
5852
|
+
setTab: T
|
|
5853
|
+
}), (F, V) => (m(), w("div", {
|
|
5844
5854
|
class: B(["cl-w-full", {
|
|
5845
5855
|
"cl-flex cl-flex-row cl-gap-4 xl:cl-gap-6 cl-h-full": i.value === !1
|
|
5846
5856
|
}])
|
|
@@ -5856,13 +5866,13 @@ const Ts = /* @__PURE__ */ ke(ks, [["render", Ss]]), Cs = /* @__PURE__ */ K({
|
|
|
5856
5866
|
u.value && i.value ? (m(), w("div", {
|
|
5857
5867
|
key: 0,
|
|
5858
5868
|
class: "cl-bg-white cl-cursor-pointer cl-float-left cl-h-11 cl-w-4",
|
|
5859
|
-
onClick:
|
|
5869
|
+
onClick: V[0] || (V[0] = (H) => y("left"))
|
|
5860
5870
|
}, [
|
|
5861
5871
|
N(b(Z), {
|
|
5862
5872
|
icon: "ph:caret-left",
|
|
5863
5873
|
class: "cl-mt-4 cl-text-secondary-default"
|
|
5864
5874
|
})
|
|
5865
|
-
])) :
|
|
5875
|
+
])) : P("", !0),
|
|
5866
5876
|
g("div", {
|
|
5867
5877
|
ref_key: "headerContainer",
|
|
5868
5878
|
ref: d,
|
|
@@ -5873,21 +5883,21 @@ const Ts = /* @__PURE__ */ ke(ks, [["render", Ss]]), Cs = /* @__PURE__ */ K({
|
|
|
5873
5883
|
}]),
|
|
5874
5884
|
onScrollPassive: s
|
|
5875
5885
|
}, [
|
|
5876
|
-
z(F.$slots, "headings", me(ge({ isTabOpen:
|
|
5886
|
+
z(F.$slots, "headings", me(ge({ isTabOpen: O, toggleOpen: D, colour: F.colour, layout: F.layout })))
|
|
5877
5887
|
], 34),
|
|
5878
5888
|
c.value && i.value ? (m(), w("div", {
|
|
5879
5889
|
key: 1,
|
|
5880
5890
|
class: "cl-bg-white cl-cursor-pointer cl-float-right cl-h-11 cl-relative cl-w-4",
|
|
5881
|
-
onClick:
|
|
5891
|
+
onClick: V[1] || (V[1] = (H) => y("right"))
|
|
5882
5892
|
}, [
|
|
5883
5893
|
N(b(Z), {
|
|
5884
5894
|
icon: "ph:caret-right",
|
|
5885
5895
|
class: "cl-mt-4 cl-text-secondary-default"
|
|
5886
5896
|
})
|
|
5887
|
-
])) :
|
|
5897
|
+
])) : P("", !0)
|
|
5888
5898
|
], 2),
|
|
5889
5899
|
J(g("div", null, [
|
|
5890
|
-
z(F.$slots, "content", me(ge({ isTabOpen:
|
|
5900
|
+
z(F.$slots, "content", me(ge({ isTabOpen: O })))
|
|
5891
5901
|
], 512), [
|
|
5892
5902
|
[te, a.value]
|
|
5893
5903
|
])
|
|
@@ -5935,7 +5945,7 @@ const Ts = /* @__PURE__ */ ke(ks, [["render", Ss]]), Cs = /* @__PURE__ */ K({
|
|
|
5935
5945
|
g("h4", Ds, M(e.title), 1)
|
|
5936
5946
|
]),
|
|
5937
5947
|
z(e.$slots, "default")
|
|
5938
|
-
])) :
|
|
5948
|
+
])) : P("", !0);
|
|
5939
5949
|
}
|
|
5940
5950
|
}), As = [
|
|
5941
5951
|
"default",
|
|
@@ -6039,7 +6049,7 @@ const Ts = /* @__PURE__ */ ke(ks, [["render", Ss]]), Cs = /* @__PURE__ */ K({
|
|
|
6039
6049
|
"tel",
|
|
6040
6050
|
"password",
|
|
6041
6051
|
"search"
|
|
6042
|
-
],
|
|
6052
|
+
], Us = { class: "cl-gap-1 cl-grid cl-grid-cols-[auto_1fr_auto_auto] cl-pt-0.5 cl-w-full" }, Ps = ["disabled"], zs = { class: "cl-max-w-max" }, Bs = { class: "cl-flex cl-flex-col cl-gap-1 cl-w-full" }, xs = ["min", "disabled", "required", "step", "max"], Hs = { class: "cl-bg-white cl-border cl-border-grey-2 cl-leading-none cl-rounded-full cl-text-center cl-text-xs" }, Gs = ["disabled"], Ws = ["disabled", "title"], Ks = /* @__PURE__ */ K({
|
|
6043
6053
|
inheritAttrs: !1,
|
|
6044
6054
|
__name: "cl-ui-input-range",
|
|
6045
6055
|
props: /* @__PURE__ */ Te({
|
|
@@ -6059,7 +6069,7 @@ const Ts = /* @__PURE__ */ ke(ks, [["render", Ss]]), Cs = /* @__PURE__ */ K({
|
|
|
6059
6069
|
Zl((s) => ({
|
|
6060
6070
|
"28c20101": d.value
|
|
6061
6071
|
}));
|
|
6062
|
-
const t = o, l =
|
|
6072
|
+
const t = o, l = Ue(o, "modelValue"), { t: r } = de(), n = L(), a = L(), d = A(() => `${100 * (l.value - t.min) / (t.max - t.min)}%`), u = L(!1), c = Mt(l, 50);
|
|
6063
6073
|
function i(s) {
|
|
6064
6074
|
var p;
|
|
6065
6075
|
l.value = s, (p = n.value) == null || p.focus();
|
|
@@ -6080,18 +6090,18 @@ const Ts = /* @__PURE__ */ ke(ks, [["render", Ss]]), Cs = /* @__PURE__ */ K({
|
|
|
6080
6090
|
"show-required-asterisk": s.required
|
|
6081
6091
|
}, Re({
|
|
6082
6092
|
default: x(() => [
|
|
6083
|
-
g("div",
|
|
6093
|
+
g("div", Us, [
|
|
6084
6094
|
g("button", {
|
|
6085
6095
|
disabled: s.disabled,
|
|
6086
6096
|
class: "active:cl-bg-grey-0 cl-bg-white cl-border cl-border-grey-2 cl-leading-none cl-min-w-[26px] cl-p-[5px] cl-rounded-full cl-shadow cl-text-xs cl-transition-colors disabled:cl-bg-grey-1 hover:cl-bg-off-white",
|
|
6087
|
-
onClick: p[0] || (p[0] = (
|
|
6088
|
-
}, M(b(vl)(s.min, s.precision)), 9,
|
|
6097
|
+
onClick: p[0] || (p[0] = (O) => i(s.min))
|
|
6098
|
+
}, M(b(vl)(s.min, s.precision)), 9, Ps),
|
|
6089
6099
|
g("div", zs, [
|
|
6090
6100
|
J(g("div", Bs, [
|
|
6091
6101
|
J(g("input", ie({
|
|
6092
6102
|
ref_key: "sliderRef",
|
|
6093
6103
|
ref: n,
|
|
6094
|
-
"onUpdate:modelValue": p[1] || (p[1] = (
|
|
6104
|
+
"onUpdate:modelValue": p[1] || (p[1] = (O) => l.value = O)
|
|
6095
6105
|
}, s.$attrs, {
|
|
6096
6106
|
class: "cl-appearance-none cl-bg-transparent cl-cursor-pointer cl-outline-none cl-w-48 disabled:cl-cursor-default",
|
|
6097
6107
|
type: "range",
|
|
@@ -6116,7 +6126,7 @@ const Ts = /* @__PURE__ */ ke(ks, [["render", Ss]]), Cs = /* @__PURE__ */ K({
|
|
|
6116
6126
|
ref_key: "inputRef",
|
|
6117
6127
|
ref: a,
|
|
6118
6128
|
modelValue: l.value,
|
|
6119
|
-
"onUpdate:modelValue": p[2] || (p[2] = (
|
|
6129
|
+
"onUpdate:modelValue": p[2] || (p[2] = (O) => l.value = O),
|
|
6120
6130
|
class: "cl-py-0.5 cl-w-48"
|
|
6121
6131
|
}, s.$attrs, {
|
|
6122
6132
|
min: s.min,
|
|
@@ -6131,13 +6141,13 @@ const Ts = /* @__PURE__ */ ke(ks, [["render", Ss]]), Cs = /* @__PURE__ */ K({
|
|
|
6131
6141
|
g("button", {
|
|
6132
6142
|
disabled: s.disabled,
|
|
6133
6143
|
class: "active:cl-bg-grey-0 cl-bg-white cl-border cl-border-grey-2 cl-leading-none cl-min-w-[26px] cl-p-[5px] cl-rounded-full cl-shadow cl-text-xs cl-transition-colors disabled:cl-bg-grey-1 hover:cl-bg-off-white",
|
|
6134
|
-
onClick: p[3] || (p[3] = (
|
|
6144
|
+
onClick: p[3] || (p[3] = (O) => i(s.max))
|
|
6135
6145
|
}, M(b(vl)(s.max, s.precision)), 9, Gs),
|
|
6136
6146
|
g("button", {
|
|
6137
6147
|
disabled: s.disabled,
|
|
6138
6148
|
class: "active:cl-bg-grey-0 cl-bg-white cl-border cl-border-grey-2 cl-leading-none cl-min-w-0 cl-p-[5px] cl-rounded-full cl-shadow cl-text-xs cl-transition-colors disabled:cl-bg-grey-1 hover:cl-bg-off-white",
|
|
6139
6149
|
title: b(r)("input.switchInputMode"),
|
|
6140
|
-
onClick: p[4] || (p[4] = (
|
|
6150
|
+
onClick: p[4] || (p[4] = (O) => u.value = !u.value)
|
|
6141
6151
|
}, [
|
|
6142
6152
|
N(y, { icon: "ph:arrows-left-right-thin" })
|
|
6143
6153
|
], 8, Ws)
|
|
@@ -6162,7 +6172,7 @@ const Ts = /* @__PURE__ */ ke(ks, [["render", Ss]]), Cs = /* @__PURE__ */ K({
|
|
|
6162
6172
|
buttonColours: to,
|
|
6163
6173
|
buttonSizes: oo,
|
|
6164
6174
|
cardSizes: ro,
|
|
6165
|
-
clUiAccordion:
|
|
6175
|
+
clUiAccordion: Ut,
|
|
6166
6176
|
clUiAccordionHeader: Kt,
|
|
6167
6177
|
clUiAccordionItem: xt,
|
|
6168
6178
|
clUiApp: Yt,
|
|
@@ -6232,7 +6242,7 @@ export {
|
|
|
6232
6242
|
to as buttonColours,
|
|
6233
6243
|
oo as buttonSizes,
|
|
6234
6244
|
ro as cardSizes,
|
|
6235
|
-
|
|
6245
|
+
Ut as clUiAccordion,
|
|
6236
6246
|
Kt as clUiAccordionHeader,
|
|
6237
6247
|
xt as clUiAccordionItem,
|
|
6238
6248
|
Yt as clUiApp,
|