thm-p3-configurator 0.0.72 → 0.0.74
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.
|
@@ -117,11 +117,14 @@ const ProductCategories = _ref5 => {
|
|
|
117
117
|
let {
|
|
118
118
|
productType = null,
|
|
119
119
|
productGroup = null,
|
|
120
|
-
productSubgroup = null
|
|
120
|
+
productSubgroup = null,
|
|
121
|
+
articleNumber = null
|
|
121
122
|
} = _ref5;
|
|
122
123
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
123
124
|
className: (0, _helpers__.withStyle)('mb-3')
|
|
124
|
-
},
|
|
125
|
+
}, articleNumber && /*#__PURE__*/_react.default.createElement("p", {
|
|
126
|
+
className: (0, _helpers__.withStyle)('fst-italic mb-0')
|
|
127
|
+
}, /*#__PURE__*/_react.default.createElement("strong", null, "Artikelnummer:"), " ", articleNumber), productType && /*#__PURE__*/_react.default.createElement("p", {
|
|
125
128
|
className: (0, _helpers__.withStyle)('fst-italic mb-0')
|
|
126
129
|
}, /*#__PURE__*/_react.default.createElement("strong", null, "Type:"), " ", productType), productGroup && /*#__PURE__*/_react.default.createElement("p", {
|
|
127
130
|
className: (0, _helpers__.withStyle)('fst-italic mb-0')
|
|
@@ -139,6 +142,7 @@ const SingleOrderProductCard = _ref6 => {
|
|
|
139
142
|
productType,
|
|
140
143
|
productGroup,
|
|
141
144
|
productSubgroup,
|
|
145
|
+
articleNumber,
|
|
142
146
|
productTitle,
|
|
143
147
|
productDescription,
|
|
144
148
|
productPrice,
|
|
@@ -162,10 +166,11 @@ const SingleOrderProductCard = _ref6 => {
|
|
|
162
166
|
className: (0, _helpers__.withStyle)('card-title mb-3')
|
|
163
167
|
}, productTitle, /*#__PURE__*/_react.default.createElement("span", {
|
|
164
168
|
className: (0, _helpers__.withStyle)('ms-2')
|
|
165
|
-
}, "\u20AC", productPrice)), (productType || productGroup || productSubgroup) && /*#__PURE__*/_react.default.createElement(ProductCategories, {
|
|
169
|
+
}, "\u20AC", productPrice)), (productType || productGroup || productSubgroup || articleNumber) && /*#__PURE__*/_react.default.createElement(ProductCategories, {
|
|
166
170
|
productType: productType,
|
|
167
171
|
productGroup: productGroup,
|
|
168
|
-
productSubgroup: productSubgroup
|
|
172
|
+
productSubgroup: productSubgroup,
|
|
173
|
+
articleNumber: articleNumber
|
|
169
174
|
}), /*#__PURE__*/_react.default.createElement(ProductDescription, {
|
|
170
175
|
description: productDescription
|
|
171
176
|
}), /*#__PURE__*/_react.default.createElement(ProductSpecifications, {
|
|
@@ -124,7 +124,7 @@ const InternalSingleOrderProductOverview = _ref => {
|
|
|
124
124
|
message: "Geen producten gevonden.",
|
|
125
125
|
subMessage: "Probeer een ander filter toe te passen."
|
|
126
126
|
}), articles && hasActiveFilters && (articles === null || articles === void 0 || (_articles$articles2 = articles.articles) === null || _articles$articles2 === void 0 ? void 0 : _articles$articles2.length) > 0 && (articles === null || articles === void 0 || (_articles$articles3 = articles.articles) === null || _articles$articles3 === void 0 ? void 0 : _articles$articles3.map(article => {
|
|
127
|
-
var _cart$find$quantity, _cart$find, _article$locationPric, _article$
|
|
127
|
+
var _cart$find$quantity, _cart$find, _article$locationPric, _article$consumerPric;
|
|
128
128
|
return /*#__PURE__*/_react.default.createElement(_SingleOrderProductCard.default, {
|
|
129
129
|
key: article.articleNumber,
|
|
130
130
|
removeFromCart: () => _removeFromCart(article.articleNumber),
|
|
@@ -133,12 +133,13 @@ const InternalSingleOrderProductOverview = _ref => {
|
|
|
133
133
|
isSelected: false,
|
|
134
134
|
isOutOfStock: (article === null || article === void 0 || (_article$locationPric = article.locationPrices) === null || _article$locationPric === void 0 || (_article$locationPric = _article$locationPric.stock) === null || _article$locationPric === void 0 ? void 0 : _article$locationPric.status) == _constants__.StockStatus.OutOfStock,
|
|
135
135
|
handleSelected: () => handleQuantityChange(article.articleNumber, 1),
|
|
136
|
+
articleNumber: article.articleNumber,
|
|
136
137
|
handleQuantityChange: handleQuantityChange,
|
|
137
138
|
productSpecifications: article === null || article === void 0 ? void 0 : article.specifications,
|
|
138
139
|
productDescription: article === null || article === void 0 ? void 0 : article.description,
|
|
139
140
|
productImage: article.image,
|
|
140
141
|
productTitle: article.name,
|
|
141
|
-
productPrice: Number(article === null || article === void 0 || (_article$
|
|
142
|
+
productPrice: Number(article === null || article === void 0 || (_article$consumerPric = article.consumerPrices) === null || _article$consumerPric === void 0 ? void 0 : _article$consumerPric.priceInclVat).toFixed(2),
|
|
142
143
|
productType: article === null || article === void 0 ? void 0 : article.type,
|
|
143
144
|
productGroup: article === null || article === void 0 ? void 0 : article.group,
|
|
144
145
|
productSubgroup: article === null || article === void 0 ? void 0 : article.subgroup
|