cleek 2.4.33 → 2.4.37
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 +22 -15
- 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,
|
|
@@ -23111,8 +23111,6 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
23111
23111
|
return props.modelValue;
|
|
23112
23112
|
},
|
|
23113
23113
|
set(val) {
|
|
23114
|
-
if (val === null)
|
|
23115
|
-
val = realClearValue;
|
|
23116
23114
|
emits("update:modelValue", val);
|
|
23117
23115
|
}
|
|
23118
23116
|
});
|
|
@@ -23177,10 +23175,17 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
23177
23175
|
list.push({ "width": props.width });
|
|
23178
23176
|
return list;
|
|
23179
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
|
+
});
|
|
23180
23186
|
const realClearValue = computed$2(() => {
|
|
23181
|
-
|
|
23182
|
-
|
|
23183
|
-
return clearValue;
|
|
23187
|
+
if (logicClearValue.value !== "auto")
|
|
23188
|
+
return logicClearValue.value;
|
|
23184
23189
|
switch (typeof props.modelValue) {
|
|
23185
23190
|
case "number":
|
|
23186
23191
|
return 0;
|
|
@@ -23197,9 +23202,8 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
23197
23202
|
}
|
|
23198
23203
|
});
|
|
23199
23204
|
const valueIsDefault = computed$2(() => {
|
|
23200
|
-
|
|
23201
|
-
|
|
23202
|
-
return value.value === clearValue;
|
|
23205
|
+
if (logicClearValue.value !== "auto")
|
|
23206
|
+
return value.value === logicClearValue.value;
|
|
23203
23207
|
switch (typeof props.modelValue) {
|
|
23204
23208
|
case "number":
|
|
23205
23209
|
return props.modelValue === 0;
|
|
@@ -23237,6 +23241,9 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
23237
23241
|
const reduceNameProp = props.reduceNameProp || defaultReduceNameProp;
|
|
23238
23242
|
return option[props.prop || reduceNameProp];
|
|
23239
23243
|
}
|
|
23244
|
+
function setClearValue() {
|
|
23245
|
+
value.value = realClearValue.value;
|
|
23246
|
+
}
|
|
23240
23247
|
function setFocus() {
|
|
23241
23248
|
}
|
|
23242
23249
|
onMounted(() => {
|
|
@@ -23272,7 +23279,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
23272
23279
|
unref$1(isClearBtnVisible) ? (openBlock(), createElementBlock("div", {
|
|
23273
23280
|
key: 2,
|
|
23274
23281
|
class: "ck-select__clear-btn",
|
|
23275
|
-
onClick: _cache[0] || (_cache[0] = ($event) =>
|
|
23282
|
+
onClick: _cache[0] || (_cache[0] = ($event) => setClearValue())
|
|
23276
23283
|
}, [
|
|
23277
23284
|
createVNode(CkIcon, { icon: "times" })
|
|
23278
23285
|
])) : createCommentVNode("", true),
|
|
@@ -23307,7 +23314,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
23307
23314
|
};
|
|
23308
23315
|
}
|
|
23309
23316
|
});
|
|
23310
|
-
var ckSelect = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-
|
|
23317
|
+
var ckSelect = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-6ec8caba"]]);
|
|
23311
23318
|
var ckSidebar_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
23312
23319
|
const _hoisted_1$5 = {
|
|
23313
23320
|
key: 0,
|