@xwiki/cristal-electron-renderer 0.10.0 → 0.12.0
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/CHANGELOG.md +42 -0
- package/dist/AttachmentPreview-BylrSQFY.css +1 -0
- package/dist/AttachmentPreview-DRAzGcqn.js +2 -0
- package/dist/AttachmentPreview-DRAzGcqn.js.map +1 -0
- package/dist/LoggedInMenu-BJGw1rHa.js +2 -0
- package/dist/LoggedInMenu-BJGw1rHa.js.map +1 -0
- package/dist/LoginMenu-Bt11nO2F.js +2 -0
- package/dist/LoginMenu-Bt11nO2F.js.map +1 -0
- package/dist/c-config-menu-C2f9l0AF.js +2 -0
- package/dist/c-config-menu-C2f9l0AF.js.map +1 -0
- package/dist/{chunk.KWPBDQ6I-Bf3dc1GJ.js → chunk.2RCF7SLU-DvR3pudF.js} +2 -2
- package/dist/{chunk.KWPBDQ6I-Bf3dc1GJ.js.map → chunk.2RCF7SLU-DvR3pudF.js.map} +1 -1
- package/dist/{chunk.LHI6QEL2-CoBwgj3u.js → chunk.3EPZX5HE-DMJLz_nd.js} +2 -2
- package/dist/{chunk.LHI6QEL2-CoBwgj3u.js.map → chunk.3EPZX5HE-DMJLz_nd.js.map} +1 -1
- package/dist/{chunk.DBG7W4GS-C1gixj8b.js → chunk.3HB7VQL2-BuauBlvQ.js} +2 -2
- package/dist/{chunk.DBG7W4GS-C1gixj8b.js.map → chunk.3HB7VQL2-BuauBlvQ.js.map} +1 -1
- package/dist/{chunk.FX2KPKHF-CBFHooyH.js → chunk.5KGB34TL-DurS0j57.js} +4 -4
- package/dist/{chunk.FX2KPKHF-CBFHooyH.js.map → chunk.5KGB34TL-DurS0j57.js.map} +1 -1
- package/dist/{chunk.CFNN54QE-CwH9z8le.js → chunk.6MMVHD6S-DXpilTpq.js} +2 -2
- package/dist/{chunk.CFNN54QE-CwH9z8le.js.map → chunk.6MMVHD6S-DXpilTpq.js.map} +1 -1
- package/dist/{chunk.R6P7F64V-Bc6rS8Dr.js → chunk.7BNNPT3E-DLgv6Zm2.js} +3 -3
- package/dist/{chunk.R6P7F64V-Bc6rS8Dr.js.map → chunk.7BNNPT3E-DLgv6Zm2.js.map} +1 -1
- package/dist/{chunk.MGEAXYVX-o-WC3ZVc.js → chunk.7CVSDULN-D8ESgCUb.js} +2 -2
- package/dist/{chunk.MGEAXYVX-o-WC3ZVc.js.map → chunk.7CVSDULN-D8ESgCUb.js.map} +1 -1
- package/dist/chunk.B4BZKR24-B0iVuGLD.js.map +1 -1
- package/dist/{chunk.2FB5TK5H-DmNP_ew6.js → chunk.CCJUT23E-DD9o-ZiK.js} +2 -2
- package/dist/{chunk.2FB5TK5H-DmNP_ew6.js.map → chunk.CCJUT23E-DD9o-ZiK.js.map} +1 -1
- package/dist/{chunk.I6OQK3N3-XuvDDN4C.js → chunk.E6QAPUBK-Djstjz3r.js} +19 -19
- package/dist/chunk.E6QAPUBK-Djstjz3r.js.map +1 -0
- package/dist/{chunk.Z6CYCANS-3ZX6gaKw.js → chunk.GLCUPQMQ-CXU0YjxB.js} +34 -28
- package/dist/chunk.GLCUPQMQ-CXU0YjxB.js.map +1 -0
- package/dist/chunk.HBPNMM7A-BrhytpP9.js +2 -0
- package/dist/chunk.HBPNMM7A-BrhytpP9.js.map +1 -0
- package/dist/{chunk.GAND2OKP-ByJceoyz.js → chunk.HXPETTOW-CZ2kqtvF.js} +7 -7
- package/dist/chunk.HXPETTOW-CZ2kqtvF.js.map +1 -0
- package/dist/chunk.JW3F7MUK-OuwpxeDZ.js +24 -0
- package/dist/chunk.JW3F7MUK-OuwpxeDZ.js.map +1 -0
- package/dist/{chunk.Z2C7OFLH-DXpTuERC.js → chunk.KQJWQSBJ-DPGekGQv.js} +10 -11
- package/dist/chunk.KQJWQSBJ-DPGekGQv.js.map +1 -0
- package/dist/{x-menu-DFcY5sjI.js → chunk.M5MS3BT5-GjIalHcJ.js} +870 -846
- package/dist/chunk.M5MS3BT5-GjIalHcJ.js.map +1 -0
- package/dist/chunk.NYIIDP5N-AHr3eTN0.js.map +1 -1
- package/dist/{chunk.6DH62NIS-DHBypl83.js → chunk.Q6JS2LBD-BYpG65LV.js} +7 -7
- package/dist/chunk.Q6JS2LBD-BYpG65LV.js.map +1 -0
- package/dist/chunk.RISKC4J7-D2WzXpqH.js +292 -0
- package/dist/chunk.RISKC4J7-D2WzXpqH.js.map +1 -0
- package/dist/chunk.RWUUFNUL-BJhNq5wM.js +2 -0
- package/dist/chunk.RWUUFNUL-BJhNq5wM.js.map +1 -0
- package/dist/{chunk.WYDJ5QAQ-BF7TjXRg.js → chunk.RZSEPECD-CAEeD_Al.js} +4 -4
- package/dist/{chunk.WYDJ5QAQ-BF7TjXRg.js.map → chunk.RZSEPECD-CAEeD_Al.js.map} +1 -1
- package/dist/{chunk.AXBI25VK-DfJ7KL5H.js → chunk.TLKDQ5JG-C0jsZ3nU.js} +2 -2
- package/dist/{chunk.AXBI25VK-DfJ7KL5H.js.map → chunk.TLKDQ5JG-C0jsZ3nU.js.map} +1 -1
- package/dist/chunk.UYAO2JRR-QUwaJ7JP.js +38 -0
- package/dist/chunk.UYAO2JRR-QUwaJ7JP.js.map +1 -0
- package/dist/chunk.Z4ZMTHRX-D5OXJwWY.js +180 -0
- package/dist/chunk.Z4ZMTHRX-D5OXJwWY.js.map +1 -0
- package/dist/{class-map-C3Xk0adH.js → class-map-BeImxkqd.js} +2 -2
- package/dist/{class-map-C3Xk0adH.js.map → class-map-BeImxkqd.js.map} +1 -1
- package/dist/{if-defined-DAvNwoU5.js → if-defined-BdEIG4q1.js} +2 -2
- package/dist/{if-defined-DAvNwoU5.js.map → if-defined-BdEIG4q1.js.map} +1 -1
- package/dist/index-B3DX-S-K.css +5 -0
- package/dist/index-CysseUUr.js +118 -0
- package/dist/index-CysseUUr.js.map +1 -0
- package/dist/index.html +4 -4
- package/dist/{live-BSc8AKyD.js → live-ZVhTxyi-.js} +2 -2
- package/dist/{live-BSc8AKyD.js.map → live-ZVhTxyi-.js.map} +1 -1
- package/dist/{static-CdL8EPVS.js → static-JXDFVXdx.js} +2 -2
- package/dist/{static-CdL8EPVS.js.map → static-JXDFVXdx.js.map} +1 -1
- package/dist/staticBuild-BA6i8S6h.js +474 -0
- package/dist/{staticBuild-Dq4Tn0Mo.js.map → staticBuild-BA6i8S6h.js.map} +1 -1
- package/dist/staticBuild-DPPXLMeO.css +1 -0
- package/dist/translations-Cp-1FL95.js +2 -0
- package/dist/translations-Cp-1FL95.js.map +1 -0
- package/dist/translations-DuHgS1cM.js +2 -0
- package/dist/{translations-LzwkxwEW.js.map → translations-DuHgS1cM.js.map} +1 -1
- package/dist/worker-Didhqk2v.js +26 -0
- package/dist/worker-Didhqk2v.js.map +1 -0
- package/dist/x-alert-BGaDX3zj.js +2 -0
- package/dist/x-alert-BGaDX3zj.js.map +1 -0
- package/dist/x-alert-CIccQ0Y5.js +2 -0
- package/dist/x-alert-CIccQ0Y5.js.map +1 -0
- package/dist/x-alert-HSX4QdS1.js +2 -0
- package/dist/x-alert-HSX4QdS1.js.map +1 -0
- package/dist/x-avatar-CuiO7JxJ.js +2 -0
- package/dist/{x-avatar-Do15HLTa.js.map → x-avatar-CuiO7JxJ.js.map} +1 -1
- package/dist/x-avatar-D5opTgt9.js +2 -0
- package/dist/x-avatar-D5opTgt9.js.map +1 -0
- package/dist/x-avatar-bwuAKtHE.js +2 -0
- package/dist/{x-avatar-uQ2yJqFb.js.map → x-avatar-bwuAKtHE.js.map} +1 -1
- package/dist/x-breadcrumb-BUH4aeSA.js +2 -0
- package/dist/{x-breadcrumb-tgwwVB9r.js.map → x-breadcrumb-BUH4aeSA.js.map} +1 -1
- package/dist/x-breadcrumb-BlEn48bG.css +1 -0
- package/dist/x-breadcrumb-DPp3G5SN.js +2 -0
- package/dist/x-breadcrumb-DPp3G5SN.js.map +1 -0
- package/dist/x-btn-B3KXcczz.css +1 -0
- package/dist/x-btn-Bz5witgO.js +2 -0
- package/dist/x-btn-Bz5witgO.js.map +1 -0
- package/dist/x-btn-F13S0wZg.js +2 -0
- package/dist/x-btn-F13S0wZg.js.map +1 -0
- package/dist/x-btn-TV2kFEN0.js +2 -0
- package/dist/x-btn-TV2kFEN0.js.map +1 -0
- package/dist/x-card-Betc8ZHs.js +2 -0
- package/dist/x-card-Betc8ZHs.js.map +1 -0
- package/dist/x-card-CZEFUSKa.js +2 -0
- package/dist/{x-card-DGwgeeIt.js.map → x-card-CZEFUSKa.js.map} +1 -1
- package/dist/x-card-uOl4HUXY.js +2 -0
- package/dist/{x-card-DnUYLbvX.js.map → x-card-uOl4HUXY.js.map} +1 -1
- package/dist/x-col-Lk6xvo2I.js +2 -0
- package/dist/{x-col-Cd_0rrov.js.map → x-col-Lk6xvo2I.js.map} +1 -1
- package/dist/x-col-qfrLACW8.js +2 -0
- package/dist/{x-col-APBRcFKK.js.map → x-col-qfrLACW8.js.map} +1 -1
- package/dist/x-container-BRno5gt8.js +2 -0
- package/dist/{x-container-DoOSsThc.js.map → x-container-BRno5gt8.js.map} +1 -1
- package/dist/x-container-DrP7addf.js +2 -0
- package/dist/{x-container-DndLhgh3.js.map → x-container-DrP7addf.js.map} +1 -1
- package/dist/x-dialog-BvLrxDhD.js +2 -0
- package/dist/{x-dialog-62Cy9biT.js.map → x-dialog-BvLrxDhD.js.map} +1 -1
- package/dist/x-dialog-CJZoaibl.css +1 -0
- package/dist/x-dialog-CNC20iA-.js +2 -0
- package/dist/x-dialog-CNC20iA-.js.map +1 -0
- package/dist/x-dialog-DlGHUwkl.js +2 -0
- package/dist/{x-dialog-DNOHH11e.js.map → x-dialog-DlGHUwkl.js.map} +1 -1
- package/dist/x-divider-Cjhy_SGD.js +2 -0
- package/dist/x-divider-Cjhy_SGD.js.map +1 -0
- package/dist/x-divider-DhenkcPi.js +2 -0
- package/dist/x-divider-DhenkcPi.js.map +1 -0
- package/dist/x-divider-lAIegJyR.js +2 -0
- package/dist/{x-divider-BQiysfB7.js.map → x-divider-lAIegJyR.js.map} +1 -1
- package/dist/{x-file-input-CQcXcoHB.css → x-file-input-B1pNp-0F.css} +1 -1
- package/dist/x-file-input-BpLuwRpE.js +2 -0
- package/dist/x-file-input-BpLuwRpE.js.map +1 -0
- package/dist/x-file-input-DzODB8AZ.js +2 -0
- package/dist/x-file-input-DzODB8AZ.js.map +1 -0
- package/dist/x-form-Bt2nYp1e.js +2 -0
- package/dist/{x-form-xZrFFgGP.js.map → x-form-Bt2nYp1e.js.map} +1 -1
- package/dist/x-form-DfeJr0vt.js +2 -0
- package/dist/x-form-DfeJr0vt.js.map +1 -0
- package/dist/x-img-CO2zujPz.js +2 -0
- package/dist/x-img-CO2zujPz.js.map +1 -0
- package/dist/x-img-EuI2fh0O.js +2 -0
- package/dist/{x-img-D4DerBmA.js.map → x-img-EuI2fh0O.js.map} +1 -1
- package/dist/x-img-rFaHQgse.js +2 -0
- package/dist/{x-img-DNNmg_S_.js.map → x-img-rFaHQgse.js.map} +1 -1
- package/dist/{x-load-CxeKwDos.css → x-load-BHMDXDX7.css} +1 -1
- package/dist/x-load-BdSFxFfs.js +2 -0
- package/dist/x-load-BdSFxFfs.js.map +1 -0
- package/dist/x-load-CBQVW07e.js +2 -0
- package/dist/x-load-CBQVW07e.js.map +1 -0
- package/dist/x-load-DWEqxI6z.js +2 -0
- package/dist/x-load-DWEqxI6z.js.map +1 -0
- package/dist/{x-load-6aLq6Y1w.css → x-load-DXDxYJBc.css} +1 -1
- package/dist/x-menu-BCsHWfgm.js +2 -0
- package/dist/{x-menu-CkAgH7lK.js.map → x-menu-BCsHWfgm.js.map} +1 -1
- package/dist/x-menu-C0uP1HGk.js +2 -0
- package/dist/x-menu-C0uP1HGk.js.map +1 -0
- package/dist/x-menu-CFQcbCZj.css +1 -0
- package/dist/x-menu-D0RAaeYg.js +2 -0
- package/dist/x-menu-D0RAaeYg.js.map +1 -0
- package/dist/x-menu-DzX0HLze.css +1 -0
- package/dist/x-menu-item-B3-7NwyA.js +2 -0
- package/dist/x-menu-item-B3-7NwyA.js.map +1 -0
- package/dist/x-menu-item-BTujRTbM.js +2 -0
- package/dist/x-menu-item-BTujRTbM.js.map +1 -0
- package/dist/x-menu-label-B_16mrNh.js +2 -0
- package/dist/x-menu-label-B_16mrNh.js.map +1 -0
- package/dist/x-menu-label-CmlcTK7Z.js +2 -0
- package/dist/x-menu-label-CmlcTK7Z.js.map +1 -0
- package/dist/x-menuitem-BXkwtASr.js +2 -0
- package/dist/x-menuitem-BXkwtASr.js.map +1 -0
- package/dist/x-navigation-tree-CsQ0XpLp.js +2 -0
- package/dist/x-navigation-tree-CsQ0XpLp.js.map +1 -0
- package/dist/x-navigation-tree-Ctm1Pw97.css +1 -0
- package/dist/x-navigation-tree-DGSms-Rh.js +2 -0
- package/dist/x-navigation-tree-DGSms-Rh.js.map +1 -0
- package/dist/x-navigation-tree-DWfN9v6C.css +1 -0
- package/dist/x-row-Lk6xvo2I.js +2 -0
- package/dist/{x-row-Cd_0rrov.js.map → x-row-Lk6xvo2I.js.map} +1 -1
- package/dist/x-row-qfrLACW8.js +2 -0
- package/dist/{x-row-APBRcFKK.js.map → x-row-qfrLACW8.js.map} +1 -1
- package/dist/x-search-BhJikAM6.js +2 -0
- package/dist/{x-search-6-GPdrlG.js.map → x-search-BhJikAM6.js.map} +1 -1
- package/dist/x-search-xwbP-c95.js +2 -0
- package/dist/x-search-xwbP-c95.js.map +1 -0
- package/dist/x-tab-C0kwi_AM.js +2 -0
- package/dist/x-tab-C0kwi_AM.js.map +1 -0
- package/dist/x-tab-D19JD9UF.js +2 -0
- package/dist/x-tab-D19JD9UF.js.map +1 -0
- package/dist/x-tab-group-BSWjNg4j.js +2 -0
- package/dist/{x-tab-group-B-Dnf1X4.js.map → x-tab-group-BSWjNg4j.js.map} +1 -1
- package/dist/x-tab-group-CX4CPGf8.js +2 -0
- package/dist/{x-tab-group-CZdkTXl4.js.map → x-tab-group-CX4CPGf8.js.map} +1 -1
- package/dist/x-tab-panel-BUoXHwcL.js +2 -0
- package/dist/x-tab-panel-BUoXHwcL.js.map +1 -0
- package/dist/x-tab-panel-Ks-puV0K.js +2 -0
- package/dist/x-tab-panel-Ks-puV0K.js.map +1 -0
- package/dist/x-text-field-DWQ-OEQo.js +2 -0
- package/dist/{x-text-field-dueoU1rY.js.map → x-text-field-DWQ-OEQo.js.map} +1 -1
- package/dist/x-text-field-Xrpfgd_T.js +2 -0
- package/dist/x-text-field-Xrpfgd_T.js.map +1 -0
- package/dist/x-textfield-BlUgB197.js +2 -0
- package/dist/{x-textfield-CqrKyK-N.js.map → x-textfield-BlUgB197.js.map} +1 -1
- package/dist/x-textfield-Cgy3tR7w.js +2 -0
- package/dist/{x-textfield-B67r0JTG.js.map → x-textfield-Cgy3tR7w.js.map} +1 -1
- package/index.html +2 -2
- package/package.json +14 -19
- package/src/index.ts +9 -18
- package/vite.config.js +1 -1
- package/dist/chunk.2Y62WHSU-BzsfzJqR.js +0 -121
- package/dist/chunk.2Y62WHSU-BzsfzJqR.js.map +0 -1
- package/dist/chunk.6DH62NIS-DHBypl83.js.map +0 -1
- package/dist/chunk.F5JVBNK3-BFrgaGDl.js +0 -2
- package/dist/chunk.F5JVBNK3-BFrgaGDl.js.map +0 -1
- package/dist/chunk.GAND2OKP-ByJceoyz.js.map +0 -1
- package/dist/chunk.GQSSKPMO-XeEX4TdL.js +0 -273
- package/dist/chunk.GQSSKPMO-XeEX4TdL.js.map +0 -1
- package/dist/chunk.I6OQK3N3-XuvDDN4C.js.map +0 -1
- package/dist/chunk.TUZSOS6C-DxyWSdpL.js +0 -38
- package/dist/chunk.TUZSOS6C-DxyWSdpL.js.map +0 -1
- package/dist/chunk.WJBFYL4X-Cbeo_gEa.js +0 -24
- package/dist/chunk.WJBFYL4X-Cbeo_gEa.js.map +0 -1
- package/dist/chunk.XX4STEEY-CnZz31HY.js +0 -2
- package/dist/chunk.XX4STEEY-CnZz31HY.js.map +0 -1
- package/dist/chunk.Z2C7OFLH-DXpTuERC.js.map +0 -1
- package/dist/chunk.Z6CYCANS-3ZX6gaKw.js.map +0 -1
- package/dist/index-BFbJwmeJ.js +0 -109
- package/dist/index-BFbJwmeJ.js.map +0 -1
- package/dist/index-DM-OF3Uf.css +0 -5
- package/dist/staticBuild-Dq4Tn0Mo.js +0 -447
- package/dist/staticBuild-DwMiAV2X.css +0 -1
- package/dist/translations-LzwkxwEW.js +0 -2
- package/dist/worker-DwW6jtnV.js +0 -27
- package/dist/worker-DwW6jtnV.js.map +0 -1
- package/dist/x-alert-B498h4o-.js +0 -2
- package/dist/x-alert-B498h4o-.js.map +0 -1
- package/dist/x-alert-CeTdBRLK.js +0 -2
- package/dist/x-alert-CeTdBRLK.js.map +0 -1
- package/dist/x-alert-Cfmv0B1F.js +0 -2
- package/dist/x-alert-Cfmv0B1F.js.map +0 -1
- package/dist/x-avatar-CExXGK8x.js +0 -2
- package/dist/x-avatar-CExXGK8x.js.map +0 -1
- package/dist/x-avatar-Do15HLTa.js +0 -2
- package/dist/x-avatar-uQ2yJqFb.js +0 -2
- package/dist/x-breadcrumb-DJUMuHTw.js +0 -2
- package/dist/x-breadcrumb-DJUMuHTw.js.map +0 -1
- package/dist/x-breadcrumb-tgwwVB9r.js +0 -2
- package/dist/x-btn-BLj16bDp.js +0 -2
- package/dist/x-btn-BLj16bDp.js.map +0 -1
- package/dist/x-btn-DEUIs-aP.js +0 -2
- package/dist/x-btn-DEUIs-aP.js.map +0 -1
- package/dist/x-btn-Jy05lUMC.css +0 -1
- package/dist/x-btn-slL15Aul.js +0 -2
- package/dist/x-btn-slL15Aul.js.map +0 -1
- package/dist/x-card-DGwgeeIt.js +0 -2
- package/dist/x-card-DnUYLbvX.js +0 -2
- package/dist/x-card-mMABQfr9.js +0 -2
- package/dist/x-card-mMABQfr9.js.map +0 -1
- package/dist/x-col-APBRcFKK.js +0 -2
- package/dist/x-col-Cd_0rrov.js +0 -2
- package/dist/x-container-DndLhgh3.js +0 -2
- package/dist/x-container-DoOSsThc.js +0 -2
- package/dist/x-dialog-62Cy9biT.js +0 -2
- package/dist/x-dialog-Cz4f_T3A.js +0 -2
- package/dist/x-dialog-Cz4f_T3A.js.map +0 -1
- package/dist/x-dialog-DKFddpd2.css +0 -1
- package/dist/x-dialog-DNOHH11e.js +0 -2
- package/dist/x-divider-B6CJONyJ.js +0 -2
- package/dist/x-divider-B6CJONyJ.js.map +0 -1
- package/dist/x-divider-BQiysfB7.js +0 -2
- package/dist/x-divider-DKsdrFV5.js +0 -2
- package/dist/x-divider-DKsdrFV5.js.map +0 -1
- package/dist/x-file-input-CgufcZDl.js +0 -2
- package/dist/x-file-input-CgufcZDl.js.map +0 -1
- package/dist/x-file-input-Z4sFXhyM.js +0 -2
- package/dist/x-file-input-Z4sFXhyM.js.map +0 -1
- package/dist/x-form-CsnUq93d.js +0 -2
- package/dist/x-form-CsnUq93d.js.map +0 -1
- package/dist/x-form-d2Whvj-i.css +0 -1
- package/dist/x-form-xZrFFgGP.js +0 -2
- package/dist/x-img-BbsY8jQy.js +0 -2
- package/dist/x-img-BbsY8jQy.js.map +0 -1
- package/dist/x-img-D4DerBmA.js +0 -2
- package/dist/x-img-DNNmg_S_.js +0 -2
- package/dist/x-load-B8rYyr9R.js +0 -2
- package/dist/x-load-B8rYyr9R.js.map +0 -1
- package/dist/x-load-Cn9JMpHW.js +0 -2
- package/dist/x-load-Cn9JMpHW.js.map +0 -1
- package/dist/x-load-D-BOlWob.js +0 -2
- package/dist/x-load-D-BOlWob.js.map +0 -1
- package/dist/x-menu-BTiak8V6.js +0 -2
- package/dist/x-menu-BTiak8V6.js.map +0 -1
- package/dist/x-menu-CkAgH7lK.js +0 -2
- package/dist/x-menu-DFcY5sjI.js.map +0 -1
- package/dist/x-menu-item-C4R7lHiK.js +0 -2
- package/dist/x-menu-item-C4R7lHiK.js.map +0 -1
- package/dist/x-menuitem-DdazMhzm.js +0 -2
- package/dist/x-menuitem-DdazMhzm.js.map +0 -1
- package/dist/x-menuitem-ECTXOGqT.js +0 -2
- package/dist/x-menuitem-ECTXOGqT.js.map +0 -1
- package/dist/x-navigation-tree-C-igvx3T.js +0 -2
- package/dist/x-navigation-tree-C-igvx3T.js.map +0 -1
- package/dist/x-navigation-tree-DV0mFswG.js +0 -2
- package/dist/x-navigation-tree-DV0mFswG.js.map +0 -1
- package/dist/x-navigation-tree-N_Cqzqsb.css +0 -1
- package/dist/x-row-APBRcFKK.js +0 -2
- package/dist/x-row-Cd_0rrov.js +0 -2
- package/dist/x-search-6-GPdrlG.js +0 -2
- package/dist/x-search-DmxKZbws.js +0 -2
- package/dist/x-search-DmxKZbws.js.map +0 -1
- package/dist/x-tab--kLXX9qq.js +0 -2
- package/dist/x-tab--kLXX9qq.js.map +0 -1
- package/dist/x-tab-DEhcFY3F.js +0 -2
- package/dist/x-tab-DEhcFY3F.js.map +0 -1
- package/dist/x-tab-group-B-Dnf1X4.js +0 -2
- package/dist/x-tab-group-CZdkTXl4.js +0 -2
- package/dist/x-tab-panel-Bki0F-b3.js +0 -2
- package/dist/x-tab-panel-Bki0F-b3.js.map +0 -1
- package/dist/x-tab-panel-BoW0me9a.js +0 -2
- package/dist/x-tab-panel-BoW0me9a.js.map +0 -1
- package/dist/x-text-field-COkp_0Xm.js +0 -2
- package/dist/x-text-field-COkp_0Xm.js.map +0 -1
- package/dist/x-text-field-dueoU1rY.js +0 -2
- package/dist/x-textfield-B67r0JTG.js +0 -2
- package/dist/x-textfield-CqrKyK-N.js +0 -2
- package/src/vite-env.d.ts +0 -22
- package/src/vue.d.ts +0 -27
- /package/dist/{x-avatar-DMZRLeU4.css → x-avatar-BKEN7853.css} +0 -0
- /package/dist/{x-load-THoDQrSz.css → x-load-BM0ZeWm3.css} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,47 @@
|
|
|
1
1
|
# @xwiki/cristal-electron-renderer
|
|
2
2
|
|
|
3
|
+
## 0.12.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 681a9b7: Cristal 0.12 Release
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [681a9b7]
|
|
12
|
+
- @xwiki/cristal-hierarchy-filesystem@0.12.0
|
|
13
|
+
- @xwiki/cristal-model-reference-filesystem@0.12.0
|
|
14
|
+
- @xwiki/cristal-model-remote-url-filesystem@0.12.0
|
|
15
|
+
- @xwiki/cristal-navigation-tree-filesystem@0.12.0
|
|
16
|
+
- @xwiki/cristal-electron-authentication-xwiki-renderer@0.12.0
|
|
17
|
+
- @xwiki/cristal-browser-electron@0.12.0
|
|
18
|
+
- @xwiki/cristal-electron-storage@0.12.0
|
|
19
|
+
- @xwiki/cristal-lib@0.12.0
|
|
20
|
+
|
|
21
|
+
## 0.11.0
|
|
22
|
+
|
|
23
|
+
### Minor Changes
|
|
24
|
+
|
|
25
|
+
- d54422d: Cristal 0.11 Release
|
|
26
|
+
|
|
27
|
+
### Patch Changes
|
|
28
|
+
|
|
29
|
+
- Updated dependencies [d54422d]
|
|
30
|
+
- @xwiki/cristal-hierarchy-default@0.11.0
|
|
31
|
+
- @xwiki/cristal-hierarchy-filesystem@0.11.0
|
|
32
|
+
- @xwiki/cristal-hierarchy-github@0.11.0
|
|
33
|
+
- @xwiki/cristal-hierarchy-nextcloud@0.11.0
|
|
34
|
+
- @xwiki/cristal-hierarchy-xwiki@0.11.0
|
|
35
|
+
- @xwiki/cristal-navigation-tree-default@0.11.0
|
|
36
|
+
- @xwiki/cristal-navigation-tree-filesystem@0.11.0
|
|
37
|
+
- @xwiki/cristal-navigation-tree-github@0.11.0
|
|
38
|
+
- @xwiki/cristal-navigation-tree-nextcloud@0.11.0
|
|
39
|
+
- @xwiki/cristal-navigation-tree-xwiki@0.11.0
|
|
40
|
+
- @xwiki/cristal-electron-authentication-xwiki-renderer@0.11.0
|
|
41
|
+
- @xwiki/cristal-browser-electron@0.11.0
|
|
42
|
+
- @xwiki/cristal-electron-storage@0.11.0
|
|
43
|
+
- @xwiki/cristal-lib@0.11.0
|
|
44
|
+
|
|
3
45
|
## 0.10.0
|
|
4
46
|
|
|
5
47
|
### Minor Changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
*:has(>.x-dialog-attachment-preview-no-activator){display:none}.dialog_content[data-v-1b64cb24]{display:grid;height:80vh;grid-auto-flow:column;grid-template-columns:6fr 1fr;grid-template-rows:1fr auto;gap:16px 16px;grid-template-areas:"attachment_view metadata" "actions actions"}.metadata[data-v-1b64cb24]{grid-area:metadata;display:flex;flex-flow:column;gap:8px}.actions[data-v-1b64cb24]{grid-area:actions;display:grid;grid-template-columns:1fr auto;gap:var(--cr-spacing-medium)}.actions .main_action[data-v-1b64cb24]{display:flex;gap:var(--cr-spacing-medium)}.actions .close_container[data-v-1b64cb24]{justify-self:end}.attachment_view[data-v-1b64cb24]{background-color:var(--cr-color-neutral-100);border-radius:var(--cr-border-radius-large);grid-area:attachment_view;overflow:auto;display:flex;align-items:center;justify-content:center}.attachment_view img[data-v-1b64cb24]{max-height:70vh;display:block}.label_description[data-v-1b64cb24]{display:flex;flex-flow:column;gap:4px}.label_description .label[data-v-1b64cb24]{display:block;font-size:var(--cr-font-size-x-small)}.label_description .description[data-v-1b64cb24]{font-weight:var(--cr-font-weight-bold);font-size:var(--cr-font-size-small)}@container xwCristal (max-width: 600px){.dialog_content[data-v-1b64cb24]{display:grid;grid-template-columns:1fr;grid-template-rows:1fr;grid-template-areas:"attachment_view" "metadata" "actions"}.dialog_content .attachment_view img[data-v-1b64cb24]{width:100%}}.v-overlay{container:vuetifyCristal;container-type:size}@container vuetifyCristal (max-width: 600px){.dialog_content[data-v-1b64cb24]{grid-template-columns:1fr;grid-template-rows:1fr;grid-template-areas:"attachment_view" "metadata" "actions"}.dialog_content .attachment_view img[data-v-1b64cb24]{width:100%}}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{t as B,_ as z,a as F,b as D}from"./staticBuild-BA6i8S6h.js";import{h as v,q as g,t as a,u as t,o as n,p as l,j as b,x as e,l as m,w as h,k as y,a9 as A,aa as I,a2 as S,n as T,r as j,B as q,y as E,m as $,aK as K}from"./index-CysseUUr.js";const M={"filePreview.noPreview.text":"No preview available","filePreview.video.text":"Download the {link} video."},x={en:M},R=v({__name:"NoPreview",setup(u){const{t:s}=g({messages:x});return(_,o)=>a(t(s)("No preview available"))}}),U=["src","alt"],W=v({__name:"ImageFilePreview",props:{attachment:{}},setup(u){return(s,_)=>(n(),l("img",{src:s.attachment.href,alt:s.attachment.name},null,8,U))}}),G={controls:""},H=["src","type"],J=["href"],L=v({__name:"VideoFilePreview",props:{attachment:{}},setup(u){return g({messages:x}),(s,_)=>{const o=b("i18n-t");return n(),l("video",G,[e("source",{src:s.attachment.href,type:s.attachment.mimetype},null,8,H),m(o,{keypath:"filePreview.video.text"},{link:h(()=>[e("a",{href:s.attachment.href},a(s.attachment.name),9,J)]),_:1})])}}}),O=v({__name:"FilePreview",props:{attachment:{}},setup(u){const s={image:{component:W,regex:/image\/.*/},video:{component:L,regex:/video\/.*/}};function _(o){for(const r in s){const{component:d,regex:f}=s[r];if(o.match(f))return d}return R}return(o,r)=>(n(),y(S(_(o.attachment.mimetype)),A(I({attachment:o.attachment})),null,16))}}),Q={key:0},X={key:1,class:"dialog_content"},Y={class:"attachment_view"},Z={class:"attachment_view_inner"},ee={key:1},te={class:"metadata"},se={class:"label_description"},ae={class:"label"},ne={class:"description"},oe={key:0,class:"label_description"},ie={class:"label"},ce={class:"description"},le={class:"label_description"},re={class:"label"},_e={class:"description"},de={class:"label_description"},me={class:"label_description"},pe={class:"label"},he={class:"description"},ve={class:"label_description"},ue={class:"label"},fe={class:"description"},we={class:"actions"},be={class:"main_action"},ye={class:"close_container"},ge={key:2},ke={key:0},Pe={key:1},$e=v({__name:"AttachmentPreview",setup(u){const{t:s}=g({messages:B}),_=T("cristal"),o=_.getWikiConfig().getType()=="FileSystem",r=_.getContainer().get("AttachmentPreview"),d=j(!1);q(()=>r.loading().value||r.attachment().value,p=>{p&&(d.value=!0)});function f(){d.value=!1}function C(){const p=c.value;p&&(window.location.href=p.href)}const c=r.attachment(),V=r.loading(),k=r.error();return(p,i)=>{const P=b("x-btn"),N=b("x-dialog");return n(),y(N,{modelValue:d.value,"onUpdate:modelValue":i[2]||(i[2]=w=>d.value=w),title:t(s)("attachment.preview.modal.title")},{activator:h(()=>i[3]||(i[3]=[e("span",{class:"x-dialog-attachment-preview-no-activator"},null,-1)])),default:h(()=>[t(V)?(n(),l("div",Q,a(t(s)("attachment.preview.loading")),1)):t(c)?(n(),l("div",X,[e("div",Y,[e("div",Z,[o?(n(),l("span",ee," The filesystem backend does not support attachment preview currently. ")):(n(),y(t(O),{key:0,attachment:t(c)},null,8,["attachment"]))])]),e("div",te,[e("div",se,[e("div",null,[e("span",ae,a(t(s)("attachment.preview.name.label")),1),e("span",ne,a(t(c).name),1)])]),t(c).author?(n(),l("div",oe,[e("div",null,[e("span",ie,a(t(s)("attachment.preview.postedBy.label")),1),e("span",ce,[m(t(z),{user:t(c).author},null,8,["user"])])])])):E("",!0),e("div",le,[e("div",null,[e("span",re,a(t(s)("attachment.preview.date.label")),1),e("span",_e,[m(t(F),{date:t(c).date},null,8,["date"])])])]),e("div",de,[e("div",me,[e("div",null,[e("span",pe,a(t(s)("attachment.preview.size.label")),1),e("span",he,[m(t(D),{size:t(c).size},null,8,["size"])])])])]),e("div",ve,[e("div",null,[e("span",ue,a(t(s)("attachment.preview.type.label")),1),e("span",fe,a(t(c).mimetype),1)]),i[4]||(i[4]=e("div",{class:"label_description"},null,-1))])]),e("div",we,[e("div",be,[m(P,{disabled:o,title:o?"file system backend does not support download currently":"",onClick:i[0]||(i[0]=w=>C())},{default:h(()=>[$(a(t(s)("attachment.preview.download.button")),1)]),_:1},8,["title"])]),e("div",ye,[m(P,{class:"close",variant:"primary",onClick:i[1]||(i[1]=w=>f())},{default:h(()=>[$(a(t(s)("attachment.preview.close.button")),1)]),_:1})])])])):(n(),l("div",ge,[t(k)?(n(),l("div",ke,a(t(k)),1)):(n(),l("div",Pe,a(t(s)("attachment.preview.error.unknown")),1))]))]),_:1},8,["modelValue","title"])}}}),Ve=K($e,[["__scopeId","data-v-1b64cb24"]]);export{Ve as default};
|
|
2
|
+
//# sourceMappingURL=AttachmentPreview-DRAzGcqn.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AttachmentPreview-DRAzGcqn.js","sources":["../../../core/file-preview/file-preview-ui/src/translations.ts","../../../core/file-preview/file-preview-ui/src/vue/NoPreview.vue","../../../core/file-preview/file-preview-ui/src/vue/preview/VideoFilePreview.vue","../../../core/file-preview/file-preview-ui/src/vue/FilePreview.vue","../../../core/attachments/attachments-ui/src/vue/AttachmentPreview.vue"],"sourcesContent":["/*\n * See the LICENSE file distributed with this work for additional\n * information regarding copyright ownership.\n *\n * This is free software; you can redistribute it and/or modify it\n * under the terms of the GNU Lesser General Public License as\n * published by the Free Software Foundation; either version 2.1 of\n * the License, or (at your option) any later version.\n *\n * This software is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with this software; if not, write to the Free\n * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n * 02110-1301 USA, or see the FSF site: http://www.fsf.org.\n */\n\nimport en from \"../langs/translation-en.json\";\n\nconst translations: Record<string, Record<string, string>> = {\n en,\n};\nexport default translations;\n","<!--\nSee the LICENSE file distributed with this work for additional\ninformation regarding copyright ownership.\n\nThis is free software; you can redistribute it and/or modify it\nunder the terms of the GNU Lesser General Public License as\npublished by the Free Software Foundation; either version 2.1 of\nthe License, or (at your option) any later version.\n\nThis software is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\nLesser General Public License for more details.\n\nYou should have received a copy of the GNU Lesser General Public\nLicense along with this software; if not, write to the Free\nSoftware Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n02110-1301 USA, or see the FSF site: http://www.fsf.org.\n-->\n<script setup lang=\"ts\">\nimport messages from \"../translations\";\nimport { useI18n } from \"vue-i18n\";\n\nconst { t } = useI18n({\n messages,\n});\n</script>\n\n<template>\n {{ t(\"No preview available\") }}\n</template>\n\n<style scoped></style>\n","<!--\nSee the LICENSE file distributed with this work for additional\ninformation regarding copyright ownership.\n\nThis is free software; you can redistribute it and/or modify it\nunder the terms of the GNU Lesser General Public License as\npublished by the Free Software Foundation; either version 2.1 of\nthe License, or (at your option) any later version.\n\nThis software is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\nLesser General Public License for more details.\n\nYou should have received a copy of the GNU Lesser General Public\nLicense along with this software; if not, write to the Free\nSoftware Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n02110-1301 USA, or see the FSF site: http://www.fsf.org.\n-->\n<script setup lang=\"ts\">\nimport messages from \"../../translations\";\nimport { Attachment } from \"@xwiki/cristal-attachments-api\";\nimport { useI18n } from \"vue-i18n\";\n\ndefineProps<{ attachment: Attachment }>();\n\nuseI18n({\n messages,\n});\n</script>\n\n<template>\n <video controls>\n <source :src=\"attachment.href\" :type=\"attachment.mimetype\" />\n <i18n-t keypath=\"filePreview.video.text\">\n <template #link>\n <a :href=\"attachment.href\">{{ attachment.name }}</a>\n </template>\n </i18n-t>\n </video>\n</template>\n\n<style scoped></style>\n","<!--\nSee the LICENSE file distributed with this work for additional\ninformation regarding copyright ownership.\n\nThis is free software; you can redistribute it and/or modify it\nunder the terms of the GNU Lesser General Public License as\npublished by the Free Software Foundation; either version 2.1 of\nthe License, or (at your option) any later version.\n\nThis software is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\nLesser General Public License for more details.\n\nYou should have received a copy of the GNU Lesser General Public\nLicense along with this software; if not, write to the Free\nSoftware Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n02110-1301 USA, or see the FSF site: http://www.fsf.org.\n-->\n<script setup lang=\"ts\">\nimport NoPreview from \"./NoPreview.vue\";\nimport ImageFilePreview from \"./preview/ImageFilePreview.vue\";\nimport VideoFilePreview from \"./preview/VideoFilePreview.vue\";\nimport { Attachment } from \"@xwiki/cristal-attachments-api\";\nimport type { Component } from \"vue\";\n\ndefineProps<{ attachment: Attachment }>();\ntype AttachmentsMap = {\n [key: string]: { component: Component; regex: RegExp };\n};\n// TODO: to be moved to a component base approach.\nconst attachmentsMap: AttachmentsMap = {\n image: { component: ImageFilePreview, regex: /image\\/.*/ },\n // TODO: pdf preview is currently disabled as it does not work on Chrome and Electron.\n // application: { component: ApplicationFilePreview, regex: /application\\/pdf/ },\n video: { component: VideoFilePreview, regex: /video\\/.*/ },\n};\n\nfunction resolve(mimetype: string): Component {\n for (const key in attachmentsMap) {\n const { component, regex } = attachmentsMap[key];\n if (mimetype.match(regex)) {\n return component;\n }\n }\n return NoPreview;\n}\n</script>\n\n<template>\n <component\n :is=\"resolve(attachment.mimetype)\"\n v-bind=\"{ attachment }\"\n ></component>\n</template>\n\n<style scoped></style>\n","<!--\nSee the LICENSE file distributed with this work for additional\ninformation regarding copyright ownership.\n\nThis is free software; you can redistribute it and/or modify it\nunder the terms of the GNU Lesser General Public License as\npublished by the Free Software Foundation; either version 2.1 of\nthe License, or (at your option) any later version.\n\nThis software is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\nLesser General Public License for more details.\n\nYou should have received a copy of the GNU Lesser General Public\nLicense along with this software; if not, write to the Free\nSoftware Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n02110-1301 USA, or see the FSF site: http://www.fsf.org.\n-->\n<script setup lang=\"ts\">\nimport messages from \"../translations\";\nimport { Attachment, AttachmentPreview } from \"@xwiki/cristal-attachments-api\";\nimport { Date } from \"@xwiki/cristal-date-ui\";\nimport { FilePreview, FileSize } from \"@xwiki/cristal-file-preview-ui\";\nimport { User } from \"@xwiki/cristal-user-ui\";\nimport { Ref, inject, ref, watch } from \"vue\";\nimport { useI18n } from \"vue-i18n\";\nimport type { CristalApp } from \"@xwiki/cristal-api\";\n\nconst { t } = useI18n({\n messages,\n});\n\nconst cristal: CristalApp = inject<CristalApp>(\"cristal\")!;\n\nconst isFileSytem = cristal.getWikiConfig().getType() == \"FileSystem\";\n\nconst attachmentPreview = cristal\n .getContainer()\n .get<AttachmentPreview>(\"AttachmentPreview\")!;\n\nconst openedDialog: Ref<boolean> = ref(false);\n\nwatch(\n () => {\n // Wait for the preview to be loading or with a value before opening the\n // modal.\n return (\n attachmentPreview.loading().value || attachmentPreview.attachment().value\n );\n },\n (open) => {\n if (open) {\n openedDialog.value = true;\n }\n },\n);\n\nfunction close() {\n openedDialog.value = false;\n}\n\nfunction download() {\n // TODO: make sure this is also working with electron somehow\n const value = attachment.value;\n if (value) {\n window.location.href = value.href;\n }\n}\n\nconst attachment: Ref<Attachment | undefined> = attachmentPreview.attachment();\n\nconst loading = attachmentPreview.loading();\nconst error = attachmentPreview.error();\n</script>\n\n<template>\n <x-dialog v-model=\"openedDialog\" :title=\"t('attachment.preview.modal.title')\">\n <template #activator>\n <!-- No activator, the modal is opened when the user clicks on an attachment link. -->\n <span class=\"x-dialog-attachment-preview-no-activator\"></span>\n </template>\n <template #default>\n <div v-if=\"loading\">{{ t(\"attachment.preview.loading\") }}</div>\n <div v-else-if=\"attachment\" class=\"dialog_content\">\n <!-- TODO: abstract to allow preview based on the type -->\n <div class=\"attachment_view\">\n <div class=\"attachment_view_inner\">\n <file-preview v-if=\"!isFileSytem\" :attachment=\"attachment\" />\n <span v-else>\n The filesystem backend does not support attachment preview\n currently.\n </span>\n </div>\n </div>\n <div class=\"metadata\">\n <!-- TODO make a component with key:value -->\n <div class=\"label_description\">\n <div>\n <span class=\"label\">\n {{ t(\"attachment.preview.name.label\") }}\n </span>\n <span class=\"description\">{{ attachment.name }}</span>\n </div>\n </div>\n <div v-if=\"attachment.author\" class=\"label_description\">\n <div>\n <span class=\"label\">\n {{ t(\"attachment.preview.postedBy.label\") }}\n </span>\n <span class=\"description\">\n <user :user=\"attachment.author\" />\n </span>\n </div>\n </div>\n <div class=\"label_description\">\n <div>\n <span class=\"label\">\n {{ t(\"attachment.preview.date.label\") }}\n </span>\n <span class=\"description\">\n <date :date=\"attachment.date\" />\n </span>\n </div>\n </div>\n <div class=\"label_description\">\n <div class=\"label_description\">\n <div>\n <span class=\"label\">\n {{ t(\"attachment.preview.size.label\") }}\n </span>\n <span class=\"description\">\n <file-size :size=\"attachment.size\" />\n </span>\n </div>\n </div>\n </div>\n <div class=\"label_description\">\n <div>\n <span class=\"label\">\n {{ t(\"attachment.preview.type.label\") }}\n </span>\n <span class=\"description\">{{ attachment.mimetype }}</span>\n </div>\n <div class=\"label_description\"></div>\n </div>\n </div>\n <div class=\"actions\">\n <!-- TODO: top-right close button. -->\n <div class=\"main_action\">\n <x-btn\n :disabled=\"isFileSytem\"\n :title=\"\n isFileSytem\n ? 'file system backend does not support download currently'\n : ''\n \"\n @click=\"download()\"\n >\n {{ t(\"attachment.preview.download.button\") }}\n </x-btn>\n </div>\n <div class=\"close_container\">\n <x-btn class=\"close\" variant=\"primary\" @click=\"close()\">\n {{ t(\"attachment.preview.close.button\") }}\n </x-btn>\n </div>\n </div>\n </div>\n <div v-else>\n <div v-if=\"error\">{{ error }}</div>\n <div v-else>\n {{ t(\"attachment.preview.error.unknown\") }}\n </div>\n </div>\n </template>\n </x-dialog>\n</template>\n\n<style scoped>\n/* Prevent the dialog section of the modal to be displayed, to prevent click on it, which would show the popup without\nan attachments on empty pages. */\n:global(*:has(> .x-dialog-attachment-preview-no-activator)) {\n display: none;\n}\n.dialog_content {\n display: grid;\n height: 80vh;\n grid-auto-flow: column;\n grid-template-columns: 6fr 1fr;\n grid-template-rows: 1fr auto;\n gap: 16px 16px;\n grid-template-areas:\n \"attachment_view metadata\"\n \"actions actions\";\n}\n\n.metadata {\n grid-area: metadata;\n display: flex;\n flex-flow: column;\n gap: 8px;\n}\n\n.actions {\n grid-area: actions;\n display: grid;\n grid-template-columns: 1fr auto;\n gap: var(--cr-spacing-medium);\n\n .main_action {\n display: flex;\n gap: var(--cr-spacing-medium);\n }\n\n .close_container {\n justify-self: end;\n }\n}\n\n.attachment_view {\n background-color: var(--cr-color-neutral-100);\n border-radius: var(--cr-border-radius-large);\n grid-area: attachment_view;\n overflow: auto;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.attachment_view img {\n max-height: 70vh;\n display: block;\n}\n\n.label_description {\n display: flex;\n flex-flow: column;\n gap: 4px;\n\n .label {\n display: block;\n font-size: var(--cr-font-size-x-small);\n }\n\n .description {\n font-weight: var(--cr-font-weight-bold);\n font-size: var(--cr-font-size-small);\n }\n}\n\n@container xwCristal (max-width: 600px) {\n .dialog_content {\n display: grid;\n grid-template-columns: 1fr;\n grid-template-rows: 1fr;\n grid-template-areas:\n \"attachment_view\"\n \"metadata\"\n \"actions\";\n\n .attachment_view img {\n width: 100%;\n }\n }\n}\n\n/*TODO: Try to remove these Vuetify only styles*/\n\n:global(.v-overlay) {\n container: vuetifyCristal;\n container-type: size;\n}\n\n@container vuetifyCristal (max-width: 600px) {\n .dialog_content {\n grid-template-columns: 1fr;\n grid-template-rows: 1fr;\n grid-template-areas:\n \"attachment_view\"\n \"metadata\"\n \"actions\";\n\n .attachment_view img {\n width: 100%;\n }\n }\n}\n</style>\n"],"names":["translations","en","t","useI18n","messages","attachmentsMap","ImageFilePreview","VideoFilePreview","resolve","mimetype","key","component","regex","NoPreview","cristal","inject","isFileSytem","attachmentPreview","openedDialog","ref","watch","open","close","download","value","attachment","loading","error"],"mappings":"wWAsBMA,EAAuD,CAC3D,GAAAC,CACF,mCCDM,KAAA,CAAE,EAAAC,CAAE,EAAIC,EAAQ,CAAA,SACpBC,CAAA,CACD,gUCCO,OAAAD,EAAA,CAAA,SACNC,CAAA,CACD,kTCGD,MAAMC,EAAiC,CACrC,MAAO,CAAE,UAAWC,EAAkB,MAAO,WAAY,EAGzD,MAAO,CAAE,UAAWC,EAAkB,MAAO,WAAY,CAAA,EAG3D,SAASC,EAAQC,EAA6B,CAC5C,UAAWC,KAAOL,EAAgB,CAChC,KAAM,CAAE,UAAAM,EAAW,MAAAC,CAAM,EAAIP,EAAeK,CAAG,EAC3C,GAAAD,EAAS,MAAMG,CAAK,EACf,OAAAD,CAEX,CACO,OAAAE,CACT,0xBCjBM,KAAA,CAAE,EAAAX,CAAE,EAAIC,EAAQ,CAAA,SACpBC,CAAA,CACD,EAEKU,EAAsBC,EAAmB,SAAS,EAElDC,EAAcF,EAAQ,cAAc,EAAE,WAAa,aAEnDG,EAAoBH,EACvB,aAAa,EACb,IAAuB,mBAAmB,EAEvCI,EAA6BC,EAAI,EAAK,EAE5CC,EACE,IAIIH,EAAkB,UAAU,OAASA,EAAkB,WAAa,EAAA,MAGvEI,GAAS,CACJA,IACFH,EAAa,MAAQ,GAEzB,CAAA,EAGF,SAASI,GAAQ,CACfJ,EAAa,MAAQ,EACvB,CAEA,SAASK,GAAW,CAElB,MAAMC,EAAQC,EAAW,MACrBD,IACK,OAAA,SAAS,KAAOA,EAAM,KAEjC,CAEM,MAAAC,EAA0CR,EAAkB,aAE5DS,EAAUT,EAAkB,UAC5BU,EAAQV,EAAkB"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{h as x,q as h,n as D,b2 as I,b3 as M,j as g,u as n,o as c,p as d,l as r,w as s,x as p,t as m,b4 as B,m as U,a8 as A,F as N,k as f,aJ as P,a6 as V,b5 as j}from"./index-CysseUUr.js";import{t as b}from"./translations-Cp-1FL95.js";async function F(u){let e,a,o=!1;try{const t=await u.getUserDetails();e=t.profile,a=t.name}catch(t){console.log(t),o=!0}return{profile:e,name:a,error:o}}const S=["href"],T={key:1},$=x({__name:"UserDetails",async setup(u){let e,a;const{t:o}=h({messages:b}),t=D("cristal"),l=t.getContainer().get("AuthenticationManagerProvider").get(),_=t.getContainer().get(I),{profile:y,name:k,error:v}=([e,a]=M(()=>F(l)),e=await e,a(),e);function w(){l.logout().then(()=>_.reload())}return(q,i)=>{const C=g("x-btn");return n(v)?(c(),d("span",T,m(n(o)("userDetails.error")),1)):(c(),d(N,{key:0},[r(n(B),{keypath:"userDescription",tag:"span"},{default:s(()=>[p("a",{href:n(y)},m(n(k)),9,S)]),_:1}),i[0]||(i[0]=p("br",null,null,-1)),i[1]||(i[1]=p("br",null,null,-1)),r(C,{variant:"danger",onClick:A(w,["prevent"])},{default:s(()=>[U(m(n(o)("logout")),1)]),_:1})],64))}}}),L=x({__name:"LoggedInMenu",setup(u){const{t:e}=h({messages:b});return(a,o)=>{const t=g("x-btn"),l=g("x-dialog");return c(),f(l,{width:"auto",title:n(e)("loggedInUserModal.title")},{activator:s(({props:_})=>[r(t,{variant:"primary"},{default:s(()=>[r(n(P),V({name:"person"},_),null,16)]),_:2},1024)]),default:s(()=>[(c(),f(j,null,{default:s(()=>[r($)]),_:1}))]),_:1},8,["title"])}}});export{L as default};
|
|
2
|
+
//# sourceMappingURL=LoggedInMenu-BJGw1rHa.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LoggedInMenu-BJGw1rHa.js","sources":["../../../core/authentication/authentication-ui/src/vue/utils/getUserProfile.ts","../../../core/authentication/authentication-ui/src/vue/UserDetails.vue","../../../core/authentication/authentication-ui/src/vue/LoggedInMenu.vue"],"sourcesContent":["/*\n * See the LICENSE file distributed with this work for additional\n * information regarding copyright ownership.\n *\n * This is free software; you can redistribute it and/or modify it\n * under the terms of the GNU Lesser General Public License as\n * published by the Free Software Foundation; either version 2.1 of\n * the License, or (at your option) any later version.\n *\n * This software is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with this software; if not, write to the Free\n * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n * 02110-1301 USA, or see the FSF site: http://www.fsf.org.\n */\n\nimport type { AuthenticationManager } from \"@xwiki/cristal-authentication-api\";\n\n/**\n * Access to user profile.\n *\n * @returns the name and profile url, and an error status\n * @since 0.11\n */\nexport async function getUserProfile(\n authenticationManager: AuthenticationManager,\n): Promise<{\n name: string | undefined;\n profile: string | undefined;\n error: boolean;\n}> {\n let profile = undefined;\n let name = undefined;\n let error = false;\n try {\n const details = await authenticationManager.getUserDetails();\n profile = details.profile;\n name = details.name;\n } catch (e) {\n console.log(e);\n error = true;\n }\n return { profile, name, error };\n}\n","<!--\nSee the LICENSE file distributed with this work for additional\ninformation regarding copyright ownership.\n\nThis is free software; you can redistribute it and/or modify it\nunder the terms of the GNU Lesser General Public License as\npublished by the Free Software Foundation; either version 2.1 of\nthe License, or (at your option) any later version.\n\nThis software is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\nLesser General Public License for more details.\n\nYou should have received a copy of the GNU Lesser General Public\nLicense along with this software; if not, write to the Free\nSoftware Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n02110-1301 USA, or see the FSF site: http://www.fsf.org.\n-->\n<script setup lang=\"ts\">\nimport { getUserProfile } from \"./utils/getUserProfile\";\nimport messages from \"../translations\";\nimport { CristalApp } from \"@xwiki/cristal-api\";\nimport { BrowserApi, name as browserApiName } from \"@xwiki/cristal-browser-api\";\nimport { inject } from \"vue\";\nimport { I18nT, useI18n } from \"vue-i18n\";\nimport type { AuthenticationManagerProvider } from \"@xwiki/cristal-authentication-api\";\n\nconst { t } = useI18n({\n messages,\n});\n\nconst cristal = inject<CristalApp>(\"cristal\")!;\n\nconst authenticationManager = cristal\n .getContainer()\n .get<AuthenticationManagerProvider>(\"AuthenticationManagerProvider\")\n .get()!;\n\nconst browserApi = cristal.getContainer().get<BrowserApi>(browserApiName);\n\nconst { profile, name, error } = await getUserProfile(authenticationManager);\n\nfunction logout() {\n authenticationManager.logout().then(() => browserApi.reload());\n}\n</script>\n\n<template>\n <template v-if=\"!error\">\n <i18n-t keypath=\"userDescription\" tag=\"span\">\n <a :href=\"profile\">{{ name }}</a>\n </i18n-t>\n <br />\n <br />\n <x-btn variant=\"danger\" @click.prevent=\"logout\">{{ t(\"logout\") }}</x-btn>\n </template>\n <span v-else>{{ t(\"userDetails.error\") }}</span>\n</template>\n","<!--\nSee the LICENSE file distributed with this work for additional\ninformation regarding copyright ownership.\n\nThis is free software; you can redistribute it and/or modify it\nunder the terms of the GNU Lesser General Public License as\npublished by the Free Software Foundation; either version 2.1 of\nthe License, or (at your option) any later version.\n\nThis software is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\nLesser General Public License for more details.\n\nYou should have received a copy of the GNU Lesser General Public\nLicense along with this software; if not, write to the Free\nSoftware Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n02110-1301 USA, or see the FSF site: http://www.fsf.org.\n-->\n\n<script setup lang=\"ts\">\nimport UserDetails from \"./UserDetails.vue\";\nimport messages from \"../translations\";\nimport { CIcon } from \"@xwiki/cristal-icons\";\nimport { useI18n } from \"vue-i18n\";\n\nconst { t } = useI18n({\n messages,\n});\n</script>\n\n<template>\n <x-dialog width=\"auto\" :title=\"t('loggedInUserModal.title')\">\n <template #activator=\"{ props }\">\n <x-btn variant=\"primary\">\n <c-icon name=\"person\" v-bind=\"props\"></c-icon>\n </x-btn>\n </template>\n <template #default>\n <suspense>\n <user-details></user-details>\n </suspense>\n </template>\n </x-dialog>\n</template>\n"],"names":["getUserProfile","authenticationManager","profile","name","error","details","e","t","useI18n","messages","cristal","inject","browserApi","browserApiName","__temp","__restore","_withAsyncContext","logout"],"mappings":"0OA4BA,eAAsBA,EACpBC,EAKC,CACD,IAAIC,EACAC,EACAC,EAAQ,GACR,GAAA,CACI,MAAAC,EAAU,MAAMJ,EAAsB,iBAC5CC,EAAUG,EAAQ,QAClBF,EAAOE,EAAQ,WACRC,EAAG,CACV,QAAQ,IAAIA,CAAC,EACLF,EAAA,EACV,CACO,MAAA,CAAE,QAAAF,EAAS,KAAAC,EAAM,MAAAC,EAC1B,6ECnBM,KAAA,CAAE,EAAAG,CAAE,EAAIC,EAAQ,CAAA,SACpBC,CAAA,CACD,EAEKC,EAAUC,EAAmB,SAAS,EAEtCV,EAAwBS,EAC3B,aAAA,EACA,IAAmC,+BAA+B,EAClE,MAEGE,EAAaF,EAAQ,aAAa,EAAE,IAAgBG,CAAc,EAElE,CAAE,QAAAX,EAAS,KAAAC,EAAM,MAAAC,CAAU,GAAA,CAAAU,EAAAC,CAAA,EAAAC,EAAA,IAAMhB,EAAeC,CAAqB,CAAA,mBAE3E,SAASgB,GAAS,CAChBhB,EAAsB,SAAS,KAAK,IAAMW,EAAW,QAAQ,CAC/D,uaCnBM,KAAA,CAAE,EAAAL,CAAE,EAAIC,EAAQ,CAAA,SACpBC,CAAA,CACD"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{t as s}from"./translations-Cp-1FL95.js";import{h as r,q as i,n as c,j as m,u as e,o as l,k as u,w as p,m as _,t as g,y as f}from"./index-CysseUUr.js";const b=r({__name:"LoginMenu",setup(d){const{t:n}=i({messages:s}),t=c("cristal").getContainer().get("AuthenticationManagerProvider").get();function a(){t?.start()}return(C,h)=>{const o=m("x-btn");return e(t)?(l(),u(o,{key:0,size:"small",type:"submit",variant:"primary",onClick:a},{default:p(()=>[_(g(e(n)("login")),1)]),_:1})):f("",!0)}}});export{b as default};
|
|
2
|
+
//# sourceMappingURL=LoginMenu-Bt11nO2F.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LoginMenu-Bt11nO2F.js","sources":["../../../core/authentication/authentication-ui/src/vue/LoginMenu.vue"],"sourcesContent":["<!--\nSee the LICENSE file distributed with this work for additional\ninformation regarding copyright ownership.\n\nThis is free software; you can redistribute it and/or modify it\nunder the terms of the GNU Lesser General Public License as\npublished by the Free Software Foundation; either version 2.1 of\nthe License, or (at your option) any later version.\n\nThis software is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\nLesser General Public License for more details.\n\nYou should have received a copy of the GNU Lesser General Public\nLicense along with this software; if not, write to the Free\nSoftware Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n02110-1301 USA, or see the FSF site: http://www.fsf.org.\n-->\n\n<script lang=\"ts\" setup>\nimport messages from \"../translations\";\nimport { CristalApp } from \"@xwiki/cristal-api\";\nimport { inject } from \"vue\";\nimport { useI18n } from \"vue-i18n\";\nimport type { AuthenticationManagerProvider } from \"@xwiki/cristal-authentication-api\";\n\nconst { t } = useI18n({\n messages,\n});\n\nconst cristal = inject<CristalApp>(\"cristal\")!;\n\nconst authenticationManager = cristal\n .getContainer()\n .get<AuthenticationManagerProvider>(\"AuthenticationManagerProvider\")\n .get();\n\nfunction login() {\n authenticationManager?.start();\n}\n</script>\n\n<template>\n <x-btn\n v-if=\"authenticationManager\"\n size=\"small\"\n type=\"submit\"\n variant=\"primary\"\n @click=\"login\"\n >\n {{ t(\"login\") }}\n </x-btn>\n</template>\n"],"names":["t","useI18n","messages","authenticationManager","inject","login"],"mappings":"oMA2BM,KAAA,CAAE,EAAAA,CAAE,EAAIC,EAAQ,CAAA,SACpBC,CAAA,CACD,EAIKC,EAFUC,EAAmB,SAAS,EAGzC,aAAA,EACA,IAAmC,+BAA+B,EAClE,MAEH,SAASC,GAAQ,CACfF,GAAuB,MAAM,CAC/B"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{h as s,j as c,o as r,k as i,w as o,l as a,a6 as l,u as e,aJ as _,b0 as m,b1 as u}from"./index-CysseUUr.js";const x=s({__name:"c-config-menu",setup(f){return(g,p)=>{const n=c("x-dialog");return r(),i(n,{width:"auto",logo:e(u),title:"Configuration"},{activator:o(({props:t})=>[a(e(_),l({name:"gear"},t),null,16)]),default:o(()=>[a(m,{name:"config"})]),_:1},8,["logo"])}}});export{x as default};
|
|
2
|
+
//# sourceMappingURL=c-config-menu-C2f9l0AF.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"c-config-menu-C2f9l0AF.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as c,a as m}from"./chunk.
|
|
2
|
-
//# sourceMappingURL=chunk.
|
|
1
|
+
import{b as c,a as m}from"./chunk.UYAO2JRR-QUwaJ7JP.js";var a=new WeakMap,h=new WeakMap,n=new WeakMap,f=new WeakSet,l=new WeakMap,y=class{constructor(e,i){this.handleFormData=t=>{const s=this.options.disabled(this.host),r=this.options.name(this.host),o=this.options.value(this.host),d=this.host.tagName.toLowerCase()==="sl-button";this.host.isConnected&&!s&&!d&&typeof r=="string"&&r.length>0&&typeof o<"u"&&(Array.isArray(o)?o.forEach(p=>{t.formData.append(r,p.toString())}):t.formData.append(r,o.toString()))},this.handleFormSubmit=t=>{var s;const r=this.options.disabled(this.host),o=this.options.reportValidity;this.form&&!this.form.noValidate&&((s=a.get(this.form))==null||s.forEach(d=>{this.setUserInteracted(d,!0)})),this.form&&!this.form.noValidate&&!r&&!o(this.host)&&(t.preventDefault(),t.stopImmediatePropagation())},this.handleFormReset=()=>{this.options.setValue(this.host,this.options.defaultValue(this.host)),this.setUserInteracted(this.host,!1),l.set(this.host,[])},this.handleInteraction=t=>{const s=l.get(this.host);s.includes(t.type)||s.push(t.type),s.length===this.options.assumeInteractionOn.length&&this.setUserInteracted(this.host,!0)},this.checkFormValidity=()=>{if(this.form&&!this.form.noValidate){const t=this.form.querySelectorAll("*");for(const s of t)if(typeof s.checkValidity=="function"&&!s.checkValidity())return!1}return!0},this.reportFormValidity=()=>{if(this.form&&!this.form.noValidate){const t=this.form.querySelectorAll("*");for(const s of t)if(typeof s.reportValidity=="function"&&!s.reportValidity())return!1}return!0},(this.host=e).addController(this),this.options=m({form:t=>{const s=t.form;if(s){const o=t.getRootNode().querySelector(`#${s}`);if(o)return o}return t.closest("form")},name:t=>t.name,value:t=>t.value,defaultValue:t=>t.defaultValue,disabled:t=>{var s;return(s=t.disabled)!=null?s:!1},reportValidity:t=>typeof t.reportValidity=="function"?t.reportValidity():!0,checkValidity:t=>typeof t.checkValidity=="function"?t.checkValidity():!0,setValue:(t,s)=>t.value=s,assumeInteractionOn:["sl-input"]},i)}hostConnected(){const e=this.options.form(this.host);e&&this.attachForm(e),l.set(this.host,[]),this.options.assumeInteractionOn.forEach(i=>{this.host.addEventListener(i,this.handleInteraction)})}hostDisconnected(){this.detachForm(),l.delete(this.host),this.options.assumeInteractionOn.forEach(e=>{this.host.removeEventListener(e,this.handleInteraction)})}hostUpdated(){const e=this.options.form(this.host);e||this.detachForm(),e&&this.form!==e&&(this.detachForm(),this.attachForm(e)),this.host.hasUpdated&&this.setValidity(this.host.validity.valid)}attachForm(e){e?(this.form=e,a.has(this.form)?a.get(this.form).add(this.host):a.set(this.form,new Set([this.host])),this.form.addEventListener("formdata",this.handleFormData),this.form.addEventListener("submit",this.handleFormSubmit),this.form.addEventListener("reset",this.handleFormReset),h.has(this.form)||(h.set(this.form,this.form.reportValidity),this.form.reportValidity=()=>this.reportFormValidity()),n.has(this.form)||(n.set(this.form,this.form.checkValidity),this.form.checkValidity=()=>this.checkFormValidity())):this.form=void 0}detachForm(){if(!this.form)return;const e=a.get(this.form);e&&(e.delete(this.host),e.size<=0&&(this.form.removeEventListener("formdata",this.handleFormData),this.form.removeEventListener("submit",this.handleFormSubmit),this.form.removeEventListener("reset",this.handleFormReset),h.has(this.form)&&(this.form.reportValidity=h.get(this.form),h.delete(this.form)),n.has(this.form)&&(this.form.checkValidity=n.get(this.form),n.delete(this.form)),this.form=void 0))}setUserInteracted(e,i){i?f.add(e):f.delete(e),e.requestUpdate()}doAction(e,i){if(this.form){const t=document.createElement("button");t.type=e,t.style.position="absolute",t.style.width="0",t.style.height="0",t.style.clipPath="inset(50%)",t.style.overflow="hidden",t.style.whiteSpace="nowrap",i&&(t.name=i.name,t.value=i.value,["formaction","formenctype","formmethod","formnovalidate","formtarget"].forEach(s=>{i.hasAttribute(s)&&t.setAttribute(s,i.getAttribute(s))})),this.form.append(t),t.click(),t.remove()}}getForm(){var e;return(e=this.form)!=null?e:null}reset(e){this.doAction("reset",e)}submit(e){this.doAction("submit",e)}setValidity(e){const i=this.host,t=!!f.has(i),s=!!i.required;i.toggleAttribute("data-required",s),i.toggleAttribute("data-optional",!s),i.toggleAttribute("data-invalid",!e),i.toggleAttribute("data-valid",e),i.toggleAttribute("data-user-invalid",!e&&t),i.toggleAttribute("data-user-valid",e&&t)}updateValidity(){const e=this.host;this.setValidity(e.validity.valid)}emitInvalidEvent(e){const i=new CustomEvent("sl-invalid",{bubbles:!1,composed:!1,cancelable:!0,detail:{}});e||i.preventDefault(),this.host.dispatchEvent(i)||e?.preventDefault()}},u=Object.freeze({badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:!0,valueMissing:!1}),V=Object.freeze(c(m({},u),{valid:!1,valueMissing:!0})),g=Object.freeze(c(m({},u),{valid:!1,customError:!0}));export{y as F,V as a,g as c,u as v};
|
|
2
|
+
//# sourceMappingURL=chunk.2RCF7SLU-DvR3pudF.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chunk.KWPBDQ6I-Bf3dc1GJ.js","sources":["../../../node_modules/.pnpm/@shoelace-style+shoelace@2.15.1_@types+react@18.2.52/node_modules/@shoelace-style/shoelace/dist/chunks/chunk.KWPBDQ6I.js"],"sourcesContent":["import {\n __spreadProps,\n __spreadValues\n} from \"./chunk.IFDWM6P4.js\";\n\n// src/internal/form.ts\nvar formCollections = /* @__PURE__ */ new WeakMap();\nvar reportValidityOverloads = /* @__PURE__ */ new WeakMap();\nvar checkValidityOverloads = /* @__PURE__ */ new WeakMap();\nvar userInteractedControls = /* @__PURE__ */ new WeakSet();\nvar interactions = /* @__PURE__ */ new WeakMap();\nvar FormControlController = class {\n constructor(host, options) {\n this.handleFormData = (event) => {\n const disabled = this.options.disabled(this.host);\n const name = this.options.name(this.host);\n const value = this.options.value(this.host);\n const isButton = this.host.tagName.toLowerCase() === \"sl-button\";\n if (this.host.isConnected && !disabled && !isButton && typeof name === \"string\" && name.length > 0 && typeof value !== \"undefined\") {\n if (Array.isArray(value)) {\n value.forEach((val) => {\n event.formData.append(name, val.toString());\n });\n } else {\n event.formData.append(name, value.toString());\n }\n }\n };\n this.handleFormSubmit = (event) => {\n var _a;\n const disabled = this.options.disabled(this.host);\n const reportValidity = this.options.reportValidity;\n if (this.form && !this.form.noValidate) {\n (_a = formCollections.get(this.form)) == null ? void 0 : _a.forEach((control) => {\n this.setUserInteracted(control, true);\n });\n }\n if (this.form && !this.form.noValidate && !disabled && !reportValidity(this.host)) {\n event.preventDefault();\n event.stopImmediatePropagation();\n }\n };\n this.handleFormReset = () => {\n this.options.setValue(this.host, this.options.defaultValue(this.host));\n this.setUserInteracted(this.host, false);\n interactions.set(this.host, []);\n };\n this.handleInteraction = (event) => {\n const emittedEvents = interactions.get(this.host);\n if (!emittedEvents.includes(event.type)) {\n emittedEvents.push(event.type);\n }\n if (emittedEvents.length === this.options.assumeInteractionOn.length) {\n this.setUserInteracted(this.host, true);\n }\n };\n this.checkFormValidity = () => {\n if (this.form && !this.form.noValidate) {\n const elements = this.form.querySelectorAll(\"*\");\n for (const element of elements) {\n if (typeof element.checkValidity === \"function\") {\n if (!element.checkValidity()) {\n return false;\n }\n }\n }\n }\n return true;\n };\n this.reportFormValidity = () => {\n if (this.form && !this.form.noValidate) {\n const elements = this.form.querySelectorAll(\"*\");\n for (const element of elements) {\n if (typeof element.reportValidity === \"function\") {\n if (!element.reportValidity()) {\n return false;\n }\n }\n }\n }\n return true;\n };\n (this.host = host).addController(this);\n this.options = __spreadValues({\n form: (input) => {\n const formId = input.form;\n if (formId) {\n const root = input.getRootNode();\n const form = root.querySelector(`#${formId}`);\n if (form) {\n return form;\n }\n }\n return input.closest(\"form\");\n },\n name: (input) => input.name,\n value: (input) => input.value,\n defaultValue: (input) => input.defaultValue,\n disabled: (input) => {\n var _a;\n return (_a = input.disabled) != null ? _a : false;\n },\n reportValidity: (input) => typeof input.reportValidity === \"function\" ? input.reportValidity() : true,\n checkValidity: (input) => typeof input.checkValidity === \"function\" ? input.checkValidity() : true,\n setValue: (input, value) => input.value = value,\n assumeInteractionOn: [\"sl-input\"]\n }, options);\n }\n hostConnected() {\n const form = this.options.form(this.host);\n if (form) {\n this.attachForm(form);\n }\n interactions.set(this.host, []);\n this.options.assumeInteractionOn.forEach((event) => {\n this.host.addEventListener(event, this.handleInteraction);\n });\n }\n hostDisconnected() {\n this.detachForm();\n interactions.delete(this.host);\n this.options.assumeInteractionOn.forEach((event) => {\n this.host.removeEventListener(event, this.handleInteraction);\n });\n }\n hostUpdated() {\n const form = this.options.form(this.host);\n if (!form) {\n this.detachForm();\n }\n if (form && this.form !== form) {\n this.detachForm();\n this.attachForm(form);\n }\n if (this.host.hasUpdated) {\n this.setValidity(this.host.validity.valid);\n }\n }\n attachForm(form) {\n if (form) {\n this.form = form;\n if (formCollections.has(this.form)) {\n formCollections.get(this.form).add(this.host);\n } else {\n formCollections.set(this.form, /* @__PURE__ */ new Set([this.host]));\n }\n this.form.addEventListener(\"formdata\", this.handleFormData);\n this.form.addEventListener(\"submit\", this.handleFormSubmit);\n this.form.addEventListener(\"reset\", this.handleFormReset);\n if (!reportValidityOverloads.has(this.form)) {\n reportValidityOverloads.set(this.form, this.form.reportValidity);\n this.form.reportValidity = () => this.reportFormValidity();\n }\n if (!checkValidityOverloads.has(this.form)) {\n checkValidityOverloads.set(this.form, this.form.checkValidity);\n this.form.checkValidity = () => this.checkFormValidity();\n }\n } else {\n this.form = void 0;\n }\n }\n detachForm() {\n if (!this.form)\n return;\n const formCollection = formCollections.get(this.form);\n if (!formCollection) {\n return;\n }\n formCollection.delete(this.host);\n if (formCollection.size <= 0) {\n this.form.removeEventListener(\"formdata\", this.handleFormData);\n this.form.removeEventListener(\"submit\", this.handleFormSubmit);\n this.form.removeEventListener(\"reset\", this.handleFormReset);\n if (reportValidityOverloads.has(this.form)) {\n this.form.reportValidity = reportValidityOverloads.get(this.form);\n reportValidityOverloads.delete(this.form);\n }\n if (checkValidityOverloads.has(this.form)) {\n this.form.checkValidity = checkValidityOverloads.get(this.form);\n checkValidityOverloads.delete(this.form);\n }\n this.form = void 0;\n }\n }\n setUserInteracted(el, hasInteracted) {\n if (hasInteracted) {\n userInteractedControls.add(el);\n } else {\n userInteractedControls.delete(el);\n }\n el.requestUpdate();\n }\n doAction(type, submitter) {\n if (this.form) {\n const button = document.createElement(\"button\");\n button.type = type;\n button.style.position = \"absolute\";\n button.style.width = \"0\";\n button.style.height = \"0\";\n button.style.clipPath = \"inset(50%)\";\n button.style.overflow = \"hidden\";\n button.style.whiteSpace = \"nowrap\";\n if (submitter) {\n button.name = submitter.name;\n button.value = submitter.value;\n [\"formaction\", \"formenctype\", \"formmethod\", \"formnovalidate\", \"formtarget\"].forEach((attr) => {\n if (submitter.hasAttribute(attr)) {\n button.setAttribute(attr, submitter.getAttribute(attr));\n }\n });\n }\n this.form.append(button);\n button.click();\n button.remove();\n }\n }\n /** Returns the associated `<form>` element, if one exists. */\n getForm() {\n var _a;\n return (_a = this.form) != null ? _a : null;\n }\n /** Resets the form, restoring all the control to their default value */\n reset(submitter) {\n this.doAction(\"reset\", submitter);\n }\n /** Submits the form, triggering validation and form data injection. */\n submit(submitter) {\n this.doAction(\"submit\", submitter);\n }\n /**\n * Synchronously sets the form control's validity. Call this when you know the future validity but need to update\n * the host element immediately, i.e. before Lit updates the component in the next update.\n */\n setValidity(isValid) {\n const host = this.host;\n const hasInteracted = Boolean(userInteractedControls.has(host));\n const required = Boolean(host.required);\n host.toggleAttribute(\"data-required\", required);\n host.toggleAttribute(\"data-optional\", !required);\n host.toggleAttribute(\"data-invalid\", !isValid);\n host.toggleAttribute(\"data-valid\", isValid);\n host.toggleAttribute(\"data-user-invalid\", !isValid && hasInteracted);\n host.toggleAttribute(\"data-user-valid\", isValid && hasInteracted);\n }\n /**\n * Updates the form control's validity based on the current value of `host.validity.valid`. Call this when anything\n * that affects constraint validation changes so the component receives the correct validity states.\n */\n updateValidity() {\n const host = this.host;\n this.setValidity(host.validity.valid);\n }\n /**\n * Dispatches a non-bubbling, cancelable custom event of type `sl-invalid`.\n * If the `sl-invalid` event will be cancelled then the original `invalid`\n * event (which may have been passed as argument) will also be cancelled.\n * If no original `invalid` event has been passed then the `sl-invalid`\n * event will be cancelled before being dispatched.\n */\n emitInvalidEvent(originalInvalidEvent) {\n const slInvalidEvent = new CustomEvent(\"sl-invalid\", {\n bubbles: false,\n composed: false,\n cancelable: true,\n detail: {}\n });\n if (!originalInvalidEvent) {\n slInvalidEvent.preventDefault();\n }\n if (!this.host.dispatchEvent(slInvalidEvent)) {\n originalInvalidEvent == null ? void 0 : originalInvalidEvent.preventDefault();\n }\n }\n};\nvar validValidityState = Object.freeze({\n badInput: false,\n customError: false,\n patternMismatch: false,\n rangeOverflow: false,\n rangeUnderflow: false,\n stepMismatch: false,\n tooLong: false,\n tooShort: false,\n typeMismatch: false,\n valid: true,\n valueMissing: false\n});\nvar valueMissingValidityState = Object.freeze(__spreadProps(__spreadValues({}, validValidityState), {\n valid: false,\n valueMissing: true\n}));\nvar customErrorValidityState = Object.freeze(__spreadProps(__spreadValues({}, validValidityState), {\n valid: false,\n customError: true\n}));\n\nexport {\n formCollections,\n FormControlController,\n validValidityState,\n valueMissingValidityState,\n customErrorValidityState\n};\n"],"names":["formCollections","reportValidityOverloads","checkValidityOverloads","userInteractedControls","interactions","FormControlController","host","options","event","disabled","name","value","isButton","val","_a","reportValidity","control","emittedEvents","elements","element","__spreadValues","input","formId","form","formCollection","el","hasInteracted","type","submitter","button","attr","isValid","required","originalInvalidEvent","slInvalidEvent","validValidityState","valueMissingValidityState","__spreadProps","customErrorValidityState"],"mappings":"wDAMA,IAAIA,EAAkC,IAAI,QACtCC,EAA0C,IAAI,QAC9CC,EAAyC,IAAI,QAC7CC,EAAyC,IAAI,QAC7CC,EAA+B,IAAI,QACnCC,EAAwB,KAAM,CAChC,YAAYC,EAAMC,EAAS,CACzB,KAAK,eAAkBC,GAAU,CAC/B,MAAMC,EAAW,KAAK,QAAQ,SAAS,KAAK,IAAI,EAC1CC,EAAO,KAAK,QAAQ,KAAK,KAAK,IAAI,EAClCC,EAAQ,KAAK,QAAQ,MAAM,KAAK,IAAI,EACpCC,EAAW,KAAK,KAAK,QAAQ,YAAa,IAAK,YACjD,KAAK,KAAK,aAAe,CAACH,GAAY,CAACG,GAAY,OAAOF,GAAS,UAAYA,EAAK,OAAS,GAAK,OAAOC,EAAU,MACjH,MAAM,QAAQA,CAAK,EACrBA,EAAM,QAASE,GAAQ,CACrBL,EAAM,SAAS,OAAOE,EAAMG,EAAI,SAAQ,CAAE,CACtD,CAAW,EAEDL,EAAM,SAAS,OAAOE,EAAMC,EAAM,SAAQ,CAAE,EAGtD,EACI,KAAK,iBAAoBH,GAAU,CACjC,IAAIM,EACJ,MAAML,EAAW,KAAK,QAAQ,SAAS,KAAK,IAAI,EAC1CM,EAAiB,KAAK,QAAQ,eAChC,KAAK,MAAQ,CAAC,KAAK,KAAK,cACzBD,EAAKd,EAAgB,IAAI,KAAK,IAAI,IAAM,MAAgBc,EAAG,QAASE,GAAY,CAC/E,KAAK,kBAAkBA,EAAS,EAAI,CAC9C,CAAS,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B,CAAK,EACID,GACHC,EAAe,eAAc,EAE1B,KAAK,KAAK,cAAcA,CAAc,GACDD,GAAqB,eAAc,CAE9E,CACH,EACIE,EAAqB,OAAO,OAAO,CACrC,SAAU,GACV,YAAa,GACb,gBAAiB,GACjB,cAAe,GACf,eAAgB,GAChB,aAAc,GACd,QAAS,GACT,SAAU,GACV,aAAc,GACd,MAAO,GACP,aAAc,EAChB,CAAC,EACGC,EAA4B,OAAO,OAAOC,EAAcjB,EAAe,CAAA,EAAIe,CAAkB,EAAG,CAClG,MAAO,GACP,aAAc,EAChB,CAAC,CAAC,EACEG,EAA2B,OAAO,OAAOD,EAAcjB,EAAe,CAAA,EAAIe,CAAkB,EAAG,CACjG,MAAO,GACP,YAAa,EACf,CAAC,CAAC","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"chunk.2RCF7SLU-DvR3pudF.js","sources":["../../../node_modules/.pnpm/@shoelace-style+shoelace@2.18.0_@types+react@18.2.52/node_modules/@shoelace-style/shoelace/dist/chunks/chunk.2RCF7SLU.js"],"sourcesContent":["import {\n __spreadProps,\n __spreadValues\n} from \"./chunk.B3BW2AY6.js\";\n\n// src/internal/form.ts\nvar formCollections = /* @__PURE__ */ new WeakMap();\nvar reportValidityOverloads = /* @__PURE__ */ new WeakMap();\nvar checkValidityOverloads = /* @__PURE__ */ new WeakMap();\nvar userInteractedControls = /* @__PURE__ */ new WeakSet();\nvar interactions = /* @__PURE__ */ new WeakMap();\nvar FormControlController = class {\n constructor(host, options) {\n this.handleFormData = (event) => {\n const disabled = this.options.disabled(this.host);\n const name = this.options.name(this.host);\n const value = this.options.value(this.host);\n const isButton = this.host.tagName.toLowerCase() === \"sl-button\";\n if (this.host.isConnected && !disabled && !isButton && typeof name === \"string\" && name.length > 0 && typeof value !== \"undefined\") {\n if (Array.isArray(value)) {\n value.forEach((val) => {\n event.formData.append(name, val.toString());\n });\n } else {\n event.formData.append(name, value.toString());\n }\n }\n };\n this.handleFormSubmit = (event) => {\n var _a;\n const disabled = this.options.disabled(this.host);\n const reportValidity = this.options.reportValidity;\n if (this.form && !this.form.noValidate) {\n (_a = formCollections.get(this.form)) == null ? void 0 : _a.forEach((control) => {\n this.setUserInteracted(control, true);\n });\n }\n if (this.form && !this.form.noValidate && !disabled && !reportValidity(this.host)) {\n event.preventDefault();\n event.stopImmediatePropagation();\n }\n };\n this.handleFormReset = () => {\n this.options.setValue(this.host, this.options.defaultValue(this.host));\n this.setUserInteracted(this.host, false);\n interactions.set(this.host, []);\n };\n this.handleInteraction = (event) => {\n const emittedEvents = interactions.get(this.host);\n if (!emittedEvents.includes(event.type)) {\n emittedEvents.push(event.type);\n }\n if (emittedEvents.length === this.options.assumeInteractionOn.length) {\n this.setUserInteracted(this.host, true);\n }\n };\n this.checkFormValidity = () => {\n if (this.form && !this.form.noValidate) {\n const elements = this.form.querySelectorAll(\"*\");\n for (const element of elements) {\n if (typeof element.checkValidity === \"function\") {\n if (!element.checkValidity()) {\n return false;\n }\n }\n }\n }\n return true;\n };\n this.reportFormValidity = () => {\n if (this.form && !this.form.noValidate) {\n const elements = this.form.querySelectorAll(\"*\");\n for (const element of elements) {\n if (typeof element.reportValidity === \"function\") {\n if (!element.reportValidity()) {\n return false;\n }\n }\n }\n }\n return true;\n };\n (this.host = host).addController(this);\n this.options = __spreadValues({\n form: (input) => {\n const formId = input.form;\n if (formId) {\n const root = input.getRootNode();\n const form = root.querySelector(`#${formId}`);\n if (form) {\n return form;\n }\n }\n return input.closest(\"form\");\n },\n name: (input) => input.name,\n value: (input) => input.value,\n defaultValue: (input) => input.defaultValue,\n disabled: (input) => {\n var _a;\n return (_a = input.disabled) != null ? _a : false;\n },\n reportValidity: (input) => typeof input.reportValidity === \"function\" ? input.reportValidity() : true,\n checkValidity: (input) => typeof input.checkValidity === \"function\" ? input.checkValidity() : true,\n setValue: (input, value) => input.value = value,\n assumeInteractionOn: [\"sl-input\"]\n }, options);\n }\n hostConnected() {\n const form = this.options.form(this.host);\n if (form) {\n this.attachForm(form);\n }\n interactions.set(this.host, []);\n this.options.assumeInteractionOn.forEach((event) => {\n this.host.addEventListener(event, this.handleInteraction);\n });\n }\n hostDisconnected() {\n this.detachForm();\n interactions.delete(this.host);\n this.options.assumeInteractionOn.forEach((event) => {\n this.host.removeEventListener(event, this.handleInteraction);\n });\n }\n hostUpdated() {\n const form = this.options.form(this.host);\n if (!form) {\n this.detachForm();\n }\n if (form && this.form !== form) {\n this.detachForm();\n this.attachForm(form);\n }\n if (this.host.hasUpdated) {\n this.setValidity(this.host.validity.valid);\n }\n }\n attachForm(form) {\n if (form) {\n this.form = form;\n if (formCollections.has(this.form)) {\n formCollections.get(this.form).add(this.host);\n } else {\n formCollections.set(this.form, /* @__PURE__ */ new Set([this.host]));\n }\n this.form.addEventListener(\"formdata\", this.handleFormData);\n this.form.addEventListener(\"submit\", this.handleFormSubmit);\n this.form.addEventListener(\"reset\", this.handleFormReset);\n if (!reportValidityOverloads.has(this.form)) {\n reportValidityOverloads.set(this.form, this.form.reportValidity);\n this.form.reportValidity = () => this.reportFormValidity();\n }\n if (!checkValidityOverloads.has(this.form)) {\n checkValidityOverloads.set(this.form, this.form.checkValidity);\n this.form.checkValidity = () => this.checkFormValidity();\n }\n } else {\n this.form = void 0;\n }\n }\n detachForm() {\n if (!this.form)\n return;\n const formCollection = formCollections.get(this.form);\n if (!formCollection) {\n return;\n }\n formCollection.delete(this.host);\n if (formCollection.size <= 0) {\n this.form.removeEventListener(\"formdata\", this.handleFormData);\n this.form.removeEventListener(\"submit\", this.handleFormSubmit);\n this.form.removeEventListener(\"reset\", this.handleFormReset);\n if (reportValidityOverloads.has(this.form)) {\n this.form.reportValidity = reportValidityOverloads.get(this.form);\n reportValidityOverloads.delete(this.form);\n }\n if (checkValidityOverloads.has(this.form)) {\n this.form.checkValidity = checkValidityOverloads.get(this.form);\n checkValidityOverloads.delete(this.form);\n }\n this.form = void 0;\n }\n }\n setUserInteracted(el, hasInteracted) {\n if (hasInteracted) {\n userInteractedControls.add(el);\n } else {\n userInteractedControls.delete(el);\n }\n el.requestUpdate();\n }\n doAction(type, submitter) {\n if (this.form) {\n const button = document.createElement(\"button\");\n button.type = type;\n button.style.position = \"absolute\";\n button.style.width = \"0\";\n button.style.height = \"0\";\n button.style.clipPath = \"inset(50%)\";\n button.style.overflow = \"hidden\";\n button.style.whiteSpace = \"nowrap\";\n if (submitter) {\n button.name = submitter.name;\n button.value = submitter.value;\n [\"formaction\", \"formenctype\", \"formmethod\", \"formnovalidate\", \"formtarget\"].forEach((attr) => {\n if (submitter.hasAttribute(attr)) {\n button.setAttribute(attr, submitter.getAttribute(attr));\n }\n });\n }\n this.form.append(button);\n button.click();\n button.remove();\n }\n }\n /** Returns the associated `<form>` element, if one exists. */\n getForm() {\n var _a;\n return (_a = this.form) != null ? _a : null;\n }\n /** Resets the form, restoring all the control to their default value */\n reset(submitter) {\n this.doAction(\"reset\", submitter);\n }\n /** Submits the form, triggering validation and form data injection. */\n submit(submitter) {\n this.doAction(\"submit\", submitter);\n }\n /**\n * Synchronously sets the form control's validity. Call this when you know the future validity but need to update\n * the host element immediately, i.e. before Lit updates the component in the next update.\n */\n setValidity(isValid) {\n const host = this.host;\n const hasInteracted = Boolean(userInteractedControls.has(host));\n const required = Boolean(host.required);\n host.toggleAttribute(\"data-required\", required);\n host.toggleAttribute(\"data-optional\", !required);\n host.toggleAttribute(\"data-invalid\", !isValid);\n host.toggleAttribute(\"data-valid\", isValid);\n host.toggleAttribute(\"data-user-invalid\", !isValid && hasInteracted);\n host.toggleAttribute(\"data-user-valid\", isValid && hasInteracted);\n }\n /**\n * Updates the form control's validity based on the current value of `host.validity.valid`. Call this when anything\n * that affects constraint validation changes so the component receives the correct validity states.\n */\n updateValidity() {\n const host = this.host;\n this.setValidity(host.validity.valid);\n }\n /**\n * Dispatches a non-bubbling, cancelable custom event of type `sl-invalid`.\n * If the `sl-invalid` event will be cancelled then the original `invalid`\n * event (which may have been passed as argument) will also be cancelled.\n * If no original `invalid` event has been passed then the `sl-invalid`\n * event will be cancelled before being dispatched.\n */\n emitInvalidEvent(originalInvalidEvent) {\n const slInvalidEvent = new CustomEvent(\"sl-invalid\", {\n bubbles: false,\n composed: false,\n cancelable: true,\n detail: {}\n });\n if (!originalInvalidEvent) {\n slInvalidEvent.preventDefault();\n }\n if (!this.host.dispatchEvent(slInvalidEvent)) {\n originalInvalidEvent == null ? void 0 : originalInvalidEvent.preventDefault();\n }\n }\n};\nvar validValidityState = Object.freeze({\n badInput: false,\n customError: false,\n patternMismatch: false,\n rangeOverflow: false,\n rangeUnderflow: false,\n stepMismatch: false,\n tooLong: false,\n tooShort: false,\n typeMismatch: false,\n valid: true,\n valueMissing: false\n});\nvar valueMissingValidityState = Object.freeze(__spreadProps(__spreadValues({}, validValidityState), {\n valid: false,\n valueMissing: true\n}));\nvar customErrorValidityState = Object.freeze(__spreadProps(__spreadValues({}, validValidityState), {\n valid: false,\n customError: true\n}));\n\nexport {\n formCollections,\n FormControlController,\n validValidityState,\n valueMissingValidityState,\n customErrorValidityState\n};\n"],"names":["formCollections","reportValidityOverloads","checkValidityOverloads","userInteractedControls","interactions","FormControlController","host","options","event","disabled","name","value","isButton","val","_a","reportValidity","control","emittedEvents","elements","element","__spreadValues","input","formId","form","formCollection","el","hasInteracted","type","submitter","button","attr","isValid","required","originalInvalidEvent","slInvalidEvent","validValidityState","valueMissingValidityState","__spreadProps","customErrorValidityState"],"mappings":"wDAMA,IAAIA,EAAkC,IAAI,QACtCC,EAA0C,IAAI,QAC9CC,EAAyC,IAAI,QAC7CC,EAAyC,IAAI,QAC7CC,EAA+B,IAAI,QACnCC,EAAwB,KAAM,CAChC,YAAYC,EAAMC,EAAS,CACzB,KAAK,eAAkBC,GAAU,CAC/B,MAAMC,EAAW,KAAK,QAAQ,SAAS,KAAK,IAAI,EAC1CC,EAAO,KAAK,QAAQ,KAAK,KAAK,IAAI,EAClCC,EAAQ,KAAK,QAAQ,MAAM,KAAK,IAAI,EACpCC,EAAW,KAAK,KAA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,MAAMzB,EAAO,KAAK,KACZoB,EAAgB,EAAQvB,EAAuB,IAAIG,CAAI,EACvD0B,EAAW,EAAQ1B,EAAK,SAC9BA,EAAK,gBAAgB,gBAAiB0B,CAAQ,EAC9C1B,EAAK,gBAAgB,gBAAiB,CAAC0B,CAAQ,EAC/C1B,EAAK,gBAAgB,eAAgB,CAACyB,CAAO,EAC7CzB,EAAK,gBAAgB,aAAcyB,CAAO,EAC1CzB,EAAK,gBAAgB,oBAAqB,CAACyB,GAAWL,CAAa,EACnEpB,EAAK,gBAAgB,kBAAmByB,GAAWL,CAAa,CACjE,CAKD,gBAAiB,CACf,MAAMpB,EAAO,KAAK,KAClB,KAAK,YAAYA,EAAK,SAAS,KAAK,CACrC,CAQD,iBAAiB2B,EAAsB,CACrC,MAAMC,EAAiB,IAAI,YAAY,aAAc,CACnD,QAAS,GACT,SAAU,GACV,WAAY,GACZ,OAAQ,CAAE,CAChB,CAAK,EACID,GACHC,EAAe,eAAc,EAE1B,KAAK,KAAK,cAAcA,CAAc,GACDD,GAAqB,eAAc,CAE9E,CACH,EACIE,EAAqB,OAAO,OAAO,CACrC,SAAU,GACV,YAAa,GACb,gBAAiB,GACjB,cAAe,GACf,eAAgB,GAChB,aAAc,GACd,QAAS,GACT,SAAU,GACV,aAAc,GACd,MAAO,GACP,aAAc,EAChB,CAAC,EACGC,EAA4B,OAAO,OAAOC,EAAcjB,EAAe,CAAA,EAAIe,CAAkB,EAAG,CAClG,MAAO,GACP,aAAc,EAChB,CAAC,CAAC,EACEG,EAA2B,OAAO,OAAOD,EAAcjB,EAAe,CAAA,EAAIe,CAAkB,EAAG,CACjG,MAAO,GACP,YAAa,EACf,CAAC,CAAC","x_google_ignoreList":[0]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as s,a}from"./chunk.
|
|
2
|
-
//# sourceMappingURL=chunk.
|
|
1
|
+
import{b as s,a}from"./chunk.UYAO2JRR-QUwaJ7JP.js";var u=new Map,f=new WeakMap;function c(e){return e??{keyframes:[],options:{duration:0}}}function o(e,t){return t.toLowerCase()==="rtl"?{keyframes:e.rtlKeyframes||e.keyframes,options:e.options}:e}function p(e,t){u.set(e,c(t))}function g(e,t,n){const r=f.get(e);if(r?.[t])return o(r[t],n.dir);const i=u.get(t);return i?o(i,n.dir):{keyframes:[],options:{duration:0}}}function l(e,t,n){return new Promise(r=>{if(n?.duration===1/0)throw new Error("Promise-based animations must be finite.");const i=e.animate(t,s(a({},n),{duration:m()?0:n.duration}));i.addEventListener("cancel",r,{once:!0}),i.addEventListener("finish",r,{once:!0})})}function h(e){return e=e.toString().toLowerCase(),e.indexOf("ms")>-1?parseFloat(e):e.indexOf("s")>-1?parseFloat(e)*1e3:parseFloat(e)}function m(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches}function A(e){return Promise.all(e.getAnimations().map(t=>new Promise(n=>{t.cancel(),requestAnimationFrame(n)})))}function w(e,t){return e.map(n=>s(a({},n),{height:n.height==="auto"?`${t}px`:n.height}))}export{A as a,l as b,w as c,m as d,g,h as p,p as s};
|
|
2
|
+
//# sourceMappingURL=chunk.3EPZX5HE-DMJLz_nd.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chunk.
|
|
1
|
+
{"version":3,"file":"chunk.3EPZX5HE-DMJLz_nd.js","sources":["../../../node_modules/.pnpm/@shoelace-style+shoelace@2.18.0_@types+react@18.2.52/node_modules/@shoelace-style/shoelace/dist/chunks/chunk.UW6SLYOK.js","../../../node_modules/.pnpm/@shoelace-style+shoelace@2.18.0_@types+react@18.2.52/node_modules/@shoelace-style/shoelace/dist/chunks/chunk.3EPZX5HE.js"],"sourcesContent":["import {\n __spreadProps,\n __spreadValues\n} from \"./chunk.B3BW2AY6.js\";\n\n// src/utilities/animation-registry.ts\nvar defaultAnimationRegistry = /* @__PURE__ */ new Map();\nvar customAnimationRegistry = /* @__PURE__ */ new WeakMap();\nfunction ensureAnimation(animation) {\n return animation != null ? animation : { keyframes: [], options: { duration: 0 } };\n}\nfunction getLogicalAnimation(animation, dir) {\n if (dir.toLowerCase() === \"rtl\") {\n return {\n keyframes: animation.rtlKeyframes || animation.keyframes,\n options: animation.options\n };\n }\n return animation;\n}\nfunction setDefaultAnimation(animationName, animation) {\n defaultAnimationRegistry.set(animationName, ensureAnimation(animation));\n}\nfunction setAnimation(el, animationName, animation) {\n customAnimationRegistry.set(el, __spreadProps(__spreadValues({}, customAnimationRegistry.get(el)), { [animationName]: ensureAnimation(animation) }));\n}\nfunction getAnimation(el, animationName, options) {\n const customAnimation = customAnimationRegistry.get(el);\n if (customAnimation == null ? void 0 : customAnimation[animationName]) {\n return getLogicalAnimation(customAnimation[animationName], options.dir);\n }\n const defaultAnimation = defaultAnimationRegistry.get(animationName);\n if (defaultAnimation) {\n return getLogicalAnimation(defaultAnimation, options.dir);\n }\n return {\n keyframes: [],\n options: { duration: 0 }\n };\n}\n\nexport {\n setDefaultAnimation,\n setAnimation,\n getAnimation\n};\n","import {\n __spreadProps,\n __spreadValues\n} from \"./chunk.B3BW2AY6.js\";\n\n// src/internal/animate.ts\nfunction animateTo(el, keyframes, options) {\n return new Promise((resolve) => {\n if ((options == null ? void 0 : options.duration) === Infinity) {\n throw new Error(\"Promise-based animations must be finite.\");\n }\n const animation = el.animate(keyframes, __spreadProps(__spreadValues({}, options), {\n duration: prefersReducedMotion() ? 0 : options.duration\n }));\n animation.addEventListener(\"cancel\", resolve, { once: true });\n animation.addEventListener(\"finish\", resolve, { once: true });\n });\n}\nfunction parseDuration(delay) {\n delay = delay.toString().toLowerCase();\n if (delay.indexOf(\"ms\") > -1) {\n return parseFloat(delay);\n }\n if (delay.indexOf(\"s\") > -1) {\n return parseFloat(delay) * 1e3;\n }\n return parseFloat(delay);\n}\nfunction prefersReducedMotion() {\n const query = window.matchMedia(\"(prefers-reduced-motion: reduce)\");\n return query.matches;\n}\nfunction stopAnimations(el) {\n return Promise.all(\n el.getAnimations().map((animation) => {\n return new Promise((resolve) => {\n animation.cancel();\n requestAnimationFrame(resolve);\n });\n })\n );\n}\nfunction shimKeyframesHeightAuto(keyframes, calculatedHeight) {\n return keyframes.map((keyframe) => __spreadProps(__spreadValues({}, keyframe), {\n height: keyframe.height === \"auto\" ? `${calculatedHeight}px` : keyframe.height\n }));\n}\n\nexport {\n animateTo,\n parseDuration,\n prefersReducedMotion,\n stopAnimations,\n shimKeyframesHeightAuto\n};\n"],"names":["defaultAnimationRegistry","customAnimationRegistry","ensureAnimation","animation","getLogicalAnimation","dir","setDefaultAnimation","animationName","getAnimation","el","options","customAnimation","defaultAnimation","animateTo","keyframes","resolve","__spreadProps","__spreadValues","prefersReducedMotion","parseDuration","delay","stopAnimations","shimKeyframesHeightAuto","calculatedHeight","keyframe"],"mappings":"mDAMA,IAAIA,EAA2C,IAAI,IAC/CC,EAA0C,IAAI,QAClD,SAASC,EAAgBC,EAAW,CAClC,OAAOA,GAAgC,CAAE,UAAW,GAAI,QAAS,CAAE,SAAU,CAAC,EAChF,CACA,SAASC,EAAoBD,EAAWE,EAAK,CAC3C,OAAIA,EAAI,YAAa,IAAK,MACjB,CACL,UAAWF,EAAU,cAAgBA,EAAU,UAC/C,QAASA,EAAU,OACzB,EAESA,CACT,CACA,SAASG,EAAoBC,EAAeJ,EAAW,CACrDH,EAAyB,IAAIO,EAAeL,EAAgBC,CAAS,CAAC,CACxE,CAIA,SAASK,EAAaC,EAAIF,EAAeG,EAAS,CAChD,MAAMC,EAAkBV,EAAwB,IAAIQ,CAAE,EACtD,GAAuCE,IAAgBJ,CAAa,EAClE,OAAOH,EAAoBO,EAAgBJ,CAAa,EAAGG,EAAQ,GAAG,EAExE,MAAME,EAAmBZ,EAAyB,IAAIO,CAAa,EACnE,OAAIK,EACKR,EAAoBQ,EAAkBF,EAAQ,GAAG,EAEnD,CACL,UAAW,CAAE,EACb,QAAS,CAAE,SAAU,CAAG,CAC5B,CACA,CCjCA,SAASG,EAAUJ,EAAIK,EAAWJ,EAAS,CACzC,OAAO,IAAI,QAASK,GAAY,CAC9B,GAAgCL,GAAQ,WAAc,IACpD,MAAM,IAAI,MAAM,0CAA0C,EAE5D,MAAMP,EAAYM,EAAG,QAAQK,EAAWE,EAAcC,EAAe,GAAIP,CAAO,EAAG,CACjF,SAAUQ,EAAoB,EAAK,EAAIR,EAAQ,QAChD,CAAA,CAAC,EACFP,EAAU,iBAAiB,SAAUY,EAAS,CAAE,KAAM,EAAI,CAAE,EAC5DZ,EAAU,iBAAiB,SAAUY,EAAS,CAAE,KAAM,EAAI,CAAE,CAChE,CAAG,CACH,CACA,SAASI,EAAcC,EAAO,CAE5B,OADAA,EAAQA,EAAM,SAAU,EAAC,YAAW,EAChCA,EAAM,QAAQ,IAAI,EAAI,GACjB,WAAWA,CAAK,EAErBA,EAAM,QAAQ,GAAG,EAAI,GAChB,WAAWA,CAAK,EAAI,IAEtB,WAAWA,CAAK,CACzB,CACA,SAASF,GAAuB,CAE9B,OADc,OAAO,WAAW,kCAAkC,EACrD,OACf,CACA,SAASG,EAAeZ,EAAI,CAC1B,OAAO,QAAQ,IACbA,EAAG,cAAa,EAAG,IAAKN,GACf,IAAI,QAASY,GAAY,CAC9BZ,EAAU,OAAM,EAChB,sBAAsBY,CAAO,CACrC,CAAO,CACF,CACL,CACA,CACA,SAASO,EAAwBR,EAAWS,EAAkB,CAC5D,OAAOT,EAAU,IAAKU,GAAaR,EAAcC,EAAe,CAAA,EAAIO,CAAQ,EAAG,CAC7E,OAAQA,EAAS,SAAW,OAAS,GAAGD,CAAgB,KAAOC,EAAS,MACzE,CAAA,CAAC,CACJ","x_google_ignoreList":[0,1]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{i as a,c as l,_ as s,n as i,S as c}from"./chunk.
|
|
1
|
+
import{i as a,c as l,_ as s,n as i,S as c}from"./chunk.UYAO2JRR-QUwaJ7JP.js";import{S as u,r as d}from"./chunk.E6QAPUBK-Djstjz3r.js";import{e as b}from"./class-map-BeImxkqd.js";import{s as n,n as h}from"./static-JXDFVXdx.js";import{o as e}from"./if-defined-BdEIG4q1.js";import{e as p}from"./query-D1pSaKds.js";var f=a`
|
|
2
2
|
:host {
|
|
3
3
|
display: inline-block;
|
|
4
4
|
color: var(--sl-color-neutral-600);
|
|
@@ -72,4 +72,4 @@ import{i as a,c as l,_ as s,n as i,S as c}from"./chunk.TUZSOS6C-DxyWSdpL.js";imp
|
|
|
72
72
|
></sl-icon>
|
|
73
73
|
</${r}>
|
|
74
74
|
`}};t.styles=[l,f];t.dependencies={"sl-icon":u};s([p(".icon-button")],t.prototype,"button",2);s([d()],t.prototype,"hasFocus",2);s([i()],t.prototype,"name",2);s([i()],t.prototype,"library",2);s([i()],t.prototype,"src",2);s([i()],t.prototype,"href",2);s([i()],t.prototype,"target",2);s([i()],t.prototype,"download",2);s([i()],t.prototype,"label",2);s([i({type:Boolean,reflect:!0})],t.prototype,"disabled",2);export{t as S};
|
|
75
|
-
//# sourceMappingURL=chunk.
|
|
75
|
+
//# sourceMappingURL=chunk.3HB7VQL2-BuauBlvQ.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chunk.
|
|
1
|
+
{"version":3,"file":"chunk.3HB7VQL2-BuauBlvQ.js","sources":["../../../node_modules/.pnpm/@shoelace-style+shoelace@2.18.0_@types+react@18.2.52/node_modules/@shoelace-style/shoelace/dist/chunks/chunk.6I2T3DLI.js","../../../node_modules/.pnpm/@shoelace-style+shoelace@2.18.0_@types+react@18.2.52/node_modules/@shoelace-style/shoelace/dist/chunks/chunk.3HB7VQL2.js"],"sourcesContent":["// src/components/icon-button/icon-button.styles.ts\nimport { css } from \"lit\";\nvar icon_button_styles_default = css`\n :host {\n display: inline-block;\n color: var(--sl-color-neutral-600);\n }\n\n .icon-button {\n flex: 0 0 auto;\n display: flex;\n align-items: center;\n background: none;\n border: none;\n border-radius: var(--sl-border-radius-medium);\n font-size: inherit;\n color: inherit;\n padding: var(--sl-spacing-x-small);\n cursor: pointer;\n transition: var(--sl-transition-x-fast) color;\n -webkit-appearance: none;\n }\n\n .icon-button:hover:not(.icon-button--disabled),\n .icon-button:focus-visible:not(.icon-button--disabled) {\n color: var(--sl-color-primary-600);\n }\n\n .icon-button:active:not(.icon-button--disabled) {\n color: var(--sl-color-primary-700);\n }\n\n .icon-button:focus {\n outline: none;\n }\n\n .icon-button--disabled {\n opacity: 0.5;\n cursor: not-allowed;\n }\n\n .icon-button:focus-visible {\n outline: var(--sl-focus-ring);\n outline-offset: var(--sl-focus-ring-offset);\n }\n\n .icon-button__icon {\n pointer-events: none;\n }\n`;\n\nexport {\n icon_button_styles_default\n};\n","import {\n icon_button_styles_default\n} from \"./chunk.6I2T3DLI.js\";\nimport {\n SlIcon\n} from \"./chunk.E6QAPUBK.js\";\nimport {\n component_styles_default\n} from \"./chunk.TUVJKY7S.js\";\nimport {\n ShoelaceElement\n} from \"./chunk.UYAO2JRR.js\";\nimport {\n __decorateClass\n} from \"./chunk.B3BW2AY6.js\";\n\n// src/components/icon-button/icon-button.component.ts\nimport { classMap } from \"lit/directives/class-map.js\";\nimport { html, literal } from \"lit/static-html.js\";\nimport { ifDefined } from \"lit/directives/if-defined.js\";\nimport { property, query, state } from \"lit/decorators.js\";\nvar SlIconButton = class extends ShoelaceElement {\n constructor() {\n super(...arguments);\n this.hasFocus = false;\n this.label = \"\";\n this.disabled = false;\n }\n handleBlur() {\n this.hasFocus = false;\n this.emit(\"sl-blur\");\n }\n handleFocus() {\n this.hasFocus = true;\n this.emit(\"sl-focus\");\n }\n handleClick(event) {\n if (this.disabled) {\n event.preventDefault();\n event.stopPropagation();\n }\n }\n /** Simulates a click on the icon button. */\n click() {\n this.button.click();\n }\n /** Sets focus on the icon button. */\n focus(options) {\n this.button.focus(options);\n }\n /** Removes focus from the icon button. */\n blur() {\n this.button.blur();\n }\n render() {\n const isLink = this.href ? true : false;\n const tag = isLink ? literal`a` : literal`button`;\n return html`\n <${tag}\n part=\"base\"\n class=${classMap({\n \"icon-button\": true,\n \"icon-button--disabled\": !isLink && this.disabled,\n \"icon-button--focused\": this.hasFocus\n })}\n ?disabled=${ifDefined(isLink ? void 0 : this.disabled)}\n type=${ifDefined(isLink ? void 0 : \"button\")}\n href=${ifDefined(isLink ? this.href : void 0)}\n target=${ifDefined(isLink ? this.target : void 0)}\n download=${ifDefined(isLink ? this.download : void 0)}\n rel=${ifDefined(isLink && this.target ? \"noreferrer noopener\" : void 0)}\n role=${ifDefined(isLink ? void 0 : \"button\")}\n aria-disabled=${this.disabled ? \"true\" : \"false\"}\n aria-label=\"${this.label}\"\n tabindex=${this.disabled ? \"-1\" : \"0\"}\n @blur=${this.handleBlur}\n @focus=${this.handleFocus}\n @click=${this.handleClick}\n >\n <sl-icon\n class=\"icon-button__icon\"\n name=${ifDefined(this.name)}\n library=${ifDefined(this.library)}\n src=${ifDefined(this.src)}\n aria-hidden=\"true\"\n ></sl-icon>\n </${tag}>\n `;\n }\n};\nSlIconButton.styles = [component_styles_default, icon_button_styles_default];\nSlIconButton.dependencies = { \"sl-icon\": SlIcon };\n__decorateClass([\n query(\".icon-button\")\n], SlIconButton.prototype, \"button\", 2);\n__decorateClass([\n state()\n], SlIconButton.prototype, \"hasFocus\", 2);\n__decorateClass([\n property()\n], SlIconButton.prototype, \"name\", 2);\n__decorateClass([\n property()\n], SlIconButton.prototype, \"library\", 2);\n__decorateClass([\n property()\n], SlIconButton.prototype, \"src\", 2);\n__decorateClass([\n property()\n], SlIconButton.prototype, \"href\", 2);\n__decorateClass([\n property()\n], SlIconButton.prototype, \"target\", 2);\n__decorateClass([\n property()\n], SlIconButton.prototype, \"download\", 2);\n__decorateClass([\n property()\n], SlIconButton.prototype, \"label\", 2);\n__decorateClass([\n property({ type: Boolean, reflect: true })\n], SlIconButton.prototype, \"disabled\", 2);\n\nexport {\n SlIconButton\n};\n"],"names":["icon_button_styles_default","css","SlIconButton","ShoelaceElement","event","options","isLink","tag","literal","html","classMap","ifDefined","component_styles_default","SlIcon","__decorateClass","query","state","property"],"mappings":"sTAEA,IAAIA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AAC","x_google_ignoreList":[0,1]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{i as c,c as m,_ as e,n as l,S as f,x as r}from"./chunk.
|
|
1
|
+
import{i as c,c as m,_ as e,n as l,S as f,x as r}from"./chunk.UYAO2JRR-QUwaJ7JP.js";import{f as b,d as g,l as v}from"./live-ZVhTxyi-.js";import{F as _}from"./chunk.2RCF7SLU-DvR3pudF.js";import{L as y,o}from"./if-defined-BdEIG4q1.js";import{H as w}from"./chunk.NYIIDP5N-AHr3eTN0.js";import{S as x,r as k}from"./chunk.E6QAPUBK-Djstjz3r.js";import{w as p}from"./chunk.CCJUT23E-DD9o-ZiK.js";import{e as h}from"./class-map-BeImxkqd.js";import{e as C}from"./query-D1pSaKds.js";var $=c`
|
|
2
2
|
:host {
|
|
3
3
|
display: block;
|
|
4
4
|
}
|
|
@@ -284,7 +284,7 @@ import{i as c,c as m,_ as e,n as l,S as f,x as r}from"./chunk.TUZSOS6C-DxyWSdpL.
|
|
|
284
284
|
.input--no-spin-buttons input[type='number'] {
|
|
285
285
|
-moz-appearance: textfield;
|
|
286
286
|
}
|
|
287
|
-
`,t=class extends f{constructor(){super(...arguments),this.formControlController=new _(this,{assumeInteractionOn:["sl-blur","sl-input"]}),this.hasSlotController=new
|
|
287
|
+
`,t=class extends f{constructor(){super(...arguments),this.formControlController=new _(this,{assumeInteractionOn:["sl-blur","sl-input"]}),this.hasSlotController=new w(this,"help-text","label"),this.localize=new y(this),this.hasFocus=!1,this.title="",this.__numberInput=Object.assign(document.createElement("input"),{type:"number"}),this.__dateInput=Object.assign(document.createElement("input"),{type:"date"}),this.type="text",this.name="",this.value="",this.defaultValue="",this.size="medium",this.filled=!1,this.pill=!1,this.label="",this.helpText="",this.clearable=!1,this.disabled=!1,this.placeholder="",this.readonly=!1,this.passwordToggle=!1,this.passwordVisible=!1,this.noSpinButtons=!1,this.form="",this.required=!1,this.spellcheck=!0}get valueAsDate(){var i;return this.__dateInput.type=this.type,this.__dateInput.value=this.value,((i=this.input)==null?void 0:i.valueAsDate)||this.__dateInput.valueAsDate}set valueAsDate(i){this.__dateInput.type=this.type,this.__dateInput.valueAsDate=i,this.value=this.__dateInput.value}get valueAsNumber(){var i;return this.__numberInput.value=this.value,((i=this.input)==null?void 0:i.valueAsNumber)||this.__numberInput.valueAsNumber}set valueAsNumber(i){this.__numberInput.valueAsNumber=i,this.value=this.__numberInput.value}get validity(){return this.input.validity}get validationMessage(){return this.input.validationMessage}firstUpdated(){this.formControlController.updateValidity()}handleBlur(){this.hasFocus=!1,this.emit("sl-blur")}handleChange(){this.value=this.input.value,this.emit("sl-change")}handleClearClick(i){i.preventDefault(),this.value!==""&&(this.value="",this.emit("sl-clear"),this.emit("sl-input"),this.emit("sl-change")),this.input.focus()}handleFocus(){this.hasFocus=!0,this.emit("sl-focus")}handleInput(){this.value=this.input.value,this.formControlController.updateValidity(),this.emit("sl-input")}handleInvalid(i){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(i)}handleKeyDown(i){const n=i.metaKey||i.ctrlKey||i.shiftKey||i.altKey;i.key==="Enter"&&!n&&setTimeout(()=>{!i.defaultPrevented&&!i.isComposing&&this.formControlController.submit()})}handlePasswordToggle(){this.passwordVisible=!this.passwordVisible}handleDisabledChange(){this.formControlController.setValidity(this.disabled)}handleStepChange(){this.input.step=String(this.step),this.formControlController.updateValidity()}async handleValueChange(){await this.updateComplete,this.formControlController.updateValidity()}focus(i){this.input.focus(i)}blur(){this.input.blur()}select(){this.input.select()}setSelectionRange(i,n,s="none"){this.input.setSelectionRange(i,n,s)}setRangeText(i,n,s,a="preserve"){const d=n??this.input.selectionStart,u=s??this.input.selectionEnd;this.input.setRangeText(i,d,u,a),this.value!==this.input.value&&(this.value=this.input.value)}showPicker(){"showPicker"in HTMLInputElement.prototype&&this.input.showPicker()}stepUp(){this.input.stepUp(),this.value!==this.input.value&&(this.value=this.input.value)}stepDown(){this.input.stepDown(),this.value!==this.input.value&&(this.value=this.input.value)}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.input.reportValidity()}setCustomValidity(i){this.input.setCustomValidity(i),this.formControlController.updateValidity()}render(){const i=this.hasSlotController.test("label"),n=this.hasSlotController.test("help-text"),s=this.label?!0:!!i,a=this.helpText?!0:!!n,u=this.clearable&&!this.disabled&&!this.readonly&&(typeof this.value=="number"||this.value.length>0);return r`
|
|
288
288
|
<div
|
|
289
289
|
part="form-control"
|
|
290
290
|
class=${h({"form-control":!0,"form-control--small":this.size==="small","form-control--medium":this.size==="medium","form-control--large":this.size==="large","form-control--has-label":s,"form-control--has-help-text":a})}
|
|
@@ -391,5 +391,5 @@ import{i as c,c as m,_ as e,n as l,S as f,x as r}from"./chunk.TUZSOS6C-DxyWSdpL.
|
|
|
391
391
|
<slot name="help-text">${this.helpText}</slot>
|
|
392
392
|
</div>
|
|
393
393
|
</div>
|
|
394
|
-
`}};t.styles=[m,b,$];t.dependencies={"sl-icon":
|
|
395
|
-
//# sourceMappingURL=chunk.
|
|
394
|
+
`}};t.styles=[m,b,$];t.dependencies={"sl-icon":x};e([C(".input__control")],t.prototype,"input",2);e([k()],t.prototype,"hasFocus",2);e([l()],t.prototype,"title",2);e([l({reflect:!0})],t.prototype,"type",2);e([l()],t.prototype,"name",2);e([l()],t.prototype,"value",2);e([g()],t.prototype,"defaultValue",2);e([l({reflect:!0})],t.prototype,"size",2);e([l({type:Boolean,reflect:!0})],t.prototype,"filled",2);e([l({type:Boolean,reflect:!0})],t.prototype,"pill",2);e([l()],t.prototype,"label",2);e([l({attribute:"help-text"})],t.prototype,"helpText",2);e([l({type:Boolean})],t.prototype,"clearable",2);e([l({type:Boolean,reflect:!0})],t.prototype,"disabled",2);e([l()],t.prototype,"placeholder",2);e([l({type:Boolean,reflect:!0})],t.prototype,"readonly",2);e([l({attribute:"password-toggle",type:Boolean})],t.prototype,"passwordToggle",2);e([l({attribute:"password-visible",type:Boolean})],t.prototype,"passwordVisible",2);e([l({attribute:"no-spin-buttons",type:Boolean})],t.prototype,"noSpinButtons",2);e([l({reflect:!0})],t.prototype,"form",2);e([l({type:Boolean,reflect:!0})],t.prototype,"required",2);e([l()],t.prototype,"pattern",2);e([l({type:Number})],t.prototype,"minlength",2);e([l({type:Number})],t.prototype,"maxlength",2);e([l()],t.prototype,"min",2);e([l()],t.prototype,"max",2);e([l()],t.prototype,"step",2);e([l()],t.prototype,"autocapitalize",2);e([l()],t.prototype,"autocorrect",2);e([l()],t.prototype,"autocomplete",2);e([l({type:Boolean})],t.prototype,"autofocus",2);e([l()],t.prototype,"enterkeyhint",2);e([l({type:Boolean,converter:{fromAttribute:i=>!(!i||i==="false"),toAttribute:i=>i?"true":"false"}})],t.prototype,"spellcheck",2);e([l()],t.prototype,"inputmode",2);e([p("disabled",{waitUntilFirstUpdate:!0})],t.prototype,"handleDisabledChange",1);e([p("step",{waitUntilFirstUpdate:!0})],t.prototype,"handleStepChange",1);e([p("value",{waitUntilFirstUpdate:!0})],t.prototype,"handleValueChange",1);t.define("sl-input");export{t as S};
|
|
395
|
+
//# sourceMappingURL=chunk.5KGB34TL-DurS0j57.js.map
|