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
@@ -79,6 +79,10 @@ const searchProps = {
79
79
  "onUpdate:modelValue": {
80
80
  type: Function,
81
81
  default: void 0
82
+ },
83
+ showGlowStyle: {
84
+ type: Boolean,
85
+ default: true
82
86
  }
83
87
  };
84
88
  const formProps = {
@@ -1374,7 +1378,7 @@ var lodash = { exports: {} };
1374
1378
  if (typeof func != "function") {
1375
1379
  throw new TypeError2(FUNC_ERROR_TEXT);
1376
1380
  }
1377
- return setTimeout2(function() {
1381
+ return setTimeout(function() {
1378
1382
  func.apply(undefined$1, args);
1379
1383
  }, wait);
1380
1384
  }
@@ -3183,7 +3187,7 @@ var lodash = { exports: {} };
3183
3187
  return object4[key];
3184
3188
  }
3185
3189
  var setData = shortOut(baseSetData);
3186
- var setTimeout2 = ctxSetTimeout || function(func, wait) {
3190
+ var setTimeout = ctxSetTimeout || function(func, wait) {
3187
3191
  return root.setTimeout(func, wait);
3188
3192
  };
3189
3193
  var setToString = shortOut(baseSetToString);
@@ -3975,7 +3979,7 @@ var lodash = { exports: {} };
3975
3979
  }
3976
3980
  function leadingEdge(time) {
3977
3981
  lastInvokeTime = time;
3978
- timerId = setTimeout2(timerExpired, wait);
3982
+ timerId = setTimeout(timerExpired, wait);
3979
3983
  return leading ? invokeFunc(time) : result2;
3980
3984
  }
3981
3985
  function remainingWait(time) {
@@ -3991,7 +3995,7 @@ var lodash = { exports: {} };
3991
3995
  if (shouldInvoke(time)) {
3992
3996
  return trailingEdge(time);
3993
3997
  }
3994
- timerId = setTimeout2(timerExpired, remainingWait(time));
3998
+ timerId = setTimeout(timerExpired, remainingWait(time));
3995
3999
  }
3996
4000
  function trailingEdge(time) {
3997
4001
  timerId = undefined$1;
@@ -4022,12 +4026,12 @@ var lodash = { exports: {} };
4022
4026
  }
4023
4027
  if (maxing) {
4024
4028
  clearTimeout(timerId);
4025
- timerId = setTimeout2(timerExpired, wait);
4029
+ timerId = setTimeout(timerExpired, wait);
4026
4030
  return invokeFunc(lastCallTime);
4027
4031
  }
4028
4032
  }
4029
4033
  if (timerId === undefined$1) {
4030
- timerId = setTimeout2(timerExpired, wait);
4034
+ timerId = setTimeout(timerExpired, wait);
4031
4035
  }
4032
4036
  return result2;
4033
4037
  }
@@ -5741,6 +5745,10 @@ const formItemProps = {
5741
5745
  extraInfo: {
5742
5746
  type: String,
5743
5747
  default: ""
5748
+ },
5749
+ isAsyncValidate: {
5750
+ type: Boolean,
5751
+ default: false
5744
5752
  }
5745
5753
  };
5746
5754
  const FORM_ITEM_TOKEN = "dFormItem";
@@ -6568,7 +6576,6 @@ var FormControl = defineComponent({
6568
6576
  const formControl2 = ref();
6569
6577
  const popoverRef = ref();
6570
6578
  const ns2 = useNamespace$1("form");
6571
- const showPopoverClick = ref(true);
6572
6579
  const {
6573
6580
  controlClasses,
6574
6581
  controlContainerClasses,
@@ -6592,27 +6599,6 @@ var FormControl = defineComponent({
6592
6599
  }
6593
6600
  return void 0;
6594
6601
  });
6595
- const onDocumentClick = (e) => {
6596
- const composedPath = e.composedPath();
6597
- if (composedPath.includes(popoverRef.value.triggerEl)) {
6598
- showPopoverClick.value = true;
6599
- } else {
6600
- showPopoverClick.value = false;
6601
- }
6602
- };
6603
- watch(showPopover, (val) => {
6604
- if (val) {
6605
- setTimeout(() => {
6606
- document.addEventListener("click", onDocumentClick);
6607
- });
6608
- } else {
6609
- showPopoverClick.value = true;
6610
- document.removeEventListener("click", onDocumentClick);
6611
- }
6612
- });
6613
- onUnmounted(() => {
6614
- document.removeEventListener("click", onDocumentClick);
6615
- });
6616
6602
  return () => createVNode("div", {
6617
6603
  "class": controlClasses.value,
6618
6604
  "ref": formControl2
@@ -6620,7 +6606,7 @@ var FormControl = defineComponent({
6620
6606
  "class": controlContainerClasses.value
6621
6607
  }, [createVNode(Popover, {
6622
6608
  "ref": popoverRef,
6623
- "is-open": showPopover.value && showPopoverClick.value,
6609
+ "is-open": showPopover.value,
6624
6610
  "trigger": "manually",
6625
6611
  "content": errorMessage.value,
6626
6612
  "pop-type": "error",
@@ -7750,7 +7736,9 @@ function useFormItemValidate(props, _rules) {
7750
7736
  callback == null ? void 0 : callback(true);
7751
7737
  return true;
7752
7738
  }
7753
- validateState.value = "pending";
7739
+ if (props.isAsyncValidate) {
7740
+ validateState.value = "pending";
7741
+ }
7754
7742
  return execValidate(rules2).then(() => {
7755
7743
  callback == null ? void 0 : callback(true);
7756
7744
  return true;
@@ -7902,6 +7890,7 @@ const useSearchClass = (props, isFocus) => {
7902
7890
  [ns2.m("focus")]: isFocus.value,
7903
7891
  [ns2.m("disabled")]: props.disabled,
7904
7892
  [ns2.m("no-border")]: props.noBorder,
7893
+ [ns2.m("glow-style")]: props.showGlowStyle,
7905
7894
  [ns2.m(searchSize.value)]: !!searchSize.value,
7906
7895
  [ns2.m(props.iconPosition)]: ICON_POSITION[props.iconPosition]
7907
7896
  }));
@@ -8664,6 +8653,7 @@ var Search = defineComponent({
8664
8653
  maxlength: props.maxLength,
8665
8654
  modelValue: keywords.value,
8666
8655
  placeholder: props.placeholder || t("placeholder"),
8656
+ showGlowStyle: false,
8667
8657
  onKeydown: onInputKeydown,
8668
8658
  "onUpdate:modelValue": onInputUpdate,
8669
8659
  onFocus,