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,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, withModifiers, 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,
@@ -6786,7 +6768,7 @@ var FormControl = defineComponent({
6786
6768
  }
6787
6769
  });
6788
6770
  function _extends() {
6789
- _extends = Object.assign || function(target) {
6771
+ _extends = Object.assign ? Object.assign.bind() : function(target) {
6790
6772
  for (var i = 1; i < arguments.length; i++) {
6791
6773
  var source = arguments[i];
6792
6774
  for (var key in source) {
@@ -6805,13 +6787,13 @@ function _inheritsLoose(subClass, superClass) {
6805
6787
  _setPrototypeOf(subClass, superClass);
6806
6788
  }
6807
6789
  function _getPrototypeOf(o) {
6808
- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf2(o2) {
6790
+ _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf2(o2) {
6809
6791
  return o2.__proto__ || Object.getPrototypeOf(o2);
6810
6792
  };
6811
6793
  return _getPrototypeOf(o);
6812
6794
  }
6813
6795
  function _setPrototypeOf(o, p) {
6814
- _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf2(o2, p2) {
6796
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o2, p2) {
6815
6797
  o2.__proto__ = p2;
6816
6798
  return o2;
6817
6799
  };
@@ -6834,7 +6816,7 @@ function _isNativeReflectConstruct() {
6834
6816
  }
6835
6817
  function _construct(Parent, args, Class) {
6836
6818
  if (_isNativeReflectConstruct()) {
6837
- _construct = Reflect.construct;
6819
+ _construct = Reflect.construct.bind();
6838
6820
  } else {
6839
6821
  _construct = function _construct2(Parent2, args2, Class2) {
6840
6822
  var a = [null];
@@ -7112,9 +7094,45 @@ var whitespace = function whitespace2(rule, value, source, errors, options) {
7112
7094
  errors.push(format(options.messages.whitespace, rule.fullField));
7113
7095
  }
7114
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
+ };
7115
7134
  var pattern$2 = {
7116
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,}))$/,
7117
- 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"),
7118
7136
  hex: /^#?([a-f0-9]{6}|[a-f0-9]{3})$/i
7119
7137
  };
7120
7138
  var types = {
@@ -7156,7 +7174,7 @@ var types = {
7156
7174
  return typeof value === "string" && value.length <= 320 && !!value.match(pattern$2.email);
7157
7175
  },
7158
7176
  url: function url(value) {
7159
- return typeof value === "string" && value.length <= 2048 && !!value.match(pattern$2.url);
7177
+ return typeof value === "string" && value.length <= 2048 && !!value.match(getUrlRegex());
7160
7178
  },
7161
7179
  hex: function hex(value) {
7162
7180
  return typeof value === "string" && !!value.match(pattern$2.hex);
@@ -7731,7 +7749,17 @@ var Schema = /* @__PURE__ */ function() {
7731
7749
  if (rule.asyncValidator) {
7732
7750
  res = rule.asyncValidator(rule, data.value, cb, data.source, options);
7733
7751
  } else if (rule.validator) {
7734
- 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
+ }
7735
7763
  if (res === true) {
7736
7764
  cb();
7737
7765
  } else if (res === false) {
@@ -7852,10 +7880,7 @@ function useFormItemValidate(props, _rules) {
7852
7880
  } else {
7853
7881
  return rule.trigger === triggerVal;
7854
7882
  }
7855
- }).map((_a) => {
7856
- var rule = __objRest(_a, []);
7857
- return rule;
7858
- });
7883
+ }).map(({ ...rule }) => rule);
7859
7884
  };
7860
7885
  const onValidateSuccess = () => {
7861
7886
  validateState.value = "success";
@@ -7928,15 +7953,12 @@ defineComponent({
7928
7953
  props: formItemProps,
7929
7954
  setup(props, ctx) {
7930
7955
  const formContext = inject(FORM_TOKEN);
7931
- const _a = toRefs(props), {
7956
+ const {
7932
7957
  messageType: itemMessageType,
7933
7958
  popPosition: itemPopPosition,
7934
- showFeedback: itemShowFeedback
7935
- } = _a, otherProps = __objRest(_a, [
7936
- "messageType",
7937
- "popPosition",
7938
- "showFeedback"
7939
- ]);
7959
+ showFeedback: itemShowFeedback,
7960
+ ...otherProps
7961
+ } = toRefs(props);
7940
7962
  const {
7941
7963
  label,
7942
7964
  helpTips,
@@ -7966,7 +7988,8 @@ defineComponent({
7966
7988
  labelAlign: formContext.labelAlign
7967
7989
  }));
7968
7990
  provide(LABEL_DATA, labelData);
7969
- const context = reactive(__spreadProps(__spreadValues({}, otherProps), {
7991
+ const context = reactive({
7992
+ ...otherProps,
7970
7993
  showFeedback,
7971
7994
  messageType,
7972
7995
  popPosition,
@@ -7976,7 +7999,7 @@ defineComponent({
7976
7999
  validate,
7977
8000
  resetField,
7978
8001
  clearValidate
7979
- }));
8002
+ });
7980
8003
  provide(FORM_ITEM_TOKEN, context);
7981
8004
  ctx.expose({
7982
8005
  resetField,
@@ -8001,8 +8024,8 @@ defineComponent({
8001
8024
  "extra-info": extraInfo.value
8002
8025
  }, {
8003
8026
  default: () => {
8004
- var _a2, _b;
8005
- 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)];
8006
8029
  }
8007
8030
  })]);
8008
8031
  }
@@ -8058,7 +8081,7 @@ function usePickerPro(props, ctx, t) {
8058
8081
  ctx.emit("focus", e);
8059
8082
  };
8060
8083
  const format2 = computed(() => {
8061
- 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;
8062
8085
  });
8063
8086
  const dateValue = computed(() => {
8064
8087
  let result;
@@ -8346,7 +8369,7 @@ function useInputRender(props, ctx) {
8346
8369
  const slots = ctx.slots;
8347
8370
  const inputDisabled = computed(() => disabled.value || (formContext == null ? void 0 : formContext.disabled));
8348
8371
  const inputSize = computed(() => (size == null ? void 0 : size.value) || (formContext == null ? void 0 : formContext.size) || "");
8349
- const _a = ctx.attrs, { style, class: customClass } = _a, otherAttrs = __objRest(_a, ["style", "class"]);
8372
+ const { style, class: customClass, ...otherAttrs } = ctx.attrs;
8350
8373
  const customStyle = { style };
8351
8374
  const wrapClasses = computed(() => ({
8352
8375
  [ns2.e("wrapper")]: true,
@@ -8685,15 +8708,6 @@ var Input = defineComponent({
8685
8708
  };
8686
8709
  }
8687
8710
  });
8688
- const DAY_DURATION = 24 * 60 * 60 * 1e3;
8689
- const yearItemHeight = 30;
8690
- const calendarItemHeight = 186;
8691
- const yearListHeight = 305;
8692
- const calendarListHeight = 270;
8693
- const monthPickerHeight = 300;
8694
- const monthCalendarItemHeight = 186;
8695
- const yearPickerHeight = 186;
8696
- const yearCalendarItemHeight = 48;
8697
8711
  function useCalendarSelected(props, ctx) {
8698
8712
  const today = ref(new Date());
8699
8713
  const calendarRange = ref([]);
@@ -9393,10 +9407,11 @@ var ResizeObserver$1 = defineComponent({
9393
9407
  Object.assign(state, size);
9394
9408
  if (onResize) {
9395
9409
  Promise.resolve().then(() => {
9396
- onResize(__spreadProps(__spreadValues({}, size), {
9410
+ onResize({
9411
+ ...size,
9397
9412
  offsetWidth,
9398
9413
  offsetHeight
9399
- }), target);
9414
+ }, target);
9400
9415
  });
9401
9416
  }
9402
9417
  }
@@ -9459,13 +9474,14 @@ var ResizeObserverContainer = defineComponent({
9459
9474
  position: "relative",
9460
9475
  overflow: "hidden"
9461
9476
  };
9462
- innerStyle.value = __spreadProps(__spreadValues({}, innerStyle.value), {
9477
+ innerStyle.value = {
9478
+ ...innerStyle.value,
9463
9479
  transform: `translateY(${offset2.value}px)`,
9464
9480
  position: "absolute",
9465
9481
  left: 0,
9466
9482
  right: 0,
9467
9483
  top: 0
9468
- });
9484
+ };
9469
9485
  }
9470
9486
  }, {
9471
9487
  immediate: true
@@ -9953,9 +9969,10 @@ var VirtualList = defineComponent({
9953
9969
  const componentStyle = computed(() => {
9954
9970
  let cs = null;
9955
9971
  if (props.height) {
9956
- cs = __spreadValues({
9957
- maxHeight: isVirtual.value ? props.height + "px" : void 0
9958
- }, ScrollStyle);
9972
+ cs = {
9973
+ maxHeight: isVirtual.value ? props.height + "px" : void 0,
9974
+ ...ScrollStyle
9975
+ };
9959
9976
  if (isVirtual.value) {
9960
9977
  cs.overflowY = "hidden";
9961
9978
  if (state.scrollMoving) {
@@ -10697,8 +10714,8 @@ defineComponent({
10697
10714
  });
10698
10715
  class View {
10699
10716
  constructor() {
10700
- __publicField(this, "top", "50%");
10701
- __publicField(this, "left", "50%");
10717
+ this.top = "50%";
10718
+ this.left = "50%";
10702
10719
  }
10703
10720
  }
10704
10721
  const loadingProps = {
@@ -10716,13 +10733,9 @@ const loadingProps = {
10716
10733
  };
10717
10734
  class LoadingOptions {
10718
10735
  constructor() {
10719
- __publicField(this, "target");
10720
- __publicField(this, "message");
10721
- __publicField(this, "loadingTemplateRef");
10722
- __publicField(this, "backdrop", true);
10723
- __publicField(this, "positionType", "relative");
10724
- __publicField(this, "view", new View());
10725
- __publicField(this, "zIndex");
10736
+ this.backdrop = true;
10737
+ this.positionType = "relative";
10738
+ this.view = new View();
10726
10739
  }
10727
10740
  }
10728
10741
  var loading = "";
@@ -10790,7 +10803,7 @@ var Loading = defineComponent({
10790
10803
  });
10791
10804
  const COMPONENT_CONTAINER_SYMBOL = Symbol("dev_component_container");
10792
10805
  function createComponent(component, props, children = null) {
10793
- const vnode = h(component, __spreadValues({}, props), children);
10806
+ const vnode = h(component, { ...props }, children);
10794
10807
  const container = document.createElement("div");
10795
10808
  vnode[COMPONENT_CONTAINER_SYMBOL] = container;
10796
10809
  render(vnode, container);
@@ -10877,9 +10890,12 @@ const removeAttribute = (el) => {
10877
10890
  };
10878
10891
  const handleProps = (el, vprops) => {
10879
10892
  var _a;
10880
- const props = __spreadValues(__spreadValues({}, new LoadingOptions()), vprops);
10893
+ const props = {
10894
+ ...new LoadingOptions(),
10895
+ ...vprops
10896
+ };
10881
10897
  const loadingTemplateRef = props.loadingTemplateRef;
10882
- const loadingInstance = createComponent(loadingConstructor, __spreadValues({}, props), loadingTemplateRef ? () => loadingTemplateRef : null);
10898
+ const loadingInstance = createComponent(loadingConstructor, { ...props }, loadingTemplateRef ? () => loadingTemplateRef : null);
10883
10899
  el.style.position = props.positionType;
10884
10900
  el.options = props;
10885
10901
  el.instance = loadingInstance;
@@ -11755,7 +11771,7 @@ var DatePickerPro = defineComponent({
11755
11771
  };
11756
11772
  }
11757
11773
  });
11758
- const rangeDatePickerProProps = __spreadValues({
11774
+ const rangeDatePickerProProps = {
11759
11775
  modelValue: {
11760
11776
  type: Array,
11761
11777
  default: ["", ""]
@@ -11767,8 +11783,9 @@ const rangeDatePickerProProps = __spreadValues({
11767
11783
  separator: {
11768
11784
  type: String,
11769
11785
  default: "-"
11770
- }
11771
- }, datePickerProCommonProps);
11786
+ },
11787
+ ...datePickerProCommonProps
11788
+ };
11772
11789
  function useRangePickerPro(props, ctx) {
11773
11790
  const formContext = inject(FORM_TOKEN, void 0);
11774
11791
  const formItemContext = inject(FORM_ITEM_TOKEN, void 0);