@astral/ui 4.118.0 → 4.119.1
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/components/DataGrid/Body/types.d.ts +0 -4
- package/components/DataGrid/Cell/useLogic/useLogic.js +2 -1
- package/components/DataGrid/DataGrid.d.ts +1 -1
- package/components/DataGrid/DataGrid.js +9 -5
- package/components/DataGrid/DataGridContext/DataGridContext.d.ts +0 -1
- package/components/DataGrid/DataGridContext/DataGridContext.js +0 -1
- package/components/DataGrid/DataGridContext/DataGridProvider/DataGridProvider.d.ts +2 -2
- package/components/DataGrid/DataGridContext/DataGridProvider/DataGridProvider.js +1 -3
- package/components/DataGrid/Head/Head.d.ts +16 -7
- package/components/DataGrid/Head/Head.js +6 -3
- package/components/DataGrid/Head/HeadColumns/GroupColumns/GroupColumns.d.ts +2 -2
- package/components/DataGrid/Head/HeadColumns/GroupColumns/GroupColumns.js +4 -1
- package/components/DataGrid/Head/HeadColumns/HeadColumns.d.ts +2 -2
- package/components/DataGrid/Head/HeadColumns/HeadColumns.js +2 -2
- package/components/DataGrid/Head/HeadColumns/SingleColumn/SingleColumn.d.ts +3 -3
- package/components/DataGrid/Head/HeadColumns/useLogic/useLogic.d.ts +1 -1
- package/components/DataGrid/Head/HeadColumns/utils/getHeadCellProps.d.ts +1 -1
- package/components/DataGrid/Head/HeadColumns/utils/getHeadCellProps.js +4 -2
- package/components/DataGrid/Head/styles.d.ts +0 -2
- package/components/DataGrid/Head/styles.js +4 -4
- package/components/DataGrid/Head/useLogic/useLogic.d.ts +5 -0
- package/components/DataGrid/Head/useLogic/useLogic.js +7 -0
- package/components/DataGrid/HeadCell/HeadCell.d.ts +3 -3
- package/components/DataGrid/HeadCell/useLogic/useLogic.d.ts +2 -2
- package/components/DataGrid/PinnedSections/PinnedSections.d.ts +4 -8
- package/components/DataGrid/PinnedSections/PinnedSections.js +2 -2
- package/components/DataGrid/PinnedSections/Section/Section.d.ts +1 -1
- package/components/DataGrid/PinnedSections/Section/Section.js +3 -1
- package/components/DataGrid/PinnedSections/Section/types.d.ts +3 -3
- package/components/DataGrid/PinnedSections/styles.d.ts +0 -2
- package/components/DataGrid/PinnedSections/styles.js +1 -1
- package/components/DataGrid/Row/NestedChildren/NestedChildren.d.ts +0 -4
- package/components/DataGrid/Row/NestedChildren/NestedChildren.js +2 -2
- package/components/DataGrid/Row/NestedChildren/styles.d.ts +0 -1
- package/components/DataGrid/Row/NestedChildren/styles.js +2 -2
- package/components/DataGrid/Row/Row.js +3 -4
- package/components/DataGrid/Row/styles.d.ts +0 -2
- package/components/DataGrid/Row/styles.js +1 -1
- package/components/DataGrid/Row/types.d.ts +0 -4
- package/components/DataGrid/RowBase/styles.js +1 -3
- package/components/DataGrid/RowBase/types.d.ts +0 -4
- package/components/DataGrid/RowBase/useLogic/useLogic.d.ts +1 -1
- package/components/DataGrid/RowBase/useLogic/useLogic.js +1 -2
- package/components/DataGrid/constants.d.ts +5 -0
- package/components/DataGrid/constants.js +5 -0
- package/components/DataGrid/faker.d.ts +0 -2
- package/components/DataGrid/hooks/index.d.ts +1 -0
- package/components/DataGrid/hooks/index.js +1 -0
- package/components/DataGrid/hooks/usePlugins/index.d.ts +1 -0
- package/components/DataGrid/hooks/usePlugins/index.js +1 -0
- package/components/DataGrid/hooks/usePlugins/usePlugins.d.ts +319 -0
- package/components/DataGrid/hooks/usePlugins/usePlugins.js +54 -0
- package/components/DataGrid/index.d.ts +1 -1
- package/components/DataGrid/plugins/resize/ResizeHeadAddon/ResizeHeadAddon.d.ts +5 -0
- package/components/DataGrid/plugins/resize/ResizeHeadAddon/ResizeHeadAddon.js +21 -0
- package/components/DataGrid/plugins/resize/ResizeHeadAddon/index.d.ts +1 -0
- package/components/DataGrid/plugins/resize/ResizeHeadAddon/index.js +1 -0
- package/components/DataGrid/plugins/resize/ResizeHeadAddon/styles.d.ts +5 -0
- package/components/DataGrid/plugins/resize/ResizeHeadAddon/styles.js +76 -0
- package/components/DataGrid/plugins/resize/ResizePlugin.d.ts +8 -0
- package/components/DataGrid/plugins/resize/ResizePlugin.js +14 -0
- package/components/DataGrid/plugins/resize/constants.d.ts +9 -0
- package/components/DataGrid/plugins/resize/constants.js +9 -0
- package/components/DataGrid/plugins/resize/hooks/index.d.ts +1 -0
- package/components/DataGrid/plugins/resize/hooks/index.js +1 -0
- package/components/DataGrid/plugins/resize/hooks/useResize/hooks/index.d.ts +2 -0
- package/components/DataGrid/plugins/resize/hooks/useResize/hooks/index.js +2 -0
- package/components/DataGrid/plugins/resize/hooks/useResize/hooks/useResizeStorage/index.d.ts +1 -0
- package/components/DataGrid/plugins/resize/hooks/useResize/hooks/useResizeStorage/index.js +1 -0
- package/components/DataGrid/plugins/resize/hooks/useResize/hooks/useResizeStorage/useResizeStorage.d.ts +22 -0
- package/components/DataGrid/plugins/resize/hooks/useResize/hooks/useResizeStorage/useResizeStorage.js +20 -0
- package/components/DataGrid/plugins/resize/hooks/useResize/hooks/useTrackWidths/index.d.ts +1 -0
- package/components/DataGrid/plugins/resize/hooks/useResize/hooks/useTrackWidths/index.js +1 -0
- package/components/DataGrid/plugins/resize/hooks/useResize/hooks/useTrackWidths/useTrackWidths.d.ts +20 -0
- package/components/DataGrid/plugins/resize/hooks/useResize/hooks/useTrackWidths/useTrackWidths.js +33 -0
- package/components/DataGrid/plugins/resize/hooks/useResize/index.d.ts +1 -0
- package/components/DataGrid/plugins/resize/hooks/useResize/index.js +1 -0
- package/components/DataGrid/plugins/resize/hooks/useResize/useResize.d.ts +15 -0
- package/components/DataGrid/plugins/resize/hooks/useResize/useResize.js +164 -0
- package/components/DataGrid/plugins/resize/index.d.ts +2 -0
- package/components/DataGrid/plugins/resize/index.js +1 -0
- package/components/DataGrid/plugins/resize/public.d.ts +2 -0
- package/components/DataGrid/plugins/resize/public.js +1 -0
- package/components/DataGrid/plugins/resize/types.d.ts +54 -0
- package/components/DataGrid/plugins/resize/utils/assertResizeConfig/assertResizeConfig.d.ts +5 -0
- package/components/DataGrid/plugins/resize/utils/assertResizeConfig/assertResizeConfig.js +21 -0
- package/components/DataGrid/plugins/resize/utils/assertResizeConfig/index.d.ts +1 -0
- package/components/DataGrid/plugins/resize/utils/assertResizeConfig/index.js +1 -0
- package/components/DataGrid/plugins/resize/utils/getFixedColumnsList/getFixedColumnsList.d.ts +6 -0
- package/components/DataGrid/plugins/resize/utils/getFixedColumnsList/getFixedColumnsList.js +5 -0
- package/components/DataGrid/plugins/resize/utils/getFixedColumnsList/index.d.ts +1 -0
- package/components/DataGrid/plugins/resize/utils/getFixedColumnsList/index.js +1 -0
- package/components/DataGrid/plugins/resize/utils/getFractionsList/getFractionsList.d.ts +4 -0
- package/components/DataGrid/plugins/resize/utils/getFractionsList/getFractionsList.js +10 -0
- package/components/DataGrid/plugins/resize/utils/getFractionsList/index.d.ts +1 -0
- package/components/DataGrid/plugins/resize/utils/getFractionsList/index.js +1 -0
- package/components/DataGrid/plugins/resize/utils/getHandleOffsetsList/getHandleOffsetsList.d.ts +4 -0
- package/components/DataGrid/plugins/resize/utils/getHandleOffsetsList/getHandleOffsetsList.js +10 -0
- package/components/DataGrid/plugins/resize/utils/getHandleOffsetsList/index.d.ts +1 -0
- package/components/DataGrid/plugins/resize/utils/getHandleOffsetsList/index.js +1 -0
- package/components/DataGrid/plugins/resize/utils/getMinWidthsList/getMinWidthsList.d.ts +6 -0
- package/components/DataGrid/plugins/resize/utils/getMinWidthsList/getMinWidthsList.js +4 -0
- package/components/DataGrid/plugins/resize/utils/getMinWidthsList/index.d.ts +1 -0
- package/components/DataGrid/plugins/resize/utils/getMinWidthsList/index.js +1 -0
- package/components/DataGrid/plugins/resize/utils/getResizedGridColumns/getResizedGridColumns.d.ts +22 -0
- package/components/DataGrid/plugins/resize/utils/getResizedGridColumns/getResizedGridColumns.js +15 -0
- package/components/DataGrid/plugins/resize/utils/getResizedGridColumns/index.d.ts +1 -0
- package/components/DataGrid/plugins/resize/utils/getResizedGridColumns/index.js +1 -0
- package/components/DataGrid/plugins/resize/utils/getStorageKey/getStorageKey.d.ts +4 -0
- package/components/DataGrid/plugins/resize/utils/getStorageKey/getStorageKey.js +5 -0
- package/components/DataGrid/plugins/resize/utils/getStorageKey/index.d.ts +1 -0
- package/components/DataGrid/plugins/resize/utils/getStorageKey/index.js +1 -0
- package/components/DataGrid/plugins/resize/utils/getTrackWidthsList/getTrackWidthsList.d.ts +5 -0
- package/components/DataGrid/plugins/resize/utils/getTrackWidthsList/getTrackWidthsList.js +8 -0
- package/components/DataGrid/plugins/resize/utils/getTrackWidthsList/index.d.ts +1 -0
- package/components/DataGrid/plugins/resize/utils/getTrackWidthsList/index.js +1 -0
- package/components/DataGrid/plugins/resize/utils/index.d.ts +10 -0
- package/components/DataGrid/plugins/resize/utils/index.js +10 -0
- package/components/DataGrid/plugins/resize/utils/parseStorageValue/index.d.ts +1 -0
- package/components/DataGrid/plugins/resize/utils/parseStorageValue/index.js +1 -0
- package/components/DataGrid/plugins/resize/utils/parseStorageValue/parseStorageValue.d.ts +19 -0
- package/components/DataGrid/plugins/resize/utils/parseStorageValue/parseStorageValue.js +27 -0
- package/components/DataGrid/plugins/resize/utils/resizeAdjacentColumns/index.d.ts +1 -0
- package/components/DataGrid/plugins/resize/utils/resizeAdjacentColumns/index.js +1 -0
- package/components/DataGrid/plugins/resize/utils/resizeAdjacentColumns/resizeAdjacentColumns.d.ts +25 -0
- package/components/DataGrid/plugins/resize/utils/resizeAdjacentColumns/resizeAdjacentColumns.js +21 -0
- package/components/DataGrid/public.d.ts +1 -1
- package/components/DataGrid/styles.js +19 -2
- package/components/DataGrid/tests/resize/resizeHelper.d.ts +37 -0
- package/components/DataGrid/tests/resize/resizeHelper.js +66 -0
- package/components/DataGrid/types.d.ts +55 -12
- package/components/DataGrid/useLogic/useLogic.d.ts +293 -3
- package/components/DataGrid/useLogic/useLogic.js +13 -4
- package/components/DataGrid/utils/assertUniquePlugins/assertUniquePlugins.d.ts +5 -0
- package/components/DataGrid/utils/assertUniquePlugins/assertUniquePlugins.js +12 -0
- package/components/DataGrid/utils/assertUniquePlugins/index.d.ts +1 -0
- package/components/DataGrid/utils/assertUniquePlugins/index.js +1 -0
- package/components/DataGrid/utils/findPlugin/findPlugin.d.ts +5 -0
- package/components/DataGrid/utils/findPlugin/findPlugin.js +4 -0
- package/components/DataGrid/utils/findPlugin/index.d.ts +1 -0
- package/components/DataGrid/utils/findPlugin/index.js +1 -0
- package/components/DataGrid/utils/getAutoTableId/getAutoTableId.d.ts +5 -0
- package/components/DataGrid/utils/getAutoTableId/getAutoTableId.js +10 -0
- package/components/DataGrid/utils/getAutoTableId/index.d.ts +1 -0
- package/components/DataGrid/utils/getAutoTableId/index.js +1 -0
- package/components/DataGrid/utils/getColumnsSignature/getColumnsSignature.d.ts +6 -0
- package/components/DataGrid/utils/getColumnsSignature/getColumnsSignature.js +4 -0
- package/components/DataGrid/utils/getColumnsSignature/index.d.ts +1 -0
- package/components/DataGrid/utils/getColumnsSignature/index.js +1 -0
- package/components/DataGrid/utils/getDataGridCssVars/getDataGridCssVars.d.ts +15 -1
- package/components/DataGrid/utils/getDataGridCssVars/getDataGridCssVars.js +7 -5
- package/components/DataGrid/utils/index.d.ts +4 -0
- package/components/DataGrid/utils/index.js +4 -0
- package/components/DataGridCollapsibleRow/useLogic/useLogic.d.ts +0 -1
- package/components/DataGridCollapsibleRow/useLogic/useLogic.js +1 -2
- package/components/DataGridInfinite/DataGridInfinite.d.ts +1 -1
- package/components/DataGridInfinite/DataGridInfinite.js +28 -24
- package/components/DataGridInfinite/Row/Row.js +2 -2
- package/components/DataGridInfinite/Row/useLogic/useLogic.d.ts +0 -1
- package/components/DataGridInfinite/Row/useLogic/useLogic.js +1 -2
- package/components/DataGridInfinite/faker.d.ts +0 -1
- package/components/DataGridInfinite/index.d.ts +1 -0
- package/components/DataGridInfinite/public.d.ts +1 -0
- package/components/DataGridInfinite/types.d.ts +1 -1
- package/components/DataGridInfinite/useLogic/useLogic.d.ts +293 -5
- package/components/DataGridInfinite/useLogic/useLogic.js +14 -7
- package/components/DatePicker/useLogic/useLogic.js +18 -13
- package/components/Filename/Filename.js +2 -2
- package/components/Filename/useLogic/useLogic.d.ts +3 -2
- package/components/Filename/useLogic/useLogic.js +6 -2
- package/components/HintPopover/styles.js +5 -0
- package/components/OverflowTypography/OverflowTypography.js +3 -3
- package/components/OverflowTypography/hooks/useOverflowed/useOverflowed.d.ts +20 -3
- package/components/OverflowTypography/hooks/useOverflowed/useOverflowed.js +32 -41
- package/components/OverflowTypography/useLogic/useLogic.d.ts +3 -2
- package/components/OverflowTypography/useLogic/useLogic.js +8 -2
- package/components/RadioCard/RadioCard.d.ts +6 -0
- package/components/RadioCard/RadioCard.js +3 -0
- package/components/Select/OptionMenuItem/OptionMenuItem.d.ts +5 -0
- package/components/Select/OptionMenuItem/OptionMenuItem.js +31 -0
- package/components/Select/OptionMenuItem/index.d.ts +1 -0
- package/components/Select/OptionMenuItem/index.js +1 -0
- package/components/Select/OptionMenuItem/types.d.ts +31 -0
- package/components/Select/Select.d.ts +9 -2
- package/components/Select/Select.js +45 -12
- package/components/Select/cases/groups/SelectGroup/GroupMenuItem/GroupMenuItem.d.ts +5 -0
- package/components/Select/cases/groups/SelectGroup/GroupMenuItem/GroupMenuItem.js +20 -0
- package/components/Select/cases/groups/SelectGroup/GroupMenuItem/constants.d.ts +2 -0
- package/components/Select/cases/groups/SelectGroup/GroupMenuItem/constants.js +2 -0
- package/components/Select/cases/groups/SelectGroup/GroupMenuItem/index.d.ts +1 -0
- package/components/Select/cases/groups/SelectGroup/GroupMenuItem/index.js +1 -0
- package/components/Select/cases/groups/SelectGroup/GroupMenuItem/styles.d.ts +39 -0
- package/components/Select/cases/groups/SelectGroup/GroupMenuItem/styles.js +37 -0
- package/components/Select/cases/groups/SelectGroup/GroupMenuItem/types.d.ts +32 -0
- package/components/Select/cases/groups/SelectGroup/GroupMenuItem/types.js +1 -0
- package/components/Select/cases/groups/SelectGroup/GroupOptions/GroupOptions.d.ts +2 -0
- package/components/Select/cases/groups/SelectGroup/GroupOptions/GroupOptions.js +4 -0
- package/components/Select/cases/groups/SelectGroup/GroupOptions/index.d.ts +1 -0
- package/components/Select/cases/groups/SelectGroup/GroupOptions/index.js +1 -0
- package/components/Select/cases/groups/SelectGroup/GroupOptions/types.d.ts +31 -0
- package/components/Select/cases/groups/SelectGroup/GroupOptions/types.js +1 -0
- package/components/Select/cases/groups/SelectGroup/GroupSubheader/GroupSubheader.d.ts +5 -0
- package/components/Select/cases/groups/SelectGroup/GroupSubheader/GroupSubheader.js +7 -0
- package/components/Select/cases/groups/SelectGroup/GroupSubheader/index.d.ts +1 -0
- package/components/Select/cases/groups/SelectGroup/GroupSubheader/index.js +1 -0
- package/components/Select/cases/groups/SelectGroup/GroupSubheader/styles.d.ts +3 -0
- package/components/Select/cases/groups/SelectGroup/GroupSubheader/styles.js +11 -0
- package/components/Select/cases/groups/SelectGroup/GroupSubheader/types.d.ts +6 -0
- package/components/Select/cases/groups/SelectGroup/GroupSubheader/types.js +1 -0
- package/components/Select/cases/groups/SelectGroup/SelectGroup.d.ts +5 -0
- package/components/Select/cases/groups/SelectGroup/SelectGroup.js +28 -0
- package/components/Select/cases/groups/SelectGroup/index.d.ts +1 -0
- package/components/Select/cases/groups/SelectGroup/index.js +1 -0
- package/components/{ResizingDataGrid/Sliders → Select/cases/groups/SelectGroup}/styles.d.ts +4 -8
- package/components/Select/cases/groups/SelectGroup/styles.js +13 -0
- package/components/Select/cases/groups/SelectGroup/types.d.ts +53 -0
- package/components/Select/cases/groups/SelectGroup/types.js +1 -0
- package/components/Select/cases/groups/SelectGroup/useLogic/index.js +1 -0
- package/components/Select/cases/groups/SelectGroup/useLogic/useLogic.d.ts +9 -0
- package/components/Select/cases/groups/SelectGroup/useLogic/useLogic.js +10 -0
- package/components/Select/cases/groups/constants.d.ts +10 -0
- package/components/Select/cases/groups/constants.js +11 -0
- package/components/Select/cases/groups/hooks/index.d.ts +1 -0
- package/components/Select/cases/groups/hooks/index.js +1 -0
- package/components/Select/cases/groups/hooks/useGroups/hooks/index.d.ts +1 -0
- package/components/Select/cases/groups/hooks/useGroups/hooks/index.js +1 -0
- package/components/Select/cases/groups/hooks/useGroups/hooks/useCollapsedGroups/index.d.ts +1 -0
- package/components/Select/cases/groups/hooks/useGroups/hooks/useCollapsedGroups/index.js +1 -0
- package/components/Select/cases/groups/hooks/useGroups/hooks/useCollapsedGroups/useCollapsedGroups.d.ts +20 -0
- package/components/Select/cases/groups/hooks/useGroups/hooks/useCollapsedGroups/useCollapsedGroups.js +23 -0
- package/components/Select/cases/groups/hooks/useGroups/index.d.ts +1 -0
- package/components/Select/cases/groups/hooks/useGroups/index.js +1 -0
- package/components/Select/cases/groups/hooks/useGroups/useGroups.d.ts +55 -0
- package/components/Select/cases/groups/hooks/useGroups/useGroups.js +65 -0
- package/components/Select/cases/groups/index.d.ts +3 -0
- package/components/Select/cases/groups/index.js +2 -0
- package/components/Select/cases/groups/types.d.ts +21 -0
- package/components/Select/cases/groups/types.js +1 -0
- package/components/Select/cases/groups/utils/checkHasBottomDivider/checkHasBottomDivider.d.ts +4 -0
- package/components/Select/cases/groups/utils/checkHasBottomDivider/checkHasBottomDivider.js +12 -0
- package/components/Select/cases/groups/utils/checkHasBottomDivider/index.d.ts +1 -0
- package/components/Select/cases/groups/utils/checkHasBottomDivider/index.js +1 -0
- package/components/Select/cases/groups/utils/expandTagsList/expandTagsList.d.ts +5 -0
- package/components/Select/cases/groups/utils/expandTagsList/expandTagsList.js +8 -0
- package/components/Select/cases/groups/utils/expandTagsList/index.d.ts +1 -0
- package/components/Select/cases/groups/utils/expandTagsList/index.js +1 -0
- package/components/Select/cases/groups/utils/findGroupByValue/findGroupByValue.d.ts +5 -0
- package/components/Select/cases/groups/utils/findGroupByValue/findGroupByValue.js +5 -0
- package/components/Select/cases/groups/utils/findGroupByValue/index.d.ts +1 -0
- package/components/Select/cases/groups/utils/findGroupByValue/index.js +1 -0
- package/components/Select/cases/groups/utils/getGroupSelection/getGroupSelection.d.ts +9 -0
- package/components/Select/cases/groups/utils/getGroupSelection/getGroupSelection.js +12 -0
- package/components/Select/cases/groups/utils/getGroupSelection/index.d.ts +1 -0
- package/components/Select/cases/groups/utils/getGroupSelection/index.js +1 -0
- package/components/Select/cases/groups/utils/getGroupValue/getGroupValue.d.ts +4 -0
- package/components/Select/cases/groups/utils/getGroupValue/getGroupValue.js +5 -0
- package/components/Select/cases/groups/utils/getGroupValue/index.d.ts +1 -0
- package/components/Select/cases/groups/utils/getGroupValue/index.js +1 -0
- package/components/Select/cases/groups/utils/getTagsList/getTagsList.d.ts +5 -0
- package/components/Select/cases/groups/utils/getTagsList/getTagsList.js +15 -0
- package/components/Select/cases/groups/utils/getTagsList/index.d.ts +1 -0
- package/components/Select/cases/groups/utils/getTagsList/index.js +1 -0
- package/components/Select/cases/groups/utils/index.d.ts +7 -0
- package/components/Select/cases/groups/utils/index.js +7 -0
- package/components/Select/cases/groups/utils/toggleGroup/index.d.ts +1 -0
- package/components/Select/cases/groups/utils/toggleGroup/index.js +1 -0
- package/components/Select/cases/groups/utils/toggleGroup/toggleGroup.d.ts +6 -0
- package/components/Select/cases/groups/utils/toggleGroup/toggleGroup.js +14 -0
- package/components/Select/cases/index.d.ts +1 -0
- package/components/Select/cases/index.js +1 -0
- package/components/Select/constants.d.ts +7 -0
- package/components/Select/constants.js +8 -0
- package/components/Select/index.d.ts +1 -1
- package/components/Select/public.d.ts +1 -1
- package/components/Select/styles.d.ts +10 -1
- package/components/Select/styles.js +27 -0
- package/components/Select/types.d.ts +81 -2
- package/components/Select/useLogic/hooks/index.d.ts +1 -0
- package/components/Select/useLogic/hooks/index.js +1 -0
- package/components/Select/useLogic/hooks/useOptions/index.d.ts +1 -0
- package/components/Select/useLogic/hooks/useOptions/index.js +1 -0
- package/components/Select/useLogic/hooks/useOptions/useOptions.d.ts +36 -0
- package/components/Select/useLogic/hooks/useOptions/useOptions.js +38 -0
- package/components/Select/useLogic/useLogic.d.ts +23 -4
- package/components/Select/useLogic/useLogic.js +119 -35
- package/components/Select/utils/checkIsEqualSelectValues/checkIsEqualSelectValues.d.ts +5 -0
- package/components/Select/utils/checkIsEqualSelectValues/checkIsEqualSelectValues.js +14 -0
- package/components/Select/utils/checkIsEqualSelectValues/index.d.ts +1 -0
- package/components/Select/utils/checkIsEqualSelectValues/index.js +1 -0
- package/components/Select/utils/checkIsSelectOptionsGroup/checkIsSelectOptionsGroup.d.ts +5 -0
- package/components/Select/utils/checkIsSelectOptionsGroup/checkIsSelectOptionsGroup.js +8 -0
- package/components/Select/utils/checkIsSelectOptionsGroup/index.d.ts +1 -0
- package/components/Select/utils/checkIsSelectOptionsGroup/index.js +1 -0
- package/components/Select/utils/getSelectOptionsList/getSelectOptionsList.d.ts +5 -0
- package/components/Select/utils/getSelectOptionsList/getSelectOptionsList.js +5 -0
- package/components/Select/utils/getSelectOptionsList/index.d.ts +1 -0
- package/components/Select/utils/getSelectOptionsList/index.js +1 -0
- package/components/Select/utils/index.d.ts +3 -0
- package/components/Select/utils/index.js +3 -0
- package/components/SelectionCard/DefaultIndicator/DefaultIndicator.d.ts +5 -0
- package/components/SelectionCard/DefaultIndicator/DefaultIndicator.js +14 -0
- package/components/SelectionCard/DefaultIndicator/index.d.ts +1 -0
- package/components/SelectionCard/DefaultIndicator/index.js +1 -0
- package/components/SelectionCard/DefaultIndicator/types.d.ts +7 -0
- package/components/SelectionCard/DefaultIndicator/types.js +1 -0
- package/components/SelectionCard/SelectionCard.d.ts +5 -0
- package/components/SelectionCard/SelectionCard.js +48 -0
- package/components/SelectionCard/cases/grouped/index.d.ts +1 -0
- package/components/SelectionCard/cases/grouped/index.js +1 -0
- package/components/SelectionCard/cases/grouped/styles.d.ts +10 -0
- package/components/SelectionCard/cases/grouped/styles.js +128 -0
- package/components/SelectionCard/cases/index.d.ts +2 -0
- package/components/SelectionCard/cases/index.js +2 -0
- package/components/SelectionCard/cases/standalone/index.d.ts +1 -0
- package/components/SelectionCard/cases/standalone/index.js +1 -0
- package/components/SelectionCard/cases/standalone/styles.d.ts +10 -0
- package/components/SelectionCard/cases/standalone/styles.js +77 -0
- package/components/SelectionCard/constants.d.ts +15 -0
- package/components/SelectionCard/constants.js +16 -0
- package/components/SelectionCard/index.d.ts +2 -0
- package/components/SelectionCard/index.js +1 -0
- package/components/SelectionCard/public.d.ts +2 -0
- package/components/SelectionCard/public.js +1 -0
- package/components/SelectionCard/styles.d.ts +39 -0
- package/components/SelectionCard/styles.js +81 -0
- package/components/SelectionCard/types.d.ts +31 -0
- package/components/SelectionCard/types.js +1 -0
- package/components/SelectionCard/useLogic/index.d.ts +1 -0
- package/components/SelectionCard/useLogic/index.js +1 -0
- package/components/SelectionCard/useLogic/useLogic.d.ts +18 -0
- package/components/SelectionCard/useLogic/useLogic.js +48 -0
- package/components/SelectionCardGroup/SelectionCardGroup.d.ts +5 -0
- package/components/SelectionCardGroup/SelectionCardGroup.js +19 -0
- package/components/SelectionCardGroup/SelectionCardGroupContext/SelectionCardGroupContext.d.ts +21 -0
- package/components/SelectionCardGroup/SelectionCardGroupContext/SelectionCardGroupContext.js +14 -0
- package/components/SelectionCardGroup/SelectionCardGroupContext/index.d.ts +1 -0
- package/components/SelectionCardGroup/SelectionCardGroupContext/index.js +1 -0
- package/components/SelectionCardGroup/cases/grouped/constants.d.ts +4 -0
- package/components/SelectionCardGroup/cases/grouped/constants.js +4 -0
- package/components/SelectionCardGroup/cases/grouped/index.d.ts +1 -0
- package/components/SelectionCardGroup/cases/grouped/index.js +1 -0
- package/components/SelectionCardGroup/cases/index.d.ts +4 -0
- package/components/SelectionCardGroup/cases/index.js +4 -0
- package/components/SelectionCardGroup/cases/multiple/constants.d.ts +5 -0
- package/components/SelectionCardGroup/cases/multiple/constants.js +9 -0
- package/components/SelectionCardGroup/cases/multiple/index.d.ts +2 -0
- package/components/SelectionCardGroup/cases/multiple/index.js +2 -0
- package/components/SelectionCardGroup/cases/multiple/utils/index.d.ts +1 -0
- package/components/SelectionCardGroup/cases/multiple/utils/index.js +1 -0
- package/components/SelectionCardGroup/cases/multiple/utils/toggleValue/index.d.ts +1 -0
- package/components/SelectionCardGroup/cases/multiple/utils/toggleValue/index.js +1 -0
- package/components/SelectionCardGroup/cases/multiple/utils/toggleValue/toggleValue.d.ts +4 -0
- package/components/SelectionCardGroup/cases/multiple/utils/toggleValue/toggleValue.js +9 -0
- package/components/SelectionCardGroup/cases/single/constants.d.ts +5 -0
- package/components/SelectionCardGroup/cases/single/constants.js +9 -0
- package/components/SelectionCardGroup/cases/single/index.d.ts +2 -0
- package/components/SelectionCardGroup/cases/single/index.js +2 -0
- package/components/SelectionCardGroup/cases/single/utils/index.d.ts +1 -0
- package/components/SelectionCardGroup/cases/single/utils/index.js +1 -0
- package/components/SelectionCardGroup/cases/single/utils/selectValue/index.d.ts +1 -0
- package/components/SelectionCardGroup/cases/single/utils/selectValue/index.js +1 -0
- package/components/SelectionCardGroup/cases/single/utils/selectValue/selectValue.d.ts +5 -0
- package/components/SelectionCardGroup/cases/single/utils/selectValue/selectValue.js +10 -0
- package/components/SelectionCardGroup/cases/standalone/constants.d.ts +2 -0
- package/components/SelectionCardGroup/cases/standalone/constants.js +2 -0
- package/components/SelectionCardGroup/cases/standalone/index.d.ts +3 -0
- package/components/SelectionCardGroup/cases/standalone/index.js +3 -0
- package/components/SelectionCardGroup/cases/standalone/styles.d.ts +7 -0
- package/components/SelectionCardGroup/cases/standalone/styles.js +10 -0
- package/components/SelectionCardGroup/cases/standalone/utils/getGridColumns/getGridColumns.d.ts +5 -0
- package/components/SelectionCardGroup/cases/standalone/utils/getGridColumns/getGridColumns.js +10 -0
- package/components/SelectionCardGroup/cases/standalone/utils/getGridColumns/index.d.ts +1 -0
- package/components/SelectionCardGroup/cases/standalone/utils/getGridColumns/index.js +1 -0
- package/components/SelectionCardGroup/cases/standalone/utils/index.d.ts +1 -0
- package/components/SelectionCardGroup/cases/standalone/utils/index.js +1 -0
- package/components/SelectionCardGroup/constants.d.ts +3 -0
- package/components/SelectionCardGroup/constants.js +4 -0
- package/components/SelectionCardGroup/index.d.ts +3 -0
- package/components/SelectionCardGroup/index.js +2 -0
- package/components/SelectionCardGroup/public.d.ts +2 -0
- package/components/SelectionCardGroup/public.js +1 -0
- package/components/SelectionCardGroup/styles.d.ts +15 -0
- package/components/SelectionCardGroup/styles.js +17 -0
- package/components/SelectionCardGroup/types.d.ts +120 -0
- package/components/SelectionCardGroup/types.js +1 -0
- package/components/SelectionCardGroup/useLogic/index.d.ts +1 -0
- package/components/SelectionCardGroup/useLogic/index.js +1 -0
- package/components/SelectionCardGroup/useLogic/useLogic.d.ts +17 -0
- package/components/SelectionCardGroup/useLogic/useLogic.js +59 -0
- package/components/SelectionCardGroup/useLogic/utils/createSelectHandler/createSelectHandler.d.ts +5 -0
- package/components/SelectionCardGroup/useLogic/utils/createSelectHandler/createSelectHandler.js +10 -0
- package/components/SelectionCardGroup/useLogic/utils/createSelectHandler/index.d.ts +1 -0
- package/components/SelectionCardGroup/useLogic/utils/createSelectHandler/index.js +1 -0
- package/components/SelectionCardGroup/useLogic/utils/index.d.ts +1 -0
- package/components/SelectionCardGroup/useLogic/utils/index.js +1 -0
- package/components/SelectionCardGroup/utils/getSelectedValuesList/getSelectedValuesList.d.ts +5 -0
- package/components/SelectionCardGroup/utils/getSelectedValuesList/getSelectedValuesList.js +12 -0
- package/components/SelectionCardGroup/utils/getSelectedValuesList/index.d.ts +1 -0
- package/components/SelectionCardGroup/utils/getSelectedValuesList/index.js +1 -0
- package/components/SelectionCardGroup/utils/index.d.ts +1 -0
- package/components/SelectionCardGroup/utils/index.js +1 -0
- package/components/Status/Status.d.ts +2 -0
- package/components/Status/Status.js +37 -0
- package/components/Status/constants.d.ts +17 -0
- package/components/Status/constants.js +18 -0
- package/components/Status/index.d.ts +3 -0
- package/components/Status/index.js +2 -0
- package/components/Status/public.d.ts +3 -0
- package/components/Status/public.js +2 -0
- package/components/Status/styles.d.ts +24 -0
- package/components/Status/styles.js +120 -0
- package/components/Status/types.d.ts +17 -0
- package/components/Status/types.js +1 -0
- package/components/Status/useLogic/index.d.ts +1 -0
- package/components/Status/useLogic/index.js +1 -0
- package/components/Status/useLogic/useLogic.d.ts +11 -0
- package/components/Status/useLogic/useLogic.js +33 -0
- package/components/TagBadge/styles.js +21 -3
- package/components/index.d.ts +1 -1
- package/components/utils/setRef/index.d.ts +1 -0
- package/components/utils/setRef/index.js +1 -0
- package/components/utils/setRef/setRef.d.ts +5 -0
- package/components/utils/setRef/setRef.js +12 -0
- package/hook-form/EditableText/EditableText.js +14 -7
- package/hook-form/EditableText/EditingForm/EditingForm.js +2 -2
- package/hook-form/EditableText/EditingForm/styles.js +8 -0
- package/hook-form/EditableText/constants.d.ts +1 -0
- package/hook-form/EditableText/constants.js +1 -0
- package/hook-form/EditableText/styles.d.ts +4 -0
- package/hook-form/EditableText/styles.js +5 -9
- package/hook-form/EditableText/useLogic/useLogic.d.ts +1 -0
- package/hook-form/EditableText/useLogic/useLogic.js +5 -0
- package/hook-form/FormQuickFilters/FormQuickFilters.js +2 -14
- package/hook-form/FormQuickFilters/useLogic/useLogic.d.ts +7 -4
- package/hook-form/FormQuickFilters/useLogic/useLogic.js +12 -7
- package/hook-form/FormSelect/FormSelect.d.ts +5 -2
- package/hook-form/FormSelectionCardGroup/FormSelectionCardGroup.d.ts +7 -0
- package/hook-form/FormSelectionCardGroup/FormSelectionCardGroup.js +18 -0
- package/hook-form/FormSelectionCardGroup/index.d.ts +1 -0
- package/hook-form/FormSelectionCardGroup/index.js +1 -0
- package/hook-form/FormSelectionCardGroup/public.d.ts +1 -0
- package/hook-form/FormSelectionCardGroup/public.js +1 -0
- package/node/components/DataGrid/Body/types.d.ts +0 -4
- package/node/components/DataGrid/Cell/useLogic/useLogic.js +2 -1
- package/node/components/DataGrid/DataGrid.d.ts +1 -1
- package/node/components/DataGrid/DataGrid.js +9 -5
- package/node/components/DataGrid/DataGridContext/DataGridContext.d.ts +0 -1
- package/node/components/DataGrid/DataGridContext/DataGridContext.js +0 -1
- package/node/components/DataGrid/DataGridContext/DataGridProvider/DataGridProvider.d.ts +2 -2
- package/node/components/DataGrid/DataGridContext/DataGridProvider/DataGridProvider.js +1 -3
- package/node/components/DataGrid/Head/Head.d.ts +16 -7
- package/node/components/DataGrid/Head/Head.js +5 -2
- package/node/components/DataGrid/Head/HeadColumns/GroupColumns/GroupColumns.d.ts +2 -2
- package/node/components/DataGrid/Head/HeadColumns/GroupColumns/GroupColumns.js +4 -1
- package/node/components/DataGrid/Head/HeadColumns/HeadColumns.d.ts +2 -2
- package/node/components/DataGrid/Head/HeadColumns/HeadColumns.js +2 -2
- package/node/components/DataGrid/Head/HeadColumns/SingleColumn/SingleColumn.d.ts +3 -3
- package/node/components/DataGrid/Head/HeadColumns/useLogic/useLogic.d.ts +1 -1
- package/node/components/DataGrid/Head/HeadColumns/utils/getHeadCellProps.d.ts +1 -1
- package/node/components/DataGrid/Head/HeadColumns/utils/getHeadCellProps.js +4 -2
- package/node/components/DataGrid/Head/styles.d.ts +0 -2
- package/node/components/DataGrid/Head/styles.js +4 -4
- package/node/components/DataGrid/Head/useLogic/index.d.ts +1 -0
- package/node/components/DataGrid/Head/useLogic/useLogic.d.ts +5 -0
- package/node/components/DataGrid/Head/useLogic/useLogic.js +11 -0
- package/node/components/DataGrid/HeadCell/HeadCell.d.ts +3 -3
- package/node/components/DataGrid/HeadCell/useLogic/useLogic.d.ts +2 -2
- package/node/components/DataGrid/PinnedSections/PinnedSections.d.ts +4 -8
- package/node/components/DataGrid/PinnedSections/PinnedSections.js +2 -2
- package/node/components/DataGrid/PinnedSections/Section/Section.d.ts +1 -1
- package/node/components/DataGrid/PinnedSections/Section/Section.js +3 -1
- package/node/components/DataGrid/PinnedSections/Section/types.d.ts +3 -3
- package/node/components/DataGrid/PinnedSections/styles.d.ts +0 -2
- package/node/components/DataGrid/PinnedSections/styles.js +1 -1
- package/node/components/DataGrid/Row/NestedChildren/NestedChildren.d.ts +0 -4
- package/node/components/DataGrid/Row/NestedChildren/NestedChildren.js +2 -2
- package/node/components/DataGrid/Row/NestedChildren/styles.d.ts +0 -1
- package/node/components/DataGrid/Row/NestedChildren/styles.js +2 -2
- package/node/components/DataGrid/Row/Row.js +3 -4
- package/node/components/DataGrid/Row/styles.d.ts +0 -2
- package/node/components/DataGrid/Row/styles.js +1 -1
- package/node/components/DataGrid/Row/types.d.ts +0 -4
- package/node/components/DataGrid/RowBase/styles.js +1 -3
- package/node/components/DataGrid/RowBase/types.d.ts +0 -4
- package/node/components/DataGrid/RowBase/useLogic/useLogic.d.ts +1 -1
- package/node/components/DataGrid/RowBase/useLogic/useLogic.js +1 -2
- package/node/components/DataGrid/constants.d.ts +5 -0
- package/node/components/DataGrid/constants.js +6 -1
- package/node/components/DataGrid/faker.d.ts +0 -2
- package/node/components/DataGrid/hooks/index.d.ts +1 -0
- package/node/components/DataGrid/hooks/index.js +1 -0
- package/node/components/DataGrid/hooks/usePlugins/index.d.ts +1 -0
- package/node/components/{ResizingDataGrid/hooks/useComputedColumns/utils/createStorageKey → DataGrid/hooks/usePlugins}/index.js +1 -1
- package/node/components/DataGrid/hooks/usePlugins/usePlugins.d.ts +319 -0
- package/node/components/DataGrid/hooks/usePlugins/usePlugins.js +58 -0
- package/node/components/DataGrid/index.d.ts +1 -1
- package/node/components/DataGrid/plugins/resize/ResizeHeadAddon/ResizeHeadAddon.d.ts +5 -0
- package/node/components/DataGrid/plugins/resize/ResizeHeadAddon/ResizeHeadAddon.js +25 -0
- package/node/components/DataGrid/plugins/resize/ResizeHeadAddon/index.d.ts +1 -0
- package/node/components/{ResizingDataGrid/Sliders/useLogic/utils/computePositions → DataGrid/plugins/resize/ResizeHeadAddon}/index.js +1 -1
- package/node/components/DataGrid/plugins/resize/ResizeHeadAddon/styles.d.ts +5 -0
- package/node/components/DataGrid/plugins/resize/ResizeHeadAddon/styles.js +79 -0
- package/node/components/DataGrid/plugins/resize/ResizePlugin.d.ts +8 -0
- package/node/components/DataGrid/plugins/resize/ResizePlugin.js +17 -0
- package/node/components/DataGrid/plugins/resize/constants.d.ts +9 -0
- package/node/components/DataGrid/plugins/resize/constants.js +12 -0
- package/node/components/DataGrid/plugins/resize/hooks/index.d.ts +1 -0
- package/node/components/DataGrid/plugins/resize/hooks/index.js +17 -0
- package/node/components/DataGrid/plugins/resize/hooks/useResize/hooks/index.d.ts +2 -0
- package/node/components/DataGrid/plugins/resize/hooks/useResize/hooks/index.js +18 -0
- package/node/components/DataGrid/plugins/resize/hooks/useResize/hooks/useResizeStorage/index.d.ts +1 -0
- package/node/components/DataGrid/plugins/resize/hooks/useResize/hooks/useResizeStorage/index.js +17 -0
- package/node/components/DataGrid/plugins/resize/hooks/useResize/hooks/useResizeStorage/useResizeStorage.d.ts +22 -0
- package/node/components/DataGrid/plugins/resize/hooks/useResize/hooks/useResizeStorage/useResizeStorage.js +24 -0
- package/node/components/DataGrid/plugins/resize/hooks/useResize/hooks/useTrackWidths/index.d.ts +1 -0
- package/node/components/DataGrid/plugins/resize/hooks/useResize/hooks/useTrackWidths/index.js +17 -0
- package/node/components/DataGrid/plugins/resize/hooks/useResize/hooks/useTrackWidths/useTrackWidths.d.ts +20 -0
- package/node/components/DataGrid/plugins/resize/hooks/useResize/hooks/useTrackWidths/useTrackWidths.js +37 -0
- package/node/components/DataGrid/plugins/resize/hooks/useResize/index.d.ts +1 -0
- package/node/components/DataGrid/plugins/resize/hooks/useResize/index.js +17 -0
- package/node/components/DataGrid/plugins/resize/hooks/useResize/useResize.d.ts +15 -0
- package/node/components/DataGrid/plugins/resize/hooks/useResize/useResize.js +168 -0
- package/node/components/DataGrid/plugins/resize/index.d.ts +2 -0
- package/node/components/DataGrid/plugins/resize/index.js +5 -0
- package/node/components/DataGrid/plugins/resize/public.d.ts +2 -0
- package/node/components/DataGrid/plugins/resize/public.js +5 -0
- package/node/components/DataGrid/plugins/resize/types.d.ts +54 -0
- package/node/components/DataGrid/plugins/resize/utils/assertResizeConfig/assertResizeConfig.d.ts +5 -0
- package/node/components/DataGrid/plugins/resize/utils/assertResizeConfig/assertResizeConfig.js +25 -0
- package/node/components/DataGrid/plugins/resize/utils/assertResizeConfig/index.d.ts +1 -0
- package/node/components/{ResizingDataGrid/hooks/useComputedColumns → DataGrid/plugins/resize/utils/assertResizeConfig}/index.js +1 -1
- package/node/components/DataGrid/plugins/resize/utils/getFixedColumnsList/getFixedColumnsList.d.ts +6 -0
- package/node/components/DataGrid/plugins/resize/utils/getFixedColumnsList/getFixedColumnsList.js +9 -0
- package/node/components/DataGrid/plugins/resize/utils/getFixedColumnsList/index.d.ts +1 -0
- package/node/components/DataGrid/plugins/resize/utils/getFixedColumnsList/index.js +17 -0
- package/node/components/DataGrid/plugins/resize/utils/getFractionsList/getFractionsList.d.ts +4 -0
- package/node/components/DataGrid/plugins/resize/utils/getFractionsList/getFractionsList.js +14 -0
- package/node/components/DataGrid/plugins/resize/utils/getFractionsList/index.d.ts +1 -0
- package/node/components/DataGrid/plugins/resize/utils/getFractionsList/index.js +17 -0
- package/node/components/DataGrid/plugins/resize/utils/getHandleOffsetsList/getHandleOffsetsList.d.ts +4 -0
- package/node/components/DataGrid/plugins/resize/utils/getHandleOffsetsList/getHandleOffsetsList.js +14 -0
- package/node/components/DataGrid/plugins/resize/utils/getHandleOffsetsList/index.d.ts +1 -0
- package/node/components/{ResizingDataGrid/Sliders/useLogic/utils/createInitialSliders → DataGrid/plugins/resize/utils/getHandleOffsetsList}/index.js +1 -1
- package/node/components/DataGrid/plugins/resize/utils/getMinWidthsList/getMinWidthsList.d.ts +6 -0
- package/node/components/DataGrid/plugins/resize/utils/getMinWidthsList/getMinWidthsList.js +8 -0
- package/node/components/DataGrid/plugins/resize/utils/getMinWidthsList/index.d.ts +1 -0
- package/node/components/DataGrid/plugins/resize/utils/getMinWidthsList/index.js +17 -0
- package/node/components/DataGrid/plugins/resize/utils/getResizedGridColumns/getResizedGridColumns.d.ts +22 -0
- package/node/components/DataGrid/plugins/resize/utils/getResizedGridColumns/getResizedGridColumns.js +19 -0
- package/node/components/DataGrid/plugins/resize/utils/getResizedGridColumns/index.d.ts +1 -0
- package/node/components/DataGrid/plugins/resize/utils/getResizedGridColumns/index.js +17 -0
- package/node/components/DataGrid/plugins/resize/utils/getStorageKey/getStorageKey.d.ts +4 -0
- package/node/components/DataGrid/plugins/resize/utils/getStorageKey/getStorageKey.js +9 -0
- package/node/components/DataGrid/plugins/resize/utils/getStorageKey/index.d.ts +1 -0
- package/node/components/DataGrid/plugins/resize/utils/getStorageKey/index.js +17 -0
- package/node/components/DataGrid/plugins/resize/utils/getTrackWidthsList/getTrackWidthsList.d.ts +5 -0
- package/node/components/DataGrid/plugins/resize/utils/getTrackWidthsList/getTrackWidthsList.js +12 -0
- package/node/components/DataGrid/plugins/resize/utils/getTrackWidthsList/index.d.ts +1 -0
- package/node/components/DataGrid/plugins/resize/utils/getTrackWidthsList/index.js +17 -0
- package/node/components/DataGrid/plugins/resize/utils/index.d.ts +10 -0
- package/node/components/DataGrid/plugins/resize/utils/index.js +26 -0
- package/node/components/DataGrid/plugins/resize/utils/parseStorageValue/index.d.ts +1 -0
- package/node/components/DataGrid/plugins/resize/utils/parseStorageValue/index.js +17 -0
- package/node/components/DataGrid/plugins/resize/utils/parseStorageValue/parseStorageValue.d.ts +19 -0
- package/node/components/DataGrid/plugins/resize/utils/parseStorageValue/parseStorageValue.js +31 -0
- package/node/components/DataGrid/plugins/resize/utils/resizeAdjacentColumns/index.d.ts +1 -0
- package/node/components/DataGrid/plugins/resize/utils/resizeAdjacentColumns/index.js +17 -0
- package/node/components/DataGrid/plugins/resize/utils/resizeAdjacentColumns/resizeAdjacentColumns.d.ts +25 -0
- package/node/components/DataGrid/plugins/resize/utils/resizeAdjacentColumns/resizeAdjacentColumns.js +25 -0
- package/node/components/DataGrid/public.d.ts +1 -1
- package/node/components/DataGrid/styles.js +17 -0
- package/node/components/DataGrid/tests/resize/resizeHelper.d.ts +37 -0
- package/node/components/DataGrid/tests/resize/resizeHelper.js +74 -0
- package/node/components/DataGrid/types.d.ts +55 -12
- package/node/components/DataGrid/useLogic/useLogic.d.ts +293 -3
- package/node/components/DataGrid/useLogic/useLogic.js +12 -3
- package/node/components/DataGrid/utils/assertUniquePlugins/assertUniquePlugins.d.ts +5 -0
- package/node/components/DataGrid/utils/assertUniquePlugins/assertUniquePlugins.js +16 -0
- package/node/components/DataGrid/utils/assertUniquePlugins/index.d.ts +1 -0
- package/node/components/DataGrid/utils/assertUniquePlugins/index.js +17 -0
- package/node/components/DataGrid/utils/findPlugin/findPlugin.d.ts +5 -0
- package/node/components/DataGrid/utils/findPlugin/findPlugin.js +8 -0
- package/node/components/DataGrid/utils/findPlugin/index.d.ts +1 -0
- package/node/components/DataGrid/utils/findPlugin/index.js +17 -0
- package/node/components/DataGrid/utils/getAutoTableId/getAutoTableId.d.ts +5 -0
- package/node/components/DataGrid/utils/getAutoTableId/getAutoTableId.js +14 -0
- package/node/components/DataGrid/utils/getAutoTableId/index.d.ts +1 -0
- package/node/components/DataGrid/utils/getAutoTableId/index.js +17 -0
- package/node/components/DataGrid/utils/getColumnsSignature/getColumnsSignature.d.ts +6 -0
- package/node/components/DataGrid/utils/getColumnsSignature/getColumnsSignature.js +8 -0
- package/node/components/DataGrid/utils/getColumnsSignature/index.d.ts +1 -0
- package/node/components/DataGrid/utils/getColumnsSignature/index.js +17 -0
- package/node/components/DataGrid/utils/getDataGridCssVars/getDataGridCssVars.d.ts +15 -1
- package/node/components/DataGrid/utils/getDataGridCssVars/getDataGridCssVars.js +7 -5
- package/node/components/DataGrid/utils/index.d.ts +4 -0
- package/node/components/DataGrid/utils/index.js +9 -1
- package/node/components/DataGridCollapsibleRow/useLogic/useLogic.d.ts +0 -1
- package/node/components/DataGridCollapsibleRow/useLogic/useLogic.js +1 -2
- package/node/components/DataGridInfinite/DataGridInfinite.d.ts +1 -1
- package/node/components/DataGridInfinite/DataGridInfinite.js +28 -24
- package/node/components/DataGridInfinite/Row/Row.js +2 -2
- package/node/components/DataGridInfinite/Row/useLogic/useLogic.d.ts +0 -1
- package/node/components/DataGridInfinite/Row/useLogic/useLogic.js +1 -2
- package/node/components/DataGridInfinite/faker.d.ts +0 -1
- package/node/components/DataGridInfinite/index.d.ts +1 -0
- package/node/components/DataGridInfinite/public.d.ts +1 -0
- package/node/components/DataGridInfinite/types.d.ts +1 -1
- package/node/components/DataGridInfinite/useLogic/useLogic.d.ts +293 -5
- package/node/components/DataGridInfinite/useLogic/useLogic.js +13 -6
- package/node/components/DatePicker/useLogic/useLogic.js +18 -13
- package/node/components/Filename/Filename.js +2 -2
- package/node/components/Filename/useLogic/useLogic.d.ts +3 -2
- package/node/components/Filename/useLogic/useLogic.js +6 -2
- package/node/components/HintPopover/styles.js +5 -0
- package/node/components/OverflowTypography/OverflowTypography.js +3 -3
- package/node/components/OverflowTypography/hooks/useOverflowed/useOverflowed.d.ts +20 -3
- package/node/components/OverflowTypography/hooks/useOverflowed/useOverflowed.js +31 -40
- package/node/components/OverflowTypography/useLogic/useLogic.d.ts +3 -2
- package/node/components/OverflowTypography/useLogic/useLogic.js +8 -2
- package/node/components/RadioCard/RadioCard.d.ts +6 -0
- package/node/components/RadioCard/RadioCard.js +3 -0
- package/node/components/Select/OptionMenuItem/OptionMenuItem.d.ts +5 -0
- package/node/components/Select/OptionMenuItem/OptionMenuItem.js +35 -0
- package/node/components/Select/OptionMenuItem/index.d.ts +1 -0
- package/node/components/Select/OptionMenuItem/index.js +17 -0
- package/node/components/Select/OptionMenuItem/types.d.ts +31 -0
- package/node/components/Select/Select.d.ts +9 -2
- package/node/components/Select/Select.js +43 -10
- package/node/components/Select/cases/groups/SelectGroup/GroupMenuItem/GroupMenuItem.d.ts +5 -0
- package/node/components/Select/cases/groups/SelectGroup/GroupMenuItem/GroupMenuItem.js +24 -0
- package/node/components/Select/cases/groups/SelectGroup/GroupMenuItem/constants.d.ts +2 -0
- package/node/components/Select/cases/groups/SelectGroup/GroupMenuItem/constants.js +5 -0
- package/node/components/Select/cases/groups/SelectGroup/GroupMenuItem/index.d.ts +1 -0
- package/node/components/Select/cases/groups/SelectGroup/GroupMenuItem/index.js +17 -0
- package/node/components/Select/cases/groups/SelectGroup/GroupMenuItem/styles.d.ts +39 -0
- package/node/components/Select/cases/groups/SelectGroup/GroupMenuItem/styles.js +40 -0
- package/node/components/Select/cases/groups/SelectGroup/GroupMenuItem/types.d.ts +32 -0
- package/node/components/{ResizingDataGrid/hooks/useComputedColumns/constants.js → Select/cases/groups/SelectGroup/GroupMenuItem/types.js} +0 -2
- package/node/components/Select/cases/groups/SelectGroup/GroupOptions/GroupOptions.d.ts +2 -0
- package/node/components/Select/cases/groups/SelectGroup/GroupOptions/GroupOptions.js +8 -0
- package/node/components/Select/cases/groups/SelectGroup/GroupOptions/index.d.ts +1 -0
- package/node/components/Select/cases/groups/SelectGroup/GroupOptions/index.js +17 -0
- package/node/components/Select/cases/groups/SelectGroup/GroupOptions/types.d.ts +31 -0
- package/node/components/Select/cases/groups/SelectGroup/GroupOptions/types.js +2 -0
- package/node/components/Select/cases/groups/SelectGroup/GroupSubheader/GroupSubheader.d.ts +5 -0
- package/node/components/Select/cases/groups/SelectGroup/GroupSubheader/GroupSubheader.js +11 -0
- package/node/components/Select/cases/groups/SelectGroup/GroupSubheader/index.d.ts +1 -0
- package/node/components/Select/cases/groups/SelectGroup/GroupSubheader/index.js +17 -0
- package/node/components/Select/cases/groups/SelectGroup/GroupSubheader/styles.d.ts +3 -0
- package/node/components/Select/cases/groups/SelectGroup/GroupSubheader/styles.js +14 -0
- package/node/components/Select/cases/groups/SelectGroup/GroupSubheader/types.d.ts +6 -0
- package/node/components/Select/cases/groups/SelectGroup/GroupSubheader/types.js +2 -0
- package/node/components/Select/cases/groups/SelectGroup/SelectGroup.d.ts +5 -0
- package/node/components/Select/cases/groups/SelectGroup/SelectGroup.js +32 -0
- package/node/components/Select/cases/groups/SelectGroup/index.d.ts +1 -0
- package/node/components/Select/cases/groups/SelectGroup/index.js +17 -0
- package/node/components/{ResizingDataGrid/Sliders → Select/cases/groups/SelectGroup}/styles.d.ts +3 -7
- package/node/components/Select/cases/groups/SelectGroup/styles.js +16 -0
- package/node/components/Select/cases/groups/SelectGroup/types.d.ts +53 -0
- package/node/components/Select/cases/groups/SelectGroup/types.js +2 -0
- package/node/components/Select/cases/groups/SelectGroup/useLogic/index.d.ts +1 -0
- package/node/components/Select/cases/groups/SelectGroup/useLogic/index.js +17 -0
- package/node/components/Select/cases/groups/SelectGroup/useLogic/useLogic.d.ts +9 -0
- package/node/components/Select/cases/groups/SelectGroup/useLogic/useLogic.js +14 -0
- package/node/components/Select/cases/groups/constants.d.ts +10 -0
- package/node/components/Select/cases/groups/constants.js +14 -0
- package/node/components/Select/cases/groups/hooks/index.d.ts +1 -0
- package/node/components/Select/cases/groups/hooks/index.js +17 -0
- package/node/components/Select/cases/groups/hooks/useGroups/hooks/index.d.ts +1 -0
- package/node/components/Select/cases/groups/hooks/useGroups/hooks/index.js +17 -0
- package/node/components/Select/cases/groups/hooks/useGroups/hooks/useCollapsedGroups/index.d.ts +1 -0
- package/node/components/Select/cases/groups/hooks/useGroups/hooks/useCollapsedGroups/index.js +17 -0
- package/node/components/Select/cases/groups/hooks/useGroups/hooks/useCollapsedGroups/useCollapsedGroups.d.ts +20 -0
- package/node/components/Select/cases/groups/hooks/useGroups/hooks/useCollapsedGroups/useCollapsedGroups.js +27 -0
- package/node/components/Select/cases/groups/hooks/useGroups/index.d.ts +1 -0
- package/node/components/Select/cases/groups/hooks/useGroups/index.js +17 -0
- package/node/components/Select/cases/groups/hooks/useGroups/useGroups.d.ts +55 -0
- package/node/components/Select/cases/groups/hooks/useGroups/useGroups.js +69 -0
- package/node/components/Select/cases/groups/index.d.ts +3 -0
- package/node/components/Select/cases/groups/index.js +18 -0
- package/node/components/Select/cases/groups/types.d.ts +21 -0
- package/node/components/Select/cases/groups/types.js +2 -0
- package/node/components/Select/cases/groups/utils/checkHasBottomDivider/checkHasBottomDivider.d.ts +4 -0
- package/node/components/Select/cases/groups/utils/checkHasBottomDivider/checkHasBottomDivider.js +16 -0
- package/node/components/Select/cases/groups/utils/checkHasBottomDivider/index.d.ts +1 -0
- package/node/components/Select/cases/groups/utils/checkHasBottomDivider/index.js +17 -0
- package/node/components/Select/cases/groups/utils/expandTagsList/expandTagsList.d.ts +5 -0
- package/node/components/Select/cases/groups/utils/expandTagsList/expandTagsList.js +12 -0
- package/node/components/Select/cases/groups/utils/expandTagsList/index.d.ts +1 -0
- package/node/components/Select/cases/groups/utils/expandTagsList/index.js +17 -0
- package/node/components/Select/cases/groups/utils/findGroupByValue/findGroupByValue.d.ts +5 -0
- package/node/components/Select/cases/groups/utils/findGroupByValue/findGroupByValue.js +9 -0
- package/node/components/Select/cases/groups/utils/findGroupByValue/index.d.ts +1 -0
- package/node/components/Select/cases/groups/utils/findGroupByValue/index.js +17 -0
- package/node/components/Select/cases/groups/utils/getGroupSelection/getGroupSelection.d.ts +9 -0
- package/node/components/Select/cases/groups/utils/getGroupSelection/getGroupSelection.js +16 -0
- package/node/components/Select/cases/groups/utils/getGroupSelection/index.d.ts +1 -0
- package/node/components/Select/cases/groups/utils/getGroupSelection/index.js +17 -0
- package/node/components/Select/cases/groups/utils/getGroupValue/getGroupValue.d.ts +4 -0
- package/node/components/Select/cases/groups/utils/getGroupValue/getGroupValue.js +9 -0
- package/node/components/Select/cases/groups/utils/getGroupValue/index.d.ts +1 -0
- package/node/components/Select/cases/groups/utils/getGroupValue/index.js +17 -0
- package/node/components/Select/cases/groups/utils/getTagsList/getTagsList.d.ts +5 -0
- package/node/components/Select/cases/groups/utils/getTagsList/getTagsList.js +19 -0
- package/node/components/Select/cases/groups/utils/getTagsList/index.d.ts +1 -0
- package/node/components/Select/cases/groups/utils/getTagsList/index.js +17 -0
- package/node/components/Select/cases/groups/utils/index.d.ts +7 -0
- package/node/components/Select/cases/groups/utils/index.js +23 -0
- package/node/components/Select/cases/groups/utils/toggleGroup/index.d.ts +1 -0
- package/node/components/Select/cases/groups/utils/toggleGroup/index.js +17 -0
- package/node/components/Select/cases/groups/utils/toggleGroup/toggleGroup.d.ts +6 -0
- package/node/components/Select/cases/groups/utils/toggleGroup/toggleGroup.js +18 -0
- package/node/components/Select/cases/index.d.ts +1 -0
- package/node/components/{ResizingDataGrid/Sliders → Select/cases}/index.js +1 -1
- package/node/components/Select/constants.d.ts +7 -0
- package/node/components/Select/constants.js +9 -1
- package/node/components/Select/index.d.ts +1 -1
- package/node/components/Select/public.d.ts +1 -1
- package/node/components/Select/styles.d.ts +10 -1
- package/node/components/Select/styles.js +30 -3
- package/node/components/Select/types.d.ts +81 -2
- package/node/components/Select/useLogic/hooks/index.d.ts +1 -0
- package/node/components/Select/useLogic/hooks/index.js +17 -0
- package/node/components/Select/useLogic/hooks/useOptions/index.d.ts +1 -0
- package/node/components/Select/useLogic/hooks/useOptions/index.js +17 -0
- package/node/components/Select/useLogic/hooks/useOptions/useOptions.d.ts +36 -0
- package/node/components/Select/useLogic/hooks/useOptions/useOptions.js +42 -0
- package/node/components/Select/useLogic/useLogic.d.ts +23 -4
- package/node/components/Select/useLogic/useLogic.js +119 -35
- package/node/components/Select/utils/checkIsEqualSelectValues/checkIsEqualSelectValues.d.ts +5 -0
- package/node/components/Select/utils/checkIsEqualSelectValues/checkIsEqualSelectValues.js +18 -0
- package/node/components/Select/utils/checkIsEqualSelectValues/index.d.ts +1 -0
- package/node/components/Select/utils/checkIsEqualSelectValues/index.js +17 -0
- package/node/components/Select/utils/checkIsSelectOptionsGroup/checkIsSelectOptionsGroup.d.ts +5 -0
- package/node/components/Select/utils/checkIsSelectOptionsGroup/checkIsSelectOptionsGroup.js +12 -0
- package/node/components/Select/utils/checkIsSelectOptionsGroup/index.d.ts +1 -0
- package/node/components/Select/utils/checkIsSelectOptionsGroup/index.js +17 -0
- package/node/components/Select/utils/getSelectOptionsList/getSelectOptionsList.d.ts +5 -0
- package/node/components/Select/utils/getSelectOptionsList/getSelectOptionsList.js +9 -0
- package/node/components/Select/utils/getSelectOptionsList/index.d.ts +1 -0
- package/node/components/Select/utils/getSelectOptionsList/index.js +17 -0
- package/node/components/Select/utils/index.d.ts +3 -0
- package/node/components/Select/utils/index.js +19 -0
- package/node/components/SelectionCard/DefaultIndicator/DefaultIndicator.d.ts +5 -0
- package/node/components/SelectionCard/DefaultIndicator/DefaultIndicator.js +18 -0
- package/node/components/SelectionCard/DefaultIndicator/index.d.ts +1 -0
- package/node/components/SelectionCard/DefaultIndicator/index.js +17 -0
- package/node/components/SelectionCard/DefaultIndicator/types.d.ts +7 -0
- package/node/components/SelectionCard/DefaultIndicator/types.js +2 -0
- package/node/components/SelectionCard/SelectionCard.d.ts +5 -0
- package/node/components/SelectionCard/SelectionCard.js +52 -0
- package/node/components/SelectionCard/cases/grouped/index.d.ts +1 -0
- package/node/components/SelectionCard/cases/grouped/index.js +5 -0
- package/node/components/SelectionCard/cases/grouped/styles.d.ts +10 -0
- package/node/components/SelectionCard/cases/grouped/styles.js +131 -0
- package/node/components/SelectionCard/cases/index.d.ts +2 -0
- package/node/components/SelectionCard/cases/index.js +18 -0
- package/node/components/SelectionCard/cases/standalone/index.d.ts +1 -0
- package/node/components/SelectionCard/cases/standalone/index.js +5 -0
- package/node/components/SelectionCard/cases/standalone/styles.d.ts +10 -0
- package/node/components/SelectionCard/cases/standalone/styles.js +80 -0
- package/node/components/SelectionCard/constants.d.ts +15 -0
- package/node/components/SelectionCard/constants.js +19 -0
- package/node/components/SelectionCard/index.d.ts +2 -0
- package/node/components/SelectionCard/index.js +5 -0
- package/node/components/SelectionCard/public.d.ts +2 -0
- package/node/components/SelectionCard/public.js +5 -0
- package/node/components/SelectionCard/styles.d.ts +39 -0
- package/node/components/SelectionCard/styles.js +84 -0
- package/node/components/SelectionCard/types.d.ts +31 -0
- package/node/components/SelectionCard/types.js +2 -0
- package/node/components/SelectionCard/useLogic/index.d.ts +1 -0
- package/node/components/SelectionCard/useLogic/index.js +17 -0
- package/node/components/SelectionCard/useLogic/useLogic.d.ts +18 -0
- package/node/components/SelectionCard/useLogic/useLogic.js +52 -0
- package/node/components/SelectionCardGroup/SelectionCardGroup.d.ts +5 -0
- package/node/components/SelectionCardGroup/SelectionCardGroup.js +23 -0
- package/node/components/SelectionCardGroup/SelectionCardGroupContext/SelectionCardGroupContext.d.ts +21 -0
- package/node/components/SelectionCardGroup/SelectionCardGroupContext/SelectionCardGroupContext.js +17 -0
- package/node/components/SelectionCardGroup/SelectionCardGroupContext/index.d.ts +1 -0
- package/node/components/SelectionCardGroup/SelectionCardGroupContext/index.js +17 -0
- package/node/components/SelectionCardGroup/cases/grouped/constants.d.ts +4 -0
- package/node/components/SelectionCardGroup/cases/grouped/constants.js +7 -0
- package/node/components/SelectionCardGroup/cases/grouped/index.d.ts +1 -0
- package/node/components/SelectionCardGroup/cases/grouped/index.js +17 -0
- package/node/components/SelectionCardGroup/cases/index.d.ts +4 -0
- package/node/components/SelectionCardGroup/cases/index.js +20 -0
- package/node/components/SelectionCardGroup/cases/multiple/constants.d.ts +5 -0
- package/node/components/SelectionCardGroup/cases/multiple/constants.js +12 -0
- package/node/components/SelectionCardGroup/cases/multiple/index.d.ts +2 -0
- package/node/components/SelectionCardGroup/cases/multiple/index.js +18 -0
- package/node/components/SelectionCardGroup/cases/multiple/utils/index.d.ts +1 -0
- package/node/components/SelectionCardGroup/cases/multiple/utils/index.js +17 -0
- package/node/components/SelectionCardGroup/cases/multiple/utils/toggleValue/index.d.ts +1 -0
- package/node/components/SelectionCardGroup/cases/multiple/utils/toggleValue/index.js +17 -0
- package/node/components/SelectionCardGroup/cases/multiple/utils/toggleValue/toggleValue.d.ts +4 -0
- package/node/components/SelectionCardGroup/cases/multiple/utils/toggleValue/toggleValue.js +13 -0
- package/node/components/SelectionCardGroup/cases/single/constants.d.ts +5 -0
- package/node/components/SelectionCardGroup/cases/single/constants.js +12 -0
- package/node/components/SelectionCardGroup/cases/single/index.d.ts +2 -0
- package/node/components/SelectionCardGroup/cases/single/index.js +18 -0
- package/node/components/SelectionCardGroup/cases/single/utils/index.d.ts +1 -0
- package/node/components/SelectionCardGroup/cases/single/utils/index.js +17 -0
- package/node/components/SelectionCardGroup/cases/single/utils/selectValue/index.d.ts +1 -0
- package/node/components/SelectionCardGroup/cases/single/utils/selectValue/index.js +17 -0
- package/node/components/SelectionCardGroup/cases/single/utils/selectValue/selectValue.d.ts +5 -0
- package/node/components/SelectionCardGroup/cases/single/utils/selectValue/selectValue.js +14 -0
- package/node/components/SelectionCardGroup/cases/standalone/constants.d.ts +2 -0
- package/node/components/SelectionCardGroup/cases/standalone/constants.js +5 -0
- package/node/components/SelectionCardGroup/cases/standalone/index.d.ts +3 -0
- package/node/components/SelectionCardGroup/cases/standalone/index.js +21 -0
- package/node/components/SelectionCardGroup/cases/standalone/styles.d.ts +7 -0
- package/node/components/SelectionCardGroup/cases/standalone/styles.js +13 -0
- package/node/components/SelectionCardGroup/cases/standalone/utils/getGridColumns/getGridColumns.d.ts +5 -0
- package/node/components/SelectionCardGroup/cases/standalone/utils/getGridColumns/getGridColumns.js +14 -0
- package/node/components/SelectionCardGroup/cases/standalone/utils/getGridColumns/index.d.ts +1 -0
- package/node/components/SelectionCardGroup/cases/standalone/utils/getGridColumns/index.js +17 -0
- package/node/components/SelectionCardGroup/cases/standalone/utils/index.d.ts +1 -0
- package/node/components/SelectionCardGroup/cases/standalone/utils/index.js +17 -0
- package/node/components/SelectionCardGroup/constants.d.ts +3 -0
- package/node/components/SelectionCardGroup/constants.js +7 -0
- package/node/components/SelectionCardGroup/index.d.ts +3 -0
- package/node/components/SelectionCardGroup/index.js +7 -0
- package/node/components/SelectionCardGroup/public.d.ts +2 -0
- package/node/components/SelectionCardGroup/public.js +5 -0
- package/node/components/SelectionCardGroup/styles.d.ts +15 -0
- package/node/components/SelectionCardGroup/styles.js +20 -0
- package/node/components/SelectionCardGroup/types.d.ts +120 -0
- package/node/components/SelectionCardGroup/types.js +2 -0
- package/node/components/SelectionCardGroup/useLogic/index.d.ts +1 -0
- package/node/components/SelectionCardGroup/useLogic/index.js +17 -0
- package/node/components/SelectionCardGroup/useLogic/useLogic.d.ts +17 -0
- package/node/components/SelectionCardGroup/useLogic/useLogic.js +63 -0
- package/node/components/SelectionCardGroup/useLogic/utils/createSelectHandler/createSelectHandler.d.ts +5 -0
- package/node/components/SelectionCardGroup/useLogic/utils/createSelectHandler/createSelectHandler.js +14 -0
- package/node/components/SelectionCardGroup/useLogic/utils/createSelectHandler/index.d.ts +1 -0
- package/node/components/SelectionCardGroup/useLogic/utils/createSelectHandler/index.js +17 -0
- package/node/components/SelectionCardGroup/useLogic/utils/index.d.ts +1 -0
- package/node/components/SelectionCardGroup/useLogic/utils/index.js +17 -0
- package/node/components/SelectionCardGroup/utils/getSelectedValuesList/getSelectedValuesList.d.ts +5 -0
- package/node/components/SelectionCardGroup/utils/getSelectedValuesList/getSelectedValuesList.js +16 -0
- package/node/components/SelectionCardGroup/utils/getSelectedValuesList/index.d.ts +1 -0
- package/node/components/SelectionCardGroup/utils/getSelectedValuesList/index.js +17 -0
- package/node/components/SelectionCardGroup/utils/index.d.ts +1 -0
- package/node/components/SelectionCardGroup/utils/index.js +17 -0
- package/node/components/Status/Status.d.ts +2 -0
- package/node/components/Status/Status.js +41 -0
- package/node/components/Status/constants.d.ts +17 -0
- package/node/components/Status/constants.js +21 -0
- package/node/components/Status/index.d.ts +3 -0
- package/node/components/Status/index.js +7 -0
- package/node/components/Status/public.d.ts +3 -0
- package/node/components/Status/public.js +7 -0
- package/node/components/Status/styles.d.ts +24 -0
- package/node/components/Status/styles.js +123 -0
- package/node/components/Status/types.d.ts +17 -0
- package/node/components/Status/types.js +2 -0
- package/node/components/Status/useLogic/index.d.ts +1 -0
- package/node/components/Status/useLogic/index.js +17 -0
- package/node/components/Status/useLogic/useLogic.d.ts +11 -0
- package/node/components/Status/useLogic/useLogic.js +37 -0
- package/node/components/TagBadge/styles.js +21 -3
- package/node/components/index.d.ts +1 -1
- package/node/components/utils/setRef/index.d.ts +1 -0
- package/node/components/utils/setRef/index.js +17 -0
- package/node/components/utils/setRef/setRef.d.ts +5 -0
- package/node/components/utils/setRef/setRef.js +16 -0
- package/node/hook-form/EditableText/EditableText.js +12 -5
- package/node/hook-form/EditableText/EditingForm/EditingForm.js +1 -1
- package/node/hook-form/EditableText/EditingForm/styles.js +8 -0
- package/node/hook-form/EditableText/constants.d.ts +1 -0
- package/node/hook-form/EditableText/constants.js +1 -0
- package/node/hook-form/EditableText/styles.d.ts +4 -0
- package/node/hook-form/EditableText/styles.js +6 -10
- package/node/hook-form/EditableText/useLogic/useLogic.d.ts +1 -0
- package/node/hook-form/EditableText/useLogic/useLogic.js +5 -0
- package/node/hook-form/FormQuickFilters/FormQuickFilters.js +2 -14
- package/node/hook-form/FormQuickFilters/useLogic/useLogic.d.ts +7 -4
- package/node/hook-form/FormQuickFilters/useLogic/useLogic.js +12 -7
- package/node/hook-form/FormSelect/FormSelect.d.ts +5 -2
- package/node/hook-form/FormSelectionCardGroup/FormSelectionCardGroup.d.ts +7 -0
- package/node/hook-form/FormSelectionCardGroup/FormSelectionCardGroup.js +22 -0
- package/node/hook-form/FormSelectionCardGroup/index.d.ts +1 -0
- package/node/hook-form/FormSelectionCardGroup/index.js +17 -0
- package/node/hook-form/FormSelectionCardGroup/public.d.ts +1 -0
- package/node/hook-form/FormSelectionCardGroup/public.js +17 -0
- package/package.json +1 -17
- package/components/ResizingDataGrid/ResizingDataGrid.d.ts +0 -10
- package/components/ResizingDataGrid/ResizingDataGrid.js +0 -15
- package/components/ResizingDataGrid/Sliders/Sliders.d.ts +0 -6
- package/components/ResizingDataGrid/Sliders/Sliders.js +0 -9
- package/components/ResizingDataGrid/Sliders/index.d.ts +0 -1
- package/components/ResizingDataGrid/Sliders/index.js +0 -1
- package/components/ResizingDataGrid/Sliders/styles.js +0 -151
- package/components/ResizingDataGrid/Sliders/useLogic/useLogic.d.ts +0 -13
- package/components/ResizingDataGrid/Sliders/useLogic/useLogic.js +0 -36
- package/components/ResizingDataGrid/Sliders/useLogic/utils/computePositions/computePositions.d.ts +0 -7
- package/components/ResizingDataGrid/Sliders/useLogic/utils/computePositions/computePositions.js +0 -36
- package/components/ResizingDataGrid/Sliders/useLogic/utils/computePositions/index.d.ts +0 -1
- package/components/ResizingDataGrid/Sliders/useLogic/utils/computePositions/index.js +0 -1
- package/components/ResizingDataGrid/Sliders/useLogic/utils/createInitialSliders/createInitialSliders.d.ts +0 -1
- package/components/ResizingDataGrid/Sliders/useLogic/utils/createInitialSliders/createInitialSliders.js +0 -10
- package/components/ResizingDataGrid/Sliders/useLogic/utils/createInitialSliders/index.d.ts +0 -1
- package/components/ResizingDataGrid/Sliders/useLogic/utils/createInitialSliders/index.js +0 -1
- package/components/ResizingDataGrid/hooks/useComputedColumns/constants.d.ts +0 -1
- package/components/ResizingDataGrid/hooks/useComputedColumns/constants.js +0 -1
- package/components/ResizingDataGrid/hooks/useComputedColumns/index.d.ts +0 -1
- package/components/ResizingDataGrid/hooks/useComputedColumns/index.js +0 -1
- package/components/ResizingDataGrid/hooks/useComputedColumns/useComputedColumns.d.ts +0 -12
- package/components/ResizingDataGrid/hooks/useComputedColumns/useComputedColumns.js +0 -30
- package/components/ResizingDataGrid/hooks/useComputedColumns/utils/createComputedColumns/createComputedColumns.d.ts +0 -11
- package/components/ResizingDataGrid/hooks/useComputedColumns/utils/createComputedColumns/createComputedColumns.js +0 -24
- package/components/ResizingDataGrid/hooks/useComputedColumns/utils/createComputedColumns/index.d.ts +0 -1
- package/components/ResizingDataGrid/hooks/useComputedColumns/utils/createComputedColumns/index.js +0 -1
- package/components/ResizingDataGrid/hooks/useComputedColumns/utils/createInitialColumnsWidths/createInitialColumnsWidths.d.ts +0 -7
- package/components/ResizingDataGrid/hooks/useComputedColumns/utils/createInitialColumnsWidths/createInitialColumnsWidths.js +0 -24
- package/components/ResizingDataGrid/hooks/useComputedColumns/utils/createInitialColumnsWidths/index.d.ts +0 -1
- package/components/ResizingDataGrid/hooks/useComputedColumns/utils/createInitialColumnsWidths/index.js +0 -1
- package/components/ResizingDataGrid/hooks/useComputedColumns/utils/createStorageKey/createStorageKey.d.ts +0 -7
- package/components/ResizingDataGrid/hooks/useComputedColumns/utils/createStorageKey/createStorageKey.js +0 -6
- package/components/ResizingDataGrid/hooks/useComputedColumns/utils/createStorageKey/index.d.ts +0 -1
- package/components/ResizingDataGrid/hooks/useComputedColumns/utils/createStorageKey/index.js +0 -1
- package/components/ResizingDataGrid/index.d.ts +0 -4
- package/components/ResizingDataGrid/index.js +0 -3
- package/components/ResizingDataGrid/public.d.ts +0 -4
- package/components/ResizingDataGrid/public.js +0 -3
- package/components/ResizingDataGrid/types.d.ts +0 -43
- package/components/ResizingDataGridInfinite/ResizingDataGridInfinite.d.ts +0 -10
- package/components/ResizingDataGridInfinite/ResizingDataGridInfinite.js +0 -14
- package/components/ResizingDataGridInfinite/index.d.ts +0 -2
- package/components/ResizingDataGridInfinite/index.js +0 -1
- package/components/ResizingDataGridInfinite/public.d.ts +0 -2
- package/components/ResizingDataGridInfinite/public.js +0 -1
- package/components/ResizingDataGridInfinite/types.d.ts +0 -7
- package/node/components/ResizingDataGrid/ResizingDataGrid.d.ts +0 -10
- package/node/components/ResizingDataGrid/ResizingDataGrid.js +0 -19
- package/node/components/ResizingDataGrid/Sliders/Sliders.d.ts +0 -6
- package/node/components/ResizingDataGrid/Sliders/Sliders.js +0 -13
- package/node/components/ResizingDataGrid/Sliders/index.d.ts +0 -1
- package/node/components/ResizingDataGrid/Sliders/styles.js +0 -154
- package/node/components/ResizingDataGrid/Sliders/useLogic/useLogic.d.ts +0 -13
- package/node/components/ResizingDataGrid/Sliders/useLogic/useLogic.js +0 -40
- package/node/components/ResizingDataGrid/Sliders/useLogic/utils/computePositions/computePositions.d.ts +0 -7
- package/node/components/ResizingDataGrid/Sliders/useLogic/utils/computePositions/computePositions.js +0 -40
- package/node/components/ResizingDataGrid/Sliders/useLogic/utils/computePositions/index.d.ts +0 -1
- package/node/components/ResizingDataGrid/Sliders/useLogic/utils/createInitialSliders/createInitialSliders.d.ts +0 -1
- package/node/components/ResizingDataGrid/Sliders/useLogic/utils/createInitialSliders/createInitialSliders.js +0 -14
- package/node/components/ResizingDataGrid/Sliders/useLogic/utils/createInitialSliders/index.d.ts +0 -1
- package/node/components/ResizingDataGrid/hooks/useComputedColumns/constants.d.ts +0 -1
- package/node/components/ResizingDataGrid/hooks/useComputedColumns/index.d.ts +0 -1
- package/node/components/ResizingDataGrid/hooks/useComputedColumns/useComputedColumns.d.ts +0 -12
- package/node/components/ResizingDataGrid/hooks/useComputedColumns/useComputedColumns.js +0 -34
- package/node/components/ResizingDataGrid/hooks/useComputedColumns/utils/createComputedColumns/createComputedColumns.d.ts +0 -11
- package/node/components/ResizingDataGrid/hooks/useComputedColumns/utils/createComputedColumns/createComputedColumns.js +0 -28
- package/node/components/ResizingDataGrid/hooks/useComputedColumns/utils/createComputedColumns/index.d.ts +0 -1
- package/node/components/ResizingDataGrid/hooks/useComputedColumns/utils/createComputedColumns/index.js +0 -17
- package/node/components/ResizingDataGrid/hooks/useComputedColumns/utils/createInitialColumnsWidths/createInitialColumnsWidths.d.ts +0 -7
- package/node/components/ResizingDataGrid/hooks/useComputedColumns/utils/createInitialColumnsWidths/createInitialColumnsWidths.js +0 -28
- package/node/components/ResizingDataGrid/hooks/useComputedColumns/utils/createInitialColumnsWidths/index.d.ts +0 -1
- package/node/components/ResizingDataGrid/hooks/useComputedColumns/utils/createInitialColumnsWidths/index.js +0 -17
- package/node/components/ResizingDataGrid/hooks/useComputedColumns/utils/createStorageKey/createStorageKey.d.ts +0 -7
- package/node/components/ResizingDataGrid/hooks/useComputedColumns/utils/createStorageKey/createStorageKey.js +0 -13
- package/node/components/ResizingDataGrid/hooks/useComputedColumns/utils/createStorageKey/index.d.ts +0 -1
- package/node/components/ResizingDataGrid/index.d.ts +0 -4
- package/node/components/ResizingDataGrid/index.js +0 -9
- package/node/components/ResizingDataGrid/public.d.ts +0 -4
- package/node/components/ResizingDataGrid/public.js +0 -9
- package/node/components/ResizingDataGrid/types.d.ts +0 -43
- package/node/components/ResizingDataGridInfinite/ResizingDataGridInfinite.d.ts +0 -10
- package/node/components/ResizingDataGridInfinite/ResizingDataGridInfinite.js +0 -18
- package/node/components/ResizingDataGridInfinite/index.d.ts +0 -2
- package/node/components/ResizingDataGridInfinite/index.js +0 -5
- package/node/components/ResizingDataGridInfinite/public.d.ts +0 -2
- package/node/components/ResizingDataGridInfinite/public.js +0 -5
- package/node/components/ResizingDataGridInfinite/types.d.ts +0 -7
- /package/components/{ResizingDataGrid/Sliders → DataGrid/Head}/useLogic/index.d.ts +0 -0
- /package/components/{ResizingDataGrid/Sliders → DataGrid/Head}/useLogic/index.js +0 -0
- /package/components/{ResizingDataGrid → DataGrid/plugins/resize}/types.js +0 -0
- /package/components/{ResizingDataGridInfinite → Select/OptionMenuItem}/types.js +0 -0
- /package/{node/components/ResizingDataGrid/Sliders → components/Select/cases/groups/SelectGroup}/useLogic/index.d.ts +0 -0
- /package/node/components/{ResizingDataGrid/Sliders → DataGrid/Head}/useLogic/index.js +0 -0
- /package/node/components/{ResizingDataGrid → DataGrid/plugins/resize}/types.js +0 -0
- /package/node/components/{ResizingDataGridInfinite → Select/OptionMenuItem}/types.js +0 -0
|
@@ -10,10 +10,6 @@ export type BodyProps<TData extends Record<string, CellValue>> = {
|
|
|
10
10
|
* Поле, которое будет использоваться в качестве ключа
|
|
11
11
|
*/
|
|
12
12
|
keyId: keyof TData;
|
|
13
|
-
/**
|
|
14
|
-
* Конфигурация ширины колонок
|
|
15
|
-
*/
|
|
16
|
-
gridColumns: string;
|
|
17
13
|
/**
|
|
18
14
|
* Идентификатор активного элемента массива rows. Выделяет активную строку в таблице
|
|
19
15
|
*/
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { useContext, useMemo } from 'react';
|
|
2
2
|
import { redirectToLink } from '../../../utils/redirectToLink';
|
|
3
|
+
import { ACTIONS_COLUMN_FIELD } from '../../constants';
|
|
3
4
|
import { DataGridContext } from '../../DataGridContext';
|
|
4
5
|
export const useLogic = ({ row, href, target, cell, emptyCellValue, startAdornment, }) => {
|
|
5
6
|
const { isTabularNums: contextIsTabularNums, renderLink } = useContext(DataGridContext);
|
|
@@ -18,7 +19,7 @@ export const useLogic = ({ row, href, target, cell, emptyCellValue, startAdornme
|
|
|
18
19
|
return emptyCellValue;
|
|
19
20
|
}, [field, format, row, emptyCellValue]);
|
|
20
21
|
const hasStartAdornment = Boolean(startAdornment);
|
|
21
|
-
const isActionColumn = cell.field ===
|
|
22
|
+
const isActionColumn = cell.field === ACTIONS_COLUMN_FIELD;
|
|
22
23
|
const onCellClick = () => {
|
|
23
24
|
if (isActionColumn && href) {
|
|
24
25
|
return redirectToLink(href, target);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { type DataGridProps, type DataGridRow } from './types';
|
|
2
|
-
export declare const DataGrid: <TData extends Record<string, unknown> = DataGridRow, TSortField extends
|
|
2
|
+
export declare const DataGrid: <TData extends Record<string, unknown> = DataGridRow, TSortField extends PropertyKey = keyof TData>(props: DataGridProps<TData, TSortField>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -45,6 +45,9 @@ const dataGridCva = cva(dataGridClassnames.root, {
|
|
|
45
45
|
hasGroupedColumns: {
|
|
46
46
|
true: dataGridClassnames.hasGroupedColumns,
|
|
47
47
|
},
|
|
48
|
+
hasResizePlugin: {
|
|
49
|
+
true: dataGridClassnames.hasResizePlugin,
|
|
50
|
+
},
|
|
48
51
|
mobileDisplayVariant: {
|
|
49
52
|
cards: dataGridClassnames.mobileVariantCards,
|
|
50
53
|
list: dataGridClassnames.mobileVariantList,
|
|
@@ -62,9 +65,9 @@ const bodyCva = cva(dataGridClassnames.body, {
|
|
|
62
65
|
},
|
|
63
66
|
});
|
|
64
67
|
export const DataGrid = (props) => {
|
|
65
|
-
const { dataGridClassName, isDataGridDisabled, treeRenderConfig, headColumns, headProps, bodyProps,
|
|
68
|
+
const { dataGridClassName, isDataGridDisabled, treeRenderConfig, headColumns, headProps, bodyProps, loaderProps, renderRows, isAllowHorizontalScroll, isHideHead, hasPinnedColumns, contentStateProps, rowHoverProps, containerRef, sections, isNoData, isMobile, mobileSkeletonProps, isLoading, containerCssVars, hasGroupedColumns, gridViewMode, mobileDisplayVariant, isSelfContained, isMassActionsOpen, hasMassActions, resizePlugin, wrapperRef, resizePluginProps, headerProps, } = useLogic(props);
|
|
66
69
|
const { emptySymbol } = useContext(ConfigContext);
|
|
67
|
-
const { columns, selectedRows = [], onSelectRow, minDisplayRows = MIN_DISPLAY_ROWS_BY_DEFAULT, variant = Variant.Tree, footer, massActions, noDataPlaceholder, subrows, keyId, activeRowId, emptyCellValue = emptySymbol, onRowClick, noDataOptions,
|
|
70
|
+
const { columns, selectedRows = [], onSelectRow, minDisplayRows = MIN_DISPLAY_ROWS_BY_DEFAULT, variant = Variant.Tree, footer, massActions, noDataPlaceholder, subrows, keyId, activeRowId, emptyCellValue = emptySymbol, onRowClick, noDataOptions, isTabularNums, renderRow, renderLink, } = props;
|
|
68
71
|
const { moreButtonColumnPosition = 1, isVisibleCollapseButton = true } = subrows || {};
|
|
69
72
|
const { isInitialExpanded = false, expandedLevel = EXPANDED_LEVEL_BY_DEFAULT, initialVisibleChildrenCount = INITIAL_OPENED_NESTED_CHILDREN_COUNT_BY_DEFAULT, } = treeRenderConfig || {};
|
|
70
73
|
const Wrapper = isDataGridDisabled
|
|
@@ -95,15 +98,16 @@ export const DataGrid = (props) => {
|
|
|
95
98
|
};
|
|
96
99
|
const renderTableContent = () => {
|
|
97
100
|
if (!hasPinnedColumns || isMobile) {
|
|
98
|
-
return (_jsxs(Wrapper, { ...getInertProps(isDataGridDisabled), className: dataGridClassnames.wrapper, children: [
|
|
101
|
+
return (_jsxs(Wrapper, { ref: wrapperRef, ...getInertProps(isDataGridDisabled), className: dataGridClassnames.wrapper, children: [!isHideHead && (_jsx(Head, { ...headProps, headerProps: headerProps, columns: headColumns, resizePlugin: resizePlugin, resizePluginProps: resizePluginProps })), _jsx(ContentState, { ...contentStateProps, loadingContent: isMobile && _jsx(MobileSkeleton, { ...mobileSkeletonProps }), children: _jsx(Body, { ...commonBodyProps, activeRowId: activeRowId, columns: columns, className: bodyCva({
|
|
99
102
|
isNoData,
|
|
100
103
|
}) }) })] }));
|
|
101
104
|
}
|
|
102
105
|
return (_jsx(ContentState, { ...contentStateProps, children: _jsx(PinnedSections, { sections: sections, className: pinnedSectionsCva({
|
|
103
106
|
isDisabled: isDataGridDisabled,
|
|
104
|
-
}), isDisabled: isDataGridDisabled, headProps: headProps,
|
|
107
|
+
}), isDisabled: isDataGridDisabled, headProps: headProps, bodyProps: commonBodyProps, isNoData: isNoData }) }));
|
|
105
108
|
};
|
|
106
|
-
return (_jsx(DataGridContextProvider, { isLoading: isLoading, isTabularNums: isTabularNums,
|
|
109
|
+
return (_jsx(DataGridContextProvider, { isLoading: isLoading, isTabularNums: isTabularNums, emptyCellValue: emptyCellValue, activeRowId: activeRowId, keyId: keyId, columns: columns, onRowClick: onRowClick, mobileDisplayVariant: mobileDisplayVariant, renderLink: renderLink, selectedRows: selectedRows, onSelectRow: onSelectRow, isMassActionsOpen: isMassActionsOpen, children: _jsxs(Container, { ref: containerRef, style: containerCssVars, className: cn(dataGridClassName, dataGridCva({
|
|
110
|
+
hasResizePlugin: Boolean(resizePlugin),
|
|
107
111
|
isAllowHorizontalScroll,
|
|
108
112
|
hasPinnedColumns,
|
|
109
113
|
gridViewMode,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type ReactNode } from 'react';
|
|
2
2
|
import { type DataGridSelectionContextProps } from '../../DataGridSelectionContext';
|
|
3
3
|
import { type DataGridContextProps } from '../DataGridContext';
|
|
4
|
-
type DataGridContextProviderProps = Pick<DataGridContextProps, 'isLoading' | 'isTabularNums' | '
|
|
4
|
+
type DataGridContextProviderProps = Pick<DataGridContextProps, 'isLoading' | 'isTabularNums' | 'emptyCellValue' | 'activeRowId' | 'keyId' | 'columns' | 'onRowClick' | 'mobileDisplayVariant' | 'renderLink'> & Partial<DataGridSelectionContextProps> & {
|
|
5
5
|
children: ReactNode;
|
|
6
6
|
};
|
|
7
|
-
export declare const DataGridContextProvider: ({ isLoading, isTabularNums,
|
|
7
|
+
export declare const DataGridContextProvider: ({ isLoading, isTabularNums, emptyCellValue, activeRowId, children, keyId, columns, onRowClick, mobileDisplayVariant, renderLink, selectedRows, onSelectRow, isMassActionsOpen, }: DataGridContextProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export {};
|
|
@@ -3,11 +3,10 @@ import { useMemo } from 'react';
|
|
|
3
3
|
import { DataGridSelectionProvider, } from '../../DataGridSelectionContext';
|
|
4
4
|
import { DataGridStorageProvider } from '../../DataGridStorageContext';
|
|
5
5
|
import { DataGridContext } from '../DataGridContext';
|
|
6
|
-
export const DataGridContextProvider = ({ isLoading, isTabularNums,
|
|
6
|
+
export const DataGridContextProvider = ({ isLoading, isTabularNums, emptyCellValue, activeRowId, children, keyId, columns, onRowClick, mobileDisplayVariant, renderLink, selectedRows, onSelectRow, isMassActionsOpen, }) => {
|
|
7
7
|
const contextValue = useMemo(() => ({
|
|
8
8
|
isLoading,
|
|
9
9
|
isTabularNums,
|
|
10
|
-
gridColumns,
|
|
11
10
|
emptyCellValue,
|
|
12
11
|
activeRowId,
|
|
13
12
|
keyId,
|
|
@@ -18,7 +17,6 @@ export const DataGridContextProvider = ({ isLoading, isTabularNums, gridColumns,
|
|
|
18
17
|
}), [
|
|
19
18
|
isLoading,
|
|
20
19
|
isTabularNums,
|
|
21
|
-
gridColumns,
|
|
22
20
|
emptyCellValue,
|
|
23
21
|
activeRowId,
|
|
24
22
|
keyId,
|
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
import { type ChangeEvent } from 'react';
|
|
2
|
-
import type {
|
|
3
|
-
|
|
2
|
+
import type { DataGridResizePlugin, ResizeHeadAddonProps } from '../plugins/resize/types';
|
|
3
|
+
import type { CellValue, DataGridColumns, DataGridHeaderProps, DataGridRow, DataGridSort } from '../types';
|
|
4
|
+
export type HeadProps<TData extends Record<string, CellValue> = DataGridRow, TSortField extends PropertyKey = keyof TData> = {
|
|
4
5
|
/**
|
|
5
6
|
* Конфигурация колонок для таблицы
|
|
6
7
|
*/
|
|
7
8
|
columns: DataGridColumns<TData>[];
|
|
8
|
-
/**
|
|
9
|
-
* Конфигурация ширины колонок
|
|
10
|
-
*/
|
|
11
|
-
gridColumns: string;
|
|
12
9
|
/**
|
|
13
10
|
* Если true, то будет отображаться чекбокс для выбора элемента
|
|
14
11
|
*/
|
|
@@ -41,5 +38,17 @@ export type HeadProps<TData extends Record<string, CellValue> = DataGridRow, TSo
|
|
|
41
38
|
* Смещение секции
|
|
42
39
|
*/
|
|
43
40
|
sectionOffset?: number;
|
|
41
|
+
/**
|
|
42
|
+
* Props шапки таблицы, в том числе ref
|
|
43
|
+
*/
|
|
44
|
+
headerProps?: DataGridHeaderProps;
|
|
45
|
+
/**
|
|
46
|
+
* Plugin изменения ширины колонок: рисует полоски drag поверх колонок шапки
|
|
47
|
+
*/
|
|
48
|
+
resizePlugin?: DataGridResizePlugin;
|
|
49
|
+
/**
|
|
50
|
+
* Props компонента resize plugin в шапке
|
|
51
|
+
*/
|
|
52
|
+
resizePluginProps?: ResizeHeadAddonProps<TData>;
|
|
44
53
|
};
|
|
45
|
-
export declare const Head: <TData extends Record<string, unknown>, TSortField extends
|
|
54
|
+
export declare const Head: <TData extends Record<string, unknown>, TSortField extends PropertyKey>(props: HeadProps<TData, TSortField>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { cn } from '../../utils/cn';
|
|
2
3
|
import { cva } from '../../utils/cva';
|
|
3
4
|
import { dataGridClassnames } from '../constants';
|
|
4
5
|
import { isGroupColumns } from '../utils';
|
|
5
6
|
import { HeadColumns } from './HeadColumns/HeadColumns';
|
|
6
7
|
import { Wrapper } from './styles';
|
|
8
|
+
import { useLogic } from './useLogic';
|
|
7
9
|
const headerCva = cva(dataGridClassnames.header, {
|
|
8
10
|
variants: {
|
|
9
11
|
isGroup: {
|
|
@@ -12,6 +14,7 @@ const headerCva = cva(dataGridClassnames.header, {
|
|
|
12
14
|
},
|
|
13
15
|
});
|
|
14
16
|
export const Head = (props) => {
|
|
15
|
-
const { columns,
|
|
16
|
-
|
|
17
|
+
const { columns, headerProps, resizePlugin, resizePluginProps, ...headColumnsProps } = props;
|
|
18
|
+
const { enabledResizePlugin } = useLogic(props);
|
|
19
|
+
return (_jsxs(Wrapper, { ...headerProps, role: "heading", className: cn(headerCva({ isGroup: columns.some(isGroupColumns) }), headerProps?.className), children: [_jsx(HeadColumns, { ...headColumnsProps, columns: columns }), enabledResizePlugin && resizePluginProps && (_jsx(enabledResizePlugin.HeadAddon, { ...resizePluginProps }))] }));
|
|
17
20
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type ReactNode } from 'react';
|
|
2
2
|
import { type CellValue, type DataGridGroupColumn, type DataGridRow, type DataGridSort } from '../../../types';
|
|
3
|
-
type GroupColumnsProps<TData extends Record<string, CellValue> = DataGridRow, TSortField extends
|
|
3
|
+
type GroupColumnsProps<TData extends Record<string, CellValue> = DataGridRow, TSortField extends PropertyKey = keyof TData> = {
|
|
4
4
|
column: DataGridGroupColumn<TData>;
|
|
5
5
|
sorting?: DataGridSort<TSortField>;
|
|
6
6
|
onSort: (field: TSortField) => void;
|
|
@@ -10,5 +10,5 @@ type GroupColumnsProps<TData extends Record<string, CellValue> = DataGridRow, TS
|
|
|
10
10
|
};
|
|
11
11
|
startAdornment?: ReactNode;
|
|
12
12
|
};
|
|
13
|
-
export declare const GroupColumns: <TData extends Record<string, unknown>, TSortField extends
|
|
13
|
+
export declare const GroupColumns: <TData extends Record<string, unknown>, TSortField extends PropertyKey>({ column, sorting, onSort, gridPosition, startAdornment, }: GroupColumnsProps<TData, TSortField>) => import("react/jsx-runtime").JSX.Element;
|
|
14
14
|
export {};
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Fragment } from 'react';
|
|
3
3
|
import { HeadCell, headCellClassnames } from '../../../HeadCell';
|
|
4
|
-
export const GroupColumns = ({ column, sorting, onSort, gridPosition, startAdornment, }) => (_jsxs(Fragment, { children: [_jsx(HeadCell, { sorting: sorting, label: column.label, onSort: onSort, className: headCellClassnames.groupParent, gridPosition: gridPosition, startAdornment: startAdornment }), column.children.map((child) =>
|
|
4
|
+
export const GroupColumns = ({ column, sorting, onSort, gridPosition, startAdornment, }) => (_jsxs(Fragment, { children: [_jsx(HeadCell, { sorting: sorting, label: column.label, onSort: onSort, className: headCellClassnames.groupParent, gridPosition: gridPosition, startAdornment: startAdornment }), column.children.map((child) => {
|
|
5
|
+
const { field, sortableFieldName, sortable, ...childProps } = child;
|
|
6
|
+
return (_jsx(HeadCell, { ...childProps, field: (sortableFieldName ?? field), sorting: sorting, isSortable: sortable, onSort: onSort, className: headCellClassnames.groupChild, startAdornment: child.columnHint }, child.label));
|
|
7
|
+
})] }, column.label));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type ChangeEvent } from 'react';
|
|
2
2
|
import { type CellValue, type DataGridColumns, type DataGridRow, type DataGridSort } from '../../types';
|
|
3
|
-
export type HeadColumnsProps<TData extends Record<string, CellValue> = DataGridRow, TSortField extends
|
|
3
|
+
export type HeadColumnsProps<TData extends Record<string, CellValue> = DataGridRow, TSortField extends PropertyKey = keyof TData> = {
|
|
4
4
|
/**
|
|
5
5
|
* Конфигурация колонок для таблицы
|
|
6
6
|
*/
|
|
@@ -38,4 +38,4 @@ export type HeadColumnsProps<TData extends Record<string, CellValue> = DataGridR
|
|
|
38
38
|
*/
|
|
39
39
|
sectionOffset?: number;
|
|
40
40
|
};
|
|
41
|
-
export declare const HeadColumns: <TData extends Record<string, unknown>, TSortField extends
|
|
41
|
+
export declare const HeadColumns: <TData extends Record<string, unknown>, TSortField extends PropertyKey>(props: HeadColumnsProps<TData, TSortField>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -9,7 +9,7 @@ export const HeadColumns = (props) => {
|
|
|
9
9
|
const { checkboxProps, handleSort, gridPositions } = useLogic(props);
|
|
10
10
|
const { columns, isSelectable, sorting, isHideSelectAll, sectionOffset } = props;
|
|
11
11
|
return (_jsx(_Fragment, { children: columns.map((column, index) => {
|
|
12
|
-
const { label, align, columnHint,
|
|
12
|
+
const { label, align, columnHint, sortField, sortable, showCheckbox } = getHeadCellProps({
|
|
13
13
|
column,
|
|
14
14
|
index,
|
|
15
15
|
sectionOffset,
|
|
@@ -21,6 +21,6 @@ export const HeadColumns = (props) => {
|
|
|
21
21
|
const position = gridPositions.get(column.label);
|
|
22
22
|
return (_jsx(GroupColumns, { column: column, sorting: sorting, onSort: handleSort, gridPosition: position, startAdornment: startAdornment }, column.label));
|
|
23
23
|
}
|
|
24
|
-
return (_jsx(SingleColumn, { sorting: sorting, field:
|
|
24
|
+
return (_jsx(SingleColumn, { sorting: sorting, field: sortField, label: label, isSortable: sortable, align: align, startAdornment: startAdornment, onSort: handleSort }, label));
|
|
25
25
|
}) }));
|
|
26
26
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type ReactNode } from 'react';
|
|
2
2
|
import { type CellValue, type DataGridRow, type DataGridSort } from '../../../types';
|
|
3
|
-
type SingleColumnProps<TData extends Record<string, CellValue> = DataGridRow, TSortField extends
|
|
4
|
-
field?:
|
|
3
|
+
type SingleColumnProps<TData extends Record<string, CellValue> = DataGridRow, TSortField extends PropertyKey = keyof TData> = {
|
|
4
|
+
field?: TSortField;
|
|
5
5
|
label?: string;
|
|
6
6
|
isSortable?: boolean;
|
|
7
7
|
align?: 'left' | 'center' | 'right';
|
|
@@ -9,5 +9,5 @@ type SingleColumnProps<TData extends Record<string, CellValue> = DataGridRow, TS
|
|
|
9
9
|
onSort: (field: TSortField) => void;
|
|
10
10
|
startAdornment?: ReactNode;
|
|
11
11
|
};
|
|
12
|
-
export declare const SingleColumn: <TData extends Record<string, unknown>, TSortField extends
|
|
12
|
+
export declare const SingleColumn: <TData extends Record<string, unknown>, TSortField extends PropertyKey>({ field, label, isSortable, align, sorting, onSort, startAdornment, }: SingleColumnProps<TData, TSortField>) => import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
export {};
|
|
@@ -3,7 +3,7 @@ import { type CheckboxProps } from '../../../../Checkbox';
|
|
|
3
3
|
import { type DataGridRow } from '../../../types';
|
|
4
4
|
import { type HeadColumnsProps } from '../HeadColumns';
|
|
5
5
|
import { type GridPositions } from './utils';
|
|
6
|
-
export declare const useLogic: <TData extends Record<string, unknown> = DataGridRow, TSortField extends
|
|
6
|
+
export declare const useLogic: <TData extends Record<string, unknown> = DataGridRow, TSortField extends PropertyKey = keyof TData>({ columns, onSort, sorting, uncheckedRowsCount, rowsCount, onSelectAllRows, }: HeadColumnsProps<TData, TSortField>) => {
|
|
7
7
|
checkboxProps: CheckboxProps;
|
|
8
8
|
handleSort: (field: TSortField) => void;
|
|
9
9
|
gridPositions: Map<string | keyof TData, GridPositions>;
|
|
@@ -11,7 +11,7 @@ export declare const getHeadCellProps: <TData extends Record<string, unknown>>({
|
|
|
11
11
|
label: string | undefined;
|
|
12
12
|
align: import("../../../types").AlignVariant | undefined;
|
|
13
13
|
columnHint: import("react").ReactNode;
|
|
14
|
-
|
|
14
|
+
sortField: string | number | symbol | undefined;
|
|
15
15
|
sortable: boolean | undefined;
|
|
16
16
|
showCheckbox: boolean;
|
|
17
17
|
};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { isGroupColumns } from '../../../utils';
|
|
2
2
|
export const getHeadCellProps = ({ column, index, sectionOffset, isSelectable, isHideSelectAll, }) => {
|
|
3
3
|
const { label, align, columnHint } = column;
|
|
4
|
-
const field = isGroupColumns(column) ? undefined : column.field;
|
|
5
4
|
const sortable = isGroupColumns(column) ? undefined : column.sortable;
|
|
5
|
+
const sortField = isGroupColumns(column)
|
|
6
|
+
? undefined
|
|
7
|
+
: (column.sortableFieldName ?? column.field);
|
|
6
8
|
const globalIndex = (sectionOffset ?? 0) + index;
|
|
7
9
|
const isFirstCell = globalIndex === 0;
|
|
8
10
|
const showCheckbox = isFirstCell && isSelectable && !isHideSelectAll;
|
|
@@ -10,7 +12,7 @@ export const getHeadCellProps = ({ column, index, sectionOffset, isSelectable, i
|
|
|
10
12
|
label,
|
|
11
13
|
align,
|
|
12
14
|
columnHint,
|
|
13
|
-
|
|
15
|
+
sortField,
|
|
14
16
|
sortable,
|
|
15
17
|
showCheckbox,
|
|
16
18
|
};
|
|
@@ -2,6 +2,4 @@
|
|
|
2
2
|
export declare const Wrapper: import("../../styled").StyledComponent<{
|
|
3
3
|
theme?: import("@emotion/react").Theme | undefined;
|
|
4
4
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
5
|
-
} & {
|
|
6
|
-
$gridColumns: string;
|
|
7
5
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, {}>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { HOVER_MEDIA, SCROLLBAR_SIZE } from '../../constants';
|
|
2
2
|
import { styled } from '../../styled';
|
|
3
|
-
export const Wrapper = styled
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
export const Wrapper = styled.header `
|
|
4
|
+
position: relative;
|
|
5
|
+
|
|
6
6
|
display: grid;
|
|
7
|
-
grid-template-columns:
|
|
7
|
+
grid-template-columns: var(--data-grid-columns);
|
|
8
8
|
|
|
9
9
|
width: fit-content;
|
|
10
10
|
min-width: 100%;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { DataGridRow } from '../../types';
|
|
2
|
+
import type { HeadProps } from '../Head';
|
|
3
|
+
export declare const useLogic: <TData extends Record<string, unknown> = DataGridRow, TSortField extends PropertyKey = keyof TData>({ resizePlugin, }: HeadProps<TData, TSortField>) => {
|
|
4
|
+
enabledResizePlugin: import("../../plugins/resize").DataGridResizePlugin | undefined;
|
|
5
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type ReactNode } from 'react';
|
|
2
2
|
import type { AlignVariant, DataGridRow, DataGridSort } from '../types';
|
|
3
|
-
export type HeadCellProps<TData = DataGridRow, TSortField extends
|
|
3
|
+
export type HeadCellProps<TData = DataGridRow, TSortField extends PropertyKey = keyof TData> = {
|
|
4
4
|
onSort: (field: TSortField) => void;
|
|
5
5
|
sorting?: DataGridSort<TSortField>;
|
|
6
6
|
label?: string;
|
|
@@ -9,7 +9,7 @@ export type HeadCellProps<TData = DataGridRow, TSortField extends keyof TData =
|
|
|
9
9
|
* Выравнивание содержимого ячейки по горизонтали
|
|
10
10
|
*/
|
|
11
11
|
align?: AlignVariant;
|
|
12
|
-
field?:
|
|
12
|
+
field?: TSortField;
|
|
13
13
|
/**
|
|
14
14
|
* Дополнительное содержимое ячейки, которое будет распложено справа
|
|
15
15
|
*/
|
|
@@ -26,4 +26,4 @@ export type HeadCellProps<TData = DataGridRow, TSortField extends keyof TData =
|
|
|
26
26
|
end: number;
|
|
27
27
|
};
|
|
28
28
|
};
|
|
29
|
-
export declare const HeadCell: <TData, TSortField extends
|
|
29
|
+
export declare const HeadCell: <TData, TSortField extends PropertyKey>(props: HeadCellProps<TData, TSortField>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type CSSProperties } from 'react';
|
|
2
2
|
import type { DataGridRow } from '../../types';
|
|
3
3
|
import { type HeadCellProps } from '../HeadCell';
|
|
4
|
-
type UseLogicParams<TData = DataGridRow, TSortField extends
|
|
5
|
-
export declare const useLogic: <TData, TSortField extends
|
|
4
|
+
type UseLogicParams<TData = DataGridRow, TSortField extends PropertyKey = keyof TData> = HeadCellProps<TData, TSortField>;
|
|
5
|
+
export declare const useLogic: <TData, TSortField extends PropertyKey>({ gridPosition, field, isSortable, startAdornment, onSort, }: UseLogicParams<TData, TSortField>) => {
|
|
6
6
|
hasStartAdornment: boolean;
|
|
7
7
|
handleSortClick: () => void;
|
|
8
8
|
headCellCssVars: CSSProperties;
|
|
@@ -2,15 +2,11 @@ import { type BodyProps } from '../Body';
|
|
|
2
2
|
import { type HeadProps } from '../Head';
|
|
3
3
|
import { type CellValue, type DataGridRow } from '../types';
|
|
4
4
|
import type { PinnedSection } from './types';
|
|
5
|
-
export type PinnedSectionsProps<TData extends Record<string, CellValue> = DataGridRow, TSortField extends
|
|
5
|
+
export type PinnedSectionsProps<TData extends Record<string, CellValue> = DataGridRow, TSortField extends PropertyKey = keyof TData> = {
|
|
6
6
|
/**
|
|
7
7
|
* Конфигурация закрепленных секций
|
|
8
8
|
*/
|
|
9
9
|
sections: PinnedSection<TData>[];
|
|
10
|
-
/**
|
|
11
|
-
* Конфигурация ширины колонок
|
|
12
|
-
*/
|
|
13
|
-
gridColumns: string;
|
|
14
10
|
/**
|
|
15
11
|
* Класс применяемый для корневого элемента
|
|
16
12
|
*/
|
|
@@ -22,14 +18,14 @@ export type PinnedSectionsProps<TData extends Record<string, CellValue> = DataGr
|
|
|
22
18
|
/**
|
|
23
19
|
* Параметры предназначены для конфигурации таблицы
|
|
24
20
|
*/
|
|
25
|
-
bodyProps: Omit<BodyProps<TData>, '
|
|
21
|
+
bodyProps: Omit<BodyProps<TData>, 'columns'>;
|
|
26
22
|
/**
|
|
27
23
|
* Параметры предназначены для конфигурации шапки таблицы
|
|
28
24
|
*/
|
|
29
|
-
headProps: Omit<HeadProps<TData, TSortField>, 'columns'
|
|
25
|
+
headProps: Omit<HeadProps<TData, TSortField>, 'columns'>;
|
|
30
26
|
/**
|
|
31
27
|
* Флаг для отображения placeholder при отсутствии данных
|
|
32
28
|
*/
|
|
33
29
|
isNoData?: boolean;
|
|
34
30
|
};
|
|
35
|
-
export declare const PinnedSections: <TData extends Record<string, unknown> = DataGridRow, TSortField extends
|
|
31
|
+
export declare const PinnedSections: <TData extends Record<string, unknown> = DataGridRow, TSortField extends PropertyKey = keyof TData>({ className, isDisabled, headProps, bodyProps, sections, isNoData, }: PinnedSectionsProps<TData, TSortField>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -3,9 +3,9 @@ import { getInertProps } from '../../utils/getInertProps';
|
|
|
3
3
|
import { Section } from './Section';
|
|
4
4
|
import { PinnedColumnsContainer } from './styles';
|
|
5
5
|
import { useLogic } from './useLogic';
|
|
6
|
-
export const PinnedSections = ({
|
|
6
|
+
export const PinnedSections = ({ className, isDisabled, headProps, bodyProps, sections, isNoData, }) => {
|
|
7
7
|
const { pinnedContainerStyles, sectionOffsets, totalColumnsCount } = useLogic({ sections });
|
|
8
|
-
return (_jsx(PinnedColumnsContainer, {
|
|
8
|
+
return (_jsx(PinnedColumnsContainer, { className: className, ...getInertProps(isDisabled), style: pinnedContainerStyles, children: sections.map(({ columns, position }) => {
|
|
9
9
|
return (_jsx(Section, { columns: columns, position: position, sectionOffset: sectionOffsets[position], bodyProps: { ...bodyProps, totalColumnsCount }, headProps: headProps, isNoData: isNoData }, position));
|
|
10
10
|
}) }));
|
|
11
11
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { DataGridRow } from '../../types';
|
|
2
2
|
import type { SectionProps } from './types';
|
|
3
|
-
export declare const Section: <TData extends Record<string, unknown> = DataGridRow, TSortField extends
|
|
3
|
+
export declare const Section: <TData extends Record<string, unknown> = DataGridRow, TSortField extends PropertyKey = keyof TData>({ columns, position, isNoData, headProps, bodyProps, sectionOffset, }: SectionProps<TData, TSortField>) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -13,5 +13,7 @@ export const Section = ({ columns, position, isNoData, headProps, bodyProps, sec
|
|
|
13
13
|
if (shouldNotRenderSection) {
|
|
14
14
|
return null;
|
|
15
15
|
}
|
|
16
|
-
return (_jsxs(DataGridSection, { className: classnames,
|
|
16
|
+
return (_jsxs(DataGridSection, { className: classnames,
|
|
17
|
+
// У секции свои колонки: переменная перекрывает значение контейнера таблицы
|
|
18
|
+
style: { '--data-grid-columns': gridColumns }, children: [!isNoData && (_jsx(Head, { ...headProps, columns: columns, sectionOffset: sectionOffset })), _jsx(Body, { ...bodyProps, columns: columns, sectionOffset: sectionOffset, className: dataGridClassnames.body })] }));
|
|
17
19
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { type BodyProps } from '../../Body';
|
|
2
2
|
import { type HeadProps } from '../../Head';
|
|
3
3
|
import { type CellValue, type DataGridColumns, type DataGridRow } from '../../types';
|
|
4
|
-
export type SectionProps<TData extends Record<string, CellValue> = DataGridRow, TSortField extends
|
|
4
|
+
export type SectionProps<TData extends Record<string, CellValue> = DataGridRow, TSortField extends PropertyKey = keyof TData> = {
|
|
5
5
|
/**
|
|
6
6
|
* Параметры предназначены для конфигурации таблицы
|
|
7
7
|
*/
|
|
8
|
-
bodyProps: Omit<BodyProps<TData>, '
|
|
8
|
+
bodyProps: Omit<BodyProps<TData>, 'columns'>;
|
|
9
9
|
/**
|
|
10
10
|
* Параметры предназначены для конфигурации шапки таблицы
|
|
11
11
|
*/
|
|
12
|
-
headProps: Omit<HeadProps<TData, TSortField>, 'columns'
|
|
12
|
+
headProps: Omit<HeadProps<TData, TSortField>, 'columns'>;
|
|
13
13
|
/**
|
|
14
14
|
* Флаг для отображения placeholder при отсутствии данных
|
|
15
15
|
*/
|
|
@@ -2,6 +2,4 @@
|
|
|
2
2
|
export declare const PinnedColumnsContainer: import("../../styled").StyledComponent<{
|
|
3
3
|
theme?: import("@emotion/react").Theme | undefined;
|
|
4
4
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
5
|
-
} & {
|
|
6
|
-
$gridColumns: string;
|
|
7
5
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -3,7 +3,7 @@ import { dataGridClassnames } from '../constants';
|
|
|
3
3
|
export const PinnedColumnsContainer = styled.div `
|
|
4
4
|
overflow: auto;
|
|
5
5
|
display: grid;
|
|
6
|
-
grid-template-columns:
|
|
6
|
+
grid-template-columns: var(--data-grid-columns);
|
|
7
7
|
|
|
8
8
|
width: 100%;
|
|
9
9
|
height: 100%;
|
|
@@ -20,10 +20,6 @@ export type NestedChildrenProps<TData extends Record<string, CellValue>> = {
|
|
|
20
20
|
* Вариант отображения вложенных элементов
|
|
21
21
|
*/
|
|
22
22
|
variant: `${Variant}`;
|
|
23
|
-
/**
|
|
24
|
-
* Конфигурация ширины колонок
|
|
25
|
-
*/
|
|
26
|
-
gridColumns: string;
|
|
27
23
|
/**
|
|
28
24
|
* Уровень вложенности в дереве
|
|
29
25
|
*/
|
|
@@ -15,7 +15,7 @@ const rootCva = cva(nestedChildrenClassnames.root, {
|
|
|
15
15
|
});
|
|
16
16
|
export const NestedChildren = (props) => {
|
|
17
17
|
const { isShowAllChildren, isShowMoreButton, isShowConnector, nextLevel, initialVisibleChildren, otherChildren, handleToggleShowAllChildren, } = useLogic(props);
|
|
18
|
-
const { isOpen, data, keyId, level,
|
|
18
|
+
const { isOpen, data, keyId, level, moreButtonColumnPosition, renderRow, variant, } = props;
|
|
19
19
|
if (!data || !data.length) {
|
|
20
20
|
return null;
|
|
21
21
|
}
|
|
@@ -41,5 +41,5 @@ export const NestedChildren = (props) => {
|
|
|
41
41
|
level: nextLevel,
|
|
42
42
|
className: `${dataGridRowClassnames.hidden} ${dataGridRowClassnames.nestedChildren}`,
|
|
43
43
|
});
|
|
44
|
-
}) }) }), isShowMoreButton && (_jsx(MoreButtonRow, { "$level": nextLevel, "$isShowConnector": isShowConnector,
|
|
44
|
+
}) }) }), isShowMoreButton && (_jsx(MoreButtonRow, { "$level": nextLevel, "$isShowConnector": isShowConnector, children: _jsx(MoreButton, { "$moreButtonColumnPosition": moreButtonColumnPosition, variant: "link", onClick: handleToggleShowAllChildren, children: isShowAllChildren ? 'Скрыть' : 'Показать все' }) }))] }))] }) }));
|
|
45
45
|
};
|
|
@@ -12,7 +12,6 @@ export declare const MoreButtonRow: import("../../../styled").StyledComponent<{
|
|
|
12
12
|
} & {
|
|
13
13
|
$level: number;
|
|
14
14
|
$isShowConnector: boolean;
|
|
15
|
-
$gridColumns: string;
|
|
16
15
|
}, import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, {}>;
|
|
17
16
|
export declare const MoreButton: import("../../../styled").StyledComponent<Omit<import("../../..").WithoutEmotionSpecific<import("@mui/material").ButtonProps>, "color" | "component" | "size" | "variant" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple"> & {
|
|
18
17
|
variant?: "light" | "link" | "text" | "contained" | "outlined" | undefined;
|
|
@@ -53,12 +53,12 @@ export const NestedRows = styled('ul', {
|
|
|
53
53
|
}
|
|
54
54
|
`;
|
|
55
55
|
export const MoreButtonRow = styled('li', {
|
|
56
|
-
shouldForwardProp: (prop) => !['$level', '$isShowConnector'
|
|
56
|
+
shouldForwardProp: (prop) => !['$level', '$isShowConnector'].includes(prop),
|
|
57
57
|
}) `
|
|
58
58
|
position: relative;
|
|
59
59
|
|
|
60
60
|
display: grid;
|
|
61
|
-
grid-template-columns:
|
|
61
|
+
grid-template-columns: var(--data-grid-columns);
|
|
62
62
|
|
|
63
63
|
height: 36px;
|
|
64
64
|
margin-left: ${({ $level }) => `${$level * ROOT_ACTION_CELL_WIDTH}px`};
|
|
@@ -58,7 +58,7 @@ const singleCellCva = cva(dataGridRowCellClassnames.single, {
|
|
|
58
58
|
*/
|
|
59
59
|
const RowInner = (props) => {
|
|
60
60
|
const { isOpen, isShowConnector, childrenColumns, rowId, handleToggle, checkboxProps, rowProps, isHovered, tooltipProps, nestedChildrenProps, isDisabled, isDisabledLastCell, isRenderCollapseButton, rowRef, rowStyles, drawerProps, disabledReason, isActive, isSelectable, mobileDisplayVariant, rootRowElement, rootRowRef, } = useLogic(props);
|
|
61
|
-
const { className, row, options, variant,
|
|
61
|
+
const { className, row, options, variant, isInitialExpanded, expandedLevel, level, nestedChildren, initialVisibleChildrenCount, moreButtonColumnPosition, isVisibleCollapseButton, columns, emptyCellValue, activeRowId, keyId, onSelectRow, onRowClick, sectionOffset, totalColumnsCount, registerRowElement, unregisterRowElement, onRowEnter, onRowLeave, style, getRowDisabled, isNested,
|
|
62
62
|
// В этот rest-оператор попадают специфичные пропсы (атрибуты) virtuoso
|
|
63
63
|
// Необходимы для DataGridInfinite
|
|
64
64
|
...selfProps } = props;
|
|
@@ -104,11 +104,10 @@ const RowInner = (props) => {
|
|
|
104
104
|
sectionOffset,
|
|
105
105
|
rootRowElement,
|
|
106
106
|
]);
|
|
107
|
-
const renderRow = useCallback(({ key, ...nestedRowProps }) => (_jsx(RowInner, { keyId: keyId, ...nestedRowProps, variant: variant, isSelectable: isSelectable,
|
|
107
|
+
const renderRow = useCallback(({ key, ...nestedRowProps }) => (_jsx(RowInner, { keyId: keyId, ...nestedRowProps, variant: variant, isSelectable: isSelectable, isInitialExpanded: isInitialExpanded, expandedLevel: expandedLevel, initialVisibleChildrenCount: initialVisibleChildrenCount, moreButtonColumnPosition: moreButtonColumnPosition, isVisibleCollapseButton: isVisibleCollapseButton, activeRowId: activeRowId, columns: childrenColumns, onSelectRow: onSelectRow, onRowClick: onRowClick, totalColumnsCount: totalColumnsCount, registerRowElement: registerRowElement, unregisterRowElement: unregisterRowElement, onRowEnter: onRowEnter, onRowLeave: onRowLeave, sectionOffset: sectionOffset, getRowDisabled: getRowDisabled, isNested: true }, key)), [
|
|
108
108
|
keyId,
|
|
109
109
|
variant,
|
|
110
110
|
isSelectable,
|
|
111
|
-
gridColumns,
|
|
112
111
|
isInitialExpanded,
|
|
113
112
|
expandedLevel,
|
|
114
113
|
initialVisibleChildrenCount,
|
|
@@ -129,6 +128,6 @@ const RowInner = (props) => {
|
|
|
129
128
|
isShowConnector,
|
|
130
129
|
mobileDisplayVariant,
|
|
131
130
|
hasNestedChildren: Boolean(nestedChildren?.length),
|
|
132
|
-
})), style: rowStyles, ...selfProps, ref: rootRowRef, children: [_jsx(Tooltip, { followCursor: true, arrow: false, ...tooltipProps, children: _jsx(ContentWrapper, { "data-row-id": rowId, ref: rowRef, onPointerEnter: () => onRowEnter?.(rowId), onPointerLeave: (event) => onRowLeave?.(rowId, event.nativeEvent), className: rowContentCva({ isHovered, isActive }),
|
|
131
|
+
})), style: rowStyles, ...selfProps, ref: rootRowRef, children: [_jsx(Tooltip, { followCursor: true, arrow: false, ...tooltipProps, children: _jsx(ContentWrapper, { "data-row-id": rowId, ref: rowRef, onPointerEnter: () => onRowEnter?.(rowId), onPointerLeave: (event) => onRowLeave?.(rowId, event.nativeEvent), className: rowContentCva({ isHovered, isActive }), [DISABLE_ROW_ATTR]: isDisabled, ...rowProps, children: renderCells() }) }), _jsx(NestedChildren, { ...nestedChildrenProps, data: nestedChildren, keyId: keyId, level: level, variant: variant, initialVisibleChildrenCount: initialVisibleChildrenCount, moreButtonColumnPosition: moreButtonColumnPosition, renderRow: renderRow }), _jsx(BottomDrawer, { ...drawerProps, children: _jsx(BottomDrawerContent, { children: disabledReason }) })] }, `row-${rowId}`));
|
|
133
132
|
};
|
|
134
133
|
export const Row = memo(RowInner);
|
|
@@ -6,8 +6,6 @@ export declare const Wrapper: import("../../styled").StyledComponent<{
|
|
|
6
6
|
export declare const ContentWrapper: import("../../styled").StyledComponent<{
|
|
7
7
|
theme?: import("@emotion/react").Theme | undefined;
|
|
8
8
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
9
|
-
} & {
|
|
10
|
-
$gridColumns: string;
|
|
11
9
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
12
10
|
export declare const CellStyled: import("../../styled").StyledComponent<import("../Cell").CellProps<Record<string, unknown>> & {
|
|
13
11
|
theme?: import("@emotion/react").Theme | undefined;
|