@citruslime/ui 4.1.0-beta.0 → 4.1.0-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.
@@ -367,7 +367,7 @@ const _hoisted_4$n = {
367
367
  key: 1,
368
368
  class: "cl:text-danger-dark"
369
369
  };
370
- const _hoisted_5$h = {
370
+ const _hoisted_5$g = {
371
371
  key: 0,
372
372
  class: "cl:pt-1 cl:w-full"
373
373
  };
@@ -402,7 +402,7 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
402
402
  renderSlot(_ctx.$slots, "default")
403
403
  ])
404
404
  ], 2),
405
- hasErrors.value ? (openBlock(), createElementBlock("div", _hoisted_5$h, [
405
+ hasErrors.value ? (openBlock(), createElementBlock("div", _hoisted_5$g, [
406
406
  createElementVNode("div", _hoisted_6$b, [
407
407
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.errors, (error, index2) => {
408
408
  return openBlock(), createElementBlock("div", {
@@ -820,7 +820,7 @@ const _hoisted_2$F = {
820
820
  };
821
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
- const _hoisted_5$g = { key: 6 };
823
+ const _hoisted_5$f = { key: 6 };
824
824
  const _sfc_main$14 = /* @__PURE__ */ defineComponent({
825
825
  __name: "cl-ui-combo-box-search",
826
826
  props: {
@@ -1008,7 +1008,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
1008
1008
  onCreateObject: createObject,
1009
1009
  onOptionHighlighted: updateSelectedObjectIndex
1010
1010
  }, null, 8, ["text", "selected-index"])) : createCommentVNode("", true),
1011
- _ctx.errorMessage === "" && _ctx.results !== null ? (openBlock(), createElementBlock("div", _hoisted_5$g, [
1011
+ _ctx.errorMessage === "" && _ctx.results !== null ? (openBlock(), createElementBlock("div", _hoisted_5$f, [
1012
1012
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.results, (result, index2) => {
1013
1013
  return openBlock(), createBlock(_sfc_main$15, {
1014
1014
  key: index2,
@@ -1029,7 +1029,7 @@ const _hoisted_1$R = { class: "cl:flex cl:rounded-lg" };
1029
1029
  const _hoisted_2$E = { class: "cl:inline-block cl:w-full" };
1030
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
- const _hoisted_5$f = ["disabled"];
1032
+ const _hoisted_5$e = ["disabled"];
1033
1033
  const _hoisted_6$a = ["disabled"];
1034
1034
  const _hoisted_7$8 = { class: "cl:min-h-[16rem] cl:mx-4" };
1035
1035
  const _hoisted_8$7 = { class: "cl:p-2 cl:text-right cl:w-full" };
@@ -1288,7 +1288,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
1288
1288
  icon: "ph:caret-down-bold",
1289
1289
  class: "cl:ml-[4px] cl:mt-[9px]"
1290
1290
  })
1291
- ], 10, _hoisted_5$f)) : (openBlock(), createElementBlock("div", {
1291
+ ], 10, _hoisted_5$e)) : (openBlock(), createElementBlock("div", {
1292
1292
  key: 1,
1293
1293
  class: normalizeClass(["cl:border cl:border-grey-2 cl:border-l-0 cl:float-right cl:rounded-l-none cl:rounded-lg cl:text-grey-3 cl:transition-colors cl:w-[27px]", {
1294
1294
  "cl:cursor-default cl:bg-off-white": _ctx.disabled,
@@ -1413,7 +1413,7 @@ const _hoisted_3$q = {
1413
1413
  class: "cl:leading-10 cl:text-sm cl:w-full"
1414
1414
  };
1415
1415
  const _hoisted_4$k = { class: "cl:float-left" };
1416
- const _hoisted_5$e = { class: "cl:float-right" };
1416
+ const _hoisted_5$d = { class: "cl:float-right" };
1417
1417
  function _sfc_render$5(_ctx, _cache) {
1418
1418
  return openBlock(), createElementBlock("div", _hoisted_1$Q, [
1419
1419
  _ctx.$slots.default ? (openBlock(), createElementBlock("div", _hoisted_2$D, [
@@ -1423,7 +1423,7 @@ function _sfc_render$5(_ctx, _cache) {
1423
1423
  createElementVNode("span", _hoisted_4$k, [
1424
1424
  renderSlot(_ctx.$slots, "left")
1425
1425
  ]),
1426
- createElementVNode("span", _hoisted_5$e, [
1426
+ createElementVNode("span", _hoisted_5$d, [
1427
1427
  renderSlot(_ctx.$slots, "right")
1428
1428
  ])
1429
1429
  ])) : createCommentVNode("", true)
@@ -1501,7 +1501,7 @@ const _hoisted_1$N = {
1501
1501
  const _hoisted_2$C = { key: 1 };
1502
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
- const _hoisted_5$d = {
1504
+ const _hoisted_5$c = {
1505
1505
  key: 2,
1506
1506
  class: "cl:flex-1 cl:lg:block cl:lg:flex-none"
1507
1507
  };
@@ -1582,7 +1582,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
1582
1582
  ]),
1583
1583
  _: 1
1584
1584
  }, 8, ["disabled"])) : createCommentVNode("", true),
1585
- _ctx.options.hideViewManager === false ? (openBlock(), createElementBlock("div", _hoisted_5$d, [
1585
+ _ctx.options.hideViewManager === false ? (openBlock(), createElementBlock("div", _hoisted_5$c, [
1586
1586
  renderSlot(_ctx.$slots, "view-manager")
1587
1587
  ])) : createCommentVNode("", true),
1588
1588
  unref(anyFilterableColumns)(_ctx.columns) || unref(anySortableColumns)(_ctx.options, _ctx.columns) ? (openBlock(), createElementBlock(Fragment, { key: 3 }, [
@@ -2611,7 +2611,7 @@ const _hoisted_1$K = ["colspan"];
2611
2611
  const _hoisted_2$z = ["colspan"];
2612
2612
  const _hoisted_3$n = { key: 2 };
2613
2613
  const _hoisted_4$h = ["colspan"];
2614
- const _hoisted_5$c = { class: "cl:flex cl:flex-wrap cl:justify-center cl:text-center cl:text-sm cl:w-full" };
2614
+ const _hoisted_5$b = { class: "cl:flex cl:flex-wrap cl:justify-center cl:text-center cl:text-sm cl:w-full" };
2615
2615
  const _hoisted_6$9 = { key: 0 };
2616
2616
  const _hoisted_7$7 = {
2617
2617
  key: 1,
@@ -2842,7 +2842,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
2842
2842
  createElementVNode("td", {
2843
2843
  colspan: _ctx.columns.length
2844
2844
  }, [
2845
- createElementVNode("div", _hoisted_5$c, [
2845
+ createElementVNode("div", _hoisted_5$b, [
2846
2846
  _ctx.$slots.noData && _ctx.request.filters.some((f) => f.filterValue !== "") === false ? (openBlock(), createElementBlock("div", _hoisted_6$9, [
2847
2847
  renderSlot(_ctx.$slots, "noData")
2848
2848
  ])) : (openBlock(), createElementBlock("strong", _hoisted_7$7, toDisplayString(unref(t2)("grid.noData")), 1)),
@@ -3102,7 +3102,7 @@ const _hoisted_1$I = {
3102
3102
  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" };
3103
3103
  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" };
3104
3104
  const _hoisted_4$f = ["inert"];
3105
- 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" };
3105
+ const _hoisted_5$a = { 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" };
3106
3106
  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" };
3107
3107
  const _hoisted_7$6 = { class: "cl:flex cl:flex-wrap cl:gap-x-4" };
3108
3108
  const _hoisted_8$5 = { class: "cl:flex cl:flex-col cl:lg:flex-row" };
@@ -3201,7 +3201,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
3201
3201
  }]),
3202
3202
  inert: _ctx.loading
3203
3203
  }, [
3204
- createElementVNode("div", _hoisted_5$b, [
3204
+ createElementVNode("div", _hoisted_5$a, [
3205
3205
  createElementVNode("div", _hoisted_6$8, [
3206
3206
  createElementVNode("div", _hoisted_7$6, [
3207
3207
  createElementVNode("div", _hoisted_8$5, [
@@ -3796,7 +3796,7 @@ const _hoisted_1$F = { class: "cl:gap-1 cl:grid cl:grid-cols-[auto_1fr_auto_auto
3796
3796
  const _hoisted_2$u = ["disabled"];
3797
3797
  const _hoisted_3$k = { class: "cl:max-w-max" };
3798
3798
  const _hoisted_4$e = { class: "cl:flex cl:flex-col cl:gap-1 cl:w-full" };
3799
- const _hoisted_5$a = ["min", "disabled", "required", "step", "max"];
3799
+ const _hoisted_5$9 = ["min", "disabled", "required", "step", "max"];
3800
3800
  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" };
3801
3801
  const _hoisted_7$5 = ["disabled"];
3802
3802
  const _hoisted_8$4 = ["disabled", "title"];
@@ -3875,7 +3875,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
3875
3875
  required: _ctx.required,
3876
3876
  step: 1 / Math.pow(10, _ctx.precision),
3877
3877
  max: _ctx.max
3878
- }), null, 16, _hoisted_5$a), [
3878
+ }), null, 16, _hoisted_5$9), [
3879
3879
  [
3880
3880
  vModelText,
3881
3881
  value.value,
@@ -5332,20 +5332,16 @@ const booleanListEntries = computed(() => [
5332
5332
  value: "false"
5333
5333
  }
5334
5334
  ]);
5335
- const _hoisted_1$z = ["inert"];
5336
- const _hoisted_2$o = {
5335
+ const _hoisted_1$z = {
5337
5336
  key: 1,
5338
5337
  class: "cl:w-full"
5339
5338
  };
5339
+ const _hoisted_2$o = ["inert"];
5340
5340
  const _hoisted_3$g = {
5341
- key: 2,
5342
- class: "cl:w-full"
5343
- };
5344
- const _hoisted_4$d = {
5345
5341
  key: 3,
5346
5342
  class: "cl:w-full"
5347
5343
  };
5348
- const _hoisted_5$9 = {
5344
+ const _hoisted_4$d = {
5349
5345
  key: 4,
5350
5346
  class: "cl:w-full"
5351
5347
  };
@@ -5679,8 +5675,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
5679
5675
  key: 0,
5680
5676
  class: normalizeClass(["cl:border cl:border-grey-2 cl:flex cl:relative cl:rounded-md", [
5681
5677
  _ctx.options.hideGridMobileView || isListColumn.value || _ctx.column.type === "boolean" || _ctx.column.type === "slot" && _ctx.column.slotType === "boolean" ? "cl:overflow-visible" : "cl:overflow-hidden cl:lg:overflow-visible!"
5682
- ]]),
5683
- inert: _ctx.loading
5678
+ ]])
5684
5679
  }, [
5685
5680
  _ctx.column.type === "boolean" || _ctx.column.type === "slot" && _ctx.column.slotType === "boolean" ? (openBlock(), createBlock(_sfc_main$J, {
5686
5681
  key: 0,
@@ -5689,6 +5684,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
5689
5684
  "is-grid-filter": true,
5690
5685
  class: "cl:bg-white cl:font-normal cl:min-h-0! cl:rounded-lg!",
5691
5686
  "model-value": booleanValueAsSelectItem.value,
5687
+ inert: _ctx.loading,
5692
5688
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => setFilter(null, ($event == null ? void 0 : $event.value) ?? ""))
5693
5689
  }, {
5694
5690
  default: withCtx(({ select, option: option2, index: index2, highlightIndex, isSelected }) => [
@@ -5705,17 +5701,22 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
5705
5701
  }, 1032, ["is-selected", "is-highlighted", "onSelect"])
5706
5702
  ]),
5707
5703
  _: 1
5708
- }, 8, ["id", "list", "model-value"])) : isDateColumn.value ? (openBlock(), createElementBlock("div", _hoisted_2$o, [
5704
+ }, 8, ["id", "list", "model-value", "inert"])) : isDateColumn.value ? (openBlock(), createElementBlock("div", _hoisted_1$z, [
5709
5705
  createVNode(_sfc_main$M, {
5710
5706
  id: `${unref(gridId)}-${_ctx.column.name}`,
5711
5707
  "model-value": currentDateFilterValue.value,
5712
5708
  "time-zone": _ctx.timeZone,
5713
5709
  type: _ctx.column.type === "slot" ? _ctx.column.slotType : _ctx.column.type,
5714
5710
  class: "cl:border-none cl:h-[2rem]! cl:lg:text-base! cl:mb-0 cl:pb-1 cl:text-xs cl:w-full readonly-filter",
5711
+ readonly: _ctx.loading,
5715
5712
  "popover-placement": "bottom-start",
5716
5713
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => setFilter(null, $event ?? ""))
5717
- }, null, 8, ["id", "model-value", "time-zone", "type"])
5718
- ])) : isDateRangeColumn.value ? (openBlock(), createElementBlock("div", _hoisted_3$g, [
5714
+ }, null, 8, ["id", "model-value", "time-zone", "type", "readonly"])
5715
+ ])) : isDateRangeColumn.value ? (openBlock(), createElementBlock("div", {
5716
+ key: 2,
5717
+ class: "cl:w-full",
5718
+ inert: _ctx.loading
5719
+ }, [
5719
5720
  createVNode(_sfc_main$L, {
5720
5721
  id: `${unref(gridId)}-${_ctx.column.name}`,
5721
5722
  "model-value": currentDateRangeFilterValue.value,
@@ -5726,13 +5727,14 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
5726
5727
  "popover-placement": "bottom-start",
5727
5728
  "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => setDateRangeFilter($event))
5728
5729
  }, null, 8, ["id", "model-value", "time-zone", "quick-date-scope"])
5729
- ])) : _ctx.column.type === "number" || _ctx.column.type === "slot" && _ctx.column.slotType === "number" ? (openBlock(), createElementBlock("div", _hoisted_4$d, [
5730
+ ], 8, _hoisted_2$o)) : _ctx.column.type === "number" || _ctx.column.type === "slot" && _ctx.column.slotType === "number" ? (openBlock(), createElementBlock("div", _hoisted_3$g, [
5730
5731
  createVNode(_sfc_main$U, {
5731
5732
  id: `${unref(gridId)}-${_ctx.column.name}`,
5732
5733
  "model-value": currentFilterValue.value === "" || isNaN(+currentFilterValue.value) ? null : +currentFilterValue.value,
5733
5734
  format: numericFormat.value,
5734
5735
  precision: _ctx.column.format === unref(NumberFormat).INTEGER ? 0 : unref(getMergedFormatOptions)(numericFormat.value, { locale: unref(locale2), additionalOptions: { maximumFractionDigits: _ctx.column.precision ?? 2 } }).maximumFractionDigits,
5735
5736
  class: "cl:border-none cl:font-normal cl:h-[2rem] cl:lg:text-base cl:mb-0 cl:text-xs cl:w-full readonly-filter",
5737
+ readonly: _ctx.loading,
5736
5738
  "show-arrows": false,
5737
5739
  "allow-empty": true,
5738
5740
  "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => $event !== null ? setNumberFilter(null, $event) : setFilter(null, ""))
@@ -5741,8 +5743,8 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
5741
5743
  createElementVNode("span", null, null, -1)
5742
5744
  ])),
5743
5745
  _: 1
5744
- }, 8, ["id", "model-value", "format", "precision"])
5745
- ])) : _ctx.column.type === "string" || _ctx.column.type === "slot" && _ctx.column.slotType === "string" ? (openBlock(), createElementBlock("div", _hoisted_5$9, [
5746
+ }, 8, ["id", "model-value", "format", "precision", "readonly"])
5747
+ ])) : _ctx.column.type === "string" || _ctx.column.type === "slot" && _ctx.column.slotType === "string" ? (openBlock(), createElementBlock("div", _hoisted_4$d, [
5746
5748
  createVNode(_sfc_main$18, {
5747
5749
  id: `${unref(gridId)}-${_ctx.column.name}`,
5748
5750
  modelValue: internalTextInputValue.value,
@@ -5751,13 +5753,14 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
5751
5753
  _cache[5] || (_cache[5] = (value) => setFilter(null, value))
5752
5754
  ],
5753
5755
  class: "cl:border-none cl:font-normal cl:h-[2rem] cl:lg:text-base cl:px-3 cl:text-xs readonly-filter",
5756
+ readonly: _ctx.loading,
5754
5757
  onKeySinglePress: handleKeySinglePress
5755
5758
  }, {
5756
5759
  default: withCtx(() => _cache[10] || (_cache[10] = [
5757
5760
  createElementVNode("span", null, null, -1)
5758
5761
  ])),
5759
5762
  _: 1
5760
- }, 8, ["id", "modelValue"])
5763
+ }, 8, ["id", "modelValue", "readonly"])
5761
5764
  ])) : isListColumn.value ? (openBlock(), createBlock(_sfc_main$J, {
5762
5765
  key: 5,
5763
5766
  id: `${unref(gridId)}-${_ctx.column.name}`,
@@ -5765,6 +5768,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
5765
5768
  "model-value": currentFilterValueAsSelectItem.value,
5766
5769
  class: "cl:bg-white cl:font-normal cl:max-h-52! cl:min-h-0! cl:rounded-lg!",
5767
5770
  "is-grid-filter": true,
5771
+ inert: _ctx.loading,
5768
5772
  "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => updateListColumnSelectItem($event))
5769
5773
  }, {
5770
5774
  default: withCtx(({ select, option: option2, index: index2, highlightIndex, isSelected }) => [
@@ -5784,7 +5788,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
5784
5788
  }, 1032, ["is-highlighted", "is-selected", "class", "onSelect"])
5785
5789
  ]),
5786
5790
  _: 1
5787
- }, 8, ["id", "list", "model-value"])) : createCommentVNode("", true),
5791
+ }, 8, ["id", "list", "model-value", "inert"])) : createCommentVNode("", true),
5788
5792
  !isDateRangeColumn.value ? (openBlock(), createBlock(_sfc_main$H, {
5789
5793
  key: 6,
5790
5794
  filter: currentFilter.value,
@@ -5795,11 +5799,11 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
5795
5799
  "dropdown-position": _ctx.filterDropdownPosition,
5796
5800
  onSelectionChanged: _cache[8] || (_cache[8] = ($event) => immediateRequestOverride.value = true)
5797
5801
  }, null, 8, ["filter", "loading", "column", "default-operation", "dropdown-position"])) : createCommentVNode("", true)
5798
- ], 10, _hoisted_1$z)) : createCommentVNode("", true);
5802
+ ], 2)) : createCommentVNode("", true);
5799
5803
  };
5800
5804
  }
5801
5805
  });
5802
- const clUiGridFilterInput = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-0147943d"]]);
5806
+ const clUiGridFilterInput = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-92e7b2c1"]]);
5803
5807
  const _hoisted_1$y = { key: 1 };
5804
5808
  const _sfc_main$F = /* @__PURE__ */ defineComponent({
5805
5809
  __name: "cl-ui-grid-filter",
@@ -6173,6 +6177,9 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
6173
6177
  set: (value) => emit("update:request", value)
6174
6178
  });
6175
6179
  function performSearch(value) {
6180
+ if (props.loading) {
6181
+ return;
6182
+ }
6176
6183
  debouncedSearch(false);
6177
6184
  if (value === "") {
6178
6185
  searchValue.value = value;
@@ -6199,7 +6206,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
6199
6206
  if (valueOrCancel !== false) {
6200
6207
  performSearch(valueOrCancel);
6201
6208
  }
6202
- }, 1e3);
6209
+ }, 2e3);
6203
6210
  const { t: t2 } = useI18n();
6204
6211
  const gridSearchInputRef = ref();
6205
6212
  __expose({
@@ -6223,7 +6230,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
6223
6230
  ],
6224
6231
  class: "cl:box-border cl:font-light cl:p-2 cl:pr-9 cl:text-sm",
6225
6232
  type: "search",
6226
- inert: _ctx.loading,
6233
+ readonly: _ctx.loading,
6227
6234
  placeholder: _ctx.columns.length > 4 ? unref(t2)("grid.search") : unref(t2)("grid.searchSpecific", { columns: _ctx.columns.map((c) => unref(t2)(c.caption)).join(", ") }),
6228
6235
  onKeypress: _cache[2] || (_cache[2] = withKeys(($event) => performSearch(searchValue.value), ["enter"]))
6229
6236
  }, {
@@ -6231,14 +6238,16 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
6231
6238
  createElementVNode("span", null, null, -1)
6232
6239
  ])),
6233
6240
  _: 1
6234
- }, 8, ["modelValue", "inert", "placeholder"])
6241
+ }, 8, ["modelValue", "readonly", "placeholder"])
6235
6242
  ]),
6236
6243
  searchValue.value ? (openBlock(), createBlock(_component_icon, {
6237
6244
  key: 0,
6238
- class: "cl:absolute cl:cursor-pointer cl:hover:text-link-light cl:lg:right-4 cl:right-1 cl:text-grey-4 cl:top-3 cl:z-10",
6245
+ class: normalizeClass(["cl:absolute cl:cursor-pointer cl:hover:text-link-light cl:lg:right-4 cl:right-1 cl:text-grey-4 cl:top-3 cl:z-10", {
6246
+ "cl:pointer-events-none": _ctx.loading
6247
+ }]),
6239
6248
  icon: "ph:x-bold",
6240
6249
  onClick: _cache[3] || (_cache[3] = withModifiers(($event) => performSearch(""), ["prevent"]))
6241
- })) : createCommentVNode("", true)
6250
+ }, null, 8, ["class"])) : createCommentVNode("", true)
6242
6251
  ])
6243
6252
  ]);
6244
6253
  };