@citruslime/ui 4.0.2-beta.15 → 4.0.2-beta.17

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 } from "@iconify/vue";
2
2
  import { defineComponent, ref, createElementBlock, openBlock, renderSlot, normalizeProps, guardReactiveProps, Fragment, createElementVNode, normalizeClass, createVNode, unref, Transition, withCtx, withDirectives, mergeProps, vShow, createBlock, Teleport, renderList, toDisplayString, createCommentVNode, computed, createTextVNode, mergeModels, useModel, watch, createSlots, vModelDynamic, shallowRef, toValue, toRefs, withKeys, onMounted, onUnmounted, withModifiers, nextTick, useAttrs, resolveComponent, inject, vModelCheckbox, watchEffect, vModelText, useCssVars, toHandlers, normalizeStyle, isRef, useSlots, provide } from "vue";
3
3
  import { generateStringId, highlightText, isTouchDevice, validateEmail as validateEmail$1, escapeStringForRegExp } from "@citruslime/utils";
4
- import { useFocusWithin, onKeyDown, toArray, unrefElement, tryOnScopeDispose, onClickOutside, useBreakpoints, breakpointsTailwind, useTimeoutFn, useMouseInElement, useThrottle, useMediaQuery, useDebounceFn, useMouse, useDraggable, defaultDocument, tryOnMounted, useThrottleFn, useWindowSize, useElementSize, useElementBounding } from "@vueuse/core";
4
+ import { useFocusWithin, onKeyDown, toArray, unrefElement, tryOnScopeDispose, onClickOutside, useBreakpoints, breakpointsTailwind, useTimeoutFn, useMouseInElement, useMediaQuery, useThrottle, useDebounceFn, useMouse, useDraggable, defaultDocument, tryOnMounted, useThrottleFn, useWindowSize, useElementSize, useElementBounding } from "@vueuse/core";
5
5
  import { useI18n, createI18n } from "vue-i18n";
6
6
  import { createFocusTrap } from "focus-trap";
7
7
  import { copy } from "@citruslime/vue-utils";
@@ -49,8 +49,8 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
49
49
  }
50
50
  });
51
51
  const _hoisted_1$12 = { class: "cl:absolute cl:left-5 cl:top-5" };
52
- const _hoisted_2$L = { class: "cl:font-semibold cl:ml-10 cl:p-4 cl:select-none cl:text-grey-5" };
53
- const _hoisted_3$t = { class: "cl:overflow-hidden" };
52
+ const _hoisted_2$M = { class: "cl:font-semibold cl:ml-10 cl:p-4 cl:select-none cl:text-grey-5" };
53
+ const _hoisted_3$u = { class: "cl:overflow-hidden" };
54
54
  const _sfc_main$1g = /* @__PURE__ */ defineComponent({
55
55
  ...{
56
56
  inheritAttrs: false
@@ -87,11 +87,11 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
87
87
  width: "20"
88
88
  }, null, 8, ["class"])
89
89
  ]),
90
- createElementVNode("div", _hoisted_2$L, [
90
+ createElementVNode("div", _hoisted_2$M, [
91
91
  renderSlot(_ctx.$slots, "title")
92
92
  ])
93
93
  ], 2),
94
- createElementVNode("div", _hoisted_3$t, [
94
+ createElementVNode("div", _hoisted_3$u, [
95
95
  createVNode(Transition, { name: "grow-down" }, {
96
96
  default: withCtx(() => [
97
97
  withDirectives(createElementVNode("div", mergeProps(_ctx.$attrs, { class: "cl:ml-10 cl:p-4" }), [
@@ -135,7 +135,7 @@ function removeNotification(notification) {
135
135
  notifications.value = notifications.value.filter((n) => n.id !== notification.id);
136
136
  }
137
137
  const _hoisted_1$10 = ["onClick"];
138
- const _hoisted_2$K = { class: "cl:flex-1 cl:select-none cl:text-ellipsis cl:w-64" };
138
+ const _hoisted_2$L = { class: "cl:flex-1 cl:select-none cl:text-ellipsis cl:w-64" };
139
139
  const _sfc_main$1e = /* @__PURE__ */ defineComponent({
140
140
  ...{
141
141
  inheritAttrs: false
@@ -174,7 +174,7 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
174
174
  }],
175
175
  onClick: ($event) => unref(removeNotification)(notification)
176
176
  }), [
177
- createElementVNode("span", _hoisted_2$K, toDisplayString(notification.message), 1),
177
+ createElementVNode("span", _hoisted_2$L, toDisplayString(notification.message), 1),
178
178
  createVNode(unref(Icon), {
179
179
  class: "cl:inline-block cl:opacity-0 cl:transition-opacity group-hover:cl:opacity-100",
180
180
  icon: "ph:x",
@@ -230,7 +230,7 @@ function _sfc_render$6(_ctx, _cache) {
230
230
  }
231
231
  const clUiLoadingSpinner = /* @__PURE__ */ _export_sfc(_sfc_main$1c, [["render", _sfc_render$6], ["__scopeId", "data-v-1eee625a"]]);
232
232
  const _hoisted_1$Z = ["disabled"];
233
- const _hoisted_2$J = {
233
+ const _hoisted_2$K = {
234
234
  key: 0,
235
235
  class: "cl:absolute cl:bg-secondary-default/40 cl:flex cl:h-full cl:items-center cl:justify-center cl:left-0 cl:rounded-sm cl:top-0 cl:w-full"
236
236
  };
@@ -280,7 +280,7 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
280
280
  disabled: _ctx.disabled || _ctx.loading
281
281
  }), [
282
282
  renderSlot(_ctx.$slots, "default"),
283
- _ctx.loading ? (openBlock(), createElementBlock("div", _hoisted_2$J, [
283
+ _ctx.loading ? (openBlock(), createElementBlock("div", _hoisted_2$K, [
284
284
  createVNode(clUiLoadingSpinner, { class: "cl:-translate-x-1/2 cl:after:h-6! cl:after:w-6! cl:h-6! cl:w-6!" })
285
285
  ])) : createCommentVNode("", true)
286
286
  ], 16, _hoisted_1$Z);
@@ -358,8 +358,8 @@ const cardSizes = [
358
358
  "large"
359
359
  ];
360
360
  const _hoisted_1$X = { class: "cl:sm:w-auto cl:w-full" };
361
- const _hoisted_2$I = { class: "cl:flex cl:flex-nowrap cl:gap-2 cl:text-grey-4 cl:text-xs cl:tracking-widest" };
362
- const _hoisted_3$s = {
361
+ const _hoisted_2$J = { class: "cl:flex cl:flex-nowrap cl:gap-2 cl:text-grey-4 cl:text-xs cl:tracking-widest" };
362
+ const _hoisted_3$t = {
363
363
  key: 0,
364
364
  class: "cl:self-center"
365
365
  };
@@ -392,8 +392,8 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
392
392
  createElementVNode("div", {
393
393
  class: normalizeClass(["cl:flex", { "cl:flex-col": _ctx.labelPosition === "above", "cl:flex-row-reverse cl:gap-2 cl:items-center cl:justify-end": _ctx.labelPosition === "right" }])
394
394
  }, [
395
- createElementVNode("div", _hoisted_2$I, [
396
- _ctx.$slots.label ? (openBlock(), createElementBlock("span", _hoisted_3$s, [
395
+ createElementVNode("div", _hoisted_2$J, [
396
+ _ctx.$slots.label ? (openBlock(), createElementBlock("span", _hoisted_3$t, [
397
397
  renderSlot(_ctx.$slots, "label")
398
398
  ])) : createCommentVNode("", true),
399
399
  _ctx.showRequiredAsterisk ? (openBlock(), createElementBlock("span", _hoisted_4$n, "*")) : createCommentVNode("", true)
@@ -577,7 +577,7 @@ const _hoisted_1$V = {
577
577
  key: 0,
578
578
  class: "cl:mt-1 cl:opacity-60 cl:text-primary-default"
579
579
  };
580
- const _hoisted_2$H = { class: "cl:overflow-y-auto cl:overscroll-y-none cl:p-2 cl:w-full" };
580
+ const _hoisted_2$I = { class: "cl:overflow-y-auto cl:overscroll-y-none cl:p-2 cl:w-full" };
581
581
  const _sfc_main$17 = /* @__PURE__ */ defineComponent({
582
582
  ...{
583
583
  inheritAttrs: false
@@ -675,7 +675,7 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
675
675
  renderSlot(_ctx.$slots, "title"),
676
676
  _ctx.headerColour === "white" ? (openBlock(), createElementBlock("hr", _hoisted_1$V)) : createCommentVNode("", true)
677
677
  ], 2),
678
- createElementVNode("div", _hoisted_2$H, [
678
+ createElementVNode("div", _hoisted_2$I, [
679
679
  renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps({ close })))
680
680
  ]),
681
681
  renderSlot(_ctx.$slots, "footer", normalizeProps(guardReactiveProps({ close })))
@@ -692,7 +692,7 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
692
692
  }
693
693
  });
694
694
  const _hoisted_1$U = { class: "cl:bg-grey-0 cl:flex cl:p-1 cl:text-left" };
695
- const _hoisted_2$G = {
695
+ const _hoisted_2$H = {
696
696
  key: 0,
697
697
  class: "cl:w-1/2"
698
698
  };
@@ -707,7 +707,7 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
707
707
  setup(__props) {
708
708
  return (_ctx, _cache) => {
709
709
  return openBlock(), createElementBlock("div", _hoisted_1$U, [
710
- _ctx.additionalText !== "" ? (openBlock(), createElementBlock("div", _hoisted_2$G, toDisplayString(_ctx.additionalText), 1)) : createCommentVNode("", true),
710
+ _ctx.additionalText !== "" ? (openBlock(), createElementBlock("div", _hoisted_2$H, toDisplayString(_ctx.additionalText), 1)) : createCommentVNode("", true),
711
711
  createElementVNode("div", {
712
712
  class: normalizeClass({
713
713
  "cl:w-1/2": _ctx.additionalText !== "",
@@ -733,7 +733,7 @@ const _hoisted_1$T = {
733
733
  key: 0,
734
734
  class: "cl:w-1/2"
735
735
  };
736
- const _hoisted_2$F = { class: "cl:float-right cl:py-1 cl:text-black" };
736
+ const _hoisted_2$G = { class: "cl:float-right cl:py-1 cl:text-black" };
737
737
  const _sfc_main$15 = /* @__PURE__ */ defineComponent({
738
738
  __name: "cl-ui-combo-box-selectable",
739
739
  props: {
@@ -801,7 +801,7 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
801
801
  "cl:w-full": displayedParent.value === ""
802
802
  })
803
803
  }, toDisplayString(displayedText.value), 3),
804
- withDirectives(createElementVNode("div", _hoisted_2$F, [
804
+ withDirectives(createElementVNode("div", _hoisted_2$G, [
805
805
  createVNode(unref(Icon), {
806
806
  class: "cl:transition-colors",
807
807
  icon: "ph:plus"
@@ -814,11 +814,11 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
814
814
  }
815
815
  });
816
816
  const _hoisted_1$S = ["onKeyup"];
817
- const _hoisted_2$E = {
817
+ const _hoisted_2$F = {
818
818
  key: 0,
819
819
  class: "cl:absolute cl:bg-off-white cl:flex cl:h-full cl:items-center cl:justify-center cl:top-0 cl:w-full cl:z-20"
820
820
  };
821
- const _hoisted_3$r = { class: "cl:bg-white cl:flex cl:p-2 cl:pb-1 cl:sticky cl:top-0 cl:w-full cl:z-10" };
821
+ const _hoisted_3$s = { class: "cl:bg-white cl:flex cl:p-2 cl:pb-1 cl:sticky cl:top-0 cl:w-full cl:z-10" };
822
822
  const _hoisted_4$m = { class: "cl:inline-block cl:w-full" };
823
823
  const _hoisted_5$g = { key: 6 };
824
824
  const _sfc_main$14 = /* @__PURE__ */ defineComponent({
@@ -955,10 +955,10 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
955
955
  ],
956
956
  onKeyup: withKeys(withModifiers(onKeyboardEnter, ["prevent", "stop"]), ["enter"])
957
957
  }, [
958
- _ctx.loading ? (openBlock(), createElementBlock("div", _hoisted_2$E, [
958
+ _ctx.loading ? (openBlock(), createElementBlock("div", _hoisted_2$F, [
959
959
  createVNode(clUiLoadingSpinner)
960
960
  ])) : createCommentVNode("", true),
961
- createElementVNode("div", _hoisted_3$r, [
961
+ createElementVNode("div", _hoisted_3$s, [
962
962
  createElementVNode("div", _hoisted_4$m, [
963
963
  createVNode(_sfc_main$18, {
964
964
  id: `cl-ui-combo-box-search-input-${_ctx.objectType}`,
@@ -1026,8 +1026,8 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
1026
1026
  }
1027
1027
  });
1028
1028
  const _hoisted_1$R = { class: "cl:flex cl:rounded-lg" };
1029
- const _hoisted_2$D = { class: "cl:inline-block cl:w-full" };
1030
- const _hoisted_3$q = { class: "cl:pointer-events-none cl:relative cl:top-0.5" };
1029
+ const _hoisted_2$E = { class: "cl:inline-block cl:w-full" };
1030
+ const _hoisted_3$r = { class: "cl:pointer-events-none cl:relative cl:top-0.5" };
1031
1031
  const _hoisted_4$l = { class: "cl:absolute cl:flex cl:float-right cl:font-semibold cl:mt-[5px] cl:right-2 cl:text-danger-default cl:text-sm cl:z-10" };
1032
1032
  const _hoisted_5$f = ["disabled"];
1033
1033
  const _hoisted_6$a = ["disabled"];
@@ -1241,7 +1241,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
1241
1241
  ref: outsideRef
1242
1242
  }, attrs, { class: "cl:relative" }), [
1243
1243
  createElementVNode("div", _hoisted_1$R, [
1244
- createElementVNode("div", _hoisted_2$D, [
1244
+ createElementVNode("div", _hoisted_2$E, [
1245
1245
  createVNode(_sfc_main$18, {
1246
1246
  id: unref(id),
1247
1247
  ref_key: "inputRef",
@@ -1264,7 +1264,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
1264
1264
  _: 1
1265
1265
  }, 8, ["id", "modelValue", "class", "placeholder", "disabled"])
1266
1266
  ]),
1267
- withDirectives(createElementVNode("div", _hoisted_3$q, [
1267
+ withDirectives(createElementVNode("div", _hoisted_3$r, [
1268
1268
  createElementVNode("div", _hoisted_4$l, [
1269
1269
  createTextVNode(toDisplayString(unref(t2)("comboBox.required")) + " ", 1),
1270
1270
  createVNode(unref(Icon), {
@@ -1404,11 +1404,11 @@ function isComboBoxCreateRequest(objectToTest) {
1404
1404
  }
1405
1405
  const _sfc_main$12 = {};
1406
1406
  const _hoisted_1$Q = { class: "cl:flex cl:flex-wrap cl:left-0 cl:mt-4 cl:w-full" };
1407
- const _hoisted_2$C = {
1407
+ const _hoisted_2$D = {
1408
1408
  key: 0,
1409
1409
  class: "cl:w-full"
1410
1410
  };
1411
- const _hoisted_3$p = {
1411
+ const _hoisted_3$q = {
1412
1412
  key: 1,
1413
1413
  class: "cl:leading-10 cl:text-sm cl:w-full"
1414
1414
  };
@@ -1416,10 +1416,10 @@ const _hoisted_4$k = { class: "cl:float-left" };
1416
1416
  const _hoisted_5$e = { class: "cl:float-right" };
1417
1417
  function _sfc_render$5(_ctx, _cache) {
1418
1418
  return openBlock(), createElementBlock("div", _hoisted_1$Q, [
1419
- _ctx.$slots.default ? (openBlock(), createElementBlock("div", _hoisted_2$C, [
1419
+ _ctx.$slots.default ? (openBlock(), createElementBlock("div", _hoisted_2$D, [
1420
1420
  renderSlot(_ctx.$slots, "default")
1421
1421
  ])) : createCommentVNode("", true),
1422
- _ctx.$slots.left || _ctx.$slots.right ? (openBlock(), createElementBlock("div", _hoisted_3$p, [
1422
+ _ctx.$slots.left || _ctx.$slots.right ? (openBlock(), createElementBlock("div", _hoisted_3$q, [
1423
1423
  createElementVNode("span", _hoisted_4$k, [
1424
1424
  renderSlot(_ctx.$slots, "left")
1425
1425
  ]),
@@ -1498,8 +1498,8 @@ const _hoisted_1$N = {
1498
1498
  key: 0,
1499
1499
  class: "cl:flex cl:gap-2 cl:justify-between cl:mb-2 cl:w-full"
1500
1500
  };
1501
- const _hoisted_2$B = { key: 1 };
1502
- const _hoisted_3$o = { class: "cl:flex cl:flex-wrap cl:gap-1 cl:lg:flex-nowrap cl:lg:gap-2 cl:md:justify-end cl:pb-2" };
1501
+ const _hoisted_2$C = { key: 1 };
1502
+ const _hoisted_3$p = { class: "cl:flex cl:flex-wrap cl:gap-1 cl:lg:flex-nowrap cl:lg:gap-2 cl:md:justify-end cl:pb-2" };
1503
1503
  const _hoisted_4$j = { class: "cl:basis-full cl:col-span-2 cl:grow cl:lg:basis-0" };
1504
1504
  const _hoisted_5$d = {
1505
1505
  key: 2,
@@ -1532,7 +1532,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
1532
1532
  class: "cl:flex-1 cl:lg:flex-initial"
1533
1533
  });
1534
1534
  }), 64))
1535
- ])) : (openBlock(), createElementBlock("div", _hoisted_2$B, [
1535
+ ])) : (openBlock(), createElementBlock("div", _hoisted_2$C, [
1536
1536
  createElementVNode("div", {
1537
1537
  class: normalizeClass(["cl:lg:hidden cl:mb-2 cl:text-sm", {
1538
1538
  "cl:hidden": _ctx.options.hideGridMobileView
@@ -1540,7 +1540,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
1540
1540
  }, [
1541
1541
  createElementVNode("strong", null, toDisplayString(unref(t2)("grid.gridTools")), 1)
1542
1542
  ], 2),
1543
- createElementVNode("div", _hoisted_3$o, [
1543
+ createElementVNode("div", _hoisted_3$p, [
1544
1544
  createElementVNode("div", _hoisted_4$j, [
1545
1545
  renderSlot(_ctx.$slots, "additional-grid-actions", normalizeProps(guardReactiveProps({
1546
1546
  loading: _ctx.loading,
@@ -1624,7 +1624,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
1624
1624
  }
1625
1625
  });
1626
1626
  const _hoisted_1$M = ["for"];
1627
- const _hoisted_2$A = ["required", "disabled"];
1627
+ const _hoisted_2$B = ["required", "disabled"];
1628
1628
  const _sfc_main$Z = /* @__PURE__ */ defineComponent({
1629
1629
  ...{
1630
1630
  inheritAttrs: false
@@ -1681,7 +1681,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
1681
1681
  }, ["stop", "prevent"]), ["enter"])),
1682
1682
  onFocus: _cache[2] || (_cache[2] = ($event) => emit("focus")),
1683
1683
  onBlur: _cache[3] || (_cache[3] = ($event) => emit("blur"))
1684
- }), null, 16, _hoisted_2$A), [
1684
+ }), null, 16, _hoisted_2$B), [
1685
1685
  [vModelCheckbox, modelValue.value]
1686
1686
  ])
1687
1687
  ]),
@@ -2313,11 +2313,11 @@ const _hoisted_1$L = {
2313
2313
  key: 3,
2314
2314
  class: "cl:inline-block cl:whitespace-nowrap"
2315
2315
  };
2316
- const _hoisted_2$z = {
2316
+ const _hoisted_2$A = {
2317
2317
  key: 4,
2318
2318
  class: "cl:inline-block cl:whitespace-nowrap"
2319
2319
  };
2320
- const _hoisted_3$n = {
2320
+ const _hoisted_3$o = {
2321
2321
  key: 5,
2322
2322
  class: "cl:inline-block cl:whitespace-nowrap"
2323
2323
  };
@@ -2425,7 +2425,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
2425
2425
  ], 64)) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
2426
2426
  createTextVNode(toDisplayString(formatDate(_ctx.data[_ctx.column.field], unref(DateFormat).DATETIME)), 1)
2427
2427
  ], 64))
2428
- ], 64)) : _ctx.column.type === "list" && _ctx.column.field !== void 0 && _ctx.column.listEntries !== void 0 ? (openBlock(), createElementBlock("span", _hoisted_1$L, toDisplayString(unref(t2)(((_a = _ctx.column.listEntries.find((entry) => entry.value === _ctx.data[_ctx.column.field])) == null ? void 0 : _a.translationKey) ?? "")), 1)) : _ctx.column.type === "number" && _ctx.column.field !== void 0 ? (openBlock(), createElementBlock("span", _hoisted_2$z, toDisplayString(formatNumberToString(_ctx.data[_ctx.column.field], unref(locale2))), 1)) : _ctx.column.field !== void 0 ? (openBlock(), createElementBlock("span", _hoisted_3$n, [
2428
+ ], 64)) : _ctx.column.type === "list" && _ctx.column.field !== void 0 && _ctx.column.listEntries !== void 0 ? (openBlock(), createElementBlock("span", _hoisted_1$L, toDisplayString(unref(t2)(((_a = _ctx.column.listEntries.find((entry) => entry.value === _ctx.data[_ctx.column.field])) == null ? void 0 : _a.translationKey) ?? "")), 1)) : _ctx.column.type === "number" && _ctx.column.field !== void 0 ? (openBlock(), createElementBlock("span", _hoisted_2$A, toDisplayString(formatNumberToString(_ctx.data[_ctx.column.field], unref(locale2))), 1)) : _ctx.column.field !== void 0 ? (openBlock(), createElementBlock("span", _hoisted_3$o, [
2429
2429
  createElementVNode("span", {
2430
2430
  title: showUntruncatedStringValue.value ? _ctx.data[_ctx.column.field] : void 0,
2431
2431
  innerHTML: formatString()
@@ -2594,8 +2594,8 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
2594
2594
  }
2595
2595
  });
2596
2596
  const _hoisted_1$K = ["colspan"];
2597
- const _hoisted_2$y = ["colspan"];
2598
- const _hoisted_3$m = { key: 2 };
2597
+ const _hoisted_2$z = ["colspan"];
2598
+ const _hoisted_3$n = { key: 2 };
2599
2599
  const _hoisted_4$h = ["colspan"];
2600
2600
  const _hoisted_5$c = { class: "cl:flex cl:flex-wrap cl:justify-center cl:text-center cl:text-sm cl:w-full" };
2601
2601
  const _hoisted_6$9 = { key: 0 };
@@ -2821,10 +2821,10 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
2821
2821
  createElementVNode("td", {
2822
2822
  colspan: _ctx.columns.length,
2823
2823
  class: "cl:gap-1 cl:lg:px-1 cl:py-2 cl:text-xs"
2824
- }, "   ", 8, _hoisted_2$y)
2824
+ }, "   ", 8, _hoisted_2$z)
2825
2825
  ], 2);
2826
2826
  }), 128)) : createCommentVNode("", true)
2827
- ], 64)) : !_ctx.loading ? (openBlock(), createElementBlock("tr", _hoisted_3$m, [
2827
+ ], 64)) : !_ctx.loading ? (openBlock(), createElementBlock("tr", _hoisted_3$n, [
2828
2828
  createElementVNode("td", {
2829
2829
  colspan: _ctx.columns.length
2830
2830
  }, [
@@ -2853,8 +2853,8 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
2853
2853
  }
2854
2854
  });
2855
2855
  const _hoisted_1$J = ["value", "inputmode", "disabled", "placeholder"];
2856
- const _hoisted_2$x = { 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 cl:xl:flex" };
2857
- const _hoisted_3$l = ["disabled"];
2856
+ const _hoisted_2$y = { 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 cl:xl:flex" };
2857
+ const _hoisted_3$m = ["disabled"];
2858
2858
  const _hoisted_4$g = ["disabled"];
2859
2859
  const _sfc_main$U = /* @__PURE__ */ defineComponent({
2860
2860
  ...{
@@ -3033,7 +3033,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
3033
3033
  _cache[3] || (_cache[3] = withKeys(withModifiers(($event) => incrementOrDecrement(false), ["prevent"]), ["up"]))
3034
3034
  ]
3035
3035
  }), null, 16, _hoisted_1$J)),
3036
- withDirectives(createElementVNode("div", _hoisted_2$x, [
3036
+ withDirectives(createElementVNode("div", _hoisted_2$y, [
3037
3037
  createElementVNode("button", {
3038
3038
  class: "cl:bg-secondary-light/30 cl:border cl:border-grey-3 cl:hover:bg-secondary-light/20 cl:px-1 cl:rounded",
3039
3039
  disabled: _ctx.disabled,
@@ -3044,7 +3044,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
3044
3044
  ]
3045
3045
  }, [
3046
3046
  createVNode(_component_icon, { icon: "ph:caret-up-bold" })
3047
- ], 40, _hoisted_3$l),
3047
+ ], 40, _hoisted_3$m),
3048
3048
  createElementVNode("button", {
3049
3049
  class: "cl:bg-secondary-light/30 cl:border cl:border-grey-3 cl:hover:bg-secondary-light/20 cl:px-1 cl:rounded",
3050
3050
  disabled: _ctx.disabled,
@@ -3085,8 +3085,8 @@ const _hoisted_1$I = {
3085
3085
  key: 0,
3086
3086
  class: "cl:flex cl:flex-col cl:lg:flex-row cl:lg:gap-2"
3087
3087
  };
3088
- const _hoisted_2$w = { class: "cl:border cl:border-off-white cl:flex cl:items-center cl:lg:px-4 cl:lg:py-3 cl:mt-2 cl:p-2 cl:rounded-lg cl:w-full" };
3089
- const _hoisted_3$k = { class: "cl:border cl:border-off-white cl:lg:px-4 cl:lg:py-3 cl:mt-2 cl:p-2 cl:rounded-lg" };
3088
+ const _hoisted_2$x = { class: "cl:border cl:border-off-white cl:flex cl:items-center cl:lg:px-4 cl:lg:py-3 cl:mt-2 cl:p-2 cl:rounded-lg cl:w-full" };
3089
+ const _hoisted_3$l = { class: "cl:border cl:border-off-white cl:lg:px-4 cl:lg:py-3 cl:mt-2 cl:p-2 cl:rounded-lg" };
3090
3090
  const _hoisted_4$f = ["inert"];
3091
3091
  const _hoisted_5$b = { 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:lg:basis-0 cl:lg:px-4 cl:lg:py-3 cl:mt-2 cl:p-2 cl:rounded-lg cl:shadow cl:text-sm" };
3092
3092
  const _hoisted_6$8 = { class: "cl:flex cl:flex-wrap cl:gap-x-4 cl:gap-y-2 cl:items-center cl:justify-between cl:w-full" };
@@ -3166,14 +3166,14 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
3166
3166
  return (_ctx, _cache) => {
3167
3167
  var _a, _b, _c;
3168
3168
  return _ctx.initialLoad ? (openBlock(), createElementBlock("div", _hoisted_1$I, [
3169
- createElementVNode("div", _hoisted_2$w, [
3169
+ createElementVNode("div", _hoisted_2$x, [
3170
3170
  createVNode(unref(_sfc_main$$), { words: 3 }),
3171
3171
  createVNode(unref(_sfc_main$$), {
3172
3172
  class: "cl:ml-auto",
3173
3173
  words: 2
3174
3174
  })
3175
3175
  ]),
3176
- createElementVNode("div", _hoisted_3$k, [
3176
+ createElementVNode("div", _hoisted_3$l, [
3177
3177
  createVNode(unref(clUiSkeletonInput), { class: "cl:w-64" })
3178
3178
  ])
3179
3179
  ])) : _ctx.loading || ((_b = (_a = _ctx.data) == null ? void 0 : _a.results) == null ? void 0 : _b.length) && _ctx.request ? (openBlock(), createElementBlock("div", {
@@ -3460,7 +3460,7 @@ function getMaxDateValue(max, timeZone, currentValue, calendarType) {
3460
3460
  return currentValue;
3461
3461
  }
3462
3462
  const _hoisted_1$H = { class: "cl:gap-1 cl:grid cl:grid-cols-2" };
3463
- const _hoisted_2$v = ["onClick"];
3463
+ const _hoisted_2$w = ["onClick"];
3464
3464
  const _sfc_main$S = /* @__PURE__ */ defineComponent({
3465
3465
  __name: "cl-ui-quick-dates-group",
3466
3466
  props: {
@@ -3484,7 +3484,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
3484
3484
  onClick: ($event) => emit("quick-date-selected", date)
3485
3485
  }, [
3486
3486
  createElementVNode("span", null, toDisplayString(unref(t2)(date.translationKey)), 1)
3487
- ], 10, _hoisted_2$v);
3487
+ ], 10, _hoisted_2$w);
3488
3488
  }), 128))
3489
3489
  ]);
3490
3490
  };
@@ -3588,7 +3588,7 @@ const allQuickDates = [
3588
3588
  ...currentQuickDates
3589
3589
  ];
3590
3590
  const _hoisted_1$G = { class: "cl:p-2 cl:pt-0" };
3591
- const _hoisted_2$u = {
3591
+ const _hoisted_2$v = {
3592
3592
  key: 0,
3593
3593
  class: "cl:mt-2 cl:opacity-20"
3594
3594
  };
@@ -3602,6 +3602,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
3602
3602
  setup(__props, { emit: __emit }) {
3603
3603
  const props = __props;
3604
3604
  const emit = __emit;
3605
+ const isMediumScreen = useMediaQuery("(max-height: 911px)");
3605
3606
  const { t: t2 } = useI18n();
3606
3607
  const quickDateGroups = computed(() => {
3607
3608
  const groups = [];
@@ -3636,19 +3637,25 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
3636
3637
  return (_ctx, _cache) => {
3637
3638
  return openBlock(), createElementBlock("div", _hoisted_1$G, [
3638
3639
  createElementVNode("div", null, toDisplayString(unref(t2)("quickDates.quickDatesHeader")), 1),
3639
- (openBlock(true), createElementBlock(Fragment, null, renderList(quickDateGroups.value, (group, index2) => {
3640
- return openBlock(), createElementBlock("div", {
3641
- key: index2,
3642
- class: "cl:pt-2"
3643
- }, [
3644
- createVNode(_sfc_main$S, {
3645
- dates: group,
3646
- "selected-quick-date": _ctx.selectedQuickDate,
3647
- onQuickDateSelected: _cache[0] || (_cache[0] = ($event) => emit("quick-date-selected", $event))
3648
- }, null, 8, ["dates", "selected-quick-date"]),
3649
- index2 < quickDateGroups.value.length - 1 ? (openBlock(), createElementBlock("div", _hoisted_2$u)) : createCommentVNode("", true)
3650
- ]);
3651
- }), 128))
3640
+ createElementVNode("div", {
3641
+ class: normalizeClass({
3642
+ "cl:max-h-[100px] cl:overflow-y-auto": unref(isMediumScreen)
3643
+ })
3644
+ }, [
3645
+ (openBlock(true), createElementBlock(Fragment, null, renderList(quickDateGroups.value, (group, index2) => {
3646
+ return openBlock(), createElementBlock("div", {
3647
+ key: index2,
3648
+ class: "cl:pt-2"
3649
+ }, [
3650
+ createVNode(_sfc_main$S, {
3651
+ dates: group,
3652
+ "selected-quick-date": _ctx.selectedQuickDate,
3653
+ onQuickDateSelected: _cache[0] || (_cache[0] = ($event) => emit("quick-date-selected", $event))
3654
+ }, null, 8, ["dates", "selected-quick-date"]),
3655
+ index2 < quickDateGroups.value.length - 1 ? (openBlock(), createElementBlock("div", _hoisted_2$v)) : createCommentVNode("", true)
3656
+ ]);
3657
+ }), 128))
3658
+ ], 2)
3652
3659
  ]);
3653
3660
  };
3654
3661
  }
@@ -3765,8 +3772,8 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
3765
3772
  }
3766
3773
  });
3767
3774
  const _hoisted_1$F = { class: "cl:gap-1 cl:grid cl:grid-cols-[auto_1fr_auto_auto] cl:pt-0.5 cl:w-full" };
3768
- const _hoisted_2$t = ["disabled"];
3769
- const _hoisted_3$j = { class: "cl:max-w-max" };
3775
+ const _hoisted_2$u = ["disabled"];
3776
+ const _hoisted_3$k = { class: "cl:max-w-max" };
3770
3777
  const _hoisted_4$e = { class: "cl:flex cl:flex-col cl:gap-1 cl:w-full" };
3771
3778
  const _hoisted_5$a = ["min", "disabled", "required", "step", "max"];
3772
3779
  const _hoisted_6$7 = { class: "cl:bg-white cl:border cl:border-grey-2 cl:leading-none cl:rounded-full cl:text-center cl:text-xs" };
@@ -3832,8 +3839,8 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
3832
3839
  disabled: _ctx.disabled,
3833
3840
  class: "cl:active:bg-grey-0 cl:bg-white cl:border cl:border-grey-2 cl:disabled:bg-grey-1 cl:hover:bg-off-white cl:leading-none cl:min-w-[26px] cl:p-[5px] cl:rounded-full cl:shadow cl:text-xs cl:transition-colors",
3834
3841
  onClick: _cache[0] || (_cache[0] = ($event) => setValueAndFocus(_ctx.min))
3835
- }, toDisplayString(unref(formatNumberAsDecimal)(_ctx.min, _ctx.precision)), 9, _hoisted_2$t),
3836
- createElementVNode("div", _hoisted_3$j, [
3842
+ }, toDisplayString(unref(formatNumberAsDecimal)(_ctx.min, _ctx.precision)), 9, _hoisted_2$u),
3843
+ createElementVNode("div", _hoisted_3$k, [
3837
3844
  withDirectives(createElementVNode("div", _hoisted_4$e, [
3838
3845
  withDirectives(createElementVNode("input", mergeProps({
3839
3846
  ref_key: "sliderRef",
@@ -4000,7 +4007,7 @@ const _hoisted_1$E = {
4000
4007
  key: 1,
4001
4008
  class: "cl:relative"
4002
4009
  };
4003
- const _hoisted_2$s = ["value", "disabled", "placeholder"];
4010
+ const _hoisted_2$t = ["value", "disabled", "placeholder"];
4004
4011
  const _sfc_main$N = /* @__PURE__ */ defineComponent({
4005
4012
  ...{
4006
4013
  inheritAttrs: false
@@ -4061,7 +4068,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
4061
4068
  placeholder: currentPlaceholder.value,
4062
4069
  onFocus: _cache[2] || (_cache[2] = ($event) => _ctx.$emit("focus")),
4063
4070
  onBlur: _cache[3] || (_cache[3] = ($event) => _ctx.$emit("blur"))
4064
- }, toHandlers(_ctx.events, true)), null, 16, _hoisted_2$s),
4071
+ }, toHandlers(_ctx.events, true)), null, 16, _hoisted_2$t),
4065
4072
  createVNode(unref(Icon), {
4066
4073
  class: "cl:absolute cl:bg-transparent cl:cursor-text cl:left-2 cl:text-grey-4 cl:top-3.5 icon",
4067
4074
  icon: _ctx.type === "time" ? "ph-clock" : "ph:calendar",
@@ -4093,7 +4100,7 @@ const _hoisted_1$D = {
4093
4100
  key: 0,
4094
4101
  class: "cl:px-3 cl:py-3 cl:w-full"
4095
4102
  };
4096
- const _hoisted_2$r = {
4103
+ const _hoisted_2$s = {
4097
4104
  key: 0,
4098
4105
  class: "cl:px-3 cl:py-3 cl:w-full"
4099
4106
  };
@@ -4292,7 +4299,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
4292
4299
  }), null, 16, ["date", "events", "type", "placeholder", "required", "disabled", "force-icon-display"])
4293
4300
  ]),
4294
4301
  footer: withCtx(() => [
4295
- todayButtonVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$r, [
4302
+ todayButtonVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$s, [
4296
4303
  createElementVNode("button", {
4297
4304
  class: "cl:bg-primary-default cl:hover:primary-light cl:px-3 cl:py-1 cl:rounded-md cl:text-black cl:w-full",
4298
4305
  onClick: setToday
@@ -4317,8 +4324,10 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
4317
4324
  });
4318
4325
  const _hoisted_1$C = {
4319
4326
  key: 1,
4320
- class: "cl:flex cl:flex-col cl:gap-2 cl:p-2 cl:w-full"
4327
+ class: "cl:flex cl:gap-2 cl:p-2 cl:w-full"
4321
4328
  };
4329
+ const _hoisted_2$r = { class: "cl:w-full" };
4330
+ const _hoisted_3$j = { class: "cl:w-full" };
4322
4331
  const _sfc_main$L = /* @__PURE__ */ defineComponent({
4323
4332
  ...{
4324
4333
  inheritAttrs: false
@@ -4399,7 +4408,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
4399
4408
  }
4400
4409
  const isMediumScreen = useMediaQuery("(min-width: 768px)");
4401
4410
  const dateRangeColumnCount = computed(() => isMediumScreen.value ? 2 : 1);
4402
- const showQuickDates = useMediaQuery("(min-height: 800px)");
4411
+ const showQuickDates = useMediaQuery("(min-height: 900px)");
4403
4412
  const internalEntrySelectStartDate = ref(null);
4404
4413
  const internalEntrySelectEndDate = ref(null);
4405
4414
  function handleEntrySelectDateRangeUpdate() {
@@ -4489,52 +4498,57 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
4489
4498
  onQuickDateSelected: handleQuickDateSelection
4490
4499
  }, null, 8, ["scope", "selected-quick-date", "current-date-range"])) : createCommentVNode("", true),
4491
4500
  _ctx.manualDateSelection ? (openBlock(), createElementBlock("div", _hoisted_1$C, [
4492
- createVNode(_sfc_main$M, {
4493
- id: "dateInputStart",
4494
- modelValue: internalEntrySelectStartDate.value,
4495
- "onUpdate:modelValue": [
4496
- _cache[1] || (_cache[1] = ($event) => internalEntrySelectStartDate.value = $event),
4497
- handleEntrySelectDateRangeUpdate
4498
- ],
4499
- type: "date",
4500
- "date-format-locale": _ctx.dateFormatLocale,
4501
- disabled: _ctx.disabled,
4502
- "time-zone": _ctx.timeZone,
4503
- "min-date": _ctx.minDate,
4504
- "max-date": _ctx.maxDate,
4505
- required: true,
4506
- "force-icon-display": true,
4507
- "popover-placement": _ctx.popoverPlacement,
4508
- "show-popover": true
4509
- }, {
4510
- default: withCtx(() => [
4511
- createTextVNode(toDisplayString(unref(t2)("datetime.startDate")), 1)
4512
- ]),
4513
- _: 1
4514
- }, 8, ["modelValue", "date-format-locale", "disabled", "time-zone", "min-date", "max-date", "popover-placement"]),
4515
- createVNode(_sfc_main$M, {
4516
- id: "dateInputEnd",
4517
- modelValue: internalEntrySelectEndDate.value,
4518
- "onUpdate:modelValue": [
4519
- _cache[2] || (_cache[2] = ($event) => internalEntrySelectEndDate.value = $event),
4520
- handleEntrySelectDateRangeUpdate
4521
- ],
4522
- type: "date",
4523
- "date-format-locale": _ctx.dateFormatLocale,
4524
- disabled: _ctx.disabled,
4525
- "time-zone": _ctx.timeZone,
4526
- "min-date": _ctx.minDate,
4527
- "max-date": _ctx.maxDate,
4528
- required: true,
4529
- "force-icon-display": true,
4530
- "popover-placement": _ctx.popoverPlacement,
4531
- "show-popover": true
4532
- }, {
4533
- default: withCtx(() => [
4534
- createTextVNode(toDisplayString(unref(t2)("datetime.endDate")), 1)
4535
- ]),
4536
- _: 1
4537
- }, 8, ["modelValue", "date-format-locale", "disabled", "time-zone", "min-date", "max-date", "popover-placement"])
4501
+ createElementVNode("div", _hoisted_2$r, [
4502
+ createVNode(_sfc_main$M, {
4503
+ id: "dateInputStart",
4504
+ modelValue: internalEntrySelectStartDate.value,
4505
+ "onUpdate:modelValue": [
4506
+ _cache[1] || (_cache[1] = ($event) => internalEntrySelectStartDate.value = $event),
4507
+ handleEntrySelectDateRangeUpdate
4508
+ ],
4509
+ type: "date",
4510
+ "date-format-locale": _ctx.dateFormatLocale,
4511
+ disabled: _ctx.disabled,
4512
+ "time-zone": _ctx.timeZone,
4513
+ "min-date": _ctx.minDate,
4514
+ "max-date": _ctx.maxDate,
4515
+ required: true,
4516
+ "force-icon-display": true,
4517
+ "popover-placement": _ctx.popoverPlacement,
4518
+ "show-popover": true
4519
+ }, {
4520
+ default: withCtx(() => [
4521
+ createTextVNode(toDisplayString(unref(t2)("datetime.startDate")), 1)
4522
+ ]),
4523
+ _: 1
4524
+ }, 8, ["modelValue", "date-format-locale", "disabled", "time-zone", "min-date", "max-date", "popover-placement"])
4525
+ ]),
4526
+ createElementVNode("div", _hoisted_3$j, [
4527
+ createVNode(_sfc_main$M, {
4528
+ id: "dateInputEnd",
4529
+ modelValue: internalEntrySelectEndDate.value,
4530
+ "onUpdate:modelValue": [
4531
+ _cache[2] || (_cache[2] = ($event) => internalEntrySelectEndDate.value = $event),
4532
+ handleEntrySelectDateRangeUpdate
4533
+ ],
4534
+ type: "date",
4535
+ class: "cl:w-full",
4536
+ "date-format-locale": _ctx.dateFormatLocale,
4537
+ disabled: _ctx.disabled,
4538
+ "time-zone": _ctx.timeZone,
4539
+ "min-date": _ctx.minDate,
4540
+ "max-date": _ctx.maxDate,
4541
+ required: true,
4542
+ "force-icon-display": true,
4543
+ "popover-placement": _ctx.popoverPlacement,
4544
+ "show-popover": true
4545
+ }, {
4546
+ default: withCtx(() => [
4547
+ createTextVNode(toDisplayString(unref(t2)("datetime.endDate")), 1)
4548
+ ]),
4549
+ _: 1
4550
+ }, 8, ["modelValue", "date-format-locale", "disabled", "time-zone", "min-date", "max-date", "popover-placement"])
4551
+ ])
4538
4552
  ])) : createCommentVNode("", true)
4539
4553
  ]),
4540
4554
  _: 1