cleek 2.6.83 → 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",