@citruslime/ui 4.0.2-beta.12 → 4.0.2-beta.13

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$i = {
370
+ const _hoisted_5$h = {
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$i, [
405
+ hasErrors.value ? (openBlock(), createElementBlock("div", _hoisted_5$h, [
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$E = {
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$h = { key: 6 };
823
+ const _hoisted_5$g = { 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$h, [
1011
+ _ctx.errorMessage === "" && _ctx.results !== null ? (openBlock(), createElementBlock("div", _hoisted_5$g, [
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$Q = { class: "cl:flex cl:rounded-lg" };
1029
1029
  const _hoisted_2$D = { 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$g = ["disabled"];
1032
+ const _hoisted_5$f = ["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$g)) : (openBlock(), createElementBlock("div", {
1291
+ ], 10, _hoisted_5$f)) : (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$f = { class: "cl:float-right" };
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$P, [
1419
1419
  _ctx.$slots.default ? (openBlock(), createElementBlock("div", _hoisted_2$C, [
@@ -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$f, [
1426
+ createElementVNode("span", _hoisted_5$e, [
1427
1427
  renderSlot(_ctx.$slots, "right")
1428
1428
  ])
1429
1429
  ])) : createCommentVNode("", true)
@@ -1432,13 +1432,13 @@ function _sfc_render$5(_ctx, _cache) {
1432
1432
  const clUiFooter = /* @__PURE__ */ _export_sfc(_sfc_main$12, [["render", _sfc_render$5]]);
1433
1433
  const gridDateFormatLocaleOverride = Symbol();
1434
1434
  const _sfc_main$11 = {};
1435
- const _hoisted_1$O = { class: "cl:animate-pulse cl:bg-off-white cl:h-[33px] cl:px-20 cl:rounded-md" };
1435
+ const _hoisted_1$O = { class: "cl:h-[33px] cl:px-20 cl:rounded-md skeleton-loader-background" };
1436
1436
  function _sfc_render$4(_ctx, _cache) {
1437
1437
  return openBlock(), createElementBlock("div", _hoisted_1$O);
1438
1438
  }
1439
1439
  const clUiSkeletonButton = /* @__PURE__ */ _export_sfc(_sfc_main$11, [["render", _sfc_render$4]]);
1440
1440
  const _sfc_main$10 = {};
1441
- const _hoisted_1$N = { class: "cl:animate-pulse cl:bg-off-white cl:h-8 cl:rounded-md" };
1441
+ const _hoisted_1$N = { class: "cl:h-8 cl:rounded-md skeleton-loader-background" };
1442
1442
  function _sfc_render$3(_ctx, _cache) {
1443
1443
  return openBlock(), createElementBlock("div", _hoisted_1$N);
1444
1444
  }
@@ -1462,7 +1462,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
1462
1462
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.words, (word) => {
1463
1463
  return openBlock(), createElementBlock("span", {
1464
1464
  key: word,
1465
- class: "cl:animate-pulse cl:bg-off-white cl:rounded-full cl:w-16"
1465
+ class: "cl:rounded-full cl:w-16 skeleton-loader-background"
1466
1466
  }, [
1467
1467
  renderSlot(_ctx.$slots, "default", {}, () => [
1468
1468
  _cache[0] || (_cache[0] = createTextVNode("   "))
@@ -1501,7 +1501,7 @@ const _hoisted_1$M = {
1501
1501
  const _hoisted_2$B = { 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$e = {
1504
+ const _hoisted_5$d = {
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$e, [
1585
+ _ctx.options.hideViewManager === false ? (openBlock(), createElementBlock("div", _hoisted_5$d, [
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 }, [
@@ -2595,7 +2595,7 @@ const _hoisted_1$J = ["colspan"];
2595
2595
  const _hoisted_2$y = ["colspan"];
2596
2596
  const _hoisted_3$n = { key: 2 };
2597
2597
  const _hoisted_4$h = ["colspan"];
2598
- const _hoisted_5$d = { class: "cl:flex cl:flex-wrap cl:justify-center cl:text-center cl:text-sm cl:w-full" };
2598
+ const _hoisted_5$c = { class: "cl:flex cl:flex-wrap cl:justify-center cl:text-center cl:text-sm cl:w-full" };
2599
2599
  const _hoisted_6$9 = { key: 0 };
2600
2600
  const _hoisted_7$7 = {
2601
2601
  key: 1,
@@ -2756,11 +2756,12 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
2756
2756
  return openBlock(), createElementBlock("tr", { key: row }, [
2757
2757
  createElementVNode("td", {
2758
2758
  colspan: _ctx.columns.length,
2759
- class: normalizeClass(
2759
+ class: normalizeClass([
2760
+ "cl:h-7",
2760
2761
  {
2761
- "cl:border-t cl:border-off-white": row % 2 === 0
2762
+ "cl:bg-white/60 skeleton-loader-background": row % 2 === 0
2762
2763
  }
2763
- )
2764
+ ])
2764
2765
  }, "   ", 10, _hoisted_1$J)
2765
2766
  ]);
2766
2767
  }), 128)) : createCommentVNode("", true),
@@ -2825,7 +2826,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
2825
2826
  createElementVNode("td", {
2826
2827
  colspan: _ctx.columns.length
2827
2828
  }, [
2828
- createElementVNode("div", _hoisted_5$d, [
2829
+ createElementVNode("div", _hoisted_5$c, [
2829
2830
  _ctx.$slots.noData && _ctx.request.filters.some((f) => f.filterValue !== "") === false ? (openBlock(), createElementBlock("div", _hoisted_6$9, [
2830
2831
  renderSlot(_ctx.$slots, "noData")
2831
2832
  ])) : (openBlock(), createElementBlock("strong", _hoisted_7$7, toDisplayString(unref(t2)("grid.noData")), 1)),
@@ -3085,7 +3086,7 @@ const _hoisted_1$H = {
3085
3086
  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" };
3086
3087
  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" };
3087
3088
  const _hoisted_4$f = ["inert"];
3088
- const _hoisted_5$c = { 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" };
3089
+ 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" };
3089
3090
  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" };
3090
3091
  const _hoisted_7$6 = { class: "cl:flex cl:flex-wrap cl:gap-x-4" };
3091
3092
  const _hoisted_8$5 = { class: "cl:flex cl:flex-col cl:lg:flex-row" };
@@ -3180,7 +3181,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
3180
3181
  }]),
3181
3182
  inert: _ctx.loading
3182
3183
  }, [
3183
- createElementVNode("div", _hoisted_5$c, [
3184
+ createElementVNode("div", _hoisted_5$b, [
3184
3185
  createElementVNode("div", _hoisted_6$8, [
3185
3186
  createElementVNode("div", _hoisted_7$6, [
3186
3187
  createElementVNode("div", _hoisted_8$5, [
@@ -3967,7 +3968,7 @@ const _hoisted_1$E = { class: "cl:gap-1 cl:grid cl:grid-cols-[auto_1fr_auto_auto
3967
3968
  const _hoisted_2$t = ["disabled"];
3968
3969
  const _hoisted_3$k = { class: "cl:max-w-max" };
3969
3970
  const _hoisted_4$e = { class: "cl:flex cl:flex-col cl:gap-1 cl:w-full" };
3970
- const _hoisted_5$b = ["min", "disabled", "required", "step", "max"];
3971
+ const _hoisted_5$a = ["min", "disabled", "required", "step", "max"];
3971
3972
  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" };
3972
3973
  const _hoisted_7$5 = ["disabled"];
3973
3974
  const _hoisted_8$4 = ["disabled", "title"];
@@ -4046,7 +4047,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
4046
4047
  required: _ctx.required,
4047
4048
  step: 1 / Math.pow(10, _ctx.precision),
4048
4049
  max: _ctx.max
4049
- }), null, 16, _hoisted_5$b), [
4050
+ }), null, 16, _hoisted_5$a), [
4050
4051
  [
4051
4052
  vModelText,
4052
4053
  value.value,
@@ -5153,7 +5154,7 @@ const _hoisted_4$d = {
5153
5154
  key: 3,
5154
5155
  class: "cl:w-full"
5155
5156
  };
5156
- const _hoisted_5$a = {
5157
+ const _hoisted_5$9 = {
5157
5158
  key: 4,
5158
5159
  class: "cl:w-full"
5159
5160
  };
@@ -5549,7 +5550,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
5549
5550
  ])),
5550
5551
  _: 1
5551
5552
  }, 8, ["id", "model-value", "format", "precision"])
5552
- ])) : _ctx.column.type === "string" || _ctx.column.type === "slot" && _ctx.column.slotType === "string" ? (openBlock(), createElementBlock("div", _hoisted_5$a, [
5553
+ ])) : _ctx.column.type === "string" || _ctx.column.type === "slot" && _ctx.column.slotType === "string" ? (openBlock(), createElementBlock("div", _hoisted_5$9, [
5553
5554
  createVNode(_sfc_main$18, {
5554
5555
  id: `${unref(gridId)}-${_ctx.column.name}`,
5555
5556
  modelValue: internalTextInputValue.value,
@@ -5665,10 +5666,9 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
5665
5666
  }
5666
5667
  });
5667
5668
  const _hoisted_1$x = ["onClick"];
5668
- const _hoisted_2$n = { key: 1 };
5669
- const _hoisted_3$f = ["onClick"];
5670
- const _hoisted_4$c = { class: "cl:font-normal cl:mr-1" };
5671
- const _hoisted_5$9 = ["id"];
5669
+ const _hoisted_2$n = ["onClick"];
5670
+ const _hoisted_3$f = { class: "cl:font-normal cl:mr-1" };
5671
+ const _hoisted_4$c = ["id"];
5672
5672
  const _sfc_main$E = /* @__PURE__ */ defineComponent({
5673
5673
  __name: "cl-ui-grid-header",
5674
5674
  props: {
@@ -5835,21 +5835,21 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
5835
5835
  onClick: ($event) => unref(isSortable$1)(_ctx.options, column) && _ctx.loading === false ? setSort(column.field) : () => {
5836
5836
  }
5837
5837
  }, [
5838
- _ctx.initialLoad ? (openBlock(), createBlock(unref(_sfc_main$$), { key: 0 })) : (openBlock(), createElementBlock("div", _hoisted_2$n, [
5838
+ createElementVNode("div", null, [
5839
5839
  createTextVNode(toDisplayString(unref(t2)(column.caption)) + " ", 1),
5840
5840
  withDirectives(createVNode(unref(Icon), {
5841
5841
  class: "cl:inline-block",
5842
5842
  icon: "ph:caret-up"
5843
5843
  }, null, 512), [
5844
- [vShow, isActiveSort(column, true)]
5844
+ [vShow, !_ctx.initialLoad && isActiveSort(column, true)]
5845
5845
  ]),
5846
5846
  withDirectives(createVNode(unref(Icon), {
5847
5847
  class: "cl:inline-block",
5848
5848
  icon: "ph:caret-down"
5849
5849
  }, null, 512), [
5850
- [vShow, isActiveSort(column, false)]
5850
+ [vShow, !_ctx.initialLoad && isActiveSort(column, false)]
5851
5851
  ])
5852
- ]))
5852
+ ])
5853
5853
  ], 10, _hoisted_1$x);
5854
5854
  }), 128))
5855
5855
  ], 2),
@@ -5893,7 +5893,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
5893
5893
  }]),
5894
5894
  onClick: ($event) => _ctx.loading === false ? setSort(column.field) : void 0
5895
5895
  }, [
5896
- createElementVNode("span", _hoisted_4$c, toDisplayString(unref(t2)("grid.sortBy")), 1),
5896
+ createElementVNode("span", _hoisted_3$f, toDisplayString(unref(t2)("grid.sortBy")), 1),
5897
5897
  isActiveSort(column, true) ? (openBlock(), createBlock(unref(Icon), {
5898
5898
  key: 0,
5899
5899
  class: "cl:cursor-pointer cl:inline-block",
@@ -5907,7 +5907,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
5907
5907
  class: "cl:cursor-pointer cl:inline-block",
5908
5908
  icon: "ph:minus"
5909
5909
  }))
5910
- ], 10, _hoisted_3$f)) : createCommentVNode("", true),
5910
+ ], 10, _hoisted_2$n)) : createCommentVNode("", true),
5911
5911
  createVNode(_sfc_main$F, {
5912
5912
  class: "cl:col-span-4 cl:min-w-[100px]",
5913
5913
  loading: _ctx.loading,
@@ -5940,7 +5940,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
5940
5940
  class: normalizeClass(["cl:-right-1 cl:absolute cl:cursor-ew-resize cl:h-[34px] cl:top-[calc(50%-17px)] cl:w-2 cl:z-10", {
5941
5941
  "cl:right-0 cl:w-1": columnIndex === visibleColumns.value.length - 1
5942
5942
  }])
5943
- }, null, 10, _hoisted_5$9)) : createCommentVNode("", true)
5943
+ }, null, 10, _hoisted_4$c)) : createCommentVNode("", true)
5944
5944
  ], 2);
5945
5945
  }), 128))
5946
5946
  ], 2)
@@ -5965,7 +5965,8 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
5965
5965
  __name: "cl-ui-grid-search",
5966
5966
  props: /* @__PURE__ */ mergeModels({
5967
5967
  columns: {},
5968
- request: {}
5968
+ request: {},
5969
+ loading: { type: Boolean }
5969
5970
  }, {
5970
5971
  "searchValue": { required: true },
5971
5972
  "searchValueModifiers": {}
@@ -6030,6 +6031,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
6030
6031
  ],
6031
6032
  class: "cl:box-border cl:font-light cl:p-2 cl:pr-9 cl:text-sm",
6032
6033
  type: "search",
6034
+ inert: _ctx.loading,
6033
6035
  placeholder: _ctx.columns.length > 4 ? unref(t2)("grid.search") : unref(t2)("grid.searchSpecific", { columns: _ctx.columns.map((c) => unref(t2)(c.caption)).join(", ") }),
6034
6036
  onKeypress: _cache[2] || (_cache[2] = withKeys(($event) => performSearch(searchValue.value), ["enter"]))
6035
6037
  }, {
@@ -6037,7 +6039,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
6037
6039
  createElementVNode("span", null, null, -1)
6038
6040
  ])),
6039
6041
  _: 1
6040
- }, 8, ["modelValue", "placeholder"])
6042
+ }, 8, ["modelValue", "inert", "placeholder"])
6041
6043
  ]),
6042
6044
  searchValue.value ? (openBlock(), createBlock(_component_icon, {
6043
6045
  key: 0,
@@ -8618,13 +8620,14 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
8618
8620
  "onUpdate:searchValue": _cache[0] || (_cache[0] = ($event) => searchValue.value = $event),
8619
8621
  request: currentRequest.value,
8620
8622
  "onUpdate:request": _cache[1] || (_cache[1] = ($event) => currentRequest.value = $event),
8623
+ loading: _ctx.loading,
8621
8624
  columns: searchableColumns.value
8622
8625
  }, {
8623
8626
  search: withCtx((scope) => [
8624
8627
  renderSlot(_ctx.$slots, "search", normalizeProps(guardReactiveProps(scope)))
8625
8628
  ]),
8626
8629
  _: 3
8627
- }, 8, ["search-value", "request", "columns"])) : createCommentVNode("", true),
8630
+ }, 8, ["search-value", "request", "loading", "columns"])) : createCommentVNode("", true),
8628
8631
  createVNode(Transition, { name: "fade" }, {
8629
8632
  default: withCtx(() => [
8630
8633
  _ctx.loading && isInitialLoad.value === false ? (openBlock(), createElementBlock("div", _hoisted_2$k, [