@reltio/components 1.4.1583 → 1.4.1584
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.
|
@@ -102,6 +102,10 @@ var AttributesTable = function (_a) {
|
|
|
102
102
|
var handleReorderAttributeTypes = (0, react_1.useCallback)(function (oldPosition, newPosition) {
|
|
103
103
|
onSelectAttributeTypes((0, ramda_1.move)(oldPosition, newPosition, selectedAttributeTypes));
|
|
104
104
|
}, [onSelectAttributeTypes, selectedAttributeTypes]);
|
|
105
|
+
var handleDelete = (0, react_1.useCallback)(pendingDeletion ? function () { return onDelete(pendingDeletion); } : core_1.noop, [
|
|
106
|
+
pendingDeletion,
|
|
107
|
+
onDelete
|
|
108
|
+
]);
|
|
105
109
|
var tableContext = (0, react_1.useMemo)(function () { return ({
|
|
106
110
|
onDelete: setPendingDeletion,
|
|
107
111
|
onPin: onPin,
|
|
@@ -132,7 +136,7 @@ var AttributesTable = function (_a) {
|
|
|
132
136
|
react_1.default.createElement("div", { className: styles.tableContent },
|
|
133
137
|
isLoading && react_1.default.createElement(LinearLoadIndicator_1.default, null),
|
|
134
138
|
react_1.default.createElement(BasicTableView_1.BasicTable, { fixFirstColumn: true, headRowHeight: 48, defaultColumnWidth: 250, defaultColumnMinWidth: 200, columnsData: visibleColumnsData, dndRowReorderingEnabled: true, dndRowReorderingHandler: handleReorderAttributeTypes, getIdFromRowValue: getIdFromRowValue, rowsData: rowsData, renderRowCell: renderRowCell, getRowCellHeight: getRowCellHeight, context: tableContext })),
|
|
135
|
-
react_1.default.createElement(ConfirmDeleteDialog_1.default, { open: !!pendingDeletion, onClose: function () { return setPendingDeletion(null); }, onConfirm:
|
|
139
|
+
react_1.default.createElement(ConfirmDeleteDialog_1.default, { open: !!pendingDeletion, onClose: function () { return setPendingDeletion(null); }, onConfirm: handleDelete }),
|
|
136
140
|
react_1.default.createElement(ConfirmEditIgnoredDialog_1.default, { open: !!pendingIgnoredEditing, onClose: function () { return setPendingIgnoredEditing(null); }, onConfirmEditWithIgnore: function () { return onEdit(pendingIgnoredEditing); }, onConfirmEditWithoutIgnore: function () {
|
|
137
141
|
onIgnore({ attributeValue: pendingIgnoredEditing.attributeValue });
|
|
138
142
|
onEdit(pendingIgnoredEditing);
|
|
@@ -74,6 +74,10 @@ var AttributesTable = function (_a) {
|
|
|
74
74
|
var handleReorderAttributeTypes = useCallback(function (oldPosition, newPosition) {
|
|
75
75
|
onSelectAttributeTypes(move(oldPosition, newPosition, selectedAttributeTypes));
|
|
76
76
|
}, [onSelectAttributeTypes, selectedAttributeTypes]);
|
|
77
|
+
var handleDelete = useCallback(pendingDeletion ? function () { return onDelete(pendingDeletion); } : noop, [
|
|
78
|
+
pendingDeletion,
|
|
79
|
+
onDelete
|
|
80
|
+
]);
|
|
77
81
|
var tableContext = useMemo(function () { return ({
|
|
78
82
|
onDelete: setPendingDeletion,
|
|
79
83
|
onPin: onPin,
|
|
@@ -104,7 +108,7 @@ var AttributesTable = function (_a) {
|
|
|
104
108
|
React.createElement("div", { className: styles.tableContent },
|
|
105
109
|
isLoading && React.createElement(LinearLoadIndicator, null),
|
|
106
110
|
React.createElement(BasicTable, { fixFirstColumn: true, headRowHeight: 48, defaultColumnWidth: 250, defaultColumnMinWidth: 200, columnsData: visibleColumnsData, dndRowReorderingEnabled: true, dndRowReorderingHandler: handleReorderAttributeTypes, getIdFromRowValue: getIdFromRowValue, rowsData: rowsData, renderRowCell: renderRowCell, getRowCellHeight: getRowCellHeight, context: tableContext })),
|
|
107
|
-
React.createElement(ConfirmDeleteDialog, { open: !!pendingDeletion, onClose: function () { return setPendingDeletion(null); }, onConfirm:
|
|
111
|
+
React.createElement(ConfirmDeleteDialog, { open: !!pendingDeletion, onClose: function () { return setPendingDeletion(null); }, onConfirm: handleDelete }),
|
|
108
112
|
React.createElement(ConfirmEditIgnoredDialog, { open: !!pendingIgnoredEditing, onClose: function () { return setPendingIgnoredEditing(null); }, onConfirmEditWithIgnore: function () { return onEdit(pendingIgnoredEditing); }, onConfirmEditWithoutIgnore: function () {
|
|
109
113
|
onIgnore({ attributeValue: pendingIgnoredEditing.attributeValue });
|
|
110
114
|
onEdit(pendingIgnoredEditing);
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reltio/components",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.1584",
|
|
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.1584",
|
|
11
|
+
"@reltio/mdm-sdk": "^1.4.1584",
|
|
12
12
|
"classnames": "^2.2.5",
|
|
13
13
|
"d3-cloud": "^1.2.5",
|
|
14
14
|
"d3-geo": "^2.0.1",
|