@mailstep/design-system 0.8.16-beta.2 → 0.8.16-beta.21

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.
Files changed (122) hide show
  1. package/package.json +12 -6
  2. package/ui/Blocks/CommonGrid/components/ColumnTitle.js +4 -2
  3. package/ui/Blocks/CommonGrid/components/ControlButtons/styles.d.ts +1 -0
  4. package/ui/Blocks/CommonGrid/components/DropdownButton/DropdownButton.js +1 -1
  5. package/ui/Blocks/CommonGrid/components/ExtraControlButtons/ExtraControlButtons.js +9 -8
  6. package/ui/Blocks/CommonGrid/components/Filters/DatePickerRange/DatePickerRange.js +1 -2
  7. package/ui/Blocks/CommonGrid/components/Filters/GridSelect/GridSelect.js +5 -4
  8. package/ui/Blocks/CommonGrid/components/Filters/TextRange/TextRange.js +1 -1
  9. package/ui/Blocks/CommonGrid/components/IconList/IconList.d.ts +1 -1
  10. package/ui/Blocks/CommonGrid/components/ManageColumnForm/styles.d.ts +2 -2
  11. package/ui/Blocks/CommonGrid/components/MobileFilterModal.js +2 -2
  12. package/ui/Blocks/CommonGrid/components/MobileSortModal.js +1 -1
  13. package/ui/Blocks/CommonGrid/components/QuickFilter/QuickFilter.js +1 -4
  14. package/ui/Blocks/CommonGrid/components/Table.d.ts +28 -28
  15. package/ui/Blocks/CommonGrid/components/Table.js +1 -1
  16. package/ui/Blocks/CommonGrid/hooks/useAddFilter.d.ts +1 -1
  17. package/ui/Blocks/CommonGrid/hooks/useColumnSizes.d.ts +1 -1
  18. package/ui/Blocks/CommonGrid/hooks/useEvent.d.ts +1 -1
  19. package/ui/Blocks/CommonGrid/hooks/useGridActionTrigger.d.ts +1 -1
  20. package/ui/Blocks/CommonGrid/hooks/useManageColumn.d.ts +1 -1
  21. package/ui/Blocks/CommonGrid/hooks/useRowsKeyControls.d.ts +1 -1
  22. package/ui/Blocks/CommonGrid/hooks/useToggleAllCheckbox.d.ts +1 -1
  23. package/ui/Blocks/CommonGrid/hooks/useUxReset.d.ts +1 -1
  24. package/ui/Blocks/CommonGrid/store/index.d.ts +14 -14
  25. package/ui/Blocks/CommonGrid/styles.d.ts +6 -5
  26. package/ui/Blocks/CommonGrid/styles.js +6 -9
  27. package/ui/Blocks/CommonGrid/utils/index.d.ts +1 -1
  28. package/ui/Blocks/Header/components/MenuItems/styles.d.ts +1 -1
  29. package/ui/Blocks/Header/components/MenuItems/styles.js +1 -1
  30. package/ui/Blocks/Header/hooks/useChangeLanguage.js +0 -1
  31. package/ui/Blocks/Header/stories/Header.stories.d.ts +16 -16
  32. package/ui/Blocks/Header/styles.js +2 -2
  33. package/ui/Blocks/ImageList/components/AddPhoto/index.js +2 -2
  34. package/ui/Blocks/ImageList/components/AddPhoto/styles.d.ts +2 -2
  35. package/ui/Blocks/ImageList/components/CloseButton/styles.d.ts +1 -1
  36. package/ui/Blocks/ImageList/components/ImageElement/styles.d.ts +1 -1
  37. package/ui/Blocks/ImageList/styles.d.ts +2 -2
  38. package/ui/Blocks/LanguageSwitch/LanguageSwitch.js +10 -5
  39. package/ui/Blocks/LanguageSwitch/styles.d.ts +2 -7
  40. package/ui/Blocks/LanguageSwitch/styles.js +3 -11
  41. package/ui/Blocks/LoginPage/stories/LoginPage.stories.js +2 -2
  42. package/ui/Blocks/LoginPage/styles.d.ts +2 -3
  43. package/ui/Blocks/Modal/styles.d.ts +7 -7
  44. package/ui/Blocks/Modal/styles.js +8 -8
  45. package/ui/Blocks/Scheduler/components/Groups/styles.d.ts +1 -1
  46. package/ui/Blocks/Scheduler/components/TimeSlots/styles.d.ts +1 -1
  47. package/ui/Blocks/SideMenu/components/Footer.d.ts +1 -1
  48. package/ui/Blocks/SideMenu/components/HamburgerMenu.js +2 -3
  49. package/ui/Blocks/SideMenu/stories/SideMenu.stories.d.ts +1 -0
  50. package/ui/Blocks/SideMenu/styles.d.ts +15 -15
  51. package/ui/Blocks/Stepper/components/StepCircle/styles.d.ts +2 -2
  52. package/ui/Blocks/Stepper/components/StepItem/styles.d.ts +3 -3
  53. package/ui/Blocks/Table/stories/Table.stories.d.ts +3 -2
  54. package/ui/Blocks/Tabs/styles.d.ts +6 -5
  55. package/ui/Elements/Alert/styles.d.ts +18 -17
  56. package/ui/Elements/AsyncSelect/stories/AsyncSelect.stories.d.ts +2 -1
  57. package/ui/Elements/AsyncSelect/stories/AsyncSelect.stories.js +2 -2
  58. package/ui/Elements/BarChartSymbol/styles.d.ts +2 -2
  59. package/ui/Elements/BorderedBox/types.d.ts +1 -0
  60. package/ui/Elements/Button/styles.d.ts +6 -5
  61. package/ui/Elements/Card/styles.d.ts +2 -2
  62. package/ui/Elements/Card/types.d.ts +1 -0
  63. package/ui/Elements/CheckedCircle/storries/CheckedCircle.stories.d.ts +2 -2
  64. package/ui/Elements/DatePicker/Datetime/components/FooterRow.d.ts +1 -1
  65. package/ui/Elements/DatePicker/Datetime/views/DaysView.js +1 -1
  66. package/ui/Elements/DatePicker/styles.d.ts +2 -1
  67. package/ui/Elements/DropdownMenu/components/DefaultItem.js +1 -1
  68. package/ui/Elements/Icon/Icon.js +6 -6
  69. package/ui/Elements/Icon/icons/FlagHU.js +1 -1
  70. package/ui/Elements/Icon/stories/BadgeIcon.stories.d.ts +1 -1
  71. package/ui/Elements/Label/Label.d.ts +1 -1
  72. package/ui/Elements/Label/stories/Label.stories.d.ts +1 -1
  73. package/ui/Elements/Link/stories/Link.stories.d.ts +12 -12
  74. package/ui/Elements/Logo/Logo.js +2 -2
  75. package/ui/Elements/Pagination/styled.d.ts +2 -1
  76. package/ui/Elements/ProgressBar/stories/ProgressBar.stories.d.ts +5 -5
  77. package/ui/Elements/ProgressBar/styles.d.ts +1 -1
  78. package/ui/Elements/Select/Select.js +6 -6
  79. package/ui/Elements/Select/components/ConnectedMenu.js +2 -3
  80. package/ui/Elements/Select/components/CountMultiValue.d.ts +10 -1
  81. package/ui/Elements/Select/components/CountMultiValue.js +16 -7
  82. package/ui/Elements/Select/components/DropdownIndicator.d.ts +6 -1
  83. package/ui/Elements/Select/components/DropdownIndicator.js +3 -2
  84. package/ui/Elements/Select/components/IconValueContainer.js +1 -1
  85. package/ui/Elements/Select/components/SimplifiedOption.d.ts +1 -0
  86. package/ui/Elements/Select/stories/Select.stories.d.ts +10 -0
  87. package/ui/Elements/Select/stories/Select.stories.js +15 -0
  88. package/ui/Elements/Select/themes/index.d.ts +1 -1
  89. package/ui/Elements/Select/themes/index.js +4 -14
  90. package/ui/Elements/Select/themes/selectStyles.d.ts +1 -1
  91. package/ui/Elements/Select/themes/selectStyles.js +28 -30
  92. package/ui/Elements/Select/types.d.ts +10 -7
  93. package/ui/Elements/SingleSelect/SingleSelect.d.ts +2 -2
  94. package/ui/Elements/SingleSelect/SingleSelect.js +13 -22
  95. package/ui/Elements/SpaceAround/types.d.ts +1 -0
  96. package/ui/Elements/Spinner/styles.d.ts +1 -1
  97. package/ui/Elements/Tag/types.d.ts +1 -0
  98. package/ui/Elements/Toast/styles.d.ts +1 -1
  99. package/ui/Forms/Checkbox/styles.d.ts +2 -1
  100. package/ui/Forms/Checkbox/styles.js +1 -1
  101. package/ui/Forms/Input/styles.d.ts +3 -3
  102. package/ui/Forms/Input/styles.js +2 -2
  103. package/ui/Forms/TextArea/styles.d.ts +5 -5
  104. package/ui/ThemeProvider/ThemeProvider.d.ts +2 -1
  105. package/ui/ThemeProvider/ThemeProvider.js +1 -1
  106. package/ui/ThemeProvider/themes/dark.d.ts +154 -0
  107. package/ui/ThemeProvider/themes/dark.js +14 -0
  108. package/ui/ThemeProvider/themes/default.d.ts +2 -0
  109. package/ui/ThemeProvider/themes/default.js +13 -9
  110. package/ui/ThemeProvider/themes/index.d.ts +155 -1
  111. package/ui/ThemeProvider/themes/index.js +3 -3
  112. package/ui/ThemeProvider/themes/mailwise.js +1 -1
  113. package/ui/ThemeProvider/types.d.ts +13 -33
  114. package/ui/index.es.js +15390 -16026
  115. package/ui/index.umd.js +502 -516
  116. package/ui/utils/index.js +1 -1
  117. package/ui/utils/translations.d.ts +4 -1
  118. package/ui/utils/translations.js +2 -2
  119. package/ui/Elements/Select/components/ResetAll.d.ts +0 -5
  120. package/ui/Elements/Select/components/ResetAll.js +0 -15
  121. package/ui/ThemeProvider/themes/light.d.ts +0 -4
  122. package/ui/ThemeProvider/themes/light.js +0 -7
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mailstep/design-system",
3
- "version": "0.8.16-beta.2",
3
+ "version": "0.8.16-beta.21",
4
4
  "license": "ISC",
5
5
  "type": "module",
6
6
  "main": "./ui/index.js",
@@ -19,7 +19,11 @@
19
19
  "deploy:win": "npm run build:win && npm publish ./build",
20
20
  "dev": "yarn storybook",
21
21
  "test": "echo \"The tests are still waiting to be written, but it seems like they're really good at procrastinating!\"",
22
- "lint": "eslint src/**/*.{js,jsx,ts,tsx,json}"
22
+ "lint": "eslint ./packages/ui/**/*.{ts,tsx}",
23
+ "prepare": "husky install"
24
+ },
25
+ "lint-staged": {
26
+ "*.{js,ts,tsx}": "yarn eslint --fix"
23
27
  },
24
28
  "devDependencies": {
25
29
  "@babel/core": "^7.20.12",
@@ -40,6 +44,7 @@
40
44
  "@lingui/react": "3.17.2",
41
45
  "@popperjs/core": "^2.11.8",
42
46
  "@storybook/addon-designs": "^11.1.2",
47
+ "@storybook/addon-docs": "10.2.8",
43
48
  "@storybook/addon-links": "10.2.8",
44
49
  "@storybook/react-webpack5": "10.2.8",
45
50
  "@svgr/rollup": "^8.0.1",
@@ -74,7 +79,9 @@
74
79
  "eslint-plugin-react-perf": "^3.3.2",
75
80
  "eslint-plugin-storybook": "10.2.8",
76
81
  "faker": "^5.1.0",
82
+ "husky": "^9.1.7",
77
83
  "immer": "9.0.7",
84
+ "lint-staged": "^16.4.0",
78
85
  "lodash": "^4.17.21",
79
86
  "luxon": "^3.4.4",
80
87
  "moment": "^2.30.1",
@@ -98,12 +105,11 @@
98
105
  "styled-components": "^5.3.10",
99
106
  "swiper": "^11.0.3",
100
107
  "tslib": "^2.6.2",
101
- "typescript": "^5.0.4",
108
+ "typescript": "5.1.3",
102
109
  "vite": "^5.0.10",
103
110
  "vite-plugin-dts": "^3.6.4",
104
111
  "vite-plugin-static-copy": "^1.0.0",
105
- "webpack": "^5.82.1",
106
- "@storybook/addon-docs": "10.2.8"
112
+ "webpack": "^5.82.1"
107
113
  },
108
114
  "peerDependencies": {
109
115
  "@dnd-kit/core": "^6.3.1",
@@ -141,7 +147,7 @@
141
147
  "styled-components": "^5.3.10",
142
148
  "swiper": "^11.0.3",
143
149
  "tslib": "^2.6.2",
144
- "typescript": "^5.0.4"
150
+ "typescript": "5.1.3"
145
151
  },
146
152
  "resolutions": {
147
153
  "jackspeak": "2.1.1"
@@ -5,11 +5,13 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
5
5
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
6
6
  import React from 'react';
7
7
  import { SortingUp, SortingDown } from './icons/Sorting';
8
- import styled from '@xstyled/styled-components';
8
+ import styled, { useTheme, th } from '@xstyled/styled-components';
9
9
  var Title = styled.span(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n & + * {\n margin-left: 1em;\n }\n"], ["\n & + * {\n margin-left: 1em;\n }\n"])));
10
10
  var ColumnTitle = function (_a) {
11
11
  var title = _a.title, isSortable = _a.isSortable, onSetSort = _a.onSetSort, sortValue = _a.sortValue;
12
12
  var _b = React.useState(0), mouseDownTimestamp = _b[0], setMouseDownTimestamp = _b[1];
13
+ var theme = useTheme();
14
+ var typoPrimaryColor = th.color('typoPrimary')({ theme: theme });
13
15
  var handleMouseDown = React.useCallback(function () {
14
16
  setMouseDownTimestamp(Date.now());
15
17
  }, []);
@@ -23,7 +25,7 @@ var ColumnTitle = function (_a) {
23
25
  }
24
26
  setMouseDownTimestamp(0);
25
27
  }, [mouseDownTimestamp, onSetSort, sortValue]);
26
- return (_jsxs("div", { onMouseDown: isSortable ? handleMouseDown : undefined, onMouseUp: isSortable ? handleMouseUp : undefined, className: isSortable ? 'sortable' : '', children: [_jsx(Title, { children: title }), isSortable && sortValue === 'asc' && _jsx(SortingUp, { width: "16" }), isSortable && sortValue === 'desc' && _jsx(SortingDown, { width: "16" })] }));
28
+ return (_jsxs("div", { onMouseDown: isSortable ? handleMouseDown : undefined, onMouseUp: isSortable ? handleMouseUp : undefined, className: isSortable ? 'sortable' : '', children: [_jsx(Title, { children: title }), isSortable && sortValue === 'asc' && _jsx(SortingUp, { width: "16", fill: typoPrimaryColor }), isSortable && sortValue === 'desc' && _jsx(SortingDown, { width: "16", fill: typoPrimaryColor })] }));
27
29
  };
28
30
  export default React.memo(ColumnTitle);
29
31
  var templateObject_1;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export declare const ControlButtonsContainer: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {}, never>;
2
3
  export declare const Left: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {}, never>;
3
4
  export declare const Right: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {}, never>;
@@ -15,7 +15,7 @@ var StyledDropdownMenu = styled(DropdownMenu)(templateObject_2 || (templateObjec
15
15
  var StyledButton = styled(Button)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n padding-right: 0;\n"], ["\n padding-right: 0;\n"])));
16
16
  var StyledIcon = styled.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n width: 20px;\n height: 20px;\n margin: 9px;\n & > svg {\n stroke: ", ";\n }\n"], ["\n width: 20px;\n height: 20px;\n margin: 9px;\n & > svg {\n stroke: ", ";\n }\n"])), function (_a) {
17
17
  var appearance = _a.appearance;
18
- return appearance === 'secondary' ? th.color('blue2') : appearance === 'tertiary' ? th.color('red1') : 'white';
18
+ return appearance === 'secondary' ? th.color('blue2') : appearance === 'tertiary' ? th.color('red1') : th.color('white');
19
19
  });
20
20
  var Separator = styled.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n height: 38px;\n width: 1px;\n background-color: white;\n margin-left: 18px;\n"], ["\n height: 38px;\n width: 1px;\n background-color: white;\n margin-left: 18px;\n"])));
21
21
  var DropdownButton = function (_a) {
@@ -16,7 +16,6 @@ var __assign = (this && this.__assign) || function () {
16
16
  import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
17
17
  import Button from '../../../../Elements/Button/Button';
18
18
  import DropdownSelect from '../../../../Elements/DropdownSelect';
19
- import { ExtraControlButtonPosition } from '../../types';
20
19
  import ButtonMore from '../ButtonMore/ButtonMore';
21
20
  import styled, { x } from '@xstyled/styled-components';
22
21
  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"])));
@@ -35,12 +34,14 @@ var ControlButton = function (_a) {
35
34
  }
36
35
  };
37
36
  var ExtraControlButtons = function (_a) {
38
- var extraControlButtons = _a.extraControlButtons, isMobile = _a.isMobile, _b = _a.targetPosition, targetPosition = _b === void 0 ? ExtraControlButtonPosition.TopRight : _b;
39
- var buttons = (extraControlButtons || []).filter(function (_a) {
40
- var position = _a.position, hide = _a.hide;
41
- return position === targetPosition && !hide;
42
- });
43
- if (isMobile && buttons.length > 0) {
37
+ var extraControlButtons = _a.extraControlButtons, isMobile = _a.isMobile, targetPosition = _a.targetPosition;
38
+ var buttons = targetPosition
39
+ ? (extraControlButtons || []).filter(function (_a) {
40
+ var position = _a.position, hide = _a.hide;
41
+ return position === targetPosition && !hide;
42
+ })
43
+ : extraControlButtons !== null && extraControlButtons !== void 0 ? extraControlButtons : [];
44
+ if (isMobile && (buttons === null || buttons === void 0 ? void 0 : buttons.length) > 0) {
44
45
  var items = buttons.flatMap(function (_a) {
45
46
  var onSelect = _a.onSelect, onClick = _a.onClick, options = _a.options, label = _a.label;
46
47
  if (options && onSelect) {
@@ -60,7 +61,7 @@ var ExtraControlButtons = function (_a) {
60
61
  return null;
61
62
  return _jsx(ButtonMore, { items: items });
62
63
  }
63
- return (_jsx(Row, { children: buttons.map(function (button, idx) { return (_jsx(x.div, { children: _jsx(ControlButton, __assign({}, button)) }, idx)); }) }));
64
+ return (_jsx(Row, { children: buttons === null || buttons === void 0 ? void 0 : buttons.map(function (button, idx) { return (_jsx(x.div, { children: _jsx(ControlButton, __assign({}, button)) }, idx)); }) }));
64
65
  };
65
66
  export default ExtraControlButtons;
66
67
  var templateObject_1;
@@ -57,7 +57,6 @@ var DatePickerRange = function (props) {
57
57
  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];
58
58
  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];
59
59
  var timeFormat = filterTime ? 'HH:mm' : false;
60
- var placeholder = i18n._({ id: 'dataGrid.filterCell', message: 'Type to filter' });
61
60
  var cleanValue = React.useMemo(function () { return getCleanValues(value); }, [value]);
62
61
  var initialViewDate = useMemo(function () {
63
62
  if (cleanValue[0] && cleanValue[1]) {
@@ -106,7 +105,7 @@ var DatePickerRange = function (props) {
106
105
  // Check if the second value is not selected and the first value is the same as the initial value
107
106
  var secondDatePickerValue = cleanValue[1] === null ? cleanValue[0] : cleanValue[1];
108
107
  var ref = useClickOutside({ onClose: onClose });
109
- return (_jsxs("div", { ref: ref, children: [_jsx(Input, { name: props.name, placeholder: placeholder, type: "text", icon: "calendar", value: pickerRangeToString(cleanValue, others), label: props.label, onFocus: openPicker, iconOnClick: openPicker, onClear: clear, error: error, readOnly: true }), _jsx(OverlayComponent, { children: _jsx(_Fragment, { children: isOpen && (_jsxs(RangeWrapper, { "$compact": compact, 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, others: others === null || others === void 0 ? void 0 : others[0], onChangeOthers: handleOthersChangeFrom, icon: false, label: isOpen && i18n._({ id: 'dataGrid.filterCell.from', message: 'From' }), isValidDate: isValidDateFrom, input: false, spaceAround: !compact, open: true })), _jsx(DatePicker, __assign({}, rest, { timeFormat: timeFormat, value: secondDatePickerValue, initialViewDate: initialViewDate[1], secondValue: startRangeValue, onChange: setDateTo, others: others === null || others === void 0 ? void 0 : others[1], onChangeOthers: handleOthersChangeTo, icon: false, label: isOpen && i18n._({ id: 'dataGrid.filterCell.to', message: 'To' }), isValidDate: isValidDateTo, input: false, spaceAround: !compact, open: true, isSecondDatePicker: true }))] })) }) })] }));
108
+ return (_jsxs("div", { ref: ref, children: [_jsx(Input, { name: props.name, type: "text", icon: "calendar", value: pickerRangeToString(cleanValue, others), label: props.label, onFocus: openPicker, iconOnClick: openPicker, onClear: clear, error: error, readOnly: true }), _jsx(OverlayComponent, { children: _jsx(_Fragment, { children: isOpen && (_jsxs(RangeWrapper, { "$compact": compact, 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, others: others === null || others === void 0 ? void 0 : others[0], onChangeOthers: handleOthersChangeFrom, icon: false, label: isOpen && i18n._({ id: 'dataGrid.filterCell.from', message: 'From' }), isValidDate: isValidDateFrom, input: false, spaceAround: !compact, open: true })), _jsx(DatePicker, __assign({}, rest, { timeFormat: timeFormat, value: secondDatePickerValue, initialViewDate: initialViewDate[1], secondValue: startRangeValue, onChange: setDateTo, others: others === null || others === void 0 ? void 0 : others[1], onChangeOthers: handleOthersChangeTo, icon: false, label: isOpen && i18n._({ id: 'dataGrid.filterCell.to', message: 'To' }), isValidDate: isValidDateTo, input: false, spaceAround: !compact, open: true, isSecondDatePicker: true }))] })) }) })] }));
110
109
  };
111
110
  export default DatePickerRange;
112
111
  var templateObject_1, templateObject_2;
@@ -19,8 +19,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
19
19
  });
20
20
  };
21
21
  var __generator = (this && this.__generator) || function (thisArg, body) {
22
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
23
- return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
22
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
23
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
24
24
  function verb(n) { return function (v) { return step([n, v]); }; }
25
25
  function step(op) {
26
26
  if (f) throw new TypeError("Generator is already executing.");
@@ -63,6 +63,7 @@ import isArray from 'lodash/isArray';
63
63
  import uniqBy from 'lodash/uniqBy';
64
64
  import { isOptionArray } from './guards';
65
65
  var minColumnWidth = 120;
66
+ var noOptionsMessage = function () { return null; };
66
67
  var SelectFilter = function (_a) {
67
68
  var onChange = _a.onChange, _b = _a.isClearable, isClearable = _b === void 0 ? true : _b, disabled = _a.disabled, placeholder = _a.placeholder, _c = _a.showValue, showValue = _c === void 0 ? true : _c, columnWidth = _a.columnWidth, isMulti = _a.isMulti, value = _a.value, options = _a.options, checkAllButton = _a.checkAllButton, asyncLoadKey = _a.asyncLoadKey, onAsyncLoadFilterOptions = _a.onAsyncLoadFilterOptions, _d = _a.withNotEqComparator, withNotEqComparator = _d === void 0 ? true : _d;
68
69
  var _e = useState([]), loadedOptions = _e[0], setLoadedOptions = _e[1];
@@ -104,9 +105,9 @@ var SelectFilter = function (_a) {
104
105
  var isSelectClearable = isWide ? isClearable : false;
105
106
  var placeholderValue = placeholder || (isAsync ? i18n._({ id: 'dataGrid.filterCell', message: 'Type to filter' }) : undefined);
106
107
  if (isMulti) {
107
- var placeholderIcon = isWide && isAsync ? (isNotEq ? 'notEqual' : 'equals') : null;
108
+ var placeholderIcon = isWide && withNotEqComparator ? (isNotEq ? 'notEqual' : 'equals') : null;
108
109
  var selectValue = showValue ? (isOptionArray(value) ? value.map(function (option) { return String(option.value); }) : value) : undefined;
109
- return (_jsx(Select, { maxMenuHeight: 250, onChange: handleOnMultiChange, value: selectValue, options: defaultOptions || options, showSelectAllButton: checkAllButton, style: "gridFilter", loadOptions: isAsync ? handleLoadOptions : undefined, defaultOptions: defaultOptions, placeholder: placeholderValue, noOptionsMessage: function () { return null; }, containerVariant: isAsync ? 'search' : undefined, placeholderIcon: placeholderIcon, onIconClick: withNotEqComparator ? handleIconClick : undefined, optionVariant: "checkbox", multiLabelVariant: "count", isMulti: true, disabled: disabled, isClearable: isSelectClearable }));
110
+ return (_jsx(Select, { maxMenuHeight: 250, onChange: handleOnMultiChange, value: selectValue, options: defaultOptions || options, showSelectAllButton: checkAllButton, style: "gridFilter", loadOptions: isAsync ? handleLoadOptions : undefined, defaultOptions: defaultOptions, placeholder: placeholderValue, noOptionsMessage: noOptionsMessage, containerVariant: isAsync ? 'search' : undefined, placeholderIcon: placeholderIcon, onIconClick: withNotEqComparator ? handleIconClick : undefined, optionVariant: "checkbox", multiLabelVariant: "count", shortVariant: "join", isMulti: true, disabled: disabled, isClearable: isSelectClearable }));
110
111
  }
111
112
  return (_jsx(SingleSelect, { maxMenuHeight: 250, onChange: onChange, value: showValue ? value : undefined, options: options, style: "gridFilter", loadOptions: isAsync ? handleLoadOptions : undefined, placeholder: placeholderValue, placeholderIcon: isWide ? undefined : null, isClearable: isSelectClearable, disabled: disabled }));
112
113
  };
@@ -91,6 +91,6 @@ var TextRange = function (props) {
91
91
  var onChangeComparator = useEvent(function (option) {
92
92
  onChange({ comparator: option.value, value: fieldValue, isInvalid: isInvalid });
93
93
  });
94
- return (_jsxs("div", { ref: pickerRef, children: [_jsx(Input, __assign({ name: name, "data-test": name, "data-cy": "".concat(name, "Inp"), value: fieldValue, label: label, onChange: onChangeTextInput, iconOnClick: !eqOnly ? togglePicker : undefined, icon: !eqOnly ? 'ellipsisVertical' : 'warning', iconPlacement: "right", iconTooltip: eqOnly ? eqOnlyTxt : undefined, type: "text", className: className, error: (!!validation && isInvalid && validation.errorMsg) || '', errorAppearance: 'tooltip', autoComplete: "off" }, rest)), isOpen && (_jsx(OverlayComponent, { children: _jsx(IconList, { list: comparatorOptions, selected: comparator, onClick: onChangeComparator }) }))] }));
94
+ return (_jsxs("div", { ref: pickerRef, children: [_jsx(Input, __assign({ name: name, "data-test": name, "data-cy": "".concat(name, "Inp"), value: fieldValue, label: label, onChange: onChangeTextInput, iconOnClick: !eqOnly ? togglePicker : undefined, icon: !eqOnly ? 'ellipsisVertical' : 'warning', iconPlacement: "right", iconTooltip: eqOnly ? eqOnlyTxt : undefined, type: "text", className: className, error: (!!validation && isInvalid && validation.errorMsg) || '', errorAppearance: "tooltip", autoComplete: "off" }, rest)), isOpen && (_jsx(OverlayComponent, { children: _jsx(IconList, { list: comparatorOptions, selected: comparator, onClick: onChangeComparator }) }))] }));
95
95
  };
96
96
  export default TextRange;
@@ -3,7 +3,7 @@ import { FC } from 'react';
3
3
  export declare const List: import('styled-components').StyledComponent<"ul", import('@xstyled/system').Theme, {}, never>;
4
4
  export declare const ListItem: import('styled-components').StyledComponent<"li", import('@xstyled/system').Theme, {}, never>;
5
5
  export declare const ListItemContent: import('styled-components').StyledComponent<"span", import('@xstyled/system').Theme, {
6
- selected?: boolean;
6
+ selected?: boolean | undefined;
7
7
  }, never>;
8
8
  export declare const ListItemIcon: import('styled-components').StyledComponent<"span", import('@xstyled/system').Theme, {}, never>;
9
9
  type Item = {
@@ -1,5 +1,5 @@
1
1
  export declare const RowLayout: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {
2
2
  $isVisible: boolean;
3
- transition?: string;
4
- transform?: string;
3
+ transition?: string | undefined;
4
+ transform?: string | undefined;
5
5
  }, never>;
@@ -54,7 +54,7 @@ var MobileFilterModal = function (_a) {
54
54
  setLocalFilterValues({});
55
55
  onClearSettings === null || onClearSettings === void 0 ? void 0 : onClearSettings();
56
56
  }, [onClearSettings]);
57
- return (_jsx(Modal, { isShown: isShown, onClose: onClose, title: _jsx(Trans, { id: "dataGrid.filter", message: "Filter" }), onCancel: handleReset, cancelLabel: _jsx(Trans, { id: "dataGrid.buttonClearSettings", message: "Reset" }), onConfirm: handleApplyFilters, confirmLabel: _jsx(Trans, { id: "dataGrid.filter", message: "Filter" }), hasFooter: hasActiveFilters, width: "narrow", children: _jsx(x.div, { display: "flex", flexDirection: "column", gap: "16px", p: "8px 4px", children: filterableColumns.map(function (column) {
57
+ return (_jsx(Modal, { isShown: isShown, onClose: onClose, title: _jsx(Trans, { id: "dataGrid.filter", message: "Filter" }), onCancel: handleReset, cancelLabel: _jsx(Trans, { id: "dataGrid.buttonClearSettings", message: "Reset" }), onConfirm: handleApplyFilters, confirmLabel: _jsx(Trans, { id: "dataGrid.filter", message: "Filter" }), hasFooter: hasActiveFilters, width: "narrow", ignoreClickOutside: true, children: _jsx(x.div, { display: "flex", flexDirection: "column", gap: "16px", p: "8px 4px", children: filterableColumns.map(function (column) {
58
58
  var filterType = createFilterType(column);
59
59
  var filterConfig = filters === null || filters === void 0 ? void 0 : filters[filterType];
60
60
  var defaultComparators = comparators === null || comparators === void 0 ? void 0 : comparators[filterType];
@@ -63,7 +63,7 @@ var MobileFilterModal = function (_a) {
63
63
  if (!(filterConfig === null || filterConfig === void 0 ? void 0 : filterConfig.CellComponent))
64
64
  return null;
65
65
  var RenderComponent = filterConfig.CellComponent;
66
- return (_jsxs(x.div, { display: "flex", flexDirection: "column", gap: "6px", position: "relative", children: [column.title && (_jsx(H6, { mt: 0, mb: 0, variant: "semiBold", children: column.title })), _jsx(RenderComponent, __assign({ asyncLoadKey: column.asyncLoadKey, "data-test": column.name, name: column.name, onChange: handleChange(column), value: value, others: others, OverlayComponent: MobileOverlayWrapper, comparators: defaultComparators, actionColumn: actionColumn, rowsData: rowsData, uxState: uxState, handleUxChange: handleUxChange, onAsyncLoadFilterOptions: onAsyncLoadFilterOptions }, (filterType === 'date' && { compact: true }), (filterType === 'options' && { options: column.filterOptions }), filterConfig === null || filterConfig === void 0 ? void 0 : filterConfig.defaultExtraProps, column.filterExtraProps))] }, column.name));
66
+ return (_jsxs(x.div, { display: "flex", flexDirection: "column", gap: "6px", position: "relative", children: [column.title && (_jsx(H6, { mt: 0, mb: 0, variant: "semiBold", children: column.title })), _jsx(RenderComponent, __assign({ asyncLoadKey: column.asyncLoadKey, "data-test": column.name, name: column.name, onChange: handleChange(column), value: value, others: others, OverlayComponent: MobileOverlayWrapper, comparators: defaultComparators, actionColumn: actionColumn, rowsData: rowsData, uxState: uxState, handleUxChange: handleUxChange, onAsyncLoadFilterOptions: onAsyncLoadFilterOptions }, (filterType === 'date' && { compact: true }), (filterType === 'options' && { options: column.filterOptions, columnWidth: column === null || column === void 0 ? void 0 : column.flexBasis }), filterConfig === null || filterConfig === void 0 ? void 0 : filterConfig.defaultExtraProps, column.filterExtraProps))] }, column.name));
67
67
  }) }) }));
68
68
  };
69
69
  export default MobileFilterModal;
@@ -29,6 +29,6 @@ var MobileSortModal = function (_a) {
29
29
  var handleClearSort = useCallback(function () {
30
30
  onResetSorting === null || onResetSorting === void 0 ? void 0 : onResetSorting();
31
31
  }, [onResetSorting]);
32
- return (_jsx(Modal, { isShown: isShown, onClose: onClose, title: _jsx(Trans, { id: "dataGrid.sort", message: "Sort" }), onConfirm: activeSortedColumn ? handleClearSort : undefined, confirmLabel: _jsx(Trans, { id: "dataGrid.buttonClearSettings", message: "Reset" }), width: "narrow", children: _jsx(x.div, { display: "flex", flexDirection: "column", gap: "8px", p: "8px 4px", children: sortableColumns.map(function (column) { return (_jsx(SortRow, { column: column, currentDirection: getCurrentDirection(column), onCycle: handleCycle }, column.name)); }) }) }));
32
+ return (_jsx(Modal, { isShown: isShown, onClose: onClose, title: _jsx(Trans, { id: "dataGrid.sort", message: "Sort" }), onConfirm: activeSortedColumn ? handleClearSort : undefined, confirmLabel: _jsx(Trans, { id: "dataGrid.buttonClearSettings", message: "Reset" }), width: "narrow", ignoreClickOutside: true, children: _jsx(x.div, { display: "flex", flexDirection: "column", gap: "8px", p: "8px 4px", children: sortableColumns.map(function (column) { return (_jsx(SortRow, { column: column, currentDirection: getCurrentDirection(column), onCycle: handleCycle }, column.name)); }) }) }));
33
33
  };
34
34
  export default MobileSortModal;
@@ -6,15 +6,12 @@ import { jsx as _jsx } from "react/jsx-runtime";
6
6
  import Button from '../../../../Elements/Button';
7
7
  import Input from '../../../../Forms/Input';
8
8
  import styled, { x } from '@xstyled/styled-components';
9
- var StyledInput = styled(Input)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: ", ";\n z-index: ", ";\n width: ", ";\n"], ["\n position: ", ";\n z-index: ", ";\n width: ", ";\n"])), function (_a) {
9
+ var StyledInput = styled(Input)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: ", ";\n z-index: ", ";\n width: auto;\n"], ["\n position: ", ";\n z-index: ", ";\n width: auto;\n"])), function (_a) {
10
10
  var isMobileInputView = _a.isMobileInputView;
11
11
  return (isMobileInputView ? 'absolute' : 'relative');
12
12
  }, function (_a) {
13
13
  var isMobileInputView = _a.isMobileInputView;
14
14
  return (isMobileInputView ? '3' : '1');
15
- }, function (_a) {
16
- var isMobileInputView = _a.isMobileInputView;
17
- return (isMobileInputView ? 'auto' : 'auto');
18
15
  });
19
16
  var QuickFilter = function (_a) {
20
17
  var searchedValue = _a.searchedValue, placeholderText = _a.placeholderText, onChange = _a.onChange, onClick = _a.onClick, displayInput = _a.displayInput, onClear = _a.onClear, isMobileInputView = _a.isMobileInputView, alwaysShowClear = _a.alwaysShowClear;
@@ -1,48 +1,48 @@
1
1
  export declare const Row: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {
2
- hasRowClick?: boolean;
3
- align?: string;
2
+ hasRowClick?: boolean | undefined;
3
+ align?: string | undefined;
4
4
  }, never>;
5
5
  export declare const Cell: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {
6
- align?: string;
7
- flexBasis?: number;
8
- flexGrow?: number;
9
- flexShrink?: number;
10
- transition?: string;
11
- transform?: string;
6
+ align?: string | undefined;
7
+ flexBasis?: number | undefined;
8
+ flexGrow?: number | undefined;
9
+ flexShrink?: number | undefined;
10
+ transition?: string | undefined;
11
+ transform?: string | undefined;
12
12
  }, never>;
13
13
  export declare const StyledDataRow: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {
14
- hasRowClick?: boolean;
15
- align?: string;
14
+ hasRowClick?: boolean | undefined;
15
+ align?: string | undefined;
16
16
  } & {
17
17
  isEven: boolean;
18
18
  }, never>;
19
19
  export declare const TextCell: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {
20
- align?: string;
21
- flexBasis?: number;
22
- flexGrow?: number;
23
- flexShrink?: number;
24
- transition?: string;
25
- transform?: string;
20
+ align?: string | undefined;
21
+ flexBasis?: number | undefined;
22
+ flexGrow?: number | undefined;
23
+ flexShrink?: number | undefined;
24
+ transition?: string | undefined;
25
+ transform?: string | undefined;
26
26
  }, never>;
27
27
  export declare const MessageCell: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {
28
- align?: string;
29
- flexBasis?: number;
30
- flexGrow?: number;
31
- flexShrink?: number;
32
- transition?: string;
33
- transform?: string;
28
+ align?: string | undefined;
29
+ flexBasis?: number | undefined;
30
+ flexGrow?: number | undefined;
31
+ flexShrink?: number | undefined;
32
+ transition?: string | undefined;
33
+ transform?: string | undefined;
34
34
  }, never>;
35
35
  declare const variantColors: {
36
36
  error: (props: import('@xstyled/util').Props<import('@xstyled/system').Theme>) => import('@xstyled/system').CSSScalar;
37
37
  info: (props: import('@xstyled/util').Props<import('@xstyled/system').Theme>) => import('@xstyled/system').CSSScalar;
38
38
  };
39
39
  export declare const MessageCellBody: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {
40
- align?: string;
41
- flexBasis?: number;
42
- flexGrow?: number;
43
- flexShrink?: number;
44
- transition?: string;
45
- transform?: string;
40
+ align?: string | undefined;
41
+ flexBasis?: number | undefined;
42
+ flexGrow?: number | undefined;
43
+ flexShrink?: number | undefined;
44
+ transition?: string | undefined;
45
+ transform?: string | undefined;
46
46
  } & {
47
47
  variant: keyof typeof variantColors;
48
48
  }, never>;
@@ -5,7 +5,7 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
5
5
  import styled, { system, th } from '@xstyled/styled-components';
6
6
  export var Row = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", ";\n display: flex;\n min-height: 32px;\n border-bottom: 1px solid rgb(228, 231, 235);\n cursor: ", ";\n"], ["\n ", ";\n display: flex;\n min-height: 32px;\n border-bottom: 1px solid rgb(228, 231, 235);\n cursor: ", ";\n"])), system, function (props) { return (props.hasRowClick ? 'pointer' : 'auto'); });
7
7
  export var Cell = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n ", ";\n display: flex;\n overflow: hidden;\n align-items: center;\n justify-content: ", ";\n transition: ", ";\n transform: ", ";\n"], ["\n ", ";\n display: flex;\n overflow: hidden;\n align-items: center;\n justify-content: ", ";\n transition: ", ";\n transform: ", ";\n"])), system, function (props) { return props.align; }, function (props) { return props.transition; }, function (props) { return props.transform; });
8
- export var StyledDataRow = styled(Row)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n background-color: ", ";\n"], ["\n background-color: ", ";\n"])), function (props) { return (props.isEven ? th('colors.bgLightGray') : 'white'); });
8
+ export var StyledDataRow = styled(Row)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n background-color: ", ";\n"], ["\n background-color: ", ";\n"])), function (props) { return (props.isEven ? th('colors.bgLightGray') : th('colors.white')); });
9
9
  export var TextCell = styled(Cell)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n text-overflow: ellipsis;\n white-space: nowrap;\n"], ["\n text-overflow: ellipsis;\n white-space: nowrap;\n"])));
10
10
  export var MessageCell = styled(Cell)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n width: 100vw;\n position: sticky;\n left: 0;\n justify-content: center;\n"], ["\n width: 100vw;\n position: sticky;\n left: 0;\n justify-content: center;\n"])));
11
11
  var variantColors = {
@@ -1,5 +1,5 @@
1
1
  import { GridActionsType, ColumnDefinition } from '../types';
2
2
 
3
3
  type AddFilterRet = (value: any, column: ColumnDefinition, others?: any) => void;
4
- export declare const useAddFilter: (onChange: Required<GridActionsType>["addFilter"]) => AddFilterRet;
4
+ export declare const useAddFilter: (onChange: Required<GridActionsType>['addFilter']) => AddFilterRet;
5
5
  export {};
@@ -9,5 +9,5 @@ type ReturnProps = {
9
9
  gridBoxRef: React.MutableRefObject<HTMLElement>;
10
10
  handleResizeDrag: (column: string, width: number) => void;
11
11
  };
12
- declare const useColumnSizes: (displayColumnsDefinitions: CommonGridProps["columnsDefinitions"], storeColumnsWidth: Required<GridSelectorsType>["columnsWidth"], storeColumnsWidthVariant: GridSelectorsType["columnsWidthVariant"], setColumnWidth: Required<GridActionsType>["setColumnWidth"], columnLayout: Required<CommonGridProps>["columnLayout"], minColumnWidth?: number) => ReturnProps;
12
+ declare const useColumnSizes: (displayColumnsDefinitions: CommonGridProps['columnsDefinitions'], storeColumnsWidth: Required<GridSelectorsType>['columnsWidth'], storeColumnsWidthVariant: GridSelectorsType['columnsWidthVariant'], setColumnWidth: Required<GridActionsType>['setColumnWidth'], columnLayout: Required<CommonGridProps>['columnLayout'], minColumnWidth?: number) => ReturnProps;
13
13
  export default useColumnSizes;
@@ -1,3 +1,3 @@
1
1
  type AnyFunction = (...args: any[]) => any;
2
- export declare const useEvent: <T extends AnyFunction>(callback?: T) => T;
2
+ export declare const useEvent: <T extends AnyFunction>(callback?: T | undefined) => T;
3
3
  export {};
@@ -5,5 +5,5 @@ import { RowProps, UxState, ActionColumn, OnBatchActionFn } from '../types';
5
5
  * returns [subset of actions that are enabled, onSelect(value) - param1: selected action value]
6
6
  */
7
7
  type GridActionTriggerRet = [Required<ActionColumn>['actionOptions'], (value: any) => void];
8
- export declare const useGridActionTrigger: (rowsData: RowProps[], uxState: UxState, actionOptions?: ActionColumn["actionOptions"], onBatchAction?: OnBatchActionFn) => GridActionTriggerRet;
8
+ export declare const useGridActionTrigger: (rowsData: RowProps[], uxState: UxState, actionOptions?: ActionColumn['actionOptions'], onBatchAction?: OnBatchActionFn) => GridActionTriggerRet;
9
9
  export {};
@@ -11,7 +11,7 @@ declare const useManageColumn: ({ columns, gridSelectors, gridActions, onClose }
11
11
  columnsConfigValues: string[];
12
12
  setColumnsConfigOptions: import('react').Dispatch<import('react').SetStateAction<{
13
13
  [x: string]: {
14
- isHidden?: boolean;
14
+ isHidden?: boolean | undefined;
15
15
  };
16
16
  }>>;
17
17
  onConfirmForm: () => void;
@@ -1,5 +1,5 @@
1
1
  import { default as React } from 'react';
2
2
  import { RowProps, UxState } from '../types';
3
3
 
4
- declare const useRowsKeyControls: (rowsData: RowProps[], uxState: UxState, onUxChange?: (uxKey: keyof UxState, uxValue: any) => void) => (e: React.KeyboardEvent<HTMLDivElement>) => void;
4
+ declare const useRowsKeyControls: (rowsData: RowProps[], uxState: UxState, onUxChange?: ((uxKey: keyof UxState, uxValue: any) => void) | undefined) => (e: React.KeyboardEvent<HTMLDivElement>) => void;
5
5
  export default useRowsKeyControls;
@@ -5,5 +5,5 @@ import { RowProps, GridActionsType, UxState } from '../types';
5
5
  * returns [checked state, toggleAllHandler()] for checkbox
6
6
  */
7
7
  type ToggleAllCheckboxRet = [boolean, () => void];
8
- export declare const useToggleAllCheckbox: (rowsData?: RowProps[], uxState?: UxState, handleUxChange?: GridActionsType["handleUxChange"]) => ToggleAllCheckboxRet;
8
+ export declare const useToggleAllCheckbox: (rowsData?: RowProps[], uxState?: UxState, handleUxChange?: GridActionsType['handleUxChange']) => ToggleAllCheckboxRet;
9
9
  export {};
@@ -1,4 +1,4 @@
1
1
  import { RowProps, GridActionsType, UxState } from '../types';
2
2
 
3
- declare const useUxReset: (rowsData: RowProps[], uxState: UxState, clearUxState: GridActionsType["clearUxState"]) => any;
3
+ declare const useUxReset: (rowsData: RowProps[], uxState: UxState, clearUxState: GridActionsType['clearUxState']) => any;
4
4
  export default useUxReset;
@@ -31,7 +31,7 @@ export default _default;
31
31
  export declare const createActions: (gridName: string) => {
32
32
  init: (initProps?: InitProps) => Action;
33
33
  clearUxState: () => Action;
34
- handleUxChange: (uxKey: keyof GridState["uxState"], uxValue: any) => Action;
34
+ handleUxChange: (uxKey: keyof GridState['uxState'], uxValue: any) => Action;
35
35
  openConfigForm: () => Action;
36
36
  closeConfigForm: () => Action;
37
37
  setColumnConfig: (columnConfig: ColumnConfig) => Action;
@@ -39,7 +39,7 @@ export declare const createActions: (gridName: string) => {
39
39
  setPresets: (presets: GridPresets) => Action;
40
40
  createPreset: (presetName: string, filters: Filtering) => Action;
41
41
  deletePreset: (presetName: string) => Action;
42
- setColumnWidth: (columnsWidth: null | Record<string, number>, columnLayout: "normal" | "no-scroll" | "sticky") => Action;
42
+ setColumnWidth: (columnsWidth: null | Record<string, number>, columnLayout: 'normal' | 'no-scroll' | 'sticky') => Action;
43
43
  resetGrid: () => Action;
44
44
  setColumnsOrder: (columnsOrder: string[]) => Action;
45
45
  setRowsPerPage: (rowsPerPage: number) => Action;
@@ -51,16 +51,16 @@ export declare const createActions: (gridName: string) => {
51
51
  clearSettings: () => Action;
52
52
  };
53
53
  export declare const createSelectors: (gridName: string) => {
54
- getUxState: (state: DefaultRootState) => GridState["uxState"];
55
- isConfigFormOpen: (state: DefaultRootState) => GridState["isConfigFormOpen"];
56
- getColumnConfig: (state: DefaultRootState) => GridState["columnConfig"];
57
- getPage: (state: DefaultRootState) => GridState["page"];
58
- getPresets: (state: DefaultRootState) => GridState["presets"];
59
- getRowsPerPage: (state: DefaultRootState) => GridState["rowsPerPage"];
60
- getFilter: (state: DefaultRootState) => GridState["filter"];
61
- getSorting: (state: DefaultRootState) => GridState["sorting"];
62
- getColumnsWidth: (state: DefaultRootState) => GridState["columnsWidth"];
63
- getColumnsWidthVariant: (state: DefaultRootState) => GridState["columnsWidthVariant"];
64
- getColumnsOrder: (state: DefaultRootState) => GridState["columnsOrder"];
54
+ getUxState: (state: DefaultRootState) => GridState['uxState'];
55
+ isConfigFormOpen: (state: DefaultRootState) => GridState['isConfigFormOpen'];
56
+ getColumnConfig: (state: DefaultRootState) => GridState['columnConfig'];
57
+ getPage: (state: DefaultRootState) => GridState['page'];
58
+ getPresets: (state: DefaultRootState) => GridState['presets'];
59
+ getRowsPerPage: (state: DefaultRootState) => GridState['rowsPerPage'];
60
+ getFilter: (state: DefaultRootState) => GridState['filter'];
61
+ getSorting: (state: DefaultRootState) => GridState['sorting'];
62
+ getColumnsWidth: (state: DefaultRootState) => GridState['columnsWidth'];
63
+ getColumnsWidthVariant: (state: DefaultRootState) => GridState['columnsWidthVariant'];
64
+ getColumnsOrder: (state: DefaultRootState) => GridState['columnsOrder'];
65
65
  };
66
- export declare const createFullSelector: (gridName: string) => ((state: DefaultRootState) => GridSelectorsType);
66
+ export declare const createFullSelector: (gridName: string) => (state: DefaultRootState) => GridSelectorsType;
@@ -1,13 +1,14 @@
1
- export declare const BottomWrapper: import('styled-components').StyledComponent<(props: Omit<JSX.IntrinsicElements[string], "color">) => import('react').ReactElement<any, string>, import('@xstyled/system').Theme, import('@xstyled/system').SystemProps<import('@xstyled/system').Theme> & {
1
+ /// <reference types="react" />
2
+ export declare const BottomWrapper: import('styled-components').StyledComponent<(props: Omit<JSX.IntrinsicElements, "color">) => import('react').ReactElement<any, string>, import('@xstyled/system').Theme, import('@xstyled/system').SystemProps<import('@xstyled/system').Theme> & {
2
3
  withPagination: boolean;
3
4
  }, "color">;
4
- export declare const ContentContainer: import('styled-components').StyledComponent<(props: Omit<JSX.IntrinsicElements[string], "color">) => import('react').ReactElement<any, string>, import('@xstyled/system').Theme, import('@xstyled/system').SystemProps<import('@xstyled/system').Theme>, "color">;
5
- export declare const CommonGridWrap: import('styled-components').StyledComponent<(props: Omit<JSX.IntrinsicElements[string], "color">) => import('react').ReactElement<any, string>, import('@xstyled/system').Theme, import('@xstyled/system').SystemProps<import('@xstyled/system').Theme> & {
5
+ export declare const ContentContainer: import('styled-components').StyledComponent<(props: Omit<JSX.IntrinsicElements, "color">) => import('react').ReactElement<any, string>, import('@xstyled/system').Theme, import('@xstyled/system').SystemProps<import('@xstyled/system').Theme>, "color">;
6
+ export declare const CommonGridWrap: import('styled-components').StyledComponent<(props: Omit<JSX.IntrinsicElements, "color">) => import('react').ReactElement<any, string>, import('@xstyled/system').Theme, import('@xstyled/system').SystemProps<import('@xstyled/system').Theme> & {
6
7
  withPagination: boolean;
7
8
  }, "color">;
8
- export declare const StyledButtonStrip: import('styled-components').StyledComponent<(props: Omit<JSX.IntrinsicElements[string], "color">) => import('react').ReactElement<any, string>, import('@xstyled/system').Theme, import('@xstyled/system').SystemProps<import('@xstyled/system').Theme>, "color">;
9
+ export declare const StyledButtonStrip: import('styled-components').StyledComponent<(props: Omit<JSX.IntrinsicElements, "color">) => import('react').ReactElement<any, string>, import('@xstyled/system').Theme, import('@xstyled/system').SystemProps<import('@xstyled/system').Theme>, "color">;
9
10
  export declare const CommonGridWithStyles: import('styled-components').StyledComponent<import('react').FC<import('./types').CommonGridProps & {
10
- filters?: import('./types').FiltersConfig;
11
+ filters?: import('./types').FiltersConfig | undefined;
11
12
  handleDragEnd: (item: import('@dnd-kit/core').DragEndEvent) => void;
12
13
  displayColumnsDefinitions: import('./types').ColumnDefinition[];
13
14
  hasGroups: boolean;
@@ -6,7 +6,7 @@ import { gridRowHeight, gridFooterHeight, gridButtonStripHeight, gridHeadHeight,
6
6
  import styled, { x } from '@xstyled/styled-components';
7
7
  import { th } from '@xstyled/system';
8
8
  import CommonGrid from './CommonGrid';
9
- export var BottomWrapper = styled(x.div)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: fixed;\n z-index: 2;\n bottom: 0px;\n padding: ", ";\n left: 0;\n width: 100%;\n height: ", "px;\n background-color: bgLightGray;\n\n @media print {\n display: none;\n }\n\n @media (min-width: 1024px) {\n position: relative;\n bottom: 0;\n margin-bottom: 0;\n }\n"], ["\n position: fixed;\n z-index: 2;\n bottom: 0px;\n padding: ", ";\n left: 0;\n width: 100%;\n height: ", "px;\n background-color: bgLightGray;\n\n @media print {\n display: none;\n }\n\n @media (min-width: 1024px) {\n position: relative;\n bottom: 0;\n margin-bottom: 0;\n }\n"])), function (_a) {
9
+ export var BottomWrapper = styled(x.div)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: relative;\n z-index: 2;\n flex-shrink: 0;\n padding: ", ";\n width: 100%;\n height: ", "px;\n background-color: bgLightGray;\n border-bottom-left-radius: 4px;\n border-bottom-right-radius: 4px;\n\n @media print {\n display: none;\n }\n\n @media (min-width: 1024px) {\n position: relative;\n bottom: 0;\n margin-bottom: 0;\n }\n"], ["\n position: relative;\n z-index: 2;\n flex-shrink: 0;\n padding: ", ";\n width: 100%;\n height: ", "px;\n background-color: bgLightGray;\n border-bottom-left-radius: 4px;\n border-bottom-right-radius: 4px;\n\n @media print {\n display: none;\n }\n\n @media (min-width: 1024px) {\n position: relative;\n bottom: 0;\n margin-bottom: 0;\n }\n"])), function (_a) {
10
10
  var withPagination = _a.withPagination;
11
11
  return (withPagination ? '10px 0' : '0px');
12
12
  }, function (_a) {
@@ -14,24 +14,21 @@ export var BottomWrapper = styled(x.div)(templateObject_1 || (templateObject_1 =
14
14
  return (withPagination ? gridFooterHeight : 0);
15
15
  });
16
16
  export var ContentContainer = styled(x.div)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n background-color: white;\n box-shadow: gridShadow;\n border-radius: 8px;\n flex-grow: 1;\n height: 100%;\n"], ["\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n background-color: white;\n box-shadow: gridShadow;\n border-radius: 8px;\n flex-grow: 1;\n height: 100%;\n"])));
17
- export var CommonGridWrap = styled(x.div)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n height: calc(100% - ", "px);\n\n @media (min-width: 1024px) {\n height: calc(100% - ", "px);\n }\n"], ["\n height: calc(100% - ", "px);\n\n @media (min-width: 1024px) {\n height: calc(100% - ", "px);\n }\n"])), function (_a) {
18
- var withPagination = _a.withPagination;
19
- return (withPagination ? gridFooterHeight : 0);
20
- }, function (_a) {
17
+ export var CommonGridWrap = styled(x.div)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n flex: 1;\n min-height: 0;\n overflow: hidden;\n display: flex;\n flex-direction: column;\n\n @media (min-width: 1024px) {\n display: block;\n height: calc(100% - ", "px);\n flex: unset;\n min-height: unset;\n overflow: visible;\n }\n"], ["\n flex: 1;\n min-height: 0;\n overflow: hidden;\n display: flex;\n flex-direction: column;\n\n @media (min-width: 1024px) {\n display: block;\n height: calc(100% - ", "px);\n flex: unset;\n min-height: unset;\n overflow: visible;\n }\n"])), function (_a) {
21
18
  var withPagination = _a.withPagination;
22
19
  return (withPagination ? gridFooterHeight : 0);
23
20
  });
24
21
  export var StyledButtonStrip = styled(x.div)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n position: relative;\n display: flex;\n justify-content: space-between;\n width: 100%;\n min-height: auto;\n padding: 10px;\n flex-wrap: wrap;\n z-index: 3;\n\n @media (min-width: 768px) {\n min-height: ", "px;\n padding: 18px 20px;\n }\n"], ["\n position: relative;\n display: flex;\n justify-content: space-between;\n width: 100%;\n min-height: auto;\n padding: 10px;\n flex-wrap: wrap;\n z-index: 3;\n\n @media (min-width: 768px) {\n min-height: ", "px;\n padding: 18px 20px;\n }\n"])), gridButtonStripHeight);
25
- export var CommonGridWithStyles = styled(CommonGrid)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n height: calc(100% - ", "px);\n\n & .cell {\n padding: 0 4px;\n }\n & .dataRow {\n font-size: 12px;\n font-family: ", ";\n color: typoPrimary;\n font-weight: normal;\n border-bottom: 1px solid;\n border-color: lightGray3;\n height: ", "px;\n }\n & .gridHead {\n height: ", "px;\n background-color: neutral20;\n padding-bottom: 8px;\n position: sticky;\n top: -1px;\n z-index: 2;\n border-top: 1px solid ", ";\n }\n\n & .filterRow {\n display: none;\n }\n\n @media (min-width: 1023px) {\n & .gridHead {\n height: ", "px;\n }\n & .filterRow {\n display: flex;\n }\n }\n & .headRow {\n font-size: 12px;\n font-family: ", ";\n color: typoPrimary;\n font-weight: bold;\n border-bottom: none; // TODO fix in common-grid\n\n & .cell {\n overflow: hidden;\n max-height: 32px;\n position: relative;\n }\n\n & .sticky {\n background-color: bgLightGray1;\n }\n }\n\n & .filterRow {\n & .cell {\n overflow: visible;\n }\n\n & .cell > div {\n width: 100%; // TODO fix in common-grid\n }\n\n & .sticky {\n background-color: bgLightGray1;\n }\n border-bottom: none; // TODO fix in common-grid\n }\n\n & .body {\n flex-grow: 1;\n }\n\n & .gridWrapper {\n background-color: ", ";\n width: auto;\n padding-bottom: 35px;\n\n @media (min-width: 1024px) {\n height: 100%;\n overflow-y: auto;\n padding-bottom: 0;\n }\n @media print {\n margin: 0;\n width: 100%;\n height: auto;\n overflow-x: hidden;\n }\n }\n\n & .fullWidthGrid > .gridWrapper > div {\n width: 100% !important;\n }\n\n & .paginatorWrapper,\n & .buttonsStrip {\n @media print {\n display: none;\n }\n }\n & .cell {\n padding-left: 4px;\n padding-right: 4px;\n @media print {\n white-space: unset;\n }\n }\n\n .dataRow {\n &.grayedOut {\n background: lightGray1;\n }\n\n .sticky-right,\n .sticky-left {\n background: white;\n }\n\n .sticky-right {\n border-left: 1px solid #dfe1e6;\n }\n\n .sticky-left {\n border-right: 1px solid #dfe1e6;\n }\n\n &:hover,\n &.checked,\n &.selected {\n background-color: red30;\n }\n }\n\n .dataRow:nth-child(even) {\n .sticky-left,\n .sticky-right {\n background-color: bgLightGray;\n }\n }\n\n @media print {\n .filterRow .sticky {\n display: none;\n }\n\n .headRow .sticky {\n display: none;\n }\n\n .dataRow .sticky {\n display: none;\n }\n }\n\n .resizer {\n z-index: unset;\n }\n\n // hotfix table head\n .cell .sortable {\n display: flex;\n align-items: center;\n padding-right: 2px;\n }\n\n .sticky {\n position: sticky !important;\n z-index: 1;\n }\n\n .sticky-left {\n left: 0;\n }\n\n .sticky-right {\n right: 0;\n }\n"], ["\n height: calc(100% - ", "px);\n\n & .cell {\n padding: 0 4px;\n }\n & .dataRow {\n font-size: 12px;\n font-family: ", ";\n color: typoPrimary;\n font-weight: normal;\n border-bottom: 1px solid;\n border-color: lightGray3;\n height: ", "px;\n }\n & .gridHead {\n height: ", "px;\n background-color: neutral20;\n padding-bottom: 8px;\n position: sticky;\n top: -1px;\n z-index: 2;\n border-top: 1px solid ", ";\n }\n\n & .filterRow {\n display: none;\n }\n\n @media (min-width: 1023px) {\n & .gridHead {\n height: ", "px;\n }\n & .filterRow {\n display: flex;\n }\n }\n & .headRow {\n font-size: 12px;\n font-family: ", ";\n color: typoPrimary;\n font-weight: bold;\n border-bottom: none; // TODO fix in common-grid\n\n & .cell {\n overflow: hidden;\n max-height: 32px;\n position: relative;\n }\n\n & .sticky {\n background-color: bgLightGray1;\n }\n }\n\n & .filterRow {\n & .cell {\n overflow: visible;\n }\n\n & .cell > div {\n width: 100%; // TODO fix in common-grid\n }\n\n & .sticky {\n background-color: bgLightGray1;\n }\n border-bottom: none; // TODO fix in common-grid\n }\n\n & .body {\n flex-grow: 1;\n }\n\n & .gridWrapper {\n background-color: ", ";\n width: auto;\n padding-bottom: 35px;\n\n @media (min-width: 1024px) {\n height: 100%;\n overflow-y: auto;\n padding-bottom: 0;\n }\n @media print {\n margin: 0;\n width: 100%;\n height: auto;\n overflow-x: hidden;\n }\n }\n\n & .fullWidthGrid > .gridWrapper > div {\n width: 100% !important;\n }\n\n & .paginatorWrapper,\n & .buttonsStrip {\n @media print {\n display: none;\n }\n }\n & .cell {\n padding-left: 4px;\n padding-right: 4px;\n @media print {\n white-space: unset;\n }\n }\n\n .dataRow {\n &.grayedOut {\n background: lightGray1;\n }\n\n .sticky-right,\n .sticky-left {\n background: white;\n }\n\n .sticky-right {\n border-left: 1px solid #dfe1e6;\n }\n\n .sticky-left {\n border-right: 1px solid #dfe1e6;\n }\n\n &:hover,\n &.checked,\n &.selected {\n background-color: red30;\n }\n }\n\n .dataRow:nth-child(even) {\n .sticky-left,\n .sticky-right {\n background-color: bgLightGray;\n }\n }\n\n @media print {\n .filterRow .sticky {\n display: none;\n }\n\n .headRow .sticky {\n display: none;\n }\n\n .dataRow .sticky {\n display: none;\n }\n }\n\n .resizer {\n z-index: unset;\n }\n\n // hotfix table head\n .cell .sortable {\n display: flex;\n align-items: center;\n padding-right: 2px;\n }\n\n .sticky {\n position: sticky !important;\n z-index: 1;\n }\n\n .sticky-left {\n left: 0;\n }\n\n .sticky-right {\n right: 0;\n }\n"])), function (_a) {
26
- var withButtonStrip = _a.withButtonStrip;
27
- return (withButtonStrip ? gridButtonStripHeight : 0);
28
- }, th('fonts.primary'), gridRowHeight, function (_a) {
22
+ export var CommonGridWithStyles = styled(CommonGrid)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n & .cell {\n padding: 0 4px;\n }\n & .dataRow {\n font-size: 12px;\n font-family: ", ";\n color: typoPrimary;\n font-weight: normal;\n border-bottom: 1px solid;\n border-color: lightGray3;\n height: ", "px;\n }\n & .gridHead {\n height: ", "px;\n background-color: neutral20;\n padding-bottom: 8px;\n position: sticky;\n top: -1px;\n z-index: 2;\n border-top: 1px solid ", ";\n }\n\n & .filterRow {\n display: none;\n }\n\n @media (min-width: 1023px) {\n & .gridHead {\n height: ", "px;\n }\n & .filterRow {\n display: flex;\n }\n }\n & .headRow {\n font-size: 12px;\n font-family: ", ";\n color: typoPrimary;\n font-weight: bold;\n border-bottom: none; // TODO fix in common-grid\n\n & .cell {\n overflow: hidden;\n max-height: 32px;\n position: relative;\n }\n\n & .sticky {\n background-color: neutral20;\n }\n }\n\n & .filterRow {\n & .cell {\n overflow: visible;\n }\n\n & .cell > div {\n width: 100%; // TODO fix in common-grid\n }\n\n & .sticky {\n background-color: neutral20;\n }\n border-bottom: none; // TODO fix in common-grid\n }\n\n & .body {\n flex-grow: 1;\n }\n\n flex: 1;\n min-height: 0;\n\n @media (min-width: 1024px) {\n flex: unset;\n min-height: unset;\n height: calc(100% - ", "px);\n }\n\n & .gridWrapper {\n background-color: ", ";\n width: auto;\n height: 100%;\n overflow-y: auto;\n\n @media (min-width: 1024px) {\n height: 100%;\n overflow-y: auto;\n }\n @media print {\n margin: 0;\n width: 100%;\n height: auto;\n overflow-x: hidden;\n }\n }\n\n & .fullWidthGrid > .gridWrapper > div {\n width: 100% !important;\n }\n\n & .paginatorWrapper,\n & .buttonsStrip {\n @media print {\n display: none;\n }\n }\n & .cell {\n padding-left: 4px;\n padding-right: 4px;\n @media print {\n white-space: unset;\n }\n }\n\n .dataRow {\n &.grayedOut {\n background: lightGray1;\n }\n\n .sticky-right,\n .sticky-left {\n background-color: white;\n }\n\n .sticky-right {\n border-left: 1px solid;\n border-left-color: lightGray6;\n }\n\n .sticky-left {\n border-right: 1px solid;\n border-right-color: lightGray6;\n }\n\n &:hover,\n &.checked,\n &.selected {\n background-color: red30;\n }\n }\n\n .dataRow:nth-child(even) {\n .sticky-left,\n .sticky-right {\n background-color: bgLightGray;\n }\n }\n\n @media print {\n .filterRow .sticky {\n display: none;\n }\n\n .headRow .sticky {\n display: none;\n }\n\n .dataRow .sticky {\n display: none;\n }\n }\n\n .resizer {\n z-index: unset;\n }\n\n // hotfix table head\n .cell .sortable {\n display: flex;\n align-items: center;\n padding-right: 2px;\n }\n\n .sticky {\n position: sticky !important;\n z-index: 1;\n }\n\n .sticky-left {\n left: 0;\n }\n\n .sticky-right {\n right: 0;\n }\n"], ["\n & .cell {\n padding: 0 4px;\n }\n & .dataRow {\n font-size: 12px;\n font-family: ", ";\n color: typoPrimary;\n font-weight: normal;\n border-bottom: 1px solid;\n border-color: lightGray3;\n height: ", "px;\n }\n & .gridHead {\n height: ", "px;\n background-color: neutral20;\n padding-bottom: 8px;\n position: sticky;\n top: -1px;\n z-index: 2;\n border-top: 1px solid ", ";\n }\n\n & .filterRow {\n display: none;\n }\n\n @media (min-width: 1023px) {\n & .gridHead {\n height: ", "px;\n }\n & .filterRow {\n display: flex;\n }\n }\n & .headRow {\n font-size: 12px;\n font-family: ", ";\n color: typoPrimary;\n font-weight: bold;\n border-bottom: none; // TODO fix in common-grid\n\n & .cell {\n overflow: hidden;\n max-height: 32px;\n position: relative;\n }\n\n & .sticky {\n background-color: neutral20;\n }\n }\n\n & .filterRow {\n & .cell {\n overflow: visible;\n }\n\n & .cell > div {\n width: 100%; // TODO fix in common-grid\n }\n\n & .sticky {\n background-color: neutral20;\n }\n border-bottom: none; // TODO fix in common-grid\n }\n\n & .body {\n flex-grow: 1;\n }\n\n flex: 1;\n min-height: 0;\n\n @media (min-width: 1024px) {\n flex: unset;\n min-height: unset;\n height: calc(100% - ", "px);\n }\n\n & .gridWrapper {\n background-color: ", ";\n width: auto;\n height: 100%;\n overflow-y: auto;\n\n @media (min-width: 1024px) {\n height: 100%;\n overflow-y: auto;\n }\n @media print {\n margin: 0;\n width: 100%;\n height: auto;\n overflow-x: hidden;\n }\n }\n\n & .fullWidthGrid > .gridWrapper > div {\n width: 100% !important;\n }\n\n & .paginatorWrapper,\n & .buttonsStrip {\n @media print {\n display: none;\n }\n }\n & .cell {\n padding-left: 4px;\n padding-right: 4px;\n @media print {\n white-space: unset;\n }\n }\n\n .dataRow {\n &.grayedOut {\n background: lightGray1;\n }\n\n .sticky-right,\n .sticky-left {\n background-color: white;\n }\n\n .sticky-right {\n border-left: 1px solid;\n border-left-color: lightGray6;\n }\n\n .sticky-left {\n border-right: 1px solid;\n border-right-color: lightGray6;\n }\n\n &:hover,\n &.checked,\n &.selected {\n background-color: red30;\n }\n }\n\n .dataRow:nth-child(even) {\n .sticky-left,\n .sticky-right {\n background-color: bgLightGray;\n }\n }\n\n @media print {\n .filterRow .sticky {\n display: none;\n }\n\n .headRow .sticky {\n display: none;\n }\n\n .dataRow .sticky {\n display: none;\n }\n }\n\n .resizer {\n z-index: unset;\n }\n\n // hotfix table head\n .cell .sortable {\n display: flex;\n align-items: center;\n padding-right: 2px;\n }\n\n .sticky {\n position: sticky !important;\n z-index: 1;\n }\n\n .sticky-left {\n left: 0;\n }\n\n .sticky-right {\n right: 0;\n }\n"])), th('fonts.primary'), gridRowHeight, function (_a) {
29
23
  var hasGroups = _a.hasGroups;
30
24
  return gridHeadHeight + (hasGroups ? gridFilterHeight : 0);
31
25
  }, th('colors.lightGray6'), function (_a) {
32
26
  var hasGroupsOrFilters = _a.hasGroupsOrFilters;
33
27
  return gridHeadHeight + (hasGroupsOrFilters ? gridFilterHeight : 0);
34
28
  }, th('fonts.primary'), function (_a) {
29
+ var withButtonStrip = _a.withButtonStrip;
30
+ return (withButtonStrip ? gridButtonStripHeight : 0);
31
+ }, function (_a) {
35
32
  var theme = _a.theme;
36
33
  return theme.colors.white;
37
34
  });