Compare commits

...

2 commits

Author SHA1 Message Date
6579fad3df 活动商店拖动修复
All checks were successful
ci/woodpecker/push/check_format Pipeline was successful
2025-02-20 13:06:30 +08:00
90bef4d33d 跑马灯跑的内容用白色字体
All checks were successful
ci/woodpecker/push/check_format Pipeline was successful
2025-02-19 17:50:59 +08:00
26 changed files with 67 additions and 52 deletions

View file

@ -90,7 +90,7 @@ class Shop(BaseSolver):
if self.ctap(pos): if self.ctap(pos):
self.product = name self.product = name
return return
self.swipe_ext([(1600, 340), (300, 340), (300, 150)], [0.2, 0.3], 0, 0.1) self.swipe_ext([(1600, 340), (300, 340), (300, 150)], [200, 300], 0, 0.1)
elif scene == Scene.ACTIVITY_SHOP_BUY: elif scene == Scene.ACTIVITY_SHOP_BUY:
if self.product is None: if self.product is None:
SceneGraphSolver().step(Scene.ACTIVITY_SHOP) SceneGraphSolver().step(Scene.ACTIVITY_SHOP)

1
ui/components.d.ts vendored
View file

@ -33,6 +33,7 @@ declare module 'vue' {
NFormItem: typeof import('naive-ui')['NFormItem'] NFormItem: typeof import('naive-ui')['NFormItem']
NGi: typeof import('naive-ui')['NGi'] NGi: typeof import('naive-ui')['NGi']
NGlobalStyle: typeof import('naive-ui')['NGlobalStyle'] NGlobalStyle: typeof import('naive-ui')['NGlobalStyle']
NGradientText: typeof import('naive-ui')['NGradientText']
NGrid: typeof import('naive-ui')['NGrid'] NGrid: typeof import('naive-ui')['NGrid']
NH1: typeof import('naive-ui')['NH1'] NH1: typeof import('naive-ui')['NH1']
NH2: typeof import('naive-ui')['NH2'] NH2: typeof import('naive-ui')['NH2']

View file

@ -1,4 +1,4 @@
import{X as O,az as f,aZ as h,Z as x,$ as i,a0 as y,M as F,A as V,B as l,aw as N,ai as Z,a6 as D,a5 as K,a3 as X,a7 as q,a9 as E,a8 as G,c as $,ab as J,aa as c,ac as Q,r as U,a2 as Y}from"./_plugin-vue_export-helper.js";import{f as ee,E as oe,W as re,I as ne,S as se}from"./main.js";const le={iconMargin:"11px 8px 0 12px",iconMarginRtl:"11px 12px 0 8px",iconSize:"24px",closeIconSize:"16px",closeSize:"20px",closeMargin:"13px 14px 0 0",closeMarginRtl:"13px 0 0 14px",padding:"13px"};function te(r){const{lineHeight:e,borderRadius:d,fontWeightStrong:v,baseColor:t,dividerColor:C,actionColor:P,textColor1:g,textColor2:s,closeColorHover:u,closeColorPressed:b,closeIconColor:p,closeIconColorHover:m,closeIconColorPressed:n,infoColor:o,successColor:I,warningColor:z,errorColor:S,fontSize:T}=r;return Object.assign(Object.assign({},le),{fontSize:T,lineHeight:e,titleFontWeight:v,borderRadius:d,border:`1px solid ${C}`,color:P,titleTextColor:g,iconColor:s,contentTextColor:s,closeBorderRadius:d,closeColorHover:u,closeColorPressed:b,closeIconColor:p,closeIconColorHover:m,closeIconColorPressed:n,borderInfo:`1px solid ${f(t,h(o,{alpha:.25}))}`,colorInfo:f(t,h(o,{alpha:.08})),titleTextColorInfo:g,iconColorInfo:o,contentTextColorInfo:s,closeColorHoverInfo:u,closeColorPressedInfo:b,closeIconColorInfo:p,closeIconColorHoverInfo:m,closeIconColorPressedInfo:n,borderSuccess:`1px solid ${f(t,h(I,{alpha:.25}))}`,colorSuccess:f(t,h(I,{alpha:.08})),titleTextColorSuccess:g,iconColorSuccess:I,contentTextColorSuccess:s,closeColorHoverSuccess:u,closeColorPressedSuccess:b,closeIconColorSuccess:p,closeIconColorHoverSuccess:m,closeIconColorPressedSuccess:n,borderWarning:`1px solid ${f(t,h(z,{alpha:.33}))}`,colorWarning:f(t,h(z,{alpha:.08})),titleTextColorWarning:g,iconColorWarning:z,contentTextColorWarning:s,closeColorHoverWarning:u,closeColorPressedWarning:b,closeIconColorWarning:p,closeIconColorHoverWarning:m,closeIconColorPressedWarning:n,borderError:`1px solid ${f(t,h(S,{alpha:.25}))}`,colorError:f(t,h(S,{alpha:.08})),titleTextColorError:g,iconColorError:S,contentTextColorError:s,closeColorHoverError:u,closeColorPressedError:b,closeIconColorError:p,closeIconColorHoverError:m,closeIconColorPressedError:n})}const ie={common:O,self:te},ae=x("alert",` import{X as O,az as f,aY as h,Z as x,$ as i,a0 as y,M as F,A as V,B as l,aw as N,ai as D,a6 as K,a5 as X,a3 as Y,a7 as Z,a9 as E,a8 as q,c as $,ab as G,aa as c,ac as J,r as Q,a2 as U}from"./_plugin-vue_export-helper.js";import{f as ee,E as oe,W as re,I as ne,S as se}from"./main.js";const le={iconMargin:"11px 8px 0 12px",iconMarginRtl:"11px 12px 0 8px",iconSize:"24px",closeIconSize:"16px",closeSize:"20px",closeMargin:"13px 14px 0 0",closeMarginRtl:"13px 0 0 14px",padding:"13px"};function te(r){const{lineHeight:e,borderRadius:d,fontWeightStrong:v,baseColor:t,dividerColor:C,actionColor:P,textColor1:g,textColor2:s,closeColorHover:u,closeColorPressed:b,closeIconColor:p,closeIconColorHover:m,closeIconColorPressed:n,infoColor:o,successColor:I,warningColor:z,errorColor:S,fontSize:T}=r;return Object.assign(Object.assign({},le),{fontSize:T,lineHeight:e,titleFontWeight:v,borderRadius:d,border:`1px solid ${C}`,color:P,titleTextColor:g,iconColor:s,contentTextColor:s,closeBorderRadius:d,closeColorHover:u,closeColorPressed:b,closeIconColor:p,closeIconColorHover:m,closeIconColorPressed:n,borderInfo:`1px solid ${f(t,h(o,{alpha:.25}))}`,colorInfo:f(t,h(o,{alpha:.08})),titleTextColorInfo:g,iconColorInfo:o,contentTextColorInfo:s,closeColorHoverInfo:u,closeColorPressedInfo:b,closeIconColorInfo:p,closeIconColorHoverInfo:m,closeIconColorPressedInfo:n,borderSuccess:`1px solid ${f(t,h(I,{alpha:.25}))}`,colorSuccess:f(t,h(I,{alpha:.08})),titleTextColorSuccess:g,iconColorSuccess:I,contentTextColorSuccess:s,closeColorHoverSuccess:u,closeColorPressedSuccess:b,closeIconColorSuccess:p,closeIconColorHoverSuccess:m,closeIconColorPressedSuccess:n,borderWarning:`1px solid ${f(t,h(z,{alpha:.33}))}`,colorWarning:f(t,h(z,{alpha:.08})),titleTextColorWarning:g,iconColorWarning:z,contentTextColorWarning:s,closeColorHoverWarning:u,closeColorPressedWarning:b,closeIconColorWarning:p,closeIconColorHoverWarning:m,closeIconColorPressedWarning:n,borderError:`1px solid ${f(t,h(S,{alpha:.25}))}`,colorError:f(t,h(S,{alpha:.08})),titleTextColorError:g,iconColorError:S,contentTextColorError:s,closeColorHoverError:u,closeColorPressedError:b,closeIconColorError:p,closeIconColorHoverError:m,closeIconColorPressedError:n})}const ie={common:O,self:te},ae=x("alert",`
line-height: var(--n-line-height); line-height: var(--n-line-height);
border-radius: var(--n-border-radius); border-radius: var(--n-border-radius);
position: relative; position: relative;
@ -45,4 +45,4 @@ import{X as O,az as f,aZ as h,Z as x,$ as i,a0 as y,M as F,A as V,B as l,aw as N
font-size: 16px; font-size: 16px;
line-height: 19px; line-height: 19px;
font-weight: var(--n-title-font-weight); font-weight: var(--n-title-font-weight);
`,[F("& +",[i("content",{marginTop:"9px"})])]),i("content",{transition:"color .3s var(--n-bezier)",fontSize:"var(--n-font-size)"})]),i("icon",{transition:"color .3s var(--n-bezier)"})]),ce=Object.assign(Object.assign({},E.props),{title:String,showIcon:{type:Boolean,default:!0},type:{type:String,default:"default"},bordered:{type:Boolean,default:!0},closable:Boolean,onClose:Function,onAfterLeave:Function,onAfterHide:Function}),ue=V({name:"Alert",inheritAttrs:!1,props:ce,slots:Object,setup(r){const{mergedClsPrefixRef:e,mergedBorderedRef:d,inlineThemeDisabled:v,mergedRtlRef:t}=q(r),C=E("Alert","-alert",ae,ie,r,e),P=G("Alert",t,e),g=$(()=>{const{common:{cubicBezierEaseInOut:n},self:o}=C.value,{fontSize:I,borderRadius:z,titleFontWeight:S,lineHeight:T,iconSize:H,iconMargin:R,iconMarginRtl:_,closeIconSize:W,closeBorderRadius:w,closeSize:A,closeMargin:B,closeMarginRtl:M,padding:j}=o,{type:a}=r,{left:k,right:L}=J(R);return{"--n-bezier":n,"--n-color":o[c("color",a)],"--n-close-icon-size":W,"--n-close-border-radius":w,"--n-close-color-hover":o[c("closeColorHover",a)],"--n-close-color-pressed":o[c("closeColorPressed",a)],"--n-close-icon-color":o[c("closeIconColor",a)],"--n-close-icon-color-hover":o[c("closeIconColorHover",a)],"--n-close-icon-color-pressed":o[c("closeIconColorPressed",a)],"--n-icon-color":o[c("iconColor",a)],"--n-border":o[c("border",a)],"--n-title-text-color":o[c("titleTextColor",a)],"--n-content-text-color":o[c("contentTextColor",a)],"--n-line-height":T,"--n-border-radius":z,"--n-font-size":I,"--n-title-font-weight":S,"--n-icon-size":H,"--n-icon-margin":R,"--n-icon-margin-rtl":_,"--n-close-size":A,"--n-close-margin":B,"--n-close-margin-rtl":M,"--n-padding":j,"--n-icon-margin-left":k,"--n-icon-margin-right":L}}),s=v?Q("alert",$(()=>r.type[0]),g,r):void 0,u=U(!0),b=()=>{const{onAfterLeave:n,onAfterHide:o}=r;n&&n(),o&&o()};return{rtlEnabled:P,mergedClsPrefix:e,mergedBordered:d,visible:u,handleCloseClick:()=>{var n;Promise.resolve((n=r.onClose)===null||n===void 0?void 0:n.call(r)).then(o=>{o!==!1&&(u.value=!1)})},handleAfterLeave:()=>{b()},mergedTheme:C,cssVars:v?void 0:g,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){var r;return(r=this.onRender)===null||r===void 0||r.call(this),l(N,{onAfterLeave:this.handleAfterLeave},{default:()=>{const{mergedClsPrefix:e,$slots:d}=this,v={class:[`${e}-alert`,this.themeClass,this.closable&&`${e}-alert--closable`,this.showIcon&&`${e}-alert--show-icon`,!this.title&&this.closable&&`${e}-alert--right-adjust`,this.rtlEnabled&&`${e}-alert--rtl`],style:this.cssVars,role:"alert"};return this.visible?l("div",Object.assign({},Z(this.$attrs,v)),this.closable&&l(D,{clsPrefix:e,class:`${e}-alert__close`,onClick:this.handleCloseClick}),this.bordered&&l("div",{class:`${e}-alert__border`}),this.showIcon&&l("div",{class:`${e}-alert__icon`,"aria-hidden":"true"},K(d.icon,()=>[l(Y,{clsPrefix:e},{default:()=>{switch(this.type){case"success":return l(se,null);case"info":return l(ne,null);case"warning":return l(re,null);case"error":return l(oe,null);default:return null}}})])),l("div",{class:[`${e}-alert-body`,this.mergedBordered&&`${e}-alert-body--bordered`]},X(d.header,t=>{const C=t||this.title;return C?l("div",{class:`${e}-alert-body__title`},C):null}),d.default&&l("div",{class:`${e}-alert-body__content`},d))):null}})}});export{ue as _}; `,[F("& +",[i("content",{marginTop:"9px"})])]),i("content",{transition:"color .3s var(--n-bezier)",fontSize:"var(--n-font-size)"})]),i("icon",{transition:"color .3s var(--n-bezier)"})]),ce=Object.assign(Object.assign({},E.props),{title:String,showIcon:{type:Boolean,default:!0},type:{type:String,default:"default"},bordered:{type:Boolean,default:!0},closable:Boolean,onClose:Function,onAfterLeave:Function,onAfterHide:Function}),ue=V({name:"Alert",inheritAttrs:!1,props:ce,slots:Object,setup(r){const{mergedClsPrefixRef:e,mergedBorderedRef:d,inlineThemeDisabled:v,mergedRtlRef:t}=Z(r),C=E("Alert","-alert",ae,ie,r,e),P=q("Alert",t,e),g=$(()=>{const{common:{cubicBezierEaseInOut:n},self:o}=C.value,{fontSize:I,borderRadius:z,titleFontWeight:S,lineHeight:T,iconSize:H,iconMargin:R,iconMarginRtl:_,closeIconSize:W,closeBorderRadius:w,closeSize:A,closeMargin:B,closeMarginRtl:M,padding:j}=o,{type:a}=r,{left:k,right:L}=G(R);return{"--n-bezier":n,"--n-color":o[c("color",a)],"--n-close-icon-size":W,"--n-close-border-radius":w,"--n-close-color-hover":o[c("closeColorHover",a)],"--n-close-color-pressed":o[c("closeColorPressed",a)],"--n-close-icon-color":o[c("closeIconColor",a)],"--n-close-icon-color-hover":o[c("closeIconColorHover",a)],"--n-close-icon-color-pressed":o[c("closeIconColorPressed",a)],"--n-icon-color":o[c("iconColor",a)],"--n-border":o[c("border",a)],"--n-title-text-color":o[c("titleTextColor",a)],"--n-content-text-color":o[c("contentTextColor",a)],"--n-line-height":T,"--n-border-radius":z,"--n-font-size":I,"--n-title-font-weight":S,"--n-icon-size":H,"--n-icon-margin":R,"--n-icon-margin-rtl":_,"--n-close-size":A,"--n-close-margin":B,"--n-close-margin-rtl":M,"--n-padding":j,"--n-icon-margin-left":k,"--n-icon-margin-right":L}}),s=v?J("alert",$(()=>r.type[0]),g,r):void 0,u=Q(!0),b=()=>{const{onAfterLeave:n,onAfterHide:o}=r;n&&n(),o&&o()};return{rtlEnabled:P,mergedClsPrefix:e,mergedBordered:d,visible:u,handleCloseClick:()=>{var n;Promise.resolve((n=r.onClose)===null||n===void 0?void 0:n.call(r)).then(o=>{o!==!1&&(u.value=!1)})},handleAfterLeave:()=>{b()},mergedTheme:C,cssVars:v?void 0:g,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){var r;return(r=this.onRender)===null||r===void 0||r.call(this),l(N,{onAfterLeave:this.handleAfterLeave},{default:()=>{const{mergedClsPrefix:e,$slots:d}=this,v={class:[`${e}-alert`,this.themeClass,this.closable&&`${e}-alert--closable`,this.showIcon&&`${e}-alert--show-icon`,!this.title&&this.closable&&`${e}-alert--right-adjust`,this.rtlEnabled&&`${e}-alert--rtl`],style:this.cssVars,role:"alert"};return this.visible?l("div",Object.assign({},D(this.$attrs,v)),this.closable&&l(K,{clsPrefix:e,class:`${e}-alert__close`,onClick:this.handleCloseClick}),this.bordered&&l("div",{class:`${e}-alert__border`}),this.showIcon&&l("div",{class:`${e}-alert__icon`,"aria-hidden":"true"},X(d.icon,()=>[l(U,{clsPrefix:e},{default:()=>{switch(this.type){case"success":return l(se,null);case"info":return l(ne,null);case"warning":return l(re,null);case"error":return l(oe,null);default:return null}}})])),l("div",{class:[`${e}-alert-body`,this.mergedBordered&&`${e}-alert-body--bordered`]},Y(d.header,t=>{const C=t||this.title;return C?l("div",{class:`${e}-alert-body__title`},C):null}),d.default&&l("div",{class:`${e}-alert-body__content`},d))):null}})}});export{ue as _};

View file

@ -1,4 +1,4 @@
import{i as I,o as W}from"./utils.js";import{a as V}from"./Tag.js";import{X as A,az as C,x as K,Z as _,_ as N,be as G,M as E,$ as H,A as X,a5 as Y,B as y,a3 as q,aY as D,a7 as U,r as O,h as $,c as x,a9 as k,aa as Z,ac as J,bV as Q,p as ee,ax as ne,q as re,w as oe}from"./_plugin-vue_export-helper.js";function te(n){const{borderRadius:l,avatarColor:a,cardColor:d,fontSize:c,heightTiny:u,heightSmall:s,heightMedium:z,heightLarge:m,heightHuge:i,modalColor:f,popoverColor:g}=n;return{borderRadius:l,fontSize:c,border:`2px solid ${d}`,heightTiny:u,heightSmall:s,heightMedium:z,heightLarge:m,heightHuge:i,color:C(d,a),colorModal:C(f,a),colorPopover:C(g,a)}}const ae={common:A,self:te},se=K("n-avatar-group"),ie=_("avatar",` import{i as I,o as W}from"./utils.js";import{a as V}from"./Tag.js";import{X as A,az as C,x as K,Z as _,_ as N,be as G,M as E,$ as H,A as X,a5 as Z,B as y,a3 as q,aZ as D,a7 as U,r as O,h as $,c as x,a9 as k,aa as Y,ac as J,bV as Q,p as ee,ax as ne,q as re,w as oe}from"./_plugin-vue_export-helper.js";function te(n){const{borderRadius:l,avatarColor:a,cardColor:d,fontSize:c,heightTiny:u,heightSmall:s,heightMedium:z,heightLarge:m,heightHuge:i,modalColor:f,popoverColor:g}=n;return{borderRadius:l,fontSize:c,border:`2px solid ${d}`,heightTiny:u,heightSmall:s,heightMedium:z,heightLarge:m,heightHuge:i,color:C(d,a),colorModal:C(f,a),colorPopover:C(g,a)}}const ae={common:A,self:te},se=K("n-avatar-group"),ie=_("avatar",`
width: var(--n-merged-size); width: var(--n-merged-size);
height: var(--n-merged-size); height: var(--n-merged-size);
color: #FFF; color: #FFF;
@ -27,4 +27,4 @@ import{i as I,o as W}from"./utils.js";import{a as V}from"./Tag.js";import{X as A
`),_("icon",` `),_("icon",`
vertical-align: bottom; vertical-align: bottom;
font-size: calc(var(--n-merged-size) - 6px); font-size: calc(var(--n-merged-size) - 6px);
`),H("text","line-height: 1.25")]),le=Object.assign(Object.assign({},k.props),{size:[String,Number],src:String,circle:{type:Boolean,default:void 0},objectFit:String,round:{type:Boolean,default:void 0},bordered:{type:Boolean,default:void 0},onError:Function,fallbackSrc:String,intersectionObserverOptions:Object,lazy:Boolean,onLoad:Function,renderPlaceholder:Function,renderFallback:Function,imgProps:Object,color:String}),fe=X({name:"Avatar",props:le,slots:Object,setup(n){const{mergedClsPrefixRef:l,inlineThemeDisabled:a}=U(n),d=O(!1);let c=null;const u=O(null),s=O(null),z=()=>{const{value:e}=u;if(e&&(c===null||c!==e.innerHTML)){c=e.innerHTML;const{value:r}=s;if(r){const{offsetWidth:o,offsetHeight:h}=r,{offsetWidth:t,offsetHeight:S}=e,R=.9,j=Math.min(o/t*R,h/S*R,1);e.style.transform=`translateX(-50%) translateY(-50%) scale(${j})`}}},m=$(se,null),i=x(()=>{const{size:e}=n;if(e)return e;const{size:r}=m||{};return r||"medium"}),f=k("Avatar","-avatar",ie,ae,n,l),g=$(V,null),v=x(()=>{if(m)return!0;const{round:e,circle:r}=n;return e!==void 0||r!==void 0?e||r:g?g.roundRef.value:!1}),b=x(()=>m?!0:n.bordered||!1),F=x(()=>{const e=i.value,r=v.value,o=b.value,{color:h}=n,{self:{borderRadius:t,fontSize:S,color:R,border:j,colorModal:w,colorPopover:B},common:{cubicBezierEaseInOut:M}}=f.value;let P;return typeof e=="number"?P=`${e}px`:P=f.value.self[Z("height",e)],{"--n-font-size":S,"--n-border":o?j:"none","--n-border-radius":r?"50%":t,"--n-color":h||R,"--n-color-modal":h||w,"--n-color-popover":h||B,"--n-bezier":M,"--n-merged-size":`var(--n-avatar-size-override, ${P})`}}),p=a?J("avatar",x(()=>{const e=i.value,r=v.value,o=b.value,{color:h}=n;let t="";return e&&(typeof e=="number"?t+=`a${e}`:t+=e[0]),r&&(t+="b"),o&&(t+="c"),h&&(t+=Q(h)),t}),F,n):void 0,L=O(!n.lazy);ee(()=>{if(n.lazy&&n.intersectionObserverOptions){let e;const r=ne(()=>{e==null||e(),e=void 0,n.lazy&&(e=W(s.value,n.intersectionObserverOptions,L))});re(()=>{r(),e==null||e()})}}),oe(()=>{var e;return n.src||((e=n.imgProps)===null||e===void 0?void 0:e.src)},()=>{d.value=!1});const T=O(!n.lazy);return{textRef:u,selfRef:s,mergedRoundRef:v,mergedClsPrefix:l,fitTextTransform:z,cssVars:a?void 0:F,themeClass:p==null?void 0:p.themeClass,onRender:p==null?void 0:p.onRender,hasLoadError:d,shouldStartLoading:L,loaded:T,mergedOnError:e=>{if(!L.value)return;d.value=!0;const{onError:r,imgProps:{onError:o}={}}=n;r==null||r(e),o==null||o(e)},mergedOnLoad:e=>{const{onLoad:r,imgProps:{onLoad:o}={}}=n;r==null||r(e),o==null||o(e),T.value=!0}}},render(){var n,l;const{$slots:a,src:d,mergedClsPrefix:c,lazy:u,onRender:s,loaded:z,hasLoadError:m,imgProps:i={}}=this;s==null||s();let f;const g=!z&&!m&&(this.renderPlaceholder?this.renderPlaceholder():(l=(n=this.$slots).placeholder)===null||l===void 0?void 0:l.call(n));return this.hasLoadError?f=this.renderFallback?this.renderFallback():Y(a.fallback,()=>[y("img",{src:this.fallbackSrc,style:{objectFit:this.objectFit}})]):f=q(a.default,v=>{if(v)return y(D,{onResize:this.fitTextTransform},{default:()=>y("span",{ref:"textRef",class:`${c}-avatar__text`},v)});if(d||i.src){const b=this.src||i.src;return y("img",Object.assign(Object.assign({},i),{loading:I&&!this.intersectionObserverOptions&&u?"lazy":"eager",src:u&&this.intersectionObserverOptions?this.shouldStartLoading?b:void 0:b,"data-image-src":b,onLoad:this.mergedOnLoad,onError:this.mergedOnError,style:[i.style||"",{objectFit:this.objectFit},g?{height:"0",width:"0",visibility:"hidden",position:"absolute"}:""]}))}}),y("span",{ref:"selfRef",class:[`${c}-avatar`,this.themeClass],style:this.cssVars},f,u&&g)}});export{fe as _}; `),H("text","line-height: 1.25")]),le=Object.assign(Object.assign({},k.props),{size:[String,Number],src:String,circle:{type:Boolean,default:void 0},objectFit:String,round:{type:Boolean,default:void 0},bordered:{type:Boolean,default:void 0},onError:Function,fallbackSrc:String,intersectionObserverOptions:Object,lazy:Boolean,onLoad:Function,renderPlaceholder:Function,renderFallback:Function,imgProps:Object,color:String}),fe=X({name:"Avatar",props:le,slots:Object,setup(n){const{mergedClsPrefixRef:l,inlineThemeDisabled:a}=U(n),d=O(!1);let c=null;const u=O(null),s=O(null),z=()=>{const{value:e}=u;if(e&&(c===null||c!==e.innerHTML)){c=e.innerHTML;const{value:r}=s;if(r){const{offsetWidth:o,offsetHeight:h}=r,{offsetWidth:t,offsetHeight:S}=e,R=.9,j=Math.min(o/t*R,h/S*R,1);e.style.transform=`translateX(-50%) translateY(-50%) scale(${j})`}}},m=$(se,null),i=x(()=>{const{size:e}=n;if(e)return e;const{size:r}=m||{};return r||"medium"}),f=k("Avatar","-avatar",ie,ae,n,l),g=$(V,null),v=x(()=>{if(m)return!0;const{round:e,circle:r}=n;return e!==void 0||r!==void 0?e||r:g?g.roundRef.value:!1}),b=x(()=>m?!0:n.bordered||!1),F=x(()=>{const e=i.value,r=v.value,o=b.value,{color:h}=n,{self:{borderRadius:t,fontSize:S,color:R,border:j,colorModal:w,colorPopover:B},common:{cubicBezierEaseInOut:M}}=f.value;let P;return typeof e=="number"?P=`${e}px`:P=f.value.self[Y("height",e)],{"--n-font-size":S,"--n-border":o?j:"none","--n-border-radius":r?"50%":t,"--n-color":h||R,"--n-color-modal":h||w,"--n-color-popover":h||B,"--n-bezier":M,"--n-merged-size":`var(--n-avatar-size-override, ${P})`}}),p=a?J("avatar",x(()=>{const e=i.value,r=v.value,o=b.value,{color:h}=n;let t="";return e&&(typeof e=="number"?t+=`a${e}`:t+=e[0]),r&&(t+="b"),o&&(t+="c"),h&&(t+=Q(h)),t}),F,n):void 0,L=O(!n.lazy);ee(()=>{if(n.lazy&&n.intersectionObserverOptions){let e;const r=ne(()=>{e==null||e(),e=void 0,n.lazy&&(e=W(s.value,n.intersectionObserverOptions,L))});re(()=>{r(),e==null||e()})}}),oe(()=>{var e;return n.src||((e=n.imgProps)===null||e===void 0?void 0:e.src)},()=>{d.value=!1});const T=O(!n.lazy);return{textRef:u,selfRef:s,mergedRoundRef:v,mergedClsPrefix:l,fitTextTransform:z,cssVars:a?void 0:F,themeClass:p==null?void 0:p.themeClass,onRender:p==null?void 0:p.onRender,hasLoadError:d,shouldStartLoading:L,loaded:T,mergedOnError:e=>{if(!L.value)return;d.value=!0;const{onError:r,imgProps:{onError:o}={}}=n;r==null||r(e),o==null||o(e)},mergedOnLoad:e=>{const{onLoad:r,imgProps:{onLoad:o}={}}=n;r==null||r(e),o==null||o(e),T.value=!0}}},render(){var n,l;const{$slots:a,src:d,mergedClsPrefix:c,lazy:u,onRender:s,loaded:z,hasLoadError:m,imgProps:i={}}=this;s==null||s();let f;const g=!z&&!m&&(this.renderPlaceholder?this.renderPlaceholder():(l=(n=this.$slots).placeholder)===null||l===void 0?void 0:l.call(n));return this.hasLoadError?f=this.renderFallback?this.renderFallback():Z(a.fallback,()=>[y("img",{src:this.fallbackSrc,style:{objectFit:this.objectFit}})]):f=q(a.default,v=>{if(v)return y(D,{onResize:this.fitTextTransform},{default:()=>y("span",{ref:"textRef",class:`${c}-avatar__text`},v)});if(d||i.src){const b=this.src||i.src;return y("img",Object.assign(Object.assign({},i),{loading:I&&!this.intersectionObserverOptions&&u?"lazy":"eager",src:u&&this.intersectionObserverOptions?this.shouldStartLoading?b:void 0:b,"data-image-src":b,onLoad:this.mergedOnLoad,onError:this.mergedOnError,style:[i.style||"",{objectFit:this.objectFit},g?{height:"0",width:"0",visibility:"hidden",position:"absolute"}:""]}))}}),y("span",{ref:"selfRef",class:[`${c}-avatar`,this.themeClass],style:this.cssVars},f,u&&g)}});export{fe as _};

View file

@ -1,4 +1,4 @@
import{X as se,aZ as be,A as N,B as u,a7 as j,b3 as K,r as P,c as A,aC as L,S as ue,b as U,x as he,as as d,M as m,Z as a,_ as fe,be as ke,a0 as T,$ as S,at as ve,a3 as xe,au as me,s as ge,Q as pe,h as Ce,a9 as E,a8 as ye,aa as H,ac as ze,D as we}from"./_plugin-vue_export-helper.js";const Re={sizeSmall:"14px",sizeMedium:"16px",sizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"};function Se(o){const{baseColor:c,inputColorDisabled:h,cardColor:g,modalColor:w,popoverColor:k,textColorDisabled:p,borderColor:i,primaryColor:v,textColor2:r,fontSizeSmall:R,fontSizeMedium:t,fontSizeLarge:n,borderRadiusSmall:x,lineHeight:f}=o;return Object.assign(Object.assign({},Re),{labelLineHeight:f,fontSizeSmall:R,fontSizeMedium:t,fontSizeLarge:n,borderRadius:x,color:c,colorChecked:v,colorDisabled:h,colorDisabledChecked:h,colorTableHeader:g,colorTableHeaderModal:w,colorTableHeaderPopover:k,checkMarkColor:c,checkMarkColorDisabled:p,checkMarkColorDisabledChecked:p,border:`1px solid ${i}`,borderDisabled:`1px solid ${i}`,borderDisabledChecked:`1px solid ${i}`,borderChecked:`1px solid ${v}`,borderFocus:`1px solid ${v}`,boxShadowFocus:`0 0 0 2px ${be(v,{alpha:.3})}`,textColor:r,textColorDisabled:p})}const De={name:"Checkbox",common:se,self:Se},O=he("n-checkbox-group"),Te={min:Number,max:Number,size:String,value:Array,defaultValue:{type:Array,default:null},disabled:{type:Boolean,default:void 0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onChange:[Function,Array]},Be=N({name:"CheckboxGroup",props:Te,setup(o){const{mergedClsPrefixRef:c}=j(o),h=K(o),{mergedSizeRef:g,mergedDisabledRef:w}=h,k=P(o.defaultValue),p=A(()=>o.value),i=L(p,k),v=A(()=>{var t;return((t=i.value)===null||t===void 0?void 0:t.length)||0}),r=A(()=>Array.isArray(i.value)?new Set(i.value):new Set);function R(t,n){const{nTriggerFormInput:x,nTriggerFormChange:f}=h,{onChange:l,"onUpdate:value":C,onUpdateValue:y}=o;if(Array.isArray(i.value)){const s=Array.from(i.value),F=s.findIndex(B=>B===n);t?~F||(s.push(n),y&&d(y,s,{actionType:"check",value:n}),C&&d(C,s,{actionType:"check",value:n}),x(),f(),k.value=s,l&&d(l,s)):~F&&(s.splice(F,1),y&&d(y,s,{actionType:"uncheck",value:n}),C&&d(C,s,{actionType:"uncheck",value:n}),l&&d(l,s),k.value=s,x(),f())}else t?(y&&d(y,[n],{actionType:"check",value:n}),C&&d(C,[n],{actionType:"check",value:n}),l&&d(l,[n]),k.value=[n],x(),f()):(y&&d(y,[],{actionType:"uncheck",value:n}),C&&d(C,[],{actionType:"uncheck",value:n}),l&&d(l,[]),k.value=[],x(),f())}return ue(O,{checkedCountRef:v,maxRef:U(o,"max"),minRef:U(o,"min"),valueSetRef:r,disabledRef:w,mergedSizeRef:g,toggleCheckbox:R}),{mergedClsPrefix:c}},render(){return u("div",{class:`${this.mergedClsPrefix}-checkbox-group`,role:"group"},this.$slots)}}),$e=()=>u("svg",{viewBox:"0 0 64 64",class:"check-icon"},u("path",{d:"M50.42,16.76L22.34,39.45l-8.1-11.46c-1.12-1.58-3.3-1.96-4.88-0.84c-1.58,1.12-1.95,3.3-0.84,4.88l10.26,14.51 c0.56,0.79,1.42,1.31,2.38,1.45c0.16,0.02,0.32,0.03,0.48,0.03c0.8,0,1.57-0.27,2.2-0.78l30.99-25.03c1.5-1.21,1.74-3.42,0.52-4.92 C54.13,15.78,51.93,15.55,50.42,16.76z"})),Me=()=>u("svg",{viewBox:"0 0 100 100",class:"line-icon"},u("path",{d:"M80.2,55.5H21.4c-2.8,0-5.1-2.5-5.1-5.5l0,0c0-3,2.3-5.5,5.1-5.5h58.7c2.8,0,5.1,2.5,5.1,5.5l0,0C85.2,53.1,82.9,55.5,80.2,55.5z"})),_e=m([a("checkbox",` import{X as se,aY as be,A as N,B as u,a7 as j,b3 as K,r as P,c as A,aC as L,S as ue,b as U,x as he,as as d,M as m,Z as a,_ as fe,be as ke,a0 as T,$ as S,at as ve,a3 as xe,au as me,s as ge,Q as pe,h as Ce,a9 as E,a8 as ye,aa as H,ac as ze,D as we}from"./_plugin-vue_export-helper.js";const Re={sizeSmall:"14px",sizeMedium:"16px",sizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"};function Se(o){const{baseColor:c,inputColorDisabled:h,cardColor:g,modalColor:w,popoverColor:k,textColorDisabled:p,borderColor:i,primaryColor:v,textColor2:r,fontSizeSmall:R,fontSizeMedium:t,fontSizeLarge:n,borderRadiusSmall:x,lineHeight:f}=o;return Object.assign(Object.assign({},Re),{labelLineHeight:f,fontSizeSmall:R,fontSizeMedium:t,fontSizeLarge:n,borderRadius:x,color:c,colorChecked:v,colorDisabled:h,colorDisabledChecked:h,colorTableHeader:g,colorTableHeaderModal:w,colorTableHeaderPopover:k,checkMarkColor:c,checkMarkColorDisabled:p,checkMarkColorDisabledChecked:p,border:`1px solid ${i}`,borderDisabled:`1px solid ${i}`,borderDisabledChecked:`1px solid ${i}`,borderChecked:`1px solid ${v}`,borderFocus:`1px solid ${v}`,boxShadowFocus:`0 0 0 2px ${be(v,{alpha:.3})}`,textColor:r,textColorDisabled:p})}const De={name:"Checkbox",common:se,self:Se},O=he("n-checkbox-group"),Te={min:Number,max:Number,size:String,value:Array,defaultValue:{type:Array,default:null},disabled:{type:Boolean,default:void 0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onChange:[Function,Array]},Be=N({name:"CheckboxGroup",props:Te,setup(o){const{mergedClsPrefixRef:c}=j(o),h=K(o),{mergedSizeRef:g,mergedDisabledRef:w}=h,k=P(o.defaultValue),p=A(()=>o.value),i=L(p,k),v=A(()=>{var t;return((t=i.value)===null||t===void 0?void 0:t.length)||0}),r=A(()=>Array.isArray(i.value)?new Set(i.value):new Set);function R(t,n){const{nTriggerFormInput:x,nTriggerFormChange:f}=h,{onChange:l,"onUpdate:value":C,onUpdateValue:y}=o;if(Array.isArray(i.value)){const s=Array.from(i.value),F=s.findIndex(B=>B===n);t?~F||(s.push(n),y&&d(y,s,{actionType:"check",value:n}),C&&d(C,s,{actionType:"check",value:n}),x(),f(),k.value=s,l&&d(l,s)):~F&&(s.splice(F,1),y&&d(y,s,{actionType:"uncheck",value:n}),C&&d(C,s,{actionType:"uncheck",value:n}),l&&d(l,s),k.value=s,x(),f())}else t?(y&&d(y,[n],{actionType:"check",value:n}),C&&d(C,[n],{actionType:"check",value:n}),l&&d(l,[n]),k.value=[n],x(),f()):(y&&d(y,[],{actionType:"uncheck",value:n}),C&&d(C,[],{actionType:"uncheck",value:n}),l&&d(l,[]),k.value=[],x(),f())}return ue(O,{checkedCountRef:v,maxRef:U(o,"max"),minRef:U(o,"min"),valueSetRef:r,disabledRef:w,mergedSizeRef:g,toggleCheckbox:R}),{mergedClsPrefix:c}},render(){return u("div",{class:`${this.mergedClsPrefix}-checkbox-group`,role:"group"},this.$slots)}}),$e=()=>u("svg",{viewBox:"0 0 64 64",class:"check-icon"},u("path",{d:"M50.42,16.76L22.34,39.45l-8.1-11.46c-1.12-1.58-3.3-1.96-4.88-0.84c-1.58,1.12-1.95,3.3-0.84,4.88l10.26,14.51 c0.56,0.79,1.42,1.31,2.38,1.45c0.16,0.02,0.32,0.03,0.48,0.03c0.8,0,1.57-0.27,2.2-0.78l30.99-25.03c1.5-1.21,1.74-3.42,0.52-4.92 C54.13,15.78,51.93,15.55,50.42,16.76z"})),Me=()=>u("svg",{viewBox:"0 0 100 100",class:"line-icon"},u("path",{d:"M80.2,55.5H21.4c-2.8,0-5.1-2.5-5.1-5.5l0,0c0-3,2.3-5.5,5.1-5.5h58.7c2.8,0,5.1,2.5,5.1,5.5l0,0C85.2,53.1,82.9,55.5,80.2,55.5z"})),_e=m([a("checkbox",`
font-size: var(--n-font-size); font-size: var(--n-font-size);
outline: none; outline: none;
cursor: pointer; cursor: pointer;
@ -102,4 +102,4 @@ import{X as se,aZ as be,A as N,B as u,a7 as j,b3 as K,r as P,c as A,aC as L,S as
--n-merged-color-table: var(--n-color-table-modal); --n-merged-color-table: var(--n-color-table-modal);
`)),ke(a("checkbox",` `)),ke(a("checkbox",`
--n-merged-color-table: var(--n-color-table-popover); --n-merged-color-table: var(--n-color-table-popover);
`))]),Fe=Object.assign(Object.assign({},E.props),{size:String,checked:{type:[Boolean,String,Number],default:void 0},defaultChecked:{type:[Boolean,String,Number],default:!1},value:[String,Number],disabled:{type:Boolean,default:void 0},indeterminate:Boolean,label:String,focusable:{type:Boolean,default:!0},checkedValue:{type:[Boolean,String,Number],default:!0},uncheckedValue:{type:[Boolean,String,Number],default:!1},"onUpdate:checked":[Function,Array],onUpdateChecked:[Function,Array],privateInsideTable:Boolean,onChange:[Function,Array]}),Ie=N({name:"Checkbox",props:Fe,setup(o){const c=Ce(O,null),h=P(null),{mergedClsPrefixRef:g,inlineThemeDisabled:w,mergedRtlRef:k}=j(o),p=P(o.defaultChecked),i=U(o,"checked"),v=L(i,p),r=pe(()=>{if(c){const e=c.valueSetRef.value;return e&&o.value!==void 0?e.has(o.value):!1}else return v.value===o.checkedValue}),R=K(o,{mergedSize(e){const{size:z}=o;if(z!==void 0)return z;if(c){const{value:b}=c.mergedSizeRef;if(b!==void 0)return b}if(e){const{mergedSize:b}=e;if(b!==void 0)return b.value}return"medium"},mergedDisabled(e){const{disabled:z}=o;if(z!==void 0)return z;if(c){if(c.disabledRef.value)return!0;const{maxRef:{value:b},checkedCountRef:D}=c;if(b!==void 0&&D.value>=b&&!r.value)return!0;const{minRef:{value:M}}=c;if(M!==void 0&&D.value<=M&&r.value)return!0}return e?e.disabled.value:!1}}),{mergedDisabledRef:t,mergedSizeRef:n}=R,x=E("Checkbox","-checkbox",_e,De,o,g);function f(e){if(c&&o.value!==void 0)c.toggleCheckbox(!r.value,o.value);else{const{onChange:z,"onUpdate:checked":b,onUpdateChecked:D}=o,{nTriggerFormInput:M,nTriggerFormChange:I}=R,_=r.value?o.uncheckedValue:o.checkedValue;b&&d(b,_,e),D&&d(D,_,e),z&&d(z,_,e),M(),I(),p.value=_}}function l(e){t.value||f(e)}function C(e){if(!t.value)switch(e.key){case" ":case"Enter":f(e)}}function y(e){switch(e.key){case" ":e.preventDefault()}}const s={focus:()=>{var e;(e=h.value)===null||e===void 0||e.focus()},blur:()=>{var e;(e=h.value)===null||e===void 0||e.blur()}},F=ye("Checkbox",k,g),B=A(()=>{const{value:e}=n,{common:{cubicBezierEaseInOut:z},self:{borderRadius:b,color:D,colorChecked:M,colorDisabled:I,colorTableHeader:_,colorTableHeaderModal:V,colorTableHeaderPopover:G,checkMarkColor:W,checkMarkColorDisabled:Z,border:Q,borderFocus:X,borderDisabled:Y,borderChecked:q,boxShadowFocus:J,textColor:ee,textColorDisabled:oe,checkMarkColorDisabledChecked:re,colorDisabledChecked:ne,borderDisabledChecked:ae,labelPadding:ce,labelLineHeight:le,labelFontWeight:de,[H("fontSize",e)]:ie,[H("size",e)]:te}}=x.value;return{"--n-label-line-height":le,"--n-label-font-weight":de,"--n-size":te,"--n-bezier":z,"--n-border-radius":b,"--n-border":Q,"--n-border-checked":q,"--n-border-focus":X,"--n-border-disabled":Y,"--n-border-disabled-checked":ae,"--n-box-shadow-focus":J,"--n-color":D,"--n-color-checked":M,"--n-color-table":_,"--n-color-table-modal":V,"--n-color-table-popover":G,"--n-color-disabled":I,"--n-color-disabled-checked":ne,"--n-text-color":ee,"--n-text-color-disabled":oe,"--n-check-mark-color":W,"--n-check-mark-color-disabled":Z,"--n-check-mark-color-disabled-checked":re,"--n-font-size":ie,"--n-label-padding":ce}}),$=w?ze("checkbox",A(()=>n.value[0]),B,o):void 0;return Object.assign(R,s,{rtlEnabled:F,selfRef:h,mergedClsPrefix:g,mergedDisabled:t,renderedChecked:r,mergedTheme:x,labelId:we(),handleClick:l,handleKeyUp:C,handleKeyDown:y,cssVars:w?void 0:B,themeClass:$==null?void 0:$.themeClass,onRender:$==null?void 0:$.onRender})},render(){var o;const{$slots:c,renderedChecked:h,mergedDisabled:g,indeterminate:w,privateInsideTable:k,cssVars:p,labelId:i,label:v,mergedClsPrefix:r,focusable:R,handleKeyUp:t,handleKeyDown:n,handleClick:x}=this;(o=this.onRender)===null||o===void 0||o.call(this);const f=xe(c.default,l=>v||l?u("span",{class:`${r}-checkbox__label`,id:i},v||l):null);return u("div",{ref:"selfRef",class:[`${r}-checkbox`,this.themeClass,this.rtlEnabled&&`${r}-checkbox--rtl`,h&&`${r}-checkbox--checked`,g&&`${r}-checkbox--disabled`,w&&`${r}-checkbox--indeterminate`,k&&`${r}-checkbox--inside-table`,f&&`${r}-checkbox--show-label`],tabindex:g||!R?void 0:0,role:"checkbox","aria-checked":w?"mixed":h,"aria-labelledby":i,style:p,onKeyup:t,onKeydown:n,onClick:x,onMousedown:()=>{ge("selectstart",window,l=>{l.preventDefault()},{once:!0})}},u("div",{class:`${r}-checkbox-box-wrapper`}," ",u("div",{class:`${r}-checkbox-box`},u(me,null,{default:()=>this.indeterminate?u("div",{key:"indeterminate",class:`${r}-checkbox-icon`},Me()):u("div",{key:"check",class:`${r}-checkbox-icon`},$e())}),u("div",{class:`${r}-checkbox-box__border`}))),f)}});export{Be as N,Ie as _,De as c}; `))]),Fe=Object.assign(Object.assign({},E.props),{size:String,checked:{type:[Boolean,String,Number],default:void 0},defaultChecked:{type:[Boolean,String,Number],default:!1},value:[String,Number],disabled:{type:Boolean,default:void 0},indeterminate:Boolean,label:String,focusable:{type:Boolean,default:!0},checkedValue:{type:[Boolean,String,Number],default:!0},uncheckedValue:{type:[Boolean,String,Number],default:!1},"onUpdate:checked":[Function,Array],onUpdateChecked:[Function,Array],privateInsideTable:Boolean,onChange:[Function,Array]}),Ie=N({name:"Checkbox",props:Fe,setup(o){const c=Ce(O,null),h=P(null),{mergedClsPrefixRef:g,inlineThemeDisabled:w,mergedRtlRef:k}=j(o),p=P(o.defaultChecked),i=U(o,"checked"),v=L(i,p),r=pe(()=>{if(c){const e=c.valueSetRef.value;return e&&o.value!==void 0?e.has(o.value):!1}else return v.value===o.checkedValue}),R=K(o,{mergedSize(e){const{size:z}=o;if(z!==void 0)return z;if(c){const{value:b}=c.mergedSizeRef;if(b!==void 0)return b}if(e){const{mergedSize:b}=e;if(b!==void 0)return b.value}return"medium"},mergedDisabled(e){const{disabled:z}=o;if(z!==void 0)return z;if(c){if(c.disabledRef.value)return!0;const{maxRef:{value:b},checkedCountRef:D}=c;if(b!==void 0&&D.value>=b&&!r.value)return!0;const{minRef:{value:M}}=c;if(M!==void 0&&D.value<=M&&r.value)return!0}return e?e.disabled.value:!1}}),{mergedDisabledRef:t,mergedSizeRef:n}=R,x=E("Checkbox","-checkbox",_e,De,o,g);function f(e){if(c&&o.value!==void 0)c.toggleCheckbox(!r.value,o.value);else{const{onChange:z,"onUpdate:checked":b,onUpdateChecked:D}=o,{nTriggerFormInput:M,nTriggerFormChange:I}=R,_=r.value?o.uncheckedValue:o.checkedValue;b&&d(b,_,e),D&&d(D,_,e),z&&d(z,_,e),M(),I(),p.value=_}}function l(e){t.value||f(e)}function C(e){if(!t.value)switch(e.key){case" ":case"Enter":f(e)}}function y(e){switch(e.key){case" ":e.preventDefault()}}const s={focus:()=>{var e;(e=h.value)===null||e===void 0||e.focus()},blur:()=>{var e;(e=h.value)===null||e===void 0||e.blur()}},F=ye("Checkbox",k,g),B=A(()=>{const{value:e}=n,{common:{cubicBezierEaseInOut:z},self:{borderRadius:b,color:D,colorChecked:M,colorDisabled:I,colorTableHeader:_,colorTableHeaderModal:V,colorTableHeaderPopover:G,checkMarkColor:W,checkMarkColorDisabled:Y,border:Q,borderFocus:X,borderDisabled:Z,borderChecked:q,boxShadowFocus:J,textColor:ee,textColorDisabled:oe,checkMarkColorDisabledChecked:re,colorDisabledChecked:ne,borderDisabledChecked:ae,labelPadding:ce,labelLineHeight:le,labelFontWeight:de,[H("fontSize",e)]:ie,[H("size",e)]:te}}=x.value;return{"--n-label-line-height":le,"--n-label-font-weight":de,"--n-size":te,"--n-bezier":z,"--n-border-radius":b,"--n-border":Q,"--n-border-checked":q,"--n-border-focus":X,"--n-border-disabled":Z,"--n-border-disabled-checked":ae,"--n-box-shadow-focus":J,"--n-color":D,"--n-color-checked":M,"--n-color-table":_,"--n-color-table-modal":V,"--n-color-table-popover":G,"--n-color-disabled":I,"--n-color-disabled-checked":ne,"--n-text-color":ee,"--n-text-color-disabled":oe,"--n-check-mark-color":W,"--n-check-mark-color-disabled":Y,"--n-check-mark-color-disabled-checked":re,"--n-font-size":ie,"--n-label-padding":ce}}),$=w?ze("checkbox",A(()=>n.value[0]),B,o):void 0;return Object.assign(R,s,{rtlEnabled:F,selfRef:h,mergedClsPrefix:g,mergedDisabled:t,renderedChecked:r,mergedTheme:x,labelId:we(),handleClick:l,handleKeyUp:C,handleKeyDown:y,cssVars:w?void 0:B,themeClass:$==null?void 0:$.themeClass,onRender:$==null?void 0:$.onRender})},render(){var o;const{$slots:c,renderedChecked:h,mergedDisabled:g,indeterminate:w,privateInsideTable:k,cssVars:p,labelId:i,label:v,mergedClsPrefix:r,focusable:R,handleKeyUp:t,handleKeyDown:n,handleClick:x}=this;(o=this.onRender)===null||o===void 0||o.call(this);const f=xe(c.default,l=>v||l?u("span",{class:`${r}-checkbox__label`,id:i},v||l):null);return u("div",{ref:"selfRef",class:[`${r}-checkbox`,this.themeClass,this.rtlEnabled&&`${r}-checkbox--rtl`,h&&`${r}-checkbox--checked`,g&&`${r}-checkbox--disabled`,w&&`${r}-checkbox--indeterminate`,k&&`${r}-checkbox--inside-table`,f&&`${r}-checkbox--show-label`],tabindex:g||!R?void 0:0,role:"checkbox","aria-checked":w?"mixed":h,"aria-labelledby":i,style:p,onKeyup:t,onKeydown:n,onClick:x,onMousedown:()=>{ge("selectstart",window,l=>{l.preventDefault()},{once:!0})}},u("div",{class:`${r}-checkbox-box-wrapper`}," ",u("div",{class:`${r}-checkbox-box`},u(me,null,{default:()=>this.indeterminate?u("div",{key:"indeterminate",class:`${r}-checkbox-icon`},Me()):u("div",{key:"check",class:`${r}-checkbox-icon`},$e())}),u("div",{class:`${r}-checkbox-box__border`}))),f)}});export{Be as N,Ie as _,De as c};

View file

@ -1,4 +1,4 @@
var ei=Object.defineProperty;var ti=(t,a,e)=>a in t?ei(t,a,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[a]=e;var _=(t,a,e)=>ti(t,typeof a!="symbol"?a+"":a,e);import{_ as ni}from"./HelpText.js";import{t as E,n as gt,p as kn,q as ai,h as ba,d as ur,v as $n,j as ri,s as Ea,u as ii,_ as li,m as oi,w as si}from"./main.js";import{b as di,_ as ui,r as Kn,p as Ba,c as ci,a as fi}from"./common.js";import{c as b,h as Dt,U as hi,L as ya,B as l,X as Hn,M as B,Z as G,a0 as Z,$ as De,A as et,a7 as En,r as R,p as wa,w as Be,b as ze,a9 as Tt,ac as Gt,V as Ca,W as xa,ae as cr,aZ as mi,x as fr,n as wn,ak as vt,a3 as hr,ba as kt,bb as Xe,a4 as $e,al as ka,aj as Da,E as _a,a5 as de,ay as vi,aD as Xt,a2 as Cn,b3 as Ta,aC as An,ar as mr,as as xe,S as vr,ax as pi,G as gi,aa as ja,aG as pr,aH as Ct,aK as Je,aL as Ce,aO as Nt,aU as gn,aI as ne,aM as be,aW as ge,z as rt,i as Lt,an as bi,aX as Ua,F as qa,aF as gr,bc as yi,b4 as wi}from"./_plugin-vue_export-helper.js";import{S as Ci}from"./Scrollbar.js";import{t as xi,_ as ki,c as Di}from"./Tag.js";import{i as Sa,_ as _t}from"./Input.js";import{A as _i}from"./Add.js";import{e as br,u as Dn}from"./use-locale.js";import{F as Jt,B as en,a as tn,b as nn,s as Ti}from"./Forward.js";import{u as yr,_ as Si}from"./Dropdown.js";import{V as oa,F as Bt,_ as Mi}from"./Select.js";import{B as Ma,V as Oa,a as Ra,u as an}from"./Tooltip.js";import{h as wr}from"./create.js";import{_ as Oi}from"./Checkbox.js";import{r as Cr}from"./index.js";import{a as Ri}from"./Image.js";import{N as Pi}from"./Icon.js";function Fi(t,a){const e=Dt(hi,null);return b(()=>t.hljs||(e==null?void 0:e.mergedHljsRef.value))}const La=ya("date",()=>l("svg",{width:"28px",height:"28px",viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},l("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},l("g",{"fill-rule":"nonzero"},l("path",{d:"M21.75,3 C23.5449254,3 25,4.45507456 25,6.25 L25,21.75 C25,23.5449254 23.5449254,25 21.75,25 L6.25,25 C4.45507456,25 3,23.5449254 3,21.75 L3,6.25 C3,4.45507456 4.45507456,3 6.25,3 L21.75,3 Z M23.5,9.503 L4.5,9.503 L4.5,21.75 C4.5,22.7164983 5.28350169,23.5 6.25,23.5 L21.75,23.5 C22.7164983,23.5 23.5,22.7164983 23.5,21.75 L23.5,9.503 Z M21.75,4.5 L6.25,4.5 C5.28350169,4.5 4.5,5.28350169 4.5,6.25 L4.5,8.003 L23.5,8.003 L23.5,6.25 C23.5,5.28350169 22.7164983,4.5 21.75,4.5 Z"}))))),$i=ya("time",()=>l("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},l("path",{d:"M256,64C150,64,64,150,64,256s86,192,192,192,192-86,192-192S362,64,256,64Z",style:` var ei=Object.defineProperty;var ti=(t,a,e)=>a in t?ei(t,a,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[a]=e;var _=(t,a,e)=>ti(t,typeof a!="symbol"?a+"":a,e);import{_ as ni}from"./HelpText.js";import{t as E,n as gt,p as kn,q as ai,h as ba,d as ur,v as $n,j as ri,s as Ea,u as ii,_ as li,m as oi,w as si}from"./main.js";import{b as di,_ as ui,r as Kn,p as Ba,c as ci,a as fi}from"./common.js";import{c as b,h as Dt,U as hi,L as ya,B as l,X as Hn,M as B,Z as G,a0 as Z,$ as De,A as et,a7 as En,r as R,p as wa,w as Be,b as ze,a9 as Tt,ac as Gt,V as Ca,W as xa,ae as cr,aY as mi,x as fr,n as wn,ak as vt,a3 as hr,ba as kt,bb as Xe,a4 as $e,al as ka,aj as Da,E as _a,a5 as de,ay as vi,aD as Xt,a2 as Cn,b3 as Ta,aC as An,ar as mr,as as xe,S as vr,ax as pi,G as gi,aa as ja,aG as pr,aH as Ct,aK as Je,aL as Ce,aO as Nt,aU as gn,aI as ne,aM as be,aW as ge,z as rt,i as Lt,an as bi,aX as Ua,F as qa,aF as gr,bc as yi,b4 as wi}from"./_plugin-vue_export-helper.js";import{S as Ci}from"./Scrollbar.js";import{t as xi,_ as ki,c as Di}from"./Tag.js";import{i as Sa,_ as _t}from"./Input.js";import{A as _i}from"./Add.js";import{e as br,u as Dn}from"./use-locale.js";import{F as Jt,B as en,a as tn,b as nn,s as Ti}from"./Forward.js";import{u as yr,_ as Si}from"./Dropdown.js";import{V as oa,F as Bt,_ as Mi}from"./Select.js";import{B as Ma,V as Oa,a as Ra,u as an}from"./Tooltip.js";import{h as wr}from"./create.js";import{_ as Oi}from"./Checkbox.js";import{r as Cr}from"./index.js";import{a as Ri}from"./Image.js";import{N as Pi}from"./Icon.js";function Fi(t,a){const e=Dt(hi,null);return b(()=>t.hljs||(e==null?void 0:e.mergedHljsRef.value))}const La=ya("date",()=>l("svg",{width:"28px",height:"28px",viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},l("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},l("g",{"fill-rule":"nonzero"},l("path",{d:"M21.75,3 C23.5449254,3 25,4.45507456 25,6.25 L25,21.75 C25,23.5449254 23.5449254,25 21.75,25 L6.25,25 C4.45507456,25 3,23.5449254 3,21.75 L3,6.25 C3,4.45507456 4.45507456,3 6.25,3 L21.75,3 Z M23.5,9.503 L4.5,9.503 L4.5,21.75 C4.5,22.7164983 5.28350169,23.5 6.25,23.5 L21.75,23.5 C22.7164983,23.5 23.5,22.7164983 23.5,21.75 L23.5,9.503 Z M21.75,4.5 L6.25,4.5 C5.28350169,4.5 4.5,5.28350169 4.5,6.25 L4.5,8.003 L23.5,8.003 L23.5,6.25 C23.5,5.28350169 22.7164983,4.5 21.75,4.5 Z"}))))),$i=ya("time",()=>l("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},l("path",{d:"M256,64C150,64,64,150,64,256s86,192,192,192,192-86,192-192S362,64,256,64Z",style:`
fill: none; fill: none;
stroke: currentColor; stroke: currentColor;
stroke-miterlimit: 10; stroke-miterlimit: 10;

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1,4 +1,4 @@
import{A as L,B as o,L as sr,Z as m,M as C,$ as s,at as ur,au as dr,a5 as q,bn as Ee,b as xe,a2 as le,av as cr,X as fr,aZ as ge,x as hr,a0 as F,aD as Z,r as w,w as me,h as pr,c as R,bb as vr,a3 as te,ak as gr,F as br,aY as xr,a7 as mr,a9 as Te,bt as wr,aC as yr,b3 as Cr,Q as _e,p as zr,l as Sr,ax as Fe,S as $r,a8 as _r,aa as be,ab as Fr,ac as Ar,n as Ae,s as Re,as as y,v as Be}from"./_plugin-vue_export-helper.js";import{u as Rr}from"./use-locale.js";const Br=L({name:"ChevronDown",render(){return o("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o("path",{d:"M3.14645 5.64645C3.34171 5.45118 3.65829 5.45118 3.85355 5.64645L8 9.79289L12.1464 5.64645C12.3417 5.45118 12.6583 5.45118 12.8536 5.64645C13.0488 5.84171 13.0488 6.15829 12.8536 6.35355L8.35355 10.8536C8.15829 11.0488 7.84171 11.0488 7.64645 10.8536L3.14645 6.35355C2.95118 6.15829 2.95118 5.84171 3.14645 5.64645Z",fill:"currentColor"}))}}),Pr=sr("clear",()=>o("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},o("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},o("g",{fill:"currentColor","fill-rule":"nonzero"},o("path",{d:"M8,2 C11.3137085,2 14,4.6862915 14,8 C14,11.3137085 11.3137085,14 8,14 C4.6862915,14 2,11.3137085 2,8 C2,4.6862915 4.6862915,2 8,2 Z M6.5343055,5.83859116 C6.33943736,5.70359511 6.07001296,5.72288026 5.89644661,5.89644661 L5.89644661,5.89644661 L5.83859116,5.9656945 C5.70359511,6.16056264 5.72288026,6.42998704 5.89644661,6.60355339 L5.89644661,6.60355339 L7.293,8 L5.89644661,9.39644661 L5.83859116,9.4656945 C5.70359511,9.66056264 5.72288026,9.92998704 5.89644661,10.1035534 L5.89644661,10.1035534 L5.9656945,10.1614088 C6.16056264,10.2964049 6.42998704,10.2771197 6.60355339,10.1035534 L6.60355339,10.1035534 L8,8.707 L9.39644661,10.1035534 L9.4656945,10.1614088 C9.66056264,10.2964049 9.92998704,10.2771197 10.1035534,10.1035534 L10.1035534,10.1035534 L10.1614088,10.0343055 C10.2964049,9.83943736 10.2771197,9.57001296 10.1035534,9.39644661 L10.1035534,9.39644661 L8.707,8 L10.1035534,6.60355339 L10.1614088,6.5343055 C10.2964049,6.33943736 10.2771197,6.07001296 10.1035534,5.89644661 L10.1035534,5.89644661 L10.0343055,5.83859116 C9.83943736,5.70359511 9.57001296,5.72288026 9.39644661,5.89644661 L9.39644661,5.89644661 L8,7.293 L6.60355339,5.89644661 Z"}))))),Er=L({name:"Eye",render(){return o("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},o("path",{d:"M255.66 112c-77.94 0-157.89 45.11-220.83 135.33a16 16 0 0 0-.27 17.77C82.92 340.8 161.8 400 255.66 400c92.84 0 173.34-59.38 221.79-135.25a16.14 16.14 0 0 0 0-17.47C428.89 172.28 347.8 112 255.66 112z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"}),o("circle",{cx:"256",cy:"256",r:"80",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"}))}}),Tr=L({name:"EyeOff",render(){return o("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},o("path",{d:"M432 448a15.92 15.92 0 0 1-11.31-4.69l-352-352a16 16 0 0 1 22.62-22.62l352 352A16 16 0 0 1 432 448z",fill:"currentColor"}),o("path",{d:"M255.66 384c-41.49 0-81.5-12.28-118.92-36.5c-34.07-22-64.74-53.51-88.7-91v-.08c19.94-28.57 41.78-52.73 65.24-72.21a2 2 0 0 0 .14-2.94L93.5 161.38a2 2 0 0 0-2.71-.12c-24.92 21-48.05 46.76-69.08 76.92a31.92 31.92 0 0 0-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416a239.13 239.13 0 0 0 75.8-12.58a2 2 0 0 0 .77-3.31l-21.58-21.58a4 4 0 0 0-3.83-1a204.8 204.8 0 0 1-51.16 6.47z",fill:"currentColor"}),o("path",{d:"M490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96a227.34 227.34 0 0 0-74.89 12.83a2 2 0 0 0-.75 3.31l21.55 21.55a4 4 0 0 0 3.88 1a192.82 192.82 0 0 1 50.21-6.69c40.69 0 80.58 12.43 118.55 37c34.71 22.4 65.74 53.88 89.76 91a.13.13 0 0 1 0 .16a310.72 310.72 0 0 1-64.12 72.73a2 2 0 0 0-.15 2.95l19.9 19.89a2 2 0 0 0 2.7.13a343.49 343.49 0 0 0 68.64-78.48a32.2 32.2 0 0 0-.1-34.78z",fill:"currentColor"}),o("path",{d:"M256 160a95.88 95.88 0 0 0-21.37 2.4a2 2 0 0 0-1 3.38l112.59 112.56a2 2 0 0 0 3.38-1A96 96 0 0 0 256 160z",fill:"currentColor"}),o("path",{d:"M165.78 233.66a2 2 0 0 0-3.38 1a96 96 0 0 0 115 115a2 2 0 0 0 1-3.38z",fill:"currentColor"}))}}),kr=m("base-clear",` import{A as L,B as o,L as sr,Z as m,M as C,$ as s,at as ur,au as dr,a5 as q,bn as Ee,b as xe,a2 as le,av as cr,X as fr,aY as ge,x as hr,a0 as F,aD as Z,r as w,w as me,h as pr,c as R,bb as vr,a3 as te,ak as gr,F as br,aZ as xr,a7 as mr,a9 as Te,bt as wr,aC as yr,b3 as Cr,Q as _e,p as zr,l as Sr,ax as Fe,S as $r,a8 as _r,aa as be,ab as Fr,ac as Ar,n as Ae,s as Re,as as y,v as Be}from"./_plugin-vue_export-helper.js";import{u as Rr}from"./use-locale.js";const Br=L({name:"ChevronDown",render(){return o("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o("path",{d:"M3.14645 5.64645C3.34171 5.45118 3.65829 5.45118 3.85355 5.64645L8 9.79289L12.1464 5.64645C12.3417 5.45118 12.6583 5.45118 12.8536 5.64645C13.0488 5.84171 13.0488 6.15829 12.8536 6.35355L8.35355 10.8536C8.15829 11.0488 7.84171 11.0488 7.64645 10.8536L3.14645 6.35355C2.95118 6.15829 2.95118 5.84171 3.14645 5.64645Z",fill:"currentColor"}))}}),Pr=sr("clear",()=>o("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},o("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},o("g",{fill:"currentColor","fill-rule":"nonzero"},o("path",{d:"M8,2 C11.3137085,2 14,4.6862915 14,8 C14,11.3137085 11.3137085,14 8,14 C4.6862915,14 2,11.3137085 2,8 C2,4.6862915 4.6862915,2 8,2 Z M6.5343055,5.83859116 C6.33943736,5.70359511 6.07001296,5.72288026 5.89644661,5.89644661 L5.89644661,5.89644661 L5.83859116,5.9656945 C5.70359511,6.16056264 5.72288026,6.42998704 5.89644661,6.60355339 L5.89644661,6.60355339 L7.293,8 L5.89644661,9.39644661 L5.83859116,9.4656945 C5.70359511,9.66056264 5.72288026,9.92998704 5.89644661,10.1035534 L5.89644661,10.1035534 L5.9656945,10.1614088 C6.16056264,10.2964049 6.42998704,10.2771197 6.60355339,10.1035534 L6.60355339,10.1035534 L8,8.707 L9.39644661,10.1035534 L9.4656945,10.1614088 C9.66056264,10.2964049 9.92998704,10.2771197 10.1035534,10.1035534 L10.1035534,10.1035534 L10.1614088,10.0343055 C10.2964049,9.83943736 10.2771197,9.57001296 10.1035534,9.39644661 L10.1035534,9.39644661 L8.707,8 L10.1035534,6.60355339 L10.1614088,6.5343055 C10.2964049,6.33943736 10.2771197,6.07001296 10.1035534,5.89644661 L10.1035534,5.89644661 L10.0343055,5.83859116 C9.83943736,5.70359511 9.57001296,5.72288026 9.39644661,5.89644661 L9.39644661,5.89644661 L8,7.293 L6.60355339,5.89644661 Z"}))))),Er=L({name:"Eye",render(){return o("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},o("path",{d:"M255.66 112c-77.94 0-157.89 45.11-220.83 135.33a16 16 0 0 0-.27 17.77C82.92 340.8 161.8 400 255.66 400c92.84 0 173.34-59.38 221.79-135.25a16.14 16.14 0 0 0 0-17.47C428.89 172.28 347.8 112 255.66 112z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"}),o("circle",{cx:"256",cy:"256",r:"80",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"}))}}),Tr=L({name:"EyeOff",render(){return o("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},o("path",{d:"M432 448a15.92 15.92 0 0 1-11.31-4.69l-352-352a16 16 0 0 1 22.62-22.62l352 352A16 16 0 0 1 432 448z",fill:"currentColor"}),o("path",{d:"M255.66 384c-41.49 0-81.5-12.28-118.92-36.5c-34.07-22-64.74-53.51-88.7-91v-.08c19.94-28.57 41.78-52.73 65.24-72.21a2 2 0 0 0 .14-2.94L93.5 161.38a2 2 0 0 0-2.71-.12c-24.92 21-48.05 46.76-69.08 76.92a31.92 31.92 0 0 0-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416a239.13 239.13 0 0 0 75.8-12.58a2 2 0 0 0 .77-3.31l-21.58-21.58a4 4 0 0 0-3.83-1a204.8 204.8 0 0 1-51.16 6.47z",fill:"currentColor"}),o("path",{d:"M490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96a227.34 227.34 0 0 0-74.89 12.83a2 2 0 0 0-.75 3.31l21.55 21.55a4 4 0 0 0 3.88 1a192.82 192.82 0 0 1 50.21-6.69c40.69 0 80.58 12.43 118.55 37c34.71 22.4 65.74 53.88 89.76 91a.13.13 0 0 1 0 .16a310.72 310.72 0 0 1-64.12 72.73a2 2 0 0 0-.15 2.95l19.9 19.89a2 2 0 0 0 2.7.13a343.49 343.49 0 0 0 68.64-78.48a32.2 32.2 0 0 0-.1-34.78z",fill:"currentColor"}),o("path",{d:"M256 160a95.88 95.88 0 0 0-21.37 2.4a2 2 0 0 0-1 3.38l112.59 112.56a2 2 0 0 0 3.38-1A96 96 0 0 0 256 160z",fill:"currentColor"}),o("path",{d:"M165.78 233.66a2 2 0 0 0-3.38 1a96 96 0 0 0 115 115a2 2 0 0 0 1-3.38z",fill:"currentColor"}))}}),kr=m("base-clear",`
flex-shrink: 0; flex-shrink: 0;
height: 1em; height: 1em;
width: 1em; width: 1em;

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1 +1 @@
import{y as a,aF as l}from"./_plugin-vue_export-helper.js";import{r as s}from"./index.js";let t=!1;function y(){if(a&&window.CSS&&!t&&(t=!0,"registerProperty"in(window==null?void 0:window.CSS)))try{CSS.registerProperty({name:"--n-color-start",syntax:"<color>",inherits:!1,initialValue:"#0000"}),CSS.registerProperty({name:"--n-color-end",syntax:"<color>",inherits:!1,initialValue:"#0000"})}catch{}}var r={},o;function u(){if(o)return r;o=1,Object.defineProperty(r,"__esModule",{value:!0});const e=s(),i={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"};return r.default=(0,e.defineComponent)({name:"Play",render:function(f,n){return(0,e.openBlock)(),(0,e.createElementBlock)("svg",i,n[0]||(n[0]=[(0,e.createElementVNode)("path",{d:"M133 440a35.37 35.37 0 0 1-17.5-4.67c-12-6.8-19.46-20-19.46-34.33V111c0-14.37 7.46-27.53 19.46-34.33a35.13 35.13 0 0 1 35.77.45l247.85 148.36a36 36 0 0 1 0 61l-247.89 148.4A35.5 35.5 0 0 1 133 440z",fill:"currentColor"},null,-1)]))}}),r}var d=u();const m=l(d);export{m as P,y as u}; import{aF as l}from"./_plugin-vue_export-helper.js";import{r as a}from"./index.js";var r={},o;function u(){if(o)return r;o=1,Object.defineProperty(r,"__esModule",{value:!0});const e=a(),n={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"};return r.default=(0,e.defineComponent)({name:"Play",render:function(c,t){return(0,e.openBlock)(),(0,e.createElementBlock)("svg",n,t[0]||(t[0]=[(0,e.createElementVNode)("path",{d:"M133 440a35.37 35.37 0 0 1-17.5-4.67c-12-6.8-19.46-20-19.46-34.33V111c0-14.37 7.46-27.53 19.46-34.33a35.13 35.13 0 0 1 35.77.45l247.85 148.36a36 36 0 0 1 0 61l-247.89 148.4A35.5 35.5 0 0 1 133 440z",fill:"currentColor"},null,-1)]))}}),r}var i=u();const d=l(i);export{d as P};

View file

@ -1,4 +1,4 @@
import{X as ae,aZ as M,Z as B,a0 as x,$ as s,aD as E,M as S,x as ie,h as de,b3 as L,r as $,b as U,aC as G,Q as O,a7 as j,as as F,A as N,B as y,a3 as se,a9 as V,c as D,aa as I,a8 as K,ac as W,S as le}from"./_plugin-vue_export-helper.js";import{b as ue}from"./main.js";import{g as ce}from"./get-slot.js";const be={radioSizeSmall:"14px",radioSizeMedium:"16px",radioSizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"};function he(o){const{borderColor:e,primaryColor:t,baseColor:a,textColorDisabled:n,inputColorDisabled:l,textColor2:d,opacityDisabled:u,borderRadius:i,fontSizeSmall:g,fontSizeMedium:v,fontSizeLarge:C,heightSmall:h,heightMedium:w,heightLarge:m,lineHeight:R}=o;return Object.assign(Object.assign({},be),{labelLineHeight:R,buttonHeightSmall:h,buttonHeightMedium:w,buttonHeightLarge:m,fontSizeSmall:g,fontSizeMedium:v,fontSizeLarge:C,boxShadow:`inset 0 0 0 1px ${e}`,boxShadowActive:`inset 0 0 0 1px ${t}`,boxShadowFocus:`inset 0 0 0 1px ${t}, 0 0 0 2px ${M(t,{alpha:.2})}`,boxShadowHover:`inset 0 0 0 1px ${t}`,boxShadowDisabled:`inset 0 0 0 1px ${e}`,color:a,colorDisabled:l,colorActive:"#0000",textColor:d,textColorDisabled:n,dotColorActive:t,dotColorDisabled:e,buttonBorderColor:e,buttonBorderColorActive:t,buttonBorderColorHover:e,buttonColor:a,buttonColorActive:a,buttonTextColor:d,buttonTextColorActive:t,buttonTextColorHover:t,opacityDisabled:u,buttonBoxShadowFocus:`inset 0 0 0 1px ${t}, 0 0 0 2px ${M(t,{alpha:.3})}`,buttonBoxShadowHover:"inset 0 0 0 1px #0000",buttonBoxShadow:"inset 0 0 0 1px #0000",buttonBorderRadius:i})}const Z={name:"Radio",common:ae,self:he},fe=B("radio",` import{X as ae,aY as M,Z as B,a0 as x,$ as s,aD as E,M as S,x as ie,h as de,b3 as L,r as $,b as U,aC as G,Q as O,a7 as j,as as F,A as N,B as y,a3 as se,a9 as V,c as D,aa as I,a8 as K,ac as W,S as le}from"./_plugin-vue_export-helper.js";import{b as ue}from"./main.js";import{g as ce}from"./get-slot.js";const be={radioSizeSmall:"14px",radioSizeMedium:"16px",radioSizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"};function he(o){const{borderColor:e,primaryColor:t,baseColor:a,textColorDisabled:n,inputColorDisabled:l,textColor2:d,opacityDisabled:u,borderRadius:i,fontSizeSmall:g,fontSizeMedium:v,fontSizeLarge:C,heightSmall:h,heightMedium:w,heightLarge:m,lineHeight:R}=o;return Object.assign(Object.assign({},be),{labelLineHeight:R,buttonHeightSmall:h,buttonHeightMedium:w,buttonHeightLarge:m,fontSizeSmall:g,fontSizeMedium:v,fontSizeLarge:C,boxShadow:`inset 0 0 0 1px ${e}`,boxShadowActive:`inset 0 0 0 1px ${t}`,boxShadowFocus:`inset 0 0 0 1px ${t}, 0 0 0 2px ${M(t,{alpha:.2})}`,boxShadowHover:`inset 0 0 0 1px ${t}`,boxShadowDisabled:`inset 0 0 0 1px ${e}`,color:a,colorDisabled:l,colorActive:"#0000",textColor:d,textColorDisabled:n,dotColorActive:t,dotColorDisabled:e,buttonBorderColor:e,buttonBorderColorActive:t,buttonBorderColorHover:e,buttonColor:a,buttonColorActive:a,buttonTextColor:d,buttonTextColorActive:t,buttonTextColorHover:t,opacityDisabled:u,buttonBoxShadowFocus:`inset 0 0 0 1px ${t}, 0 0 0 2px ${M(t,{alpha:.3})}`,buttonBoxShadowHover:"inset 0 0 0 1px #0000",buttonBoxShadow:"inset 0 0 0 1px #0000",buttonBorderRadius:i})}const Y={name:"Radio",common:ae,self:he},fe=B("radio",`
line-height: var(--n-label-line-height); line-height: var(--n-label-line-height);
outline: none; outline: none;
position: relative; position: relative;
@ -72,7 +72,7 @@ import{X as ae,aZ as M,Z as B,a0 as x,$ as s,aD as E,M as S,x as ie,h as de,b3 a
opacity: 1; opacity: 1;
`)]),s("label",{color:"var(--n-text-color-disabled)"}),B("radio-input",` `)]),s("label",{color:"var(--n-text-color-disabled)"}),B("radio-input",`
cursor: not-allowed; cursor: not-allowed;
`)])]),ge={name:String,value:{type:[String,Number,Boolean],default:"on"},checked:{type:Boolean,default:void 0},defaultChecked:Boolean,disabled:{type:Boolean,default:void 0},label:String,size:String,onUpdateChecked:[Function,Array],"onUpdate:checked":[Function,Array],checkedValue:{type:Boolean,default:void 0}},Q=ie("n-radio-group");function ve(o){const e=de(Q,null),t=L(o,{mergedSize(r){const{size:c}=o;if(c!==void 0)return c;if(e){const{mergedSizeRef:{value:f}}=e;if(f!==void 0)return f}return r?r.mergedSize.value:"medium"},mergedDisabled(r){return!!(o.disabled||e!=null&&e.disabledRef.value||r!=null&&r.disabled.value)}}),{mergedSizeRef:a,mergedDisabledRef:n}=t,l=$(null),d=$(null),u=$(o.defaultChecked),i=U(o,"checked"),g=G(i,u),v=O(()=>e?e.valueRef.value===o.value:g.value),C=O(()=>{const{name:r}=o;if(r!==void 0)return r;if(e)return e.nameRef.value}),h=$(!1);function w(){if(e){const{doUpdateValue:r}=e,{value:c}=o;F(r,c)}else{const{onUpdateChecked:r,"onUpdate:checked":c}=o,{nTriggerFormInput:f,nTriggerFormChange:b}=t;r&&F(r,!0),c&&F(c,!0),f(),b(),u.value=!0}}function m(){n.value||v.value||w()}function R(){m(),l.value&&(l.value.checked=v.value)}function z(){h.value=!1}function k(){h.value=!0}return{mergedClsPrefix:e?e.mergedClsPrefixRef:j(o).mergedClsPrefixRef,inputRef:l,labelRef:d,mergedName:C,mergedDisabled:n,renderSafeChecked:v,focus:h,mergedSize:a,handleRadioInputChange:R,handleRadioInputBlur:z,handleRadioInputFocus:k}}const pe=Object.assign(Object.assign({},V.props),ge),ze=N({name:"Radio",props:pe,setup(o){const e=ve(o),t=V("Radio","-radio",fe,Z,o,e.mergedClsPrefix),a=D(()=>{const{mergedSize:{value:g}}=e,{common:{cubicBezierEaseInOut:v},self:{boxShadow:C,boxShadowActive:h,boxShadowDisabled:w,boxShadowFocus:m,boxShadowHover:R,color:z,colorDisabled:k,colorActive:r,textColor:c,textColorDisabled:f,dotColorActive:b,dotColorDisabled:p,labelPadding:_,labelLineHeight:A,labelFontWeight:T,[I("fontSize",g)]:H,[I("radioSize",g)]:P}}=t.value;return{"--n-bezier":v,"--n-label-line-height":A,"--n-label-font-weight":T,"--n-box-shadow":C,"--n-box-shadow-active":h,"--n-box-shadow-disabled":w,"--n-box-shadow-focus":m,"--n-box-shadow-hover":R,"--n-color":z,"--n-color-active":r,"--n-color-disabled":k,"--n-dot-color-active":b,"--n-dot-color-disabled":p,"--n-font-size":H,"--n-radio-size":P,"--n-text-color":c,"--n-text-color-disabled":f,"--n-label-padding":_}}),{inlineThemeDisabled:n,mergedClsPrefixRef:l,mergedRtlRef:d}=j(o),u=K("Radio",d,l),i=n?W("radio",D(()=>e.mergedSize.value[0]),a,o):void 0;return Object.assign(e,{rtlEnabled:u,cssVars:n?void 0:a,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender})},render(){const{$slots:o,mergedClsPrefix:e,onRender:t,label:a}=this;return t==null||t(),y("label",{class:[`${e}-radio`,this.themeClass,this.rtlEnabled&&`${e}-radio--rtl`,this.mergedDisabled&&`${e}-radio--disabled`,this.renderSafeChecked&&`${e}-radio--checked`,this.focus&&`${e}-radio--focus`],style:this.cssVars},y("input",{ref:"inputRef",type:"radio",class:`${e}-radio-input`,value:this.value,name:this.mergedName,checked:this.renderSafeChecked,disabled:this.mergedDisabled,onChange:this.handleRadioInputChange,onFocus:this.handleRadioInputFocus,onBlur:this.handleRadioInputBlur}),y("div",{class:`${e}-radio__dot-wrapper`}," ",y("div",{class:[`${e}-radio__dot`,this.renderSafeChecked&&`${e}-radio__dot--checked`]})),se(o.default,n=>!n&&!a?null:y("div",{ref:"labelRef",class:`${e}-radio__label`},n||a)))}}),me=B("radio-group",` `)])]),ge={name:String,value:{type:[String,Number,Boolean],default:"on"},checked:{type:Boolean,default:void 0},defaultChecked:Boolean,disabled:{type:Boolean,default:void 0},label:String,size:String,onUpdateChecked:[Function,Array],"onUpdate:checked":[Function,Array],checkedValue:{type:Boolean,default:void 0}},Q=ie("n-radio-group");function ve(o){const e=de(Q,null),t=L(o,{mergedSize(r){const{size:c}=o;if(c!==void 0)return c;if(e){const{mergedSizeRef:{value:f}}=e;if(f!==void 0)return f}return r?r.mergedSize.value:"medium"},mergedDisabled(r){return!!(o.disabled||e!=null&&e.disabledRef.value||r!=null&&r.disabled.value)}}),{mergedSizeRef:a,mergedDisabledRef:n}=t,l=$(null),d=$(null),u=$(o.defaultChecked),i=U(o,"checked"),g=G(i,u),v=O(()=>e?e.valueRef.value===o.value:g.value),C=O(()=>{const{name:r}=o;if(r!==void 0)return r;if(e)return e.nameRef.value}),h=$(!1);function w(){if(e){const{doUpdateValue:r}=e,{value:c}=o;F(r,c)}else{const{onUpdateChecked:r,"onUpdate:checked":c}=o,{nTriggerFormInput:f,nTriggerFormChange:b}=t;r&&F(r,!0),c&&F(c,!0),f(),b(),u.value=!0}}function m(){n.value||v.value||w()}function R(){m(),l.value&&(l.value.checked=v.value)}function z(){h.value=!1}function k(){h.value=!0}return{mergedClsPrefix:e?e.mergedClsPrefixRef:j(o).mergedClsPrefixRef,inputRef:l,labelRef:d,mergedName:C,mergedDisabled:n,renderSafeChecked:v,focus:h,mergedSize:a,handleRadioInputChange:R,handleRadioInputBlur:z,handleRadioInputFocus:k}}const pe=Object.assign(Object.assign({},V.props),ge),ze=N({name:"Radio",props:pe,setup(o){const e=ve(o),t=V("Radio","-radio",fe,Y,o,e.mergedClsPrefix),a=D(()=>{const{mergedSize:{value:g}}=e,{common:{cubicBezierEaseInOut:v},self:{boxShadow:C,boxShadowActive:h,boxShadowDisabled:w,boxShadowFocus:m,boxShadowHover:R,color:z,colorDisabled:k,colorActive:r,textColor:c,textColorDisabled:f,dotColorActive:b,dotColorDisabled:p,labelPadding:_,labelLineHeight:A,labelFontWeight:T,[I("fontSize",g)]:H,[I("radioSize",g)]:P}}=t.value;return{"--n-bezier":v,"--n-label-line-height":A,"--n-label-font-weight":T,"--n-box-shadow":C,"--n-box-shadow-active":h,"--n-box-shadow-disabled":w,"--n-box-shadow-focus":m,"--n-box-shadow-hover":R,"--n-color":z,"--n-color-active":r,"--n-color-disabled":k,"--n-dot-color-active":b,"--n-dot-color-disabled":p,"--n-font-size":H,"--n-radio-size":P,"--n-text-color":c,"--n-text-color-disabled":f,"--n-label-padding":_}}),{inlineThemeDisabled:n,mergedClsPrefixRef:l,mergedRtlRef:d}=j(o),u=K("Radio",d,l),i=n?W("radio",D(()=>e.mergedSize.value[0]),a,o):void 0;return Object.assign(e,{rtlEnabled:u,cssVars:n?void 0:a,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender})},render(){const{$slots:o,mergedClsPrefix:e,onRender:t,label:a}=this;return t==null||t(),y("label",{class:[`${e}-radio`,this.themeClass,this.rtlEnabled&&`${e}-radio--rtl`,this.mergedDisabled&&`${e}-radio--disabled`,this.renderSafeChecked&&`${e}-radio--checked`,this.focus&&`${e}-radio--focus`],style:this.cssVars},y("input",{ref:"inputRef",type:"radio",class:`${e}-radio-input`,value:this.value,name:this.mergedName,checked:this.renderSafeChecked,disabled:this.mergedDisabled,onChange:this.handleRadioInputChange,onFocus:this.handleRadioInputFocus,onBlur:this.handleRadioInputBlur}),y("div",{class:`${e}-radio__dot-wrapper`}," ",y("div",{class:[`${e}-radio__dot`,this.renderSafeChecked&&`${e}-radio__dot--checked`]})),se(o.default,n=>!n&&!a?null:y("div",{ref:"labelRef",class:`${e}-radio__label`},n||a)))}}),me=B("radio-group",`
display: inline-block; display: inline-block;
font-size: var(--n-font-size); font-size: var(--n-font-size);
`,[s("splitor",` `,[s("splitor",`
@ -154,4 +154,4 @@ import{X as ae,aZ as M,Z as B,a0 as x,$ as s,aD as E,M as S,x as ie,h as de,b3 a
`),x("disabled",` `),x("disabled",`
cursor: not-allowed; cursor: not-allowed;
opacity: var(--n-opacity-disabled); opacity: var(--n-opacity-disabled);
`)])]);function xe(o,e,t){var a;const n=[];let l=!1;for(let d=0;d<o.length;++d){const u=o[d],i=(a=u.type)===null||a===void 0?void 0:a.name;i==="RadioButton"&&(l=!0);const g=u.props;if(i!=="RadioButton"){n.push(u);continue}if(d===0)n.push(u);else{const v=n[n.length-1].props,C=e===v.value,h=v.disabled,w=e===g.value,m=g.disabled,R=(C?2:0)+(h?0:1),z=(w?2:0)+(m?0:1),k={[`${t}-radio-group__splitor--disabled`]:h,[`${t}-radio-group__splitor--checked`]:C},r={[`${t}-radio-group__splitor--disabled`]:m,[`${t}-radio-group__splitor--checked`]:w},c=R<z?r:k;n.push(y("div",{class:[`${t}-radio-group__splitor`,c]}),u)}}return{children:n,isButtonGroup:l}}const Ce=Object.assign(Object.assign({},V.props),{name:String,value:[String,Number,Boolean],defaultValue:{type:[String,Number,Boolean],default:null},size:String,disabled:{type:Boolean,default:void 0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array]}),ke=N({name:"RadioGroup",props:Ce,setup(o){const e=$(null),{mergedSizeRef:t,mergedDisabledRef:a,nTriggerFormChange:n,nTriggerFormInput:l,nTriggerFormBlur:d,nTriggerFormFocus:u}=L(o),{mergedClsPrefixRef:i,inlineThemeDisabled:g,mergedRtlRef:v}=j(o),C=V("Radio","-radio-group",me,Z,o,i),h=$(o.defaultValue),w=U(o,"value"),m=G(w,h);function R(b){const{onUpdateValue:p,"onUpdate:value":_}=o;p&&F(p,b),_&&F(_,b),h.value=b,n(),l()}function z(b){const{value:p}=e;p&&(p.contains(b.relatedTarget)||u())}function k(b){const{value:p}=e;p&&(p.contains(b.relatedTarget)||d())}le(Q,{mergedClsPrefixRef:i,nameRef:U(o,"name"),valueRef:m,disabledRef:a,mergedSizeRef:t,doUpdateValue:R});const r=K("Radio",v,i),c=D(()=>{const{value:b}=t,{common:{cubicBezierEaseInOut:p},self:{buttonBorderColor:_,buttonBorderColorActive:A,buttonBorderRadius:T,buttonBoxShadow:H,buttonBoxShadowFocus:P,buttonBoxShadowHover:X,buttonColor:Y,buttonColorActive:q,buttonTextColor:J,buttonTextColorActive:ee,buttonTextColorHover:oe,opacityDisabled:te,[I("buttonHeight",b)]:ne,[I("fontSize",b)]:re}}=C.value;return{"--n-font-size":re,"--n-bezier":p,"--n-button-border-color":_,"--n-button-border-color-active":A,"--n-button-border-radius":T,"--n-button-box-shadow":H,"--n-button-box-shadow-focus":P,"--n-button-box-shadow-hover":X,"--n-button-color":Y,"--n-button-color-active":q,"--n-button-text-color":J,"--n-button-text-color-hover":oe,"--n-button-text-color-active":ee,"--n-height":ne,"--n-opacity-disabled":te}}),f=g?W("radio-group",D(()=>t.value[0]),c,o):void 0;return{selfElRef:e,rtlEnabled:r,mergedClsPrefix:i,mergedValue:m,handleFocusout:k,handleFocusin:z,cssVars:g?void 0:c,themeClass:f==null?void 0:f.themeClass,onRender:f==null?void 0:f.onRender}},render(){var o;const{mergedValue:e,mergedClsPrefix:t,handleFocusin:a,handleFocusout:n}=this,{children:l,isButtonGroup:d}=xe(ue(ce(this)),e,t);return(o=this.onRender)===null||o===void 0||o.call(this),y("div",{onFocusin:a,onFocusout:n,ref:"selfElRef",class:[`${t}-radio-group`,this.rtlEnabled&&`${t}-radio-group--rtl`,this.themeClass,d&&`${t}-radio-group--button-group`],style:this.cssVars},l)}});export{ke as _,ze as a,Z as b,ge as r,ve as s}; `)])]);function xe(o,e,t){var a;const n=[];let l=!1;for(let d=0;d<o.length;++d){const u=o[d],i=(a=u.type)===null||a===void 0?void 0:a.name;i==="RadioButton"&&(l=!0);const g=u.props;if(i!=="RadioButton"){n.push(u);continue}if(d===0)n.push(u);else{const v=n[n.length-1].props,C=e===v.value,h=v.disabled,w=e===g.value,m=g.disabled,R=(C?2:0)+(h?0:1),z=(w?2:0)+(m?0:1),k={[`${t}-radio-group__splitor--disabled`]:h,[`${t}-radio-group__splitor--checked`]:C},r={[`${t}-radio-group__splitor--disabled`]:m,[`${t}-radio-group__splitor--checked`]:w},c=R<z?r:k;n.push(y("div",{class:[`${t}-radio-group__splitor`,c]}),u)}}return{children:n,isButtonGroup:l}}const Ce=Object.assign(Object.assign({},V.props),{name:String,value:[String,Number,Boolean],defaultValue:{type:[String,Number,Boolean],default:null},size:String,disabled:{type:Boolean,default:void 0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array]}),ke=N({name:"RadioGroup",props:Ce,setup(o){const e=$(null),{mergedSizeRef:t,mergedDisabledRef:a,nTriggerFormChange:n,nTriggerFormInput:l,nTriggerFormBlur:d,nTriggerFormFocus:u}=L(o),{mergedClsPrefixRef:i,inlineThemeDisabled:g,mergedRtlRef:v}=j(o),C=V("Radio","-radio-group",me,Y,o,i),h=$(o.defaultValue),w=U(o,"value"),m=G(w,h);function R(b){const{onUpdateValue:p,"onUpdate:value":_}=o;p&&F(p,b),_&&F(_,b),h.value=b,n(),l()}function z(b){const{value:p}=e;p&&(p.contains(b.relatedTarget)||u())}function k(b){const{value:p}=e;p&&(p.contains(b.relatedTarget)||d())}le(Q,{mergedClsPrefixRef:i,nameRef:U(o,"name"),valueRef:m,disabledRef:a,mergedSizeRef:t,doUpdateValue:R});const r=K("Radio",v,i),c=D(()=>{const{value:b}=t,{common:{cubicBezierEaseInOut:p},self:{buttonBorderColor:_,buttonBorderColorActive:A,buttonBorderRadius:T,buttonBoxShadow:H,buttonBoxShadowFocus:P,buttonBoxShadowHover:X,buttonColor:Z,buttonColorActive:q,buttonTextColor:J,buttonTextColorActive:ee,buttonTextColorHover:oe,opacityDisabled:te,[I("buttonHeight",b)]:ne,[I("fontSize",b)]:re}}=C.value;return{"--n-font-size":re,"--n-bezier":p,"--n-button-border-color":_,"--n-button-border-color-active":A,"--n-button-border-radius":T,"--n-button-box-shadow":H,"--n-button-box-shadow-focus":P,"--n-button-box-shadow-hover":X,"--n-button-color":Z,"--n-button-color-active":q,"--n-button-text-color":J,"--n-button-text-color-hover":oe,"--n-button-text-color-active":ee,"--n-height":ne,"--n-opacity-disabled":te}}),f=g?W("radio-group",D(()=>t.value[0]),c,o):void 0;return{selfElRef:e,rtlEnabled:r,mergedClsPrefix:i,mergedValue:m,handleFocusout:k,handleFocusin:z,cssVars:g?void 0:c,themeClass:f==null?void 0:f.themeClass,onRender:f==null?void 0:f.onRender}},render(){var o;const{mergedValue:e,mergedClsPrefix:t,handleFocusin:a,handleFocusout:n}=this,{children:l,isButtonGroup:d}=xe(ue(ce(this)),e,t);return(o=this.onRender)===null||o===void 0||o.call(this),y("div",{onFocusin:a,onFocusout:n,ref:"selfElRef",class:[`${t}-radio-group`,this.rtlEnabled&&`${t}-radio-group--rtl`,this.themeClass,d&&`${t}-radio-group--button-group`],style:this.cssVars},l)}});export{ke as _,ze as a,Y as b,ge as r,ve as s};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1,4 +1,4 @@
import{X as ae,aZ as o,Z as ne,a0 as v,$ as x,aD as I,M as S,A as se,a3 as D,B as y,a6 as te,r as ie,a7 as de,a9 as V,S as he,b as ge,a8 as be,c as L,aa as d,ab as Ce,ac as ue,bV as U,as as ve,x as pe}from"./_plugin-vue_export-helper.js";const fe={closeIconSizeTiny:"12px",closeIconSizeSmall:"12px",closeIconSizeMedium:"14px",closeIconSizeLarge:"14px",closeSizeTiny:"16px",closeSizeSmall:"16px",closeSizeMedium:"18px",closeSizeLarge:"18px",padding:"0 7px",closeMargin:"0 0 0 4px"};function ke(l){const{textColor2:h,primaryColorHover:r,primaryColorPressed:p,primaryColor:a,infoColor:i,successColor:s,warningColor:n,errorColor:t,baseColor:f,borderColor:k,opacityDisabled:g,tagColor:C,closeIconColor:e,closeIconColorHover:c,closeIconColorPressed:u,borderRadiusSmall:b,fontSizeMini:m,fontSizeTiny:P,fontSizeSmall:B,fontSizeMedium:$,heightMini:H,heightTiny:M,heightSmall:R,heightMedium:T,closeColorHover:_,closeColorPressed:E,buttonColor2Hover:O,buttonColor2Pressed:W,fontWeightStrong:j}=l;return Object.assign(Object.assign({},fe),{closeBorderRadius:b,heightTiny:H,heightSmall:M,heightMedium:R,heightLarge:T,borderRadius:b,opacityDisabled:g,fontSizeTiny:m,fontSizeSmall:P,fontSizeMedium:B,fontSizeLarge:$,fontWeightStrong:j,textColorCheckable:h,textColorHoverCheckable:h,textColorPressedCheckable:h,textColorChecked:f,colorCheckable:"#0000",colorHoverCheckable:O,colorPressedCheckable:W,colorChecked:a,colorCheckedHover:r,colorCheckedPressed:p,border:`1px solid ${k}`,textColor:h,color:C,colorBordered:"rgb(250, 250, 252)",closeIconColor:e,closeIconColorHover:c,closeIconColorPressed:u,closeColorHover:_,closeColorPressed:E,borderPrimary:`1px solid ${o(a,{alpha:.3})}`,textColorPrimary:a,colorPrimary:o(a,{alpha:.12}),colorBorderedPrimary:o(a,{alpha:.1}),closeIconColorPrimary:a,closeIconColorHoverPrimary:a,closeIconColorPressedPrimary:a,closeColorHoverPrimary:o(a,{alpha:.12}),closeColorPressedPrimary:o(a,{alpha:.18}),borderInfo:`1px solid ${o(i,{alpha:.3})}`,textColorInfo:i,colorInfo:o(i,{alpha:.12}),colorBorderedInfo:o(i,{alpha:.1}),closeIconColorInfo:i,closeIconColorHoverInfo:i,closeIconColorPressedInfo:i,closeColorHoverInfo:o(i,{alpha:.12}),closeColorPressedInfo:o(i,{alpha:.18}),borderSuccess:`1px solid ${o(s,{alpha:.3})}`,textColorSuccess:s,colorSuccess:o(s,{alpha:.12}),colorBorderedSuccess:o(s,{alpha:.1}),closeIconColorSuccess:s,closeIconColorHoverSuccess:s,closeIconColorPressedSuccess:s,closeColorHoverSuccess:o(s,{alpha:.12}),closeColorPressedSuccess:o(s,{alpha:.18}),borderWarning:`1px solid ${o(n,{alpha:.35})}`,textColorWarning:n,colorWarning:o(n,{alpha:.15}),colorBorderedWarning:o(n,{alpha:.12}),closeIconColorWarning:n,closeIconColorHoverWarning:n,closeIconColorPressedWarning:n,closeColorHoverWarning:o(n,{alpha:.12}),closeColorPressedWarning:o(n,{alpha:.18}),borderError:`1px solid ${o(t,{alpha:.23})}`,textColorError:t,colorError:o(t,{alpha:.1}),colorBorderedError:o(t,{alpha:.08}),closeIconColorError:t,closeIconColorHoverError:t,closeIconColorPressedError:t,closeColorHoverError:o(t,{alpha:.12}),closeColorPressedError:o(t,{alpha:.18})})}const me={name:"Tag",common:ae,self:ke},xe={color:Object,type:{type:String,default:"default"},round:Boolean,size:{type:String,default:"medium"},closable:Boolean,disabled:{type:Boolean,default:void 0}},ye=ne("tag",` import{X as ae,aY as o,Z as ne,a0 as v,$ as x,aD as I,M as S,A as se,a3 as D,B as y,a6 as te,r as ie,a7 as de,a9 as V,S as he,b as ge,a8 as be,c as L,aa as d,ab as Ce,ac as ue,bV as U,as as ve,x as pe}from"./_plugin-vue_export-helper.js";const fe={closeIconSizeTiny:"12px",closeIconSizeSmall:"12px",closeIconSizeMedium:"14px",closeIconSizeLarge:"14px",closeSizeTiny:"16px",closeSizeSmall:"16px",closeSizeMedium:"18px",closeSizeLarge:"18px",padding:"0 7px",closeMargin:"0 0 0 4px"};function ke(l){const{textColor2:h,primaryColorHover:r,primaryColorPressed:p,primaryColor:a,infoColor:i,successColor:s,warningColor:n,errorColor:t,baseColor:f,borderColor:k,opacityDisabled:g,tagColor:C,closeIconColor:e,closeIconColorHover:c,closeIconColorPressed:u,borderRadiusSmall:b,fontSizeMini:m,fontSizeTiny:P,fontSizeSmall:B,fontSizeMedium:$,heightMini:H,heightTiny:M,heightSmall:R,heightMedium:T,closeColorHover:_,closeColorPressed:E,buttonColor2Hover:O,buttonColor2Pressed:W,fontWeightStrong:j}=l;return Object.assign(Object.assign({},fe),{closeBorderRadius:b,heightTiny:H,heightSmall:M,heightMedium:R,heightLarge:T,borderRadius:b,opacityDisabled:g,fontSizeTiny:m,fontSizeSmall:P,fontSizeMedium:B,fontSizeLarge:$,fontWeightStrong:j,textColorCheckable:h,textColorHoverCheckable:h,textColorPressedCheckable:h,textColorChecked:f,colorCheckable:"#0000",colorHoverCheckable:O,colorPressedCheckable:W,colorChecked:a,colorCheckedHover:r,colorCheckedPressed:p,border:`1px solid ${k}`,textColor:h,color:C,colorBordered:"rgb(250, 250, 252)",closeIconColor:e,closeIconColorHover:c,closeIconColorPressed:u,closeColorHover:_,closeColorPressed:E,borderPrimary:`1px solid ${o(a,{alpha:.3})}`,textColorPrimary:a,colorPrimary:o(a,{alpha:.12}),colorBorderedPrimary:o(a,{alpha:.1}),closeIconColorPrimary:a,closeIconColorHoverPrimary:a,closeIconColorPressedPrimary:a,closeColorHoverPrimary:o(a,{alpha:.12}),closeColorPressedPrimary:o(a,{alpha:.18}),borderInfo:`1px solid ${o(i,{alpha:.3})}`,textColorInfo:i,colorInfo:o(i,{alpha:.12}),colorBorderedInfo:o(i,{alpha:.1}),closeIconColorInfo:i,closeIconColorHoverInfo:i,closeIconColorPressedInfo:i,closeColorHoverInfo:o(i,{alpha:.12}),closeColorPressedInfo:o(i,{alpha:.18}),borderSuccess:`1px solid ${o(s,{alpha:.3})}`,textColorSuccess:s,colorSuccess:o(s,{alpha:.12}),colorBorderedSuccess:o(s,{alpha:.1}),closeIconColorSuccess:s,closeIconColorHoverSuccess:s,closeIconColorPressedSuccess:s,closeColorHoverSuccess:o(s,{alpha:.12}),closeColorPressedSuccess:o(s,{alpha:.18}),borderWarning:`1px solid ${o(n,{alpha:.35})}`,textColorWarning:n,colorWarning:o(n,{alpha:.15}),colorBorderedWarning:o(n,{alpha:.12}),closeIconColorWarning:n,closeIconColorHoverWarning:n,closeIconColorPressedWarning:n,closeColorHoverWarning:o(n,{alpha:.12}),closeColorPressedWarning:o(n,{alpha:.18}),borderError:`1px solid ${o(t,{alpha:.23})}`,textColorError:t,colorError:o(t,{alpha:.1}),colorBorderedError:o(t,{alpha:.08}),closeIconColorError:t,closeIconColorHoverError:t,closeIconColorPressedError:t,closeColorHoverError:o(t,{alpha:.12}),closeColorPressedError:o(t,{alpha:.18})})}const me={name:"Tag",common:ae,self:ke},xe={color:Object,type:{type:String,default:"default"},round:Boolean,size:{type:String,default:"medium"},closable:Boolean,disabled:{type:Boolean,default:void 0}},ye=ne("tag",`
--n-close-margin: var(--n-close-margin-top) var(--n-close-margin-right) var(--n-close-margin-bottom) var(--n-close-margin-left); --n-close-margin: var(--n-close-margin-top) var(--n-close-margin-right) var(--n-close-margin-bottom) var(--n-close-margin-left);
white-space: nowrap; white-space: nowrap;
position: relative; position: relative;
@ -68,4 +68,4 @@ import{X as ae,aZ as o,Z as ne,a0 as v,$ as x,aD as I,M as S,A as se,a3 as D,B a
`,[I("disabled",[S("&:hover","background-color: var(--n-color-hover-checkable);",[I("checked","color: var(--n-text-color-hover-checkable);")]),S("&:active","background-color: var(--n-color-pressed-checkable);",[I("checked","color: var(--n-text-color-pressed-checkable);")])]),v("checked",` `,[I("disabled",[S("&:hover","background-color: var(--n-color-hover-checkable);",[I("checked","color: var(--n-text-color-hover-checkable);")]),S("&:active","background-color: var(--n-color-pressed-checkable);",[I("checked","color: var(--n-text-color-pressed-checkable);")])]),v("checked",`
color: var(--n-text-color-checked); color: var(--n-text-color-checked);
background-color: var(--n-color-checked); background-color: var(--n-color-checked);
`,[I("disabled",[S("&:hover","background-color: var(--n-color-checked-hover);"),S("&:active","background-color: var(--n-color-checked-pressed);")])])])]),ze=Object.assign(Object.assign(Object.assign({},V.props),xe),{bordered:{type:Boolean,default:void 0},checked:Boolean,checkable:Boolean,strong:Boolean,triggerClickOnClose:Boolean,onClose:[Array,Function],onMouseenter:Function,onMouseleave:Function,"onUpdate:checked":Function,onUpdateChecked:Function,internalCloseFocusable:{type:Boolean,default:!0},internalCloseIsButtonTag:{type:Boolean,default:!0},onCheckedChange:Function}),Ie=pe("n-tag"),Pe=se({name:"Tag",props:ze,slots:Object,setup(l){const h=ie(null),{mergedBorderedRef:r,mergedClsPrefixRef:p,inlineThemeDisabled:a,mergedRtlRef:i}=de(l),s=V("Tag","-tag",ye,me,l,p);he(Ie,{roundRef:ge(l,"round")});function n(){if(!l.disabled&&l.checkable){const{checked:e,onCheckedChange:c,onUpdateChecked:u,"onUpdate:checked":b}=l;u&&u(!e),b&&b(!e),c&&c(!e)}}function t(e){if(l.triggerClickOnClose||e.stopPropagation(),!l.disabled){const{onClose:c}=l;c&&ve(c,e)}}const f={setTextContent(e){const{value:c}=h;c&&(c.textContent=e)}},k=be("Tag",i,p),g=L(()=>{const{type:e,size:c,color:{color:u,textColor:b}={}}=l,{common:{cubicBezierEaseInOut:m},self:{padding:P,closeMargin:B,borderRadius:$,opacityDisabled:H,textColorCheckable:M,textColorHoverCheckable:R,textColorPressedCheckable:T,textColorChecked:_,colorCheckable:E,colorHoverCheckable:O,colorPressedCheckable:W,colorChecked:j,colorCheckedHover:N,colorCheckedPressed:K,closeBorderRadius:A,fontWeightStrong:Z,[d("colorBordered",e)]:X,[d("closeSize",c)]:q,[d("closeIconSize",c)]:G,[d("fontSize",c)]:J,[d("height",c)]:w,[d("color",e)]:Q,[d("textColor",e)]:Y,[d("border",e)]:ee,[d("closeIconColor",e)]:F,[d("closeIconColorHover",e)]:oe,[d("closeIconColorPressed",e)]:re,[d("closeColorHover",e)]:le,[d("closeColorPressed",e)]:ce}}=s.value,z=Ce(B);return{"--n-font-weight-strong":Z,"--n-avatar-size-override":`calc(${w} - 8px)`,"--n-bezier":m,"--n-border-radius":$,"--n-border":ee,"--n-close-icon-size":G,"--n-close-color-pressed":ce,"--n-close-color-hover":le,"--n-close-border-radius":A,"--n-close-icon-color":F,"--n-close-icon-color-hover":oe,"--n-close-icon-color-pressed":re,"--n-close-icon-color-disabled":F,"--n-close-margin-top":z.top,"--n-close-margin-right":z.right,"--n-close-margin-bottom":z.bottom,"--n-close-margin-left":z.left,"--n-close-size":q,"--n-color":u||(r.value?X:Q),"--n-color-checkable":E,"--n-color-checked":j,"--n-color-checked-hover":N,"--n-color-checked-pressed":K,"--n-color-hover-checkable":O,"--n-color-pressed-checkable":W,"--n-font-size":J,"--n-height":w,"--n-opacity-disabled":H,"--n-padding":P,"--n-text-color":b||Y,"--n-text-color-checkable":M,"--n-text-color-checked":_,"--n-text-color-hover-checkable":R,"--n-text-color-pressed-checkable":T}}),C=a?ue("tag",L(()=>{let e="";const{type:c,size:u,color:{color:b,textColor:m}={}}=l;return e+=c[0],e+=u[0],b&&(e+=`a${U(b)}`),m&&(e+=`b${U(m)}`),r.value&&(e+="c"),e}),g,l):void 0;return Object.assign(Object.assign({},f),{rtlEnabled:k,mergedClsPrefix:p,contentRef:h,mergedBordered:r,handleClick:n,handleCloseClick:t,cssVars:a?void 0:g,themeClass:C==null?void 0:C.themeClass,onRender:C==null?void 0:C.onRender})},render(){var l,h;const{mergedClsPrefix:r,rtlEnabled:p,closable:a,color:{borderColor:i}={},round:s,onRender:n,$slots:t}=this;n==null||n();const f=D(t.avatar,g=>g&&y("div",{class:`${r}-tag__avatar`},g)),k=D(t.icon,g=>g&&y("div",{class:`${r}-tag__icon`},g));return y("div",{class:[`${r}-tag`,this.themeClass,{[`${r}-tag--rtl`]:p,[`${r}-tag--strong`]:this.strong,[`${r}-tag--disabled`]:this.disabled,[`${r}-tag--checkable`]:this.checkable,[`${r}-tag--checked`]:this.checkable&&this.checked,[`${r}-tag--round`]:s,[`${r}-tag--avatar`]:f,[`${r}-tag--icon`]:k,[`${r}-tag--closable`]:a}],style:this.cssVars,onClick:this.handleClick,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},k||f,y("span",{class:`${r}-tag__content`,ref:"contentRef"},(h=(l=this.$slots).default)===null||h===void 0?void 0:h.call(l)),!this.checkable&&a?y(te,{clsPrefix:r,class:`${r}-tag__close`,disabled:this.disabled,onClick:this.handleCloseClick,focusable:this.internalCloseFocusable,round:s,isButtonTag:this.internalCloseIsButtonTag,absolute:!0}):null,!this.checkable&&this.mergedBordered?y("div",{class:`${r}-tag__border`,style:{borderColor:i}}):null)}});export{Pe as _,Ie as a,xe as c,me as t}; `,[I("disabled",[S("&:hover","background-color: var(--n-color-checked-hover);"),S("&:active","background-color: var(--n-color-checked-pressed);")])])])]),ze=Object.assign(Object.assign(Object.assign({},V.props),xe),{bordered:{type:Boolean,default:void 0},checked:Boolean,checkable:Boolean,strong:Boolean,triggerClickOnClose:Boolean,onClose:[Array,Function],onMouseenter:Function,onMouseleave:Function,"onUpdate:checked":Function,onUpdateChecked:Function,internalCloseFocusable:{type:Boolean,default:!0},internalCloseIsButtonTag:{type:Boolean,default:!0},onCheckedChange:Function}),Ie=pe("n-tag"),Pe=se({name:"Tag",props:ze,slots:Object,setup(l){const h=ie(null),{mergedBorderedRef:r,mergedClsPrefixRef:p,inlineThemeDisabled:a,mergedRtlRef:i}=de(l),s=V("Tag","-tag",ye,me,l,p);he(Ie,{roundRef:ge(l,"round")});function n(){if(!l.disabled&&l.checkable){const{checked:e,onCheckedChange:c,onUpdateChecked:u,"onUpdate:checked":b}=l;u&&u(!e),b&&b(!e),c&&c(!e)}}function t(e){if(l.triggerClickOnClose||e.stopPropagation(),!l.disabled){const{onClose:c}=l;c&&ve(c,e)}}const f={setTextContent(e){const{value:c}=h;c&&(c.textContent=e)}},k=be("Tag",i,p),g=L(()=>{const{type:e,size:c,color:{color:u,textColor:b}={}}=l,{common:{cubicBezierEaseInOut:m},self:{padding:P,closeMargin:B,borderRadius:$,opacityDisabled:H,textColorCheckable:M,textColorHoverCheckable:R,textColorPressedCheckable:T,textColorChecked:_,colorCheckable:E,colorHoverCheckable:O,colorPressedCheckable:W,colorChecked:j,colorCheckedHover:N,colorCheckedPressed:K,closeBorderRadius:A,fontWeightStrong:X,[d("colorBordered",e)]:Y,[d("closeSize",c)]:Z,[d("closeIconSize",c)]:q,[d("fontSize",c)]:G,[d("height",c)]:w,[d("color",e)]:J,[d("textColor",e)]:Q,[d("border",e)]:ee,[d("closeIconColor",e)]:F,[d("closeIconColorHover",e)]:oe,[d("closeIconColorPressed",e)]:re,[d("closeColorHover",e)]:le,[d("closeColorPressed",e)]:ce}}=s.value,z=Ce(B);return{"--n-font-weight-strong":X,"--n-avatar-size-override":`calc(${w} - 8px)`,"--n-bezier":m,"--n-border-radius":$,"--n-border":ee,"--n-close-icon-size":q,"--n-close-color-pressed":ce,"--n-close-color-hover":le,"--n-close-border-radius":A,"--n-close-icon-color":F,"--n-close-icon-color-hover":oe,"--n-close-icon-color-pressed":re,"--n-close-icon-color-disabled":F,"--n-close-margin-top":z.top,"--n-close-margin-right":z.right,"--n-close-margin-bottom":z.bottom,"--n-close-margin-left":z.left,"--n-close-size":Z,"--n-color":u||(r.value?Y:J),"--n-color-checkable":E,"--n-color-checked":j,"--n-color-checked-hover":N,"--n-color-checked-pressed":K,"--n-color-hover-checkable":O,"--n-color-pressed-checkable":W,"--n-font-size":G,"--n-height":w,"--n-opacity-disabled":H,"--n-padding":P,"--n-text-color":b||Q,"--n-text-color-checkable":M,"--n-text-color-checked":_,"--n-text-color-hover-checkable":R,"--n-text-color-pressed-checkable":T}}),C=a?ue("tag",L(()=>{let e="";const{type:c,size:u,color:{color:b,textColor:m}={}}=l;return e+=c[0],e+=u[0],b&&(e+=`a${U(b)}`),m&&(e+=`b${U(m)}`),r.value&&(e+="c"),e}),g,l):void 0;return Object.assign(Object.assign({},f),{rtlEnabled:k,mergedClsPrefix:p,contentRef:h,mergedBordered:r,handleClick:n,handleCloseClick:t,cssVars:a?void 0:g,themeClass:C==null?void 0:C.themeClass,onRender:C==null?void 0:C.onRender})},render(){var l,h;const{mergedClsPrefix:r,rtlEnabled:p,closable:a,color:{borderColor:i}={},round:s,onRender:n,$slots:t}=this;n==null||n();const f=D(t.avatar,g=>g&&y("div",{class:`${r}-tag__avatar`},g)),k=D(t.icon,g=>g&&y("div",{class:`${r}-tag__icon`},g));return y("div",{class:[`${r}-tag`,this.themeClass,{[`${r}-tag--rtl`]:p,[`${r}-tag--strong`]:this.strong,[`${r}-tag--disabled`]:this.disabled,[`${r}-tag--checkable`]:this.checkable,[`${r}-tag--checked`]:this.checkable&&this.checked,[`${r}-tag--round`]:s,[`${r}-tag--avatar`]:f,[`${r}-tag--icon`]:k,[`${r}-tag--closable`]:a}],style:this.cssVars,onClick:this.handleClick,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},k||f,y("span",{class:`${r}-tag__content`,ref:"contentRef"},(h=(l=this.$slots).default)===null||h===void 0?void 0:h.call(l)),!this.checkable&&a?y(te,{clsPrefix:r,class:`${r}-tag__close`,disabled:this.disabled,onClick:this.handleCloseClick,focusable:this.internalCloseFocusable,round:s,isButtonTag:this.internalCloseIsButtonTag,absolute:!0}):null,!this.checkable&&this.mergedBordered?y("div",{class:`${r}-tag__border`,style:{borderColor:i}}):null)}});export{Pe as _,Ie as a,xe as c,me as t};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1,4 +1,4 @@
import{A as O,B as c,V as to,X as ro,aZ as ce,x as he,M as g,Z as C,a0 as b,aD as j,$ as f,a2 as no,h as V,c as w,Y as pe,Q as ue,F as io,S as K,r as L,aw as lo,aY as ao,a7 as co,a9 as Te,ax as ye,b as He,aC as Ae,ac as so,D as uo,ai as vo,as as M,aF as k,aH as mo,aK as ho}from"./_plugin-vue_export-helper.js";import{r as _}from"./index.js";import{W as po}from"./Wrench.js";import{f as fo,r as F,k as de,l as Co,R as E}from"./main.js";import{t as go,_ as xo}from"./Tooltip.js";import{d as wo,_ as zo}from"./Dropdown.js";import{c as se,V as bo}from"./create.js";import{u as Io}from"./use-compitable.js";import{N as yo}from"./Icon.js";import"./cssr.js";import"./next-frame-once.js";const Ho=O({name:"ChevronDownFilled",render(){return c("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c("path",{d:"M3.20041 5.73966C3.48226 5.43613 3.95681 5.41856 4.26034 5.70041L8 9.22652L11.7397 5.70041C12.0432 5.41856 12.5177 5.43613 12.7996 5.73966C13.0815 6.0432 13.0639 6.51775 12.7603 6.7996L8.51034 10.7996C8.22258 11.0668 7.77743 11.0668 7.48967 10.7996L3.23966 6.7996C2.93613 6.51775 2.91856 6.0432 3.20041 5.73966Z",fill:"currentColor"}))}});function Ao(e,r,o,n){return{itemColorHoverInverted:"#0000",itemColorActiveInverted:r,itemColorActiveHoverInverted:r,itemColorActiveCollapsedInverted:r,itemTextColorInverted:e,itemTextColorHoverInverted:o,itemTextColorChildActiveInverted:o,itemTextColorChildActiveHoverInverted:o,itemTextColorActiveInverted:o,itemTextColorActiveHoverInverted:o,itemTextColorHorizontalInverted:e,itemTextColorHoverHorizontalInverted:o,itemTextColorChildActiveHorizontalInverted:o,itemTextColorChildActiveHoverHorizontalInverted:o,itemTextColorActiveHorizontalInverted:o,itemTextColorActiveHoverHorizontalInverted:o,itemIconColorInverted:e,itemIconColorHoverInverted:o,itemIconColorActiveInverted:o,itemIconColorActiveHoverInverted:o,itemIconColorChildActiveInverted:o,itemIconColorChildActiveHoverInverted:o,itemIconColorCollapsedInverted:e,itemIconColorHorizontalInverted:e,itemIconColorHoverHorizontalInverted:o,itemIconColorActiveHorizontalInverted:o,itemIconColorActiveHoverHorizontalInverted:o,itemIconColorChildActiveHorizontalInverted:o,itemIconColorChildActiveHoverHorizontalInverted:o,arrowColorInverted:e,arrowColorHoverInverted:o,arrowColorActiveInverted:o,arrowColorActiveHoverInverted:o,arrowColorChildActiveInverted:o,arrowColorChildActiveHoverInverted:o,groupTextColorInverted:n}}function ko(e){const{borderRadius:r,textColor3:o,primaryColor:n,textColor2:i,textColor1:d,fontSize:u,dividerColor:m,hoverColor:v,primaryColorHover:z}=e;return Object.assign({borderRadius:r,color:"#0000",groupTextColor:o,itemColorHover:v,itemColorActive:ce(n,{alpha:.1}),itemColorActiveHover:ce(n,{alpha:.1}),itemColorActiveCollapsed:ce(n,{alpha:.1}),itemTextColor:i,itemTextColorHover:i,itemTextColorActive:n,itemTextColorActiveHover:n,itemTextColorChildActive:n,itemTextColorChildActiveHover:n,itemTextColorHorizontal:i,itemTextColorHoverHorizontal:z,itemTextColorActiveHorizontal:n,itemTextColorActiveHoverHorizontal:n,itemTextColorChildActiveHorizontal:n,itemTextColorChildActiveHoverHorizontal:n,itemIconColor:d,itemIconColorHover:d,itemIconColorActive:n,itemIconColorActiveHover:n,itemIconColorChildActive:n,itemIconColorChildActiveHover:n,itemIconColorCollapsed:d,itemIconColorHorizontal:d,itemIconColorHoverHorizontal:z,itemIconColorActiveHorizontal:n,itemIconColorActiveHoverHorizontal:n,itemIconColorChildActiveHorizontal:n,itemIconColorChildActiveHoverHorizontal:n,itemHeight:"42px",arrowColor:i,arrowColorHover:i,arrowColorActive:n,arrowColorActiveHover:n,arrowColorChildActive:n,arrowColorChildActiveHover:n,colorInverted:"#0000",borderColorHorizontal:"#0000",fontSize:u,dividerColor:m},Ao("#BBB",n,"#FFF","#AAA"))}const _o=to({name:"Menu",common:ro,peers:{Tooltip:go,Dropdown:wo},self:ko}),$=he("n-menu"),fe=he("n-submenu"),Ce=he("n-menu-item-group"),ke=[g("&::before","background-color: var(--n-item-color-hover);"),f("arrow",` import{A as O,B as c,V as to,X as ro,aY as ce,x as he,M as g,Z as C,a0 as b,aD as j,$ as f,a2 as no,h as V,c as w,Y as pe,Q as ue,F as io,S as K,r as L,aw as lo,aZ as ao,a7 as co,a9 as Te,ax as ye,b as He,aC as Ae,ac as so,D as uo,ai as vo,as as M,aF as k,aH as mo,aK as ho}from"./_plugin-vue_export-helper.js";import{r as _}from"./index.js";import{W as po}from"./Wrench.js";import{f as fo,r as F,k as de,l as Co,R as E}from"./main.js";import{t as go,_ as xo}from"./Tooltip.js";import{d as wo,_ as zo}from"./Dropdown.js";import{c as se,V as bo}from"./create.js";import{u as Io}from"./use-compitable.js";import{N as yo}from"./Icon.js";import"./cssr.js";import"./next-frame-once.js";const Ho=O({name:"ChevronDownFilled",render(){return c("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c("path",{d:"M3.20041 5.73966C3.48226 5.43613 3.95681 5.41856 4.26034 5.70041L8 9.22652L11.7397 5.70041C12.0432 5.41856 12.5177 5.43613 12.7996 5.73966C13.0815 6.0432 13.0639 6.51775 12.7603 6.7996L8.51034 10.7996C8.22258 11.0668 7.77743 11.0668 7.48967 10.7996L3.23966 6.7996C2.93613 6.51775 2.91856 6.0432 3.20041 5.73966Z",fill:"currentColor"}))}});function Ao(e,r,o,n){return{itemColorHoverInverted:"#0000",itemColorActiveInverted:r,itemColorActiveHoverInverted:r,itemColorActiveCollapsedInverted:r,itemTextColorInverted:e,itemTextColorHoverInverted:o,itemTextColorChildActiveInverted:o,itemTextColorChildActiveHoverInverted:o,itemTextColorActiveInverted:o,itemTextColorActiveHoverInverted:o,itemTextColorHorizontalInverted:e,itemTextColorHoverHorizontalInverted:o,itemTextColorChildActiveHorizontalInverted:o,itemTextColorChildActiveHoverHorizontalInverted:o,itemTextColorActiveHorizontalInverted:o,itemTextColorActiveHoverHorizontalInverted:o,itemIconColorInverted:e,itemIconColorHoverInverted:o,itemIconColorActiveInverted:o,itemIconColorActiveHoverInverted:o,itemIconColorChildActiveInverted:o,itemIconColorChildActiveHoverInverted:o,itemIconColorCollapsedInverted:e,itemIconColorHorizontalInverted:e,itemIconColorHoverHorizontalInverted:o,itemIconColorActiveHorizontalInverted:o,itemIconColorActiveHoverHorizontalInverted:o,itemIconColorChildActiveHorizontalInverted:o,itemIconColorChildActiveHoverHorizontalInverted:o,arrowColorInverted:e,arrowColorHoverInverted:o,arrowColorActiveInverted:o,arrowColorActiveHoverInverted:o,arrowColorChildActiveInverted:o,arrowColorChildActiveHoverInverted:o,groupTextColorInverted:n}}function ko(e){const{borderRadius:r,textColor3:o,primaryColor:n,textColor2:i,textColor1:d,fontSize:u,dividerColor:m,hoverColor:v,primaryColorHover:z}=e;return Object.assign({borderRadius:r,color:"#0000",groupTextColor:o,itemColorHover:v,itemColorActive:ce(n,{alpha:.1}),itemColorActiveHover:ce(n,{alpha:.1}),itemColorActiveCollapsed:ce(n,{alpha:.1}),itemTextColor:i,itemTextColorHover:i,itemTextColorActive:n,itemTextColorActiveHover:n,itemTextColorChildActive:n,itemTextColorChildActiveHover:n,itemTextColorHorizontal:i,itemTextColorHoverHorizontal:z,itemTextColorActiveHorizontal:n,itemTextColorActiveHoverHorizontal:n,itemTextColorChildActiveHorizontal:n,itemTextColorChildActiveHoverHorizontal:n,itemIconColor:d,itemIconColorHover:d,itemIconColorActive:n,itemIconColorActiveHover:n,itemIconColorChildActive:n,itemIconColorChildActiveHover:n,itemIconColorCollapsed:d,itemIconColorHorizontal:d,itemIconColorHoverHorizontal:z,itemIconColorActiveHorizontal:n,itemIconColorActiveHoverHorizontal:n,itemIconColorChildActiveHorizontal:n,itemIconColorChildActiveHoverHorizontal:n,itemHeight:"42px",arrowColor:i,arrowColorHover:i,arrowColorActive:n,arrowColorActiveHover:n,arrowColorChildActive:n,arrowColorChildActiveHover:n,colorInverted:"#0000",borderColorHorizontal:"#0000",fontSize:u,dividerColor:m},Ao("#BBB",n,"#FFF","#AAA"))}const _o=to({name:"Menu",common:ro,peers:{Tooltip:go,Dropdown:wo},self:ko}),$=he("n-menu"),fe=he("n-submenu"),Ce=he("n-menu-item-group"),ke=[g("&::before","background-color: var(--n-item-color-hover);"),f("arrow",`
color: var(--n-arrow-color-hover); color: var(--n-arrow-color-hover);
`),f("icon",` `),f("icon",`
color: var(--n-item-icon-color-hover); color: var(--n-item-icon-color-hover);

View file

@ -1 +1 @@
.custom-alert[data-v-13567b43]{position:fixed;z-index:5000;margin-top:10px;left:33%;right:33%;background:linear-gradient(to right,#0000,#0000ff80,#0000)}.custom-marquee[data-v-13567b43]{pointer-events:none} .custom-alert[data-v-18739df4]{position:fixed;z-index:5000;margin-top:10px;left:33%;right:33%;background:linear-gradient(to right,#0000,#0000ff80,#0000)}.custom-marquee[data-v-18739df4]{pointer-events:none}

View file

@ -1,7 +1,18 @@
import{u as x,s as $}from"./main.js";import{X as z,a9 as g,M as p,Z as M,$ as f,aD as b,A as N,B as a,aY as _,aS as v,a7 as O,r as l,c,n as V,aG as A,p as I,aH as S,aO as T,aK as k,aL as h,aM as B,z as W,aX as E}from"./_plugin-vue_export-helper.js";import{_ as G}from"./Alert.js";function P(){return{}}const X={common:z,self:P},F=Object.assign(Object.assign({},g.props),{autoFill:Boolean,speed:{type:Number,default:48}}),j=p([M("marquee",` import{u as I,s as O}from"./main.js";import{X as z,aY as h,Z as q,A as T,B as c,a7 as E,c as d,aB as k,a9 as v,aa as R,ac as B,M as S,$ as C,aD as P,aZ as b,aS as $,r as _,n as V,aG as W,p as N,aH as M,aO as j,aK as A,aL as x,aM as w,z as F,aX as G}from"./_plugin-vue_export-helper.js";import{u as L}from"./use-houdini.js";import{_ as X}from"./Alert.js";function D(t){const{primaryColor:e,successColor:s,warningColor:a,errorColor:i,infoColor:r,fontWeightStrong:l}=t;return{fontWeight:l,rotate:"252deg",colorStartPrimary:h(e,{alpha:.6}),colorEndPrimary:e,colorStartInfo:h(r,{alpha:.6}),colorEndInfo:r,colorStartWarning:h(a,{alpha:.6}),colorEndWarning:a,colorStartError:h(i,{alpha:.6}),colorEndError:i,colorStartSuccess:h(s,{alpha:.6}),colorEndSuccess:s}}const H={common:z,self:D},K=q("gradient-text",`
display: inline-block;
font-weight: var(--n-font-weight);
-webkit-background-clip: text;
background-clip: text;
color: #0000;
white-space: nowrap;
background-image: linear-gradient(var(--n-rotate), var(--n-color-start) 0%, var(--n-color-end) 100%);
transition:
--n-color-start .3s var(--n-bezier),
--n-color-end .3s var(--n-bezier);
`),Z=Object.assign(Object.assign({},v.props),{size:[String,Number],fontSize:[String,Number],type:{type:String,default:"primary"},color:[Object,String],gradient:[Object,String]}),Y=T({name:"GradientText",props:Z,setup(t){L();const{mergedClsPrefixRef:e,inlineThemeDisabled:s}=E(t),a=d(()=>{const{type:n}=t;return n==="danger"?"error":n}),i=d(()=>{let n=t.size||t.fontSize;return n&&(n=k(n)),n||void 0}),r=d(()=>{const n=t.color||t.gradient;if(typeof n=="string")return n;if(n){const f=n.deg||0,g=n.from,p=n.to;return`linear-gradient(${f}deg, ${g} 0%, ${p} 100%)`}}),l=v("GradientText","-gradient-text",K,H,t,e),m=d(()=>{const{value:n}=a,{common:{cubicBezierEaseInOut:f},self:{rotate:g,[R("colorStart",n)]:p,[R("colorEnd",n)]:o,fontWeight:y}}=l.value;return{"--n-bezier":f,"--n-rotate":g,"--n-color-start":p,"--n-color-end":o,"--n-font-weight":y}}),u=s?B("gradient-text",d(()=>a.value[0]),m,t):void 0;return{mergedClsPrefix:e,compatibleType:a,styleFontSize:i,styleBgImage:r,cssVars:s?void 0:m,themeClass:u==null?void 0:u.themeClass,onRender:u==null?void 0:u.onRender}},render(){const{mergedClsPrefix:t,onRender:e}=this;return e==null||e(),c("span",{class:[`${t}-gradient-text`,`${t}-gradient-text--${this.compatibleType}-type`,this.themeClass],style:[{fontSize:this.styleFontSize,backgroundImage:this.styleBgImage},this.cssVars]},this.$slots)}});function J(){return{}}const Q={common:z,self:J},U=Object.assign(Object.assign({},v.props),{autoFill:Boolean,speed:{type:Number,default:48}}),ee=S([q("marquee",`
overflow: hidden; overflow: hidden;
display: flex; display: flex;
`,[f("group",` `,[C("group",`
flex: 0 0 auto; flex: 0 0 auto;
min-width: var(--n-min-width); min-width: var(--n-min-width);
z-index: 1; z-index: 1;
@ -12,4 +23,4 @@ import{u as x,s as $}from"./main.js";import{X as z,a9 as g,M as p,Z as M,$ as f,
animation-play-state: var(--n-play); animation-play-state: var(--n-play);
animation-delay: var(--n-delay); animation-delay: var(--n-delay);
animation-direction: var(--n-direction); animation-direction: var(--n-direction);
`),b("auto-fill",[f("group","min-width: 100%;"),f("item","min-width: 100%;")])]),p("@keyframes n-marquee",{from:{transform:"translateX(0)"},to:{transform:"translateX(-100%)"}})]),D=N({name:"Marquee",props:F,setup(r){const{mergedClsPrefixRef:e}=O(r);g("Marquee","-marquee",j,X,r,e);const s=l(null),o=l(-1),i=l(-1),t=l("running"),u=c(()=>{if(!r.autoFill)return 1;const{value:n}=o,{value:w}=i;return n===-1||w===-1?1:Math.ceil(i.value/n)}),m=c(()=>{const{value:n}=o;return n===-1?0:n*u.value/r.speed}),d=c(()=>({"--n-play":t.value,"--n-direction":"normal","--n-duration":`${m.value}s`,"--n-delay":"0s","--n-iteration-count":"infinite","--n-min-width":"auto"}));function q(){t.value="paused",V().then(()=>{var n;(n=s.value)===null||n===void 0||n.offsetTop,t.value="running"})}function R(n){i.value=n.contentRect.width}function C(n){o.value=n.contentRect.width}function y(){q()}return{mergedClsPrefix:e,animationCssVars:d,containerElRef:s,repeatCountInOneGroup:u,handleContainerResize:R,handleContentResize:C,handleAnimationIteration:y}},render(){const{$slots:r,mergedClsPrefix:e,animationCssVars:s,repeatCountInOneGroup:o,handleAnimationIteration:i}=this,t=a(_,{onResize:this.handleContentResize},a("div",{class:`${e}-marquee__item ${e}-marquee__original-item`},r)),u=a("div",{class:`${e}-marquee__item`},r);return this.autoFill?a(_,{onResize:this.handleContainerResize},a("div",{class:`${e}-marquee ${e}-marquee--auto-fill`,ref:"containerElRef",style:s},a("div",{class:`${e}-marquee__group`,onAnimationiteration:i},t,v(o-1,u)),a("div",{class:`${e}-marquee__group`},v(o,u)))):a("div",{class:[`${e}-marquee`],ref:"containerElRef",style:s},a("div",{class:`${e}-marquee__group`,onAnimationiteration:i},t),a("div",{class:`${e}-marquee__group`},u))}}),L={__name:"paomadeng",setup(r){const e=x(),{speed_msg:s}=$(e),o=l(!0),i=c(()=>{var t;return((t=s.value)==null?void 0:t.length)>0?`🚁🚁${s.value[0]}🚁🚁`:"🚁🚁尊贵的 mower 正在给你跑分🚁🚁"});return I(()=>{setTimeout(()=>{o.value=!1},60*1e3)}),(t,u)=>{const m=D,d=G;return o.value?(k(),S(d,{key:0,closable:"",class:"custom-alert",bordered:!1},{default:h(()=>[B(m,{speed:100,class:"custom-marquee"},{default:h(()=>[W(E(i.value),1)]),_:1})]),_:1})):T("",!0)}}},Z=A(L,[["__scopeId","data-v-13567b43"]]);export{Z as default}; `),P("auto-fill",[C("group","min-width: 100%;"),C("item","min-width: 100%;")])]),S("@keyframes n-marquee",{from:{transform:"translateX(0)"},to:{transform:"translateX(-100%)"}})]),te=T({name:"Marquee",props:U,setup(t){const{mergedClsPrefixRef:e}=E(t);v("Marquee","-marquee",ee,Q,t,e);const s=_(null),a=_(-1),i=_(-1),r=_("running"),l=d(()=>{if(!t.autoFill)return 1;const{value:o}=a,{value:y}=i;return o===-1||y===-1?1:Math.ceil(i.value/o)}),m=d(()=>{const{value:o}=a;return o===-1?0:o*l.value/t.speed}),u=d(()=>({"--n-play":r.value,"--n-direction":"normal","--n-duration":`${m.value}s`,"--n-delay":"0s","--n-iteration-count":"infinite","--n-min-width":"auto"}));function n(){r.value="paused",V().then(()=>{var o;(o=s.value)===null||o===void 0||o.offsetTop,r.value="running"})}function f(o){i.value=o.contentRect.width}function g(o){a.value=o.contentRect.width}function p(){n()}return{mergedClsPrefix:e,animationCssVars:u,containerElRef:s,repeatCountInOneGroup:l,handleContainerResize:f,handleContentResize:g,handleAnimationIteration:p}},render(){const{$slots:t,mergedClsPrefix:e,animationCssVars:s,repeatCountInOneGroup:a,handleAnimationIteration:i}=this,r=c(b,{onResize:this.handleContentResize},c("div",{class:`${e}-marquee__item ${e}-marquee__original-item`},t)),l=c("div",{class:`${e}-marquee__item`},t);return this.autoFill?c(b,{onResize:this.handleContainerResize},c("div",{class:`${e}-marquee ${e}-marquee--auto-fill`,ref:"containerElRef",style:s},c("div",{class:`${e}-marquee__group`,onAnimationiteration:i},r,$(a-1,l)),c("div",{class:`${e}-marquee__group`},$(a,l)))):c("div",{class:[`${e}-marquee`],ref:"containerElRef",style:s},c("div",{class:`${e}-marquee__group`,onAnimationiteration:i},r),c("div",{class:`${e}-marquee__group`},l))}}),ne={__name:"paomadeng",setup(t){const e=I(),{speed_msg:s}=O(e),a=_(!0),i=d(()=>{var r;return((r=s.value)==null?void 0:r.length)>0?`🚁🚁${s.value[0]}🚁🚁`:"🚁🚁尊贵的 mower 正在给你跑分🚁🚁"});return N(()=>{setTimeout(()=>{a.value=!1},60*1e3)}),(r,l)=>{const m=Y,u=te,n=X;return a.value?(A(),M(n,{key:0,closable:"",class:"custom-alert",bordered:!1},{default:x(()=>[w(u,{speed:100,class:"custom-marquee"},{default:x(()=>[w(m,{style:{color:"white"}},{default:x(()=>[F(G(i.value),1)]),_:1})]),_:1})]),_:1})):j("",!0)}}},ie=W(ne,[["__scopeId","data-v-18739df4"]]);export{ie as default};

1
ui/dist/assets/use-houdini.js vendored Normal file
View file

@ -0,0 +1 @@
import{y as i}from"./_plugin-vue_export-helper.js";let e=!1;function t(){if(i&&window.CSS&&!e&&(e=!0,"registerProperty"in(window==null?void 0:window.CSS)))try{CSS.registerProperty({name:"--n-color-start",syntax:"<color>",inherits:!1,initialValue:"#0000"}),CSS.registerProperty({name:"--n-color-end",syntax:"<color>",inherits:!1,initialValue:"#0000"})}catch{}}export{t as u};

View file

@ -10,6 +10,7 @@
<link rel="modulepreload" crossorigin href="/assets/index.js"> <link rel="modulepreload" crossorigin href="/assets/index.js">
<link rel="modulepreload" crossorigin href="/assets/Play.js"> <link rel="modulepreload" crossorigin href="/assets/Play.js">
<link rel="modulepreload" crossorigin href="/assets/TrashOutline.js"> <link rel="modulepreload" crossorigin href="/assets/TrashOutline.js">
<link rel="modulepreload" crossorigin href="/assets/use-houdini.js">
<link rel="modulepreload" crossorigin href="/assets/Icon.js"> <link rel="modulepreload" crossorigin href="/assets/Icon.js">
<link rel="modulepreload" crossorigin href="/assets/use-locale.js"> <link rel="modulepreload" crossorigin href="/assets/use-locale.js">
<link rel="modulepreload" crossorigin href="/assets/Input.js"> <link rel="modulepreload" crossorigin href="/assets/Input.js">

View file

@ -1,7 +1,7 @@
<template> <template>
<n-alert v-if="showAlert" closable class="custom-alert" :bordered="false"> <n-alert v-if="showAlert" closable class="custom-alert" :bordered="false">
<n-marquee :speed="100" class="custom-marquee"> <n-marquee :speed="100" class="custom-marquee">
{{ marqueeContent }} <n-gradient-text style="color: white"> {{ marqueeContent }} </n-gradient-text>
</n-marquee> </n-marquee>
</n-alert> </n-alert>
</template> </template>
@ -40,6 +40,7 @@ onMounted(() => {
margin-top: 10px; margin-top: 10px;
left: 33%; left: 33%;
right: 33%; right: 33%;
background: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 255, 0.5), rgba(0, 0, 0, 0)); background: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 255, 0.5), rgba(0, 0, 0, 0));
} }