@feugene/granularity 0.11.0 → 0.13.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/dist/GrBadge.css +1 -1
- package/dist/GrFormFile.css +1 -1
- package/dist/GrToaster.css +1 -1
- package/dist/GrTree.css +1 -1
- package/dist/chunks/{config-ClhKPJvg.js → config-23WtUiAL.js} +1 -1
- package/dist/chunks/config-23WtUiAL.js.map +1 -0
- package/dist/chunks/config-8Pcutu1j.js.map +1 -0
- package/dist/chunks/{config-1uSYl98Y.js → config-B0i5r8kH.js} +1 -1
- package/dist/chunks/config-B0i5r8kH.js.map +1 -0
- package/dist/chunks/{config-BOlr7qw7.js → config-B5Rknzkd.js} +33 -39
- package/dist/chunks/config-B5Rknzkd.js.map +1 -0
- package/dist/chunks/config-B7W9VlZ7.js +5 -0
- package/dist/chunks/config-B7W9VlZ7.js.map +1 -0
- package/dist/chunks/config-BDSHekVC.js +84 -0
- package/dist/chunks/config-BDSHekVC.js.map +1 -0
- package/dist/chunks/config-BLHqZhy-.js.map +1 -0
- package/dist/chunks/{config-eYLZYOUS2.js → config-BMKNHFMD2.js} +15 -15
- package/dist/chunks/config-BMKNHFMD2.js.map +1 -0
- package/dist/chunks/config-BUHuGBik2.js.map +1 -0
- package/dist/chunks/config-BWiPnygb.js +5 -0
- package/dist/chunks/config-BWiPnygb.js.map +1 -0
- package/dist/chunks/config-BX1JTrkV.js.map +1 -0
- package/dist/chunks/config-BZFUM3Ky.js +75 -0
- package/dist/chunks/config-BZFUM3Ky.js.map +1 -0
- package/dist/chunks/{config-DUcu1D68.js → config-BmNT0Fmx.js} +2 -2
- package/dist/chunks/config-BmNT0Fmx.js.map +1 -0
- package/dist/chunks/{config-C49QUoJL.js → config-BvVq2gbd.js} +1 -1
- package/dist/chunks/{config-C49QUoJL.js.map → config-BvVq2gbd.js.map} +1 -1
- package/dist/chunks/{config-CrG1XiE7.js → config-C4hJxXDa.js} +5 -5
- package/dist/chunks/config-C4hJxXDa.js.map +1 -0
- package/dist/chunks/config-CB4RVt9M.js +66 -0
- package/dist/chunks/config-CB4RVt9M.js.map +1 -0
- package/dist/chunks/config-COE_vZ-l.js +52 -0
- package/dist/chunks/config-COE_vZ-l.js.map +1 -0
- package/dist/chunks/{config-CziwTDDL.js → config-CPdmr7tC.js} +1 -1
- package/dist/chunks/{config-CziwTDDL.js.map → config-CPdmr7tC.js.map} +1 -1
- package/dist/chunks/{config-BIRO0vDJ2.js → config-DPDFYzIa.js} +2 -2
- package/dist/chunks/config-DPDFYzIa.js.map +1 -0
- package/dist/chunks/{config-DnvPqu4g.js → config-DRKXJ9PW2.js} +1 -1
- package/dist/chunks/config-DRKXJ9PW2.js.map +1 -0
- package/dist/chunks/config-DToHb81g.js +45 -0
- package/dist/chunks/config-DToHb81g.js.map +1 -0
- package/dist/chunks/{config-jBp9wVv-.js → config-D_myOZbA.js} +1 -1
- package/dist/chunks/{config-jBp9wVv-.js.map → config-D_myOZbA.js.map} +1 -1
- package/dist/chunks/{config-D_R56_gT.js → config-Dg_6FTvJ.js} +1 -1
- package/dist/chunks/config-Dg_6FTvJ.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-DpqOnJiz.js.map +1 -0
- package/dist/chunks/config-Dqy0rPPO2.js.map +1 -0
- package/dist/chunks/config-Droqn55j.js +8 -0
- package/dist/chunks/config-Droqn55j.js.map +1 -0
- package/dist/chunks/{config-C4snOIXg.js → config-KXuionN3.js} +1 -1
- package/dist/chunks/{config-C4snOIXg.js.map → config-KXuionN3.js.map} +1 -1
- package/dist/chunks/config-LGrZIdaZ.js.map +1 -0
- package/dist/chunks/{config-DezDih8_.js → config-LqDC_rvp.js} +2 -2
- package/dist/chunks/config-LqDC_rvp.js.map +1 -0
- package/dist/chunks/config-QaIc_gRa2.js.map +1 -0
- package/dist/chunks/config-U4m9PSql2.js.map +1 -0
- package/dist/chunks/{config-B7IIWGt_2.js → config-XmTv4pnI.js} +2 -2
- package/dist/chunks/config-XmTv4pnI.js.map +1 -0
- package/dist/chunks/config-eXB87DOi.js +9 -0
- package/dist/chunks/config-eXB87DOi.js.map +1 -0
- package/dist/chunks/{config-C7NpDrfO.js → config-gZWR75Bh2.js} +1 -1
- package/dist/chunks/config-gZWR75Bh2.js.map +1 -0
- package/dist/chunks/config-ipvU0lzP.js.map +1 -0
- package/dist/chunks/config-xR4XVmcy2.js.map +1 -0
- package/dist/chunks/context-Bfrgsluh.js +9 -0
- package/dist/chunks/context-Bfrgsluh.js.map +1 -0
- package/dist/chunks/context-DdNIxa1w.js +9 -0
- package/dist/chunks/context-DdNIxa1w.js.map +1 -0
- package/dist/chunks/context-DfWYCBB-.js +129 -0
- package/dist/chunks/context-DfWYCBB-.js.map +1 -0
- package/dist/chunks/{en-BdtiS2d3.js → en-Cr6EkG8c.js} +52 -4
- package/dist/chunks/en-Cr6EkG8c.js.map +1 -0
- package/dist/chunks/{es-DBhctWg-.js → es-DuYb1Qju.js} +3 -3
- package/dist/chunks/{es-DBhctWg-.js.map → es-DuYb1Qju.js.map} +1 -1
- package/dist/chunks/{es-BGRMZbe9.js → es-i08e9Sdo.js} +52 -4
- package/dist/chunks/es-i08e9Sdo.js.map +1 -0
- package/dist/chunks/{grBadgeStyles-DrycBuKT.js → grBadgeStyles-D3dFjr_N.js} +12 -12
- package/dist/chunks/grBadgeStyles-D3dFjr_N.js.map +1 -0
- package/dist/chunks/{grButtonStyles-C7Yga_Q1.js → grButtonStyles-DRBgDmOp.js} +28 -28
- package/dist/chunks/grButtonStyles-DRBgDmOp.js.map +1 -0
- package/dist/chunks/{grDropdownStyles-B_-DKytw.js → grDropdownStyles-HBPkghVr.js} +2 -2
- package/dist/chunks/{grDropdownStyles-B_-DKytw.js.map → grDropdownStyles-HBPkghVr.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-DWd3i05Q.js → grModalStyles-D8-shx9A.js} +1 -1
- package/dist/chunks/grModalStyles-D8-shx9A.js.map +1 -0
- package/dist/chunks/{grSelectStyles-CLK5hRd3.js → grSelectStyles-CwMUQrBZ.js} +12 -12
- package/dist/chunks/grSelectStyles-CwMUQrBZ.js.map +1 -0
- package/dist/chunks/{grStyle-Blc9otAx.js → grStyle-CdvxTXPH.js} +2 -2
- package/dist/chunks/grStyle-CdvxTXPH.js.map +1 -0
- package/dist/chunks/{granularityI18n-DoV7Ca2m.js → granularityI18n-SH0I--GW.js} +1 -1
- package/dist/chunks/{granularityI18n-DoV7Ca2m.js.map → granularityI18n-SH0I--GW.js.map} +1 -1
- package/dist/chunks/{ru-BFCnOiML.js → ru-B5XOOYZt.js} +52 -4
- package/dist/chunks/ru-B5XOOYZt.js.map +1 -0
- package/dist/chunks/{safelist-Do2RtzLB.js → safelist-BvO8HPnE.js} +1 -1
- package/dist/chunks/{safelist-Do2RtzLB.js.map → safelist-BvO8HPnE.js.map} +1 -1
- package/dist/chunks/shared-D-v9lit0.js +188 -0
- package/dist/chunks/shared-D-v9lit0.js.map +1 -0
- package/dist/chunks/{transition-TLFw4KBn.js → useScrollLock-K7kaP2Ud.js} +52 -1
- package/dist/chunks/useScrollLock-K7kaP2Ud.js.map +1 -0
- package/dist/components/GrAlert/chunks/GrAlert-B9gmpoPC.js +251 -0
- package/dist/components/GrAlert/chunks/GrAlert-B9gmpoPC.js.map +1 -0
- package/dist/components/GrAlert/index.js +2 -2
- package/dist/components/GrAutocomplete/chunks/GrAutocomplete-BVLoQ5tZ.js +499 -0
- package/dist/components/GrAutocomplete/chunks/GrAutocomplete-BVLoQ5tZ.js.map +1 -0
- package/dist/components/GrAutocomplete/index.js +3 -0
- package/dist/components/GrAvatar/chunks/{GrAvatar-96CpTCq5.js → GrAvatar-CTOUVBF7.js} +1 -1
- package/dist/components/GrAvatar/chunks/GrAvatar-CTOUVBF7.js.map +1 -0
- package/dist/components/GrAvatar/index.js +1 -1
- package/dist/components/GrBadge/chunks/{GrBadge-B77XlaqE.js → GrBadge-D1jefy4S.js} +12 -8
- package/dist/components/GrBadge/chunks/GrBadge-D1jefy4S.js.map +1 -0
- package/dist/components/GrBadge/index.js +2 -2
- package/dist/components/GrBadgeWrap/chunks/{GrBadgeWrap-CcktMOdg.js → GrBadgeWrap-DWDxHdiQ.js} +1 -1
- package/dist/components/GrBadgeWrap/chunks/GrBadgeWrap-DWDxHdiQ.js.map +1 -0
- package/dist/components/GrBadgeWrap/index.js +1 -1
- package/dist/components/GrBottomNav/chunks/{GrBottomNav-usuMgG8_.js → GrBottomNav-vSE4LXmk.js} +2 -2
- package/dist/components/GrBottomNav/chunks/GrBottomNav-vSE4LXmk.js.map +1 -0
- package/dist/components/GrBottomNav/index.js +1 -1
- package/dist/components/GrButton/chunks/{GrButton-BlffdeJr.js → GrButton-DCi4CUpo.js} +18 -14
- package/dist/components/GrButton/chunks/GrButton-DCi4CUpo.js.map +1 -0
- package/dist/components/GrButton/index.js +4 -4
- package/dist/components/GrCard/chunks/{GrCard-DUNMkuHW.js → GrCard-CxCjyHMb.js} +1 -1
- package/dist/components/GrCard/chunks/GrCard-CxCjyHMb.js.map +1 -0
- package/dist/components/GrCard/index.js +1 -1
- package/dist/components/GrCheckbox/chunks/{GrCheckbox-DJhzZZdO.js → GrCheckbox-BbIDRXtl.js} +5 -5
- package/dist/components/GrCheckbox/chunks/GrCheckbox-BbIDRXtl.js.map +1 -0
- package/dist/components/GrCheckbox/index.js +1 -1
- package/dist/components/GrCollapse/chunks/{GrCollapse-CPPLh_xU.js → GrCollapse-DApXztn8.js} +6 -6
- package/dist/components/GrCollapse/chunks/GrCollapse-DApXztn8.js.map +1 -0
- package/dist/components/GrCollapse/index.js +2 -2
- package/dist/components/GrCommandPalette/chunks/GrCommandPalette-6OyvNbek.js +410 -0
- package/dist/components/GrCommandPalette/chunks/GrCommandPalette-6OyvNbek.js.map +1 -0
- package/dist/components/GrCommandPalette/index.js +3 -0
- package/dist/components/GrConfigProvider/chunks/GrConfigProvider-BtyeBGm8.js +57 -0
- package/dist/components/GrConfigProvider/chunks/GrConfigProvider-BtyeBGm8.js.map +1 -0
- package/dist/components/GrConfigProvider/index.js +4 -0
- package/dist/components/GrConfirmDialog/chunks/{GrConfirmDialog-BWYKCsHd.js → GrConfirmDialog-e4120mWw.js} +5 -5
- package/dist/components/GrConfirmDialog/chunks/GrConfirmDialog-e4120mWw.js.map +1 -0
- package/dist/components/GrConfirmDialog/index.js +1 -1
- package/dist/components/GrDataTable/chunks/GrDataTable-C1CzxV0p.js +307 -0
- package/dist/components/GrDataTable/chunks/GrDataTable-C1CzxV0p.js.map +1 -0
- package/dist/components/GrDataTable/index.js +2 -2
- package/dist/components/GrDialog/chunks/{GrDialog-5DAS-1Lb.js → GrDialog-BPMvDHOz.js} +6 -6
- package/dist/components/GrDialog/chunks/GrDialog-BPMvDHOz.js.map +1 -0
- package/dist/components/GrDialog/index.js +1 -1
- package/dist/components/GrDialogService/chunks/{GrDialogService-DY_fmaMu.js → GrDialogService-CYXCTGm3.js} +36 -11
- package/dist/components/GrDialogService/chunks/GrDialogService-CYXCTGm3.js.map +1 -0
- package/dist/components/GrDialogService/index.js +2 -2
- package/dist/components/GrDivider/chunks/GrDivider-BdENZ1w0.js +54 -0
- package/dist/components/GrDivider/chunks/GrDivider-BdENZ1w0.js.map +1 -0
- package/dist/components/GrDivider/index.js +3 -0
- package/dist/components/GrDrawer/chunks/{GrDrawer-D1kzsjXN.js → GrDrawer-KevdZ5BB.js} +41 -17
- package/dist/components/GrDrawer/chunks/GrDrawer-KevdZ5BB.js.map +1 -0
- package/dist/components/GrDrawer/index.js +2 -2
- package/dist/components/GrDropdown/chunks/{GrDropdown-BXb5Cxxf.js → GrDropdown-BKoy8hm-.js} +91 -5
- package/dist/components/GrDropdown/chunks/GrDropdown-BKoy8hm-.js.map +1 -0
- package/dist/components/GrDropdown/index.js +2 -2
- package/dist/components/GrDropdownMenu/chunks/{GrDropdownMenu-DFEJLPcV.js → GrDropdownMenu-zCatXzmt.js} +11 -11
- package/dist/components/GrDropdownMenu/chunks/GrDropdownMenu-zCatXzmt.js.map +1 -0
- package/dist/components/GrDropdownMenu/index.js +1 -1
- package/dist/components/GrEmptyState/chunks/{GrEmptyState-CA3BiTV7.js → GrEmptyState-CNb0BzjG.js} +3 -3
- package/dist/components/GrEmptyState/chunks/GrEmptyState-CNb0BzjG.js.map +1 -0
- package/dist/components/GrEmptyState/index.js +1 -1
- package/dist/components/GrFileUpload/chunks/{GrFileUpload-DvWPpiJS.js → GrFileUpload-CnLgUGDF.js} +12 -12
- package/dist/components/GrFileUpload/chunks/GrFileUpload-CnLgUGDF.js.map +1 -0
- package/dist/components/GrFileUpload/index.js +1 -1
- package/dist/components/GrForm/chunks/GrForm-CdaFjcyl.js +234 -0
- package/dist/components/GrForm/chunks/GrForm-CdaFjcyl.js.map +1 -0
- package/dist/components/GrForm/index.js +4 -0
- package/dist/components/GrFormField/chunks/GrFormField-CXCDBd99.js +100 -0
- package/dist/components/GrFormField/chunks/GrFormField-CXCDBd99.js.map +1 -0
- package/dist/components/GrFormField/index.js +3 -2
- package/dist/components/GrFormFile/chunks/{GrFormFile-CXcqqdvV.js → GrFormFile-CqacSbUl.js} +9 -9
- package/dist/components/GrFormFile/chunks/GrFormFile-CqacSbUl.js.map +1 -0
- package/dist/components/GrFormFile/index.js +1 -1
- package/dist/components/GrFormSection/chunks/{GrFormSection-Ce21jcgo.js → GrFormSection-C3w9DQJf.js} +1 -1
- package/dist/components/GrFormSection/chunks/GrFormSection-C3w9DQJf.js.map +1 -0
- package/dist/components/GrFormSection/index.js +1 -1
- package/dist/components/GrImageViewer/chunks/{GrImageViewer-OCUIrNh2.js → GrImageViewer-DDLJkvIU.js} +312 -223
- package/dist/components/GrImageViewer/chunks/GrImageViewer-DDLJkvIU.js.map +1 -0
- package/dist/components/GrImageViewer/index.js +1 -1
- package/dist/components/GrInput/chunks/GrInput-C1VBL0dg.js +337 -0
- package/dist/components/GrInput/chunks/GrInput-C1VBL0dg.js.map +1 -0
- package/dist/components/GrInput/index.js +2 -2
- package/dist/components/GrInputTag/chunks/{GrInputTag-zMgFqp2g.js → GrInputTag-BMk9jm42.js} +6 -6
- package/dist/components/GrInputTag/chunks/GrInputTag-BMk9jm42.js.map +1 -0
- package/dist/components/GrInputTag/index.js +2 -2
- package/dist/components/GrKbd/chunks/GrKbd-DTspwtoN.js +22 -0
- package/dist/components/GrKbd/chunks/GrKbd-DTspwtoN.js.map +1 -0
- package/dist/components/GrKbd/index.js +3 -0
- package/dist/components/GrLink/chunks/{GrLink-CYUe-Q8k.js → GrLink-BP0YrnL9.js} +1 -1
- package/dist/components/GrLink/chunks/{GrLink-CYUe-Q8k.js.map → GrLink-BP0YrnL9.js.map} +1 -1
- package/dist/components/GrLink/index.js +2 -2
- package/dist/components/GrList/chunks/{GrList-Dx772Ns4.js → GrList-5RA-tZzE.js} +3 -3
- package/dist/components/GrList/chunks/GrList-5RA-tZzE.js.map +1 -0
- package/dist/components/GrList/index.js +1 -1
- package/dist/components/GrLoading/chunks/{GrLoading--X_7rdbb.js → GrLoading-fRDtVfi7.js} +3 -3
- package/dist/components/GrLoading/chunks/GrLoading-fRDtVfi7.js.map +1 -0
- package/dist/components/GrLoading/index.js +2 -2
- package/dist/components/GrModal/chunks/{GrModal-BkjW9jZS.js → GrModal-BTu1-5eY.js} +4 -57
- package/dist/components/GrModal/chunks/GrModal-BTu1-5eY.js.map +1 -0
- package/dist/components/GrModal/index.js +3 -3
- package/dist/components/GrNavbar/chunks/{GrNavbar-DW3MiIIf.js → GrNavbar-keKT_mIM.js} +3 -3
- package/dist/components/GrNavbar/chunks/GrNavbar-keKT_mIM.js.map +1 -0
- package/dist/components/GrNavbar/index.js +1 -1
- package/dist/components/GrNumberInput/chunks/{GrNumberInput-CldPIWQx.js → GrNumberInput-l9ZOHG9D.js} +112 -28
- package/dist/components/GrNumberInput/chunks/GrNumberInput-l9ZOHG9D.js.map +1 -0
- package/dist/components/GrNumberInput/index.js +2 -2
- package/dist/components/GrPagination/chunks/{GrPagination-Bu9wv6it.js → GrPagination-C5Y69CuK.js} +59 -16
- package/dist/components/GrPagination/chunks/GrPagination-C5Y69CuK.js.map +1 -0
- package/dist/components/GrPagination/index.js +1 -1
- package/dist/components/GrProgressBar/chunks/{GrProgressBar-CC3z-Zqp.js → GrProgressBar-Dqg4Fj9S.js} +2 -2
- package/dist/components/GrProgressBar/chunks/GrProgressBar-Dqg4Fj9S.js.map +1 -0
- package/dist/components/GrProgressBar/index.js +2 -2
- package/dist/components/GrPromptDialog/chunks/{GrPromptDialog-TmWXbpEP.js → GrPromptDialog-DNUjRVB9.js} +7 -7
- package/dist/components/GrPromptDialog/chunks/GrPromptDialog-DNUjRVB9.js.map +1 -0
- package/dist/components/GrPromptDialog/index.js +2 -2
- package/dist/components/GrRadio/chunks/{GrRadio-CPTixXaY.js → GrRadio-DlhxPGqf.js} +5 -7
- package/dist/components/GrRadio/chunks/GrRadio-DlhxPGqf.js.map +1 -0
- package/dist/components/GrRadio/index.js +2 -2
- package/dist/components/GrRadioGroup/chunks/{GrRadioGroup-vKZCbkCp.js → GrRadioGroup-BXt9iw4q.js} +7 -5
- package/dist/components/GrRadioGroup/chunks/GrRadioGroup-BXt9iw4q.js.map +1 -0
- package/dist/components/GrRadioGroup/index.js +2 -2
- package/dist/components/GrRating/chunks/GrRating-Co-3Rk4h.js +241 -0
- package/dist/components/GrRating/chunks/GrRating-Co-3Rk4h.js.map +1 -0
- package/dist/components/GrRating/index.js +3 -0
- package/dist/components/GrResponseErrorBanner/chunks/{GrResponseErrorBanner-BWJNe2gr.js → GrResponseErrorBanner-2CvM7Z08.js} +2 -2
- package/dist/components/GrResponseErrorBanner/chunks/{GrResponseErrorBanner-BWJNe2gr.js.map → GrResponseErrorBanner-2CvM7Z08.js.map} +1 -1
- package/dist/components/GrResponseErrorBanner/chunks/{GrResponseErrorBanner-Cdu9ekK9.js → GrResponseErrorBanner-C8NGx8pE.js} +3 -3
- package/dist/components/GrResponseErrorBanner/chunks/{GrResponseErrorBanner-Cdu9ekK9.js.map → GrResponseErrorBanner-C8NGx8pE.js.map} +1 -1
- package/dist/components/GrResponseErrorBanner/index.js +2 -2
- package/dist/components/GrSegmented/chunks/{GrSegmented-C1y0UXpQ.js → GrSegmented-CTd3n4PA.js} +14 -11
- package/dist/components/GrSegmented/chunks/GrSegmented-CTd3n4PA.js.map +1 -0
- package/dist/components/GrSegmented/index.js +2 -2
- package/dist/components/GrSelect/chunks/{GrSelect-RShK21lK.js → GrSelect-Dn3FgJ3Z.js} +293 -87
- package/dist/components/GrSelect/chunks/GrSelect-Dn3FgJ3Z.js.map +1 -0
- package/dist/components/GrSelect/index.js +2 -2
- package/dist/components/GrSidebar/chunks/{GrSidebar-DkWozzwA.js → GrSidebar-cvnzBfj3.js} +7 -7
- package/dist/components/GrSidebar/chunks/GrSidebar-cvnzBfj3.js.map +1 -0
- package/dist/components/GrSidebar/index.js +1 -1
- package/dist/components/GrSkeleton/chunks/{GrSkeleton-DsN-_CDZ.js → GrSkeleton-BucA5F4J.js} +1 -1
- package/dist/components/GrSkeleton/chunks/GrSkeleton-BucA5F4J.js.map +1 -0
- package/dist/components/GrSkeleton/index.js +2 -2
- package/dist/components/GrSlider/chunks/GrSlider-CzzJ3bD-.js +286 -0
- package/dist/components/GrSlider/chunks/GrSlider-CzzJ3bD-.js.map +1 -0
- package/dist/components/GrSlider/index.js +3 -0
- package/dist/components/GrStatistic/chunks/GrStatistic-gHiAwrX5.js +128 -0
- package/dist/components/GrStatistic/chunks/GrStatistic-gHiAwrX5.js.map +1 -0
- package/dist/components/GrStatistic/index.js +3 -0
- package/dist/components/GrSwitch/chunks/{GrSwitch-DAioyccZ.js → GrSwitch-CJdRvS0s.js} +16 -7
- package/dist/components/GrSwitch/chunks/GrSwitch-CJdRvS0s.js.map +1 -0
- package/dist/components/GrSwitch/index.js +2 -2
- package/dist/components/GrTabPanels/chunks/GrTabPanels-DeEMgb_y.js +68 -0
- package/dist/components/GrTabPanels/chunks/GrTabPanels-DeEMgb_y.js.map +1 -0
- package/dist/components/GrTabPanels/index.js +3 -0
- package/dist/components/GrTable/chunks/{GrTable-Db3hRnKA.js → GrTable-sNvsA8wa.js} +24 -11
- package/dist/components/GrTable/chunks/GrTable-sNvsA8wa.js.map +1 -0
- package/dist/components/GrTable/index.js +2 -2
- package/dist/components/GrTabs/chunks/{GrTabs-Z-FDJUr_.js → GrTabs-BqTak0SR.js} +9 -4
- package/dist/components/GrTabs/chunks/GrTabs-BqTak0SR.js.map +1 -0
- package/dist/components/GrTabs/index.js +2 -2
- package/dist/components/GrTextarea/chunks/{GrTextarea-D56YxhKq.js → GrTextarea-DIYBAPpP.js} +16 -6
- package/dist/components/GrTextarea/chunks/GrTextarea-DIYBAPpP.js.map +1 -0
- package/dist/components/GrTextarea/index.js +2 -2
- package/dist/components/GrToaster/chunks/{GrToaster-eI8YvnIo.js → GrToaster-BVHjIHcM.js} +52 -11
- package/dist/components/GrToaster/chunks/GrToaster-BVHjIHcM.js.map +1 -0
- package/dist/components/GrToaster/index.js +2 -2
- package/dist/components/GrTooltip/chunks/{GrTooltip-BeyZ8ssR.js → GrTooltip-BMKH2lIx.js} +3 -3
- package/dist/components/GrTooltip/chunks/GrTooltip-BMKH2lIx.js.map +1 -0
- package/dist/components/GrTooltip/index.js +1 -1
- package/dist/components/GrTree/chunks/{GrTree-D3ODe2dB.js → GrTree-_12ChXRQ.js} +108 -9
- package/dist/components/GrTree/chunks/GrTree-_12ChXRQ.js.map +1 -0
- package/dist/components/GrTree/index.js +2 -2
- package/dist/components/GrTreeSelect/chunks/{GrTreeSelect-B2xBKs5Q.js → GrTreeSelect-CdaLG7Xq.js} +10 -10
- package/dist/components/GrTreeSelect/chunks/GrTreeSelect-CdaLG7Xq.js.map +1 -0
- package/dist/components/GrTreeSelect/index.js +2 -2
- package/dist/composables/useToast.js +3 -1
- package/dist/composables/useToast.js.map +1 -1
- package/dist/directives/loading.js +1 -1
- package/dist/granular-provider-node.js +6 -6
- package/dist/granular-provider-node.js.map +1 -1
- package/dist/granular-provider.js +1 -1
- package/dist/i18n/all.js +1 -1
- package/dist/i18n/index.js +1 -1
- package/dist/index.js +112 -87
- package/dist/index.js.map +1 -1
- package/dist/styles/base.css +30 -8
- package/dist/styles/index.css +6 -3
- package/dist/styles/preflight.css +8 -4
- package/dist/styles/themes/dark.css +52 -40
- package/dist/styles/themes/light.css +70 -45
- package/dist/styles/tokens.css +20 -20
- package/dist/types/src/components/GrAlert/GrAlert.vue.d.ts +26 -14
- package/dist/types/src/components/GrAlert/defaults.d.ts +17 -0
- package/dist/types/src/components/GrAlert/grAlertStyles.d.ts +55 -0
- package/dist/types/src/components/GrAlert/index.d.ts +4 -1
- package/dist/types/src/components/GrAutocomplete/GrAutocomplete.vue.d.ts +153 -0
- package/dist/types/src/components/GrAutocomplete/config.d.ts +1 -0
- package/dist/types/src/components/GrAutocomplete/defaults.d.ts +15 -0
- package/dist/types/src/components/GrAutocomplete/grAutocompleteStyles.d.ts +27 -0
- package/dist/types/src/components/GrAutocomplete/index.d.ts +6 -0
- package/dist/types/src/components/GrAutocomplete/safelist.d.ts +1 -0
- package/dist/types/src/components/GrAvatar/GrAvatar.vue.d.ts +1 -1
- package/dist/types/src/components/GrBadge/GrBadge.vue.d.ts +7 -7
- package/dist/types/src/components/GrBadge/defaults.d.ts +15 -0
- package/dist/types/src/components/GrBadge/index.d.ts +1 -0
- package/dist/types/src/components/GrBadgeWrap/GrBadgeWrap.vue.d.ts +1 -1
- package/dist/types/src/components/GrButton/GrButton.vue.d.ts +12 -12
- package/dist/types/src/components/GrButton/defaults.d.ts +25 -0
- package/dist/types/src/components/GrButton/grButtonStyles.d.ts +2 -2
- package/dist/types/src/components/GrButton/index.d.ts +1 -0
- package/dist/types/src/components/GrCheckbox/GrCheckbox.vue.d.ts +4 -4
- package/dist/types/src/components/GrCollapse/GrCollapse.vue.d.ts +2 -2
- package/dist/types/src/components/GrCollapse/GrCollapseItem.vue.d.ts +1 -1
- package/dist/types/src/components/GrCommandPalette/GrCommandPalette.vue.d.ts +128 -0
- package/dist/types/src/components/GrCommandPalette/config.d.ts +1 -0
- package/dist/types/src/components/GrCommandPalette/filtering.d.ts +35 -0
- package/dist/types/src/components/GrCommandPalette/grCommandPaletteStyles.d.ts +20 -0
- package/dist/types/src/components/GrCommandPalette/hotkey.d.ts +23 -0
- package/dist/types/src/components/GrCommandPalette/index.d.ts +6 -0
- package/dist/types/src/components/GrCommandPalette/safelist.d.ts +1 -0
- package/dist/types/src/components/GrConfigProvider/GrConfigProvider.vue.d.ts +59 -0
- package/dist/types/src/components/GrConfigProvider/config.d.ts +1 -0
- package/dist/types/src/components/GrConfigProvider/context.d.ts +131 -0
- package/dist/types/src/components/GrConfigProvider/index.d.ts +5 -0
- package/dist/types/src/components/GrConfirmDialog/GrConfirmDialog.vue.d.ts +2 -2
- package/dist/types/src/components/GrDataTable/GrDataTable.vue.d.ts +48 -4
- package/dist/types/src/components/GrDialog/GrDialog.vue.d.ts +1 -1
- package/dist/types/src/components/GrDialogService/store.d.ts +18 -0
- 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 +5 -5
- package/dist/types/src/components/GrDropdown/GrDropdown.vue.d.ts +8 -1
- package/dist/types/src/components/GrDropdownMenu/GrDropdownMenu.vue.d.ts +7 -1
- package/dist/types/src/components/GrDropdownMenu/GrDropdownMenuItem.vue.d.ts +1 -1
- package/dist/types/src/components/GrFileUpload/GrFileUpload.vue.d.ts +3 -3
- package/dist/types/src/components/GrForm/GrForm.vue.d.ts +93 -0
- package/dist/types/src/components/GrForm/config.d.ts +1 -0
- package/dist/types/src/components/GrForm/context.d.ts +27 -0
- package/dist/types/src/components/GrForm/index.d.ts +6 -0
- package/dist/types/src/components/GrForm/validation.d.ts +52 -0
- package/dist/types/src/components/GrFormField/GrFormField.vue.d.ts +25 -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 +4 -4
- package/dist/types/src/components/GrImageViewer/GrImageViewer.vue.d.ts +7 -3
- 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 +49 -10
- package/dist/types/src/components/GrInput/defaults.d.ts +18 -0
- package/dist/types/src/components/GrInput/grInputStyles.d.ts +1 -1
- package/dist/types/src/components/GrInput/index.d.ts +1 -0
- package/dist/types/src/components/GrInputTag/GrInputTag.vue.d.ts +3 -3
- 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 +3 -3
- package/dist/types/src/components/GrLink/grLinkStyles.d.ts +3 -3
- package/dist/types/src/components/GrModal/grModalStyles.d.ts +1 -1
- package/dist/types/src/components/GrNumberInput/GrNumberInput.vue.d.ts +25 -9
- package/dist/types/src/components/GrNumberInput/defaults.d.ts +14 -0
- package/dist/types/src/components/GrNumberInput/index.d.ts +1 -0
- package/dist/types/src/components/GrPagination/GrPagination.vue.d.ts +18 -0
- package/dist/types/src/components/GrPromptDialog/GrPromptDialog.vue.d.ts +4 -4
- package/dist/types/src/components/GrRadio/GrRadio.vue.d.ts +5 -5
- package/dist/types/src/components/GrRadio/defaults.d.ts +14 -0
- package/dist/types/src/components/GrRadio/grRadioStyles.d.ts +3 -3
- package/dist/types/src/components/GrRadio/index.d.ts +1 -0
- package/dist/types/src/components/GrRadioGroup/GrRadioGroup.vue.d.ts +4 -4
- package/dist/types/src/components/GrRadioGroup/defaults.d.ts +14 -0
- package/dist/types/src/components/GrRadioGroup/index.d.ts +1 -0
- package/dist/types/src/components/GrRating/GrRating.vue.d.ts +124 -0
- package/dist/types/src/components/GrRating/config.d.ts +1 -0
- package/dist/types/src/components/GrRating/defaults.d.ts +14 -0
- package/dist/types/src/components/GrRating/grRatingStyles.d.ts +21 -0
- package/dist/types/src/components/GrRating/index.d.ts +6 -0
- package/dist/types/src/components/GrRating/safelist.d.ts +1 -0
- package/dist/types/src/components/GrResponseErrorBanner/GrUploadErrorBanner.vue.d.ts +1 -1
- package/dist/types/src/components/GrSegmented/GrSegmented.vue.d.ts +7 -7
- package/dist/types/src/components/GrSegmented/defaults.d.ts +15 -0
- package/dist/types/src/components/GrSegmented/grSegmentedStyles.d.ts +1 -1
- package/dist/types/src/components/GrSegmented/index.d.ts +1 -0
- package/dist/types/src/components/GrSelect/GrSelect.vue.d.ts +57 -17
- package/dist/types/src/components/GrSelect/defaults.d.ts +17 -0
- package/dist/types/src/components/GrSelect/grSelectStyles.d.ts +3 -3
- package/dist/types/src/components/GrSelect/index.d.ts +1 -0
- package/dist/types/src/components/GrSidebar/GrSidebarItem.vue.d.ts +2 -2
- package/dist/types/src/components/GrSkeleton/GrSkeleton.vue.d.ts +1 -1
- package/dist/types/src/components/GrSlider/GrSlider.vue.d.ts +88 -0
- package/dist/types/src/components/GrSlider/config.d.ts +1 -0
- package/dist/types/src/components/GrSlider/defaults.d.ts +14 -0
- package/dist/types/src/components/GrSlider/grSliderStyles.d.ts +36 -0
- package/dist/types/src/components/GrSlider/index.d.ts +6 -0
- package/dist/types/src/components/GrSlider/safelist.d.ts +1 -0
- package/dist/types/src/components/GrStatistic/GrStatistic.vue.d.ts +116 -0
- package/dist/types/src/components/GrStatistic/config.d.ts +1 -0
- package/dist/types/src/components/GrStatistic/formatStatisticValue.d.ts +16 -0
- package/dist/types/src/components/GrStatistic/grStatisticStyles.d.ts +24 -0
- package/dist/types/src/components/GrStatistic/index.d.ts +6 -0
- package/dist/types/src/components/GrStatistic/safelist.d.ts +1 -0
- package/dist/types/src/components/GrSwitch/GrSwitch.vue.d.ts +4 -4
- package/dist/types/src/components/GrSwitch/defaults.d.ts +14 -0
- package/dist/types/src/components/GrSwitch/grSwitchStyles.d.ts +2 -2
- package/dist/types/src/components/GrSwitch/index.d.ts +1 -0
- 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/GrTable/GrTable.vue.d.ts +16 -0
- package/dist/types/src/components/GrTabs/GrTabs.vue.d.ts +6 -0
- package/dist/types/src/components/GrTextarea/GrTextarea.vue.d.ts +5 -5
- package/dist/types/src/components/GrToaster/GrToaster.vue.d.ts +19 -2
- package/dist/types/src/components/GrToaster/index.d.ts +1 -1
- package/dist/types/src/components/GrTooltip/GrTooltip.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 +1 -1
- package/dist/types/src/components/GrTreeSelect/grTreeSelectStyles.d.ts +1 -1
- package/dist/types/src/composables/internal/useScrollLock.d.ts +24 -0
- package/dist/types/src/composables/useToast.d.ts +24 -0
- package/dist/types/src/granular-provider/shared.d.ts +10 -0
- package/dist/types/src/i18n/messages/en.d.ts +84 -0
- package/dist/types/src/i18n/messages/es.d.ts +84 -0
- package/dist/types/src/i18n/messages/ru.d.ts +84 -0
- package/dist/types/src/index.d.ts +10 -0
- package/dist/web-types.json +1642 -356
- package/package.json +41 -1
- package/dist/chunks/config-1uSYl98Y.js.map +0 -1
- package/dist/chunks/config-8Pcutu1j2.js.map +0 -1
- package/dist/chunks/config-B7IIWGt_2.js.map +0 -1
- package/dist/chunks/config-BIRO0vDJ2.js.map +0 -1
- package/dist/chunks/config-BLHqZhy-2.js.map +0 -1
- package/dist/chunks/config-BOlr7qw7.js.map +0 -1
- package/dist/chunks/config-BUHuGBik.js.map +0 -1
- package/dist/chunks/config-BX1JTrkV2.js.map +0 -1
- package/dist/chunks/config-C7NpDrfO.js.map +0 -1
- package/dist/chunks/config-ClhKPJvg.js.map +0 -1
- package/dist/chunks/config-Cpi9Mh2J.js.map +0 -1
- package/dist/chunks/config-CrG1XiE7.js.map +0 -1
- package/dist/chunks/config-DUcu1D68.js.map +0 -1
- package/dist/chunks/config-D_R56_gT.js.map +0 -1
- package/dist/chunks/config-DezDih8_.js.map +0 -1
- package/dist/chunks/config-DnvPqu4g.js.map +0 -1
- package/dist/chunks/config-DpqOnJiz2.js.map +0 -1
- package/dist/chunks/config-LGrZIdaZ2.js.map +0 -1
- package/dist/chunks/config-QaIc_gRa.js.map +0 -1
- package/dist/chunks/config-U4m9PSql.js.map +0 -1
- package/dist/chunks/config-eYLZYOUS2.js.map +0 -1
- package/dist/chunks/config-ipvU0lzP2.js.map +0 -1
- package/dist/chunks/config-xR4XVmcy.js.map +0 -1
- package/dist/chunks/en-BdtiS2d3.js.map +0 -1
- package/dist/chunks/es-BGRMZbe9.js.map +0 -1
- package/dist/chunks/grBadgeStyles-DrycBuKT.js.map +0 -1
- package/dist/chunks/grButtonStyles-C7Yga_Q1.js.map +0 -1
- package/dist/chunks/grModalStyles-DWd3i05Q.js.map +0 -1
- package/dist/chunks/grSelectStyles-CLK5hRd3.js.map +0 -1
- package/dist/chunks/grStyle-Blc9otAx.js.map +0 -1
- package/dist/chunks/ru-BFCnOiML.js.map +0 -1
- package/dist/chunks/shared-ChvcQgDl.js +0 -168
- package/dist/chunks/shared-ChvcQgDl.js.map +0 -1
- package/dist/chunks/transition-TLFw4KBn.js.map +0 -1
- package/dist/components/GrAlert/chunks/GrAlert-DPJSU_fG.js +0 -163
- package/dist/components/GrAlert/chunks/GrAlert-DPJSU_fG.js.map +0 -1
- package/dist/components/GrAvatar/chunks/GrAvatar-96CpTCq5.js.map +0 -1
- package/dist/components/GrBadge/chunks/GrBadge-B77XlaqE.js.map +0 -1
- package/dist/components/GrBadgeWrap/chunks/GrBadgeWrap-CcktMOdg.js.map +0 -1
- package/dist/components/GrBottomNav/chunks/GrBottomNav-usuMgG8_.js.map +0 -1
- package/dist/components/GrButton/chunks/GrButton-BlffdeJr.js.map +0 -1
- package/dist/components/GrCard/chunks/GrCard-DUNMkuHW.js.map +0 -1
- package/dist/components/GrCheckbox/chunks/GrCheckbox-DJhzZZdO.js.map +0 -1
- package/dist/components/GrCollapse/chunks/GrCollapse-CPPLh_xU.js.map +0 -1
- package/dist/components/GrConfirmDialog/chunks/GrConfirmDialog-BWYKCsHd.js.map +0 -1
- package/dist/components/GrDataTable/chunks/GrDataTable-ptbARmJ3.js +0 -179
- package/dist/components/GrDataTable/chunks/GrDataTable-ptbARmJ3.js.map +0 -1
- package/dist/components/GrDialog/chunks/GrDialog-5DAS-1Lb.js.map +0 -1
- package/dist/components/GrDialogService/chunks/GrDialogService-DY_fmaMu.js.map +0 -1
- package/dist/components/GrDrawer/chunks/GrDrawer-D1kzsjXN.js.map +0 -1
- package/dist/components/GrDropdown/chunks/GrDropdown-BXb5Cxxf.js.map +0 -1
- package/dist/components/GrDropdownMenu/chunks/GrDropdownMenu-DFEJLPcV.js.map +0 -1
- package/dist/components/GrEmptyState/chunks/GrEmptyState-CA3BiTV7.js.map +0 -1
- package/dist/components/GrFileUpload/chunks/GrFileUpload-DvWPpiJS.js.map +0 -1
- package/dist/components/GrFormField/chunks/GrFormField-BujNQrw8.js +0 -35
- package/dist/components/GrFormField/chunks/GrFormField-BujNQrw8.js.map +0 -1
- package/dist/components/GrFormFile/chunks/GrFormFile-CXcqqdvV.js.map +0 -1
- package/dist/components/GrFormSection/chunks/GrFormSection-Ce21jcgo.js.map +0 -1
- package/dist/components/GrImageViewer/chunks/GrImageViewer-OCUIrNh2.js.map +0 -1
- package/dist/components/GrInput/chunks/GrInput-C8pOJgCi.js +0 -188
- package/dist/components/GrInput/chunks/GrInput-C8pOJgCi.js.map +0 -1
- package/dist/components/GrInputTag/chunks/GrInputTag-zMgFqp2g.js.map +0 -1
- package/dist/components/GrList/chunks/GrList-Dx772Ns4.js.map +0 -1
- package/dist/components/GrLoading/chunks/GrLoading--X_7rdbb.js.map +0 -1
- package/dist/components/GrModal/chunks/GrModal-BkjW9jZS.js.map +0 -1
- package/dist/components/GrNavbar/chunks/GrNavbar-DW3MiIIf.js.map +0 -1
- package/dist/components/GrNumberInput/chunks/GrNumberInput-CldPIWQx.js.map +0 -1
- package/dist/components/GrPagination/chunks/GrPagination-Bu9wv6it.js.map +0 -1
- package/dist/components/GrProgressBar/chunks/GrProgressBar-CC3z-Zqp.js.map +0 -1
- package/dist/components/GrPromptDialog/chunks/GrPromptDialog-TmWXbpEP.js.map +0 -1
- package/dist/components/GrRadio/chunks/GrRadio-CPTixXaY.js.map +0 -1
- package/dist/components/GrRadioGroup/chunks/GrRadioGroup-vKZCbkCp.js.map +0 -1
- package/dist/components/GrSegmented/chunks/GrSegmented-C1y0UXpQ.js.map +0 -1
- package/dist/components/GrSelect/chunks/GrSelect-RShK21lK.js.map +0 -1
- package/dist/components/GrSidebar/chunks/GrSidebar-DkWozzwA.js.map +0 -1
- package/dist/components/GrSkeleton/chunks/GrSkeleton-DsN-_CDZ.js.map +0 -1
- package/dist/components/GrSwitch/chunks/GrSwitch-DAioyccZ.js.map +0 -1
- package/dist/components/GrTable/chunks/GrTable-Db3hRnKA.js.map +0 -1
- package/dist/components/GrTabs/chunks/GrTabs-Z-FDJUr_.js.map +0 -1
- package/dist/components/GrTextarea/chunks/GrTextarea-D56YxhKq.js.map +0 -1
- package/dist/components/GrToaster/chunks/GrToaster-eI8YvnIo.js.map +0 -1
- package/dist/components/GrTooltip/chunks/GrTooltip-BeyZ8ssR.js.map +0 -1
- package/dist/components/GrTree/chunks/GrTree-D3ODe2dB.js.map +0 -1
- package/dist/components/GrTreeSelect/chunks/GrTreeSelect-B2xBKs5Q.js.map +0 -1
- package/dist/chunks/{config-8Pcutu1j2.js → config-8Pcutu1j.js} +0 -0
- package/dist/chunks/{config-BLHqZhy-2.js → config-BLHqZhy-.js} +0 -0
- package/dist/chunks/{config-BUHuGBik.js → config-BUHuGBik2.js} +0 -0
- package/dist/chunks/{config-BX1JTrkV2.js → config-BX1JTrkV.js} +0 -0
- package/dist/chunks/{config-DpqOnJiz2.js → config-DpqOnJiz.js} +0 -0
- package/dist/chunks/{config-Cpi9Mh2J.js → config-Dqy0rPPO2.js} +1 -1
- /package/dist/chunks/{config-LGrZIdaZ2.js → config-LGrZIdaZ.js} +0 -0
- /package/dist/chunks/{config-QaIc_gRa.js → config-QaIc_gRa2.js} +0 -0
- /package/dist/chunks/{config-U4m9PSql.js → config-U4m9PSql2.js} +0 -0
- /package/dist/chunks/{config-ipvU0lzP2.js → config-ipvU0lzP.js} +0 -0
- /package/dist/chunks/{config-xR4XVmcy.js → config-xR4XVmcy2.js} +0 -0
|
@@ -1,28 +1,51 @@
|
|
|
1
1
|
type LabelClass = string | string[] | Record<string, boolean>;
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
label?: string;
|
|
4
|
+
/**
|
|
5
|
+
* Имя поля в модели `GrForm` (в т.ч. dot-path `address.city`). Когда поле внутри
|
|
6
|
+
* `GrForm` и задан `name`, ошибка и признак обязательности берутся из формы по
|
|
7
|
+
* этому имени, а потеря фокуса триггерит валидацию поля.
|
|
8
|
+
*/
|
|
9
|
+
name?: string;
|
|
10
|
+
/** Явный id контрола. Если не задан — генерируется автоматически. */
|
|
4
11
|
forId?: string;
|
|
12
|
+
/** Явная ошибка. Перекрывает ошибку из `GrForm` (ручной режим без формы — тоже здесь). */
|
|
5
13
|
error?: string;
|
|
14
|
+
/** Подсказка под лейблом/над контролом (можно также через слот `#hint`). */
|
|
15
|
+
hint?: string;
|
|
16
|
+
/** Помечает поле обязательным (маркер `*` + `aria-required` у контрола). */
|
|
17
|
+
required?: boolean;
|
|
6
18
|
labelClass?: LabelClass;
|
|
7
19
|
};
|
|
8
|
-
declare var __VLS_1: {};
|
|
20
|
+
declare var __VLS_1: {}, __VLS_3: {};
|
|
9
21
|
type __VLS_Slots = {} & {
|
|
10
|
-
|
|
22
|
+
hint?: (props: typeof __VLS_1) => any;
|
|
23
|
+
} & {
|
|
24
|
+
default?: (props: typeof __VLS_3) => any;
|
|
11
25
|
};
|
|
12
26
|
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
|
|
13
27
|
label: undefined;
|
|
28
|
+
name: undefined;
|
|
14
29
|
forId: undefined;
|
|
15
30
|
error: undefined;
|
|
31
|
+
hint: undefined;
|
|
32
|
+
required: boolean;
|
|
16
33
|
labelClass: undefined;
|
|
17
34
|
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
|
|
18
35
|
label: undefined;
|
|
36
|
+
name: undefined;
|
|
19
37
|
forId: undefined;
|
|
20
38
|
error: undefined;
|
|
39
|
+
hint: undefined;
|
|
40
|
+
required: boolean;
|
|
21
41
|
labelClass: undefined;
|
|
22
42
|
}>>> & Readonly<{}>, {
|
|
23
43
|
label: string;
|
|
24
44
|
error: string;
|
|
45
|
+
name: string;
|
|
46
|
+
required: boolean;
|
|
25
47
|
forId: string;
|
|
48
|
+
hint: string;
|
|
26
49
|
labelClass: LabelClass;
|
|
27
50
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
28
51
|
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;
|
|
@@ -63,22 +63,22 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
63
63
|
validators: undefined;
|
|
64
64
|
validate: undefined;
|
|
65
65
|
}>>> & Readonly<{
|
|
66
|
-
"onUpdate:modelValue"?: ((value: File | File[] | null) => any) | undefined;
|
|
67
66
|
onClear?: (() => any) | undefined;
|
|
68
67
|
onChange?: ((value: File | File[] | null) => any) | undefined;
|
|
68
|
+
"onUpdate:modelValue"?: ((value: File | File[] | null) => any) | undefined;
|
|
69
69
|
onValidation?: ((errors: FileValidationIssue[]) => any) | undefined;
|
|
70
70
|
"onUpdate:errors"?: ((errors: FileValidationIssue[]) => any) | undefined;
|
|
71
71
|
}>, {
|
|
72
|
-
disabled: boolean;
|
|
73
|
-
placeholder: string;
|
|
74
72
|
accept: string;
|
|
75
73
|
multiple: boolean;
|
|
74
|
+
disabled: boolean;
|
|
75
|
+
placeholder: string;
|
|
76
76
|
validators: FileValidator[];
|
|
77
|
+
validate: (files: File[]) => GrFormFileError[] | Promise<GrFormFileError[]>;
|
|
77
78
|
uploadText: string;
|
|
78
79
|
changeText: string;
|
|
79
80
|
removeText: string;
|
|
80
81
|
clearAllText: string;
|
|
81
|
-
validate: (files: File[]) => GrFormFileError[] | Promise<GrFormFileError[]>;
|
|
82
82
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
83
83
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
84
84
|
declare const _default: typeof __VLS_export;
|
|
@@ -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;
|
|
@@ -144,11 +148,12 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
144
148
|
}>>> & Readonly<{
|
|
145
149
|
onClose?: (() => any) | undefined;
|
|
146
150
|
onSwitch?: ((newIndex: number) => any) | undefined;
|
|
147
|
-
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
148
151
|
onRotate?: ((deg: number) => any) | undefined;
|
|
152
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
149
153
|
}>, {
|
|
150
|
-
closeLabel: string;
|
|
151
154
|
zIndex: number;
|
|
155
|
+
emptyText: string;
|
|
156
|
+
closeLabel: string;
|
|
152
157
|
showProgress: boolean;
|
|
153
158
|
initialIndex: number;
|
|
154
159
|
zoomRate: number;
|
|
@@ -166,7 +171,6 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
166
171
|
resetZoomLabel: string;
|
|
167
172
|
rotateLeftLabel: string;
|
|
168
173
|
rotateRightLabel: string;
|
|
169
|
-
emptyText: string;
|
|
170
174
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
171
175
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
172
176
|
declare const _default: typeof __VLS_export;
|
|
@@ -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
|
+
};
|
|
@@ -8,11 +8,26 @@ type __VLS_Props = {
|
|
|
8
8
|
autocomplete?: string;
|
|
9
9
|
inputmode?: InputHTMLAttributes['inputmode'];
|
|
10
10
|
disabled?: boolean;
|
|
11
|
+
/** Только для чтения: значение видно и выделяемо, но не редактируется. */
|
|
12
|
+
readonly?: boolean;
|
|
11
13
|
invalid?: boolean;
|
|
12
14
|
state?: 'default' | 'success' | 'warning' | 'danger';
|
|
13
15
|
name?: string;
|
|
14
16
|
id?: string;
|
|
15
17
|
size?: GrInputSize;
|
|
18
|
+
/** Показывать кнопку очистки, когда есть значение (и не disabled/readonly). */
|
|
19
|
+
clearable?: boolean;
|
|
20
|
+
/** i18n aria-label кнопки очистки. */
|
|
21
|
+
clearLabel?: string;
|
|
22
|
+
/** Ограничение длины + основа для счётчика символов. */
|
|
23
|
+
maxlength?: number;
|
|
24
|
+
/** Показывать счётчик символов (`len` или `len/maxlength`). */
|
|
25
|
+
showCount?: boolean;
|
|
26
|
+
/** Кнопка показать/скрыть пароль (только при `type="password"`). */
|
|
27
|
+
passwordToggle?: boolean;
|
|
28
|
+
/** i18n aria-label кнопки показать/скрыть пароль. */
|
|
29
|
+
passwordShowLabel?: string;
|
|
30
|
+
passwordHideLabel?: string;
|
|
16
31
|
textAlign?: GrInputTextAlign;
|
|
17
32
|
prefixMinWidth?: string;
|
|
18
33
|
prefixMaxWidth?: string;
|
|
@@ -28,11 +43,11 @@ type __VLS_Props = {
|
|
|
28
43
|
suffixFixed?: boolean;
|
|
29
44
|
};
|
|
30
45
|
declare function focus(): void;
|
|
31
|
-
declare var __VLS_1: {},
|
|
46
|
+
declare var __VLS_1: {}, __VLS_18: {};
|
|
32
47
|
type __VLS_Slots = {} & {
|
|
33
48
|
prefix?: (props: typeof __VLS_1) => any;
|
|
34
49
|
} & {
|
|
35
|
-
suffix?: (props: typeof
|
|
50
|
+
suffix?: (props: typeof __VLS_18) => any;
|
|
36
51
|
};
|
|
37
52
|
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
|
|
38
53
|
type: string;
|
|
@@ -40,11 +55,19 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
40
55
|
autocomplete: undefined;
|
|
41
56
|
inputmode: undefined;
|
|
42
57
|
disabled: boolean;
|
|
58
|
+
readonly: boolean;
|
|
43
59
|
invalid: boolean;
|
|
44
60
|
state: string;
|
|
45
61
|
name: undefined;
|
|
46
62
|
id: undefined;
|
|
47
|
-
size:
|
|
63
|
+
size: undefined;
|
|
64
|
+
clearable: undefined;
|
|
65
|
+
clearLabel: undefined;
|
|
66
|
+
maxlength: undefined;
|
|
67
|
+
showCount: boolean;
|
|
68
|
+
passwordToggle: boolean;
|
|
69
|
+
passwordShowLabel: undefined;
|
|
70
|
+
passwordHideLabel: undefined;
|
|
48
71
|
textAlign: string;
|
|
49
72
|
prefixMinWidth: undefined;
|
|
50
73
|
prefixMaxWidth: undefined;
|
|
@@ -62,11 +85,19 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
62
85
|
autocomplete: undefined;
|
|
63
86
|
inputmode: undefined;
|
|
64
87
|
disabled: boolean;
|
|
88
|
+
readonly: boolean;
|
|
65
89
|
invalid: boolean;
|
|
66
90
|
state: string;
|
|
67
91
|
name: undefined;
|
|
68
92
|
id: undefined;
|
|
69
|
-
size:
|
|
93
|
+
size: undefined;
|
|
94
|
+
clearable: undefined;
|
|
95
|
+
clearLabel: undefined;
|
|
96
|
+
maxlength: undefined;
|
|
97
|
+
showCount: boolean;
|
|
98
|
+
passwordToggle: boolean;
|
|
99
|
+
passwordShowLabel: undefined;
|
|
100
|
+
passwordHideLabel: undefined;
|
|
70
101
|
textAlign: string;
|
|
71
102
|
prefixMinWidth: undefined;
|
|
72
103
|
prefixMaxWidth: undefined;
|
|
@@ -77,17 +108,25 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
77
108
|
}>>> & Readonly<{
|
|
78
109
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
79
110
|
}>, {
|
|
80
|
-
type: "text" | "email" | "password" | "number" | "search";
|
|
81
111
|
size: GrInputSize;
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
112
|
+
clearable: boolean;
|
|
113
|
+
readonly: boolean;
|
|
114
|
+
type: "text" | "email" | "password" | "number" | "search";
|
|
85
115
|
invalid: boolean;
|
|
86
|
-
|
|
116
|
+
id: string;
|
|
117
|
+
name: string;
|
|
118
|
+
textAlign: GrInputTextAlign;
|
|
119
|
+
disabled: boolean;
|
|
87
120
|
placeholder: string;
|
|
121
|
+
clearLabel: string;
|
|
88
122
|
autocomplete: string;
|
|
123
|
+
inputmode: "search" | "text" | "none" | "email" | "tel" | "url" | "numeric" | "decimal";
|
|
89
124
|
state: "default" | "success" | "warning" | "danger";
|
|
90
|
-
|
|
125
|
+
maxlength: number;
|
|
126
|
+
showCount: boolean;
|
|
127
|
+
passwordToggle: boolean;
|
|
128
|
+
passwordShowLabel: string;
|
|
129
|
+
passwordHideLabel: string;
|
|
91
130
|
prefixMinWidth: string;
|
|
92
131
|
prefixMaxWidth: string;
|
|
93
132
|
suffixMinWidth: string;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { GrComponentSize } from '../GrConfigProvider/context';
|
|
2
|
+
/**
|
|
3
|
+
* Пропы `GrInput`, настраиваемые глобально через `componentDefaults`.
|
|
4
|
+
* Только оформление и поведение по умолчанию — см. `GrButton/defaults.ts`.
|
|
5
|
+
*
|
|
6
|
+
* `size` типизируем через `GrComponentSize` (та же шкала `xs…lg`), а не через
|
|
7
|
+
* `GrInputSize`: последний объявлен в `GrInput.vue`, который импортирует
|
|
8
|
+
* контекст, — получился бы цикл модулей.
|
|
9
|
+
*/
|
|
10
|
+
export interface GrInputConfigurableProps {
|
|
11
|
+
size: GrComponentSize;
|
|
12
|
+
clearable: boolean;
|
|
13
|
+
}
|
|
14
|
+
declare module '../GrConfigProvider/context' {
|
|
15
|
+
interface GrComponentDefaultsRegistry {
|
|
16
|
+
GrInput: GrInputConfigurableProps;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -10,7 +10,7 @@ export declare const textAlign: {
|
|
|
10
10
|
readonly right: "text-right";
|
|
11
11
|
};
|
|
12
12
|
export declare const states: {
|
|
13
|
-
readonly default: "border-[var(--brd)]";
|
|
13
|
+
readonly default: "border-[var(--gr-brd)]";
|
|
14
14
|
readonly success: "border-[var(--gr-success)] focus-visible:ring-[var(--gr-success)]";
|
|
15
15
|
readonly warning: "border-[var(--gr-warning)] focus-visible:ring-[var(--gr-warning)]";
|
|
16
16
|
readonly danger: "border-[var(--gr-danger)] focus-visible:ring-[var(--gr-danger)]";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { default } from './GrInput.vue';
|
|
2
2
|
export { default as GrInput } from './GrInput.vue';
|
|
3
3
|
export { grInputConfig } from './config';
|
|
4
|
+
export type { GrInputConfigurableProps } from './defaults';
|
|
4
5
|
export type { GrInputSize, GrInputTextAlign } from './GrInput.vue';
|
|
5
6
|
export { grInputSafelist } from './safelist';
|
|
@@ -82,16 +82,16 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
82
82
|
tagClosable: boolean;
|
|
83
83
|
removeTagLabel: undefined;
|
|
84
84
|
}>>> & Readonly<{
|
|
85
|
-
"onUpdate:modelValue"?: ((value: string[]) => any) | undefined;
|
|
86
85
|
onAdd?: ((value: string) => any) | undefined;
|
|
86
|
+
"onUpdate:modelValue"?: ((value: string[]) => any) | undefined;
|
|
87
87
|
onRemove?: ((value: string, index: number) => any) | undefined;
|
|
88
88
|
}>, {
|
|
89
|
+
size: GrInputTagSize;
|
|
89
90
|
trim: boolean;
|
|
90
91
|
readonly: boolean;
|
|
91
|
-
size: GrInputTagSize;
|
|
92
|
-
disabled: boolean;
|
|
93
92
|
invalid: boolean;
|
|
94
93
|
max: number;
|
|
94
|
+
disabled: boolean;
|
|
95
95
|
placeholder: string;
|
|
96
96
|
state: GrInputTagState;
|
|
97
97
|
separators: string[];
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GrKbd — GR-примитив для отображения клавиш/сочетаний (`<kbd>`).
|
|
3
|
+
*
|
|
4
|
+
* Пример: `<GrKbd>⌘</GrKbd> <GrKbd>K</GrKbd>`.
|
|
5
|
+
*/
|
|
6
|
+
export type GrKbdSize = 'sm' | 'md';
|
|
7
|
+
type __VLS_Props = {
|
|
8
|
+
size?: GrKbdSize;
|
|
9
|
+
};
|
|
10
|
+
declare var __VLS_1: {};
|
|
11
|
+
type __VLS_Slots = {} & {
|
|
12
|
+
default?: (props: typeof __VLS_1) => any;
|
|
13
|
+
};
|
|
14
|
+
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
|
|
15
|
+
size: string;
|
|
16
|
+
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
|
|
17
|
+
size: string;
|
|
18
|
+
}>>> & Readonly<{}>, {
|
|
19
|
+
size: GrKbdSize;
|
|
20
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
21
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
22
|
+
declare const _default: typeof __VLS_export;
|
|
23
|
+
export default _default;
|
|
24
|
+
type __VLS_TypePropsToOption<T> = {
|
|
25
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
26
|
+
type: import('vue').PropType<Required<T>[K]>;
|
|
27
|
+
} : {
|
|
28
|
+
type: import('vue').PropType<T[K]>;
|
|
29
|
+
required: true;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
type __VLS_WithDefaults<P, D> = {
|
|
33
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
34
|
+
default: D[K];
|
|
35
|
+
}> : P[K];
|
|
36
|
+
};
|
|
37
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
38
|
+
new (): {
|
|
39
|
+
$slots: S;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
43
|
+
[K in keyof T]: T[K];
|
|
44
|
+
} : {
|
|
45
|
+
[K in keyof T as K]: T[K];
|
|
46
|
+
}) & {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const grKbdConfig: import("@feugene/unocss-preset-granular").GranularComponentDescriptor<"GrKbd">;
|
|
@@ -69,14 +69,14 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
69
69
|
tone: GrLinkTone;
|
|
70
70
|
variant: GrLinkVariant;
|
|
71
71
|
size: GrLinkSize;
|
|
72
|
+
underline: GrLinkUnderline;
|
|
73
|
+
target: string;
|
|
74
|
+
href: string;
|
|
72
75
|
disabled: boolean;
|
|
73
76
|
ariaLabel: string;
|
|
74
77
|
as: string | Component;
|
|
75
|
-
href: string;
|
|
76
|
-
target: string;
|
|
77
78
|
rel: string;
|
|
78
79
|
external: boolean;
|
|
79
|
-
underline: GrLinkUnderline;
|
|
80
80
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
81
81
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
82
82
|
declare const _default: typeof __VLS_export;
|
|
@@ -7,7 +7,7 @@ import { GR_TONES, type GrTone } from '../shared/tones';
|
|
|
7
7
|
* - `variant` — уровень акцента (СТРУКТУРА), независимый от цвета:
|
|
8
8
|
* - `default` — текст окрашен в `tone` в покое, `tone-hover`/`tone-active` при
|
|
9
9
|
* наведении/нажатии (обычная акцентная ссылка);
|
|
10
|
-
* - `muted` — приглушённый текст (`--muted-fg`) в покое, окрашивается в `tone`
|
|
10
|
+
* - `muted` — приглушённый текст (`--gr-muted-fg`) в покое, окрашивается в `tone`
|
|
11
11
|
* при наведении (вторичные/inline-ссылки в плотных областях).
|
|
12
12
|
*
|
|
13
13
|
* Раньше `variant` смешивал цвет и акцент (`primary/default/muted/muted-primary/danger`).
|
|
@@ -18,7 +18,7 @@ export type GrLinkVariant = 'default' | 'muted';
|
|
|
18
18
|
export type GrLinkUnderline = 'auto' | 'always' | 'none';
|
|
19
19
|
export type GrLinkSize = 'sm' | 'md' | 'lg';
|
|
20
20
|
export declare const baseRootClass = "inline-flex items-center gap-1 rounded-[6px] transition-colors duration-150";
|
|
21
|
-
export declare const focusRingClass = "focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)]";
|
|
21
|
+
export declare const focusRingClass = "focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--gr-ring)]";
|
|
22
22
|
export declare const sizeClassBySize: Record<GrLinkSize, string>;
|
|
23
23
|
export declare const colorClass = "text-[var(--gr-link-color)] visited:text-[var(--gr-link-color)] hover:text-[var(--gr-link-color-hover)] active:text-[var(--gr-link-color-active)]";
|
|
24
24
|
type GrLinkToneColors = {
|
|
@@ -33,7 +33,7 @@ export declare function grLinkColorStyle(options: {
|
|
|
33
33
|
variant: GrLinkVariant;
|
|
34
34
|
disabled: boolean;
|
|
35
35
|
}): Record<string, string>;
|
|
36
|
-
export declare const disabledStateClass = "cursor-not-allowed opacity-60 text-[var(--muted-fg)]";
|
|
36
|
+
export declare const disabledStateClass = "cursor-not-allowed opacity-60 text-[var(--gr-muted-fg)]";
|
|
37
37
|
export declare const underlineClasses: readonly string[];
|
|
38
38
|
export declare function grLinkClass(options: {
|
|
39
39
|
size: GrLinkSize;
|
|
@@ -19,7 +19,7 @@ export declare const panelTransition: {
|
|
|
19
19
|
readonly leaveFrom: "opacity-100 translate-y-0 sm:scale-100";
|
|
20
20
|
readonly leaveTo: "opacity-0 translate-y-2 sm:translate-y-0 sm:scale-95";
|
|
21
21
|
};
|
|
22
|
-
export declare const panelBase = "w-full overflow-hidden relative z-10 border border-[var(--brd)] bg-[var(--card)] text-[var(--card-fg)] shadow-[var(--gr-shadow-2)] outline-none";
|
|
22
|
+
export declare const panelBase = "w-full overflow-hidden relative z-10 border border-[var(--gr-brd)] bg-[var(--gr-card)] text-[var(--gr-card-fg)] shadow-[var(--gr-shadow-2)] outline-none";
|
|
23
23
|
export declare const panelWidthBySize: Record<GrModalSize, string>;
|
|
24
24
|
export declare const panelRadiusBySize: Record<GrModalSize, string>;
|
|
25
25
|
export declare const panelHeightBySize: Partial<Record<GrModalSize, string>>;
|
|
@@ -19,6 +19,16 @@ export interface GrNumberInputProps {
|
|
|
19
19
|
min?: number;
|
|
20
20
|
max?: number;
|
|
21
21
|
precision?: number;
|
|
22
|
+
/**
|
|
23
|
+
* BCP-47 локаль для отображения значения (группировка разрядов и разделители
|
|
24
|
+
* через `Intl.NumberFormat`). Работает вместе с `useGrouping`.
|
|
25
|
+
*/
|
|
26
|
+
locale?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Группировать разряды при отображении (когда поле не в фокусе). При фокусе
|
|
29
|
+
* показывается «сырое» значение для редактирования. По умолчанию выключено.
|
|
30
|
+
*/
|
|
31
|
+
useGrouping?: boolean;
|
|
22
32
|
/** Показывать кнопки +/-. */
|
|
23
33
|
controls?: boolean;
|
|
24
34
|
controlsDirection?: GrNumberInputControlsDirection;
|
|
@@ -54,13 +64,15 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
54
64
|
state: string;
|
|
55
65
|
name: undefined;
|
|
56
66
|
id: undefined;
|
|
57
|
-
size:
|
|
67
|
+
size: undefined;
|
|
58
68
|
textAlign: string;
|
|
59
69
|
decimalSeparator: string;
|
|
60
70
|
step: number;
|
|
61
71
|
min: undefined;
|
|
62
72
|
max: undefined;
|
|
63
73
|
precision: undefined;
|
|
74
|
+
locale: undefined;
|
|
75
|
+
useGrouping: boolean;
|
|
64
76
|
controls: boolean;
|
|
65
77
|
controlsDirection: string;
|
|
66
78
|
prefixMinWidth: undefined;
|
|
@@ -85,13 +97,15 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
85
97
|
state: string;
|
|
86
98
|
name: undefined;
|
|
87
99
|
id: undefined;
|
|
88
|
-
size:
|
|
100
|
+
size: undefined;
|
|
89
101
|
textAlign: string;
|
|
90
102
|
decimalSeparator: string;
|
|
91
103
|
step: number;
|
|
92
104
|
min: undefined;
|
|
93
105
|
max: undefined;
|
|
94
106
|
precision: undefined;
|
|
107
|
+
locale: undefined;
|
|
108
|
+
useGrouping: boolean;
|
|
95
109
|
controls: boolean;
|
|
96
110
|
controlsDirection: string;
|
|
97
111
|
prefixMinWidth: undefined;
|
|
@@ -103,30 +117,32 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
103
117
|
increaseLabel: undefined;
|
|
104
118
|
decreaseLabel: undefined;
|
|
105
119
|
}>>> & Readonly<{
|
|
106
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
107
120
|
onChange?: ((value: string) => any) | undefined;
|
|
121
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
108
122
|
}>, {
|
|
109
123
|
size: GrNumberInputSize;
|
|
110
|
-
disabled: boolean;
|
|
111
|
-
name: string;
|
|
112
|
-
id: string;
|
|
113
124
|
invalid: boolean;
|
|
125
|
+
id: string;
|
|
114
126
|
max: number;
|
|
115
|
-
|
|
127
|
+
min: number;
|
|
128
|
+
name: string;
|
|
129
|
+
textAlign: GrNumberInputTextAlign;
|
|
130
|
+
disabled: boolean;
|
|
116
131
|
placeholder: string;
|
|
117
132
|
autocomplete: string;
|
|
133
|
+
inputmode: "search" | "text" | "none" | "email" | "tel" | "url" | "numeric" | "decimal";
|
|
118
134
|
state: GrNumberInputState;
|
|
119
|
-
textAlign: GrNumberInputTextAlign;
|
|
120
135
|
prefixMinWidth: string;
|
|
121
136
|
prefixMaxWidth: string;
|
|
122
137
|
suffixMinWidth: string;
|
|
123
138
|
suffixMaxWidth: string;
|
|
124
139
|
prefixFixed: boolean;
|
|
125
140
|
suffixFixed: boolean;
|
|
126
|
-
|
|
141
|
+
locale: string;
|
|
127
142
|
decimalSeparator: string;
|
|
128
143
|
step: number;
|
|
129
144
|
precision: number;
|
|
145
|
+
useGrouping: boolean;
|
|
130
146
|
controls: boolean;
|
|
131
147
|
controlsDirection: GrNumberInputControlsDirection;
|
|
132
148
|
increaseLabel: string;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { GrNumberInputSize } from './grNumberInputStyles';
|
|
2
|
+
/**
|
|
3
|
+
* Пропы `GrNumberInput`, настраиваемые глобально через
|
|
4
|
+
* `<GrConfigProvider :component-defaults="{ GrNumberInput: { … } }">`.
|
|
5
|
+
* Только оформление — см. `GrButton/defaults.ts`.
|
|
6
|
+
*/
|
|
7
|
+
export interface GrNumberInputConfigurableProps {
|
|
8
|
+
size: GrNumberInputSize;
|
|
9
|
+
}
|
|
10
|
+
declare module '../GrConfigProvider/context' {
|
|
11
|
+
interface GrComponentDefaultsRegistry {
|
|
12
|
+
GrNumberInput: GrNumberInputConfigurableProps;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { default } from './GrNumberInput.vue';
|
|
2
2
|
export { default as GrNumberInput } from './GrNumberInput.vue';
|
|
3
3
|
export { grNumberInputConfig } from './config';
|
|
4
|
+
export type { GrNumberInputConfigurableProps } from './defaults';
|
|
4
5
|
export { grNumberInputSafelist } from './safelist';
|
|
5
6
|
export type { GrNumberInputProps } from './GrNumberInput.vue';
|
|
6
7
|
export type { GrNumberInputControlsDirection, GrNumberInputSize, GrNumberInputState, GrNumberInputTextAlign, NumberInputControlsDirection, NumberInputSize, } from './grNumberInputStyles';
|