vue-devui 1.0.0-rc.13 → 1.0.0-rc.16

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 (114) hide show
  1. package/README.md +161 -156
  2. package/alert/index.umd.js +1 -1
  3. package/auto-complete/index.es.js +241 -82
  4. package/auto-complete/index.umd.js +28 -17
  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 +1384 -220
  17. package/date-picker-pro/index.umd.js +25 -14
  18. package/date-picker-pro/style.css +1 -1
  19. package/drawer/index.es.js +4 -17
  20. package/drawer/index.umd.js +1 -1
  21. package/dropdown/index.es.js +4 -22
  22. package/dropdown/index.umd.js +1 -1
  23. package/editable-select/index.es.js +254 -99
  24. package/editable-select/index.umd.js +1 -1
  25. package/editable-select/style.css +1 -1
  26. package/form/index.es.js +85 -71
  27. package/form/index.umd.js +22 -11
  28. package/fullscreen/index.umd.js +1 -1
  29. package/grid/index.es.js +7 -20
  30. package/grid/index.umd.js +1 -1
  31. package/icon/index.umd.js +1 -1
  32. package/image-preview/index.es.js +12 -23
  33. package/image-preview/index.umd.js +1 -1
  34. package/image-preview/style.css +1 -1
  35. package/input/index.es.js +239 -75
  36. package/input/index.umd.js +27 -16
  37. package/input-number/index.es.js +1 -16
  38. package/input-number/index.umd.js +1 -1
  39. package/layout/index.es.js +1 -1
  40. package/layout/index.umd.js +1 -1
  41. package/loading/index.es.js +15 -38
  42. package/loading/index.umd.js +1 -1
  43. package/message/index.d.ts +7 -0
  44. package/message/index.es.js +534 -0
  45. package/message/index.umd.js +1 -0
  46. package/message/package.json +7 -0
  47. package/message/style.css +1 -0
  48. package/modal/index.es.js +11 -43
  49. package/modal/index.umd.js +1 -1
  50. package/notification/index.es.js +16 -22
  51. package/notification/index.umd.js +1 -1
  52. package/nuxt/components/Message.js +3 -0
  53. package/nuxt/components/animationInjectionKey.js +3 -0
  54. package/nuxt/components/messageProps.js +3 -0
  55. package/nuxt/components/roundInjectionKey.js +3 -0
  56. package/nuxt/components/skeletonItemProps.js +3 -0
  57. package/overlay/index.es.js +1 -1
  58. package/overlay/index.umd.js +1 -1
  59. package/package.json +4 -2
  60. package/pagination/index.es.js +152 -2
  61. package/pagination/index.umd.js +1 -1
  62. package/panel/index.umd.js +1 -1
  63. package/popover/index.es.js +1 -1
  64. package/popover/index.umd.js +4 -4
  65. package/progress/index.umd.js +3 -3
  66. package/radio/index.es.js +91 -75
  67. package/radio/index.umd.js +28 -17
  68. package/radio/style.css +1 -1
  69. package/rate/index.umd.js +1 -1
  70. package/result/index.umd.js +1 -1
  71. package/ripple/index.es.js +5 -18
  72. package/ripple/index.umd.js +1 -1
  73. package/search/index.es.js +255 -78
  74. package/search/index.umd.js +27 -16
  75. package/search/style.css +1 -1
  76. package/select/index.es.js +283 -114
  77. package/select/index.umd.js +27 -16
  78. package/select/style.css +1 -1
  79. package/skeleton/index.es.js +87 -261
  80. package/skeleton/index.umd.js +1 -1
  81. package/skeleton/style.css +1 -1
  82. package/slider/index.umd.js +1 -1
  83. package/splitter/index.es.js +175 -32
  84. package/splitter/index.umd.js +13 -13
  85. package/statistic/index.es.js +0 -21
  86. package/statistic/index.umd.js +1 -1
  87. package/status/index.umd.js +1 -1
  88. package/steps/index.umd.js +1 -1
  89. package/style.css +1 -1
  90. package/switch/index.es.js +85 -71
  91. package/switch/index.umd.js +25 -14
  92. package/table/index.es.js +309 -96
  93. package/table/index.umd.js +25 -14
  94. package/table/style.css +1 -1
  95. package/tabs/index.umd.js +1 -1
  96. package/tag/index.umd.js +1 -1
  97. package/textarea/index.es.js +88 -72
  98. package/textarea/index.umd.js +26 -15
  99. package/time-picker/index.es.js +248 -89
  100. package/time-picker/index.umd.js +25 -14
  101. package/time-select/index.es.js +283 -114
  102. package/time-select/index.umd.js +26 -15
  103. package/time-select/style.css +1 -1
  104. package/timeline/index.umd.js +1 -1
  105. package/tooltip/index.es.js +1 -1
  106. package/tooltip/index.umd.js +4 -4
  107. package/tree/index.es.js +422 -110
  108. package/tree/index.umd.js +25 -14
  109. package/tree/style.css +1 -1
  110. package/upload/index.es.js +168 -49
  111. package/upload/index.umd.js +1 -1
  112. package/vue-devui.es.js +13601 -13023
  113. package/vue-devui.umd.js +32 -21
  114. package/LICENSE +0 -23
package/form/index.es.js CHANGED
@@ -1,35 +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
- import { defineComponent, watch, provide, reactive, toRefs, createVNode, onUnmounted, Transition, mergeProps, ref, unref, nextTick, Comment, Text, h, Fragment, inject, withDirectives, cloneVNode, computed, onMounted, Teleport, createTextVNode, onBeforeUnmount } from "vue";
1
+ import { defineComponent, watch, provide, reactive, toRefs, createVNode, onUnmounted, Transition, mergeProps, ref, nextTick, unref, Comment, Text, Fragment, h, inject, withDirectives, cloneVNode, computed, onMounted, Teleport, createTextVNode, onBeforeUnmount } from "vue";
33
2
  import { offset, autoPlacement, arrow, shift, computePosition } from "@floating-ui/dom";
34
3
  const formProps = {
35
4
  data: {
@@ -820,7 +789,7 @@ var lodash = { exports: {} };
820
789
  var objectCtorString = funcToString.call(Object2);
821
790
  var oldDash = root._;
822
791
  var reIsNative = RegExp2("^" + funcToString.call(hasOwnProperty).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
823
- 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;
792
+ 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;
824
793
  var defineProperty = function() {
825
794
  try {
826
795
  var func = getNative(Object2, "defineProperty");
@@ -830,11 +799,11 @@ var lodash = { exports: {} };
830
799
  }
831
800
  }();
832
801
  var ctxClearTimeout = context.clearTimeout !== root.clearTimeout && context.clearTimeout, ctxNow = Date2 && Date2.now !== root.Date.now && Date2.now, ctxSetTimeout = context.setTimeout !== root.setTimeout && context.setTimeout;
833
- 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;
834
- var DataView = getNative(context, "DataView"), Map2 = getNative(context, "Map"), Promise2 = getNative(context, "Promise"), Set = getNative(context, "Set"), WeakMap2 = getNative(context, "WeakMap"), nativeCreate = getNative(Object2, "create");
835
- var metaMap = WeakMap2 && new WeakMap2();
802
+ 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;
803
+ var DataView = getNative(context, "DataView"), Map2 = getNative(context, "Map"), Promise2 = getNative(context, "Promise"), Set = getNative(context, "Set"), WeakMap = getNative(context, "WeakMap"), nativeCreate = getNative(Object2, "create");
804
+ var metaMap = WeakMap && new WeakMap();
836
805
  var realNames = {};
837
- var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map2), promiseCtorString = toSource(Promise2), setCtorString = toSource(Set), weakMapCtorString = toSource(WeakMap2);
806
+ var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map2), promiseCtorString = toSource(Promise2), setCtorString = toSource(Set), weakMapCtorString = toSource(WeakMap);
838
807
  var symbolProto = Symbol2 ? Symbol2.prototype : undefined$1, symbolValueOf = symbolProto ? symbolProto.valueOf : undefined$1, symbolToString = symbolProto ? symbolProto.toString : undefined$1;
839
808
  function lodash2(value) {
840
809
  if (isObjectLike(value) && !isArray(value) && !(value instanceof LazyWrapper)) {
@@ -1289,7 +1258,7 @@ var lodash = { exports: {} };
1289
1258
  if (typeof func != "function") {
1290
1259
  throw new TypeError2(FUNC_ERROR_TEXT);
1291
1260
  }
1292
- return setTimeout(function() {
1261
+ return setTimeout2(function() {
1293
1262
  func.apply(undefined$1, args);
1294
1263
  }, wait);
1295
1264
  }
@@ -2082,7 +2051,7 @@ var lodash = { exports: {} };
2082
2051
  }
2083
2052
  function cloneArrayBuffer(arrayBuffer) {
2084
2053
  var result2 = new arrayBuffer.constructor(arrayBuffer.byteLength);
2085
- new Uint8Array2(result2).set(new Uint8Array2(arrayBuffer));
2054
+ new Uint8Array(result2).set(new Uint8Array(arrayBuffer));
2086
2055
  return result2;
2087
2056
  }
2088
2057
  function cloneDataView(dataView, isDeep) {
@@ -2664,7 +2633,7 @@ var lodash = { exports: {} };
2664
2633
  object4 = object4.buffer;
2665
2634
  other = other.buffer;
2666
2635
  case arrayBufferTag:
2667
- if (object4.byteLength != other.byteLength || !equalFunc(new Uint8Array2(object4), new Uint8Array2(other))) {
2636
+ if (object4.byteLength != other.byteLength || !equalFunc(new Uint8Array(object4), new Uint8Array(other))) {
2668
2637
  return false;
2669
2638
  }
2670
2639
  return true;
@@ -2826,7 +2795,7 @@ var lodash = { exports: {} };
2826
2795
  return result2;
2827
2796
  };
2828
2797
  var getTag = baseGetTag;
2829
- if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag || Map2 && getTag(new Map2()) != mapTag || Promise2 && getTag(Promise2.resolve()) != promiseTag || Set && getTag(new Set()) != setTag || WeakMap2 && getTag(new WeakMap2()) != weakMapTag) {
2798
+ if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag || Map2 && getTag(new Map2()) != mapTag || Promise2 && getTag(Promise2.resolve()) != promiseTag || Set && getTag(new Set()) != setTag || WeakMap && getTag(new WeakMap()) != weakMapTag) {
2830
2799
  getTag = function(value) {
2831
2800
  var result2 = baseGetTag(value), Ctor = result2 == objectTag ? value.constructor : undefined$1, ctorString = Ctor ? toSource(Ctor) : "";
2832
2801
  if (ctorString) {
@@ -3098,7 +3067,7 @@ var lodash = { exports: {} };
3098
3067
  return object4[key];
3099
3068
  }
3100
3069
  var setData = shortOut(baseSetData);
3101
- var setTimeout = ctxSetTimeout || function(func, wait) {
3070
+ var setTimeout2 = ctxSetTimeout || function(func, wait) {
3102
3071
  return root.setTimeout(func, wait);
3103
3072
  };
3104
3073
  var setToString = shortOut(baseSetToString);
@@ -3890,7 +3859,7 @@ var lodash = { exports: {} };
3890
3859
  }
3891
3860
  function leadingEdge(time) {
3892
3861
  lastInvokeTime = time;
3893
- timerId = setTimeout(timerExpired, wait);
3862
+ timerId = setTimeout2(timerExpired, wait);
3894
3863
  return leading ? invokeFunc(time) : result2;
3895
3864
  }
3896
3865
  function remainingWait(time) {
@@ -3906,7 +3875,7 @@ var lodash = { exports: {} };
3906
3875
  if (shouldInvoke(time)) {
3907
3876
  return trailingEdge(time);
3908
3877
  }
3909
- timerId = setTimeout(timerExpired, remainingWait(time));
3878
+ timerId = setTimeout2(timerExpired, remainingWait(time));
3910
3879
  }
3911
3880
  function trailingEdge(time) {
3912
3881
  timerId = undefined$1;
@@ -3937,12 +3906,12 @@ var lodash = { exports: {} };
3937
3906
  }
3938
3907
  if (maxing) {
3939
3908
  clearTimeout(timerId);
3940
- timerId = setTimeout(timerExpired, wait);
3909
+ timerId = setTimeout2(timerExpired, wait);
3941
3910
  return invokeFunc(lastCallTime);
3942
3911
  }
3943
3912
  }
3944
3913
  if (timerId === undefined$1) {
3945
- timerId = setTimeout(timerExpired, wait);
3914
+ timerId = setTimeout2(timerExpired, wait);
3946
3915
  }
3947
3916
  return result2;
3948
3917
  }
@@ -5543,7 +5512,10 @@ function useFormValidation(itemContexts) {
5543
5512
  try {
5544
5513
  await field.validate("");
5545
5514
  } catch (err) {
5546
- errors = __spreadValues(__spreadValues({}, errors), err);
5515
+ errors = {
5516
+ ...errors,
5517
+ ...err
5518
+ };
5547
5519
  }
5548
5520
  }
5549
5521
  if (!Object.keys(errors).length) {
@@ -5600,11 +5572,12 @@ var Form = defineComponent({
5600
5572
  }, {
5601
5573
  deep: true
5602
5574
  });
5603
- provide(FORM_TOKEN, reactive(__spreadProps(__spreadValues({}, toRefs(props)), {
5575
+ provide(FORM_TOKEN, reactive({
5576
+ ...toRefs(props),
5604
5577
  emit: ctx.emit,
5605
5578
  addItemContext,
5606
5579
  removeItemContext
5607
- })));
5580
+ }));
5608
5581
  ctx.expose({
5609
5582
  validate,
5610
5583
  validateFields,
@@ -6481,7 +6454,7 @@ var FormControl = defineComponent({
6481
6454
  }
6482
6455
  });
6483
6456
  function _extends() {
6484
- _extends = Object.assign || function(target) {
6457
+ _extends = Object.assign ? Object.assign.bind() : function(target) {
6485
6458
  for (var i = 1; i < arguments.length; i++) {
6486
6459
  var source = arguments[i];
6487
6460
  for (var key in source) {
@@ -6500,13 +6473,13 @@ function _inheritsLoose(subClass, superClass) {
6500
6473
  _setPrototypeOf(subClass, superClass);
6501
6474
  }
6502
6475
  function _getPrototypeOf(o) {
6503
- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf2(o2) {
6476
+ _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf2(o2) {
6504
6477
  return o2.__proto__ || Object.getPrototypeOf(o2);
6505
6478
  };
6506
6479
  return _getPrototypeOf(o);
6507
6480
  }
6508
6481
  function _setPrototypeOf(o, p) {
6509
- _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf2(o2, p2) {
6482
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o2, p2) {
6510
6483
  o2.__proto__ = p2;
6511
6484
  return o2;
6512
6485
  };
@@ -6529,7 +6502,7 @@ function _isNativeReflectConstruct() {
6529
6502
  }
6530
6503
  function _construct(Parent, args, Class) {
6531
6504
  if (_isNativeReflectConstruct()) {
6532
- _construct = Reflect.construct;
6505
+ _construct = Reflect.construct.bind();
6533
6506
  } else {
6534
6507
  _construct = function _construct2(Parent2, args2, Class2) {
6535
6508
  var a = [null];
@@ -6807,9 +6780,45 @@ var whitespace = function whitespace2(rule, value, source, errors, options) {
6807
6780
  errors.push(format(options.messages.whitespace, rule.fullField));
6808
6781
  }
6809
6782
  };
6783
+ var urlReg;
6784
+ var getUrlRegex = function() {
6785
+ if (urlReg) {
6786
+ return urlReg;
6787
+ }
6788
+ var word = "[a-fA-F\\d:]";
6789
+ var b = function b2(options) {
6790
+ return options && options.includeBoundaries ? "(?:(?<=\\s|^)(?=" + word + ")|(?<=" + word + ")(?=\\s|$))" : "";
6791
+ };
6792
+ 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}";
6793
+ var v6seg = "[a-fA-F\\d]{1,4}";
6794
+ 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();
6795
+ var v46Exact = new RegExp("(?:^" + v4 + "$)|(?:^" + v6 + "$)");
6796
+ var v4exact = new RegExp("^" + v4 + "$");
6797
+ var v6exact = new RegExp("^" + v6 + "$");
6798
+ var ip = function ip2(options) {
6799
+ return options && options.exact ? v46Exact : new RegExp("(?:" + b(options) + v4 + b(options) + ")|(?:" + b(options) + v6 + b(options) + ")", "g");
6800
+ };
6801
+ ip.v4 = function(options) {
6802
+ return options && options.exact ? v4exact : new RegExp("" + b(options) + v4 + b(options), "g");
6803
+ };
6804
+ ip.v6 = function(options) {
6805
+ return options && options.exact ? v6exact : new RegExp("" + b(options) + v6 + b(options), "g");
6806
+ };
6807
+ var protocol = "(?:(?:[a-z]+:)?//)";
6808
+ var auth = "(?:\\S+(?::\\S*)?@)?";
6809
+ var ipv4 = ip.v4().source;
6810
+ var ipv6 = ip.v6().source;
6811
+ var host = "(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)";
6812
+ var domain = "(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*";
6813
+ var tld = "(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))";
6814
+ var port = "(?::\\d{2,5})?";
6815
+ var path = '(?:[/?#][^\\s"]*)?';
6816
+ var regex = "(?:" + protocol + "|www\\.)" + auth + "(?:localhost|" + ipv4 + "|" + ipv6 + "|" + host + domain + tld + ")" + port + path;
6817
+ urlReg = new RegExp("(?:^" + regex + "$)", "i");
6818
+ return urlReg;
6819
+ };
6810
6820
  var pattern$2 = {
6811
6821
  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,}))$/,
6812
- 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"),
6813
6822
  hex: /^#?([a-f0-9]{6}|[a-f0-9]{3})$/i
6814
6823
  };
6815
6824
  var types = {
@@ -6851,7 +6860,7 @@ var types = {
6851
6860
  return typeof value === "string" && value.length <= 320 && !!value.match(pattern$2.email);
6852
6861
  },
6853
6862
  url: function url(value) {
6854
- return typeof value === "string" && value.length <= 2048 && !!value.match(pattern$2.url);
6863
+ return typeof value === "string" && value.length <= 2048 && !!value.match(getUrlRegex());
6855
6864
  },
6856
6865
  hex: function hex(value) {
6857
6866
  return typeof value === "string" && !!value.match(pattern$2.hex);
@@ -7426,7 +7435,17 @@ var Schema = /* @__PURE__ */ function() {
7426
7435
  if (rule.asyncValidator) {
7427
7436
  res = rule.asyncValidator(rule, data.value, cb, data.source, options);
7428
7437
  } else if (rule.validator) {
7429
- res = rule.validator(rule, data.value, cb, data.source, options);
7438
+ try {
7439
+ res = rule.validator(rule, data.value, cb, data.source, options);
7440
+ } catch (error) {
7441
+ console.error == null ? void 0 : console.error(error);
7442
+ if (!options.suppressValidatorError) {
7443
+ setTimeout(function() {
7444
+ throw error;
7445
+ }, 0);
7446
+ }
7447
+ cb(error.message);
7448
+ }
7430
7449
  if (res === true) {
7431
7450
  cb();
7432
7451
  } else if (res === false) {
@@ -7547,10 +7566,7 @@ function useFormItemValidate(props, _rules) {
7547
7566
  } else {
7548
7567
  return rule.trigger === triggerVal;
7549
7568
  }
7550
- }).map((_a) => {
7551
- var rule = __objRest(_a, []);
7552
- return rule;
7553
- });
7569
+ }).map(({ ...rule }) => rule);
7554
7570
  };
7555
7571
  const onValidateSuccess = () => {
7556
7572
  validateState.value = "success";
@@ -7623,15 +7639,12 @@ var FormItem = defineComponent({
7623
7639
  props: formItemProps,
7624
7640
  setup(props, ctx) {
7625
7641
  const formContext = inject(FORM_TOKEN);
7626
- const _a = toRefs(props), {
7642
+ const {
7627
7643
  messageType: itemMessageType,
7628
7644
  popPosition: itemPopPosition,
7629
- showFeedback: itemShowFeedback
7630
- } = _a, otherProps = __objRest(_a, [
7631
- "messageType",
7632
- "popPosition",
7633
- "showFeedback"
7634
- ]);
7645
+ showFeedback: itemShowFeedback,
7646
+ ...otherProps
7647
+ } = toRefs(props);
7635
7648
  const {
7636
7649
  label,
7637
7650
  helpTips,
@@ -7661,7 +7674,8 @@ var FormItem = defineComponent({
7661
7674
  labelAlign: formContext.labelAlign
7662
7675
  }));
7663
7676
  provide(LABEL_DATA, labelData);
7664
- const context = reactive(__spreadProps(__spreadValues({}, otherProps), {
7677
+ const context = reactive({
7678
+ ...otherProps,
7665
7679
  showFeedback,
7666
7680
  messageType,
7667
7681
  popPosition,
@@ -7671,7 +7685,7 @@ var FormItem = defineComponent({
7671
7685
  validate,
7672
7686
  resetField,
7673
7687
  clearValidate
7674
- }));
7688
+ });
7675
7689
  provide(FORM_ITEM_TOKEN, context);
7676
7690
  ctx.expose({
7677
7691
  resetField,
@@ -7696,8 +7710,8 @@ var FormItem = defineComponent({
7696
7710
  "extra-info": extraInfo.value
7697
7711
  }, {
7698
7712
  default: () => {
7699
- var _a2, _b;
7700
- return [(_b = (_a2 = ctx.slots).default) == null ? void 0 : _b.call(_a2)];
7713
+ var _a, _b;
7714
+ return [(_b = (_a = ctx.slots).default) == null ? void 0 : _b.call(_a)];
7701
7715
  }
7702
7716
  })]);
7703
7717
  }