@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
|
@@ -48,7 +48,7 @@ type __VLS_Slots = {} & {
|
|
|
48
48
|
footer?: (props: typeof __VLS_18) => any;
|
|
49
49
|
};
|
|
50
50
|
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<GrConfirmDialogProps>, {
|
|
51
|
-
title:
|
|
51
|
+
title: undefined;
|
|
52
52
|
description: undefined;
|
|
53
53
|
closeOnBackdrop: boolean;
|
|
54
54
|
closeOnEsc: boolean;
|
|
@@ -58,10 +58,10 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
58
58
|
headerConfig: undefined;
|
|
59
59
|
footerConfig: undefined;
|
|
60
60
|
bodyConfig: undefined;
|
|
61
|
-
closeLabel:
|
|
61
|
+
closeLabel: undefined;
|
|
62
62
|
buttonSize: undefined;
|
|
63
|
-
confirmText:
|
|
64
|
-
cancelText:
|
|
63
|
+
confirmText: undefined;
|
|
64
|
+
cancelText: undefined;
|
|
65
65
|
confirmVariant: string;
|
|
66
66
|
confirmTone: string;
|
|
67
67
|
error: null;
|
|
@@ -73,7 +73,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
73
73
|
confirm: () => void;
|
|
74
74
|
cancel: () => void;
|
|
75
75
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<GrConfirmDialogProps>, {
|
|
76
|
-
title:
|
|
76
|
+
title: undefined;
|
|
77
77
|
description: undefined;
|
|
78
78
|
closeOnBackdrop: boolean;
|
|
79
79
|
closeOnEsc: boolean;
|
|
@@ -83,10 +83,10 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
83
83
|
headerConfig: undefined;
|
|
84
84
|
footerConfig: undefined;
|
|
85
85
|
bodyConfig: undefined;
|
|
86
|
-
closeLabel:
|
|
86
|
+
closeLabel: undefined;
|
|
87
87
|
buttonSize: undefined;
|
|
88
|
-
confirmText:
|
|
89
|
-
cancelText:
|
|
88
|
+
confirmText: undefined;
|
|
89
|
+
cancelText: undefined;
|
|
90
90
|
confirmVariant: string;
|
|
91
91
|
confirmTone: string;
|
|
92
92
|
error: null;
|
|
@@ -11,10 +11,20 @@ export interface GrDataTableProps<TRow extends Record<string, unknown> = Record<
|
|
|
11
11
|
columns: GrDataColumn[];
|
|
12
12
|
/** Ключ строки или функция-резолвер. По умолчанию — поле `'id'`. */
|
|
13
13
|
rowKey?: GrDataTableRowKey<TRow>;
|
|
14
|
-
/** Ключ колонки для начальной
|
|
14
|
+
/** Ключ колонки для начальной сортировки (uncontrolled-режим). */
|
|
15
15
|
initialSortKey?: string;
|
|
16
|
-
/** Направление начальной
|
|
16
|
+
/** Направление начальной сортировки (uncontrolled-режим). */
|
|
17
17
|
initialSortDir?: 'asc' | 'desc';
|
|
18
|
+
/** Контролируемый ключ сортировки: `v-model:sortKey`. Задаёт controlled-режим. */
|
|
19
|
+
sortKey?: string;
|
|
20
|
+
/** Контролируемое направление сортировки: `v-model:sortDir`. */
|
|
21
|
+
sortDir?: 'asc' | 'desc';
|
|
22
|
+
/**
|
|
23
|
+
* Внешняя сортировка (например серверная): компонент НЕ сортирует `rows`
|
|
24
|
+
* сам, а только сообщает о смене через `update:sortKey`/`update:sortDir`/
|
|
25
|
+
* `sort-change`. `rows` при этом должны приходить уже отсортированными.
|
|
26
|
+
*/
|
|
27
|
+
externalSort?: boolean;
|
|
18
28
|
density?: GrTableDensity;
|
|
19
29
|
caption?: string;
|
|
20
30
|
ariaLabel?: string;
|
|
@@ -22,7 +32,14 @@ export interface GrDataTableProps<TRow extends Record<string, unknown> = Record<
|
|
|
22
32
|
regionLabel?: string;
|
|
23
33
|
}
|
|
24
34
|
declare const __VLS_export: <TRow extends Record<string, unknown> = Record<string, unknown>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
25
|
-
props: import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & __VLS_PrettifyLocal<GrDataTableProps<TRow
|
|
35
|
+
props: import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & __VLS_PrettifyLocal<GrDataTableProps<TRow> & {
|
|
36
|
+
"onUpdate:sortKey"?: ((value: string) => any) | undefined;
|
|
37
|
+
"onUpdate:sortDir"?: ((value: "desc" | "asc") => any) | undefined;
|
|
38
|
+
"onSort-change"?: ((value: {
|
|
39
|
+
key: string;
|
|
40
|
+
dir: "asc" | "desc";
|
|
41
|
+
}) => any) | undefined;
|
|
42
|
+
}> & (typeof globalThis extends {
|
|
26
43
|
__VLS_PROPS_FALLBACK: infer P;
|
|
27
44
|
} ? P : {});
|
|
28
45
|
expose: (exposed: {}) => void;
|
|
@@ -38,9 +55,16 @@ declare const __VLS_export: <TRow extends Record<string, unknown> = Record<strin
|
|
|
38
55
|
} & {
|
|
39
56
|
foot?: (props: {}) => any;
|
|
40
57
|
};
|
|
41
|
-
emit: {
|
|
58
|
+
emit: {
|
|
59
|
+
(e: "update:sortKey", value: string): void;
|
|
60
|
+
(e: "update:sortDir", value: "asc" | "desc"): void;
|
|
61
|
+
(e: "sort-change", value: {
|
|
62
|
+
key: string;
|
|
63
|
+
dir: "asc" | "desc";
|
|
64
|
+
}): void;
|
|
65
|
+
};
|
|
42
66
|
}>) => import("vue").VNode & {
|
|
43
|
-
__ctx?: Awaited<typeof __VLS_setup
|
|
67
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
44
68
|
};
|
|
45
69
|
declare const _default: typeof __VLS_export;
|
|
46
70
|
export default _default;
|
|
@@ -30,7 +30,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
30
30
|
headerConfig: undefined;
|
|
31
31
|
footerConfig: undefined;
|
|
32
32
|
bodyConfig: undefined;
|
|
33
|
-
closeLabel:
|
|
33
|
+
closeLabel: undefined;
|
|
34
34
|
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
35
35
|
"update:modelValue": (value: boolean) => void;
|
|
36
36
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<GrDialogProps>, {
|
|
@@ -43,7 +43,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
43
43
|
headerConfig: undefined;
|
|
44
44
|
footerConfig: undefined;
|
|
45
45
|
bodyConfig: undefined;
|
|
46
|
-
closeLabel:
|
|
46
|
+
closeLabel: undefined;
|
|
47
47
|
}>>> & Readonly<{
|
|
48
48
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
49
49
|
}>, {
|
|
@@ -15,14 +15,14 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
15
15
|
title: undefined;
|
|
16
16
|
showCloseButton: boolean;
|
|
17
17
|
config: undefined;
|
|
18
|
-
closeLabel:
|
|
18
|
+
closeLabel: undefined;
|
|
19
19
|
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
20
20
|
close: () => void;
|
|
21
21
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<GrDialogHeaderProps>, {
|
|
22
22
|
title: undefined;
|
|
23
23
|
showCloseButton: boolean;
|
|
24
24
|
config: undefined;
|
|
25
|
-
closeLabel:
|
|
25
|
+
closeLabel: undefined;
|
|
26
26
|
}>>> & Readonly<{
|
|
27
27
|
onClose?: (() => any) | undefined;
|
|
28
28
|
}>, {
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GrDivider — разделитель контента.
|
|
3
|
+
*
|
|
4
|
+
* - `orientation="horizontal"` (по умолчанию) — линия на всю ширину; с `label`
|
|
5
|
+
* или default-слотом рисует текст по центру/краю между отрезками линии.
|
|
6
|
+
* - `orientation="vertical"` — тонкая вертикальная линия (для inline-разделения,
|
|
7
|
+
* например в тулбарах).
|
|
8
|
+
*/
|
|
9
|
+
export type GrDividerOrientation = 'horizontal' | 'vertical';
|
|
10
|
+
export type GrDividerAlign = 'start' | 'center' | 'end';
|
|
11
|
+
type __VLS_Props = {
|
|
12
|
+
orientation?: GrDividerOrientation;
|
|
13
|
+
label?: string;
|
|
14
|
+
align?: GrDividerAlign;
|
|
15
|
+
};
|
|
16
|
+
declare var __VLS_1: {};
|
|
17
|
+
type __VLS_Slots = {} & {
|
|
18
|
+
default?: (props: typeof __VLS_1) => any;
|
|
19
|
+
};
|
|
20
|
+
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
|
|
21
|
+
orientation: string;
|
|
22
|
+
label: undefined;
|
|
23
|
+
align: string;
|
|
24
|
+
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
|
|
25
|
+
orientation: string;
|
|
26
|
+
label: undefined;
|
|
27
|
+
align: string;
|
|
28
|
+
}>>> & Readonly<{}>, {
|
|
29
|
+
label: string;
|
|
30
|
+
align: GrDividerAlign;
|
|
31
|
+
orientation: GrDividerOrientation;
|
|
32
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
33
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
34
|
+
declare const _default: typeof __VLS_export;
|
|
35
|
+
export default _default;
|
|
36
|
+
type __VLS_TypePropsToOption<T> = {
|
|
37
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
38
|
+
type: import('vue').PropType<Required<T>[K]>;
|
|
39
|
+
} : {
|
|
40
|
+
type: import('vue').PropType<T[K]>;
|
|
41
|
+
required: true;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
type __VLS_WithDefaults<P, D> = {
|
|
45
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
46
|
+
default: D[K];
|
|
47
|
+
}> : P[K];
|
|
48
|
+
};
|
|
49
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
50
|
+
new (): {
|
|
51
|
+
$slots: S;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
55
|
+
[K in keyof T]: T[K];
|
|
56
|
+
} : {
|
|
57
|
+
[K in keyof T as K]: T[K];
|
|
58
|
+
}) & {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const grDividerConfig: import("@feugene/unocss-preset-granular").GranularComponentDescriptor<"GrDivider">;
|
|
@@ -15,13 +15,13 @@ export interface GrDrawerProps {
|
|
|
15
15
|
/** i18n-friendly aria-label для кнопки закрытия. */
|
|
16
16
|
closeLabel?: string;
|
|
17
17
|
}
|
|
18
|
-
declare var
|
|
18
|
+
declare var __VLS_46: {}, __VLS_67: {}, __VLS_69: {};
|
|
19
19
|
type __VLS_Slots = {} & {
|
|
20
|
-
title?: (props: typeof
|
|
20
|
+
title?: (props: typeof __VLS_46) => any;
|
|
21
21
|
} & {
|
|
22
|
-
default?: (props: typeof
|
|
22
|
+
default?: (props: typeof __VLS_67) => any;
|
|
23
23
|
} & {
|
|
24
|
-
footer?: (props: typeof
|
|
24
|
+
footer?: (props: typeof __VLS_69) => any;
|
|
25
25
|
};
|
|
26
26
|
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<GrDrawerProps>, {
|
|
27
27
|
title: undefined;
|
|
@@ -29,7 +29,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
29
29
|
closeOnEsc: boolean;
|
|
30
30
|
side: string;
|
|
31
31
|
size: string;
|
|
32
|
-
closeLabel:
|
|
32
|
+
closeLabel: undefined;
|
|
33
33
|
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
34
34
|
"update:modelValue": (value: boolean) => void;
|
|
35
35
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<GrDrawerProps>, {
|
|
@@ -38,7 +38,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
38
38
|
closeOnEsc: boolean;
|
|
39
39
|
side: string;
|
|
40
40
|
size: string;
|
|
41
|
-
closeLabel:
|
|
41
|
+
closeLabel: undefined;
|
|
42
42
|
}>>> & Readonly<{
|
|
43
43
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
44
44
|
}>, {
|
|
@@ -11,12 +11,19 @@ export interface GrDropdownProps {
|
|
|
11
11
|
/** Куда телепортировать панель (`body` по умолчанию). */
|
|
12
12
|
teleportTo?: string | HTMLElement;
|
|
13
13
|
}
|
|
14
|
+
declare function onTriggerKeydown(event: KeyboardEvent): void;
|
|
14
15
|
declare function toggle(): void;
|
|
15
16
|
declare function close(): void;
|
|
16
17
|
declare var __VLS_1: {
|
|
17
18
|
open: boolean;
|
|
18
19
|
toggle: typeof toggle;
|
|
19
20
|
close: typeof close;
|
|
21
|
+
triggerProps: {
|
|
22
|
+
'aria-haspopup': "menu";
|
|
23
|
+
'aria-expanded': boolean;
|
|
24
|
+
'aria-controls': string | undefined;
|
|
25
|
+
onKeydown: typeof onTriggerKeydown;
|
|
26
|
+
};
|
|
20
27
|
}, __VLS_15: {
|
|
21
28
|
close: typeof close;
|
|
22
29
|
};
|
|
@@ -22,6 +22,12 @@ declare var __VLS_9: {
|
|
|
22
22
|
open: boolean;
|
|
23
23
|
toggle: () => void;
|
|
24
24
|
close: () => void;
|
|
25
|
+
triggerProps: {
|
|
26
|
+
'aria-haspopup': "menu";
|
|
27
|
+
'aria-expanded': boolean;
|
|
28
|
+
'aria-controls': string | undefined;
|
|
29
|
+
onKeydown: (event: KeyboardEvent) => void;
|
|
30
|
+
};
|
|
25
31
|
}, __VLS_18: {
|
|
26
32
|
close: () => void;
|
|
27
33
|
};
|
|
@@ -113,10 +113,10 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
113
113
|
withCredentials: boolean;
|
|
114
114
|
showFileList: boolean;
|
|
115
115
|
uploadExtraData: undefined;
|
|
116
|
-
placeholder:
|
|
116
|
+
placeholder: undefined;
|
|
117
117
|
showProgress: boolean;
|
|
118
118
|
progressTone: string;
|
|
119
|
-
progressLabel:
|
|
119
|
+
progressLabel: undefined;
|
|
120
120
|
hideProgressOnSuccess: number;
|
|
121
121
|
}>>, {
|
|
122
122
|
uploadFiles: typeof handleFiles;
|
|
@@ -143,10 +143,10 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
143
143
|
withCredentials: boolean;
|
|
144
144
|
showFileList: boolean;
|
|
145
145
|
uploadExtraData: undefined;
|
|
146
|
-
placeholder:
|
|
146
|
+
placeholder: undefined;
|
|
147
147
|
showProgress: boolean;
|
|
148
148
|
progressTone: string;
|
|
149
|
-
progressLabel:
|
|
149
|
+
progressLabel: undefined;
|
|
150
150
|
hideProgressOnSuccess: number;
|
|
151
151
|
}>>> & Readonly<{
|
|
152
152
|
onSuccess?: ((payload: any) => any) | undefined;
|
|
@@ -1,28 +1,41 @@
|
|
|
1
1
|
type LabelClass = string | string[] | Record<string, boolean>;
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
label?: string;
|
|
4
|
+
/** Явный id контрола. Если не задан — генерируется автоматически. */
|
|
4
5
|
forId?: string;
|
|
5
6
|
error?: string;
|
|
7
|
+
/** Подсказка под лейблом/над контролом (можно также через слот `#hint`). */
|
|
8
|
+
hint?: string;
|
|
9
|
+
/** Помечает поле обязательным (маркер `*` + `aria-required` у контрола). */
|
|
10
|
+
required?: boolean;
|
|
6
11
|
labelClass?: LabelClass;
|
|
7
12
|
};
|
|
8
|
-
declare var __VLS_1: {};
|
|
13
|
+
declare var __VLS_1: {}, __VLS_3: {};
|
|
9
14
|
type __VLS_Slots = {} & {
|
|
10
|
-
|
|
15
|
+
hint?: (props: typeof __VLS_1) => any;
|
|
16
|
+
} & {
|
|
17
|
+
default?: (props: typeof __VLS_3) => any;
|
|
11
18
|
};
|
|
12
19
|
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
|
|
13
20
|
label: undefined;
|
|
14
21
|
forId: undefined;
|
|
15
22
|
error: undefined;
|
|
23
|
+
hint: undefined;
|
|
24
|
+
required: boolean;
|
|
16
25
|
labelClass: undefined;
|
|
17
26
|
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
|
|
18
27
|
label: undefined;
|
|
19
28
|
forId: undefined;
|
|
20
29
|
error: undefined;
|
|
30
|
+
hint: undefined;
|
|
31
|
+
required: boolean;
|
|
21
32
|
labelClass: undefined;
|
|
22
33
|
}>>> & Readonly<{}>, {
|
|
23
34
|
label: string;
|
|
35
|
+
required: boolean;
|
|
24
36
|
error: string;
|
|
25
37
|
forId: string;
|
|
38
|
+
hint: string;
|
|
26
39
|
labelClass: LabelClass;
|
|
27
40
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
28
41
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { type ComputedRef, type InjectionKey } from 'vue';
|
|
2
|
+
/**
|
|
3
|
+
* Контекст поля формы, который `GrFormField` предоставляет своим контролам
|
|
4
|
+
* (`GrInput` / `GrSelect` / `GrTextarea`). Контролы читают его через
|
|
5
|
+
* {@link useGrFormFieldContext} и используют как fallback для `id`,
|
|
6
|
+
* `aria-describedby` и `aria-invalid` — без ручного прокидывания `forId`.
|
|
7
|
+
*/
|
|
8
|
+
export interface GrFormFieldContext {
|
|
9
|
+
/** Сгенерированный (или переданный `forId`) id контрола. */
|
|
10
|
+
id: ComputedRef<string | undefined>;
|
|
11
|
+
/** `aria-describedby`: id подсказки и/или сообщения об ошибке. */
|
|
12
|
+
describedById: ComputedRef<string | undefined>;
|
|
13
|
+
/** Невалидно ли поле (есть `error`). */
|
|
14
|
+
invalid: ComputedRef<boolean>;
|
|
15
|
+
/** Обязательное ли поле. */
|
|
16
|
+
required: ComputedRef<boolean>;
|
|
17
|
+
}
|
|
18
|
+
export declare const GR_FORM_FIELD_KEY: InjectionKey<GrFormFieldContext>;
|
|
19
|
+
/** Возвращает контекст поля формы или `null`, если контрол вне `GrFormField`. */
|
|
20
|
+
export declare function useGrFormFieldContext(): GrFormFieldContext | null;
|
|
@@ -38,11 +38,11 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
38
38
|
multiple: boolean;
|
|
39
39
|
disabled: boolean;
|
|
40
40
|
accept: undefined;
|
|
41
|
-
uploadText:
|
|
42
|
-
changeText:
|
|
43
|
-
removeText:
|
|
44
|
-
clearAllText:
|
|
45
|
-
placeholder:
|
|
41
|
+
uploadText: undefined;
|
|
42
|
+
changeText: undefined;
|
|
43
|
+
removeText: undefined;
|
|
44
|
+
clearAllText: undefined;
|
|
45
|
+
placeholder: undefined;
|
|
46
46
|
validators: undefined;
|
|
47
47
|
validate: undefined;
|
|
48
48
|
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -55,18 +55,18 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
55
55
|
multiple: boolean;
|
|
56
56
|
disabled: boolean;
|
|
57
57
|
accept: undefined;
|
|
58
|
-
uploadText:
|
|
59
|
-
changeText:
|
|
60
|
-
removeText:
|
|
61
|
-
clearAllText:
|
|
62
|
-
placeholder:
|
|
58
|
+
uploadText: undefined;
|
|
59
|
+
changeText: undefined;
|
|
60
|
+
removeText: undefined;
|
|
61
|
+
clearAllText: undefined;
|
|
62
|
+
placeholder: undefined;
|
|
63
63
|
validators: undefined;
|
|
64
64
|
validate: undefined;
|
|
65
65
|
}>>> & Readonly<{
|
|
66
66
|
"onUpdate:modelValue"?: ((value: File | File[] | null) => any) | undefined;
|
|
67
|
+
onClear?: (() => any) | undefined;
|
|
67
68
|
onChange?: ((value: File | File[] | null) => any) | undefined;
|
|
68
69
|
onValidation?: ((errors: FileValidationIssue[]) => any) | undefined;
|
|
69
|
-
onClear?: (() => any) | undefined;
|
|
70
70
|
"onUpdate:errors"?: ((errors: FileValidationIssue[]) => any) | undefined;
|
|
71
71
|
}>, {
|
|
72
72
|
disabled: boolean;
|
|
@@ -8,6 +8,10 @@
|
|
|
8
8
|
* show-progress
|
|
9
9
|
* hide-on-click-modal
|
|
10
10
|
* />
|
|
11
|
+
*
|
|
12
|
+
* Логика вынесена в composables: `useZoomPan` (масштаб/поворот/пан + метрики),
|
|
13
|
+
* `useWheelGesture` (зум колесом/трекпадом с rAF-батчингом), `useViewerKeyboard`
|
|
14
|
+
* (клавиатура). Сам SFC отвечает за оверлей, индекс изображений и композицию.
|
|
11
15
|
*/
|
|
12
16
|
type __VLS_Props = {
|
|
13
17
|
modelValue: boolean;
|
|
@@ -106,15 +110,15 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
106
110
|
wheelZoom: boolean;
|
|
107
111
|
draggable: boolean;
|
|
108
112
|
zIndex: undefined;
|
|
109
|
-
closeLabel:
|
|
110
|
-
prevLabel:
|
|
111
|
-
nextLabel:
|
|
112
|
-
zoomInLabel:
|
|
113
|
-
zoomOutLabel:
|
|
114
|
-
resetZoomLabel:
|
|
115
|
-
rotateLeftLabel:
|
|
116
|
-
rotateRightLabel:
|
|
117
|
-
emptyText:
|
|
113
|
+
closeLabel: undefined;
|
|
114
|
+
prevLabel: undefined;
|
|
115
|
+
nextLabel: undefined;
|
|
116
|
+
zoomInLabel: undefined;
|
|
117
|
+
zoomOutLabel: undefined;
|
|
118
|
+
resetZoomLabel: undefined;
|
|
119
|
+
rotateLeftLabel: undefined;
|
|
120
|
+
rotateRightLabel: undefined;
|
|
121
|
+
emptyText: undefined;
|
|
118
122
|
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
119
123
|
"update:modelValue": (value: boolean) => void;
|
|
120
124
|
close: () => void;
|
|
@@ -132,15 +136,15 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
132
136
|
wheelZoom: boolean;
|
|
133
137
|
draggable: boolean;
|
|
134
138
|
zIndex: undefined;
|
|
135
|
-
closeLabel:
|
|
136
|
-
prevLabel:
|
|
137
|
-
nextLabel:
|
|
138
|
-
zoomInLabel:
|
|
139
|
-
zoomOutLabel:
|
|
140
|
-
resetZoomLabel:
|
|
141
|
-
rotateLeftLabel:
|
|
142
|
-
rotateRightLabel:
|
|
143
|
-
emptyText:
|
|
139
|
+
closeLabel: undefined;
|
|
140
|
+
prevLabel: undefined;
|
|
141
|
+
nextLabel: undefined;
|
|
142
|
+
zoomInLabel: undefined;
|
|
143
|
+
zoomOutLabel: undefined;
|
|
144
|
+
resetZoomLabel: undefined;
|
|
145
|
+
rotateLeftLabel: undefined;
|
|
146
|
+
rotateRightLabel: undefined;
|
|
147
|
+
emptyText: undefined;
|
|
144
148
|
}>>> & Readonly<{
|
|
145
149
|
onClose?: (() => any) | undefined;
|
|
146
150
|
onSwitch?: ((newIndex: number) => any) | undefined;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface ViewerKeyboardActions {
|
|
2
|
+
close: () => void;
|
|
3
|
+
prev: () => void;
|
|
4
|
+
next: () => void;
|
|
5
|
+
zoomIn: () => void;
|
|
6
|
+
zoomOut: () => void;
|
|
7
|
+
reset: () => void;
|
|
8
|
+
}
|
|
9
|
+
export interface UseViewerKeyboardOptions {
|
|
10
|
+
/** Закрывать ли по Escape (проп `closeOnPressEscape`). */
|
|
11
|
+
closeOnEscape: () => boolean;
|
|
12
|
+
actions: ViewerKeyboardActions;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* useViewerKeyboard — клавиатурное управление просмотрщиком:
|
|
16
|
+
* Esc — закрыть, стрелки — переключение, `+`/`-`/`0` — зум/сброс.
|
|
17
|
+
*/
|
|
18
|
+
export declare function useViewerKeyboard(options: UseViewerKeyboardOptions): {
|
|
19
|
+
onKeydown: (event: KeyboardEvent) => void;
|
|
20
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface UseWheelGestureOptions {
|
|
2
|
+
/** Разрешён ли зум колесом (проп `wheelZoom` + наличие изображений). */
|
|
3
|
+
enabled: () => boolean;
|
|
4
|
+
/** Применить множитель масштаба (накопленный за кадр). */
|
|
5
|
+
applyZoomFactor: (factor: number) => void;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* useWheelGesture — масштабирование колесом мыши / жестом трекпада с батчингом
|
|
9
|
+
* по `requestAnimationFrame` (рендер не чаще кадра — без «дёрганья»/наслоения) и
|
|
10
|
+
* временным отключением CSS-перехода на время жеста (`isWheelZooming`).
|
|
11
|
+
*/
|
|
12
|
+
export declare function useWheelGesture(options: UseWheelGestureOptions): {
|
|
13
|
+
isWheelZooming: import("vue").Ref<boolean, boolean>;
|
|
14
|
+
onWheel: (event: WheelEvent) => void;
|
|
15
|
+
endWheelZoom: () => void;
|
|
16
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { type Ref } from 'vue';
|
|
2
|
+
export declare function formatPercent(value: number): string;
|
|
3
|
+
export interface UseZoomPanOptions {
|
|
4
|
+
minScale: () => number;
|
|
5
|
+
maxScale: () => number;
|
|
6
|
+
zoomRate: () => number;
|
|
7
|
+
draggable: () => boolean;
|
|
8
|
+
/** Ссылка на `<img>` — для измерения layout-размера и подписки ResizeObserver. */
|
|
9
|
+
imageEl: Ref<HTMLImageElement | null>;
|
|
10
|
+
/** Колбэк на поворот (эмит `rotate`). */
|
|
11
|
+
onRotate: (deg: number) => void;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* useZoomPan — состояние и логика масштаба/поворота/панорамирования картинки,
|
|
15
|
+
* а также метрики (натуральный/вписанный/фактический размер, реальный масштаб).
|
|
16
|
+
* Вынесено из монолитного `GrImageViewer.vue`.
|
|
17
|
+
*/
|
|
18
|
+
export declare function useZoomPan(options: UseZoomPanOptions): {
|
|
19
|
+
scale: Ref<number, number>;
|
|
20
|
+
rotation: Ref<number, number>;
|
|
21
|
+
offsetX: Ref<number, number>;
|
|
22
|
+
offsetY: Ref<number, number>;
|
|
23
|
+
isDragging: Ref<boolean, boolean>;
|
|
24
|
+
naturalWidth: Ref<number, number>;
|
|
25
|
+
naturalHeight: Ref<number, number>;
|
|
26
|
+
fittedWidth: Ref<number, number>;
|
|
27
|
+
fittedHeight: Ref<number, number>;
|
|
28
|
+
imageStyle: import("vue").ComputedRef<{
|
|
29
|
+
transform: string;
|
|
30
|
+
}>;
|
|
31
|
+
zoomValueText: import("vue").ComputedRef<string>;
|
|
32
|
+
renderedWidth: import("vue").ComputedRef<number>;
|
|
33
|
+
renderedHeight: import("vue").ComputedRef<number>;
|
|
34
|
+
realScale: import("vue").ComputedRef<number>;
|
|
35
|
+
realScalePercent: import("vue").ComputedRef<string>;
|
|
36
|
+
setScale: (value: number) => void;
|
|
37
|
+
zoomIn: () => void;
|
|
38
|
+
zoomOut: () => void;
|
|
39
|
+
rotateLeft: () => void;
|
|
40
|
+
rotateRight: () => void;
|
|
41
|
+
resetTransform: () => void;
|
|
42
|
+
resetImageMetrics: () => void;
|
|
43
|
+
measureFitted: () => void;
|
|
44
|
+
onImageLoad: (event: Event) => void;
|
|
45
|
+
startObservingImage: () => void;
|
|
46
|
+
stopObservingImage: () => void;
|
|
47
|
+
onPointerDown: (event: PointerEvent) => void;
|
|
48
|
+
onPointerMove: (event: PointerEvent) => void;
|
|
49
|
+
onPointerUp: (event: PointerEvent) => void;
|
|
50
|
+
};
|