vue-devui 1.0.0-rc.14 → 1.0.0-rc.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (130) hide show
  1. package/README.md +3 -0
  2. package/alert/index.umd.js +1 -1
  3. package/auto-complete/index.es.js +92 -81
  4. package/auto-complete/index.umd.js +24 -13
  5. package/auto-complete/style.css +1 -1
  6. package/avatar/index.umd.js +1 -1
  7. package/badge/index.umd.js +1 -1
  8. package/button/index.es.js +21 -42
  9. package/button/index.umd.js +9 -9
  10. package/button/style.css +1 -1
  11. package/card/index.umd.js +1 -1
  12. package/checkbox/index.es.js +96 -77
  13. package/checkbox/index.umd.js +26 -15
  14. package/collapse/index.es.js +3 -21
  15. package/collapse/index.umd.js +1 -1
  16. package/countdown/index.umd.js +1 -1
  17. package/date-picker-pro/index.es.js +133 -114
  18. package/date-picker-pro/index.umd.js +23 -12
  19. package/date-picker-pro/style.css +1 -1
  20. package/drawer/index.es.js +5 -18
  21. package/drawer/index.umd.js +1 -1
  22. package/dropdown/index.es.js +6 -31
  23. package/dropdown/index.umd.js +1 -1
  24. package/editable-select/index.es.js +104 -99
  25. package/editable-select/index.umd.js +1 -1
  26. package/editable-select/style.css +1 -1
  27. package/form/index.es.js +87 -71
  28. package/form/index.umd.js +22 -11
  29. package/fullscreen/index.umd.js +1 -1
  30. package/grid/index.es.js +7 -20
  31. package/grid/index.umd.js +1 -1
  32. package/icon/index.umd.js +1 -1
  33. package/image-preview/index.es.js +12 -23
  34. package/image-preview/index.umd.js +1 -1
  35. package/input/index.es.js +88 -72
  36. package/input/index.umd.js +24 -13
  37. package/input-number/index.es.js +1 -16
  38. package/input-number/index.umd.js +1 -1
  39. package/layout/index.umd.js +1 -1
  40. package/loading/index.es.js +15 -38
  41. package/loading/index.umd.js +1 -1
  42. package/loading/style.css +1 -1
  43. package/mention/index.d.ts +7 -0
  44. package/mention/index.es.js +8326 -0
  45. package/mention/index.umd.js +47 -0
  46. package/mention/package.json +7 -0
  47. package/mention/style.css +1 -0
  48. package/menu/index.d.ts +7 -0
  49. package/menu/index.es.js +927 -0
  50. package/menu/index.umd.js +1 -0
  51. package/menu/package.json +7 -0
  52. package/menu/style.css +1 -0
  53. package/message/index.d.ts +7 -0
  54. package/message/index.es.js +533 -0
  55. package/message/index.umd.js +1 -0
  56. package/message/package.json +7 -0
  57. package/message/style.css +1 -0
  58. package/modal/index.es.js +14 -44
  59. package/modal/index.umd.js +1 -1
  60. package/notification/index.es.js +16 -22
  61. package/notification/index.umd.js +1 -1
  62. package/nuxt/components/Mention.js +3 -0
  63. package/nuxt/components/Menu.js +3 -0
  64. package/nuxt/components/MenuItem.js +3 -0
  65. package/nuxt/components/Message.js +3 -0
  66. package/nuxt/components/SubMenu.js +3 -0
  67. package/nuxt/components/animationInjectionKey.js +3 -0
  68. package/nuxt/components/mentionProps.js +3 -0
  69. package/nuxt/components/messageProps.js +3 -0
  70. package/nuxt/components/roundInjectionKey.js +3 -0
  71. package/nuxt/components/skeletonItemProps.js +3 -0
  72. package/nuxt/components/treeNodeProps.js +3 -0
  73. package/overlay/index.es.js +1 -1
  74. package/overlay/index.umd.js +1 -1
  75. package/package.json +5 -3
  76. package/pagination/index.umd.js +1 -1
  77. package/panel/index.umd.js +1 -1
  78. package/popover/index.es.js +3 -1
  79. package/popover/index.umd.js +6 -6
  80. package/progress/index.umd.js +3 -3
  81. package/radio/index.es.js +93 -75
  82. package/radio/index.umd.js +27 -16
  83. package/radio/style.css +1 -1
  84. package/rate/index.umd.js +1 -1
  85. package/result/index.umd.js +1 -1
  86. package/ripple/index.es.js +5 -18
  87. package/ripple/index.umd.js +1 -1
  88. package/search/index.es.js +104 -75
  89. package/search/index.umd.js +26 -15
  90. package/search/style.css +1 -1
  91. package/select/index.es.js +132 -111
  92. package/select/index.umd.js +26 -15
  93. package/select/style.css +1 -1
  94. package/skeleton/index.es.js +87 -261
  95. package/skeleton/index.umd.js +1 -1
  96. package/skeleton/style.css +1 -1
  97. package/slider/index.umd.js +1 -1
  98. package/splitter/index.es.js +22 -29
  99. package/splitter/index.umd.js +9 -9
  100. package/statistic/index.es.js +0 -21
  101. package/statistic/index.umd.js +1 -1
  102. package/status/index.umd.js +1 -1
  103. package/steps/index.umd.js +1 -1
  104. package/style.css +1 -1
  105. package/switch/index.es.js +87 -71
  106. package/switch/index.umd.js +25 -14
  107. package/switch/style.css +1 -1
  108. package/table/index.es.js +153 -102
  109. package/table/index.umd.js +22 -11
  110. package/table/style.css +1 -1
  111. package/tabs/index.umd.js +1 -1
  112. package/tag/index.umd.js +1 -1
  113. package/textarea/index.es.js +91 -73
  114. package/textarea/index.umd.js +26 -15
  115. package/time-picker/index.es.js +99 -88
  116. package/time-picker/index.umd.js +25 -14
  117. package/time-picker/style.css +1 -1
  118. package/time-select/index.es.js +132 -111
  119. package/time-select/index.umd.js +25 -14
  120. package/time-select/style.css +1 -1
  121. package/timeline/index.umd.js +1 -1
  122. package/tooltip/index.es.js +1 -1
  123. package/tooltip/index.umd.js +4 -4
  124. package/tree/index.es.js +11148 -9855
  125. package/tree/index.umd.js +29 -18
  126. package/tree/style.css +1 -1
  127. package/upload/index.es.js +17 -48
  128. package/upload/index.umd.js +1 -1
  129. package/vue-devui.es.js +11421 -8832
  130. package/vue-devui.umd.js +34 -22
@@ -1,22 +1,3 @@
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
1
  import { defineComponent, provide, reactive, toRefs, createVNode, shallowRef, inject, computed, onMounted, Transition } from "vue";
21
2
  const SELECT_TOKEN = Symbol("dCollapse");
22
3
  const collapseProps = {
@@ -102,9 +83,10 @@ var Collapse = defineComponent({
102
83
  ctx.emit("change", activeLists);
103
84
  }
104
85
  };
105
- provide(SELECT_TOKEN, reactive(__spreadProps(__spreadValues({}, toRefs(props)), {
86
+ provide(SELECT_TOKEN, reactive({
87
+ ...toRefs(props),
106
88
  collapseItemClick
107
- })));
89
+ }));
108
90
  return () => {
109
91
  var _a, _b;
110
92
  return createVNode("div", {
@@ -1 +1 @@
1
- var S=Object.defineProperty,T=Object.defineProperties;var A=Object.getOwnPropertyDescriptors;var b=Object.getOwnPropertySymbols;var B=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable;var v=(t,e,r)=>e in t?S(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,w=(t,e)=>{for(var r in e||(e={}))B.call(e,r)&&v(t,r,e[r]);if(b)for(var r of b(e))E.call(e,r)&&v(t,r,e[r]);return t},I=(t,e)=>T(t,A(e));(function(t,e){typeof exports=="object"&&typeof module!="undefined"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(t=typeof globalThis!="undefined"?globalThis:t||self,e(t.index={},t.Vue))})(this,function(t,e){"use strict";const r=Symbol("dCollapse"),V={modelValue:{type:[String,Number,Array],default:"",required:!0},accordion:{type:Boolean,default:!1}},N={name:{type:[String,Number],default:"",required:!0},title:{type:String,default:""},disabled:{type:Boolean,default:!1}};function h(l,a,i){let u=l;return a&&(u+=`__${a}`),i&&(u+=`--${i}`),u}function g(l,a=!1){const i=a?`.devui-${l}`:`devui-${l}`;return{b:()=>h(i),e:n=>n?h(i,n):"",m:n=>n?h(i,"",n):"",em:(n,m)=>n&&m?h(i,n,m):""}}var $="",C=e.defineComponent({name:"DCollapse",props:V,emits:["change","update:modelValue"],setup(l,a){const i=g("collapse"),u=g("scrollbar"),f=s=>!s&&s!==0?[]:Array.isArray(s)?s:[s],o=s=>{const n=[...f(l.modelValue)],m=n.indexOf(s);if(l.accordion){let p=s;(n[0]||n[0]===0)&&n[0]===s&&(p=""),a.emit("update:modelValue",p),a.emit("change",p)}else m>-1?n.splice(m,1):n.push(s),a.emit("update:modelValue",n),a.emit("change",n)};return e.provide(r,e.reactive(I(w({},e.toRefs(l)),{collapseItemClick:o}))),()=>{var s,n;return e.createVNode("div",{class:[i.b(),u.b()]},[(n=(s=a.slots).default)==null?void 0:n.call(s)])}}});const k=()=>{const l={width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"};return e.createVNode("svg",l,[e.createVNode("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[e.createVNode("path",{d:"M12.1464466,6.85355339 L8.35355339,10.6464466 C8.15829124,10.8417088 7.84170876,10.8417088 7.64644661,10.6464466 L3.85355339,6.85355339 C3.65829124,6.65829124 3.65829124,6.34170876 3.85355339,6.14644661 C3.94732158,6.05267842 4.07449854,6 4.20710678,6 L11.7928932,6 C12.0690356,6 12.2928932,6.22385763 12.2928932,6.5 C12.2928932,6.63260824 12.2402148,6.7597852 12.1464466,6.85355339 Z","fill-rule":"nonzero"},null)])])};var y=e.defineComponent({name:"DCollapseItem",props:N,setup(l,a){const i=g("collapse"),u=g("collapse-transition"),f=e.shallowRef(),o=e.inject(r,null),s=e.computed(()=>l.disabled?!1:Array.isArray(o==null?void 0:o.modelValue)?Boolean(o==null?void 0:o.modelValue.length)&&(o==null?void 0:o.modelValue.includes(l.name)):Boolean(o==null?void 0:o.modelValue)&&(o==null?void 0:o.modelValue)===l.name),n=d=>{d.preventDefault(),d.stopPropagation(),l.disabled||o==null||o.collapseItemClick(l.name)};e.onMounted(()=>{if(f.value){const d=f.value;s.value&&(d.style.height=`${d.offsetHeight}px`)}});const m=d=>{const c=d;c.style.height="";const P=c.offsetHeight;c.style.height="0px",c.offsetHeight,c.style.height=`${P}px`},p=d=>{const c=d;c.style.height="0px"};return()=>e.createVNode("div",{class:i.e("item")},[e.createVNode("div",{class:[i.e("item-title"),i.m("overflow-ellipsis"),s.value&&i.m("open"),l.disabled&&i.em("item","disabled")],onClick:n},[a.slots.title?a.slots.title():l.title,e.createVNode("span",{class:i.e("open-icon")},[e.createVNode(k,null,null)])]),e.createVNode(e.Transition,{name:u.b(),onEnter:m,onLeave:p},{default:()=>{var d,c;return[s.value&&e.createVNode("div",{ref:f,class:i.e("item-content")},[(c=(d=a.slots).default)==null?void 0:c.call(d)])]}})])}}),L={title:"Collapse \u6298\u53E0\u9762\u677F",category:"\u6570\u636E\u5C55\u793A",status:"100%",install(l){l.component(C.name,C),l.component(y.name,y)}};t.Collapse=C,t.CollapseItem=y,t.collapseItemProps=N,t.collapseProps=V,t.default=L,Object.defineProperty(t,"__esModule",{value:!0}),t[Symbol.toStringTag]="Module"});
1
+ (function(r,e){typeof exports=="object"&&typeof module!="undefined"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(r=typeof globalThis!="undefined"?globalThis:r||self,e(r.index={},r.Vue))})(this,function(r,e){"use strict";const V=Symbol("dCollapse"),y={modelValue:{type:[String,Number,Array],default:"",required:!0},accordion:{type:Boolean,default:!1}},N={name:{type:[String,Number],default:"",required:!0},title:{type:String,default:""},disabled:{type:Boolean,default:!1}};function p(n,i,s){let c=n;return i&&(c+=`__${i}`),s&&(c+=`--${s}`),c}function h(n,i=!1){const s=i?`.devui-${n}`:`devui-${n}`;return{b:()=>p(s),e:t=>t?p(s,t):"",m:t=>t?p(s,"",t):"",em:(t,u)=>t&&u?p(s,t,u):""}}var I="",g=e.defineComponent({name:"DCollapse",props:y,emits:["change","update:modelValue"],setup(n,i){const s=h("collapse"),c=h("scrollbar"),m=o=>!o&&o!==0?[]:Array.isArray(o)?o:[o],l=o=>{const t=[...m(n.modelValue)],u=t.indexOf(o);if(n.accordion){let f=o;(t[0]||t[0]===0)&&t[0]===o&&(f=""),i.emit("update:modelValue",f),i.emit("change",f)}else u>-1?t.splice(u,1):t.push(o),i.emit("update:modelValue",t),i.emit("change",t)};return e.provide(V,e.reactive({...e.toRefs(n),collapseItemClick:l})),()=>{var o,t;return e.createVNode("div",{class:[s.b(),c.b()]},[(t=(o=i.slots).default)==null?void 0:t.call(o)])}}});const b=()=>{const n={width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"};return e.createVNode("svg",n,[e.createVNode("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[e.createVNode("path",{d:"M12.1464466,6.85355339 L8.35355339,10.6464466 C8.15829124,10.8417088 7.84170876,10.8417088 7.64644661,10.6464466 L3.85355339,6.85355339 C3.65829124,6.65829124 3.65829124,6.34170876 3.85355339,6.14644661 C3.94732158,6.05267842 4.07449854,6 4.20710678,6 L11.7928932,6 C12.0690356,6 12.2928932,6.22385763 12.2928932,6.5 C12.2928932,6.63260824 12.2402148,6.7597852 12.1464466,6.85355339 Z","fill-rule":"nonzero"},null)])])};var C=e.defineComponent({name:"DCollapseItem",props:N,setup(n,i){const s=h("collapse"),c=h("collapse-transition"),m=e.shallowRef(),l=e.inject(V,null),o=e.computed(()=>n.disabled?!1:Array.isArray(l==null?void 0:l.modelValue)?Boolean(l==null?void 0:l.modelValue.length)&&(l==null?void 0:l.modelValue.includes(n.name)):Boolean(l==null?void 0:l.modelValue)&&(l==null?void 0:l.modelValue)===n.name),t=a=>{a.preventDefault(),a.stopPropagation(),n.disabled||l==null||l.collapseItemClick(n.name)};e.onMounted(()=>{if(m.value){const a=m.value;o.value&&(a.style.height=`${a.offsetHeight}px`)}});const u=a=>{const d=a;d.style.height="";const w=d.offsetHeight;d.style.height="0px",d.offsetHeight,d.style.height=`${w}px`},f=a=>{const d=a;d.style.height="0px"};return()=>e.createVNode("div",{class:s.e("item")},[e.createVNode("div",{class:[s.e("item-title"),s.m("overflow-ellipsis"),o.value&&s.m("open"),n.disabled&&s.em("item","disabled")],onClick:t},[i.slots.title?i.slots.title():n.title,e.createVNode("span",{class:s.e("open-icon")},[e.createVNode(b,null,null)])]),e.createVNode(e.Transition,{name:c.b(),onEnter:u,onLeave:f},{default:()=>{var a,d;return[o.value&&e.createVNode("div",{ref:m,class:s.e("item-content")},[(d=(a=i.slots).default)==null?void 0:d.call(a)])]}})])}}),v={title:"Collapse \u6298\u53E0\u9762\u677F",category:"\u6570\u636E\u5C55\u793A",status:"100%",install(n){n.component(g.name,g),n.component(C.name,C)}};r.Collapse=g,r.CollapseItem=C,r.collapseItemProps=N,r.collapseProps=y,r.default=v,Object.defineProperties(r,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
@@ -1 +1 @@
1
- (function(c,u){typeof exports=="object"&&typeof module!="undefined"?u(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],u):(c=typeof globalThis!="undefined"?globalThis:c||self,u(c.index={},c.Vue))})(this,function(c,u){"use strict";const S={value:{type:Number,required:!0},format:{type:String,default:"HH:mm:ss"},prefix:{type:String,default:""},suffix:{type:String,default:""},valueStyle:{type:Object,default:()=>({})}},M=e=>{const n=new Map([["Y",0],["M",0],["D",0],["H",0],["m",0],["s",0],["S",0]]),t=Math.floor(e/(365*24*60*60*1e3)),o=Math.floor(e/(30*24*60*60*1e3)%12),s=Math.floor(e/(24*60*60*1e3)%30),a=Math.floor(e/(60*60*1e3)%24),d=Math.floor(e/(60*1e3)%60),l=Math.floor(e/1e3%60),w=e%1e3;return n.set("Y",t),n.set("M",o),n.set("D",s),n.set("H",a),n.set("m",d),n.set("s",l),n.set("S",w),n},p=(e,n)=>{const t=new Map([["Y",0],["M",0],["D",0],["H",0],["m",0],["s",0],["S",0]]),o=new Map([["Y",12],["M",30],["D",24],["H",60],["m",60],["s",1e3],["S",1]]);let s=0;for(const a of t.keys())e.has(a)?(t.set(a,(n.get(a)||0)+s),s=0):s+=(n.get(a)||0)*(o.get(a)||0);return!e.has("S")&&(n.get("S")||0)>500&&t.set("s",(t.get("s")||0)+1),t},y=e=>{const n=new Set(["Y","M","D","H","m","s","S"]),t=[];for(let o=0;o<e.length;o++){const s=e[o];t.length===0||t[t.length-1].k!==s||!n.has(s)?t.push({k:s,n:1}):t[t.length-1].n++}return t},T=e=>{const n=new Set(["Y","M","D","H","m","s","S"]),t=new Set;for(let o=0;o<e.length;o++){const s=e[o];n.has(s)&&t.add(s)}return t},D=(e,n)=>{const t=10**n-1;if(e>=t)return e;{const o=n-e.toString().length;let s="";for(let a=0;a<o;a++)s+="0";return s+e}},v=(e,n=0)=>{let t=1,o;const s=Date.now();function a(){const d=Date.now(),l=s+t*n;o=setTimeout(a,n-(d-l)),t+=1,e()}return o=setTimeout(a,n),()=>{clearTimeout(o)}};var k="",h=u.defineComponent({name:"DCountdown",props:S,emits:["onChange","onFinish"],setup(e,n){const t=u.ref(),o=T(e.format),s=y(e.format),a=u.ref(""),d=i=>{const r=new Set(["Y","M","D","H","m","s","S"]),m=s.reduce((f,g)=>r.has(g.k)?f+D(i.get(g.k)||0,g.n):f+g.k,"");a.value=m},l=()=>{const i=new Date(e.value).getTime(),r=i>new Date().getTime()?i-new Date().getTime():0,m=M(r),f=p(o,m);return!n.slots.default&&d(f),n.emit("onChange",{leftTime:r,formatTime:m,legalTime:f}),r},w=()=>{l(),!t.value&&(t.value=v(()=>{var r;l()===0&&(n.emit("onFinish"),(r=t.value)==null||r.call(t),t.value=null)},o.has("S")?100:1e3))};return u.onMounted(()=>{w()}),u.onUnmounted(()=>{var i;(i=t.value)==null||i.call(t)}),()=>u.createVNode("div",{class:"devui-countdown"},[n.slots.default?n.slots.default():u.createVNode("div",{class:"countdown-content",style:e.valueStyle},[u.createVNode("span",{class:"countdown-prefix"},[e.prefix]),u.createVNode("span",{class:"countdown-value"},[a.value]),u.createVNode("span",{class:"countdown-suffix"},[e.suffix])])])}}),H={title:"Countdown \u5012\u8BA1\u65F6",category:"\u6570\u636E\u5C55\u793A",status:"100%",install(e){e.component(h.name,h)}};c.Countdown=h,c.countdownProps=S,c.default=H,Object.defineProperty(c,"__esModule",{value:!0}),c[Symbol.toStringTag]="Module"});
1
+ (function(i,u){typeof exports=="object"&&typeof module!="undefined"?u(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],u):(i=typeof globalThis!="undefined"?globalThis:i||self,u(i.index={},i.Vue))})(this,function(i,u){"use strict";const S={value:{type:Number,required:!0},format:{type:String,default:"HH:mm:ss"},prefix:{type:String,default:""},suffix:{type:String,default:""},valueStyle:{type:Object,default:()=>({})}},M=e=>{const n=new Map([["Y",0],["M",0],["D",0],["H",0],["m",0],["s",0],["S",0]]),t=Math.floor(e/(365*24*60*60*1e3)),o=Math.floor(e/(30*24*60*60*1e3)%12),s=Math.floor(e/(24*60*60*1e3)%30),a=Math.floor(e/(60*60*1e3)%24),d=Math.floor(e/(60*1e3)%60),l=Math.floor(e/1e3%60),w=e%1e3;return n.set("Y",t),n.set("M",o),n.set("D",s),n.set("H",a),n.set("m",d),n.set("s",l),n.set("S",w),n},p=(e,n)=>{const t=new Map([["Y",0],["M",0],["D",0],["H",0],["m",0],["s",0],["S",0]]),o=new Map([["Y",12],["M",30],["D",24],["H",60],["m",60],["s",1e3],["S",1]]);let s=0;for(const a of t.keys())e.has(a)?(t.set(a,(n.get(a)||0)+s),s=0):s+=(n.get(a)||0)*(o.get(a)||0);return!e.has("S")&&(n.get("S")||0)>500&&t.set("s",(t.get("s")||0)+1),t},y=e=>{const n=new Set(["Y","M","D","H","m","s","S"]),t=[];for(let o=0;o<e.length;o++){const s=e[o];t.length===0||t[t.length-1].k!==s||!n.has(s)?t.push({k:s,n:1}):t[t.length-1].n++}return t},T=e=>{const n=new Set(["Y","M","D","H","m","s","S"]),t=new Set;for(let o=0;o<e.length;o++){const s=e[o];n.has(s)&&t.add(s)}return t},D=(e,n)=>{const t=10**n-1;if(e>=t)return e;{const o=n-e.toString().length;let s="";for(let a=0;a<o;a++)s+="0";return s+e}},v=(e,n=0)=>{let t=1,o;const s=Date.now();function a(){const d=Date.now(),l=s+t*n;o=setTimeout(a,n-(d-l)),t+=1,e()}return o=setTimeout(a,n),()=>{clearTimeout(o)}};var k="",h=u.defineComponent({name:"DCountdown",props:S,emits:["onChange","onFinish"],setup(e,n){const t=u.ref(),o=T(e.format),s=y(e.format),a=u.ref(""),d=c=>{const r=new Set(["Y","M","D","H","m","s","S"]),m=s.reduce((f,g)=>r.has(g.k)?f+D(c.get(g.k)||0,g.n):f+g.k,"");a.value=m},l=()=>{const c=new Date(e.value).getTime(),r=c>new Date().getTime()?c-new Date().getTime():0,m=M(r),f=p(o,m);return!n.slots.default&&d(f),n.emit("onChange",{leftTime:r,formatTime:m,legalTime:f}),r},w=()=>{l(),!t.value&&(t.value=v(()=>{var r;l()===0&&(n.emit("onFinish"),(r=t.value)==null||r.call(t),t.value=null)},o.has("S")?100:1e3))};return u.onMounted(()=>{w()}),u.onUnmounted(()=>{var c;(c=t.value)==null||c.call(t)}),()=>u.createVNode("div",{class:"devui-countdown"},[n.slots.default?n.slots.default():u.createVNode("div",{class:"countdown-content",style:e.valueStyle},[u.createVNode("span",{class:"countdown-prefix"},[e.prefix]),u.createVNode("span",{class:"countdown-value"},[a.value]),u.createVNode("span",{class:"countdown-suffix"},[e.suffix])])])}}),H={title:"Countdown \u5012\u8BA1\u65F6",category:"\u6570\u636E\u5C55\u793A",status:"100%",install(e){e.component(h.name,h)}};i.Countdown=h,i.countdownProps=S,i.default=H,Object.defineProperties(i,{__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 { defineComponent, watch, provide, reactive, toRefs, createVNode, onUnmounted, Transition, mergeProps, ref, unref, nextTick, Comment, Text, h, Fragment, inject, withDirectives, cloneVNode, computed, onMounted, Teleport, createTextVNode, onBeforeUnmount, shallowRef, resolveDynamicComponent, getCurrentInstance, onBeforeMount, isVNode, onUpdated, toRaw, watchEffect, render, resolveDirective, toRef, renderSlot, useSlots } from "vue";
1
+ import { defineComponent, watch, provide, reactive, toRefs, createVNode, onUnmounted, Transition, mergeProps, ref, nextTick, unref, Comment, Text, Fragment, h, inject, withDirectives, cloneVNode, computed, onMounted, Teleport, withModifiers, createTextVNode, onBeforeUnmount, shallowRef, resolveDynamicComponent, getCurrentInstance, onBeforeMount, isVNode, onUpdated, toRaw, watchEffect, render, resolveDirective, toRef, renderSlot, useSlots } from "vue";
37
2
  import { onClickOutside } from "@vueuse/core";
38
3
  import { offset, autoPlacement, arrow, shift, computePosition } from "@floating-ui/dom";
39
4
  const datePickerProCommonProps = {
@@ -64,7 +29,7 @@ const datePickerProCommonProps = {
64
29
  default: "date"
65
30
  }
66
31
  };
67
- const datePickerProProps = __spreadValues({
32
+ const datePickerProProps = {
68
33
  modelValue: {
69
34
  type: [Date, String],
70
35
  default: ""
@@ -72,9 +37,10 @@ const datePickerProProps = __spreadValues({
72
37
  placeholder: {
73
38
  type: String,
74
39
  default: ""
75
- }
76
- }, datePickerProCommonProps);
77
- const datePickerProPanelProps = __spreadValues({
40
+ },
41
+ ...datePickerProCommonProps
42
+ };
43
+ const datePickerProPanelProps = {
78
44
  visible: {
79
45
  type: Boolean,
80
46
  default: false
@@ -89,8 +55,9 @@ const datePickerProPanelProps = __spreadValues({
89
55
  focusType: {
90
56
  type: String,
91
57
  default: "start"
92
- }
93
- }, datePickerProCommonProps);
58
+ },
59
+ ...datePickerProCommonProps
60
+ };
94
61
  const timerPickerPanelProps = {
95
62
  visible: {
96
63
  type: Boolean,
@@ -123,7 +90,7 @@ var dayjs_min = { exports: {} };
123
90
  }, p: function(t2) {
124
91
  return { M: f, y: c, w: o, d: a, D: d, h: u, m: s, s: i, ms: r, Q: h2 }[t2] || String(t2 || "").toLowerCase().replace(/s$/, "");
125
92
  }, u: function(t2) {
126
- return t2 === void 0;
93
+ return void 0 === t2;
127
94
  } }, v = "en", D = {};
128
95
  D[v] = M;
129
96
  var p = function(t2) {
@@ -132,7 +99,7 @@ var dayjs_min = { exports: {} };
132
99
  var i2;
133
100
  if (!e2)
134
101
  return v;
135
- if (typeof e2 == "string") {
102
+ if ("string" == typeof e2) {
136
103
  var s2 = e2.toLowerCase();
137
104
  D[s2] && (i2 = s2), n2 && (D[s2] = n2, i2 = s2);
138
105
  var u2 = e2.split("-");
@@ -146,7 +113,7 @@ var dayjs_min = { exports: {} };
146
113
  }, w = function(t2, e2) {
147
114
  if (p(t2))
148
115
  return t2.clone();
149
- var n2 = typeof e2 == "object" ? e2 : {};
116
+ var n2 = "object" == typeof e2 ? e2 : {};
150
117
  return n2.date = t2, n2.args = arguments, new _(n2);
151
118
  }, O = g;
152
119
  O.l = S, O.i = p, O.w = function(t2, e2) {
@@ -160,13 +127,13 @@ var dayjs_min = { exports: {} };
160
127
  return m2.parse = function(t2) {
161
128
  this.$d = function(t3) {
162
129
  var e2 = t3.date, n2 = t3.utc;
163
- if (e2 === null)
130
+ if (null === e2)
164
131
  return new Date(NaN);
165
132
  if (O.u(e2))
166
133
  return new Date();
167
134
  if (e2 instanceof Date)
168
135
  return new Date(e2);
169
- if (typeof e2 == "string" && !/Z$/i.test(e2)) {
136
+ if ("string" == typeof e2 && !/Z$/i.test(e2)) {
170
137
  var r2 = e2.match(l);
171
138
  if (r2) {
172
139
  var i2 = r2[2] - 1 || 0, s2 = (r2[7] || "0").substring(0, 3);
@@ -308,6 +275,17 @@ var dayjs_min = { exports: {} };
308
275
  });
309
276
  })(dayjs_min);
310
277
  var dayjs = dayjs_min.exports;
278
+ const DAY_DURATION = 24 * 60 * 60 * 1e3;
279
+ const yearItemHeight = 30;
280
+ const calendarItemHeight = 186;
281
+ const yearListHeight = 305;
282
+ const calendarListHeight = 270;
283
+ const monthPickerHeight = 300;
284
+ const monthCalendarItemHeight = 186;
285
+ const yearPickerHeight = 186;
286
+ const yearCalendarItemHeight = 48;
287
+ const DEFAULT_DATE = "YYYY/MM/DD";
288
+ const DEFAULT_TIME = `${DEFAULT_DATE} HH:mm:ss`;
311
289
  const formatDayjsToStr = (date4, format2, type4) => {
312
290
  if (!date4) {
313
291
  return null;
@@ -318,7 +296,7 @@ const formatDayjsToStr = (date4, format2, type4) => {
318
296
  const month = date4.month() + 1 < 10 ? "0" + (date4.month() + 1) : date4.month() + 1;
319
297
  return `${date4.year()}-${month}`;
320
298
  } else {
321
- return date4.format(format2);
299
+ return dayjs(date4.format(format2)).isValid() ? date4.format(format2) : date4.format(DEFAULT_DATE);
322
300
  }
323
301
  };
324
302
  const isDateEquals = (pre, cur) => {
@@ -1123,7 +1101,7 @@ var lodash = { exports: {} };
1123
1101
  var objectCtorString = funcToString.call(Object2);
1124
1102
  var oldDash = root._;
1125
1103
  var reIsNative = RegExp2("^" + funcToString.call(hasOwnProperty).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
1126
- 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;
1104
+ 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;
1127
1105
  var defineProperty = function() {
1128
1106
  try {
1129
1107
  var func = getNative(Object2, "defineProperty");
@@ -1133,11 +1111,11 @@ var lodash = { exports: {} };
1133
1111
  }
1134
1112
  }();
1135
1113
  var ctxClearTimeout = context.clearTimeout !== root.clearTimeout && context.clearTimeout, ctxNow = Date2 && Date2.now !== root.Date.now && Date2.now, ctxSetTimeout = context.setTimeout !== root.setTimeout && context.setTimeout;
1136
- 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;
1137
- 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");
1138
- var metaMap = WeakMap2 && new WeakMap2();
1114
+ 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;
1115
+ 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");
1116
+ var metaMap = WeakMap && new WeakMap();
1139
1117
  var realNames = {};
1140
- var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map2), promiseCtorString = toSource(Promise2), setCtorString = toSource(Set2), weakMapCtorString = toSource(WeakMap2);
1118
+ var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map2), promiseCtorString = toSource(Promise2), setCtorString = toSource(Set2), weakMapCtorString = toSource(WeakMap);
1141
1119
  var symbolProto = Symbol2 ? Symbol2.prototype : undefined$1, symbolValueOf = symbolProto ? symbolProto.valueOf : undefined$1, symbolToString = symbolProto ? symbolProto.toString : undefined$1;
1142
1120
  function lodash2(value) {
1143
1121
  if (isObjectLike(value) && !isArray(value) && !(value instanceof LazyWrapper)) {
@@ -2385,7 +2363,7 @@ var lodash = { exports: {} };
2385
2363
  }
2386
2364
  function cloneArrayBuffer(arrayBuffer) {
2387
2365
  var result2 = new arrayBuffer.constructor(arrayBuffer.byteLength);
2388
- new Uint8Array2(result2).set(new Uint8Array2(arrayBuffer));
2366
+ new Uint8Array(result2).set(new Uint8Array(arrayBuffer));
2389
2367
  return result2;
2390
2368
  }
2391
2369
  function cloneDataView(dataView, isDeep) {
@@ -2967,7 +2945,7 @@ var lodash = { exports: {} };
2967
2945
  object4 = object4.buffer;
2968
2946
  other = other.buffer;
2969
2947
  case arrayBufferTag:
2970
- if (object4.byteLength != other.byteLength || !equalFunc(new Uint8Array2(object4), new Uint8Array2(other))) {
2948
+ if (object4.byteLength != other.byteLength || !equalFunc(new Uint8Array(object4), new Uint8Array(other))) {
2971
2949
  return false;
2972
2950
  }
2973
2951
  return true;
@@ -3129,7 +3107,7 @@ var lodash = { exports: {} };
3129
3107
  return result2;
3130
3108
  };
3131
3109
  var getTag = baseGetTag;
3132
- 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) {
3110
+ 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) {
3133
3111
  getTag = function(value) {
3134
3112
  var result2 = baseGetTag(value), Ctor = result2 == objectTag ? value.constructor : undefined$1, ctorString = Ctor ? toSource(Ctor) : "";
3135
3113
  if (ctorString) {
@@ -5846,7 +5824,10 @@ function useFormValidation(itemContexts) {
5846
5824
  try {
5847
5825
  await field.validate("");
5848
5826
  } catch (err) {
5849
- errors = __spreadValues(__spreadValues({}, errors), err);
5827
+ errors = {
5828
+ ...errors,
5829
+ ...err
5830
+ };
5850
5831
  }
5851
5832
  }
5852
5833
  if (!Object.keys(errors).length) {
@@ -5903,11 +5884,12 @@ defineComponent({
5903
5884
  }, {
5904
5885
  deep: true
5905
5886
  });
5906
- provide(FORM_TOKEN, reactive(__spreadProps(__spreadValues({}, toRefs(props)), {
5887
+ provide(FORM_TOKEN, reactive({
5888
+ ...toRefs(props),
5907
5889
  emit: ctx.emit,
5908
5890
  addItemContext,
5909
5891
  removeItemContext
5910
- })));
5892
+ }));
5911
5893
  ctx.expose({
5912
5894
  validate,
5913
5895
  validateFields,
@@ -6570,6 +6552,8 @@ var Popover = defineComponent({
6570
6552
  "style": overlayStyles.value
6571
6553
  }, attrs, {
6572
6554
  "onPositionChange": handlePositionChange,
6555
+ "onClick": withModifiers(() => ({}), ["stop"]),
6556
+ "onPointerup": withModifiers(() => ({}), ["stop"]),
6573
6557
  "onMouseenter": onMouseenter,
6574
6558
  "onMouseleave": onMouseleave
6575
6559
  }), {
@@ -6784,7 +6768,7 @@ var FormControl = defineComponent({
6784
6768
  }
6785
6769
  });
6786
6770
  function _extends() {
6787
- _extends = Object.assign || function(target) {
6771
+ _extends = Object.assign ? Object.assign.bind() : function(target) {
6788
6772
  for (var i = 1; i < arguments.length; i++) {
6789
6773
  var source = arguments[i];
6790
6774
  for (var key in source) {
@@ -6803,13 +6787,13 @@ function _inheritsLoose(subClass, superClass) {
6803
6787
  _setPrototypeOf(subClass, superClass);
6804
6788
  }
6805
6789
  function _getPrototypeOf(o) {
6806
- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf2(o2) {
6790
+ _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf2(o2) {
6807
6791
  return o2.__proto__ || Object.getPrototypeOf(o2);
6808
6792
  };
6809
6793
  return _getPrototypeOf(o);
6810
6794
  }
6811
6795
  function _setPrototypeOf(o, p) {
6812
- _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf2(o2, p2) {
6796
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o2, p2) {
6813
6797
  o2.__proto__ = p2;
6814
6798
  return o2;
6815
6799
  };
@@ -6832,7 +6816,7 @@ function _isNativeReflectConstruct() {
6832
6816
  }
6833
6817
  function _construct(Parent, args, Class) {
6834
6818
  if (_isNativeReflectConstruct()) {
6835
- _construct = Reflect.construct;
6819
+ _construct = Reflect.construct.bind();
6836
6820
  } else {
6837
6821
  _construct = function _construct2(Parent2, args2, Class2) {
6838
6822
  var a = [null];
@@ -7110,9 +7094,45 @@ var whitespace = function whitespace2(rule, value, source, errors, options) {
7110
7094
  errors.push(format(options.messages.whitespace, rule.fullField));
7111
7095
  }
7112
7096
  };
7097
+ var urlReg;
7098
+ var getUrlRegex = function() {
7099
+ if (urlReg) {
7100
+ return urlReg;
7101
+ }
7102
+ var word = "[a-fA-F\\d:]";
7103
+ var b = function b2(options) {
7104
+ return options && options.includeBoundaries ? "(?:(?<=\\s|^)(?=" + word + ")|(?<=" + word + ")(?=\\s|$))" : "";
7105
+ };
7106
+ 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}";
7107
+ var v6seg = "[a-fA-F\\d]{1,4}";
7108
+ 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();
7109
+ var v46Exact = new RegExp("(?:^" + v4 + "$)|(?:^" + v6 + "$)");
7110
+ var v4exact = new RegExp("^" + v4 + "$");
7111
+ var v6exact = new RegExp("^" + v6 + "$");
7112
+ var ip = function ip2(options) {
7113
+ return options && options.exact ? v46Exact : new RegExp("(?:" + b(options) + v4 + b(options) + ")|(?:" + b(options) + v6 + b(options) + ")", "g");
7114
+ };
7115
+ ip.v4 = function(options) {
7116
+ return options && options.exact ? v4exact : new RegExp("" + b(options) + v4 + b(options), "g");
7117
+ };
7118
+ ip.v6 = function(options) {
7119
+ return options && options.exact ? v6exact : new RegExp("" + b(options) + v6 + b(options), "g");
7120
+ };
7121
+ var protocol = "(?:(?:[a-z]+:)?//)";
7122
+ var auth = "(?:\\S+(?::\\S*)?@)?";
7123
+ var ipv4 = ip.v4().source;
7124
+ var ipv6 = ip.v6().source;
7125
+ var host = "(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)";
7126
+ var domain = "(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*";
7127
+ var tld = "(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))";
7128
+ var port = "(?::\\d{2,5})?";
7129
+ var path = '(?:[/?#][^\\s"]*)?';
7130
+ var regex = "(?:" + protocol + "|www\\.)" + auth + "(?:localhost|" + ipv4 + "|" + ipv6 + "|" + host + domain + tld + ")" + port + path;
7131
+ urlReg = new RegExp("(?:^" + regex + "$)", "i");
7132
+ return urlReg;
7133
+ };
7113
7134
  var pattern$2 = {
7114
7135
  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,}))$/,
7115
- 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"),
7116
7136
  hex: /^#?([a-f0-9]{6}|[a-f0-9]{3})$/i
7117
7137
  };
7118
7138
  var types = {
@@ -7154,7 +7174,7 @@ var types = {
7154
7174
  return typeof value === "string" && value.length <= 320 && !!value.match(pattern$2.email);
7155
7175
  },
7156
7176
  url: function url(value) {
7157
- return typeof value === "string" && value.length <= 2048 && !!value.match(pattern$2.url);
7177
+ return typeof value === "string" && value.length <= 2048 && !!value.match(getUrlRegex());
7158
7178
  },
7159
7179
  hex: function hex(value) {
7160
7180
  return typeof value === "string" && !!value.match(pattern$2.hex);
@@ -7729,7 +7749,17 @@ var Schema = /* @__PURE__ */ function() {
7729
7749
  if (rule.asyncValidator) {
7730
7750
  res = rule.asyncValidator(rule, data.value, cb, data.source, options);
7731
7751
  } else if (rule.validator) {
7732
- res = rule.validator(rule, data.value, cb, data.source, options);
7752
+ try {
7753
+ res = rule.validator(rule, data.value, cb, data.source, options);
7754
+ } catch (error) {
7755
+ console.error == null ? void 0 : console.error(error);
7756
+ if (!options.suppressValidatorError) {
7757
+ setTimeout(function() {
7758
+ throw error;
7759
+ }, 0);
7760
+ }
7761
+ cb(error.message);
7762
+ }
7733
7763
  if (res === true) {
7734
7764
  cb();
7735
7765
  } else if (res === false) {
@@ -7850,10 +7880,7 @@ function useFormItemValidate(props, _rules) {
7850
7880
  } else {
7851
7881
  return rule.trigger === triggerVal;
7852
7882
  }
7853
- }).map((_a) => {
7854
- var rule = __objRest(_a, []);
7855
- return rule;
7856
- });
7883
+ }).map(({ ...rule }) => rule);
7857
7884
  };
7858
7885
  const onValidateSuccess = () => {
7859
7886
  validateState.value = "success";
@@ -7926,15 +7953,12 @@ defineComponent({
7926
7953
  props: formItemProps,
7927
7954
  setup(props, ctx) {
7928
7955
  const formContext = inject(FORM_TOKEN);
7929
- const _a = toRefs(props), {
7956
+ const {
7930
7957
  messageType: itemMessageType,
7931
7958
  popPosition: itemPopPosition,
7932
- showFeedback: itemShowFeedback
7933
- } = _a, otherProps = __objRest(_a, [
7934
- "messageType",
7935
- "popPosition",
7936
- "showFeedback"
7937
- ]);
7959
+ showFeedback: itemShowFeedback,
7960
+ ...otherProps
7961
+ } = toRefs(props);
7938
7962
  const {
7939
7963
  label,
7940
7964
  helpTips,
@@ -7964,7 +7988,8 @@ defineComponent({
7964
7988
  labelAlign: formContext.labelAlign
7965
7989
  }));
7966
7990
  provide(LABEL_DATA, labelData);
7967
- const context = reactive(__spreadProps(__spreadValues({}, otherProps), {
7991
+ const context = reactive({
7992
+ ...otherProps,
7968
7993
  showFeedback,
7969
7994
  messageType,
7970
7995
  popPosition,
@@ -7974,7 +7999,7 @@ defineComponent({
7974
7999
  validate,
7975
8000
  resetField,
7976
8001
  clearValidate
7977
- }));
8002
+ });
7978
8003
  provide(FORM_ITEM_TOKEN, context);
7979
8004
  ctx.expose({
7980
8005
  resetField,
@@ -7999,8 +8024,8 @@ defineComponent({
7999
8024
  "extra-info": extraInfo.value
8000
8025
  }, {
8001
8026
  default: () => {
8002
- var _a2, _b;
8003
- return [(_b = (_a2 = ctx.slots).default) == null ? void 0 : _b.call(_a2)];
8027
+ var _a, _b;
8028
+ return [(_b = (_a = ctx.slots).default) == null ? void 0 : _b.call(_a)];
8004
8029
  }
8005
8030
  })]);
8006
8031
  }
@@ -8056,7 +8081,7 @@ function usePickerPro(props, ctx, t) {
8056
8081
  ctx.emit("focus", e);
8057
8082
  };
8058
8083
  const format2 = computed(() => {
8059
- return props.showTime ? props.format || "YYYY/MM/DD HH:mm:ss" : props.format || "YYYY/MM/DD";
8084
+ return props.showTime ? props.format || DEFAULT_TIME : props.format || DEFAULT_DATE;
8060
8085
  });
8061
8086
  const dateValue = computed(() => {
8062
8087
  let result;
@@ -8344,7 +8369,7 @@ function useInputRender(props, ctx) {
8344
8369
  const slots = ctx.slots;
8345
8370
  const inputDisabled = computed(() => disabled.value || (formContext == null ? void 0 : formContext.disabled));
8346
8371
  const inputSize = computed(() => (size == null ? void 0 : size.value) || (formContext == null ? void 0 : formContext.size) || "");
8347
- const _a = ctx.attrs, { style, class: customClass } = _a, otherAttrs = __objRest(_a, ["style", "class"]);
8372
+ const { style, class: customClass, ...otherAttrs } = ctx.attrs;
8348
8373
  const customStyle = { style };
8349
8374
  const wrapClasses = computed(() => ({
8350
8375
  [ns2.e("wrapper")]: true,
@@ -8683,15 +8708,6 @@ var Input = defineComponent({
8683
8708
  };
8684
8709
  }
8685
8710
  });
8686
- const DAY_DURATION = 24 * 60 * 60 * 1e3;
8687
- const yearItemHeight = 30;
8688
- const calendarItemHeight = 186;
8689
- const yearListHeight = 305;
8690
- const calendarListHeight = 270;
8691
- const monthPickerHeight = 300;
8692
- const monthCalendarItemHeight = 186;
8693
- const yearPickerHeight = 186;
8694
- const yearCalendarItemHeight = 48;
8695
8711
  function useCalendarSelected(props, ctx) {
8696
8712
  const today = ref(new Date());
8697
8713
  const calendarRange = ref([]);
@@ -9391,10 +9407,11 @@ var ResizeObserver$1 = defineComponent({
9391
9407
  Object.assign(state, size);
9392
9408
  if (onResize) {
9393
9409
  Promise.resolve().then(() => {
9394
- onResize(__spreadProps(__spreadValues({}, size), {
9410
+ onResize({
9411
+ ...size,
9395
9412
  offsetWidth,
9396
9413
  offsetHeight
9397
- }), target);
9414
+ }, target);
9398
9415
  });
9399
9416
  }
9400
9417
  }
@@ -9457,13 +9474,14 @@ var ResizeObserverContainer = defineComponent({
9457
9474
  position: "relative",
9458
9475
  overflow: "hidden"
9459
9476
  };
9460
- innerStyle.value = __spreadProps(__spreadValues({}, innerStyle.value), {
9477
+ innerStyle.value = {
9478
+ ...innerStyle.value,
9461
9479
  transform: `translateY(${offset2.value}px)`,
9462
9480
  position: "absolute",
9463
9481
  left: 0,
9464
9482
  right: 0,
9465
9483
  top: 0
9466
- });
9484
+ };
9467
9485
  }
9468
9486
  }, {
9469
9487
  immediate: true
@@ -9951,9 +9969,10 @@ var VirtualList = defineComponent({
9951
9969
  const componentStyle = computed(() => {
9952
9970
  let cs = null;
9953
9971
  if (props.height) {
9954
- cs = __spreadValues({
9955
- maxHeight: isVirtual.value ? props.height + "px" : void 0
9956
- }, ScrollStyle);
9972
+ cs = {
9973
+ maxHeight: isVirtual.value ? props.height + "px" : void 0,
9974
+ ...ScrollStyle
9975
+ };
9957
9976
  if (isVirtual.value) {
9958
9977
  cs.overflowY = "hidden";
9959
9978
  if (state.scrollMoving) {
@@ -10695,8 +10714,8 @@ defineComponent({
10695
10714
  });
10696
10715
  class View {
10697
10716
  constructor() {
10698
- __publicField(this, "top", "50%");
10699
- __publicField(this, "left", "50%");
10717
+ this.top = "50%";
10718
+ this.left = "50%";
10700
10719
  }
10701
10720
  }
10702
10721
  const loadingProps = {
@@ -10714,13 +10733,9 @@ const loadingProps = {
10714
10733
  };
10715
10734
  class LoadingOptions {
10716
10735
  constructor() {
10717
- __publicField(this, "target");
10718
- __publicField(this, "message");
10719
- __publicField(this, "loadingTemplateRef");
10720
- __publicField(this, "backdrop", true);
10721
- __publicField(this, "positionType", "relative");
10722
- __publicField(this, "view", new View());
10723
- __publicField(this, "zIndex");
10736
+ this.backdrop = true;
10737
+ this.positionType = "relative";
10738
+ this.view = new View();
10724
10739
  }
10725
10740
  }
10726
10741
  var loading = "";
@@ -10788,7 +10803,7 @@ var Loading = defineComponent({
10788
10803
  });
10789
10804
  const COMPONENT_CONTAINER_SYMBOL = Symbol("dev_component_container");
10790
10805
  function createComponent(component, props, children = null) {
10791
- const vnode = h(component, __spreadValues({}, props), children);
10806
+ const vnode = h(component, { ...props }, children);
10792
10807
  const container = document.createElement("div");
10793
10808
  vnode[COMPONENT_CONTAINER_SYMBOL] = container;
10794
10809
  render(vnode, container);
@@ -10875,9 +10890,12 @@ const removeAttribute = (el) => {
10875
10890
  };
10876
10891
  const handleProps = (el, vprops) => {
10877
10892
  var _a;
10878
- const props = __spreadValues(__spreadValues({}, new LoadingOptions()), vprops);
10893
+ const props = {
10894
+ ...new LoadingOptions(),
10895
+ ...vprops
10896
+ };
10879
10897
  const loadingTemplateRef = props.loadingTemplateRef;
10880
- const loadingInstance = createComponent(loadingConstructor, __spreadValues({}, props), loadingTemplateRef ? () => loadingTemplateRef : null);
10898
+ const loadingInstance = createComponent(loadingConstructor, { ...props }, loadingTemplateRef ? () => loadingTemplateRef : null);
10881
10899
  el.style.position = props.positionType;
10882
10900
  el.options = props;
10883
10901
  el.instance = loadingInstance;
@@ -11753,7 +11771,7 @@ var DatePickerPro = defineComponent({
11753
11771
  };
11754
11772
  }
11755
11773
  });
11756
- const rangeDatePickerProProps = __spreadValues({
11774
+ const rangeDatePickerProProps = {
11757
11775
  modelValue: {
11758
11776
  type: Array,
11759
11777
  default: ["", ""]
@@ -11765,8 +11783,9 @@ const rangeDatePickerProProps = __spreadValues({
11765
11783
  separator: {
11766
11784
  type: String,
11767
11785
  default: "-"
11768
- }
11769
- }, datePickerProCommonProps);
11786
+ },
11787
+ ...datePickerProCommonProps
11788
+ };
11770
11789
  function useRangePickerPro(props, ctx) {
11771
11790
  const formContext = inject(FORM_TOKEN, void 0);
11772
11791
  const formItemContext = inject(FORM_ITEM_TOKEN, void 0);