@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
package/components/index.d.ts
CHANGED
|
@@ -131,7 +131,7 @@ export * from './MenuItem';
|
|
|
131
131
|
export * from './MenuList';
|
|
132
132
|
export { MinimalisticPagination, type MinimalisticPaginationProps, } from './MinimalisticPagination';
|
|
133
133
|
export * from './NavMenu';
|
|
134
|
-
export { type DataGridColumns, type DataGridRenderLink, type DataGridRenderLinkParams, type DataGridRow, type DataGridRowDisabled, type DataGridRowOptions, type DataGridSort, DataGrid, type DataGridProps, } from './DataGrid';
|
|
134
|
+
export { type DataGridColumns, type DataGridRenderLink, type DataGridRenderLinkParams, type DataGridRow, type DataGridRowDisabled, type DataGridRowOptions, type DataGridSort, DataGrid, type DataGridProps, type DataGridPlugin, type DataGridHeaderProps, } from './DataGrid';
|
|
135
135
|
export { DataGridInfinite, type DataGridInfiniteProps, } from './DataGridInfinite';
|
|
136
136
|
export { DataGridColumnHintIcon, type DataGridColumnHintIconProps, } from './DataGridColumnHintIcon';
|
|
137
137
|
export { type DateItemProps, type DateRangePickerProps, type DateRangePickerValue, DateRangePicker, } from './DateRangePicker';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './setRef';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './setRef';
|
|
@@ -1,10 +1,17 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Tooltip } from '../../components/Tooltip';
|
|
3
|
-
import {
|
|
3
|
+
import { cva } from '../../components/utils/cva';
|
|
4
4
|
import { editableTextClassnames } from './constants';
|
|
5
5
|
import { EditingForm } from './EditingForm';
|
|
6
|
-
import { DisplayValue, StyledEditIcon, StyledLoader, StyledPopover, } from './styles';
|
|
6
|
+
import { DisplayValue, StyledEditIcon, StyledLoader, StyledPopover, Wrapper, } from './styles';
|
|
7
7
|
import { useLogic } from './useLogic';
|
|
8
|
+
const editIconCva = cva('', {
|
|
9
|
+
variants: {
|
|
10
|
+
isShowOnHover: {
|
|
11
|
+
true: editableTextClassnames.showIconOnHover,
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
});
|
|
8
15
|
const getShowEditIconMode = ({ showEditIcon, isShowIcon = true, }) => {
|
|
9
16
|
if (showEditIcon !== undefined) {
|
|
10
17
|
return showEditIcon;
|
|
@@ -13,7 +20,7 @@ const getShowEditIconMode = ({ showEditIcon, isShowIcon = true, }) => {
|
|
|
13
20
|
};
|
|
14
21
|
// biome-ignore lint/complexity/noUselessTypeConstraint: Фикс типизации в тестах
|
|
15
22
|
export const EditableText = (props) => {
|
|
16
|
-
const { isIconOnLeft, onClose, displayValueProps, tooltipProps, popoverProps, } = useLogic(props);
|
|
23
|
+
const { isIconOnLeft, onClose, onWrapperClick, displayValueProps, tooltipProps, popoverProps, } = useLogic(props);
|
|
17
24
|
const { className, children, isShowIcon = true, isLoading, showEditIcon, iconPosition = 'right', ...restProps } = props;
|
|
18
25
|
const showEditIconMode = getShowEditIconMode({ showEditIcon, isShowIcon });
|
|
19
26
|
const renderIcon = () => {
|
|
@@ -23,11 +30,11 @@ export const EditableText = (props) => {
|
|
|
23
30
|
if (showEditIconMode === 'none') {
|
|
24
31
|
return null;
|
|
25
32
|
}
|
|
26
|
-
return (_jsx(StyledEditIcon, { "$iconPosition": iconPosition, className:
|
|
27
|
-
|
|
33
|
+
return (_jsx(StyledEditIcon, { "$iconPosition": iconPosition, className: editIconCva({
|
|
34
|
+
isShowOnHover: showEditIconMode === 'onHover',
|
|
28
35
|
}) }));
|
|
29
36
|
};
|
|
30
|
-
return (_jsxs(
|
|
37
|
+
return (_jsxs(Wrapper, { onClick: onWrapperClick, children: [_jsx(Tooltip, { ...tooltipProps, placement: "bottom", children: _jsxs(DisplayValue, { "$isLoading": isLoading, className: className, variant: "inherit", ...displayValueProps, children: [isIconOnLeft && renderIcon(), children, !isIconOnLeft && renderIcon()] }) }), _jsx(StyledPopover, { anchorOrigin: {
|
|
31
38
|
vertical: 'bottom',
|
|
32
39
|
horizontal: 'left',
|
|
33
40
|
}, ...popoverProps, children: _jsx(EditingForm, { children: children, onClose: onClose, ...restProps }) })] }));
|
|
@@ -5,7 +5,7 @@ import { CrossOutlineMd } from '../../../icons/CrossOutlineMd';
|
|
|
5
5
|
import { Form } from '../../Form';
|
|
6
6
|
import { FormSubmitButton } from '../../FormSubmitButton';
|
|
7
7
|
import { FormTextField } from '../../FormTextField';
|
|
8
|
-
import { FIELD_NAME } from '../constants';
|
|
8
|
+
import { editableTextClassnames, FIELD_NAME } from '../constants';
|
|
9
9
|
import { FormIconSubmitButton } from '../FormIconSubmitButton';
|
|
10
10
|
import { Actions, Description, FieldContainer, FieldRow, FormFooter, Wrapper, } from './styles';
|
|
11
11
|
import { useLogic } from './useLogic';
|
|
@@ -19,5 +19,5 @@ export const EditingForm = (props) => {
|
|
|
19
19
|
fullWidth: true,
|
|
20
20
|
autoFocus: true,
|
|
21
21
|
};
|
|
22
|
-
return (_jsx(Wrapper, { children: _jsxs(Form, { ...formProps, children: [_jsx(Description, { children: "\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043D\u043E\u0432\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0438 \
|
|
22
|
+
return (_jsx(Wrapper, { children: _jsxs(Form, { ...formProps, children: [_jsx(Description, { children: "\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043D\u043E\u0432\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0438 \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u0435 \u0441\u043E\u0445\u0440\u0430\u043D\u0435\u043D\u0438\u0435" }), _jsxs(FieldRow, { children: [_jsx(FieldContainer, { children: componentField(formFieldProps) }), !isMobile && (_jsxs(Actions, { className: editableTextClassnames.actions, children: [_jsx(FormIconSubmitButton, { variant: "outlined", size: "large", color: "success", "aria-label": "\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C", children: _jsx(CheckOutlineMd, {}) }), _jsx(IconButton, { variant: "outlined", size: "large", color: "grey", "aria-label": "\u041E\u0442\u043C\u0435\u043D\u0430", onClick: onClose, children: _jsx(CrossOutlineMd, {}) })] }))] }), isMobile && (_jsx(FormFooter, { children: _jsx(FormSubmitButton, { children: "\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C" }) }))] }) }));
|
|
23
23
|
};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import { formLabelClasses } from '@mui/material';
|
|
1
2
|
import { buttonClasses } from '../../../components/Button';
|
|
2
3
|
import { styled } from '../../../components/styled';
|
|
3
4
|
import { Typography } from '../../../components/Typography';
|
|
5
|
+
import { editableTextClassnames } from '../constants';
|
|
4
6
|
export const Wrapper = styled.div `
|
|
5
7
|
width: 400px;
|
|
6
8
|
padding: ${({ theme }) => theme.spacing(4)};
|
|
@@ -20,6 +22,12 @@ export const FieldRow = styled.div `
|
|
|
20
22
|
display: flex;
|
|
21
23
|
gap: ${({ theme }) => theme.spacing(5)};
|
|
22
24
|
align-items: flex-start;
|
|
25
|
+
|
|
26
|
+
/* Причина игнора: Не критично для отображения */
|
|
27
|
+
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
|
|
28
|
+
&:has(.${formLabelClasses.root}) .${editableTextClassnames.actions} {
|
|
29
|
+
margin-top: ${({ theme }) => theme.spacing(5)};
|
|
30
|
+
}
|
|
23
31
|
`;
|
|
24
32
|
export const FieldContainer = styled.div `
|
|
25
33
|
flex: 1;
|
|
@@ -2,4 +2,5 @@ import { createUIKitClassname } from '../../components/utils/createUIKitClassnam
|
|
|
2
2
|
export const FIELD_NAME = 'editableField';
|
|
3
3
|
export const editableTextClassnames = {
|
|
4
4
|
showIconOnHover: createUIKitClassname('editable-text__edit-icon_show-on-hover'),
|
|
5
|
+
actions: createUIKitClassname('editable-text__actions'),
|
|
5
6
|
};
|
|
@@ -33,3 +33,7 @@ export declare const StyledPopover: import("../../components/styled").StyledComp
|
|
|
33
33
|
} & {
|
|
34
34
|
theme?: import("@emotion/react").Theme | undefined;
|
|
35
35
|
}, {}, {}>;
|
|
36
|
+
export declare const Wrapper: import("../../components/styled").StyledComponent<{
|
|
37
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
38
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
39
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
@@ -18,7 +18,8 @@ export const DisplayValue = styled(Typography, {
|
|
|
18
18
|
}) `
|
|
19
19
|
cursor: pointer;
|
|
20
20
|
|
|
21
|
-
display:
|
|
21
|
+
display: inline-flex;
|
|
22
|
+
align-items: center;
|
|
22
23
|
|
|
23
24
|
background: ${({ theme, $isEdited, $isLoading }) => getBackgroundColor(theme, $isEdited, $isLoading)};
|
|
24
25
|
border-radius: ${({ theme }) => theme.shape.small};
|
|
@@ -48,9 +49,6 @@ export const StyledEditIcon = styled(EditOutlineMd, {
|
|
|
48
49
|
height: 1em;
|
|
49
50
|
min-height: 16px;
|
|
50
51
|
margin-right: ${({ $iconPosition, theme }) => $iconPosition === 'left' ? theme.spacing(1) : ''};
|
|
51
|
-
|
|
52
|
-
/* Вертикальный отступ для визуального центрирования. Значение подобрано эмпирическим путем */
|
|
53
|
-
margin-bottom: calc(-1em / 5);
|
|
54
52
|
margin-left: ${({ $iconPosition, theme }) => $iconPosition === 'right' ? theme.spacing(1) : ''};
|
|
55
53
|
|
|
56
54
|
font-size: inherit;
|
|
@@ -65,11 +63,6 @@ export const StyledLoader = styled(Loader, {
|
|
|
65
63
|
width: 1em;
|
|
66
64
|
height: 1em;
|
|
67
65
|
margin-right: ${({ $iconPosition, theme }) => $iconPosition === 'left' ? theme.spacing(1) : ''};
|
|
68
|
-
|
|
69
|
-
/* Задаем вертикальный отступ для визуального центрирования */
|
|
70
|
-
|
|
71
|
-
/* Значение подобрано эмпирическим путем */
|
|
72
|
-
margin-bottom: calc(-1em / 5);
|
|
73
66
|
margin-left: ${({ $iconPosition, theme }) => $iconPosition === 'right' ? theme.spacing(1) : ''};
|
|
74
67
|
|
|
75
68
|
font-size: inherit;
|
|
@@ -77,3 +70,6 @@ export const StyledLoader = styled(Loader, {
|
|
|
77
70
|
export const StyledPopover = styled(Popover) `
|
|
78
71
|
margin-top: ${({ theme }) => theme.spacing(2)};
|
|
79
72
|
`;
|
|
73
|
+
export const Wrapper = styled.span `
|
|
74
|
+
display: contents;
|
|
75
|
+
`;
|
|
@@ -3,6 +3,7 @@ import { type EditableTextProps } from '../EditableText';
|
|
|
3
3
|
export declare const useLogic: <TValue>({ isLoading, iconPosition, }: EditableTextProps<TValue>) => {
|
|
4
4
|
isIconOnLeft: boolean;
|
|
5
5
|
onClose: () => void;
|
|
6
|
+
onWrapperClick: (event: SyntheticEvent) => void;
|
|
6
7
|
tooltipProps: {
|
|
7
8
|
title: string | undefined;
|
|
8
9
|
};
|
|
@@ -4,7 +4,11 @@ export const useLogic = ({ isLoading, iconPosition, }) => {
|
|
|
4
4
|
const { isOpen, anchor, actions } = usePopover();
|
|
5
5
|
const isIconOnLeft = iconPosition === 'left';
|
|
6
6
|
const tooltipTitle = isLoading ? undefined : NOTE_TEXT;
|
|
7
|
+
const handleWrapperClick = (event) => {
|
|
8
|
+
event.stopPropagation();
|
|
9
|
+
};
|
|
7
10
|
const handleOpen = (event) => {
|
|
11
|
+
event.preventDefault();
|
|
8
12
|
if (isLoading) {
|
|
9
13
|
return;
|
|
10
14
|
}
|
|
@@ -13,6 +17,7 @@ export const useLogic = ({ isLoading, iconPosition, }) => {
|
|
|
13
17
|
return {
|
|
14
18
|
isIconOnLeft,
|
|
15
19
|
onClose: actions.close,
|
|
20
|
+
onWrapperClick: handleWrapperClick,
|
|
16
21
|
tooltipProps: {
|
|
17
22
|
title: tooltipTitle,
|
|
18
23
|
},
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { Checkbox } from '../../components/Checkbox';
|
|
3
2
|
import { Chip, ChipProvider } from '../../components/Chip';
|
|
4
|
-
import { ListItemIcon } from '../../components/ListItemIcon';
|
|
5
|
-
import { MenuItem } from '../../components/MenuItem';
|
|
6
3
|
import { FormSelect } from '../FormSelect';
|
|
7
4
|
import { FORM_FILTERS_QUICK_FILTERS_ID, FORM_QUICK_FILTERS_ALL_CHIP_KEY, FORM_QUICK_FILTERS_ALL_VALUE, } from './constants';
|
|
8
5
|
import { MobileWrapper, Wrapper } from './styles';
|
|
@@ -32,15 +29,6 @@ import { useLogic } from './useLogic/useLogic';
|
|
|
32
29
|
* />
|
|
33
30
|
*/
|
|
34
31
|
export const FormQuickFilters = (props) => {
|
|
35
|
-
const { field, filterOptions, checkIsAllSelected, handleChipChange, isSelected, label, allLabel, allCounter, multiple, maxCount, name, placeholder, control, getOptionLabel,
|
|
36
|
-
|
|
37
|
-
return filterOptions.map((option) => {
|
|
38
|
-
const checked = control._formValues[name]?.includes(option.value);
|
|
39
|
-
return (_jsxs(MenuItem, { value: option.value, children: [_jsx(ListItemIcon, { children: _jsx(Checkbox, { checked: checked }) }), option.label, getCounterLabel(option)] }, option.value));
|
|
40
|
-
});
|
|
41
|
-
};
|
|
42
|
-
const renderSingleOptions = () => {
|
|
43
|
-
return filterOptions.map((option) => (_jsxs(MenuItem, { value: option.value, children: [option.label, getCounterLabel(option)] }, option.value)));
|
|
44
|
-
};
|
|
45
|
-
return (_jsxs(_Fragment, { children: [_jsx(Wrapper, { children: _jsxs(ChipProvider, { mode: multiple ? 'multiple' : 'single', name: name, children: [_jsx(Chip, { label: allLabel, isSelected: checkIsAllSelected(), onChange: () => handleChipChange(FORM_QUICK_FILTERS_ALL_VALUE), counter: allCounter, size: "medium", maxCount: maxCount, value: FORM_QUICK_FILTERS_ALL_VALUE }, FORM_QUICK_FILTERS_ALL_CHIP_KEY), filterOptions.map((option) => (_jsx(Chip, { label: option.label, isSelected: isSelected(option.value), onChange: () => handleChipChange(option.value), status: option.status, counter: option.counter, size: "medium", maxCount: maxCount, value: String(option.value) }, option.value)))] }) }), _jsx(MobileWrapper, { children: _jsx(FormSelect, { control: control, name: name, inputProps: { id: FORM_FILTERS_QUICK_FILTERS_ID }, label: label, getOptionLabel: getOptionLabel, multiple: multiple, onChange: field.onChange, onBlur: field.onBlur, fullWidth: true, placeholder: placeholder, children: multiple ? renderMultipleOptions() : renderSingleOptions() }) })] }));
|
|
32
|
+
const { field, filterOptions, checkIsAllSelected, handleChipChange, isSelected, label, allLabel, allCounter, multiple, maxCount, name, placeholder, control, selectOptions, getOptionLabel, renderOption, handleSelectChange, } = useLogic(props);
|
|
33
|
+
return (_jsxs(_Fragment, { children: [_jsx(Wrapper, { children: _jsxs(ChipProvider, { mode: multiple ? 'multiple' : 'single', name: name, children: [_jsx(Chip, { label: allLabel, isSelected: checkIsAllSelected(), onChange: () => handleChipChange(FORM_QUICK_FILTERS_ALL_VALUE), counter: allCounter, size: "medium", maxCount: maxCount, value: FORM_QUICK_FILTERS_ALL_VALUE }, FORM_QUICK_FILTERS_ALL_CHIP_KEY), filterOptions.map((option) => (_jsx(Chip, { label: option.label, isSelected: isSelected(option.value), onChange: () => handleChipChange(option.value), status: option.status, counter: option.counter, size: "medium", maxCount: maxCount, value: String(option.value) }, option.value)))] }) }), _jsx(MobileWrapper, { children: _jsx(FormSelect, { control: control, name: name, inputProps: { id: FORM_FILTERS_QUICK_FILTERS_ID }, label: label, options: selectOptions, getOptionLabel: getOptionLabel, renderOption: renderOption, multiple: multiple, onChange: handleSelectChange, onBlur: field.onBlur, fullWidth: true, placeholder: placeholder }) })] }));
|
|
46
34
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { SelectChangeEvent } from '@mui/material/Select';
|
|
2
|
+
import type { FormQuickFiltersProps, QuickFilterValue } from '../types';
|
|
2
3
|
export declare const useLogic: <TFieldValues extends object>({ control, name, label, options, allLabel, allCounter, multiple, maxCount, placeholder, }: FormQuickFiltersProps<TFieldValues>) => {
|
|
3
4
|
field: import("react-hook-form").ControllerRenderProps<TFieldValues, import("react-hook-form").Path<TFieldValues>>;
|
|
4
|
-
filterOptions: QuickFilterOption[];
|
|
5
|
+
filterOptions: import("../types").QuickFilterOption[];
|
|
5
6
|
checkIsAllSelected: () => boolean;
|
|
6
7
|
handleChipChange: (optionValue: QuickFilterValue) => void;
|
|
7
8
|
isSelected: (optionValue: QuickFilterValue) => boolean;
|
|
@@ -13,6 +14,8 @@ export declare const useLogic: <TFieldValues extends object>({ control, name, la
|
|
|
13
14
|
name: import("react-hook-form").Path<TFieldValues>;
|
|
14
15
|
placeholder: string | undefined;
|
|
15
16
|
control: import("react-hook-form").Control<TFieldValues>;
|
|
16
|
-
|
|
17
|
-
|
|
17
|
+
selectOptions: QuickFilterValue[];
|
|
18
|
+
getOptionLabel: (value: QuickFilterValue) => string;
|
|
19
|
+
renderOption: (value: QuickFilterValue) => string;
|
|
20
|
+
handleSelectChange: (event: SelectChangeEvent<unknown>) => void;
|
|
18
21
|
};
|
|
@@ -32,12 +32,15 @@ export const useLogic = ({ control, name, label, options, allLabel = FORM_QUICK_
|
|
|
32
32
|
}
|
|
33
33
|
return field.value === optionValue;
|
|
34
34
|
};
|
|
35
|
-
const
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
const
|
|
40
|
-
|
|
35
|
+
const handleSelectChange = (event) => field.onChange(event.target.value ?? FORM_QUICK_FILTERS_ALL_VALUE);
|
|
36
|
+
const selectOptions = filterOptions.map((option) => option.value);
|
|
37
|
+
const findOption = (value) => filterOptions.find((option) => option.value === value);
|
|
38
|
+
const getOptionLabel = (value) => findOption(value)?.label || String(value);
|
|
39
|
+
const renderOption = (value) => {
|
|
40
|
+
const counter = findOption(value)?.counter;
|
|
41
|
+
return counter
|
|
42
|
+
? `${getOptionLabel(value)} (${counter})`
|
|
43
|
+
: getOptionLabel(value);
|
|
41
44
|
};
|
|
42
45
|
return {
|
|
43
46
|
field,
|
|
@@ -53,7 +56,9 @@ export const useLogic = ({ control, name, label, options, allLabel = FORM_QUICK_
|
|
|
53
56
|
name,
|
|
54
57
|
placeholder,
|
|
55
58
|
control,
|
|
59
|
+
selectOptions,
|
|
56
60
|
getOptionLabel,
|
|
57
|
-
|
|
61
|
+
renderOption,
|
|
62
|
+
handleSelectChange,
|
|
58
63
|
};
|
|
59
64
|
};
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { type SelectProps } from '../../components/Select';
|
|
2
2
|
import { type WithFormFieldProps } from '../types';
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* TOption — тип пункта: выводится из options, без options по умолчанию string | number, как у value из MenuItem
|
|
5
|
+
*/
|
|
6
|
+
export type FormSelectProps<TFieldValues extends object, TOption = string | number> = WithFormFieldProps<SelectProps<unknown, TOption>, TFieldValues>;
|
|
4
7
|
/**
|
|
5
8
|
* Адаптер для Select
|
|
6
9
|
*/
|
|
7
|
-
export declare const FormSelect: <TFieldValues extends object>(props: FormSelectProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const FormSelect: <TFieldValues extends object, TOption = string | number>(props: FormSelectProps<TFieldValues, TOption>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type SelectionCardGroupProps } from '../../components/SelectionCardGroup';
|
|
2
|
+
import { type WithFormFieldProps } from '../types';
|
|
3
|
+
export type FormSelectionCardGroupProps<TFieldValues extends object> = WithFormFieldProps<SelectionCardGroupProps, TFieldValues>;
|
|
4
|
+
/**
|
|
5
|
+
* Адаптер SelectionCardGroup для формы
|
|
6
|
+
*/
|
|
7
|
+
export declare const FormSelectionCardGroup: <TFieldValues extends object>(props: FormSelectionCardGroupProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { SelectionCardGroup, } from '../../components/SelectionCardGroup';
|
|
3
|
+
import { useFormFieldProps } from '../useFormFieldProps';
|
|
4
|
+
/**
|
|
5
|
+
* Адаптер SelectionCardGroup для формы
|
|
6
|
+
*/
|
|
7
|
+
export const FormSelectionCardGroup = (props) => {
|
|
8
|
+
const { errorText, isError, ...withoutErrorProps } = props;
|
|
9
|
+
// Пустое значение группы зависит от режима: null — ничего не выбрано, [] — пустой список
|
|
10
|
+
const emptyValue = withoutErrorProps.selectionMode === 'multiple' ? [] : null;
|
|
11
|
+
// ref из field не передаём: группа не forwardRef, прокрутка к ошибке работает через inputRef
|
|
12
|
+
const { error, helperText, inputRef, children, ref, ...fieldProps } = useFormFieldProps({
|
|
13
|
+
...withoutErrorProps,
|
|
14
|
+
defaultValue: withoutErrorProps.defaultValue ??
|
|
15
|
+
emptyValue,
|
|
16
|
+
});
|
|
17
|
+
return (_jsx(SelectionCardGroup, { isError: error, errorText: helperText, ...fieldProps, inputRef: inputRef, children: children }));
|
|
18
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './FormSelectionCardGroup';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './FormSelectionCardGroup';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './FormSelectionCardGroup';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './FormSelectionCardGroup';
|
|
@@ -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
|
*/
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.useLogic = void 0;
|
|
4
4
|
const react_1 = require("react");
|
|
5
5
|
const redirectToLink_1 = require("../../../utils/redirectToLink");
|
|
6
|
+
const constants_1 = require("../../constants");
|
|
6
7
|
const DataGridContext_1 = require("../../DataGridContext");
|
|
7
8
|
const useLogic = ({ row, href, target, cell, emptyCellValue, startAdornment, }) => {
|
|
8
9
|
const { isTabularNums: contextIsTabularNums, renderLink } = (0, react_1.useContext)(DataGridContext_1.DataGridContext);
|
|
@@ -21,7 +22,7 @@ const useLogic = ({ row, href, target, cell, emptyCellValue, startAdornment, })
|
|
|
21
22
|
return emptyCellValue;
|
|
22
23
|
}, [field, format, row, emptyCellValue]);
|
|
23
24
|
const hasStartAdornment = Boolean(startAdornment);
|
|
24
|
-
const isActionColumn = cell.field ===
|
|
25
|
+
const isActionColumn = cell.field === constants_1.ACTIONS_COLUMN_FIELD;
|
|
25
26
|
const onCellClick = () => {
|
|
26
27
|
if (isActionColumn && href) {
|
|
27
28
|
return (0, redirectToLink_1.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;
|
|
@@ -48,6 +48,9 @@ const dataGridCva = (0, cva_1.cva)(constants_2.dataGridClassnames.root, {
|
|
|
48
48
|
hasGroupedColumns: {
|
|
49
49
|
true: constants_2.dataGridClassnames.hasGroupedColumns,
|
|
50
50
|
},
|
|
51
|
+
hasResizePlugin: {
|
|
52
|
+
true: constants_2.dataGridClassnames.hasResizePlugin,
|
|
53
|
+
},
|
|
51
54
|
mobileDisplayVariant: {
|
|
52
55
|
cards: constants_2.dataGridClassnames.mobileVariantCards,
|
|
53
56
|
list: constants_2.dataGridClassnames.mobileVariantList,
|
|
@@ -65,9 +68,9 @@ const bodyCva = (0, cva_1.cva)(constants_2.dataGridClassnames.body, {
|
|
|
65
68
|
},
|
|
66
69
|
});
|
|
67
70
|
const DataGrid = (props) => {
|
|
68
|
-
const { dataGridClassName, isDataGridDisabled, treeRenderConfig, headColumns, headProps, bodyProps,
|
|
71
|
+
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, } = (0, useLogic_1.useLogic)(props);
|
|
69
72
|
const { emptySymbol } = (0, react_1.useContext)(ConfigProvider_1.ConfigContext);
|
|
70
|
-
const { columns, selectedRows = [], onSelectRow, minDisplayRows = constants_2.MIN_DISPLAY_ROWS_BY_DEFAULT, variant = enums_1.Variant.Tree, footer, massActions, noDataPlaceholder, subrows, keyId, activeRowId, emptyCellValue = emptySymbol, onRowClick, noDataOptions,
|
|
73
|
+
const { columns, selectedRows = [], onSelectRow, minDisplayRows = constants_2.MIN_DISPLAY_ROWS_BY_DEFAULT, variant = enums_1.Variant.Tree, footer, massActions, noDataPlaceholder, subrows, keyId, activeRowId, emptyCellValue = emptySymbol, onRowClick, noDataOptions, isTabularNums, renderRow, renderLink, } = props;
|
|
71
74
|
const { moreButtonColumnPosition = 1, isVisibleCollapseButton = true } = subrows || {};
|
|
72
75
|
const { isInitialExpanded = false, expandedLevel = constants_2.EXPANDED_LEVEL_BY_DEFAULT, initialVisibleChildrenCount = constants_2.INITIAL_OPENED_NESTED_CHILDREN_COUNT_BY_DEFAULT, } = treeRenderConfig || {};
|
|
73
76
|
const Wrapper = isDataGridDisabled
|
|
@@ -98,15 +101,16 @@ const DataGrid = (props) => {
|
|
|
98
101
|
};
|
|
99
102
|
const renderTableContent = () => {
|
|
100
103
|
if (!hasPinnedColumns || isMobile) {
|
|
101
|
-
return ((0, jsx_runtime_1.jsxs)(Wrapper, { ...(0, getInertProps_1.getInertProps)(isDataGridDisabled), className: constants_2.dataGridClassnames.wrapper, children: [
|
|
104
|
+
return ((0, jsx_runtime_1.jsxs)(Wrapper, { ref: wrapperRef, ...(0, getInertProps_1.getInertProps)(isDataGridDisabled), className: constants_2.dataGridClassnames.wrapper, children: [!isHideHead && ((0, jsx_runtime_1.jsx)(Head_1.Head, { ...headProps, headerProps: headerProps, columns: headColumns, resizePlugin: resizePlugin, resizePluginProps: resizePluginProps })), (0, jsx_runtime_1.jsx)(ContentState_1.ContentState, { ...contentStateProps, loadingContent: isMobile && (0, jsx_runtime_1.jsx)(MobileSkeleton_1.MobileSkeleton, { ...mobileSkeletonProps }), children: (0, jsx_runtime_1.jsx)(Body_1.Body, { ...commonBodyProps, activeRowId: activeRowId, columns: columns, className: bodyCva({
|
|
102
105
|
isNoData,
|
|
103
106
|
}) }) })] }));
|
|
104
107
|
}
|
|
105
108
|
return ((0, jsx_runtime_1.jsx)(ContentState_1.ContentState, { ...contentStateProps, children: (0, jsx_runtime_1.jsx)(PinnedSections_1.PinnedSections, { sections: sections, className: pinnedSectionsCva({
|
|
106
109
|
isDisabled: isDataGridDisabled,
|
|
107
|
-
}), isDisabled: isDataGridDisabled, headProps: headProps,
|
|
110
|
+
}), isDisabled: isDataGridDisabled, headProps: headProps, bodyProps: commonBodyProps, isNoData: isNoData }) }));
|
|
108
111
|
};
|
|
109
|
-
return ((0, jsx_runtime_1.jsx)(DataGridContext_1.DataGridContextProvider, { isLoading: isLoading, isTabularNums: isTabularNums,
|
|
112
|
+
return ((0, jsx_runtime_1.jsx)(DataGridContext_1.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: (0, jsx_runtime_1.jsxs)(styles_1.Container, { ref: containerRef, style: containerCssVars, className: (0, cn_1.cn)(dataGridClassName, dataGridCva({
|
|
113
|
+
hasResizePlugin: Boolean(resizePlugin),
|
|
110
114
|
isAllowHorizontalScroll,
|
|
111
115
|
hasPinnedColumns,
|
|
112
116
|
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 {};
|
|
@@ -6,11 +6,10 @@ const react_1 = require("react");
|
|
|
6
6
|
const DataGridSelectionContext_1 = require("../../DataGridSelectionContext");
|
|
7
7
|
const DataGridStorageContext_1 = require("../../DataGridStorageContext");
|
|
8
8
|
const DataGridContext_1 = require("../DataGridContext");
|
|
9
|
-
const DataGridContextProvider = ({ isLoading, isTabularNums,
|
|
9
|
+
const DataGridContextProvider = ({ isLoading, isTabularNums, emptyCellValue, activeRowId, children, keyId, columns, onRowClick, mobileDisplayVariant, renderLink, selectedRows, onSelectRow, isMassActionsOpen, }) => {
|
|
10
10
|
const contextValue = (0, react_1.useMemo)(() => ({
|
|
11
11
|
isLoading,
|
|
12
12
|
isTabularNums,
|
|
13
|
-
gridColumns,
|
|
14
13
|
emptyCellValue,
|
|
15
14
|
activeRowId,
|
|
16
15
|
keyId,
|
|
@@ -21,7 +20,6 @@ const DataGridContextProvider = ({ isLoading, isTabularNums, gridColumns, emptyC
|
|
|
21
20
|
}), [
|
|
22
21
|
isLoading,
|
|
23
22
|
isTabularNums,
|
|
24
|
-
gridColumns,
|
|
25
23
|
emptyCellValue,
|
|
26
24
|
activeRowId,
|
|
27
25
|
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;
|
|
@@ -2,11 +2,13 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Head = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const cn_1 = require("../../utils/cn");
|
|
5
6
|
const cva_1 = require("../../utils/cva");
|
|
6
7
|
const constants_1 = require("../constants");
|
|
7
8
|
const utils_1 = require("../utils");
|
|
8
9
|
const HeadColumns_1 = require("./HeadColumns/HeadColumns");
|
|
9
10
|
const styles_1 = require("./styles");
|
|
11
|
+
const useLogic_1 = require("./useLogic");
|
|
10
12
|
const headerCva = (0, cva_1.cva)(constants_1.dataGridClassnames.header, {
|
|
11
13
|
variants: {
|
|
12
14
|
isGroup: {
|
|
@@ -15,7 +17,8 @@ const headerCva = (0, cva_1.cva)(constants_1.dataGridClassnames.header, {
|
|
|
15
17
|
},
|
|
16
18
|
});
|
|
17
19
|
const Head = (props) => {
|
|
18
|
-
const { columns,
|
|
19
|
-
|
|
20
|
+
const { columns, headerProps, resizePlugin, resizePluginProps, ...headColumnsProps } = props;
|
|
21
|
+
const { enabledResizePlugin } = (0, useLogic_1.useLogic)(props);
|
|
22
|
+
return ((0, jsx_runtime_1.jsxs)(styles_1.Wrapper, { ...headerProps, role: "heading", className: (0, cn_1.cn)(headerCva({ isGroup: columns.some(utils_1.isGroupColumns) }), headerProps?.className), children: [(0, jsx_runtime_1.jsx)(HeadColumns_1.HeadColumns, { ...headColumnsProps, columns: columns }), enabledResizePlugin && resizePluginProps && ((0, jsx_runtime_1.jsx)(enabledResizePlugin.HeadAddon, { ...resizePluginProps }))] }));
|
|
20
23
|
};
|
|
21
24
|
exports.Head = Head;
|
|
@@ -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 {};
|
|
@@ -4,5 +4,8 @@ exports.GroupColumns = void 0;
|
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const react_1 = require("react");
|
|
6
6
|
const HeadCell_1 = require("../../../HeadCell");
|
|
7
|
-
const GroupColumns = ({ column, sorting, onSort, gridPosition, startAdornment, }) => ((0, jsx_runtime_1.jsxs)(react_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(HeadCell_1.HeadCell, { sorting: sorting, label: column.label, onSort: onSort, className: HeadCell_1.headCellClassnames.groupParent, gridPosition: gridPosition, startAdornment: startAdornment }), column.children.map((child) =>
|
|
7
|
+
const GroupColumns = ({ column, sorting, onSort, gridPosition, startAdornment, }) => ((0, jsx_runtime_1.jsxs)(react_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(HeadCell_1.HeadCell, { sorting: sorting, label: column.label, onSort: onSort, className: HeadCell_1.headCellClassnames.groupParent, gridPosition: gridPosition, startAdornment: startAdornment }), column.children.map((child) => {
|
|
8
|
+
const { field, sortableFieldName, sortable, ...childProps } = child;
|
|
9
|
+
return ((0, jsx_runtime_1.jsx)(HeadCell_1.HeadCell, { ...childProps, field: (sortableFieldName ?? field), sorting: sorting, isSortable: sortable, onSort: onSort, className: HeadCell_1.headCellClassnames.groupChild, startAdornment: child.columnHint }, child.label));
|
|
10
|
+
})] }, column.label));
|
|
8
11
|
exports.GroupColumns = GroupColumns;
|
|
@@ -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;
|