index.a064c777.js 4.3 KB

1
  1. import{d as v,r as d,K as S,ez as D,ew as R,c as m,o as n,h as l,j as u,f as c,u as t,cp as p,e as g,F as y,T as x,f0 as V,fj as M,fv as P,S as f,cn as b,L as k,l as I,t as C,m as w,_ as B,b as L,cA as N,cs as T,A as G,B as U,J as j,cl as z,eZ as A}from"./index.932f1548.js";import{L as E}from"./left-pano.9b176b4c.js";/* empty css */import{R as K}from"./right-fill-pano.98fad014.js";import{_ as J}from"./index.vue_vue_type_style_index_0_lang.07390518.js";import{S as O,T as Z}from"./sign.77210e3b.js";import{M as q}from"./sign.08fef810.js";import{G as H,P as Q}from"./sign.6dc2ece0.js";import{D as W}from"./dropdown.4b29a5a7.js";import{M as X}from"./Menu.b368adf3.js";import{D as Y}from"./DownOutlined.e8d377cc.js";import"./init.cc58d2da.js";import"./guide.11b18965.js";import"./RightOutlined.77bba256.js";const ee=v({__name:"show",setup(h){const a=d(null),s=d(-1),o=S(()=>D.value.filter(i=>{if(s.value===-1)return!0;const e=R(i.styleId);return(e==null?void 0:e.typeId)===s.value}));return(i,e)=>{const r=m("ui-icon"),$=m("ui-group");return n(),l($,{title:i.$t("tagging.list"),class:"show-taggings"},{header:u(()=>[c(O,{value:s.value,"onUpdate:value":e[0]||(e[0]=_=>s.value=_),all:"",count:""},null,8,["value"])]),icon:u(()=>[c(r,{ctrl:"",type:t(p).showTaggings?"eye-s":"eye-n",onClick:e[1]||(e[1]=_=>t(p).showTaggings=!t(p).showTaggings)},null,8,["type"])]),default:u(()=>[(n(!0),g(y,null,x(t(o),_=>(n(),l(Z,{key:_.id,tagging:_,selected:a.value===_,edit:!1,onSelect:F=>a.value=F?_:null,class:"show-tagging"},null,8,["tagging","selected","onSelect"]))),128))]),_:1},8,["title"])}}});const te=v({__name:"show",setup(h){return(a,s)=>{const o=m("ui-icon"),i=m("ui-group");return n(),l(i,{title:a.$t("measure.list"),class:"show-measures"},{icon:u(()=>[c(o,{ctrl:"",type:t(p).showMeasures?"eye-s":"eye-n",onClick:s[0]||(s[0]=e=>t(p).showMeasures=!t(p).showMeasures)},null,8,["type"])]),default:u(()=>[(n(!0),g(y,null,x(t(V),e=>(n(),l(q,{key:e.id,measure:e,edit:!1},null,8,["measure"]))),128))]),_:1},8,["title"])}}});const se=v({__name:"show",setup(h){return(a,s)=>(n(!0),g(y,null,x(t(M),o=>(n(),l(H,{key:o.id,guide:o,edit:!1},null,8,["guide"]))),128))}}),ne=v({__name:"show",setup(h){return(a,s)=>(n(!0),g(y,null,x(t(P),o=>(n(),l(Q,{key:o.id,path:o,edit:!1},null,8,["path"]))),128))}}),ae={class:"tab-span"},oe={class:"count"},ue={class:"show-guides"},le=v({__name:"show",setup(h){const a=d("path"),s=S(()=>[{key:"path",text:f.t("guide.path.name"),count:P.value.length},{key:"guide",text:f.t("guide.guide.name"),count:M.value.length}]),o=S(()=>s.value.find(e=>e.key===a.value)),i=S(()=>s.value.map(e=>({...e,label:e.text+`\uFF08${e.count}\uFF09`,title:e.text+`\uFF08${e.count}\uFF09`})));return(e,r)=>{const $=m("ui-icon"),_=m("ui-group");return n(),l(_,{title:e.$t("tagging.list"),class:"show-taggings"},b({header:u(()=>[c(t(W),{placement:"bottom"},{overlay:u(()=>[c(t(X),{style:{width:"120px"},"active-key":a.value,mode:"vertical",items:t(i),onClick:r[0]||(r[0]=F=>a.value=F.key)},null,8,["active-key","items"])]),default:u(()=>[k("span",ae,[I(C(t(o).text)+" ",1),k("span",oe,"\uFF08"+C(t(o).count)+"\uFF09",1),c(t(Y))])]),_:1})]),default:u(()=>[k("div",ue,[a.value==="guide"?(n(),l(se,{key:0})):w("",!0),a.value==="path"?(n(),l(ne,{key:1})):w("",!0)])]),_:2},[a.value==="path"?{name:"icon",fn:u(()=>[c($,{ctrl:"",type:t(p).showPaths?"eye-s":"eye-n",onClick:r[1]||(r[1]=F=>t(p).showPaths=!t(p).showPaths)},null,8,["type"])]),key:"0"}:void 0]),1032,["title"])}}});const re=B(le,[["__scopeId","data-v-5dc4a222"]]),ie={class:"tabs"},ce=["onClick"],_e=v({__name:"index",setup(h){const a=[{key:0,text:f.t("tagging.name")},{key:1,text:f.t("measure.name")},{key:2,text:f.t("guide.name")}],s=d(a[0].key),o=d(!0);return L(i=>{const e=T.value===U;e||i(j.push(d(!1))),o.value=e}),N(()=>A.push(o)),(i,e)=>(n(),g(y,null,[c(t(E),null,{default:u(()=>[c(J,{current:t(T),"onUpdate:current":t(G)},null,8,["current","onUpdate:current"])]),_:1}),c(t(K),null,{header:u(()=>[k("div",ie,[(n(),g(y,null,x(a,r=>k("span",{key:r.key,class:z({active:r.key===s.value}),onClick:$=>s.value=r.key},C(r.text),11,ce)),64))])]),default:u(()=>[s.value===0?(n(),l(ee,{key:0})):w("",!0),s.value===2?(n(),l(re,{key:1})):w("",!0),s.value===1?(n(),l(te,{key:2})):w("",!0)]),_:1})],64))}});const Ce=B(_e,[["__scopeId","data-v-a48e5c09"]]);export{Ce as default};