cleek 2.4.44 → 2.4.47

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 +65 -23
  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 +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 +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
@@ -18909,7 +18909,6 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
18909
18909
  const computedTdClass = computed$2(() => {
18910
18910
  var _a, _b, _c;
18911
18911
  const list = [];
18912
- console.log("props", __spreadValues({}, props));
18913
18912
  if (props.autoWidth || ((_a = props.col) == null ? void 0 : _a.autoWidth))
18914
18913
  list.push("auto-width");
18915
18914
  if (props.overflowAuto || ((_b = props.col) == null ? void 0 : _b.overflowAuto))
@@ -18980,7 +18979,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
18980
18979
  };
18981
18980
  }
18982
18981
  });
18983
- var CkTd = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-cf9c5808"]]);
18982
+ var CkTd = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-eb135f78"]]);
18984
18983
  var axios$2 = { exports: {} };
18985
18984
  var bind$2 = function bind2(fn, thisArg) {
18986
18985
  return function wrap() {
@@ -21052,6 +21051,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
21052
21051
  align: null,
21053
21052
  layout: null,
21054
21053
  borderColor: null,
21054
+ capitalize: { type: Boolean },
21055
21055
  autoSelect: { type: Boolean },
21056
21056
  delayChangeTime: null
21057
21057
  },
@@ -21069,6 +21069,8 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
21069
21069
  return props.modelValue;
21070
21070
  },
21071
21071
  set(val) {
21072
+ if (props.capitalize)
21073
+ val = qmStr.capitalize(`${val}`);
21072
21074
  emits("update:modelValue", val);
21073
21075
  checkSearchTime(val);
21074
21076
  }
@@ -21211,7 +21213,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
21211
21213
  };
21212
21214
  }
21213
21215
  });
21214
- 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"]]);
21215
21217
  var ckTable__headerItems_vue_vue_type_style_index_0_scoped_true_lang = "";
21216
21218
  const _sfc_main$g = /* @__PURE__ */ defineComponent({
21217
21219
  props: {
@@ -23632,24 +23634,37 @@ const _hoisted_2$2 = ["placeholder", "disabled"];
23632
23634
  const _sfc_main$2 = /* @__PURE__ */ defineComponent({
23633
23635
  props: {
23634
23636
  modelValue: null,
23635
- label: null,
23636
- labelAlign: null,
23637
+ disabled: { type: Boolean },
23638
+ placeholder: null,
23639
+ resize: { type: [Boolean, String] },
23637
23640
  layout: null,
23638
23641
  borderColor: null,
23639
- placeholder: null,
23640
- disabled: { type: Boolean },
23641
- preventResize: { type: Boolean },
23642
- resize: null
23642
+ align: null,
23643
+ group: null,
23644
+ groupVertical: null,
23645
+ borderRadius: null,
23646
+ fontSize: null,
23647
+ textColor: null,
23648
+ width: null,
23649
+ height: null,
23650
+ capitalize: { type: Boolean },
23651
+ autoSelect: { type: Boolean },
23652
+ label: null,
23653
+ labelAlign: null
23643
23654
  },
23644
- emits: ["update:modelValue"],
23655
+ emits: ["update:modelValue", "input", "change", "click"],
23645
23656
  setup(__props, { emit: emits }) {
23646
23657
  const props = __props;
23647
23658
  let cleekOptions2 = ref();
23648
- const value = computed$2({
23659
+ const refTextarea = ref(null);
23660
+ const { windowWidth } = useWindowWidth();
23661
+ const inputValue = computed$2({
23649
23662
  get() {
23650
23663
  return props.modelValue;
23651
23664
  },
23652
23665
  set(val) {
23666
+ if (props.capitalize)
23667
+ val = qmStr.capitalize(val);
23653
23668
  emits("update:modelValue", val);
23654
23669
  }
23655
23670
  });
@@ -23663,6 +23678,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
23663
23678
  if (borderColor && hooks8.isColorTemplateVariable(borderColor)) {
23664
23679
  list.push(`ck-component__border-color--${borderColor}`);
23665
23680
  }
23681
+ list.push(hooks8.getGroupClass(props, windowWidth.value));
23666
23682
  return list;
23667
23683
  });
23668
23684
  const computedStyleTextarea = computed$2(() => {
@@ -23672,10 +23688,35 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
23672
23688
  if (borderColor && !hooks8.isColorTemplateVariable(borderColor)) {
23673
23689
  list.push({ "border-color": borderColor });
23674
23690
  }
23675
- if (props.resize)
23676
- list.push({ resize: props.resize || "both" });
23691
+ if (props.align)
23692
+ list.push(`align--${props.align}`);
23693
+ if (props.fontSize)
23694
+ list.push({ "font-size": props.fontSize });
23695
+ if (props.borderRadius)
23696
+ list.push({ "border-radius": props.borderRadius });
23697
+ if (props.textColor)
23698
+ list.push({ "color": props.textColor });
23699
+ if (props.width)
23700
+ list.push({ "width": props.width });
23701
+ if (props.height)
23702
+ list.push({ "height": props.height });
23703
+ const resize = props.resize ? props.resize : "none";
23704
+ if (resize)
23705
+ list.push({ resize: resize || "both" });
23677
23706
  return list;
23678
23707
  });
23708
+ const onClick2 = (event) => {
23709
+ var _a;
23710
+ if (props.autoSelect)
23711
+ (_a = refTextarea.value) == null ? void 0 : _a.select();
23712
+ emits("click", event);
23713
+ };
23714
+ const onInput = (event) => {
23715
+ emits("input", event);
23716
+ };
23717
+ const onChange2 = (event) => {
23718
+ emits("change", event);
23719
+ };
23679
23720
  onMounted(() => {
23680
23721
  cleekOptions2.value = hooks8.getCleekOptions(getCurrentInstance);
23681
23722
  });
@@ -23691,19 +23732,24 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
23691
23732
  _: 1
23692
23733
  }, 8, ["label-align"])) : createCommentVNode("", true),
23693
23734
  withDirectives(createElementVNode("textarea", {
23694
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef$1(value) ? value.value = $event : null),
23735
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef$1(inputValue) ? inputValue.value = $event : null),
23736
+ ref_key: "refTextarea",
23737
+ ref: refTextarea,
23695
23738
  placeholder: __props.placeholder,
23696
23739
  disabled: __props.disabled,
23697
23740
  class: normalizeClass(unref$1(computedClassTextarea)),
23698
- style: normalizeStyle(unref$1(computedStyleTextarea))
23699
- }, null, 14, _hoisted_2$2), [
23700
- [vModelText, unref$1(value)]
23741
+ style: normalizeStyle(unref$1(computedStyleTextarea)),
23742
+ onClick: _cache[1] || (_cache[1] = ($event) => onClick2($event)),
23743
+ onInput: _cache[2] || (_cache[2] = ($event) => onInput($event)),
23744
+ onChange: _cache[3] || (_cache[3] = ($event) => onChange2($event))
23745
+ }, null, 46, _hoisted_2$2), [
23746
+ [vModelText, unref$1(inputValue)]
23701
23747
  ])
23702
23748
  ]);
23703
23749
  };
23704
23750
  }
23705
23751
  });
23706
- var ckTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-6f36045c"]]);
23752
+ var ckTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-032f62d5"]]);
23707
23753
  var CkConfirm_vue_vue_type_style_index_0_scoped_true_lang = "";
23708
23754
  const _withScopeId = (n) => (pushScopeId("data-v-314de9fc"), n = n(), popScopeId(), n);
23709
23755
  const _hoisted_1$1 = { class: "ck-confirm--background" };
@@ -23827,10 +23873,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
23827
23873
  });
23828
23874
  onMounted(() => {
23829
23875
  cleekOptions2.value = hooks8.getCleekOptions(getCurrentInstance);
23830
- console.log("getCurrentInstance", getCurrentInstance);
23831
- console.log("getCurrentInstance", __spreadValues({}, getCurrentInstance));
23832
- console.log("cleekOptions.value", cleekOptions2.value);
23833
- console.log("hooks.getCleekOptions(getCurrentInstance)", hooks8.getCleekOptions(getCurrentInstance));
23834
23876
  setTimeout(() => {
23835
23877
  setTimeout(() => {
23836
23878
  closeCallback.value();
@@ -23864,7 +23906,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
23864
23906
  };
23865
23907
  }
23866
23908
  });
23867
- var CkNotifyComponent = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-34060c3d"]]);
23909
+ var CkNotifyComponent = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-7c413389"]]);
23868
23910
  const defaultDuration = 2e3;
23869
23911
  var ckNotify = {
23870
23912
  confirmOptions({