cleek 2.1.2 → 2.1.3
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 +60 -12
- package/dist/cleek.umd.js +6 -6
- package/dist/style.css +1 -1
- package/package.json +2 -1
package/dist/cleek.es.js
CHANGED
|
@@ -17,7 +17,61 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
import { defineComponent, computed as computed$2, watch, h,
|
|
20
|
+
import { defineComponent, ref, openBlock, createElementBlock, createElementVNode, renderSlot, normalizeClass, createCommentVNode, computed as computed$2, watch, h, unref as unref$1, createBlock, onMounted, getCurrentInstance, mergeProps, withKeys, withModifiers, pushScopeId, popScopeId, normalizeStyle, withCtx, createTextVNode, toDisplayString, withDirectives, isRef as isRef$1, vModelDynamic, createVNode, Fragment, renderList, vModelRadio, vModelSelect, vModelCheckbox, vModelText } from "vue";
|
|
21
|
+
var ckDropdown_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
22
|
+
var _export_sfc = (sfc, props) => {
|
|
23
|
+
const target = sfc.__vccOpts || sfc;
|
|
24
|
+
for (const [key, val] of props) {
|
|
25
|
+
target[key] = val;
|
|
26
|
+
}
|
|
27
|
+
return target;
|
|
28
|
+
};
|
|
29
|
+
const _hoisted_1$j = { class: "ck-dropdown" };
|
|
30
|
+
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
31
|
+
props: {
|
|
32
|
+
triggerType: { type: String, default: "click" },
|
|
33
|
+
dark: { type: Boolean, default: false }
|
|
34
|
+
},
|
|
35
|
+
setup(__props) {
|
|
36
|
+
const isOpen = ref(false);
|
|
37
|
+
const popperRef = ref(null);
|
|
38
|
+
function openClose() {
|
|
39
|
+
if (isOpen.value)
|
|
40
|
+
return;
|
|
41
|
+
const closeListerner = (event) => {
|
|
42
|
+
if (popperRef.value != event.target)
|
|
43
|
+
isOpen.value = false;
|
|
44
|
+
window.removeEventListener("click", closeListerner);
|
|
45
|
+
};
|
|
46
|
+
setTimeout(() => {
|
|
47
|
+
window.addEventListener("click", closeListerner);
|
|
48
|
+
});
|
|
49
|
+
isOpen.value = true;
|
|
50
|
+
}
|
|
51
|
+
return (_ctx, _cache) => {
|
|
52
|
+
return openBlock(), createElementBlock("div", _hoisted_1$j, [
|
|
53
|
+
createElementVNode("div", {
|
|
54
|
+
class: "ck-dropdown__trigger",
|
|
55
|
+
onClick: _cache[0] || (_cache[0] = ($event) => openClose())
|
|
56
|
+
}, [
|
|
57
|
+
renderSlot(_ctx.$slots, "trigger", {}, void 0, true)
|
|
58
|
+
]),
|
|
59
|
+
isOpen.value ? (openBlock(), createElementBlock("section", {
|
|
60
|
+
key: 0,
|
|
61
|
+
class: normalizeClass(["ck-dropdown__popper", { "ck-dropdown__popper--dark": __props.dark }]),
|
|
62
|
+
ref_key: "popperRef",
|
|
63
|
+
ref: popperRef
|
|
64
|
+
}, [
|
|
65
|
+
createElementVNode("div", {
|
|
66
|
+
class: normalizeClass(["ck-dropdown__popper--arrow", { "ck-dropdown__popper--arrow--dark": __props.dark }])
|
|
67
|
+
}, null, 2),
|
|
68
|
+
renderSlot(_ctx.$slots, "popper", {}, void 0, true)
|
|
69
|
+
], 2)) : createCommentVNode("", true)
|
|
70
|
+
]);
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
var ckDropdown = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-64a91fb4"]]);
|
|
21
75
|
var validators = {
|
|
22
76
|
size: (type) => {
|
|
23
77
|
return ["", "xs", "s", "m", "l", "xl"].includes(type);
|
|
@@ -11208,13 +11262,6 @@ defineComponent({
|
|
|
11208
11262
|
}
|
|
11209
11263
|
});
|
|
11210
11264
|
var ckIcon_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
11211
|
-
var _export_sfc = (sfc, props) => {
|
|
11212
|
-
const target = sfc.__vccOpts || sfc;
|
|
11213
|
-
for (const [key, val] of props) {
|
|
11214
|
-
target[key] = val;
|
|
11215
|
-
}
|
|
11216
|
-
return target;
|
|
11217
|
-
};
|
|
11218
11265
|
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
11219
11266
|
props: {
|
|
11220
11267
|
icon: { type: [String, Array], default: "" },
|
|
@@ -13314,7 +13361,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
13314
13361
|
};
|
|
13315
13362
|
}
|
|
13316
13363
|
});
|
|
13317
|
-
var ckTh = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-
|
|
13364
|
+
var ckTh = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-c179a3c2"]]);
|
|
13318
13365
|
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
13319
13366
|
props: {
|
|
13320
13367
|
col: { type: Object, required: true }
|
|
@@ -13369,7 +13416,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
13369
13416
|
return value;
|
|
13370
13417
|
});
|
|
13371
13418
|
const itemsPerPageIsVisible = computed$2(() => {
|
|
13372
|
-
return !props.hideItemsPerPage && props.listLength;
|
|
13419
|
+
return !props.hideItemsPerPage && props.listLength && props.currentPage;
|
|
13373
13420
|
});
|
|
13374
13421
|
const searchGroupValue = computed$2(() => {
|
|
13375
13422
|
if (itemsPerPageIsVisible.value && props.hasColumnsManager) {
|
|
@@ -13423,7 +13470,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
13423
13470
|
};
|
|
13424
13471
|
}
|
|
13425
13472
|
});
|
|
13426
|
-
var TableHeaderItems = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-
|
|
13473
|
+
var TableHeaderItems = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-350be915"]]);
|
|
13427
13474
|
var ckTable__pagination_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
13428
13475
|
const _hoisted_1$4 = { class: "ck-table__pagination" };
|
|
13429
13476
|
const _hoisted_2$2 = ["onClick"];
|
|
@@ -16482,6 +16529,7 @@ const unlockScroll = () => {
|
|
|
16482
16529
|
var components = /* @__PURE__ */ Object.freeze({
|
|
16483
16530
|
__proto__: null,
|
|
16484
16531
|
[Symbol.toStringTag]: "Module",
|
|
16532
|
+
ckDropdown,
|
|
16485
16533
|
ckButton,
|
|
16486
16534
|
ckCheckbox,
|
|
16487
16535
|
ckChip,
|
|
@@ -16536,4 +16584,4 @@ const install = function installCleek(app, options) {
|
|
|
16536
16584
|
app.component(componentName, component);
|
|
16537
16585
|
});
|
|
16538
16586
|
};
|
|
16539
|
-
export { events as EVENTS, mitt as EventBus, ckButton, ckCheckbox, ckChip, ckIcon, ckImg, ckInput, ckLabel, _sfc_main$e as ckPopup, ckRadio, ckSelect, ckSwitch, ckSwitchOptions, ckTable, ckTd, ckTextarea, ckTh, ckTooltip, ckTr, install as default, lockScroll, unlockScroll };
|
|
16587
|
+
export { events as EVENTS, mitt as EventBus, ckButton, ckCheckbox, ckChip, ckDropdown, ckIcon, ckImg, ckInput, ckLabel, _sfc_main$e as ckPopup, ckRadio, ckSelect, ckSwitch, ckSwitchOptions, ckTable, ckTd, ckTextarea, ckTh, ckTooltip, ckTr, install as default, lockScroll, unlockScroll };
|