thm-p3-configurator 0.0.239 → 0.0.241

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.
@@ -12,6 +12,7 @@ require("core-js/modules/esnext.iterator.map.js");
12
12
  require("core-js/modules/web.dom-collections.iterator.js");
13
13
  var _react = _interopRequireWildcard(require("react"));
14
14
  var _queries = require("../../__api__/queries");
15
+ var _constants__ = require("../../__constants__");
15
16
  var _helpers__ = require("../../__helpers__");
16
17
  var _ProductCardCheckbox = _interopRequireDefault(require("./ProductCardCheckbox"));
17
18
  var _ProductCardDescription = _interopRequireDefault(require("./ProductCardDescription"));
@@ -21,7 +22,6 @@ var _ProductCardPrice = _interopRequireDefault(require("./ProductCardPrice"));
21
22
  var _ProductCardRibbon = _interopRequireDefault(require("./ProductCardRibbon"));
22
23
  var _ProductCardSpecifications = _interopRequireDefault(require("./ProductCardSpecifications"));
23
24
  var _ProductCardUsps = _interopRequireDefault(require("./ProductCardUsps"));
24
- var _constants__ = require("../../__constants__");
25
25
  function _interopRequireDefault(e) {
26
26
  return e && e.__esModule ? e : {
27
27
  default: e
@@ -137,7 +137,10 @@ const ProductCard = _ref => {
137
137
  }, /*#__PURE__*/_react.default.createElement(_ProductCardUsps.default, {
138
138
  usps: productUsps
139
139
  }), /*#__PURE__*/_react.default.createElement(_ProductCardSpecifications.default, {
140
- specifications: productSpecifications.map(_ref2 => {
140
+ specifications: [...(productId ? [{
141
+ key: 'Artikel',
142
+ value: productId
143
+ }] : []), ...productSpecifications.map(_ref2 => {
141
144
  let {
142
145
  key,
143
146
  value
@@ -146,7 +149,7 @@ const ProductCard = _ref => {
146
149
  key: (productFieldLabels === null || productFieldLabels === void 0 ? void 0 : productFieldLabels[key]) || key,
147
150
  value
148
151
  };
149
- }),
152
+ })],
150
153
  excludeKeys: ['brand', 'brandName']
151
154
  }), /*#__PURE__*/_react.default.createElement(_ProductCardDescription.default, {
152
155
  description: productDescription
@@ -123,8 +123,6 @@ const ProductActions = _ref2 => {
123
123
  };
124
124
  const ProductCategories = _ref3 => {
125
125
  let {
126
- productType = null,
127
- productGroup = null,
128
126
  productSubgroup = null,
129
127
  articleNumber = null,
130
128
  preferredPart = null,
@@ -137,15 +135,11 @@ const ProductCategories = _ref3 => {
137
135
  className: (0, _helpers__.withStyle)('col-md-6')
138
136
  }, articleNumber && /*#__PURE__*/_react.default.createElement("p", {
139
137
  className: (0, _helpers__.withStyle)('fst-italic mb-0')
140
- }, /*#__PURE__*/_react.default.createElement("strong", null, "Artikelnummer:"), " ", articleNumber, ' ', brandName ? "| ".concat(brandName) : ''), productType && /*#__PURE__*/_react.default.createElement("p", {
138
+ }, /*#__PURE__*/_react.default.createElement("strong", null, "Artikel:"), " ", articleNumber, ' ', brandName ? "| ".concat(brandName) : ''), productSubgroup && /*#__PURE__*/_react.default.createElement("p", {
141
139
  className: (0, _helpers__.withStyle)('fst-italic mb-0')
142
- }, /*#__PURE__*/_react.default.createElement("strong", null, "Type:"), " ", productType), productGroup && /*#__PURE__*/_react.default.createElement("p", {
140
+ }, /*#__PURE__*/_react.default.createElement("strong", null, "Groep:"), " ", productSubgroup), preferredPart && /*#__PURE__*/_react.default.createElement("p", {
143
141
  className: (0, _helpers__.withStyle)('fst-italic mb-0')
144
- }, /*#__PURE__*/_react.default.createElement("strong", null, "Groep:"), " ", productGroup), productSubgroup && /*#__PURE__*/_react.default.createElement("p", {
145
- className: (0, _helpers__.withStyle)('fst-italic mb-0')
146
- }, /*#__PURE__*/_react.default.createElement("strong", null, "Subgroep:"), " ", productSubgroup), preferredPart && /*#__PURE__*/_react.default.createElement("p", {
147
- className: (0, _helpers__.withStyle)('fst-italic mb-0')
148
- }, /*#__PURE__*/_react.default.createElement("strong", null, "Voorkeur onderdeel:"), " ", preferredPart.preferredPart), !isWebshop && showPartStockLevel && (partStockLevels === null || partStockLevels === void 0 ? void 0 : partStockLevels.status) && /*#__PURE__*/_react.default.createElement("p", {
142
+ }, /*#__PURE__*/_react.default.createElement("strong", null, "Voorkeur:"), " ", preferredPart.preferredPart), !isWebshop && showPartStockLevel && (partStockLevels === null || partStockLevels === void 0 ? void 0 : partStockLevels.status) && /*#__PURE__*/_react.default.createElement("p", {
149
143
  className: (0, _helpers__.withStyle)('fst-italic mb-0')
150
144
  }, /*#__PURE__*/_react.default.createElement("small", {
151
145
  className: (0, _helpers__.withStyle)(partStockLevels.status === _constants__.StockStatus.OutOfStock ? 'text-danger' : partStockLevels.status === _constants__.StockStatus.InsufficientStock ? 'text-warning' : 'text-success')
@@ -160,8 +154,6 @@ const SingleOrderProductCard = _ref4 => {
160
154
  formula,
161
155
  handleSelected,
162
156
  productImage,
163
- productType,
164
- productGroup,
165
157
  productSubgroup,
166
158
  articleNumber,
167
159
  productUsps,
@@ -241,10 +233,8 @@ const SingleOrderProductCard = _ref4 => {
241
233
  className: (0, _helpers__.withStyle)('ms-2')
242
234
  }, "\u20AC", productPrice)), /*#__PURE__*/_react.default.createElement("div", {
243
235
  className: (0, _helpers__.withStyle)(isModelArticle ? 'd-flex justify-content-between' : '')
244
- }, (productType || productGroup || productSubgroup || articleNumber || preferredPart) && /*#__PURE__*/_react.default.createElement(ProductCategories, {
236
+ }, (productSubgroup || articleNumber || preferredPart) && /*#__PURE__*/_react.default.createElement(ProductCategories, {
245
237
  brandName: brandName,
246
- productType: productType,
247
- productGroup: productGroup,
248
238
  productSubgroup: productSubgroup,
249
239
  articleNumber: articleNumber,
250
240
  preferredPart: preferredPart,
@@ -171,8 +171,11 @@ const MOUSE_EXIT_INTENT_THROTTLE = exports.MOUSE_EXIT_INTENT_THROTTLE = 50;
171
171
  const MOUSE_EXIT_INTENT_OFFSET = exports.MOUSE_EXIT_INTENT_OFFSET = 20;
172
172
  const ARTICLES_SYSTEM_FIELDS = exports.ARTICLES_SYSTEM_FIELDS = ['title', 'articleNumber', 'typeName', 'typeId', 'groupName', 'subgroupName', 'description', 'option', 'remark', 'incl', 'excl'];
173
173
  const ARTICLE_SPECS_TRANSLATIONS = exports.ARTICLE_SPECS_TRANSLATIONS = [{
174
- key: 'Draw weight',
175
- value: 'Trekgewicht'
174
+ key: 'subgroupGroupName',
175
+ value: 'Groep'
176
+ }, {
177
+ key: 'Weight',
178
+ value: 'Gewicht'
176
179
  }, {
177
180
  key: 'D Value',
178
181
  value: 'D-waarde'
@@ -178,8 +178,6 @@ const InternalSingleOrderProductOverview = _ref => {
178
178
  productTitle: article.name,
179
179
  productPrice: Number(article === null || article === void 0 || (_article$locationPric7 = article.locationPrices) === null || _article$locationPric7 === void 0 ? void 0 : _article$locationPric7.priceExclVat).toFixed(2),
180
180
  productPriceInclVat: Number(article === null || article === void 0 || (_article$locationPric8 = article.locationPrices) === null || _article$locationPric8 === void 0 ? void 0 : _article$locationPric8.priceInclVat).toFixed(2),
181
- productType: article === null || article === void 0 ? void 0 : article.type,
182
- productGroup: article === null || article === void 0 ? void 0 : article.group,
183
181
  productSubgroup: article === null || article === void 0 ? void 0 : article.subgroup,
184
182
  isWebshop: !!orderSession.webshop
185
183
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "thm-p3-configurator",
3
- "version": "0.0.239",
3
+ "version": "0.0.241",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "author": "EnoRm.",