@crystaldesign/diva-seller 26.12.0-beta.7 → 26.12.0-beta.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.
@@ -5307,7 +5307,7 @@ function SetTable(_ref) {
5307
5307
  var _ol$VKPrice;
5308
5308
  return !ol.HasPartlistArticle || !ol.IsPartlistArticle && !ol.RelatedToBasketID || !!((_ol$VKPrice = ol.VKPrice) !== null && _ol$VKPrice !== void 0 && _ol$VKPrice.Price);
5309
5309
  }).map(function (orderline) {
5310
- var _configurationData$Ch2, _orderline$TypeNr, _orderline$ConfigPric, _orderline$ConfigPric2, _orderline$VariantBas2, _orderline$ConfigPric4, _orderline$VKPrice, _orderline$VKPrice2, _orderline$VKPrice3;
5310
+ var _orderline$MaskName, _configurationData$Ch2, _orderline$TypeNr, _orderline$ConfigPric, _orderline$ConfigPric2, _orderline$VariantBas2, _orderline$ConfigPric4, _orderline$VKPrice, _orderline$VKPrice2, _orderline$VKPrice3;
5311
5311
  return /*#__PURE__*/jsxs(TableRow, {
5312
5312
  children: [/*#__PURE__*/jsx(TableCell, {
5313
5313
  style: {
@@ -5347,7 +5347,7 @@ function SetTable(_ref) {
5347
5347
  },
5348
5348
  variant: "subtitle1",
5349
5349
  dangerouslySetInnerHTML: {
5350
- __html: DivaUtils$1.tryDecodeURIComponent(orderline.Name)
5350
+ __html: DivaUtils$1.tryDecodeURIComponent((_orderline$MaskName = orderline.MaskName) !== null && _orderline$MaskName !== void 0 ? _orderline$MaskName : orderline.Name)
5351
5351
  }
5352
5352
  }), (configurationData === null || configurationData === void 0 || (_configurationData$Ch2 = configurationData.Checkout) === null || _configurationData$Ch2 === void 0 ? void 0 : _configurationData$Ch2.showCopyArticleInfosButton) && /*#__PURE__*/jsx(Button$1, {
5353
5353
  color: articleCopied === orderline.BasketID ? 'primary' : undefined,
@@ -5475,10 +5475,18 @@ function SetTable(_ref) {
5475
5475
  })]
5476
5476
  }, addPrice.OPT + i);
5477
5477
  }), (_orderline$VariantBas2 = orderline.VariantBasketDatas) === null || _orderline$VariantBas2 === void 0 ? void 0 : _orderline$VariantBas2.map(function (variant, i, array) {
5478
- var _orderline$ConfigPric3;
5478
+ var _variant$MaskOPTName, _variant$MaskOPVName, _orderline$ConfigPric3;
5479
+ // the price overview shows what the customer saw in the configurator, i.e. the mask (enricher) texts
5480
+ var tabGroupOf = function tabGroupOf(v) {
5481
+ var _v$MaskTabGroup;
5482
+ return (_v$MaskTabGroup = v.MaskTabGroup) !== null && _v$MaskTabGroup !== void 0 ? _v$MaskTabGroup : v.TabGroup;
5483
+ };
5484
+ var tabGroup = tabGroupOf(variant);
5485
+ var optName = (_variant$MaskOPTName = variant.MaskOPTName) !== null && _variant$MaskOPTName !== void 0 ? _variant$MaskOPTName : variant.OPTName;
5486
+ var opvName = (_variant$MaskOPVName = variant.MaskOPVName) !== null && _variant$MaskOPVName !== void 0 ? _variant$MaskOPVName : variant.OPVName;
5479
5487
  var noTabGroupStyle = undefined;
5480
5488
  var addPercentagePrinted = false;
5481
- if (array[i + 1] && array[i + 1].TabGroup == variant.TabGroup) {
5489
+ if (array[i + 1] && tabGroupOf(array[i + 1]) == tabGroup) {
5482
5490
  noTabGroupStyle = {
5483
5491
  borderBottom: 'hidden'
5484
5492
  };
@@ -5487,12 +5495,12 @@ function SetTable(_ref) {
5487
5495
  return /*#__PURE__*/jsxs(TableRow, {
5488
5496
  style: noTabGroupStyle,
5489
5497
  children: [/*#__PURE__*/jsxs(TableCell, {
5490
- children: [variant.TabGroup && variant.TabGroup != variant.OPTName && (!array[i - 1] || array[i - 1].TabGroup != variant.TabGroup) && /*#__PURE__*/jsxs(Typography, {
5498
+ children: [tabGroup && tabGroup != optName && (!array[i - 1] || tabGroupOf(array[i - 1]) != tabGroup) && /*#__PURE__*/jsxs(Typography, {
5491
5499
  variant: "subtitle2",
5492
- children: [variant.TabGroup, " "]
5500
+ children: [tabGroup, " "]
5493
5501
  }), /*#__PURE__*/jsxs(Typography, {
5494
5502
  variant: "body2",
5495
- children: ["\xA0", variant.OPTName, " "]
5503
+ children: ["\xA0", optName, " "]
5496
5504
  })]
5497
5505
  }), /*#__PURE__*/jsx(TableCell, {
5498
5506
  children: /*#__PURE__*/jsx(Typography, {
@@ -5504,7 +5512,7 @@ function SetTable(_ref) {
5504
5512
  }), /*#__PURE__*/jsx(TableCell, {
5505
5513
  children: /*#__PURE__*/jsxs(Typography, {
5506
5514
  variant: "body2",
5507
- children: [variant.OPVName + (variant.MeasureValue ? ': ' + variant.MeasureValue + ' ' + variant.MeasureUnit : ''), ' ', variant.vOPV ? ' (' + variant.vOPV + ')' : '']
5515
+ children: [opvName + (variant.MeasureValue ? ': ' + variant.MeasureValue + ' ' + variant.MeasureUnit : ''), ' ', variant.vOPV ? ' (' + variant.vOPV + ')' : '']
5508
5516
  })
5509
5517
  }), doShowPrices && /*#__PURE__*/jsx(TableCell, {
5510
5518
  children: /*optionvalue price*/(_orderline$ConfigPric3 = orderline.ConfigPriceDatas) === null || _orderline$ConfigPric3 === void 0 || (_orderline$ConfigPric3 = _orderline$ConfigPric3.AdditionalPrices) === null || _orderline$ConfigPric3 === void 0 ? void 0 : _orderline$ConfigPric3.map(function (item) {
@@ -1 +1 @@
1
- {"version":3,"file":"SetTable.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/Basket/PriceOverView/Set/SetTable.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAWxC,OAAO,EAAE,YAAY,EAAa,MAAM,0BAA0B,CAAC;AAGnE,UAAU,KAAK;IACb,QAAQ,EAAE,YAAY,CAAC;IACvB,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,KAAK,qBA2P7D"}
1
+ {"version":3,"file":"SetTable.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/Basket/PriceOverView/Set/SetTable.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAWxC,OAAO,EAAE,YAAY,EAA8B,MAAM,0BAA0B,CAAC;AAGpF,UAAU,KAAK;IACb,QAAQ,EAAE,YAAY,CAAC;IACvB,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,KAAK,qBA8P7D"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crystaldesign/diva-seller",
3
- "version": "26.12.0-beta.7",
3
+ "version": "26.12.0-beta.9",
4
4
  "description": "Seller-facing UI section with its own state provider and services.",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -29,9 +29,9 @@
29
29
  "react-dom": "^18.3.1"
30
30
  },
31
31
  "dependencies": {
32
- "@crystaldesign/analytics": "26.12.0-beta.7",
33
- "@crystaldesign/products-component": "26.12.0-beta.7",
34
- "@crystaldesign/real-time-viewer": "26.12.0-beta.7",
32
+ "@crystaldesign/analytics": "26.12.0-beta.9",
33
+ "@crystaldesign/products-component": "26.12.0-beta.9",
34
+ "@crystaldesign/real-time-viewer": "26.12.0-beta.9",
35
35
  "@emotion/react": "^11.13.3",
36
36
  "@emotion/styled": "^11.13.0",
37
37
  "@mui/icons-material": "7.3.11",
@@ -42,5 +42,5 @@
42
42
  },
43
43
  "types": "./build/types/seller/src/index.d.ts",
44
44
  "module": "build/esm/index.js",
45
- "gitHead": "44f239b0a163eeb1fd9c7521dddef62259d46597"
45
+ "gitHead": "62f51ceee2ea71c54b990c666eb7ae864f13d374"
46
46
  }