vue-devui 1.0.0-rc.14 → 1.0.0-rc.17

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 (130) hide show
  1. package/README.md +3 -0
  2. package/alert/index.umd.js +1 -1
  3. package/auto-complete/index.es.js +92 -81
  4. package/auto-complete/index.umd.js +24 -13
  5. package/auto-complete/style.css +1 -1
  6. package/avatar/index.umd.js +1 -1
  7. package/badge/index.umd.js +1 -1
  8. package/button/index.es.js +21 -42
  9. package/button/index.umd.js +9 -9
  10. package/button/style.css +1 -1
  11. package/card/index.umd.js +1 -1
  12. package/checkbox/index.es.js +96 -77
  13. package/checkbox/index.umd.js +26 -15
  14. package/collapse/index.es.js +3 -21
  15. package/collapse/index.umd.js +1 -1
  16. package/countdown/index.umd.js +1 -1
  17. package/date-picker-pro/index.es.js +133 -114
  18. package/date-picker-pro/index.umd.js +23 -12
  19. package/date-picker-pro/style.css +1 -1
  20. package/drawer/index.es.js +5 -18
  21. package/drawer/index.umd.js +1 -1
  22. package/dropdown/index.es.js +6 -31
  23. package/dropdown/index.umd.js +1 -1
  24. package/editable-select/index.es.js +104 -99
  25. package/editable-select/index.umd.js +1 -1
  26. package/editable-select/style.css +1 -1
  27. package/form/index.es.js +87 -71
  28. package/form/index.umd.js +22 -11
  29. package/fullscreen/index.umd.js +1 -1
  30. package/grid/index.es.js +7 -20
  31. package/grid/index.umd.js +1 -1
  32. package/icon/index.umd.js +1 -1
  33. package/image-preview/index.es.js +12 -23
  34. package/image-preview/index.umd.js +1 -1
  35. package/input/index.es.js +88 -72
  36. package/input/index.umd.js +24 -13
  37. package/input-number/index.es.js +1 -16
  38. package/input-number/index.umd.js +1 -1
  39. package/layout/index.umd.js +1 -1
  40. package/loading/index.es.js +15 -38
  41. package/loading/index.umd.js +1 -1
  42. package/loading/style.css +1 -1
  43. package/mention/index.d.ts +7 -0
  44. package/mention/index.es.js +8326 -0
  45. package/mention/index.umd.js +47 -0
  46. package/mention/package.json +7 -0
  47. package/mention/style.css +1 -0
  48. package/menu/index.d.ts +7 -0
  49. package/menu/index.es.js +927 -0
  50. package/menu/index.umd.js +1 -0
  51. package/menu/package.json +7 -0
  52. package/menu/style.css +1 -0
  53. package/message/index.d.ts +7 -0
  54. package/message/index.es.js +533 -0
  55. package/message/index.umd.js +1 -0
  56. package/message/package.json +7 -0
  57. package/message/style.css +1 -0
  58. package/modal/index.es.js +14 -44
  59. package/modal/index.umd.js +1 -1
  60. package/notification/index.es.js +16 -22
  61. package/notification/index.umd.js +1 -1
  62. package/nuxt/components/Mention.js +3 -0
  63. package/nuxt/components/Menu.js +3 -0
  64. package/nuxt/components/MenuItem.js +3 -0
  65. package/nuxt/components/Message.js +3 -0
  66. package/nuxt/components/SubMenu.js +3 -0
  67. package/nuxt/components/animationInjectionKey.js +3 -0
  68. package/nuxt/components/mentionProps.js +3 -0
  69. package/nuxt/components/messageProps.js +3 -0
  70. package/nuxt/components/roundInjectionKey.js +3 -0
  71. package/nuxt/components/skeletonItemProps.js +3 -0
  72. package/nuxt/components/treeNodeProps.js +3 -0
  73. package/overlay/index.es.js +1 -1
  74. package/overlay/index.umd.js +1 -1
  75. package/package.json +5 -3
  76. package/pagination/index.umd.js +1 -1
  77. package/panel/index.umd.js +1 -1
  78. package/popover/index.es.js +3 -1
  79. package/popover/index.umd.js +6 -6
  80. package/progress/index.umd.js +3 -3
  81. package/radio/index.es.js +93 -75
  82. package/radio/index.umd.js +27 -16
  83. package/radio/style.css +1 -1
  84. package/rate/index.umd.js +1 -1
  85. package/result/index.umd.js +1 -1
  86. package/ripple/index.es.js +5 -18
  87. package/ripple/index.umd.js +1 -1
  88. package/search/index.es.js +104 -75
  89. package/search/index.umd.js +26 -15
  90. package/search/style.css +1 -1
  91. package/select/index.es.js +132 -111
  92. package/select/index.umd.js +26 -15
  93. package/select/style.css +1 -1
  94. package/skeleton/index.es.js +87 -261
  95. package/skeleton/index.umd.js +1 -1
  96. package/skeleton/style.css +1 -1
  97. package/slider/index.umd.js +1 -1
  98. package/splitter/index.es.js +22 -29
  99. package/splitter/index.umd.js +9 -9
  100. package/statistic/index.es.js +0 -21
  101. package/statistic/index.umd.js +1 -1
  102. package/status/index.umd.js +1 -1
  103. package/steps/index.umd.js +1 -1
  104. package/style.css +1 -1
  105. package/switch/index.es.js +87 -71
  106. package/switch/index.umd.js +25 -14
  107. package/switch/style.css +1 -1
  108. package/table/index.es.js +153 -102
  109. package/table/index.umd.js +22 -11
  110. package/table/style.css +1 -1
  111. package/tabs/index.umd.js +1 -1
  112. package/tag/index.umd.js +1 -1
  113. package/textarea/index.es.js +91 -73
  114. package/textarea/index.umd.js +26 -15
  115. package/time-picker/index.es.js +99 -88
  116. package/time-picker/index.umd.js +25 -14
  117. package/time-picker/style.css +1 -1
  118. package/time-select/index.es.js +132 -111
  119. package/time-select/index.umd.js +25 -14
  120. package/time-select/style.css +1 -1
  121. package/timeline/index.umd.js +1 -1
  122. package/tooltip/index.es.js +1 -1
  123. package/tooltip/index.umd.js +4 -4
  124. package/tree/index.es.js +11148 -9855
  125. package/tree/index.umd.js +29 -18
  126. package/tree/style.css +1 -1
  127. package/upload/index.es.js +17 -48
  128. package/upload/index.umd.js +1 -1
  129. package/vue-devui.es.js +11421 -8832
  130. package/vue-devui.umd.js +34 -22
@@ -1,39 +1,4 @@
1
- var __defProp = Object.defineProperty;
2
- var __defProps = Object.defineProperties;
3
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
- var __spreadValues = (a, b) => {
9
- for (var prop in b || (b = {}))
10
- if (__hasOwnProp.call(b, prop))
11
- __defNormalProp(a, prop, b[prop]);
12
- if (__getOwnPropSymbols)
13
- for (var prop of __getOwnPropSymbols(b)) {
14
- if (__propIsEnum.call(b, prop))
15
- __defNormalProp(a, prop, b[prop]);
16
- }
17
- return a;
18
- };
19
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
- var __objRest = (source, exclude) => {
21
- var target = {};
22
- for (var prop in source)
23
- if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
24
- target[prop] = source[prop];
25
- if (source != null && __getOwnPropSymbols)
26
- for (var prop of __getOwnPropSymbols(source)) {
27
- if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
28
- target[prop] = source[prop];
29
- }
30
- return target;
31
- };
32
- var __publicField = (obj, key, value) => {
33
- __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
34
- return value;
35
- };
36
- import { defineComponent, toRefs, computed, createVNode, resolveDynamicComponent, mergeProps, ref, reactive, onMounted, onBeforeUnmount, onUnmounted, Fragment, h, render, inject, withDirectives, resolveDirective, provide, toRef, getCurrentInstance, watch, isVNode, Transition, unref, nextTick, Comment, Text, cloneVNode, Teleport, createTextVNode, shallowRef } from "vue";
1
+ import { defineComponent, toRefs, computed, createVNode, resolveDynamicComponent, mergeProps, ref, reactive, onMounted, onBeforeUnmount, onUnmounted, Fragment, h, render, inject, withDirectives, resolveDirective, provide, toRef, getCurrentInstance, watch, isVNode, Transition, nextTick, unref, Comment, Text, cloneVNode, Teleport, withModifiers, createTextVNode, shallowRef } from "vue";
37
2
  import { onClickOutside } from "@vueuse/core";
38
3
  import { offset, autoPlacement, arrow, shift, computePosition } from "@floating-ui/dom";
39
4
  const timePickerProps = {
@@ -921,8 +886,8 @@ var TimeList = defineComponent({
921
886
  });
922
887
  class View {
923
888
  constructor() {
924
- __publicField(this, "top", "50%");
925
- __publicField(this, "left", "50%");
889
+ this.top = "50%";
890
+ this.left = "50%";
926
891
  }
927
892
  }
928
893
  const loadingProps = {
@@ -940,13 +905,9 @@ const loadingProps = {
940
905
  };
941
906
  class LoadingOptions {
942
907
  constructor() {
943
- __publicField(this, "target");
944
- __publicField(this, "message");
945
- __publicField(this, "loadingTemplateRef");
946
- __publicField(this, "backdrop", true);
947
- __publicField(this, "positionType", "relative");
948
- __publicField(this, "view", new View());
949
- __publicField(this, "zIndex");
908
+ this.backdrop = true;
909
+ this.positionType = "relative";
910
+ this.view = new View();
950
911
  }
951
912
  }
952
913
  var loading = "";
@@ -1014,7 +975,7 @@ var Loading = defineComponent({
1014
975
  });
1015
976
  const COMPONENT_CONTAINER_SYMBOL = Symbol("dev_component_container");
1016
977
  function createComponent(component, props, children = null) {
1017
- const vnode = h(component, __spreadValues({}, props), children);
978
+ const vnode = h(component, { ...props }, children);
1018
979
  const container = document.createElement("div");
1019
980
  vnode[COMPONENT_CONTAINER_SYMBOL] = container;
1020
981
  render(vnode, container);
@@ -1101,9 +1062,12 @@ const removeAttribute = (el) => {
1101
1062
  };
1102
1063
  const handleProps = (el, vprops) => {
1103
1064
  var _a;
1104
- const props = __spreadValues(__spreadValues({}, new LoadingOptions()), vprops);
1065
+ const props = {
1066
+ ...new LoadingOptions(),
1067
+ ...vprops
1068
+ };
1105
1069
  const loadingTemplateRef = props.loadingTemplateRef;
1106
- const loadingInstance = createComponent(loadingConstructor, __spreadValues({}, props), loadingTemplateRef ? () => loadingTemplateRef : null);
1070
+ const loadingInstance = createComponent(loadingConstructor, { ...props }, loadingTemplateRef ? () => loadingTemplateRef : null);
1107
1071
  el.style.position = props.positionType;
1108
1072
  el.options = props;
1109
1073
  el.instance = loadingInstance;
@@ -1870,7 +1834,7 @@ var lodash = { exports: {} };
1870
1834
  var objectCtorString = funcToString.call(Object2);
1871
1835
  var oldDash = root._;
1872
1836
  var reIsNative = RegExp2("^" + funcToString.call(hasOwnProperty).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
1873
- var Buffer2 = moduleExports ? context.Buffer : undefined$1, Symbol2 = context.Symbol, Uint8Array2 = context.Uint8Array, allocUnsafe = Buffer2 ? Buffer2.allocUnsafe : undefined$1, getPrototype = overArg(Object2.getPrototypeOf, Object2), objectCreate = Object2.create, propertyIsEnumerable = objectProto.propertyIsEnumerable, splice = arrayProto.splice, spreadableSymbol = Symbol2 ? Symbol2.isConcatSpreadable : undefined$1, symIterator = Symbol2 ? Symbol2.iterator : undefined$1, symToStringTag = Symbol2 ? Symbol2.toStringTag : undefined$1;
1837
+ var Buffer = moduleExports ? context.Buffer : undefined$1, Symbol2 = context.Symbol, Uint8Array = context.Uint8Array, allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined$1, getPrototype = overArg(Object2.getPrototypeOf, Object2), objectCreate = Object2.create, propertyIsEnumerable = objectProto.propertyIsEnumerable, splice = arrayProto.splice, spreadableSymbol = Symbol2 ? Symbol2.isConcatSpreadable : undefined$1, symIterator = Symbol2 ? Symbol2.iterator : undefined$1, symToStringTag = Symbol2 ? Symbol2.toStringTag : undefined$1;
1874
1838
  var defineProperty = function() {
1875
1839
  try {
1876
1840
  var func = getNative(Object2, "defineProperty");
@@ -1880,11 +1844,11 @@ var lodash = { exports: {} };
1880
1844
  }
1881
1845
  }();
1882
1846
  var ctxClearTimeout = context.clearTimeout !== root.clearTimeout && context.clearTimeout, ctxNow = Date2 && Date2.now !== root.Date.now && Date2.now, ctxSetTimeout = context.setTimeout !== root.setTimeout && context.setTimeout;
1883
- var nativeCeil = Math2.ceil, nativeFloor = Math2.floor, nativeGetSymbols = Object2.getOwnPropertySymbols, nativeIsBuffer = Buffer2 ? Buffer2.isBuffer : undefined$1, nativeIsFinite = context.isFinite, nativeJoin = arrayProto.join, nativeKeys = overArg(Object2.keys, Object2), nativeMax = Math2.max, nativeMin = Math2.min, nativeNow = Date2.now, nativeParseInt = context.parseInt, nativeRandom = Math2.random, nativeReverse = arrayProto.reverse;
1884
- var DataView = getNative(context, "DataView"), Map2 = getNative(context, "Map"), Promise2 = getNative(context, "Promise"), Set2 = getNative(context, "Set"), WeakMap2 = getNative(context, "WeakMap"), nativeCreate = getNative(Object2, "create");
1885
- var metaMap = WeakMap2 && new WeakMap2();
1847
+ var nativeCeil = Math2.ceil, nativeFloor = Math2.floor, nativeGetSymbols = Object2.getOwnPropertySymbols, nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined$1, nativeIsFinite = context.isFinite, nativeJoin = arrayProto.join, nativeKeys = overArg(Object2.keys, Object2), nativeMax = Math2.max, nativeMin = Math2.min, nativeNow = Date2.now, nativeParseInt = context.parseInt, nativeRandom = Math2.random, nativeReverse = arrayProto.reverse;
1848
+ var DataView = getNative(context, "DataView"), Map2 = getNative(context, "Map"), Promise2 = getNative(context, "Promise"), Set2 = getNative(context, "Set"), WeakMap = getNative(context, "WeakMap"), nativeCreate = getNative(Object2, "create");
1849
+ var metaMap = WeakMap && new WeakMap();
1886
1850
  var realNames = {};
1887
- var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map2), promiseCtorString = toSource(Promise2), setCtorString = toSource(Set2), weakMapCtorString = toSource(WeakMap2);
1851
+ var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map2), promiseCtorString = toSource(Promise2), setCtorString = toSource(Set2), weakMapCtorString = toSource(WeakMap);
1888
1852
  var symbolProto = Symbol2 ? Symbol2.prototype : undefined$1, symbolValueOf = symbolProto ? symbolProto.valueOf : undefined$1, symbolToString = symbolProto ? symbolProto.toString : undefined$1;
1889
1853
  function lodash2(value) {
1890
1854
  if (isObjectLike(value) && !isArray(value) && !(value instanceof LazyWrapper)) {
@@ -2339,7 +2303,7 @@ var lodash = { exports: {} };
2339
2303
  if (typeof func != "function") {
2340
2304
  throw new TypeError2(FUNC_ERROR_TEXT);
2341
2305
  }
2342
- return setTimeout(function() {
2306
+ return setTimeout2(function() {
2343
2307
  func.apply(undefined$1, args);
2344
2308
  }, wait);
2345
2309
  }
@@ -3132,7 +3096,7 @@ var lodash = { exports: {} };
3132
3096
  }
3133
3097
  function cloneArrayBuffer(arrayBuffer) {
3134
3098
  var result2 = new arrayBuffer.constructor(arrayBuffer.byteLength);
3135
- new Uint8Array2(result2).set(new Uint8Array2(arrayBuffer));
3099
+ new Uint8Array(result2).set(new Uint8Array(arrayBuffer));
3136
3100
  return result2;
3137
3101
  }
3138
3102
  function cloneDataView(dataView, isDeep) {
@@ -3714,7 +3678,7 @@ var lodash = { exports: {} };
3714
3678
  object4 = object4.buffer;
3715
3679
  other = other.buffer;
3716
3680
  case arrayBufferTag:
3717
- if (object4.byteLength != other.byteLength || !equalFunc(new Uint8Array2(object4), new Uint8Array2(other))) {
3681
+ if (object4.byteLength != other.byteLength || !equalFunc(new Uint8Array(object4), new Uint8Array(other))) {
3718
3682
  return false;
3719
3683
  }
3720
3684
  return true;
@@ -3876,7 +3840,7 @@ var lodash = { exports: {} };
3876
3840
  return result2;
3877
3841
  };
3878
3842
  var getTag = baseGetTag;
3879
- if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag || Map2 && getTag(new Map2()) != mapTag || Promise2 && getTag(Promise2.resolve()) != promiseTag || Set2 && getTag(new Set2()) != setTag || WeakMap2 && getTag(new WeakMap2()) != weakMapTag) {
3843
+ if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag || Map2 && getTag(new Map2()) != mapTag || Promise2 && getTag(Promise2.resolve()) != promiseTag || Set2 && getTag(new Set2()) != setTag || WeakMap && getTag(new WeakMap()) != weakMapTag) {
3880
3844
  getTag = function(value) {
3881
3845
  var result2 = baseGetTag(value), Ctor = result2 == objectTag ? value.constructor : undefined$1, ctorString = Ctor ? toSource(Ctor) : "";
3882
3846
  if (ctorString) {
@@ -4148,7 +4112,7 @@ var lodash = { exports: {} };
4148
4112
  return object4[key];
4149
4113
  }
4150
4114
  var setData = shortOut(baseSetData);
4151
- var setTimeout = ctxSetTimeout || function(func, wait) {
4115
+ var setTimeout2 = ctxSetTimeout || function(func, wait) {
4152
4116
  return root.setTimeout(func, wait);
4153
4117
  };
4154
4118
  var setToString = shortOut(baseSetToString);
@@ -4940,7 +4904,7 @@ var lodash = { exports: {} };
4940
4904
  }
4941
4905
  function leadingEdge(time) {
4942
4906
  lastInvokeTime = time;
4943
- timerId = setTimeout(timerExpired, wait);
4907
+ timerId = setTimeout2(timerExpired, wait);
4944
4908
  return leading ? invokeFunc(time) : result2;
4945
4909
  }
4946
4910
  function remainingWait(time) {
@@ -4956,7 +4920,7 @@ var lodash = { exports: {} };
4956
4920
  if (shouldInvoke(time)) {
4957
4921
  return trailingEdge(time);
4958
4922
  }
4959
- timerId = setTimeout(timerExpired, remainingWait(time));
4923
+ timerId = setTimeout2(timerExpired, remainingWait(time));
4960
4924
  }
4961
4925
  function trailingEdge(time) {
4962
4926
  timerId = undefined$1;
@@ -4987,12 +4951,12 @@ var lodash = { exports: {} };
4987
4951
  }
4988
4952
  if (maxing) {
4989
4953
  clearTimeout(timerId);
4990
- timerId = setTimeout(timerExpired, wait);
4954
+ timerId = setTimeout2(timerExpired, wait);
4991
4955
  return invokeFunc(lastCallTime);
4992
4956
  }
4993
4957
  }
4994
4958
  if (timerId === undefined$1) {
4995
- timerId = setTimeout(timerExpired, wait);
4959
+ timerId = setTimeout2(timerExpired, wait);
4996
4960
  }
4997
4961
  return result2;
4998
4962
  }
@@ -7103,7 +7067,10 @@ function useFormValidation(itemContexts) {
7103
7067
  try {
7104
7068
  await field.validate("");
7105
7069
  } catch (err) {
7106
- errors = __spreadValues(__spreadValues({}, errors), err);
7070
+ errors = {
7071
+ ...errors,
7072
+ ...err
7073
+ };
7107
7074
  }
7108
7075
  }
7109
7076
  if (!Object.keys(errors).length) {
@@ -7160,11 +7127,12 @@ defineComponent({
7160
7127
  }, {
7161
7128
  deep: true
7162
7129
  });
7163
- provide(FORM_TOKEN, reactive(__spreadProps(__spreadValues({}, toRefs(props)), {
7130
+ provide(FORM_TOKEN, reactive({
7131
+ ...toRefs(props),
7164
7132
  emit: ctx.emit,
7165
7133
  addItemContext,
7166
7134
  removeItemContext
7167
- })));
7135
+ }));
7168
7136
  ctx.expose({
7169
7137
  validate,
7170
7138
  validateFields,
@@ -7788,6 +7756,8 @@ var Popover = defineComponent({
7788
7756
  "style": overlayStyles.value
7789
7757
  }, attrs, {
7790
7758
  "onPositionChange": handlePositionChange,
7759
+ "onClick": withModifiers(() => ({}), ["stop"]),
7760
+ "onPointerup": withModifiers(() => ({}), ["stop"]),
7791
7761
  "onMouseenter": onMouseenter,
7792
7762
  "onMouseleave": onMouseleave
7793
7763
  }), {
@@ -8002,7 +7972,7 @@ var FormControl = defineComponent({
8002
7972
  }
8003
7973
  });
8004
7974
  function _extends() {
8005
- _extends = Object.assign || function(target) {
7975
+ _extends = Object.assign ? Object.assign.bind() : function(target) {
8006
7976
  for (var i = 1; i < arguments.length; i++) {
8007
7977
  var source = arguments[i];
8008
7978
  for (var key in source) {
@@ -8021,13 +7991,13 @@ function _inheritsLoose(subClass, superClass) {
8021
7991
  _setPrototypeOf(subClass, superClass);
8022
7992
  }
8023
7993
  function _getPrototypeOf(o) {
8024
- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf2(o2) {
7994
+ _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf2(o2) {
8025
7995
  return o2.__proto__ || Object.getPrototypeOf(o2);
8026
7996
  };
8027
7997
  return _getPrototypeOf(o);
8028
7998
  }
8029
7999
  function _setPrototypeOf(o, p) {
8030
- _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf2(o2, p2) {
8000
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o2, p2) {
8031
8001
  o2.__proto__ = p2;
8032
8002
  return o2;
8033
8003
  };
@@ -8050,7 +8020,7 @@ function _isNativeReflectConstruct() {
8050
8020
  }
8051
8021
  function _construct(Parent, args, Class) {
8052
8022
  if (_isNativeReflectConstruct()) {
8053
- _construct = Reflect.construct;
8023
+ _construct = Reflect.construct.bind();
8054
8024
  } else {
8055
8025
  _construct = function _construct2(Parent2, args2, Class2) {
8056
8026
  var a = [null];
@@ -8328,9 +8298,45 @@ var whitespace = function whitespace2(rule, value, source, errors, options) {
8328
8298
  errors.push(format(options.messages.whitespace, rule.fullField));
8329
8299
  }
8330
8300
  };
8301
+ var urlReg;
8302
+ var getUrlRegex = function() {
8303
+ if (urlReg) {
8304
+ return urlReg;
8305
+ }
8306
+ var word = "[a-fA-F\\d:]";
8307
+ var b = function b2(options) {
8308
+ return options && options.includeBoundaries ? "(?:(?<=\\s|^)(?=" + word + ")|(?<=" + word + ")(?=\\s|$))" : "";
8309
+ };
8310
+ var v4 = "(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}";
8311
+ var v6seg = "[a-fA-F\\d]{1,4}";
8312
+ var v6 = ("\n(?:\n(?:" + v6seg + ":){7}(?:" + v6seg + "|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:" + v6seg + ":){6}(?:" + v4 + "|:" + v6seg + "|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:" + v6seg + ":){5}(?::" + v4 + "|(?::" + v6seg + "){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:" + v6seg + ":){4}(?:(?::" + v6seg + "){0,1}:" + v4 + "|(?::" + v6seg + "){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:" + v6seg + ":){3}(?:(?::" + v6seg + "){0,2}:" + v4 + "|(?::" + v6seg + "){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:" + v6seg + ":){2}(?:(?::" + v6seg + "){0,3}:" + v4 + "|(?::" + v6seg + "){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:" + v6seg + ":){1}(?:(?::" + v6seg + "){0,4}:" + v4 + "|(?::" + v6seg + "){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::(?:(?::" + v6seg + "){0,5}:" + v4 + "|(?::" + v6seg + "){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1\n").replace(/\s*\/\/.*$/gm, "").replace(/\n/g, "").trim();
8313
+ var v46Exact = new RegExp("(?:^" + v4 + "$)|(?:^" + v6 + "$)");
8314
+ var v4exact = new RegExp("^" + v4 + "$");
8315
+ var v6exact = new RegExp("^" + v6 + "$");
8316
+ var ip = function ip2(options) {
8317
+ return options && options.exact ? v46Exact : new RegExp("(?:" + b(options) + v4 + b(options) + ")|(?:" + b(options) + v6 + b(options) + ")", "g");
8318
+ };
8319
+ ip.v4 = function(options) {
8320
+ return options && options.exact ? v4exact : new RegExp("" + b(options) + v4 + b(options), "g");
8321
+ };
8322
+ ip.v6 = function(options) {
8323
+ return options && options.exact ? v6exact : new RegExp("" + b(options) + v6 + b(options), "g");
8324
+ };
8325
+ var protocol = "(?:(?:[a-z]+:)?//)";
8326
+ var auth = "(?:\\S+(?::\\S*)?@)?";
8327
+ var ipv4 = ip.v4().source;
8328
+ var ipv6 = ip.v6().source;
8329
+ var host = "(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)";
8330
+ var domain = "(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*";
8331
+ var tld = "(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))";
8332
+ var port = "(?::\\d{2,5})?";
8333
+ var path = '(?:[/?#][^\\s"]*)?';
8334
+ var regex = "(?:" + protocol + "|www\\.)" + auth + "(?:localhost|" + ipv4 + "|" + ipv6 + "|" + host + domain + tld + ")" + port + path;
8335
+ urlReg = new RegExp("(?:^" + regex + "$)", "i");
8336
+ return urlReg;
8337
+ };
8331
8338
  var pattern$2 = {
8332
8339
  email: /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,
8333
- url: new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$", "i"),
8334
8340
  hex: /^#?([a-f0-9]{6}|[a-f0-9]{3})$/i
8335
8341
  };
8336
8342
  var types = {
@@ -8372,7 +8378,7 @@ var types = {
8372
8378
  return typeof value === "string" && value.length <= 320 && !!value.match(pattern$2.email);
8373
8379
  },
8374
8380
  url: function url(value) {
8375
- return typeof value === "string" && value.length <= 2048 && !!value.match(pattern$2.url);
8381
+ return typeof value === "string" && value.length <= 2048 && !!value.match(getUrlRegex());
8376
8382
  },
8377
8383
  hex: function hex(value) {
8378
8384
  return typeof value === "string" && !!value.match(pattern$2.hex);
@@ -8947,7 +8953,17 @@ var Schema = /* @__PURE__ */ function() {
8947
8953
  if (rule.asyncValidator) {
8948
8954
  res = rule.asyncValidator(rule, data.value, cb, data.source, options);
8949
8955
  } else if (rule.validator) {
8950
- res = rule.validator(rule, data.value, cb, data.source, options);
8956
+ try {
8957
+ res = rule.validator(rule, data.value, cb, data.source, options);
8958
+ } catch (error) {
8959
+ console.error == null ? void 0 : console.error(error);
8960
+ if (!options.suppressValidatorError) {
8961
+ setTimeout(function() {
8962
+ throw error;
8963
+ }, 0);
8964
+ }
8965
+ cb(error.message);
8966
+ }
8951
8967
  if (res === true) {
8952
8968
  cb();
8953
8969
  } else if (res === false) {
@@ -9068,10 +9084,7 @@ function useFormItemValidate(props, _rules) {
9068
9084
  } else {
9069
9085
  return rule.trigger === triggerVal;
9070
9086
  }
9071
- }).map((_a) => {
9072
- var rule = __objRest(_a, []);
9073
- return rule;
9074
- });
9087
+ }).map(({ ...rule }) => rule);
9075
9088
  };
9076
9089
  const onValidateSuccess = () => {
9077
9090
  validateState.value = "success";
@@ -9144,15 +9157,12 @@ defineComponent({
9144
9157
  props: formItemProps,
9145
9158
  setup(props, ctx) {
9146
9159
  const formContext = inject(FORM_TOKEN);
9147
- const _a = toRefs(props), {
9160
+ const {
9148
9161
  messageType: itemMessageType,
9149
9162
  popPosition: itemPopPosition,
9150
- showFeedback: itemShowFeedback
9151
- } = _a, otherProps = __objRest(_a, [
9152
- "messageType",
9153
- "popPosition",
9154
- "showFeedback"
9155
- ]);
9163
+ showFeedback: itemShowFeedback,
9164
+ ...otherProps
9165
+ } = toRefs(props);
9156
9166
  const {
9157
9167
  label,
9158
9168
  helpTips,
@@ -9182,7 +9192,8 @@ defineComponent({
9182
9192
  labelAlign: formContext.labelAlign
9183
9193
  }));
9184
9194
  provide(LABEL_DATA, labelData);
9185
- const context = reactive(__spreadProps(__spreadValues({}, otherProps), {
9195
+ const context = reactive({
9196
+ ...otherProps,
9186
9197
  showFeedback,
9187
9198
  messageType,
9188
9199
  popPosition,
@@ -9192,7 +9203,7 @@ defineComponent({
9192
9203
  validate,
9193
9204
  resetField,
9194
9205
  clearValidate
9195
- }));
9206
+ });
9196
9207
  provide(FORM_ITEM_TOKEN, context);
9197
9208
  ctx.expose({
9198
9209
  resetField,
@@ -9217,8 +9228,8 @@ defineComponent({
9217
9228
  "extra-info": extraInfo.value
9218
9229
  }, {
9219
9230
  default: () => {
9220
- var _a2, _b;
9221
- return [(_b = (_a2 = ctx.slots).default) == null ? void 0 : _b.call(_a2)];
9231
+ var _a, _b;
9232
+ return [(_b = (_a = ctx.slots).default) == null ? void 0 : _b.call(_a)];
9222
9233
  }
9223
9234
  })]);
9224
9235
  }
@@ -9256,7 +9267,7 @@ function useInputRender(props, ctx) {
9256
9267
  const slots = ctx.slots;
9257
9268
  const inputDisabled = computed(() => disabled.value || (formContext == null ? void 0 : formContext.disabled));
9258
9269
  const inputSize = computed(() => (size == null ? void 0 : size.value) || (formContext == null ? void 0 : formContext.size) || "");
9259
- const _a = ctx.attrs, { style, class: customClass } = _a, otherAttrs = __objRest(_a, ["style", "class"]);
9270
+ const { style, class: customClass, ...otherAttrs } = ctx.attrs;
9260
9271
  const customStyle = { style };
9261
9272
  const wrapClasses = computed(() => ({
9262
9273
  [ns2.e("wrapper")]: true,