@reltio/components 1.4.825 → 1.4.826
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.
|
@@ -33,7 +33,10 @@ var changeVisibleColumns = function (state, nextVisibleColumns) {
|
|
|
33
33
|
var isRemovedColumn = function (columnId) { return removedColumns.includes(columnId); };
|
|
34
34
|
return ramda_1.evolve({
|
|
35
35
|
visibleColumns: ramda_1.always(nextVisibleColumns),
|
|
36
|
-
sorting: ramda_1.when(function (sorting) {
|
|
36
|
+
sorting: ramda_1.when(function (sorting) {
|
|
37
|
+
if (sorting === void 0) { sorting = {}; }
|
|
38
|
+
return isRemovedColumn(sorting.field);
|
|
39
|
+
}, function () {
|
|
37
40
|
var nextSortField = nextVisibleColumns[0];
|
|
38
41
|
return { field: nextSortField, order: 'asc' };
|
|
39
42
|
}),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const useStyles: (props?: any) => import("@material-ui/core/styles/withStyles").ClassNameMap<"button" | "overlay" | "selected" | "checkedIcon" | "
|
|
1
|
+
export declare const useStyles: (props?: any) => import("@material-ui/core/styles/withStyles").ClassNameMap<"button" | "overlay" | "selected" | "checkedIcon" | "actions" | "selectionMode" | "actionButton" | "dropDownMenuButton">;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const useStyles: (props?: any) => import("@material-ui/core/styles/withStyles").ClassNameMap<"deleted" | "label" | "
|
|
1
|
+
export const useStyles: (props?: any) => import("@material-ui/core/styles/withStyles").ClassNameMap<"deleted" | "label" | "actions" | "expandButton" | "editor" | "editedLabel" | "titleContainer">;
|
package/hooks/useActions.d.ts
CHANGED
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
actions:
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
declare type UseActions = ({ actions, dispatch }: {
|
|
2
|
+
actions: {
|
|
3
|
+
[key: string]: <T>(payload: T) => {
|
|
4
|
+
type: string;
|
|
5
|
+
payload: T;
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
dispatch: <T>({ type, payload }: {
|
|
9
|
+
type: string;
|
|
10
|
+
payload: T;
|
|
11
|
+
}) => void;
|
|
12
|
+
}) => {
|
|
13
|
+
[key in keyof typeof actions]: <T>(payload: T) => void;
|
|
14
|
+
};
|
|
15
|
+
export declare const useActions: UseActions;
|
|
16
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reltio/components",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.826",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE FILE",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@date-io/moment": "^1.3.5",
|
|
8
8
|
"@react-google-maps/api": "^2.7.0",
|
|
9
|
-
"@reltio/mdm-module": "^1.4.
|
|
10
|
-
"@reltio/mdm-sdk": "^1.4.
|
|
9
|
+
"@reltio/mdm-module": "^1.4.826",
|
|
10
|
+
"@reltio/mdm-sdk": "^1.4.826",
|
|
11
11
|
"classnames": "^2.2.5",
|
|
12
12
|
"frontend-collective-react-dnd-scrollzone": "^1.0.2",
|
|
13
13
|
"nanoid": "^2.0.0",
|