@equinor/echo-framework 0.7.4 → 0.7.7
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/__tests__/realTimeDataHooks.test.d.ts +1 -0
- package/dist/__tests__/realTimeDataUtils.test.d.ts +1 -0
- package/dist/_virtual/_tslib.js +14 -0
- package/dist/components/errorBoundary/errorBoundary.d.ts +1 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/panel/corePanelLeft.d.ts +4 -1
- package/dist/components/panel/corePanelRight.d.ts +4 -1
- package/dist/components/realTimeData/RealTimePopoverButton.d.ts +18 -0
- package/dist/components/realTimeData/components/IMSDropdown/RealTimeIMSDropdown.d.ts +7 -0
- package/dist/components/realTimeData/components/IMSDropdown/index.d.ts +1 -0
- package/dist/components/realTimeData/components/connectorForIMSTag/RealTimeConnectorForIMSTag.d.ts +6 -0
- package/dist/components/realTimeData/components/connectorForIMSTag/index.d.ts +1 -0
- package/dist/components/realTimeData/components/contextButton/RealTimeContextButton.d.ts +6 -0
- package/dist/components/realTimeData/components/contextButton/index.d.ts +1 -0
- package/dist/components/realTimeData/components/contextPopover/Popover.d.ts +6 -0
- package/dist/components/realTimeData/components/contextPopover/index.d.ts +1 -0
- package/dist/components/realTimeData/components/index.d.ts +4 -0
- package/dist/components/realTimeData/hooks/index.d.ts +3 -0
- package/dist/components/realTimeData/hooks/useRealTimeHub.d.ts +13 -0
- package/dist/components/realTimeData/hooks/useSignalR.d.ts +9 -0
- package/dist/components/realTimeData/hooks/useSignalRListener.d.ts +4 -0
- package/dist/components/realTimeData/index.d.ts +1 -0
- package/dist/coreApplication/EchoBarComponent.d.ts +6 -0
- package/dist/coreApplication/EchoContent.d.ts +1 -0
- package/dist/coreApplication/index.d.ts +1 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/useIsLandscape.d.ts +1 -0
- package/dist/index.d.ts +2 -1
- package/dist/node_modules/@microsoft/signalr/dist/esm/AbortController.js +54 -0
- package/dist/node_modules/@microsoft/signalr/dist/esm/DefaultHttpClient.js +96 -0
- package/dist/node_modules/@microsoft/signalr/dist/esm/DefaultReconnectPolicy.js +47 -0
- package/dist/node_modules/@microsoft/signalr/dist/esm/Errors.js +287 -0
- package/dist/node_modules/@microsoft/signalr/dist/esm/FetchHttpClient.js +281 -0
- package/dist/node_modules/@microsoft/signalr/dist/esm/HandshakeProtocol.js +86 -0
- package/dist/node_modules/@microsoft/signalr/dist/esm/HeaderNames.js +20 -0
- package/dist/node_modules/@microsoft/signalr/dist/esm/HttpClient.js +82 -0
- package/dist/node_modules/@microsoft/signalr/dist/esm/HttpConnection.js +1167 -0
- package/dist/node_modules/@microsoft/signalr/dist/esm/HubConnection.js +1342 -0
- package/dist/node_modules/@microsoft/signalr/dist/esm/HubConnectionBuilder.js +165 -0
- package/dist/node_modules/@microsoft/signalr/dist/esm/IHubProtocol.js +33 -0
- package/dist/node_modules/@microsoft/signalr/dist/esm/ILogger.js +37 -0
- package/dist/node_modules/@microsoft/signalr/dist/esm/ITransport.js +37 -0
- package/dist/node_modules/@microsoft/signalr/dist/esm/JsonHubProtocol.js +179 -0
- package/dist/node_modules/@microsoft/signalr/dist/esm/Loggers.js +35 -0
- package/dist/node_modules/@microsoft/signalr/dist/esm/LongPollingTransport.js +444 -0
- package/dist/node_modules/@microsoft/signalr/dist/esm/ServerSentEventsTransport.js +235 -0
- package/dist/node_modules/@microsoft/signalr/dist/esm/Subject.js +99 -0
- package/dist/node_modules/@microsoft/signalr/dist/esm/TextMessageFormat.js +45 -0
- package/dist/node_modules/@microsoft/signalr/dist/esm/Utils.js +433 -0
- package/dist/node_modules/@microsoft/signalr/dist/esm/WebSocketTransport.js +263 -0
- package/dist/node_modules/@microsoft/signalr/dist/esm/XhrHttpClient.js +133 -0
- package/dist/services/api/api-realtimedata.d.ts +2 -0
- package/dist/src/components/containers/layout.module.css.js +4 -1
- package/dist/src/components/containers/layouts.js +38 -8
- package/dist/src/components/panel/corePanelLeft.js +5 -2
- package/dist/src/components/panel/corePanelLeft.module.css.js +1 -1
- package/dist/src/components/panel/corePanelRight.js +4 -2
- package/dist/src/components/panel/corePanelRight.module.css.js +1 -1
- package/dist/src/components/projectSelector/ProcosysProjectSelector.js +1 -1
- package/dist/src/components/realTimeData/RealTimePopoverButton.js +136 -0
- package/dist/src/components/realTimeData/components/IMSDropdown/RealTimeIMSDropdown.js +81 -0
- package/dist/src/components/realTimeData/components/IMSDropdown/RealTimeIMSDropdown.module.css.js +15 -0
- package/dist/src/components/realTimeData/components/connectorForIMSTag/IMSConnector.module.css.js +16 -0
- package/dist/src/components/realTimeData/components/connectorForIMSTag/RealTimeConnectorForIMSTag.js +110 -0
- package/dist/src/components/realTimeData/components/contextButton/RealTimeContextButton.js +75 -0
- package/dist/src/components/realTimeData/components/contextButton/RealTimeContextButton.module.css.js +15 -0
- package/dist/src/components/realTimeData/components/contextPopover/Popover.js +37 -0
- package/dist/src/components/realTimeData/components/contextPopover/Popover.module.css.js +15 -0
- package/dist/src/components/realTimeData/hooks/useRealTimeHub.js +122 -0
- package/dist/src/components/realTimeData/hooks/useSignalR.js +159 -0
- package/dist/src/components/realTimeData/hooks/useSignalRListener.js +22 -0
- package/dist/src/coreApplication/EchoBarComponent.js +112 -0
- package/dist/src/coreApplication/EchoContent.js +7 -2
- package/dist/src/hooks/useIsLandscape.js +52 -0
- package/dist/src/index.js +9 -0
- package/dist/src/services/api/api-realtimedata.js +42 -0
- package/dist/types/realtimedata.d.ts +18 -0
- package/package.json +26 -23
|
@@ -0,0 +1,263 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
4
|
+
|
|
5
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
6
|
+
|
|
7
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
8
|
+
|
|
9
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
10
|
+
|
|
11
|
+
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."); }
|
|
12
|
+
|
|
13
|
+
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); }
|
|
14
|
+
|
|
15
|
+
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; }
|
|
16
|
+
|
|
17
|
+
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; }
|
|
18
|
+
|
|
19
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
20
|
+
|
|
21
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
22
|
+
|
|
23
|
+
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
24
|
+
|
|
25
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
26
|
+
|
|
27
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
28
|
+
|
|
29
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
30
|
+
|
|
31
|
+
Object.defineProperty(exports, '__esModule', {
|
|
32
|
+
value: true
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
var HeaderNames = require('./HeaderNames.js');
|
|
36
|
+
|
|
37
|
+
var ILogger = require('./ILogger.js');
|
|
38
|
+
|
|
39
|
+
var ITransport = require('./ITransport.js');
|
|
40
|
+
|
|
41
|
+
var Utils = require('./Utils.js'); // Licensed to the .NET Foundation under one or more agreements.
|
|
42
|
+
|
|
43
|
+
/** @private */
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
var WebSocketTransport = /*#__PURE__*/function () {
|
|
47
|
+
function WebSocketTransport(httpClient, accessTokenFactory, logger, logMessageContent, webSocketConstructor, headers) {
|
|
48
|
+
_classCallCheck(this, WebSocketTransport);
|
|
49
|
+
|
|
50
|
+
this._logger = logger;
|
|
51
|
+
this._accessTokenFactory = accessTokenFactory;
|
|
52
|
+
this._logMessageContent = logMessageContent;
|
|
53
|
+
this._webSocketConstructor = webSocketConstructor;
|
|
54
|
+
this._httpClient = httpClient;
|
|
55
|
+
this.onreceive = null;
|
|
56
|
+
this.onclose = null;
|
|
57
|
+
this._headers = headers;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
_createClass(WebSocketTransport, [{
|
|
61
|
+
key: "connect",
|
|
62
|
+
value: function () {
|
|
63
|
+
var _connect = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(url, transferFormat) {
|
|
64
|
+
var _this = this;
|
|
65
|
+
|
|
66
|
+
var token;
|
|
67
|
+
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
68
|
+
while (1) {
|
|
69
|
+
switch (_context.prev = _context.next) {
|
|
70
|
+
case 0:
|
|
71
|
+
Utils.Arg.isRequired(url, "url");
|
|
72
|
+
Utils.Arg.isRequired(transferFormat, "transferFormat");
|
|
73
|
+
Utils.Arg.isIn(transferFormat, ITransport.TransferFormat, "transferFormat");
|
|
74
|
+
|
|
75
|
+
this._logger.log(ILogger.LogLevel.Trace, "(WebSockets transport) Connecting.");
|
|
76
|
+
|
|
77
|
+
if (!this._accessTokenFactory) {
|
|
78
|
+
_context.next = 9;
|
|
79
|
+
break;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
_context.next = 7;
|
|
83
|
+
return this._accessTokenFactory();
|
|
84
|
+
|
|
85
|
+
case 7:
|
|
86
|
+
token = _context.sent;
|
|
87
|
+
|
|
88
|
+
if (token) {
|
|
89
|
+
url += (url.indexOf("?") < 0 ? "?" : "&") + "access_token=".concat(encodeURIComponent(token));
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
case 9:
|
|
93
|
+
return _context.abrupt("return", new Promise(function (resolve, reject) {
|
|
94
|
+
url = url.replace(/^http/, "ws");
|
|
95
|
+
var webSocket;
|
|
96
|
+
|
|
97
|
+
var cookies = _this._httpClient.getCookieString(url);
|
|
98
|
+
|
|
99
|
+
var opened = false;
|
|
100
|
+
|
|
101
|
+
if (Utils.Platform.isNode) {
|
|
102
|
+
var headers = {};
|
|
103
|
+
|
|
104
|
+
var _Utils$getUserAgentHe = Utils.getUserAgentHeader(),
|
|
105
|
+
_Utils$getUserAgentHe2 = _slicedToArray(_Utils$getUserAgentHe, 2),
|
|
106
|
+
name = _Utils$getUserAgentHe2[0],
|
|
107
|
+
value = _Utils$getUserAgentHe2[1];
|
|
108
|
+
|
|
109
|
+
headers[name] = value;
|
|
110
|
+
|
|
111
|
+
if (cookies) {
|
|
112
|
+
headers[HeaderNames.HeaderNames.Cookie] = "".concat(cookies);
|
|
113
|
+
} // Only pass headers when in non-browser environments
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
// Only pass headers when in non-browser environments
|
|
117
|
+
webSocket = new _this._webSocketConstructor(url, undefined, {
|
|
118
|
+
headers: _objectSpread(_objectSpread({}, headers), _this._headers)
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
if (!webSocket) {
|
|
123
|
+
// Chrome is not happy with passing 'undefined' as protocol
|
|
124
|
+
webSocket = new _this._webSocketConstructor(url);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
if (transferFormat === ITransport.TransferFormat.Binary) {
|
|
128
|
+
webSocket.binaryType = "arraybuffer";
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
webSocket.onopen = function (_event) {
|
|
132
|
+
_this._logger.log(ILogger.LogLevel.Information, "WebSocket connected to ".concat(url, "."));
|
|
133
|
+
|
|
134
|
+
_this._webSocket = webSocket;
|
|
135
|
+
opened = true;
|
|
136
|
+
resolve();
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
webSocket.onerror = function (event) {
|
|
140
|
+
var error = null; // ErrorEvent is a browser only type we need to check if the type exists before using it
|
|
141
|
+
|
|
142
|
+
// ErrorEvent is a browser only type we need to check if the type exists before using it
|
|
143
|
+
if (typeof ErrorEvent !== "undefined" && event instanceof ErrorEvent) {
|
|
144
|
+
error = event.error;
|
|
145
|
+
} else {
|
|
146
|
+
error = "There was an error with the transport";
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
_this._logger.log(ILogger.LogLevel.Information, "(WebSockets transport) ".concat(error, "."));
|
|
150
|
+
};
|
|
151
|
+
|
|
152
|
+
webSocket.onmessage = function (message) {
|
|
153
|
+
_this._logger.log(ILogger.LogLevel.Trace, "(WebSockets transport) data received. ".concat(Utils.getDataDetail(message.data, _this._logMessageContent), "."));
|
|
154
|
+
|
|
155
|
+
if (_this.onreceive) {
|
|
156
|
+
try {
|
|
157
|
+
_this.onreceive(message.data);
|
|
158
|
+
} catch (error) {
|
|
159
|
+
_this._close(error);
|
|
160
|
+
|
|
161
|
+
return;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
};
|
|
165
|
+
|
|
166
|
+
webSocket.onclose = function (event) {
|
|
167
|
+
// Don't call close handler if connection was never established
|
|
168
|
+
// We'll reject the connect call instead
|
|
169
|
+
if (opened) {
|
|
170
|
+
_this._close(event);
|
|
171
|
+
} else {
|
|
172
|
+
var error = null; // ErrorEvent is a browser only type we need to check if the type exists before using it
|
|
173
|
+
|
|
174
|
+
// ErrorEvent is a browser only type we need to check if the type exists before using it
|
|
175
|
+
if (typeof ErrorEvent !== "undefined" && event instanceof ErrorEvent) {
|
|
176
|
+
error = event.error;
|
|
177
|
+
} else {
|
|
178
|
+
error = "WebSocket failed to connect. The connection could not be found on the server," + " either the endpoint may not be a SignalR endpoint," + " the connection ID is not present on the server, or there is a proxy blocking WebSockets." + " If you have multiple servers check that sticky sessions are enabled.";
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
reject(new Error(error));
|
|
182
|
+
}
|
|
183
|
+
};
|
|
184
|
+
}));
|
|
185
|
+
|
|
186
|
+
case 10:
|
|
187
|
+
case "end":
|
|
188
|
+
return _context.stop();
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
}, _callee, this);
|
|
192
|
+
}));
|
|
193
|
+
|
|
194
|
+
function connect(_x, _x2) {
|
|
195
|
+
return _connect.apply(this, arguments);
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
return connect;
|
|
199
|
+
}()
|
|
200
|
+
}, {
|
|
201
|
+
key: "send",
|
|
202
|
+
value: function send(data) {
|
|
203
|
+
if (this._webSocket && this._webSocket.readyState === this._webSocketConstructor.OPEN) {
|
|
204
|
+
this._logger.log(ILogger.LogLevel.Trace, "(WebSockets transport) sending data. ".concat(Utils.getDataDetail(data, this._logMessageContent), "."));
|
|
205
|
+
|
|
206
|
+
this._webSocket.send(data);
|
|
207
|
+
|
|
208
|
+
return Promise.resolve();
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
return Promise.reject("WebSocket is not in the OPEN state");
|
|
212
|
+
}
|
|
213
|
+
}, {
|
|
214
|
+
key: "stop",
|
|
215
|
+
value: function stop() {
|
|
216
|
+
if (this._webSocket) {
|
|
217
|
+
// Manually invoke onclose callback inline so we know the HttpConnection was closed properly before returning
|
|
218
|
+
// This also solves an issue where websocket.onclose could take 18+ seconds to trigger during network disconnects
|
|
219
|
+
this._close(undefined);
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
return Promise.resolve();
|
|
223
|
+
}
|
|
224
|
+
}, {
|
|
225
|
+
key: "_close",
|
|
226
|
+
value: function _close(event) {
|
|
227
|
+
// webSocket will be null if the transport did not start successfully
|
|
228
|
+
if (this._webSocket) {
|
|
229
|
+
// Clear websocket handlers because we are considering the socket closed now
|
|
230
|
+
this._webSocket.onclose = function () {};
|
|
231
|
+
|
|
232
|
+
this._webSocket.onmessage = function () {};
|
|
233
|
+
|
|
234
|
+
this._webSocket.onerror = function () {};
|
|
235
|
+
|
|
236
|
+
this._webSocket.close();
|
|
237
|
+
|
|
238
|
+
this._webSocket = undefined;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
this._logger.log(ILogger.LogLevel.Trace, "(WebSockets transport) socket closed.");
|
|
242
|
+
|
|
243
|
+
if (this.onclose) {
|
|
244
|
+
if (this._isCloseEvent(event) && (event.wasClean === false || event.code !== 1000)) {
|
|
245
|
+
this.onclose(new Error("WebSocket closed with status code: ".concat(event.code, " (").concat(event.reason || "no reason given", ").")));
|
|
246
|
+
} else if (event instanceof Error) {
|
|
247
|
+
this.onclose(event);
|
|
248
|
+
} else {
|
|
249
|
+
this.onclose();
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
}, {
|
|
254
|
+
key: "_isCloseEvent",
|
|
255
|
+
value: function _isCloseEvent(event) {
|
|
256
|
+
return event && typeof event.wasClean === "boolean" && typeof event.code === "number";
|
|
257
|
+
}
|
|
258
|
+
}]);
|
|
259
|
+
|
|
260
|
+
return WebSocketTransport;
|
|
261
|
+
}();
|
|
262
|
+
|
|
263
|
+
exports.WebSocketTransport = WebSocketTransport;
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
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); }
|
|
4
|
+
|
|
5
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6
|
+
|
|
7
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
8
|
+
|
|
9
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
10
|
+
|
|
11
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
12
|
+
|
|
13
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
14
|
+
|
|
15
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
16
|
+
|
|
17
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
18
|
+
|
|
19
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
20
|
+
|
|
21
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
22
|
+
|
|
23
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
24
|
+
|
|
25
|
+
Object.defineProperty(exports, '__esModule', {
|
|
26
|
+
value: true
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
var Errors = require('./Errors.js');
|
|
30
|
+
|
|
31
|
+
var HttpClient = require('./HttpClient.js');
|
|
32
|
+
|
|
33
|
+
var ILogger = require('./ILogger.js'); // Licensed to the .NET Foundation under one or more agreements.
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
var XhrHttpClient = /*#__PURE__*/function (_HttpClient$HttpClien) {
|
|
37
|
+
_inherits(XhrHttpClient, _HttpClient$HttpClien);
|
|
38
|
+
|
|
39
|
+
var _super = _createSuper(XhrHttpClient);
|
|
40
|
+
|
|
41
|
+
function XhrHttpClient(logger) {
|
|
42
|
+
var _this;
|
|
43
|
+
|
|
44
|
+
_classCallCheck(this, XhrHttpClient);
|
|
45
|
+
|
|
46
|
+
_this = _super.call(this);
|
|
47
|
+
_this._logger = logger;
|
|
48
|
+
return _this;
|
|
49
|
+
}
|
|
50
|
+
/** @inheritDoc */
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
_createClass(XhrHttpClient, [{
|
|
54
|
+
key: "send",
|
|
55
|
+
value: function send(request) {
|
|
56
|
+
var _this2 = this;
|
|
57
|
+
|
|
58
|
+
// Check that abort was not signaled before calling send
|
|
59
|
+
if (request.abortSignal && request.abortSignal.aborted) {
|
|
60
|
+
return Promise.reject(new Errors.AbortError());
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
if (!request.method) {
|
|
64
|
+
return Promise.reject(new Error("No method defined."));
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
if (!request.url) {
|
|
68
|
+
return Promise.reject(new Error("No url defined."));
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
return new Promise(function (resolve, reject) {
|
|
72
|
+
var xhr = new XMLHttpRequest();
|
|
73
|
+
xhr.open(request.method, request.url, true);
|
|
74
|
+
xhr.withCredentials = request.withCredentials === undefined ? true : request.withCredentials;
|
|
75
|
+
xhr.setRequestHeader("X-Requested-With", "XMLHttpRequest"); // Explicitly setting the Content-Type header for React Native on Android platform.
|
|
76
|
+
|
|
77
|
+
xhr.setRequestHeader("Content-Type", "text/plain;charset=UTF-8");
|
|
78
|
+
var headers = request.headers;
|
|
79
|
+
|
|
80
|
+
if (headers) {
|
|
81
|
+
Object.keys(headers).forEach(function (header) {
|
|
82
|
+
xhr.setRequestHeader(header, headers[header]);
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
if (request.responseType) {
|
|
87
|
+
xhr.responseType = request.responseType;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
if (request.abortSignal) {
|
|
91
|
+
request.abortSignal.onabort = function () {
|
|
92
|
+
xhr.abort();
|
|
93
|
+
reject(new Errors.AbortError());
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
if (request.timeout) {
|
|
98
|
+
xhr.timeout = request.timeout;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
xhr.onload = function () {
|
|
102
|
+
if (request.abortSignal) {
|
|
103
|
+
request.abortSignal.onabort = null;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
if (xhr.status >= 200 && xhr.status < 300) {
|
|
107
|
+
resolve(new HttpClient.HttpResponse(xhr.status, xhr.statusText, xhr.response || xhr.responseText));
|
|
108
|
+
} else {
|
|
109
|
+
reject(new Errors.HttpError(xhr.response || xhr.responseText || xhr.statusText, xhr.status));
|
|
110
|
+
}
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
xhr.onerror = function () {
|
|
114
|
+
_this2._logger.log(ILogger.LogLevel.Warning, "Error from HTTP request. ".concat(xhr.status, ": ").concat(xhr.statusText, "."));
|
|
115
|
+
|
|
116
|
+
reject(new Errors.HttpError(xhr.statusText, xhr.status));
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
xhr.ontimeout = function () {
|
|
120
|
+
_this2._logger.log(ILogger.LogLevel.Warning, "Timeout from HTTP request.");
|
|
121
|
+
|
|
122
|
+
reject(new Errors.TimeoutError());
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
xhr.send(request.content || "");
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
}]);
|
|
129
|
+
|
|
130
|
+
return XhrHttpClient;
|
|
131
|
+
}(HttpClient.HttpClient);
|
|
132
|
+
|
|
133
|
+
exports.XhrHttpClient = XhrHttpClient;
|
|
@@ -6,8 +6,9 @@ Object.defineProperty(exports, '__esModule', {
|
|
|
6
6
|
|
|
7
7
|
var styleInject_es = require('../../../node_modules/style-inject/dist/style-inject.es.js');
|
|
8
8
|
|
|
9
|
-
var css_248z = ".layout-module_applicationWrapper__adzds{animation:layout-module_fadeIn__-OF4H 2s;background-color:#fff;background-image:url(../../images/frontpage-brand-placeholder-vert.jpg);background-size:cover;height:100%;overflow:auto;width:100%}@keyframes layout-module_fadeIn__-OF4H{0%{opacity:0}to{opacity:1}}@media screen and (min-width:640px){.layout-module_applicationWrapper__adzds{background-image:none}}.layout-module_mainLayoutWrapper__4kuIT{height:100%;overflow:hidden;width:100%}.layout-module_bgTransparent__bBfb-{background-color:transparent}.layout-module_footerDisclaimer__-F6dv{font-size:.7rem}.layout-module_footerLogo__CBb-F{max-height:2.5rem}.layout-module_fullBodyHeight__hQfe5{min-height:calc(100vh - 75px)!important;padding-bottom:16px}.layout-module_navbarBrand__2IOPY{color:red}::selection{background-color:#cce2ff;color:rgba(0,0,0,.87)}.layout-module_colorLayout__VHJcU{background-color:#eaf4f9;height:100%;overflow:hidden;position:relative;width:100%}.layout-module_pdfViewerNative__hnAgy{background-color:#323639;height:100%;overflow:hidden;padding-top:6.5rem;position:relative;width:100%}.layout-module_noPadding__7amV4{padding:0}.layout-module_noMargin__1eUBf{margin:0}";
|
|
9
|
+
var css_248z = ".layout-module_echoContentContainer__0debO{height:100%}.layout-module_applicationWrapper__adzds{animation:layout-module_fadeIn__-OF4H 2s;background-color:#fff;background-image:url(../../images/frontpage-brand-placeholder-vert.jpg);background-size:cover;height:100%;overflow:auto;position:relative;width:100%}@keyframes layout-module_fadeIn__-OF4H{0%{opacity:0}to{opacity:1}}@media screen and (min-width:640px){.layout-module_applicationWrapper__adzds{background-image:none}}.layout-module_mainLayoutWrapper__4kuIT{height:100%;overflow:hidden;width:100%}.layout-module_bgTransparent__bBfb-{background-color:transparent}.layout-module_footerDisclaimer__-F6dv{font-size:.7rem}.layout-module_footerLogo__CBb-F{max-height:2.5rem}.layout-module_fullBodyHeight__hQfe5{min-height:calc(100vh - 75px)!important;padding-bottom:16px}.layout-module_navbarBrand__2IOPY{color:red}::selection{background-color:#cce2ff;color:rgba(0,0,0,.87)}.layout-module_colorLayout__VHJcU{background-color:#eaf4f9;height:100%;overflow:hidden;position:relative;width:100%}.layout-module_pdfViewerNative__hnAgy{background-color:#323639;height:100%;overflow:hidden;padding-top:6.5rem;position:relative;width:100%}.layout-module_cameraLayout__iVPug{background-color:\"transparent\"}.layout-module_cameraLayout__iVPug,.layout-module_defaultLayout__3MIwa{height:100%;position:relative;width:100%}.layout-module_noPadding__7amV4{padding:0}.layout-module_noMargin__1eUBf{margin:0}@media screen and (orientation:landscape){.layout-module_echoContentContainer__0debO{display:flex;flex-direction:row}.layout-module_applicationWrapper__adzds,.layout-module_colorLayout__VHJcU,.layout-module_defaultLayout__3MIwa,.layout-module_pdfViewerNative__hnAgy{width:calc(100% - 48px)}}@media screen and (orientation:portrait){.layout-module_applicationWrapper__adzds,.layout-module_colorLayout__VHJcU,.layout-module_defaultLayout__3MIwa,.layout-module_pdfViewerNative__hnAgy{height:calc(100% - 48px)}}";
|
|
10
10
|
var style = {
|
|
11
|
+
"echoContentContainer": "layout-module_echoContentContainer__0debO",
|
|
11
12
|
"applicationWrapper": "layout-module_applicationWrapper__adzds",
|
|
12
13
|
"fadeIn": "layout-module_fadeIn__-OF4H",
|
|
13
14
|
"mainLayoutWrapper": "layout-module_mainLayoutWrapper__4kuIT",
|
|
@@ -18,6 +19,8 @@ var style = {
|
|
|
18
19
|
"navbarBrand": "layout-module_navbarBrand__2IOPY",
|
|
19
20
|
"colorLayout": "layout-module_colorLayout__VHJcU",
|
|
20
21
|
"pdfViewerNative": "layout-module_pdfViewerNative__hnAgy",
|
|
22
|
+
"cameraLayout": "layout-module_cameraLayout__iVPug",
|
|
23
|
+
"defaultLayout": "layout-module_defaultLayout__3MIwa",
|
|
21
24
|
"noPadding": "layout-module_noPadding__7amV4",
|
|
22
25
|
"noMargin": "layout-module_noMargin__1eUBf"
|
|
23
26
|
};
|
|
@@ -8,6 +8,10 @@ Object.defineProperty(exports, '__esModule', {
|
|
|
8
8
|
|
|
9
9
|
var React = require('react');
|
|
10
10
|
|
|
11
|
+
var EchoBarComponent = require('../../coreApplication/EchoBarComponent.js');
|
|
12
|
+
|
|
13
|
+
var useIsLandscape = require('../../hooks/useIsLandscape.js');
|
|
14
|
+
|
|
11
15
|
var layout_module = require('./layout.module.css.js');
|
|
12
16
|
|
|
13
17
|
function _interopDefaultLegacy(e) {
|
|
@@ -20,39 +24,65 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
|
20
24
|
|
|
21
25
|
var MainLayout = function MainLayout(_ref) {
|
|
22
26
|
var children = _ref.children;
|
|
27
|
+
var isLandscape = useIsLandscape.useIsLandscape();
|
|
23
28
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
24
29
|
className: layout_module["default"].applicationWrapper
|
|
25
|
-
}, /*#__PURE__*/React__default["default"].createElement(
|
|
30
|
+
}, isLandscape && /*#__PURE__*/React__default["default"].createElement(EchoBarComponent.EchoBarComponent, {
|
|
31
|
+
isLandscape: isLandscape
|
|
32
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
26
33
|
className: layout_module["default"].mainLayoutWrapper
|
|
27
|
-
}, children)
|
|
34
|
+
}, children), !isLandscape && /*#__PURE__*/React__default["default"].createElement(EchoBarComponent.EchoBarComponent, {
|
|
35
|
+
isLandscape: isLandscape
|
|
36
|
+
}));
|
|
28
37
|
};
|
|
29
38
|
|
|
30
39
|
var ColorLayout = function ColorLayout(_ref2) {
|
|
31
40
|
var children = _ref2.children;
|
|
41
|
+
var isLandscape = useIsLandscape.useIsLandscape();
|
|
32
42
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
43
|
+
className: layout_module["default"].echoContentContainer
|
|
44
|
+
}, isLandscape && /*#__PURE__*/React__default["default"].createElement(EchoBarComponent.EchoBarComponent, {
|
|
45
|
+
isLandscape: isLandscape
|
|
46
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
33
47
|
className: layout_module["default"].colorLayout
|
|
34
|
-
}, children)
|
|
48
|
+
}, children), !isLandscape && /*#__PURE__*/React__default["default"].createElement(EchoBarComponent.EchoBarComponent, {
|
|
49
|
+
isLandscape: isLandscape
|
|
50
|
+
}));
|
|
35
51
|
};
|
|
36
52
|
|
|
37
53
|
var PdfViewerNative = function PdfViewerNative(_ref3) {
|
|
38
54
|
var children = _ref3.children;
|
|
55
|
+
var isLandscape = useIsLandscape.useIsLandscape();
|
|
39
56
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
57
|
+
className: layout_module["default"].echoContentContainer
|
|
58
|
+
}, isLandscape && /*#__PURE__*/React__default["default"].createElement(EchoBarComponent.EchoBarComponent, {
|
|
59
|
+
isLandscape: isLandscape
|
|
60
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
40
61
|
className: layout_module["default"].pdfViewerNative
|
|
41
|
-
}, children)
|
|
62
|
+
}, children), !isLandscape && /*#__PURE__*/React__default["default"].createElement(EchoBarComponent.EchoBarComponent, {
|
|
63
|
+
isLandscape: isLandscape
|
|
64
|
+
}));
|
|
42
65
|
};
|
|
43
66
|
|
|
44
67
|
var CameraLayout = function CameraLayout(_ref4) {
|
|
45
68
|
var children = _ref4.children;
|
|
46
69
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
47
|
-
|
|
48
|
-
backgroundColor: 'transparent'
|
|
49
|
-
}
|
|
70
|
+
className: layout_module["default"].cameraLayout
|
|
50
71
|
}, children);
|
|
51
72
|
};
|
|
52
73
|
|
|
53
74
|
var DefaultLayout = function DefaultLayout(_ref5) {
|
|
54
75
|
var children = _ref5.children;
|
|
55
|
-
|
|
76
|
+
var isLandscape = useIsLandscape.useIsLandscape();
|
|
77
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
78
|
+
className: layout_module["default"].echoContentContainer
|
|
79
|
+
}, isLandscape && /*#__PURE__*/React__default["default"].createElement(EchoBarComponent.EchoBarComponent, {
|
|
80
|
+
isLandscape: isLandscape
|
|
81
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
82
|
+
className: layout_module["default"].defaultLayout
|
|
83
|
+
}, children), !isLandscape && /*#__PURE__*/React__default["default"].createElement(EchoBarComponent.EchoBarComponent, {
|
|
84
|
+
isLandscape: isLandscape
|
|
85
|
+
}));
|
|
56
86
|
};
|
|
57
87
|
|
|
58
88
|
exports.CameraLayout = CameraLayout;
|
|
@@ -40,7 +40,9 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
|
40
40
|
|
|
41
41
|
edsIons.edsIcons();
|
|
42
42
|
|
|
43
|
-
var CorePanelLeft = function CorePanelLeft() {
|
|
43
|
+
var CorePanelLeft = function CorePanelLeft(_ref) {
|
|
44
|
+
var isToggleButtonVisible = _ref.isToggleButtonVisible;
|
|
45
|
+
|
|
44
46
|
var _a;
|
|
45
47
|
|
|
46
48
|
var _EchoCore$usePanels = EchoCore.usePanels(),
|
|
@@ -72,7 +74,8 @@ var CorePanelLeft = function CorePanelLeft() {
|
|
|
72
74
|
style: panelUI.panelButton
|
|
73
75
|
}, panels.map(function (panel, i) {
|
|
74
76
|
var Icon = panel.icon;
|
|
75
|
-
|
|
77
|
+
var showPanel = isToggleButtonVisible || panel.key === 'pdfTagList';
|
|
78
|
+
return showPanel && /*#__PURE__*/React__default["default"].createElement(panelButton["default"], {
|
|
76
79
|
key: i,
|
|
77
80
|
onClick: function onClick(e) {
|
|
78
81
|
e.stopPropagation();
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, '__esModule', {
|
|
|
6
6
|
|
|
7
7
|
var styleInject_es = require('../../../node_modules/style-inject/dist/style-inject.es.js');
|
|
8
8
|
|
|
9
|
-
var css_248z = ".corePanelLeft-module_wrapper__d2Omx{height:100%;left:-550px;max-width:550px;position:fixed;top:0;transition:all .4s ease-in-out;width:550px;z-index:2}@media screen and (max-width:550px){.corePanelLeft-module_wrapperClosed__Zd1CL{left:-75vw;max-width:75vw;width:75vw}.corePanelLeft-module_active__-A3TW{width:100%}}.corePanelLeft-module_active__-A3TW{left:0;z-index:var(--echo-framework-z-level-panel)}.corePanelLeft-module_drawer__Wdb3G{background-color:#fff;border-left:2px solid #f7f7f7;box-shadow:0 6px 4px #00000040;display:flex;flex-direction:column;height:100%;opacity:0;overflow-y:hidden;position:relative;transition:opacity .4s ease-in-out;width:auto}.corePanelLeft-module_active__-A3TW .corePanelLeft-module_drawer__Wdb3G{opacity:1}.corePanelLeft-module_buttonContainer__bs-Uu{display:flex;flex-direction:column;position:absolute;right:-70px;top:0}.corePanelLeft-module_button__SqyKk{margin-left:var(--medium);margin-top:var(--small)}";
|
|
9
|
+
var css_248z = ".corePanelLeft-module_wrapper__d2Omx{height:100%;left:-550px;max-width:550px;position:fixed;top:0;transition:all .4s ease-in-out;width:550px;z-index:2}@media screen and (max-width:550px){.corePanelLeft-module_wrapperClosed__Zd1CL{left:-75vw;max-width:75vw;width:75vw}.corePanelLeft-module_active__-A3TW{width:100%}}.corePanelLeft-module_active__-A3TW{left:0;z-index:var(--echo-framework-z-level-panel)}.corePanelLeft-module_drawer__Wdb3G{background-color:#fff;border-left:2px solid #f7f7f7;box-shadow:0 6px 4px #00000040;display:flex;flex-direction:column;height:100%;opacity:0;overflow-y:hidden;position:relative;transition:opacity .4s ease-in-out;width:auto}.corePanelLeft-module_active__-A3TW .corePanelLeft-module_drawer__Wdb3G{opacity:1}.corePanelLeft-module_buttonContainer__bs-Uu{display:flex;flex-direction:column;position:absolute;right:-70px;top:0}@media screen and (max-width:927px) and (orientation:landscape){.corePanelLeft-module_buttonContainer__bs-Uu{right:-118px}}.corePanelLeft-module_button__SqyKk{margin-left:var(--medium);margin-top:var(--small)}";
|
|
10
10
|
var style = {
|
|
11
11
|
"wrapper": "corePanelLeft-module_wrapper__d2Omx",
|
|
12
12
|
"wrapperClosed": "corePanelLeft-module_wrapperClosed__Zd1CL",
|
|
@@ -42,7 +42,9 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
|
42
42
|
|
|
43
43
|
edsIons.edsIcons();
|
|
44
44
|
|
|
45
|
-
var CorePanelRight = function CorePanelRight() {
|
|
45
|
+
var CorePanelRight = function CorePanelRight(_ref) {
|
|
46
|
+
var isToggleButtonVisible = _ref.isToggleButtonVisible;
|
|
47
|
+
|
|
46
48
|
var _a;
|
|
47
49
|
|
|
48
50
|
var _EchoCore$usePanels = EchoCore.usePanels('right'),
|
|
@@ -74,7 +76,7 @@ var CorePanelRight = function CorePanelRight() {
|
|
|
74
76
|
style: panelUI.panelButton
|
|
75
77
|
}, panels.map(function (panel, i) {
|
|
76
78
|
var PanelIcon = panel.icon;
|
|
77
|
-
return /*#__PURE__*/React__default["default"].createElement(panelButton["default"], {
|
|
79
|
+
return isToggleButtonVisible && /*#__PURE__*/React__default["default"].createElement(panelButton["default"], {
|
|
78
80
|
key: i,
|
|
79
81
|
label: panel.label,
|
|
80
82
|
variant: panel.key === EchoCore.ECHO_CORE_MAIN ? panelButton.Variants.NotificationButton : panelButton.Variants.OpenCloseButton,
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, '__esModule', {
|
|
|
6
6
|
|
|
7
7
|
var styleInject_es = require('../../../node_modules/style-inject/dist/style-inject.es.js');
|
|
8
8
|
|
|
9
|
-
var css_248z = ".corePanelRight-module_wrapper__YN3Zr{height:100%;max-width:
|
|
9
|
+
var css_248z = ".corePanelRight-module_wrapper__YN3Zr{height:100%;max-width:550px;position:fixed;right:-352px;top:0;transition:all .4s ease-in-out;width:352px;z-index:2}@media screen and (max-width:550px){.corePanelRight-module_active__RIMQt{width:100%}}.corePanelRight-module_active__RIMQt{right:0;z-index:var(--echo-framework-z-level-panel)}@media screen and (max-width:927px) and (orientation:landscape){.corePanelRight-module_wrapper__YN3Zr{left:-352px}.corePanelRight-module_active__RIMQt{left:0;z-index:var(--echo-framework-z-level-panel)}}.corePanelRight-module_drawer__1-ucH{background-color:#fff;border-left:2px solid #f7f7f7;box-shadow:0 6px 4px #00000040;display:flex;flex-direction:column;height:100%;opacity:0;overflow-y:auto;position:relative;transition:opacity .4s ease-in-out;width:auto}.corePanelRight-module_active__RIMQt .corePanelRight-module_drawer__1-ucH{opacity:1}.corePanelRight-module_buttonContainer__62imJ{display:flex;flex-direction:column;left:-90px;position:absolute;top:0}.corePanelRight-module_button__WBdfZ{margin-left:var(--medium);margin-top:var(--small)}";
|
|
10
10
|
var style = {
|
|
11
11
|
"wrapper": "corePanelRight-module_wrapper__YN3Zr",
|
|
12
12
|
"active": "corePanelRight-module_active__RIMQt",
|
|
@@ -54,7 +54,7 @@ var ProjectSelector = function ProjectSelector(_ref) {
|
|
|
54
54
|
var variant = _ref.variant,
|
|
55
55
|
maxCharacterCount = _ref.maxCharacterCount,
|
|
56
56
|
isDisabled = _ref.isDisabled;
|
|
57
|
-
var selectedProcosysProjectCode = EchoCore.useSelectedProcosysProject()
|
|
57
|
+
var selectedProcosysProjectCode = EchoCore.useSelectedProcosysProject();
|
|
58
58
|
|
|
59
59
|
var _EchoCore$useProcosys = EchoCore.useProcosysProjectsData(),
|
|
60
60
|
procosysProjectsHasError = _EchoCore$useProcosys.procosysProjectsHasError,
|