cleek 1.7.12 → 1.8.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
@@ -11665,25 +11665,31 @@ const _hoisted_1$b = {
11665
11665
  };
11666
11666
  const _hoisted_2$6 = /* @__PURE__ */ createElementVNode("div", { class: "blackout" }, null, -1);
11667
11667
  const _hoisted_3$5 = { class: "ck-popup__slot-header" };
11668
- const _hoisted_4$3 = { class: "ck-popup__slot-body" };
11669
- const _hoisted_5$1 = {
11668
+ const _hoisted_4$3 = {
11670
11669
  key: 0,
11671
- class: "ck-popup__slot-footer"
11670
+ class: "ck-popup__title"
11672
11671
  };
11672
+ const _hoisted_5$1 = { class: "ck-popup__slot-body" };
11673
11673
  const _hoisted_6$1 = {
11674
+ key: 0,
11675
+ class: "ck-popup__slot-footer"
11676
+ };
11677
+ const _hoisted_7 = {
11674
11678
  key: 0,
11675
11679
  class: "ck-popup-slot-footer__confirm-buttons"
11676
11680
  };
11677
- const _hoisted_7 = /* @__PURE__ */ createTextVNode("Cancelar");
11678
- const _hoisted_8 = /* @__PURE__ */ createTextVNode("Aceptar");
11681
+ const _hoisted_8 = /* @__PURE__ */ createTextVNode("Cancelar");
11682
+ const _hoisted_9 = /* @__PURE__ */ createTextVNode("Aceptar");
11679
11683
  const __default__$3 = {
11680
11684
  props: {
11681
11685
  modelValue: { type: Boolean },
11686
+ title: { type: String, default: void 0 },
11682
11687
  confirmButtons: { type: Boolean, default: false },
11683
11688
  notCloseBtn: { type: Boolean, default: false },
11684
- notCloseByBg: { type: Boolean, default: false }
11689
+ notCloseByBg: { type: Boolean, default: false },
11690
+ preventCloseOnCancel: { type: Boolean, default: false }
11685
11691
  },
11686
- emits: ["update:modelValue", "cancel", "confirm"],
11692
+ emits: ["update:modelValue", "cancel", "accept"],
11687
11693
  computed: {
11688
11694
  value: {
11689
11695
  get() {
@@ -11697,10 +11703,11 @@ const __default__$3 = {
11697
11703
  methods: {
11698
11704
  onCancel() {
11699
11705
  this.$emit("cancel");
11700
- this.value = false;
11706
+ if (!this.preventCloseOnCancel)
11707
+ this.value = false;
11701
11708
  },
11702
11709
  onAccept() {
11703
- this.$emit("confirm");
11710
+ this.$emit("accept");
11704
11711
  },
11705
11712
  onBgClick() {
11706
11713
  if (this.notCloseByBg)
@@ -11724,27 +11731,28 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
11724
11731
  }, ["stop"]))
11725
11732
  }, [
11726
11733
  createElementVNode("div", _hoisted_3$5, [
11734
+ __props.title ? (openBlock(), createElementBlock("h3", _hoisted_4$3, toDisplayString(__props.title), 1)) : createCommentVNode("", true),
11727
11735
  renderSlot(_ctx.$slots, "header", { class: "ml-3" }),
11728
11736
  !__props.notCloseBtn ? (openBlock(), createBlock(ckIcon, {
11729
- key: 0,
11737
+ key: 1,
11730
11738
  class: "mr-3 close",
11731
11739
  icon: "times",
11732
11740
  onClick: _cache[0] || (_cache[0] = ($event) => _ctx.value = false)
11733
11741
  })) : createCommentVNode("", true)
11734
11742
  ]),
11735
- createElementVNode("div", _hoisted_4$3, [
11736
- renderSlot(_ctx.$slots, "body")
11743
+ createElementVNode("div", _hoisted_5$1, [
11744
+ renderSlot(_ctx.$slots, "default")
11737
11745
  ]),
11738
- _ctx.$slots.footer || __props.confirmButtons ? (openBlock(), createElementBlock("div", _hoisted_5$1, [
11746
+ _ctx.$slots.footer || __props.confirmButtons ? (openBlock(), createElementBlock("div", _hoisted_6$1, [
11739
11747
  renderSlot(_ctx.$slots, "footer"),
11740
- __props.confirmButtons ? (openBlock(), createElementBlock("div", _hoisted_6$1, [
11748
+ __props.confirmButtons ? (openBlock(), createElementBlock("div", _hoisted_7, [
11741
11749
  createVNode(ckButton, {
11742
11750
  class: "cancel-button",
11743
11751
  onClick: _cache[1] || (_cache[1] = ($event) => _ctx.onCancel()),
11744
11752
  color: "danger"
11745
11753
  }, {
11746
11754
  default: withCtx(() => [
11747
- _hoisted_7
11755
+ _hoisted_8
11748
11756
  ]),
11749
11757
  _: 1
11750
11758
  }),
@@ -11752,7 +11760,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
11752
11760
  onClick: _cache[2] || (_cache[2] = ($event) => _ctx.onAccept())
11753
11761
  }, {
11754
11762
  default: withCtx(() => [
11755
- _hoisted_8
11763
+ _hoisted_9
11756
11764
  ]),
11757
11765
  _: 1
11758
11766
  })
@@ -12468,7 +12476,7 @@ const _hoisted_2 = {
12468
12476
  class: "ck-table__header"
12469
12477
  };
12470
12478
  const _hoisted_3 = {
12471
- key: 0,
12479
+ key: 1,
12472
12480
  class: "ck-table__header--slot"
12473
12481
  };
12474
12482
  const _hoisted_4 = { class: "ck-table__table" };
@@ -12524,11 +12532,8 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
12524
12532
  return (_ctx, _cache) => {
12525
12533
  return openBlock(), createElementBlock("div", _hoisted_1$2, [
12526
12534
  _ctx.$slots.header || !__props.hideHeaderActions ? (openBlock(), createElementBlock("div", _hoisted_2, [
12527
- _ctx.$slots.header ? (openBlock(), createElementBlock("div", _hoisted_3, [
12528
- renderSlot(_ctx.$slots, "header", {}, void 0, true)
12529
- ])) : createCommentVNode("", true),
12530
12535
  !__props.hideHeaderActions ? (openBlock(), createBlock(TableHeaderItems, {
12531
- key: 1,
12536
+ key: 0,
12532
12537
  search: _ctx.searchLocal,
12533
12538
  "onUpdate:search": _cache[0] || (_cache[0] = ($event) => isRef(searchLocal) ? searchLocal.value = $event : null),
12534
12539
  currentPage: __props.currentPage,
@@ -12537,7 +12542,10 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
12537
12542
  hideRefreshBtn: __props.hideRefreshBtn,
12538
12543
  hideItemsPerPage: __props.hideItemsPerPage,
12539
12544
  onRefreshList: _cache[1] || (_cache[1] = ($event) => _ctx.refreshList($event))
12540
- }, null, 8, ["search", "currentPage", "itemsPerPage", "listLength", "hideRefreshBtn", "hideItemsPerPage"])) : createCommentVNode("", true)
12545
+ }, null, 8, ["search", "currentPage", "itemsPerPage", "listLength", "hideRefreshBtn", "hideItemsPerPage"])) : createCommentVNode("", true),
12546
+ _ctx.$slots.header ? (openBlock(), createElementBlock("div", _hoisted_3, [
12547
+ renderSlot(_ctx.$slots, "header", {}, void 0, true)
12548
+ ])) : createCommentVNode("", true)
12541
12549
  ])) : createCommentVNode("", true),
12542
12550
  createElementVNode("table", _hoisted_4, [
12543
12551
  __props.columns.length ? (openBlock(), createElementBlock("thead", _hoisted_5, [
@@ -12572,7 +12580,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
12572
12580
  };
12573
12581
  }
12574
12582
  }));
12575
- var ckTable = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-321fae5a"]]);
12583
+ var ckTable = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-98ca4d56"]]);
12576
12584
  function render$3(_ctx, _cache, $props, $setup, $data, $options) {
12577
12585
  return openBlock(), createElementBlock("td", {
12578
12586
  class: normalizeClass(["ck-td", $options.computedTdClass])
@@ -12628,7 +12636,7 @@ const _sfc_main$2 = {
12628
12636
  }
12629
12637
  }
12630
12638
  };
12631
- var ckTd = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", render$3], ["__scopeId", "data-v-5f7dcb09"]]);
12639
+ var ckTd = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", render$3], ["__scopeId", "data-v-1d7f9b49"]]);
12632
12640
  const _hoisted_1$1 = { class: "ck-textarea" };
12633
12641
  function render$2(_ctx, _cache, $props, $setup, $data, $options) {
12634
12642
  const _component_ck_label = resolveComponent("ck-label");
@@ -12653,7 +12661,7 @@ var ckTextarea_vue_vue_type_style_index_0_scoped_true_lang = "";
12653
12661
  const _sfc_main$1 = {
12654
12662
  name: "CkTextarea",
12655
12663
  props: {
12656
- modelValue: { type: String, required: true },
12664
+ modelValue: {},
12657
12665
  label: { type: String, default: "" },
12658
12666
  labelAlign: { type: String, default: "" }
12659
12667
  },
@@ -12669,7 +12677,7 @@ const _sfc_main$1 = {
12669
12677
  }
12670
12678
  }
12671
12679
  };
12672
- var ckTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", render$2], ["__scopeId", "data-v-112af958"]]);
12680
+ var ckTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", render$2], ["__scopeId", "data-v-54574068"]]);
12673
12681
  var top = "top";
12674
12682
  var bottom = "bottom";
12675
12683
  var right = "right";