@citruslime/ui 2.6.7-beta.0 → 2.6.7-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import { Icon as H } from "@iconify/vue";
2
- import { defineComponent as Q, ref as I, openBlock as p, createElementBlock as h, renderSlot as P, normalizeProps as ce, guardReactiveProps as ve, Fragment as X, createElementVNode as b, normalizeClass as V, createVNode as S, unref as v, Transition as Te, withCtx as Y, withDirectives as le, mergeProps as fe, vShow as te, createBlock as G, Teleport as ll, renderList as se, toDisplayString as q, createCommentVNode as F, nextTick as Fe, computed as R, toHandlers as Vl, withModifiers as ne, useCssVars as Ll, vModelText as Pl, onMounted as Ze, watch as oe, vModelDynamic as Ul, toRefs as Bl, withKeys as Ee, onUnmounted as tl, resolveComponent as Tl, createTextVNode as de, watchEffect as zl, createSlots as al, normalizeStyle as _l } from "vue";
2
+ import { defineComponent as Q, ref as I, openBlock as p, createElementBlock as h, renderSlot as P, normalizeProps as ce, guardReactiveProps as ve, Fragment as X, createElementVNode as b, normalizeClass as L, createVNode as S, unref as v, Transition as Te, withCtx as Y, withDirectives as le, mergeProps as fe, vShow as te, createBlock as G, Teleport as ll, renderList as se, toDisplayString as q, createCommentVNode as M, nextTick as Fe, computed as R, toHandlers as Vl, withModifiers as ne, useCssVars as Ll, vModelText as Pl, onMounted as Ze, watch as oe, vModelDynamic as Ul, toRefs as Bl, withKeys as Ee, onUnmounted as tl, resolveComponent as Tl, createTextVNode as de, watchEffect as zl, createSlots as al, normalizeStyle as _l } from "vue";
3
3
  import { generateStringId as Hl, highlightText as xl } from "@citruslime/utils";
4
4
  import { useMediaQuery as Gl, useDebounceFn as ol, unrefElement as Zl, tryOnScopeDispose as Kl, onClickOutside as nl, useTimeoutFn as $l, useWindowSize as Ql } from "@vueuse/core";
5
5
  import { createI18n as Wl, useI18n as ie } from "vue-i18n";
@@ -47,7 +47,7 @@ const Yl = { class: "cl-overflow-hidden" }, Jl = /* @__PURE__ */ Q({
47
47
  }
48
48
  return (n, c) => (p(), h(X, null, [
49
49
  b("div", {
50
- class: V(["cl-border-b cl-border-grey-1 cl-relative", {
50
+ class: L(["cl-border-b cl-border-grey-1 cl-relative", {
51
51
  "cl-bg-grey-0": n.disabled,
52
52
  "cl-cursor-pointer": !n.disabled
53
53
  }]),
@@ -55,7 +55,7 @@ const Yl = { class: "cl-overflow-hidden" }, Jl = /* @__PURE__ */ Q({
55
55
  }, [
56
56
  b("div", Xl, [
57
57
  S(v(H), {
58
- class: V(["cl-duration-300 cl-ease-in-out cl-text-grey-3 cl-transform-gpu cl-transition-transform", {
58
+ class: L(["cl-duration-300 cl-ease-in-out cl-text-grey-3 cl-transform-gpu cl-transition-transform", {
59
59
  "cl-rotate-180": n.open
60
60
  }]),
61
61
  icon: "ph:caret-down-bold",
@@ -112,7 +112,7 @@ const st = ["onClick"], it = { class: "cl-flex-1 cl-select-none cl-text-ellipsis
112
112
  setup(a) {
113
113
  return (e, l) => (p(), G(ll, { to: e.container }, [
114
114
  b("div", {
115
- class: V(["cl-fixed cl-w-80 cl-z-50", {
115
+ class: L(["cl-fixed cl-w-80 cl-z-50", {
116
116
  "cl-top-5 cl-left-5": e.position === "top-left",
117
117
  "cl-top-5 cl-left-1/2": e.position === "top-centre",
118
118
  "cl-top-5 cl-right-5": e.position === "top-right",
@@ -151,21 +151,21 @@ const st = ["onClick"], it = { class: "cl-flex-1 cl-select-none cl-text-ellipsis
151
151
  setup(a) {
152
152
  return (e, l) => (p(), h(X, null, [
153
153
  S(Ol, {
154
- class: V({
154
+ class: L({
155
155
  "first:cl-mt-[4.25rem]": e.$slots.header
156
156
  })
157
157
  }, null, 8, ["class"]),
158
158
  b("div", ct, [
159
159
  P(e.$slots, "header"),
160
160
  b("div", {
161
- class: V(["cl-content-start cl-flex cl-flex-nowrap cl-items-stretch cl-max-h-full cl-relative cl-w-full xl:cl-max-h-screen", {
161
+ class: L(["cl-content-start cl-flex cl-flex-nowrap cl-items-stretch cl-max-h-full cl-relative cl-w-full xl:cl-max-h-screen", {
162
162
  "cl-pt-20": e.$slots.header
163
163
  }])
164
164
  }, [
165
165
  P(e.$slots, "navigation"),
166
166
  b("div", {
167
167
  id: "cl-ui-app-container",
168
- class: V(["cl-grow cl-max-h-full cl-overflow-x-hidden cl-overflow-y-auto cl-overscroll-y-none cl-w-auto", {
168
+ class: L(["cl-grow cl-max-h-full cl-overflow-x-hidden cl-overflow-y-auto cl-overscroll-y-none cl-w-auto", {
169
169
  "lg:cl-pb-0": e.removePadding,
170
170
  "lg:cl-pb-8 md:cl-px-8 cl-px-2 md:cl-pt-8 cl-pt-2": !e.removePadding
171
171
  }])
@@ -242,16 +242,16 @@ const Ke = /* @__PURE__ */ ke(dt, [["render", pt], ["__scopeId", "data-v-a21dc5d
242
242
  },
243
243
  setup(a) {
244
244
  return (e, l) => (p(), h("div", {
245
- class: V(["cl-border cl-border-transparent cl-overflow-hidden cl-relative cl-rounded-md cl-shadow-lg cl-transition-all", {
245
+ class: L(["cl-border cl-border-transparent cl-overflow-hidden cl-relative cl-rounded-md cl-shadow-lg cl-transition-all", {
246
246
  "cl-cursor-pointer hover:cl-shadow-xl hover:cl-border-grey-0": e.hover
247
247
  }])
248
248
  }, [
249
249
  e.$slots.image ? (p(), h("div", bt, [
250
250
  P(e.$slots, "image")
251
- ])) : F("", !0),
251
+ ])) : M("", !0),
252
252
  e.$slots.title ? (p(), h("div", {
253
253
  key: 1,
254
- class: V(["cl-border-grey-2 cl-font-normal", {
254
+ class: L(["cl-border-grey-2 cl-font-normal", {
255
255
  "cl-p-2 cl-text-2xl cl-leading-8": e.size === "small",
256
256
  "cl-p-4 cl-text-3xl cl-leading-9": e.size === "medium",
257
257
  "cl-p-6 cl-text-4xl cl-leading-10": e.size === "large",
@@ -259,9 +259,9 @@ const Ke = /* @__PURE__ */ ke(dt, [["render", pt], ["__scopeId", "data-v-a21dc5d
259
259
  }])
260
260
  }, [
261
261
  P(e.$slots, "title")
262
- ], 2)) : F("", !0),
262
+ ], 2)) : M("", !0),
263
263
  b("div", {
264
- class: V(["cl-border-grey-2", {
264
+ class: L(["cl-border-grey-2", {
265
265
  "cl-p-2": e.size === "small",
266
266
  "cl-p-4": e.size === "medium",
267
267
  "cl-p-6": e.size === "large",
@@ -272,14 +272,14 @@ const Ke = /* @__PURE__ */ ke(dt, [["render", pt], ["__scopeId", "data-v-a21dc5d
272
272
  ], 2),
273
273
  e.$slots.footer ? (p(), h("div", {
274
274
  key: 2,
275
- class: V(["cl-border-grey-2 cl-border-t", {
275
+ class: L(["cl-border-grey-2 cl-border-t", {
276
276
  "cl-p-2": e.size === "small",
277
277
  "cl-p-4": e.size === "medium",
278
278
  "cl-p-6": e.size === "large"
279
279
  }])
280
280
  }, [
281
281
  P(e.$slots, "footer")
282
- ], 2)) : F("", !0)
282
+ ], 2)) : M("", !0)
283
283
  ], 2));
284
284
  }
285
285
  }), yt = [
@@ -636,7 +636,7 @@ const Nt = {
636
636
  focus: n
637
637
  }), (o, s) => o.type === "dateRange" ? (p(), h("div", Nt, [
638
638
  S(be, {
639
- class: V(["cl-basis-full cl-border-transparent cl-col-span-4 cl-flex cl-items-center cl-justify-center hover:cl-border-transparent", {
639
+ class: L(["cl-basis-full cl-border-transparent cl-col-span-4 cl-flex cl-items-center cl-justify-center hover:cl-border-transparent", {
640
640
  "cl-text-grey-4 hover:cl-text-grey-3": !o.rangeSelected,
641
641
  "cl-text-primary-darker hover:cl-text-primary-dark": o.rangeSelected
642
642
  }]),
@@ -651,10 +651,10 @@ const Nt = {
651
651
  ]),
652
652
  _: 1
653
653
  }, 8, ["disabled", "class"]),
654
- o.required ? F("", !0) : (p(), G(be, {
654
+ o.required ? M("", !0) : (p(), G(be, {
655
655
  key: 0,
656
656
  size: "small",
657
- class: V(["cl-basis-0 cl-border-transparent cl-flex cl-items-center cl-justify-center hover:cl-border-transparent", {
657
+ class: L(["cl-basis-0 cl-border-transparent cl-flex cl-items-center cl-justify-center hover:cl-border-transparent", {
658
658
  "cl-text-grey-4 hover:cl-text-grey-3": !o.rangeSelected,
659
659
  "cl-text-danger-dark hover:cl-text-danger-default": o.rangeSelected
660
660
  }]),
@@ -680,7 +680,7 @@ const Nt = {
680
680
  placeholder: r.value
681
681
  }, Vl(o.events, !0)), null, 16, At),
682
682
  le(S(v(H), {
683
- class: V(["cl-absolute cl-bg-transparent cl-cursor-text cl-left-2 cl-text-grey-4 cl-top-3.5 icon", {
683
+ class: L(["cl-absolute cl-bg-transparent cl-cursor-text cl-left-2 cl-text-grey-4 cl-top-3.5 icon", {
684
684
  "!cl-bg-off-white": o.disabled
685
685
  }]),
686
686
  icon: o.type === "time" ? "ph-clock" : "ph:calendar",
@@ -688,19 +688,19 @@ const Nt = {
688
688
  }, null, 8, ["class", "icon"]), [
689
689
  [te, !o.disabled]
690
690
  ]),
691
- o.disabled ? F("", !0) : (p(), h("div", qt, [
691
+ o.disabled ? M("", !0) : (p(), h("div", qt, [
692
692
  o.type !== "time" ? (p(), G(v(H), {
693
693
  key: 0,
694
694
  class: "cl-cursor-pointer hover:cl-text-link-light",
695
695
  icon: "ph:arrow-counter-clockwise",
696
696
  onClick: s[2] || (s[2] = ne((i) => o.$emit("reset"), ["prevent"]))
697
- })) : F("", !0),
697
+ })) : M("", !0),
698
698
  !o.required && o.date && (o.type !== "time" || o.date !== "00:00") ? (p(), G(v(H), {
699
699
  key: 1,
700
700
  class: "cl-cursor-pointer clear-icon hover:cl-text-link-light md:cl-ml-0.5",
701
701
  icon: "ph:x",
702
702
  onClick: s[3] || (s[3] = ne((i) => o.$emit("clear"), ["prevent"]))
703
- })) : F("", !0)
703
+ })) : M("", !0)
704
704
  ]))
705
705
  ]));
706
706
  }
@@ -719,7 +719,7 @@ const Ye = /* @__PURE__ */ ke(Rt, [["__scopeId", "data-v-905eee52"]]), Dt = { cl
719
719
  var o, s;
720
720
  return p(), h("button", {
721
721
  key: r,
722
- class: V(["cl-border cl-cursor-pointer cl-py-1 cl-rounded-md cl-text-center", {
722
+ class: L(["cl-border cl-cursor-pointer cl-py-1 cl-rounded-md cl-text-center", {
723
723
  "cl-bg-primary-lighter cl-bg-opacity-30 cl-border-primary-default cl-font-bold hover:cl-border-primary-darker": ((o = t.selectedQuickDate) == null ? void 0 : o.name) === c.name,
724
724
  "cl-border-grey-2 hover:cl-border-grey-3 hover:cl-opacity-95 cl-opacity-60": ((s = t.selectedQuickDate) == null ? void 0 : s.name) !== c.name
725
725
  }]),
@@ -869,7 +869,7 @@ const Ye = /* @__PURE__ */ ke(Rt, [["__scopeId", "data-v-905eee52"]]), Dt = { cl
869
869
  "selected-quick-date": c.selectedQuickDate,
870
870
  onQuickDateSelected: r[0] || (r[0] = (i) => e("quick-date-selected", i))
871
871
  }, null, 8, ["dates", "selected-quick-date"]),
872
- s < n.value.length - 1 ? (p(), h("div", Vt)) : F("", !0)
872
+ s < n.value.length - 1 ? (p(), h("div", Vt)) : M("", !0)
873
873
  ]))), 128))
874
874
  ]));
875
875
  }
@@ -990,10 +990,10 @@ const Ye = /* @__PURE__ */ ke(Rt, [["__scopeId", "data-v-905eee52"]]), Dt = { cl
990
990
  (d = u.value) == null || d.focus();
991
991
  }
992
992
  });
993
- const N = I(null), L = I();
993
+ const N = I(null), F = I();
994
994
  function j(d) {
995
995
  const f = Z(d);
996
- c.value = f, N.value = d, L.value.move(f.start), L.value.hidePopover();
996
+ c.value = f, N.value = d, F.value.move(f.start), F.value.hidePopover();
997
997
  }
998
998
  function Z(d) {
999
999
  const f = d.range, O = d.scope === "past" ? -1 : d.scope === "current" ? 0 : 1, $ = x.now().setZone(n.value).startOf(f).plus({ days: f === "day" ? O : 0, weeks: f === "week" ? O : 0, months: f === "month" ? O : 0, years: f === "year" ? O : 0 }), _ = $.endOf(f);
@@ -1044,7 +1044,7 @@ const Ye = /* @__PURE__ */ ke(Rt, [["__scopeId", "data-v-905eee52"]]), Dt = { cl
1044
1044
  }, 8, ["modelValue", "locale", "is24hr", "mode", "is-required", "masks", "popover"])) : d.type === "dateRange" ? (p(), G(v(We), {
1045
1045
  key: 1,
1046
1046
  ref_key: "calendar",
1047
- ref: L,
1047
+ ref: F,
1048
1048
  modelValue: c.value,
1049
1049
  "onUpdate:modelValue": f[3] || (f[3] = (O) => c.value = O),
1050
1050
  modelModifiers: { range: !0 },
@@ -1072,7 +1072,7 @@ const Ye = /* @__PURE__ */ ke(Rt, [["__scopeId", "data-v-905eee52"]]), Dt = { cl
1072
1072
  placeholder: null,
1073
1073
  onTogglePopover: O,
1074
1074
  onClear: f[2] || (f[2] = ($) => {
1075
- c.value = null, N.value = null, L.value.hidePopover();
1075
+ c.value = null, N.value = null, F.value.hidePopover();
1076
1076
  })
1077
1077
  }), null, 16, ["type", "required", "disabled", "range-selected", "title", "onTogglePopover"])
1078
1078
  ]),
@@ -1083,7 +1083,7 @@ const Ye = /* @__PURE__ */ ke(Rt, [["__scopeId", "data-v-905eee52"]]), Dt = { cl
1083
1083
  "selected-quick-date": N.value,
1084
1084
  "current-date-range": t.date,
1085
1085
  onQuickDateSelected: j
1086
- }, null, 8, ["scope", "selected-quick-date", "current-date-range"])) : F("", !0)
1086
+ }, null, 8, ["scope", "selected-quick-date", "current-date-range"])) : M("", !0)
1087
1087
  ]),
1088
1088
  _: 1
1089
1089
  }, 8, ["modelValue", "locale", "timezone", "columns", "popover", "min-date", "max-date", "initial-page"])) : (p(), G(v(We), {
@@ -1200,7 +1200,7 @@ const Bt = [
1200
1200
  return (u, w) => m.value ? (p(), h("div", ce(fe({ key: 0 }, u.$attrs)), [
1201
1201
  b("div", zt, [
1202
1202
  b("span", {
1203
- class: V(["cl-border cl-border-transparent cl-leading-6 cl-mr-1 cl-px-2 cl-rounded-full cl-select-none cl-shadow cl-text-center cl-text-xs", {
1203
+ class: L(["cl-border cl-border-transparent cl-leading-6 cl-mr-1 cl-px-2 cl-rounded-full cl-select-none cl-shadow cl-text-center cl-text-xs", {
1204
1204
  "cl-bg-white cl-cursor-pointer hover:cl-border-grey-1": !u.disabled,
1205
1205
  "cl-bg-grey-0": u.disabled
1206
1206
  }]),
@@ -1247,7 +1247,7 @@ const Bt = [
1247
1247
  ], 64))
1248
1248
  ]),
1249
1249
  b("span", {
1250
- class: V(["cl-border cl-border-transparent cl-leading-6 cl-ml-1 cl-px-2 cl-rounded-full cl-select-none cl-shadow cl-text-center cl-text-xs", {
1250
+ class: L(["cl-border cl-border-transparent cl-leading-6 cl-ml-1 cl-px-2 cl-rounded-full cl-select-none cl-shadow cl-text-center cl-text-xs", {
1251
1251
  "cl-bg-white cl-cursor-pointer hover:cl-border-grey-1": !u.disabled,
1252
1252
  "cl-bg-grey-0": u.disabled
1253
1253
  }]),
@@ -1386,27 +1386,27 @@ const Jt = { class: "cl-flex cl-justify-between" }, Xt = { class: "cl-w-full" },
1386
1386
  }), k = R({
1387
1387
  get: () => t.modelValue,
1388
1388
  set: (g) => d(g)
1389
- }), u = R(() => typeof t.min == "number" ? t.min.toString() : t.min), w = R(() => typeof t.max == "number" ? t.max.toString() : t.max), N = R(() => typeof t.min == "number" || t.min === null ? t.min : parseFloat(t.min)), L = R(() => typeof t.max == "number" || t.max === null ? t.max : parseFloat(t.max)), j = R(() => t.messageWhenValid.trim() !== "" ? t.messageWhenValid : ""), Z = I(!0), ae = I(!0), E = I([]), B = R(() => {
1390
- var g, M;
1389
+ }), u = R(() => typeof t.min == "number" ? t.min.toString() : t.min), w = R(() => typeof t.max == "number" ? t.max.toString() : t.max), N = R(() => typeof t.min == "number" || t.min === null ? t.min : parseFloat(t.min)), F = R(() => typeof t.max == "number" || t.max === null ? t.max : parseFloat(t.max)), j = R(() => t.messageWhenValid.trim() !== "" ? t.messageWhenValid : ""), Z = I(!0), ae = I(!0), E = I([]), B = R(() => {
1390
+ var g, V;
1391
1391
  return [
1392
1392
  ...((g = E.value) == null ? void 0 : g.filter((K) => ((K == null ? void 0 : K.length) ?? 0) > 0)) ?? [],
1393
- ...((M = t.externalErrors) == null ? void 0 : M.filter((K) => ((K == null ? void 0 : K.length) ?? 0) > 0)) ?? []
1393
+ ...((V = t.externalErrors) == null ? void 0 : V.filter((K) => ((K == null ? void 0 : K.length) ?? 0) > 0)) ?? []
1394
1394
  ].join(`
1395
1395
  `);
1396
1396
  });
1397
1397
  async function d(g) {
1398
1398
  t.validateOn === "input" && await O(g), l("update:model-value", g);
1399
1399
  }
1400
- async function f(g, M) {
1401
- t.onInputFunction !== void 0 && (g = t.onInputFunction(g)), t.validateOn === "change" && (ae.value = !1), (M || t.validateOn === "input") && await O(g), l("update:model-value", g);
1400
+ async function f(g, V) {
1401
+ t.onInputFunction !== void 0 && (g = t.onInputFunction(g)), t.validateOn === "change" && (ae.value = !1), (V || t.validateOn === "input") && await O(g), l("update:model-value", g);
1402
1402
  }
1403
1403
  function O(g) {
1404
- const M = {
1404
+ const V = {
1405
1405
  message: "",
1406
1406
  valid: !0
1407
1407
  }, K = [
1408
1408
  t.customValidationFunction === null || t.customValidationFunction === void 0 ? new Promise((pe) => {
1409
- pe(M);
1409
+ pe(V);
1410
1410
  }) : new Promise((pe) => {
1411
1411
  pe(t.customValidationFunction(t.label, g));
1412
1412
  })
@@ -1426,19 +1426,19 @@ const Jt = { class: "cl-flex cl-justify-between" }, Xt = { class: "cl-w-full" },
1426
1426
  function z(g) {
1427
1427
  if (n.value) {
1428
1428
  n.value.stepUp(), n.value.focus(), f(n.value.valueAsNumber, !1);
1429
- const M = {
1429
+ const V = {
1430
1430
  target: n.value
1431
1431
  };
1432
- l("input", M, n.value.valueAsNumber), l("change", g, n.value.valueAsNumber);
1432
+ l("input", V, n.value.valueAsNumber), l("change", g, n.value.valueAsNumber);
1433
1433
  }
1434
1434
  }
1435
1435
  function T(g) {
1436
1436
  if (n.value) {
1437
1437
  n.value.stepDown(), n.value.focus(), f(n.value.valueAsNumber, !1);
1438
- const M = {
1438
+ const V = {
1439
1439
  target: n.value
1440
1440
  };
1441
- l("input", M, n.value.valueAsNumber), l("change", g, n.value.valueAsNumber);
1441
+ l("input", V, n.value.valueAsNumber), l("change", g, n.value.valueAsNumber);
1442
1442
  }
1443
1443
  }
1444
1444
  function y(g) {
@@ -1456,12 +1456,12 @@ const Jt = { class: "cl-flex cl-justify-between" }, Xt = { class: "cl-w-full" },
1456
1456
  function D() {
1457
1457
  var K;
1458
1458
  let g = !0;
1459
- const M = o.value;
1460
- return c.value ? g = M : r.value && ((K = m.value) == null ? void 0 : K.toString().trim()) === "" && t.requiredText.trim() !== "" && (g = !1), !t.hideRequiredAsterisk && g;
1459
+ const V = o.value;
1460
+ return c.value ? g = V : r.value && ((K = m.value) == null ? void 0 : K.toString().trim()) === "" && t.requiredText.trim() !== "" && (g = !1), !t.hideRequiredAsterisk && g;
1461
1461
  }
1462
1462
  async function J(g) {
1463
- const M = ul(g, t.inputType);
1464
- t.validateOn === "change" && await O(M), l("change", g, M);
1463
+ const V = ul(g, t.inputType);
1464
+ t.validateOn === "change" && await O(V), l("change", g, V);
1465
1465
  }
1466
1466
  async function W() {
1467
1467
  await A(), U();
@@ -1484,13 +1484,13 @@ const Jt = { class: "cl-flex cl-justify-between" }, Xt = { class: "cl-w-full" },
1484
1484
  var g;
1485
1485
  (g = n.value) == null || g.blur();
1486
1486
  }
1487
- }), (g, M) => (p(), h("div", fe({ ...g.$attrs, id: void 0 }, {
1487
+ }), (g, V) => (p(), h("div", fe({ ...g.$attrs, id: void 0 }, {
1488
1488
  key: i.value,
1489
1489
  class: "cl-align-top cl-border-none cl-inline-block cl-text-left"
1490
1490
  }), [
1491
1491
  b("div", {
1492
- onMouseenter: M[10] || (M[10] = (K) => y(!0)),
1493
- onMouseleave: M[11] || (M[11] = (K) => y(!1))
1492
+ onMouseenter: V[10] || (V[10] = (K) => y(!0)),
1493
+ onMouseleave: V[11] || (V[11] = (K) => y(!1))
1494
1494
  }, [
1495
1495
  b("div", Jt, [
1496
1496
  b("div", Xt, [
@@ -1498,14 +1498,14 @@ const Jt = { class: "cl-flex cl-justify-between" }, Xt = { class: "cl-w-full" },
1498
1498
  [te, g.showLabel && g.label !== ""]
1499
1499
  ])
1500
1500
  ]),
1501
- g.isRequired && o.value ? (p(), h("label", ea, " * ")) : F("", !0),
1502
- g.isRequired && !o.value && g.requiredText.length ? (p(), h("label", la, q(g.requiredText), 1)) : F("", !0)
1501
+ g.isRequired && o.value ? (p(), h("label", ea, " * ")) : M("", !0),
1502
+ g.isRequired && !o.value && g.requiredText.length ? (p(), h("label", la, q(g.requiredText), 1)) : M("", !0)
1503
1503
  ]),
1504
1504
  g.inputType !== "range" && !v(cl)(g.inputType) ? (p(), h("div", ta, [
1505
1505
  le(b("input", fe({
1506
1506
  ref_key: "inputElement",
1507
1507
  ref: n,
1508
- "onUpdate:modelValue": M[0] || (M[0] = (K) => m.value = K)
1508
+ "onUpdate:modelValue": V[0] || (V[0] = (K) => m.value = K)
1509
1509
  }, g.$attrs, {
1510
1510
  class: ["!cl-mb-1 cl-block cl-border cl-duration-300 cl-h-full cl-transition cl-w-full focus:cl-outline-none", {
1511
1511
  "hover:!cl-border-grey-3": g.disabled === !1 && !v(De)(g.inputType),
@@ -1529,11 +1529,11 @@ const Jt = { class: "cl-flex cl-justify-between" }, Xt = { class: "cl-w-full" },
1529
1529
  accept: g.fileExtensions,
1530
1530
  name: g.group,
1531
1531
  autocomplete: g.autocomplete,
1532
- onClick: M[1] || (M[1] = (K) => _(K)),
1533
- onFocus: M[2] || (M[2] = (K) => l("focus")),
1532
+ onClick: V[1] || (V[1] = (K) => _(K)),
1533
+ onFocus: V[2] || (V[2] = (K) => l("focus")),
1534
1534
  onBlur: ne(W, ["self"]),
1535
1535
  onMousewheelPassive: C,
1536
- onInput: M[3] || (M[3] = (K) => {
1536
+ onInput: V[3] || (V[3] = (K) => {
1537
1537
  l("input", K, v(ul)(K, g.inputType));
1538
1538
  }),
1539
1539
  onChange: J
@@ -1550,19 +1550,19 @@ const Jt = { class: "cl-flex cl-justify-between" }, Xt = { class: "cl-w-full" },
1550
1550
  icon: "ph:caret-up-bold",
1551
1551
  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",
1552
1552
  onClick: z,
1553
- onMousedown: M[4] || (M[4] = ne(() => {
1553
+ onMousedown: V[4] || (V[4] = ne(() => {
1554
1554
  }, ["prevent"]))
1555
1555
  }),
1556
1556
  S(v(H), {
1557
1557
  icon: "ph:caret-down-bold",
1558
1558
  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",
1559
1559
  onClick: T,
1560
- onMousedown: M[5] || (M[5] = ne(() => {
1560
+ onMousedown: V[5] || (V[5] = ne(() => {
1561
1561
  }, ["prevent"]))
1562
1562
  })
1563
1563
  ], 512)), [
1564
1564
  [te, c.value]
1565
- ]) : F("", !0)
1565
+ ]) : M("", !0)
1566
1566
  ]),
1567
1567
  _: 1
1568
1568
  })
@@ -1570,7 +1570,7 @@ const Jt = { class: "cl-flex cl-justify-between" }, Xt = { class: "cl-w-full" },
1570
1570
  ref_key: "inputElement",
1571
1571
  ref: n,
1572
1572
  date: k.value,
1573
- "onUpdate:date": M[6] || (M[6] = (K) => k.value = K),
1573
+ "onUpdate:date": V[6] || (V[6] = (K) => k.value = K),
1574
1574
  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", {
1575
1575
  "hover:cl-border-grey-3": !g.disabled && g.inputType !== "dateRange",
1576
1576
  "!cl-border-danger-default": !Z.value,
@@ -1586,26 +1586,26 @@ const Jt = { class: "cl-flex cl-justify-between" }, Xt = { class: "cl-w-full" },
1586
1586
  "initial-date": g.initialDate,
1587
1587
  "quick-date-scope": g.quickDateScope,
1588
1588
  onBlur: ne(A, ["self"]),
1589
- onFocus: M[7] || (M[7] = (K) => l("focus"))
1589
+ onFocus: V[7] || (V[7] = (K) => l("focus"))
1590
1590
  }), null, 16, ["date", "class", "disabled", "required", "type", "time-zone", "min", "max", "placeholder", "initial-date", "quick-date-scope", "onBlur"])) : g.inputType === "range" && (typeof m.value == "number" || typeof m.value == "string") ? (p(), h("div", na, [
1591
1591
  S(v(Qt), {
1592
1592
  ref_key: "inputElement",
1593
1593
  ref: n,
1594
1594
  value: m.value,
1595
- "onUpdate:value": M[8] || (M[8] = (K) => m.value = K),
1595
+ "onUpdate:value": V[8] || (V[8] = (K) => m.value = K),
1596
1596
  min: N.value ?? 0,
1597
- max: L.value ?? 1e3,
1597
+ max: F.value ?? 1e3,
1598
1598
  step: g.step,
1599
1599
  placeholder: s.value,
1600
1600
  "enforce-step": !0,
1601
1601
  disabled: g.disabled,
1602
1602
  onBlur: ne(A, ["self"]),
1603
- onFocus: M[9] || (M[9] = (K) => l("focus"))
1603
+ onFocus: V[9] || (V[9] = (K) => l("focus"))
1604
1604
  }, null, 8, ["value", "min", "max", "step", "placeholder", "disabled", "onBlur"])
1605
- ])) : F("", !0)
1605
+ ])) : M("", !0)
1606
1606
  ], 32),
1607
- Z.value && j.value && ae.value ? (p(), h("div", ra, q(j.value), 1)) : F("", !0),
1608
- !Z.value && B.value.length > 0 && g.showValidationMessages && ae.value ? (p(), h("div", sa, q(B.value), 1)) : F("", !0)
1607
+ Z.value && j.value && ae.value ? (p(), h("div", ra, q(j.value), 1)) : M("", !0),
1608
+ !Z.value && B.value.length > 0 && g.showValidationMessages && ae.value ? (p(), h("div", sa, q(B.value), 1)) : M("", !0)
1609
1609
  ], 16));
1610
1610
  }
1611
1611
  });
@@ -2015,11 +2015,11 @@ var ml = {
2015
2015
  * in reverse.
2016
2016
  * @returns {HTMLElement|undefined} The next tabbable node, if any.
2017
2017
  */
2018
- nextTabbableNode: function(M) {
2019
- var K = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, pe = y.indexOf(M);
2020
- return pe < 0 ? K ? A.slice(A.indexOf(M) + 1).find(function(Ce) {
2018
+ nextTabbableNode: function(V) {
2019
+ var K = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, pe = y.indexOf(V);
2020
+ return pe < 0 ? K ? A.slice(A.indexOf(V) + 1).find(function(Ce) {
2021
2021
  return Ne(Ce);
2022
- }) : A.slice(0, A.indexOf(M)).reverse().find(function(Ce) {
2022
+ }) : A.slice(0, A.indexOf(V)).reverse().find(function(Ce) {
2023
2023
  return Ne(Ce);
2024
2024
  }) : y[pe + (K ? 1 : -1)];
2025
2025
  }
@@ -2045,7 +2045,7 @@ var ml = {
2045
2045
  }, N = function(T) {
2046
2046
  var y = m("setReturnFocus", T);
2047
2047
  return y || (y === !1 ? !1 : T);
2048
- }, L = function(T) {
2048
+ }, F = function(T) {
2049
2049
  var y = T.target, A = T.event, U = T.isBackward, C = U === void 0 ? !1 : U;
2050
2050
  y = y || Me(A), u();
2051
2051
  var D = null;
@@ -2059,7 +2059,7 @@ var ml = {
2059
2059
  return y === Qe;
2060
2060
  });
2061
2061
  if (g < 0 && (W.container === y || Je(y, c.tabbableOptions) && !Ne(y, c.tabbableOptions) && !W.nextTabbableNode(y, !1)) && (g = J), g >= 0) {
2062
- var M = g === 0 ? r.tabbableGroups.length - 1 : g - 1, K = r.tabbableGroups[M];
2062
+ var V = g === 0 ? r.tabbableGroups.length - 1 : g - 1, K = r.tabbableGroups[V];
2063
2063
  D = Oe(y) >= 0 ? K.lastTabbableNode : K.lastDomTabbableNode;
2064
2064
  } else
2065
2065
  je(A) || (D = W.nextTabbableNode(y, !1));
@@ -2112,13 +2112,13 @@ var ml = {
2112
2112
  }
2113
2113
  } else
2114
2114
  r.containerGroups.some(function(g) {
2115
- return g.tabbableNodes.some(function(M) {
2116
- return Oe(M) > 0;
2115
+ return g.tabbableNodes.some(function(V) {
2116
+ return Oe(V) > 0;
2117
2117
  });
2118
2118
  }) || (C = !1);
2119
2119
  else
2120
2120
  C = !1;
2121
- C && (U = L({
2121
+ C && (U = F({
2122
2122
  // move FROM the MRU node, not event-related node (which will be the node that is
2123
2123
  // outside the trap causing the focus escape we're trying to fix)
2124
2124
  target: r.mostRecentlyFocusedNode,
@@ -2129,7 +2129,7 @@ var ml = {
2129
2129
  }, ae = function(T) {
2130
2130
  var y = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
2131
2131
  r.recentNavEvent = T;
2132
- var A = L({
2132
+ var A = F({
2133
2133
  event: T,
2134
2134
  isBackward: y
2135
2135
  });
@@ -2332,7 +2332,7 @@ const za = /* @__PURE__ */ b("div", { tabindex: "0" }, null, -1), _a = ["onKeypr
2332
2332
  }]
2333
2333
  }), [
2334
2334
  le(b("div", {
2335
- class: V(["cl-absolute cl-cursor-pointer cl-right-4 cl-top-4 cl-transition-colors cl-w-3", {
2335
+ class: L(["cl-absolute cl-cursor-pointer cl-right-4 cl-top-4 cl-transition-colors cl-w-3", {
2336
2336
  "cl-text-white hover:cl-text-off-white": i.headerColour === "secondary",
2337
2337
  "cl-text-secondary hover:cl-text-off-white": i.headerColour === "primary",
2338
2338
  "cl-text-black hover:cl-text-grey-7": i.headerColour === "white"
@@ -2346,13 +2346,13 @@ const za = /* @__PURE__ */ b("div", { tabindex: "0" }, null, -1), _a = ["onKeypr
2346
2346
  [te, !i.preventClose]
2347
2347
  ]),
2348
2348
  b("div", {
2349
- class: V(["cl-leading-[2.75rem] cl-min-h-12 cl-overflow-hidden cl-pb-2 cl-pl-4 cl-pr-8 cl-pt-2 cl-text-2xl cl-w-full", {
2349
+ class: L(["cl-leading-[2.75rem] cl-min-h-12 cl-overflow-hidden cl-pb-2 cl-pl-4 cl-pr-8 cl-pt-2 cl-text-2xl cl-w-full", {
2350
2350
  "cl-bg-secondary-default cl-text-white": i.headerColour === "secondary",
2351
2351
  "cl-bg-primary-default cl-text-secondary": i.headerColour === "primary"
2352
2352
  }])
2353
2353
  }, [
2354
2354
  P(i.$slots, "title"),
2355
- i.headerColour === "white" ? (p(), h("hr", Ha)) : F("", !0)
2355
+ i.headerColour === "white" ? (p(), h("hr", Ha)) : M("", !0)
2356
2356
  ], 2),
2357
2357
  b("div", xa, [
2358
2358
  P(i.$slots, "default", ce(ve({ close: o })))
@@ -2383,9 +2383,9 @@ const za = /* @__PURE__ */ b("div", { tabindex: "0" }, null, -1), _a = ["onKeypr
2383
2383
  },
2384
2384
  setup(a) {
2385
2385
  return (e, l) => (p(), h("div", Ga, [
2386
- e.additionalText !== "" ? (p(), h("div", Za, q(e.additionalText), 1)) : F("", !0),
2386
+ e.additionalText !== "" ? (p(), h("div", Za, q(e.additionalText), 1)) : M("", !0),
2387
2387
  b("div", {
2388
- class: V({
2388
+ class: L({
2389
2389
  "cl-w-1/2": e.additionalText !== "",
2390
2390
  "cl-w-full": e.additionalText === ""
2391
2391
  })
@@ -2441,7 +2441,7 @@ const za = /* @__PURE__ */ b("div", { tabindex: "0" }, null, -1), _a = ["onKeypr
2441
2441
  return oe(() => l.selectedIndex, () => s()), (i, m) => {
2442
2442
  var k, u;
2443
2443
  return p(), h("div", {
2444
- class: V(["cl-cursor-pointer cl-duration-75 cl-flex cl-p-1 cl-text-left cl-transition-colors", {
2444
+ class: L(["cl-cursor-pointer cl-duration-75 cl-flex cl-p-1 cl-text-left cl-transition-colors", {
2445
2445
  "cl-bg-white": c.value === !1,
2446
2446
  "cl-bg-link-light cl-text-white cl-opacity-90": c.value && i.isCreateNewOption === !1,
2447
2447
  "cl-bg-primary-default cl-text-black cl-opacity-90": c.value && i.isCreateNewOption
@@ -2450,9 +2450,9 @@ const za = /* @__PURE__ */ b("div", { tabindex: "0" }, null, -1), _a = ["onKeypr
2450
2450
  onMousemove: m[0] || (m[0] = (w) => o(!0)),
2451
2451
  onMouseleave: m[1] || (m[1] = (w) => o(!1))
2452
2452
  }, [
2453
- i.option !== null && ((k = i.option) == null ? void 0 : k.parentId) !== 0 && ((u = i.option) == null ? void 0 : u.parentId) !== void 0 ? (p(), h("div", Ka, q(n.value), 1)) : F("", !0),
2453
+ i.option !== null && ((k = i.option) == null ? void 0 : k.parentId) !== 0 && ((u = i.option) == null ? void 0 : u.parentId) !== void 0 ? (p(), h("div", Ka, q(n.value), 1)) : M("", !0),
2454
2454
  b("div", {
2455
- class: V({
2455
+ class: L({
2456
2456
  "cl-w-1/2": n.value !== "",
2457
2457
  "cl-w-full": n.value === ""
2458
2458
  })
@@ -2509,7 +2509,7 @@ const za = /* @__PURE__ */ b("div", { tabindex: "0" }, null, -1), _a = ["onKeypr
2509
2509
  function N(d) {
2510
2510
  r.value > d ? r.value-- : r.value = l.results.length - 1, Z();
2511
2511
  }
2512
- function L() {
2512
+ function F() {
2513
2513
  r.value >= 0 && l.results !== void 0 ? m(l.results[r.value].id) : r.value === -1 && k();
2514
2514
  }
2515
2515
  function j(d) {
@@ -2554,7 +2554,7 @@ const za = /* @__PURE__ */ b("div", { tabindex: "0" }, null, -1), _a = ["onKeypr
2554
2554
  f[2] || (f[2] = Ee(ne(($) => N(o.value), ["prevent", "stop"]), ["up"])),
2555
2555
  f[3] || (f[3] = Ee(ne(($) => w(o.value), ["prevent", "stop"]), ["down"]))
2556
2556
  ],
2557
- onKeyup: Ee(ne(L, ["prevent", "stop"]), ["enter"])
2557
+ onKeyup: Ee(ne(F, ["prevent", "stop"]), ["enter"])
2558
2558
  }, [
2559
2559
  b("div", Ya, [
2560
2560
  S(me, {
@@ -2575,22 +2575,22 @@ const za = /* @__PURE__ */ b("div", { tabindex: "0" }, null, -1), _a = ["onKeypr
2575
2575
  "show-clear-button": d.canClearSelectedObject,
2576
2576
  text: d.currentObjectName,
2577
2577
  onClearObject: f[1] || (f[1] = ($) => d.$emit("clear-object"))
2578
- }, null, 8, ["show-clear-button", "text"])) : F("", !0),
2578
+ }, null, 8, ["show-clear-button", "text"])) : M("", !0),
2579
2579
  d.objectParentType !== "" && d.results !== void 0 && d.results.length > 0 && d.errorMessage === "" ? (p(), G(Ve, {
2580
2580
  key: 1,
2581
2581
  text: d.objectType,
2582
2582
  "additional-text": d.objectParentType,
2583
2583
  class: "cl-bg-grey-2 cl-mt-1"
2584
- }, null, 8, ["text", "additional-text"])) : F("", !0),
2584
+ }, null, 8, ["text", "additional-text"])) : M("", !0),
2585
2585
  d.results !== null && ((O = d.results) == null ? void 0 : O.length) === 0 && n.value.trim() !== "" && d.canCreateNewObject === !1 && d.errorMessage === "" ? (p(), G(Ve, {
2586
2586
  key: 2,
2587
2587
  text: v(t)("comboBox.noResults", { value: n.value })
2588
- }, null, 8, ["text"])) : F("", !0),
2588
+ }, null, 8, ["text"])) : M("", !0),
2589
2589
  d.errorMessage !== "" ? (p(), G(Ve, {
2590
2590
  key: 3,
2591
2591
  class: "!cl-bg-danger-light cl-border-danger-light cl-rounded cl-text-danger-dark",
2592
2592
  text: v(t)("comboBox.errorMessage", { error: d.errorMessage })
2593
- }, null, 8, ["text"])) : F("", !0),
2593
+ }, null, 8, ["text"])) : M("", !0),
2594
2594
  c.value ? (p(), G(hl, {
2595
2595
  key: 4,
2596
2596
  "is-create-new-option": !0,
@@ -2600,7 +2600,7 @@ const za = /* @__PURE__ */ b("div", { tabindex: "0" }, null, -1), _a = ["onKeypr
2600
2600
  class: "cl-px-2",
2601
2601
  onCreateObject: k,
2602
2602
  onOptionHighlighted: E
2603
- }, null, 8, ["text", "selected-index"])) : F("", !0),
2603
+ }, null, 8, ["text", "selected-index"])) : M("", !0),
2604
2604
  d.errorMessage === "" && d.results !== null ? (p(), h("div", Ja, [
2605
2605
  (p(!0), h(X, null, se(d.results, ($, _) => (p(), G(hl, {
2606
2606
  key: _,
@@ -2611,7 +2611,7 @@ const za = /* @__PURE__ */ b("div", { tabindex: "0" }, null, -1), _a = ["onKeypr
2611
2611
  onSelectObject: m,
2612
2612
  onOptionHighlighted: E
2613
2613
  }, null, 8, ["option", "index", "selected-index"]))), 128))
2614
- ])) : F("", !0)
2614
+ ])) : M("", !0)
2615
2615
  ], 40, Wa);
2616
2616
  };
2617
2617
  }
@@ -2647,7 +2647,7 @@ const za = /* @__PURE__ */ b("div", { tabindex: "0" }, null, -1), _a = ["onKeypr
2647
2647
  const t = a, n = R(() => t.placeholderText ? t.placeholderText : r("comboBox.emptyHintText", { object: t.objectType })), c = R(() => t.searchHint ? t.searchHint : r("comboBox.searchHint", { object: t.objectType })), { t: r } = ie(), o = I(!1), s = R({
2648
2648
  get: () => t.currentObject,
2649
2649
  set: (C) => l("update:current-object", C)
2650
- }), i = I(null), m = I(null), k = R(() => y()), u = I(""), w = I(""), N = I(), L = I(!0), j = I(!1);
2650
+ }), i = I(null), m = I(null), k = R(() => y()), u = I(""), w = I(""), N = I(), F = I(!0), j = I(!1);
2651
2651
  function Z(C) {
2652
2652
  var J, W;
2653
2653
  const D = ((J = U.value) == null ? void 0 : J.getBoundingClientRect().top) || 0;
@@ -2706,7 +2706,7 @@ const za = /* @__PURE__ */ b("div", { tabindex: "0" }, null, -1), _a = ["onKeypr
2706
2706
  });
2707
2707
  }
2708
2708
  function T() {
2709
- var D, J, W, g, M;
2709
+ var D, J, W, g, V;
2710
2710
  sl({
2711
2711
  message: r("comboBox.createSuccessful", { object: t.objectType, name: ((D = t.objectCreatedResponse) == null ? void 0 : D.name) ?? "" }),
2712
2712
  colour: "primary",
@@ -2716,7 +2716,7 @@ const za = /* @__PURE__ */ b("div", { tabindex: "0" }, null, -1), _a = ["onKeypr
2716
2716
  m.value && m.value.id === ((J = t.objectCreatedResponse) == null ? void 0 : J.parentId) && (C = m.value.name), s.value = {
2717
2717
  id: ((W = t.objectCreatedResponse) == null ? void 0 : W.id) ?? 0,
2718
2718
  name: ((g = t.objectCreatedResponse) == null ? void 0 : g.name) ?? "",
2719
- parentId: ((M = t.objectCreatedResponse) == null ? void 0 : M.parentId) ?? 0,
2719
+ parentId: ((V = t.objectCreatedResponse) == null ? void 0 : V.parentId) ?? 0,
2720
2720
  parentName: C
2721
2721
  };
2722
2722
  }
@@ -2726,7 +2726,7 @@ const za = /* @__PURE__ */ b("div", { tabindex: "0" }, null, -1), _a = ["onKeypr
2726
2726
  }
2727
2727
  function A() {
2728
2728
  let C = !0;
2729
- u.value === "" && (C = !1), t.objectParentType !== "" && m.value === null && (C = !1), L.value = C;
2729
+ u.value === "" && (C = !1), t.objectParentType !== "" && m.value === null && (C = !1), F.value = C;
2730
2730
  }
2731
2731
  oe(() => t.objectCreatedResponse, () => _()), oe(() => t.parentObjectCreatedResponse, () => z()), oe(() => u.value, () => A()), oe(() => m.value, () => A()), e({
2732
2732
  focus() {
@@ -2748,7 +2748,7 @@ const za = /* @__PURE__ */ b("div", { tabindex: "0" }, null, -1), _a = ["onKeypr
2748
2748
  ref: i,
2749
2749
  modelValue: k.value,
2750
2750
  "onUpdate:modelValue": D[0] || (D[0] = (W) => k.value = W),
2751
- class: V(["!cl-mr-0 cl-mb-0 cl-rounded-r-none cl-w-full cl-z-10", {
2751
+ class: L(["!cl-mr-0 cl-mb-0 cl-rounded-r-none cl-w-full cl-z-10", {
2752
2752
  "cl-cursor-pointer": C.disabled === !1
2753
2753
  }]),
2754
2754
  "input-type": "text",
@@ -2770,7 +2770,7 @@ const za = /* @__PURE__ */ b("div", { tabindex: "0" }, null, -1), _a = ["onKeypr
2770
2770
  ]),
2771
2771
  o.value ? (p(), h("div", {
2772
2772
  key: 1,
2773
- class: V(["cl-bg-white cl-border cl-border-grey-1 cl-float-right cl-h-10 cl-rounded cl-rounded-l-none cl-text-grey-3 cl-transition-colors cl-w-[27px] hover:cl-bg-link-light hover:cl-opacity-90 hover:cl-text-white", {
2773
+ class: L(["cl-bg-white cl-border cl-border-grey-1 cl-float-right cl-h-10 cl-rounded cl-rounded-l-none cl-text-grey-3 cl-transition-colors cl-w-[27px] hover:cl-bg-link-light hover:cl-opacity-90 hover:cl-text-white", {
2774
2774
  "cl-cursor-default": C.disabled,
2775
2775
  "cl-cursor-pointer": C.disabled === !1
2776
2776
  }]),
@@ -2782,7 +2782,7 @@ const za = /* @__PURE__ */ b("div", { tabindex: "0" }, null, -1), _a = ["onKeypr
2782
2782
  })
2783
2783
  ], 2)) : (p(), h("div", {
2784
2784
  key: 0,
2785
- class: V(["cl-bg-white cl-border cl-border-grey-1 cl-float-right cl-h-10 cl-rounded cl-rounded-l-none cl-text-grey-3 cl-transition-colors cl-w-[27px] hover:cl-bg-link-light hover:cl-opacity-90 hover:cl-text-white", {
2785
+ class: L(["cl-bg-white cl-border cl-border-grey-1 cl-float-right cl-h-10 cl-rounded cl-rounded-l-none cl-text-grey-3 cl-transition-colors cl-w-[27px] hover:cl-bg-link-light hover:cl-opacity-90 hover:cl-text-white", {
2786
2786
  "cl-cursor-default": C.disabled,
2787
2787
  "cl-cursor-pointer": C.disabled === !1
2788
2788
  }]),
@@ -2809,7 +2809,7 @@ const za = /* @__PURE__ */ b("div", { tabindex: "0" }, null, -1), _a = ["onKeypr
2809
2809
  "error-message": C.errorMessage,
2810
2810
  "current-object-name": k.value,
2811
2811
  "is-visible": o.value,
2812
- class: V({
2812
+ class: L({
2813
2813
  "cl-bottom-full": j.value
2814
2814
  }),
2815
2815
  "search-hint": c.value,
@@ -2838,7 +2838,7 @@ const za = /* @__PURE__ */ b("div", { tabindex: "0" }, null, -1), _a = ["onKeypr
2838
2838
  S(be, {
2839
2839
  colour: "primary",
2840
2840
  size: "small",
2841
- disabled: !L.value,
2841
+ disabled: !F.value,
2842
2842
  onClick: (g) => {
2843
2843
  O(), W();
2844
2844
  }
@@ -2866,7 +2866,7 @@ const za = /* @__PURE__ */ b("div", { tabindex: "0" }, null, -1), _a = ["onKeypr
2866
2866
  "error-message": C.errorMessage,
2867
2867
  onSearch: E,
2868
2868
  onCreateObject: $
2869
- }, null, 8, ["current-object", "results", "loading", "object-type", "object-created-response", "can-create-new-object", "can-clear-selected-object", "error-message"])) : F("", !0),
2869
+ }, null, 8, ["current-object", "results", "loading", "object-type", "object-created-response", "can-create-new-object", "can-clear-selected-object", "error-message"])) : M("", !0),
2870
2870
  S(me, {
2871
2871
  modelValue: u.value,
2872
2872
  "onUpdate:modelValue": D[6] || (D[6] = (W) => u.value = W),
@@ -2899,7 +2899,7 @@ function vo(a, e) {
2899
2899
  return p(), h("div", co, [
2900
2900
  a.$slots.default ? (p(), h("div", uo, [
2901
2901
  P(a.$slots, "default")
2902
- ])) : F("", !0),
2902
+ ])) : M("", !0),
2903
2903
  a.$slots.left || a.$slots.right ? (p(), h("div", fo, [
2904
2904
  b("span", po, [
2905
2905
  P(a.$slots, "left")
@@ -2907,7 +2907,7 @@ function vo(a, e) {
2907
2907
  b("span", mo, [
2908
2908
  P(a.$slots, "right")
2909
2909
  ])
2910
- ])) : F("", !0)
2910
+ ])) : M("", !0)
2911
2911
  ]);
2912
2912
  }
2913
2913
  const go = /* @__PURE__ */ ke(io, [["render", vo]]);
@@ -2968,8 +2968,8 @@ const ho = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, yo = { class: "cl-gap-1
2968
2968
  ], 64))
2969
2969
  ]),
2970
2970
  _: 1
2971
- }, 8, ["disabled"])) : F("", !0),
2972
- n.options.hideViewManager ? F("", !0) : (p(), h("div", To, [
2971
+ }, 8, ["disabled"])) : M("", !0),
2972
+ n.options.hideViewManager ? M("", !0) : (p(), h("div", To, [
2973
2973
  P(n.$slots, "view-manager")
2974
2974
  ])),
2975
2975
  v(yl)(n.columns) || v(bo)(n.columns) ? (p(), h(X, { key: 2 }, [
@@ -2991,7 +2991,7 @@ const ho = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, yo = { class: "cl-gap-1
2991
2991
  size: "small",
2992
2992
  colour: "danger",
2993
2993
  disabled: !t.value || n.loading,
2994
- class: V({
2994
+ class: L({
2995
2995
  "cl-col-span-2": n.columns.some((r) => r.editable)
2996
2996
  }),
2997
2997
  onClick: c[2] || (c[2] = ne((r) => n.$emit("clear-filters"), ["prevent"]))
@@ -3000,8 +3000,8 @@ const ho = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, yo = { class: "cl-gap-1
3000
3000
  de(q(v(l)("grid.clearFilters")), 1)
3001
3001
  ]),
3002
3002
  _: 1
3003
- }, 8, ["disabled", "class"])) : F("", !0)
3004
- ], 64)) : F("", !0)
3003
+ }, 8, ["disabled", "class"])) : M("", !0)
3004
+ ], 64)) : M("", !0)
3005
3005
  ])
3006
3006
  ], 64));
3007
3007
  }
@@ -3079,7 +3079,7 @@ const ho = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, yo = { class: "cl-gap-1
3079
3079
  b("span", {
3080
3080
  innerHTML: r()
3081
3081
  }, null, 8, Eo)
3082
- ])) : F("", !0);
3082
+ ])) : M("", !0);
3083
3083
  };
3084
3084
  }
3085
3085
  }), Ao = { class: "cl-font-semibold lg:cl-hidden" }, qo = /* @__PURE__ */ Q({
@@ -3106,7 +3106,7 @@ const ho = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, yo = { class: "cl-gap-1
3106
3106
  }, {
3107
3107
  deep: !0
3108
3108
  }), (o, s) => (p(), h("td", {
3109
- class: V(["cl-border-b cl-border-grey-1 cl-gap-1 cl-grid cl-grid-cols-2 cl-m-1 cl-mb-0 cl-py-2 cl-text-xs lg:cl-border-b-0 lg:cl-m-0 lg:cl-px-1 lg:cl-table-cell lg:cl-text-base", {
3109
+ class: L(["cl-border-b cl-border-grey-1 cl-gap-1 cl-grid cl-grid-cols-2 cl-m-1 cl-mb-0 cl-py-2 cl-text-xs lg:cl-border-b-0 lg:cl-m-0 lg:cl-px-1 lg:cl-table-cell lg:cl-text-base", {
3110
3110
  "cl-bg-link-lighter": c.value
3111
3111
  }])
3112
3112
  }, [
@@ -3221,13 +3221,13 @@ const ho = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, yo = { class: "cl-gap-1
3221
3221
  const i = I({});
3222
3222
  oe(() => l.data, () => {
3223
3223
  var u, w;
3224
- return i.value = Object.fromEntries(((w = (u = l.data) == null ? void 0 : u.results) == null ? void 0 : w.map((N, L) => [
3225
- [L],
3224
+ return i.value = Object.fromEntries(((w = (u = l.data) == null ? void 0 : u.results) == null ? void 0 : w.map((N, F) => [
3225
+ [F],
3226
3226
  {
3227
3227
  count: 0,
3228
3228
  target: null,
3229
3229
  reset: $l(() => {
3230
- i.value[L] && (i.value[L].count = 0, i.value[L].target = null);
3230
+ i.value[F] && (i.value[F].count = 0, i.value[F].target = null);
3231
3231
  }, 2500, { immediate: !1 })
3232
3232
  }
3233
3233
  ])) ?? []);
@@ -3236,8 +3236,8 @@ const ho = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, yo = { class: "cl-gap-1
3236
3236
  immediate: !0
3237
3237
  });
3238
3238
  function m(u, w, N) {
3239
- const { currentTarget: L } = N;
3240
- l.options.rowSelectionEnabled ? (k(L), e("row-select", w)) : (i.value[u].count++, i.value[u].target = L, i.value[u].count > 1 ? (i.value[u].reset.stop(), i.value[u].count = 0, k(L), i.value[u].target = null, e("row-select", w)) : i.value[u].reset.start());
3239
+ const { currentTarget: F } = N;
3240
+ l.options.rowSelectionEnabled ? (k(F), e("row-select", w)) : (i.value[u].count++, i.value[u].target = F, i.value[u].count > 1 ? (i.value[u].reset.stop(), i.value[u].count = 0, k(F), i.value[u].target = null, e("row-select", w)) : i.value[u].reset.start());
3241
3241
  }
3242
3242
  function k(u) {
3243
3243
  l.options.highlightRowSelection && (u == null || u.classList.toggle("!cl-bg-link-lighter"));
@@ -3247,21 +3247,21 @@ const ho = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, yo = { class: "cl-gap-1
3247
3247
  }), (u, w) => {
3248
3248
  var N;
3249
3249
  return p(), h("tbody", null, [
3250
- u.data && ((N = u.data.results) != null && N.length) ? (p(!0), h(X, { key: 0 }, se(u.data.results, (L, j) => (p(), G(Ro, {
3250
+ u.data && ((N = u.data.results) != null && N.length) ? (p(!0), h(X, { key: 0 }, se(u.data.results, (F, j) => (p(), G(Ro, {
3251
3251
  key: j,
3252
- data: L,
3252
+ data: F,
3253
3253
  columns: u.columns,
3254
3254
  "time-zone": u.timeZone,
3255
3255
  "search-value": u.searchValue,
3256
3256
  "edit-mode": u.editMode,
3257
- class: V(["cl-bg-opacity-100 cl-transition-colors", {
3257
+ class: L(["cl-bg-opacity-100 cl-transition-colors", {
3258
3258
  "cl-bg-white": j % 2 === 0 && u.data.totalRecords > 1,
3259
3259
  "cl-bg-off-white": j % 2 === 1 || u.data.totalRecords === 1,
3260
3260
  "cl-cursor-pointer": (u.options.highlightRowSelection || u.options.rowSelectionEnabled) && !u.editMode,
3261
3261
  "hover:cl-bg-link-lighter": u.options.rowSelectionEnabled && u.options.highlightRowSelection && !u.editMode
3262
3262
  }]),
3263
3263
  onClick: (Z) => {
3264
- u.editMode || m(j, L, Z);
3264
+ u.editMode || m(j, F, Z);
3265
3265
  },
3266
3266
  onCellFocus: (Z) => {
3267
3267
  r(j);
@@ -3277,25 +3277,25 @@ const ho = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, yo = { class: "cl-gap-1
3277
3277
  P(u.$slots, ae, fe(E, { disabled: u.loading }))
3278
3278
  ])
3279
3279
  }))
3280
- ]), 1032, ["data", "columns", "time-zone", "search-value", "edit-mode", "class", "onClick", "onCellFocus", "onCellEdit"]))), 128)) : u.loading ? F("", !0) : (p(), h("tr", Do, [
3280
+ ]), 1032, ["data", "columns", "time-zone", "search-value", "edit-mode", "class", "onClick", "onCellFocus", "onCellEdit"]))), 128)) : u.loading ? M("", !0) : (p(), h("tr", Do, [
3281
3281
  b("td", {
3282
3282
  colspan: u.columns.length
3283
3283
  }, [
3284
3284
  b("div", jo, [
3285
3285
  b("strong", Fo, q(v(t)("grid.noData")), 1),
3286
- u.request.filters.some((L) => L.filterValue !== "") ? (p(), h("div", Mo, [
3286
+ u.request.filters.some((F) => F.filterValue !== "") ? (p(), h("div", Mo, [
3287
3287
  b("div", Vo, q(v(t)("grid.noDataFiltersPresent")), 1),
3288
3288
  S(be, {
3289
3289
  size: "small",
3290
3290
  colour: "danger",
3291
- onClick: w[0] || (w[0] = ne((L) => u.$emit("clear-filters"), ["prevent"]))
3291
+ onClick: w[0] || (w[0] = ne((F) => u.$emit("clear-filters"), ["prevent"]))
3292
3292
  }, {
3293
3293
  default: Y(() => [
3294
3294
  de(q(v(t)("grid.clearFilters")), 1)
3295
3295
  ]),
3296
3296
  _: 1
3297
3297
  })
3298
- ])) : F("", !0)
3298
+ ])) : M("", !0)
3299
3299
  ])
3300
3300
  ], 8, Io)
3301
3301
  ]))
@@ -3350,8 +3350,8 @@ const ho = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, yo = { class: "cl-gap-1
3350
3350
  }
3351
3351
  const k = ol(s, 750);
3352
3352
  return (u, w) => {
3353
- var N, L;
3354
- return (L = (N = u.data) == null ? void 0 : N.results) != null && L.length && u.request ? (p(), h("div", Po, [
3353
+ var N, F;
3354
+ return (F = (N = u.data) == null ? void 0 : N.results) != null && F.length && u.request ? (p(), h("div", Po, [
3355
3355
  b("div", Uo, [
3356
3356
  b("span", Bo, q(v(n)("grid.jumpToPage")), 1),
3357
3357
  S(me, {
@@ -3396,7 +3396,7 @@ const ho = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, yo = { class: "cl-gap-1
3396
3396
  ]),
3397
3397
  (p(!0), h(X, null, se(r.value, (j, Z) => (p(), h("li", {
3398
3398
  key: Z,
3399
- class: V(["cl-cursor-pointer cl-mr-1 lg:cl-mr-2", {
3399
+ class: L(["cl-cursor-pointer cl-mr-1 lg:cl-mr-2", {
3400
3400
  "cl-text-black cl-font-bold": u.request.pageNumber === j,
3401
3401
  "cl-text-grey-6": u.request.pageNumber !== j
3402
3402
  }]),
@@ -3430,7 +3430,7 @@ const ho = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, yo = { class: "cl-gap-1
3430
3430
  b("li", Wo, q(v(n)("grid.pageSize")), 1),
3431
3431
  (p(), h(X, null, se(i, (j, Z) => b("li", {
3432
3432
  key: Z,
3433
- class: V(["cl-cursor-pointer cl-mr-1 lg:cl-mr-2", {
3433
+ class: L(["cl-cursor-pointer cl-mr-1 lg:cl-mr-2", {
3434
3434
  "cl-text-black cl-font-bold": u.request.pageSize === j,
3435
3435
  "cl-text-grey-6": u.request.pageSize !== j
3436
3436
  }]),
@@ -3442,7 +3442,7 @@ const ho = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, yo = { class: "cl-gap-1
3442
3442
  b("li", en, q(v(t)(u.data.totalRecords, v(ue).INTEGER)), 1)
3443
3443
  ])
3444
3444
  ])
3445
- ])) : F("", !0);
3445
+ ])) : M("", !0);
3446
3446
  };
3447
3447
  }
3448
3448
  }), tn = [
@@ -3676,14 +3676,14 @@ const dn = {
3676
3676
  c.value ? (p(), G(v(H), {
3677
3677
  key: 0,
3678
3678
  icon: c.value.icon,
3679
- class: V(["cl-text-lg", {
3679
+ class: L(["cl-text-lg", {
3680
3680
  "cl-text-grey-4": l.filter === void 0 || l.filter.filterValue === "",
3681
3681
  "cl-text-primary-default": l.filter && l.filter.filterValue !== ""
3682
3682
  }])
3683
- }, null, 8, ["icon", "class"])) : F("", !0)
3683
+ }, null, 8, ["icon", "class"])) : M("", !0)
3684
3684
  ]),
3685
3685
  b("div", {
3686
- class: V(["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", {
3686
+ class: L(["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", {
3687
3687
  "group-hover:cl-flex group-hover:cl-h-auto group-hover:cl-w-52": o.loading === !1,
3688
3688
  "cl-left-0": o.firstHalf,
3689
3689
  "cl--left-44": !o.firstHalf
@@ -3694,7 +3694,7 @@ const dn = {
3694
3694
  var k;
3695
3695
  return p(), h("span", {
3696
3696
  key: m,
3697
- class: V(["cl-cursor-pointer cl-px-4 cl-py-1 cl-transition-colors cl-w-full hover:cl-bg-grey-0", {
3697
+ class: L(["cl-cursor-pointer cl-px-4 cl-py-1 cl-transition-colors cl-w-full hover:cl-bg-grey-0", {
3698
3698
  "cl-bg-primary-default cl-opacity-80": i.method === ((k = c.value) == null ? void 0 : k.method)
3699
3699
  }]),
3700
3700
  onClick: ne((u) => r(i.method), ["prevent"])
@@ -3851,7 +3851,7 @@ const dn = {
3851
3851
  const N = R(() => {
3852
3852
  var f;
3853
3853
  return ((f = k.value) == null ? void 0 : f.filterValue) ?? "";
3854
- }), L = R(() => N.value === "" ? null : N.value), j = R(() => N.value === "" ? null : N.value), Z = R(() => Intl.NumberFormat(t.value).format(1.1).replace(/[0-9]+/g, "")), ae = R(() => rl(l.column));
3854
+ }), F = R(() => N.value === "" ? null : N.value), j = R(() => N.value === "" ? null : N.value), Z = R(() => Intl.NumberFormat(t.value).format(1.1).replace(/[0-9]+/g, "")), ae = R(() => rl(l.column));
3855
3855
  function E(f, O) {
3856
3856
  var T;
3857
3857
  let $, _ = !1;
@@ -3909,7 +3909,7 @@ const dn = {
3909
3909
  }, q(v(n)("grid.false")), 9, $n)
3910
3910
  ], 40, wn)) : o.value ? (p(), G(me, {
3911
3911
  key: 1,
3912
- "model-value": L.value,
3912
+ "model-value": F.value,
3913
3913
  class: "!cl-h-[2rem] !cl-text-xs cl-border-none cl-mb-0 cl-w-full lg:!cl-text-base",
3914
3914
  disabled: f.loading,
3915
3915
  label: f.column.caption,
@@ -3953,8 +3953,8 @@ const dn = {
3953
3953
  value: $.value,
3954
3954
  selected: N.value === $.value.toString()
3955
3955
  }, q(v(n)($.translationKey)), 9, Sn))), 128))
3956
- ], 40, Cn)) : F("", !0),
3957
- s.value ? F("", !0) : (p(), G(hn, {
3956
+ ], 40, Cn)) : M("", !0),
3957
+ s.value ? M("", !0) : (p(), G(hn, {
3958
3958
  key: 6,
3959
3959
  filter: u.value,
3960
3960
  "onUpdate:filter": O[6] || (O[6] = ($) => u.value = $),
@@ -3963,7 +3963,7 @@ const dn = {
3963
3963
  "default-operation": c(),
3964
3964
  "first-half": f.firstHalf
3965
3965
  }, null, 8, ["filter", "loading", "column", "default-operation", "first-half"]))
3966
- ])) : F("", !0);
3966
+ ])) : M("", !0);
3967
3967
  }
3968
3968
  }), En = { 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" }, An = { class: "cl-hidden lg:cl-table-row" }, qn = ["onClick"], Rn = { class: "cl-flex cl-justify-end cl-w-full lg:cl-hidden" }, Dn = { class: "cl-col-span-2 lg:cl-hidden" }, In = ["onClick"], jn = { class: "cl-font-normal cl-mr-1" }, Fn = /* @__PURE__ */ Q({
3969
3969
  __name: "cl-ui-grid-header",
@@ -4007,7 +4007,7 @@ const dn = {
4007
4007
  b("tr", An, [
4008
4008
  (p(!0), h(X, null, se(s.columns, (m, k) => (p(), h("th", {
4009
4009
  key: k,
4010
- class: V(["cl-text-grey-3 cl-text-sm", {
4010
+ class: L(["cl-text-grey-3 cl-text-sm", {
4011
4011
  "cl-cursor-pointer": v(Le)(m) && s.loading === !1
4012
4012
  }]),
4013
4013
  onClick: (u) => v(Le)(m) && s.loading === !1 ? r(m.field) : () => {
@@ -4029,7 +4029,7 @@ const dn = {
4029
4029
  ], 10, qn))), 128))
4030
4030
  ]),
4031
4031
  b("tr", {
4032
- class: V(["cl-border cl-border-grey-2 cl-flex cl-flex-wrap cl-p-2 lg:cl-border-none lg:cl-p-0 lg:cl-table-row", {
4032
+ class: L(["cl-border cl-border-grey-2 cl-flex cl-flex-wrap cl-p-2 lg:cl-border-none lg:cl-p-0 lg:cl-table-row", {
4033
4033
  "cl-hidden lg:cl-table-row": !s.filterPanelOpen
4034
4034
  }])
4035
4035
  }, [
@@ -4043,7 +4043,7 @@ const dn = {
4043
4043
  ]),
4044
4044
  (p(!0), h(X, null, se(s.columns, (m, k) => (p(), h("th", {
4045
4045
  key: k,
4046
- class: V(["cl-grid cl-grid-cols-4 cl-py-1 cl-text-xs cl-w-full lg:cl-table-cell lg:cl-w-auto", {
4046
+ class: L(["cl-grid cl-grid-cols-4 cl-py-1 cl-text-xs cl-w-full lg:cl-table-cell lg:cl-w-auto", {
4047
4047
  "cl-hidden lg:cl-table-cell": !v(rl)(m)
4048
4048
  }])
4049
4049
  }, [
@@ -4067,7 +4067,7 @@ const dn = {
4067
4067
  class: "cl-cursor-pointer cl-inline-block",
4068
4068
  icon: "ph:minus"
4069
4069
  }))
4070
- ], 8, In)) : F("", !0),
4070
+ ], 8, In)) : M("", !0),
4071
4071
  S(Nn, {
4072
4072
  class: "cl-col-span-4",
4073
4073
  loading: s.loading,
@@ -4203,13 +4203,13 @@ const dn = {
4203
4203
  class: "cl-cursor-pointer cl-inline-block cl-mr-2",
4204
4204
  icon: "ph:arrow-left",
4205
4205
  onClick: (u) => o(k, "down")
4206
- }, null, 8, ["onClick"])) : F("", !0),
4206
+ }, null, 8, ["onClick"])) : M("", !0),
4207
4207
  k !== s.columns.length - 1 ? (p(), G(v(H), {
4208
4208
  key: 1,
4209
4209
  class: "cl-cursor-pointer cl-inline-block",
4210
4210
  icon: "ph:arrow-right",
4211
4211
  onClick: (u) => o(k, "up")
4212
- }, null, 8, ["onClick"])) : F("", !0)
4212
+ }, null, 8, ["onClick"])) : M("", !0)
4213
4213
  ], 64)) : (p(), h("em", Qn, q(v(t)("grid.hidden")), 1))
4214
4214
  ])
4215
4215
  ]))), 128))
@@ -4272,7 +4272,7 @@ const dn = {
4272
4272
  const N = R(() => ({
4273
4273
  highlightRowSelection: !0,
4274
4274
  ...l.options
4275
- })), L = R({
4275
+ })), F = R({
4276
4276
  get() {
4277
4277
  const E = ge(s.value);
4278
4278
  return E.filters = E.filters.filter((B) => B.filterMethod !== "andcontains" && B.filterOperation !== ee.AND_CONTAINS), E;
@@ -4301,7 +4301,7 @@ const dn = {
4301
4301
  P(E.$slots, "search", ce(ve(d)))
4302
4302
  ]),
4303
4303
  _: 3
4304
- }, 8, ["search-value", "request", "columns"])) : F("", !0),
4304
+ }, 8, ["search-value", "request", "columns"])) : M("", !0),
4305
4305
  S(Te, { name: "fade" }, {
4306
4306
  default: Y(() => [
4307
4307
  le(b("div", Jn, [
@@ -4337,7 +4337,7 @@ const dn = {
4337
4337
  }, 8, ["edit-mode", "filter-panel-open", "columns", "options", "request", "loading"]),
4338
4338
  b("div", Xn, [
4339
4339
  b("table", {
4340
- class: V(["cl-delay-75 cl-min-h-[276px] cl-overflow-x-auto cl-overscroll-x-none cl-text-left cl-transition-opacity cl-w-full", {
4340
+ class: L(["cl-delay-75 cl-min-h-[276px] cl-overflow-x-auto cl-overscroll-x-none cl-text-left cl-transition-opacity cl-w-full", {
4341
4341
  "cl-opacity-40 cl-pointer-events-none": E.loading
4342
4342
  }])
4343
4343
  }, [
@@ -4349,8 +4349,8 @@ const dn = {
4349
4349
  }, null, 4))), 128))
4350
4350
  ]),
4351
4351
  S(Fn, {
4352
- request: L.value,
4353
- "onUpdate:request": B[5] || (B[5] = (d) => L.value = d),
4352
+ request: F.value,
4353
+ "onUpdate:request": B[5] || (B[5] = (d) => F.value = d),
4354
4354
  "filter-panel-open": w.value,
4355
4355
  "onUpdate:filterPanelOpen": B[6] || (B[6] = (d) => w.value = d),
4356
4356
  columns: n.value,
@@ -4429,7 +4429,7 @@ const dn = {
4429
4429
  setup(a) {
4430
4430
  const e = a;
4431
4431
  return (l, t) => (p(), h("div", {
4432
- class: V(["md:cl-relative", {
4432
+ class: L(["md:cl-relative", {
4433
4433
  "cl-bg-primary-default": (e == null ? void 0 : e.colour) === "default",
4434
4434
  "cl-bg-blue-light": e.colour === "secondary"
4435
4435
  }])
@@ -4447,17 +4447,17 @@ const dn = {
4447
4447
  height: "48"
4448
4448
  })),
4449
4449
  b("div", {
4450
- class: V(["cl-grow cl-hidden cl-my-4 md:cl-block", {
4450
+ class: L(["cl-grow cl-hidden cl-my-4 md:cl-block", {
4451
4451
  "cl-text-secondary-default": e.colour === "default",
4452
4452
  "cl-text-white": e.colour === "secondary"
4453
4453
  }])
4454
4454
  }, [
4455
- l.username ? (p(), h("div", rr, q(l.username), 1)) : F("", !0),
4456
- l.group ? (p(), h("div", sr, q(l.group), 1)) : F("", !0)
4455
+ l.username ? (p(), h("div", rr, q(l.username), 1)) : M("", !0),
4456
+ l.group ? (p(), h("div", sr, q(l.group), 1)) : M("", !0)
4457
4457
  ], 2),
4458
4458
  b("div", ir, [
4459
4459
  S(v(H), {
4460
- class: V(["cl-transform-gpu cl-transition-transform", {
4460
+ class: L(["cl-transform-gpu cl-transition-transform", {
4461
4461
  "cl-rotate-180": l.isOpen,
4462
4462
  "cl-text-secondary-default": e.colour === "default",
4463
4463
  "cl-text-white": e.colour === "secondary"
@@ -4516,13 +4516,13 @@ const pr = {
4516
4516
  s && (n.value = !1);
4517
4517
  }), (s, i) => c.value !== null && v(el)(c.value) ? (p(), h("div", pr, [
4518
4518
  b("div", {
4519
- class: V(["cl-flex cl-items-center", {
4519
+ class: L(["cl-flex cl-items-center", {
4520
4520
  "cl-cursor-pointer": !s.disabled
4521
4521
  }]),
4522
4522
  onClick: o
4523
4523
  }, [
4524
4524
  b("span", {
4525
- class: V(["cl-font-semibold cl-text-xs", {
4525
+ class: L(["cl-font-semibold cl-text-xs", {
4526
4526
  "cl-opacity-50": s.disabled
4527
4527
  }])
4528
4528
  }, q(c.value.nativeName), 3)
@@ -4547,7 +4547,7 @@ const pr = {
4547
4547
  ]),
4548
4548
  _: 1
4549
4549
  })
4550
- ])) : F("", !0);
4550
+ ])) : M("", !0);
4551
4551
  }
4552
4552
  }), hr = { class: "cl-relative" }, yr = { class: "cl-h-full cl-z-0 xl:cl-h-screen" }, wr = { 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" }, kr = { class: "cl-col-span-10 lg:cl-col-span-3" }, Tr = {
4553
4553
  key: 0,
@@ -4594,9 +4594,9 @@ const pr = {
4594
4594
  ]),
4595
4595
  k.$slots["language-switcher"] ? (p(), h("div", Tr, [
4596
4596
  P(k.$slots, "language-switcher")
4597
- ])) : F("", !0),
4597
+ ])) : M("", !0),
4598
4598
  b("div", {
4599
- class: V(["cl-gap-y-4 cl-grid cl-grid-cols-1 lg:cl-gap-x-2 lg:cl-grid-cols-8", {
4599
+ class: L(["cl-gap-y-4 cl-grid cl-grid-cols-1 lg:cl-gap-x-2 lg:cl-grid-cols-8", {
4600
4600
  "cl-col-span-7": !k.$slots["language-switcher"],
4601
4601
  "cl-col-span-6": k.$slots["language-switcher"]
4602
4602
  }])
@@ -4672,7 +4672,7 @@ const pr = {
4672
4672
  ])
4673
4673
  ]),
4674
4674
  b("div", {
4675
- class: V(["cl-col-span-2", {
4675
+ class: L(["cl-col-span-2", {
4676
4676
  "cl-mt-1.5 cl-mb-1 md:cl-mt-0.5 md:cl-mb-7 lg:cl-mb-0": k.loading
4677
4677
  }])
4678
4678
  }, [
@@ -4696,9 +4696,9 @@ const pr = {
4696
4696
  var w;
4697
4697
  return [
4698
4698
  le(b("span", Nr, [
4699
- (p(!0), h(X, null, se(k.errors, (N, L) => (p(), h("div", {
4699
+ (p(!0), h(X, null, se(k.errors, (N, F) => (p(), h("div", {
4700
4700
  id: "cl-ui-login-errors",
4701
- key: L,
4701
+ key: F,
4702
4702
  class: "cl-font-semibold"
4703
4703
  }, q(N), 1))), 128))
4704
4704
  ], 512), [
@@ -4728,19 +4728,19 @@ const pr = {
4728
4728
  props: {
4729
4729
  colour: { default: "default" }
4730
4730
  },
4731
- emits: ["pinned-state"],
4731
+ emits: ["pinned-state", "open-state"],
4732
4732
  setup(a, { expose: e, emit: l }) {
4733
4733
  const t = I([]), n = R(() => t.value.filter((N) => N.open === !0).length > 0);
4734
4734
  function c(N) {
4735
- let L = t.value.find((j) => j.id === N);
4736
- return L || (L = {
4735
+ let F = t.value.find((j) => j.id === N);
4736
+ return F || (F = {
4737
4737
  id: N,
4738
4738
  open: !1
4739
- }, t.value.push(L)), L.open;
4739
+ }, t.value.push(F)), F.open;
4740
4740
  }
4741
4741
  function r(N) {
4742
- const L = t.value.find((j) => j.id === N);
4743
- L && (L.open = !L.open, t.value.forEach((j) => {
4742
+ const F = t.value.find((j) => j.id === N);
4743
+ F && (F.open = !F.open, t.value.forEach((j) => {
4744
4744
  j.id !== N && (j.open = !1);
4745
4745
  }));
4746
4746
  }
@@ -4766,25 +4766,29 @@ const pr = {
4766
4766
  }
4767
4767
  return nl(u, w), e({
4768
4768
  closeNavigation: w
4769
- }), (N, L) => (p(), h("div", {
4769
+ }), (N, F) => (p(), h("div", {
4770
4770
  ref_key: "navElement",
4771
4771
  ref: u,
4772
4772
  class: "cl-flex cl-flex-nowrap cl-relative"
4773
4773
  }, [
4774
4774
  b("div", {
4775
4775
  id: "group-container",
4776
- class: V(["cl-h-full cl-overflow-y-auto cl-overscroll-y-none cl-pb-20 cl-w-20 cl-z-40 xl:cl-pb-0", {
4776
+ class: L(["cl-h-full cl-overflow-y-auto cl-overscroll-y-none cl-pb-20 cl-w-20 cl-z-40 xl:cl-pb-0", {
4777
4777
  "cl-bg-primary-default": N.colour === "default",
4778
4778
  "cl-bg-blue-dark": N.colour === "secondary"
4779
4779
  }])
4780
4780
  }, [
4781
4781
  P(N.$slots, "icon", fe({ navcolour: N.colour }, { groupIsOpen: c, toggleOpen: r }), void 0, !0)
4782
4782
  ], 2),
4783
- i.value ? (p(), h("div", Rr)) : F("", !0),
4784
- S(Te, { name: "slide-right" }, {
4783
+ i.value ? (p(), h("div", Rr)) : M("", !0),
4784
+ S(Te, {
4785
+ name: "slide-right",
4786
+ onAfterEnter: F[0] || (F[0] = (j) => l("open-state", n.value)),
4787
+ onAfterLeave: F[1] || (F[1] = (j) => l("open-state", n.value))
4788
+ }, {
4785
4789
  default: Y(() => [
4786
4790
  le(b("div", {
4787
- class: V(["cl-bg-grey-0 cl-border-grey-2 cl-border-r cl-duration-75 cl-h-full cl-min-w-[260px] cl-overflow-y-auto cl-overscroll-y-none cl-p-8 cl-pb-24 cl-top-0 cl-transition-shadow cl-w-[260px] cl-z-30 xl:cl-pb-0", {
4791
+ class: L(["cl-bg-grey-0 cl-border-grey-2 cl-border-r cl-duration-75 cl-h-full cl-min-w-[260px] cl-overflow-y-auto cl-overscroll-y-none cl-p-8 cl-pb-24 cl-top-0 cl-transition-shadow cl-w-[260px] cl-z-30 xl:cl-pb-0", {
4788
4792
  "cl-relative": s.value,
4789
4793
  "cl-absolute cl-left-20 cl-shadow-lg": !s.value
4790
4794
  }])
@@ -4813,7 +4817,7 @@ const pr = {
4813
4817
  ], 512));
4814
4818
  }
4815
4819
  });
4816
- const jr = /* @__PURE__ */ ke(Ir, [["__scopeId", "data-v-0d50b687"]]), Fr = /* @__PURE__ */ Q({
4820
+ const jr = /* @__PURE__ */ ke(Ir, [["__scopeId", "data-v-9950f94e"]]), Fr = /* @__PURE__ */ Q({
4817
4821
  __name: "cl-ui-navigation-icon",
4818
4822
  props: {
4819
4823
  iconValue: {},
@@ -4822,7 +4826,7 @@ const jr = /* @__PURE__ */ ke(Ir, [["__scopeId", "data-v-0d50b687"]]), Fr = /* @
4822
4826
  },
4823
4827
  setup(a) {
4824
4828
  return (e, l) => (p(), h("div", {
4825
- class: V(["cl-cursor-pointer cl-flex cl-h-20 cl-items-center cl-justify-center cl-transition-colors cl-w-20", {
4829
+ class: L(["cl-cursor-pointer cl-flex cl-h-20 cl-items-center cl-justify-center cl-transition-colors cl-w-20", {
4826
4830
  "cl-text-secondary-default hover:cl-bg-primary-dark hover:cl-text-white": e.colour === "default",
4827
4831
  "cl-bg-primary-darker cl-text-white": e.open && e.colour === "default",
4828
4832
  "cl-text-white hover:cl-bg-blue-light": e.colour === "secondary",
@@ -4846,13 +4850,13 @@ const jr = /* @__PURE__ */ ke(Ir, [["__scopeId", "data-v-0d50b687"]]), Fr = /* @
4846
4850
  },
4847
4851
  setup(a) {
4848
4852
  return (e, l) => (p(), h("div", {
4849
- class: V({
4853
+ class: L({
4850
4854
  "cl-hidden": !e.open
4851
4855
  })
4852
4856
  }, [
4853
4857
  e.$slots.title ? (p(), h("div", Mr, [
4854
4858
  P(e.$slots, "title")
4855
- ])) : F("", !0),
4859
+ ])) : M("", !0),
4856
4860
  b("div", Vr, [
4857
4861
  P(e.$slots, "default")
4858
4862
  ])
@@ -4866,7 +4870,7 @@ function _r(a, e) {
4866
4870
  return p(), h("div", Ur, [
4867
4871
  a.$slots.title ? (p(), h("div", Br, [
4868
4872
  P(a.$slots, "title")
4869
- ])) : F("", !0),
4873
+ ])) : M("", !0),
4870
4874
  b("span", zr, [
4871
4875
  P(a.$slots, "default")
4872
4876
  ])
@@ -4918,11 +4922,11 @@ const Kr = /* @__PURE__ */ ke(xr, [["render", Zr]]), Qr = { class: "cl-w-full" }
4918
4922
  icon: "ph:caret-left",
4919
4923
  class: "cl-mt-4 cl-text-secondary-default"
4920
4924
  })
4921
- ])) : F("", !0),
4925
+ ])) : M("", !0),
4922
4926
  b("div", {
4923
4927
  ref_key: "headerContainer",
4924
4928
  ref: l,
4925
- class: V(["cl-flex cl-overflow-x-auto cl-overscroll-x-none", {
4929
+ class: L(["cl-flex cl-overflow-x-auto cl-overscroll-x-none", {
4926
4930
  "cl-shadow-[inset_0_-1px_0_#eeeeee]": !i.disabled && i.colour === "default",
4927
4931
  "cl-shadow-[inset_0_-1px_0_#dae32c]": !i.disabled && i.colour === "primary",
4928
4932
  "cl-shadow-[inset_0_-1px_0_#30363e]": !i.disabled && i.colour === "secondary",
@@ -4944,7 +4948,7 @@ const Kr = /* @__PURE__ */ ke(xr, [["render", Zr]]), Qr = { class: "cl-w-full" }
4944
4948
  icon: "ph:caret-right",
4945
4949
  class: "cl-mt-4 cl-text-secondary-default"
4946
4950
  })
4947
- ])) : F("", !0)
4951
+ ])) : M("", !0)
4948
4952
  ]),
4949
4953
  P(i.$slots, "content", ce(ve({ isTabOpen: c, disabled: i.disabled, colour: i.colour })))
4950
4954
  ]));
@@ -4966,7 +4970,7 @@ const Kr = /* @__PURE__ */ ke(xr, [["render", Zr]]), Qr = { class: "cl-w-full" }
4966
4970
  l.disabled || (t.value = !1, n.value = !1, e("update:currentTab", l.id));
4967
4971
  }
4968
4972
  return (o, s) => (p(), h("div", {
4969
- class: V(["cl-border-b cl-cursor-pointer cl-flex cl-items-center cl-px-4 cl-py-2 cl-rounded-b-none cl-rounded-sm cl-select-none cl-text-xl cl-transition cl-whitespace-nowrap focus:cl-outline-none", {
4973
+ class: L(["cl-border-b cl-cursor-pointer cl-flex cl-items-center cl-px-4 cl-py-2 cl-rounded-b-none cl-rounded-sm cl-select-none cl-text-xl cl-transition cl-whitespace-nowrap focus:cl-outline-none", {
4970
4974
  "!cl-cursor-default cl-text-grey-4 !cl-border-grey-2": o.disabled,
4971
4975
  "cl-border cl-border-b-0 cl-rounded-t-md cl-shadow-[inset_0_-1px_0_#ffffff] cl-cursor-default": c.value,
4972
4976
  "cl-border-grey-0": o.colour === "default",