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.
Files changed (38) hide show
  1. package/dist/cleek.es.js +22 -15
  2. package/dist/cleek.umd.js +8 -8
  3. package/dist/components/ck-button.vue.d.ts +50 -0
  4. package/dist/components/ck-checkbox.vue.d.ts +26 -0
  5. package/dist/components/ck-chip.vue.d.ts +27 -0
  6. package/dist/components/ck-div.vue.d.ts +19 -0
  7. package/dist/components/ck-dropdown/ck-dropdown.vue.d.ts +20 -0
  8. package/dist/components/ck-icon.vue.d.ts +39 -0
  9. package/dist/components/ck-img.vue.d.ts +39 -0
  10. package/dist/components/ck-input.vue.d.ts +75 -0
  11. package/dist/components/ck-label.vue.d.ts +19 -0
  12. package/dist/components/ck-navbar/ck-navbar.vue.d.ts +17 -0
  13. package/dist/components/ck-notify/ck-notify.d.ts +21 -0
  14. package/dist/components/ck-notify/components/CkConfirm.vue.d.ts +9 -0
  15. package/dist/components/ck-notify/components/CkNotify.vue.d.ts +8 -0
  16. package/dist/components/ck-popup.vue.d.ts +64 -0
  17. package/dist/components/ck-radio.vue.d.ts +34 -0
  18. package/dist/components/ck-select.vue.d.ts +82 -0
  19. package/dist/components/ck-sidebar.vue.d.ts +33 -0
  20. package/dist/components/ck-switch-options.vue.d.ts +42 -0
  21. package/dist/components/ck-switch.vue.d.ts +31 -0
  22. package/dist/components/ck-table/ck-table.vue.d.ts +59 -0
  23. package/dist/components/ck-table/ck-td.vue.d.ts +43 -0
  24. package/dist/components/ck-table/ck-th.vue.d.ts +17 -0
  25. package/dist/components/ck-table/ck-tr.vue.d.ts +2 -0
  26. package/dist/components/ck-table/inner-components/ck-table__columns-manager.vue.d.ts +24 -0
  27. package/dist/components/ck-table/inner-components/ck-table__header-items.vue.d.ts +42 -0
  28. package/dist/components/ck-table/inner-components/ck-table__pagination.vue.d.ts +30 -0
  29. package/dist/components/ck-table/inner-components/ck-table__title.vue.d.ts +16 -0
  30. package/dist/components/ck-textarea.vue.d.ts +28 -0
  31. package/dist/components/index.d.ts +22 -0
  32. package/dist/hooks/windowWidth.d.ts +3 -0
  33. package/dist/style.css +1 -1
  34. package/dist/types/cleek-options.d.ts +38 -0
  35. package/dist/types/table.d.ts +6 -0
  36. package/dist/utils/functions.d.ts +15 -0
  37. package/dist/utils/globalVariables.d.ts +6 -0
  38. 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, _b;
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 (_b = cleekOptions2.value) == null ? void 0 : _b.popup.acceptBtnType;
22420
- return "flat";
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 "outlined";
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: { type: [Boolean, String] },
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
- const clearValue = props.clearValue || defaultClearValue;
23182
- if (clearValue !== "auto")
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
- const clearValue = props.clearValue || defaultClearValue;
23201
- if (clearValue !== "auto")
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) => value.value = unref$1(realClearValue))
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-d31fd5ac"]]);
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,