@reltio/components 1.4.1237 → 1.4.1238
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.
|
@@ -58,7 +58,7 @@ var RowCollapseContext_1 = require("./contexts/RowCollapseContext");
|
|
|
58
58
|
var ramda_1 = require("ramda");
|
|
59
59
|
var useCollapsibleTableRows_1 = __importDefault(require("./hooks/useCollapsibleTableRows"));
|
|
60
60
|
var BasicTable = react_1.forwardRef(function (_a, ref) {
|
|
61
|
-
var columnsData = _a.columnsData, rowsData = _a.rowsData, context = _a.context, sorting = _a.sorting, onSort = _a.onSort, _b = _a.renderRowCell, renderRowCell = _b === void 0 ? defaultRenderRowCell_1.default : _b, _c = _a.getRowCellHeight, getRowCellHeight = _c === void 0 ? defaultGetRowCellHeight_1.default : _c, filters = _a.filters, onFilter = _a.onFilter, headRowHeight = _a.headRowHeight, _d = _a.maxRowValuesCount, maxRowValuesCount = _d === void 0 ? Infinity : _d, otherProps = __rest(_a, ["columnsData", "rowsData", "context", "sorting", "onSort", "renderRowCell", "getRowCellHeight", "filters", "onFilter", "headRowHeight", "maxRowValuesCount"]);
|
|
61
|
+
var columnsData = _a.columnsData, rowsData = _a.rowsData, context = _a.context, sorting = _a.sorting, onSort = _a.onSort, _b = _a.renderRowCell, renderRowCell = _b === void 0 ? defaultRenderRowCell_1.default : _b, _c = _a.getRowCellHeight, getRowCellHeight = _c === void 0 ? defaultGetRowCellHeight_1.default : _c, filters = _a.filters, onFilter = _a.onFilter, headRowHeight = _a.headRowHeight, _d = _a.maxRowValuesCount, maxRowValuesCount = _d === void 0 ? Infinity : _d, autosizing = _a.autosizing, maxHeight = _a.maxHeight, otherProps = __rest(_a, ["columnsData", "rowsData", "context", "sorting", "onSort", "renderRowCell", "getRowCellHeight", "filters", "onFilter", "headRowHeight", "maxRowValuesCount", "autosizing", "maxHeight"]);
|
|
62
62
|
var tableHeadData = react_1.useMemo(function () { return dataHelpers_1.getTableHeadData(columnsData, filters, onFilter); }, [
|
|
63
63
|
columnsData,
|
|
64
64
|
filters,
|
|
@@ -73,7 +73,7 @@ var BasicTable = react_1.forwardRef(function (_a, ref) {
|
|
|
73
73
|
}), tableRowsData = _e.tableRowsData, collapseContextValue = _e.collapseContextValue;
|
|
74
74
|
return (react_1.default.createElement(RowCollapseContext_1.RowCollapseContext.Provider, { value: collapseContextValue },
|
|
75
75
|
react_1.default.createElement(TableContext_1.TableContext.Provider, { value: context },
|
|
76
|
-
react_1.default.createElement(Table_1.default, __assign({ defaultRowHeight: 48 }, otherProps, { fixHead: tableRowsData.length > 0, headData: tableHeadData, rowsData: tableRowsData, sortField: ramda_1.prop('field', sorting), sortOrder: ramda_1.prop('order', sorting), onSort: onSort, headRowHeight: filters ? headRowHeight + styles_1.COLUMN_FILTER_HEIGHT : headRowHeight, ref: ref })))));
|
|
76
|
+
react_1.default.createElement(Table_1.default, __assign({ autosizing: autosizing, maxHeight: maxHeight, defaultRowHeight: 48 }, otherProps, { fixHead: tableRowsData.length > 0, headData: tableHeadData, rowsData: tableRowsData, sortField: ramda_1.prop('field', sorting), sortOrder: ramda_1.prop('order', sorting), onSort: onSort, headRowHeight: filters ? headRowHeight + styles_1.COLUMN_FILTER_HEIGHT : headRowHeight, ref: ref })))));
|
|
77
77
|
});
|
|
78
78
|
exports.BasicTableType = {
|
|
79
79
|
columnsData: prop_types_1.default.arrayOf(prop_types_2.ColumnDataType).isRequired,
|
|
@@ -33,7 +33,7 @@ import { RowCollapseContext } from './contexts/RowCollapseContext';
|
|
|
33
33
|
import { prop } from 'ramda';
|
|
34
34
|
import useCollapsibleTableRows from './hooks/useCollapsibleTableRows';
|
|
35
35
|
var BasicTable = forwardRef(function (_a, ref) {
|
|
36
|
-
var columnsData = _a.columnsData, rowsData = _a.rowsData, context = _a.context, sorting = _a.sorting, onSort = _a.onSort, _b = _a.renderRowCell, renderRowCell = _b === void 0 ? defaultRenderRowCell : _b, _c = _a.getRowCellHeight, getRowCellHeight = _c === void 0 ? defaultGetRowCellHeight : _c, filters = _a.filters, onFilter = _a.onFilter, headRowHeight = _a.headRowHeight, _d = _a.maxRowValuesCount, maxRowValuesCount = _d === void 0 ? Infinity : _d, otherProps = __rest(_a, ["columnsData", "rowsData", "context", "sorting", "onSort", "renderRowCell", "getRowCellHeight", "filters", "onFilter", "headRowHeight", "maxRowValuesCount"]);
|
|
36
|
+
var columnsData = _a.columnsData, rowsData = _a.rowsData, context = _a.context, sorting = _a.sorting, onSort = _a.onSort, _b = _a.renderRowCell, renderRowCell = _b === void 0 ? defaultRenderRowCell : _b, _c = _a.getRowCellHeight, getRowCellHeight = _c === void 0 ? defaultGetRowCellHeight : _c, filters = _a.filters, onFilter = _a.onFilter, headRowHeight = _a.headRowHeight, _d = _a.maxRowValuesCount, maxRowValuesCount = _d === void 0 ? Infinity : _d, autosizing = _a.autosizing, maxHeight = _a.maxHeight, otherProps = __rest(_a, ["columnsData", "rowsData", "context", "sorting", "onSort", "renderRowCell", "getRowCellHeight", "filters", "onFilter", "headRowHeight", "maxRowValuesCount", "autosizing", "maxHeight"]);
|
|
37
37
|
var tableHeadData = useMemo(function () { return getTableHeadData(columnsData, filters, onFilter); }, [
|
|
38
38
|
columnsData,
|
|
39
39
|
filters,
|
|
@@ -48,7 +48,7 @@ var BasicTable = forwardRef(function (_a, ref) {
|
|
|
48
48
|
}), tableRowsData = _e.tableRowsData, collapseContextValue = _e.collapseContextValue;
|
|
49
49
|
return (React.createElement(RowCollapseContext.Provider, { value: collapseContextValue },
|
|
50
50
|
React.createElement(TableContext.Provider, { value: context },
|
|
51
|
-
React.createElement(Table, __assign({ defaultRowHeight: 48 }, otherProps, { fixHead: tableRowsData.length > 0, headData: tableHeadData, rowsData: tableRowsData, sortField: prop('field', sorting), sortOrder: prop('order', sorting), onSort: onSort, headRowHeight: filters ? headRowHeight + COLUMN_FILTER_HEIGHT : headRowHeight, ref: ref })))));
|
|
51
|
+
React.createElement(Table, __assign({ autosizing: autosizing, maxHeight: maxHeight, defaultRowHeight: 48 }, otherProps, { fixHead: tableRowsData.length > 0, headData: tableHeadData, rowsData: tableRowsData, sortField: prop('field', sorting), sortOrder: prop('order', sorting), onSort: onSort, headRowHeight: filters ? headRowHeight + COLUMN_FILTER_HEIGHT : headRowHeight, ref: ref })))));
|
|
52
52
|
});
|
|
53
53
|
export var BasicTableType = {
|
|
54
54
|
columnsData: PropTypes.arrayOf(ColumnDataType).isRequired,
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reltio/components",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.1238",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE FILE",
|
|
5
5
|
"main": "./cjs/index.js",
|
|
6
6
|
"module": "./esm/index.js",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@date-io/moment": "^1.3.5",
|
|
9
9
|
"@react-google-maps/api": "2.7.0",
|
|
10
|
-
"@reltio/mdm-module": "^1.4.
|
|
11
|
-
"@reltio/mdm-sdk": "^1.4.
|
|
10
|
+
"@reltio/mdm-module": "^1.4.1238",
|
|
11
|
+
"@reltio/mdm-sdk": "^1.4.1238",
|
|
12
12
|
"classnames": "^2.2.5",
|
|
13
13
|
"d3-cloud": "^1.2.5",
|
|
14
14
|
"d3-geo": "^2.0.1",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"prop-types": "^15.6.2",
|
|
20
20
|
"ramda": "^0.28.0",
|
|
21
21
|
"react-autosuggest": "^9.4.3",
|
|
22
|
-
"react-components": "
|
|
22
|
+
"react-components": "bitbucket:reltio-ondemand/react-components#v3.13.0",
|
|
23
23
|
"react-dnd": "^9.4.0",
|
|
24
24
|
"react-dnd-html5-backend": "^10.0.2",
|
|
25
25
|
"react-grid-layout": "^1.1.1",
|