cleek 2.4.30 → 2.4.33
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 +45 -10
- package/dist/cleek.umd.js +5 -5
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/cleek.es.js
CHANGED
|
@@ -2906,7 +2906,9 @@ const cleekOptions = {
|
|
|
2906
2906
|
headerAlign: "",
|
|
2907
2907
|
headerColor: "",
|
|
2908
2908
|
acceptBtnType: "",
|
|
2909
|
-
cancelBtnType: ""
|
|
2909
|
+
cancelBtnType: "",
|
|
2910
|
+
maxWidth: "",
|
|
2911
|
+
fontSize: ""
|
|
2910
2912
|
},
|
|
2911
2913
|
styles: {
|
|
2912
2914
|
layout: "base",
|
|
@@ -22343,7 +22345,8 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
22343
22345
|
layout: null,
|
|
22344
22346
|
textColor: null,
|
|
22345
22347
|
headerColor: null,
|
|
22346
|
-
headerAlign: null
|
|
22348
|
+
headerAlign: null,
|
|
22349
|
+
fontSize: null
|
|
22347
22350
|
},
|
|
22348
22351
|
emits: ["update:modelValue", "cancel", "accept"],
|
|
22349
22352
|
setup(__props, { emit: emits }) {
|
|
@@ -22370,13 +22373,17 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
22370
22373
|
return list;
|
|
22371
22374
|
});
|
|
22372
22375
|
const computedStyleContent = computed$2(() => {
|
|
22373
|
-
var _a;
|
|
22376
|
+
var _a, _b, _c;
|
|
22374
22377
|
const list = [];
|
|
22375
|
-
|
|
22376
|
-
|
|
22378
|
+
const maxWidth = props.maxWidth || ((_a = cleekOptions2.value) == null ? void 0 : _a.popup.maxWidth);
|
|
22379
|
+
if (maxWidth)
|
|
22380
|
+
list.push({ "max-width": maxWidth });
|
|
22381
|
+
const fontSize = props.fontSize || ((_b = cleekOptions2.value) == null ? void 0 : _b.popup.fontSize);
|
|
22382
|
+
if (fontSize)
|
|
22383
|
+
list.push({ "font-size": fontSize });
|
|
22377
22384
|
if (props.width)
|
|
22378
22385
|
list.push({ width: props.width });
|
|
22379
|
-
const textColor = props.textColor || ((
|
|
22386
|
+
const textColor = props.textColor || ((_c = cleekOptions2.value) == null ? void 0 : _c.popup.textColor);
|
|
22380
22387
|
if (textColor && !hooks8.isColorTemplateVariable(textColor)) {
|
|
22381
22388
|
list.push(`ck-component__color--${textColor}`);
|
|
22382
22389
|
list.push({ color: textColor });
|
|
@@ -23080,6 +23087,9 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
23080
23087
|
group: null,
|
|
23081
23088
|
groupVertical: null,
|
|
23082
23089
|
widthBreaks: null,
|
|
23090
|
+
icon: null,
|
|
23091
|
+
iconRight: null,
|
|
23092
|
+
iconPack: null,
|
|
23083
23093
|
label: null,
|
|
23084
23094
|
labelAlign: null
|
|
23085
23095
|
},
|
|
@@ -23125,6 +23135,10 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
23125
23135
|
var _a, _b;
|
|
23126
23136
|
const list = [];
|
|
23127
23137
|
list.push(hooks8.getGroupClass(props, windowWidth.value));
|
|
23138
|
+
if (props.icon)
|
|
23139
|
+
list.push("has-icon-left");
|
|
23140
|
+
if (props.iconRight)
|
|
23141
|
+
list.push("has-icon-right");
|
|
23128
23142
|
const layout = props.layout || ((_a = cleekOptions2.value) == null ? void 0 : _a.styles.layout);
|
|
23129
23143
|
if (layout)
|
|
23130
23144
|
list.push(layout);
|
|
@@ -23241,15 +23255,29 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
23241
23255
|
class: "ck-select",
|
|
23242
23256
|
style: normalizeStyle(unref$1(computedStyle))
|
|
23243
23257
|
}, [
|
|
23244
|
-
|
|
23258
|
+
__props.icon ? (openBlock(), createBlock(CkIcon, {
|
|
23245
23259
|
key: 0,
|
|
23260
|
+
class: "ck-select__icon-left",
|
|
23261
|
+
color: "lightgrey",
|
|
23262
|
+
icon: __props.icon,
|
|
23263
|
+
"icon-pack": __props.iconPack
|
|
23264
|
+
}, null, 8, ["icon", "icon-pack"])) : createCommentVNode("", true),
|
|
23265
|
+
__props.iconRight ? (openBlock(), createBlock(CkIcon, {
|
|
23266
|
+
key: 1,
|
|
23267
|
+
class: "ck-select__icon-right",
|
|
23268
|
+
color: "lightgrey",
|
|
23269
|
+
icon: __props.iconRight,
|
|
23270
|
+
"icon-pack": __props.iconPack
|
|
23271
|
+
}, null, 8, ["icon", "icon-pack"])) : createCommentVNode("", true),
|
|
23272
|
+
unref$1(isClearBtnVisible) ? (openBlock(), createElementBlock("div", {
|
|
23273
|
+
key: 2,
|
|
23246
23274
|
class: "ck-select__clear-btn",
|
|
23247
23275
|
onClick: _cache[0] || (_cache[0] = ($event) => value.value = unref$1(realClearValue))
|
|
23248
23276
|
}, [
|
|
23249
23277
|
createVNode(CkIcon, { icon: "times" })
|
|
23250
23278
|
])) : createCommentVNode("", true),
|
|
23251
23279
|
__props.label ? (openBlock(), createBlock(CkLabel, {
|
|
23252
|
-
key:
|
|
23280
|
+
key: 3,
|
|
23253
23281
|
align: __props.labelAlign,
|
|
23254
23282
|
for: "ck-input"
|
|
23255
23283
|
}, {
|
|
@@ -23279,7 +23307,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
23279
23307
|
};
|
|
23280
23308
|
}
|
|
23281
23309
|
});
|
|
23282
|
-
var ckSelect = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-
|
|
23310
|
+
var ckSelect = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-d31fd5ac"]]);
|
|
23283
23311
|
var ckSidebar_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
23284
23312
|
const _hoisted_1$5 = {
|
|
23285
23313
|
key: 0,
|
|
@@ -23739,7 +23767,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
23739
23767
|
var CkNotifyComponent = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-667c806b"]]);
|
|
23740
23768
|
const defaultDuration = 2e3;
|
|
23741
23769
|
var ckNotify = {
|
|
23742
|
-
|
|
23770
|
+
confirmOptions({
|
|
23743
23771
|
title = "\xBFEst\xE1s seguro?",
|
|
23744
23772
|
msg = "",
|
|
23745
23773
|
acceptText = "Aceptar",
|
|
@@ -23765,6 +23793,13 @@ var ckNotify = {
|
|
|
23765
23793
|
};
|
|
23766
23794
|
document.body.appendChild(instance.$el);
|
|
23767
23795
|
},
|
|
23796
|
+
confirm(msg, success, failure) {
|
|
23797
|
+
this.confirmOptions({
|
|
23798
|
+
msg,
|
|
23799
|
+
success,
|
|
23800
|
+
failure
|
|
23801
|
+
});
|
|
23802
|
+
},
|
|
23768
23803
|
notify({ text: text2 = "", title = "", color = "#ccc", duration = defaultDuration }) {
|
|
23769
23804
|
const tempDiv = document.createElement("div");
|
|
23770
23805
|
const instance = createApp(CkNotifyComponent).mount(tempDiv);
|