cleek 2.6.82 → 2.6.84

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.
package/dist/cleek.es.js CHANGED
@@ -83983,6 +83983,7 @@ const _sfc_main$g = defineComponent$2({
83983
83983
  listLength: {},
83984
83984
  paginationAlign: {},
83985
83985
  search: {},
83986
+ isLoading: {},
83986
83987
  hideHeaderActions: { type: Boolean },
83987
83988
  showRefreshBtn: { type: Boolean },
83988
83989
  hideItemsPerPage: { type: Boolean },
@@ -84007,6 +84008,12 @@ const _sfc_main$g = defineComponent$2({
84007
84008
  const isPopupActive = ref$1({
84008
84009
  columnsManager: false
84009
84010
  });
84011
+ const defaultLoadingText = computed$3(() => {
84012
+ var _a;
84013
+ if (((_a = cleekOptions2.value) == null ? void 0 : _a.lang) === "es")
84014
+ return "Cargando";
84015
+ return "Loading";
84016
+ });
84010
84017
  const defaultNoResultsText = computed$3(() => {
84011
84018
  var _a;
84012
84019
  if (((_a = cleekOptions2.value) == null ? void 0 : _a.lang) === "es")
@@ -84176,7 +84183,21 @@ const _sfc_main$g = defineComponent$2({
84176
84183
  createElementVNode("tbody", null, [
84177
84184
  renderSlot$2(_ctx.$slots, "default", {}, void 0, true),
84178
84185
  renderSlot$2(_ctx.$slots, "desktop", {}, void 0, true),
84179
- _ctx.listLength === 0 ? (openBlock$2(), createBlock$2(CkTr, { key: 0 }, {
84186
+ _ctx.isLoading ? (openBlock$2(), createBlock$2(CkTr, { key: 0 }, {
84187
+ default: withCtx$2(() => [
84188
+ createVNode$2(CkTd, {
84189
+ class: "no-result-text",
84190
+ colspan: "100%",
84191
+ align: "center"
84192
+ }, {
84193
+ default: withCtx$2(() => [
84194
+ createTextVNode$2(toDisplayString$1(_ctx.loadingText || defaultLoadingText.value), 1)
84195
+ ]),
84196
+ _: 1
84197
+ })
84198
+ ]),
84199
+ _: 1
84200
+ })) : _ctx.isLoading !== false && _ctx.listLength === 0 ? (openBlock$2(), createBlock$2(CkTr, { key: 1 }, {
84180
84201
  default: withCtx$2(() => [
84181
84202
  createVNode$2(CkTd, {
84182
84203
  class: "no-result-text",
@@ -84215,7 +84236,7 @@ const _sfc_main$g = defineComponent$2({
84215
84236
  };
84216
84237
  }
84217
84238
  });
84218
- var ckTable = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-7664ddc6"]]);
84239
+ var ckTable = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-5e2d3406"]]);
84219
84240
  var ckPagination_vue_vue_type_style_index_0_lang = "";
84220
84241
  const _sfc_main$f = defineComponent$2({
84221
84242
  __name: "ck-pagination",
@@ -89912,7 +89933,9 @@ const _sfc_main$7 = defineComponent$2({
89912
89933
  modelValue: {},
89913
89934
  prop: {},
89914
89935
  reduceValueProp: {},
89936
+ reduceValueMethod: {},
89915
89937
  reduceNameProp: {},
89938
+ reduceNameMethod: {},
89916
89939
  autofocus: { type: Boolean },
89917
89940
  notReduce: { type: Boolean },
89918
89941
  notReduceValue: { type: Boolean },
@@ -90084,6 +90107,8 @@ const _sfc_main$7 = defineComponent$2({
90084
90107
  return props.reduceValueFunction(option);
90085
90108
  if (props.notReduceValue || props.notReduce)
90086
90109
  return option;
90110
+ if (props.reduceValueMethod)
90111
+ return option[props.reduceValueMethod]();
90087
90112
  return option[props.reduceValueProp || defaultReduceValueProp];
90088
90113
  }
90089
90114
  function getOptionName(option) {
@@ -90091,6 +90116,8 @@ const _sfc_main$7 = defineComponent$2({
90091
90116
  return props.reduceNameFunction(option);
90092
90117
  if (props.notReduce)
90093
90118
  return option;
90119
+ if (props.reduceNameMethod)
90120
+ return option[props.reduceNameMethod]();
90094
90121
  const reduceNameProp = props.reduceNameProp || defaultReduceNameProp;
90095
90122
  return option[props.prop || reduceNameProp];
90096
90123
  }
@@ -90166,7 +90193,7 @@ const _sfc_main$7 = defineComponent$2({
90166
90193
  };
90167
90194
  }
90168
90195
  });
90169
- var ckSelect = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-794689d4"]]);
90196
+ var ckSelect = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-3aca9814"]]);
90170
90197
  var ckSidebar_vue_vue_type_style_index_0_scoped_true_lang = "";
90171
90198
  const _hoisted_1$6 = {
90172
90199
  key: 0,