cleek 2.3.32 → 2.3.35

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
@@ -16992,7 +16992,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
16992
16992
  };
16993
16993
  }
16994
16994
  });
16995
- var ckInput = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-7b390746"]]);
16995
+ var ckInput = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-2f390047"]]);
16996
16996
  var ckTable__headerItems_vue_vue_type_style_index_0_scoped_true_lang = "";
16997
16997
  const _hoisted_1$d = { class: "ck-table__header-items" };
16998
16998
  const _sfc_main$d = /* @__PURE__ */ defineComponent({
@@ -17003,6 +17003,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
17003
17003
  hideItemsPerPage: { type: Boolean, required: true },
17004
17004
  currentPage: { type: Number, required: true },
17005
17005
  itemsPerPage: { type: Number, required: true },
17006
+ hideHeaderActions: { type: Boolean, required: true },
17006
17007
  listLength: { type: Number, default: 0 }
17007
17008
  },
17008
17009
  emits: ["update:search", "refreshList", "openColumnsManager"],
@@ -17054,39 +17055,41 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
17054
17055
  }
17055
17056
  return (_ctx, _cache) => {
17056
17057
  return openBlock(), createElementBlock("div", _hoisted_1$d, [
17057
- unref$1(refreshBtnIsVisible) ? (openBlock(), createBlock(ckButton, {
17058
- key: 0,
17059
- type: "flat",
17060
- icon: "rotate-right",
17061
- title: "Recargar lista",
17062
- onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("refreshList", false))
17063
- })) : createCommentVNode("", true),
17064
- unref$1(itemsPerPageIsVisible) ? (openBlock(), createElementBlock("div", {
17065
- key: 1,
17066
- class: normalizeClass(["items-per-page", { "ck-component__group--left": !unref$1(hideSearch) }])
17067
- }, toDisplayString(unref$1(itemsPerPageStart)) + " - " + toDisplayString(unref$1(itemsPerPageEnd)) + " de " + toDisplayString(__props.listLength), 3)) : createCommentVNode("", true),
17068
- !unref$1(hideSearch) ? (openBlock(), createBlock(ckInput, {
17069
- key: 2,
17070
- modelValue: unref$1(searchLocal),
17071
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef$1(searchLocal) ? searchLocal.value = $event : null),
17072
- icon: "magnifying-glass",
17073
- placeholder: "Buscar...",
17074
- group: unref$1(searchGroupValue),
17075
- onInput: _cache[2] || (_cache[2] = ($event) => checkRefresh())
17076
- }, null, 8, ["modelValue", "group"])) : createCommentVNode("", true),
17077
- __props.hasColumnsManager ? (openBlock(), createBlock(ckButton, {
17078
- key: 3,
17079
- icon: "columns",
17080
- type: "filled",
17081
- title: "Administrador de columnas",
17082
- group: unref$1(itemsPerPageIsVisible) || !unref$1(hideSearch) ? "right" : "",
17083
- onClick: _cache[3] || (_cache[3] = ($event) => _ctx.$emit("openColumnsManager"))
17084
- }, null, 8, ["group"])) : createCommentVNode("", true)
17058
+ !__props.hideHeaderActions ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
17059
+ unref$1(refreshBtnIsVisible) ? (openBlock(), createBlock(ckButton, {
17060
+ key: 0,
17061
+ type: "flat",
17062
+ icon: "rotate-right",
17063
+ title: "Recargar lista",
17064
+ onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("refreshList", false))
17065
+ })) : createCommentVNode("", true),
17066
+ unref$1(itemsPerPageIsVisible) ? (openBlock(), createElementBlock("div", {
17067
+ key: 1,
17068
+ class: normalizeClass(["items-per-page", { "ck-component__group--left": !unref$1(hideSearch) }])
17069
+ }, toDisplayString(unref$1(itemsPerPageStart)) + " - " + toDisplayString(unref$1(itemsPerPageEnd)) + " de " + toDisplayString(__props.listLength), 3)) : createCommentVNode("", true),
17070
+ !unref$1(hideSearch) ? (openBlock(), createBlock(ckInput, {
17071
+ key: 2,
17072
+ modelValue: unref$1(searchLocal),
17073
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef$1(searchLocal) ? searchLocal.value = $event : null),
17074
+ icon: "magnifying-glass",
17075
+ placeholder: "Buscar...",
17076
+ group: unref$1(searchGroupValue),
17077
+ onInput: _cache[2] || (_cache[2] = ($event) => checkRefresh())
17078
+ }, null, 8, ["modelValue", "group"])) : createCommentVNode("", true),
17079
+ __props.hasColumnsManager ? (openBlock(), createBlock(ckButton, {
17080
+ key: 3,
17081
+ icon: "columns",
17082
+ type: "filled",
17083
+ title: "Administrador de columnas",
17084
+ group: unref$1(itemsPerPageIsVisible) || !unref$1(hideSearch) ? "right" : "",
17085
+ onClick: _cache[3] || (_cache[3] = ($event) => _ctx.$emit("openColumnsManager"))
17086
+ }, null, 8, ["group"])) : createCommentVNode("", true)
17087
+ ], 64)) : createCommentVNode("", true)
17085
17088
  ]);
17086
17089
  };
17087
17090
  }
17088
17091
  });
17089
- var TableHeaderItems = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-e948424e"]]);
17092
+ var TableHeaderItems = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-ad4db5f6"]]);
17090
17093
  var ckTable__pagination_vue_vue_type_style_index_0_scoped_true_lang = "";
17091
17094
  const _hoisted_1$c = { class: "ck-table__pagination" };
17092
17095
  const _hoisted_2$7 = ["onClick"];
@@ -18627,21 +18630,19 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
18627
18630
  }, null, 8, ["modelValue", "columnsArray", "columns"])) : createCommentVNode("", true),
18628
18631
  createElementVNode("div", _hoisted_1$8, [
18629
18632
  _ctx.$slots.header || !__props.hideHeaderActions ? (openBlock(), createElementBlock("div", _hoisted_2$3, [
18630
- createElementVNode("div", null, [
18631
- !__props.hideHeaderActions ? (openBlock(), createBlock(TableHeaderItems, {
18632
- key: 0,
18633
- search: unref$1(searchLocal),
18634
- "onUpdate:search": _cache[1] || (_cache[1] = ($event) => isRef$1(searchLocal) ? searchLocal.value = $event : null),
18635
- currentPage: __props.currentPage,
18636
- hasColumnsManager: __props.hasColumnsManager,
18637
- itemsPerPage: __props.itemsPerPage,
18638
- listLength: __props.listLength,
18639
- showRefreshBtn: __props.showRefreshBtn,
18640
- hideItemsPerPage: __props.hideItemsPerPage,
18641
- onRefreshList: _cache[2] || (_cache[2] = ($event) => refreshList($event)),
18642
- onOpenColumnsManager: _cache[3] || (_cache[3] = ($event) => openColumnsManager())
18643
- }, null, 8, ["search", "currentPage", "hasColumnsManager", "itemsPerPage", "listLength", "showRefreshBtn", "hideItemsPerPage"])) : createCommentVNode("", true)
18644
- ]),
18633
+ createVNode(TableHeaderItems, {
18634
+ search: unref$1(searchLocal),
18635
+ "onUpdate:search": _cache[1] || (_cache[1] = ($event) => isRef$1(searchLocal) ? searchLocal.value = $event : null),
18636
+ hideHeaderActions: __props.hideHeaderActions,
18637
+ currentPage: __props.currentPage,
18638
+ hasColumnsManager: __props.hasColumnsManager,
18639
+ itemsPerPage: __props.itemsPerPage,
18640
+ listLength: __props.listLength,
18641
+ showRefreshBtn: __props.showRefreshBtn,
18642
+ hideItemsPerPage: __props.hideItemsPerPage,
18643
+ onRefreshList: _cache[2] || (_cache[2] = ($event) => refreshList($event)),
18644
+ onOpenColumnsManager: _cache[3] || (_cache[3] = ($event) => openColumnsManager())
18645
+ }, null, 8, ["search", "hideHeaderActions", "currentPage", "hasColumnsManager", "itemsPerPage", "listLength", "showRefreshBtn", "hideItemsPerPage"]),
18645
18646
  _ctx.$slots.header ? (openBlock(), createElementBlock("div", _hoisted_3$2, [
18646
18647
  renderSlot(_ctx.$slots, "header", {}, void 0, true)
18647
18648
  ])) : createCommentVNode("", true)
@@ -18702,7 +18703,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
18702
18703
  };
18703
18704
  }
18704
18705
  });
18705
- var ckTable = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-e047ea3a"]]);
18706
+ var ckTable = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-6545e800"]]);
18706
18707
  var ckChip_vue_vue_type_style_index_0_scoped_true_lang = "";
18707
18708
  const _hoisted_1$7 = ["color"];
18708
18709
  const _sfc_main$7 = /* @__PURE__ */ defineComponent({