@feugene/granularity 0.10.0 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +44 -45
- package/dist/GrButtonGroup.css +1 -1
- package/dist/GrFormFile.css +1 -1
- package/dist/GrIcon.css +1 -1
- package/dist/GrLoading.css +1 -1
- package/dist/GrSkeleton.css +1 -1
- package/dist/GrToaster.css +1 -0
- package/dist/GrTree.css +1 -1
- package/dist/chunks/{adapter-BqqjEZGU.js.map → adapter-CAOxmn2G.js.map} +1 -1
- package/dist/chunks/arrow-up-C_G4jg8M.js.map +1 -0
- package/dist/chunks/{classTokens-BPeBXNzu.js.map → classTokens-BzazaERD.js.map} +1 -1
- package/dist/chunks/{config-A-iei0Ux.js → config-1uSYl98Y2.js} +5 -5
- package/dist/chunks/config-1uSYl98Y2.js.map +1 -0
- package/dist/chunks/{config-DZrlovR42.js.map → config-8Pcutu1j2.js.map} +1 -1
- package/dist/chunks/{config-VJuoznpH.js.map → config-B0qIpo8m.js.map} +1 -1
- package/dist/chunks/{config-C8MM2Dg0.js → config-B7IIWGt_2.js} +3 -3
- package/dist/chunks/config-B7IIWGt_2.js.map +1 -0
- package/dist/chunks/{config-DbghHyY_.js.map → config-BEegFP74.js.map} +1 -1
- package/dist/chunks/{config-D_Pafsjq2.js → config-BIRO0vDJ.js} +6 -6
- package/dist/chunks/config-BIRO0vDJ.js.map +1 -0
- package/dist/chunks/{config-BeBsN0c12.js.map → config-BLHqZhy-2.js.map} +1 -1
- package/dist/chunks/{config-BV4vBzdm.js.map → config-BNu8lFQB.js.map} +1 -1
- package/dist/chunks/config-BOlr7qw7.js +106 -0
- package/dist/chunks/config-BOlr7qw7.js.map +1 -0
- package/dist/chunks/{config-DhQc1TRY.js.map → config-BUHuGBik.js.map} +1 -1
- package/dist/chunks/{config-CPSdAjUi.js.map → config-BWGGp7uV.js.map} +1 -1
- package/dist/chunks/config-BWiPnygb.js +5 -0
- package/dist/chunks/config-BWiPnygb.js.map +1 -0
- package/dist/chunks/config-BX1JTrkV2.js +14 -0
- package/dist/chunks/config-BX1JTrkV2.js.map +1 -0
- package/dist/chunks/config-BXtAmU3s2.js.map +1 -0
- package/dist/chunks/{config-CzgNEHKi.js.map → config-Bah4oHwL.js.map} +1 -1
- package/dist/chunks/{config-C_egzT_K.js → config-C49QUoJL.js} +3 -3
- package/dist/chunks/{config-C_egzT_K.js.map → config-C49QUoJL.js.map} +1 -1
- package/dist/chunks/{config-3I3vqDW4.js → config-C4snOIXg.js} +1 -1
- package/dist/chunks/{config-3I3vqDW4.js.map → config-C4snOIXg.js.map} +1 -1
- package/dist/chunks/{config-DvDNney3.js → config-C7NpDrfO.js} +5 -5
- package/dist/chunks/{config-DvDNney3.js.map → config-C7NpDrfO.js.map} +1 -1
- package/dist/chunks/{config-lMDE_8A5.js.map → config-C86UzUYf.js.map} +1 -1
- package/dist/chunks/{config-BgBWt9-A.js.map → config-C9AcVDkv.js.map} +1 -1
- package/dist/chunks/config-CGHLoBlH.js.map +1 -0
- package/dist/chunks/{config-ChQxl75m.js.map → config-CThzliFi.js.map} +1 -1
- package/dist/chunks/{config-DDwBSoc_.js.map → config-Cb2PAlSD.js.map} +1 -1
- package/dist/chunks/{config-XspHtPsU.js → config-ClhKPJvg.js} +5 -5
- package/dist/chunks/{config-XspHtPsU.js.map → config-ClhKPJvg.js.map} +1 -1
- package/dist/chunks/{config-58Mj2rGH.js → config-Cpi9Mh2J.js} +3 -3
- package/dist/chunks/{config-58Mj2rGH.js.map → config-Cpi9Mh2J.js.map} +1 -1
- package/dist/chunks/{config-nrOj9p6I.js → config-CrG1XiE72.js} +4 -4
- package/dist/chunks/config-CrG1XiE72.js.map +1 -0
- package/dist/chunks/{config-DRpkoSvq.js → config-CziwTDDL.js} +3 -3
- package/dist/chunks/{config-DRpkoSvq.js.map → config-CziwTDDL.js.map} +1 -1
- package/dist/chunks/{config-C5-ujXCI.js.map → config-D7GZO-Dx.js.map} +1 -1
- package/dist/chunks/{config-CUwF4E4R.js.map → config-DBmdgoVf.js.map} +1 -1
- package/dist/chunks/{config-C9MblwGq.js.map → config-DICOd-2X.js.map} +1 -1
- package/dist/chunks/{config-C6zT56Jc2.js → config-DUcu1D682.js} +3 -3
- package/dist/chunks/{config-C6zT56Jc2.js.map → config-DUcu1D682.js.map} +1 -1
- package/dist/chunks/{config-8f8624RN.js → config-D_R56_gT.js} +5 -5
- package/dist/chunks/{config-8f8624RN.js.map → config-D_R56_gT.js.map} +1 -1
- package/dist/chunks/{config-RjfJFv1Y.js → config-DezDih8_.js} +4 -4
- package/dist/chunks/config-DezDih8_.js.map +1 -0
- package/dist/chunks/config-Dlm49Jp5.js +5 -0
- package/dist/chunks/config-Dlm49Jp5.js.map +1 -0
- package/dist/chunks/{config-B0uUCaJW.js → config-DnvPqu4g2.js} +3 -3
- package/dist/chunks/config-DnvPqu4g2.js.map +1 -0
- package/dist/chunks/config-DpqOnJiz.js.map +1 -0
- package/dist/chunks/{config-V3LF-b_F.js.map → config-Dxuwwepq.js.map} +1 -1
- package/dist/chunks/{config-Doa_gU40.js.map → config-HZto2PVy.js.map} +1 -1
- package/dist/chunks/{config-Dl5aZ5VR.js.map → config-JOtB4mzs.js.map} +1 -1
- package/dist/chunks/config-JpHA4Xx02.js.map +1 -0
- package/dist/chunks/{config-DkeLkzxj2.js → config-LGrZIdaZ.js} +1 -1
- package/dist/chunks/config-LGrZIdaZ.js.map +1 -0
- package/dist/chunks/{config-B3dn-gdC.js.map → config-PFg39mYo.js.map} +1 -1
- package/dist/chunks/{config-CU_CBd0k.js → config-QYGvEBu5.js} +2 -2
- package/dist/chunks/{config-CU_CBd0k.js.map → config-QYGvEBu5.js.map} +1 -1
- package/dist/chunks/{config-Bh4NWWsQ.js.map → config-QaIc_gRa.js.map} +1 -1
- package/dist/chunks/{config-vcDVCYXo.js.map → config-U4m9PSql.js.map} +1 -1
- package/dist/chunks/{config-C_q_4FrU.js.map → config-ZiXWIRBX.js.map} +1 -1
- package/dist/chunks/config-eXB87DOi2.js +9 -0
- package/dist/chunks/config-eXB87DOi2.js.map +1 -0
- package/dist/chunks/{config-hSlCXHoG.js → config-eYLZYOUS2.js} +63 -63
- package/dist/chunks/config-eYLZYOUS2.js.map +1 -0
- package/dist/chunks/{config-DDUPnue12.js.map → config-ipvU0lzP2.js.map} +1 -1
- package/dist/chunks/{config-B61cX08u.js → config-jBp9wVv-.js} +4 -4
- package/dist/chunks/{config-B61cX08u.js.map → config-jBp9wVv-.js.map} +1 -1
- package/dist/chunks/{config-D5ek7VSi.js.map → config-xR4XVmcy.js.map} +1 -1
- package/dist/chunks/context-DdNIxa1w.js +9 -0
- package/dist/chunks/context-DdNIxa1w.js.map +1 -0
- package/dist/chunks/{dialogShared-BtXUk6Zc.js.map → dialogShared-CxW62PQE.js.map} +1 -1
- package/dist/chunks/en-CfkDa4GX.js +144 -0
- package/dist/chunks/en-CfkDa4GX.js.map +1 -0
- package/dist/chunks/{es-CISK11Nv.js → es-CgaLnFYx.js} +3 -3
- package/dist/chunks/{es-CISK11Nv.js.map → es-CgaLnFYx.js.map} +1 -1
- package/dist/chunks/es-FkgECuCm.js +144 -0
- package/dist/chunks/es-FkgECuCm.js.map +1 -0
- package/dist/chunks/{fileValidation-c_iBg74s.js → fileValidation-C3WFaWU2.js} +2 -1
- package/dist/chunks/{fileValidation-c_iBg74s.js.map → fileValidation-C3WFaWU2.js.map} +1 -1
- package/dist/chunks/{grBadgeStyles-Cq0hH2Ls.js → grBadgeStyles-DrycBuKT.js} +13 -13
- package/dist/chunks/grBadgeStyles-DrycBuKT.js.map +1 -0
- package/dist/chunks/grButtonStyles-C7Yga_Q1.js +191 -0
- package/dist/chunks/grButtonStyles-C7Yga_Q1.js.map +1 -0
- package/dist/chunks/{grDropdownStyles-Bqx9hOzU.js → grDropdownStyles-B_-DKytw.js} +2 -2
- package/dist/chunks/{grDropdownStyles-Bqx9hOzU.js.map → grDropdownStyles-B_-DKytw.js.map} +1 -1
- package/dist/chunks/{grLoadingStyles-DmI-SJ3i.js.map → grLoadingStyles-R5sreH__.js.map} +1 -1
- package/dist/chunks/grModalEscStack-BXk-9mv7.js +43 -0
- package/dist/chunks/grModalEscStack-BXk-9mv7.js.map +1 -0
- package/dist/chunks/{grModalStyles-FgaKqx50.js → grModalStyles-DWd3i05Q.js} +6 -6
- package/dist/chunks/{grModalStyles-FgaKqx50.js.map → grModalStyles-DWd3i05Q.js.map} +1 -1
- package/dist/chunks/{grSelectStyles-AjWWl007.js → grSelectStyles-CLK5hRd3.js} +3 -3
- package/dist/chunks/grSelectStyles-CLK5hRd3.js.map +1 -0
- package/dist/chunks/{grStyle-D-gPHdyW.js → grStyle-Blc9otAx.js} +6 -6
- package/dist/chunks/grStyle-Blc9otAx.js.map +1 -0
- package/dist/chunks/{granularityI18n-D_7jowK2.js → granularityI18n-DoV7Ca2m.js} +1 -1
- package/dist/chunks/{granularityI18n-D_7jowK2.js.map → granularityI18n-DoV7Ca2m.js.map} +1 -1
- package/dist/chunks/info-Be2OccTu.js.map +1 -0
- package/dist/chunks/loader-circle-CfVLz7lb.js.map +1 -0
- package/dist/chunks/ru-Bl8CxpEa.js +144 -0
- package/dist/chunks/ru-Bl8CxpEa.js.map +1 -0
- package/dist/chunks/{safelist-_UVzJrgE2.js → safelist-CkF4v7DC.js} +3 -3
- package/dist/chunks/safelist-CkF4v7DC.js.map +1 -0
- package/dist/chunks/{safelist-DccvJqCE.js → safelist-Do2RtzLB.js} +3 -3
- package/dist/chunks/{safelist-DccvJqCE.js.map → safelist-Do2RtzLB.js.map} +1 -1
- package/dist/chunks/shared-B6Ay2081.js +174 -0
- package/dist/chunks/shared-B6Ay2081.js.map +1 -0
- package/dist/chunks/useAddonMeasurement-DM0akF4C.js +65 -0
- package/dist/chunks/useAddonMeasurement-DM0akF4C.js.map +1 -0
- package/dist/chunks/useEscapeToClose-C2t_S1gh.js +27 -0
- package/dist/chunks/useEscapeToClose-C2t_S1gh.js.map +1 -0
- package/dist/chunks/{useFloating-CLtbU7eD.js → useFloating-DtM6TyE4.js} +19 -4
- package/dist/chunks/{useFloating-CLtbU7eD.js.map → useFloating-DtM6TyE4.js.map} +1 -1
- package/dist/chunks/{transition-mJ3PZCHH.js → useScrollLock-K7kaP2Ud.js} +78 -13
- package/dist/chunks/useScrollLock-K7kaP2Ud.js.map +1 -0
- package/dist/chunks/x-2KXnqxiD.js.map +1 -0
- package/dist/chunks/x-circle-BCBURwyX.js.map +1 -0
- package/dist/components/GrAlert/chunks/{GrAlert-HyCjYJeL.js → GrAlert-DPJSU_fG.js} +40 -37
- package/dist/components/GrAlert/chunks/GrAlert-DPJSU_fG.js.map +1 -0
- package/dist/components/GrAlert/index.js +2 -2
- package/dist/components/GrAvatar/chunks/{GrAvatar-BjnPKNAL.js → GrAvatar-96CpTCq5.js} +2 -2
- package/dist/components/GrAvatar/chunks/{GrAvatar-BjnPKNAL.js.map → GrAvatar-96CpTCq5.js.map} +1 -1
- package/dist/components/GrAvatar/index.js +2 -2
- package/dist/components/GrBadge/chunks/{GrBadge-Cs_cVfuO.js → GrBadge-B77XlaqE.js} +3 -3
- package/dist/components/GrBadge/chunks/{GrBadge-Cs_cVfuO.js.map → GrBadge-B77XlaqE.js.map} +1 -1
- package/dist/components/GrBadge/index.js +2 -2
- package/dist/components/GrBadgeWrap/chunks/{GrBadgeWrap-BEnE9DyJ.js → GrBadgeWrap-CcktMOdg.js} +2 -2
- package/dist/components/GrBadgeWrap/chunks/{GrBadgeWrap-BEnE9DyJ.js.map → GrBadgeWrap-CcktMOdg.js.map} +1 -1
- package/dist/components/GrBadgeWrap/index.js +2 -2
- package/dist/components/GrBottomNav/chunks/{GrBottomNav-XPHwd7UQ.js.map → GrBottomNav-usuMgG8_.js.map} +1 -1
- package/dist/components/GrBottomNav/index.js +2 -2
- package/dist/components/GrButton/chunks/GrButton-BlffdeJr.js +124 -0
- package/dist/components/GrButton/chunks/GrButton-BlffdeJr.js.map +1 -0
- package/dist/components/GrButton/index.js +4 -4
- package/dist/components/GrButtonGroup/chunks/{GrButtonGroup-CPOH6V-P.js → GrButtonGroup-Bs9dEKfA.js} +1 -1
- package/dist/components/GrButtonGroup/chunks/GrButtonGroup-Bs9dEKfA.js.map +1 -0
- package/dist/components/GrButtonGroup/index.js +2 -2
- package/dist/components/GrCard/chunks/{GrCard-6yk1RRAQ.js → GrCard-DUNMkuHW.js} +3 -3
- package/dist/components/GrCard/chunks/GrCard-DUNMkuHW.js.map +1 -0
- package/dist/components/GrCard/index.js +2 -2
- package/dist/components/GrCheckbox/chunks/{GrCheckbox-Bt3d7ckE.js → GrCheckbox-DJhzZZdO.js} +66 -18
- package/dist/components/GrCheckbox/chunks/GrCheckbox-DJhzZZdO.js.map +1 -0
- package/dist/components/GrCheckbox/index.js +2 -2
- package/dist/components/GrCollapse/chunks/{GrCollapse-CU94BTAR.js → GrCollapse-CPPLh_xU.js} +12 -12
- package/dist/components/GrCollapse/chunks/{GrCollapse-CU94BTAR.js.map → GrCollapse-CPPLh_xU.js.map} +1 -1
- package/dist/components/GrCollapse/index.js +2 -2
- package/dist/components/GrConfirmDialog/chunks/{GrConfirmDialog-Bi2KLumL.js → GrConfirmDialog-D8CkOtqv.js} +20 -14
- package/dist/components/GrConfirmDialog/chunks/GrConfirmDialog-D8CkOtqv.js.map +1 -0
- package/dist/components/GrConfirmDialog/index.js +2 -2
- package/dist/components/GrDataTable/chunks/{GrDataTable-ClcYiyc8.js → GrDataTable-Ds5OeGat.js} +49 -23
- package/dist/components/GrDataTable/chunks/GrDataTable-Ds5OeGat.js.map +1 -0
- package/dist/components/GrDataTable/index.js +2 -2
- package/dist/components/GrDialog/chunks/{GrDialog-CxK4Lj4F.js → GrDialog-Ctucxju9.js} +14 -12
- package/dist/components/GrDialog/chunks/GrDialog-Ctucxju9.js.map +1 -0
- package/dist/components/GrDialog/index.js +3 -3
- package/dist/components/GrDialogService/chunks/GrDialogService-CU1Fbonc.js +425 -0
- package/dist/components/GrDialogService/chunks/GrDialogService-CU1Fbonc.js.map +1 -0
- package/dist/components/GrDialogService/index.js +3 -0
- package/dist/components/GrDivider/chunks/GrDivider-5bcE-BB4.js +54 -0
- package/dist/components/GrDivider/chunks/GrDivider-5bcE-BB4.js.map +1 -0
- package/dist/components/GrDivider/index.js +3 -0
- package/dist/components/GrDrawer/chunks/{GrDrawer-BW3wtI7h.js → GrDrawer-SLGKCY2A.js} +54 -26
- package/dist/components/GrDrawer/chunks/GrDrawer-SLGKCY2A.js.map +1 -0
- package/dist/components/GrDrawer/index.js +2 -2
- package/dist/components/GrDropdown/chunks/GrDropdown-BnDMYP8v.js +181 -0
- package/dist/components/GrDropdown/chunks/GrDropdown-BnDMYP8v.js.map +1 -0
- package/dist/components/GrDropdown/index.js +2 -2
- package/dist/components/GrDropdownMenu/chunks/{GrDropdownMenu-CJom_-c2.js → GrDropdownMenu--g9Vofcq.js} +10 -10
- package/dist/components/GrDropdownMenu/chunks/{GrDropdownMenu-CJom_-c2.js.map → GrDropdownMenu--g9Vofcq.js.map} +1 -1
- package/dist/components/GrDropdownMenu/index.js +2 -2
- package/dist/components/GrEmptyState/chunks/{GrEmptyState-yOuZW7-t.js → GrEmptyState-CA3BiTV7.js} +3 -3
- package/dist/components/GrEmptyState/chunks/{GrEmptyState-yOuZW7-t.js.map → GrEmptyState-CA3BiTV7.js.map} +1 -1
- package/dist/components/GrEmptyState/index.js +2 -2
- package/dist/components/GrFileUpload/chunks/{GrFileUpload-CBKK3dgC.js → GrFileUpload-DvWPpiJS.js} +26 -23
- package/dist/components/GrFileUpload/chunks/GrFileUpload-DvWPpiJS.js.map +1 -0
- package/dist/components/GrFileUpload/index.js +3 -3
- package/dist/components/GrFormField/chunks/GrFormField-DnfMHx_U.js +73 -0
- package/dist/components/GrFormField/chunks/GrFormField-DnfMHx_U.js.map +1 -0
- package/dist/components/GrFormField/index.js +4 -3
- package/dist/components/GrFormFile/chunks/{GrFormFile-CkR6cYqf.js → GrFormFile-CXcqqdvV.js} +38 -31
- package/dist/components/GrFormFile/chunks/GrFormFile-CXcqqdvV.js.map +1 -0
- package/dist/components/GrFormFile/index.js +2 -2
- package/dist/components/GrFormSection/chunks/{GrFormSection-dbyzqxYk.js → GrFormSection-Ce21jcgo.js} +1 -1
- package/dist/components/GrFormSection/chunks/{GrFormSection-dbyzqxYk.js.map → GrFormSection-Ce21jcgo.js.map} +1 -1
- package/dist/components/GrFormSection/index.js +2 -2
- package/dist/components/GrIcon/chunks/{GrIcon-BV7RBU_0.js → GrIcon-D9AWQLk2.js} +3 -3
- package/dist/components/GrIcon/chunks/{GrIcon-BV7RBU_0.js.map → GrIcon-D9AWQLk2.js.map} +1 -1
- package/dist/components/GrIcon/index.js +2 -2
- package/dist/components/GrImageViewer/chunks/GrImageViewer-Dla9IBkd.js +650 -0
- package/dist/components/GrImageViewer/chunks/GrImageViewer-Dla9IBkd.js.map +1 -0
- package/dist/components/GrImageViewer/index.js +2 -2
- package/dist/components/GrInput/chunks/GrInput-B8dd3JaA.js +334 -0
- package/dist/components/GrInput/chunks/GrInput-B8dd3JaA.js.map +1 -0
- package/dist/components/GrInput/index.js +2 -2
- package/dist/components/GrInputTag/chunks/{GrInputTag-g-KdUI_Z.js → GrInputTag-zMgFqp2g.js} +27 -24
- package/dist/components/GrInputTag/chunks/GrInputTag-zMgFqp2g.js.map +1 -0
- package/dist/components/GrInputTag/index.js +2 -2
- package/dist/components/GrKbd/chunks/GrKbd-BEoYxWhE.js +22 -0
- package/dist/components/GrKbd/chunks/GrKbd-BEoYxWhE.js.map +1 -0
- package/dist/components/GrKbd/index.js +3 -0
- package/dist/components/GrLink/chunks/{GrLink-KSTmk9Yq.js → GrLink-CYUe-Q8k.js} +14 -7
- package/dist/components/GrLink/chunks/GrLink-CYUe-Q8k.js.map +1 -0
- package/dist/components/GrLink/index.js +2 -2
- package/dist/components/GrList/chunks/{GrList-CUW2sRm_.js → GrList-Dx772Ns4.js} +1 -1
- package/dist/components/GrList/chunks/{GrList-CUW2sRm_.js.map → GrList-Dx772Ns4.js.map} +1 -1
- package/dist/components/GrList/index.js +2 -2
- package/dist/components/GrLoading/chunks/{GrLoading-mfyfghxs.js → GrLoading--X_7rdbb.js} +7 -7
- package/dist/components/GrLoading/chunks/{GrLoading-mfyfghxs.js.map → GrLoading--X_7rdbb.js.map} +1 -1
- package/dist/components/GrLoading/index.js +2 -2
- package/dist/components/GrModal/chunks/{GrModal-CSOL3fHQ.js → GrModal-C0GZrHN3.js} +9 -62
- package/dist/components/GrModal/chunks/GrModal-C0GZrHN3.js.map +1 -0
- package/dist/components/GrModal/index.js +3 -3
- package/dist/components/GrNavbar/chunks/{GrNavbar-CHxwtFIR.js → GrNavbar-DW3MiIIf.js} +6 -6
- package/dist/components/GrNavbar/chunks/{GrNavbar-CHxwtFIR.js.map → GrNavbar-DW3MiIIf.js.map} +1 -1
- package/dist/components/GrNavbar/index.js +2 -2
- package/dist/components/GrNumberInput/chunks/{GrNumberInput-ClPBwkxx.js → GrNumberInput-DxCEvL7V.js} +144 -72
- package/dist/components/GrNumberInput/chunks/GrNumberInput-DxCEvL7V.js.map +1 -0
- package/dist/components/GrNumberInput/index.js +2 -2
- package/dist/components/GrPagination/chunks/{GrPagination-D2GS0ShQ.js → GrPagination-mlyfLjQY.js} +76 -25
- package/dist/components/GrPagination/chunks/GrPagination-mlyfLjQY.js.map +1 -0
- package/dist/components/GrPagination/index.js +2 -2
- package/dist/components/GrProgressBar/chunks/{GrProgressBar-BBSFpVEq.js → GrProgressBar-CC3z-Zqp.js} +3 -3
- package/dist/components/GrProgressBar/chunks/{GrProgressBar-BBSFpVEq.js.map → GrProgressBar-CC3z-Zqp.js.map} +1 -1
- package/dist/components/GrProgressBar/index.js +2 -2
- package/dist/components/GrPromptDialog/chunks/{GrPromptDialog-D_TFqKsF.js → GrPromptDialog-C-_BMNuY.js} +31 -23
- package/dist/components/GrPromptDialog/chunks/GrPromptDialog-C-_BMNuY.js.map +1 -0
- package/dist/components/GrPromptDialog/index.js +2 -2
- package/dist/components/GrRadio/chunks/{GrRadio-CSbTnrom.js → GrRadio-Dr-pvs_9.js} +6 -6
- package/dist/components/GrRadio/chunks/{GrRadio-CSbTnrom.js.map → GrRadio-Dr-pvs_9.js.map} +1 -1
- package/dist/components/GrRadio/index.js +2 -2
- package/dist/components/GrRadioGroup/chunks/{GrRadioGroup-DsrnTygR.js → GrRadioGroup-nOdvfV_g.js} +3 -3
- package/dist/components/GrRadioGroup/chunks/{GrRadioGroup-DsrnTygR.js.map → GrRadioGroup-nOdvfV_g.js.map} +1 -1
- package/dist/components/GrRadioGroup/index.js +2 -2
- package/dist/components/GrResponseErrorBanner/chunks/{GrResponseErrorBanner-K1uZ1mYD.js → GrResponseErrorBanner-BWJNe2gr.js} +21 -18
- package/dist/components/GrResponseErrorBanner/chunks/GrResponseErrorBanner-BWJNe2gr.js.map +1 -0
- package/dist/components/GrResponseErrorBanner/chunks/{GrResponseErrorBanner-bM8FC_Bw.js → GrResponseErrorBanner-Cdu9ekK9.js} +5 -5
- package/dist/components/GrResponseErrorBanner/chunks/{GrResponseErrorBanner-bM8FC_Bw.js.map → GrResponseErrorBanner-Cdu9ekK9.js.map} +1 -1
- package/dist/components/GrResponseErrorBanner/index.js +2 -2
- package/dist/components/GrSegmented/chunks/{GrSegmented-DpZGs4VX.js → GrSegmented-C1y0UXpQ.js} +5 -5
- package/dist/components/GrSegmented/chunks/{GrSegmented-DpZGs4VX.js.map → GrSegmented-C1y0UXpQ.js.map} +1 -1
- package/dist/components/GrSegmented/index.js +2 -2
- package/dist/components/GrSelect/chunks/{GrSelect-DSz7jvUb.js → GrSelect-BVCmitqa.js} +227 -87
- package/dist/components/GrSelect/chunks/GrSelect-BVCmitqa.js.map +1 -0
- package/dist/components/GrSelect/index.js +2 -2
- package/dist/components/GrSidebar/chunks/GrSidebar-DkWozzwA.js +238 -0
- package/dist/components/GrSidebar/chunks/GrSidebar-DkWozzwA.js.map +1 -0
- package/dist/components/GrSidebar/index.js +3 -3
- package/dist/components/GrSkeleton/chunks/{GrSkeleton-B05K0QKh.js → GrSkeleton-DsN-_CDZ.js} +1 -1
- package/dist/components/GrSkeleton/chunks/{GrSkeleton-B05K0QKh.js.map → GrSkeleton-DsN-_CDZ.js.map} +1 -1
- package/dist/components/GrSkeleton/index.js +2 -2
- package/dist/components/GrSwitch/chunks/{GrSwitch-CSRtcN5-.js → GrSwitch-DAioyccZ.js} +10 -10
- package/dist/components/GrSwitch/chunks/{GrSwitch-CSRtcN5-.js.map → GrSwitch-DAioyccZ.js.map} +1 -1
- package/dist/components/GrSwitch/index.js +2 -2
- package/dist/components/GrTabPanels/chunks/GrTabPanels-DbKybwe-.js +68 -0
- package/dist/components/GrTabPanels/chunks/GrTabPanels-DbKybwe-.js.map +1 -0
- package/dist/components/GrTabPanels/index.js +3 -0
- package/dist/components/GrTable/chunks/{GrTable-dTWUxzRm.js → GrTable-Db3hRnKA.js} +3 -3
- package/dist/components/GrTable/chunks/{GrTable-dTWUxzRm.js.map → GrTable-Db3hRnKA.js.map} +1 -1
- package/dist/components/GrTable/index.js +2 -2
- package/dist/components/GrTabs/chunks/{GrTabs-BfeVNMFJ.js → GrTabs-DsLwWoRz.js} +9 -4
- package/dist/components/GrTabs/chunks/GrTabs-DsLwWoRz.js.map +1 -0
- package/dist/components/GrTabs/index.js +2 -2
- package/dist/components/GrTextarea/chunks/{GrTextarea-CBBzpF2S.js → GrTextarea-CKukGlNl.js} +17 -7
- package/dist/components/GrTextarea/chunks/GrTextarea-CKukGlNl.js.map +1 -0
- package/dist/components/GrTextarea/index.js +2 -2
- package/dist/components/GrToaster/chunks/GrToaster-L2cu6cSR.js +189 -0
- package/dist/components/GrToaster/chunks/GrToaster-L2cu6cSR.js.map +1 -0
- package/dist/components/GrToaster/index.js +2 -2
- package/dist/components/GrTooltip/chunks/{GrTooltip-BC-40SA5.js → GrTooltip-BeyZ8ssR.js} +10 -10
- package/dist/components/GrTooltip/chunks/{GrTooltip-BC-40SA5.js.map → GrTooltip-BeyZ8ssR.js.map} +1 -1
- package/dist/components/GrTooltip/index.js +2 -2
- package/dist/components/GrTree/chunks/{GrTree-uZr5SyQI.js → GrTree-B2_yW6g1.js} +145 -41
- package/dist/components/GrTree/chunks/GrTree-B2_yW6g1.js.map +1 -0
- package/dist/components/GrTree/index.js +2 -2
- package/dist/components/GrTreeSelect/chunks/{GrTreeSelect-CytivcCa.js → GrTreeSelect-0aM62xyu.js} +16 -16
- package/dist/components/GrTreeSelect/chunks/{GrTreeSelect-CytivcCa.js.map → GrTreeSelect-0aM62xyu.js.map} +1 -1
- package/dist/components/GrTreeSelect/index.js +2 -2
- package/dist/composables/useTheme.js +48 -8
- package/dist/composables/useTheme.js.map +1 -1
- package/dist/composables/useToast.js +88 -26
- package/dist/composables/useToast.js.map +1 -1
- package/dist/directives/autofocus.js.map +1 -1
- package/dist/directives/autosize.js.map +1 -1
- package/dist/directives/clickOutside.js.map +1 -1
- package/dist/directives/dropzone.js +6 -5
- package/dist/directives/dropzone.js.map +1 -1
- package/dist/directives/hotkey.js +24 -7
- package/dist/directives/hotkey.js.map +1 -1
- package/dist/directives/loading.js +2 -2
- package/dist/directives/loading.js.map +1 -1
- package/dist/fileValidation/index.js +1 -1
- package/dist/granular-provider-node.js +7 -7
- package/dist/granular-provider-node.js.map +1 -1
- package/dist/granular-provider.js +1 -1
- package/dist/granular-provider.js.map +1 -1
- package/dist/i18n/all.js +1 -1
- package/dist/i18n/all.js.map +1 -1
- package/dist/i18n/index.js +2 -2
- package/dist/index.js +116 -534
- package/dist/index.js.map +1 -1
- package/dist/styles/base.css +54 -0
- package/dist/styles/index.css +15 -0
- package/dist/styles/preflight.css +33 -0
- package/dist/styles/themes/dark.css +107 -0
- package/dist/styles/themes/light.css +98 -0
- package/dist/styles/tokens.css +135 -0
- package/dist/types/src/components/GrButton/GrButton.vue.d.ts +25 -2
- package/dist/types/src/components/GrCheckbox/GrCheckbox.vue.d.ts +7 -2
- package/dist/types/src/components/GrConfirmDialog/GrConfirmDialog.vue.d.ts +8 -8
- package/dist/types/src/components/GrDataTable/GrDataTable.vue.d.ts +29 -5
- package/dist/types/src/components/GrDialog/GrDialog.vue.d.ts +2 -2
- package/dist/types/src/components/GrDialog/GrDialogHeader.vue.d.ts +2 -2
- package/dist/types/src/components/GrDivider/GrDivider.vue.d.ts +58 -0
- package/dist/types/src/components/GrDivider/config.d.ts +1 -0
- package/dist/types/src/components/GrDivider/index.d.ts +4 -0
- package/dist/types/src/components/GrDrawer/GrDrawer.vue.d.ts +6 -6
- package/dist/types/src/components/GrDropdown/GrDropdown.vue.d.ts +7 -0
- package/dist/types/src/components/GrDropdownMenu/GrDropdownMenu.vue.d.ts +6 -0
- package/dist/types/src/components/GrFileUpload/GrFileUpload.vue.d.ts +4 -4
- package/dist/types/src/components/GrFormField/GrFormField.vue.d.ts +15 -2
- package/dist/types/src/components/GrFormField/context.d.ts +20 -0
- package/dist/types/src/components/GrFormField/index.d.ts +1 -0
- package/dist/types/src/components/GrFormFile/GrFormFile.vue.d.ts +11 -11
- package/dist/types/src/components/GrImageViewer/GrImageViewer.vue.d.ts +22 -18
- package/dist/types/src/components/GrImageViewer/composables/useViewerKeyboard.d.ts +20 -0
- package/dist/types/src/components/GrImageViewer/composables/useWheelGesture.d.ts +16 -0
- package/dist/types/src/components/GrImageViewer/composables/useZoomPan.d.ts +50 -0
- package/dist/types/src/components/GrInput/GrInput.vue.d.ts +55 -2
- package/dist/types/src/components/GrInput/grInputStyles.d.ts +3 -3
- package/dist/types/src/components/GrInputTag/GrInputTag.vue.d.ts +2 -2
- package/dist/types/src/components/GrKbd/GrKbd.vue.d.ts +46 -0
- package/dist/types/src/components/GrKbd/config.d.ts +1 -0
- package/dist/types/src/components/GrKbd/index.d.ts +4 -0
- package/dist/types/src/components/GrLink/GrLink.vue.d.ts +12 -6
- package/dist/types/src/components/GrLink/grLinkStyles.d.ts +31 -3
- package/dist/types/src/components/GrLink/index.d.ts +1 -1
- package/dist/types/src/components/GrLoading/GrLoading.vue.d.ts +1 -1
- package/dist/types/src/components/GrModal/grModalStyles.d.ts +1 -1
- package/dist/types/src/components/GrNumberInput/GrNumberInput.vue.d.ts +33 -4
- package/dist/types/src/components/GrPagination/GrPagination.vue.d.ts +13 -1
- package/dist/types/src/components/GrPromptDialog/GrPromptDialog.vue.d.ts +12 -12
- package/dist/types/src/components/GrSegmented/GrSegmented.vue.d.ts +1 -1
- package/dist/types/src/components/GrSegmented/grSegmentedStyles.d.ts +5 -5
- package/dist/types/src/components/GrSelect/GrSelect.vue.d.ts +3 -3
- package/dist/types/src/components/GrSelect/grSelectStyles.d.ts +2 -1
- package/dist/types/src/components/GrSidebar/GrSidebar.vue.d.ts +33 -10
- package/dist/types/src/components/GrSidebar/GrSidebarItem.vue.d.ts +64 -0
- package/dist/types/src/components/GrSidebar/index.d.ts +1 -0
- package/dist/types/src/components/GrSidebar/sidebarContext.d.ts +9 -0
- package/dist/types/src/components/GrSwitch/GrSwitch.vue.d.ts +1 -1
- package/dist/types/src/components/GrSwitch/grSwitchStyles.d.ts +2 -2
- package/dist/types/src/components/GrTabPanels/GrTabPanel.vue.d.ts +46 -0
- package/dist/types/src/components/GrTabPanels/GrTabPanels.vue.d.ts +51 -0
- package/dist/types/src/components/GrTabPanels/config.d.ts +5 -0
- package/dist/types/src/components/GrTabPanels/context.d.ts +9 -0
- package/dist/types/src/components/GrTabPanels/index.d.ts +6 -0
- package/dist/types/src/components/GrTabs/GrTabs.vue.d.ts +6 -0
- package/dist/types/src/components/GrToaster/GrToaster.vue.d.ts +9 -4
- package/dist/types/src/components/GrTree/GrTree.vue.d.ts +1 -1
- package/dist/types/src/components/GrTree/grTreeInteractionContext.d.ts +2 -0
- package/dist/types/src/components/GrTreeSelect/GrTreeSelect.vue.d.ts +2 -2
- package/dist/types/src/components/GrTreeSelect/grTreeSelectStyles.d.ts +1 -1
- package/dist/types/src/components/GrTreeSelect/grTreeSelectTypes.d.ts +1 -1
- package/dist/types/src/composables/internal/useAddonMeasurement.d.ts +18 -0
- package/dist/types/src/composables/internal/useEscapeToClose.d.ts +11 -0
- package/dist/types/src/composables/internal/useScrollLock.d.ts +24 -0
- package/dist/types/src/composables/useTheme.d.ts +5 -2
- package/dist/types/src/composables/useToast.d.ts +33 -1
- package/dist/types/src/directives/hotkey.d.ts +14 -0
- package/dist/types/src/granular-provider/shared.d.ts +4 -3
- package/dist/types/src/i18n/messages/en.d.ts +130 -0
- package/dist/types/src/i18n/messages/es.d.ts +130 -0
- package/dist/types/src/i18n/messages/ru.d.ts +130 -0
- package/dist/types/src/index.d.ts +5 -2
- package/dist/vue/index.js.map +1 -1
- package/dist/web-types.json +4922 -0
- package/package.json +38 -20
- package/dist/chunks/arrow-up-DZdIrpaF.js.map +0 -1
- package/dist/chunks/config-A-iei0Ux.js.map +0 -1
- package/dist/chunks/config-B0uUCaJW.js.map +0 -1
- package/dist/chunks/config-BLa1TEGm2.js.map +0 -1
- package/dist/chunks/config-BduXEXjt.js.map +0 -1
- package/dist/chunks/config-BuoIngj32.js.map +0 -1
- package/dist/chunks/config-C8MM2Dg0.js.map +0 -1
- package/dist/chunks/config-CWTfyPNI.js.map +0 -1
- package/dist/chunks/config-D_Pafsjq2.js.map +0 -1
- package/dist/chunks/config-DkeLkzxj2.js.map +0 -1
- package/dist/chunks/config-NkbzVFZo.js +0 -59
- package/dist/chunks/config-NkbzVFZo.js.map +0 -1
- package/dist/chunks/config-RjfJFv1Y.js.map +0 -1
- package/dist/chunks/config-hSlCXHoG.js.map +0 -1
- package/dist/chunks/config-nrOj9p6I.js.map +0 -1
- package/dist/chunks/en-B_fSdoTi.js +0 -72
- package/dist/chunks/en-B_fSdoTi.js.map +0 -1
- package/dist/chunks/es-DKP6fLir.js +0 -72
- package/dist/chunks/es-DKP6fLir.js.map +0 -1
- package/dist/chunks/grBadgeStyles-Cq0hH2Ls.js.map +0 -1
- package/dist/chunks/grButtonStyles-DKuXUemw.js +0 -191
- package/dist/chunks/grButtonStyles-DKuXUemw.js.map +0 -1
- package/dist/chunks/grSelectStyles-AjWWl007.js.map +0 -1
- package/dist/chunks/grStyle-D-gPHdyW.js.map +0 -1
- package/dist/chunks/info-C0bHmdZq.js.map +0 -1
- package/dist/chunks/loader-circle-BUntgosj.js.map +0 -1
- package/dist/chunks/ru-S6VlnurJ.js +0 -72
- package/dist/chunks/ru-S6VlnurJ.js.map +0 -1
- package/dist/chunks/safelist-_UVzJrgE2.js.map +0 -1
- package/dist/chunks/shared-DpjTvFno.js +0 -169
- package/dist/chunks/shared-DpjTvFno.js.map +0 -1
- package/dist/chunks/transition-mJ3PZCHH.js.map +0 -1
- package/dist/chunks/x-Pa6C2hwi.js.map +0 -1
- package/dist/chunks/x-circle-DQSlBLmX.js.map +0 -1
- package/dist/components/GrAlert/chunks/GrAlert-HyCjYJeL.js.map +0 -1
- package/dist/components/GrButton/chunks/GrButton-CPDKonoB.js +0 -83
- package/dist/components/GrButton/chunks/GrButton-CPDKonoB.js.map +0 -1
- package/dist/components/GrButtonGroup/chunks/GrButtonGroup-CPOH6V-P.js.map +0 -1
- package/dist/components/GrCard/chunks/GrCard-6yk1RRAQ.js.map +0 -1
- package/dist/components/GrCheckbox/chunks/GrCheckbox-Bt3d7ckE.js.map +0 -1
- package/dist/components/GrConfirmDialog/chunks/GrConfirmDialog-Bi2KLumL.js.map +0 -1
- package/dist/components/GrDataTable/chunks/GrDataTable-ClcYiyc8.js.map +0 -1
- package/dist/components/GrDialog/chunks/GrDialog-CxK4Lj4F.js.map +0 -1
- package/dist/components/GrDrawer/chunks/GrDrawer-BW3wtI7h.js.map +0 -1
- package/dist/components/GrDropdown/chunks/GrDropdown-BGKeEfZ1.js +0 -105
- package/dist/components/GrDropdown/chunks/GrDropdown-BGKeEfZ1.js.map +0 -1
- package/dist/components/GrFileUpload/chunks/GrFileUpload-CBKK3dgC.js.map +0 -1
- package/dist/components/GrFormField/chunks/GrFormField-U7c_aDPJ.js +0 -35
- package/dist/components/GrFormField/chunks/GrFormField-U7c_aDPJ.js.map +0 -1
- package/dist/components/GrFormFile/chunks/GrFormFile-CkR6cYqf.js.map +0 -1
- package/dist/components/GrImageViewer/chunks/GrImageViewer-BG40DsHa.js +0 -550
- package/dist/components/GrImageViewer/chunks/GrImageViewer-BG40DsHa.js.map +0 -1
- package/dist/components/GrInput/chunks/GrInput-gwFQ1sk4.js +0 -211
- package/dist/components/GrInput/chunks/GrInput-gwFQ1sk4.js.map +0 -1
- package/dist/components/GrInputTag/chunks/GrInputTag-g-KdUI_Z.js.map +0 -1
- package/dist/components/GrLink/chunks/GrLink-KSTmk9Yq.js.map +0 -1
- package/dist/components/GrModal/chunks/GrModal-CSOL3fHQ.js.map +0 -1
- package/dist/components/GrNumberInput/chunks/GrNumberInput-ClPBwkxx.js.map +0 -1
- package/dist/components/GrPagination/chunks/GrPagination-D2GS0ShQ.js.map +0 -1
- package/dist/components/GrPromptDialog/chunks/GrPromptDialog-D_TFqKsF.js.map +0 -1
- package/dist/components/GrResponseErrorBanner/chunks/GrResponseErrorBanner-K1uZ1mYD.js.map +0 -1
- package/dist/components/GrSelect/chunks/GrSelect-DSz7jvUb.js.map +0 -1
- package/dist/components/GrSidebar/chunks/GrSidebar-BW8LRMZ-.js +0 -44
- package/dist/components/GrSidebar/chunks/GrSidebar-BW8LRMZ-.js.map +0 -1
- package/dist/components/GrTabs/chunks/GrTabs-BfeVNMFJ.js.map +0 -1
- package/dist/components/GrTextarea/chunks/GrTextarea-CBBzpF2S.js.map +0 -1
- package/dist/components/GrToaster/chunks/GrToaster-C6_iHk2J.js +0 -172
- package/dist/components/GrToaster/chunks/GrToaster-C6_iHk2J.js.map +0 -1
- package/dist/components/GrTree/chunks/GrTree-uZr5SyQI.js.map +0 -1
- /package/dist/chunks/{_plugin-vue_export-helper-DQR7Sy7Q.js → _plugin-vue_export-helper-BOaGB7Aw.js} +0 -0
- /package/dist/chunks/{adapter-BqqjEZGU.js → adapter-CAOxmn2G.js} +0 -0
- /package/dist/chunks/{arrow-up-DZdIrpaF.js → arrow-up-C_G4jg8M.js} +0 -0
- /package/dist/chunks/{classTokens-BPeBXNzu.js → classTokens-BzazaERD.js} +0 -0
- /package/dist/chunks/{config-DZrlovR42.js → config-8Pcutu1j2.js} +0 -0
- /package/dist/chunks/{config-VJuoznpH.js → config-B0qIpo8m.js} +0 -0
- /package/dist/chunks/{config-DbghHyY_.js → config-BEegFP74.js} +0 -0
- /package/dist/chunks/{config-BeBsN0c12.js → config-BLHqZhy-2.js} +0 -0
- /package/dist/chunks/{config-BV4vBzdm.js → config-BNu8lFQB.js} +0 -0
- /package/dist/chunks/{config-DhQc1TRY.js → config-BUHuGBik.js} +0 -0
- /package/dist/chunks/{config-CPSdAjUi.js → config-BWGGp7uV.js} +0 -0
- /package/dist/chunks/{config-BduXEXjt.js → config-BXtAmU3s2.js} +0 -0
- /package/dist/chunks/{config-CzgNEHKi.js → config-Bah4oHwL.js} +0 -0
- /package/dist/chunks/{config-lMDE_8A5.js → config-C86UzUYf.js} +0 -0
- /package/dist/chunks/{config-BgBWt9-A.js → config-C9AcVDkv.js} +0 -0
- /package/dist/chunks/{config-BuoIngj32.js → config-CGHLoBlH.js} +0 -0
- /package/dist/chunks/{config-ChQxl75m.js → config-CThzliFi.js} +0 -0
- /package/dist/chunks/{config-DDwBSoc_.js → config-Cb2PAlSD.js} +0 -0
- /package/dist/chunks/{config-C5-ujXCI.js → config-D7GZO-Dx.js} +0 -0
- /package/dist/chunks/{config-CUwF4E4R.js → config-DBmdgoVf.js} +0 -0
- /package/dist/chunks/{config-C9MblwGq.js → config-DICOd-2X.js} +0 -0
- /package/dist/chunks/{config-BLa1TEGm2.js → config-DpqOnJiz.js} +0 -0
- /package/dist/chunks/{config-V3LF-b_F.js → config-Dxuwwepq.js} +0 -0
- /package/dist/chunks/{config-Doa_gU40.js → config-HZto2PVy.js} +0 -0
- /package/dist/chunks/{config-Dl5aZ5VR.js → config-JOtB4mzs.js} +0 -0
- /package/dist/chunks/{config-CWTfyPNI.js → config-JpHA4Xx02.js} +0 -0
- /package/dist/chunks/{config-B3dn-gdC.js → config-PFg39mYo.js} +0 -0
- /package/dist/chunks/{config-Bh4NWWsQ.js → config-QaIc_gRa.js} +0 -0
- /package/dist/chunks/{config-vcDVCYXo.js → config-U4m9PSql.js} +0 -0
- /package/dist/chunks/{config-C_q_4FrU.js → config-ZiXWIRBX.js} +0 -0
- /package/dist/chunks/{config-DDUPnue12.js → config-ipvU0lzP2.js} +0 -0
- /package/dist/chunks/{config-D5ek7VSi.js → config-xR4XVmcy.js} +0 -0
- /package/dist/chunks/{dialogShared-BtXUk6Zc.js → dialogShared-CxW62PQE.js} +0 -0
- /package/dist/chunks/{grLoadingStyles-DmI-SJ3i.js → grLoadingStyles-R5sreH__.js} +0 -0
- /package/dist/chunks/{info-C0bHmdZq.js → info-Be2OccTu.js} +0 -0
- /package/dist/chunks/{loader-circle-BUntgosj.js → loader-circle-CfVLz7lb.js} +0 -0
- /package/dist/chunks/{x-Pa6C2hwi.js → x-2KXnqxiD.js} +0 -0
- /package/dist/chunks/{x-circle-DQSlBLmX.js → x-circle-BCBURwyX.js} +0 -0
- /package/dist/components/GrBottomNav/chunks/{GrBottomNav-XPHwd7UQ.js → GrBottomNav-usuMgG8_.js} +0 -0
|
@@ -1,32 +1,48 @@
|
|
|
1
|
-
import { t as useGranularityTranslations } from "../../../chunks/granularityI18n-
|
|
2
|
-
import {
|
|
1
|
+
import { t as useGranularityTranslations } from "../../../chunks/granularityI18n-DoV7Ca2m.js";
|
|
2
|
+
import { n as useGrFormFieldContext } from "../../../chunks/context-DdNIxa1w.js";
|
|
3
|
+
import { t as GrInput_default } from "../../GrInput/chunks/GrInput-B8dd3JaA.js";
|
|
3
4
|
import { vClickOutside } from "../../../directives/clickOutside.js";
|
|
4
|
-
import { t as useFloating } from "../../../chunks/useFloating-
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { t as useFloating } from "../../../chunks/useFloating-DtM6TyE4.js";
|
|
6
|
+
import { t as useEscapeToClose } from "../../../chunks/useEscapeToClose-C2t_S1gh.js";
|
|
7
|
+
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-CLK5hRd3.js";
|
|
8
|
+
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";
|
|
7
9
|
//#region src/components/GrSelect/GrSelect.vue?vue&type=script&setup=true&lang.ts
|
|
8
10
|
var _hoisted_1 = [
|
|
9
|
-
"
|
|
11
|
+
"id",
|
|
10
12
|
"multiple",
|
|
11
13
|
"disabled",
|
|
12
|
-
"aria-label"
|
|
14
|
+
"aria-label",
|
|
15
|
+
"aria-invalid",
|
|
16
|
+
"aria-describedby",
|
|
17
|
+
"aria-required"
|
|
13
18
|
];
|
|
14
|
-
var _hoisted_2 =
|
|
15
|
-
|
|
16
|
-
value: ""
|
|
17
|
-
};
|
|
18
|
-
var _hoisted_3 = ["value"];
|
|
19
|
+
var _hoisted_2 = ["selected"];
|
|
20
|
+
var _hoisted_3 = ["value", "selected"];
|
|
19
21
|
var _hoisted_4 = ["label"];
|
|
20
|
-
var _hoisted_5 = [
|
|
21
|
-
|
|
22
|
+
var _hoisted_5 = [
|
|
23
|
+
"value",
|
|
24
|
+
"selected",
|
|
25
|
+
"disabled"
|
|
26
|
+
];
|
|
27
|
+
var _hoisted_6 = [
|
|
28
|
+
"value",
|
|
29
|
+
"selected",
|
|
30
|
+
"disabled"
|
|
31
|
+
];
|
|
22
32
|
var _hoisted_7 = {
|
|
23
33
|
key: 1,
|
|
24
|
-
"data-testid": "
|
|
25
|
-
class: "absolute top-1/2 -translate-y-1/2 right-3 text-[var(--muted-fg)] pointer-events-none"
|
|
34
|
+
"data-testid": "gr-select-chevron",
|
|
35
|
+
class: "absolute top-1/2 -translate-y-1/2 right-3 flex items-center text-[var(--muted-fg)] pointer-events-none"
|
|
26
36
|
};
|
|
27
37
|
var _hoisted_8 = [
|
|
38
|
+
"id",
|
|
28
39
|
"disabled",
|
|
29
40
|
"aria-label",
|
|
41
|
+
"aria-invalid",
|
|
42
|
+
"aria-describedby",
|
|
43
|
+
"aria-required",
|
|
44
|
+
"aria-controls",
|
|
45
|
+
"aria-activedescendant",
|
|
30
46
|
"aria-expanded"
|
|
31
47
|
];
|
|
32
48
|
var _hoisted_9 = { class: "min-w-0 flex-1" };
|
|
@@ -37,16 +53,23 @@ var _hoisted_10 = {
|
|
|
37
53
|
};
|
|
38
54
|
var _hoisted_11 = {
|
|
39
55
|
key: 1,
|
|
40
|
-
"data-testid": "
|
|
41
|
-
class: "shrink-0 text-[var(--muted-fg)] pointer-events-none"
|
|
56
|
+
"data-testid": "gr-select-chevron",
|
|
57
|
+
class: "shrink-0 flex items-center text-[var(--muted-fg)] pointer-events-none"
|
|
42
58
|
};
|
|
43
59
|
var _hoisted_12 = ["disabled", "aria-label"];
|
|
44
60
|
var _hoisted_13 = {
|
|
45
61
|
key: 0,
|
|
46
62
|
class: "p-2 border-b border-[var(--brd)]"
|
|
47
63
|
};
|
|
48
|
-
var _hoisted_14 = ["aria-multiselectable"];
|
|
49
|
-
var _hoisted_15 = [
|
|
64
|
+
var _hoisted_14 = ["id", "aria-multiselectable"];
|
|
65
|
+
var _hoisted_15 = [
|
|
66
|
+
"id",
|
|
67
|
+
"disabled",
|
|
68
|
+
"aria-selected",
|
|
69
|
+
"aria-disabled",
|
|
70
|
+
"onClick",
|
|
71
|
+
"onMousemove"
|
|
72
|
+
];
|
|
50
73
|
var _hoisted_16 = { class: "flex items-center gap-2 min-w-0" };
|
|
51
74
|
var _hoisted_17 = { class: "truncate" };
|
|
52
75
|
//#endregion
|
|
@@ -98,6 +121,11 @@ var GrSelect_default = /* @__PURE__ */ defineComponent({
|
|
|
98
121
|
const baseClassName = computed(() => props.view === "link" ? linkBaseClass : defaultBaseClass);
|
|
99
122
|
const rootClass = computed(() => props.view === "link" ? "relative inline-block align-baseline" : "relative w-full");
|
|
100
123
|
const emit = __emit;
|
|
124
|
+
const field = useGrFormFieldContext();
|
|
125
|
+
const resolvedId = computed(() => field?.id.value);
|
|
126
|
+
const isInvalid = computed(() => Boolean(field?.invalid.value));
|
|
127
|
+
const describedBy = computed(() => field?.describedById.value);
|
|
128
|
+
const isRequired = computed(() => Boolean(field?.required.value));
|
|
101
129
|
const optionsResolved = computed(() => props.options ?? []);
|
|
102
130
|
function isOptionGroup(item) {
|
|
103
131
|
return Array.isArray(item.options);
|
|
@@ -144,9 +172,13 @@ var GrSelect_default = /* @__PURE__ */ defineComponent({
|
|
|
144
172
|
if (hasSelection.value) return displayLabel.value;
|
|
145
173
|
return props.placeholder ?? "";
|
|
146
174
|
});
|
|
175
|
+
const effectiveOptionsView = computed(() => {
|
|
176
|
+
if (props.view === "link" && props.multiple && props.optionsView === "native") return "panel";
|
|
177
|
+
return props.optionsView;
|
|
178
|
+
});
|
|
147
179
|
const nativeCustomOptionVisible = computed(() => {
|
|
148
180
|
if (!props.allowCustomValue) return false;
|
|
149
|
-
if (
|
|
181
|
+
if (effectiveOptionsView.value !== "native") return false;
|
|
150
182
|
if (props.multiple) return false;
|
|
151
183
|
if (!props.options) return false;
|
|
152
184
|
if (modelSingle.value === "") return false;
|
|
@@ -170,29 +202,10 @@ var GrSelect_default = /* @__PURE__ */ defineComponent({
|
|
|
170
202
|
if (props.disabled) return;
|
|
171
203
|
open.value = !open.value;
|
|
172
204
|
}
|
|
173
|
-
|
|
174
|
-
if (e.key === "Escape") closeDropdown();
|
|
175
|
-
}
|
|
205
|
+
useEscapeToClose(open, closeDropdown);
|
|
176
206
|
watch(() => props.view, () => {
|
|
177
207
|
if (open.value) updateFloatingPosition();
|
|
178
208
|
});
|
|
179
|
-
watch(open, async (isOpen) => {
|
|
180
|
-
if (typeof document === "undefined") return;
|
|
181
|
-
document.removeEventListener("keydown", closeOnEscape);
|
|
182
|
-
if (isOpen) document.addEventListener("keydown", closeOnEscape);
|
|
183
|
-
if (!isOpen) {
|
|
184
|
-
customValue.value = "";
|
|
185
|
-
return;
|
|
186
|
-
}
|
|
187
|
-
if (props.allowCustomValue) {
|
|
188
|
-
await nextTick();
|
|
189
|
-
customInputRef.value?.focus();
|
|
190
|
-
}
|
|
191
|
-
}, { immediate: true });
|
|
192
|
-
onUnmounted(() => {
|
|
193
|
-
if (typeof document === "undefined") return;
|
|
194
|
-
document.removeEventListener("keydown", closeOnEscape);
|
|
195
|
-
});
|
|
196
209
|
const panelClasses = computed(() => {
|
|
197
210
|
return grSelectPanelClasses;
|
|
198
211
|
});
|
|
@@ -230,21 +243,21 @@ var GrSelect_default = /* @__PURE__ */ defineComponent({
|
|
|
230
243
|
for (const option of matched) items.push({
|
|
231
244
|
kind: "option",
|
|
232
245
|
option,
|
|
233
|
-
key: option.value
|
|
246
|
+
key: `${index}:${option.value}`
|
|
234
247
|
});
|
|
235
248
|
return;
|
|
236
249
|
}
|
|
237
250
|
if (matchesQuery(item, q)) items.push({
|
|
238
251
|
kind: "option",
|
|
239
252
|
option: item,
|
|
240
|
-
key: item.value
|
|
253
|
+
key: `${index}:${item.value}`
|
|
241
254
|
});
|
|
242
255
|
});
|
|
243
256
|
return items;
|
|
244
257
|
});
|
|
245
258
|
const canAddCustom = computed(() => {
|
|
246
259
|
if (!props.allowCustomValue) return false;
|
|
247
|
-
if (
|
|
260
|
+
if (effectiveOptionsView.value !== "panel") return false;
|
|
248
261
|
const v = customValue.value.trim();
|
|
249
262
|
if (!v) return false;
|
|
250
263
|
if (props.multiple) {
|
|
@@ -260,11 +273,15 @@ var GrSelect_default = /* @__PURE__ */ defineComponent({
|
|
|
260
273
|
function isSelected(value) {
|
|
261
274
|
return selectedValues.value.includes(value);
|
|
262
275
|
}
|
|
276
|
+
function isOptionDisabled(value) {
|
|
277
|
+
return flatOptions.value.find((o) => o.value === value)?.disabled === true;
|
|
278
|
+
}
|
|
263
279
|
function selectValue(value) {
|
|
264
280
|
emitValue(value);
|
|
265
281
|
if (props.closeOnSelect) closeDropdown();
|
|
266
282
|
}
|
|
267
283
|
function toggleValue(value) {
|
|
284
|
+
if (isOptionDisabled(value)) return;
|
|
268
285
|
if (!props.multiple) {
|
|
269
286
|
selectValue(value);
|
|
270
287
|
return;
|
|
@@ -281,19 +298,117 @@ var GrSelect_default = /* @__PURE__ */ defineComponent({
|
|
|
281
298
|
if (!v) return;
|
|
282
299
|
toggleValue(v);
|
|
283
300
|
}
|
|
301
|
+
const listboxId = useId();
|
|
302
|
+
const activeIndex = ref(-1);
|
|
303
|
+
function optionDomId(value) {
|
|
304
|
+
return `${listboxId}-opt-${value}`;
|
|
305
|
+
}
|
|
306
|
+
const navigableValues = computed(() => panelItems.value.filter((item) => item.kind === "option" && !item.option.disabled).map((item) => item.option.value));
|
|
307
|
+
const activeValue = computed(() => activeIndex.value >= 0 ? navigableValues.value[activeIndex.value] : void 0);
|
|
308
|
+
const activeDescendantId = computed(() => open.value && activeValue.value !== void 0 ? optionDomId(activeValue.value) : void 0);
|
|
309
|
+
function clampActive(index) {
|
|
310
|
+
const len = navigableValues.value.length;
|
|
311
|
+
if (len === 0) return -1;
|
|
312
|
+
return (index % len + len) % len;
|
|
313
|
+
}
|
|
314
|
+
async function scrollActiveIntoView() {
|
|
315
|
+
await nextTick();
|
|
316
|
+
const value = activeValue.value;
|
|
317
|
+
if (value === void 0) return;
|
|
318
|
+
document.getElementById(optionDomId(value))?.scrollIntoView?.({ block: "nearest" });
|
|
319
|
+
}
|
|
320
|
+
function setActive(index) {
|
|
321
|
+
activeIndex.value = clampActive(index);
|
|
322
|
+
scrollActiveIntoView();
|
|
323
|
+
}
|
|
324
|
+
function initActiveIndex() {
|
|
325
|
+
const selectedIdx = navigableValues.value.findIndex((v) => isSelected(v));
|
|
326
|
+
activeIndex.value = selectedIdx >= 0 ? selectedIdx : navigableValues.value.length ? 0 : -1;
|
|
327
|
+
}
|
|
328
|
+
function openDropdown() {
|
|
329
|
+
if (props.disabled || open.value) return;
|
|
330
|
+
open.value = true;
|
|
331
|
+
}
|
|
332
|
+
let typeaheadBuffer = "";
|
|
333
|
+
let typeaheadTimer = null;
|
|
334
|
+
function typeahead(char) {
|
|
335
|
+
typeaheadBuffer += char.toLowerCase();
|
|
336
|
+
if (typeaheadTimer) clearTimeout(typeaheadTimer);
|
|
337
|
+
typeaheadTimer = setTimeout(() => {
|
|
338
|
+
typeaheadBuffer = "";
|
|
339
|
+
}, 600);
|
|
340
|
+
const idx = navigableValues.value.findIndex((v) => {
|
|
341
|
+
return flatOptions.value.find((o) => o.value === v)?.label.toLowerCase().startsWith(typeaheadBuffer);
|
|
342
|
+
});
|
|
343
|
+
if (idx >= 0) setActive(idx);
|
|
344
|
+
}
|
|
345
|
+
function onComboKeydown(event) {
|
|
346
|
+
if (props.disabled) return;
|
|
347
|
+
if (!open.value) {
|
|
348
|
+
if ([
|
|
349
|
+
"ArrowDown",
|
|
350
|
+
"ArrowUp",
|
|
351
|
+
"Enter",
|
|
352
|
+
" "
|
|
353
|
+
].includes(event.key)) {
|
|
354
|
+
event.preventDefault();
|
|
355
|
+
openDropdown();
|
|
356
|
+
}
|
|
357
|
+
return;
|
|
358
|
+
}
|
|
359
|
+
switch (event.key) {
|
|
360
|
+
case "ArrowDown":
|
|
361
|
+
event.preventDefault();
|
|
362
|
+
setActive(activeIndex.value + 1);
|
|
363
|
+
break;
|
|
364
|
+
case "ArrowUp":
|
|
365
|
+
event.preventDefault();
|
|
366
|
+
setActive(activeIndex.value - 1);
|
|
367
|
+
break;
|
|
368
|
+
case "Home":
|
|
369
|
+
event.preventDefault();
|
|
370
|
+
setActive(0);
|
|
371
|
+
break;
|
|
372
|
+
case "End":
|
|
373
|
+
event.preventDefault();
|
|
374
|
+
setActive(navigableValues.value.length - 1);
|
|
375
|
+
break;
|
|
376
|
+
case "Enter":
|
|
377
|
+
event.preventDefault();
|
|
378
|
+
if (props.allowCustomValue && canAddCustom.value) addCustom();
|
|
379
|
+
else if (activeValue.value !== void 0) toggleValue(activeValue.value);
|
|
380
|
+
break;
|
|
381
|
+
case "Tab":
|
|
382
|
+
closeDropdown();
|
|
383
|
+
break;
|
|
384
|
+
default: if (!props.allowCustomValue && event.key.length === 1 && !event.metaKey && !event.ctrlKey && !event.altKey) typeahead(event.key);
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
watch(open, async (isOpen) => {
|
|
388
|
+
if (!isOpen) {
|
|
389
|
+
customValue.value = "";
|
|
390
|
+
activeIndex.value = -1;
|
|
391
|
+
return;
|
|
392
|
+
}
|
|
393
|
+
initActiveIndex();
|
|
394
|
+
if (props.allowCustomValue) {
|
|
395
|
+
await nextTick();
|
|
396
|
+
customInputRef.value?.focus();
|
|
397
|
+
}
|
|
398
|
+
}, { immediate: true });
|
|
284
399
|
const showNativeChevron = computed(() => {
|
|
285
|
-
return
|
|
400
|
+
return effectiveOptionsView.value === "native" && props.view !== "link" && !props.multiple;
|
|
286
401
|
});
|
|
287
402
|
const nativeClearOptionVisible = computed(() => {
|
|
288
403
|
if (!props.clearable) return false;
|
|
289
|
-
if (
|
|
404
|
+
if (effectiveOptionsView.value !== "native") return false;
|
|
290
405
|
if (props.multiple) return false;
|
|
291
406
|
if (!props.options) return true;
|
|
292
407
|
return !flatOptions.value.some((o) => o.value === "");
|
|
293
408
|
});
|
|
294
409
|
const panelClearVisible = computed(() => {
|
|
295
410
|
if (!props.clearable) return false;
|
|
296
|
-
if (
|
|
411
|
+
if (effectiveOptionsView.value !== "panel") return false;
|
|
297
412
|
if (props.view === "link") return false;
|
|
298
413
|
return hasSelection.value;
|
|
299
414
|
});
|
|
@@ -313,7 +428,7 @@ var GrSelect_default = /* @__PURE__ */ defineComponent({
|
|
|
313
428
|
* `<select>`-overlay поверх видимого `<span>` с меткой — overlay принимает клики/клавиатуру,
|
|
314
429
|
* span задаёт ширину компонента в закрытом состоянии.
|
|
315
430
|
*/
|
|
316
|
-
const isLinkNative = computed(() => props.view === "link" &&
|
|
431
|
+
const isLinkNative = computed(() => props.view === "link" && effectiveOptionsView.value === "native");
|
|
317
432
|
const linkNativeLabelClassName = computed(() => grSelectLinkNativeLabelClass({
|
|
318
433
|
size: props.size,
|
|
319
434
|
variant: props.variant,
|
|
@@ -326,7 +441,7 @@ var GrSelect_default = /* @__PURE__ */ defineComponent({
|
|
|
326
441
|
const triggerClassName = computed(() => {
|
|
327
442
|
return grSelectTriggerClass({
|
|
328
443
|
view: props.view,
|
|
329
|
-
optionsView:
|
|
444
|
+
optionsView: effectiveOptionsView.value,
|
|
330
445
|
size: props.size,
|
|
331
446
|
disabled: props.disabled,
|
|
332
447
|
variant: props.variant,
|
|
@@ -336,7 +451,8 @@ var GrSelect_default = /* @__PURE__ */ defineComponent({
|
|
|
336
451
|
function onChange(e) {
|
|
337
452
|
const el = e.target;
|
|
338
453
|
if (props.multiple) {
|
|
339
|
-
|
|
454
|
+
const values = Array.from(el.selectedOptions, (o) => o.value);
|
|
455
|
+
emit("update:modelValue", values);
|
|
340
456
|
return;
|
|
341
457
|
}
|
|
342
458
|
emit("update:modelValue", el.value);
|
|
@@ -346,64 +462,83 @@ var GrSelect_default = /* @__PURE__ */ defineComponent({
|
|
|
346
462
|
emitValue(props.multiple ? [] : "");
|
|
347
463
|
}
|
|
348
464
|
return (_ctx, _cache) => {
|
|
349
|
-
return
|
|
465
|
+
return effectiveOptionsView.value === "native" ? (openBlock(), createElementBlock("div", {
|
|
350
466
|
key: 0,
|
|
351
|
-
"data-
|
|
467
|
+
"data-gr-select": "",
|
|
352
468
|
class: normalizeClass(rootClass.value)
|
|
353
469
|
}, [
|
|
354
470
|
createElementVNode("select", {
|
|
355
|
-
|
|
356
|
-
|
|
471
|
+
id: resolvedId.value,
|
|
472
|
+
"data-gr-select-native": "",
|
|
357
473
|
multiple: __props.multiple,
|
|
358
474
|
disabled: __props.disabled,
|
|
359
475
|
"aria-label": __props.ariaLabel,
|
|
476
|
+
"aria-invalid": isInvalid.value ? "true" : void 0,
|
|
477
|
+
"aria-describedby": describedBy.value,
|
|
478
|
+
"aria-required": isRequired.value ? "true" : void 0,
|
|
360
479
|
class: normalizeClass(isLinkNative.value ? unref(grSelectLinkNativeOverlayClass) : [baseClassName.value, nativeClassName.value]),
|
|
361
480
|
onChange
|
|
362
|
-
}, [nativeClearOptionVisible.value ? (openBlock(), createElementBlock("option",
|
|
481
|
+
}, [nativeClearOptionVisible.value ? (openBlock(), createElementBlock("option", {
|
|
482
|
+
key: 0,
|
|
483
|
+
value: "",
|
|
484
|
+
selected: !__props.multiple && modelSingle.value === ""
|
|
485
|
+
}, toDisplayString(__props.placeholder || unref(t)("gr.select.clearOption", "None")), 9, _hoisted_2)) : createCommentVNode("", true), renderSlot(_ctx.$slots, "default", {}, () => [nativeCustomOptionVisible.value ? (openBlock(), createElementBlock("option", {
|
|
363
486
|
key: 0,
|
|
364
|
-
value: modelSingle.value
|
|
487
|
+
value: modelSingle.value,
|
|
488
|
+
selected: !__props.multiple
|
|
365
489
|
}, toDisplayString(modelSingle.value), 9, _hoisted_3)) : createCommentVNode("", true), (openBlock(true), createElementBlock(Fragment, null, renderList(optionsResolved.value, (item, index) => {
|
|
366
490
|
return openBlock(), createElementBlock(Fragment, { key: index }, [isOptionGroup(item) ? (openBlock(), createElementBlock("optgroup", {
|
|
367
491
|
key: 0,
|
|
368
492
|
label: item.label
|
|
369
493
|
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(item.options, (opt) => {
|
|
370
494
|
return openBlock(), createElementBlock("option", {
|
|
371
|
-
key: opt.value
|
|
372
|
-
value: opt.value
|
|
495
|
+
key: `${index}:${opt.value}`,
|
|
496
|
+
value: opt.value,
|
|
497
|
+
selected: __props.multiple ? modelMultiple.value.includes(opt.value) : modelSingle.value === opt.value,
|
|
498
|
+
disabled: opt.disabled
|
|
373
499
|
}, toDisplayString(opt.label), 9, _hoisted_5);
|
|
374
500
|
}), 128))], 8, _hoisted_4)) : (openBlock(), createElementBlock("option", {
|
|
375
501
|
key: 1,
|
|
376
|
-
value: item.value
|
|
502
|
+
value: item.value,
|
|
503
|
+
selected: __props.multiple ? modelMultiple.value.includes(item.value) : modelSingle.value === item.value,
|
|
504
|
+
disabled: item.disabled
|
|
377
505
|
}, toDisplayString(item.label), 9, _hoisted_6))], 64);
|
|
378
506
|
}), 128))])], 42, _hoisted_1),
|
|
379
507
|
isLinkNative.value ? (openBlock(), createElementBlock("span", {
|
|
380
508
|
key: 0,
|
|
381
|
-
"data-
|
|
509
|
+
"data-gr-select-link-label": "",
|
|
382
510
|
"aria-hidden": "true",
|
|
383
511
|
class: normalizeClass(linkNativeLabelClassName.value)
|
|
384
512
|
}, toDisplayString(linkNativeDisplayText.value), 3)) : createCommentVNode("", true),
|
|
385
513
|
showNativeChevron.value ? (openBlock(), createElementBlock("span", _hoisted_7, [..._cache[1] || (_cache[1] = [createElementVNode("span", {
|
|
386
|
-
class: "i-lucide-chevron-down
|
|
514
|
+
class: "i-lucide-chevron-down block h-4 w-4",
|
|
387
515
|
"aria-hidden": "true"
|
|
388
516
|
}, null, -1)])])) : createCommentVNode("", true)
|
|
389
517
|
], 2)) : withDirectives((openBlock(), createElementBlock("div", {
|
|
390
518
|
key: 1,
|
|
391
519
|
ref_key: "rootEl",
|
|
392
520
|
ref: rootEl,
|
|
393
|
-
"data-
|
|
521
|
+
"data-gr-select": "",
|
|
394
522
|
class: normalizeClass(rootClass.value)
|
|
395
523
|
}, [
|
|
396
524
|
createElementVNode("button", {
|
|
397
|
-
|
|
398
|
-
"data-
|
|
525
|
+
id: resolvedId.value,
|
|
526
|
+
"data-testid": "gr-select-trigger",
|
|
527
|
+
"data-gr-select-trigger": "",
|
|
399
528
|
type: "button",
|
|
400
529
|
disabled: __props.disabled,
|
|
401
530
|
"aria-label": __props.ariaLabel,
|
|
531
|
+
"aria-invalid": isInvalid.value ? "true" : void 0,
|
|
532
|
+
"aria-describedby": describedBy.value,
|
|
533
|
+
"aria-required": isRequired.value ? "true" : void 0,
|
|
402
534
|
role: "combobox",
|
|
403
|
-
"aria-
|
|
535
|
+
"aria-haspopup": "listbox",
|
|
536
|
+
"aria-controls": open.value ? unref(listboxId) : void 0,
|
|
537
|
+
"aria-activedescendant": activeDescendantId.value,
|
|
404
538
|
"aria-expanded": open.value ? "true" : "false",
|
|
405
539
|
class: normalizeClass([baseClassName.value, triggerClassName.value]),
|
|
406
|
-
onClick: toggleDropdown
|
|
540
|
+
onClick: toggleDropdown,
|
|
541
|
+
onKeydown: onComboKeydown
|
|
407
542
|
}, [createElementVNode("span", _hoisted_9, [renderSlot(_ctx.$slots, "value", {
|
|
408
543
|
selectedOptions: selectedOptions.value,
|
|
409
544
|
selectedValues: selectedValues.value,
|
|
@@ -411,13 +546,13 @@ var GrSelect_default = /* @__PURE__ */ defineComponent({
|
|
|
411
546
|
placeholder: __props.placeholder,
|
|
412
547
|
hasSelection: hasSelection.value
|
|
413
548
|
}, () => [createElementVNode("span", { class: normalizeClass(["block truncate", !hasSelection.value ? "text-[var(--muted-fg)]" : ""]) }, toDisplayString(displayText.value), 3)])]), panelClearVisible.value ? (openBlock(), createElementBlock("span", _hoisted_10)) : (openBlock(), createElementBlock("span", _hoisted_11, [..._cache[2] || (_cache[2] = [createElementVNode("span", {
|
|
414
|
-
class: "i-lucide-chevron-down
|
|
549
|
+
class: "i-lucide-chevron-down block h-4 w-4",
|
|
415
550
|
"aria-hidden": "true"
|
|
416
|
-
}, null, -1)])]))],
|
|
551
|
+
}, null, -1)])]))], 42, _hoisted_8),
|
|
417
552
|
panelClearVisible.value ? (openBlock(), createElementBlock("button", {
|
|
418
553
|
key: 0,
|
|
419
|
-
"data-testid": "
|
|
420
|
-
"data-
|
|
554
|
+
"data-testid": "gr-select-clear",
|
|
555
|
+
"data-gr-select-clear": "",
|
|
421
556
|
type: "button",
|
|
422
557
|
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",
|
|
423
558
|
disabled: __props.disabled,
|
|
@@ -438,57 +573,62 @@ var GrSelect_default = /* @__PURE__ */ defineComponent({
|
|
|
438
573
|
default: withCtx(() => [withDirectives(createElementVNode("div", {
|
|
439
574
|
ref_key: "panelEl",
|
|
440
575
|
ref: panelEl,
|
|
441
|
-
"data-testid": "
|
|
442
|
-
"data-
|
|
576
|
+
"data-testid": "gr-select-panel",
|
|
577
|
+
"data-gr-select-panel": "",
|
|
443
578
|
style: normalizeStyle(unref(floatingStyle))
|
|
444
579
|
}, [createElementVNode("div", { class: normalizeClass(panelClasses.value) }, [__props.allowCustomValue ? (openBlock(), createElementBlock("div", _hoisted_13, [createVNode(GrInput_default, {
|
|
445
580
|
ref_key: "customInputRef",
|
|
446
581
|
ref: customInputRef,
|
|
447
582
|
modelValue: customValue.value,
|
|
448
583
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => customValue.value = $event),
|
|
449
|
-
"data-testid": "
|
|
584
|
+
"data-testid": "gr-select-custom-input",
|
|
450
585
|
type: "text",
|
|
451
586
|
placeholder: resolvedCustomValuePlaceholder.value,
|
|
452
587
|
size: "sm",
|
|
453
|
-
onKeydown:
|
|
454
|
-
}, null, 8, [
|
|
455
|
-
|
|
456
|
-
"
|
|
457
|
-
"onKeydown"
|
|
458
|
-
])])) : createCommentVNode("", true), createElementVNode("div", {
|
|
459
|
-
"data-ds-select-listbox": "",
|
|
588
|
+
onKeydown: onComboKeydown
|
|
589
|
+
}, null, 8, ["modelValue", "placeholder"])])) : createCommentVNode("", true), createElementVNode("div", {
|
|
590
|
+
id: unref(listboxId),
|
|
591
|
+
"data-gr-select-listbox": "",
|
|
460
592
|
class: "p-1 overflow-auto",
|
|
461
593
|
style: normalizeStyle({ maxHeight: `${__props.dropdownMaxHeight}px` }),
|
|
462
594
|
role: "listbox",
|
|
463
595
|
"aria-multiselectable": __props.multiple ? "true" : void 0
|
|
464
596
|
}, [canAddCustom.value ? (openBlock(), createElementBlock("button", {
|
|
465
597
|
key: 0,
|
|
466
|
-
"data-testid": "
|
|
467
|
-
"data-
|
|
598
|
+
"data-testid": "gr-select-add-option",
|
|
599
|
+
"data-gr-select-add-option": "",
|
|
468
600
|
type: "button",
|
|
469
601
|
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"]]),
|
|
470
602
|
onClick: addCustom
|
|
471
603
|
}, toDisplayString(unref(t)("gr.select.addOption", "Add \"{value}\"", { value: customValue.value.trim() })), 3)) : createCommentVNode("", true), (openBlock(true), createElementBlock(Fragment, null, renderList(panelItems.value, (item) => {
|
|
472
604
|
return openBlock(), createElementBlock(Fragment, { key: item.key }, [item.kind === "group" ? (openBlock(), createElementBlock("div", {
|
|
473
605
|
key: 0,
|
|
474
|
-
"data-
|
|
606
|
+
"data-gr-select-group-label": "",
|
|
475
607
|
role: "presentation",
|
|
476
608
|
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" : ""]])
|
|
477
609
|
}, toDisplayString(item.label), 3)) : (openBlock(), createElementBlock("button", {
|
|
478
610
|
key: 1,
|
|
479
|
-
|
|
611
|
+
id: optionDomId(item.option.value),
|
|
612
|
+
"data-gr-select-option": "",
|
|
480
613
|
type: "button",
|
|
481
614
|
role: "option",
|
|
615
|
+
disabled: item.option.disabled,
|
|
482
616
|
"aria-selected": isSelected(item.option.value) ? "true" : "false",
|
|
483
|
-
|
|
484
|
-
|
|
617
|
+
"aria-disabled": item.option.disabled ? "true" : void 0,
|
|
618
|
+
class: normalizeClass(["rounded-[10px] px-3 py-2 text-left text-[13px]", [
|
|
619
|
+
__props.view === "link" ? "block min-w-full w-max whitespace-nowrap" : "w-full",
|
|
620
|
+
item.option.disabled ? "cursor-not-allowed opacity-50" : "hover:bg-[color-mix(in_srgb,var(--muted)_30%,transparent)]",
|
|
621
|
+
activeValue.value === item.option.value && !item.option.disabled ? "bg-[color-mix(in_srgb,var(--muted)_30%,transparent)]" : ""
|
|
622
|
+
]]),
|
|
623
|
+
onClick: ($event) => toggleValue(item.option.value),
|
|
624
|
+
onMousemove: ($event) => activeIndex.value = navigableValues.value.indexOf(item.option.value)
|
|
485
625
|
}, [renderSlot(_ctx.$slots, "option", {
|
|
486
626
|
option: item.option,
|
|
487
627
|
selected: isSelected(item.option.value)
|
|
488
628
|
}, () => [createElementVNode("span", _hoisted_16, [createElementVNode("span", {
|
|
489
629
|
class: normalizeClass(["inline-block h-4 w-4 shrink-0", isSelected(item.option.value) ? "i-lucide-check text-[var(--primary)]" : ""]),
|
|
490
630
|
"aria-hidden": "true"
|
|
491
|
-
}, null, 2), createElementVNode("span", _hoisted_17, toDisplayString(item.option.label), 1)])])],
|
|
631
|
+
}, null, 2), createElementVNode("span", _hoisted_17, toDisplayString(item.option.label), 1)])])], 42, _hoisted_15))], 64);
|
|
492
632
|
}), 128))], 12, _hoisted_14)], 2)], 4), [[vShow, open.value]])]),
|
|
493
633
|
_: 3
|
|
494
634
|
})]))
|