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