cleek 1.7.7 → 1.7.11

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2021 Ulisses Ferreira
3
+ Copyright (c) 2022 Quantic Onion
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/dist/cleek.es.js CHANGED
@@ -11607,8 +11607,6 @@ const __default__$4 = {
11607
11607
  this.$emit("change", event);
11608
11608
  },
11609
11609
  onClick(event) {
11610
- console.log("autoSelect", this.autoSelect);
11611
- console.log("event", event);
11612
11610
  if (this.autoSelect)
11613
11611
  event.target.select();
11614
11612
  this.$emit("click", event);
@@ -11659,7 +11657,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
11659
11657
  };
11660
11658
  }
11661
11659
  }));
11662
- var ckInputText = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-310c71a8"]]);
11660
+ var ckInputText = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-aee99f3c"]]);
11663
11661
  var ckPopup_vue_vue_type_style_index_0_lang = "";
11664
11662
  const _hoisted_1$b = {
11665
11663
  key: 0,
@@ -12273,6 +12271,7 @@ var ckTableTitle = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", render$4
12273
12271
  var ckTable__headerItems_vue_vue_type_style_index_0_scoped_true_lang = "";
12274
12272
  const _hoisted_1$4 = { class: "ck-table__header-items" };
12275
12273
  const __default__$2 = {
12274
+ name: "CkTableHeaderItems",
12276
12275
  props: {
12277
12276
  search: { type: String, default: void 0 },
12278
12277
  hideRefreshBtn: { type: Boolean, required: true },
@@ -12298,13 +12297,12 @@ const __default__$2 = {
12298
12297
  return (this.currentPage - 1) * this.itemsPerPage + 1;
12299
12298
  },
12300
12299
  itemsPerPageEnd() {
12300
+ console.log("this.currentPage", this.currentPage);
12301
+ console.log("this.itemsPerPage", this.itemsPerPage);
12301
12302
  const value2 = this.currentPage * this.itemsPerPage;
12302
12303
  if (value2 > this.listLength)
12303
12304
  return this.listLength;
12304
12305
  return value2;
12305
- },
12306
- itemsPerPageStart() {
12307
- return (this.currentPage - 1) * this.itemsPerPage + 1;
12308
12306
  }
12309
12307
  }
12310
12308
  };
@@ -12335,13 +12333,14 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
12335
12333
  };
12336
12334
  }
12337
12335
  }));
12338
- var TableHeaderItems = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-fb391b2a"]]);
12336
+ var TableHeaderItems = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-5bc62f88"]]);
12339
12337
  var ckTable__pagination_vue_vue_type_style_index_0_scoped_true_lang = "";
12340
12338
  const _hoisted_1$3 = { class: "ck-table__pagination" };
12341
12339
  const _hoisted_2$1 = ["onClick"];
12342
12340
  const _hoisted_3$1 = ["onClick"];
12343
12341
  const itemsShowed = 5;
12344
12342
  const __default__$1 = {
12343
+ name: "CkTablePagination",
12345
12344
  props: {
12346
12345
  currentPage: { type: Number, required: true },
12347
12346
  align: { type: String, required: true },
@@ -12369,9 +12368,6 @@ const __default__$1 = {
12369
12368
  hasArrowRight() {
12370
12369
  if (!this.listRight.length)
12371
12370
  return false;
12372
- console.log(this.listRight.length - 1);
12373
- console.log(this.listRight[this.listRight.length - 1]);
12374
- console.log("this.totalPages", this.totalPages);
12375
12371
  return this.listRight[this.listRight.length - 1] !== this.totalPages;
12376
12372
  },
12377
12373
  listLeft() {
@@ -12401,7 +12397,6 @@ const __default__$1 = {
12401
12397
  },
12402
12398
  methods: {
12403
12399
  updateCurrentPage(val) {
12404
- console.log("val", val);
12405
12400
  this.$emit("update:currentPage", val);
12406
12401
  this.$emit("refreshList", val);
12407
12402
  },
@@ -12414,7 +12409,6 @@ const __default__$1 = {
12414
12409
  if (val === this.currentPage)
12415
12410
  return;
12416
12411
  this.updateCurrentPage(val);
12417
- console.log("val", val);
12418
12412
  }
12419
12413
  }
12420
12414
  };
@@ -12466,7 +12460,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
12466
12460
  };
12467
12461
  }
12468
12462
  }));
12469
- var TablePagination = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-b7f9d2da"]]);
12463
+ var TablePagination = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-383a2c93"]]);
12470
12464
  var ckTable_vue_vue_type_style_index_0_scoped_true_lang = "";
12471
12465
  const _hoisted_1$2 = { class: "ck-table" };
12472
12466
  const _hoisted_2 = {
@@ -12479,6 +12473,7 @@ const _hoisted_5 = { key: 1 };
12479
12473
  const defaultPaginationAlign = "center";
12480
12474
  const defaultItemsPerPage = 40;
12481
12475
  const __default__ = {
12476
+ name: "CkTable",
12482
12477
  props: {
12483
12478
  columns: { type: Array, required: true, default: () => [] },
12484
12479
  currentPage: { type: Number, default: 0 },
@@ -12505,6 +12500,7 @@ const __default__ = {
12505
12500
  return this.currentPage;
12506
12501
  },
12507
12502
  set(val) {
12503
+ console.log("val", val);
12508
12504
  this.$emit("update:currentPage", val);
12509
12505
  }
12510
12506
  }
@@ -12512,6 +12508,10 @@ const __default__ = {
12512
12508
  methods: {
12513
12509
  refreshList(pageChange = false) {
12514
12510
  this.$emit("refreshList", pageChange);
12511
+ },
12512
+ testCurrentPage(cosito) {
12513
+ console.log("cosito", cosito);
12514
+ this.$emit("update:currentPage", cosito);
12515
12515
  }
12516
12516
  }
12517
12517
  };
@@ -12525,7 +12525,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
12525
12525
  key: 0,
12526
12526
  search: _ctx.searchLocal,
12527
12527
  "onUpdate:search": _cache[0] || (_cache[0] = ($event) => isRef(searchLocal) ? searchLocal.value = $event : null),
12528
- currentPage: _ctx.currentPageLocal,
12528
+ currentPage: __props.currentPage,
12529
12529
  itemsPerPage: __props.itemsPerPage,
12530
12530
  listLength: __props.listLength,
12531
12531
  hideRefreshBtn: __props.hideRefreshBtn,
@@ -12551,12 +12551,12 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
12551
12551
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
12552
12552
  ]),
12553
12553
  _ctx.$slots.footer ? (openBlock(), createElementBlock("tfoot", _hoisted_5, [
12554
- renderSlot(_ctx.$slots, "footeer", {}, void 0, true)
12554
+ renderSlot(_ctx.$slots, "footer", {}, void 0, true)
12555
12555
  ])) : createCommentVNode("", true)
12556
12556
  ]),
12557
12557
  createVNode(TablePagination, {
12558
- currentPage: _ctx.currentPageLocal,
12559
- "onUpdate:currentPage": _cache[2] || (_cache[2] = ($event) => isRef(currentPageLocal) ? currentPageLocal.value = $event : null),
12558
+ currentPage: __props.currentPage,
12559
+ "onUpdate:currentPage": _cache[2] || (_cache[2] = ($event) => _ctx.testCurrentPage($event)),
12560
12560
  itemsPerPage: __props.itemsPerPage,
12561
12561
  listLength: __props.listLength,
12562
12562
  align: __props.paginationAlign,
@@ -12566,7 +12566,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
12566
12566
  };
12567
12567
  }
12568
12568
  }));
12569
- var ckTable = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-7f2e2c40"]]);
12569
+ var ckTable = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-29612da0"]]);
12570
12570
  function render$3(_ctx, _cache, $props, $setup, $data, $options) {
12571
12571
  return openBlock(), createElementBlock("td", {
12572
12572
  class: normalizeClass(["ck-td", $options.computedTdClass])