@configuratorware/configurator-frontendgui 1.44.7 → 1.44.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/App/Services/DesignDataService.js +1 -1
- package/App/Services/VisualizationService.js +3 -0
- package/App/Shared/Components/AmountPrice/index.js +3 -2
- package/package.json +4 -4
- package/src/App/Services/DesignDataService.js +1 -1
- package/src/App/Services/VisualizationService.js +3 -0
- package/src/App/Shared/Components/AmountPrice/index.js +2 -1
|
@@ -1098,7 +1098,7 @@ var DesignDataService = exports["default"] = /*#__PURE__*/function () {
|
|
|
1098
1098
|
key: "designAreaListChangeListener",
|
|
1099
1099
|
value: function designAreaListChangeListener(filteredDesignAreas, prevDesignAreas) {
|
|
1100
1100
|
// apply pre-selection only after loading the design areas
|
|
1101
|
-
if (filteredDesignAreas.length && !prevDesignAreas.length) {
|
|
1101
|
+
if (filteredDesignAreas.length && !(prevDesignAreas !== null && prevDesignAreas !== void 0 && prevDesignAreas.length)) {
|
|
1102
1102
|
this.applyDesignAreaPreSelection(filteredDesignAreas);
|
|
1103
1103
|
}
|
|
1104
1104
|
_ServiceLocator.Services.visualization.updateDesignAreaList(filteredDesignAreas);
|
|
@@ -625,6 +625,9 @@ var VisualizationService = exports["default"] = /*#__PURE__*/function (_Abstract
|
|
|
625
625
|
value: function restrictUserMovement() {
|
|
626
626
|
var _this5 = this;
|
|
627
627
|
var component = this.getComponent();
|
|
628
|
+
if (!component) {
|
|
629
|
+
return;
|
|
630
|
+
}
|
|
628
631
|
var zoomHandler = function zoomHandler(_ref4) {
|
|
629
632
|
var direction = _ref4.data.direction;
|
|
630
633
|
if (direction === 'out') {
|
|
@@ -551,8 +551,9 @@ var AmountPrice = /*#__PURE__*/function (_React$Component) {
|
|
|
551
551
|
showCallToAction = _this$props4.showCallToAction,
|
|
552
552
|
showConfigurationModeSwitch = _this$props4.showConfigurationModeSwitch,
|
|
553
553
|
ConfigurationModeSwitchComponent = _this$props4.ConfigurationModeSwitchComponent,
|
|
554
|
-
isCreator = _this$props4.isCreator
|
|
555
|
-
|
|
554
|
+
isCreator = _this$props4.isCreator,
|
|
555
|
+
width = _this$props4.width;
|
|
556
|
+
var isMobile = (0, _isMobileDevice.isMobileDevice)() || width === 'xs';
|
|
556
557
|
var boxStyle = boxed ? classes.card : classes.cardUnboxed;
|
|
557
558
|
return /*#__PURE__*/_react["default"].createElement(_Card["default"], {
|
|
558
559
|
className: (0, _clsx["default"])(boxStyle, (0, _customClassName["default"])('cta-box'))
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@configuratorware/configurator-frontendgui",
|
|
3
|
-
"version": "1.44.
|
|
3
|
+
"version": "1.44.9",
|
|
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.44.
|
|
9
|
+
"@configuratorware/scripts": "1.44.9",
|
|
10
10
|
"@material-ui/core": "^4.12.4",
|
|
11
11
|
"@material-ui/icons": "^4.11.3",
|
|
12
12
|
"@material-ui/lab": "^4.0.0-alpha.61",
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"react-router-dom": "^5.3.4",
|
|
37
37
|
"react-swipeable": "^5.5.1",
|
|
38
38
|
"react-zoom-pan-pinch": "^2.1.3",
|
|
39
|
-
"redhotmagma-graphics-editor": "1.44.
|
|
40
|
-
"redhotmagma-visualization": "1.44.
|
|
39
|
+
"redhotmagma-graphics-editor": "1.44.9",
|
|
40
|
+
"redhotmagma-visualization": "1.44.9",
|
|
41
41
|
"redux": "^4.1.0",
|
|
42
42
|
"redux-logger": "^3.0.6",
|
|
43
43
|
"redux-persist": "^5.10.0",
|
|
@@ -809,7 +809,7 @@ export default class DesignDataService {
|
|
|
809
809
|
|
|
810
810
|
designAreaListChangeListener(filteredDesignAreas, prevDesignAreas) {
|
|
811
811
|
// apply pre-selection only after loading the design areas
|
|
812
|
-
if (filteredDesignAreas.length && !prevDesignAreas
|
|
812
|
+
if (filteredDesignAreas.length && !prevDesignAreas?.length) {
|
|
813
813
|
this.applyDesignAreaPreSelection(filteredDesignAreas);
|
|
814
814
|
}
|
|
815
815
|
|
|
@@ -442,6 +442,9 @@ export default class VisualizationService extends AbstractVisualizationService {
|
|
|
442
442
|
|
|
443
443
|
restrictUserMovement() {
|
|
444
444
|
const component = this.getComponent();
|
|
445
|
+
if (!component) {
|
|
446
|
+
return;
|
|
447
|
+
}
|
|
445
448
|
const zoomHandler = ({ data: { direction } }) => {
|
|
446
449
|
if (direction === 'out') {
|
|
447
450
|
this._removeRestrictedUserMovementZoomHandler &&
|
|
@@ -789,9 +789,10 @@ class AmountPrice extends React.Component {
|
|
|
789
789
|
showConfigurationModeSwitch,
|
|
790
790
|
ConfigurationModeSwitchComponent,
|
|
791
791
|
isCreator,
|
|
792
|
+
width,
|
|
792
793
|
} = this.props;
|
|
793
794
|
|
|
794
|
-
const isMobile = isMobileDevice();
|
|
795
|
+
const isMobile = isMobileDevice() || width === 'xs';
|
|
795
796
|
const boxStyle = boxed ? classes.card : classes.cardUnboxed;
|
|
796
797
|
return (
|
|
797
798
|
<Card className={clsx(boxStyle, customClassName('cta-box'))}>
|