@feugene/granularity 0.12.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-1uSYl98Y2.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-BX1JTrkV.js.map +1 -0
- package/dist/chunks/config-BXtAmU3s.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-DUcu1D682.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-CrG1XiE72.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-CGHLoBlH2.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-BIRO0vDJ.js → config-DPDFYzIa.js} +2 -2
- package/dist/chunks/config-DPDFYzIa.js.map +1 -0
- package/dist/chunks/{config-DnvPqu4g2.js → config-DRKXJ9PW2.js} +1 -1
- package/dist/chunks/{config-DnvPqu4g2.js.map → config-DRKXJ9PW2.js.map} +1 -1
- 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-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-JpHA4Xx0.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-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.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-DfWYCBB-.js +129 -0
- package/dist/chunks/context-DfWYCBB-.js.map +1 -0
- package/dist/chunks/{en-CfkDa4GX.js → en-Cr6EkG8c.js} +46 -4
- package/dist/chunks/en-Cr6EkG8c.js.map +1 -0
- package/dist/chunks/{es-CgaLnFYx.js → es-DuYb1Qju.js} +3 -3
- package/dist/chunks/{es-CgaLnFYx.js.map → es-DuYb1Qju.js.map} +1 -1
- package/dist/chunks/{es-FkgECuCm.js → es-i08e9Sdo.js} +46 -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/{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-Bl8CxpEa.js → ru-B5XOOYZt.js} +46 -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/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-D8CkOtqv.js → GrConfirmDialog-e4120mWw.js} +5 -5
- package/dist/components/GrConfirmDialog/chunks/GrConfirmDialog-e4120mWw.js.map +1 -0
- package/dist/components/GrConfirmDialog/index.js +2 -2
- package/dist/components/GrDataTable/chunks/{GrDataTable-Ds5OeGat.js → GrDataTable-C1CzxV0p.js} +127 -25
- 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-Ctucxju9.js → GrDialog-BPMvDHOz.js} +5 -5
- 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-CU1Fbonc.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-5bcE-BB4.js → GrDivider-BdENZ1w0.js} +5 -5
- package/dist/components/GrDivider/chunks/GrDivider-BdENZ1w0.js.map +1 -0
- package/dist/components/GrDivider/index.js +1 -1
- package/dist/components/GrDrawer/chunks/{GrDrawer-SLGKCY2A.js → GrDrawer-KevdZ5BB.js} +5 -5
- 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-BnDMYP8v.js → GrDropdown-BKoy8hm-.js} +1 -1
- package/dist/components/GrDropdown/chunks/{GrDropdown-BnDMYP8v.js.map → GrDropdown-BKoy8hm-.js.map} +1 -1
- package/dist/components/GrDropdown/index.js +2 -2
- package/dist/components/GrDropdownMenu/chunks/{GrDropdownMenu--g9Vofcq.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-DnfMHx_U.js → GrFormField-CXCDBd99.js} +41 -14
- package/dist/components/GrFormField/chunks/GrFormField-CXCDBd99.js.map +1 -0
- package/dist/components/GrFormField/index.js +1 -1
- 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-Dla9IBkd.js → GrImageViewer-DDLJkvIU.js} +1 -1
- package/dist/components/GrImageViewer/chunks/{GrImageViewer-Dla9IBkd.js.map → GrImageViewer-DDLJkvIU.js.map} +1 -1
- package/dist/components/GrImageViewer/index.js +1 -1
- package/dist/components/GrInput/chunks/{GrInput-B8dd3JaA.js → GrInput-C1VBL0dg.js} +18 -15
- 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-BEoYxWhE.js → GrKbd-DTspwtoN.js} +1 -1
- package/dist/components/GrKbd/chunks/GrKbd-DTspwtoN.js.map +1 -0
- package/dist/components/GrKbd/index.js +1 -1
- 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-C0GZrHN3.js → GrModal-BTu1-5eY.js} +1 -1
- package/dist/components/GrModal/chunks/{GrModal-C0GZrHN3.js.map → GrModal-BTu1-5eY.js.map} +1 -1
- 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-DxCEvL7V.js → GrNumberInput-l9ZOHG9D.js} +19 -17
- 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-mlyfLjQY.js → GrPagination-C5Y69CuK.js} +59 -16
- package/dist/components/GrPagination/chunks/GrPagination-C5Y69CuK.js.map +1 -0
- package/dist/components/GrPagination/index.js +2 -2
- 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-C-_BMNuY.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-Dr-pvs_9.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-nOdvfV_g.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-BVCmitqa.js → GrSelect-Dn3FgJ3Z.js} +161 -75
- 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 +2 -2
- 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-DbKybwe-.js → GrTabPanels-DeEMgb_y.js} +1 -1
- package/dist/components/GrTabPanels/chunks/{GrTabPanels-DbKybwe-.js.map → GrTabPanels-DeEMgb_y.js.map} +1 -1
- package/dist/components/GrTabPanels/index.js +2 -2
- 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-DsLwWoRz.js → GrTabs-BqTak0SR.js} +3 -3
- 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-CKukGlNl.js → GrTextarea-DIYBAPpP.js} +2 -2
- 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-L2cu6cSR.js → GrToaster-BVHjIHcM.js} +51 -10
- package/dist/components/GrToaster/chunks/GrToaster-BVHjIHcM.js.map +1 -0
- package/dist/components/GrToaster/index.js +1 -1
- 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-B2_yW6g1.js → GrTree-_12ChXRQ.js} +3 -3
- package/dist/components/GrTree/chunks/GrTree-_12ChXRQ.js.map +1 -0
- package/dist/components/GrTree/index.js +1 -1
- package/dist/components/GrTreeSelect/chunks/{GrTreeSelect-0aM62xyu.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 +111 -93
- package/dist/index.js.map +1 -1
- package/dist/styles/base.css +2 -2
- package/dist/styles/index.css +6 -3
- package/dist/styles/preflight.css +3 -3
- 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 +20 -0
- 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/GrDrawer/GrDrawer.vue.d.ts +1 -1
- package/dist/types/src/components/GrDropdown/GrDropdown.vue.d.ts +1 -1
- package/dist/types/src/components/GrDropdownMenu/GrDropdownMenu.vue.d.ts +1 -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 +11 -1
- package/dist/types/src/components/GrFormFile/GrFormFile.vue.d.ts +4 -4
- package/dist/types/src/components/GrImageViewer/GrImageViewer.vue.d.ts +3 -3
- package/dist/types/src/components/GrInput/GrInput.vue.d.ts +12 -12
- 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/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 +10 -10
- 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/GrTable/GrTable.vue.d.ts +16 -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/GrTreeSelect/GrTreeSelect.vue.d.ts +1 -1
- package/dist/types/src/components/GrTreeSelect/grTreeSelectStyles.d.ts +1 -1
- package/dist/types/src/composables/useToast.d.ts +24 -0
- package/dist/types/src/granular-provider/shared.d.ts +7 -0
- package/dist/types/src/i18n/messages/en.d.ts +74 -0
- package/dist/types/src/i18n/messages/es.d.ts +74 -0
- package/dist/types/src/i18n/messages/ru.d.ts +74 -0
- package/dist/types/src/index.d.ts +7 -0
- package/dist/web-types.json +1308 -271
- package/package.json +29 -1
- package/dist/chunks/config-1uSYl98Y2.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-BIRO0vDJ.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-BXtAmU3s2.js.map +0 -1
- package/dist/chunks/config-C7NpDrfO.js.map +0 -1
- package/dist/chunks/config-CGHLoBlH.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-CrG1XiE72.js.map +0 -1
- package/dist/chunks/config-DUcu1D682.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-JpHA4Xx02.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-eXB87DOi2.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-CfkDa4GX.js.map +0 -1
- package/dist/chunks/es-FkgECuCm.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-Bl8CxpEa.js.map +0 -1
- package/dist/chunks/shared-B6Ay2081.js +0 -174
- package/dist/chunks/shared-B6Ay2081.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-D8CkOtqv.js.map +0 -1
- package/dist/components/GrDataTable/chunks/GrDataTable-Ds5OeGat.js.map +0 -1
- package/dist/components/GrDialog/chunks/GrDialog-Ctucxju9.js.map +0 -1
- package/dist/components/GrDialogService/chunks/GrDialogService-CU1Fbonc.js.map +0 -1
- package/dist/components/GrDivider/chunks/GrDivider-5bcE-BB4.js.map +0 -1
- package/dist/components/GrDrawer/chunks/GrDrawer-SLGKCY2A.js.map +0 -1
- package/dist/components/GrDropdownMenu/chunks/GrDropdownMenu--g9Vofcq.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-DnfMHx_U.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/GrInput/chunks/GrInput-B8dd3JaA.js.map +0 -1
- package/dist/components/GrInputTag/chunks/GrInputTag-zMgFqp2g.js.map +0 -1
- package/dist/components/GrKbd/chunks/GrKbd-BEoYxWhE.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/GrNavbar/chunks/GrNavbar-DW3MiIIf.js.map +0 -1
- package/dist/components/GrNumberInput/chunks/GrNumberInput-DxCEvL7V.js.map +0 -1
- package/dist/components/GrPagination/chunks/GrPagination-mlyfLjQY.js.map +0 -1
- package/dist/components/GrProgressBar/chunks/GrProgressBar-CC3z-Zqp.js.map +0 -1
- package/dist/components/GrPromptDialog/chunks/GrPromptDialog-C-_BMNuY.js.map +0 -1
- package/dist/components/GrRadio/chunks/GrRadio-Dr-pvs_9.js.map +0 -1
- package/dist/components/GrRadioGroup/chunks/GrRadioGroup-nOdvfV_g.js.map +0 -1
- package/dist/components/GrSegmented/chunks/GrSegmented-C1y0UXpQ.js.map +0 -1
- package/dist/components/GrSelect/chunks/GrSelect-BVCmitqa.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-DsLwWoRz.js.map +0 -1
- package/dist/components/GrTextarea/chunks/GrTextarea-CKukGlNl.js.map +0 -1
- package/dist/components/GrToaster/chunks/GrToaster-L2cu6cSR.js.map +0 -1
- package/dist/components/GrTooltip/chunks/GrTooltip-BeyZ8ssR.js.map +0 -1
- package/dist/components/GrTree/chunks/GrTree-B2_yW6g1.js.map +0 -1
- package/dist/components/GrTreeSelect/chunks/GrTreeSelect-0aM62xyu.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-BXtAmU3s2.js → config-BXtAmU3s.js} +0 -0
- package/dist/chunks/{config-CGHLoBlH.js → config-CGHLoBlH2.js} +0 -0
- package/dist/chunks/{config-Cpi9Mh2J.js → config-Dqy0rPPO2.js} +1 -1
- /package/dist/chunks/{config-JpHA4Xx02.js → config-JpHA4Xx0.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-eXB87DOi2.js → config-eXB87DOi.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,3 +1,6 @@
|
|
|
1
|
+
import type { Raw } from 'vue';
|
|
2
|
+
import type { GrConfigContext } from '../GrConfigProvider/context';
|
|
3
|
+
import type { GranularityI18nLike } from '../../internal/granularityI18n';
|
|
1
4
|
import type { DialogBaseOptions, DialogKind, DialogOnConfirm, DialogResult } from './types';
|
|
2
5
|
/**
|
|
3
6
|
* Внутреннее описание одного запроса диалога в очереди. Создаётся методами
|
|
@@ -12,6 +15,21 @@ export interface DialogRequest {
|
|
|
12
15
|
onConfirm?: DialogOnConfirm<any>;
|
|
13
16
|
/** Резолвит промис вызова детальным результатом `{ action, value }`. */
|
|
14
17
|
resolve: (result: DialogResult<any>) => void;
|
|
18
|
+
/**
|
|
19
|
+
* Конфиг и i18n, захваченные в месте вызова сервиса (в `setup`, где вызывающий
|
|
20
|
+
* компонент ещё находится внутри дерева провайдера). Хост монтируется в
|
|
21
|
+
* `document.body` вне дерева, поэтому сам их не увидит — см.
|
|
22
|
+
* `SPEC-GrConfig-resolver.md`.
|
|
23
|
+
*
|
|
24
|
+
* Лежат в запросе, а не в модульной переменной: два поддерева с разными
|
|
25
|
+
* провайдерами должны получать каждое свой конфиг.
|
|
26
|
+
*
|
|
27
|
+
* `Raw<…>` обязателен: очередь — `reactive`, а он разворачивает вложенные рефы.
|
|
28
|
+
* Без `markRaw` контекст превратился бы в объект значений, `size.value` стало
|
|
29
|
+
* бы `undefined`, и мост молча перестал бы работать.
|
|
30
|
+
*/
|
|
31
|
+
config?: Raw<GrConfigContext> | null;
|
|
32
|
+
i18n?: Raw<GranularityI18nLike> | null;
|
|
15
33
|
}
|
|
16
34
|
/**
|
|
17
35
|
* Модульный синглтон очереди диалогов: единый источник правды для всех
|
|
@@ -42,8 +42,8 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
42
42
|
}>>> & Readonly<{
|
|
43
43
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
44
44
|
}>, {
|
|
45
|
-
title: string;
|
|
46
45
|
size: GrDrawerSize;
|
|
46
|
+
title: string;
|
|
47
47
|
closeOnBackdrop: boolean;
|
|
48
48
|
closeOnEsc: boolean;
|
|
49
49
|
closeLabel: string;
|
|
@@ -45,8 +45,8 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
45
45
|
contentClass: string;
|
|
46
46
|
teleportTo: string;
|
|
47
47
|
}>>> & Readonly<{}>, {
|
|
48
|
-
width: GrDropdownWidth;
|
|
49
48
|
align: GrDropdownAlign;
|
|
49
|
+
width: GrDropdownWidth;
|
|
50
50
|
closeOnContentClick: boolean;
|
|
51
51
|
contentClass: string;
|
|
52
52
|
teleportTo: string | HTMLElement;
|
|
@@ -55,8 +55,8 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
55
55
|
borderBottom: boolean;
|
|
56
56
|
listClass: string;
|
|
57
57
|
}>>> & Readonly<{}>, {
|
|
58
|
-
width: GrDropdownMenuWidth;
|
|
59
58
|
align: GrDropdownMenuAlign;
|
|
59
|
+
width: GrDropdownMenuWidth;
|
|
60
60
|
borderBottom: boolean;
|
|
61
61
|
borderTop: boolean;
|
|
62
62
|
closeOnContentClick: boolean;
|
|
@@ -23,9 +23,9 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
23
23
|
variant: string;
|
|
24
24
|
}>>> & Readonly<{}>, {
|
|
25
25
|
variant: GrDropdownMenuItemVariant;
|
|
26
|
+
align: GrDropdownMenuItemAlign;
|
|
26
27
|
disabled: boolean;
|
|
27
28
|
as: string | Component;
|
|
28
|
-
align: GrDropdownMenuItemAlign;
|
|
29
29
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
30
30
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
31
31
|
declare const _default: typeof __VLS_export;
|
|
@@ -155,11 +155,11 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
155
155
|
onError?: ((error: unknown) => any) | undefined;
|
|
156
156
|
onStateChange?: ((state: GrUploadState) => any) | undefined;
|
|
157
157
|
}>, {
|
|
158
|
-
disabled: boolean;
|
|
159
158
|
name: string;
|
|
160
|
-
headers: Record<string, string>;
|
|
161
|
-
placeholder: string;
|
|
162
159
|
multiple: boolean;
|
|
160
|
+
disabled: boolean;
|
|
161
|
+
placeholder: string;
|
|
162
|
+
headers: Record<string, string>;
|
|
163
163
|
withCredentials: boolean;
|
|
164
164
|
action: string;
|
|
165
165
|
request: GrFileUploadRequest;
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { type GrFormRules, type GrFormTrigger } from './validation';
|
|
2
|
+
export type { GrFormRule, GrFormRules, GrFormTrigger, GrFormValidatorResult, } from './validation';
|
|
3
|
+
/**
|
|
4
|
+
* Публичный GR-примитив «Form» — оркестрация валидации над `GrFormField`.
|
|
5
|
+
*
|
|
6
|
+
* Модель формы (`v-model`-объект приложения) + декларативные `rules` по имени поля.
|
|
7
|
+
* Форма прогоняет правила, раскладывает ошибки по контексту, скроллит к первой
|
|
8
|
+
* ошибке и эмитит `submit` только при валидной форме. Императивный API — через
|
|
9
|
+
* template ref (`validate` / `validateField` / `clearValidate` / `resetFields` /
|
|
10
|
+
* `scrollToField`).
|
|
11
|
+
*/
|
|
12
|
+
export interface GrFormProps {
|
|
13
|
+
/** Реактивный объект данных формы. Поля адресуются по `name` (`GrFormField`), в т.ч. dot-path. */
|
|
14
|
+
model: Record<string, unknown>;
|
|
15
|
+
/** Правила валидации по имени поля: `{ email: [{ required: true, type: 'email' }] }`. */
|
|
16
|
+
rules?: GrFormRules;
|
|
17
|
+
/** Валидировать поле при потере фокуса. */
|
|
18
|
+
validateOnBlur?: boolean;
|
|
19
|
+
/** Валидировать поле при каждом изменении значения. */
|
|
20
|
+
validateOnChange?: boolean;
|
|
21
|
+
/** Скроллить к первому невалидному полю после `validate()`. */
|
|
22
|
+
scrollToError?: boolean;
|
|
23
|
+
scrollBehavior?: ScrollBehavior;
|
|
24
|
+
}
|
|
25
|
+
declare function validateField(name: string, trigger?: GrFormTrigger): Promise<boolean>;
|
|
26
|
+
declare function validate(): Promise<boolean>;
|
|
27
|
+
declare function clearValidate(names?: string | string[]): void;
|
|
28
|
+
declare function resetFields(): void;
|
|
29
|
+
declare function scrollToField(name: string): void;
|
|
30
|
+
declare var __VLS_1: {
|
|
31
|
+
validate: typeof validate;
|
|
32
|
+
errors: Record<string, string | undefined>;
|
|
33
|
+
};
|
|
34
|
+
type __VLS_Slots = {} & {
|
|
35
|
+
default?: (props: typeof __VLS_1) => any;
|
|
36
|
+
};
|
|
37
|
+
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<GrFormProps>, {
|
|
38
|
+
rules: undefined;
|
|
39
|
+
validateOnBlur: boolean;
|
|
40
|
+
validateOnChange: boolean;
|
|
41
|
+
scrollToError: boolean;
|
|
42
|
+
scrollBehavior: string;
|
|
43
|
+
}>>, {
|
|
44
|
+
validate: typeof validate;
|
|
45
|
+
validateField: typeof validateField;
|
|
46
|
+
clearValidate: typeof clearValidate;
|
|
47
|
+
resetFields: typeof resetFields;
|
|
48
|
+
scrollToField: typeof scrollToField;
|
|
49
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
50
|
+
submit: (model: Record<string, unknown>) => void;
|
|
51
|
+
validate: (name: string, valid: boolean, message: string | undefined) => void;
|
|
52
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<GrFormProps>, {
|
|
53
|
+
rules: undefined;
|
|
54
|
+
validateOnBlur: boolean;
|
|
55
|
+
validateOnChange: boolean;
|
|
56
|
+
scrollToError: boolean;
|
|
57
|
+
scrollBehavior: string;
|
|
58
|
+
}>>> & Readonly<{
|
|
59
|
+
onSubmit?: ((model: Record<string, unknown>) => any) | undefined;
|
|
60
|
+
onValidate?: ((name: string, valid: boolean, message: string | undefined) => any) | undefined;
|
|
61
|
+
}>, {
|
|
62
|
+
scrollBehavior: ScrollBehavior;
|
|
63
|
+
rules: GrFormRules;
|
|
64
|
+
validateOnBlur: boolean;
|
|
65
|
+
validateOnChange: boolean;
|
|
66
|
+
scrollToError: boolean;
|
|
67
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
68
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
69
|
+
declare const _default: typeof __VLS_export;
|
|
70
|
+
export default _default;
|
|
71
|
+
type __VLS_TypePropsToOption<T> = {
|
|
72
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
73
|
+
type: import('vue').PropType<Required<T>[K]>;
|
|
74
|
+
} : {
|
|
75
|
+
type: import('vue').PropType<T[K]>;
|
|
76
|
+
required: true;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
type __VLS_WithDefaults<P, D> = {
|
|
80
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
81
|
+
default: D[K];
|
|
82
|
+
}> : P[K];
|
|
83
|
+
};
|
|
84
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
85
|
+
new (): {
|
|
86
|
+
$slots: S;
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
90
|
+
[K in keyof T]: T[K];
|
|
91
|
+
} : {
|
|
92
|
+
[K in keyof T as K]: T[K];
|
|
93
|
+
}) & {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const grFormConfig: import("@feugene/unocss-preset-granular").GranularComponentDescriptor<"GrForm">;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { type ComputedRef, type InjectionKey, type Ref } from 'vue';
|
|
2
|
+
import type { GrFormTrigger } from './validation';
|
|
3
|
+
/**
|
|
4
|
+
* Контекст формы, который `GrForm` предоставляет своим `GrFormField`.
|
|
5
|
+
*
|
|
6
|
+
* Ключевая идея архитектуры: контролы (`GrInput`/`GrSelect`/`GrAutocomplete`/…) НЕ
|
|
7
|
+
* знают про форму — они, как и раньше, читают только контекст `GrFormField`
|
|
8
|
+
* (`id`/`aria-describedby`/`invalid`/`required`). А `GrFormField`, находясь внутри
|
|
9
|
+
* `GrForm`, подтягивает свою ошибку и признак обязательности из ЭТОГО контекста по
|
|
10
|
+
* `name` и триггерит валидацию поля. Так оркестрация добавляется сверху, не трогая
|
|
11
|
+
* ни один контрол.
|
|
12
|
+
*/
|
|
13
|
+
export interface GrFormContext {
|
|
14
|
+
/** Реактивная карта ошибок по имени поля. */
|
|
15
|
+
errors: Ref<Record<string, string | undefined>>;
|
|
16
|
+
/** Имена полей, у которых в правилах есть `required` (для маркера `*`). */
|
|
17
|
+
requiredFields: ComputedRef<Set<string>>;
|
|
18
|
+
/** Есть ли для поля правила (тогда `GrFormField` берёт ошибку из формы). */
|
|
19
|
+
hasField: (name: string) => boolean;
|
|
20
|
+
/** Регистрирует корневой элемент поля (для scroll-to-error). Возвращает unregister. */
|
|
21
|
+
registerField: (name: string, getEl: () => HTMLElement | null) => () => void;
|
|
22
|
+
/** Валидирует одно поле (с учётом триггера и настроек формы). */
|
|
23
|
+
validateField: (name: string, trigger?: GrFormTrigger) => Promise<boolean>;
|
|
24
|
+
}
|
|
25
|
+
export declare const GR_FORM_KEY: InjectionKey<GrFormContext>;
|
|
26
|
+
/** Возвращает контекст формы или `null`, если поле вне `GrForm`. */
|
|
27
|
+
export declare function useGrFormContext(): GrFormContext | null;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { default } from './GrForm.vue';
|
|
2
|
+
export { default as GrForm } from './GrForm.vue';
|
|
3
|
+
export { grFormConfig } from './config';
|
|
4
|
+
export { GR_FORM_KEY, type GrFormContext, useGrFormContext } from './context';
|
|
5
|
+
export type { GrFormProps, GrFormRule, GrFormRules, GrFormTrigger, GrFormValidatorResult, } from './GrForm.vue';
|
|
6
|
+
export { getByPath, type GrFormMessageResolver, type GrFormRuleFailure, isEmpty, runFieldRules, } from './validation';
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Движок валидации `GrForm` — чистый (без Vue/i18n), тестируется изолированно.
|
|
3
|
+
*
|
|
4
|
+
* Правило описывает набор проверок значения поля; `runFieldRules` прогоняет их по
|
|
5
|
+
* порядку и возвращает первое сообщение об ошибке (или `undefined`, если валидно).
|
|
6
|
+
* Сообщения резолвит потребитель (компонент) через `resolveMessage` — так i18n и
|
|
7
|
+
* дефолтные тексты остаются в компоненте, а движок ничего о них не знает.
|
|
8
|
+
*/
|
|
9
|
+
export type GrFormTrigger = 'blur' | 'change' | 'submit';
|
|
10
|
+
/** Результат кастомного валидатора: `true`/void — ок; `false` — ошибка (дефолт-текст); строка — текст ошибки. */
|
|
11
|
+
export type GrFormValidatorResult = boolean | string | void;
|
|
12
|
+
export interface GrFormRule {
|
|
13
|
+
/** Значение обязательно (не пустое). */
|
|
14
|
+
required?: boolean;
|
|
15
|
+
/** Готовый текст ошибки — перекрывает дефолтное сообщение любой проверки этого правила. */
|
|
16
|
+
message?: string;
|
|
17
|
+
/** Минимум: длина для строки/массива, значение для числа. */
|
|
18
|
+
min?: number;
|
|
19
|
+
/** Максимум: длина для строки/массива, значение для числа. */
|
|
20
|
+
max?: number;
|
|
21
|
+
/** Точная длина/значение. */
|
|
22
|
+
len?: number;
|
|
23
|
+
/** Регулярное выражение (проверяется по `String(value)`). */
|
|
24
|
+
pattern?: RegExp;
|
|
25
|
+
/** Встроенный тип-валидатор. */
|
|
26
|
+
type?: 'email' | 'url';
|
|
27
|
+
/** Кастомный (в т.ч. async) валидатор. Второй аргумент — весь `model`. */
|
|
28
|
+
validator?: (value: unknown, model: Record<string, unknown>) => GrFormValidatorResult | Promise<GrFormValidatorResult>;
|
|
29
|
+
/** Когда правило срабатывает. По умолчанию — на любом триггере (blur/change/submit). */
|
|
30
|
+
trigger?: GrFormTrigger | GrFormTrigger[];
|
|
31
|
+
}
|
|
32
|
+
export type GrFormRules = Record<string, GrFormRule | GrFormRule[]>;
|
|
33
|
+
/** Вид сработавшей проверки — ключ для дефолтного i18n-сообщения. */
|
|
34
|
+
export type GrFormRuleFailure = 'required' | 'min' | 'max' | 'len' | 'pattern' | 'email' | 'url' | 'invalid';
|
|
35
|
+
export type GrFormMessageResolver = (kind: GrFormRuleFailure, rule: GrFormRule, params: Record<string, unknown>) => string;
|
|
36
|
+
/** Пустое значение: `null`/`undefined`/пустая (или пробельная) строка/пустой массив. */
|
|
37
|
+
export declare function isEmpty(value: unknown): boolean;
|
|
38
|
+
/** Достаёт значение из объекта по dot-path (`address.city`). */
|
|
39
|
+
export declare function getByPath(obj: Record<string, unknown>, path: string): unknown;
|
|
40
|
+
/** Записывает значение в объект по dot-path (создаёт промежуточные объекты). */
|
|
41
|
+
export declare function setByPath(obj: Record<string, unknown>, path: string, value: unknown): void;
|
|
42
|
+
/** Нормализует правило(а) поля в массив. */
|
|
43
|
+
export declare function toRuleArray(rules: GrFormRule | GrFormRule[] | undefined): GrFormRule[];
|
|
44
|
+
/** Правила поля, применимые для данного триггера (undefined = все). */
|
|
45
|
+
export declare function rulesForTrigger(rules: GrFormRule[], trigger?: GrFormTrigger): GrFormRule[];
|
|
46
|
+
/** Есть ли среди правил `required` (для маркера обязательности в поле). */
|
|
47
|
+
export declare function rulesRequired(rules: GrFormRule[]): boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Прогоняет правила по порядку, возвращает первое сообщение об ошибке или `undefined`.
|
|
50
|
+
* Пустое необязательное значение проходит все проверки (кроме `required`).
|
|
51
|
+
*/
|
|
52
|
+
export declare function runFieldRules(value: unknown, rules: GrFormRule[], model: Record<string, unknown>, resolveMessage: GrFormMessageResolver): Promise<string | undefined>;
|
|
@@ -1,8 +1,15 @@
|
|
|
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;
|
|
4
10
|
/** Явный id контрола. Если не задан — генерируется автоматически. */
|
|
5
11
|
forId?: string;
|
|
12
|
+
/** Явная ошибка. Перекрывает ошибку из `GrForm` (ручной режим без формы — тоже здесь). */
|
|
6
13
|
error?: string;
|
|
7
14
|
/** Подсказка под лейблом/над контролом (можно также через слот `#hint`). */
|
|
8
15
|
hint?: string;
|
|
@@ -18,6 +25,7 @@ type __VLS_Slots = {} & {
|
|
|
18
25
|
};
|
|
19
26
|
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
|
|
20
27
|
label: undefined;
|
|
28
|
+
name: undefined;
|
|
21
29
|
forId: undefined;
|
|
22
30
|
error: undefined;
|
|
23
31
|
hint: undefined;
|
|
@@ -25,6 +33,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
25
33
|
labelClass: undefined;
|
|
26
34
|
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
|
|
27
35
|
label: undefined;
|
|
36
|
+
name: undefined;
|
|
28
37
|
forId: undefined;
|
|
29
38
|
error: undefined;
|
|
30
39
|
hint: undefined;
|
|
@@ -32,8 +41,9 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
32
41
|
labelClass: undefined;
|
|
33
42
|
}>>> & Readonly<{}>, {
|
|
34
43
|
label: string;
|
|
35
|
-
required: boolean;
|
|
36
44
|
error: string;
|
|
45
|
+
name: string;
|
|
46
|
+
required: boolean;
|
|
37
47
|
forId: string;
|
|
38
48
|
hint: string;
|
|
39
49
|
labelClass: LabelClass;
|
|
@@ -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;
|
|
@@ -148,11 +148,12 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
148
148
|
}>>> & Readonly<{
|
|
149
149
|
onClose?: (() => any) | undefined;
|
|
150
150
|
onSwitch?: ((newIndex: number) => any) | undefined;
|
|
151
|
-
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
152
151
|
onRotate?: ((deg: number) => any) | undefined;
|
|
152
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
153
153
|
}>, {
|
|
154
|
-
closeLabel: string;
|
|
155
154
|
zIndex: number;
|
|
155
|
+
emptyText: string;
|
|
156
|
+
closeLabel: string;
|
|
156
157
|
showProgress: boolean;
|
|
157
158
|
initialIndex: number;
|
|
158
159
|
zoomRate: number;
|
|
@@ -170,7 +171,6 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
170
171
|
resetZoomLabel: string;
|
|
171
172
|
rotateLeftLabel: string;
|
|
172
173
|
rotateRightLabel: string;
|
|
173
|
-
emptyText: string;
|
|
174
174
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
175
175
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
176
176
|
declare const _default: typeof __VLS_export;
|
|
@@ -60,8 +60,8 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
60
60
|
state: string;
|
|
61
61
|
name: undefined;
|
|
62
62
|
id: undefined;
|
|
63
|
-
size:
|
|
64
|
-
clearable:
|
|
63
|
+
size: undefined;
|
|
64
|
+
clearable: undefined;
|
|
65
65
|
clearLabel: undefined;
|
|
66
66
|
maxlength: undefined;
|
|
67
67
|
showCount: boolean;
|
|
@@ -90,8 +90,8 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
90
90
|
state: string;
|
|
91
91
|
name: undefined;
|
|
92
92
|
id: undefined;
|
|
93
|
-
size:
|
|
94
|
-
clearable:
|
|
93
|
+
size: undefined;
|
|
94
|
+
clearable: undefined;
|
|
95
95
|
clearLabel: undefined;
|
|
96
96
|
maxlength: undefined;
|
|
97
97
|
showCount: boolean;
|
|
@@ -108,25 +108,25 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
108
108
|
}>>> & Readonly<{
|
|
109
109
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
110
110
|
}>, {
|
|
111
|
+
size: GrInputSize;
|
|
112
|
+
clearable: boolean;
|
|
111
113
|
readonly: boolean;
|
|
112
114
|
type: "text" | "email" | "password" | "number" | "search";
|
|
113
|
-
size: GrInputSize;
|
|
114
|
-
disabled: boolean;
|
|
115
|
-
name: string;
|
|
116
|
-
id: string;
|
|
117
115
|
invalid: boolean;
|
|
118
|
-
|
|
116
|
+
id: string;
|
|
117
|
+
name: string;
|
|
118
|
+
textAlign: GrInputTextAlign;
|
|
119
|
+
disabled: boolean;
|
|
119
120
|
placeholder: string;
|
|
121
|
+
clearLabel: string;
|
|
120
122
|
autocomplete: string;
|
|
123
|
+
inputmode: "search" | "text" | "none" | "email" | "tel" | "url" | "numeric" | "decimal";
|
|
121
124
|
state: "default" | "success" | "warning" | "danger";
|
|
122
|
-
clearable: boolean;
|
|
123
|
-
clearLabel: string;
|
|
124
125
|
maxlength: number;
|
|
125
126
|
showCount: boolean;
|
|
126
127
|
passwordToggle: boolean;
|
|
127
128
|
passwordShowLabel: string;
|
|
128
129
|
passwordHideLabel: string;
|
|
129
|
-
textAlign: GrInputTextAlign;
|
|
130
130
|
prefixMinWidth: string;
|
|
131
131
|
prefixMaxWidth: string;
|
|
132
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[];
|
|
@@ -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>>;
|
|
@@ -64,7 +64,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
64
64
|
state: string;
|
|
65
65
|
name: undefined;
|
|
66
66
|
id: undefined;
|
|
67
|
-
size:
|
|
67
|
+
size: undefined;
|
|
68
68
|
textAlign: string;
|
|
69
69
|
decimalSeparator: string;
|
|
70
70
|
step: number;
|
|
@@ -97,7 +97,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
97
97
|
state: string;
|
|
98
98
|
name: undefined;
|
|
99
99
|
id: undefined;
|
|
100
|
-
size:
|
|
100
|
+
size: undefined;
|
|
101
101
|
textAlign: string;
|
|
102
102
|
decimalSeparator: string;
|
|
103
103
|
step: number;
|
|
@@ -117,31 +117,31 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
117
117
|
increaseLabel: undefined;
|
|
118
118
|
decreaseLabel: undefined;
|
|
119
119
|
}>>> & Readonly<{
|
|
120
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
121
120
|
onChange?: ((value: string) => any) | undefined;
|
|
121
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
122
122
|
}>, {
|
|
123
123
|
size: GrNumberInputSize;
|
|
124
|
-
disabled: boolean;
|
|
125
|
-
name: string;
|
|
126
|
-
id: string;
|
|
127
124
|
invalid: boolean;
|
|
125
|
+
id: string;
|
|
128
126
|
max: number;
|
|
129
|
-
|
|
127
|
+
min: number;
|
|
128
|
+
name: string;
|
|
129
|
+
textAlign: GrNumberInputTextAlign;
|
|
130
|
+
disabled: boolean;
|
|
130
131
|
placeholder: string;
|
|
131
132
|
autocomplete: string;
|
|
133
|
+
inputmode: "search" | "text" | "none" | "email" | "tel" | "url" | "numeric" | "decimal";
|
|
132
134
|
state: GrNumberInputState;
|
|
133
|
-
textAlign: GrNumberInputTextAlign;
|
|
134
135
|
prefixMinWidth: string;
|
|
135
136
|
prefixMaxWidth: string;
|
|
136
137
|
suffixMinWidth: string;
|
|
137
138
|
suffixMaxWidth: string;
|
|
138
139
|
prefixFixed: boolean;
|
|
139
140
|
suffixFixed: boolean;
|
|
140
|
-
|
|
141
|
+
locale: string;
|
|
141
142
|
decimalSeparator: string;
|
|
142
143
|
step: number;
|
|
143
144
|
precision: number;
|
|
144
|
-
locale: string;
|
|
145
145
|
useGrouping: boolean;
|
|
146
146
|
controls: boolean;
|
|
147
147
|
controlsDirection: GrNumberInputControlsDirection;
|
|
@@ -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';
|