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,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, withModifiers, 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,
@@ -6445,6 +6418,8 @@ var Popover = defineComponent({
6445
6418
  "style": overlayStyles.value
6446
6419
  }, attrs, {
6447
6420
  "onPositionChange": handlePositionChange,
6421
+ "onClick": withModifiers(() => ({}), ["stop"]),
6422
+ "onPointerup": withModifiers(() => ({}), ["stop"]),
6448
6423
  "onMouseenter": onMouseenter,
6449
6424
  "onMouseleave": onMouseleave
6450
6425
  }), {
@@ -6659,7 +6634,7 @@ var FormControl = defineComponent({
6659
6634
  }
6660
6635
  });
6661
6636
  function _extends() {
6662
- _extends = Object.assign || function(target) {
6637
+ _extends = Object.assign ? Object.assign.bind() : function(target) {
6663
6638
  for (var i = 1; i < arguments.length; i++) {
6664
6639
  var source = arguments[i];
6665
6640
  for (var key in source) {
@@ -6678,13 +6653,13 @@ function _inheritsLoose(subClass, superClass) {
6678
6653
  _setPrototypeOf(subClass, superClass);
6679
6654
  }
6680
6655
  function _getPrototypeOf(o) {
6681
- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf2(o2) {
6656
+ _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf2(o2) {
6682
6657
  return o2.__proto__ || Object.getPrototypeOf(o2);
6683
6658
  };
6684
6659
  return _getPrototypeOf(o);
6685
6660
  }
6686
6661
  function _setPrototypeOf(o, p) {
6687
- _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf2(o2, p2) {
6662
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o2, p2) {
6688
6663
  o2.__proto__ = p2;
6689
6664
  return o2;
6690
6665
  };
@@ -6707,7 +6682,7 @@ function _isNativeReflectConstruct() {
6707
6682
  }
6708
6683
  function _construct(Parent, args, Class) {
6709
6684
  if (_isNativeReflectConstruct()) {
6710
- _construct = Reflect.construct;
6685
+ _construct = Reflect.construct.bind();
6711
6686
  } else {
6712
6687
  _construct = function _construct2(Parent2, args2, Class2) {
6713
6688
  var a = [null];
@@ -6985,9 +6960,45 @@ var whitespace = function whitespace2(rule, value, source, errors, options) {
6985
6960
  errors.push(format(options.messages.whitespace, rule.fullField));
6986
6961
  }
6987
6962
  };
6963
+ var urlReg;
6964
+ var getUrlRegex = function() {
6965
+ if (urlReg) {
6966
+ return urlReg;
6967
+ }
6968
+ var word = "[a-fA-F\\d:]";
6969
+ var b = function b2(options) {
6970
+ return options && options.includeBoundaries ? "(?:(?<=\\s|^)(?=" + word + ")|(?<=" + word + ")(?=\\s|$))" : "";
6971
+ };
6972
+ 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}";
6973
+ var v6seg = "[a-fA-F\\d]{1,4}";
6974
+ 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();
6975
+ var v46Exact = new RegExp("(?:^" + v4 + "$)|(?:^" + v6 + "$)");
6976
+ var v4exact = new RegExp("^" + v4 + "$");
6977
+ var v6exact = new RegExp("^" + v6 + "$");
6978
+ var ip = function ip2(options) {
6979
+ return options && options.exact ? v46Exact : new RegExp("(?:" + b(options) + v4 + b(options) + ")|(?:" + b(options) + v6 + b(options) + ")", "g");
6980
+ };
6981
+ ip.v4 = function(options) {
6982
+ return options && options.exact ? v4exact : new RegExp("" + b(options) + v4 + b(options), "g");
6983
+ };
6984
+ ip.v6 = function(options) {
6985
+ return options && options.exact ? v6exact : new RegExp("" + b(options) + v6 + b(options), "g");
6986
+ };
6987
+ var protocol = "(?:(?:[a-z]+:)?//)";
6988
+ var auth = "(?:\\S+(?::\\S*)?@)?";
6989
+ var ipv4 = ip.v4().source;
6990
+ var ipv6 = ip.v6().source;
6991
+ var host = "(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)";
6992
+ var domain = "(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*";
6993
+ var tld = "(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))";
6994
+ var port = "(?::\\d{2,5})?";
6995
+ var path = '(?:[/?#][^\\s"]*)?';
6996
+ var regex = "(?:" + protocol + "|www\\.)" + auth + "(?:localhost|" + ipv4 + "|" + ipv6 + "|" + host + domain + tld + ")" + port + path;
6997
+ urlReg = new RegExp("(?:^" + regex + "$)", "i");
6998
+ return urlReg;
6999
+ };
6988
7000
  var pattern$2 = {
6989
7001
  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
7002
  hex: /^#?([a-f0-9]{6}|[a-f0-9]{3})$/i
6992
7003
  };
6993
7004
  var types = {
@@ -7029,7 +7040,7 @@ var types = {
7029
7040
  return typeof value === "string" && value.length <= 320 && !!value.match(pattern$2.email);
7030
7041
  },
7031
7042
  url: function url(value) {
7032
- return typeof value === "string" && value.length <= 2048 && !!value.match(pattern$2.url);
7043
+ return typeof value === "string" && value.length <= 2048 && !!value.match(getUrlRegex());
7033
7044
  },
7034
7045
  hex: function hex(value) {
7035
7046
  return typeof value === "string" && !!value.match(pattern$2.hex);
@@ -7604,7 +7615,17 @@ var Schema = /* @__PURE__ */ function() {
7604
7615
  if (rule.asyncValidator) {
7605
7616
  res = rule.asyncValidator(rule, data.value, cb, data.source, options);
7606
7617
  } else if (rule.validator) {
7607
- res = rule.validator(rule, data.value, cb, data.source, options);
7618
+ try {
7619
+ res = rule.validator(rule, data.value, cb, data.source, options);
7620
+ } catch (error) {
7621
+ console.error == null ? void 0 : console.error(error);
7622
+ if (!options.suppressValidatorError) {
7623
+ setTimeout(function() {
7624
+ throw error;
7625
+ }, 0);
7626
+ }
7627
+ cb(error.message);
7628
+ }
7608
7629
  if (res === true) {
7609
7630
  cb();
7610
7631
  } else if (res === false) {
@@ -7725,10 +7746,7 @@ function useFormItemValidate(props, _rules) {
7725
7746
  } else {
7726
7747
  return rule.trigger === triggerVal;
7727
7748
  }
7728
- }).map((_a) => {
7729
- var rule = __objRest(_a, []);
7730
- return rule;
7731
- });
7749
+ }).map(({ ...rule }) => rule);
7732
7750
  };
7733
7751
  const onValidateSuccess = () => {
7734
7752
  validateState.value = "success";
@@ -7801,15 +7819,12 @@ defineComponent({
7801
7819
  props: formItemProps,
7802
7820
  setup(props, ctx) {
7803
7821
  const formContext = inject(FORM_TOKEN);
7804
- const _a = toRefs(props), {
7822
+ const {
7805
7823
  messageType: itemMessageType,
7806
7824
  popPosition: itemPopPosition,
7807
- showFeedback: itemShowFeedback
7808
- } = _a, otherProps = __objRest(_a, [
7809
- "messageType",
7810
- "popPosition",
7811
- "showFeedback"
7812
- ]);
7825
+ showFeedback: itemShowFeedback,
7826
+ ...otherProps
7827
+ } = toRefs(props);
7813
7828
  const {
7814
7829
  label,
7815
7830
  helpTips,
@@ -7839,7 +7854,8 @@ defineComponent({
7839
7854
  labelAlign: formContext.labelAlign
7840
7855
  }));
7841
7856
  provide(LABEL_DATA, labelData);
7842
- const context = reactive(__spreadProps(__spreadValues({}, otherProps), {
7857
+ const context = reactive({
7858
+ ...otherProps,
7843
7859
  showFeedback,
7844
7860
  messageType,
7845
7861
  popPosition,
@@ -7849,7 +7865,7 @@ defineComponent({
7849
7865
  validate,
7850
7866
  resetField,
7851
7867
  clearValidate
7852
- }));
7868
+ });
7853
7869
  provide(FORM_ITEM_TOKEN, context);
7854
7870
  ctx.expose({
7855
7871
  resetField,
@@ -7874,8 +7890,8 @@ defineComponent({
7874
7890
  "extra-info": extraInfo.value
7875
7891
  }, {
7876
7892
  default: () => {
7877
- var _a2, _b;
7878
- return [(_b = (_a2 = ctx.slots).default) == null ? void 0 : _b.call(_a2)];
7893
+ var _a, _b;
7894
+ return [(_b = (_a = ctx.slots).default) == null ? void 0 : _b.call(_a)];
7879
7895
  }
7880
7896
  })]);
7881
7897
  }
@@ -7948,10 +7964,11 @@ function useSelect(props, ctx, focus, blur, isSelectFocus, t) {
7948
7964
  return props.options.map((item) => {
7949
7965
  let option;
7950
7966
  if (typeof item === "object") {
7951
- option = __spreadValues({
7967
+ option = {
7952
7968
  name: item.name ? item.name : item.value + "",
7953
- _checked: false
7954
- }, item);
7969
+ _checked: false,
7970
+ ...item
7971
+ };
7955
7972
  } else {
7956
7973
  option = {
7957
7974
  name: item + "",
@@ -8000,18 +8017,14 @@ function useSelect(props, ctx, focus, blur, isSelectFocus, t) {
8000
8017
  }
8001
8018
  });
8002
8019
  };
8003
- const selectedOptions = ref([]);
8004
8020
  const filterQuery = ref("");
8005
- const inputValue = computed(() => {
8006
- var _a;
8021
+ const selectedOptions = computed(() => {
8007
8022
  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(",");
8023
+ return getInjectOptions(props.modelValue).filter((item) => item ? true : false);
8010
8024
  } 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) || "";
8025
+ return getInjectOptions([props.modelValue]).filter((item) => item ? true : false);
8013
8026
  }
8014
- return "";
8027
+ return [];
8015
8028
  });
8016
8029
  const onClick = function(e) {
8017
8030
  e.preventDefault();
@@ -8092,9 +8105,11 @@ function useSelect(props, ctx, focus, blur, isSelectFocus, t) {
8092
8105
  };
8093
8106
  const tagDelete = (data) => {
8094
8107
  let { modelValue } = props;
8095
- data._checked = !data._checked;
8096
8108
  const checkedItems = [];
8097
8109
  for (const child of injectOptions.value.values()) {
8110
+ if (data.value === child.value) {
8111
+ child._checked = false;
8112
+ }
8098
8113
  if (child._checked) {
8099
8114
  checkedItems.push(child.value);
8100
8115
  }
@@ -8177,7 +8192,6 @@ function useSelect(props, ctx, focus, blur, isSelectFocus, t) {
8177
8192
  isOpen,
8178
8193
  selectCls,
8179
8194
  mergeOptions,
8180
- inputValue,
8181
8195
  selectedOptions,
8182
8196
  filterQuery,
8183
8197
  emptyText,
@@ -8306,12 +8320,6 @@ const optionProps = {
8306
8320
  default: false
8307
8321
  }
8308
8322
  };
8309
- const selectContentProps = {
8310
- value: {
8311
- type: String,
8312
- default: ""
8313
- }
8314
- };
8315
8323
  const optionGroupProps = {
8316
8324
  label: {
8317
8325
  type: String
@@ -8360,7 +8368,8 @@ const commonProps = {
8360
8368
  default: "md"
8361
8369
  }
8362
8370
  };
8363
- const checkboxProps = __spreadProps(__spreadValues({}, commonProps), {
8371
+ const checkboxProps = {
8372
+ ...commonProps,
8364
8373
  checked: {
8365
8374
  type: Boolean,
8366
8375
  default: false
@@ -8390,8 +8399,9 @@ const checkboxProps = __spreadProps(__spreadValues({}, commonProps), {
8390
8399
  type: Boolean,
8391
8400
  default: false
8392
8401
  }
8393
- });
8394
- const checkboxGroupProps = __spreadProps(__spreadValues({}, commonProps), {
8402
+ };
8403
+ const checkboxGroupProps = {
8404
+ ...commonProps,
8395
8405
  modelValue: {
8396
8406
  type: Array,
8397
8407
  required: true
@@ -8428,7 +8438,7 @@ const checkboxGroupProps = __spreadProps(__spreadValues({}, commonProps), {
8428
8438
  type: String,
8429
8439
  default: ""
8430
8440
  }
8431
- });
8441
+ };
8432
8442
  const checkboxGroupInjectionKey = Symbol("d-checkbox-group");
8433
8443
  function useCheckbox(props, ctx) {
8434
8444
  const formContext = inject(FORM_TOKEN, void 0);
@@ -8704,9 +8714,10 @@ defineComponent({
8704
8714
  value: opt
8705
8715
  });
8706
8716
  } else if (typeof opt === "object") {
8707
- mergedOpt = Object.assign({}, defaultOpt, __spreadProps(__spreadValues({}, opt), {
8717
+ mergedOpt = Object.assign({}, defaultOpt, {
8718
+ ...opt,
8708
8719
  label: opt.name
8709
- }));
8720
+ });
8710
8721
  }
8711
8722
  return createVNode(Checkbox, mergedOpt, null);
8712
8723
  });
@@ -9013,7 +9024,7 @@ var Tag = defineComponent({
9013
9024
  };
9014
9025
  }
9015
9026
  });
9016
- function useSelectContent(props) {
9027
+ function useSelectContent() {
9017
9028
  const ns2 = useNamespace("select");
9018
9029
  const select2 = inject(SELECT_TOKEN);
9019
9030
  const formItemContext = inject(FORM_ITEM_TOKEN, void 0);
@@ -9034,8 +9045,16 @@ function useSelectContent(props) {
9034
9045
  return true;
9035
9046
  }
9036
9047
  });
9048
+ const displayInputValue = computed(() => {
9049
+ var _a;
9050
+ if (select2 == null ? void 0 : select2.selectedOptions) {
9051
+ 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) || "";
9052
+ } else {
9053
+ return "";
9054
+ }
9055
+ });
9037
9056
  const mergeClearable = computed(() => {
9038
- return !isSelectDisable.value && !!(select2 == null ? void 0 : select2.allowClear) && props.value.length > 0;
9057
+ return !isSelectDisable.value && !!(select2 == null ? void 0 : select2.allowClear) && (displayInputValue.value ? true : false);
9039
9058
  });
9040
9059
  const isDisabledTooltip = computed(() => {
9041
9060
  return !isSupportTagsTooltip.value || !!(select2 == null ? void 0 : select2.isOpen);
@@ -9053,7 +9072,7 @@ function useSelectContent(props) {
9053
9072
  });
9054
9073
  });
9055
9074
  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"));
9075
+ const placeholder = computed(() => displayInputValue.value ? "" : (select2 == null ? void 0 : select2.placeholder) || t("placeholder"));
9057
9076
  const isMultiple = computed(() => !!(select2 == null ? void 0 : select2.multiple));
9058
9077
  const handleClear = (e) => {
9059
9078
  e.preventDefault();
@@ -9091,6 +9110,7 @@ function useSelectContent(props) {
9091
9110
  tagSize,
9092
9111
  placeholder,
9093
9112
  isMultiple,
9113
+ displayInputValue,
9094
9114
  handleClear,
9095
9115
  tagDelete,
9096
9116
  onFocus,
@@ -9100,8 +9120,7 @@ function useSelectContent(props) {
9100
9120
  }
9101
9121
  var SelectContent = defineComponent({
9102
9122
  name: "SelectContent",
9103
- props: selectContentProps,
9104
- setup(props) {
9123
+ setup() {
9105
9124
  const formItemContext = inject(FORM_ITEM_TOKEN, void 0);
9106
9125
  const ns2 = useNamespace("select");
9107
9126
  const clearCls = computed(() => ({
@@ -9126,12 +9145,13 @@ var SelectContent = defineComponent({
9126
9145
  tagSize,
9127
9146
  placeholder,
9128
9147
  isMultiple,
9148
+ displayInputValue,
9129
9149
  handleClear,
9130
9150
  tagDelete,
9131
9151
  onFocus,
9132
9152
  onBlur,
9133
9153
  queryFilter
9134
- } = useSelectContent(props);
9154
+ } = useSelectContent();
9135
9155
  return () => {
9136
9156
  return createVNode("div", {
9137
9157
  "class": selectionCls.value
@@ -9194,7 +9214,7 @@ var SelectContent = defineComponent({
9194
9214
  "onBlur": onBlur
9195
9215
  }, null)])]) : createVNode("input", {
9196
9216
  "ref": "input",
9197
- "value": props.value,
9217
+ "value": displayInputValue.value,
9198
9218
  "type": "text",
9199
9219
  "class": inputCls.value,
9200
9220
  "placeholder": placeholder.value,
@@ -9258,7 +9278,6 @@ var Select = defineComponent({
9258
9278
  isOpen,
9259
9279
  selectCls,
9260
9280
  mergeOptions,
9261
- inputValue,
9262
9281
  selectedOptions,
9263
9282
  filterQuery,
9264
9283
  emptyText,
@@ -9295,7 +9314,8 @@ var Select = defineComponent({
9295
9314
  onMounted(() => {
9296
9315
  isRender.value = true;
9297
9316
  });
9298
- provide(SELECT_TOKEN, reactive(__spreadProps(__spreadValues({}, toRefs(props)), {
9317
+ provide(SELECT_TOKEN, reactive({
9318
+ ...toRefs(props),
9299
9319
  selectDisabled,
9300
9320
  selectSize,
9301
9321
  isOpen,
@@ -9308,7 +9328,7 @@ var Select = defineComponent({
9308
9328
  onFocus,
9309
9329
  onBlur,
9310
9330
  debounceQueryFilter
9311
- })));
9331
+ }));
9312
9332
  return () => {
9313
9333
  return createVNode("div", {
9314
9334
  "class": selectCls.value,
@@ -9317,8 +9337,7 @@ var Select = defineComponent({
9317
9337
  }, [createVNode("div", {
9318
9338
  "ref": originRef
9319
9339
  }, [createVNode(SelectContent, {
9320
- "ref": selectRef,
9321
- "value": inputValue.value
9340
+ "ref": selectRef
9322
9341
  }, null)]), createVNode(Transition, {
9323
9342
  "name": "fade"
9324
9343
  }, {
@@ -9353,8 +9372,8 @@ var Select = defineComponent({
9353
9372
  "modelValue": false,
9354
9373
  "label": filterQuery.value
9355
9374
  }, 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,
9375
+ }), ((_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, {
9376
+ "key": item.value,
9358
9377
  "value": item.value,
9359
9378
  "name": item.name,
9360
9379
  "disabled": isDisabled(item)
@@ -9378,7 +9397,9 @@ defineComponent({
9378
9397
  props: optionGroupProps,
9379
9398
  setup(props, ctx) {
9380
9399
  const ns2 = useNamespace("select");
9381
- provide(OPTION_GROUP_TOKEN, reactive(__spreadValues({}, toRefs(props))));
9400
+ provide(OPTION_GROUP_TOKEN, reactive({
9401
+ ...toRefs(props)
9402
+ }));
9382
9403
  return () => {
9383
9404
  var _a;
9384
9405
  return createVNode("ul", {