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

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 (109) hide show
  1. package/README.md +1 -0
  2. package/alert/index.umd.js +1 -1
  3. package/auto-complete/index.es.js +90 -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/card/index.umd.js +1 -1
  11. package/checkbox/index.es.js +94 -77
  12. package/checkbox/index.umd.js +26 -15
  13. package/collapse/index.es.js +3 -21
  14. package/collapse/index.umd.js +1 -1
  15. package/countdown/index.umd.js +1 -1
  16. package/date-picker-pro/index.es.js +118 -103
  17. package/date-picker-pro/index.umd.js +23 -12
  18. package/drawer/index.es.js +4 -17
  19. package/drawer/index.umd.js +1 -1
  20. package/dropdown/index.es.js +4 -22
  21. package/dropdown/index.umd.js +1 -1
  22. package/editable-select/index.es.js +104 -99
  23. package/editable-select/index.umd.js +1 -1
  24. package/editable-select/style.css +1 -1
  25. package/form/index.es.js +85 -71
  26. package/form/index.umd.js +22 -11
  27. package/fullscreen/index.umd.js +1 -1
  28. package/grid/index.es.js +7 -20
  29. package/grid/index.umd.js +1 -1
  30. package/icon/index.umd.js +1 -1
  31. package/image-preview/index.es.js +12 -23
  32. package/image-preview/index.umd.js +1 -1
  33. package/input/index.es.js +86 -72
  34. package/input/index.umd.js +24 -13
  35. package/input-number/index.es.js +1 -16
  36. package/input-number/index.umd.js +1 -1
  37. package/layout/index.umd.js +1 -1
  38. package/loading/index.es.js +15 -38
  39. package/loading/index.umd.js +1 -1
  40. package/message/index.d.ts +7 -0
  41. package/message/index.es.js +534 -0
  42. package/message/index.umd.js +1 -0
  43. package/message/package.json +7 -0
  44. package/message/style.css +1 -0
  45. package/modal/index.es.js +11 -43
  46. package/modal/index.umd.js +1 -1
  47. package/notification/index.es.js +16 -22
  48. package/notification/index.umd.js +1 -1
  49. package/nuxt/components/Message.js +3 -0
  50. package/nuxt/components/animationInjectionKey.js +3 -0
  51. package/nuxt/components/messageProps.js +3 -0
  52. package/nuxt/components/roundInjectionKey.js +3 -0
  53. package/nuxt/components/skeletonItemProps.js +3 -0
  54. package/overlay/index.es.js +1 -1
  55. package/overlay/index.umd.js +1 -1
  56. package/package.json +2 -2
  57. package/pagination/index.umd.js +1 -1
  58. package/panel/index.umd.js +1 -1
  59. package/popover/index.es.js +1 -1
  60. package/popover/index.umd.js +4 -4
  61. package/progress/index.umd.js +3 -3
  62. package/radio/index.es.js +91 -75
  63. package/radio/index.umd.js +28 -17
  64. package/radio/style.css +1 -1
  65. package/rate/index.umd.js +1 -1
  66. package/result/index.umd.js +1 -1
  67. package/ripple/index.es.js +5 -18
  68. package/ripple/index.umd.js +1 -1
  69. package/search/index.es.js +102 -75
  70. package/search/index.umd.js +26 -15
  71. package/search/style.css +1 -1
  72. package/select/index.es.js +130 -111
  73. package/select/index.umd.js +26 -15
  74. package/select/style.css +1 -1
  75. package/skeleton/index.es.js +87 -261
  76. package/skeleton/index.umd.js +1 -1
  77. package/skeleton/style.css +1 -1
  78. package/slider/index.umd.js +1 -1
  79. package/splitter/index.es.js +22 -29
  80. package/splitter/index.umd.js +9 -9
  81. package/statistic/index.es.js +0 -21
  82. package/statistic/index.umd.js +1 -1
  83. package/status/index.umd.js +1 -1
  84. package/steps/index.umd.js +1 -1
  85. package/style.css +1 -1
  86. package/switch/index.es.js +85 -71
  87. package/switch/index.umd.js +25 -14
  88. package/table/index.es.js +145 -92
  89. package/table/index.umd.js +22 -11
  90. package/table/style.css +1 -1
  91. package/tabs/index.umd.js +1 -1
  92. package/tag/index.umd.js +1 -1
  93. package/textarea/index.es.js +89 -74
  94. package/textarea/index.umd.js +26 -15
  95. package/time-picker/index.es.js +97 -88
  96. package/time-picker/index.umd.js +25 -14
  97. package/time-select/index.es.js +130 -111
  98. package/time-select/index.umd.js +25 -14
  99. package/time-select/style.css +1 -1
  100. package/timeline/index.umd.js +1 -1
  101. package/tooltip/index.es.js +1 -1
  102. package/tooltip/index.umd.js +4 -4
  103. package/tree/index.es.js +130 -95
  104. package/tree/index.umd.js +20 -9
  105. package/tree/style.css +1 -1
  106. package/upload/index.es.js +17 -48
  107. package/upload/index.umd.js +1 -1
  108. package/vue-devui.es.js +889 -628
  109. package/vue-devui.umd.js +32 -21
@@ -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, 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,
@@ -8002,7 +7970,7 @@ var FormControl = defineComponent({
8002
7970
  }
8003
7971
  });
8004
7972
  function _extends() {
8005
- _extends = Object.assign || function(target) {
7973
+ _extends = Object.assign ? Object.assign.bind() : function(target) {
8006
7974
  for (var i = 1; i < arguments.length; i++) {
8007
7975
  var source = arguments[i];
8008
7976
  for (var key in source) {
@@ -8021,13 +7989,13 @@ function _inheritsLoose(subClass, superClass) {
8021
7989
  _setPrototypeOf(subClass, superClass);
8022
7990
  }
8023
7991
  function _getPrototypeOf(o) {
8024
- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf2(o2) {
7992
+ _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf2(o2) {
8025
7993
  return o2.__proto__ || Object.getPrototypeOf(o2);
8026
7994
  };
8027
7995
  return _getPrototypeOf(o);
8028
7996
  }
8029
7997
  function _setPrototypeOf(o, p) {
8030
- _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf2(o2, p2) {
7998
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o2, p2) {
8031
7999
  o2.__proto__ = p2;
8032
8000
  return o2;
8033
8001
  };
@@ -8050,7 +8018,7 @@ function _isNativeReflectConstruct() {
8050
8018
  }
8051
8019
  function _construct(Parent, args, Class) {
8052
8020
  if (_isNativeReflectConstruct()) {
8053
- _construct = Reflect.construct;
8021
+ _construct = Reflect.construct.bind();
8054
8022
  } else {
8055
8023
  _construct = function _construct2(Parent2, args2, Class2) {
8056
8024
  var a = [null];
@@ -8328,9 +8296,45 @@ var whitespace = function whitespace2(rule, value, source, errors, options) {
8328
8296
  errors.push(format(options.messages.whitespace, rule.fullField));
8329
8297
  }
8330
8298
  };
8299
+ var urlReg;
8300
+ var getUrlRegex = function() {
8301
+ if (urlReg) {
8302
+ return urlReg;
8303
+ }
8304
+ var word = "[a-fA-F\\d:]";
8305
+ var b = function b2(options) {
8306
+ return options && options.includeBoundaries ? "(?:(?<=\\s|^)(?=" + word + ")|(?<=" + word + ")(?=\\s|$))" : "";
8307
+ };
8308
+ 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}";
8309
+ var v6seg = "[a-fA-F\\d]{1,4}";
8310
+ 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();
8311
+ var v46Exact = new RegExp("(?:^" + v4 + "$)|(?:^" + v6 + "$)");
8312
+ var v4exact = new RegExp("^" + v4 + "$");
8313
+ var v6exact = new RegExp("^" + v6 + "$");
8314
+ var ip = function ip2(options) {
8315
+ return options && options.exact ? v46Exact : new RegExp("(?:" + b(options) + v4 + b(options) + ")|(?:" + b(options) + v6 + b(options) + ")", "g");
8316
+ };
8317
+ ip.v4 = function(options) {
8318
+ return options && options.exact ? v4exact : new RegExp("" + b(options) + v4 + b(options), "g");
8319
+ };
8320
+ ip.v6 = function(options) {
8321
+ return options && options.exact ? v6exact : new RegExp("" + b(options) + v6 + b(options), "g");
8322
+ };
8323
+ var protocol = "(?:(?:[a-z]+:)?//)";
8324
+ var auth = "(?:\\S+(?::\\S*)?@)?";
8325
+ var ipv4 = ip.v4().source;
8326
+ var ipv6 = ip.v6().source;
8327
+ var host = "(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)";
8328
+ var domain = "(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*";
8329
+ var tld = "(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))";
8330
+ var port = "(?::\\d{2,5})?";
8331
+ var path = '(?:[/?#][^\\s"]*)?';
8332
+ var regex = "(?:" + protocol + "|www\\.)" + auth + "(?:localhost|" + ipv4 + "|" + ipv6 + "|" + host + domain + tld + ")" + port + path;
8333
+ urlReg = new RegExp("(?:^" + regex + "$)", "i");
8334
+ return urlReg;
8335
+ };
8331
8336
  var pattern$2 = {
8332
8337
  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
8338
  hex: /^#?([a-f0-9]{6}|[a-f0-9]{3})$/i
8335
8339
  };
8336
8340
  var types = {
@@ -8372,7 +8376,7 @@ var types = {
8372
8376
  return typeof value === "string" && value.length <= 320 && !!value.match(pattern$2.email);
8373
8377
  },
8374
8378
  url: function url(value) {
8375
- return typeof value === "string" && value.length <= 2048 && !!value.match(pattern$2.url);
8379
+ return typeof value === "string" && value.length <= 2048 && !!value.match(getUrlRegex());
8376
8380
  },
8377
8381
  hex: function hex(value) {
8378
8382
  return typeof value === "string" && !!value.match(pattern$2.hex);
@@ -8947,7 +8951,17 @@ var Schema = /* @__PURE__ */ function() {
8947
8951
  if (rule.asyncValidator) {
8948
8952
  res = rule.asyncValidator(rule, data.value, cb, data.source, options);
8949
8953
  } else if (rule.validator) {
8950
- res = rule.validator(rule, data.value, cb, data.source, options);
8954
+ try {
8955
+ res = rule.validator(rule, data.value, cb, data.source, options);
8956
+ } catch (error) {
8957
+ console.error == null ? void 0 : console.error(error);
8958
+ if (!options.suppressValidatorError) {
8959
+ setTimeout(function() {
8960
+ throw error;
8961
+ }, 0);
8962
+ }
8963
+ cb(error.message);
8964
+ }
8951
8965
  if (res === true) {
8952
8966
  cb();
8953
8967
  } else if (res === false) {
@@ -9068,10 +9082,7 @@ function useFormItemValidate(props, _rules) {
9068
9082
  } else {
9069
9083
  return rule.trigger === triggerVal;
9070
9084
  }
9071
- }).map((_a) => {
9072
- var rule = __objRest(_a, []);
9073
- return rule;
9074
- });
9085
+ }).map(({ ...rule }) => rule);
9075
9086
  };
9076
9087
  const onValidateSuccess = () => {
9077
9088
  validateState.value = "success";
@@ -9144,15 +9155,12 @@ defineComponent({
9144
9155
  props: formItemProps,
9145
9156
  setup(props, ctx) {
9146
9157
  const formContext = inject(FORM_TOKEN);
9147
- const _a = toRefs(props), {
9158
+ const {
9148
9159
  messageType: itemMessageType,
9149
9160
  popPosition: itemPopPosition,
9150
- showFeedback: itemShowFeedback
9151
- } = _a, otherProps = __objRest(_a, [
9152
- "messageType",
9153
- "popPosition",
9154
- "showFeedback"
9155
- ]);
9161
+ showFeedback: itemShowFeedback,
9162
+ ...otherProps
9163
+ } = toRefs(props);
9156
9164
  const {
9157
9165
  label,
9158
9166
  helpTips,
@@ -9182,7 +9190,8 @@ defineComponent({
9182
9190
  labelAlign: formContext.labelAlign
9183
9191
  }));
9184
9192
  provide(LABEL_DATA, labelData);
9185
- const context = reactive(__spreadProps(__spreadValues({}, otherProps), {
9193
+ const context = reactive({
9194
+ ...otherProps,
9186
9195
  showFeedback,
9187
9196
  messageType,
9188
9197
  popPosition,
@@ -9192,7 +9201,7 @@ defineComponent({
9192
9201
  validate,
9193
9202
  resetField,
9194
9203
  clearValidate
9195
- }));
9204
+ });
9196
9205
  provide(FORM_ITEM_TOKEN, context);
9197
9206
  ctx.expose({
9198
9207
  resetField,
@@ -9217,8 +9226,8 @@ defineComponent({
9217
9226
  "extra-info": extraInfo.value
9218
9227
  }, {
9219
9228
  default: () => {
9220
- var _a2, _b;
9221
- return [(_b = (_a2 = ctx.slots).default) == null ? void 0 : _b.call(_a2)];
9229
+ var _a, _b;
9230
+ return [(_b = (_a = ctx.slots).default) == null ? void 0 : _b.call(_a)];
9222
9231
  }
9223
9232
  })]);
9224
9233
  }
@@ -9256,7 +9265,7 @@ function useInputRender(props, ctx) {
9256
9265
  const slots = ctx.slots;
9257
9266
  const inputDisabled = computed(() => disabled.value || (formContext == null ? void 0 : formContext.disabled));
9258
9267
  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"]);
9268
+ const { style, class: customClass, ...otherAttrs } = ctx.attrs;
9260
9269
  const customStyle = { style };
9261
9270
  const wrapClasses = computed(() => ({
9262
9271
  [ns2.e("wrapper")]: true,