vue-devui 1.6.9 → 1.6.11

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 (57) hide show
  1. package/auto-complete/index.es.js +8 -24
  2. package/auto-complete/index.umd.js +15 -15
  3. package/category-search/index.es.js +19 -36
  4. package/category-search/index.umd.js +18 -18
  5. package/checkbox/index.es.js +16 -33
  6. package/checkbox/index.umd.js +17 -17
  7. package/data-grid/index.es.js +11 -28
  8. package/data-grid/index.umd.js +7 -7
  9. package/date-picker-pro/index.es.js +36 -30
  10. package/date-picker-pro/index.umd.js +11 -11
  11. package/editor-md/index.es.js +0 -1
  12. package/editor-md/index.umd.js +4 -4
  13. package/form/index.es.js +14 -30
  14. package/form/index.umd.js +12 -12
  15. package/input/index.es.js +14 -30
  16. package/input/index.umd.js +10 -10
  17. package/input-number/index.es.js +14 -30
  18. package/input-number/index.umd.js +13 -13
  19. package/mention/index.es.js +8 -24
  20. package/mention/index.umd.js +13 -13
  21. package/menu/index.es.js +26 -2
  22. package/menu/index.umd.js +5 -1
  23. package/menu/style.css +1 -1
  24. package/modal/index.es.js +18 -12
  25. package/modal/index.umd.js +7 -7
  26. package/package.json +1 -1
  27. package/pagination/index.es.js +10 -27
  28. package/pagination/index.umd.js +7 -7
  29. package/radio/index.es.js +14 -30
  30. package/radio/index.umd.js +19 -19
  31. package/search/index.es.js +20 -30
  32. package/search/index.umd.js +11 -11
  33. package/search/style.css +1 -1
  34. package/select/index.es.js +16 -33
  35. package/select/index.umd.js +9 -9
  36. package/style.css +1 -1
  37. package/switch/index.es.js +8 -24
  38. package/switch/index.umd.js +15 -15
  39. package/table/index.es.js +10 -27
  40. package/table/index.umd.js +7 -7
  41. package/textarea/index.es.js +14 -30
  42. package/textarea/index.umd.js +18 -18
  43. package/time-picker/index.es.js +8 -24
  44. package/time-picker/index.umd.js +9 -9
  45. package/time-select/index.es.js +16 -33
  46. package/time-select/index.umd.js +14 -14
  47. package/tree/index.es.js +10 -27
  48. package/tree/index.umd.js +9 -9
  49. package/types/checkbox/src/checkbox-types.d.ts +0 -2
  50. package/types/date-picker-pro/src/date-picker-pro-types.d.ts +13 -0
  51. package/types/date-picker-pro/src/range-date-picker-types.d.ts +4 -0
  52. package/types/form/src/components/form-item/form-item-types.d.ts +4 -0
  53. package/types/form/src/components/form-item/form-item.d.ts +9 -0
  54. package/types/search/src/search-types.d.ts +4 -0
  55. package/types/search/src/search.d.ts +9 -0
  56. package/vue-devui.es.js +79 -59
  57. package/vue-devui.umd.js +43 -43
@@ -1418,7 +1418,7 @@ var lodash = { exports: {} };
1418
1418
  if (typeof func != "function") {
1419
1419
  throw new TypeError2(FUNC_ERROR_TEXT);
1420
1420
  }
1421
- return setTimeout2(function() {
1421
+ return setTimeout(function() {
1422
1422
  func.apply(undefined$1, args);
1423
1423
  }, wait);
1424
1424
  }
@@ -3227,7 +3227,7 @@ var lodash = { exports: {} };
3227
3227
  return object4[key];
3228
3228
  }
3229
3229
  var setData = shortOut(baseSetData);
3230
- var setTimeout2 = ctxSetTimeout || function(func, wait) {
3230
+ var setTimeout = ctxSetTimeout || function(func, wait) {
3231
3231
  return root.setTimeout(func, wait);
3232
3232
  };
3233
3233
  var setToString = shortOut(baseSetToString);
@@ -4019,7 +4019,7 @@ var lodash = { exports: {} };
4019
4019
  }
4020
4020
  function leadingEdge(time) {
4021
4021
  lastInvokeTime = time;
4022
- timerId = setTimeout2(timerExpired, wait);
4022
+ timerId = setTimeout(timerExpired, wait);
4023
4023
  return leading ? invokeFunc(time) : result2;
4024
4024
  }
4025
4025
  function remainingWait(time) {
@@ -4035,7 +4035,7 @@ var lodash = { exports: {} };
4035
4035
  if (shouldInvoke(time)) {
4036
4036
  return trailingEdge(time);
4037
4037
  }
4038
- timerId = setTimeout2(timerExpired, remainingWait(time));
4038
+ timerId = setTimeout(timerExpired, remainingWait(time));
4039
4039
  }
4040
4040
  function trailingEdge(time) {
4041
4041
  timerId = undefined$1;
@@ -4066,12 +4066,12 @@ var lodash = { exports: {} };
4066
4066
  }
4067
4067
  if (maxing) {
4068
4068
  clearTimeout(timerId);
4069
- timerId = setTimeout2(timerExpired, wait);
4069
+ timerId = setTimeout(timerExpired, wait);
4070
4070
  return invokeFunc(lastCallTime);
4071
4071
  }
4072
4072
  }
4073
4073
  if (timerId === undefined$1) {
4074
- timerId = setTimeout2(timerExpired, wait);
4074
+ timerId = setTimeout(timerExpired, wait);
4075
4075
  }
4076
4076
  return result2;
4077
4077
  }
@@ -5895,6 +5895,10 @@ const formItemProps = {
5895
5895
  extraInfo: {
5896
5896
  type: String,
5897
5897
  default: ""
5898
+ },
5899
+ isAsyncValidate: {
5900
+ type: Boolean,
5901
+ default: false
5898
5902
  }
5899
5903
  };
5900
5904
  const FORM_ITEM_TOKEN = "dFormItem";
@@ -6699,7 +6703,6 @@ var FormControl = defineComponent({
6699
6703
  const formControl2 = ref();
6700
6704
  const popoverRef = ref();
6701
6705
  const ns2 = useNamespace("form");
6702
- const showPopoverClick = ref(true);
6703
6706
  const {
6704
6707
  controlClasses,
6705
6708
  controlContainerClasses,
@@ -6723,27 +6726,6 @@ var FormControl = defineComponent({
6723
6726
  }
6724
6727
  return void 0;
6725
6728
  });
6726
- const onDocumentClick = (e) => {
6727
- const composedPath = e.composedPath();
6728
- if (composedPath.includes(popoverRef.value.triggerEl)) {
6729
- showPopoverClick.value = true;
6730
- } else {
6731
- showPopoverClick.value = false;
6732
- }
6733
- };
6734
- watch(showPopover, (val) => {
6735
- if (val) {
6736
- setTimeout(() => {
6737
- document.addEventListener("click", onDocumentClick);
6738
- });
6739
- } else {
6740
- showPopoverClick.value = true;
6741
- document.removeEventListener("click", onDocumentClick);
6742
- }
6743
- });
6744
- onUnmounted(() => {
6745
- document.removeEventListener("click", onDocumentClick);
6746
- });
6747
6729
  return () => createVNode("div", {
6748
6730
  "class": controlClasses.value,
6749
6731
  "ref": formControl2
@@ -6751,7 +6733,7 @@ var FormControl = defineComponent({
6751
6733
  "class": controlContainerClasses.value
6752
6734
  }, [createVNode(Popover, {
6753
6735
  "ref": popoverRef,
6754
- "is-open": showPopover.value && showPopoverClick.value,
6736
+ "is-open": showPopover.value,
6755
6737
  "trigger": "manually",
6756
6738
  "content": errorMessage.value,
6757
6739
  "pop-type": "error",
@@ -7881,7 +7863,9 @@ function useFormItemValidate(props, _rules) {
7881
7863
  callback == null ? void 0 : callback(true);
7882
7864
  return true;
7883
7865
  }
7884
- validateState.value = "pending";
7866
+ if (props.isAsyncValidate) {
7867
+ validateState.value = "pending";
7868
+ }
7885
7869
  return execValidate(rules2).then(() => {
7886
7870
  callback == null ? void 0 : callback(true);
7887
7871
  return true;
@@ -8491,8 +8475,7 @@ const commonProps = {
8491
8475
  default: void 0
8492
8476
  },
8493
8477
  size: {
8494
- type: String,
8495
- default: "md"
8478
+ type: String
8496
8479
  },
8497
8480
  showGlowStyle: {
8498
8481
  type: Boolean,
@@ -8692,7 +8675,7 @@ function useCheckboxGroup(props, ctx) {
8692
8675
  formItemContext == null ? void 0 : formItemContext.validate("change").catch(() => {
8693
8676
  });
8694
8677
  }, { deep: true });
8695
- const checkboxGroupSize = computed(() => props.size || (formContext == null ? void 0 : formContext.size) || "");
8678
+ const checkboxGroupSize = computed(() => props.size || (formContext == null ? void 0 : formContext.size) || "md");
8696
8679
  provide(checkboxGroupInjectionKey, {
8697
8680
  disabled: toRef(props, "disabled"),
8698
8681
  isShowTitle: toRef(props, "isShowTitle"),