You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
134 lines
14 KiB
134 lines
14 KiB
import{c as y}from"./use-config-816d55a6.js";import{b as u,a as d,c as p,d as m}from"./index-528cb859.js";import{k as v,f as h,d as g,a8 as o,bi as b,dO as w}from"./index-f4658ae7.js";import{c as l,a as k,e as P,g as s}from"./light-0dfdc1ad.js";import{u as M}from"./Icon-e3cbad7d.js";import{i as S}from"./use-is-mounted-a34b74be.js";const ke=typeof document!="undefined"&&typeof window!="undefined",T={name:"en-US",global:{undo:"Undo",redo:"Redo",confirm:"Confirm",clear:"Clear"},Popconfirm:{positiveText:"Confirm",negativeText:"Cancel"},Cascader:{placeholder:"Please Select",loading:"Loading",loadingRequiredMessage:e=>`Please load all ${e}'s descendants before checking it.`},Time:{dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss"},DatePicker:{yearFormat:"yyyy",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"yyyy-MM",dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss",quarterFormat:"yyyy-qqq",clear:"Clear",now:"Now",confirm:"Confirm",selectTime:"Select Time",selectDate:"Select Date",datePlaceholder:"Select Date",datetimePlaceholder:"Select Date and Time",monthPlaceholder:"Select Month",yearPlaceholder:"Select Year",quarterPlaceholder:"Select Quarter",startDatePlaceholder:"Start Date",endDatePlaceholder:"End Date",startDatetimePlaceholder:"Start Date and Time",endDatetimePlaceholder:"End Date and Time",startMonthPlaceholder:"Start Month",endMonthPlaceholder:"End Month",monthBeforeYear:!0,firstDayOfWeek:6,today:"Today"},DataTable:{checkTableAll:"Select all in the table",uncheckTableAll:"Unselect all in the table",confirm:"Confirm",clear:"Clear"},LegacyTransfer:{sourceTitle:"Source",targetTitle:"Target"},Transfer:{selectAll:"Select all",unselectAll:"Unselect all",clearAll:"Clear",total:e=>`Total ${e} items`,selected:e=>`${e} items selected`},Empty:{description:"No Data"},Select:{placeholder:"Please Select"},TimePicker:{placeholder:"Select Time",positiveText:"OK",negativeText:"Cancel",now:"Now"},Pagination:{goto:"Goto",selectionSuffix:"page"},DynamicTags:{add:"Add"},Log:{loading:"Loading"},Input:{placeholder:"Please Input"},InputNumber:{placeholder:"Please Input"},DynamicInput:{create:"Create"},ThemeEditor:{title:"Theme Editor",clearAllVars:"Clear All Variables",clearSearch:"Clear Search",filterCompName:"Filter Component Name",filterVarName:"Filter Variable Name",import:"Import",export:"Export",restore:"Reset to Default"},Image:{tipPrevious:"Previous picture (\u2190)",tipNext:"Next picture (\u2192)",tipCounterclockwise:"Counterclockwise",tipClockwise:"Clockwise",tipZoomOut:"Zoom out",tipZoomIn:"Zoom in",tipDownload:"Download",tipClose:"Close (Esc)",tipOriginalSize:"Zoom to original size"}},D=T;var x={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},C=function(t,r,n){var i,a=x[t];return typeof a=="string"?i=a:r===1?i=a.one:i=a.other.replace("{{count}}",r.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+i:i+" ago":i};const W=C;var $={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},F={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},_={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},N={date:u({formats:$,defaultWidth:"full"}),time:u({formats:F,defaultWidth:"full"}),dateTime:u({formats:_,defaultWidth:"full"})};const A=N;var L={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},E=function(t,r,n,i){return L[t]};const z=E;var j={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},q={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},R={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},B={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},O={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},I={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},V=function(t,r){var n=Number(t),i=n%100;if(i>20||i<10)switch(i%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},U={ordinalNumber:V,era:d({values:j,defaultWidth:"wide"}),quarter:d({values:q,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:d({values:R,defaultWidth:"wide"}),day:d({values:B,defaultWidth:"wide"}),dayPeriod:d({values:O,defaultWidth:"wide",formattingValues:I,defaultFormattingWidth:"wide"})};const X=U;var J=/^(\d+)(th|st|nd|rd)?/i,Y=/\d+/i,Q={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},H={any:[/^b/i,/^(a|c)/i]},Z={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},K={any:[/1/i,/2/i,/3/i,/4/i]},G={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},ee={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},te={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},ae={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},re={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},ne={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},oe={ordinalNumber:p({matchPattern:J,parsePattern:Y,valueCallback:function(t){return parseInt(t,10)}}),era:m({matchPatterns:Q,defaultMatchWidth:"wide",parsePatterns:H,defaultParseWidth:"any"}),quarter:m({matchPatterns:Z,defaultMatchWidth:"wide",parsePatterns:K,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:m({matchPatterns:G,defaultMatchWidth:"wide",parsePatterns:ee,defaultParseWidth:"any"}),day:m({matchPatterns:te,defaultMatchWidth:"wide",parsePatterns:ae,defaultParseWidth:"any"}),dayPeriod:m({matchPatterns:re,defaultMatchWidth:"any",parsePatterns:ne,defaultParseWidth:"any"})};const ie=oe;var se={code:"en-US",formatDistance:W,formatLong:A,formatRelative:z,localize:X,match:ie,options:{weekStartsOn:0,firstWeekContainsDate:1}};const le=se,de={name:"en-US",locale:le},me=de;function Pe(e){const{mergedLocaleRef:t,mergedDateLocaleRef:r}=v(y,null)||{},n=h(()=>{var a,c;return(c=(a=t==null?void 0:t.value)===null||a===void 0?void 0:a[e])!==null&&c!==void 0?c:D[e]});return{dateLocaleRef:h(()=>{var a;return(a=r==null?void 0:r.value)!==null&&a!==void 0?a:me}),localeRef:n}}const ce=g({name:"BaseIconSwitchTransition",setup(e,{slots:t}){const r=S();return()=>o(b,{name:"icon-switch-transition",appear:r.value},t)}}),{cubicBezierEaseInOut:ue}=k;function f({originalTransform:e="",left:t=0,top:r=0,transition:n=`all .3s ${ue} !important`}={}){return[l("&.icon-switch-transition-enter-from, &.icon-switch-transition-leave-to",{transform:e+" scale(0.75)",left:t,top:r,opacity:0}),l("&.icon-switch-transition-enter-to, &.icon-switch-transition-leave-from",{transform:`scale(1) ${e}`,left:t,top:r,opacity:1}),l("&.icon-switch-transition-enter-active, &.icon-switch-transition-leave-active",{transformOrigin:"center",position:"absolute",left:t,top:r,transition:n})]}const he=l([l("@keyframes loading-container-rotate",`
|
|
to {
|
|
-webkit-transform: rotate(360deg);
|
|
transform: rotate(360deg);
|
|
}
|
|
`),l("@keyframes loading-layer-rotate",`
|
|
12.5% {
|
|
-webkit-transform: rotate(135deg);
|
|
transform: rotate(135deg);
|
|
}
|
|
25% {
|
|
-webkit-transform: rotate(270deg);
|
|
transform: rotate(270deg);
|
|
}
|
|
37.5% {
|
|
-webkit-transform: rotate(405deg);
|
|
transform: rotate(405deg);
|
|
}
|
|
50% {
|
|
-webkit-transform: rotate(540deg);
|
|
transform: rotate(540deg);
|
|
}
|
|
62.5% {
|
|
-webkit-transform: rotate(675deg);
|
|
transform: rotate(675deg);
|
|
}
|
|
75% {
|
|
-webkit-transform: rotate(810deg);
|
|
transform: rotate(810deg);
|
|
}
|
|
87.5% {
|
|
-webkit-transform: rotate(945deg);
|
|
transform: rotate(945deg);
|
|
}
|
|
100% {
|
|
-webkit-transform: rotate(1080deg);
|
|
transform: rotate(1080deg);
|
|
}
|
|
`),l("@keyframes loading-left-spin",`
|
|
from {
|
|
-webkit-transform: rotate(265deg);
|
|
transform: rotate(265deg);
|
|
}
|
|
50% {
|
|
-webkit-transform: rotate(130deg);
|
|
transform: rotate(130deg);
|
|
}
|
|
to {
|
|
-webkit-transform: rotate(265deg);
|
|
transform: rotate(265deg);
|
|
}
|
|
`),l("@keyframes loading-right-spin",`
|
|
from {
|
|
-webkit-transform: rotate(-265deg);
|
|
transform: rotate(-265deg);
|
|
}
|
|
50% {
|
|
-webkit-transform: rotate(-130deg);
|
|
transform: rotate(-130deg);
|
|
}
|
|
to {
|
|
-webkit-transform: rotate(-265deg);
|
|
transform: rotate(-265deg);
|
|
}
|
|
`),P("base-loading",`
|
|
position: relative;
|
|
line-height: 0;
|
|
width: 1em;
|
|
height: 1em;
|
|
`,[s("transition-wrapper",`
|
|
position: absolute;
|
|
width: 100%;
|
|
height: 100%;
|
|
`,[f()]),s("container",`
|
|
display: inline-flex;
|
|
position: relative;
|
|
direction: ltr;
|
|
line-height: 0;
|
|
animation: loading-container-rotate 1568.2352941176ms linear infinite;
|
|
font-size: 0;
|
|
letter-spacing: 0;
|
|
white-space: nowrap;
|
|
opacity: 1;
|
|
width: 100%;
|
|
height: 100%;
|
|
`,[s("svg",`
|
|
stroke: var(--n-text-color);
|
|
fill: transparent;
|
|
position: absolute;
|
|
height: 100%;
|
|
overflow: hidden;
|
|
`),s("container-layer",`
|
|
position: absolute;
|
|
width: 100%;
|
|
height: 100%;
|
|
animation: loading-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;
|
|
`,[s("container-layer-left",`
|
|
display: inline-flex;
|
|
position: relative;
|
|
width: 50%;
|
|
height: 100%;
|
|
overflow: hidden;
|
|
`,[s("svg",`
|
|
animation: loading-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;
|
|
width: 200%;
|
|
`)]),s("container-layer-patch",`
|
|
position: absolute;
|
|
top: 0;
|
|
left: 47.5%;
|
|
box-sizing: border-box;
|
|
width: 5%;
|
|
height: 100%;
|
|
overflow: hidden;
|
|
`,[s("svg",`
|
|
left: -900%;
|
|
width: 2000%;
|
|
transform: rotate(180deg);
|
|
`)]),s("container-layer-right",`
|
|
display: inline-flex;
|
|
position: relative;
|
|
width: 50%;
|
|
height: 100%;
|
|
overflow: hidden;
|
|
`,[s("svg",`
|
|
animation: loading-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;
|
|
left: -100%;
|
|
width: 200%;
|
|
`)])])]),s("placeholder",`
|
|
position: absolute;
|
|
left: 50%;
|
|
top: 50%;
|
|
transform: translateX(-50%) translateY(-50%);
|
|
`,[f({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})])])]),fe={strokeWidth:{type:Number,default:28},stroke:{type:String,default:void 0}},Me=g({name:"BaseLoading",props:Object.assign({clsPrefix:{type:String,required:!0},show:{type:Boolean,default:!0},scale:{type:Number,default:1},radius:{type:Number,default:100}},fe),setup(e){M("-base-loading",he,w(e,"clsPrefix"))},render(){const{clsPrefix:e,radius:t,strokeWidth:r,stroke:n,scale:i}=this,a=t/i;return o("div",{class:`${e}-base-loading`,role:"img","aria-label":"loading"},o(ce,null,{default:()=>this.show?o("div",{key:"icon",class:`${e}-base-loading__transition-wrapper`},o("div",{class:`${e}-base-loading__container`},o("div",{class:`${e}-base-loading__container-layer`},o("div",{class:`${e}-base-loading__container-layer-left`},o("svg",{class:`${e}-base-loading__svg`,viewBox:`0 0 ${2*a} ${2*a}`,xmlns:"http://www.w3.org/2000/svg",style:{color:n}},o("circle",{fill:"none",stroke:"currentColor","stroke-width":r,"stroke-linecap":"round",cx:a,cy:a,r:t-r/2,"stroke-dasharray":4.91*t,"stroke-dashoffset":2.46*t}))),o("div",{class:`${e}-base-loading__container-layer-patch`},o("svg",{class:`${e}-base-loading__svg`,viewBox:`0 0 ${2*a} ${2*a}`,xmlns:"http://www.w3.org/2000/svg",style:{color:n}},o("circle",{fill:"none",stroke:"currentColor","stroke-width":r,"stroke-linecap":"round",cx:a,cy:a,r:t-r/2,"stroke-dasharray":4.91*t,"stroke-dashoffset":2.46*t}))),o("div",{class:`${e}-base-loading__container-layer-right`},o("svg",{class:`${e}-base-loading__svg`,viewBox:`0 0 ${2*a} ${2*a}`,xmlns:"http://www.w3.org/2000/svg",style:{color:n}},o("circle",{fill:"none",stroke:"currentColor","stroke-width":r,"stroke-linecap":"round",cx:a,cy:a,r:t-r/2,"stroke-dasharray":4.91*t,"stroke-dashoffset":2.46*t})))))):o("div",{key:"placeholder",class:`${e}-base-loading__placeholder`},this.$slots)}))}});export{Me as N,f as a,ce as b,le as d,ke as i,Pe as u};
|