@feugene/granularity 0.16.0 → 0.18.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-Zc_bUvZY2.js → config-BDfTXHo12.js} +1 -1
- package/dist/chunks/{config-Zc_bUvZY2.js.map → config-BDfTXHo12.js.map} +1 -1
- package/dist/chunks/config-BE6n20np2.js.map +1 -0
- package/dist/chunks/{config-CpwwkFBO.js → config-Baj7Wvx-.js} +1 -1
- package/dist/chunks/{config-CpwwkFBO.js.map → config-Baj7Wvx-.js.map} +1 -1
- package/dist/chunks/config-BoNR7_PD2.js.map +1 -0
- package/dist/chunks/{config-DxCTVBfx.js → config-BsPDQ0dS.js} +2 -2
- package/dist/chunks/config-BsPDQ0dS.js.map +1 -0
- package/dist/chunks/config-CN2ULSQL.js.map +1 -0
- package/dist/chunks/{config-Cw6TDzWv2.js → config-COpuWGr_.js} +1 -1
- package/dist/chunks/config-COpuWGr_.js.map +1 -0
- package/dist/chunks/config-D2aNP7Es.js +70 -0
- package/dist/chunks/config-D2aNP7Es.js.map +1 -0
- package/dist/chunks/config-D94Z9po5.js.map +1 -0
- package/dist/chunks/{config-B-g6lT19.js → config-DA6SnEoy.js} +5 -2
- package/dist/chunks/config-DA6SnEoy.js.map +1 -0
- package/dist/chunks/config-DCFvmHEv2.js.map +1 -0
- package/dist/chunks/config-DEvsMTQE.js +150 -0
- package/dist/chunks/config-DEvsMTQE.js.map +1 -0
- package/dist/chunks/{config-CvC0sX8p.js → config-MRvhUl-O.js} +1 -1
- package/dist/chunks/{config-CvC0sX8p.js.map → config-MRvhUl-O.js.map} +1 -1
- package/dist/chunks/config-ScuvHw6k2.js +42 -0
- package/dist/chunks/config-ScuvHw6k2.js.map +1 -0
- package/dist/chunks/config-T3qdQBgU2.js.map +1 -0
- package/dist/chunks/config-eXB87DOi.js.map +1 -0
- package/dist/chunks/{config-D8tSR2uS.js → config-gvq_hWNM.js} +1 -1
- package/dist/chunks/{config-D8tSR2uS.js.map → config-gvq_hWNM.js.map} +1 -1
- package/dist/chunks/context-BSYR7RZs.js.map +1 -1
- package/dist/chunks/{en-B3xMeswz.js → en-COdzxgAX.js} +30 -5
- package/dist/chunks/en-COdzxgAX.js.map +1 -0
- package/dist/chunks/{es-CA-mkU--.js → es-ClqJ-4hr.js} +30 -5
- package/dist/chunks/es-ClqJ-4hr.js.map +1 -0
- package/dist/chunks/{es-Bv8vvqdT.js → es-DGMHwknJ.js} +3 -3
- package/dist/chunks/{es-Bv8vvqdT.js.map → es-DGMHwknJ.js.map} +1 -1
- package/dist/chunks/grKbdStyles-CeZhGQHr.js +43 -0
- package/dist/chunks/grKbdStyles-CeZhGQHr.js.map +1 -0
- package/dist/chunks/{grTextareaStyles-CWI2SqC8.js → grTextareaStyles-iOcHuVMM.js} +2 -2
- package/dist/chunks/{grTextareaStyles-CWI2SqC8.js.map → grTextareaStyles-iOcHuVMM.js.map} +1 -1
- package/dist/chunks/{granular-provider-CtrXGa7c.js → granular-provider-B9nXQCMu.js} +18 -16
- package/dist/chunks/granular-provider-B9nXQCMu.js.map +1 -0
- package/dist/chunks/{keyboard-zYvvyHd4.js → keyboard-DE2yhz_b.js} +10 -1
- package/dist/chunks/keyboard-DE2yhz_b.js.map +1 -0
- package/dist/chunks/{optionFilter-BVY988pC.js → optionFilter-DYw9XPPx.js} +1 -71
- package/dist/chunks/optionFilter-DYw9XPPx.js.map +1 -0
- package/dist/chunks/{useOverlayLayer-BupuP_hs.js → overlayStack-C8cfsqXa.js} +11 -61
- package/dist/chunks/overlayStack-C8cfsqXa.js.map +1 -0
- package/dist/chunks/{ru-COWxgh2A.js → ru-9z8ix45c.js} +30 -5
- package/dist/chunks/ru-9z8ix45c.js.map +1 -0
- package/dist/chunks/useDragSort-0l47h4yb.js +265 -0
- package/dist/chunks/useDragSort-0l47h4yb.js.map +1 -0
- package/dist/chunks/{useModalOverlay-DCM4d3yA.js → useModalOverlay-BTq-0ImG.js} +1 -1
- package/dist/chunks/{useModalOverlay-DCM4d3yA.js.map → useModalOverlay-BTq-0ImG.js.map} +1 -1
- package/dist/components/GrAutocomplete/chunks/{GrAutocomplete-CQ9T7Lly.js → GrAutocomplete-CPEQxmLZ.js} +4 -3
- package/dist/components/GrAutocomplete/chunks/GrAutocomplete-CPEQxmLZ.js.map +1 -0
- package/dist/components/GrAutocomplete/index.js +1 -1
- package/dist/components/GrAutocomplete/styles.css +1 -1
- package/dist/components/GrColorPicker/chunks/{GrColorPicker-bnYBRGk8.js → GrColorPicker-DAdQ-Gc3.js} +4 -4
- package/dist/components/GrColorPicker/chunks/{GrColorPicker-bnYBRGk8.js.map → GrColorPicker-DAdQ-Gc3.js.map} +1 -1
- package/dist/components/GrColorPicker/index.js +2 -2
- package/dist/components/GrCommandPalette/chunks/{GrCommandPalette-MWDYDPNC.js → GrCommandPalette-DMeSqkEv.js} +6 -7
- package/dist/components/GrCommandPalette/chunks/GrCommandPalette-DMeSqkEv.js.map +1 -0
- package/dist/components/GrCommandPalette/index.js +1 -1
- package/dist/components/GrCommandPalette/styles.css +1 -1
- package/dist/components/GrConfigProvider/index.js +2 -2
- package/dist/components/GrConfirmDialog/chunks/{GrConfirmDialog-DaQmlp1_.js → GrConfirmDialog-hUTi-GdJ.js} +1 -1
- package/dist/components/GrConfirmDialog/chunks/{GrConfirmDialog-DaQmlp1_.js.map → GrConfirmDialog-hUTi-GdJ.js.map} +1 -1
- package/dist/components/GrConfirmDialog/index.js +1 -1
- package/dist/components/GrDataTable/chunks/{GrDataTable-DVFho9Cj.js → GrDataTable-DzaGLG3A.js} +495 -47
- package/dist/components/GrDataTable/chunks/GrDataTable-DzaGLG3A.js.map +1 -0
- package/dist/components/GrDataTable/index.js +2 -2
- package/dist/components/GrDialog/chunks/{GrDialog-AE1gIZuz.js → GrDialog-MD9Fzy9C.js} +1 -1
- package/dist/components/GrDialog/chunks/{GrDialog-AE1gIZuz.js.map → GrDialog-MD9Fzy9C.js.map} +1 -1
- package/dist/components/GrDialog/index.js +1 -1
- package/dist/components/GrDialogService/chunks/{GrDialogService-B4DYWDkA.js → GrDialogService-DtgUijMj.js} +2 -2
- package/dist/components/GrDialogService/chunks/{GrDialogService-B4DYWDkA.js.map → GrDialogService-DtgUijMj.js.map} +1 -1
- package/dist/components/GrDialogService/index.js +1 -1
- package/dist/components/GrDrawer/chunks/{GrDrawer-DQwi6aRw.js → GrDrawer-DWHdZZzW.js} +2 -2
- package/dist/components/GrDrawer/chunks/{GrDrawer-DQwi6aRw.js.map → GrDrawer-DWHdZZzW.js.map} +1 -1
- package/dist/components/GrDrawer/index.js +2 -2
- package/dist/components/GrDropdown/chunks/{GrDropdown-BLng6V1m.js → GrDropdown-0tJK01Kq.js} +2 -2
- package/dist/components/GrDropdown/chunks/{GrDropdown-BLng6V1m.js.map → GrDropdown-0tJK01Kq.js.map} +1 -1
- package/dist/components/GrDropdown/index.js +1 -1
- package/dist/components/GrDropdownMenu/chunks/{GrDropdownMenu-BImk2Vs7.js → GrDropdownMenu-VPPrpCoA.js} +1 -1
- package/dist/components/GrDropdownMenu/chunks/{GrDropdownMenu-BImk2Vs7.js.map → GrDropdownMenu-VPPrpCoA.js.map} +1 -1
- package/dist/components/GrDropdownMenu/index.js +1 -1
- package/dist/components/GrFileUpload/chunks/{GrFileUpload-D0B-BEsd.js → GrFileUpload-DuDzC43S.js} +2 -2
- package/dist/components/GrFileUpload/chunks/{GrFileUpload-D0B-BEsd.js.map → GrFileUpload-DuDzC43S.js.map} +1 -1
- package/dist/components/GrFileUpload/index.js +1 -1
- package/dist/components/GrImageViewer/chunks/{GrImageViewer-BeCnE8XQ.js → GrImageViewer-DE7MBbF8.js} +46 -22
- package/dist/components/GrImageViewer/chunks/GrImageViewer-DE7MBbF8.js.map +1 -0
- package/dist/components/GrImageViewer/index.js +1 -1
- package/dist/components/GrInput/chunks/{GrInput-DD2gYdqS.js → GrInput-2wd7Crs0.js} +1 -1
- package/dist/components/GrInput/chunks/GrInput-2wd7Crs0.js.map +1 -0
- package/dist/components/GrInput/index.js +1 -1
- package/dist/components/GrInputTag/chunks/{GrInputTag-DmNunixz.js → GrInputTag-CyV2eY7Z.js} +20 -33
- package/dist/components/GrInputTag/chunks/GrInputTag-CyV2eY7Z.js.map +1 -0
- package/dist/components/GrInputTag/index.js +1 -1
- package/dist/components/GrKbd/chunks/{GrKbd-DRFPvW3G.js → GrKbd-DU2lBkRV.js} +218 -52
- package/dist/components/GrKbd/chunks/GrKbd-DU2lBkRV.js.map +1 -0
- package/dist/components/GrKbd/index.js +3 -3
- package/dist/components/GrModal/chunks/{GrModal-B8I78T0N.js → GrModal-BbhcsDQ8.js} +1 -1
- package/dist/components/GrModal/chunks/{GrModal-B8I78T0N.js.map → GrModal-BbhcsDQ8.js.map} +1 -1
- package/dist/components/GrModal/index.js +1 -1
- package/dist/components/GrPagination/chunks/{GrPagination-B6N0QZBf.js → GrPagination-waKhxBP7.js} +4 -4
- package/dist/components/GrPagination/chunks/GrPagination-waKhxBP7.js.map +1 -0
- package/dist/components/GrPagination/index.js +1 -1
- package/dist/components/GrPopover/chunks/{GrPopover-B1eRCOoO.js → GrPopover-DuqeoFaI.js} +1 -1
- package/dist/components/GrPopover/chunks/{GrPopover-B1eRCOoO.js.map → GrPopover-DuqeoFaI.js.map} +1 -1
- package/dist/components/GrPopover/index.js +1 -1
- package/dist/components/GrProgressBar/chunks/{GrProgressBar-BiHnaitu.js → GrProgressBar-xwbNM9QB.js} +1 -1
- package/dist/components/GrProgressBar/chunks/GrProgressBar-xwbNM9QB.js.map +1 -0
- package/dist/components/GrProgressBar/index.js +1 -1
- package/dist/components/GrProgressCircle/chunks/{GrProgressCircle-CTogjcHz.js → GrProgressCircle-B8olXRo5.js} +1 -1
- package/dist/components/GrProgressCircle/chunks/{GrProgressCircle-CTogjcHz.js.map → GrProgressCircle-B8olXRo5.js.map} +1 -1
- package/dist/components/GrProgressCircle/index.js +2 -2
- package/dist/components/GrPromptDialog/chunks/{GrPromptDialog-Ct174NVD.js → GrPromptDialog-JVVqBsPY.js} +3 -3
- package/dist/components/GrPromptDialog/chunks/{GrPromptDialog-Ct174NVD.js.map → GrPromptDialog-JVVqBsPY.js.map} +1 -1
- package/dist/components/GrPromptDialog/index.js +1 -1
- package/dist/components/GrRadio/chunks/{GrRadio-DksDro_U.js → GrRadio-DWiRaMzt.js} +8 -32
- package/dist/components/GrRadio/chunks/GrRadio-DWiRaMzt.js.map +1 -0
- package/dist/components/GrRadio/index.js +1 -1
- package/dist/components/GrRadioGroup/chunks/{GrRadioGroup-BOIhejE6.js → GrRadioGroup-DIuBw0wk.js} +34 -27
- package/dist/components/GrRadioGroup/chunks/GrRadioGroup-DIuBw0wk.js.map +1 -0
- package/dist/components/GrRadioGroup/index.js +1 -1
- package/dist/components/GrRating/chunks/{GrRating-JrHXz0Rv.js → GrRating-LarIiwJL.js} +2 -2
- package/dist/components/GrRating/chunks/GrRating-LarIiwJL.js.map +1 -0
- package/dist/components/GrRating/index.js +2 -2
- package/dist/components/GrSegmented/chunks/{GrSegmented-BQIlH5KI.js → GrSegmented-CQw3ijqa.js} +47 -65
- package/dist/components/GrSegmented/chunks/GrSegmented-CQw3ijqa.js.map +1 -0
- package/dist/components/GrSegmented/index.js +1 -1
- package/dist/components/GrSelect/chunks/{GrSelect-aqkPCqjd.js → GrSelect-DAdu044K.js} +4 -3
- package/dist/components/GrSelect/chunks/GrSelect-DAdu044K.js.map +1 -0
- package/dist/components/GrSelect/index.js +1 -1
- package/dist/components/GrSlider/chunks/{GrSlider-DkU9IQSX.js → GrSlider-CyhVsNKn.js} +21 -34
- package/dist/components/GrSlider/chunks/GrSlider-CyhVsNKn.js.map +1 -0
- package/dist/components/GrSlider/index.js +2 -2
- package/dist/components/GrSortableList/chunks/GrSortableList-BefVfWKh.js +276 -0
- package/dist/components/GrSortableList/chunks/GrSortableList-BefVfWKh.js.map +1 -0
- package/dist/components/GrSortableList/index.js +3 -0
- package/dist/components/GrSplitter/chunks/{GrSplitter-7To8jbJ8.js → GrSplitter-BzxVQwbY.js} +17 -37
- package/dist/components/GrSplitter/chunks/GrSplitter-BzxVQwbY.js.map +1 -0
- package/dist/components/GrSplitter/index.js +2 -2
- package/dist/components/GrStatistic/chunks/{GrStatistic-CttyoYPT.js → GrStatistic-J4qLs3TH.js} +1 -1
- package/dist/components/GrStatistic/chunks/{GrStatistic-CttyoYPT.js.map → GrStatistic-J4qLs3TH.js.map} +1 -1
- package/dist/components/GrStatistic/index.js +2 -2
- package/dist/components/GrSwitch/chunks/{GrSwitch-B9TYbiih.js → GrSwitch-DpyvVrZG.js} +1 -1
- package/dist/components/GrSwitch/chunks/{GrSwitch-B9TYbiih.js.map → GrSwitch-DpyvVrZG.js.map} +1 -1
- package/dist/components/GrSwitch/index.js +2 -2
- package/dist/components/GrTabPanels/index.js +1 -1
- package/dist/components/GrTable/chunks/{GrTable-BB-mI_NM.js → GrTable-BfqgwETQ.js} +7 -1
- package/dist/components/GrTable/chunks/GrTable-BfqgwETQ.js.map +1 -0
- package/dist/components/GrTable/index.js +1 -1
- package/dist/components/GrTabs/chunks/{GrTabs-B8CDq2D9.js → GrTabs-TeXaU5Uh.js} +50 -61
- package/dist/components/GrTabs/chunks/GrTabs-TeXaU5Uh.js.map +1 -0
- package/dist/components/GrTabs/index.js +1 -1
- package/dist/components/GrTextarea/chunks/{GrTextarea-DUh5Tlo4.js → GrTextarea-DSvd1nSy.js} +1 -1
- package/dist/components/GrTextarea/chunks/{GrTextarea-DUh5Tlo4.js.map → GrTextarea-DSvd1nSy.js.map} +1 -1
- package/dist/components/GrTextarea/index.js +2 -2
- package/dist/components/GrTimeline/chunks/{GrTimeline-CE9b3s18.js → GrTimeline-B-h2Yanw.js} +1 -1
- package/dist/components/GrTimeline/chunks/{GrTimeline-CE9b3s18.js.map → GrTimeline-B-h2Yanw.js.map} +1 -1
- package/dist/components/GrTimeline/index.js +2 -2
- package/dist/components/GrToaster/chunks/{GrToaster-BKQy3Srm.js → GrToaster-Ct-39hga.js} +113 -12
- package/dist/components/GrToaster/chunks/GrToaster-Ct-39hga.js.map +1 -0
- package/dist/components/GrToaster/index.js +2 -2
- package/dist/components/GrToaster/styles.css +1 -1
- package/dist/components/GrTooltip/chunks/{GrTooltip-DEbejfhA.js → GrTooltip-xAcqs0bP.js} +1 -1
- package/dist/components/GrTooltip/chunks/{GrTooltip-DEbejfhA.js.map → GrTooltip-xAcqs0bP.js.map} +1 -1
- package/dist/components/GrTooltip/index.js +2 -2
- package/dist/components/GrTree/chunks/{GrTree-wfdbvygw.js → GrTree-CaYK8dGZ.js} +124 -92
- package/dist/components/GrTree/chunks/GrTree-CaYK8dGZ.js.map +1 -0
- package/dist/components/GrTree/index.js +1 -1
- package/dist/components/GrTree/styles.css +1 -1
- package/dist/components/GrTreeSelect/chunks/{GrTreeSelect-lLWmAMtI.js → GrTreeSelect-DZp7CqqW.js} +4 -4
- package/dist/components/GrTreeSelect/chunks/{GrTreeSelect-lLWmAMtI.js.map → GrTreeSelect-DZp7CqqW.js.map} +1 -1
- package/dist/components/GrTreeSelect/index.js +2 -2
- package/dist/composables/useComboboxNavigation.js +71 -0
- package/dist/composables/useComboboxNavigation.js.map +1 -0
- package/dist/composables/useDismissible.js +1 -1
- package/dist/composables/useDragGesture.js +55 -0
- package/dist/composables/useDragGesture.js.map +1 -0
- package/dist/composables/useDragSort.js +2 -0
- package/dist/composables/useFloating.js +22 -1
- package/dist/composables/useFloating.js.map +1 -1
- package/dist/composables/useGrComponentConfig.js +2 -0
- package/dist/composables/useGranularityTranslations.js +2 -0
- package/dist/composables/useOverlayLayer.js +64 -1
- package/dist/composables/useOverlayLayer.js.map +1 -0
- package/dist/composables/useRovingFocus.js +150 -0
- package/dist/composables/useRovingFocus.js.map +1 -0
- package/dist/directives/hotkey.js +13 -7
- package/dist/directives/hotkey.js.map +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 +67 -58
- package/dist/tokens.js +84 -0
- package/dist/tokens.js.map +1 -1
- package/dist/types/src/components/GrAlert/defaults.d.ts +1 -1
- package/dist/types/src/components/GrAutocomplete/defaults.d.ts +1 -1
- package/dist/types/src/components/GrAvatar/defaults.d.ts +1 -1
- package/dist/types/src/components/GrBadge/defaults.d.ts +1 -1
- package/dist/types/src/components/GrBottomNav/defaults.d.ts +1 -1
- package/dist/types/src/components/GrBreadcrumbs/defaults.d.ts +1 -1
- package/dist/types/src/components/GrButton/defaults.d.ts +1 -1
- package/dist/types/src/components/GrCard/defaults.d.ts +1 -1
- package/dist/types/src/components/GrCheckbox/defaults.d.ts +1 -1
- package/dist/types/src/components/GrCheckboxGroup/defaults.d.ts +1 -1
- package/dist/types/src/components/GrCollapse/defaults.d.ts +1 -1
- package/dist/types/src/components/GrColorPicker/defaults.d.ts +1 -1
- package/dist/types/src/components/GrColorPicker/grColorPickerStyles.d.ts +2 -2
- package/dist/types/src/components/GrCommandPalette/defaults.d.ts +1 -1
- package/dist/types/src/components/GrConfigProvider/context.d.ts +6 -22
- package/dist/types/src/components/GrConfigProvider/index.d.ts +1 -1
- package/dist/types/src/components/GrConfirmDialog/defaults.d.ts +1 -1
- package/dist/types/src/components/GrDataTable/GrDataTable.vue.d.ts +53 -0
- package/dist/types/src/components/GrDataTable/defaults.d.ts +1 -1
- package/dist/types/src/components/GrDataTable/grDataTableStyles.d.ts +39 -0
- package/dist/types/src/components/GrDialog/defaults.d.ts +1 -1
- package/dist/types/src/components/GrDivider/defaults.d.ts +1 -1
- package/dist/types/src/components/GrDrawer/defaults.d.ts +1 -1
- package/dist/types/src/components/GrEmptyState/defaults.d.ts +1 -1
- package/dist/types/src/components/GrFileUpload/defaults.d.ts +1 -1
- package/dist/types/src/components/GrFormField/defaults.d.ts +1 -1
- package/dist/types/src/components/GrFormFile/defaults.d.ts +1 -1
- package/dist/types/src/components/GrFormSection/defaults.d.ts +1 -1
- package/dist/types/src/components/GrIcon/defaults.d.ts +1 -1
- package/dist/types/src/components/GrImageViewer/composables/usePointerGestures.d.ts +1 -0
- package/dist/types/src/components/GrImageViewer/composables/useZoomPan.d.ts +1 -2
- package/dist/types/src/components/GrInput/defaults.d.ts +1 -1
- package/dist/types/src/components/GrInputTag/defaults.d.ts +1 -1
- package/dist/types/src/components/GrKbd/GrKbd.vue.d.ts +18 -3
- package/dist/types/src/components/GrKbd/defaults.d.ts +1 -1
- package/dist/types/src/components/GrKbd/grKbdStyles.d.ts +20 -3
- package/dist/types/src/components/GrKbd/index.d.ts +6 -0
- package/dist/types/src/components/GrLink/defaults.d.ts +1 -1
- package/dist/types/src/components/GrModal/defaults.d.ts +1 -1
- package/dist/types/src/components/GrNumberInput/defaults.d.ts +1 -1
- package/dist/types/src/components/GrPagination/defaults.d.ts +1 -1
- package/dist/types/src/components/GrPopover/GrPopover.vue.d.ts +1 -1
- package/dist/types/src/components/GrPopover/defaults.d.ts +1 -1
- package/dist/types/src/components/GrProgressBar/defaults.d.ts +1 -1
- package/dist/types/src/components/GrProgressCircle/defaults.d.ts +1 -1
- package/dist/types/src/components/GrProgressCircle/grProgressCircleStyles.d.ts +1 -1
- package/dist/types/src/components/GrPromptDialog/defaults.d.ts +1 -1
- package/dist/types/src/components/GrRadio/defaults.d.ts +1 -1
- package/dist/types/src/components/GrRadio/grRadioGroupContext.d.ts +12 -4
- package/dist/types/src/components/GrRadioGroup/defaults.d.ts +1 -1
- package/dist/types/src/components/GrRating/defaults.d.ts +1 -1
- package/dist/types/src/components/GrSegmented/defaults.d.ts +1 -1
- package/dist/types/src/components/GrSelect/defaults.d.ts +1 -1
- package/dist/types/src/components/GrSlider/defaults.d.ts +1 -1
- package/dist/types/src/components/GrSortableList/GrSortableList.vue.d.ts +68 -0
- package/dist/types/src/components/GrSortableList/config.d.ts +1 -0
- package/dist/types/src/components/GrSortableList/grSortableListStyles.d.ts +38 -0
- package/dist/types/src/components/GrSortableList/index.d.ts +9 -0
- package/dist/types/src/components/GrSortableList/safelist.d.ts +1 -0
- package/dist/types/src/components/GrSplitter/defaults.d.ts +1 -1
- package/dist/types/src/components/GrStatistic/defaults.d.ts +1 -1
- package/dist/types/src/components/GrStatistic/grStatisticStyles.d.ts +1 -1
- package/dist/types/src/components/GrSwitch/defaults.d.ts +1 -1
- package/dist/types/src/components/GrTable/GrTable.vue.d.ts +13 -0
- package/dist/types/src/components/GrTable/defaults.d.ts +1 -1
- package/dist/types/src/components/GrTabs/defaults.d.ts +1 -1
- package/dist/types/src/components/GrTextarea/defaults.d.ts +1 -1
- package/dist/types/src/components/GrTextarea/grTextareaStyles.d.ts +2 -2
- package/dist/types/src/components/GrTimeline/defaults.d.ts +1 -1
- package/dist/types/src/components/GrTimeline/grTimelineStyles.d.ts +1 -1
- package/dist/types/src/components/GrToaster/GrToaster.vue.d.ts +8 -0
- package/dist/types/src/components/GrToaster/grToasterStyles.d.ts +27 -0
- package/dist/types/src/components/GrTooltip/defaults.d.ts +1 -1
- package/dist/types/src/components/GrTree/defaults.d.ts +1 -1
- package/dist/types/src/components/GrTree/grTreeInteractionContext.d.ts +0 -1
- package/dist/types/src/components/GrTreeSelect/defaults.d.ts +1 -1
- package/dist/types/src/components/shared/hotkey.d.ts +7 -15
- package/dist/types/src/components/shared/hotkeyTokens.d.ts +37 -0
- package/dist/types/src/composables/internal/dragSortGeometry.d.ts +59 -0
- package/dist/types/src/composables/internal/overlayStack.d.ts +11 -0
- package/dist/types/src/composables/useDragGesture.d.ts +63 -0
- package/dist/types/src/composables/useDragSort.d.ts +80 -0
- package/dist/types/src/composables/useFloating.d.ts +5 -1
- package/dist/types/src/composables/useGrComponentConfig.d.ts +41 -0
- package/dist/types/src/composables/useGranularityTranslations.d.ts +13 -0
- package/dist/types/src/composables/useRovingFocus.d.ts +108 -0
- package/dist/types/src/granular-provider/shared.d.ts +1 -0
- package/dist/types/src/i18n/messages/en.d.ts +48 -0
- package/dist/types/src/i18n/messages/es.d.ts +48 -0
- package/dist/types/src/i18n/messages/ru.d.ts +48 -0
- package/dist/types/src/index.d.ts +12 -0
- package/dist/types/src/internal/keyboard.d.ts +6 -0
- package/dist/web-types.json +201 -3
- package/package.json +31 -3
- package/dist/chunks/config-B-g6lT19.js.map +0 -1
- package/dist/chunks/config-BE6n20np.js.map +0 -1
- package/dist/chunks/config-BNfQwyL4.js +0 -97
- package/dist/chunks/config-BNfQwyL4.js.map +0 -1
- package/dist/chunks/config-BoNR7_PD.js.map +0 -1
- package/dist/chunks/config-CN2ULSQL2.js.map +0 -1
- package/dist/chunks/config-Cw6TDzWv2.js.map +0 -1
- package/dist/chunks/config-D94Z9po52.js.map +0 -1
- package/dist/chunks/config-DCFvmHEv.js.map +0 -1
- package/dist/chunks/config-DxCTVBfx.js.map +0 -1
- package/dist/chunks/config-LGrZIdaZ.js +0 -21
- package/dist/chunks/config-LGrZIdaZ.js.map +0 -1
- package/dist/chunks/config-T3qdQBgU.js.map +0 -1
- package/dist/chunks/config-eXB87DOi2.js.map +0 -1
- package/dist/chunks/en-B3xMeswz.js.map +0 -1
- package/dist/chunks/es-CA-mkU--.js.map +0 -1
- package/dist/chunks/grKbdStyles-DAoxiytu.js +0 -31
- package/dist/chunks/grKbdStyles-DAoxiytu.js.map +0 -1
- package/dist/chunks/granular-provider-CtrXGa7c.js.map +0 -1
- package/dist/chunks/keyboard-zYvvyHd4.js.map +0 -1
- package/dist/chunks/optionFilter-BVY988pC.js.map +0 -1
- package/dist/chunks/ru-COWxgh2A.js.map +0 -1
- package/dist/chunks/useOverlayLayer-BupuP_hs.js.map +0 -1
- package/dist/components/GrAutocomplete/chunks/GrAutocomplete-CQ9T7Lly.js.map +0 -1
- package/dist/components/GrCommandPalette/chunks/GrCommandPalette-MWDYDPNC.js.map +0 -1
- package/dist/components/GrDataTable/chunks/GrDataTable-DVFho9Cj.js.map +0 -1
- package/dist/components/GrImageViewer/chunks/GrImageViewer-BeCnE8XQ.js.map +0 -1
- package/dist/components/GrInput/chunks/GrInput-DD2gYdqS.js.map +0 -1
- package/dist/components/GrInputTag/chunks/GrInputTag-DmNunixz.js.map +0 -1
- package/dist/components/GrKbd/chunks/GrKbd-DRFPvW3G.js.map +0 -1
- package/dist/components/GrPagination/chunks/GrPagination-B6N0QZBf.js.map +0 -1
- package/dist/components/GrProgressBar/chunks/GrProgressBar-BiHnaitu.js.map +0 -1
- package/dist/components/GrRadio/chunks/GrRadio-DksDro_U.js.map +0 -1
- package/dist/components/GrRadioGroup/chunks/GrRadioGroup-BOIhejE6.js.map +0 -1
- package/dist/components/GrRating/chunks/GrRating-JrHXz0Rv.js.map +0 -1
- package/dist/components/GrSegmented/chunks/GrSegmented-BQIlH5KI.js.map +0 -1
- package/dist/components/GrSelect/chunks/GrSelect-aqkPCqjd.js.map +0 -1
- package/dist/components/GrSlider/chunks/GrSlider-DkU9IQSX.js.map +0 -1
- package/dist/components/GrSplitter/chunks/GrSplitter-7To8jbJ8.js.map +0 -1
- package/dist/components/GrTable/chunks/GrTable-BB-mI_NM.js.map +0 -1
- package/dist/components/GrTabs/chunks/GrTabs-B8CDq2D9.js.map +0 -1
- package/dist/components/GrToaster/chunks/GrToaster-BKQy3Srm.js.map +0 -1
- package/dist/components/GrTree/chunks/GrTree-wfdbvygw.js.map +0 -1
- /package/dist/chunks/{config-BE6n20np.js → config-BE6n20np2.js} +0 -0
- /package/dist/chunks/{config-BoNR7_PD.js → config-BoNR7_PD2.js} +0 -0
- /package/dist/chunks/{config-CN2ULSQL2.js → config-CN2ULSQL.js} +0 -0
- /package/dist/chunks/{config-D94Z9po52.js → config-D94Z9po5.js} +0 -0
- /package/dist/chunks/{config-DCFvmHEv.js → config-DCFvmHEv2.js} +0 -0
- /package/dist/chunks/{config-T3qdQBgU.js → config-T3qdQBgU2.js} +0 -0
- /package/dist/chunks/{config-eXB87DOi2.js → config-eXB87DOi.js} +0 -0
- /package/dist/types/src/composables/{internal/useComboboxNavigation.d.ts → useComboboxNavigation.d.ts} +0 -0
|
@@ -16,7 +16,7 @@ export interface GrAlertConfigurableProps {
|
|
|
16
16
|
closable: boolean;
|
|
17
17
|
live: GrAlertLive;
|
|
18
18
|
}
|
|
19
|
-
declare module '
|
|
19
|
+
declare module '../../composables/useGrComponentConfig' {
|
|
20
20
|
interface GrComponentDefaultsRegistry {
|
|
21
21
|
GrAlert: GrAlertConfigurableProps;
|
|
22
22
|
}
|
|
@@ -8,7 +8,7 @@ export interface GrAutocompleteConfigurableProps {
|
|
|
8
8
|
size: GrAutocompleteSize;
|
|
9
9
|
clearable: boolean;
|
|
10
10
|
}
|
|
11
|
-
declare module '
|
|
11
|
+
declare module '../../composables/useGrComponentConfig' {
|
|
12
12
|
interface GrComponentDefaultsRegistry {
|
|
13
13
|
GrAutocomplete: GrAutocompleteConfigurableProps;
|
|
14
14
|
}
|
|
@@ -9,7 +9,7 @@ export interface GrAvatarConfigurableProps {
|
|
|
9
9
|
size: GrComponentSize;
|
|
10
10
|
shape: GrAvatarShape;
|
|
11
11
|
}
|
|
12
|
-
declare module '
|
|
12
|
+
declare module '../../composables/useGrComponentConfig' {
|
|
13
13
|
interface GrComponentDefaultsRegistry {
|
|
14
14
|
GrAvatar: GrAvatarConfigurableProps;
|
|
15
15
|
}
|
|
@@ -8,7 +8,7 @@ export interface GrBadgeConfigurableProps {
|
|
|
8
8
|
size: GrBadgeSize;
|
|
9
9
|
radius: GrBadgeRadius;
|
|
10
10
|
}
|
|
11
|
-
declare module '
|
|
11
|
+
declare module '../../composables/useGrComponentConfig' {
|
|
12
12
|
interface GrComponentDefaultsRegistry {
|
|
13
13
|
GrBadge: GrBadgeConfigurableProps;
|
|
14
14
|
}
|
|
@@ -9,7 +9,7 @@ import type { GrComponentSize } from '../GrConfigProvider/context';
|
|
|
9
9
|
export interface GrBottomNavConfigurableProps {
|
|
10
10
|
size: GrComponentSize;
|
|
11
11
|
}
|
|
12
|
-
declare module '
|
|
12
|
+
declare module '../../composables/useGrComponentConfig' {
|
|
13
13
|
interface GrComponentDefaultsRegistry {
|
|
14
14
|
GrBottomNav: GrBottomNavConfigurableProps;
|
|
15
15
|
}
|
|
@@ -8,7 +8,7 @@ export interface GrBreadcrumbsConfigurableProps {
|
|
|
8
8
|
size: GrBreadcrumbsSize;
|
|
9
9
|
separator: string;
|
|
10
10
|
}
|
|
11
|
-
declare module '
|
|
11
|
+
declare module '../../composables/useGrComponentConfig' {
|
|
12
12
|
interface GrComponentDefaultsRegistry {
|
|
13
13
|
GrBreadcrumbs: GrBreadcrumbsConfigurableProps;
|
|
14
14
|
}
|
|
@@ -18,7 +18,7 @@ export interface GrButtonConfigurableProps {
|
|
|
18
18
|
* `GrConfigProvider`, чтобы провайдер не знал про конкретные компоненты: тип
|
|
19
19
|
* приезжает к потребителю ровно тогда, когда он импортирует сам `GrButton`.
|
|
20
20
|
*/
|
|
21
|
-
declare module '
|
|
21
|
+
declare module '../../composables/useGrComponentConfig' {
|
|
22
22
|
interface GrComponentDefaultsRegistry {
|
|
23
23
|
GrButton: GrButtonConfigurableProps;
|
|
24
24
|
}
|
|
@@ -8,7 +8,7 @@ export interface GrCardConfigurableProps {
|
|
|
8
8
|
padding: GrCardPadding;
|
|
9
9
|
variant: GrCardVariant;
|
|
10
10
|
}
|
|
11
|
-
declare module '
|
|
11
|
+
declare module '../../composables/useGrComponentConfig' {
|
|
12
12
|
interface GrComponentDefaultsRegistry {
|
|
13
13
|
GrCard: GrCardConfigurableProps;
|
|
14
14
|
}
|
|
@@ -7,7 +7,7 @@ import type { GrCheckboxSize } from './grCheckboxStyles';
|
|
|
7
7
|
export interface GrCheckboxConfigurableProps {
|
|
8
8
|
size: GrCheckboxSize;
|
|
9
9
|
}
|
|
10
|
-
declare module '
|
|
10
|
+
declare module '../../composables/useGrComponentConfig' {
|
|
11
11
|
interface GrComponentDefaultsRegistry {
|
|
12
12
|
GrCheckbox: GrCheckboxConfigurableProps;
|
|
13
13
|
}
|
|
@@ -7,7 +7,7 @@ import type { GrCheckboxSize } from '../GrCheckbox/grCheckboxStyles';
|
|
|
7
7
|
export interface GrCheckboxGroupConfigurableProps {
|
|
8
8
|
size: GrCheckboxSize;
|
|
9
9
|
}
|
|
10
|
-
declare module '
|
|
10
|
+
declare module '../../composables/useGrComponentConfig' {
|
|
11
11
|
interface GrComponentDefaultsRegistry {
|
|
12
12
|
GrCheckboxGroup: GrCheckboxGroupConfigurableProps;
|
|
13
13
|
}
|
|
@@ -12,7 +12,7 @@ export interface GrCollapseConfigurableProps {
|
|
|
12
12
|
expandIconPosition: GrCollapseIconPosition;
|
|
13
13
|
headingLevel: GrCollapseHeadingLevel;
|
|
14
14
|
}
|
|
15
|
-
declare module '
|
|
15
|
+
declare module '../../composables/useGrComponentConfig' {
|
|
16
16
|
interface GrComponentDefaultsRegistry {
|
|
17
17
|
GrCollapse: GrCollapseConfigurableProps;
|
|
18
18
|
}
|
|
@@ -8,7 +8,7 @@ import type { GrColorPickerSize } from './grColorPickerStyles';
|
|
|
8
8
|
export interface GrColorPickerConfigurableProps {
|
|
9
9
|
size: GrColorPickerSize;
|
|
10
10
|
}
|
|
11
|
-
declare module '
|
|
11
|
+
declare module '../../composables/useGrComponentConfig' {
|
|
12
12
|
interface GrComponentDefaultsRegistry {
|
|
13
13
|
GrColorPicker: GrColorPickerConfigurableProps;
|
|
14
14
|
}
|
|
@@ -13,7 +13,7 @@ export declare const triggerBaseClass = "inline-flex w-full min-w-0 items-center
|
|
|
13
13
|
export declare const triggerDisabledClass = "cursor-not-allowed border-[var(--gr-brd)] bg-[var(--gr-muted)] text-[var(--gr-disabled-fg)]";
|
|
14
14
|
export declare const triggerEnabledClass = "cursor-pointer hover:border-[var(--gr-primary)]";
|
|
15
15
|
export declare const triggerInvalidClass = "border-[var(--gr-invalid-brd)] focus-visible:ring-[var(--gr-invalid-ring)]";
|
|
16
|
-
export declare const triggerValueClass = "min-w-0 flex-1 truncate text-left
|
|
16
|
+
export declare const triggerValueClass = "min-w-0 flex-1 truncate text-left tabular-nums";
|
|
17
17
|
/**
|
|
18
18
|
* Шахматка под прозрачным цветом. Живёт классом-маркером, а сами клетки рисует
|
|
19
19
|
* `<style>` компонента: два `conic-gradient` в утилите не выражаются.
|
|
@@ -26,7 +26,7 @@ export declare const panelBaseClass = "grid";
|
|
|
26
26
|
export declare const previewClass = "relative h-10 w-full overflow-hidden rounded-[var(--gr-radius-md)] border border-[color-mix(in_srgb,var(--gr-fg)_18%,transparent)]";
|
|
27
27
|
export declare const rowClass = "grid grid-cols-[1.25rem_minmax(0,1fr)_2.75rem] items-center gap-2";
|
|
28
28
|
export declare const rowLabelClass = "text-[var(--gr-muted-fg)]";
|
|
29
|
-
export declare const rowValueClass = "text-right text-[var(--gr-muted-fg)]
|
|
29
|
+
export declare const rowValueClass = "text-right text-[var(--gr-muted-fg)] tabular-nums";
|
|
30
30
|
export declare const presetsGridClass = "flex flex-wrap gap-1.5";
|
|
31
31
|
export declare const presetBaseClass = "relative h-5 w-5 shrink-0 overflow-hidden rounded-[var(--gr-radius-sm)] border border-[color-mix(in_srgb,var(--gr-fg)_18%,transparent)] transition-shadow duration-[var(--gr-duration-fast)] focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--gr-ring)]";
|
|
32
32
|
export declare const presetSelectedClass = "ring-2 ring-[var(--gr-primary)] ring-offset-1 ring-offset-[var(--gr-popover)]";
|
|
@@ -7,7 +7,7 @@ import type { GrCommandPaletteSize } from './grCommandPaletteStyles';
|
|
|
7
7
|
export interface GrCommandPaletteConfigurableProps {
|
|
8
8
|
size: GrCommandPaletteSize;
|
|
9
9
|
}
|
|
10
|
-
declare module '
|
|
10
|
+
declare module '../../composables/useGrComponentConfig' {
|
|
11
11
|
interface GrComponentDefaultsRegistry {
|
|
12
12
|
GrCommandPalette: GrCommandPaletteConfigurableProps;
|
|
13
13
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type ComputedRef, type InjectionKey } from 'vue';
|
|
2
|
+
import type { GrComponentDefaultsRegistry } from '../../composables/useGrComponentConfig';
|
|
2
3
|
/**
|
|
3
4
|
* Контекст `GrConfigProvider` — глобальные дефолты для вложенных GR-компонентов:
|
|
4
5
|
* размер контролов и per-component дефолтные пропсы.
|
|
@@ -15,29 +16,13 @@ import { type ComputedRef, type InjectionKey } from 'vue';
|
|
|
15
16
|
export declare const GR_COMPONENT_SIZES: readonly ["xs", "sm", "md", "lg"];
|
|
16
17
|
export type GrComponentSize = typeof GR_COMPONENT_SIZES[number];
|
|
17
18
|
/**
|
|
18
|
-
*
|
|
19
|
+
* Реестр компонентов с настраиваемыми через конфиг пропами.
|
|
19
20
|
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
* владеет, а не общий модуль.
|
|
24
|
-
*
|
|
25
|
-
* Практическое следствие: реестр состоит ровно из тех компонентов, которые
|
|
26
|
-
* попали в граф типов потребителя. Импортировали только `GrButton` — в
|
|
27
|
-
* `componentDefaults` типизирована только кнопка, типы `GrBadge` в проект не
|
|
28
|
-
* приезжают.
|
|
29
|
-
*
|
|
30
|
-
* ```ts
|
|
31
|
-
* // GrButton/defaults.ts
|
|
32
|
-
* declare module '../GrConfigProvider/context' {
|
|
33
|
-
* interface GrComponentDefaultsRegistry {
|
|
34
|
-
* GrButton: GrButtonConfigurableProps
|
|
35
|
-
* }
|
|
36
|
-
* }
|
|
37
|
-
* ```
|
|
21
|
+
* Объявлен в `composables/useGrComponentConfig` — там же, куда его дополняют
|
|
22
|
+
* и компоненты пакета, и companion-пакеты. Здесь только реэкспорт для тех, кто
|
|
23
|
+
* работает с контекстом провайдера напрямую.
|
|
38
24
|
*/
|
|
39
|
-
export
|
|
40
|
-
}
|
|
25
|
+
export type { GrComponentDefaultsRegistry };
|
|
41
26
|
/** Имя компонента, у которого есть настраиваемые через конфиг пропы. */
|
|
42
27
|
export type GrConfigurableComponent = keyof GrComponentDefaultsRegistry;
|
|
43
28
|
/**
|
|
@@ -155,4 +140,3 @@ export declare function useGrComponentProp<TComponent extends GrConfigurableComp
|
|
|
155
140
|
export declare function useGrThemeAttrs(): ComputedRef<{
|
|
156
141
|
'data-theme'?: string;
|
|
157
142
|
}>;
|
|
158
|
-
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { default } from './GrConfigProvider.vue';
|
|
2
2
|
export { default as GrConfigProvider } from './GrConfigProvider.vue';
|
|
3
3
|
export type { GrComponentDefaults, GrComponentSize } from './GrConfigProvider.vue';
|
|
4
|
-
export { GR_COMPONENT_SIZES, GR_CONFIG_KEY, type GrComponentDefaultsRegistry, type GrConfigContext, type GrConfigSource, type GrConfigurableComponent, resolveGrConfig, useGrComponentDefaults, useGrComponentProp, useGrComponentSize, type UseGrComponentSizeOptions, useGrConfig, } from './context';
|
|
4
|
+
export { GR_COMPONENT_SIZES, GR_CONFIG_KEY, type GrComponentDefaultsRegistry, type GrConfigContext, type GrConfigSource, type GrConfigurableComponent, resolveGrConfig, useGrComponentDefaults, useGrComponentProp, useGrComponentSize, type UseGrComponentSizeOptions, useGrConfig, useGrThemeAttrs, } from './context';
|
|
5
5
|
export { grConfigProviderConfig } from './config';
|
|
6
6
|
export type { GrConfigProviderProps } from './GrConfigProvider.vue';
|
|
@@ -7,7 +7,7 @@ import type { GrDialogSize } from '../GrDialog/dialogShared';
|
|
|
7
7
|
export interface GrConfirmDialogConfigurableProps {
|
|
8
8
|
size: GrDialogSize;
|
|
9
9
|
}
|
|
10
|
-
declare module '
|
|
10
|
+
declare module '../../composables/useGrComponentConfig' {
|
|
11
11
|
interface GrComponentDefaultsRegistry {
|
|
12
12
|
GrConfirmDialog: GrConfirmDialogConfigurableProps;
|
|
13
13
|
}
|
|
@@ -18,6 +18,14 @@ export type GrDataColumn<TRow extends Record<string, unknown> = Record<string, u
|
|
|
18
18
|
* задаёт первая строка таблицы, а это и есть `<thead>`.
|
|
19
19
|
*/
|
|
20
20
|
width?: string | number;
|
|
21
|
+
/**
|
|
22
|
+
* Колонка липнет к краю при горизонтальной прокрутке.
|
|
23
|
+
*
|
|
24
|
+
* Закреплённые колонки всегда стоят своей группой у своего края — перенос
|
|
25
|
+
* колонки из группы в группу запрещён, иначе «закреплена слева» перестало бы
|
|
26
|
+
* означать «слева».
|
|
27
|
+
*/
|
|
28
|
+
pinned?: 'left' | 'right';
|
|
21
29
|
};
|
|
22
30
|
export type GrDataTableRowKey<TRow extends Record<string, unknown> = Record<string, unknown>> = string | ((row: TRow) => string | number);
|
|
23
31
|
/** Порядок обхода состояний сортировки по клику на заголовок. */
|
|
@@ -88,6 +96,29 @@ export interface GrDataTableProps<TRow extends Record<string, unknown> = Record<
|
|
|
88
96
|
virtual?: boolean;
|
|
89
97
|
/** Максимальная высота таблицы (вертикальный скролл). Число — в пикселях. */
|
|
90
98
|
maxHeight?: string | number;
|
|
99
|
+
/**
|
|
100
|
+
* Пользовательский порядок колонок: в шапке появляется ручка переноса.
|
|
101
|
+
* Колонка тянется указателем и двигается `Shift`+`←`/`→` с клавиатуры.
|
|
102
|
+
*/
|
|
103
|
+
reorderableColumns?: boolean;
|
|
104
|
+
/**
|
|
105
|
+
* Контролируемый порядок колонок — ключи в нужном порядке (`v-model:columnOrder`).
|
|
106
|
+
* Не задан — порядок компонент помнит сам, начиная с порядка `columns`.
|
|
107
|
+
*/
|
|
108
|
+
columnOrder?: string[];
|
|
109
|
+
/**
|
|
110
|
+
* Пользовательская ширина колонок: у правого края заголовка появляется ручка.
|
|
111
|
+
* Тянется указателем, с клавиатуры — стрелками (паттерн window splitter).
|
|
112
|
+
*
|
|
113
|
+
* Включает фиксированную раскладку таблицы: без неё браузер пересчитывает
|
|
114
|
+
* ширины по содержимому и заданная пользователем пропадает.
|
|
115
|
+
*/
|
|
116
|
+
resizableColumns?: boolean;
|
|
117
|
+
/**
|
|
118
|
+
* Контролируемые ширины в пикселях по ключу колонки (`v-model:columnWidths`).
|
|
119
|
+
* Не заданы — ширины компонент помнит сам.
|
|
120
|
+
*/
|
|
121
|
+
columnWidths?: Record<string, number>;
|
|
91
122
|
}
|
|
92
123
|
export interface GrDataTableEmits<TRow extends Record<string, unknown> = Record<string, unknown>> {
|
|
93
124
|
(e: 'update:sortKey', value: string): void;
|
|
@@ -102,6 +133,17 @@ export interface GrDataTableEmits<TRow extends Record<string, unknown> = Record<
|
|
|
102
133
|
index: number;
|
|
103
134
|
event: MouseEvent;
|
|
104
135
|
}): void;
|
|
136
|
+
(e: 'update:columnOrder', value: string[]): void;
|
|
137
|
+
(e: 'columnReorder', payload: {
|
|
138
|
+
key: string;
|
|
139
|
+
from: number;
|
|
140
|
+
to: number;
|
|
141
|
+
}): void;
|
|
142
|
+
(e: 'update:columnWidths', value: Record<string, number>): void;
|
|
143
|
+
(e: 'columnResize', payload: {
|
|
144
|
+
key: string;
|
|
145
|
+
width: number;
|
|
146
|
+
}): void;
|
|
105
147
|
}
|
|
106
148
|
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<{
|
|
107
149
|
props: import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & __VLS_PrettifyLocal<GrDataTableProps<TRow> & {
|
|
@@ -117,6 +159,17 @@ declare const __VLS_export: <TRow extends Record<string, unknown> = Record<strin
|
|
|
117
159
|
index: number;
|
|
118
160
|
event: MouseEvent;
|
|
119
161
|
}) => any) | undefined;
|
|
162
|
+
"onUpdate:columnOrder"?: ((value: string[]) => any) | undefined;
|
|
163
|
+
onColumnReorder?: ((payload: {
|
|
164
|
+
key: string;
|
|
165
|
+
from: number;
|
|
166
|
+
to: number;
|
|
167
|
+
}) => any) | undefined;
|
|
168
|
+
"onUpdate:columnWidths"?: ((value: Record<string, number>) => any) | undefined;
|
|
169
|
+
onColumnResize?: ((payload: {
|
|
170
|
+
key: string;
|
|
171
|
+
width: number;
|
|
172
|
+
}) => any) | undefined;
|
|
120
173
|
}> & (typeof globalThis extends {
|
|
121
174
|
__VLS_PROPS_FALLBACK: infer P;
|
|
122
175
|
} ? P : {});
|
|
@@ -3,7 +3,7 @@ import type { GrComponentSize } from '../GrConfigProvider/context';
|
|
|
3
3
|
export interface GrDataTableConfigurableProps {
|
|
4
4
|
size: GrComponentSize;
|
|
5
5
|
}
|
|
6
|
-
declare module '
|
|
6
|
+
declare module '../../composables/useGrComponentConfig' {
|
|
7
7
|
interface GrComponentDefaultsRegistry {
|
|
8
8
|
GrDataTable: GrDataTableConfigurableProps;
|
|
9
9
|
}
|
|
@@ -11,6 +11,45 @@ export declare const cellPaddings: Record<GrDataTableSize, string>;
|
|
|
11
11
|
export declare const rowHeightEstimates: Record<GrDataTableSize, number>;
|
|
12
12
|
/** Заглушки loading/empty: по горизонтали как ячейка, по вертикали просторнее. */
|
|
13
13
|
export declare const placeholderPaddings: Record<GrDataTableSize, string>;
|
|
14
|
+
/**
|
|
15
|
+
* Ручка перестановки колонки. Появляется по наведению на заголовок и по
|
|
16
|
+
* фокусу: постоянная сетка ручек в шапке из десяти колонок читается как рябь,
|
|
17
|
+
* а не как управление.
|
|
18
|
+
*/
|
|
19
|
+
export declare const columnHandleClass = "inline-flex shrink-0 cursor-grab items-center text-[var(--gr-datatable-drag-handle,var(--gr-muted-fg))] opacity-0 [touch-action:none] transition-opacity duration-[var(--gr-duration-fast)] focus:outline-none focus-visible:opacity-100 focus-visible:ring-2 focus-visible:ring-[var(--gr-ring)] rounded-[var(--gr-radius-sm)] group-hover:opacity-100";
|
|
20
|
+
export declare const columnHandleActiveClass = "opacity-100";
|
|
21
|
+
export declare const columnHandleIconClass = "i-lucide-grip-vertical block";
|
|
22
|
+
/** Переносимая колонка гасится, чтобы было видно, что она «поднята». */
|
|
23
|
+
export declare const columnDraggingClass = "bg-[var(--gr-muted)]";
|
|
24
|
+
/**
|
|
25
|
+
* Место вставки — полоса по краю ячейки заголовка. Псевдоэлемент, а не свой
|
|
26
|
+
* узел: `<th>` не терпит посторонних детей в раскладке таблицы.
|
|
27
|
+
*/
|
|
28
|
+
export declare const columnDropBeforeClass = "before:absolute before:inset-y-0 before:left-0 before:w-[var(--gr-datatable-drag-indicator-width,2px)] before:bg-[var(--gr-datatable-drag-indicator,var(--gr-primary))] before:content-empty";
|
|
29
|
+
export declare const columnDropAfterClass = "after:absolute after:inset-y-0 after:right-0 after:w-[var(--gr-datatable-drag-indicator-width,2px)] after:bg-[var(--gr-datatable-drag-indicator,var(--gr-primary))] after:content-empty";
|
|
30
|
+
/**
|
|
31
|
+
* Подсветка выбранной строки. Живёт здесь, потому что закреплённой ячейке её
|
|
32
|
+
* приходится повторять: у ячейки свой непрозрачный фон, и подсветка строки
|
|
33
|
+
* сквозь него не видна.
|
|
34
|
+
*/
|
|
35
|
+
export declare const rowSelectedClass = "bg-[color-mix(in_srgb,var(--gr-primary)_8%,transparent)]";
|
|
36
|
+
/**
|
|
37
|
+
* Ручка ширины — полоса у правого края заголовка. Видима она узкой линией, а
|
|
38
|
+
* ловится широкой зоной: попасть в двухпиксельную границу мышью тяжело.
|
|
39
|
+
*/
|
|
40
|
+
export declare const columnResizerClass = "absolute inset-y-0 right-0 z-[1] flex w-3 translate-x-1/2 cursor-col-resize items-stretch justify-center [touch-action:none] focus:outline-none";
|
|
41
|
+
export declare const columnResizerLineClass = "w-[var(--gr-datatable-resizer-width,2px)] bg-transparent transition-colors duration-[var(--gr-duration-fast)]";
|
|
42
|
+
/** Полоса подсвечивается только когда её ведут или на неё встал фокус. */
|
|
43
|
+
export declare const columnResizerLineActiveClass = "bg-[var(--gr-datatable-resizer,var(--gr-primary))]";
|
|
44
|
+
export declare const columnResizerHoverClass = "hover:bg-[var(--gr-datatable-resizer,var(--gr-primary))] focus-visible:bg-[var(--gr-datatable-resizer,var(--gr-primary))]";
|
|
45
|
+
/**
|
|
46
|
+
* Закреплённая колонка липнет к краю прокрутки. Фон обязателен: без него
|
|
47
|
+
* уезжающие под неё ячейки просвечивают насквозь.
|
|
48
|
+
*/
|
|
49
|
+
export declare const columnPinnedClass = "sticky z-[2] bg-[var(--gr-card)]";
|
|
50
|
+
/** Граница группы закреплённых колонок — тень, а не рамка: рамка сдвигает сетку. */
|
|
51
|
+
export declare const columnPinnedLeftEdgeClass = "shadow-[var(--gr-datatable-pinned-shadow,4px_0_6px_-4px_rgba(0,0,0,0.25))]";
|
|
52
|
+
export declare const columnPinnedRightEdgeClass = "shadow-[var(--gr-datatable-pinned-shadow-end,-4px_0_6px_-4px_rgba(0,0,0,0.25))]";
|
|
14
53
|
/** Подпись колонки набирается мельче тела таблицы — она не данные, а навигация. */
|
|
15
54
|
export declare const headerTextSizes: Record<GrDataTableSize, string>;
|
|
16
55
|
/**
|
|
@@ -7,7 +7,7 @@ import type { GrDialogSize } from './dialogShared';
|
|
|
7
7
|
export interface GrDialogConfigurableProps {
|
|
8
8
|
size: GrDialogSize;
|
|
9
9
|
}
|
|
10
|
-
declare module '
|
|
10
|
+
declare module '../../composables/useGrComponentConfig' {
|
|
11
11
|
interface GrComponentDefaultsRegistry {
|
|
12
12
|
GrDialog: GrDialogConfigurableProps;
|
|
13
13
|
}
|
|
@@ -8,7 +8,7 @@ export interface GrDividerConfigurableProps {
|
|
|
8
8
|
variant: GrDividerVariant;
|
|
9
9
|
spacing: GrDividerSpacing;
|
|
10
10
|
}
|
|
11
|
-
declare module '
|
|
11
|
+
declare module '../../composables/useGrComponentConfig' {
|
|
12
12
|
interface GrComponentDefaultsRegistry {
|
|
13
13
|
GrDivider: GrDividerConfigurableProps;
|
|
14
14
|
}
|
|
@@ -12,7 +12,7 @@ export interface GrDrawerConfigurableProps {
|
|
|
12
12
|
size: GrDrawerSize;
|
|
13
13
|
side: GrDrawerSide;
|
|
14
14
|
}
|
|
15
|
-
declare module '
|
|
15
|
+
declare module '../../composables/useGrComponentConfig' {
|
|
16
16
|
interface GrComponentDefaultsRegistry {
|
|
17
17
|
GrDrawer: GrDrawerConfigurableProps;
|
|
18
18
|
}
|
|
@@ -9,7 +9,7 @@ export interface GrEmptyStateConfigurableProps {
|
|
|
9
9
|
variant: GrEmptyStateVariant;
|
|
10
10
|
headingLevel: GrEmptyStateHeadingLevel;
|
|
11
11
|
}
|
|
12
|
-
declare module '
|
|
12
|
+
declare module '../../composables/useGrComponentConfig' {
|
|
13
13
|
interface GrComponentDefaultsRegistry {
|
|
14
14
|
GrEmptyState: GrEmptyStateConfigurableProps;
|
|
15
15
|
}
|
|
@@ -3,7 +3,7 @@ import type { GrComponentSize } from '../GrConfigProvider/context';
|
|
|
3
3
|
export interface GrFileUploadConfigurableProps {
|
|
4
4
|
size: GrComponentSize;
|
|
5
5
|
}
|
|
6
|
-
declare module '
|
|
6
|
+
declare module '../../composables/useGrComponentConfig' {
|
|
7
7
|
interface GrComponentDefaultsRegistry {
|
|
8
8
|
GrFileUpload: GrFileUploadConfigurableProps;
|
|
9
9
|
}
|
|
@@ -8,7 +8,7 @@ export interface GrFormFieldConfigurableProps {
|
|
|
8
8
|
size: GrFormFieldSize;
|
|
9
9
|
labelPosition: GrFormFieldLabelPosition;
|
|
10
10
|
}
|
|
11
|
-
declare module '
|
|
11
|
+
declare module '../../composables/useGrComponentConfig' {
|
|
12
12
|
interface GrComponentDefaultsRegistry {
|
|
13
13
|
GrFormField: GrFormFieldConfigurableProps;
|
|
14
14
|
}
|
|
@@ -3,7 +3,7 @@ import type { GrComponentSize } from '../GrConfigProvider/context';
|
|
|
3
3
|
export interface GrFormFileConfigurableProps {
|
|
4
4
|
size: GrComponentSize;
|
|
5
5
|
}
|
|
6
|
-
declare module '
|
|
6
|
+
declare module '../../composables/useGrComponentConfig' {
|
|
7
7
|
interface GrComponentDefaultsRegistry {
|
|
8
8
|
GrFormFile: GrFormFileConfigurableProps;
|
|
9
9
|
}
|
|
@@ -7,7 +7,7 @@ import type { GrFormSectionHeadingLevel } from './grFormSectionStyles';
|
|
|
7
7
|
export interface GrFormSectionConfigurableProps {
|
|
8
8
|
headingLevel: GrFormSectionHeadingLevel;
|
|
9
9
|
}
|
|
10
|
-
declare module '
|
|
10
|
+
declare module '../../composables/useGrComponentConfig' {
|
|
11
11
|
interface GrComponentDefaultsRegistry {
|
|
12
12
|
GrFormSection: GrFormSectionConfigurableProps;
|
|
13
13
|
}
|
|
@@ -7,7 +7,7 @@ import type { GrComponentSize } from '../shared/sizes';
|
|
|
7
7
|
export interface GrIconConfigurableProps {
|
|
8
8
|
size: GrComponentSize;
|
|
9
9
|
}
|
|
10
|
-
declare module '
|
|
10
|
+
declare module '../../composables/useGrComponentConfig' {
|
|
11
11
|
interface GrComponentDefaultsRegistry {
|
|
12
12
|
GrIcon: GrIconConfigurableProps;
|
|
13
13
|
}
|
|
@@ -32,5 +32,6 @@ export declare function usePointerGestures(options: UsePointerGesturesOptions):
|
|
|
32
32
|
onPointerDown: (event: PointerEvent) => void;
|
|
33
33
|
onPointerMove: (event: PointerEvent) => void;
|
|
34
34
|
onPointerUp: (event: PointerEvent) => void;
|
|
35
|
+
onPointerCancel: (event: PointerEvent) => void;
|
|
35
36
|
reset: () => void;
|
|
36
37
|
};
|
|
@@ -58,7 +58,6 @@ export declare function useZoomPan(options: UseZoomPanOptions): {
|
|
|
58
58
|
startPan: (x: number, y: number) => void;
|
|
59
59
|
movePan: (x: number, y: number) => void;
|
|
60
60
|
endPan: () => void;
|
|
61
|
+
cancelPan: () => void;
|
|
61
62
|
onPointerDown: (event: PointerEvent) => void;
|
|
62
|
-
onPointerMove: (event: PointerEvent) => void;
|
|
63
|
-
onPointerUp: (event: PointerEvent) => void;
|
|
64
63
|
};
|
|
@@ -11,7 +11,7 @@ export interface GrInputConfigurableProps {
|
|
|
11
11
|
size: GrComponentSize;
|
|
12
12
|
clearable: boolean;
|
|
13
13
|
}
|
|
14
|
-
declare module '
|
|
14
|
+
declare module '../../composables/useGrComponentConfig' {
|
|
15
15
|
interface GrComponentDefaultsRegistry {
|
|
16
16
|
GrInput: GrInputConfigurableProps;
|
|
17
17
|
}
|
|
@@ -10,7 +10,7 @@ export interface GrInputTagConfigurableProps {
|
|
|
10
10
|
size: GrComponentSize;
|
|
11
11
|
clearable: boolean;
|
|
12
12
|
}
|
|
13
|
-
declare module '
|
|
13
|
+
declare module '../../composables/useGrComponentConfig' {
|
|
14
14
|
interface GrComponentDefaultsRegistry {
|
|
15
15
|
GrInputTag: GrInputTagConfigurableProps;
|
|
16
16
|
}
|
|
@@ -1,12 +1,23 @@
|
|
|
1
1
|
import type { GrComponentSize } from '../shared/sizes';
|
|
2
|
+
import { type GrKbdVariant } from './grKbdStyles';
|
|
2
3
|
export interface GrKbdProps {
|
|
3
4
|
size?: GrKbdSize;
|
|
5
|
+
/**
|
|
6
|
+
* `merged` (по умолчанию) — сочетание одной плашкой, как его пишут сами
|
|
7
|
+
* системы: `⌘K` на macOS, `Ctrl+K` на прочих. `split` — по плашке на клавишу.
|
|
8
|
+
* `sequence` — аккорд «G затем I»: клавиши нажимают одну за другой.
|
|
9
|
+
*/
|
|
10
|
+
variant?: GrKbdVariant;
|
|
4
11
|
/**
|
|
5
12
|
* Сочетание: строкой (`"mod+shift+K"`) или набором токенов
|
|
6
13
|
* (`['mod', 'K']`). Токен `mod` — Cmd на macOS, Ctrl на остальных.
|
|
7
14
|
*/
|
|
8
15
|
keys?: string | string[];
|
|
9
|
-
/**
|
|
16
|
+
/**
|
|
17
|
+
* Разделитель между клавишами. Не задан — авто: в общей плашке символы
|
|
18
|
+
* склеиваются (`⌘K`), а слова разделяются плюсом (`Ctrl+K`); у `split` это
|
|
19
|
+
* плюс, у `sequence` — слово из локали. Пустая строка — только зазор.
|
|
20
|
+
*/
|
|
10
21
|
separator?: string;
|
|
11
22
|
platform?: GrKbdPlatform;
|
|
12
23
|
}
|
|
@@ -17,6 +28,7 @@ export interface GrKbdProps {
|
|
|
17
28
|
* Сочетание — пропом: `<GrKbd keys="mod+K" />` (на macOS `⌘ K`, иначе `Ctrl K`).
|
|
18
29
|
*/
|
|
19
30
|
export type GrKbdSize = GrComponentSize;
|
|
31
|
+
export type { GrKbdVariant } from './grKbdStyles';
|
|
20
32
|
/** Откуда брать платформу для токена `mod`. */
|
|
21
33
|
export type GrKbdPlatform = 'auto' | 'apple' | 'other';
|
|
22
34
|
declare var __VLS_1: {};
|
|
@@ -25,15 +37,18 @@ type __VLS_Slots = {} & {
|
|
|
25
37
|
};
|
|
26
38
|
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<GrKbdProps>, {
|
|
27
39
|
size: undefined;
|
|
40
|
+
variant: string;
|
|
28
41
|
keys: undefined;
|
|
29
|
-
separator:
|
|
42
|
+
separator: undefined;
|
|
30
43
|
platform: string;
|
|
31
44
|
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<GrKbdProps>, {
|
|
32
45
|
size: undefined;
|
|
46
|
+
variant: string;
|
|
33
47
|
keys: undefined;
|
|
34
|
-
separator:
|
|
48
|
+
separator: undefined;
|
|
35
49
|
platform: string;
|
|
36
50
|
}>>> & Readonly<{}>, {
|
|
51
|
+
variant: GrKbdVariant;
|
|
37
52
|
size: GrKbdSize;
|
|
38
53
|
separator: string;
|
|
39
54
|
keys: string | string[];
|
|
@@ -7,7 +7,7 @@ import type { GrKbdSize } from './GrKbd.vue';
|
|
|
7
7
|
export interface GrKbdConfigurableProps {
|
|
8
8
|
size: GrKbdSize;
|
|
9
9
|
}
|
|
10
|
-
declare module '
|
|
10
|
+
declare module '../../composables/useGrComponentConfig' {
|
|
11
11
|
interface GrComponentDefaultsRegistry {
|
|
12
12
|
GrKbd: GrKbdConfigurableProps;
|
|
13
13
|
}
|
|
@@ -5,11 +5,28 @@ import type { GrComponentSize } from '../shared/sizes';
|
|
|
5
5
|
* Шкала полная (`xs…lg`), а не «sm и всё остальное»: тип пропа обещает четыре
|
|
6
6
|
* ступени, и `xs`/`lg` не должны молча рендериться как `md`.
|
|
7
7
|
*/
|
|
8
|
-
export declare const
|
|
8
|
+
export declare const GR_KBD_VARIANTS: readonly ["merged", "split", "sequence"];
|
|
9
|
+
/**
|
|
10
|
+
* `merged` — сочетание одной плашкой (`⌘K`), как его пишут сами системы;
|
|
11
|
+
* `split` — по плашке на клавишу; `sequence` — аккорд «G затем I».
|
|
12
|
+
*/
|
|
13
|
+
export type GrKbdVariant = typeof GR_KBD_VARIANTS[number];
|
|
14
|
+
export declare const keyBaseClass = "inline-flex items-center justify-center rounded-[var(--gr-radius-control)] border border-[var(--gr-brd)] bg-[var(--gr-muted)] font-medium leading-none text-[var(--gr-muted-fg)] shadow-[var(--gr-shadow-1)] tabular-nums";
|
|
9
15
|
export declare const keySizes: Record<GrComponentSize, string>;
|
|
10
|
-
/**
|
|
16
|
+
/**
|
|
17
|
+
* Клавиша внутри общей плашки: ни рамки, ни фона, ни собственной ширины —
|
|
18
|
+
* иначе `⌘K` разъехалось бы зазорами внутри одного чипа.
|
|
19
|
+
*/
|
|
20
|
+
export declare const mergedKeyClass = "inline-flex items-center justify-center";
|
|
21
|
+
/** Обёртка `split`: сама рамки не имеет — её рисуют вложенные клавиши. */
|
|
11
22
|
export declare const comboBaseClass = "inline-flex items-center align-middle";
|
|
12
23
|
export declare const comboGaps: Record<GrComponentSize, string>;
|
|
24
|
+
/** Зазор внутри общей плашки: между глифами он меньше, чем между плашками. */
|
|
25
|
+
export declare const mergedGaps: Record<GrComponentSize, string>;
|
|
13
26
|
export declare const separatorClass = "select-none text-[var(--gr-muted-fg)]";
|
|
27
|
+
/** Слово-разделитель аккорда стоит между плашками и не липнет к ним. */
|
|
28
|
+
export declare const sequenceSeparatorClass = "select-none px-1 text-[var(--gr-muted-fg)]";
|
|
14
29
|
export declare function grKbdKeyClass(size: GrComponentSize): string;
|
|
15
|
-
export declare function grKbdComboClass(size: GrComponentSize): string;
|
|
30
|
+
export declare function grKbdComboClass(size: GrComponentSize, variant: GrKbdVariant): string;
|
|
31
|
+
/** Класс клавиши внутри сочетания: в общей плашке она без собственной рамки. */
|
|
32
|
+
export declare function grKbdInnerKeyClass(size: GrComponentSize, variant: GrKbdVariant): string;
|
|
@@ -4,4 +4,10 @@ export type { GrKbdPlatform, GrKbdSize } from './GrKbd.vue';
|
|
|
4
4
|
export { grKbdConfig } from './config';
|
|
5
5
|
export type { GrKbdConfigurableProps } from './defaults';
|
|
6
6
|
export { grKbdSafelist } from './safelist';
|
|
7
|
+
/**
|
|
8
|
+
* Каталог поддерживаемых клавиш: по нему витрина и дока строят список, а не
|
|
9
|
+
* держат свою копию.
|
|
10
|
+
*/
|
|
11
|
+
export { findKbdToken, GR_KBD_TOKENS } from '../shared/hotkeyTokens';
|
|
12
|
+
export type { GrKbdKeyName, GrKbdTokenGroup, GrKbdTokenSpec } from '../shared/hotkeyTokens';
|
|
7
13
|
export type { GrKbdProps } from './GrKbd.vue';
|
|
@@ -7,7 +7,7 @@ import type { GrLinkSize } from './grLinkStyles';
|
|
|
7
7
|
export interface GrLinkConfigurableProps {
|
|
8
8
|
size: GrLinkSize;
|
|
9
9
|
}
|
|
10
|
-
declare module '
|
|
10
|
+
declare module '../../composables/useGrComponentConfig' {
|
|
11
11
|
interface GrComponentDefaultsRegistry {
|
|
12
12
|
GrLink: GrLinkConfigurableProps;
|
|
13
13
|
}
|
|
@@ -7,7 +7,7 @@ import type { GrModalSize } from './grModalStyles';
|
|
|
7
7
|
export interface GrModalConfigurableProps {
|
|
8
8
|
size: GrModalSize;
|
|
9
9
|
}
|
|
10
|
-
declare module '
|
|
10
|
+
declare module '../../composables/useGrComponentConfig' {
|
|
11
11
|
interface GrComponentDefaultsRegistry {
|
|
12
12
|
GrModal: GrModalConfigurableProps;
|
|
13
13
|
}
|