cleek 2.3.38 → 2.3.39
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 +51 -96
- package/dist/cleek.umd.js +6 -6
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/cleek.es.js
CHANGED
|
@@ -16336,20 +16336,10 @@ defineComponent({
|
|
|
16336
16336
|
}
|
|
16337
16337
|
});
|
|
16338
16338
|
var functions = {
|
|
16339
|
-
|
|
16340
|
-
|
|
16341
|
-
if (group)
|
|
16342
|
-
classList2.push(`ck-component__group--${group}`);
|
|
16343
|
-
if (groupVertical)
|
|
16344
|
-
classList2.push(`ck-component__group-vertical--${groupVertical}`);
|
|
16345
|
-
if (lineBreak) {
|
|
16346
|
-
if (lineBreak === "s") {
|
|
16347
|
-
classList2.push(`ck-component__line-break--${lineBreak}`);
|
|
16348
|
-
}
|
|
16349
|
-
}
|
|
16350
|
-
return classList2;
|
|
16339
|
+
getCleekOptions(getCurrentInstance2) {
|
|
16340
|
+
return getCurrentInstance2().appContext.app.config.globalProperties.$cleekOptions;
|
|
16351
16341
|
},
|
|
16352
|
-
|
|
16342
|
+
getGroupClass({ group = "", groupVertical = "", widthBreaks = [] } = {}, windowWidth) {
|
|
16353
16343
|
const componentWidth = this.getWidthByWidthBreaks(widthBreaks, windowWidth);
|
|
16354
16344
|
const classList2 = [];
|
|
16355
16345
|
if (group && componentWidth !== "100%")
|
|
@@ -16358,31 +16348,6 @@ var functions = {
|
|
|
16358
16348
|
classList2.push(`ck-component__group-vertical--${groupVertical}`);
|
|
16359
16349
|
return classList2;
|
|
16360
16350
|
},
|
|
16361
|
-
getGroupClassContainer({ lineBreak = "" } = "") {
|
|
16362
|
-
const classList2 = [];
|
|
16363
|
-
if (lineBreak) {
|
|
16364
|
-
if (lineBreak === "s") {
|
|
16365
|
-
classList2.push(`ck-component__line-break-container--${lineBreak}`);
|
|
16366
|
-
}
|
|
16367
|
-
}
|
|
16368
|
-
return classList2;
|
|
16369
|
-
},
|
|
16370
|
-
getlineBreakStyleContainer({ lineBreak } = {}, windowWidth) {
|
|
16371
|
-
if (windowWidth <= lineBreak) {
|
|
16372
|
-
return [
|
|
16373
|
-
{ width: "100%" }
|
|
16374
|
-
];
|
|
16375
|
-
}
|
|
16376
|
-
},
|
|
16377
|
-
getlineBreakStyle({ lineBreak } = {}, windowWidth) {
|
|
16378
|
-
if (windowWidth <= lineBreak) {
|
|
16379
|
-
return [
|
|
16380
|
-
{ width: "100%" },
|
|
16381
|
-
{ borderRadius: "4px !important" },
|
|
16382
|
-
{ border: "1px solid #DAE1E7 !important" }
|
|
16383
|
-
];
|
|
16384
|
-
}
|
|
16385
|
-
},
|
|
16386
16351
|
getWidthByWidthBreaks(widthBreaks, windowWidth) {
|
|
16387
16352
|
if (widthBreaks) {
|
|
16388
16353
|
let realWidthBreaks = [...widthBreaks];
|
|
@@ -16425,9 +16390,6 @@ var functions = {
|
|
|
16425
16390
|
return false;
|
|
16426
16391
|
}
|
|
16427
16392
|
return true;
|
|
16428
|
-
},
|
|
16429
|
-
getCleekOptions(getCurrentInstance2) {
|
|
16430
|
-
return getCurrentInstance2().appContext.app.config.globalProperties.$cleekOptions;
|
|
16431
16393
|
}
|
|
16432
16394
|
};
|
|
16433
16395
|
var ckIcon_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
@@ -16778,7 +16740,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
16778
16740
|
label: { type: String, default: void 0 },
|
|
16779
16741
|
labelAlign: { type: String, default: void 0 },
|
|
16780
16742
|
group: { type: String, default: void 0, validator: validators.group },
|
|
16781
|
-
|
|
16743
|
+
widthBreaks: { type: Array, default: void 0 },
|
|
16782
16744
|
groupVertical: { type: String, default: void 0, validator: validators.groupVertical }
|
|
16783
16745
|
},
|
|
16784
16746
|
emits: ["click"],
|
|
@@ -16798,32 +16760,39 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
16798
16760
|
return defaultButtonType;
|
|
16799
16761
|
});
|
|
16800
16762
|
const computedClass = computed$2(() => {
|
|
16801
|
-
const
|
|
16802
|
-
|
|
16763
|
+
const list = [];
|
|
16764
|
+
list.push(functions.getGroupClass(props, windowWidth.value));
|
|
16803
16765
|
if (props.color !== "primary") {
|
|
16804
16766
|
if (realButtonType.value === "filled") {
|
|
16805
|
-
|
|
16767
|
+
list.push(`ck-component__bg-color--${props.color}`);
|
|
16806
16768
|
} else {
|
|
16807
|
-
|
|
16769
|
+
list.push(`ck-component__border-color--${props.color}`);
|
|
16808
16770
|
}
|
|
16809
16771
|
}
|
|
16810
16772
|
if (props.align === "center" || props.align === "right") {
|
|
16811
|
-
|
|
16773
|
+
list.push(`ck-button__align--${props.align}`);
|
|
16812
16774
|
}
|
|
16813
16775
|
if (props.rounded)
|
|
16814
16776
|
console.log("rounded");
|
|
16815
16777
|
if (props.rounded)
|
|
16816
|
-
|
|
16817
|
-
|
|
16778
|
+
list.push("rounded");
|
|
16779
|
+
list.push(`type-${realButtonType.value}`);
|
|
16818
16780
|
if (props.size)
|
|
16819
|
-
|
|
16820
|
-
return
|
|
16781
|
+
list.push(`ck-button-size__${props.size}`);
|
|
16782
|
+
return list;
|
|
16821
16783
|
});
|
|
16822
16784
|
const computedStyle = computed$2(() => {
|
|
16823
16785
|
const list = [];
|
|
16824
|
-
|
|
16786
|
+
let isWidthDefined = false;
|
|
16787
|
+
if (props.widthBreaks) {
|
|
16788
|
+
const width = functions.getWidthByWidthBreaks(props.widthBreaks, windowWidth.value);
|
|
16789
|
+
if (width) {
|
|
16790
|
+
isWidthDefined = true;
|
|
16791
|
+
list.push({ width });
|
|
16792
|
+
}
|
|
16793
|
+
}
|
|
16794
|
+
if (props.width && !isWidthDefined)
|
|
16825
16795
|
list.push({ width: props.width });
|
|
16826
|
-
list.push(functions.getlineBreakStyle(props, windowWidth.value));
|
|
16827
16796
|
return list;
|
|
16828
16797
|
});
|
|
16829
16798
|
function onClick(event) {
|
|
@@ -16860,7 +16829,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
16860
16829
|
};
|
|
16861
16830
|
}
|
|
16862
16831
|
});
|
|
16863
|
-
var ckButton = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-
|
|
16832
|
+
var ckButton = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-6555a0e0"]]);
|
|
16864
16833
|
var ckLabel_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
16865
16834
|
const _hoisted_1$f = ["for"];
|
|
16866
16835
|
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
@@ -16908,7 +16877,6 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
16908
16877
|
group: { type: String, default: void 0 },
|
|
16909
16878
|
groupVertical: { type: String, default: void 0 },
|
|
16910
16879
|
widthBreaks: { type: Array, default: void 0 },
|
|
16911
|
-
lineBreak: { type: [String, Number], default: "" },
|
|
16912
16880
|
size: { type: String, default: "m", validator: validators.size },
|
|
16913
16881
|
hideBorder: { type: Boolean, default: false },
|
|
16914
16882
|
width: { type: String, default: void 0 },
|
|
@@ -16948,14 +16916,9 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
16948
16916
|
const onChange2 = (event) => {
|
|
16949
16917
|
emits("change", event);
|
|
16950
16918
|
};
|
|
16951
|
-
const computedClass = computed$2(() => {
|
|
16952
|
-
const list = [];
|
|
16953
|
-
list.push(functions.getGroupClassContainer(props));
|
|
16954
|
-
return list;
|
|
16955
|
-
});
|
|
16956
16919
|
const computedClassInput = computed$2(() => {
|
|
16957
16920
|
const list = [];
|
|
16958
|
-
list.push(functions.
|
|
16921
|
+
list.push(functions.getGroupClass(props, windowWidth.value));
|
|
16959
16922
|
if (props.icon)
|
|
16960
16923
|
list.push("has-icon-left");
|
|
16961
16924
|
if (props.iconRight)
|
|
@@ -16972,6 +16935,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
16972
16935
|
});
|
|
16973
16936
|
const computedStyle = computed$2(() => {
|
|
16974
16937
|
const list = [];
|
|
16938
|
+
list.push({ width: props.width });
|
|
16975
16939
|
if (props.widthBreaks) {
|
|
16976
16940
|
const width = functions.getWidthByWidthBreaks(props.widthBreaks, windowWidth.value);
|
|
16977
16941
|
if (width)
|
|
@@ -16979,13 +16943,6 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
16979
16943
|
}
|
|
16980
16944
|
return list;
|
|
16981
16945
|
});
|
|
16982
|
-
const computedStyleInput = computed$2(() => {
|
|
16983
|
-
const list = [];
|
|
16984
|
-
if (props.width || !props.lineBreak)
|
|
16985
|
-
list.push({ width: props.width });
|
|
16986
|
-
list.push(functions.getlineBreakStyle(props, windowWidth.value));
|
|
16987
|
-
return list;
|
|
16988
|
-
});
|
|
16989
16946
|
function setFocus() {
|
|
16990
16947
|
realInput.value.focus();
|
|
16991
16948
|
}
|
|
@@ -16994,7 +16951,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
16994
16951
|
}
|
|
16995
16952
|
return (_ctx, _cache) => {
|
|
16996
16953
|
return openBlock(), createElementBlock("div", {
|
|
16997
|
-
class:
|
|
16954
|
+
class: "ck-input",
|
|
16998
16955
|
style: normalizeStyle(unref$1(computedStyle))
|
|
16999
16956
|
}, [
|
|
17000
16957
|
__props.label ? (openBlock(), createBlock(ckLabel, {
|
|
@@ -17023,12 +16980,11 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
17023
16980
|
type: __props.type,
|
|
17024
16981
|
placeholder: __props.placeholder,
|
|
17025
16982
|
class: normalizeClass(unref$1(computedClassInput)),
|
|
17026
|
-
style: normalizeStyle(unref$1(computedStyleInput)),
|
|
17027
16983
|
disabled: __props.disabled,
|
|
17028
16984
|
onChange: _cache[1] || (_cache[1] = ($event) => onChange2($event)),
|
|
17029
16985
|
onInput: _cache[2] || (_cache[2] = ($event) => onInput($event)),
|
|
17030
16986
|
onClick: _cache[3] || (_cache[3] = ($event) => onClick($event))
|
|
17031
|
-
}, null,
|
|
16987
|
+
}, null, 42, _hoisted_1$e), [
|
|
17032
16988
|
[vModelDynamic, unref$1(value)]
|
|
17033
16989
|
]),
|
|
17034
16990
|
__props.iconRight ? (openBlock(), createBlock(ckIcon, {
|
|
@@ -17038,11 +16994,11 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
17038
16994
|
icon: __props.iconRight,
|
|
17039
16995
|
"icon-pack": __props.iconPack
|
|
17040
16996
|
}, null, 8, ["icon", "icon-pack"])) : createCommentVNode("", true)
|
|
17041
|
-
],
|
|
16997
|
+
], 4);
|
|
17042
16998
|
};
|
|
17043
16999
|
}
|
|
17044
17000
|
});
|
|
17045
|
-
var ckInput = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-
|
|
17001
|
+
var ckInput = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-35324670"]]);
|
|
17046
17002
|
var ckTable__headerItems_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
17047
17003
|
const _hoisted_1$d = { class: "ck-table__header-items" };
|
|
17048
17004
|
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
@@ -19030,7 +18986,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
19030
18986
|
bgTransparent: { type: Boolean, default: false },
|
|
19031
18987
|
disabled: { type: [Boolean, Number], default: false },
|
|
19032
18988
|
group: { type: String, default: "" },
|
|
19033
|
-
|
|
18989
|
+
widthBreaks: { type: Array, default: void 0 },
|
|
19034
18990
|
groupVertical: { type: String, default: "" },
|
|
19035
18991
|
label: { type: String, default: "" },
|
|
19036
18992
|
labelAlign: { type: String, default: "" }
|
|
@@ -19063,25 +19019,23 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
19063
19019
|
return list;
|
|
19064
19020
|
});
|
|
19065
19021
|
const computedClassSelect = computed$2(() => {
|
|
19066
|
-
const classList2 = [];
|
|
19067
|
-
classList2.push(functions.getGroupClass(props));
|
|
19068
|
-
return classList2;
|
|
19069
|
-
});
|
|
19070
|
-
const computedStyleSelect = computed$2(() => {
|
|
19071
19022
|
const list = [];
|
|
19072
|
-
list.push(functions.
|
|
19023
|
+
list.push(functions.getGroupClass(props, windowWidth.value));
|
|
19073
19024
|
return list;
|
|
19074
19025
|
});
|
|
19075
|
-
const computedClass = computed$2(() => {
|
|
19076
|
-
const classList2 = [];
|
|
19077
|
-
classList2.push(functions.getGroupClassContainer(props));
|
|
19078
|
-
return classList2;
|
|
19079
|
-
});
|
|
19080
19026
|
const computedStyle = computed$2(() => {
|
|
19081
19027
|
const list = [];
|
|
19082
|
-
|
|
19028
|
+
let isWidthDefined = false;
|
|
19029
|
+
if (props.widthBreaks) {
|
|
19030
|
+
const width = functions.getWidthByWidthBreaks(props.widthBreaks, windowWidth.value);
|
|
19031
|
+
if (width) {
|
|
19032
|
+
list.push({ width });
|
|
19033
|
+
isWidthDefined = true;
|
|
19034
|
+
}
|
|
19035
|
+
}
|
|
19036
|
+
if (!isWidthDefined && props.minWidth) {
|
|
19083
19037
|
list.push({ "min-width": props.minWidth });
|
|
19084
|
-
|
|
19038
|
+
}
|
|
19085
19039
|
return list;
|
|
19086
19040
|
});
|
|
19087
19041
|
computed$2(() => {
|
|
@@ -19146,7 +19100,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
19146
19100
|
}
|
|
19147
19101
|
return (_ctx, _cache) => {
|
|
19148
19102
|
return openBlock(), createElementBlock("div", {
|
|
19149
|
-
class:
|
|
19103
|
+
class: "ck-select",
|
|
19150
19104
|
style: normalizeStyle(unref$1(computedStyle))
|
|
19151
19105
|
}, [
|
|
19152
19106
|
__props.label ? (openBlock(), createBlock(ckLabel, {
|
|
@@ -19162,7 +19116,6 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
19162
19116
|
withDirectives(createElementVNode("select", {
|
|
19163
19117
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef$1(value) ? value.value = $event : null),
|
|
19164
19118
|
class: normalizeClass(unref$1(computedClassSelect)),
|
|
19165
|
-
style: normalizeStyle(unref$1(computedStyleSelect)),
|
|
19166
19119
|
onClick: _cache[1] || (_cache[1] = ($event) => onClick($event)),
|
|
19167
19120
|
onChange: _cache[2] || (_cache[2] = ($event) => onChange2($event))
|
|
19168
19121
|
}, [
|
|
@@ -19172,14 +19125,14 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
19172
19125
|
key: option
|
|
19173
19126
|
}, toDisplayString(getOptionName(option)), 9, _hoisted_1$4);
|
|
19174
19127
|
}), 128))
|
|
19175
|
-
],
|
|
19128
|
+
], 34), [
|
|
19176
19129
|
[vModelSelect, unref$1(value)]
|
|
19177
19130
|
])
|
|
19178
|
-
],
|
|
19131
|
+
], 4);
|
|
19179
19132
|
};
|
|
19180
19133
|
}
|
|
19181
19134
|
});
|
|
19182
|
-
var ckSelect = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-
|
|
19135
|
+
var ckSelect = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-93db8c36"]]);
|
|
19183
19136
|
var ckSwitch_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
19184
19137
|
const _withScopeId = (n) => (pushScopeId("data-v-7e2f20c4"), n = n(), popScopeId(), n);
|
|
19185
19138
|
const _hoisted_1$3 = ["disabled"];
|
|
@@ -19295,12 +19248,14 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
19295
19248
|
labelAlign: { type: String, default: "" },
|
|
19296
19249
|
group: { type: String, default: "" },
|
|
19297
19250
|
lineBreak: { type: [String, Number], default: "" },
|
|
19251
|
+
widthBreaks: { type: Array, default: void 0 },
|
|
19298
19252
|
groupVertical: { type: String, default: "" },
|
|
19299
19253
|
sameWidthOptions: { type: Boolean, default: false }
|
|
19300
19254
|
},
|
|
19301
19255
|
emits: ["update:modelValue", "change"],
|
|
19302
19256
|
setup(__props, { emit: emits }) {
|
|
19303
19257
|
const props = __props;
|
|
19258
|
+
const { windowWidth } = useWindowWidth();
|
|
19304
19259
|
const selectedOption = computed$2({
|
|
19305
19260
|
get() {
|
|
19306
19261
|
return props.modelValue;
|
|
@@ -19311,9 +19266,9 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
19311
19266
|
}
|
|
19312
19267
|
});
|
|
19313
19268
|
const computedClass = computed$2(() => {
|
|
19314
|
-
const
|
|
19315
|
-
|
|
19316
|
-
return
|
|
19269
|
+
const list = [];
|
|
19270
|
+
list.push(functions.getGroupClass(props, windowWidth.value));
|
|
19271
|
+
return list;
|
|
19317
19272
|
});
|
|
19318
19273
|
const computedItemStyle = computed$2(() => {
|
|
19319
19274
|
const list = [];
|
|
@@ -19353,7 +19308,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
19353
19308
|
};
|
|
19354
19309
|
}
|
|
19355
19310
|
});
|
|
19356
|
-
var ckSwitchOptions = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-
|
|
19311
|
+
var ckSwitchOptions = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-f6a5151e"]]);
|
|
19357
19312
|
var ckTextarea_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
19358
19313
|
const _hoisted_1$1 = { class: "ck-textarea" };
|
|
19359
19314
|
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|