@mailstep/design-system 0.12.0-beta.2 → 0.13.0-beta.2
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/package.json +6 -6
- package/ui/Blocks/Header/components/UserMenu/index.js +1 -1
- package/ui/Blocks/HidePrint/HidePrint.js +1 -1
- package/ui/Blocks/ImageList/ImageList.js +1 -1
- package/ui/Blocks/LoginPage/LoginPage.js +1 -1
- package/ui/Blocks/LoginPage/components/LoginForm.js +1 -1
- package/ui/Blocks/LoginPage/components/SocialLinks.js +1 -1
- package/ui/Blocks/Modal/Modal.js +1 -1
- package/ui/Blocks/Popover/index.js +1 -1
- package/ui/Blocks/Scheduler/components/BookedTimeSlots/index.js +1 -1
- package/ui/Blocks/Scheduler/components/DateChanger/index.js +1 -1
- package/ui/Blocks/SideMenu/components/Footer.js +1 -1
- package/ui/Blocks/SideMenu/components/HamburgerMenu.js +4 -4
- package/ui/Blocks/SideMenu/components/SubitemTooltip.js +1 -1
- package/ui/Blocks/Stepper/components/StepItem/index.js +1 -1
- package/ui/Elements/Alert/Alert.js +1 -1
- package/ui/Elements/Alert/styles.js +10 -10
- package/ui/Elements/Badge/Badge.js +1 -1
- package/ui/Elements/BarChartSymbol/BarChartSymbol.js +1 -1
- package/ui/Elements/BorderedBox/BorderedBox.js +1 -1
- package/ui/Elements/DatePicker/DatePicker.js +1 -1
- package/ui/Elements/DatePicker/Datetime/components/DateRepeater.js +1 -1
- package/ui/Elements/DatePicker/Datetime/components/Timepicker/Timepicker.js +1 -1
- package/ui/Elements/Dropdown/Dropdown.js +1 -1
- package/ui/Elements/DropdownMenu/DropdownMenu.js +1 -1
- package/ui/Elements/DropdownMenu/components/DefaultItem.js +1 -1
- package/ui/Elements/DropdownMenu/components/MenuItem.js +1 -1
- package/ui/Elements/DropdownSelect/DropdownSelect.js +1 -1
- package/ui/Elements/ErrorMessage/ErrorMessage.js +1 -1
- package/ui/Elements/HighlightBox/HighlightBox.js +1 -1
- package/ui/Elements/Icon/BadgeIcon.js +1 -1
- package/ui/Elements/Icon/Icon.js +1 -1
- package/ui/Elements/Line/Line.js +1 -1
- package/ui/Elements/Link/Link.js +1 -1
- package/ui/Elements/Logo/Logo.js +1 -1
- package/ui/Elements/Select/Select.js +1 -1
- package/ui/Elements/Select/components/CountMultiValue.js +1 -1
- package/ui/Elements/Select/components/DropdownIndicator.js +1 -1
- package/ui/Elements/Select/components/IconValueContainer.js +1 -1
- package/ui/Elements/Select/components/SelectAll.js +1 -1
- package/ui/Elements/SpaceAround/SpaceAround.js +1 -1
- package/ui/Elements/Tag/stories/components/predefinedTags.js +1 -1
- package/ui/Elements/Text/Text.js +1 -1
- package/ui/Elements/Toast/Toast.js +1 -1
- package/ui/Elements/Toggle/Toggle.js +1 -1
- package/ui/Elements/Tooltip/Tooltip.js +1 -1
- package/ui/{Blocks → Modules}/CommonGrid/CommonGrid.d.ts +1 -1
- package/ui/{Blocks → Modules}/CommonGrid/CommonGrid.js +8 -6
- package/ui/{Blocks → Modules}/CommonGrid/CommonGridContainer.js +5 -5
- package/ui/{Blocks → Modules}/CommonGrid/HoC/withProps.js +1 -1
- package/ui/{Blocks → Modules}/CommonGrid/HoC/withReduxActions.js +1 -1
- package/ui/{Blocks → Modules}/CommonGrid/components/ActionHead/ActionHead.js +2 -2
- package/ui/{Blocks → Modules}/CommonGrid/components/ActionHead/components/ActionDropdownMenu.js +2 -2
- package/ui/{Blocks → Modules}/CommonGrid/components/ActionHead/components/ActionDropdownSelect.js +3 -3
- package/ui/{Blocks → Modules}/CommonGrid/components/ActionHead/index.js +1 -1
- package/ui/{Blocks → Modules}/CommonGrid/components/ButtonMore/ButtonMore.js +3 -3
- package/ui/{Blocks → Modules}/CommonGrid/components/ButtonMore/index.js +1 -1
- package/ui/{Blocks → Modules}/CommonGrid/components/ColumnFilterCell.js +4 -3
- package/ui/{Blocks → Modules}/CommonGrid/components/ColumnTitle/ColumnTitle.js +2 -2
- package/ui/{Blocks → Modules}/CommonGrid/components/ColumnTitle/index.js +1 -1
- package/ui/{Blocks → Modules}/CommonGrid/components/ColumnTitle.js +2 -2
- package/ui/{Blocks → Modules}/CommonGrid/components/ControlButtons/ControlButtons.js +2 -2
- package/ui/{Blocks → Modules}/CommonGrid/components/ControlButtons/index.js +1 -1
- package/ui/{Blocks → Modules}/CommonGrid/components/ControlButtons/styles.js +1 -1
- package/ui/{Blocks → Modules}/CommonGrid/components/DataCell.js +1 -1
- package/ui/{Blocks → Modules}/CommonGrid/components/DataRow.js +1 -1
- package/ui/{Blocks → Modules}/CommonGrid/components/DropdownButton/DropdownButton.js +3 -3
- package/ui/{Blocks → Modules}/CommonGrid/components/DropdownButton/index.js +1 -1
- package/ui/{Blocks → Modules}/CommonGrid/components/ExtraControlButtons/ExtraControlButtons.js +2 -2
- package/ui/{Blocks → Modules}/CommonGrid/components/ExtraControlButtons/index.js +1 -1
- package/ui/{Blocks → Modules}/CommonGrid/components/FilterDropdown.js +2 -2
- package/ui/{Blocks → Modules}/CommonGrid/components/FilterRow.d.ts +1 -0
- package/ui/{Blocks → Modules}/CommonGrid/components/FilterRow.js +7 -2
- package/ui/{Blocks → Modules}/CommonGrid/components/Filters/ActionsFilter/ActionsFilter.js +2 -2
- package/ui/{Blocks → Modules}/CommonGrid/components/Filters/ActionsFilter/index.js +1 -1
- package/ui/{Blocks → Modules}/CommonGrid/components/Filters/BooleanSelect/BooleanSelect.js +1 -1
- package/ui/{Blocks → Modules}/CommonGrid/components/Filters/BooleanSelect/index.js +1 -1
- package/ui/{Blocks → Modules}/CommonGrid/components/Filters/DatePickerRange/DatePickerRange.js +3 -3
- package/ui/{Blocks → Modules}/CommonGrid/components/Filters/DatePickerRange/index.js +1 -1
- package/ui/{Blocks → Modules}/CommonGrid/components/Filters/DatePickerRange/utils/getCleanValues.js +1 -1
- package/ui/{Blocks → Modules}/CommonGrid/components/Filters/DatePickerRange/utils/pickerRangeToString.js +1 -1
- package/ui/{Blocks → Modules}/CommonGrid/components/Filters/DatePickerRange/utils/sameDate.js +1 -1
- package/ui/{Blocks → Modules}/CommonGrid/components/Filters/GridSelect/GridSelect.js +1 -1
- package/ui/{Blocks → Modules}/CommonGrid/components/Filters/GridSelect/guards.js +1 -1
- package/ui/{Blocks → Modules}/CommonGrid/components/Filters/GridSelect/index.js +1 -1
- package/ui/{Blocks → Modules}/CommonGrid/components/Filters/NumberRange/NumberRange.js +2 -2
- package/ui/{Blocks → Modules}/CommonGrid/components/Filters/NumberRange/index.js +1 -1
- package/ui/{Blocks → Modules}/CommonGrid/components/Filters/TextRange/TextRange.js +2 -2
- package/ui/{Blocks → Modules}/CommonGrid/components/Filters/TextRange/index.js +1 -1
- package/ui/{Blocks → Modules}/CommonGrid/components/FloatingButton/FloatingButton.js +3 -3
- package/ui/{Blocks → Modules}/CommonGrid/components/FloatingButton/index.js +1 -1
- package/ui/{Blocks → Modules}/CommonGrid/components/GridAggregation/GridAggregation.js +1 -1
- package/ui/{Blocks → Modules}/CommonGrid/components/GridAggregation/hooks/useGridAggregation.js +1 -1
- package/ui/{Blocks → Modules}/CommonGrid/components/GridAggregation/styles.js +1 -1
- package/ui/{Blocks → Modules}/CommonGrid/components/GridAggregation/utils/aggregate.js +1 -1
- package/ui/{Blocks → Modules}/CommonGrid/components/GridInfo/index.js +2 -2
- package/ui/{Blocks → Modules}/CommonGrid/components/GridModals/index.js +2 -2
- package/ui/{Blocks → Modules}/CommonGrid/components/GridStatus/index.js +1 -1
- package/ui/{Blocks → Modules}/CommonGrid/components/GroupRow.js +1 -1
- package/ui/{Blocks → Modules}/CommonGrid/components/HeadCell.js +2 -1
- package/ui/{Blocks → Modules}/CommonGrid/components/HeadRow.d.ts +1 -0
- package/ui/{Blocks → Modules}/CommonGrid/components/HeadRow.js +12 -7
- package/ui/{Blocks → Modules}/CommonGrid/components/IconList/IconList.js +2 -2
- package/ui/{Blocks → Modules}/CommonGrid/components/IconList/index.js +1 -1
- package/ui/{Blocks → Modules}/CommonGrid/components/ManageColumnForm/ManageColumnForm.js +2 -2
- package/ui/{Blocks → Modules}/CommonGrid/components/ManageColumnForm/components/ManageColumnRow.js +2 -2
- package/ui/{Blocks → Modules}/CommonGrid/components/ManageColumnForm/index.js +1 -1
- package/ui/{Blocks → Modules}/CommonGrid/components/ManageColumnForm/styles.js +1 -1
- package/ui/{Blocks → Modules}/CommonGrid/components/ManageColumnForm/utils.js +1 -1
- package/ui/{Blocks → Modules}/CommonGrid/components/MobileFilterModal.js +3 -3
- package/ui/{Blocks → Modules}/CommonGrid/components/MobileOverlayWrapper.js +1 -1
- package/ui/{Blocks → Modules}/CommonGrid/components/MobileSortModal.js +3 -3
- package/ui/{Blocks → Modules}/CommonGrid/components/OversizedScroll.js +2 -2
- package/ui/{Blocks → Modules}/CommonGrid/components/PresetsModalBody/components/TagRemove.js +1 -1
- package/ui/{Blocks → Modules}/CommonGrid/components/PresetsModalBody/index.js +2 -2
- package/ui/{Blocks → Modules}/CommonGrid/components/QuickFilter/QuickFilter.js +2 -2
- package/ui/{Blocks → Modules}/CommonGrid/components/QuickFilter/index.js +1 -1
- package/ui/{Blocks → Modules}/CommonGrid/components/Resize.js +2 -2
- package/ui/{Blocks → Modules}/CommonGrid/components/Table.js +1 -1
- package/ui/{Blocks → Modules}/CommonGrid/components/TablePagination/TablePagination.js +2 -2
- package/ui/{Blocks → Modules}/CommonGrid/components/TablePagination/index.js +1 -1
- package/ui/{Blocks → Modules}/CommonGrid/components/gridCells/BoolIcon.js +2 -2
- package/ui/{Blocks → Modules}/CommonGrid/components/gridCells/ButtonInCell.js +1 -1
- package/ui/{Blocks → Modules}/CommonGrid/components/gridCells/Date.js +1 -1
- package/ui/{Blocks → Modules}/CommonGrid/components/gridCells/DateTime.js +1 -1
- package/ui/{Blocks → Modules}/CommonGrid/components/gridCells/EnumInCell.js +2 -2
- package/ui/{Blocks → Modules}/CommonGrid/components/gridCells/HoverBubble.js +2 -2
- package/ui/{Blocks → Modules}/CommonGrid/components/gridCells/IconButtonInCell.js +2 -2
- package/ui/{Blocks → Modules}/CommonGrid/components/gridCells/ImageCell.js +2 -2
- package/ui/{Blocks → Modules}/CommonGrid/components/gridCells/LinkInCell.js +1 -1
- package/ui/{Blocks → Modules}/CommonGrid/components/gridCells/RemoveItem.js +2 -2
- package/ui/{Blocks → Modules}/CommonGrid/components/gridCells/RowActionsCell.js +2 -2
- package/ui/{Blocks → Modules}/CommonGrid/components/gridCells/StringJoin.js +1 -1
- package/ui/{Blocks → Modules}/CommonGrid/components/gridCells/SwitchInCell.js +1 -1
- package/ui/{Blocks → Modules}/CommonGrid/components/gridCells/ToggleCell.js +1 -1
- package/ui/{Blocks → Modules}/CommonGrid/components/icons/Edit.js +1 -1
- package/ui/{Blocks → Modules}/CommonGrid/components/icons/EyeOpen.js +1 -1
- package/ui/{Blocks → Modules}/CommonGrid/components/icons/Sorting.js +1 -1
- package/ui/{Blocks → Modules}/CommonGrid/components/utils.js +1 -1
- package/ui/{Blocks → Modules}/CommonGrid/hooks/useAddFilter.js +1 -1
- package/ui/{Blocks → Modules}/CommonGrid/hooks/useApplySharedGridState.js +1 -1
- package/ui/{Blocks → Modules}/CommonGrid/hooks/useColumnSizes.js +1 -1
- package/ui/{Blocks → Modules}/CommonGrid/hooks/useCreatePreset.js +2 -2
- package/ui/{Blocks → Modules}/CommonGrid/hooks/useDeletePreset.js +2 -2
- package/ui/{Blocks → Modules}/CommonGrid/hooks/useEditReadAsColumn.js +1 -1
- package/ui/{Blocks → Modules}/CommonGrid/hooks/useEvent.js +1 -1
- package/ui/{Blocks → Modules}/CommonGrid/hooks/useFloatingButton.js +1 -1
- package/ui/{Blocks → Modules}/CommonGrid/hooks/useGridActionTrigger.js +1 -1
- package/ui/{Blocks → Modules}/CommonGrid/hooks/useGridAutoRowsPerPage.js +1 -1
- package/ui/{Blocks → Modules}/CommonGrid/hooks/useManageColumn.js +1 -1
- package/ui/{Blocks → Modules}/CommonGrid/hooks/usePresetFileHandlers.js +1 -1
- package/ui/{Blocks → Modules}/CommonGrid/hooks/usePresetsState.js +2 -2
- package/ui/{Blocks → Modules}/CommonGrid/hooks/useQuickFilter.js +1 -1
- package/ui/{Blocks → Modules}/CommonGrid/hooks/useRowsKeyControls.js +1 -1
- package/ui/{Blocks → Modules}/CommonGrid/hooks/useSelectPreset.js +1 -1
- package/ui/{Blocks → Modules}/CommonGrid/hooks/useShareGrid.js +1 -1
- package/ui/{Blocks → Modules}/CommonGrid/hooks/useToggleAllCheckbox.js +1 -1
- package/ui/{Blocks → Modules}/CommonGrid/hooks/useUxReset.js +1 -1
- package/ui/{Blocks → Modules}/CommonGrid/index.js +1 -1
- package/ui/{Blocks → Modules}/CommonGrid/store/index.js +1 -1
- package/ui/{Blocks → Modules}/CommonGrid/store/migrateState.js +1 -1
- package/ui/{Blocks → Modules}/CommonGrid/storybook/components/ComplexCell.js +1 -1
- package/ui/{Blocks → Modules}/CommonGrid/storybook/components/EnumCellExample.js +1 -1
- package/ui/{Blocks → Modules}/CommonGrid/storybook/utils/actions.js +1 -1
- package/ui/{Blocks → Modules}/CommonGrid/storybook/utils/columnDefinition.js +1 -1
- package/ui/{Blocks → Modules}/CommonGrid/storybook/utils/utils.js +1 -1
- package/ui/{Blocks → Modules}/CommonGrid/storybook/utils/withRedux.js +1 -1
- package/ui/{Blocks → Modules}/CommonGrid/storybook/utils/withRouter.js +1 -1
- package/ui/{Blocks → Modules}/CommonGrid/storybook/utils/withTheme.js +1 -1
- package/ui/{Blocks → Modules}/CommonGrid/styles.d.ts +1 -1
- package/ui/{Blocks → Modules}/CommonGrid/styles.js +1 -1
- package/ui/{Blocks → Modules}/CommonGrid/types.js +1 -1
- package/ui/{Blocks → Modules}/CommonGrid/utils/constants.js +1 -1
- package/ui/{Blocks → Modules}/CommonGrid/utils/getExtendedExtraControlButtons.js +1 -1
- package/ui/{Blocks → Modules}/CommonGrid/utils/getRowsPerPage.js +1 -1
- package/ui/{Blocks → Modules}/CommonGrid/utils/hasSortTerminated.js +1 -1
- package/ui/{Blocks → Modules}/CommonGrid/utils/index.js +1 -1
- package/ui/{Blocks → Modules}/CommonGrid/utils/shareUrl/buildShareUrl.js +1 -1
- package/ui/{Blocks → Modules}/CommonGrid/utils/shareUrl/clearShareParams.js +1 -1
- package/ui/{Blocks → Modules}/CommonGrid/utils/shareUrl/constants.js +1 -1
- package/ui/{Blocks → Modules}/CommonGrid/utils/shareUrl/parseSharedGridState.js +1 -1
- package/ui/Modules/Dashboard/components/Layout/components/ItemConfig/ItemConfigControls.js +1 -1
- package/ui/Modules/Dashboard/components/Widgets/HorizontalBar/components/LabelsLine.js +1 -1
- package/ui/Modules/Dashboard/components/Widgets/PieChart/PieChart.js +1 -1
- package/ui/Modules/Dashboard/errors/ErrorMessage.js +1 -1
- package/ui/ThemeProvider/ThemeProvider.js +1 -1
- package/ui/index.d.ts +2 -2
- package/ui/index.js +22 -22
- /package/ui/{Blocks → Modules}/CommonGrid/CommonGridContainer.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/HoC/withProps.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/HoC/withReduxActions.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/components/ActionHead/ActionHead.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/components/ActionHead/components/ActionDropdownMenu.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/components/ActionHead/components/ActionDropdownSelect.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/components/ActionHead/index.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/components/ButtonMore/ButtonMore.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/components/ButtonMore/index.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/components/ColumnFilterCell.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/components/ColumnTitle/ColumnTitle.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/components/ColumnTitle/index.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/components/ColumnTitle.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/components/ControlButtons/ControlButtons.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/components/ControlButtons/index.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/components/ControlButtons/styles.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/components/DataCell.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/components/DataRow.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/components/DropdownButton/DropdownButton.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/components/DropdownButton/index.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/components/ExtraControlButtons/ExtraControlButtons.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/components/ExtraControlButtons/index.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/components/FilterDropdown.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/components/Filters/ActionsFilter/ActionsFilter.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/components/Filters/ActionsFilter/index.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/components/Filters/BooleanSelect/BooleanSelect.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/components/Filters/BooleanSelect/index.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/components/Filters/DatePickerRange/DatePickerRange.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/components/Filters/DatePickerRange/index.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/components/Filters/DatePickerRange/utils/getCleanValues.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/components/Filters/DatePickerRange/utils/pickerRangeToString.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/components/Filters/DatePickerRange/utils/sameDate.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/components/Filters/GridSelect/GridSelect.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/components/Filters/GridSelect/guards.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/components/Filters/GridSelect/index.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/components/Filters/NumberRange/NumberRange.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/components/Filters/NumberRange/index.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/components/Filters/NumberRange/types.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/components/Filters/NumberRange/types.js +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/components/Filters/TextRange/TextRange.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/components/Filters/TextRange/index.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/components/Filters/TextRange/types.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/components/Filters/TextRange/types.js +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/components/FloatingButton/FloatingButton.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/components/FloatingButton/index.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/components/GridAggregation/GridAggregation.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/components/GridAggregation/hooks/useGridAggregation.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/components/GridAggregation/index.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/components/GridAggregation/index.js +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/components/GridAggregation/styles.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/components/GridAggregation/utils/aggregate.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/components/GridInfo/index.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/components/GridModals/index.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/components/GridStatus/index.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/components/GroupRow.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/components/HeadCell.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/components/IconList/IconList.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/components/IconList/index.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/components/ManageColumnForm/ManageColumnForm.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/components/ManageColumnForm/components/ManageColumnRow.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/components/ManageColumnForm/index.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/components/ManageColumnForm/styles.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/components/ManageColumnForm/utils.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/components/MobileFilterModal.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/components/MobileOverlayWrapper.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/components/MobileSortModal.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/components/OversizedScroll.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/components/PresetsModalBody/components/TagRemove.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/components/PresetsModalBody/index.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/components/QuickFilter/QuickFilter.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/components/QuickFilter/index.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/components/Resize.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/components/Table.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/components/TablePagination/TablePagination.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/components/TablePagination/index.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/components/gridCells/BoolIcon.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/components/gridCells/ButtonInCell.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/components/gridCells/Date.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/components/gridCells/DateTime.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/components/gridCells/EnumInCell.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/components/gridCells/HoverBubble.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/components/gridCells/IconButtonInCell.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/components/gridCells/ImageCell.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/components/gridCells/LinkInCell.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/components/gridCells/RemoveItem.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/components/gridCells/RowActionsCell.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/components/gridCells/StringJoin.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/components/gridCells/SwitchInCell.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/components/gridCells/ToggleCell.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/components/gridCells/index.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/components/gridCells/index.js +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/components/icons/Edit.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/components/icons/EyeOpen.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/components/icons/Sorting.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/components/utils.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/hooks/useAddFilter.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/hooks/useApplySharedGridState.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/hooks/useColumnSizes.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/hooks/useCreatePreset.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/hooks/useDeletePreset.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/hooks/useEditReadAsColumn.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/hooks/useEvent.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/hooks/useFloatingButton.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/hooks/useGridActionTrigger.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/hooks/useGridAutoRowsPerPage.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/hooks/useManageColumn.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/hooks/usePresetFileHandlers.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/hooks/usePresetsState.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/hooks/useQuickFilter.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/hooks/useRowsKeyControls.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/hooks/useSelectPreset.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/hooks/useShareGrid.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/hooks/useToggleAllCheckbox.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/hooks/useUxReset.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/index.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/store/index.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/store/migrateState.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/storybook/components/ComplexCell.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/storybook/components/EnumCellExample.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/storybook/utils/actions.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/storybook/utils/columnDefinition.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/storybook/utils/utils.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/storybook/utils/withRedux.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/storybook/utils/withRouter.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/storybook/utils/withTheme.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/types.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/utils/constants.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/utils/getExtendedExtraControlButtons.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/utils/getRowsPerPage.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/utils/hasSortTerminated.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/utils/index.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/utils/shareUrl/buildShareUrl.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/utils/shareUrl/clearShareParams.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/utils/shareUrl/constants.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/utils/shareUrl/index.d.ts +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/utils/shareUrl/index.js +0 -0
- /package/ui/{Blocks → Modules}/CommonGrid/utils/shareUrl/parseSharedGridState.d.ts +0 -0
|
@@ -11,14 +11,14 @@ import useRowsKeyControls from "./hooks/useRowsKeyControls.js";
|
|
|
11
11
|
import useUxReset from "./hooks/useUxReset.js";
|
|
12
12
|
import { initialState } from "./store/index.js";
|
|
13
13
|
import { useCallback, useMemo } from "react";
|
|
14
|
-
import { x } from "@xstyled/styled-components";
|
|
15
14
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
16
|
-
|
|
15
|
+
import { x } from "@xstyled/styled-components";
|
|
16
|
+
//#region packages/ui/Modules/CommonGrid/CommonGrid.tsx
|
|
17
17
|
const rowsStyles = { outline: "none" };
|
|
18
18
|
const defaultVoidFunction = (...args) => null;
|
|
19
19
|
const defaultUxState = initialState.uxState;
|
|
20
20
|
const defaultColumnsWidth = {};
|
|
21
|
-
const CommonGrid = ({ filters, comparators, handleDragEnd, gridSelectors, gridActions, isLoading, rowsData, hasColouredRows, actionColumnDefinition, allowRowSelect, allowRowSelectOnAction, onRowAction, onRowClick, onAsyncLoadFilterOptions, columnLayout = "normal", displayColumnsDefinitions, className, minColumnWidth, errorMessage, floatingButtonProps, hasGroups, hasFilters, isSortTerminated
|
|
21
|
+
const CommonGrid = ({ filters, comparators, handleDragEnd, gridSelectors, gridActions, isLoading, rowsData, hasColouredRows, actionColumnDefinition, allowRowSelect, allowRowSelectOnAction, onRowAction, onRowClick, onAsyncLoadFilterOptions, onSetActiveColumn, columnLayout = "normal", displayColumnsDefinitions, className, minColumnWidth, errorMessage, floatingButtonProps, hasGroups, hasFilters, isSortTerminated }) => {
|
|
22
22
|
const { uxState = defaultUxState, columnsWidth = defaultColumnsWidth, columnsWidthVariant, page = 1, filter, sorting, rowsPerPage = 10 } = gridSelectors;
|
|
23
23
|
const { clearUxState, handleUxChange, addFilter = defaultVoidFunction, addSorting = defaultVoidFunction, setColumnWidth = defaultVoidFunction } = gridActions;
|
|
24
24
|
const handleRowsKeyDown = useRowsKeyControls(rowsData, uxState, handleUxChange);
|
|
@@ -61,7 +61,8 @@ const CommonGrid = ({ filters, comparators, handleDragEnd, gridSelectors, gridAc
|
|
|
61
61
|
handleResizeDrag,
|
|
62
62
|
groups,
|
|
63
63
|
handleDragEnd,
|
|
64
|
-
isSortTerminated
|
|
64
|
+
isSortTerminated,
|
|
65
|
+
onCellClick: onSetActiveColumn
|
|
65
66
|
}),
|
|
66
67
|
hasFilters && /* @__PURE__ */ jsx(FilterRow, {
|
|
67
68
|
filters,
|
|
@@ -75,7 +76,8 @@ const CommonGrid = ({ filters, comparators, handleDragEnd, gridSelectors, gridAc
|
|
|
75
76
|
rowsData,
|
|
76
77
|
uxState,
|
|
77
78
|
handleUxChange,
|
|
78
|
-
onAsyncLoadFilterOptions
|
|
79
|
+
onAsyncLoadFilterOptions,
|
|
80
|
+
onCellClick: onSetActiveColumn
|
|
79
81
|
})
|
|
80
82
|
]
|
|
81
83
|
}), /* @__PURE__ */ jsx("div", {
|
|
@@ -94,7 +96,7 @@ const CommonGrid = ({ filters, comparators, handleDragEnd, gridSelectors, gridAc
|
|
|
94
96
|
onRowAction,
|
|
95
97
|
onUxChange: handleUxChange,
|
|
96
98
|
onRowClick,
|
|
97
|
-
onCellClick,
|
|
99
|
+
onCellClick: onSetActiveColumn,
|
|
98
100
|
columns: displayColumnsDefinitions,
|
|
99
101
|
displayColumnsWidth,
|
|
100
102
|
groups
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import HidePrint from "../../Blocks/HidePrint/HidePrint.js";
|
|
2
|
+
import { useModal } from "../../Blocks/Modal/hooks/useModal.js";
|
|
1
3
|
import Pagination from "../../Elements/Pagination/Pagination.js";
|
|
2
4
|
import "../../Elements/Pagination/index.js";
|
|
3
5
|
import { useCheckDeviceWidth } from "../../utils/CheckDeviceWidth/checkDeviceWidth.js";
|
|
4
|
-
import HidePrint from "../HidePrint/HidePrint.js";
|
|
5
|
-
import { useModal } from "../Modal/hooks/useModal.js";
|
|
6
6
|
import ActionHead_default from "./components/ActionHead/index.js";
|
|
7
7
|
import { getFilters } from "./utils/index.js";
|
|
8
8
|
import { clearShareParams } from "./utils/shareUrl/clearShareParams.js";
|
|
@@ -25,9 +25,9 @@ import { getRowsPerPage } from "./utils/getRowsPerPage.js";
|
|
|
25
25
|
import { hasSortTerminated } from "./utils/hasSortTerminated.js";
|
|
26
26
|
import { BottomWrapper, CommonGridWithStyles, CommonGridWrap, ContentContainer, StyledButtonStrip } from "./styles.js";
|
|
27
27
|
import { useCallback, useMemo, useRef, useState } from "react";
|
|
28
|
-
import { x } from "@xstyled/styled-components";
|
|
29
28
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
30
|
-
|
|
29
|
+
import { x } from "@xstyled/styled-components";
|
|
30
|
+
//#region packages/ui/Modules/CommonGrid/CommonGridContainer.tsx
|
|
31
31
|
const CommonGridContainer = (props) => {
|
|
32
32
|
const { optimizeFilters = false, extraControlButtons, onBatchAction, processCheckedValues, processCheckedValuesTitle, hideControlButtons, quickFilter, floatingButtonProps, queryRowsParam, customPaginationHandler, autoHeight = true, gridName, withPresets = true, withManageColumnButton = true, withPagination = true, withAggregation = true, withShare = true, allowSortingOnlyUnderTotalRows, onReload, ...passDownProps } = props;
|
|
33
33
|
const { gridActions, gridSelectors, rowsData, actionColumnDefinition } = passDownProps;
|
|
@@ -114,7 +114,7 @@ const CommonGridContainer = (props) => {
|
|
|
114
114
|
hasFilters,
|
|
115
115
|
hasGroups,
|
|
116
116
|
isSortTerminated,
|
|
117
|
-
|
|
117
|
+
onSetActiveColumn: setActiveColumnName,
|
|
118
118
|
hasColouredRows: true
|
|
119
119
|
})]
|
|
120
120
|
}), /* @__PURE__ */ jsxs(BottomWrapper, {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
//#region packages/ui/
|
|
2
|
+
//#region packages/ui/Modules/CommonGrid/HoC/withProps.tsx
|
|
3
3
|
const withProps = (input) => (Component) => function ComponentWithProps(props) {
|
|
4
4
|
const additinalProps = typeof input === "function" ? input(props) : input;
|
|
5
5
|
return /* @__PURE__ */ jsx(Component, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createActions, createFullSelector } from "../store/index.js";
|
|
2
2
|
import { connect } from "react-redux";
|
|
3
3
|
import { bindActionCreators } from "redux";
|
|
4
|
-
//#region packages/ui/
|
|
4
|
+
//#region packages/ui/Modules/CommonGrid/HoC/withReduxActions.ts
|
|
5
5
|
const withReduxActions = (gridName, prefix = "grid") => {
|
|
6
6
|
const actions = createActions(gridName);
|
|
7
7
|
const selectors = createFullSelector(gridName);
|
|
@@ -4,11 +4,11 @@ import { useGridActionTrigger } from "../../hooks/useGridActionTrigger.js";
|
|
|
4
4
|
import { useToggleAllCheckbox } from "../../hooks/useToggleAllCheckbox.js";
|
|
5
5
|
import ButtonMore from "../ButtonMore/ButtonMore.js";
|
|
6
6
|
import { useCallback, useMemo } from "react";
|
|
7
|
-
import styled$1 from "@xstyled/styled-components";
|
|
8
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
+
import styled$1 from "@xstyled/styled-components";
|
|
9
9
|
import { i18n } from "@lingui/core";
|
|
10
10
|
import { Trans } from "@lingui/react";
|
|
11
|
-
//#region packages/ui/
|
|
11
|
+
//#region packages/ui/Modules/CommonGrid/components/ActionHead/ActionHead.tsx
|
|
12
12
|
const Wrap = styled$1.div`
|
|
13
13
|
display: flex;
|
|
14
14
|
align-items: center;
|
package/ui/{Blocks → Modules}/CommonGrid/components/ActionHead/components/ActionDropdownMenu.js
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "react";
|
|
2
|
-
import styled$1 from "@xstyled/styled-components";
|
|
3
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import styled$1 from "@xstyled/styled-components";
|
|
4
4
|
import { th as th$1 } from "@xstyled/system";
|
|
5
|
-
//#region packages/ui/
|
|
5
|
+
//#region packages/ui/Modules/CommonGrid/components/ActionHead/components/ActionDropdownMenu.tsx
|
|
6
6
|
const StyledDropdownWrap = styled$1.div`
|
|
7
7
|
position: relative;
|
|
8
8
|
left: 0;
|
package/ui/{Blocks → Modules}/CommonGrid/components/ActionHead/components/ActionDropdownSelect.js
RENAMED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import Icon from "../../../../../Elements/Icon/Icon.js";
|
|
2
|
-
import Popover from "
|
|
2
|
+
import Popover from "../../../../../Blocks/Popover/index.js";
|
|
3
3
|
import ActionDropdownMenu from "./ActionDropdownMenu.js";
|
|
4
4
|
import React, { memo, useRef } from "react";
|
|
5
|
-
import styled$1 from "@xstyled/styled-components";
|
|
6
5
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
import styled$1 from "@xstyled/styled-components";
|
|
7
7
|
import { th as th$1 } from "@xstyled/system";
|
|
8
8
|
import { Trans } from "@lingui/react";
|
|
9
|
-
//#region packages/ui/
|
|
9
|
+
//#region packages/ui/Modules/CommonGrid/components/ActionHead/components/ActionDropdownSelect.tsx
|
|
10
10
|
const Content = styled$1.div`
|
|
11
11
|
position: relative;
|
|
12
12
|
display: flex;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import ActionHead from "./ActionHead.js";
|
|
2
|
-
//#region packages/ui/
|
|
2
|
+
//#region packages/ui/Modules/CommonGrid/components/ActionHead/index.tsx
|
|
3
3
|
var ActionHead_default = ActionHead;
|
|
4
4
|
//#endregion
|
|
5
5
|
export { ActionHead_default as default };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import Button from "../../../../Elements/Button/Button.js";
|
|
2
2
|
import { DropdownMenu } from "../../../../Elements/DropdownMenu/DropdownMenu.js";
|
|
3
3
|
import "../../../../Elements/DropdownMenu/index.js";
|
|
4
|
-
import { useClickOutside } from "
|
|
4
|
+
import { useClickOutside } from "../../../../Blocks/Modal/hooks/useClickOutside.js";
|
|
5
5
|
import { useCallback, useState } from "react";
|
|
6
|
-
import styled$1 from "@xstyled/styled-components";
|
|
7
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
-
|
|
7
|
+
import styled$1 from "@xstyled/styled-components";
|
|
8
|
+
//#region packages/ui/Modules/CommonGrid/components/ButtonMore/ButtonMore.tsx
|
|
9
9
|
const ButtonWrapper = styled$1.div`
|
|
10
10
|
position: relative;
|
|
11
11
|
width: fit-content;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import ButtonMore from "./ButtonMore.js";
|
|
2
|
-
//#region packages/ui/
|
|
2
|
+
//#region packages/ui/Modules/CommonGrid/components/ButtonMore/index.ts
|
|
3
3
|
var ButtonMore_default = ButtonMore;
|
|
4
4
|
//#endregion
|
|
5
5
|
export { ButtonMore_default as default };
|
|
@@ -3,9 +3,9 @@ import { useAddFilter } from "../hooks/useAddFilter.js";
|
|
|
3
3
|
import { Cell } from "./Table.js";
|
|
4
4
|
import OverlayComponent from "./FilterDropdown.js";
|
|
5
5
|
import React from "react";
|
|
6
|
-
import { x } from "@xstyled/styled-components";
|
|
7
6
|
import { jsx } from "react/jsx-runtime";
|
|
8
|
-
|
|
7
|
+
import { x } from "@xstyled/styled-components";
|
|
8
|
+
//#region packages/ui/Modules/CommonGrid/components/ColumnFilterCell.tsx
|
|
9
9
|
const ColumnFilterCell = ({ onChange, value, others, displayColumnWidth, filters, column: columnDefinition, group, comparators, actionColumn, rowsData, uxState, handleUxChange, onAsyncLoadFilterOptions }) => {
|
|
10
10
|
const cellSizeProps = getCellSizeProps(columnDefinition, displayColumnWidth);
|
|
11
11
|
const handleAddFilter = useAddFilter(onChange);
|
|
@@ -28,6 +28,7 @@ const ColumnFilterCell = ({ onChange, value, others, displayColumnWidth, filters
|
|
|
28
28
|
return /* @__PURE__ */ jsx(Cell, {
|
|
29
29
|
className: cellClassName,
|
|
30
30
|
...cellSizeProps,
|
|
31
|
+
"data-column-name": columnDefinition.name,
|
|
31
32
|
children: /* @__PURE__ */ jsx(x.div, { children: /* @__PURE__ */ jsx(RenderComponent, {
|
|
32
33
|
asyncLoadKey: columnDefinition.asyncLoadKey,
|
|
33
34
|
"data-test": columnDefinition.name,
|
|
@@ -44,7 +45,7 @@ const ColumnFilterCell = ({ onChange, value, others, displayColumnWidth, filters
|
|
|
44
45
|
onAsyncLoadFilterOptions,
|
|
45
46
|
...filterConfig?.defaultExtraProps,
|
|
46
47
|
...columnDefinition.filterExtraProps,
|
|
47
|
-
...filterType
|
|
48
|
+
...filterType === "options" && { options: columnDefinition.filterOptions },
|
|
48
49
|
columnWidth: cellSizeProps?.flexBasis
|
|
49
50
|
}) })
|
|
50
51
|
});
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import Icon from "../../../../Elements/Icon/Icon.js";
|
|
2
2
|
import { useCallback, useEffect, useRef, useState } from "react";
|
|
3
|
-
import styled$1, { css, x } from "@xstyled/styled-components";
|
|
4
3
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
-
|
|
4
|
+
import styled$1, { css, x } from "@xstyled/styled-components";
|
|
5
|
+
//#region packages/ui/Modules/CommonGrid/components/ColumnTitle/ColumnTitle.tsx
|
|
6
6
|
const WRAPPER_WIDTH = 35;
|
|
7
7
|
const Wrap = styled$1.div`
|
|
8
8
|
width: 100%;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import ColumnTitle from "./ColumnTitle.js";
|
|
2
|
-
//#region packages/ui/
|
|
2
|
+
//#region packages/ui/Modules/CommonGrid/components/ColumnTitle/index.tsx
|
|
3
3
|
var ColumnTitle_default = ColumnTitle;
|
|
4
4
|
//#endregion
|
|
5
5
|
export { ColumnTitle_default as default };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { SortingDown, SortingUp } from "./icons/Sorting.js";
|
|
2
2
|
import React from "react";
|
|
3
|
-
import styled$1, { th, useTheme } from "@xstyled/styled-components";
|
|
4
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
-
|
|
4
|
+
import styled$1, { th, useTheme } from "@xstyled/styled-components";
|
|
5
|
+
//#region packages/ui/Modules/CommonGrid/components/ColumnTitle.tsx
|
|
6
6
|
const Title = styled$1.span`
|
|
7
7
|
& + * {
|
|
8
8
|
margin-left: 1em;
|
|
@@ -14,11 +14,11 @@ import ExtraControlButtons_default from "../ExtraControlButtons/index.js";
|
|
|
14
14
|
import QuickFilter_default from "../QuickFilter/index.js";
|
|
15
15
|
import { ControlButtonsContainer, CopiedMessage, Left, Right, ShareButtonWrapper, StyledColumnButton } from "./styles.js";
|
|
16
16
|
import { useEffect, useMemo } from "react";
|
|
17
|
-
import { useColor, x } from "@xstyled/styled-components";
|
|
18
17
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
18
|
+
import { useColor, x } from "@xstyled/styled-components";
|
|
19
19
|
import { i18n } from "@lingui/core";
|
|
20
20
|
import { Trans } from "@lingui/react";
|
|
21
|
-
//#region packages/ui/
|
|
21
|
+
//#region packages/ui/Modules/CommonGrid/components/ControlButtons/ControlButtons.tsx
|
|
22
22
|
const ControlButtons = ({ extraControlButtons, gridActions, gridSelectors, quickFilter = "", columns, filters, hideControlButtons, displayManageColumnButton, openManageColumnForm, setDisplayManageColumnButton, onOpenPresetsModal, gridName, selectedPresetName, withPresets, withManageColumnButton, onOpenMobileFilters, onOpenMobileSorting, isSortTerminated, withShare }) => {
|
|
23
23
|
const { onShare, isCopied } = useShareGrid({
|
|
24
24
|
gridSelectors,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import ControlButtons from "./ControlButtons.js";
|
|
2
|
-
//#region packages/ui/
|
|
2
|
+
//#region packages/ui/Modules/CommonGrid/components/ControlButtons/index.tsx
|
|
3
3
|
var ControlButtons_default = ControlButtons;
|
|
4
4
|
//#endregion
|
|
5
5
|
export { ControlButtons_default as default };
|
|
@@ -2,7 +2,7 @@ import Button from "../../../../Elements/Button/Button.js";
|
|
|
2
2
|
import "../../../../Elements/Button/index.js";
|
|
3
3
|
import styled$1 from "@xstyled/styled-components";
|
|
4
4
|
import { th as th$1 } from "@xstyled/system";
|
|
5
|
-
//#region packages/ui/
|
|
5
|
+
//#region packages/ui/Modules/CommonGrid/components/ControlButtons/styles.ts
|
|
6
6
|
const ControlButtonsContainer = styled$1.div`
|
|
7
7
|
display: flex;
|
|
8
8
|
position: sticky;
|
|
@@ -3,7 +3,7 @@ import { TextCell } from "./Table.js";
|
|
|
3
3
|
import React from "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
import get from "lodash/fp/get";
|
|
6
|
-
//#region packages/ui/
|
|
6
|
+
//#region packages/ui/Modules/CommonGrid/components/DataCell.tsx
|
|
7
7
|
const DataCell = ({ column, group, rowData, onRowAction, displayColumnWidth, rowIndex }) => {
|
|
8
8
|
const Wrapper = column.fixedSize ? "div" : TextCell;
|
|
9
9
|
const wrapperBaseProps = column.fixedSize ? { style: {
|
|
@@ -4,7 +4,7 @@ import MemoDataCell from "./DataCell.js";
|
|
|
4
4
|
import { useTimeMeasurement } from "./utils.js";
|
|
5
5
|
import React from "react";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
|
-
//#region packages/ui/
|
|
7
|
+
//#region packages/ui/Modules/CommonGrid/components/DataRow.tsx
|
|
8
8
|
const DataRow = ({ columns, rowData, rowIndex, uxState, allowRowSelect, allowRowSelectOnAction, onUxChange, onRowClick, onRowAction, onCellClick, displayColumnsWidth, groups, isEven }) => {
|
|
9
9
|
const isChecked = !!uxState.checkedRows?.[rowData.id];
|
|
10
10
|
const handleRowAction = React.useCallback((id, field, value, rowData) => {
|
|
@@ -4,12 +4,12 @@ import "../../../../Elements/Icon/index.js";
|
|
|
4
4
|
import Button from "../../../../Elements/Button/Button.js";
|
|
5
5
|
import { DropdownMenu } from "../../../../Elements/DropdownMenu/DropdownMenu.js";
|
|
6
6
|
import "../../../../Elements/DropdownMenu/index.js";
|
|
7
|
-
import { useClickOutside } from "
|
|
7
|
+
import { useClickOutside } from "../../../../Blocks/Modal/hooks/useClickOutside.js";
|
|
8
8
|
import React, { useCallback, useState } from "react";
|
|
9
|
-
import styled$1 from "@xstyled/styled-components";
|
|
10
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
+
import styled$1 from "@xstyled/styled-components";
|
|
11
11
|
import { th as th$1 } from "@xstyled/system";
|
|
12
|
-
//#region packages/ui/
|
|
12
|
+
//#region packages/ui/Modules/CommonGrid/components/DropdownButton/DropdownButton.tsx
|
|
13
13
|
const ButtonWrapper = styled$1.div`
|
|
14
14
|
position: relative;
|
|
15
15
|
width: fit-content;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import DropdownButton from "./DropdownButton.js";
|
|
2
|
-
//#region packages/ui/
|
|
2
|
+
//#region packages/ui/Modules/CommonGrid/components/DropdownButton/index.ts
|
|
3
3
|
var DropdownButton_default = DropdownButton;
|
|
4
4
|
//#endregion
|
|
5
5
|
export { DropdownButton_default as default };
|
package/ui/{Blocks → Modules}/CommonGrid/components/ExtraControlButtons/ExtraControlButtons.js
RENAMED
|
@@ -2,9 +2,9 @@ import Button from "../../../../Elements/Button/Button.js";
|
|
|
2
2
|
import ButtonMore from "../ButtonMore/ButtonMore.js";
|
|
3
3
|
import DropdownSelect_default from "../../../../Elements/DropdownSelect/index.js";
|
|
4
4
|
import "react";
|
|
5
|
-
import styled$1, { x } from "@xstyled/styled-components";
|
|
6
5
|
import { Fragment, jsx } from "react/jsx-runtime";
|
|
7
|
-
|
|
6
|
+
import styled$1, { x } from "@xstyled/styled-components";
|
|
7
|
+
//#region packages/ui/Modules/CommonGrid/components/ExtraControlButtons/ExtraControlButtons.tsx
|
|
8
8
|
const Row = styled$1.div`
|
|
9
9
|
display: flex;
|
|
10
10
|
gap: 8px;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import ExtraControlButtons from "./ExtraControlButtons.js";
|
|
2
|
-
//#region packages/ui/
|
|
2
|
+
//#region packages/ui/Modules/CommonGrid/components/ExtraControlButtons/index.tsx
|
|
3
3
|
var ExtraControlButtons_default = ExtraControlButtons;
|
|
4
4
|
//#endregion
|
|
5
5
|
export { ExtraControlButtons_default as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import styled$1 from "@xstyled/styled-components";
|
|
3
2
|
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
|
|
3
|
+
import styled$1 from "@xstyled/styled-components";
|
|
4
|
+
//#region packages/ui/Modules/CommonGrid/components/FilterDropdown.tsx
|
|
5
5
|
const OverlayWrapper = styled$1.div`
|
|
6
6
|
position: absolute;
|
|
7
7
|
z-index: 1;
|
|
@@ -1,14 +1,19 @@
|
|
|
1
1
|
import { getFilterName } from "../utils/index.js";
|
|
2
2
|
import { Row } from "./Table.js";
|
|
3
3
|
import ColumnFilterCell from "./ColumnFilterCell.js";
|
|
4
|
+
import { useCallback } from "react";
|
|
4
5
|
import { jsx } from "react/jsx-runtime";
|
|
5
6
|
import get from "lodash/fp/get";
|
|
6
7
|
import throttle from "lodash/throttle";
|
|
7
|
-
//#region packages/ui/
|
|
8
|
-
const FilterRow = ({ columns, groups, actionColumn, onChange, filterValues = {}, displayColumnsWidth, filters, comparators, handleUxChange, onAsyncLoadFilterOptions, rowsData, uxState }) => {
|
|
8
|
+
//#region packages/ui/Modules/CommonGrid/components/FilterRow.tsx
|
|
9
|
+
const FilterRow = ({ columns, groups, actionColumn, onChange, filterValues = {}, displayColumnsWidth, filters, comparators, handleUxChange, onAsyncLoadFilterOptions, onCellClick, rowsData, uxState }) => {
|
|
9
10
|
const handleOnChange = throttle(onChange, 500);
|
|
10
11
|
return /* @__PURE__ */ jsx(Row, {
|
|
11
12
|
className: "filterRow",
|
|
13
|
+
onMouseDown: useCallback((e) => {
|
|
14
|
+
const columnName = e.target.closest(".cell")?.dataset?.columnName;
|
|
15
|
+
if (columnName) onCellClick?.(columnName);
|
|
16
|
+
}, [onCellClick]),
|
|
12
17
|
children: columns.map((column, index) => /* @__PURE__ */ jsx(ColumnFilterCell, {
|
|
13
18
|
column,
|
|
14
19
|
actionColumn,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useToggleAllCheckbox } from "../../../hooks/useToggleAllCheckbox.js";
|
|
2
2
|
import Checkbox_default from "../../../../../Forms/Checkbox/index.js";
|
|
3
|
-
import { x } from "@xstyled/styled-components";
|
|
4
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
-
|
|
4
|
+
import { x } from "@xstyled/styled-components";
|
|
5
|
+
//#region packages/ui/Modules/CommonGrid/components/Filters/ActionsFilter/ActionsFilter.tsx
|
|
6
6
|
const ActionsFilter = ({ actionColumn, rowsData, uxState, handleUxChange }) => {
|
|
7
7
|
const [allChecked, toggleCheckbox] = useToggleAllCheckbox(rowsData, uxState, handleUxChange);
|
|
8
8
|
const rowsNumberLabel = actionColumn?.addRowNumbersLabel;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import ActionsFilter from "./ActionsFilter.js";
|
|
2
|
-
//#region packages/ui/
|
|
2
|
+
//#region packages/ui/Modules/CommonGrid/components/Filters/ActionsFilter/index.ts
|
|
3
3
|
var ActionsFilter_default = ActionsFilter;
|
|
4
4
|
//#endregion
|
|
5
5
|
export { ActionsFilter_default as default };
|
|
@@ -2,7 +2,7 @@ import GridSelect_default from "../GridSelect/index.js";
|
|
|
2
2
|
import { useMemo } from "react";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import { i18n } from "@lingui/core";
|
|
5
|
-
//#region packages/ui/
|
|
5
|
+
//#region packages/ui/Modules/CommonGrid/components/Filters/BooleanSelect/BooleanSelect.tsx
|
|
6
6
|
const getFlagOptions = () => [
|
|
7
7
|
{
|
|
8
8
|
value: "",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import SelectFilter from "./BooleanSelect.js";
|
|
2
|
-
//#region packages/ui/
|
|
2
|
+
//#region packages/ui/Modules/CommonGrid/components/Filters/BooleanSelect/index.tsx
|
|
3
3
|
var BooleanSelect_default = SelectFilter;
|
|
4
4
|
//#endregion
|
|
5
5
|
export { BooleanSelect_default as default };
|
package/ui/{Blocks → Modules}/CommonGrid/components/Filters/DatePickerRange/DatePickerRange.js
RENAMED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { useClickOutside } from "
|
|
1
|
+
import { useClickOutside } from "../../../../../Blocks/Modal/hooks/useClickOutside.js";
|
|
2
2
|
import Input_default from "../../../../../Forms/Input/index.js";
|
|
3
3
|
import DatePicker_default from "../../../../../Elements/DatePicker/index.js";
|
|
4
4
|
import { getCleanValues } from "./utils/getCleanValues.js";
|
|
5
5
|
import { pickerRangeToString } from "./utils/pickerRangeToString.js";
|
|
6
6
|
import React, { useCallback, useMemo, useState } from "react";
|
|
7
|
-
import styled$1, { css } from "@xstyled/styled-components";
|
|
8
7
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
+
import styled$1, { css } from "@xstyled/styled-components";
|
|
9
9
|
import { i18n } from "@lingui/core";
|
|
10
10
|
import { DateTime } from "luxon";
|
|
11
|
-
//#region packages/ui/
|
|
11
|
+
//#region packages/ui/Modules/CommonGrid/components/Filters/DatePickerRange/DatePickerRange.tsx
|
|
12
12
|
const RangeWrapper = styled$1.div`
|
|
13
13
|
display: ${({ $compact }) => $compact ? "flex" : "inline-flex"};
|
|
14
14
|
flex-direction: ${({ $compact }) => $compact ? "column" : "row"};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import DatePickerRange from "./DatePickerRange.js";
|
|
2
|
-
//#region packages/ui/
|
|
2
|
+
//#region packages/ui/Modules/CommonGrid/components/Filters/DatePickerRange/index.tsx
|
|
3
3
|
var DatePickerRange_default = DatePickerRange;
|
|
4
4
|
//#endregion
|
|
5
5
|
export { DatePickerRange_default as default };
|
package/ui/{Blocks → Modules}/CommonGrid/components/Filters/DatePickerRange/utils/getCleanValues.js
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region packages/ui/
|
|
1
|
+
//#region packages/ui/Modules/CommonGrid/components/Filters/DatePickerRange/utils/getCleanValues.ts
|
|
2
2
|
const getCleanValue = (value) => {
|
|
3
3
|
if (typeof value === "string") return new Date(value);
|
|
4
4
|
return value || void 0;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DatePickerRepeatTrans, TimePickerRepeatTrans } from "../../../../../../Elements/DatePicker/utils/constants.js";
|
|
2
2
|
import { sameDate } from "./sameDate.js";
|
|
3
3
|
import { DateTime } from "luxon";
|
|
4
|
-
//#region packages/ui/
|
|
4
|
+
//#region packages/ui/Modules/CommonGrid/components/Filters/DatePickerRange/utils/pickerRangeToString.ts
|
|
5
5
|
const pickerRangeToString = (values = [], others) => {
|
|
6
6
|
if (others?.[0]?.dateTypeRepeater || others?.[1]?.dateTypeRepeater) return others.map((other, i) => {
|
|
7
7
|
if (!other?.dateTypeRepeater) return values[i] && DateTime.fromJSDate(values[i]).toFormat("dd.LL.yyyy HH:mm");
|
package/ui/{Blocks → Modules}/CommonGrid/components/Filters/DatePickerRange/utils/sameDate.js
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region packages/ui/
|
|
1
|
+
//#region packages/ui/Modules/CommonGrid/components/Filters/DatePickerRange/utils/sameDate.ts
|
|
2
2
|
const sameDate = (date1, date2) => date1 && date1.getTime && date2 && date2.getTime && date1.getTime() === date2.getTime();
|
|
3
3
|
//#endregion
|
|
4
4
|
export { sameDate };
|
|
@@ -6,7 +6,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
6
6
|
import { i18n } from "@lingui/core";
|
|
7
7
|
import isArray from "lodash/isArray";
|
|
8
8
|
import uniqBy from "lodash/uniqBy";
|
|
9
|
-
//#region packages/ui/
|
|
9
|
+
//#region packages/ui/Modules/CommonGrid/components/Filters/GridSelect/GridSelect.tsx
|
|
10
10
|
const minColumnWidth = 120;
|
|
11
11
|
const noOptionsMessage = () => null;
|
|
12
12
|
const SelectFilter = ({ onChange, isClearable = true, disabled, placeholder, showValue = true, columnWidth, isMulti, value, options, checkAllButton, asyncLoadKey, onAsyncLoadFilterOptions, withNotEqComparator = true }) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region packages/ui/
|
|
1
|
+
//#region packages/ui/Modules/CommonGrid/components/Filters/GridSelect/guards.ts
|
|
2
2
|
const isOptionArray = (value) => {
|
|
3
3
|
return Array.isArray(value) && value.every((v) => typeof v === "object" && v !== null && "label" in v && "value" in v);
|
|
4
4
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import SelectFilter from "./GridSelect.js";
|
|
2
|
-
//#region packages/ui/
|
|
2
|
+
//#region packages/ui/Modules/CommonGrid/components/Filters/GridSelect/index.tsx
|
|
3
3
|
var GridSelect_default = SelectFilter;
|
|
4
4
|
//#endregion
|
|
5
5
|
export { GridSelect_default as default };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { useClickOutside } from "
|
|
1
|
+
import { useClickOutside } from "../../../../../Blocks/Modal/hooks/useClickOutside.js";
|
|
2
2
|
import { Input } from "../../../../../Forms/Input/Input.js";
|
|
3
3
|
import { useEvent } from "../../../hooks/useEvent.js";
|
|
4
4
|
import IconList_default from "../../IconList/index.js";
|
|
5
5
|
import { useCallback, useState } from "react";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
import { i18n } from "@lingui/core";
|
|
8
|
-
//#region packages/ui/
|
|
8
|
+
//#region packages/ui/Modules/CommonGrid/components/Filters/NumberRange/NumberRange.tsx
|
|
9
9
|
const OverlayComponentDefault = ({ children }) => /* @__PURE__ */ jsx("div", { children });
|
|
10
10
|
const createNumberComparators = () => [
|
|
11
11
|
{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import NumberRange from "./NumberRange.js";
|
|
2
|
-
//#region packages/ui/
|
|
2
|
+
//#region packages/ui/Modules/CommonGrid/components/Filters/NumberRange/index.ts
|
|
3
3
|
var NumberRange_default = NumberRange;
|
|
4
4
|
//#endregion
|
|
5
5
|
export { NumberRange_default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useClickOutside } from "
|
|
1
|
+
import { useClickOutside } from "../../../../../Blocks/Modal/hooks/useClickOutside.js";
|
|
2
2
|
import { Input } from "../../../../../Forms/Input/Input.js";
|
|
3
3
|
import { useEvent } from "../../../hooks/useEvent.js";
|
|
4
4
|
import IconList from "../../IconList/IconList.js";
|
|
@@ -6,7 +6,7 @@ import { useCallback, useState } from "react";
|
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
import { i18n } from "@lingui/core";
|
|
8
8
|
import { Trans } from "@lingui/react";
|
|
9
|
-
//#region packages/ui/
|
|
9
|
+
//#region packages/ui/Modules/CommonGrid/components/Filters/TextRange/TextRange.tsx
|
|
10
10
|
const OverlayComponentDefault = ({ children }) => /* @__PURE__ */ jsx("div", { children });
|
|
11
11
|
const ipv4 = /^([01]?[0-9]?[0-9]|2[0-4][0-9]|25[0-5])\.([01]?[0-9]?[0-9]|2[0-4][0-9]|25[0-5])\.([01]?[0-9]?[0-9]|2[0-4][0-9]|25[0-5])\.([01]?[0-9]?[0-9]|2[0-4][0-9]|25[0-5])$/;
|
|
12
12
|
const createTextComparators = () => [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import TextRange from "./TextRange.js";
|
|
2
|
-
//#region packages/ui/
|
|
2
|
+
//#region packages/ui/Modules/CommonGrid/components/Filters/TextRange/index.ts
|
|
3
3
|
var TextRange_default = TextRange;
|
|
4
4
|
//#endregion
|
|
5
5
|
export { TextRange_default as default };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { DropdownMenu } from "../../../../Elements/DropdownMenu/DropdownMenu.js";
|
|
2
2
|
import "../../../../Elements/DropdownMenu/index.js";
|
|
3
|
-
import Popover from "
|
|
3
|
+
import Popover from "../../../../Blocks/Popover/index.js";
|
|
4
4
|
import { useCallback, useRef, useState } from "react";
|
|
5
|
-
import styled$1 from "@xstyled/styled-components";
|
|
6
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
-
|
|
6
|
+
import styled$1 from "@xstyled/styled-components";
|
|
7
|
+
//#region packages/ui/Modules/CommonGrid/components/FloatingButton/FloatingButton.tsx
|
|
8
8
|
const FloatingWrapper = styled$1.div`
|
|
9
9
|
display: block;
|
|
10
10
|
position: absolute;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import FloatingButton from "./FloatingButton.js";
|
|
2
|
-
//#region packages/ui/
|
|
2
|
+
//#region packages/ui/Modules/CommonGrid/components/FloatingButton/index.tsx
|
|
3
3
|
var FloatingButton_default = FloatingButton;
|
|
4
4
|
//#endregion
|
|
5
5
|
export { FloatingButton_default as default };
|
|
@@ -3,7 +3,7 @@ import { useGridAggregation } from "./hooks/useGridAggregation.js";
|
|
|
3
3
|
import { ColumnTitle, StyledSelect, Wrapper } from "./styles.js";
|
|
4
4
|
import { useCallback, useState } from "react";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
-
//#region packages/ui/
|
|
6
|
+
//#region packages/ui/Modules/CommonGrid/components/GridAggregation/GridAggregation.tsx
|
|
7
7
|
const GridAggregation = ({ rowsData, columns, activeColumnName }) => {
|
|
8
8
|
const [operation, setOperation] = useState("sum");
|
|
9
9
|
const { column, isNumberFilter, numericValues, operationOptions, selectedOption } = useGridAggregation({
|
package/ui/{Blocks → Modules}/CommonGrid/components/GridAggregation/hooks/useGridAggregation.js
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { aggregate } from "../utils/aggregate.js";
|
|
2
2
|
import { useMemo } from "react";
|
|
3
3
|
import get from "lodash/fp/get";
|
|
4
|
-
//#region packages/ui/
|
|
4
|
+
//#region packages/ui/Modules/CommonGrid/components/GridAggregation/hooks/useGridAggregation.ts
|
|
5
5
|
const useGridAggregation = ({ rowsData, columns, activeColumnName, operation }) => {
|
|
6
6
|
const column = useMemo(() => {
|
|
7
7
|
if (!activeColumnName || !rowsData?.length) return null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import styled$1, { x } from "@xstyled/styled-components";
|
|
2
|
-
//#region packages/ui/
|
|
2
|
+
//#region packages/ui/Modules/CommonGrid/components/GridAggregation/styles.ts
|
|
3
3
|
const Wrapper = styled$1(x.div)`
|
|
4
4
|
display: none;
|
|
5
5
|
@media (min-width: 768px) {
|