cleek 2.4.18 → 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 +78 -26
- 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",
|
|
@@ -18818,6 +18820,12 @@ var hooks8 = {
|
|
|
18818
18820
|
if (realWidthBreaks.length === 2 && typeof realWidthBreaks[0] === "number" && typeof realWidthBreaks[1] === "string") {
|
|
18819
18821
|
realWidthBreaks = [realWidthBreaks];
|
|
18820
18822
|
}
|
|
18823
|
+
if (realWidthBreaks.length) {
|
|
18824
|
+
const first = realWidthBreaks[0];
|
|
18825
|
+
if (first[0] !== 0) {
|
|
18826
|
+
realWidthBreaks.unshift([0, "100%"]);
|
|
18827
|
+
}
|
|
18828
|
+
}
|
|
18821
18829
|
let finalWidth = "";
|
|
18822
18830
|
realWidthBreaks.forEach((widthBreak) => {
|
|
18823
18831
|
const [windowBreak, width] = widthBreak;
|
|
@@ -22272,13 +22280,17 @@ const _hoisted_6$2 = {
|
|
|
22272
22280
|
key: 0,
|
|
22273
22281
|
class: "ck-popup-slot-footer__confirm-buttons"
|
|
22274
22282
|
};
|
|
22275
|
-
const _hoisted_7 = /* @__PURE__ */ createTextVNode("Cancelar");
|
|
22276
|
-
const _hoisted_8 = /* @__PURE__ */ createTextVNode("Aceptar");
|
|
22277
22283
|
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
22278
22284
|
props: {
|
|
22279
22285
|
modelValue: { type: Boolean },
|
|
22280
22286
|
title: null,
|
|
22281
22287
|
confirmButtons: { type: Boolean },
|
|
22288
|
+
acceptButton: { type: Boolean },
|
|
22289
|
+
acceptBtnText: null,
|
|
22290
|
+
acceptBtnType: null,
|
|
22291
|
+
cancelButton: { type: Boolean },
|
|
22292
|
+
cancelBtnText: null,
|
|
22293
|
+
cancelBtnType: null,
|
|
22282
22294
|
notClose: { type: Boolean },
|
|
22283
22295
|
notCloseBtn: { type: Boolean },
|
|
22284
22296
|
notCloseByBg: { type: Boolean },
|
|
@@ -22349,6 +22361,20 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
22349
22361
|
}
|
|
22350
22362
|
return list;
|
|
22351
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
|
+
});
|
|
22352
22378
|
function onCancel() {
|
|
22353
22379
|
emits("cancel");
|
|
22354
22380
|
if (!props.preventCloseOnCancel)
|
|
@@ -22394,28 +22420,29 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
22394
22420
|
createElementVNode("div", _hoisted_4$5, [
|
|
22395
22421
|
renderSlot(_ctx.$slots, "default")
|
|
22396
22422
|
]),
|
|
22397
|
-
_ctx.$slots.footer || __props.confirmButtons ? (openBlock(), createElementBlock("div", _hoisted_5$2, [
|
|
22423
|
+
_ctx.$slots.footer || __props.confirmButtons || __props.acceptButton || __props.cancelButton ? (openBlock(), createElementBlock("div", _hoisted_5$2, [
|
|
22398
22424
|
renderSlot(_ctx.$slots, "footer"),
|
|
22399
22425
|
__props.confirmButtons ? (openBlock(), createElementBlock("div", _hoisted_6$2, [
|
|
22400
22426
|
createVNode(CkButton, {
|
|
22401
22427
|
class: "cancel-button",
|
|
22402
22428
|
onClick: _cache[1] || (_cache[1] = ($event) => onCancel()),
|
|
22403
22429
|
color: "danger",
|
|
22404
|
-
type:
|
|
22430
|
+
type: unref$1(realCancelBtnType)
|
|
22405
22431
|
}, {
|
|
22406
22432
|
default: withCtx(() => [
|
|
22407
|
-
|
|
22433
|
+
createTextVNode(toDisplayString(__props.cancelBtnText || "Cancelar"), 1)
|
|
22408
22434
|
]),
|
|
22409
22435
|
_: 1
|
|
22410
|
-
}),
|
|
22436
|
+
}, 8, ["type"]),
|
|
22411
22437
|
createVNode(CkButton, {
|
|
22412
|
-
onClick: _cache[2] || (_cache[2] = ($event) => onAccept())
|
|
22438
|
+
onClick: _cache[2] || (_cache[2] = ($event) => onAccept()),
|
|
22439
|
+
type: unref$1(realAcceptBtnType)
|
|
22413
22440
|
}, {
|
|
22414
22441
|
default: withCtx(() => [
|
|
22415
|
-
|
|
22442
|
+
createTextVNode(toDisplayString(__props.acceptBtnText || "Aceptar"), 1)
|
|
22416
22443
|
]),
|
|
22417
22444
|
_: 1
|
|
22418
|
-
})
|
|
22445
|
+
}, 8, ["type"])
|
|
22419
22446
|
])) : createCommentVNode("", true)
|
|
22420
22447
|
])) : createCommentVNode("", true)
|
|
22421
22448
|
], 6)
|
|
@@ -22988,6 +23015,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
22988
23015
|
clearValue: { type: [Boolean, String] },
|
|
22989
23016
|
searchable: { type: [Boolean, String] },
|
|
22990
23017
|
minWidth: null,
|
|
23018
|
+
width: null,
|
|
22991
23019
|
noBorder: { type: Boolean },
|
|
22992
23020
|
layout: null,
|
|
22993
23021
|
borderColor: null,
|
|
@@ -23075,6 +23103,8 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
23075
23103
|
if (!isWidthDefined && minWidth) {
|
|
23076
23104
|
list.push({ "min-width": minWidth });
|
|
23077
23105
|
}
|
|
23106
|
+
if (props.width)
|
|
23107
|
+
list.push({ "width": props.width });
|
|
23078
23108
|
return list;
|
|
23079
23109
|
});
|
|
23080
23110
|
const realClearValue = computed$2(() => {
|
|
@@ -23193,10 +23223,10 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
23193
23223
|
};
|
|
23194
23224
|
}
|
|
23195
23225
|
});
|
|
23196
|
-
var ckSelect = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-
|
|
23226
|
+
var ckSelect = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-ccaf1058"]]);
|
|
23197
23227
|
var ckSidebar_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
23198
23228
|
const _hoisted_1$5 = {
|
|
23199
|
-
key:
|
|
23229
|
+
key: 0,
|
|
23200
23230
|
class: "sidebar-header-title"
|
|
23201
23231
|
};
|
|
23202
23232
|
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
@@ -23204,7 +23234,11 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
23204
23234
|
modelValue: { type: Boolean },
|
|
23205
23235
|
title: null,
|
|
23206
23236
|
width: null,
|
|
23207
|
-
rightSide: { type: Boolean }
|
|
23237
|
+
rightSide: { type: Boolean },
|
|
23238
|
+
headerColor: null,
|
|
23239
|
+
headerAlign: { type: Boolean },
|
|
23240
|
+
closeBtnAlign: null,
|
|
23241
|
+
notCloseBtn: { type: Boolean }
|
|
23208
23242
|
},
|
|
23209
23243
|
emits: ["update:modelValue"],
|
|
23210
23244
|
setup(__props, { emit: emits }) {
|
|
@@ -23228,6 +23262,29 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
23228
23262
|
list.push({ width: props.width });
|
|
23229
23263
|
return list;
|
|
23230
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
|
+
});
|
|
23231
23288
|
return (_ctx, _cache) => {
|
|
23232
23289
|
const _component_ck_icon = resolveComponent("ck-icon");
|
|
23233
23290
|
return unref$1(isActive) ? (openBlock(), createElementBlock("div", {
|
|
@@ -23240,21 +23297,16 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
23240
23297
|
style: normalizeStyle(unref$1(computedStyle))
|
|
23241
23298
|
}, [
|
|
23242
23299
|
createElementVNode("div", {
|
|
23243
|
-
class: "sidebar-header",
|
|
23244
|
-
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))
|
|
23245
23303
|
}, [
|
|
23246
|
-
__props.rightSide ? (openBlock(), createBlock(_component_ck_icon, {
|
|
23247
|
-
key: 0,
|
|
23248
|
-
class: "mr-2",
|
|
23249
|
-
icon: "times"
|
|
23250
|
-
})) : createCommentVNode("", true),
|
|
23251
23304
|
__props.title ? (openBlock(), createElementBlock("div", _hoisted_1$5, toDisplayString(__props.title), 1)) : createCommentVNode("", true),
|
|
23252
|
-
|
|
23253
|
-
|
|
23254
|
-
class: "ml-2",
|
|
23305
|
+
createVNode(_component_ck_icon, {
|
|
23306
|
+
class: "close-btn",
|
|
23255
23307
|
icon: "times"
|
|
23256
|
-
})
|
|
23257
|
-
]),
|
|
23308
|
+
})
|
|
23309
|
+
], 6),
|
|
23258
23310
|
createElementVNode("div", null, [
|
|
23259
23311
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
23260
23312
|
])
|
|
@@ -23263,7 +23315,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
23263
23315
|
};
|
|
23264
23316
|
}
|
|
23265
23317
|
});
|
|
23266
|
-
var ckSidebar = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-
|
|
23318
|
+
var ckSidebar = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-2a47d044"]]);
|
|
23267
23319
|
var ckSwitch_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
23268
23320
|
const _withScopeId$1 = (n) => (pushScopeId("data-v-f66bfcc0"), n = n(), popScopeId(), n);
|
|
23269
23321
|
const _hoisted_1$4 = ["disabled"];
|