cognova 0.2.19 → 0.2.21
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.
- package/.output/nitro.json +1 -1
- package/.output/public/_nuxt/{D9xw8uE_.js → -O86rjFZ.js} +1 -1
- package/.output/public/_nuxt/{DOHxCkGP.js → -Q9J9PRu.js} +1 -1
- package/.output/public/_nuxt/{D7Wh0rDY.js → 0DkCurh5.js} +1 -1
- package/.output/public/_nuxt/{pBQdXg6-.js → 49whOfsW.js} +1 -1
- package/.output/public/_nuxt/{Ctk8prsJ.js → 4Vi9hKJC.js} +1 -1
- package/.output/public/_nuxt/{Ck27MWrT.js → 66GNa6MU.js} +1 -1
- package/.output/public/_nuxt/9dGxQN-2.js +1 -0
- package/.output/public/_nuxt/{D8mRVRI0.js → 9wWq016N.js} +1 -1
- package/.output/public/_nuxt/{GVe-4Ph3.js → B04GYyxD.js} +1 -1
- package/.output/public/_nuxt/{CZc2yEa4.js → B0KPvVav.js} +1 -1
- package/.output/public/_nuxt/{BU3iKy5X.js → B1meh0Ci.js} +1 -1
- package/.output/public/_nuxt/{BpyLpp2u.js → B53zbEPa.js} +1 -1
- package/.output/public/_nuxt/{lA4dCLQU.js → B6-aFDg7.js} +1 -1
- package/.output/public/_nuxt/{DkfpcEOx.js → B6lgiDn1.js} +1 -1
- package/.output/public/_nuxt/{BAHFbKQX.js → B7uuK82m.js} +1 -1
- package/.output/public/_nuxt/{CGU5SCtz.js → B9OPrqTh.js} +1 -1
- package/.output/public/_nuxt/{Jnpoujml.js → BA646MN4.js} +1 -1
- package/.output/public/_nuxt/{T9GHjrNI.js → BDhTzPPo.js} +1 -1
- package/.output/public/_nuxt/{C1adFeD7.js → BDzVzzBM.js} +1 -1
- package/.output/public/_nuxt/{DlI0WiRW.js → BEkFNtxw.js} +3 -3
- package/.output/public/_nuxt/{2esUefJW.js → BI7-RNYV.js} +1 -1
- package/.output/public/_nuxt/{CLemJ5rV.js → BN8XazaH.js} +3 -3
- package/.output/public/_nuxt/{CxeiZXxL.js → BNP0kT7B.js} +1 -1
- package/.output/public/_nuxt/{DaiuS8Oa.js → BPfVf7kt.js} +1 -1
- package/.output/public/_nuxt/{C83foXIS.js → BQGDi8tM.js} +1 -1
- package/.output/public/_nuxt/{BqcLcVqS.js → BUXewbUG.js} +1 -1
- package/.output/public/_nuxt/{DGW-6lPv.js → BW0FZi7D.js} +1 -1
- package/.output/public/_nuxt/{CANguo9i.js → BXmijQzM.js} +1 -1
- package/.output/public/_nuxt/{D5eZOtxz.js → BZFf3mr_.js} +1 -1
- package/.output/public/_nuxt/{L-wDsWD2.js → BZx0xqxG.js} +1 -1
- package/.output/public/_nuxt/{DaHtDNa_.js → BbElT9yG.js} +1 -1
- package/.output/public/_nuxt/{Cd_NSs1m.js → BjyHtuwq.js} +1 -1
- package/.output/public/_nuxt/{BgWDR6Lw.js → BnfOmQBX.js} +1 -1
- package/.output/public/_nuxt/BoqEl-F1.js +1 -0
- package/.output/public/_nuxt/{BdcvMuE5.js → Bq2pktu_.js} +2 -2
- package/.output/public/_nuxt/{Cmgjw0Gq.js → Br712gOY.js} +1 -1
- package/.output/public/_nuxt/{5wtsMO-L.js → Bs4sk8vv.js} +1 -1
- package/.output/public/_nuxt/{BU2cb1WW.js → Bt87rSlM.js} +1 -1
- package/.output/public/_nuxt/{CYTJ1RUE.js → BtOA13zl.js} +1 -1
- package/.output/public/_nuxt/{Da7TeqHg.js → Bti4Nb4c.js} +1 -1
- package/.output/public/_nuxt/{CinAAQCA.js → Bu0HhyZq.js} +1 -1
- package/.output/public/_nuxt/{B3GkYra-.js → Bv25Wgb9.js} +1 -1
- package/.output/public/_nuxt/{DzCd4XVJ.js → BwMPB_Mu.js} +1 -1
- package/.output/public/_nuxt/{CRDPv2IF.js → BzkqPhn-.js} +1 -1
- package/.output/public/_nuxt/{DHw1eO-H.js → C35LJkds.js} +1 -1
- package/.output/public/_nuxt/{0I_ByKAf.js → C4VW2EjN.js} +1 -1
- package/.output/public/_nuxt/{CB1bsj7q.js → C6FzuEFH.js} +1 -1
- package/.output/public/_nuxt/C866FgGj.js +1 -0
- package/.output/public/_nuxt/{BC8KsQEf.js → CBqC92gC.js} +7 -7
- package/.output/public/_nuxt/{BsjzqOSI.js → CD2Wt775.js} +1 -1
- package/.output/public/_nuxt/{CJFWEUF1.js → CE491BHV.js} +1 -1
- package/.output/public/_nuxt/{C2L_Po9T.js → CF8ziKf1.js} +1 -1
- package/.output/public/_nuxt/{uRnVeYSZ.js → CFE6wnRK.js} +1 -1
- package/.output/public/_nuxt/{Bt7k30rZ.js → CFjVdIUR.js} +1 -1
- package/.output/public/_nuxt/{BdwdSTTv.js → CGPn0bIO.js} +1 -1
- package/.output/public/_nuxt/{Dc7JcEzN.js → CKSWEIag.js} +1 -1
- package/.output/public/_nuxt/{DS0R5f-u.js → CL9cB3YW.js} +1 -1
- package/.output/public/_nuxt/{DBNKZ2lD.js → CLUsxCN7.js} +1 -1
- package/.output/public/_nuxt/{CRwLFCah.js → CM5aLXsq.js} +1 -1
- package/.output/public/_nuxt/{DLCiFGhh.js → CN_jZBEh.js} +1 -1
- package/.output/public/_nuxt/{CrvCHahl.js → CNgf0D2d.js} +1 -1
- package/.output/public/_nuxt/{Brn3KJ4F.js → CPYFvNZ2.js} +1 -1
- package/.output/public/_nuxt/{CGYcIC6i.js → CQTD64un.js} +1 -1
- package/.output/public/_nuxt/{Ce8HCJf2.js → CRLO8tx3.js} +1 -1
- package/.output/public/_nuxt/{BTXVr2qS.js → CTIUqf4N.js} +1 -1
- package/.output/public/_nuxt/{CqkDUH4g.js → CUDpi0L3.js} +1 -1
- package/.output/public/_nuxt/{eaWTN9Xx.js → CY4SEsrB.js} +1 -1
- package/.output/public/_nuxt/{DP_btl92.js → CYAPNNGW.js} +1 -1
- package/.output/public/_nuxt/{Bn6U1R03.js → CZV2u8Xx.js} +1 -1
- package/.output/public/_nuxt/{D-iqXq71.js → C_TYqFbT.js} +1 -1
- package/.output/public/_nuxt/{DcSBMY1N.js → CdIGoC9r.js} +1 -1
- package/.output/public/_nuxt/{Bub0AycX.js → CiPQXVBy.js} +1 -1
- package/.output/public/_nuxt/{B6b5WBUt.js → Cif20myG.js} +1 -1
- package/.output/public/_nuxt/{dh14EFai.js → Ck1KJ2HV.js} +1 -1
- package/.output/public/_nuxt/{DeGeWkgm.js → CkSyHzm-.js} +1 -1
- package/.output/public/_nuxt/{BFvHK_cM.js → ClKTC8bU.js} +1 -1
- package/.output/public/_nuxt/CltqyXO5.js +1 -0
- package/.output/public/_nuxt/{C4GJPeiI.js → CmuSeGko.js} +1 -1
- package/.output/public/_nuxt/{DWOW-Cdy.js → Cn_NBSuo.js} +1 -1
- package/.output/public/_nuxt/{ZaPXfv7F.js → CvUov1Ey.js} +1 -1
- package/.output/public/_nuxt/{BlZVX3pn.js → CwY5tLRb.js} +1 -1
- package/.output/public/_nuxt/{QYD2FF-Y.js → CwoQ23uO.js} +1 -1
- package/.output/public/_nuxt/{xD0dE8wS.js → Cwoe6TAi.js} +1 -1
- package/.output/public/_nuxt/{CRCPfQS-.js → CxTuME0Z.js} +2 -2
- package/.output/public/_nuxt/{CDFqHGd6.js → Cyjm1APH.js} +1 -1
- package/.output/public/_nuxt/{Q0XJORJf.js → Cyo4VJ6S.js} +1 -1
- package/.output/public/_nuxt/{BevO_JgG.js → D-WxGaym.js} +1 -1
- package/.output/public/_nuxt/{Bn-WtsyL.js → D0SYimTY.js} +1 -1
- package/.output/public/_nuxt/{C2VzD5v7.js → D82AhPdI.js} +1 -1
- package/.output/public/_nuxt/{Cd6yPoTw.js → D9dLxr1_.js} +1 -1
- package/.output/public/_nuxt/{CSzgREhd.js → D9jU4ocP.js} +1 -1
- package/.output/public/_nuxt/{BSZs06C7.js → DAQeLqQw.js} +1 -1
- package/.output/public/_nuxt/{k4gD2Q1e.js → DDg2H-HK.js} +1 -1
- package/.output/public/_nuxt/{C3LqKYMv.js → DESvLlSI.js} +1 -1
- package/.output/public/_nuxt/{CTpEHLzQ.js → DFSB3QxC.js} +1 -1
- package/.output/public/_nuxt/{BoRhj5eh.js → DFqzAgzP.js} +1 -1
- package/.output/public/_nuxt/{1xdJYr3g.js → DJuYHeIc.js} +1 -1
- package/.output/public/_nuxt/{BhICtOVw.js → DK0AJoGL.js} +1 -1
- package/.output/public/_nuxt/{DbdpgOQc.js → DQdWxVax.js} +1 -1
- package/.output/public/_nuxt/{U6oBvom5.js → DRF-DnQg.js} +1 -1
- package/.output/public/_nuxt/{BoyaE2WK.js → DUf0f355.js} +1 -1
- package/.output/public/_nuxt/{C2iUvu7Y.js → DWnLv2oh.js} +1 -1
- package/.output/public/_nuxt/{Dj92zOuJ.js → DXkvGTEB.js} +1 -1
- package/.output/public/_nuxt/{DJXhwj4b.js → DZncVjYt.js} +1 -1
- package/.output/public/_nuxt/{CRam5D7c.js → DaAG12aj.js} +1 -1
- package/.output/public/_nuxt/{D4s3pp8O.js → Db66Rsfj.js} +1 -1
- package/.output/public/_nuxt/{CmZjhT0Y.js → DbLjznUU.js} +1 -1
- package/.output/public/_nuxt/{BN8oBViB.js → Dfzca1IN.js} +1 -1
- package/.output/public/_nuxt/{DBLItvFs.js → DhvuBruY.js} +1 -1
- package/.output/public/_nuxt/{BOb2nBTe.js → Dj9yr6QC.js} +1 -1
- package/.output/public/_nuxt/{DiNFXBiC.js → DjJn4g73.js} +1 -1
- package/.output/public/_nuxt/{CPv7vm5a.js → DkAUrkyD.js} +1 -1
- package/.output/public/_nuxt/{BvaI39gO.js → DkybthvX.js} +1 -1
- package/.output/public/_nuxt/{BPuUmv9c.js → DlNwSYeM.js} +1 -1
- package/.output/public/_nuxt/{DFELG0yq.js → Dm5HyQgM.js} +1 -1
- package/.output/public/_nuxt/{Dvz3E9oI.js → Dn7zgQZh.js} +1 -1
- package/.output/public/_nuxt/{2GiGgeXh.js → DoIqoxBH.js} +1 -1
- package/.output/public/_nuxt/{Dn78Aa2V.js → Dqx39Omg.js} +1 -1
- package/.output/public/_nuxt/{DvClFXmZ.js → DrQVjmDX.js} +1 -1
- package/.output/public/_nuxt/{CwNlDU9U.js → DuYzdzqK.js} +1 -1
- package/.output/public/_nuxt/{SY-uB-M7.js → DvZW6QuM.js} +1 -1
- package/.output/public/_nuxt/{DKiTNmSv.js → DxztGg8Y.js} +1 -1
- package/.output/public/_nuxt/{DUws3F7Z.js → EPFrlLUV.js} +1 -1
- package/.output/public/_nuxt/{DJcB285V.js → JsQhjNzl.js} +1 -1
- package/.output/public/_nuxt/{CiB_saWz.js → NApXVVQD.js} +1 -1
- package/.output/public/_nuxt/{QLVAu0lw.js → OwiFxd0L.js} +1 -1
- package/.output/public/_nuxt/{CLz02Wwh.js → QAfF68DH.js} +1 -1
- package/.output/public/_nuxt/{BFdl5SgW.js → QDt0Bhze.js} +1 -1
- package/.output/public/_nuxt/{BRW_vpqh.js → RF9kzKHY.js} +1 -1
- package/.output/public/_nuxt/{Cudrwb04.js → RzJhlhBq.js} +1 -1
- package/.output/public/_nuxt/{DiMhvSOf.js → SHHFgixe.js} +1 -1
- package/.output/public/_nuxt/V5ro_Ide.js +1 -0
- package/.output/public/_nuxt/{Bu2PklVX.js → Zge3ScOQ.js} +1 -1
- package/.output/public/_nuxt/{CZ3rgvtp.js → Zj8SE5Ja.js} +1 -1
- package/.output/public/_nuxt/{edY2TeMa.js → ZjXNlFkb.js} +1 -1
- package/.output/public/_nuxt/{DS-fOYWT.js → _5GQc09B.js} +1 -1
- package/.output/public/_nuxt/{u3fzHugO.js → aK4BeJQk.js} +1 -1
- package/.output/public/_nuxt/builds/latest.json +1 -1
- package/.output/public/_nuxt/builds/meta/36770554-14f7-4f3a-add8-2f51436e3d25.json +1 -0
- package/.output/public/_nuxt/{CuhzX4Km.js → cQU5gXxh.js} +1 -1
- package/.output/public/_nuxt/{B8GQk9Pq.js → cq8AG_FV.js} +1 -1
- package/.output/public/_nuxt/{BrAACupN.js → d2FXPfMj.js} +1 -1
- package/.output/public/_nuxt/{r-hA7E7a.js → dD3g22lS.js} +1 -1
- package/.output/public/_nuxt/{rdjgsK-s.js → f35n4CdE.js} +1 -1
- package/.output/public/_nuxt/{5bb2zRmX.js → gWMUdeHB.js} +1 -1
- package/.output/public/_nuxt/{B6oh5cW5.js → i2HesToX.js} +1 -1
- package/.output/public/_nuxt/{Bw60ICyV.js → iIxC-lNx.js} +1 -1
- package/.output/public/_nuxt/{Dw6GDP1h.js → nRp8uM7H.js} +1 -1
- package/.output/public/_nuxt/{DNqEe3aR.js → oBlsjU0k.js} +1 -1
- package/.output/public/_nuxt/{oD8wGmeX.js → rH7JJqZQ.js} +1 -1
- package/.output/public/_nuxt/{DX7Ul07b.js → tak9pMy9.js} +1 -1
- package/.output/public/_nuxt/{FTxQ_eC3.js → vebhRA6y.js} +1 -1
- package/.output/server/chunks/build/A-BWukSPjS.mjs +1 -4
- package/.output/server/chunks/build/A-BWukSPjS.mjs.map +1 -1
- package/.output/server/chunks/build/Accordion-BaJYea6e.mjs +239 -307
- package/.output/server/chunks/build/Accordion-BaJYea6e.mjs.map +1 -1
- package/.output/server/chunks/build/AccordionItem-DdG2zgcN.mjs +1 -4
- package/.output/server/chunks/build/AccordionItem-DdG2zgcN.mjs.map +1 -1
- package/.output/server/chunks/build/AgentForm-styles.DCUnzu4-.mjs.map +1 -1
- package/.output/server/chunks/build/Badge-BrU9UkCv.mjs +1 -4
- package/.output/server/chunks/build/Badge-BrU9UkCv.mjs.map +1 -1
- package/.output/server/chunks/build/Badge-C1RKkIgG.mjs +42 -58
- package/.output/server/chunks/build/Badge-C1RKkIgG.mjs.map +1 -1
- package/.output/server/chunks/build/Blockquote-DND8wTkU.mjs +1 -4
- package/.output/server/chunks/build/Blockquote-DND8wTkU.mjs.map +1 -1
- package/.output/server/chunks/build/Callout-1halpaEg.mjs +6 -10
- package/.output/server/chunks/build/Callout-1halpaEg.mjs.map +1 -1
- package/.output/server/chunks/build/Card-BHCSDKDt.mjs +9 -13
- package/.output/server/chunks/build/Card-BHCSDKDt.mjs.map +1 -1
- package/.output/server/chunks/build/Card-G40WAFiH.mjs +10 -15
- package/.output/server/chunks/build/Card-G40WAFiH.mjs.map +1 -1
- package/.output/server/chunks/build/CardGroup-BOuJcNGp.mjs +1 -4
- package/.output/server/chunks/build/CardGroup-BOuJcNGp.mjs.map +1 -1
- package/.output/server/chunks/build/Code-B1xkAS5a.mjs +1 -4
- package/.output/server/chunks/build/Code-B1xkAS5a.mjs.map +1 -1
- package/.output/server/chunks/build/CodeCollapse-BIhaNa22.mjs +7 -11
- package/.output/server/chunks/build/CodeCollapse-BIhaNa22.mjs.map +1 -1
- package/.output/server/chunks/build/CodeGroup-BviYyCuo.mjs +50 -71
- package/.output/server/chunks/build/CodeGroup-BviYyCuo.mjs.map +1 -1
- package/.output/server/chunks/build/CodeIcon-CWD5HcV7.mjs +2 -6
- package/.output/server/chunks/build/CodeIcon-CWD5HcV7.mjs.map +1 -1
- package/.output/server/chunks/build/CodePreview-D8PsCQ6m.mjs +4 -8
- package/.output/server/chunks/build/CodePreview-D8PsCQ6m.mjs.map +1 -1
- package/.output/server/chunks/build/CodeTree-BUTLupmL.mjs +74 -89
- package/.output/server/chunks/build/CodeTree-BUTLupmL.mjs.map +1 -1
- package/.output/server/chunks/build/Collapsible-BIvXNaSq.mjs +11 -20
- package/.output/server/chunks/build/Collapsible-BIvXNaSq.mjs.map +1 -1
- package/.output/server/chunks/build/ColorModeButton-CiS8E1tc.mjs +4 -5
- package/.output/server/chunks/build/ConfirmModal-DuQXeyic.mjs.map +1 -1
- package/.output/server/chunks/build/Container-DYkNsgEA.mjs +1 -4
- package/.output/server/chunks/build/Container-DYkNsgEA.mjs.map +1 -1
- package/.output/server/chunks/build/DashboardNavbar-Cpq8yKA0.mjs +43 -66
- package/.output/server/chunks/build/DashboardNavbar-Cpq8yKA0.mjs.map +1 -1
- package/.output/server/chunks/build/DashboardSidebarToggle-Chnqv04k.mjs +6 -15
- package/.output/server/chunks/build/DashboardSidebarToggle-Chnqv04k.mjs.map +1 -1
- package/.output/server/chunks/build/DashboardToolbar-66a616OO.mjs +18 -26
- package/.output/server/chunks/build/DashboardToolbar-66a616OO.mjs.map +1 -1
- package/.output/server/chunks/build/DocumentEditor-styles.CHRLgdKS.mjs.map +1 -1
- package/.output/server/chunks/build/Drawer-zOHju6ul.mjs +229 -263
- package/.output/server/chunks/build/Drawer-zOHju6ul.mjs.map +1 -1
- package/.output/server/chunks/build/DropdownMenu-BBrV9nXz.mjs +419 -483
- package/.output/server/chunks/build/DropdownMenu-BBrV9nXz.mjs.map +1 -1
- package/.output/server/chunks/build/EditorToolbar-B9OwSI5e.mjs +148 -179
- package/.output/server/chunks/build/EditorToolbar-B9OwSI5e.mjs.map +1 -1
- package/.output/server/chunks/build/Em-DsIz_BnD.mjs +1 -4
- package/.output/server/chunks/build/Em-DsIz_BnD.mjs.map +1 -1
- package/.output/server/chunks/build/Field-cwwmSQDT.mjs +14 -19
- package/.output/server/chunks/build/Field-cwwmSQDT.mjs.map +1 -1
- package/.output/server/chunks/build/FieldGroup-CAIpQv8s.mjs +1 -4
- package/.output/server/chunks/build/FieldGroup-CAIpQv8s.mjs.map +1 -1
- package/.output/server/chunks/build/FieldGroup-KzsWn_XG.mjs +1 -4
- package/.output/server/chunks/build/FieldGroup-KzsWn_XG.mjs.map +1 -1
- package/.output/server/chunks/build/Form-X6hlUv6q.mjs +20 -44
- package/.output/server/chunks/build/Form-X6hlUv6q.mjs.map +1 -1
- package/.output/server/chunks/build/FormField-Caux_FCv.mjs +23 -34
- package/.output/server/chunks/build/FormField-Caux_FCv.mjs.map +1 -1
- package/.output/server/chunks/build/H1-BbFNsPyP.mjs +4 -9
- package/.output/server/chunks/build/H1-BbFNsPyP.mjs.map +1 -1
- package/.output/server/chunks/build/H2-vHTl_pWr.mjs +5 -10
- package/.output/server/chunks/build/H2-vHTl_pWr.mjs.map +1 -1
- package/.output/server/chunks/build/H3-7eTcfO3s.mjs +5 -10
- package/.output/server/chunks/build/H3-7eTcfO3s.mjs.map +1 -1
- package/.output/server/chunks/build/H4-C89p_PKO.mjs +4 -9
- package/.output/server/chunks/build/H4-C89p_PKO.mjs.map +1 -1
- package/.output/server/chunks/build/Hr-Bm8RlL3O.mjs +1 -4
- package/.output/server/chunks/build/Hr-Bm8RlL3O.mjs.map +1 -1
- package/.output/server/chunks/build/Icon-Dp9iy0BI.mjs +1 -4
- package/.output/server/chunks/build/Icon-Dp9iy0BI.mjs.map +1 -1
- package/.output/server/chunks/build/Img-CWLmvN1t.mjs +63 -76
- package/.output/server/chunks/build/Img-CWLmvN1t.mjs.map +1 -1
- package/.output/server/chunks/build/Input-CV2hlBHo.mjs +54 -70
- package/.output/server/chunks/build/Input-CV2hlBHo.mjs.map +1 -1
- package/.output/server/chunks/build/InputTags-VS4G6txn.mjs +101 -133
- package/.output/server/chunks/build/InputTags-VS4G6txn.mjs.map +1 -1
- package/.output/server/chunks/build/Kbd-CQG6I_Ch.mjs +1 -4
- package/.output/server/chunks/build/Kbd-CQG6I_Ch.mjs.map +1 -1
- package/.output/server/chunks/build/Kbd-Daq7k0fm.mjs +19 -22
- package/.output/server/chunks/build/Kbd-Daq7k0fm.mjs.map +1 -1
- package/.output/server/chunks/build/Li-Bw1QUaGv.mjs +1 -4
- package/.output/server/chunks/build/Li-Bw1QUaGv.mjs.map +1 -1
- package/.output/server/chunks/build/{MDC-CBPIDFRQ.mjs → MDC-Dx0YPDhe.mjs} +38 -58
- package/.output/server/chunks/build/{MDC-CBPIDFRQ.mjs.map → MDC-Dx0YPDhe.mjs.map} +1 -1
- package/.output/server/chunks/build/Modal-Z_SoWhh-.mjs +299 -343
- package/.output/server/chunks/build/Modal-Z_SoWhh-.mjs.map +1 -1
- package/.output/server/chunks/build/Ol-D-fPnfFM.mjs +1 -4
- package/.output/server/chunks/build/Ol-D-fPnfFM.mjs.map +1 -1
- package/.output/server/chunks/build/P-B5YI1V9y.mjs +1 -4
- package/.output/server/chunks/build/P-B5YI1V9y.mjs.map +1 -1
- package/.output/server/chunks/build/Pre-ChiJcf3C.mjs +7 -11
- package/.output/server/chunks/build/Pre-ChiJcf3C.mjs.map +1 -1
- package/.output/server/chunks/build/Pre-styles.Ddy5_gRD.mjs.map +1 -1
- package/.output/server/chunks/build/ProseH5-DahJyv8h.mjs +1 -4
- package/.output/server/chunks/build/ProseH6-C4Is5h6c.mjs +1 -4
- package/.output/server/chunks/build/Select-BB1oLrCD.mjs +643 -758
- package/.output/server/chunks/build/Select-BB1oLrCD.mjs.map +1 -1
- package/.output/server/chunks/build/SelectMenu-DPssg6zD.mjs +702 -814
- package/.output/server/chunks/build/SelectMenu-DPssg6zD.mjs.map +1 -1
- package/.output/server/chunks/build/Separator-CYbxFNTe.mjs +35 -44
- package/.output/server/chunks/build/Separator-CYbxFNTe.mjs.map +1 -1
- package/.output/server/chunks/build/Skeleton-DZqsQzFi.mjs +1 -4
- package/.output/server/chunks/build/Skeleton-DZqsQzFi.mjs.map +1 -1
- package/.output/server/chunks/build/Slideover-DJNgcnZ2.mjs +282 -322
- package/.output/server/chunks/build/Slideover-DJNgcnZ2.mjs.map +1 -1
- package/.output/server/chunks/build/Steps-BZpvXfzb.mjs +1 -4
- package/.output/server/chunks/build/Steps-BZpvXfzb.mjs.map +1 -1
- package/.output/server/chunks/build/Strong-DXJqOWL3.mjs +1 -4
- package/.output/server/chunks/build/Strong-DXJqOWL3.mjs.map +1 -1
- package/.output/server/chunks/build/Switch-GWdksmY6.mjs +75 -92
- package/.output/server/chunks/build/Switch-GWdksmY6.mjs.map +1 -1
- package/.output/server/chunks/build/Table-BSrLZ7dt.mjs +3 -7
- package/.output/server/chunks/build/Table-BSrLZ7dt.mjs.map +1 -1
- package/.output/server/chunks/build/Table-DCwTlhCj.mjs +67 -95
- package/.output/server/chunks/build/Table-DCwTlhCj.mjs.map +1 -1
- package/.output/server/chunks/build/Tabs-B6vgKDY9.mjs +164 -205
- package/.output/server/chunks/build/Tabs-B6vgKDY9.mjs.map +1 -1
- package/.output/server/chunks/build/Tabs-Dk3nvOFF.mjs +7 -13
- package/.output/server/chunks/build/Tabs-Dk3nvOFF.mjs.map +1 -1
- package/.output/server/chunks/build/TabsItem-CDhyuBtJ.mjs +1 -4
- package/.output/server/chunks/build/TabsItem-CDhyuBtJ.mjs.map +1 -1
- package/.output/server/chunks/build/TaskForm-styles.DRSLq_mo.mjs.map +1 -1
- package/.output/server/chunks/build/Tbody-CjMT5oH-.mjs +1 -4
- package/.output/server/chunks/build/Tbody-CjMT5oH-.mjs.map +1 -1
- package/.output/server/chunks/build/Td-ZBVaEjFN.mjs +1 -4
- package/.output/server/chunks/build/Td-ZBVaEjFN.mjs.map +1 -1
- package/.output/server/chunks/build/Th-D317icbd.mjs +1 -4
- package/.output/server/chunks/build/Th-D317icbd.mjs.map +1 -1
- package/.output/server/chunks/build/Thead-Ca_ZESTK.mjs +1 -4
- package/.output/server/chunks/build/Thead-Ca_ZESTK.mjs.map +1 -1
- package/.output/server/chunks/build/Tooltip-TRyl6dje.mjs +90 -119
- package/.output/server/chunks/build/Tooltip-TRyl6dje.mjs.map +1 -1
- package/.output/server/chunks/build/Tr-6jI8j9gD.mjs +1 -4
- package/.output/server/chunks/build/Tr-6jI8j9gD.mjs.map +1 -1
- package/.output/server/chunks/build/Tree-DUhXKd8y.mjs +600 -724
- package/.output/server/chunks/build/Tree-DUhXKd8y.mjs.map +1 -1
- package/.output/server/chunks/build/Ul-BUGj_CPb.mjs +1 -4
- package/.output/server/chunks/build/Ul-BUGj_CPb.mjs.map +1 -1
- package/.output/server/chunks/build/_id_-CwBeklIM.mjs +6 -11
- package/.output/server/chunks/build/_id_-CwBeklIM.mjs.map +1 -1
- package/.output/server/chunks/build/_name_-D7MtW4Vu.mjs +80 -95
- package/.output/server/chunks/build/_name_-D7MtW4Vu.mjs.map +1 -1
- package/.output/server/chunks/build/{_uuid_-22DWyyT2.mjs → _uuid_-lvG92ein.mjs} +47 -90
- package/.output/server/chunks/build/_uuid_-lvG92ein.mjs.map +1 -0
- package/.output/server/chunks/build/account-LDZ4TL6x.mjs.map +1 -1
- package/.output/server/chunks/build/app-CGhRZPNT.mjs +4 -6
- package/.output/server/chunks/build/app-CGhRZPNT.mjs.map +1 -1
- package/.output/server/chunks/build/auth-BGPNH2QJ.mjs.map +1 -1
- package/.output/server/chunks/build/{chat-marxFgC2.mjs → chat-BphuYhvA.mjs} +15 -24
- package/.output/server/chunks/build/chat-BphuYhvA.mjs.map +1 -0
- package/.output/server/chunks/build/client.precomputed.mjs +1 -1
- package/.output/server/chunks/build/client.precomputed.mjs.map +1 -1
- package/.output/server/chunks/build/cookie-C_iulBi6.mjs +3 -4
- package/.output/server/chunks/build/dashboard-CLk1NlbR.mjs +10 -11
- package/.output/server/chunks/build/dashboard-CLk1NlbR.mjs.map +1 -1
- package/.output/server/chunks/build/dashboard-nDujDyOg.mjs +2196 -2613
- package/.output/server/chunks/build/dashboard-nDujDyOg.mjs.map +1 -1
- package/.output/server/chunks/build/docs-Bwucwp0r.mjs +57 -79
- package/.output/server/chunks/build/docs-Bwucwp0r.mjs.map +1 -1
- package/.output/server/chunks/build/error-404-styles.AYNYglVn.mjs.map +1 -1
- package/.output/server/chunks/build/error-500-styles.CQugGB96.mjs.map +1 -1
- package/.output/server/chunks/build/fetch-BB7Qzkwe.mjs +1 -2
- package/.output/server/chunks/build/hooks-D6PmTth8.mjs +4 -5
- package/.output/server/chunks/build/hooks-D6PmTth8.mjs.map +1 -1
- package/.output/server/chunks/build/{index-B3B162Ta.mjs → index-Byt-3Yq6.mjs} +607 -742
- package/.output/server/chunks/build/index-Byt-3Yq6.mjs.map +1 -0
- package/.output/server/chunks/build/index-CJkn2jiM.mjs +58 -84
- package/.output/server/chunks/build/index-CJkn2jiM.mjs.map +1 -1
- package/.output/server/chunks/build/{index-jLKAA7pL.mjs → index-CxDxc9fm.mjs} +39 -53
- package/.output/server/chunks/build/{index-jLKAA7pL.mjs.map → index-CxDxc9fm.mjs.map} +1 -1
- package/.output/server/chunks/build/index-Cz9Y6NwN.mjs +1 -2
- package/.output/server/chunks/build/index-Cz9Y6NwN.mjs.map +1 -1
- package/.output/server/chunks/build/{index-Cl87bx3X.mjs → index-DzdvIi8V.mjs} +6 -8
- package/.output/server/chunks/build/{index-Cl87bx3X.mjs.map → index-DzdvIi8V.mjs.map} +1 -1
- package/.output/server/chunks/build/{integrations-D5JWURiJ.mjs → integrations-Hf4O1jkW.mjs} +46 -111
- package/.output/server/chunks/build/integrations-Hf4O1jkW.mjs.map +1 -0
- package/.output/server/chunks/build/library-DxRdgP6X.mjs.map +1 -1
- package/.output/server/chunks/build/login-BmER_VoU.mjs +293 -349
- package/.output/server/chunks/build/login-BmER_VoU.mjs.map +1 -1
- package/.output/server/chunks/build/manage-secrets-BWzqc_-f.mjs +9 -11
- package/.output/server/chunks/build/manage-secrets-BWzqc_-f.mjs.map +1 -1
- package/.output/server/chunks/build/mdc-highlighter.mjs.map +1 -1
- package/.output/server/chunks/build/memories-BqA719O1.mjs.map +1 -1
- package/.output/server/chunks/build/node-D32ZN4X1.mjs +1 -2
- package/.output/server/chunks/build/server.mjs +7 -7
- package/.output/server/chunks/build/server.mjs.map +1 -1
- package/.output/server/chunks/build/settings-neokAVE5.mjs.map +1 -1
- package/.output/server/chunks/build/slot-BA0jpvfd.mjs +1 -1
- package/.output/server/chunks/build/ssr-Bqnw2a-w.mjs +3 -5
- package/.output/server/chunks/build/ssrSlot-FUxZcI57.mjs +1 -1
- package/.output/server/chunks/build/styles.mjs +2 -2
- package/.output/server/chunks/build/styles.mjs.map +1 -1
- package/.output/server/chunks/build/{tasks-DLUNgLwE.mjs → tasks-CnpIQNpS.mjs} +7 -18
- package/.output/server/chunks/build/tasks-CnpIQNpS.mjs.map +1 -0
- package/.output/server/chunks/build/usage-BHdQZbfI.mjs +231 -293
- package/.output/server/chunks/build/usage-BHdQZbfI.mjs.map +1 -1
- package/.output/server/chunks/build/useAgents-nmbkB9-_.mjs +2 -3
- package/.output/server/chunks/build/useAgents-nmbkB9-_.mjs.map +1 -1
- package/.output/server/chunks/build/useAuth-rW9toE_m.mjs +4 -14
- package/.output/server/chunks/build/useAuth-rW9toE_m.mjs.map +1 -1
- package/.output/server/chunks/build/useCopyToClipboard-vi6FYyyZ.mjs +1 -2
- package/.output/server/chunks/build/useCopyToClipboard-vi6FYyyZ.mjs.map +1 -1
- package/.output/server/chunks/build/useNotificationBus-BG5JNQf1.mjs.map +1 -1
- package/.output/server/chunks/build/usePreferences-DH1QjxOj.mjs +1 -2
- package/.output/server/chunks/build/usePreferences-DH1QjxOj.mjs.map +1 -1
- package/.output/server/chunks/build/view-mb0ISqfM.mjs +105 -140
- package/.output/server/chunks/build/view-mb0ISqfM.mjs.map +1 -1
- package/.output/server/chunks/build/{virtual_nuxt__Users_tony_Documents_GitHub_second-brain_.nuxt_mdc-configs-D-mPnyQ5.mjs → virtual_nuxt__Users_tony_Documents_GitHub_second-brain_node_modules_.cache_nuxt_.nuxt_mdc-configs-D-mPnyQ5.mjs} +1 -1
- package/.output/server/chunks/build/virtual_nuxt__Users_tony_Documents_GitHub_second-brain_node_modules_.cache_nuxt_.nuxt_mdc-configs-D-mPnyQ5.mjs.map +1 -0
- package/.output/server/chunks/build/{virtual_nuxt__Users_tony_Documents_GitHub_second-brain_.nuxt_mdc-imports-PtwWlZ2H.mjs → virtual_nuxt__Users_tony_Documents_GitHub_second-brain_node_modules_.cache_nuxt_.nuxt_mdc-imports-PtwWlZ2H.mjs} +4 -4
- package/.output/server/chunks/build/virtual_nuxt__Users_tony_Documents_GitHub_second-brain_node_modules_.cache_nuxt_.nuxt_mdc-imports-PtwWlZ2H.mjs.map +1 -0
- package/.output/server/chunks/nitro/nitro.mjs +905 -996
- package/.output/server/chunks/nitro/nitro.mjs.map +1 -1
- package/.output/server/package.json +1 -1
- package/Claude/skills/_lib/api.py +4 -4
- package/Claude/skills/project/project.py +2 -1
- package/Claude/skills/skill-creator/SKILL.md +7 -0
- package/Claude/skills/task/task.py +4 -3
- package/app/pages/settings/integrations.vue +2 -23
- package/dist/cli/index.js +372 -170
- package/package.json +1 -1
- package/server/bridge/adapters/imessage.ts +12 -136
- package/shared/types/index.ts +0 -2
- package/.output/public/_nuxt/BV9LrrQq.js +0 -1
- package/.output/public/_nuxt/CdcXA9zv.js +0 -1
- package/.output/public/_nuxt/Cv2DAUoN.js +0 -1
- package/.output/public/_nuxt/DEgm6J7X.js +0 -1
- package/.output/public/_nuxt/DL1RFS0w.js +0 -1
- package/.output/public/_nuxt/builds/meta/cb5185ae-c87f-4b13-8998-00a627da9237.json +0 -1
- package/.output/server/chunks/build/_uuid_-22DWyyT2.mjs.map +0 -1
- package/.output/server/chunks/build/chat-marxFgC2.mjs.map +0 -1
- package/.output/server/chunks/build/index-B3B162Ta.mjs.map +0 -1
- package/.output/server/chunks/build/integrations-D5JWURiJ.mjs.map +0 -1
- package/.output/server/chunks/build/tasks-DLUNgLwE.mjs.map +0 -1
- package/.output/server/chunks/build/virtual_nuxt__Users_tony_Documents_GitHub_second-brain_.nuxt_mdc-configs-D-mPnyQ5.mjs.map +0 -1
- package/.output/server/chunks/build/virtual_nuxt__Users_tony_Documents_GitHub_second-brain_.nuxt_mdc-imports-PtwWlZ2H.mjs.map +0 -1
|
@@ -50,10 +50,7 @@ const _sfc_main$2 = {
|
|
|
50
50
|
const [DefineItemTemplate, ReuseItemTemplate] = createReusableTemplate();
|
|
51
51
|
const childrenIcon = computed(() => dir.value === "rtl" ? appConfig.ui.icons.chevronLeft : appConfig.ui.icons.chevronRight);
|
|
52
52
|
const groups = computed(
|
|
53
|
-
() =>
|
|
54
|
-
var _a;
|
|
55
|
-
return ((_a = props.items) == null ? void 0 : _a.length) ? isArrayOfArray(props.items) ? props.items : [props.items] : [];
|
|
56
|
-
}
|
|
53
|
+
() => props.items?.length ? isArrayOfArray(props.items) ? props.items : [props.items] : []
|
|
57
54
|
);
|
|
58
55
|
return (_ctx, _push, _parent, _attrs) => {
|
|
59
56
|
_push(`<!--[-->`);
|
|
@@ -65,39 +62,37 @@ const _sfc_main$2 = {
|
|
|
65
62
|
index,
|
|
66
63
|
ui: __props.ui
|
|
67
64
|
}, () => {
|
|
68
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
|
|
69
65
|
ssrRenderSlot(_ctx.$slots, item.slot ? `${item.slot}-leading` : "item-leading", {
|
|
70
66
|
item,
|
|
71
67
|
active,
|
|
72
68
|
index,
|
|
73
69
|
ui: __props.ui
|
|
74
70
|
}, () => {
|
|
75
|
-
var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2;
|
|
76
71
|
if (item.loading) {
|
|
77
72
|
_push2(ssrRenderComponent(_sfc_main$d, {
|
|
78
73
|
name: __props.loadingIcon || unref(appConfig).ui.icons.loading,
|
|
79
74
|
"data-slot": "itemLeadingIcon",
|
|
80
|
-
class: __props.ui.itemLeadingIcon({ class: [
|
|
75
|
+
class: __props.ui.itemLeadingIcon({ class: [__props.uiOverride?.itemLeadingIcon, item.ui?.itemLeadingIcon], color: item?.color, loading: true })
|
|
81
76
|
}, null, _parent2, _scopeId));
|
|
82
77
|
} else if (item.icon) {
|
|
83
78
|
_push2(ssrRenderComponent(_sfc_main$d, {
|
|
84
79
|
name: item.icon,
|
|
85
80
|
"data-slot": "itemLeadingIcon",
|
|
86
|
-
class: __props.ui.itemLeadingIcon({ class: [
|
|
81
|
+
class: __props.ui.itemLeadingIcon({ class: [__props.uiOverride?.itemLeadingIcon, item.ui?.itemLeadingIcon], color: item?.color, active })
|
|
87
82
|
}, null, _parent2, _scopeId));
|
|
88
83
|
} else if (item.avatar) {
|
|
89
84
|
_push2(ssrRenderComponent(_sfc_main$b, mergeProps({
|
|
90
|
-
size:
|
|
85
|
+
size: item.ui?.itemLeadingAvatarSize || __props.uiOverride?.itemLeadingAvatarSize || __props.ui.itemLeadingAvatarSize()
|
|
91
86
|
}, item.avatar, {
|
|
92
87
|
"data-slot": "itemLeadingAvatar",
|
|
93
|
-
class: __props.ui.itemLeadingAvatar({ class: [
|
|
88
|
+
class: __props.ui.itemLeadingAvatar({ class: [__props.uiOverride?.itemLeadingAvatar, item.ui?.itemLeadingAvatar], active })
|
|
94
89
|
}), null, _parent2, _scopeId));
|
|
95
90
|
} else {
|
|
96
91
|
_push2(`<!---->`);
|
|
97
92
|
}
|
|
98
93
|
}, _push2, _parent2, _scopeId);
|
|
99
94
|
if (unref(get)(item, props.labelKey) || !!slots[item.slot ? `${item.slot}-label` : "item-label"] || (unref(get)(item, props.descriptionKey) || !!slots[item.slot ? `${item.slot}-description` : "item-description"])) {
|
|
100
|
-
_push2(`<span data-slot="itemWrapper" class="${ssrRenderClass(__props.ui.itemWrapper({ class: [
|
|
95
|
+
_push2(`<span data-slot="itemWrapper" class="${ssrRenderClass(__props.ui.itemWrapper({ class: [__props.uiOverride?.itemWrapper, item.ui?.itemWrapper] }))}"${_scopeId}><span data-slot="itemLabel" class="${ssrRenderClass(__props.ui.itemLabel({ class: [__props.uiOverride?.itemLabel, item.ui?.itemLabel], active }))}"${_scopeId}>`);
|
|
101
96
|
ssrRenderSlot(_ctx.$slots, item.slot ? `${item.slot}-label` : "item-label", {
|
|
102
97
|
item,
|
|
103
98
|
active,
|
|
@@ -109,14 +104,14 @@ const _sfc_main$2 = {
|
|
|
109
104
|
_push2(ssrRenderComponent(_sfc_main$d, {
|
|
110
105
|
name: typeof __props.externalIcon === "string" ? __props.externalIcon : unref(appConfig).ui.icons.external,
|
|
111
106
|
"data-slot": "itemLabelExternalIcon",
|
|
112
|
-
class: __props.ui.itemLabelExternalIcon({ class: [
|
|
107
|
+
class: __props.ui.itemLabelExternalIcon({ class: [__props.uiOverride?.itemLabelExternalIcon, item.ui?.itemLabelExternalIcon], color: item?.color, active })
|
|
113
108
|
}, null, _parent2, _scopeId));
|
|
114
109
|
} else {
|
|
115
110
|
_push2(`<!---->`);
|
|
116
111
|
}
|
|
117
112
|
_push2(`</span>`);
|
|
118
113
|
if (unref(get)(item, props.descriptionKey)) {
|
|
119
|
-
_push2(`<span data-slot="itemDescription" class="${ssrRenderClass(__props.ui.itemDescription({ class: [
|
|
114
|
+
_push2(`<span data-slot="itemDescription" class="${ssrRenderClass(__props.ui.itemDescription({ class: [__props.uiOverride?.itemDescription, item.ui?.itemDescription] }))}"${_scopeId}>`);
|
|
120
115
|
ssrRenderSlot(_ctx.$slots, item.slot ? `${item.slot}-description` : "item-description", {
|
|
121
116
|
item,
|
|
122
117
|
active,
|
|
@@ -132,27 +127,25 @@ const _sfc_main$2 = {
|
|
|
132
127
|
} else {
|
|
133
128
|
_push2(`<!---->`);
|
|
134
129
|
}
|
|
135
|
-
_push2(`<span data-slot="itemTrailing" class="${ssrRenderClass(__props.ui.itemTrailing({ class: [
|
|
130
|
+
_push2(`<span data-slot="itemTrailing" class="${ssrRenderClass(__props.ui.itemTrailing({ class: [__props.uiOverride?.itemTrailing, item.ui?.itemTrailing] }))}"${_scopeId}>`);
|
|
136
131
|
ssrRenderSlot(_ctx.$slots, item.slot ? `${item.slot}-trailing` : "item-trailing", {
|
|
137
132
|
item,
|
|
138
133
|
active,
|
|
139
134
|
index,
|
|
140
135
|
ui: __props.ui
|
|
141
136
|
}, () => {
|
|
142
|
-
|
|
143
|
-
if ((_a2 = item.children) == null ? void 0 : _a2.length) {
|
|
137
|
+
if (item.children?.length) {
|
|
144
138
|
_push2(ssrRenderComponent(_sfc_main$d, {
|
|
145
139
|
name: childrenIcon.value,
|
|
146
140
|
"data-slot": "itemTrailingIcon",
|
|
147
|
-
class: __props.ui.itemTrailingIcon({ class: [
|
|
141
|
+
class: __props.ui.itemTrailingIcon({ class: [__props.uiOverride?.itemTrailingIcon, item.ui?.itemTrailingIcon], color: item?.color, active })
|
|
148
142
|
}, null, _parent2, _scopeId));
|
|
149
|
-
} else if (
|
|
150
|
-
_push2(`<span data-slot="itemTrailingKbds" class="${ssrRenderClass(__props.ui.itemTrailingKbds({ class: [
|
|
143
|
+
} else if (item.kbds?.length) {
|
|
144
|
+
_push2(`<span data-slot="itemTrailingKbds" class="${ssrRenderClass(__props.ui.itemTrailingKbds({ class: [__props.uiOverride?.itemTrailingKbds, item.ui?.itemTrailingKbds] }))}"${_scopeId}><!--[-->`);
|
|
151
145
|
ssrRenderList(item.kbds, (kbd, kbdIndex) => {
|
|
152
|
-
var _a3, _b3;
|
|
153
146
|
_push2(ssrRenderComponent(_sfc_main$3, mergeProps({
|
|
154
147
|
key: kbdIndex,
|
|
155
|
-
size:
|
|
148
|
+
size: item.ui?.itemTrailingKbdsSize || __props.uiOverride?.itemTrailingKbdsSize || __props.ui.itemTrailingKbdsSize()
|
|
156
149
|
}, { ref_for: true }, typeof kbd === "string" ? { value: kbd } : kbd), null, _parent2, _scopeId));
|
|
157
150
|
});
|
|
158
151
|
_push2(`<!--]--></span>`);
|
|
@@ -162,19 +155,18 @@ const _sfc_main$2 = {
|
|
|
162
155
|
}, _push2, _parent2, _scopeId);
|
|
163
156
|
_push2(ssrRenderComponent(unref(ContextMenu).ItemIndicator, { "as-child": "" }, {
|
|
164
157
|
default: withCtx((_, _push3, _parent3, _scopeId2) => {
|
|
165
|
-
var _a2, _b2, _c2, _d2;
|
|
166
158
|
if (_push3) {
|
|
167
159
|
_push3(ssrRenderComponent(_sfc_main$d, {
|
|
168
160
|
name: __props.checkedIcon || unref(appConfig).ui.icons.check,
|
|
169
161
|
"data-slot": "itemTrailingIcon",
|
|
170
|
-
class: __props.ui.itemTrailingIcon({ class: [
|
|
162
|
+
class: __props.ui.itemTrailingIcon({ class: [__props.uiOverride?.itemTrailingIcon, item.ui?.itemTrailingIcon], color: item?.color })
|
|
171
163
|
}, null, _parent3, _scopeId2));
|
|
172
164
|
} else {
|
|
173
165
|
return [
|
|
174
166
|
createVNode(_sfc_main$d, {
|
|
175
167
|
name: __props.checkedIcon || unref(appConfig).ui.icons.check,
|
|
176
168
|
"data-slot": "itemTrailingIcon",
|
|
177
|
-
class: __props.ui.itemTrailingIcon({ class: [
|
|
169
|
+
class: __props.ui.itemTrailingIcon({ class: [__props.uiOverride?.itemTrailingIcon, item.ui?.itemTrailingIcon], color: item?.color })
|
|
178
170
|
}, null, 8, ["name", "class"])
|
|
179
171
|
];
|
|
180
172
|
}
|
|
@@ -189,121 +181,108 @@ const _sfc_main$2 = {
|
|
|
189
181
|
item,
|
|
190
182
|
index,
|
|
191
183
|
ui: __props.ui
|
|
192
|
-
}, () =>
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
184
|
+
}, () => [
|
|
185
|
+
renderSlot(_ctx.$slots, item.slot ? `${item.slot}-leading` : "item-leading", {
|
|
186
|
+
item,
|
|
187
|
+
active,
|
|
188
|
+
index,
|
|
189
|
+
ui: __props.ui
|
|
190
|
+
}, () => [
|
|
191
|
+
item.loading ? (openBlock(), createBlock(_sfc_main$d, {
|
|
192
|
+
key: 0,
|
|
193
|
+
name: __props.loadingIcon || unref(appConfig).ui.icons.loading,
|
|
194
|
+
"data-slot": "itemLeadingIcon",
|
|
195
|
+
class: __props.ui.itemLeadingIcon({ class: [__props.uiOverride?.itemLeadingIcon, item.ui?.itemLeadingIcon], color: item?.color, loading: true })
|
|
196
|
+
}, null, 8, ["name", "class"])) : item.icon ? (openBlock(), createBlock(_sfc_main$d, {
|
|
197
|
+
key: 1,
|
|
198
|
+
name: item.icon,
|
|
199
|
+
"data-slot": "itemLeadingIcon",
|
|
200
|
+
class: __props.ui.itemLeadingIcon({ class: [__props.uiOverride?.itemLeadingIcon, item.ui?.itemLeadingIcon], color: item?.color, active })
|
|
201
|
+
}, null, 8, ["name", "class"])) : item.avatar ? (openBlock(), createBlock(_sfc_main$b, mergeProps({
|
|
202
|
+
key: 2,
|
|
203
|
+
size: item.ui?.itemLeadingAvatarSize || __props.uiOverride?.itemLeadingAvatarSize || __props.ui.itemLeadingAvatarSize()
|
|
204
|
+
}, item.avatar, {
|
|
205
|
+
"data-slot": "itemLeadingAvatar",
|
|
206
|
+
class: __props.ui.itemLeadingAvatar({ class: [__props.uiOverride?.itemLeadingAvatar, item.ui?.itemLeadingAvatar], active })
|
|
207
|
+
}), null, 16, ["size", "class"])) : createCommentVNode("", true)
|
|
208
|
+
]),
|
|
209
|
+
unref(get)(item, props.labelKey) || !!slots[item.slot ? `${item.slot}-label` : "item-label"] || (unref(get)(item, props.descriptionKey) || !!slots[item.slot ? `${item.slot}-description` : "item-description"]) ? (openBlock(), createBlock("span", {
|
|
210
|
+
key: 0,
|
|
211
|
+
"data-slot": "itemWrapper",
|
|
212
|
+
class: __props.ui.itemWrapper({ class: [__props.uiOverride?.itemWrapper, item.ui?.itemWrapper] })
|
|
213
|
+
}, [
|
|
214
|
+
createVNode("span", {
|
|
215
|
+
"data-slot": "itemLabel",
|
|
216
|
+
class: __props.ui.itemLabel({ class: [__props.uiOverride?.itemLabel, item.ui?.itemLabel], active })
|
|
217
|
+
}, [
|
|
218
|
+
renderSlot(_ctx.$slots, item.slot ? `${item.slot}-label` : "item-label", {
|
|
219
|
+
item,
|
|
220
|
+
active,
|
|
221
|
+
index
|
|
222
|
+
}, () => [
|
|
223
|
+
createTextVNode(toDisplayString(unref(get)(item, props.labelKey)), 1)
|
|
224
|
+
]),
|
|
225
|
+
item.target === "_blank" && __props.externalIcon !== false ? (openBlock(), createBlock(_sfc_main$d, {
|
|
226
|
+
key: 0,
|
|
227
|
+
name: typeof __props.externalIcon === "string" ? __props.externalIcon : unref(appConfig).ui.icons.external,
|
|
228
|
+
"data-slot": "itemLabelExternalIcon",
|
|
229
|
+
class: __props.ui.itemLabelExternalIcon({ class: [__props.uiOverride?.itemLabelExternalIcon, item.ui?.itemLabelExternalIcon], color: item?.color, active })
|
|
230
|
+
}, null, 8, ["name", "class"])) : createCommentVNode("", true)
|
|
231
|
+
], 2),
|
|
232
|
+
unref(get)(item, props.descriptionKey) ? (openBlock(), createBlock("span", {
|
|
233
|
+
key: 0,
|
|
234
|
+
"data-slot": "itemDescription",
|
|
235
|
+
class: __props.ui.itemDescription({ class: [__props.uiOverride?.itemDescription, item.ui?.itemDescription] })
|
|
236
|
+
}, [
|
|
237
|
+
renderSlot(_ctx.$slots, item.slot ? `${item.slot}-description` : "item-description", {
|
|
238
|
+
item,
|
|
239
|
+
active,
|
|
240
|
+
index
|
|
241
|
+
}, () => [
|
|
242
|
+
createTextVNode(toDisplayString(unref(get)(item, props.descriptionKey)), 1)
|
|
243
|
+
])
|
|
244
|
+
], 2)) : createCommentVNode("", true)
|
|
245
|
+
], 2)) : createCommentVNode("", true),
|
|
246
|
+
createVNode("span", {
|
|
247
|
+
"data-slot": "itemTrailing",
|
|
248
|
+
class: __props.ui.itemTrailing({ class: [__props.uiOverride?.itemTrailing, item.ui?.itemTrailing] })
|
|
249
|
+
}, [
|
|
250
|
+
renderSlot(_ctx.$slots, item.slot ? `${item.slot}-trailing` : "item-trailing", {
|
|
196
251
|
item,
|
|
197
252
|
active,
|
|
198
253
|
index,
|
|
199
254
|
ui: __props.ui
|
|
200
|
-
}, () =>
|
|
201
|
-
|
|
202
|
-
return [
|
|
203
|
-
item.loading ? (openBlock(), createBlock(_sfc_main$d, {
|
|
204
|
-
key: 0,
|
|
205
|
-
name: __props.loadingIcon || unref(appConfig).ui.icons.loading,
|
|
206
|
-
"data-slot": "itemLeadingIcon",
|
|
207
|
-
class: __props.ui.itemLeadingIcon({ class: [(_a2 = __props.uiOverride) == null ? void 0 : _a2.itemLeadingIcon, (_b2 = item.ui) == null ? void 0 : _b2.itemLeadingIcon], color: item == null ? void 0 : item.color, loading: true })
|
|
208
|
-
}, null, 8, ["name", "class"])) : item.icon ? (openBlock(), createBlock(_sfc_main$d, {
|
|
209
|
-
key: 1,
|
|
210
|
-
name: item.icon,
|
|
211
|
-
"data-slot": "itemLeadingIcon",
|
|
212
|
-
class: __props.ui.itemLeadingIcon({ class: [(_c2 = __props.uiOverride) == null ? void 0 : _c2.itemLeadingIcon, (_d2 = item.ui) == null ? void 0 : _d2.itemLeadingIcon], color: item == null ? void 0 : item.color, active })
|
|
213
|
-
}, null, 8, ["name", "class"])) : item.avatar ? (openBlock(), createBlock(_sfc_main$b, mergeProps({
|
|
214
|
-
key: 2,
|
|
215
|
-
size: ((_e2 = item.ui) == null ? void 0 : _e2.itemLeadingAvatarSize) || ((_f2 = __props.uiOverride) == null ? void 0 : _f2.itemLeadingAvatarSize) || __props.ui.itemLeadingAvatarSize()
|
|
216
|
-
}, item.avatar, {
|
|
217
|
-
"data-slot": "itemLeadingAvatar",
|
|
218
|
-
class: __props.ui.itemLeadingAvatar({ class: [(_g2 = __props.uiOverride) == null ? void 0 : _g2.itemLeadingAvatar, (_h2 = item.ui) == null ? void 0 : _h2.itemLeadingAvatar], active })
|
|
219
|
-
}), null, 16, ["size", "class"])) : createCommentVNode("", true)
|
|
220
|
-
];
|
|
221
|
-
}),
|
|
222
|
-
unref(get)(item, props.labelKey) || !!slots[item.slot ? `${item.slot}-label` : "item-label"] || (unref(get)(item, props.descriptionKey) || !!slots[item.slot ? `${item.slot}-description` : "item-description"]) ? (openBlock(), createBlock("span", {
|
|
223
|
-
key: 0,
|
|
224
|
-
"data-slot": "itemWrapper",
|
|
225
|
-
class: __props.ui.itemWrapper({ class: [(_a = __props.uiOverride) == null ? void 0 : _a.itemWrapper, (_b = item.ui) == null ? void 0 : _b.itemWrapper] })
|
|
226
|
-
}, [
|
|
227
|
-
createVNode("span", {
|
|
228
|
-
"data-slot": "itemLabel",
|
|
229
|
-
class: __props.ui.itemLabel({ class: [(_c = __props.uiOverride) == null ? void 0 : _c.itemLabel, (_d = item.ui) == null ? void 0 : _d.itemLabel], active })
|
|
230
|
-
}, [
|
|
231
|
-
renderSlot(_ctx.$slots, item.slot ? `${item.slot}-label` : "item-label", {
|
|
232
|
-
item,
|
|
233
|
-
active,
|
|
234
|
-
index
|
|
235
|
-
}, () => [
|
|
236
|
-
createTextVNode(toDisplayString(unref(get)(item, props.labelKey)), 1)
|
|
237
|
-
]),
|
|
238
|
-
item.target === "_blank" && __props.externalIcon !== false ? (openBlock(), createBlock(_sfc_main$d, {
|
|
239
|
-
key: 0,
|
|
240
|
-
name: typeof __props.externalIcon === "string" ? __props.externalIcon : unref(appConfig).ui.icons.external,
|
|
241
|
-
"data-slot": "itemLabelExternalIcon",
|
|
242
|
-
class: __props.ui.itemLabelExternalIcon({ class: [(_e = __props.uiOverride) == null ? void 0 : _e.itemLabelExternalIcon, (_f = item.ui) == null ? void 0 : _f.itemLabelExternalIcon], color: item == null ? void 0 : item.color, active })
|
|
243
|
-
}, null, 8, ["name", "class"])) : createCommentVNode("", true)
|
|
244
|
-
], 2),
|
|
245
|
-
unref(get)(item, props.descriptionKey) ? (openBlock(), createBlock("span", {
|
|
255
|
+
}, () => [
|
|
256
|
+
item.children?.length ? (openBlock(), createBlock(_sfc_main$d, {
|
|
246
257
|
key: 0,
|
|
247
|
-
|
|
248
|
-
|
|
258
|
+
name: childrenIcon.value,
|
|
259
|
+
"data-slot": "itemTrailingIcon",
|
|
260
|
+
class: __props.ui.itemTrailingIcon({ class: [__props.uiOverride?.itemTrailingIcon, item.ui?.itemTrailingIcon], color: item?.color, active })
|
|
261
|
+
}, null, 8, ["name", "class"])) : item.kbds?.length ? (openBlock(), createBlock("span", {
|
|
262
|
+
key: 1,
|
|
263
|
+
"data-slot": "itemTrailingKbds",
|
|
264
|
+
class: __props.ui.itemTrailingKbds({ class: [__props.uiOverride?.itemTrailingKbds, item.ui?.itemTrailingKbds] })
|
|
249
265
|
}, [
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
])
|
|
266
|
+
(openBlock(true), createBlock(Fragment, null, renderList(item.kbds, (kbd, kbdIndex) => {
|
|
267
|
+
return openBlock(), createBlock(_sfc_main$3, mergeProps({
|
|
268
|
+
key: kbdIndex,
|
|
269
|
+
size: item.ui?.itemTrailingKbdsSize || __props.uiOverride?.itemTrailingKbdsSize || __props.ui.itemTrailingKbdsSize()
|
|
270
|
+
}, { ref_for: true }, typeof kbd === "string" ? { value: kbd } : kbd), null, 16, ["size"]);
|
|
271
|
+
}), 128))
|
|
257
272
|
], 2)) : createCommentVNode("", true)
|
|
258
|
-
]
|
|
259
|
-
createVNode("
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
((_a2 = item.children) == null ? void 0 : _a2.length) ? (openBlock(), createBlock(_sfc_main$d, {
|
|
272
|
-
key: 0,
|
|
273
|
-
name: childrenIcon.value,
|
|
274
|
-
"data-slot": "itemTrailingIcon",
|
|
275
|
-
class: __props.ui.itemTrailingIcon({ class: [(_b2 = __props.uiOverride) == null ? void 0 : _b2.itemTrailingIcon, (_c2 = item.ui) == null ? void 0 : _c2.itemTrailingIcon], color: item == null ? void 0 : item.color, active })
|
|
276
|
-
}, null, 8, ["name", "class"])) : ((_d2 = item.kbds) == null ? void 0 : _d2.length) ? (openBlock(), createBlock("span", {
|
|
277
|
-
key: 1,
|
|
278
|
-
"data-slot": "itemTrailingKbds",
|
|
279
|
-
class: __props.ui.itemTrailingKbds({ class: [(_e2 = __props.uiOverride) == null ? void 0 : _e2.itemTrailingKbds, (_f2 = item.ui) == null ? void 0 : _f2.itemTrailingKbds] })
|
|
280
|
-
}, [
|
|
281
|
-
(openBlock(true), createBlock(Fragment, null, renderList(item.kbds, (kbd, kbdIndex) => {
|
|
282
|
-
var _a3, _b3;
|
|
283
|
-
return openBlock(), createBlock(_sfc_main$3, mergeProps({
|
|
284
|
-
key: kbdIndex,
|
|
285
|
-
size: ((_a3 = item.ui) == null ? void 0 : _a3.itemTrailingKbdsSize) || ((_b3 = __props.uiOverride) == null ? void 0 : _b3.itemTrailingKbdsSize) || __props.ui.itemTrailingKbdsSize()
|
|
286
|
-
}, { ref_for: true }, typeof kbd === "string" ? { value: kbd } : kbd), null, 16, ["size"]);
|
|
287
|
-
}), 128))
|
|
288
|
-
], 2)) : createCommentVNode("", true)
|
|
289
|
-
];
|
|
290
|
-
}),
|
|
291
|
-
createVNode(unref(ContextMenu).ItemIndicator, { "as-child": "" }, {
|
|
292
|
-
default: withCtx(() => {
|
|
293
|
-
var _a2, _b2;
|
|
294
|
-
return [
|
|
295
|
-
createVNode(_sfc_main$d, {
|
|
296
|
-
name: __props.checkedIcon || unref(appConfig).ui.icons.check,
|
|
297
|
-
"data-slot": "itemTrailingIcon",
|
|
298
|
-
class: __props.ui.itemTrailingIcon({ class: [(_a2 = __props.uiOverride) == null ? void 0 : _a2.itemTrailingIcon, (_b2 = item.ui) == null ? void 0 : _b2.itemTrailingIcon], color: item == null ? void 0 : item.color })
|
|
299
|
-
}, null, 8, ["name", "class"])
|
|
300
|
-
];
|
|
301
|
-
}),
|
|
302
|
-
_: 2
|
|
303
|
-
}, 1024)
|
|
304
|
-
], 2)
|
|
305
|
-
];
|
|
306
|
-
})
|
|
273
|
+
]),
|
|
274
|
+
createVNode(unref(ContextMenu).ItemIndicator, { "as-child": "" }, {
|
|
275
|
+
default: withCtx(() => [
|
|
276
|
+
createVNode(_sfc_main$d, {
|
|
277
|
+
name: __props.checkedIcon || unref(appConfig).ui.icons.check,
|
|
278
|
+
"data-slot": "itemTrailingIcon",
|
|
279
|
+
class: __props.ui.itemTrailingIcon({ class: [__props.uiOverride?.itemTrailingIcon, item.ui?.itemTrailingIcon], color: item?.color })
|
|
280
|
+
}, null, 8, ["name", "class"])
|
|
281
|
+
]),
|
|
282
|
+
_: 2
|
|
283
|
+
}, 1024)
|
|
284
|
+
], 2)
|
|
285
|
+
])
|
|
307
286
|
];
|
|
308
287
|
}
|
|
309
288
|
}),
|
|
@@ -311,36 +290,32 @@ const _sfc_main$2 = {
|
|
|
311
290
|
}, _parent));
|
|
312
291
|
_push(ssrRenderComponent(unref(ContextMenu).Portal, unref(portalProps), {
|
|
313
292
|
default: withCtx((_, _push2, _parent2, _scopeId) => {
|
|
314
|
-
var _a, _b;
|
|
315
293
|
if (_push2) {
|
|
316
294
|
ssrRenderVNode(_push2, createVNode(resolveDynamicComponent(__props.sub ? unref(ContextMenu).SubContent : unref(ContextMenu).Content), mergeProps({
|
|
317
295
|
"data-slot": "content",
|
|
318
|
-
class: __props.ui.content({ class: [
|
|
296
|
+
class: __props.ui.content({ class: [__props.uiOverride?.content, props.class] })
|
|
319
297
|
}, unref(contentProps)), {
|
|
320
298
|
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
321
|
-
var _a2, _b2, _c, _d, _e, _f;
|
|
322
299
|
if (_push3) {
|
|
323
300
|
ssrRenderSlot(_ctx.$slots, "content-top", {
|
|
324
|
-
sub:
|
|
301
|
+
sub: __props.sub ?? false
|
|
325
302
|
}, null, _push3, _parent3, _scopeId2);
|
|
326
|
-
_push3(`<div role="presentation" data-slot="viewport" class="${ssrRenderClass(__props.ui.viewport({ class:
|
|
303
|
+
_push3(`<div role="presentation" data-slot="viewport" class="${ssrRenderClass(__props.ui.viewport({ class: __props.uiOverride?.viewport }))}"${_scopeId2}><!--[-->`);
|
|
327
304
|
ssrRenderList(groups.value, (group, groupIndex) => {
|
|
328
|
-
var _a3;
|
|
329
305
|
_push3(ssrRenderComponent(unref(ContextMenu).Group, {
|
|
330
306
|
key: `group-${groupIndex}`,
|
|
331
307
|
"data-slot": "group",
|
|
332
|
-
class: __props.ui.group({ class:
|
|
308
|
+
class: __props.ui.group({ class: __props.uiOverride?.group })
|
|
333
309
|
}, {
|
|
334
310
|
default: withCtx((_3, _push4, _parent4, _scopeId3) => {
|
|
335
311
|
if (_push4) {
|
|
336
312
|
_push4(`<!--[-->`);
|
|
337
313
|
ssrRenderList(group, (item, index) => {
|
|
338
|
-
var _a4, _b3, _c2, _d2, _e2, _f2, _g;
|
|
339
314
|
_push4(`<!--[-->`);
|
|
340
315
|
if (item.type === "label") {
|
|
341
316
|
_push4(ssrRenderComponent(unref(ContextMenu).Label, {
|
|
342
317
|
"data-slot": "label",
|
|
343
|
-
class: __props.ui.label({ class: [
|
|
318
|
+
class: __props.ui.label({ class: [__props.uiOverride?.label, item.ui?.label, item.class] })
|
|
344
319
|
}, {
|
|
345
320
|
default: withCtx((_4, _push5, _parent5, _scopeId4) => {
|
|
346
321
|
if (_push5) {
|
|
@@ -362,15 +337,14 @@ const _sfc_main$2 = {
|
|
|
362
337
|
} else if (item.type === "separator") {
|
|
363
338
|
_push4(ssrRenderComponent(unref(ContextMenu).Separator, {
|
|
364
339
|
"data-slot": "separator",
|
|
365
|
-
class: __props.ui.separator({ class: [
|
|
340
|
+
class: __props.ui.separator({ class: [__props.uiOverride?.separator, item.ui?.separator, item.class] })
|
|
366
341
|
}, null, _parent4, _scopeId3));
|
|
367
|
-
} else if (
|
|
342
|
+
} else if (item?.children?.length) {
|
|
368
343
|
_push4(ssrRenderComponent(unref(ContextMenu).Sub, {
|
|
369
344
|
open: item.open,
|
|
370
345
|
"default-open": item.defaultOpen
|
|
371
346
|
}, {
|
|
372
347
|
default: withCtx((_4, _push5, _parent5, _scopeId4) => {
|
|
373
|
-
var _a5, _b4, _c3, _d3, _e3, _f3;
|
|
374
348
|
if (_push5) {
|
|
375
349
|
_push5(ssrRenderComponent(unref(ContextMenu).SubTrigger, {
|
|
376
350
|
as: "button",
|
|
@@ -378,7 +352,7 @@ const _sfc_main$2 = {
|
|
|
378
352
|
disabled: item.disabled,
|
|
379
353
|
"text-value": unref(get)(item, props.labelKey),
|
|
380
354
|
"data-slot": "item",
|
|
381
|
-
class: __props.ui.item({ class: [
|
|
355
|
+
class: __props.ui.item({ class: [__props.uiOverride?.item, item.ui?.item, item.class], color: item?.color })
|
|
382
356
|
}, {
|
|
383
357
|
default: withCtx((_5, _push6, _parent6, _scopeId5) => {
|
|
384
358
|
if (_push6) {
|
|
@@ -399,7 +373,7 @@ const _sfc_main$2 = {
|
|
|
399
373
|
}, _parent5, _scopeId4));
|
|
400
374
|
_push5(ssrRenderComponent(_sfc_main$2, mergeProps({
|
|
401
375
|
sub: "",
|
|
402
|
-
class:
|
|
376
|
+
class: item.ui?.content,
|
|
403
377
|
ui: __props.ui,
|
|
404
378
|
"ui-override": __props.uiOverride,
|
|
405
379
|
portal: __props.portal,
|
|
@@ -434,7 +408,7 @@ const _sfc_main$2 = {
|
|
|
434
408
|
disabled: item.disabled,
|
|
435
409
|
"text-value": unref(get)(item, props.labelKey),
|
|
436
410
|
"data-slot": "item",
|
|
437
|
-
class: __props.ui.item({ class: [
|
|
411
|
+
class: __props.ui.item({ class: [__props.uiOverride?.item, item.ui?.item, item.class], color: item?.color })
|
|
438
412
|
}, {
|
|
439
413
|
default: withCtx(() => [
|
|
440
414
|
createVNode(unref(ReuseItemTemplate), {
|
|
@@ -446,7 +420,7 @@ const _sfc_main$2 = {
|
|
|
446
420
|
}, 1032, ["disabled", "text-value", "class"]),
|
|
447
421
|
createVNode(_sfc_main$2, mergeProps({
|
|
448
422
|
sub: "",
|
|
449
|
-
class:
|
|
423
|
+
class: item.ui?.content,
|
|
450
424
|
ui: __props.ui,
|
|
451
425
|
"ui-override": __props.uiOverride,
|
|
452
426
|
portal: __props.portal,
|
|
@@ -478,7 +452,7 @@ const _sfc_main$2 = {
|
|
|
478
452
|
disabled: item.disabled,
|
|
479
453
|
"text-value": unref(get)(item, props.labelKey),
|
|
480
454
|
"data-slot": "item",
|
|
481
|
-
class: __props.ui.item({ class: [
|
|
455
|
+
class: __props.ui.item({ class: [__props.uiOverride?.item, item.ui?.item, item.class], color: item?.color }),
|
|
482
456
|
"onUpdate:modelValue": item.onUpdateChecked,
|
|
483
457
|
onSelect: item.onSelect
|
|
484
458
|
}, {
|
|
@@ -510,11 +484,10 @@ const _sfc_main$2 = {
|
|
|
510
484
|
if (_push5) {
|
|
511
485
|
_push5(ssrRenderComponent(_sfc_main$9, mergeProps({ ref_for: true }, unref(pickLinkProps)(item), { custom: "" }), {
|
|
512
486
|
default: withCtx(({ active, ...slotProps }, _push6, _parent6, _scopeId5) => {
|
|
513
|
-
var _a5, _b4, _c3, _d3;
|
|
514
487
|
if (_push6) {
|
|
515
488
|
_push6(ssrRenderComponent(_sfc_main$a, mergeProps({ ref_for: true }, slotProps, {
|
|
516
489
|
"data-slot": "item",
|
|
517
|
-
class: __props.ui.item({ class: [
|
|
490
|
+
class: __props.ui.item({ class: [__props.uiOverride?.item, item.ui?.item, item.class], active, color: item?.color })
|
|
518
491
|
}), {
|
|
519
492
|
default: withCtx((_5, _push7, _parent7, _scopeId6) => {
|
|
520
493
|
if (_push7) {
|
|
@@ -539,7 +512,7 @@ const _sfc_main$2 = {
|
|
|
539
512
|
return [
|
|
540
513
|
createVNode(_sfc_main$a, mergeProps({ ref_for: true }, slotProps, {
|
|
541
514
|
"data-slot": "item",
|
|
542
|
-
class: __props.ui.item({ class: [
|
|
515
|
+
class: __props.ui.item({ class: [__props.uiOverride?.item, item.ui?.item, item.class], active, color: item?.color })
|
|
543
516
|
}), {
|
|
544
517
|
default: withCtx(() => [
|
|
545
518
|
createVNode(unref(ReuseItemTemplate), {
|
|
@@ -558,24 +531,21 @@ const _sfc_main$2 = {
|
|
|
558
531
|
} else {
|
|
559
532
|
return [
|
|
560
533
|
createVNode(_sfc_main$9, mergeProps({ ref_for: true }, unref(pickLinkProps)(item), { custom: "" }), {
|
|
561
|
-
default: withCtx(({ active, ...slotProps }) =>
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
}, 1040, ["class"])
|
|
577
|
-
];
|
|
578
|
-
}),
|
|
534
|
+
default: withCtx(({ active, ...slotProps }) => [
|
|
535
|
+
createVNode(_sfc_main$a, mergeProps({ ref_for: true }, slotProps, {
|
|
536
|
+
"data-slot": "item",
|
|
537
|
+
class: __props.ui.item({ class: [__props.uiOverride?.item, item.ui?.item, item.class], active, color: item?.color })
|
|
538
|
+
}), {
|
|
539
|
+
default: withCtx(() => [
|
|
540
|
+
createVNode(unref(ReuseItemTemplate), {
|
|
541
|
+
item,
|
|
542
|
+
active,
|
|
543
|
+
index
|
|
544
|
+
}, null, 8, ["item", "active", "index"])
|
|
545
|
+
]),
|
|
546
|
+
_: 2
|
|
547
|
+
}, 1040, ["class"])
|
|
548
|
+
]),
|
|
579
549
|
_: 2
|
|
580
550
|
}, 1040)
|
|
581
551
|
];
|
|
@@ -590,14 +560,13 @@ const _sfc_main$2 = {
|
|
|
590
560
|
} else {
|
|
591
561
|
return [
|
|
592
562
|
(openBlock(true), createBlock(Fragment, null, renderList(group, (item, index) => {
|
|
593
|
-
var _a4, _b3, _c2, _d2, _e2, _f2, _g;
|
|
594
563
|
return openBlock(), createBlock(Fragment, {
|
|
595
564
|
key: `group-${groupIndex}-${index}`
|
|
596
565
|
}, [
|
|
597
566
|
item.type === "label" ? (openBlock(), createBlock(unref(ContextMenu).Label, {
|
|
598
567
|
key: 0,
|
|
599
568
|
"data-slot": "label",
|
|
600
|
-
class: __props.ui.label({ class: [
|
|
569
|
+
class: __props.ui.label({ class: [__props.uiOverride?.label, item.ui?.label, item.class] })
|
|
601
570
|
}, {
|
|
602
571
|
default: withCtx(() => [
|
|
603
572
|
createVNode(unref(ReuseItemTemplate), {
|
|
@@ -609,56 +578,53 @@ const _sfc_main$2 = {
|
|
|
609
578
|
}, 1032, ["class"])) : item.type === "separator" ? (openBlock(), createBlock(unref(ContextMenu).Separator, {
|
|
610
579
|
key: 1,
|
|
611
580
|
"data-slot": "separator",
|
|
612
|
-
class: __props.ui.separator({ class: [
|
|
613
|
-
}, null, 8, ["class"])) :
|
|
581
|
+
class: __props.ui.separator({ class: [__props.uiOverride?.separator, item.ui?.separator, item.class] })
|
|
582
|
+
}, null, 8, ["class"])) : item?.children?.length ? (openBlock(), createBlock(unref(ContextMenu).Sub, {
|
|
614
583
|
key: 2,
|
|
615
584
|
open: item.open,
|
|
616
585
|
"default-open": item.defaultOpen
|
|
617
586
|
}, {
|
|
618
|
-
default: withCtx(() =>
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
name,
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
]), 1040, ["class", "ui", "ui-override", "portal", "items", "label-key", "description-key", "checked-icon", "loading-icon", "external-icon"])
|
|
660
|
-
];
|
|
661
|
-
}),
|
|
587
|
+
default: withCtx(() => [
|
|
588
|
+
createVNode(unref(ContextMenu).SubTrigger, {
|
|
589
|
+
as: "button",
|
|
590
|
+
type: "button",
|
|
591
|
+
disabled: item.disabled,
|
|
592
|
+
"text-value": unref(get)(item, props.labelKey),
|
|
593
|
+
"data-slot": "item",
|
|
594
|
+
class: __props.ui.item({ class: [__props.uiOverride?.item, item.ui?.item, item.class], color: item?.color })
|
|
595
|
+
}, {
|
|
596
|
+
default: withCtx(() => [
|
|
597
|
+
createVNode(unref(ReuseItemTemplate), {
|
|
598
|
+
item,
|
|
599
|
+
index
|
|
600
|
+
}, null, 8, ["item", "index"])
|
|
601
|
+
]),
|
|
602
|
+
_: 2
|
|
603
|
+
}, 1032, ["disabled", "text-value", "class"]),
|
|
604
|
+
createVNode(_sfc_main$2, mergeProps({
|
|
605
|
+
sub: "",
|
|
606
|
+
class: item.ui?.content,
|
|
607
|
+
ui: __props.ui,
|
|
608
|
+
"ui-override": __props.uiOverride,
|
|
609
|
+
portal: __props.portal,
|
|
610
|
+
items: item.children,
|
|
611
|
+
"align-offset": -4,
|
|
612
|
+
"label-key": __props.labelKey,
|
|
613
|
+
"description-key": __props.descriptionKey,
|
|
614
|
+
"checked-icon": __props.checkedIcon,
|
|
615
|
+
"loading-icon": __props.loadingIcon,
|
|
616
|
+
"external-icon": __props.externalIcon
|
|
617
|
+
}, { ref_for: true }, item.content), createSlots({ _: 2 }, [
|
|
618
|
+
renderList(getProxySlots(), (_4, name) => {
|
|
619
|
+
return {
|
|
620
|
+
name,
|
|
621
|
+
fn: withCtx((slotData) => [
|
|
622
|
+
renderSlot(_ctx.$slots, name, mergeProps({ ref_for: true }, slotData))
|
|
623
|
+
])
|
|
624
|
+
};
|
|
625
|
+
})
|
|
626
|
+
]), 1040, ["class", "ui", "ui-override", "portal", "items", "label-key", "description-key", "checked-icon", "loading-icon", "external-icon"])
|
|
627
|
+
]),
|
|
662
628
|
_: 2
|
|
663
629
|
}, 1032, ["open", "default-open"])) : item.type === "checkbox" ? (openBlock(), createBlock(unref(ContextMenu).CheckboxItem, {
|
|
664
630
|
key: 3,
|
|
@@ -666,7 +632,7 @@ const _sfc_main$2 = {
|
|
|
666
632
|
disabled: item.disabled,
|
|
667
633
|
"text-value": unref(get)(item, props.labelKey),
|
|
668
634
|
"data-slot": "item",
|
|
669
|
-
class: __props.ui.item({ class: [
|
|
635
|
+
class: __props.ui.item({ class: [__props.uiOverride?.item, item.ui?.item, item.class], color: item?.color }),
|
|
670
636
|
"onUpdate:modelValue": item.onUpdateChecked,
|
|
671
637
|
onSelect: item.onSelect
|
|
672
638
|
}, {
|
|
@@ -686,24 +652,21 @@ const _sfc_main$2 = {
|
|
|
686
652
|
}, {
|
|
687
653
|
default: withCtx(() => [
|
|
688
654
|
createVNode(_sfc_main$9, mergeProps({ ref_for: true }, unref(pickLinkProps)(item), { custom: "" }), {
|
|
689
|
-
default: withCtx(({ active, ...slotProps }) =>
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
}, 1040, ["class"])
|
|
705
|
-
];
|
|
706
|
-
}),
|
|
655
|
+
default: withCtx(({ active, ...slotProps }) => [
|
|
656
|
+
createVNode(_sfc_main$a, mergeProps({ ref_for: true }, slotProps, {
|
|
657
|
+
"data-slot": "item",
|
|
658
|
+
class: __props.ui.item({ class: [__props.uiOverride?.item, item.ui?.item, item.class], active, color: item?.color })
|
|
659
|
+
}), {
|
|
660
|
+
default: withCtx(() => [
|
|
661
|
+
createVNode(unref(ReuseItemTemplate), {
|
|
662
|
+
item,
|
|
663
|
+
active,
|
|
664
|
+
index
|
|
665
|
+
}, null, 8, ["item", "active", "index"])
|
|
666
|
+
]),
|
|
667
|
+
_: 2
|
|
668
|
+
}, 1040, ["class"])
|
|
669
|
+
]),
|
|
707
670
|
_: 2
|
|
708
671
|
}, 1040)
|
|
709
672
|
]),
|
|
@@ -720,35 +683,33 @@ const _sfc_main$2 = {
|
|
|
720
683
|
_push3(`<!--]--></div>`);
|
|
721
684
|
ssrRenderSlot(_ctx.$slots, "default", {}, null, _push3, _parent3, _scopeId2);
|
|
722
685
|
ssrRenderSlot(_ctx.$slots, "content-bottom", {
|
|
723
|
-
sub:
|
|
686
|
+
sub: __props.sub ?? false
|
|
724
687
|
}, null, _push3, _parent3, _scopeId2);
|
|
725
688
|
} else {
|
|
726
689
|
return [
|
|
727
690
|
renderSlot(_ctx.$slots, "content-top", {
|
|
728
|
-
sub:
|
|
691
|
+
sub: __props.sub ?? false
|
|
729
692
|
}),
|
|
730
693
|
createVNode("div", {
|
|
731
694
|
role: "presentation",
|
|
732
695
|
"data-slot": "viewport",
|
|
733
|
-
class: __props.ui.viewport({ class:
|
|
696
|
+
class: __props.ui.viewport({ class: __props.uiOverride?.viewport })
|
|
734
697
|
}, [
|
|
735
698
|
(openBlock(true), createBlock(Fragment, null, renderList(groups.value, (group, groupIndex) => {
|
|
736
|
-
var _a3;
|
|
737
699
|
return openBlock(), createBlock(unref(ContextMenu).Group, {
|
|
738
700
|
key: `group-${groupIndex}`,
|
|
739
701
|
"data-slot": "group",
|
|
740
|
-
class: __props.ui.group({ class:
|
|
702
|
+
class: __props.ui.group({ class: __props.uiOverride?.group })
|
|
741
703
|
}, {
|
|
742
704
|
default: withCtx(() => [
|
|
743
705
|
(openBlock(true), createBlock(Fragment, null, renderList(group, (item, index) => {
|
|
744
|
-
var _a4, _b3, _c2, _d2, _e2, _f2, _g;
|
|
745
706
|
return openBlock(), createBlock(Fragment, {
|
|
746
707
|
key: `group-${groupIndex}-${index}`
|
|
747
708
|
}, [
|
|
748
709
|
item.type === "label" ? (openBlock(), createBlock(unref(ContextMenu).Label, {
|
|
749
710
|
key: 0,
|
|
750
711
|
"data-slot": "label",
|
|
751
|
-
class: __props.ui.label({ class: [
|
|
712
|
+
class: __props.ui.label({ class: [__props.uiOverride?.label, item.ui?.label, item.class] })
|
|
752
713
|
}, {
|
|
753
714
|
default: withCtx(() => [
|
|
754
715
|
createVNode(unref(ReuseItemTemplate), {
|
|
@@ -760,56 +721,53 @@ const _sfc_main$2 = {
|
|
|
760
721
|
}, 1032, ["class"])) : item.type === "separator" ? (openBlock(), createBlock(unref(ContextMenu).Separator, {
|
|
761
722
|
key: 1,
|
|
762
723
|
"data-slot": "separator",
|
|
763
|
-
class: __props.ui.separator({ class: [
|
|
764
|
-
}, null, 8, ["class"])) :
|
|
724
|
+
class: __props.ui.separator({ class: [__props.uiOverride?.separator, item.ui?.separator, item.class] })
|
|
725
|
+
}, null, 8, ["class"])) : item?.children?.length ? (openBlock(), createBlock(unref(ContextMenu).Sub, {
|
|
765
726
|
key: 2,
|
|
766
727
|
open: item.open,
|
|
767
728
|
"default-open": item.defaultOpen
|
|
768
729
|
}, {
|
|
769
|
-
default: withCtx(() =>
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
name,
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
]), 1040, ["class", "ui", "ui-override", "portal", "items", "label-key", "description-key", "checked-icon", "loading-icon", "external-icon"])
|
|
811
|
-
];
|
|
812
|
-
}),
|
|
730
|
+
default: withCtx(() => [
|
|
731
|
+
createVNode(unref(ContextMenu).SubTrigger, {
|
|
732
|
+
as: "button",
|
|
733
|
+
type: "button",
|
|
734
|
+
disabled: item.disabled,
|
|
735
|
+
"text-value": unref(get)(item, props.labelKey),
|
|
736
|
+
"data-slot": "item",
|
|
737
|
+
class: __props.ui.item({ class: [__props.uiOverride?.item, item.ui?.item, item.class], color: item?.color })
|
|
738
|
+
}, {
|
|
739
|
+
default: withCtx(() => [
|
|
740
|
+
createVNode(unref(ReuseItemTemplate), {
|
|
741
|
+
item,
|
|
742
|
+
index
|
|
743
|
+
}, null, 8, ["item", "index"])
|
|
744
|
+
]),
|
|
745
|
+
_: 2
|
|
746
|
+
}, 1032, ["disabled", "text-value", "class"]),
|
|
747
|
+
createVNode(_sfc_main$2, mergeProps({
|
|
748
|
+
sub: "",
|
|
749
|
+
class: item.ui?.content,
|
|
750
|
+
ui: __props.ui,
|
|
751
|
+
"ui-override": __props.uiOverride,
|
|
752
|
+
portal: __props.portal,
|
|
753
|
+
items: item.children,
|
|
754
|
+
"align-offset": -4,
|
|
755
|
+
"label-key": __props.labelKey,
|
|
756
|
+
"description-key": __props.descriptionKey,
|
|
757
|
+
"checked-icon": __props.checkedIcon,
|
|
758
|
+
"loading-icon": __props.loadingIcon,
|
|
759
|
+
"external-icon": __props.externalIcon
|
|
760
|
+
}, { ref_for: true }, item.content), createSlots({ _: 2 }, [
|
|
761
|
+
renderList(getProxySlots(), (_3, name) => {
|
|
762
|
+
return {
|
|
763
|
+
name,
|
|
764
|
+
fn: withCtx((slotData) => [
|
|
765
|
+
renderSlot(_ctx.$slots, name, mergeProps({ ref_for: true }, slotData))
|
|
766
|
+
])
|
|
767
|
+
};
|
|
768
|
+
})
|
|
769
|
+
]), 1040, ["class", "ui", "ui-override", "portal", "items", "label-key", "description-key", "checked-icon", "loading-icon", "external-icon"])
|
|
770
|
+
]),
|
|
813
771
|
_: 2
|
|
814
772
|
}, 1032, ["open", "default-open"])) : item.type === "checkbox" ? (openBlock(), createBlock(unref(ContextMenu).CheckboxItem, {
|
|
815
773
|
key: 3,
|
|
@@ -817,7 +775,7 @@ const _sfc_main$2 = {
|
|
|
817
775
|
disabled: item.disabled,
|
|
818
776
|
"text-value": unref(get)(item, props.labelKey),
|
|
819
777
|
"data-slot": "item",
|
|
820
|
-
class: __props.ui.item({ class: [
|
|
778
|
+
class: __props.ui.item({ class: [__props.uiOverride?.item, item.ui?.item, item.class], color: item?.color }),
|
|
821
779
|
"onUpdate:modelValue": item.onUpdateChecked,
|
|
822
780
|
onSelect: item.onSelect
|
|
823
781
|
}, {
|
|
@@ -837,24 +795,21 @@ const _sfc_main$2 = {
|
|
|
837
795
|
}, {
|
|
838
796
|
default: withCtx(() => [
|
|
839
797
|
createVNode(_sfc_main$9, mergeProps({ ref_for: true }, unref(pickLinkProps)(item), { custom: "" }), {
|
|
840
|
-
default: withCtx(({ active, ...slotProps }) =>
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
}, 1040, ["class"])
|
|
856
|
-
];
|
|
857
|
-
}),
|
|
798
|
+
default: withCtx(({ active, ...slotProps }) => [
|
|
799
|
+
createVNode(_sfc_main$a, mergeProps({ ref_for: true }, slotProps, {
|
|
800
|
+
"data-slot": "item",
|
|
801
|
+
class: __props.ui.item({ class: [__props.uiOverride?.item, item.ui?.item, item.class], active, color: item?.color })
|
|
802
|
+
}), {
|
|
803
|
+
default: withCtx(() => [
|
|
804
|
+
createVNode(unref(ReuseItemTemplate), {
|
|
805
|
+
item,
|
|
806
|
+
active,
|
|
807
|
+
index
|
|
808
|
+
}, null, 8, ["item", "active", "index"])
|
|
809
|
+
]),
|
|
810
|
+
_: 2
|
|
811
|
+
}, 1040, ["class"])
|
|
812
|
+
]),
|
|
858
813
|
_: 2
|
|
859
814
|
}, 1040)
|
|
860
815
|
]),
|
|
@@ -869,7 +824,7 @@ const _sfc_main$2 = {
|
|
|
869
824
|
], 2),
|
|
870
825
|
renderSlot(_ctx.$slots, "default"),
|
|
871
826
|
renderSlot(_ctx.$slots, "content-bottom", {
|
|
872
|
-
sub:
|
|
827
|
+
sub: __props.sub ?? false
|
|
873
828
|
})
|
|
874
829
|
];
|
|
875
830
|
}
|
|
@@ -880,160 +835,149 @@ const _sfc_main$2 = {
|
|
|
880
835
|
return [
|
|
881
836
|
(openBlock(), createBlock(resolveDynamicComponent(__props.sub ? unref(ContextMenu).SubContent : unref(ContextMenu).Content), mergeProps({
|
|
882
837
|
"data-slot": "content",
|
|
883
|
-
class: __props.ui.content({ class: [
|
|
838
|
+
class: __props.ui.content({ class: [__props.uiOverride?.content, props.class] })
|
|
884
839
|
}, unref(contentProps)), {
|
|
885
|
-
default: withCtx(() =>
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
840
|
+
default: withCtx(() => [
|
|
841
|
+
renderSlot(_ctx.$slots, "content-top", {
|
|
842
|
+
sub: __props.sub ?? false
|
|
843
|
+
}),
|
|
844
|
+
createVNode("div", {
|
|
845
|
+
role: "presentation",
|
|
846
|
+
"data-slot": "viewport",
|
|
847
|
+
class: __props.ui.viewport({ class: __props.uiOverride?.viewport })
|
|
848
|
+
}, [
|
|
849
|
+
(openBlock(true), createBlock(Fragment, null, renderList(groups.value, (group, groupIndex) => {
|
|
850
|
+
return openBlock(), createBlock(unref(ContextMenu).Group, {
|
|
851
|
+
key: `group-${groupIndex}`,
|
|
852
|
+
"data-slot": "group",
|
|
853
|
+
class: __props.ui.group({ class: __props.uiOverride?.group })
|
|
854
|
+
}, {
|
|
855
|
+
default: withCtx(() => [
|
|
856
|
+
(openBlock(true), createBlock(Fragment, null, renderList(group, (item, index) => {
|
|
857
|
+
return openBlock(), createBlock(Fragment, {
|
|
858
|
+
key: `group-${groupIndex}-${index}`
|
|
859
|
+
}, [
|
|
860
|
+
item.type === "label" ? (openBlock(), createBlock(unref(ContextMenu).Label, {
|
|
861
|
+
key: 0,
|
|
862
|
+
"data-slot": "label",
|
|
863
|
+
class: __props.ui.label({ class: [__props.uiOverride?.label, item.ui?.label, item.class] })
|
|
864
|
+
}, {
|
|
865
|
+
default: withCtx(() => [
|
|
866
|
+
createVNode(unref(ReuseItemTemplate), {
|
|
867
|
+
item,
|
|
868
|
+
index
|
|
869
|
+
}, null, 8, ["item", "index"])
|
|
870
|
+
]),
|
|
871
|
+
_: 2
|
|
872
|
+
}, 1032, ["class"])) : item.type === "separator" ? (openBlock(), createBlock(unref(ContextMenu).Separator, {
|
|
873
|
+
key: 1,
|
|
874
|
+
"data-slot": "separator",
|
|
875
|
+
class: __props.ui.separator({ class: [__props.uiOverride?.separator, item.ui?.separator, item.class] })
|
|
876
|
+
}, null, 8, ["class"])) : item?.children?.length ? (openBlock(), createBlock(unref(ContextMenu).Sub, {
|
|
877
|
+
key: 2,
|
|
878
|
+
open: item.open,
|
|
879
|
+
"default-open": item.defaultOpen
|
|
880
|
+
}, {
|
|
881
|
+
default: withCtx(() => [
|
|
882
|
+
createVNode(unref(ContextMenu).SubTrigger, {
|
|
883
|
+
as: "button",
|
|
884
|
+
type: "button",
|
|
885
|
+
disabled: item.disabled,
|
|
886
|
+
"text-value": unref(get)(item, props.labelKey),
|
|
887
|
+
"data-slot": "item",
|
|
888
|
+
class: __props.ui.item({ class: [__props.uiOverride?.item, item.ui?.item, item.class], color: item?.color })
|
|
889
|
+
}, {
|
|
890
|
+
default: withCtx(() => [
|
|
891
|
+
createVNode(unref(ReuseItemTemplate), {
|
|
892
|
+
item,
|
|
893
|
+
index
|
|
894
|
+
}, null, 8, ["item", "index"])
|
|
895
|
+
]),
|
|
896
|
+
_: 2
|
|
897
|
+
}, 1032, ["disabled", "text-value", "class"]),
|
|
898
|
+
createVNode(_sfc_main$2, mergeProps({
|
|
899
|
+
sub: "",
|
|
900
|
+
class: item.ui?.content,
|
|
901
|
+
ui: __props.ui,
|
|
902
|
+
"ui-override": __props.uiOverride,
|
|
903
|
+
portal: __props.portal,
|
|
904
|
+
items: item.children,
|
|
905
|
+
"align-offset": -4,
|
|
906
|
+
"label-key": __props.labelKey,
|
|
907
|
+
"description-key": __props.descriptionKey,
|
|
908
|
+
"checked-icon": __props.checkedIcon,
|
|
909
|
+
"loading-icon": __props.loadingIcon,
|
|
910
|
+
"external-icon": __props.externalIcon
|
|
911
|
+
}, { ref_for: true }, item.content), createSlots({ _: 2 }, [
|
|
912
|
+
renderList(getProxySlots(), (_2, name) => {
|
|
913
|
+
return {
|
|
914
|
+
name,
|
|
915
|
+
fn: withCtx((slotData) => [
|
|
916
|
+
renderSlot(_ctx.$slots, name, mergeProps({ ref_for: true }, slotData))
|
|
917
|
+
])
|
|
918
|
+
};
|
|
919
|
+
})
|
|
920
|
+
]), 1040, ["class", "ui", "ui-override", "portal", "items", "label-key", "description-key", "checked-icon", "loading-icon", "external-icon"])
|
|
921
|
+
]),
|
|
922
|
+
_: 2
|
|
923
|
+
}, 1032, ["open", "default-open"])) : item.type === "checkbox" ? (openBlock(), createBlock(unref(ContextMenu).CheckboxItem, {
|
|
924
|
+
key: 3,
|
|
925
|
+
"model-value": item.checked,
|
|
926
|
+
disabled: item.disabled,
|
|
927
|
+
"text-value": unref(get)(item, props.labelKey),
|
|
928
|
+
"data-slot": "item",
|
|
929
|
+
class: __props.ui.item({ class: [__props.uiOverride?.item, item.ui?.item, item.class], color: item?.color }),
|
|
930
|
+
"onUpdate:modelValue": item.onUpdateChecked,
|
|
931
|
+
onSelect: item.onSelect
|
|
932
|
+
}, {
|
|
933
|
+
default: withCtx(() => [
|
|
934
|
+
createVNode(unref(ReuseItemTemplate), {
|
|
935
|
+
item,
|
|
936
|
+
index
|
|
937
|
+
}, null, 8, ["item", "index"])
|
|
938
|
+
]),
|
|
939
|
+
_: 2
|
|
940
|
+
}, 1032, ["model-value", "disabled", "text-value", "class", "onUpdate:modelValue", "onSelect"])) : (openBlock(), createBlock(unref(ContextMenu).Item, {
|
|
941
|
+
key: 4,
|
|
942
|
+
"as-child": "",
|
|
943
|
+
disabled: item.disabled,
|
|
944
|
+
"text-value": unref(get)(item, props.labelKey),
|
|
945
|
+
onSelect: item.onSelect
|
|
946
|
+
}, {
|
|
947
|
+
default: withCtx(() => [
|
|
948
|
+
createVNode(_sfc_main$9, mergeProps({ ref_for: true }, unref(pickLinkProps)(item), { custom: "" }), {
|
|
949
|
+
default: withCtx(({ active, ...slotProps }) => [
|
|
950
|
+
createVNode(_sfc_main$a, mergeProps({ ref_for: true }, slotProps, {
|
|
938
951
|
"data-slot": "item",
|
|
939
|
-
class: __props.ui.item({ class: [
|
|
940
|
-
}, {
|
|
952
|
+
class: __props.ui.item({ class: [__props.uiOverride?.item, item.ui?.item, item.class], active, color: item?.color })
|
|
953
|
+
}), {
|
|
941
954
|
default: withCtx(() => [
|
|
942
955
|
createVNode(unref(ReuseItemTemplate), {
|
|
943
956
|
item,
|
|
957
|
+
active,
|
|
944
958
|
index
|
|
945
|
-
}, null, 8, ["item", "index"])
|
|
959
|
+
}, null, 8, ["item", "active", "index"])
|
|
946
960
|
]),
|
|
947
961
|
_: 2
|
|
948
|
-
},
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
renderSlot(_ctx.$slots, name, mergeProps({ ref_for: true }, slotData))
|
|
968
|
-
])
|
|
969
|
-
};
|
|
970
|
-
})
|
|
971
|
-
]), 1040, ["class", "ui", "ui-override", "portal", "items", "label-key", "description-key", "checked-icon", "loading-icon", "external-icon"])
|
|
972
|
-
];
|
|
973
|
-
}),
|
|
974
|
-
_: 2
|
|
975
|
-
}, 1032, ["open", "default-open"])) : item.type === "checkbox" ? (openBlock(), createBlock(unref(ContextMenu).CheckboxItem, {
|
|
976
|
-
key: 3,
|
|
977
|
-
"model-value": item.checked,
|
|
978
|
-
disabled: item.disabled,
|
|
979
|
-
"text-value": unref(get)(item, props.labelKey),
|
|
980
|
-
"data-slot": "item",
|
|
981
|
-
class: __props.ui.item({ class: [(_f = __props.uiOverride) == null ? void 0 : _f.item, (_g = item.ui) == null ? void 0 : _g.item, item.class], color: item == null ? void 0 : item.color }),
|
|
982
|
-
"onUpdate:modelValue": item.onUpdateChecked,
|
|
983
|
-
onSelect: item.onSelect
|
|
984
|
-
}, {
|
|
985
|
-
default: withCtx(() => [
|
|
986
|
-
createVNode(unref(ReuseItemTemplate), {
|
|
987
|
-
item,
|
|
988
|
-
index
|
|
989
|
-
}, null, 8, ["item", "index"])
|
|
990
|
-
]),
|
|
991
|
-
_: 2
|
|
992
|
-
}, 1032, ["model-value", "disabled", "text-value", "class", "onUpdate:modelValue", "onSelect"])) : (openBlock(), createBlock(unref(ContextMenu).Item, {
|
|
993
|
-
key: 4,
|
|
994
|
-
"as-child": "",
|
|
995
|
-
disabled: item.disabled,
|
|
996
|
-
"text-value": unref(get)(item, props.labelKey),
|
|
997
|
-
onSelect: item.onSelect
|
|
998
|
-
}, {
|
|
999
|
-
default: withCtx(() => [
|
|
1000
|
-
createVNode(_sfc_main$9, mergeProps({ ref_for: true }, unref(pickLinkProps)(item), { custom: "" }), {
|
|
1001
|
-
default: withCtx(({ active, ...slotProps }) => {
|
|
1002
|
-
var _a5, _b4;
|
|
1003
|
-
return [
|
|
1004
|
-
createVNode(_sfc_main$a, mergeProps({ ref_for: true }, slotProps, {
|
|
1005
|
-
"data-slot": "item",
|
|
1006
|
-
class: __props.ui.item({ class: [(_a5 = __props.uiOverride) == null ? void 0 : _a5.item, (_b4 = item.ui) == null ? void 0 : _b4.item, item.class], active, color: item == null ? void 0 : item.color })
|
|
1007
|
-
}), {
|
|
1008
|
-
default: withCtx(() => [
|
|
1009
|
-
createVNode(unref(ReuseItemTemplate), {
|
|
1010
|
-
item,
|
|
1011
|
-
active,
|
|
1012
|
-
index
|
|
1013
|
-
}, null, 8, ["item", "active", "index"])
|
|
1014
|
-
]),
|
|
1015
|
-
_: 2
|
|
1016
|
-
}, 1040, ["class"])
|
|
1017
|
-
];
|
|
1018
|
-
}),
|
|
1019
|
-
_: 2
|
|
1020
|
-
}, 1040)
|
|
1021
|
-
]),
|
|
1022
|
-
_: 2
|
|
1023
|
-
}, 1032, ["disabled", "text-value", "onSelect"]))
|
|
1024
|
-
], 64);
|
|
1025
|
-
}), 128))
|
|
1026
|
-
]),
|
|
1027
|
-
_: 2
|
|
1028
|
-
}, 1032, ["class"]);
|
|
1029
|
-
}), 128))
|
|
1030
|
-
], 2),
|
|
1031
|
-
renderSlot(_ctx.$slots, "default"),
|
|
1032
|
-
renderSlot(_ctx.$slots, "content-bottom", {
|
|
1033
|
-
sub: (_c = __props.sub) != null ? _c : false
|
|
1034
|
-
})
|
|
1035
|
-
];
|
|
1036
|
-
}),
|
|
962
|
+
}, 1040, ["class"])
|
|
963
|
+
]),
|
|
964
|
+
_: 2
|
|
965
|
+
}, 1040)
|
|
966
|
+
]),
|
|
967
|
+
_: 2
|
|
968
|
+
}, 1032, ["disabled", "text-value", "onSelect"]))
|
|
969
|
+
], 64);
|
|
970
|
+
}), 128))
|
|
971
|
+
]),
|
|
972
|
+
_: 2
|
|
973
|
+
}, 1032, ["class"]);
|
|
974
|
+
}), 128))
|
|
975
|
+
], 2),
|
|
976
|
+
renderSlot(_ctx.$slots, "default"),
|
|
977
|
+
renderSlot(_ctx.$slots, "content-bottom", {
|
|
978
|
+
sub: __props.sub ?? false
|
|
979
|
+
})
|
|
980
|
+
]),
|
|
1037
981
|
_: 3
|
|
1038
982
|
}, 16, ["class"]))
|
|
1039
983
|
];
|
|
@@ -1280,16 +1224,12 @@ const _sfc_main$1 = {
|
|
|
1280
1224
|
const rootProps = useForwardPropsEmits(reactivePick(props, "modal"), emits);
|
|
1281
1225
|
const contentProps = toRef(() => props.content);
|
|
1282
1226
|
const getProxySlots = () => omit(slots, ["default"]);
|
|
1283
|
-
const ui = computed(() => {
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
size: props.size
|
|
1287
|
-
});
|
|
1288
|
-
});
|
|
1227
|
+
const ui = computed(() => tv({ extend: tv(theme$1), ...appConfig.ui?.contextMenu || {} })({
|
|
1228
|
+
size: props.size
|
|
1229
|
+
}));
|
|
1289
1230
|
return (_ctx, _push, _parent, _attrs) => {
|
|
1290
1231
|
_push(ssrRenderComponent(unref(ContextMenuRoot), mergeProps(unref(rootProps), _attrs), {
|
|
1291
1232
|
default: withCtx((_, _push2, _parent2, _scopeId) => {
|
|
1292
|
-
var _a, _b;
|
|
1293
1233
|
if (_push2) {
|
|
1294
1234
|
if (!!slots.default) {
|
|
1295
1235
|
_push2(ssrRenderComponent(unref(ContextMenuTrigger), {
|
|
@@ -1312,7 +1252,7 @@ const _sfc_main$1 = {
|
|
|
1312
1252
|
_push2(`<!---->`);
|
|
1313
1253
|
}
|
|
1314
1254
|
_push2(ssrRenderComponent(_sfc_main$2, mergeProps({
|
|
1315
|
-
class: ui.value.content({ class: [!slots.default && props.class,
|
|
1255
|
+
class: ui.value.content({ class: [!slots.default && props.class, props.ui?.content] }),
|
|
1316
1256
|
ui: ui.value,
|
|
1317
1257
|
"ui-override": props.ui
|
|
1318
1258
|
}, contentProps.value, {
|
|
@@ -1353,7 +1293,7 @@ const _sfc_main$1 = {
|
|
|
1353
1293
|
_: 3
|
|
1354
1294
|
}, 8, ["disabled", "class"])) : createCommentVNode("", true),
|
|
1355
1295
|
createVNode(_sfc_main$2, mergeProps({
|
|
1356
|
-
class: ui.value.content({ class: [!slots.default && props.class,
|
|
1296
|
+
class: ui.value.content({ class: [!slots.default && props.class, props.ui?.content] }),
|
|
1357
1297
|
ui: ui.value,
|
|
1358
1298
|
"ui-override": props.ui
|
|
1359
1299
|
}, contentProps.value, {
|
|
@@ -1575,8 +1515,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
|
1575
1515
|
const appConfig = useAppConfig();
|
|
1576
1516
|
const rootProps = useForwardPropsEmits(reactivePick(props, "items", "multiple", "expanded", "disabled", "propagateSelect", "bubbleSelect"), emits);
|
|
1577
1517
|
const as = computed(() => {
|
|
1578
|
-
|
|
1579
|
-
if (typeof props.as === "string" || typeof ((_a = props.as) == null ? void 0 : _a.render) === "function") {
|
|
1518
|
+
if (typeof props.as === "string" || typeof props.as?.render === "function") {
|
|
1580
1519
|
return { root: props.as, link: "button" };
|
|
1581
1520
|
}
|
|
1582
1521
|
return defu(props.as, { root: "ul", link: "button" });
|
|
@@ -1621,14 +1560,11 @@ const _sfc_main = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
|
1621
1560
|
}
|
|
1622
1561
|
}
|
|
1623
1562
|
});
|
|
1624
|
-
const ui = computed(() => {
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
virtualize: !!props.virtualize
|
|
1630
|
-
});
|
|
1631
|
-
});
|
|
1563
|
+
const ui = computed(() => tv({ extend: tv(theme), ...appConfig.ui?.tree || {} })({
|
|
1564
|
+
color: props.color,
|
|
1565
|
+
size: props.size,
|
|
1566
|
+
virtualize: !!props.virtualize
|
|
1567
|
+
}));
|
|
1632
1568
|
const rootRef = useTemplateRef("rootRef");
|
|
1633
1569
|
function getItemLabel(item) {
|
|
1634
1570
|
return get(item, props.labelKey);
|
|
@@ -1637,78 +1573,61 @@ const _sfc_main = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
|
1637
1573
|
return props.getKey ? props.getKey(item) || getItemLabel(item) : getItemLabel(item);
|
|
1638
1574
|
}
|
|
1639
1575
|
function getDefaultOpenedItems(item) {
|
|
1640
|
-
var _a, _b;
|
|
1641
1576
|
const currentItem = item.defaultExpanded ? getItemKey(item) : null;
|
|
1642
|
-
const childItems =
|
|
1577
|
+
const childItems = item.children?.flatMap((child) => getDefaultOpenedItems(child)) ?? [];
|
|
1643
1578
|
return [currentItem, ...childItems].filter(Boolean);
|
|
1644
1579
|
}
|
|
1645
|
-
const defaultExpanded = computed(() =>
|
|
1646
|
-
var _a, _b;
|
|
1647
|
-
return (_b = props.defaultExpanded) != null ? _b : (_a = props.items) == null ? void 0 : _a.flatMap((item) => getDefaultOpenedItems(item));
|
|
1648
|
-
});
|
|
1580
|
+
const defaultExpanded = computed(() => props.defaultExpanded ?? props.items?.flatMap((item) => getDefaultOpenedItems(item)));
|
|
1649
1581
|
__expose({
|
|
1650
1582
|
get $el() {
|
|
1651
|
-
|
|
1652
|
-
return (_a = rootRef.value) == null ? void 0 : _a.$el;
|
|
1583
|
+
return rootRef.value?.$el;
|
|
1653
1584
|
}
|
|
1654
1585
|
});
|
|
1655
1586
|
return (_ctx, _push, _parent, _attrs) => {
|
|
1656
|
-
var _a;
|
|
1657
1587
|
_push(`<!--[-->`);
|
|
1658
1588
|
_push(ssrRenderComponent(unref(DefineItemTemplate), null, {
|
|
1659
1589
|
default: withCtx(({ item, index, level }, _push2, _parent2, _scopeId) => {
|
|
1660
|
-
var _a2, _b, _c, _d, _e, _f, _g, _h;
|
|
1661
1590
|
if (_push2) {
|
|
1662
|
-
_push2(`<li role="presentation" class="${ssrRenderClass(!!nested.value && level > 1 ? ui.value.itemWithChildren({ class: [
|
|
1591
|
+
_push2(`<li role="presentation" class="${ssrRenderClass(!!nested.value && level > 1 ? ui.value.itemWithChildren({ class: [props.ui?.itemWithChildren, item.ui?.itemWithChildren] }) : ui.value.item({ class: [props.ui?.item, item.ui?.item] }))}"${_scopeId}>`);
|
|
1663
1592
|
_push2(ssrRenderComponent(unref(TreeItem), {
|
|
1664
1593
|
level,
|
|
1665
1594
|
value: item,
|
|
1666
1595
|
"as-child": "",
|
|
1667
|
-
onToggle: ($event) =>
|
|
1668
|
-
|
|
1669
|
-
return (_b2 = (_a3 = item.onToggle) != null ? _a3 : props.onToggle) == null ? void 0 : _b2($event, item);
|
|
1670
|
-
},
|
|
1671
|
-
onSelect: ($event) => {
|
|
1672
|
-
var _a3, _b2;
|
|
1673
|
-
return (_b2 = (_a3 = item.onSelect) != null ? _a3 : props.onSelect) == null ? void 0 : _b2($event, item);
|
|
1674
|
-
}
|
|
1596
|
+
onToggle: ($event) => (item.onToggle ?? props.onToggle)?.($event, item),
|
|
1597
|
+
onSelect: ($event) => (item.onSelect ?? props.onSelect)?.($event, item)
|
|
1675
1598
|
}, {
|
|
1676
1599
|
default: withCtx(({ isExpanded, isSelected, isIndeterminate, handleSelect, handleToggle }, _push3, _parent3, _scopeId2) => {
|
|
1677
|
-
var _a3, _b2, _c2, _d2, _e2, _f2;
|
|
1678
1600
|
if (_push3) {
|
|
1679
1601
|
ssrRenderSlot(_ctx.$slots, item.slot ? `${item.slot}-wrapper` : "item-wrapper", mergeProps({ index, level, expanded: isExpanded, selected: isSelected, indeterminate: isIndeterminate, handleSelect, handleToggle, ui: ui.value }, { item }), () => {
|
|
1680
|
-
var _a4, _b3;
|
|
1681
1602
|
ssrRenderVNode(_push3, createVNode(resolveDynamicComponent(as.value.link), {
|
|
1682
1603
|
type: as.value.link === "button" ? "button" : void 0,
|
|
1683
1604
|
disabled: item.disabled || __props.disabled,
|
|
1684
1605
|
"data-slot": "link",
|
|
1685
|
-
class: ui.value.link({ class: [
|
|
1606
|
+
class: ui.value.link({ class: [props.ui?.link, item.ui?.link, item.class], selected: isSelected, disabled: item.disabled || __props.disabled }),
|
|
1686
1607
|
style: !nested.value && level > 1 ? { paddingLeft: flattenedPaddingFormula.value(level) } : void 0
|
|
1687
1608
|
}, {
|
|
1688
1609
|
default: withCtx((_, _push4, _parent4, _scopeId3) => {
|
|
1689
1610
|
if (_push4) {
|
|
1690
1611
|
ssrRenderSlot(_ctx.$slots, item.slot || "item", mergeProps({ index, level, expanded: isExpanded, selected: isSelected, indeterminate: isIndeterminate, handleSelect, handleToggle, ui: ui.value }, { item }), () => {
|
|
1691
|
-
var _a5, _b4, _c3, _d3, _e3;
|
|
1692
1612
|
ssrRenderSlot(_ctx.$slots, item.slot ? `${item.slot}-leading` : "item-leading", mergeProps({ index, level, expanded: isExpanded, selected: isSelected, indeterminate: isIndeterminate, handleSelect, handleToggle, ui: ui.value }, { item }), () => {
|
|
1693
|
-
var _a6, _b5, _c4, _d4, _e4, _f3, _g2;
|
|
1694
1613
|
if (item.icon) {
|
|
1695
1614
|
_push4(ssrRenderComponent(_sfc_main$d, {
|
|
1696
1615
|
name: item.icon,
|
|
1697
1616
|
"data-slot": "linkLeadingIcon",
|
|
1698
|
-
class: ui.value.linkLeadingIcon({ class: [
|
|
1617
|
+
class: ui.value.linkLeadingIcon({ class: [props.ui?.linkLeadingIcon, item.ui?.linkLeadingIcon] })
|
|
1699
1618
|
}, null, _parent4, _scopeId3));
|
|
1700
|
-
} else if (
|
|
1619
|
+
} else if (item.children?.length) {
|
|
1701
1620
|
_push4(ssrRenderComponent(_sfc_main$d, {
|
|
1702
|
-
name: isExpanded ?
|
|
1621
|
+
name: isExpanded ? __props.expandedIcon ?? unref(appConfig).ui.icons.folderOpen : __props.collapsedIcon ?? unref(appConfig).ui.icons.folder,
|
|
1703
1622
|
"data-slot": "linkLeadingIcon",
|
|
1704
|
-
class: ui.value.linkLeadingIcon({ class: [
|
|
1623
|
+
class: ui.value.linkLeadingIcon({ class: [props.ui?.linkLeadingIcon, item.ui?.linkLeadingIcon] })
|
|
1705
1624
|
}, null, _parent4, _scopeId3));
|
|
1706
1625
|
} else {
|
|
1707
1626
|
_push4(`<!---->`);
|
|
1708
1627
|
}
|
|
1709
1628
|
}, _push4, _parent4, _scopeId3);
|
|
1710
1629
|
if (getItemLabel(item) || !!slots[item.slot ? `${item.slot}-label` : "item-label"]) {
|
|
1711
|
-
_push4(`<span data-slot="linkLabel" class="${ssrRenderClass(ui.value.linkLabel({ class: [
|
|
1630
|
+
_push4(`<span data-slot="linkLabel" class="${ssrRenderClass(ui.value.linkLabel({ class: [props.ui?.linkLabel, item.ui?.linkLabel] }))}"${_scopeId3}>`);
|
|
1712
1631
|
ssrRenderSlot(_ctx.$slots, item.slot ? `${item.slot}-label` : "item-label", mergeProps({ index, level, expanded: isExpanded, selected: isSelected, indeterminate: isIndeterminate, handleSelect, handleToggle, ui: ui.value }, { item }), () => {
|
|
1713
1632
|
_push4(`${ssrInterpolate(getItemLabel(item))}`);
|
|
1714
1633
|
}, _push4, _parent4, _scopeId3);
|
|
@@ -1716,21 +1635,20 @@ const _sfc_main = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
|
1716
1635
|
} else {
|
|
1717
1636
|
_push4(`<!---->`);
|
|
1718
1637
|
}
|
|
1719
|
-
if (item.trailingIcon ||
|
|
1720
|
-
_push4(`<span data-slot="linkTrailing" class="${ssrRenderClass(ui.value.linkTrailing({ class: [
|
|
1638
|
+
if (item.trailingIcon || item.children?.length || !!slots[item.slot ? `${item.slot}-trailing` : "item-trailing"]) {
|
|
1639
|
+
_push4(`<span data-slot="linkTrailing" class="${ssrRenderClass(ui.value.linkTrailing({ class: [props.ui?.linkTrailing, item.ui?.linkTrailing] }))}"${_scopeId3}>`);
|
|
1721
1640
|
ssrRenderSlot(_ctx.$slots, item.slot ? `${item.slot}-trailing` : "item-trailing", mergeProps({ index, level, expanded: isExpanded, selected: isSelected, indeterminate: isIndeterminate, handleSelect, handleToggle, ui: ui.value }, { item }), () => {
|
|
1722
|
-
var _a6, _b5, _c4, _d4, _e4, _f3;
|
|
1723
1641
|
if (item.trailingIcon) {
|
|
1724
1642
|
_push4(ssrRenderComponent(_sfc_main$d, {
|
|
1725
1643
|
name: item.trailingIcon,
|
|
1726
1644
|
"data-slot": "linkTrailingIcon",
|
|
1727
|
-
class: ui.value.linkTrailingIcon({ class: [
|
|
1645
|
+
class: ui.value.linkTrailingIcon({ class: [props.ui?.linkTrailingIcon, item.ui?.linkTrailingIcon] })
|
|
1728
1646
|
}, null, _parent4, _scopeId3));
|
|
1729
|
-
} else if (
|
|
1647
|
+
} else if (item.children?.length) {
|
|
1730
1648
|
_push4(ssrRenderComponent(_sfc_main$d, {
|
|
1731
|
-
name:
|
|
1649
|
+
name: __props.trailingIcon ?? unref(appConfig).ui.icons.chevronDown,
|
|
1732
1650
|
"data-slot": "linkTrailingIcon",
|
|
1733
|
-
class: ui.value.linkTrailingIcon({ class: [
|
|
1651
|
+
class: ui.value.linkTrailingIcon({ class: [props.ui?.linkTrailingIcon, item.ui?.linkTrailingIcon] })
|
|
1734
1652
|
}, null, _parent4, _scopeId3));
|
|
1735
1653
|
} else {
|
|
1736
1654
|
_push4(`<!---->`);
|
|
@@ -1743,66 +1661,57 @@ const _sfc_main = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
|
1743
1661
|
}, _push4, _parent4, _scopeId3);
|
|
1744
1662
|
} else {
|
|
1745
1663
|
return [
|
|
1746
|
-
renderSlot(_ctx.$slots, item.slot || "item", mergeProps({ index, level, expanded: isExpanded, selected: isSelected, indeterminate: isIndeterminate, handleSelect, handleToggle, ui: ui.value }, { item }), () =>
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
renderSlot(_ctx.$slots, item.slot ? `${item.slot}-leading` : "item-leading", mergeProps({ index, level, expanded: isExpanded, selected: isSelected, indeterminate: isIndeterminate, handleSelect, handleToggle, ui: ui.value }, { item }), () => {
|
|
1750
|
-
var _a6, _b5, _c4, _d4, _e4, _f3, _g2;
|
|
1751
|
-
return [
|
|
1752
|
-
item.icon ? (openBlock(), createBlock(_sfc_main$d, {
|
|
1753
|
-
key: 0,
|
|
1754
|
-
name: item.icon,
|
|
1755
|
-
"data-slot": "linkLeadingIcon",
|
|
1756
|
-
class: ui.value.linkLeadingIcon({ class: [(_a6 = props.ui) == null ? void 0 : _a6.linkLeadingIcon, (_b5 = item.ui) == null ? void 0 : _b5.linkLeadingIcon] })
|
|
1757
|
-
}, null, 8, ["name", "class"])) : ((_c4 = item.children) == null ? void 0 : _c4.length) ? (openBlock(), createBlock(_sfc_main$d, {
|
|
1758
|
-
key: 1,
|
|
1759
|
-
name: isExpanded ? (_d4 = __props.expandedIcon) != null ? _d4 : unref(appConfig).ui.icons.folderOpen : (_e4 = __props.collapsedIcon) != null ? _e4 : unref(appConfig).ui.icons.folder,
|
|
1760
|
-
"data-slot": "linkLeadingIcon",
|
|
1761
|
-
class: ui.value.linkLeadingIcon({ class: [(_f3 = props.ui) == null ? void 0 : _f3.linkLeadingIcon, (_g2 = item.ui) == null ? void 0 : _g2.linkLeadingIcon] })
|
|
1762
|
-
}, null, 8, ["name", "class"])) : createCommentVNode("", true)
|
|
1763
|
-
];
|
|
1764
|
-
}),
|
|
1765
|
-
getItemLabel(item) || !!slots[item.slot ? `${item.slot}-label` : "item-label"] ? (openBlock(), createBlock("span", {
|
|
1664
|
+
renderSlot(_ctx.$slots, item.slot || "item", mergeProps({ index, level, expanded: isExpanded, selected: isSelected, indeterminate: isIndeterminate, handleSelect, handleToggle, ui: ui.value }, { item }), () => [
|
|
1665
|
+
renderSlot(_ctx.$slots, item.slot ? `${item.slot}-leading` : "item-leading", mergeProps({ index, level, expanded: isExpanded, selected: isSelected, indeterminate: isIndeterminate, handleSelect, handleToggle, ui: ui.value }, { item }), () => [
|
|
1666
|
+
item.icon ? (openBlock(), createBlock(_sfc_main$d, {
|
|
1766
1667
|
key: 0,
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
createTextVNode(toDisplayString(getItemLabel(item)), 1)
|
|
1772
|
-
])
|
|
1773
|
-
], 2)) : createCommentVNode("", true),
|
|
1774
|
-
item.trailingIcon || ((_c3 = item.children) == null ? void 0 : _c3.length) || !!slots[item.slot ? `${item.slot}-trailing` : "item-trailing"] ? (openBlock(), createBlock("span", {
|
|
1668
|
+
name: item.icon,
|
|
1669
|
+
"data-slot": "linkLeadingIcon",
|
|
1670
|
+
class: ui.value.linkLeadingIcon({ class: [props.ui?.linkLeadingIcon, item.ui?.linkLeadingIcon] })
|
|
1671
|
+
}, null, 8, ["name", "class"])) : item.children?.length ? (openBlock(), createBlock(_sfc_main$d, {
|
|
1775
1672
|
key: 1,
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1673
|
+
name: isExpanded ? __props.expandedIcon ?? unref(appConfig).ui.icons.folderOpen : __props.collapsedIcon ?? unref(appConfig).ui.icons.folder,
|
|
1674
|
+
"data-slot": "linkLeadingIcon",
|
|
1675
|
+
class: ui.value.linkLeadingIcon({ class: [props.ui?.linkLeadingIcon, item.ui?.linkLeadingIcon] })
|
|
1676
|
+
}, null, 8, ["name", "class"])) : createCommentVNode("", true)
|
|
1677
|
+
]),
|
|
1678
|
+
getItemLabel(item) || !!slots[item.slot ? `${item.slot}-label` : "item-label"] ? (openBlock(), createBlock("span", {
|
|
1679
|
+
key: 0,
|
|
1680
|
+
"data-slot": "linkLabel",
|
|
1681
|
+
class: ui.value.linkLabel({ class: [props.ui?.linkLabel, item.ui?.linkLabel] })
|
|
1682
|
+
}, [
|
|
1683
|
+
renderSlot(_ctx.$slots, item.slot ? `${item.slot}-label` : "item-label", mergeProps({ index, level, expanded: isExpanded, selected: isSelected, indeterminate: isIndeterminate, handleSelect, handleToggle, ui: ui.value }, { item }), () => [
|
|
1684
|
+
createTextVNode(toDisplayString(getItemLabel(item)), 1)
|
|
1685
|
+
])
|
|
1686
|
+
], 2)) : createCommentVNode("", true),
|
|
1687
|
+
item.trailingIcon || item.children?.length || !!slots[item.slot ? `${item.slot}-trailing` : "item-trailing"] ? (openBlock(), createBlock("span", {
|
|
1688
|
+
key: 1,
|
|
1689
|
+
"data-slot": "linkTrailing",
|
|
1690
|
+
class: ui.value.linkTrailing({ class: [props.ui?.linkTrailing, item.ui?.linkTrailing] })
|
|
1691
|
+
}, [
|
|
1692
|
+
renderSlot(_ctx.$slots, item.slot ? `${item.slot}-trailing` : "item-trailing", mergeProps({ index, level, expanded: isExpanded, selected: isSelected, indeterminate: isIndeterminate, handleSelect, handleToggle, ui: ui.value }, { item }), () => [
|
|
1693
|
+
item.trailingIcon ? (openBlock(), createBlock(_sfc_main$d, {
|
|
1694
|
+
key: 0,
|
|
1695
|
+
name: item.trailingIcon,
|
|
1696
|
+
"data-slot": "linkTrailingIcon",
|
|
1697
|
+
class: ui.value.linkTrailingIcon({ class: [props.ui?.linkTrailingIcon, item.ui?.linkTrailingIcon] })
|
|
1698
|
+
}, null, 8, ["name", "class"])) : item.children?.length ? (openBlock(), createBlock(_sfc_main$d, {
|
|
1699
|
+
key: 1,
|
|
1700
|
+
name: __props.trailingIcon ?? unref(appConfig).ui.icons.chevronDown,
|
|
1701
|
+
"data-slot": "linkTrailingIcon",
|
|
1702
|
+
class: ui.value.linkTrailingIcon({ class: [props.ui?.linkTrailingIcon, item.ui?.linkTrailingIcon] })
|
|
1703
|
+
}, null, 8, ["name", "class"])) : createCommentVNode("", true)
|
|
1704
|
+
])
|
|
1705
|
+
], 2)) : createCommentVNode("", true)
|
|
1706
|
+
])
|
|
1798
1707
|
];
|
|
1799
1708
|
}
|
|
1800
1709
|
}),
|
|
1801
1710
|
_: 2
|
|
1802
1711
|
}), _parent3, _scopeId2);
|
|
1803
1712
|
}, _push3, _parent3, _scopeId2);
|
|
1804
|
-
if (nested.value &&
|
|
1805
|
-
_push3(`<ul role="group" data-slot="listWithChildren" class="${ssrRenderClass(ui.value.listWithChildren({ class: [
|
|
1713
|
+
if (nested.value && item.children?.length && isExpanded) {
|
|
1714
|
+
_push3(`<ul role="group" data-slot="listWithChildren" class="${ssrRenderClass(ui.value.listWithChildren({ class: [props.ui?.listWithChildren, item.ui?.listWithChildren] }))}"${_scopeId2}>`);
|
|
1806
1715
|
_push3(ssrRenderComponent(unref(ReuseTreeTemplate), {
|
|
1807
1716
|
items: item.children,
|
|
1808
1717
|
level: level + 1
|
|
@@ -1813,79 +1722,67 @@ const _sfc_main = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
|
1813
1722
|
}
|
|
1814
1723
|
} else {
|
|
1815
1724
|
return [
|
|
1816
|
-
renderSlot(_ctx.$slots, item.slot ? `${item.slot}-wrapper` : "item-wrapper", mergeProps({ index, level, expanded: isExpanded, selected: isSelected, indeterminate: isIndeterminate, handleSelect, handleToggle, ui: ui.value }, { item }), () =>
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1725
|
+
renderSlot(_ctx.$slots, item.slot ? `${item.slot}-wrapper` : "item-wrapper", mergeProps({ index, level, expanded: isExpanded, selected: isSelected, indeterminate: isIndeterminate, handleSelect, handleToggle, ui: ui.value }, { item }), () => [
|
|
1726
|
+
(openBlock(), createBlock(resolveDynamicComponent(as.value.link), {
|
|
1727
|
+
type: as.value.link === "button" ? "button" : void 0,
|
|
1728
|
+
disabled: item.disabled || __props.disabled,
|
|
1729
|
+
"data-slot": "link",
|
|
1730
|
+
class: ui.value.link({ class: [props.ui?.link, item.ui?.link, item.class], selected: isSelected, disabled: item.disabled || __props.disabled }),
|
|
1731
|
+
style: !nested.value && level > 1 ? { paddingLeft: flattenedPaddingFormula.value(level) } : void 0
|
|
1732
|
+
}, {
|
|
1733
|
+
default: withCtx(() => [
|
|
1734
|
+
renderSlot(_ctx.$slots, item.slot || "item", mergeProps({ index, level, expanded: isExpanded, selected: isSelected, indeterminate: isIndeterminate, handleSelect, handleToggle, ui: ui.value }, { item }), () => [
|
|
1735
|
+
renderSlot(_ctx.$slots, item.slot ? `${item.slot}-leading` : "item-leading", mergeProps({ index, level, expanded: isExpanded, selected: isSelected, indeterminate: isIndeterminate, handleSelect, handleToggle, ui: ui.value }, { item }), () => [
|
|
1736
|
+
item.icon ? (openBlock(), createBlock(_sfc_main$d, {
|
|
1737
|
+
key: 0,
|
|
1738
|
+
name: item.icon,
|
|
1739
|
+
"data-slot": "linkLeadingIcon",
|
|
1740
|
+
class: ui.value.linkLeadingIcon({ class: [props.ui?.linkLeadingIcon, item.ui?.linkLeadingIcon] })
|
|
1741
|
+
}, null, 8, ["name", "class"])) : item.children?.length ? (openBlock(), createBlock(_sfc_main$d, {
|
|
1742
|
+
key: 1,
|
|
1743
|
+
name: isExpanded ? __props.expandedIcon ?? unref(appConfig).ui.icons.folderOpen : __props.collapsedIcon ?? unref(appConfig).ui.icons.folder,
|
|
1744
|
+
"data-slot": "linkLeadingIcon",
|
|
1745
|
+
class: ui.value.linkLeadingIcon({ class: [props.ui?.linkLeadingIcon, item.ui?.linkLeadingIcon] })
|
|
1746
|
+
}, null, 8, ["name", "class"])) : createCommentVNode("", true)
|
|
1747
|
+
]),
|
|
1748
|
+
getItemLabel(item) || !!slots[item.slot ? `${item.slot}-label` : "item-label"] ? (openBlock(), createBlock("span", {
|
|
1749
|
+
key: 0,
|
|
1750
|
+
"data-slot": "linkLabel",
|
|
1751
|
+
class: ui.value.linkLabel({ class: [props.ui?.linkLabel, item.ui?.linkLabel] })
|
|
1752
|
+
}, [
|
|
1753
|
+
renderSlot(_ctx.$slots, item.slot ? `${item.slot}-label` : "item-label", mergeProps({ index, level, expanded: isExpanded, selected: isSelected, indeterminate: isIndeterminate, handleSelect, handleToggle, ui: ui.value }, { item }), () => [
|
|
1754
|
+
createTextVNode(toDisplayString(getItemLabel(item)), 1)
|
|
1755
|
+
])
|
|
1756
|
+
], 2)) : createCommentVNode("", true),
|
|
1757
|
+
item.trailingIcon || item.children?.length || !!slots[item.slot ? `${item.slot}-trailing` : "item-trailing"] ? (openBlock(), createBlock("span", {
|
|
1758
|
+
key: 1,
|
|
1759
|
+
"data-slot": "linkTrailing",
|
|
1760
|
+
class: ui.value.linkTrailing({ class: [props.ui?.linkTrailing, item.ui?.linkTrailing] })
|
|
1761
|
+
}, [
|
|
1762
|
+
renderSlot(_ctx.$slots, item.slot ? `${item.slot}-trailing` : "item-trailing", mergeProps({ index, level, expanded: isExpanded, selected: isSelected, indeterminate: isIndeterminate, handleSelect, handleToggle, ui: ui.value }, { item }), () => [
|
|
1763
|
+
item.trailingIcon ? (openBlock(), createBlock(_sfc_main$d, {
|
|
1847
1764
|
key: 0,
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
createTextVNode(toDisplayString(getItemLabel(item)), 1)
|
|
1853
|
-
])
|
|
1854
|
-
], 2)) : createCommentVNode("", true),
|
|
1855
|
-
item.trailingIcon || ((_c3 = item.children) == null ? void 0 : _c3.length) || !!slots[item.slot ? `${item.slot}-trailing` : "item-trailing"] ? (openBlock(), createBlock("span", {
|
|
1765
|
+
name: item.trailingIcon,
|
|
1766
|
+
"data-slot": "linkTrailingIcon",
|
|
1767
|
+
class: ui.value.linkTrailingIcon({ class: [props.ui?.linkTrailingIcon, item.ui?.linkTrailingIcon] })
|
|
1768
|
+
}, null, 8, ["name", "class"])) : item.children?.length ? (openBlock(), createBlock(_sfc_main$d, {
|
|
1856
1769
|
key: 1,
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
key: 1,
|
|
1870
|
-
name: (_d4 = __props.trailingIcon) != null ? _d4 : unref(appConfig).ui.icons.chevronDown,
|
|
1871
|
-
"data-slot": "linkTrailingIcon",
|
|
1872
|
-
class: ui.value.linkTrailingIcon({ class: [(_e4 = props.ui) == null ? void 0 : _e4.linkTrailingIcon, (_f3 = item.ui) == null ? void 0 : _f3.linkTrailingIcon] })
|
|
1873
|
-
}, null, 8, ["name", "class"])) : createCommentVNode("", true)
|
|
1874
|
-
];
|
|
1875
|
-
})
|
|
1876
|
-
], 2)) : createCommentVNode("", true)
|
|
1877
|
-
];
|
|
1878
|
-
})
|
|
1879
|
-
]),
|
|
1880
|
-
_: 2
|
|
1881
|
-
}, 1032, ["type", "disabled", "class", "style"]))
|
|
1882
|
-
];
|
|
1883
|
-
}),
|
|
1884
|
-
nested.value && ((_d2 = item.children) == null ? void 0 : _d2.length) && isExpanded ? (openBlock(), createBlock("ul", {
|
|
1770
|
+
name: __props.trailingIcon ?? unref(appConfig).ui.icons.chevronDown,
|
|
1771
|
+
"data-slot": "linkTrailingIcon",
|
|
1772
|
+
class: ui.value.linkTrailingIcon({ class: [props.ui?.linkTrailingIcon, item.ui?.linkTrailingIcon] })
|
|
1773
|
+
}, null, 8, ["name", "class"])) : createCommentVNode("", true)
|
|
1774
|
+
])
|
|
1775
|
+
], 2)) : createCommentVNode("", true)
|
|
1776
|
+
])
|
|
1777
|
+
]),
|
|
1778
|
+
_: 2
|
|
1779
|
+
}, 1032, ["type", "disabled", "class", "style"]))
|
|
1780
|
+
]),
|
|
1781
|
+
nested.value && item.children?.length && isExpanded ? (openBlock(), createBlock("ul", {
|
|
1885
1782
|
key: 0,
|
|
1886
1783
|
role: "group",
|
|
1887
1784
|
"data-slot": "listWithChildren",
|
|
1888
|
-
class: ui.value.listWithChildren({ class: [
|
|
1785
|
+
class: ui.value.listWithChildren({ class: [props.ui?.listWithChildren, item.ui?.listWithChildren] })
|
|
1889
1786
|
}, [
|
|
1890
1787
|
createVNode(unref(ReuseTreeTemplate), {
|
|
1891
1788
|
items: item.children,
|
|
@@ -1902,105 +1799,84 @@ const _sfc_main = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
|
1902
1799
|
return [
|
|
1903
1800
|
createVNode("li", {
|
|
1904
1801
|
role: "presentation",
|
|
1905
|
-
class: !!nested.value && level > 1 ? ui.value.itemWithChildren({ class: [
|
|
1802
|
+
class: !!nested.value && level > 1 ? ui.value.itemWithChildren({ class: [props.ui?.itemWithChildren, item.ui?.itemWithChildren] }) : ui.value.item({ class: [props.ui?.item, item.ui?.item] })
|
|
1906
1803
|
}, [
|
|
1907
1804
|
createVNode(unref(TreeItem), {
|
|
1908
1805
|
level,
|
|
1909
1806
|
value: item,
|
|
1910
1807
|
"as-child": "",
|
|
1911
|
-
onToggle: ($event) =>
|
|
1912
|
-
|
|
1913
|
-
return (_b2 = (_a3 = item.onToggle) != null ? _a3 : props.onToggle) == null ? void 0 : _b2($event, item);
|
|
1914
|
-
},
|
|
1915
|
-
onSelect: ($event) => {
|
|
1916
|
-
var _a3, _b2;
|
|
1917
|
-
return (_b2 = (_a3 = item.onSelect) != null ? _a3 : props.onSelect) == null ? void 0 : _b2($event, item);
|
|
1918
|
-
}
|
|
1808
|
+
onToggle: ($event) => (item.onToggle ?? props.onToggle)?.($event, item),
|
|
1809
|
+
onSelect: ($event) => (item.onSelect ?? props.onSelect)?.($event, item)
|
|
1919
1810
|
}, {
|
|
1920
|
-
default: withCtx(({ isExpanded, isSelected, isIndeterminate, handleSelect, handleToggle }) =>
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
"data-slot": "linkLeadingIcon",
|
|
1944
|
-
class: ui.value.linkLeadingIcon({ class: [(_a6 = props.ui) == null ? void 0 : _a6.linkLeadingIcon, (_b5 = item.ui) == null ? void 0 : _b5.linkLeadingIcon] })
|
|
1945
|
-
}, null, 8, ["name", "class"])) : ((_c4 = item.children) == null ? void 0 : _c4.length) ? (openBlock(), createBlock(_sfc_main$d, {
|
|
1946
|
-
key: 1,
|
|
1947
|
-
name: isExpanded ? (_d3 = __props.expandedIcon) != null ? _d3 : unref(appConfig).ui.icons.folderOpen : (_e3 = __props.collapsedIcon) != null ? _e3 : unref(appConfig).ui.icons.folder,
|
|
1948
|
-
"data-slot": "linkLeadingIcon",
|
|
1949
|
-
class: ui.value.linkLeadingIcon({ class: [(_f2 = props.ui) == null ? void 0 : _f2.linkLeadingIcon, (_g2 = item.ui) == null ? void 0 : _g2.linkLeadingIcon] })
|
|
1950
|
-
}, null, 8, ["name", "class"])) : createCommentVNode("", true)
|
|
1951
|
-
];
|
|
1952
|
-
}),
|
|
1953
|
-
getItemLabel(item) || !!slots[item.slot ? `${item.slot}-label` : "item-label"] ? (openBlock(), createBlock("span", {
|
|
1954
|
-
key: 0,
|
|
1955
|
-
"data-slot": "linkLabel",
|
|
1956
|
-
class: ui.value.linkLabel({ class: [(_a5 = props.ui) == null ? void 0 : _a5.linkLabel, (_b4 = item.ui) == null ? void 0 : _b4.linkLabel] })
|
|
1957
|
-
}, [
|
|
1958
|
-
renderSlot(_ctx.$slots, item.slot ? `${item.slot}-label` : "item-label", mergeProps({ index, level, expanded: isExpanded, selected: isSelected, indeterminate: isIndeterminate, handleSelect, handleToggle, ui: ui.value }, { item }), () => [
|
|
1959
|
-
createTextVNode(toDisplayString(getItemLabel(item)), 1)
|
|
1960
|
-
])
|
|
1961
|
-
], 2)) : createCommentVNode("", true),
|
|
1962
|
-
item.trailingIcon || ((_c3 = item.children) == null ? void 0 : _c3.length) || !!slots[item.slot ? `${item.slot}-trailing` : "item-trailing"] ? (openBlock(), createBlock("span", {
|
|
1963
|
-
key: 1,
|
|
1964
|
-
"data-slot": "linkTrailing",
|
|
1965
|
-
class: ui.value.linkTrailing({ class: [(_d2 = props.ui) == null ? void 0 : _d2.linkTrailing, (_e2 = item.ui) == null ? void 0 : _e2.linkTrailing] })
|
|
1966
|
-
}, [
|
|
1967
|
-
renderSlot(_ctx.$slots, item.slot ? `${item.slot}-trailing` : "item-trailing", mergeProps({ index, level, expanded: isExpanded, selected: isSelected, indeterminate: isIndeterminate, handleSelect, handleToggle, ui: ui.value }, { item }), () => {
|
|
1968
|
-
var _a6, _b5, _c4, _d3, _e3, _f2;
|
|
1969
|
-
return [
|
|
1970
|
-
item.trailingIcon ? (openBlock(), createBlock(_sfc_main$d, {
|
|
1971
|
-
key: 0,
|
|
1972
|
-
name: item.trailingIcon,
|
|
1973
|
-
"data-slot": "linkTrailingIcon",
|
|
1974
|
-
class: ui.value.linkTrailingIcon({ class: [(_a6 = props.ui) == null ? void 0 : _a6.linkTrailingIcon, (_b5 = item.ui) == null ? void 0 : _b5.linkTrailingIcon] })
|
|
1975
|
-
}, null, 8, ["name", "class"])) : ((_c4 = item.children) == null ? void 0 : _c4.length) ? (openBlock(), createBlock(_sfc_main$d, {
|
|
1976
|
-
key: 1,
|
|
1977
|
-
name: (_d3 = __props.trailingIcon) != null ? _d3 : unref(appConfig).ui.icons.chevronDown,
|
|
1978
|
-
"data-slot": "linkTrailingIcon",
|
|
1979
|
-
class: ui.value.linkTrailingIcon({ class: [(_e3 = props.ui) == null ? void 0 : _e3.linkTrailingIcon, (_f2 = item.ui) == null ? void 0 : _f2.linkTrailingIcon] })
|
|
1980
|
-
}, null, 8, ["name", "class"])) : createCommentVNode("", true)
|
|
1981
|
-
];
|
|
1982
|
-
})
|
|
1983
|
-
], 2)) : createCommentVNode("", true)
|
|
1984
|
-
];
|
|
1985
|
-
})
|
|
1811
|
+
default: withCtx(({ isExpanded, isSelected, isIndeterminate, handleSelect, handleToggle }) => [
|
|
1812
|
+
renderSlot(_ctx.$slots, item.slot ? `${item.slot}-wrapper` : "item-wrapper", mergeProps({ index, level, expanded: isExpanded, selected: isSelected, indeterminate: isIndeterminate, handleSelect, handleToggle, ui: ui.value }, { item }), () => [
|
|
1813
|
+
(openBlock(), createBlock(resolveDynamicComponent(as.value.link), {
|
|
1814
|
+
type: as.value.link === "button" ? "button" : void 0,
|
|
1815
|
+
disabled: item.disabled || __props.disabled,
|
|
1816
|
+
"data-slot": "link",
|
|
1817
|
+
class: ui.value.link({ class: [props.ui?.link, item.ui?.link, item.class], selected: isSelected, disabled: item.disabled || __props.disabled }),
|
|
1818
|
+
style: !nested.value && level > 1 ? { paddingLeft: flattenedPaddingFormula.value(level) } : void 0
|
|
1819
|
+
}, {
|
|
1820
|
+
default: withCtx(() => [
|
|
1821
|
+
renderSlot(_ctx.$slots, item.slot || "item", mergeProps({ index, level, expanded: isExpanded, selected: isSelected, indeterminate: isIndeterminate, handleSelect, handleToggle, ui: ui.value }, { item }), () => [
|
|
1822
|
+
renderSlot(_ctx.$slots, item.slot ? `${item.slot}-leading` : "item-leading", mergeProps({ index, level, expanded: isExpanded, selected: isSelected, indeterminate: isIndeterminate, handleSelect, handleToggle, ui: ui.value }, { item }), () => [
|
|
1823
|
+
item.icon ? (openBlock(), createBlock(_sfc_main$d, {
|
|
1824
|
+
key: 0,
|
|
1825
|
+
name: item.icon,
|
|
1826
|
+
"data-slot": "linkLeadingIcon",
|
|
1827
|
+
class: ui.value.linkLeadingIcon({ class: [props.ui?.linkLeadingIcon, item.ui?.linkLeadingIcon] })
|
|
1828
|
+
}, null, 8, ["name", "class"])) : item.children?.length ? (openBlock(), createBlock(_sfc_main$d, {
|
|
1829
|
+
key: 1,
|
|
1830
|
+
name: isExpanded ? __props.expandedIcon ?? unref(appConfig).ui.icons.folderOpen : __props.collapsedIcon ?? unref(appConfig).ui.icons.folder,
|
|
1831
|
+
"data-slot": "linkLeadingIcon",
|
|
1832
|
+
class: ui.value.linkLeadingIcon({ class: [props.ui?.linkLeadingIcon, item.ui?.linkLeadingIcon] })
|
|
1833
|
+
}, null, 8, ["name", "class"])) : createCommentVNode("", true)
|
|
1986
1834
|
]),
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
1835
|
+
getItemLabel(item) || !!slots[item.slot ? `${item.slot}-label` : "item-label"] ? (openBlock(), createBlock("span", {
|
|
1836
|
+
key: 0,
|
|
1837
|
+
"data-slot": "linkLabel",
|
|
1838
|
+
class: ui.value.linkLabel({ class: [props.ui?.linkLabel, item.ui?.linkLabel] })
|
|
1839
|
+
}, [
|
|
1840
|
+
renderSlot(_ctx.$slots, item.slot ? `${item.slot}-label` : "item-label", mergeProps({ index, level, expanded: isExpanded, selected: isSelected, indeterminate: isIndeterminate, handleSelect, handleToggle, ui: ui.value }, { item }), () => [
|
|
1841
|
+
createTextVNode(toDisplayString(getItemLabel(item)), 1)
|
|
1842
|
+
])
|
|
1843
|
+
], 2)) : createCommentVNode("", true),
|
|
1844
|
+
item.trailingIcon || item.children?.length || !!slots[item.slot ? `${item.slot}-trailing` : "item-trailing"] ? (openBlock(), createBlock("span", {
|
|
1845
|
+
key: 1,
|
|
1846
|
+
"data-slot": "linkTrailing",
|
|
1847
|
+
class: ui.value.linkTrailing({ class: [props.ui?.linkTrailing, item.ui?.linkTrailing] })
|
|
1848
|
+
}, [
|
|
1849
|
+
renderSlot(_ctx.$slots, item.slot ? `${item.slot}-trailing` : "item-trailing", mergeProps({ index, level, expanded: isExpanded, selected: isSelected, indeterminate: isIndeterminate, handleSelect, handleToggle, ui: ui.value }, { item }), () => [
|
|
1850
|
+
item.trailingIcon ? (openBlock(), createBlock(_sfc_main$d, {
|
|
1851
|
+
key: 0,
|
|
1852
|
+
name: item.trailingIcon,
|
|
1853
|
+
"data-slot": "linkTrailingIcon",
|
|
1854
|
+
class: ui.value.linkTrailingIcon({ class: [props.ui?.linkTrailingIcon, item.ui?.linkTrailingIcon] })
|
|
1855
|
+
}, null, 8, ["name", "class"])) : item.children?.length ? (openBlock(), createBlock(_sfc_main$d, {
|
|
1856
|
+
key: 1,
|
|
1857
|
+
name: __props.trailingIcon ?? unref(appConfig).ui.icons.chevronDown,
|
|
1858
|
+
"data-slot": "linkTrailingIcon",
|
|
1859
|
+
class: ui.value.linkTrailingIcon({ class: [props.ui?.linkTrailingIcon, item.ui?.linkTrailingIcon] })
|
|
1860
|
+
}, null, 8, ["name", "class"])) : createCommentVNode("", true)
|
|
1861
|
+
])
|
|
1862
|
+
], 2)) : createCommentVNode("", true)
|
|
1863
|
+
])
|
|
1864
|
+
]),
|
|
1865
|
+
_: 2
|
|
1866
|
+
}, 1032, ["type", "disabled", "class", "style"]))
|
|
1867
|
+
]),
|
|
1868
|
+
nested.value && item.children?.length && isExpanded ? (openBlock(), createBlock("ul", {
|
|
1869
|
+
key: 0,
|
|
1870
|
+
role: "group",
|
|
1871
|
+
"data-slot": "listWithChildren",
|
|
1872
|
+
class: ui.value.listWithChildren({ class: [props.ui?.listWithChildren, item.ui?.listWithChildren] })
|
|
1873
|
+
}, [
|
|
1874
|
+
createVNode(unref(ReuseTreeTemplate), {
|
|
1875
|
+
items: item.children,
|
|
1876
|
+
level: level + 1
|
|
1877
|
+
}, null, 8, ["items", "level"])
|
|
1878
|
+
], 2)) : createCommentVNode("", true)
|
|
1879
|
+
]),
|
|
2004
1880
|
_: 2
|
|
2005
1881
|
}, 1032, ["level", "value", "onToggle", "onSelect"])
|
|
2006
1882
|
], 2)
|
|
@@ -2045,7 +1921,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
|
2045
1921
|
"model-value": __props.modelValue,
|
|
2046
1922
|
"default-value": __props.defaultValue,
|
|
2047
1923
|
"data-slot": "root",
|
|
2048
|
-
class: ui.value.root({ class: [
|
|
1924
|
+
class: ui.value.root({ class: [props.ui?.root, props.class] }),
|
|
2049
1925
|
"get-key": getItemKey,
|
|
2050
1926
|
"default-expanded": defaultExpanded.value,
|
|
2051
1927
|
"selection-behavior": __props.selectionBehavior
|