@feugene/granularity 0.23.0 → 0.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/config-BFJIxE8b.js +62 -0
- package/dist/chunks/config-BFJIxE8b.js.map +1 -0
- package/dist/chunks/{config-DBQQT-WP.js → config-BIa3ilQm.js} +18 -3
- package/dist/chunks/config-BIa3ilQm.js.map +1 -0
- package/dist/chunks/config-BfsBepkH.js.map +1 -0
- package/dist/chunks/config-BoNR7_PD.js.map +1 -0
- package/dist/chunks/config-BuGlNPE92.js.map +1 -0
- package/dist/chunks/{config-Be9k9bOf.js → config-C8tVRv8i.js} +16 -2
- package/dist/chunks/config-C8tVRv8i.js.map +1 -0
- package/dist/chunks/config-CPSxM7XE.js +8 -0
- package/dist/chunks/config-CPSxM7XE.js.map +1 -0
- package/dist/chunks/config-D7zgE_Gr.js +107 -0
- package/dist/chunks/config-D7zgE_Gr.js.map +1 -0
- package/dist/chunks/config-DAX8Deh1.js.map +1 -0
- package/dist/chunks/config-DGCMHPCR.js +19 -0
- package/dist/chunks/config-DGCMHPCR.js.map +1 -0
- package/dist/chunks/config-DGWFal5h.js +128 -0
- package/dist/chunks/config-DGWFal5h.js.map +1 -0
- package/dist/chunks/config-DKISz9gR.js +39 -0
- package/dist/chunks/config-DKISz9gR.js.map +1 -0
- package/dist/chunks/{config-Bm_Sovla.js → config-DYgfMrIF.js} +14 -2
- package/dist/chunks/config-DYgfMrIF.js.map +1 -0
- package/dist/chunks/{config-BSyiFlbi.js → config-DtgYuGUn2.js} +2 -1
- package/dist/chunks/config-DtgYuGUn2.js.map +1 -0
- package/dist/chunks/config-Iu684VNI.js +21 -0
- package/dist/chunks/config-Iu684VNI.js.map +1 -0
- package/dist/chunks/config-T3qdQBgU.js.map +1 -0
- package/dist/chunks/{config-DCwQBMmJ.js → config-rkcKArZQ.js} +27 -8
- package/dist/chunks/config-rkcKArZQ.js.map +1 -0
- package/dist/chunks/config-zjeAJ4ho2.js.map +1 -0
- package/dist/chunks/context-BfIQv7m12.js.map +1 -0
- package/dist/chunks/context-CTbuwcYs.js.map +1 -1
- package/dist/chunks/{en-DCCFP4qu.js → en-NpP9e7lC.js} +16 -2
- package/dist/chunks/en-NpP9e7lC.js.map +1 -0
- package/dist/chunks/{es-CT34HBVM.js → es-DaeA2Ql-.js} +16 -2
- package/dist/chunks/es-DaeA2Ql-.js.map +1 -0
- package/dist/chunks/{es-DdJsxlUr.js → es-Do2CNrC2.js} +3 -3
- package/dist/chunks/{es-DdJsxlUr.js.map → es-Do2CNrC2.js.map} +1 -1
- package/dist/chunks/{generated-CiCrGDQO.js → generated-CJe6hdiE.js} +138 -6
- package/dist/chunks/{generated-CiCrGDQO.js.map → generated-CJe6hdiE.js.map} +1 -1
- package/dist/chunks/{grBadgeStyles-C2wLlkjF.js → grBadgeStyles-C1S56Alo.js} +6 -1
- package/dist/chunks/{grBadgeStyles-C2wLlkjF.js.map → grBadgeStyles-C1S56Alo.js.map} +1 -1
- package/dist/chunks/grChipGroupContext-DZXkACap.js +4 -0
- package/dist/chunks/grChipGroupContext-DZXkACap.js.map +1 -0
- package/dist/chunks/{config-C5mO5DYZ.js → grDropdownMenuStyles-D1LOkdVj.js} +1 -38
- package/dist/chunks/grDropdownMenuStyles-D1LOkdVj.js.map +1 -0
- package/dist/chunks/{grPopoverStyles-Rz_Z5nLW.js → grPopoverStyles-Cke_BZsM.js} +16 -3
- package/dist/chunks/grPopoverStyles-Cke_BZsM.js.map +1 -0
- package/dist/chunks/{granular-provider-CQKhl5C_.js → granular-provider-BaHkLjFX.js} +26 -16
- package/dist/chunks/granular-provider-BaHkLjFX.js.map +1 -0
- package/dist/chunks/{ru-CLiAMwrx.js → ru-Bg9-DPmg.js} +16 -2
- package/dist/chunks/ru-Bg9-DPmg.js.map +1 -0
- package/dist/chunks/{config-qVg3Zz_A.js → safelist-DOfCQR5O.js} +2 -19
- package/dist/chunks/safelist-DOfCQR5O.js.map +1 -0
- package/dist/chunks/useMenuItemsFocus-OyOnIAlr.js +117 -0
- package/dist/chunks/useMenuItemsFocus-OyOnIAlr.js.map +1 -0
- package/dist/components/GrAutocomplete/chunks/{GrAutocomplete-DsevPtiS.js → GrAutocomplete-D9c9BNFg.js} +1 -1
- package/dist/components/GrAutocomplete/chunks/{GrAutocomplete-DsevPtiS.js.map → GrAutocomplete-D9c9BNFg.js.map} +1 -1
- package/dist/components/GrAutocomplete/index.js +1 -1
- package/dist/components/GrBadge/chunks/{GrBadge-u2ZdS7CN.js → GrBadge-_9rCHuE1.js} +1 -1
- package/dist/components/GrBadge/chunks/{GrBadge-u2ZdS7CN.js.map → GrBadge-_9rCHuE1.js.map} +1 -1
- package/dist/components/GrBadge/index.js +3 -2
- package/dist/components/GrButton/chunks/{GrButton-Bw2AH4uX.js → GrButton-DCz-Wn-V.js} +1 -1
- package/dist/components/GrButton/chunks/{GrButton-Bw2AH4uX.js.map → GrButton-DCz-Wn-V.js.map} +1 -1
- package/dist/components/GrButton/index.js +1 -1
- package/dist/components/GrButtonGroup/chunks/{GrButtonGroup-CKyiAV8K.js → GrButtonGroup-BQo5VQ_c.js} +1 -1
- package/dist/components/GrButtonGroup/chunks/{GrButtonGroup-CKyiAV8K.js.map → GrButtonGroup-BQo5VQ_c.js.map} +1 -1
- package/dist/components/GrButtonGroup/index.js +2 -2
- package/dist/components/GrCard/chunks/{GrCard-Bc7nRfbe.js → GrCard-aQIjk6I9.js} +9 -3
- package/dist/components/GrCard/chunks/GrCard-aQIjk6I9.js.map +1 -0
- package/dist/components/GrCard/index.js +2 -2
- package/dist/components/GrCheckboxGroup/index.js +1 -1
- package/dist/components/GrChip/chunks/GrChip-BnL2FedO.js +222 -0
- package/dist/components/GrChip/chunks/GrChip-BnL2FedO.js.map +1 -0
- package/dist/components/GrChip/index.js +3 -0
- package/dist/components/GrChipGroup/chunks/GrChipGroup-DefmSdY9.js +209 -0
- package/dist/components/GrChipGroup/chunks/GrChipGroup-DefmSdY9.js.map +1 -0
- package/dist/components/GrChipGroup/index.js +3 -0
- package/dist/components/GrCodeBlock/chunks/{GrCodeBlock-BmXCLgLS.js → GrCodeBlock-CyptiEo4.js} +1 -1
- package/dist/components/GrCodeBlock/chunks/{GrCodeBlock-BmXCLgLS.js.map → GrCodeBlock-CyptiEo4.js.map} +1 -1
- package/dist/components/GrCodeBlock/index.js +1 -1
- package/dist/components/GrCollapse/chunks/{GrCollapse-C1rCfbc0.js → GrCollapse-DUROgAgc.js} +1 -1
- package/dist/components/GrCollapse/chunks/{GrCollapse-C1rCfbc0.js.map → GrCollapse-DUROgAgc.js.map} +1 -1
- package/dist/components/GrCollapse/index.js +1 -1
- package/dist/components/GrColorPicker/chunks/{GrColorPicker-qQdoEPHF.js → GrColorPicker-CDaJRVIM.js} +1 -1
- package/dist/components/GrColorPicker/chunks/{GrColorPicker-qQdoEPHF.js.map → GrColorPicker-CDaJRVIM.js.map} +1 -1
- package/dist/components/GrColorPicker/index.js +1 -1
- package/dist/components/GrCommandPalette/chunks/{GrCommandPalette-BFcMf4Pn.js → GrCommandPalette-BPsVN_XU.js} +3 -3
- package/dist/components/GrCommandPalette/chunks/GrCommandPalette-BPsVN_XU.js.map +1 -0
- package/dist/components/GrCommandPalette/index.js +1 -1
- package/dist/components/GrCommandPalette/styles.css +1 -1
- package/dist/components/GrConfigProvider/chunks/{GrConfigProvider-UP-EaoAf.js → GrConfigProvider-BF7R3hgg.js} +1 -1
- package/dist/components/GrConfigProvider/chunks/GrConfigProvider-BF7R3hgg.js.map +1 -0
- package/dist/components/GrConfigProvider/index.js +1 -1
- package/dist/components/GrConfirmDialog/chunks/{GrConfirmDialog-rRtMScJX.js → GrConfirmDialog-CwXNLyzk.js} +3 -3
- package/dist/components/GrConfirmDialog/chunks/{GrConfirmDialog-rRtMScJX.js.map → GrConfirmDialog-CwXNLyzk.js.map} +1 -1
- package/dist/components/GrConfirmDialog/index.js +1 -1
- package/dist/components/GrContextMenu/chunks/GrContextMenu-BbAJholy.js +331 -0
- package/dist/components/GrContextMenu/chunks/GrContextMenu-BbAJholy.js.map +1 -0
- package/dist/components/GrContextMenu/index.js +3 -0
- package/dist/components/GrDataTable/chunks/{GrDataTable-B5MmZFUg.js → GrDataTable-NRbrXpdx.js} +2 -2
- package/dist/components/GrDataTable/chunks/GrDataTable-NRbrXpdx.js.map +1 -0
- package/dist/components/GrDataTable/index.js +1 -1
- package/dist/components/GrDelta/chunks/{GrDelta-DFvxNpmN.js → GrDelta-NE5HhXoo.js} +0 -0
- package/dist/components/GrDelta/chunks/GrDelta-NE5HhXoo.js.map +1 -0
- package/dist/components/GrDelta/index.js +2 -2
- package/dist/components/GrDescriptionList/chunks/{GrDescriptionList-2zFXzX83.js → GrDescriptionList-1mICfrqX.js} +8 -4
- package/dist/components/GrDescriptionList/chunks/GrDescriptionList-1mICfrqX.js.map +1 -0
- package/dist/components/GrDescriptionList/index.js +2 -2
- package/dist/components/GrDialog/chunks/{GrDialog-D0U5iRqV.js → GrDialog-5Y5K87ss.js} +2 -2
- package/dist/components/GrDialog/chunks/{GrDialog-D0U5iRqV.js.map → GrDialog-5Y5K87ss.js.map} +1 -1
- package/dist/components/GrDialog/index.js +1 -1
- package/dist/components/GrDialogService/chunks/{GrDialogService-CrwA4aJq.js → GrDialogService-CHhzGRWy.js} +6 -6
- package/dist/components/GrDialogService/chunks/GrDialogService-CHhzGRWy.js.map +1 -0
- package/dist/components/GrDialogService/index.js +1 -1
- package/dist/components/GrDrawer/chunks/{GrDrawer-C3zAg2tG.js → GrDrawer-CXy3-SVd.js} +2 -2
- package/dist/components/GrDrawer/chunks/GrDrawer-CXy3-SVd.js.map +1 -0
- package/dist/components/GrDrawer/index.js +1 -1
- package/dist/components/GrDropdown/chunks/{GrDropdown-BSfFOcDx.js → GrDropdown-BfTmdPyh.js} +10 -79
- package/dist/components/GrDropdown/chunks/GrDropdown-BfTmdPyh.js.map +1 -0
- package/dist/components/GrDropdown/index.js +1 -1
- package/dist/components/GrDropdownMenu/chunks/GrDropdownMenu-l5HEqzjr.js +130 -0
- package/dist/components/GrDropdownMenu/chunks/GrDropdownMenu-l5HEqzjr.js.map +1 -0
- package/dist/components/GrDropdownMenu/chunks/{GrDropdownMenu-DyS6dWDp.js → GrDropdownMenuList-BGA_xNVo.js} +57 -159
- package/dist/components/GrDropdownMenu/chunks/GrDropdownMenuList-BGA_xNVo.js.map +1 -0
- package/dist/components/GrDropdownMenu/index.js +3 -2
- package/dist/components/GrFileUpload/chunks/{GrFileUpload-D3-vC-ap.js → GrFileUpload-wNXzHb5N.js} +1 -1
- package/dist/components/GrFileUpload/chunks/GrFileUpload-wNXzHb5N.js.map +1 -0
- package/dist/components/GrFileUpload/index.js +1 -1
- package/dist/components/GrFormField/chunks/{GrFormField-kqfVY30N.js → GrFormField-DSylU7IU.js} +1 -1
- package/dist/components/GrFormField/chunks/GrFormField-DSylU7IU.js.map +1 -0
- package/dist/components/GrFormField/index.js +1 -1
- package/dist/components/GrFormFile/chunks/{GrFormFile-D722xHn8.js → GrFormFile-DhVkB2gm.js} +1 -1
- package/dist/components/GrFormFile/chunks/{GrFormFile-D722xHn8.js.map → GrFormFile-DhVkB2gm.js.map} +1 -1
- package/dist/components/GrFormFile/index.js +1 -1
- package/dist/components/GrInputTag/chunks/{GrInputTag-C7QVPijj.js → GrInputTag-UI8kIB_F.js} +2 -2
- package/dist/components/GrInputTag/chunks/{GrInputTag-C7QVPijj.js.map → GrInputTag-UI8kIB_F.js.map} +1 -1
- package/dist/components/GrInputTag/index.js +1 -1
- package/dist/components/GrJsonViewer/chunks/{GrJsonViewer-DFUppRNb.js → GrJsonViewer-jk3ylOTc.js} +2 -2
- package/dist/components/GrJsonViewer/chunks/GrJsonViewer-jk3ylOTc.js.map +1 -0
- package/dist/components/GrJsonViewer/index.js +1 -1
- package/dist/components/GrList/chunks/{GrList-BRYhpqIe.js → GrList-B5bclmHV.js} +30 -3
- package/dist/components/GrList/chunks/GrList-B5bclmHV.js.map +1 -0
- package/dist/components/GrList/index.js +1 -1
- package/dist/components/GrList/styles.css +1 -1
- package/dist/components/GrLoading/chunks/{GrLoading-C3DZSSuh.js → GrLoading-DeBFTvFX.js} +1 -1
- package/dist/components/GrLoading/chunks/GrLoading-DeBFTvFX.js.map +1 -0
- package/dist/components/GrLoading/index.js +1 -1
- package/dist/components/GrModal/chunks/{GrModal-CPz7SWD_.js → GrModal-CCoWZuIl.js} +2 -2
- package/dist/components/GrModal/chunks/GrModal-CCoWZuIl.js.map +1 -0
- package/dist/components/GrModal/index.js +1 -1
- package/dist/components/GrNavbar/chunks/{GrNavbar-DWaaoV7n.js → GrNavbar-DPj30sHX.js} +1 -1
- package/dist/components/GrNavbar/chunks/{GrNavbar-DWaaoV7n.js.map → GrNavbar-DPj30sHX.js.map} +1 -1
- package/dist/components/GrNavbar/index.js +1 -1
- package/dist/components/GrNumberInput/chunks/{GrNumberInput-BotnzW77.js → GrNumberInput-V2mZvDDC.js} +1 -1
- package/dist/components/GrNumberInput/chunks/{GrNumberInput-BotnzW77.js.map → GrNumberInput-V2mZvDDC.js.map} +1 -1
- package/dist/components/GrNumberInput/index.js +2 -2
- package/dist/components/GrPagination/chunks/{GrPagination-GtGtSMJG.js → GrPagination-DG7kp6VL.js} +2 -2
- package/dist/components/GrPagination/chunks/{GrPagination-GtGtSMJG.js.map → GrPagination-DG7kp6VL.js.map} +1 -1
- package/dist/components/GrPagination/index.js +1 -1
- package/dist/components/GrPopover/chunks/{GrPopover-b70bIlQ9.js → GrPopover-DDChM1jD.js} +28 -10
- package/dist/components/GrPopover/chunks/GrPopover-DDChM1jD.js.map +1 -0
- package/dist/components/GrPopover/index.js +2 -2
- package/dist/components/GrPromptDialog/chunks/{GrPromptDialog-CEI8bf-t.js → GrPromptDialog-DjF-5oD9.js} +4 -4
- package/dist/components/GrPromptDialog/chunks/{GrPromptDialog-CEI8bf-t.js.map → GrPromptDialog-DjF-5oD9.js.map} +1 -1
- package/dist/components/GrPromptDialog/index.js +1 -1
- package/dist/components/GrRadioGroup/chunks/{GrRadioGroup-BVmjKXcv.js → GrRadioGroup-7w4bXIg_.js} +1 -1
- package/dist/components/GrRadioGroup/chunks/{GrRadioGroup-BVmjKXcv.js.map → GrRadioGroup-7w4bXIg_.js.map} +1 -1
- package/dist/components/GrRadioGroup/index.js +1 -1
- package/dist/components/GrResponseErrorBanner/chunks/{GrResponseErrorBanner-CZONq8uT.js → GrResponseErrorBanner-BhP-xw2P.js} +1 -1
- package/dist/components/GrResponseErrorBanner/chunks/{GrResponseErrorBanner-CZONq8uT.js.map → GrResponseErrorBanner-BhP-xw2P.js.map} +1 -1
- package/dist/components/GrResponseErrorBanner/chunks/{GrResponseErrorBanner-CgfAwlg3.js → GrResponseErrorBanner-DA4q90Zt.js} +1 -1
- package/dist/components/GrResponseErrorBanner/chunks/{GrResponseErrorBanner-CgfAwlg3.js.map → GrResponseErrorBanner-DA4q90Zt.js.map} +1 -1
- package/dist/components/GrResponseErrorBanner/index.js +2 -2
- package/dist/components/GrSegmented/chunks/{GrSegmented-D1mjxF_O.js → GrSegmented-DKpo3cnC.js} +30 -5
- package/dist/components/GrSegmented/chunks/GrSegmented-DKpo3cnC.js.map +1 -0
- package/dist/components/GrSegmented/index.js +1 -1
- package/dist/components/GrSelect/chunks/{GrSelect-CaGuyvtb.js → GrSelect-BA1wfX3c.js} +19 -3
- package/dist/components/GrSelect/chunks/GrSelect-BA1wfX3c.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 → GrSidebar-DY-LgIbS.js} +2 -2
- package/dist/components/GrSidebar/chunks/{GrSidebar-D7WxRtIu.js.map → GrSidebar-DY-LgIbS.js.map} +1 -1
- package/dist/components/GrSidebar/index.js +2 -2
- package/dist/components/GrSlider/index.js +1 -1
- package/dist/components/GrSortableList/chunks/{GrSortableList-DPjxilmN.js → GrSortableList-BMXyxmRc.js} +3 -3
- package/dist/components/GrSortableList/chunks/{GrSortableList-DPjxilmN.js.map → GrSortableList-BMXyxmRc.js.map} +1 -1
- package/dist/components/GrSortableList/index.js +2 -2
- package/dist/components/GrStatistic/chunks/{GrStatistic-C7wQECeS.js → GrStatistic-BJQv5aOS.js} +41 -26
- package/dist/components/GrStatistic/chunks/GrStatistic-BJQv5aOS.js.map +1 -0
- package/dist/components/GrStatistic/index.js +2 -2
- package/dist/components/GrSteps/chunks/GrSteps-Cce4rfr3.js +282 -0
- package/dist/components/GrSteps/chunks/GrSteps-Cce4rfr3.js.map +1 -0
- package/dist/components/GrSteps/index.js +3 -0
- package/dist/components/GrSwitch/chunks/{GrSwitch-x_vQQ6ao.js → GrSwitch-CHiIj9GT.js} +1 -1
- package/dist/components/GrSwitch/chunks/{GrSwitch-x_vQQ6ao.js.map → GrSwitch-CHiIj9GT.js.map} +1 -1
- package/dist/components/GrSwitch/index.js +2 -2
- package/dist/components/GrTabPanels/chunks/{GrTabPanels-AJt1w1XC.js → GrTabPanels-BZQS8-JM.js} +12 -1
- package/dist/components/GrTabPanels/chunks/{GrTabPanels-AJt1w1XC.js.map → GrTabPanels-BZQS8-JM.js.map} +1 -1
- package/dist/components/GrTabPanels/index.js +1 -1
- package/dist/components/GrTimeline/chunks/{GrTimeline-Ch9sHzwL.js → GrTimeline-DIDdkTn7.js} +12 -1
- package/dist/components/GrTimeline/chunks/GrTimeline-DIDdkTn7.js.map +1 -0
- package/dist/components/GrTimeline/index.js +1 -1
- package/dist/components/GrToaster/chunks/{GrToaster-DJUzx3sR.js → GrToaster-CC49q3a4.js} +1 -1
- package/dist/components/GrToaster/chunks/{GrToaster-DJUzx3sR.js.map → GrToaster-CC49q3a4.js.map} +1 -1
- package/dist/components/GrToaster/index.js +1 -1
- package/dist/components/GrTree/chunks/{GrTree-BvOeQ3xJ.js.map → GrTree-J5q8aCya.js.map} +1 -1
- package/dist/components/GrTree/index.js +1 -1
- package/dist/components/GrTreeSelect/chunks/{GrTreeSelect-_LjTRR7X.js → GrTreeSelect-DEfxWAc3.js} +1 -1
- package/dist/components/GrTreeSelect/chunks/{GrTreeSelect-_LjTRR7X.js.map → GrTreeSelect-DEfxWAc3.js.map} +1 -1
- package/dist/components/GrTreeSelect/index.js +1 -1
- package/dist/components/GrValue/chunks/GrValue-CZsuZ4x-.js +38 -0
- package/dist/components/GrValue/chunks/GrValue-CZsuZ4x-.js.map +1 -0
- package/dist/components/GrValue/index.js +3 -0
- package/dist/composables/useFloating.js +47 -7
- package/dist/composables/useFloating.js.map +1 -1
- package/dist/composables/useTheme.js.map +1 -1
- 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 +74 -62
- package/dist/styles/themes/dark.css +11 -6
- package/dist/styles/themes/light.css +5 -0
- package/dist/theme.js +1 -1
- package/dist/tokens.js +1 -1
- package/dist/types/components/GrBadge/grBadgeStyles.d.ts +7 -0
- package/dist/types/components/GrCard/GrCard.vue.d.ts +1 -1
- package/dist/types/components/GrCard/grCardStyles.d.ts +11 -0
- package/dist/types/components/GrChip/GrChip.vue.d.ts +118 -0
- package/dist/types/components/GrChip/config.d.ts +1 -0
- package/dist/types/components/GrChip/defaults.d.ts +16 -0
- package/dist/types/components/GrChip/grChipGroupContext.d.ts +52 -0
- package/dist/types/components/GrChip/grChipStyles.d.ts +64 -0
- package/dist/types/components/GrChip/index.d.ts +11 -0
- package/dist/types/components/GrChip/safelist.d.ts +7 -0
- package/dist/types/components/GrChipGroup/GrChipGroup.vue.d.ts +128 -0
- package/dist/types/components/GrChipGroup/config.d.ts +1 -0
- package/dist/types/components/GrChipGroup/defaults.d.ts +13 -0
- package/dist/types/components/GrChipGroup/grChipGroupStyles.d.ts +7 -0
- package/dist/types/components/GrChipGroup/index.d.ts +9 -0
- package/dist/types/components/GrChipGroup/safelist.d.ts +1 -0
- package/dist/types/components/GrContextMenu/GrContextMenu.vue.d.ts +157 -0
- package/dist/types/components/GrContextMenu/config.d.ts +1 -0
- package/dist/types/components/GrContextMenu/contextMenuAnchor.d.ts +29 -0
- package/dist/types/components/GrContextMenu/index.d.ts +7 -0
- package/dist/types/components/GrDataTable/GrDataTable.vue.d.ts +1 -1
- package/dist/types/components/GrDelta/grDeltaStyles.d.ts +13 -1
- package/dist/types/components/GrDescriptionList/grDescriptionListStyles.d.ts +29 -1
- package/dist/types/components/GrDropdownMenu/GrDropdownMenu.vue.d.ts +3 -3
- package/dist/types/components/GrDropdownMenu/GrDropdownMenuEntries.vue.d.ts +22 -0
- package/dist/types/components/GrFilePreview/GrFilePreview.vue.d.ts +1 -1
- package/dist/types/components/GrList/GrListItem.vue.d.ts +1 -1
- package/dist/types/components/GrPopover/GrPopover.vue.d.ts +21 -2
- package/dist/types/components/GrPopover/grPopoverStyles.d.ts +11 -1
- package/dist/types/components/GrPopover/index.d.ts +1 -1
- package/dist/types/components/GrStatistic/GrStatistic.vue.d.ts +6 -6
- package/dist/types/components/GrStatistic/grStatisticStyles.d.ts +9 -0
- package/dist/types/components/GrSteps/GrSteps.vue.d.ts +118 -0
- package/dist/types/components/GrSteps/config.d.ts +1 -0
- package/dist/types/components/GrSteps/defaults.d.ts +18 -0
- package/dist/types/components/GrSteps/grStepsStyles.d.ts +63 -0
- package/dist/types/components/GrSteps/index.d.ts +11 -0
- package/dist/types/components/GrSteps/safelist.d.ts +1 -0
- package/dist/types/components/GrSteps/stepsModel.d.ts +57 -0
- package/dist/types/components/GrValue/GrValue.vue.d.ts +51 -0
- package/dist/types/components/GrValue/config.d.ts +1 -0
- package/dist/types/components/GrValue/grValueStyles.d.ts +34 -0
- package/dist/types/components/GrValue/index.d.ts +5 -0
- package/dist/types/components/GrValue/safelist.d.ts +1 -0
- package/dist/types/components/shared/truncationTitle.d.ts +16 -0
- package/dist/types/composables/internal/useMenuItemsFocus.d.ts +24 -0
- package/dist/types/composables/internal/useTypeahead.d.ts +30 -0
- package/dist/types/composables/useFloating.d.ts +33 -2
- package/dist/types/granular-provider/shared.d.ts +5 -0
- package/dist/types/i18n/messages/en.d.ts +26 -0
- package/dist/types/i18n/messages/es.d.ts +26 -0
- package/dist/types/i18n/messages/ru.d.ts +26 -0
- package/dist/types/index.d.ts +6 -0
- package/dist/web-types.json +799 -195
- package/package.json +22 -2
- package/tokens/themes/dark.json +26 -6
- package/tokens/themes/light.json +20 -0
- package/dist/chunks/config-BSyiFlbi.js.map +0 -1
- package/dist/chunks/config-Be9k9bOf.js.map +0 -1
- package/dist/chunks/config-BfsBepkH2.js.map +0 -1
- package/dist/chunks/config-Bm_Sovla.js.map +0 -1
- package/dist/chunks/config-BoNR7_PD2.js.map +0 -1
- package/dist/chunks/config-BuGlNPE9.js.map +0 -1
- package/dist/chunks/config-C5mO5DYZ.js.map +0 -1
- package/dist/chunks/config-DAX8Deh12.js.map +0 -1
- package/dist/chunks/config-DBQQT-WP.js.map +0 -1
- package/dist/chunks/config-DCwQBMmJ.js.map +0 -1
- package/dist/chunks/config-T3qdQBgU2.js.map +0 -1
- package/dist/chunks/config-qVg3Zz_A.js.map +0 -1
- package/dist/chunks/config-zjeAJ4ho.js.map +0 -1
- package/dist/chunks/context-BfIQv7m1.js.map +0 -1
- package/dist/chunks/en-DCCFP4qu.js.map +0 -1
- package/dist/chunks/es-CT34HBVM.js.map +0 -1
- package/dist/chunks/grPopoverStyles-Rz_Z5nLW.js.map +0 -1
- package/dist/chunks/granular-provider-CQKhl5C_.js.map +0 -1
- package/dist/chunks/ru-CLiAMwrx.js.map +0 -1
- package/dist/components/GrCard/chunks/GrCard-Bc7nRfbe.js.map +0 -1
- package/dist/components/GrCommandPalette/chunks/GrCommandPalette-BFcMf4Pn.js.map +0 -1
- package/dist/components/GrConfigProvider/chunks/GrConfigProvider-UP-EaoAf.js.map +0 -1
- package/dist/components/GrDataTable/chunks/GrDataTable-B5MmZFUg.js.map +0 -1
- package/dist/components/GrDelta/chunks/GrDelta-DFvxNpmN.js.map +0 -1
- package/dist/components/GrDescriptionList/chunks/GrDescriptionList-2zFXzX83.js.map +0 -1
- package/dist/components/GrDialogService/chunks/GrDialogService-CrwA4aJq.js.map +0 -1
- package/dist/components/GrDrawer/chunks/GrDrawer-C3zAg2tG.js.map +0 -1
- package/dist/components/GrDropdown/chunks/GrDropdown-BSfFOcDx.js.map +0 -1
- package/dist/components/GrDropdownMenu/chunks/GrDropdownMenu-DyS6dWDp.js.map +0 -1
- package/dist/components/GrFileUpload/chunks/GrFileUpload-D3-vC-ap.js.map +0 -1
- package/dist/components/GrFormField/chunks/GrFormField-kqfVY30N.js.map +0 -1
- package/dist/components/GrJsonViewer/chunks/GrJsonViewer-DFUppRNb.js.map +0 -1
- package/dist/components/GrList/chunks/GrList-BRYhpqIe.js.map +0 -1
- package/dist/components/GrLoading/chunks/GrLoading-C3DZSSuh.js.map +0 -1
- package/dist/components/GrModal/chunks/GrModal-CPz7SWD_.js.map +0 -1
- package/dist/components/GrPopover/chunks/GrPopover-b70bIlQ9.js.map +0 -1
- package/dist/components/GrSegmented/chunks/GrSegmented-D1mjxF_O.js.map +0 -1
- package/dist/components/GrSelect/chunks/GrSelect-CaGuyvtb.js.map +0 -1
- package/dist/components/GrStatistic/chunks/GrStatistic-C7wQECeS.js.map +0 -1
- package/dist/components/GrTimeline/chunks/GrTimeline-Ch9sHzwL.js.map +0 -1
- package/dist/chunks/{config-BfsBepkH2.js → config-BfsBepkH.js} +0 -0
- package/dist/chunks/{config-BoNR7_PD2.js → config-BoNR7_PD.js} +0 -0
- package/dist/chunks/{config-BuGlNPE9.js → config-BuGlNPE92.js} +0 -0
- package/dist/chunks/{config-DAX8Deh12.js → config-DAX8Deh1.js} +0 -0
- package/dist/chunks/{config-T3qdQBgU2.js → config-T3qdQBgU.js} +0 -0
- package/dist/chunks/{config-zjeAJ4ho.js → config-zjeAJ4ho2.js} +0 -0
- package/dist/chunks/{context-BfIQv7m1.js → context-BfIQv7m12.js} +0 -0
- package/dist/components/GrTree/chunks/{GrTree-BvOeQ3xJ.js → GrTree-J5q8aCya.js} +1 -1
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import type { GrComponentSize } from '../shared/sizes';
|
|
2
|
+
import type { GrStepStatus } from './stepsModel';
|
|
3
|
+
export type GrStepsSize = GrComponentSize;
|
|
4
|
+
export type GrStepsOrientation = 'horizontal' | 'vertical';
|
|
5
|
+
export type GrStepsVariant = 'steps' | 'compact';
|
|
6
|
+
export declare const stepsRootClass = "w-full min-w-0";
|
|
7
|
+
export declare const stepsListClass: Record<GrStepsOrientation, string>;
|
|
8
|
+
/**
|
|
9
|
+
* Пункт растёт по горизонтали и прижимается влево по вертикали.
|
|
10
|
+
*
|
|
11
|
+
* В горизонтальной ленте маркер стоит **над** подписью, а не слева от неё:
|
|
12
|
+
* соединитель идёт от маркера к маркеру на их высоте, и подпись сбоку он бы
|
|
13
|
+
* перечёркивал. В вертикальной колонке места по ширине хватает, там подпись
|
|
14
|
+
* справа, а линия спускается вниз.
|
|
15
|
+
*/
|
|
16
|
+
export declare const stepsItemClass: Record<GrStepsOrientation, string>;
|
|
17
|
+
/** Отступ снизу у вертикального пункта — место, по которому идёт соединитель. */
|
|
18
|
+
export declare const stepsItemConnectedClass: Record<GrStepsOrientation, string>;
|
|
19
|
+
/**
|
|
20
|
+
* Кегль и метрика маркера на ступени.
|
|
21
|
+
*
|
|
22
|
+
* Шкала контрольная (`--gr-control-text-*`): шаги стоят в шапке мастера рядом с
|
|
23
|
+
* кнопками «Назад»/«Далее», и подпись обязана совпасть с ними, а не с меткой.
|
|
24
|
+
* Диаметр маркера — покомпонентный токен, потому что ступени в общей шкале для
|
|
25
|
+
* него нет: это не кегль и не радиус, а собственная метрика компонента.
|
|
26
|
+
*/
|
|
27
|
+
export declare const stepsSizeClassBySize: Record<GrStepsSize, string>;
|
|
28
|
+
export declare const stepsTriggerClass = "min-w-0 bg-transparent focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--gr-ring)] focus-visible:ring-offset-2 focus-visible:ring-offset-[var(--gr-bg)] rounded-[var(--gr-radius-md)]";
|
|
29
|
+
export declare const stepsTriggerClassByOrientation: Record<GrStepsOrientation, string>;
|
|
30
|
+
/** Кликабельный шаг обязан выглядеть кликабельным — иначе о нём не догадаются. */
|
|
31
|
+
export declare const stepsTriggerEnabledClass = "cursor-pointer";
|
|
32
|
+
export declare const stepsMarkerClass = "inline-flex shrink-0 items-center justify-center rounded-[var(--gr-radius-full)] border font-600 leading-none h-[var(--gr-steps-marker-size)] w-[var(--gr-steps-marker-size)] text-[length:var(--gr-control-text-2xs)]";
|
|
33
|
+
/**
|
|
34
|
+
* Маркер по статусу.
|
|
35
|
+
*
|
|
36
|
+
* Пройденный — сплошная заливка, текущий — обводка тем же тоном, будущий —
|
|
37
|
+
* приглушённый. Различие идёт по светлоте, а не по оттенку: три соседних цвета
|
|
38
|
+
* одного тона на одной ленте не читаются, а сплошное/полое — читается и в
|
|
39
|
+
* монохроме. `error` — единственный, кто меняет тон, и меняет его осмысленно.
|
|
40
|
+
*/
|
|
41
|
+
export declare const stepsMarkerClassByStatus: Record<GrStepStatus, string>;
|
|
42
|
+
export declare const stepsLabelClass = "block min-w-0 font-600";
|
|
43
|
+
export declare const stepsLabelClassByStatus: Record<GrStepStatus, string>;
|
|
44
|
+
export declare const stepsDescriptionClass = "block mt-0.5 text-[length:var(--gr-control-text-xs)] text-[var(--gr-muted-fg)]";
|
|
45
|
+
/**
|
|
46
|
+
* Соединитель между шагами.
|
|
47
|
+
*
|
|
48
|
+
* Позиция считается от диаметра маркера, а не от жёсткой высоты: маркер растёт
|
|
49
|
+
* со ступенью размера, и линия обязана оставаться на его оси. По горизонтали
|
|
50
|
+
* пункты делят ширину поровну, поэтому маркер стоит ровно по центру пункта —
|
|
51
|
+
* отсюда `50%` слева и `-50%` справа: линия идёт от края одного маркера до
|
|
52
|
+
* края соседнего.
|
|
53
|
+
*/
|
|
54
|
+
export declare const stepsConnectorClass: Record<GrStepsOrientation, string>;
|
|
55
|
+
export declare const stepsConnectorDoneClass = "bg-[var(--gr-steps-connector-done,var(--gr-primary-solid))]";
|
|
56
|
+
export declare const stepsConnectorPendingClass = "bg-[var(--gr-steps-connector-pending,var(--gr-brd))]";
|
|
57
|
+
/** Компактный вариант: подпись и полоса вместо ленты. */
|
|
58
|
+
export declare const stepsCompactRowClass = "flex items-baseline justify-between gap-3";
|
|
59
|
+
export declare const stepsCompactCounterClass = "shrink-0 text-[length:var(--gr-control-text-xs)] text-[var(--gr-muted-fg)]";
|
|
60
|
+
export declare const stepsCompactLabelClass = "min-w-0 truncate font-600 text-[var(--gr-fg)]";
|
|
61
|
+
export declare const stepsCompactBarClass = "mt-2";
|
|
62
|
+
export declare function grStepsMarkerClass(status: GrStepStatus): string;
|
|
63
|
+
export declare function grStepsLabelClass(status: GrStepStatus): string;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ComponentExposed } from '../shared/instance';
|
|
2
|
+
import type GrStepsComponent from './GrSteps.vue';
|
|
3
|
+
export { default } from './GrSteps.vue';
|
|
4
|
+
export { default as GrSteps } from './GrSteps.vue';
|
|
5
|
+
export { grStepsConfig } from './config';
|
|
6
|
+
export type { GrStepsConfigurableProps } from './defaults';
|
|
7
|
+
export type { GrStepsOrientation, GrStepsSize, GrStepsVariant } from './grStepsStyles';
|
|
8
|
+
export { grStepsSafelist } from './safelist';
|
|
9
|
+
export type { GrStep, GrStepStatus } from './stepsModel';
|
|
10
|
+
export type { GrStepsEmits, GrStepsProps } from './GrSteps.vue';
|
|
11
|
+
export type GrStepsInstance = ComponentExposed<typeof GrStepsComponent>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const grStepsSafelist: string[];
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import type { Component } from 'vue';
|
|
2
|
+
/**
|
|
3
|
+
* Правила шагового мастера — чистая арифметика без Vue.
|
|
4
|
+
*
|
|
5
|
+
* Вынесено отдельным модулем и тестируется без монтирования: «можно ли уйти на
|
|
6
|
+
* шаг N» и «какого он статуса» — вся содержательная логика компонента, и
|
|
7
|
+
* проверять её через отрендеренный DOM было бы дороже и слабее (эталон —
|
|
8
|
+
* `GrForm/validation.ts`).
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* Состояние шага.
|
|
12
|
+
*
|
|
13
|
+
* `error` не выводится из позиции — его ставит приложение, когда шаг пройден,
|
|
14
|
+
* но не прошёл проверку. Без него мастер не умеет сказать «на втором шаге
|
|
15
|
+
* остались ошибки», ради чего гейт перехода и заводится.
|
|
16
|
+
*/
|
|
17
|
+
export type GrStepStatus = 'complete' | 'current' | 'upcoming' | 'error';
|
|
18
|
+
export type GrStep = {
|
|
19
|
+
value: string;
|
|
20
|
+
label: string;
|
|
21
|
+
/** Вторая строка под подписью: что от пользователя ждут на этом шаге. */
|
|
22
|
+
description?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Иконка вместо номера — декоративна. Vue-компонент либо класс иконки вашей
|
|
25
|
+
* UnoCSS-сборки (`i-lucide-*` требует вашего `presetIcons`).
|
|
26
|
+
*/
|
|
27
|
+
icon?: string | Component;
|
|
28
|
+
/** Явный статус. Не задан — выводится из позиции относительно текущего шага. */
|
|
29
|
+
status?: GrStepStatus;
|
|
30
|
+
disabled?: boolean;
|
|
31
|
+
};
|
|
32
|
+
export declare function stepIndexOf(steps: readonly GrStep[], value: string): number;
|
|
33
|
+
/**
|
|
34
|
+
* Статус шага: явный побеждает позиционный.
|
|
35
|
+
*
|
|
36
|
+
* Позиция даёт три состояния из четырёх, и только `error` приходит снаружи —
|
|
37
|
+
* вывести его неоткуда, ошибка живёт в форме, а не в порядке шагов.
|
|
38
|
+
*/
|
|
39
|
+
export declare function stepStatusAt(steps: readonly GrStep[], index: number, currentIndex: number): GrStepStatus;
|
|
40
|
+
/**
|
|
41
|
+
* Можно ли уйти на шаг по его индексу.
|
|
42
|
+
*
|
|
43
|
+
* `linear` ограничивает **только движение вперёд**, и не одним шагом, а первым
|
|
44
|
+
* непройденным: вернуться назад и снова прыгнуть на тот же шаг, до которого уже
|
|
45
|
+
* дошёл, — нормальный сценарий правки заполненного мастера. Запрещать его
|
|
46
|
+
* значило бы заставлять пользователя проходить всё заново ради одной опечатки.
|
|
47
|
+
*/
|
|
48
|
+
export declare function canEnterStep(options: {
|
|
49
|
+
steps: readonly GrStep[];
|
|
50
|
+
index: number;
|
|
51
|
+
currentIndex: number;
|
|
52
|
+
linear: boolean;
|
|
53
|
+
}): boolean;
|
|
54
|
+
/** Индекс следующего доступного шага, или `-1`, если дальше идти некуда. */
|
|
55
|
+
export declare function nextEnterableIndex(steps: readonly GrStep[], currentIndex: number): number;
|
|
56
|
+
/** Индекс предыдущего доступного шага, или `-1`. */
|
|
57
|
+
export declare function previousEnterableIndex(steps: readonly GrStep[], currentIndex: number): number;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Величина с приписками: префикс, значение, суффикс — и ничего больше.
|
|
3
|
+
*
|
|
4
|
+
* Примитив, на котором стоят `GrDelta` (величина со знаком и тоном) и
|
|
5
|
+
* `GrStatistic` (величина плиткой с подписью). Сам он не форматирует число, не
|
|
6
|
+
* знает про тон и не имеет своей шкалы размеров: значение приходит готовым, а
|
|
7
|
+
* кегль и цвет наследуются от места, где величина стоит.
|
|
8
|
+
*
|
|
9
|
+
* Чем является приписка — валютой, единицей измерения или пометкой — компонент
|
|
10
|
+
* не решает: оформление обеих задаётся токенами `--gr-value-*`.
|
|
11
|
+
*/
|
|
12
|
+
export interface GrValueProps {
|
|
13
|
+
/** Готовое к показу значение. Не форматируется: «2 ч 15 мин» и «—» тоже величины. */
|
|
14
|
+
value?: string | number | null;
|
|
15
|
+
/** Приписка перед значением: валюта, знак приближения. */
|
|
16
|
+
prefix?: string;
|
|
17
|
+
/** Приписка после значения: единица измерения, валюта справа. */
|
|
18
|
+
suffix?: string;
|
|
19
|
+
}
|
|
20
|
+
type __VLS_Slots = {
|
|
21
|
+
/** Значение вместо пропа. */
|
|
22
|
+
default?: () => unknown;
|
|
23
|
+
/** Приписка перед значением. */
|
|
24
|
+
prefix?: () => unknown;
|
|
25
|
+
/** Приписка после значения. */
|
|
26
|
+
suffix?: () => unknown;
|
|
27
|
+
/**
|
|
28
|
+
* Перед префиксом: знак величины у `GrDelta`, стрелка направления.
|
|
29
|
+
* Слотом, а не пропом, — разметка там принадлежит потребителю.
|
|
30
|
+
*/
|
|
31
|
+
lead?: () => unknown;
|
|
32
|
+
/** После значения: скрытый узел для диктора у `GrStatistic`. */
|
|
33
|
+
trail?: () => unknown;
|
|
34
|
+
};
|
|
35
|
+
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<GrValueProps>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<GrValueProps>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
36
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
37
|
+
declare const _default: typeof __VLS_export;
|
|
38
|
+
export default _default;
|
|
39
|
+
type __VLS_TypePropsToOption<T> = {
|
|
40
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
41
|
+
type: import('vue').PropType<Required<T>[K]>;
|
|
42
|
+
} : {
|
|
43
|
+
type: import('vue').PropType<T[K]>;
|
|
44
|
+
required: true;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
48
|
+
new (): {
|
|
49
|
+
$slots: S;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const grValueConfig: import("@feugene/unocss-preset-granular/contract").GranularComponentDescriptor<"GrValue">;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Классы `GrValue`.
|
|
3
|
+
*
|
|
4
|
+
* Оформление аффиксов задаётся токенами, а не решением компонента. Раньше это
|
|
5
|
+
* решение было зашито: префикс набирался как число, суффикс — как единица
|
|
6
|
+
* измерения. Для `$14,99` и `42 %` правило верное, но доменное: рубль пишут
|
|
7
|
+
* справа (`1 284 500 ₽`), и в роли суффикса он получал вид подписи.
|
|
8
|
+
*
|
|
9
|
+
* Дефолты сохраняют прежний вид, поэтому потребителю, которого он устраивал,
|
|
10
|
+
* менять нечего.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Величина набирается кеглем и цветом того места, где стоит: своей шкалы у
|
|
14
|
+
* примитива нет. `tabular-nums` держит ширину строки, когда число меняется.
|
|
15
|
+
*/
|
|
16
|
+
export declare const valueRootClass = "inline-flex items-baseline tabular-nums";
|
|
17
|
+
/**
|
|
18
|
+
* Префикс — часть записи величины: по умолчанию её цвет, её кегль, вплотную.
|
|
19
|
+
* `inherit` в фолбэке и делает «по умолчанию» наследованием, а не копией: тон
|
|
20
|
+
* задаётся один раз на родителе и доезжает сюда сам.
|
|
21
|
+
*/
|
|
22
|
+
export declare const valuePrefixClass: string;
|
|
23
|
+
/**
|
|
24
|
+
* Суффикс по умолчанию — единица измерения: приглушён, на ступень мельче и
|
|
25
|
+
* отбит от числа.
|
|
26
|
+
*
|
|
27
|
+
* `leading-none` обязателен вместе с уменьшенным кеглем: межстрочный
|
|
28
|
+
* наследуется от величины и рассчитан на её размер, а выровненная по базовой
|
|
29
|
+
* линии приписка со своим меньшим кеглем растягивала бы им всю строку.
|
|
30
|
+
*
|
|
31
|
+
* Логический `me`/`ms` вместо `mr`/`ml`: в RTL отбивка обязана встать с другой
|
|
32
|
+
* стороны, иначе суффикс прилипнет к числу.
|
|
33
|
+
*/
|
|
34
|
+
export declare const valueSuffixClass: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const grValueSafelist: string[];
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Полный текст обрезанной строки — нативной подсказкой по наведению.
|
|
3
|
+
*
|
|
4
|
+
* `truncate` прячет хвост **визуально**: в DOM и для скринридера подпись
|
|
5
|
+
* остаётся целой, поэтому теряет её ровно один читатель — тот, кто смотрит
|
|
6
|
+
* глазами. Он видит «Включе…» и узнать остальное не может ничем.
|
|
7
|
+
*
|
|
8
|
+
* Подсказка ставится **по факту обрезки**, а не всегда: тултип, дублирующий
|
|
9
|
+
* видимую целиком подпись, — шум, которого никто не просил. Замер делается на
|
|
10
|
+
* самом наведении, поэтому ни наблюдателей, ни подписок заводить не нужно.
|
|
11
|
+
*
|
|
12
|
+
* Ширина сравнивается с запасом в пиксель: браузеры считают `scrollWidth`
|
|
13
|
+
* округлением вверх, и у необрезанной строки он бывает на единицу больше
|
|
14
|
+
* `clientWidth` — без запаса подсказка появлялась бы на ровном месте.
|
|
15
|
+
*/
|
|
16
|
+
export declare function titleWhenTruncated(event: Event): void;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export interface UseMenuItemsFocusOptions {
|
|
2
|
+
/** Корень, внутри которого живут пункты. */
|
|
3
|
+
container: () => HTMLElement | null;
|
|
4
|
+
/** Закрыть меню — `Tab` уводит фокус наружу, панель при этом закрывается. */
|
|
5
|
+
close: () => void;
|
|
6
|
+
}
|
|
7
|
+
export interface UseMenuItemsFocusReturn {
|
|
8
|
+
/** Пункты в порядке документа. */
|
|
9
|
+
items: () => HTMLElement[];
|
|
10
|
+
/** Сфокусировать по индексу; отрицательный и превышающий заворачиваются. */
|
|
11
|
+
focusAt: (index: number) => void;
|
|
12
|
+
/** Стрелки, `Home`/`End`, `Tab`, typeahead. `true` — клавиша обработана. */
|
|
13
|
+
onKeydown: (event: KeyboardEvent) => boolean;
|
|
14
|
+
reset: () => void;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Клавиатура панели-меню: кольцо фокуса плюс поиск по первым буквам.
|
|
18
|
+
*
|
|
19
|
+
* Пункты ищутся в DOM, а не в модели, и это осознанно: у панели бывает
|
|
20
|
+
* произвольное содержимое из слота, в котором ключей нет вовсе. По той же
|
|
21
|
+
* причине здесь не `useRovingFocus` — он адресуется ключами и ведёт
|
|
22
|
+
* `tabindex="0"` на активном элементе, а пункты меню обязаны быть `-1`.
|
|
23
|
+
*/
|
|
24
|
+
export declare function useMenuItemsFocus(options: UseMenuItemsFocusOptions): UseMenuItemsFocusReturn;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Буфер живёт ровно столько: дальше набранное перестаёт быть одним словом.
|
|
3
|
+
* Значение из WAI-ARIA APG, оно же стояло во всех трёх прежних копиях.
|
|
4
|
+
*/
|
|
5
|
+
export declare const TYPEAHEAD_RESET_MS = 600;
|
|
6
|
+
export interface UseTypeaheadOptions<TItem> {
|
|
7
|
+
/** Кандидаты в порядке отображения. Опрашивается на каждый символ. */
|
|
8
|
+
items: () => readonly TItem[];
|
|
9
|
+
/** Текст кандидата. Нормализацию (`trim` + нижний регистр) делает композабл. */
|
|
10
|
+
textOf: (item: TItem, index: number) => string;
|
|
11
|
+
/** Откуда шагать. Получает уже разрешённый набор, чтобы не опрашивать его дважды. */
|
|
12
|
+
currentIndex: (items: readonly TItem[]) => number;
|
|
13
|
+
/** Совпадение найдено. Фокус, `activeIndex` — решает потребитель. */
|
|
14
|
+
onMatch: (item: TItem, index: number) => void;
|
|
15
|
+
resetMs?: number;
|
|
16
|
+
}
|
|
17
|
+
export interface UseTypeaheadReturn {
|
|
18
|
+
/** Обработать печатный символ. `true` — совпадение найдено. */
|
|
19
|
+
type: (char: string) => boolean;
|
|
20
|
+
/** Пуст ли буфер: правило «`Space` при пустом буфере активирует пункт». */
|
|
21
|
+
isEmpty: () => boolean;
|
|
22
|
+
reset: () => void;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Поиск по первым буквам в списке — паттерн `typeahead` из WAI-ARIA APG.
|
|
26
|
+
*
|
|
27
|
+
* Буфер намеренно не реактивный: на рендер он не влияет, а читается синхронно
|
|
28
|
+
* внутри обработчика `keydown`.
|
|
29
|
+
*/
|
|
30
|
+
export declare function useTypeahead<TItem>(options: UseTypeaheadOptions<TItem>): UseTypeaheadReturn;
|
|
@@ -1,6 +1,35 @@
|
|
|
1
1
|
import type { CSSProperties, Ref } from 'vue';
|
|
2
|
-
import type { Placement } from '@floating-ui/dom';
|
|
2
|
+
import type { Placement, VirtualElement } from '@floating-ui/dom';
|
|
3
3
|
export type UseFloatingPlacement = Placement;
|
|
4
|
+
/**
|
|
5
|
+
* Прямоугольник в координатах вьюпорта — якорь, которого нет в DOM.
|
|
6
|
+
*
|
|
7
|
+
* Точка курсора описывается прямоугольником `0×0`. Размеры необязательны именно
|
|
8
|
+
* поэтому: контекстное меню, открытое с клавиатуры, встаёт у **прямоугольника**
|
|
9
|
+
* сфокусированной строки, а не у её угла, и переворачивается вместе с ней.
|
|
10
|
+
*/
|
|
11
|
+
export interface GrFloatingAnchorRect {
|
|
12
|
+
x: number;
|
|
13
|
+
y: number;
|
|
14
|
+
/** По умолчанию 0. */
|
|
15
|
+
width?: number;
|
|
16
|
+
/** По умолчанию 0. */
|
|
17
|
+
height?: number;
|
|
18
|
+
}
|
|
19
|
+
/** Ссылка позиционирования: элемент, виртуальный якорь или ничего. */
|
|
20
|
+
export type UseFloatingReference = HTMLElement | VirtualElement | null;
|
|
21
|
+
/**
|
|
22
|
+
* Виртуальный якорь: объект создаётся один раз, координаты читает геттер на
|
|
23
|
+
* каждом измерении.
|
|
24
|
+
*
|
|
25
|
+
* Стабильность объекта здесь не стилистика, а условие работы: `useFloating`
|
|
26
|
+
* пересоздаёт подписку `autoUpdate` при смене самой ссылки, поэтому новый объект
|
|
27
|
+
* на каждое движение курсора рвал бы и заводил её заново. С одним объектом смена
|
|
28
|
+
* точки — это просто `update()`.
|
|
29
|
+
*/
|
|
30
|
+
export declare function createFloatingAnchor(get: () => GrFloatingAnchorRect | null | undefined, options?: {
|
|
31
|
+
contextElement?: () => Element | null | undefined;
|
|
32
|
+
}): VirtualElement;
|
|
4
33
|
export interface UseFloatingOptions {
|
|
5
34
|
/**
|
|
6
35
|
* Предпочитаемое место панели относительно триггера. По умолчанию `bottom-start`.
|
|
@@ -19,6 +48,8 @@ export interface UseFloatingOptions {
|
|
|
19
48
|
* - `'min'` — панель растёт по контенту (`width: max-content`), но не уже триггера
|
|
20
49
|
* (`min-width = ширина триггера`) — режим `GrSelect view="link"`;
|
|
21
50
|
* - функция-геттер — как и `placement`, для реактивной зависимости от пропа.
|
|
51
|
+
*
|
|
52
|
+
* С виртуальным якорем не работает: ширина точки равна нулю.
|
|
22
53
|
*/
|
|
23
54
|
matchWidth?: boolean | 'min' | (() => boolean | 'min');
|
|
24
55
|
/**
|
|
@@ -54,4 +85,4 @@ export interface UseFloatingReturn {
|
|
|
54
85
|
* `<teleport to="body">` + `v-show`, а не `v-if`): позиционирование не может измерить
|
|
55
86
|
* элемент, которого нет в дереве.
|
|
56
87
|
*/
|
|
57
|
-
export declare function useFloating(
|
|
88
|
+
export declare function useFloating(reference: Ref<HTMLElement | null> | (() => UseFloatingReference), floatingEl: Ref<HTMLElement | null>, open: Ref<boolean>, options?: UseFloatingOptions): UseFloatingReturn;
|
|
@@ -23,12 +23,15 @@ export declare const granularityComponentConfigs: {
|
|
|
23
23
|
GrCard: GranularComponentDescriptor<"GrCard">;
|
|
24
24
|
GrCheckbox: GranularComponentDescriptor<"GrCheckbox">;
|
|
25
25
|
GrCheckboxGroup: GranularComponentDescriptor<"GrCheckboxGroup">;
|
|
26
|
+
GrChip: GranularComponentDescriptor<"GrChip">;
|
|
27
|
+
GrChipGroup: GranularComponentDescriptor<"GrChipGroup">;
|
|
26
28
|
GrCodeBlock: GranularComponentDescriptor<"GrCodeBlock">;
|
|
27
29
|
GrCollapse: GranularComponentDescriptor<"GrCollapse">;
|
|
28
30
|
GrColorPicker: GranularComponentDescriptor<"GrColorPicker">;
|
|
29
31
|
GrCommandPalette: GranularComponentDescriptor<"GrCommandPalette">;
|
|
30
32
|
GrConfigProvider: GranularComponentDescriptor<"GrConfigProvider">;
|
|
31
33
|
GrConfirmDialog: GranularComponentDescriptor<"GrConfirmDialog">;
|
|
34
|
+
GrContextMenu: GranularComponentDescriptor<"GrContextMenu">;
|
|
32
35
|
GrDataTable: GranularComponentDescriptor<"GrDataTable">;
|
|
33
36
|
GrDelta: GranularComponentDescriptor<"GrDelta">;
|
|
34
37
|
GrDescriptionList: GranularComponentDescriptor<"GrDescriptionList">;
|
|
@@ -74,6 +77,7 @@ export declare const granularityComponentConfigs: {
|
|
|
74
77
|
GrSortableList: GranularComponentDescriptor<"GrSortableList">;
|
|
75
78
|
GrSplitter: GranularComponentDescriptor<"GrSplitter">;
|
|
76
79
|
GrStatistic: GranularComponentDescriptor<"GrStatistic">;
|
|
80
|
+
GrSteps: GranularComponentDescriptor<"GrSteps">;
|
|
77
81
|
GrSwitch: GranularComponentDescriptor<"GrSwitch">;
|
|
78
82
|
GrTable: GranularComponentDescriptor<"GrTable">;
|
|
79
83
|
GrTabPanels: GranularComponentDescriptor<"GrTabPanels">;
|
|
@@ -84,6 +88,7 @@ export declare const granularityComponentConfigs: {
|
|
|
84
88
|
GrTooltip: GranularComponentDescriptor<"GrTooltip">;
|
|
85
89
|
GrTree: GranularComponentDescriptor<"GrTree">;
|
|
86
90
|
GrTreeSelect: GranularComponentDescriptor<"GrTreeSelect">;
|
|
91
|
+
GrValue: GranularComponentDescriptor<"GrValue">;
|
|
87
92
|
};
|
|
88
93
|
export type GranularityComponentName = keyof typeof granularityComponentConfigs;
|
|
89
94
|
/**
|
|
@@ -9,6 +9,10 @@ export declare const en: {
|
|
|
9
9
|
en: {
|
|
10
10
|
gr: () => Promise<{
|
|
11
11
|
default: {
|
|
12
|
+
chip: {
|
|
13
|
+
remove: string;
|
|
14
|
+
removeNamed: string;
|
|
15
|
+
};
|
|
12
16
|
common: {
|
|
13
17
|
confirm: string;
|
|
14
18
|
cancel: string;
|
|
@@ -19,6 +23,12 @@ export declare const en: {
|
|
|
19
23
|
loading: {
|
|
20
24
|
defaultText: string;
|
|
21
25
|
};
|
|
26
|
+
steps: {
|
|
27
|
+
label: string;
|
|
28
|
+
status: string;
|
|
29
|
+
completed: string;
|
|
30
|
+
error: string;
|
|
31
|
+
};
|
|
22
32
|
treeSelect: {
|
|
23
33
|
filterPlaceholder: string;
|
|
24
34
|
empty: string;
|
|
@@ -355,6 +365,13 @@ export declare const en: {
|
|
|
355
365
|
copyFailed: string;
|
|
356
366
|
moreItems: string;
|
|
357
367
|
};
|
|
368
|
+
contextMenu: {
|
|
369
|
+
label: string;
|
|
370
|
+
};
|
|
371
|
+
};
|
|
372
|
+
chip: {
|
|
373
|
+
remove: string;
|
|
374
|
+
removeNamed: string;
|
|
358
375
|
};
|
|
359
376
|
common: {
|
|
360
377
|
confirm: string;
|
|
@@ -366,6 +383,12 @@ export declare const en: {
|
|
|
366
383
|
loading: {
|
|
367
384
|
defaultText: string;
|
|
368
385
|
};
|
|
386
|
+
steps: {
|
|
387
|
+
label: string;
|
|
388
|
+
status: string;
|
|
389
|
+
completed: string;
|
|
390
|
+
error: string;
|
|
391
|
+
};
|
|
369
392
|
treeSelect: {
|
|
370
393
|
filterPlaceholder: string;
|
|
371
394
|
empty: string;
|
|
@@ -702,6 +725,9 @@ export declare const en: {
|
|
|
702
725
|
copyFailed: string;
|
|
703
726
|
moreItems: string;
|
|
704
727
|
};
|
|
728
|
+
contextMenu: {
|
|
729
|
+
label: string;
|
|
730
|
+
};
|
|
705
731
|
}>;
|
|
706
732
|
};
|
|
707
733
|
};
|
|
@@ -2,6 +2,10 @@ export declare const es: {
|
|
|
2
2
|
es: {
|
|
3
3
|
gr: () => Promise<{
|
|
4
4
|
default: {
|
|
5
|
+
chip: {
|
|
6
|
+
remove: string;
|
|
7
|
+
removeNamed: string;
|
|
8
|
+
};
|
|
5
9
|
common: {
|
|
6
10
|
confirm: string;
|
|
7
11
|
cancel: string;
|
|
@@ -12,6 +16,12 @@ export declare const es: {
|
|
|
12
16
|
loading: {
|
|
13
17
|
defaultText: string;
|
|
14
18
|
};
|
|
19
|
+
steps: {
|
|
20
|
+
label: string;
|
|
21
|
+
status: string;
|
|
22
|
+
completed: string;
|
|
23
|
+
error: string;
|
|
24
|
+
};
|
|
15
25
|
treeSelect: {
|
|
16
26
|
filterPlaceholder: string;
|
|
17
27
|
empty: string;
|
|
@@ -350,6 +360,13 @@ export declare const es: {
|
|
|
350
360
|
copyFailed: string;
|
|
351
361
|
moreItems: string;
|
|
352
362
|
};
|
|
363
|
+
contextMenu: {
|
|
364
|
+
label: string;
|
|
365
|
+
};
|
|
366
|
+
};
|
|
367
|
+
chip: {
|
|
368
|
+
remove: string;
|
|
369
|
+
removeNamed: string;
|
|
353
370
|
};
|
|
354
371
|
common: {
|
|
355
372
|
confirm: string;
|
|
@@ -361,6 +378,12 @@ export declare const es: {
|
|
|
361
378
|
loading: {
|
|
362
379
|
defaultText: string;
|
|
363
380
|
};
|
|
381
|
+
steps: {
|
|
382
|
+
label: string;
|
|
383
|
+
status: string;
|
|
384
|
+
completed: string;
|
|
385
|
+
error: string;
|
|
386
|
+
};
|
|
364
387
|
treeSelect: {
|
|
365
388
|
filterPlaceholder: string;
|
|
366
389
|
empty: string;
|
|
@@ -699,6 +722,9 @@ export declare const es: {
|
|
|
699
722
|
copyFailed: string;
|
|
700
723
|
moreItems: string;
|
|
701
724
|
};
|
|
725
|
+
contextMenu: {
|
|
726
|
+
label: string;
|
|
727
|
+
};
|
|
702
728
|
}>;
|
|
703
729
|
};
|
|
704
730
|
};
|
|
@@ -2,6 +2,10 @@ export declare const ru: {
|
|
|
2
2
|
ru: {
|
|
3
3
|
gr: () => Promise<{
|
|
4
4
|
default: {
|
|
5
|
+
chip: {
|
|
6
|
+
remove: string;
|
|
7
|
+
removeNamed: string;
|
|
8
|
+
};
|
|
5
9
|
common: {
|
|
6
10
|
confirm: string;
|
|
7
11
|
cancel: string;
|
|
@@ -12,6 +16,12 @@ export declare const ru: {
|
|
|
12
16
|
loading: {
|
|
13
17
|
defaultText: string;
|
|
14
18
|
};
|
|
19
|
+
steps: {
|
|
20
|
+
label: string;
|
|
21
|
+
status: string;
|
|
22
|
+
completed: string;
|
|
23
|
+
error: string;
|
|
24
|
+
};
|
|
15
25
|
treeSelect: {
|
|
16
26
|
filterPlaceholder: string;
|
|
17
27
|
empty: string;
|
|
@@ -352,6 +362,13 @@ export declare const ru: {
|
|
|
352
362
|
copyFailed: string;
|
|
353
363
|
moreItems: string;
|
|
354
364
|
};
|
|
365
|
+
contextMenu: {
|
|
366
|
+
label: string;
|
|
367
|
+
};
|
|
368
|
+
};
|
|
369
|
+
chip: {
|
|
370
|
+
remove: string;
|
|
371
|
+
removeNamed: string;
|
|
355
372
|
};
|
|
356
373
|
common: {
|
|
357
374
|
confirm: string;
|
|
@@ -363,6 +380,12 @@ export declare const ru: {
|
|
|
363
380
|
loading: {
|
|
364
381
|
defaultText: string;
|
|
365
382
|
};
|
|
383
|
+
steps: {
|
|
384
|
+
label: string;
|
|
385
|
+
status: string;
|
|
386
|
+
completed: string;
|
|
387
|
+
error: string;
|
|
388
|
+
};
|
|
366
389
|
treeSelect: {
|
|
367
390
|
filterPlaceholder: string;
|
|
368
391
|
empty: string;
|
|
@@ -703,6 +726,9 @@ export declare const ru: {
|
|
|
703
726
|
copyFailed: string;
|
|
704
727
|
moreItems: string;
|
|
705
728
|
};
|
|
729
|
+
contextMenu: {
|
|
730
|
+
label: string;
|
|
731
|
+
};
|
|
706
732
|
}>;
|
|
707
733
|
};
|
|
708
734
|
};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -10,12 +10,15 @@ export * from './components/GrButtonGroup';
|
|
|
10
10
|
export * from './components/GrCard';
|
|
11
11
|
export * from './components/GrCheckbox';
|
|
12
12
|
export * from './components/GrCheckboxGroup';
|
|
13
|
+
export * from './components/GrChip';
|
|
14
|
+
export * from './components/GrChipGroup';
|
|
13
15
|
export * from './components/GrCodeBlock';
|
|
14
16
|
export * from './components/GrCollapse';
|
|
15
17
|
export * from './components/GrColorPicker';
|
|
16
18
|
export * from './components/GrCommandPalette';
|
|
17
19
|
export * from './components/GrConfigProvider';
|
|
18
20
|
export * from './components/GrConfirmDialog';
|
|
21
|
+
export * from './components/GrContextMenu';
|
|
19
22
|
export * from './components/GrDataTable';
|
|
20
23
|
export * from './components/GrDelta';
|
|
21
24
|
export * from './components/GrDescriptionList';
|
|
@@ -61,6 +64,7 @@ export * from './components/GrSlider';
|
|
|
61
64
|
export * from './components/GrSortableList';
|
|
62
65
|
export * from './components/GrSplitter';
|
|
63
66
|
export * from './components/GrStatistic';
|
|
67
|
+
export * from './components/GrSteps';
|
|
64
68
|
export * from './components/GrSwitch';
|
|
65
69
|
export * from './components/GrTable';
|
|
66
70
|
export * from './components/GrTabPanels';
|
|
@@ -71,6 +75,7 @@ export * from './components/GrToaster';
|
|
|
71
75
|
export * from './components/GrTooltip';
|
|
72
76
|
export * from './components/GrTree';
|
|
73
77
|
export * from './components/GrTreeSelect';
|
|
78
|
+
export * from './components/GrValue';
|
|
74
79
|
export { useDismissible } from './composables/useDismissible';
|
|
75
80
|
export type { UseDismissibleOptions } from './composables/useDismissible';
|
|
76
81
|
export { useFocusTrap } from './composables/useFocusTrap';
|
|
@@ -104,5 +109,6 @@ export { GRANULARITY_TOAST_STATE, granularityToastPlugin, useToast } from './com
|
|
|
104
109
|
export type { GranularityToastPluginOptions, GrToastTone, Toast, ToastInput, ToastPromiseMessages, ToastState, } from './composables/useToast';
|
|
105
110
|
export { GR_TONES } from './components/shared/tones';
|
|
106
111
|
export type { GrTone } from './components/shared/tones';
|
|
112
|
+
export { titleWhenTruncated } from './components/shared/truncationTitle';
|
|
107
113
|
export type * from './fileValidation/types';
|
|
108
114
|
export * from './directives';
|