@mailstep/design-system 0.7.8-beta.6 → 0.7.8
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 +1 -1
- package/ui/Blocks/CommonGrid/hooks/useGridAutoHeight.js +0 -3
- package/ui/Blocks/CommonGrid/utils/index.d.ts +0 -2
- package/ui/Blocks/CommonGrid/utils/index.js +0 -2
- package/ui/index.es.js +13187 -12707
- package/ui/index.umd.js +580 -580
package/package.json
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { useEffect } from 'react';
|
|
2
|
-
// import { GRID_MIN_ROWS, rowHeight } from './utils'
|
|
3
2
|
import { rowsPerPageOptions } from '../utils/constants';
|
|
4
3
|
export var useGridAutoHeight = function (_a) {
|
|
5
4
|
var gridHeight = _a.gridHeight, gridActions = _a.gridActions, queryRowsParam = _a.queryRowsParam, rowsPerPage = _a.rowsPerPage, getRowsPerPage = _a.getRowsPerPage, autoHeight = _a.autoHeight;
|
|
@@ -10,8 +9,6 @@ export var useGridAutoHeight = function (_a) {
|
|
|
10
9
|
}
|
|
11
10
|
var selectedOption = rowsPerPageOptions.find(function (option) { return option.value === rowsPerPage; });
|
|
12
11
|
if (!selectedOption) {
|
|
13
|
-
// @TODO this move to mailship
|
|
14
|
-
// const numberOfRows = Math.max(Math.floor(gridHeight / rowHeight - 2), GRID_MIN_ROWS)
|
|
15
12
|
var numberOfRows = getRowsPerPage === null || getRowsPerPage === void 0 ? void 0 : getRowsPerPage(gridHeight);
|
|
16
13
|
if (numberOfRows) {
|
|
17
14
|
(_a = gridActions.setRowsPerPage) === null || _a === void 0 ? void 0 : _a.call(gridActions, numberOfRows);
|
|
@@ -15,7 +15,5 @@ export declare const createFilterType: (columnDefinition: {
|
|
|
15
15
|
export declare const getGroups: (columns: ColumnDefinition[]) => Group[];
|
|
16
16
|
export declare const getGroupClassNames: (group?: Group) => string;
|
|
17
17
|
export declare const getStickyCollClassNames: (sticky: boolean, stickTo?: StickTo) => string;
|
|
18
|
-
export declare const GRID_MIN_ROWS = 6;
|
|
19
|
-
export declare const rowHeight = 40;
|
|
20
18
|
export declare const getFilters: (optimizeFilters: boolean) => FiltersConfig;
|
|
21
19
|
export declare const checksColumnsOrder: (colsOrder: string[], columnsDefinitions: ColumnDefinition[]) => void;
|
|
@@ -66,8 +66,6 @@ export var getGroupClassNames = function (group) {
|
|
|
66
66
|
export var getStickyCollClassNames = function (sticky, stickTo) {
|
|
67
67
|
return !sticky ? '' : "".concat(stickTo ? " sticky sticky-".concat(stickTo) : ' sticky sticky-left');
|
|
68
68
|
};
|
|
69
|
-
export var GRID_MIN_ROWS = 6;
|
|
70
|
-
export var rowHeight = 40;
|
|
71
69
|
export var getFilters = function (optimizeFilters) {
|
|
72
70
|
var filters = {
|
|
73
71
|
number: { CellComponent: NumberRange },
|