@vancone/console-component 0.1.1-beta.56 → 0.1.1-beta.57

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -57,4 +57,4 @@ This will fail in production.`);s=Ie,s._s.has(r)||(l?nt(r,o,a,s):Tt(r,a,s),proce
57
57
  <\/script>
58
58
  </body>
59
59
  </html>
60
- `),I==null||I.close()}return e.watch(()=>r.model,()=>{k()},{deep:!0,immediate:!0}),o({multipleSelection:S,refresh:k,updateConfigAndRefresh:p}),(_,m)=>{var v,Me,Ue;const x=e.resolveComponent("el-checkbox"),P=e.resolveComponent("el-badge"),I=e.resolveComponent("el-button"),W=e.resolveComponent("el-dropdown-item"),X=e.resolveComponent("el-dropdown-menu"),ne=e.resolveComponent("el-dropdown"),L=e.resolveComponent("el-icon"),R=e.resolveComponent("el-tooltip"),J=e.resolveComponent("el-input"),K=e.resolveComponent("el-table-column"),Z=e.resolveComponent("router-link"),ae=e.resolveComponent("el-tag"),re=e.resolveComponent("el-popconfirm"),Ve=e.resolveComponent("el-table"),He=e.resolveComponent("el-pagination"),We=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass({"table-view-wrapper":(v=l.display)==null?void 0:v.pane})},[e.createElementVNode("div",tr,[e.createElementVNode("div",or,[l.selectMode?(e.openBlock(),e.createBlock(P,{key:0,value:S.value.length,type:"primary",class:"selected-badge"},{default:e.withCtx(()=>[e.createVNode(x,{class:"selected-checkbox",border:!0,label:e.unref(n)("common.table.viewSelected"),onChange:U},null,8,["label"])]),_:1},8,["value"])):e.createCommentVNode("",!0),!l.selectMode&&!l.readOnly&&l.creatable!==!1?(e.openBlock(),e.createBlock(I,{key:1,type:"primary",onClick:T},{default:e.withCtx(()=>{var le,z;return[e.createTextVNode(e.toDisplayString(((le=l.labels)==null?void 0:le.create)!=null?e.unref(n)((z=l.labels)==null?void 0:z.create):e.unref(n)("common.table.create")),1)]}),_:1})):e.createCommentVNode("",!0),!l.selectMode&&!l.readOnly&&l.deletable!==!1?(e.openBlock(),e.createBlock(I,{key:2,disabled:S.value.length==0,type:"danger",plain:"",onClick:d},{default:e.withCtx(()=>{var le,z;return[e.createTextVNode(e.toDisplayString(((le=l.labels)==null?void 0:le.delete)!=null?e.unref(n)((z=l.labels)==null?void 0:z.delete):e.unref(n)("common.table.delete")),1)]}),_:1},8,["disabled"])):e.createCommentVNode("",!0),e.createVNode(I,{icon:e.unref(ee.Refresh),style:{width:"28px"},onClick:k},null,8,["icon"]),(Me=l.display)!=null&&Me.fileTaskButton?(e.openBlock(),e.createBlock(ne,{key:3,placement:"bottom-start",trigger:"click"},{dropdown:e.withCtx(()=>[e.createVNode(X,null,{default:e.withCtx(()=>[e.createVNode(W,{icon:e.unref(ee.Upload),disabled:!0},{default:e.withCtx(()=>m[3]||(m[3]=[e.createTextVNode("导入")])),_:1},8,["icon"]),e.createVNode(W,{icon:e.unref(ee.Download),divided:"",disabled:!0},{default:e.withCtx(()=>m[4]||(m[4]=[e.createTextVNode("导出选中内容")])),_:1},8,["icon"]),e.createVNode(W,{icon:e.unref(ee.Download),onClick:M},{default:e.withCtx(()=>m[5]||(m[5]=[e.createTextVNode("导出查询结果")])),_:1},8,["icon"]),e.createVNode(W,{icon:e.unref(ee.Document),divided:"",disabled:!0},{default:e.withCtx(()=>m[6]||(m[6]=[e.createTextVNode("任务中心")])),_:1},8,["icon"])]),_:1})]),default:e.withCtx(()=>[e.createVNode(I,{style:{width:"28px"}},{icon:e.withCtx(()=>[e.createVNode(e.unref(er))]),_:1})]),_:1})):e.createCommentVNode("",!0),e.createVNode(ne,{placement:"bottom-start",trigger:"click"},{dropdown:e.withCtx(()=>[e.createVNode(X,null,{default:e.withCtx(()=>[e.createVNode(W,{icon:e.unref(ee.Printer),onClick:F},{default:e.withCtx(()=>m[7]||(m[7]=[e.createTextVNode("打印")])),_:1},8,["icon"]),e.createVNode(W,{icon:e.unref(ee.Setting),disabled:!0},{default:e.withCtx(()=>m[8]||(m[8]=[e.createTextVNode("表格设置")])),_:1},8,["icon"])]),_:1})]),default:e.withCtx(()=>[e.createVNode(I,{icon:e.unref(ee.MoreFilled),style:{width:"28px"}},null,8,["icon"])]),_:1}),l.tooltip?(e.openBlock(),e.createBlock(R,{key:4,effect:"dark",content:e.unref(n)(l.tooltip),placement:"right"},{default:e.withCtx(()=>[e.createVNode(L,{style:{color:"#8ba74f"}},{default:e.withCtx(()=>[e.createVNode(e.unref(ee.QuestionFilled))]),_:1})]),_:1},8,["content"])):e.createCommentVNode("",!0)]),e.createElementVNode("div",nr,[e.createVNode(J,{placeholder:`${e.unref(n)("common.table.search")}...`,modelValue:u.value,"onUpdate:modelValue":m[0]||(m[0]=le=>u.value=le)},{append:e.withCtx(()=>[e.createVNode(I,{style:{"margin-left":"-20px"},icon:e.unref(ee.Search),onClick:k},null,8,["icon"])]),_:1},8,["placeholder","modelValue"]),(Ue=l.display)!=null&&Ue.advancedSearch?(e.openBlock(),e.createBlock(I,{key:0,type:"text"},{default:e.withCtx(()=>m[9]||(m[9]=[e.createTextVNode("高级搜索")])),_:1})):e.createCommentVNode("",!0)])]),e.withDirectives((e.openBlock(),e.createBlock(Ve,{border:!0,ref_key:"tableRef",ref:E,data:b,onSelectionChange:O,class:"table"},{default:e.withCtx(()=>{var le;return[l.readOnly?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(K,{key:0,type:"selection",width:"50"})),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(G.value,z=>{var ye;return e.openBlock(),e.createBlock(K,{prop:z.prop,label:g(z),width:(ye=z.tableColumn)==null?void 0:ye.width,"show-overflow-tooltip":""},{default:e.withCtx(Ne=>{var xe,Ae,Wt;return[(xe=z.tableColumn)!=null&&xe.link?(e.openBlock(),e.createBlock(Z,{key:0,class:"router-link",to:`/${i.value}/detail?id=${Ne.row.id}`},{default:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(h(z,Ne)),1)]),_:2},1032,["to"])):(Ae=z.tableColumn)!=null&&Ae.routerLink?(e.openBlock(),e.createBlock(Z,{key:1,class:"router-link",to:z.tableColumn.routerLink.replace("{id}",Ne.row.id)},{default:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(h(z,Ne)),1)]),_:2},1032,["to"])):(e.openBlock(),e.createElementBlock("span",rr,e.toDisplayString(h(z,Ne)),1)),((Wt=z.tableColumn)==null?void 0:Wt.type)==="tag"?(e.openBlock(),e.createBlock(ae,{key:3},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(Ne.row[z.prop]),1)]),_:2},1024)):e.createCommentVNode("",!0)]}),_:2},1032,["prop","label","width"])}),256)),l.operations===void 0&&!((le=l.selectMode)!=null&&le)&&!l.readOnly?(e.openBlock(),e.createBlock(K,{key:1,label:e.unref(n)("common.table.operation"),width:"120"},{default:e.withCtx(z=>[l.updatable!==!1?(e.openBlock(),e.createBlock(I,{key:0,link:"",type:"primary",class:"operation-button",onClick:ye=>$(z.$index,z.row)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("common.table.edit")),1)]),_:2},1032,["onClick"])):e.createCommentVNode("",!0),e.createVNode(re,{title:"Are you sure to delete this?",onConfirm:ye=>f(z.$index,z.row)},{reference:e.withCtx(()=>[l.deletable!==!1?(e.openBlock(),e.createBlock(I,{key:0,link:"",type:"primary",class:"operation-button"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("common.table.delete")),1)]),_:1})):e.createCommentVNode("",!0)]),_:2},1032,["onConfirm"])]),_:1},8,["label"])):e.createCommentVNode("",!0),l.operations!==void 0&&!l.readOnly?(e.openBlock(),e.createBlock(K,{key:2,label:e.unref(n)("common.table.operation"),width:"120"},{default:e.withCtx(z=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.operations,ye=>(e.openBlock(),e.createBlock(I,{class:"operation-button",link:"",type:"primary",key:ye.label,onClick:Ne=>{var xe,Ae;return((Ae=(xe=ye.functions)==null?void 0:xe.click)==null?void 0:Ae.call(xe,z.$index,z.row))&&k()}},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(N(ye,z)),1)]),_:2},1032,["onClick"]))),128))]),_:1},8,["label"])):e.createCommentVNode("",!0)]}),_:1},8,["data"])),[[We,D.value]]),H.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(He,{key:0,size:"small",background:"",onSizeChange:y,onCurrentChange:C,currentPage:Y.pageNo,"onUpdate:currentPage":m[1]||(m[1]=le=>Y.pageNo=le),"page-sizes":[10,20,50,100],"page-size":Y.pageSize,layout:"total, sizes, prev, pager, next",total:Y.totalElements},null,8,["currentPage","page-size","total"])),e.createVNode(zt,{model:_.model,mode:j.value,id:A.value,afterSubmitFunc:k,visible:s.value,"onUpdate:visible":m[2]||(m[2]=le=>s.value=le)},null,8,["model","mode","id","visible"])],2)}}}),[["__scopeId","data-v-0ec68701"]]),ar={class:"nav-bar"},lr={style:{"font-size":"16px"}},sr={key:0,class:"info-card-wrapper"},ir={class:"icon-wrapper"},cr={class:"info-wrapper"},dr={class:"title-wrapper"},pr={class:"tabs-wrapper"},fr={class:"dialog-footer"},qt=Q(e.defineComponent({__name:"DetailPage",setup(t){const{t:o}=_e.useI18n(),n=q.useRoute(),r=q.useRouter(),a=e.computed(()=>n.query.id),l=e.ref(!1),i=e.ref(!1),s=e.ref("view"),c=e.ref(),u=e.ref(-1),b=e.ref(),w=e.ref(),E=e.ref("summary"),S=e.ref(""),j=e.ref(""),D=e.ref(""),H=e.ref(0),A=e.reactive({api:"",fields:[]}),Y=e.reactive([]);let V=[];e.watch([()=>r.currentRoute.value,se],()=>{p()},{immediate:!0,deep:!0});function G(f){u.value=parseInt(f.index)-1}function h(){var C;let f=(C=V[u.value].api)==null?void 0:C.replace("/select","");f=f==null?void 0:f.substring(f.lastIndexOf("/"));const d=A.api+"/"+a.value+f,y=w.value.multipleSelection.map($=>$.id);de(d,"POST",y).then(()=>{b.value.refresh(),i.value=!1})}function N(f,d,y){var M;y.functions||(y.functions={}),y.functions.create=()=>{i.value=!0,w.value&&w.value.refresh()};let C=fe.cloneDeep(d);C.tableConfig||(C.tableConfig={}),C.tableConfig.selectMode=!0,C.tableConfig.queryParams={},f.queryParamName&&(C.tableConfig.queryParams[f.queryParamName]=a.value);for(var $ in C.fields)C.fields[$].tableColumn&&(M=C.fields[$].tableColumn)!=null&&M.link&&(C.fields[$].tableColumn.link=!1);V.push(C),y.labels={create:"common.table.add",delete:"common.table.remove"},y.functions.batchDelete=O=>{var _;let g=(_=V[u.value].api)==null?void 0:_.replace("/select","");g=g==null?void 0:g.substring(g.lastIndexOf("/"));const U=A.api+"/"+a.value+g,F=O.map(m=>m.id);ie.delete(`${U}/${F.join(",")}`).then(({data:m})=>{m.code===0&&b.value.refresh()})},y.operations=[{label:"common.table.remove",functions:{click:(O,g)=>{var _;let U=(_=V[u.value].api)==null?void 0:_.replace("/select","");U=U==null?void 0:U.substring(U.lastIndexOf("/"));const F=A.api+"/"+a.value+U;de(F,"DELETE",g.id).then(()=>{b.value.refresh()})}}}],C.api+="/select"}function p(){var C,$,M;Y.splice(0);const f=n.params.model;if(se.value[f]===void 0){console.warn("Detail page model not exist:",f);return}else console.debug("Detail page model found:",f,se.value[f]);$e(A);const d=fe.cloneDeep(se.value[f]);Object.assign(A,d),console.log("DetailPage model",A),H.value++,u.value=-1,E.value="summary";const y=($=(C=A.pageConfig)==null?void 0:C.detailPage)==null?void 0:$.tabs;if(y)for(let O of y){const g=fe.cloneDeep(se.value[O.modelKey]);if(Y.push(g),O.type==="table"){g.tableConfig||(g.tableConfig={});let U=g.tableConfig;if(U.display={pane:!1},O.modelRelationType==="associated")N(O,g,U);else if(O.modelRelationType==="child"){V.push({fields:[]}),g.formConfig===void 0&&(g.formConfig={}),g.formConfig.functions===void 0&&(g.formConfig.functions={});const F=g.formConfig.functions.beforeSubmit;O.queryParamName&&(g.formConfig.functions.beforeSubmit=_=>{_[O.queryParamName]=a.value,F!==void 0&&F(_)})}U.queryParams||(U.queryParams={}),O.queryParamName&&(U.queryParams[O.queryParamName]=a.value),O.queryParams&&Object.assign(U.queryParams,O.queryParams),U.readOnly=(M=O.readOnly)!=null?M:!1,alert(U.readOnly),O.includeFields&&(g.fields=g.fields.filter(F=>{var _;return(_=O.includeFields)==null?void 0:_.includes(F.prop)})),O.excludeFields&&(g.fields=g.fields.filter(F=>{var _;return!((_=O.excludeFields)!=null&&_.includes(F.prop))})),O.tooltip&&(U.tooltip=O.tooltip)}}}e.watch([()=>{var f,d;return(d=(f=A.pageConfig)==null?void 0:f.detailPage)==null?void 0:d.infoCard},()=>{var f;return(f=c.value)==null?void 0:f.formData}],f=>{e.nextTick(()=>{var y,C,$;const d=(C=(y=A.pageConfig)==null?void 0:y.detailPage)==null?void 0:C.infoCard;d&&(S.value=d.titleFieldProp?c.value.formData[d.titleFieldProp]:"",j.value=d.subtitleFieldProp?c.value.formData[d.subtitleFieldProp]:"",D.value=d.tagFieldProp?c.value.formData[d.tagFieldProp]:"",($=A.fields)==null||$.forEach(M=>{var O,g;if(M.prop===d.tagFieldProp){const U=(g=(O=M.tableColumn)==null?void 0:O.functions)==null?void 0:g.transformValue;U&&(D.value=U(D.value))}}))})},{immediate:!0,deep:!0});function k(){l.value=!0}function T(){c.value.refresh()}return(f,d)=>{var x,P,I,W,X,ne;const y=e.resolveComponent("el-page-header"),C=e.resolveComponent("el-button"),$=e.resolveComponent("el-icon"),M=e.resolveComponent("el-dropdown-item"),O=e.resolveComponent("el-dropdown-menu"),g=e.resolveComponent("el-dropdown"),U=e.resolveComponent("el-tag"),F=e.resolveComponent("el-tab-pane"),_=e.resolveComponent("el-tabs"),m=e.resolveComponent("el-dialog");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",ar,[e.createVNode(y,{onClick:d[0]||(d[0]=L=>e.unref(r).back())},{title:e.withCtx(()=>d[5]||(d[5]=[e.createElementVNode("span",null,null,-1)])),content:e.withCtx(()=>{var L;return[e.createElementVNode("span",lr,e.toDisplayString(e.unref(o)((L=A==null?void 0:A.name)!=null?L:"")),1)]}),_:1}),e.createElementVNode("div",null,[e.createVNode(C,{type:"primary",onClick:k},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)("common.table.edit")),1)]),_:1}),((P=(x=A.pageConfig)==null?void 0:x.detailPage)==null?void 0:P.operationButtons)!==void 0?(e.openBlock(),e.createBlock(g,{key:0},{dropdown:e.withCtx(()=>[e.createVNode(O,null,{default:e.withCtx(()=>{var L,R;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((R=(L=A.pageConfig)==null?void 0:L.detailPage)==null?void 0:R.operationButtons,J=>(e.openBlock(),e.createBlock(M,{onClick:K=>J.function(c.value.formData)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)(J.label)),1)]),_:2},1032,["onClick"]))),256))]}),_:1})]),default:e.withCtx(()=>[e.createVNode(C,{style:{margin:"0 10px"}},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)("common.basic.more")),1),e.createVNode($,{class:"el-icon--right"},{default:e.withCtx(()=>[e.createVNode(e.unref(ee.ArrowDown))]),_:1})]),_:1})]),_:1})):e.createCommentVNode("",!0),e.createVNode(C,{onClick:T,style:{"border-color":"#bbb",width:"30px"}},{default:e.withCtx(()=>[e.createVNode($,null,{default:e.withCtx(()=>[e.createVNode(e.unref(ee.Refresh))]),_:1})]),_:1})])]),(W=(I=A.pageConfig)==null?void 0:I.detailPage)!=null&&W.infoCard?(e.openBlock(),e.createElementBlock("div",sr,[e.createElementVNode("div",ir,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent((X=A.pageConfig.detailPage.infoCard.icon)!=null?X:""),{class:"icon"}))]),e.createElementVNode("div",cr,[e.createElementVNode("div",dr,[e.createElementVNode("h1",null,e.toDisplayString(S.value),1),((ne=D.value)==null?void 0:ne.length)>0?(e.openBlock(),e.createBlock(U,{key:0,size:"small"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(D.value),1)]),_:1})):e.createCommentVNode("",!0)]),e.createElementVNode("span",null,e.toDisplayString(j.value),1)])])):e.createCommentVNode("",!0),e.createElementVNode("div",pr,[e.createVNode(_,{modelValue:E.value,"onUpdate:modelValue":d[1]||(d[1]=L=>E.value=L),onTabClick:G},{default:e.withCtx(()=>{var L,R;return[e.createVNode(F,{label:e.unref(o)("common.basic.summary"),name:"summary"},{default:e.withCtx(()=>[e.createVNode(jt,{ref_key:"formViewRef",ref:c,id:a.value,sessionId:H.value,mode:s.value,model:A},null,8,["id","sessionId","mode","model"])]),_:1},8,["label"]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((R=(L=A.pageConfig)==null?void 0:L.detailPage)==null?void 0:R.tabs,J=>{var K;return e.openBlock(),e.createBlock(F,{label:e.unref(o)((K=J.name)!=null?K:"")},null,8,["label"])}),256))]}),_:1},8,["modelValue"]),u.value>=0?(e.openBlock(),e.createBlock(De,{key:0,ref_key:"tabPaneTableRef",ref:b,model:Y[u.value]},null,8,["model"])):e.createCommentVNode("",!0),e.createVNode(m,{modelValue:i.value,"onUpdate:modelValue":d[3]||(d[3]=L=>i.value=L),title:e.unref(o)("common.table.select"),width:"800px"},{footer:e.withCtx(()=>[e.createElementVNode("span",fr,[e.createVNode(C,{onClick:d[2]||(d[2]=L=>i.value=!1)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)("common.basic.cancel")),1)]),_:1}),e.createVNode(C,{type:"primary",onClick:h},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)("common.basic.save")),1)]),_:1})])]),default:e.withCtx(()=>[u.value>=0?(e.openBlock(),e.createBlock(De,{key:0,ref_key:"selectTableRef",ref:w,model:e.unref(V)[u.value]},null,8,["model"])):e.createCommentVNode("",!0)]),_:1},8,["modelValue","title"])]),e.createVNode(zt,{id:a.value,mode:"update",visible:l.value,"onUpdate:visible":d[4]||(d[4]=L=>l.value=L),model:A,afterSubmitFunc:T},null,8,["id","visible","model"])],64)}}}),[["__scopeId","data-v-e6f51415"]]),mr={class:"page-title"},Ht=Q(e.defineComponent({__name:"TablePage",setup(t){const{t:o}=_e.useI18n(),n=q.useRoute(),r=q.useRouter(),a=e.ref(),l=e.ref([]),i=e.reactive({api:"",fields:[]}),s=e.reactive(Ye({},i));function c(){var b,w,E,S,j;l.value=[],i.pageConfig&&((w=(b=i.pageConfig)==null?void 0:b.tablePage)!=null&&w.tabViewAttributes)&&(l.value=(j=(S=(E=i.pageConfig)==null?void 0:E.tablePage)==null?void 0:S.tabViewAttributes)==null?void 0:j.map(D=>{let H;return D.modelKey&&se.value[D.modelKey]?H=fe.cloneDeep(se.value[D.modelKey]):H=fe.cloneDeep(i),D.queryParams&&(H.tableConfig||(H.tableConfig={}),H.tableConfig.queryParams=D.queryParams),D.fields&&(H.fields=D.fields),D.modelKey&&(H.breadcrumbRoute=i.route),{key:D.key,label:D.label,icon:D.icon,disabled:D.disabled,model:H}}))}function u(){var E,S;console.log("TablePage.init: loading model:",n.params.model),console.log("TablePage.init: current model list",se.value);const b=n.params.model;if(se.value[b]===void 0){console.warn("TablePage.init: model not found",b,se.value);return}$e(i);const w=fe.cloneDeep(se.value[b]);Object.assign(i,w),(S=(E=i.pageConfig)==null?void 0:E.tablePage)!=null&&S.tabViewAttributes||Object.assign(s,i),c()}return e.watch([()=>r.currentRoute.value,se],()=>{u()},{immediate:!0,deep:!0}),(b,w)=>{var S;const E=e.resolveComponent("el-scrollbar");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("h1",mr,e.toDisplayString(e.unref(o)((S=i.name)!=null?S:"")),1),e.createVNode(E,null,{default:e.withCtx(()=>{var j,D;return[(D=(j=i.pageConfig)==null?void 0:j.tablePage)!=null&&D.tabViewAttributes?(e.openBlock(),e.createBlock(st,{key:0,class:"tabs-wrapper",cards:l.value,tableRef:a.value},null,8,["cards","tableRef"])):e.createCommentVNode("",!0)]}),_:1}),e.createVNode(De,{class:"table-wrapper",ref_key:"tableRef",ref:a,model:s},null,8,["model"])],64)}}}),[["__scopeId","data-v-1a472785"]]),ur=[it,Rt,Ke,Lt,Gt,lt,st,De,qt,Ht],hr=t=>{t&&t.component&&ur.forEach(o=>{console.log("component",o.__name,o),t.component(o.__name,o)})};B.Building=it,B.ConsoleApp=Rt,B.DetailPage=qt,B.Header=Ke,B.NoPermission=Lt,B.Secondary=Gt,B.SideMenu=lt,B.TabCard=st,B.TablePage=Ht,B.TableView=De,B.activeMenuMapping=mt,B.default=hr,B.en=pt,B.i18n=Pe,B.menuList=Qe,B.modelList=se,B.pinia=qe,B.useConsoleStore=at,B.zh=ft,Object.defineProperties(B,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
60
+ `),I==null||I.close()}return e.watch(()=>r.model,()=>{k()},{deep:!0,immediate:!0}),o({multipleSelection:S,refresh:k,updateConfigAndRefresh:p}),(_,m)=>{var v,Me,Ue;const x=e.resolveComponent("el-checkbox"),P=e.resolveComponent("el-badge"),I=e.resolveComponent("el-button"),W=e.resolveComponent("el-dropdown-item"),X=e.resolveComponent("el-dropdown-menu"),ne=e.resolveComponent("el-dropdown"),L=e.resolveComponent("el-icon"),R=e.resolveComponent("el-tooltip"),J=e.resolveComponent("el-input"),K=e.resolveComponent("el-table-column"),Z=e.resolveComponent("router-link"),ae=e.resolveComponent("el-tag"),re=e.resolveComponent("el-popconfirm"),Ve=e.resolveComponent("el-table"),He=e.resolveComponent("el-pagination"),We=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass({"table-view-wrapper":(v=l.display)==null?void 0:v.pane})},[e.createElementVNode("div",tr,[e.createElementVNode("div",or,[l.selectMode?(e.openBlock(),e.createBlock(P,{key:0,value:S.value.length,type:"primary",class:"selected-badge"},{default:e.withCtx(()=>[e.createVNode(x,{class:"selected-checkbox",border:!0,label:e.unref(n)("common.table.viewSelected"),onChange:U},null,8,["label"])]),_:1},8,["value"])):e.createCommentVNode("",!0),!l.selectMode&&!l.readOnly&&l.creatable!==!1?(e.openBlock(),e.createBlock(I,{key:1,type:"primary",onClick:T},{default:e.withCtx(()=>{var le,z;return[e.createTextVNode(e.toDisplayString(((le=l.labels)==null?void 0:le.create)!=null?e.unref(n)((z=l.labels)==null?void 0:z.create):e.unref(n)("common.table.create")),1)]}),_:1})):e.createCommentVNode("",!0),!l.selectMode&&!l.readOnly&&l.deletable!==!1?(e.openBlock(),e.createBlock(I,{key:2,disabled:S.value.length==0,type:"danger",plain:"",onClick:d},{default:e.withCtx(()=>{var le,z;return[e.createTextVNode(e.toDisplayString(((le=l.labels)==null?void 0:le.delete)!=null?e.unref(n)((z=l.labels)==null?void 0:z.delete):e.unref(n)("common.table.delete")),1)]}),_:1},8,["disabled"])):e.createCommentVNode("",!0),e.createVNode(I,{icon:e.unref(ee.Refresh),style:{width:"28px"},onClick:k},null,8,["icon"]),(Me=l.display)!=null&&Me.fileTaskButton?(e.openBlock(),e.createBlock(ne,{key:3,placement:"bottom-start",trigger:"click"},{dropdown:e.withCtx(()=>[e.createVNode(X,null,{default:e.withCtx(()=>[e.createVNode(W,{icon:e.unref(ee.Upload),disabled:!0},{default:e.withCtx(()=>m[3]||(m[3]=[e.createTextVNode("导入")])),_:1},8,["icon"]),e.createVNode(W,{icon:e.unref(ee.Download),divided:"",disabled:!0},{default:e.withCtx(()=>m[4]||(m[4]=[e.createTextVNode("导出选中内容")])),_:1},8,["icon"]),e.createVNode(W,{icon:e.unref(ee.Download),onClick:M},{default:e.withCtx(()=>m[5]||(m[5]=[e.createTextVNode("导出查询结果")])),_:1},8,["icon"]),e.createVNode(W,{icon:e.unref(ee.Document),divided:"",disabled:!0},{default:e.withCtx(()=>m[6]||(m[6]=[e.createTextVNode("任务中心")])),_:1},8,["icon"])]),_:1})]),default:e.withCtx(()=>[e.createVNode(I,{style:{width:"28px"}},{icon:e.withCtx(()=>[e.createVNode(e.unref(er))]),_:1})]),_:1})):e.createCommentVNode("",!0),e.createVNode(ne,{placement:"bottom-start",trigger:"click"},{dropdown:e.withCtx(()=>[e.createVNode(X,null,{default:e.withCtx(()=>[e.createVNode(W,{icon:e.unref(ee.Printer),onClick:F},{default:e.withCtx(()=>m[7]||(m[7]=[e.createTextVNode("打印")])),_:1},8,["icon"]),e.createVNode(W,{icon:e.unref(ee.Setting),disabled:!0},{default:e.withCtx(()=>m[8]||(m[8]=[e.createTextVNode("表格设置")])),_:1},8,["icon"])]),_:1})]),default:e.withCtx(()=>[e.createVNode(I,{icon:e.unref(ee.MoreFilled),style:{width:"28px"}},null,8,["icon"])]),_:1}),l.tooltip?(e.openBlock(),e.createBlock(R,{key:4,effect:"dark",content:e.unref(n)(l.tooltip),placement:"right"},{default:e.withCtx(()=>[e.createVNode(L,{style:{color:"#8ba74f"}},{default:e.withCtx(()=>[e.createVNode(e.unref(ee.QuestionFilled))]),_:1})]),_:1},8,["content"])):e.createCommentVNode("",!0)]),e.createElementVNode("div",nr,[e.createVNode(J,{placeholder:`${e.unref(n)("common.table.search")}...`,modelValue:u.value,"onUpdate:modelValue":m[0]||(m[0]=le=>u.value=le)},{append:e.withCtx(()=>[e.createVNode(I,{style:{"margin-left":"-20px"},icon:e.unref(ee.Search),onClick:k},null,8,["icon"])]),_:1},8,["placeholder","modelValue"]),(Ue=l.display)!=null&&Ue.advancedSearch?(e.openBlock(),e.createBlock(I,{key:0,type:"text"},{default:e.withCtx(()=>m[9]||(m[9]=[e.createTextVNode("高级搜索")])),_:1})):e.createCommentVNode("",!0)])]),e.withDirectives((e.openBlock(),e.createBlock(Ve,{border:!0,ref_key:"tableRef",ref:E,data:b,onSelectionChange:O,class:"table"},{default:e.withCtx(()=>{var le;return[l.readOnly?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(K,{key:0,type:"selection",width:"50"})),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(G.value,z=>{var ye;return e.openBlock(),e.createBlock(K,{prop:z.prop,label:g(z),width:(ye=z.tableColumn)==null?void 0:ye.width,"show-overflow-tooltip":""},{default:e.withCtx(Ne=>{var xe,Ae,Wt;return[(xe=z.tableColumn)!=null&&xe.link?(e.openBlock(),e.createBlock(Z,{key:0,class:"router-link",to:`/${i.value}/detail?id=${Ne.row.id}`},{default:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(h(z,Ne)),1)]),_:2},1032,["to"])):(Ae=z.tableColumn)!=null&&Ae.routerLink?(e.openBlock(),e.createBlock(Z,{key:1,class:"router-link",to:z.tableColumn.routerLink.replace("{id}",Ne.row.id)},{default:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(h(z,Ne)),1)]),_:2},1032,["to"])):(e.openBlock(),e.createElementBlock("span",rr,e.toDisplayString(h(z,Ne)),1)),((Wt=z.tableColumn)==null?void 0:Wt.type)==="tag"?(e.openBlock(),e.createBlock(ae,{key:3},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(Ne.row[z.prop]),1)]),_:2},1024)):e.createCommentVNode("",!0)]}),_:2},1032,["prop","label","width"])}),256)),l.operations===void 0&&!((le=l.selectMode)!=null&&le)&&!l.readOnly?(e.openBlock(),e.createBlock(K,{key:1,label:e.unref(n)("common.table.operation"),width:"120"},{default:e.withCtx(z=>[l.updatable!==!1?(e.openBlock(),e.createBlock(I,{key:0,link:"",type:"primary",class:"operation-button",onClick:ye=>$(z.$index,z.row)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("common.table.edit")),1)]),_:2},1032,["onClick"])):e.createCommentVNode("",!0),e.createVNode(re,{title:"Are you sure to delete this?",onConfirm:ye=>f(z.$index,z.row)},{reference:e.withCtx(()=>[l.deletable!==!1?(e.openBlock(),e.createBlock(I,{key:0,link:"",type:"primary",class:"operation-button"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("common.table.delete")),1)]),_:1})):e.createCommentVNode("",!0)]),_:2},1032,["onConfirm"])]),_:1},8,["label"])):e.createCommentVNode("",!0),l.operations!==void 0&&!l.readOnly?(e.openBlock(),e.createBlock(K,{key:2,label:e.unref(n)("common.table.operation"),width:"120"},{default:e.withCtx(z=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.operations,ye=>(e.openBlock(),e.createBlock(I,{class:"operation-button",link:"",type:"primary",key:ye.label,onClick:Ne=>{var xe,Ae;return((Ae=(xe=ye.functions)==null?void 0:xe.click)==null?void 0:Ae.call(xe,z.$index,z.row))&&k()}},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(N(ye,z)),1)]),_:2},1032,["onClick"]))),128))]),_:1},8,["label"])):e.createCommentVNode("",!0)]}),_:1},8,["data"])),[[We,D.value]]),H.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(He,{key:0,size:"small",background:"",onSizeChange:y,onCurrentChange:C,currentPage:Y.pageNo,"onUpdate:currentPage":m[1]||(m[1]=le=>Y.pageNo=le),"page-sizes":[10,20,50,100],"page-size":Y.pageSize,layout:"total, sizes, prev, pager, next",total:Y.totalElements},null,8,["currentPage","page-size","total"])),e.createVNode(zt,{model:_.model,mode:j.value,id:A.value,afterSubmitFunc:k,visible:s.value,"onUpdate:visible":m[2]||(m[2]=le=>s.value=le)},null,8,["model","mode","id","visible"])],2)}}}),[["__scopeId","data-v-0ec68701"]]),ar={class:"nav-bar"},lr={style:{"font-size":"16px"}},sr={key:0,class:"info-card-wrapper"},ir={class:"icon-wrapper"},cr={class:"info-wrapper"},dr={class:"title-wrapper"},pr={class:"tabs-wrapper"},fr={class:"dialog-footer"},qt=Q(e.defineComponent({__name:"DetailPage",setup(t){const{t:o}=_e.useI18n(),n=q.useRoute(),r=q.useRouter(),a=e.computed(()=>n.query.id),l=e.ref(!1),i=e.ref(!1),s=e.ref("view"),c=e.ref(),u=e.ref(-1),b=e.ref(),w=e.ref(),E=e.ref("summary"),S=e.ref(""),j=e.ref(""),D=e.ref(""),H=e.ref(0),A=e.reactive({api:"",fields:[]}),Y=e.reactive([]);let V=[];e.watch([()=>r.currentRoute.value,se],()=>{p()},{immediate:!0,deep:!0});function G(f){u.value=parseInt(f.index)-1}function h(){var C;let f=(C=V[u.value].api)==null?void 0:C.replace("/select","");f=f==null?void 0:f.substring(f.lastIndexOf("/"));const d=A.api+"/"+a.value+f,y=w.value.multipleSelection.map($=>$.id);de(d,"POST",y).then(()=>{b.value.refresh(),i.value=!1})}function N(f,d,y){var M;y.functions||(y.functions={}),y.functions.create=()=>{i.value=!0,w.value&&w.value.refresh()};let C=fe.cloneDeep(d);C.tableConfig||(C.tableConfig={}),C.tableConfig.selectMode=!0,C.tableConfig.queryParams={},f.queryParamName&&(C.tableConfig.queryParams[f.queryParamName]=a.value);for(var $ in C.fields)C.fields[$].tableColumn&&(M=C.fields[$].tableColumn)!=null&&M.link&&(C.fields[$].tableColumn.link=!1);V.push(C),y.labels={create:"common.table.add",delete:"common.table.remove"},y.functions.batchDelete=O=>{var _;let g=(_=V[u.value].api)==null?void 0:_.replace("/select","");g=g==null?void 0:g.substring(g.lastIndexOf("/"));const U=A.api+"/"+a.value+g,F=O.map(m=>m.id);ie.delete(`${U}/${F.join(",")}`).then(({data:m})=>{m.code===0&&b.value.refresh()})},y.operations=[{label:"common.table.remove",functions:{click:(O,g)=>{var _;let U=(_=V[u.value].api)==null?void 0:_.replace("/select","");U=U==null?void 0:U.substring(U.lastIndexOf("/"));const F=A.api+"/"+a.value+U;de(F,"DELETE",g.id).then(()=>{b.value.refresh()})}}}],C.api+="/select"}function p(){var C,$,M;Y.splice(0);const f=n.params.model;if(se.value[f]===void 0){console.warn("Detail page model not exist:",f);return}else console.debug("Detail page model found:",f,se.value[f]);$e(A);const d=fe.cloneDeep(se.value[f]);Object.assign(A,d),console.log("DetailPage model",A),H.value++,u.value=-1,E.value="summary";const y=($=(C=A.pageConfig)==null?void 0:C.detailPage)==null?void 0:$.tabs;if(y)for(let O of y){const g=fe.cloneDeep(se.value[O.modelKey]);if(Y.push(g),O.type==="table"){g.tableConfig||(g.tableConfig={});let U=g.tableConfig;if(U.display={pane:!1},O.modelRelationType==="associated")N(O,g,U);else if(O.modelRelationType==="child"){V.push({fields:[]}),g.formConfig===void 0&&(g.formConfig={}),g.formConfig.functions===void 0&&(g.formConfig.functions={});const F=g.formConfig.functions.beforeSubmit;O.queryParamName&&(g.formConfig.functions.beforeSubmit=_=>{_[O.queryParamName]=a.value,F!==void 0&&F(_)})}U.queryParams||(U.queryParams={}),O.queryParamName&&(U.queryParams[O.queryParamName]=a.value),O.queryParams&&Object.assign(U.queryParams,O.queryParams),U.readOnly=(M=O.readOnly)!=null?M:!1,O.includeFields&&(g.fields=g.fields.filter(F=>{var _;return(_=O.includeFields)==null?void 0:_.includes(F.prop)})),O.excludeFields&&(g.fields=g.fields.filter(F=>{var _;return!((_=O.excludeFields)!=null&&_.includes(F.prop))})),O.tooltip&&(U.tooltip=O.tooltip)}}}e.watch([()=>{var f,d;return(d=(f=A.pageConfig)==null?void 0:f.detailPage)==null?void 0:d.infoCard},()=>{var f;return(f=c.value)==null?void 0:f.formData}],f=>{e.nextTick(()=>{var y,C,$;const d=(C=(y=A.pageConfig)==null?void 0:y.detailPage)==null?void 0:C.infoCard;d&&(S.value=d.titleFieldProp?c.value.formData[d.titleFieldProp]:"",j.value=d.subtitleFieldProp?c.value.formData[d.subtitleFieldProp]:"",D.value=d.tagFieldProp?c.value.formData[d.tagFieldProp]:"",($=A.fields)==null||$.forEach(M=>{var O,g;if(M.prop===d.tagFieldProp){const U=(g=(O=M.tableColumn)==null?void 0:O.functions)==null?void 0:g.transformValue;U&&(D.value=U(D.value))}}))})},{immediate:!0,deep:!0});function k(){l.value=!0}function T(){c.value.refresh()}return(f,d)=>{var x,P,I,W,X,ne;const y=e.resolveComponent("el-page-header"),C=e.resolveComponent("el-button"),$=e.resolveComponent("el-icon"),M=e.resolveComponent("el-dropdown-item"),O=e.resolveComponent("el-dropdown-menu"),g=e.resolveComponent("el-dropdown"),U=e.resolveComponent("el-tag"),F=e.resolveComponent("el-tab-pane"),_=e.resolveComponent("el-tabs"),m=e.resolveComponent("el-dialog");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",ar,[e.createVNode(y,{onClick:d[0]||(d[0]=L=>e.unref(r).back())},{title:e.withCtx(()=>d[5]||(d[5]=[e.createElementVNode("span",null,null,-1)])),content:e.withCtx(()=>{var L;return[e.createElementVNode("span",lr,e.toDisplayString(e.unref(o)((L=A==null?void 0:A.name)!=null?L:"")),1)]}),_:1}),e.createElementVNode("div",null,[e.createVNode(C,{type:"primary",onClick:k},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)("common.table.edit")),1)]),_:1}),((P=(x=A.pageConfig)==null?void 0:x.detailPage)==null?void 0:P.operationButtons)!==void 0?(e.openBlock(),e.createBlock(g,{key:0},{dropdown:e.withCtx(()=>[e.createVNode(O,null,{default:e.withCtx(()=>{var L,R;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((R=(L=A.pageConfig)==null?void 0:L.detailPage)==null?void 0:R.operationButtons,J=>(e.openBlock(),e.createBlock(M,{onClick:K=>J.function(c.value.formData)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)(J.label)),1)]),_:2},1032,["onClick"]))),256))]}),_:1})]),default:e.withCtx(()=>[e.createVNode(C,{style:{margin:"0 10px"}},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)("common.basic.more")),1),e.createVNode($,{class:"el-icon--right"},{default:e.withCtx(()=>[e.createVNode(e.unref(ee.ArrowDown))]),_:1})]),_:1})]),_:1})):e.createCommentVNode("",!0),e.createVNode(C,{onClick:T,style:{"border-color":"#bbb",width:"30px"}},{default:e.withCtx(()=>[e.createVNode($,null,{default:e.withCtx(()=>[e.createVNode(e.unref(ee.Refresh))]),_:1})]),_:1})])]),(W=(I=A.pageConfig)==null?void 0:I.detailPage)!=null&&W.infoCard?(e.openBlock(),e.createElementBlock("div",sr,[e.createElementVNode("div",ir,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent((X=A.pageConfig.detailPage.infoCard.icon)!=null?X:""),{class:"icon"}))]),e.createElementVNode("div",cr,[e.createElementVNode("div",dr,[e.createElementVNode("h1",null,e.toDisplayString(S.value),1),((ne=D.value)==null?void 0:ne.length)>0?(e.openBlock(),e.createBlock(U,{key:0,size:"small"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(D.value),1)]),_:1})):e.createCommentVNode("",!0)]),e.createElementVNode("span",null,e.toDisplayString(j.value),1)])])):e.createCommentVNode("",!0),e.createElementVNode("div",pr,[e.createVNode(_,{modelValue:E.value,"onUpdate:modelValue":d[1]||(d[1]=L=>E.value=L),onTabClick:G},{default:e.withCtx(()=>{var L,R;return[e.createVNode(F,{label:e.unref(o)("common.basic.summary"),name:"summary"},{default:e.withCtx(()=>[e.createVNode(jt,{ref_key:"formViewRef",ref:c,id:a.value,sessionId:H.value,mode:s.value,model:A},null,8,["id","sessionId","mode","model"])]),_:1},8,["label"]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((R=(L=A.pageConfig)==null?void 0:L.detailPage)==null?void 0:R.tabs,J=>{var K;return e.openBlock(),e.createBlock(F,{label:e.unref(o)((K=J.name)!=null?K:"")},null,8,["label"])}),256))]}),_:1},8,["modelValue"]),u.value>=0?(e.openBlock(),e.createBlock(De,{key:0,ref_key:"tabPaneTableRef",ref:b,model:Y[u.value]},null,8,["model"])):e.createCommentVNode("",!0),e.createVNode(m,{modelValue:i.value,"onUpdate:modelValue":d[3]||(d[3]=L=>i.value=L),title:e.unref(o)("common.table.select"),width:"800px"},{footer:e.withCtx(()=>[e.createElementVNode("span",fr,[e.createVNode(C,{onClick:d[2]||(d[2]=L=>i.value=!1)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)("common.basic.cancel")),1)]),_:1}),e.createVNode(C,{type:"primary",onClick:h},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)("common.basic.save")),1)]),_:1})])]),default:e.withCtx(()=>[u.value>=0?(e.openBlock(),e.createBlock(De,{key:0,ref_key:"selectTableRef",ref:w,model:e.unref(V)[u.value]},null,8,["model"])):e.createCommentVNode("",!0)]),_:1},8,["modelValue","title"])]),e.createVNode(zt,{id:a.value,mode:"update",visible:l.value,"onUpdate:visible":d[4]||(d[4]=L=>l.value=L),model:A,afterSubmitFunc:T},null,8,["id","visible","model"])],64)}}}),[["__scopeId","data-v-654772a5"]]),mr={class:"page-title"},Ht=Q(e.defineComponent({__name:"TablePage",setup(t){const{t:o}=_e.useI18n(),n=q.useRoute(),r=q.useRouter(),a=e.ref(),l=e.ref([]),i=e.reactive({api:"",fields:[]}),s=e.reactive(Ye({},i));function c(){var b,w,E,S,j;l.value=[],i.pageConfig&&((w=(b=i.pageConfig)==null?void 0:b.tablePage)!=null&&w.tabViewAttributes)&&(l.value=(j=(S=(E=i.pageConfig)==null?void 0:E.tablePage)==null?void 0:S.tabViewAttributes)==null?void 0:j.map(D=>{let H;return D.modelKey&&se.value[D.modelKey]?H=fe.cloneDeep(se.value[D.modelKey]):H=fe.cloneDeep(i),D.queryParams&&(H.tableConfig||(H.tableConfig={}),H.tableConfig.queryParams=D.queryParams),D.fields&&(H.fields=D.fields),D.modelKey&&(H.breadcrumbRoute=i.route),{key:D.key,label:D.label,icon:D.icon,disabled:D.disabled,model:H}}))}function u(){var E,S;console.log("TablePage.init: loading model:",n.params.model),console.log("TablePage.init: current model list",se.value);const b=n.params.model;if(se.value[b]===void 0){console.warn("TablePage.init: model not found",b,se.value);return}$e(i);const w=fe.cloneDeep(se.value[b]);Object.assign(i,w),(S=(E=i.pageConfig)==null?void 0:E.tablePage)!=null&&S.tabViewAttributes||Object.assign(s,i),c()}return e.watch([()=>r.currentRoute.value,se],()=>{u()},{immediate:!0,deep:!0}),(b,w)=>{var S;const E=e.resolveComponent("el-scrollbar");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("h1",mr,e.toDisplayString(e.unref(o)((S=i.name)!=null?S:"")),1),e.createVNode(E,null,{default:e.withCtx(()=>{var j,D;return[(D=(j=i.pageConfig)==null?void 0:j.tablePage)!=null&&D.tabViewAttributes?(e.openBlock(),e.createBlock(st,{key:0,class:"tabs-wrapper",cards:l.value,tableRef:a.value},null,8,["cards","tableRef"])):e.createCommentVNode("",!0)]}),_:1}),e.createVNode(De,{class:"table-wrapper",ref_key:"tableRef",ref:a,model:s},null,8,["model"])],64)}}}),[["__scopeId","data-v-1a472785"]]),ur=[it,Rt,Ke,Lt,Gt,lt,st,De,qt,Ht],hr=t=>{t&&t.component&&ur.forEach(o=>{console.log("component",o.__name,o),t.component(o.__name,o)})};B.Building=it,B.ConsoleApp=Rt,B.DetailPage=qt,B.Header=Ke,B.NoPermission=Lt,B.Secondary=Gt,B.SideMenu=lt,B.TabCard=st,B.TablePage=Ht,B.TableView=De,B.activeMenuMapping=mt,B.default=hr,B.en=pt,B.i18n=Pe,B.menuList=Qe,B.modelList=se,B.pinia=qe,B.useConsoleStore=at,B.zh=ft,Object.defineProperties(B,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});