vue-devui 1.0.0-rc.12 → 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 (130) hide show
  1. package/README.md +161 -149
  2. package/alert/index.umd.js +1 -1
  3. package/auto-complete/index.es.js +243 -83
  4. package/auto-complete/index.umd.js +29 -18
  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 +23 -43
  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 +94 -77
  13. package/checkbox/index.umd.js +26 -15
  14. package/checkbox/style.css +1 -1
  15. package/collapse/index.es.js +3 -21
  16. package/collapse/index.umd.js +1 -1
  17. package/countdown/index.umd.js +1 -1
  18. package/date-picker-pro/index.es.js +1423 -248
  19. package/date-picker-pro/index.umd.js +25 -14
  20. package/date-picker-pro/style.css +1 -1
  21. package/drawer/index.es.js +4 -17
  22. package/drawer/index.umd.js +1 -1
  23. package/dropdown/index.es.js +12 -23
  24. package/dropdown/index.umd.js +1 -1
  25. package/editable-select/index.es.js +260 -105
  26. package/editable-select/index.umd.js +1 -1
  27. package/editable-select/style.css +1 -1
  28. package/form/index.es.js +85 -71
  29. package/form/index.umd.js +21 -10
  30. package/fullscreen/index.umd.js +1 -1
  31. package/grid/index.es.js +7 -20
  32. package/grid/index.umd.js +1 -1
  33. package/icon/index.es.js +2 -1
  34. package/icon/index.umd.js +1 -1
  35. package/icon/style.css +1 -1
  36. package/image-preview/index.es.js +12 -23
  37. package/image-preview/index.umd.js +1 -1
  38. package/image-preview/style.css +1 -1
  39. package/input/index.es.js +241 -76
  40. package/input/index.umd.js +27 -16
  41. package/input/style.css +1 -1
  42. package/input-number/index.es.js +2 -20
  43. package/input-number/index.umd.js +1 -1
  44. package/layout/index.es.js +1 -1
  45. package/layout/index.umd.js +1 -1
  46. package/loading/index.es.js +15 -38
  47. package/loading/index.umd.js +1 -1
  48. package/message/index.d.ts +7 -0
  49. package/message/index.es.js +534 -0
  50. package/message/index.umd.js +1 -0
  51. package/message/package.json +7 -0
  52. package/message/style.css +1 -0
  53. package/modal/index.es.js +13 -44
  54. package/modal/index.umd.js +1 -1
  55. package/modal/style.css +1 -1
  56. package/notification/index.es.js +45 -54
  57. package/notification/index.umd.js +1 -1
  58. package/notification/style.css +1 -1
  59. package/nuxt/components/Message.js +3 -0
  60. package/nuxt/components/animationInjectionKey.js +3 -0
  61. package/nuxt/components/messageProps.js +3 -0
  62. package/nuxt/components/roundInjectionKey.js +3 -0
  63. package/nuxt/components/skeletonItemProps.js +3 -0
  64. package/overlay/index.es.js +1 -1
  65. package/overlay/index.umd.js +1 -1
  66. package/package.json +2 -2
  67. package/pagination/index.es.js +152 -2
  68. package/pagination/index.umd.js +1 -1
  69. package/panel/index.umd.js +1 -1
  70. package/popover/index.es.js +1 -1
  71. package/popover/index.umd.js +4 -4
  72. package/progress/index.umd.js +3 -3
  73. package/radio/index.es.js +91 -75
  74. package/radio/index.umd.js +28 -17
  75. package/radio/style.css +1 -1
  76. package/rate/index.umd.js +1 -1
  77. package/result/index.es.js +2 -1
  78. package/result/index.umd.js +1 -1
  79. package/result/style.css +1 -1
  80. package/ripple/index.es.js +5 -18
  81. package/ripple/index.umd.js +1 -1
  82. package/search/index.es.js +258 -80
  83. package/search/index.umd.js +27 -16
  84. package/search/style.css +1 -1
  85. package/select/index.es.js +352 -146
  86. package/select/index.umd.js +28 -17
  87. package/select/style.css +1 -1
  88. package/skeleton/index.es.js +87 -261
  89. package/skeleton/index.umd.js +1 -1
  90. package/skeleton/style.css +1 -1
  91. package/slider/index.umd.js +1 -1
  92. package/splitter/index.es.js +175 -32
  93. package/splitter/index.umd.js +13 -13
  94. package/statistic/index.es.js +0 -21
  95. package/statistic/index.umd.js +1 -1
  96. package/status/index.umd.js +1 -1
  97. package/steps/index.es.js +2 -1
  98. package/steps/index.umd.js +1 -1
  99. package/steps/style.css +1 -1
  100. package/style.css +1 -1
  101. package/switch/index.es.js +85 -71
  102. package/switch/index.umd.js +25 -14
  103. package/table/index.es.js +465 -130
  104. package/table/index.umd.js +24 -13
  105. package/table/style.css +1 -1
  106. package/tabs/index.es.js +21 -11
  107. package/tabs/index.umd.js +1 -1
  108. package/tabs/style.css +1 -1
  109. package/tag/index.umd.js +1 -1
  110. package/textarea/index.es.js +88 -72
  111. package/textarea/index.umd.js +26 -15
  112. package/time-picker/index.es.js +289 -116
  113. package/time-picker/index.umd.js +27 -16
  114. package/time-picker/style.css +1 -1
  115. package/time-select/index.es.js +352 -146
  116. package/time-select/index.umd.js +26 -15
  117. package/time-select/style.css +1 -1
  118. package/timeline/index.es.js +2 -1
  119. package/timeline/index.umd.js +1 -1
  120. package/timeline/style.css +1 -1
  121. package/tooltip/index.es.js +1 -1
  122. package/tooltip/index.umd.js +4 -4
  123. package/tree/index.es.js +515 -144
  124. package/tree/index.umd.js +26 -15
  125. package/tree/style.css +1 -1
  126. package/upload/index.es.js +197 -81
  127. package/upload/index.umd.js +1 -1
  128. package/upload/style.css +1 -1
  129. package/vue-devui.es.js +13710 -12898
  130. package/vue-devui.umd.js +30 -19
@@ -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
  }
@@ -5685,7 +5654,8 @@ function useIconDom(props, ctx) {
5685
5654
  "class": [(rotate == null ? void 0 : rotate.value) === "infinite" && ns2.m("spin")],
5686
5655
  "style": {
5687
5656
  width: iconSize.value || "",
5688
- transform: `rotate(${rotate == null ? void 0 : rotate.value}deg)`
5657
+ transform: `rotate(${rotate == null ? void 0 : rotate.value}deg)`,
5658
+ verticalAlign: "middle"
5689
5659
  }
5690
5660
  }, ctx.attrs), null);
5691
5661
  };
@@ -5908,7 +5878,10 @@ function useFormValidation(itemContexts) {
5908
5878
  try {
5909
5879
  await field.validate("");
5910
5880
  } catch (err) {
5911
- errors = __spreadValues(__spreadValues({}, errors), err);
5881
+ errors = {
5882
+ ...errors,
5883
+ ...err
5884
+ };
5912
5885
  }
5913
5886
  }
5914
5887
  if (!Object.keys(errors).length) {
@@ -5965,11 +5938,12 @@ defineComponent({
5965
5938
  }, {
5966
5939
  deep: true
5967
5940
  });
5968
- provide(FORM_TOKEN, reactive(__spreadProps(__spreadValues({}, toRefs(props)), {
5941
+ provide(FORM_TOKEN, reactive({
5942
+ ...toRefs(props),
5969
5943
  emit: ctx.emit,
5970
5944
  addItemContext,
5971
5945
  removeItemContext
5972
- })));
5946
+ }));
5973
5947
  ctx.expose({
5974
5948
  validate,
5975
5949
  validateFields,
@@ -6807,7 +6781,7 @@ var FormControl = defineComponent({
6807
6781
  }
6808
6782
  });
6809
6783
  function _extends() {
6810
- _extends = Object.assign || function(target) {
6784
+ _extends = Object.assign ? Object.assign.bind() : function(target) {
6811
6785
  for (var i = 1; i < arguments.length; i++) {
6812
6786
  var source = arguments[i];
6813
6787
  for (var key in source) {
@@ -6826,13 +6800,13 @@ function _inheritsLoose(subClass, superClass) {
6826
6800
  _setPrototypeOf(subClass, superClass);
6827
6801
  }
6828
6802
  function _getPrototypeOf(o) {
6829
- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf2(o2) {
6803
+ _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf2(o2) {
6830
6804
  return o2.__proto__ || Object.getPrototypeOf(o2);
6831
6805
  };
6832
6806
  return _getPrototypeOf(o);
6833
6807
  }
6834
6808
  function _setPrototypeOf(o, p) {
6835
- _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf2(o2, p2) {
6809
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o2, p2) {
6836
6810
  o2.__proto__ = p2;
6837
6811
  return o2;
6838
6812
  };
@@ -6855,7 +6829,7 @@ function _isNativeReflectConstruct() {
6855
6829
  }
6856
6830
  function _construct(Parent, args, Class) {
6857
6831
  if (_isNativeReflectConstruct()) {
6858
- _construct = Reflect.construct;
6832
+ _construct = Reflect.construct.bind();
6859
6833
  } else {
6860
6834
  _construct = function _construct2(Parent2, args2, Class2) {
6861
6835
  var a = [null];
@@ -7133,9 +7107,45 @@ var whitespace = function whitespace2(rule, value, source, errors, options) {
7133
7107
  errors.push(format(options.messages.whitespace, rule.fullField));
7134
7108
  }
7135
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
+ };
7136
7147
  var pattern$2 = {
7137
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,}))$/,
7138
- 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"),
7139
7149
  hex: /^#?([a-f0-9]{6}|[a-f0-9]{3})$/i
7140
7150
  };
7141
7151
  var types = {
@@ -7177,7 +7187,7 @@ var types = {
7177
7187
  return typeof value === "string" && value.length <= 320 && !!value.match(pattern$2.email);
7178
7188
  },
7179
7189
  url: function url(value) {
7180
- return typeof value === "string" && value.length <= 2048 && !!value.match(pattern$2.url);
7190
+ return typeof value === "string" && value.length <= 2048 && !!value.match(getUrlRegex());
7181
7191
  },
7182
7192
  hex: function hex(value) {
7183
7193
  return typeof value === "string" && !!value.match(pattern$2.hex);
@@ -7752,7 +7762,17 @@ var Schema = /* @__PURE__ */ function() {
7752
7762
  if (rule.asyncValidator) {
7753
7763
  res = rule.asyncValidator(rule, data.value, cb, data.source, options);
7754
7764
  } else if (rule.validator) {
7755
- 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
+ }
7756
7776
  if (res === true) {
7757
7777
  cb();
7758
7778
  } else if (res === false) {
@@ -7873,10 +7893,7 @@ function useFormItemValidate(props, _rules) {
7873
7893
  } else {
7874
7894
  return rule.trigger === triggerVal;
7875
7895
  }
7876
- }).map((_a) => {
7877
- var _b = _a, { trigger } = _b, rule = __objRest(_b, ["trigger"]);
7878
- return rule;
7879
- });
7896
+ }).map(({ ...rule }) => rule);
7880
7897
  };
7881
7898
  const onValidateSuccess = () => {
7882
7899
  validateState.value = "success";
@@ -7949,15 +7966,12 @@ defineComponent({
7949
7966
  props: formItemProps,
7950
7967
  setup(props, ctx) {
7951
7968
  const formContext = inject(FORM_TOKEN);
7952
- const _a = toRefs(props), {
7969
+ const {
7953
7970
  messageType: itemMessageType,
7954
7971
  popPosition: itemPopPosition,
7955
- showFeedback: itemShowFeedback
7956
- } = _a, otherProps = __objRest(_a, [
7957
- "messageType",
7958
- "popPosition",
7959
- "showFeedback"
7960
- ]);
7972
+ showFeedback: itemShowFeedback,
7973
+ ...otherProps
7974
+ } = toRefs(props);
7961
7975
  const {
7962
7976
  label,
7963
7977
  helpTips,
@@ -7987,7 +8001,8 @@ defineComponent({
7987
8001
  labelAlign: formContext.labelAlign
7988
8002
  }));
7989
8003
  provide(LABEL_DATA, labelData);
7990
- const context = reactive(__spreadProps(__spreadValues({}, otherProps), {
8004
+ const context = reactive({
8005
+ ...otherProps,
7991
8006
  showFeedback,
7992
8007
  messageType,
7993
8008
  popPosition,
@@ -7997,7 +8012,7 @@ defineComponent({
7997
8012
  validate,
7998
8013
  resetField,
7999
8014
  clearValidate
8000
- }));
8015
+ });
8001
8016
  provide(FORM_ITEM_TOKEN, context);
8002
8017
  ctx.expose({
8003
8018
  resetField,
@@ -8022,8 +8037,8 @@ defineComponent({
8022
8037
  "extra-info": extraInfo.value
8023
8038
  }, {
8024
8039
  default: () => {
8025
- var _a2, _b;
8026
- 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)];
8027
8042
  }
8028
8043
  })]);
8029
8044
  }
@@ -8061,7 +8076,7 @@ function useInputRender(props, ctx) {
8061
8076
  const slots = ctx.slots;
8062
8077
  const inputDisabled = computed(() => disabled.value || (formContext == null ? void 0 : formContext.disabled));
8063
8078
  const inputSize = computed(() => (size == null ? void 0 : size.value) || (formContext == null ? void 0 : formContext.size) || "");
8064
- const _a = ctx.attrs, { style, class: customClass } = _a, otherAttrs = __objRest(_a, ["style", "class"]);
8079
+ const { style, class: customClass, ...otherAttrs } = ctx.attrs;
8065
8080
  const customStyle = { style };
8066
8081
  const wrapClasses = computed(() => ({
8067
8082
  [ns2.e("wrapper")]: true,
@@ -8129,6 +8144,155 @@ function useInputFunction(input2) {
8129
8144
  return { select, focus, blur };
8130
8145
  }
8131
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
+ };
8132
8296
  const camelize = (name) => name.substring(1).replace(/^\S/, (s) => s.toLocaleLowerCase());
8133
8297
  function get(object4, path) {
8134
8298
  const keys = path.split(".");
@@ -8142,7 +8306,8 @@ function get(object4, path) {
8142
8306
  function createI18nTranslate(name, app, newPrefix) {
8143
8307
  const prefix = newPrefix || camelize(name) + ".";
8144
8308
  return (path) => {
8145
- 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();
8146
8311
  const message = get(messages2, prefix + path) || get(messages2, path);
8147
8312
  return message;
8148
8313
  };
@@ -8250,6 +8415,19 @@ var DInput = defineComponent({
8250
8415
  };
8251
8416
  }
8252
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
+ });
8253
8431
  var search = "";
8254
8432
  var Search = defineComponent({
8255
8433
  name: "DSearch",
@@ -8296,26 +8474,26 @@ var Search = defineComponent({
8296
8474
  onFocus,
8297
8475
  onBlur
8298
8476
  };
8299
- return createVNode("div", {
8477
+ return createVNode("label", {
8300
8478
  "class": rootClasses.value
8301
8479
  }, [props.iconPosition === "left" && createVNode("div", {
8302
8480
  "class": ns2.e("icon"),
8303
8481
  "onClick": onClickHandle
8304
- }, [createVNode(resolveComponent("d-icon"), {
8482
+ }, [createVNode(Icon, {
8305
8483
  "name": "search",
8306
8484
  "size": "inherit",
8307
8485
  "key": "search"
8308
8486
  }, null)]), createVNode(DInput, inputProps2, null), clearIconShow.value && createVNode("div", {
8309
8487
  "class": ns2.e("clear"),
8310
8488
  "onClick": onClearHandle
8311
- }, [createVNode(resolveComponent("d-icon"), {
8489
+ }, [createVNode(Icon, {
8312
8490
  "name": "close",
8313
8491
  "size": "inherit",
8314
8492
  "key": "close"
8315
8493
  }, null)]), props.iconPosition === "right" && createVNode("div", {
8316
8494
  "class": ns2.e("icon"),
8317
8495
  "onClick": onClickHandle
8318
- }, [createVNode(resolveComponent("d-icon"), {
8496
+ }, [createVNode(Icon, {
8319
8497
  "name": "search",
8320
8498
  "size": "inherit",
8321
8499
  "key": "search"