cleek 2.4.5 → 2.4.8
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 +32 -15
- package/dist/cleek.umd.js +7 -7
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/cleek.es.js
CHANGED
|
@@ -18792,6 +18792,15 @@ var ckTr_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
|
18792
18792
|
const _sfc_main$o = {};
|
|
18793
18793
|
var CkTr = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", render2], ["__scopeId", "data-v-519cf874"]]);
|
|
18794
18794
|
var functions = {
|
|
18795
|
+
getBorderColorValue(propBorderColor, cleekOptions2) {
|
|
18796
|
+
var _a;
|
|
18797
|
+
if (typeof propBorderColor !== "undefined")
|
|
18798
|
+
return propBorderColor;
|
|
18799
|
+
if (typeof ((_a = cleekOptions2 == null ? void 0 : cleekOptions2.styles) == null ? void 0 : _a.borderColor) !== "undefined") {
|
|
18800
|
+
return cleekOptions2.styles.borderColor;
|
|
18801
|
+
}
|
|
18802
|
+
return "";
|
|
18803
|
+
},
|
|
18795
18804
|
getCleekOptions(getCurrentInstance2) {
|
|
18796
18805
|
return getCurrentInstance2().appContext.app.config.globalProperties.$cleekOptions;
|
|
18797
18806
|
},
|
|
@@ -18808,16 +18817,12 @@ var functions = {
|
|
|
18808
18817
|
classList2.push(`ck-component__group-vertical--${groupVertical}`);
|
|
18809
18818
|
return classList2;
|
|
18810
18819
|
},
|
|
18811
|
-
getRoundedValue(propIsRounded,
|
|
18812
|
-
|
|
18820
|
+
getRoundedValue(propIsRounded, cleekOptionsIsRounded) {
|
|
18821
|
+
console.log("propIsRounded", propIsRounded);
|
|
18813
18822
|
if (typeof propIsRounded !== "undefined")
|
|
18814
18823
|
return propIsRounded;
|
|
18815
|
-
if (typeof
|
|
18816
|
-
return
|
|
18817
|
-
}
|
|
18818
|
-
if (typeof ((_b = cleekOptions2 == null ? void 0 : cleekOptions2.button) == null ? void 0 : _b.rounded) !== "undefined") {
|
|
18819
|
-
return cleekOptions2.button.rounded;
|
|
18820
|
-
}
|
|
18824
|
+
if (typeof cleekOptionsIsRounded !== "undefined")
|
|
18825
|
+
return cleekOptionsIsRounded;
|
|
18821
18826
|
return false;
|
|
18822
18827
|
},
|
|
18823
18828
|
getWidthByWidthBreaks(widthBreaks, windowWidth) {
|
|
@@ -20909,6 +20914,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
20909
20914
|
return defaultButtonType;
|
|
20910
20915
|
});
|
|
20911
20916
|
const computedClass = computed$2(() => {
|
|
20917
|
+
var _a, _b;
|
|
20912
20918
|
const list = [];
|
|
20913
20919
|
list.push(functions.getGroupClass(props, windowWidth.value));
|
|
20914
20920
|
const color = props.color || defaultColor;
|
|
@@ -20923,7 +20929,10 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
20923
20929
|
if (align === "center" || align === "right") {
|
|
20924
20930
|
list.push(`ck-button__align--${props.align}`);
|
|
20925
20931
|
}
|
|
20926
|
-
if (
|
|
20932
|
+
if ((_a = cleekOptions2 == null ? void 0 : cleekOptions2.styles) == null ? void 0 : _a.rounded) {
|
|
20933
|
+
console.log("AHORA SI");
|
|
20934
|
+
}
|
|
20935
|
+
if (functions.getRoundedValue(props.rounded, (_b = cleekOptions2 == null ? void 0 : cleekOptions2.styles) == null ? void 0 : _b.rounded))
|
|
20927
20936
|
list.push("rounded");
|
|
20928
20937
|
list.push(`type-${realButtonType.value}`);
|
|
20929
20938
|
if (props.size)
|
|
@@ -20982,7 +20991,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
20982
20991
|
};
|
|
20983
20992
|
}
|
|
20984
20993
|
});
|
|
20985
|
-
var CkButton = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-
|
|
20994
|
+
var CkButton = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-6faa59d2"]]);
|
|
20986
20995
|
var ckLabel_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
20987
20996
|
const _hoisted_1$h = ["for"];
|
|
20988
20997
|
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
@@ -21078,6 +21087,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
21078
21087
|
emits("change", event);
|
|
21079
21088
|
};
|
|
21080
21089
|
const computedClassInput = computed$2(() => {
|
|
21090
|
+
var _a;
|
|
21081
21091
|
const list = [];
|
|
21082
21092
|
list.push(functions.getGroupClass(props, windowWidth.value));
|
|
21083
21093
|
if (props.icon)
|
|
@@ -21088,7 +21098,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
21088
21098
|
list.push(`align--${props.align}`);
|
|
21089
21099
|
if (props.hideBorder)
|
|
21090
21100
|
list.push("no-border");
|
|
21091
|
-
if (functions.getRoundedValue(props.rounded, cleekOptions2))
|
|
21101
|
+
if (functions.getRoundedValue(props.rounded, (_a = cleekOptions2 == null ? void 0 : cleekOptions2.styles) == null ? void 0 : _a.rounded))
|
|
21092
21102
|
list.push("rounded");
|
|
21093
21103
|
if (props.size)
|
|
21094
21104
|
list.push(`ck-input-size__${props.size}`);
|
|
@@ -21191,7 +21201,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
21191
21201
|
};
|
|
21192
21202
|
}
|
|
21193
21203
|
});
|
|
21194
|
-
var CkInput = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-
|
|
21204
|
+
var CkInput = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-302d09e9"]]);
|
|
21195
21205
|
var ckTable__headerItems_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
21196
21206
|
const _hoisted_1$f = { class: "ck-table__header-items" };
|
|
21197
21207
|
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
@@ -22992,19 +23002,25 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
22992
23002
|
return true;
|
|
22993
23003
|
});
|
|
22994
23004
|
const computedClassSelect = computed$2(() => {
|
|
23005
|
+
var _a;
|
|
22995
23006
|
const list = [];
|
|
22996
23007
|
list.push(functions.getGroupClass(props, windowWidth.value));
|
|
22997
|
-
if (functions.getRoundedValue(props.rounded, cleekOptions2))
|
|
23008
|
+
if (functions.getRoundedValue(props.rounded, (_a = cleekOptions2 == null ? void 0 : cleekOptions2.styles) == null ? void 0 : _a.rounded))
|
|
22998
23009
|
list.push("rounded");
|
|
22999
23010
|
if (isClearBtnVisible.value)
|
|
23000
23011
|
list.push("clear-able");
|
|
23001
|
-
|
|
23012
|
+
const borderColor = functions.getBorderColorValue(props.borderColor, cleekOptions2);
|
|
23013
|
+
if (borderColor && functions.isColorTemplateVariable(borderColor)) {
|
|
23002
23014
|
list.push(`ck-input--border-color__${props.borderColor}`);
|
|
23003
23015
|
}
|
|
23004
23016
|
return list;
|
|
23005
23017
|
});
|
|
23006
23018
|
const computedStyleSelect = computed$2(() => {
|
|
23007
23019
|
const list = [];
|
|
23020
|
+
const borderColor = functions.getBorderColorValue(props.borderColor, cleekOptions2);
|
|
23021
|
+
if (borderColor && functions.isColorTemplateVariable(borderColor)) {
|
|
23022
|
+
list.push(`ck-input--border-color__${props.borderColor}`);
|
|
23023
|
+
}
|
|
23008
23024
|
if (props.borderColor && !functions.isColorTemplateVariable(props.borderColor)) {
|
|
23009
23025
|
list.push({ "border-color": props.borderColor });
|
|
23010
23026
|
}
|
|
@@ -23142,7 +23158,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
23142
23158
|
};
|
|
23143
23159
|
}
|
|
23144
23160
|
});
|
|
23145
|
-
var ckSelect = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-
|
|
23161
|
+
var ckSelect = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-41b41172"]]);
|
|
23146
23162
|
var ckSidebar_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
23147
23163
|
const _hoisted_1$5 = {
|
|
23148
23164
|
key: 1,
|
|
@@ -23646,6 +23662,7 @@ function getCleekOptions(userOptions) {
|
|
|
23646
23662
|
}
|
|
23647
23663
|
}
|
|
23648
23664
|
setRootColors(options.colors);
|
|
23665
|
+
console.log("finalOptions", options);
|
|
23649
23666
|
return options;
|
|
23650
23667
|
}
|
|
23651
23668
|
const install = function installCleek(app, options) {
|