cleek 2.4.20 → 2.4.24
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/tiny-tailwind/.custom.styl +2 -0
- package/dist/cleek.es.js +69 -25
- package/dist/cleek.umd.js +6 -6
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/cleek.es.js
CHANGED
|
@@ -2904,7 +2904,9 @@ const cleekOptions = {
|
|
|
2904
2904
|
popup: {
|
|
2905
2905
|
textColor: "",
|
|
2906
2906
|
headerAlign: "",
|
|
2907
|
-
headerColor: ""
|
|
2907
|
+
headerColor: "",
|
|
2908
|
+
acceptBtnType: "",
|
|
2909
|
+
cancelBtnType: ""
|
|
2908
2910
|
},
|
|
2909
2911
|
styles: {
|
|
2910
2912
|
layout: "base",
|
|
@@ -22278,15 +22280,17 @@ const _hoisted_6$2 = {
|
|
|
22278
22280
|
key: 0,
|
|
22279
22281
|
class: "ck-popup-slot-footer__confirm-buttons"
|
|
22280
22282
|
};
|
|
22281
|
-
const _hoisted_7 = /* @__PURE__ */ createTextVNode("Cancelar");
|
|
22282
|
-
const _hoisted_8 = /* @__PURE__ */ createTextVNode("Aceptar");
|
|
22283
22283
|
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
22284
22284
|
props: {
|
|
22285
22285
|
modelValue: { type: Boolean },
|
|
22286
22286
|
title: null,
|
|
22287
22287
|
confirmButtons: { type: Boolean },
|
|
22288
22288
|
acceptButton: { type: Boolean },
|
|
22289
|
+
acceptBtnText: null,
|
|
22290
|
+
acceptBtnType: null,
|
|
22289
22291
|
cancelButton: { type: Boolean },
|
|
22292
|
+
cancelBtnText: null,
|
|
22293
|
+
cancelBtnType: null,
|
|
22290
22294
|
notClose: { type: Boolean },
|
|
22291
22295
|
notCloseBtn: { type: Boolean },
|
|
22292
22296
|
notCloseByBg: { type: Boolean },
|
|
@@ -22357,6 +22361,20 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
22357
22361
|
}
|
|
22358
22362
|
return list;
|
|
22359
22363
|
});
|
|
22364
|
+
const realAcceptBtnType = computed$2(() => {
|
|
22365
|
+
if (props.cancelBtnType)
|
|
22366
|
+
return props.cancelBtnType;
|
|
22367
|
+
if (cleekOptions2.popup.cancelBtnType)
|
|
22368
|
+
return cleekOptions2.popup.cancelBtnType;
|
|
22369
|
+
return "flat";
|
|
22370
|
+
});
|
|
22371
|
+
const realCancelBtnType = computed$2(() => {
|
|
22372
|
+
if (props.cancelBtnType)
|
|
22373
|
+
return props.cancelBtnType;
|
|
22374
|
+
if (cleekOptions2.popup.acceptBtnType)
|
|
22375
|
+
return cleekOptions2.popup.acceptBtnType;
|
|
22376
|
+
return "outlined";
|
|
22377
|
+
});
|
|
22360
22378
|
function onCancel() {
|
|
22361
22379
|
emits("cancel");
|
|
22362
22380
|
if (!props.preventCloseOnCancel)
|
|
@@ -22409,21 +22427,22 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
22409
22427
|
class: "cancel-button",
|
|
22410
22428
|
onClick: _cache[1] || (_cache[1] = ($event) => onCancel()),
|
|
22411
22429
|
color: "danger",
|
|
22412
|
-
type:
|
|
22430
|
+
type: unref$1(realCancelBtnType)
|
|
22413
22431
|
}, {
|
|
22414
22432
|
default: withCtx(() => [
|
|
22415
|
-
|
|
22433
|
+
createTextVNode(toDisplayString(__props.cancelBtnText || "Cancelar"), 1)
|
|
22416
22434
|
]),
|
|
22417
22435
|
_: 1
|
|
22418
|
-
}),
|
|
22436
|
+
}, 8, ["type"]),
|
|
22419
22437
|
createVNode(CkButton, {
|
|
22420
|
-
onClick: _cache[2] || (_cache[2] = ($event) => onAccept())
|
|
22438
|
+
onClick: _cache[2] || (_cache[2] = ($event) => onAccept()),
|
|
22439
|
+
type: unref$1(realAcceptBtnType)
|
|
22421
22440
|
}, {
|
|
22422
22441
|
default: withCtx(() => [
|
|
22423
|
-
|
|
22442
|
+
createTextVNode(toDisplayString(__props.acceptBtnText || "Aceptar"), 1)
|
|
22424
22443
|
]),
|
|
22425
22444
|
_: 1
|
|
22426
|
-
})
|
|
22445
|
+
}, 8, ["type"])
|
|
22427
22446
|
])) : createCommentVNode("", true)
|
|
22428
22447
|
])) : createCommentVNode("", true)
|
|
22429
22448
|
], 6)
|
|
@@ -22996,6 +23015,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
22996
23015
|
clearValue: { type: [Boolean, String] },
|
|
22997
23016
|
searchable: { type: [Boolean, String] },
|
|
22998
23017
|
minWidth: null,
|
|
23018
|
+
width: null,
|
|
22999
23019
|
noBorder: { type: Boolean },
|
|
23000
23020
|
layout: null,
|
|
23001
23021
|
borderColor: null,
|
|
@@ -23083,6 +23103,8 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
23083
23103
|
if (!isWidthDefined && minWidth) {
|
|
23084
23104
|
list.push({ "min-width": minWidth });
|
|
23085
23105
|
}
|
|
23106
|
+
if (props.width)
|
|
23107
|
+
list.push({ "width": props.width });
|
|
23086
23108
|
return list;
|
|
23087
23109
|
});
|
|
23088
23110
|
const realClearValue = computed$2(() => {
|
|
@@ -23201,10 +23223,10 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
23201
23223
|
};
|
|
23202
23224
|
}
|
|
23203
23225
|
});
|
|
23204
|
-
var ckSelect = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-
|
|
23226
|
+
var ckSelect = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-ccaf1058"]]);
|
|
23205
23227
|
var ckSidebar_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
23206
23228
|
const _hoisted_1$5 = {
|
|
23207
|
-
key:
|
|
23229
|
+
key: 0,
|
|
23208
23230
|
class: "sidebar-header-title"
|
|
23209
23231
|
};
|
|
23210
23232
|
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
@@ -23212,7 +23234,11 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
23212
23234
|
modelValue: { type: Boolean },
|
|
23213
23235
|
title: null,
|
|
23214
23236
|
width: null,
|
|
23215
|
-
rightSide: { type: Boolean }
|
|
23237
|
+
rightSide: { type: Boolean },
|
|
23238
|
+
headerColor: null,
|
|
23239
|
+
headerAlign: { type: Boolean },
|
|
23240
|
+
closeBtnAlign: null,
|
|
23241
|
+
notCloseBtn: { type: Boolean }
|
|
23216
23242
|
},
|
|
23217
23243
|
emits: ["update:modelValue"],
|
|
23218
23244
|
setup(__props, { emit: emits }) {
|
|
@@ -23236,6 +23262,29 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
23236
23262
|
list.push({ width: props.width });
|
|
23237
23263
|
return list;
|
|
23238
23264
|
});
|
|
23265
|
+
const computedClassHeader = computed$2(() => {
|
|
23266
|
+
const list = [];
|
|
23267
|
+
let closeBtnAlign = props.closeBtnAlign;
|
|
23268
|
+
if (props.notCloseBtn)
|
|
23269
|
+
closeBtnAlign = "hidden";
|
|
23270
|
+
if (closeBtnAlign)
|
|
23271
|
+
list.push(`close-btn--${closeBtnAlign}`);
|
|
23272
|
+
if (props.headerAlign)
|
|
23273
|
+
list.push(`align-title--${props.headerAlign}`);
|
|
23274
|
+
if (props.headerColor && hooks8.isColorTemplateVariable(props.headerColor)) {
|
|
23275
|
+
list.push(`ck-component__bg-color--${props.headerColor}`);
|
|
23276
|
+
}
|
|
23277
|
+
if (props.headerColor)
|
|
23278
|
+
list.push(`align-title--${props.headerColor}`);
|
|
23279
|
+
return list;
|
|
23280
|
+
});
|
|
23281
|
+
const computedStyleHeader = computed$2(() => {
|
|
23282
|
+
const list = [];
|
|
23283
|
+
if (props.headerColor && !hooks8.isColorTemplateVariable(props.headerColor)) {
|
|
23284
|
+
list.push({ "background-color": props.headerColor });
|
|
23285
|
+
}
|
|
23286
|
+
return list;
|
|
23287
|
+
});
|
|
23239
23288
|
return (_ctx, _cache) => {
|
|
23240
23289
|
const _component_ck_icon = resolveComponent("ck-icon");
|
|
23241
23290
|
return unref$1(isActive) ? (openBlock(), createElementBlock("div", {
|
|
@@ -23248,21 +23297,16 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
23248
23297
|
style: normalizeStyle(unref$1(computedStyle))
|
|
23249
23298
|
}, [
|
|
23250
23299
|
createElementVNode("div", {
|
|
23251
|
-
class: "sidebar-header",
|
|
23252
|
-
onClick: _cache[0] || (_cache[0] = ($event) => isActive.value = false)
|
|
23300
|
+
class: normalizeClass(["sidebar-header", unref$1(computedClassHeader)]),
|
|
23301
|
+
onClick: _cache[0] || (_cache[0] = ($event) => isActive.value = false),
|
|
23302
|
+
style: normalizeStyle(unref$1(computedStyleHeader))
|
|
23253
23303
|
}, [
|
|
23254
|
-
__props.rightSide ? (openBlock(), createBlock(_component_ck_icon, {
|
|
23255
|
-
key: 0,
|
|
23256
|
-
class: "mr-2",
|
|
23257
|
-
icon: "times"
|
|
23258
|
-
})) : createCommentVNode("", true),
|
|
23259
23304
|
__props.title ? (openBlock(), createElementBlock("div", _hoisted_1$5, toDisplayString(__props.title), 1)) : createCommentVNode("", true),
|
|
23260
|
-
|
|
23261
|
-
|
|
23262
|
-
class: "ml-2",
|
|
23305
|
+
createVNode(_component_ck_icon, {
|
|
23306
|
+
class: "close-btn",
|
|
23263
23307
|
icon: "times"
|
|
23264
|
-
})
|
|
23265
|
-
]),
|
|
23308
|
+
})
|
|
23309
|
+
], 6),
|
|
23266
23310
|
createElementVNode("div", null, [
|
|
23267
23311
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
23268
23312
|
])
|
|
@@ -23271,7 +23315,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
23271
23315
|
};
|
|
23272
23316
|
}
|
|
23273
23317
|
});
|
|
23274
|
-
var ckSidebar = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-
|
|
23318
|
+
var ckSidebar = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-2a47d044"]]);
|
|
23275
23319
|
var ckSwitch_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
23276
23320
|
const _withScopeId$1 = (n) => (pushScopeId("data-v-f66bfcc0"), n = n(), popScopeId(), n);
|
|
23277
23321
|
const _hoisted_1$4 = ["disabled"];
|