cleek 2.1.2 → 2.1.7
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.
|
@@ -55,6 +55,8 @@ margin-padding-bottom(val)
|
|
|
55
55
|
|
|
56
56
|
my-box-shadow(val = 0.05, color = black)
|
|
57
57
|
box-shadow 0 4px 20px 0 rgba(color, val)
|
|
58
|
+
ck-box-shadow(val = 0.05, color = black)
|
|
59
|
+
box-shadow 0 4px 20px 0 rgba(color, val)
|
|
58
60
|
// flex shortcuts
|
|
59
61
|
justify-align-center()
|
|
60
62
|
align-items center
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
@import './.custom';
|
|
1
2
|
@import './align-items';
|
|
2
3
|
@import './display';
|
|
4
|
+
@import './justify-content';
|
|
3
5
|
@import './margin';
|
|
4
6
|
@import './padding';
|
|
7
|
+
@import './position';
|
|
5
8
|
@import './text-align';
|
|
6
|
-
@import './width';
|
|
7
|
-
@import './.custom';
|
|
8
|
-
@import './justify-content';
|
|
9
|
+
@import './width';
|
package/dist/cleek.es.js
CHANGED
|
@@ -17,7 +17,98 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
import { defineComponent,
|
|
20
|
+
import { defineComponent, ref, openBlock, createElementBlock, createElementVNode, renderSlot, normalizeClass, createCommentVNode, computed as computed$2, normalizeStyle, unref as unref$1, watch, h, createBlock, onMounted, getCurrentInstance, mergeProps, withKeys, withModifiers, pushScopeId, popScopeId, 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$n = /* @__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$n, [["__scopeId", "data-v-64a91fb4"]]);
|
|
75
|
+
var ckNavbar_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
76
|
+
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
77
|
+
props: {
|
|
78
|
+
padding: { type: String, default: 0 },
|
|
79
|
+
position: { type: String, default: "fixed" }
|
|
80
|
+
},
|
|
81
|
+
setup(__props) {
|
|
82
|
+
const props = __props;
|
|
83
|
+
const computedClassContent = computed$2(() => {
|
|
84
|
+
const list = [];
|
|
85
|
+
if (props.padding)
|
|
86
|
+
list.push("has-padding");
|
|
87
|
+
return list;
|
|
88
|
+
});
|
|
89
|
+
const computedStyle = computed$2(() => {
|
|
90
|
+
const list = [];
|
|
91
|
+
if (props.padding)
|
|
92
|
+
list.push({ padding: props.padding });
|
|
93
|
+
if (props.position)
|
|
94
|
+
list.push({ position: props.position });
|
|
95
|
+
return list;
|
|
96
|
+
});
|
|
97
|
+
return (_ctx, _cache) => {
|
|
98
|
+
return openBlock(), createElementBlock("div", {
|
|
99
|
+
class: "ck-navbar",
|
|
100
|
+
style: normalizeStyle(unref$1(computedStyle))
|
|
101
|
+
}, [
|
|
102
|
+
createElementVNode("div", {
|
|
103
|
+
class: normalizeClass(["ck-navbar__content", unref$1(computedClassContent)])
|
|
104
|
+
}, [
|
|
105
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
106
|
+
], 2)
|
|
107
|
+
], 4);
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
var ckNavbar = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-5024db6a"]]);
|
|
21
112
|
var validators = {
|
|
22
113
|
size: (type) => {
|
|
23
114
|
return ["", "xs", "s", "m", "l", "xl"].includes(type);
|
|
@@ -11208,13 +11299,6 @@ defineComponent({
|
|
|
11208
11299
|
}
|
|
11209
11300
|
});
|
|
11210
11301
|
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
11302
|
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
11219
11303
|
props: {
|
|
11220
11304
|
icon: { type: [String, Array], default: "" },
|
|
@@ -12252,7 +12336,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
12252
12336
|
};
|
|
12253
12337
|
}
|
|
12254
12338
|
});
|
|
12255
|
-
var ckChip = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-
|
|
12339
|
+
var ckChip = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-5333de26"]]);
|
|
12256
12340
|
var globalVariables = {
|
|
12257
12341
|
defaultFailImg: "df",
|
|
12258
12342
|
imagesFolderPath: "",
|
|
@@ -12274,7 +12358,8 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
12274
12358
|
zoomTitle: { type: String, default: "" },
|
|
12275
12359
|
hasBorder: { type: Boolean, default: false },
|
|
12276
12360
|
radius: { type: String, default: "" },
|
|
12277
|
-
borderColor: { type: String, default: "" }
|
|
12361
|
+
borderColor: { type: String, default: "" },
|
|
12362
|
+
rounded: { type: Boolean, default: false }
|
|
12278
12363
|
},
|
|
12279
12364
|
setup(__props) {
|
|
12280
12365
|
const props = __props;
|
|
@@ -12295,6 +12380,8 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
12295
12380
|
}
|
|
12296
12381
|
if (size)
|
|
12297
12382
|
classList2.push(`ck-img__size--${size}`);
|
|
12383
|
+
if (props.rounded)
|
|
12384
|
+
classList2.push("is-rounded");
|
|
12298
12385
|
if (props.hasBorder) {
|
|
12299
12386
|
classList2.push("ck-img__has-border");
|
|
12300
12387
|
if (functions$1.isColorTemplateVariable(realBorderColor.value)) {
|
|
@@ -12368,7 +12455,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
12368
12455
|
};
|
|
12369
12456
|
}
|
|
12370
12457
|
});
|
|
12371
|
-
var ckImg = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-
|
|
12458
|
+
var ckImg = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-ba1551a2"]]);
|
|
12372
12459
|
var ckLabel_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
12373
12460
|
const _hoisted_1$e = ["for"];
|
|
12374
12461
|
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
@@ -12396,7 +12483,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
12396
12483
|
};
|
|
12397
12484
|
}
|
|
12398
12485
|
});
|
|
12399
|
-
var ckLabel = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-
|
|
12486
|
+
var ckLabel = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-ef74ea02"]]);
|
|
12400
12487
|
var ckInput_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
12401
12488
|
const _hoisted_1$d = { class: "ck-input" };
|
|
12402
12489
|
const _hoisted_2$7 = ["type", "placeholder", "id", "disabled"];
|
|
@@ -12504,7 +12591,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
12504
12591
|
};
|
|
12505
12592
|
}
|
|
12506
12593
|
});
|
|
12507
|
-
var ckInput = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-
|
|
12594
|
+
var ckInput = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-5db08b1e"]]);
|
|
12508
12595
|
var ckPopup_vue_vue_type_style_index_0_lang = "";
|
|
12509
12596
|
const _hoisted_1$c = {
|
|
12510
12597
|
key: 0,
|
|
@@ -13270,7 +13357,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
13270
13357
|
};
|
|
13271
13358
|
}
|
|
13272
13359
|
});
|
|
13273
|
-
var ckSwitchOptions = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-
|
|
13360
|
+
var ckSwitchOptions = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-2c3e07c8"]]);
|
|
13274
13361
|
const _hoisted_1$7 = { class: "ck-tr" };
|
|
13275
13362
|
function render$1(_ctx, _cache) {
|
|
13276
13363
|
return openBlock(), createElementBlock("tr", _hoisted_1$7, [
|
|
@@ -13314,7 +13401,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
13314
13401
|
};
|
|
13315
13402
|
}
|
|
13316
13403
|
});
|
|
13317
|
-
var ckTh = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-
|
|
13404
|
+
var ckTh = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-c179a3c2"]]);
|
|
13318
13405
|
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
13319
13406
|
props: {
|
|
13320
13407
|
col: { type: Object, required: true }
|
|
@@ -13369,7 +13456,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
13369
13456
|
return value;
|
|
13370
13457
|
});
|
|
13371
13458
|
const itemsPerPageIsVisible = computed$2(() => {
|
|
13372
|
-
return !props.hideItemsPerPage && props.listLength;
|
|
13459
|
+
return !props.hideItemsPerPage && props.listLength && props.currentPage;
|
|
13373
13460
|
});
|
|
13374
13461
|
const searchGroupValue = computed$2(() => {
|
|
13375
13462
|
if (itemsPerPageIsVisible.value && props.hasColumnsManager) {
|
|
@@ -13423,7 +13510,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
13423
13510
|
};
|
|
13424
13511
|
}
|
|
13425
13512
|
});
|
|
13426
|
-
var TableHeaderItems = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-
|
|
13513
|
+
var TableHeaderItems = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-4f5cca80"]]);
|
|
13427
13514
|
var ckTable__pagination_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
13428
13515
|
const _hoisted_1$4 = { class: "ck-table__pagination" };
|
|
13429
13516
|
const _hoisted_2$2 = ["onClick"];
|
|
@@ -13551,7 +13638,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
13551
13638
|
};
|
|
13552
13639
|
}
|
|
13553
13640
|
}));
|
|
13554
|
-
var TablePagination = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-
|
|
13641
|
+
var TablePagination = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-4045b8e3"]]);
|
|
13555
13642
|
var ckTable__columnsManager_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
13556
13643
|
const _hoisted_1$3 = { class: "columns-manger-container" };
|
|
13557
13644
|
const _hoisted_2$1 = { class: "columns-manger__item" };
|
|
@@ -16482,6 +16569,8 @@ const unlockScroll = () => {
|
|
|
16482
16569
|
var components = /* @__PURE__ */ Object.freeze({
|
|
16483
16570
|
__proto__: null,
|
|
16484
16571
|
[Symbol.toStringTag]: "Module",
|
|
16572
|
+
ckDropdown,
|
|
16573
|
+
ckNavbar,
|
|
16485
16574
|
ckButton,
|
|
16486
16575
|
ckCheckbox,
|
|
16487
16576
|
ckChip,
|
|
@@ -16536,4 +16625,4 @@ const install = function installCleek(app, options) {
|
|
|
16536
16625
|
app.component(componentName, component);
|
|
16537
16626
|
});
|
|
16538
16627
|
};
|
|
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 };
|
|
16628
|
+
export { events as EVENTS, mitt as EventBus, ckButton, ckCheckbox, ckChip, ckDropdown, ckIcon, ckImg, ckInput, ckLabel, ckNavbar, _sfc_main$e as ckPopup, ckRadio, ckSelect, ckSwitch, ckSwitchOptions, ckTable, ckTd, ckTextarea, ckTh, ckTooltip, ckTr, install as default, lockScroll, unlockScroll };
|