cleek 2.1.6 → 2.1.10
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
|
@@ -12374,12 +12374,8 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
12374
12374
|
});
|
|
12375
12375
|
const computedClass = computed$2(() => {
|
|
12376
12376
|
const classList2 = [];
|
|
12377
|
-
|
|
12378
|
-
|
|
12379
|
-
size = "m";
|
|
12380
|
-
}
|
|
12381
|
-
if (size)
|
|
12382
|
-
classList2.push(`ck-img__size--${size}`);
|
|
12377
|
+
if (props.size)
|
|
12378
|
+
classList2.push(`ck-img__size--${props.size}`);
|
|
12383
12379
|
if (props.rounded)
|
|
12384
12380
|
classList2.push("is-rounded");
|
|
12385
12381
|
if (props.hasBorder) {
|
|
@@ -12455,7 +12451,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
12455
12451
|
};
|
|
12456
12452
|
}
|
|
12457
12453
|
});
|
|
12458
|
-
var ckImg = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-
|
|
12454
|
+
var ckImg = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-e808078e"]]);
|
|
12459
12455
|
var ckLabel_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
12460
12456
|
const _hoisted_1$e = ["for"];
|
|
12461
12457
|
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
@@ -12626,7 +12622,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
12626
12622
|
emits: ["update:modelValue", "cancel", "accept"],
|
|
12627
12623
|
setup(__props, { emit: emits }) {
|
|
12628
12624
|
const props = __props;
|
|
12629
|
-
const
|
|
12625
|
+
const isActive = computed$2({
|
|
12630
12626
|
get() {
|
|
12631
12627
|
return props.modelValue;
|
|
12632
12628
|
},
|
|
@@ -12635,20 +12631,23 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
12635
12631
|
}
|
|
12636
12632
|
});
|
|
12637
12633
|
function onCancel() {
|
|
12634
|
+
console.log("onCancel");
|
|
12638
12635
|
emits("cancel");
|
|
12639
12636
|
if (!props.preventCloseOnCancel)
|
|
12640
|
-
|
|
12637
|
+
isActive.value = false;
|
|
12641
12638
|
}
|
|
12642
12639
|
function onAccept() {
|
|
12640
|
+
console.log("onAccept");
|
|
12643
12641
|
emits("accept");
|
|
12644
12642
|
}
|
|
12645
12643
|
function onBgClick() {
|
|
12644
|
+
console.log("onBgClick");
|
|
12646
12645
|
if (props.notCloseByBg)
|
|
12647
12646
|
return;
|
|
12648
|
-
|
|
12647
|
+
isActive.value = false;
|
|
12649
12648
|
}
|
|
12650
12649
|
return (_ctx, _cache) => {
|
|
12651
|
-
return unref$1(
|
|
12650
|
+
return unref$1(isActive) ? (openBlock(), createElementBlock("div", _hoisted_1$c, [
|
|
12652
12651
|
_hoisted_2$6,
|
|
12653
12652
|
createElementVNode("div", {
|
|
12654
12653
|
class: "popup-container",
|
|
@@ -12666,7 +12665,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
12666
12665
|
key: 1,
|
|
12667
12666
|
class: "mr-3 close",
|
|
12668
12667
|
icon: "times",
|
|
12669
|
-
onClick: _cache[0] || (_cache[0] = ($event) =>
|
|
12668
|
+
onClick: _cache[0] || (_cache[0] = ($event) => isActive.value = false)
|
|
12670
12669
|
})) : createCommentVNode("", true)
|
|
12671
12670
|
]),
|
|
12672
12671
|
createElementVNode("div", _hoisted_5$1, [
|
|
@@ -12678,7 +12677,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
12678
12677
|
createVNode(ckButton, {
|
|
12679
12678
|
class: "cancel-button",
|
|
12680
12679
|
onClick: _cache[1] || (_cache[1] = ($event) => onCancel()),
|
|
12681
|
-
color: "danger"
|
|
12680
|
+
color: "danger",
|
|
12681
|
+
type: "flat"
|
|
12682
12682
|
}, {
|
|
12683
12683
|
default: withCtx(() => [
|
|
12684
12684
|
_hoisted_8
|
|
@@ -13426,7 +13426,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
13426
13426
|
props: {
|
|
13427
13427
|
search: { type: String, default: void 0 },
|
|
13428
13428
|
hasColumnsManager: { type: Boolean, default: false },
|
|
13429
|
-
|
|
13429
|
+
showRefreshBtn: { type: Boolean, required: true },
|
|
13430
13430
|
hideItemsPerPage: { type: Boolean, required: true },
|
|
13431
13431
|
currentPage: { type: Number, required: true },
|
|
13432
13432
|
itemsPerPage: { type: Number, required: true },
|
|
@@ -13458,6 +13458,9 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
13458
13458
|
const itemsPerPageIsVisible = computed$2(() => {
|
|
13459
13459
|
return !props.hideItemsPerPage && props.listLength && props.currentPage;
|
|
13460
13460
|
});
|
|
13461
|
+
const refreshBtnIsVisible = computed$2(() => {
|
|
13462
|
+
return itemsPerPageIsVisible.value || props.showRefreshBtn;
|
|
13463
|
+
});
|
|
13461
13464
|
const searchGroupValue = computed$2(() => {
|
|
13462
13465
|
if (itemsPerPageIsVisible.value && props.hasColumnsManager) {
|
|
13463
13466
|
return "center";
|
|
@@ -13478,7 +13481,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
13478
13481
|
}
|
|
13479
13482
|
return (_ctx, _cache) => {
|
|
13480
13483
|
return openBlock(), createElementBlock("div", _hoisted_1$5, [
|
|
13481
|
-
|
|
13484
|
+
unref$1(refreshBtnIsVisible) ? (openBlock(), createBlock(ckButton, {
|
|
13482
13485
|
key: 0,
|
|
13483
13486
|
type: "flat",
|
|
13484
13487
|
icon: "redo-alt",
|
|
@@ -13510,7 +13513,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
13510
13513
|
};
|
|
13511
13514
|
}
|
|
13512
13515
|
});
|
|
13513
|
-
var TableHeaderItems = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-
|
|
13516
|
+
var TableHeaderItems = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-15c7bf13"]]);
|
|
13514
13517
|
var ckTable__pagination_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
13515
13518
|
const _hoisted_1$4 = { class: "ck-table__pagination" };
|
|
13516
13519
|
const _hoisted_2$2 = ["onClick"];
|
|
@@ -13735,7 +13738,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
13735
13738
|
paginationAlign: { type: String, default: "center", validator: validators.align },
|
|
13736
13739
|
search: { type: String, default: void 0 },
|
|
13737
13740
|
hideHeaderActions: { type: Boolean, default: false },
|
|
13738
|
-
|
|
13741
|
+
showRefreshBtn: { type: Boolean, default: false },
|
|
13739
13742
|
hideItemsPerPage: { type: Boolean, default: false },
|
|
13740
13743
|
notFullWidth: { type: Boolean, default: false }
|
|
13741
13744
|
},
|
|
@@ -13806,11 +13809,11 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
13806
13809
|
hasColumnsManager: __props.hasColumnsManager,
|
|
13807
13810
|
itemsPerPage: __props.itemsPerPage,
|
|
13808
13811
|
listLength: __props.listLength,
|
|
13809
|
-
|
|
13812
|
+
showRefreshBtn: __props.showRefreshBtn,
|
|
13810
13813
|
hideItemsPerPage: __props.hideItemsPerPage,
|
|
13811
13814
|
onRefreshList: _cache[2] || (_cache[2] = ($event) => refreshList($event)),
|
|
13812
13815
|
onOpenColumnsManager: _cache[3] || (_cache[3] = ($event) => openColumnsManager())
|
|
13813
|
-
}, null, 8, ["search", "currentPage", "hasColumnsManager", "itemsPerPage", "listLength", "
|
|
13816
|
+
}, null, 8, ["search", "currentPage", "hasColumnsManager", "itemsPerPage", "listLength", "showRefreshBtn", "hideItemsPerPage"])) : createCommentVNode("", true),
|
|
13814
13817
|
_ctx.$slots.header ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
|
13815
13818
|
renderSlot(_ctx.$slots, "header", {}, void 0, true)
|
|
13816
13819
|
])) : createCommentVNode("", true)
|
|
@@ -13854,7 +13857,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
13854
13857
|
};
|
|
13855
13858
|
}
|
|
13856
13859
|
});
|
|
13857
|
-
var ckTable = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-
|
|
13860
|
+
var ckTable = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-2c108c86"]]);
|
|
13858
13861
|
var ckTd_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
13859
13862
|
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
13860
13863
|
props: {
|
|
@@ -13862,6 +13865,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
13862
13865
|
nowrap: { type: Boolean, default: false },
|
|
13863
13866
|
block: { type: Boolean, default: false },
|
|
13864
13867
|
autoWidth: { type: Boolean, default: false },
|
|
13868
|
+
overflowAuto: { type: Boolean, default: false },
|
|
13865
13869
|
align: { type: String, default: void 0, validator: validators.align },
|
|
13866
13870
|
fixedWidth: { type: String, default: "" },
|
|
13867
13871
|
minWidth: { type: String, default: "" },
|
|
@@ -13872,7 +13876,8 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
13872
13876
|
const props = __props;
|
|
13873
13877
|
const computedTdClass = computed$2(() => {
|
|
13874
13878
|
return {
|
|
13875
|
-
"auto-width": props.autoWidth
|
|
13879
|
+
"auto-width": props.autoWidth,
|
|
13880
|
+
"overflow-auto": props.overflowAuto
|
|
13876
13881
|
};
|
|
13877
13882
|
});
|
|
13878
13883
|
const computedSpanClass = computed$2(() => {
|
|
@@ -13928,7 +13933,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
13928
13933
|
};
|
|
13929
13934
|
}
|
|
13930
13935
|
});
|
|
13931
|
-
var ckTd = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-
|
|
13936
|
+
var ckTd = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-63af303c"]]);
|
|
13932
13937
|
var ckTextarea_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
13933
13938
|
const _hoisted_1$1 = { class: "ck-textarea" };
|
|
13934
13939
|
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|