@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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region packages/ui/
|
|
1
|
+
//#region packages/ui/Modules/CommonGrid/components/GridAggregation/utils/aggregate.ts
|
|
2
2
|
const aggregate = (values, operation) => {
|
|
3
3
|
if (values.length === 0) return 0;
|
|
4
4
|
switch (operation) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import Icon from "../../../../Elements/Icon/Icon.js";
|
|
2
2
|
import "../../../../Elements/Icon/index.js";
|
|
3
|
-
import { x } from "@xstyled/styled-components";
|
|
4
3
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
import { x } from "@xstyled/styled-components";
|
|
5
5
|
import { Trans } from "@lingui/react";
|
|
6
|
-
//#region packages/ui/
|
|
6
|
+
//#region packages/ui/Modules/CommonGrid/components/GridInfo/index.tsx
|
|
7
7
|
const GridInfo = ({ isSortTerminatedAppeal, isSortTerminated }) => {
|
|
8
8
|
if (!isSortTerminatedAppeal) return null;
|
|
9
9
|
return /* @__PURE__ */ jsxs(x.span, {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Input } from "../../../../Forms/Input/Input.js";
|
|
2
|
-
import { Modal } from "
|
|
2
|
+
import { Modal } from "../../../../Blocks/Modal/Modal.js";
|
|
3
3
|
import { useCreatePreset } from "../../hooks/useCreatePreset.js";
|
|
4
4
|
import { useDeletePreset } from "../../hooks/useDeletePreset.js";
|
|
5
5
|
import { usePresetFileHandlers } from "../../hooks/usePresetFileHandlers.js";
|
|
@@ -9,7 +9,7 @@ import { PresetsModalBody } from "../PresetsModalBody/index.js";
|
|
|
9
9
|
import "react";
|
|
10
10
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
11
11
|
import { Trans } from "@lingui/react";
|
|
12
|
-
//#region packages/ui/
|
|
12
|
+
//#region packages/ui/Modules/CommonGrid/components/GridModals/index.tsx
|
|
13
13
|
const GridModals = ({ manageColumnFormVisible, onCloseForm, resetColumnConfig, onConfirmForm, manageColumnsFormDefinitions, columnsConfigValues, setColumnsConfigOptions, handleDragEnd, gridName, gridSelectors, gridActions, isPresetsModalOpen, onClosePresetsModal, selectedPresetName, setSelectedPresetName }) => {
|
|
14
14
|
const { handleSelectPreset } = useSelectPreset({
|
|
15
15
|
gridName,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MessageCell, MessageCellBody, Row } from "../Table.js";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { Trans } from "@lingui/react";
|
|
4
|
-
//#region packages/ui/
|
|
4
|
+
//#region packages/ui/Modules/CommonGrid/components/GridStatus/index.tsx
|
|
5
5
|
const GridStatus = ({ isLoading, isEmpty, errorMessage }) => {
|
|
6
6
|
const hasError = !isLoading && errorMessage;
|
|
7
7
|
return /* @__PURE__ */ jsx(Row, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getCellSizeProps, getGroupClassNames, getStickyCollClassNames } from "../utils/index.js";
|
|
2
2
|
import { Cell, Row } from "./Table.js";
|
|
3
3
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
-
//#region packages/ui/
|
|
4
|
+
//#region packages/ui/Modules/CommonGrid/components/GroupRow.tsx
|
|
5
5
|
const GroupCell = ({ column, group, displayColumnWidth }) => {
|
|
6
6
|
const cellSizeProps = getCellSizeProps(column, displayColumnWidth);
|
|
7
7
|
return /* @__PURE__ */ jsx(Cell, {
|
|
@@ -5,7 +5,7 @@ import Resize from "./Resize.js";
|
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import { useSortable } from "@dnd-kit/sortable";
|
|
7
7
|
import { CSS } from "@dnd-kit/utilities";
|
|
8
|
-
//#region packages/ui/
|
|
8
|
+
//#region packages/ui/Modules/CommonGrid/components/HeadCell.tsx
|
|
9
9
|
const HeadCell = ({ column, isDragDisabled, displayColumnsWidth, onResizeOut, onResizeOver, onResize, sortingValues, onSetSort, group, hasResize, isSortTerminated }) => {
|
|
10
10
|
const { attributes, listeners, setNodeRef, transform, transition } = useSortable({
|
|
11
11
|
id: column.name,
|
|
@@ -21,6 +21,7 @@ const HeadCell = ({ column, isDragDisabled, displayColumnsWidth, onResizeOut, on
|
|
|
21
21
|
transition,
|
|
22
22
|
transform: CSS.Transform.toString(transform),
|
|
23
23
|
ref: setNodeRef,
|
|
24
|
+
"data-column-name": column.name,
|
|
24
25
|
children: [/* @__PURE__ */ jsx(ColumnTitle_default, {
|
|
25
26
|
title: column?.title,
|
|
26
27
|
isSortable: !!column.sorting && !isSortTerminated,
|
|
@@ -2,11 +2,11 @@ import { getCellSizeProps, getStickyCollClassNames } from "../utils/index.js";
|
|
|
2
2
|
import { Cell, Row } from "./Table.js";
|
|
3
3
|
import ColumnTitle_default from "./ColumnTitle.js";
|
|
4
4
|
import { HeadCell } from "./HeadCell.js";
|
|
5
|
-
import
|
|
5
|
+
import { useCallback, useEffect, useState } from "react";
|
|
6
6
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
import { SortableContext, horizontalListSortingStrategy } from "@dnd-kit/sortable";
|
|
8
8
|
import { DndContext, PointerSensor, closestCenter, useSensor, useSensors } from "@dnd-kit/core";
|
|
9
|
-
//#region packages/ui/
|
|
9
|
+
//#region packages/ui/Modules/CommonGrid/components/HeadRow.tsx
|
|
10
10
|
const getStickyComponent = (columns, stickyTo, displayColumnsWidth) => columns?.filter((item) => item.sticky && item.stickTo === stickyTo)?.map((column) => {
|
|
11
11
|
const cellClassName = `cell${getStickyCollClassNames(!!column.sticky, column.stickTo)}`;
|
|
12
12
|
return /* @__PURE__ */ jsx(Cell, {
|
|
@@ -19,24 +19,28 @@ const getStickyComponent = (columns, stickyTo, displayColumnsWidth) => columns?.
|
|
|
19
19
|
})
|
|
20
20
|
}, column.name);
|
|
21
21
|
});
|
|
22
|
-
const HeadRow = ({ columns, onAddSort, handleDragEnd, sortingValues = [], displayColumnsWidth, columnLayout, handleResizeDrag, groups, isSortTerminated }) => {
|
|
22
|
+
const HeadRow = ({ columns, onAddSort, handleDragEnd, sortingValues = [], displayColumnsWidth, columnLayout, handleResizeDrag, groups, isSortTerminated, onCellClick }) => {
|
|
23
23
|
const [showUIElements, setShowUIElements] = useState(false);
|
|
24
24
|
useEffect(() => {
|
|
25
25
|
setShowUIElements(true);
|
|
26
26
|
}, []);
|
|
27
27
|
const [isDragDisabled, setIsDragDisabled] = useState(false);
|
|
28
|
-
const onResizeOver =
|
|
28
|
+
const onResizeOver = useCallback(() => {
|
|
29
29
|
setIsDragDisabled(true);
|
|
30
30
|
}, [setIsDragDisabled]);
|
|
31
|
-
const onResizeOut =
|
|
31
|
+
const onResizeOut = useCallback(() => {
|
|
32
32
|
setIsDragDisabled(false);
|
|
33
33
|
}, [setIsDragDisabled]);
|
|
34
|
-
const onResize =
|
|
34
|
+
const onResize = useCallback((name) => (width) => {
|
|
35
35
|
handleResizeDrag?.(name, width);
|
|
36
36
|
}, [handleResizeDrag]);
|
|
37
|
-
const onSetSort =
|
|
37
|
+
const onSetSort = useCallback((name, systemName) => (value) => {
|
|
38
38
|
onAddSort?.(systemName || name, value);
|
|
39
39
|
}, [onAddSort]);
|
|
40
|
+
const onRowClick = useCallback((e) => {
|
|
41
|
+
const columnName = e.target.closest(".cell")?.dataset?.columnName;
|
|
42
|
+
if (columnName) onCellClick?.(columnName);
|
|
43
|
+
}, [onCellClick]);
|
|
40
44
|
const sensors = useSensors(useSensor(PointerSensor));
|
|
41
45
|
return /* @__PURE__ */ jsx(Fragment, { children: showUIElements && /* @__PURE__ */ jsx(DndContext, {
|
|
42
46
|
sensors,
|
|
@@ -47,6 +51,7 @@ const HeadRow = ({ columns, onAddSort, handleDragEnd, sortingValues = [], displa
|
|
|
47
51
|
strategy: horizontalListSortingStrategy,
|
|
48
52
|
children: /* @__PURE__ */ jsxs(Row, {
|
|
49
53
|
className: "headRow",
|
|
54
|
+
onMouseDown: onRowClick,
|
|
50
55
|
children: [
|
|
51
56
|
getStickyComponent(columns, "left", displayColumnsWidth),
|
|
52
57
|
columns.filter((item) => !item.sticky).map((column, index) => /* @__PURE__ */ jsx(HeadCell, {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import Icon from "../../../../Elements/Icon/Icon.js";
|
|
2
2
|
import React from "react";
|
|
3
|
-
import styled$1 from "@xstyled/styled-components";
|
|
4
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
import styled$1 from "@xstyled/styled-components";
|
|
5
5
|
import { th as th$1 } from "@xstyled/system";
|
|
6
|
-
//#region packages/ui/
|
|
6
|
+
//#region packages/ui/Modules/CommonGrid/components/IconList/IconList.tsx
|
|
7
7
|
const List = styled$1.ul`
|
|
8
8
|
background-color: white;
|
|
9
9
|
box-shadow: dropShadow;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import IconList from "./IconList.js";
|
|
2
|
-
//#region packages/ui/
|
|
2
|
+
//#region packages/ui/Modules/CommonGrid/components/IconList/index.ts
|
|
3
3
|
var IconList_default = IconList;
|
|
4
4
|
//#endregion
|
|
5
5
|
export { IconList_default as default };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Input } from "../../../../Forms/Input/Input.js";
|
|
2
2
|
import { ManageColumnRow } from "./components/ManageColumnRow.js";
|
|
3
3
|
import { useCallback, useState } from "react";
|
|
4
|
-
import { x } from "@xstyled/styled-components";
|
|
5
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
import { x } from "@xstyled/styled-components";
|
|
6
6
|
import { i18n } from "@lingui/core";
|
|
7
7
|
import { SortableContext, verticalListSortingStrategy } from "@dnd-kit/sortable";
|
|
8
8
|
import { DndContext, PointerSensor, closestCenter, useSensor, useSensors } from "@dnd-kit/core";
|
|
9
9
|
import { restrictToVerticalAxis } from "@dnd-kit/modifiers";
|
|
10
|
-
//#region packages/ui/
|
|
10
|
+
//#region packages/ui/Modules/CommonGrid/components/ManageColumnForm/ManageColumnForm.tsx
|
|
11
11
|
const modifiers = [restrictToVerticalAxis];
|
|
12
12
|
const ManageColumnForm = ({ columns, columnsConfigValues, setColumnsConfigOptions, handleDragEnd }) => {
|
|
13
13
|
const [searchedValue, setSearchedValue] = useState("");
|
package/ui/{Blocks → Modules}/CommonGrid/components/ManageColumnForm/components/ManageColumnRow.js
RENAMED
|
@@ -4,11 +4,11 @@ import { getTranslatedValue } from "../utils.js";
|
|
|
4
4
|
import Toggle from "../../../../../Elements/Toggle/Toggle.js";
|
|
5
5
|
import { RowLayout } from "../styles.js";
|
|
6
6
|
import { useCallback, useState } from "react";
|
|
7
|
-
import { x } from "@xstyled/styled-components";
|
|
8
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
+
import { x } from "@xstyled/styled-components";
|
|
9
9
|
import { useSortable } from "@dnd-kit/sortable";
|
|
10
10
|
import { CSS } from "@dnd-kit/utilities";
|
|
11
|
-
//#region packages/ui/
|
|
11
|
+
//#region packages/ui/Modules/CommonGrid/components/ManageColumnForm/components/ManageColumnRow.tsx
|
|
12
12
|
const ManageColumnRow = ({ column, columnsConfigValues, setColumnsConfigOptions, searchedValue }) => {
|
|
13
13
|
const [isSelected, setIsSelected] = useState(columnsConfigValues?.includes(column.name) ?? false);
|
|
14
14
|
const handleToggleChange = useCallback(() => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import ManageColumnForm from "./ManageColumnForm.js";
|
|
2
|
-
//#region packages/ui/
|
|
2
|
+
//#region packages/ui/Modules/CommonGrid/components/ManageColumnForm/index.tsx
|
|
3
3
|
var ManageColumnForm_default = ManageColumnForm;
|
|
4
4
|
//#endregion
|
|
5
5
|
export { ManageColumnForm_default as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import styled$1, { th } from "@xstyled/styled-components";
|
|
2
|
-
//#region packages/ui/
|
|
2
|
+
//#region packages/ui/Modules/CommonGrid/components/ManageColumnForm/styles.ts
|
|
3
3
|
const RowLayout = styled$1.div`
|
|
4
4
|
display: ${({ $isVisible }) => $isVisible ? "flex" : "none"};
|
|
5
5
|
align-items: center;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i18n } from "@lingui/core";
|
|
2
2
|
import isObject from "lodash/isObject";
|
|
3
|
-
//#region packages/ui/
|
|
3
|
+
//#region packages/ui/Modules/CommonGrid/components/ManageColumnForm/utils.ts
|
|
4
4
|
const getTranslatedValue = (column) => column && isObject(column?.title) ? "props" in column.title && column.title?.props && i18n._({
|
|
5
5
|
id: column.title?.props?.id ?? "",
|
|
6
6
|
message: column.title?.props.message
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { H6 } from "../../../Elements/Typography/Typography.js";
|
|
2
2
|
import "../../../Elements/Typography/index.js";
|
|
3
3
|
import { createFilterType, getFilterName, isFilterActive } from "../utils/index.js";
|
|
4
|
-
import { Modal } from "
|
|
4
|
+
import { Modal } from "../../../Blocks/Modal/Modal.js";
|
|
5
5
|
import { MobileOverlayWrapper } from "./MobileOverlayWrapper.js";
|
|
6
6
|
import { useCallback, useEffect, useState } from "react";
|
|
7
|
-
import { x } from "@xstyled/styled-components";
|
|
8
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
+
import { x } from "@xstyled/styled-components";
|
|
9
9
|
import { Trans } from "@lingui/react";
|
|
10
10
|
import get from "lodash/fp/get";
|
|
11
|
-
//#region packages/ui/
|
|
11
|
+
//#region packages/ui/Modules/CommonGrid/components/MobileFilterModal.tsx
|
|
12
12
|
const MobileFilterModal = ({ isShown, onClose, columns, filters, comparators, filterValues = {}, setFilters, rowsData, uxState, handleUxChange, onAsyncLoadFilterOptions, actionColumn, onClearSettings }) => {
|
|
13
13
|
const filterableColumns = columns.filter((col) => col.filtering && col.title);
|
|
14
14
|
const [localFilterValues, setLocalFilterValues] = useState(filterValues ?? {});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import styled$1 from "@xstyled/styled-components";
|
|
2
|
-
//#region packages/ui/
|
|
2
|
+
//#region packages/ui/Modules/CommonGrid/components/MobileOverlayWrapper.tsx
|
|
3
3
|
const MobileOverlayWrapper = styled$1.div`
|
|
4
4
|
position: absolute;
|
|
5
5
|
z-index: 10;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import Button_default from "../../../Elements/Button/index.js";
|
|
2
2
|
import { getSortName } from "../utils/index.js";
|
|
3
|
-
import { Modal } from "
|
|
3
|
+
import { Modal } from "../../../Blocks/Modal/Modal.js";
|
|
4
4
|
import { SortingDown, SortingUp } from "./icons/Sorting.js";
|
|
5
5
|
import { useCallback } from "react";
|
|
6
|
-
import { x } from "@xstyled/styled-components";
|
|
7
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
|
+
import { x } from "@xstyled/styled-components";
|
|
8
8
|
import { Trans } from "@lingui/react";
|
|
9
|
-
//#region packages/ui/
|
|
9
|
+
//#region packages/ui/Modules/CommonGrid/components/MobileSortModal.tsx
|
|
10
10
|
const AscIcon = /* @__PURE__ */ jsx(SortingUp, {
|
|
11
11
|
width: "16",
|
|
12
12
|
fill: "white"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "react";
|
|
2
|
-
import styled$1, { css } from "@xstyled/styled-components";
|
|
3
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
-
|
|
3
|
+
import styled$1, { css } from "@xstyled/styled-components";
|
|
4
|
+
//#region packages/ui/Modules/CommonGrid/components/OversizedScroll.tsx
|
|
5
5
|
const ScrollWrapper = styled$1.div`
|
|
6
6
|
${(props) => props.columnLayout !== "no-scroll" && css`
|
|
7
7
|
overflow-x: ${props.columnLayout === "sticky" ? "inherit" : "auto"};
|
package/ui/{Blocks → Modules}/CommonGrid/components/PresetsModalBody/components/TagRemove.js
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { styled } from "@xstyled/styled-components";
|
|
2
|
-
//#region packages/ui/
|
|
2
|
+
//#region packages/ui/Modules/CommonGrid/components/PresetsModalBody/components/TagRemove.tsx
|
|
3
3
|
const TagRemove = styled.div`
|
|
4
4
|
cursor: pointer;
|
|
5
5
|
margin-left: 6px;
|
|
@@ -5,11 +5,11 @@ import { palettes } from "../../../../Elements/Tag/palettes.js";
|
|
|
5
5
|
import { H6 } from "../../../../Elements/Typography/Typography.js";
|
|
6
6
|
import { TagRemove } from "./components/TagRemove.js";
|
|
7
7
|
import { useMemo } from "react";
|
|
8
|
-
import { x } from "@xstyled/styled-components";
|
|
9
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
+
import { x } from "@xstyled/styled-components";
|
|
10
10
|
import { Trans } from "@lingui/react";
|
|
11
11
|
import isEmpty from "lodash/isEmpty";
|
|
12
|
-
//#region packages/ui/
|
|
12
|
+
//#region packages/ui/Modules/CommonGrid/components/PresetsModalBody/index.tsx
|
|
13
13
|
const PresetsModalBody = ({ onOpenCreatePresetModal, gridPresets, handleSelectPreset, handleOpenDeletePresetModal, selectedPresetName, handleExportPresets, handleImportButtonClick, handleImportPresets, fileInputRef, filters }) => {
|
|
14
14
|
const presets = useMemo(() => Object.entries(gridPresets || {}), [gridPresets]);
|
|
15
15
|
const hasPresets = !!presets?.length;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import Button_default from "../../../../Elements/Button/index.js";
|
|
2
2
|
import Input_default from "../../../../Forms/Input/index.js";
|
|
3
|
-
import styled$1, { x } from "@xstyled/styled-components";
|
|
4
3
|
import { jsx } from "react/jsx-runtime";
|
|
5
|
-
|
|
4
|
+
import styled$1, { x } from "@xstyled/styled-components";
|
|
5
|
+
//#region packages/ui/Modules/CommonGrid/components/QuickFilter/QuickFilter.tsx
|
|
6
6
|
const StyledInput = styled$1(Input_default)`
|
|
7
7
|
position: ${({ isMobileInputView }) => isMobileInputView ? "absolute" : "relative"};
|
|
8
8
|
z-index: ${({ isMobileInputView }) => isMobileInputView ? "3" : "1"};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import QuickFilter from "./QuickFilter.js";
|
|
2
|
-
//#region packages/ui/
|
|
2
|
+
//#region packages/ui/Modules/CommonGrid/components/QuickFilter/index.tsx
|
|
3
3
|
var QuickFilter_default = QuickFilter;
|
|
4
4
|
//#endregion
|
|
5
5
|
export { QuickFilter_default as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useCallback } 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/Resize.tsx
|
|
5
5
|
const Resizer = styled$1.div`
|
|
6
6
|
height: 100%;
|
|
7
7
|
width: 7px;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import Select from "../../../../Elements/Select/Select.js";
|
|
2
2
|
import { rowsPerPageOptions } from "../../utils/constants.js";
|
|
3
3
|
import { useCallback, useMemo } from "react";
|
|
4
|
-
import styled$1, { x } from "@xstyled/styled-components";
|
|
5
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
import styled$1, { x } from "@xstyled/styled-components";
|
|
6
6
|
import { Trans } from "@lingui/react";
|
|
7
|
-
//#region packages/ui/
|
|
7
|
+
//#region packages/ui/Modules/CommonGrid/components/TablePagination/TablePagination.tsx
|
|
8
8
|
const Wrapper = styled$1.span`
|
|
9
9
|
display: flex;
|
|
10
10
|
align-items: center;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import TablePagination from "./TablePagination.js";
|
|
2
|
-
//#region packages/ui/
|
|
2
|
+
//#region packages/ui/Modules/CommonGrid/components/TablePagination/index.tsx
|
|
3
3
|
var TablePagination_default = TablePagination;
|
|
4
4
|
//#endregion
|
|
5
5
|
export { TablePagination_default as default };
|
|
@@ -2,10 +2,10 @@ import { ToastSuccess } from "../../../../Elements/Icon/icons/ToastSuccess.js";
|
|
|
2
2
|
import { ToastError } from "../../../../Elements/Icon/icons/ToastError.js";
|
|
3
3
|
import "../../../../Elements/Icon/index.js";
|
|
4
4
|
import React from "react";
|
|
5
|
-
import styled$1 from "@xstyled/styled-components";
|
|
6
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
import styled$1 from "@xstyled/styled-components";
|
|
7
7
|
import get from "lodash/fp/get";
|
|
8
|
-
//#region packages/ui/
|
|
8
|
+
//#region packages/ui/Modules/CommonGrid/components/gridCells/BoolIcon.tsx
|
|
9
9
|
const Center = styled$1.div`
|
|
10
10
|
display: flex;
|
|
11
11
|
justify-content: center;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Button from "../../../../Elements/Button/Button.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
//#region packages/ui/
|
|
4
|
+
//#region packages/ui/Modules/CommonGrid/components/gridCells/ButtonInCell.tsx
|
|
5
5
|
const ButtonInCell = (props) => {
|
|
6
6
|
return /* @__PURE__ */ jsx(Button, {
|
|
7
7
|
...props,
|
|
@@ -2,7 +2,7 @@ import "react";
|
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { DateTime } from "luxon";
|
|
4
4
|
import get from "lodash/fp/get";
|
|
5
|
-
//#region packages/ui/
|
|
5
|
+
//#region packages/ui/Modules/CommonGrid/components/gridCells/Date.tsx
|
|
6
6
|
const DateCell = ({ rowData, column }) => {
|
|
7
7
|
const value = get(column.name, rowData);
|
|
8
8
|
return value ? /* @__PURE__ */ jsx("span", { children: DateTime.fromISO(value).toFormat("dd. MM. yyyy") }) : null;
|
|
@@ -2,7 +2,7 @@ import "react";
|
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { DateTime } from "luxon";
|
|
4
4
|
import get from "lodash/fp/get";
|
|
5
|
-
//#region packages/ui/
|
|
5
|
+
//#region packages/ui/Modules/CommonGrid/components/gridCells/DateTime.tsx
|
|
6
6
|
const defaultProps = { dateTimeFormat: "dd. MM. yyyy HH:mm" };
|
|
7
7
|
const DateTimeCell = ({ rowData, column }) => {
|
|
8
8
|
const value = get(column.name, rowData);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import HighlightBox_default from "../../../../Elements/HighlightBox/index.js";
|
|
2
2
|
import { useMemo } from "react";
|
|
3
|
-
import styled$1 from "@xstyled/styled-components";
|
|
4
3
|
import { jsx } from "react/jsx-runtime";
|
|
5
|
-
|
|
4
|
+
import styled$1 from "@xstyled/styled-components";
|
|
5
|
+
//#region packages/ui/Modules/CommonGrid/components/gridCells/EnumInCell.tsx
|
|
6
6
|
const Center = styled$1.div`
|
|
7
7
|
display: flex;
|
|
8
8
|
justify-content: flex-start;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "react";
|
|
2
|
-
import styled$1 from "@xstyled/styled-components";
|
|
3
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import styled$1 from "@xstyled/styled-components";
|
|
4
4
|
import get from "lodash/fp/get";
|
|
5
|
-
//#region packages/ui/
|
|
5
|
+
//#region packages/ui/Modules/CommonGrid/components/gridCells/HoverBubble.tsx
|
|
6
6
|
const Wrapper = styled$1.div`
|
|
7
7
|
text-align: center;
|
|
8
8
|
overflow: hidden;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import Icon from "../../../../Elements/Icon/Icon.js";
|
|
2
2
|
import { Spinner } from "../../../../Elements/Spinner/Spinner.js";
|
|
3
3
|
import "react";
|
|
4
|
-
import { x } from "@xstyled/styled-components";
|
|
5
4
|
import { Fragment, jsx } from "react/jsx-runtime";
|
|
5
|
+
import { x } from "@xstyled/styled-components";
|
|
6
6
|
import { Link } from "react-router-dom";
|
|
7
|
-
//#region packages/ui/
|
|
7
|
+
//#region packages/ui/Modules/CommonGrid/components/gridCells/IconButtonInCell.tsx
|
|
8
8
|
const IconButtonInCell = ({ icon, isLoading, onClick, linkTo }) => {
|
|
9
9
|
return /* @__PURE__ */ jsx(Fragment, { children: isLoading ? /* @__PURE__ */ jsx(Spinner, { variant: "sm" }) : linkTo ? /* @__PURE__ */ jsx(Link, {
|
|
10
10
|
to: linkTo,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import Image from "../../../../Elements/Image/Image.js";
|
|
2
2
|
import "react";
|
|
3
|
-
import styled$1 from "@xstyled/styled-components";
|
|
4
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import styled$1 from "@xstyled/styled-components";
|
|
5
5
|
import get from "lodash/fp/get";
|
|
6
|
-
//#region packages/ui/
|
|
6
|
+
//#region packages/ui/Modules/CommonGrid/components/gridCells/ImageCell.tsx
|
|
7
7
|
const ImageWrapper = styled$1.div`
|
|
8
8
|
${({ onClick }) => onClick ? "cursor: pointer;" : ""}
|
|
9
9
|
height: 100%;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import StyledLink from "../../../../Elements/SimpleLink/SimpleLink.js";
|
|
2
2
|
import "../../../../Elements/SimpleLink/index.js";
|
|
3
3
|
import styled$1 from "@xstyled/styled-components";
|
|
4
|
-
//#region packages/ui/
|
|
4
|
+
//#region packages/ui/Modules/CommonGrid/components/gridCells/LinkInCell.tsx
|
|
5
5
|
const LinkInCell = styled$1(StyledLink)`
|
|
6
6
|
text-decoration: underline;
|
|
7
7
|
`;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import Icon from "../../../../Elements/Icon/Icon.js";
|
|
2
2
|
import React from "react";
|
|
3
|
-
import styled$1 from "@xstyled/styled-components";
|
|
4
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
import styled$1 from "@xstyled/styled-components";
|
|
5
5
|
import { Trans } from "@lingui/react";
|
|
6
|
-
//#region packages/ui/
|
|
6
|
+
//#region packages/ui/Modules/CommonGrid/components/gridCells/RemoveItem.tsx
|
|
7
7
|
const Wrap = styled$1.div`
|
|
8
8
|
width: 100%;
|
|
9
9
|
`;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import Checkbox_default from "../../../../Forms/Checkbox/index.js";
|
|
2
2
|
import { IconButtonInCell } from "./IconButtonInCell.js";
|
|
3
3
|
import { useCallback, useMemo } from "react";
|
|
4
|
-
import { x } from "@xstyled/styled-components";
|
|
5
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
import { x } from "@xstyled/styled-components";
|
|
6
6
|
import { isFunction, omit } from "lodash/fp";
|
|
7
|
-
//#region packages/ui/
|
|
7
|
+
//#region packages/ui/Modules/CommonGrid/components/gridCells/RowActionsCell.tsx
|
|
8
8
|
const RowActionsCell = ({ actionColumnDefinition, rowData, addRowNumbers, rowIndex, rowNumberWidth = 0, checkedRows, withCheckboxes, onUxChange, onRowAction }) => {
|
|
9
9
|
const rowDataId = rowData?.id;
|
|
10
10
|
const canEdit = isFunction(actionColumnDefinition?.canRowEdit) ? actionColumnDefinition?.canRowEdit(rowData) : actionColumnDefinition?.canRowEdit;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "react";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import get from "lodash/fp/get";
|
|
4
|
-
//#region packages/ui/
|
|
4
|
+
//#region packages/ui/Modules/CommonGrid/components/gridCells/StringJoin.tsx
|
|
5
5
|
const StringJoinCell = ({ rowData, column }) => {
|
|
6
6
|
const values = get(column.name, rowData);
|
|
7
7
|
return values?.length ? /* @__PURE__ */ jsx("span", { children: values.join(", ") }) : null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Toggle from "../../../../Elements/Toggle/Toggle.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
//#region packages/ui/
|
|
4
|
+
//#region packages/ui/Modules/CommonGrid/components/gridCells/SwitchInCell.tsx
|
|
5
5
|
const SwitchInCell = (props) => {
|
|
6
6
|
return /* @__PURE__ */ jsx(Toggle, {
|
|
7
7
|
...props,
|
|
@@ -2,7 +2,7 @@ import { SwitchInCell } from "./SwitchInCell.js";
|
|
|
2
2
|
import React, { useCallback } from "react";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import get from "lodash/fp/get";
|
|
5
|
-
//#region packages/ui/
|
|
5
|
+
//#region packages/ui/Modules/CommonGrid/components/gridCells/ToggleCell.tsx
|
|
6
6
|
const ToggleCell = ({ rowData, column, onRowAction }) => {
|
|
7
7
|
const inverse = !!column?.passProps?.inverse;
|
|
8
8
|
const rawValue = get(column.name, rowData);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "react";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
//#region packages/ui/
|
|
3
|
+
//#region packages/ui/Modules/CommonGrid/components/icons/Edit.tsx
|
|
4
4
|
const Edit = (props) => /* @__PURE__ */ jsx("svg", {
|
|
5
5
|
"data-icon": "edit",
|
|
6
6
|
viewBox: "0 0 16 16",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "react";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
//#region packages/ui/
|
|
3
|
+
//#region packages/ui/Modules/CommonGrid/components/icons/EyeOpen.tsx
|
|
4
4
|
const EyeOpen = (props) => /* @__PURE__ */ jsx("svg", {
|
|
5
5
|
"data-icon": "eye-open",
|
|
6
6
|
viewBox: "0 0 16 16",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "react";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
//#region packages/ui/
|
|
3
|
+
//#region packages/ui/Modules/CommonGrid/components/icons/Sorting.tsx
|
|
4
4
|
const SortingUp = (props) => /* @__PURE__ */ jsx("svg", {
|
|
5
5
|
viewBox: "0 0 16 16",
|
|
6
6
|
...props,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useState } from "react";
|
|
2
|
-
//#region packages/ui/
|
|
2
|
+
//#region packages/ui/Modules/CommonGrid/components/utils.tsx
|
|
3
3
|
const useTimeMeasurement = ({ handleRowClick }) => {
|
|
4
4
|
const [startTime, setStartTime] = useState(0);
|
|
5
5
|
const handleMouseDown = () => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createFilterType, getFilterName } from "../utils/index.js";
|
|
2
2
|
import { useCallback } from "react";
|
|
3
|
-
//#region packages/ui/
|
|
3
|
+
//#region packages/ui/Modules/CommonGrid/hooks/useAddFilter.ts
|
|
4
4
|
const useAddFilter = (onChange) => {
|
|
5
5
|
return useCallback((value, column, others) => {
|
|
6
6
|
if (onChange) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { parseSharedGridState } from "../utils/shareUrl/parseSharedGridState.js";
|
|
2
2
|
import "../utils/shareUrl/index.js";
|
|
3
3
|
import { useEffect, useRef } from "react";
|
|
4
|
-
//#region packages/ui/
|
|
4
|
+
//#region packages/ui/Modules/CommonGrid/hooks/useApplySharedGridState.ts
|
|
5
5
|
const useApplySharedGridState = ({ enabled, columns, gridActions }) => {
|
|
6
6
|
const appliedRef = useRef(false);
|
|
7
7
|
useEffect(() => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import sum from "lodash/sum";
|
|
3
|
-
//#region packages/ui/
|
|
3
|
+
//#region packages/ui/Modules/CommonGrid/hooks/useColumnSizes.tsx
|
|
4
4
|
const useColumnSizes = (displayColumnsDefinitions, storeColumnsWidth, storeColumnsWidthVariant, setColumnWidth, columnLayout, minColumnWidth = 50) => {
|
|
5
5
|
/**
|
|
6
6
|
* decorate grid resize with layout and reset grid widths if layout changes
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { useModal } from "
|
|
1
|
+
import { useModal } from "../../../Blocks/Modal/hooks/useModal.js";
|
|
2
2
|
import { useEvent } from "./useEvent.js";
|
|
3
3
|
import { useCallback, useState } from "react";
|
|
4
4
|
import isEmpty from "lodash/isEmpty";
|
|
5
|
-
//#region packages/ui/
|
|
5
|
+
//#region packages/ui/Modules/CommonGrid/hooks/useCreatePreset.ts
|
|
6
6
|
const maxPresetNameLength = 40;
|
|
7
7
|
const useCreatePreset = ({ gridName, filters, onClosePresetsModal, setSelectedPresetName, gridActions }) => {
|
|
8
8
|
const { isOpen: isCreatePresetModalOpen, onOpen: onOpenCreatePresetModal, onClose: onCloseCreatePresetModal } = useModal();
|