@gpa-gemstone/common-pages 0.0.56 → 0.0.57

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/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
  ];
@@ -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: ActionCreatorWithPayload<{
12
+ Sort: AsyncThunk<any, {
13
13
  SortField: keyof T;
14
14
  Ascending: boolean;
15
- }, string>;
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 | null;
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.56",
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",
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.32",
54
- "@gpa-gemstone/react-interactive": "1.0.70",
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",