cleek 2.4.32 → 2.4.36
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 +50 -17
- package/dist/cleek.umd.js +8 -8
- package/dist/components/ck-button.vue.d.ts +50 -0
- package/dist/components/ck-checkbox.vue.d.ts +26 -0
- package/dist/components/ck-chip.vue.d.ts +27 -0
- package/dist/components/ck-div.vue.d.ts +19 -0
- package/dist/components/ck-dropdown/ck-dropdown.vue.d.ts +20 -0
- package/dist/components/ck-icon.vue.d.ts +39 -0
- package/dist/components/ck-img.vue.d.ts +39 -0
- package/dist/components/ck-input.vue.d.ts +75 -0
- package/dist/components/ck-label.vue.d.ts +19 -0
- package/dist/components/ck-navbar/ck-navbar.vue.d.ts +17 -0
- package/dist/components/ck-notify/ck-notify.d.ts +21 -0
- package/dist/components/ck-notify/components/CkConfirm.vue.d.ts +9 -0
- package/dist/components/ck-notify/components/CkNotify.vue.d.ts +8 -0
- package/dist/components/ck-popup.vue.d.ts +64 -0
- package/dist/components/ck-radio.vue.d.ts +34 -0
- package/dist/components/ck-select.vue.d.ts +82 -0
- package/dist/components/ck-sidebar.vue.d.ts +33 -0
- package/dist/components/ck-switch-options.vue.d.ts +42 -0
- package/dist/components/ck-switch.vue.d.ts +31 -0
- package/dist/components/ck-table/ck-table.vue.d.ts +59 -0
- package/dist/components/ck-table/ck-td.vue.d.ts +43 -0
- package/dist/components/ck-table/ck-th.vue.d.ts +17 -0
- package/dist/components/ck-table/ck-tr.vue.d.ts +2 -0
- package/dist/components/ck-table/inner-components/ck-table__columns-manager.vue.d.ts +24 -0
- package/dist/components/ck-table/inner-components/ck-table__header-items.vue.d.ts +42 -0
- package/dist/components/ck-table/inner-components/ck-table__pagination.vue.d.ts +30 -0
- package/dist/components/ck-table/inner-components/ck-table__title.vue.d.ts +16 -0
- package/dist/components/ck-textarea.vue.d.ts +28 -0
- package/dist/components/index.d.ts +22 -0
- package/dist/hooks/windowWidth.d.ts +3 -0
- package/dist/style.css +1 -1
- package/dist/types/cleek-options.d.ts +38 -0
- package/dist/types/table.d.ts +6 -0
- package/dist/utils/functions.d.ts +15 -0
- package/dist/utils/globalVariables.d.ts +6 -0
- package/package.json +1 -1
package/dist/cleek.es.js
CHANGED
|
@@ -22412,12 +22412,12 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
22412
22412
|
return list;
|
|
22413
22413
|
});
|
|
22414
22414
|
const realAcceptBtnType = computed$2(() => {
|
|
22415
|
-
var _a
|
|
22415
|
+
var _a;
|
|
22416
22416
|
if (props.acceptBtnType)
|
|
22417
22417
|
return props.acceptBtnType;
|
|
22418
22418
|
if ((_a = cleekOptions2.value) == null ? void 0 : _a.popup.acceptBtnType)
|
|
22419
|
-
return
|
|
22420
|
-
return "
|
|
22419
|
+
return cleekOptions2.value.popup.acceptBtnType;
|
|
22420
|
+
return "outlined";
|
|
22421
22421
|
});
|
|
22422
22422
|
const realCancelBtnType = computed$2(() => {
|
|
22423
22423
|
var _a, _b;
|
|
@@ -22425,7 +22425,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
22425
22425
|
return props.cancelBtnType;
|
|
22426
22426
|
if ((_a = cleekOptions2.value) == null ? void 0 : _a.popup.cancelBtnType)
|
|
22427
22427
|
return (_b = cleekOptions2.value) == null ? void 0 : _b.popup.cancelBtnType;
|
|
22428
|
-
return "
|
|
22428
|
+
return "flat";
|
|
22429
22429
|
});
|
|
22430
22430
|
function onCancel() {
|
|
22431
22431
|
emits("cancel");
|
|
@@ -23075,7 +23075,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
23075
23075
|
reduceNameFunction: null,
|
|
23076
23076
|
reduceValueFunction: null,
|
|
23077
23077
|
notClearable: { type: Boolean },
|
|
23078
|
-
clearValue:
|
|
23078
|
+
clearValue: null,
|
|
23079
23079
|
searchable: { type: [Boolean, String] },
|
|
23080
23080
|
minWidth: null,
|
|
23081
23081
|
width: null,
|
|
@@ -23087,6 +23087,9 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
23087
23087
|
group: null,
|
|
23088
23088
|
groupVertical: null,
|
|
23089
23089
|
widthBreaks: null,
|
|
23090
|
+
icon: null,
|
|
23091
|
+
iconRight: null,
|
|
23092
|
+
iconPack: null,
|
|
23090
23093
|
label: null,
|
|
23091
23094
|
labelAlign: null
|
|
23092
23095
|
},
|
|
@@ -23108,8 +23111,6 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
23108
23111
|
return props.modelValue;
|
|
23109
23112
|
},
|
|
23110
23113
|
set(val) {
|
|
23111
|
-
if (val === null)
|
|
23112
|
-
val = realClearValue;
|
|
23113
23114
|
emits("update:modelValue", val);
|
|
23114
23115
|
}
|
|
23115
23116
|
});
|
|
@@ -23132,6 +23133,10 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
23132
23133
|
var _a, _b;
|
|
23133
23134
|
const list = [];
|
|
23134
23135
|
list.push(hooks8.getGroupClass(props, windowWidth.value));
|
|
23136
|
+
if (props.icon)
|
|
23137
|
+
list.push("has-icon-left");
|
|
23138
|
+
if (props.iconRight)
|
|
23139
|
+
list.push("has-icon-right");
|
|
23135
23140
|
const layout = props.layout || ((_a = cleekOptions2.value) == null ? void 0 : _a.styles.layout);
|
|
23136
23141
|
if (layout)
|
|
23137
23142
|
list.push(layout);
|
|
@@ -23170,10 +23175,18 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
23170
23175
|
list.push({ "width": props.width });
|
|
23171
23176
|
return list;
|
|
23172
23177
|
});
|
|
23178
|
+
const logicClearValue = computed$2(() => {
|
|
23179
|
+
var _a, _b;
|
|
23180
|
+
if (typeof props.clearValue !== "undefined")
|
|
23181
|
+
return props.clearValue;
|
|
23182
|
+
if (typeof ((_b = (_a = cleekOptions2.value) == null ? void 0 : _a.select) == null ? void 0 : _b.clearValue) !== "undefined")
|
|
23183
|
+
return cleekOptions2.value.select.clearValue;
|
|
23184
|
+
return defaultClearValue;
|
|
23185
|
+
});
|
|
23173
23186
|
const realClearValue = computed$2(() => {
|
|
23174
|
-
|
|
23175
|
-
if (
|
|
23176
|
-
return
|
|
23187
|
+
console.log("logicClearValue", logicClearValue.value);
|
|
23188
|
+
if (logicClearValue.value !== "auto")
|
|
23189
|
+
return logicClearValue.value;
|
|
23177
23190
|
switch (typeof props.modelValue) {
|
|
23178
23191
|
case "number":
|
|
23179
23192
|
return 0;
|
|
@@ -23189,10 +23202,10 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
23189
23202
|
return null;
|
|
23190
23203
|
}
|
|
23191
23204
|
});
|
|
23205
|
+
console.log("realClearValue", realClearValue.value);
|
|
23192
23206
|
const valueIsDefault = computed$2(() => {
|
|
23193
|
-
|
|
23194
|
-
|
|
23195
|
-
return value.value === clearValue;
|
|
23207
|
+
if (logicClearValue.value !== "auto")
|
|
23208
|
+
return value.value === logicClearValue.value;
|
|
23196
23209
|
switch (typeof props.modelValue) {
|
|
23197
23210
|
case "number":
|
|
23198
23211
|
return props.modelValue === 0;
|
|
@@ -23230,6 +23243,12 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
23230
23243
|
const reduceNameProp = props.reduceNameProp || defaultReduceNameProp;
|
|
23231
23244
|
return option[props.prop || reduceNameProp];
|
|
23232
23245
|
}
|
|
23246
|
+
function setClearValue() {
|
|
23247
|
+
console.log("value.value", value.value);
|
|
23248
|
+
console.log("realClearValue.value", realClearValue.value);
|
|
23249
|
+
value.value = realClearValue.value;
|
|
23250
|
+
console.log("value.value", value.value);
|
|
23251
|
+
}
|
|
23233
23252
|
function setFocus() {
|
|
23234
23253
|
}
|
|
23235
23254
|
onMounted(() => {
|
|
@@ -23248,15 +23267,29 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
23248
23267
|
class: "ck-select",
|
|
23249
23268
|
style: normalizeStyle(unref$1(computedStyle))
|
|
23250
23269
|
}, [
|
|
23251
|
-
|
|
23270
|
+
__props.icon ? (openBlock(), createBlock(CkIcon, {
|
|
23252
23271
|
key: 0,
|
|
23272
|
+
class: "ck-select__icon-left",
|
|
23273
|
+
color: "lightgrey",
|
|
23274
|
+
icon: __props.icon,
|
|
23275
|
+
"icon-pack": __props.iconPack
|
|
23276
|
+
}, null, 8, ["icon", "icon-pack"])) : createCommentVNode("", true),
|
|
23277
|
+
__props.iconRight ? (openBlock(), createBlock(CkIcon, {
|
|
23278
|
+
key: 1,
|
|
23279
|
+
class: "ck-select__icon-right",
|
|
23280
|
+
color: "lightgrey",
|
|
23281
|
+
icon: __props.iconRight,
|
|
23282
|
+
"icon-pack": __props.iconPack
|
|
23283
|
+
}, null, 8, ["icon", "icon-pack"])) : createCommentVNode("", true),
|
|
23284
|
+
unref$1(isClearBtnVisible) ? (openBlock(), createElementBlock("div", {
|
|
23285
|
+
key: 2,
|
|
23253
23286
|
class: "ck-select__clear-btn",
|
|
23254
|
-
onClick: _cache[0] || (_cache[0] = ($event) =>
|
|
23287
|
+
onClick: _cache[0] || (_cache[0] = ($event) => setClearValue())
|
|
23255
23288
|
}, [
|
|
23256
23289
|
createVNode(CkIcon, { icon: "times" })
|
|
23257
23290
|
])) : createCommentVNode("", true),
|
|
23258
23291
|
__props.label ? (openBlock(), createBlock(CkLabel, {
|
|
23259
|
-
key:
|
|
23292
|
+
key: 3,
|
|
23260
23293
|
align: __props.labelAlign,
|
|
23261
23294
|
for: "ck-input"
|
|
23262
23295
|
}, {
|
|
@@ -23286,7 +23319,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
23286
23319
|
};
|
|
23287
23320
|
}
|
|
23288
23321
|
});
|
|
23289
|
-
var ckSelect = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-
|
|
23322
|
+
var ckSelect = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-71e3efde"]]);
|
|
23290
23323
|
var ckSidebar_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
23291
23324
|
const _hoisted_1$5 = {
|
|
23292
23325
|
key: 0,
|