cleek 2.4.45 → 2.4.48

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 (39) hide show
  1. package/dist/cleek.es.js +64 -16
  2. package/dist/cleek.umd.js +10 -10
  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 +30 -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 +34 -0
  9. package/dist/components/ck-img.vue.d.ts +38 -0
  10. package/dist/components/ck-input.vue.d.ts +79 -0
  11. package/dist/components/ck-label.vue.d.ts +20 -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 +10 -0
  15. package/dist/components/ck-notify/components/CkNotify.vue.d.ts +9 -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 +32 -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 +37 -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 +31 -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 +63 -0
  31. package/dist/components/index.d.ts +22 -0
  32. package/dist/hooks/windowWidth.d.ts +3 -0
  33. package/dist/package-config.d.ts +3 -0
  34. package/dist/style.css +1 -1
  35. package/dist/types/cleek-options.d.ts +42 -0
  36. package/dist/types/table.d.ts +17 -0
  37. package/dist/utils/functions.d.ts +15 -0
  38. package/dist/utils/globalVariables.d.ts +6 -0
  39. package/package.json +1 -1
package/dist/cleek.es.js CHANGED
@@ -21045,12 +21045,14 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
21045
21045
  group: null,
21046
21046
  groupVertical: null,
21047
21047
  widthBreaks: null,
21048
+ fontSize: null,
21048
21049
  size: null,
21049
21050
  hideBorder: { type: Boolean },
21050
21051
  width: null,
21051
21052
  align: null,
21052
21053
  layout: null,
21053
21054
  borderColor: null,
21055
+ capitalize: { type: Boolean },
21054
21056
  autoSelect: { type: Boolean },
21055
21057
  delayChangeTime: null
21056
21058
  },
@@ -21068,6 +21070,8 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
21068
21070
  return props.modelValue;
21069
21071
  },
21070
21072
  set(val) {
21073
+ if (props.capitalize)
21074
+ val = qmStr.capitalize(`${val}`);
21071
21075
  emits("update:modelValue", val);
21072
21076
  checkSearchTime(val);
21073
21077
  }
@@ -21210,7 +21214,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
21210
21214
  };
21211
21215
  }
21212
21216
  });
21213
- var CkInput = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-4a21992c"]]);
21217
+ var CkInput = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-6a13dddb"]]);
21214
21218
  var ckTable__headerItems_vue_vue_type_style_index_0_scoped_true_lang = "";
21215
21219
  const _sfc_main$g = /* @__PURE__ */ defineComponent({
21216
21220
  props: {
@@ -23631,24 +23635,37 @@ const _hoisted_2$2 = ["placeholder", "disabled"];
23631
23635
  const _sfc_main$2 = /* @__PURE__ */ defineComponent({
23632
23636
  props: {
23633
23637
  modelValue: null,
23634
- label: null,
23635
- labelAlign: null,
23638
+ disabled: { type: Boolean },
23639
+ placeholder: null,
23640
+ resize: { type: [Boolean, String] },
23636
23641
  layout: null,
23637
23642
  borderColor: null,
23638
- placeholder: null,
23639
- disabled: { type: Boolean },
23640
- preventResize: { type: Boolean },
23641
- resize: null
23643
+ align: null,
23644
+ group: null,
23645
+ groupVertical: null,
23646
+ borderRadius: null,
23647
+ fontSize: null,
23648
+ textColor: null,
23649
+ width: null,
23650
+ height: null,
23651
+ capitalize: { type: Boolean },
23652
+ autoSelect: { type: Boolean },
23653
+ label: null,
23654
+ labelAlign: null
23642
23655
  },
23643
- emits: ["update:modelValue"],
23656
+ emits: ["update:modelValue", "input", "change", "click"],
23644
23657
  setup(__props, { emit: emits }) {
23645
23658
  const props = __props;
23646
23659
  let cleekOptions2 = ref();
23647
- const value = computed$2({
23660
+ const refTextarea = ref(null);
23661
+ const { windowWidth } = useWindowWidth();
23662
+ const inputValue = computed$2({
23648
23663
  get() {
23649
23664
  return props.modelValue;
23650
23665
  },
23651
23666
  set(val) {
23667
+ if (props.capitalize)
23668
+ val = qmStr.capitalize(val);
23652
23669
  emits("update:modelValue", val);
23653
23670
  }
23654
23671
  });
@@ -23662,6 +23679,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
23662
23679
  if (borderColor && hooks8.isColorTemplateVariable(borderColor)) {
23663
23680
  list.push(`ck-component__border-color--${borderColor}`);
23664
23681
  }
23682
+ list.push(hooks8.getGroupClass(props, windowWidth.value));
23665
23683
  return list;
23666
23684
  });
23667
23685
  const computedStyleTextarea = computed$2(() => {
@@ -23671,10 +23689,35 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
23671
23689
  if (borderColor && !hooks8.isColorTemplateVariable(borderColor)) {
23672
23690
  list.push({ "border-color": borderColor });
23673
23691
  }
23674
- if (props.resize)
23675
- list.push({ resize: props.resize || "both" });
23692
+ if (props.align)
23693
+ list.push(`align--${props.align}`);
23694
+ if (props.fontSize)
23695
+ list.push({ "font-size": props.fontSize });
23696
+ if (props.borderRadius)
23697
+ list.push({ "border-radius": props.borderRadius });
23698
+ if (props.textColor)
23699
+ list.push({ "color": props.textColor });
23700
+ if (props.width)
23701
+ list.push({ "width": props.width });
23702
+ if (props.height)
23703
+ list.push({ "height": props.height });
23704
+ const resize = props.resize ? props.resize : "none";
23705
+ if (resize)
23706
+ list.push({ resize: resize || "both" });
23676
23707
  return list;
23677
23708
  });
23709
+ const onClick2 = (event) => {
23710
+ var _a;
23711
+ if (props.autoSelect)
23712
+ (_a = refTextarea.value) == null ? void 0 : _a.select();
23713
+ emits("click", event);
23714
+ };
23715
+ const onInput = (event) => {
23716
+ emits("input", event);
23717
+ };
23718
+ const onChange2 = (event) => {
23719
+ emits("change", event);
23720
+ };
23678
23721
  onMounted(() => {
23679
23722
  cleekOptions2.value = hooks8.getCleekOptions(getCurrentInstance);
23680
23723
  });
@@ -23690,19 +23733,24 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
23690
23733
  _: 1
23691
23734
  }, 8, ["label-align"])) : createCommentVNode("", true),
23692
23735
  withDirectives(createElementVNode("textarea", {
23693
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef$1(value) ? value.value = $event : null),
23736
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef$1(inputValue) ? inputValue.value = $event : null),
23737
+ ref_key: "refTextarea",
23738
+ ref: refTextarea,
23694
23739
  placeholder: __props.placeholder,
23695
23740
  disabled: __props.disabled,
23696
23741
  class: normalizeClass(unref$1(computedClassTextarea)),
23697
- style: normalizeStyle(unref$1(computedStyleTextarea))
23698
- }, null, 14, _hoisted_2$2), [
23699
- [vModelText, unref$1(value)]
23742
+ style: normalizeStyle(unref$1(computedStyleTextarea)),
23743
+ onClick: _cache[1] || (_cache[1] = ($event) => onClick2($event)),
23744
+ onInput: _cache[2] || (_cache[2] = ($event) => onInput($event)),
23745
+ onChange: _cache[3] || (_cache[3] = ($event) => onChange2($event))
23746
+ }, null, 46, _hoisted_2$2), [
23747
+ [vModelText, unref$1(inputValue)]
23700
23748
  ])
23701
23749
  ]);
23702
23750
  };
23703
23751
  }
23704
23752
  });
23705
- var ckTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-6f36045c"]]);
23753
+ var ckTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-032f62d5"]]);
23706
23754
  var CkConfirm_vue_vue_type_style_index_0_scoped_true_lang = "";
23707
23755
  const _withScopeId = (n) => (pushScopeId("data-v-314de9fc"), n = n(), popScopeId(), n);
23708
23756
  const _hoisted_1$1 = { class: "ck-confirm--background" };