cleek 1.7.8 → 1.7.12
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 +1 -1
- package/dist/cleek.es.js +35 -25
- package/dist/cleek.umd.js +6 -6
- package/dist/style.css +1 -1
- package/package.json +2 -5
package/LICENSE
CHANGED
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-
|
|
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,
|
|
@@ -11672,7 +11670,7 @@ const _hoisted_5$1 = {
|
|
|
11672
11670
|
key: 0,
|
|
11673
11671
|
class: "ck-popup__slot-footer"
|
|
11674
11672
|
};
|
|
11675
|
-
const _hoisted_6 = {
|
|
11673
|
+
const _hoisted_6$1 = {
|
|
11676
11674
|
key: 0,
|
|
11677
11675
|
class: "ck-popup-slot-footer__confirm-buttons"
|
|
11678
11676
|
};
|
|
@@ -11739,7 +11737,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
11739
11737
|
]),
|
|
11740
11738
|
_ctx.$slots.footer || __props.confirmButtons ? (openBlock(), createElementBlock("div", _hoisted_5$1, [
|
|
11741
11739
|
renderSlot(_ctx.$slots, "footer"),
|
|
11742
|
-
__props.confirmButtons ? (openBlock(), createElementBlock("div", _hoisted_6, [
|
|
11740
|
+
__props.confirmButtons ? (openBlock(), createElementBlock("div", _hoisted_6$1, [
|
|
11743
11741
|
createVNode(ckButton, {
|
|
11744
11742
|
class: "cancel-button",
|
|
11745
11743
|
onClick: _cache[1] || (_cache[1] = ($event) => _ctx.onCancel()),
|
|
@@ -12208,7 +12206,7 @@ function render$6(_ctx, _cache) {
|
|
|
12208
12206
|
}
|
|
12209
12207
|
var ckTr_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
12210
12208
|
const _sfc_main$8 = {};
|
|
12211
|
-
var ckTr = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", render$6], ["__scopeId", "data-v-
|
|
12209
|
+
var ckTr = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", render$6], ["__scopeId", "data-v-1dd12190"]]);
|
|
12212
12210
|
const _hoisted_1$5 = { class: "ck-th" };
|
|
12213
12211
|
function render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
12214
12212
|
return openBlock(), createElementBlock("th", _hoisted_1$5, [
|
|
@@ -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-
|
|
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 },
|
|
@@ -12416,7 +12415,7 @@ const __default__$1 = {
|
|
|
12416
12415
|
const _sfc_main$4 = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__$1), {
|
|
12417
12416
|
setup(__props) {
|
|
12418
12417
|
return (_ctx, _cache) => {
|
|
12419
|
-
return __props.currentPage ? (openBlock(), createElementBlock("div", {
|
|
12418
|
+
return __props.currentPage && _ctx.totalPages > 1 ? (openBlock(), createElementBlock("div", {
|
|
12420
12419
|
key: 0,
|
|
12421
12420
|
class: normalizeClass(["ck-table__pagination-container", `pagination-align--${__props.align}`])
|
|
12422
12421
|
}, [
|
|
@@ -12461,19 +12460,24 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
12461
12460
|
};
|
|
12462
12461
|
}
|
|
12463
12462
|
}));
|
|
12464
|
-
var TablePagination = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-
|
|
12463
|
+
var TablePagination = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-1338efe2"]]);
|
|
12465
12464
|
var ckTable_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
12466
12465
|
const _hoisted_1$2 = { class: "ck-table" };
|
|
12467
12466
|
const _hoisted_2 = {
|
|
12468
12467
|
key: 0,
|
|
12469
12468
|
class: "ck-table__header"
|
|
12470
12469
|
};
|
|
12471
|
-
const _hoisted_3 = {
|
|
12472
|
-
|
|
12473
|
-
|
|
12470
|
+
const _hoisted_3 = {
|
|
12471
|
+
key: 0,
|
|
12472
|
+
class: "ck-table__header--slot"
|
|
12473
|
+
};
|
|
12474
|
+
const _hoisted_4 = { class: "ck-table__table" };
|
|
12475
|
+
const _hoisted_5 = { key: 0 };
|
|
12476
|
+
const _hoisted_6 = { key: 1 };
|
|
12474
12477
|
const defaultPaginationAlign = "center";
|
|
12475
12478
|
const defaultItemsPerPage = 40;
|
|
12476
12479
|
const __default__ = {
|
|
12480
|
+
name: "CkTable",
|
|
12477
12481
|
props: {
|
|
12478
12482
|
columns: { type: Array, required: true, default: () => [] },
|
|
12479
12483
|
currentPage: { type: Number, default: 0 },
|
|
@@ -12508,6 +12512,10 @@ const __default__ = {
|
|
|
12508
12512
|
methods: {
|
|
12509
12513
|
refreshList(pageChange = false) {
|
|
12510
12514
|
this.$emit("refreshList", pageChange);
|
|
12515
|
+
},
|
|
12516
|
+
testCurrentPage(cosito) {
|
|
12517
|
+
console.log("cosito", cosito);
|
|
12518
|
+
this.$emit("update:currentPage", cosito);
|
|
12511
12519
|
}
|
|
12512
12520
|
}
|
|
12513
12521
|
};
|
|
@@ -12516,9 +12524,11 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
12516
12524
|
return (_ctx, _cache) => {
|
|
12517
12525
|
return openBlock(), createElementBlock("div", _hoisted_1$2, [
|
|
12518
12526
|
_ctx.$slots.header || !__props.hideHeaderActions ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
12519
|
-
|
|
12527
|
+
_ctx.$slots.header ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
|
12528
|
+
renderSlot(_ctx.$slots, "header", {}, void 0, true)
|
|
12529
|
+
])) : createCommentVNode("", true),
|
|
12520
12530
|
!__props.hideHeaderActions ? (openBlock(), createBlock(TableHeaderItems, {
|
|
12521
|
-
key:
|
|
12531
|
+
key: 1,
|
|
12522
12532
|
search: _ctx.searchLocal,
|
|
12523
12533
|
"onUpdate:search": _cache[0] || (_cache[0] = ($event) => isRef(searchLocal) ? searchLocal.value = $event : null),
|
|
12524
12534
|
currentPage: __props.currentPage,
|
|
@@ -12529,8 +12539,8 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
12529
12539
|
onRefreshList: _cache[1] || (_cache[1] = ($event) => _ctx.refreshList($event))
|
|
12530
12540
|
}, null, 8, ["search", "currentPage", "itemsPerPage", "listLength", "hideRefreshBtn", "hideItemsPerPage"])) : createCommentVNode("", true)
|
|
12531
12541
|
])) : createCommentVNode("", true),
|
|
12532
|
-
createElementVNode("table",
|
|
12533
|
-
__props.columns.length ? (openBlock(), createElementBlock("thead",
|
|
12542
|
+
createElementVNode("table", _hoisted_4, [
|
|
12543
|
+
__props.columns.length ? (openBlock(), createElementBlock("thead", _hoisted_5, [
|
|
12534
12544
|
createVNode(ckTr, null, {
|
|
12535
12545
|
default: withCtx(() => [
|
|
12536
12546
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.columns, (col) => {
|
|
@@ -12546,13 +12556,13 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
12546
12556
|
createElementVNode("tbody", null, [
|
|
12547
12557
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
12548
12558
|
]),
|
|
12549
|
-
_ctx.$slots.footer ? (openBlock(), createElementBlock("tfoot",
|
|
12550
|
-
renderSlot(_ctx.$slots, "
|
|
12559
|
+
_ctx.$slots.footer ? (openBlock(), createElementBlock("tfoot", _hoisted_6, [
|
|
12560
|
+
renderSlot(_ctx.$slots, "footer", {}, void 0, true)
|
|
12551
12561
|
])) : createCommentVNode("", true)
|
|
12552
12562
|
]),
|
|
12553
12563
|
createVNode(TablePagination, {
|
|
12554
|
-
currentPage:
|
|
12555
|
-
"onUpdate:currentPage": _cache[2] || (_cache[2] = ($event) =>
|
|
12564
|
+
currentPage: __props.currentPage,
|
|
12565
|
+
"onUpdate:currentPage": _cache[2] || (_cache[2] = ($event) => _ctx.testCurrentPage($event)),
|
|
12556
12566
|
itemsPerPage: __props.itemsPerPage,
|
|
12557
12567
|
listLength: __props.listLength,
|
|
12558
12568
|
align: __props.paginationAlign,
|
|
@@ -12562,7 +12572,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
12562
12572
|
};
|
|
12563
12573
|
}
|
|
12564
12574
|
}));
|
|
12565
|
-
var ckTable = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-
|
|
12575
|
+
var ckTable = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-321fae5a"]]);
|
|
12566
12576
|
function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
12567
12577
|
return openBlock(), createElementBlock("td", {
|
|
12568
12578
|
class: normalizeClass(["ck-td", $options.computedTdClass])
|
|
@@ -12618,7 +12628,7 @@ const _sfc_main$2 = {
|
|
|
12618
12628
|
}
|
|
12619
12629
|
}
|
|
12620
12630
|
};
|
|
12621
|
-
var ckTd = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", render$3], ["__scopeId", "data-v-
|
|
12631
|
+
var ckTd = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", render$3], ["__scopeId", "data-v-5f7dcb09"]]);
|
|
12622
12632
|
const _hoisted_1$1 = { class: "ck-textarea" };
|
|
12623
12633
|
function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
12624
12634
|
const _component_ck_label = resolveComponent("ck-label");
|