@feugene/granularity 0.9.4 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +44 -45
- package/dist/GrButtonGroup.css +1 -1
- package/dist/GrFormFile.css +1 -1
- package/dist/GrIcon.css +1 -1
- package/dist/GrLoading.css +1 -1
- package/dist/GrSkeleton.css +1 -1
- package/dist/GrToaster.css +1 -0
- package/dist/GrTree.css +1 -1
- package/dist/chunks/{adapter-BqqjEZGU.js.map → adapter-CAOxmn2G.js.map} +1 -1
- package/dist/chunks/arrow-up-C_G4jg8M.js.map +1 -0
- package/dist/chunks/{classTokens-BPeBXNzu.js.map → classTokens-BzazaERD.js.map} +1 -1
- package/dist/chunks/{config-B_nSBc7W.js → config-1uSYl98Y.js} +5 -5
- package/dist/chunks/{config-B_nSBc7W.js.map → config-1uSYl98Y.js.map} +1 -1
- package/dist/chunks/{config-DaHI5bD_2.js.map → config-8Pcutu1j2.js.map} +1 -1
- package/dist/chunks/{config-DoBk_CzG.js.map → config-B0qIpo8m.js.map} +1 -1
- package/dist/chunks/{config-BY81UKv0.js → config-B7IIWGt_2.js} +3 -3
- package/dist/chunks/config-B7IIWGt_2.js.map +1 -0
- package/dist/chunks/{config-DbghHyY_.js.map → config-BEegFP74.js.map} +1 -1
- package/dist/chunks/{config-72sW9Bag2.js → config-BIRO0vDJ2.js} +6 -6
- package/dist/chunks/{config-72sW9Bag2.js.map → config-BIRO0vDJ2.js.map} +1 -1
- package/dist/chunks/{config-Dzd6BzIN2.js.map → config-BLHqZhy-2.js.map} +1 -1
- package/dist/chunks/{config-BV4vBzdm.js.map → config-BNu8lFQB.js.map} +1 -1
- package/dist/chunks/config-BOlr7qw7.js +106 -0
- package/dist/chunks/config-BOlr7qw7.js.map +1 -0
- package/dist/chunks/{config-B1kFmhpM.js.map → config-BUHuGBik.js.map} +1 -1
- package/dist/chunks/{config-DF_RlCIO.js.map → config-BWGGp7uV.js.map} +1 -1
- package/dist/chunks/config-BX1JTrkV2.js +14 -0
- package/dist/chunks/config-BX1JTrkV2.js.map +1 -0
- package/dist/chunks/{config-BduXEXjt.js.map → config-BXtAmU3s.js.map} +1 -1
- package/dist/chunks/{config-O1_FTqD3.js.map → config-Bah4oHwL.js.map} +1 -1
- package/dist/chunks/{config-Br_qI3Za.js → config-C49QUoJL.js} +3 -3
- package/dist/chunks/config-C49QUoJL.js.map +1 -0
- package/dist/chunks/{config-3I3vqDW4.js → config-C4snOIXg.js} +1 -1
- package/dist/chunks/{config-3I3vqDW4.js.map → config-C4snOIXg.js.map} +1 -1
- package/dist/chunks/{config-CdJpnjDj.js → config-C7NpDrfO.js} +5 -5
- package/dist/chunks/{config-CdJpnjDj.js.map → config-C7NpDrfO.js.map} +1 -1
- package/dist/chunks/{config-DSBlHQVa.js.map → config-C86UzUYf.js.map} +1 -1
- package/dist/chunks/{config-BgBWt9-A.js.map → config-C9AcVDkv.js.map} +1 -1
- package/dist/chunks/{config-BeQuykDk2.js.map → config-CGHLoBlH2.js.map} +1 -1
- package/dist/chunks/{config-ChQxl75m.js.map → config-CThzliFi.js.map} +1 -1
- package/dist/chunks/{config-DmjwIqx1.js.map → config-Cb2PAlSD.js.map} +1 -1
- package/dist/chunks/{config-BnWSHTEU.js → config-ClhKPJvg.js} +5 -5
- package/dist/chunks/{config-BnWSHTEU.js.map → config-ClhKPJvg.js.map} +1 -1
- package/dist/chunks/{config-d386uO3O.js → config-Cpi9Mh2J.js} +3 -3
- package/dist/chunks/{config-d386uO3O.js.map → config-Cpi9Mh2J.js.map} +1 -1
- package/dist/chunks/{config-Cp_XHsze.js → config-CrG1XiE7.js} +4 -4
- package/dist/chunks/{config-Cp_XHsze.js.map → config-CrG1XiE7.js.map} +1 -1
- package/dist/chunks/{config-C5OwJM3-.js → config-CziwTDDL.js} +3 -3
- package/dist/chunks/{config-C5OwJM3-.js.map → config-CziwTDDL.js.map} +1 -1
- package/dist/chunks/{config-BbKroFtR.js.map → config-D7GZO-Dx.js.map} +1 -1
- package/dist/chunks/{config-CUwF4E4R.js.map → config-DBmdgoVf.js.map} +1 -1
- package/dist/chunks/{config-C9MblwGq.js.map → config-DICOd-2X.js.map} +1 -1
- package/dist/chunks/{config-C6zT56Jc2.js → config-DUcu1D68.js} +3 -3
- package/dist/chunks/config-DUcu1D68.js.map +1 -0
- package/dist/chunks/{config-D4s_QWVP.js → config-D_R56_gT.js} +5 -5
- package/dist/chunks/{config-D4s_QWVP.js.map → config-D_R56_gT.js.map} +1 -1
- package/dist/chunks/{config-_3De4HFf.js → config-DezDih8_.js} +4 -4
- package/dist/chunks/config-DezDih8_.js.map +1 -0
- package/dist/chunks/{config-CFf7xaG1.js → config-DnvPqu4g.js} +3 -3
- package/dist/chunks/{config-CFf7xaG1.js.map → config-DnvPqu4g.js.map} +1 -1
- package/dist/chunks/{config-D6Oe3blW2.js.map → config-DpqOnJiz2.js.map} +1 -1
- package/dist/chunks/{config-V3LF-b_F.js.map → config-Dxuwwepq.js.map} +1 -1
- package/dist/chunks/{config-CvGdaXvH.js.map → config-HZto2PVy.js.map} +1 -1
- package/dist/chunks/{config-BOdu-O_B.js.map → config-JOtB4mzs.js.map} +1 -1
- package/dist/chunks/{config-iuMz79Mg.js.map → config-JpHA4Xx0.js.map} +1 -1
- package/dist/chunks/{config-CetsgpaZ2.js → config-LGrZIdaZ2.js} +1 -1
- package/dist/chunks/{config-CetsgpaZ2.js.map → config-LGrZIdaZ2.js.map} +1 -1
- package/dist/chunks/{config-Dcb7xK-C.js.map → config-PFg39mYo.js.map} +1 -1
- package/dist/chunks/{config-CU_CBd0k.js → config-QYGvEBu5.js} +2 -2
- package/dist/chunks/{config-CU_CBd0k.js.map → config-QYGvEBu5.js.map} +1 -1
- package/dist/chunks/{config-BU0olrvr.js.map → config-QaIc_gRa.js.map} +1 -1
- package/dist/chunks/{config-vcDVCYXo.js.map → config-U4m9PSql.js.map} +1 -1
- package/dist/chunks/{config-Ci9nXGUV.js.map → config-ZiXWIRBX.js.map} +1 -1
- package/dist/chunks/{config-B2YTEe_h.js → config-eYLZYOUS2.js} +63 -63
- package/dist/chunks/config-eYLZYOUS2.js.map +1 -0
- package/dist/chunks/{config-Bcf-8XlK2.js.map → config-ipvU0lzP2.js.map} +1 -1
- package/dist/chunks/{config-B61cX08u.js → config-jBp9wVv-.js} +4 -4
- package/dist/chunks/{config-B61cX08u.js.map → config-jBp9wVv-.js.map} +1 -1
- package/dist/chunks/{config-D5ek7VSi.js.map → config-xR4XVmcy.js.map} +1 -1
- package/dist/chunks/{dialogShared-BtXUk6Zc.js.map → dialogShared-CxW62PQE.js.map} +1 -1
- package/dist/chunks/en-BdtiS2d3.js +138 -0
- package/dist/chunks/en-BdtiS2d3.js.map +1 -0
- package/dist/chunks/es-BGRMZbe9.js +138 -0
- package/dist/chunks/es-BGRMZbe9.js.map +1 -0
- package/dist/chunks/{es-Bx3Kuy6z.js → es-DBhctWg-.js} +3 -3
- package/dist/chunks/{es-Bx3Kuy6z.js.map → es-DBhctWg-.js.map} +1 -1
- package/dist/chunks/{fileValidation-c_iBg74s.js → fileValidation-C3WFaWU2.js} +2 -1
- package/dist/chunks/{fileValidation-c_iBg74s.js.map → fileValidation-C3WFaWU2.js.map} +1 -1
- package/dist/chunks/{grBadgeStyles-Cq0hH2Ls.js → grBadgeStyles-DrycBuKT.js} +13 -13
- package/dist/chunks/grBadgeStyles-DrycBuKT.js.map +1 -0
- package/dist/chunks/grButtonStyles-C7Yga_Q1.js +191 -0
- package/dist/chunks/grButtonStyles-C7Yga_Q1.js.map +1 -0
- package/dist/chunks/grDropdownStyles-B_-DKytw.js +35 -0
- package/dist/chunks/grDropdownStyles-B_-DKytw.js.map +1 -0
- package/dist/chunks/{grLoadingStyles-DmI-SJ3i.js.map → grLoadingStyles-R5sreH__.js.map} +1 -1
- package/dist/chunks/{grModalStyles-DS1Vl6EW.js → grModalStyles-DWd3i05Q.js} +7 -7
- package/dist/chunks/grModalStyles-DWd3i05Q.js.map +1 -0
- package/dist/chunks/{grSelectStyles-pUt19VGy.js → grSelectStyles-CLK5hRd3.js} +3 -3
- package/dist/chunks/grSelectStyles-CLK5hRd3.js.map +1 -0
- package/dist/chunks/{grStyle-CUaTmpyW.js → grStyle-Blc9otAx.js} +6 -6
- package/dist/chunks/grStyle-Blc9otAx.js.map +1 -0
- package/dist/chunks/{granularityI18n-LcJ88Vce.js → granularityI18n-DoV7Ca2m.js} +18 -3
- package/dist/chunks/granularityI18n-DoV7Ca2m.js.map +1 -0
- package/dist/chunks/info-Be2OccTu.js.map +1 -0
- package/dist/chunks/loader-circle-CfVLz7lb.js.map +1 -0
- package/dist/chunks/ru-BFCnOiML.js +138 -0
- package/dist/chunks/ru-BFCnOiML.js.map +1 -0
- package/dist/chunks/{safelist-_UVzJrgE2.js → safelist-CkF4v7DC.js} +3 -3
- package/dist/chunks/safelist-CkF4v7DC.js.map +1 -0
- package/dist/chunks/{safelist-DccvJqCE.js → safelist-Do2RtzLB.js} +3 -3
- package/dist/chunks/{safelist-DccvJqCE.js.map → safelist-Do2RtzLB.js.map} +1 -1
- package/dist/chunks/shared-ChvcQgDl.js +168 -0
- package/dist/chunks/shared-ChvcQgDl.js.map +1 -0
- package/dist/chunks/{transition-mJ3PZCHH.js → transition-TLFw4KBn.js} +26 -12
- package/dist/chunks/{transition-mJ3PZCHH.js.map → transition-TLFw4KBn.js.map} +1 -1
- package/dist/chunks/useAddonMeasurement-DM0akF4C.js +65 -0
- package/dist/chunks/useAddonMeasurement-DM0akF4C.js.map +1 -0
- package/dist/chunks/useEscapeToClose-C2t_S1gh.js +27 -0
- package/dist/chunks/useEscapeToClose-C2t_S1gh.js.map +1 -0
- package/dist/chunks/useFloating-DtM6TyE4.js +1249 -0
- package/dist/chunks/useFloating-DtM6TyE4.js.map +1 -0
- package/dist/chunks/x-2KXnqxiD.js.map +1 -0
- package/dist/chunks/x-circle-BCBURwyX.js.map +1 -0
- package/dist/components/GrAlert/chunks/{GrAlert-HyCjYJeL.js → GrAlert-DPJSU_fG.js} +40 -37
- package/dist/components/GrAlert/chunks/GrAlert-DPJSU_fG.js.map +1 -0
- package/dist/components/GrAlert/index.js +2 -2
- package/dist/components/GrAvatar/chunks/{GrAvatar-BjnPKNAL.js → GrAvatar-96CpTCq5.js} +2 -2
- package/dist/components/GrAvatar/chunks/{GrAvatar-BjnPKNAL.js.map → GrAvatar-96CpTCq5.js.map} +1 -1
- package/dist/components/GrAvatar/index.js +2 -2
- package/dist/components/GrBadge/chunks/{GrBadge-Cs_cVfuO.js → GrBadge-B77XlaqE.js} +3 -3
- package/dist/components/GrBadge/chunks/{GrBadge-Cs_cVfuO.js.map → GrBadge-B77XlaqE.js.map} +1 -1
- package/dist/components/GrBadge/index.js +2 -2
- package/dist/components/GrBadgeWrap/chunks/{GrBadgeWrap-BEnE9DyJ.js → GrBadgeWrap-CcktMOdg.js} +2 -2
- package/dist/components/GrBadgeWrap/chunks/{GrBadgeWrap-BEnE9DyJ.js.map → GrBadgeWrap-CcktMOdg.js.map} +1 -1
- package/dist/components/GrBadgeWrap/index.js +2 -2
- package/dist/components/GrBottomNav/chunks/{GrBottomNav-XPHwd7UQ.js.map → GrBottomNav-usuMgG8_.js.map} +1 -1
- package/dist/components/GrBottomNav/index.js +2 -2
- package/dist/components/GrButton/chunks/GrButton-BlffdeJr.js +124 -0
- package/dist/components/GrButton/chunks/GrButton-BlffdeJr.js.map +1 -0
- package/dist/components/GrButton/index.js +4 -4
- package/dist/components/GrButtonGroup/chunks/{GrButtonGroup-CPOH6V-P.js → GrButtonGroup-Bs9dEKfA.js} +1 -1
- package/dist/components/GrButtonGroup/chunks/GrButtonGroup-Bs9dEKfA.js.map +1 -0
- package/dist/components/GrButtonGroup/index.js +2 -2
- package/dist/components/GrCard/chunks/{GrCard-6yk1RRAQ.js → GrCard-DUNMkuHW.js} +3 -3
- package/dist/components/GrCard/chunks/GrCard-DUNMkuHW.js.map +1 -0
- package/dist/components/GrCard/index.js +2 -2
- package/dist/components/GrCheckbox/chunks/{GrCheckbox-Bt3d7ckE.js → GrCheckbox-DJhzZZdO.js} +66 -18
- package/dist/components/GrCheckbox/chunks/GrCheckbox-DJhzZZdO.js.map +1 -0
- package/dist/components/GrCheckbox/index.js +2 -2
- package/dist/components/GrCollapse/chunks/{GrCollapse-CU94BTAR.js → GrCollapse-CPPLh_xU.js} +12 -12
- package/dist/components/GrCollapse/chunks/{GrCollapse-CU94BTAR.js.map → GrCollapse-CPPLh_xU.js.map} +1 -1
- package/dist/components/GrCollapse/index.js +2 -2
- package/dist/components/GrConfirmDialog/chunks/{GrConfirmDialog-Br6WJkLE.js → GrConfirmDialog-BWYKCsHd.js} +20 -14
- package/dist/components/GrConfirmDialog/chunks/GrConfirmDialog-BWYKCsHd.js.map +1 -0
- package/dist/components/GrConfirmDialog/index.js +2 -2
- package/dist/components/GrDataTable/chunks/{GrDataTable-ClcYiyc8.js → GrDataTable-ptbARmJ3.js} +7 -7
- package/dist/components/GrDataTable/chunks/{GrDataTable-ClcYiyc8.js.map → GrDataTable-ptbARmJ3.js.map} +1 -1
- package/dist/components/GrDataTable/index.js +2 -2
- package/dist/components/GrDialog/chunks/{GrDialog-C7XLxp8e.js → GrDialog-5DAS-1Lb.js} +14 -12
- package/dist/components/GrDialog/chunks/GrDialog-5DAS-1Lb.js.map +1 -0
- package/dist/components/GrDialog/index.js +3 -3
- package/dist/components/GrDialogService/chunks/GrDialogService-DY_fmaMu.js +425 -0
- package/dist/components/GrDialogService/chunks/GrDialogService-DY_fmaMu.js.map +1 -0
- package/dist/components/GrDialogService/index.js +3 -0
- package/dist/components/GrDrawer/chunks/{GrDrawer-BW3wtI7h.js → GrDrawer-D1kzsjXN.js} +19 -15
- package/dist/components/GrDrawer/chunks/GrDrawer-D1kzsjXN.js.map +1 -0
- package/dist/components/GrDrawer/index.js +2 -2
- package/dist/components/GrDropdown/chunks/GrDropdown-BXb5Cxxf.js +95 -0
- package/dist/components/GrDropdown/chunks/GrDropdown-BXb5Cxxf.js.map +1 -0
- package/dist/components/GrDropdown/index.js +2 -2
- package/dist/components/GrDropdownMenu/chunks/{GrDropdownMenu-CLPwbiyG.js → GrDropdownMenu-DFEJLPcV.js} +10 -10
- package/dist/components/GrDropdownMenu/chunks/{GrDropdownMenu-CLPwbiyG.js.map → GrDropdownMenu-DFEJLPcV.js.map} +1 -1
- package/dist/components/GrDropdownMenu/index.js +2 -2
- package/dist/components/GrEmptyState/chunks/{GrEmptyState-Dj2V5GaX.js → GrEmptyState-CA3BiTV7.js} +3 -3
- package/dist/components/GrEmptyState/chunks/{GrEmptyState-Dj2V5GaX.js.map → GrEmptyState-CA3BiTV7.js.map} +1 -1
- package/dist/components/GrEmptyState/index.js +2 -2
- package/dist/components/GrFileUpload/chunks/{GrFileUpload-BEKNB1RM.js → GrFileUpload-DvWPpiJS.js} +26 -23
- package/dist/components/GrFileUpload/chunks/GrFileUpload-DvWPpiJS.js.map +1 -0
- package/dist/components/GrFileUpload/index.js +3 -3
- package/dist/components/GrFormField/chunks/{GrFormField-U7c_aDPJ.js → GrFormField-BujNQrw8.js} +1 -1
- package/dist/components/GrFormField/chunks/{GrFormField-U7c_aDPJ.js.map → GrFormField-BujNQrw8.js.map} +1 -1
- package/dist/components/GrFormField/index.js +2 -2
- package/dist/components/GrFormFile/chunks/{GrFormFile-CIleXnfr.js → GrFormFile-CXcqqdvV.js} +38 -31
- package/dist/components/GrFormFile/chunks/GrFormFile-CXcqqdvV.js.map +1 -0
- package/dist/components/GrFormFile/index.js +2 -2
- package/dist/components/GrFormSection/chunks/{GrFormSection-DpGhY7MX.js → GrFormSection-Ce21jcgo.js} +1 -1
- package/dist/components/GrFormSection/chunks/{GrFormSection-DpGhY7MX.js.map → GrFormSection-Ce21jcgo.js.map} +1 -1
- package/dist/components/GrFormSection/index.js +2 -2
- package/dist/components/GrIcon/chunks/{GrIcon-BV7RBU_0.js → GrIcon-D9AWQLk2.js} +3 -3
- package/dist/components/GrIcon/chunks/{GrIcon-BV7RBU_0.js.map → GrIcon-D9AWQLk2.js.map} +1 -1
- package/dist/components/GrIcon/index.js +2 -2
- package/dist/components/GrImageViewer/chunks/{GrImageViewer-CsvXQHM9.js → GrImageViewer-OCUIrNh2.js} +44 -33
- package/dist/components/GrImageViewer/chunks/GrImageViewer-OCUIrNh2.js.map +1 -0
- package/dist/components/GrImageViewer/index.js +2 -2
- package/dist/components/GrInput/chunks/{GrInput-gwFQ1sk4.js → GrInput-C8pOJgCi.js} +43 -66
- package/dist/components/GrInput/chunks/GrInput-C8pOJgCi.js.map +1 -0
- package/dist/components/GrInput/index.js +2 -2
- package/dist/components/GrInputTag/chunks/{GrInputTag-Dcj3F6rQ.js → GrInputTag-zMgFqp2g.js} +27 -24
- package/dist/components/GrInputTag/chunks/GrInputTag-zMgFqp2g.js.map +1 -0
- package/dist/components/GrInputTag/index.js +2 -2
- package/dist/components/GrLink/chunks/{GrLink-BMwn2iJ9.js → GrLink-CYUe-Q8k.js} +14 -7
- package/dist/components/GrLink/chunks/GrLink-CYUe-Q8k.js.map +1 -0
- package/dist/components/GrLink/index.js +2 -2
- package/dist/components/GrList/chunks/{GrList-D8nM1FuV.js → GrList-Dx772Ns4.js} +1 -1
- package/dist/components/GrList/chunks/{GrList-D8nM1FuV.js.map → GrList-Dx772Ns4.js.map} +1 -1
- package/dist/components/GrList/index.js +2 -2
- package/dist/components/GrLoading/chunks/{GrLoading-mfyfghxs.js → GrLoading--X_7rdbb.js} +7 -7
- package/dist/components/GrLoading/chunks/{GrLoading-mfyfghxs.js.map → GrLoading--X_7rdbb.js.map} +1 -1
- package/dist/components/GrLoading/index.js +2 -2
- package/dist/components/GrModal/chunks/{GrModal-lh0lOmoi.js → GrModal-BkjW9jZS.js} +7 -7
- package/dist/components/GrModal/chunks/{GrModal-lh0lOmoi.js.map → GrModal-BkjW9jZS.js.map} +1 -1
- package/dist/components/GrModal/index.js +3 -3
- package/dist/components/GrNavbar/chunks/{GrNavbar-BH7XiF9q.js → GrNavbar-DW3MiIIf.js} +6 -6
- package/dist/components/GrNavbar/chunks/{GrNavbar-BH7XiF9q.js.map → GrNavbar-DW3MiIIf.js.map} +1 -1
- package/dist/components/GrNavbar/index.js +2 -2
- package/dist/components/GrNumberInput/chunks/{GrNumberInput-YIWhV85S.js → GrNumberInput-CldPIWQx.js} +51 -61
- package/dist/components/GrNumberInput/chunks/GrNumberInput-CldPIWQx.js.map +1 -0
- package/dist/components/GrNumberInput/index.js +2 -2
- package/dist/components/GrPagination/chunks/GrPagination-Bu9wv6it.js +165 -0
- package/dist/components/GrPagination/chunks/GrPagination-Bu9wv6it.js.map +1 -0
- package/dist/components/GrPagination/index.js +2 -2
- package/dist/components/GrProgressBar/chunks/{GrProgressBar-C2HdYjp4.js → GrProgressBar-CC3z-Zqp.js} +3 -3
- package/dist/components/GrProgressBar/chunks/{GrProgressBar-C2HdYjp4.js.map → GrProgressBar-CC3z-Zqp.js.map} +1 -1
- package/dist/components/GrProgressBar/index.js +2 -2
- package/dist/components/GrPromptDialog/chunks/{GrPromptDialog-BV4EW3XO.js → GrPromptDialog-TmWXbpEP.js} +31 -23
- package/dist/components/GrPromptDialog/chunks/GrPromptDialog-TmWXbpEP.js.map +1 -0
- package/dist/components/GrPromptDialog/index.js +2 -2
- package/dist/components/GrRadio/chunks/{GrRadio-IFU9Hiu2.js → GrRadio-CPTixXaY.js} +6 -6
- package/dist/components/GrRadio/chunks/{GrRadio-IFU9Hiu2.js.map → GrRadio-CPTixXaY.js.map} +1 -1
- package/dist/components/GrRadio/index.js +2 -2
- package/dist/components/GrRadioGroup/chunks/{GrRadioGroup-C8IcJuuF.js → GrRadioGroup-vKZCbkCp.js} +3 -3
- package/dist/components/GrRadioGroup/chunks/{GrRadioGroup-C8IcJuuF.js.map → GrRadioGroup-vKZCbkCp.js.map} +1 -1
- package/dist/components/GrRadioGroup/index.js +2 -2
- package/dist/components/GrResponseErrorBanner/chunks/{GrResponseErrorBanner-BMvXREcv.js → GrResponseErrorBanner-BWJNe2gr.js} +21 -18
- package/dist/components/GrResponseErrorBanner/chunks/GrResponseErrorBanner-BWJNe2gr.js.map +1 -0
- package/dist/components/GrResponseErrorBanner/chunks/{GrResponseErrorBanner-CzdTh4gd.js → GrResponseErrorBanner-Cdu9ekK9.js} +5 -5
- package/dist/components/GrResponseErrorBanner/chunks/{GrResponseErrorBanner-CzdTh4gd.js.map → GrResponseErrorBanner-Cdu9ekK9.js.map} +1 -1
- package/dist/components/GrResponseErrorBanner/index.js +2 -2
- package/dist/components/GrSegmented/chunks/{GrSegmented-BRmwBsEG.js → GrSegmented-C1y0UXpQ.js} +5 -5
- package/dist/components/GrSegmented/chunks/{GrSegmented-BRmwBsEG.js.map → GrSegmented-C1y0UXpQ.js.map} +1 -1
- package/dist/components/GrSegmented/index.js +2 -2
- package/dist/components/GrSelect/chunks/{GrSelect-CnHdbPlf.js → GrSelect-RShK21lK.js} +106 -112
- package/dist/components/GrSelect/chunks/GrSelect-RShK21lK.js.map +1 -0
- package/dist/components/GrSelect/index.js +2 -2
- package/dist/components/GrSidebar/chunks/GrSidebar-DkWozzwA.js +238 -0
- package/dist/components/GrSidebar/chunks/GrSidebar-DkWozzwA.js.map +1 -0
- package/dist/components/GrSidebar/index.js +3 -3
- package/dist/components/GrSkeleton/chunks/{GrSkeleton-URyMkBqI.js → GrSkeleton-DsN-_CDZ.js} +1 -1
- package/dist/components/GrSkeleton/chunks/{GrSkeleton-URyMkBqI.js.map → GrSkeleton-DsN-_CDZ.js.map} +1 -1
- package/dist/components/GrSkeleton/index.js +2 -2
- package/dist/components/GrSwitch/chunks/{GrSwitch-29h0QhMO.js → GrSwitch-DAioyccZ.js} +10 -10
- package/dist/components/GrSwitch/chunks/{GrSwitch-29h0QhMO.js.map → GrSwitch-DAioyccZ.js.map} +1 -1
- package/dist/components/GrSwitch/index.js +2 -2
- package/dist/components/GrTable/chunks/{GrTable-dTWUxzRm.js → GrTable-Db3hRnKA.js} +3 -3
- package/dist/components/GrTable/chunks/{GrTable-dTWUxzRm.js.map → GrTable-Db3hRnKA.js.map} +1 -1
- package/dist/components/GrTable/index.js +2 -2
- package/dist/components/GrTabs/chunks/{GrTabs-D3ntDdtg.js → GrTabs-Z-FDJUr_.js} +3 -3
- package/dist/components/GrTabs/chunks/{GrTabs-D3ntDdtg.js.map → GrTabs-Z-FDJUr_.js.map} +1 -1
- package/dist/components/GrTabs/index.js +2 -2
- package/dist/components/GrTextarea/chunks/{GrTextarea-Cv6r2GuC.js → GrTextarea-D56YxhKq.js} +3 -3
- package/dist/components/GrTextarea/chunks/{GrTextarea-Cv6r2GuC.js.map → GrTextarea-D56YxhKq.js.map} +1 -1
- package/dist/components/GrTextarea/index.js +2 -2
- package/dist/components/GrToaster/chunks/GrToaster-eI8YvnIo.js +189 -0
- package/dist/components/GrToaster/chunks/GrToaster-eI8YvnIo.js.map +1 -0
- package/dist/components/GrToaster/index.js +2 -2
- package/dist/components/GrTooltip/chunks/GrTooltip-BeyZ8ssR.js +109 -0
- package/dist/components/GrTooltip/chunks/GrTooltip-BeyZ8ssR.js.map +1 -0
- package/dist/components/GrTooltip/index.js +2 -2
- package/dist/components/GrTree/chunks/{GrTree-B2SMU5Py.js → GrTree-D3ODe2dB.js} +40 -35
- package/dist/components/GrTree/chunks/GrTree-D3ODe2dB.js.map +1 -0
- package/dist/components/GrTree/index.js +2 -2
- package/dist/components/GrTreeSelect/chunks/{GrTreeSelect-C1abr5uH.js → GrTreeSelect-B2xBKs5Q.js} +21 -49
- package/dist/components/GrTreeSelect/chunks/GrTreeSelect-B2xBKs5Q.js.map +1 -0
- package/dist/components/GrTreeSelect/index.js +2 -2
- package/dist/composables/useTheme.js +48 -8
- package/dist/composables/useTheme.js.map +1 -1
- package/dist/composables/useToast.js +88 -26
- package/dist/composables/useToast.js.map +1 -1
- package/dist/directives/autofocus.js.map +1 -1
- package/dist/directives/autosize.js.map +1 -1
- package/dist/directives/clickOutside.js.map +1 -1
- package/dist/directives/dropzone.js +6 -5
- package/dist/directives/dropzone.js.map +1 -1
- package/dist/directives/hotkey.js +24 -7
- package/dist/directives/hotkey.js.map +1 -1
- package/dist/directives/loading.js +2 -2
- package/dist/directives/loading.js.map +1 -1
- package/dist/fileValidation/index.js +1 -1
- package/dist/granular-provider-node.js +7 -7
- package/dist/granular-provider-node.js.map +1 -1
- package/dist/granular-provider.js +1 -1
- package/dist/granular-provider.js.map +1 -1
- package/dist/i18n/all.js +1 -1
- package/dist/i18n/all.js.map +1 -1
- package/dist/i18n/index.js +2 -2
- package/dist/index.js +109 -534
- package/dist/index.js.map +1 -1
- package/dist/styles/base.css +32 -0
- package/dist/styles/index.css +15 -0
- package/dist/styles/preflight.css +29 -0
- package/dist/styles/themes/dark.css +107 -0
- package/dist/styles/themes/light.css +98 -0
- package/dist/styles/tokens.css +135 -0
- package/dist/types/src/components/GrButton/GrButton.vue.d.ts +25 -2
- package/dist/types/src/components/GrCheckbox/GrCheckbox.vue.d.ts +7 -2
- package/dist/types/src/components/GrConfirmDialog/GrConfirmDialog.vue.d.ts +8 -8
- package/dist/types/src/components/GrDataTable/GrDataTable.vue.d.ts +1 -1
- package/dist/types/src/components/GrDialog/GrDialog.vue.d.ts +2 -2
- package/dist/types/src/components/GrDialog/GrDialogHeader.vue.d.ts +2 -2
- package/dist/types/src/components/GrDrawer/GrDrawer.vue.d.ts +2 -2
- package/dist/types/src/components/GrDropdown/grDropdownStyles.d.ts +3 -2
- package/dist/types/src/components/GrDropdownMenu/GrDropdownMenu.vue.d.ts +2 -2
- package/dist/types/src/components/GrDropdownMenu/GrDropdownMenuGroup.vue.d.ts +1 -1
- package/dist/types/src/components/GrDropdownMenu/GrDropdownMenuList.vue.d.ts +2 -2
- package/dist/types/src/components/GrFileUpload/GrFileUpload.vue.d.ts +5 -5
- package/dist/types/src/components/GrFormFile/GrFormFile.vue.d.ts +11 -11
- package/dist/types/src/components/GrImageViewer/GrImageViewer.vue.d.ts +18 -18
- package/dist/types/src/components/GrInput/GrInput.vue.d.ts +14 -0
- package/dist/types/src/components/GrInput/grInputStyles.d.ts +3 -3
- package/dist/types/src/components/GrInputTag/GrInputTag.vue.d.ts +2 -2
- package/dist/types/src/components/GrLink/GrLink.vue.d.ts +11 -5
- package/dist/types/src/components/GrLink/grLinkStyles.d.ts +31 -3
- package/dist/types/src/components/GrLink/index.d.ts +1 -1
- package/dist/types/src/components/GrLoading/GrLoading.vue.d.ts +1 -1
- package/dist/types/src/components/GrModal/grModalStyles.d.ts +2 -2
- package/dist/types/src/components/GrNumberInput/GrNumberInput.vue.d.ts +17 -4
- package/dist/types/src/components/GrPagination/GrPagination.vue.d.ts +13 -1
- package/dist/types/src/components/GrPromptDialog/GrPromptDialog.vue.d.ts +12 -12
- package/dist/types/src/components/GrSegmented/GrSegmented.vue.d.ts +2 -2
- package/dist/types/src/components/GrSegmented/grSegmentedStyles.d.ts +5 -5
- package/dist/types/src/components/GrSelect/GrSelect.vue.d.ts +7 -7
- package/dist/types/src/components/GrSelect/grSelectStyles.d.ts +2 -1
- package/dist/types/src/components/GrSidebar/GrSidebar.vue.d.ts +33 -10
- package/dist/types/src/components/GrSidebar/GrSidebarItem.vue.d.ts +64 -0
- package/dist/types/src/components/GrSidebar/index.d.ts +1 -0
- package/dist/types/src/components/GrSidebar/sidebarContext.d.ts +9 -0
- package/dist/types/src/components/GrSwitch/GrSwitch.vue.d.ts +1 -1
- package/dist/types/src/components/GrSwitch/grSwitchStyles.d.ts +2 -2
- package/dist/types/src/components/GrToaster/GrToaster.vue.d.ts +9 -4
- package/dist/types/src/components/GrTree/GrTree.vue.d.ts +1 -1
- package/dist/types/src/components/GrTreeSelect/GrTreeSelect.vue.d.ts +2 -2
- package/dist/types/src/components/GrTreeSelect/grTreeSelectStyles.d.ts +1 -1
- package/dist/types/src/components/GrTreeSelect/grTreeSelectTypes.d.ts +1 -1
- package/dist/types/src/composables/internal/useAddonMeasurement.d.ts +18 -0
- package/dist/types/src/composables/internal/useEscapeToClose.d.ts +11 -0
- package/dist/types/src/composables/internal/useFloating.d.ts +53 -0
- package/dist/types/src/composables/useTheme.d.ts +5 -2
- package/dist/types/src/composables/useToast.d.ts +33 -1
- package/dist/types/src/directives/hotkey.d.ts +14 -0
- package/dist/types/src/granular-provider/shared.d.ts +1 -3
- package/dist/types/src/i18n/messages/en.d.ts +132 -0
- package/dist/types/src/i18n/messages/es.d.ts +132 -0
- package/dist/types/src/i18n/messages/ru.d.ts +132 -0
- package/dist/types/src/index.d.ts +2 -2
- package/dist/vue/index.js.map +1 -1
- package/dist/web-types.json +4673 -0
- package/package.json +33 -19
- package/dist/chunks/arrow-up-DZdIrpaF.js.map +0 -1
- package/dist/chunks/config-B2YTEe_h.js.map +0 -1
- package/dist/chunks/config-BY81UKv0.js.map +0 -1
- package/dist/chunks/config-Br_qI3Za.js.map +0 -1
- package/dist/chunks/config-C6zT56Jc2.js.map +0 -1
- package/dist/chunks/config-CpMYmvVT.js +0 -59
- package/dist/chunks/config-CpMYmvVT.js.map +0 -1
- package/dist/chunks/config-_3De4HFf.js.map +0 -1
- package/dist/chunks/en-foQA8imU.js +0 -65
- package/dist/chunks/en-foQA8imU.js.map +0 -1
- package/dist/chunks/es-DZFSojYL.js +0 -65
- package/dist/chunks/es-DZFSojYL.js.map +0 -1
- package/dist/chunks/grBadgeStyles-Cq0hH2Ls.js.map +0 -1
- package/dist/chunks/grButtonStyles-DKuXUemw.js +0 -191
- package/dist/chunks/grButtonStyles-DKuXUemw.js.map +0 -1
- package/dist/chunks/grDropdownStyles-B41mVR1H.js +0 -32
- package/dist/chunks/grDropdownStyles-B41mVR1H.js.map +0 -1
- package/dist/chunks/grModalStyles-DS1Vl6EW.js.map +0 -1
- package/dist/chunks/grSelectStyles-pUt19VGy.js.map +0 -1
- package/dist/chunks/grStyle-CUaTmpyW.js.map +0 -1
- package/dist/chunks/granularityI18n-LcJ88Vce.js.map +0 -1
- package/dist/chunks/info-C0bHmdZq.js.map +0 -1
- package/dist/chunks/loader-circle-BUntgosj.js.map +0 -1
- package/dist/chunks/ru-LhkPpPIl.js +0 -65
- package/dist/chunks/ru-LhkPpPIl.js.map +0 -1
- package/dist/chunks/safelist-_UVzJrgE2.js.map +0 -1
- package/dist/chunks/shared-BiqXd5MW.js +0 -169
- package/dist/chunks/shared-BiqXd5MW.js.map +0 -1
- package/dist/chunks/x-Pa6C2hwi.js.map +0 -1
- package/dist/chunks/x-circle-DQSlBLmX.js.map +0 -1
- package/dist/components/GrAlert/chunks/GrAlert-HyCjYJeL.js.map +0 -1
- package/dist/components/GrButton/chunks/GrButton-CPDKonoB.js +0 -83
- package/dist/components/GrButton/chunks/GrButton-CPDKonoB.js.map +0 -1
- package/dist/components/GrButtonGroup/chunks/GrButtonGroup-CPOH6V-P.js.map +0 -1
- package/dist/components/GrCard/chunks/GrCard-6yk1RRAQ.js.map +0 -1
- package/dist/components/GrCheckbox/chunks/GrCheckbox-Bt3d7ckE.js.map +0 -1
- package/dist/components/GrConfirmDialog/chunks/GrConfirmDialog-Br6WJkLE.js.map +0 -1
- package/dist/components/GrDialog/chunks/GrDialog-C7XLxp8e.js.map +0 -1
- package/dist/components/GrDrawer/chunks/GrDrawer-BW3wtI7h.js.map +0 -1
- package/dist/components/GrDropdown/chunks/GrDropdown-DOvHKnih.js +0 -151
- package/dist/components/GrDropdown/chunks/GrDropdown-DOvHKnih.js.map +0 -1
- package/dist/components/GrFileUpload/chunks/GrFileUpload-BEKNB1RM.js.map +0 -1
- package/dist/components/GrFormFile/chunks/GrFormFile-CIleXnfr.js.map +0 -1
- package/dist/components/GrImageViewer/chunks/GrImageViewer-CsvXQHM9.js.map +0 -1
- package/dist/components/GrInput/chunks/GrInput-gwFQ1sk4.js.map +0 -1
- package/dist/components/GrInputTag/chunks/GrInputTag-Dcj3F6rQ.js.map +0 -1
- package/dist/components/GrLink/chunks/GrLink-BMwn2iJ9.js.map +0 -1
- package/dist/components/GrNumberInput/chunks/GrNumberInput-YIWhV85S.js.map +0 -1
- package/dist/components/GrPagination/chunks/GrPagination-BNDEqM8_.js +0 -114
- package/dist/components/GrPagination/chunks/GrPagination-BNDEqM8_.js.map +0 -1
- package/dist/components/GrPromptDialog/chunks/GrPromptDialog-BV4EW3XO.js.map +0 -1
- package/dist/components/GrResponseErrorBanner/chunks/GrResponseErrorBanner-BMvXREcv.js.map +0 -1
- package/dist/components/GrSelect/chunks/GrSelect-CnHdbPlf.js.map +0 -1
- package/dist/components/GrSidebar/chunks/GrSidebar-BpBtAGBs.js +0 -44
- package/dist/components/GrSidebar/chunks/GrSidebar-BpBtAGBs.js.map +0 -1
- package/dist/components/GrToaster/chunks/GrToaster-DluJmR5D.js +0 -171
- package/dist/components/GrToaster/chunks/GrToaster-DluJmR5D.js.map +0 -1
- package/dist/components/GrTooltip/chunks/GrTooltip-B7I1AVIC.js +0 -55
- package/dist/components/GrTooltip/chunks/GrTooltip-B7I1AVIC.js.map +0 -1
- package/dist/components/GrTree/chunks/GrTree-B2SMU5Py.js.map +0 -1
- package/dist/components/GrTreeSelect/chunks/GrTreeSelect-C1abr5uH.js.map +0 -1
- /package/dist/chunks/{_plugin-vue_export-helper-DQR7Sy7Q.js → _plugin-vue_export-helper-BOaGB7Aw.js} +0 -0
- /package/dist/chunks/{adapter-BqqjEZGU.js → adapter-CAOxmn2G.js} +0 -0
- /package/dist/chunks/{arrow-up-DZdIrpaF.js → arrow-up-C_G4jg8M.js} +0 -0
- /package/dist/chunks/{classTokens-BPeBXNzu.js → classTokens-BzazaERD.js} +0 -0
- /package/dist/chunks/{config-DaHI5bD_2.js → config-8Pcutu1j2.js} +0 -0
- /package/dist/chunks/{config-DoBk_CzG.js → config-B0qIpo8m.js} +0 -0
- /package/dist/chunks/{config-DbghHyY_.js → config-BEegFP74.js} +0 -0
- /package/dist/chunks/{config-Dzd6BzIN2.js → config-BLHqZhy-2.js} +0 -0
- /package/dist/chunks/{config-BV4vBzdm.js → config-BNu8lFQB.js} +0 -0
- /package/dist/chunks/{config-B1kFmhpM.js → config-BUHuGBik.js} +0 -0
- /package/dist/chunks/{config-DF_RlCIO.js → config-BWGGp7uV.js} +0 -0
- /package/dist/chunks/{config-BduXEXjt.js → config-BXtAmU3s.js} +0 -0
- /package/dist/chunks/{config-O1_FTqD3.js → config-Bah4oHwL.js} +0 -0
- /package/dist/chunks/{config-DSBlHQVa.js → config-C86UzUYf.js} +0 -0
- /package/dist/chunks/{config-BgBWt9-A.js → config-C9AcVDkv.js} +0 -0
- /package/dist/chunks/{config-BeQuykDk2.js → config-CGHLoBlH2.js} +0 -0
- /package/dist/chunks/{config-ChQxl75m.js → config-CThzliFi.js} +0 -0
- /package/dist/chunks/{config-DmjwIqx1.js → config-Cb2PAlSD.js} +0 -0
- /package/dist/chunks/{config-BbKroFtR.js → config-D7GZO-Dx.js} +0 -0
- /package/dist/chunks/{config-CUwF4E4R.js → config-DBmdgoVf.js} +0 -0
- /package/dist/chunks/{config-C9MblwGq.js → config-DICOd-2X.js} +0 -0
- /package/dist/chunks/{config-D6Oe3blW2.js → config-DpqOnJiz2.js} +0 -0
- /package/dist/chunks/{config-V3LF-b_F.js → config-Dxuwwepq.js} +0 -0
- /package/dist/chunks/{config-CvGdaXvH.js → config-HZto2PVy.js} +0 -0
- /package/dist/chunks/{config-BOdu-O_B.js → config-JOtB4mzs.js} +0 -0
- /package/dist/chunks/{config-iuMz79Mg.js → config-JpHA4Xx0.js} +0 -0
- /package/dist/chunks/{config-Dcb7xK-C.js → config-PFg39mYo.js} +0 -0
- /package/dist/chunks/{config-BU0olrvr.js → config-QaIc_gRa.js} +0 -0
- /package/dist/chunks/{config-vcDVCYXo.js → config-U4m9PSql.js} +0 -0
- /package/dist/chunks/{config-Ci9nXGUV.js → config-ZiXWIRBX.js} +0 -0
- /package/dist/chunks/{config-Bcf-8XlK2.js → config-ipvU0lzP2.js} +0 -0
- /package/dist/chunks/{config-D5ek7VSi.js → config-xR4XVmcy.js} +0 -0
- /package/dist/chunks/{dialogShared-BtXUk6Zc.js → dialogShared-CxW62PQE.js} +0 -0
- /package/dist/chunks/{grLoadingStyles-DmI-SJ3i.js → grLoadingStyles-R5sreH__.js} +0 -0
- /package/dist/chunks/{info-C0bHmdZq.js → info-Be2OccTu.js} +0 -0
- /package/dist/chunks/{loader-circle-BUntgosj.js → loader-circle-CfVLz7lb.js} +0 -0
- /package/dist/chunks/{x-Pa6C2hwi.js → x-2KXnqxiD.js} +0 -0
- /package/dist/chunks/{x-circle-DQSlBLmX.js → x-circle-BCBURwyX.js} +0 -0
- /package/dist/components/GrBottomNav/chunks/{GrBottomNav-XPHwd7UQ.js → GrBottomNav-usuMgG8_.js} +0 -0
|
@@ -23,6 +23,16 @@ export declare const en: {
|
|
|
23
23
|
filterPlaceholder: string;
|
|
24
24
|
empty: string;
|
|
25
25
|
};
|
|
26
|
+
tree: {
|
|
27
|
+
drag: string;
|
|
28
|
+
expand: string;
|
|
29
|
+
collapse: string;
|
|
30
|
+
};
|
|
31
|
+
select: {
|
|
32
|
+
customValuePlaceholder: string;
|
|
33
|
+
addOption: string;
|
|
34
|
+
clearOption: string;
|
|
35
|
+
};
|
|
26
36
|
dialog: {
|
|
27
37
|
confirm: {
|
|
28
38
|
title: string;
|
|
@@ -34,9 +44,13 @@ export declare const en: {
|
|
|
34
44
|
};
|
|
35
45
|
};
|
|
36
46
|
pagination: {
|
|
47
|
+
label: string;
|
|
37
48
|
pageSize: string;
|
|
38
49
|
prev: string;
|
|
39
50
|
next: string;
|
|
51
|
+
page: string;
|
|
52
|
+
first: string;
|
|
53
|
+
last: string;
|
|
40
54
|
};
|
|
41
55
|
navbar: {
|
|
42
56
|
openMenu: string;
|
|
@@ -67,6 +81,58 @@ export declare const en: {
|
|
|
67
81
|
slate: string;
|
|
68
82
|
azure: string;
|
|
69
83
|
};
|
|
84
|
+
drawer: {
|
|
85
|
+
title: string;
|
|
86
|
+
};
|
|
87
|
+
numberInput: {
|
|
88
|
+
increase: string;
|
|
89
|
+
decrease: string;
|
|
90
|
+
};
|
|
91
|
+
toaster: {
|
|
92
|
+
dismiss: string;
|
|
93
|
+
region: string;
|
|
94
|
+
};
|
|
95
|
+
inputTag: {
|
|
96
|
+
removeTag: string;
|
|
97
|
+
};
|
|
98
|
+
fileUpload: {
|
|
99
|
+
placeholder: string;
|
|
100
|
+
progress: string;
|
|
101
|
+
};
|
|
102
|
+
formFile: {
|
|
103
|
+
upload: string;
|
|
104
|
+
change: string;
|
|
105
|
+
remove: string;
|
|
106
|
+
clearAll: string;
|
|
107
|
+
placeholder: string;
|
|
108
|
+
validateError: string;
|
|
109
|
+
};
|
|
110
|
+
imageViewer: {
|
|
111
|
+
close: string;
|
|
112
|
+
prev: string;
|
|
113
|
+
next: string;
|
|
114
|
+
zoomIn: string;
|
|
115
|
+
zoomOut: string;
|
|
116
|
+
resetZoom: string;
|
|
117
|
+
rotateLeft: string;
|
|
118
|
+
rotateRight: string;
|
|
119
|
+
empty: string;
|
|
120
|
+
};
|
|
121
|
+
formErrorBanner: {
|
|
122
|
+
validationTitle: string;
|
|
123
|
+
validationMessage: string;
|
|
124
|
+
clientTitle: string;
|
|
125
|
+
serverTitle: string;
|
|
126
|
+
serverMessage: string;
|
|
127
|
+
};
|
|
128
|
+
uploadErrorBanner: {
|
|
129
|
+
networkTitle: string;
|
|
130
|
+
networkMessage: string;
|
|
131
|
+
validationTitle: string;
|
|
132
|
+
validationMessage: string;
|
|
133
|
+
serverTitle: string;
|
|
134
|
+
serverMessage: string;
|
|
135
|
+
};
|
|
70
136
|
};
|
|
71
137
|
common: {
|
|
72
138
|
confirm: string;
|
|
@@ -82,6 +148,16 @@ export declare const en: {
|
|
|
82
148
|
filterPlaceholder: string;
|
|
83
149
|
empty: string;
|
|
84
150
|
};
|
|
151
|
+
tree: {
|
|
152
|
+
drag: string;
|
|
153
|
+
expand: string;
|
|
154
|
+
collapse: string;
|
|
155
|
+
};
|
|
156
|
+
select: {
|
|
157
|
+
customValuePlaceholder: string;
|
|
158
|
+
addOption: string;
|
|
159
|
+
clearOption: string;
|
|
160
|
+
};
|
|
85
161
|
dialog: {
|
|
86
162
|
confirm: {
|
|
87
163
|
title: string;
|
|
@@ -93,9 +169,13 @@ export declare const en: {
|
|
|
93
169
|
};
|
|
94
170
|
};
|
|
95
171
|
pagination: {
|
|
172
|
+
label: string;
|
|
96
173
|
pageSize: string;
|
|
97
174
|
prev: string;
|
|
98
175
|
next: string;
|
|
176
|
+
page: string;
|
|
177
|
+
first: string;
|
|
178
|
+
last: string;
|
|
99
179
|
};
|
|
100
180
|
navbar: {
|
|
101
181
|
openMenu: string;
|
|
@@ -126,6 +206,58 @@ export declare const en: {
|
|
|
126
206
|
slate: string;
|
|
127
207
|
azure: string;
|
|
128
208
|
};
|
|
209
|
+
drawer: {
|
|
210
|
+
title: string;
|
|
211
|
+
};
|
|
212
|
+
numberInput: {
|
|
213
|
+
increase: string;
|
|
214
|
+
decrease: string;
|
|
215
|
+
};
|
|
216
|
+
toaster: {
|
|
217
|
+
dismiss: string;
|
|
218
|
+
region: string;
|
|
219
|
+
};
|
|
220
|
+
inputTag: {
|
|
221
|
+
removeTag: string;
|
|
222
|
+
};
|
|
223
|
+
fileUpload: {
|
|
224
|
+
placeholder: string;
|
|
225
|
+
progress: string;
|
|
226
|
+
};
|
|
227
|
+
formFile: {
|
|
228
|
+
upload: string;
|
|
229
|
+
change: string;
|
|
230
|
+
remove: string;
|
|
231
|
+
clearAll: string;
|
|
232
|
+
placeholder: string;
|
|
233
|
+
validateError: string;
|
|
234
|
+
};
|
|
235
|
+
imageViewer: {
|
|
236
|
+
close: string;
|
|
237
|
+
prev: string;
|
|
238
|
+
next: string;
|
|
239
|
+
zoomIn: string;
|
|
240
|
+
zoomOut: string;
|
|
241
|
+
resetZoom: string;
|
|
242
|
+
rotateLeft: string;
|
|
243
|
+
rotateRight: string;
|
|
244
|
+
empty: string;
|
|
245
|
+
};
|
|
246
|
+
formErrorBanner: {
|
|
247
|
+
validationTitle: string;
|
|
248
|
+
validationMessage: string;
|
|
249
|
+
clientTitle: string;
|
|
250
|
+
serverTitle: string;
|
|
251
|
+
serverMessage: string;
|
|
252
|
+
};
|
|
253
|
+
uploadErrorBanner: {
|
|
254
|
+
networkTitle: string;
|
|
255
|
+
networkMessage: string;
|
|
256
|
+
validationTitle: string;
|
|
257
|
+
validationMessage: string;
|
|
258
|
+
serverTitle: string;
|
|
259
|
+
serverMessage: string;
|
|
260
|
+
};
|
|
129
261
|
}>;
|
|
130
262
|
};
|
|
131
263
|
};
|
|
@@ -16,6 +16,16 @@ export declare const es: {
|
|
|
16
16
|
filterPlaceholder: string;
|
|
17
17
|
empty: string;
|
|
18
18
|
};
|
|
19
|
+
tree: {
|
|
20
|
+
drag: string;
|
|
21
|
+
expand: string;
|
|
22
|
+
collapse: string;
|
|
23
|
+
};
|
|
24
|
+
select: {
|
|
25
|
+
customValuePlaceholder: string;
|
|
26
|
+
addOption: string;
|
|
27
|
+
clearOption: string;
|
|
28
|
+
};
|
|
19
29
|
dialog: {
|
|
20
30
|
confirm: {
|
|
21
31
|
title: string;
|
|
@@ -27,9 +37,13 @@ export declare const es: {
|
|
|
27
37
|
};
|
|
28
38
|
};
|
|
29
39
|
pagination: {
|
|
40
|
+
label: string;
|
|
30
41
|
pageSize: string;
|
|
31
42
|
prev: string;
|
|
32
43
|
next: string;
|
|
44
|
+
page: string;
|
|
45
|
+
first: string;
|
|
46
|
+
last: string;
|
|
33
47
|
};
|
|
34
48
|
navbar: {
|
|
35
49
|
openMenu: string;
|
|
@@ -60,6 +74,58 @@ export declare const es: {
|
|
|
60
74
|
slate: string;
|
|
61
75
|
azure: string;
|
|
62
76
|
};
|
|
77
|
+
drawer: {
|
|
78
|
+
title: string;
|
|
79
|
+
};
|
|
80
|
+
numberInput: {
|
|
81
|
+
increase: string;
|
|
82
|
+
decrease: string;
|
|
83
|
+
};
|
|
84
|
+
toaster: {
|
|
85
|
+
dismiss: string;
|
|
86
|
+
region: string;
|
|
87
|
+
};
|
|
88
|
+
inputTag: {
|
|
89
|
+
removeTag: string;
|
|
90
|
+
};
|
|
91
|
+
fileUpload: {
|
|
92
|
+
placeholder: string;
|
|
93
|
+
progress: string;
|
|
94
|
+
};
|
|
95
|
+
formFile: {
|
|
96
|
+
upload: string;
|
|
97
|
+
change: string;
|
|
98
|
+
remove: string;
|
|
99
|
+
clearAll: string;
|
|
100
|
+
placeholder: string;
|
|
101
|
+
validateError: string;
|
|
102
|
+
};
|
|
103
|
+
imageViewer: {
|
|
104
|
+
close: string;
|
|
105
|
+
prev: string;
|
|
106
|
+
next: string;
|
|
107
|
+
zoomIn: string;
|
|
108
|
+
zoomOut: string;
|
|
109
|
+
resetZoom: string;
|
|
110
|
+
rotateLeft: string;
|
|
111
|
+
rotateRight: string;
|
|
112
|
+
empty: string;
|
|
113
|
+
};
|
|
114
|
+
formErrorBanner: {
|
|
115
|
+
validationTitle: string;
|
|
116
|
+
validationMessage: string;
|
|
117
|
+
clientTitle: string;
|
|
118
|
+
serverTitle: string;
|
|
119
|
+
serverMessage: string;
|
|
120
|
+
};
|
|
121
|
+
uploadErrorBanner: {
|
|
122
|
+
networkTitle: string;
|
|
123
|
+
networkMessage: string;
|
|
124
|
+
validationTitle: string;
|
|
125
|
+
validationMessage: string;
|
|
126
|
+
serverTitle: string;
|
|
127
|
+
serverMessage: string;
|
|
128
|
+
};
|
|
63
129
|
};
|
|
64
130
|
common: {
|
|
65
131
|
confirm: string;
|
|
@@ -75,6 +141,16 @@ export declare const es: {
|
|
|
75
141
|
filterPlaceholder: string;
|
|
76
142
|
empty: string;
|
|
77
143
|
};
|
|
144
|
+
tree: {
|
|
145
|
+
drag: string;
|
|
146
|
+
expand: string;
|
|
147
|
+
collapse: string;
|
|
148
|
+
};
|
|
149
|
+
select: {
|
|
150
|
+
customValuePlaceholder: string;
|
|
151
|
+
addOption: string;
|
|
152
|
+
clearOption: string;
|
|
153
|
+
};
|
|
78
154
|
dialog: {
|
|
79
155
|
confirm: {
|
|
80
156
|
title: string;
|
|
@@ -86,9 +162,13 @@ export declare const es: {
|
|
|
86
162
|
};
|
|
87
163
|
};
|
|
88
164
|
pagination: {
|
|
165
|
+
label: string;
|
|
89
166
|
pageSize: string;
|
|
90
167
|
prev: string;
|
|
91
168
|
next: string;
|
|
169
|
+
page: string;
|
|
170
|
+
first: string;
|
|
171
|
+
last: string;
|
|
92
172
|
};
|
|
93
173
|
navbar: {
|
|
94
174
|
openMenu: string;
|
|
@@ -119,6 +199,58 @@ export declare const es: {
|
|
|
119
199
|
slate: string;
|
|
120
200
|
azure: string;
|
|
121
201
|
};
|
|
202
|
+
drawer: {
|
|
203
|
+
title: string;
|
|
204
|
+
};
|
|
205
|
+
numberInput: {
|
|
206
|
+
increase: string;
|
|
207
|
+
decrease: string;
|
|
208
|
+
};
|
|
209
|
+
toaster: {
|
|
210
|
+
dismiss: string;
|
|
211
|
+
region: string;
|
|
212
|
+
};
|
|
213
|
+
inputTag: {
|
|
214
|
+
removeTag: string;
|
|
215
|
+
};
|
|
216
|
+
fileUpload: {
|
|
217
|
+
placeholder: string;
|
|
218
|
+
progress: string;
|
|
219
|
+
};
|
|
220
|
+
formFile: {
|
|
221
|
+
upload: string;
|
|
222
|
+
change: string;
|
|
223
|
+
remove: string;
|
|
224
|
+
clearAll: string;
|
|
225
|
+
placeholder: string;
|
|
226
|
+
validateError: string;
|
|
227
|
+
};
|
|
228
|
+
imageViewer: {
|
|
229
|
+
close: string;
|
|
230
|
+
prev: string;
|
|
231
|
+
next: string;
|
|
232
|
+
zoomIn: string;
|
|
233
|
+
zoomOut: string;
|
|
234
|
+
resetZoom: string;
|
|
235
|
+
rotateLeft: string;
|
|
236
|
+
rotateRight: string;
|
|
237
|
+
empty: string;
|
|
238
|
+
};
|
|
239
|
+
formErrorBanner: {
|
|
240
|
+
validationTitle: string;
|
|
241
|
+
validationMessage: string;
|
|
242
|
+
clientTitle: string;
|
|
243
|
+
serverTitle: string;
|
|
244
|
+
serverMessage: string;
|
|
245
|
+
};
|
|
246
|
+
uploadErrorBanner: {
|
|
247
|
+
networkTitle: string;
|
|
248
|
+
networkMessage: string;
|
|
249
|
+
validationTitle: string;
|
|
250
|
+
validationMessage: string;
|
|
251
|
+
serverTitle: string;
|
|
252
|
+
serverMessage: string;
|
|
253
|
+
};
|
|
122
254
|
}>;
|
|
123
255
|
};
|
|
124
256
|
};
|
|
@@ -16,6 +16,16 @@ export declare const ru: {
|
|
|
16
16
|
filterPlaceholder: string;
|
|
17
17
|
empty: string;
|
|
18
18
|
};
|
|
19
|
+
tree: {
|
|
20
|
+
drag: string;
|
|
21
|
+
expand: string;
|
|
22
|
+
collapse: string;
|
|
23
|
+
};
|
|
24
|
+
select: {
|
|
25
|
+
customValuePlaceholder: string;
|
|
26
|
+
addOption: string;
|
|
27
|
+
clearOption: string;
|
|
28
|
+
};
|
|
19
29
|
dialog: {
|
|
20
30
|
confirm: {
|
|
21
31
|
title: string;
|
|
@@ -27,9 +37,13 @@ export declare const ru: {
|
|
|
27
37
|
};
|
|
28
38
|
};
|
|
29
39
|
pagination: {
|
|
40
|
+
label: string;
|
|
30
41
|
pageSize: string;
|
|
31
42
|
prev: string;
|
|
32
43
|
next: string;
|
|
44
|
+
page: string;
|
|
45
|
+
first: string;
|
|
46
|
+
last: string;
|
|
33
47
|
};
|
|
34
48
|
navbar: {
|
|
35
49
|
openMenu: string;
|
|
@@ -60,6 +74,58 @@ export declare const ru: {
|
|
|
60
74
|
slate: string;
|
|
61
75
|
azure: string;
|
|
62
76
|
};
|
|
77
|
+
drawer: {
|
|
78
|
+
title: string;
|
|
79
|
+
};
|
|
80
|
+
numberInput: {
|
|
81
|
+
increase: string;
|
|
82
|
+
decrease: string;
|
|
83
|
+
};
|
|
84
|
+
toaster: {
|
|
85
|
+
dismiss: string;
|
|
86
|
+
region: string;
|
|
87
|
+
};
|
|
88
|
+
inputTag: {
|
|
89
|
+
removeTag: string;
|
|
90
|
+
};
|
|
91
|
+
fileUpload: {
|
|
92
|
+
placeholder: string;
|
|
93
|
+
progress: string;
|
|
94
|
+
};
|
|
95
|
+
formFile: {
|
|
96
|
+
upload: string;
|
|
97
|
+
change: string;
|
|
98
|
+
remove: string;
|
|
99
|
+
clearAll: string;
|
|
100
|
+
placeholder: string;
|
|
101
|
+
validateError: string;
|
|
102
|
+
};
|
|
103
|
+
imageViewer: {
|
|
104
|
+
close: string;
|
|
105
|
+
prev: string;
|
|
106
|
+
next: string;
|
|
107
|
+
zoomIn: string;
|
|
108
|
+
zoomOut: string;
|
|
109
|
+
resetZoom: string;
|
|
110
|
+
rotateLeft: string;
|
|
111
|
+
rotateRight: string;
|
|
112
|
+
empty: string;
|
|
113
|
+
};
|
|
114
|
+
formErrorBanner: {
|
|
115
|
+
validationTitle: string;
|
|
116
|
+
validationMessage: string;
|
|
117
|
+
clientTitle: string;
|
|
118
|
+
serverTitle: string;
|
|
119
|
+
serverMessage: string;
|
|
120
|
+
};
|
|
121
|
+
uploadErrorBanner: {
|
|
122
|
+
networkTitle: string;
|
|
123
|
+
networkMessage: string;
|
|
124
|
+
validationTitle: string;
|
|
125
|
+
validationMessage: string;
|
|
126
|
+
serverTitle: string;
|
|
127
|
+
serverMessage: string;
|
|
128
|
+
};
|
|
63
129
|
};
|
|
64
130
|
common: {
|
|
65
131
|
confirm: string;
|
|
@@ -75,6 +141,16 @@ export declare const ru: {
|
|
|
75
141
|
filterPlaceholder: string;
|
|
76
142
|
empty: string;
|
|
77
143
|
};
|
|
144
|
+
tree: {
|
|
145
|
+
drag: string;
|
|
146
|
+
expand: string;
|
|
147
|
+
collapse: string;
|
|
148
|
+
};
|
|
149
|
+
select: {
|
|
150
|
+
customValuePlaceholder: string;
|
|
151
|
+
addOption: string;
|
|
152
|
+
clearOption: string;
|
|
153
|
+
};
|
|
78
154
|
dialog: {
|
|
79
155
|
confirm: {
|
|
80
156
|
title: string;
|
|
@@ -86,9 +162,13 @@ export declare const ru: {
|
|
|
86
162
|
};
|
|
87
163
|
};
|
|
88
164
|
pagination: {
|
|
165
|
+
label: string;
|
|
89
166
|
pageSize: string;
|
|
90
167
|
prev: string;
|
|
91
168
|
next: string;
|
|
169
|
+
page: string;
|
|
170
|
+
first: string;
|
|
171
|
+
last: string;
|
|
92
172
|
};
|
|
93
173
|
navbar: {
|
|
94
174
|
openMenu: string;
|
|
@@ -119,6 +199,58 @@ export declare const ru: {
|
|
|
119
199
|
slate: string;
|
|
120
200
|
azure: string;
|
|
121
201
|
};
|
|
202
|
+
drawer: {
|
|
203
|
+
title: string;
|
|
204
|
+
};
|
|
205
|
+
numberInput: {
|
|
206
|
+
increase: string;
|
|
207
|
+
decrease: string;
|
|
208
|
+
};
|
|
209
|
+
toaster: {
|
|
210
|
+
dismiss: string;
|
|
211
|
+
region: string;
|
|
212
|
+
};
|
|
213
|
+
inputTag: {
|
|
214
|
+
removeTag: string;
|
|
215
|
+
};
|
|
216
|
+
fileUpload: {
|
|
217
|
+
placeholder: string;
|
|
218
|
+
progress: string;
|
|
219
|
+
};
|
|
220
|
+
formFile: {
|
|
221
|
+
upload: string;
|
|
222
|
+
change: string;
|
|
223
|
+
remove: string;
|
|
224
|
+
clearAll: string;
|
|
225
|
+
placeholder: string;
|
|
226
|
+
validateError: string;
|
|
227
|
+
};
|
|
228
|
+
imageViewer: {
|
|
229
|
+
close: string;
|
|
230
|
+
prev: string;
|
|
231
|
+
next: string;
|
|
232
|
+
zoomIn: string;
|
|
233
|
+
zoomOut: string;
|
|
234
|
+
resetZoom: string;
|
|
235
|
+
rotateLeft: string;
|
|
236
|
+
rotateRight: string;
|
|
237
|
+
empty: string;
|
|
238
|
+
};
|
|
239
|
+
formErrorBanner: {
|
|
240
|
+
validationTitle: string;
|
|
241
|
+
validationMessage: string;
|
|
242
|
+
clientTitle: string;
|
|
243
|
+
serverTitle: string;
|
|
244
|
+
serverMessage: string;
|
|
245
|
+
};
|
|
246
|
+
uploadErrorBanner: {
|
|
247
|
+
networkTitle: string;
|
|
248
|
+
networkMessage: string;
|
|
249
|
+
validationTitle: string;
|
|
250
|
+
validationMessage: string;
|
|
251
|
+
serverTitle: string;
|
|
252
|
+
serverMessage: string;
|
|
253
|
+
};
|
|
122
254
|
}>;
|
|
123
255
|
};
|
|
124
256
|
};
|
|
@@ -50,8 +50,8 @@ export * from './components/GrTree';
|
|
|
50
50
|
export * from './components/GrTreeSelect';
|
|
51
51
|
export { initThemeEarly, useTheme } from './composables/useTheme';
|
|
52
52
|
export type { ThemeName, UseThemeOptions } from './composables/useTheme';
|
|
53
|
-
export { useToast } from './composables/useToast';
|
|
54
|
-
export type { GrToastTone, Toast, ToastInput } from './composables/useToast';
|
|
53
|
+
export { granularityToastPlugin, GRANULARITY_TOAST_STATE, useToast } from './composables/useToast';
|
|
54
|
+
export type { GrToastTone, Toast, ToastInput, ToastState } from './composables/useToast';
|
|
55
55
|
export { GR_TONES } from './components/shared/tones';
|
|
56
56
|
export type { GrTone } from './components/shared/tones';
|
|
57
57
|
export type * from './fileValidation/types';
|
package/dist/vue/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../src/vue/plugin.ts"],"sourcesContent":["import type {App, Component, Directive, Plugin} from 'vue'\n\n/**\n * Лёгкий контейнер, который может быть зарегистрирован в Vue:\n * - SFC-компонент (Vue сам компилирует `__name` из имени файла) — достаточно просто передать сам компонент,\n * - SFC-компонент с опциональным `install` (по аналогии с Element Plus / Naive UI),\n * - объект с собственным `install`,\n * - либо объект `{ name, component }`, если имя нужно задать явно.\n */\nexport type GranularityInstallableComponent =\n | (Component & { name?: string; __name?: string; install?: (app: App) => void })\n | { install: (app: App) => void }\n | { name: string; component: Component }\n\n/**\n * Директива — либо пара `{ name, directive }`, либо объект с `install`.\n */\nexport type GranularityInstallableDirective =\n | { name: string; directive: Directive }\n | { install: (app: App) => void }\n\nexport interface CreateGranularityOptions {\n /**\n * Список компонентов для глобальной регистрации.\n * Пакет сам по себе ничего не импортирует — пользователь передаёт сюда только те компоненты,\n * которые ему действительно нужны. За счёт этого tree-shaking остаётся полным.\n */\n components?: GranularityInstallableComponent[]\n /**\n * Список директив. Передавайте ровно те, что нужны, по аналогии с компонентами.\n */\n directives?: GranularityInstallableDirective[]\n /**\n * Произвольные `provide`-значения. Ключи могут быть `symbol` или строкой.\n * Пакет не навязывает конкретные ключи (например, i18n) — выбор за пользователем.\n */\n provides?: Array<{ key: string | symbol; value: unknown }>\n /**\n * Произвольные `app.config.globalProperties` — по умолчанию ничего не ставим.\n */\n globalProperties?: Record<string, unknown>\n}\n\n/**\n * Вспомогательная обёртка: превращает произвольный компонент в `GranularityInstallableComponent`\n * с явным именем регистрации.\n *\n * ```ts\n * import { GrButton } from '@feugene/granularity/components/GrButton'\n * import { defineInstallable } from '@feugene/granularity/vue'\n *\n * const installable = defineInstallable(GrButton, 'GrButton')\n * ```\n */\nexport function defineInstallable<T extends Component>(component: T, name: string): GranularityInstallableComponent {\n return {\n install(app: App) {\n app.component(name, component)\n },\n }\n}\n\nfunction installComponent(app: App, c: GranularityInstallableComponent): void {\n if (typeof (c as any).install === 'function') {\n ;(c as any).install(app)\n return\n }\n\n // Форма `{ name, component }` — явное указание имени для произвольного компонента.\n // Допускаем как object-компоненты (SFC / options), так и functional-компоненты.\n if (\n typeof (c as any).name === 'string'\n && (c as any).component\n && (typeof (c as any).component === 'object' || typeof (c as any).component === 'function')\n ) {\n const {name, component} = c as { name: string; component: Component }\n app.component(name, component)\n return\n }\n\n // SFC: Vue 3 компилирует имя компонента из имени файла в поле `__name`\n // (например, `GrButton.vue` → `__name: 'GrButton'`). Также поддерживаем явное `name`.\n const resolvedName\n = (c as Component & { name?: string }).name\n ?? (c as { __name?: string }).__name\n if (resolvedName) {\n app.component(resolvedName, c as Component)\n return\n }\n\n // Сознательно без throw — просто сообщаем в dev-режиме.\n \n console.warn('[granularity] component passed to createGranularity has no `install`, `name`, or `__name` — skipped.')\n}\n\nfunction installDirective(app: App, d: GranularityInstallableDirective): void {\n if ('install' in d && typeof d.install === 'function') {\n d.install(app)\n return\n }\n\n if ('name' in d && 'directive' in d) {\n app.directive(d.name, d.directive)\n return\n }\n\n // Сознательно без throw — согласовано с `installComponent`.\n \n console.warn('[granularity] directive passed to createGranularity has no `install` or `{ name, directive }` — skipped.')\n}\n\n/**\n * Применяет опции к переданному приложению. Экспортируется отдельно от фабрики —\n * удобно, когда плагин не нужен (например, в тестах).\n */\nexport function installGranularity(app: App, options: CreateGranularityOptions = {}): void {\n for (const c of options.components ?? [])\n installComponent(app, c)\n\n for (const d of options.directives ?? [])\n installDirective(app, d)\n\n for (const {key, value} of options.provides ?? [])\n app.provide(key as any, value)\n\n if (options.globalProperties) {\n for (const [key, value] of Object.entries(options.globalProperties))\n app.config.globalProperties[key] = value\n }\n}\n\n/**\n * Создаёт Vue-плагин `{ install }`, который при `app.use(...)` зарегистрирует переданные\n * компоненты, директивы и provide-значения. Сам модуль НЕ импортирует ни компонентов,\n * ни директив из пакета — всё приходит снаружи. Это сохраняет гранулярность:\n * бандлер увидит только те символы, которые вы реально передали.\n *\n * ```ts\n * import { createApp } from 'vue'\n * import { createGranularity } from '@feugene/granularity/vue'\n * import { GrButton } from '@feugene/granularity/components/GrButton'\n * import { GrInput } from '@feugene/granularity/components/GrInput'\n * import { vHotkey } from '@feugene/granularity/directives/hotkey'\n *\n * createApp(App)\n * .use(createGranularity({\n * // Достаточно передать сами компоненты — имя будет взято из `__name` (Vue SFC)\n * // или из `name`; можно также указать явно через `{ name, component }`.\n * components: [GrButton, GrInput],\n * directives: [{ name: 'hotkey', directive: vHotkey }],\n * }))\n * .mount('#app')\n * ```\n */\nexport function createGranularity(options: CreateGranularityOptions = {}): Plugin {\n return {\n install(app: App) {\n installGranularity(app, options)\n },\n }\n}\n"],"mappings":";;;;;;;;;;;;AAsDA,SAAgB,kBAAuC,WAAc,MAA+C;
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/vue/plugin.ts"],"sourcesContent":["import type {App, Component, Directive, Plugin} from 'vue'\n\n/**\n * Лёгкий контейнер, который может быть зарегистрирован в Vue:\n * - SFC-компонент (Vue сам компилирует `__name` из имени файла) — достаточно просто передать сам компонент,\n * - SFC-компонент с опциональным `install` (по аналогии с Element Plus / Naive UI),\n * - объект с собственным `install`,\n * - либо объект `{ name, component }`, если имя нужно задать явно.\n */\nexport type GranularityInstallableComponent =\n | (Component & { name?: string; __name?: string; install?: (app: App) => void })\n | { install: (app: App) => void }\n | { name: string; component: Component }\n\n/**\n * Директива — либо пара `{ name, directive }`, либо объект с `install`.\n */\nexport type GranularityInstallableDirective =\n | { name: string; directive: Directive }\n | { install: (app: App) => void }\n\nexport interface CreateGranularityOptions {\n /**\n * Список компонентов для глобальной регистрации.\n * Пакет сам по себе ничего не импортирует — пользователь передаёт сюда только те компоненты,\n * которые ему действительно нужны. За счёт этого tree-shaking остаётся полным.\n */\n components?: GranularityInstallableComponent[]\n /**\n * Список директив. Передавайте ровно те, что нужны, по аналогии с компонентами.\n */\n directives?: GranularityInstallableDirective[]\n /**\n * Произвольные `provide`-значения. Ключи могут быть `symbol` или строкой.\n * Пакет не навязывает конкретные ключи (например, i18n) — выбор за пользователем.\n */\n provides?: Array<{ key: string | symbol; value: unknown }>\n /**\n * Произвольные `app.config.globalProperties` — по умолчанию ничего не ставим.\n */\n globalProperties?: Record<string, unknown>\n}\n\n/**\n * Вспомогательная обёртка: превращает произвольный компонент в `GranularityInstallableComponent`\n * с явным именем регистрации.\n *\n * ```ts\n * import { GrButton } from '@feugene/granularity/components/GrButton'\n * import { defineInstallable } from '@feugene/granularity/vue'\n *\n * const installable = defineInstallable(GrButton, 'GrButton')\n * ```\n */\nexport function defineInstallable<T extends Component>(component: T, name: string): GranularityInstallableComponent {\n return {\n install(app: App) {\n app.component(name, component)\n },\n }\n}\n\nfunction installComponent(app: App, c: GranularityInstallableComponent): void {\n if (typeof (c as any).install === 'function') {\n ;(c as any).install(app)\n return\n }\n\n // Форма `{ name, component }` — явное указание имени для произвольного компонента.\n // Допускаем как object-компоненты (SFC / options), так и functional-компоненты.\n if (\n typeof (c as any).name === 'string'\n && (c as any).component\n && (typeof (c as any).component === 'object' || typeof (c as any).component === 'function')\n ) {\n const {name, component} = c as { name: string; component: Component }\n app.component(name, component)\n return\n }\n\n // SFC: Vue 3 компилирует имя компонента из имени файла в поле `__name`\n // (например, `GrButton.vue` → `__name: 'GrButton'`). Также поддерживаем явное `name`.\n const resolvedName\n = (c as Component & { name?: string }).name\n ?? (c as { __name?: string }).__name\n if (resolvedName) {\n app.component(resolvedName, c as Component)\n return\n }\n\n // Сознательно без throw — просто сообщаем в dev-режиме.\n \n console.warn('[granularity] component passed to createGranularity has no `install`, `name`, or `__name` — skipped.')\n}\n\nfunction installDirective(app: App, d: GranularityInstallableDirective): void {\n if ('install' in d && typeof d.install === 'function') {\n d.install(app)\n return\n }\n\n if ('name' in d && 'directive' in d) {\n app.directive(d.name, d.directive)\n return\n }\n\n // Сознательно без throw — согласовано с `installComponent`.\n \n console.warn('[granularity] directive passed to createGranularity has no `install` or `{ name, directive }` — skipped.')\n}\n\n/**\n * Применяет опции к переданному приложению. Экспортируется отдельно от фабрики —\n * удобно, когда плагин не нужен (например, в тестах).\n */\nexport function installGranularity(app: App, options: CreateGranularityOptions = {}): void {\n for (const c of options.components ?? [])\n installComponent(app, c)\n\n for (const d of options.directives ?? [])\n installDirective(app, d)\n\n for (const {key, value} of options.provides ?? [])\n app.provide(key as any, value)\n\n if (options.globalProperties) {\n for (const [key, value] of Object.entries(options.globalProperties))\n app.config.globalProperties[key] = value\n }\n}\n\n/**\n * Создаёт Vue-плагин `{ install }`, который при `app.use(...)` зарегистрирует переданные\n * компоненты, директивы и provide-значения. Сам модуль НЕ импортирует ни компонентов,\n * ни директив из пакета — всё приходит снаружи. Это сохраняет гранулярность:\n * бандлер увидит только те символы, которые вы реально передали.\n *\n * ```ts\n * import { createApp } from 'vue'\n * import { createGranularity } from '@feugene/granularity/vue'\n * import { GrButton } from '@feugene/granularity/components/GrButton'\n * import { GrInput } from '@feugene/granularity/components/GrInput'\n * import { vHotkey } from '@feugene/granularity/directives/hotkey'\n *\n * createApp(App)\n * .use(createGranularity({\n * // Достаточно передать сами компоненты — имя будет взято из `__name` (Vue SFC)\n * // или из `name`; можно также указать явно через `{ name, component }`.\n * components: [GrButton, GrInput],\n * directives: [{ name: 'hotkey', directive: vHotkey }],\n * }))\n * .mount('#app')\n * ```\n */\nexport function createGranularity(options: CreateGranularityOptions = {}): Plugin {\n return {\n install(app: App) {\n installGranularity(app, options)\n },\n }\n}\n"],"mappings":";;;;;;;;;;;;AAsDA,SAAgB,kBAAuC,WAAc,MAA+C;CAChH,OAAO,EACH,QAAQ,KAAU;EACd,IAAI,UAAU,MAAM,SAAS;CACjC,EACJ;AACJ;AAEA,SAAS,iBAAiB,KAAU,GAA0C;CAC1E,IAAI,OAAQ,EAAU,YAAY,YAAY;EACzC,EAAW,QAAQ,GAAG;EACvB;CACJ;CAIA,IACI,OAAQ,EAAU,SAAS,YACvB,EAAU,cACV,OAAQ,EAAU,cAAc,YAAY,OAAQ,EAAU,cAAc,aAClF;EACE,MAAM,EAAC,MAAM,cAAa;EAC1B,IAAI,UAAU,MAAM,SAAS;EAC7B;CACJ;CAIA,MAAM,eACC,EAAoC,QAC/B,EAA0B;CACtC,IAAI,cAAc;EACd,IAAI,UAAU,cAAc,CAAc;EAC1C;CACJ;CAIA,QAAQ,KAAK,sGAAsG;AACvH;AAEA,SAAS,iBAAiB,KAAU,GAA0C;CAC1E,IAAI,aAAa,KAAK,OAAO,EAAE,YAAY,YAAY;EACnD,EAAE,QAAQ,GAAG;EACb;CACJ;CAEA,IAAI,UAAU,KAAK,eAAe,GAAG;EACjC,IAAI,UAAU,EAAE,MAAM,EAAE,SAAS;EACjC;CACJ;CAIA,QAAQ,KAAK,0GAA0G;AAC3H;;;;;AAMA,SAAgB,mBAAmB,KAAU,UAAoC,CAAC,GAAS;CACvF,KAAK,MAAM,KAAK,QAAQ,cAAc,CAAC,GACnC,iBAAiB,KAAK,CAAC;CAE3B,KAAK,MAAM,KAAK,QAAQ,cAAc,CAAC,GACnC,iBAAiB,KAAK,CAAC;CAE3B,KAAK,MAAM,EAAC,KAAK,WAAU,QAAQ,YAAY,CAAC,GAC5C,IAAI,QAAQ,KAAY,KAAK;CAEjC,IAAI,QAAQ,kBACR,KAAK,MAAM,CAAC,KAAK,UAAU,OAAO,QAAQ,QAAQ,gBAAgB,GAC9D,IAAI,OAAO,iBAAiB,OAAO;AAE/C;;;;;;;;;;;;;;;;;;;;;;;;AAyBA,SAAgB,kBAAkB,UAAoC,CAAC,GAAW;CAC9E,OAAO,EACH,QAAQ,KAAU;EACd,mBAAmB,KAAK,OAAO;CACnC,EACJ;AACJ"}
|