cleek 2.1.8 → 2.1.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/dist/cleek.es.js
CHANGED
|
@@ -12374,7 +12374,6 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
12374
12374
|
});
|
|
12375
12375
|
const computedClass = computed$2(() => {
|
|
12376
12376
|
const classList2 = [];
|
|
12377
|
-
console.log("img size", props.size);
|
|
12378
12377
|
if (props.size)
|
|
12379
12378
|
classList2.push(`ck-img__size--${props.size}`);
|
|
12380
12379
|
if (props.rounded)
|
|
@@ -12452,7 +12451,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
12452
12451
|
};
|
|
12453
12452
|
}
|
|
12454
12453
|
});
|
|
12455
|
-
var ckImg = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-
|
|
12454
|
+
var ckImg = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-e808078e"]]);
|
|
12456
12455
|
var ckLabel_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
12457
12456
|
const _hoisted_1$e = ["for"];
|
|
12458
12457
|
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
@@ -12623,7 +12622,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
12623
12622
|
emits: ["update:modelValue", "cancel", "accept"],
|
|
12624
12623
|
setup(__props, { emit: emits }) {
|
|
12625
12624
|
const props = __props;
|
|
12626
|
-
const
|
|
12625
|
+
const isActive = computed$2({
|
|
12627
12626
|
get() {
|
|
12628
12627
|
return props.modelValue;
|
|
12629
12628
|
},
|
|
@@ -12634,7 +12633,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
12634
12633
|
function onCancel() {
|
|
12635
12634
|
emits("cancel");
|
|
12636
12635
|
if (!props.preventCloseOnCancel)
|
|
12637
|
-
|
|
12636
|
+
isActive.value = false;
|
|
12638
12637
|
}
|
|
12639
12638
|
function onAccept() {
|
|
12640
12639
|
emits("accept");
|
|
@@ -12642,10 +12641,10 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
12642
12641
|
function onBgClick() {
|
|
12643
12642
|
if (props.notCloseByBg)
|
|
12644
12643
|
return;
|
|
12645
|
-
|
|
12644
|
+
isActive.value = false;
|
|
12646
12645
|
}
|
|
12647
12646
|
return (_ctx, _cache) => {
|
|
12648
|
-
return unref$1(
|
|
12647
|
+
return unref$1(isActive) ? (openBlock(), createElementBlock("div", _hoisted_1$c, [
|
|
12649
12648
|
_hoisted_2$6,
|
|
12650
12649
|
createElementVNode("div", {
|
|
12651
12650
|
class: "popup-container",
|
|
@@ -12663,7 +12662,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
12663
12662
|
key: 1,
|
|
12664
12663
|
class: "mr-3 close",
|
|
12665
12664
|
icon: "times",
|
|
12666
|
-
onClick: _cache[0] || (_cache[0] = ($event) =>
|
|
12665
|
+
onClick: _cache[0] || (_cache[0] = ($event) => isActive.value = false)
|
|
12667
12666
|
})) : createCommentVNode("", true)
|
|
12668
12667
|
]),
|
|
12669
12668
|
createElementVNode("div", _hoisted_5$1, [
|
|
@@ -12675,7 +12674,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
12675
12674
|
createVNode(ckButton, {
|
|
12676
12675
|
class: "cancel-button",
|
|
12677
12676
|
onClick: _cache[1] || (_cache[1] = ($event) => onCancel()),
|
|
12678
|
-
color: "danger"
|
|
12677
|
+
color: "danger",
|
|
12678
|
+
type: "flat"
|
|
12679
12679
|
}, {
|
|
12680
12680
|
default: withCtx(() => [
|
|
12681
12681
|
_hoisted_8
|
|
@@ -13194,7 +13194,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
13194
13194
|
});
|
|
13195
13195
|
var ckSelect = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-31af160a"]]);
|
|
13196
13196
|
var ckSwitch_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
13197
|
-
const _withScopeId = (n) => (pushScopeId("data-v-
|
|
13197
|
+
const _withScopeId = (n) => (pushScopeId("data-v-b6a4dfaa"), n = n(), popScopeId(), n);
|
|
13198
13198
|
const _hoisted_1$9 = ["disabled"];
|
|
13199
13199
|
const _hoisted_2$4 = { class: "ck-switch__slider-container" };
|
|
13200
13200
|
const _hoisted_3$2 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "ck-switch__slider" }, null, -1));
|
|
@@ -13208,6 +13208,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
13208
13208
|
disabled: { type: Boolean, default: false },
|
|
13209
13209
|
outlined: { type: Boolean, default: false },
|
|
13210
13210
|
squared: { type: Boolean, default: false },
|
|
13211
|
+
size: { type: String, default: "m" },
|
|
13211
13212
|
icon: { type: String, default: void 0 },
|
|
13212
13213
|
iconPack: { type: String, default: void 0 }
|
|
13213
13214
|
},
|
|
@@ -13228,6 +13229,10 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
13228
13229
|
list.push("is-squared");
|
|
13229
13230
|
if (props.outlined)
|
|
13230
13231
|
list.push("is-outlined");
|
|
13232
|
+
let size = "s";
|
|
13233
|
+
if (props.size === "m" || props.size === "l")
|
|
13234
|
+
size = props.size;
|
|
13235
|
+
list.push(`ck-switch--size-${size}`);
|
|
13231
13236
|
return list;
|
|
13232
13237
|
});
|
|
13233
13238
|
const computedAttributes = computed$2(() => {
|
|
@@ -13236,6 +13241,13 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
13236
13241
|
tabindex: props.disabled ? void 0 : "0"
|
|
13237
13242
|
};
|
|
13238
13243
|
});
|
|
13244
|
+
const iconClass = computed$2(() => {
|
|
13245
|
+
const list = [];
|
|
13246
|
+
if (props.size && props.size !== "m") {
|
|
13247
|
+
list.push(`ck-switch__icon-size--${props.size}`);
|
|
13248
|
+
}
|
|
13249
|
+
return list;
|
|
13250
|
+
});
|
|
13239
13251
|
function onTrigger2() {
|
|
13240
13252
|
value.value = !value.value;
|
|
13241
13253
|
}
|
|
@@ -13263,16 +13275,16 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
13263
13275
|
_hoisted_3$2,
|
|
13264
13276
|
__props.icon && unref$1(value) ? (openBlock(), createBlock(ckIcon, {
|
|
13265
13277
|
key: 0,
|
|
13266
|
-
class: "ck-switch__icon-left",
|
|
13278
|
+
class: normalizeClass(["ck-switch__icon-left", unref$1(iconClass)]),
|
|
13267
13279
|
icon: __props.icon,
|
|
13268
13280
|
"icon-pack": __props.iconPack
|
|
13269
|
-
}, null, 8, ["icon", "icon-pack"])) : createCommentVNode("", true),
|
|
13281
|
+
}, null, 8, ["icon", "icon-pack", "class"])) : createCommentVNode("", true),
|
|
13270
13282
|
__props.icon && !unref$1(value) ? (openBlock(), createBlock(ckIcon, {
|
|
13271
13283
|
key: 1,
|
|
13272
|
-
class: "ck-switch__icon-right",
|
|
13284
|
+
class: normalizeClass(["ck-switch__icon-right", unref$1(iconClass)]),
|
|
13273
13285
|
icon: __props.icon,
|
|
13274
13286
|
"icon-pack": __props.iconPack
|
|
13275
|
-
}, null, 8, ["icon", "icon-pack"])) : createCommentVNode("", true)
|
|
13287
|
+
}, null, 8, ["icon", "icon-pack", "class"])) : createCommentVNode("", true)
|
|
13276
13288
|
]),
|
|
13277
13289
|
_ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_4$1, [
|
|
13278
13290
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
@@ -13281,7 +13293,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
13281
13293
|
};
|
|
13282
13294
|
}
|
|
13283
13295
|
});
|
|
13284
|
-
var ckSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-
|
|
13296
|
+
var ckSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-b6a4dfaa"]]);
|
|
13285
13297
|
var ckSwitchOptions_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
13286
13298
|
const _hoisted_1$8 = { class: "ck-switch-options__container-exterior" };
|
|
13287
13299
|
const _hoisted_2$3 = ["onClick"];
|
|
@@ -13423,7 +13435,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
13423
13435
|
props: {
|
|
13424
13436
|
search: { type: String, default: void 0 },
|
|
13425
13437
|
hasColumnsManager: { type: Boolean, default: false },
|
|
13426
|
-
|
|
13438
|
+
showRefreshBtn: { type: Boolean, required: true },
|
|
13427
13439
|
hideItemsPerPage: { type: Boolean, required: true },
|
|
13428
13440
|
currentPage: { type: Number, required: true },
|
|
13429
13441
|
itemsPerPage: { type: Number, required: true },
|
|
@@ -13455,6 +13467,9 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
13455
13467
|
const itemsPerPageIsVisible = computed$2(() => {
|
|
13456
13468
|
return !props.hideItemsPerPage && props.listLength && props.currentPage;
|
|
13457
13469
|
});
|
|
13470
|
+
const refreshBtnIsVisible = computed$2(() => {
|
|
13471
|
+
return itemsPerPageIsVisible.value || props.showRefreshBtn;
|
|
13472
|
+
});
|
|
13458
13473
|
const searchGroupValue = computed$2(() => {
|
|
13459
13474
|
if (itemsPerPageIsVisible.value && props.hasColumnsManager) {
|
|
13460
13475
|
return "center";
|
|
@@ -13475,7 +13490,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
13475
13490
|
}
|
|
13476
13491
|
return (_ctx, _cache) => {
|
|
13477
13492
|
return openBlock(), createElementBlock("div", _hoisted_1$5, [
|
|
13478
|
-
|
|
13493
|
+
unref$1(refreshBtnIsVisible) ? (openBlock(), createBlock(ckButton, {
|
|
13479
13494
|
key: 0,
|
|
13480
13495
|
type: "flat",
|
|
13481
13496
|
icon: "redo-alt",
|
|
@@ -13507,7 +13522,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
13507
13522
|
};
|
|
13508
13523
|
}
|
|
13509
13524
|
});
|
|
13510
|
-
var TableHeaderItems = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-
|
|
13525
|
+
var TableHeaderItems = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-15c7bf13"]]);
|
|
13511
13526
|
var ckTable__pagination_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
13512
13527
|
const _hoisted_1$4 = { class: "ck-table__pagination" };
|
|
13513
13528
|
const _hoisted_2$2 = ["onClick"];
|
|
@@ -13732,7 +13747,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
13732
13747
|
paginationAlign: { type: String, default: "center", validator: validators.align },
|
|
13733
13748
|
search: { type: String, default: void 0 },
|
|
13734
13749
|
hideHeaderActions: { type: Boolean, default: false },
|
|
13735
|
-
|
|
13750
|
+
showRefreshBtn: { type: Boolean, default: false },
|
|
13736
13751
|
hideItemsPerPage: { type: Boolean, default: false },
|
|
13737
13752
|
notFullWidth: { type: Boolean, default: false }
|
|
13738
13753
|
},
|
|
@@ -13803,11 +13818,11 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
13803
13818
|
hasColumnsManager: __props.hasColumnsManager,
|
|
13804
13819
|
itemsPerPage: __props.itemsPerPage,
|
|
13805
13820
|
listLength: __props.listLength,
|
|
13806
|
-
|
|
13821
|
+
showRefreshBtn: __props.showRefreshBtn,
|
|
13807
13822
|
hideItemsPerPage: __props.hideItemsPerPage,
|
|
13808
13823
|
onRefreshList: _cache[2] || (_cache[2] = ($event) => refreshList($event)),
|
|
13809
13824
|
onOpenColumnsManager: _cache[3] || (_cache[3] = ($event) => openColumnsManager())
|
|
13810
|
-
}, null, 8, ["search", "currentPage", "hasColumnsManager", "itemsPerPage", "listLength", "
|
|
13825
|
+
}, null, 8, ["search", "currentPage", "hasColumnsManager", "itemsPerPage", "listLength", "showRefreshBtn", "hideItemsPerPage"])) : createCommentVNode("", true),
|
|
13811
13826
|
_ctx.$slots.header ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
|
13812
13827
|
renderSlot(_ctx.$slots, "header", {}, void 0, true)
|
|
13813
13828
|
])) : createCommentVNode("", true)
|
|
@@ -13851,7 +13866,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
13851
13866
|
};
|
|
13852
13867
|
}
|
|
13853
13868
|
});
|
|
13854
|
-
var ckTable = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-
|
|
13869
|
+
var ckTable = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-2c108c86"]]);
|
|
13855
13870
|
var ckTd_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
13856
13871
|
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
13857
13872
|
props: {
|