@citruslime/ui 3.1.0-beta.0 → 3.1.0-beta.2

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,7 +1,7 @@
1
1
  import { Icon as J } from "@iconify/vue";
2
- import { defineComponent as j, ref as R, openBlock as u, createElementBlock as g, renderSlot as A, normalizeProps as pe, guardReactiveProps as me, Fragment as Z, createElementVNode as v, normalizeClass as M, createVNode as k, unref as m, Transition as Me, withCtx as V, withDirectives as te, mergeProps as K, vShow as ue, createBlock as P, Teleport as Cl, renderList as X, toDisplayString as U, createCommentVNode as L, computed as $, createTextVNode as re, mergeModels as de, useModel as he, createSlots as be, vModelDynamic as Wl, watch as ee, toRefs as Kl, withKeys as we, onMounted as je, onUnmounted as il, withModifiers as ae, nextTick as Ue, useAttrs as Qe, resolveComponent as $e, inject as cl, vModelCheckbox as Ct, toValue as Ml, watchEffect as Tt, vModelText as Tl, useCssVars as Ql, toHandlers as St, provide as hl, normalizeStyle as xl, isRef as qt } from "vue";
2
+ import { defineComponent as j, ref as R, openBlock as u, createElementBlock as g, renderSlot as A, normalizeProps as pe, guardReactiveProps as me, Fragment as Z, createElementVNode as v, normalizeClass as M, createVNode as k, unref as m, Transition as Me, withCtx as V, withDirectives as te, mergeProps as K, vShow as ue, createBlock as P, Teleport as Cl, renderList as X, toDisplayString as U, createCommentVNode as L, computed as $, createTextVNode as re, mergeModels as de, useModel as he, createSlots as be, vModelDynamic as Wl, watch as ee, toRefs as Kl, withKeys as we, onMounted as je, onUnmounted as il, withModifiers as ae, nextTick as Ue, useAttrs as Qe, resolveComponent as $e, inject as cl, vModelCheckbox as Ct, toValue as Ml, watchEffect as Tt, vModelText as Tl, useCssVars as Ql, toHandlers as St, provide as hl, normalizeStyle as Yl, isRef as qt } from "vue";
3
3
  import { generateStringId as Ot, highlightText as Dt, validateEmail as At } from "@citruslime/utils";
4
- import { onKeyDown as bl, unrefElement as Et, tryOnScopeDispose as Vt, onClickOutside as xe, useTimeoutFn as Yl, useMouseInElement as Mt, useFocusWithin as Nt, useMediaQuery as Jl, useThrottle as It, useElementBounding as yl, useDebounceFn as Ke, useThrottleFn as Rt, useWindowSize as Ut, useBreakpoints as zt, breakpointsTailwind as Lt, useElementSize as Nl } from "@vueuse/core";
4
+ import { onKeyDown as bl, unrefElement as Et, tryOnScopeDispose as Vt, onClickOutside as Ye, useTimeoutFn as xl, useMouseInElement as Mt, useFocusWithin as Nt, useMediaQuery as Jl, useThrottle as It, useElementBounding as yl, useDebounceFn as Ke, useThrottleFn as Rt, useWindowSize as Ut, useBreakpoints as zt, breakpointsTailwind as Lt, useElementSize as Nl } from "@vueuse/core";
5
5
  import { useI18n as ce, createI18n as Bt } from "vue-i18n";
6
6
  import { createFocusTrap as Ft } from "focus-trap";
7
7
  import { copy as ve } from "@citruslime/vue-utils";
@@ -85,13 +85,13 @@ const Pt = { class: "cl-overflow-hidden" }, Gt = /* @__PURE__ */ j({
85
85
  for (const [e, s] of t)
86
86
  l[e] = s;
87
87
  return l;
88
- }, Qt = {}, xt = { class: "cl-border-b cl-border-grey-1 cl-font-semibold cl-pl-14 cl-pr-4 cl-py-2 cl-text-grey-3 cl-text-sm" };
89
- function Yt(o, t) {
90
- return u(), g("div", xt, [
88
+ }, Qt = {}, Yt = { class: "cl-border-b cl-border-grey-1 cl-font-semibold cl-pl-14 cl-pr-4 cl-py-2 cl-text-grey-3 cl-text-sm" };
89
+ function xt(o, t) {
90
+ return u(), g("div", Yt, [
91
91
  A(o.$slots, "default")
92
92
  ]);
93
93
  }
94
- const Jt = /* @__PURE__ */ ye(Qt, [["render", Yt]]), tl = R([]);
94
+ const Jt = /* @__PURE__ */ ye(Qt, [["render", xt]]), tl = R([]);
95
95
  function Il(o) {
96
96
  const t = {
97
97
  id: Ot(),
@@ -182,7 +182,7 @@ const Xt = ["onClick"], _t = { class: "cl-flex-1 cl-select-none cl-text-ellipsis
182
182
  function ao(o, t) {
183
183
  return u(), g("div", oo);
184
184
  }
185
- const Ye = /* @__PURE__ */ ye(to, [["render", ao], ["__scopeId", "data-v-a21dc5d2"]]), no = ["disabled"], Ce = /* @__PURE__ */ j({
185
+ const xe = /* @__PURE__ */ ye(to, [["render", ao], ["__scopeId", "data-v-a21dc5d2"]]), no = ["disabled"], Ce = /* @__PURE__ */ j({
186
186
  inheritAttrs: !1,
187
187
  __name: "cl-ui-button",
188
188
  props: {
@@ -198,7 +198,7 @@ const Ye = /* @__PURE__ */ ye(to, [["render", ao], ["__scopeId", "data-v-a21dc5d
198
198
  l.value && l.value.focus();
199
199
  }
200
200
  }), (e, s) => (u(), g(Z, null, [
201
- te(k(Ye, { class: "relative" }, null, 512), [
201
+ te(k(xe, { class: "relative" }, null, 512), [
202
202
  [ue, e.loading]
203
203
  ]),
204
204
  te(v("button", K(e.$attrs, {
@@ -453,17 +453,21 @@ const Co = {
453
453
  }, To = { class: "cl-overflow-y-auto cl-overscroll-y-none cl-p-2 cl-w-full" }, et = /* @__PURE__ */ j({
454
454
  inheritAttrs: !1,
455
455
  __name: "cl-ui-modal",
456
- props: {
456
+ props: /* @__PURE__ */ de({
457
457
  headerColour: { default: "white" },
458
458
  preventClose: { type: Boolean, default: !1 },
459
459
  size: { default: "medium" },
460
460
  trapFocus: { type: Boolean, default: !1 }
461
- },
461
+ }, {
462
+ visible: { type: Boolean, required: !1, default: !1 },
463
+ visibleModifiers: {}
464
+ }),
465
+ emits: ["update:visible"],
462
466
  setup(o) {
463
- const t = o, { trapFocus: l } = Kl(t), e = R(!1), s = R(), n = ko(s);
467
+ const t = o, l = he(o, "visible"), { trapFocus: e } = Kl(t), s = R(), n = ko(s);
464
468
  ee([
465
- l,
466
- e
469
+ e,
470
+ l
467
471
  ], ([
468
472
  r,
469
473
  a
@@ -473,10 +477,10 @@ const Co = {
473
477
  });
474
478
  });
475
479
  function c() {
476
- e.value = !0, document.addEventListener("keydown", p);
480
+ l.value = !0, document.addEventListener("keydown", p);
477
481
  }
478
482
  function d() {
479
- t.preventClose || (e.value = !1, document.removeEventListener("keydown", p));
483
+ t.preventClose || (l.value = !1, document.removeEventListener("keydown", p));
480
484
  }
481
485
  function p(r) {
482
486
  r.key === "Escape" && d();
@@ -529,7 +533,7 @@ const Co = {
529
533
  A(r.$slots, "footer", pe(me({ close: d })))
530
534
  ], 16)
531
535
  ], 512), [
532
- [ue, e.value]
536
+ [ue, l.value]
533
537
  ])
534
538
  ]),
535
539
  _: 3
@@ -674,11 +678,11 @@ const Co = {
674
678
  }
675
679
  function T(N) {
676
680
  if (N.key === "Tab" && N.shiftKey === !0) {
677
- const Y = document.getElementsByTagName("input");
681
+ const x = document.getElementsByTagName("input");
678
682
  let ne = -1;
679
- for (let I = 0; I < Y.length; I++)
680
- Y[I] === N.target && (ne = I - 1);
681
- ne >= 0 && (Y[ne].focus(), y());
683
+ for (let I = 0; I < x.length; I++)
684
+ x[I] === N.target && (ne = I - 1);
685
+ ne >= 0 && (x[ne].focus(), y());
682
686
  }
683
687
  }
684
688
  function S() {
@@ -694,8 +698,8 @@ const Co = {
694
698
  }
695
699
  function _() {
696
700
  l.isVisible === !0 && (n.value = "", a(), Ue(() => {
697
- var N, Y;
698
- return (Y = (N = r.value) == null ? void 0 : N.querySelector("input")) == null ? void 0 : Y.focus();
701
+ var N, x;
702
+ return (x = (N = r.value) == null ? void 0 : N.querySelector("input")) == null ? void 0 : x.focus();
699
703
  }));
700
704
  }
701
705
  return ee(() => l.results, () => q()), ee(() => l.errorMessage, () => q()), ee(() => l.isVisible, () => _()), je(() => {
@@ -704,7 +708,7 @@ const Co = {
704
708
  }), il(() => {
705
709
  var N;
706
710
  return (N = r.value) == null ? void 0 : N.removeEventListener("keydown", T);
707
- }), (N, Y) => {
711
+ }), (N, x) => {
708
712
  var ne;
709
713
  return u(), g("div", {
710
714
  ref_key: "container",
@@ -713,27 +717,27 @@ const Co = {
713
717
  "cl-overflow-y-hidden": N.loading
714
718
  }]),
715
719
  onKeydown: [
716
- Y[2] || (Y[2] = we(ae((I) => h(p.value), ["prevent", "stop"]), ["up"])),
717
- Y[3] || (Y[3] = we(ae((I) => C(p.value), ["prevent", "stop"]), ["down"]))
720
+ x[2] || (x[2] = we(ae((I) => h(p.value), ["prevent", "stop"]), ["up"])),
721
+ x[3] || (x[3] = we(ae((I) => C(p.value), ["prevent", "stop"]), ["down"]))
718
722
  ],
719
723
  onKeyup: we(ae(O, ["prevent", "stop"]), ["enter"])
720
724
  }, [
721
725
  N.loading ? (u(), g("div", Eo, [
722
- k(Ye)
726
+ k(xe)
723
727
  ])) : L("", !0),
724
728
  v("div", Vo, [
725
729
  v("div", Mo, [
726
730
  k(Re, {
727
731
  id: `cl-ui-combo-box-search-input-${N.objectType}`,
728
732
  modelValue: n.value,
729
- "onUpdate:modelValue": Y[0] || (Y[0] = (I) => n.value = I),
733
+ "onUpdate:modelValue": x[0] || (x[0] = (I) => n.value = I),
730
734
  class: "cl-box-border cl-font-light cl-mb-2 cl-p-2 cl-placeholder-grey-3 cl-text-sm",
731
735
  placeholder: N.searchHint,
732
736
  type: "search",
733
737
  onKeyup: a,
734
738
  onBlur: y
735
739
  }, {
736
- default: V(() => Y[4] || (Y[4] = [
740
+ default: V(() => x[4] || (x[4] = [
737
741
  v("span", null, null, -1)
738
742
  ])),
739
743
  _: 1
@@ -744,7 +748,7 @@ const Co = {
744
748
  key: 1,
745
749
  "show-clear-button": N.canClearSelectedObject,
746
750
  text: N.currentObjectName,
747
- onClearObject: Y[1] || (Y[1] = (I) => N.$emit("clear-object"))
751
+ onClearObject: x[1] || (x[1] = (I) => N.$emit("clear-object"))
748
752
  }, null, 8, ["show-clear-button", "text"])) : L("", !0),
749
753
  N.objectParentType !== "" && N.results !== void 0 && N.results.length > 0 && N.errorMessage === "" ? (u(), P(el, {
750
754
  key: 2,
@@ -813,8 +817,8 @@ const Co = {
813
817
  set: (w) => s("update:current-object", w)
814
818
  }), y = R(null), C = $(() => Te()), h = R(""), O = R(""), T = R(), S = R(!0), q = R(!1);
815
819
  function F(w) {
816
- var x;
817
- const z = ((x = H.value) == null ? void 0 : x.getBoundingClientRect().top) || 0;
820
+ var Y;
821
+ const z = ((Y = H.value) == null ? void 0 : Y.getBoundingClientRect().top) || 0;
818
822
  q.value = window.innerHeight - z < 280, e.disabled || (typeof w < "u" ? i.value = w : i.value = !i.value);
819
823
  }
820
824
  function _(w) {
@@ -823,7 +827,7 @@ const Co = {
823
827
  function N(w) {
824
828
  O.value = w, s("search-parent", w);
825
829
  }
826
- function Y() {
830
+ function x() {
827
831
  f.value = null, F(!1);
828
832
  }
829
833
  function ne(w) {
@@ -833,9 +837,9 @@ const Co = {
833
837
  function I(w) {
834
838
  let z = null;
835
839
  if (e.results !== null) {
836
- for (let x = 0; x < e.results.length; x++)
837
- if (e.results[x].id === w) {
838
- z = e.results[x];
840
+ for (let Y = 0; Y < e.results.length; Y++)
841
+ if (e.results[Y].id === w) {
842
+ z = e.results[Y];
839
843
  break;
840
844
  }
841
845
  }
@@ -873,7 +877,7 @@ const Co = {
873
877
  });
874
878
  }
875
879
  function Pe() {
876
- var z, x, b, B, W;
880
+ var z, Y, b, B, W;
877
881
  Il({
878
882
  message: a("comboBox.createSuccessful", {
879
883
  object: e.objectType,
@@ -883,7 +887,7 @@ const Co = {
883
887
  duration: 1e4
884
888
  });
885
889
  let w = "";
886
- y.value && y.value.id === ((x = e.objectCreatedResponse) == null ? void 0 : x.parentId) && (w = y.value.name), f.value = {
890
+ y.value && y.value.id === ((Y = e.objectCreatedResponse) == null ? void 0 : Y.parentId) && (w = y.value.name), f.value = {
887
891
  id: ((b = e.objectCreatedResponse) == null ? void 0 : b.id) ?? 0,
888
892
  name: ((B = e.objectCreatedResponse) == null ? void 0 : B.name) ?? "",
889
893
  parentId: ((W = e.objectCreatedResponse) == null ? void 0 : W.parentId) ?? 0,
@@ -900,12 +904,12 @@ const Co = {
900
904
  }
901
905
  ee(() => e.objectCreatedResponse, () => fe()), ee(() => e.parentObjectCreatedResponse, () => ge()), ee(() => h.value, () => E()), ee(() => y.value, () => E());
902
906
  const H = R();
903
- return xe(H, () => i.value ? F(!1) : ""), t({
907
+ return Ye(H, () => i.value ? F(!1) : ""), t({
904
908
  focus() {
905
909
  F(), s("focus");
906
910
  }
907
911
  }), (w, z) => {
908
- const x = $e("cl-ui-combo-box", !0);
912
+ const Y = $e("cl-ui-combo-box", !0);
909
913
  return u(), g("div", K({
910
914
  ref_key: "outsideRef",
911
915
  ref: H
@@ -991,7 +995,7 @@ const Co = {
991
995
  "search-hint": r.value,
992
996
  onCreateObject: () => w.objectParentType === "" && w.skipObjectCreationModal === !0 ? D() : b(),
993
997
  onSelectObject: ne,
994
- onClearObject: Y,
998
+ onClearObject: x,
995
999
  onSearch: _,
996
1000
  onHideDropdown: z[4] || (z[4] = (B) => F(!1))
997
1001
  }, 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"]), [
@@ -1028,7 +1032,7 @@ const Co = {
1028
1032
  ]),
1029
1033
  default: V(() => [
1030
1034
  v("div", jo, [
1031
- w.objectParentType ? (u(), P(x, {
1035
+ w.objectParentType ? (u(), P(Y, {
1032
1036
  key: 0,
1033
1037
  "current-object": y.value,
1034
1038
  "onUpdate:currentObject": z[5] || (z[5] = (b) => y.value = b),
@@ -1070,17 +1074,17 @@ function Zo(o) {
1070
1074
  const Wo = {}, Ko = { class: "cl-flex cl-flex-wrap cl-left-0 cl-mt-4 cl-w-full" }, Qo = {
1071
1075
  key: 0,
1072
1076
  class: "cl-w-full"
1073
- }, xo = {
1077
+ }, Yo = {
1074
1078
  key: 1,
1075
1079
  class: "cl-leading-10 cl-text-sm cl-w-full"
1076
- }, Yo = { class: "cl-float-left" }, Jo = { class: "cl-float-right" };
1080
+ }, xo = { class: "cl-float-left" }, Jo = { class: "cl-float-right" };
1077
1081
  function Xo(o, t) {
1078
1082
  return u(), g("div", Ko, [
1079
1083
  o.$slots.default ? (u(), g("div", Qo, [
1080
1084
  A(o.$slots, "default")
1081
1085
  ])) : L("", !0),
1082
- o.$slots.left || o.$slots.right ? (u(), g("div", xo, [
1083
- v("span", Yo, [
1086
+ o.$slots.left || o.$slots.right ? (u(), g("div", Yo, [
1087
+ v("span", xo, [
1084
1088
  A(o.$slots, "left")
1085
1089
  ]),
1086
1090
  v("span", Jo, [
@@ -1490,10 +1494,10 @@ function Kc(o, t) {
1490
1494
  function Qc(o, t) {
1491
1495
  return Se.global.mergeNumberFormat(o, t), Ue();
1492
1496
  }
1493
- function xc(o, t) {
1497
+ function Yc(o, t) {
1494
1498
  return Se.global.mergeDateTimeFormat(o, t), Ue();
1495
1499
  }
1496
- function Yc(o) {
1500
+ function xc(o) {
1497
1501
  return Se.global.locale.value = o, Ue();
1498
1502
  }
1499
1503
  const { locale: ya, getNumberFormat: wa } = Se.global, pl = le.DECIMAL;
@@ -2039,7 +2043,7 @@ const Ea = {
2039
2043
  {
2040
2044
  count: 0,
2041
2045
  target: null,
2042
- reset: Yl(() => {
2046
+ reset: xl(() => {
2043
2047
  a.value[S] && (a.value[S].count = 0, a.value[S].target = null);
2044
2048
  }, 400, { immediate: !1 })
2045
2049
  }
@@ -2150,7 +2154,7 @@ const Ea = {
2150
2154
  ]);
2151
2155
  };
2152
2156
  }
2153
- }), Wa = ["value", "inputmode", "disabled", "placeholder"], Ka = { class: "cl-absolute cl-flex-col cl-flex-nowrap cl-h-full cl-hidden cl-justify-between cl-py-0.5 cl-right-1 cl-text-xs cl-top-0 xl:cl-flex" }, Qa = ["disabled"], xa = ["disabled"], Xe = /* @__PURE__ */ j({
2157
+ }), Wa = ["value", "inputmode", "disabled", "placeholder"], Ka = { class: "cl-absolute cl-flex-col cl-flex-nowrap cl-h-full cl-hidden cl-justify-between cl-py-0.5 cl-right-1 cl-text-xs cl-top-0 xl:cl-flex" }, Qa = ["disabled"], Ya = ["disabled"], Xe = /* @__PURE__ */ j({
2154
2158
  inheritAttrs: !1,
2155
2159
  __name: "cl-ui-input-number",
2156
2160
  props: /* @__PURE__ */ de({
@@ -2191,9 +2195,9 @@ const Ea = {
2191
2195
  ee(s, () => T.value = void 0);
2192
2196
  const q = $({
2193
2197
  get: () => T.value ? ne(T.value) : s.value,
2194
- set: (D) => T.value = Y(D)
2198
+ set: (D) => T.value = x(D)
2195
2199
  }), F = $({
2196
- get: () => T.value ?? Y(s.value),
2200
+ get: () => T.value ?? x(s.value),
2197
2201
  set(D) {
2198
2202
  T.value = D, S.value = !0;
2199
2203
  }
@@ -2209,7 +2213,7 @@ const Ea = {
2209
2213
  G && e.format === le.PERCENTAGE && !$a(F.value, "percentSign", y.value) && (fe = fe / h.value), isNaN(fe) === !1 && (s.value = _(Math.round(fe * O.value) / O.value));
2210
2214
  }
2211
2215
  }
2212
- function Y(D) {
2216
+ function x(D) {
2213
2217
  return D === null ? "" : e.format ? Ae(D, e.format, {
2214
2218
  locale: e.locale,
2215
2219
  additionalOptions: f.value
@@ -2287,7 +2291,7 @@ const Ea = {
2287
2291
  ]
2288
2292
  }, [
2289
2293
  k(fe, { icon: "ph:caret-down-bold" })
2290
- ], 40, xa)
2294
+ ], 40, Ya)
2291
2295
  ], 512), [
2292
2296
  [ue, i.value && !D.disabled]
2293
2297
  ])
@@ -2312,7 +2316,7 @@ const Ea = {
2312
2316
  ]), 1032, ["show-required-asterisk", "errors"]);
2313
2317
  };
2314
2318
  }
2315
- }), Ya = {
2319
+ }), xa = {
2316
2320
  key: 0,
2317
2321
  class: "cl-flex cl-flex-col lg:cl-flex-row lg:cl-gap-2"
2318
2322
  }, Ja = { class: "cl-border cl-border-off-white cl-flex cl-items-center cl-mt-2 cl-p-2 cl-rounded-lg cl-w-full lg:cl-px-4 lg:cl-py-3" }, Xa = { class: "cl-border cl-border-off-white cl-mt-2 cl-p-2 cl-rounded-lg lg:cl-px-4 lg:cl-py-3" }, _a = ["inert"], en = { class: "cl-basis-full cl-bg-off-white cl-border cl-border-grey-1 cl-flex cl-flex-1 cl-items-center cl-justify-between cl-mt-2 cl-p-2 cl-rounded-lg cl-shadow cl-text-sm lg:cl-basis-0 lg:cl-px-4 lg:cl-py-3" }, ln = { class: "cl-flex cl-flex-wrap cl-gap-x-4 cl-gap-y-2 cl-items-center cl-w-full" }, tn = { class: "cl-flex cl-flex-col lg:cl-flex-row" }, on = { class: "cl-mr-2 cl-text-grey-3" }, an = { class: "cl-flex cl-flex-col lg:cl-flex-row" }, nn = { class: "cl-mr-1 cl-text-grey-3" }, sn = { class: "cl-flex cl-flex-col cl-mr-auto lg:cl-flex-row" }, rn = { class: "cl-basis-full cl-mr-1 cl-text-grey-3" }, cn = { class: "cl-flex cl-gap-0.5" }, un = ["onClick"], dn = { class: "cl-flex cl-gap-1 cl-items-center" }, pn = ["onClick"], fn = { class: "cl-basis-full cl-bg-off-white cl-border cl-border-grey-1 cl-flex cl-gap-2 cl-items-center cl-justify-between cl-mt-2 cl-px-2 cl-py-1 cl-rounded-lg cl-shadow cl-text-sm lg:cl-basis-auto lg:cl-px-4 lg:cl-py-3" }, mn = { class: "cl-flex cl-items-center" }, gn = { class: "cl-mr-2 cl-text-grey-3" }, vn = /* @__PURE__ */ j({
@@ -2360,7 +2364,7 @@ const Ea = {
2360
2364
  }
2361
2365
  return (a, i) => {
2362
2366
  var f, y, C;
2363
- return a.initialLoad ? (u(), g("div", Ya, [
2367
+ return a.initialLoad ? (u(), g("div", xa, [
2364
2368
  v("div", Ja, [
2365
2369
  k(m(wl), { words: 3 }),
2366
2370
  k(m(wl), {
@@ -3411,7 +3415,7 @@ const bn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, yn = ["onClick"], wn =
3411
3415
  function p(a) {
3412
3416
  return a.name !== void 0 && a.id !== void 0;
3413
3417
  }
3414
- xe(e, () => s.value ? c(!1) : "");
3418
+ Ye(e, () => s.value ? c(!1) : "");
3415
3419
  const r = $(() => ({
3416
3420
  "cl-cursor-pointer cl-bg-white": !t.disabled,
3417
3421
  "cl-border-b-transparent cl-rounded-b-none": s.value,
@@ -3563,17 +3567,17 @@ const Qn = [
3563
3567
  "equalorgreaterthan",
3564
3568
  "andcontains"
3565
3569
  ];
3566
- function xn(o) {
3570
+ function Yn(o) {
3567
3571
  return typeof o.filterOnColumn == "string" && typeof o.filterOperation == "number" && typeof o.filterValue == "string";
3568
3572
  }
3569
- function Yn(o) {
3573
+ function xn(o) {
3570
3574
  return o === null || typeof o.sortByAscending == "boolean" && typeof o.sortOnColumn == "string";
3571
3575
  }
3572
3576
  function Jn(o) {
3573
- let t = typeof o.filters == "object" && Array.isArray(o.filters) && typeof o.pageNumber == "number" && typeof o.pageSize == "number" && typeof o.sort == "object" && Yn(o.sort);
3577
+ let t = typeof o.filters == "object" && Array.isArray(o.filters) && typeof o.pageNumber == "number" && typeof o.pageSize == "number" && typeof o.sort == "object" && xn(o.sort);
3574
3578
  if (t) {
3575
3579
  for (const l of o.filters)
3576
- if (!xn(l)) {
3580
+ if (!Yn(l)) {
3577
3581
  t = !1;
3578
3582
  break;
3579
3583
  }
@@ -3824,12 +3828,12 @@ const _n = {
3824
3828
  set: (E) => e("update:filter", E)
3825
3829
  }), p = $(() => l.column.type === "date" || l.column.type === "datetime" || l.column.type === "slot" && (l.column.slotType === "date" || l.column.slotType === "datetime")), r = $(() => l.column.type === "dateRange" || l.column.type === "slot" && l.column.slotType === "dateRange"), a = $(() => l.column.type === "list" || l.column.type === "slot" && l.column.slotType === "list"), i = $(() => a.value && l.column.listType === "number"), f = $(() => l.column.type === "string" || l.column.type === "slot" && l.column.slotType === "string"), y = $(() => l.column.format === le.INTEGER ? le.DECIMAL : l.column.format ?? le.DECIMAL), C = R(!1), h = $(() => C.value || f.value === !1), O = $({
3826
3830
  get() {
3827
- var H, w, z, x, b, B, W;
3831
+ var H, w, z, Y, b, B, W;
3828
3832
  let E = (H = d.value) == null ? void 0 : H[0];
3829
3833
  if (E) {
3830
3834
  if (p.value) {
3831
3835
  if ((((w = l.filter) == null ? void 0 : w.length) ?? 0) > 1) {
3832
- const ie = (z = d.value) == null ? void 0 : z.find((qe) => qe.filterOperation === oe.EQUAL_OR_GREATER_THAN), Ee = (x = d.value) == null ? void 0 : x.find((qe) => qe.filterOperation === oe.LESS_THAN);
3836
+ const ie = (z = d.value) == null ? void 0 : z.find((qe) => qe.filterOperation === oe.EQUAL_OR_GREATER_THAN), Ee = (Y = d.value) == null ? void 0 : Y.find((qe) => qe.filterOperation === oe.LESS_THAN);
3833
3837
  ie && Ee && (E = {
3834
3838
  filterOnColumn: l.column.field,
3835
3839
  filterOperation: oe.EQUAL,
@@ -3865,7 +3869,7 @@ const _n = {
3865
3869
  set(E) {
3866
3870
  let H = null;
3867
3871
  if (p.value) {
3868
- const w = E, z = (w == null ? void 0 : w.filterMethod) && q(w.filterMethod, w.filterValue, "equal"), x = (w == null ? void 0 : w.filterMethod) && q(w.filterMethod, w.filterValue, "equalorlessthan"), b = (w == null ? void 0 : w.filterMethod) && q(w.filterMethod, w.filterValue, "greaterthan");
3872
+ const w = E, z = (w == null ? void 0 : w.filterMethod) && q(w.filterMethod, w.filterValue, "equal"), Y = (w == null ? void 0 : w.filterMethod) && q(w.filterMethod, w.filterValue, "equalorlessthan"), b = (w == null ? void 0 : w.filterMethod) && q(w.filterMethod, w.filterValue, "greaterthan");
3869
3873
  if (z) {
3870
3874
  let B = Q.fromISO(w.filterValue, {
3871
3875
  zone: l.timeZone ?? "UTC"
@@ -3890,7 +3894,7 @@ const _n = {
3890
3894
  filterValue: ie
3891
3895
  }
3892
3896
  ];
3893
- } else if (x || b) {
3897
+ } else if (Y || b) {
3894
3898
  let B = Q.fromISO(w.filterValue, {
3895
3899
  zone: l.timeZone ?? "UTC"
3896
3900
  }).set({
@@ -3900,8 +3904,8 @@ const _n = {
3900
3904
  l.column.type === "date" || l.column.type === "slot" && l.column.slotType === "date" ? B = B.plus({ days: 1 }) : B = B.plus({ minutes: 1 }), H = [
3901
3905
  {
3902
3906
  filterOnColumn: l.column.field,
3903
- filterOperation: x ? oe.EQUAL_OR_LESS_THAN : oe.GREATER_THAN,
3904
- filterMethod: x ? "equalorlessthan" : "greaterthan",
3907
+ filterOperation: Y ? oe.EQUAL_OR_LESS_THAN : oe.GREATER_THAN,
3908
+ filterMethod: Y ? "equalorlessthan" : "greaterthan",
3905
3909
  filterValue: B.minus({ milliseconds: 1 }).toISO()
3906
3910
  }
3907
3911
  ];
@@ -3909,7 +3913,7 @@ const _n = {
3909
3913
  } else if (r.value && (E != null && E.filterValue)) {
3910
3914
  const w = E.filterValue, z = Q.fromISO(w.start, {
3911
3915
  zone: l.timeZone ?? "UTC"
3912
- }).toISO(), x = Q.fromISO(w.end, {
3916
+ }).toISO(), Y = Q.fromISO(w.end, {
3913
3917
  zone: l.timeZone ?? "UTC"
3914
3918
  }).toISO();
3915
3919
  H = [
@@ -3923,7 +3927,7 @@ const _n = {
3923
3927
  filterOnColumn: l.column.field,
3924
3928
  filterOperation: oe.EQUAL_OR_LESS_THAN,
3925
3929
  filterMethod: "equalorlessthan",
3926
- filterValue: x
3930
+ filterValue: Y
3927
3931
  }
3928
3932
  ];
3929
3933
  }
@@ -3950,11 +3954,11 @@ const _n = {
3950
3954
  const F = $(() => {
3951
3955
  var E;
3952
3956
  return ((E = O.value) == null ? void 0 : E.filterValue) ?? "";
3953
- }), _ = $(() => F.value === "" ? null : F.value), N = $(() => F.value === "" ? null : F.value), Y = $(() => ol(l.column));
3957
+ }), _ = $(() => F.value === "" ? null : F.value), N = $(() => F.value === "" ? null : F.value), x = $(() => ol(l.column));
3954
3958
  function ne(E, H) {
3955
3959
  var ie;
3956
3960
  let w, z = (E == null ? void 0 : E.value) ?? H;
3957
- const x = ((ie = O.value) == null ? void 0 : ie.filterValue.toString()) ?? "", b = !!z.trim(), B = !!x.trim();
3961
+ const Y = ((ie = O.value) == null ? void 0 : ie.filterValue.toString()) ?? "", b = !!z.trim(), B = !!Y.trim();
3958
3962
  if (b === !1 && B && (z = ""), b || B) {
3959
3963
  if (O.value)
3960
3964
  w = ve(S.value), w.filterValue = z;
@@ -3974,8 +3978,8 @@ const _n = {
3974
3978
  function I(E, H) {
3975
3979
  let w = (E == null ? void 0 : E.value) ?? H ?? 0;
3976
3980
  if (typeof w == "string") {
3977
- const z = l.column.format === le.INTEGER, x = (z ? le.DECIMAL : l.column.format) ?? le.DECIMAL;
3978
- w = lt(w, x, { additionalOptions: {
3981
+ const z = l.column.format === le.INTEGER, Y = (z ? le.DECIMAL : l.column.format) ?? le.DECIMAL;
3982
+ w = lt(w, Y, { additionalOptions: {
3979
3983
  maximumFractionDigits: z ? 0 : void 0,
3980
3984
  minimumFractionDigits: z ? 0 : void 0
3981
3985
  } });
@@ -3988,11 +3992,11 @@ const _n = {
3988
3992
  if (O.value)
3989
3993
  w = ((z = O.value) == null ? void 0 : z.filterValue) === E, H = ve(O.value), H.filterValue = E ?? "";
3990
3994
  else if (E !== null && typeof l.column.field < "u") {
3991
- const x = c();
3995
+ const Y = c();
3992
3996
  H = {
3993
3997
  filterOnColumn: l.column.field,
3994
- filterMethod: oe[x].replace("_", "").toLowerCase(),
3995
- filterOperation: x,
3998
+ filterMethod: oe[Y].replace("_", "").toLowerCase(),
3999
+ filterOperation: Y,
3996
4000
  filterValue: E
3997
4001
  };
3998
4002
  } else
@@ -4022,7 +4026,7 @@ const _n = {
4022
4026
  return E.initialLoad && m(ol)(E.column) ? (u(), P(m(Sl), {
4023
4027
  key: 0,
4024
4028
  class: "cl-h-[34px]"
4025
- })) : Y.value ? (u(), g("div", {
4029
+ })) : x.value ? (u(), g("div", {
4026
4030
  key: 1,
4027
4031
  class: M(["cl-border cl-border-grey-2 cl-flex cl-relative cl-rounded-md", [
4028
4032
  E.options.hideGridMobileView || a.value || E.column.type === "boolean" || E.column.type === "slot" && E.column.slotType === "boolean" ? "cl-overflow-visible" : "cl-overflow-hidden lg:cl-overflow-visible"
@@ -4037,8 +4041,8 @@ const _n = {
4037
4041
  "model-value": F.value,
4038
4042
  "onUpdate:modelValue": H[0] || (H[0] = (z) => ne(null, z))
4039
4043
  }, {
4040
- input: V(({ selectModalVisible: z, toggleSelectModalState: x }) => [
4041
- k(sl, { onToggleModal: x }, {
4044
+ input: V(({ selectModalVisible: z, toggleSelectModalState: Y }) => [
4045
+ k(sl, { onToggleModal: Y }, {
4042
4046
  default: V(({ toggleModalInput: b }) => [
4043
4047
  v("div", {
4044
4048
  class: "!cl-h-[2rem] cl-bg-white cl-flex cl-font-normal cl-items-center cl-mb-0 cl-rounded-md cl-w-full",
@@ -4061,7 +4065,7 @@ const _n = {
4061
4065
  default: V(({ select: z }) => [
4062
4066
  k(ze, {
4063
4067
  class: "!cl-py-0 cl-text-xs",
4064
- onSelect: (x) => z("")
4068
+ onSelect: (Y) => z("")
4065
4069
  }, {
4066
4070
  default: V(() => H[9] || (H[9] = [
4067
4071
  re("   ")
@@ -4071,7 +4075,7 @@ const _n = {
4071
4075
  k(ze, {
4072
4076
  "is-selected": F.value === "true",
4073
4077
  class: "!cl-py-0 cl-text-xs",
4074
- onSelect: (x) => z("true")
4078
+ onSelect: (Y) => z("true")
4075
4079
  }, {
4076
4080
  default: V(() => [
4077
4081
  re(U(m(s)("grid.true")), 1)
@@ -4081,7 +4085,7 @@ const _n = {
4081
4085
  k(ze, {
4082
4086
  "is-selected": F.value === "false",
4083
4087
  class: "!cl-py-0 cl-text-xs",
4084
- onSelect: (x) => z("false")
4088
+ onSelect: (Y) => z("false")
4085
4089
  }, {
4086
4090
  default: V(() => [
4087
4091
  re(U(m(s)("grid.false")), 1)
@@ -4155,8 +4159,8 @@ const _n = {
4155
4159
  "is-grid-filter": !0,
4156
4160
  "onUpdate:modelValue": H[6] || (H[6] = (z) => i.value ? I(null, z) : ne(null, z))
4157
4161
  }, {
4158
- input: V(({ selectModalVisible: z, toggleSelectModalState: x }) => [
4159
- k(sl, { onToggleModal: x }, {
4162
+ input: V(({ selectModalVisible: z, toggleSelectModalState: Y }) => [
4163
+ k(sl, { onToggleModal: Y }, {
4160
4164
  default: V(({ toggleModalInput: b }) => {
4161
4165
  var B, W;
4162
4166
  return [
@@ -4182,21 +4186,21 @@ const _n = {
4182
4186
  default: V(({ select: z }) => [
4183
4187
  k(ze, {
4184
4188
  class: "!cl-py-0",
4185
- onSelect: (x) => z("")
4189
+ onSelect: (Y) => z("")
4186
4190
  }, {
4187
4191
  default: V(() => H[12] || (H[12] = [
4188
4192
  re("   ")
4189
4193
  ])),
4190
4194
  _: 2
4191
4195
  }, 1032, ["onSelect"]),
4192
- (u(!0), g(Z, null, X(E.column.listEntries ?? [], (x) => (u(), P(ze, {
4193
- key: x.value,
4194
- "is-selected": F.value === x.value.toString(),
4196
+ (u(!0), g(Z, null, X(E.column.listEntries ?? [], (Y) => (u(), P(ze, {
4197
+ key: Y.value,
4198
+ "is-selected": F.value === Y.value.toString(),
4195
4199
  class: "cl-text-xs",
4196
- onSelect: (b) => z(x.value)
4200
+ onSelect: (b) => z(Y.value)
4197
4201
  }, {
4198
4202
  default: V(() => [
4199
- re(U(m(s)(x.translationKey)), 1)
4203
+ re(U(m(s)(Y.translationKey)), 1)
4200
4204
  ]),
4201
4205
  _: 2
4202
4206
  }, 1032, ["is-selected", "onSelect"]))), 128))
@@ -4603,9 +4607,9 @@ const _n = {
4603
4607
  filters: D
4604
4608
  };
4605
4609
  }
4606
- }), _ = R(((ne = l.request.filters.find((I) => I.filterMethod === "andcontains" || I.filterOperation === oe.AND_CONTAINS)) == null ? void 0 : ne.filterValue) ?? ""), N = $(() => l.columns.filter((I) => (I.type === "string" || I.type === "slot" && I.slotType === "string") && I.searchable)), Y = R(!0);
4610
+ }), _ = R(((ne = l.request.filters.find((I) => I.filterMethod === "andcontains" || I.filterOperation === oe.AND_CONTAINS)) == null ? void 0 : ne.filterValue) ?? ""), N = $(() => l.columns.filter((I) => (I.type === "string" || I.type === "slot" && I.slotType === "string") && I.searchable)), x = R(!0);
4607
4611
  return ee(() => l.loading, () => {
4608
- Y.value = !1;
4612
+ x.value = !1;
4609
4613
  }, {
4610
4614
  once: !0
4611
4615
  }), je(() => {
@@ -4617,7 +4621,7 @@ const _n = {
4617
4621
  ((D = l.data) == null ? void 0 : D.results.length) === 0 && f.value.pageNumber > 1 && (f.value.pageNumber = l.data.totalRecords > 0 ? Math.ceil(l.data.totalRecords / f.value.pageSize) : 1);
4618
4622
  }
4619
4623
  }), (I, D) => (u(), g("div", Bs, [
4620
- Y.value && N.value.length > 0 ? (u(), P(m(Sl), {
4624
+ x.value && N.value.length > 0 ? (u(), P(m(Sl), {
4621
4625
  key: 0,
4622
4626
  class: "cl-h-[39px] cl-mb-2"
4623
4627
  })) : N.value.length > 0 ? (u(), P(Ss, {
@@ -4635,8 +4639,8 @@ const _n = {
4635
4639
  }, 8, ["search-value", "request", "columns"])) : L("", !0),
4636
4640
  k(Me, { name: "fade" }, {
4637
4641
  default: V(() => [
4638
- I.loading && Y.value === !1 ? (u(), g("div", Fs, [
4639
- k(Ye, { class: "after:!cl-h-20 after:!cl-w-20 cl-h-20 cl-w-20" })
4642
+ I.loading && x.value === !1 ? (u(), g("div", Fs, [
4643
+ k(xe, { class: "after:!cl-h-20 after:!cl-w-20 cl-h-20 cl-w-20" })
4640
4644
  ])) : L("", !0)
4641
4645
  ]),
4642
4646
  _: 1
@@ -4650,7 +4654,7 @@ const _n = {
4650
4654
  options: q.value,
4651
4655
  request: f.value,
4652
4656
  loading: I.loading,
4653
- "initial-load": Y.value,
4657
+ "initial-load": x.value,
4654
4658
  onClearFilters: y
4655
4659
  }, {
4656
4660
  "additional-grid-actions": V((G) => [
@@ -4668,7 +4672,7 @@ const _n = {
4668
4672
  v("div", js, [
4669
4673
  v("table", {
4670
4674
  class: M(["cl-delay-75 cl-min-h-[276px] cl-overflow-x-auto cl-overscroll-x-none cl-text-left cl-transition-opacity cl-w-full", {
4671
- "cl-opacity-40 cl-pointer-events-none": I.loading && Y.value === !1
4675
+ "cl-opacity-40 cl-pointer-events-none": I.loading && x.value === !1
4672
4676
  }])
4673
4677
  }, [
4674
4678
  v("colgroup", {
@@ -4678,7 +4682,7 @@ const _n = {
4678
4682
  }, [
4679
4683
  (u(!0), g(Z, null, X(p.value, (G, fe) => (u(), g("col", {
4680
4684
  key: fe,
4681
- style: xl(i(G.name)),
4685
+ style: Yl(i(G.name)),
4682
4686
  span: 1
4683
4687
  }, null, 4))), 128))
4684
4688
  ], 2),
@@ -4690,7 +4694,7 @@ const _n = {
4690
4694
  columns: p.value,
4691
4695
  options: q.value,
4692
4696
  loading: I.loading,
4693
- "initial-load": Y.value,
4697
+ "initial-load": x.value,
4694
4698
  "time-zone": I.timeZone,
4695
4699
  "header-display-timezone": n.value,
4696
4700
  onPerformDataRequest: D[7] || (D[7] = (G) => e("data-request"))
@@ -4701,7 +4705,7 @@ const _n = {
4701
4705
  data: h.value,
4702
4706
  "time-zone": I.timeZone,
4703
4707
  loading: I.loading,
4704
- "initial-load": Y.value,
4708
+ "initial-load": x.value,
4705
4709
  "search-value": _.value,
4706
4710
  options: q.value,
4707
4711
  "edit-mode": T.value,
@@ -4723,7 +4727,7 @@ const _n = {
4723
4727
  key: 2,
4724
4728
  request: f.value,
4725
4729
  loading: I.loading,
4726
- "initial-load": Y.value,
4730
+ "initial-load": x.value,
4727
4731
  "show-unsaved-changes-warning": T.value && q.value.disableUnsavedChangesWarning === !1,
4728
4732
  data: I.data,
4729
4733
  "onUpdate:request": D[11] || (D[11] = (G) => {
@@ -4777,7 +4781,7 @@ const _n = {
4777
4781
  }), [
4778
4782
  v("div", {
4779
4783
  class: "0 cl-grid cl-min-w-full cl-overflow-auto",
4780
- style: xl(r())
4784
+ style: Yl(r())
4781
4785
  }, [
4782
4786
  k(m(mt), {
4783
4787
  request: e.value,
@@ -4816,7 +4820,7 @@ const _n = {
4816
4820
  "is-small-grid": i.value.smallGridText
4817
4821
  }, null, 8, ["request", "inert", "grid-id", "data", "initial-load", "is-small-grid"])) : L("", !0)
4818
4822
  ], 16, Hs),
4819
- y.loading && !f.value ? (u(), P(Ye, {
4823
+ y.loading && !f.value ? (u(), P(xe, {
4820
4824
  key: 0,
4821
4825
  class: "after:!cl-h-14 after:!cl-w-14 cl-absolute cl-left-1/2 cl-top-20"
4822
4826
  })) : L("", !0)
@@ -4955,7 +4959,7 @@ const Ws = { class: "cl-col-[1_/_-1] cl-grid cl-grid-cols-subgrid" }, Ks = ["id"
4955
4959
  ]), 1040, ["id", "data", "time-zone", "column", "is-small-grid", "class"]))), 128))
4956
4960
  ]));
4957
4961
  }
4958
- }), xs = { class: "cl-col-[1_/_-1] cl-grid cl-grid-cols-subgrid" }, ht = /* @__PURE__ */ j({
4962
+ }), Ys = { class: "cl-col-[1_/_-1] cl-grid cl-grid-cols-subgrid" }, ht = /* @__PURE__ */ j({
4959
4963
  __name: "cl-ui-grid-lite-body",
4960
4964
  props: {
4961
4965
  columns: {},
@@ -4970,7 +4974,7 @@ const Ws = { class: "cl-col-[1_/_-1] cl-grid cl-grid-cols-subgrid" }, Ks = ["id"
4970
4974
  const t = o, { t: l } = ce(), e = $(() => t.options.smallGridText ?? !1), s = $(() => t.options.alternatingRows ?? !1);
4971
4975
  return (n, c) => {
4972
4976
  var d;
4973
- return u(), g("div", xs, [
4977
+ return u(), g("div", Ys, [
4974
4978
  n.initialLoad && n.pageSize > 0 ? (u(), P(gt, {
4975
4979
  key: 0,
4976
4980
  "page-size": n.pageSize,
@@ -5009,7 +5013,7 @@ const Ws = { class: "cl-col-[1_/_-1] cl-grid cl-grid-cols-subgrid" }, Ks = ["id"
5009
5013
  ]);
5010
5014
  };
5011
5015
  }
5012
- }), Ys = ["id"], Js = ["id"], Xs = ["id"], _s = {
5016
+ }), xs = ["id"], Js = ["id"], Xs = ["id"], _s = {
5013
5017
  key: 5,
5014
5018
  class: "cl-inline-block cl-whitespace-nowrap"
5015
5019
  }, er = ["id", "innerHTML"], bt = /* @__PURE__ */ j({
@@ -5098,7 +5102,7 @@ const Ws = { class: "cl-col-[1_/_-1] cl-grid cl-grid-cols-subgrid" }, Ks = ["id"
5098
5102
  ], 64)) : (u(), g(Z, { key: 2 }, [
5099
5103
  re(U(d(a.data[a.column.field], m(se).DATETIME)), 1)
5100
5104
  ], 64))
5101
- ], 8, Ys)) : a.column.type === "list" && a.column.field !== void 0 && a.column.listEntries !== void 0 ? (u(), g("span", {
5105
+ ], 8, xs)) : a.column.type === "list" && a.column.field !== void 0 && a.column.listEntries !== void 0 ? (u(), g("span", {
5102
5106
  key: 3,
5103
5107
  id: m(l),
5104
5108
  class: "cl-inline-block cl-whitespace-nowrap"
@@ -5273,7 +5277,7 @@ const yt = /* @__PURE__ */ ye(lr, [["render", or]]), ar = { class: "cl-flex cl-g
5273
5277
  emits: ["open-click"],
5274
5278
  setup(o, { emit: t }) {
5275
5279
  const l = o, e = t, s = R();
5276
- return xe(s, () => {
5280
+ return Ye(s, () => {
5277
5281
  (l.isOpen ?? !1) && e("open-click");
5278
5282
  }), (n, c) => (u(), g("header", gr, [
5279
5283
  A(n.$slots, "logo"),
@@ -5443,7 +5447,7 @@ const yt = /* @__PURE__ */ ye(lr, [["render", or]]), ar = { class: "cl-flex cl-g
5443
5447
  placeholder: q.placeholder,
5444
5448
  required: q.required,
5445
5449
  disabled: q.disabled,
5446
- onClear: F[0] || (F[0] = (Y) => c.value = null)
5450
+ onClear: F[0] || (F[0] = (x) => c.value = null)
5447
5451
  }), null, 16, ["date", "events", "type", "placeholder", "required", "disabled"])
5448
5452
  ]),
5449
5453
  _: 1
@@ -5522,8 +5526,8 @@ const yt = /* @__PURE__ */ ye(lr, [["render", or]]), ar = { class: "cl-flex cl-g
5522
5526
  placeholder: q.placeholder,
5523
5527
  required: q.required,
5524
5528
  disabled: q.disabled,
5525
- onClear: F[5] || (F[5] = (Y) => c.value = null),
5526
- onReset: F[6] || (F[6] = (Y) => c.value = m(tt)(e.min, e.max, n.value, q.type))
5529
+ onClear: F[5] || (F[5] = (x) => c.value = null),
5530
+ onReset: F[6] || (F[6] = (x) => c.value = m(tt)(e.min, e.max, n.value, q.type))
5527
5531
  }), null, 16, ["date", "events", "type", "placeholder", "required", "disabled"])
5528
5532
  ]),
5529
5533
  _: 1
@@ -5783,7 +5787,7 @@ const Lr = { class: "cl-flex cl-justify-between" }, Br = { class: "cl-w-full" },
5783
5787
  }, Qr = {
5784
5788
  key: 1,
5785
5789
  class: "cl-bg-danger-light cl-px-2 cl-rounded-md cl-text-center cl-text-danger-default cl-text-xs cl-w-auto cl-whitespace-pre-line"
5786
- }, xr = /* @__PURE__ */ j({
5790
+ }, Yr = /* @__PURE__ */ j({
5787
5791
  inheritAttrs: !1,
5788
5792
  __name: "cl-ui-input",
5789
5793
  props: {
@@ -5836,7 +5840,7 @@ const Lr = { class: "cl-flex cl-justify-between" }, Br = { class: "cl-w-full" },
5836
5840
  ...((B = e.externalErrors) == null ? void 0 : B.filter((W) => ((W == null ? void 0 : W.length) ?? 0) > 0)) ?? []
5837
5841
  ].join(`
5838
5842
  `);
5839
- }), Y = $(() => ({
5843
+ }), x = $(() => ({
5840
5844
  currency: "GBP",
5841
5845
  locale: "en-GB",
5842
5846
  valueRange: {
@@ -5910,7 +5914,7 @@ const Lr = { class: "cl-flex cl-justify-between" }, Br = { class: "cl-w-full" },
5910
5914
  e.validateOn === "change" && await D(W), s("change", b, W);
5911
5915
  }
5912
5916
  }
5913
- async function x() {
5917
+ async function Y() {
5914
5918
  await E(), H();
5915
5919
  }
5916
5920
  return je(() => {
@@ -5976,7 +5980,7 @@ const Lr = { class: "cl-flex cl-justify-between" }, Br = { class: "cl-w-full" },
5976
5980
  autocomplete: b.autocomplete,
5977
5981
  onClick: B[1] || (B[1] = (W) => fe(W)),
5978
5982
  onFocus: B[2] || (B[2] = (W) => s("focus")),
5979
- onBlur: ae(x, ["self"]),
5983
+ onBlur: ae(Y, ["self"]),
5980
5984
  onMousewheelPassive: w,
5981
5985
  onInput: B[3] || (B[3] = (W) => {
5982
5986
  s("input", W, m(Hl)(W, b.inputType));
@@ -6026,7 +6030,7 @@ const Lr = { class: "cl-flex cl-justify-between" }, Br = { class: "cl-w-full" },
6026
6030
  "input-specific-classes": b.inputSpecificClasses,
6027
6031
  group: b.group,
6028
6032
  step: b.step,
6029
- "currency-options": Y.value,
6033
+ "currency-options": x.value,
6030
6034
  onChange: B[7] || (B[7] = (W, ie) => z(W, ie)),
6031
6035
  onFocus: B[8] || (B[8] = (W) => s("focus")),
6032
6036
  onBlur: E
@@ -6074,7 +6078,7 @@ const Lr = { class: "cl-flex cl-justify-between" }, Br = { class: "cl-w-full" },
6074
6078
  !q.value && N.value.length > 0 && b.showValidationMessages && F.value ? (u(), g("div", Qr, U(N.value), 1)) : L("", !0)
6075
6079
  ], 16));
6076
6080
  }
6077
- }), Yr = /* @__PURE__ */ ye(xr, [["__scopeId", "data-v-2373f106"]]), Jr = [
6081
+ }), xr = /* @__PURE__ */ ye(Yr, [["__scopeId", "data-v-2373f106"]]), Jr = [
6078
6082
  "button",
6079
6083
  "checkbox",
6080
6084
  "color",
@@ -6368,7 +6372,7 @@ const ei = {
6368
6372
  deep: !0
6369
6373
  }
6370
6374
  );
6371
- const r = R(!1), a = R(!1), { start: i } = Yl(() => a.value = !1, 100);
6375
+ const r = R(!1), a = R(!1), { start: i } = xl(() => a.value = !1, 100);
6372
6376
  function f() {
6373
6377
  r.value = !r.value, e("pinned-state", r.value), a.value = !0, i();
6374
6378
  }
@@ -6381,7 +6385,7 @@ const ei = {
6381
6385
  O.open = !1;
6382
6386
  }), e("open-state", !1, void 0));
6383
6387
  }
6384
- return xe(y, h), t({
6388
+ return Ye(y, h), t({
6385
6389
  closeNavigation: h,
6386
6390
  restorePinnedNavigation: C
6387
6391
  }), (O, T) => (u(), g("div", {
@@ -6570,7 +6574,7 @@ const zi = /* @__PURE__ */ ye(Ii, [["render", Ui]]), Li = /* @__PURE__ */ j({
6570
6574
  ref: d,
6571
6575
  class: M(["cl-border-b cl-border-grey-1 cl-flex cl-flex-nowrap cl-flex-row", {
6572
6576
  "cl-mr-4": r.value && a.value,
6573
- "cl-mb-4 xl:cl-mb-6 cl-overflow-x-auto cl-overscroll-x-none cl-w-full": a.value,
6577
+ "cl-mb-4 xl:cl-mb-6 cl-overflow-x-auto cl-overscroll-x-none cl-w-full cl-gap-4 xl:cl-gap-6": a.value,
6574
6578
  "cl-flex-col cl-border-b-0": a.value === !1
6575
6579
  }]),
6576
6580
  onScrollPassive: i
@@ -6611,16 +6615,18 @@ const zi = /* @__PURE__ */ ye(Ii, [["render", Ui]]), Li = /* @__PURE__ */ j({
6611
6615
  setup(o) {
6612
6616
  const t = o, l = $(() => t.layout === "horizontal");
6613
6617
  return (e, s) => (u(), g("div", {
6614
- class: M(["cl-flex cl-font-bold cl-items-center cl-px-4 cl-py-2 cl-whitespace-nowrap xl:cl-px-6 xl:cl-py-3 xl:cl-text-lg", {
6615
- "cl-border-b-4": l.value,
6616
- "cl-border-b-0 cl-border-r-4": l.value === !1,
6618
+ class: M(["cl-flex cl-items-center cl-whitespace-nowrap", {
6619
+ "cl-border-b-4 cl-pb-2": l.value,
6620
+ "cl-border-b-0 cl-border-r-4 cl-pr-4 cl-py-2": l.value === !1,
6617
6621
  "cl-cursor-pointer hover:cl-border-opacity-100 cl-border-link-lighter cl-border-opacity-0 cl-text-secondary-light hover:cl-text-black": e.open === !1 && !e.disabled,
6618
6622
  "cl-border-primary-default": e.open && (e.colour === "primary" || e.colour === "default") && !e.disabled,
6619
6623
  "cl-border-secondary-default": e.open && e.colour === "secondary" && !e.disabled,
6620
6624
  "cl-border-danger-default": e.open && e.colour === "danger" && !e.disabled,
6621
6625
  "cl-border-blue-default": e.open && e.colour === "blue" && !e.disabled,
6622
6626
  "cl-text-grey-2 cl-border-link-lighter cl-border-opacity-0": e.disabled,
6623
- "cl-border-grey-1": e.disabled && e.open
6627
+ "cl-border-grey-1": e.disabled && e.open,
6628
+ "cl-text-secondary-default": e.disabled == !1,
6629
+ "cl-font-bold": e.open
6624
6630
  }]),
6625
6631
  inert: e.disabled
6626
6632
  }, [
@@ -6655,7 +6661,7 @@ const zi = /* @__PURE__ */ ye(Ii, [["render", Ui]]), Li = /* @__PURE__ */ j({
6655
6661
  ], Wi = [
6656
6662
  "horizontal",
6657
6663
  "vertical"
6658
- ], Ki = { class: "cl-block cl-h-full cl-w-full" }, Qi = ["multiple", "accept", "disabled"], xi = ["multiple", "accept", "disabled"], Yi = /* @__PURE__ */ j({
6664
+ ], Ki = { class: "cl-block cl-h-full cl-w-full" }, Qi = ["multiple", "accept", "disabled"], Yi = ["multiple", "accept", "disabled"], xi = /* @__PURE__ */ j({
6659
6665
  inheritAttrs: !1,
6660
6666
  __name: "cl-ui-file-uploader",
6661
6667
  props: {
@@ -6736,7 +6742,7 @@ const zi = /* @__PURE__ */ ye(Ii, [["render", Ui]]), Li = /* @__PURE__ */ j({
6736
6742
  accept: i.acceptedFileTypes,
6737
6743
  disabled: i.disabled,
6738
6744
  onInput: n
6739
- }, null, 42, xi))
6745
+ }, null, 42, Yi))
6740
6746
  ]));
6741
6747
  }
6742
6748
  }), Ji = /* @__PURE__ */ j({
@@ -6894,7 +6900,7 @@ const zi = /* @__PURE__ */ ye(Ii, [["render", Ui]]), Li = /* @__PURE__ */ j({
6894
6900
  t.value = !t.value;
6895
6901
  }
6896
6902
  const c = R(!1), { lg: d } = zt(Lt), p = R();
6897
- return xe(p, () => {
6903
+ return Ye(p, () => {
6898
6904
  t.value === !0 && d.value === !1 && (t.value = !1);
6899
6905
  }), (r, a) => (u(), g(Z, null, [
6900
6906
  v("div", K({
@@ -7185,7 +7191,7 @@ const qc = { class: "cl-flex cl-flex-nowrap cl-flex-row cl-w-full" }, Oc = { cla
7185
7191
  "branches-at": C.value
7186
7192
  }, null, 8, ["branches-at"])) : L("", !0),
7187
7193
  S.rootNode.children && S.rootNode.children.length > 0 && m(c) ? (u(), g("div", Mc, [
7188
- (u(!0), g(Z, null, X(S.rootNode.children, (N, Y) => (u(), g("div", {
7194
+ (u(!0), g(Z, null, X(S.rootNode.children, (N, x) => (u(), g("div", {
7189
7195
  key: N.id,
7190
7196
  ref_for: !0,
7191
7197
  ref_key: "childSubtreeDivs",
@@ -7196,11 +7202,11 @@ const qc = { class: "cl-flex cl-flex-nowrap cl-flex-row cl-w-full" }, Oc = { cla
7196
7202
  "onUpdate:selectedPath": q[2] || (q[2] = (ne) => e.value = ne),
7197
7203
  "id-prefix": `${S.idPrefix}-${N.id}`,
7198
7204
  depth: S.depth + 1,
7199
- breadth: Y,
7205
+ breadth: x,
7200
7206
  "path-fragments": [...S.pathFragments, N.id],
7201
7207
  "root-node": N,
7202
7208
  onRecalculateTreePath: m(O),
7203
- onSetChildNodeHeight: (ne) => y.value[Y] = ne
7209
+ onSetChildNodeHeight: (ne) => y.value[x] = ne
7204
7210
  }, be({ _: 2 }, [
7205
7211
  X(S.$slots, (ne, I) => ({
7206
7212
  name: I,
@@ -7270,7 +7276,7 @@ const qc = { class: "cl-flex cl-flex-nowrap cl-flex-row cl-w-full" }, Oc = { cla
7270
7276
  clUiButton: Ce,
7271
7277
  clUiCard: co,
7272
7278
  clUiComboBox: Go,
7273
- clUiFileUploader: Yi,
7279
+ clUiFileUploader: xi,
7274
7280
  clUiFooter: _o,
7275
7281
  clUiGrid: Ps,
7276
7282
  clUiGridLite: Zs,
@@ -7283,7 +7289,7 @@ const qc = { class: "cl-flex cl-flex-nowrap cl-flex-row cl-w-full" }, Oc = { cla
7283
7289
  clUiGridLiteRow: vt,
7284
7290
  clUiHeader: vr,
7285
7291
  clUiHeaderMenu: Cr,
7286
- clUiInput: Yr,
7292
+ clUiInput: xr,
7287
7293
  clUiInputCheckbox: dl,
7288
7294
  clUiInputDateRange: ut,
7289
7295
  clUiInputDateRangeInput: Vl,
@@ -7293,7 +7299,7 @@ const qc = { class: "cl-flex cl-flex-nowrap cl-flex-row cl-w-full" }, Oc = { cla
7293
7299
  clUiInputText: Re,
7294
7300
  clUiInputTextArea: Sn,
7295
7301
  clUiLanguageSwitcher: ai,
7296
- clUiLoadingSpinner: Ye,
7302
+ clUiLoadingSpinner: xe,
7297
7303
  clUiLogin: hi,
7298
7304
  clUiMenu: rc,
7299
7305
  clUiMenuGroup: mc,
@@ -7367,7 +7373,7 @@ export {
7367
7373
  Ce as clUiButton,
7368
7374
  co as clUiCard,
7369
7375
  Go as clUiComboBox,
7370
- Yi as clUiFileUploader,
7376
+ xi as clUiFileUploader,
7371
7377
  _o as clUiFooter,
7372
7378
  Ps as clUiGrid,
7373
7379
  Zs as clUiGridLite,
@@ -7380,7 +7386,7 @@ export {
7380
7386
  vt as clUiGridLiteRow,
7381
7387
  vr as clUiHeader,
7382
7388
  Cr as clUiHeaderMenu,
7383
- Yr as clUiInput,
7389
+ xr as clUiInput,
7384
7390
  dl as clUiInputCheckbox,
7385
7391
  ut as clUiInputDateRange,
7386
7392
  Vl as clUiInputDateRangeInput,
@@ -7390,7 +7396,7 @@ export {
7390
7396
  Re as clUiInputText,
7391
7397
  Sn as clUiInputTextArea,
7392
7398
  ai as clUiLanguageSwitcher,
7393
- Ye as clUiLoadingSpinner,
7399
+ xe as clUiLoadingSpinner,
7394
7400
  hi as clUiLogin,
7395
7401
  rc as clUiMenu,
7396
7402
  mc as clUiMenuGroup,
@@ -7446,8 +7452,8 @@ export {
7446
7452
  Un as popoverPlacements,
7447
7453
  $n as quickDateNames,
7448
7454
  Ta as scrubGroupSeparatorsFromFormattedValue,
7449
- Yc as setCurrentLocale,
7450
- xc as setLocaleDateTimeFormats,
7455
+ xc as setCurrentLocale,
7456
+ Yc as setLocaleDateTimeFormats,
7451
7457
  Kc as setLocaleMessages,
7452
7458
  Qc as setLocaleNumberFormats,
7453
7459
  Il as showNotification,