cleek 2.6.83 → 2.6.85

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")
@@ -84122,6 +84129,7 @@ const _sfc_main$g = defineComponent$2({
84122
84129
  _sfc_main$q
84123
84130
  ]);
84124
84131
  return (_ctx, _cache) => {
84132
+ const _component_ck_icon = resolveComponent$2("ck-icon");
84125
84133
  return openBlock$2(), createElementBlock$2(Fragment$2, null, [
84126
84134
  _ctx.hasColumnsManager && columnsAreObj.value ? (openBlock$2(), createBlock$2(TableColumnsManager, {
84127
84135
  key: 0,
@@ -84176,7 +84184,26 @@ const _sfc_main$g = defineComponent$2({
84176
84184
  createElementVNode("tbody", null, [
84177
84185
  renderSlot$2(_ctx.$slots, "default", {}, void 0, true),
84178
84186
  renderSlot$2(_ctx.$slots, "desktop", {}, void 0, true),
84179
- _ctx.listLength === 0 ? (openBlock$2(), createBlock$2(CkTr, { key: 0 }, {
84187
+ _ctx.isLoading ? (openBlock$2(), createBlock$2(CkTr, { key: 0 }, {
84188
+ default: withCtx$2(() => [
84189
+ createVNode$2(CkTd, {
84190
+ class: "no-result-text",
84191
+ colspan: "100%",
84192
+ align: "center"
84193
+ }, {
84194
+ default: withCtx$2(() => [
84195
+ createVNode$2(_component_ck_icon, {
84196
+ class: "mr-2",
84197
+ icon: "spinner",
84198
+ spin: ""
84199
+ }),
84200
+ createTextVNode$2(toDisplayString$1(_ctx.loadingText || defaultLoadingText.value) + "...", 1)
84201
+ ]),
84202
+ _: 1
84203
+ })
84204
+ ]),
84205
+ _: 1
84206
+ })) : _ctx.isLoading !== false && _ctx.listLength === 0 ? (openBlock$2(), createBlock$2(CkTr, { key: 1 }, {
84180
84207
  default: withCtx$2(() => [
84181
84208
  createVNode$2(CkTd, {
84182
84209
  class: "no-result-text",
@@ -84215,7 +84242,7 @@ const _sfc_main$g = defineComponent$2({
84215
84242
  };
84216
84243
  }
84217
84244
  });
84218
- var ckTable = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-7664ddc6"]]);
84245
+ var ckTable = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-7557ea12"]]);
84219
84246
  var ckPagination_vue_vue_type_style_index_0_lang = "";
84220
84247
  const _sfc_main$f = defineComponent$2({
84221
84248
  __name: "ck-pagination",