cleek 2.4.33 → 2.4.35

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 +19 -11
  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
@@ -22416,8 +22416,10 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
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
+ if ((_b = cleekOptions2.value) == null ? void 0 : _b.button.type)
22421
+ return cleekOptions2.value.button.type;
22422
+ return "outlined";
22421
22423
  });
22422
22424
  const realCancelBtnType = computed$2(() => {
22423
22425
  var _a, _b;
@@ -22425,7 +22427,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
22425
22427
  return props.cancelBtnType;
22426
22428
  if ((_a = cleekOptions2.value) == null ? void 0 : _a.popup.cancelBtnType)
22427
22429
  return (_b = cleekOptions2.value) == null ? void 0 : _b.popup.cancelBtnType;
22428
- return "outlined";
22430
+ return "flat";
22429
22431
  });
22430
22432
  function onCancel() {
22431
22433
  emits("cancel");
@@ -23075,7 +23077,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
23075
23077
  reduceNameFunction: null,
23076
23078
  reduceValueFunction: null,
23077
23079
  notClearable: { type: Boolean },
23078
- clearValue: { type: [Boolean, String] },
23080
+ clearValue: null,
23079
23081
  searchable: { type: [Boolean, String] },
23080
23082
  minWidth: null,
23081
23083
  width: null,
@@ -23177,10 +23179,17 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
23177
23179
  list.push({ "width": props.width });
23178
23180
  return list;
23179
23181
  });
23182
+ const logicClearValue = computed$2(() => {
23183
+ var _a, _b;
23184
+ if (typeof props.clearValue !== "undefined")
23185
+ return props.clearValue;
23186
+ if (typeof ((_b = (_a = cleekOptions2.value) == null ? void 0 : _a.select) == null ? void 0 : _b.clearValue) !== "undefined")
23187
+ return cleekOptions2.value.select.clearValue;
23188
+ return defaultClearValue;
23189
+ });
23180
23190
  const realClearValue = computed$2(() => {
23181
- const clearValue = props.clearValue || defaultClearValue;
23182
- if (clearValue !== "auto")
23183
- return clearValue;
23191
+ if (logicClearValue.value !== "auto")
23192
+ return logicClearValue.value;
23184
23193
  switch (typeof props.modelValue) {
23185
23194
  case "number":
23186
23195
  return 0;
@@ -23197,9 +23206,8 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
23197
23206
  }
23198
23207
  });
23199
23208
  const valueIsDefault = computed$2(() => {
23200
- const clearValue = props.clearValue || defaultClearValue;
23201
- if (clearValue !== "auto")
23202
- return value.value === clearValue;
23209
+ if (logicClearValue.value !== "auto")
23210
+ return value.value === logicClearValue.value;
23203
23211
  switch (typeof props.modelValue) {
23204
23212
  case "number":
23205
23213
  return props.modelValue === 0;
@@ -23307,7 +23315,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
23307
23315
  };
23308
23316
  }
23309
23317
  });
23310
- var ckSelect = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-d31fd5ac"]]);
23318
+ var ckSelect = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-5b741e99"]]);
23311
23319
  var ckSidebar_vue_vue_type_style_index_0_scoped_true_lang = "";
23312
23320
  const _hoisted_1$5 = {
23313
23321
  key: 0,