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,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 { ref, reactive, defineComponent, watch, provide, toRefs, createVNode, onUnmounted, Transition, mergeProps, unref, nextTick, Comment, Text, h, Fragment, inject, withDirectives, cloneVNode, computed, onMounted, Teleport, createTextVNode, onBeforeUnmount, toRef, onBeforeMount, vShow, resolveComponent, getCurrentInstance } from "vue";
1
+ import { ref, reactive, defineComponent, watch, provide, toRefs, createVNode, onUnmounted, Transition, mergeProps, nextTick, unref, Comment, Text, Fragment, h, inject, withDirectives, cloneVNode, computed, onMounted, Teleport, createTextVNode, onBeforeUnmount, toRef, onBeforeMount, vShow, resolveComponent, getCurrentInstance } from "vue";
33
2
  import { onClickOutside } from "@vueuse/core";
34
3
  import { offset, autoPlacement, arrow, shift, computePosition } from "@floating-ui/dom";
35
4
  function deepAssign(...objects) {
@@ -943,7 +912,7 @@ var lodash = { exports: {} };
943
912
  var objectCtorString = funcToString.call(Object2);
944
913
  var oldDash = root._;
945
914
  var reIsNative = RegExp2("^" + funcToString.call(hasOwnProperty).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
946
- 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;
915
+ 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;
947
916
  var defineProperty = function() {
948
917
  try {
949
918
  var func = getNative(Object2, "defineProperty");
@@ -953,11 +922,11 @@ var lodash = { exports: {} };
953
922
  }
954
923
  }();
955
924
  var ctxClearTimeout = context.clearTimeout !== root.clearTimeout && context.clearTimeout, ctxNow = Date2 && Date2.now !== root.Date.now && Date2.now, ctxSetTimeout = context.setTimeout !== root.setTimeout && context.setTimeout;
956
- 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;
957
- 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");
958
- var metaMap = WeakMap2 && new WeakMap2();
925
+ 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;
926
+ 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");
927
+ var metaMap = WeakMap && new WeakMap();
959
928
  var realNames = {};
960
- var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map2), promiseCtorString = toSource(Promise2), setCtorString = toSource(Set2), weakMapCtorString = toSource(WeakMap2);
929
+ var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map2), promiseCtorString = toSource(Promise2), setCtorString = toSource(Set2), weakMapCtorString = toSource(WeakMap);
961
930
  var symbolProto = Symbol2 ? Symbol2.prototype : undefined$1, symbolValueOf = symbolProto ? symbolProto.valueOf : undefined$1, symbolToString = symbolProto ? symbolProto.toString : undefined$1;
962
931
  function lodash2(value) {
963
932
  if (isObjectLike(value) && !isArray(value) && !(value instanceof LazyWrapper)) {
@@ -1412,7 +1381,7 @@ var lodash = { exports: {} };
1412
1381
  if (typeof func != "function") {
1413
1382
  throw new TypeError2(FUNC_ERROR_TEXT);
1414
1383
  }
1415
- return setTimeout(function() {
1384
+ return setTimeout2(function() {
1416
1385
  func.apply(undefined$1, args);
1417
1386
  }, wait);
1418
1387
  }
@@ -2205,7 +2174,7 @@ var lodash = { exports: {} };
2205
2174
  }
2206
2175
  function cloneArrayBuffer(arrayBuffer) {
2207
2176
  var result2 = new arrayBuffer.constructor(arrayBuffer.byteLength);
2208
- new Uint8Array2(result2).set(new Uint8Array2(arrayBuffer));
2177
+ new Uint8Array(result2).set(new Uint8Array(arrayBuffer));
2209
2178
  return result2;
2210
2179
  }
2211
2180
  function cloneDataView(dataView, isDeep) {
@@ -2787,7 +2756,7 @@ var lodash = { exports: {} };
2787
2756
  object4 = object4.buffer;
2788
2757
  other = other.buffer;
2789
2758
  case arrayBufferTag:
2790
- if (object4.byteLength != other.byteLength || !equalFunc(new Uint8Array2(object4), new Uint8Array2(other))) {
2759
+ if (object4.byteLength != other.byteLength || !equalFunc(new Uint8Array(object4), new Uint8Array(other))) {
2791
2760
  return false;
2792
2761
  }
2793
2762
  return true;
@@ -2949,7 +2918,7 @@ var lodash = { exports: {} };
2949
2918
  return result2;
2950
2919
  };
2951
2920
  var getTag = baseGetTag;
2952
- 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) {
2921
+ 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) {
2953
2922
  getTag = function(value) {
2954
2923
  var result2 = baseGetTag(value), Ctor = result2 == objectTag ? value.constructor : undefined$1, ctorString = Ctor ? toSource(Ctor) : "";
2955
2924
  if (ctorString) {
@@ -3221,7 +3190,7 @@ var lodash = { exports: {} };
3221
3190
  return object4[key];
3222
3191
  }
3223
3192
  var setData = shortOut(baseSetData);
3224
- var setTimeout = ctxSetTimeout || function(func, wait) {
3193
+ var setTimeout2 = ctxSetTimeout || function(func, wait) {
3225
3194
  return root.setTimeout(func, wait);
3226
3195
  };
3227
3196
  var setToString = shortOut(baseSetToString);
@@ -4013,7 +3982,7 @@ var lodash = { exports: {} };
4013
3982
  }
4014
3983
  function leadingEdge(time) {
4015
3984
  lastInvokeTime = time;
4016
- timerId = setTimeout(timerExpired, wait);
3985
+ timerId = setTimeout2(timerExpired, wait);
4017
3986
  return leading ? invokeFunc(time) : result2;
4018
3987
  }
4019
3988
  function remainingWait(time) {
@@ -4029,7 +3998,7 @@ var lodash = { exports: {} };
4029
3998
  if (shouldInvoke(time)) {
4030
3999
  return trailingEdge(time);
4031
4000
  }
4032
- timerId = setTimeout(timerExpired, remainingWait(time));
4001
+ timerId = setTimeout2(timerExpired, remainingWait(time));
4033
4002
  }
4034
4003
  function trailingEdge(time) {
4035
4004
  timerId = undefined$1;
@@ -4060,12 +4029,12 @@ var lodash = { exports: {} };
4060
4029
  }
4061
4030
  if (maxing) {
4062
4031
  clearTimeout(timerId);
4063
- timerId = setTimeout(timerExpired, wait);
4032
+ timerId = setTimeout2(timerExpired, wait);
4064
4033
  return invokeFunc(lastCallTime);
4065
4034
  }
4066
4035
  }
4067
4036
  if (timerId === undefined$1) {
4068
- timerId = setTimeout(timerExpired, wait);
4037
+ timerId = setTimeout2(timerExpired, wait);
4069
4038
  }
4070
4039
  return result2;
4071
4040
  }
@@ -5721,7 +5690,10 @@ function useFormValidation(itemContexts) {
5721
5690
  try {
5722
5691
  await field.validate("");
5723
5692
  } catch (err) {
5724
- errors = __spreadValues(__spreadValues({}, errors), err);
5693
+ errors = {
5694
+ ...errors,
5695
+ ...err
5696
+ };
5725
5697
  }
5726
5698
  }
5727
5699
  if (!Object.keys(errors).length) {
@@ -5778,11 +5750,12 @@ defineComponent({
5778
5750
  }, {
5779
5751
  deep: true
5780
5752
  });
5781
- provide(FORM_TOKEN, reactive(__spreadProps(__spreadValues({}, toRefs(props)), {
5753
+ provide(FORM_TOKEN, reactive({
5754
+ ...toRefs(props),
5782
5755
  emit: ctx.emit,
5783
5756
  addItemContext,
5784
5757
  removeItemContext
5785
- })));
5758
+ }));
5786
5759
  ctx.expose({
5787
5760
  validate,
5788
5761
  validateFields,
@@ -6659,7 +6632,7 @@ var FormControl = defineComponent({
6659
6632
  }
6660
6633
  });
6661
6634
  function _extends() {
6662
- _extends = Object.assign || function(target) {
6635
+ _extends = Object.assign ? Object.assign.bind() : function(target) {
6663
6636
  for (var i = 1; i < arguments.length; i++) {
6664
6637
  var source = arguments[i];
6665
6638
  for (var key in source) {
@@ -6678,13 +6651,13 @@ function _inheritsLoose(subClass, superClass) {
6678
6651
  _setPrototypeOf(subClass, superClass);
6679
6652
  }
6680
6653
  function _getPrototypeOf(o) {
6681
- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf2(o2) {
6654
+ _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf2(o2) {
6682
6655
  return o2.__proto__ || Object.getPrototypeOf(o2);
6683
6656
  };
6684
6657
  return _getPrototypeOf(o);
6685
6658
  }
6686
6659
  function _setPrototypeOf(o, p) {
6687
- _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf2(o2, p2) {
6660
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o2, p2) {
6688
6661
  o2.__proto__ = p2;
6689
6662
  return o2;
6690
6663
  };
@@ -6707,7 +6680,7 @@ function _isNativeReflectConstruct() {
6707
6680
  }
6708
6681
  function _construct(Parent, args, Class) {
6709
6682
  if (_isNativeReflectConstruct()) {
6710
- _construct = Reflect.construct;
6683
+ _construct = Reflect.construct.bind();
6711
6684
  } else {
6712
6685
  _construct = function _construct2(Parent2, args2, Class2) {
6713
6686
  var a = [null];
@@ -6985,9 +6958,45 @@ var whitespace = function whitespace2(rule, value, source, errors, options) {
6985
6958
  errors.push(format(options.messages.whitespace, rule.fullField));
6986
6959
  }
6987
6960
  };
6961
+ var urlReg;
6962
+ var getUrlRegex = function() {
6963
+ if (urlReg) {
6964
+ return urlReg;
6965
+ }
6966
+ var word = "[a-fA-F\\d:]";
6967
+ var b = function b2(options) {
6968
+ return options && options.includeBoundaries ? "(?:(?<=\\s|^)(?=" + word + ")|(?<=" + word + ")(?=\\s|$))" : "";
6969
+ };
6970
+ 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}";
6971
+ var v6seg = "[a-fA-F\\d]{1,4}";
6972
+ 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();
6973
+ var v46Exact = new RegExp("(?:^" + v4 + "$)|(?:^" + v6 + "$)");
6974
+ var v4exact = new RegExp("^" + v4 + "$");
6975
+ var v6exact = new RegExp("^" + v6 + "$");
6976
+ var ip = function ip2(options) {
6977
+ return options && options.exact ? v46Exact : new RegExp("(?:" + b(options) + v4 + b(options) + ")|(?:" + b(options) + v6 + b(options) + ")", "g");
6978
+ };
6979
+ ip.v4 = function(options) {
6980
+ return options && options.exact ? v4exact : new RegExp("" + b(options) + v4 + b(options), "g");
6981
+ };
6982
+ ip.v6 = function(options) {
6983
+ return options && options.exact ? v6exact : new RegExp("" + b(options) + v6 + b(options), "g");
6984
+ };
6985
+ var protocol = "(?:(?:[a-z]+:)?//)";
6986
+ var auth = "(?:\\S+(?::\\S*)?@)?";
6987
+ var ipv4 = ip.v4().source;
6988
+ var ipv6 = ip.v6().source;
6989
+ var host = "(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)";
6990
+ var domain = "(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*";
6991
+ var tld = "(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))";
6992
+ var port = "(?::\\d{2,5})?";
6993
+ var path = '(?:[/?#][^\\s"]*)?';
6994
+ var regex = "(?:" + protocol + "|www\\.)" + auth + "(?:localhost|" + ipv4 + "|" + ipv6 + "|" + host + domain + tld + ")" + port + path;
6995
+ urlReg = new RegExp("(?:^" + regex + "$)", "i");
6996
+ return urlReg;
6997
+ };
6988
6998
  var pattern$2 = {
6989
6999
  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,}))$/,
6990
- 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"),
6991
7000
  hex: /^#?([a-f0-9]{6}|[a-f0-9]{3})$/i
6992
7001
  };
6993
7002
  var types = {
@@ -7029,7 +7038,7 @@ var types = {
7029
7038
  return typeof value === "string" && value.length <= 320 && !!value.match(pattern$2.email);
7030
7039
  },
7031
7040
  url: function url(value) {
7032
- return typeof value === "string" && value.length <= 2048 && !!value.match(pattern$2.url);
7041
+ return typeof value === "string" && value.length <= 2048 && !!value.match(getUrlRegex());
7033
7042
  },
7034
7043
  hex: function hex(value) {
7035
7044
  return typeof value === "string" && !!value.match(pattern$2.hex);
@@ -7604,7 +7613,17 @@ var Schema = /* @__PURE__ */ function() {
7604
7613
  if (rule.asyncValidator) {
7605
7614
  res = rule.asyncValidator(rule, data.value, cb, data.source, options);
7606
7615
  } else if (rule.validator) {
7607
- res = rule.validator(rule, data.value, cb, data.source, options);
7616
+ try {
7617
+ res = rule.validator(rule, data.value, cb, data.source, options);
7618
+ } catch (error) {
7619
+ console.error == null ? void 0 : console.error(error);
7620
+ if (!options.suppressValidatorError) {
7621
+ setTimeout(function() {
7622
+ throw error;
7623
+ }, 0);
7624
+ }
7625
+ cb(error.message);
7626
+ }
7608
7627
  if (res === true) {
7609
7628
  cb();
7610
7629
  } else if (res === false) {
@@ -7725,10 +7744,7 @@ function useFormItemValidate(props, _rules) {
7725
7744
  } else {
7726
7745
  return rule.trigger === triggerVal;
7727
7746
  }
7728
- }).map((_a) => {
7729
- var rule = __objRest(_a, []);
7730
- return rule;
7731
- });
7747
+ }).map(({ ...rule }) => rule);
7732
7748
  };
7733
7749
  const onValidateSuccess = () => {
7734
7750
  validateState.value = "success";
@@ -7801,15 +7817,12 @@ defineComponent({
7801
7817
  props: formItemProps,
7802
7818
  setup(props, ctx) {
7803
7819
  const formContext = inject(FORM_TOKEN);
7804
- const _a = toRefs(props), {
7820
+ const {
7805
7821
  messageType: itemMessageType,
7806
7822
  popPosition: itemPopPosition,
7807
- showFeedback: itemShowFeedback
7808
- } = _a, otherProps = __objRest(_a, [
7809
- "messageType",
7810
- "popPosition",
7811
- "showFeedback"
7812
- ]);
7823
+ showFeedback: itemShowFeedback,
7824
+ ...otherProps
7825
+ } = toRefs(props);
7813
7826
  const {
7814
7827
  label,
7815
7828
  helpTips,
@@ -7839,7 +7852,8 @@ defineComponent({
7839
7852
  labelAlign: formContext.labelAlign
7840
7853
  }));
7841
7854
  provide(LABEL_DATA, labelData);
7842
- const context = reactive(__spreadProps(__spreadValues({}, otherProps), {
7855
+ const context = reactive({
7856
+ ...otherProps,
7843
7857
  showFeedback,
7844
7858
  messageType,
7845
7859
  popPosition,
@@ -7849,7 +7863,7 @@ defineComponent({
7849
7863
  validate,
7850
7864
  resetField,
7851
7865
  clearValidate
7852
- }));
7866
+ });
7853
7867
  provide(FORM_ITEM_TOKEN, context);
7854
7868
  ctx.expose({
7855
7869
  resetField,
@@ -7874,8 +7888,8 @@ defineComponent({
7874
7888
  "extra-info": extraInfo.value
7875
7889
  }, {
7876
7890
  default: () => {
7877
- var _a2, _b;
7878
- return [(_b = (_a2 = ctx.slots).default) == null ? void 0 : _b.call(_a2)];
7891
+ var _a, _b;
7892
+ return [(_b = (_a = ctx.slots).default) == null ? void 0 : _b.call(_a)];
7879
7893
  }
7880
7894
  })]);
7881
7895
  }
@@ -7948,10 +7962,11 @@ function useSelect(props, ctx, focus, blur, isSelectFocus, t) {
7948
7962
  return props.options.map((item) => {
7949
7963
  let option;
7950
7964
  if (typeof item === "object") {
7951
- option = __spreadValues({
7965
+ option = {
7952
7966
  name: item.name ? item.name : item.value + "",
7953
- _checked: false
7954
- }, item);
7967
+ _checked: false,
7968
+ ...item
7969
+ };
7955
7970
  } else {
7956
7971
  option = {
7957
7972
  name: item + "",
@@ -8000,18 +8015,14 @@ function useSelect(props, ctx, focus, blur, isSelectFocus, t) {
8000
8015
  }
8001
8016
  });
8002
8017
  };
8003
- const selectedOptions = ref([]);
8004
8018
  const filterQuery = ref("");
8005
- const inputValue = computed(() => {
8006
- var _a;
8019
+ const selectedOptions = computed(() => {
8007
8020
  if (props.multiple && Array.isArray(props.modelValue)) {
8008
- selectedOptions.value = getInjectOptions(props.modelValue).filter((item) => item ? true : false);
8009
- return selectedOptions.value.map((item) => (item == null ? void 0 : item.name) || (item == null ? void 0 : item.value) || "").join(",");
8021
+ return getInjectOptions(props.modelValue).filter((item) => item ? true : false);
8010
8022
  } else if (!Array.isArray(props.modelValue)) {
8011
- selectedOptions.value = getInjectOptions([props.modelValue]).filter((item) => item ? true : false);
8012
- return ((_a = selectedOptions.value[0]) == null ? void 0 : _a.name) || "";
8023
+ return getInjectOptions([props.modelValue]).filter((item) => item ? true : false);
8013
8024
  }
8014
- return "";
8025
+ return [];
8015
8026
  });
8016
8027
  const onClick = function(e) {
8017
8028
  e.preventDefault();
@@ -8092,9 +8103,11 @@ function useSelect(props, ctx, focus, blur, isSelectFocus, t) {
8092
8103
  };
8093
8104
  const tagDelete = (data) => {
8094
8105
  let { modelValue } = props;
8095
- data._checked = !data._checked;
8096
8106
  const checkedItems = [];
8097
8107
  for (const child of injectOptions.value.values()) {
8108
+ if (data.value === child.value) {
8109
+ child._checked = false;
8110
+ }
8098
8111
  if (child._checked) {
8099
8112
  checkedItems.push(child.value);
8100
8113
  }
@@ -8177,7 +8190,6 @@ function useSelect(props, ctx, focus, blur, isSelectFocus, t) {
8177
8190
  isOpen,
8178
8191
  selectCls,
8179
8192
  mergeOptions,
8180
- inputValue,
8181
8193
  selectedOptions,
8182
8194
  filterQuery,
8183
8195
  emptyText,
@@ -8306,12 +8318,6 @@ const optionProps = {
8306
8318
  default: false
8307
8319
  }
8308
8320
  };
8309
- const selectContentProps = {
8310
- value: {
8311
- type: String,
8312
- default: ""
8313
- }
8314
- };
8315
8321
  const optionGroupProps = {
8316
8322
  label: {
8317
8323
  type: String
@@ -8360,7 +8366,8 @@ const commonProps = {
8360
8366
  default: "md"
8361
8367
  }
8362
8368
  };
8363
- const checkboxProps = __spreadProps(__spreadValues({}, commonProps), {
8369
+ const checkboxProps = {
8370
+ ...commonProps,
8364
8371
  checked: {
8365
8372
  type: Boolean,
8366
8373
  default: false
@@ -8390,8 +8397,9 @@ const checkboxProps = __spreadProps(__spreadValues({}, commonProps), {
8390
8397
  type: Boolean,
8391
8398
  default: false
8392
8399
  }
8393
- });
8394
- const checkboxGroupProps = __spreadProps(__spreadValues({}, commonProps), {
8400
+ };
8401
+ const checkboxGroupProps = {
8402
+ ...commonProps,
8395
8403
  modelValue: {
8396
8404
  type: Array,
8397
8405
  required: true
@@ -8428,7 +8436,7 @@ const checkboxGroupProps = __spreadProps(__spreadValues({}, commonProps), {
8428
8436
  type: String,
8429
8437
  default: ""
8430
8438
  }
8431
- });
8439
+ };
8432
8440
  const checkboxGroupInjectionKey = Symbol("d-checkbox-group");
8433
8441
  function useCheckbox(props, ctx) {
8434
8442
  const formContext = inject(FORM_TOKEN, void 0);
@@ -8704,9 +8712,10 @@ defineComponent({
8704
8712
  value: opt
8705
8713
  });
8706
8714
  } else if (typeof opt === "object") {
8707
- mergedOpt = Object.assign({}, defaultOpt, __spreadProps(__spreadValues({}, opt), {
8715
+ mergedOpt = Object.assign({}, defaultOpt, {
8716
+ ...opt,
8708
8717
  label: opt.name
8709
- }));
8718
+ });
8710
8719
  }
8711
8720
  return createVNode(Checkbox, mergedOpt, null);
8712
8721
  });
@@ -9013,7 +9022,7 @@ var Tag = defineComponent({
9013
9022
  };
9014
9023
  }
9015
9024
  });
9016
- function useSelectContent(props) {
9025
+ function useSelectContent() {
9017
9026
  const ns2 = useNamespace("select");
9018
9027
  const select2 = inject(SELECT_TOKEN);
9019
9028
  const formItemContext = inject(FORM_ITEM_TOKEN, void 0);
@@ -9034,8 +9043,16 @@ function useSelectContent(props) {
9034
9043
  return true;
9035
9044
  }
9036
9045
  });
9046
+ const displayInputValue = computed(() => {
9047
+ var _a;
9048
+ if (select2 == null ? void 0 : select2.selectedOptions) {
9049
+ return select2.selectedOptions.length > 1 ? select2.selectedOptions.map((item) => (item == null ? void 0 : item.name) || (item == null ? void 0 : item.value) || "").join(",") : ((_a = select2.selectedOptions[0]) == null ? void 0 : _a.name) || "";
9050
+ } else {
9051
+ return "";
9052
+ }
9053
+ });
9037
9054
  const mergeClearable = computed(() => {
9038
- return !isSelectDisable.value && !!(select2 == null ? void 0 : select2.allowClear) && props.value.length > 0;
9055
+ return !isSelectDisable.value && !!(select2 == null ? void 0 : select2.allowClear) && (displayInputValue.value ? true : false);
9039
9056
  });
9040
9057
  const isDisabledTooltip = computed(() => {
9041
9058
  return !isSupportTagsTooltip.value || !!(select2 == null ? void 0 : select2.isOpen);
@@ -9053,7 +9070,7 @@ function useSelectContent(props) {
9053
9070
  });
9054
9071
  });
9055
9072
  const tagSize = computed(() => (select2 == null ? void 0 : select2.selectSize) || "sm");
9056
- const placeholder = computed(() => props.value.length > 0 ? "" : (select2 == null ? void 0 : select2.placeholder) || t("placeholder"));
9073
+ const placeholder = computed(() => displayInputValue.value ? "" : (select2 == null ? void 0 : select2.placeholder) || t("placeholder"));
9057
9074
  const isMultiple = computed(() => !!(select2 == null ? void 0 : select2.multiple));
9058
9075
  const handleClear = (e) => {
9059
9076
  e.preventDefault();
@@ -9091,6 +9108,7 @@ function useSelectContent(props) {
9091
9108
  tagSize,
9092
9109
  placeholder,
9093
9110
  isMultiple,
9111
+ displayInputValue,
9094
9112
  handleClear,
9095
9113
  tagDelete,
9096
9114
  onFocus,
@@ -9100,8 +9118,7 @@ function useSelectContent(props) {
9100
9118
  }
9101
9119
  var SelectContent = defineComponent({
9102
9120
  name: "SelectContent",
9103
- props: selectContentProps,
9104
- setup(props) {
9121
+ setup() {
9105
9122
  const formItemContext = inject(FORM_ITEM_TOKEN, void 0);
9106
9123
  const ns2 = useNamespace("select");
9107
9124
  const clearCls = computed(() => ({
@@ -9126,12 +9143,13 @@ var SelectContent = defineComponent({
9126
9143
  tagSize,
9127
9144
  placeholder,
9128
9145
  isMultiple,
9146
+ displayInputValue,
9129
9147
  handleClear,
9130
9148
  tagDelete,
9131
9149
  onFocus,
9132
9150
  onBlur,
9133
9151
  queryFilter
9134
- } = useSelectContent(props);
9152
+ } = useSelectContent();
9135
9153
  return () => {
9136
9154
  return createVNode("div", {
9137
9155
  "class": selectionCls.value
@@ -9194,7 +9212,7 @@ var SelectContent = defineComponent({
9194
9212
  "onBlur": onBlur
9195
9213
  }, null)])]) : createVNode("input", {
9196
9214
  "ref": "input",
9197
- "value": props.value,
9215
+ "value": displayInputValue.value,
9198
9216
  "type": "text",
9199
9217
  "class": inputCls.value,
9200
9218
  "placeholder": placeholder.value,
@@ -9258,7 +9276,6 @@ var Select = defineComponent({
9258
9276
  isOpen,
9259
9277
  selectCls,
9260
9278
  mergeOptions,
9261
- inputValue,
9262
9279
  selectedOptions,
9263
9280
  filterQuery,
9264
9281
  emptyText,
@@ -9295,7 +9312,8 @@ var Select = defineComponent({
9295
9312
  onMounted(() => {
9296
9313
  isRender.value = true;
9297
9314
  });
9298
- provide(SELECT_TOKEN, reactive(__spreadProps(__spreadValues({}, toRefs(props)), {
9315
+ provide(SELECT_TOKEN, reactive({
9316
+ ...toRefs(props),
9299
9317
  selectDisabled,
9300
9318
  selectSize,
9301
9319
  isOpen,
@@ -9308,7 +9326,7 @@ var Select = defineComponent({
9308
9326
  onFocus,
9309
9327
  onBlur,
9310
9328
  debounceQueryFilter
9311
- })));
9329
+ }));
9312
9330
  return () => {
9313
9331
  return createVNode("div", {
9314
9332
  "class": selectCls.value,
@@ -9317,8 +9335,7 @@ var Select = defineComponent({
9317
9335
  }, [createVNode("div", {
9318
9336
  "ref": originRef
9319
9337
  }, [createVNode(SelectContent, {
9320
- "ref": selectRef,
9321
- "value": inputValue.value
9338
+ "ref": selectRef
9322
9339
  }, null)]), createVNode(Transition, {
9323
9340
  "name": "fade"
9324
9341
  }, {
@@ -9353,8 +9370,8 @@ var Select = defineComponent({
9353
9370
  "modelValue": false,
9354
9371
  "label": filterQuery.value
9355
9372
  }, null) : filterQuery.value]
9356
- }), ((_a = ctx.slots) == null ? void 0 : _a.default) && ctx.slots.default(), !((_b = ctx.slots) == null ? void 0 : _b.default) && mergeOptions.value.length >= 1 && mergeOptions.value.map((item, i) => createVNode(Option, {
9357
- "key": i,
9373
+ }), ((_a = ctx.slots) == null ? void 0 : _a.default) && ctx.slots.default(), !((_b = ctx.slots) == null ? void 0 : _b.default) && mergeOptions.value.length >= 1 && mergeOptions.value.map((item) => createVNode(Option, {
9374
+ "key": item.value,
9358
9375
  "value": item.value,
9359
9376
  "name": item.name,
9360
9377
  "disabled": isDisabled(item)
@@ -9378,7 +9395,9 @@ defineComponent({
9378
9395
  props: optionGroupProps,
9379
9396
  setup(props, ctx) {
9380
9397
  const ns2 = useNamespace("select");
9381
- provide(OPTION_GROUP_TOKEN, reactive(__spreadValues({}, toRefs(props))));
9398
+ provide(OPTION_GROUP_TOKEN, reactive({
9399
+ ...toRefs(props)
9400
+ }));
9382
9401
  return () => {
9383
9402
  var _a;
9384
9403
  return createVNode("ul", {