@equinor/echo-framework 0.7.6 → 0.7.9
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/dist/47deeba42768c5d1.svg +9 -0
- package/dist/components/contextualAppLinks/contextualAppLinks.context.d.ts +7 -0
- package/dist/components/contextualAppLinks/contextualAppLinks.d.ts +9 -0
- package/dist/components/contextualAppLinks/externalAppsMenu.d.ts +29 -0
- package/dist/components/contextualAppLinks/externalLinkButtons/allExternalLinks.d.ts +12 -0
- package/dist/components/contextualAppLinks/externalLinkButtons/externalLinkToMcApp.d.ts +12 -0
- package/dist/components/contextualAppLinks/externalLinkButtons/externalLinkToProCoSys.d.ts +15 -0
- package/dist/components/contextualAppLinks/externalLinkButtons/externalLinkToSafeX.d.ts +13 -0
- package/dist/components/contextualAppLinks/externalLinkButtons/externalLinkToSap.d.ts +15 -0
- package/dist/components/contextualAppLinks/externalLinkButtons/externalLinkToSemiDoc.d.ts +13 -0
- package/dist/components/contextualAppLinks/externalLinkButtons/externalLinkToStid.d.ts +14 -0
- package/dist/components/contextualAppLinks/externalLinkButtons/externalLinkToTr2000.d.ts +15 -0
- package/dist/components/contextualAppLinks/externalLinkButtons/index.d.ts +7 -0
- package/dist/components/contextualAppLinks/hooks/useContextualAppLinks.d.ts +18 -0
- package/dist/components/contextualAppLinks/hooks/useContextualAppLinks.test.d.ts +1 -0
- package/dist/components/contextualAppLinks/hooks/useContextualAppLinksContext.d.ts +4 -0
- package/dist/components/contextualAppLinks/hooks/useContextualAppLinksContext.test.d.ts +1 -0
- package/dist/components/contextualAppLinks/index.d.ts +13 -0
- package/dist/components/contextualAppLinks/internalAppLinks.d.ts +24 -0
- package/dist/components/contextualAppLinks/linkButton.d.ts +19 -0
- package/dist/components/externalLinkButton/externalLinkButton.d.ts +33 -0
- package/dist/components/index.d.ts +4 -1
- package/dist/components/panel/corePanelLeft.d.ts +1 -4
- package/dist/components/panel/corePanelRight.d.ts +1 -4
- package/dist/components/realTimeData/components/IMSDropdown/RealTimeIMSDropdown.d.ts +2 -1
- package/dist/components/realTimeData/components/connectorForIMSTag/RealTimeConnectorForIMSTag.d.ts +2 -1
- package/dist/coreApplication/EchoContent.d.ts +0 -1
- package/dist/coreApplication/index.d.ts +0 -1
- package/dist/hooks/index.d.ts +2 -1
- package/dist/hooks/useSemi.d.ts +17 -0
- package/dist/hooks/useSemi.test.d.ts +1 -0
- package/dist/hooks/useTagDetails.d.ts +13 -0
- package/dist/hooks/useTagDetails.test.d.ts +1 -0
- package/dist/index.d.ts +10 -4
- package/dist/node_modules/@microsoft/signalr/dist/esm/Utils.js +1 -1
- package/dist/src/components/containers/layout.module.css.js +1 -4
- package/dist/src/components/containers/layouts.js +8 -38
- package/dist/src/components/contextualAppLinks/contextualAppLinks.context.js +20 -0
- package/dist/src/components/contextualAppLinks/contextualAppLinks.js +47 -0
- package/dist/src/components/contextualAppLinks/externalAppsMenu.js +181 -0
- package/dist/src/components/contextualAppLinks/externalAppsMenu.module.css.js +16 -0
- package/dist/src/components/contextualAppLinks/externalLinkButtons/allExternalLinks.js +72 -0
- package/dist/src/components/contextualAppLinks/externalLinkButtons/externalLinkToMcApp.js +38 -0
- package/dist/src/components/contextualAppLinks/externalLinkButtons/externalLinkToProCoSys.js +50 -0
- package/dist/src/components/contextualAppLinks/externalLinkButtons/externalLinkToSafeX.js +38 -0
- package/dist/src/components/contextualAppLinks/externalLinkButtons/externalLinkToSap.js +61 -0
- package/dist/src/components/contextualAppLinks/externalLinkButtons/externalLinkToSemiDoc.js +48 -0
- package/dist/src/components/contextualAppLinks/externalLinkButtons/externalLinkToStid.js +40 -0
- package/dist/src/components/contextualAppLinks/externalLinkButtons/externalLinkToTr2000.js +63 -0
- package/dist/src/components/contextualAppLinks/hooks/useContextualAppLinks.js +52 -0
- package/dist/src/components/contextualAppLinks/hooks/useContextualAppLinksContext.js +36 -0
- package/dist/src/components/contextualAppLinks/index.js +22 -0
- package/dist/src/components/contextualAppLinks/internalAppLinks.js +115 -0
- package/dist/src/components/contextualAppLinks/linkButton.js +57 -0
- package/dist/src/components/externalLinkButton/externalLinkButton.js +245 -0
- package/dist/src/components/externalLinkButton/externalLinkButton.module.css.js +22 -0
- package/dist/src/components/panel/corePanelLeft.js +2 -5
- package/dist/src/components/panel/corePanelLeft.module.css.js +1 -1
- package/dist/src/components/panel/corePanelRight.js +2 -4
- package/dist/src/components/panel/corePanelRight.module.css.js +1 -1
- package/dist/src/components/panelButton/panelButton.module.css.js +1 -1
- package/dist/src/components/realTimeData/RealTimePopoverButton.js +23 -7
- package/dist/src/components/realTimeData/components/IMSDropdown/RealTimeIMSDropdown.js +4 -2
- package/dist/src/components/realTimeData/components/connectorForIMSTag/RealTimeConnectorForIMSTag.js +3 -3
- package/dist/src/components/searchMenu/searchMenu.js +18 -1
- package/dist/src/components/searchMenu/searchMenu.module.css.js +4 -2
- package/dist/src/coreApplication/EchoContent.js +2 -7
- package/dist/src/coreApplication/EchoEventHandler.js +1 -1
- package/dist/src/hooks/index.js +12 -0
- package/dist/src/hooks/useSemi.js +74 -0
- package/dist/src/hooks/{useIsLandscape.js → useTagDetails.js} +49 -21
- package/dist/src/icons/common/Evision.svg.js +68 -0
- package/dist/src/icons/common/Fusion.svg.js +107 -0
- package/dist/src/icons/common/McApp.svg.js +67 -0
- package/dist/src/icons/common/ProCoSysIcon.svg.js +68 -0
- package/dist/src/icons/common/SX-logo.png.js +7 -0
- package/dist/src/icons/common/SapLogo.svg.js +95 -0
- package/dist/src/icons/common/SemiIcon.svg.js +83 -0
- package/dist/src/icons/common/Stid.svg.js +65 -0
- package/dist/src/icons/common/TR2000.svg.js +72 -0
- package/dist/src/icons/common/Yammer.svg.js +65 -0
- package/dist/src/index.js +57 -14
- package/dist/src/types/extensions.js +10 -0
- package/dist/src/types/legend.js +9 -9
- package/dist/src/types/pingableSources.js +10 -0
- package/dist/src/utils/legendUtils.js +12 -11
- package/dist/types/extensions.d.ts +7 -0
- package/dist/types/legend.d.ts +9 -9
- package/dist/types/pingableSources.d.ts +3 -0
- package/dist/utils/legendUtils.d.ts +1 -0
- package/package.json +20 -21
- package/dist/coreApplication/EchoBarComponent.d.ts +0 -6
- package/dist/hooks/useIsLandscape.d.ts +0 -1
- package/dist/src/coreApplication/EchoBarComponent.js +0 -113
package/dist/src/index.js
CHANGED
|
@@ -6,9 +6,9 @@ Object.defineProperty(exports, '__esModule', {
|
|
|
6
6
|
|
|
7
7
|
require('./globalStyles.css.js');
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var index$1 = require('./hooks/index.js');
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var hookLibrary = require('./hooks/hookLibrary.js');
|
|
12
12
|
|
|
13
13
|
var apiPlantinfo = require('./services/api/api-plantinfo.js');
|
|
14
14
|
|
|
@@ -22,10 +22,28 @@ var linkButton = require('./components/appLinks/linkButton/linkButton.js');
|
|
|
22
22
|
|
|
23
23
|
var layouts = require('./components/containers/layouts.js');
|
|
24
24
|
|
|
25
|
+
var externalLinkToMcApp = require('./components/contextualAppLinks/externalLinkButtons/externalLinkToMcApp.js');
|
|
26
|
+
|
|
27
|
+
var externalLinkToProCoSys = require('./components/contextualAppLinks/externalLinkButtons/externalLinkToProCoSys.js');
|
|
28
|
+
|
|
29
|
+
var externalLinkToSafeX = require('./components/contextualAppLinks/externalLinkButtons/externalLinkToSafeX.js');
|
|
30
|
+
|
|
31
|
+
var externalLinkToSap = require('./components/contextualAppLinks/externalLinkButtons/externalLinkToSap.js');
|
|
32
|
+
|
|
33
|
+
var externalLinkToSemiDoc = require('./components/contextualAppLinks/externalLinkButtons/externalLinkToSemiDoc.js');
|
|
34
|
+
|
|
35
|
+
var externalLinkToStid = require('./components/contextualAppLinks/externalLinkButtons/externalLinkToStid.js');
|
|
36
|
+
|
|
37
|
+
var externalLinkToTr2000 = require('./components/contextualAppLinks/externalLinkButtons/externalLinkToTr2000.js');
|
|
38
|
+
|
|
39
|
+
var index = require('./components/contextualAppLinks/index.js');
|
|
40
|
+
|
|
25
41
|
var echoLogo = require('./components/echoLogo/echoLogo.js');
|
|
26
42
|
|
|
27
43
|
var errorBoundary = require('./components/errorBoundary/errorBoundary.js');
|
|
28
44
|
|
|
45
|
+
var externalLinkButton = require('./components/externalLinkButton/externalLinkButton.js');
|
|
46
|
+
|
|
29
47
|
var footer = require('./components/footer/footer.js');
|
|
30
48
|
|
|
31
49
|
var lazyLoadedAppWrapper = require('./components/lazyLoading/lazyLoadedAppWrapper.js');
|
|
@@ -66,28 +84,30 @@ var routes = require('./components/router/routes.js');
|
|
|
66
84
|
|
|
67
85
|
var useLayout = require('./components/router/useLayout.js');
|
|
68
86
|
|
|
87
|
+
require('@equinor/echo-core');
|
|
88
|
+
|
|
69
89
|
require('./components/searchMenu/searchMenu.module.css.js');
|
|
70
90
|
|
|
91
|
+
var tagNumber = require('./components/tagNumber/tagNumber.js');
|
|
92
|
+
|
|
71
93
|
var toaster = require('./components/toaster/toaster.js');
|
|
72
94
|
|
|
73
95
|
var toasters = require('./components/toaster/toasters.js');
|
|
74
96
|
|
|
75
|
-
var tagNumber = require('./components/tagNumber/tagNumber.js');
|
|
76
|
-
|
|
77
|
-
var EchoBarComponent = require('./coreApplication/EchoBarComponent.js');
|
|
78
|
-
|
|
79
97
|
var EchoContent = require('./coreApplication/EchoContent.js');
|
|
80
98
|
|
|
81
99
|
var EchoContentPanels = require('./coreApplication/EchoContentPanels.js');
|
|
82
100
|
|
|
83
101
|
var EchoEventHandler = require('./coreApplication/EchoEventHandler.js');
|
|
84
102
|
|
|
85
|
-
var useIsLandscape = require('./hooks/useIsLandscape.js');
|
|
86
|
-
|
|
87
103
|
var toastActions = require('./services/eventHubActions/toastActions.js');
|
|
88
104
|
|
|
105
|
+
var extensions = require('./types/extensions.js');
|
|
106
|
+
|
|
89
107
|
var legend = require('./types/legend.js');
|
|
90
108
|
|
|
109
|
+
var pingableSources = require('./types/pingableSources.js');
|
|
110
|
+
|
|
91
111
|
var plantInfo = require('./utils/plantInfo.js');
|
|
92
112
|
|
|
93
113
|
var startup = require('./utils/startup.js');
|
|
@@ -99,9 +119,7 @@ var EchoFramework = Object.freeze({
|
|
|
99
119
|
getLegendStatusColor: legendUtils.getLegendStatusColor
|
|
100
120
|
})
|
|
101
121
|
}),
|
|
102
|
-
Hooks: Object.freeze(Object.assign(Object.assign({}, hookLibrary.HookLibrary),
|
|
103
|
-
useEchoHistory: useEchoHistory.useEchoHistory
|
|
104
|
-
})),
|
|
122
|
+
Hooks: Object.freeze(Object.assign(Object.assign({}, hookLibrary.HookLibrary), index$1)),
|
|
105
123
|
EchopediaComponentLibrary: Object.freeze({
|
|
106
124
|
getTagItem: componentRegistry.componentRegistry.getTagItem
|
|
107
125
|
}),
|
|
@@ -123,6 +141,7 @@ Object.defineProperty(exports, 'RegisteredComponentName', {
|
|
|
123
141
|
});
|
|
124
142
|
exports.getLegendStatusColor = legendUtils.getLegendStatusColor;
|
|
125
143
|
exports.legendTypeToLegendStatus = legendUtils.legendTypeToLegendStatus;
|
|
144
|
+
exports.valueToEnum = legendUtils.valueToEnum;
|
|
126
145
|
exports.AppLinks = AppLinks.AppLinks;
|
|
127
146
|
exports.LinkButton = linkButton.LinkButton;
|
|
128
147
|
exports.CameraLayout = layouts.CameraLayout;
|
|
@@ -130,8 +149,22 @@ exports.ColorLayout = layouts.ColorLayout;
|
|
|
130
149
|
exports.DefaultLayout = layouts.DefaultLayout;
|
|
131
150
|
exports.MainLayout = layouts.MainLayout;
|
|
132
151
|
exports.PdfViewerNative = layouts.PdfViewerNative;
|
|
152
|
+
exports.ExternalLinkToMcApp = externalLinkToMcApp.ExternalLinkToMcApp;
|
|
153
|
+
exports.ExternalLinkToProCoSys = externalLinkToProCoSys.ExternalLinkToProCoSys;
|
|
154
|
+
exports.ExternalLinkToSafeX = externalLinkToSafeX.ExternalLinkToSafeX;
|
|
155
|
+
exports.ExternalLinkToSap = externalLinkToSap.ExternalLinkToSap;
|
|
156
|
+
exports.ExternalLinkToSemiDoc = externalLinkToSemiDoc.ExternalLinkToSemiDoc;
|
|
157
|
+
exports.ExternalLinkToStid = externalLinkToStid.ExternalLinkToStid;
|
|
158
|
+
exports.ExternalLinkToTr2000 = externalLinkToTr2000.ExternalLinkToTr2000;
|
|
159
|
+
exports.ContextualAppLinks = index.ContextualAppLinks;
|
|
133
160
|
exports.EchoLogo = echoLogo.EchoLogo;
|
|
134
161
|
exports.ErrorBoundary = errorBoundary.ErrorBoundary;
|
|
162
|
+
Object.defineProperty(exports, 'ExternalLinkButtonStyle', {
|
|
163
|
+
enumerable: true,
|
|
164
|
+
get: function get() {
|
|
165
|
+
return externalLinkButton.ExternalLinkButtonStyle;
|
|
166
|
+
}
|
|
167
|
+
});
|
|
135
168
|
exports.Footer = footer.Footer;
|
|
136
169
|
Object.defineProperty(exports, 'FooterType', {
|
|
137
170
|
enumerable: true,
|
|
@@ -157,16 +190,20 @@ exports.EchoRoute = echoRoute.EchoRoute;
|
|
|
157
190
|
exports.EchoRouter = echoRouter.EchoRouter;
|
|
158
191
|
exports.EchoRoutes = routes.EchoRoutes;
|
|
159
192
|
exports.useLayout = useLayout.useLayout;
|
|
193
|
+
exports.TagNumber = tagNumber.TagNumber;
|
|
160
194
|
exports.Toaster = toaster.Toaster;
|
|
161
195
|
exports.Toasters = toasters.Toasters;
|
|
162
|
-
exports.TagNumber = tagNumber.TagNumber;
|
|
163
|
-
exports.EchoBarComponent = EchoBarComponent.EchoBarComponent;
|
|
164
196
|
exports.EchoContent = EchoContent.EchoContent;
|
|
165
197
|
exports.mainMenu = EchoContentPanels.mainMenu;
|
|
166
198
|
exports.searchPanel = EchoContentPanels.searchPanel;
|
|
167
199
|
exports.EchoEventHandler = EchoEventHandler.EchoEventHandler;
|
|
168
|
-
exports.useIsLandscape = useIsLandscape.useIsLandscape;
|
|
169
200
|
exports.displayToast = toastActions.displayToast;
|
|
201
|
+
Object.defineProperty(exports, 'ExtendableComponentName', {
|
|
202
|
+
enumerable: true,
|
|
203
|
+
get: function get() {
|
|
204
|
+
return extensions.ExtendableComponentName;
|
|
205
|
+
}
|
|
206
|
+
});
|
|
170
207
|
Object.defineProperty(exports, 'LegendStatus', {
|
|
171
208
|
enumerable: true,
|
|
172
209
|
get: function get() {
|
|
@@ -179,6 +216,12 @@ Object.defineProperty(exports, 'LegendType', {
|
|
|
179
216
|
return legend.LegendType;
|
|
180
217
|
}
|
|
181
218
|
});
|
|
219
|
+
Object.defineProperty(exports, 'PingableSources', {
|
|
220
|
+
enumerable: true,
|
|
221
|
+
get: function get() {
|
|
222
|
+
return pingableSources.PingableSources;
|
|
223
|
+
}
|
|
224
|
+
});
|
|
182
225
|
exports.check3dAccessForInstCodeOrPlantCode = plantInfo.check3dAccessForInstCodeOrPlantCode;
|
|
183
226
|
exports.check3dPermissionForPlantCode = plantInfo.check3dPermissionForPlantCode;
|
|
184
227
|
exports.check3dPermissionOnInstallation = plantInfo.check3dPermissionOnInstallation;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.ExtendableComponentName = void 0;
|
|
7
|
+
|
|
8
|
+
(function (ExtendableComponentName) {
|
|
9
|
+
ExtendableComponentName["ContextualAppLinks"] = "ContextualAppLinks";
|
|
10
|
+
})(exports.ExtendableComponentName || (exports.ExtendableComponentName = {}));
|
package/dist/src/types/legend.js
CHANGED
|
@@ -31,15 +31,15 @@ exports.LegendStatus = void 0;
|
|
|
31
31
|
LegendStatus["RFOCRejected"] = "RFOCRejected";
|
|
32
32
|
LegendStatus["Error"] = "Error"; // WO statuses
|
|
33
33
|
|
|
34
|
-
LegendStatus["PM01"] = "
|
|
35
|
-
LegendStatus["PM02"] = "
|
|
36
|
-
LegendStatus["PM03"] = "
|
|
37
|
-
LegendStatus["PM04"] = "
|
|
38
|
-
LegendStatus["PM05"] = "
|
|
39
|
-
LegendStatus["PM06"] = "
|
|
40
|
-
LegendStatus["PM010"] = "
|
|
41
|
-
LegendStatus["PM015"] = "
|
|
42
|
-
LegendStatus["PM020"] = "
|
|
34
|
+
LegendStatus["PM01"] = "PM01";
|
|
35
|
+
LegendStatus["PM02"] = "PM02";
|
|
36
|
+
LegendStatus["PM03"] = "PM03";
|
|
37
|
+
LegendStatus["PM04"] = "PM04";
|
|
38
|
+
LegendStatus["PM05"] = "PM05";
|
|
39
|
+
LegendStatus["PM06"] = "PM06";
|
|
40
|
+
LegendStatus["PM010"] = "PM010";
|
|
41
|
+
LegendStatus["PM015"] = "PM015";
|
|
42
|
+
LegendStatus["PM020"] = "PM020";
|
|
43
43
|
})(exports.LegendStatus || (exports.LegendStatus = {}));
|
|
44
44
|
|
|
45
45
|
exports.LegendType = void 0;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.PingableSources = void 0;
|
|
7
|
+
|
|
8
|
+
(function (PingableSources) {
|
|
9
|
+
PingableSources["Sap"] = "https://p03web.statoil.no/sap/public/icmandir/its/lsgui/images/img/splashscreen_corbu.png";
|
|
10
|
+
})(exports.PingableSources || (exports.PingableSources = {}));
|
|
@@ -97,31 +97,31 @@ function getLegendStatusColor() {
|
|
|
97
97
|
return style.getPropertyValue('--unknown');
|
|
98
98
|
// WO statuses
|
|
99
99
|
|
|
100
|
-
case legend.LegendStatus.PM01:
|
|
100
|
+
case legend.LegendStatus.PM01.toLocaleLowerCase():
|
|
101
101
|
return style.getPropertyValue('--pm01');
|
|
102
102
|
|
|
103
|
-
case legend.LegendStatus.PM02:
|
|
103
|
+
case legend.LegendStatus.PM02.toLocaleLowerCase():
|
|
104
104
|
return style.getPropertyValue('--pm02');
|
|
105
105
|
|
|
106
|
-
case legend.LegendStatus.PM03:
|
|
106
|
+
case legend.LegendStatus.PM03.toLocaleLowerCase():
|
|
107
107
|
return style.getPropertyValue('--pm03');
|
|
108
108
|
|
|
109
|
-
case legend.LegendStatus.PM04:
|
|
109
|
+
case legend.LegendStatus.PM04.toLocaleLowerCase():
|
|
110
110
|
return style.getPropertyValue('--pm04');
|
|
111
111
|
|
|
112
|
-
case legend.LegendStatus.PM05:
|
|
112
|
+
case legend.LegendStatus.PM05.toLocaleLowerCase():
|
|
113
113
|
return style.getPropertyValue('--pm05');
|
|
114
114
|
|
|
115
|
-
case legend.LegendStatus.PM06:
|
|
115
|
+
case legend.LegendStatus.PM06.toLocaleLowerCase():
|
|
116
116
|
return style.getPropertyValue('--pm06');
|
|
117
117
|
|
|
118
|
-
case legend.LegendStatus.PM010:
|
|
118
|
+
case legend.LegendStatus.PM010.toLocaleLowerCase():
|
|
119
119
|
return style.getPropertyValue('--pm010');
|
|
120
120
|
|
|
121
|
-
case legend.LegendStatus.PM015:
|
|
121
|
+
case legend.LegendStatus.PM015.toLocaleLowerCase():
|
|
122
122
|
return style.getPropertyValue('--pm015');
|
|
123
123
|
|
|
124
|
-
case legend.LegendStatus.PM020:
|
|
124
|
+
case legend.LegendStatus.PM020.toLocaleLowerCase():
|
|
125
125
|
return style.getPropertyValue('--pm020');
|
|
126
126
|
|
|
127
127
|
default:
|
|
@@ -151,9 +151,9 @@ function valueToEnum(value, enumType) {
|
|
|
151
151
|
var enumTypeIndexForValue = listToLowerCase(Object.values(enumType)).indexOf(value.toLowerCase());
|
|
152
152
|
|
|
153
153
|
if (enumTypeIndexForValue === -1) {
|
|
154
|
-
return Object.
|
|
154
|
+
return Object.values(enumType)[0];
|
|
155
155
|
} else {
|
|
156
|
-
return Object.
|
|
156
|
+
return Object.values(enumType)[enumTypeIndexForValue];
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
159
|
|
|
@@ -165,3 +165,4 @@ function listToLowerCase(values) {
|
|
|
165
165
|
|
|
166
166
|
exports.getLegendStatusColor = getLegendStatusColor;
|
|
167
167
|
exports.legendTypeToLegendStatus = legendTypeToLegendStatus;
|
|
168
|
+
exports.valueToEnum = valueToEnum;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ContextualAppLinkExtensionOptions, ExtensionRegistration } from '@equinor/echo-core';
|
|
2
|
+
export declare enum ExtendableComponentName {
|
|
3
|
+
ContextualAppLinks = "ContextualAppLinks"
|
|
4
|
+
}
|
|
5
|
+
export interface ContextualAppLinkRegistration extends ExtensionRegistration {
|
|
6
|
+
options?: ContextualAppLinkExtensionOptions;
|
|
7
|
+
}
|
package/dist/types/legend.d.ts
CHANGED
|
@@ -20,15 +20,15 @@ export declare enum LegendStatus {
|
|
|
20
20
|
RFCCRejected = "RFCCRejected",
|
|
21
21
|
RFOCRejected = "RFOCRejected",
|
|
22
22
|
Error = "Error",
|
|
23
|
-
PM01 = "
|
|
24
|
-
PM02 = "
|
|
25
|
-
PM03 = "
|
|
26
|
-
PM04 = "
|
|
27
|
-
PM05 = "
|
|
28
|
-
PM06 = "
|
|
29
|
-
PM010 = "
|
|
30
|
-
PM015 = "
|
|
31
|
-
PM020 = "
|
|
23
|
+
PM01 = "PM01",
|
|
24
|
+
PM02 = "PM02",
|
|
25
|
+
PM03 = "PM03",
|
|
26
|
+
PM04 = "PM04",
|
|
27
|
+
PM05 = "PM05",
|
|
28
|
+
PM06 = "PM06",
|
|
29
|
+
PM010 = "PM010",
|
|
30
|
+
PM015 = "PM015",
|
|
31
|
+
PM020 = "PM020"
|
|
32
32
|
}
|
|
33
33
|
export declare enum LegendType {
|
|
34
34
|
Stid = "Stid",
|
|
@@ -12,3 +12,4 @@ export declare function getLegendStatusColor(tagStatus?: LegendStatus | string):
|
|
|
12
12
|
* @returns {string | LegendStatus}
|
|
13
13
|
*/
|
|
14
14
|
export declare function legendTypeToLegendStatus(legendType: LegendType, status: string): string | LegendStatus;
|
|
15
|
+
export declare function valueToEnum(value: string | undefined | null, enumType: typeof LegendStatus): LegendStatus;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@equinor/echo-framework",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.9",
|
|
4
4
|
"description": "Modules and components for EchoWeb, utilizing EchoCore",
|
|
5
5
|
"main": "dist/src/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
"echo-update-all": "echo-update -a"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
|
-
"@equinor/echo-base": "^0.6.
|
|
38
|
-
"@equinor/echo-components": "^0.3.
|
|
39
|
-
"@equinor/echo-core": "^0.6.
|
|
37
|
+
"@equinor/echo-base": "^0.6.4",
|
|
38
|
+
"@equinor/echo-components": "^0.3.2",
|
|
39
|
+
"@equinor/echo-core": "^0.6.9",
|
|
40
40
|
"@equinor/echo-search": "^0.11.15",
|
|
41
41
|
"@equinor/echo-utils": "^0.2.9",
|
|
42
42
|
"@equinor/eds-core-react": "^0.17.0",
|
|
@@ -49,15 +49,15 @@
|
|
|
49
49
|
"@babel/core": "^7.17.5",
|
|
50
50
|
"@babel/preset-env": "^7.16.11",
|
|
51
51
|
"@babel/preset-react": "^7.16.7",
|
|
52
|
-
"@equinor/echo-base": "^0.6.
|
|
52
|
+
"@equinor/echo-base": "^0.6.4",
|
|
53
53
|
"@equinor/echo-components": "^0.3.2",
|
|
54
|
-
"@equinor/echo-core": "^0.6.
|
|
54
|
+
"@equinor/echo-core": "^0.6.9",
|
|
55
55
|
"@equinor/echo-scripts": "^0.1.5",
|
|
56
56
|
"@equinor/echo-search": "^0.11.15",
|
|
57
57
|
"@equinor/echo-update": "^1.3.0",
|
|
58
58
|
"@equinor/echo-utils": "^0.2.9",
|
|
59
59
|
"@equinor/eds-core-react": "^0.17.0",
|
|
60
|
-
"@modular-css/rollup": "^
|
|
60
|
+
"@modular-css/rollup": "^28.0.0",
|
|
61
61
|
"@rollup/plugin-babel": "^5.3.1",
|
|
62
62
|
"@rollup/plugin-commonjs": "^21.0.2",
|
|
63
63
|
"@rollup/plugin-image": "^2.1.1",
|
|
@@ -65,42 +65,41 @@
|
|
|
65
65
|
"@rollup/plugin-node-resolve": "^13.1.3",
|
|
66
66
|
"@rollup/plugin-typescript": "^8.3.1",
|
|
67
67
|
"@rollup/plugin-url": "^6.1.0",
|
|
68
|
+
"@svgr/rollup": "^6.2.1",
|
|
68
69
|
"@testing-library/react-hooks": "^7.0.2",
|
|
69
70
|
"@types/jest": "^27.4.1",
|
|
70
71
|
"@types/node": "^17.0.21",
|
|
71
72
|
"@types/react": "^17.0.39",
|
|
72
|
-
"@types/react-dom": "^17.0.
|
|
73
|
+
"@types/react-dom": "^17.0.13",
|
|
73
74
|
"@types/react-router-dom": "^5.3.3",
|
|
74
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
75
|
-
"@typescript-eslint/parser": "^5.
|
|
75
|
+
"@typescript-eslint/eslint-plugin": "^5.14.0",
|
|
76
|
+
"@typescript-eslint/parser": "^5.14.0",
|
|
76
77
|
"@wessberg/rollup-plugin-ts": "^2.0.4",
|
|
77
|
-
"@wojtekmaj/enzyme-adapter-react-17": "^0.6.6",
|
|
78
78
|
"autoprefixer": "^10.4.2",
|
|
79
79
|
"babel-jest": "^27.5.1",
|
|
80
|
-
"
|
|
81
|
-
"eslint": "^8.
|
|
82
|
-
"eslint-config-prettier": "^8.4.0",
|
|
80
|
+
"eslint": "^8.10.0",
|
|
81
|
+
"eslint-config-prettier": "^8.5.0",
|
|
83
82
|
"eslint-plugin-prettier": "^4.0.0",
|
|
84
|
-
"eslint-plugin-react": "^7.29.
|
|
83
|
+
"eslint-plugin-react": "^7.29.3",
|
|
85
84
|
"eslint-plugin-react-hooks": "^4.3.0",
|
|
86
85
|
"jest": "^27.5.1",
|
|
87
86
|
"jest-expo": "^44.0.1",
|
|
88
|
-
"postcss": "^8.4.
|
|
87
|
+
"postcss": "^8.4.8",
|
|
89
88
|
"postcss-assets": "^6.0.0",
|
|
90
89
|
"postcss-modules": "^4.3.1",
|
|
91
90
|
"prettier": "^2.5.1",
|
|
92
91
|
"react": "^17.0.2",
|
|
93
92
|
"react-dom": "^17.0.2",
|
|
94
93
|
"react-router-dom": "^5.3.0",
|
|
95
|
-
"rollup": "^2.
|
|
94
|
+
"rollup": "^2.70.0",
|
|
96
95
|
"rollup-plugin-delete": "^2.0.0",
|
|
97
96
|
"rollup-plugin-postcss": "^4.0.2",
|
|
98
|
-
"rollup-plugin-typescript-paths": "^1.3.
|
|
97
|
+
"rollup-plugin-typescript-paths": "^1.3.1",
|
|
99
98
|
"rollup-plugin-typescript2": "^0.31.2",
|
|
100
99
|
"styled-components": "^5.3.3",
|
|
101
100
|
"ts-jest": "^27.1.3",
|
|
102
101
|
"tslib": "^2.3.1",
|
|
103
|
-
"typescript": "
|
|
102
|
+
"typescript": "=4.6.2"
|
|
104
103
|
},
|
|
105
104
|
"compilerOptions": {
|
|
106
105
|
"declaration": true
|
|
@@ -113,6 +112,6 @@
|
|
|
113
112
|
"npm": ">=7.0.0"
|
|
114
113
|
},
|
|
115
114
|
"dependencies": {
|
|
116
|
-
"@microsoft/signalr": "^6.0.
|
|
115
|
+
"@microsoft/signalr": "^6.0.3"
|
|
117
116
|
}
|
|
118
|
-
}
|
|
117
|
+
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function useIsLandscape(): boolean;
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
4
|
-
|
|
5
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
6
|
-
|
|
7
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
8
|
-
|
|
9
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
10
|
-
|
|
11
|
-
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
12
|
-
|
|
13
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
14
|
-
|
|
15
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
16
|
-
|
|
17
|
-
Object.defineProperty(exports, '__esModule', {
|
|
18
|
-
value: true
|
|
19
|
-
});
|
|
20
|
-
|
|
21
|
-
var echoComponents = require('@equinor/echo-components');
|
|
22
|
-
|
|
23
|
-
var EchoCore = require('@equinor/echo-core');
|
|
24
|
-
|
|
25
|
-
var edsCoreReact = require('@equinor/eds-core-react');
|
|
26
|
-
|
|
27
|
-
var React = require('react');
|
|
28
|
-
|
|
29
|
-
var reactRouterDom = require('react-router-dom');
|
|
30
|
-
|
|
31
|
-
var logo_ee = require('../icons/logo_ee.js');
|
|
32
|
-
|
|
33
|
-
function _interopDefaultLegacy(e) {
|
|
34
|
-
return e && _typeof(e) === 'object' && 'default' in e ? e : {
|
|
35
|
-
'default': e
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
40
|
-
|
|
41
|
-
var EchoBarComponent = function EchoBarComponent(_ref) {
|
|
42
|
-
var isLandscape = _ref.isLandscape;
|
|
43
|
-
|
|
44
|
-
var _React$useState = React.useState(false),
|
|
45
|
-
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
46
|
-
shouldRenderBar = _React$useState2[0],
|
|
47
|
-
setShouldRenderBar = _React$useState2[1];
|
|
48
|
-
|
|
49
|
-
var _EchoCore$usePanels = EchoCore.usePanels(),
|
|
50
|
-
setActivePanel = _EchoCore$usePanels.setActivePanel;
|
|
51
|
-
|
|
52
|
-
var goToInternalLink = EchoCore.useInternalLink();
|
|
53
|
-
|
|
54
|
-
var _EchoCore$usePlantSet = EchoCore.usePlantSettings(),
|
|
55
|
-
selectedInstCode = _EchoCore$usePlantSet.instCode;
|
|
56
|
-
|
|
57
|
-
var history = reactRouterDom.useHistory();
|
|
58
|
-
var shouldRenderBottomBar = React.useCallback(function () {
|
|
59
|
-
var isMounted = true;
|
|
60
|
-
console.log('WIDTH', window.innerWidth);
|
|
61
|
-
|
|
62
|
-
if (window.innerWidth > 768 && !isLandscape || window.innerWidth > 927 && isLandscape && !isMounted) {
|
|
63
|
-
setShouldRenderBar(false);
|
|
64
|
-
} else {
|
|
65
|
-
setShouldRenderBar(true);
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
return function () {
|
|
69
|
-
isMounted = false;
|
|
70
|
-
};
|
|
71
|
-
}, [isLandscape]);
|
|
72
|
-
React.useEffect(function () {
|
|
73
|
-
shouldRenderBottomBar();
|
|
74
|
-
window.addEventListener('resize', shouldRenderBottomBar);
|
|
75
|
-
return function () {
|
|
76
|
-
window.removeEventListener('resize', shouldRenderBottomBar);
|
|
77
|
-
};
|
|
78
|
-
}, [shouldRenderBottomBar, shouldRenderBar]);
|
|
79
|
-
var EchoIcon = logo_ee.icon;
|
|
80
|
-
return shouldRenderBar ? /*#__PURE__*/React__default["default"].createElement(echoComponents.EchoBottomBar, null, /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(edsCoreReact.Button, {
|
|
81
|
-
variant: "ghost_icon",
|
|
82
|
-
onClick: function onClick() {
|
|
83
|
-
return history.push("/?instCode=".concat(selectedInstCode));
|
|
84
|
-
}
|
|
85
|
-
}, /*#__PURE__*/React__default["default"].createElement(EchoIcon, null)), /*#__PURE__*/React__default["default"].createElement(edsCoreReact.Button, {
|
|
86
|
-
variant: "ghost_icon",
|
|
87
|
-
onClick: function onClick() {
|
|
88
|
-
return setActivePanel(EchoCore.ECHO_CORE_SEARCH);
|
|
89
|
-
}
|
|
90
|
-
}, /*#__PURE__*/React__default["default"].createElement(echoComponents.Icon, {
|
|
91
|
-
name: 'search',
|
|
92
|
-
color: echoComponents.themeConst.echoText
|
|
93
|
-
})), /*#__PURE__*/React__default["default"].createElement(edsCoreReact.Button, {
|
|
94
|
-
variant: "ghost_icon",
|
|
95
|
-
onClick: function onClick() {
|
|
96
|
-
return goToInternalLink('/camera');
|
|
97
|
-
}
|
|
98
|
-
}, /*#__PURE__*/React__default["default"].createElement(echoComponents.Icon, {
|
|
99
|
-
name: 'camera',
|
|
100
|
-
color: echoComponents.themeConst.echoText
|
|
101
|
-
})), /*#__PURE__*/React__default["default"].createElement(edsCoreReact.Button, {
|
|
102
|
-
variant: "ghost_icon",
|
|
103
|
-
onClick: function onClick() {
|
|
104
|
-
return setActivePanel(EchoCore.ECHO_CORE_MAIN);
|
|
105
|
-
}
|
|
106
|
-
}, /*#__PURE__*/React__default["default"].createElement(echoComponents.Icon, {
|
|
107
|
-
name: 'menu',
|
|
108
|
-
color: echoComponents.themeConst.echoText
|
|
109
|
-
})))) : null;
|
|
110
|
-
};
|
|
111
|
-
|
|
112
|
-
exports.EchoBarComponent = EchoBarComponent;
|
|
113
|
-
exports["default"] = EchoBarComponent;
|