@equinor/echo-framework 0.9.12 → 0.9.13
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/_virtual/index.js +9 -0
- package/dist/components/containers/layouts.d.ts +3 -5
- package/dist/components/panel/corePanelLeft.d.ts +4 -1
- package/dist/components/panel/corePanelRight.d.ts +4 -1
- package/dist/components/router/echoRoute.d.ts +2 -2
- package/dist/components/router/index.d.ts +0 -1
- package/dist/coreApplication/EchoBarComponent.d.ts +9 -0
- package/dist/coreApplication/EchoUserInterfaceContextProvider.d.ts +11 -0
- package/dist/coreApplication/index.d.ts +2 -0
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/useIsCompactLayout.d.ts +5 -0
- package/dist/hooks/useScreenOrientation.d.ts +5 -0
- package/dist/hooks/useScreenValues.d.ts +13 -0
- package/dist/hooks/useWindowSize.d.ts +9 -0
- package/dist/index.d.ts +8 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/extends.js +2 -1
- package/dist/node_modules/@microsoft/signalr/dist/esm/Utils.js +1 -1
- package/dist/node_modules/classnames/index.js +67 -0
- package/dist/src/components/appLinks/AppLinks.js +1 -4
- package/dist/src/components/containers/layout.module.css.js +5 -1
- package/dist/src/components/containers/layouts.js +75 -36
- package/dist/src/components/footer/footer.module.css.js +1 -1
- package/dist/src/components/panel/corePanelLeft.js +6 -3
- package/dist/src/components/panel/corePanelLeft.module.css.js +3 -1
- package/dist/src/components/panel/corePanelRight.js +5 -2
- package/dist/src/components/panel/corePanelRight.module.css.js +1 -1
- package/dist/src/components/router/echoRoute.js +9 -3
- package/dist/src/components/router/routes.js +1 -4
- package/dist/src/components/toaster/toaster.js +1 -0
- package/dist/src/components/toaster/toaster.module.css.js +2 -1
- package/dist/src/coreApplication/EchoBarComponent.js +164 -0
- package/dist/src/coreApplication/EchoContent.js +21 -1
- package/dist/src/coreApplication/EchoContent.module.css.js +17 -0
- package/dist/src/coreApplication/EchoUserInterfaceContextProvider.js +66 -0
- package/dist/src/globalStyles.css.js +1 -1
- package/dist/src/hooks/index.js +6 -0
- package/dist/src/hooks/useIsCompactLayout.js +50 -0
- package/dist/src/hooks/useScreenOrientation.js +62 -0
- package/dist/src/hooks/useScreenValues.js +35 -0
- package/dist/src/hooks/useWindowSize.js +62 -0
- package/dist/src/index.js +47 -81
- package/dist/src/index2.js +205 -0
- package/dist/types/hookLibrary.d.ts +1 -0
- package/package.json +37 -37
- package/dist/components/appLinks/applinkUtils.d.ts +0 -2
- package/dist/components/appLinks/applinkUtils.test.d.ts +0 -1
- package/dist/components/router/useLayout.d.ts +0 -3
- package/dist/src/components/appLinks/applinkUtils.js +0 -19
- package/dist/src/components/router/useLayout.js +0 -32
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
export declare type LayoutKey = 'main' | 'nativePdf' | 'colorLayout' | undefined;
|
|
2
3
|
export interface LayoutProps {
|
|
4
|
+
layoutKey?: string;
|
|
3
5
|
children: React.ReactNode;
|
|
4
6
|
}
|
|
5
|
-
export declare const
|
|
6
|
-
export declare const ColorLayout: React.FC<LayoutProps>;
|
|
7
|
-
export declare const PdfViewerNative: React.FC<LayoutProps>;
|
|
8
|
-
export declare const CameraLayout: React.FC<LayoutProps>;
|
|
9
|
-
export declare const DefaultLayout: React.FC<LayoutProps>;
|
|
7
|
+
export declare const Layout: React.FC<LayoutProps>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { AppComponentProps, WrappedComponent } from '@equinor/echo-core';
|
|
2
2
|
import React, { ErrorInfo } from 'react';
|
|
3
|
-
import { LayoutProps } from '../containers/layouts';
|
|
4
3
|
interface EchoRouteProps {
|
|
4
|
+
key: string;
|
|
5
5
|
component: WrappedComponent<AppComponentProps>;
|
|
6
|
-
|
|
6
|
+
layoutKey?: string;
|
|
7
7
|
path: string;
|
|
8
8
|
errorHandler?: (error: Error, errorInfo: ErrorInfo) => void;
|
|
9
9
|
exactPath?: boolean;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface EchoBottomBarProps {
|
|
3
|
+
isBottomBarVisible: boolean;
|
|
4
|
+
activeAppMenuItem: string;
|
|
5
|
+
updateActiveAppMenuItem: (newActiveAppMenuItem: string) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const EchoBarComponent: React.FC<EchoBottomBarProps>;
|
|
8
|
+
declare const _default: React.NamedExoticComponent<EchoBottomBarProps>;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface EchoUiContextState {
|
|
3
|
+
activeAppMenuItem: string;
|
|
4
|
+
updateActiveAppMenuItem: (newActiveAppMenuItem: string) => void;
|
|
5
|
+
}
|
|
6
|
+
export declare const useEchoUiContext: () => EchoUiContextState;
|
|
7
|
+
interface EchoUiContextProviderProps {
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
}
|
|
10
|
+
export declare const EchoUiContextProvider: React.FC<EchoUiContextProviderProps>;
|
|
11
|
+
export {};
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ScreenOrientation } from '../types/hookLibrary';
|
|
2
|
+
/**
|
|
3
|
+
* Provides screen values for current screen.
|
|
4
|
+
*
|
|
5
|
+
* @returns {boolean} response.isScreenMobileSize If the device screen is small or not
|
|
6
|
+
* @returns {ScreenOrientation} response.screenOrientation
|
|
7
|
+
*/
|
|
8
|
+
declare type DeviceValues = {
|
|
9
|
+
isScreenMobileSize: boolean;
|
|
10
|
+
screenOrientation: ScreenOrientation;
|
|
11
|
+
};
|
|
12
|
+
export declare function useScreenValues(): DeviceValues;
|
|
13
|
+
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -6,6 +6,9 @@ import { getLegendStatusColor } from './utils/legendUtils';
|
|
|
6
6
|
export * from './components';
|
|
7
7
|
export * from './coreApplication';
|
|
8
8
|
export { RegisteredHookName } from './hooks/hookLibrary';
|
|
9
|
+
export { useIsCompactLayout } from './hooks/useIsCompactLayout';
|
|
10
|
+
export { useScreenOrientation } from './hooks/useScreenOrientation';
|
|
11
|
+
export { useScreenValues } from './hooks/useScreenValues';
|
|
9
12
|
export { RegisteredComponentName } from './services/componentRegistry/componentRegistry';
|
|
10
13
|
export * from './services/eventHubActions';
|
|
11
14
|
export * from './theme/themeConst';
|
|
@@ -36,6 +39,11 @@ declare const EchoFramework: Readonly<{
|
|
|
36
39
|
useEchoHistory(): (path: string, params?: {
|
|
37
40
|
[key: string]: string;
|
|
38
41
|
} | undefined, state?: any) => void;
|
|
42
|
+
useScreenOrientation(): import("./types/hookLibrary").ScreenOrientation;
|
|
43
|
+
useScreenValues(): {
|
|
44
|
+
isScreenMobileSize: boolean;
|
|
45
|
+
screenOrientation: import("./types/hookLibrary").ScreenOrientation;
|
|
46
|
+
};
|
|
39
47
|
useTagDetails({ instCode, tagNo }: {
|
|
40
48
|
tagNo: string;
|
|
41
49
|
instCode: string;
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', {
|
|
|
5
5
|
});
|
|
6
6
|
|
|
7
7
|
function _extends() {
|
|
8
|
-
_extends = Object.assign
|
|
8
|
+
_extends = Object.assign || function (target) {
|
|
9
9
|
for (var i = 1; i < arguments.length; i++) {
|
|
10
10
|
var source = arguments[i];
|
|
11
11
|
|
|
@@ -18,6 +18,7 @@ function _extends() {
|
|
|
18
18
|
|
|
19
19
|
return target;
|
|
20
20
|
};
|
|
21
|
+
|
|
21
22
|
return _extends.apply(this, arguments);
|
|
22
23
|
}
|
|
23
24
|
|
|
@@ -0,0 +1,67 @@
|
|
|
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
|
+
Object.defineProperty(exports, '__esModule', {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
|
|
9
|
+
var index = require('../../_virtual/index.js');
|
|
10
|
+
/*!
|
|
11
|
+
Copyright (c) 2018 Jed Watson.
|
|
12
|
+
Licensed under the MIT License (MIT), see
|
|
13
|
+
http://jedwatson.github.io/classnames
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
(function (module) {
|
|
18
|
+
/* global define */
|
|
19
|
+
(function () {
|
|
20
|
+
var hasOwn = {}.hasOwnProperty;
|
|
21
|
+
|
|
22
|
+
function classNames() {
|
|
23
|
+
var classes = [];
|
|
24
|
+
|
|
25
|
+
for (var i = 0; i < arguments.length; i++) {
|
|
26
|
+
var arg = arguments[i];
|
|
27
|
+
if (!arg) continue;
|
|
28
|
+
|
|
29
|
+
var argType = _typeof(arg);
|
|
30
|
+
|
|
31
|
+
if (argType === 'string' || argType === 'number') {
|
|
32
|
+
classes.push(arg);
|
|
33
|
+
} else if (Array.isArray(arg)) {
|
|
34
|
+
if (arg.length) {
|
|
35
|
+
var inner = classNames.apply(null, arg);
|
|
36
|
+
|
|
37
|
+
if (inner) {
|
|
38
|
+
classes.push(inner);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
} else if (argType === 'object') {
|
|
42
|
+
if (arg.toString === Object.prototype.toString) {
|
|
43
|
+
for (var key in arg) {
|
|
44
|
+
if (hasOwn.call(arg, key) && arg[key]) {
|
|
45
|
+
classes.push(key);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
} else {
|
|
49
|
+
classes.push(arg.toString());
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
return classes.join(' ');
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
if (module.exports) {
|
|
58
|
+
classNames["default"] = classNames;
|
|
59
|
+
module.exports = classNames;
|
|
60
|
+
} else {
|
|
61
|
+
window.classNames = classNames;
|
|
62
|
+
}
|
|
63
|
+
})();
|
|
64
|
+
})(index.classnames);
|
|
65
|
+
|
|
66
|
+
var classNames = index.classnames.exports;
|
|
67
|
+
exports["default"] = classNames;
|
|
@@ -12,8 +12,6 @@ var React = require('react');
|
|
|
12
12
|
|
|
13
13
|
var AppLinks_module = require('./AppLinks.module.css.js');
|
|
14
14
|
|
|
15
|
-
var applinkUtils = require('./applinkUtils.js');
|
|
16
|
-
|
|
17
15
|
var linkButton = require('./linkButton/linkButton.js');
|
|
18
16
|
|
|
19
17
|
function _interopDefaultLegacy(e) {
|
|
@@ -27,13 +25,12 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
|
27
25
|
var AppLinks = function AppLinks(_ref) {
|
|
28
26
|
var isHome = _ref.isHome;
|
|
29
27
|
var appLinks = EchoCore.useAppLinks(isHome);
|
|
30
|
-
var instCode = EchoCore.useInstCode();
|
|
31
28
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
32
29
|
className: AppLinks_module["default"].AppBar
|
|
33
30
|
}, appLinks.map(function (appLink, index) {
|
|
34
31
|
return /*#__PURE__*/React__default["default"].createElement(linkButton.LinkButton, {
|
|
35
32
|
key: appLink.name + index,
|
|
36
|
-
appLink:
|
|
33
|
+
appLink: appLink
|
|
37
34
|
});
|
|
38
35
|
}));
|
|
39
36
|
};
|
|
@@ -6,8 +6,10 @@ 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%;padding:env(safe-area-inset-top,20px) env(safe-area-inset-right,20px) env(safe-area-inset-bottom,20px) env(safe-area-inset-left,20px);width:100%}@media screen and (max-width:1078px) and (orientation:landscape){.layout-module_echoContentContainer__0debO{display:flex;flex-direction:row}.layout-module_deviceOrientation__DY1-L{width:calc(100% - 48px)!important}}@media screen and (max-width:892px) and (orientation:portrait){.layout-module_deviceOrientation__DY1-L{height:calc(100% - 48px)!important}}.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}";
|
|
10
10
|
var style = {
|
|
11
|
+
"echoContentContainer": "layout-module_echoContentContainer__0debO",
|
|
12
|
+
"deviceOrientation": "layout-module_deviceOrientation__DY1-L",
|
|
11
13
|
"applicationWrapper": "layout-module_applicationWrapper__adzds",
|
|
12
14
|
"fadeIn": "layout-module_fadeIn__-OF4H",
|
|
13
15
|
"mainLayoutWrapper": "layout-module_mainLayoutWrapper__4kuIT",
|
|
@@ -18,6 +20,8 @@ var style = {
|
|
|
18
20
|
"navbarBrand": "layout-module_navbarBrand__2IOPY",
|
|
19
21
|
"colorLayout": "layout-module_colorLayout__VHJcU",
|
|
20
22
|
"pdfViewerNative": "layout-module_pdfViewerNative__hnAgy",
|
|
23
|
+
"cameraLayout": "layout-module_cameraLayout__iVPug",
|
|
24
|
+
"defaultLayout": "layout-module_defaultLayout__3MIwa",
|
|
21
25
|
"noPadding": "layout-module_noPadding__7amV4",
|
|
22
26
|
"noMargin": "layout-module_noMargin__1eUBf"
|
|
23
27
|
};
|
|
@@ -1,13 +1,63 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
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; }
|
|
4
|
+
|
|
3
5
|
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
6
|
|
|
5
7
|
Object.defineProperty(exports, '__esModule', {
|
|
6
8
|
value: true
|
|
7
9
|
});
|
|
8
10
|
|
|
11
|
+
var index = require('../../../node_modules/classnames/index.js');
|
|
12
|
+
|
|
9
13
|
var React = require('react');
|
|
10
14
|
|
|
15
|
+
var EchoBarComponent = require('../../coreApplication/EchoBarComponent.js');
|
|
16
|
+
|
|
17
|
+
require('@equinor/echo-core');
|
|
18
|
+
|
|
19
|
+
require('../panel/corePanelLeft.js');
|
|
20
|
+
|
|
21
|
+
require('../panel/corePanelRight.js');
|
|
22
|
+
|
|
23
|
+
require('react-router-dom');
|
|
24
|
+
|
|
25
|
+
require('@equinor/echo-utils');
|
|
26
|
+
|
|
27
|
+
var useScreenValues = require('../../hooks/useScreenValues.js');
|
|
28
|
+
|
|
29
|
+
require('@equinor/echo-base');
|
|
30
|
+
|
|
31
|
+
require('@equinor/echo-search');
|
|
32
|
+
|
|
33
|
+
require('../../services/echopediaAnalyticsModule/echopediaAnalyticsModule.js');
|
|
34
|
+
|
|
35
|
+
require('@equinor/echo-components');
|
|
36
|
+
|
|
37
|
+
require('@equinor/eds-core-react');
|
|
38
|
+
|
|
39
|
+
require('../pageMenu/accordionItem.module.css.js');
|
|
40
|
+
|
|
41
|
+
require('../appLinks/AppLinks.module.css.js');
|
|
42
|
+
|
|
43
|
+
require('../pageMenu/Navigation/applicationList.module.css.js');
|
|
44
|
+
|
|
45
|
+
require('../pageMenu/pageMenu.module.css.js');
|
|
46
|
+
|
|
47
|
+
require('../pageMenu/pageMenuDrawerItem.module.css.js');
|
|
48
|
+
|
|
49
|
+
require('../pageMenu/settings/settings.module.css.js');
|
|
50
|
+
|
|
51
|
+
require('../../services/api/api-manager.js');
|
|
52
|
+
|
|
53
|
+
require('../pageMenu/version/version.module.css.js');
|
|
54
|
+
|
|
55
|
+
require('../searchMenu/searchMenu.module.css.js');
|
|
56
|
+
|
|
57
|
+
require('../../coreApplication/EchoEventHandler.module.css.js');
|
|
58
|
+
|
|
59
|
+
var EchoUserInterfaceContextProvider = require('../../coreApplication/EchoUserInterfaceContextProvider.js');
|
|
60
|
+
|
|
11
61
|
var layout_module = require('./layout.module.css.js');
|
|
12
62
|
|
|
13
63
|
function _interopDefaultLegacy(e) {
|
|
@@ -18,45 +68,34 @@ function _interopDefaultLegacy(e) {
|
|
|
18
68
|
|
|
19
69
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
20
70
|
|
|
21
|
-
var
|
|
22
|
-
var
|
|
23
|
-
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
24
|
-
className: layout_module["default"].applicationWrapper
|
|
25
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
26
|
-
className: layout_module["default"].mainLayoutWrapper
|
|
27
|
-
}, children));
|
|
28
|
-
};
|
|
71
|
+
var Layout = function Layout(_ref) {
|
|
72
|
+
var _index$default;
|
|
29
73
|
|
|
30
|
-
var
|
|
31
|
-
|
|
32
|
-
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
33
|
-
className: layout_module["default"].colorLayout
|
|
34
|
-
}, children);
|
|
35
|
-
};
|
|
74
|
+
var layoutKey = _ref.layoutKey,
|
|
75
|
+
children = _ref.children;
|
|
36
76
|
|
|
37
|
-
var
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
className: layout_module["default"].pdfViewerNative
|
|
41
|
-
}, children);
|
|
42
|
-
};
|
|
77
|
+
var _useScreenValues$useS = useScreenValues.useScreenValues(),
|
|
78
|
+
isScreenMobileSize = _useScreenValues$useS.isScreenMobileSize,
|
|
79
|
+
screenOrientation = _useScreenValues$useS.screenOrientation;
|
|
43
80
|
|
|
44
|
-
var
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
style: {
|
|
48
|
-
backgroundColor: 'transparent'
|
|
49
|
-
}
|
|
50
|
-
}, children);
|
|
51
|
-
};
|
|
81
|
+
var _EchoUserInterfaceCon = EchoUserInterfaceContextProvider.useEchoUiContext(),
|
|
82
|
+
activeAppMenuItem = _EchoUserInterfaceCon.activeAppMenuItem,
|
|
83
|
+
updateActiveAppMenuItem = _EchoUserInterfaceCon.updateActiveAppMenuItem;
|
|
52
84
|
|
|
53
|
-
var
|
|
54
|
-
|
|
55
|
-
|
|
85
|
+
var ModuleLayoutClassNames = index["default"](layout_module["default"].deviceOrientation, (_index$default = {}, _defineProperty(_index$default, layout_module["default"].mainLayoutWrapper, layoutKey === 'main'), _defineProperty(_index$default, layout_module["default"].colorLayout, layoutKey === 'colorLayout'), _defineProperty(_index$default, layout_module["default"].pdfViewerNative, layoutKey === 'nativePdf'), _defineProperty(_index$default, layout_module["default"].defaultLayout, layoutKey === undefined), _index$default));
|
|
86
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
87
|
+
className: layout_module["default"].echoContentContainer
|
|
88
|
+
}, screenOrientation === 'landscape' && /*#__PURE__*/React__default["default"].createElement(EchoBarComponent.EchoBarComponent, {
|
|
89
|
+
isBottomBarVisible: isScreenMobileSize,
|
|
90
|
+
activeAppMenuItem: activeAppMenuItem,
|
|
91
|
+
updateActiveAppMenuItem: updateActiveAppMenuItem
|
|
92
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
93
|
+
className: ModuleLayoutClassNames
|
|
94
|
+
}, children), screenOrientation === 'portrait' && /*#__PURE__*/React__default["default"].createElement(EchoBarComponent.EchoBarComponent, {
|
|
95
|
+
isBottomBarVisible: isScreenMobileSize,
|
|
96
|
+
activeAppMenuItem: activeAppMenuItem,
|
|
97
|
+
updateActiveAppMenuItem: updateActiveAppMenuItem
|
|
98
|
+
}));
|
|
56
99
|
};
|
|
57
100
|
|
|
58
|
-
exports.
|
|
59
|
-
exports.ColorLayout = ColorLayout;
|
|
60
|
-
exports.DefaultLayout = DefaultLayout;
|
|
61
|
-
exports.MainLayout = MainLayout;
|
|
62
|
-
exports.PdfViewerNative = PdfViewerNative;
|
|
101
|
+
exports.Layout = Layout;
|
|
@@ -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 = ".footer-module_echoFooter__6xy2c{background:#fff;bottom:0;display:flex;left:0;position:fixed}@media screen and (min-width:360px){.footer-module_echoFooter__6xy2c{height:33px}}@media screen and (min-width:640px){.footer-module_echoFooter__6xy2c{height:56px;width:100%}}p.footer-module_footerDisclaimer__sJJ5f{font-size:10px;width:100%}.footer-module_footerLogo__ttZmv{display:none;float:right;margin:0 0 12px;max-height:2.5rem;padding:12px 16px;width:74px}.footer-module_tosFooter__9mGDz{background:#fff;bottom:0;height:33px;left:0;position:fixed;width:100%}@media screen and (min-width:640px){p.footer-module_footerDisclaimer__sJJ5f{line-height:32px;margin:0;padding:12px 16px}.footer-module_footerLogo__ttZmv{display:block}.footer-module_tosFooter__9mGDz{height:56px}}";
|
|
9
|
+
var css_248z = ".footer-module_echoFooter__6xy2c{background:#fff;bottom:0;display:flex;left:0;position:fixed}@media screen and (max-width:892px) and (orientation:portrait){.footer-module_echoFooter__6xy2c{bottom:48px}}@media screen and (max-width:1078px) and (orientation:landscape){.footer-module_echoFooter__6xy2c{left:48px}}@media screen and (min-width:360px){.footer-module_echoFooter__6xy2c{height:33px}}@media screen and (min-width:640px){.footer-module_echoFooter__6xy2c{height:56px;width:100%}}p.footer-module_footerDisclaimer__sJJ5f{font-size:10px;width:100%}.footer-module_footerLogo__ttZmv{display:none;float:right;margin:0 0 12px;max-height:2.5rem;padding:12px 16px;width:74px}.footer-module_tosFooter__9mGDz{background:#fff;bottom:0;height:33px;left:0;position:fixed;width:100%}@media screen and (min-width:640px){p.footer-module_footerDisclaimer__sJJ5f{line-height:32px;margin:0;padding:12px 16px}.footer-module_footerLogo__ttZmv{display:block}.footer-module_tosFooter__9mGDz{height:56px}}";
|
|
10
10
|
var style = {
|
|
11
11
|
"echoFooter": "footer-module_echoFooter__6xy2c",
|
|
12
12
|
"footerDisclaimer": "footer-module_footerDisclaimer__sJJ5f",
|
|
@@ -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(),
|
|
@@ -68,11 +70,12 @@ var CorePanelLeft = function CorePanelLeft() {
|
|
|
68
70
|
className: corePanelLeft_module["default"].drawer,
|
|
69
71
|
style: panelUI.panel
|
|
70
72
|
}, activePanel && PanelContent ? /*#__PURE__*/React__default["default"].createElement(PanelContent, null) : /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
71
|
-
className: corePanelLeft_module["default"].buttonContainer,
|
|
73
|
+
className: corePanelLeft_module["default"].buttonContainer + ' ' + "".concat(isPanelActive ? corePanelLeft_module["default"].buttonContainerActive : corePanelLeft_module["default"].buttonContainerClosed),
|
|
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 !== EchoCore.ECHO_CORE_SEARCH;
|
|
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,13 +6,15 @@ 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:
|
|
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;padding:env(safe-area-inset-top,56px) env(safe-area-inset-right,56px) env(safe-area-inset-bottom,56px) env(safe-area-inset-left,56px);width:75vw}.corePanelLeft-module_active__-A3TW{width:100%}}.corePanelLeft-module_active__-A3TW{left:0;z-index:var(--echo-framework-z-level-panel-left)}@media screen and (max-width:892px) and (orientation:portrait){.corePanelLeft-module_wrapper__d2Omx{height:calc(100% - 48px)}}@media screen and (max-width:1078px) and (orientation:landscape){.corePanelLeft-module_active__-A3TW{left:48px;padding:env(safe-area-inset-top,56px) env(safe-area-inset-right,56px) env(safe-area-inset-bottom,56px) env(safe-area-inset-left,56px)}}.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:1078px) and (orientation:landscape){.corePanelLeft-module_buttonContainerActive__oAcAV{right:calc(-70px + env(safe-area-inset-right, 20px))}.corePanelLeft-module_buttonContainerClosed__55yp-{right:calc(-118px - env(safe-area-inset-right, 20px))}}.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",
|
|
13
13
|
"active": "corePanelLeft-module_active__-A3TW",
|
|
14
14
|
"drawer": "corePanelLeft-module_drawer__Wdb3G",
|
|
15
15
|
"buttonContainer": "corePanelLeft-module_buttonContainer__bs-Uu",
|
|
16
|
+
"buttonContainerActive": "corePanelLeft-module_buttonContainerActive__oAcAV",
|
|
17
|
+
"buttonContainerClosed": "corePanelLeft-module_buttonContainerClosed__55yp-",
|
|
16
18
|
"button": "corePanelLeft-module_button__SqyKk"
|
|
17
19
|
};
|
|
18
20
|
styleInject_es["default"](css_248z);
|
|
@@ -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,8 @@ var CorePanelRight = function CorePanelRight() {
|
|
|
74
76
|
style: panelUI.panelButton
|
|
75
77
|
}, panels.map(function (panel, i) {
|
|
76
78
|
var PanelIcon = panel.icon;
|
|
77
|
-
|
|
79
|
+
var showPanel = isToggleButtonVisible || panel.key !== EchoCore.ECHO_CORE_MAIN;
|
|
80
|
+
return showPanel && /*#__PURE__*/React__default["default"].createElement(panelButton["default"], {
|
|
78
81
|
key: i,
|
|
79
82
|
label: panel.label,
|
|
80
83
|
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}.corePanelRight-module_active__RIMQt{right:0;z-index:var(--echo-framework-z-level-panel-main)}@media screen and (max-width:550px){.corePanelRight-module_active__RIMQt{width:100%}}@media screen and (max-width:892px) and (orientation:portrait){.corePanelRight-module_wrapper__YN3Zr{height:calc(100% - 48px)}}@media screen and (max-width:1078px) and (orientation:landscape){.corePanelRight-module_wrapper__YN3Zr{left:-352px}.corePanelRight-module_active__RIMQt{left:48px;padding:env(safe-area-inset-top,20px) env(safe-area-inset-right,20px) env(safe-area-inset-bottom,20px) env(safe-area-inset-left,20px);z-index:var(--echo-framework-z-level-panel-main)}}.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",
|
|
@@ -12,6 +12,8 @@ var reactRouterDom = require('react-router-dom');
|
|
|
12
12
|
|
|
13
13
|
var errorBoundary = require('../errorBoundary/errorBoundary.js');
|
|
14
14
|
|
|
15
|
+
var layouts = require('../containers/layouts.js');
|
|
16
|
+
|
|
15
17
|
var echoWrapper = require('./echoWrapper.js');
|
|
16
18
|
|
|
17
19
|
function _interopDefaultLegacy(e) {
|
|
@@ -23,17 +25,21 @@ function _interopDefaultLegacy(e) {
|
|
|
23
25
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
24
26
|
|
|
25
27
|
var EchoRoute = function EchoRoute(_ref) {
|
|
26
|
-
var
|
|
27
|
-
|
|
28
|
+
var key = _ref.key,
|
|
29
|
+
Component = _ref.component,
|
|
30
|
+
layoutKey = _ref.layoutKey,
|
|
28
31
|
path = _ref.path,
|
|
29
32
|
errorHandler = _ref.errorHandler,
|
|
30
33
|
_ref$exactPath = _ref.exactPath,
|
|
31
34
|
exactPath = _ref$exactPath === void 0 ? true : _ref$exactPath;
|
|
32
35
|
return /*#__PURE__*/React__default["default"].createElement(reactRouterDom.Route, {
|
|
36
|
+
key: key,
|
|
33
37
|
exact: exactPath,
|
|
34
38
|
path: path,
|
|
35
39
|
render: function render(props) {
|
|
36
|
-
return /*#__PURE__*/React__default["default"].createElement(Layout,
|
|
40
|
+
return /*#__PURE__*/React__default["default"].createElement(layouts.Layout, {
|
|
41
|
+
layoutKey: layoutKey
|
|
42
|
+
}, /*#__PURE__*/React__default["default"].createElement(echoWrapper.EchoWrapper, {
|
|
37
43
|
path: path
|
|
38
44
|
}, /*#__PURE__*/React__default["default"].createElement(errorBoundary.ErrorBoundary, {
|
|
39
45
|
onComponentDidCatch: errorHandler
|
|
@@ -12,8 +12,6 @@ var React = require('react');
|
|
|
12
12
|
|
|
13
13
|
var echoRoute = require('./echoRoute.js');
|
|
14
14
|
|
|
15
|
-
var useLayout = require('./useLayout.js');
|
|
16
|
-
|
|
17
15
|
function _interopDefaultLegacy(e) {
|
|
18
16
|
return e && _typeof(e) === 'object' && 'default' in e ? e : {
|
|
19
17
|
'default': e
|
|
@@ -25,7 +23,6 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
|
25
23
|
var EchoRoutes = function EchoRoutes(_ref) {
|
|
26
24
|
var routeErrorHandler = _ref.routeErrorHandler;
|
|
27
25
|
var routes = EchoCore.useRoutes();
|
|
28
|
-
var getLayout = useLayout.useLayout();
|
|
29
26
|
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, routes.map(function (_ref2) {
|
|
30
27
|
var path = _ref2.path,
|
|
31
28
|
component = _ref2.component,
|
|
@@ -36,7 +33,7 @@ var EchoRoutes = function EchoRoutes(_ref) {
|
|
|
36
33
|
key: key,
|
|
37
34
|
path: path,
|
|
38
35
|
component: component,
|
|
39
|
-
|
|
36
|
+
layoutKey: layoutKey,
|
|
40
37
|
errorHandler: routeErrorHandler,
|
|
41
38
|
exactPath: exactPath
|
|
42
39
|
});
|
|
@@ -27,6 +27,7 @@ var Toaster = function Toaster(_ref) {
|
|
|
27
27
|
onClose = _ref.onClose;
|
|
28
28
|
var Action = edsCoreReact.Snackbar.Action;
|
|
29
29
|
return /*#__PURE__*/React__default["default"].createElement(edsCoreReact.Snackbar, {
|
|
30
|
+
className: toaster_module["default"].toaster,
|
|
30
31
|
placement: 'bottom-left',
|
|
31
32
|
open: true,
|
|
32
33
|
onClose: onClose
|
|
@@ -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 = ".toaster-module_chip__eNPoH{padding:5px!important;position:absolute;right:-5px;top:-5px}.toaster-module_toastersSection__q-orZ{grid-gap:24px;align-items:start;bottom:8px;display:grid;grid-auto-rows:32px;height:auto;left:8px;position:absolute}.toaster-module_toastersSection__q-orZ>div{height:32px;position:relative;width:fit-content}";
|
|
9
|
+
var css_248z = "@media screen and (max-width:1078px) and (orientation:landscape){.toaster-module_toaster__6C9aR{left:64px!important}}@media screen and (max-width:892px) and (orientation:portrait){.toaster-module_toaster__6C9aR{bottom:64px!important}}.toaster-module_chip__eNPoH{padding:5px!important;position:absolute;right:-5px;top:-5px}.toaster-module_toastersSection__q-orZ{grid-gap:24px;align-items:start;bottom:8px;display:grid;grid-auto-rows:32px;height:auto;left:8px;position:absolute}.toaster-module_toastersSection__q-orZ>div{height:32px;position:relative;width:fit-content}";
|
|
10
10
|
var style = {
|
|
11
|
+
"toaster": "toaster-module_toaster__6C9aR",
|
|
11
12
|
"chip": "toaster-module_chip__eNPoH",
|
|
12
13
|
"toastersSection": "toaster-module_toastersSection__q-orZ"
|
|
13
14
|
};
|