cleek 2.4.56 → 2.4.60
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 +44 -14
- package/dist/cleek.umd.js +11 -11
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/cleek.es.js
CHANGED
|
@@ -29,7 +29,7 @@ var __objRest = (source2, exclude) => {
|
|
|
29
29
|
}
|
|
30
30
|
return target;
|
|
31
31
|
};
|
|
32
|
-
import { watch, reactive, pushScopeId, popScopeId, defineComponent, nextTick as nextTick$1, openBlock, createBlock, withScopeId, resolveComponent, createElementBlock, normalizeClass, normalizeStyle, withKeys, createElementVNode, Fragment, renderSlot, createCommentVNode, mergeProps, withCtx, createVNode, ref, createApp, h, toDisplayString, computed as computed$2, onMounted, getCurrentInstance, unref as unref$1, createTextVNode, onBeforeUnmount, withDirectives, isRef as isRef$1, vModelDynamic, renderList,
|
|
32
|
+
import { watch, reactive, pushScopeId, popScopeId, defineComponent, nextTick as nextTick$1, openBlock, createBlock, withScopeId, resolveComponent, createElementBlock, normalizeClass, normalizeStyle, withKeys, createElementVNode, Fragment, renderSlot, createCommentVNode, mergeProps, withCtx, createVNode, ref, createApp, h, toDisplayString, computed as computed$2, onMounted, getCurrentInstance, unref as unref$1, createTextVNode, onBeforeUnmount, withDirectives, isRef as isRef$1, vModelText, vModelDynamic, renderList, withModifiers, Teleport, vModelRadio, vModelSelect, vModelCheckbox } from "vue";
|
|
33
33
|
function getDevtoolsGlobalHook() {
|
|
34
34
|
return getTarget().__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
|
35
35
|
}
|
|
@@ -3520,7 +3520,7 @@ const _sfc_main$s = defineComponent({
|
|
|
3520
3520
|
}
|
|
3521
3521
|
});
|
|
3522
3522
|
const _hoisted_1$m = ["innerHTML"];
|
|
3523
|
-
const _hoisted_2$
|
|
3523
|
+
const _hoisted_2$d = ["textContent"];
|
|
3524
3524
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3525
3525
|
const _component_PopperContent = resolveComponent("PopperContent");
|
|
3526
3526
|
const _component_Popper = resolveComponent("Popper");
|
|
@@ -3566,7 +3566,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3566
3566
|
}, null, 8, _hoisted_1$m)) : (openBlock(), createElementBlock("div", {
|
|
3567
3567
|
key: 1,
|
|
3568
3568
|
textContent: toDisplayString(_ctx.finalContent)
|
|
3569
|
-
}, null, 8, _hoisted_2$
|
|
3569
|
+
}, null, 8, _hoisted_2$d))
|
|
3570
3570
|
]),
|
|
3571
3571
|
_: 2
|
|
3572
3572
|
}, 1032, ["class", "popper-id", "theme", "shown", "mounted", "skip-transition", "auto-hide", "handle-resize", "classes", "result", "onHide", "onResize"])
|
|
@@ -21919,7 +21919,8 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
21919
21919
|
});
|
|
21920
21920
|
var CkLabel = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-a4566770"]]);
|
|
21921
21921
|
var ckInput_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
21922
|
-
const _hoisted_1$g = ["autocomplete", "
|
|
21922
|
+
const _hoisted_1$g = ["autocomplete", "placeholder", "disabled"];
|
|
21923
|
+
const _hoisted_2$c = ["autocomplete", "type", "placeholder", "disabled"];
|
|
21923
21924
|
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
21924
21925
|
props: {
|
|
21925
21926
|
modelValue: null,
|
|
@@ -21947,7 +21948,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
21947
21948
|
autoSelect: { type: Boolean },
|
|
21948
21949
|
delayChangeTime: null
|
|
21949
21950
|
},
|
|
21950
|
-
emits: ["update:modelValue", "click", "input", "change", "delayChange"],
|
|
21951
|
+
emits: ["update:modelValue", "click", "input", "change", "focus", "blur", "delayChange"],
|
|
21951
21952
|
setup(__props, { expose, emit: emits }) {
|
|
21952
21953
|
const props = __props;
|
|
21953
21954
|
expose({ setFocus, setSelect });
|
|
@@ -21955,6 +21956,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
21955
21956
|
const defaultType = "text";
|
|
21956
21957
|
const defaultDelayChangeTime = 300;
|
|
21957
21958
|
const realInput = ref(null);
|
|
21959
|
+
const isShowingPassword = ref(false);
|
|
21958
21960
|
const { windowWidth } = useWindowWidth();
|
|
21959
21961
|
const value = computed$2({
|
|
21960
21962
|
get() {
|
|
@@ -22082,24 +22084,52 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
22082
22084
|
icon: __props.icon,
|
|
22083
22085
|
"icon-pack": __props.iconPack
|
|
22084
22086
|
}, null, 8, ["icon", "icon-pack"])) : createCommentVNode("", true),
|
|
22085
|
-
withDirectives(
|
|
22087
|
+
isShowingPassword.value ? withDirectives((openBlock(), createElementBlock("input", {
|
|
22088
|
+
key: 2,
|
|
22089
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef$1(value) ? value.value = $event : null),
|
|
22086
22090
|
ref_key: "realInput",
|
|
22087
22091
|
ref: realInput,
|
|
22088
|
-
|
|
22092
|
+
type: "text",
|
|
22089
22093
|
autocomplete: __props.autocomplete ? "on" : "off",
|
|
22090
|
-
type: __props.type || defaultType,
|
|
22091
22094
|
placeholder: __props.placeholder,
|
|
22092
22095
|
class: normalizeClass(unref$1(computedClassInput)),
|
|
22093
22096
|
style: normalizeStyle(unref$1(computedStyleInput)),
|
|
22094
22097
|
disabled: __props.disabled,
|
|
22095
22098
|
onChange: _cache[1] || (_cache[1] = ($event) => onChange2($event)),
|
|
22096
22099
|
onInput: _cache[2] || (_cache[2] = ($event) => onInput($event)),
|
|
22097
|
-
onClick: _cache[3] || (_cache[3] = ($event) => onClick2($event))
|
|
22098
|
-
|
|
22100
|
+
onClick: _cache[3] || (_cache[3] = ($event) => onClick2($event)),
|
|
22101
|
+
onFocus: _cache[4] || (_cache[4] = ($event) => emits("focus", $event)),
|
|
22102
|
+
onBlur: _cache[5] || (_cache[5] = ($event) => emits("blur", $event))
|
|
22103
|
+
}, null, 46, _hoisted_1$g)), [
|
|
22104
|
+
[vModelText, unref$1(value)]
|
|
22105
|
+
]) : withDirectives((openBlock(), createElementBlock("input", {
|
|
22106
|
+
key: 3,
|
|
22107
|
+
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => isRef$1(value) ? value.value = $event : null),
|
|
22108
|
+
ref_key: "realInput",
|
|
22109
|
+
ref: realInput,
|
|
22110
|
+
autocomplete: __props.autocomplete ? "on" : "off",
|
|
22111
|
+
type: __props.type || defaultType,
|
|
22112
|
+
placeholder: __props.placeholder,
|
|
22113
|
+
class: normalizeClass(unref$1(computedClassInput)),
|
|
22114
|
+
style: normalizeStyle(unref$1(computedStyleInput)),
|
|
22115
|
+
disabled: __props.disabled,
|
|
22116
|
+
onChange: _cache[7] || (_cache[7] = ($event) => onChange2($event)),
|
|
22117
|
+
onInput: _cache[8] || (_cache[8] = ($event) => onInput($event)),
|
|
22118
|
+
onClick: _cache[9] || (_cache[9] = ($event) => onClick2($event))
|
|
22119
|
+
}, null, 46, _hoisted_2$c)), [
|
|
22099
22120
|
[vModelDynamic, unref$1(value)]
|
|
22100
22121
|
]),
|
|
22101
|
-
__props.
|
|
22102
|
-
key:
|
|
22122
|
+
__props.type === "password" ? (openBlock(), createElementBlock("div", {
|
|
22123
|
+
key: 4,
|
|
22124
|
+
class: "show-password",
|
|
22125
|
+
onClick: _cache[10] || (_cache[10] = ($event) => isShowingPassword.value = !isShowingPassword.value)
|
|
22126
|
+
}, [
|
|
22127
|
+
createVNode(CkIcon, {
|
|
22128
|
+
icon: isShowingPassword.value ? "eye-slash" : "eye"
|
|
22129
|
+
}, null, 8, ["icon"])
|
|
22130
|
+
])) : createCommentVNode("", true),
|
|
22131
|
+
__props.iconRight && __props.type !== "password" ? (openBlock(), createBlock(CkIcon, {
|
|
22132
|
+
key: 5,
|
|
22103
22133
|
class: "ck-input__icon-right",
|
|
22104
22134
|
color: "lightgrey",
|
|
22105
22135
|
icon: __props.iconRight,
|
|
@@ -22109,7 +22139,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
22109
22139
|
};
|
|
22110
22140
|
}
|
|
22111
22141
|
});
|
|
22112
|
-
var CkInput = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-
|
|
22142
|
+
var CkInput = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-b4c899d2"]]);
|
|
22113
22143
|
var ckTable__headerItems_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
22114
22144
|
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
22115
22145
|
props: {
|
|
@@ -23743,7 +23773,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
23743
23773
|
};
|
|
23744
23774
|
}
|
|
23745
23775
|
});
|
|
23746
|
-
var ckTable = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-
|
|
23776
|
+
var ckTable = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-6d9f4aad"]]);
|
|
23747
23777
|
var ckChip_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
23748
23778
|
const _hoisted_1$a = ["color"];
|
|
23749
23779
|
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|