@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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mailstep/design-system",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.0-beta.1",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./ui/index.js",
|
|
@@ -46,9 +46,9 @@
|
|
|
46
46
|
"@nivo/pie": "^0.73.0",
|
|
47
47
|
"@popperjs/core": "^2.11.8",
|
|
48
48
|
"@storybook/addon-designs": "^11.1.4",
|
|
49
|
-
"@storybook/addon-docs": "10.
|
|
50
|
-
"@storybook/addon-links": "10.
|
|
51
|
-
"@storybook/react-webpack5": "10.
|
|
49
|
+
"@storybook/addon-docs": "10.6.0",
|
|
50
|
+
"@storybook/addon-links": "10.6.0",
|
|
51
|
+
"@storybook/react-webpack5": "10.6.0",
|
|
52
52
|
"@svgr/rollup": "^8.0.1",
|
|
53
53
|
"@swc/core": "^1.15.30",
|
|
54
54
|
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"eslint-plugin-react": "^7.35.0",
|
|
81
81
|
"eslint-plugin-react-hooks": "^4.6.2",
|
|
82
82
|
"eslint-plugin-react-perf": "^3.3.2",
|
|
83
|
-
"eslint-plugin-storybook": "10.
|
|
83
|
+
"eslint-plugin-storybook": "10.6.0",
|
|
84
84
|
"faker": "^5.1.0",
|
|
85
85
|
"husky": "^9.1.7",
|
|
86
86
|
"immer": "^9.0.19",
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
"react-use-draggable-scroll": "^0.4.7",
|
|
106
106
|
"redux": ">=4.0.5",
|
|
107
107
|
"reselect": "5.0.0-alpha.2",
|
|
108
|
-
"storybook": "10.
|
|
108
|
+
"storybook": "10.6.0",
|
|
109
109
|
"string-width": "6.1.0",
|
|
110
110
|
"styled-components": "^5.3.10",
|
|
111
111
|
"swiper": "^11.0.3",
|
|
@@ -12,7 +12,7 @@ const ChevronOption = (props) => {
|
|
|
12
12
|
...props,
|
|
13
13
|
children: [(showCheckbox || showToggle) && /* @__PURE__ */ jsxs(SelectedIndicator, { children: [showCheckbox && /* @__PURE__ */ jsx(Checkbox_default, {
|
|
14
14
|
checked: isSelected,
|
|
15
|
-
size:
|
|
15
|
+
size: "14px",
|
|
16
16
|
readOnly: true
|
|
17
17
|
}), showToggle && /* @__PURE__ */ jsx(Toggle, {
|
|
18
18
|
name: "",
|
|
@@ -66,7 +66,7 @@ const SelectAll = ({ onCustomSelectAll, onCustomDeselectAll, value, options, max
|
|
|
66
66
|
children: [
|
|
67
67
|
(showCheckbox || showToggle) && /* @__PURE__ */ jsxs(SelectedIndicator, { children: [showCheckbox && /* @__PURE__ */ jsx(Checkbox_default, {
|
|
68
68
|
checked: isSelected,
|
|
69
|
-
size:
|
|
69
|
+
size: "14px",
|
|
70
70
|
readOnly: true
|
|
71
71
|
}), showToggle && /* @__PURE__ */ jsx(Toggle, {
|
|
72
72
|
name: "",
|
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
import { CheckIcon, CheckboxWrap, FakeInput, Label } from "./styles.js";
|
|
2
2
|
import { memo, useId } from "react";
|
|
3
|
-
import { th, useTheme } from "@xstyled/styled-components";
|
|
4
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
4
|
//#region packages/ui/Forms/Checkbox/Checkbox.tsx
|
|
6
|
-
const Checkbox = ({ name, label, onChange, checked, defaultChecked, size =
|
|
7
|
-
const theme = useTheme();
|
|
8
|
-
const themeSize = th.fontSize(size)({ theme });
|
|
5
|
+
const Checkbox = ({ name, label, onChange, checked, defaultChecked, size = "18px", className, disabled, inputRef, readOnly, minusIcon = false }) => {
|
|
9
6
|
const id = useId();
|
|
10
7
|
return /* @__PURE__ */ jsxs(CheckboxWrap, {
|
|
11
|
-
size
|
|
8
|
+
size,
|
|
12
9
|
className,
|
|
13
10
|
children: [
|
|
14
11
|
/* @__PURE__ */ jsx("input", {
|
|
@@ -26,10 +23,10 @@ const Checkbox = ({ name, label, onChange, checked, defaultChecked, size = 4, cl
|
|
|
26
23
|
id
|
|
27
24
|
}),
|
|
28
25
|
/* @__PURE__ */ jsx(FakeInput, {
|
|
29
|
-
size
|
|
26
|
+
size,
|
|
30
27
|
children: /* @__PURE__ */ jsx(CheckIcon, {
|
|
31
28
|
icon: minusIcon ? "minus" : "check",
|
|
32
|
-
size
|
|
29
|
+
size
|
|
33
30
|
})
|
|
34
31
|
}),
|
|
35
32
|
label && /* @__PURE__ */ jsx(Label, {
|
|
@@ -13,7 +13,7 @@ import { initialState } from "./store/index.js";
|
|
|
13
13
|
import { useCallback, useMemo } from "react";
|
|
14
14
|
import { x } from "@xstyled/styled-components";
|
|
15
15
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
16
|
-
//#region packages/ui/
|
|
16
|
+
//#region packages/ui/Modules/CommonGrid/CommonGrid.tsx
|
|
17
17
|
const rowsStyles = { outline: "none" };
|
|
18
18
|
const defaultVoidFunction = (...args) => null;
|
|
19
19
|
const defaultUxState = initialState.uxState;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import Pagination from "../../Elements/Pagination/Pagination.js";
|
|
2
2
|
import "../../Elements/Pagination/index.js";
|
|
3
3
|
import { useCheckDeviceWidth } from "../../utils/CheckDeviceWidth/checkDeviceWidth.js";
|
|
4
|
-
import HidePrint from "
|
|
5
|
-
import { useModal } from "
|
|
4
|
+
import HidePrint from "../../Blocks/HidePrint/HidePrint.js";
|
|
5
|
+
import { useModal } from "../../Blocks/Modal/hooks/useModal.js";
|
|
6
6
|
import ActionHead_default from "./components/ActionHead/index.js";
|
|
7
7
|
import { getFilters } from "./utils/index.js";
|
|
8
8
|
import { clearShareParams } from "./utils/shareUrl/clearShareParams.js";
|
|
@@ -27,7 +27,7 @@ import { BottomWrapper, CommonGridWithStyles, CommonGridWrap, ContentContainer,
|
|
|
27
27
|
import { useCallback, useMemo, useRef, useState } from "react";
|
|
28
28
|
import { x } from "@xstyled/styled-components";
|
|
29
29
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
30
|
-
//#region packages/ui/
|
|
30
|
+
//#region packages/ui/Modules/CommonGrid/CommonGridContainer.tsx
|
|
31
31
|
const CommonGridContainer = (props) => {
|
|
32
32
|
const { optimizeFilters = false, extraControlButtons, onBatchAction, processCheckedValues, processCheckedValuesTitle, hideControlButtons, quickFilter, floatingButtonProps, queryRowsParam, customPaginationHandler, autoHeight = true, gridName, withPresets = true, withManageColumnButton = true, withPagination = true, withAggregation = true, withShare = true, allowSortingOnlyUnderTotalRows, onReload, ...passDownProps } = props;
|
|
33
33
|
const { gridActions, gridSelectors, rowsData, actionColumnDefinition } = passDownProps;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
//#region packages/ui/
|
|
2
|
+
//#region packages/ui/Modules/CommonGrid/HoC/withProps.tsx
|
|
3
3
|
const withProps = (input) => (Component) => function ComponentWithProps(props) {
|
|
4
4
|
const additinalProps = typeof input === "function" ? input(props) : input;
|
|
5
5
|
return /* @__PURE__ */ jsx(Component, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createActions, createFullSelector } from "../store/index.js";
|
|
2
2
|
import { connect } from "react-redux";
|
|
3
3
|
import { bindActionCreators } from "redux";
|
|
4
|
-
//#region packages/ui/
|
|
4
|
+
//#region packages/ui/Modules/CommonGrid/HoC/withReduxActions.ts
|
|
5
5
|
const withReduxActions = (gridName, prefix = "grid") => {
|
|
6
6
|
const actions = createActions(gridName);
|
|
7
7
|
const selectors = createFullSelector(gridName);
|
|
@@ -8,7 +8,7 @@ import styled$1 from "@xstyled/styled-components";
|
|
|
8
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
import { i18n } from "@lingui/core";
|
|
10
10
|
import { Trans } from "@lingui/react";
|
|
11
|
-
//#region packages/ui/
|
|
11
|
+
//#region packages/ui/Modules/CommonGrid/components/ActionHead/ActionHead.tsx
|
|
12
12
|
const Wrap = styled$1.div`
|
|
13
13
|
display: flex;
|
|
14
14
|
align-items: center;
|
package/ui/{Blocks → Modules}/CommonGrid/components/ActionHead/components/ActionDropdownMenu.js
RENAMED
|
@@ -2,7 +2,7 @@ import "react";
|
|
|
2
2
|
import styled$1 from "@xstyled/styled-components";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import { th as th$1 } from "@xstyled/system";
|
|
5
|
-
//#region packages/ui/
|
|
5
|
+
//#region packages/ui/Modules/CommonGrid/components/ActionHead/components/ActionDropdownMenu.tsx
|
|
6
6
|
const StyledDropdownWrap = styled$1.div`
|
|
7
7
|
position: relative;
|
|
8
8
|
left: 0;
|
package/ui/{Blocks → Modules}/CommonGrid/components/ActionHead/components/ActionDropdownSelect.js
RENAMED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import Icon from "../../../../../Elements/Icon/Icon.js";
|
|
2
|
-
import Popover from "
|
|
2
|
+
import Popover from "../../../../../Blocks/Popover/index.js";
|
|
3
3
|
import ActionDropdownMenu from "./ActionDropdownMenu.js";
|
|
4
4
|
import React, { memo, useRef } from "react";
|
|
5
5
|
import styled$1 from "@xstyled/styled-components";
|
|
6
6
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
import { th as th$1 } from "@xstyled/system";
|
|
8
8
|
import { Trans } from "@lingui/react";
|
|
9
|
-
//#region packages/ui/
|
|
9
|
+
//#region packages/ui/Modules/CommonGrid/components/ActionHead/components/ActionDropdownSelect.tsx
|
|
10
10
|
const Content = styled$1.div`
|
|
11
11
|
position: relative;
|
|
12
12
|
display: flex;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import ActionHead from "./ActionHead.js";
|
|
2
|
-
//#region packages/ui/
|
|
2
|
+
//#region packages/ui/Modules/CommonGrid/components/ActionHead/index.tsx
|
|
3
3
|
var ActionHead_default = ActionHead;
|
|
4
4
|
//#endregion
|
|
5
5
|
export { ActionHead_default as default };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import Button from "../../../../Elements/Button/Button.js";
|
|
2
2
|
import { DropdownMenu } from "../../../../Elements/DropdownMenu/DropdownMenu.js";
|
|
3
3
|
import "../../../../Elements/DropdownMenu/index.js";
|
|
4
|
-
import { useClickOutside } from "
|
|
4
|
+
import { useClickOutside } from "../../../../Blocks/Modal/hooks/useClickOutside.js";
|
|
5
5
|
import { useCallback, useState } from "react";
|
|
6
6
|
import styled$1 from "@xstyled/styled-components";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
-
//#region packages/ui/
|
|
8
|
+
//#region packages/ui/Modules/CommonGrid/components/ButtonMore/ButtonMore.tsx
|
|
9
9
|
const ButtonWrapper = styled$1.div`
|
|
10
10
|
position: relative;
|
|
11
11
|
width: fit-content;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import ButtonMore from "./ButtonMore.js";
|
|
2
|
-
//#region packages/ui/
|
|
2
|
+
//#region packages/ui/Modules/CommonGrid/components/ButtonMore/index.ts
|
|
3
3
|
var ButtonMore_default = ButtonMore;
|
|
4
4
|
//#endregion
|
|
5
5
|
export { ButtonMore_default as default };
|
|
@@ -5,7 +5,7 @@ import OverlayComponent from "./FilterDropdown.js";
|
|
|
5
5
|
import React from "react";
|
|
6
6
|
import { x } from "@xstyled/styled-components";
|
|
7
7
|
import { jsx } from "react/jsx-runtime";
|
|
8
|
-
//#region packages/ui/
|
|
8
|
+
//#region packages/ui/Modules/CommonGrid/components/ColumnFilterCell.tsx
|
|
9
9
|
const ColumnFilterCell = ({ onChange, value, others, displayColumnWidth, filters, column: columnDefinition, group, comparators, actionColumn, rowsData, uxState, handleUxChange, onAsyncLoadFilterOptions }) => {
|
|
10
10
|
const cellSizeProps = getCellSizeProps(columnDefinition, displayColumnWidth);
|
|
11
11
|
const handleAddFilter = useAddFilter(onChange);
|
|
@@ -2,7 +2,7 @@ import Icon from "../../../../Elements/Icon/Icon.js";
|
|
|
2
2
|
import { useCallback, useEffect, useRef, useState } from "react";
|
|
3
3
|
import styled$1, { css, x } from "@xstyled/styled-components";
|
|
4
4
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
-
//#region packages/ui/
|
|
5
|
+
//#region packages/ui/Modules/CommonGrid/components/ColumnTitle/ColumnTitle.tsx
|
|
6
6
|
const WRAPPER_WIDTH = 35;
|
|
7
7
|
const Wrap = styled$1.div`
|
|
8
8
|
width: 100%;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import ColumnTitle from "./ColumnTitle.js";
|
|
2
|
-
//#region packages/ui/
|
|
2
|
+
//#region packages/ui/Modules/CommonGrid/components/ColumnTitle/index.tsx
|
|
3
3
|
var ColumnTitle_default = ColumnTitle;
|
|
4
4
|
//#endregion
|
|
5
5
|
export { ColumnTitle_default as default };
|
|
@@ -2,7 +2,7 @@ import { SortingDown, SortingUp } from "./icons/Sorting.js";
|
|
|
2
2
|
import React from "react";
|
|
3
3
|
import styled$1, { th, useTheme } from "@xstyled/styled-components";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
-
//#region packages/ui/
|
|
5
|
+
//#region packages/ui/Modules/CommonGrid/components/ColumnTitle.tsx
|
|
6
6
|
const Title = styled$1.span`
|
|
7
7
|
& + * {
|
|
8
8
|
margin-left: 1em;
|
|
@@ -18,7 +18,7 @@ import { useColor, x } from "@xstyled/styled-components";
|
|
|
18
18
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
19
19
|
import { i18n } from "@lingui/core";
|
|
20
20
|
import { Trans } from "@lingui/react";
|
|
21
|
-
//#region packages/ui/
|
|
21
|
+
//#region packages/ui/Modules/CommonGrid/components/ControlButtons/ControlButtons.tsx
|
|
22
22
|
const ControlButtons = ({ extraControlButtons, gridActions, gridSelectors, quickFilter = "", columns, filters, hideControlButtons, displayManageColumnButton, openManageColumnForm, setDisplayManageColumnButton, onOpenPresetsModal, gridName, selectedPresetName, withPresets, withManageColumnButton, onOpenMobileFilters, onOpenMobileSorting, isSortTerminated, withShare }) => {
|
|
23
23
|
const { onShare, isCopied } = useShareGrid({
|
|
24
24
|
gridSelectors,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import ControlButtons from "./ControlButtons.js";
|
|
2
|
-
//#region packages/ui/
|
|
2
|
+
//#region packages/ui/Modules/CommonGrid/components/ControlButtons/index.tsx
|
|
3
3
|
var ControlButtons_default = ControlButtons;
|
|
4
4
|
//#endregion
|
|
5
5
|
export { ControlButtons_default as default };
|
|
@@ -2,7 +2,7 @@ import Button from "../../../../Elements/Button/Button.js";
|
|
|
2
2
|
import "../../../../Elements/Button/index.js";
|
|
3
3
|
import styled$1 from "@xstyled/styled-components";
|
|
4
4
|
import { th as th$1 } from "@xstyled/system";
|
|
5
|
-
//#region packages/ui/
|
|
5
|
+
//#region packages/ui/Modules/CommonGrid/components/ControlButtons/styles.ts
|
|
6
6
|
const ControlButtonsContainer = styled$1.div`
|
|
7
7
|
display: flex;
|
|
8
8
|
position: sticky;
|
|
@@ -3,7 +3,7 @@ import { TextCell } from "./Table.js";
|
|
|
3
3
|
import React from "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
import get from "lodash/fp/get";
|
|
6
|
-
//#region packages/ui/
|
|
6
|
+
//#region packages/ui/Modules/CommonGrid/components/DataCell.tsx
|
|
7
7
|
const DataCell = ({ column, group, rowData, onRowAction, displayColumnWidth, rowIndex }) => {
|
|
8
8
|
const Wrapper = column.fixedSize ? "div" : TextCell;
|
|
9
9
|
const wrapperBaseProps = column.fixedSize ? { style: {
|
|
@@ -4,7 +4,7 @@ import MemoDataCell from "./DataCell.js";
|
|
|
4
4
|
import { useTimeMeasurement } from "./utils.js";
|
|
5
5
|
import React from "react";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
|
-
//#region packages/ui/
|
|
7
|
+
//#region packages/ui/Modules/CommonGrid/components/DataRow.tsx
|
|
8
8
|
const DataRow = ({ columns, rowData, rowIndex, uxState, allowRowSelect, allowRowSelectOnAction, onUxChange, onRowClick, onRowAction, onCellClick, displayColumnsWidth, groups, isEven }) => {
|
|
9
9
|
const isChecked = !!uxState.checkedRows?.[rowData.id];
|
|
10
10
|
const handleRowAction = React.useCallback((id, field, value, rowData) => {
|
|
@@ -4,12 +4,12 @@ import "../../../../Elements/Icon/index.js";
|
|
|
4
4
|
import Button from "../../../../Elements/Button/Button.js";
|
|
5
5
|
import { DropdownMenu } from "../../../../Elements/DropdownMenu/DropdownMenu.js";
|
|
6
6
|
import "../../../../Elements/DropdownMenu/index.js";
|
|
7
|
-
import { useClickOutside } from "
|
|
7
|
+
import { useClickOutside } from "../../../../Blocks/Modal/hooks/useClickOutside.js";
|
|
8
8
|
import React, { useCallback, useState } from "react";
|
|
9
9
|
import styled$1 from "@xstyled/styled-components";
|
|
10
10
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
11
|
import { th as th$1 } from "@xstyled/system";
|
|
12
|
-
//#region packages/ui/
|
|
12
|
+
//#region packages/ui/Modules/CommonGrid/components/DropdownButton/DropdownButton.tsx
|
|
13
13
|
const ButtonWrapper = styled$1.div`
|
|
14
14
|
position: relative;
|
|
15
15
|
width: fit-content;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import DropdownButton from "./DropdownButton.js";
|
|
2
|
-
//#region packages/ui/
|
|
2
|
+
//#region packages/ui/Modules/CommonGrid/components/DropdownButton/index.ts
|
|
3
3
|
var DropdownButton_default = DropdownButton;
|
|
4
4
|
//#endregion
|
|
5
5
|
export { DropdownButton_default as default };
|
package/ui/{Blocks → Modules}/CommonGrid/components/ExtraControlButtons/ExtraControlButtons.js
RENAMED
|
@@ -4,7 +4,7 @@ import DropdownSelect_default from "../../../../Elements/DropdownSelect/index.js
|
|
|
4
4
|
import "react";
|
|
5
5
|
import styled$1, { x } from "@xstyled/styled-components";
|
|
6
6
|
import { Fragment, jsx } from "react/jsx-runtime";
|
|
7
|
-
//#region packages/ui/
|
|
7
|
+
//#region packages/ui/Modules/CommonGrid/components/ExtraControlButtons/ExtraControlButtons.tsx
|
|
8
8
|
const Row = styled$1.div`
|
|
9
9
|
display: flex;
|
|
10
10
|
gap: 8px;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import ExtraControlButtons from "./ExtraControlButtons.js";
|
|
2
|
-
//#region packages/ui/
|
|
2
|
+
//#region packages/ui/Modules/CommonGrid/components/ExtraControlButtons/index.tsx
|
|
3
3
|
var ExtraControlButtons_default = ExtraControlButtons;
|
|
4
4
|
//#endregion
|
|
5
5
|
export { ExtraControlButtons_default as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
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/FilterDropdown.tsx
|
|
5
5
|
const OverlayWrapper = styled$1.div`
|
|
6
6
|
position: absolute;
|
|
7
7
|
z-index: 1;
|
|
@@ -4,7 +4,7 @@ import ColumnFilterCell from "./ColumnFilterCell.js";
|
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
import get from "lodash/fp/get";
|
|
6
6
|
import throttle from "lodash/throttle";
|
|
7
|
-
//#region packages/ui/
|
|
7
|
+
//#region packages/ui/Modules/CommonGrid/components/FilterRow.tsx
|
|
8
8
|
const FilterRow = ({ columns, groups, actionColumn, onChange, filterValues = {}, displayColumnsWidth, filters, comparators, handleUxChange, onAsyncLoadFilterOptions, rowsData, uxState }) => {
|
|
9
9
|
const handleOnChange = throttle(onChange, 500);
|
|
10
10
|
return /* @__PURE__ */ jsx(Row, {
|
|
@@ -2,7 +2,7 @@ import { useToggleAllCheckbox } from "../../../hooks/useToggleAllCheckbox.js";
|
|
|
2
2
|
import Checkbox_default from "../../../../../Forms/Checkbox/index.js";
|
|
3
3
|
import { x } from "@xstyled/styled-components";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
-
//#region packages/ui/
|
|
5
|
+
//#region packages/ui/Modules/CommonGrid/components/Filters/ActionsFilter/ActionsFilter.tsx
|
|
6
6
|
const ActionsFilter = ({ actionColumn, rowsData, uxState, handleUxChange }) => {
|
|
7
7
|
const [allChecked, toggleCheckbox] = useToggleAllCheckbox(rowsData, uxState, handleUxChange);
|
|
8
8
|
const rowsNumberLabel = actionColumn?.addRowNumbersLabel;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import ActionsFilter from "./ActionsFilter.js";
|
|
2
|
-
//#region packages/ui/
|
|
2
|
+
//#region packages/ui/Modules/CommonGrid/components/Filters/ActionsFilter/index.ts
|
|
3
3
|
var ActionsFilter_default = ActionsFilter;
|
|
4
4
|
//#endregion
|
|
5
5
|
export { ActionsFilter_default as default };
|
|
@@ -2,7 +2,7 @@ import GridSelect_default from "../GridSelect/index.js";
|
|
|
2
2
|
import { useMemo } from "react";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import { i18n } from "@lingui/core";
|
|
5
|
-
//#region packages/ui/
|
|
5
|
+
//#region packages/ui/Modules/CommonGrid/components/Filters/BooleanSelect/BooleanSelect.tsx
|
|
6
6
|
const getFlagOptions = () => [
|
|
7
7
|
{
|
|
8
8
|
value: "",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import SelectFilter from "./BooleanSelect.js";
|
|
2
|
-
//#region packages/ui/
|
|
2
|
+
//#region packages/ui/Modules/CommonGrid/components/Filters/BooleanSelect/index.tsx
|
|
3
3
|
var BooleanSelect_default = SelectFilter;
|
|
4
4
|
//#endregion
|
|
5
5
|
export { BooleanSelect_default as default };
|
package/ui/{Blocks → Modules}/CommonGrid/components/Filters/DatePickerRange/DatePickerRange.js
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useClickOutside } from "
|
|
1
|
+
import { useClickOutside } from "../../../../../Blocks/Modal/hooks/useClickOutside.js";
|
|
2
2
|
import Input_default from "../../../../../Forms/Input/index.js";
|
|
3
3
|
import DatePicker_default from "../../../../../Elements/DatePicker/index.js";
|
|
4
4
|
import { getCleanValues } from "./utils/getCleanValues.js";
|
|
@@ -8,7 +8,7 @@ import styled$1, { css } from "@xstyled/styled-components";
|
|
|
8
8
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
import { i18n } from "@lingui/core";
|
|
10
10
|
import { DateTime } from "luxon";
|
|
11
|
-
//#region packages/ui/
|
|
11
|
+
//#region packages/ui/Modules/CommonGrid/components/Filters/DatePickerRange/DatePickerRange.tsx
|
|
12
12
|
const RangeWrapper = styled$1.div`
|
|
13
13
|
display: ${({ $compact }) => $compact ? "flex" : "inline-flex"};
|
|
14
14
|
flex-direction: ${({ $compact }) => $compact ? "column" : "row"};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import DatePickerRange from "./DatePickerRange.js";
|
|
2
|
-
//#region packages/ui/
|
|
2
|
+
//#region packages/ui/Modules/CommonGrid/components/Filters/DatePickerRange/index.tsx
|
|
3
3
|
var DatePickerRange_default = DatePickerRange;
|
|
4
4
|
//#endregion
|
|
5
5
|
export { DatePickerRange_default as default };
|
package/ui/{Blocks → Modules}/CommonGrid/components/Filters/DatePickerRange/utils/getCleanValues.js
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region packages/ui/
|
|
1
|
+
//#region packages/ui/Modules/CommonGrid/components/Filters/DatePickerRange/utils/getCleanValues.ts
|
|
2
2
|
const getCleanValue = (value) => {
|
|
3
3
|
if (typeof value === "string") return new Date(value);
|
|
4
4
|
return value || void 0;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DatePickerRepeatTrans, TimePickerRepeatTrans } from "../../../../../../Elements/DatePicker/utils/constants.js";
|
|
2
2
|
import { sameDate } from "./sameDate.js";
|
|
3
3
|
import { DateTime } from "luxon";
|
|
4
|
-
//#region packages/ui/
|
|
4
|
+
//#region packages/ui/Modules/CommonGrid/components/Filters/DatePickerRange/utils/pickerRangeToString.ts
|
|
5
5
|
const pickerRangeToString = (values = [], others) => {
|
|
6
6
|
if (others?.[0]?.dateTypeRepeater || others?.[1]?.dateTypeRepeater) return others.map((other, i) => {
|
|
7
7
|
if (!other?.dateTypeRepeater) return values[i] && DateTime.fromJSDate(values[i]).toFormat("dd.LL.yyyy HH:mm");
|
package/ui/{Blocks → Modules}/CommonGrid/components/Filters/DatePickerRange/utils/sameDate.js
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region packages/ui/
|
|
1
|
+
//#region packages/ui/Modules/CommonGrid/components/Filters/DatePickerRange/utils/sameDate.ts
|
|
2
2
|
const sameDate = (date1, date2) => date1 && date1.getTime && date2 && date2.getTime && date1.getTime() === date2.getTime();
|
|
3
3
|
//#endregion
|
|
4
4
|
export { sameDate };
|
|
@@ -6,7 +6,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
6
6
|
import { i18n } from "@lingui/core";
|
|
7
7
|
import isArray from "lodash/isArray";
|
|
8
8
|
import uniqBy from "lodash/uniqBy";
|
|
9
|
-
//#region packages/ui/
|
|
9
|
+
//#region packages/ui/Modules/CommonGrid/components/Filters/GridSelect/GridSelect.tsx
|
|
10
10
|
const minColumnWidth = 120;
|
|
11
11
|
const noOptionsMessage = () => null;
|
|
12
12
|
const SelectFilter = ({ onChange, isClearable = true, disabled, placeholder, showValue = true, columnWidth, isMulti, value, options, checkAllButton, asyncLoadKey, onAsyncLoadFilterOptions, withNotEqComparator = true }) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region packages/ui/
|
|
1
|
+
//#region packages/ui/Modules/CommonGrid/components/Filters/GridSelect/guards.ts
|
|
2
2
|
const isOptionArray = (value) => {
|
|
3
3
|
return Array.isArray(value) && value.every((v) => typeof v === "object" && v !== null && "label" in v && "value" in v);
|
|
4
4
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import SelectFilter from "./GridSelect.js";
|
|
2
|
-
//#region packages/ui/
|
|
2
|
+
//#region packages/ui/Modules/CommonGrid/components/Filters/GridSelect/index.tsx
|
|
3
3
|
var GridSelect_default = SelectFilter;
|
|
4
4
|
//#endregion
|
|
5
5
|
export { GridSelect_default as default };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { useClickOutside } from "
|
|
1
|
+
import { useClickOutside } from "../../../../../Blocks/Modal/hooks/useClickOutside.js";
|
|
2
2
|
import { Input } from "../../../../../Forms/Input/Input.js";
|
|
3
3
|
import { useEvent } from "../../../hooks/useEvent.js";
|
|
4
4
|
import IconList_default from "../../IconList/index.js";
|
|
5
5
|
import { useCallback, useState } from "react";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
import { i18n } from "@lingui/core";
|
|
8
|
-
//#region packages/ui/
|
|
8
|
+
//#region packages/ui/Modules/CommonGrid/components/Filters/NumberRange/NumberRange.tsx
|
|
9
9
|
const OverlayComponentDefault = ({ children }) => /* @__PURE__ */ jsx("div", { children });
|
|
10
10
|
const createNumberComparators = () => [
|
|
11
11
|
{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import NumberRange from "./NumberRange.js";
|
|
2
|
-
//#region packages/ui/
|
|
2
|
+
//#region packages/ui/Modules/CommonGrid/components/Filters/NumberRange/index.ts
|
|
3
3
|
var NumberRange_default = NumberRange;
|
|
4
4
|
//#endregion
|
|
5
5
|
export { NumberRange_default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useClickOutside } from "
|
|
1
|
+
import { useClickOutside } from "../../../../../Blocks/Modal/hooks/useClickOutside.js";
|
|
2
2
|
import { Input } from "../../../../../Forms/Input/Input.js";
|
|
3
3
|
import { useEvent } from "../../../hooks/useEvent.js";
|
|
4
4
|
import IconList from "../../IconList/IconList.js";
|
|
@@ -6,7 +6,7 @@ import { useCallback, useState } from "react";
|
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
import { i18n } from "@lingui/core";
|
|
8
8
|
import { Trans } from "@lingui/react";
|
|
9
|
-
//#region packages/ui/
|
|
9
|
+
//#region packages/ui/Modules/CommonGrid/components/Filters/TextRange/TextRange.tsx
|
|
10
10
|
const OverlayComponentDefault = ({ children }) => /* @__PURE__ */ jsx("div", { children });
|
|
11
11
|
const ipv4 = /^([01]?[0-9]?[0-9]|2[0-4][0-9]|25[0-5])\.([01]?[0-9]?[0-9]|2[0-4][0-9]|25[0-5])\.([01]?[0-9]?[0-9]|2[0-4][0-9]|25[0-5])\.([01]?[0-9]?[0-9]|2[0-4][0-9]|25[0-5])$/;
|
|
12
12
|
const createTextComparators = () => [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import TextRange from "./TextRange.js";
|
|
2
|
-
//#region packages/ui/
|
|
2
|
+
//#region packages/ui/Modules/CommonGrid/components/Filters/TextRange/index.ts
|
|
3
3
|
var TextRange_default = TextRange;
|
|
4
4
|
//#endregion
|
|
5
5
|
export { TextRange_default as default };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { DropdownMenu } from "../../../../Elements/DropdownMenu/DropdownMenu.js";
|
|
2
2
|
import "../../../../Elements/DropdownMenu/index.js";
|
|
3
|
-
import Popover from "
|
|
3
|
+
import Popover from "../../../../Blocks/Popover/index.js";
|
|
4
4
|
import { useCallback, useRef, useState } from "react";
|
|
5
5
|
import styled$1 from "@xstyled/styled-components";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
-
//#region packages/ui/
|
|
7
|
+
//#region packages/ui/Modules/CommonGrid/components/FloatingButton/FloatingButton.tsx
|
|
8
8
|
const FloatingWrapper = styled$1.div`
|
|
9
9
|
display: block;
|
|
10
10
|
position: absolute;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import FloatingButton from "./FloatingButton.js";
|
|
2
|
-
//#region packages/ui/
|
|
2
|
+
//#region packages/ui/Modules/CommonGrid/components/FloatingButton/index.tsx
|
|
3
3
|
var FloatingButton_default = FloatingButton;
|
|
4
4
|
//#endregion
|
|
5
5
|
export { FloatingButton_default as default };
|
|
@@ -3,7 +3,7 @@ import { useGridAggregation } from "./hooks/useGridAggregation.js";
|
|
|
3
3
|
import { ColumnTitle, StyledSelect, Wrapper } from "./styles.js";
|
|
4
4
|
import { useCallback, useState } from "react";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
-
//#region packages/ui/
|
|
6
|
+
//#region packages/ui/Modules/CommonGrid/components/GridAggregation/GridAggregation.tsx
|
|
7
7
|
const GridAggregation = ({ rowsData, columns, activeColumnName }) => {
|
|
8
8
|
const [operation, setOperation] = useState("sum");
|
|
9
9
|
const { column, isNumberFilter, numericValues, operationOptions, selectedOption } = useGridAggregation({
|
package/ui/{Blocks → Modules}/CommonGrid/components/GridAggregation/hooks/useGridAggregation.js
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { aggregate } from "../utils/aggregate.js";
|
|
2
2
|
import { useMemo } from "react";
|
|
3
3
|
import get from "lodash/fp/get";
|
|
4
|
-
//#region packages/ui/
|
|
4
|
+
//#region packages/ui/Modules/CommonGrid/components/GridAggregation/hooks/useGridAggregation.ts
|
|
5
5
|
const useGridAggregation = ({ rowsData, columns, activeColumnName, operation }) => {
|
|
6
6
|
const column = useMemo(() => {
|
|
7
7
|
if (!activeColumnName || !rowsData?.length) return null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import styled$1, { x } from "@xstyled/styled-components";
|
|
2
|
-
//#region packages/ui/
|
|
2
|
+
//#region packages/ui/Modules/CommonGrid/components/GridAggregation/styles.ts
|
|
3
3
|
const Wrapper = styled$1(x.div)`
|
|
4
4
|
display: none;
|
|
5
5
|
@media (min-width: 768px) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region packages/ui/
|
|
1
|
+
//#region packages/ui/Modules/CommonGrid/components/GridAggregation/utils/aggregate.ts
|
|
2
2
|
const aggregate = (values, operation) => {
|
|
3
3
|
if (values.length === 0) return 0;
|
|
4
4
|
switch (operation) {
|