cleek 2.6.97 → 2.6.99
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 +82 -8
- package/dist/cleek.umd.js +20 -20
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/cleek.es.js
CHANGED
|
@@ -82456,6 +82456,8 @@ const _sfc_main$t = defineComponent$2({
|
|
|
82456
82456
|
const defaultPackage = "font-awesome";
|
|
82457
82457
|
if (!props.iconPack)
|
|
82458
82458
|
return defaultPackage;
|
|
82459
|
+
if (props.iconPack === "cleek")
|
|
82460
|
+
return props.iconPack;
|
|
82459
82461
|
if (props.iconPack === "feather")
|
|
82460
82462
|
return props.iconPack;
|
|
82461
82463
|
return defaultPackage;
|
|
@@ -82477,6 +82479,25 @@ const _sfc_main$t = defineComponent$2({
|
|
|
82477
82479
|
function onClick(event) {
|
|
82478
82480
|
emits("click", event);
|
|
82479
82481
|
}
|
|
82482
|
+
const iconMask = computed$3(() => {
|
|
82483
|
+
const src = `/src/assets/icons/${props.icon}.svg`;
|
|
82484
|
+
return `mask: url(${src}) no-repeat center; -webkit-mask: url(${src}) no-repeat center;`;
|
|
82485
|
+
});
|
|
82486
|
+
const ckIconComputedClass = computed$3(() => {
|
|
82487
|
+
const classes = [];
|
|
82488
|
+
if (!props.color) {
|
|
82489
|
+
classes.push(`ck-component__color--primary`);
|
|
82490
|
+
} else if (props.color && hooks9.isColorTemplateVariable(props.color)) {
|
|
82491
|
+
classes.push(`ck-component__color-background--${props.color}`);
|
|
82492
|
+
}
|
|
82493
|
+
if (props.size)
|
|
82494
|
+
classes.push(`ck-icon__cleek-small`);
|
|
82495
|
+
if (props.size === "m")
|
|
82496
|
+
classes.push(`ck-icon__cleek-medium`);
|
|
82497
|
+
if (props.size === "l")
|
|
82498
|
+
classes.push(`ck-icon__cleek-large`);
|
|
82499
|
+
return classes;
|
|
82500
|
+
});
|
|
82480
82501
|
return (_ctx, _cache) => {
|
|
82481
82502
|
return openBlock$2(), createElementBlock$2("div", {
|
|
82482
82503
|
class: normalizeClass$2(["ck-icon", computedClass.value]),
|
|
@@ -82491,13 +82512,17 @@ const _sfc_main$t = defineComponent$2({
|
|
|
82491
82512
|
flip: _ctx.flip,
|
|
82492
82513
|
spin: _ctx.spin,
|
|
82493
82514
|
pulse: _ctx.pulse,
|
|
82494
|
-
|
|
82495
|
-
}, null, 8, ["icon", "size", "rotation", "flip", "spin", "pulse", "
|
|
82515
|
+
fixedWidth: _ctx.fixedWidth
|
|
82516
|
+
}, null, 8, ["icon", "size", "rotation", "flip", "spin", "pulse", "fixedWidth"])) : computediconPack.value === "cleek" ? (openBlock$2(), createElementBlock$2("div", {
|
|
82517
|
+
key: 1,
|
|
82518
|
+
style: normalizeStyle$2(iconMask.value),
|
|
82519
|
+
class: normalizeClass$2([ckIconComputedClass.value, "ck-icon__cleek"])
|
|
82520
|
+
}, null, 6)) : createCommentVNode$2("", true)
|
|
82496
82521
|
], 6);
|
|
82497
82522
|
};
|
|
82498
82523
|
}
|
|
82499
82524
|
});
|
|
82500
|
-
var CkIcon = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-
|
|
82525
|
+
var CkIcon = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-6ceab692"]]);
|
|
82501
82526
|
var ckTr_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
82502
82527
|
const _sfc_main$s = {};
|
|
82503
82528
|
const _hoisted_1$m = { class: "ck-tr" };
|
|
@@ -83061,15 +83086,15 @@ const _sfc_main$m = defineComponent$2({
|
|
|
83061
83086
|
_ctx.iconRight && _ctx.type !== "password" ? (openBlock$2(), createBlock$2(CkIcon, {
|
|
83062
83087
|
key: 5,
|
|
83063
83088
|
class: "ck-input__icon-right",
|
|
83064
|
-
color: "lightgrey",
|
|
83089
|
+
color: _ctx.iconColor ? _ctx.iconColor : "lightgrey",
|
|
83065
83090
|
icon: _ctx.iconRight,
|
|
83066
83091
|
"icon-pack": _ctx.iconPack
|
|
83067
|
-
}, null, 8, ["icon", "icon-pack"])) : createCommentVNode$2("", true)
|
|
83092
|
+
}, null, 8, ["color", "icon", "icon-pack"])) : createCommentVNode$2("", true)
|
|
83068
83093
|
], 4);
|
|
83069
83094
|
};
|
|
83070
83095
|
}
|
|
83071
83096
|
});
|
|
83072
|
-
var CkInput = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-
|
|
83097
|
+
var CkInput = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-feca7ebc"]]);
|
|
83073
83098
|
var ckTable__headerItems_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
83074
83099
|
const _sfc_main$l = defineComponent$2({
|
|
83075
83100
|
__name: "ck-table__header-items",
|
|
@@ -89437,6 +89462,10 @@ const _sfc_main$e = defineComponent$2({
|
|
|
89437
89462
|
props: {
|
|
89438
89463
|
modelValue: {},
|
|
89439
89464
|
label: {},
|
|
89465
|
+
icon: {},
|
|
89466
|
+
iconRight: {},
|
|
89467
|
+
iconPack: {},
|
|
89468
|
+
iconColor: {},
|
|
89440
89469
|
widthBreaks: {},
|
|
89441
89470
|
group: {},
|
|
89442
89471
|
groupVertical: {}
|
|
@@ -89463,6 +89492,10 @@ const _sfc_main$e = defineComponent$2({
|
|
|
89463
89492
|
const computedClass = computed$3(() => {
|
|
89464
89493
|
const classes = [];
|
|
89465
89494
|
classes.push(hooks9.getGroupClass(props, windowWidth.value));
|
|
89495
|
+
if (props.icon)
|
|
89496
|
+
classes.push("has-icon-left");
|
|
89497
|
+
if (props.iconRight)
|
|
89498
|
+
classes.push("has-icon-right");
|
|
89466
89499
|
isOnPopup.value = document.querySelector(".ck-popup__content") ? true : false;
|
|
89467
89500
|
if (isOnPopup.value)
|
|
89468
89501
|
classes.push("ck-picker-popup");
|
|
@@ -89480,8 +89513,33 @@ const _sfc_main$e = defineComponent$2({
|
|
|
89480
89513
|
const day = qmStr.padZeros(date.getDate(), 2);
|
|
89481
89514
|
return `${year}-${month}-${day}`;
|
|
89482
89515
|
}
|
|
89516
|
+
function setOpenStatus() {
|
|
89517
|
+
const container = document.querySelector(".ck-input-date");
|
|
89518
|
+
const pickerPopupElement = document.querySelector(".ck-picker-popup");
|
|
89519
|
+
const pickerCalendar = document.querySelector(".v3dp__popout-day");
|
|
89520
|
+
let rect = { y: 0 };
|
|
89521
|
+
const popupContent = document.querySelector(".ck-popup__slot-body");
|
|
89522
|
+
if (popupContent instanceof HTMLElement) {
|
|
89523
|
+
popupContent.style.overflow = "hidden";
|
|
89524
|
+
}
|
|
89525
|
+
if (container) {
|
|
89526
|
+
rect = container.getBoundingClientRect();
|
|
89527
|
+
}
|
|
89528
|
+
window.innerHeight - rect.y;
|
|
89529
|
+
if (pickerPopupElement && pickerCalendar) {
|
|
89530
|
+
pickerCalendar.setAttribute("style", `top: ${rect.y + 60}px;`);
|
|
89531
|
+
pickerPopupElement.setAttribute("style", `overflow: hidden;`);
|
|
89532
|
+
}
|
|
89533
|
+
}
|
|
89534
|
+
function setClosedStatus() {
|
|
89535
|
+
const popupContent = document.querySelector(".ck-popup__slot-body");
|
|
89536
|
+
if (popupContent instanceof HTMLElement) {
|
|
89537
|
+
popupContent.style.overflow = "auto";
|
|
89538
|
+
}
|
|
89539
|
+
}
|
|
89483
89540
|
return (_ctx, _cache) => {
|
|
89484
89541
|
const _component_ck_label = resolveComponent$2("ck-label");
|
|
89542
|
+
const _component_ck_icon = resolveComponent$2("ck-icon");
|
|
89485
89543
|
const _component_ck_div = resolveComponent$2("ck-div");
|
|
89486
89544
|
return openBlock$2(), createBlock$2(_component_ck_div, { widthBreaks: _ctx.widthBreaks }, {
|
|
89487
89545
|
default: withCtx$2(() => [
|
|
@@ -89500,12 +89558,28 @@ const _sfc_main$e = defineComponent$2({
|
|
|
89500
89558
|
_: 1
|
|
89501
89559
|
}),
|
|
89502
89560
|
createElementVNode("div", _hoisted_1$c, [
|
|
89561
|
+
_ctx.icon ? (openBlock$2(), createBlock$2(_component_ck_icon, {
|
|
89562
|
+
key: 0,
|
|
89563
|
+
class: "ck-input__icon-left",
|
|
89564
|
+
color: _ctx.iconColor ? _ctx.iconColor : "lightgrey",
|
|
89565
|
+
icon: _ctx.icon,
|
|
89566
|
+
"icon-pack": _ctx.iconPack
|
|
89567
|
+
}, null, 8, ["color", "icon", "icon-pack"])) : createCommentVNode$2("", true),
|
|
89503
89568
|
createVNode$2(unref$3(Lt), {
|
|
89504
89569
|
modelValue: inputValue.value,
|
|
89505
89570
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event),
|
|
89506
89571
|
onChange: _cache[1] || (_cache[1] = ($event) => emits("change", inputValue.value)),
|
|
89572
|
+
onOpened: setOpenStatus,
|
|
89573
|
+
onClosed: setClosedStatus,
|
|
89507
89574
|
inputFormat: "dd-MM-yyyy"
|
|
89508
|
-
}, null, 8, ["modelValue"])
|
|
89575
|
+
}, null, 8, ["modelValue"]),
|
|
89576
|
+
_ctx.iconRight ? (openBlock$2(), createBlock$2(_component_ck_icon, {
|
|
89577
|
+
key: 1,
|
|
89578
|
+
class: "ck-input__icon-right",
|
|
89579
|
+
color: _ctx.iconColor ? _ctx.iconColor : "lightgrey",
|
|
89580
|
+
icon: _ctx.iconRight,
|
|
89581
|
+
"icon-pack": _ctx.iconPack
|
|
89582
|
+
}, null, 8, ["color", "icon", "icon-pack"])) : createCommentVNode$2("", true)
|
|
89509
89583
|
])
|
|
89510
89584
|
], 2)
|
|
89511
89585
|
]),
|
|
@@ -89514,7 +89588,7 @@ const _sfc_main$e = defineComponent$2({
|
|
|
89514
89588
|
};
|
|
89515
89589
|
}
|
|
89516
89590
|
});
|
|
89517
|
-
var ckInputDate = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-
|
|
89591
|
+
var ckInputDate = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-5b945a48"]]);
|
|
89518
89592
|
const _sfc_main$d = defineComponent$2({
|
|
89519
89593
|
__name: "ck-input-time",
|
|
89520
89594
|
props: {
|