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
@@ -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 { computed, ref, watch, defineComponent, toRefs, createVNode, resolveDynamicComponent, mergeProps, provide, reactive, onUnmounted, Transition, unref, nextTick, Comment, Text, h, Fragment, inject, withDirectives, cloneVNode, onMounted, Teleport, createTextVNode, onBeforeUnmount, getCurrentInstance, shallowRef, resolveComponent } from "vue";
1
+ import { computed, ref, watch, defineComponent, toRefs, createVNode, resolveDynamicComponent, mergeProps, provide, reactive, onUnmounted, Transition, nextTick, unref, Comment, Text, Fragment, h, inject, withDirectives, cloneVNode, onMounted, Teleport, createTextVNode, onBeforeUnmount, getCurrentInstance, shallowRef } from "vue";
33
2
  import { offset, autoPlacement, arrow, shift, computePosition } from "@floating-ui/dom";
34
3
  const searchProps = {
35
4
  size: {
@@ -852,7 +821,7 @@ var lodash = { exports: {} };
852
821
  var objectCtorString = funcToString.call(Object2);
853
822
  var oldDash = root._;
854
823
  var reIsNative = RegExp2("^" + funcToString.call(hasOwnProperty).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
855
- 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;
824
+ 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;
856
825
  var defineProperty = function() {
857
826
  try {
858
827
  var func = getNative(Object2, "defineProperty");
@@ -862,11 +831,11 @@ var lodash = { exports: {} };
862
831
  }
863
832
  }();
864
833
  var ctxClearTimeout = context.clearTimeout !== root.clearTimeout && context.clearTimeout, ctxNow = Date2 && Date2.now !== root.Date.now && Date2.now, ctxSetTimeout = context.setTimeout !== root.setTimeout && context.setTimeout;
865
- 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;
866
- 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");
867
- var metaMap = WeakMap2 && new WeakMap2();
834
+ 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;
835
+ 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");
836
+ var metaMap = WeakMap && new WeakMap();
868
837
  var realNames = {};
869
- var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map2), promiseCtorString = toSource(Promise2), setCtorString = toSource(Set), weakMapCtorString = toSource(WeakMap2);
838
+ var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map2), promiseCtorString = toSource(Promise2), setCtorString = toSource(Set2), weakMapCtorString = toSource(WeakMap);
870
839
  var symbolProto = Symbol2 ? Symbol2.prototype : undefined$1, symbolValueOf = symbolProto ? symbolProto.valueOf : undefined$1, symbolToString = symbolProto ? symbolProto.toString : undefined$1;
871
840
  function lodash2(value) {
872
841
  if (isObjectLike(value) && !isArray(value) && !(value instanceof LazyWrapper)) {
@@ -1321,7 +1290,7 @@ var lodash = { exports: {} };
1321
1290
  if (typeof func != "function") {
1322
1291
  throw new TypeError2(FUNC_ERROR_TEXT);
1323
1292
  }
1324
- return setTimeout(function() {
1293
+ return setTimeout2(function() {
1325
1294
  func.apply(undefined$1, args);
1326
1295
  }, wait);
1327
1296
  }
@@ -2114,7 +2083,7 @@ var lodash = { exports: {} };
2114
2083
  }
2115
2084
  function cloneArrayBuffer(arrayBuffer) {
2116
2085
  var result2 = new arrayBuffer.constructor(arrayBuffer.byteLength);
2117
- new Uint8Array2(result2).set(new Uint8Array2(arrayBuffer));
2086
+ new Uint8Array(result2).set(new Uint8Array(arrayBuffer));
2118
2087
  return result2;
2119
2088
  }
2120
2089
  function cloneDataView(dataView, isDeep) {
@@ -2558,8 +2527,8 @@ var lodash = { exports: {} };
2558
2527
  return func(number4);
2559
2528
  };
2560
2529
  }
2561
- var createSet = !(Set && 1 / setToArray(new Set([, -0]))[1] == INFINITY) ? noop : function(values2) {
2562
- return new Set(values2);
2530
+ var createSet = !(Set2 && 1 / setToArray(new Set2([, -0]))[1] == INFINITY) ? noop : function(values2) {
2531
+ return new Set2(values2);
2563
2532
  };
2564
2533
  function createToPairs(keysFunc) {
2565
2534
  return function(object4) {
@@ -2696,7 +2665,7 @@ var lodash = { exports: {} };
2696
2665
  object4 = object4.buffer;
2697
2666
  other = other.buffer;
2698
2667
  case arrayBufferTag:
2699
- if (object4.byteLength != other.byteLength || !equalFunc(new Uint8Array2(object4), new Uint8Array2(other))) {
2668
+ if (object4.byteLength != other.byteLength || !equalFunc(new Uint8Array(object4), new Uint8Array(other))) {
2700
2669
  return false;
2701
2670
  }
2702
2671
  return true;
@@ -2858,7 +2827,7 @@ var lodash = { exports: {} };
2858
2827
  return result2;
2859
2828
  };
2860
2829
  var getTag = baseGetTag;
2861
- 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) {
2830
+ 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) {
2862
2831
  getTag = function(value) {
2863
2832
  var result2 = baseGetTag(value), Ctor = result2 == objectTag ? value.constructor : undefined$1, ctorString = Ctor ? toSource(Ctor) : "";
2864
2833
  if (ctorString) {
@@ -3130,7 +3099,7 @@ var lodash = { exports: {} };
3130
3099
  return object4[key];
3131
3100
  }
3132
3101
  var setData = shortOut(baseSetData);
3133
- var setTimeout = ctxSetTimeout || function(func, wait) {
3102
+ var setTimeout2 = ctxSetTimeout || function(func, wait) {
3134
3103
  return root.setTimeout(func, wait);
3135
3104
  };
3136
3105
  var setToString = shortOut(baseSetToString);
@@ -3922,7 +3891,7 @@ var lodash = { exports: {} };
3922
3891
  }
3923
3892
  function leadingEdge(time) {
3924
3893
  lastInvokeTime = time;
3925
- timerId = setTimeout(timerExpired, wait);
3894
+ timerId = setTimeout2(timerExpired, wait);
3926
3895
  return leading ? invokeFunc(time) : result2;
3927
3896
  }
3928
3897
  function remainingWait(time) {
@@ -3938,7 +3907,7 @@ var lodash = { exports: {} };
3938
3907
  if (shouldInvoke(time)) {
3939
3908
  return trailingEdge(time);
3940
3909
  }
3941
- timerId = setTimeout(timerExpired, remainingWait(time));
3910
+ timerId = setTimeout2(timerExpired, remainingWait(time));
3942
3911
  }
3943
3912
  function trailingEdge(time) {
3944
3913
  timerId = undefined$1;
@@ -3969,12 +3938,12 @@ var lodash = { exports: {} };
3969
3938
  }
3970
3939
  if (maxing) {
3971
3940
  clearTimeout(timerId);
3972
- timerId = setTimeout(timerExpired, wait);
3941
+ timerId = setTimeout2(timerExpired, wait);
3973
3942
  return invokeFunc(lastCallTime);
3974
3943
  }
3975
3944
  }
3976
3945
  if (timerId === undefined$1) {
3977
- timerId = setTimeout(timerExpired, wait);
3946
+ timerId = setTimeout2(timerExpired, wait);
3978
3947
  }
3979
3948
  return result2;
3980
3949
  }
@@ -5909,7 +5878,10 @@ function useFormValidation(itemContexts) {
5909
5878
  try {
5910
5879
  await field.validate("");
5911
5880
  } catch (err) {
5912
- errors = __spreadValues(__spreadValues({}, errors), err);
5881
+ errors = {
5882
+ ...errors,
5883
+ ...err
5884
+ };
5913
5885
  }
5914
5886
  }
5915
5887
  if (!Object.keys(errors).length) {
@@ -5966,11 +5938,12 @@ defineComponent({
5966
5938
  }, {
5967
5939
  deep: true
5968
5940
  });
5969
- provide(FORM_TOKEN, reactive(__spreadProps(__spreadValues({}, toRefs(props)), {
5941
+ provide(FORM_TOKEN, reactive({
5942
+ ...toRefs(props),
5970
5943
  emit: ctx.emit,
5971
5944
  addItemContext,
5972
5945
  removeItemContext
5973
- })));
5946
+ }));
5974
5947
  ctx.expose({
5975
5948
  validate,
5976
5949
  validateFields,
@@ -6808,7 +6781,7 @@ var FormControl = defineComponent({
6808
6781
  }
6809
6782
  });
6810
6783
  function _extends() {
6811
- _extends = Object.assign || function(target) {
6784
+ _extends = Object.assign ? Object.assign.bind() : function(target) {
6812
6785
  for (var i = 1; i < arguments.length; i++) {
6813
6786
  var source = arguments[i];
6814
6787
  for (var key in source) {
@@ -6827,13 +6800,13 @@ function _inheritsLoose(subClass, superClass) {
6827
6800
  _setPrototypeOf(subClass, superClass);
6828
6801
  }
6829
6802
  function _getPrototypeOf(o) {
6830
- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf2(o2) {
6803
+ _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf2(o2) {
6831
6804
  return o2.__proto__ || Object.getPrototypeOf(o2);
6832
6805
  };
6833
6806
  return _getPrototypeOf(o);
6834
6807
  }
6835
6808
  function _setPrototypeOf(o, p) {
6836
- _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf2(o2, p2) {
6809
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o2, p2) {
6837
6810
  o2.__proto__ = p2;
6838
6811
  return o2;
6839
6812
  };
@@ -6856,7 +6829,7 @@ function _isNativeReflectConstruct() {
6856
6829
  }
6857
6830
  function _construct(Parent, args, Class) {
6858
6831
  if (_isNativeReflectConstruct()) {
6859
- _construct = Reflect.construct;
6832
+ _construct = Reflect.construct.bind();
6860
6833
  } else {
6861
6834
  _construct = function _construct2(Parent2, args2, Class2) {
6862
6835
  var a = [null];
@@ -7134,9 +7107,45 @@ var whitespace = function whitespace2(rule, value, source, errors, options) {
7134
7107
  errors.push(format(options.messages.whitespace, rule.fullField));
7135
7108
  }
7136
7109
  };
7110
+ var urlReg;
7111
+ var getUrlRegex = function() {
7112
+ if (urlReg) {
7113
+ return urlReg;
7114
+ }
7115
+ var word = "[a-fA-F\\d:]";
7116
+ var b = function b2(options) {
7117
+ return options && options.includeBoundaries ? "(?:(?<=\\s|^)(?=" + word + ")|(?<=" + word + ")(?=\\s|$))" : "";
7118
+ };
7119
+ 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}";
7120
+ var v6seg = "[a-fA-F\\d]{1,4}";
7121
+ 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();
7122
+ var v46Exact = new RegExp("(?:^" + v4 + "$)|(?:^" + v6 + "$)");
7123
+ var v4exact = new RegExp("^" + v4 + "$");
7124
+ var v6exact = new RegExp("^" + v6 + "$");
7125
+ var ip = function ip2(options) {
7126
+ return options && options.exact ? v46Exact : new RegExp("(?:" + b(options) + v4 + b(options) + ")|(?:" + b(options) + v6 + b(options) + ")", "g");
7127
+ };
7128
+ ip.v4 = function(options) {
7129
+ return options && options.exact ? v4exact : new RegExp("" + b(options) + v4 + b(options), "g");
7130
+ };
7131
+ ip.v6 = function(options) {
7132
+ return options && options.exact ? v6exact : new RegExp("" + b(options) + v6 + b(options), "g");
7133
+ };
7134
+ var protocol = "(?:(?:[a-z]+:)?//)";
7135
+ var auth = "(?:\\S+(?::\\S*)?@)?";
7136
+ var ipv4 = ip.v4().source;
7137
+ var ipv6 = ip.v6().source;
7138
+ var host = "(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)";
7139
+ var domain = "(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*";
7140
+ var tld = "(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))";
7141
+ var port = "(?::\\d{2,5})?";
7142
+ var path = '(?:[/?#][^\\s"]*)?';
7143
+ var regex = "(?:" + protocol + "|www\\.)" + auth + "(?:localhost|" + ipv4 + "|" + ipv6 + "|" + host + domain + tld + ")" + port + path;
7144
+ urlReg = new RegExp("(?:^" + regex + "$)", "i");
7145
+ return urlReg;
7146
+ };
7137
7147
  var pattern$2 = {
7138
7148
  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,}))$/,
7139
- 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"),
7140
7149
  hex: /^#?([a-f0-9]{6}|[a-f0-9]{3})$/i
7141
7150
  };
7142
7151
  var types = {
@@ -7178,7 +7187,7 @@ var types = {
7178
7187
  return typeof value === "string" && value.length <= 320 && !!value.match(pattern$2.email);
7179
7188
  },
7180
7189
  url: function url(value) {
7181
- return typeof value === "string" && value.length <= 2048 && !!value.match(pattern$2.url);
7190
+ return typeof value === "string" && value.length <= 2048 && !!value.match(getUrlRegex());
7182
7191
  },
7183
7192
  hex: function hex(value) {
7184
7193
  return typeof value === "string" && !!value.match(pattern$2.hex);
@@ -7753,7 +7762,17 @@ var Schema = /* @__PURE__ */ function() {
7753
7762
  if (rule.asyncValidator) {
7754
7763
  res = rule.asyncValidator(rule, data.value, cb, data.source, options);
7755
7764
  } else if (rule.validator) {
7756
- res = rule.validator(rule, data.value, cb, data.source, options);
7765
+ try {
7766
+ res = rule.validator(rule, data.value, cb, data.source, options);
7767
+ } catch (error) {
7768
+ console.error == null ? void 0 : console.error(error);
7769
+ if (!options.suppressValidatorError) {
7770
+ setTimeout(function() {
7771
+ throw error;
7772
+ }, 0);
7773
+ }
7774
+ cb(error.message);
7775
+ }
7757
7776
  if (res === true) {
7758
7777
  cb();
7759
7778
  } else if (res === false) {
@@ -7874,10 +7893,7 @@ function useFormItemValidate(props, _rules) {
7874
7893
  } else {
7875
7894
  return rule.trigger === triggerVal;
7876
7895
  }
7877
- }).map((_a) => {
7878
- var rule = __objRest(_a, []);
7879
- return rule;
7880
- });
7896
+ }).map(({ ...rule }) => rule);
7881
7897
  };
7882
7898
  const onValidateSuccess = () => {
7883
7899
  validateState.value = "success";
@@ -7950,15 +7966,12 @@ defineComponent({
7950
7966
  props: formItemProps,
7951
7967
  setup(props, ctx) {
7952
7968
  const formContext = inject(FORM_TOKEN);
7953
- const _a = toRefs(props), {
7969
+ const {
7954
7970
  messageType: itemMessageType,
7955
7971
  popPosition: itemPopPosition,
7956
- showFeedback: itemShowFeedback
7957
- } = _a, otherProps = __objRest(_a, [
7958
- "messageType",
7959
- "popPosition",
7960
- "showFeedback"
7961
- ]);
7972
+ showFeedback: itemShowFeedback,
7973
+ ...otherProps
7974
+ } = toRefs(props);
7962
7975
  const {
7963
7976
  label,
7964
7977
  helpTips,
@@ -7988,7 +8001,8 @@ defineComponent({
7988
8001
  labelAlign: formContext.labelAlign
7989
8002
  }));
7990
8003
  provide(LABEL_DATA, labelData);
7991
- const context = reactive(__spreadProps(__spreadValues({}, otherProps), {
8004
+ const context = reactive({
8005
+ ...otherProps,
7992
8006
  showFeedback,
7993
8007
  messageType,
7994
8008
  popPosition,
@@ -7998,7 +8012,7 @@ defineComponent({
7998
8012
  validate,
7999
8013
  resetField,
8000
8014
  clearValidate
8001
- }));
8015
+ });
8002
8016
  provide(FORM_ITEM_TOKEN, context);
8003
8017
  ctx.expose({
8004
8018
  resetField,
@@ -8023,8 +8037,8 @@ defineComponent({
8023
8037
  "extra-info": extraInfo.value
8024
8038
  }, {
8025
8039
  default: () => {
8026
- var _a2, _b;
8027
- return [(_b = (_a2 = ctx.slots).default) == null ? void 0 : _b.call(_a2)];
8040
+ var _a, _b;
8041
+ return [(_b = (_a = ctx.slots).default) == null ? void 0 : _b.call(_a)];
8028
8042
  }
8029
8043
  })]);
8030
8044
  }
@@ -8062,7 +8076,7 @@ function useInputRender(props, ctx) {
8062
8076
  const slots = ctx.slots;
8063
8077
  const inputDisabled = computed(() => disabled.value || (formContext == null ? void 0 : formContext.disabled));
8064
8078
  const inputSize = computed(() => (size == null ? void 0 : size.value) || (formContext == null ? void 0 : formContext.size) || "");
8065
- const _a = ctx.attrs, { style, class: customClass } = _a, otherAttrs = __objRest(_a, ["style", "class"]);
8079
+ const { style, class: customClass, ...otherAttrs } = ctx.attrs;
8066
8080
  const customStyle = { style };
8067
8081
  const wrapClasses = computed(() => ({
8068
8082
  [ns2.e("wrapper")]: true,
@@ -8130,6 +8144,155 @@ function useInputFunction(input2) {
8130
8144
  return { select, focus, blur };
8131
8145
  }
8132
8146
  var input = "";
8147
+ function deepAssign(...objects) {
8148
+ const isObject2 = (obj) => obj && typeof obj === "object";
8149
+ return objects.reduce((prev, from) => {
8150
+ Object.keys(from).forEach((key) => {
8151
+ const pVal = prev[key];
8152
+ const oVal = from[key];
8153
+ if (Array.isArray(pVal) && Array.isArray(oVal)) {
8154
+ prev[key] = Array.from(/* @__PURE__ */ new Set([...oVal, ...pVal]));
8155
+ } else if (isObject2(pVal) && isObject2(oVal)) {
8156
+ prev[key] = deepAssign(pVal, oVal);
8157
+ } else {
8158
+ prev[key] = oVal;
8159
+ }
8160
+ });
8161
+ return prev;
8162
+ }, {});
8163
+ }
8164
+ var zhCN = {
8165
+ pagination: {
8166
+ totalItemText: "\u6240\u6709\u6761\u76EE",
8167
+ goToText: "\u8DF3\u81F3"
8168
+ },
8169
+ accordion: {
8170
+ loading: "\u52A0\u8F7D\u4E2D",
8171
+ noData: "\u6CA1\u6709\u6570\u636E"
8172
+ },
8173
+ autoCompleteDropdown: {
8174
+ latestInput: "\u6700\u8FD1\u8F93\u5165"
8175
+ },
8176
+ cascaderList: {
8177
+ noData: "\u6CA1\u6709\u6570\u636E"
8178
+ },
8179
+ colorPicker: {
8180
+ foundationPanel: "\u57FA\u7840\u9762\u677F",
8181
+ advancedPanel: "\u9AD8\u7EA7\u9762\u677F"
8182
+ },
8183
+ datePickerPro: {
8184
+ ok: "\u786E\u5B9A",
8185
+ placeholder: "\u8BF7\u9009\u62E9\u65E5\u671F",
8186
+ month1: "1\u6708",
8187
+ month2: "2\u6708",
8188
+ month3: "3\u6708",
8189
+ month4: "4\u6708",
8190
+ month5: "5\u6708",
8191
+ month6: "6\u6708",
8192
+ month7: "7\u6708",
8193
+ month8: "8\u6708",
8194
+ month9: "9\u6708",
8195
+ month10: "10\u6708",
8196
+ month11: "11\u6708",
8197
+ month12: "12\u6708",
8198
+ year: "\u5E74",
8199
+ startPlaceholder: "\u8BF7\u9009\u62E9\u5F00\u59CB\u65E5\u671F",
8200
+ endPlaceholder: "\u8BF7\u9009\u62E9\u7ED3\u675F\u65E5\u671F",
8201
+ getWeekDays() {
8202
+ return ["\u65E5", "\u4E00", "\u4E8C", "\u4E09", "\u56DB", "\u4E94", "\u516D"];
8203
+ },
8204
+ getTimeArr() {
8205
+ return ["\u65F6", "\u5206", "\u79D2"];
8206
+ },
8207
+ getYearMonthStr(year, month) {
8208
+ return `${year}\u5E74${month}\u6708`;
8209
+ }
8210
+ },
8211
+ editableSelect: {
8212
+ noRelatedRecords: "\u627E\u4E0D\u5230\u76F8\u5173\u8BB0\u5F55",
8213
+ noData: "\u6CA1\u6709\u6570\u636E"
8214
+ },
8215
+ input: {
8216
+ placeholder: "\u8BF7\u8F93\u5165"
8217
+ },
8218
+ splitterBar: {
8219
+ collapse: "\u6536\u8D77",
8220
+ expand: "\u5C55\u5F00"
8221
+ },
8222
+ stepsGuide: {
8223
+ previous: "\u4E0A\u4E00\u6B65",
8224
+ continue: "\u6211\u77E5\u9053\u5566\uFF0C\u7EE7\u7EED",
8225
+ ok: "\u6211\u77E5\u9053\u5566"
8226
+ },
8227
+ table: {
8228
+ selectAll: "\u5168\u9009",
8229
+ ok: "\u786E\u5B9A"
8230
+ },
8231
+ timePopup: {
8232
+ ok: "\u786E\u5B9A"
8233
+ },
8234
+ transfer: {
8235
+ unit: "\u9879",
8236
+ panelUnit: "\u9879",
8237
+ headerUnit: "\u9879",
8238
+ noData: "\u6682\u65E0\u6570\u636E",
8239
+ placeholder: "\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22"
8240
+ },
8241
+ tree: {
8242
+ loading: "\u52A0\u8F7D\u4E2D",
8243
+ newNode: "\u65B0\u8282\u70B9",
8244
+ selectPlaceholder: "\u8BF7\u9009\u62E9"
8245
+ },
8246
+ upload: {
8247
+ placeholder: "\u9009\u62E9\u6587\u4EF6",
8248
+ getExistSameNameFilesMsg(sameNames) {
8249
+ return `\u60A8\u4E0A\u4F20\u7684 "${sameNames}" \u5B58\u5728\u91CD\u540D\u6587\u4EF6, \u8BF7\u91CD\u65B0\u9009\u62E9\u6587\u4EF6`;
8250
+ },
8251
+ getAllFilesBeyondMaximalFileSizeMsg(maximalSize) {
8252
+ return `\u6700\u5927\u652F\u6301\u4E0A\u4F20${maximalSize}MB\u7684\u6587\u4EF6, \u60A8\u672C\u6B21\u4E0A\u4F20\u7684\u6240\u6709\u6587\u4EF6\u8D85\u8FC7\u53EF\u4E0A\u4F20\u6587\u4EF6\u5927\u5C0F`;
8253
+ },
8254
+ getBeyondMaximalFileSizeMsg(filename, maximalSize) {
8255
+ return `\u6700\u5927\u652F\u6301\u4E0A\u4F20${maximalSize}MB\u7684\u6587\u4EF6, \u60A8\u4E0A\u4F20\u7684\u6587\u4EF6"${filename}"\u8D85\u8FC7\u53EF\u4E0A\u4F20\u6587\u4EF6\u5927\u5C0F`;
8256
+ },
8257
+ getNotAllowedFileTypeMsg(filename, scope) {
8258
+ return `\u652F\u6301\u7684\u6587\u4EF6\u7C7B\u578B: "${scope}", \u60A8\u4E0A\u4F20\u7684\u6587\u4EF6"${filename}"\u4E0D\u5728\u5141\u8BB8\u8303\u56F4\u5185\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9\u6587\u4EF6`;
8259
+ }
8260
+ },
8261
+ search: {
8262
+ placeholder: "\u8BF7\u8F93\u5165\u5173\u952E\u5B57"
8263
+ },
8264
+ select: {
8265
+ placeholder: "\u8BF7\u9009\u62E9",
8266
+ noDataText: "\u65E0\u6570\u636E",
8267
+ noMatchText: "\u627E\u4E0D\u5230\u76F8\u5173\u8BB0\u5F55",
8268
+ loadingText: "\u52A0\u8F7D\u4E2D..."
8269
+ },
8270
+ tagInput: {
8271
+ maxTagsText: "\u5DF2\u8FBE\u5230\u6700\u5927\u4E2A\u6570\uFF1A"
8272
+ },
8273
+ timeSelect: {
8274
+ placeholder: "\u8BF7\u9009\u62E9\u65F6\u95F4"
8275
+ }
8276
+ };
8277
+ const lang = ref("zh-CN");
8278
+ let langMessages = reactive({
8279
+ [lang.value]: zhCN
8280
+ });
8281
+ const Locale = {
8282
+ messages() {
8283
+ return langMessages[lang.value];
8284
+ },
8285
+ lang() {
8286
+ return lang.value;
8287
+ },
8288
+ use(newLang, newMessages2) {
8289
+ lang.value = newLang;
8290
+ this.add({ [newLang]: newMessages2 });
8291
+ },
8292
+ add(newMessages2 = {}) {
8293
+ langMessages = deepAssign(langMessages, newMessages2);
8294
+ }
8295
+ };
8133
8296
  const camelize = (name) => name.substring(1).replace(/^\S/, (s) => s.toLocaleLowerCase());
8134
8297
  function get(object4, path) {
8135
8298
  const keys = path.split(".");
@@ -8143,7 +8306,8 @@ function get(object4, path) {
8143
8306
  function createI18nTranslate(name, app, newPrefix) {
8144
8307
  const prefix = newPrefix || camelize(name) + ".";
8145
8308
  return (path) => {
8146
- const messages2 = app == null ? void 0 : app.appContext.config.globalProperties.langMessages.value;
8309
+ var _a;
8310
+ const messages2 = ((_a = app == null ? void 0 : app.appContext.config.globalProperties.langMessages) == null ? void 0 : _a.value) || Locale.messages();
8147
8311
  const message = get(messages2, prefix + path) || get(messages2, path);
8148
8312
  return message;
8149
8313
  };
@@ -8251,6 +8415,19 @@ var DInput = defineComponent({
8251
8415
  };
8252
8416
  }
8253
8417
  });
8418
+ var iconGroup = "";
8419
+ defineComponent({
8420
+ name: "DIconGroup",
8421
+ setup(_, ctx) {
8422
+ const ns2 = useNamespace("icon-group");
8423
+ return () => {
8424
+ var _a, _b;
8425
+ return createVNode("div", {
8426
+ "class": ns2.b()
8427
+ }, [(_b = (_a = ctx.slots).default) == null ? void 0 : _b.call(_a)]);
8428
+ };
8429
+ }
8430
+ });
8254
8431
  var search = "";
8255
8432
  var Search = defineComponent({
8256
8433
  name: "DSearch",
@@ -8302,21 +8479,21 @@ var Search = defineComponent({
8302
8479
  }, [props.iconPosition === "left" && createVNode("div", {
8303
8480
  "class": ns2.e("icon"),
8304
8481
  "onClick": onClickHandle
8305
- }, [createVNode(resolveComponent("d-icon"), {
8482
+ }, [createVNode(Icon, {
8306
8483
  "name": "search",
8307
8484
  "size": "inherit",
8308
8485
  "key": "search"
8309
8486
  }, null)]), createVNode(DInput, inputProps2, null), clearIconShow.value && createVNode("div", {
8310
8487
  "class": ns2.e("clear"),
8311
8488
  "onClick": onClearHandle
8312
- }, [createVNode(resolveComponent("d-icon"), {
8489
+ }, [createVNode(Icon, {
8313
8490
  "name": "close",
8314
8491
  "size": "inherit",
8315
8492
  "key": "close"
8316
8493
  }, null)]), props.iconPosition === "right" && createVNode("div", {
8317
8494
  "class": ns2.e("icon"),
8318
8495
  "onClick": onClickHandle
8319
- }, [createVNode(resolveComponent("d-icon"), {
8496
+ }, [createVNode(Icon, {
8320
8497
  "name": "search",
8321
8498
  "size": "inherit",
8322
8499
  "key": "search"