vue-devui 1.0.0-beta.220801 → 1.0.0-beta.220808

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 (107) hide show
  1. package/alert/index.umd.js +1 -1
  2. package/auto-complete/index.es.js +90 -81
  3. package/auto-complete/index.umd.js +24 -13
  4. package/auto-complete/style.css +1 -1
  5. package/avatar/index.umd.js +1 -1
  6. package/badge/index.umd.js +1 -1
  7. package/button/index.es.js +21 -42
  8. package/button/index.umd.js +9 -9
  9. package/button/style.css +1 -1
  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 +131 -114
  17. package/date-picker-pro/index.umd.js +23 -12
  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 +15 -38
  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/input/index.es.js +86 -72
  35. package/input/index.umd.js +24 -13
  36. package/input-number/index.es.js +1 -16
  37. package/input-number/index.umd.js +1 -1
  38. package/layout/index.umd.js +1 -1
  39. package/loading/index.es.js +15 -38
  40. package/loading/index.umd.js +1 -1
  41. package/loading/style.css +1 -1
  42. package/mention/index.es.js +82 -66
  43. package/mention/index.umd.js +25 -14
  44. package/menu/index.es.js +144 -123
  45. package/menu/index.umd.js +1 -1
  46. package/menu/style.css +1 -1
  47. package/message/index.es.js +29 -34
  48. package/message/index.umd.js +1 -1
  49. package/modal/index.es.js +12 -44
  50. package/modal/index.umd.js +1 -1
  51. package/notification/index.es.js +4 -21
  52. package/notification/index.umd.js +1 -1
  53. package/overlay/index.es.js +1 -1
  54. package/overlay/index.umd.js +1 -1
  55. package/package.json +1 -1
  56. package/pagination/index.umd.js +1 -1
  57. package/panel/index.umd.js +1 -1
  58. package/popover/index.es.js +1 -1
  59. package/popover/index.umd.js +4 -4
  60. package/progress/index.umd.js +3 -3
  61. package/radio/index.es.js +91 -75
  62. package/radio/index.umd.js +27 -16
  63. package/radio/style.css +1 -1
  64. package/rate/index.umd.js +1 -1
  65. package/result/index.umd.js +1 -1
  66. package/ripple/index.es.js +5 -18
  67. package/ripple/index.umd.js +1 -1
  68. package/search/index.es.js +86 -72
  69. package/search/index.umd.js +26 -15
  70. package/select/index.es.js +104 -83
  71. package/select/index.umd.js +26 -15
  72. package/select/style.css +1 -1
  73. package/skeleton/index.umd.js +1 -1
  74. package/slider/index.umd.js +1 -1
  75. package/splitter/index.es.js +22 -29
  76. package/splitter/index.umd.js +9 -9
  77. package/statistic/index.es.js +0 -21
  78. package/statistic/index.umd.js +1 -1
  79. package/status/index.umd.js +1 -1
  80. package/steps/index.umd.js +1 -1
  81. package/style.css +1 -1
  82. package/switch/index.es.js +85 -71
  83. package/switch/index.umd.js +25 -14
  84. package/switch/style.css +1 -1
  85. package/table/index.es.js +106 -91
  86. package/table/index.umd.js +21 -10
  87. package/table/style.css +1 -1
  88. package/tabs/index.umd.js +1 -1
  89. package/tag/index.umd.js +1 -1
  90. package/textarea/index.es.js +88 -72
  91. package/textarea/index.umd.js +26 -15
  92. package/time-picker/index.es.js +97 -88
  93. package/time-picker/index.umd.js +25 -14
  94. package/time-picker/style.css +1 -1
  95. package/time-select/index.es.js +104 -83
  96. package/time-select/index.umd.js +25 -14
  97. package/time-select/style.css +1 -1
  98. package/timeline/index.umd.js +1 -1
  99. package/tooltip/index.es.js +1 -1
  100. package/tooltip/index.umd.js +4 -4
  101. package/tree/index.es.js +132 -104
  102. package/tree/index.umd.js +26 -15
  103. package/tree/style.css +1 -1
  104. package/upload/index.es.js +5 -47
  105. package/upload/index.umd.js +1 -1
  106. package/vue-devui.es.js +413 -354
  107. package/vue-devui.umd.js +32 -21
@@ -1 +1 @@
1
- (function(o,e){typeof exports=="object"&&typeof module!="undefined"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(o=typeof globalThis!="undefined"?globalThis:o||self,e(o.index={},o.Vue))})(this,function(o,e){"use strict";const N=()=>e.createVNode("svg",{width:"10px",height:"10px",viewBox:"0 0 10 10",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[e.createVNode("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[e.createVNode("g",{transform:"translate(-3.000000, -3.000000)","fill-rule":"nonzero"},[e.createVNode("path",{d:"M11.6426,3.19816936 C11.9239974,2.91574512 12.4131626,2.93784891 12.7352108,3.24751057 C13.0571998,3.5572302 13.0901298,4.03723416 12.8087324,4.31965839 L9.14064666,7.99900183 L12.8087324,11.6803416 C13.0645482,11.9370909 13.0605893,12.3571292 12.8158402,12.6640749 L12.7352108,12.7524894 C12.4131626,13.0621511 11.9239974,13.0842548 11.6426,12.8018306 L8,9.14489021 L4.35740003,12.8018306 C4.10158422,13.05858 3.6740594,13.0636532 3.35648225,12.8298003 L3.26478919,12.7524894 C2.94280021,12.4427698 2.90987023,11.9627658 3.19126762,11.6803416 L6.8583349,7.99900183 L3.19126762,4.31965839 C2.93545181,4.06290908 2.93941068,3.64287076 3.18415975,3.3359251 L3.26478919,3.24751057 C3.58683735,2.93784891 4.07600264,2.91574512 4.35740003,3.19816936 L8,6.85411161 L11.6426,3.19816936 Z"},null)])])]);function c(t,r,n){let s=t;return r&&(s+=`__${r}`),n&&(s+=`--${n}`),s}function h(t,r=!1){const n=r?`.devui-${t}`:`devui-${t}`;return{b:()=>c(n),e:l=>l?c(n,l):"",m:l=>l?c(n,"",l):"",em:(l,d)=>l&&d?c(n,l,d):""}}const u=h("alert"),p=t=>e.createVNode("svg",{width:"16px",height:"16px",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",class:[u.e("icon"),t.type==="danger"?u.em("icon","error"):u.em("icon",t.type)]},[(()=>{switch(t.type){case"success":return e.createVNode("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[e.createVNode("path",{"fill-rule":"nonzero",d:"M8,0 C3.6,0 0,3.6 0,8 C0,12.4 3.6,16 8,16 C12.4,16 16,12.4 16,8 C16,3.6 12.4,0 8,0 Z"},null),e.createVNode("polygon",{"stroke-width":"0.3","fill-rule":"nonzero",points:"6.82767602 11.5282799 3 7.24668779 3.89864233 6.37912367 6.82767602 9.04910002 12.2964408 4 13 4.64144383"},null)]);case"warning":return e.createVNode("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[e.createVNode("path",{class:"warning-outer",d:"M8.96244623,0.57254229 L15.8714442,13.4101975 C16.1549662,13.9370117 15.9538562,14.5918482 15.4222523,14.8728158 C15.2642579,14.9563203 15.0879506,15 14.9088903,15 L1.09089441,15 C0.488410063,15 0,14.5159904 0,13.9189343 C0,13.7414873 0.0440768395,13.5667684 0.128340519,13.4101975 L7.03733844,0.57254229 C7.32086049,0.0457280838 7.98165058,-0.153569987 8.51325441,0.127397589 C8.70423071,0.228333932 8.8605922,0.383286648 8.96244623,0.57254229 Z"},null),e.createVNode("path",{class:"warning-inner","stroke-width":"0.3","fill-rule":"nonzero",d:"M8.87894737,13 L7.08947368,13 L7.08947368,11.2105263 L8.87894737,11.2105263 L8.87894737,13 Z M8.62102372,9.86842105 L7.32800539,9.86842105 L7,4.5 L8.96842105,4.5 L8.62102372,9.86842105 Z"},null)]);case"info":return e.createVNode("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[e.createVNode("g",{"fill-rule":"nonzero"},[e.createVNode("path",{class:"info-outer",d:"M8,0 C3.6,0 0,3.6 0,8 C0,12.4 3.6,16 8,16 C12.4,16 16,12.4 16,8 C16,3.6 12.4,0 8,0 Z"},null),e.createVNode("path",{class:"info-inner",d:"M9.19008504,7 L8.79402696,13 L7.15622605,13 L6.73158434,7 L9.19008504,7 Z M9,3 L9,5 L7,5 L7,3 L9,3 Z","stroke-width":"0.2"},null)])]);case"danger":return e.createVNode("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[e.createVNode("g",{"fill-rule":"nonzero"},[e.createVNode("path",{class:"error-outer",d:"M8,0 C3.6,0 0,3.6 0,8 C0,12.4 3.6,16 8,16 C12.4,16 16,12.4 16,8 C16,3.6 12.4,0 8,0 Z"},null),e.createVNode("path",{class:"error-inner",d:"M9,10.6 L9,12.6 L7,12.6 L7,10.6 L9,10.6 Z M9.1,3.1 L8.65924344,9.1 L7.28422786,9.1 L6.9,3.1 L9.1,3.1 Z","stroke-width":"0.2"},null)])]);default:return null}})()]),w={type:{type:String,default:"info"},cssClass:{type:String,default:""},closeable:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0},dismissTime:{type:Number,default:0},center:{type:Boolean,default:!1}};var g="",L=e.defineComponent({name:"DAlert",props:w,emits:["close"],setup(t,r){const n=h("alert"),s=e.ref(!1),a=e.ref(!1),C=e.ref();let i;const l=f=>{i&&clearTimeout(i),a.value=!0,r.emit("close",f)},d=()=>{i=void 0,s.value=!0,a.value=!1};return e.onMounted(()=>{t.dismissTime&&(i=window.setTimeout(()=>{l()},t.dismissTime))}),()=>s.value?null:e.createVNode(e.Transition,{name:n.b(),onAfterLeave:d},{default:()=>{var f,m;return[e.withDirectives(e.createVNode("div",{ref:C,class:[n.b(),n.m(t.type),t.cssClass,a.value&&n.m("close"),t.center&&n.m("center")]},[t.showIcon!==!1&&t.type!=="simple"?e.createVNode("span",{class:n.e("icon-wrap")},[e.createVNode(p,{type:t.type},null)]):null,e.createVNode("div",{class:n.e("content")},[e.createVNode("span",null,[(m=(f=r.slots).default)==null?void 0:m.call(f)]),t.closeable?e.createVNode("div",{class:n.e("close-icon"),onClick:l},[e.createVNode(N,null,null)]):null])]),[[e.vShow,!a.value]])]}})}}),V={title:"Alert \u8B66\u544A",category:"\u53CD\u9988",status:"100%",install(t){t.component(L.name,L)}};o.Alert=L,o.alertProps=w,o.default=V,Object.defineProperty(o,"__esModule",{value:!0}),o[Symbol.toStringTag]="Module"});
1
+ (function(o,e){typeof exports=="object"&&typeof module!="undefined"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(o=typeof globalThis!="undefined"?globalThis:o||self,e(o.index={},o.Vue))})(this,function(o,e){"use strict";const p=()=>e.createVNode("svg",{width:"10px",height:"10px",viewBox:"0 0 10 10",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[e.createVNode("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[e.createVNode("g",{transform:"translate(-3.000000, -3.000000)","fill-rule":"nonzero"},[e.createVNode("path",{d:"M11.6426,3.19816936 C11.9239974,2.91574512 12.4131626,2.93784891 12.7352108,3.24751057 C13.0571998,3.5572302 13.0901298,4.03723416 12.8087324,4.31965839 L9.14064666,7.99900183 L12.8087324,11.6803416 C13.0645482,11.9370909 13.0605893,12.3571292 12.8158402,12.6640749 L12.7352108,12.7524894 C12.4131626,13.0621511 11.9239974,13.0842548 11.6426,12.8018306 L8,9.14489021 L4.35740003,12.8018306 C4.10158422,13.05858 3.6740594,13.0636532 3.35648225,12.8298003 L3.26478919,12.7524894 C2.94280021,12.4427698 2.90987023,11.9627658 3.19126762,11.6803416 L6.8583349,7.99900183 L3.19126762,4.31965839 C2.93545181,4.06290908 2.93941068,3.64287076 3.18415975,3.3359251 L3.26478919,3.24751057 C3.58683735,2.93784891 4.07600264,2.91574512 4.35740003,3.19816936 L8,6.85411161 L11.6426,3.19816936 Z"},null)])])]);function c(t,r,n){let s=t;return r&&(s+=`__${r}`),n&&(s+=`--${n}`),s}function h(t,r=!1){const n=r?`.devui-${t}`:`devui-${t}`;return{b:()=>c(n),e:l=>l?c(n,l):"",m:l=>l?c(n,"",l):"",em:(l,d)=>l&&d?c(n,l,d):""}}const u=h("alert"),N=t=>e.createVNode("svg",{width:"16px",height:"16px",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",class:[u.e("icon"),t.type==="danger"?u.em("icon","error"):u.em("icon",t.type)]},[(()=>{switch(t.type){case"success":return e.createVNode("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[e.createVNode("path",{"fill-rule":"nonzero",d:"M8,0 C3.6,0 0,3.6 0,8 C0,12.4 3.6,16 8,16 C12.4,16 16,12.4 16,8 C16,3.6 12.4,0 8,0 Z"},null),e.createVNode("polygon",{"stroke-width":"0.3","fill-rule":"nonzero",points:"6.82767602 11.5282799 3 7.24668779 3.89864233 6.37912367 6.82767602 9.04910002 12.2964408 4 13 4.64144383"},null)]);case"warning":return e.createVNode("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[e.createVNode("path",{class:"warning-outer",d:"M8.96244623,0.57254229 L15.8714442,13.4101975 C16.1549662,13.9370117 15.9538562,14.5918482 15.4222523,14.8728158 C15.2642579,14.9563203 15.0879506,15 14.9088903,15 L1.09089441,15 C0.488410063,15 0,14.5159904 0,13.9189343 C0,13.7414873 0.0440768395,13.5667684 0.128340519,13.4101975 L7.03733844,0.57254229 C7.32086049,0.0457280838 7.98165058,-0.153569987 8.51325441,0.127397589 C8.70423071,0.228333932 8.8605922,0.383286648 8.96244623,0.57254229 Z"},null),e.createVNode("path",{class:"warning-inner","stroke-width":"0.3","fill-rule":"nonzero",d:"M8.87894737,13 L7.08947368,13 L7.08947368,11.2105263 L8.87894737,11.2105263 L8.87894737,13 Z M8.62102372,9.86842105 L7.32800539,9.86842105 L7,4.5 L8.96842105,4.5 L8.62102372,9.86842105 Z"},null)]);case"info":return e.createVNode("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[e.createVNode("g",{"fill-rule":"nonzero"},[e.createVNode("path",{class:"info-outer",d:"M8,0 C3.6,0 0,3.6 0,8 C0,12.4 3.6,16 8,16 C12.4,16 16,12.4 16,8 C16,3.6 12.4,0 8,0 Z"},null),e.createVNode("path",{class:"info-inner",d:"M9.19008504,7 L8.79402696,13 L7.15622605,13 L6.73158434,7 L9.19008504,7 Z M9,3 L9,5 L7,5 L7,3 L9,3 Z","stroke-width":"0.2"},null)])]);case"danger":return e.createVNode("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[e.createVNode("g",{"fill-rule":"nonzero"},[e.createVNode("path",{class:"error-outer",d:"M8,0 C3.6,0 0,3.6 0,8 C0,12.4 3.6,16 8,16 C12.4,16 16,12.4 16,8 C16,3.6 12.4,0 8,0 Z"},null),e.createVNode("path",{class:"error-inner",d:"M9,10.6 L9,12.6 L7,12.6 L7,10.6 L9,10.6 Z M9.1,3.1 L8.65924344,9.1 L7.28422786,9.1 L6.9,3.1 L9.1,3.1 Z","stroke-width":"0.2"},null)])]);default:return null}})()]),w={type:{type:String,default:"info"},cssClass:{type:String,default:""},closeable:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0},dismissTime:{type:Number,default:0},center:{type:Boolean,default:!1}};var g="",L=e.defineComponent({name:"DAlert",props:w,emits:["close"],setup(t,r){const n=h("alert"),s=e.ref(!1),a=e.ref(!1),C=e.ref();let i;const l=f=>{i&&clearTimeout(i),a.value=!0,r.emit("close",f)},d=()=>{i=void 0,s.value=!0,a.value=!1};return e.onMounted(()=>{t.dismissTime&&(i=window.setTimeout(()=>{l()},t.dismissTime))}),()=>s.value?null:e.createVNode(e.Transition,{name:n.b(),onAfterLeave:d},{default:()=>{var f,m;return[e.withDirectives(e.createVNode("div",{ref:C,class:[n.b(),n.m(t.type),t.cssClass,a.value&&n.m("close"),t.center&&n.m("center")]},[t.showIcon!==!1&&t.type!=="simple"?e.createVNode("span",{class:n.e("icon-wrap")},[e.createVNode(N,{type:t.type},null)]):null,e.createVNode("div",{class:n.e("content")},[e.createVNode("span",null,[(m=(f=r.slots).default)==null?void 0:m.call(f)]),t.closeable?e.createVNode("div",{class:n.e("close-icon"),onClick:l},[e.createVNode(p,null,null)]):null])]),[[e.vShow,!a.value]])]}})}}),V={title:"Alert \u8B66\u544A",category:"\u53CD\u9988",status:"100%",install(t){t.component(L.name,L)}};o.Alert=L,o.alertProps=w,o.default=V,Object.defineProperties(o,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
@@ -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, withModifiers, 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, withModifiers, 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,
@@ -6876,7 +6845,7 @@ var FormControl = defineComponent({
6876
6845
  }
6877
6846
  });
6878
6847
  function _extends() {
6879
- _extends = Object.assign || function(target) {
6848
+ _extends = Object.assign ? Object.assign.bind() : function(target) {
6880
6849
  for (var i = 1; i < arguments.length; i++) {
6881
6850
  var source = arguments[i];
6882
6851
  for (var key in source) {
@@ -6895,13 +6864,13 @@ function _inheritsLoose(subClass, superClass) {
6895
6864
  _setPrototypeOf(subClass, superClass);
6896
6865
  }
6897
6866
  function _getPrototypeOf(o) {
6898
- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf2(o2) {
6867
+ _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf2(o2) {
6899
6868
  return o2.__proto__ || Object.getPrototypeOf(o2);
6900
6869
  };
6901
6870
  return _getPrototypeOf(o);
6902
6871
  }
6903
6872
  function _setPrototypeOf(o, p) {
6904
- _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf2(o2, p2) {
6873
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o2, p2) {
6905
6874
  o2.__proto__ = p2;
6906
6875
  return o2;
6907
6876
  };
@@ -6924,7 +6893,7 @@ function _isNativeReflectConstruct() {
6924
6893
  }
6925
6894
  function _construct(Parent, args, Class) {
6926
6895
  if (_isNativeReflectConstruct()) {
6927
- _construct = Reflect.construct;
6896
+ _construct = Reflect.construct.bind();
6928
6897
  } else {
6929
6898
  _construct = function _construct2(Parent2, args2, Class2) {
6930
6899
  var a = [null];
@@ -7202,9 +7171,45 @@ var whitespace = function whitespace2(rule, value, source, errors, options) {
7202
7171
  errors.push(format(options.messages.whitespace, rule.fullField));
7203
7172
  }
7204
7173
  };
7174
+ var urlReg;
7175
+ var getUrlRegex = function() {
7176
+ if (urlReg) {
7177
+ return urlReg;
7178
+ }
7179
+ var word = "[a-fA-F\\d:]";
7180
+ var b = function b2(options) {
7181
+ return options && options.includeBoundaries ? "(?:(?<=\\s|^)(?=" + word + ")|(?<=" + word + ")(?=\\s|$))" : "";
7182
+ };
7183
+ 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}";
7184
+ var v6seg = "[a-fA-F\\d]{1,4}";
7185
+ 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();
7186
+ var v46Exact = new RegExp("(?:^" + v4 + "$)|(?:^" + v6 + "$)");
7187
+ var v4exact = new RegExp("^" + v4 + "$");
7188
+ var v6exact = new RegExp("^" + v6 + "$");
7189
+ var ip = function ip2(options) {
7190
+ return options && options.exact ? v46Exact : new RegExp("(?:" + b(options) + v4 + b(options) + ")|(?:" + b(options) + v6 + b(options) + ")", "g");
7191
+ };
7192
+ ip.v4 = function(options) {
7193
+ return options && options.exact ? v4exact : new RegExp("" + b(options) + v4 + b(options), "g");
7194
+ };
7195
+ ip.v6 = function(options) {
7196
+ return options && options.exact ? v6exact : new RegExp("" + b(options) + v6 + b(options), "g");
7197
+ };
7198
+ var protocol = "(?:(?:[a-z]+:)?//)";
7199
+ var auth = "(?:\\S+(?::\\S*)?@)?";
7200
+ var ipv4 = ip.v4().source;
7201
+ var ipv6 = ip.v6().source;
7202
+ var host = "(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)";
7203
+ var domain = "(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*";
7204
+ var tld = "(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))";
7205
+ var port = "(?::\\d{2,5})?";
7206
+ var path = '(?:[/?#][^\\s"]*)?';
7207
+ var regex = "(?:" + protocol + "|www\\.)" + auth + "(?:localhost|" + ipv4 + "|" + ipv6 + "|" + host + domain + tld + ")" + port + path;
7208
+ urlReg = new RegExp("(?:^" + regex + "$)", "i");
7209
+ return urlReg;
7210
+ };
7205
7211
  var pattern$2 = {
7206
7212
  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,}))$/,
7207
- 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"),
7208
7213
  hex: /^#?([a-f0-9]{6}|[a-f0-9]{3})$/i
7209
7214
  };
7210
7215
  var types = {
@@ -7246,7 +7251,7 @@ var types = {
7246
7251
  return typeof value === "string" && value.length <= 320 && !!value.match(pattern$2.email);
7247
7252
  },
7248
7253
  url: function url(value) {
7249
- return typeof value === "string" && value.length <= 2048 && !!value.match(pattern$2.url);
7254
+ return typeof value === "string" && value.length <= 2048 && !!value.match(getUrlRegex());
7250
7255
  },
7251
7256
  hex: function hex(value) {
7252
7257
  return typeof value === "string" && !!value.match(pattern$2.hex);
@@ -7821,7 +7826,17 @@ var Schema = /* @__PURE__ */ function() {
7821
7826
  if (rule.asyncValidator) {
7822
7827
  res = rule.asyncValidator(rule, data.value, cb, data.source, options);
7823
7828
  } else if (rule.validator) {
7824
- res = rule.validator(rule, data.value, cb, data.source, options);
7829
+ try {
7830
+ res = rule.validator(rule, data.value, cb, data.source, options);
7831
+ } catch (error) {
7832
+ console.error == null ? void 0 : console.error(error);
7833
+ if (!options.suppressValidatorError) {
7834
+ setTimeout(function() {
7835
+ throw error;
7836
+ }, 0);
7837
+ }
7838
+ cb(error.message);
7839
+ }
7825
7840
  if (res === true) {
7826
7841
  cb();
7827
7842
  } else if (res === false) {
@@ -7942,10 +7957,7 @@ function useFormItemValidate(props, _rules) {
7942
7957
  } else {
7943
7958
  return rule.trigger === triggerVal;
7944
7959
  }
7945
- }).map((_a) => {
7946
- var rule = __objRest(_a, []);
7947
- return rule;
7948
- });
7960
+ }).map(({ ...rule }) => rule);
7949
7961
  };
7950
7962
  const onValidateSuccess = () => {
7951
7963
  validateState.value = "success";
@@ -8018,15 +8030,12 @@ defineComponent({
8018
8030
  props: formItemProps,
8019
8031
  setup(props, ctx2) {
8020
8032
  const formContext = inject(FORM_TOKEN);
8021
- const _a = toRefs(props), {
8033
+ const {
8022
8034
  messageType: itemMessageType,
8023
8035
  popPosition: itemPopPosition,
8024
- showFeedback: itemShowFeedback
8025
- } = _a, otherProps = __objRest(_a, [
8026
- "messageType",
8027
- "popPosition",
8028
- "showFeedback"
8029
- ]);
8036
+ showFeedback: itemShowFeedback,
8037
+ ...otherProps
8038
+ } = toRefs(props);
8030
8039
  const {
8031
8040
  label,
8032
8041
  helpTips,
@@ -8056,7 +8065,8 @@ defineComponent({
8056
8065
  labelAlign: formContext.labelAlign
8057
8066
  }));
8058
8067
  provide(LABEL_DATA, labelData);
8059
- const context = reactive(__spreadProps(__spreadValues({}, otherProps), {
8068
+ const context = reactive({
8069
+ ...otherProps,
8060
8070
  showFeedback,
8061
8071
  messageType,
8062
8072
  popPosition,
@@ -8066,7 +8076,7 @@ defineComponent({
8066
8076
  validate,
8067
8077
  resetField,
8068
8078
  clearValidate
8069
- }));
8079
+ });
8070
8080
  provide(FORM_ITEM_TOKEN, context);
8071
8081
  ctx2.expose({
8072
8082
  resetField,
@@ -8091,8 +8101,8 @@ defineComponent({
8091
8101
  "extra-info": extraInfo.value
8092
8102
  }, {
8093
8103
  default: () => {
8094
- var _a2, _b;
8095
- return [(_b = (_a2 = ctx2.slots).default) == null ? void 0 : _b.call(_a2)];
8104
+ var _a, _b;
8105
+ return [(_b = (_a = ctx2.slots).default) == null ? void 0 : _b.call(_a)];
8096
8106
  }
8097
8107
  })]);
8098
8108
  }
@@ -8167,8 +8177,8 @@ function useAutoCompleteRender(props, ctx2, visible, isFocus, isDisabled, autoCo
8167
8177
  }
8168
8178
  class View {
8169
8179
  constructor() {
8170
- __publicField(this, "top", "50%");
8171
- __publicField(this, "left", "50%");
8180
+ this.top = "50%";
8181
+ this.left = "50%";
8172
8182
  }
8173
8183
  }
8174
8184
  const loadingProps = {
@@ -8186,13 +8196,9 @@ const loadingProps = {
8186
8196
  };
8187
8197
  class LoadingOptions {
8188
8198
  constructor() {
8189
- __publicField(this, "target");
8190
- __publicField(this, "message");
8191
- __publicField(this, "loadingTemplateRef");
8192
- __publicField(this, "backdrop", true);
8193
- __publicField(this, "positionType", "relative");
8194
- __publicField(this, "view", new View());
8195
- __publicField(this, "zIndex");
8199
+ this.backdrop = true;
8200
+ this.positionType = "relative";
8201
+ this.view = new View();
8196
8202
  }
8197
8203
  }
8198
8204
  var loading = "";
@@ -8260,7 +8266,7 @@ var Loading = defineComponent({
8260
8266
  });
8261
8267
  const COMPONENT_CONTAINER_SYMBOL = Symbol("dev_component_container");
8262
8268
  function createComponent(component, props, children = null) {
8263
- const vnode = h(component, __spreadValues({}, props), children);
8269
+ const vnode = h(component, { ...props }, children);
8264
8270
  const container = document.createElement("div");
8265
8271
  vnode[COMPONENT_CONTAINER_SYMBOL] = container;
8266
8272
  render(vnode, container);
@@ -8347,9 +8353,12 @@ const removeAttribute = (el) => {
8347
8353
  };
8348
8354
  const handleProps = (el, vprops) => {
8349
8355
  var _a;
8350
- const props = __spreadValues(__spreadValues({}, new LoadingOptions()), vprops);
8356
+ const props = {
8357
+ ...new LoadingOptions(),
8358
+ ...vprops
8359
+ };
8351
8360
  const loadingTemplateRef = props.loadingTemplateRef;
8352
- const loadingInstance = createComponent(loadingConstructor, __spreadValues({}, props), loadingTemplateRef ? () => loadingTemplateRef : null);
8361
+ const loadingInstance = createComponent(loadingConstructor, { ...props }, loadingTemplateRef ? () => loadingTemplateRef : null);
8353
8362
  el.style.position = props.positionType;
8354
8363
  el.options = props;
8355
8364
  el.instance = loadingInstance;