@gpa-gemstone/common-pages 0.0.67 → 0.0.68

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/Note.js CHANGED
@@ -158,7 +158,7 @@ function Note(props) {
158
158
  if (dataStatus === "error")
159
159
  return (React.createElement("div", { style: { width: '100%', height: '100%' } },
160
160
  React.createElement("div", { style: { height: '40px', margin: 'auto', marginTop: 'calc(50% - 20 px)' } },
161
- React.createElement(react_interactive_1.ServerErrorIcon, { Show: true, Size: 40, Label: 'A Server Error Occured. Please Reload the Application' }))));
161
+ React.createElement(react_interactive_1.ServerErrorIcon, { Show: true, Size: 40 }))));
162
162
  return (React.createElement("div", { className: showCard ? "card" : "", style: { marginBottom: 10, maxHeight: props.MaxHeight, width: '100%' } },
163
163
  React.createElement(react_interactive_1.LoadingScreen, { Show: dataStatus === 'loading' }),
164
164
  React.createElement("div", { className: props.ShowCard === undefined || props.ShowCard ? "card-header" : "" },
package/lib/SearchBar.js CHANGED
@@ -42,12 +42,13 @@ var DefaultSearch;
42
42
  /** This Implements a standard Meter Search */
43
43
  function Meter(props) {
44
44
  var defaultSearchcols = [
45
- { label: 'AssetKey', key: 'AssetKey', type: 'string', isPivotField: false },
45
+ { label: 'Key', key: 'AssetKey', type: 'string', isPivotField: false },
46
46
  { label: 'Name', key: 'Name', type: 'string', isPivotField: false },
47
- { label: 'Location', key: 'Location', type: 'string', isPivotField: false },
47
+ { label: 'Substation', key: 'Location', type: 'string', isPivotField: false },
48
48
  { label: 'Make', key: 'Make', type: 'string', isPivotField: false },
49
49
  { label: 'Model', key: 'Model', type: 'string', isPivotField: false },
50
50
  { label: 'Number of Assets', key: 'MappedAssets', type: 'number', isPivotField: false },
51
+ { label: 'Description', key: 'Description', type: 'string', isPivotField: false },
51
52
  ];
52
53
  var dispatch = (0, react_redux_1.useDispatch)();
53
54
  var _a = React.useState([]), addlFieldCols = _a[0], setAddlFieldCols = _a[1];
@@ -78,7 +79,7 @@ var DefaultSearch;
78
79
  { label: 'Meter', key: 'Meter', type: 'string', isPivotField: false },
79
80
  { label: 'Number of Transmission Assets', key: 'Assets', type: 'integer', isPivotField: false },
80
81
  { label: 'Number of Meters', key: 'Meters', type: 'integer', isPivotField: false },
81
- { label: 'Description', key: 'Description', type: 'string', isPivotField: false }
82
+ { label: 'Description', key: 'Description', type: 'string', isPivotField: false },
82
83
  ];
83
84
  React.useEffect(function () {
84
85
  return props.GetAddlFields(setAddlFieldCols);
@@ -98,12 +99,13 @@ var DefaultSearch;
98
99
  var defaultSearchcols = [
99
100
  { label: 'Key', key: 'AssetKey', type: 'string', isPivotField: false },
100
101
  { label: 'Name', key: 'AssetName', type: 'string', isPivotField: false },
101
- { label: 'Voltage (kV)', key: 'VoltageKV', type: 'number', isPivotField: false },
102
+ { label: 'Nominal Voltage (L-L kV)', key: 'VoltageKV', type: 'number', isPivotField: false },
102
103
  { label: 'Type', key: 'AssetType', type: 'enum', isPivotField: false },
103
104
  { label: 'Meter Key', key: 'Meter', type: 'string', isPivotField: false },
104
105
  { label: 'Substation Key', key: 'Location', type: 'string', isPivotField: false },
105
106
  { label: 'Number of Meters', key: 'Meters', type: 'integer', isPivotField: false },
106
107
  { label: 'Number of Substations', key: 'Locations', type: 'integer', isPivotField: false },
108
+ { label: 'Description', key: 'Description', type: 'string', isPivotField: false },
107
109
  ];
108
110
  React.useEffect(function () {
109
111
  return props.GetAddlFields(setAddlFieldCols);
@@ -122,10 +124,11 @@ var DefaultSearch;
122
124
  var data = (0, react_redux_1.useSelector)(props.Slice.SearchResults);
123
125
  var defaultSearchcols = [
124
126
  { label: 'Name', key: 'Name', type: 'string', isPivotField: false },
125
- { label: 'Number of Meter', key: 'Meters', type: 'integer', isPivotField: false },
127
+ { label: 'Number of Meters', key: 'Meters', type: 'integer', isPivotField: false },
126
128
  { label: 'Number of Transmission Assets', key: 'Assets', type: 'integer', isPivotField: false },
127
- { label: 'Number of Users', key: 'Users', type: 'integer', isPivotField: false },
129
+ { label: 'Number of Asset Groups', key: 'AssetGroups', type: 'integer', isPivotField: false },
128
130
  { label: 'Show in PQ Dashboard', key: 'DisplayDashboard', type: 'boolean', isPivotField: false },
131
+ { label: 'Show in Email Subscription', key: 'DisplayEmail', type: 'boolean', isPivotField: false },
129
132
  ];
130
133
  React.useEffect(function () {
131
134
  return props.GetAddlFields(setAddlFieldCols);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gpa-gemstone/common-pages",
3
- "version": "0.0.67",
3
+ "version": "0.0.68",
4
4
  "description": "Common UI pages for GPA products",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -46,8 +46,8 @@
46
46
  "@gpa-gemstone/application-typings": "0.0.57",
47
47
  "@gpa-gemstone/gpa-symbols": "0.0.26",
48
48
  "@gpa-gemstone/helper-functions": "0.0.20",
49
- "@gpa-gemstone/react-forms": "1.1.38",
50
- "@gpa-gemstone/react-interactive": "1.0.82",
49
+ "@gpa-gemstone/react-forms": "1.1.39",
50
+ "@gpa-gemstone/react-interactive": "1.0.83",
51
51
  "@gpa-gemstone/react-table": "1.2.24",
52
52
  "@reduxjs/toolkit": "1.8.3",
53
53
  "crypto-js": "4.0.0",