cleek 2.6.111 → 2.7.0
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-styles/cleek-mixins.styl +4 -0
- package/dist/cleek.es.js +41 -54
- package/dist/cleek.umd.js +20 -20
- package/dist/style.css +1 -1
- package/package.json +2 -2
|
@@ -84,6 +84,10 @@ unselectable()
|
|
|
84
84
|
-webkit-user-select none
|
|
85
85
|
-o-user-select none
|
|
86
86
|
|
|
87
|
+
dynamic-rgba(rgb-variable, opacity = 1)
|
|
88
|
+
// return rgba as a string so it doesn't get interpolated by stylus compiler
|
|
89
|
+
s('rgba(var(%s), %s)', rgb-variable, opacity)
|
|
90
|
+
|
|
87
91
|
//
|
|
88
92
|
//
|
|
89
93
|
//
|
package/dist/cleek.es.js
CHANGED
|
@@ -81635,9 +81635,8 @@ const _sfc_main$x = defineComponent$2({
|
|
|
81635
81635
|
split: { type: Boolean }
|
|
81636
81636
|
},
|
|
81637
81637
|
emits: ["click"],
|
|
81638
|
-
setup(__props, { emit:
|
|
81638
|
+
setup(__props, { emit: emits }) {
|
|
81639
81639
|
const props = __props;
|
|
81640
|
-
const emits = __emit;
|
|
81641
81640
|
const computedTime = computed$3(() => {
|
|
81642
81641
|
if (props.time) {
|
|
81643
81642
|
if (props.timeInMinutes)
|
|
@@ -82453,9 +82452,8 @@ const _sfc_main$t = defineComponent$2({
|
|
|
82453
82452
|
pulse: { type: Boolean }
|
|
82454
82453
|
},
|
|
82455
82454
|
emits: ["click"],
|
|
82456
|
-
setup(__props, { emit:
|
|
82455
|
+
setup(__props, { emit: emits }) {
|
|
82457
82456
|
const props = __props;
|
|
82458
|
-
const emits = __emit;
|
|
82459
82457
|
const computediconPack = computed$3(() => {
|
|
82460
82458
|
const defaultPackage = "font-awesome";
|
|
82461
82459
|
if (!props.iconPack)
|
|
@@ -82743,9 +82741,8 @@ const _sfc_main$o = defineComponent$2({
|
|
|
82743
82741
|
groupVertical: {}
|
|
82744
82742
|
},
|
|
82745
82743
|
emits: ["click"],
|
|
82746
|
-
setup(__props, { emit:
|
|
82744
|
+
setup(__props, { emit: emits }) {
|
|
82747
82745
|
const props = __props;
|
|
82748
|
-
const emits = __emit;
|
|
82749
82746
|
const { windowWidth } = useWindowWidth();
|
|
82750
82747
|
let cleekOptions2 = ref$1();
|
|
82751
82748
|
const realButtonType = computed$3(() => {
|
|
@@ -82940,9 +82937,8 @@ const _sfc_main$m = defineComponent$2({
|
|
|
82940
82937
|
justInteger: { type: Boolean }
|
|
82941
82938
|
},
|
|
82942
82939
|
emits: ["update:modelValue", "click", "input", "change", "focus", "blur", "delayChange"],
|
|
82943
|
-
setup(__props, { expose: __expose, emit:
|
|
82940
|
+
setup(__props, { expose: __expose, emit: emits }) {
|
|
82944
82941
|
const props = __props;
|
|
82945
|
-
const emits = __emit;
|
|
82946
82942
|
__expose({ setFocus, setSelect });
|
|
82947
82943
|
let cleekOptions2 = ref$1();
|
|
82948
82944
|
const realInput = ref$1(null);
|
|
@@ -83161,9 +83157,8 @@ const _sfc_main$l = defineComponent$2({
|
|
|
83161
83157
|
isLoading: {}
|
|
83162
83158
|
},
|
|
83163
83159
|
emits: ["update:search", "refreshList", "openColumnsManager"],
|
|
83164
|
-
setup(__props, { emit:
|
|
83160
|
+
setup(__props, { emit: emits }) {
|
|
83165
83161
|
const props = __props;
|
|
83166
|
-
const emits = __emit;
|
|
83167
83162
|
const searchLocal = computed$3({
|
|
83168
83163
|
get() {
|
|
83169
83164
|
return props.search;
|
|
@@ -83289,9 +83284,8 @@ const _sfc_main$k = defineComponent$2({
|
|
|
83289
83284
|
layout: {}
|
|
83290
83285
|
},
|
|
83291
83286
|
emits: ["refreshList", "update:currentPage"],
|
|
83292
|
-
setup(__props, { emit:
|
|
83287
|
+
setup(__props, { emit: emits }) {
|
|
83293
83288
|
const props = __props;
|
|
83294
|
-
const emits = __emit;
|
|
83295
83289
|
let cleekOptions2 = ref$1();
|
|
83296
83290
|
const currentPageLocal = computed$3({
|
|
83297
83291
|
get() {
|
|
@@ -83700,9 +83694,8 @@ const _sfc_main$j = defineComponent$2({
|
|
|
83700
83694
|
disabled: { type: Boolean }
|
|
83701
83695
|
},
|
|
83702
83696
|
emits: ["update:modelValue", "change"],
|
|
83703
|
-
setup(__props, { emit:
|
|
83697
|
+
setup(__props, { emit: emits }) {
|
|
83704
83698
|
const props = __props;
|
|
83705
|
-
const emits = __emit;
|
|
83706
83699
|
const value = computed({
|
|
83707
83700
|
get() {
|
|
83708
83701
|
return props.modelValue;
|
|
@@ -83795,9 +83788,8 @@ const _sfc_main$i = defineComponent$2({
|
|
|
83795
83788
|
fontSize: {}
|
|
83796
83789
|
},
|
|
83797
83790
|
emits: ["update:modelValue", "cancel", "accept"],
|
|
83798
|
-
setup(__props, { emit:
|
|
83791
|
+
setup(__props, { emit: emits }) {
|
|
83799
83792
|
const props = __props;
|
|
83800
|
-
const emits = __emit;
|
|
83801
83793
|
let cleekOptions2 = ref$1();
|
|
83802
83794
|
const isActive = computed$3({
|
|
83803
83795
|
get() {
|
|
@@ -84034,9 +84026,8 @@ const _sfc_main$h = defineComponent$2({
|
|
|
84034
84026
|
columnsArray: {}
|
|
84035
84027
|
},
|
|
84036
84028
|
emits: ["update:modelValue"],
|
|
84037
|
-
setup(__props, { emit:
|
|
84029
|
+
setup(__props, { emit: emits }) {
|
|
84038
84030
|
const props = __props;
|
|
84039
|
-
const emits = __emit;
|
|
84040
84031
|
let columnsCheckable = ref$1([]);
|
|
84041
84032
|
const isActive = computed$3({
|
|
84042
84033
|
get() {
|
|
@@ -84159,9 +84150,8 @@ const _sfc_main$g = defineComponent$2({
|
|
|
84159
84150
|
mobileMaxWidth: {}
|
|
84160
84151
|
},
|
|
84161
84152
|
emits: ["refreshList", "update:search", "update:currentPage"],
|
|
84162
|
-
setup(__props, { emit:
|
|
84153
|
+
setup(__props, { emit: emits }) {
|
|
84163
84154
|
const props = __props;
|
|
84164
|
-
const emits = __emit;
|
|
84165
84155
|
let cleekOptions2 = ref$1();
|
|
84166
84156
|
const { windowWidth } = useWindowWidth();
|
|
84167
84157
|
const isPopupActive = ref$1({
|
|
@@ -84399,7 +84389,7 @@ const _sfc_main$g = defineComponent$2({
|
|
|
84399
84389
|
};
|
|
84400
84390
|
}
|
|
84401
84391
|
});
|
|
84402
|
-
var ckTable = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-
|
|
84392
|
+
var ckTable = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-d9e82628"]]);
|
|
84403
84393
|
var ckPagination_vue_vue_type_style_index_0_lang = "";
|
|
84404
84394
|
const _sfc_main$f = defineComponent$2({
|
|
84405
84395
|
__name: "ck-pagination",
|
|
@@ -84409,9 +84399,8 @@ const _sfc_main$f = defineComponent$2({
|
|
|
84409
84399
|
align: {}
|
|
84410
84400
|
},
|
|
84411
84401
|
emits: ["update:modelValue"],
|
|
84412
|
-
setup(__props, { emit:
|
|
84402
|
+
setup(__props, { emit: emits }) {
|
|
84413
84403
|
const props = __props;
|
|
84414
|
-
const emits = __emit;
|
|
84415
84404
|
const currentStep = computed$3({
|
|
84416
84405
|
get() {
|
|
84417
84406
|
return props.modelValue;
|
|
@@ -89563,10 +89552,9 @@ const _sfc_main$e = defineComponent$2({
|
|
|
89563
89552
|
groupVertical: {}
|
|
89564
89553
|
},
|
|
89565
89554
|
emits: ["update:modelValue", "change"],
|
|
89566
|
-
setup(__props, { emit:
|
|
89567
|
-
let cleekOptions2 = ref$1();
|
|
89555
|
+
setup(__props, { emit: emits }) {
|
|
89568
89556
|
const props = __props;
|
|
89569
|
-
|
|
89557
|
+
let cleekOptions2 = ref$1();
|
|
89570
89558
|
const { windowWidth } = useWindowWidth();
|
|
89571
89559
|
const refFocusAbsorber = ref$1(null);
|
|
89572
89560
|
const random = ref$1(Math.floor(Math.random() * 1e3));
|
|
@@ -89723,9 +89711,8 @@ const _sfc_main$d = defineComponent$2({
|
|
|
89723
89711
|
groupVertical: {}
|
|
89724
89712
|
},
|
|
89725
89713
|
emits: ["update:modelValue", "change"],
|
|
89726
|
-
setup(__props, { emit:
|
|
89714
|
+
setup(__props, { emit: emits }) {
|
|
89727
89715
|
const props = __props;
|
|
89728
|
-
const emits = __emit;
|
|
89729
89716
|
const inputValue = computed$3({
|
|
89730
89717
|
get() {
|
|
89731
89718
|
if (typeof props.modelValue !== "number")
|
|
@@ -89775,9 +89762,8 @@ const _sfc_main$c = defineComponent$2({
|
|
|
89775
89762
|
layout: {}
|
|
89776
89763
|
},
|
|
89777
89764
|
emits: ["update:modelValue", "closeCard"],
|
|
89778
|
-
setup(__props, { emit:
|
|
89765
|
+
setup(__props, { emit: emits }) {
|
|
89779
89766
|
const props = __props;
|
|
89780
|
-
const emits = __emit;
|
|
89781
89767
|
let cleekOptions2 = ref$1();
|
|
89782
89768
|
const isActive = computed$3({
|
|
89783
89769
|
get() {
|
|
@@ -89855,9 +89841,8 @@ const _sfc_main$b = defineComponent$2({
|
|
|
89855
89841
|
iconPack: {}
|
|
89856
89842
|
},
|
|
89857
89843
|
emits: ["click"],
|
|
89858
|
-
setup(__props, { emit:
|
|
89844
|
+
setup(__props, { emit: emits }) {
|
|
89859
89845
|
const props = __props;
|
|
89860
|
-
const emits = __emit;
|
|
89861
89846
|
const computedClass = computed$3(() => {
|
|
89862
89847
|
const list = [];
|
|
89863
89848
|
if (!props.color || hooks9.isColorTemplateVariable(props.color)) {
|
|
@@ -89885,7 +89870,7 @@ const _sfc_main$b = defineComponent$2({
|
|
|
89885
89870
|
style: normalizeStyle$2(computedStyle.value),
|
|
89886
89871
|
onClick: _cache[0] || (_cache[0] = ($event) => emits("click", $event))
|
|
89887
89872
|
}, [
|
|
89888
|
-
_ctx.icon
|
|
89873
|
+
_ctx.icon ? (openBlock$2(), createBlock$2(CkIcon, {
|
|
89889
89874
|
key: 0,
|
|
89890
89875
|
class: "pr-2",
|
|
89891
89876
|
icon: _ctx.icon,
|
|
@@ -89894,17 +89879,17 @@ const _sfc_main$b = defineComponent$2({
|
|
|
89894
89879
|
createElementVNode("span", null, [
|
|
89895
89880
|
renderSlot$2(_ctx.$slots, "default", {}, void 0, true)
|
|
89896
89881
|
]),
|
|
89897
|
-
_ctx.
|
|
89882
|
+
_ctx.iconRight ? (openBlock$2(), createBlock$2(CkIcon, {
|
|
89898
89883
|
key: 1,
|
|
89899
89884
|
class: "pl-2",
|
|
89900
|
-
icon: _ctx.
|
|
89885
|
+
icon: _ctx.iconRight,
|
|
89901
89886
|
"icon-pack": _ctx.iconPack
|
|
89902
89887
|
}, null, 8, ["icon", "icon-pack"])) : createCommentVNode$2("", true)
|
|
89903
89888
|
], 14, _hoisted_1$a);
|
|
89904
89889
|
};
|
|
89905
89890
|
}
|
|
89906
89891
|
});
|
|
89907
|
-
var ckChip = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-
|
|
89892
|
+
var ckChip = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-1f111567"]]);
|
|
89908
89893
|
var ckDiv_vue_vue_type_style_index_0_lang = "";
|
|
89909
89894
|
const _sfc_main$a = defineComponent$2({
|
|
89910
89895
|
__name: "ck-div",
|
|
@@ -89914,9 +89899,8 @@ const _sfc_main$a = defineComponent$2({
|
|
|
89914
89899
|
gap: {}
|
|
89915
89900
|
},
|
|
89916
89901
|
emits: ["click"],
|
|
89917
|
-
setup(__props, { emit:
|
|
89902
|
+
setup(__props, { emit: emits }) {
|
|
89918
89903
|
const props = __props;
|
|
89919
|
-
const emits = __emit;
|
|
89920
89904
|
const { windowWidth } = useWindowWidth();
|
|
89921
89905
|
let cleekOptions2 = ref$1();
|
|
89922
89906
|
const computedStyle = computed$3(() => {
|
|
@@ -90097,9 +90081,8 @@ const _sfc_main$8 = defineComponent$2({
|
|
|
90097
90081
|
label: {}
|
|
90098
90082
|
},
|
|
90099
90083
|
emits: ["update:modelValue", "change"],
|
|
90100
|
-
setup(__props, { emit:
|
|
90084
|
+
setup(__props, { emit: emits }) {
|
|
90101
90085
|
const props = __props;
|
|
90102
|
-
const emits = __emit;
|
|
90103
90086
|
const value = computed$3({
|
|
90104
90087
|
get() {
|
|
90105
90088
|
return props.modelValue;
|
|
@@ -90222,9 +90205,8 @@ const _sfc_main$7 = defineComponent$2({
|
|
|
90222
90205
|
backgroundColor: {}
|
|
90223
90206
|
},
|
|
90224
90207
|
emits: ["update:modelValue", "click", "change"],
|
|
90225
|
-
setup(__props, { expose: __expose, emit:
|
|
90208
|
+
setup(__props, { expose: __expose, emit: emits }) {
|
|
90226
90209
|
const props = __props;
|
|
90227
|
-
const emits = __emit;
|
|
90228
90210
|
__expose({
|
|
90229
90211
|
setFocus
|
|
90230
90212
|
});
|
|
@@ -90497,9 +90479,8 @@ const _sfc_main$6 = defineComponent$2({
|
|
|
90497
90479
|
notCloseBtn: { type: Boolean }
|
|
90498
90480
|
},
|
|
90499
90481
|
emits: ["update:modelValue"],
|
|
90500
|
-
setup(__props, { emit:
|
|
90482
|
+
setup(__props, { emit: emits }) {
|
|
90501
90483
|
const props = __props;
|
|
90502
|
-
const emits = __emit;
|
|
90503
90484
|
const isActive = computed$3({
|
|
90504
90485
|
get() {
|
|
90505
90486
|
return props.modelValue;
|
|
@@ -90593,9 +90574,8 @@ const _sfc_main$5 = defineComponent$2({
|
|
|
90593
90574
|
iconPack: {}
|
|
90594
90575
|
},
|
|
90595
90576
|
emits: ["update:modelValue", "click"],
|
|
90596
|
-
setup(__props, { emit:
|
|
90577
|
+
setup(__props, { emit: emits }) {
|
|
90597
90578
|
const props = __props;
|
|
90598
|
-
const emits = __emit;
|
|
90599
90579
|
let cleekOptions2 = ref$1();
|
|
90600
90580
|
const value = computed$3({
|
|
90601
90581
|
get() {
|
|
@@ -90711,10 +90691,9 @@ const _sfc_main$4 = defineComponent$2({
|
|
|
90711
90691
|
sameWidthOptions: { type: Boolean }
|
|
90712
90692
|
},
|
|
90713
90693
|
emits: ["update:modelValue", "change"],
|
|
90714
|
-
setup(__props, { emit:
|
|
90715
|
-
const defaultReduceFunction = (option) => option.id;
|
|
90694
|
+
setup(__props, { emit: emits }) {
|
|
90716
90695
|
const props = __props;
|
|
90717
|
-
const
|
|
90696
|
+
const defaultReduceFunction = (option) => option.id;
|
|
90718
90697
|
const { windowWidth } = useWindowWidth();
|
|
90719
90698
|
const selectedOption = computed$3({
|
|
90720
90699
|
get() {
|
|
@@ -90798,9 +90777,8 @@ const _sfc_main$3 = defineComponent$2({
|
|
|
90798
90777
|
labelAlign: {}
|
|
90799
90778
|
},
|
|
90800
90779
|
emits: ["update:modelValue", "input", "change", "click"],
|
|
90801
|
-
setup(__props, { emit:
|
|
90780
|
+
setup(__props, { emit: emits }) {
|
|
90802
90781
|
const props = __props;
|
|
90803
|
-
const emits = __emit;
|
|
90804
90782
|
let cleekOptions2 = ref$1();
|
|
90805
90783
|
const refTextarea = ref$1(null);
|
|
90806
90784
|
const { windowWidth } = useWindowWidth();
|
|
@@ -91206,11 +91184,20 @@ var components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProp
|
|
|
91206
91184
|
library$1$2.add(icons$2);
|
|
91207
91185
|
library$1$2.add(icons$1);
|
|
91208
91186
|
library$1$2.add(icons);
|
|
91187
|
+
function hexToRgb(hex) {
|
|
91188
|
+
hex = hex.replace(/^#/, "");
|
|
91189
|
+
const r = parseInt(hex.substring(0, 2), 16);
|
|
91190
|
+
const g2 = parseInt(hex.substring(2, 4), 16);
|
|
91191
|
+
const b4 = parseInt(hex.substring(4, 6), 16);
|
|
91192
|
+
return { r, g: g2, b: b4 };
|
|
91193
|
+
}
|
|
91209
91194
|
function setRootColors(colors) {
|
|
91210
|
-
|
|
91195
|
+
const r = document.querySelector(":root");
|
|
91211
91196
|
for (const key in colors) {
|
|
91212
|
-
const
|
|
91213
|
-
|
|
91197
|
+
const colorHex = colors[key];
|
|
91198
|
+
const rgbColor = hexToRgb(colors[key]);
|
|
91199
|
+
r.style.setProperty(`--${key}`, colorHex);
|
|
91200
|
+
r.style.setProperty(`--${key}-rgb`, `${rgbColor.r}, ${rgbColor.g}, ${rgbColor.b}`);
|
|
91214
91201
|
}
|
|
91215
91202
|
}
|
|
91216
91203
|
function getCleekOptions(userOptions) {
|