@crystaldesign/diva-seller 25.5.0-beta.2 → 25.5.0-beta.4

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.
@@ -1128,9 +1128,12 @@ function _apiLoadEnricherArticles() {
1128
1128
  name: DivaUtils.getLocals(jsonArticle.shortText, language),
1129
1129
  longDescription: DivaUtils.getLocals(jsonArticle.fullText, language),
1130
1130
  articleType: jsonArticle.featureClassRefNo === undefined ? 'FLAT' : 'OPTIONTREE',
1131
- width: jsonArticle.depthBasicShapeNominalValue,
1132
- height: jsonArticle.heightBasicShapeNominalValue,
1133
- depth: jsonArticle.depthBasicShapeNominalValue,
1131
+ width: Math.floor(jsonArticle.widthBasicShapeNominalValue / 10),
1132
+ //idm gives values in mm
1133
+ height: Math.floor(jsonArticle.heightBasicShapeNominalValue / 10),
1134
+ //idm gives values in mm
1135
+ depth: Math.floor(jsonArticle.depthBasicShapeNominalValue / 10),
1136
+ //idm gives values in mm
1134
1137
  image: jsonArticle.image,
1135
1138
  templateCodex: jsonArticle.featureClassRefNo,
1136
1139
  price: 0,
@@ -7732,6 +7735,21 @@ function Basket(_ref) {
7732
7735
  };
7733
7736
  }();
7734
7737
  var errorOnSaving = function errorOnSaving(type, errorText) {
7738
+ var getErrorText = function getErrorText(type) {
7739
+ var errorMsg = t('modals.postsave_unsuccessful');
7740
+ switch (type) {
7741
+ case 'ERROR_NO_BASKET_SAVED':
7742
+ errorMsg = t('modals.saving_unsuccessful');
7743
+ break;
7744
+ case 'ERROR_NO_BASKET_SAVED_ENTITY_EXISTS':
7745
+ errorMsg = t('modals.saving_error_entity_exists');
7746
+ break;
7747
+ default:
7748
+ errorMsg = t('modals.postsave_unsuccessful');
7749
+ break;
7750
+ }
7751
+ return errorMsg.replace('%1', currentBasket.DivaNr + '-' + currentBasket.getDocumentVersion()) + (errorText ? ' ' + errorText : '');
7752
+ };
7735
7753
  LOG$4.errorTransaction('ON_SAVE_BASKET', 'SELLER_0003', 'Error Saving Basket', {
7736
7754
  divaNr: currentBasket.DivaNr,
7737
7755
  status: currentBasket.Status,
@@ -7742,7 +7760,7 @@ function Basket(_ref) {
7742
7760
  title: t('modals.error_saving'),
7743
7761
  reject: false,
7744
7762
  accept: true,
7745
- text: t(type == 'ERROR_NO_BASKET_SAVED' ? 'modals.saving_unsuccessful' : 'modals.postsave_unsuccessful').replace('%1', currentBasket.DivaNr + '-' + currentBasket.getDocumentVersion()) + (errorText ? ' ' + errorText : '') + ' --- ' + DivaUtils$1.formatDate(new Date(), true, undefined, true) + (DivaUtils$1.getCurrentTraceId() ? ' --- ' + t('modal.errorcode') + ': ' + DivaUtils$1.getCurrentTraceId() : '')
7763
+ text: getErrorText(type) + '<br><br>' + DivaUtils$1.formatDate(new Date(), true, undefined, true) + (DivaUtils$1.getCurrentTraceId() ? ' --- ' + t('modal.errorcode') + ': ' + DivaUtils$1.getCurrentTraceId() : '')
7746
7764
  });
7747
7765
  };
7748
7766
  var openInfo = function openInfo() {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Basket/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAA2B,MAAM,OAAO,CAAC;AAOhD,OAAO,EAA0C,UAAU,EAAa,MAAM,0BAA0B,CAAC;AAQzG,UAAU,KAAK;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,IAAI,CAAC;IACf,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,MAAM,IAAI,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,CAAC;AAEzD,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,EAAE,KAAK,qBAwZpE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Basket/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAA2B,MAAM,OAAO,CAAC;AAOhD,OAAO,EAA0C,UAAU,EAAa,MAAM,0BAA0B,CAAC;AAQzG,UAAU,KAAK;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,IAAI,CAAC;IACf,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,MAAM,IAAI,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,CAAC;AAEzD,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,EAAE,KAAK,qBAqapE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crystaldesign/diva-seller",
3
- "version": "25.5.0-beta.2",
3
+ "version": "25.5.0-beta.4",
4
4
  "description": "",
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": "25.5.0-beta.2",
33
- "@crystaldesign/products-component": "25.5.0-beta.2",
34
- "@crystaldesign/real-time-viewer": "25.5.0-beta.2",
32
+ "@crystaldesign/analytics": "25.5.0-beta.4",
33
+ "@crystaldesign/products-component": "25.5.0-beta.4",
34
+ "@crystaldesign/real-time-viewer": "25.5.0-beta.4",
35
35
  "@emotion/react": "^11.4.1",
36
36
  "@emotion/styled": "^11.3.0",
37
37
  "@mui/icons-material": "^6.1.5",
@@ -43,5 +43,5 @@
43
43
  },
44
44
  "types": "./build/types/seller/src/index.d.ts",
45
45
  "module": "build/esm/index.js",
46
- "gitHead": "06df2926f45c8f3d5095080e65ef98f5e4acf883"
46
+ "gitHead": "c78c11a6c6f1e76406b9cf25d2e53f0005e04914"
47
47
  }