cleek 2.4.45 → 2.4.46

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 +57 -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 +77 -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 +59 -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
@@ -21051,6 +21051,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
21051
21051
  align: null,
21052
21052
  layout: null,
21053
21053
  borderColor: null,
21054
+ capitalize: { type: Boolean },
21054
21055
  autoSelect: { type: Boolean },
21055
21056
  delayChangeTime: null
21056
21057
  },
@@ -21068,6 +21069,8 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
21068
21069
  return props.modelValue;
21069
21070
  },
21070
21071
  set(val) {
21072
+ if (props.capitalize)
21073
+ val = qmStr.capitalize(`${val}`);
21071
21074
  emits("update:modelValue", val);
21072
21075
  checkSearchTime(val);
21073
21076
  }
@@ -21210,7 +21213,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
21210
21213
  };
21211
21214
  }
21212
21215
  });
21213
- var CkInput = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-4a21992c"]]);
21216
+ var CkInput = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-3dd03536"]]);
21214
21217
  var ckTable__headerItems_vue_vue_type_style_index_0_scoped_true_lang = "";
21215
21218
  const _sfc_main$g = /* @__PURE__ */ defineComponent({
21216
21219
  props: {
@@ -23631,24 +23634,35 @@ const _hoisted_2$2 = ["placeholder", "disabled"];
23631
23634
  const _sfc_main$2 = /* @__PURE__ */ defineComponent({
23632
23635
  props: {
23633
23636
  modelValue: null,
23634
- label: null,
23635
- labelAlign: null,
23637
+ disabled: { type: Boolean },
23638
+ placeholder: null,
23639
+ resize: { type: [Boolean, String] },
23636
23640
  layout: null,
23637
23641
  borderColor: null,
23638
- placeholder: null,
23639
- disabled: { type: Boolean },
23640
- preventResize: { type: Boolean },
23641
- resize: null
23642
+ group: null,
23643
+ groupVertical: null,
23644
+ borderRadius: null,
23645
+ fontSize: null,
23646
+ width: null,
23647
+ height: null,
23648
+ capitalize: { type: Boolean },
23649
+ autoSelect: { type: Boolean },
23650
+ label: null,
23651
+ labelAlign: null
23642
23652
  },
23643
- emits: ["update:modelValue"],
23653
+ emits: ["update:modelValue", "input", "change", "click"],
23644
23654
  setup(__props, { emit: emits }) {
23645
23655
  const props = __props;
23646
23656
  let cleekOptions2 = ref();
23647
- const value = computed$2({
23657
+ const refTextarea = ref(null);
23658
+ const { windowWidth } = useWindowWidth();
23659
+ const inputValue = computed$2({
23648
23660
  get() {
23649
23661
  return props.modelValue;
23650
23662
  },
23651
23663
  set(val) {
23664
+ if (props.capitalize)
23665
+ val = qmStr.capitalize(val);
23652
23666
  emits("update:modelValue", val);
23653
23667
  }
23654
23668
  });
@@ -23662,6 +23676,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
23662
23676
  if (borderColor && hooks8.isColorTemplateVariable(borderColor)) {
23663
23677
  list.push(`ck-component__border-color--${borderColor}`);
23664
23678
  }
23679
+ list.push(hooks8.getGroupClass(props, windowWidth.value));
23665
23680
  return list;
23666
23681
  });
23667
23682
  const computedStyleTextarea = computed$2(() => {
@@ -23671,10 +23686,31 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
23671
23686
  if (borderColor && !hooks8.isColorTemplateVariable(borderColor)) {
23672
23687
  list.push({ "border-color": borderColor });
23673
23688
  }
23674
- if (props.resize)
23675
- list.push({ resize: props.resize || "both" });
23689
+ if (props.fontSize)
23690
+ list.push({ "font-size": props.fontSize });
23691
+ if (props.borderRadius)
23692
+ list.push({ "border-radius": props.borderRadius });
23693
+ if (props.width)
23694
+ list.push({ "width": props.width });
23695
+ if (props.height)
23696
+ list.push({ "height": props.height });
23697
+ const resize = props.resize ? props.resize : "none";
23698
+ if (resize)
23699
+ list.push({ resize: resize || "both" });
23676
23700
  return list;
23677
23701
  });
23702
+ const onClick2 = (event) => {
23703
+ var _a;
23704
+ if (props.autoSelect)
23705
+ (_a = refTextarea.value) == null ? void 0 : _a.select();
23706
+ emits("click", event);
23707
+ };
23708
+ const onInput = (event) => {
23709
+ emits("input", event);
23710
+ };
23711
+ const onChange2 = (event) => {
23712
+ emits("change", event);
23713
+ };
23678
23714
  onMounted(() => {
23679
23715
  cleekOptions2.value = hooks8.getCleekOptions(getCurrentInstance);
23680
23716
  });
@@ -23690,19 +23726,24 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
23690
23726
  _: 1
23691
23727
  }, 8, ["label-align"])) : createCommentVNode("", true),
23692
23728
  withDirectives(createElementVNode("textarea", {
23693
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef$1(value) ? value.value = $event : null),
23729
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef$1(inputValue) ? inputValue.value = $event : null),
23730
+ ref_key: "refTextarea",
23731
+ ref: refTextarea,
23694
23732
  placeholder: __props.placeholder,
23695
23733
  disabled: __props.disabled,
23696
23734
  class: normalizeClass(unref$1(computedClassTextarea)),
23697
- style: normalizeStyle(unref$1(computedStyleTextarea))
23698
- }, null, 14, _hoisted_2$2), [
23699
- [vModelText, unref$1(value)]
23735
+ style: normalizeStyle(unref$1(computedStyleTextarea)),
23736
+ onClick: _cache[1] || (_cache[1] = ($event) => onClick2($event)),
23737
+ onInput: _cache[2] || (_cache[2] = ($event) => onInput($event)),
23738
+ onChange: _cache[3] || (_cache[3] = ($event) => onChange2($event))
23739
+ }, null, 46, _hoisted_2$2), [
23740
+ [vModelText, unref$1(inputValue)]
23700
23741
  ])
23701
23742
  ]);
23702
23743
  };
23703
23744
  }
23704
23745
  });
23705
- var ckTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-6f36045c"]]);
23746
+ var ckTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-6000e5e8"]]);
23706
23747
  var CkConfirm_vue_vue_type_style_index_0_scoped_true_lang = "";
23707
23748
  const _withScopeId = (n) => (pushScopeId("data-v-314de9fc"), n = n(), popScopeId(), n);
23708
23749
  const _hoisted_1$1 = { class: "ck-confirm--background" };