@gpa-gemstone/common-pages 0.0.56 → 0.0.57
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/SearchBar.js +2 -2
- package/lib/SliceInterfaces.d.ts +4 -4
- package/package.json +4 -4
package/lib/SearchBar.js
CHANGED
@@ -100,8 +100,8 @@ var DefaultSearch;
|
|
100
100
|
{ label: 'Name', key: 'AssetName', type: 'string', isPivotField: false },
|
101
101
|
{ label: 'Voltage (kV)', key: 'VoltageKV', type: 'number', isPivotField: false },
|
102
102
|
{ label: 'Type', key: 'AssetType', type: 'enum', isPivotField: false },
|
103
|
-
{ label: 'Meter', key: 'Meter', type: 'string', isPivotField: false },
|
104
|
-
{ label: 'Substation', key: 'Location', type: 'string', isPivotField: false },
|
103
|
+
{ label: 'Meter Key', key: 'Meter', type: 'string', isPivotField: false },
|
104
|
+
{ label: 'Substation Key', key: 'Location', type: 'string', isPivotField: false },
|
105
105
|
{ label: 'Number of Meters', key: 'Meters', type: 'integer', isPivotField: false },
|
106
106
|
{ label: 'Number of Substations', key: 'Locations', type: 'integer', isPivotField: false },
|
107
107
|
];
|
package/lib/SliceInterfaces.d.ts
CHANGED
@@ -4,20 +4,20 @@ import { ActionCreatorWithPayload, AsyncThunk, ActionCreatorWithoutPayload } fro
|
|
4
4
|
declare type DBAction = 'POST' | 'DELETE' | 'PATCH';
|
5
5
|
export declare type UserValidation = 'Resolving' | 'Valid' | 'Invalid' | 'Unknown';
|
6
6
|
export interface IGenericSlice<T> {
|
7
|
-
Fetch: (AsyncThunk<any, void | number, {}>);
|
7
|
+
Fetch: (AsyncThunk<any, void | number | string, {}>);
|
8
8
|
DBAction: (AsyncThunk<any, {
|
9
9
|
verb: DBAction;
|
10
10
|
record: T;
|
11
11
|
}, {}>);
|
12
|
-
Sort:
|
12
|
+
Sort: AsyncThunk<any, {
|
13
13
|
SortField: keyof T;
|
14
14
|
Ascending: boolean;
|
15
|
-
},
|
15
|
+
}, {}>;
|
16
16
|
Data: (state: any) => T[];
|
17
17
|
Status: (state: any) => Application.Types.Status;
|
18
18
|
SortField: (state: any) => keyof T;
|
19
19
|
Ascending: (state: any) => boolean;
|
20
|
-
ParentID?: (state: any) => number |
|
20
|
+
ParentID?: (state: any) => number | string;
|
21
21
|
}
|
22
22
|
export interface ISearchableSlice<T> extends IGenericSlice<T> {
|
23
23
|
DBSearch: (AsyncThunk<any, {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@gpa-gemstone/common-pages",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.57",
|
4
4
|
"description": "Common UI pages for GPA products",
|
5
5
|
"main": "lib/index.js",
|
6
6
|
"types": "lib/index.d.ts",
|
@@ -47,11 +47,11 @@
|
|
47
47
|
"typescript": "4.4.4"
|
48
48
|
},
|
49
49
|
"dependencies": {
|
50
|
-
"@gpa-gemstone/application-typings": "0.0.
|
50
|
+
"@gpa-gemstone/application-typings": "0.0.51",
|
51
51
|
"@gpa-gemstone/gpa-symbols": "0.0.23",
|
52
52
|
"@gpa-gemstone/helper-functions": "0.0.17",
|
53
|
-
"@gpa-gemstone/react-forms": "1.1.
|
54
|
-
"@gpa-gemstone/react-interactive": "1.0.
|
53
|
+
"@gpa-gemstone/react-forms": "1.1.33",
|
54
|
+
"@gpa-gemstone/react-interactive": "1.0.71",
|
55
55
|
"@gpa-gemstone/react-table": "1.2.19",
|
56
56
|
"@reduxjs/toolkit": "1.8.3",
|
57
57
|
"crypto-js": "4.0.0",
|