@mailstep/design-system 0.4.21 → 0.5.0-beta.10
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 +33 -2
- package/ui/Blocks/CommonGrid/CommonGrid.d.ts +3 -0
- package/ui/Blocks/CommonGrid/CommonGrid.js +106 -0
- package/ui/Blocks/CommonGrid/CommonGridContainer.d.ts +3 -0
- package/ui/Blocks/CommonGrid/CommonGridContainer.js +67 -0
- package/ui/Blocks/CommonGrid/CommonGridContext.d.ts +9 -0
- package/ui/Blocks/CommonGrid/CommonGridContext.js +32 -0
- package/ui/Blocks/CommonGrid/HoC/withReduxActions.d.ts +2 -0
- package/ui/Blocks/CommonGrid/HoC/withReduxActions.js +36 -0
- package/ui/Blocks/CommonGrid/StandardButtons.d.ts +6 -0
- package/ui/Blocks/CommonGrid/StandardButtons.js +50 -0
- package/ui/Blocks/CommonGrid/components/ActionHead/ActionHead.d.ts +11 -0
- package/ui/Blocks/CommonGrid/components/ActionHead/ActionHead.js +53 -0
- package/ui/Blocks/CommonGrid/components/ActionHead/components/ActionDropdownMenu.d.ts +11 -0
- package/ui/Blocks/CommonGrid/components/ActionHead/components/ActionDropdownMenu.js +18 -0
- package/ui/Blocks/CommonGrid/components/ActionHead/components/ActionDropdownSelect.d.ts +12 -0
- package/ui/Blocks/CommonGrid/components/ActionHead/components/ActionDropdownSelect.js +45 -0
- package/ui/Blocks/CommonGrid/components/ActionHead/index.d.ts +2 -0
- package/ui/Blocks/CommonGrid/components/ActionHead/index.js +2 -0
- package/ui/Blocks/CommonGrid/components/BooleanSelect/BooleanSelect.d.ts +6 -0
- package/ui/Blocks/CommonGrid/components/BooleanSelect/BooleanSelect.js +35 -0
- package/ui/Blocks/CommonGrid/components/BooleanSelect/index.d.ts +2 -0
- package/ui/Blocks/CommonGrid/components/BooleanSelect/index.js +2 -0
- package/ui/Blocks/CommonGrid/components/ButtonMore/ButtonMore.d.ts +13 -0
- package/ui/Blocks/CommonGrid/components/ButtonMore/ButtonMore.js +32 -0
- package/ui/Blocks/CommonGrid/components/ButtonMore/index.d.ts +2 -0
- package/ui/Blocks/CommonGrid/components/ButtonMore/index.js +2 -0
- package/ui/Blocks/CommonGrid/components/ColumnFilterCell.d.ts +11 -0
- package/ui/Blocks/CommonGrid/components/ColumnFilterCell.js +41 -0
- package/ui/Blocks/CommonGrid/components/ColumnTitle/ColumnTitle.d.ts +5 -0
- package/ui/Blocks/CommonGrid/components/ColumnTitle/ColumnTitle.js +58 -0
- package/ui/Blocks/CommonGrid/components/ColumnTitle/index.d.ts +2 -0
- package/ui/Blocks/CommonGrid/components/ColumnTitle/index.js +2 -0
- package/ui/Blocks/CommonGrid/components/ColumnTitle.d.ts +9 -0
- package/ui/Blocks/CommonGrid/components/ColumnTitle.js +20 -0
- package/ui/Blocks/CommonGrid/components/ControlButtons/ControlButtons.d.ts +11 -0
- package/ui/Blocks/CommonGrid/components/ControlButtons/ControlButtons.js +20 -0
- package/ui/Blocks/CommonGrid/components/ControlButtons/index.d.ts +2 -0
- package/ui/Blocks/CommonGrid/components/ControlButtons/index.js +2 -0
- package/ui/Blocks/CommonGrid/components/DataCell.d.ts +11 -0
- package/ui/Blocks/CommonGrid/components/DataCell.js +52 -0
- package/ui/Blocks/CommonGrid/components/DataRow.d.ts +21 -0
- package/ui/Blocks/CommonGrid/components/DataRow.js +110 -0
- package/ui/Blocks/CommonGrid/components/DatePickerRange/DatePickerRange.d.ts +12 -0
- package/ui/Blocks/CommonGrid/components/DatePickerRange/DatePickerRange.js +113 -0
- package/ui/Blocks/CommonGrid/components/DatePickerRange/index.d.ts +2 -0
- package/ui/Blocks/CommonGrid/components/DatePickerRange/index.js +2 -0
- package/ui/Blocks/CommonGrid/components/DatePickerRange/utils/sameDate.d.ts +1 -0
- package/ui/Blocks/CommonGrid/components/DatePickerRange/utils/sameDate.js +3 -0
- package/ui/Blocks/CommonGrid/components/DropdownSelect/DropdownSelect.d.ts +21 -0
- package/ui/Blocks/CommonGrid/components/DropdownSelect/DropdownSelect.js +47 -0
- package/ui/Blocks/CommonGrid/components/DropdownSelect/index.d.ts +4 -0
- package/ui/Blocks/CommonGrid/components/DropdownSelect/index.js +3 -0
- package/ui/Blocks/CommonGrid/components/ExtraControlButtons/ExtraControlButtons.d.ts +8 -0
- package/ui/Blocks/CommonGrid/components/ExtraControlButtons/ExtraControlButtons.js +43 -0
- package/ui/Blocks/CommonGrid/components/ExtraControlButtons/index.d.ts +2 -0
- package/ui/Blocks/CommonGrid/components/ExtraControlButtons/index.js +2 -0
- package/ui/Blocks/CommonGrid/components/FilterDropdown.d.ts +3 -0
- package/ui/Blocks/CommonGrid/components/FilterDropdown.js +36 -0
- package/ui/Blocks/CommonGrid/components/FilterRow.d.ts +15 -0
- package/ui/Blocks/CommonGrid/components/FilterRow.js +34 -0
- package/ui/Blocks/CommonGrid/components/FloatingButton/FloatingButton.d.ts +7 -0
- package/ui/Blocks/CommonGrid/components/FloatingButton/FloatingButton.js +45 -0
- package/ui/Blocks/CommonGrid/components/FloatingButton/index.d.ts +2 -0
- package/ui/Blocks/CommonGrid/components/FloatingButton/index.js +2 -0
- package/ui/Blocks/CommonGrid/components/GridSelect/GridSelect.d.ts +10 -0
- package/ui/Blocks/CommonGrid/components/GridSelect/GridSelect.js +19 -0
- package/ui/Blocks/CommonGrid/components/GridSelect/index.d.ts +2 -0
- package/ui/Blocks/CommonGrid/components/GridSelect/index.js +2 -0
- package/ui/Blocks/CommonGrid/components/GroupRow.d.ts +9 -0
- package/ui/Blocks/CommonGrid/components/GroupRow.js +27 -0
- package/ui/Blocks/CommonGrid/components/HeadCell.d.ts +27 -0
- package/ui/Blocks/CommonGrid/components/HeadCell.js +40 -0
- package/ui/Blocks/CommonGrid/components/HeadRow.d.ts +15 -0
- package/ui/Blocks/CommonGrid/components/HeadRow.js +69 -0
- package/ui/Blocks/CommonGrid/components/HidePrint/HidePrint.d.ts +6 -0
- package/ui/Blocks/CommonGrid/components/HidePrint/HidePrint.js +13 -0
- package/ui/Blocks/CommonGrid/components/IconList/IconList.d.ts +18 -0
- package/ui/Blocks/CommonGrid/components/IconList/IconList.js +29 -0
- package/ui/Blocks/CommonGrid/components/IconList/index.d.ts +2 -0
- package/ui/Blocks/CommonGrid/components/IconList/index.js +2 -0
- package/ui/Blocks/CommonGrid/components/ManageColumnForm/ManageColumnForm.d.ts +11 -0
- package/ui/Blocks/CommonGrid/components/ManageColumnForm/ManageColumnForm.js +20 -0
- package/ui/Blocks/CommonGrid/components/ManageColumnForm/components/ActionRow.d.ts +12 -0
- package/ui/Blocks/CommonGrid/components/ManageColumnForm/components/ActionRow.js +47 -0
- package/ui/Blocks/CommonGrid/components/ManageColumnForm/index.d.ts +2 -0
- package/ui/Blocks/CommonGrid/components/ManageColumnForm/index.js +2 -0
- package/ui/Blocks/CommonGrid/components/NumberRange/NumberRange.d.ts +3 -0
- package/ui/Blocks/CommonGrid/components/NumberRange/NumberRange.js +76 -0
- package/ui/Blocks/CommonGrid/components/NumberRange/index.d.ts +2 -0
- package/ui/Blocks/CommonGrid/components/NumberRange/index.js +2 -0
- package/ui/Blocks/CommonGrid/components/NumberRange/types.d.ts +17 -0
- package/ui/Blocks/CommonGrid/components/NumberRange/types.js +1 -0
- package/ui/Blocks/CommonGrid/components/OversizedScroll.d.ts +11 -0
- package/ui/Blocks/CommonGrid/components/OversizedScroll.js +21 -0
- package/ui/Blocks/CommonGrid/components/ReadEditButtonCell/ReadEditButtonCell.d.ts +6 -0
- package/ui/Blocks/CommonGrid/components/ReadEditButtonCell/ReadEditButtonCell.js +26 -0
- package/ui/Blocks/CommonGrid/components/ReadEditButtonCell/index.d.ts +2 -0
- package/ui/Blocks/CommonGrid/components/ReadEditButtonCell/index.js +2 -0
- package/ui/Blocks/CommonGrid/components/Resize.d.ts +7 -0
- package/ui/Blocks/CommonGrid/components/Resize.js +33 -0
- package/ui/Blocks/CommonGrid/components/Table.d.ts +10 -0
- package/ui/Blocks/CommonGrid/components/Table.js +25 -0
- package/ui/Blocks/CommonGrid/components/TablePagination/TablePagination.d.ts +7 -0
- package/ui/Blocks/CommonGrid/components/TablePagination/TablePagination.js +31 -0
- package/ui/Blocks/CommonGrid/components/TablePagination/index.d.ts +2 -0
- package/ui/Blocks/CommonGrid/components/TablePagination/index.js +2 -0
- package/ui/Blocks/CommonGrid/components/TextRange/TextRange.d.ts +4 -0
- package/ui/Blocks/CommonGrid/components/TextRange/TextRange.js +89 -0
- package/ui/Blocks/CommonGrid/components/TextRange/index.d.ts +2 -0
- package/ui/Blocks/CommonGrid/components/TextRange/index.js +2 -0
- package/ui/Blocks/CommonGrid/components/TextRange/types.d.ts +21 -0
- package/ui/Blocks/CommonGrid/components/TextRange/types.js +1 -0
- package/ui/Blocks/CommonGrid/components/gridCells/BoolIcon.d.ts +5 -0
- package/ui/Blocks/CommonGrid/components/gridCells/BoolIcon.js +22 -0
- package/ui/Blocks/CommonGrid/components/gridCells/ButtonInCell.d.ts +4 -0
- package/ui/Blocks/CommonGrid/components/gridCells/ButtonInCell.js +16 -0
- package/ui/Blocks/CommonGrid/components/gridCells/Date.d.ts +4 -0
- package/ui/Blocks/CommonGrid/components/gridCells/Date.js +8 -0
- package/ui/Blocks/CommonGrid/components/gridCells/DateTime.d.ts +4 -0
- package/ui/Blocks/CommonGrid/components/gridCells/DateTime.js +13 -0
- package/ui/Blocks/CommonGrid/components/gridCells/EnumInCell.d.ts +9 -0
- package/ui/Blocks/CommonGrid/components/gridCells/EnumInCell.js +33 -0
- package/ui/Blocks/CommonGrid/components/gridCells/HoverBubble.d.ts +5 -0
- package/ui/Blocks/CommonGrid/components/gridCells/HoverBubble.js +19 -0
- package/ui/Blocks/CommonGrid/components/gridCells/IconButtonInCell.d.ts +9 -0
- package/ui/Blocks/CommonGrid/components/gridCells/IconButtonInCell.js +15 -0
- package/ui/Blocks/CommonGrid/components/gridCells/ImageCell.d.ts +6 -0
- package/ui/Blocks/CommonGrid/components/gridCells/ImageCell.js +23 -0
- package/ui/Blocks/CommonGrid/components/gridCells/LinkInCell.d.ts +1 -0
- package/ui/Blocks/CommonGrid/components/gridCells/LinkInCell.js +8 -0
- package/ui/Blocks/CommonGrid/components/gridCells/RemoveItem.d.ts +5 -0
- package/ui/Blocks/CommonGrid/components/gridCells/RemoveItem.js +24 -0
- package/ui/Blocks/CommonGrid/components/gridCells/RowActionsCell.d.ts +7 -0
- package/ui/Blocks/CommonGrid/components/gridCells/RowActionsCell.js +30 -0
- package/ui/Blocks/CommonGrid/components/gridCells/StringJoin.d.ts +4 -0
- package/ui/Blocks/CommonGrid/components/gridCells/StringJoin.js +7 -0
- package/ui/Blocks/CommonGrid/components/gridCells/SwitchInCell.d.ts +2 -0
- package/ui/Blocks/CommonGrid/components/gridCells/SwitchInCell.js +16 -0
- package/ui/Blocks/CommonGrid/components/gridCells/index.d.ts +12 -0
- package/ui/Blocks/CommonGrid/components/gridCells/index.js +12 -0
- package/ui/Blocks/CommonGrid/components/icons/ArrowSimple.d.ts +2 -0
- package/ui/Blocks/CommonGrid/components/icons/ArrowSimple.js +14 -0
- package/ui/Blocks/CommonGrid/components/icons/Edit.d.ts +2 -0
- package/ui/Blocks/CommonGrid/components/icons/Edit.js +14 -0
- package/ui/Blocks/CommonGrid/components/icons/EyeOpen.d.ts +2 -0
- package/ui/Blocks/CommonGrid/components/icons/EyeOpen.js +14 -0
- package/ui/Blocks/CommonGrid/components/icons/Sorting.d.ts +2 -0
- package/ui/Blocks/CommonGrid/components/icons/Sorting.js +14 -0
- package/ui/Blocks/CommonGrid/components/utils.d.ts +8 -0
- package/ui/Blocks/CommonGrid/components/utils.js +22 -0
- package/ui/Blocks/CommonGrid/hooks/useColumnSizes.d.ts +12 -0
- package/ui/Blocks/CommonGrid/hooks/useColumnSizes.js +83 -0
- package/ui/Blocks/CommonGrid/hooks/useEditReadAsColumn.d.ts +15 -0
- package/ui/Blocks/CommonGrid/hooks/useEditReadAsColumn.js +70 -0
- package/ui/Blocks/CommonGrid/hooks/useGetGridHeight.d.ts +7 -0
- package/ui/Blocks/CommonGrid/hooks/useGetGridHeight.js +33 -0
- package/ui/Blocks/CommonGrid/hooks/useManageColumn.d.ts +19 -0
- package/ui/Blocks/CommonGrid/hooks/useManageColumn.js +34 -0
- package/ui/Blocks/CommonGrid/hooks/useRowsKeyControls.d.ts +4 -0
- package/ui/Blocks/CommonGrid/hooks/useRowsKeyControls.js +21 -0
- package/ui/Blocks/CommonGrid/hooks/useUxReset.d.ts +3 -0
- package/ui/Blocks/CommonGrid/hooks/useUxReset.js +15 -0
- package/ui/Blocks/CommonGrid/index.d.ts +7 -0
- package/ui/Blocks/CommonGrid/index.js +7 -0
- package/ui/Blocks/CommonGrid/store/index.d.ts +58 -0
- package/ui/Blocks/CommonGrid/store/index.js +230 -0
- package/ui/Blocks/CommonGrid/store/migrateState.d.ts +3 -0
- package/ui/Blocks/CommonGrid/store/migrateState.js +14 -0
- package/ui/Blocks/CommonGrid/storybook/stories/complexWithPaginationAndRedux.stories.d.ts +11 -0
- package/ui/Blocks/CommonGrid/storybook/stories/complexWithPaginationAndRedux.stories.js +31 -0
- package/ui/Blocks/CommonGrid/storybook/stories/customControllButtons.stories.d.ts +13 -0
- package/ui/Blocks/CommonGrid/storybook/stories/customControllButtons.stories.js +49 -0
- package/ui/Blocks/CommonGrid/storybook/stories/default.stories.d.ts +6 -0
- package/ui/Blocks/CommonGrid/storybook/stories/default.stories.js +14 -0
- package/ui/Blocks/CommonGrid/storybook/stories/loading.stories.d.ts +10 -0
- package/ui/Blocks/CommonGrid/storybook/stories/loading.stories.js +11 -0
- package/ui/Blocks/CommonGrid/storybook/stories/manyColumnsNoScrollLayout.stories.d.ts +10 -0
- package/ui/Blocks/CommonGrid/storybook/stories/manyColumnsNoScrollLayout.stories.js +12 -0
- package/ui/Blocks/CommonGrid/storybook/stories/manyColumnsNormalLayout.stories.d.ts +10 -0
- package/ui/Blocks/CommonGrid/storybook/stories/manyColumnsNormalLayout.stories.js +12 -0
- package/ui/Blocks/CommonGrid/storybook/stories/styledCommonGrid.stories.d.ts +6 -0
- package/ui/Blocks/CommonGrid/storybook/stories/styledCommonGrid.stories.js +15 -0
- package/ui/Blocks/CommonGrid/storybook/stories/withCustomGridActions.stories.d.ts +10 -0
- package/ui/Blocks/CommonGrid/storybook/stories/withCustomGridActions.stories.js +15 -0
- package/ui/Blocks/CommonGrid/storybook/stories/withForcedCheckboxes.stories.d.ts +14 -0
- package/ui/Blocks/CommonGrid/storybook/stories/withForcedCheckboxes.stories.js +24 -0
- package/ui/Blocks/CommonGrid/storybook/utils/actions.d.ts +4 -0
- package/ui/Blocks/CommonGrid/storybook/utils/actions.js +6 -0
- package/ui/Blocks/CommonGrid/storybook/utils/columnDefinition.d.ts +10 -0
- package/ui/Blocks/CommonGrid/storybook/utils/columnDefinition.js +97 -0
- package/ui/Blocks/CommonGrid/storybook/utils/filters.d.ts +2 -0
- package/ui/Blocks/CommonGrid/storybook/utils/filters.js +23 -0
- package/ui/Blocks/CommonGrid/storybook/utils/utils.d.ts +17 -0
- package/ui/Blocks/CommonGrid/storybook/utils/utils.js +66 -0
- package/ui/Blocks/CommonGrid/storybook/utils/withRedux.d.ts +2 -0
- package/ui/Blocks/CommonGrid/storybook/utils/withRedux.js +12 -0
- package/ui/Blocks/CommonGrid/storybook/utils/withRouter.d.ts +2 -0
- package/ui/Blocks/CommonGrid/storybook/utils/withRouter.js +4 -0
- package/ui/Blocks/CommonGrid/storybook/utils/withTheme.d.ts +2 -0
- package/ui/Blocks/CommonGrid/storybook/utils/withTheme.js +18 -0
- package/ui/Blocks/CommonGrid/styles.d.ts +12 -0
- package/ui/Blocks/CommonGrid/styles.js +33 -0
- package/ui/Blocks/CommonGrid/translations.d.ts +1 -0
- package/ui/Blocks/CommonGrid/translations.js +6 -0
- package/ui/Blocks/CommonGrid/types.d.ts +313 -0
- package/ui/Blocks/CommonGrid/types.js +8 -0
- package/ui/Blocks/CommonGrid/utils/index.d.ts +19 -0
- package/ui/Blocks/CommonGrid/utils/index.js +78 -0
- package/ui/Blocks/CommonGrid/utils/public.d.ts +16 -0
- package/ui/Blocks/CommonGrid/utils/public.js +52 -0
- package/ui/Blocks/Popover/index.d.ts +10 -0
- package/ui/Blocks/Popover/index.js +19 -0
- package/ui/Elements/DatePicker/DatePicker.d.ts +20 -0
- package/ui/Elements/DatePicker/DatePicker.js +65 -0
- package/ui/Elements/DatePicker/Datetime/DateTime.d.ts +95 -0
- package/ui/Elements/DatePicker/Datetime/DateTime.js +516 -0
- package/ui/Elements/DatePicker/Datetime/components/Timepicker.d.ts +8 -0
- package/ui/Elements/DatePicker/Datetime/components/Timepicker.js +57 -0
- package/ui/Elements/DatePicker/Datetime/components/ViewNavigation.d.ts +9 -0
- package/ui/Elements/DatePicker/Datetime/components/ViewNavigation.js +16 -0
- package/ui/Elements/DatePicker/Datetime/types.d.ts +61 -0
- package/ui/Elements/DatePicker/Datetime/types.js +7 -0
- package/ui/Elements/DatePicker/Datetime/views/DaysView.d.ts +14 -0
- package/ui/Elements/DatePicker/Datetime/views/DaysView.js +145 -0
- package/ui/Elements/DatePicker/Datetime/views/MonthsView.d.ts +10 -0
- package/ui/Elements/DatePicker/Datetime/views/MonthsView.js +111 -0
- package/ui/Elements/DatePicker/Datetime/views/YearsView.d.ts +15 -0
- package/ui/Elements/DatePicker/Datetime/views/YearsView.js +117 -0
- package/ui/Elements/DatePicker/index.d.ts +2 -0
- package/ui/Elements/DatePicker/index.js +2 -0
- package/ui/Elements/DatePicker/styles.d.ts +2 -0
- package/ui/Elements/DatePicker/styles.js +8 -0
- package/ui/Elements/DatePicker/utils/getLanguage.d.ts +1 -0
- package/ui/Elements/DatePicker/utils/getLanguage.js +10 -0
- package/ui/Elements/DropdownMenu/DropdownMenu.d.ts +2 -0
- package/ui/Elements/DropdownMenu/DropdownMenu.js +36 -0
- package/ui/Elements/DropdownMenu/components/DefaultItem.d.ts +3 -0
- package/ui/Elements/DropdownMenu/components/DefaultItem.js +16 -0
- package/ui/Elements/DropdownMenu/components/MenuItem.d.ts +3 -0
- package/ui/Elements/DropdownMenu/components/MenuItem.js +51 -0
- package/ui/Elements/DropdownMenu/components/MenuList.d.ts +3 -0
- package/ui/Elements/DropdownMenu/components/MenuList.js +10 -0
- package/ui/Elements/DropdownMenu/index.d.ts +1 -0
- package/ui/Elements/DropdownMenu/index.js +1 -0
- package/ui/Elements/DropdownMenu/types.d.ts +41 -0
- package/ui/Elements/DropdownMenu/types.js +1 -0
- package/ui/Elements/HighlightBox/HighlightBox.d.ts +50 -0
- package/ui/Elements/HighlightBox/HighlightBox.js +65 -0
- package/ui/Elements/HighlightBox/index.d.ts +2 -0
- package/ui/Elements/HighlightBox/index.js +2 -0
- package/ui/Elements/MultiSelect/MultiSelect.d.ts +6 -0
- package/ui/Elements/MultiSelect/MultiSelect.js +29 -0
- package/ui/Elements/MultiSelect/index.d.ts +2 -0
- package/ui/Elements/MultiSelect/index.js +2 -0
- package/ui/Elements/Pagination/Pagination.d.ts +1 -1
- package/ui/Elements/Pagination/Pagination.js +6 -2
- package/ui/Elements/Pagination/styled.js +6 -6
- package/ui/Elements/Select/Select.d.ts +3 -0
- package/ui/Elements/Select/Select.js +69 -0
- package/ui/Elements/Select/index.d.ts +2 -0
- package/ui/Elements/Select/index.js +2 -0
- package/ui/Elements/Select/styles.d.ts +5 -0
- package/ui/Elements/Select/styles.js +12 -0
- package/ui/Elements/Select/themes/CustomComponents.d.ts +9 -0
- package/ui/Elements/Select/themes/CustomComponents.js +131 -0
- package/ui/Elements/Select/themes/baseStyles.d.ts +28 -0
- package/ui/Elements/Select/themes/baseStyles.js +70 -0
- package/ui/Elements/Select/themes/formStyles.d.ts +23 -0
- package/ui/Elements/Select/themes/formStyles.js +104 -0
- package/ui/Elements/Select/themes/headingStyles.d.ts +17 -0
- package/ui/Elements/Select/themes/headingStyles.js +99 -0
- package/ui/Elements/Select/themes/index.d.ts +3 -0
- package/ui/Elements/Select/themes/index.js +61 -0
- package/ui/Elements/Select/themes/leftMenuStyles.d.ts +18 -0
- package/ui/Elements/Select/themes/leftMenuStyles.js +57 -0
- package/ui/Elements/Select/types.d.ts +54 -0
- package/ui/Elements/Select/types.js +1 -0
- package/ui/Elements/SingleSelect/SingleSelect.d.ts +20 -0
- package/ui/Elements/SingleSelect/SingleSelect.js +197 -0
- package/ui/Elements/SingleSelect/index.d.ts +2 -0
- package/ui/Elements/SingleSelect/index.js +2 -0
- package/ui/Forms/Input/types.d.ts +2 -2
- package/ui/index.es.js +868 -1104
- package/ui/index.umd.js +8 -5
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
2
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
3
|
+
return cooked;
|
|
4
|
+
};
|
|
5
|
+
var __assign = (this && this.__assign) || function () {
|
|
6
|
+
__assign = Object.assign || function(t) {
|
|
7
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
8
|
+
s = arguments[i];
|
|
9
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
10
|
+
t[p] = s[p];
|
|
11
|
+
}
|
|
12
|
+
return t;
|
|
13
|
+
};
|
|
14
|
+
return __assign.apply(this, arguments);
|
|
15
|
+
};
|
|
16
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
17
|
+
var t = {};
|
|
18
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
19
|
+
t[p] = s[p];
|
|
20
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
21
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
22
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
23
|
+
t[p[i]] = s[p[i]];
|
|
24
|
+
}
|
|
25
|
+
return t;
|
|
26
|
+
};
|
|
27
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
28
|
+
import React, { useState, useCallback, useMemo } from 'react';
|
|
29
|
+
import { DateTime } from 'luxon';
|
|
30
|
+
import styled from '@xstyled/styled-components';
|
|
31
|
+
import { sameDate } from './utils/sameDate';
|
|
32
|
+
import { t } from '@lingui/macro';
|
|
33
|
+
import { useClickOutside } from '../../../Modal/hooks/useClickOutside';
|
|
34
|
+
import DatePicker from '../../../../Elements/DatePicker';
|
|
35
|
+
import Input from '../../../../Forms/Input';
|
|
36
|
+
var RangeWrapper = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: inline-flex;\n margin-right: 20px;\n"], ["\n display: inline-flex;\n margin-right: 20px;\n"
|
|
37
|
+
// User readable date range.
|
|
38
|
+
])));
|
|
39
|
+
// User readable date range.
|
|
40
|
+
var pickerRangeToString = function (values) {
|
|
41
|
+
if (values === void 0) { values = []; }
|
|
42
|
+
// If no date is specified
|
|
43
|
+
if (!values[0] && !values[1]) {
|
|
44
|
+
return '';
|
|
45
|
+
}
|
|
46
|
+
// If only From date is specified
|
|
47
|
+
if (values[0] && !values[1]) {
|
|
48
|
+
return DateTime.fromJSDate(values[0]).toFormat('dd.LL.yyyy');
|
|
49
|
+
}
|
|
50
|
+
// If both of date are same, show only one date
|
|
51
|
+
if (sameDate(values[0], values[1])) {
|
|
52
|
+
return DateTime.fromJSDate(values[0]).toFormat('dd.LL.yyyy');
|
|
53
|
+
}
|
|
54
|
+
// Format each date separately and join together
|
|
55
|
+
return values.map(function (v) { return v && DateTime.fromJSDate(v).toFormat('dd.LL.yyyy'); }).join(' - ');
|
|
56
|
+
};
|
|
57
|
+
var OverlayComponentDefault = function (_a) {
|
|
58
|
+
var children = _a.children;
|
|
59
|
+
return _jsx("div", { children: children });
|
|
60
|
+
};
|
|
61
|
+
var DatePickerRange = function (props) {
|
|
62
|
+
var _a, _b, _c;
|
|
63
|
+
var onChange = props.onChange, error = props.error, label = props.label, value = props.value, filterTime = props.filterTime, initialView = props.initialView, _d = props.OverlayComponent, OverlayComponent = _d === void 0 ? OverlayComponentDefault : _d, rest = __rest(props, ["onChange", "error", "label", "value", "filterTime", "initialView", "OverlayComponent"]);
|
|
64
|
+
var _e = useState((_a = value === null || value === void 0 ? void 0 : value[0]) !== null && _a !== void 0 ? _a : undefined), startRangeValue = _e[0], setStartRangeValue = _e[1];
|
|
65
|
+
var _f = useState((_b = value === null || value === void 0 ? void 0 : value[1]) !== null && _b !== void 0 ? _b : undefined), endRangeValue = _f[0], setEndRangeValue = _f[1];
|
|
66
|
+
var timeFormat = filterTime ? 'HH:mm' : false;
|
|
67
|
+
var placeholder = t({ id: 'dataGrid.filterCell', message: 'Type to filter' });
|
|
68
|
+
var cleanValue = React.useMemo(function () { return [
|
|
69
|
+
typeof (value === null || value === void 0 ? void 0 : value[0]) === 'string' ? new Date(value[0]) : (value === null || value === void 0 ? void 0 : value[0]) || undefined,
|
|
70
|
+
typeof (value === null || value === void 0 ? void 0 : value[1]) === 'string' ? new Date(value[1]) : (value === null || value === void 0 ? void 0 : value[1]) || undefined,
|
|
71
|
+
]; }, [value]);
|
|
72
|
+
var initialViewDate = useMemo(function () {
|
|
73
|
+
if (cleanValue[0] && cleanValue[1]) {
|
|
74
|
+
return cleanValue;
|
|
75
|
+
}
|
|
76
|
+
var firstDate = new Date();
|
|
77
|
+
firstDate.setHours(0, 0, 0, 0);
|
|
78
|
+
var secondDate = new Date();
|
|
79
|
+
if (initialView === 'future') {
|
|
80
|
+
secondDate.setMonth(secondDate.getMonth() + 1);
|
|
81
|
+
}
|
|
82
|
+
else {
|
|
83
|
+
firstDate.setMonth(firstDate.getMonth() - 1);
|
|
84
|
+
}
|
|
85
|
+
return [firstDate, secondDate];
|
|
86
|
+
}, [cleanValue, initialView]);
|
|
87
|
+
var _g = useState(false), isOpen = _g[0], setOpen = _g[1];
|
|
88
|
+
var setDateFrom = useCallback(function (v) {
|
|
89
|
+
setStartRangeValue(v);
|
|
90
|
+
onChange([v, cleanValue[1]]);
|
|
91
|
+
}, [onChange, cleanValue]);
|
|
92
|
+
var setDateTo = useCallback(function (v) {
|
|
93
|
+
setEndRangeValue(v);
|
|
94
|
+
onChange([cleanValue[0], v]);
|
|
95
|
+
}, [onChange, cleanValue]);
|
|
96
|
+
var openPicker = useCallback(function () { return setOpen(true); }, [setOpen]);
|
|
97
|
+
var clear = useCallback(function () {
|
|
98
|
+
onChange([]);
|
|
99
|
+
setStartRangeValue(undefined);
|
|
100
|
+
setEndRangeValue(undefined);
|
|
101
|
+
}, [onChange]);
|
|
102
|
+
var isValidDateFrom = useCallback(function (current) { return !cleanValue[1] || DateTime.fromJSDate(cleanValue[1]) >= DateTime.fromJSDate(current); }, [cleanValue]);
|
|
103
|
+
var isValidDateTo = useCallback(function (current) { return !cleanValue[0] || DateTime.fromJSDate(current) >= DateTime.fromJSDate(cleanValue[0]); }, [cleanValue]);
|
|
104
|
+
var onClose = useCallback(function () {
|
|
105
|
+
setOpen(false);
|
|
106
|
+
}, []);
|
|
107
|
+
// Check if the second value is not selected and the first value is the same as the initial value
|
|
108
|
+
var secondDatePickerValue = cleanValue[1] === null ? cleanValue[0] : cleanValue[1];
|
|
109
|
+
var ref = useClickOutside({ onClose: onClose });
|
|
110
|
+
return (_jsxs("div", { ref: ref, children: [_jsx(Input, { name: props.name, placeholder: placeholder, type: "text", icon: "calendar", value: pickerRangeToString(cleanValue), label: props.label, onFocus: openPicker, iconOnClick: openPicker, appearance: "grid", onClear: clear, error: error, readOnly: true }), _jsx(OverlayComponent, { children: _jsx(_Fragment, { children: isOpen && (_jsxs(RangeWrapper, { className: "ignore-element-for-closing-hook", children: [_jsx(DatePicker, __assign({}, rest, { timeFormat: timeFormat, value: (_c = cleanValue[0]) !== null && _c !== void 0 ? _c : '', initialViewDate: initialViewDate[0], secondValue: endRangeValue, onChange: setDateFrom, icon: false, label: isOpen && t({ id: 'dataGrid.filterCell.from', message: 'From' }), isValidDate: isValidDateFrom, input: false, spaceAround: true, open: true, disabled: cleanValue[0] === null })), _jsx(DatePicker, __assign({}, rest, { timeFormat: timeFormat, value: secondDatePickerValue, initialViewDate: initialViewDate[1], secondValue: startRangeValue, onChange: setDateTo, icon: false, label: isOpen && t({ id: 'dataGrid.filterCell.to', message: 'To' }), isValidDate: isValidDateTo, input: false, spaceAround: true, open: true, disabled: secondDatePickerValue === null }))] })) }) })] }));
|
|
111
|
+
};
|
|
112
|
+
export default DatePickerRange;
|
|
113
|
+
var templateObject_1;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const sameDate: (date1: Date, date2: Date) => boolean;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { AppearanceValue } from '../../../../Elements/Button';
|
|
3
|
+
type Item = {
|
|
4
|
+
label: string | JSX.Element;
|
|
5
|
+
value: string;
|
|
6
|
+
name?: string;
|
|
7
|
+
};
|
|
8
|
+
type DropdownSelectProps = {
|
|
9
|
+
label: string | JSX.Element;
|
|
10
|
+
appearance?: AppearanceValue;
|
|
11
|
+
options: Item[];
|
|
12
|
+
showChevron?: boolean;
|
|
13
|
+
onSelect?: (value: Item['value']) => void;
|
|
14
|
+
icon?: JSX.Element;
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
ButtonComponent?: React.FC;
|
|
17
|
+
};
|
|
18
|
+
export declare const CustomSelectButton: import("styled-components").StyledComponent<"button", import("@xstyled/system").Theme, {}, never>;
|
|
19
|
+
declare const DropdownSelect: ({ label, appearance, options, showChevron, onSelect, disabled, icon, ButtonComponent, }: DropdownSelectProps) => JSX.Element;
|
|
20
|
+
export default DropdownSelect;
|
|
21
|
+
export type { Item as DropdownSelectItem };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
2
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
3
|
+
return cooked;
|
|
4
|
+
};
|
|
5
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
6
|
+
import React, { useCallback, useRef } from 'react';
|
|
7
|
+
import styled from '@xstyled/styled-components';
|
|
8
|
+
import Icon from '../../../../Elements/Icon/Icon';
|
|
9
|
+
import DropdownMenu from '../../../../Elements/DropdownMenu';
|
|
10
|
+
import Button from '../../../../Elements/Button';
|
|
11
|
+
import { Popover } from '../../../Popover';
|
|
12
|
+
var ArrowIcon = styled(Icon)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n flex-shrink: 0;\n margin-left: 2;\n"], ["\n flex-shrink: 0;\n margin-left: 2;\n"])));
|
|
13
|
+
var CustomIconWrap = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n margin-right: 1;\n"], ["\n margin-right: 1;\n"])));
|
|
14
|
+
var StyledDropdownMenu = styled(DropdownMenu)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n position: absolute;\n top: 8px;\n min-width: ", ";\n width: max-content;\n"], ["\n position: absolute;\n top: 8px;\n min-width: ", ";\n width: max-content;\n"])), function (_a) {
|
|
15
|
+
var $fixedWidth = _a.$fixedWidth;
|
|
16
|
+
return ($fixedWidth ? '160px' : 'max-content');
|
|
17
|
+
});
|
|
18
|
+
var ContentWrapper = styled.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n"], ["\n display: flex;\n align-items: center;\n"])));
|
|
19
|
+
var ChevronWrapper = styled.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n border-left: ", ";\n"], ["\n border-left: ", ";\n"])), function (_a) {
|
|
20
|
+
var $hasBorder = _a.$hasBorder;
|
|
21
|
+
return ($hasBorder ? '1px solid white' : 'none');
|
|
22
|
+
});
|
|
23
|
+
export var CustomSelectButton = styled.button(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n display: none;\n min-width: 160px;\n height: 38px;\n padding: 0;\n background-color: red1;\n color: white;\n font-size: 14px;\n line-height: 14px;\n font-weight: 600;\n border: none;\n border-radius: lg;\n outline: none;\n cursor: pointer;\n :disabled {\n border: slim;\n background-color: bgLightGray;\n border-color: lightGray5;\n color: gray3;\n opacity: 0.6;\n cursor: auto;\n }\n\n @media (min-width: 1024px) {\n display: block;\n\n :focus {\n outline: none;\n }\n }\n\n ", " {\n justify-content: space-between;\n padding-left: 14px;\n }\n\n ", " {\n margin-left: 20px;\n padding: 12px 14px;\n }\n"], ["\n display: none;\n min-width: 160px;\n height: 38px;\n padding: 0;\n background-color: red1;\n color: white;\n font-size: 14px;\n line-height: 14px;\n font-weight: 600;\n border: none;\n border-radius: lg;\n outline: none;\n cursor: pointer;\n :disabled {\n border: slim;\n background-color: bgLightGray;\n border-color: lightGray5;\n color: gray3;\n opacity: 0.6;\n cursor: auto;\n }\n\n @media (min-width: 1024px) {\n display: block;\n\n :focus {\n outline: none;\n }\n }\n\n ", " {\n justify-content: space-between;\n padding-left: 14px;\n }\n\n ", " {\n margin-left: 20px;\n padding: 12px 14px;\n }\n"])), ContentWrapper, ChevronWrapper);
|
|
24
|
+
var DropdownSelect = function (_a) {
|
|
25
|
+
var label = _a.label, appearance = _a.appearance, options = _a.options, showChevron = _a.showChevron, onSelect = _a.onSelect, disabled = _a.disabled, icon = _a.icon, ButtonComponent = _a.ButtonComponent;
|
|
26
|
+
var _b = React.useState(false), showDropdownMenu = _b[0], setShowDropdownMenu = _b[1];
|
|
27
|
+
var onClose = useCallback(function () { return setShowDropdownMenu(false); }, []);
|
|
28
|
+
var toggleDropdownMenu = React.useCallback(function () {
|
|
29
|
+
setShowDropdownMenu(function (prev) { return !prev; });
|
|
30
|
+
}, []);
|
|
31
|
+
var handleSelectItem = React.useCallback(function (item) {
|
|
32
|
+
setShowDropdownMenu(false);
|
|
33
|
+
onSelect === null || onSelect === void 0 ? void 0 : onSelect(item.value);
|
|
34
|
+
}, [onSelect]);
|
|
35
|
+
var ref = useRef(null);
|
|
36
|
+
var items = options.map(function (item) { return ({
|
|
37
|
+
title: item.label,
|
|
38
|
+
onClick: function () { return handleSelectItem(item); },
|
|
39
|
+
link: '#',
|
|
40
|
+
name: item.name,
|
|
41
|
+
}); });
|
|
42
|
+
var ComponentOfButton = ButtonComponent || Button;
|
|
43
|
+
var isCustomBtn = !!ButtonComponent;
|
|
44
|
+
return (_jsxs("div", { ref: ref, children: [_jsx(ComponentOfButton, { type: "button", appearance: appearance, onClick: toggleDropdownMenu, disabled: disabled, "data-cy": "createProductDropdownMenuBtn", children: _jsxs(ContentWrapper, { children: [icon && _jsx(CustomIconWrap, { children: icon }), _jsx("span", { children: label }), showChevron && (_jsx(ChevronWrapper, { "$hasBorder": isCustomBtn, children: _jsx(ArrowIcon, { icon: "chevronDown", size: isCustomBtn ? '100%' : '80%', fixedWidth: isCustomBtn }) }))] }) }), showDropdownMenu && (_jsx(Popover, { parentRef: ref, onClose: onClose, placement: "bottom-start", children: _jsx(StyledDropdownMenu, { showMenu: true, items: items, "$fixedWidth": isCustomBtn }) }))] }));
|
|
45
|
+
};
|
|
46
|
+
export default DropdownSelect;
|
|
47
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CommonGridProps, ExtraControlButton } from '../../types';
|
|
2
|
+
export declare const Row: import("styled-components").StyledComponent<"div", import("@xstyled/system").Theme, {}, never>;
|
|
3
|
+
type Props = {
|
|
4
|
+
extraControlButtons: CommonGridProps['extraControlButtons'];
|
|
5
|
+
targetPosition: ExtraControlButton['position'];
|
|
6
|
+
};
|
|
7
|
+
declare const ExtraControlButtons: ({ extraControlButtons, targetPosition }: Props) => JSX.Element;
|
|
8
|
+
export default ExtraControlButtons;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
2
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
3
|
+
return cooked;
|
|
4
|
+
};
|
|
5
|
+
var __assign = (this && this.__assign) || function () {
|
|
6
|
+
__assign = Object.assign || function(t) {
|
|
7
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
8
|
+
s = arguments[i];
|
|
9
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
10
|
+
t[p] = s[p];
|
|
11
|
+
}
|
|
12
|
+
return t;
|
|
13
|
+
};
|
|
14
|
+
return __assign.apply(this, arguments);
|
|
15
|
+
};
|
|
16
|
+
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
17
|
+
import styled, { x } from '@xstyled/styled-components';
|
|
18
|
+
import Button from '../../../../Elements/Button/Button';
|
|
19
|
+
import DropdownSelect from '../DropdownSelect';
|
|
20
|
+
export var Row = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n & > * {\n margin-right: 12px;\n }\n z-index: 2;\n"], ["\n display: flex;\n & > * {\n margin-right: 12px;\n }\n z-index: 2;\n"])));
|
|
21
|
+
var StyledButton = styled(Button)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: none;\n\n @media (min-width: 1024px) {\n display: block;\n }\n"], ["\n display: none;\n\n @media (min-width: 1024px) {\n display: block;\n }\n"])));
|
|
22
|
+
var ControlButton = function (_a) {
|
|
23
|
+
var node = _a.node, label = _a.label, style = _a.style, disabled = _a.disabled, onClick = _a.onClick, onSelect = _a.onSelect, options = _a.options, hideChevron = _a.hideChevron;
|
|
24
|
+
if (node)
|
|
25
|
+
return _jsx(_Fragment, { children: node });
|
|
26
|
+
if (options) {
|
|
27
|
+
return (_jsx(DropdownSelect, { label: label || '', appearance: style || 'secondary', options: options, showChevron: !hideChevron, onSelect: onSelect, disabled: disabled }));
|
|
28
|
+
}
|
|
29
|
+
else {
|
|
30
|
+
return (_jsx(StyledButton, { type: "button", onClick: onClick, disabled: disabled, appearance: style || 'secondary', children: label }));
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
var ExtraControlButtons = function (_a) {
|
|
34
|
+
var extraControlButtons = _a.extraControlButtons, targetPosition = _a.targetPosition;
|
|
35
|
+
return (_jsx(Row, { children: (extraControlButtons || [])
|
|
36
|
+
.filter(function (_a) {
|
|
37
|
+
var position = _a.position;
|
|
38
|
+
return position == targetPosition;
|
|
39
|
+
})
|
|
40
|
+
.map(function (button, idx) { return (_jsx(x.div, { children: _jsx(ControlButton, __assign({}, button)) }, idx)); }) }));
|
|
41
|
+
};
|
|
42
|
+
export default ExtraControlButtons;
|
|
43
|
+
var templateObject_1, templateObject_2;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
2
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
3
|
+
return cooked;
|
|
4
|
+
};
|
|
5
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
+
import React from 'react';
|
|
7
|
+
import styled from '@xstyled/styled-components';
|
|
8
|
+
var OverlayWrapper = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: absolute;\n z-index: 1;\n visibility: hidden;\n"], ["\n position: absolute;\n z-index: 1;\n visibility: hidden;\n"])));
|
|
9
|
+
var OverlayComponent = function (_a) {
|
|
10
|
+
var children = _a.children;
|
|
11
|
+
var overlayRef = React.useRef(null);
|
|
12
|
+
React.useEffect(function () {
|
|
13
|
+
var _a;
|
|
14
|
+
var Overlay = overlayRef.current;
|
|
15
|
+
if (!Overlay)
|
|
16
|
+
return;
|
|
17
|
+
var FilterCell = Overlay === null || Overlay === void 0 ? void 0 : Overlay.closest('.cell');
|
|
18
|
+
var GridWrapper = FilterCell === null || FilterCell === void 0 ? void 0 : FilterCell.closest('.gridWrapper');
|
|
19
|
+
// position of left edge of filter cell
|
|
20
|
+
var relativeLeftOffset = (FilterCell === null || FilterCell === void 0 ? void 0 : FilterCell.offsetLeft) - ((_a = FilterCell === null || FilterCell === void 0 ? void 0 : FilterCell.parentElement) === null || _a === void 0 ? void 0 : _a.offsetLeft); // parent element = row
|
|
21
|
+
// space available to the right edge of visible part of grid
|
|
22
|
+
var spaceTotal = (GridWrapper === null || GridWrapper === void 0 ? void 0 : GridWrapper.clientWidth) + (GridWrapper === null || GridWrapper === void 0 ? void 0 : GridWrapper.scrollLeft) - relativeLeftOffset;
|
|
23
|
+
// difference between availible space and width
|
|
24
|
+
var spaceLeft = spaceTotal - (Overlay === null || Overlay === void 0 ? void 0 : Overlay.clientWidth);
|
|
25
|
+
// left position
|
|
26
|
+
var left = spaceLeft > 0 ? FilterCell === null || FilterCell === void 0 ? void 0 : FilterCell.offsetLeft : (FilterCell === null || FilterCell === void 0 ? void 0 : FilterCell.offsetLeft) + spaceLeft;
|
|
27
|
+
// top calculation
|
|
28
|
+
var topOffset = (FilterCell === null || FilterCell === void 0 ? void 0 : FilterCell.offsetTop) + (FilterCell === null || FilterCell === void 0 ? void 0 : FilterCell.clientHeight);
|
|
29
|
+
Overlay.style.left = "".concat(left, "px");
|
|
30
|
+
Overlay.style.top = "".concat(topOffset, "px");
|
|
31
|
+
Overlay.style.visibility = "initial";
|
|
32
|
+
});
|
|
33
|
+
return (_jsx(OverlayWrapper, { ref: overlayRef, className: "filterOverlay", children: children }));
|
|
34
|
+
};
|
|
35
|
+
export default OverlayComponent;
|
|
36
|
+
var templateObject_1;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Settings, ColumnDefinition as ColumnDefinitionType, ActionColumn, GridActionsType, GridSelectorsType, Group, FiltersConfig, UxState, RowProps } from '../types';
|
|
2
|
+
type Props = {
|
|
3
|
+
columns: ColumnDefinitionType[];
|
|
4
|
+
actionColumn?: ActionColumn;
|
|
5
|
+
onChange: Required<GridActionsType>['addFilter'];
|
|
6
|
+
filterValues?: Settings['filter'];
|
|
7
|
+
displayColumnsWidth: Required<GridSelectorsType>['columnsWidth'];
|
|
8
|
+
filters?: FiltersConfig;
|
|
9
|
+
groups?: Group[];
|
|
10
|
+
handleUxChange?: GridActionsType['handleUxChange'];
|
|
11
|
+
rowsData: RowProps[];
|
|
12
|
+
uxState: UxState;
|
|
13
|
+
};
|
|
14
|
+
declare const FilterRow: ({ columns, groups, actionColumn, onChange, filterValues, displayColumnsWidth, filters, handleUxChange, rowsData, uxState, }: Props) => JSX.Element;
|
|
15
|
+
export default FilterRow;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
import React from 'react';
|
|
14
|
+
import get from 'lodash/fp/get';
|
|
15
|
+
import throttle from 'lodash/throttle';
|
|
16
|
+
import ColumnFilterCell from './ColumnFilterCell';
|
|
17
|
+
import { Row, Cell } from './Table';
|
|
18
|
+
import { getActionCellSizeProps, getFilterName } from '../utils';
|
|
19
|
+
import { useToggleAllCheckbox } from '../utils/public';
|
|
20
|
+
import Toggle from '../../../Elements/Toggle/Toggle';
|
|
21
|
+
var FilterRow = function (_a) {
|
|
22
|
+
var _b, _c;
|
|
23
|
+
var columns = _a.columns, groups = _a.groups, actionColumn = _a.actionColumn, onChange = _a.onChange, _d = _a.filterValues, filterValues = _d === void 0 ? {} : _d, displayColumnsWidth = _a.displayColumnsWidth, filters = _a.filters, handleUxChange = _a.handleUxChange, rowsData = _a.rowsData, uxState = _a.uxState;
|
|
24
|
+
var handleOnChange = throttle(onChange, 500);
|
|
25
|
+
var actionColumnStyle = React.useMemo(function () {
|
|
26
|
+
return actionColumn ? __assign({}, getActionCellSizeProps(actionColumn)) : {};
|
|
27
|
+
}, [actionColumn]);
|
|
28
|
+
var _e = useToggleAllCheckbox(rowsData, uxState, handleUxChange), allChecked = _e[0], toggleCheckbox = _e[1];
|
|
29
|
+
var displayCheckbox = (actionColumn === null || actionColumn === void 0 ? void 0 : actionColumn.checkAllPosition) === 'top' && (((_b = actionColumn === null || actionColumn === void 0 ? void 0 : actionColumn.actionOptions) === null || _b === void 0 ? void 0 : _b.length) || (actionColumn === null || actionColumn === void 0 ? void 0 : actionColumn.forceCheckboxes));
|
|
30
|
+
var displayRowNumberLabel = actionColumn === null || actionColumn === void 0 ? void 0 : actionColumn.addRowNumbers;
|
|
31
|
+
var rowsNumberLabel = (_c = actionColumn === null || actionColumn === void 0 ? void 0 : actionColumn.addRowNumbersLabel) !== null && _c !== void 0 ? _c : '#';
|
|
32
|
+
return (_jsxs(Row, { className: "filterRow", children: [displayCheckbox && (_jsx(Cell, { className: "cell", style: actionColumnStyle, children: _jsx(Toggle, { checked: allChecked, onChange: toggleCheckbox, label: "" }, "check-all") })), displayRowNumberLabel && (_jsx(Cell, { className: "cell", style: actionColumnStyle, children: _jsx("div", { children: rowsNumberLabel }) })), !!(!displayCheckbox && !displayRowNumberLabel && actionColumn) && (_jsx(Cell, { className: "cell", style: actionColumnStyle }, 'actions')), columns.map(function (column, index) { return (_jsx(ColumnFilterCell, { column: column, onChange: handleOnChange, value: get([getFilterName(column), 'value'], filterValues), displayColumnWidth: displayColumnsWidth[column.name], filters: filters, group: groups === null || groups === void 0 ? void 0 : groups[index] }, index)); })] }));
|
|
33
|
+
};
|
|
34
|
+
export default FilterRow;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { FloatingButtonProps } from '../../types';
|
|
2
|
+
export declare const StyledButton: import("styled-components").StyledComponent<"button", import("@xstyled/system").Theme, {}, never>;
|
|
3
|
+
export declare const StyledCross: import("styled-components").StyledComponent<"div", import("@xstyled/system").Theme, {
|
|
4
|
+
isOpen: boolean;
|
|
5
|
+
}, never>;
|
|
6
|
+
declare const FloatingButton: ({ options, onSelect, onClick }: FloatingButtonProps) => JSX.Element | null;
|
|
7
|
+
export default FloatingButton;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
2
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
3
|
+
return cooked;
|
|
4
|
+
};
|
|
5
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
6
|
+
import { useCallback, useMemo, useRef, useState } from 'react';
|
|
7
|
+
import styled from '@xstyled/styled-components';
|
|
8
|
+
import DropdownMenu from '../../../../Elements/DropdownMenu';
|
|
9
|
+
import { Popover } from '../../../Popover';
|
|
10
|
+
var StyledDropdownMenu = styled(DropdownMenu)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n min-width: 160px;\n width: max-content;\n"], ["\n min-width: 160px;\n width: max-content;\n"])));
|
|
11
|
+
export var StyledButton = styled.button(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n width: 56px;\n height: 56px;\n border-radius: 50%;\n border: none;\n background-color: red1;\n display: flex;\n z-index: 1;\n justify-content: center;\n align-items: center;\n position: fixed;\n bottom: 65px;\n right: 24px;\n\n :hover {\n cursor: pointer;\n }\n"], ["\n width: 56px;\n height: 56px;\n border-radius: 50%;\n border: none;\n background-color: red1;\n display: flex;\n z-index: 1;\n justify-content: center;\n align-items: center;\n position: fixed;\n bottom: 65px;\n right: 24px;\n\n :hover {\n cursor: pointer;\n }\n"])));
|
|
12
|
+
export var StyledCross = styled.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n .line {\n border: 1px solid white;\n display: flex;\n width: 16px;\n background-color: white;\n transition: 0.3s;\n }\n > :nth-child(1) {\n transform: ", ";\n }\n > :nth-child(2) {\n transform: ", ";\n }\n"], ["\n .line {\n border: 1px solid white;\n display: flex;\n width: 16px;\n background-color: white;\n transition: 0.3s;\n }\n > :nth-child(1) {\n transform: ", ";\n }\n > :nth-child(2) {\n transform: ", ";\n }\n"])), function (_a) {
|
|
13
|
+
var isOpen = _a.isOpen;
|
|
14
|
+
return (isOpen ? 'rotate(135deg) translate(1px, 0)' : 'none');
|
|
15
|
+
}, function (_a) {
|
|
16
|
+
var isOpen = _a.isOpen;
|
|
17
|
+
return (isOpen ? 'rotate(45deg) translate(-1px, -1px)' : 'rotate(90deg) translate(-2px, 0)');
|
|
18
|
+
});
|
|
19
|
+
var FloatingButton = function (_a) {
|
|
20
|
+
var options = _a.options, onSelect = _a.onSelect, onClick = _a.onClick;
|
|
21
|
+
var _b = useState(false), showDropdownMenu = _b[0], setShowDropdownMenu = _b[1];
|
|
22
|
+
var ref = useRef(null);
|
|
23
|
+
var onClose = useCallback(function () { return setShowDropdownMenu(false); }, []);
|
|
24
|
+
var handleOnClick = useCallback(function () {
|
|
25
|
+
if (options && (options === null || options === void 0 ? void 0 : options.length) > 0) {
|
|
26
|
+
setShowDropdownMenu(function (prev) { return !prev; });
|
|
27
|
+
}
|
|
28
|
+
onClick === null || onClick === void 0 ? void 0 : onClick();
|
|
29
|
+
}, [onClick, options]);
|
|
30
|
+
var handleSelectItem = useCallback(function (item) {
|
|
31
|
+
setShowDropdownMenu(false);
|
|
32
|
+
onSelect === null || onSelect === void 0 ? void 0 : onSelect(item.value);
|
|
33
|
+
}, [onSelect]);
|
|
34
|
+
var items = useMemo(function () {
|
|
35
|
+
return options === null || options === void 0 ? void 0 : options.map(function (item) { return ({
|
|
36
|
+
title: item.label,
|
|
37
|
+
onClick: function () { return handleSelectItem(item); },
|
|
38
|
+
link: '#',
|
|
39
|
+
name: item.name,
|
|
40
|
+
}); });
|
|
41
|
+
}, [handleSelectItem, options]);
|
|
42
|
+
return (_jsxs(StyledButton, { ref: ref, onClick: handleOnClick, children: [_jsxs(StyledCross, { isOpen: showDropdownMenu, children: [_jsx("span", { className: "line" }), _jsx("span", { className: "line" })] }), showDropdownMenu && (_jsx(Popover, { parentRef: ref, onClose: onClose, placement: "left-end", children: _jsx(StyledDropdownMenu, { showMenu: true, items: items }) }))] }));
|
|
43
|
+
};
|
|
44
|
+
export default FloatingButton;
|
|
45
|
+
var templateObject_1, templateObject_2, templateObject_3;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ColumnDefinition } from '../../types';
|
|
2
|
+
type Props = {
|
|
3
|
+
onChange: (data: any) => void;
|
|
4
|
+
isMulti?: boolean;
|
|
5
|
+
options?: ColumnDefinition['filterOptions'];
|
|
6
|
+
value?: string | string[];
|
|
7
|
+
checkAllButton?: boolean;
|
|
8
|
+
};
|
|
9
|
+
declare const SelectFilter: ({ onChange, isMulti, value, options, checkAllButton }: Props) => JSX.Element;
|
|
10
|
+
export default SelectFilter;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useCallback } from 'react';
|
|
3
|
+
import MultiSelect from '../../../../Elements/MultiSelect';
|
|
4
|
+
import SingleSelect from '../../../../Elements/SingleSelect';
|
|
5
|
+
import isArray from 'lodash/isArray';
|
|
6
|
+
var emptyValue = [];
|
|
7
|
+
var SelectFilter = function (_a) {
|
|
8
|
+
var onChange = _a.onChange, isMulti = _a.isMulti, value = _a.value, options = _a.options, checkAllButton = _a.checkAllButton;
|
|
9
|
+
var handleOnMultiChange = useCallback(function (options) {
|
|
10
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(!isArray(options) || !(options === null || options === void 0 ? void 0 : options.length) ? null : options.map(function (option) { return option.value; }));
|
|
11
|
+
}, [onChange]);
|
|
12
|
+
if (isMulti) {
|
|
13
|
+
return (_jsx(MultiSelect, { maxMenuHeight: 250, onChange: handleOnMultiChange, value: value || emptyValue, options: options, checkAllButton: checkAllButton, style: "gridFilter" }));
|
|
14
|
+
}
|
|
15
|
+
else {
|
|
16
|
+
return _jsx(SingleSelect, { maxMenuHeight: 250, onChange: onChange, value: value, options: options, style: "gridFilter" });
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
export default SelectFilter;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ActionColumn, Group, ColumnDefinition, GridSelectorsType } from '../types';
|
|
2
|
+
type GroupRowProps = {
|
|
3
|
+
groups: Group[];
|
|
4
|
+
actionColumn?: ActionColumn;
|
|
5
|
+
columns: ColumnDefinition[];
|
|
6
|
+
displayColumnsWidth: Required<GridSelectorsType>['columnsWidth'];
|
|
7
|
+
};
|
|
8
|
+
declare const GroupRow: ({ actionColumn, columns, groups, displayColumnsWidth }: GroupRowProps) => JSX.Element;
|
|
9
|
+
export default GroupRow;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
import React from 'react';
|
|
14
|
+
import { Row, Cell } from './Table';
|
|
15
|
+
import { getCellSizeProps, getActionCellSizeProps, getGroupClassNames, getStickyCollClassNames } from '../utils';
|
|
16
|
+
var GroupCell = function (_a) {
|
|
17
|
+
var column = _a.column, group = _a.group, displayColumnWidth = _a.displayColumnWidth;
|
|
18
|
+
var cellSizeProps = getCellSizeProps(column, displayColumnWidth);
|
|
19
|
+
var cellClassName = "cell".concat(getStickyCollClassNames(!!column.sticky, column.stickTo), " ").concat(getGroupClassNames(group));
|
|
20
|
+
return (_jsx(Cell, __assign({ className: cellClassName }, cellSizeProps, { children: group.start && _jsx(_Fragment, { children: group.name }) })));
|
|
21
|
+
};
|
|
22
|
+
var GroupRow = function (_a) {
|
|
23
|
+
var actionColumn = _a.actionColumn, columns = _a.columns, groups = _a.groups, displayColumnsWidth = _a.displayColumnsWidth;
|
|
24
|
+
var actionColumnStyle = React.useMemo(function () { return (actionColumn ? __assign({}, getActionCellSizeProps(actionColumn)) : {}); }, [actionColumn]);
|
|
25
|
+
return (_jsxs(Row, { className: "group-row", children: [actionColumn && _jsx(Cell, { className: "cell", style: actionColumnStyle }, "actions"), groups.map(function (group, key) { return (_jsx(GroupCell, { column: columns[key], group: group, displayColumnWidth: displayColumnsWidth[columns[key].name] }, key)); })] }));
|
|
26
|
+
};
|
|
27
|
+
export default GroupRow;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DraggableProps, DraggableProvidedDragHandleProps } from 'react-beautiful-dnd';
|
|
3
|
+
import { SortingValueType, Group, GridActionsType, StickTo } from '../types';
|
|
4
|
+
type Props = {
|
|
5
|
+
title?: string | JSX.Element;
|
|
6
|
+
name?: string;
|
|
7
|
+
isSortable: boolean;
|
|
8
|
+
systemName?: string;
|
|
9
|
+
isDragging?: boolean;
|
|
10
|
+
draggableProps?: DraggableProps | any;
|
|
11
|
+
dragHandleProps?: DraggableProvidedDragHandleProps | null;
|
|
12
|
+
innerRef?: Function;
|
|
13
|
+
hasResize?: boolean;
|
|
14
|
+
flexBasis?: number;
|
|
15
|
+
flexGrow?: number;
|
|
16
|
+
flexShrink?: number;
|
|
17
|
+
onResizeOver?: () => void;
|
|
18
|
+
onResizeOut?: () => void;
|
|
19
|
+
onAddSort?: GridActionsType['addSorting'];
|
|
20
|
+
sortValue: SortingValueType;
|
|
21
|
+
handleResizeDrag?: (column: string, width: number) => void;
|
|
22
|
+
group?: Group;
|
|
23
|
+
sticky?: boolean;
|
|
24
|
+
stickTo?: StickTo;
|
|
25
|
+
};
|
|
26
|
+
declare const _default: React.MemoExoticComponent<({ title, name, isSortable, systemName, onAddSort, sortValue, hasResize, onResizeOver, onResizeOut, innerRef, isDragging, draggableProps, dragHandleProps, flexBasis, flexGrow, flexShrink, handleResizeDrag, group, sticky, stickTo, }: Props) => JSX.Element>;
|
|
27
|
+
export default _default;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
2
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
3
|
+
return cooked;
|
|
4
|
+
};
|
|
5
|
+
var __assign = (this && this.__assign) || function () {
|
|
6
|
+
__assign = Object.assign || function(t) {
|
|
7
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
8
|
+
s = arguments[i];
|
|
9
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
10
|
+
t[p] = s[p];
|
|
11
|
+
}
|
|
12
|
+
return t;
|
|
13
|
+
};
|
|
14
|
+
return __assign.apply(this, arguments);
|
|
15
|
+
};
|
|
16
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
17
|
+
import React from 'react';
|
|
18
|
+
import styled from '@xstyled/styled-components';
|
|
19
|
+
import { Cell } from './Table';
|
|
20
|
+
import ColumnTitle from './ColumnTitle';
|
|
21
|
+
import Resize from './Resize';
|
|
22
|
+
import { getGroupClassNames, getStickyCollClassNames } from '../utils';
|
|
23
|
+
var DraggableCell = styled(Cell)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n background-color: ", ";\n"], ["\n background-color: ", ";\n"])), function (_a) {
|
|
24
|
+
var $isDragging = _a.$isDragging;
|
|
25
|
+
return ($isDragging ? 'transparentRed' : 'transparent');
|
|
26
|
+
});
|
|
27
|
+
var HeadCell = function (_a) {
|
|
28
|
+
var title = _a.title, _b = _a.name, name = _b === void 0 ? '' : _b, isSortable = _a.isSortable, systemName = _a.systemName, onAddSort = _a.onAddSort, sortValue = _a.sortValue, hasResize = _a.hasResize, onResizeOver = _a.onResizeOver, onResizeOut = _a.onResizeOut, innerRef = _a.innerRef, isDragging = _a.isDragging, draggableProps = _a.draggableProps, dragHandleProps = _a.dragHandleProps, flexBasis = _a.flexBasis, flexGrow = _a.flexGrow, _c = _a.flexShrink, flexShrink = _c === void 0 ? 1 : _c, handleResizeDrag = _a.handleResizeDrag, group = _a.group, sticky = _a.sticky, stickTo = _a.stickTo;
|
|
29
|
+
var onResize = React.useCallback(function (width) {
|
|
30
|
+
handleResizeDrag === null || handleResizeDrag === void 0 ? void 0 : handleResizeDrag(name, width);
|
|
31
|
+
}, [handleResizeDrag, name]);
|
|
32
|
+
var style = React.useMemo(function () { return (__assign({}, draggableProps === null || draggableProps === void 0 ? void 0 : draggableProps.style)); }, [draggableProps]);
|
|
33
|
+
var onSetSort = React.useCallback(function (value) {
|
|
34
|
+
onAddSort && onAddSort(systemName || name, value);
|
|
35
|
+
}, [onAddSort, systemName, name]);
|
|
36
|
+
var cellClassName = "cell".concat(getStickyCollClassNames(!!sticky, stickTo), " ").concat(getGroupClassNames(group));
|
|
37
|
+
return (_jsxs(DraggableCell, __assign({}, draggableProps, dragHandleProps, { style: style, flexBasis: flexBasis, flexGrow: flexGrow, flexShrink: flexShrink, innerRef: innerRef, "$isDragging": isDragging, className: cellClassName, children: [_jsx(ColumnTitle, { title: title, isSortable: isSortable, onSetSort: onSetSort, sortValue: sortValue }), hasResize && onResizeOut && onResizeOver && (_jsx(Resize, { onResize: onResize, onResizeOver: onResizeOver, onResizeOut: onResizeOut }))] })));
|
|
38
|
+
};
|
|
39
|
+
export default React.memo(HeadCell);
|
|
40
|
+
var templateObject_1;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Settings, ColumnDefinition, ActionColumn, GridSelectorsType, Group, CommonGridProps, GridActionsType } from '../types';
|
|
2
|
+
type HeadRowProps = {
|
|
3
|
+
actionColumn?: ActionColumn;
|
|
4
|
+
columns: ColumnDefinition[];
|
|
5
|
+
columnsOrder?: string[];
|
|
6
|
+
onAddSort: GridActionsType['addSorting'];
|
|
7
|
+
setColumnsOrder: (columnsOrder: string[]) => void;
|
|
8
|
+
sortingValues?: Settings['sorting'];
|
|
9
|
+
displayColumnsWidth: Required<GridSelectorsType>['columnsWidth'];
|
|
10
|
+
columnLayout: Required<CommonGridProps>['columnLayout'];
|
|
11
|
+
handleResizeDrag: (column: string, width: number) => void;
|
|
12
|
+
groups: Group[];
|
|
13
|
+
};
|
|
14
|
+
declare const HeadRow: ({ columns, actionColumn, onAddSort, setColumnsOrder, columnsOrder, sortingValues, displayColumnsWidth, columnLayout, handleResizeDrag, groups, }: HeadRowProps) => JSX.Element;
|
|
15
|
+
export default HeadRow;
|