cleek 2.7.14 → 2.7.15

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
@@ -83257,6 +83257,11 @@ const _sfc_main$m = defineComponent$2({
83257
83257
  list.push(`version--${props.version}`);
83258
83258
  return list;
83259
83259
  });
83260
+ function clickRefreshListBtn() {
83261
+ if (props.isLoading)
83262
+ return;
83263
+ emits("refreshList", true);
83264
+ }
83260
83265
  function checkRefresh() {
83261
83266
  const search = searchLocal.value;
83262
83267
  setTimeout(() => {
@@ -83273,12 +83278,13 @@ const _sfc_main$m = defineComponent$2({
83273
83278
  refreshBtnIsVisible.value ? (openBlock$2(), createBlock$2(CkButton, {
83274
83279
  key: 0,
83275
83280
  type: "flat",
83276
- icon: "rotate-right",
83277
83281
  title: "Recargar lista",
83278
83282
  backgroundColor: "transparent",
83279
83283
  layout: _ctx.layout,
83280
- onClick: _cache[0] || (_cache[0] = ($event) => emits("refreshList", true))
83281
- }, null, 8, ["layout"])) : createCommentVNode$2("", true),
83284
+ icon: _ctx.isLoading ? "spinner" : "rotate-right",
83285
+ isLoading: !!_ctx.isLoading,
83286
+ onClick: _cache[0] || (_cache[0] = ($event) => clickRefreshListBtn())
83287
+ }, null, 8, ["layout", "icon", "isLoading"])) : createCommentVNode$2("", true),
83282
83288
  _ctx.isLoading && _ctx.listLength === 0 || itemsPerPageIsVisible.value ? (openBlock$2(), createElementBlock$2("div", {
83283
83289
  key: 1,
83284
83290
  class: normalizeClass$2(["items-per-page", { "ck-component__group--left": isSearchVisible.value }])
@@ -83318,7 +83324,7 @@ const _sfc_main$m = defineComponent$2({
83318
83324
  };
83319
83325
  }
83320
83326
  });
83321
- var TableHeaderItems = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-1af5a21d"]]);
83327
+ var TableHeaderItems = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-64173368"]]);
83322
83328
  var ckTable__pagination_vue_vue_type_style_index_0_scoped_true_lang = "";
83323
83329
  const _withScopeId$4 = (n2) => (pushScopeId$2("data-v-27c654d0"), n2 = n2(), popScopeId$2(), n2);
83324
83330
  const _hoisted_1$h = { class: "ck-table__pagination" };
@@ -84220,10 +84226,10 @@ const _sfc_main$h = defineComponent$2({
84220
84226
  const defaultLoadingText = computed$3(() => {
84221
84227
  var _a;
84222
84228
  if (((_a = cleekOptions2.value) == null ? void 0 : _a.lang) === "es")
84223
- return "Cargando";
84224
- return "Loading";
84229
+ return "Cargando...";
84230
+ return "Loading...";
84225
84231
  });
84226
- const defaultNoResultsText = computed$3(() => {
84232
+ computed$3(() => {
84227
84233
  var _a;
84228
84234
  if (((_a = cleekOptions2.value) == null ? void 0 : _a.lang) === "es")
84229
84235
  return "No se encontraron resultados";
@@ -84353,9 +84359,10 @@ const _sfc_main$h = defineComponent$2({
84353
84359
  hideItemsPerPage: _ctx.hideItemsPerPage,
84354
84360
  layout: realLayout.value,
84355
84361
  version: realTableVersion.value,
84362
+ isLoading: _ctx.isLoading,
84356
84363
  onRefreshList: _cache[2] || (_cache[2] = ($event) => refreshList($event)),
84357
84364
  onOpenColumnsManager: _cache[3] || (_cache[3] = ($event) => openColumnsManager())
84358
- }, null, 8, ["search", "hideHeaderActions", "currentPage", "hasColumnsManager", "itemsPerPage", "listLength", "showRefreshBtn", "hideItemsPerPage", "layout", "version"]),
84365
+ }, null, 8, ["search", "hideHeaderActions", "currentPage", "hasColumnsManager", "itemsPerPage", "listLength", "showRefreshBtn", "hideItemsPerPage", "layout", "version", "isLoading"]),
84359
84366
  _ctx.$slots.header ? (openBlock$2(), createElementBlock$2("div", _hoisted_3$7, [
84360
84367
  renderSlot$2(_ctx.$slots, "header", {}, void 0, true)
84361
84368
  ])) : createCommentVNode$2("", true)
@@ -84385,7 +84392,7 @@ const _sfc_main$h = defineComponent$2({
84385
84392
  createElementVNode("tbody", null, [
84386
84393
  renderSlot$2(_ctx.$slots, "default", {}, void 0, true),
84387
84394
  renderSlot$2(_ctx.$slots, "desktop", {}, void 0, true),
84388
- _ctx.isLoading ? (openBlock$2(), createBlock$2(CkTr, { key: 0 }, {
84395
+ _ctx.isLoading && !_ctx.listLength ? (openBlock$2(), createBlock$2(CkTr, { key: 0 }, {
84389
84396
  default: withCtx$2(() => [
84390
84397
  createVNode$2(CkTd, {
84391
84398
  class: "no-result-text",
@@ -84398,21 +84405,7 @@ const _sfc_main$h = defineComponent$2({
84398
84405
  icon: "spinner",
84399
84406
  spin: ""
84400
84407
  }),
84401
- createTextVNode$2(" " + toDisplayString$1(_ctx.loadingText || defaultLoadingText.value) + "... ", 1)
84402
- ]),
84403
- _: 1
84404
- })
84405
- ]),
84406
- _: 1
84407
- })) : _ctx.isLoading !== false && _ctx.listLength === 0 ? (openBlock$2(), createBlock$2(CkTr, { key: 1 }, {
84408
- default: withCtx$2(() => [
84409
- createVNode$2(CkTd, {
84410
- class: "no-result-text",
84411
- colspan: "100%",
84412
- align: "center"
84413
- }, {
84414
- default: withCtx$2(() => [
84415
- createTextVNode$2(toDisplayString$1(_ctx.noResultsText || defaultNoResultsText.value), 1)
84408
+ createTextVNode$2(" " + toDisplayString$1(_ctx.loadingText || defaultLoadingText.value), 1)
84416
84409
  ]),
84417
84410
  _: 1
84418
84411
  })
@@ -84443,7 +84436,7 @@ const _sfc_main$h = defineComponent$2({
84443
84436
  };
84444
84437
  }
84445
84438
  });
84446
- var ckTable = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-d9e82628"]]);
84439
+ var ckTable = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-09bd0c16"]]);
84447
84440
  var ckPagination_vue_vue_type_style_index_0_lang = "";
84448
84441
  const _sfc_main$g = defineComponent$2({
84449
84442
  __name: "ck-pagination",