x-next 0.0.0-alpha.2 → 0.0.0-alpha.20

Sign up to get free protection for your applications and to get access to all the features.
Files changed (84) hide show
  1. package/README.md +15 -84
  2. package/dist/{types/_hooks → _hooks}/use-overflow.d.ts +1 -1
  3. package/dist/{types/_hooks → _hooks}/use-popup-manager.d.ts +1 -1
  4. package/dist/{types/_utils → _utils}/config.d.ts +1 -1
  5. package/dist/{types/_utils → _utils}/dom.d.ts +1 -1
  6. package/dist/{types/_utils → _utils}/is.d.ts +5 -6
  7. package/dist/{types/_utils → _utils}/keyboard.d.ts +1 -1
  8. package/dist/{types/_utils → _utils}/vue-eco.d.ts +10 -11
  9. package/dist/{types/componets/button/index.vue.d.ts → components/button/Button.d.ts} +18 -28
  10. package/dist/components/button/index.d.ts +181 -0
  11. package/dist/{types/componets → components}/button/props.d.ts +4 -4
  12. package/dist/{types/componets/dialog/index.vue.d.ts → components/dialog/Dialog.d.ts} +9 -42
  13. package/dist/components/dialog/index.d.ts +334 -0
  14. package/dist/{types/componets → components}/dialog/props.d.ts +7 -7
  15. package/dist/{types/componets → components}/dialog/use-props.d.ts +1 -1
  16. package/dist/{types/componets → components}/dialog/use.d.ts +1 -1
  17. package/dist/components/dialog/warp.d.ts +2 -0
  18. package/dist/components/index.d.ts +6 -0
  19. package/dist/{types/componets/message/index.vue.d.ts → components/message/Message.d.ts} +19 -27
  20. package/dist/components/message/MessageVue.vue.d.ts +362 -0
  21. package/dist/components/message/index.d.ts +193 -0
  22. package/dist/{types/componets → components}/message/props.d.ts +1 -1
  23. package/dist/{types/componets → components}/message/warp.d.ts +1 -1
  24. package/dist/{types/componets/message-box/index.d.ts → components/message-box/MessageBox.d.ts} +1 -1
  25. package/dist/components/message-box/index.d.ts +4 -0
  26. package/dist/{types/componets → components}/message-box/props.d.ts +1 -1
  27. package/dist/components/message-box/warp.d.ts +2 -0
  28. package/dist/components/notification/Notification.d.ts +89 -0
  29. package/dist/components/notification/index.d.ts +166 -0
  30. package/dist/{types/componets → components}/notification/props.d.ts +2 -2
  31. package/dist/{types/componets → components}/notification/warp.d.ts +1 -1
  32. package/dist/{types/componets/space/index.d.ts → components/space/Space.d.ts} +9 -9
  33. package/dist/components/space/index.d.ts +82 -0
  34. package/dist/{types/componets → components}/trend-chart/components/trend-chart-curve.d.ts +17 -17
  35. package/dist/{types/componets → components}/trend-chart/components/trend-chart-grid.d.ts +7 -7
  36. package/dist/{types/componets → components}/trend-chart/components/trend-chart-labels.d.ts +7 -7
  37. package/dist/{types/componets → components}/trend-chart/components/trend-chart.d.ts +47 -47
  38. package/dist/{types/componets → components}/trend-chart/helpers/genPoints.d.ts +1 -1
  39. package/dist/components/trend-chart/index.d.ts +2 -0
  40. package/dist/{types/componets → components}/trend-chart/props.d.ts +2 -2
  41. package/dist/directives/clipboard/cache.d.ts +8 -0
  42. package/dist/directives/clipboard/clipboard.d.ts +18 -0
  43. package/dist/directives/clipboard/convert.d.ts +3 -0
  44. package/dist/directives/clipboard/index.d.ts +3 -0
  45. package/dist/directives/clipboard/plugin.d.ts +2 -0
  46. package/dist/directives/clipboard/textarea.d.ts +3 -0
  47. package/dist/{types/icons/default/exclamation-circle-fill.vue.d.ts → icons/animation/animation-loading.d.ts} +5 -10
  48. package/dist/{types/icons/default/close-circle-fill.vue.d.ts → icons/default/check-circle-fill.d.ts} +5 -10
  49. package/dist/{types/icons/animation/animation-loading.vue.d.ts → icons/default/close-circle-fill.d.ts} +5 -10
  50. package/dist/{types/icons/default/check-circle-fill.vue.d.ts → icons/default/exclamation-circle-fill.d.ts} +5 -10
  51. package/dist/icons/default/info-circle-fill.d.ts +50 -0
  52. package/dist/icons/default/minus-circle-fill.d.ts +50 -0
  53. package/dist/icons/icon.d.ts +51 -0
  54. package/dist/icons/index.d.ts +7 -0
  55. package/dist/index.d.ts +12 -0
  56. package/dist/index.es.js +1368 -0
  57. package/dist/index.umd.js +1 -0
  58. package/dist/style.css +1 -0
  59. package/dist/types.d.ts +11 -0
  60. package/package.json +45 -48
  61. package/volar.d.ts +12 -0
  62. package/LICENSE +0 -21
  63. package/dist/favicon.ico +0 -0
  64. package/dist/types/_utils/icon.d.ts +0 -59
  65. package/dist/types/componets/dialog/warp.d.ts +0 -2
  66. package/dist/types/componets/message-box/warp.d.ts +0 -2
  67. package/dist/types/componets/notification/index.vue.d.ts +0 -160
  68. package/dist/types/componets/trend-chart/index.d.ts +0 -2
  69. package/dist/types/icons/default/info-circle-fill.vue.d.ts +0 -55
  70. package/dist/types/icons/default/minus-circle-fill.vue.d.ts +0 -55
  71. package/dist/types/icons/index.d.ts +0 -7
  72. package/dist/types/ui.d.ts +0 -5
  73. package/dist/ui.cjs.js +0 -2
  74. package/dist/ui.es.js +0 -1395
  75. package/dist/ui.umd.js +0 -3
  76. /package/dist/{types/_props → _props}/css.d.ts +0 -0
  77. /package/dist/{types/_props → _props}/global.d.ts +0 -0
  78. /package/dist/{types/_utils → _utils}/convert-case.d.ts +0 -0
  79. /package/dist/{types/_utils → _utils}/helpers.d.ts +0 -0
  80. /package/dist/{types/_utils → _utils}/number.d.ts +0 -0
  81. /package/dist/{types/componets → components}/tag-cloud/index.d.ts +0 -0
  82. /package/dist/{types/componets → components}/trend-chart/helpers/genPath.d.ts +0 -0
  83. /package/dist/{types/componets → components}/trend-chart/helpers/getPadding.d.ts +0 -0
  84. /package/dist/{types/componets → components}/trend-chart/helpers/validatePadding.d.ts +0 -0
@@ -0,0 +1 @@
1
+ (function(C,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],t):(C=typeof globalThis<"u"?globalThis:C||self,t(C.index={},C.Vue))})(this,function(C,t){"use strict";var Ct=Object.defineProperty;var Nt=(C,t,B)=>t in C?Ct(C,t,{enumerable:!0,configurable:!0,writable:!0,value:B}):C[t]=B;var T=(C,t,B)=>Nt(C,typeof t!="symbol"?t+"":t,B);const B="X",pe="x",ee=e=>e?pe+"-"+e:e||"",b=e=>B+e,V=e=>{const n=ee(e);return{block:n,element:c=>`${n}--${c}`,modifier:c=>`${n}-${c}`,is:c=>`${n}-is-${c}`}},M=Object.prototype.toString;function te(e){return M.call(e)==="[object Array]"}function ne(e){return M.call(e)==="[object Object]"}const le=e=>M.call(e)==="[object Promise]",Ve=e=>k(e)&&e.constructor.name==="AsyncFunction",we=e=>le(e)||Ve(e);function oe(e){return M.call(e)==="[object String]"}function Be(e){return M.call(e)==="[object Number]"&&e===e}function k(e){return typeof e=="function"}function $(){return typeof window<"u"}const E=e=>e,Se=e=>!!(e&&e.shapeFlag&1),xe=(e,n)=>!!(e&&e.shapeFlag&6),Oe=(e,n)=>!!(e&&e.shapeFlag&8),Te=(e,n)=>!!(e&&e.shapeFlag&16),Me=(e,n)=>!!(e&&e.shapeFlag&32),D=(e,n=!1)=>{var o,a;const l=[];for(const c of e??[])Se(c)||xe(c)||n&&Oe(c,c.children)?l.push(c):Te(c,c.children)?l.push(...D(c.children,n)):Me(c,c.children)?l.push(...D((a=(o=c.children).default)==null?void 0:a.call(o),n)):te(c)&&l.push(...D(c,n));return l},S=(e,n)=>Object.assign(n,{install(l){l.component(e)||l.component(e,n)}}),Ee={disabled:Boolean,block:Boolean,loading:Boolean,loadingFill:{type:Boolean,default:!1},debounce:{type:Number,default:0},shape:{type:E(String),default:void 0},link:{type:Boolean,default:!1},type:{type:E(String),default:void 0},status:{type:E(String),default:void 0},plain:{type:Boolean,default:!1},size:{type:E(String),default:"medium"},border:{type:Boolean,default:!0}},Fe=e=>oe(e)?e.split("-").map(n=>n.charAt(0).toUpperCase()+n.slice(1)).join(""):"",Ae=(e,n="px")=>{if(e===void 0)return"";const l=typeof e=="number"?`${e}`:e;return["px","%","vh","vw","calc"].some(a=>l.includes(a))?l:l+n};function x(e,n){return t.defineComponent({name:ee(`Icon${Fe(e)}`),props:{size:{type:[Number,String],default:void 0},rotate:{type:Number,default:void 0},spin:{type:Boolean,default:!1},color:{type:String,default:void 0},fillColor:{type:Array,default:void 0}},setup(l){const o="x-icon",a=t.computed(()=>{const f={};return l.size&&(f.fontSize=Ae(l.size)),l.rotate&&(f.transform=`rotate(${l.rotate}deg)`),l.color&&(f.color=l.color),f}),c=t.computed(()=>[o,{[`${o}-loading`]:l.spin}]);return()=>t.createVNode("div",{class:c.value,style:a.value},[n])}})}const ze=x("InfoCircleFill",t.h(t.createVNode("svg",{viewBox:"0 0 50 50",class:"x-icon-loading-svg"},[t.createVNode("circle",{cx:"25",cy:"25",r:"20",class:"path",fill:"none",stroke:"currentColor"},null)]))),$e=t.defineComponent({name:"Button",props:Ee,emits:["click"],$slots:["prefix","suffix"],setup(e,{slots:n,emit:l}){const o=t.reactive({clicked:!1,isDebounce:!1}),a=V("button"),c=t.computed(()=>[a.block,e.type&&a.modifier(e.type),e.status&&a.modifier(e.status),e.disabled&&a.is("disabled"),e.block&&a.modifier("block"),e.plain&&a.is("plain"),e.shape&&a.modifier(e.shape),e.link&&a.modifier("is-link"),e.size&&a.modifier(e.size),!e.border&&a.modifier("is-hide-border"),r.value&&a.modifier("is-loading")]),f=()=>{e.debounce>0&&!o.isDebounce&&(o.isDebounce=!0,setTimeout(()=>{o.isDebounce=!1},e.debounce))},r=t.computed(()=>e.loading||o.clicked||o.isDebounce),m=t.getCurrentInstance(),u=(s,i)=>{const d=s(i);we(d)&&(o.clicked=!0,d.finally(()=>{o.clicked=!1}))},h=s=>{var d,N,g,p;if(s.stopPropagation(),(N=(d=s.target).blur)==null||N.call(d),r.value)return;f();const i=(p=(g=m==null?void 0:m.vnode)==null?void 0:g.props)==null?void 0:p.onClick;if(te(i))i.forEach(Q=>u(Q,s));else if(k(i)){u(i,s);return}};return()=>{var s;return t.createVNode("button",{class:c.value,type:"button",disabled:e.disabled,onClick:h},[t.createVNode("span",{style:{display:r.value?"flex":"none",marginRight:r.value?"4px":"0px"},class:a.element("loading")},[t.createVNode(ze,null,null)]),n.prefix&&t.createVNode("span",{class:a.element("prefix")},[n.prefix()]),t.createVNode("span",{class:a.element("content")},[(s=n.default)==null?void 0:s.call(n)]),n.suffix&&t.createVNode("span",{class:a.element("suffix")},[n.suffix()])])}}}),O=S(b("Button"),$e),De=["px","%","vh","vw","calc"],re=(e,n="px")=>{if(e===void 0)return"";const l=String(e);return De.some(o=>l.includes(o))?l:l+n},Ie=1e3,Le=3e3,je=1;class Pe{constructor(){T(this,"popupStack",{popup:new Set,dialog:new Set,message:new Set});T(this,"getNextZIndex",n=>(n==="message"?Array.from(this.popupStack.message).pop()||Le:Array.from(this.popupStack.popup).pop()||Ie)+je);T(this,"add",n=>{const l=this.getNextZIndex(n);return this.popupStack[n].add(l),n==="dialog"&&this.popupStack.popup.add(l),l});T(this,"delete",(n,l)=>{this.popupStack[l].delete(n),l==="dialog"&&this.popupStack.popup.delete(n)});T(this,"isLastDialog",n=>this.popupStack.dialog.size>1?n===Array.from(this.popupStack.dialog).pop():!0)}}const K=new Pe;function I(e,{visible:n,runOnMounted:l}={}){const o=t.ref(0),a=()=>{o.value=K.add(e)},c=()=>{K.delete(o.value,e)},f=()=>e==="dialog"?K.isLastDialog(o.value):!1;return t.watch(()=>n==null?void 0:n.value,r=>{r?a():c()},{immediate:!0}),l&&(t.onMounted(a),t.onBeforeUnmount(c)),{zIndex:t.readonly(o),open:a,close:c,isLastDialog:f}}const ae=e=>e.replace(/^./,n=>n.toLowerCase()).replace(/-(\w)/g,(n,l)=>(l==null?void 0:l.toUpperCase())??""),ce=()=>{},He=(e,n)=>{if($)return(n??document).querySelector(e)??void 0},_e=e=>{if(e.tagName==="BODY")return window.innerWidth-(document.documentElement.offsetWidth||document.body.offsetWidth);const{borderLeftWidth:n,borderRightWidth:l}=window.getComputedStyle(e),o=Number(n.replace("px",""))+Number(l.replace("px",""));return e.offsetWidth-(e.clientWidth+o)},Xe=e=>e.tagName==="BODY"?document.documentElement.scrollHeight>window.innerHeight:e.scrollHeight>e.offsetHeight,We=(e,n)=>{var o;if(!$||!e||!n)return"";let l=ae(n);l==="float"&&(l="cssFloat");try{const a=e.style[l];if(a)return a;const c=(o=document.defaultView)==null?void 0:o.getComputedStyle(e,"");return c?c[l]:""}catch{return e.style[l]}},F=(e,n,l)=>{if(!(!e||!n))if(ne(n))Object.entries(n).forEach(([o,a])=>F(e,o,a));else{const o=ae(n);e.style[o]=l}},Y=(e,n)=>{if(oe(e)){const l=e[0]==="#"?`[id='${e.slice(1)}']`:e;return He(l,n)}return e},Ze=$?(e,n,l,o=!1)=>{e.addEventListener(n,l,o)}:ce,Ue=$?(e,n,l,o=!1)=>{e.removeEventListener(n,l,o)}:ce,Re=(e,n)=>{let l=!1;const o={overflow:"",width:""},a=r=>r.tagName==="BODY",c=()=>{if(e.value){const r=e.value;if(!l&&r.style.overflow!=="hidden"){const m=_e(r);if(m>0||Xe(r)){o.overflow=r.style.overflow,o.width=r.style.width;let u=0;a(r)&&(u=r.getBoundingClientRect().left||0),F(r,{width:`calc(100% - ${Math.ceil(m-u)}px)`,overflow:"hidden"}),l=!0}}}},f=()=>{if(e.value&&l){const r=e.value;F(r,{overflow:o.overflow,width:o.width}),l=!1}};return t.watch(()=>n==null?void 0:n.value,r=>{e.value&&!a(e.value)&&(r&&F(r,{position:"absolute"}),We(e.value,"position")==="static"&&F(e.value,{position:"relative"}))}),{setOverflowHidden:c,resetOverflow:f}},Ke={ENTER:"Enter",ESC:"Escape",BACKSPACE:"Backspace",TAB:"Tab",SPACE:" ",ARROW_UP:"ArrowUp",ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight"},Ye={renderTo:{type:E([String,Object]),default:"body"},disabled:{type:Boolean,default:!1},modelValue:{type:Boolean,default:!1},top:{type:[String,Number],default:"3vh"},center:{type:Boolean,default:!1},width:{type:[String,Number],default:0},height:{type:[String,Number],default:0},minWidth:{type:[String,Number],default:0},minHeight:{type:[String,Number],default:0},title:{type:String,default:""},mask:{type:Boolean,default:!0},destroyOnClosed:{type:Boolean,default:!0},onBeforeCancel:{type:Function},maskToClose:{type:Boolean,default:!0},escToClose:{type:Boolean,default:!0},fullscreen:{type:Boolean,default:!1},messageBox:{type:Boolean,default:!1},popupClass:{type:String,default:void 0},showClose:{type:Boolean,default:!0},showHeaderBottomLine:{type:Boolean,default:!1}},Ge=["width","minWidth","height","minHeight"],se=t.defineComponent({name:b("Dialog"),inheritAttrs:!1,props:Ye,emits:["closed","close","open","opened","update:modelValue"],setup(e,{emit:n,slots:l}){const o=V("dialog"),a=o.block,c=V("message-box");c.block;const f=t.computed(()=>[a,e.messageBox&&"is-message-box",e.popupClass&&e.popupClass]),r=t.computed(()=>Y(e.renderTo)),m=t.ref(),u=t.computed(()=>e.disabled||!r.value),h=t.computed(()=>({zIndex:g.value})),s=t.computed(()=>{const y={};return e.fullscreen||(!e.center&&e.top&&(y.top=re(e.top)),Ge.forEach(w=>{e[w]&&(y[w]=re(e[w]))})),y}),i=t.ref(!1),d=t.computed(()=>e.modelValue),N=t.computed(()=>d.value||i.value),{zIndex:g,isLastDialog:p}=I("dialog",{visible:d}),{setOverflowHidden:Q,resetOverflow:Ce}=Re(r,m),Ne=(y,w)=>{n("update:modelValue",!1),n("close",e.messageBox?y:void 0,e.messageBox?w:void 0)},dt=()=>{i.value=!1,Ce(),n("closed")},ft=()=>{n("opened")},U=t.reactive({ok:!1,cancel:!1}),z=(y,w)=>{let R=!0;if(U[y]=!0,k(e.onBeforeCancel)&&(R=e.onBeforeCancel(y)??!1),le(R)){R.then(yt=>{U[y]=!1,yt&&Ne(y,w)});return}U[y]=!1,R&&Ne(y,w)},ut=()=>{e.maskToClose&&e.mask&&z("cancel")},mt=y=>{z("cancel",y)},gt=y=>{z("ok",y)};let v=!1;const ke=y=>{e.escToClose&&y.key===Ke.ESC&&p()&&z("cancel")},ht=()=>{e.escToClose&&!v&&(v=!0,Ze(document.documentElement,"keydown",ke))},be=()=>{v=!1,Ue(document.documentElement,"keydown",ke)};return t.onBeforeUnmount(()=>{Ce(),be()}),t.watch(()=>d.value,y=>{y?(n("open"),Q(),i.value=!0,ht()):be()},{immediate:!0}),()=>t.createVNode(t.Teleport,{to:r.value,disabled:u.value},{default:()=>[N.value&&t.createVNode("div",{ref:m,class:f.value,style:h.value},[t.createVNode(t.Transition,{name:"x-fade-in-standard",appear:!0},{default:()=>[e.mask&&d.value&&t.createVNode("div",{class:o.element("mask")},null)]}),t.createVNode("div",{class:[o.element("wrapper"),{"is-center":e.center}],onClick:y=>y.target===y.currentTarget&&ut()},[t.createVNode(t.Transition,{name:"x-zoom-in",appear:!0,onAfterEnter:ft,onAfterLeave:dt},{default:()=>[d.value&&t.createVNode("div",{class:[o.element("container"),{"is-fullscreen":e.fullscreen}],style:s.value},[t.createVNode("div",{class:[e.messageBox?c.element("header"):o.element("header"),e.showHeaderBottomLine&&"is-bottom-line"]},[l.title?l.title():t.createVNode("div",{class:[o.element("header-title")]},[e.title])]),t.createVNode("div",{class:[e.messageBox?c.element("body"):o.element("body")]},[l.default&&l.default()]),t.createVNode("div",{class:[e.messageBox?c.element("footer"):o.element("footer")]},[l.footer&&l.footer({cancel:mt,ok:gt,"loading-obj":U})]),e.showClose&&t.createVNode("span",{class:[o.element("close-icon"),e.messageBox&&c.element("close-icon")],onClick:()=>z("cancel")},null)])]})])])]})}}),G=S(b("Dialog"),se),L=x("CloseCircleFill",t.h(t.createVNode("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor","stroke-width":"4","stroke-linecap":"butt","stroke-linejoin":"miter",filter:""},[t.createVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm4.955-27.771-4.95 4.95-4.95-4.95a1 1 0 0 0-1.414 0l-1.414 1.414a1 1 0 0 0 0 1.414l4.95 4.95-4.95 4.95a1 1 0 0 0 0 1.414l1.414 1.414a1 1 0 0 0 1.414 0l4.95-4.95 4.95 4.95a1 1 0 0 0 1.414 0l1.414-1.414a1 1 0 0 0 0-1.414l-4.95-4.95 4.95-4.95a1 1 0 0 0 0-1.414l-1.414-1.414a1 1 0 0 0-1.414 0Z",fill:"currentColor",stroke:"none"},null)]))),j=x("CheckCircleFill",t.h(t.createVNode("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor","stroke-width":"4","stroke-linecap":"butt","stroke-linejoin":"miter",filter:""},[t.createVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm10.207-24.379a1 1 0 0 0 0-1.414l-1.414-1.414a1 1 0 0 0-1.414 0L22 26.172l-4.878-4.88a1 1 0 0 0-1.415 0l-1.414 1.415a1 1 0 0 0 0 1.414l7 7a1 1 0 0 0 1.414 0l11.5-11.5Z",fill:"currentColor",stroke:"none"},null)]))),P=x("ExclamationCircleFill",t.h(t.createVNode("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor","stroke-width":"4","stroke-linecap":"butt","stroke-linejoin":"miter",filter:""},[t.createVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm2-30a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-2Zm0 17h1a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1h-6a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1h1v-8a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1h3a1 1 0 0 1 1 1v11Z",fill:"currentColor",stroke:"none"},null)]))),H=x("InfoCircleFill",t.h(t.createVNode("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor","stroke-width":"4","stroke-linecap":"butt","stroke-linejoin":"miter",filter:""},[t.createVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm2-30a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-2Zm0 17h1a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1h-6a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1h1v-8a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1h3a1 1 0 0 1 1 1v11Z",fill:"currentColor",stroke:"none"},null)]))),_=x("MinusCircleFill",t.h(t.createVNode("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor","stroke-width":"4","stroke-linecap":"butt","stroke-linejoin":"miter",filter:""},[t.createVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm-7-22a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1H17Z",fill:"currentColor",stroke:"none"},null)]))),qe=t.defineComponent({name:b("Message"),props:{id:{type:String,default:""},message:{type:[String,Number,Object],default:""},type:{type:String,default:"success"},duration:{type:Number,default:1500},center:{type:Boolean,default:!1},onClose:{type:Function,default:()=>{}},offset:{type:Number,default:20},zIndex:{type:Number,default:0},showClose:{type:Boolean,default:!1},useHTML:{type:Boolean,default:!1},popupClass:{type:String,default:void 0}},emits:["destroy"],setup(e,{emit:n,slots:l}){const o=V("message"),a=t.ref(!1),c=t.ref(null),f=t.computed(()=>[o.block,o.modifier(e.type),e.center&&o.modifier("center"),e.showClose&&!e.center&&o.element("show-close"),e.popupClass]),{zIndex:r}=I("message",{runOnMounted:!0}),m=t.computed(()=>({top:`${e.offset}px`,zIndex:r.value})),u=()=>{if(l.icon)return l.icon();switch(e.type){case"success":return t.createVNode(j,null,null);case"warning":return t.createVNode(P,null,null);case"strong":return t.createVNode(_,null,null);case"error":return t.createVNode(L,null,null);case"info":return t.createVNode(H,null,null);default:return null}},h=()=>{e.duration>0&&(c.value=setTimeout(()=>{a.value=!1},e.duration))},s=()=>{c.value&&(clearTimeout(c.value),c.value=null)};t.onMounted(()=>{a.value=!0,h()}),t.onUnmounted(()=>{s()});const i=()=>{var d;a.value=!1,s(),(d=e.onClose)==null||d.call(e)};return()=>t.createVNode(t.Transition,{name:"x-message-slide-top",onBeforeLeave:e.onClose,onAfterLeave:()=>n("destroy")},{default:()=>[a.value&&t.createVNode("div",{class:f.value,style:m.value},[t.createVNode("span",{class:[o.element("icon"),o.modifier(`icon-${e.type}`)]},[u()]),t.createVNode("div",null,[l.default?l.default():e.useHTML?t.createVNode("span",{innerHTML:e.message},null):t.createVNode("span",null,[e.message]),e.showClose&&t.createVNode("span",{class:o.element("close-icon"),onClick:i},null)])])]})}}),ie=S(b("Message"),qe),Je=t.defineComponent({name:"Space",props:{direction:{type:String,default:"horizontal"},size:{type:[Number,String],default:"small"},align:{type:String,default:"center"},fill:{type:Boolean,default:!1}},setup(e,{slots:n}){const l=V("space"),o=t.computed(()=>[l.block,l.element(e.direction),e.fill&&"is-fill",l.element(`${e.direction}-${e.align}`)]);function a(f){if(Be(f))return f;switch(f){case"mini":return 4;case"small":return 8;case"medium":return 16;case"large":return 24;default:return 8}}const c=f=>{const r={};if(f)return r;const m=`${a(e.size)}px`,u=`${a(e.size)}px`;return e.direction==="horizontal"&&(r.marginRight=m),e.direction==="vertical"&&(r.marginBottom=u),r};return()=>{var r;const f=D((r=n.default)==null?void 0:r.call(n),!0).filter(m=>m.type!==t.Comment);return t.createVNode("div",{class:[o.value]},[f.map((m,u)=>{var s;const h=n.split&&u>0;return t.createVNode(t.Fragment,{key:`space-item-${u}`},[h&&t.createVNode("div",{className:l.element("split"),style:c(!1)},[(s=n.split)==null?void 0:s.call(n)]),t.createVNode("div",{className:l.element("item"),style:c(u===f.length-1)},[m])])})])}}}),X=S(b("Space"),Je),Qe=["info","success","warning","strong","error"];function de(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!t.isVNode(e)}const q=V("message-box"),W=e=>{const n=document.createElement("div"),l=()=>{t.render(null,n)},o=i=>{if(i==="cancel")return e.beforeOnCancel?e.beforeOnCancel():!0;if(i==="ok")return e.beforeOnOk?e.beforeOnOk():!0},a=(i,d)=>{i==="cancel"&&e.onCancel&&e.onCancel(d),i==="ok"&&e.onOk&&e.onOk(d)},c=i=>{let d;switch(i){case"warning":d=t.createVNode(P,{size:"22px",color:"#f6c64b"},null);break;case"strong":d=t.createVNode(_,{size:"22px",color:"#ff7125"},null);break;case"error":d=t.createVNode(L,{size:"22px",color:"#e24f48"},null);break;case"success":d=t.createVNode(j,{size:"22px",color:"#68d1ab"},null);break;case"info":d=t.createVNode(H,{size:"22px",color:"#2355f5"},null);break}return t.createVNode("div",{class:q.element("icon")},[d])},f=i=>{if(t.isVNode(i))return i;if(k(i)){const d=i();return t.isVNode(d)?d:null}return t.createVNode("div",{class:q.element("title")},[t.createTextVNode(" "),i,t.createTextVNode(" ")])},r=i=>{if(t.isVNode(i))return i;if(k(i)){const d=i();return t.isVNode(d)?d:null}return t.createVNode("div",{class:q.element("content")},[t.createTextVNode(" "),e.content,t.createTextVNode(" ")])},m=()=>()=>t.createVNode(t.Fragment,null,[c(e.type||"success"),e.title&&f(e.title)]),u=()=>()=>t.createVNode(t.Fragment,null,[e.content&&r(e.content)]),h=()=>{if(t.isVNode(e.footer)||k(e.footer))return e.footer;const i=(e==null?void 0:e.cancelText)||"取消",d=(e==null?void 0:e.okText)||"确认";return N=>t.createVNode(X,{size:12},{default:()=>{var g,p;return[!e.hideCancel&&t.createVNode(O,{size:"small",onClick:N.cancel,loading:(g=N.loadingObj)==null?void 0:g.cancel},de(i)?i:{default:()=>[i]}),!e.hideOk&&t.createVNode(O,{type:"primary",size:"small",onClick:N.ok,loading:(p=N.loadingObj)==null?void 0:p.ok},de(d)?d:{default:()=>[d]})]}})},s=t.createVNode(G,{messageBox:!0,width:(e==null?void 0:e.width)??358,height:(e==null?void 0:e.height)??"auto",modelValue:!0,renderTo:e==null?void 0:e.renderTo,center:e!=null&&e.top?!1:(e==null?void 0:e.center)??!0,top:(e==null?void 0:e.top)??0,mask:(e==null?void 0:e.mask)??!0,maskToClose:(e==null?void 0:e.maskToClose)??!0,popupClass:e.popupClass,onClose:a,onBeforeCancel:o,"onUpdate:modelValue":()=>{s.component.props.modelValue=!1},onClosed:l,onOpened:()=>{}},{title:m(),default:u(),footer:h()});t.render(s,n)};(()=>{Qe.forEach(e=>{W[e]=(n,l)=>{const o=[],a=[];let c=()=>!0,f=()=>!0;return setTimeout(()=>{W({title:n,content:l,type:e,beforeOnCancel:f,beforeOnOk:c,onOk:()=>{o.forEach(r=>k(r)&&r())},onCancel:()=>{a.forEach(r=>k(r)&&r())}})},0),{ok(...r){return r.length===1&&o.push(r[0]),r.length===2&&(c=r[0],o.push(r[1])),this},cancel(...r){return r.length===1&&a.push(r[0]),r.length===2&&(f=r[0],a.push(r[1])),this}}}})})();const fe=S(b("MessageBox"),W),ve={position:{type:String,default:"top-right"},offset:{type:Number,default:0},title:{type:String,default:""},type:{type:String,default:"info"},message:{type:String,default:void 0},duration:{type:Number,default:3e3},showClose:{type:Boolean,default:!0},onClose:{type:Function,default:()=>{}},renderToBody:{type:Boolean,default:!1}},ue=t.defineComponent({name:b("Notification"),props:ve,emits:["close","destroy"],setup(e,{emit:n,slots:l}){const o=V("notification"),a=o.block,c=t.computed(()=>[a,o.modifier(r.value.ver)]),{zIndex:f}=I("message",{runOnMounted:!0}),r=t.computed(()=>{const g=e.position.split("-");return{hor:g[1],ver:g[0]}}),m=t.computed(()=>`x-notification-slide-${r.value.hor}`),u=t.computed(()=>{const g={};return g.position=e.renderToBody?"fixed":"absolute",g.zIndex=f.value,g[r.value.hor]="20px",g[r.value.ver]=`${e.offset}px`,g}),h=t.ref(!1);let s=0;const i=()=>{s=setTimeout(()=>{h.value=!1},e.duration)},d=t.computed(()=>e.type==="info"?H:e.type==="warning"?P:e.type==="strong"?_:e.type==="success"?j:e.type==="error"?L:""),N=()=>{h.value=!1};return t.onMounted(()=>{e.duration!==0&&i(),h.value=!0}),t.onUnmounted(()=>{clearTimeout(s)}),()=>t.createVNode(t.Transition,{name:m.value,onBeforeLeave:()=>n("close"),onAfterLeave:()=>n("destroy")},{default:()=>{var g;return[h.value&&t.createVNode("div",{class:c.value,style:u.value},[t.createVNode("div",{class:[o.element("header")]},[t.createVNode("div",{class:[o.element("icon"),o.modifier(`icon-${e.type}`)]},[d.value&&t.createVNode(d.value,null,null)]),t.createVNode("div",null,[t.createVNode("div",{class:[o.element("title")]},[e.title]),t.createVNode("div",{class:[o.element("message")]},[((g=l.default)==null?void 0:g.call(l))||e.message])])]),e.showClose&&t.createVNode("span",{class:[o.element("close-icon")],onClick:N},null)])]}})}}),me=S(b("Notification"),ue),ge=Object.freeze(Object.defineProperty({__proto__:null,XButton:O,XDialog:G,XMessage:ie,XMessageBox:fe,XNotification:me,XSpace:X},Symbol.toStringTag,{value:"Module"}));function he(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!t.isVNode(e)}const ye=V("dialog"),et=e=>{const n=document.createElement("div"),l=()=>{t.render(null,n)},o=s=>{if(s==="cancel")return e.beforeOnCancel?e.beforeOnCancel():!0;if(s==="ok")return e.beforeOnOk?e.beforeOnOk():!0},a=(s,i)=>{s==="cancel"&&e.onCancel&&e.onCancel(i),s==="ok"&&e.onOk&&e.onOk(i)},c=s=>{if(t.isVNode(s))return s;if(k(s)){const i=s();return t.isVNode(i)?i:null}return t.createVNode("div",{class:ye.element("header-title")},[t.createTextVNode(" "),s,t.createTextVNode(" ")])},f=s=>{if(t.isVNode(s))return s;if(k(s)){const i=s();return t.isVNode(i)?i:null}return t.createVNode("div",{class:ye.element("content")},[t.createTextVNode(" "),e.content,t.createTextVNode(" ")])},r=()=>()=>t.createVNode(t.Fragment,null,[e.title&&c(e.title)]),m=()=>()=>t.createVNode(t.Fragment,null,[e.content&&f(e.content)]),u=()=>{if(t.isVNode(e.footer)||k(e.footer))return e.footer;const s=(e==null?void 0:e.cancelText)||"取消",i=(e==null?void 0:e.okText)||"确认";return d=>t.createVNode(X,{size:12},{default:()=>{var N,g;return[!e.hideCancel&&t.createVNode(O,{size:"small",onClick:d.cancel,loading:(N=d.loadingObj)==null?void 0:N.cancel},he(s)?s:{default:()=>[s]}),!e.hideOk&&t.createVNode(O,{type:"primary",size:"small",onClick:d.ok,loading:(g=d.loadingObj)==null?void 0:g.ok},he(i)?i:{default:()=>[i]})]}})},h=t.createVNode(se,{width:(e==null?void 0:e.width)??368,height:(e==null?void 0:e.height)??"auto",modelValue:!0,renderTo:e==null?void 0:e.renderTo,center:e!=null&&e.top?!1:(e==null?void 0:e.center)??!0,top:(e==null?void 0:e.top)??0,mask:(e==null?void 0:e.mask)??!0,maskToClose:(e==null?void 0:e.maskToClose)??!0,popupClass:e.popupClass,onClose:a,onBeforeCancel:o,"onUpdate:modelValue":()=>{h.component.props.modelValue=!1},onClosed:l,onOpened:()=>{}},{title:r(),default:m(),footer:u()});t.render(h,n)},tt=["success","warning","error","strong","info"],nt=t.defineComponent({name:b("Message"),components:{CloseCircleFill:L,CheckCircleFill:j,ExclamationCircleFill:P,InfoCircleFill:H,MinusCircleFill:_},props:{id:{type:String,default:""},message:{type:[String,Number,Object],default:""},type:{type:String,default:"success"},duration:{type:Number,default:1500},center:{type:Boolean,default:!1},onClose:{type:Function,default:()=>{}},offset:{type:Number,default:20},zIndex:{type:Number,default:0},showClose:{type:Boolean,default:!1},useHTML:Boolean,popupClass:{type:String,default:void 0}},emits:["destroy"],setup(e){const n=V("message"),l=t.computed(()=>[n.block,n.modifier(e.type),e.center&&n.modifier("center"),e.showClose&&!e.center&&n.element("show-close"),e.popupClass&&e.popupClass]),o=t.ref(!1);let a=null;const c=()=>{a=setTimeout(()=>{o.value=!1},e.duration)};t.onMounted(()=>{o.value=!0,e.duration!==0&&c()}),t.onUnmounted(()=>{clearTimeout(a)});const{zIndex:f}=I("message",{runOnMounted:!0}),r=t.computed(()=>({top:`${e.offset}px`,zIndex:f.value}));return{cn:n,cls:l,styles:r,visible:o,handleClose:()=>{o.value=!1}}}}),lt=(e,n)=>{const l=e.__vccOpts||e;for(const[o,a]of n)l[o]=a;return l},ot=["innerHTML"],rt={key:1};function at(e,n,l,o,a,c){const f=t.resolveComponent("CheckCircleFill"),r=t.resolveComponent("ExclamationCircleFill"),m=t.resolveComponent("MinusCircleFill"),u=t.resolveComponent("CloseCircleFill"),h=t.resolveComponent("InfoCircleFill");return t.openBlock(),t.createBlock(t.Transition,{name:"x-message-slide-top",onBeforeLeave:e.onClose,onAfterLeave:n[1]||(n[1]=s=>e.$emit("destroy"))},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(e.cls),style:t.normalizeStyle(e.styles)},[e.$slots.icon?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass([e.cn.element("icon"),e.cn.modifier(`icon-${e.type}`)])},[t.renderSlot(e.$slots,"icon",{},()=>[e.type==="success"?(t.openBlock(),t.createBlock(f,{key:0})):e.type==="warning"?(t.openBlock(),t.createBlock(r,{key:1})):e.type==="strong"?(t.openBlock(),t.createBlock(m,{key:2})):e.type==="error"?(t.openBlock(),t.createBlock(u,{key:3})):e.type==="info"?(t.openBlock(),t.createBlock(h,{key:4})):t.createCommentVNode("",!0)])],2)),t.renderSlot(e.$slots,"default",{},()=>[e.useHTML?(t.openBlock(),t.createElementBlock("span",{key:0,innerHTML:e.message},null,8,ot)):(t.openBlock(),t.createElementBlock("span",rt,t.toDisplayString(e.message),1)),e.showClose?(t.openBlock(),t.createElementBlock("span",{key:2,class:t.normalizeClass([e.cn.element("close-icon")]),onClick:n[0]||(n[0]=(...s)=>e.handleClose&&e.handleClose(...s))},null,2)):t.createCommentVNode("",!0)])],6),[[t.vShow,e.visible]])]),_:3},8,["onBeforeLeave"])}const ct=lt(nt,[["render",at]]),J=new WeakMap,Z=e=>{(typeof e=="string"||t.isVNode(e))&&(e={message:e});const n=Y(e.renderTo||"body"),l=document.createElement("div");J.has(n)||J.set(n,[]);const o=J.get(n);let a=e.offset||20;o.forEach(s=>{var i;a+=((i=s.el)==null?void 0:i.offsetHeight)+20});const c=e.onClose;let f={};f={...e,onClose:()=>{var d;const s=o.findIndex(N=>N===u);if(s<0)return;const i=((d=u.el)==null?void 0:d.offsetHeight)+20;o.slice(s+1).forEach(N=>{var p;const g=(p=N.component)==null?void 0:p.props.offset;N.component.props.offset=g-i}),o.splice(s,1),c&&c(u)},onDestroy:()=>{t.render(null,l)},offset:a};const u=t.createVNode(ct,f,k(f.message)||t.isVNode(f.message)?{default:k(f.message)?f.message:()=>f.message}:null);return console.log("VM----",u),t.render(u,l),n.tagName==="BODY"?u.el.style.position="fixed":(n.style.position="relative",u.el.style.position="absolute"),n.appendChild(l.firstElementChild),o.push(u),{close:()=>{u.component.proxy.handleClose()}}};(()=>{tt.forEach(e=>{Z[e]=n=>ne(n)?Z({type:e,...n}):Z({message:n,type:e})})})();const A=new WeakMap,st=e=>{const n=Y(e.renderTo||"body"),l=document.createElement("div");A.get(n)||A.set(n,{}),A.get(n)[e.position]||(A.get(n)[e.position]=[]);const o=A.get(n)[e.position];let a=e.offset||20;o.forEach(h=>{var s;a+=((s=h.el)==null?void 0:s.offsetHeight)+20});const c=n.tagName==="BODY";c||(n.style.position="relative",n.style.overflowX="hidden");const f=e.onClose,r=()=>{var i;const h=o.findIndex(d=>d===u);if(h<0)return;const s=((i=u.el)==null?void 0:i.offsetHeight)+20;o.slice(h+1).forEach(d=>{var g;const N=(g=d.component)==null?void 0:g.props.offset;d.component.props.offset=N-s}),o.splice(h,1),f&&f(u)},m=()=>{t.render(null,l)},u=t.createVNode(ue,{message:e.message,title:e.title,type:e.type,offset:a,renderToBody:c,position:e.position,duration:e.duration??3e3,showClose:e.showClose??!0,onClose:r,onDestroy:m},k(e.message)||t.isVNode(e.message)?{default:k(e.message)?e.message:()=>e.message}:null);t.render(u,l),o.push(u),n==null||n.appendChild(l.firstChild)},it={install:function(e){Object.keys(ge).forEach(n=>{const l=ge[n];l.install&&e.use(l)})}};C.Dialog=et,C.Message=Z,C.MessageBox=W,C.Notification=st,C.XButton=O,C.XDialog=G,C.XMessage=ie,C.XMessageBox=fe,C.XNotification=me,C.XSpace=X,C.default=it,Object.defineProperties(C,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
package/dist/style.css ADDED
@@ -0,0 +1 @@
1
+ .x-fade-in-standard-enter-from,.x-fade-in-standard-appear-from{opacity:0}.x-fade-in-standard-enter-to,.x-fade-in-standard-appear-to{opacity:1}.x-fade-in-standard-enter-active,.x-fade-in-standard-appear-active{transition:opacity .3s ease}.x-fade-in-standard-leave-from{opacity:1}.x-fade-in-standard-leave-to{opacity:0}.x-fade-in-standard-leave-active{transition:opacity .3s ease}.x-fade-in-enter-from,.x-fade-in-appear-from{opacity:0}.x-fade-in-enter-to,.x-fade-in-appear-to{opacity:1}.x-fade-in-enter-active,.x-fade-in-appear-active{transition:opacity .2s ease}.x-fade-in-leave-from{opacity:1}.x-fade-in-leave-to{opacity:0}.x-fade-in-leave-active{transition:opacity .2s ease}.x-zoom-in-enter-from,.x-zoom-in-appear-from{transform:scale(.5);opacity:0}.x-zoom-in-enter-to,.x-zoom-in-appear-to{transform:scale(1);opacity:1}.x-zoom-in-enter-active,.x-zoom-in-appear-active{transition:opacity .3s ease,transform .3s ease}.x-zoom-in-leave-from{transform:scale(1);opacity:1}.x-zoom-in-leave-to{transform:scale(.5);opacity:0}.x-zoom-in-leave-active{transition:opacity .3s ease,transform .3s ease}.x-zoom-in-fade-out-enter-from,.x-zoom-in-fade-out-appear-from{transform:scale(.5);opacity:0}.x-zoom-in-fade-out-enter-to,.x-zoom-in-fade-out-appear-to{transform:scale(1);opacity:1}.x-zoom-in-fade-out-enter-active,.x-zoom-in-fade-out-appear-active{transition:opacity .3s cubic-bezier(.3,1.3,.3,1),transform .3s cubic-bezier(.3,1.3,.3,1)}.x-zoom-in-fade-out-leave-from{transform:scale(1);opacity:1}.x-zoom-in-fade-out-leave-to{transform:scale(.5);opacity:0}.x-zoom-in-fade-out-leave-active{transition:opacity .3s cubic-bezier(.3,1.3,.3,1),transform .3s cubic-bezier(.3,1.3,.3,1)}.x-zoom-in-big-enter-from,.x-zoom-in-big-appear-from{transform:scale(.5);opacity:0}.x-zoom-in-big-enter-to,.x-zoom-in-big-appear-to{transform:scale(1);opacity:1}.x-zoom-in-big-enter-active,.x-zoom-in-big-appear-active{transition:opacity .2s linear,transform .2s linear}.x-zoom-in-big-leave-from{transform:scale(1);opacity:1}.x-zoom-in-big-leave-to{transform:scale(.2);opacity:0}.x-zoom-in-big-leave-active{transition:opacity .2s linear,transform .2s linear}.x-zoom-in-left-enter-from,.x-zoom-in-left-appear-from{transform:scale(.1);opacity:.1}.x-zoom-in-left-enter-to,.x-zoom-in-left-appear-to{transform:scale(1);opacity:1}.x-zoom-in-left-enter-active,.x-zoom-in-left-appear-active{transform-origin:0 50%;transition:opacity .3s linear,transform .3s ease-in-out}.x-zoom-in-left-leave-from{transform:scale(1);opacity:1}.x-zoom-in-left-leave-to{transform:scale(.1);opacity:.1}.x-zoom-in-left-leave-active{transform-origin:0 50%;transition:opacity .3s linear,transform .3s ease-in-out}.x-zoom-in-top-enter-from,.x-zoom-in-top-appear-from{transform:scaleY(.8) translateZ(0);opacity:0}.x-zoom-in-top-enter-to,.x-zoom-in-top-appear-to{transform:scaleY(1) translateZ(0);opacity:1}.x-zoom-in-top-enter-active,.x-zoom-in-top-appear-active{transform-origin:0 0;transition:transform .3s ease-in-out,opacity .3s ease-in-out}.x-zoom-in-top-leave-from{transform:scaleY(1) translateZ(0);opacity:1}.x-zoom-in-top-leave-to{transform:scaleY(.8) translateZ(0);opacity:0}.x-zoom-in-top-leave-active{transform-origin:0 0;transition:transform .3s ease-in-out,opacity .3s ease-in-out}.x-zoom-in-bottom-enter-from,.x-zoom-in-bottom-appear-from{transform:scaleY(.8) translateZ(0);opacity:0}.x-zoom-in-bottom-enter-to,.x-zoom-in-bottom-appear-to{transform:scaleY(1) translateZ(0);opacity:1}.x-zoom-in-bottom-enter-active,.x-zoom-in-bottom-appear-active{transform-origin:100% 100%;transition:transform .3s ease-in-out,opacity .3s ease-in-out}.x-zoom-in-bottom-leave-from{transform:scaleY(1) translateZ(0);opacity:1}.x-zoom-in-bottom-leave-to{transform:scaleY(.8) translateZ(0);opacity:0}.x-zoom-in-bottom-leave-active{transform-origin:100% 100%;transition:transform .3s ease-in-out,opacity .3s ease-in-out}.x-icon{display:flex;justify-content:center;align-items:center}.x-icon svg{fill:currentcolor;width:1em;height:1em}.x-icon-loading-svg{animation:animated-loading-rotate 1.5s infinite ease-in-out}.x-icon-loading-svg>.path{stroke:#fffc;stroke-width:5;animation:animated-loading 1.5s infinite ease-in-out}@keyframes animated-loading{0%{stroke-dasharray:1,125;stroke-dashoffset:0}50%{stroke-dasharray:95,31;stroke-dashoffset:-31px}to{stroke-dasharray:6,120;stroke-dashoffset:-120px}}@keyframes animated-loading-rotate{to{transform:rotate(1turn)}}[opacity~=".1"]{opacity:.1}[opacity~=".2"]{opacity:.2}[opacity~=".3"]{opacity:.3}[opacity~=".4"]{opacity:.4}[opacity~=".5"]{opacity:.5}[opacity~=".6"]{opacity:.6}[opacity~=".7"]{opacity:.7}[opacity~=".8"]{opacity:.8}[opacity~=".9"]{opacity:.9}:root{--x-primary: rgb(0 86 255 / 100%);--x-success: rgb(36 195 65 / 100%);--x-danger: rgb(241 37 37 / 100%);--x-strong: rgb(255 113 37 / 100%);--x-warning: rgb(255 199 0 / 100%);--x-primary-1: rgb(0 70 208 / 100%);--x-primary-3: rgb(0 77 229 / 100%);--x-primary-6: rgb(0 77 229 / 30%);--x-primary-8: rgb(0 86 255 / 18%);--x-primary-9: rgb(0 86 255 / 5%);--x-success-1: rgb(36 195 65 / 100%);--x-success-8: rgb(46 212 169 / 18%);--x-success-9: rgb(46 212 169 / 5%);--x-danger-1: rgb(191 23 23 / 100%);--x-danger-3: rgb(216 33 33 / 100%);--x-dander-6: rgb(191 23 23 / 30%);--x-danger-8: rgb(241 37 37 / 18%);--x-danger-9: rgb(241 37 37 / 5%);--x-strong-8: rgb(255 113 37 / 18%);--x-strong-9: rgb(255 113 37 / 5%);--x-warning-8: rgb(255 196 32 / 18%);--x-warning-9: rgb(255 196 32 / 5%);--x-color-1: rgb(36 41 52 / 100%);--x-color-2: rgb(100 107 122 / 100%);--x-color-3: rgb(156 166 185 / 100%);--x-color-4: rgb(188 196 214 / 100%);--x-color-5: rgb(225 228 232 / 100%);--x-color-6: rgb(237 241 246 / 100%);--x-color-7: rgb(245 247 251 / 100%);--x-color-white: rgb(255 255 255 / 100%);--x-font-size: 14px;--x-text-color: var(--x-color-2);--x-border-color: var(--x-color-5);--x-background-color: var(--x-color-7);--x-text-gray: rgb(36 41 52 / 100%);--x-text-gray-1: rgb(100 107 122 / 100%);--x-text-gray-2: rgb(156 166 185 / 100%);--x-disabled-color: rgb(156 166 185 / 100%);--x-disabled-bgc: rgb(250 251 253 / 100%);--x-disabled-bc: rgb(225 228 232 / 100%);--x-hover-bgc: rgb(248 250 255 / 100%);--x-hover-color: var(--x-primary);--x-hover-bc: rgb(188 196 214 / 100%);--x-select-color: var(--x-primary);--x-select-bgc: rgb(248 250 255 / 100%);--x-select-bc: var(--x-primary);--x-focus-bc: var(--x-primary);--x-bgc: rgb(245 247 251 / 100%);--x-fs-small: 12px;--x-fs: 14px;--x-fs-large: 16px;--x-split-color: rgb(237 241 246 / 100%);--x-bc: rgb(237 241 246 / 100%);--x-size-mini: 24px;--x-size-small: 30px;--x-size-medium: 34px;--x-size-large: 38px;--x-size-huge: 42px}.x-button{--x-button-width: auto;--x-button-font-weight: 400;--x-button-opacity: 1;--x-button-border-color: var(--x-border-color);--x-button-background-color: var(--x-background-color);--x-button-color: var(--x-text-color);--x-button-mini-height: var(--x-size-mini);--x-button-mini-font-size: 12px;--x-button-mini-padding: 0 8px;--x-button-mini-border-radius: 4px;--x-button-small-height: var(--x-size-small);--x-button-small-font-size: 14px;--x-button-small-padding: 0 10px;--x-button-small-border-radius: 4px;--x-button-medium-height: var(--x-size-medium);--x-button-medium-font-size: 15px;--x-button-medium-padding: 0 14px;--x-button-medium-border-radius: 4px;--x-button-large-height: var(--x-size-large);--x-button-large-font-size: 16px;--x-button-large-padding: 0 20px;--x-button-large-border-radius: 6px;--x-button-huge-height: var(--x-size-huge);--x-button-huge-font-size: 17px;--x-button-huge-padding: 0 28px;--x-button-huge-border-radius: 4px}.x-button{position:relative;display:inline-flex;justify-content:center;align-items:center;overflow:hidden;margin:0;border-style:solid;border-width:1px;border-color:var(--x-button-border-color);border-radius:var(--x-button-border-radius);padding:var(--x-button-padding);width:var(--x-button-width);height:var(--x-button-height);font-size:var(--x-button-font-size);font-weight:var(--x-button-font-weight);white-space:nowrap;color:var(--x-button-color);background-color:var(--x-button-background-color);opacity:var(--x-button-opacity);outline:none;transition:all .15s linear;box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-user-select:none;user-select:none;vertical-align:bottom;cursor:pointer}.x-button:before{content:"";position:absolute;top:50%;left:50%;width:100%;height:100%;background:#ffffff4d;border-radius:50%;transform:scale(0);transform-origin:center;opacity:0;transition:opacity .2s}.x-button:active:before{transform:scale(3);opacity:1;transition:opacity .1s}.x-button{--x-button-background-color: #fff;--x-button-color: var(--x-text-color);--x-button-border-color: var(--x-border-color)}.x-button:not(.is-disabled):hover{--x-button-background-color: var(--x-background-color);--x-button-color: var(--x-text-color);--x-button-border-color: var(--x-border-color)}.x-button:not(.is-disabled):active{--x-button-background-color: var(--x-background-color);--x-button-color: var(--x-text-color);--x-button-border-color: var(--x-color-4)}.x-button--prefix{margin-right:4px}.x-button--suffix{margin-left:4px}.x-button-is-disabled{--x-button-opacity: .4;cursor:not-allowed}.x-button-block{display:flex;width:100%}.x-button.-loading{--x-button-opacity: .76}.x-button-mini{--x-button-height: var(--x-button-mini-height);--x-button-font-size: var(--x-button-mini-font-size);--x-button-padding: var(--x-button-mini-padding);--x-button-border-radius: var(--x-button-mini-border-radius)}.x-button-small{--x-button-height: var(--x-button-small-height);--x-button-font-size: var(--x-button-small-font-size);--x-button-padding: var(--x-button-small-padding);--x-button-border-radius: var(--x-button-small-border-radius)}.x-button-medium{--x-button-height: var(--x-button-medium-height);--x-button-font-size: var(--x-button-medium-font-size);--x-button-padding: var(--x-button-medium-padding);--x-button-border-radius: var(--x-button-medium-border-radius)}.x-button-large{--x-button-height: var(--x-button-large-height);--x-button-font-size: var(--x-button-large-font-size);--x-button-padding: var(--x-button-large-padding);--x-button-border-radius: var(--x-button-large-border-radius)}.x-button-huge{--x-button-height: var(--x-button-huge-height);--x-button-font-size: var(--x-button-huge-font-size);--x-button-padding: var(--x-button-huge-padding);--x-button-border-radius: var(--x-button-huge-border-radius)}.x-button.-plain{--x-button-font-weight: 500}.x-button.-plain.x-button--primary{--x-button-background-color: var(--x-primary-9);--x-button-color: var(--x-primary);--x-button-border-color: var(--x-primary)}.x-button.-plain.x-button--primary:not(.is-disabled):hover{--x-button-background-color: var(--x-primary);--x-button-color: #fff;--x-button-border-color: var(--x-primary)}.x-button.-plain.x-button--primary:not(.is-disabled):active{--x-button-background-color: var(--x-primary-1);--x-button-color: #fff;--x-button-border-color: var(--x-primary-1)}.x-button.-plain.x-button--success.x-button--success{--x-button-background-color: var(--x-success-9);--x-button-color: var(--x-success);--x-button-border-color: var(--x-success)}.x-button.-plain.x-button--success.x-button--success:not(.is-disabled):hover{--x-button-background-color: var(--x-success);--x-button-color: #fff;--x-button-border-color: var(--x-success)}.x-button.-plain.x-button--success.x-button--success:not(.is-disabled):active{--x-button-background-color: var(--x-success-1);--x-button-color: #fff;--x-button-border-color: var(--x-success)}.x-button.-plain.x-button--warning{--x-button-background-color: var(--x-warning-9);--x-button-color: var(--x-warning);--x-button-border-color: var(--x-warning)}.x-button.-plain.x-button--warning:not(.is-disabled):hover{--x-button-background-color: var(--x-warning);--x-button-color: #fff;--x-button-border-color: var(--x-warning)}.x-button.-plain.x-button--warning:not(.is-disabled):active{--x-button-background-color: var(--x-warning);--x-button-color: #fff;--x-button-border-color: var(--x-warning)}.x-button.-plain.x-button--strong{--x-button-background-color: var(--x-strong-9);--x-button-color: var(--x-strong);--x-button-border-color: var(--x-strong)}.x-button.-plain.x-button--strong:not(.is-disabled):hover{--x-button-background-color: var(--x-strong);--x-button-color: #fff;--x-button-border-color: var(--x-strong)}.x-button.-plain.x-button--strong:not(.is-disabled):active{--x-button-background-color: var(--x-strong);--x-button-color: #fff;--x-button-border-color: var(--x-strong)}.x-button.-plain.x-button--danger{--x-button-background-color: var(--x-danger-9);--x-button-color: var(--x-danger);--x-button-border-color: var(--x-danger)}.x-button.-plain.x-button--danger:not(.is-disabled):hover{--x-button-background-color: var(--x-danger);--x-button-color: #fff;--x-button-border-color: var(--x-danger)}.x-button.-plain.x-button--danger:not(.is-disabled):active{--x-button-background-color: var(--x-danger-1);--x-button-color: #fff;--x-button-border-color: var(--x-danger-1)}.x-button.-round{--x-button-padding: 0 38px;--x-button-border-radius: 24px;height:var(--x-button-height)}.x-button.-circle{--x-button-padding: 0;--x-button-border-radius: 100%;width:var(--x-button-height);height:var(--x-button-height)}.x-button-text{--x-button-font-weight: 500;border-color:transparent;padding:2px;height:auto;color:var(--x-button-color);background:transparent}.x-button-text.x-button--primary{--x-button-background-color: var(--x-primary);--x-button-color: var(--x-primary);--x-button-border-color: var(--x-primary)}.x-button-text.x-button--primary:not(.is-disabled):hover{--x-button-background-color: var(--x-primary-3);--x-button-color: var(--x-primary-3);--x-button-border-color: var(--x-primary-3)}.x-button-text.x-button--primary:not(.is-disabled):active{--x-button-background-color: var(--x-primary-1);--x-button-color: var(--x-primary-1);--x-button-border-color: var(--x-primary-1)}.x-button-text.x-button--success{--x-button-background-color: var(--x-success);--x-button-color: var(--x-success);--x-button-border-color: var(--x-success)}.x-button-text.x-button--success:not(.is-disabled):hover{--x-button-background-color: var(--x-success);--x-button-color: var(--x-success);--x-button-border-color: var(--x-success)}.x-button-text.x-button--success:not(.is-disabled):active{--x-button-background-color: var(--x-success);--x-button-color: var(--x-success);--x-button-border-color: var(--x-success)}.x-button-text.x-button--warning{--x-button-background-color: var(--x-warning);--x-button-color: var(--x-warning);--x-button-border-color: var(--x-warning)}.x-button-text.x-button--warning:not(.is-disabled):hover{--x-button-background-color: var(--x-warning);--x-button-color: var(--x-warning);--x-button-border-color: var(--x-warning)}.x-button-text.x-button--warning:not(.is-disabled):active{--x-button-background-color: var(--x-warning);--x-button-color: var(--x-warning);--x-button-border-color: var(--x-warning)}.x-button-text.x-button--strong{--x-button-background-color: var(--x-strong);--x-button-color: var(--x-strong);--x-button-border-color: var(--x-strong)}.x-button-text.x-button--strong:not(.is-disabled):hover{--x-button-background-color: var(--x-strong);--x-button-color: var(--x-strong);--x-button-border-color: var(--x-strong)}.x-button-text.x-button--strong:not(.is-disabled):active{--x-button-background-color: var(--x-strong);--x-button-color: var(--x-strong);--x-button-border-color: var(--x-strong)}.x-button-text.x-button--danger{--x-button-background-color: var(--x-danger);--x-button-color: var(--x-danger);--x-button-border-color: var(--x-danger)}.x-button-text.x-button--danger:not(.is-disabled):hover{--x-button-background-color: var(--x-danger-3);--x-button-color: var(--x-danger-3);--x-button-border-color: var(--x-danger-3)}.x-button-text.x-button--danger:not(.is-disabled):active{--x-button-background-color: var(--x-danger-1);--x-button-color: var(--x-danger-1);--x-button-border-color: var(--x-danger-1)}.x-button.-hide-border{--x-button-font-weight: 500}.x-button.-hide-border.x-button--primary{--x-button-background-color: var(--x-primary-9);--x-button-color: var(--x-primary);--x-button-border-color: transparent}.x-button.-hide-border.x-button--primary:not(.is-disabled):hover{--x-button-background-color: var(--x-primary-9);--x-button-color: var(--x-primary);--x-button-border-color: var(--x-primary-6)}.x-button.-hide-border.x-button--primary:not(.is-disabled):active{--x-button-background-color: var(--x-primary-9);--x-button-color: var(--x-primary);--x-button-border-color: var(--x-primary-1)}.x-button.-hide-border.x-button--danger{--x-button-background-color: var(--x-danger-9);--x-button-color: var(--x-danger);--x-button-border-color: transparent}.x-button.-hide-border.x-button--danger:not(.is-disabled):hover{--x-button-background-color: var(--x-danger-9);--x-button-color: var(--x-danger);--x-button-border-color: var(--x-danger-6)}.x-button.-hide-border.x-button--danger:not(.is-disabled):active{--x-button-background-color: var(--x-danger-9);--x-button-color: var(--x-danger);--x-button-border-color: var(--x-danger-1)}.x-button.-hide-border.x-button--success{--x-button-background-color: var(--x-success-9);--x-button-color: var(--x-success);--x-button-border-color: transparent}.x-button.-hide-border.x-button--success:not(.is-disabled):hover{--x-button-background-color: var(--x-success-9);--x-button-color: var(--x-success);--x-button-border-color: var(--x-success-6)}.x-button.-hide-border.x-button--success:not(.is-disabled):active{--x-button-background-color: var(--x-success-9);--x-button-color: var(--x-success);--x-button-border-color: var(--x-success-1)}.x-button.-hide-border.x-button--warning{--x-button-background-color: var(--x-warning-9);--x-button-color: var(--x-warning);--x-button-border-color: transparent}.x-button.-hide-border.x-button--warning:not(.is-disabled):hover{--x-button-background-color: var(--x-warning-9);--x-button-color: var(--x-warning);--x-button-border-color: var(--x-warning-6)}.x-button.-hide-border.x-button--warning:not(.is-disabled):active{--x-button-background-color: var(--x-warning-9);--x-button-color: var(--x-warning);--x-button-border-color: var(--x-warning-1)}.x-button.-hide-border.x-button--strong{--x-button-background-color: var(--x-strong-9);--x-button-color: var(--x-strong);--x-button-border-color: transparent}.x-button.-hide-border.x-button--strong:not(.is-disabled):hover{--x-button-background-color: var(--x-strong-9);--x-button-color: var(--x-strong);--x-button-border-color: var(--x-strong-6)}.x-button.-hide-border.x-button--strong:not(.is-disabled):active{--x-button-background-color: var(--x-strong-9);--x-button-color: var(--x-strong);--x-button-border-color: var(--x-strong-1)}.x-button-primary{--x-button-background-color: var(--x-primary);--x-button-color: #fff;--x-button-border-color: var(--x-primary)}.x-button-primary:not(.is-disabled):hover{--x-button-background-color: var(--x-primary-3);--x-button-color: #fff;--x-button-border-color: var(--x-primary-3)}.x-button-primary:not(.is-disabled):active{--x-button-background-color: var(--x-primary-1);--x-button-color: #fff;--x-button-border-color: var(--x-primary-1)}.x-button-success{--x-button-background-color: var(--x-success);--x-button-color: #fff;--x-button-border-color: var(--x-success)}.x-button-success:not(.is-disabled):hover{--x-button-background-color: var(--x-success);--x-button-color: #fff;--x-button-border-color: var(--x-success)}.x-button-success:not(.is-disabled):active{--x-button-background-color: var(--x-success);--x-button-color: #fff;--x-button-border-color: var(--x-success)}.x-button-danger{--x-button-background-color: var(--x-danger);--x-button-color: #fff;--x-button-border-color: var(--x-danger)}.x-button-danger:not(.is-disabled):hover{--x-button-background-color: var(--x-danger-3);--x-button-color: #fff;--x-button-border-color: var(--x-danger-3)}.x-button-danger:not(.is-disabled):active{--x-button-background-color: var(--x-danger-1);--x-button-color: #fff;--x-button-border-color: var(--x-danger-1)}.x-button-strong{--x-button-background-color: var(--x-strong);--x-button-color: #fff;--x-button-border-color: var(--x-strong)}.x-button-strong:not(.is-disabled):hover{--x-button-background-color: var(--x-strong);--x-button-color: #fff;--x-button-border-color: var(--x-strong)}.x-button-strong:not(.is-disabled):active{--x-button-background-color: var(--x-strong);--x-button-color: #fff;--x-button-border-color: var(--x-strong)}.x-button-warning{--x-button-background-color: var(--x-warning);--x-button-color: #fff;--x-button-border-color: var(--x-warning)}.x-button-warning:not(.is-disabled):hover{--x-button-background-color: var(--x-warning);--x-button-color: #fff;--x-button-border-color: var(--x-warning)}.x-button-warning:not(.is-disabled):active{--x-button-background-color: var(--x-warning);--x-button-color: #fff;--x-button-border-color: var(--x-warning)}.x-button--loading{display:flex;transition:all .2s ease}.x-button-group{display:flex;width:min-content}.x-button-group>.x-button:first-child{border-top-right-radius:0;border-bottom-right-radius:0}.x-button-group>.x-button:last-child{margin-left:-1px;border-left-color:#ffffff80;border-top-left-radius:0;border-bottom-left-radius:0}.x-button-group>.x-button:not(:first-child,:last-child){margin-left:-1px;border-right-color:#ffffff80;border-left-color:#ffffff80;border-radius:0}.x-dialog{--x-mask-background-color: rgb(29 33 41 / 60%);--x-dialog-radius: 6px}.x-dialog{position:fixed;top:0;right:0;bottom:0;left:0}.x-dialog--mask{position:absolute;top:0;right:0;bottom:0;left:0;background-color:var(--x-mask-background-color)}.x-dialog--wrapper{position:absolute;top:0;right:0;bottom:0;left:0;overflow:auto;text-align:center}.x-dialog--wrapper.is-center{display:flex;justify-content:center;align-items:center}.x-dialog--container{position:relative;display:inline-block;overflow:hidden;border-radius:var(--x-dialog-radius);background-color:#fff;transition:top .3s}.x-dialog--container.is-fullscreen{display:inline-flex;border-radius:0;width:100%;height:100%;flex-direction:column;vertical-align:middle}.x-dialog--container.is-fullscreen .x-dialog--footer{margin-top:auto}.x-dialog--header{position:relative;padding:30px 48px 0 25px;text-align:left;box-sizing:border-box}.x-dialog--header-title{overflow:hidden;font-size:18px;font-weight:700;text-overflow:ellipsis;white-space:nowrap;line-height:1}.x-dialog--header.is-bottom-line{border-bottom:1px solid var(--x-split-color);padding-bottom:20px}.x-dialog--body{padding:20px 25px;box-sizing:border-box;text-align:left}.x-dialog--footer{display:flex;justify-content:flex-end;padding:0 18px 18px 25px}.x-dialog--close-icon{position:absolute;top:20px;right:18px;width:16px;height:16px;cursor:pointer;transition:background-color .5s ease}.x-dialog--close-icon:hover{background-color:#d5d9da;transition:background-color .5s ease}.x-dialog--close-icon:hover:before,.x-dialog--close-icon:hover:after{background-color:#fff;transition:background-color .5s ease}.x-dialog--close-icon:before{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%) rotate(45deg);width:1px;height:100%;background-color:#9ca6b9;transition:background-color .5s ease}.x-dialog--close-icon:after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%) rotate(-45deg);width:1px;height:100%;background-color:#9ca6b9;transition:background-color .5s ease}.x-message{--x-message-height: 36px;--x-message-width: 360px;--x-border-radius: 4px;--x-border-color: var(--x-info-border-color);--x-success-background-color: #f2f9ec;--x-success-color: #7ebf50;--x-warning-background-color: #fdf6ec;--x-warning-color: #e6a23c;--x-strong-background-color: #fff5f0;--x-strong-color: #ff7125;--x-error-background-color: #fef0f0;--x-error-color: #f56c6c;--x-info-background-color: #f4f4f5;--x-info-color: var(--x-primary);position:fixed;left:50%;display:flex;align-items:center;border-radius:var(--x-border-radius);padding:12px 16px 12px 12px;background-color:#fff;font-weight:500;color:#000000e0;transition:all .3s ease;box-sizing:border-box;transform:translate(-50%);box-shadow:0 6px 16px #00000014,0 3px 6px -4px #0000001f,0 9px 28px 8px #0000000d}.x-message--icon{margin-right:6px;font-size:18px}.x-message--show-close{justify-content:space-between}.x-message--close-icon{position:relative;display:inline-block;border-radius:100%;width:16px;height:16px;cursor:pointer}.x-message--close-icon:hover{background-color:#c5c9d4}.x-message--close-icon:hover:before,.x-message--close-icon:hover:after{height:70%;background-color:#fff}.x-message--close-icon:before{position:absolute;top:50%;left:50%;width:1px;height:70%;background-color:#bfc5d2;transition:background-color .2s;content:"";transform:translate(-50%,-50%) rotate(45deg)}.x-message--close-icon:after{position:absolute;top:50%;left:50%;width:1px;height:70%;background-color:#bfc5d2;transition:background-color .2s;content:"";transform:translate(-50%,-50%) rotate(-45deg)}.x-message-icon-success{color:var(--x-success-color)}.x-message-icon-warning{color:var(--x-warning-color)}.x-message-icon-strong{color:var(--x-strong-color)}.x-message-icon-error{color:var(--x-error-color)}.x-message-icon-info{color:var(--x-info-color)}.x-message-center{justify-content:center}.x-message-slide-top-enter-from,.x-message-slide-top-leave-to{opacity:0;transform:translate(-50%,-100%)}.x-message-slide-top-enter-to{opacity:1;transform:translate(-50%)}.x-message-box--header{padding:25px 0 15px;line-height:1;display:flex;justify-content:center;align-items:center}.x-message-box--body{padding:0 25px;box-sizing:border-box;text-align:center}.x-message-box--footer{padding:20px 0;box-sizing:border-box}.x-message-box--icon{margin-right:4px}.x-message-box--title{font-size:18px;font-weight:600;color:#242934;line-height:1}.x-message-box--content{font-size:14px;font-weight:400;color:#363636;line-height:1.5}.x-message-box--close-icon{top:28px;right:20px}.x-notification{position:relative;border-radius:8px;padding:15px;width:338px;background:#fff;box-shadow:0 6px 16px #00000014,0 3px 6px -4px #0000001f,0 9px 28px 8px #0000000d;box-sizing:border-box}.x-notification-top{transition:top .2s,transform .2s ease,opacity .2s}.x-notification-bottom{transition:bottom .2s,transform .2s ease,opacity .2s}.x-notification--icon{font-size:22px;margin-right:8px}.x-notification-icon-info{color:var(--x-primary)}.x-notification-icon-success{color:var(--x-success)}.x-notification-icon-warning{color:var(--x-warning)}.x-notification-icon-strong{color:var(--x-strong)}.x-notification-icon-error{color:var(--x-danger)}.x-notification--header{display:inline-flex}.x-notification--title{font-size:18px;font-weight:600;color:#242934;line-height:22px;height:22px}.x-notification--message{box-sizing:border-box;margin-top:12px;font-size:14px;font-weight:400;color:#363636;line-height:1.5}.x-notification--close-icon{position:absolute;top:20px;right:20px;width:14px;height:14px;cursor:pointer}.x-notification--close-icon:hover{background-color:#d5d9da;transition:background-color .5s ease}.x-notification--close-icon:hover:before,.x-notification--close-icon:hover:after{background-color:#fff;transition:background-color .5s ease}.x-notification--close-icon:before{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%) rotate(45deg);width:1px;height:100%;background-color:#9ca6b9}.x-notification--close-icon:after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%) rotate(-45deg);width:1px;height:100%;background-color:#9ca6b9}.x-notification-slide-right-enter-from{transform:translate(100%)}.x-notification-slide-right-enter-to{transform:translate(0)}.x-notification-slide-left-enter-from{transform:translate(-100%)}.x-notification-slide-left-enter-to{transform:translate(0)}.x-notification-slide-right-leave-from,.x-notification-slide-left-leave-from{opacity:1}.x-notification-slide-right-leave-to,.x-notification-slide-left-leave-to{opacity:0}.x-space{display:inline-flex;vertical-align:bottom}.x-space--horizontal-center{align-items:center}.x-space--horizontal-start{align-items:flex-start}.x-space--horizontal-end{align-items:flex-end}.x-space--horizontal-baseline{align-items:baseline}.x-space--vertical{flex-direction:column}.x-space--split{color:var(--bn-color-5)}.x-space-is-fill{display:flex}body{margin:0}
@@ -0,0 +1,11 @@
1
+ declare module 'vue' {
2
+ interface GlobalComponents {
3
+ XButton: (typeof import('x-next'))['XButton'];
4
+ XDialog: (typeof import('x-next'))['XDialog'];
5
+ XMessage: (typeof import('x-next'))['XMessage'];
6
+ XMessageBox: (typeof import('x-next'))['XMessageBox'];
7
+ XNotification: (typeof import('x-next'))['XNotification'];
8
+ XSpace: (typeof import('x-next'))['XSpace'];
9
+ }
10
+ }
11
+ export {};
package/package.json CHANGED
@@ -1,66 +1,63 @@
1
1
  {
2
- "author": {
3
- "email": "xy@ztes.com",
4
- "name": "XuYu"
5
- },
6
- "license": "MIT",
7
- "engines": {
8
- "node": ">=10.16.0"
2
+ "name": "x-next",
3
+ "private": false,
4
+ "version": "0.0.0-alpha.20",
5
+ "description": "An amazing Vue3 UI library.",
6
+ "type": "module",
7
+ "main": "dist/index.umd.js",
8
+ "module": "dist/index.es.js",
9
+ "types": "dist/index.d.ts",
10
+ "scripts": {
11
+ "dev": "vite",
12
+ "build": "vue-tsc && vite build",
13
+ "preview": "vite preview",
14
+ "generate:web-types": "vue-docgen src",
15
+ "publish": "npm publish --access=public",
16
+ "gen-volar-dts": "esbuild script/gen-component-declaration.js --bundle --platform=node --tsconfig=tsconfig.esbuild.json | node"
9
17
  },
10
18
  "repository": {
11
19
  "type": "git",
12
- "url": "https://github.com/ztes/x-next.git"
20
+ "url": "git+https://github.com/ztes/x-next.git"
13
21
  },
14
22
  "bugs": {
15
23
  "url": "https://github.com/ztes/x-next/issues"
16
24
  },
17
- "private": false,
18
- "name": "x-next",
19
- "version": "0.0.0-alpha.2",
25
+ "dependencies": {
26
+ "dayjs": "^1.11.13"
27
+ },
28
+ "devDependencies": {
29
+ "@types/node": "^20.16.15",
30
+ "@vitejs/plugin-vue": "^5.1.4",
31
+ "@vitejs/plugin-vue-jsx": "^4.0.1",
32
+ "esbuild": "^0.24.0",
33
+ "i": "^0.3.7",
34
+ "npm": "^10.9.0",
35
+ "prettier": "^3.3.3",
36
+ "prettier-plugin-packagejson": "^2.5.3",
37
+ "sass": "^1.80.3",
38
+ "typescript": "^5.6.3",
39
+ "vite": "^5.4.10",
40
+ "vite-plugin-dts": "^4.3.0",
41
+ "vue": "^3.5.12",
42
+ "vue-docgen-api": "^4.79.2",
43
+ "vue-docgen-cli": "^4.79.0",
44
+ "vue-tsc": "^2.1.6"
45
+ },
20
46
  "publishConfig": {
21
47
  "access": "public"
22
48
  },
23
- "description": "A simple Vue 3 UI component. ",
24
49
  "keywords": [
25
50
  "vue",
26
51
  "vue 3",
27
52
  "component"
28
53
  ],
29
- "main": "dist/ui.umd.js",
30
- "module": "dist/ui.es.js",
31
- "types": "./dist/types/ui.d.ts",
32
- "files": [
33
- "dist"
34
- ],
35
- "scripts": {
36
- "dev": "vite",
37
- "dev:docs": "vitepress dev docs",
38
- "build:component": "vite build",
39
- "build:docs": "vitepress build docs",
40
- "preview:docs": "vitepress preview docs",
41
- "format": "prettier -w ."
42
- },
43
- "devDependencies": {
44
- "@babel/types": "^7.22.4",
45
- "@types/node": "^20.2.5",
46
- "@vitejs/plugin-vue": "^4.2.3",
47
- "@vitejs/plugin-vue-jsx": "^4.0.1",
48
- "@vue/compiler-sfc": "^3.5.12",
49
- "prettier": "^2.8.8",
50
- "sass": "^1.80.3",
51
- "sass-loader": "^16.0.2",
52
- "typescript": "^5.4.5",
53
- "vite": "^5.2.13",
54
- "vite-plugin-css-injected-by-js": "^3.1.1",
55
- "vite-plugin-dts": "^2.3.0",
56
- "vitepress": "^1.4.1",
57
- "vue": "^3.5.12"
58
- },
59
- "peerDependencies": {
60
- "vue": "^3.0.0"
54
+ "author": {
55
+ "email": "xy@ztes.com",
56
+ "name": "XuYu"
61
57
  },
62
- "dependencies": {
63
- "date-fns": "^2.22.1",
64
- "dayjs": "^1.11.13"
65
- }
58
+ "license": "MIT",
59
+ "files": [
60
+ "dist",
61
+ "volar.d.ts"
62
+ ]
66
63
  }
package/volar.d.ts ADDED
@@ -0,0 +1,12 @@
1
+ // Auto generated component declarations
2
+ declare module 'vue' {
3
+ export interface GlobalComponents {
4
+ XButton: (typeof import('x-next'))['XButton']
5
+ XDialog: (typeof import('x-next'))['XDialog']
6
+ XMessage: (typeof import('x-next'))['XMessage']
7
+ XMessageBox: (typeof import('x-next'))['XMessageBox']
8
+ XNotification: (typeof import('x-next'))['XNotification']
9
+ XSpace: (typeof import('x-next'))['XSpace']
10
+ }
11
+ }
12
+ export {}
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2020 Ilia Borovitinov
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
package/dist/favicon.ico DELETED
Binary file
@@ -1,59 +0,0 @@
1
- /**
2
- * 首字母大写及-符号仅跟的字母大写
3
- * @param str
4
- */
5
- export declare const toPascalCase: (str: string) => string;
6
- export declare function createIconComponent(name: string): import("vue").DefineComponent<import("vue").ExtractPropTypes<{
7
- size: {
8
- type: (StringConstructor | NumberConstructor)[];
9
- default: undefined;
10
- };
11
- rotate: {
12
- type: NumberConstructor;
13
- default: undefined;
14
- };
15
- spin: {
16
- type: BooleanConstructor;
17
- default: boolean;
18
- };
19
- color: {
20
- type: StringConstructor;
21
- default: undefined;
22
- };
23
- fillColor: {
24
- type: ArrayConstructor;
25
- default: undefined;
26
- };
27
- }>, {
28
- cls: import("vue").ComputedRef<(string | {
29
- [x: string]: boolean;
30
- })[]>;
31
- styles: import("vue").ComputedRef<import("vue").CSSProperties>;
32
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
33
- size: {
34
- type: (StringConstructor | NumberConstructor)[];
35
- default: undefined;
36
- };
37
- rotate: {
38
- type: NumberConstructor;
39
- default: undefined;
40
- };
41
- spin: {
42
- type: BooleanConstructor;
43
- default: boolean;
44
- };
45
- color: {
46
- type: StringConstructor;
47
- default: undefined;
48
- };
49
- fillColor: {
50
- type: ArrayConstructor;
51
- default: undefined;
52
- };
53
- }>> & Readonly<{}>, {
54
- color: string;
55
- rotate: number;
56
- size: string | number;
57
- spin: boolean;
58
- fillColor: unknown[];
59
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -1,2 +0,0 @@
1
- import Dialog from './use';
2
- export default Dialog;
@@ -1,2 +0,0 @@
1
- import MessageBox from './';
2
- export default MessageBox;
@@ -1,160 +0,0 @@
1
- declare const _sfc_main: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
- position: {
3
- type: import("vue").PropType<import("./props").NotificationPosition>;
4
- default: string;
5
- };
6
- offset: {
7
- type: NumberConstructor;
8
- default: number;
9
- };
10
- title: {
11
- type: StringConstructor;
12
- default: string;
13
- };
14
- type: {
15
- type: import("vue").PropType<"success" | "error" | "warning" | "strong" | "info">;
16
- default: string;
17
- };
18
- message: {
19
- type: StringConstructor;
20
- default: undefined;
21
- };
22
- duration: {
23
- type: NumberConstructor;
24
- default: number;
25
- };
26
- showClose: {
27
- type: BooleanConstructor;
28
- default: boolean;
29
- };
30
- onClose: {
31
- type: import("vue").PropType<() => void>;
32
- default: () => void;
33
- };
34
- renderToBody: {
35
- type: BooleanConstructor;
36
- default: boolean;
37
- };
38
- }>, {
39
- ns: string;
40
- cn: {
41
- block: string;
42
- element: (className: string) => string;
43
- modifier: (className: string) => string;
44
- is: (className: string) => string;
45
- };
46
- cls: import("vue").ComputedRef<string[]>;
47
- animationClsName: import("vue").ComputedRef<string>;
48
- positionStyle: import("vue").ComputedRef<import("vue").CSSProperties>;
49
- visible: import("vue").Ref<boolean, boolean>;
50
- positionPropMap: import("vue").ComputedRef<{
51
- hor: string;
52
- ver: string;
53
- }>;
54
- currentIcon: import("vue").ComputedRef<"" | import("vue").DefineComponent<import("vue").ExtractPropTypes<{
55
- size: {
56
- type: (NumberConstructor | StringConstructor)[];
57
- default: undefined;
58
- };
59
- rotate: {
60
- type: NumberConstructor;
61
- default: undefined;
62
- };
63
- spin: {
64
- type: BooleanConstructor;
65
- default: boolean;
66
- };
67
- color: {
68
- type: StringConstructor;
69
- default: undefined;
70
- };
71
- fillColor: {
72
- type: ArrayConstructor;
73
- default: undefined;
74
- };
75
- }>, {
76
- cls: import("vue").ComputedRef<(string | {
77
- [x: string]: boolean;
78
- })[]>;
79
- styles: import("vue").ComputedRef<import("vue").CSSProperties>;
80
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
81
- size: {
82
- type: (NumberConstructor | StringConstructor)[];
83
- default: undefined;
84
- };
85
- rotate: {
86
- type: NumberConstructor;
87
- default: undefined;
88
- };
89
- spin: {
90
- type: BooleanConstructor;
91
- default: boolean;
92
- };
93
- color: {
94
- type: StringConstructor;
95
- default: undefined;
96
- };
97
- fillColor: {
98
- type: ArrayConstructor;
99
- default: undefined;
100
- };
101
- }>> & Readonly<{}>, {
102
- size: string | number;
103
- color: string;
104
- rotate: number;
105
- spin: boolean;
106
- fillColor: unknown[];
107
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
108
- handleClose: () => void;
109
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "destroy")[], "close" | "destroy", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
110
- position: {
111
- type: import("vue").PropType<import("./props").NotificationPosition>;
112
- default: string;
113
- };
114
- offset: {
115
- type: NumberConstructor;
116
- default: number;
117
- };
118
- title: {
119
- type: StringConstructor;
120
- default: string;
121
- };
122
- type: {
123
- type: import("vue").PropType<"success" | "error" | "warning" | "strong" | "info">;
124
- default: string;
125
- };
126
- message: {
127
- type: StringConstructor;
128
- default: undefined;
129
- };
130
- duration: {
131
- type: NumberConstructor;
132
- default: number;
133
- };
134
- showClose: {
135
- type: BooleanConstructor;
136
- default: boolean;
137
- };
138
- onClose: {
139
- type: import("vue").PropType<() => void>;
140
- default: () => void;
141
- };
142
- renderToBody: {
143
- type: BooleanConstructor;
144
- default: boolean;
145
- };
146
- }>> & Readonly<{
147
- onClose?: ((...args: any[]) => any) | undefined;
148
- onDestroy?: ((...args: any[]) => any) | undefined;
149
- }>, {
150
- position: import("./props").NotificationPosition;
151
- offset: number;
152
- message: string;
153
- title: string;
154
- type: "success" | "error" | "warning" | "strong" | "info";
155
- showClose: boolean;
156
- onClose: () => void;
157
- duration: number;
158
- renderToBody: boolean;
159
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
160
- export default _sfc_main;
@@ -1,2 +0,0 @@
1
- import TrendChart from './components/trend-chart';
2
- export default TrendChart;
@@ -1,55 +0,0 @@
1
- declare const _sfc_main: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
- size: {
3
- type: (NumberConstructor | StringConstructor)[];
4
- default: undefined;
5
- };
6
- rotate: {
7
- type: NumberConstructor;
8
- default: undefined;
9
- };
10
- spin: {
11
- type: BooleanConstructor;
12
- default: boolean;
13
- };
14
- color: {
15
- type: StringConstructor;
16
- default: undefined;
17
- };
18
- fillColor: {
19
- type: ArrayConstructor;
20
- default: undefined;
21
- };
22
- }>, {
23
- cls: import("vue").ComputedRef<(string | {
24
- [x: string]: boolean;
25
- })[]>;
26
- styles: import("vue").ComputedRef<import("vue").CSSProperties>;
27
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
28
- size: {
29
- type: (NumberConstructor | StringConstructor)[];
30
- default: undefined;
31
- };
32
- rotate: {
33
- type: NumberConstructor;
34
- default: undefined;
35
- };
36
- spin: {
37
- type: BooleanConstructor;
38
- default: boolean;
39
- };
40
- color: {
41
- type: StringConstructor;
42
- default: undefined;
43
- };
44
- fillColor: {
45
- type: ArrayConstructor;
46
- default: undefined;
47
- };
48
- }>> & Readonly<{}>, {
49
- size: string | number;
50
- color: string;
51
- rotate: number;
52
- spin: boolean;
53
- fillColor: unknown[];
54
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
55
- export default _sfc_main;
@@ -1,55 +0,0 @@
1
- declare const _sfc_main: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
- size: {
3
- type: (NumberConstructor | StringConstructor)[];
4
- default: undefined;
5
- };
6
- rotate: {
7
- type: NumberConstructor;
8
- default: undefined;
9
- };
10
- spin: {
11
- type: BooleanConstructor;
12
- default: boolean;
13
- };
14
- color: {
15
- type: StringConstructor;
16
- default: undefined;
17
- };
18
- fillColor: {
19
- type: ArrayConstructor;
20
- default: undefined;
21
- };
22
- }>, {
23
- cls: import("vue").ComputedRef<(string | {
24
- [x: string]: boolean;
25
- })[]>;
26
- styles: import("vue").ComputedRef<import("vue").CSSProperties>;
27
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
28
- size: {
29
- type: (NumberConstructor | StringConstructor)[];
30
- default: undefined;
31
- };
32
- rotate: {
33
- type: NumberConstructor;
34
- default: undefined;
35
- };
36
- spin: {
37
- type: BooleanConstructor;
38
- default: boolean;
39
- };
40
- color: {
41
- type: StringConstructor;
42
- default: undefined;
43
- };
44
- fillColor: {
45
- type: ArrayConstructor;
46
- default: undefined;
47
- };
48
- }>> & Readonly<{}>, {
49
- size: string | number;
50
- color: string;
51
- rotate: number;
52
- spin: boolean;
53
- fillColor: unknown[];
54
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
55
- export default _sfc_main;