@mailstep/design-system 0.7.67 → 0.7.68-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +7 -7
- package/ui/Blocks/CommonGrid/CommonGrid.d.ts +5 -3
- package/ui/Blocks/CommonGrid/CommonGrid.js +3 -3
- package/ui/Blocks/CommonGrid/CommonGridContainer.d.ts +4 -2
- package/ui/Blocks/CommonGrid/HoC/withProps.d.ts +2 -1
- package/ui/Blocks/CommonGrid/HoC/withReduxActions.d.ts +1 -1
- package/ui/Blocks/CommonGrid/components/ActionHead/ActionHead.d.ts +3 -1
- package/ui/Blocks/CommonGrid/components/ActionHead/ActionHead.js +3 -1
- package/ui/Blocks/CommonGrid/components/ActionHead/components/ActionDropdownMenu.d.ts +3 -2
- package/ui/Blocks/CommonGrid/components/ActionHead/components/ActionDropdownSelect.d.ts +4 -3
- package/ui/Blocks/CommonGrid/components/ActionHead/components/ActionDropdownSelect.js +10 -4
- package/ui/Blocks/CommonGrid/components/ActionHead/index.d.ts +2 -1
- package/ui/Blocks/CommonGrid/components/ButtonMore/ButtonMore.d.ts +3 -2
- package/ui/Blocks/CommonGrid/components/ButtonMore/ButtonMore.js +2 -2
- package/ui/Blocks/CommonGrid/components/ButtonMore/index.d.ts +2 -1
- package/ui/Blocks/CommonGrid/components/ColumnFilterCell.d.ts +4 -2
- package/ui/Blocks/CommonGrid/components/ColumnTitle/ColumnTitle.d.ts +2 -1
- package/ui/Blocks/CommonGrid/components/ColumnTitle/index.d.ts +2 -1
- package/ui/Blocks/CommonGrid/components/ColumnTitle.d.ts +3 -2
- package/ui/Blocks/CommonGrid/components/ControlButtons/ControlButtons.d.ts +4 -3
- package/ui/Blocks/CommonGrid/components/ControlButtons/index.d.ts +2 -1
- package/ui/Blocks/CommonGrid/components/ControlButtons/styles.d.ts +4 -5
- package/ui/Blocks/CommonGrid/components/DataCell.d.ts +2 -1
- package/ui/Blocks/CommonGrid/components/DataCell.js +1 -1
- package/ui/Blocks/CommonGrid/components/DataRow.d.ts +4 -2
- package/ui/Blocks/CommonGrid/components/DropdownButton/DropdownButton.d.ts +5 -4
- package/ui/Blocks/CommonGrid/components/DropdownButton/DropdownButton.js +5 -3
- package/ui/Blocks/CommonGrid/components/DropdownButton/index.d.ts +2 -1
- package/ui/Blocks/CommonGrid/components/ExtraControlButtons/ExtraControlButtons.d.ts +4 -2
- package/ui/Blocks/CommonGrid/components/ExtraControlButtons/ExtraControlButtons.js +1 -1
- package/ui/Blocks/CommonGrid/components/ExtraControlButtons/index.d.ts +2 -1
- package/ui/Blocks/CommonGrid/components/FilterDropdown.d.ts +3 -2
- package/ui/Blocks/CommonGrid/components/FilterDropdown.js +7 -7
- package/ui/Blocks/CommonGrid/components/FilterRow.d.ts +4 -2
- package/ui/Blocks/CommonGrid/components/Filters/ActionsFilter/ActionsFilter.d.ts +3 -2
- package/ui/Blocks/CommonGrid/components/Filters/ActionsFilter/index.d.ts +2 -1
- package/ui/Blocks/CommonGrid/components/Filters/BooleanSelect/BooleanSelect.d.ts +3 -1
- package/ui/Blocks/CommonGrid/components/Filters/BooleanSelect/BooleanSelect.js +3 -15
- package/ui/Blocks/CommonGrid/components/Filters/BooleanSelect/index.d.ts +2 -1
- package/ui/Blocks/CommonGrid/components/Filters/DatePickerRange/DatePickerRange.d.ts +5 -3
- package/ui/Blocks/CommonGrid/components/Filters/DatePickerRange/index.d.ts +2 -1
- package/ui/Blocks/CommonGrid/components/Filters/DatePickerRange/utils/pickerRangeToString.d.ts +2 -1
- package/ui/Blocks/CommonGrid/components/Filters/GridSelect/GridSelect.d.ts +3 -1
- package/ui/Blocks/CommonGrid/components/Filters/GridSelect/index.d.ts +2 -1
- package/ui/Blocks/CommonGrid/components/Filters/NumberRange/NumberRange.d.ts +3 -1
- package/ui/Blocks/CommonGrid/components/Filters/NumberRange/NumberRange.js +9 -3
- package/ui/Blocks/CommonGrid/components/Filters/NumberRange/index.d.ts +2 -1
- package/ui/Blocks/CommonGrid/components/Filters/NumberRange/types.d.ts +1 -0
- package/ui/Blocks/CommonGrid/components/Filters/TextRange/TextRange.d.ts +3 -1
- package/ui/Blocks/CommonGrid/components/Filters/TextRange/TextRange.js +3 -1
- package/ui/Blocks/CommonGrid/components/Filters/TextRange/index.d.ts +2 -1
- package/ui/Blocks/CommonGrid/components/Filters/TextRange/types.d.ts +1 -0
- package/ui/Blocks/CommonGrid/components/FloatingButton/FloatingButton.d.ts +5 -3
- package/ui/Blocks/CommonGrid/components/FloatingButton/FloatingButton.js +4 -2
- package/ui/Blocks/CommonGrid/components/FloatingButton/index.d.ts +2 -1
- package/ui/Blocks/CommonGrid/components/GridInfo/index.d.ts +2 -1
- package/ui/Blocks/CommonGrid/components/GridModals/index.d.ts +4 -3
- package/ui/Blocks/CommonGrid/components/GridStatus/index.d.ts +2 -1
- package/ui/Blocks/CommonGrid/components/GroupRow.d.ts +4 -2
- package/ui/Blocks/CommonGrid/components/HeadCell.d.ts +3 -2
- package/ui/Blocks/CommonGrid/components/HeadRow.d.ts +5 -3
- package/ui/Blocks/CommonGrid/components/IconList/IconList.d.ts +8 -6
- package/ui/Blocks/CommonGrid/components/IconList/IconList.js +3 -1
- package/ui/Blocks/CommonGrid/components/IconList/index.d.ts +2 -1
- package/ui/Blocks/CommonGrid/components/ManageColumnForm/ManageColumnForm.d.ts +4 -4
- package/ui/Blocks/CommonGrid/components/ManageColumnForm/components/ManageColumnRow.d.ts +3 -3
- package/ui/Blocks/CommonGrid/components/ManageColumnForm/components/ManageColumnRow.js +5 -5
- package/ui/Blocks/CommonGrid/components/ManageColumnForm/index.d.ts +2 -1
- package/ui/Blocks/CommonGrid/components/ManageColumnForm/styles.d.ts +3 -3
- package/ui/Blocks/CommonGrid/components/ManageColumnForm/utils.d.ts +3 -1
- package/ui/Blocks/CommonGrid/components/OversizedScroll.d.ts +6 -4
- package/ui/Blocks/CommonGrid/components/OversizedScroll.js +3 -5
- package/ui/Blocks/CommonGrid/components/PresetsModalBody/components/TagRemove.d.ts +1 -1
- package/ui/Blocks/CommonGrid/components/PresetsModalBody/index.d.ts +2 -1
- package/ui/Blocks/CommonGrid/components/QuickFilter/QuickFilter.d.ts +1 -0
- package/ui/Blocks/CommonGrid/components/QuickFilter/index.d.ts +2 -1
- package/ui/Blocks/CommonGrid/components/Resize.d.ts +3 -1
- package/ui/Blocks/CommonGrid/components/Table.d.ts +36 -36
- package/ui/Blocks/CommonGrid/components/TablePagination/TablePagination.d.ts +3 -1
- package/ui/Blocks/CommonGrid/components/TablePagination/index.d.ts +2 -1
- package/ui/Blocks/CommonGrid/components/gridCells/BoolIcon.d.ts +3 -2
- package/ui/Blocks/CommonGrid/components/gridCells/BoolIcon.js +1 -1
- package/ui/Blocks/CommonGrid/components/gridCells/ButtonInCell.d.ts +3 -1
- package/ui/Blocks/CommonGrid/components/gridCells/Date.d.ts +3 -1
- package/ui/Blocks/CommonGrid/components/gridCells/Date.js +1 -1
- package/ui/Blocks/CommonGrid/components/gridCells/DateTime.d.ts +3 -1
- package/ui/Blocks/CommonGrid/components/gridCells/DateTime.js +2 -2
- package/ui/Blocks/CommonGrid/components/gridCells/EnumInCell.d.ts +4 -2
- package/ui/Blocks/CommonGrid/components/gridCells/HoverBubble.d.ts +3 -1
- package/ui/Blocks/CommonGrid/components/gridCells/IconButtonInCell.d.ts +3 -2
- package/ui/Blocks/CommonGrid/components/gridCells/IconButtonInCell.js +1 -1
- package/ui/Blocks/CommonGrid/components/gridCells/ImageCell.d.ts +3 -1
- package/ui/Blocks/CommonGrid/components/gridCells/ImageCell.js +1 -1
- package/ui/Blocks/CommonGrid/components/gridCells/LinkInCell.d.ts +1 -1
- package/ui/Blocks/CommonGrid/components/gridCells/RemoveItem.d.ts +5 -2
- package/ui/Blocks/CommonGrid/components/gridCells/RemoveItem.js +4 -5
- package/ui/Blocks/CommonGrid/components/gridCells/RowActionsCell.d.ts +3 -2
- package/ui/Blocks/CommonGrid/components/gridCells/StringJoin.d.ts +3 -1
- package/ui/Blocks/CommonGrid/components/gridCells/StringJoin.js +1 -1
- package/ui/Blocks/CommonGrid/components/gridCells/SwitchInCell.d.ts +3 -1
- package/ui/Blocks/CommonGrid/components/gridCells/ToggleCell.d.ts +3 -1
- package/ui/Blocks/CommonGrid/components/gridCells/ToggleCell.js +4 -2
- package/ui/Blocks/CommonGrid/components/icons/Edit.d.ts +3 -1
- package/ui/Blocks/CommonGrid/components/icons/EyeOpen.d.ts +3 -1
- package/ui/Blocks/CommonGrid/components/icons/Sorting.d.ts +4 -2
- package/ui/Blocks/CommonGrid/components/utils.d.ts +1 -0
- package/ui/Blocks/CommonGrid/hooks/useAddFilter.d.ts +3 -2
- package/ui/Blocks/CommonGrid/hooks/useColumnSizes.d.ts +3 -2
- package/ui/Blocks/CommonGrid/hooks/useCreatePreset.d.ts +1 -0
- package/ui/Blocks/CommonGrid/hooks/useDeletePreset.d.ts +1 -0
- package/ui/Blocks/CommonGrid/hooks/useEditReadAsColumn.d.ts +2 -1
- package/ui/Blocks/CommonGrid/hooks/useEvent.d.ts +1 -1
- package/ui/Blocks/CommonGrid/hooks/useFloatingButton.d.ts +1 -0
- package/ui/Blocks/CommonGrid/hooks/useGridActionTrigger.d.ts +2 -1
- package/ui/Blocks/CommonGrid/hooks/useGridAutoRowsPerPage.d.ts +1 -0
- package/ui/Blocks/CommonGrid/hooks/useManageColumn.d.ts +3 -3
- package/ui/Blocks/CommonGrid/hooks/usePresetFileHandlers.d.ts +1 -0
- package/ui/Blocks/CommonGrid/hooks/usePresetFileHandlers.js +6 -3
- package/ui/Blocks/CommonGrid/hooks/useQuickFilter.d.ts +3 -2
- package/ui/Blocks/CommonGrid/hooks/useRowsKeyControls.d.ts +3 -2
- package/ui/Blocks/CommonGrid/hooks/useSelectPreset.d.ts +1 -0
- package/ui/Blocks/CommonGrid/hooks/useToggleAllCheckbox.d.ts +3 -2
- package/ui/Blocks/CommonGrid/hooks/useUxReset.d.ts +2 -1
- package/ui/Blocks/CommonGrid/index.d.ts +7 -6
- package/ui/Blocks/CommonGrid/store/index.d.ts +16 -15
- package/ui/Blocks/CommonGrid/store/migrateState.d.ts +1 -0
- package/ui/Blocks/CommonGrid/storybook/components/ComplexCell.d.ts +5 -3
- package/ui/Blocks/CommonGrid/storybook/components/EnumCellExample.d.ts +4 -2
- package/ui/Blocks/CommonGrid/storybook/stories/complexWithPaginationAndRedux.stories.d.ts +1 -1
- package/ui/Blocks/CommonGrid/storybook/stories/default.stories.d.ts +1 -1
- package/ui/Blocks/CommonGrid/storybook/stories/styledCommonGrid.stories.d.ts +1 -1
- package/ui/Blocks/CommonGrid/storybook/stories/withForcedCheckboxes.stories.d.ts +2 -1
- package/ui/Blocks/CommonGrid/storybook/stories/withQuickFilter.stories.d.ts +1 -1
- package/ui/Blocks/CommonGrid/storybook/utils/columnDefinition.d.ts +2 -1
- package/ui/Blocks/CommonGrid/storybook/utils/utils.d.ts +3 -1
- package/ui/Blocks/CommonGrid/storybook/utils/utils.js +7 -3
- package/ui/Blocks/CommonGrid/storybook/utils/withRedux.d.ts +1 -1
- package/ui/Blocks/CommonGrid/storybook/utils/withRedux.js +1 -1
- package/ui/Blocks/CommonGrid/storybook/utils/withRouter.d.ts +1 -1
- package/ui/Blocks/CommonGrid/storybook/utils/withTheme.d.ts +1 -1
- package/ui/Blocks/CommonGrid/styles.d.ts +9 -10
- package/ui/Blocks/CommonGrid/types.d.ts +32 -51
- package/ui/Blocks/CommonGrid/utils/getRowsPerPage.d.ts +1 -1
- package/ui/Blocks/CommonGrid/utils/index.d.ts +5 -4
- package/ui/Blocks/CornerDialog/CornerDialog.d.ts +3 -1
- package/ui/Blocks/CornerDialog/CornerDialog.js +2 -2
- package/ui/Blocks/CornerDialog/index.d.ts +1 -0
- package/ui/Blocks/CornerDialog/stories/CornerDialog.stories.d.ts +2 -2
- package/ui/Blocks/CornerDialog/styles.d.ts +6 -6
- package/ui/Blocks/CornerDialog/types.d.ts +4 -3
- package/ui/Blocks/CornerDialog/utils.d.ts +1 -0
- package/ui/Blocks/Header/components/MenuItems/components/MenuItem/index.d.ts +3 -2
- package/ui/Blocks/Header/components/MenuItems/index.d.ts +3 -2
- package/ui/Blocks/Header/components/MenuItems/styles.d.ts +3 -3
- package/ui/Blocks/Header/components/UserMenu/components/UserInfo/index.d.ts +2 -1
- package/ui/Blocks/Header/components/UserMenu/components/UserInfo/styles.d.ts +2 -2
- package/ui/Blocks/Header/components/UserMenu/index.d.ts +3 -2
- package/ui/Blocks/Header/components/UserMenu/styles.d.ts +3 -3
- package/ui/Blocks/Header/index.d.ts +6 -5
- package/ui/Blocks/Header/stories/Header.stories.d.ts +25 -24
- package/ui/Blocks/Header/stories/Header.stories.js +3 -1
- package/ui/Blocks/Header/styles.d.ts +4 -4
- package/ui/Blocks/Header/utils/languageItems.d.ts +2 -1
- package/ui/Blocks/HidePrint/HidePrint.d.ts +3 -2
- package/ui/Blocks/ImageList/ImageList.d.ts +3 -2
- package/ui/Blocks/ImageList/ImageList.js +1 -1
- package/ui/Blocks/ImageList/components/AddPhoto/index.d.ts +3 -2
- package/ui/Blocks/ImageList/components/AddPhoto/index.js +2 -2
- package/ui/Blocks/ImageList/components/AddPhoto/styles.d.ts +4 -4
- package/ui/Blocks/ImageList/components/CloseButton/index.d.ts +2 -1
- package/ui/Blocks/ImageList/components/CloseButton/styles.d.ts +2 -2
- package/ui/Blocks/ImageList/components/ImageElement/index.d.ts +2 -1
- package/ui/Blocks/ImageList/components/ImageElement/styles.d.ts +4 -4
- package/ui/Blocks/ImageList/components/ImageTag/index.d.ts +2 -1
- package/ui/Blocks/ImageList/components/ImageTag/styles.d.ts +1 -1
- package/ui/Blocks/ImageList/hooks/useOnElementClick.d.ts +2 -1
- package/ui/Blocks/ImageList/index.d.ts +2 -1
- package/ui/Blocks/ImageList/stories/ImageList.stories.d.ts +2 -2
- package/ui/Blocks/ImageList/styles.d.ts +4 -4
- package/ui/Blocks/ImageList/types.d.ts +2 -1
- package/ui/Blocks/LanguageSwitch/LanguageSwitch.d.ts +3 -2
- package/ui/Blocks/LanguageSwitch/index.d.ts +2 -1
- package/ui/Blocks/LanguageSwitch/stories/LanguageSwith.stories.d.ts +2 -2
- package/ui/Blocks/LanguageSwitch/styles.d.ts +7 -7
- package/ui/Blocks/LanguageSwitch/types.d.ts +1 -0
- package/ui/Blocks/LightBox/LightBox.d.ts +3 -2
- package/ui/Blocks/LightBox/hooks/useLightBox.d.ts +2 -1
- package/ui/Blocks/LightBox/index.d.ts +1 -0
- package/ui/Blocks/LightBox/stories/LightBox.stories.d.ts +2 -2
- package/ui/Blocks/LightBox/styles.d.ts +4 -4
- package/ui/Blocks/LoginPage/LoginPage.d.ts +3 -2
- package/ui/Blocks/LoginPage/components/LoginForm.d.ts +1 -0
- package/ui/Blocks/LoginPage/components/SocialLinks.d.ts +5 -4
- package/ui/Blocks/LoginPage/index.d.ts +2 -1
- package/ui/Blocks/LoginPage/stories/LoginPage.stories.js +2 -2
- package/ui/Blocks/LoginPage/styles.d.ts +10 -9
- package/ui/Blocks/LoginPage/types.d.ts +5 -4
- package/ui/Blocks/Modal/Modal.d.ts +3 -2
- package/ui/Blocks/Modal/hooks/useClickOutside.d.ts +2 -1
- package/ui/Blocks/Modal/hooks/useModal.d.ts +1 -0
- package/ui/Blocks/Modal/index.d.ts +1 -0
- package/ui/Blocks/Modal/stories/Modal.stories.d.ts +2 -2
- package/ui/Blocks/Modal/styles.d.ts +16 -15
- package/ui/Blocks/Modal/types.d.ts +8 -7
- package/ui/Blocks/Modal/utils.d.ts +1 -0
- package/ui/Blocks/Popover/index.d.ts +4 -3
- package/ui/Blocks/Popover/index.js +2 -2
- package/ui/Blocks/Scheduler/Scheduler.d.ts +3 -2
- package/ui/Blocks/Scheduler/components/BookedTimeSlots/index.d.ts +3 -2
- package/ui/Blocks/Scheduler/components/BookedTimeSlots/styles.d.ts +3 -3
- package/ui/Blocks/Scheduler/components/CurrentTimeMarker/index.d.ts +2 -1
- package/ui/Blocks/Scheduler/components/CurrentTimeMarker/styles.d.ts +3 -3
- package/ui/Blocks/Scheduler/components/DateChanger/index.d.ts +3 -2
- package/ui/Blocks/Scheduler/components/DateChanger/styles.d.ts +2 -2
- package/ui/Blocks/Scheduler/components/Groups/index.d.ts +3 -2
- package/ui/Blocks/Scheduler/components/Groups/styles.d.ts +4 -4
- package/ui/Blocks/Scheduler/components/TimeSlots/hooks/useRangeSelection.d.ts +2 -1
- package/ui/Blocks/Scheduler/components/TimeSlots/hooks/useScroll.d.ts +1 -0
- package/ui/Blocks/Scheduler/components/TimeSlots/index.d.ts +3 -2
- package/ui/Blocks/Scheduler/components/TimeSlots/styles.d.ts +5 -5
- package/ui/Blocks/Scheduler/hooks/useChangeDate.d.ts +3 -2
- package/ui/Blocks/Scheduler/stories/Scheduler.stories.d.ts +2 -1
- package/ui/Blocks/Scheduler/styles.d.ts +2 -2
- package/ui/Blocks/Scheduler/types.d.ts +3 -2
- package/ui/Blocks/Scheduler/utils/isActiveTime.d.ts +1 -0
- package/ui/Blocks/SideMenu/MenuItem.d.ts +4 -3
- package/ui/Blocks/SideMenu/SideMenu.d.ts +3 -1
- package/ui/Blocks/SideMenu/components/Footer.d.ts +6 -4
- package/ui/Blocks/SideMenu/components/Footer.js +3 -3
- package/ui/Blocks/SideMenu/components/SubitemTooltip.d.ts +3 -2
- package/ui/Blocks/SideMenu/context/LeftMenuContext.d.ts +2 -1
- package/ui/Blocks/SideMenu/hooks/useOutsideHover.d.ts +1 -0
- package/ui/Blocks/SideMenu/index.d.ts +2 -1
- package/ui/Blocks/SideMenu/stories/SideMenu.stories.d.ts +1 -2
- package/ui/Blocks/SideMenu/styles.d.ts +38 -38
- package/ui/Blocks/SideMenu/types.d.ts +2 -1
- package/ui/Blocks/Stepper/Stepper.d.ts +3 -2
- package/ui/Blocks/Stepper/components/StepCircle/index.d.ts +2 -1
- package/ui/Blocks/Stepper/components/StepCircle/styles.d.ts +3 -3
- package/ui/Blocks/Stepper/components/StepItem/index.d.ts +2 -1
- package/ui/Blocks/Stepper/components/StepItem/styles.d.ts +6 -6
- package/ui/Blocks/Stepper/stories/Stepper.stories.d.ts +2 -1
- package/ui/Blocks/Stepper/styles.d.ts +2 -2
- package/ui/Blocks/Stepper/types.d.ts +2 -1
- package/ui/Blocks/Table/Table.d.ts +1 -0
- package/ui/Blocks/Table/stories/Table.stories.d.ts +4 -5
- package/ui/Blocks/Tabs/TabContent.d.ts +4 -3
- package/ui/Blocks/Tabs/TabContent.js +43 -3
- package/ui/Blocks/Tabs/Tabs.d.ts +4 -2
- package/ui/Blocks/Tabs/hooks/useTabs.d.ts +1 -0
- package/ui/Blocks/Tabs/index.d.ts +1 -0
- package/ui/Blocks/Tabs/stories/Tabs.stories.d.ts +2 -2
- package/ui/Blocks/Tabs/styles.d.ts +9 -10
- package/ui/Blocks/Tabs/types.d.ts +3 -2
- package/ui/Elements/Alert/Alert.d.ts +1 -0
- package/ui/Elements/Alert/index.d.ts +2 -1
- package/ui/Elements/Alert/stories/Alert.stories.d.ts +3 -2
- package/ui/Elements/Alert/styles.d.ts +28 -39
- package/ui/Elements/Alert/styles.js +2 -3
- package/ui/Elements/Alert/types.d.ts +4 -5
- package/ui/Elements/AsyncSelect/AsyncSelect.d.ts +5 -4
- package/ui/Elements/AsyncSelect/index.d.ts +2 -1
- package/ui/Elements/AsyncSelect/stories/AsyncSelect.stories.d.ts +1 -2
- package/ui/Elements/AsyncSelect/stories/AsyncSelect.stories.js +2 -2
- package/ui/Elements/Avatar/Avatar.d.ts +3 -1
- package/ui/Elements/Avatar/Avatar.js +1 -2
- package/ui/Elements/Avatar/index.d.ts +1 -0
- package/ui/Elements/Avatar/stories/Avatar.stories.d.ts +3 -3
- package/ui/Elements/Badge/Badge.d.ts +4 -3
- package/ui/Elements/Badge/Badge.js +1 -2
- package/ui/Elements/Badge/index.d.ts +2 -1
- package/ui/Elements/Badge/stories/Badge.stories.d.ts +3 -3
- package/ui/Elements/BarChartSymbol/BarChartSymbol.d.ts +1 -0
- package/ui/Elements/BarChartSymbol/stories/BarChartSymbol.stories.d.ts +3 -3
- package/ui/Elements/BarChartSymbol/styles.d.ts +3 -3
- package/ui/Elements/BorderedBox/BorderedBox.d.ts +3 -1
- package/ui/Elements/BorderedBox/index.d.ts +2 -1
- package/ui/Elements/BorderedBox/stories/BorderedBox.stories.d.ts +3 -3
- package/ui/Elements/BorderedBox/types.d.ts +0 -1
- package/ui/Elements/Button/Button.d.ts +4 -2
- package/ui/Elements/Button/index.d.ts +2 -1
- package/ui/Elements/Button/stories/Button.stories.d.ts +3 -3
- package/ui/Elements/Button/styles.d.ts +9 -10
- package/ui/Elements/Button/types.d.ts +6 -5
- package/ui/Elements/Card/Card.d.ts +1 -0
- package/ui/Elements/Card/index.d.ts +2 -1
- package/ui/Elements/Card/stories/Card.stories.d.ts +3 -3
- package/ui/Elements/Card/styles.d.ts +4 -3
- package/ui/Elements/Card/types.d.ts +0 -1
- package/ui/Elements/CheckedCircle/index.d.ts +2 -1
- package/ui/Elements/CheckedCircle/storries/CheckedCircle.stories.d.ts +5 -5
- package/ui/Elements/CheckedCircle/styles.d.ts +1 -1
- package/ui/Elements/DatePicker/DatePicker.d.ts +5 -4
- package/ui/Elements/DatePicker/Datetime/DateTime.d.ts +5 -4
- package/ui/Elements/DatePicker/Datetime/components/DateRepeater.d.ts +3 -2
- package/ui/Elements/DatePicker/Datetime/components/FooterRow.d.ts +2 -2
- package/ui/Elements/DatePicker/Datetime/components/FooterRowLabel.d.ts +1 -1
- package/ui/Elements/DatePicker/Datetime/components/TimeInput.d.ts +1 -1
- package/ui/Elements/DatePicker/Datetime/components/Timepicker.d.ts +2 -1
- package/ui/Elements/DatePicker/Datetime/types.d.ts +8 -7
- package/ui/Elements/DatePicker/Datetime/views/DaysView.d.ts +2 -1
- package/ui/Elements/DatePicker/Datetime/views/MonthsView.d.ts +2 -1
- package/ui/Elements/DatePicker/Datetime/views/YearsView.d.ts +2 -1
- package/ui/Elements/DatePicker/index.d.ts +2 -1
- package/ui/Elements/DatePicker/styles.d.ts +1 -2
- package/ui/Elements/DatePicker/utils/constants.d.ts +1 -0
- package/ui/Elements/Dropdown/Dropdown.d.ts +3 -1
- package/ui/Elements/Dropdown/Dropdown.js +3 -5
- package/ui/Elements/Dropdown/index.d.ts +2 -1
- package/ui/Elements/Dropdown/stories/Dropdown.stories.d.ts +3 -3
- package/ui/Elements/Dropdown/types.d.ts +1 -0
- package/ui/Elements/DropdownMenu/DropdownMenu.d.ts +3 -1
- package/ui/Elements/DropdownMenu/DropdownMenu.js +3 -3
- package/ui/Elements/DropdownMenu/components/DefaultItem.d.ts +3 -1
- package/ui/Elements/DropdownMenu/components/MenuItem.d.ts +3 -1
- package/ui/Elements/DropdownMenu/components/MenuItem.js +1 -1
- package/ui/Elements/DropdownMenu/components/MenuList.d.ts +3 -1
- package/ui/Elements/DropdownMenu/components/MenuList.js +3 -4
- package/ui/Elements/DropdownMenu/types.d.ts +6 -5
- package/ui/Elements/DropdownSelect/DropdownSelect.d.ts +7 -6
- package/ui/Elements/DropdownSelect/DropdownSelect.js +11 -7
- package/ui/Elements/DropdownSelect/index.d.ts +2 -1
- package/ui/Elements/ErrorMessage/ErrorMessage.d.ts +3 -1
- package/ui/Elements/ErrorMessage/ErrorMessage.js +1 -2
- package/ui/Elements/ErrorMessage/index.d.ts +2 -1
- package/ui/Elements/ErrorMessage/stories/ErrorMessage.stories.d.ts +3 -3
- package/ui/Elements/ErrorMessage/types.d.ts +1 -0
- package/ui/Elements/HighlightBox/HighlightBox.d.ts +3 -2
- package/ui/Elements/HighlightBox/HighlightBox.js +4 -4
- package/ui/Elements/HighlightBox/index.d.ts +2 -1
- package/ui/Elements/Icon/BadgeIcon.d.ts +3 -1
- package/ui/Elements/Icon/BadgeIcon.js +2 -5
- package/ui/Elements/Icon/Icon.d.ts +4 -4
- package/ui/Elements/Icon/Icon.js +15 -16
- package/ui/Elements/Icon/icons/Add.d.ts +2 -1
- package/ui/Elements/Icon/icons/AddPhoto.d.ts +1 -0
- package/ui/Elements/Icon/icons/Admin.d.ts +1 -0
- package/ui/Elements/Icon/icons/ArrowDown.d.ts +2 -1
- package/ui/Elements/Icon/icons/ArrowForward.d.ts +2 -1
- package/ui/Elements/Icon/icons/ArrowUp.d.ts +2 -1
- package/ui/Elements/Icon/icons/BarcodeScan.d.ts +1 -0
- package/ui/Elements/Icon/icons/Box.d.ts +1 -0
- package/ui/Elements/Icon/icons/Calendar.d.ts +1 -0
- package/ui/Elements/Icon/icons/Cancel.d.ts +1 -0
- package/ui/Elements/Icon/icons/CheckedBox.d.ts +2 -1
- package/ui/Elements/Icon/icons/Company.d.ts +1 -0
- package/ui/Elements/Icon/icons/Complaint.d.ts +2 -1
- package/ui/Elements/Icon/icons/Consolidation.d.ts +2 -1
- package/ui/Elements/Icon/icons/Container.d.ts +2 -1
- package/ui/Elements/Icon/icons/Dashboard.d.ts +2 -1
- package/ui/Elements/Icon/icons/Desktop.d.ts +2 -1
- package/ui/Elements/Icon/icons/Dispatch.d.ts +2 -1
- package/ui/Elements/Icon/icons/EmptyRack.d.ts +1 -0
- package/ui/Elements/Icon/icons/Expeditions.d.ts +2 -1
- package/ui/Elements/Icon/icons/FlagCZ.d.ts +2 -1
- package/ui/Elements/Icon/icons/FlagEL.d.ts +2 -1
- package/ui/Elements/Icon/icons/FlagESP.d.ts +2 -1
- package/ui/Elements/Icon/icons/FlagHU.d.ts +3 -2
- package/ui/Elements/Icon/icons/FlagITA.d.ts +2 -1
- package/ui/Elements/Icon/icons/FlagNL.d.ts +3 -2
- package/ui/Elements/Icon/icons/FlagRUS.d.ts +2 -1
- package/ui/Elements/Icon/icons/FlagSVK.d.ts +2 -1
- package/ui/Elements/Icon/icons/FlagUK.d.ts +2 -1
- package/ui/Elements/Icon/icons/FlagUSA.d.ts +2 -1
- package/ui/Elements/Icon/icons/Foldable.d.ts +3 -2
- package/ui/Elements/Icon/icons/Fragile.d.ts +2 -1
- package/ui/Elements/Icon/icons/Gift.d.ts +2 -1
- package/ui/Elements/Icon/icons/Group.d.ts +1 -0
- package/ui/Elements/Icon/icons/HamburgerMenu.d.ts +2 -1
- package/ui/Elements/Icon/icons/HelpCircle1.d.ts +2 -1
- package/ui/Elements/Icon/icons/HorizontalLines.d.ts +1 -0
- package/ui/Elements/Icon/icons/ImagePlaceholder.d.ts +1 -0
- package/ui/Elements/Icon/icons/Income.d.ts +2 -1
- package/ui/Elements/Icon/icons/Info.d.ts +2 -1
- package/ui/Elements/Icon/icons/Integrations.d.ts +1 -0
- package/ui/Elements/Icon/icons/Inventory.d.ts +2 -1
- package/ui/Elements/Icon/icons/Inventory2.d.ts +2 -1
- package/ui/Elements/Icon/icons/Layout.d.ts +3 -2
- package/ui/Elements/Icon/icons/Link.d.ts +1 -0
- package/ui/Elements/Icon/icons/Liquid.d.ts +3 -2
- package/ui/Elements/Icon/icons/Location.d.ts +2 -1
- package/ui/Elements/Icon/icons/Logout1.d.ts +2 -1
- package/ui/Elements/Icon/icons/MachinePackingForbidden.d.ts +3 -2
- package/ui/Elements/Icon/icons/MakePhoto.d.ts +2 -1
- package/ui/Elements/Icon/icons/MenuItems.d.ts +2 -1
- package/ui/Elements/Icon/icons/Message.d.ts +2 -1
- package/ui/Elements/Icon/icons/MobileCancel.d.ts +2 -1
- package/ui/Elements/Icon/icons/MobilePhone.d.ts +3 -2
- package/ui/Elements/Icon/icons/Notification2.d.ts +2 -1
- package/ui/Elements/Icon/icons/OpenBox.d.ts +1 -0
- package/ui/Elements/Icon/icons/Pallet.d.ts +2 -1
- package/ui/Elements/Icon/icons/Plus1.d.ts +2 -1
- package/ui/Elements/Icon/icons/Print.d.ts +2 -1
- package/ui/Elements/Icon/icons/Product.d.ts +1 -0
- package/ui/Elements/Icon/icons/Products.d.ts +2 -1
- package/ui/Elements/Icon/icons/Profile.d.ts +2 -1
- package/ui/Elements/Icon/icons/Puzzle1.d.ts +2 -1
- package/ui/Elements/Icon/icons/QRCode.d.ts +2 -1
- package/ui/Elements/Icon/icons/Rack.d.ts +1 -0
- package/ui/Elements/Icon/icons/Return.d.ts +2 -1
- package/ui/Elements/Icon/icons/Rows.d.ts +1 -0
- package/ui/Elements/Icon/icons/Settings2.d.ts +2 -1
- package/ui/Elements/Icon/icons/ShoppingBag.d.ts +2 -1
- package/ui/Elements/Icon/icons/ThreeDots.d.ts +1 -0
- package/ui/Elements/Icon/icons/ToastError.d.ts +1 -0
- package/ui/Elements/Icon/icons/ToastSuccess.d.ts +1 -0
- package/ui/Elements/Icon/icons/Transfer.d.ts +2 -1
- package/ui/Elements/Icon/icons/TrashBin.d.ts +1 -0
- package/ui/Elements/Icon/icons/Truck.d.ts +2 -1
- package/ui/Elements/Icon/icons/TwoBoxes.d.ts +2 -1
- package/ui/Elements/Icon/icons/TwoCheckedBoxes.d.ts +2 -1
- package/ui/Elements/Icon/icons/TwoUsers.d.ts +2 -1
- package/ui/Elements/Icon/icons/Valuable.d.ts +3 -2
- package/ui/Elements/Icon/index.d.ts +2 -1
- package/ui/Elements/Icon/stories/BadgeIcon.stories.d.ts +6 -6
- package/ui/Elements/Icon/stories/Icon.stories.d.ts +3 -3
- package/ui/Elements/Icon/types.d.ts +1 -3
- package/ui/Elements/Image/Image.d.ts +3 -1
- package/ui/Elements/Image/Image.js +13 -1
- package/ui/Elements/Image/index.d.ts +2 -1
- package/ui/Elements/Image/stories/Image.stories.d.ts +3 -3
- package/ui/Elements/Image/types.d.ts +6 -7
- package/ui/Elements/Label/Label.d.ts +3 -3
- package/ui/Elements/Label/index.d.ts +1 -0
- package/ui/Elements/Label/stories/Label.stories.d.ts +4 -3
- package/ui/Elements/Line/Line.d.ts +1 -0
- package/ui/Elements/Line/index.d.ts +2 -1
- package/ui/Elements/Line/stories/Line.stories.d.ts +3 -2
- package/ui/Elements/Line/types.d.ts +3 -4
- package/ui/Elements/Link/Link.d.ts +4 -13
- package/ui/Elements/Link/Link.js +3 -11
- package/ui/Elements/Link/index.d.ts +2 -1
- package/ui/Elements/Link/stories/Link.stories.d.ts +17 -27
- package/ui/Elements/Logo/Logo.d.ts +4 -2
- package/ui/Elements/Logo/Logo.js +3 -3
- package/ui/Elements/Logo/index.d.ts +2 -1
- package/ui/Elements/Logo/stories/Logo.stories.d.ts +3 -3
- package/ui/Elements/MultiSelect/MultiSelect.d.ts +3 -1
- package/ui/Elements/MultiSelect/index.d.ts +2 -1
- package/ui/Elements/Pagination/Pagination.d.ts +3 -1
- package/ui/Elements/Pagination/index.d.ts +2 -1
- package/ui/Elements/Pagination/stories/Pagination.stories.d.ts +3 -2
- package/ui/Elements/Pagination/styled.d.ts +6 -7
- package/ui/Elements/Portal/index.d.ts +5 -4
- package/ui/Elements/ProgressBar/ProgressBar.d.ts +3 -1
- package/ui/Elements/ProgressBar/index.d.ts +2 -1
- package/ui/Elements/ProgressBar/stories/ProgressBar.stories.d.ts +9 -8
- package/ui/Elements/ProgressBar/styles.d.ts +4 -4
- package/ui/Elements/Select/Select.d.ts +3 -1
- package/ui/Elements/Select/Select.js +48 -7
- package/ui/Elements/Select/components/SelectAll.d.ts +1 -0
- package/ui/Elements/Select/components/SelectedIndicator.d.ts +1 -1
- package/ui/Elements/Select/components/SimplifiedOption.d.ts +1 -2
- package/ui/Elements/Select/index.d.ts +2 -1
- package/ui/Elements/Select/styles.d.ts +6 -5
- package/ui/Elements/Select/themes/index.d.ts +4 -3
- package/ui/Elements/Select/themes/selectStyles.d.ts +2 -1
- package/ui/Elements/Select/types.d.ts +4 -3
- package/ui/Elements/SimpleLink/SimpleLink.d.ts +3 -2
- package/ui/Elements/SimpleLink/index.d.ts +2 -1
- package/ui/Elements/SingleSelect/SingleSelect.d.ts +5 -5
- package/ui/Elements/SingleSelect/SingleSelect.js +30 -22
- package/ui/Elements/SingleSelect/index.d.ts +2 -1
- package/ui/Elements/SpaceAround/SpaceAround.d.ts +3 -1
- package/ui/Elements/SpaceAround/SpaceAround.js +1 -2
- package/ui/Elements/SpaceAround/index.d.ts +2 -1
- package/ui/Elements/SpaceAround/stories/SpaceAround.stories.d.ts +3 -3
- package/ui/Elements/SpaceAround/types.d.ts +0 -1
- package/ui/Elements/Spinner/Spinner.d.ts +4 -2
- package/ui/Elements/Spinner/Spinner.js +2 -2
- package/ui/Elements/Spinner/index.d.ts +2 -1
- package/ui/Elements/Spinner/stories/Spinner.stories.d.ts +3 -2
- package/ui/Elements/Spinner/styles.d.ts +3 -3
- package/ui/Elements/Spinner/types.d.ts +4 -5
- package/ui/Elements/Table/Table.d.ts +6 -6
- package/ui/Elements/Table/stories/Table.stories.d.ts +1 -1
- package/ui/Elements/Tag/Tag.d.ts +3 -2
- package/ui/Elements/Tag/index.d.ts +2 -1
- package/ui/Elements/Tag/palletes.d.ts +2 -1
- package/ui/Elements/Tag/stories/Tag.stories.d.ts +4 -3
- package/ui/Elements/Tag/stories/Tag.stories.js +22 -22
- package/ui/Elements/Tag/stories/components/predefinedTags.d.ts +3 -1
- package/ui/Elements/Tag/stories/components/predefinedTags.js +2 -2
- package/ui/Elements/Tag/types.d.ts +0 -1
- package/ui/Elements/Text/Text.d.ts +4 -2
- package/ui/Elements/Text/index.d.ts +2 -1
- package/ui/Elements/Text/stories/Text.stories.d.ts +3 -3
- package/ui/Elements/Text/types.d.ts +1 -0
- package/ui/Elements/Toast/Toast.d.ts +3 -1
- package/ui/Elements/Toast/Toast.js +4 -2
- package/ui/Elements/Toast/constants.d.ts +2 -1
- package/ui/Elements/Toast/index.d.ts +2 -1
- package/ui/Elements/Toast/stories/Toast.stories.d.ts +3 -3
- package/ui/Elements/Toast/styles.d.ts +6 -6
- package/ui/Elements/Toggle/Toggle.d.ts +4 -2
- package/ui/Elements/Toggle/index.d.ts +2 -1
- package/ui/Elements/Toggle/stories/Toggle.stories.d.ts +3 -3
- package/ui/Elements/Toggle/types.d.ts +1 -0
- package/ui/Elements/Tooltip/Tooltip.d.ts +5 -4
- package/ui/Elements/Tooltip/Tooltip.js +8 -4
- package/ui/Elements/Tooltip/index.d.ts +2 -1
- package/ui/Elements/Tooltip/stories/Tooltip.stories.d.ts +3 -3
- package/ui/Elements/Typography/Typography.d.ts +15 -13
- package/ui/Elements/Typography/index.d.ts +1 -0
- package/ui/Elements/Typography/stories/Typography.stories.d.ts +2 -1
- package/ui/Forms/Checkbox/Checkbox.d.ts +4 -3
- package/ui/Forms/Checkbox/index.d.ts +2 -1
- package/ui/Forms/Checkbox/stories/Checkbox.stories.d.ts +2 -2
- package/ui/Forms/Checkbox/styles.d.ts +4 -5
- package/ui/Forms/Checkbox/types.d.ts +3 -2
- package/ui/Forms/Input/Input.d.ts +4 -2
- package/ui/Forms/Input/Input.js +3 -3
- package/ui/Forms/Input/index.d.ts +1 -0
- package/ui/Forms/Input/stories/Input.stories.d.ts +3 -2
- package/ui/Forms/Input/styles.d.ts +12 -12
- package/ui/Forms/Input/types.d.ts +3 -5
- package/ui/Forms/RadioButton/RadioButton.d.ts +3 -1
- package/ui/Forms/RadioButton/RadioButton.js +1 -1
- package/ui/Forms/RadioButton/index.d.ts +2 -1
- package/ui/Forms/RadioButton/stories/RadioButton.stories.d.ts +3 -3
- package/ui/Forms/RadioButton/styles.d.ts +6 -6
- package/ui/Forms/RadioButton/types.d.ts +1 -0
- package/ui/Forms/TextArea/TextArea.d.ts +4 -3
- package/ui/Forms/TextArea/TextArea.js +3 -3
- package/ui/Forms/TextArea/index.d.ts +2 -1
- package/ui/Forms/TextArea/styles.d.ts +10 -10
- package/ui/ThemeProvider/ThemeProvider.d.ts +2 -2
- package/ui/ThemeProvider/index.d.ts +3 -2
- package/ui/ThemeProvider/themes/default.js +1 -1
- package/ui/ThemeProvider/themes/index.d.ts +1 -1
- package/ui/ThemeProvider/themes/light.d.ts +2 -1
- package/ui/ThemeProvider/themes/mailwise.js +1 -1
- package/ui/ThemeProvider/types.d.ts +2 -1
- package/ui/index.d.ts +49 -48
- package/ui/index.es.js +19154 -19769
- package/ui/index.umd.js +648 -864
- package/ui/utils/CreateRgba/createRgba.d.ts +1 -0
- package/ui/utils/KeyPress/KeyPress.d.ts +1 -0
- package/ui/utils/KeyPress/KeyPress.stories.d.ts +2 -1
- package/ui/utils/KeyPress/index.d.ts +2 -1
- package/ui/utils/index.d.ts +5 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mailstep/design-system",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.68-beta.1",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./ui/index.js",
|
|
@@ -55,9 +55,9 @@
|
|
|
55
55
|
"@types/lodash": "^4.17.13",
|
|
56
56
|
"@types/luxon": "^3.4.2",
|
|
57
57
|
"@types/node": "^20.1.7",
|
|
58
|
-
"@types/react": "^
|
|
58
|
+
"@types/react": "^19.2.2",
|
|
59
59
|
"@types/react-beautiful-dnd": "^13.1.2",
|
|
60
|
-
"@types/react-dom": "^
|
|
60
|
+
"@types/react-dom": "^19.2.2",
|
|
61
61
|
"@types/react-helmet": "^6.1.11",
|
|
62
62
|
"@types/react-router": "^5.1.20",
|
|
63
63
|
"@types/react-router-dom": "^5.3.3",
|
|
@@ -86,8 +86,8 @@
|
|
|
86
86
|
"luxon": "^3.4.4",
|
|
87
87
|
"moment": "^2.30.1",
|
|
88
88
|
"prettier": "2.8.8",
|
|
89
|
-
"react": "^
|
|
90
|
-
"react-dom": "^
|
|
89
|
+
"react": "^19.2.0",
|
|
90
|
+
"react-dom": "^19.2.0",
|
|
91
91
|
"react-helmet": "^6.1.0",
|
|
92
92
|
"react-image": "^4.1.0",
|
|
93
93
|
"react-onclickoutside": "^6.13.0",
|
|
@@ -131,8 +131,8 @@
|
|
|
131
131
|
"lodash": "^4.17.21",
|
|
132
132
|
"luxon": "^3.4.4",
|
|
133
133
|
"moment": "^2.30.1",
|
|
134
|
-
"react": "^
|
|
135
|
-
"react-dom": "^
|
|
134
|
+
"react": "^19.2.0",
|
|
135
|
+
"react-dom": "^19.2.0",
|
|
136
136
|
"react-helmet": "^6.1.0",
|
|
137
137
|
"react-image": "^4.1.0",
|
|
138
138
|
"react-onclickoutside": "^6.13.0",
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { DragEndEvent } from '@dnd-kit/core';
|
|
3
|
+
import { CommonGridProps, FiltersConfig, ColumnDefinition } from './types';
|
|
4
|
+
|
|
3
5
|
type Props = CommonGridProps & {
|
|
4
6
|
filters?: FiltersConfig;
|
|
5
7
|
handleDragEnd: (item: DragEndEvent) => void;
|
|
@@ -7,5 +9,5 @@ type Props = CommonGridProps & {
|
|
|
7
9
|
hasGroups: boolean;
|
|
8
10
|
hasFilters: boolean;
|
|
9
11
|
};
|
|
10
|
-
declare const CommonGrid:
|
|
12
|
+
declare const CommonGrid: FC<Props>;
|
|
11
13
|
export default CommonGrid;
|
|
@@ -10,7 +10,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
13
|
-
import
|
|
13
|
+
import { useCallback, useMemo } from 'react';
|
|
14
14
|
import DataRow from './components/DataRow';
|
|
15
15
|
import FilterRow from './components/FilterRow';
|
|
16
16
|
import FloatingButton from './components/FloatingButton/FloatingButton';
|
|
@@ -45,10 +45,10 @@ var CommonGrid = function (_a) {
|
|
|
45
45
|
var handleRowsKeyDown = useRowsKeyControls(rowsData, uxState, handleUxChange);
|
|
46
46
|
useUxReset(rowsData, uxState, clearUxState);
|
|
47
47
|
var _k = useColumnSizes(displayColumnsDefinitions, columnsWidth, columnsWidthVariant, setColumnWidth, columnLayout, minColumnWidth), displayColumnsWidth = _k.displayColumnsWidth, totalColumnsWidth = _k.totalColumnsWidth, gridBoxRef = _k.gridBoxRef, handleResizeDrag = _k.handleResizeDrag;
|
|
48
|
-
var groups =
|
|
48
|
+
var groups = useMemo(function () {
|
|
49
49
|
return getGroups(displayColumnsDefinitions);
|
|
50
50
|
}, [displayColumnsDefinitions]);
|
|
51
|
-
var commonGridRef =
|
|
51
|
+
var commonGridRef = useCallback(function (node) {
|
|
52
52
|
gridBoxRef.current = node;
|
|
53
53
|
}, []);
|
|
54
54
|
var isEmpty = !isLoading && !errorMessage && (!rowsData || rowsData.length < 1);
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { GridProps } from './types';
|
|
3
|
+
|
|
4
|
+
declare const CommonGridContainer: FC<GridProps>;
|
|
3
5
|
export default CommonGridContainer;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const withReduxActions: (gridName: string, prefix?: string) => import(
|
|
1
|
+
declare const withReduxActions: (gridName: string, prefix?: string) => import('react-redux').InferableComponentEnhancerWithProps<{}, {}>;
|
|
2
2
|
export default withReduxActions;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
1
2
|
import { GridActionsType, GridSelectorsType, OnBatchActionFn, RowProps, ActionColumn } from '../../types';
|
|
3
|
+
|
|
2
4
|
type Props = {
|
|
3
5
|
gridActions: GridActionsType;
|
|
4
6
|
gridSelectors: GridSelectorsType;
|
|
@@ -8,5 +10,5 @@ type Props = {
|
|
|
8
10
|
processCheckedValues?: () => void;
|
|
9
11
|
processCheckedValuesTitle?: string;
|
|
10
12
|
};
|
|
11
|
-
declare const ActionHead:
|
|
13
|
+
declare const ActionHead: FC<Props>;
|
|
12
14
|
export default ActionHead;
|
|
@@ -32,7 +32,9 @@ var ActionHead = function (_a) {
|
|
|
32
32
|
if (actionOptions === null || actionOptions === void 0 ? void 0 : actionOptions.length) {
|
|
33
33
|
return actionOptions.map(function (option) { return ({
|
|
34
34
|
title: option.label,
|
|
35
|
-
onClick: function () {
|
|
35
|
+
onClick: function () {
|
|
36
|
+
onSubmit(option.value);
|
|
37
|
+
},
|
|
36
38
|
link: '#'
|
|
37
39
|
}); });
|
|
38
40
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import { default as React, ReactNode } from 'react';
|
|
2
|
+
|
|
2
3
|
type Item = {
|
|
3
|
-
label: string |
|
|
4
|
+
label: string | ReactNode;
|
|
4
5
|
value: string;
|
|
5
6
|
};
|
|
6
7
|
type DropdownSelectProps = {
|
|
@@ -8,5 +9,5 @@ type DropdownSelectProps = {
|
|
|
8
9
|
onSelect: (value: Item['value']) => void;
|
|
9
10
|
disabled?: boolean;
|
|
10
11
|
};
|
|
11
|
-
declare const _default: React.
|
|
12
|
+
declare const _default: React.NamedExoticComponent<DropdownSelectProps>;
|
|
12
13
|
export default _default;
|
|
@@ -4,12 +4,12 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
|
|
|
4
4
|
};
|
|
5
5
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
6
6
|
import React, { memo, useRef } from 'react';
|
|
7
|
+
import Icon from '../../../../../Elements/Icon/Icon';
|
|
8
|
+
import Popover from '../../../../Popover';
|
|
9
|
+
import { Trans } from '@lingui/react';
|
|
7
10
|
import styled from '@xstyled/styled-components';
|
|
8
11
|
import { th } from '@xstyled/system';
|
|
9
|
-
import { Trans } from '@lingui/react';
|
|
10
12
|
import ActionDropdownMenu from './ActionDropdownMenu';
|
|
11
|
-
import Popover from '../../../../Popover';
|
|
12
|
-
import Icon from '../../../../../Elements/Icon/Icon';
|
|
13
13
|
var Content = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: relative;\n display: flex;\n align-items: center;\n padding: 1 2;\n min-width: 9rem;\n height: 28px;\n background-color: ", ";\n color: ", ";\n border: slim;\n border-color: ", ";\n font-size: 12px;\n font-weight: 600;\n border-radius: 6px;\n cursor: ", ";\n transition: 0.2s;\n &:not(:disabled):hover {\n color: ", ";\n border-color: ", ";\n }\n p {\n margin: 0;\n margin-right: auto;\n padding-right: 36px;\n }\n"], ["\n position: relative;\n display: flex;\n align-items: center;\n padding: 1 2;\n min-width: 9rem;\n height: 28px;\n background-color: ", ";\n color: ", ";\n border: slim;\n border-color: ", ";\n font-size: 12px;\n font-weight: 600;\n border-radius: 6px;\n cursor: ", ";\n transition: 0.2s;\n &:not(:disabled):hover {\n color: ", ";\n border-color: ", ";\n }\n p {\n margin: 0;\n margin-right: auto;\n padding-right: 36px;\n }\n"])), th.color('white'), function (_a) {
|
|
14
14
|
var $isDisabled = _a.$isDisabled;
|
|
15
15
|
return ($isDisabled ? th.color('lightGray7') : th.color('lightGray5'));
|
|
@@ -37,7 +37,13 @@ var ActionDropdownSelect = function (_a) {
|
|
|
37
37
|
setShowDropdownMenu(false);
|
|
38
38
|
onSelect(item.value);
|
|
39
39
|
}, [onSelect]);
|
|
40
|
-
var items = options.map(function (item) { return ({
|
|
40
|
+
var items = options.map(function (item) { return ({
|
|
41
|
+
title: item.label,
|
|
42
|
+
onClick: function () {
|
|
43
|
+
handleSelectItem(item);
|
|
44
|
+
},
|
|
45
|
+
link: '#'
|
|
46
|
+
}); });
|
|
41
47
|
var ref = useRef(null);
|
|
42
48
|
return (_jsxs(_Fragment, { children: [_jsxs(Content, { "$isDisabled": disabled, "$isOpened": showDropdownMenu, onClick: toggleDropdownMenu, ref: ref, children: [_jsx("p", { children: _jsx(Trans, { id: "dataGrid.buttonActions", message: "Actions" }) }), _jsx(IconWrap, { "$isDisabled": disabled, "$isOpened": showDropdownMenu, children: _jsx(Icon, { icon: "goDown" }) })] }), showDropdownMenu && !disabled && (items === null || items === void 0 ? void 0 : items.length) > 0 && (_jsx(Popover, { parentRef: ref, onClose: toggleDropdownMenu, placement: "bottom-start", children: _jsx(ActionDropdownMenu, { items: items }) }))] }));
|
|
43
49
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import { default as React, FC } from 'react';
|
|
2
|
+
|
|
2
3
|
type ItemType = {
|
|
3
4
|
title: string | React.ReactElement;
|
|
4
5
|
onClick: () => void;
|
|
@@ -9,5 +10,5 @@ export type Props = {
|
|
|
9
10
|
disabled?: boolean;
|
|
10
11
|
dropdownPosition?: 'top' | 'bottom';
|
|
11
12
|
};
|
|
12
|
-
declare const ButtonMore:
|
|
13
|
+
declare const ButtonMore: FC<Props>;
|
|
13
14
|
export default ButtonMore;
|
|
@@ -4,10 +4,10 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
|
|
|
4
4
|
};
|
|
5
5
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
6
6
|
import { useCallback, useState } from 'react';
|
|
7
|
-
import styled from '@xstyled/styled-components';
|
|
8
|
-
import { useClickOutside } from '../../../Modal/hooks/useClickOutside';
|
|
9
7
|
import Button from '../../../../Elements/Button/Button';
|
|
10
8
|
import DropdownMenu from '../../../../Elements/DropdownMenu';
|
|
9
|
+
import { useClickOutside } from '../../../Modal/hooks/useClickOutside';
|
|
10
|
+
import styled from '@xstyled/styled-components';
|
|
11
11
|
var ButtonWrapper = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: relative;\n width: fit-content;\n"], ["\n position: relative;\n width: fit-content;\n"])));
|
|
12
12
|
var StyledDropdownMenu = styled(DropdownMenu)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n position: absolute;\n top: ", ";\n bottom: ", ";\n right: 0;\n width: max-content;\n z-index: 2;\n"], ["\n position: absolute;\n top: ", ";\n bottom: ", ";\n right: 0;\n width: max-content;\n z-index: 2;\n"])), function (_a) {
|
|
13
13
|
var dropdownPosition = _a.dropdownPosition;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { ColumnDefinition, GridActionsType, FiltersConfig, CustomComparators, Group, ActionColumn, UxState, RowProps } from '../types';
|
|
3
|
+
|
|
2
4
|
type Props = {
|
|
3
5
|
onChange: Required<GridActionsType>['addFilter'];
|
|
4
6
|
value?: any;
|
|
@@ -13,5 +15,5 @@ type Props = {
|
|
|
13
15
|
uxState: UxState;
|
|
14
16
|
handleUxChange: GridActionsType['handleUxChange'];
|
|
15
17
|
};
|
|
16
|
-
declare const ColumnFilterCell:
|
|
18
|
+
declare const ColumnFilterCell: FC<Props>;
|
|
17
19
|
export default ColumnFilterCell;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ColumnTitleComponentType } from '../types';
|
|
3
|
+
|
|
3
4
|
declare const _default: React.NamedExoticComponent<ColumnTitleComponentType>;
|
|
4
5
|
export default _default;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { Dispatch } from 'react';
|
|
1
|
+
import { default as React, Dispatch, FC } from 'react';
|
|
2
2
|
import { CommonGridProps, GridActionsType, GridSelectorsType, ColumnDefinition, FiltersConfig } from '../../types';
|
|
3
|
+
|
|
3
4
|
type Props = {
|
|
4
5
|
extraControlButtons: CommonGridProps['extraControlButtons'];
|
|
5
6
|
gridActions: GridActionsType;
|
|
6
7
|
gridSelectors: GridSelectorsType;
|
|
7
8
|
quickFilter?: CommonGridProps['quickFilter'];
|
|
8
|
-
displayColumnsDefinitions?: ColumnDefinition<string
|
|
9
|
+
displayColumnsDefinitions?: Array<ColumnDefinition<string>>;
|
|
9
10
|
filters?: FiltersConfig;
|
|
10
11
|
hideControlButtons?: boolean;
|
|
11
12
|
displayManageColumnButton?: boolean;
|
|
@@ -17,5 +18,5 @@ type Props = {
|
|
|
17
18
|
withPresets?: boolean;
|
|
18
19
|
withManageColumnButton?: boolean;
|
|
19
20
|
};
|
|
20
|
-
declare const ControlButtons:
|
|
21
|
+
declare const ControlButtons: FC<Props>;
|
|
21
22
|
export default ControlButtons;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const
|
|
5
|
-
export declare const StyledColumnButton: import("styled-components").StyledComponent<({ isLoading, loadingText, icon, iconLeft, iconRight, variant, appearance, disabled, fullWidth, height, buttonRef, onClick, ...props }: import("../../../../Elements/Button/types").Props) => JSX.Element, import("@xstyled/system").Theme, {}, never>;
|
|
1
|
+
export declare const ControlButtonsContainer: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {}, never>;
|
|
2
|
+
export declare const Left: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {}, never>;
|
|
3
|
+
export declare const Right: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {}, never>;
|
|
4
|
+
export declare const StyledColumnButton: import('styled-components').StyledComponent<import('react').FC<import('../../../../Elements/Button/types').Props>, import('@xstyled/system').Theme, {}, never>;
|
|
@@ -11,9 +11,9 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
import React from 'react';
|
|
14
|
+
import { getCellSizeProps, getGroupClassNames, getStickyCollClassNames } from '../utils';
|
|
14
15
|
import get from 'lodash/fp/get';
|
|
15
16
|
import { TextCell } from './Table';
|
|
16
|
-
import { getCellSizeProps, getGroupClassNames, getStickyCollClassNames } from '../utils';
|
|
17
17
|
var DataCell = function (_a) {
|
|
18
18
|
var column = _a.column, group = _a.group, rowData = _a.rowData, onRowAction = _a.onRowAction, displayColumnWidth = _a.displayColumnWidth, rowIndex = _a.rowIndex;
|
|
19
19
|
var Wrapper = column.fixedSize ? 'div' : TextCell;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { ColumnDefinition, RowProps, UxState, GridSelectorsType, Group } from '../types';
|
|
3
|
+
|
|
2
4
|
type DataRowProps = {
|
|
3
5
|
columns: ColumnDefinition[];
|
|
4
6
|
rowData: RowProps;
|
|
@@ -14,5 +16,5 @@ type DataRowProps = {
|
|
|
14
16
|
groups: Group[];
|
|
15
17
|
isEven?: boolean;
|
|
16
18
|
};
|
|
17
|
-
declare const DataRow:
|
|
19
|
+
declare const DataRow: FC<DataRowProps>;
|
|
18
20
|
export default DataRow;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
import { Item } from '../../types';
|
|
1
|
+
import { ReactNode, FC } from 'react';
|
|
3
2
|
import { AppearanceValue } from '../../../../Elements/Button/types';
|
|
3
|
+
import { Item } from '../../types';
|
|
4
|
+
|
|
4
5
|
type Props = {
|
|
5
|
-
label: string |
|
|
6
|
+
label: string | ReactNode;
|
|
6
7
|
items: Item[];
|
|
7
8
|
appearance?: AppearanceValue;
|
|
8
9
|
};
|
|
9
|
-
declare const DropdownButton:
|
|
10
|
+
declare const DropdownButton: FC<Props>;
|
|
10
11
|
export default DropdownButton;
|
|
@@ -3,12 +3,12 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
|
|
|
3
3
|
return cooked;
|
|
4
4
|
};
|
|
5
5
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
6
|
-
import styled from '@xstyled/styled-components';
|
|
7
6
|
import React, { useCallback, useState } from 'react';
|
|
8
7
|
import Button from '../../../../Elements/Button/Button';
|
|
9
|
-
import { useClickOutside } from '../../../Modal/hooks/useClickOutside';
|
|
10
8
|
import DropdownMenu from '../../../../Elements/DropdownMenu';
|
|
11
9
|
import { ArrowDown, ArrowUp } from '../../../../Elements/Icon';
|
|
10
|
+
import { useClickOutside } from '../../../Modal/hooks/useClickOutside';
|
|
11
|
+
import styled from '@xstyled/styled-components';
|
|
12
12
|
import { th } from '@xstyled/system';
|
|
13
13
|
var ButtonWrapper = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: relative;\n width: fit-content;\n"], ["\n position: relative;\n width: fit-content;\n"])));
|
|
14
14
|
var StyledDropdownMenu = styled(DropdownMenu)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n position: absolute;\n top: calc(100% + 4px);\n right: 0;\n width: max-content;\n z-index: 2;\n"], ["\n position: absolute;\n top: calc(100% + 4px);\n right: 0;\n width: max-content;\n z-index: 2;\n"])));
|
|
@@ -21,7 +21,9 @@ var Separator = styled.div(templateObject_5 || (templateObject_5 = __makeTemplat
|
|
|
21
21
|
var DropdownButton = function (_a) {
|
|
22
22
|
var label = _a.label, items = _a.items, appearance = _a.appearance;
|
|
23
23
|
var _b = useState(false), showDropdownMenu = _b[0], setShowDropdownMenu = _b[1];
|
|
24
|
-
var onClose = useCallback(function () {
|
|
24
|
+
var onClose = useCallback(function () {
|
|
25
|
+
setShowDropdownMenu(false);
|
|
26
|
+
}, []);
|
|
25
27
|
var handleClick = React.useCallback(function () {
|
|
26
28
|
setShowDropdownMenu(function (prev) { return !prev; });
|
|
27
29
|
}, []);
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
1
2
|
import { CommonGridProps, ExtraControlButton } from '../../types';
|
|
2
|
-
|
|
3
|
+
|
|
4
|
+
export declare const Row: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {}, never>;
|
|
3
5
|
type Props = {
|
|
4
6
|
extraControlButtons: CommonGridProps['extraControlButtons'];
|
|
5
7
|
targetPosition: ExtraControlButton['position'];
|
|
6
8
|
};
|
|
7
|
-
declare const ExtraControlButtons:
|
|
9
|
+
declare const ExtraControlButtons: FC<Props>;
|
|
8
10
|
export default ExtraControlButtons;
|
|
@@ -14,9 +14,9 @@ var __assign = (this && this.__assign) || function () {
|
|
|
14
14
|
return __assign.apply(this, arguments);
|
|
15
15
|
};
|
|
16
16
|
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
17
|
-
import styled, { x } from '@xstyled/styled-components';
|
|
18
17
|
import Button from '../../../../Elements/Button/Button';
|
|
19
18
|
import DropdownSelect from '../../../../Elements/DropdownSelect';
|
|
19
|
+
import styled, { x } from '@xstyled/styled-components';
|
|
20
20
|
export var Row = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n & > * {\n margin-right: 12px;\n }\n z-index: 2;\n"], ["\n display: flex;\n & > * {\n margin-right: 12px;\n }\n z-index: 2;\n"])));
|
|
21
21
|
var StyledButton = styled(Button)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: none;\n\n @media (min-width: 1024px) {\n display: block;\n }\n"], ["\n display: none;\n\n @media (min-width: 1024px) {\n display: block;\n }\n"])));
|
|
22
22
|
var ControlButton = function (_a) {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import { PropsWithChildren } from 'react';
|
|
2
|
-
|
|
1
|
+
import { PropsWithChildren, ReactElement } from 'react';
|
|
2
|
+
|
|
3
|
+
declare const OverlayComponent: ({ children }: PropsWithChildren) => ReactElement;
|
|
3
4
|
export default OverlayComponent;
|
|
@@ -10,22 +10,22 @@ var OverlayComponent = function (_a) {
|
|
|
10
10
|
var children = _a.children;
|
|
11
11
|
var overlayRef = React.useRef(null);
|
|
12
12
|
React.useEffect(function () {
|
|
13
|
-
var _a;
|
|
13
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
14
14
|
var Overlay = overlayRef.current;
|
|
15
15
|
if (!Overlay)
|
|
16
16
|
return;
|
|
17
|
-
var FilterCell = Overlay
|
|
17
|
+
var FilterCell = Overlay.closest('.cell');
|
|
18
18
|
var GridWrapper = FilterCell === null || FilterCell === void 0 ? void 0 : FilterCell.closest('.gridWrapper');
|
|
19
19
|
// position of left edge of filter cell
|
|
20
|
-
var relativeLeftOffset = (FilterCell === null || FilterCell === void 0 ? void 0 : FilterCell.offsetLeft) - ((
|
|
20
|
+
var relativeLeftOffset = ((_a = FilterCell === null || FilterCell === void 0 ? void 0 : FilterCell.offsetLeft) !== null && _a !== void 0 ? _a : 0) - ((_c = (_b = FilterCell === null || FilterCell === void 0 ? void 0 : FilterCell.parentElement) === null || _b === void 0 ? void 0 : _b.offsetLeft) !== null && _c !== void 0 ? _c : 0); // parent element = row
|
|
21
21
|
// space available to the right edge of visible part of grid
|
|
22
|
-
var spaceTotal = (GridWrapper === null || GridWrapper === void 0 ? void 0 : GridWrapper.clientWidth) + (GridWrapper === null || GridWrapper === void 0 ? void 0 : GridWrapper.scrollLeft) - relativeLeftOffset;
|
|
22
|
+
var spaceTotal = ((_d = GridWrapper === null || GridWrapper === void 0 ? void 0 : GridWrapper.clientWidth) !== null && _d !== void 0 ? _d : 0) + ((_e = GridWrapper === null || GridWrapper === void 0 ? void 0 : GridWrapper.scrollLeft) !== null && _e !== void 0 ? _e : 0) - relativeLeftOffset;
|
|
23
23
|
// difference between availible space and width
|
|
24
|
-
var spaceLeft = spaceTotal - (Overlay
|
|
24
|
+
var spaceLeft = spaceTotal - ((_f = Overlay.clientWidth) !== null && _f !== void 0 ? _f : 0);
|
|
25
25
|
// left position
|
|
26
|
-
var left = spaceLeft > 0 ? FilterCell === null || FilterCell === void 0 ? void 0 : FilterCell.offsetLeft : (FilterCell === null || FilterCell === void 0 ? void 0 : FilterCell.offsetLeft) + spaceLeft;
|
|
26
|
+
var left = spaceLeft > 0 ? (_g = FilterCell === null || FilterCell === void 0 ? void 0 : FilterCell.offsetLeft) !== null && _g !== void 0 ? _g : 0 : ((_h = FilterCell === null || FilterCell === void 0 ? void 0 : FilterCell.offsetLeft) !== null && _h !== void 0 ? _h : 0) + spaceLeft;
|
|
27
27
|
// top calculation
|
|
28
|
-
var topOffset = (FilterCell === null || FilterCell === void 0 ? void 0 : FilterCell.offsetTop) + (FilterCell === null || FilterCell === void 0 ? void 0 : FilterCell.clientHeight);
|
|
28
|
+
var topOffset = ((_j = FilterCell === null || FilterCell === void 0 ? void 0 : FilterCell.offsetTop) !== null && _j !== void 0 ? _j : 0) + ((_k = FilterCell === null || FilterCell === void 0 ? void 0 : FilterCell.clientHeight) !== null && _k !== void 0 ? _k : 0);
|
|
29
29
|
Overlay.style.left = "".concat(left, "px");
|
|
30
30
|
Overlay.style.top = "".concat(topOffset, "px");
|
|
31
31
|
Overlay.style.visibility = "initial";
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { Settings, ColumnDefinition as ColumnDefinitionType, ActionColumn, GridActionsType, GridSelectorsType, Group, CustomComparators, FiltersConfig, UxState, RowProps } from '../types';
|
|
3
|
+
|
|
2
4
|
type Props = {
|
|
3
5
|
columns: ColumnDefinitionType[];
|
|
4
6
|
actionColumn?: ActionColumn;
|
|
@@ -12,5 +14,5 @@ type Props = {
|
|
|
12
14
|
rowsData: RowProps[];
|
|
13
15
|
uxState: UxState;
|
|
14
16
|
};
|
|
15
|
-
declare const FilterRow:
|
|
17
|
+
declare const FilterRow: FC<Props>;
|
|
16
18
|
export default FilterRow;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { ActionColumn, GridActionsType, RowProps, UxState } from '../../../types';
|
|
3
|
+
|
|
3
4
|
type Props = {
|
|
4
5
|
actionColumn?: ActionColumn;
|
|
5
6
|
rowsData?: RowProps[];
|
|
@@ -9,17 +9,6 @@ var __assign = (this && this.__assign) || function () {
|
|
|
9
9
|
};
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
-
var t = {};
|
|
14
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
-
t[p] = s[p];
|
|
16
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
-
t[p[i]] = s[p[i]];
|
|
20
|
-
}
|
|
21
|
-
return t;
|
|
22
|
-
};
|
|
23
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
13
|
import { useMemo } from 'react';
|
|
25
14
|
import GridSelect from '../GridSelect';
|
|
@@ -27,11 +16,10 @@ import { i18n } from '@lingui/core';
|
|
|
27
16
|
var getFlagOptions = function () { return [
|
|
28
17
|
{ value: '', label: i18n._({ id: 'dataGrid.columnActive.filterOptions.all', message: 'All' }) },
|
|
29
18
|
{ value: '1', label: i18n._({ id: 'dataGrid.columnActive.filterOptions.yes', message: 'Yes' }) },
|
|
30
|
-
{ value: '0', label: i18n._({ id: 'dataGrid.columnActive.filterOptions.no', message: 'No' }) }
|
|
19
|
+
{ value: '0', label: i18n._({ id: 'dataGrid.columnActive.filterOptions.no', message: 'No' }) }
|
|
31
20
|
]; };
|
|
32
|
-
var SelectFilter = function (
|
|
33
|
-
var restProps = __rest(_a, []);
|
|
21
|
+
var SelectFilter = function (props) {
|
|
34
22
|
var options = useMemo(function () { return getFlagOptions(); }, []);
|
|
35
|
-
return _jsx(GridSelect, __assign({ options: options },
|
|
23
|
+
return _jsx(GridSelect, __assign({ options: options }, props));
|
|
36
24
|
};
|
|
37
25
|
export default SelectFilter;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { DateTimeOthers } from '../../../../../Elements/DatePicker/Datetime/types';
|
|
3
|
+
import { FilterComponentProps } from '../../../types';
|
|
4
|
+
|
|
3
5
|
type InitialView = 'past' | 'future';
|
|
4
6
|
type DatePickerRangeProps = FilterComponentProps<Date[]> & {
|
|
5
7
|
filterTime?: number;
|
|
@@ -10,5 +12,5 @@ type DateRangeProps = DatePickerRangeProps & {
|
|
|
10
12
|
error?: string;
|
|
11
13
|
label?: string;
|
|
12
14
|
};
|
|
13
|
-
declare const DatePickerRange:
|
|
15
|
+
declare const DatePickerRange: FC<DateRangeProps>;
|
|
14
16
|
export default DatePickerRange;
|
package/ui/Blocks/CommonGrid/components/Filters/DatePickerRange/utils/pickerRangeToString.d.ts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { DateTimeOthers } from '../../../../../../Elements/DatePicker/Datetime/types';
|
|
2
|
+
|
|
2
3
|
export declare const pickerRangeToString: (values?: Date[], others?: DateTimeOthers[]) => string;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
1
2
|
import { ColumnDefinition } from '../../../types';
|
|
3
|
+
|
|
2
4
|
type Props = {
|
|
3
5
|
onChange: (data: any) => void;
|
|
4
6
|
isMulti?: boolean;
|
|
@@ -6,5 +8,5 @@ type Props = {
|
|
|
6
8
|
value?: string | string[];
|
|
7
9
|
checkAllButton?: boolean;
|
|
8
10
|
};
|
|
9
|
-
declare const SelectFilter:
|
|
11
|
+
declare const SelectFilter: FC<Props>;
|
|
10
12
|
export default SelectFilter;
|