cleek 2.1.1 → 2.1.2

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
@@ -13635,7 +13635,7 @@ const _hoisted_3 = {
13635
13635
  key: 1,
13636
13636
  class: "ck-table__header--slot"
13637
13637
  };
13638
- const _hoisted_4 = { class: "ck-table__table" };
13638
+ const _hoisted_4 = { class: "ck-table__table-container" };
13639
13639
  const _hoisted_5 = { key: 0 };
13640
13640
  const _hoisted_6 = { key: 1 };
13641
13641
  const _sfc_main$3 = /* @__PURE__ */ defineComponent({
@@ -13649,7 +13649,8 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
13649
13649
  search: { type: String, default: void 0 },
13650
13650
  hideHeaderActions: { type: Boolean, default: false },
13651
13651
  hideRefreshBtn: { type: Boolean, default: false },
13652
- hideItemsPerPage: { type: Boolean, default: false }
13652
+ hideItemsPerPage: { type: Boolean, default: false },
13653
+ notFullWidth: { type: Boolean, default: false }
13653
13654
  },
13654
13655
  emits: ["refreshList", "update:search", "update:currentPage"],
13655
13656
  setup(__props, { emit: emits }) {
@@ -13727,28 +13728,33 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
13727
13728
  renderSlot(_ctx.$slots, "header", {}, void 0, true)
13728
13729
  ])) : createCommentVNode("", true)
13729
13730
  ])) : createCommentVNode("", true),
13730
- createElementVNode("table", _hoisted_4, [
13731
- unref$1(filteredColumnsList).length ? (openBlock(), createElementBlock("thead", _hoisted_5, [
13732
- createVNode(ckTr, null, {
13733
- default: withCtx(() => [
13734
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref$1(filteredColumnsList), (col) => {
13735
- return openBlock(), createBlock(_sfc_main$7, {
13736
- key: col.title,
13737
- col
13738
- }, null, 8, ["col"]);
13739
- }), 128))
13740
- ]),
13741
- _: 1
13742
- })
13743
- ])) : createCommentVNode("", true),
13744
- createElementVNode("tbody", null, [
13745
- renderSlot(_ctx.$slots, "default", {}, void 0, true)
13746
- ]),
13747
- _ctx.$slots.footer ? (openBlock(), createElementBlock("tfoot", _hoisted_6, [
13748
- renderSlot(_ctx.$slots, "footer", {}, void 0, true)
13749
- ])) : createCommentVNode("", true)
13731
+ createElementVNode("div", _hoisted_4, [
13732
+ createElementVNode("table", {
13733
+ class: normalizeClass(["ck-table__table", { "not-full-width": __props.notFullWidth }])
13734
+ }, [
13735
+ unref$1(filteredColumnsList).length ? (openBlock(), createElementBlock("thead", _hoisted_5, [
13736
+ createVNode(ckTr, null, {
13737
+ default: withCtx(() => [
13738
+ (openBlock(true), createElementBlock(Fragment, null, renderList(unref$1(filteredColumnsList), (col) => {
13739
+ return openBlock(), createBlock(_sfc_main$7, {
13740
+ key: col.title,
13741
+ col
13742
+ }, null, 8, ["col"]);
13743
+ }), 128))
13744
+ ]),
13745
+ _: 1
13746
+ })
13747
+ ])) : createCommentVNode("", true),
13748
+ createElementVNode("tbody", null, [
13749
+ renderSlot(_ctx.$slots, "default", {}, void 0, true)
13750
+ ]),
13751
+ _ctx.$slots.footer ? (openBlock(), createElementBlock("tfoot", _hoisted_6, [
13752
+ renderSlot(_ctx.$slots, "footer", {}, void 0, true)
13753
+ ])) : createCommentVNode("", true)
13754
+ ], 2)
13750
13755
  ]),
13751
13756
  createVNode(TablePagination, {
13757
+ class: "ck-table__pagination",
13752
13758
  currentPage: unref$1(currentPageLocal),
13753
13759
  "onUpdate:currentPage": _cache[4] || (_cache[4] = ($event) => isRef$1(currentPageLocal) ? currentPageLocal.value = $event : null),
13754
13760
  itemsPerPage: __props.itemsPerPage,
@@ -13761,12 +13767,12 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
13761
13767
  };
13762
13768
  }
13763
13769
  });
13764
- var ckTable = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-4abe8990"]]);
13770
+ var ckTable = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-a5722810"]]);
13765
13771
  var ckTd_vue_vue_type_style_index_0_scoped_true_lang = "";
13766
13772
  const _sfc_main$2 = /* @__PURE__ */ defineComponent({
13767
13773
  props: {
13768
13774
  col: { type: Object, default: void 0 },
13769
- wrap: { type: Boolean, default: false },
13775
+ nowrap: { type: Boolean, default: false },
13770
13776
  block: { type: Boolean, default: false },
13771
13777
  autoWidth: { type: Boolean, default: false },
13772
13778
  align: { type: String, default: void 0, validator: validators.align },
@@ -13798,7 +13804,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
13798
13804
  if (props.block)
13799
13805
  list.push("block");
13800
13806
  if (props.block)
13801
- list.push("wrap-text");
13807
+ list.push("no-wrap-text");
13802
13808
  return list;
13803
13809
  });
13804
13810
  const computedStyle = computed$2(() => {
@@ -13835,7 +13841,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
13835
13841
  };
13836
13842
  }
13837
13843
  });
13838
- var ckTd = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-c34b91ca"]]);
13844
+ var ckTd = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-47b8a441"]]);
13839
13845
  var ckTextarea_vue_vue_type_style_index_0_scoped_true_lang = "";
13840
13846
  const _hoisted_1$1 = { class: "ck-textarea" };
13841
13847
  const _sfc_main$1 = /* @__PURE__ */ defineComponent({