@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,157 @@
|
|
|
1
|
+
import type { GrDropdownMenuAction, GrDropdownMenuEntry } from '../GrDropdownMenu/menuModel';
|
|
2
|
+
import type { GrFloatingAnchorRect, UseFloatingPlacement } from '../../composables/useFloating';
|
|
3
|
+
/** Чем открывается меню. `manual` — только императивно, из кода потребителя. */
|
|
4
|
+
export type GrContextMenuTrigger = 'contextmenu' | 'manual';
|
|
5
|
+
/** Откуда пришло открытие: указатель, клавиатура или вызов из кода. */
|
|
6
|
+
export type GrContextMenuSource = 'pointer' | 'keyboard' | 'api';
|
|
7
|
+
export interface GrContextMenuOpenContext {
|
|
8
|
+
source: GrContextMenuSource;
|
|
9
|
+
/** По чему кликнули или что было в фокусе — отсюда потребитель берёт строку. */
|
|
10
|
+
target: HTMLElement | null;
|
|
11
|
+
anchor: GrFloatingAnchorRect;
|
|
12
|
+
event: MouseEvent | KeyboardEvent | null;
|
|
13
|
+
}
|
|
14
|
+
export interface GrContextMenuProps {
|
|
15
|
+
/** Декларативное меню. Слот `#content` сильнее. */
|
|
16
|
+
items?: GrDropdownMenuEntry[];
|
|
17
|
+
/** Открыто ли меню. Без пропа компонент ведёт состояние сам. */
|
|
18
|
+
open?: boolean;
|
|
19
|
+
trigger?: GrContextMenuTrigger;
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
placement?: UseFloatingPlacement;
|
|
22
|
+
/** Зазор от якоря. Ноль по умолчанию: меню липнет к курсору. */
|
|
23
|
+
offsetPx?: number;
|
|
24
|
+
/** Меню из коротких слов не должно быть шириной в слово. */
|
|
25
|
+
minWidth?: number | string;
|
|
26
|
+
ariaLabel?: string;
|
|
27
|
+
labelledBy?: string;
|
|
28
|
+
teleportTo?: string | HTMLElement;
|
|
29
|
+
contentClass?: string;
|
|
30
|
+
listClass?: string;
|
|
31
|
+
dividers?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Закрывать при прокрутке страницы. Якорь — точка вьюпорта, и панель осталась
|
|
34
|
+
* бы висеть на экране, пока контент под ней уезжает. Так же ведут себя
|
|
35
|
+
* нативные меню.
|
|
36
|
+
*/
|
|
37
|
+
closeOnScroll?: boolean;
|
|
38
|
+
/** Пропускать `Shift`+правый клик к браузеру. */
|
|
39
|
+
allowNativeMenu?: boolean;
|
|
40
|
+
}
|
|
41
|
+
export interface GrContextMenuEmits {
|
|
42
|
+
(e: 'update:open', value: boolean): void;
|
|
43
|
+
/**
|
|
44
|
+
* Меню собирается открыться у этой цели. Приходит **до** открытия, чтобы
|
|
45
|
+
* потребитель успел пересобрать `items` под неё: пункты для папки и для файла
|
|
46
|
+
* разные, а узнать цель иначе неоткуда. Пустая модель после этого просто не
|
|
47
|
+
* откроется — отдельный способ отменить открытие не нужен.
|
|
48
|
+
*/
|
|
49
|
+
(e: 'beforeOpen', context: GrContextMenuOpenContext): void;
|
|
50
|
+
(e: 'select', item: GrDropdownMenuAction): void;
|
|
51
|
+
}
|
|
52
|
+
/** Открыть у точки курсора или у произвольного прямоугольника вьюпорта. */
|
|
53
|
+
declare function openAt(at: MouseEvent | GrFloatingAnchorRect): void;
|
|
54
|
+
/** Открыть у прямоугольника элемента — клавиатурный путь для внешних композитов. */
|
|
55
|
+
declare function openAtElement(element: Element): void;
|
|
56
|
+
declare function open(): void;
|
|
57
|
+
declare function close(): void;
|
|
58
|
+
declare function toggle(): void;
|
|
59
|
+
declare var __VLS_1: {
|
|
60
|
+
open: boolean;
|
|
61
|
+
}, __VLS_22: {
|
|
62
|
+
close: () => void;
|
|
63
|
+
};
|
|
64
|
+
type __VLS_Slots = {} & {
|
|
65
|
+
default?: (props: typeof __VLS_1) => any;
|
|
66
|
+
} & {
|
|
67
|
+
content?: (props: typeof __VLS_22) => any;
|
|
68
|
+
};
|
|
69
|
+
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<GrContextMenuProps>, {
|
|
70
|
+
items: undefined;
|
|
71
|
+
open: undefined;
|
|
72
|
+
trigger: string;
|
|
73
|
+
disabled: boolean;
|
|
74
|
+
placement: string;
|
|
75
|
+
offsetPx: number;
|
|
76
|
+
minWidth: string;
|
|
77
|
+
ariaLabel: undefined;
|
|
78
|
+
labelledBy: undefined;
|
|
79
|
+
teleportTo: undefined;
|
|
80
|
+
contentClass: undefined;
|
|
81
|
+
listClass: undefined;
|
|
82
|
+
dividers: boolean;
|
|
83
|
+
closeOnScroll: boolean;
|
|
84
|
+
allowNativeMenu: boolean;
|
|
85
|
+
}>>, {
|
|
86
|
+
openAt: typeof openAt;
|
|
87
|
+
openAtElement: typeof openAtElement;
|
|
88
|
+
open: typeof open;
|
|
89
|
+
close: typeof close;
|
|
90
|
+
toggle: typeof toggle;
|
|
91
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
92
|
+
"update:open": (value: boolean) => void;
|
|
93
|
+
beforeOpen: (context: GrContextMenuOpenContext) => void;
|
|
94
|
+
select: (item: GrDropdownMenuAction) => void;
|
|
95
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<GrContextMenuProps>, {
|
|
96
|
+
items: undefined;
|
|
97
|
+
open: undefined;
|
|
98
|
+
trigger: string;
|
|
99
|
+
disabled: boolean;
|
|
100
|
+
placement: string;
|
|
101
|
+
offsetPx: number;
|
|
102
|
+
minWidth: string;
|
|
103
|
+
ariaLabel: undefined;
|
|
104
|
+
labelledBy: undefined;
|
|
105
|
+
teleportTo: undefined;
|
|
106
|
+
contentClass: undefined;
|
|
107
|
+
listClass: undefined;
|
|
108
|
+
dividers: boolean;
|
|
109
|
+
closeOnScroll: boolean;
|
|
110
|
+
allowNativeMenu: boolean;
|
|
111
|
+
}>>> & Readonly<{
|
|
112
|
+
onSelect?: ((item: GrDropdownMenuAction) => any) | undefined;
|
|
113
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
114
|
+
onBeforeOpen?: ((context: GrContextMenuOpenContext) => any) | undefined;
|
|
115
|
+
}>, {
|
|
116
|
+
minWidth: number | string;
|
|
117
|
+
placement: UseFloatingPlacement;
|
|
118
|
+
open: boolean;
|
|
119
|
+
disabled: boolean;
|
|
120
|
+
ariaLabel: string;
|
|
121
|
+
items: GrDropdownMenuEntry[];
|
|
122
|
+
labelledBy: string;
|
|
123
|
+
offsetPx: number;
|
|
124
|
+
trigger: GrContextMenuTrigger;
|
|
125
|
+
teleportTo: string | HTMLElement;
|
|
126
|
+
contentClass: string;
|
|
127
|
+
dividers: boolean;
|
|
128
|
+
listClass: string;
|
|
129
|
+
closeOnScroll: boolean;
|
|
130
|
+
allowNativeMenu: boolean;
|
|
131
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
132
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
133
|
+
declare const _default: typeof __VLS_export;
|
|
134
|
+
export default _default;
|
|
135
|
+
type __VLS_TypePropsToOption<T> = {
|
|
136
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
137
|
+
type: import('vue').PropType<Required<T>[K]>;
|
|
138
|
+
} : {
|
|
139
|
+
type: import('vue').PropType<T[K]>;
|
|
140
|
+
required: true;
|
|
141
|
+
};
|
|
142
|
+
};
|
|
143
|
+
type __VLS_WithDefaults<P, D> = {
|
|
144
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
145
|
+
default: D[K];
|
|
146
|
+
}> : P[K];
|
|
147
|
+
};
|
|
148
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
149
|
+
new (): {
|
|
150
|
+
$slots: S;
|
|
151
|
+
};
|
|
152
|
+
};
|
|
153
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
154
|
+
[K in keyof T]: T[K];
|
|
155
|
+
} : {
|
|
156
|
+
[K in keyof T as K]: T[K];
|
|
157
|
+
}) & {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const grContextMenuConfig: import("@feugene/unocss-preset-granular/contract").GranularComponentDescriptor<"GrContextMenu">;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { GrFloatingAnchorRect } from '../../composables/useFloating';
|
|
2
|
+
/** Точка курсора — якорь нулевого размера. */
|
|
3
|
+
export declare function anchorFromPointer(event: MouseEvent): GrFloatingAnchorRect;
|
|
4
|
+
/**
|
|
5
|
+
* Прямоугольник элемента — якорь клавиатурного вызова.
|
|
6
|
+
*
|
|
7
|
+
* Не угол и не точка: меню, вызванное с клавиатуры, принадлежит **строке**, и
|
|
8
|
+
* при нехватке места снизу обязано перевернуться относительно неё целиком.
|
|
9
|
+
*/
|
|
10
|
+
export declare function anchorFromElement(element: Element): GrFloatingAnchorRect;
|
|
11
|
+
/**
|
|
12
|
+
* `contextmenu` пришёл с клавиатуры, а не от мыши.
|
|
13
|
+
*
|
|
14
|
+
* Браузеры порождают это событие и для `Shift+F10`, но координаты в нём
|
|
15
|
+
* бесполезны: то угол элемента, то нули. Признаков два сразу, потому что по
|
|
16
|
+
* отдельности каждый ошибается — правый клик всегда `button === 2`, а
|
|
17
|
+
* клавиатурный вызов всегда без «числа кликов».
|
|
18
|
+
*/
|
|
19
|
+
export declare function isKeyboardContextMenu(event: MouseEvent): boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Пользователь просит нативное меню браузера.
|
|
22
|
+
*
|
|
23
|
+
* `Shift`+правый клик — де-факто escape-hatch, в Firefox задокументированный.
|
|
24
|
+
* `ctrlKey` сюда не входит намеренно: на macOS Ctrl+клик **и есть** правый
|
|
25
|
+
* клик, и меню перестало бы открываться у части пользователей.
|
|
26
|
+
*/
|
|
27
|
+
export declare function wantsNativeMenu(event: MouseEvent): boolean;
|
|
28
|
+
/** Клавиатурный запрос контекстного меню: `Shift+F10` или клавиша `ContextMenu`. */
|
|
29
|
+
export declare function isContextMenuKey(event: KeyboardEvent): boolean;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ComponentExposed } from '../shared/instance';
|
|
2
|
+
import type GrContextMenuComponent from './GrContextMenu.vue';
|
|
3
|
+
export { default } from './GrContextMenu.vue';
|
|
4
|
+
export { default as GrContextMenu } from './GrContextMenu.vue';
|
|
5
|
+
export type { GrContextMenuEmits, GrContextMenuOpenContext, GrContextMenuProps, GrContextMenuSource, GrContextMenuTrigger, } from './GrContextMenu.vue';
|
|
6
|
+
export { grContextMenuConfig } from './config';
|
|
7
|
+
export type GrContextMenuInstance = ComponentExposed<typeof GrContextMenuComponent>;
|
|
@@ -178,13 +178,13 @@ export interface GrDataTableEmits<TRow extends Record<string, unknown> = Record<
|
|
|
178
178
|
}
|
|
179
179
|
declare const __VLS_export: <TRow extends Record<string, unknown> = Record<string, unknown>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
180
180
|
props: import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & __VLS_PrettifyLocal<GrDataTableProps<TRow> & {
|
|
181
|
+
"onUpdate:selected"?: ((value: (string | number)[]) => any) | undefined;
|
|
181
182
|
"onUpdate:sortKey"?: ((value: string) => any) | undefined;
|
|
182
183
|
"onUpdate:sortDir"?: ((value: GrDataTableSortDir) => any) | undefined;
|
|
183
184
|
onSortChange?: ((value: {
|
|
184
185
|
key: string;
|
|
185
186
|
dir: GrDataTableSortDir;
|
|
186
187
|
}) => any) | undefined;
|
|
187
|
-
"onUpdate:selected"?: ((value: (string | number)[]) => any) | undefined;
|
|
188
188
|
onRowClick?: ((payload: {
|
|
189
189
|
row: TRow;
|
|
190
190
|
index: number;
|
|
@@ -14,8 +14,20 @@ import type { GrDeltaTone } from './deltaTone';
|
|
|
14
14
|
* читается как опечатка. Отбивку получают только стрелка и суффикс.
|
|
15
15
|
*/
|
|
16
16
|
export declare const deltaRootClass = "inline-flex items-baseline tabular-nums";
|
|
17
|
+
/**
|
|
18
|
+
* Величина стоит **в строке текста**, и приписка при ней приглушения не
|
|
19
|
+
* получает: «−15 %» набирается кеглем и цветом строки целиком, иначе процент
|
|
20
|
+
* оказывается мельче окружающих слов.
|
|
21
|
+
*
|
|
22
|
+
* Дефолт `GrValue` рассчитан на плитку, где величина крупная и приписке есть
|
|
23
|
+
* куда уменьшаться. Здесь он переопределяется — ровно теми же токенами, что
|
|
24
|
+
* доступны потребителю.
|
|
25
|
+
*
|
|
26
|
+
* `currentColor` и `1em`, а не `inherit`: у пользовательского свойства
|
|
27
|
+
* `inherit` значит «наследовать саму переменную», то есть ничего.
|
|
28
|
+
*/
|
|
29
|
+
export declare const deltaValueStyle: Record<string, string>;
|
|
17
30
|
/** Суффикс — единица измерения, и от числа он отбивается: «−15 %», «120 мс». */
|
|
18
|
-
export declare const deltaSuffixClass = "ml-1";
|
|
19
31
|
/**
|
|
20
32
|
* Стрелка выравнивается по строке, а не по базовой линии: у svg её нет.
|
|
21
33
|
*
|
|
@@ -18,7 +18,35 @@ export declare const descriptionRootClass = "m-0 gap-x-4 [row-gap:var(--gr-descr
|
|
|
18
18
|
/** Сетка колонок — раскладки `inline` и `stacked`. */
|
|
19
19
|
export declare const descriptionRootGridClass = "grid";
|
|
20
20
|
export declare const descriptionRootFlowClass = "flex flex-wrap items-baseline";
|
|
21
|
-
|
|
21
|
+
/** Одна колонка — обычный класс: считать там нечего. */
|
|
22
|
+
export declare const descriptionSingleColumnClass = "grid-cols-1";
|
|
23
|
+
/**
|
|
24
|
+
* Колонки по ширине **контейнера**, а не вьюпорта.
|
|
25
|
+
*
|
|
26
|
+
* Медиазапрос меряет экран, а список живёт в карточке: на широком мониторе в
|
|
27
|
+
* колонке 290px включались две колонки, подпись фиксированной ширины съедала
|
|
28
|
+
* почти всё место, и значение переносилось посимвольно — «30» печаталось как
|
|
29
|
+
* «3» и «0» на двух строках. Показанное число становилось неверным.
|
|
30
|
+
*
|
|
31
|
+
* `auto-fit` решает это без медиазапросов, без JS и без замеров, то есть
|
|
32
|
+
* одинаково на сервере и на клиенте. `columns` при этом становится **потолком**:
|
|
33
|
+
* трек не уже `column-min`, но и не уже доли, на которую делится контейнер при
|
|
34
|
+
* N колонках, — поэтому шире N штук не встанет никогда.
|
|
35
|
+
*
|
|
36
|
+
* `min(100%, …)` спасает совсем узкий контейнер: без него трек шириной с
|
|
37
|
+
* `column-min` вылезал бы за край.
|
|
38
|
+
*
|
|
39
|
+
* Инлайновым стилем, а не классом: выражение зависит от N, и шкалы утилит для
|
|
40
|
+
* него не существует — тот же довод, что записан у сетки `GrDashboard`.
|
|
41
|
+
*/
|
|
42
|
+
export declare function descriptionColumnsStyle(columns: GrDescriptionColumns,
|
|
43
|
+
/**
|
|
44
|
+
* Ширина колонки подписей при `inline`. В этой раскладке подпись и значение
|
|
45
|
+
* стоят **рядом**, поэтому минимум колонки складывается из них двоих: колонка
|
|
46
|
+
* шириной с одну подпись оставляет значению несколько пикселей, и оно
|
|
47
|
+
* переносится посимвольно — тот же дефект, только в других числах.
|
|
48
|
+
*/
|
|
49
|
+
labelWidth?: string): Record<string, string>;
|
|
22
50
|
export declare const descriptionPairInlineClass = "flex min-w-0 items-baseline gap-2";
|
|
23
51
|
export declare const descriptionPairStackedClass = "min-w-0";
|
|
24
52
|
export declare const descriptionPairFlowClass = "flex min-w-0 items-baseline gap-1";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { GrDropdownTrigger } from '../GrDropdown/GrDropdown.vue';
|
|
2
2
|
import type { GrDropdownWidth } from '../GrDropdown/grDropdownStyles';
|
|
3
3
|
import type { UseFloatingPlacement } from '../../composables/useFloating';
|
|
4
|
-
import {
|
|
4
|
+
import type { GrDropdownMenuAction, GrDropdownMenuEntry } from './menuModel';
|
|
5
5
|
export interface GrDropdownMenuProps {
|
|
6
6
|
/** Размещение панели относительно триггера; переворот при нехватке места остаётся. */
|
|
7
7
|
placement?: UseFloatingPlacement;
|
|
@@ -122,10 +122,10 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
122
122
|
closeOnContentClick: boolean;
|
|
123
123
|
teleportTo: string | HTMLElement;
|
|
124
124
|
contentClass: string;
|
|
125
|
-
openDelay: number;
|
|
126
|
-
closeDelay: number;
|
|
127
125
|
dividers: boolean;
|
|
128
126
|
listClass: string;
|
|
127
|
+
openDelay: number;
|
|
128
|
+
closeDelay: number;
|
|
129
129
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
130
130
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
131
131
|
declare const _default: typeof __VLS_export;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { GrDropdownMenuAction, GrDropdownMenuEntry } from './menuModel';
|
|
2
|
+
export interface GrDropdownMenuEntriesProps {
|
|
3
|
+
items?: GrDropdownMenuEntry[];
|
|
4
|
+
}
|
|
5
|
+
export interface GrDropdownMenuEntriesEmits {
|
|
6
|
+
(e: 'select', item: GrDropdownMenuAction): void;
|
|
7
|
+
}
|
|
8
|
+
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<GrDropdownMenuEntriesProps>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
|
+
select: (item: GrDropdownMenuAction) => void;
|
|
10
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<GrDropdownMenuEntriesProps>>> & Readonly<{
|
|
11
|
+
onSelect?: ((item: GrDropdownMenuAction) => any) | undefined;
|
|
12
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
13
|
+
declare const _default: typeof __VLS_export;
|
|
14
|
+
export default _default;
|
|
15
|
+
type __VLS_TypePropsToOption<T> = {
|
|
16
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
17
|
+
type: import('vue').PropType<Required<T>[K]>;
|
|
18
|
+
} : {
|
|
19
|
+
type: import('vue').PropType<T[K]>;
|
|
20
|
+
required: true;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -70,12 +70,12 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
70
70
|
tileSize: GrSizeWithPx;
|
|
71
71
|
ratio: GrFilePreviewRatio;
|
|
72
72
|
loading: "lazy" | "eager";
|
|
73
|
+
clickable: boolean;
|
|
73
74
|
name: string | null;
|
|
74
75
|
href: string;
|
|
75
76
|
ariaLabel: string;
|
|
76
77
|
src: string | null;
|
|
77
78
|
as: string | Component;
|
|
78
|
-
clickable: boolean;
|
|
79
79
|
mime: string | null;
|
|
80
80
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
81
81
|
declare const _default: typeof __VLS_export;
|
|
@@ -55,12 +55,12 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
55
55
|
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
56
56
|
}>, {
|
|
57
57
|
density: GrListItemDensity;
|
|
58
|
+
clickable: boolean;
|
|
58
59
|
title: string;
|
|
59
60
|
description: string;
|
|
60
61
|
href: string;
|
|
61
62
|
disabled: boolean;
|
|
62
63
|
as: string | Component;
|
|
63
|
-
clickable: boolean;
|
|
64
64
|
hoverable: boolean;
|
|
65
65
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
66
66
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type UseFloatingPlacement } from '../../composables/useFloating';
|
|
2
|
-
import { type GrPopoverRole, type GrPopoverSize } from './grPopoverStyles';
|
|
1
|
+
import { type GrFloatingAnchorRect, type UseFloatingPlacement } from '../../composables/useFloating';
|
|
2
|
+
import { type GrPopoverPadding, type GrPopoverRole, type GrPopoverSize } from './grPopoverStyles';
|
|
3
3
|
export interface GrPopoverProps {
|
|
4
4
|
/**
|
|
5
5
|
* Открыт ли поповер. Без этого пропа компонент ведёт состояние сам
|
|
@@ -48,6 +48,19 @@ export interface GrPopoverProps {
|
|
|
48
48
|
teleportTo?: string | HTMLElement;
|
|
49
49
|
contentClass?: string;
|
|
50
50
|
disabled?: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Якорь-прямоугольник в координатах вьюпорта вместо обёртки слота `#trigger`:
|
|
53
|
+
* панель встаёт у точки курсора или у строки списка. Нужен контекстному меню,
|
|
54
|
+
* у которого триггера-элемента нет вовсе.
|
|
55
|
+
*
|
|
56
|
+
* `triggerProps` в этом режиме некому потребить, и своих ARIA-атрибутов
|
|
57
|
+
* поповер никуда не вешает: `aria-haspopup` невалиден вне интерактивного
|
|
58
|
+
* элемента, а `aria-expanded` без хозяина — шум. Связь с содержимым страницы
|
|
59
|
+
* объявляет тот, кто открывает.
|
|
60
|
+
*/
|
|
61
|
+
anchor?: GrFloatingAnchorRect | null;
|
|
62
|
+
/** Поле панели. `none` — содержимое рисует своё (меню, список опций). */
|
|
63
|
+
padding?: GrPopoverPadding;
|
|
51
64
|
}
|
|
52
65
|
export interface GrPopoverEmits {
|
|
53
66
|
(e: 'update:open', value: boolean): void;
|
|
@@ -90,6 +103,8 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
90
103
|
teleportTo: undefined;
|
|
91
104
|
contentClass: undefined;
|
|
92
105
|
disabled: boolean;
|
|
106
|
+
anchor: undefined;
|
|
107
|
+
padding: string;
|
|
93
108
|
}>>, {
|
|
94
109
|
open: typeof open;
|
|
95
110
|
close: typeof close;
|
|
@@ -113,10 +128,14 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
113
128
|
teleportTo: undefined;
|
|
114
129
|
contentClass: undefined;
|
|
115
130
|
disabled: boolean;
|
|
131
|
+
anchor: undefined;
|
|
132
|
+
padding: string;
|
|
116
133
|
}>>> & Readonly<{
|
|
117
134
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
118
135
|
}>, {
|
|
119
136
|
size: GrPopoverSize;
|
|
137
|
+
padding: GrPopoverPadding;
|
|
138
|
+
anchor: GrFloatingAnchorRect | null;
|
|
120
139
|
role: GrPopoverRole;
|
|
121
140
|
modal: boolean;
|
|
122
141
|
placement: UseFloatingPlacement;
|
|
@@ -10,6 +10,8 @@ export type GrPopoverSize = GrComponentSize;
|
|
|
10
10
|
* потому что клавиатурный паттерн принадлежит ему, а не поповеру.
|
|
11
11
|
*/
|
|
12
12
|
export type GrPopoverRole = 'dialog' | 'menu' | 'listbox' | 'grid' | 'group' | 'none';
|
|
13
|
+
/** Поле панели. `none` — поле рисует содержимое (меню, список опций). */
|
|
14
|
+
export type GrPopoverPadding = 'default' | 'none';
|
|
13
15
|
export declare const panelSizes: Record<GrPopoverSize, string>;
|
|
14
16
|
/**
|
|
15
17
|
* `transform-origin` для scale-анимации: координаты панели уже посчитал
|
|
@@ -24,5 +26,13 @@ export declare function grPopoverOriginClass(placement: Placement): string;
|
|
|
24
26
|
* Поверхность панели. `max-w-[min(...)]` не даёт поповеру вылезти за узкий
|
|
25
27
|
* экран: `useFloating` смещает панель в пределах viewport, но не сужает её.
|
|
26
28
|
*/
|
|
29
|
+
/**
|
|
30
|
+
* Кегль без поля.
|
|
31
|
+
*
|
|
32
|
+
* Отдельная мапа, а не `contentClass="p-0"`: поле и кегль приезжают одной
|
|
33
|
+
* строкой равной специфичности, и кто победит — решал бы порядок правил в
|
|
34
|
+
* сгенерированном CSS. Меню внутри поповера с `p-3` — визуально не меню.
|
|
35
|
+
*/
|
|
36
|
+
export declare const panelSizesFlush: Record<GrPopoverSize, string>;
|
|
27
37
|
export declare const popoverPanelBaseClass = "rounded-[var(--gr-radius-xl)] border border-[var(--gr-brd)] bg-[var(--gr-popover)] text-[var(--gr-popover-fg)] shadow-[var(--gr-shadow-2)] max-w-[min(22rem,calc(100vw-1rem))] focus:outline-none";
|
|
28
|
-
export declare function grPopoverPanelClass(size: GrPopoverSize, placement: Placement, extra?: string): string;
|
|
38
|
+
export declare function grPopoverPanelClass(size: GrPopoverSize, placement: Placement, extra?: string, padding?: GrPopoverPadding): string;
|
|
@@ -5,7 +5,7 @@ export { default as GrPopover } from './GrPopover.vue';
|
|
|
5
5
|
export type { GrPopoverProps } from './GrPopover.vue';
|
|
6
6
|
export { grPopoverConfig } from './config';
|
|
7
7
|
export type { GrPopoverConfigurableProps } from './defaults';
|
|
8
|
-
export type { GrPopoverRole, GrPopoverSize } from './grPopoverStyles';
|
|
8
|
+
export type { GrPopoverPadding, GrPopoverRole, GrPopoverSize } from './grPopoverStyles';
|
|
9
9
|
export { grPopoverSafelist } from './safelist';
|
|
10
10
|
export type { GrPopoverEmits } from './GrPopover.vue';
|
|
11
11
|
export type GrPopoverInstance = ComponentExposed<typeof GrPopoverComponent>;
|
|
@@ -71,19 +71,19 @@ export interface GrStatisticProps {
|
|
|
71
71
|
export interface GrStatisticEmits {
|
|
72
72
|
(e: 'click', event: MouseEvent): void;
|
|
73
73
|
}
|
|
74
|
-
declare var __VLS_10: {}, __VLS_23: {},
|
|
74
|
+
declare var __VLS_10: {}, __VLS_23: {}, __VLS_49: {}, __VLS_51: {}, __VLS_55: {}, __VLS_57: {};
|
|
75
75
|
type __VLS_Slots = {} & {
|
|
76
76
|
icon?: (props: typeof __VLS_10) => any;
|
|
77
77
|
} & {
|
|
78
78
|
title?: (props: typeof __VLS_23) => any;
|
|
79
79
|
} & {
|
|
80
|
-
prefix?: (props: typeof
|
|
80
|
+
prefix?: (props: typeof __VLS_49) => any;
|
|
81
81
|
} & {
|
|
82
|
-
default?: (props: typeof
|
|
82
|
+
default?: (props: typeof __VLS_51) => any;
|
|
83
83
|
} & {
|
|
84
|
-
suffix?: (props: typeof
|
|
84
|
+
suffix?: (props: typeof __VLS_55) => any;
|
|
85
85
|
} & {
|
|
86
|
-
trend?: (props: typeof
|
|
86
|
+
trend?: (props: typeof __VLS_57) => any;
|
|
87
87
|
};
|
|
88
88
|
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<GrStatisticProps>, {
|
|
89
89
|
title: undefined;
|
|
@@ -134,6 +134,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
134
134
|
size: GrStatisticSize;
|
|
135
135
|
polarity: GrDeltaPolarity;
|
|
136
136
|
loading: boolean;
|
|
137
|
+
clickable: boolean;
|
|
137
138
|
title: string;
|
|
138
139
|
icon: string | Component;
|
|
139
140
|
animate: boolean;
|
|
@@ -141,7 +142,6 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
141
142
|
prefix: string;
|
|
142
143
|
suffix: string;
|
|
143
144
|
as: string | Component;
|
|
144
|
-
clickable: boolean;
|
|
145
145
|
locale: string;
|
|
146
146
|
precision: number;
|
|
147
147
|
decimalSeparator: string;
|
|
@@ -13,6 +13,15 @@ export type GrStatisticTrend = 'up' | 'down' | 'flat';
|
|
|
13
13
|
export declare const statisticTitleSizeBySize: Record<GrStatisticSize, string>;
|
|
14
14
|
export declare const statisticValueSizeBySize: Record<GrStatisticSize, string>;
|
|
15
15
|
export declare const statisticAffixSizeBySize: Record<GrStatisticSize, string>;
|
|
16
|
+
/**
|
|
17
|
+
* Кегль приписки — значением токена, а не классом: он уезжает в
|
|
18
|
+
* `--gr-value-suffix-size`, которым `GrValue` и набирает суффикс.
|
|
19
|
+
*
|
|
20
|
+
* Ступень шкалы, а не доля от величины: у плитки шкала размеров своя, и на
|
|
21
|
+
* ступени `md` число крупное (`--gr-text-3xl`), а приписка при нём обязана
|
|
22
|
+
* остаться подписью. Доля дала бы её вровень с числом.
|
|
23
|
+
*/
|
|
24
|
+
export declare const statisticAffixSizeVarBySize: Record<GrStatisticSize, string>;
|
|
16
25
|
export declare const statisticPlaceholderHeightBySize: Record<GrStatisticSize, string>;
|
|
17
26
|
export declare const statisticTrendSizeBySize: Record<GrStatisticSize, string>;
|
|
18
27
|
export declare const statisticValueClassByTone: Record<GrStatisticTone, string>;
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import type { GrStepsOrientation, GrStepsSize, GrStepsVariant } from './grStepsStyles';
|
|
2
|
+
import type { GrStep, GrStepStatus } from './stepsModel';
|
|
3
|
+
/**
|
|
4
|
+
* Индикатор шагов многошагового мастера.
|
|
5
|
+
*
|
|
6
|
+
* По семантике это **навигация**, а не составной виджет выбора: `<nav>` со
|
|
7
|
+
* списком, где пройденный шаг — кнопка со своей остановкой `Tab`, текущий —
|
|
8
|
+
* `aria-current="step"`, будущий — вне таб-порядка. Той же формы держатся
|
|
9
|
+
* `GrBreadcrumbs` и `GrBottomNav`; `role="tab"` здесь неприменим — tablist без
|
|
10
|
+
* `tabpanel` это сломанный паттерн, а панель шага никакой роли не несёт.
|
|
11
|
+
*
|
|
12
|
+
* Контент шага компонент не рисует: его ставит потребитель обычным `v-if`.
|
|
13
|
+
*/
|
|
14
|
+
export interface GrStepsProps {
|
|
15
|
+
modelValue: string;
|
|
16
|
+
steps: GrStep[];
|
|
17
|
+
orientation?: GrStepsOrientation;
|
|
18
|
+
size?: GrStepsSize;
|
|
19
|
+
/** Компактный вид для узкой колонки: подпись текущего шага и полоса прогресса. */
|
|
20
|
+
variant?: GrStepsVariant;
|
|
21
|
+
/**
|
|
22
|
+
* Вперёд — не дальше первого непройденного. Назад свободно всегда: вернуться
|
|
23
|
+
* и поправить заполненное — обычный сценарий, а не обход правила.
|
|
24
|
+
*/
|
|
25
|
+
linear?: boolean;
|
|
26
|
+
/** Переход кликом по шагу. Выключен — лента становится только индикатором. */
|
|
27
|
+
clickable?: boolean;
|
|
28
|
+
ariaLabel?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Гейт перехода. Вернул `false` — перехода нет.
|
|
31
|
+
*
|
|
32
|
+
* Сюда потребитель кладёт валидацию шага: `GrSteps` про `GrForm` ничего не
|
|
33
|
+
* знает и знать не должен, а форма уже отдаёт `validate()`/`validateField()`.
|
|
34
|
+
*/
|
|
35
|
+
beforeLeave?: (from: string, to: string) => boolean | Promise<boolean>;
|
|
36
|
+
}
|
|
37
|
+
export interface GrStepsEmits {
|
|
38
|
+
(e: 'update:modelValue', value: string): void;
|
|
39
|
+
(e: 'change', value: string): void;
|
|
40
|
+
}
|
|
41
|
+
type __VLS_Slots = {
|
|
42
|
+
/**
|
|
43
|
+
* Своя разметка пункта. Корневой тег, `aria-current` и клик остаются за
|
|
44
|
+
* компонентом — иначе доступность шага пришлось бы собирать заново.
|
|
45
|
+
*/
|
|
46
|
+
step?: (props: {
|
|
47
|
+
step: GrStep;
|
|
48
|
+
index: number;
|
|
49
|
+
status: GrStepStatus;
|
|
50
|
+
enterable: boolean;
|
|
51
|
+
}) => unknown;
|
|
52
|
+
};
|
|
53
|
+
declare function next(): Promise<boolean>;
|
|
54
|
+
declare function back(): Promise<boolean>;
|
|
55
|
+
declare function goTo(value: string): Promise<boolean>;
|
|
56
|
+
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<GrStepsProps>, {
|
|
57
|
+
orientation: undefined;
|
|
58
|
+
size: undefined;
|
|
59
|
+
variant: undefined;
|
|
60
|
+
linear: undefined;
|
|
61
|
+
clickable: undefined;
|
|
62
|
+
ariaLabel: undefined;
|
|
63
|
+
beforeLeave: undefined;
|
|
64
|
+
}>>, {
|
|
65
|
+
next: typeof next;
|
|
66
|
+
back: typeof back;
|
|
67
|
+
goTo: typeof goTo;
|
|
68
|
+
isFirst: import("vue").ComputedRef<boolean>;
|
|
69
|
+
isLast: import("vue").ComputedRef<boolean>;
|
|
70
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
71
|
+
"update:modelValue": (value: string) => void;
|
|
72
|
+
change: (value: string) => void;
|
|
73
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<GrStepsProps>, {
|
|
74
|
+
orientation: undefined;
|
|
75
|
+
size: undefined;
|
|
76
|
+
variant: undefined;
|
|
77
|
+
linear: undefined;
|
|
78
|
+
clickable: undefined;
|
|
79
|
+
ariaLabel: undefined;
|
|
80
|
+
beforeLeave: undefined;
|
|
81
|
+
}>>> & Readonly<{
|
|
82
|
+
onChange?: ((value: string) => any) | undefined;
|
|
83
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
84
|
+
}>, {
|
|
85
|
+
variant: GrStepsVariant;
|
|
86
|
+
size: GrStepsSize;
|
|
87
|
+
orientation: GrStepsOrientation;
|
|
88
|
+
linear: boolean;
|
|
89
|
+
clickable: boolean;
|
|
90
|
+
ariaLabel: string;
|
|
91
|
+
beforeLeave: (from: string, to: string) => boolean | Promise<boolean>;
|
|
92
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
93
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
94
|
+
declare const _default: typeof __VLS_export;
|
|
95
|
+
export default _default;
|
|
96
|
+
type __VLS_TypePropsToOption<T> = {
|
|
97
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
98
|
+
type: import('vue').PropType<Required<T>[K]>;
|
|
99
|
+
} : {
|
|
100
|
+
type: import('vue').PropType<T[K]>;
|
|
101
|
+
required: true;
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
type __VLS_WithDefaults<P, D> = {
|
|
105
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
106
|
+
default: D[K];
|
|
107
|
+
}> : P[K];
|
|
108
|
+
};
|
|
109
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
110
|
+
new (): {
|
|
111
|
+
$slots: S;
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
115
|
+
[K in keyof T]: T[K];
|
|
116
|
+
} : {
|
|
117
|
+
[K in keyof T as K]: T[K];
|
|
118
|
+
}) & {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const grStepsConfig: import("@feugene/unocss-preset-granular/contract").GranularComponentDescriptor<"GrSteps">;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { GrStepsOrientation, GrStepsSize, GrStepsVariant } from './grStepsStyles';
|
|
2
|
+
/**
|
|
3
|
+
* Пропы `GrSteps`, настраиваемые глобально через `componentDefaults`.
|
|
4
|
+
* Оформление и правило перехода — то, что приложение задаёт один раз на все
|
|
5
|
+
* мастера; текущий шаг относится к экземпляру и сюда не входит.
|
|
6
|
+
*/
|
|
7
|
+
export interface GrStepsConfigurableProps {
|
|
8
|
+
size: GrStepsSize;
|
|
9
|
+
orientation: GrStepsOrientation;
|
|
10
|
+
variant: GrStepsVariant;
|
|
11
|
+
linear: boolean;
|
|
12
|
+
clickable: boolean;
|
|
13
|
+
}
|
|
14
|
+
declare module '../../composables/useGrComponentConfig' {
|
|
15
|
+
interface GrComponentDefaultsRegistry {
|
|
16
|
+
GrSteps: GrStepsConfigurableProps;
|
|
17
|
+
}
|
|
18
|
+
}
|