@configuratorware/configurator-frontendgui 1.44.9 → 1.44.10
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.
|
@@ -729,6 +729,13 @@ var AmountPrice = /*#__PURE__*/function (_React$Component) {
|
|
|
729
729
|
optionclassifications: userConfiguration.optionclassifications
|
|
730
730
|
}))));
|
|
731
731
|
}
|
|
732
|
+
}, {
|
|
733
|
+
key: "renderDialogTitle",
|
|
734
|
+
value: function renderDialogTitle() {
|
|
735
|
+
return this.props.renderDialogTitle ? this.props.renderDialogTitle(this.props) : /*#__PURE__*/_react["default"].createElement(_Typography["default"], {
|
|
736
|
+
variant: "body1"
|
|
737
|
+
}, /*#__PURE__*/_react["default"].createElement("b", null, (0, _i18n.t)(this.props.showReceiveOfferForm ? 'receiveOfferForm.sendButton' : 'amountPrice.intoCart')));
|
|
738
|
+
}
|
|
732
739
|
}, {
|
|
733
740
|
key: "renderPriceOverview",
|
|
734
741
|
value: function renderPriceOverview() {
|
|
@@ -801,9 +808,7 @@ var AmountPrice = /*#__PURE__*/function (_React$Component) {
|
|
|
801
808
|
classes: {
|
|
802
809
|
root: classes.dialogTitleRoot
|
|
803
810
|
}
|
|
804
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
805
|
-
variant: "body1"
|
|
806
|
-
}, /*#__PURE__*/_react["default"].createElement("b", null, (0, _i18n.t)(showReceiveOfferForm ? 'receiveOfferForm.sendButton' : 'amountPrice.intoCart'))), /*#__PURE__*/_react["default"].createElement(_Icon["default"], {
|
|
811
|
+
}, this.renderDialogTitle(), /*#__PURE__*/_react["default"].createElement(_Icon["default"], {
|
|
807
812
|
className: classes.closeIcon,
|
|
808
813
|
onClick: this.handleClose.bind(this)
|
|
809
814
|
}, "close")), /*#__PURE__*/_react["default"].createElement(_RootRef["default"], {
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@configuratorware/configurator-frontendgui",
|
|
3
|
-
"version": "1.44.
|
|
3
|
+
"version": "1.44.10",
|
|
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.10",
|
|
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.10",
|
|
40
|
+
"redhotmagma-visualization": "1.44.10",
|
|
41
41
|
"redux": "^4.1.0",
|
|
42
42
|
"redux-logger": "^3.0.6",
|
|
43
43
|
"redux-persist": "^5.10.0",
|
|
@@ -307,6 +307,7 @@ class AmountPrice extends React.Component {
|
|
|
307
307
|
skipPriceOverview: PropTypes.bool,
|
|
308
308
|
toggleGlobalLoader: PropTypes.func.isRequired,
|
|
309
309
|
isCreator: PropTypes.bool,
|
|
310
|
+
renderDialogTitle: PropTypes.func,
|
|
310
311
|
};
|
|
311
312
|
|
|
312
313
|
static defaultProps = {
|
|
@@ -596,6 +597,22 @@ class AmountPrice extends React.Component {
|
|
|
596
597
|
);
|
|
597
598
|
}
|
|
598
599
|
|
|
600
|
+
renderDialogTitle() {
|
|
601
|
+
return this.props.renderDialogTitle ? (
|
|
602
|
+
this.props.renderDialogTitle(this.props)
|
|
603
|
+
) : (
|
|
604
|
+
<Typography variant="body1">
|
|
605
|
+
<b>
|
|
606
|
+
{t(
|
|
607
|
+
this.props.showReceiveOfferForm
|
|
608
|
+
? 'receiveOfferForm.sendButton'
|
|
609
|
+
: 'amountPrice.intoCart'
|
|
610
|
+
)}
|
|
611
|
+
</b>
|
|
612
|
+
</Typography>
|
|
613
|
+
);
|
|
614
|
+
}
|
|
615
|
+
|
|
599
616
|
renderPriceOverview() {
|
|
600
617
|
const {
|
|
601
618
|
notice,
|
|
@@ -665,11 +682,7 @@ class AmountPrice extends React.Component {
|
|
|
665
682
|
>
|
|
666
683
|
<LoadingOverlay show={this.props.addToCartPopUpLoader} />
|
|
667
684
|
<DialogTitle classes={{ root: classes.dialogTitleRoot }}>
|
|
668
|
-
|
|
669
|
-
<b>
|
|
670
|
-
{t(showReceiveOfferForm ? 'receiveOfferForm.sendButton' : 'amountPrice.intoCart')}
|
|
671
|
-
</b>
|
|
672
|
-
</Typography>
|
|
685
|
+
{this.renderDialogTitle()}
|
|
673
686
|
<Icon className={classes.closeIcon} onClick={this.handleClose.bind(this)}>
|
|
674
687
|
close
|
|
675
688
|
</Icon>
|