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,39 +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
- var __publicField = (obj, key, value) => {
33
- __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
34
- return value;
35
- };
36
- import { ref, nextTick, defineComponent, watch, provide, reactive, toRefs, createVNode, onUnmounted, Transition, mergeProps, unref, Comment, Text, h, Fragment, inject, withDirectives, cloneVNode, computed, onMounted, Teleport, createTextVNode, onBeforeUnmount, render, getCurrentInstance, resolveDirective, vShow, resolveDynamicComponent, isVNode } from "vue";
1
+ import { ref, nextTick, defineComponent, watch, provide, reactive, toRefs, createVNode, onUnmounted, Transition, mergeProps, unref, Comment, Text, Fragment, h, inject, withDirectives, cloneVNode, computed, onMounted, Teleport, createTextVNode, onBeforeUnmount, render, getCurrentInstance, resolveDirective, vShow, resolveDynamicComponent, isVNode } from "vue";
37
2
  import { offset, autoPlacement, arrow, shift, computePosition } from "@floating-ui/dom";
38
3
  const defaultFormatter = (item) => {
39
4
  if (typeof item === "string") {
@@ -1212,7 +1177,7 @@ var lodash = { exports: {} };
1212
1177
  var objectCtorString = funcToString.call(Object2);
1213
1178
  var oldDash = root._;
1214
1179
  var reIsNative = RegExp2("^" + funcToString.call(hasOwnProperty).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
1215
- 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;
1180
+ 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;
1216
1181
  var defineProperty = function() {
1217
1182
  try {
1218
1183
  var func = getNative(Object2, "defineProperty");
@@ -1222,11 +1187,11 @@ var lodash = { exports: {} };
1222
1187
  }
1223
1188
  }();
1224
1189
  var ctxClearTimeout = context.clearTimeout !== root.clearTimeout && context.clearTimeout, ctxNow = Date2 && Date2.now !== root.Date.now && Date2.now, ctxSetTimeout = context.setTimeout !== root.setTimeout && context.setTimeout;
1225
- 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;
1226
- 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");
1227
- var metaMap = WeakMap2 && new WeakMap2();
1190
+ 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;
1191
+ 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");
1192
+ var metaMap = WeakMap && new WeakMap();
1228
1193
  var realNames = {};
1229
- var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map2), promiseCtorString = toSource(Promise2), setCtorString = toSource(Set2), weakMapCtorString = toSource(WeakMap2);
1194
+ var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map2), promiseCtorString = toSource(Promise2), setCtorString = toSource(Set2), weakMapCtorString = toSource(WeakMap);
1230
1195
  var symbolProto = Symbol2 ? Symbol2.prototype : undefined$1, symbolValueOf = symbolProto ? symbolProto.valueOf : undefined$1, symbolToString = symbolProto ? symbolProto.toString : undefined$1;
1231
1196
  function lodash2(value) {
1232
1197
  if (isObjectLike(value) && !isArray(value) && !(value instanceof LazyWrapper)) {
@@ -2474,7 +2439,7 @@ var lodash = { exports: {} };
2474
2439
  }
2475
2440
  function cloneArrayBuffer(arrayBuffer) {
2476
2441
  var result2 = new arrayBuffer.constructor(arrayBuffer.byteLength);
2477
- new Uint8Array2(result2).set(new Uint8Array2(arrayBuffer));
2442
+ new Uint8Array(result2).set(new Uint8Array(arrayBuffer));
2478
2443
  return result2;
2479
2444
  }
2480
2445
  function cloneDataView(dataView, isDeep) {
@@ -3056,7 +3021,7 @@ var lodash = { exports: {} };
3056
3021
  object4 = object4.buffer;
3057
3022
  other = other.buffer;
3058
3023
  case arrayBufferTag:
3059
- if (object4.byteLength != other.byteLength || !equalFunc(new Uint8Array2(object4), new Uint8Array2(other))) {
3024
+ if (object4.byteLength != other.byteLength || !equalFunc(new Uint8Array(object4), new Uint8Array(other))) {
3060
3025
  return false;
3061
3026
  }
3062
3027
  return true;
@@ -3218,7 +3183,7 @@ var lodash = { exports: {} };
3218
3183
  return result2;
3219
3184
  };
3220
3185
  var getTag = baseGetTag;
3221
- 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) {
3186
+ 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) {
3222
3187
  getTag = function(value) {
3223
3188
  var result2 = baseGetTag(value), Ctor = result2 == objectTag ? value.constructor : undefined$1, ctorString = Ctor ? toSource(Ctor) : "";
3224
3189
  if (ctorString) {
@@ -5935,7 +5900,10 @@ function useFormValidation(itemContexts) {
5935
5900
  try {
5936
5901
  await field.validate("");
5937
5902
  } catch (err) {
5938
- errors = __spreadValues(__spreadValues({}, errors), err);
5903
+ errors = {
5904
+ ...errors,
5905
+ ...err
5906
+ };
5939
5907
  }
5940
5908
  }
5941
5909
  if (!Object.keys(errors).length) {
@@ -5992,11 +5960,12 @@ defineComponent({
5992
5960
  }, {
5993
5961
  deep: true
5994
5962
  });
5995
- provide(FORM_TOKEN, reactive(__spreadProps(__spreadValues({}, toRefs(props)), {
5963
+ provide(FORM_TOKEN, reactive({
5964
+ ...toRefs(props),
5996
5965
  emit: ctx2.emit,
5997
5966
  addItemContext,
5998
5967
  removeItemContext
5999
- })));
5968
+ }));
6000
5969
  ctx2.expose({
6001
5970
  validate,
6002
5971
  validateFields,
@@ -6874,7 +6843,7 @@ var FormControl = defineComponent({
6874
6843
  }
6875
6844
  });
6876
6845
  function _extends() {
6877
- _extends = Object.assign || function(target) {
6846
+ _extends = Object.assign ? Object.assign.bind() : function(target) {
6878
6847
  for (var i = 1; i < arguments.length; i++) {
6879
6848
  var source = arguments[i];
6880
6849
  for (var key in source) {
@@ -6893,13 +6862,13 @@ function _inheritsLoose(subClass, superClass) {
6893
6862
  _setPrototypeOf(subClass, superClass);
6894
6863
  }
6895
6864
  function _getPrototypeOf(o) {
6896
- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf2(o2) {
6865
+ _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf2(o2) {
6897
6866
  return o2.__proto__ || Object.getPrototypeOf(o2);
6898
6867
  };
6899
6868
  return _getPrototypeOf(o);
6900
6869
  }
6901
6870
  function _setPrototypeOf(o, p) {
6902
- _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf2(o2, p2) {
6871
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o2, p2) {
6903
6872
  o2.__proto__ = p2;
6904
6873
  return o2;
6905
6874
  };
@@ -6922,7 +6891,7 @@ function _isNativeReflectConstruct() {
6922
6891
  }
6923
6892
  function _construct(Parent, args, Class) {
6924
6893
  if (_isNativeReflectConstruct()) {
6925
- _construct = Reflect.construct;
6894
+ _construct = Reflect.construct.bind();
6926
6895
  } else {
6927
6896
  _construct = function _construct2(Parent2, args2, Class2) {
6928
6897
  var a = [null];
@@ -7200,9 +7169,45 @@ var whitespace = function whitespace2(rule, value, source, errors, options) {
7200
7169
  errors.push(format(options.messages.whitespace, rule.fullField));
7201
7170
  }
7202
7171
  };
7172
+ var urlReg;
7173
+ var getUrlRegex = function() {
7174
+ if (urlReg) {
7175
+ return urlReg;
7176
+ }
7177
+ var word = "[a-fA-F\\d:]";
7178
+ var b = function b2(options) {
7179
+ return options && options.includeBoundaries ? "(?:(?<=\\s|^)(?=" + word + ")|(?<=" + word + ")(?=\\s|$))" : "";
7180
+ };
7181
+ 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}";
7182
+ var v6seg = "[a-fA-F\\d]{1,4}";
7183
+ 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();
7184
+ var v46Exact = new RegExp("(?:^" + v4 + "$)|(?:^" + v6 + "$)");
7185
+ var v4exact = new RegExp("^" + v4 + "$");
7186
+ var v6exact = new RegExp("^" + v6 + "$");
7187
+ var ip = function ip2(options) {
7188
+ return options && options.exact ? v46Exact : new RegExp("(?:" + b(options) + v4 + b(options) + ")|(?:" + b(options) + v6 + b(options) + ")", "g");
7189
+ };
7190
+ ip.v4 = function(options) {
7191
+ return options && options.exact ? v4exact : new RegExp("" + b(options) + v4 + b(options), "g");
7192
+ };
7193
+ ip.v6 = function(options) {
7194
+ return options && options.exact ? v6exact : new RegExp("" + b(options) + v6 + b(options), "g");
7195
+ };
7196
+ var protocol = "(?:(?:[a-z]+:)?//)";
7197
+ var auth = "(?:\\S+(?::\\S*)?@)?";
7198
+ var ipv4 = ip.v4().source;
7199
+ var ipv6 = ip.v6().source;
7200
+ var host = "(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)";
7201
+ var domain = "(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*";
7202
+ var tld = "(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))";
7203
+ var port = "(?::\\d{2,5})?";
7204
+ var path = '(?:[/?#][^\\s"]*)?';
7205
+ var regex = "(?:" + protocol + "|www\\.)" + auth + "(?:localhost|" + ipv4 + "|" + ipv6 + "|" + host + domain + tld + ")" + port + path;
7206
+ urlReg = new RegExp("(?:^" + regex + "$)", "i");
7207
+ return urlReg;
7208
+ };
7203
7209
  var pattern$2 = {
7204
7210
  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,}))$/,
7205
- 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"),
7206
7211
  hex: /^#?([a-f0-9]{6}|[a-f0-9]{3})$/i
7207
7212
  };
7208
7213
  var types = {
@@ -7244,7 +7249,7 @@ var types = {
7244
7249
  return typeof value === "string" && value.length <= 320 && !!value.match(pattern$2.email);
7245
7250
  },
7246
7251
  url: function url(value) {
7247
- return typeof value === "string" && value.length <= 2048 && !!value.match(pattern$2.url);
7252
+ return typeof value === "string" && value.length <= 2048 && !!value.match(getUrlRegex());
7248
7253
  },
7249
7254
  hex: function hex(value) {
7250
7255
  return typeof value === "string" && !!value.match(pattern$2.hex);
@@ -7819,7 +7824,17 @@ var Schema = /* @__PURE__ */ function() {
7819
7824
  if (rule.asyncValidator) {
7820
7825
  res = rule.asyncValidator(rule, data.value, cb, data.source, options);
7821
7826
  } else if (rule.validator) {
7822
- res = rule.validator(rule, data.value, cb, data.source, options);
7827
+ try {
7828
+ res = rule.validator(rule, data.value, cb, data.source, options);
7829
+ } catch (error) {
7830
+ console.error == null ? void 0 : console.error(error);
7831
+ if (!options.suppressValidatorError) {
7832
+ setTimeout(function() {
7833
+ throw error;
7834
+ }, 0);
7835
+ }
7836
+ cb(error.message);
7837
+ }
7823
7838
  if (res === true) {
7824
7839
  cb();
7825
7840
  } else if (res === false) {
@@ -7940,10 +7955,7 @@ function useFormItemValidate(props, _rules) {
7940
7955
  } else {
7941
7956
  return rule.trigger === triggerVal;
7942
7957
  }
7943
- }).map((_a) => {
7944
- var rule = __objRest(_a, []);
7945
- return rule;
7946
- });
7958
+ }).map(({ ...rule }) => rule);
7947
7959
  };
7948
7960
  const onValidateSuccess = () => {
7949
7961
  validateState.value = "success";
@@ -8016,15 +8028,12 @@ defineComponent({
8016
8028
  props: formItemProps,
8017
8029
  setup(props, ctx2) {
8018
8030
  const formContext = inject(FORM_TOKEN);
8019
- const _a = toRefs(props), {
8031
+ const {
8020
8032
  messageType: itemMessageType,
8021
8033
  popPosition: itemPopPosition,
8022
- showFeedback: itemShowFeedback
8023
- } = _a, otherProps = __objRest(_a, [
8024
- "messageType",
8025
- "popPosition",
8026
- "showFeedback"
8027
- ]);
8034
+ showFeedback: itemShowFeedback,
8035
+ ...otherProps
8036
+ } = toRefs(props);
8028
8037
  const {
8029
8038
  label,
8030
8039
  helpTips,
@@ -8054,7 +8063,8 @@ defineComponent({
8054
8063
  labelAlign: formContext.labelAlign
8055
8064
  }));
8056
8065
  provide(LABEL_DATA, labelData);
8057
- const context = reactive(__spreadProps(__spreadValues({}, otherProps), {
8066
+ const context = reactive({
8067
+ ...otherProps,
8058
8068
  showFeedback,
8059
8069
  messageType,
8060
8070
  popPosition,
@@ -8064,7 +8074,7 @@ defineComponent({
8064
8074
  validate,
8065
8075
  resetField,
8066
8076
  clearValidate
8067
- }));
8077
+ });
8068
8078
  provide(FORM_ITEM_TOKEN, context);
8069
8079
  ctx2.expose({
8070
8080
  resetField,
@@ -8089,8 +8099,8 @@ defineComponent({
8089
8099
  "extra-info": extraInfo.value
8090
8100
  }, {
8091
8101
  default: () => {
8092
- var _a2, _b;
8093
- return [(_b = (_a2 = ctx2.slots).default) == null ? void 0 : _b.call(_a2)];
8102
+ var _a, _b;
8103
+ return [(_b = (_a = ctx2.slots).default) == null ? void 0 : _b.call(_a)];
8094
8104
  }
8095
8105
  })]);
8096
8106
  }
@@ -8165,8 +8175,8 @@ function useAutoCompleteRender(props, ctx2, visible, isFocus, isDisabled, autoCo
8165
8175
  }
8166
8176
  class View {
8167
8177
  constructor() {
8168
- __publicField(this, "top", "50%");
8169
- __publicField(this, "left", "50%");
8178
+ this.top = "50%";
8179
+ this.left = "50%";
8170
8180
  }
8171
8181
  }
8172
8182
  const loadingProps = {
@@ -8184,13 +8194,9 @@ const loadingProps = {
8184
8194
  };
8185
8195
  class LoadingOptions {
8186
8196
  constructor() {
8187
- __publicField(this, "target");
8188
- __publicField(this, "message");
8189
- __publicField(this, "loadingTemplateRef");
8190
- __publicField(this, "backdrop", true);
8191
- __publicField(this, "positionType", "relative");
8192
- __publicField(this, "view", new View());
8193
- __publicField(this, "zIndex");
8197
+ this.backdrop = true;
8198
+ this.positionType = "relative";
8199
+ this.view = new View();
8194
8200
  }
8195
8201
  }
8196
8202
  var loading = "";
@@ -8258,7 +8264,7 @@ var Loading = defineComponent({
8258
8264
  });
8259
8265
  const COMPONENT_CONTAINER_SYMBOL = Symbol("dev_component_container");
8260
8266
  function createComponent(component, props, children = null) {
8261
- const vnode = h(component, __spreadValues({}, props), children);
8267
+ const vnode = h(component, { ...props }, children);
8262
8268
  const container = document.createElement("div");
8263
8269
  vnode[COMPONENT_CONTAINER_SYMBOL] = container;
8264
8270
  render(vnode, container);
@@ -8345,9 +8351,12 @@ const removeAttribute = (el) => {
8345
8351
  };
8346
8352
  const handleProps = (el, vprops) => {
8347
8353
  var _a;
8348
- const props = __spreadValues(__spreadValues({}, new LoadingOptions()), vprops);
8354
+ const props = {
8355
+ ...new LoadingOptions(),
8356
+ ...vprops
8357
+ };
8349
8358
  const loadingTemplateRef = props.loadingTemplateRef;
8350
- const loadingInstance = createComponent(loadingConstructor, __spreadValues({}, props), loadingTemplateRef ? () => loadingTemplateRef : null);
8359
+ const loadingInstance = createComponent(loadingConstructor, { ...props }, loadingTemplateRef ? () => loadingTemplateRef : null);
8351
8360
  el.style.position = props.positionType;
8352
8361
  el.options = props;
8353
8362
  el.instance = loadingInstance;
@@ -8368,6 +8377,155 @@ const loadingDirective = {
8368
8377
  toggleLoading(el, binding);
8369
8378
  }
8370
8379
  };
8380
+ function deepAssign(...objects) {
8381
+ const isObject2 = (obj) => obj && typeof obj === "object";
8382
+ return objects.reduce((prev, from) => {
8383
+ Object.keys(from).forEach((key) => {
8384
+ const pVal = prev[key];
8385
+ const oVal = from[key];
8386
+ if (Array.isArray(pVal) && Array.isArray(oVal)) {
8387
+ prev[key] = Array.from(/* @__PURE__ */ new Set([...oVal, ...pVal]));
8388
+ } else if (isObject2(pVal) && isObject2(oVal)) {
8389
+ prev[key] = deepAssign(pVal, oVal);
8390
+ } else {
8391
+ prev[key] = oVal;
8392
+ }
8393
+ });
8394
+ return prev;
8395
+ }, {});
8396
+ }
8397
+ var zhCN = {
8398
+ pagination: {
8399
+ totalItemText: "\u6240\u6709\u6761\u76EE",
8400
+ goToText: "\u8DF3\u81F3"
8401
+ },
8402
+ accordion: {
8403
+ loading: "\u52A0\u8F7D\u4E2D",
8404
+ noData: "\u6CA1\u6709\u6570\u636E"
8405
+ },
8406
+ autoCompleteDropdown: {
8407
+ latestInput: "\u6700\u8FD1\u8F93\u5165"
8408
+ },
8409
+ cascaderList: {
8410
+ noData: "\u6CA1\u6709\u6570\u636E"
8411
+ },
8412
+ colorPicker: {
8413
+ foundationPanel: "\u57FA\u7840\u9762\u677F",
8414
+ advancedPanel: "\u9AD8\u7EA7\u9762\u677F"
8415
+ },
8416
+ datePickerPro: {
8417
+ ok: "\u786E\u5B9A",
8418
+ placeholder: "\u8BF7\u9009\u62E9\u65E5\u671F",
8419
+ month1: "1\u6708",
8420
+ month2: "2\u6708",
8421
+ month3: "3\u6708",
8422
+ month4: "4\u6708",
8423
+ month5: "5\u6708",
8424
+ month6: "6\u6708",
8425
+ month7: "7\u6708",
8426
+ month8: "8\u6708",
8427
+ month9: "9\u6708",
8428
+ month10: "10\u6708",
8429
+ month11: "11\u6708",
8430
+ month12: "12\u6708",
8431
+ year: "\u5E74",
8432
+ startPlaceholder: "\u8BF7\u9009\u62E9\u5F00\u59CB\u65E5\u671F",
8433
+ endPlaceholder: "\u8BF7\u9009\u62E9\u7ED3\u675F\u65E5\u671F",
8434
+ getWeekDays() {
8435
+ return ["\u65E5", "\u4E00", "\u4E8C", "\u4E09", "\u56DB", "\u4E94", "\u516D"];
8436
+ },
8437
+ getTimeArr() {
8438
+ return ["\u65F6", "\u5206", "\u79D2"];
8439
+ },
8440
+ getYearMonthStr(year, month) {
8441
+ return `${year}\u5E74${month}\u6708`;
8442
+ }
8443
+ },
8444
+ editableSelect: {
8445
+ noRelatedRecords: "\u627E\u4E0D\u5230\u76F8\u5173\u8BB0\u5F55",
8446
+ noData: "\u6CA1\u6709\u6570\u636E"
8447
+ },
8448
+ input: {
8449
+ placeholder: "\u8BF7\u8F93\u5165"
8450
+ },
8451
+ splitterBar: {
8452
+ collapse: "\u6536\u8D77",
8453
+ expand: "\u5C55\u5F00"
8454
+ },
8455
+ stepsGuide: {
8456
+ previous: "\u4E0A\u4E00\u6B65",
8457
+ continue: "\u6211\u77E5\u9053\u5566\uFF0C\u7EE7\u7EED",
8458
+ ok: "\u6211\u77E5\u9053\u5566"
8459
+ },
8460
+ table: {
8461
+ selectAll: "\u5168\u9009",
8462
+ ok: "\u786E\u5B9A"
8463
+ },
8464
+ timePopup: {
8465
+ ok: "\u786E\u5B9A"
8466
+ },
8467
+ transfer: {
8468
+ unit: "\u9879",
8469
+ panelUnit: "\u9879",
8470
+ headerUnit: "\u9879",
8471
+ noData: "\u6682\u65E0\u6570\u636E",
8472
+ placeholder: "\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22"
8473
+ },
8474
+ tree: {
8475
+ loading: "\u52A0\u8F7D\u4E2D",
8476
+ newNode: "\u65B0\u8282\u70B9",
8477
+ selectPlaceholder: "\u8BF7\u9009\u62E9"
8478
+ },
8479
+ upload: {
8480
+ placeholder: "\u9009\u62E9\u6587\u4EF6",
8481
+ getExistSameNameFilesMsg(sameNames) {
8482
+ return `\u60A8\u4E0A\u4F20\u7684 "${sameNames}" \u5B58\u5728\u91CD\u540D\u6587\u4EF6, \u8BF7\u91CD\u65B0\u9009\u62E9\u6587\u4EF6`;
8483
+ },
8484
+ getAllFilesBeyondMaximalFileSizeMsg(maximalSize) {
8485
+ 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`;
8486
+ },
8487
+ getBeyondMaximalFileSizeMsg(filename, maximalSize) {
8488
+ 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`;
8489
+ },
8490
+ getNotAllowedFileTypeMsg(filename, scope) {
8491
+ 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`;
8492
+ }
8493
+ },
8494
+ search: {
8495
+ placeholder: "\u8BF7\u8F93\u5165\u5173\u952E\u5B57"
8496
+ },
8497
+ select: {
8498
+ placeholder: "\u8BF7\u9009\u62E9",
8499
+ noDataText: "\u65E0\u6570\u636E",
8500
+ noMatchText: "\u627E\u4E0D\u5230\u76F8\u5173\u8BB0\u5F55",
8501
+ loadingText: "\u52A0\u8F7D\u4E2D..."
8502
+ },
8503
+ tagInput: {
8504
+ maxTagsText: "\u5DF2\u8FBE\u5230\u6700\u5927\u4E2A\u6570\uFF1A"
8505
+ },
8506
+ timeSelect: {
8507
+ placeholder: "\u8BF7\u9009\u62E9\u65F6\u95F4"
8508
+ }
8509
+ };
8510
+ const lang = ref("zh-CN");
8511
+ let langMessages = reactive({
8512
+ [lang.value]: zhCN
8513
+ });
8514
+ const Locale = {
8515
+ messages() {
8516
+ return langMessages[lang.value];
8517
+ },
8518
+ lang() {
8519
+ return lang.value;
8520
+ },
8521
+ use(newLang, newMessages2) {
8522
+ lang.value = newLang;
8523
+ this.add({ [newLang]: newMessages2 });
8524
+ },
8525
+ add(newMessages2 = {}) {
8526
+ langMessages = deepAssign(langMessages, newMessages2);
8527
+ }
8528
+ };
8371
8529
  const camelize = (name) => name.substring(1).replace(/^\S/, (s) => s.toLocaleLowerCase());
8372
8530
  function get(object4, path) {
8373
8531
  const keys = path.split(".");
@@ -8381,7 +8539,8 @@ function get(object4, path) {
8381
8539
  function createI18nTranslate(name, app, newPrefix) {
8382
8540
  const prefix = newPrefix || camelize(name) + ".";
8383
8541
  return (path) => {
8384
- const messages2 = app == null ? void 0 : app.appContext.config.globalProperties.langMessages.value;
8542
+ var _a;
8543
+ const messages2 = ((_a = app == null ? void 0 : app.appContext.config.globalProperties.langMessages) == null ? void 0 : _a.value) || Locale.messages();
8385
8544
  const message = get(messages2, prefix + path) || get(messages2, path);
8386
8545
  return message;
8387
8546
  };