@configuratorware/configurator-frontendgui 1.29.3 → 1.29.4
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.
|
@@ -149,6 +149,9 @@ var styles = function styles(theme) {
|
|
|
149
149
|
},
|
|
150
150
|
dialogContentRootWithZoom: {
|
|
151
151
|
overflow: 'hidden'
|
|
152
|
+
},
|
|
153
|
+
detailDialogContentRoot: {
|
|
154
|
+
overflowY: 'auto'
|
|
152
155
|
}
|
|
153
156
|
};
|
|
154
157
|
};
|
|
@@ -359,8 +362,7 @@ var Optiondetail = /*#__PURE__*/function (_React$Component) {
|
|
|
359
362
|
onClose = _this$props5.onClose,
|
|
360
363
|
details = _this$props5.details,
|
|
361
364
|
classes = _this$props5.classes,
|
|
362
|
-
width = _this$props5.width
|
|
363
|
-
isTabletDevice = _this$props5.isTabletDevice;
|
|
365
|
+
width = _this$props5.width;
|
|
364
366
|
var _this$state = this.state,
|
|
365
367
|
loading = _this$state.loading,
|
|
366
368
|
loadingContainerHeight = _this$state.loadingContainerHeight;
|
|
@@ -385,7 +387,7 @@ var Optiondetail = /*#__PURE__*/function (_React$Component) {
|
|
|
385
387
|
className: classes.detailsTypography
|
|
386
388
|
}, details.description));
|
|
387
389
|
|
|
388
|
-
var showFullScreenModal = ['xs', 'sm'].includes(width)
|
|
390
|
+
var showFullScreenModal = ['xs', 'sm'].includes(width);
|
|
389
391
|
var maxZoomedWidth = this.getMaxZoomedWidth(width);
|
|
390
392
|
var isLandscapeFormat = false;
|
|
391
393
|
|
|
@@ -415,8 +417,10 @@ var Optiondetail = /*#__PURE__*/function (_React$Component) {
|
|
|
415
417
|
fullScreen: showFullScreenModal
|
|
416
418
|
}, /*#__PURE__*/_react["default"].createElement(_DialogContent["default"], {
|
|
417
419
|
classes: this.state.hasZoom ? {
|
|
418
|
-
root: classes.dialogContentRootWithZoom
|
|
419
|
-
} :
|
|
420
|
+
root: (0, _clsx2["default"])(classes.detailDialogContentRoot, classes.dialogContentRootWithZoom)
|
|
421
|
+
} : {
|
|
422
|
+
root: classes.detailDialogContentRoot
|
|
423
|
+
}
|
|
420
424
|
}, loading ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
421
425
|
style: {
|
|
422
426
|
height: loadingContainerHeight,
|
|
@@ -479,7 +483,6 @@ _defineProperty(Optiondetail, "propTypes", {
|
|
|
479
483
|
onClose: _propTypes["default"].func,
|
|
480
484
|
LoadingComponent: _propTypes["default"].elementType,
|
|
481
485
|
width: _propTypes["default"].string,
|
|
482
|
-
isTabletDevice: _propTypes["default"].bool,
|
|
483
486
|
isLoading: _propTypes["default"].bool
|
|
484
487
|
});
|
|
485
488
|
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@configuratorware/configurator-frontendgui",
|
|
3
|
-
"version": "1.29.
|
|
3
|
+
"version": "1.29.4",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"private": false,
|
|
6
6
|
"main": "./index.js",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@babel/polyfill": "^7.12.1",
|
|
9
|
-
"@configuratorware/scripts": "1.29.
|
|
9
|
+
"@configuratorware/scripts": "1.29.4",
|
|
10
10
|
"@hot-loader/react-dom": "^17.0.1",
|
|
11
11
|
"@material-ui/core": "^4.12.2",
|
|
12
12
|
"@material-ui/icons": "^4.11.2",
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"react-router-dom": "^5.2.0",
|
|
40
40
|
"react-swipeable": "^5.5.1",
|
|
41
41
|
"react-zoom-pan-pinch": "^2.1.3",
|
|
42
|
-
"redhotmagma-graphics-editor": "1.29.
|
|
43
|
-
"redhotmagma-visualization": "1.29.
|
|
42
|
+
"redhotmagma-graphics-editor": "1.29.4",
|
|
43
|
+
"redhotmagma-visualization": "1.29.4",
|
|
44
44
|
"redux": "^4.1.0",
|
|
45
45
|
"redux-logger": "^3.0.6",
|
|
46
46
|
"redux-persist": "^5.10.0",
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
exports[`Screens/Components/ImageEditDialog/MessageBox renders as a modal screen on larger screens 1`] = `
|
|
4
4
|
<div>
|
|
5
5
|
<div
|
|
6
|
-
class="MuiDialogContent-root"
|
|
6
|
+
class="MuiDialogContent-root Optiondetail-detailDialogContentRoot-14"
|
|
7
7
|
>
|
|
8
8
|
<div>
|
|
9
9
|
<div
|
|
@@ -60,7 +60,7 @@ exports[`Screens/Components/ImageEditDialog/MessageBox renders as a modal screen
|
|
|
60
60
|
exports[`Screens/Components/ImageEditDialog/MessageBox renders as full screen on smaller screens 1`] = `
|
|
61
61
|
<div>
|
|
62
62
|
<div
|
|
63
|
-
class="MuiDialogContent-root"
|
|
63
|
+
class="MuiDialogContent-root Optiondetail-detailDialogContentRoot-14"
|
|
64
64
|
>
|
|
65
65
|
<div>
|
|
66
66
|
<div
|
|
@@ -117,7 +117,7 @@ exports[`Screens/Components/ImageEditDialog/MessageBox renders as full screen on
|
|
|
117
117
|
exports[`Screens/Components/ImageEditDialog/MessageBox renders with previous and next navigation buttons 1`] = `
|
|
118
118
|
<div>
|
|
119
119
|
<div
|
|
120
|
-
class="MuiDialogContent-root"
|
|
120
|
+
class="MuiDialogContent-root Optiondetail-detailDialogContentRoot-14"
|
|
121
121
|
>
|
|
122
122
|
<div>
|
|
123
123
|
<div
|
|
@@ -96,6 +96,9 @@ const styles = theme => ({
|
|
|
96
96
|
dialogContentRootWithZoom: {
|
|
97
97
|
overflow: 'hidden',
|
|
98
98
|
},
|
|
99
|
+
detailDialogContentRoot: {
|
|
100
|
+
overflowY: 'auto',
|
|
101
|
+
},
|
|
99
102
|
});
|
|
100
103
|
|
|
101
104
|
class Optiondetail extends React.Component {
|
|
@@ -112,7 +115,6 @@ class Optiondetail extends React.Component {
|
|
|
112
115
|
onClose: PropTypes.func,
|
|
113
116
|
LoadingComponent: PropTypes.elementType,
|
|
114
117
|
width: PropTypes.string,
|
|
115
|
-
isTabletDevice: PropTypes.bool,
|
|
116
118
|
isLoading: PropTypes.bool,
|
|
117
119
|
};
|
|
118
120
|
|
|
@@ -261,16 +263,7 @@ class Optiondetail extends React.Component {
|
|
|
261
263
|
};
|
|
262
264
|
|
|
263
265
|
render() {
|
|
264
|
-
const {
|
|
265
|
-
LoadingComponent,
|
|
266
|
-
options,
|
|
267
|
-
show,
|
|
268
|
-
onClose,
|
|
269
|
-
details,
|
|
270
|
-
classes,
|
|
271
|
-
width,
|
|
272
|
-
isTabletDevice,
|
|
273
|
-
} = this.props;
|
|
266
|
+
const { LoadingComponent, options, show, onClose, details, classes, width } = this.props;
|
|
274
267
|
const { loading, loadingContainerHeight } = this.state;
|
|
275
268
|
const showNav = _.isArray(options) && options.length > 1;
|
|
276
269
|
const detailImage = details.detailImage;
|
|
@@ -307,7 +300,7 @@ class Optiondetail extends React.Component {
|
|
|
307
300
|
</div>
|
|
308
301
|
);
|
|
309
302
|
|
|
310
|
-
const showFullScreenModal = ['xs', 'sm'].includes(width)
|
|
303
|
+
const showFullScreenModal = ['xs', 'sm'].includes(width);
|
|
311
304
|
let maxZoomedWidth = this.getMaxZoomedWidth(width);
|
|
312
305
|
let isLandscapeFormat = false;
|
|
313
306
|
if (
|
|
@@ -341,7 +334,16 @@ class Optiondetail extends React.Component {
|
|
|
341
334
|
fullScreen={showFullScreenModal}
|
|
342
335
|
>
|
|
343
336
|
<DialogContent
|
|
344
|
-
classes={
|
|
337
|
+
classes={
|
|
338
|
+
this.state.hasZoom
|
|
339
|
+
? {
|
|
340
|
+
root: clsx(
|
|
341
|
+
classes.detailDialogContentRoot,
|
|
342
|
+
classes.dialogContentRootWithZoom
|
|
343
|
+
),
|
|
344
|
+
}
|
|
345
|
+
: { root: classes.detailDialogContentRoot }
|
|
346
|
+
}
|
|
345
347
|
>
|
|
346
348
|
{loading ? (
|
|
347
349
|
<div style={{ height: loadingContainerHeight, boxSizing: 'border-box' }}>
|