@equinor/echo-framework 0.8.3 → 0.8.6
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.
|
@@ -64,111 +64,106 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
|
64
64
|
|
|
65
65
|
var MainLayout = function MainLayout(_ref) {
|
|
66
66
|
var children = _ref.children;
|
|
67
|
-
|
|
67
|
+
|
|
68
|
+
var _hookLibrary$HookLibr = hookLibrary.HookLibrary.useDeviceOrientation(),
|
|
69
|
+
deviceOrientation = _hookLibrary$HookLibr.deviceOrientation;
|
|
70
|
+
|
|
68
71
|
var isLandscapeDevice = deviceOrientation.landscape;
|
|
69
72
|
var screenOrientation = useScreenOrientation.useScreenOrientation();
|
|
70
73
|
var isWeb = !deviceOrientation.landscape && !deviceOrientation.portrait;
|
|
71
74
|
var isLandscapeWeb = screenOrientation === 'landscape';
|
|
72
75
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
73
76
|
className: layout_module["default"].echoContentContainer
|
|
74
|
-
}, isWeb
|
|
75
|
-
isLandscape: isLandscapeWeb
|
|
76
|
-
}) : deviceOrientation.landscape && /*#__PURE__*/React__default["default"].createElement(EchoBarComponent.EchoBarComponent, {
|
|
77
|
-
isLandscape: isLandscapeDevice
|
|
77
|
+
}, (isWeb && screenOrientation === 'landscape' || !isWeb && deviceOrientation.landscape) && /*#__PURE__*/React__default["default"].createElement(EchoBarComponent.EchoBarComponent, {
|
|
78
|
+
isLandscape: isWeb ? isLandscapeWeb : isLandscapeDevice
|
|
78
79
|
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
79
80
|
className: layout_module["default"].mainLayoutWrapper
|
|
80
|
-
}, children),
|
|
81
|
-
isLandscape: isLandscapeWeb
|
|
82
|
-
}) : deviceOrientation.portrait && /*#__PURE__*/React__default["default"].createElement(EchoBarComponent.EchoBarComponent, {
|
|
83
|
-
isLandscape: isLandscapeDevice
|
|
81
|
+
}, children), (isWeb && screenOrientation === 'portrait' || !isWeb && deviceOrientation.portrait) && /*#__PURE__*/React__default["default"].createElement(EchoBarComponent.EchoBarComponent, {
|
|
82
|
+
isLandscape: isWeb ? isLandscapeWeb : isLandscapeDevice
|
|
84
83
|
}));
|
|
85
84
|
};
|
|
86
85
|
|
|
87
86
|
var ColorLayout = function ColorLayout(_ref2) {
|
|
88
87
|
var children = _ref2.children;
|
|
89
|
-
|
|
88
|
+
|
|
89
|
+
var _hookLibrary$HookLibr2 = hookLibrary.HookLibrary.useDeviceOrientation(),
|
|
90
|
+
deviceOrientation = _hookLibrary$HookLibr2.deviceOrientation;
|
|
91
|
+
|
|
90
92
|
var isLandscapeDevice = deviceOrientation.landscape;
|
|
91
93
|
var screenOrientation = useScreenOrientation.useScreenOrientation();
|
|
92
94
|
var isWeb = !deviceOrientation.landscape && !deviceOrientation.portrait;
|
|
93
95
|
var isLandscapeWeb = screenOrientation === 'landscape';
|
|
94
96
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
95
97
|
className: layout_module["default"].echoContentContainer
|
|
96
|
-
},
|
|
97
|
-
isLandscape: isLandscapeWeb
|
|
98
|
-
}) : deviceOrientation.landscape && /*#__PURE__*/React__default["default"].createElement(EchoBarComponent.EchoBarComponent, {
|
|
99
|
-
isLandscape: isLandscapeDevice
|
|
98
|
+
}, (isWeb && screenOrientation === 'landscape' || !isWeb && deviceOrientation.landscape) && /*#__PURE__*/React__default["default"].createElement(EchoBarComponent.EchoBarComponent, {
|
|
99
|
+
isLandscape: isWeb ? isLandscapeWeb : isLandscapeDevice
|
|
100
100
|
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
101
101
|
className: layout_module["default"].colorLayout
|
|
102
|
-
}, children), isWeb
|
|
103
|
-
isLandscape: isLandscapeWeb
|
|
104
|
-
}) : deviceOrientation.portrait && /*#__PURE__*/React__default["default"].createElement(EchoBarComponent.EchoBarComponent, {
|
|
105
|
-
isLandscape: isLandscapeDevice
|
|
102
|
+
}, children), (isWeb && screenOrientation === 'portrait' || !isWeb && deviceOrientation.portrait) && /*#__PURE__*/React__default["default"].createElement(EchoBarComponent.EchoBarComponent, {
|
|
103
|
+
isLandscape: isWeb ? isLandscapeWeb : isLandscapeDevice
|
|
106
104
|
}));
|
|
107
105
|
};
|
|
108
106
|
|
|
109
107
|
var PdfViewerNative = function PdfViewerNative(_ref3) {
|
|
110
108
|
var children = _ref3.children;
|
|
111
|
-
|
|
109
|
+
|
|
110
|
+
var _hookLibrary$HookLibr3 = hookLibrary.HookLibrary.useDeviceOrientation(),
|
|
111
|
+
deviceOrientation = _hookLibrary$HookLibr3.deviceOrientation;
|
|
112
|
+
|
|
112
113
|
var isLandscapeDevice = deviceOrientation.landscape;
|
|
113
114
|
var screenOrientation = useScreenOrientation.useScreenOrientation();
|
|
114
115
|
var isWeb = !deviceOrientation.landscape && !deviceOrientation.portrait;
|
|
115
116
|
var isLandscapeWeb = screenOrientation === 'landscape';
|
|
116
117
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
117
118
|
className: layout_module["default"].echoContentContainer
|
|
118
|
-
},
|
|
119
|
-
isLandscape: isLandscapeWeb
|
|
120
|
-
}) : deviceOrientation.landscape && /*#__PURE__*/React__default["default"].createElement(EchoBarComponent.EchoBarComponent, {
|
|
121
|
-
isLandscape: isLandscapeDevice
|
|
119
|
+
}, (isWeb && screenOrientation === 'landscape' || !isWeb && deviceOrientation.landscape) && /*#__PURE__*/React__default["default"].createElement(EchoBarComponent.EchoBarComponent, {
|
|
120
|
+
isLandscape: isWeb ? isLandscapeWeb : isLandscapeDevice
|
|
122
121
|
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
123
122
|
className: layout_module["default"].pdfViewerNative
|
|
124
|
-
}, children), ' ', isWeb
|
|
125
|
-
isLandscape: isLandscapeWeb
|
|
126
|
-
}) : deviceOrientation.portrait && /*#__PURE__*/React__default["default"].createElement(EchoBarComponent.EchoBarComponent, {
|
|
127
|
-
isLandscape: isLandscapeDevice
|
|
123
|
+
}, children), ' ', (isWeb && screenOrientation === 'portrait' || !isWeb && deviceOrientation.portrait) && /*#__PURE__*/React__default["default"].createElement(EchoBarComponent.EchoBarComponent, {
|
|
124
|
+
isLandscape: isWeb ? isLandscapeWeb : isLandscapeDevice
|
|
128
125
|
}));
|
|
129
126
|
};
|
|
130
127
|
|
|
131
128
|
var CameraLayout = function CameraLayout(_ref4) {
|
|
132
129
|
var children = _ref4.children;
|
|
133
|
-
|
|
130
|
+
|
|
131
|
+
var _hookLibrary$HookLibr4 = hookLibrary.HookLibrary.useDeviceOrientation(),
|
|
132
|
+
deviceOrientation = _hookLibrary$HookLibr4.deviceOrientation;
|
|
133
|
+
|
|
134
134
|
var isLandscapeDevice = deviceOrientation.landscape;
|
|
135
135
|
var screenOrientation = useScreenOrientation.useScreenOrientation();
|
|
136
136
|
var isWeb = !deviceOrientation.landscape && !deviceOrientation.portrait;
|
|
137
137
|
var isLandscapeWeb = screenOrientation === 'landscape';
|
|
138
138
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
139
139
|
className: layout_module["default"].echoContentContainer
|
|
140
|
-
}, isWeb
|
|
141
|
-
isLandscape: isLandscapeWeb
|
|
142
|
-
}) : deviceOrientation.landscape && /*#__PURE__*/React__default["default"].createElement(EchoBarComponent.EchoBarComponent, {
|
|
143
|
-
isLandscape: isLandscapeDevice
|
|
140
|
+
}, (isWeb && screenOrientation === 'landscape' || !isWeb && deviceOrientation.landscape) && /*#__PURE__*/React__default["default"].createElement(EchoBarComponent.EchoBarComponent, {
|
|
141
|
+
isLandscape: isWeb ? isLandscapeWeb : isLandscapeDevice
|
|
144
142
|
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
145
143
|
className: layout_module["default"].cameraLayout
|
|
146
|
-
}, children),
|
|
147
|
-
isLandscape: isLandscapeWeb
|
|
148
|
-
})
|
|
149
|
-
isLandscape: isLandscapeDevice
|
|
150
|
-
}), ' ');
|
|
144
|
+
}, children), (isWeb && screenOrientation === 'portrait' || !isWeb && deviceOrientation.portrait) && /*#__PURE__*/React__default["default"].createElement(EchoBarComponent.EchoBarComponent, {
|
|
145
|
+
isLandscape: isWeb ? isLandscapeWeb : isLandscapeDevice
|
|
146
|
+
}));
|
|
151
147
|
};
|
|
152
148
|
|
|
153
149
|
var DefaultLayout = function DefaultLayout(_ref5) {
|
|
154
150
|
var children = _ref5.children;
|
|
155
|
-
|
|
151
|
+
|
|
152
|
+
var _hookLibrary$HookLibr5 = hookLibrary.HookLibrary.useDeviceOrientation(),
|
|
153
|
+
deviceOrientation = _hookLibrary$HookLibr5.deviceOrientation;
|
|
154
|
+
|
|
156
155
|
var isLandscapeDevice = deviceOrientation.landscape;
|
|
157
156
|
var screenOrientation = useScreenOrientation.useScreenOrientation();
|
|
158
157
|
var isWeb = !deviceOrientation.landscape && !deviceOrientation.portrait;
|
|
159
158
|
var isLandscapeWeb = screenOrientation === 'landscape';
|
|
160
159
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
161
160
|
className: layout_module["default"].echoContentContainer
|
|
162
|
-
}, isWeb
|
|
163
|
-
isLandscape: isLandscapeWeb
|
|
164
|
-
}) : deviceOrientation.landscape && /*#__PURE__*/React__default["default"].createElement(EchoBarComponent.EchoBarComponent, {
|
|
165
|
-
isLandscape: isLandscapeDevice
|
|
161
|
+
}, (isWeb && screenOrientation === 'landscape' || !isWeb && deviceOrientation.landscape) && /*#__PURE__*/React__default["default"].createElement(EchoBarComponent.EchoBarComponent, {
|
|
162
|
+
isLandscape: isWeb ? isLandscapeWeb : isLandscapeDevice
|
|
166
163
|
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
167
164
|
className: layout_module["default"].defaultLayout
|
|
168
|
-
}, children), isWeb
|
|
169
|
-
isLandscape: isLandscapeWeb
|
|
170
|
-
}) : deviceOrientation.portrait && /*#__PURE__*/React__default["default"].createElement(EchoBarComponent.EchoBarComponent, {
|
|
171
|
-
isLandscape: isLandscapeDevice
|
|
165
|
+
}, children), (isWeb && screenOrientation === 'portrait' || !isWeb && deviceOrientation.portrait) && /*#__PURE__*/React__default["default"].createElement(EchoBarComponent.EchoBarComponent, {
|
|
166
|
+
isLandscape: isWeb ? isLandscapeWeb : isLandscapeDevice
|
|
172
167
|
}));
|
|
173
168
|
};
|
|
174
169
|
|