@feugene/granularity 0.19.0 → 0.21.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 +8 -0
- package/dist/chunks/config-8Pcutu1j.js.map +1 -0
- package/dist/chunks/config-B4w5gBD0.js +89 -0
- package/dist/chunks/config-B4w5gBD0.js.map +1 -0
- package/dist/chunks/config-BC8d_smz.js +156 -0
- package/dist/chunks/config-BC8d_smz.js.map +1 -0
- package/dist/chunks/config-BDfTXHo1.js.map +1 -0
- package/dist/chunks/config-BE6n20np.js.map +1 -0
- package/dist/chunks/config-BEVBsvni2.js +197 -0
- package/dist/chunks/config-BEVBsvni2.js.map +1 -0
- package/dist/chunks/config-BKvX0q10.js.map +1 -0
- package/dist/chunks/config-BTCOJO5z.js +37 -0
- package/dist/chunks/config-BTCOJO5z.js.map +1 -0
- package/dist/chunks/config-B_qi4Fma2.js +92 -0
- package/dist/chunks/config-B_qi4Fma2.js.map +1 -0
- package/dist/chunks/config-Baj7Wvx-2.js.map +1 -0
- package/dist/chunks/config-BfsBepkH2.js +83 -0
- package/dist/chunks/config-BfsBepkH2.js.map +1 -0
- package/dist/chunks/config-Bm_Sovla.js +59 -0
- package/dist/chunks/config-Bm_Sovla.js.map +1 -0
- package/dist/chunks/config-Bsh948nP.js +85 -0
- package/dist/chunks/config-Bsh948nP.js.map +1 -0
- package/dist/chunks/config-CDat1wXf.js.map +1 -0
- package/dist/chunks/config-CY0_6cMi.js.map +1 -0
- package/dist/chunks/config-D94Z9po5.js.map +1 -0
- package/dist/chunks/config-DAX8Deh12.js.map +1 -0
- package/dist/chunks/config-DBQQT-WP.js +66 -0
- package/dist/chunks/config-DBQQT-WP.js.map +1 -0
- package/dist/chunks/config-DU2DNSRx.js.map +1 -0
- package/dist/chunks/config-DWN4x6_e.js +159 -0
- package/dist/chunks/config-DWN4x6_e.js.map +1 -0
- package/dist/chunks/config-Dgj1Q6JY.js +26 -0
- package/dist/chunks/config-Dgj1Q6JY.js.map +1 -0
- package/dist/chunks/config-Dguto_6o.js +108 -0
- package/dist/chunks/config-Dguto_6o.js.map +1 -0
- package/dist/chunks/config-QJ54_fcM.js +61 -0
- package/dist/chunks/config-QJ54_fcM.js.map +1 -0
- package/dist/chunks/config-QaIc_gRa2.js.map +1 -0
- package/dist/chunks/config-ScuvHw6k.js.map +1 -0
- package/dist/chunks/config-WTNhdh6T.js.map +1 -0
- package/dist/chunks/config-eXB87DOi2.js.map +1 -0
- package/dist/chunks/config-jyZq8XKL.js +58 -0
- package/dist/chunks/config-jyZq8XKL.js.map +1 -0
- package/dist/chunks/config-vSji8w90.js +85 -0
- package/dist/chunks/config-vSji8w90.js.map +1 -0
- package/dist/chunks/context-CTbuwcYs.js +133 -0
- package/dist/chunks/context-CTbuwcYs.js.map +1 -0
- package/dist/chunks/en-CwAr3C_x.js +358 -0
- package/dist/chunks/en-CwAr3C_x.js.map +1 -0
- package/dist/chunks/es-Do1q9_SF.js +20 -0
- package/dist/chunks/es-Do1q9_SF.js.map +1 -0
- package/dist/chunks/es-TR4g2I4A.js +360 -0
- package/dist/chunks/es-TR4g2I4A.js.map +1 -0
- package/dist/chunks/generated-Do60Aq2I.js +3368 -0
- package/dist/chunks/generated-Do60Aq2I.js.map +1 -0
- package/dist/chunks/grRadioStyles-BTjGNhtU.js +96 -0
- package/dist/chunks/grRadioStyles-BTjGNhtU.js.map +1 -0
- package/dist/chunks/granular-provider-BW2uopTG.js +203 -0
- package/dist/chunks/granular-provider-BW2uopTG.js.map +1 -0
- package/dist/chunks/ru-Bm-zWJ3F.js +362 -0
- package/dist/chunks/ru-Bm-zWJ3F.js.map +1 -0
- package/dist/chunks/trending-up-Bf9AQmoq.js +42 -0
- package/dist/chunks/trending-up-Bf9AQmoq.js.map +1 -0
- package/dist/chunks/useModalOverlay-Cv5hF63W.js +212 -0
- package/dist/chunks/useModalOverlay-Cv5hF63W.js.map +1 -0
- package/dist/chunks/usePortalTarget-C0p-mhaM.js +77 -0
- package/dist/chunks/usePortalTarget-C0p-mhaM.js.map +1 -0
- package/dist/chunks/validation-DauXRIkL.js +178 -0
- package/dist/chunks/validation-DauXRIkL.js.map +1 -0
- package/dist/components/GrAlert/chunks/GrAlert-B21QGele.js +258 -0
- package/dist/components/GrAlert/chunks/GrAlert-B21QGele.js.map +1 -0
- package/dist/components/GrAlert/index.js +2 -2
- package/dist/components/GrAutocomplete/chunks/GrAutocomplete-DsevPtiS.js +860 -0
- package/dist/components/GrAutocomplete/chunks/GrAutocomplete-DsevPtiS.js.map +1 -0
- package/dist/components/GrAutocomplete/index.js +1 -1
- package/dist/components/GrAvatar/chunks/GrAvatar-BbdKRX8i.js +222 -0
- package/dist/components/GrAvatar/chunks/GrAvatar-BbdKRX8i.js.map +1 -0
- package/dist/components/GrAvatar/index.js +3 -3
- package/dist/components/GrBadge/chunks/GrBadge-u2ZdS7CN.js +40 -0
- package/dist/components/GrBadge/chunks/GrBadge-u2ZdS7CN.js.map +1 -0
- package/dist/components/GrBadge/index.js +1 -1
- package/dist/components/GrBadgeWrap/chunks/GrBadgeWrap-DDoFQscR.js +97 -0
- package/dist/components/GrBadgeWrap/chunks/GrBadgeWrap-DDoFQscR.js.map +1 -0
- package/dist/components/GrBadgeWrap/index.js +3 -3
- package/dist/components/GrBottomNav/chunks/GrBottomNav-JUu4ylYv.js +117 -0
- package/dist/components/GrBottomNav/chunks/GrBottomNav-JUu4ylYv.js.map +1 -0
- package/dist/components/GrBottomNav/index.js +3 -3
- package/dist/components/GrBreadcrumbs/chunks/GrBreadcrumbs-CQ44iU2o.js +267 -0
- package/dist/components/GrBreadcrumbs/chunks/GrBreadcrumbs-CQ44iU2o.js.map +1 -0
- package/dist/components/GrBreadcrumbs/index.js +1 -1
- package/dist/components/GrButton/chunks/GrButton-Bw2AH4uX.js +153 -0
- package/dist/components/GrButton/chunks/GrButton-Bw2AH4uX.js.map +1 -0
- package/dist/components/GrButton/index.js +2 -3
- package/dist/components/GrCard/chunks/GrCard-Bc7nRfbe.js +144 -0
- package/dist/components/GrCard/chunks/GrCard-Bc7nRfbe.js.map +1 -0
- package/dist/components/GrCard/index.js +2 -2
- package/dist/components/GrCheckbox/chunks/GrCheckbox-CEcHIsXM.js +262 -0
- package/dist/components/GrCheckbox/chunks/GrCheckbox-CEcHIsXM.js.map +1 -0
- package/dist/components/GrCheckbox/index.js +2 -2
- package/dist/components/GrCheckboxGroup/chunks/GrCheckboxGroup-BOwrVcFr.js +140 -0
- package/dist/components/GrCheckboxGroup/chunks/GrCheckboxGroup-BOwrVcFr.js.map +1 -0
- package/dist/components/GrCheckboxGroup/index.js +1 -1
- package/dist/components/GrCodeBlock/chunks/GrCodeBlock-CW3zY1ee.js +341 -0
- package/dist/components/GrCodeBlock/chunks/GrCodeBlock-CW3zY1ee.js.map +1 -0
- package/dist/components/GrCodeBlock/index.js +3 -0
- package/dist/components/GrCodeBlock/styles.css +1 -0
- package/dist/components/GrCollapse/chunks/GrCollapse-C1rCfbc0.js +294 -0
- package/dist/components/GrCollapse/chunks/GrCollapse-C1rCfbc0.js.map +1 -0
- package/dist/components/GrCollapse/index.js +3 -3
- package/dist/components/GrColorPicker/chunks/GrColorPicker-qQdoEPHF.js +584 -0
- package/dist/components/GrColorPicker/chunks/GrColorPicker-qQdoEPHF.js.map +1 -0
- package/dist/components/GrColorPicker/index.js +2 -2
- package/dist/components/GrCommandPalette/chunks/GrCommandPalette-BFcMf4Pn.js +591 -0
- package/dist/components/GrCommandPalette/chunks/GrCommandPalette-BFcMf4Pn.js.map +1 -0
- package/dist/components/GrCommandPalette/index.js +2 -2
- package/dist/components/GrConfigProvider/chunks/GrConfigProvider-UP-EaoAf.js +144 -0
- package/dist/components/GrConfigProvider/chunks/GrConfigProvider-UP-EaoAf.js.map +1 -0
- package/dist/components/GrConfigProvider/index.js +3 -3
- package/dist/components/GrConfirmDialog/chunks/GrConfirmDialog-rRtMScJX.js +200 -0
- package/dist/components/GrConfirmDialog/chunks/GrConfirmDialog-rRtMScJX.js.map +1 -0
- package/dist/components/GrConfirmDialog/index.js +1 -1
- package/dist/components/GrDataTable/chunks/GrDataTable-B5MmZFUg.js +1117 -0
- package/dist/components/GrDataTable/chunks/GrDataTable-B5MmZFUg.js.map +1 -0
- package/dist/components/GrDataTable/index.js +3 -3
- package/dist/components/GrDelta/chunks/GrDelta-BMmpYz8K.js +0 -0
- package/dist/components/GrDelta/chunks/GrDelta-BMmpYz8K.js.map +1 -0
- package/dist/components/GrDelta/index.js +3 -0
- package/dist/components/GrDescriptionList/chunks/GrDescriptionList-pXh1LZEe.js +103 -0
- package/dist/components/GrDescriptionList/chunks/GrDescriptionList-pXh1LZEe.js.map +1 -0
- package/dist/components/GrDescriptionList/index.js +3 -0
- package/dist/components/GrDialog/chunks/GrDialog-D0U5iRqV.js +255 -0
- package/dist/components/GrDialog/chunks/GrDialog-D0U5iRqV.js.map +1 -0
- package/dist/components/GrDialog/index.js +2 -3
- package/dist/components/GrDialogService/chunks/GrDialogService-CrwA4aJq.js +656 -0
- package/dist/components/GrDialogService/chunks/GrDialogService-CrwA4aJq.js.map +1 -0
- package/dist/components/GrDialogService/index.js +2 -2
- package/dist/components/GrDivider/chunks/GrDivider-CAhm9jbE.js +109 -0
- package/dist/components/GrDivider/chunks/GrDivider-CAhm9jbE.js.map +1 -0
- package/dist/components/GrDivider/index.js +2 -2
- package/dist/components/GrDrawer/chunks/GrDrawer-C3zAg2tG.js +251 -0
- package/dist/components/GrDrawer/chunks/GrDrawer-C3zAg2tG.js.map +1 -0
- package/dist/components/GrDrawer/index.js +2 -2
- package/dist/components/GrDropdown/chunks/GrDropdown-BSfFOcDx.js +300 -0
- package/dist/components/GrDropdown/chunks/GrDropdown-BSfFOcDx.js.map +1 -0
- package/dist/components/GrDropdown/index.js +1 -1
- package/dist/components/GrDropdownMenu/chunks/GrDropdownMenu-LOaFSCyd.js +421 -0
- package/dist/components/GrDropdownMenu/chunks/GrDropdownMenu-LOaFSCyd.js.map +1 -0
- package/dist/components/GrDropdownMenu/index.js +3 -3
- package/dist/components/GrEmptyState/chunks/GrEmptyState-CS9do8eM.js +86 -0
- package/dist/components/GrEmptyState/chunks/GrEmptyState-CS9do8eM.js.map +1 -0
- package/dist/components/GrEmptyState/index.js +3 -3
- package/dist/components/GrFilePreview/chunks/GrFilePreview-rbE3zL9w.js +315 -0
- package/dist/components/GrFilePreview/chunks/GrFilePreview-rbE3zL9w.js.map +1 -0
- package/dist/components/GrFilePreview/index.js +3 -0
- package/dist/components/GrFileUpload/chunks/GrFileUpload-D3-vC-ap.js +1080 -0
- package/dist/components/GrFileUpload/chunks/GrFileUpload-D3-vC-ap.js.map +1 -0
- package/dist/components/GrFileUpload/index.js +3 -3
- package/dist/components/GrForm/chunks/GrForm-B_Qq_13k.js +333 -0
- package/dist/components/GrForm/chunks/GrForm-B_Qq_13k.js.map +1 -0
- package/dist/components/GrForm/index.js +4 -4
- package/dist/components/GrFormField/chunks/GrFormField-kqfVY30N.js +190 -0
- package/dist/components/GrFormField/chunks/GrFormField-kqfVY30N.js.map +1 -0
- package/dist/components/GrFormField/index.js +3 -3
- package/dist/components/GrFormFile/chunks/GrFormFile-D722xHn8.js +452 -0
- package/dist/components/GrFormFile/chunks/GrFormFile-D722xHn8.js.map +1 -0
- package/dist/components/GrFormFile/index.js +1 -1
- package/dist/components/GrFormSection/chunks/GrFormSection-CdGWvzXO.js +63 -0
- package/dist/components/GrFormSection/chunks/GrFormSection-CdGWvzXO.js.map +1 -0
- package/dist/components/GrFormSection/index.js +3 -3
- package/dist/components/GrIcon/chunks/GrIcon-bQwtZtYT.js +57 -0
- package/dist/components/GrIcon/chunks/GrIcon-bQwtZtYT.js.map +1 -0
- package/dist/components/GrIcon/index.js +1 -1
- package/dist/components/GrImageViewer/chunks/GrImageViewer-ng7el4wn.js +1128 -0
- package/dist/components/GrImageViewer/chunks/GrImageViewer-ng7el4wn.js.map +1 -0
- package/dist/components/GrImageViewer/index.js +1 -1
- package/dist/components/GrInput/chunks/GrInput-Bb_pxqpT.js +348 -0
- package/dist/components/GrInput/chunks/GrInput-Bb_pxqpT.js.map +1 -0
- package/dist/components/GrInput/index.js +1 -1
- package/dist/components/GrInputTag/chunks/GrInputTag-C7QVPijj.js +512 -0
- package/dist/components/GrInputTag/chunks/GrInputTag-C7QVPijj.js.map +1 -0
- package/dist/components/GrInputTag/index.js +1 -1
- package/dist/components/GrKbd/chunks/GrKbd-BXbhsH0M.js +358 -0
- package/dist/components/GrKbd/chunks/GrKbd-BXbhsH0M.js.map +1 -0
- package/dist/components/GrKbd/index.js +1 -1
- package/dist/components/GrLink/chunks/GrLink-BQb7U4so.js +163 -0
- package/dist/components/GrLink/chunks/GrLink-BQb7U4so.js.map +1 -0
- package/dist/components/GrLink/index.js +1 -1
- package/dist/components/GrList/chunks/GrList-BUzFRa8-.js +277 -0
- package/dist/components/GrList/chunks/GrList-BUzFRa8-.js.map +1 -0
- package/dist/components/GrList/index.js +1 -1
- package/dist/components/GrLoading/chunks/GrLoading-C3DZSSuh.js +101 -0
- package/dist/components/GrLoading/chunks/GrLoading-C3DZSSuh.js.map +1 -0
- package/dist/components/GrLoading/index.js +1 -1
- package/dist/components/GrModal/chunks/GrModal-CPz7SWD_.js +313 -0
- package/dist/components/GrModal/chunks/GrModal-CPz7SWD_.js.map +1 -0
- package/dist/components/GrModal/index.js +1 -1
- package/dist/components/GrNavbar/chunks/GrNavbar-DWaaoV7n.js +104 -0
- package/dist/components/GrNavbar/chunks/GrNavbar-DWaaoV7n.js.map +1 -0
- package/dist/components/GrNavbar/index.js +1 -1
- package/dist/components/GrNumberInput/chunks/GrNumberInput-BotnzW77.js +659 -0
- package/dist/components/GrNumberInput/chunks/GrNumberInput-BotnzW77.js.map +1 -0
- package/dist/components/GrNumberInput/index.js +1 -1
- package/dist/components/GrPagination/chunks/GrPagination-GtGtSMJG.js +283 -0
- package/dist/components/GrPagination/chunks/GrPagination-GtGtSMJG.js.map +1 -0
- package/dist/components/GrPagination/index.js +1 -1
- package/dist/components/GrPopover/chunks/GrPopover-b70bIlQ9.js +216 -0
- package/dist/components/GrPopover/chunks/GrPopover-b70bIlQ9.js.map +1 -0
- package/dist/components/GrPopover/index.js +1 -1
- package/dist/components/GrProgressBar/chunks/GrProgressBar-hszUOC8f.js +90 -0
- package/dist/components/GrProgressBar/chunks/GrProgressBar-hszUOC8f.js.map +1 -0
- package/dist/components/GrProgressBar/index.js +1 -1
- package/dist/components/GrProgressCircle/chunks/GrProgressCircle-BeUx1g1f.js +202 -0
- package/dist/components/GrProgressCircle/chunks/GrProgressCircle-BeUx1g1f.js.map +1 -0
- package/dist/components/GrProgressCircle/index.js +2 -2
- package/dist/components/GrPromptDialog/chunks/GrPromptDialog-CEI8bf-t.js +348 -0
- package/dist/components/GrPromptDialog/chunks/GrPromptDialog-CEI8bf-t.js.map +1 -0
- package/dist/components/GrPromptDialog/index.js +1 -1
- package/dist/components/GrRadio/chunks/GrRadio-BdhknbO8.js +253 -0
- package/dist/components/GrRadio/chunks/GrRadio-BdhknbO8.js.map +1 -0
- package/dist/components/GrRadio/index.js +3 -3
- package/dist/components/GrRadioGroup/chunks/GrRadioGroup-BVmjKXcv.js +196 -0
- package/dist/components/GrRadioGroup/chunks/GrRadioGroup-BVmjKXcv.js.map +1 -0
- package/dist/components/GrRadioGroup/index.js +2 -2
- package/dist/components/GrRating/chunks/GrRating-BiAVT9H7.js +316 -0
- package/dist/components/GrRating/chunks/GrRating-BiAVT9H7.js.map +1 -0
- package/dist/components/GrRating/index.js +2 -2
- package/dist/components/GrResponseErrorBanner/chunks/GrResponseErrorBanner-CZONq8uT.js +777 -0
- package/dist/components/GrResponseErrorBanner/chunks/GrResponseErrorBanner-CZONq8uT.js.map +1 -0
- package/dist/components/GrResponseErrorBanner/chunks/GrResponseErrorBanner-CgfAwlg3.js +224 -0
- package/dist/components/GrResponseErrorBanner/chunks/GrResponseErrorBanner-CgfAwlg3.js.map +1 -0
- package/dist/components/GrResponseErrorBanner/index.js +3 -3
- package/dist/components/GrSegmented/chunks/GrSegmented-D1mjxF_O.js +388 -0
- package/dist/components/GrSegmented/chunks/GrSegmented-D1mjxF_O.js.map +1 -0
- package/dist/components/GrSegmented/index.js +3 -3
- package/dist/components/GrSelect/chunks/GrSelect-CaGuyvtb.js +1384 -0
- package/dist/components/GrSelect/chunks/GrSelect-CaGuyvtb.js.map +1 -0
- package/dist/components/GrSelect/index.js +1 -1
- package/dist/components/GrSelect/styles.css +1 -1
- package/dist/components/GrSidebar/chunks/GrSidebar-D7WxRtIu.js +264 -0
- package/dist/components/GrSidebar/chunks/GrSidebar-D7WxRtIu.js.map +1 -0
- package/dist/components/GrSidebar/index.js +3 -3
- package/dist/components/GrSkeleton/chunks/GrSkeleton-CgfXxPQ2.js +78 -0
- package/dist/components/GrSkeleton/chunks/GrSkeleton-CgfXxPQ2.js.map +1 -0
- package/dist/components/GrSkeleton/index.js +3 -3
- package/dist/components/GrSlider/chunks/GrSlider-s99yAyz6.js +379 -0
- package/dist/components/GrSlider/chunks/GrSlider-s99yAyz6.js.map +1 -0
- package/dist/components/GrSlider/index.js +1 -1
- package/dist/components/GrSortableList/chunks/GrSortableList-DPjxilmN.js +277 -0
- package/dist/components/GrSortableList/chunks/GrSortableList-DPjxilmN.js.map +1 -0
- package/dist/components/GrSortableList/index.js +2 -2
- package/dist/components/GrSplitter/chunks/GrSplitter-B9_JrT7q.js +259 -0
- package/dist/components/GrSplitter/chunks/GrSplitter-B9_JrT7q.js.map +1 -0
- package/dist/components/GrSplitter/index.js +3 -3
- package/dist/components/GrStatistic/chunks/GrStatistic-DkzWUAw1.js +333 -0
- package/dist/components/GrStatistic/chunks/GrStatistic-DkzWUAw1.js.map +1 -0
- package/dist/components/GrStatistic/index.js +1 -1
- package/dist/components/GrSwitch/chunks/GrSwitch-x_vQQ6ao.js +183 -0
- package/dist/components/GrSwitch/chunks/GrSwitch-x_vQQ6ao.js.map +1 -0
- package/dist/components/GrSwitch/index.js +1 -1
- package/dist/components/GrTabPanels/chunks/GrTabPanels-AJt1w1XC.js +81 -0
- package/dist/components/GrTabPanels/chunks/GrTabPanels-AJt1w1XC.js.map +1 -0
- package/dist/components/GrTabPanels/index.js +3 -3
- package/dist/components/GrTable/chunks/GrTable-f3qCWa99.js +169 -0
- package/dist/components/GrTable/chunks/GrTable-f3qCWa99.js.map +1 -0
- package/dist/components/GrTable/index.js +2 -2
- package/dist/components/GrTabs/chunks/GrTabs-CBHZkOFY.js +262 -0
- package/dist/components/GrTabs/chunks/GrTabs-CBHZkOFY.js.map +1 -0
- package/dist/components/GrTabs/index.js +3 -3
- package/dist/components/GrTextarea/chunks/GrTextarea-CNnkcIG1.js +241 -0
- package/dist/components/GrTextarea/chunks/GrTextarea-CNnkcIG1.js.map +1 -0
- package/dist/components/GrTextarea/index.js +2 -2
- package/dist/components/GrTimeline/chunks/GrTimeline-Ch9sHzwL.js +274 -0
- package/dist/components/GrTimeline/chunks/GrTimeline-Ch9sHzwL.js.map +1 -0
- package/dist/components/GrTimeline/index.js +2 -2
- package/dist/components/GrTimeline/styles.css +1 -1
- package/dist/components/GrToaster/chunks/GrToaster-DJUzx3sR.js +373 -0
- package/dist/components/GrToaster/chunks/GrToaster-DJUzx3sR.js.map +1 -0
- package/dist/components/GrToaster/index.js +2 -2
- package/dist/components/GrTooltip/chunks/GrTooltip-B6AwE_UX.js +185 -0
- package/dist/components/GrTooltip/chunks/GrTooltip-B6AwE_UX.js.map +1 -0
- package/dist/components/GrTooltip/index.js +1 -1
- package/dist/components/GrTree/chunks/GrTree-BvOeQ3xJ.js +1376 -0
- package/dist/components/GrTree/chunks/GrTree-BvOeQ3xJ.js.map +1 -0
- package/dist/components/GrTree/index.js +2 -2
- package/dist/components/GrTreeSelect/chunks/GrTreeSelect-_LjTRR7X.js +633 -0
- package/dist/components/GrTreeSelect/chunks/GrTreeSelect-_LjTRR7X.js.map +1 -0
- package/dist/components/GrTreeSelect/index.js +1 -1
- package/dist/composables/useGrComponentConfig.js +1 -1
- package/dist/composables/usePortalTarget.js +1 -1
- package/dist/composables/useToast.js +14 -2
- package/dist/composables/useToast.js.map +1 -1
- package/dist/directives/loading.js +1 -1
- package/dist/granular-provider-node.js +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 +110 -103
- package/dist/testing.js +33 -2
- package/dist/testing.js.map +1 -1
- package/dist/theme.js +1 -1
- package/dist/tokens.js +1 -1
- package/dist/types/components/GrAlert/index.d.ts +7 -0
- package/dist/types/components/GrAvatar/index.d.ts +9 -0
- package/dist/types/components/GrBadgeWrap/index.d.ts +7 -0
- package/dist/types/components/GrBottomNav/index.d.ts +8 -0
- package/dist/types/components/GrButton/GrButton.vue.d.ts +117 -0
- package/dist/types/components/GrButton/index.d.ts +10 -0
- package/dist/types/components/GrCard/GrCard.vue.d.ts +109 -0
- package/dist/types/components/GrCard/defaults.d.ts +16 -0
- package/dist/types/components/GrCard/grCardStyles.d.ts +32 -0
- package/dist/types/components/GrCard/index.d.ts +8 -0
- package/dist/types/components/GrCheckbox/index.d.ts +12 -0
- package/dist/types/components/GrCodeBlock/GrCodeBlock.vue.d.ts +79 -0
- package/dist/types/components/GrCodeBlock/config.d.ts +1 -0
- package/dist/types/components/GrCodeBlock/defaults.d.ts +21 -0
- package/dist/types/components/GrCodeBlock/grCodeBlockStyles.d.ts +53 -0
- package/dist/types/components/GrCodeBlock/index.d.ts +6 -0
- package/dist/types/components/GrCodeBlock/safelist.d.ts +1 -0
- package/dist/types/components/GrCodeBlock/serializeCode.d.ts +19 -0
- package/dist/types/components/GrCodeBlock/tokenizeJson.d.ts +24 -0
- package/dist/types/components/GrCollapse/GrCollapse.vue.d.ts +115 -0
- package/dist/types/components/GrCollapse/index.d.ts +8 -0
- package/dist/types/components/GrColorPicker/index.d.ts +11 -0
- package/dist/types/components/GrCommandPalette/GrCommandPalette.vue.d.ts +163 -0
- package/dist/types/components/GrCommandPalette/index.d.ts +9 -0
- package/dist/types/components/GrConfigProvider/index.d.ts +6 -0
- package/dist/types/components/GrDataTable/GrDataTable.vue.d.ts +250 -0
- package/dist/types/components/GrDataTable/grDataTableStyles.d.ts +74 -0
- package/dist/types/components/GrDataTable/index.d.ts +12 -0
- package/dist/types/components/GrDelta/GrDelta.vue.d.ts +84 -0
- package/dist/types/components/GrDelta/config.d.ts +1 -0
- package/dist/types/components/GrDelta/defaults.d.ts +22 -0
- package/dist/types/components/GrDelta/deltaTone.d.ts +24 -0
- package/dist/types/components/GrDelta/grDeltaStyles.d.ts +38 -0
- package/dist/types/components/GrDelta/index.d.ts +6 -0
- package/dist/types/components/GrDelta/safelist.d.ts +1 -0
- package/dist/types/components/GrDescriptionList/GrDescriptionList.vue.d.ts +107 -0
- package/dist/types/components/GrDescriptionList/config.d.ts +1 -0
- package/dist/types/components/GrDescriptionList/defaults.d.ts +21 -0
- package/dist/types/components/GrDescriptionList/grDescriptionListStyles.d.ts +25 -0
- package/dist/types/components/GrDescriptionList/index.d.ts +6 -0
- package/dist/types/components/GrDescriptionList/safelist.d.ts +1 -0
- package/dist/types/components/GrDialog/index.d.ts +12 -0
- package/dist/types/components/GrDialogService/index.d.ts +6 -0
- package/dist/types/components/GrDropdownMenu/index.d.ts +21 -0
- package/dist/types/components/GrEmptyState/index.d.ts +7 -0
- package/dist/types/components/GrFilePreview/GrFilePreview.vue.d.ts +100 -0
- package/dist/types/components/GrFilePreview/config.d.ts +1 -0
- package/dist/types/components/GrFilePreview/defaults.d.ts +20 -0
- package/dist/types/components/GrFilePreview/fileKindOf.d.ts +14 -0
- package/dist/types/components/GrFilePreview/grFilePreviewStyles.d.ts +37 -0
- package/dist/types/components/GrFilePreview/index.d.ts +6 -0
- package/dist/types/components/GrFilePreview/safelist.d.ts +1 -0
- package/dist/types/components/GrFileUpload/index.d.ts +17 -0
- package/dist/types/components/GrForm/GrForm.vue.d.ts +90 -0
- package/dist/types/components/GrForm/index.d.ts +10 -0
- package/dist/types/components/GrFormField/GrFormField.vue.d.ts +122 -0
- package/dist/types/components/GrFormField/index.d.ts +8 -0
- package/dist/types/components/GrFormSection/index.d.ts +7 -0
- package/dist/types/components/GrImageViewer/GrImageViewer.vue.d.ts +271 -0
- package/dist/types/components/GrInput/GrInput.vue.d.ts +207 -0
- package/dist/types/components/GrInputTag/GrInputTag.vue.d.ts +216 -0
- package/dist/types/components/GrNumberInput/GrNumberInput.vue.d.ts +223 -0
- package/dist/types/components/GrProgressCircle/index.d.ts +10 -0
- package/dist/types/components/GrRadio/index.d.ts +8 -0
- package/dist/types/components/GrRating/GrRating.vue.d.ts +178 -0
- package/dist/types/components/GrResponseErrorBanner/index.d.ts +15 -0
- package/dist/types/components/GrSegmented/GrSegmented.vue.d.ts +122 -0
- package/dist/types/components/GrSegmented/index.d.ts +11 -0
- package/dist/types/components/GrSelect/GrSelect.vue.d.ts +199 -0
- package/dist/types/components/GrSidebar/index.d.ts +9 -0
- package/dist/types/components/GrSkeleton/index.d.ts +4 -0
- package/dist/types/components/GrSplitter/index.d.ts +11 -0
- package/dist/types/components/GrStatistic/GrStatistic.vue.d.ts +168 -0
- package/dist/types/components/GrSwitch/GrSwitch.vue.d.ts +130 -0
- package/dist/types/components/GrTabPanels/index.d.ts +7 -0
- package/dist/types/components/GrTable/GrTable.vue.d.ts +177 -0
- package/dist/types/components/GrTabs/GrTabs.vue.d.ts +121 -0
- package/dist/types/components/GrTabs/index.d.ts +8 -0
- package/dist/types/components/GrTimeline/GrTimelineItem.vue.d.ts +84 -0
- package/dist/types/components/GrTimeline/index.d.ts +10 -0
- package/dist/types/components/GrTreeSelect/GrTreeSelect.vue.d.ts +63 -0
- package/dist/types/components/shared/sizes.d.ts +34 -0
- package/dist/types/composables/useToast.d.ts +100 -0
- package/dist/types/granular-provider/shared.d.ts +94 -0
- package/dist/types/i18n/messages/en.d.ts +690 -0
- package/dist/types/i18n/messages/es.d.ts +687 -0
- package/dist/types/i18n/messages/ru.d.ts +691 -0
- package/dist/types/index.d.ts +107 -0
- package/dist/types/testing/index.d.ts +13 -0
- package/dist/types/testing/keyboard.d.ts +32 -0
- package/dist/web-types.json +556 -147
- package/package.json +126 -106
- package/dist/chunks/config-06SQjBx0.js +0 -96
- package/dist/chunks/config-06SQjBx0.js.map +0 -1
- package/dist/chunks/config-8Pcutu1j2.js.map +0 -1
- package/dist/chunks/config-B-iNaGdw.js +0 -199
- package/dist/chunks/config-B-iNaGdw.js.map +0 -1
- package/dist/chunks/config-BDfTXHo12.js.map +0 -1
- package/dist/chunks/config-BE6n20np2.js.map +0 -1
- package/dist/chunks/config-BJ7Bv_G2.js +0 -148
- package/dist/chunks/config-BJ7Bv_G2.js.map +0 -1
- package/dist/chunks/config-BKvX0q102.js.map +0 -1
- package/dist/chunks/config-Baj7Wvx-.js.map +0 -1
- package/dist/chunks/config-BqFjr3tN.js +0 -131
- package/dist/chunks/config-BqFjr3tN.js.map +0 -1
- package/dist/chunks/config-CDat1wXf2.js.map +0 -1
- package/dist/chunks/config-CY0_6cMi2.js.map +0 -1
- package/dist/chunks/config-D3_g2KIn.js +0 -120
- package/dist/chunks/config-D3_g2KIn.js.map +0 -1
- package/dist/chunks/config-D94Z9po52.js.map +0 -1
- package/dist/chunks/config-DAX8Deh1.js.map +0 -1
- package/dist/chunks/config-DP7eseR1.js +0 -92
- package/dist/chunks/config-DP7eseR1.js.map +0 -1
- package/dist/chunks/config-DU2DNSRx2.js.map +0 -1
- package/dist/chunks/config-DhHbU3zO.js +0 -37
- package/dist/chunks/config-DhHbU3zO.js.map +0 -1
- package/dist/chunks/config-DvQIb4kb.js +0 -98
- package/dist/chunks/config-DvQIb4kb.js.map +0 -1
- package/dist/chunks/config-QaIc_gRa.js.map +0 -1
- package/dist/chunks/config-Rw9OyW702.js +0 -87
- package/dist/chunks/config-Rw9OyW702.js.map +0 -1
- package/dist/chunks/config-ScuvHw6k2.js.map +0 -1
- package/dist/chunks/config-WTNhdh6T2.js.map +0 -1
- package/dist/chunks/config-_qPUfb6-2.js +0 -165
- package/dist/chunks/config-_qPUfb6-2.js.map +0 -1
- package/dist/chunks/config-eXB87DOi.js.map +0 -1
- package/dist/chunks/config-gwro_7yn.js +0 -55
- package/dist/chunks/config-gwro_7yn.js.map +0 -1
- package/dist/chunks/context-BSYR7RZs.js +0 -152
- package/dist/chunks/context-BSYR7RZs.js.map +0 -1
- package/dist/chunks/en-COdzxgAX.js +0 -352
- package/dist/chunks/en-COdzxgAX.js.map +0 -1
- package/dist/chunks/es-ClqJ-4hr.js +0 -354
- package/dist/chunks/es-ClqJ-4hr.js.map +0 -1
- package/dist/chunks/es-DGMHwknJ.js +0 -20
- package/dist/chunks/es-DGMHwknJ.js.map +0 -1
- package/dist/chunks/generated-BRkbhyxk.js +0 -3270
- package/dist/chunks/generated-BRkbhyxk.js.map +0 -1
- package/dist/chunks/granular-provider-C6uAujdJ.js +0 -195
- package/dist/chunks/granular-provider-C6uAujdJ.js.map +0 -1
- package/dist/chunks/ru-9z8ix45c.js +0 -356
- package/dist/chunks/ru-9z8ix45c.js.map +0 -1
- package/dist/chunks/useModalOverlay-DrQVYwwA.js +0 -212
- package/dist/chunks/useModalOverlay-DrQVYwwA.js.map +0 -1
- package/dist/chunks/usePortalTarget-Cn-Wiz5d.js +0 -77
- package/dist/chunks/usePortalTarget-Cn-Wiz5d.js.map +0 -1
- package/dist/chunks/validation-5HhpanPP.js +0 -178
- package/dist/chunks/validation-5HhpanPP.js.map +0 -1
- package/dist/components/GrAlert/chunks/GrAlert-BC1lplbY.js +0 -272
- package/dist/components/GrAlert/chunks/GrAlert-BC1lplbY.js.map +0 -1
- package/dist/components/GrAutocomplete/chunks/GrAutocomplete-gY4Xopza.js +0 -860
- package/dist/components/GrAutocomplete/chunks/GrAutocomplete-gY4Xopza.js.map +0 -1
- package/dist/components/GrAvatar/chunks/GrAvatar-CVUujLmn.js +0 -222
- package/dist/components/GrAvatar/chunks/GrAvatar-CVUujLmn.js.map +0 -1
- package/dist/components/GrBadge/chunks/GrBadge-B1tgqfGQ.js +0 -40
- package/dist/components/GrBadge/chunks/GrBadge-B1tgqfGQ.js.map +0 -1
- package/dist/components/GrBadgeWrap/chunks/GrBadgeWrap-C-E9betg.js +0 -97
- package/dist/components/GrBadgeWrap/chunks/GrBadgeWrap-C-E9betg.js.map +0 -1
- package/dist/components/GrBottomNav/chunks/GrBottomNav-9GH7Dd9E.js +0 -117
- package/dist/components/GrBottomNav/chunks/GrBottomNav-9GH7Dd9E.js.map +0 -1
- package/dist/components/GrBreadcrumbs/chunks/GrBreadcrumbs-DS_-PBVt.js +0 -267
- package/dist/components/GrBreadcrumbs/chunks/GrBreadcrumbs-DS_-PBVt.js.map +0 -1
- package/dist/components/GrButton/chunks/GrButton-D0m_z0XW.js +0 -153
- package/dist/components/GrButton/chunks/GrButton-D0m_z0XW.js.map +0 -1
- package/dist/components/GrCard/chunks/GrCard-DOrGHf2x.js +0 -89
- package/dist/components/GrCard/chunks/GrCard-DOrGHf2x.js.map +0 -1
- package/dist/components/GrCheckbox/chunks/GrCheckbox-BLOp8452.js +0 -262
- package/dist/components/GrCheckbox/chunks/GrCheckbox-BLOp8452.js.map +0 -1
- package/dist/components/GrCheckboxGroup/chunks/GrCheckboxGroup-CXTx2Z5H.js +0 -140
- package/dist/components/GrCheckboxGroup/chunks/GrCheckboxGroup-CXTx2Z5H.js.map +0 -1
- package/dist/components/GrCollapse/chunks/GrCollapse-Kk0DE8tb.js +0 -308
- package/dist/components/GrCollapse/chunks/GrCollapse-Kk0DE8tb.js.map +0 -1
- package/dist/components/GrColorPicker/chunks/GrColorPicker-CkBTzkqn.js +0 -584
- package/dist/components/GrColorPicker/chunks/GrColorPicker-CkBTzkqn.js.map +0 -1
- package/dist/components/GrCommandPalette/chunks/GrCommandPalette-BugTlGdj.js +0 -591
- package/dist/components/GrCommandPalette/chunks/GrCommandPalette-BugTlGdj.js.map +0 -1
- package/dist/components/GrConfigProvider/chunks/GrConfigProvider-BA6JO7V6.js +0 -144
- package/dist/components/GrConfigProvider/chunks/GrConfigProvider-BA6JO7V6.js.map +0 -1
- package/dist/components/GrConfirmDialog/chunks/GrConfirmDialog-Ds5T0GiR.js +0 -200
- package/dist/components/GrConfirmDialog/chunks/GrConfirmDialog-Ds5T0GiR.js.map +0 -1
- package/dist/components/GrDataTable/chunks/GrDataTable-CYe2A2WA.js +0 -1055
- package/dist/components/GrDataTable/chunks/GrDataTable-CYe2A2WA.js.map +0 -1
- package/dist/components/GrDialog/chunks/GrDialog-C3tYaA8v.js +0 -255
- package/dist/components/GrDialog/chunks/GrDialog-C3tYaA8v.js.map +0 -1
- package/dist/components/GrDialogService/chunks/GrDialogService-CTBiiJDI.js +0 -656
- package/dist/components/GrDialogService/chunks/GrDialogService-CTBiiJDI.js.map +0 -1
- package/dist/components/GrDivider/chunks/GrDivider-xxq1_fIl.js +0 -109
- package/dist/components/GrDivider/chunks/GrDivider-xxq1_fIl.js.map +0 -1
- package/dist/components/GrDrawer/chunks/GrDrawer-BSSuiNHU.js +0 -251
- package/dist/components/GrDrawer/chunks/GrDrawer-BSSuiNHU.js.map +0 -1
- package/dist/components/GrDropdown/chunks/GrDropdown-Bh6UK2M5.js +0 -300
- package/dist/components/GrDropdown/chunks/GrDropdown-Bh6UK2M5.js.map +0 -1
- package/dist/components/GrDropdownMenu/chunks/GrDropdownMenu-LyfEFUbg.js +0 -421
- package/dist/components/GrDropdownMenu/chunks/GrDropdownMenu-LyfEFUbg.js.map +0 -1
- package/dist/components/GrEmptyState/chunks/GrEmptyState-W7Irx3vc.js +0 -86
- package/dist/components/GrEmptyState/chunks/GrEmptyState-W7Irx3vc.js.map +0 -1
- package/dist/components/GrFileUpload/chunks/GrFileUpload-DuDzC43S.js +0 -1080
- package/dist/components/GrFileUpload/chunks/GrFileUpload-DuDzC43S.js.map +0 -1
- package/dist/components/GrForm/chunks/GrForm-BCHCfIMv.js +0 -326
- package/dist/components/GrForm/chunks/GrForm-BCHCfIMv.js.map +0 -1
- package/dist/components/GrFormField/chunks/GrFormField-CL5rcgj6.js +0 -190
- package/dist/components/GrFormField/chunks/GrFormField-CL5rcgj6.js.map +0 -1
- package/dist/components/GrFormFile/chunks/GrFormFile-BikSD7bg.js +0 -452
- package/dist/components/GrFormFile/chunks/GrFormFile-BikSD7bg.js.map +0 -1
- package/dist/components/GrFormSection/chunks/GrFormSection-BEh5n4jF.js +0 -63
- package/dist/components/GrFormSection/chunks/GrFormSection-BEh5n4jF.js.map +0 -1
- package/dist/components/GrIcon/chunks/GrIcon-BvA2ZGXP.js +0 -57
- package/dist/components/GrIcon/chunks/GrIcon-BvA2ZGXP.js.map +0 -1
- package/dist/components/GrImageViewer/chunks/GrImageViewer-DfD4euH5.js +0 -1128
- package/dist/components/GrImageViewer/chunks/GrImageViewer-DfD4euH5.js.map +0 -1
- package/dist/components/GrInput/chunks/GrInput-2wd7Crs0.js +0 -348
- package/dist/components/GrInput/chunks/GrInput-2wd7Crs0.js.map +0 -1
- package/dist/components/GrInputTag/chunks/GrInputTag-CyV2eY7Z.js +0 -512
- package/dist/components/GrInputTag/chunks/GrInputTag-CyV2eY7Z.js.map +0 -1
- package/dist/components/GrKbd/chunks/GrKbd-DU2lBkRV.js +0 -358
- package/dist/components/GrKbd/chunks/GrKbd-DU2lBkRV.js.map +0 -1
- package/dist/components/GrLink/chunks/GrLink-D-cgUMXW.js +0 -163
- package/dist/components/GrLink/chunks/GrLink-D-cgUMXW.js.map +0 -1
- package/dist/components/GrList/chunks/GrList-4YU1NZtM.js +0 -277
- package/dist/components/GrList/chunks/GrList-4YU1NZtM.js.map +0 -1
- package/dist/components/GrLoading/chunks/GrLoading-CH95CFzS.js +0 -101
- package/dist/components/GrLoading/chunks/GrLoading-CH95CFzS.js.map +0 -1
- package/dist/components/GrModal/chunks/GrModal-CbMMr6W1.js +0 -313
- package/dist/components/GrModal/chunks/GrModal-CbMMr6W1.js.map +0 -1
- package/dist/components/GrNavbar/chunks/GrNavbar-CF0KbM_6.js +0 -104
- package/dist/components/GrNavbar/chunks/GrNavbar-CF0KbM_6.js.map +0 -1
- package/dist/components/GrNumberInput/chunks/GrNumberInput-B5CHZDBj.js +0 -659
- package/dist/components/GrNumberInput/chunks/GrNumberInput-B5CHZDBj.js.map +0 -1
- package/dist/components/GrPagination/chunks/GrPagination-BM4FrD6Q.js +0 -283
- package/dist/components/GrPagination/chunks/GrPagination-BM4FrD6Q.js.map +0 -1
- package/dist/components/GrPopover/chunks/GrPopover-DMH4Jjst.js +0 -216
- package/dist/components/GrPopover/chunks/GrPopover-DMH4Jjst.js.map +0 -1
- package/dist/components/GrProgressBar/chunks/GrProgressBar-xwbNM9QB.js +0 -90
- package/dist/components/GrProgressBar/chunks/GrProgressBar-xwbNM9QB.js.map +0 -1
- package/dist/components/GrProgressCircle/chunks/GrProgressCircle-B8olXRo5.js +0 -210
- package/dist/components/GrProgressCircle/chunks/GrProgressCircle-B8olXRo5.js.map +0 -1
- package/dist/components/GrPromptDialog/chunks/GrPromptDialog-Pwr9NPxK.js +0 -348
- package/dist/components/GrPromptDialog/chunks/GrPromptDialog-Pwr9NPxK.js.map +0 -1
- package/dist/components/GrRadio/chunks/GrRadio-DWiRaMzt.js +0 -253
- package/dist/components/GrRadio/chunks/GrRadio-DWiRaMzt.js.map +0 -1
- package/dist/components/GrRadioGroup/chunks/GrRadioGroup-DIuBw0wk.js +0 -196
- package/dist/components/GrRadioGroup/chunks/GrRadioGroup-DIuBw0wk.js.map +0 -1
- package/dist/components/GrRating/chunks/GrRating-DVFH3lYu.js +0 -316
- package/dist/components/GrRating/chunks/GrRating-DVFH3lYu.js.map +0 -1
- package/dist/components/GrResponseErrorBanner/chunks/GrResponseErrorBanner-C7W9mgYN.js +0 -777
- package/dist/components/GrResponseErrorBanner/chunks/GrResponseErrorBanner-C7W9mgYN.js.map +0 -1
- package/dist/components/GrResponseErrorBanner/chunks/GrResponseErrorBanner-DhX4jjay.js +0 -224
- package/dist/components/GrResponseErrorBanner/chunks/GrResponseErrorBanner-DhX4jjay.js.map +0 -1
- package/dist/components/GrSegmented/chunks/GrSegmented-CQw3ijqa.js +0 -388
- package/dist/components/GrSegmented/chunks/GrSegmented-CQw3ijqa.js.map +0 -1
- package/dist/components/GrSelect/chunks/GrSelect-B-Voni7D.js +0 -1386
- package/dist/components/GrSelect/chunks/GrSelect-B-Voni7D.js.map +0 -1
- package/dist/components/GrSidebar/chunks/GrSidebar-i7AxjhY_.js +0 -258
- package/dist/components/GrSidebar/chunks/GrSidebar-i7AxjhY_.js.map +0 -1
- package/dist/components/GrSkeleton/chunks/GrSkeleton-DEvNE3bC.js +0 -84
- package/dist/components/GrSkeleton/chunks/GrSkeleton-DEvNE3bC.js.map +0 -1
- package/dist/components/GrSlider/chunks/GrSlider-CyhVsNKn.js +0 -379
- package/dist/components/GrSlider/chunks/GrSlider-CyhVsNKn.js.map +0 -1
- package/dist/components/GrSortableList/chunks/GrSortableList-XB7mXM1W.js +0 -277
- package/dist/components/GrSortableList/chunks/GrSortableList-XB7mXM1W.js.map +0 -1
- package/dist/components/GrSplitter/chunks/GrSplitter-BzxVQwbY.js +0 -268
- package/dist/components/GrSplitter/chunks/GrSplitter-BzxVQwbY.js.map +0 -1
- package/dist/components/GrStatistic/chunks/GrStatistic-DOsM6s5V.js +0 -366
- package/dist/components/GrStatistic/chunks/GrStatistic-DOsM6s5V.js.map +0 -1
- package/dist/components/GrSwitch/chunks/GrSwitch-DpyvVrZG.js +0 -183
- package/dist/components/GrSwitch/chunks/GrSwitch-DpyvVrZG.js.map +0 -1
- package/dist/components/GrTabPanels/chunks/GrTabPanels-BVe1CZdJ.js +0 -81
- package/dist/components/GrTabPanels/chunks/GrTabPanels-BVe1CZdJ.js.map +0 -1
- package/dist/components/GrTable/chunks/GrTable-BfqgwETQ.js +0 -169
- package/dist/components/GrTable/chunks/GrTable-BfqgwETQ.js.map +0 -1
- package/dist/components/GrTabs/chunks/GrTabs-f3-oQenu.js +0 -262
- package/dist/components/GrTabs/chunks/GrTabs-f3-oQenu.js.map +0 -1
- package/dist/components/GrTextarea/chunks/GrTextarea-DSvd1nSy.js +0 -241
- package/dist/components/GrTextarea/chunks/GrTextarea-DSvd1nSy.js.map +0 -1
- package/dist/components/GrTimeline/chunks/GrTimeline-B-h2Yanw.js +0 -285
- package/dist/components/GrTimeline/chunks/GrTimeline-B-h2Yanw.js.map +0 -1
- package/dist/components/GrToaster/chunks/GrToaster-Dqja0Lf9.js +0 -373
- package/dist/components/GrToaster/chunks/GrToaster-Dqja0Lf9.js.map +0 -1
- package/dist/components/GrTooltip/chunks/GrTooltip-Cn08heWz.js +0 -185
- package/dist/components/GrTooltip/chunks/GrTooltip-Cn08heWz.js.map +0 -1
- package/dist/components/GrTree/chunks/GrTree-BR9a2pay.js +0 -1376
- package/dist/components/GrTree/chunks/GrTree-BR9a2pay.js.map +0 -1
- package/dist/components/GrTreeSelect/chunks/GrTreeSelect--muUeB0v.js +0 -637
- package/dist/components/GrTreeSelect/chunks/GrTreeSelect--muUeB0v.js.map +0 -1
- package/dist/types/src/components/GrAlert/index.d.ts +0 -8
- package/dist/types/src/components/GrAvatar/index.d.ts +0 -10
- package/dist/types/src/components/GrBadgeWrap/index.d.ts +0 -7
- package/dist/types/src/components/GrBottomNav/index.d.ts +0 -9
- package/dist/types/src/components/GrButton/GrButton.vue.d.ts +0 -117
- package/dist/types/src/components/GrButton/index.d.ts +0 -11
- package/dist/types/src/components/GrCard/GrCard.vue.d.ts +0 -90
- package/dist/types/src/components/GrCard/defaults.d.ts +0 -15
- package/dist/types/src/components/GrCard/grCardStyles.d.ts +0 -24
- package/dist/types/src/components/GrCard/index.d.ts +0 -8
- package/dist/types/src/components/GrCheckbox/index.d.ts +0 -13
- package/dist/types/src/components/GrCollapse/GrCollapse.vue.d.ts +0 -115
- package/dist/types/src/components/GrCollapse/index.d.ts +0 -9
- package/dist/types/src/components/GrColorPicker/index.d.ts +0 -11
- package/dist/types/src/components/GrCommandPalette/GrCommandPalette.vue.d.ts +0 -163
- package/dist/types/src/components/GrCommandPalette/index.d.ts +0 -10
- package/dist/types/src/components/GrConfigProvider/index.d.ts +0 -6
- package/dist/types/src/components/GrDataTable/GrDataTable.vue.d.ts +0 -213
- package/dist/types/src/components/GrDataTable/grDataTableStyles.d.ts +0 -67
- package/dist/types/src/components/GrDataTable/index.d.ts +0 -13
- package/dist/types/src/components/GrDialog/index.d.ts +0 -12
- package/dist/types/src/components/GrDialogService/index.d.ts +0 -6
- package/dist/types/src/components/GrDropdownMenu/index.d.ts +0 -22
- package/dist/types/src/components/GrEmptyState/index.d.ts +0 -8
- package/dist/types/src/components/GrFileUpload/index.d.ts +0 -18
- package/dist/types/src/components/GrForm/GrForm.vue.d.ts +0 -129
- package/dist/types/src/components/GrForm/index.d.ts +0 -10
- package/dist/types/src/components/GrFormField/GrFormField.vue.d.ts +0 -122
- package/dist/types/src/components/GrFormField/index.d.ts +0 -8
- package/dist/types/src/components/GrFormSection/index.d.ts +0 -8
- package/dist/types/src/components/GrImageViewer/GrImageViewer.vue.d.ts +0 -271
- package/dist/types/src/components/GrInput/GrInput.vue.d.ts +0 -207
- package/dist/types/src/components/GrInputTag/GrInputTag.vue.d.ts +0 -216
- package/dist/types/src/components/GrNumberInput/GrNumberInput.vue.d.ts +0 -223
- package/dist/types/src/components/GrProgressCircle/index.d.ts +0 -11
- package/dist/types/src/components/GrRadio/index.d.ts +0 -9
- package/dist/types/src/components/GrRating/GrRating.vue.d.ts +0 -178
- package/dist/types/src/components/GrResponseErrorBanner/index.d.ts +0 -16
- package/dist/types/src/components/GrSegmented/GrSegmented.vue.d.ts +0 -122
- package/dist/types/src/components/GrSegmented/index.d.ts +0 -11
- package/dist/types/src/components/GrSelect/GrSelect.vue.d.ts +0 -205
- package/dist/types/src/components/GrSidebar/index.d.ts +0 -10
- package/dist/types/src/components/GrSkeleton/index.d.ts +0 -4
- package/dist/types/src/components/GrSplitter/index.d.ts +0 -11
- package/dist/types/src/components/GrStatistic/GrStatistic.vue.d.ts +0 -168
- package/dist/types/src/components/GrSwitch/GrSwitch.vue.d.ts +0 -130
- package/dist/types/src/components/GrTabPanels/index.d.ts +0 -8
- package/dist/types/src/components/GrTable/GrTable.vue.d.ts +0 -177
- package/dist/types/src/components/GrTabs/GrTabs.vue.d.ts +0 -121
- package/dist/types/src/components/GrTabs/index.d.ts +0 -9
- package/dist/types/src/components/GrTimeline/GrTimelineItem.vue.d.ts +0 -84
- package/dist/types/src/components/GrTimeline/index.d.ts +0 -12
- package/dist/types/src/components/GrTreeSelect/GrTreeSelect.vue.d.ts +0 -69
- package/dist/types/src/components/shared/sizes.d.ts +0 -30
- package/dist/types/src/composables/useToast.d.ts +0 -89
- package/dist/types/src/granular-provider/shared.d.ts +0 -90
- package/dist/types/src/i18n/messages/en.d.ts +0 -680
- package/dist/types/src/i18n/messages/es.d.ts +0 -677
- package/dist/types/src/i18n/messages/ru.d.ts +0 -681
- package/dist/types/src/index.d.ts +0 -103
- package/dist/types/src/testing/index.d.ts +0 -12
- /package/dist/chunks/{config-8Pcutu1j2.js → config-8Pcutu1j.js} +0 -0
- /package/dist/chunks/{config-BDfTXHo12.js → config-BDfTXHo1.js} +0 -0
- /package/dist/chunks/{config-BE6n20np2.js → config-BE6n20np.js} +0 -0
- /package/dist/chunks/{config-BKvX0q102.js → config-BKvX0q10.js} +0 -0
- /package/dist/chunks/{config-Baj7Wvx-.js → config-Baj7Wvx-2.js} +0 -0
- /package/dist/chunks/{config-CDat1wXf2.js → config-CDat1wXf.js} +0 -0
- /package/dist/chunks/{config-CY0_6cMi2.js → config-CY0_6cMi.js} +0 -0
- /package/dist/chunks/{config-D94Z9po52.js → config-D94Z9po5.js} +0 -0
- /package/dist/chunks/{config-DAX8Deh1.js → config-DAX8Deh12.js} +0 -0
- /package/dist/chunks/{config-DU2DNSRx2.js → config-DU2DNSRx.js} +0 -0
- /package/dist/chunks/{config-QaIc_gRa.js → config-QaIc_gRa2.js} +0 -0
- /package/dist/chunks/{config-ScuvHw6k2.js → config-ScuvHw6k.js} +0 -0
- /package/dist/chunks/{config-WTNhdh6T2.js → config-WTNhdh6T.js} +0 -0
- /package/dist/chunks/{config-eXB87DOi.js → config-eXB87DOi2.js} +0 -0
- /package/dist/types/{src/components → components}/GrAlert/GrAlert.vue.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrAlert/config.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrAlert/defaults.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrAlert/grAlertStyles.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrAutocomplete/GrAutocomplete.vue.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrAutocomplete/config.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrAutocomplete/defaults.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrAutocomplete/grAutocompleteStyles.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrAutocomplete/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrAutocomplete/safelist.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrAvatar/GrAvatar.vue.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrAvatar/GrAvatarGroup.vue.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrAvatar/avatarContext.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrAvatar/config.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrAvatar/defaults.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrAvatar/grAvatarStyles.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrAvatar/safelist.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrBadge/GrBadge.vue.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrBadge/config.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrBadge/defaults.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrBadge/grBadgeStyles.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrBadge/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrBadge/safelist.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrBadgeWrap/GrBadgeWrap.vue.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrBadgeWrap/config.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrBadgeWrap/grBadgeWrapStyles.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrBadgeWrap/safelist.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrBottomNav/GrBottomNav.vue.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrBottomNav/config.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrBottomNav/defaults.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrBottomNav/grBottomNavStyles.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrBottomNav/safelist.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrBreadcrumbs/GrBreadcrumbs.vue.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrBreadcrumbs/config.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrBreadcrumbs/defaults.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrBreadcrumbs/grBreadcrumbsStyles.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrBreadcrumbs/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrBreadcrumbs/safelist.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrButton/config.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrButton/defaults.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrButton/grButtonStyles.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrButton/safelist.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrButtonGroup/GrButtonGroup.vue.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrButtonGroup/config.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrButtonGroup/context.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrButtonGroup/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrCard/config.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrCard/safelist.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrCheckbox/GrCheckbox.vue.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrCheckbox/config.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrCheckbox/defaults.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrCheckbox/grCheckboxGroupContext.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrCheckbox/grCheckboxStyles.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrCheckbox/safelist.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrCheckboxGroup/GrCheckboxGroup.vue.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrCheckboxGroup/config.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrCheckboxGroup/defaults.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrCheckboxGroup/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrCollapse/GrCollapseItem.vue.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrCollapse/config.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrCollapse/defaults.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrCollapse/grCollapseContext.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrCollapse/grCollapseStyles.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrCollapse/safelist.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrColorPicker/GrColorPicker.vue.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrColorPicker/color.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrColorPicker/config.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrColorPicker/defaults.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrColorPicker/grColorPickerStyles.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrColorPicker/safelist.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrCommandPalette/config.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrCommandPalette/defaults.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrCommandPalette/filtering.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrCommandPalette/grCommandPaletteStyles.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrCommandPalette/safelist.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrConfigProvider/GrConfigProvider.vue.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrConfigProvider/config.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrConfigProvider/context.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrConfigProvider/zIndexScale.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrConfirmDialog/GrConfirmDialog.vue.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrConfirmDialog/config.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrConfirmDialog/defaults.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrConfirmDialog/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrDataTable/config.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrDataTable/defaults.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrDataTable/grDataTableSort.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrDataTable/safelist.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrDialog/GrDialog.vue.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrDialog/GrDialogCloseButton.vue.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrDialog/GrDialogFooter.vue.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrDialog/GrDialogHeader.vue.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrDialog/config.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrDialog/defaults.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrDialog/dialogShared.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrDialog/safelist.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrDialogService/GrDialogServiceHost.vue.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrDialogService/GrDialogServiceItem.vue.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrDialogService/config.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrDialogService/store.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrDialogService/types.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrDialogService/useDialogService.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrDivider/GrDivider.vue.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrDivider/config.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrDivider/defaults.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrDivider/grDividerStyles.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrDivider/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrDivider/safelist.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrDrawer/GrDrawer.vue.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrDrawer/config.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrDrawer/defaults.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrDrawer/grDrawerStyles.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrDrawer/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrDrawer/safelist.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrDropdown/GrDropdown.vue.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrDropdown/config.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrDropdown/grDropdownStyles.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrDropdown/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrDropdown/safelist.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrDropdownMenu/GrDropdownMenu.vue.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrDropdownMenu/GrDropdownMenuColumn.vue.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrDropdownMenu/GrDropdownMenuColumns.vue.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrDropdownMenu/GrDropdownMenuDivider.vue.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrDropdownMenu/GrDropdownMenuGroup.vue.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrDropdownMenu/GrDropdownMenuHeader.vue.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrDropdownMenu/GrDropdownMenuItem.vue.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrDropdownMenu/GrDropdownMenuList.vue.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrDropdownMenu/config.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrDropdownMenu/grDropdownMenuStyles.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrDropdownMenu/menuModel.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrDropdownMenu/safelist.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrEmptyState/GrEmptyState.vue.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrEmptyState/config.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrEmptyState/defaults.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrEmptyState/grEmptyStateStyles.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrEmptyState/safelist.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrFileUpload/FileValidationError.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrFileUpload/GrFileUpload.vue.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrFileUpload/acceptValidator.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrFileUpload/config.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrFileUpload/defaults.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrFileUpload/fileEntry.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrFileUpload/grFileUploadStyles.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrFileUpload/matchAccept.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrFileUpload/maxFileSize.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrFileUpload/runFileValidators.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrFileUpload/safelist.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrFileUpload/types.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrFileUpload/uploadState.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrFileUpload/uploadViaXhr.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrFileUpload/useDropZone.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrFileUpload/usePerFileUpload.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrFileUpload/useUploadState.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrForm/config.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrForm/context.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrForm/fileRule.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrForm/modelSnapshot.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrForm/validation.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrFormField/config.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrFormField/context.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrFormField/defaults.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrFormField/grFormFieldStyles.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrFormField/safelist.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrFormFile/GrFormFile.vue.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrFormFile/config.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrFormFile/defaults.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrFormFile/grFormFileStyles.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrFormFile/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrFormFile/safelist.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrFormSection/GrFormSection.vue.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrFormSection/config.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrFormSection/defaults.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrFormSection/grFormSectionStyles.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrFormSection/safelist.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrIcon/GrIcon.vue.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrIcon/config.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrIcon/defaults.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrIcon/grIconStyles.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrIcon/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrIcon/safelist.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrImageViewer/composables/usePointerGestures.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrImageViewer/composables/useViewerKeyboard.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrImageViewer/composables/useWheelGesture.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrImageViewer/composables/useZoomPan.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrImageViewer/config.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrImageViewer/grImageViewerStyles.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrImageViewer/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrImageViewer/safelist.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrInput/config.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrInput/defaults.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrInput/grInputStyles.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrInput/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrInput/safelist.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrInputTag/config.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrInputTag/defaults.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrInputTag/grInputTagStyles.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrInputTag/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrInputTag/safelist.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrKbd/GrKbd.vue.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrKbd/config.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrKbd/defaults.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrKbd/grKbdStyles.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrKbd/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrKbd/safelist.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrLink/GrLink.vue.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrLink/config.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrLink/defaults.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrLink/grLinkStyles.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrLink/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrLink/safelist.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrList/GrList.vue.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrList/GrListItem.vue.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrList/config.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrList/grListStyles.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrList/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrList/safelist.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrLoading/GrLoading.vue.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrLoading/config.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrLoading/grLoadingStyles.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrLoading/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrLoading/safelist.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrModal/GrModal.vue.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrModal/config.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrModal/context.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrModal/defaults.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrModal/grModalStyles.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrModal/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrModal/safelist.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrNavbar/GrNavbar.vue.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrNavbar/config.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrNavbar/grNavbarStyles.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrNavbar/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrNavbar/safelist.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrNumberInput/config.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrNumberInput/defaults.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrNumberInput/grNumberInputStyles.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrNumberInput/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrNumberInput/numberInputMath.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrNumberInput/safelist.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrPagination/GrPagination.vue.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrPagination/config.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrPagination/defaults.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrPagination/grPaginationStyles.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrPagination/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrPagination/safelist.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrPopover/GrPopover.vue.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrPopover/config.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrPopover/defaults.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrPopover/grPopoverStyles.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrPopover/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrPopover/safelist.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrProgressBar/GrProgressBar.vue.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrProgressBar/config.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrProgressBar/defaults.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrProgressBar/grStyle.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrProgressBar/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrProgressBar/safelist.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrProgressCircle/GrProgressCircle.vue.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrProgressCircle/config.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrProgressCircle/defaults.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrProgressCircle/geometry.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrProgressCircle/grProgressCircleStyles.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrProgressCircle/safelist.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrPromptDialog/GrPromptDialog.vue.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrPromptDialog/config.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrPromptDialog/defaults.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrPromptDialog/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrRadio/GrRadio.vue.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrRadio/config.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrRadio/defaults.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrRadio/grRadioGroupContext.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrRadio/grRadioStyles.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrRadio/safelist.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrRadioGroup/GrRadioGroup.vue.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrRadioGroup/config.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrRadioGroup/defaults.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrRadioGroup/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrRating/config.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrRating/defaults.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrRating/grRatingStyles.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrRating/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrRating/safelist.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrResponseErrorBanner/GrFormErrorBanner.vue.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrResponseErrorBanner/GrResponseErrorBanner.vue.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrResponseErrorBanner/GrUploadErrorBanner.vue.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrResponseErrorBanner/config.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrResponseErrorBanner/parsers/abortErrorParser.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrResponseErrorBanner/parsers/createResponseErrorClassifier.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrResponseErrorBanner/parsers/fileValidationParser.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrResponseErrorBanner/parsers/httpStatusParser.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrResponseErrorBanner/parsers/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrResponseErrorBanner/parsers/jsonApiErrorParser.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrResponseErrorBanner/parsers/laravelValidationParser.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrResponseErrorBanner/parsers/networkErrorParser.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrResponseErrorBanner/parsers/normalizeError.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrResponseErrorBanner/parsers/plainMessageParser.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrResponseErrorBanner/parsers/problemDetailsParser.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrResponseErrorBanner/responseError.defaults.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrResponseErrorBanner/responseError.types.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrResponseErrorBanner/useResponseError.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrSegmented/config.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrSegmented/defaults.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrSegmented/grSegmentedStyles.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrSegmented/safelist.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrSelect/composables/useSelectNavigation.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrSelect/composables/useSelectPanelItems.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrSelect/composables/useSelectValues.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrSelect/composables/useSelectVirtualization.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrSelect/config.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrSelect/defaults.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrSelect/grSelectStyles.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrSelect/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrSelect/safelist.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrSelect/selectValue.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrSidebar/GrSidebar.vue.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrSidebar/GrSidebarGroup.vue.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrSidebar/GrSidebarItem.vue.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrSidebar/config.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrSidebar/grSidebarStyles.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrSidebar/safelist.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrSidebar/sidebarContext.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrSkeleton/GrSkeleton.vue.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrSkeleton/config.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrSkeleton/grSkeletonStyles.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrSlider/GrSlider.vue.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrSlider/config.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrSlider/defaults.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrSlider/grSliderStyles.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrSlider/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrSlider/safelist.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrSortableList/GrSortableList.vue.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrSortableList/config.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrSortableList/grSortableListStyles.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrSortableList/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrSortableList/safelist.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrSplitter/GrSplitter.vue.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrSplitter/config.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrSplitter/defaults.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrSplitter/grSplitterStyles.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrSplitter/safelist.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrSplitter/splitterGeometry.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrStatistic/config.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrStatistic/countUp.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrStatistic/defaults.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrStatistic/formatStatisticValue.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrStatistic/grStatisticStyles.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrStatistic/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrStatistic/safelist.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrSwitch/config.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrSwitch/defaults.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrSwitch/grSwitchStyles.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrSwitch/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrSwitch/safelist.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrTabPanels/GrTabPanel.vue.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrTabPanels/GrTabPanels.vue.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrTabPanels/config.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrTabPanels/context.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrTable/config.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrTable/defaults.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrTable/grTableStyles.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrTable/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrTable/safelist.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrTabs/config.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrTabs/defaults.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrTabs/grTabsStyles.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrTabs/safelist.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrTextarea/GrTextarea.vue.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrTextarea/config.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrTextarea/defaults.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrTextarea/grTextareaStyles.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrTextarea/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrTextarea/safelist.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrTimeline/GrTimeline.vue.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrTimeline/config.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrTimeline/defaults.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrTimeline/grTimelineContext.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrTimeline/grTimelineStyles.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrTimeline/safelist.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrTimeline/timelineGroups.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrToaster/GrToaster.vue.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrToaster/config.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrToaster/grToasterStyles.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrToaster/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrToaster/safelist.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrTooltip/GrTooltip.vue.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrTooltip/config.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrTooltip/defaults.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrTooltip/grTooltipStyles.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrTooltip/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrTooltip/safelist.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrTree/GrTree.vue.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrTree/config.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrTree/defaults.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrTree/grTreeChecking.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrTree/grTreeDataAdapter.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrTree/grTreeInteractionContext.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrTree/grTreeProps.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrTree/grTreeStore.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrTree/grTreeStyles.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrTree/grTreeTypes.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrTree/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrTree/safelist.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrTreeSelect/config.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrTreeSelect/defaults.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrTreeSelect/grTreeSelectStyles.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrTreeSelect/grTreeSelectTypes.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrTreeSelect/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/GrTreeSelect/safelist.d.ts +0 -0
- /package/dist/types/{src/components → components}/shared/classTokens.d.ts +0 -0
- /package/dist/types/{src/components → components}/shared/hotkey.d.ts +0 -0
- /package/dist/types/{src/components → components}/shared/hotkeyTokens.d.ts +0 -0
- /package/dist/types/{src/components → components}/shared/icon.d.ts +0 -0
- /package/dist/types/{src/components → components}/shared/instance.d.ts +0 -0
- /package/dist/types/{src/components → components}/shared/optionFilter.d.ts +0 -0
- /package/dist/types/{src/components → components}/shared/slotNodes.d.ts +0 -0
- /package/dist/types/{src/components → components}/shared/tones.d.ts +0 -0
- /package/dist/types/{src/composables → composables}/internal/dragSortGeometry.d.ts +0 -0
- /package/dist/types/{src/composables → composables}/internal/focusables.d.ts +0 -0
- /package/dist/types/{src/composables → composables}/internal/inert.d.ts +0 -0
- /package/dist/types/{src/composables → composables}/internal/overlayStack.d.ts +0 -0
- /package/dist/types/{src/composables → composables}/internal/portalRoot.d.ts +0 -0
- /package/dist/types/{src/composables → composables}/internal/useAddonMeasurement.d.ts +0 -0
- /package/dist/types/{src/composables → composables}/internal/useControlAddons.d.ts +0 -0
- /package/dist/types/{src/composables → composables}/internal/useControlledOpen.d.ts +0 -0
- /package/dist/types/{src/composables → composables}/internal/useFilePreviews.d.ts +0 -0
- /package/dist/types/{src/composables → composables}/internal/useFocusWithin.d.ts +0 -0
- /package/dist/types/{src/composables → composables}/internal/useInertOthers.d.ts +0 -0
- /package/dist/types/{src/composables → composables}/internal/useModalOverlay.d.ts +0 -0
- /package/dist/types/{src/composables → composables}/internal/useOverlayPresence.d.ts +0 -0
- /package/dist/types/{src/composables → composables}/internal/useScrollLock.d.ts +0 -0
- /package/dist/types/{src/composables → composables}/internal/useTeleportEnabled.d.ts +0 -0
- /package/dist/types/{src/composables → composables}/useAnnouncer.d.ts +0 -0
- /package/dist/types/{src/composables → composables}/useComboboxNavigation.d.ts +0 -0
- /package/dist/types/{src/composables → composables}/useDismissible.d.ts +0 -0
- /package/dist/types/{src/composables → composables}/useDragGesture.d.ts +0 -0
- /package/dist/types/{src/composables → composables}/useDragSort.d.ts +0 -0
- /package/dist/types/{src/composables → composables}/useFloating.d.ts +0 -0
- /package/dist/types/{src/composables → composables}/useFocusTrap.d.ts +0 -0
- /package/dist/types/{src/composables → composables}/useGrComponentConfig.d.ts +0 -0
- /package/dist/types/{src/composables → composables}/useGrFormControl.d.ts +0 -0
- /package/dist/types/{src/composables → composables}/useGranularityTranslations.d.ts +0 -0
- /package/dist/types/{src/composables → composables}/useOverlayLayer.d.ts +0 -0
- /package/dist/types/{src/composables → composables}/usePortalTarget.d.ts +0 -0
- /package/dist/types/{src/composables → composables}/useRovingFocus.d.ts +0 -0
- /package/dist/types/{src/composables → composables}/useTheme.d.ts +0 -0
- /package/dist/types/{src/composables → composables}/useVirtualList.d.ts +0 -0
- /package/dist/types/{src/directives → directives}/autofocus.d.ts +0 -0
- /package/dist/types/{src/directives → directives}/autosize.d.ts +0 -0
- /package/dist/types/{src/directives → directives}/clickOutside.d.ts +0 -0
- /package/dist/types/{src/directives → directives}/dropzone.d.ts +0 -0
- /package/dist/types/{src/directives → directives}/globalDirectives.d.ts +0 -0
- /package/dist/types/{src/directives → directives}/hotkey.d.ts +0 -0
- /package/dist/types/{src/directives → directives}/index.d.ts +0 -0
- /package/dist/types/{src/directives → directives}/loading.d.ts +0 -0
- /package/dist/types/{src/fileValidation → fileValidation}/FileValidationError.d.ts +0 -0
- /package/dist/types/{src/fileValidation → fileValidation}/acceptValidator.d.ts +0 -0
- /package/dist/types/{src/fileValidation → fileValidation}/allowedExtensionsValidator.d.ts +0 -0
- /package/dist/types/{src/fileValidation → fileValidation}/allowedMimeTypesValidator.d.ts +0 -0
- /package/dist/types/{src/fileValidation → fileValidation}/i18n.d.ts +0 -0
- /package/dist/types/{src/fileValidation → fileValidation}/index.d.ts +0 -0
- /package/dist/types/{src/fileValidation → fileValidation}/matchAccept.d.ts +0 -0
- /package/dist/types/{src/fileValidation → fileValidation}/maxCountValidator.d.ts +0 -0
- /package/dist/types/{src/fileValidation → fileValidation}/maxFileSize.d.ts +0 -0
- /package/dist/types/{src/fileValidation → fileValidation}/maxTotalSizeBytesValidator.d.ts +0 -0
- /package/dist/types/{src/fileValidation → fileValidation}/runFileValidators.d.ts +0 -0
- /package/dist/types/{src/fileValidation → fileValidation}/types.d.ts +0 -0
- /package/dist/types/{src/granular-provider → granular-provider}/index.d.ts +0 -0
- /package/dist/types/{src/granular-provider → granular-provider}/node.d.ts +0 -0
- /package/dist/types/{src/i18n → i18n}/adapter.d.ts +0 -0
- /package/dist/types/{src/i18n → i18n}/all.d.ts +0 -0
- /package/dist/types/{src/i18n → i18n}/index.d.ts +0 -0
- /package/dist/types/{src/i18n → i18n}/messages/const.d.ts +0 -0
- /package/dist/types/{src/i18n → i18n}/messages/index.d.ts +0 -0
- /package/dist/types/{src/internal → internal}/granularityFormat.d.ts +0 -0
- /package/dist/types/{src/internal → internal}/granularityI18n.d.ts +0 -0
- /package/dist/types/{src/internal → internal}/keyboard.d.ts +0 -0
- /package/dist/types/{src/testing → testing}/announcer.d.ts +0 -0
- /package/dist/types/{src/testing → testing}/context.d.ts +0 -0
- /package/dist/types/{src/testing → testing}/env.d.ts +0 -0
- /package/dist/types/{src/testing → testing}/geometry.d.ts +0 -0
- /package/dist/types/{src/testing → testing}/pointer.d.ts +0 -0
- /package/dist/types/{src/theme → theme}/apply.d.ts +0 -0
- /package/dist/types/{src/theme → theme}/color.d.ts +0 -0
- /package/dist/types/{src/theme → theme}/extendTheme.d.ts +0 -0
- /package/dist/types/{src/theme → theme}/index.d.ts +0 -0
- /package/dist/types/{src/theme → theme}/roles.d.ts +0 -0
- /package/dist/types/{src/theme → theme}/tone.d.ts +0 -0
- /package/dist/types/{src/theme → theme}/validate.d.ts +0 -0
- /package/dist/types/{src/tokens → tokens}/generated.d.ts +0 -0
- /package/dist/types/{src/tokens → tokens}/index.d.ts +0 -0
- /package/dist/types/{src/tokens → tokens}/types.d.ts +0 -0
- /package/dist/types/{src/vue → vue}/index.d.ts +0 -0
- /package/dist/types/{src/vue → vue}/plugin.d.ts +0 -0
|
@@ -0,0 +1,1376 @@
|
|
|
1
|
+
import { a as useGrComponentSize } from "../../../chunks/context-CTbuwcYs.js";
|
|
2
|
+
import { n as useGranularityTranslations } from "../../../chunks/granularityI18n-BC5zsj_d.js";
|
|
3
|
+
import { t as loader_circle_default } from "../../../chunks/loader-circle-CfVLz7lb.js";
|
|
4
|
+
import { useVirtualList } from "../../../composables/useVirtualList.js";
|
|
5
|
+
import { t as _plugin_vue_export_helper_default } from "../../../chunks/_plugin-vue_export-helper-BOaGB7Aw.js";
|
|
6
|
+
import { t as check_default } from "../../../chunks/check-BZI24Qs4.js";
|
|
7
|
+
import { n as iconTag, t as iconClass } from "../../../chunks/icon-Dag2tIMs.js";
|
|
8
|
+
import { t as minus_default } from "../../../chunks/minus-oxdbHF33.js";
|
|
9
|
+
import { useAnnouncer } from "../../../composables/useAnnouncer.js";
|
|
10
|
+
import { t as useDragSort } from "../../../chunks/useDragSort-0l47h4yb.js";
|
|
11
|
+
import { useRovingFocus } from "../../../composables/useRovingFocus.js";
|
|
12
|
+
import { t as grip_vertical_default } from "../../../chunks/grip-vertical-lRha2S7q.js";
|
|
13
|
+
import { t as chevron_right_default } from "../../../chunks/chevron-right-C6Z01h0X.js";
|
|
14
|
+
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, defineComponent, nextTick, normalizeClass, normalizeStyle, onBeforeUnmount, onUnmounted, openBlock, ref, renderList, renderSlot, resolveDynamicComponent, shallowRef, toDisplayString, toValue, unref, watch, withModifiers } from "vue";
|
|
15
|
+
import '../styles.css';//#region src/components/GrTree/grTreeDataAdapter.ts
|
|
16
|
+
var DEFAULT_CHILDREN_KEY = "children";
|
|
17
|
+
var DEFAULT_LABEL_KEY = "label";
|
|
18
|
+
var DEFAULT_IS_LEAF_KEY = "isLeaf";
|
|
19
|
+
function isTreeKey(value) {
|
|
20
|
+
return typeof value === "string" || typeof value === "number";
|
|
21
|
+
}
|
|
22
|
+
function resolveMapValue(map, key, fallback) {
|
|
23
|
+
return map?.[key] ?? fallback;
|
|
24
|
+
}
|
|
25
|
+
function createGrTreeDataAdapter(options) {
|
|
26
|
+
function hasNodeKey() {
|
|
27
|
+
return options.nodeKey != null;
|
|
28
|
+
}
|
|
29
|
+
function getChildrenKey() {
|
|
30
|
+
return resolveMapValue(options.props, "children", DEFAULT_CHILDREN_KEY);
|
|
31
|
+
}
|
|
32
|
+
function getLabelKey() {
|
|
33
|
+
return resolveMapValue(options.props, "label", DEFAULT_LABEL_KEY);
|
|
34
|
+
}
|
|
35
|
+
function getLabel(data) {
|
|
36
|
+
const value = data[getLabelKey()];
|
|
37
|
+
return value == null ? "" : String(value);
|
|
38
|
+
}
|
|
39
|
+
function getIsLeaf(data) {
|
|
40
|
+
const value = data[resolveMapValue(options.props, "isLeaf", DEFAULT_IS_LEAF_KEY)];
|
|
41
|
+
return typeof value === "boolean" ? value : void 0;
|
|
42
|
+
}
|
|
43
|
+
function getChildren(data) {
|
|
44
|
+
const value = data[getChildrenKey()];
|
|
45
|
+
return Array.isArray(value) ? value : [];
|
|
46
|
+
}
|
|
47
|
+
function ensureChildren(data) {
|
|
48
|
+
const key = getChildrenKey();
|
|
49
|
+
const value = data[key];
|
|
50
|
+
if (Array.isArray(value)) return value;
|
|
51
|
+
data[key] = [];
|
|
52
|
+
return data[key];
|
|
53
|
+
}
|
|
54
|
+
function getExplicitNodeKey(data) {
|
|
55
|
+
if (options.nodeKey == null) return void 0;
|
|
56
|
+
const value = data[options.nodeKey];
|
|
57
|
+
return isTreeKey(value) ? value : void 0;
|
|
58
|
+
}
|
|
59
|
+
function getNodeKey(data, index, parentKey) {
|
|
60
|
+
const explicitKey = getExplicitNodeKey(data);
|
|
61
|
+
if (explicitKey != null) return explicitKey;
|
|
62
|
+
return parentKey == null ? index : `${String(parentKey)}:${index}`;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
hasNodeKey,
|
|
66
|
+
getChildrenKey,
|
|
67
|
+
getLabelKey,
|
|
68
|
+
getLabel,
|
|
69
|
+
getIsLeaf,
|
|
70
|
+
getChildren,
|
|
71
|
+
ensureChildren,
|
|
72
|
+
getNodeKey,
|
|
73
|
+
getExplicitNodeKey
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
//#endregion
|
|
77
|
+
//#region src/components/GrTree/grTreeInteractionContext.ts
|
|
78
|
+
function createGrTreeInteractionContext(options, emitters) {
|
|
79
|
+
const hoveredKey = ref(void 0);
|
|
80
|
+
const draggingNode = shallowRef(null);
|
|
81
|
+
const dropTarget = shallowRef(null);
|
|
82
|
+
const nodeEls = /* @__PURE__ */ new Map();
|
|
83
|
+
function registerNodeEl(key, el) {
|
|
84
|
+
if (el) {
|
|
85
|
+
nodeEls.set(key, el);
|
|
86
|
+
return;
|
|
87
|
+
}
|
|
88
|
+
const previous = nodeEls.get(key);
|
|
89
|
+
if (previous && !previous.isConnected) nodeEls.delete(key);
|
|
90
|
+
}
|
|
91
|
+
function canDrag(node) {
|
|
92
|
+
if (!options.draggable) return false;
|
|
93
|
+
if (options.allowDrag) return options.allowDrag(node);
|
|
94
|
+
return true;
|
|
95
|
+
}
|
|
96
|
+
function canDrop(drag, target, type) {
|
|
97
|
+
if (!options.allowDrop) return true;
|
|
98
|
+
return options.allowDrop(drag, target, type);
|
|
99
|
+
}
|
|
100
|
+
function resetDragState() {
|
|
101
|
+
draggingNode.value = null;
|
|
102
|
+
dropTarget.value = null;
|
|
103
|
+
}
|
|
104
|
+
return {
|
|
105
|
+
hoveredKey,
|
|
106
|
+
nodeEls,
|
|
107
|
+
registerNodeEl,
|
|
108
|
+
draggingNode,
|
|
109
|
+
dropTarget,
|
|
110
|
+
canDrag,
|
|
111
|
+
canDrop,
|
|
112
|
+
resetDragState,
|
|
113
|
+
...emitters
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
//#endregion
|
|
117
|
+
//#region src/components/GrTree/grTreeChecking.ts
|
|
118
|
+
/**
|
|
119
|
+
* Раскладывает отмеченные ключи по всему дереву: родитель отмечен, когда
|
|
120
|
+
* отмечены все дети, и наполовину — когда часть.
|
|
121
|
+
*
|
|
122
|
+
* Считается от листьев вверх, поэтому `checkedKeys` снаружи может содержать
|
|
123
|
+
* только листья (типовой формат ответа сервера) — родители посчитаются сами.
|
|
124
|
+
* При `strict` дерево не связывает узлы вовсе: каждый отвечает сам за себя.
|
|
125
|
+
*/
|
|
126
|
+
function resolveCheckStates(roots, checkedKeys, strict) {
|
|
127
|
+
const states = /* @__PURE__ */ new Map();
|
|
128
|
+
const walk = (node) => {
|
|
129
|
+
if (strict || node.childNodes.length === 0) {
|
|
130
|
+
const state = checkedKeys.has(node.key) ? "checked" : "unchecked";
|
|
131
|
+
if (strict) node.childNodes.forEach(walk);
|
|
132
|
+
states.set(node.key, state);
|
|
133
|
+
return state;
|
|
134
|
+
}
|
|
135
|
+
const childStates = node.childNodes.map(walk);
|
|
136
|
+
const allChecked = childStates.every((s) => s === "checked");
|
|
137
|
+
const someMarked = childStates.some((s) => s !== "unchecked");
|
|
138
|
+
const state = allChecked ? "checked" : someMarked || checkedKeys.has(node.key) ? "half" : "unchecked";
|
|
139
|
+
states.set(node.key, state);
|
|
140
|
+
return state;
|
|
141
|
+
};
|
|
142
|
+
roots.forEach(walk);
|
|
143
|
+
return states;
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Новый набор отмеченных ключей после переключения узла.
|
|
147
|
+
*
|
|
148
|
+
* Каскад идёт вниз (все потомки повторяют решение) и вверх (родитель отмечен,
|
|
149
|
+
* только если отмечены все его дети). Возвращается набор с родителями —
|
|
150
|
+
* `getCheckedKeys({ leafOnly: true })` при необходимости отбросит их обратно.
|
|
151
|
+
*/
|
|
152
|
+
function toggleCheckedKeys(roots, checkedKeys, node, checked, strict) {
|
|
153
|
+
const next = new Set(checkedKeys);
|
|
154
|
+
if (strict) {
|
|
155
|
+
if (checked) next.add(node.key);
|
|
156
|
+
else next.delete(node.key);
|
|
157
|
+
return next;
|
|
158
|
+
}
|
|
159
|
+
const applyDown = (target) => {
|
|
160
|
+
if (checked) next.add(target.key);
|
|
161
|
+
else next.delete(target.key);
|
|
162
|
+
target.childNodes.forEach(applyDown);
|
|
163
|
+
};
|
|
164
|
+
applyDown(node);
|
|
165
|
+
for (let parent = node.parent; parent; parent = parent.parent) if (parent.childNodes.every((child) => next.has(child.key))) next.add(parent.key);
|
|
166
|
+
else next.delete(parent.key);
|
|
167
|
+
return pruneToTree(roots, next);
|
|
168
|
+
}
|
|
169
|
+
/** Отбрасывает ключи, которых нет в текущей модели (данные могли смениться). */
|
|
170
|
+
function pruneToTree(roots, keys) {
|
|
171
|
+
const known = /* @__PURE__ */ new Set();
|
|
172
|
+
const walk = (node) => {
|
|
173
|
+
known.add(node.key);
|
|
174
|
+
node.childNodes.forEach(walk);
|
|
175
|
+
};
|
|
176
|
+
roots.forEach(walk);
|
|
177
|
+
const next = /* @__PURE__ */ new Set();
|
|
178
|
+
for (const key of keys) if (known.has(key)) next.add(key);
|
|
179
|
+
return next;
|
|
180
|
+
}
|
|
181
|
+
/** Ключи в состоянии `checked`; `leafOnly` оставляет только листья. */
|
|
182
|
+
function collectCheckedKeys(roots, states, leafOnly) {
|
|
183
|
+
const out = [];
|
|
184
|
+
const walk = (node) => {
|
|
185
|
+
const isLeaf = node.childNodes.length === 0;
|
|
186
|
+
if (states.get(node.key) === "checked" && (!leafOnly || isLeaf)) out.push(node.key);
|
|
187
|
+
node.childNodes.forEach(walk);
|
|
188
|
+
};
|
|
189
|
+
roots.forEach(walk);
|
|
190
|
+
return out;
|
|
191
|
+
}
|
|
192
|
+
/** Ключи в состоянии `half` — родители с частично отмеченными потомками. */
|
|
193
|
+
function collectHalfCheckedKeys(states) {
|
|
194
|
+
const out = [];
|
|
195
|
+
for (const [key, state] of states) if (state === "half") out.push(key);
|
|
196
|
+
return out;
|
|
197
|
+
}
|
|
198
|
+
//#endregion
|
|
199
|
+
//#region src/components/GrTree/grTreeStore.ts
|
|
200
|
+
function createGrTreeStore(options) {
|
|
201
|
+
const filterValue = ref("");
|
|
202
|
+
const expandedKeys = shallowRef(/* @__PURE__ */ new Set());
|
|
203
|
+
const checkedKeys = shallowRef(new Set(toValue(options.defaultCheckedKeys) ?? []));
|
|
204
|
+
const loadingKeys = shallowRef(/* @__PURE__ */ new Set());
|
|
205
|
+
const loadedKeys = shallowRef(/* @__PURE__ */ new Set());
|
|
206
|
+
const loadedChildren = shallowRef(/* @__PURE__ */ new Map());
|
|
207
|
+
const currentKey = ref(void 0);
|
|
208
|
+
const getData = () => toValue(options.data) ?? [];
|
|
209
|
+
const getFilterNodeMethod = () => toValue(options.filterNodeMethod);
|
|
210
|
+
watch(() => toValue(options.defaultExpandedKeys), (keys) => {
|
|
211
|
+
expandedKeys.value = new Set(keys ?? []);
|
|
212
|
+
}, { immediate: true });
|
|
213
|
+
watch(() => toValue(options.checkedKeys), (keys) => {
|
|
214
|
+
if (keys) checkedKeys.value = new Set(keys);
|
|
215
|
+
}, { immediate: true });
|
|
216
|
+
const treeModel = computed(() => {
|
|
217
|
+
const byKey = /* @__PURE__ */ new Map();
|
|
218
|
+
const byData = /* @__PURE__ */ new WeakMap();
|
|
219
|
+
const build = (items, parent, level) => {
|
|
220
|
+
return items.map((item, index) => {
|
|
221
|
+
const node = {
|
|
222
|
+
key: options.adapter.getNodeKey(item, index, parent?.key),
|
|
223
|
+
label: options.adapter.getLabel(item),
|
|
224
|
+
data: item,
|
|
225
|
+
level,
|
|
226
|
+
parent,
|
|
227
|
+
childNodes: []
|
|
228
|
+
};
|
|
229
|
+
byKey.set(node.key, node);
|
|
230
|
+
byData.set(item, node);
|
|
231
|
+
const ownChildren = options.adapter.getChildren(item);
|
|
232
|
+
const lazyChildren = loadedChildren.value.get(node.key) ?? [];
|
|
233
|
+
node.childNodes = build([...ownChildren, ...lazyChildren], node, level + 1);
|
|
234
|
+
return node;
|
|
235
|
+
});
|
|
236
|
+
};
|
|
237
|
+
return {
|
|
238
|
+
roots: build(getData(), void 0, 1),
|
|
239
|
+
byKey,
|
|
240
|
+
byData
|
|
241
|
+
};
|
|
242
|
+
});
|
|
243
|
+
const autoExpandedKeys = /* @__PURE__ */ new Set();
|
|
244
|
+
watch(treeModel, (model) => {
|
|
245
|
+
if (!toValue(options.defaultExpandAll)) return;
|
|
246
|
+
const next = new Set(expandedKeys.value);
|
|
247
|
+
let changed = false;
|
|
248
|
+
for (const key of model.byKey.keys()) {
|
|
249
|
+
if (autoExpandedKeys.has(key)) continue;
|
|
250
|
+
autoExpandedKeys.add(key);
|
|
251
|
+
next.add(key);
|
|
252
|
+
changed = true;
|
|
253
|
+
}
|
|
254
|
+
if (changed) expandedKeys.value = next;
|
|
255
|
+
}, { immediate: true });
|
|
256
|
+
const filterInfo = computed(() => {
|
|
257
|
+
const value = filterValue.value;
|
|
258
|
+
const isActive = value.trim().length > 0;
|
|
259
|
+
const valueLower = value.toLowerCase();
|
|
260
|
+
const subtreeHasMatch = /* @__PURE__ */ new Map();
|
|
261
|
+
const matchedKeys = /* @__PURE__ */ new Set();
|
|
262
|
+
const autoExpandKeys = /* @__PURE__ */ new Set();
|
|
263
|
+
if (!isActive) return {
|
|
264
|
+
isActive,
|
|
265
|
+
subtreeHasMatch,
|
|
266
|
+
matchedKeys,
|
|
267
|
+
autoExpandKeys
|
|
268
|
+
};
|
|
269
|
+
const match = (node) => {
|
|
270
|
+
const filterNodeMethod = getFilterNodeMethod();
|
|
271
|
+
if (filterNodeMethod) return filterNodeMethod(value, node.data, node);
|
|
272
|
+
return node.label.toLowerCase().includes(valueLower);
|
|
273
|
+
};
|
|
274
|
+
const walk = (nodes) => {
|
|
275
|
+
let any = false;
|
|
276
|
+
for (const node of nodes) {
|
|
277
|
+
const self = match(node);
|
|
278
|
+
const childAny = walk(node.childNodes);
|
|
279
|
+
const has = self || childAny;
|
|
280
|
+
subtreeHasMatch.set(node.key, has);
|
|
281
|
+
if (self) matchedKeys.add(node.key);
|
|
282
|
+
if (childAny) autoExpandKeys.add(node.key);
|
|
283
|
+
any ||= has;
|
|
284
|
+
}
|
|
285
|
+
return any;
|
|
286
|
+
};
|
|
287
|
+
walk(treeModel.value.roots);
|
|
288
|
+
return {
|
|
289
|
+
isActive,
|
|
290
|
+
subtreeHasMatch,
|
|
291
|
+
matchedKeys,
|
|
292
|
+
autoExpandKeys
|
|
293
|
+
};
|
|
294
|
+
});
|
|
295
|
+
function getNode(key) {
|
|
296
|
+
return treeModel.value.byKey.get(key);
|
|
297
|
+
}
|
|
298
|
+
function findNodeByData(data) {
|
|
299
|
+
return treeModel.value.byData.get(data);
|
|
300
|
+
}
|
|
301
|
+
function isTreeNode(target) {
|
|
302
|
+
return typeof target === "object" && target !== null && "key" in target && "data" in target && "childNodes" in target;
|
|
303
|
+
}
|
|
304
|
+
function resolveNodeTarget(target) {
|
|
305
|
+
if (target == null) return void 0;
|
|
306
|
+
if (typeof target === "string" || typeof target === "number") return getNode(target);
|
|
307
|
+
if (isTreeNode(target)) return getNode(target.key) ?? target;
|
|
308
|
+
const key = options.adapter.getExplicitNodeKey(target);
|
|
309
|
+
if (key != null) return getNode(key);
|
|
310
|
+
return findNodeByData(target);
|
|
311
|
+
}
|
|
312
|
+
function getNodeContainer(node) {
|
|
313
|
+
const items = node.parent ? options.adapter.ensureChildren(node.parent.data) : getData();
|
|
314
|
+
let index = items.findIndex((item) => item === node.data);
|
|
315
|
+
if (index >= 0) return {
|
|
316
|
+
items,
|
|
317
|
+
index
|
|
318
|
+
};
|
|
319
|
+
const key = options.adapter.getExplicitNodeKey(node.data);
|
|
320
|
+
if (key == null) return void 0;
|
|
321
|
+
index = items.findIndex((item) => options.adapter.getExplicitNodeKey(item) === key);
|
|
322
|
+
if (index < 0) return void 0;
|
|
323
|
+
return {
|
|
324
|
+
items,
|
|
325
|
+
index
|
|
326
|
+
};
|
|
327
|
+
}
|
|
328
|
+
function isDescendantNode(ancestor, node) {
|
|
329
|
+
let current = node.parent;
|
|
330
|
+
while (current) {
|
|
331
|
+
if (current.key === ancestor.key) return true;
|
|
332
|
+
current = current.parent;
|
|
333
|
+
}
|
|
334
|
+
return false;
|
|
335
|
+
}
|
|
336
|
+
function canMoveNode(node, referenceNode, dropType) {
|
|
337
|
+
const sourceNode = resolveNodeTarget(node);
|
|
338
|
+
const targetNode = resolveNodeTarget(referenceNode);
|
|
339
|
+
if (!sourceNode || !targetNode) return false;
|
|
340
|
+
if (sourceNode.key === targetNode.key) return false;
|
|
341
|
+
if (isDescendantNode(sourceNode, targetNode)) return false;
|
|
342
|
+
if (!getNodeContainer(sourceNode)) return false;
|
|
343
|
+
if (dropType === "inner") return true;
|
|
344
|
+
return Boolean(getNodeContainer(targetNode));
|
|
345
|
+
}
|
|
346
|
+
function sanitizeTreeState() {
|
|
347
|
+
const byKey = treeModel.value.byKey;
|
|
348
|
+
if (currentKey.value != null && !byKey.has(currentKey.value)) currentKey.value = void 0;
|
|
349
|
+
const nextExpandedKeys = new Set(Array.from(expandedKeys.value).filter((key) => byKey.has(key)));
|
|
350
|
+
if (nextExpandedKeys.size !== expandedKeys.value.size) expandedKeys.value = nextExpandedKeys;
|
|
351
|
+
const nextCheckedKeys = new Set(Array.from(checkedKeys.value).filter((key) => byKey.has(key)));
|
|
352
|
+
if (nextCheckedKeys.size !== checkedKeys.value.size) checkedKeys.value = nextCheckedKeys;
|
|
353
|
+
}
|
|
354
|
+
function isExpandedKey(key) {
|
|
355
|
+
return expandedKeys.value.has(key);
|
|
356
|
+
}
|
|
357
|
+
function setExpandedKey(key, expanded) {
|
|
358
|
+
const next = new Set(expandedKeys.value);
|
|
359
|
+
if (expanded) next.add(key);
|
|
360
|
+
else next.delete(key);
|
|
361
|
+
expandedKeys.value = next;
|
|
362
|
+
}
|
|
363
|
+
function toggleExpand(node) {
|
|
364
|
+
setExpandedKey(node.key, !isExpandedKey(node.key));
|
|
365
|
+
}
|
|
366
|
+
function setCurrentKey(key) {
|
|
367
|
+
currentKey.value = key;
|
|
368
|
+
}
|
|
369
|
+
function getCurrentKey() {
|
|
370
|
+
return currentKey.value;
|
|
371
|
+
}
|
|
372
|
+
function getCurrentNode() {
|
|
373
|
+
const key = currentKey.value;
|
|
374
|
+
return key == null ? void 0 : getNode(key);
|
|
375
|
+
}
|
|
376
|
+
function setCurrentNode(node) {
|
|
377
|
+
if (node == null) {
|
|
378
|
+
currentKey.value = void 0;
|
|
379
|
+
return true;
|
|
380
|
+
}
|
|
381
|
+
const targetNode = resolveNodeTarget(node);
|
|
382
|
+
if (!targetNode) return false;
|
|
383
|
+
currentKey.value = targetNode.key;
|
|
384
|
+
return true;
|
|
385
|
+
}
|
|
386
|
+
function resolveInsertedNode(data) {
|
|
387
|
+
const key = options.adapter.getExplicitNodeKey(data);
|
|
388
|
+
if (key != null) return getNode(key);
|
|
389
|
+
return findNodeByData(data);
|
|
390
|
+
}
|
|
391
|
+
function moveNode(node, referenceNode, dropType) {
|
|
392
|
+
const sourceNode = resolveNodeTarget(node);
|
|
393
|
+
const targetNode = resolveNodeTarget(referenceNode);
|
|
394
|
+
if (!sourceNode || !targetNode) return void 0;
|
|
395
|
+
if (!canMoveNode(sourceNode, targetNode, dropType)) return void 0;
|
|
396
|
+
const sourceContainer = getNodeContainer(sourceNode);
|
|
397
|
+
if (!sourceContainer) return void 0;
|
|
398
|
+
let destinationItems;
|
|
399
|
+
let destinationIndex;
|
|
400
|
+
if (dropType === "inner") {
|
|
401
|
+
destinationItems = options.adapter.ensureChildren(targetNode.data);
|
|
402
|
+
destinationIndex = destinationItems.length;
|
|
403
|
+
} else {
|
|
404
|
+
const targetContainer = getNodeContainer(targetNode);
|
|
405
|
+
if (!targetContainer) return void 0;
|
|
406
|
+
destinationItems = targetContainer.items;
|
|
407
|
+
destinationIndex = dropType === "prev" ? targetContainer.index : targetContainer.index + 1;
|
|
408
|
+
}
|
|
409
|
+
if (destinationItems === sourceContainer.items && sourceContainer.index < destinationIndex) destinationIndex -= 1;
|
|
410
|
+
const [movedData] = sourceContainer.items.splice(sourceContainer.index, 1);
|
|
411
|
+
destinationItems.splice(destinationIndex, 0, movedData);
|
|
412
|
+
if (dropType === "inner") setExpandedKey(targetNode.key, true);
|
|
413
|
+
sanitizeTreeState();
|
|
414
|
+
return resolveInsertedNode(movedData);
|
|
415
|
+
}
|
|
416
|
+
function appendNode(data, parent) {
|
|
417
|
+
const parentNode = resolveNodeTarget(parent);
|
|
418
|
+
if (!parentNode) return void 0;
|
|
419
|
+
options.adapter.ensureChildren(parentNode.data).push(data);
|
|
420
|
+
setExpandedKey(parentNode.key, true);
|
|
421
|
+
sanitizeTreeState();
|
|
422
|
+
return resolveInsertedNode(data);
|
|
423
|
+
}
|
|
424
|
+
function removeNode(node) {
|
|
425
|
+
if (!options.adapter.hasNodeKey()) return false;
|
|
426
|
+
const targetNode = resolveNodeTarget(node);
|
|
427
|
+
if (!targetNode) return false;
|
|
428
|
+
const container = getNodeContainer(targetNode);
|
|
429
|
+
if (!container) return false;
|
|
430
|
+
container.items.splice(container.index, 1);
|
|
431
|
+
sanitizeTreeState();
|
|
432
|
+
return true;
|
|
433
|
+
}
|
|
434
|
+
function insertNodeBefore(data, referenceNode) {
|
|
435
|
+
const targetNode = resolveNodeTarget(referenceNode);
|
|
436
|
+
if (!targetNode) return void 0;
|
|
437
|
+
const container = getNodeContainer(targetNode);
|
|
438
|
+
if (!container) return void 0;
|
|
439
|
+
container.items.splice(container.index, 0, data);
|
|
440
|
+
sanitizeTreeState();
|
|
441
|
+
return resolveInsertedNode(data);
|
|
442
|
+
}
|
|
443
|
+
function insertNodeAfter(data, referenceNode) {
|
|
444
|
+
const targetNode = resolveNodeTarget(referenceNode);
|
|
445
|
+
if (!targetNode) return void 0;
|
|
446
|
+
const container = getNodeContainer(targetNode);
|
|
447
|
+
if (!container) return void 0;
|
|
448
|
+
container.items.splice(container.index + 1, 0, data);
|
|
449
|
+
sanitizeTreeState();
|
|
450
|
+
return resolveInsertedNode(data);
|
|
451
|
+
}
|
|
452
|
+
const checkStates = computed(() => resolveCheckStates(treeModel.value.roots, checkedKeys.value, Boolean(toValue(options.checkStrictly))));
|
|
453
|
+
function getCheckState(key) {
|
|
454
|
+
return checkStates.value.get(key) ?? "unchecked";
|
|
455
|
+
}
|
|
456
|
+
function setChecked(node, checked) {
|
|
457
|
+
const targetNode = resolveNodeTarget(node);
|
|
458
|
+
if (!targetNode) return void 0;
|
|
459
|
+
checkedKeys.value = toggleCheckedKeys(treeModel.value.roots, checkedKeys.value, targetNode, checked, Boolean(toValue(options.checkStrictly)));
|
|
460
|
+
return targetNode;
|
|
461
|
+
}
|
|
462
|
+
function toggleChecked(node) {
|
|
463
|
+
return setChecked(node, getCheckState(node.key) !== "checked");
|
|
464
|
+
}
|
|
465
|
+
function getCheckedKeys(opts) {
|
|
466
|
+
return collectCheckedKeys(treeModel.value.roots, checkStates.value, Boolean(opts?.leafOnly));
|
|
467
|
+
}
|
|
468
|
+
function setCheckedKeys(keys) {
|
|
469
|
+
checkedKeys.value = pruneToTree(treeModel.value.roots, new Set(keys));
|
|
470
|
+
}
|
|
471
|
+
function getHalfCheckedKeys() {
|
|
472
|
+
return collectHalfCheckedKeys(checkStates.value);
|
|
473
|
+
}
|
|
474
|
+
function isLeafNode(node) {
|
|
475
|
+
if (node.childNodes.length > 0) return false;
|
|
476
|
+
if (!toValue(options.lazy)) return true;
|
|
477
|
+
const declared = options.adapter.getIsLeaf(node.data);
|
|
478
|
+
if (declared !== void 0) return declared;
|
|
479
|
+
return loadedKeys.value.has(node.key);
|
|
480
|
+
}
|
|
481
|
+
function isLoadingKey(key) {
|
|
482
|
+
return loadingKeys.value.has(key);
|
|
483
|
+
}
|
|
484
|
+
function markLoading(key, loading) {
|
|
485
|
+
const next = new Set(loadingKeys.value);
|
|
486
|
+
if (loading) next.add(key);
|
|
487
|
+
else next.delete(key);
|
|
488
|
+
loadingKeys.value = next;
|
|
489
|
+
}
|
|
490
|
+
function ensureLoaded(node) {
|
|
491
|
+
const load = toValue(options.load);
|
|
492
|
+
if (!toValue(options.lazy) || !load) return;
|
|
493
|
+
if (loadedKeys.value.has(node.key) || loadingKeys.value.has(node.key) || isLeafNode(node)) return;
|
|
494
|
+
markLoading(node.key, true);
|
|
495
|
+
let settled = false;
|
|
496
|
+
load(node, (children) => {
|
|
497
|
+
if (settled) return;
|
|
498
|
+
settled = true;
|
|
499
|
+
const next = new Map(loadedChildren.value);
|
|
500
|
+
next.set(node.key, [...children ?? []]);
|
|
501
|
+
loadedChildren.value = next;
|
|
502
|
+
loadedKeys.value = new Set(loadedKeys.value).add(node.key);
|
|
503
|
+
markLoading(node.key, false);
|
|
504
|
+
});
|
|
505
|
+
}
|
|
506
|
+
function filter(value) {
|
|
507
|
+
filterValue.value = value;
|
|
508
|
+
}
|
|
509
|
+
return {
|
|
510
|
+
filterValue,
|
|
511
|
+
expandedKeys,
|
|
512
|
+
loadedChildren,
|
|
513
|
+
checkedKeys,
|
|
514
|
+
checkStates,
|
|
515
|
+
loadingKeys,
|
|
516
|
+
loadedKeys,
|
|
517
|
+
currentKey,
|
|
518
|
+
treeModel,
|
|
519
|
+
filterInfo,
|
|
520
|
+
filter,
|
|
521
|
+
isExpandedKey,
|
|
522
|
+
setExpandedKey,
|
|
523
|
+
toggleExpand,
|
|
524
|
+
setCurrentKey,
|
|
525
|
+
getCurrentKey,
|
|
526
|
+
getCurrentNode,
|
|
527
|
+
setCurrentNode,
|
|
528
|
+
getNode,
|
|
529
|
+
canMoveNode,
|
|
530
|
+
moveNode,
|
|
531
|
+
appendNode,
|
|
532
|
+
removeNode,
|
|
533
|
+
insertNodeBefore,
|
|
534
|
+
insertNodeAfter,
|
|
535
|
+
getCheckState,
|
|
536
|
+
setChecked,
|
|
537
|
+
toggleChecked,
|
|
538
|
+
getCheckedKeys,
|
|
539
|
+
setCheckedKeys,
|
|
540
|
+
getHalfCheckedKeys,
|
|
541
|
+
isLeafNode,
|
|
542
|
+
isLoadingKey,
|
|
543
|
+
ensureLoaded
|
|
544
|
+
};
|
|
545
|
+
}
|
|
546
|
+
//#endregion
|
|
547
|
+
//#region src/components/GrTree/grTreeStyles.ts
|
|
548
|
+
var treeSizeVars = {
|
|
549
|
+
xs: {
|
|
550
|
+
"--gr-tree-row-min-height": "22px",
|
|
551
|
+
"--gr-tree-row-px": "4px",
|
|
552
|
+
"--gr-tree-row-py": "3px",
|
|
553
|
+
"--gr-tree-toggle-size": "18px",
|
|
554
|
+
"--gr-tree-drag-handle-size": "18px",
|
|
555
|
+
"--gr-tree-icon-size": "12px",
|
|
556
|
+
"--gr-tree-content-gap": "4px",
|
|
557
|
+
"--gr-tree-font-size": "12px"
|
|
558
|
+
},
|
|
559
|
+
sm: {
|
|
560
|
+
"--gr-tree-row-min-height": "24px",
|
|
561
|
+
"--gr-tree-row-px": "6px",
|
|
562
|
+
"--gr-tree-row-py": "5px",
|
|
563
|
+
"--gr-tree-toggle-size": "20px",
|
|
564
|
+
"--gr-tree-drag-handle-size": "20px",
|
|
565
|
+
"--gr-tree-icon-size": "14px",
|
|
566
|
+
"--gr-tree-content-gap": "6px",
|
|
567
|
+
"--gr-tree-font-size": "13px"
|
|
568
|
+
},
|
|
569
|
+
md: {
|
|
570
|
+
"--gr-tree-row-min-height": "28px",
|
|
571
|
+
"--gr-tree-row-px": "8px",
|
|
572
|
+
"--gr-tree-row-py": "8px",
|
|
573
|
+
"--gr-tree-toggle-size": "24px",
|
|
574
|
+
"--gr-tree-drag-handle-size": "24px",
|
|
575
|
+
"--gr-tree-icon-size": "16px",
|
|
576
|
+
"--gr-tree-content-gap": "8px",
|
|
577
|
+
"--gr-tree-font-size": "inherit"
|
|
578
|
+
},
|
|
579
|
+
lg: {
|
|
580
|
+
"--gr-tree-row-min-height": "32px",
|
|
581
|
+
"--gr-tree-row-px": "10px",
|
|
582
|
+
"--gr-tree-row-py": "10px",
|
|
583
|
+
"--gr-tree-toggle-size": "28px",
|
|
584
|
+
"--gr-tree-drag-handle-size": "28px",
|
|
585
|
+
"--gr-tree-icon-size": "20px",
|
|
586
|
+
"--gr-tree-content-gap": "10px",
|
|
587
|
+
"--gr-tree-font-size": "15px"
|
|
588
|
+
}
|
|
589
|
+
};
|
|
590
|
+
//#endregion
|
|
591
|
+
//#region src/components/GrTree/GrTree.vue?vue&type=script&setup=true&lang.ts
|
|
592
|
+
var _hoisted_1 = ["data-gr-virtual", "aria-multiselectable"];
|
|
593
|
+
var _hoisted_2 = [
|
|
594
|
+
"data-gr-tree-node-key",
|
|
595
|
+
"aria-level",
|
|
596
|
+
"aria-posinset",
|
|
597
|
+
"aria-setsize",
|
|
598
|
+
"aria-expanded",
|
|
599
|
+
"aria-selected",
|
|
600
|
+
"aria-checked",
|
|
601
|
+
"aria-busy",
|
|
602
|
+
"tabindex"
|
|
603
|
+
];
|
|
604
|
+
var _hoisted_3 = [
|
|
605
|
+
"onClick",
|
|
606
|
+
"onContextmenu",
|
|
607
|
+
"onMouseenter",
|
|
608
|
+
"onMouseleave"
|
|
609
|
+
];
|
|
610
|
+
var _hoisted_4 = [
|
|
611
|
+
"aria-label",
|
|
612
|
+
"aria-disabled",
|
|
613
|
+
"onPointerdown"
|
|
614
|
+
];
|
|
615
|
+
var _hoisted_5 = ["aria-label", "onClick"];
|
|
616
|
+
var _hoisted_6 = ["onClick"];
|
|
617
|
+
var _hoisted_7 = { class: "gr-tree__label" };
|
|
618
|
+
var DEFAULT_BRANCH_LINE_COLOR = "var(--gr-tree-branch-line-default-color, var(--gr-brd))";
|
|
619
|
+
/** Стрелки, которые вместе с `Shift` двигают узел, а не фокус. */
|
|
620
|
+
var TREE_ROW_GAP = 2;
|
|
621
|
+
var TYPEAHEAD_RESET_MS = 600;
|
|
622
|
+
//#endregion
|
|
623
|
+
//#region src/components/GrTree/GrTree.vue
|
|
624
|
+
var GrTree_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
625
|
+
__name: "GrTree",
|
|
626
|
+
props: {
|
|
627
|
+
data: {},
|
|
628
|
+
props: { default: () => ({
|
|
629
|
+
children: "children",
|
|
630
|
+
label: "label"
|
|
631
|
+
}) },
|
|
632
|
+
nodeKey: { default: "id" },
|
|
633
|
+
defaultExpandedKeys: { default: () => [] },
|
|
634
|
+
defaultExpandAll: {
|
|
635
|
+
type: Boolean,
|
|
636
|
+
default: false
|
|
637
|
+
},
|
|
638
|
+
filterNodeMethod: {},
|
|
639
|
+
lazy: {
|
|
640
|
+
type: Boolean,
|
|
641
|
+
default: false
|
|
642
|
+
},
|
|
643
|
+
load: {
|
|
644
|
+
type: Function,
|
|
645
|
+
default: void 0
|
|
646
|
+
},
|
|
647
|
+
size: { default: void 0 },
|
|
648
|
+
indent: { default: 0 },
|
|
649
|
+
virtual: {
|
|
650
|
+
type: Boolean,
|
|
651
|
+
default: false
|
|
652
|
+
},
|
|
653
|
+
maxHeight: { default: void 0 },
|
|
654
|
+
highlightCurrent: {
|
|
655
|
+
type: Boolean,
|
|
656
|
+
default: true
|
|
657
|
+
},
|
|
658
|
+
expandIcon: { default: void 0 },
|
|
659
|
+
collapseIcon: { default: void 0 },
|
|
660
|
+
toggleIconRotate: {
|
|
661
|
+
type: Boolean,
|
|
662
|
+
default: true
|
|
663
|
+
},
|
|
664
|
+
branchLine: {
|
|
665
|
+
type: Boolean,
|
|
666
|
+
default: false
|
|
667
|
+
},
|
|
668
|
+
branchLineColor: {
|
|
669
|
+
type: [String, Function],
|
|
670
|
+
default: void 0
|
|
671
|
+
},
|
|
672
|
+
branchLineActiveColor: {
|
|
673
|
+
type: [String, Function],
|
|
674
|
+
default: void 0
|
|
675
|
+
},
|
|
676
|
+
rowClass: {
|
|
677
|
+
type: [
|
|
678
|
+
Boolean,
|
|
679
|
+
null,
|
|
680
|
+
String,
|
|
681
|
+
Object,
|
|
682
|
+
Array,
|
|
683
|
+
Function
|
|
684
|
+
],
|
|
685
|
+
default: void 0
|
|
686
|
+
},
|
|
687
|
+
dragHandleClass: {
|
|
688
|
+
type: [
|
|
689
|
+
Boolean,
|
|
690
|
+
null,
|
|
691
|
+
String,
|
|
692
|
+
Object,
|
|
693
|
+
Array,
|
|
694
|
+
Function
|
|
695
|
+
],
|
|
696
|
+
default: void 0
|
|
697
|
+
},
|
|
698
|
+
toggleClass: {
|
|
699
|
+
type: [
|
|
700
|
+
Boolean,
|
|
701
|
+
null,
|
|
702
|
+
String,
|
|
703
|
+
Object,
|
|
704
|
+
Array,
|
|
705
|
+
Function
|
|
706
|
+
],
|
|
707
|
+
default: void 0
|
|
708
|
+
},
|
|
709
|
+
toggleIconClass: {
|
|
710
|
+
type: [
|
|
711
|
+
Boolean,
|
|
712
|
+
null,
|
|
713
|
+
String,
|
|
714
|
+
Object,
|
|
715
|
+
Array,
|
|
716
|
+
Function
|
|
717
|
+
],
|
|
718
|
+
default: void 0
|
|
719
|
+
},
|
|
720
|
+
toggleSpacerClass: {
|
|
721
|
+
type: [
|
|
722
|
+
Boolean,
|
|
723
|
+
null,
|
|
724
|
+
String,
|
|
725
|
+
Object,
|
|
726
|
+
Array,
|
|
727
|
+
Function
|
|
728
|
+
],
|
|
729
|
+
default: void 0
|
|
730
|
+
},
|
|
731
|
+
contentClass: {
|
|
732
|
+
type: [
|
|
733
|
+
Boolean,
|
|
734
|
+
null,
|
|
735
|
+
String,
|
|
736
|
+
Object,
|
|
737
|
+
Array,
|
|
738
|
+
Function
|
|
739
|
+
],
|
|
740
|
+
default: void 0
|
|
741
|
+
},
|
|
742
|
+
dragLabel: { default: void 0 },
|
|
743
|
+
expandLabel: { default: void 0 },
|
|
744
|
+
collapseLabel: { default: void 0 },
|
|
745
|
+
showCheckbox: {
|
|
746
|
+
type: Boolean,
|
|
747
|
+
default: false
|
|
748
|
+
},
|
|
749
|
+
checkedKeys: { default: void 0 },
|
|
750
|
+
defaultCheckedKeys: { default: () => [] },
|
|
751
|
+
checkStrictly: {
|
|
752
|
+
type: Boolean,
|
|
753
|
+
default: false
|
|
754
|
+
},
|
|
755
|
+
expandOnClickNode: {
|
|
756
|
+
type: Boolean,
|
|
757
|
+
default: false
|
|
758
|
+
},
|
|
759
|
+
accordion: {
|
|
760
|
+
type: Boolean,
|
|
761
|
+
default: false
|
|
762
|
+
},
|
|
763
|
+
draggable: {
|
|
764
|
+
type: Boolean,
|
|
765
|
+
default: false
|
|
766
|
+
},
|
|
767
|
+
dragHandleIcon: { default: void 0 },
|
|
768
|
+
allowDrop: {},
|
|
769
|
+
allowDrag: {}
|
|
770
|
+
},
|
|
771
|
+
emits: [
|
|
772
|
+
"nodeClick",
|
|
773
|
+
"nodeExpand",
|
|
774
|
+
"nodeCollapse",
|
|
775
|
+
"nodeDrop",
|
|
776
|
+
"nodeContextMenu",
|
|
777
|
+
"update:checkedKeys",
|
|
778
|
+
"check"
|
|
779
|
+
],
|
|
780
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
781
|
+
const MOVE_KEYS = /* @__PURE__ */ new Set([
|
|
782
|
+
"ArrowUp",
|
|
783
|
+
"ArrowDown",
|
|
784
|
+
"ArrowLeft",
|
|
785
|
+
"ArrowRight"
|
|
786
|
+
]);
|
|
787
|
+
const props = __props;
|
|
788
|
+
const emit = __emit;
|
|
789
|
+
const treeStore = createGrTreeStore({
|
|
790
|
+
adapter: createGrTreeDataAdapter(props),
|
|
791
|
+
data: () => props.data,
|
|
792
|
+
defaultExpandedKeys: () => props.defaultExpandedKeys,
|
|
793
|
+
defaultExpandAll: () => props.defaultExpandAll,
|
|
794
|
+
filterNodeMethod: () => props.filterNodeMethod,
|
|
795
|
+
defaultCheckedKeys: () => props.defaultCheckedKeys,
|
|
796
|
+
checkedKeys: () => props.checkedKeys,
|
|
797
|
+
checkStrictly: () => props.checkStrictly,
|
|
798
|
+
lazy: () => props.lazy,
|
|
799
|
+
load: () => props.load
|
|
800
|
+
});
|
|
801
|
+
const interactionContext = createGrTreeInteractionContext(props, {
|
|
802
|
+
emitNodeClick: (data, node) => emit("nodeClick", data, node),
|
|
803
|
+
emitNodeExpand: (data, node) => emit("nodeExpand", data, node),
|
|
804
|
+
emitNodeCollapse: (data, node) => emit("nodeCollapse", data, node),
|
|
805
|
+
emitNodeDrop: (draggingNode, dropNode, dropType) => emit("nodeDrop", draggingNode, dropNode, dropType),
|
|
806
|
+
emitNodeContextMenu: (evt, data, node) => emit("nodeContextMenu", evt, data, node)
|
|
807
|
+
});
|
|
808
|
+
const treeProps = props;
|
|
809
|
+
const { t } = useGranularityTranslations();
|
|
810
|
+
const { announce } = useAnnouncer();
|
|
811
|
+
const dragLabel = computed(() => treeProps.dragLabel ?? t("gr.tree.drag", "Drag"));
|
|
812
|
+
const expandLabel = computed(() => treeProps.expandLabel ?? t("gr.tree.expand", "Expand"));
|
|
813
|
+
const collapseLabel = computed(() => treeProps.collapseLabel ?? t("gr.tree.collapse", "Collapse"));
|
|
814
|
+
const currentKey = treeStore.currentKey;
|
|
815
|
+
const hoveredKey = interactionContext.hoveredKey;
|
|
816
|
+
const dropTarget = interactionContext.dropTarget;
|
|
817
|
+
const treeRootEl = ref(null);
|
|
818
|
+
/**
|
|
819
|
+
* Видимые строки одним плоским списком в порядке отображения.
|
|
820
|
+
*
|
|
821
|
+
* Плоско — потому что рекурсивный рендер стоил по инстансу компонента на каждый
|
|
822
|
+
* раскрытый узел: дерево на 2 000 видимых строк превращалось в 2 000
|
|
823
|
+
* компонентов со своими вычислениями и подписками. Иерархию несут `aria-level`,
|
|
824
|
+
* `aria-posinset` и `aria-setsize`, отступ — `padding-left` строки.
|
|
825
|
+
*/
|
|
826
|
+
const visibleRows = computed(() => {
|
|
827
|
+
const { roots } = treeStore.treeModel.value;
|
|
828
|
+
const { isActive, subtreeHasMatch, matchedKeys, autoExpandKeys } = treeStore.filterInfo.value;
|
|
829
|
+
const branch = treeProps.branchLine;
|
|
830
|
+
const rows = [];
|
|
831
|
+
const walk = (nodes, ancestorColors) => {
|
|
832
|
+
const siblings = isActive ? nodes.filter((node) => subtreeHasMatch.get(node.key)) : nodes;
|
|
833
|
+
siblings.forEach((node, index) => {
|
|
834
|
+
const isLeaf = treeStore.isLeafNode(node);
|
|
835
|
+
const isExpanded = treeStore.isExpandedKey(node.key) || isActive && autoExpandKeys.has(node.key);
|
|
836
|
+
rows.push({
|
|
837
|
+
node,
|
|
838
|
+
isExpanded,
|
|
839
|
+
isLeaf,
|
|
840
|
+
isMatched: matchedKeys.has(node.key),
|
|
841
|
+
posInSet: index + 1,
|
|
842
|
+
setSize: siblings.length,
|
|
843
|
+
isLoading: treeStore.isLoadingKey(node.key),
|
|
844
|
+
branchColors: ancestorColors
|
|
845
|
+
});
|
|
846
|
+
if (isExpanded && node.childNodes.length) walk(node.childNodes, branch ? [...ancestorColors, resolveBranchLineColor(node)] : ancestorColors);
|
|
847
|
+
});
|
|
848
|
+
};
|
|
849
|
+
walk(roots, []);
|
|
850
|
+
return rows;
|
|
851
|
+
});
|
|
852
|
+
/**
|
|
853
|
+
* Кольцо roving-фокуса: ровно один `treeitem` на всё дерево держит `tabindex=0`.
|
|
854
|
+
*
|
|
855
|
+
* Ориентация вертикальная намеренно: влево-вправо в дереве заняты раскрытием
|
|
856
|
+
* ветки и переходом к родителю, и примитив их не трогает — это доменная логика,
|
|
857
|
+
* она осталась в `onTreeKeydown`.
|
|
858
|
+
*/
|
|
859
|
+
const roving = useRovingFocus({
|
|
860
|
+
items: () => visibleRows.value.map((row) => row.node.key),
|
|
861
|
+
elementFor: (key) => interactionContext.nodeEls.get(key),
|
|
862
|
+
orientation: () => "vertical",
|
|
863
|
+
wrap: () => false,
|
|
864
|
+
onOverflow: () => true,
|
|
865
|
+
initialKey: () => currentKey.value ?? void 0,
|
|
866
|
+
beforeFocus: (key) => scrollRowIntoView(key)
|
|
867
|
+
});
|
|
868
|
+
function onRowClick(node) {
|
|
869
|
+
treeStore.setCurrentKey(node.key);
|
|
870
|
+
roving.setActive(node.key);
|
|
871
|
+
interactionContext.emitNodeClick(node.data, node);
|
|
872
|
+
}
|
|
873
|
+
function onRowActivate(row) {
|
|
874
|
+
onRowClick(row.node);
|
|
875
|
+
if (treeProps.expandOnClickNode && !row.isLeaf) toggleExpand(row.node);
|
|
876
|
+
}
|
|
877
|
+
function onRowContextMenu(evt, node) {
|
|
878
|
+
interactionContext.emitNodeContextMenu(evt, node.data, node);
|
|
879
|
+
}
|
|
880
|
+
function isRovingItem(key) {
|
|
881
|
+
return roving.rovingKey.value === key;
|
|
882
|
+
}
|
|
883
|
+
const resolvedSize = useGrComponentSize(() => props.size, { component: "GrTree" });
|
|
884
|
+
const sizeStyle = computed(() => treeSizeVars[resolvedSize.value]);
|
|
885
|
+
/**
|
|
886
|
+
* Виртуализация: в DOM живёт только окно вокруг вьюпорта.
|
|
887
|
+
*
|
|
888
|
+
* Корень дерева и есть скроллер — обёрток-распорок между `role="tree"` и
|
|
889
|
+
* `role="treeitem"` быть не должно, поэтому срезанное сверху и снизу держат
|
|
890
|
+
* отступы самого корня.
|
|
891
|
+
*/
|
|
892
|
+
const rowEstimate = computed(() => Number.parseFloat(sizeStyle.value["--gr-tree-row-min-height"]));
|
|
893
|
+
const virtualMaxHeight = computed(() => {
|
|
894
|
+
const value = treeProps.maxHeight;
|
|
895
|
+
if (value == null) return void 0;
|
|
896
|
+
return typeof value === "number" ? `${value}px` : value;
|
|
897
|
+
});
|
|
898
|
+
const virtualizer = useVirtualList({
|
|
899
|
+
container: treeRootEl,
|
|
900
|
+
count: () => treeProps.virtual ? visibleRows.value.length : 0,
|
|
901
|
+
source: () => visibleRows.value,
|
|
902
|
+
itemSize: () => rowEstimate.value,
|
|
903
|
+
gap: TREE_ROW_GAP,
|
|
904
|
+
viewportSize: () => typeof treeProps.maxHeight === "number" ? treeProps.maxHeight : void 0
|
|
905
|
+
});
|
|
906
|
+
/** Строки к отрисовке: при выключенной виртуализации — все. */
|
|
907
|
+
const renderedRows = computed(() => {
|
|
908
|
+
if (!treeProps.virtual) return visibleRows.value;
|
|
909
|
+
const { start, end } = virtualizer.range.value;
|
|
910
|
+
return visibleRows.value.slice(start, end);
|
|
911
|
+
});
|
|
912
|
+
/**
|
|
913
|
+
* Срезанное сверху и снизу держат псевдоэлементы контейнера.
|
|
914
|
+
*
|
|
915
|
+
* Ни один из трёх напрашивающихся вариантов не годится:
|
|
916
|
+
*
|
|
917
|
+
* - `padding` контейнера — `max-height` меряет ту же коробку, и распорка в сто
|
|
918
|
+
* тысяч пикселей либо раздувает скроллер до той же сотни тысяч, либо съедает
|
|
919
|
+
* всю его высоту;
|
|
920
|
+
* - обёртка-распорка внутри — между `role="tree"` и `role="treeitem"` не должно
|
|
921
|
+
* быть посторонних узлов, роль потеряла бы обязательных потомков;
|
|
922
|
+
* - отступы крайних отрисованных строк — распорка исчезает ровно в тот момент,
|
|
923
|
+
* когда строки заменяются целиком (прыжок прокрутки), содержимое схлопывается
|
|
924
|
+
* до высоты окна, и браузер обрезает `scrollTop` до почти нуля.
|
|
925
|
+
*
|
|
926
|
+
* `::before`/`::after` не узлы DOM: их не за что размонтировать, в дереве
|
|
927
|
+
* доступности их нет, а высота приезжает переменными в том же патче, что и сами
|
|
928
|
+
* строки, — схлопнуться между кадрами нечему.
|
|
929
|
+
*/
|
|
930
|
+
const rootStyle = computed(() => {
|
|
931
|
+
if (!treeProps.virtual) return sizeStyle.value;
|
|
932
|
+
return {
|
|
933
|
+
...sizeStyle.value,
|
|
934
|
+
overflow: "auto",
|
|
935
|
+
maxHeight: virtualMaxHeight.value,
|
|
936
|
+
...virtualizer.spacerStyle.value
|
|
937
|
+
};
|
|
938
|
+
});
|
|
939
|
+
/** Абсолютный индекс отрисованной строки: поиск по массиву стоил бы O(n) на строку. */
|
|
940
|
+
function absoluteIndex(offsetInWindow) {
|
|
941
|
+
return treeProps.virtual ? virtualizer.range.value.start + offsetInWindow : offsetInWindow;
|
|
942
|
+
}
|
|
943
|
+
/**
|
|
944
|
+
* Строка размонтируется: снимаем регистрацию и, если фокус был на ней, уводим
|
|
945
|
+
* его на корень — делегированный keydown живёт там, первая же стрелка вернёт
|
|
946
|
+
* видимую строку через `focusRow`. Иначе фокус упал бы на `body` и клавиатура
|
|
947
|
+
* дерева умерла бы до клика мышью.
|
|
948
|
+
*
|
|
949
|
+
* Спрашиваем сам элемент, а не `document.activeElement === body`: Vue обнуляет
|
|
950
|
+
* function ref ДО удаления узла, поэтому в момент вызова фокус ещё на строке —
|
|
951
|
+
* а «фокус на body» означает лишь то, что страницу никто не трогал.
|
|
952
|
+
*/
|
|
953
|
+
let isUnmounting = false;
|
|
954
|
+
function releaseNodeEl(key) {
|
|
955
|
+
const el = interactionContext.nodeEls.get(key);
|
|
956
|
+
const active = typeof document === "undefined" ? null : document.activeElement;
|
|
957
|
+
const heldFocus = Boolean(el && active && (el === active || el.contains(active)));
|
|
958
|
+
interactionContext.registerNodeEl(key, null);
|
|
959
|
+
if (heldFocus && !isUnmounting) treeRootEl.value?.focus({ preventScroll: true });
|
|
960
|
+
}
|
|
961
|
+
/**
|
|
962
|
+
* При виртуализации узла вне окна в DOM нет: `nodeEls.get` вернул бы
|
|
963
|
+
* `undefined`, а фокус уехал бы на `body` вместе с размонтированной строкой.
|
|
964
|
+
* Поэтому сперва прокрутка, и только следующим тиком — фокус.
|
|
965
|
+
*/
|
|
966
|
+
function scrollRowIntoView(key) {
|
|
967
|
+
if (treeProps.virtual) {
|
|
968
|
+
const index = visibleRows.value.findIndex((row) => row.node.key === key);
|
|
969
|
+
if (index >= 0) virtualizer.scrollToIndex(index);
|
|
970
|
+
}
|
|
971
|
+
return nextTick();
|
|
972
|
+
}
|
|
973
|
+
function focusRow(key) {
|
|
974
|
+
roving.focusKey(key);
|
|
975
|
+
}
|
|
976
|
+
/**
|
|
977
|
+
* Typeahead паттерна tree: печатные символы копятся в буфер и переводят фокус
|
|
978
|
+
* на первый подходящий видимый узел, начиная со следующего за текущим.
|
|
979
|
+
*/
|
|
980
|
+
let typeaheadBuffer = "";
|
|
981
|
+
let typeaheadTimer;
|
|
982
|
+
function onTypeahead(char, rows, fromIndex) {
|
|
983
|
+
clearTimeout(typeaheadTimer);
|
|
984
|
+
typeaheadTimer = setTimeout(() => {
|
|
985
|
+
typeaheadBuffer = "";
|
|
986
|
+
}, TYPEAHEAD_RESET_MS);
|
|
987
|
+
typeaheadBuffer = typeaheadBuffer.length === 1 && typeaheadBuffer === char ? char : typeaheadBuffer + char;
|
|
988
|
+
const query = typeaheadBuffer.toLowerCase();
|
|
989
|
+
const total = rows.length;
|
|
990
|
+
for (let step = 1; step <= total; step += 1) {
|
|
991
|
+
const row = rows[(fromIndex + step) % total];
|
|
992
|
+
if (row.node.label.toLowerCase().startsWith(query)) {
|
|
993
|
+
focusRow(row.node.key);
|
|
994
|
+
return;
|
|
995
|
+
}
|
|
996
|
+
}
|
|
997
|
+
}
|
|
998
|
+
/** `*` — раскрыть всех соседей узла, на котором фокус (уровень целиком). */
|
|
999
|
+
function expandSiblings(node) {
|
|
1000
|
+
const siblings = node.parent ? node.parent.childNodes : treeStore.treeModel.value.roots;
|
|
1001
|
+
for (const sibling of siblings) {
|
|
1002
|
+
if (sibling.childNodes.length === 0 || treeStore.isExpandedKey(sibling.key)) continue;
|
|
1003
|
+
treeStore.setExpandedKey(sibling.key, true);
|
|
1004
|
+
interactionContext.emitNodeExpand(sibling.data, sibling);
|
|
1005
|
+
}
|
|
1006
|
+
}
|
|
1007
|
+
function onTreeKeydown(event) {
|
|
1008
|
+
const interactive = event.target?.closest("button, a[href], input, select, textarea, [contenteditable]");
|
|
1009
|
+
if (interactive && interactive !== event.currentTarget) {
|
|
1010
|
+
if (interactive.tabIndex >= 0) return;
|
|
1011
|
+
if (event.key === "Enter" || event.key === " ") return;
|
|
1012
|
+
}
|
|
1013
|
+
const rows = visibleRows.value;
|
|
1014
|
+
if (rows.length === 0) return;
|
|
1015
|
+
const idx = Math.max(0, rows.findIndex((r) => r.node.key === roving.rovingKey.value));
|
|
1016
|
+
const cur = rows[idx];
|
|
1017
|
+
if (event.key === "*") {
|
|
1018
|
+
event.preventDefault();
|
|
1019
|
+
expandSiblings(cur.node);
|
|
1020
|
+
return;
|
|
1021
|
+
}
|
|
1022
|
+
if (event.key.length === 1 && event.key !== " " && !event.ctrlKey && !event.metaKey && !event.altKey) {
|
|
1023
|
+
event.preventDefault();
|
|
1024
|
+
onTypeahead(event.key, rows, idx);
|
|
1025
|
+
return;
|
|
1026
|
+
}
|
|
1027
|
+
if (event.shiftKey && MOVE_KEYS.has(event.key)) {
|
|
1028
|
+
if (!treeProps.draggable) return;
|
|
1029
|
+
event.preventDefault();
|
|
1030
|
+
onNodeMoveKey(cur.node, event.key);
|
|
1031
|
+
return;
|
|
1032
|
+
}
|
|
1033
|
+
if (roving.handleNavigationKeys(event)) return;
|
|
1034
|
+
switch (event.key) {
|
|
1035
|
+
case "ArrowRight":
|
|
1036
|
+
event.preventDefault();
|
|
1037
|
+
if (!cur.isLeaf) {
|
|
1038
|
+
if (!cur.isExpanded) toggleExpand(cur.node);
|
|
1039
|
+
else if (idx < rows.length - 1) focusRow(rows[idx + 1].node.key);
|
|
1040
|
+
}
|
|
1041
|
+
break;
|
|
1042
|
+
case "ArrowLeft":
|
|
1043
|
+
event.preventDefault();
|
|
1044
|
+
if (!cur.isLeaf && cur.isExpanded) toggleExpand(cur.node);
|
|
1045
|
+
else if (cur.node.parent && rows.some((r) => r.node.key === cur.node.parent.key)) focusRow(cur.node.parent.key);
|
|
1046
|
+
break;
|
|
1047
|
+
case "Enter":
|
|
1048
|
+
event.preventDefault();
|
|
1049
|
+
onRowClick(cur.node);
|
|
1050
|
+
break;
|
|
1051
|
+
case " ":
|
|
1052
|
+
event.preventDefault();
|
|
1053
|
+
if (treeProps.showCheckbox) toggleChecked(cur.node);
|
|
1054
|
+
else onRowClick(cur.node);
|
|
1055
|
+
break;
|
|
1056
|
+
}
|
|
1057
|
+
}
|
|
1058
|
+
function onRowMouseEnter(node) {
|
|
1059
|
+
hoveredKey.value = node.key;
|
|
1060
|
+
}
|
|
1061
|
+
function onRowMouseLeave(node) {
|
|
1062
|
+
if (hoveredKey.value === node.key) hoveredKey.value = void 0;
|
|
1063
|
+
}
|
|
1064
|
+
function collapseSiblings(node) {
|
|
1065
|
+
const siblings = node.parent ? node.parent.childNodes : treeStore.treeModel.value.roots;
|
|
1066
|
+
for (const sibling of siblings) {
|
|
1067
|
+
if (sibling.key === node.key || !treeStore.isExpandedKey(sibling.key)) continue;
|
|
1068
|
+
treeStore.setExpandedKey(sibling.key, false);
|
|
1069
|
+
interactionContext.emitNodeCollapse(sibling.data, sibling);
|
|
1070
|
+
}
|
|
1071
|
+
}
|
|
1072
|
+
function toggleExpand(node) {
|
|
1073
|
+
const expanded = !treeStore.isExpandedKey(node.key);
|
|
1074
|
+
if (expanded && treeProps.accordion) collapseSiblings(node);
|
|
1075
|
+
if (expanded) treeStore.ensureLoaded(node);
|
|
1076
|
+
treeStore.toggleExpand(node);
|
|
1077
|
+
if (expanded) interactionContext.emitNodeExpand(node.data, node);
|
|
1078
|
+
else interactionContext.emitNodeCollapse(node.data, node);
|
|
1079
|
+
}
|
|
1080
|
+
function checkStateOf(key) {
|
|
1081
|
+
return treeStore.getCheckState(key);
|
|
1082
|
+
}
|
|
1083
|
+
function ariaCheckedOf(row) {
|
|
1084
|
+
if (!treeProps.showCheckbox) return void 0;
|
|
1085
|
+
const state = checkStateOf(row.node.key);
|
|
1086
|
+
return state === "checked" ? "true" : state === "half" ? "mixed" : "false";
|
|
1087
|
+
}
|
|
1088
|
+
function emitCheck(node) {
|
|
1089
|
+
const checkedKeys = treeStore.getCheckedKeys();
|
|
1090
|
+
emit("update:checkedKeys", checkedKeys);
|
|
1091
|
+
emit("check", node.data, node, {
|
|
1092
|
+
checkedKeys,
|
|
1093
|
+
halfCheckedKeys: treeStore.getHalfCheckedKeys()
|
|
1094
|
+
});
|
|
1095
|
+
}
|
|
1096
|
+
function toggleChecked(node) {
|
|
1097
|
+
if (!treeProps.showCheckbox) return;
|
|
1098
|
+
const changed = treeStore.toggleChecked(node);
|
|
1099
|
+
if (changed) emitCheck(changed);
|
|
1100
|
+
}
|
|
1101
|
+
function rowStyle(row) {
|
|
1102
|
+
return { "--gr-tree-row-indent": `calc(${treeProps.indent && treeProps.indent > 0 ? `${treeProps.indent}px` : "var(--gr-tree-indent-step)"} * ${row.node.level - 1})` };
|
|
1103
|
+
}
|
|
1104
|
+
/**
|
|
1105
|
+
* Направляющая уровня-предка. Считается от того же шага отступа, что и сам
|
|
1106
|
+
* отступ строки, — иначе линия и содержимое разъедутся на вложенных уровнях.
|
|
1107
|
+
*/
|
|
1108
|
+
function branchGuideStyle(row, index) {
|
|
1109
|
+
return {
|
|
1110
|
+
"left": `calc(${treeProps.indent && treeProps.indent > 0 ? `${treeProps.indent}px` : "var(--gr-tree-indent-step)"} * ${index} + var(--gr-tree-branch-line-offset))`,
|
|
1111
|
+
"--gr-tree-branch-line-color": row.branchColors[index]
|
|
1112
|
+
};
|
|
1113
|
+
}
|
|
1114
|
+
function canDrag(node) {
|
|
1115
|
+
return interactionContext.canDrag(node);
|
|
1116
|
+
}
|
|
1117
|
+
function shouldShowDragHandle(node) {
|
|
1118
|
+
return canDrag(node) && hoveredKey.value === node.key;
|
|
1119
|
+
}
|
|
1120
|
+
/**
|
|
1121
|
+
* Треть строки сверху — «до», треть снизу — «после», середина — «внутрь».
|
|
1122
|
+
* Зоны нарезает компонент: примитив отдаёт только долю вдоль строки.
|
|
1123
|
+
*/
|
|
1124
|
+
function dropTypeFromFraction(fraction) {
|
|
1125
|
+
if (fraction < 1 / 3) return "prev";
|
|
1126
|
+
if (fraction > 2 / 3) return "next";
|
|
1127
|
+
return "inner";
|
|
1128
|
+
}
|
|
1129
|
+
function canDrop(drag, target, type) {
|
|
1130
|
+
return interactionContext.canDrop(drag, target, type);
|
|
1131
|
+
}
|
|
1132
|
+
/** Перенос состоялся: одна дорога и для указателя, и для клавиатуры. */
|
|
1133
|
+
function applyMove(source, targetKey, type) {
|
|
1134
|
+
const reference = treeStore.getNode(targetKey);
|
|
1135
|
+
if (!reference) return false;
|
|
1136
|
+
const movedNode = treeStore.moveNode(source, reference, type);
|
|
1137
|
+
if (!movedNode) return false;
|
|
1138
|
+
const dropNode = treeStore.getNode(reference.key) ?? reference;
|
|
1139
|
+
interactionContext.emitNodeDrop(movedNode, dropNode, type);
|
|
1140
|
+
return true;
|
|
1141
|
+
}
|
|
1142
|
+
const dragSort = useDragSort({
|
|
1143
|
+
items: () => visibleRows.value.map((row) => row.node.key),
|
|
1144
|
+
elementFor: (key) => interactionContext.nodeEls.get(key) ?? null,
|
|
1145
|
+
scroller: () => treeRootEl.value,
|
|
1146
|
+
disabled: () => !treeProps.draggable,
|
|
1147
|
+
canDrag: (key) => {
|
|
1148
|
+
const node = treeStore.getNode(key);
|
|
1149
|
+
return node ? canDrag(node) : false;
|
|
1150
|
+
},
|
|
1151
|
+
resolveTarget: (hit, sourceKey, previous) => {
|
|
1152
|
+
const source = treeStore.getNode(sourceKey);
|
|
1153
|
+
const node = treeStore.getNode(hit.key);
|
|
1154
|
+
if (!source || !node) return null;
|
|
1155
|
+
const type = dropTypeFromFraction(hit.fraction);
|
|
1156
|
+
const allowed = treeStore.canMoveNode(source, node, type) && canDrop(source, node, type);
|
|
1157
|
+
if (previous && previous.key === node.key && previous.type === type && previous.allowed === allowed) return previous;
|
|
1158
|
+
return {
|
|
1159
|
+
key: node.key,
|
|
1160
|
+
type,
|
|
1161
|
+
allowed
|
|
1162
|
+
};
|
|
1163
|
+
},
|
|
1164
|
+
onDrop: (sourceKey, target) => {
|
|
1165
|
+
const source = treeStore.getNode(sourceKey);
|
|
1166
|
+
if (!source || !target.allowed) return;
|
|
1167
|
+
applyMove(source, target.key, target.type);
|
|
1168
|
+
},
|
|
1169
|
+
onUpdate: (sourceKey, target) => {
|
|
1170
|
+
interactionContext.draggingNode.value = sourceKey === null ? null : treeStore.getNode(sourceKey) ?? null;
|
|
1171
|
+
interactionContext.dropTarget.value = target;
|
|
1172
|
+
}
|
|
1173
|
+
});
|
|
1174
|
+
function onHandlePointerDown(event, node) {
|
|
1175
|
+
if (!treeProps.draggable) return;
|
|
1176
|
+
dragSort.startFrom(node.key)(event);
|
|
1177
|
+
}
|
|
1178
|
+
/**
|
|
1179
|
+
* Клавиатурный перенос — раскладка аутлайнера: `Shift` со стрелкой сразу
|
|
1180
|
+
* двигает узел, без режима «взято». Режим здесь был бы лишним: `Space` в дереве
|
|
1181
|
+
* уже отмечает чекбокс, а стрелки водят фокус по веткам.
|
|
1182
|
+
*/
|
|
1183
|
+
function moveByKeyboard(node, key) {
|
|
1184
|
+
const siblings = node.parent ? node.parent.childNodes : treeStore.treeModel.value.roots;
|
|
1185
|
+
const index = siblings.findIndex((sibling) => sibling.key === node.key);
|
|
1186
|
+
if (key === "ArrowUp" && index > 0) return applyMove(node, siblings[index - 1].key, "prev");
|
|
1187
|
+
if (key === "ArrowDown" && index >= 0 && index < siblings.length - 1) return applyMove(node, siblings[index + 1].key, "next");
|
|
1188
|
+
if (key === "ArrowRight" && index > 0) return applyMove(node, siblings[index - 1].key, "inner");
|
|
1189
|
+
if (key === "ArrowLeft" && node.parent) return applyMove(node, node.parent.key, "next");
|
|
1190
|
+
return false;
|
|
1191
|
+
}
|
|
1192
|
+
async function onNodeMoveKey(node, key) {
|
|
1193
|
+
if (!treeProps.draggable || !canDrag(node)) return;
|
|
1194
|
+
if (!moveByKeyboard(node, key)) return;
|
|
1195
|
+
announce(t("gr.tree.moved", "Moved {label}", { label: node.label }));
|
|
1196
|
+
await nextTick();
|
|
1197
|
+
focusRow(node.key);
|
|
1198
|
+
}
|
|
1199
|
+
function filter(value) {
|
|
1200
|
+
treeStore.filter(value);
|
|
1201
|
+
}
|
|
1202
|
+
function resolveNodeClass(classValue, row) {
|
|
1203
|
+
if (!classValue) return void 0;
|
|
1204
|
+
return typeof classValue === "function" ? classValue(row) : classValue;
|
|
1205
|
+
}
|
|
1206
|
+
function resolveBranchLineColorValue(color, node) {
|
|
1207
|
+
if (!color) return void 0;
|
|
1208
|
+
return typeof color === "function" ? color(node) ?? void 0 : color;
|
|
1209
|
+
}
|
|
1210
|
+
function isBranchLineActive(node) {
|
|
1211
|
+
const selectedKey = currentKey.value;
|
|
1212
|
+
if (selectedKey == null) return false;
|
|
1213
|
+
if (node.key === selectedKey) return true;
|
|
1214
|
+
return node.childNodes.some((child) => child.key === selectedKey && !treeStore.isExpandedKey(child.key));
|
|
1215
|
+
}
|
|
1216
|
+
function resolveBranchLineColor(node) {
|
|
1217
|
+
const defaultColor = resolveBranchLineColorValue(treeProps.branchLineColor, node) ?? DEFAULT_BRANCH_LINE_COLOR;
|
|
1218
|
+
if (!isBranchLineActive(node)) return defaultColor;
|
|
1219
|
+
return resolveBranchLineColorValue(treeProps.branchLineActiveColor, node) ?? defaultColor;
|
|
1220
|
+
}
|
|
1221
|
+
/**
|
|
1222
|
+
* Переводит фокус на узел (по умолчанию — на тот, что держит roving tabindex).
|
|
1223
|
+
* Нужен снаружи: `GrTreeSelect` открывает панель и обязан отдать клавиатуру
|
|
1224
|
+
* дереву, иначе стрелки из триггера никуда не ведут.
|
|
1225
|
+
*/
|
|
1226
|
+
function focus(key) {
|
|
1227
|
+
const rows = visibleRows.value;
|
|
1228
|
+
if (rows.length === 0) return false;
|
|
1229
|
+
focusRow(key != null && rows.some((row) => row.node.key === key) ? key : roving.rovingKey.value ?? rows[0].node.key);
|
|
1230
|
+
return true;
|
|
1231
|
+
}
|
|
1232
|
+
onUnmounted(() => clearTimeout(typeaheadTimer));
|
|
1233
|
+
onBeforeUnmount(() => {
|
|
1234
|
+
isUnmounting = true;
|
|
1235
|
+
});
|
|
1236
|
+
__expose({
|
|
1237
|
+
appendNode: treeStore.appendNode,
|
|
1238
|
+
getCheckedKeys: (options) => treeStore.getCheckedKeys(options),
|
|
1239
|
+
setCheckedKeys: (keys) => {
|
|
1240
|
+
treeStore.setCheckedKeys(keys);
|
|
1241
|
+
emit("update:checkedKeys", treeStore.getCheckedKeys());
|
|
1242
|
+
},
|
|
1243
|
+
getHalfCheckedKeys: treeStore.getHalfCheckedKeys,
|
|
1244
|
+
setChecked: (node, checked) => {
|
|
1245
|
+
const changed = treeStore.setChecked(node, checked);
|
|
1246
|
+
if (changed) emitCheck(changed);
|
|
1247
|
+
return Boolean(changed);
|
|
1248
|
+
},
|
|
1249
|
+
filter,
|
|
1250
|
+
focus,
|
|
1251
|
+
getCurrentNode: treeStore.getCurrentNode,
|
|
1252
|
+
setCurrentKey: treeStore.setCurrentKey,
|
|
1253
|
+
getCurrentKey: treeStore.getCurrentKey,
|
|
1254
|
+
getNode: treeStore.getNode,
|
|
1255
|
+
insertNodeAfter: treeStore.insertNodeAfter,
|
|
1256
|
+
insertNodeBefore: treeStore.insertNodeBefore,
|
|
1257
|
+
removeNode: treeStore.removeNode,
|
|
1258
|
+
setCurrentNode: treeStore.setCurrentNode
|
|
1259
|
+
});
|
|
1260
|
+
return (_ctx, _cache) => {
|
|
1261
|
+
return openBlock(), createElementBlock("div", {
|
|
1262
|
+
ref_key: "treeRootEl",
|
|
1263
|
+
ref: treeRootEl,
|
|
1264
|
+
"data-gr-tree": "",
|
|
1265
|
+
class: "gr-tree",
|
|
1266
|
+
tabindex: "-1",
|
|
1267
|
+
"data-gr-virtual": unref(treeProps).virtual ? "" : void 0,
|
|
1268
|
+
role: "tree",
|
|
1269
|
+
"aria-multiselectable": unref(treeProps).showCheckbox ? "true" : void 0,
|
|
1270
|
+
style: normalizeStyle(rootStyle.value),
|
|
1271
|
+
onKeydown: onTreeKeydown
|
|
1272
|
+
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(renderedRows.value, (row, windowIndex) => {
|
|
1273
|
+
return openBlock(), createElementBlock("div", {
|
|
1274
|
+
key: row.node.key,
|
|
1275
|
+
ref_for: true,
|
|
1276
|
+
ref: (el) => {
|
|
1277
|
+
if (el) unref(interactionContext).registerNodeEl(row.node.key, el);
|
|
1278
|
+
else releaseNodeEl(row.node.key);
|
|
1279
|
+
if (unref(treeProps).virtual) unref(virtualizer).measure(absoluteIndex(windowIndex), el);
|
|
1280
|
+
},
|
|
1281
|
+
"data-gr-tree-node": "",
|
|
1282
|
+
"data-gr-tree-node-key": row.node.key,
|
|
1283
|
+
role: "treeitem",
|
|
1284
|
+
"aria-level": row.node.level,
|
|
1285
|
+
"aria-posinset": row.posInSet,
|
|
1286
|
+
"aria-setsize": row.setSize,
|
|
1287
|
+
"aria-expanded": row.isLeaf ? void 0 : row.isExpanded,
|
|
1288
|
+
"aria-selected": unref(currentKey) === row.node.key ? "true" : void 0,
|
|
1289
|
+
"aria-checked": ariaCheckedOf(row),
|
|
1290
|
+
"aria-busy": row.isLoading ? "true" : void 0,
|
|
1291
|
+
tabindex: isRovingItem(row.node.key) ? 0 : -1
|
|
1292
|
+
}, [createElementVNode("div", {
|
|
1293
|
+
"data-gr-tree-row": "",
|
|
1294
|
+
class: normalizeClass(["gr-tree__row", [
|
|
1295
|
+
unref(treeProps).highlightCurrent && unref(currentKey) === row.node.key ? "gr-tree__row--current" : "",
|
|
1296
|
+
row.isMatched ? "gr-tree__row--matched" : "",
|
|
1297
|
+
unref(dropTarget)?.key === row.node.key && unref(dropTarget).allowed && unref(dropTarget).type === "inner" ? "gr-tree__row--drop-inner" : "",
|
|
1298
|
+
unref(dropTarget)?.key === row.node.key && unref(dropTarget).allowed && unref(dropTarget).type === "prev" ? "gr-tree__row--drop-prev" : "",
|
|
1299
|
+
unref(dropTarget)?.key === row.node.key && unref(dropTarget).allowed && unref(dropTarget).type === "next" ? "gr-tree__row--drop-next" : "",
|
|
1300
|
+
resolveNodeClass(unref(treeProps).rowClass, row)
|
|
1301
|
+
]]),
|
|
1302
|
+
style: normalizeStyle(rowStyle(row)),
|
|
1303
|
+
onClick: ($event) => onRowActivate(row),
|
|
1304
|
+
onContextmenu: ($event) => onRowContextMenu($event, row.node),
|
|
1305
|
+
onDrop: _cache[1] || (_cache[1] = withModifiers(() => {}, ["prevent"])),
|
|
1306
|
+
onMouseenter: ($event) => onRowMouseEnter(row.node),
|
|
1307
|
+
onMouseleave: ($event) => onRowMouseLeave(row.node)
|
|
1308
|
+
}, [
|
|
1309
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(row.branchColors, (color, guideIndex) => {
|
|
1310
|
+
return openBlock(), createElementBlock("span", {
|
|
1311
|
+
key: guideIndex,
|
|
1312
|
+
"data-gr-tree-branch-guide": "",
|
|
1313
|
+
class: "gr-tree__branch-guide",
|
|
1314
|
+
style: normalizeStyle(branchGuideStyle(row, guideIndex)),
|
|
1315
|
+
"aria-hidden": "true"
|
|
1316
|
+
}, null, 4);
|
|
1317
|
+
}), 128)),
|
|
1318
|
+
unref(treeProps).draggable ? (openBlock(), createElementBlock("button", {
|
|
1319
|
+
key: 0,
|
|
1320
|
+
type: "button",
|
|
1321
|
+
tabindex: "-1",
|
|
1322
|
+
"data-gr-tree-drag-handle": "",
|
|
1323
|
+
class: normalizeClass(["gr-tree__drag-handle", [
|
|
1324
|
+
shouldShowDragHandle(row.node) ? "gr-tree__drag-handle--visible" : "",
|
|
1325
|
+
canDrag(row.node) ? "" : "gr-tree__drag-handle--disabled",
|
|
1326
|
+
resolveNodeClass(unref(treeProps).dragHandleClass, row)
|
|
1327
|
+
]]),
|
|
1328
|
+
"aria-label": dragLabel.value,
|
|
1329
|
+
"aria-disabled": canDrag(row.node) ? void 0 : "true",
|
|
1330
|
+
onClick: _cache[0] || (_cache[0] = withModifiers(() => {}, ["stop"])),
|
|
1331
|
+
onPointerdown: ($event) => onHandlePointerDown($event, row.node)
|
|
1332
|
+
}, [(openBlock(), createBlock(resolveDynamicComponent(unref(iconTag)(unref(treeProps).dragHandleIcon, unref(grip_vertical_default))), { class: normalizeClass(["gr-tree__drag-icon", unref(iconClass)(unref(treeProps).dragHandleIcon)]) }, null, 8, ["class"]))], 42, _hoisted_4)) : createCommentVNode("", true),
|
|
1333
|
+
!row.isLeaf ? (openBlock(), createElementBlock("button", {
|
|
1334
|
+
key: 1,
|
|
1335
|
+
"data-gr-tree-toggle": "",
|
|
1336
|
+
type: "button",
|
|
1337
|
+
tabindex: "-1",
|
|
1338
|
+
class: normalizeClass(["gr-tree__toggle", resolveNodeClass(unref(treeProps).toggleClass, row)]),
|
|
1339
|
+
"aria-label": row.isExpanded ? collapseLabel.value : expandLabel.value,
|
|
1340
|
+
onClick: withModifiers(($event) => toggleExpand(row.node), ["stop"])
|
|
1341
|
+
}, [row.isLoading ? (openBlock(), createBlock(unref(loader_circle_default), {
|
|
1342
|
+
key: 0,
|
|
1343
|
+
"data-gr-tree-loading": "",
|
|
1344
|
+
class: "gr-tree__toggle-icon animate-spin"
|
|
1345
|
+
})) : (openBlock(), createBlock(resolveDynamicComponent(unref(iconTag)(row.isExpanded ? unref(treeProps).collapseIcon : unref(treeProps).expandIcon, unref(chevron_right_default))), {
|
|
1346
|
+
key: 1,
|
|
1347
|
+
class: normalizeClass(["gr-tree__toggle-icon", [
|
|
1348
|
+
unref(iconClass)(row.isExpanded ? unref(treeProps).collapseIcon : unref(treeProps).expandIcon),
|
|
1349
|
+
row.isExpanded && unref(treeProps).toggleIconRotate ? "gr-tree__toggle-icon--expanded" : "",
|
|
1350
|
+
resolveNodeClass(unref(treeProps).toggleIconClass, row)
|
|
1351
|
+
]])
|
|
1352
|
+
}, null, 8, ["class"]))], 10, _hoisted_5)) : (openBlock(), createElementBlock("span", {
|
|
1353
|
+
key: 2,
|
|
1354
|
+
class: normalizeClass(["gr-tree__toggle-spacer", resolveNodeClass(unref(treeProps).toggleSpacerClass, row)])
|
|
1355
|
+
}, null, 2)),
|
|
1356
|
+
unref(treeProps).showCheckbox ? (openBlock(), createElementBlock("span", {
|
|
1357
|
+
key: 3,
|
|
1358
|
+
"data-gr-tree-checkbox": "",
|
|
1359
|
+
class: normalizeClass(["gr-tree__checkbox", [checkStateOf(row.node.key) === "checked" ? "gr-tree__checkbox--checked" : "", checkStateOf(row.node.key) === "half" ? "gr-tree__checkbox--half" : ""]]),
|
|
1360
|
+
"aria-hidden": "true",
|
|
1361
|
+
onClick: withModifiers(($event) => toggleChecked(row.node), ["stop"])
|
|
1362
|
+
}, [checkStateOf(row.node.key) !== "unchecked" ? (openBlock(), createBlock(resolveDynamicComponent(checkStateOf(row.node.key) === "half" ? unref(minus_default) : unref(check_default)), {
|
|
1363
|
+
key: 0,
|
|
1364
|
+
class: "gr-tree__checkbox-mark"
|
|
1365
|
+
})) : createCommentVNode("", true)], 10, _hoisted_6)) : createCommentVNode("", true),
|
|
1366
|
+
createElementVNode("div", { class: normalizeClass(["gr-tree__content", resolveNodeClass(unref(treeProps).contentClass, row)]) }, [renderSlot(_ctx.$slots, "default", {
|
|
1367
|
+
node: row.node,
|
|
1368
|
+
data: row.node.data
|
|
1369
|
+
}, () => [createElementVNode("span", _hoisted_7, toDisplayString(row.node.label), 1)], true)], 2)
|
|
1370
|
+
], 46, _hoisted_3)], 8, _hoisted_2);
|
|
1371
|
+
}), 128))], 44, _hoisted_1);
|
|
1372
|
+
};
|
|
1373
|
+
}
|
|
1374
|
+
}), [["__scopeId", "data-v-c34c121e"]]);
|
|
1375
|
+
//#endregion
|
|
1376
|
+
export { GrTree_default as t };
|