@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,6 +1,6 @@
|
|
|
1
|
-
import { useModal } from "
|
|
1
|
+
import { useModal } from "../../../Blocks/Modal/hooks/useModal.js";
|
|
2
2
|
import { useCallback } from "react";
|
|
3
|
-
//#region packages/ui/
|
|
3
|
+
//#region packages/ui/Modules/CommonGrid/hooks/useDeletePreset.ts
|
|
4
4
|
const useDeletePreset = ({ selectedPresetName, gridName, gridActions, setSelectedPresetName }) => {
|
|
5
5
|
const { isOpen: isDeletePresetModalOpen, onOpen: onOpenDeletePresetModal, onClose: onCloseDeletePresetModal, data: presetNameToDelete } = useModal();
|
|
6
6
|
return {
|
|
@@ -4,7 +4,7 @@ import withProps from "../HoC/withProps.js";
|
|
|
4
4
|
import { RowActionsCell } from "../components/gridCells/RowActionsCell.js";
|
|
5
5
|
import "../components/gridCells/index.js";
|
|
6
6
|
import { useCallback, useMemo } from "react";
|
|
7
|
-
//#region packages/ui/
|
|
7
|
+
//#region packages/ui/Modules/CommonGrid/hooks/useEditReadAsColumn.tsx
|
|
8
8
|
const useEditReadAsColumn = (props) => {
|
|
9
9
|
const { onRowAction, actionColumnDefinition, columnsDefinitions, gridSelectors, gridActions, onRowEditClick, onRowReadClick, rowsData } = props;
|
|
10
10
|
const modifiedOnRowAction = useCallback((id, field, value, rowData) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useCallback, useLayoutEffect, useRef } from "react";
|
|
2
|
-
//#region packages/ui/
|
|
2
|
+
//#region packages/ui/Modules/CommonGrid/hooks/useEvent.ts
|
|
3
3
|
const useEvent = (callback) => {
|
|
4
4
|
const ref = useRef(() => {
|
|
5
5
|
throw new Error("Cannot call an event handler while rendering.");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useMemo } from "react";
|
|
2
|
-
//#region packages/ui/
|
|
2
|
+
//#region packages/ui/Modules/CommonGrid/hooks/useFloatingButton.ts
|
|
3
3
|
const useFloatingButton = (hasPermission, onClick, options) => useMemo(() => {
|
|
4
4
|
if (!hasPermission) return;
|
|
5
5
|
return {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useCallback, useMemo } from "react";
|
|
2
2
|
import find from "lodash/find";
|
|
3
|
-
//#region packages/ui/
|
|
3
|
+
//#region packages/ui/Modules/CommonGrid/hooks/useGridActionTrigger.ts
|
|
4
4
|
const useGridActionTrigger = (rowsData, uxState, actionOptions = [], onBatchAction) => {
|
|
5
5
|
const actionRows = useMemo(() => {
|
|
6
6
|
return (rowsData || []).filter((row) => uxState.checkedRows?.[row.id]);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { rowsPerPageOptions } from "../utils/constants.js";
|
|
2
2
|
import { useEffect } from "react";
|
|
3
|
-
//#region packages/ui/
|
|
3
|
+
//#region packages/ui/Modules/CommonGrid/hooks/useGridAutoRowsPerPage.ts
|
|
4
4
|
const useGridAutoRowsPerPage = ({ gridActions, queryRowsParam, selectedRowsPerPage, autoRowsPerPage, autoHeight }) => {
|
|
5
5
|
useEffect(() => {
|
|
6
6
|
if (!autoHeight || queryRowsParam || !autoRowsPerPage) return;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { checksColumnsOrder, isColumnOn } from "../utils/index.js";
|
|
2
2
|
import { useCallback, useEffect, useMemo, useState } from "react";
|
|
3
|
-
//#region packages/ui/
|
|
3
|
+
//#region packages/ui/Modules/CommonGrid/hooks/useManageColumn.ts
|
|
4
4
|
const useManageColumn = ({ columns, gridSelectors, gridActions, onClose }) => {
|
|
5
5
|
const { resetGrid, setColumnConfig, setColumnsOrder } = gridActions;
|
|
6
6
|
const { columnConfig, columnsOrder } = gridSelectors;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useCallback, useRef } from "react";
|
|
2
2
|
import { i18n } from "@lingui/core";
|
|
3
3
|
import omit from "lodash/omit";
|
|
4
|
-
//#region packages/ui/
|
|
4
|
+
//#region packages/ui/Modules/CommonGrid/hooks/usePresetFileHandlers.ts
|
|
5
5
|
const usePresetFileHandlers = ({ gridName, gridActions, gridSelectors }) => {
|
|
6
6
|
const fileInputRef = useRef(null);
|
|
7
7
|
const handleExportPresets = useCallback(() => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { useModal } from "
|
|
1
|
+
import { useModal } from "../../../Blocks/Modal/hooks/useModal.js";
|
|
2
2
|
import { useState } from "react";
|
|
3
|
-
//#region packages/ui/
|
|
3
|
+
//#region packages/ui/Modules/CommonGrid/hooks/usePresetsState.ts
|
|
4
4
|
const usePresetState = () => {
|
|
5
5
|
const { isOpen: isPresetsModalOpen, onOpen: onOpenPresetsModal, onClose: onClosePresetsModal } = useModal();
|
|
6
6
|
const [selectedPresetName, setSelectedPresetName] = useState("");
|
|
@@ -5,7 +5,7 @@ import { clearShareParams } from "../utils/shareUrl/clearShareParams.js";
|
|
|
5
5
|
import "../utils/shareUrl/index.js";
|
|
6
6
|
import { useAddFilter } from "./useAddFilter.js";
|
|
7
7
|
import { useCallback, useEffect, useState } from "react";
|
|
8
|
-
//#region packages/ui/
|
|
8
|
+
//#region packages/ui/Modules/CommonGrid/hooks/useQuickFilter.ts
|
|
9
9
|
const defaultVoidFunction = (...args) => null;
|
|
10
10
|
const useQuickFilter = ({ gridActions, gridSelectors, quickFilter, columns, filters }) => {
|
|
11
11
|
const { addFilter = defaultVoidFunction, clearSettings = defaultVoidFunction } = gridActions;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
//#region packages/ui/
|
|
2
|
+
//#region packages/ui/Modules/CommonGrid/hooks/useRowsKeyControls.ts
|
|
3
3
|
const useRowsKeyControls = (rowsData, uxState, onUxChange) => React.useCallback((e) => {
|
|
4
4
|
const selectedRowId = uxState.selectedRow;
|
|
5
5
|
if (!selectedRowId) return;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useCallback, useEffect } from "react";
|
|
2
2
|
import isEqual from "lodash/isEqual";
|
|
3
|
-
//#region packages/ui/
|
|
3
|
+
//#region packages/ui/Modules/CommonGrid/hooks/useSelectPreset.ts
|
|
4
4
|
const useSelectPreset = ({ gridName, gridActions, gridSelectors, setSelectedPresetName, onClosePresetsModal }) => {
|
|
5
5
|
const gridPresets = gridSelectors?.presets;
|
|
6
6
|
const filters = gridSelectors?.filter;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { buildShareUrl } from "../utils/shareUrl/buildShareUrl.js";
|
|
2
2
|
import "../utils/shareUrl/index.js";
|
|
3
3
|
import { useCallback, useEffect, useState } from "react";
|
|
4
|
-
//#region packages/ui/
|
|
4
|
+
//#region packages/ui/Modules/CommonGrid/hooks/useShareGrid.ts
|
|
5
5
|
const useShareGrid = ({ gridSelectors, columns }) => {
|
|
6
6
|
const [isCopied, setIsCopied] = useState(false);
|
|
7
7
|
useEffect(() => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useCallback, useMemo } from "react";
|
|
2
|
-
//#region packages/ui/
|
|
2
|
+
//#region packages/ui/Modules/CommonGrid/hooks/useToggleAllCheckbox.ts
|
|
3
3
|
const useToggleAllCheckbox = (rowsData, uxState, handleUxChange) => {
|
|
4
4
|
const allChecked = useMemo(() => rowsData && (rowsData || []).length >= 1 && rowsData.every((row) => uxState?.checkedRows?.[row.id]), [rowsData, uxState?.checkedRows]);
|
|
5
5
|
const toggleAllHandler = useCallback(() => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
//#region packages/ui/
|
|
2
|
+
//#region packages/ui/Modules/CommonGrid/hooks/useUxReset.ts
|
|
3
3
|
const useUxReset = (rowsData, uxState, clearUxState) => {
|
|
4
4
|
const [previous, setPrevious] = React.useState("|");
|
|
5
5
|
React.useEffect(() => {
|
|
@@ -20,7 +20,7 @@ import store_default, { actionPrefix, actionTypes, createActions, createFullSele
|
|
|
20
20
|
import CommonGridContainer from "./CommonGridContainer.js";
|
|
21
21
|
import withReduxActions from "./HoC/withReduxActions.js";
|
|
22
22
|
import useFloatingButton from "./hooks/useFloatingButton.js";
|
|
23
|
-
//#region packages/ui/
|
|
23
|
+
//#region packages/ui/Modules/CommonGrid/index.ts
|
|
24
24
|
var CommonGrid_default = CommonGridContainer;
|
|
25
25
|
//#endregion
|
|
26
26
|
export { BoolIconCell, ButtonInCell, DateCell, DateTimeCell, EnumInCell, HoverBubble, IconButtonInCell, ImageCell, LinkInCell, RemoveCell, RowActionsCell, StringJoinCell, SwitchInCell, ToggleCell, types_exports as Types, actionPrefix, actionTypes, createActions, createFullSelector, createSelectors, CommonGrid_default as default, store_default as reducer, useAddFilter, useEvent, useFloatingButton, withReduxActions };
|
|
@@ -3,7 +3,7 @@ import getOr from "lodash/fp/getOr";
|
|
|
3
3
|
import omit from "lodash/omit";
|
|
4
4
|
import produce from "immer";
|
|
5
5
|
import { createSelector } from "reselect";
|
|
6
|
-
//#region packages/ui/
|
|
6
|
+
//#region packages/ui/Modules/CommonGrid/store/index.ts
|
|
7
7
|
const initialState = {
|
|
8
8
|
page: 1,
|
|
9
9
|
presets: {},
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region packages/ui/
|
|
1
|
+
//#region packages/ui/Modules/CommonGrid/store/migrateState.ts
|
|
2
2
|
const v2 = (draft) => {
|
|
3
3
|
Object.keys(draft).forEach((gridName) => {
|
|
4
4
|
if (draft[gridName].columnConfig && Array.isArray(draft[gridName].columnConfig)) draft[gridName].columnConfig = {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useCallback } from "react";
|
|
2
2
|
import { jsxs } from "react/jsx-runtime";
|
|
3
|
-
//#region packages/ui/
|
|
3
|
+
//#region packages/ui/Modules/CommonGrid/storybook/components/ComplexCell.tsx
|
|
4
4
|
const ComplexCell = (props) => {
|
|
5
5
|
return /* @__PURE__ */ jsxs("button", {
|
|
6
6
|
onClick: useCallback(() => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EnumInCell } from "../../components/gridCells/EnumInCell.js";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
//#region packages/ui/
|
|
3
|
+
//#region packages/ui/Modules/CommonGrid/storybook/components/EnumCellExample.tsx
|
|
4
4
|
const packagingTypeAppearance = {
|
|
5
5
|
"option A": "neutralSubtle",
|
|
6
6
|
"option B": "orangeSubtle",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region packages/ui/
|
|
1
|
+
//#region packages/ui/Modules/CommonGrid/storybook/utils/actions.ts
|
|
2
2
|
const onRowEditClick = (id, props) => console.log("onRowEditClick", id, props);
|
|
3
3
|
const onRowReadClick = (id, props) => console.log("onRowReadClick", id, props);
|
|
4
4
|
const onRowAction = (id, field, value) => console.log("onRowAction", id, field, value);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ComplexCell } from "../components/ComplexCell.js";
|
|
2
2
|
import { EnumCellExample } from "../components/EnumCellExample.js";
|
|
3
3
|
import { enumValues } from "./utils.js";
|
|
4
|
-
//#region packages/ui/
|
|
4
|
+
//#region packages/ui/Modules/CommonGrid/storybook/utils/columnDefinition.tsx
|
|
5
5
|
const oversizedArrayColumns = 25;
|
|
6
6
|
const oversizedColumnDefinition = new Array(25).fill(null).map((unused, index) => ({
|
|
7
7
|
name: `column_${index}`,
|
|
@@ -4,7 +4,7 @@ import withReduxActions from "../../HoC/withReduxActions.js";
|
|
|
4
4
|
import React from "react";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
import faker from "faker";
|
|
7
|
-
//#region packages/ui/
|
|
7
|
+
//#region packages/ui/Modules/CommonGrid/storybook/utils/utils.tsx
|
|
8
8
|
const enumValues = [
|
|
9
9
|
"option A",
|
|
10
10
|
"option B",
|
|
@@ -2,7 +2,7 @@ import store_default from "../../store/index.js";
|
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { Provider } from "react-redux";
|
|
4
4
|
import { combineReducers, compose, createStore } from "redux";
|
|
5
|
-
//#region packages/ui/
|
|
5
|
+
//#region packages/ui/Modules/CommonGrid/storybook/utils/withRedux.tsx
|
|
6
6
|
const reduxComposeEnhancer = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;
|
|
7
7
|
const withProvider = (story) => {
|
|
8
8
|
return /* @__PURE__ */ jsx(Provider, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "react";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { MemoryRouter } from "react-router";
|
|
4
|
-
//#region packages/ui/
|
|
4
|
+
//#region packages/ui/Modules/CommonGrid/storybook/utils/withRouter.tsx
|
|
5
5
|
const withProvider = (story) => /* @__PURE__ */ jsx(MemoryRouter, { children: story() });
|
|
6
6
|
//#endregion
|
|
7
7
|
export { withProvider as default };
|
|
@@ -12,7 +12,7 @@ export declare const CommonGridWithStyles: import("styled-components").StyledCom
|
|
|
12
12
|
displayColumnsDefinitions: import("./types").ColumnDefinition[];
|
|
13
13
|
hasGroups: boolean;
|
|
14
14
|
hasFilters: boolean;
|
|
15
|
-
|
|
15
|
+
onSetActiveColumn?: (columnName: string) => void;
|
|
16
16
|
}>, import("@xstyled/styled-components").Theme, {
|
|
17
17
|
withButtonStrip: boolean;
|
|
18
18
|
hasGroupsOrFilters: boolean;
|
|
@@ -2,7 +2,7 @@ import "./utils/constants.js";
|
|
|
2
2
|
import CommonGrid from "./CommonGrid.js";
|
|
3
3
|
import styled$1, { x } from "@xstyled/styled-components";
|
|
4
4
|
import { th as th$1 } from "@xstyled/system";
|
|
5
|
-
//#region packages/ui/
|
|
5
|
+
//#region packages/ui/Modules/CommonGrid/styles.tsx
|
|
6
6
|
const BottomWrapper = styled$1(x.div)`
|
|
7
7
|
position: relative;
|
|
8
8
|
z-index: 2;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __exportAll } from "../../_virtual/_rolldown/runtime.js";
|
|
2
|
-
//#region packages/ui/
|
|
2
|
+
//#region packages/ui/Modules/CommonGrid/types.ts
|
|
3
3
|
var types_exports = /* @__PURE__ */ __exportAll({
|
|
4
4
|
EditReadPosition: () => EditReadPosition,
|
|
5
5
|
ExtraControlButtonPosition: () => ExtraControlButtonPosition,
|
|
@@ -2,7 +2,7 @@ import { Reload } from "../../../Elements/Icon/icons/Reload.js";
|
|
|
2
2
|
import "../types.js";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import compact from "lodash/compact";
|
|
5
|
-
//#region packages/ui/
|
|
5
|
+
//#region packages/ui/Modules/CommonGrid/utils/getExtendedExtraControlButtons.tsx
|
|
6
6
|
const getExtendedExtraControlButtons = (extraControlButtons, onReload) => compact([onReload && {
|
|
7
7
|
onClick: onReload,
|
|
8
8
|
label: /* @__PURE__ */ jsx(Reload, {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./constants.js";
|
|
2
|
-
//#region packages/ui/
|
|
2
|
+
//#region packages/ui/Modules/CommonGrid/utils/getRowsPerPage.ts
|
|
3
3
|
const getRowsPerPage = (ref, withPagination, withButtonStrip, hasGroupsOrFilters) => {
|
|
4
4
|
const containerHeight = ref?.current?.clientHeight;
|
|
5
5
|
const gridHeaderHeight = 40 + (hasGroupsOrFilters ? 39 : 0) + (withButtonStrip ? 75 : 0);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region packages/ui/
|
|
1
|
+
//#region packages/ui/Modules/CommonGrid/utils/hasSortTerminated.ts
|
|
2
2
|
const hasSortTerminated = ({ allowSortingOnlyUnderTotalRows, totalRowsCount }) => {
|
|
3
3
|
const allowSorting = allowSortingOnlyUnderTotalRows && totalRowsCount;
|
|
4
4
|
return {
|
|
@@ -5,7 +5,7 @@ import DatePickerRange_default from "../components/Filters/DatePickerRange/index
|
|
|
5
5
|
import NumberRange_default from "../components/Filters/NumberRange/index.js";
|
|
6
6
|
import TextRange_default from "../components/Filters/TextRange/index.js";
|
|
7
7
|
import sum from "lodash/sum";
|
|
8
|
-
//#region packages/ui/
|
|
8
|
+
//#region packages/ui/Modules/CommonGrid/utils/index.ts
|
|
9
9
|
const isDefined = (val) => typeof val !== "undefined";
|
|
10
10
|
const getCellSizeProps = (column, columnWidth) => {
|
|
11
11
|
if (!column) return {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getFilterName } from "../index.js";
|
|
2
2
|
import { FILTERS_PARAM, SORT_PARAM } from "./constants.js";
|
|
3
|
-
//#region packages/ui/
|
|
3
|
+
//#region packages/ui/Modules/CommonGrid/utils/shareUrl/buildShareUrl.ts
|
|
4
4
|
const enc = (value) => encodeURIComponent(value).replace(/\(/g, "%28").replace(/\)/g, "%29");
|
|
5
5
|
const serializeValue = (value) => {
|
|
6
6
|
if (value == null || value === "") return null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FILTERS_PARAM, SORT_PARAM } from "./constants.js";
|
|
2
|
-
//#region packages/ui/
|
|
2
|
+
//#region packages/ui/Modules/CommonGrid/utils/shareUrl/clearShareParams.ts
|
|
3
3
|
const clearShareParams = () => {
|
|
4
4
|
const url = new URL(window.location.href);
|
|
5
5
|
if (!["gridFilters", "gridSort"].some((key) => url.searchParams.has(key))) return;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createFilterType, getFilterName } from "../index.js";
|
|
2
2
|
import { FILTERS_PARAM, SORT_PARAM } from "./constants.js";
|
|
3
|
-
//#region packages/ui/
|
|
3
|
+
//#region packages/ui/Modules/CommonGrid/utils/shareUrl/parseSharedGridState.ts
|
|
4
4
|
const dec = decodeURIComponent;
|
|
5
5
|
const reconstructValue = (type, column, valuePart, comparator, labels) => {
|
|
6
6
|
if (type === "options") {
|
|
@@ -2,8 +2,8 @@ import styles_default from "../../../../styles.js";
|
|
|
2
2
|
import Text from "../../../Text/Text.js";
|
|
3
3
|
import ComponentContext from "../../../../context/ComponentContext.js";
|
|
4
4
|
import React from "react";
|
|
5
|
-
import { x } from "@xstyled/styled-components";
|
|
6
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
import { x } from "@xstyled/styled-components";
|
|
7
7
|
//#region packages/ui/Modules/Dashboard/components/Layout/components/ItemConfig/ItemConfigControls.tsx
|
|
8
8
|
const ItemConfigControls = ({ onCancel, onSave, onRemove }) => {
|
|
9
9
|
const { Button } = React.useContext(ComponentContext);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import styles_default from "../styles.js";
|
|
2
2
|
import "react";
|
|
3
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
3
|
import styled from "styled-components";
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
//#region packages/ui/Modules/Dashboard/components/Widgets/HorizontalBar/components/LabelsLine.tsx
|
|
6
6
|
const BoldSpan = styled.span`
|
|
7
7
|
font-weight: bold;
|
|
@@ -6,8 +6,8 @@ import { createWidgetColors } from "../utils/generic.js";
|
|
|
6
6
|
import { getColorStringArray } from "../utils/helpers.js";
|
|
7
7
|
import { Description, OtherText, Subtitle, Title, Wrapper, WrapperText, layers, margin } from "./styles.js";
|
|
8
8
|
import React from "react";
|
|
9
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
9
|
import { useTheme } from "styled-components";
|
|
10
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
11
|
import { ResponsivePie } from "@nivo/pie";
|
|
12
12
|
//#region packages/ui/Modules/Dashboard/components/Widgets/PieChart/PieChart.tsx
|
|
13
13
|
const defaultLegendRowMaxLength = 4;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import themes from "./themes/index.js";
|
|
2
2
|
import { createContext } from "react";
|
|
3
|
-
import { Preflight, ThemeProvider } from "@xstyled/styled-components";
|
|
4
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
import { Preflight, ThemeProvider } from "@xstyled/styled-components";
|
|
5
5
|
//#region packages/ui/ThemeProvider/ThemeProvider.tsx
|
|
6
6
|
const LanguageContext = createContext("en");
|
|
7
7
|
const MailstepThemeProvider = ({ children, theme = "default", preflight = true, language = "en" }) => {
|
package/ui/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import CommonGrid from './
|
|
1
|
+
import CommonGrid from './Modules/CommonGrid';
|
|
2
2
|
import CornerDialog from './Blocks/CornerDialog';
|
|
3
3
|
import ImageList from './Blocks/ImageList';
|
|
4
4
|
import LanguageSwitch from './Blocks/LanguageSwitch';
|
|
@@ -82,7 +82,7 @@ export * from './Forms/RadioButton';
|
|
|
82
82
|
export * from './ThemeProvider';
|
|
83
83
|
export * from './utils';
|
|
84
84
|
export * from './Elements/DatePicker';
|
|
85
|
-
export * from './
|
|
85
|
+
export * from './Modules/CommonGrid';
|
|
86
86
|
export * from './Blocks/Popover';
|
|
87
87
|
export * from './Elements/SingleSelect';
|
|
88
88
|
export * from './Elements/Select';
|
package/ui/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { useModal } from "./Blocks/Modal/hooks/useModal.js";
|
|
1
2
|
import { Cancel } from "./Elements/Icon/icons/Cancel.js";
|
|
2
3
|
import { FlagUSA } from "./Elements/Icon/icons/FlagUSA.js";
|
|
3
4
|
import { FlagCZ } from "./Elements/Icon/icons/FlagCZ.js";
|
|
@@ -113,7 +114,6 @@ import { Break } from "./Elements/Icon/icons/Break.js";
|
|
|
113
114
|
import { iconDictionary } from "./Elements/Icon/Icon.js";
|
|
114
115
|
import Icon_default from "./Elements/Icon/index.js";
|
|
115
116
|
import Pagination_default from "./Elements/Pagination/index.js";
|
|
116
|
-
import { useModal } from "./Blocks/Modal/hooks/useModal.js";
|
|
117
117
|
import Spinner_default from "./Elements/Spinner/index.js";
|
|
118
118
|
import Button_default from "./Elements/Button/index.js";
|
|
119
119
|
import themes from "./ThemeProvider/themes/index.js";
|
|
@@ -136,32 +136,32 @@ import SingleSelect_default from "./Elements/SingleSelect/index.js";
|
|
|
136
136
|
import { DatePickerRepeat, TimePickerRepeat } from "./Elements/DatePicker/Datetime/types.js";
|
|
137
137
|
import Input_default from "./Forms/Input/index.js";
|
|
138
138
|
import DatePicker_default from "./Elements/DatePicker/index.js";
|
|
139
|
-
import { useEvent } from "./
|
|
140
|
-
import { useAddFilter } from "./
|
|
141
|
-
import { types_exports } from "./
|
|
139
|
+
import { useEvent } from "./Modules/CommonGrid/hooks/useEvent.js";
|
|
140
|
+
import { useAddFilter } from "./Modules/CommonGrid/hooks/useAddFilter.js";
|
|
141
|
+
import { types_exports } from "./Modules/CommonGrid/types.js";
|
|
142
142
|
import { Portal } from "./Elements/Portal/index.js";
|
|
143
143
|
import Popover from "./Blocks/Popover/index.js";
|
|
144
144
|
import { CustomSelectButton } from "./Elements/DropdownSelect/DropdownSelect.js";
|
|
145
145
|
import DropdownSelect_default from "./Elements/DropdownSelect/index.js";
|
|
146
|
-
import { DateCell } from "./
|
|
147
|
-
import { DateTimeCell } from "./
|
|
148
|
-
import { StringJoinCell } from "./
|
|
149
|
-
import { BoolIconCell } from "./
|
|
150
|
-
import { RemoveCell } from "./
|
|
146
|
+
import { DateCell } from "./Modules/CommonGrid/components/gridCells/Date.js";
|
|
147
|
+
import { DateTimeCell } from "./Modules/CommonGrid/components/gridCells/DateTime.js";
|
|
148
|
+
import { StringJoinCell } from "./Modules/CommonGrid/components/gridCells/StringJoin.js";
|
|
149
|
+
import { BoolIconCell } from "./Modules/CommonGrid/components/gridCells/BoolIcon.js";
|
|
150
|
+
import { RemoveCell } from "./Modules/CommonGrid/components/gridCells/RemoveItem.js";
|
|
151
151
|
import SimpleLink_default from "./Elements/SimpleLink/index.js";
|
|
152
|
-
import { LinkInCell } from "./
|
|
153
|
-
import { ButtonInCell } from "./
|
|
154
|
-
import { IconButtonInCell } from "./
|
|
155
|
-
import { SwitchInCell } from "./
|
|
156
|
-
import { ImageCell } from "./
|
|
157
|
-
import { EnumInCell } from "./
|
|
158
|
-
import { HoverBubble } from "./
|
|
159
|
-
import { RowActionsCell } from "./
|
|
160
|
-
import { ToggleCell } from "./
|
|
161
|
-
import store_default, { actionPrefix, actionTypes, createActions, createFullSelector, createSelectors } from "./
|
|
162
|
-
import withReduxActions from "./
|
|
163
|
-
import useFloatingButton from "./
|
|
164
|
-
import CommonGrid_default from "./
|
|
152
|
+
import { LinkInCell } from "./Modules/CommonGrid/components/gridCells/LinkInCell.js";
|
|
153
|
+
import { ButtonInCell } from "./Modules/CommonGrid/components/gridCells/ButtonInCell.js";
|
|
154
|
+
import { IconButtonInCell } from "./Modules/CommonGrid/components/gridCells/IconButtonInCell.js";
|
|
155
|
+
import { SwitchInCell } from "./Modules/CommonGrid/components/gridCells/SwitchInCell.js";
|
|
156
|
+
import { ImageCell } from "./Modules/CommonGrid/components/gridCells/ImageCell.js";
|
|
157
|
+
import { EnumInCell } from "./Modules/CommonGrid/components/gridCells/EnumInCell.js";
|
|
158
|
+
import { HoverBubble } from "./Modules/CommonGrid/components/gridCells/HoverBubble.js";
|
|
159
|
+
import { RowActionsCell } from "./Modules/CommonGrid/components/gridCells/RowActionsCell.js";
|
|
160
|
+
import { ToggleCell } from "./Modules/CommonGrid/components/gridCells/ToggleCell.js";
|
|
161
|
+
import store_default, { actionPrefix, actionTypes, createActions, createFullSelector, createSelectors } from "./Modules/CommonGrid/store/index.js";
|
|
162
|
+
import withReduxActions from "./Modules/CommonGrid/HoC/withReduxActions.js";
|
|
163
|
+
import useFloatingButton from "./Modules/CommonGrid/hooks/useFloatingButton.js";
|
|
164
|
+
import CommonGrid_default from "./Modules/CommonGrid/index.js";
|
|
165
165
|
import CornerDialog_default from "./Blocks/CornerDialog/index.js";
|
|
166
166
|
import Modal_default from "./Blocks/Modal/index.js";
|
|
167
167
|
import { useLightBox } from "./Blocks/LightBox/hooks/useLightBox.js";
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/ui/{Blocks → Modules}/CommonGrid/components/ActionHead/components/ActionDropdownMenu.d.ts
RENAMED
|
File without changes
|
/package/ui/{Blocks → Modules}/CommonGrid/components/ActionHead/components/ActionDropdownSelect.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/ui/{Blocks → Modules}/CommonGrid/components/ExtraControlButtons/ExtraControlButtons.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/ui/{Blocks → Modules}/CommonGrid/components/Filters/ActionsFilter/ActionsFilter.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
/package/ui/{Blocks → Modules}/CommonGrid/components/Filters/BooleanSelect/BooleanSelect.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
/package/ui/{Blocks → Modules}/CommonGrid/components/Filters/DatePickerRange/DatePickerRange.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/ui/{Blocks → Modules}/CommonGrid/components/Filters/DatePickerRange/utils/sameDate.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|