@feugene/granularity 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/README.md +44 -45
- package/dist/GrButtonGroup.css +1 -1
- package/dist/GrFormFile.css +1 -1
- package/dist/GrIcon.css +1 -1
- package/dist/GrLoading.css +1 -1
- package/dist/GrSkeleton.css +1 -1
- package/dist/GrToaster.css +1 -0
- package/dist/GrTree.css +1 -1
- package/dist/chunks/{adapter-BqqjEZGU.js.map → adapter-CAOxmn2G.js.map} +1 -1
- package/dist/chunks/arrow-up-C_G4jg8M.js.map +1 -0
- package/dist/chunks/{classTokens-BPeBXNzu.js.map → classTokens-BzazaERD.js.map} +1 -1
- package/dist/chunks/{config-A-iei0Ux.js → config-1uSYl98Y2.js} +5 -5
- package/dist/chunks/config-1uSYl98Y2.js.map +1 -0
- package/dist/chunks/{config-DZrlovR42.js.map → config-8Pcutu1j2.js.map} +1 -1
- package/dist/chunks/{config-VJuoznpH.js.map → config-B0qIpo8m.js.map} +1 -1
- package/dist/chunks/{config-C8MM2Dg0.js → config-B7IIWGt_2.js} +3 -3
- package/dist/chunks/config-B7IIWGt_2.js.map +1 -0
- package/dist/chunks/{config-DbghHyY_.js.map → config-BEegFP74.js.map} +1 -1
- package/dist/chunks/{config-D_Pafsjq2.js → config-BIRO0vDJ.js} +6 -6
- package/dist/chunks/config-BIRO0vDJ.js.map +1 -0
- package/dist/chunks/{config-BeBsN0c12.js.map → config-BLHqZhy-2.js.map} +1 -1
- package/dist/chunks/{config-BV4vBzdm.js.map → config-BNu8lFQB.js.map} +1 -1
- package/dist/chunks/config-BOlr7qw7.js +106 -0
- package/dist/chunks/config-BOlr7qw7.js.map +1 -0
- package/dist/chunks/{config-DhQc1TRY.js.map → config-BUHuGBik.js.map} +1 -1
- package/dist/chunks/{config-CPSdAjUi.js.map → config-BWGGp7uV.js.map} +1 -1
- package/dist/chunks/config-BWiPnygb.js +5 -0
- package/dist/chunks/config-BWiPnygb.js.map +1 -0
- package/dist/chunks/config-BX1JTrkV2.js +14 -0
- package/dist/chunks/config-BX1JTrkV2.js.map +1 -0
- package/dist/chunks/config-BXtAmU3s2.js.map +1 -0
- package/dist/chunks/{config-CzgNEHKi.js.map → config-Bah4oHwL.js.map} +1 -1
- package/dist/chunks/{config-C_egzT_K.js → config-C49QUoJL.js} +3 -3
- package/dist/chunks/{config-C_egzT_K.js.map → config-C49QUoJL.js.map} +1 -1
- package/dist/chunks/{config-3I3vqDW4.js → config-C4snOIXg.js} +1 -1
- package/dist/chunks/{config-3I3vqDW4.js.map → config-C4snOIXg.js.map} +1 -1
- package/dist/chunks/{config-DvDNney3.js → config-C7NpDrfO.js} +5 -5
- package/dist/chunks/{config-DvDNney3.js.map → config-C7NpDrfO.js.map} +1 -1
- package/dist/chunks/{config-lMDE_8A5.js.map → config-C86UzUYf.js.map} +1 -1
- package/dist/chunks/{config-BgBWt9-A.js.map → config-C9AcVDkv.js.map} +1 -1
- package/dist/chunks/config-CGHLoBlH.js.map +1 -0
- package/dist/chunks/{config-ChQxl75m.js.map → config-CThzliFi.js.map} +1 -1
- package/dist/chunks/{config-DDwBSoc_.js.map → config-Cb2PAlSD.js.map} +1 -1
- package/dist/chunks/{config-XspHtPsU.js → config-ClhKPJvg.js} +5 -5
- package/dist/chunks/{config-XspHtPsU.js.map → config-ClhKPJvg.js.map} +1 -1
- package/dist/chunks/{config-58Mj2rGH.js → config-Cpi9Mh2J.js} +3 -3
- package/dist/chunks/{config-58Mj2rGH.js.map → config-Cpi9Mh2J.js.map} +1 -1
- package/dist/chunks/{config-nrOj9p6I.js → config-CrG1XiE72.js} +4 -4
- package/dist/chunks/config-CrG1XiE72.js.map +1 -0
- package/dist/chunks/{config-DRpkoSvq.js → config-CziwTDDL.js} +3 -3
- package/dist/chunks/{config-DRpkoSvq.js.map → config-CziwTDDL.js.map} +1 -1
- package/dist/chunks/{config-C5-ujXCI.js.map → config-D7GZO-Dx.js.map} +1 -1
- package/dist/chunks/{config-CUwF4E4R.js.map → config-DBmdgoVf.js.map} +1 -1
- package/dist/chunks/{config-C9MblwGq.js.map → config-DICOd-2X.js.map} +1 -1
- package/dist/chunks/{config-C6zT56Jc2.js → config-DUcu1D682.js} +3 -3
- package/dist/chunks/{config-C6zT56Jc2.js.map → config-DUcu1D682.js.map} +1 -1
- package/dist/chunks/{config-8f8624RN.js → config-D_R56_gT.js} +5 -5
- package/dist/chunks/{config-8f8624RN.js.map → config-D_R56_gT.js.map} +1 -1
- package/dist/chunks/{config-RjfJFv1Y.js → config-DezDih8_.js} +4 -4
- package/dist/chunks/config-DezDih8_.js.map +1 -0
- package/dist/chunks/config-Dlm49Jp5.js +5 -0
- package/dist/chunks/config-Dlm49Jp5.js.map +1 -0
- package/dist/chunks/{config-B0uUCaJW.js → config-DnvPqu4g2.js} +3 -3
- package/dist/chunks/config-DnvPqu4g2.js.map +1 -0
- package/dist/chunks/config-DpqOnJiz.js.map +1 -0
- package/dist/chunks/{config-V3LF-b_F.js.map → config-Dxuwwepq.js.map} +1 -1
- package/dist/chunks/{config-Doa_gU40.js.map → config-HZto2PVy.js.map} +1 -1
- package/dist/chunks/{config-Dl5aZ5VR.js.map → config-JOtB4mzs.js.map} +1 -1
- package/dist/chunks/config-JpHA4Xx02.js.map +1 -0
- package/dist/chunks/{config-DkeLkzxj2.js → config-LGrZIdaZ.js} +1 -1
- package/dist/chunks/config-LGrZIdaZ.js.map +1 -0
- package/dist/chunks/{config-B3dn-gdC.js.map → config-PFg39mYo.js.map} +1 -1
- package/dist/chunks/{config-CU_CBd0k.js → config-QYGvEBu5.js} +2 -2
- package/dist/chunks/{config-CU_CBd0k.js.map → config-QYGvEBu5.js.map} +1 -1
- package/dist/chunks/{config-Bh4NWWsQ.js.map → config-QaIc_gRa.js.map} +1 -1
- package/dist/chunks/{config-vcDVCYXo.js.map → config-U4m9PSql.js.map} +1 -1
- package/dist/chunks/{config-C_q_4FrU.js.map → config-ZiXWIRBX.js.map} +1 -1
- package/dist/chunks/config-eXB87DOi2.js +9 -0
- package/dist/chunks/config-eXB87DOi2.js.map +1 -0
- package/dist/chunks/{config-hSlCXHoG.js → config-eYLZYOUS2.js} +63 -63
- package/dist/chunks/config-eYLZYOUS2.js.map +1 -0
- package/dist/chunks/{config-DDUPnue12.js.map → config-ipvU0lzP2.js.map} +1 -1
- package/dist/chunks/{config-B61cX08u.js → config-jBp9wVv-.js} +4 -4
- package/dist/chunks/{config-B61cX08u.js.map → config-jBp9wVv-.js.map} +1 -1
- package/dist/chunks/{config-D5ek7VSi.js.map → config-xR4XVmcy.js.map} +1 -1
- package/dist/chunks/context-DdNIxa1w.js +9 -0
- package/dist/chunks/context-DdNIxa1w.js.map +1 -0
- package/dist/chunks/{dialogShared-BtXUk6Zc.js.map → dialogShared-CxW62PQE.js.map} +1 -1
- package/dist/chunks/en-CfkDa4GX.js +144 -0
- package/dist/chunks/en-CfkDa4GX.js.map +1 -0
- package/dist/chunks/{es-CISK11Nv.js → es-CgaLnFYx.js} +3 -3
- package/dist/chunks/{es-CISK11Nv.js.map → es-CgaLnFYx.js.map} +1 -1
- package/dist/chunks/es-FkgECuCm.js +144 -0
- package/dist/chunks/es-FkgECuCm.js.map +1 -0
- package/dist/chunks/{fileValidation-c_iBg74s.js → fileValidation-C3WFaWU2.js} +2 -1
- package/dist/chunks/{fileValidation-c_iBg74s.js.map → fileValidation-C3WFaWU2.js.map} +1 -1
- package/dist/chunks/{grBadgeStyles-Cq0hH2Ls.js → grBadgeStyles-DrycBuKT.js} +13 -13
- package/dist/chunks/grBadgeStyles-DrycBuKT.js.map +1 -0
- package/dist/chunks/grButtonStyles-C7Yga_Q1.js +191 -0
- package/dist/chunks/grButtonStyles-C7Yga_Q1.js.map +1 -0
- package/dist/chunks/{grDropdownStyles-Bqx9hOzU.js → grDropdownStyles-B_-DKytw.js} +2 -2
- package/dist/chunks/{grDropdownStyles-Bqx9hOzU.js.map → grDropdownStyles-B_-DKytw.js.map} +1 -1
- package/dist/chunks/{grLoadingStyles-DmI-SJ3i.js.map → grLoadingStyles-R5sreH__.js.map} +1 -1
- package/dist/chunks/grModalEscStack-BXk-9mv7.js +43 -0
- package/dist/chunks/grModalEscStack-BXk-9mv7.js.map +1 -0
- package/dist/chunks/{grModalStyles-FgaKqx50.js → grModalStyles-DWd3i05Q.js} +6 -6
- package/dist/chunks/{grModalStyles-FgaKqx50.js.map → grModalStyles-DWd3i05Q.js.map} +1 -1
- package/dist/chunks/{grSelectStyles-AjWWl007.js → grSelectStyles-CLK5hRd3.js} +3 -3
- package/dist/chunks/grSelectStyles-CLK5hRd3.js.map +1 -0
- package/dist/chunks/{grStyle-D-gPHdyW.js → grStyle-Blc9otAx.js} +6 -6
- package/dist/chunks/grStyle-Blc9otAx.js.map +1 -0
- package/dist/chunks/{granularityI18n-D_7jowK2.js → granularityI18n-DoV7Ca2m.js} +1 -1
- package/dist/chunks/{granularityI18n-D_7jowK2.js.map → granularityI18n-DoV7Ca2m.js.map} +1 -1
- package/dist/chunks/info-Be2OccTu.js.map +1 -0
- package/dist/chunks/loader-circle-CfVLz7lb.js.map +1 -0
- package/dist/chunks/ru-Bl8CxpEa.js +144 -0
- package/dist/chunks/ru-Bl8CxpEa.js.map +1 -0
- package/dist/chunks/{safelist-_UVzJrgE2.js → safelist-CkF4v7DC.js} +3 -3
- package/dist/chunks/safelist-CkF4v7DC.js.map +1 -0
- package/dist/chunks/{safelist-DccvJqCE.js → safelist-Do2RtzLB.js} +3 -3
- package/dist/chunks/{safelist-DccvJqCE.js.map → safelist-Do2RtzLB.js.map} +1 -1
- package/dist/chunks/shared-B6Ay2081.js +174 -0
- package/dist/chunks/shared-B6Ay2081.js.map +1 -0
- package/dist/chunks/useAddonMeasurement-DM0akF4C.js +65 -0
- package/dist/chunks/useAddonMeasurement-DM0akF4C.js.map +1 -0
- package/dist/chunks/useEscapeToClose-C2t_S1gh.js +27 -0
- package/dist/chunks/useEscapeToClose-C2t_S1gh.js.map +1 -0
- package/dist/chunks/{useFloating-CLtbU7eD.js → useFloating-DtM6TyE4.js} +19 -4
- package/dist/chunks/{useFloating-CLtbU7eD.js.map → useFloating-DtM6TyE4.js.map} +1 -1
- package/dist/chunks/{transition-mJ3PZCHH.js → useScrollLock-K7kaP2Ud.js} +78 -13
- package/dist/chunks/useScrollLock-K7kaP2Ud.js.map +1 -0
- package/dist/chunks/x-2KXnqxiD.js.map +1 -0
- package/dist/chunks/x-circle-BCBURwyX.js.map +1 -0
- package/dist/components/GrAlert/chunks/{GrAlert-HyCjYJeL.js → GrAlert-DPJSU_fG.js} +40 -37
- package/dist/components/GrAlert/chunks/GrAlert-DPJSU_fG.js.map +1 -0
- package/dist/components/GrAlert/index.js +2 -2
- package/dist/components/GrAvatar/chunks/{GrAvatar-BjnPKNAL.js → GrAvatar-96CpTCq5.js} +2 -2
- package/dist/components/GrAvatar/chunks/{GrAvatar-BjnPKNAL.js.map → GrAvatar-96CpTCq5.js.map} +1 -1
- package/dist/components/GrAvatar/index.js +2 -2
- package/dist/components/GrBadge/chunks/{GrBadge-Cs_cVfuO.js → GrBadge-B77XlaqE.js} +3 -3
- package/dist/components/GrBadge/chunks/{GrBadge-Cs_cVfuO.js.map → GrBadge-B77XlaqE.js.map} +1 -1
- package/dist/components/GrBadge/index.js +2 -2
- package/dist/components/GrBadgeWrap/chunks/{GrBadgeWrap-BEnE9DyJ.js → GrBadgeWrap-CcktMOdg.js} +2 -2
- package/dist/components/GrBadgeWrap/chunks/{GrBadgeWrap-BEnE9DyJ.js.map → GrBadgeWrap-CcktMOdg.js.map} +1 -1
- package/dist/components/GrBadgeWrap/index.js +2 -2
- package/dist/components/GrBottomNav/chunks/{GrBottomNav-XPHwd7UQ.js.map → GrBottomNav-usuMgG8_.js.map} +1 -1
- package/dist/components/GrBottomNav/index.js +2 -2
- package/dist/components/GrButton/chunks/GrButton-BlffdeJr.js +124 -0
- package/dist/components/GrButton/chunks/GrButton-BlffdeJr.js.map +1 -0
- package/dist/components/GrButton/index.js +4 -4
- package/dist/components/GrButtonGroup/chunks/{GrButtonGroup-CPOH6V-P.js → GrButtonGroup-Bs9dEKfA.js} +1 -1
- package/dist/components/GrButtonGroup/chunks/GrButtonGroup-Bs9dEKfA.js.map +1 -0
- package/dist/components/GrButtonGroup/index.js +2 -2
- package/dist/components/GrCard/chunks/{GrCard-6yk1RRAQ.js → GrCard-DUNMkuHW.js} +3 -3
- package/dist/components/GrCard/chunks/GrCard-DUNMkuHW.js.map +1 -0
- package/dist/components/GrCard/index.js +2 -2
- package/dist/components/GrCheckbox/chunks/{GrCheckbox-Bt3d7ckE.js → GrCheckbox-DJhzZZdO.js} +66 -18
- package/dist/components/GrCheckbox/chunks/GrCheckbox-DJhzZZdO.js.map +1 -0
- package/dist/components/GrCheckbox/index.js +2 -2
- package/dist/components/GrCollapse/chunks/{GrCollapse-CU94BTAR.js → GrCollapse-CPPLh_xU.js} +12 -12
- package/dist/components/GrCollapse/chunks/{GrCollapse-CU94BTAR.js.map → GrCollapse-CPPLh_xU.js.map} +1 -1
- package/dist/components/GrCollapse/index.js +2 -2
- package/dist/components/GrConfirmDialog/chunks/{GrConfirmDialog-Bi2KLumL.js → GrConfirmDialog-D8CkOtqv.js} +20 -14
- package/dist/components/GrConfirmDialog/chunks/GrConfirmDialog-D8CkOtqv.js.map +1 -0
- package/dist/components/GrConfirmDialog/index.js +2 -2
- package/dist/components/GrDataTable/chunks/{GrDataTable-ClcYiyc8.js → GrDataTable-Ds5OeGat.js} +49 -23
- package/dist/components/GrDataTable/chunks/GrDataTable-Ds5OeGat.js.map +1 -0
- package/dist/components/GrDataTable/index.js +2 -2
- package/dist/components/GrDialog/chunks/{GrDialog-CxK4Lj4F.js → GrDialog-Ctucxju9.js} +14 -12
- package/dist/components/GrDialog/chunks/GrDialog-Ctucxju9.js.map +1 -0
- package/dist/components/GrDialog/index.js +3 -3
- package/dist/components/GrDialogService/chunks/GrDialogService-CU1Fbonc.js +425 -0
- package/dist/components/GrDialogService/chunks/GrDialogService-CU1Fbonc.js.map +1 -0
- package/dist/components/GrDialogService/index.js +3 -0
- package/dist/components/GrDivider/chunks/GrDivider-5bcE-BB4.js +54 -0
- package/dist/components/GrDivider/chunks/GrDivider-5bcE-BB4.js.map +1 -0
- package/dist/components/GrDivider/index.js +3 -0
- package/dist/components/GrDrawer/chunks/{GrDrawer-BW3wtI7h.js → GrDrawer-SLGKCY2A.js} +54 -26
- package/dist/components/GrDrawer/chunks/GrDrawer-SLGKCY2A.js.map +1 -0
- package/dist/components/GrDrawer/index.js +2 -2
- package/dist/components/GrDropdown/chunks/GrDropdown-BnDMYP8v.js +181 -0
- package/dist/components/GrDropdown/chunks/GrDropdown-BnDMYP8v.js.map +1 -0
- package/dist/components/GrDropdown/index.js +2 -2
- package/dist/components/GrDropdownMenu/chunks/{GrDropdownMenu-CJom_-c2.js → GrDropdownMenu--g9Vofcq.js} +10 -10
- package/dist/components/GrDropdownMenu/chunks/{GrDropdownMenu-CJom_-c2.js.map → GrDropdownMenu--g9Vofcq.js.map} +1 -1
- package/dist/components/GrDropdownMenu/index.js +2 -2
- package/dist/components/GrEmptyState/chunks/{GrEmptyState-yOuZW7-t.js → GrEmptyState-CA3BiTV7.js} +3 -3
- package/dist/components/GrEmptyState/chunks/{GrEmptyState-yOuZW7-t.js.map → GrEmptyState-CA3BiTV7.js.map} +1 -1
- package/dist/components/GrEmptyState/index.js +2 -2
- package/dist/components/GrFileUpload/chunks/{GrFileUpload-CBKK3dgC.js → GrFileUpload-DvWPpiJS.js} +26 -23
- package/dist/components/GrFileUpload/chunks/GrFileUpload-DvWPpiJS.js.map +1 -0
- package/dist/components/GrFileUpload/index.js +3 -3
- package/dist/components/GrFormField/chunks/GrFormField-DnfMHx_U.js +73 -0
- package/dist/components/GrFormField/chunks/GrFormField-DnfMHx_U.js.map +1 -0
- package/dist/components/GrFormField/index.js +4 -3
- package/dist/components/GrFormFile/chunks/{GrFormFile-CkR6cYqf.js → GrFormFile-CXcqqdvV.js} +38 -31
- package/dist/components/GrFormFile/chunks/GrFormFile-CXcqqdvV.js.map +1 -0
- package/dist/components/GrFormFile/index.js +2 -2
- package/dist/components/GrFormSection/chunks/{GrFormSection-dbyzqxYk.js → GrFormSection-Ce21jcgo.js} +1 -1
- package/dist/components/GrFormSection/chunks/{GrFormSection-dbyzqxYk.js.map → GrFormSection-Ce21jcgo.js.map} +1 -1
- package/dist/components/GrFormSection/index.js +2 -2
- package/dist/components/GrIcon/chunks/{GrIcon-BV7RBU_0.js → GrIcon-D9AWQLk2.js} +3 -3
- package/dist/components/GrIcon/chunks/{GrIcon-BV7RBU_0.js.map → GrIcon-D9AWQLk2.js.map} +1 -1
- package/dist/components/GrIcon/index.js +2 -2
- package/dist/components/GrImageViewer/chunks/GrImageViewer-Dla9IBkd.js +650 -0
- package/dist/components/GrImageViewer/chunks/GrImageViewer-Dla9IBkd.js.map +1 -0
- package/dist/components/GrImageViewer/index.js +2 -2
- package/dist/components/GrInput/chunks/GrInput-B8dd3JaA.js +334 -0
- package/dist/components/GrInput/chunks/GrInput-B8dd3JaA.js.map +1 -0
- package/dist/components/GrInput/index.js +2 -2
- package/dist/components/GrInputTag/chunks/{GrInputTag-g-KdUI_Z.js → GrInputTag-zMgFqp2g.js} +27 -24
- package/dist/components/GrInputTag/chunks/GrInputTag-zMgFqp2g.js.map +1 -0
- package/dist/components/GrInputTag/index.js +2 -2
- package/dist/components/GrKbd/chunks/GrKbd-BEoYxWhE.js +22 -0
- package/dist/components/GrKbd/chunks/GrKbd-BEoYxWhE.js.map +1 -0
- package/dist/components/GrKbd/index.js +3 -0
- package/dist/components/GrLink/chunks/{GrLink-KSTmk9Yq.js → GrLink-CYUe-Q8k.js} +14 -7
- package/dist/components/GrLink/chunks/GrLink-CYUe-Q8k.js.map +1 -0
- package/dist/components/GrLink/index.js +2 -2
- package/dist/components/GrList/chunks/{GrList-CUW2sRm_.js → GrList-Dx772Ns4.js} +1 -1
- package/dist/components/GrList/chunks/{GrList-CUW2sRm_.js.map → GrList-Dx772Ns4.js.map} +1 -1
- package/dist/components/GrList/index.js +2 -2
- package/dist/components/GrLoading/chunks/{GrLoading-mfyfghxs.js → GrLoading--X_7rdbb.js} +7 -7
- package/dist/components/GrLoading/chunks/{GrLoading-mfyfghxs.js.map → GrLoading--X_7rdbb.js.map} +1 -1
- package/dist/components/GrLoading/index.js +2 -2
- package/dist/components/GrModal/chunks/{GrModal-CSOL3fHQ.js → GrModal-C0GZrHN3.js} +9 -62
- package/dist/components/GrModal/chunks/GrModal-C0GZrHN3.js.map +1 -0
- package/dist/components/GrModal/index.js +3 -3
- package/dist/components/GrNavbar/chunks/{GrNavbar-CHxwtFIR.js → GrNavbar-DW3MiIIf.js} +6 -6
- package/dist/components/GrNavbar/chunks/{GrNavbar-CHxwtFIR.js.map → GrNavbar-DW3MiIIf.js.map} +1 -1
- package/dist/components/GrNavbar/index.js +2 -2
- package/dist/components/GrNumberInput/chunks/{GrNumberInput-ClPBwkxx.js → GrNumberInput-DxCEvL7V.js} +144 -72
- package/dist/components/GrNumberInput/chunks/GrNumberInput-DxCEvL7V.js.map +1 -0
- package/dist/components/GrNumberInput/index.js +2 -2
- package/dist/components/GrPagination/chunks/{GrPagination-D2GS0ShQ.js → GrPagination-mlyfLjQY.js} +76 -25
- package/dist/components/GrPagination/chunks/GrPagination-mlyfLjQY.js.map +1 -0
- package/dist/components/GrPagination/index.js +2 -2
- package/dist/components/GrProgressBar/chunks/{GrProgressBar-BBSFpVEq.js → GrProgressBar-CC3z-Zqp.js} +3 -3
- package/dist/components/GrProgressBar/chunks/{GrProgressBar-BBSFpVEq.js.map → GrProgressBar-CC3z-Zqp.js.map} +1 -1
- package/dist/components/GrProgressBar/index.js +2 -2
- package/dist/components/GrPromptDialog/chunks/{GrPromptDialog-D_TFqKsF.js → GrPromptDialog-C-_BMNuY.js} +31 -23
- package/dist/components/GrPromptDialog/chunks/GrPromptDialog-C-_BMNuY.js.map +1 -0
- package/dist/components/GrPromptDialog/index.js +2 -2
- package/dist/components/GrRadio/chunks/{GrRadio-CSbTnrom.js → GrRadio-Dr-pvs_9.js} +6 -6
- package/dist/components/GrRadio/chunks/{GrRadio-CSbTnrom.js.map → GrRadio-Dr-pvs_9.js.map} +1 -1
- package/dist/components/GrRadio/index.js +2 -2
- package/dist/components/GrRadioGroup/chunks/{GrRadioGroup-DsrnTygR.js → GrRadioGroup-nOdvfV_g.js} +3 -3
- package/dist/components/GrRadioGroup/chunks/{GrRadioGroup-DsrnTygR.js.map → GrRadioGroup-nOdvfV_g.js.map} +1 -1
- package/dist/components/GrRadioGroup/index.js +2 -2
- package/dist/components/GrResponseErrorBanner/chunks/{GrResponseErrorBanner-K1uZ1mYD.js → GrResponseErrorBanner-BWJNe2gr.js} +21 -18
- package/dist/components/GrResponseErrorBanner/chunks/GrResponseErrorBanner-BWJNe2gr.js.map +1 -0
- package/dist/components/GrResponseErrorBanner/chunks/{GrResponseErrorBanner-bM8FC_Bw.js → GrResponseErrorBanner-Cdu9ekK9.js} +5 -5
- package/dist/components/GrResponseErrorBanner/chunks/{GrResponseErrorBanner-bM8FC_Bw.js.map → GrResponseErrorBanner-Cdu9ekK9.js.map} +1 -1
- package/dist/components/GrResponseErrorBanner/index.js +2 -2
- package/dist/components/GrSegmented/chunks/{GrSegmented-DpZGs4VX.js → GrSegmented-C1y0UXpQ.js} +5 -5
- package/dist/components/GrSegmented/chunks/{GrSegmented-DpZGs4VX.js.map → GrSegmented-C1y0UXpQ.js.map} +1 -1
- package/dist/components/GrSegmented/index.js +2 -2
- package/dist/components/GrSelect/chunks/{GrSelect-DSz7jvUb.js → GrSelect-BVCmitqa.js} +227 -87
- package/dist/components/GrSelect/chunks/GrSelect-BVCmitqa.js.map +1 -0
- package/dist/components/GrSelect/index.js +2 -2
- package/dist/components/GrSidebar/chunks/GrSidebar-DkWozzwA.js +238 -0
- package/dist/components/GrSidebar/chunks/GrSidebar-DkWozzwA.js.map +1 -0
- package/dist/components/GrSidebar/index.js +3 -3
- package/dist/components/GrSkeleton/chunks/{GrSkeleton-B05K0QKh.js → GrSkeleton-DsN-_CDZ.js} +1 -1
- package/dist/components/GrSkeleton/chunks/{GrSkeleton-B05K0QKh.js.map → GrSkeleton-DsN-_CDZ.js.map} +1 -1
- package/dist/components/GrSkeleton/index.js +2 -2
- package/dist/components/GrSwitch/chunks/{GrSwitch-CSRtcN5-.js → GrSwitch-DAioyccZ.js} +10 -10
- package/dist/components/GrSwitch/chunks/{GrSwitch-CSRtcN5-.js.map → GrSwitch-DAioyccZ.js.map} +1 -1
- package/dist/components/GrSwitch/index.js +2 -2
- package/dist/components/GrTabPanels/chunks/GrTabPanels-DbKybwe-.js +68 -0
- package/dist/components/GrTabPanels/chunks/GrTabPanels-DbKybwe-.js.map +1 -0
- package/dist/components/GrTabPanels/index.js +3 -0
- package/dist/components/GrTable/chunks/{GrTable-dTWUxzRm.js → GrTable-Db3hRnKA.js} +3 -3
- package/dist/components/GrTable/chunks/{GrTable-dTWUxzRm.js.map → GrTable-Db3hRnKA.js.map} +1 -1
- package/dist/components/GrTable/index.js +2 -2
- package/dist/components/GrTabs/chunks/{GrTabs-BfeVNMFJ.js → GrTabs-DsLwWoRz.js} +9 -4
- package/dist/components/GrTabs/chunks/GrTabs-DsLwWoRz.js.map +1 -0
- package/dist/components/GrTabs/index.js +2 -2
- package/dist/components/GrTextarea/chunks/{GrTextarea-CBBzpF2S.js → GrTextarea-CKukGlNl.js} +17 -7
- package/dist/components/GrTextarea/chunks/GrTextarea-CKukGlNl.js.map +1 -0
- package/dist/components/GrTextarea/index.js +2 -2
- package/dist/components/GrToaster/chunks/GrToaster-L2cu6cSR.js +189 -0
- package/dist/components/GrToaster/chunks/GrToaster-L2cu6cSR.js.map +1 -0
- package/dist/components/GrToaster/index.js +2 -2
- package/dist/components/GrTooltip/chunks/{GrTooltip-BC-40SA5.js → GrTooltip-BeyZ8ssR.js} +10 -10
- package/dist/components/GrTooltip/chunks/{GrTooltip-BC-40SA5.js.map → GrTooltip-BeyZ8ssR.js.map} +1 -1
- package/dist/components/GrTooltip/index.js +2 -2
- package/dist/components/GrTree/chunks/{GrTree-uZr5SyQI.js → GrTree-B2_yW6g1.js} +145 -41
- package/dist/components/GrTree/chunks/GrTree-B2_yW6g1.js.map +1 -0
- package/dist/components/GrTree/index.js +2 -2
- package/dist/components/GrTreeSelect/chunks/{GrTreeSelect-CytivcCa.js → GrTreeSelect-0aM62xyu.js} +16 -16
- package/dist/components/GrTreeSelect/chunks/{GrTreeSelect-CytivcCa.js.map → GrTreeSelect-0aM62xyu.js.map} +1 -1
- package/dist/components/GrTreeSelect/index.js +2 -2
- package/dist/composables/useTheme.js +48 -8
- package/dist/composables/useTheme.js.map +1 -1
- package/dist/composables/useToast.js +88 -26
- package/dist/composables/useToast.js.map +1 -1
- package/dist/directives/autofocus.js.map +1 -1
- package/dist/directives/autosize.js.map +1 -1
- package/dist/directives/clickOutside.js.map +1 -1
- package/dist/directives/dropzone.js +6 -5
- package/dist/directives/dropzone.js.map +1 -1
- package/dist/directives/hotkey.js +24 -7
- package/dist/directives/hotkey.js.map +1 -1
- package/dist/directives/loading.js +2 -2
- package/dist/directives/loading.js.map +1 -1
- package/dist/fileValidation/index.js +1 -1
- package/dist/granular-provider-node.js +7 -7
- package/dist/granular-provider-node.js.map +1 -1
- package/dist/granular-provider.js +1 -1
- package/dist/granular-provider.js.map +1 -1
- package/dist/i18n/all.js +1 -1
- package/dist/i18n/all.js.map +1 -1
- package/dist/i18n/index.js +2 -2
- package/dist/index.js +116 -534
- package/dist/index.js.map +1 -1
- package/dist/styles/base.css +54 -0
- package/dist/styles/index.css +15 -0
- package/dist/styles/preflight.css +33 -0
- package/dist/styles/themes/dark.css +107 -0
- package/dist/styles/themes/light.css +98 -0
- package/dist/styles/tokens.css +135 -0
- package/dist/types/src/components/GrButton/GrButton.vue.d.ts +25 -2
- package/dist/types/src/components/GrCheckbox/GrCheckbox.vue.d.ts +7 -2
- package/dist/types/src/components/GrConfirmDialog/GrConfirmDialog.vue.d.ts +8 -8
- package/dist/types/src/components/GrDataTable/GrDataTable.vue.d.ts +29 -5
- package/dist/types/src/components/GrDialog/GrDialog.vue.d.ts +2 -2
- package/dist/types/src/components/GrDialog/GrDialogHeader.vue.d.ts +2 -2
- package/dist/types/src/components/GrDivider/GrDivider.vue.d.ts +58 -0
- package/dist/types/src/components/GrDivider/config.d.ts +1 -0
- package/dist/types/src/components/GrDivider/index.d.ts +4 -0
- package/dist/types/src/components/GrDrawer/GrDrawer.vue.d.ts +6 -6
- package/dist/types/src/components/GrDropdown/GrDropdown.vue.d.ts +7 -0
- package/dist/types/src/components/GrDropdownMenu/GrDropdownMenu.vue.d.ts +6 -0
- package/dist/types/src/components/GrFileUpload/GrFileUpload.vue.d.ts +4 -4
- package/dist/types/src/components/GrFormField/GrFormField.vue.d.ts +15 -2
- package/dist/types/src/components/GrFormField/context.d.ts +20 -0
- package/dist/types/src/components/GrFormField/index.d.ts +1 -0
- package/dist/types/src/components/GrFormFile/GrFormFile.vue.d.ts +11 -11
- package/dist/types/src/components/GrImageViewer/GrImageViewer.vue.d.ts +22 -18
- package/dist/types/src/components/GrImageViewer/composables/useViewerKeyboard.d.ts +20 -0
- package/dist/types/src/components/GrImageViewer/composables/useWheelGesture.d.ts +16 -0
- package/dist/types/src/components/GrImageViewer/composables/useZoomPan.d.ts +50 -0
- package/dist/types/src/components/GrInput/GrInput.vue.d.ts +55 -2
- package/dist/types/src/components/GrInput/grInputStyles.d.ts +3 -3
- package/dist/types/src/components/GrInputTag/GrInputTag.vue.d.ts +2 -2
- package/dist/types/src/components/GrKbd/GrKbd.vue.d.ts +46 -0
- package/dist/types/src/components/GrKbd/config.d.ts +1 -0
- package/dist/types/src/components/GrKbd/index.d.ts +4 -0
- package/dist/types/src/components/GrLink/GrLink.vue.d.ts +12 -6
- package/dist/types/src/components/GrLink/grLinkStyles.d.ts +31 -3
- package/dist/types/src/components/GrLink/index.d.ts +1 -1
- package/dist/types/src/components/GrLoading/GrLoading.vue.d.ts +1 -1
- package/dist/types/src/components/GrModal/grModalStyles.d.ts +1 -1
- package/dist/types/src/components/GrNumberInput/GrNumberInput.vue.d.ts +33 -4
- package/dist/types/src/components/GrPagination/GrPagination.vue.d.ts +13 -1
- package/dist/types/src/components/GrPromptDialog/GrPromptDialog.vue.d.ts +12 -12
- package/dist/types/src/components/GrSegmented/GrSegmented.vue.d.ts +1 -1
- package/dist/types/src/components/GrSegmented/grSegmentedStyles.d.ts +5 -5
- package/dist/types/src/components/GrSelect/GrSelect.vue.d.ts +3 -3
- package/dist/types/src/components/GrSelect/grSelectStyles.d.ts +2 -1
- package/dist/types/src/components/GrSidebar/GrSidebar.vue.d.ts +33 -10
- package/dist/types/src/components/GrSidebar/GrSidebarItem.vue.d.ts +64 -0
- package/dist/types/src/components/GrSidebar/index.d.ts +1 -0
- package/dist/types/src/components/GrSidebar/sidebarContext.d.ts +9 -0
- package/dist/types/src/components/GrSwitch/GrSwitch.vue.d.ts +1 -1
- package/dist/types/src/components/GrSwitch/grSwitchStyles.d.ts +2 -2
- package/dist/types/src/components/GrTabPanels/GrTabPanel.vue.d.ts +46 -0
- package/dist/types/src/components/GrTabPanels/GrTabPanels.vue.d.ts +51 -0
- package/dist/types/src/components/GrTabPanels/config.d.ts +5 -0
- package/dist/types/src/components/GrTabPanels/context.d.ts +9 -0
- package/dist/types/src/components/GrTabPanels/index.d.ts +6 -0
- package/dist/types/src/components/GrTabs/GrTabs.vue.d.ts +6 -0
- package/dist/types/src/components/GrToaster/GrToaster.vue.d.ts +9 -4
- package/dist/types/src/components/GrTree/GrTree.vue.d.ts +1 -1
- package/dist/types/src/components/GrTree/grTreeInteractionContext.d.ts +2 -0
- package/dist/types/src/components/GrTreeSelect/GrTreeSelect.vue.d.ts +2 -2
- package/dist/types/src/components/GrTreeSelect/grTreeSelectStyles.d.ts +1 -1
- package/dist/types/src/components/GrTreeSelect/grTreeSelectTypes.d.ts +1 -1
- package/dist/types/src/composables/internal/useAddonMeasurement.d.ts +18 -0
- package/dist/types/src/composables/internal/useEscapeToClose.d.ts +11 -0
- package/dist/types/src/composables/internal/useScrollLock.d.ts +24 -0
- package/dist/types/src/composables/useTheme.d.ts +5 -2
- package/dist/types/src/composables/useToast.d.ts +33 -1
- package/dist/types/src/directives/hotkey.d.ts +14 -0
- package/dist/types/src/granular-provider/shared.d.ts +4 -3
- package/dist/types/src/i18n/messages/en.d.ts +130 -0
- package/dist/types/src/i18n/messages/es.d.ts +130 -0
- package/dist/types/src/i18n/messages/ru.d.ts +130 -0
- package/dist/types/src/index.d.ts +5 -2
- package/dist/vue/index.js.map +1 -1
- package/dist/web-types.json +4922 -0
- package/package.json +38 -20
- package/dist/chunks/arrow-up-DZdIrpaF.js.map +0 -1
- package/dist/chunks/config-A-iei0Ux.js.map +0 -1
- package/dist/chunks/config-B0uUCaJW.js.map +0 -1
- package/dist/chunks/config-BLa1TEGm2.js.map +0 -1
- package/dist/chunks/config-BduXEXjt.js.map +0 -1
- package/dist/chunks/config-BuoIngj32.js.map +0 -1
- package/dist/chunks/config-C8MM2Dg0.js.map +0 -1
- package/dist/chunks/config-CWTfyPNI.js.map +0 -1
- package/dist/chunks/config-D_Pafsjq2.js.map +0 -1
- package/dist/chunks/config-DkeLkzxj2.js.map +0 -1
- package/dist/chunks/config-NkbzVFZo.js +0 -59
- package/dist/chunks/config-NkbzVFZo.js.map +0 -1
- package/dist/chunks/config-RjfJFv1Y.js.map +0 -1
- package/dist/chunks/config-hSlCXHoG.js.map +0 -1
- package/dist/chunks/config-nrOj9p6I.js.map +0 -1
- package/dist/chunks/en-B_fSdoTi.js +0 -72
- package/dist/chunks/en-B_fSdoTi.js.map +0 -1
- package/dist/chunks/es-DKP6fLir.js +0 -72
- package/dist/chunks/es-DKP6fLir.js.map +0 -1
- package/dist/chunks/grBadgeStyles-Cq0hH2Ls.js.map +0 -1
- package/dist/chunks/grButtonStyles-DKuXUemw.js +0 -191
- package/dist/chunks/grButtonStyles-DKuXUemw.js.map +0 -1
- package/dist/chunks/grSelectStyles-AjWWl007.js.map +0 -1
- package/dist/chunks/grStyle-D-gPHdyW.js.map +0 -1
- package/dist/chunks/info-C0bHmdZq.js.map +0 -1
- package/dist/chunks/loader-circle-BUntgosj.js.map +0 -1
- package/dist/chunks/ru-S6VlnurJ.js +0 -72
- package/dist/chunks/ru-S6VlnurJ.js.map +0 -1
- package/dist/chunks/safelist-_UVzJrgE2.js.map +0 -1
- package/dist/chunks/shared-DpjTvFno.js +0 -169
- package/dist/chunks/shared-DpjTvFno.js.map +0 -1
- package/dist/chunks/transition-mJ3PZCHH.js.map +0 -1
- package/dist/chunks/x-Pa6C2hwi.js.map +0 -1
- package/dist/chunks/x-circle-DQSlBLmX.js.map +0 -1
- package/dist/components/GrAlert/chunks/GrAlert-HyCjYJeL.js.map +0 -1
- package/dist/components/GrButton/chunks/GrButton-CPDKonoB.js +0 -83
- package/dist/components/GrButton/chunks/GrButton-CPDKonoB.js.map +0 -1
- package/dist/components/GrButtonGroup/chunks/GrButtonGroup-CPOH6V-P.js.map +0 -1
- package/dist/components/GrCard/chunks/GrCard-6yk1RRAQ.js.map +0 -1
- package/dist/components/GrCheckbox/chunks/GrCheckbox-Bt3d7ckE.js.map +0 -1
- package/dist/components/GrConfirmDialog/chunks/GrConfirmDialog-Bi2KLumL.js.map +0 -1
- package/dist/components/GrDataTable/chunks/GrDataTable-ClcYiyc8.js.map +0 -1
- package/dist/components/GrDialog/chunks/GrDialog-CxK4Lj4F.js.map +0 -1
- package/dist/components/GrDrawer/chunks/GrDrawer-BW3wtI7h.js.map +0 -1
- package/dist/components/GrDropdown/chunks/GrDropdown-BGKeEfZ1.js +0 -105
- package/dist/components/GrDropdown/chunks/GrDropdown-BGKeEfZ1.js.map +0 -1
- package/dist/components/GrFileUpload/chunks/GrFileUpload-CBKK3dgC.js.map +0 -1
- package/dist/components/GrFormField/chunks/GrFormField-U7c_aDPJ.js +0 -35
- package/dist/components/GrFormField/chunks/GrFormField-U7c_aDPJ.js.map +0 -1
- package/dist/components/GrFormFile/chunks/GrFormFile-CkR6cYqf.js.map +0 -1
- package/dist/components/GrImageViewer/chunks/GrImageViewer-BG40DsHa.js +0 -550
- package/dist/components/GrImageViewer/chunks/GrImageViewer-BG40DsHa.js.map +0 -1
- package/dist/components/GrInput/chunks/GrInput-gwFQ1sk4.js +0 -211
- package/dist/components/GrInput/chunks/GrInput-gwFQ1sk4.js.map +0 -1
- package/dist/components/GrInputTag/chunks/GrInputTag-g-KdUI_Z.js.map +0 -1
- package/dist/components/GrLink/chunks/GrLink-KSTmk9Yq.js.map +0 -1
- package/dist/components/GrModal/chunks/GrModal-CSOL3fHQ.js.map +0 -1
- package/dist/components/GrNumberInput/chunks/GrNumberInput-ClPBwkxx.js.map +0 -1
- package/dist/components/GrPagination/chunks/GrPagination-D2GS0ShQ.js.map +0 -1
- package/dist/components/GrPromptDialog/chunks/GrPromptDialog-D_TFqKsF.js.map +0 -1
- package/dist/components/GrResponseErrorBanner/chunks/GrResponseErrorBanner-K1uZ1mYD.js.map +0 -1
- package/dist/components/GrSelect/chunks/GrSelect-DSz7jvUb.js.map +0 -1
- package/dist/components/GrSidebar/chunks/GrSidebar-BW8LRMZ-.js +0 -44
- package/dist/components/GrSidebar/chunks/GrSidebar-BW8LRMZ-.js.map +0 -1
- package/dist/components/GrTabs/chunks/GrTabs-BfeVNMFJ.js.map +0 -1
- package/dist/components/GrTextarea/chunks/GrTextarea-CBBzpF2S.js.map +0 -1
- package/dist/components/GrToaster/chunks/GrToaster-C6_iHk2J.js +0 -172
- package/dist/components/GrToaster/chunks/GrToaster-C6_iHk2J.js.map +0 -1
- package/dist/components/GrTree/chunks/GrTree-uZr5SyQI.js.map +0 -1
- /package/dist/chunks/{_plugin-vue_export-helper-DQR7Sy7Q.js → _plugin-vue_export-helper-BOaGB7Aw.js} +0 -0
- /package/dist/chunks/{adapter-BqqjEZGU.js → adapter-CAOxmn2G.js} +0 -0
- /package/dist/chunks/{arrow-up-DZdIrpaF.js → arrow-up-C_G4jg8M.js} +0 -0
- /package/dist/chunks/{classTokens-BPeBXNzu.js → classTokens-BzazaERD.js} +0 -0
- /package/dist/chunks/{config-DZrlovR42.js → config-8Pcutu1j2.js} +0 -0
- /package/dist/chunks/{config-VJuoznpH.js → config-B0qIpo8m.js} +0 -0
- /package/dist/chunks/{config-DbghHyY_.js → config-BEegFP74.js} +0 -0
- /package/dist/chunks/{config-BeBsN0c12.js → config-BLHqZhy-2.js} +0 -0
- /package/dist/chunks/{config-BV4vBzdm.js → config-BNu8lFQB.js} +0 -0
- /package/dist/chunks/{config-DhQc1TRY.js → config-BUHuGBik.js} +0 -0
- /package/dist/chunks/{config-CPSdAjUi.js → config-BWGGp7uV.js} +0 -0
- /package/dist/chunks/{config-BduXEXjt.js → config-BXtAmU3s2.js} +0 -0
- /package/dist/chunks/{config-CzgNEHKi.js → config-Bah4oHwL.js} +0 -0
- /package/dist/chunks/{config-lMDE_8A5.js → config-C86UzUYf.js} +0 -0
- /package/dist/chunks/{config-BgBWt9-A.js → config-C9AcVDkv.js} +0 -0
- /package/dist/chunks/{config-BuoIngj32.js → config-CGHLoBlH.js} +0 -0
- /package/dist/chunks/{config-ChQxl75m.js → config-CThzliFi.js} +0 -0
- /package/dist/chunks/{config-DDwBSoc_.js → config-Cb2PAlSD.js} +0 -0
- /package/dist/chunks/{config-C5-ujXCI.js → config-D7GZO-Dx.js} +0 -0
- /package/dist/chunks/{config-CUwF4E4R.js → config-DBmdgoVf.js} +0 -0
- /package/dist/chunks/{config-C9MblwGq.js → config-DICOd-2X.js} +0 -0
- /package/dist/chunks/{config-BLa1TEGm2.js → config-DpqOnJiz.js} +0 -0
- /package/dist/chunks/{config-V3LF-b_F.js → config-Dxuwwepq.js} +0 -0
- /package/dist/chunks/{config-Doa_gU40.js → config-HZto2PVy.js} +0 -0
- /package/dist/chunks/{config-Dl5aZ5VR.js → config-JOtB4mzs.js} +0 -0
- /package/dist/chunks/{config-CWTfyPNI.js → config-JpHA4Xx02.js} +0 -0
- /package/dist/chunks/{config-B3dn-gdC.js → config-PFg39mYo.js} +0 -0
- /package/dist/chunks/{config-Bh4NWWsQ.js → config-QaIc_gRa.js} +0 -0
- /package/dist/chunks/{config-vcDVCYXo.js → config-U4m9PSql.js} +0 -0
- /package/dist/chunks/{config-C_q_4FrU.js → config-ZiXWIRBX.js} +0 -0
- /package/dist/chunks/{config-DDUPnue12.js → config-ipvU0lzP2.js} +0 -0
- /package/dist/chunks/{config-D5ek7VSi.js → config-xR4XVmcy.js} +0 -0
- /package/dist/chunks/{dialogShared-BtXUk6Zc.js → dialogShared-CxW62PQE.js} +0 -0
- /package/dist/chunks/{grLoadingStyles-DmI-SJ3i.js → grLoadingStyles-R5sreH__.js} +0 -0
- /package/dist/chunks/{info-C0bHmdZq.js → info-Be2OccTu.js} +0 -0
- /package/dist/chunks/{loader-circle-BUntgosj.js → loader-circle-CfVLz7lb.js} +0 -0
- /package/dist/chunks/{x-Pa6C2hwi.js → x-2KXnqxiD.js} +0 -0
- /package/dist/chunks/{x-circle-DQSlBLmX.js → x-circle-BCBURwyX.js} +0 -0
- /package/dist/components/GrBottomNav/chunks/{GrBottomNav-XPHwd7UQ.js → GrBottomNav-usuMgG8_.js} +0 -0
|
@@ -1,550 +0,0 @@
|
|
|
1
|
-
import { n as he, o as Ye, r as Ge, t as Se } from "../../../chunks/transition-mJ3PZCHH.js";
|
|
2
|
-
import { Fragment, Teleport, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, guardReactiveProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, onBeforeUnmount, openBlock, ref, renderSlot, toDisplayString, unref, watch, withCtx } from "vue";
|
|
3
|
-
//#region src/components/GrImageViewer/GrImageViewer.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
-
var _hoisted_1 = { class: "fixed inset-0 overflow-hidden" };
|
|
5
|
-
var _hoisted_2 = { class: "pointer-events-none absolute inset-x-0 top-0 z-30 px-3 py-3 sm:px-6" };
|
|
6
|
-
var _hoisted_3 = { class: "pointer-events-auto flex items-center justify-between gap-3" };
|
|
7
|
-
var _hoisted_4 = { class: "flex items-center gap-2" };
|
|
8
|
-
var _hoisted_5 = {
|
|
9
|
-
key: 0,
|
|
10
|
-
"data-ds-image-viewer-progress": "",
|
|
11
|
-
class: "rounded-full bg-black/35 px-3 py-1 text-xs font-600 text-white/95 sm:text-sm"
|
|
12
|
-
};
|
|
13
|
-
var _hoisted_6 = {
|
|
14
|
-
key: 1,
|
|
15
|
-
"data-ds-image-viewer-zoom-value": "",
|
|
16
|
-
class: "rounded-full bg-black/35 px-3 py-1 text-xs font-700 text-white/95 sm:text-sm"
|
|
17
|
-
};
|
|
18
|
-
var _hoisted_7 = ["aria-label"];
|
|
19
|
-
var _hoisted_8 = ["aria-label"];
|
|
20
|
-
var _hoisted_9 = ["aria-label"];
|
|
21
|
-
var _hoisted_10 = { class: "h-full w-full flex items-center justify-center" };
|
|
22
|
-
var _hoisted_11 = ["src"];
|
|
23
|
-
var _hoisted_12 = {
|
|
24
|
-
key: 1,
|
|
25
|
-
class: "rounded-[var(--ds-radius-xl)] border border-white/20 bg-black/25 px-4 py-3 text-sm text-white/80"
|
|
26
|
-
};
|
|
27
|
-
var _hoisted_13 = { class: "pointer-events-none absolute inset-x-0 bottom-0 z-30 px-3 pb-3 sm:px-6 sm:pb-6" };
|
|
28
|
-
var _hoisted_14 = { class: "pointer-events-auto mx-auto w-full max-w-max" };
|
|
29
|
-
var _hoisted_15 = { class: "rounded-full border border-white/20 bg-black/35 p-1 backdrop-blur-sm flex items-center gap-1" };
|
|
30
|
-
var _hoisted_16 = ["aria-label"];
|
|
31
|
-
var _hoisted_17 = ["aria-label"];
|
|
32
|
-
var _hoisted_18 = ["aria-label"];
|
|
33
|
-
var _hoisted_19 = {
|
|
34
|
-
key: 1,
|
|
35
|
-
class: "mx-1 h-6 w-px bg-white/25",
|
|
36
|
-
"aria-hidden": "true"
|
|
37
|
-
};
|
|
38
|
-
var _hoisted_20 = ["aria-label"];
|
|
39
|
-
var _hoisted_21 = ["aria-label"];
|
|
40
|
-
var DEFAULT_Z_INDEX = 2e3;
|
|
41
|
-
var WHEEL_ZOOM_SENSITIVITY = .0015;
|
|
42
|
-
var WHEEL_IDLE_MS = 120;
|
|
43
|
-
//#endregion
|
|
44
|
-
//#region src/components/GrImageViewer/GrImageViewer.vue
|
|
45
|
-
var GrImageViewer_default = /* @__PURE__ */ defineComponent({
|
|
46
|
-
__name: "GrImageViewer",
|
|
47
|
-
props: {
|
|
48
|
-
modelValue: { type: Boolean },
|
|
49
|
-
urlList: {},
|
|
50
|
-
initialIndex: { default: 0 },
|
|
51
|
-
zoomRate: { default: 1.2 },
|
|
52
|
-
minScale: { default: .5 },
|
|
53
|
-
maxScale: { default: 5 },
|
|
54
|
-
hideOnClickModal: {
|
|
55
|
-
type: Boolean,
|
|
56
|
-
default: false
|
|
57
|
-
},
|
|
58
|
-
closeOnPressEscape: {
|
|
59
|
-
type: Boolean,
|
|
60
|
-
default: true
|
|
61
|
-
},
|
|
62
|
-
showProgress: {
|
|
63
|
-
type: Boolean,
|
|
64
|
-
default: false
|
|
65
|
-
},
|
|
66
|
-
showZoomValue: {
|
|
67
|
-
type: Boolean,
|
|
68
|
-
default: true
|
|
69
|
-
},
|
|
70
|
-
wheelZoom: {
|
|
71
|
-
type: Boolean,
|
|
72
|
-
default: true
|
|
73
|
-
},
|
|
74
|
-
draggable: {
|
|
75
|
-
type: Boolean,
|
|
76
|
-
default: false
|
|
77
|
-
},
|
|
78
|
-
zIndex: { default: void 0 },
|
|
79
|
-
closeLabel: { default: "Close image viewer" },
|
|
80
|
-
prevLabel: { default: "Previous image" },
|
|
81
|
-
nextLabel: { default: "Next image" },
|
|
82
|
-
zoomInLabel: { default: "Zoom in" },
|
|
83
|
-
zoomOutLabel: { default: "Zoom out" },
|
|
84
|
-
resetZoomLabel: { default: "Reset zoom" },
|
|
85
|
-
rotateLeftLabel: { default: "Rotate left" },
|
|
86
|
-
rotateRightLabel: { default: "Rotate right" },
|
|
87
|
-
emptyText: { default: "No image" }
|
|
88
|
-
},
|
|
89
|
-
emits: [
|
|
90
|
-
"update:modelValue",
|
|
91
|
-
"close",
|
|
92
|
-
"switch",
|
|
93
|
-
"rotate"
|
|
94
|
-
],
|
|
95
|
-
setup(__props, { emit: __emit }) {
|
|
96
|
-
const props = __props;
|
|
97
|
-
const emit = __emit;
|
|
98
|
-
const TRAILING_ZERO_DECIMAL_RE = /\.0$/;
|
|
99
|
-
const open = computed(() => props.modelValue);
|
|
100
|
-
const total = computed(() => props.urlList.length);
|
|
101
|
-
const hasImages = computed(() => total.value > 0);
|
|
102
|
-
const currentIndex = ref(0);
|
|
103
|
-
const scale = ref(1);
|
|
104
|
-
const rotation = ref(0);
|
|
105
|
-
const offsetX = ref(0);
|
|
106
|
-
const offsetY = ref(0);
|
|
107
|
-
const imageEl = ref(null);
|
|
108
|
-
const isWheelZooming = ref(false);
|
|
109
|
-
let pendingWheelDelta = 0;
|
|
110
|
-
let wheelFrameId = null;
|
|
111
|
-
let wheelIdleTimer = null;
|
|
112
|
-
const isDragging = ref(false);
|
|
113
|
-
let dragStartX = 0;
|
|
114
|
-
let dragStartY = 0;
|
|
115
|
-
let dragOffsetStartX = 0;
|
|
116
|
-
let dragOffsetStartY = 0;
|
|
117
|
-
const naturalWidth = ref(0);
|
|
118
|
-
const naturalHeight = ref(0);
|
|
119
|
-
const fittedWidth = ref(0);
|
|
120
|
-
const fittedHeight = ref(0);
|
|
121
|
-
let resizeObserver = null;
|
|
122
|
-
const currentUrl = computed(() => {
|
|
123
|
-
if (!hasImages.value) return;
|
|
124
|
-
return props.urlList[currentIndex.value];
|
|
125
|
-
});
|
|
126
|
-
const displayIndex = computed(() => {
|
|
127
|
-
if (!hasImages.value) return 0;
|
|
128
|
-
return currentIndex.value + 1;
|
|
129
|
-
});
|
|
130
|
-
const viewerStyle = computed(() => ({ zIndex: String(Number.isFinite(props.zIndex) ? props.zIndex : DEFAULT_Z_INDEX) }));
|
|
131
|
-
const imageStyle = computed(() => ({ transform: `translate3d(${offsetX.value}px, ${offsetY.value}px, 0) scale(${scale.value}) rotate(${rotation.value}deg)` }));
|
|
132
|
-
const imageTransitionClass = computed(() => isWheelZooming.value || isDragging.value ? "" : "transition-transform duration-150 ease-out");
|
|
133
|
-
const imageCursorClass = computed(() => {
|
|
134
|
-
if (!props.draggable) return "";
|
|
135
|
-
return isDragging.value ? "cursor-grabbing" : "cursor-grab";
|
|
136
|
-
});
|
|
137
|
-
function formatPercent(value) {
|
|
138
|
-
if (Number.isInteger(value)) return String(value);
|
|
139
|
-
return value.toFixed(1).replace(TRAILING_ZERO_DECIMAL_RE, "");
|
|
140
|
-
}
|
|
141
|
-
const zoomValueText = computed(() => formatPercent(scale.value * 100));
|
|
142
|
-
const renderedWidth = computed(() => Math.round(fittedWidth.value * scale.value));
|
|
143
|
-
const renderedHeight = computed(() => Math.round(fittedHeight.value * scale.value));
|
|
144
|
-
const realScale = computed(() => {
|
|
145
|
-
if (!naturalWidth.value) return 0;
|
|
146
|
-
return fittedWidth.value * scale.value / naturalWidth.value;
|
|
147
|
-
});
|
|
148
|
-
const realScalePercent = computed(() => formatPercent(realScale.value * 100));
|
|
149
|
-
const toolbarSlotProps = computed(() => ({
|
|
150
|
-
index: currentIndex.value,
|
|
151
|
-
displayIndex: displayIndex.value,
|
|
152
|
-
total: total.value,
|
|
153
|
-
scale: scale.value,
|
|
154
|
-
rotation: rotation.value,
|
|
155
|
-
naturalWidth: naturalWidth.value,
|
|
156
|
-
naturalHeight: naturalHeight.value,
|
|
157
|
-
renderedWidth: renderedWidth.value,
|
|
158
|
-
renderedHeight: renderedHeight.value,
|
|
159
|
-
realScale: realScale.value,
|
|
160
|
-
realScalePercent: realScalePercent.value,
|
|
161
|
-
actions: toolbarActions
|
|
162
|
-
}));
|
|
163
|
-
function normalizeIndex(value) {
|
|
164
|
-
if (!hasImages.value) return 0;
|
|
165
|
-
return ((Number.isFinite(value) ? Math.trunc(value) : 0) % total.value + total.value) % total.value;
|
|
166
|
-
}
|
|
167
|
-
function resetTransform() {
|
|
168
|
-
scale.value = 1;
|
|
169
|
-
rotation.value = 0;
|
|
170
|
-
offsetX.value = 0;
|
|
171
|
-
offsetY.value = 0;
|
|
172
|
-
isDragging.value = false;
|
|
173
|
-
}
|
|
174
|
-
function resetImageMetrics() {
|
|
175
|
-
naturalWidth.value = 0;
|
|
176
|
-
naturalHeight.value = 0;
|
|
177
|
-
fittedWidth.value = 0;
|
|
178
|
-
fittedHeight.value = 0;
|
|
179
|
-
}
|
|
180
|
-
function measureFitted() {
|
|
181
|
-
const el = imageEl.value;
|
|
182
|
-
if (!el) return;
|
|
183
|
-
fittedWidth.value = el.offsetWidth;
|
|
184
|
-
fittedHeight.value = el.offsetHeight;
|
|
185
|
-
}
|
|
186
|
-
function onImageLoad(event) {
|
|
187
|
-
const el = event.target;
|
|
188
|
-
naturalWidth.value = el.naturalWidth;
|
|
189
|
-
naturalHeight.value = el.naturalHeight;
|
|
190
|
-
measureFitted();
|
|
191
|
-
}
|
|
192
|
-
function startObservingImage() {
|
|
193
|
-
const el = imageEl.value;
|
|
194
|
-
if (!el || typeof ResizeObserver === "undefined") return;
|
|
195
|
-
if (!resizeObserver) resizeObserver = new ResizeObserver(() => measureFitted());
|
|
196
|
-
resizeObserver.observe(el);
|
|
197
|
-
if (el.complete && el.naturalWidth) {
|
|
198
|
-
naturalWidth.value = el.naturalWidth;
|
|
199
|
-
naturalHeight.value = el.naturalHeight;
|
|
200
|
-
}
|
|
201
|
-
measureFitted();
|
|
202
|
-
}
|
|
203
|
-
function stopObservingImage() {
|
|
204
|
-
resizeObserver?.disconnect();
|
|
205
|
-
}
|
|
206
|
-
function setIndex(nextIndex, options) {
|
|
207
|
-
const normalizedIndex = normalizeIndex(nextIndex);
|
|
208
|
-
if (normalizedIndex === currentIndex.value) return;
|
|
209
|
-
currentIndex.value = normalizedIndex;
|
|
210
|
-
resetTransform();
|
|
211
|
-
resetImageMetrics();
|
|
212
|
-
endWheelZoom();
|
|
213
|
-
if (options?.emitSwitch !== false) emit("switch", normalizedIndex);
|
|
214
|
-
}
|
|
215
|
-
function syncIndexFromInitial() {
|
|
216
|
-
if (!hasImages.value) {
|
|
217
|
-
currentIndex.value = 0;
|
|
218
|
-
return;
|
|
219
|
-
}
|
|
220
|
-
currentIndex.value = normalizeIndex(props.initialIndex);
|
|
221
|
-
resetTransform();
|
|
222
|
-
resetImageMetrics();
|
|
223
|
-
endWheelZoom();
|
|
224
|
-
}
|
|
225
|
-
function preloadAt(index) {
|
|
226
|
-
const url = props.urlList[index];
|
|
227
|
-
if (!url) return;
|
|
228
|
-
const image = new Image();
|
|
229
|
-
image.decoding = "async";
|
|
230
|
-
image.src = url;
|
|
231
|
-
}
|
|
232
|
-
function closeViewer() {
|
|
233
|
-
emit("update:modelValue", false);
|
|
234
|
-
emit("close");
|
|
235
|
-
}
|
|
236
|
-
function prev() {
|
|
237
|
-
setIndex(currentIndex.value - 1);
|
|
238
|
-
}
|
|
239
|
-
function next() {
|
|
240
|
-
setIndex(currentIndex.value + 1);
|
|
241
|
-
}
|
|
242
|
-
function setScale(value) {
|
|
243
|
-
const clamped = Math.min(props.maxScale, Math.max(props.minScale, value));
|
|
244
|
-
scale.value = Number(clamped.toFixed(4));
|
|
245
|
-
}
|
|
246
|
-
function zoomIn() {
|
|
247
|
-
setScale(scale.value * props.zoomRate);
|
|
248
|
-
}
|
|
249
|
-
function zoomOut() {
|
|
250
|
-
setScale(scale.value / props.zoomRate);
|
|
251
|
-
}
|
|
252
|
-
function cancelWheelFrame() {
|
|
253
|
-
if (wheelFrameId !== null) {
|
|
254
|
-
cancelAnimationFrame(wheelFrameId);
|
|
255
|
-
wheelFrameId = null;
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
function endWheelZoom() {
|
|
259
|
-
if (wheelIdleTimer !== null) {
|
|
260
|
-
clearTimeout(wheelIdleTimer);
|
|
261
|
-
wheelIdleTimer = null;
|
|
262
|
-
}
|
|
263
|
-
isWheelZooming.value = false;
|
|
264
|
-
pendingWheelDelta = 0;
|
|
265
|
-
cancelWheelFrame();
|
|
266
|
-
}
|
|
267
|
-
function flushWheelZoom() {
|
|
268
|
-
wheelFrameId = null;
|
|
269
|
-
const delta = pendingWheelDelta;
|
|
270
|
-
pendingWheelDelta = 0;
|
|
271
|
-
if (!delta) return;
|
|
272
|
-
const factor = Math.exp(-delta * WHEEL_ZOOM_SENSITIVITY);
|
|
273
|
-
setScale(scale.value * factor);
|
|
274
|
-
}
|
|
275
|
-
function onWheel(event) {
|
|
276
|
-
if (!props.wheelZoom || !hasImages.value) return;
|
|
277
|
-
event.preventDefault();
|
|
278
|
-
isWheelZooming.value = true;
|
|
279
|
-
pendingWheelDelta += event.deltaY;
|
|
280
|
-
if (wheelFrameId === null) wheelFrameId = requestAnimationFrame(flushWheelZoom);
|
|
281
|
-
if (wheelIdleTimer !== null) clearTimeout(wheelIdleTimer);
|
|
282
|
-
wheelIdleTimer = setTimeout(() => {
|
|
283
|
-
wheelIdleTimer = null;
|
|
284
|
-
isWheelZooming.value = false;
|
|
285
|
-
}, WHEEL_IDLE_MS);
|
|
286
|
-
}
|
|
287
|
-
function onPointerDown(event) {
|
|
288
|
-
if (!props.draggable || !hasImages.value || event.button !== 0) return;
|
|
289
|
-
event.preventDefault();
|
|
290
|
-
isDragging.value = true;
|
|
291
|
-
dragStartX = event.clientX;
|
|
292
|
-
dragStartY = event.clientY;
|
|
293
|
-
dragOffsetStartX = offsetX.value;
|
|
294
|
-
dragOffsetStartY = offsetY.value;
|
|
295
|
-
event.currentTarget.setPointerCapture?.(event.pointerId);
|
|
296
|
-
}
|
|
297
|
-
function onPointerMove(event) {
|
|
298
|
-
if (!isDragging.value) return;
|
|
299
|
-
offsetX.value = dragOffsetStartX + (event.clientX - dragStartX);
|
|
300
|
-
offsetY.value = dragOffsetStartY + (event.clientY - dragStartY);
|
|
301
|
-
}
|
|
302
|
-
function onPointerUp(event) {
|
|
303
|
-
if (!isDragging.value) return;
|
|
304
|
-
isDragging.value = false;
|
|
305
|
-
event.currentTarget.releasePointerCapture?.(event.pointerId);
|
|
306
|
-
}
|
|
307
|
-
function rotateLeft() {
|
|
308
|
-
rotation.value -= 90;
|
|
309
|
-
emit("rotate", rotation.value);
|
|
310
|
-
}
|
|
311
|
-
function rotateRight() {
|
|
312
|
-
rotation.value += 90;
|
|
313
|
-
emit("rotate", rotation.value);
|
|
314
|
-
}
|
|
315
|
-
const toolbarActions = {
|
|
316
|
-
close: closeViewer,
|
|
317
|
-
prev,
|
|
318
|
-
next,
|
|
319
|
-
zoomIn,
|
|
320
|
-
zoomOut,
|
|
321
|
-
reset: resetTransform,
|
|
322
|
-
rotateLeft,
|
|
323
|
-
rotateRight
|
|
324
|
-
};
|
|
325
|
-
function onBackdropClick() {
|
|
326
|
-
if (!props.hideOnClickModal) return;
|
|
327
|
-
closeViewer();
|
|
328
|
-
}
|
|
329
|
-
function onKeydown(event) {
|
|
330
|
-
switch (event.key) {
|
|
331
|
-
case "Escape":
|
|
332
|
-
if (!props.closeOnPressEscape) return;
|
|
333
|
-
event.preventDefault();
|
|
334
|
-
closeViewer();
|
|
335
|
-
return;
|
|
336
|
-
case "ArrowLeft":
|
|
337
|
-
event.preventDefault();
|
|
338
|
-
prev();
|
|
339
|
-
return;
|
|
340
|
-
case "ArrowRight":
|
|
341
|
-
event.preventDefault();
|
|
342
|
-
next();
|
|
343
|
-
return;
|
|
344
|
-
case "+":
|
|
345
|
-
case "=":
|
|
346
|
-
case "Add":
|
|
347
|
-
event.preventDefault();
|
|
348
|
-
zoomIn();
|
|
349
|
-
return;
|
|
350
|
-
case "-":
|
|
351
|
-
case "_":
|
|
352
|
-
case "Subtract":
|
|
353
|
-
event.preventDefault();
|
|
354
|
-
zoomOut();
|
|
355
|
-
return;
|
|
356
|
-
case "0":
|
|
357
|
-
event.preventDefault();
|
|
358
|
-
resetTransform();
|
|
359
|
-
break;
|
|
360
|
-
default:
|
|
361
|
-
}
|
|
362
|
-
}
|
|
363
|
-
watch(() => props.modelValue, async (isOpen) => {
|
|
364
|
-
if (!isOpen) {
|
|
365
|
-
stopObservingImage();
|
|
366
|
-
endWheelZoom();
|
|
367
|
-
isDragging.value = false;
|
|
368
|
-
return;
|
|
369
|
-
}
|
|
370
|
-
syncIndexFromInitial();
|
|
371
|
-
await nextTick();
|
|
372
|
-
startObservingImage();
|
|
373
|
-
}, { immediate: true });
|
|
374
|
-
watch(() => props.initialIndex, () => {
|
|
375
|
-
if (!props.modelValue) return;
|
|
376
|
-
syncIndexFromInitial();
|
|
377
|
-
});
|
|
378
|
-
watch(() => props.urlList, () => {
|
|
379
|
-
if (!props.modelValue) return;
|
|
380
|
-
syncIndexFromInitial();
|
|
381
|
-
}, { deep: true });
|
|
382
|
-
watch(currentIndex, (index) => {
|
|
383
|
-
if (!hasImages.value || total.value < 2) return;
|
|
384
|
-
preloadAt(normalizeIndex(index - 1));
|
|
385
|
-
preloadAt(normalizeIndex(index + 1));
|
|
386
|
-
}, { immediate: true });
|
|
387
|
-
onBeforeUnmount(() => {
|
|
388
|
-
stopObservingImage();
|
|
389
|
-
endWheelZoom();
|
|
390
|
-
});
|
|
391
|
-
return (_ctx, _cache) => {
|
|
392
|
-
return openBlock(), createBlock(Teleport, { to: "body" }, [createVNode(unref(Se), {
|
|
393
|
-
show: open.value,
|
|
394
|
-
as: "template"
|
|
395
|
-
}, {
|
|
396
|
-
default: withCtx(() => [createVNode(unref(Ye), {
|
|
397
|
-
as: "div",
|
|
398
|
-
class: "fixed inset-0",
|
|
399
|
-
style: normalizeStyle(viewerStyle.value),
|
|
400
|
-
role: "dialog",
|
|
401
|
-
"aria-modal": "true",
|
|
402
|
-
static: true,
|
|
403
|
-
onKeydown
|
|
404
|
-
}, {
|
|
405
|
-
default: withCtx(() => [createElementVNode("div", _hoisted_1, [createVNode(unref(he), {
|
|
406
|
-
as: "template",
|
|
407
|
-
enter: "duration-150 ease-out",
|
|
408
|
-
"enter-from": "opacity-0",
|
|
409
|
-
"enter-to": "opacity-100",
|
|
410
|
-
leave: "duration-120 ease-in",
|
|
411
|
-
"leave-from": "opacity-100",
|
|
412
|
-
"leave-to": "opacity-0"
|
|
413
|
-
}, {
|
|
414
|
-
default: withCtx(() => [createElementVNode("div", {
|
|
415
|
-
"data-ds-image-viewer-overlay": "",
|
|
416
|
-
class: "absolute inset-0 bg-black/60 backdrop-blur-sm",
|
|
417
|
-
"aria-hidden": "true",
|
|
418
|
-
onClick: onBackdropClick
|
|
419
|
-
})]),
|
|
420
|
-
_: 1
|
|
421
|
-
}), createVNode(unref(he), {
|
|
422
|
-
as: "template",
|
|
423
|
-
enter: "duration-180 ease-out",
|
|
424
|
-
"enter-from": "opacity-0 scale-98",
|
|
425
|
-
"enter-to": "opacity-100 scale-100",
|
|
426
|
-
leave: "duration-130 ease-in",
|
|
427
|
-
"leave-from": "opacity-100 scale-100",
|
|
428
|
-
"leave-to": "opacity-0 scale-98"
|
|
429
|
-
}, {
|
|
430
|
-
default: withCtx(() => [createVNode(unref(Ge), {
|
|
431
|
-
"data-ds-image-viewer-panel": "",
|
|
432
|
-
class: "relative z-10 h-full w-full outline-none",
|
|
433
|
-
tabindex: "-1"
|
|
434
|
-
}, {
|
|
435
|
-
default: withCtx(() => [
|
|
436
|
-
createElementVNode("div", _hoisted_2, [createElementVNode("div", _hoisted_3, [createElementVNode("div", _hoisted_4, [__props.showProgress ? (openBlock(), createElementBlock("div", _hoisted_5, toDisplayString(displayIndex.value) + " / " + toDisplayString(total.value), 1)) : createCommentVNode("", true), __props.showZoomValue ? (openBlock(), createElementBlock("div", _hoisted_6, toDisplayString(zoomValueText.value) + "% ", 1)) : createCommentVNode("", true)]), createElementVNode("button", {
|
|
437
|
-
type: "button",
|
|
438
|
-
"data-ds-image-viewer-close": "",
|
|
439
|
-
"aria-label": __props.closeLabel,
|
|
440
|
-
class: "h-11 w-11 flex items-center justify-center rounded-full border border-white/20 bg-black/35 text-white transition-colors hover:bg-black/55 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white/80",
|
|
441
|
-
onClick: closeViewer
|
|
442
|
-
}, [..._cache[0] || (_cache[0] = [createElementVNode("span", {
|
|
443
|
-
"aria-hidden": "true",
|
|
444
|
-
class: "text-lg leading-none"
|
|
445
|
-
}, "✕", -1)])], 8, _hoisted_7)])]),
|
|
446
|
-
createElementVNode("div", {
|
|
447
|
-
class: "relative z-10 h-full w-full flex items-center justify-center px-16 py-16 sm:px-24 sm:py-20",
|
|
448
|
-
onWheel
|
|
449
|
-
}, [
|
|
450
|
-
total.value > 1 ? (openBlock(), createElementBlock("button", {
|
|
451
|
-
key: 0,
|
|
452
|
-
type: "button",
|
|
453
|
-
"data-ds-image-viewer-prev": "",
|
|
454
|
-
"aria-label": __props.prevLabel,
|
|
455
|
-
class: "absolute left-3 top-1/2 z-20 h-12 w-12 -translate-y-1/2 flex items-center justify-center rounded-full border border-white/20 bg-black/35 text-white transition-colors hover:bg-black/55 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white/80 sm:left-6",
|
|
456
|
-
onClick: prev
|
|
457
|
-
}, [..._cache[1] || (_cache[1] = [createElementVNode("span", {
|
|
458
|
-
"aria-hidden": "true",
|
|
459
|
-
class: "text-xl leading-none"
|
|
460
|
-
}, "‹", -1)])], 8, _hoisted_8)) : createCommentVNode("", true),
|
|
461
|
-
total.value > 1 ? (openBlock(), createElementBlock("button", {
|
|
462
|
-
key: 1,
|
|
463
|
-
type: "button",
|
|
464
|
-
"data-ds-image-viewer-next": "",
|
|
465
|
-
"aria-label": __props.nextLabel,
|
|
466
|
-
class: "absolute right-3 top-1/2 z-20 h-12 w-12 -translate-y-1/2 flex items-center justify-center rounded-full border border-white/20 bg-black/35 text-white transition-colors hover:bg-black/55 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white/80 sm:right-6",
|
|
467
|
-
onClick: next
|
|
468
|
-
}, [..._cache[2] || (_cache[2] = [createElementVNode("span", {
|
|
469
|
-
"aria-hidden": "true",
|
|
470
|
-
class: "text-xl leading-none"
|
|
471
|
-
}, "›", -1)])], 8, _hoisted_9)) : createCommentVNode("", true),
|
|
472
|
-
createElementVNode("div", _hoisted_10, [currentUrl.value ? (openBlock(), createElementBlock("img", {
|
|
473
|
-
key: 0,
|
|
474
|
-
ref_key: "imageEl",
|
|
475
|
-
ref: imageEl,
|
|
476
|
-
"data-ds-image-viewer-image": "",
|
|
477
|
-
src: currentUrl.value,
|
|
478
|
-
alt: "",
|
|
479
|
-
draggable: "false",
|
|
480
|
-
class: normalizeClass(["max-h-full max-w-full select-none object-contain will-change-transform", [imageTransitionClass.value, imageCursorClass.value]]),
|
|
481
|
-
style: normalizeStyle(imageStyle.value),
|
|
482
|
-
onLoad: onImageLoad,
|
|
483
|
-
onPointerdown: onPointerDown,
|
|
484
|
-
onPointermove: onPointerMove,
|
|
485
|
-
onPointerup: onPointerUp,
|
|
486
|
-
onPointercancel: onPointerUp
|
|
487
|
-
}, null, 46, _hoisted_11)) : (openBlock(), createElementBlock("div", _hoisted_12, toDisplayString(__props.emptyText), 1))])
|
|
488
|
-
], 32),
|
|
489
|
-
createElementVNode("div", _hoisted_13, [createElementVNode("div", _hoisted_14, [renderSlot(_ctx.$slots, "toolbar", normalizeProps(guardReactiveProps(toolbarSlotProps.value)), () => [createElementVNode("div", _hoisted_15, [
|
|
490
|
-
createElementVNode("button", {
|
|
491
|
-
type: "button",
|
|
492
|
-
"data-ds-image-viewer-zoom-out": "",
|
|
493
|
-
"aria-label": __props.zoomOutLabel,
|
|
494
|
-
class: "h-11 min-w-11 px-2 flex items-center justify-center rounded-full text-sm font-600 text-white transition-colors hover:bg-white/10 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white/80",
|
|
495
|
-
onClick: zoomOut
|
|
496
|
-
}, " − ", 8, _hoisted_16),
|
|
497
|
-
createElementVNode("button", {
|
|
498
|
-
type: "button",
|
|
499
|
-
"data-ds-image-viewer-zoom-reset": "",
|
|
500
|
-
"aria-label": __props.resetZoomLabel,
|
|
501
|
-
class: "h-11 min-w-11 px-3 flex items-center justify-center rounded-full text-xs font-700 text-white transition-colors hover:bg-white/10 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white/80",
|
|
502
|
-
onClick: resetTransform
|
|
503
|
-
}, " 100% ", 8, _hoisted_17),
|
|
504
|
-
createElementVNode("button", {
|
|
505
|
-
type: "button",
|
|
506
|
-
"data-ds-image-viewer-zoom-in": "",
|
|
507
|
-
"aria-label": __props.zoomInLabel,
|
|
508
|
-
class: "h-11 min-w-11 px-2 flex items-center justify-center rounded-full text-sm font-600 text-white transition-colors hover:bg-white/10 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white/80",
|
|
509
|
-
onClick: zoomIn
|
|
510
|
-
}, " + ", 8, _hoisted_18),
|
|
511
|
-
_ctx.$slots["toolbar-actions"] ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
512
|
-
_cache[3] || (_cache[3] = createElementVNode("div", {
|
|
513
|
-
class: "mx-1 h-6 w-px bg-white/25",
|
|
514
|
-
"aria-hidden": "true"
|
|
515
|
-
}, null, -1)),
|
|
516
|
-
renderSlot(_ctx.$slots, "toolbar-actions", normalizeProps(guardReactiveProps(toolbarSlotProps.value))),
|
|
517
|
-
_cache[4] || (_cache[4] = createElementVNode("div", {
|
|
518
|
-
class: "mx-1 h-6 w-px bg-white/25",
|
|
519
|
-
"aria-hidden": "true"
|
|
520
|
-
}, null, -1))
|
|
521
|
-
], 64)) : (openBlock(), createElementBlock("div", _hoisted_19)),
|
|
522
|
-
createElementVNode("button", {
|
|
523
|
-
type: "button",
|
|
524
|
-
"data-ds-image-viewer-rotate-left": "",
|
|
525
|
-
"aria-label": __props.rotateLeftLabel,
|
|
526
|
-
class: "h-11 min-w-11 px-2 flex items-center justify-center rounded-full text-sm font-600 text-white transition-colors hover:bg-white/10 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white/80",
|
|
527
|
-
onClick: rotateLeft
|
|
528
|
-
}, " ↺ ", 8, _hoisted_20),
|
|
529
|
-
createElementVNode("button", {
|
|
530
|
-
type: "button",
|
|
531
|
-
"data-ds-image-viewer-rotate-right": "",
|
|
532
|
-
"aria-label": __props.rotateRightLabel,
|
|
533
|
-
class: "h-11 min-w-11 px-2 flex items-center justify-center rounded-full text-sm font-600 text-white transition-colors hover:bg-white/10 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white/80",
|
|
534
|
-
onClick: rotateRight
|
|
535
|
-
}, " ↻ ", 8, _hoisted_21)
|
|
536
|
-
])])])])
|
|
537
|
-
]),
|
|
538
|
-
_: 3
|
|
539
|
-
})]),
|
|
540
|
-
_: 3
|
|
541
|
-
})])]),
|
|
542
|
-
_: 3
|
|
543
|
-
}, 8, ["style"])]),
|
|
544
|
-
_: 3
|
|
545
|
-
}, 8, ["show"])]);
|
|
546
|
-
};
|
|
547
|
-
}
|
|
548
|
-
});
|
|
549
|
-
//#endregion
|
|
550
|
-
export { GrImageViewer_default as t };
|