1 |
- System.register(["./index-legacy.eb062188.js"],(function(e){"use strict";var l,t,i,r,n,a,s,o,c,u,v,d,b;return{setters:[function(e){l=e.t,t=e.u,i=e.z,r=e.v,n=e.O,a=e.N,s=e.ae,o=e.d,c=e.af,u=e.c,v=e.a1,d=e.a5,b=e.D}],execute:function(){const[f,g]=l("cell"),y=e("c",{tag:t("div"),icon:String,size:String,title:i,value:i,label:i,center:Boolean,isLink:Boolean,border:r,required:Boolean,iconPrefix:String,valueClass:n,labelClass:n,titleClass:n,titleStyle:null,arrowDirection:String,clickable:{type:Boolean,default:null}}),C=a({},y,s);var k=o({name:f,props:C,setup(e,{slots:l}){const t=c(),i=()=>{if(l.label||v(e.label))return u("div",{class:[g("label"),e.labelClass]},[l.label?l.label():e.label])},r=()=>{var t;if(l.title||v(e.title)){const r=null==(t=l.title)?void 0:t.call(l);if(Array.isArray(r)&&0===r.length)return;return u("div",{class:[g("title"),e.titleClass],style:e.titleStyle},[r||u("span",null,[e.title]),i()])}},n=()=>{const t=l.value||l.default;if(t||v(e.value))return u("div",{class:[g("value"),e.valueClass]},[t?t():u("span",null,[e.value])])},a=()=>{if(l["right-icon"])return l["right-icon"]();if(e.isLink){const l=e.arrowDirection&&"right"!==e.arrowDirection?`arrow-${e.arrowDirection}`:"arrow";return u(d,{name:l,class:g("right-icon")},null)}};return()=>{var i;const{tag:s,size:o,center:c,border:v,isLink:b,required:f}=e,y=null!=(i=e.clickable)?i:b,C={center:c,required:f,clickable:y,borderless:!v};return o&&(C[o]=!!o),u(s,{class:g(C),role:y?"button":void 0,tabindex:y?0:void 0,onClick:t},{default:()=>{var t;return[l.icon?l.icon():e.icon?u(d,{name:e.icon,class:g("left-icon"),classPrefix:e.iconPrefix},null):void 0,r(),n(),a(),null==(t=l.extra)?void 0:t.call(l)]}})}}});e("C",b(k))}}}));
|