@feugene/granularity 0.11.0 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/GrBadge.css +1 -1
- package/dist/GrFormFile.css +1 -1
- package/dist/GrToaster.css +1 -1
- package/dist/GrTree.css +1 -1
- package/dist/chunks/{config-ClhKPJvg.js → config-23WtUiAL.js} +1 -1
- package/dist/chunks/config-23WtUiAL.js.map +1 -0
- package/dist/chunks/config-8Pcutu1j.js.map +1 -0
- package/dist/chunks/{config-1uSYl98Y.js → config-B0i5r8kH.js} +1 -1
- package/dist/chunks/config-B0i5r8kH.js.map +1 -0
- package/dist/chunks/{config-BOlr7qw7.js → config-B5Rknzkd.js} +33 -39
- package/dist/chunks/config-B5Rknzkd.js.map +1 -0
- package/dist/chunks/config-B7W9VlZ7.js +5 -0
- package/dist/chunks/config-B7W9VlZ7.js.map +1 -0
- package/dist/chunks/config-BDSHekVC.js +84 -0
- package/dist/chunks/config-BDSHekVC.js.map +1 -0
- package/dist/chunks/config-BLHqZhy-.js.map +1 -0
- package/dist/chunks/{config-eYLZYOUS2.js → config-BMKNHFMD2.js} +15 -15
- package/dist/chunks/config-BMKNHFMD2.js.map +1 -0
- package/dist/chunks/config-BUHuGBik2.js.map +1 -0
- package/dist/chunks/config-BWiPnygb.js +5 -0
- package/dist/chunks/config-BWiPnygb.js.map +1 -0
- package/dist/chunks/config-BX1JTrkV.js.map +1 -0
- package/dist/chunks/config-BZFUM3Ky.js +75 -0
- package/dist/chunks/config-BZFUM3Ky.js.map +1 -0
- package/dist/chunks/{config-DUcu1D68.js → config-BmNT0Fmx.js} +2 -2
- package/dist/chunks/config-BmNT0Fmx.js.map +1 -0
- package/dist/chunks/{config-C49QUoJL.js → config-BvVq2gbd.js} +1 -1
- package/dist/chunks/{config-C49QUoJL.js.map → config-BvVq2gbd.js.map} +1 -1
- package/dist/chunks/{config-CrG1XiE7.js → config-C4hJxXDa.js} +5 -5
- package/dist/chunks/config-C4hJxXDa.js.map +1 -0
- package/dist/chunks/config-CB4RVt9M.js +66 -0
- package/dist/chunks/config-CB4RVt9M.js.map +1 -0
- package/dist/chunks/config-COE_vZ-l.js +52 -0
- package/dist/chunks/config-COE_vZ-l.js.map +1 -0
- package/dist/chunks/{config-CziwTDDL.js → config-CPdmr7tC.js} +1 -1
- package/dist/chunks/{config-CziwTDDL.js.map → config-CPdmr7tC.js.map} +1 -1
- package/dist/chunks/{config-BIRO0vDJ2.js → config-DPDFYzIa.js} +2 -2
- package/dist/chunks/config-DPDFYzIa.js.map +1 -0
- package/dist/chunks/{config-DnvPqu4g.js → config-DRKXJ9PW2.js} +1 -1
- package/dist/chunks/config-DRKXJ9PW2.js.map +1 -0
- package/dist/chunks/config-DToHb81g.js +45 -0
- package/dist/chunks/config-DToHb81g.js.map +1 -0
- package/dist/chunks/{config-jBp9wVv-.js → config-D_myOZbA.js} +1 -1
- package/dist/chunks/{config-jBp9wVv-.js.map → config-D_myOZbA.js.map} +1 -1
- package/dist/chunks/{config-D_R56_gT.js → config-Dg_6FTvJ.js} +1 -1
- package/dist/chunks/config-Dg_6FTvJ.js.map +1 -0
- package/dist/chunks/config-Dlm49Jp5.js +5 -0
- package/dist/chunks/config-Dlm49Jp5.js.map +1 -0
- package/dist/chunks/config-DpqOnJiz.js.map +1 -0
- package/dist/chunks/config-Dqy0rPPO2.js.map +1 -0
- package/dist/chunks/config-Droqn55j.js +8 -0
- package/dist/chunks/config-Droqn55j.js.map +1 -0
- package/dist/chunks/{config-C4snOIXg.js → config-KXuionN3.js} +1 -1
- package/dist/chunks/{config-C4snOIXg.js.map → config-KXuionN3.js.map} +1 -1
- package/dist/chunks/config-LGrZIdaZ.js.map +1 -0
- package/dist/chunks/{config-DezDih8_.js → config-LqDC_rvp.js} +2 -2
- package/dist/chunks/config-LqDC_rvp.js.map +1 -0
- package/dist/chunks/config-QaIc_gRa2.js.map +1 -0
- package/dist/chunks/config-U4m9PSql2.js.map +1 -0
- package/dist/chunks/{config-B7IIWGt_2.js → config-XmTv4pnI.js} +2 -2
- package/dist/chunks/config-XmTv4pnI.js.map +1 -0
- package/dist/chunks/config-eXB87DOi.js +9 -0
- package/dist/chunks/config-eXB87DOi.js.map +1 -0
- package/dist/chunks/{config-C7NpDrfO.js → config-gZWR75Bh2.js} +1 -1
- package/dist/chunks/config-gZWR75Bh2.js.map +1 -0
- package/dist/chunks/config-ipvU0lzP.js.map +1 -0
- package/dist/chunks/config-xR4XVmcy2.js.map +1 -0
- package/dist/chunks/context-Bfrgsluh.js +9 -0
- package/dist/chunks/context-Bfrgsluh.js.map +1 -0
- package/dist/chunks/context-DdNIxa1w.js +9 -0
- package/dist/chunks/context-DdNIxa1w.js.map +1 -0
- package/dist/chunks/context-DfWYCBB-.js +129 -0
- package/dist/chunks/context-DfWYCBB-.js.map +1 -0
- package/dist/chunks/{en-BdtiS2d3.js → en-Cr6EkG8c.js} +52 -4
- package/dist/chunks/en-Cr6EkG8c.js.map +1 -0
- package/dist/chunks/{es-DBhctWg-.js → es-DuYb1Qju.js} +3 -3
- package/dist/chunks/{es-DBhctWg-.js.map → es-DuYb1Qju.js.map} +1 -1
- package/dist/chunks/{es-BGRMZbe9.js → es-i08e9Sdo.js} +52 -4
- package/dist/chunks/es-i08e9Sdo.js.map +1 -0
- package/dist/chunks/{grBadgeStyles-DrycBuKT.js → grBadgeStyles-D3dFjr_N.js} +12 -12
- package/dist/chunks/grBadgeStyles-D3dFjr_N.js.map +1 -0
- package/dist/chunks/{grButtonStyles-C7Yga_Q1.js → grButtonStyles-DRBgDmOp.js} +28 -28
- package/dist/chunks/grButtonStyles-DRBgDmOp.js.map +1 -0
- package/dist/chunks/{grDropdownStyles-B_-DKytw.js → grDropdownStyles-HBPkghVr.js} +2 -2
- package/dist/chunks/{grDropdownStyles-B_-DKytw.js.map → grDropdownStyles-HBPkghVr.js.map} +1 -1
- package/dist/chunks/grModalEscStack-BXk-9mv7.js +43 -0
- package/dist/chunks/grModalEscStack-BXk-9mv7.js.map +1 -0
- package/dist/chunks/{grModalStyles-DWd3i05Q.js → grModalStyles-D8-shx9A.js} +1 -1
- package/dist/chunks/grModalStyles-D8-shx9A.js.map +1 -0
- package/dist/chunks/{grSelectStyles-CLK5hRd3.js → grSelectStyles-CwMUQrBZ.js} +12 -12
- package/dist/chunks/grSelectStyles-CwMUQrBZ.js.map +1 -0
- package/dist/chunks/{grStyle-Blc9otAx.js → grStyle-CdvxTXPH.js} +2 -2
- package/dist/chunks/grStyle-CdvxTXPH.js.map +1 -0
- package/dist/chunks/{granularityI18n-DoV7Ca2m.js → granularityI18n-SH0I--GW.js} +1 -1
- package/dist/chunks/{granularityI18n-DoV7Ca2m.js.map → granularityI18n-SH0I--GW.js.map} +1 -1
- package/dist/chunks/{ru-BFCnOiML.js → ru-B5XOOYZt.js} +52 -4
- package/dist/chunks/ru-B5XOOYZt.js.map +1 -0
- package/dist/chunks/{safelist-Do2RtzLB.js → safelist-BvO8HPnE.js} +1 -1
- package/dist/chunks/{safelist-Do2RtzLB.js.map → safelist-BvO8HPnE.js.map} +1 -1
- package/dist/chunks/shared-D-v9lit0.js +188 -0
- package/dist/chunks/shared-D-v9lit0.js.map +1 -0
- package/dist/chunks/{transition-TLFw4KBn.js → useScrollLock-K7kaP2Ud.js} +52 -1
- package/dist/chunks/useScrollLock-K7kaP2Ud.js.map +1 -0
- package/dist/components/GrAlert/chunks/GrAlert-B9gmpoPC.js +251 -0
- package/dist/components/GrAlert/chunks/GrAlert-B9gmpoPC.js.map +1 -0
- package/dist/components/GrAlert/index.js +2 -2
- package/dist/components/GrAutocomplete/chunks/GrAutocomplete-BVLoQ5tZ.js +499 -0
- package/dist/components/GrAutocomplete/chunks/GrAutocomplete-BVLoQ5tZ.js.map +1 -0
- package/dist/components/GrAutocomplete/index.js +3 -0
- package/dist/components/GrAvatar/chunks/{GrAvatar-96CpTCq5.js → GrAvatar-CTOUVBF7.js} +1 -1
- package/dist/components/GrAvatar/chunks/GrAvatar-CTOUVBF7.js.map +1 -0
- package/dist/components/GrAvatar/index.js +1 -1
- package/dist/components/GrBadge/chunks/{GrBadge-B77XlaqE.js → GrBadge-D1jefy4S.js} +12 -8
- package/dist/components/GrBadge/chunks/GrBadge-D1jefy4S.js.map +1 -0
- package/dist/components/GrBadge/index.js +2 -2
- package/dist/components/GrBadgeWrap/chunks/{GrBadgeWrap-CcktMOdg.js → GrBadgeWrap-DWDxHdiQ.js} +1 -1
- package/dist/components/GrBadgeWrap/chunks/GrBadgeWrap-DWDxHdiQ.js.map +1 -0
- package/dist/components/GrBadgeWrap/index.js +1 -1
- package/dist/components/GrBottomNav/chunks/{GrBottomNav-usuMgG8_.js → GrBottomNav-vSE4LXmk.js} +2 -2
- package/dist/components/GrBottomNav/chunks/GrBottomNav-vSE4LXmk.js.map +1 -0
- package/dist/components/GrBottomNav/index.js +1 -1
- package/dist/components/GrButton/chunks/{GrButton-BlffdeJr.js → GrButton-DCi4CUpo.js} +18 -14
- package/dist/components/GrButton/chunks/GrButton-DCi4CUpo.js.map +1 -0
- package/dist/components/GrButton/index.js +4 -4
- package/dist/components/GrCard/chunks/{GrCard-DUNMkuHW.js → GrCard-CxCjyHMb.js} +1 -1
- package/dist/components/GrCard/chunks/GrCard-CxCjyHMb.js.map +1 -0
- package/dist/components/GrCard/index.js +1 -1
- package/dist/components/GrCheckbox/chunks/{GrCheckbox-DJhzZZdO.js → GrCheckbox-BbIDRXtl.js} +5 -5
- package/dist/components/GrCheckbox/chunks/GrCheckbox-BbIDRXtl.js.map +1 -0
- package/dist/components/GrCheckbox/index.js +1 -1
- package/dist/components/GrCollapse/chunks/{GrCollapse-CPPLh_xU.js → GrCollapse-DApXztn8.js} +6 -6
- package/dist/components/GrCollapse/chunks/GrCollapse-DApXztn8.js.map +1 -0
- package/dist/components/GrCollapse/index.js +2 -2
- package/dist/components/GrCommandPalette/chunks/GrCommandPalette-6OyvNbek.js +410 -0
- package/dist/components/GrCommandPalette/chunks/GrCommandPalette-6OyvNbek.js.map +1 -0
- package/dist/components/GrCommandPalette/index.js +3 -0
- package/dist/components/GrConfigProvider/chunks/GrConfigProvider-BtyeBGm8.js +57 -0
- package/dist/components/GrConfigProvider/chunks/GrConfigProvider-BtyeBGm8.js.map +1 -0
- package/dist/components/GrConfigProvider/index.js +4 -0
- package/dist/components/GrConfirmDialog/chunks/{GrConfirmDialog-BWYKCsHd.js → GrConfirmDialog-e4120mWw.js} +5 -5
- package/dist/components/GrConfirmDialog/chunks/GrConfirmDialog-e4120mWw.js.map +1 -0
- package/dist/components/GrConfirmDialog/index.js +1 -1
- package/dist/components/GrDataTable/chunks/GrDataTable-C1CzxV0p.js +307 -0
- package/dist/components/GrDataTable/chunks/GrDataTable-C1CzxV0p.js.map +1 -0
- package/dist/components/GrDataTable/index.js +2 -2
- package/dist/components/GrDialog/chunks/{GrDialog-5DAS-1Lb.js → GrDialog-BPMvDHOz.js} +6 -6
- package/dist/components/GrDialog/chunks/GrDialog-BPMvDHOz.js.map +1 -0
- package/dist/components/GrDialog/index.js +1 -1
- package/dist/components/GrDialogService/chunks/{GrDialogService-DY_fmaMu.js → GrDialogService-CYXCTGm3.js} +36 -11
- package/dist/components/GrDialogService/chunks/GrDialogService-CYXCTGm3.js.map +1 -0
- package/dist/components/GrDialogService/index.js +2 -2
- package/dist/components/GrDivider/chunks/GrDivider-BdENZ1w0.js +54 -0
- package/dist/components/GrDivider/chunks/GrDivider-BdENZ1w0.js.map +1 -0
- package/dist/components/GrDivider/index.js +3 -0
- package/dist/components/GrDrawer/chunks/{GrDrawer-D1kzsjXN.js → GrDrawer-KevdZ5BB.js} +41 -17
- package/dist/components/GrDrawer/chunks/GrDrawer-KevdZ5BB.js.map +1 -0
- package/dist/components/GrDrawer/index.js +2 -2
- package/dist/components/GrDropdown/chunks/{GrDropdown-BXb5Cxxf.js → GrDropdown-BKoy8hm-.js} +91 -5
- package/dist/components/GrDropdown/chunks/GrDropdown-BKoy8hm-.js.map +1 -0
- package/dist/components/GrDropdown/index.js +2 -2
- package/dist/components/GrDropdownMenu/chunks/{GrDropdownMenu-DFEJLPcV.js → GrDropdownMenu-zCatXzmt.js} +11 -11
- package/dist/components/GrDropdownMenu/chunks/GrDropdownMenu-zCatXzmt.js.map +1 -0
- package/dist/components/GrDropdownMenu/index.js +1 -1
- package/dist/components/GrEmptyState/chunks/{GrEmptyState-CA3BiTV7.js → GrEmptyState-CNb0BzjG.js} +3 -3
- package/dist/components/GrEmptyState/chunks/GrEmptyState-CNb0BzjG.js.map +1 -0
- package/dist/components/GrEmptyState/index.js +1 -1
- package/dist/components/GrFileUpload/chunks/{GrFileUpload-DvWPpiJS.js → GrFileUpload-CnLgUGDF.js} +12 -12
- package/dist/components/GrFileUpload/chunks/GrFileUpload-CnLgUGDF.js.map +1 -0
- package/dist/components/GrFileUpload/index.js +1 -1
- package/dist/components/GrForm/chunks/GrForm-CdaFjcyl.js +234 -0
- package/dist/components/GrForm/chunks/GrForm-CdaFjcyl.js.map +1 -0
- package/dist/components/GrForm/index.js +4 -0
- package/dist/components/GrFormField/chunks/GrFormField-CXCDBd99.js +100 -0
- package/dist/components/GrFormField/chunks/GrFormField-CXCDBd99.js.map +1 -0
- package/dist/components/GrFormField/index.js +3 -2
- package/dist/components/GrFormFile/chunks/{GrFormFile-CXcqqdvV.js → GrFormFile-CqacSbUl.js} +9 -9
- package/dist/components/GrFormFile/chunks/GrFormFile-CqacSbUl.js.map +1 -0
- package/dist/components/GrFormFile/index.js +1 -1
- package/dist/components/GrFormSection/chunks/{GrFormSection-Ce21jcgo.js → GrFormSection-C3w9DQJf.js} +1 -1
- package/dist/components/GrFormSection/chunks/GrFormSection-C3w9DQJf.js.map +1 -0
- package/dist/components/GrFormSection/index.js +1 -1
- package/dist/components/GrImageViewer/chunks/{GrImageViewer-OCUIrNh2.js → GrImageViewer-DDLJkvIU.js} +312 -223
- package/dist/components/GrImageViewer/chunks/GrImageViewer-DDLJkvIU.js.map +1 -0
- package/dist/components/GrImageViewer/index.js +1 -1
- package/dist/components/GrInput/chunks/GrInput-C1VBL0dg.js +337 -0
- package/dist/components/GrInput/chunks/GrInput-C1VBL0dg.js.map +1 -0
- package/dist/components/GrInput/index.js +2 -2
- package/dist/components/GrInputTag/chunks/{GrInputTag-zMgFqp2g.js → GrInputTag-BMk9jm42.js} +6 -6
- package/dist/components/GrInputTag/chunks/GrInputTag-BMk9jm42.js.map +1 -0
- package/dist/components/GrInputTag/index.js +2 -2
- package/dist/components/GrKbd/chunks/GrKbd-DTspwtoN.js +22 -0
- package/dist/components/GrKbd/chunks/GrKbd-DTspwtoN.js.map +1 -0
- package/dist/components/GrKbd/index.js +3 -0
- package/dist/components/GrLink/chunks/{GrLink-CYUe-Q8k.js → GrLink-BP0YrnL9.js} +1 -1
- package/dist/components/GrLink/chunks/{GrLink-CYUe-Q8k.js.map → GrLink-BP0YrnL9.js.map} +1 -1
- package/dist/components/GrLink/index.js +2 -2
- package/dist/components/GrList/chunks/{GrList-Dx772Ns4.js → GrList-5RA-tZzE.js} +3 -3
- package/dist/components/GrList/chunks/GrList-5RA-tZzE.js.map +1 -0
- package/dist/components/GrList/index.js +1 -1
- package/dist/components/GrLoading/chunks/{GrLoading--X_7rdbb.js → GrLoading-fRDtVfi7.js} +3 -3
- package/dist/components/GrLoading/chunks/GrLoading-fRDtVfi7.js.map +1 -0
- package/dist/components/GrLoading/index.js +2 -2
- package/dist/components/GrModal/chunks/{GrModal-BkjW9jZS.js → GrModal-BTu1-5eY.js} +4 -57
- package/dist/components/GrModal/chunks/GrModal-BTu1-5eY.js.map +1 -0
- package/dist/components/GrModal/index.js +3 -3
- package/dist/components/GrNavbar/chunks/{GrNavbar-DW3MiIIf.js → GrNavbar-keKT_mIM.js} +3 -3
- package/dist/components/GrNavbar/chunks/GrNavbar-keKT_mIM.js.map +1 -0
- package/dist/components/GrNavbar/index.js +1 -1
- package/dist/components/GrNumberInput/chunks/{GrNumberInput-CldPIWQx.js → GrNumberInput-l9ZOHG9D.js} +112 -28
- package/dist/components/GrNumberInput/chunks/GrNumberInput-l9ZOHG9D.js.map +1 -0
- package/dist/components/GrNumberInput/index.js +2 -2
- package/dist/components/GrPagination/chunks/{GrPagination-Bu9wv6it.js → GrPagination-C5Y69CuK.js} +59 -16
- package/dist/components/GrPagination/chunks/GrPagination-C5Y69CuK.js.map +1 -0
- package/dist/components/GrPagination/index.js +1 -1
- package/dist/components/GrProgressBar/chunks/{GrProgressBar-CC3z-Zqp.js → GrProgressBar-Dqg4Fj9S.js} +2 -2
- package/dist/components/GrProgressBar/chunks/GrProgressBar-Dqg4Fj9S.js.map +1 -0
- package/dist/components/GrProgressBar/index.js +2 -2
- package/dist/components/GrPromptDialog/chunks/{GrPromptDialog-TmWXbpEP.js → GrPromptDialog-DNUjRVB9.js} +7 -7
- package/dist/components/GrPromptDialog/chunks/GrPromptDialog-DNUjRVB9.js.map +1 -0
- package/dist/components/GrPromptDialog/index.js +2 -2
- package/dist/components/GrRadio/chunks/{GrRadio-CPTixXaY.js → GrRadio-DlhxPGqf.js} +5 -7
- package/dist/components/GrRadio/chunks/GrRadio-DlhxPGqf.js.map +1 -0
- package/dist/components/GrRadio/index.js +2 -2
- package/dist/components/GrRadioGroup/chunks/{GrRadioGroup-vKZCbkCp.js → GrRadioGroup-BXt9iw4q.js} +7 -5
- package/dist/components/GrRadioGroup/chunks/GrRadioGroup-BXt9iw4q.js.map +1 -0
- package/dist/components/GrRadioGroup/index.js +2 -2
- package/dist/components/GrRating/chunks/GrRating-Co-3Rk4h.js +241 -0
- package/dist/components/GrRating/chunks/GrRating-Co-3Rk4h.js.map +1 -0
- package/dist/components/GrRating/index.js +3 -0
- package/dist/components/GrResponseErrorBanner/chunks/{GrResponseErrorBanner-BWJNe2gr.js → GrResponseErrorBanner-2CvM7Z08.js} +2 -2
- package/dist/components/GrResponseErrorBanner/chunks/{GrResponseErrorBanner-BWJNe2gr.js.map → GrResponseErrorBanner-2CvM7Z08.js.map} +1 -1
- package/dist/components/GrResponseErrorBanner/chunks/{GrResponseErrorBanner-Cdu9ekK9.js → GrResponseErrorBanner-C8NGx8pE.js} +3 -3
- package/dist/components/GrResponseErrorBanner/chunks/{GrResponseErrorBanner-Cdu9ekK9.js.map → GrResponseErrorBanner-C8NGx8pE.js.map} +1 -1
- package/dist/components/GrResponseErrorBanner/index.js +2 -2
- package/dist/components/GrSegmented/chunks/{GrSegmented-C1y0UXpQ.js → GrSegmented-CTd3n4PA.js} +14 -11
- package/dist/components/GrSegmented/chunks/GrSegmented-CTd3n4PA.js.map +1 -0
- package/dist/components/GrSegmented/index.js +2 -2
- package/dist/components/GrSelect/chunks/{GrSelect-RShK21lK.js → GrSelect-Dn3FgJ3Z.js} +293 -87
- package/dist/components/GrSelect/chunks/GrSelect-Dn3FgJ3Z.js.map +1 -0
- package/dist/components/GrSelect/index.js +2 -2
- package/dist/components/GrSidebar/chunks/{GrSidebar-DkWozzwA.js → GrSidebar-cvnzBfj3.js} +7 -7
- package/dist/components/GrSidebar/chunks/GrSidebar-cvnzBfj3.js.map +1 -0
- package/dist/components/GrSidebar/index.js +1 -1
- package/dist/components/GrSkeleton/chunks/{GrSkeleton-DsN-_CDZ.js → GrSkeleton-BucA5F4J.js} +1 -1
- package/dist/components/GrSkeleton/chunks/GrSkeleton-BucA5F4J.js.map +1 -0
- package/dist/components/GrSkeleton/index.js +2 -2
- package/dist/components/GrSlider/chunks/GrSlider-CzzJ3bD-.js +286 -0
- package/dist/components/GrSlider/chunks/GrSlider-CzzJ3bD-.js.map +1 -0
- package/dist/components/GrSlider/index.js +3 -0
- package/dist/components/GrStatistic/chunks/GrStatistic-gHiAwrX5.js +128 -0
- package/dist/components/GrStatistic/chunks/GrStatistic-gHiAwrX5.js.map +1 -0
- package/dist/components/GrStatistic/index.js +3 -0
- package/dist/components/GrSwitch/chunks/{GrSwitch-DAioyccZ.js → GrSwitch-CJdRvS0s.js} +16 -7
- package/dist/components/GrSwitch/chunks/GrSwitch-CJdRvS0s.js.map +1 -0
- package/dist/components/GrSwitch/index.js +2 -2
- package/dist/components/GrTabPanels/chunks/GrTabPanels-DeEMgb_y.js +68 -0
- package/dist/components/GrTabPanels/chunks/GrTabPanels-DeEMgb_y.js.map +1 -0
- package/dist/components/GrTabPanels/index.js +3 -0
- package/dist/components/GrTable/chunks/{GrTable-Db3hRnKA.js → GrTable-sNvsA8wa.js} +24 -11
- package/dist/components/GrTable/chunks/GrTable-sNvsA8wa.js.map +1 -0
- package/dist/components/GrTable/index.js +2 -2
- package/dist/components/GrTabs/chunks/{GrTabs-Z-FDJUr_.js → GrTabs-BqTak0SR.js} +9 -4
- package/dist/components/GrTabs/chunks/GrTabs-BqTak0SR.js.map +1 -0
- package/dist/components/GrTabs/index.js +2 -2
- package/dist/components/GrTextarea/chunks/{GrTextarea-D56YxhKq.js → GrTextarea-DIYBAPpP.js} +16 -6
- package/dist/components/GrTextarea/chunks/GrTextarea-DIYBAPpP.js.map +1 -0
- package/dist/components/GrTextarea/index.js +2 -2
- package/dist/components/GrToaster/chunks/{GrToaster-eI8YvnIo.js → GrToaster-BVHjIHcM.js} +52 -11
- package/dist/components/GrToaster/chunks/GrToaster-BVHjIHcM.js.map +1 -0
- package/dist/components/GrToaster/index.js +2 -2
- package/dist/components/GrTooltip/chunks/{GrTooltip-BeyZ8ssR.js → GrTooltip-BMKH2lIx.js} +3 -3
- package/dist/components/GrTooltip/chunks/GrTooltip-BMKH2lIx.js.map +1 -0
- package/dist/components/GrTooltip/index.js +1 -1
- package/dist/components/GrTree/chunks/{GrTree-D3ODe2dB.js → GrTree-_12ChXRQ.js} +108 -9
- package/dist/components/GrTree/chunks/GrTree-_12ChXRQ.js.map +1 -0
- package/dist/components/GrTree/index.js +2 -2
- package/dist/components/GrTreeSelect/chunks/{GrTreeSelect-B2xBKs5Q.js → GrTreeSelect-CdaLG7Xq.js} +10 -10
- package/dist/components/GrTreeSelect/chunks/GrTreeSelect-CdaLG7Xq.js.map +1 -0
- package/dist/components/GrTreeSelect/index.js +2 -2
- package/dist/composables/useToast.js +3 -1
- package/dist/composables/useToast.js.map +1 -1
- package/dist/directives/loading.js +1 -1
- package/dist/granular-provider-node.js +6 -6
- package/dist/granular-provider-node.js.map +1 -1
- package/dist/granular-provider.js +1 -1
- package/dist/i18n/all.js +1 -1
- package/dist/i18n/index.js +1 -1
- package/dist/index.js +112 -87
- package/dist/index.js.map +1 -1
- package/dist/styles/base.css +30 -8
- package/dist/styles/index.css +6 -3
- package/dist/styles/preflight.css +8 -4
- package/dist/styles/themes/dark.css +52 -40
- package/dist/styles/themes/light.css +70 -45
- package/dist/styles/tokens.css +20 -20
- package/dist/types/src/components/GrAlert/GrAlert.vue.d.ts +26 -14
- package/dist/types/src/components/GrAlert/defaults.d.ts +17 -0
- package/dist/types/src/components/GrAlert/grAlertStyles.d.ts +55 -0
- package/dist/types/src/components/GrAlert/index.d.ts +4 -1
- package/dist/types/src/components/GrAutocomplete/GrAutocomplete.vue.d.ts +153 -0
- package/dist/types/src/components/GrAutocomplete/config.d.ts +1 -0
- package/dist/types/src/components/GrAutocomplete/defaults.d.ts +15 -0
- package/dist/types/src/components/GrAutocomplete/grAutocompleteStyles.d.ts +27 -0
- package/dist/types/src/components/GrAutocomplete/index.d.ts +6 -0
- package/dist/types/src/components/GrAutocomplete/safelist.d.ts +1 -0
- package/dist/types/src/components/GrAvatar/GrAvatar.vue.d.ts +1 -1
- package/dist/types/src/components/GrBadge/GrBadge.vue.d.ts +7 -7
- package/dist/types/src/components/GrBadge/defaults.d.ts +15 -0
- package/dist/types/src/components/GrBadge/index.d.ts +1 -0
- package/dist/types/src/components/GrBadgeWrap/GrBadgeWrap.vue.d.ts +1 -1
- package/dist/types/src/components/GrButton/GrButton.vue.d.ts +12 -12
- package/dist/types/src/components/GrButton/defaults.d.ts +25 -0
- package/dist/types/src/components/GrButton/grButtonStyles.d.ts +2 -2
- package/dist/types/src/components/GrButton/index.d.ts +1 -0
- package/dist/types/src/components/GrCheckbox/GrCheckbox.vue.d.ts +4 -4
- package/dist/types/src/components/GrCollapse/GrCollapse.vue.d.ts +2 -2
- package/dist/types/src/components/GrCollapse/GrCollapseItem.vue.d.ts +1 -1
- package/dist/types/src/components/GrCommandPalette/GrCommandPalette.vue.d.ts +128 -0
- package/dist/types/src/components/GrCommandPalette/config.d.ts +1 -0
- package/dist/types/src/components/GrCommandPalette/filtering.d.ts +35 -0
- package/dist/types/src/components/GrCommandPalette/grCommandPaletteStyles.d.ts +20 -0
- package/dist/types/src/components/GrCommandPalette/hotkey.d.ts +23 -0
- package/dist/types/src/components/GrCommandPalette/index.d.ts +6 -0
- package/dist/types/src/components/GrCommandPalette/safelist.d.ts +1 -0
- package/dist/types/src/components/GrConfigProvider/GrConfigProvider.vue.d.ts +59 -0
- package/dist/types/src/components/GrConfigProvider/config.d.ts +1 -0
- package/dist/types/src/components/GrConfigProvider/context.d.ts +131 -0
- package/dist/types/src/components/GrConfigProvider/index.d.ts +5 -0
- package/dist/types/src/components/GrConfirmDialog/GrConfirmDialog.vue.d.ts +2 -2
- package/dist/types/src/components/GrDataTable/GrDataTable.vue.d.ts +48 -4
- package/dist/types/src/components/GrDialog/GrDialog.vue.d.ts +1 -1
- package/dist/types/src/components/GrDialogService/store.d.ts +18 -0
- package/dist/types/src/components/GrDivider/GrDivider.vue.d.ts +58 -0
- package/dist/types/src/components/GrDivider/config.d.ts +1 -0
- package/dist/types/src/components/GrDivider/index.d.ts +4 -0
- package/dist/types/src/components/GrDrawer/GrDrawer.vue.d.ts +5 -5
- package/dist/types/src/components/GrDropdown/GrDropdown.vue.d.ts +8 -1
- package/dist/types/src/components/GrDropdownMenu/GrDropdownMenu.vue.d.ts +7 -1
- package/dist/types/src/components/GrDropdownMenu/GrDropdownMenuItem.vue.d.ts +1 -1
- package/dist/types/src/components/GrFileUpload/GrFileUpload.vue.d.ts +3 -3
- package/dist/types/src/components/GrForm/GrForm.vue.d.ts +93 -0
- package/dist/types/src/components/GrForm/config.d.ts +1 -0
- package/dist/types/src/components/GrForm/context.d.ts +27 -0
- package/dist/types/src/components/GrForm/index.d.ts +6 -0
- package/dist/types/src/components/GrForm/validation.d.ts +52 -0
- package/dist/types/src/components/GrFormField/GrFormField.vue.d.ts +25 -2
- package/dist/types/src/components/GrFormField/context.d.ts +20 -0
- package/dist/types/src/components/GrFormField/index.d.ts +1 -0
- package/dist/types/src/components/GrFormFile/GrFormFile.vue.d.ts +4 -4
- package/dist/types/src/components/GrImageViewer/GrImageViewer.vue.d.ts +7 -3
- package/dist/types/src/components/GrImageViewer/composables/useViewerKeyboard.d.ts +20 -0
- package/dist/types/src/components/GrImageViewer/composables/useWheelGesture.d.ts +16 -0
- package/dist/types/src/components/GrImageViewer/composables/useZoomPan.d.ts +50 -0
- package/dist/types/src/components/GrInput/GrInput.vue.d.ts +49 -10
- package/dist/types/src/components/GrInput/defaults.d.ts +18 -0
- package/dist/types/src/components/GrInput/grInputStyles.d.ts +1 -1
- package/dist/types/src/components/GrInput/index.d.ts +1 -0
- package/dist/types/src/components/GrInputTag/GrInputTag.vue.d.ts +3 -3
- package/dist/types/src/components/GrKbd/GrKbd.vue.d.ts +46 -0
- package/dist/types/src/components/GrKbd/config.d.ts +1 -0
- package/dist/types/src/components/GrKbd/index.d.ts +4 -0
- package/dist/types/src/components/GrLink/GrLink.vue.d.ts +3 -3
- package/dist/types/src/components/GrLink/grLinkStyles.d.ts +3 -3
- package/dist/types/src/components/GrModal/grModalStyles.d.ts +1 -1
- package/dist/types/src/components/GrNumberInput/GrNumberInput.vue.d.ts +25 -9
- package/dist/types/src/components/GrNumberInput/defaults.d.ts +14 -0
- package/dist/types/src/components/GrNumberInput/index.d.ts +1 -0
- package/dist/types/src/components/GrPagination/GrPagination.vue.d.ts +18 -0
- package/dist/types/src/components/GrPromptDialog/GrPromptDialog.vue.d.ts +4 -4
- package/dist/types/src/components/GrRadio/GrRadio.vue.d.ts +5 -5
- package/dist/types/src/components/GrRadio/defaults.d.ts +14 -0
- package/dist/types/src/components/GrRadio/grRadioStyles.d.ts +3 -3
- package/dist/types/src/components/GrRadio/index.d.ts +1 -0
- package/dist/types/src/components/GrRadioGroup/GrRadioGroup.vue.d.ts +4 -4
- package/dist/types/src/components/GrRadioGroup/defaults.d.ts +14 -0
- package/dist/types/src/components/GrRadioGroup/index.d.ts +1 -0
- package/dist/types/src/components/GrRating/GrRating.vue.d.ts +124 -0
- package/dist/types/src/components/GrRating/config.d.ts +1 -0
- package/dist/types/src/components/GrRating/defaults.d.ts +14 -0
- package/dist/types/src/components/GrRating/grRatingStyles.d.ts +21 -0
- package/dist/types/src/components/GrRating/index.d.ts +6 -0
- package/dist/types/src/components/GrRating/safelist.d.ts +1 -0
- package/dist/types/src/components/GrResponseErrorBanner/GrUploadErrorBanner.vue.d.ts +1 -1
- package/dist/types/src/components/GrSegmented/GrSegmented.vue.d.ts +7 -7
- package/dist/types/src/components/GrSegmented/defaults.d.ts +15 -0
- package/dist/types/src/components/GrSegmented/grSegmentedStyles.d.ts +1 -1
- package/dist/types/src/components/GrSegmented/index.d.ts +1 -0
- package/dist/types/src/components/GrSelect/GrSelect.vue.d.ts +57 -17
- package/dist/types/src/components/GrSelect/defaults.d.ts +17 -0
- package/dist/types/src/components/GrSelect/grSelectStyles.d.ts +3 -3
- package/dist/types/src/components/GrSelect/index.d.ts +1 -0
- package/dist/types/src/components/GrSidebar/GrSidebarItem.vue.d.ts +2 -2
- package/dist/types/src/components/GrSkeleton/GrSkeleton.vue.d.ts +1 -1
- package/dist/types/src/components/GrSlider/GrSlider.vue.d.ts +88 -0
- package/dist/types/src/components/GrSlider/config.d.ts +1 -0
- package/dist/types/src/components/GrSlider/defaults.d.ts +14 -0
- package/dist/types/src/components/GrSlider/grSliderStyles.d.ts +36 -0
- package/dist/types/src/components/GrSlider/index.d.ts +6 -0
- package/dist/types/src/components/GrSlider/safelist.d.ts +1 -0
- package/dist/types/src/components/GrStatistic/GrStatistic.vue.d.ts +116 -0
- package/dist/types/src/components/GrStatistic/config.d.ts +1 -0
- package/dist/types/src/components/GrStatistic/formatStatisticValue.d.ts +16 -0
- package/dist/types/src/components/GrStatistic/grStatisticStyles.d.ts +24 -0
- package/dist/types/src/components/GrStatistic/index.d.ts +6 -0
- package/dist/types/src/components/GrStatistic/safelist.d.ts +1 -0
- package/dist/types/src/components/GrSwitch/GrSwitch.vue.d.ts +4 -4
- package/dist/types/src/components/GrSwitch/defaults.d.ts +14 -0
- package/dist/types/src/components/GrSwitch/grSwitchStyles.d.ts +2 -2
- package/dist/types/src/components/GrSwitch/index.d.ts +1 -0
- package/dist/types/src/components/GrTabPanels/GrTabPanel.vue.d.ts +46 -0
- package/dist/types/src/components/GrTabPanels/GrTabPanels.vue.d.ts +51 -0
- package/dist/types/src/components/GrTabPanels/config.d.ts +5 -0
- package/dist/types/src/components/GrTabPanels/context.d.ts +9 -0
- package/dist/types/src/components/GrTabPanels/index.d.ts +6 -0
- package/dist/types/src/components/GrTable/GrTable.vue.d.ts +16 -0
- package/dist/types/src/components/GrTabs/GrTabs.vue.d.ts +6 -0
- package/dist/types/src/components/GrTextarea/GrTextarea.vue.d.ts +5 -5
- package/dist/types/src/components/GrToaster/GrToaster.vue.d.ts +19 -2
- package/dist/types/src/components/GrToaster/index.d.ts +1 -1
- package/dist/types/src/components/GrTooltip/GrTooltip.vue.d.ts +1 -1
- package/dist/types/src/components/GrTree/grTreeInteractionContext.d.ts +2 -0
- package/dist/types/src/components/GrTreeSelect/GrTreeSelect.vue.d.ts +1 -1
- package/dist/types/src/components/GrTreeSelect/grTreeSelectStyles.d.ts +1 -1
- package/dist/types/src/composables/internal/useScrollLock.d.ts +24 -0
- package/dist/types/src/composables/useToast.d.ts +24 -0
- package/dist/types/src/granular-provider/shared.d.ts +10 -0
- package/dist/types/src/i18n/messages/en.d.ts +84 -0
- package/dist/types/src/i18n/messages/es.d.ts +84 -0
- package/dist/types/src/i18n/messages/ru.d.ts +84 -0
- package/dist/types/src/index.d.ts +10 -0
- package/dist/web-types.json +1642 -356
- package/package.json +41 -1
- package/dist/chunks/config-1uSYl98Y.js.map +0 -1
- package/dist/chunks/config-8Pcutu1j2.js.map +0 -1
- package/dist/chunks/config-B7IIWGt_2.js.map +0 -1
- package/dist/chunks/config-BIRO0vDJ2.js.map +0 -1
- package/dist/chunks/config-BLHqZhy-2.js.map +0 -1
- package/dist/chunks/config-BOlr7qw7.js.map +0 -1
- package/dist/chunks/config-BUHuGBik.js.map +0 -1
- package/dist/chunks/config-BX1JTrkV2.js.map +0 -1
- package/dist/chunks/config-C7NpDrfO.js.map +0 -1
- package/dist/chunks/config-ClhKPJvg.js.map +0 -1
- package/dist/chunks/config-Cpi9Mh2J.js.map +0 -1
- package/dist/chunks/config-CrG1XiE7.js.map +0 -1
- package/dist/chunks/config-DUcu1D68.js.map +0 -1
- package/dist/chunks/config-D_R56_gT.js.map +0 -1
- package/dist/chunks/config-DezDih8_.js.map +0 -1
- package/dist/chunks/config-DnvPqu4g.js.map +0 -1
- package/dist/chunks/config-DpqOnJiz2.js.map +0 -1
- package/dist/chunks/config-LGrZIdaZ2.js.map +0 -1
- package/dist/chunks/config-QaIc_gRa.js.map +0 -1
- package/dist/chunks/config-U4m9PSql.js.map +0 -1
- package/dist/chunks/config-eYLZYOUS2.js.map +0 -1
- package/dist/chunks/config-ipvU0lzP2.js.map +0 -1
- package/dist/chunks/config-xR4XVmcy.js.map +0 -1
- package/dist/chunks/en-BdtiS2d3.js.map +0 -1
- package/dist/chunks/es-BGRMZbe9.js.map +0 -1
- package/dist/chunks/grBadgeStyles-DrycBuKT.js.map +0 -1
- package/dist/chunks/grButtonStyles-C7Yga_Q1.js.map +0 -1
- package/dist/chunks/grModalStyles-DWd3i05Q.js.map +0 -1
- package/dist/chunks/grSelectStyles-CLK5hRd3.js.map +0 -1
- package/dist/chunks/grStyle-Blc9otAx.js.map +0 -1
- package/dist/chunks/ru-BFCnOiML.js.map +0 -1
- package/dist/chunks/shared-ChvcQgDl.js +0 -168
- package/dist/chunks/shared-ChvcQgDl.js.map +0 -1
- package/dist/chunks/transition-TLFw4KBn.js.map +0 -1
- package/dist/components/GrAlert/chunks/GrAlert-DPJSU_fG.js +0 -163
- package/dist/components/GrAlert/chunks/GrAlert-DPJSU_fG.js.map +0 -1
- package/dist/components/GrAvatar/chunks/GrAvatar-96CpTCq5.js.map +0 -1
- package/dist/components/GrBadge/chunks/GrBadge-B77XlaqE.js.map +0 -1
- package/dist/components/GrBadgeWrap/chunks/GrBadgeWrap-CcktMOdg.js.map +0 -1
- package/dist/components/GrBottomNav/chunks/GrBottomNav-usuMgG8_.js.map +0 -1
- package/dist/components/GrButton/chunks/GrButton-BlffdeJr.js.map +0 -1
- package/dist/components/GrCard/chunks/GrCard-DUNMkuHW.js.map +0 -1
- package/dist/components/GrCheckbox/chunks/GrCheckbox-DJhzZZdO.js.map +0 -1
- package/dist/components/GrCollapse/chunks/GrCollapse-CPPLh_xU.js.map +0 -1
- package/dist/components/GrConfirmDialog/chunks/GrConfirmDialog-BWYKCsHd.js.map +0 -1
- package/dist/components/GrDataTable/chunks/GrDataTable-ptbARmJ3.js +0 -179
- package/dist/components/GrDataTable/chunks/GrDataTable-ptbARmJ3.js.map +0 -1
- package/dist/components/GrDialog/chunks/GrDialog-5DAS-1Lb.js.map +0 -1
- package/dist/components/GrDialogService/chunks/GrDialogService-DY_fmaMu.js.map +0 -1
- package/dist/components/GrDrawer/chunks/GrDrawer-D1kzsjXN.js.map +0 -1
- package/dist/components/GrDropdown/chunks/GrDropdown-BXb5Cxxf.js.map +0 -1
- package/dist/components/GrDropdownMenu/chunks/GrDropdownMenu-DFEJLPcV.js.map +0 -1
- package/dist/components/GrEmptyState/chunks/GrEmptyState-CA3BiTV7.js.map +0 -1
- package/dist/components/GrFileUpload/chunks/GrFileUpload-DvWPpiJS.js.map +0 -1
- package/dist/components/GrFormField/chunks/GrFormField-BujNQrw8.js +0 -35
- package/dist/components/GrFormField/chunks/GrFormField-BujNQrw8.js.map +0 -1
- package/dist/components/GrFormFile/chunks/GrFormFile-CXcqqdvV.js.map +0 -1
- package/dist/components/GrFormSection/chunks/GrFormSection-Ce21jcgo.js.map +0 -1
- package/dist/components/GrImageViewer/chunks/GrImageViewer-OCUIrNh2.js.map +0 -1
- package/dist/components/GrInput/chunks/GrInput-C8pOJgCi.js +0 -188
- package/dist/components/GrInput/chunks/GrInput-C8pOJgCi.js.map +0 -1
- package/dist/components/GrInputTag/chunks/GrInputTag-zMgFqp2g.js.map +0 -1
- package/dist/components/GrList/chunks/GrList-Dx772Ns4.js.map +0 -1
- package/dist/components/GrLoading/chunks/GrLoading--X_7rdbb.js.map +0 -1
- package/dist/components/GrModal/chunks/GrModal-BkjW9jZS.js.map +0 -1
- package/dist/components/GrNavbar/chunks/GrNavbar-DW3MiIIf.js.map +0 -1
- package/dist/components/GrNumberInput/chunks/GrNumberInput-CldPIWQx.js.map +0 -1
- package/dist/components/GrPagination/chunks/GrPagination-Bu9wv6it.js.map +0 -1
- package/dist/components/GrProgressBar/chunks/GrProgressBar-CC3z-Zqp.js.map +0 -1
- package/dist/components/GrPromptDialog/chunks/GrPromptDialog-TmWXbpEP.js.map +0 -1
- package/dist/components/GrRadio/chunks/GrRadio-CPTixXaY.js.map +0 -1
- package/dist/components/GrRadioGroup/chunks/GrRadioGroup-vKZCbkCp.js.map +0 -1
- package/dist/components/GrSegmented/chunks/GrSegmented-C1y0UXpQ.js.map +0 -1
- package/dist/components/GrSelect/chunks/GrSelect-RShK21lK.js.map +0 -1
- package/dist/components/GrSidebar/chunks/GrSidebar-DkWozzwA.js.map +0 -1
- package/dist/components/GrSkeleton/chunks/GrSkeleton-DsN-_CDZ.js.map +0 -1
- package/dist/components/GrSwitch/chunks/GrSwitch-DAioyccZ.js.map +0 -1
- package/dist/components/GrTable/chunks/GrTable-Db3hRnKA.js.map +0 -1
- package/dist/components/GrTabs/chunks/GrTabs-Z-FDJUr_.js.map +0 -1
- package/dist/components/GrTextarea/chunks/GrTextarea-D56YxhKq.js.map +0 -1
- package/dist/components/GrToaster/chunks/GrToaster-eI8YvnIo.js.map +0 -1
- package/dist/components/GrTooltip/chunks/GrTooltip-BeyZ8ssR.js.map +0 -1
- package/dist/components/GrTree/chunks/GrTree-D3ODe2dB.js.map +0 -1
- package/dist/components/GrTreeSelect/chunks/GrTreeSelect-B2xBKs5Q.js.map +0 -1
- package/dist/chunks/{config-8Pcutu1j2.js → config-8Pcutu1j.js} +0 -0
- package/dist/chunks/{config-BLHqZhy-2.js → config-BLHqZhy-.js} +0 -0
- package/dist/chunks/{config-BUHuGBik.js → config-BUHuGBik2.js} +0 -0
- package/dist/chunks/{config-BX1JTrkV2.js → config-BX1JTrkV.js} +0 -0
- package/dist/chunks/{config-DpqOnJiz2.js → config-DpqOnJiz.js} +0 -0
- package/dist/chunks/{config-Cpi9Mh2J.js → config-Dqy0rPPO2.js} +1 -1
- /package/dist/chunks/{config-LGrZIdaZ2.js → config-LGrZIdaZ.js} +0 -0
- /package/dist/chunks/{config-QaIc_gRa.js → config-QaIc_gRa2.js} +0 -0
- /package/dist/chunks/{config-U4m9PSql.js → config-U4m9PSql2.js} +0 -0
- /package/dist/chunks/{config-ipvU0lzP2.js → config-ipvU0lzP.js} +0 -0
- /package/dist/chunks/{config-xR4XVmcy.js → config-xR4XVmcy2.js} +0 -0
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as grSegmentedSafelist, t as grSegmentedConfig } from "../../chunks/config-
|
|
2
|
-
import { t as GrSegmented_default } from "./chunks/GrSegmented-
|
|
1
|
+
import { n as grSegmentedSafelist, t as grSegmentedConfig } from "../../chunks/config-BMKNHFMD2.js";
|
|
2
|
+
import { t as GrSegmented_default } from "./chunks/GrSegmented-CTd3n4PA.js";
|
|
3
3
|
export { GrSegmented_default as GrSegmented, GrSegmented_default as default, grSegmentedConfig, grSegmentedSafelist };
|
|
@@ -1,15 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { a as useGrComponentProp, o as useGrComponentSize } from "../../../chunks/context-DfWYCBB-.js";
|
|
2
|
+
import { n as useGranularityTranslations } from "../../../chunks/granularityI18n-SH0I--GW.js";
|
|
3
3
|
import { vClickOutside } from "../../../directives/clickOutside.js";
|
|
4
4
|
import { t as useFloating } from "../../../chunks/useFloating-DtM6TyE4.js";
|
|
5
5
|
import { t as useEscapeToClose } from "../../../chunks/useEscapeToClose-C2t_S1gh.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
6
|
+
import { n as useGrFormFieldContext } from "../../../chunks/context-DdNIxa1w.js";
|
|
7
|
+
import { t as GrInput_default } from "../../GrInput/chunks/GrInput-C1VBL0dg.js";
|
|
8
|
+
import { a as grSelectPanelClasses, i as grSelectNativeClass, n as grSelectLinkNativeLabelClass, o as grSelectTriggerClass, r as grSelectLinkNativeOverlayClass, s as linkBaseClass, t as defaultBaseClass } from "../../../chunks/grSelectStyles-CwMUQrBZ.js";
|
|
9
|
+
import { Fragment, Teleport, Transition, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, nextTick, normalizeClass, normalizeStyle, openBlock, ref, renderList, renderSlot, toDisplayString, unref, useId, vShow, watch, withCtx, withDirectives, withModifiers } from "vue";
|
|
8
10
|
//#region src/components/GrSelect/GrSelect.vue?vue&type=script&setup=true&lang.ts
|
|
9
11
|
var _hoisted_1 = [
|
|
12
|
+
"id",
|
|
10
13
|
"multiple",
|
|
11
14
|
"disabled",
|
|
12
|
-
"aria-label"
|
|
15
|
+
"aria-label",
|
|
16
|
+
"aria-invalid",
|
|
17
|
+
"aria-describedby",
|
|
18
|
+
"aria-required"
|
|
13
19
|
];
|
|
14
20
|
var _hoisted_2 = ["selected"];
|
|
15
21
|
var _hoisted_3 = ["value", "selected"];
|
|
@@ -27,38 +33,64 @@ var _hoisted_6 = [
|
|
|
27
33
|
var _hoisted_7 = {
|
|
28
34
|
key: 1,
|
|
29
35
|
"data-testid": "gr-select-chevron",
|
|
30
|
-
class: "absolute top-1/2 -translate-y-1/2 right-3 flex items-center text-[var(--muted-fg)] pointer-events-none"
|
|
36
|
+
class: "absolute top-1/2 -translate-y-1/2 right-3 flex items-center text-[var(--gr-muted-fg)] pointer-events-none"
|
|
31
37
|
};
|
|
32
38
|
var _hoisted_8 = [
|
|
39
|
+
"id",
|
|
33
40
|
"disabled",
|
|
34
41
|
"aria-label",
|
|
42
|
+
"aria-invalid",
|
|
43
|
+
"aria-describedby",
|
|
44
|
+
"aria-required",
|
|
45
|
+
"aria-controls",
|
|
46
|
+
"aria-activedescendant",
|
|
35
47
|
"aria-expanded"
|
|
36
48
|
];
|
|
37
49
|
var _hoisted_9 = { class: "min-w-0 flex-1" };
|
|
38
50
|
var _hoisted_10 = {
|
|
51
|
+
key: 0,
|
|
52
|
+
"data-gr-select-tags": "",
|
|
53
|
+
class: "flex flex-wrap gap-1 py-0.5"
|
|
54
|
+
};
|
|
55
|
+
var _hoisted_11 = { class: "truncate" };
|
|
56
|
+
var _hoisted_12 = ["aria-label", "onClick"];
|
|
57
|
+
var _hoisted_13 = {
|
|
39
58
|
key: 0,
|
|
40
59
|
class: "shrink-0 h-4 w-4",
|
|
41
60
|
"aria-hidden": "true"
|
|
42
61
|
};
|
|
43
|
-
var
|
|
62
|
+
var _hoisted_14 = {
|
|
44
63
|
key: 1,
|
|
45
64
|
"data-testid": "gr-select-chevron",
|
|
46
|
-
class: "shrink-0 flex items-center text-[var(--muted-fg)] pointer-events-none"
|
|
65
|
+
class: "shrink-0 flex items-center text-[var(--gr-muted-fg)] pointer-events-none"
|
|
47
66
|
};
|
|
48
|
-
var
|
|
49
|
-
var
|
|
67
|
+
var _hoisted_15 = ["disabled", "aria-label"];
|
|
68
|
+
var _hoisted_16 = {
|
|
50
69
|
key: 0,
|
|
51
|
-
class: "p-2 border-b border-[var(--brd)]"
|
|
70
|
+
class: "p-2 border-b border-[var(--gr-brd)]"
|
|
71
|
+
};
|
|
72
|
+
var _hoisted_17 = {
|
|
73
|
+
key: 1,
|
|
74
|
+
"data-gr-select-loading": "",
|
|
75
|
+
class: "flex items-center justify-center gap-2 px-3 py-4 text-[13px] text-[var(--gr-muted-fg)]",
|
|
76
|
+
role: "status"
|
|
52
77
|
};
|
|
53
|
-
var
|
|
54
|
-
var
|
|
78
|
+
var _hoisted_18 = ["id", "aria-multiselectable"];
|
|
79
|
+
var _hoisted_19 = [
|
|
80
|
+
"id",
|
|
55
81
|
"disabled",
|
|
56
82
|
"aria-selected",
|
|
57
83
|
"aria-disabled",
|
|
58
|
-
"onClick"
|
|
84
|
+
"onClick",
|
|
85
|
+
"onMousemove"
|
|
59
86
|
];
|
|
60
|
-
var
|
|
61
|
-
var
|
|
87
|
+
var _hoisted_20 = { class: "flex items-center gap-2 min-w-0" };
|
|
88
|
+
var _hoisted_21 = { class: "truncate" };
|
|
89
|
+
var _hoisted_22 = {
|
|
90
|
+
key: 1,
|
|
91
|
+
"data-gr-select-empty": "",
|
|
92
|
+
class: "px-3 py-4 text-center text-[13px] text-[var(--gr-muted-fg)]"
|
|
93
|
+
};
|
|
62
94
|
//#endregion
|
|
63
95
|
//#region src/components/GrSelect/GrSelect.vue
|
|
64
96
|
var GrSelect_default = /* @__PURE__ */ defineComponent({
|
|
@@ -72,7 +104,7 @@ var GrSelect_default = /* @__PURE__ */ defineComponent({
|
|
|
72
104
|
},
|
|
73
105
|
ariaLabel: { default: void 0 },
|
|
74
106
|
view: { default: "default" },
|
|
75
|
-
size: { default:
|
|
107
|
+
size: { default: void 0 },
|
|
76
108
|
placeholder: { default: void 0 },
|
|
77
109
|
multiple: {
|
|
78
110
|
type: Boolean,
|
|
@@ -83,6 +115,21 @@ var GrSelect_default = /* @__PURE__ */ defineComponent({
|
|
|
83
115
|
type: Boolean,
|
|
84
116
|
default: false
|
|
85
117
|
},
|
|
118
|
+
filterable: {
|
|
119
|
+
type: Boolean,
|
|
120
|
+
default: false
|
|
121
|
+
},
|
|
122
|
+
filterPlaceholder: { default: void 0 },
|
|
123
|
+
loading: {
|
|
124
|
+
type: Boolean,
|
|
125
|
+
default: false
|
|
126
|
+
},
|
|
127
|
+
loadingText: { default: void 0 },
|
|
128
|
+
noResultsText: { default: void 0 },
|
|
129
|
+
tags: {
|
|
130
|
+
type: Boolean,
|
|
131
|
+
default: false
|
|
132
|
+
},
|
|
86
133
|
customValuePlaceholder: { default: void 0 },
|
|
87
134
|
dropdownMaxHeight: { default: 280 },
|
|
88
135
|
closeOnSelect: {
|
|
@@ -91,23 +138,36 @@ var GrSelect_default = /* @__PURE__ */ defineComponent({
|
|
|
91
138
|
},
|
|
92
139
|
clearable: {
|
|
93
140
|
type: Boolean,
|
|
94
|
-
default:
|
|
141
|
+
default: void 0
|
|
95
142
|
},
|
|
96
143
|
clearLabel: { default: void 0 },
|
|
97
|
-
variant: { default:
|
|
98
|
-
underline: { default:
|
|
144
|
+
variant: { default: void 0 },
|
|
145
|
+
underline: { default: void 0 }
|
|
99
146
|
},
|
|
100
147
|
emits: ["update:modelValue"],
|
|
101
148
|
setup(__props, { emit: __emit }) {
|
|
102
149
|
const props = __props;
|
|
150
|
+
const resolvedSize = useGrComponentSize(() => props.size, { component: "GrSelect" });
|
|
151
|
+
const resolvedVariant = useGrComponentProp("GrSelect", "variant", () => props.variant, "primary");
|
|
152
|
+
const resolvedUnderline = useGrComponentProp("GrSelect", "underline", () => props.underline, "auto");
|
|
153
|
+
const resolvedClearable = useGrComponentProp("GrSelect", "clearable", () => props.clearable, false);
|
|
103
154
|
const { t } = useGranularityTranslations();
|
|
104
155
|
const resolvedCustomValuePlaceholder = computed(() => {
|
|
105
156
|
return props.customValuePlaceholder ?? t("gr.select.customValuePlaceholder", "Add value…");
|
|
106
157
|
});
|
|
107
158
|
const resolvedClearLabel = computed(() => props.clearLabel ?? t("gr.common.clear", "Clear"));
|
|
159
|
+
const resolvedFilterPlaceholder = computed(() => props.filterPlaceholder ?? t("gr.select.searchPlaceholder", "Search…"));
|
|
160
|
+
const resolvedLoadingText = computed(() => props.loadingText ?? t("gr.select.loading", "Loading…"));
|
|
161
|
+
const resolvedNoResultsText = computed(() => props.noResultsText ?? t("gr.select.noResults", "No results"));
|
|
162
|
+
const resolvedSearchPlaceholder = computed(() => props.allowCustomValue ? resolvedCustomValuePlaceholder.value : resolvedFilterPlaceholder.value);
|
|
108
163
|
const baseClassName = computed(() => props.view === "link" ? linkBaseClass : defaultBaseClass);
|
|
109
164
|
const rootClass = computed(() => props.view === "link" ? "relative inline-block align-baseline" : "relative w-full");
|
|
110
165
|
const emit = __emit;
|
|
166
|
+
const field = useGrFormFieldContext();
|
|
167
|
+
const resolvedId = computed(() => field?.id.value);
|
|
168
|
+
const isInvalid = computed(() => Boolean(field?.invalid.value));
|
|
169
|
+
const describedBy = computed(() => field?.describedById.value);
|
|
170
|
+
const isRequired = computed(() => Boolean(field?.required.value));
|
|
111
171
|
const optionsResolved = computed(() => props.options ?? []);
|
|
112
172
|
function isOptionGroup(item) {
|
|
113
173
|
return Array.isArray(item.options);
|
|
@@ -156,8 +216,11 @@ var GrSelect_default = /* @__PURE__ */ defineComponent({
|
|
|
156
216
|
});
|
|
157
217
|
const effectiveOptionsView = computed(() => {
|
|
158
218
|
if (props.view === "link" && props.multiple && props.optionsView === "native") return "panel";
|
|
219
|
+
if ((props.filterable || props.loading || props.tags) && props.optionsView === "native") return "panel";
|
|
159
220
|
return props.optionsView;
|
|
160
221
|
});
|
|
222
|
+
const showSearchInput = computed(() => (props.filterable || props.allowCustomValue) && effectiveOptionsView.value === "panel");
|
|
223
|
+
const showTags = computed(() => props.multiple && props.tags && effectiveOptionsView.value === "panel");
|
|
161
224
|
const nativeCustomOptionVisible = computed(() => {
|
|
162
225
|
if (!props.allowCustomValue) return false;
|
|
163
226
|
if (effectiveOptionsView.value !== "native") return false;
|
|
@@ -188,16 +251,6 @@ var GrSelect_default = /* @__PURE__ */ defineComponent({
|
|
|
188
251
|
watch(() => props.view, () => {
|
|
189
252
|
if (open.value) updateFloatingPosition();
|
|
190
253
|
});
|
|
191
|
-
watch(open, async (isOpen) => {
|
|
192
|
-
if (!isOpen) {
|
|
193
|
-
customValue.value = "";
|
|
194
|
-
return;
|
|
195
|
-
}
|
|
196
|
-
if (props.allowCustomValue) {
|
|
197
|
-
await nextTick();
|
|
198
|
-
customInputRef.value?.focus();
|
|
199
|
-
}
|
|
200
|
-
}, { immediate: true });
|
|
201
254
|
const panelClasses = computed(() => {
|
|
202
255
|
return grSelectPanelClasses;
|
|
203
256
|
});
|
|
@@ -210,7 +263,7 @@ var GrSelect_default = /* @__PURE__ */ defineComponent({
|
|
|
210
263
|
* Группировка сохраняется, фильтрация по `customValue` скрывает пустые группы.
|
|
211
264
|
*/
|
|
212
265
|
const panelItems = computed(() => {
|
|
213
|
-
const q = props.allowCustomValue ? customValue.value.trim().toLowerCase() : "";
|
|
266
|
+
const q = props.allowCustomValue || props.filterable ? customValue.value.trim().toLowerCase() : "";
|
|
214
267
|
const items = [];
|
|
215
268
|
if (props.allowCustomValue && !props.multiple && modelSingle.value !== "" && !hasModelInOptions.value) {
|
|
216
269
|
const custom = {
|
|
@@ -290,18 +343,124 @@ var GrSelect_default = /* @__PURE__ */ defineComponent({
|
|
|
290
343
|
if (!v) return;
|
|
291
344
|
toggleValue(v);
|
|
292
345
|
}
|
|
346
|
+
function removeValue(value) {
|
|
347
|
+
if (props.disabled) return;
|
|
348
|
+
if (!props.multiple) return;
|
|
349
|
+
emitValue(selectedValues.value.filter((v) => v !== value));
|
|
350
|
+
}
|
|
351
|
+
function tagRemoveLabel(option) {
|
|
352
|
+
return t("gr.select.removeTag", "Remove {label}", { label: option.label });
|
|
353
|
+
}
|
|
354
|
+
const listboxId = useId();
|
|
355
|
+
const activeIndex = ref(-1);
|
|
356
|
+
function optionDomId(value) {
|
|
357
|
+
return `${listboxId}-opt-${value}`;
|
|
358
|
+
}
|
|
359
|
+
const navigableValues = computed(() => panelItems.value.filter((item) => item.kind === "option" && !item.option.disabled).map((item) => item.option.value));
|
|
360
|
+
const activeValue = computed(() => activeIndex.value >= 0 ? navigableValues.value[activeIndex.value] : void 0);
|
|
361
|
+
const activeDescendantId = computed(() => open.value && activeValue.value !== void 0 ? optionDomId(activeValue.value) : void 0);
|
|
362
|
+
function clampActive(index) {
|
|
363
|
+
const len = navigableValues.value.length;
|
|
364
|
+
if (len === 0) return -1;
|
|
365
|
+
return (index % len + len) % len;
|
|
366
|
+
}
|
|
367
|
+
async function scrollActiveIntoView() {
|
|
368
|
+
await nextTick();
|
|
369
|
+
const value = activeValue.value;
|
|
370
|
+
if (value === void 0) return;
|
|
371
|
+
document.getElementById(optionDomId(value))?.scrollIntoView?.({ block: "nearest" });
|
|
372
|
+
}
|
|
373
|
+
function setActive(index) {
|
|
374
|
+
activeIndex.value = clampActive(index);
|
|
375
|
+
scrollActiveIntoView();
|
|
376
|
+
}
|
|
377
|
+
function initActiveIndex() {
|
|
378
|
+
const selectedIdx = navigableValues.value.findIndex((v) => isSelected(v));
|
|
379
|
+
activeIndex.value = selectedIdx >= 0 ? selectedIdx : navigableValues.value.length ? 0 : -1;
|
|
380
|
+
}
|
|
381
|
+
function openDropdown() {
|
|
382
|
+
if (props.disabled || open.value) return;
|
|
383
|
+
open.value = true;
|
|
384
|
+
}
|
|
385
|
+
let typeaheadBuffer = "";
|
|
386
|
+
let typeaheadTimer = null;
|
|
387
|
+
function typeahead(char) {
|
|
388
|
+
typeaheadBuffer += char.toLowerCase();
|
|
389
|
+
if (typeaheadTimer) clearTimeout(typeaheadTimer);
|
|
390
|
+
typeaheadTimer = setTimeout(() => {
|
|
391
|
+
typeaheadBuffer = "";
|
|
392
|
+
}, 600);
|
|
393
|
+
const idx = navigableValues.value.findIndex((v) => {
|
|
394
|
+
return flatOptions.value.find((o) => o.value === v)?.label.toLowerCase().startsWith(typeaheadBuffer);
|
|
395
|
+
});
|
|
396
|
+
if (idx >= 0) setActive(idx);
|
|
397
|
+
}
|
|
398
|
+
function onComboKeydown(event) {
|
|
399
|
+
if (props.disabled) return;
|
|
400
|
+
if (!open.value) {
|
|
401
|
+
if ([
|
|
402
|
+
"ArrowDown",
|
|
403
|
+
"ArrowUp",
|
|
404
|
+
"Enter",
|
|
405
|
+
" "
|
|
406
|
+
].includes(event.key)) {
|
|
407
|
+
event.preventDefault();
|
|
408
|
+
openDropdown();
|
|
409
|
+
}
|
|
410
|
+
return;
|
|
411
|
+
}
|
|
412
|
+
switch (event.key) {
|
|
413
|
+
case "ArrowDown":
|
|
414
|
+
event.preventDefault();
|
|
415
|
+
setActive(activeIndex.value + 1);
|
|
416
|
+
break;
|
|
417
|
+
case "ArrowUp":
|
|
418
|
+
event.preventDefault();
|
|
419
|
+
setActive(activeIndex.value - 1);
|
|
420
|
+
break;
|
|
421
|
+
case "Home":
|
|
422
|
+
event.preventDefault();
|
|
423
|
+
setActive(0);
|
|
424
|
+
break;
|
|
425
|
+
case "End":
|
|
426
|
+
event.preventDefault();
|
|
427
|
+
setActive(navigableValues.value.length - 1);
|
|
428
|
+
break;
|
|
429
|
+
case "Enter":
|
|
430
|
+
event.preventDefault();
|
|
431
|
+
if (props.allowCustomValue && canAddCustom.value) addCustom();
|
|
432
|
+
else if (activeValue.value !== void 0) toggleValue(activeValue.value);
|
|
433
|
+
break;
|
|
434
|
+
case "Tab":
|
|
435
|
+
closeDropdown();
|
|
436
|
+
break;
|
|
437
|
+
default: if (!showSearchInput.value && event.key.length === 1 && !event.metaKey && !event.ctrlKey && !event.altKey) typeahead(event.key);
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
watch(open, async (isOpen) => {
|
|
441
|
+
if (!isOpen) {
|
|
442
|
+
customValue.value = "";
|
|
443
|
+
activeIndex.value = -1;
|
|
444
|
+
return;
|
|
445
|
+
}
|
|
446
|
+
initActiveIndex();
|
|
447
|
+
if (showSearchInput.value) {
|
|
448
|
+
await nextTick();
|
|
449
|
+
customInputRef.value?.focus();
|
|
450
|
+
}
|
|
451
|
+
}, { immediate: true });
|
|
293
452
|
const showNativeChevron = computed(() => {
|
|
294
453
|
return effectiveOptionsView.value === "native" && props.view !== "link" && !props.multiple;
|
|
295
454
|
});
|
|
296
455
|
const nativeClearOptionVisible = computed(() => {
|
|
297
|
-
if (!
|
|
456
|
+
if (!resolvedClearable.value) return false;
|
|
298
457
|
if (effectiveOptionsView.value !== "native") return false;
|
|
299
458
|
if (props.multiple) return false;
|
|
300
459
|
if (!props.options) return true;
|
|
301
460
|
return !flatOptions.value.some((o) => o.value === "");
|
|
302
461
|
});
|
|
303
462
|
const panelClearVisible = computed(() => {
|
|
304
|
-
if (!
|
|
463
|
+
if (!resolvedClearable.value) return false;
|
|
305
464
|
if (effectiveOptionsView.value !== "panel") return false;
|
|
306
465
|
if (props.view === "link") return false;
|
|
307
466
|
return hasSelection.value;
|
|
@@ -309,10 +468,10 @@ var GrSelect_default = /* @__PURE__ */ defineComponent({
|
|
|
309
468
|
const nativeClassName = computed(() => {
|
|
310
469
|
return grSelectNativeClass({
|
|
311
470
|
view: props.view,
|
|
312
|
-
size:
|
|
471
|
+
size: resolvedSize.value,
|
|
313
472
|
disabled: props.disabled,
|
|
314
|
-
variant:
|
|
315
|
-
underline:
|
|
473
|
+
variant: resolvedVariant.value,
|
|
474
|
+
underline: resolvedUnderline.value,
|
|
316
475
|
showNativeChevron: showNativeChevron.value
|
|
317
476
|
});
|
|
318
477
|
});
|
|
@@ -324,9 +483,9 @@ var GrSelect_default = /* @__PURE__ */ defineComponent({
|
|
|
324
483
|
*/
|
|
325
484
|
const isLinkNative = computed(() => props.view === "link" && effectiveOptionsView.value === "native");
|
|
326
485
|
const linkNativeLabelClassName = computed(() => grSelectLinkNativeLabelClass({
|
|
327
|
-
size:
|
|
328
|
-
variant:
|
|
329
|
-
underline:
|
|
486
|
+
size: resolvedSize.value,
|
|
487
|
+
variant: resolvedVariant.value,
|
|
488
|
+
underline: resolvedUnderline.value,
|
|
330
489
|
disabled: props.disabled
|
|
331
490
|
}));
|
|
332
491
|
const linkNativeDisplayText = computed(() => {
|
|
@@ -336,10 +495,10 @@ var GrSelect_default = /* @__PURE__ */ defineComponent({
|
|
|
336
495
|
return grSelectTriggerClass({
|
|
337
496
|
view: props.view,
|
|
338
497
|
optionsView: effectiveOptionsView.value,
|
|
339
|
-
size:
|
|
498
|
+
size: resolvedSize.value,
|
|
340
499
|
disabled: props.disabled,
|
|
341
|
-
variant:
|
|
342
|
-
underline:
|
|
500
|
+
variant: resolvedVariant.value,
|
|
501
|
+
underline: resolvedUnderline.value
|
|
343
502
|
});
|
|
344
503
|
});
|
|
345
504
|
function onChange(e) {
|
|
@@ -362,10 +521,14 @@ var GrSelect_default = /* @__PURE__ */ defineComponent({
|
|
|
362
521
|
class: normalizeClass(rootClass.value)
|
|
363
522
|
}, [
|
|
364
523
|
createElementVNode("select", {
|
|
524
|
+
id: resolvedId.value,
|
|
365
525
|
"data-gr-select-native": "",
|
|
366
526
|
multiple: __props.multiple,
|
|
367
527
|
disabled: __props.disabled,
|
|
368
528
|
"aria-label": __props.ariaLabel,
|
|
529
|
+
"aria-invalid": isInvalid.value ? "true" : void 0,
|
|
530
|
+
"aria-describedby": describedBy.value,
|
|
531
|
+
"aria-required": isRequired.value ? "true" : void 0,
|
|
369
532
|
class: normalizeClass(isLinkNative.value ? unref(grSelectLinkNativeOverlayClass) : [baseClassName.value, nativeClassName.value]),
|
|
370
533
|
onChange
|
|
371
534
|
}, [nativeClearOptionVisible.value ? (openBlock(), createElementBlock("option", {
|
|
@@ -412,39 +575,70 @@ var GrSelect_default = /* @__PURE__ */ defineComponent({
|
|
|
412
575
|
class: normalizeClass(rootClass.value)
|
|
413
576
|
}, [
|
|
414
577
|
createElementVNode("button", {
|
|
578
|
+
id: resolvedId.value,
|
|
415
579
|
"data-testid": "gr-select-trigger",
|
|
416
580
|
"data-gr-select-trigger": "",
|
|
417
581
|
type: "button",
|
|
418
582
|
disabled: __props.disabled,
|
|
419
583
|
"aria-label": __props.ariaLabel,
|
|
584
|
+
"aria-invalid": isInvalid.value ? "true" : void 0,
|
|
585
|
+
"aria-describedby": describedBy.value,
|
|
586
|
+
"aria-required": isRequired.value ? "true" : void 0,
|
|
420
587
|
role: "combobox",
|
|
421
|
-
"aria-
|
|
588
|
+
"aria-haspopup": "listbox",
|
|
589
|
+
"aria-controls": open.value ? unref(listboxId) : void 0,
|
|
590
|
+
"aria-activedescendant": activeDescendantId.value,
|
|
422
591
|
"aria-expanded": open.value ? "true" : "false",
|
|
423
|
-
class: normalizeClass([
|
|
424
|
-
|
|
592
|
+
class: normalizeClass([
|
|
593
|
+
baseClassName.value,
|
|
594
|
+
triggerClassName.value,
|
|
595
|
+
showTags.value && hasSelection.value ? "!h-auto min-h-10 !py-1.5" : ""
|
|
596
|
+
]),
|
|
597
|
+
onClick: toggleDropdown,
|
|
598
|
+
onKeydown: onComboKeydown
|
|
425
599
|
}, [createElementVNode("span", _hoisted_9, [renderSlot(_ctx.$slots, "value", {
|
|
426
600
|
selectedOptions: selectedOptions.value,
|
|
427
601
|
selectedValues: selectedValues.value,
|
|
428
602
|
displayLabel: displayLabel.value,
|
|
429
603
|
placeholder: __props.placeholder,
|
|
430
604
|
hasSelection: hasSelection.value
|
|
431
|
-
}, () => [
|
|
605
|
+
}, () => [showTags.value && hasSelection.value ? (openBlock(), createElementBlock("span", _hoisted_10, [(openBlock(true), createElementBlock(Fragment, null, renderList(selectedOptions.value, (opt) => {
|
|
606
|
+
return openBlock(), createElementBlock("span", {
|
|
607
|
+
key: opt.value,
|
|
608
|
+
"data-gr-select-tag": "",
|
|
609
|
+
class: "inline-flex items-center gap-1 rounded-[6px] bg-[var(--gr-muted)] pl-2 pr-1 py-0.5 text-[12px] text-[var(--gr-fg)] max-w-full"
|
|
610
|
+
}, [createElementVNode("span", _hoisted_11, toDisplayString(opt.label), 1), !__props.disabled ? (openBlock(), createElementBlock("span", {
|
|
611
|
+
key: 0,
|
|
612
|
+
"data-gr-select-tag-remove": "",
|
|
613
|
+
role: "button",
|
|
614
|
+
tabindex: "-1",
|
|
615
|
+
"aria-label": tagRemoveLabel(opt),
|
|
616
|
+
class: "inline-flex h-4 w-4 shrink-0 items-center justify-center rounded-[4px] text-[var(--gr-muted-fg)] hover:text-[var(--gr-fg)] hover:bg-[color-mix(in_srgb,var(--gr-fg)_12%,transparent)]",
|
|
617
|
+
onClick: withModifiers(($event) => removeValue(opt.value), ["stop"])
|
|
618
|
+
}, [..._cache[2] || (_cache[2] = [createElementVNode("span", {
|
|
619
|
+
class: "i-lucide-x block h-3 w-3",
|
|
620
|
+
"aria-hidden": "true"
|
|
621
|
+
}, null, -1)])], 8, _hoisted_12)) : createCommentVNode("", true)]);
|
|
622
|
+
}), 128))])) : (openBlock(), createElementBlock("span", {
|
|
623
|
+
key: 1,
|
|
624
|
+
class: normalizeClass(["block truncate", !hasSelection.value ? "text-[var(--gr-muted-fg)]" : ""])
|
|
625
|
+
}, toDisplayString(displayText.value), 3))])]), panelClearVisible.value ? (openBlock(), createElementBlock("span", _hoisted_13)) : (openBlock(), createElementBlock("span", _hoisted_14, [..._cache[3] || (_cache[3] = [createElementVNode("span", {
|
|
432
626
|
class: "i-lucide-chevron-down block h-4 w-4",
|
|
433
627
|
"aria-hidden": "true"
|
|
434
|
-
}, null, -1)])]))],
|
|
628
|
+
}, null, -1)])]))], 42, _hoisted_8),
|
|
435
629
|
panelClearVisible.value ? (openBlock(), createElementBlock("button", {
|
|
436
630
|
key: 0,
|
|
437
631
|
"data-testid": "gr-select-clear",
|
|
438
632
|
"data-gr-select-clear": "",
|
|
439
633
|
type: "button",
|
|
440
|
-
class: "absolute top-1/2 -translate-y-1/2 right-3 h-6 w-6 inline-flex items-center justify-center rounded-md text-[var(--muted-fg)] hover:text-[var(--fg)] hover:bg-[color-mix(in_srgb,var(--muted)_25%,transparent)] disabled:opacity-50",
|
|
634
|
+
class: "absolute top-1/2 -translate-y-1/2 right-3 h-6 w-6 inline-flex items-center justify-center rounded-md text-[var(--gr-muted-fg)] hover:text-[var(--gr-fg)] hover:bg-[color-mix(in_srgb,var(--gr-muted)_25%,transparent)] disabled:opacity-50",
|
|
441
635
|
disabled: __props.disabled,
|
|
442
636
|
"aria-label": resolvedClearLabel.value,
|
|
443
637
|
onClick: withModifiers(clearSelection, ["stop"])
|
|
444
|
-
}, [..._cache[
|
|
638
|
+
}, [..._cache[4] || (_cache[4] = [createElementVNode("span", {
|
|
445
639
|
class: "i-lucide-x inline-block h-4 w-4",
|
|
446
640
|
"aria-hidden": "true"
|
|
447
|
-
}, null, -1)])], 8,
|
|
641
|
+
}, null, -1)])], 8, _hoisted_15)) : createCommentVNode("", true),
|
|
448
642
|
(openBlock(), createBlock(Teleport, { to: "body" }, [createVNode(Transition, {
|
|
449
643
|
"enter-active-class": "transition ease-out duration-150",
|
|
450
644
|
"enter-from-class": "transform opacity-0 scale-95",
|
|
@@ -459,57 +653,69 @@ var GrSelect_default = /* @__PURE__ */ defineComponent({
|
|
|
459
653
|
"data-testid": "gr-select-panel",
|
|
460
654
|
"data-gr-select-panel": "",
|
|
461
655
|
style: normalizeStyle(unref(floatingStyle))
|
|
462
|
-
}, [createElementVNode("div", { class: normalizeClass(panelClasses.value) }, [
|
|
656
|
+
}, [createElementVNode("div", { class: normalizeClass(panelClasses.value) }, [showSearchInput.value ? (openBlock(), createElementBlock("div", _hoisted_16, [createVNode(GrInput_default, {
|
|
463
657
|
ref_key: "customInputRef",
|
|
464
658
|
ref: customInputRef,
|
|
465
659
|
modelValue: customValue.value,
|
|
466
660
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => customValue.value = $event),
|
|
467
661
|
"data-testid": "gr-select-custom-input",
|
|
662
|
+
"data-gr-select-search": "",
|
|
468
663
|
type: "text",
|
|
469
|
-
placeholder:
|
|
664
|
+
placeholder: resolvedSearchPlaceholder.value,
|
|
470
665
|
size: "sm",
|
|
471
|
-
onKeydown:
|
|
472
|
-
}, null, 8, [
|
|
473
|
-
"
|
|
474
|
-
"
|
|
475
|
-
|
|
476
|
-
|
|
666
|
+
onKeydown: onComboKeydown
|
|
667
|
+
}, null, 8, ["modelValue", "placeholder"])])) : createCommentVNode("", true), __props.loading ? (openBlock(), createElementBlock("div", _hoisted_17, [_cache[5] || (_cache[5] = createElementVNode("span", {
|
|
668
|
+
class: "i-lucide-loader-circle block h-4 w-4 animate-spin",
|
|
669
|
+
"aria-hidden": "true"
|
|
670
|
+
}, null, -1)), createElementVNode("span", null, toDisplayString(resolvedLoadingText.value), 1)])) : (openBlock(), createElementBlock("div", {
|
|
671
|
+
key: 2,
|
|
672
|
+
id: unref(listboxId),
|
|
477
673
|
"data-gr-select-listbox": "",
|
|
478
674
|
class: "p-1 overflow-auto",
|
|
479
675
|
style: normalizeStyle({ maxHeight: `${__props.dropdownMaxHeight}px` }),
|
|
480
676
|
role: "listbox",
|
|
481
677
|
"aria-multiselectable": __props.multiple ? "true" : void 0
|
|
482
|
-
}, [
|
|
483
|
-
|
|
484
|
-
"data-testid": "gr-select-add-option",
|
|
485
|
-
"data-gr-select-add-option": "",
|
|
486
|
-
type: "button",
|
|
487
|
-
class: normalizeClass(["rounded-[10px] px-3 py-2 text-left text-[13px] hover:bg-[color-mix(in_srgb,var(--muted)_30%,transparent)]", [__props.view === "link" ? "block min-w-full w-max whitespace-nowrap" : "w-full"]]),
|
|
488
|
-
onClick: addCustom
|
|
489
|
-
}, toDisplayString(unref(t)("gr.select.addOption", "Add \"{value}\"", { value: customValue.value.trim() })), 3)) : createCommentVNode("", true), (openBlock(true), createElementBlock(Fragment, null, renderList(panelItems.value, (item) => {
|
|
490
|
-
return openBlock(), createElementBlock(Fragment, { key: item.key }, [item.kind === "group" ? (openBlock(), createElementBlock("div", {
|
|
678
|
+
}, [
|
|
679
|
+
canAddCustom.value ? (openBlock(), createElementBlock("button", {
|
|
491
680
|
key: 0,
|
|
492
|
-
"data-gr-select-
|
|
493
|
-
|
|
494
|
-
class: normalizeClass(["px-3 pt-2 pb-1 text-[11px] font-semibold uppercase tracking-wide text-[var(--muted-fg)]", [__props.view === "link" ? "block min-w-full w-max whitespace-nowrap" : ""]])
|
|
495
|
-
}, toDisplayString(item.label), 3)) : (openBlock(), createElementBlock("button", {
|
|
496
|
-
key: 1,
|
|
497
|
-
"data-gr-select-option": "",
|
|
681
|
+
"data-testid": "gr-select-add-option",
|
|
682
|
+
"data-gr-select-add-option": "",
|
|
498
683
|
type: "button",
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
684
|
+
class: normalizeClass(["rounded-[10px] px-3 py-2 text-left text-[13px] hover:bg-[color-mix(in_srgb,var(--gr-muted)_30%,transparent)]", [__props.view === "link" ? "block min-w-full w-max whitespace-nowrap" : "w-full"]]),
|
|
685
|
+
onClick: addCustom
|
|
686
|
+
}, toDisplayString(unref(t)("gr.select.addOption", "Add \"{value}\"", { value: customValue.value.trim() })), 3)) : createCommentVNode("", true),
|
|
687
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(panelItems.value, (item) => {
|
|
688
|
+
return openBlock(), createElementBlock(Fragment, { key: item.key }, [item.kind === "group" ? (openBlock(), createElementBlock("div", {
|
|
689
|
+
key: 0,
|
|
690
|
+
"data-gr-select-group-label": "",
|
|
691
|
+
role: "presentation",
|
|
692
|
+
class: normalizeClass(["px-3 pt-2 pb-1 text-[11px] font-semibold uppercase tracking-wide text-[var(--gr-muted-fg)]", [__props.view === "link" ? "block min-w-full w-max whitespace-nowrap" : ""]])
|
|
693
|
+
}, toDisplayString(item.label), 3)) : (openBlock(), createElementBlock("button", {
|
|
694
|
+
key: 1,
|
|
695
|
+
id: optionDomId(item.option.value),
|
|
696
|
+
"data-gr-select-option": "",
|
|
697
|
+
type: "button",
|
|
698
|
+
role: "option",
|
|
699
|
+
disabled: item.option.disabled,
|
|
700
|
+
"aria-selected": isSelected(item.option.value) ? "true" : "false",
|
|
701
|
+
"aria-disabled": item.option.disabled ? "true" : void 0,
|
|
702
|
+
class: normalizeClass(["rounded-[10px] px-3 py-2 text-left text-[13px]", [
|
|
703
|
+
__props.view === "link" ? "block min-w-full w-max whitespace-nowrap" : "w-full",
|
|
704
|
+
item.option.disabled ? "cursor-not-allowed opacity-50" : "hover:bg-[color-mix(in_srgb,var(--gr-muted)_30%,transparent)]",
|
|
705
|
+
activeValue.value === item.option.value && !item.option.disabled ? "bg-[color-mix(in_srgb,var(--gr-muted)_30%,transparent)]" : ""
|
|
706
|
+
]]),
|
|
707
|
+
onClick: ($event) => toggleValue(item.option.value),
|
|
708
|
+
onMousemove: ($event) => activeIndex.value = navigableValues.value.indexOf(item.option.value)
|
|
709
|
+
}, [renderSlot(_ctx.$slots, "option", {
|
|
710
|
+
option: item.option,
|
|
711
|
+
selected: isSelected(item.option.value)
|
|
712
|
+
}, () => [createElementVNode("span", _hoisted_20, [createElementVNode("span", {
|
|
713
|
+
class: normalizeClass(["inline-block h-4 w-4 shrink-0", isSelected(item.option.value) ? "i-lucide-check text-[var(--gr-primary)]" : ""]),
|
|
714
|
+
"aria-hidden": "true"
|
|
715
|
+
}, null, 2), createElementVNode("span", _hoisted_21, toDisplayString(item.option.label), 1)])])], 42, _hoisted_19))], 64);
|
|
716
|
+
}), 128)),
|
|
717
|
+
!panelItems.value.length && !canAddCustom.value ? (openBlock(), createElementBlock("div", _hoisted_22, toDisplayString(resolvedNoResultsText.value), 1)) : createCommentVNode("", true)
|
|
718
|
+
], 12, _hoisted_18))], 2)], 4), [[vShow, open.value]])]),
|
|
513
719
|
_: 3
|
|
514
720
|
})]))
|
|
515
721
|
], 2)), [[unref(vClickOutside), {
|