@crystaldesign/web-planner-logic 26.5.0-beta.3 → 26.5.0-beta.30
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.
- package/build/cjs/{DivaBoxPlanner-d378bbb7.js → DivaBoxPlanner-67073efd.js} +7 -5
- package/build/cjs/{DivaStandardPlanner-4bab9fb6.js → DivaStandardPlanner-a71ec752.js} +2 -2
- package/build/cjs/{DoorPlanner-d492a9d9.js → DoorPlanner-da27ed90.js} +1 -1
- package/build/cjs/{Host3DSignalR-e8e59f7a.js → Host3DSignalR-3e0f4f45.js} +1 -1
- package/build/cjs/{LiviqueWWSHandler-9b3939c8.js → LiviqueWWSHandler-44d0ef86.js} +1 -1
- package/build/cjs/{PfisterWWSHandler-7eb044db.js → PfisterWWSHandler-30777f18.js} +1 -1
- package/build/cjs/{PlannerHandler2D-89255bdd.js → PlannerHandler2D-7efc5703.js} +1 -1
- package/build/cjs/{SeriousBasketHandler-bbe6859a.js → SeriousBasketHandler-7d4a436d.js} +1 -1
- package/build/cjs/{ShelfPlanner-2a0fb19d.js → ShelfPlanner-61aa85f8.js} +1 -1
- package/build/cjs/{StandardWWSHandler-3391c7ed.js → StandardWWSHandler-84695649.js} +1 -1
- package/build/cjs/{index-a8cd3c1d.js → index-dcf2a286.js} +85 -60
- package/build/cjs/index.js +1 -1
- package/build/esm/{DivaBoxPlanner-21211eeb.js → DivaBoxPlanner-6fc96d84.js} +7 -5
- package/build/esm/{DivaStandardPlanner-95dd670c.js → DivaStandardPlanner-9c915ccf.js} +2 -2
- package/build/esm/{DoorPlanner-56b674bf.js → DoorPlanner-0a046787.js} +1 -1
- package/build/esm/{Host3DSignalR-0c56c943.js → Host3DSignalR-46f2fa34.js} +1 -1
- package/build/esm/{LiviqueWWSHandler-0f7a4bcb.js → LiviqueWWSHandler-79164be4.js} +1 -1
- package/build/esm/{PfisterWWSHandler-7a25803c.js → PfisterWWSHandler-1889ad8e.js} +1 -1
- package/build/esm/{PlannerHandler2D-2df72989.js → PlannerHandler2D-62b12828.js} +1 -1
- package/build/esm/{SeriousBasketHandler-6c14c04e.js → SeriousBasketHandler-11e779d3.js} +1 -1
- package/build/esm/{ShelfPlanner-9c7ffe88.js → ShelfPlanner-0b5c0c0a.js} +1 -1
- package/build/esm/{StandardWWSHandler-3a3026aa.js → StandardWWSHandler-12132508.js} +1 -1
- package/build/esm/{index-79dd365f.js → index-c75c976d.js} +85 -60
- package/build/esm/index.js +1 -1
- package/build/types/web-planner-logic/src/index.d.ts +1 -1
- package/build/types/web-planner-logic/src/index.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/API/Checkout.d.ts +27 -1
- package/build/types/web-planner-logic/src/interface/API/Checkout.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/API/ViewConfigDataType.d.ts +2 -0
- package/build/types/web-planner-logic/src/interface/API/ViewConfigDataType.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/OptionTypes/CatalogOptionDataTypes.d.ts +1 -0
- package/build/types/web-planner-logic/src/interface/OptionTypes/CatalogOptionDataTypes.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/ConfigTree/DivaConfigTreeHandler.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/DivaApiHandler.d.ts +9 -8
- package/build/types/web-planner-logic/src/logic/DivaApiHandler.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Planner/BoxPlanner/BoxPlannerGrid.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/Articles/Article/IDMCatalogArticle.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/Catalog/DivaCatalogData.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/Options/CatalogOptionValueData.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -5,11 +5,11 @@ var _classCallCheck = require('@babel/runtime/helpers/classCallCheck');
|
|
|
5
5
|
var _createClass = require('@babel/runtime/helpers/createClass');
|
|
6
6
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
7
7
|
var _regeneratorRuntime = require('@babel/runtime/regenerator');
|
|
8
|
-
var index = require('./index-
|
|
8
|
+
var index = require('./index-dcf2a286.js');
|
|
9
9
|
var DivaUtils = require('@crystaldesign/diva-utils');
|
|
10
10
|
var _toConsumableArray = require('@babel/runtime/helpers/toConsumableArray');
|
|
11
11
|
var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
|
|
12
|
-
var PlannerHandler2D = require('./PlannerHandler2D-
|
|
12
|
+
var PlannerHandler2D = require('./PlannerHandler2D-7efc5703.js');
|
|
13
13
|
require('@babel/runtime/helpers/objectWithoutProperties');
|
|
14
14
|
require('axios');
|
|
15
15
|
require('@crystaldesign/basket-model');
|
|
@@ -4789,6 +4789,7 @@ var BoxPlannerGrid = /*#__PURE__*/function () {
|
|
|
4789
4789
|
var grid = this.generalPlanningState.grids[0].matrix;
|
|
4790
4790
|
var backup = structuredClone(this.generalPlanningState);
|
|
4791
4791
|
var res = this.getCellsInGridByElementId(elementId);
|
|
4792
|
+
if (res.cells.length == 0) return true;
|
|
4792
4793
|
var cell = res.cells[0];
|
|
4793
4794
|
var scpe = this.gridSetupParams.forceSingleCellPerElement;
|
|
4794
4795
|
var origin = {
|
|
@@ -5124,10 +5125,11 @@ var BoxPlannerGrid = /*#__PURE__*/function () {
|
|
|
5124
5125
|
height = height < colHeight ? colHeight : height;
|
|
5125
5126
|
}
|
|
5126
5127
|
}
|
|
5127
|
-
var depth = maxZ - minZ;
|
|
5128
|
-
var width = maxX - minX;
|
|
5128
|
+
var depth = Math.abs(maxZ - minZ);
|
|
5129
|
+
var width = Math.abs(maxX - minX);
|
|
5129
5130
|
if (this.hasActiveBackside) {
|
|
5130
|
-
depth
|
|
5131
|
+
// Backside mirrors the front module, so total depth is doubled front bounding depth.
|
|
5132
|
+
depth *= 2;
|
|
5131
5133
|
}
|
|
5132
5134
|
return {
|
|
5133
5135
|
width: Math.round(width * 1000) / 1000,
|
|
@@ -5,9 +5,9 @@ var _classCallCheck = require('@babel/runtime/helpers/classCallCheck');
|
|
|
5
5
|
var _createClass = require('@babel/runtime/helpers/createClass');
|
|
6
6
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
7
7
|
var _regeneratorRuntime = require('@babel/runtime/regenerator');
|
|
8
|
-
var index = require('./index-
|
|
8
|
+
var index = require('./index-dcf2a286.js');
|
|
9
9
|
var DivaUtils = require('@crystaldesign/diva-utils');
|
|
10
|
-
var PlannerHandler2D = require('./PlannerHandler2D-
|
|
10
|
+
var PlannerHandler2D = require('./PlannerHandler2D-7efc5703.js');
|
|
11
11
|
require('@babel/runtime/helpers/slicedToArray');
|
|
12
12
|
require('@babel/runtime/helpers/objectWithoutProperties');
|
|
13
13
|
require('@babel/runtime/helpers/toConsumableArray');
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _classCallCheck = require('@babel/runtime/helpers/classCallCheck');
|
|
4
4
|
var _createClass = require('@babel/runtime/helpers/createClass');
|
|
5
5
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
6
|
-
require('./index-
|
|
6
|
+
require('./index-dcf2a286.js');
|
|
7
7
|
var DivaUtils = require('@crystaldesign/diva-utils');
|
|
8
8
|
require('@babel/runtime/helpers/slicedToArray');
|
|
9
9
|
require('@babel/runtime/helpers/asyncToGenerator');
|
|
@@ -5,7 +5,7 @@ var _classCallCheck = require('@babel/runtime/helpers/classCallCheck');
|
|
|
5
5
|
var _createClass = require('@babel/runtime/helpers/createClass');
|
|
6
6
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
7
7
|
var _regeneratorRuntime = require('@babel/runtime/regenerator');
|
|
8
|
-
var index = require('./index-
|
|
8
|
+
var index = require('./index-dcf2a286.js');
|
|
9
9
|
var DivaUtils = require('@crystaldesign/diva-utils');
|
|
10
10
|
var signalr = require('@microsoft/signalr');
|
|
11
11
|
var io = require('socket.io-client');
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var _classCallCheck = require('@babel/runtime/helpers/classCallCheck');
|
|
4
4
|
var _createClass = require('@babel/runtime/helpers/createClass');
|
|
5
|
-
require('./index-
|
|
5
|
+
require('./index-dcf2a286.js');
|
|
6
6
|
require('@babel/runtime/helpers/slicedToArray');
|
|
7
7
|
require('@babel/runtime/helpers/asyncToGenerator');
|
|
8
8
|
require('@babel/runtime/helpers/defineProperty');
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var _classCallCheck = require('@babel/runtime/helpers/classCallCheck');
|
|
4
4
|
var _createClass = require('@babel/runtime/helpers/createClass');
|
|
5
|
-
var index = require('./index-
|
|
5
|
+
var index = require('./index-dcf2a286.js');
|
|
6
6
|
var basketModel = require('@crystaldesign/basket-model');
|
|
7
7
|
var DivaUtils = require('@crystaldesign/diva-utils');
|
|
8
8
|
require('@babel/runtime/helpers/slicedToArray');
|
|
@@ -5,7 +5,7 @@ var _classCallCheck = require('@babel/runtime/helpers/classCallCheck');
|
|
|
5
5
|
var _createClass = require('@babel/runtime/helpers/createClass');
|
|
6
6
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
7
7
|
var _regeneratorRuntime = require('@babel/runtime/regenerator');
|
|
8
|
-
var index = require('./index-
|
|
8
|
+
var index = require('./index-dcf2a286.js');
|
|
9
9
|
var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
|
|
10
10
|
var _toConsumableArray = require('@babel/runtime/helpers/toConsumableArray');
|
|
11
11
|
var fabric = require('fabric');
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _classCallCheck = require('@babel/runtime/helpers/classCallCheck');
|
|
4
4
|
var _createClass = require('@babel/runtime/helpers/createClass');
|
|
5
5
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-dcf2a286.js');
|
|
7
7
|
var DivaUtils = require('@crystaldesign/diva-utils');
|
|
8
8
|
require('@babel/runtime/helpers/slicedToArray');
|
|
9
9
|
require('@babel/runtime/helpers/asyncToGenerator');
|
|
@@ -6,7 +6,7 @@ var _classCallCheck = require('@babel/runtime/helpers/classCallCheck');
|
|
|
6
6
|
var _createClass = require('@babel/runtime/helpers/createClass');
|
|
7
7
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
8
8
|
var _regeneratorRuntime = require('@babel/runtime/regenerator');
|
|
9
|
-
var index = require('./index-
|
|
9
|
+
var index = require('./index-dcf2a286.js');
|
|
10
10
|
var DivaUtils = require('@crystaldesign/diva-utils');
|
|
11
11
|
require('@babel/runtime/helpers/slicedToArray');
|
|
12
12
|
require('@babel/runtime/helpers/objectWithoutProperties');
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var _classCallCheck = require('@babel/runtime/helpers/classCallCheck');
|
|
4
4
|
var _createClass = require('@babel/runtime/helpers/createClass');
|
|
5
|
-
require('./index-
|
|
5
|
+
require('./index-dcf2a286.js');
|
|
6
6
|
require('@babel/runtime/helpers/slicedToArray');
|
|
7
7
|
require('@babel/runtime/helpers/asyncToGenerator');
|
|
8
8
|
require('@babel/runtime/helpers/defineProperty');
|
|
@@ -598,10 +598,11 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
598
598
|
value: function getPrintOptions() {
|
|
599
599
|
var _this$divaWebConfigDa11;
|
|
600
600
|
var reportConfig = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : (_this$divaWebConfigDa11 = this.divaWebConfigData) === null || _this$divaWebConfigDa11 === void 0 ? void 0 : _this$divaWebConfigDa11.reportConfig;
|
|
601
|
-
var
|
|
601
|
+
var has3D = arguments.length > 1 ? arguments[1] : undefined;
|
|
602
|
+
var arReady = arguments.length > 2 ? arguments[2] : undefined;
|
|
602
603
|
return {
|
|
603
604
|
Gdpr: !!(reportConfig !== null && reportConfig !== void 0 && reportConfig.printWithGDPR),
|
|
604
|
-
PlanningSketch: !!(reportConfig !== null && reportConfig !== void 0 && reportConfig.printWithPlanningSketch),
|
|
605
|
+
PlanningSketch: !!(reportConfig !== null && reportConfig !== void 0 && reportConfig.printWithPlanningSketch) && has3D,
|
|
605
606
|
Remark: !!(reportConfig !== null && reportConfig !== void 0 && reportConfig.printWithRemark),
|
|
606
607
|
Prices: !!(reportConfig !== null && reportConfig !== void 0 && reportConfig.printWithPrices),
|
|
607
608
|
AllPrices: !!(reportConfig !== null && reportConfig !== void 0 && reportConfig.printWithAllPrices),
|
|
@@ -1103,57 +1104,63 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
1103
1104
|
}
|
|
1104
1105
|
|
|
1105
1106
|
/******************IDM Service CALLs */
|
|
1107
|
+
}, {
|
|
1108
|
+
key: "isSeller",
|
|
1109
|
+
get: function get() {
|
|
1110
|
+
return !this.useEnricherService && !this.useIDMService;
|
|
1111
|
+
}
|
|
1106
1112
|
}, {
|
|
1107
1113
|
key: "idmPrefix",
|
|
1108
1114
|
get: function get() {
|
|
1109
1115
|
if (this.useEnricherService && !this.packageId) throw new Error('packageId as parameter not missing');
|
|
1110
|
-
return this.useEnricherService ? '/wysiwyg/' + this.packageId : this.useIDMService ? '' : '/live';
|
|
1116
|
+
return this.useEnricherService ? '/wysiwyg/' + this.packageId : this.useIDMService ? '' : '/live/' + this.organization._id;
|
|
1111
1117
|
}
|
|
1112
1118
|
}, {
|
|
1113
1119
|
key: "getIDMCatalog",
|
|
1114
1120
|
value: function getIDMCatalog(catalogId) {
|
|
1121
|
+
if (this.isSeller) return this.idmPrefix + '/packages' + (!this.useEnricherService ? '/' + catalogId + '/catalog' : '');
|
|
1115
1122
|
return this.idmPrefix + '/catalogs' + (!this.useEnricherService ? '/' + catalogId : '');
|
|
1116
1123
|
}
|
|
1117
1124
|
}, {
|
|
1118
1125
|
key: "getIDMSerieByNo",
|
|
1119
|
-
value: function getIDMSerieByNo(
|
|
1120
|
-
return this.idmPrefix + '/catalogs/' +
|
|
1126
|
+
value: function getIDMSerieByNo(packageId, serieId, serieNo) {
|
|
1127
|
+
return this.idmPrefix + (this.isSeller ? '/packages/' : '/catalogs/') + packageId + '/series/' + (this.useIDMService ? serieId : serieNo);
|
|
1121
1128
|
}
|
|
1122
1129
|
}, {
|
|
1123
1130
|
key: "getIDMItems",
|
|
1124
|
-
value: function getIDMItems(
|
|
1125
|
-
return this.idmPrefix + '/catalogs/' +
|
|
1131
|
+
value: function getIDMItems(packageId, serieId, serieNo, typeNos) {
|
|
1132
|
+
return this.idmPrefix + (this.isSeller ? '/packages/' : '/catalogs/') + packageId + '/series/' + (this.useIDMService ? serieId : serieNo) + '/items' + (typeNos !== null && typeNos !== void 0 && typeNos.length ? '?filter=' + typeNos.map(function (t) {
|
|
1126
1133
|
return encodeURIComponent('typeNo==' + t);
|
|
1127
1134
|
}).join(' || ') : '?fields=properties;serieNo;featureClassRefNo;priceTypeRef;itemIdentification;catalogPage;weightBrutto;weightNetto;volume;minimumDeliveryTime;widthBasicShapeNominalValue;widthBasicShapeFrom;widthBasicShapeTo;widthBasicShapeStepSize;heightBasicShapeNominalValue;heightBasicShapeFrom;heightBasicShapeTo;heightBasicShapeStepSize;depthBasicShapeNominalValue;depthBasicShapeFrom;depthBasicShapeTo;depthBasicShapeStepSize;typeKey;eClassNo;detailInfoRefs;detailInfos;partListExclusive;partListRef;decisionRefs;typeNo;sequenceNo;edpNumber;eanNumber;shortText;fullText;planningAdvice;salesNumber;avrFilter;avlFilter');
|
|
1128
1135
|
}
|
|
1129
1136
|
}, {
|
|
1130
1137
|
key: "getIDMFeatures",
|
|
1131
|
-
value: function getIDMFeatures(
|
|
1132
|
-
return this.idmPrefix + '/catalogs/' +
|
|
1138
|
+
value: function getIDMFeatures(packageId, features) {
|
|
1139
|
+
return this.idmPrefix + (this.isSeller ? '/packages/' : '/catalogs/') + packageId + '/features' + '?featureNos=' + features.join(';') + (this.smSupplierNr ? '&supplierNo=' + this.smSupplierNr : '');
|
|
1133
1140
|
}
|
|
1134
1141
|
}, {
|
|
1135
1142
|
key: "getIDMDecisions",
|
|
1136
|
-
value: function getIDMDecisions(
|
|
1137
|
-
return this.idmPrefix + '/catalogs/' +
|
|
1143
|
+
value: function getIDMDecisions(packageId, decisions) {
|
|
1144
|
+
return this.idmPrefix + (this.isSeller ? '/packages/' : '/catalogs/') + packageId + '/decisions' + '?decisionNos=' + decisions.join(';') + (this.smSupplierNr ? '&supplierNo=' + this.smSupplierNr : '');
|
|
1138
1145
|
}
|
|
1139
1146
|
}, {
|
|
1140
1147
|
key: "getIDMDetailInfos",
|
|
1141
|
-
value: function getIDMDetailInfos(
|
|
1142
|
-
return this.idmPrefix + '/catalogs/' +
|
|
1148
|
+
value: function getIDMDetailInfos(packageId, detailinfos) {
|
|
1149
|
+
return this.idmPrefix + (this.isSeller ? '/packages/' : '/catalogs/') + packageId + '/detailinfos' + '?filter=' + detailinfos.map(function (d) {
|
|
1143
1150
|
return encodeURIComponent('featureClassNo==' + d);
|
|
1144
1151
|
}).join(' || ');
|
|
1145
1152
|
}
|
|
1146
1153
|
}, {
|
|
1147
1154
|
key: "getIDMFeatureClass",
|
|
1148
|
-
value: function getIDMFeatureClass(
|
|
1149
|
-
return this.idmPrefix + '/catalogs/' +
|
|
1155
|
+
value: function getIDMFeatureClass(packageId, featureclasses) {
|
|
1156
|
+
return this.idmPrefix + (this.isSeller ? '/packages/' : '/catalogs/') + packageId + '/featureclasses' + '?filter=' + featureclasses.map(function (f) {
|
|
1150
1157
|
return encodeURIComponent('featureClassNo==' + f);
|
|
1151
1158
|
}).join(' || ');
|
|
1152
1159
|
}
|
|
1153
1160
|
}, {
|
|
1154
1161
|
key: "getIDMPriceFeatureGroups",
|
|
1155
|
-
value: function getIDMPriceFeatureGroups(
|
|
1156
|
-
return this.idmPrefix + '/catalogs/' +
|
|
1162
|
+
value: function getIDMPriceFeatureGroups(packageId, pricefeaturegroups) {
|
|
1163
|
+
return this.idmPrefix + (this.isSeller ? '/packages/' : '/catalogs/') + packageId + '/pricefeaturegroups' + '?filter=' + pricefeaturegroups.map(function (p) {
|
|
1157
1164
|
return encodeURIComponent('priceFeatureGroupNo==' + p);
|
|
1158
1165
|
}).join(' || ');
|
|
1159
1166
|
}
|
|
@@ -16391,7 +16398,11 @@ var OptionValueCatalogData = /*#__PURE__*/function () {
|
|
|
16391
16398
|
return undefined;
|
|
16392
16399
|
});
|
|
16393
16400
|
this.opv = opv;
|
|
16394
|
-
opv.
|
|
16401
|
+
if (opv.imagePaletteColor) {
|
|
16402
|
+
this.opv.colorGroups = [opv.imagePaletteColor];
|
|
16403
|
+
} else {
|
|
16404
|
+
opv.colorGroups = this.mapRALColorToGroup();
|
|
16405
|
+
}
|
|
16395
16406
|
var metaDatas = setOptionValueProperties(catalogData, this.opv.propertyObj, (_this$opv$property = this.opv.property) !== null && _this$opv$property !== void 0 ? _this$opv$property : []);
|
|
16396
16407
|
this.opv.metaData = metaDatas;
|
|
16397
16408
|
}
|
|
@@ -17896,6 +17907,7 @@ function getCatalogOptionValueDataType(codex, jsonOPV, catalogData) {
|
|
|
17896
17907
|
isOPVG: jsonOPV.IsOPVG && jsonOPV.IsOPVG == '1' ? true : false,
|
|
17897
17908
|
isFreeText: jsonOPV.FreeText && jsonOPV.FreeText == 'True' ? true : false,
|
|
17898
17909
|
rals: jsonOPV.RALs,
|
|
17910
|
+
imagePaletteColor: jsonOPV.ImagePaletteColor,
|
|
17899
17911
|
isCustomAttribute: jsonOPV.IsCustomAttribute,
|
|
17900
17912
|
measureMinimum: jsonOPV.MeasureMinimum,
|
|
17901
17913
|
measureMaximum: jsonOPV.MeasureMaximum,
|
|
@@ -19597,12 +19609,12 @@ function loadMoreFromIDMArticles(_x, _x2) {
|
|
|
19597
19609
|
}
|
|
19598
19610
|
function _loadMoreFromIDMArticles() {
|
|
19599
19611
|
_loadMoreFromIDMArticles = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee(catalogArticleDatas, set) {
|
|
19600
|
-
var items, _loop3, i, toLoadDecisionIds, toLoadPFGroups, toLoadFeatureClassRefNo, promises, _yield$Promise$all, _yield$Promise$all2, featureClasses, priceFeatureGroups, decisions, _i4, _i5, _i6, _catalogArticleData$d2, catalogArticleData, toLoadFeatures, features, _loop4, _i7, _loop6, _i8;
|
|
19612
|
+
var items, _loop3, i, toLoadDecisionIds, toLoadPFGroups, toLoadFeatureClassRefNo, promises, _yield$Promise$all, _yield$Promise$all2, featureClasses, priceFeatureGroups, decisions, _i4, _decisions$map, loadedIds, missingIds, _i5, _i6, _catalogArticleData$d2, catalogArticleData, toLoadFeatures, features, _loop4, _i7, _loop6, _i8;
|
|
19601
19613
|
return _regeneratorRuntime__default["default"].wrap(function _callee$(_context5) {
|
|
19602
19614
|
while (1) switch (_context5.prev = _context5.next) {
|
|
19603
19615
|
case 0:
|
|
19604
19616
|
_context5.next = 2;
|
|
19605
|
-
return set.api.getDataCache(set.api.getIDMItems(set.CatalogData.
|
|
19617
|
+
return set.api.getDataCache(set.api.getIDMItems(set.CatalogData.accountGuid, set.CatalogData.serieId, set.CatalogData.catalogCodex, catalogArticleDatas.map(function (a) {
|
|
19606
19618
|
return a.articleCodex;
|
|
19607
19619
|
})), undefined, undefined, 'enricher');
|
|
19608
19620
|
case 2:
|
|
@@ -19652,7 +19664,7 @@ function _loadMoreFromIDMArticles() {
|
|
|
19652
19664
|
}).map(function (a) {
|
|
19653
19665
|
return a.featureClassRefNo;
|
|
19654
19666
|
})));
|
|
19655
|
-
promises = [set.api.getDataCache(set.api.getIDMFeatureClass(set.CatalogData.
|
|
19667
|
+
promises = [set.api.getDataCache(set.api.getIDMFeatureClass(set.CatalogData.accountGuid, toLoadFeatureClassRefNo), undefined, undefined, 'enricher'), toLoadPFGroups.length ? set.api.getDataCache(set.api.getIDMPriceFeatureGroups(set.CatalogData.accountGuid, toLoadPFGroups), undefined, undefined, 'enricher') : undefined, toLoadDecisionIds.length ? set.api.getDataCache(set.api.getIDMDecisions(set.CatalogData.accountGuid, toLoadDecisionIds), undefined, undefined, 'enricher') : undefined];
|
|
19656
19668
|
_context5.next = 16;
|
|
19657
19669
|
return Promise.all(promises);
|
|
19658
19670
|
case 16:
|
|
@@ -19667,11 +19679,17 @@ function _loadMoreFromIDMArticles() {
|
|
|
19667
19679
|
}
|
|
19668
19680
|
}
|
|
19669
19681
|
if (!(toLoadDecisionIds.length !== 0 && toLoadDecisionIds.length != (decisions === null || decisions === void 0 ? void 0 : decisions.length))) {
|
|
19670
|
-
_context5.next =
|
|
19682
|
+
_context5.next = 26;
|
|
19671
19683
|
break;
|
|
19672
19684
|
}
|
|
19673
|
-
|
|
19674
|
-
|
|
19685
|
+
loadedIds = new Set((_decisions$map = decisions === null || decisions === void 0 ? void 0 : decisions.map(function (d) {
|
|
19686
|
+
return d.decisionNo;
|
|
19687
|
+
})) !== null && _decisions$map !== void 0 ? _decisions$map : []);
|
|
19688
|
+
missingIds = toLoadDecisionIds.filter(function (id) {
|
|
19689
|
+
return !loadedIds.has(id);
|
|
19690
|
+
});
|
|
19691
|
+
throw new Error("loading decisions failed \u2013 missing: [".concat(missingIds.join(', '), "]"));
|
|
19692
|
+
case 26:
|
|
19675
19693
|
if (priceFeatureGroups) {
|
|
19676
19694
|
for (_i5 = 0; _i5 < priceFeatureGroups.length; _i5++) {
|
|
19677
19695
|
set.CatalogData.loadedPriceFeaturegroups.push(initializePriceFeatureGroups(priceFeatureGroups[_i5], set.CatalogData.idmOptionGroups));
|
|
@@ -19688,12 +19706,12 @@ function _loadMoreFromIDMArticles() {
|
|
|
19688
19706
|
});
|
|
19689
19707
|
toLoadFeatures = getFeatures(set, featureClasses);
|
|
19690
19708
|
if (!toLoadFeatures.length) {
|
|
19691
|
-
_context5.next =
|
|
19709
|
+
_context5.next = 41;
|
|
19692
19710
|
break;
|
|
19693
19711
|
}
|
|
19694
|
-
_context5.next =
|
|
19695
|
-
return set.api.getDataCache(set.api.getIDMFeatures(set.CatalogData.
|
|
19696
|
-
case
|
|
19712
|
+
_context5.next = 33;
|
|
19713
|
+
return set.api.getDataCache(set.api.getIDMFeatures(set.CatalogData.accountGuid, toLoadFeatures), undefined, undefined, 'enricher');
|
|
19714
|
+
case 33:
|
|
19697
19715
|
features = _context5.sent;
|
|
19698
19716
|
_loop4 = /*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _loop4() {
|
|
19699
19717
|
var feature, insertIndex, k, _loop5, j;
|
|
@@ -19775,17 +19793,17 @@ function _loadMoreFromIDMArticles() {
|
|
|
19775
19793
|
}, _loop4);
|
|
19776
19794
|
});
|
|
19777
19795
|
_i7 = 0;
|
|
19778
|
-
case
|
|
19796
|
+
case 36:
|
|
19779
19797
|
if (!(_i7 < features.length)) {
|
|
19780
|
-
_context5.next =
|
|
19798
|
+
_context5.next = 41;
|
|
19781
19799
|
break;
|
|
19782
19800
|
}
|
|
19783
|
-
return _context5.delegateYield(_loop4(), "t1",
|
|
19784
|
-
case
|
|
19801
|
+
return _context5.delegateYield(_loop4(), "t1", 38);
|
|
19802
|
+
case 38:
|
|
19785
19803
|
_i7++;
|
|
19786
|
-
_context5.next =
|
|
19804
|
+
_context5.next = 36;
|
|
19787
19805
|
break;
|
|
19788
|
-
case
|
|
19806
|
+
case 41:
|
|
19789
19807
|
_loop6 = /*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _loop6() {
|
|
19790
19808
|
var catalogArticleData, featureClass, features, j;
|
|
19791
19809
|
return _regeneratorRuntime__default["default"].wrap(function _loop6$(_context4) {
|
|
@@ -19812,21 +19830,21 @@ function _loadMoreFromIDMArticles() {
|
|
|
19812
19830
|
}, _loop6);
|
|
19813
19831
|
});
|
|
19814
19832
|
_i8 = 0;
|
|
19815
|
-
case
|
|
19833
|
+
case 43:
|
|
19816
19834
|
if (!(_i8 < catalogArticleDatas.length)) {
|
|
19817
|
-
_context5.next =
|
|
19835
|
+
_context5.next = 48;
|
|
19818
19836
|
break;
|
|
19819
19837
|
}
|
|
19820
|
-
return _context5.delegateYield(_loop6(), "t2",
|
|
19821
|
-
case
|
|
19838
|
+
return _context5.delegateYield(_loop6(), "t2", 45);
|
|
19839
|
+
case 45:
|
|
19822
19840
|
_i8++;
|
|
19823
|
-
_context5.next =
|
|
19841
|
+
_context5.next = 43;
|
|
19824
19842
|
break;
|
|
19825
|
-
case
|
|
19843
|
+
case 48:
|
|
19826
19844
|
catalogArticleDatas.map(function (c) {
|
|
19827
19845
|
return c.areOptionsLoaded = true;
|
|
19828
19846
|
});
|
|
19829
|
-
case
|
|
19847
|
+
case 49:
|
|
19830
19848
|
case "end":
|
|
19831
19849
|
return _context5.stop();
|
|
19832
19850
|
}
|
|
@@ -20210,15 +20228,16 @@ function ownKeys$l(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymb
|
|
|
20210
20228
|
function _objectSpread$l(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$l(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$l(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
20211
20229
|
var LOG$j = DivaUtils__default["default"].initLog('Planner', 'WEB-PLANNER-LOGIC');
|
|
20212
20230
|
function initIDMCatalogData(serie, orderSet, api) {
|
|
20213
|
-
var _serie$
|
|
20231
|
+
var _serie$decisions, _serie$decisions2;
|
|
20214
20232
|
var catalog = serie.catalogData;
|
|
20215
20233
|
var catalogData = {
|
|
20216
|
-
accountGuid:
|
|
20234
|
+
accountGuid: orderSet.AccountGUID,
|
|
20217
20235
|
serieId: serie._id,
|
|
20218
20236
|
accountName: '',
|
|
20219
20237
|
accountLogo: '',
|
|
20220
20238
|
collectionGuid: serie.catalogId,
|
|
20221
|
-
catalogGuid:
|
|
20239
|
+
catalogGuid: '',
|
|
20240
|
+
//serie.enricherPackageId,
|
|
20222
20241
|
catalogCodex: serie.serieNo.toString(),
|
|
20223
20242
|
catalogName: DivaUtils__default["default"].getLocals(serie.seriesName, api.getLanguageLowercase()),
|
|
20224
20243
|
// name des Kataloges
|
|
@@ -20275,7 +20294,7 @@ function initIDMArticles(jsonItems, catalogData) {
|
|
|
20275
20294
|
}
|
|
20276
20295
|
}
|
|
20277
20296
|
function getCatalogArticle(article, catalogData) {
|
|
20278
|
-
var _catalogData$catalogM, _ref, _articleMask$name, _article$fullText, _article$fullText2, _article$fullText3, _articleMask$properti, _article$depthBasicSh, _article$depthBasicSh2, _article$depthBasicSh3, _article$widthBasicSh, _article$widthBasicSh2, _article$widthBasicSh3, _article$heightBasicS, _article$heightBasicS2, _article$heightBasicS3, _article$weightNetto, _article$detailInfos, _article$detailInfos2, _article$detailInfos3, _articleMask$groupnam, _articleMask$groupnam2;
|
|
20297
|
+
var _catalogData$catalogM, _article$typeKey, _ref, _articleMask$name, _article$fullText, _article$fullText2, _article$fullText3, _articleMask$properti, _article$depthBasicSh, _article$depthBasicSh2, _article$depthBasicSh3, _article$widthBasicSh, _article$widthBasicSh2, _article$widthBasicSh3, _article$heightBasicS, _article$heightBasicS2, _article$heightBasicS3, _article$weightNetto, _article$detailInfos, _article$detailInfos2, _article$detailInfos3, _articleMask$groupnam, _articleMask$groupnam2;
|
|
20279
20298
|
var articleMask = (_catalogData$catalogM = catalogData.catalogMask) === null || _catalogData$catalogM === void 0 || (_catalogData$catalogM = _catalogData$catalogM.articles) === null || _catalogData$catalogM === void 0 ? void 0 : _catalogData$catalogM[article.typeNo];
|
|
20280
20299
|
var lang = catalogData.api.getLanguageLowercase();
|
|
20281
20300
|
var featureProperties = convertProperties(article.properties, lang, 'featureNos');
|
|
@@ -20286,7 +20305,7 @@ function getCatalogArticle(article, catalogData) {
|
|
|
20286
20305
|
articleCodex: article.typeNo,
|
|
20287
20306
|
articleOptions: {},
|
|
20288
20307
|
partListExclusive: article.partListExclusive,
|
|
20289
|
-
guid: article.typeKey,
|
|
20308
|
+
guid: (_article$typeKey = article.typeKey) === null || _article$typeKey === void 0 ? void 0 : _article$typeKey.toString(),
|
|
20290
20309
|
articleEAN: article.eanNumber,
|
|
20291
20310
|
typeNr: article.eanNumber,
|
|
20292
20311
|
retailArticleNr: article.salesNumber,
|
|
@@ -25646,7 +25665,7 @@ var IDMEngine = /*#__PURE__*/function () {
|
|
|
25646
25665
|
});
|
|
25647
25666
|
var ref = optionSetRef === null || optionSetRef === void 0 ? void 0 : optionSetRef.optionList;
|
|
25648
25667
|
if (optionSetRef && !optionSetRef.optionList) throw new Error('optionSetRef not implemented: ' + JSON.stringify(optionSetRef));
|
|
25649
|
-
var doUseDoc =
|
|
25668
|
+
var doUseDoc = true;
|
|
25650
25669
|
if (doAlsoCheckFeature.length > 0) {
|
|
25651
25670
|
var _loop4 = function _loop4() {
|
|
25652
25671
|
var _combination$projectO2;
|
|
@@ -29486,7 +29505,7 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
29486
29505
|
break;
|
|
29487
29506
|
}
|
|
29488
29507
|
_context.next = 4;
|
|
29489
|
-
return Promise.resolve().then(function () { return require('./ShelfPlanner-
|
|
29508
|
+
return Promise.resolve().then(function () { return require('./ShelfPlanner-61aa85f8.js'); });
|
|
29490
29509
|
case 4:
|
|
29491
29510
|
_yield$import = _context.sent;
|
|
29492
29511
|
ShelfPlanner = _yield$import["default"];
|
|
@@ -34879,6 +34898,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
|
|
|
34879
34898
|
var hasSelectionMode2 = [];
|
|
34880
34899
|
var hasSelectionMode3 = [];
|
|
34881
34900
|
var basketIds = [];
|
|
34901
|
+
var breakTabgroup = false;
|
|
34882
34902
|
var _iterator4 = _createForOfIteratorHelper$4(tabGroup.options),
|
|
34883
34903
|
_step4;
|
|
34884
34904
|
try {
|
|
@@ -34886,6 +34906,10 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
|
|
|
34886
34906
|
var _step4$value = _slicedToArray__default["default"](_step4.value, 2),
|
|
34887
34907
|
_optionCodex2 = _step4$value[0],
|
|
34888
34908
|
_option2 = _step4$value[1];
|
|
34909
|
+
var configSteps = Array.from(_option2.configSteps.values());
|
|
34910
|
+
if (configSteps.find(function (configStep) {
|
|
34911
|
+
return configStep.notDisplayedInMainConfigTree;
|
|
34912
|
+
})) breakTabgroup = true;
|
|
34889
34913
|
switch (_option2.selectionmode) {
|
|
34890
34914
|
case 1:
|
|
34891
34915
|
hasSelectionMode1.push(_optionCodex2);
|
|
@@ -34928,6 +34952,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
|
|
|
34928
34952
|
} finally {
|
|
34929
34953
|
_iterator4.f();
|
|
34930
34954
|
}
|
|
34955
|
+
if (breakTabgroup) continue;
|
|
34931
34956
|
if (hasSelectionMode2.length > 0 && hasSelectionMode3.length > 0 && hasSelectionMode1.length == 0) {
|
|
34932
34957
|
//make the selectionmode 2 options -> selectionmode 3
|
|
34933
34958
|
var _iterator5 = _createForOfIteratorHelper$4(hasSelectionMode2),
|
|
@@ -37414,7 +37439,7 @@ var DivaSet = /*#__PURE__*/function () {
|
|
|
37414
37439
|
break;
|
|
37415
37440
|
}
|
|
37416
37441
|
_context5.next = 3;
|
|
37417
|
-
return Promise.resolve().then(function () { return require('./DoorPlanner-
|
|
37442
|
+
return Promise.resolve().then(function () { return require('./DoorPlanner-da27ed90.js'); });
|
|
37418
37443
|
case 3:
|
|
37419
37444
|
_yield$import = _context5.sent;
|
|
37420
37445
|
DoorPlanner = _yield$import["default"];
|
|
@@ -41984,7 +42009,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
41984
42009
|
actBasket.ReturnTo = returnTo;
|
|
41985
42010
|
actBasket.PDFDocumentURL = '';
|
|
41986
42011
|
actBasket.ReportConfigIdentifier = api.getReportConfigIdentifier();
|
|
41987
|
-
actBasket.PrintOptions = api.getPrintOptions(this.reportConfig, !!arReady);
|
|
42012
|
+
actBasket.PrintOptions = api.getPrintOptions(this.reportConfig, !!actBasket.OrderSets[0].SetImage, !!arReady);
|
|
41988
42013
|
actBasket.ClientLanguage = api.getLanguage();
|
|
41989
42014
|
_context11.next = 8;
|
|
41990
42015
|
return DivaUtils__default["default"].updateBasketOrgInfo(actBasket, this.plannerConfig.currentOrganization, this.plannerConfig.currentUser, (_this$plannerConfig$s10 = this.plannerConfig.settings) === null || _this$plannerConfig$s10 === void 0 ? void 0 : _this$plannerConfig$s10.keepSalesPersonDataInBasket);
|
|
@@ -42178,7 +42203,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
42178
42203
|
break;
|
|
42179
42204
|
case 3:
|
|
42180
42205
|
_context12.next = 5;
|
|
42181
|
-
return Promise.resolve().then(function () { return require('./PfisterWWSHandler-
|
|
42206
|
+
return Promise.resolve().then(function () { return require('./PfisterWWSHandler-30777f18.js'); });
|
|
42182
42207
|
case 5:
|
|
42183
42208
|
_yield$import = _context12.sent;
|
|
42184
42209
|
PfisterWWSHandler = _yield$import["default"];
|
|
@@ -42186,7 +42211,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
42186
42211
|
return _context12.abrupt("break", 27);
|
|
42187
42212
|
case 9:
|
|
42188
42213
|
_context12.next = 11;
|
|
42189
|
-
return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-
|
|
42214
|
+
return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-44d0ef86.js'); });
|
|
42190
42215
|
case 11:
|
|
42191
42216
|
_yield$import2 = _context12.sent;
|
|
42192
42217
|
LiviqueWWSHandler = _yield$import2["default"];
|
|
@@ -42194,7 +42219,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
42194
42219
|
return _context12.abrupt("break", 27);
|
|
42195
42220
|
case 15:
|
|
42196
42221
|
_context12.next = 17;
|
|
42197
|
-
return Promise.resolve().then(function () { return require('./SeriousBasketHandler-
|
|
42222
|
+
return Promise.resolve().then(function () { return require('./SeriousBasketHandler-7d4a436d.js'); });
|
|
42198
42223
|
case 17:
|
|
42199
42224
|
_yield$import3 = _context12.sent;
|
|
42200
42225
|
SeriousWWSHandler = _yield$import3["default"];
|
|
@@ -42202,7 +42227,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
42202
42227
|
return _context12.abrupt("break", 27);
|
|
42203
42228
|
case 21:
|
|
42204
42229
|
_context12.next = 23;
|
|
42205
|
-
return Promise.resolve().then(function () { return require('./StandardWWSHandler-
|
|
42230
|
+
return Promise.resolve().then(function () { return require('./StandardWWSHandler-84695649.js'); });
|
|
42206
42231
|
case 23:
|
|
42207
42232
|
_yield$import4 = _context12.sent;
|
|
42208
42233
|
StandardWWSHandler = _yield$import4["default"];
|
|
@@ -43626,7 +43651,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
43626
43651
|
while (1) switch (_context3.prev = _context3.next) {
|
|
43627
43652
|
case 0:
|
|
43628
43653
|
_context3.next = 2;
|
|
43629
|
-
return Promise.resolve().then(function () { return require('./Host3DSignalR-
|
|
43654
|
+
return Promise.resolve().then(function () { return require('./Host3DSignalR-3e0f4f45.js'); });
|
|
43630
43655
|
case 2:
|
|
43631
43656
|
_yield$import = _context3.sent;
|
|
43632
43657
|
Host3DSignalR = _yield$import["default"];
|
|
@@ -45379,7 +45404,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
45379
45404
|
break;
|
|
45380
45405
|
case 8:
|
|
45381
45406
|
_context4.next = 10;
|
|
45382
|
-
return Promise.resolve().then(function () { return require('./DivaStandardPlanner-
|
|
45407
|
+
return Promise.resolve().then(function () { return require('./DivaStandardPlanner-a71ec752.js'); });
|
|
45383
45408
|
case 10:
|
|
45384
45409
|
_yield$import = _context4.sent;
|
|
45385
45410
|
DivaStandardPlanner = _yield$import["default"];
|
|
@@ -45390,7 +45415,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
45390
45415
|
return _context4.abrupt("break", 21);
|
|
45391
45416
|
case 15:
|
|
45392
45417
|
_context4.next = 17;
|
|
45393
|
-
return Promise.resolve().then(function () { return require('./DivaBoxPlanner-
|
|
45418
|
+
return Promise.resolve().then(function () { return require('./DivaBoxPlanner-67073efd.js'); });
|
|
45394
45419
|
case 17:
|
|
45395
45420
|
_yield$import2 = _context4.sent;
|
|
45396
45421
|
DivaBoxPlanner = _yield$import2["default"];
|
|
@@ -47309,7 +47334,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
47309
47334
|
value: function () {
|
|
47310
47335
|
var _initializeSets = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee15(loadSuccessful, viewReadyPromise) {
|
|
47311
47336
|
var _this$actions17, _set$getDivaArticles, _catalogData$catalogM, _catalogData$catalogM2;
|
|
47312
|
-
var _this$actions16, _this$actions16$toggl, initSetState, set, oldProductId, _result$customData, _result$customData2, result, _this$actions18, catalogData, initializationId, _this$plannerConfig$a, initializationType;
|
|
47337
|
+
var _this$actions16, _this$actions16$toggl, initSetState, set, oldProductId, _result$customData$SA, _result$customData, _result$customData2, _result$customData$SA2, _result$customData3, _result$customData4, result, _this$actions18, catalogData, initializationId, _this$plannerConfig$a, initializationType;
|
|
47313
47338
|
return _regeneratorRuntime__default["default"].wrap(function _callee15$(_context15) {
|
|
47314
47339
|
while (1) switch (_context15.prev = _context15.next) {
|
|
47315
47340
|
case 0:
|
|
@@ -47348,8 +47373,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
47348
47373
|
case 21:
|
|
47349
47374
|
result = _context15.sent;
|
|
47350
47375
|
if (result) productHandlerInstance.handleFountMatchingProducts(set, [result], set.setHash);
|
|
47351
|
-
result === null || result === void 0 || (_result$customData = result.customData) === null || _result$customData === void 0 ? void 0 : _result$customData.SAP_MARA_MATKL;
|
|
47352
|
-
result === null || result === void 0 || (_result$
|
|
47376
|
+
(_result$customData$SA = result === null || result === void 0 || (_result$customData = result.customData) === null || _result$customData === void 0 || (_result$customData = _result$customData.SAP) === null || _result$customData === void 0 ? void 0 : _result$customData.SAP_MARA_MATKL) !== null && _result$customData$SA !== void 0 ? _result$customData$SA : result === null || result === void 0 || (_result$customData2 = result.customData) === null || _result$customData2 === void 0 || (_result$customData2 = _result$customData2.SAP_MARA_MATKL) === null || _result$customData2 === void 0 ? void 0 : _result$customData2.value;
|
|
47377
|
+
(_result$customData$SA2 = result === null || result === void 0 || (_result$customData3 = result.customData) === null || _result$customData3 === void 0 || (_result$customData3 = _result$customData3.SAP) === null || _result$customData3 === void 0 ? void 0 : _result$customData3.SAP_MARA_PRDHA) !== null && _result$customData$SA2 !== void 0 ? _result$customData$SA2 : result === null || result === void 0 || (_result$customData4 = result.customData) === null || _result$customData4 === void 0 || (_result$customData4 = _result$customData4.SAP_MARA_PRDHA) === null || _result$customData4 === void 0 ? void 0 : _result$customData4.value;
|
|
47353
47378
|
_context15.next = 28;
|
|
47354
47379
|
break;
|
|
47355
47380
|
case 27:
|
package/build/cjs/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var index = require('./index-
|
|
5
|
+
var index = require('./index-dcf2a286.js');
|
|
6
6
|
require('@babel/runtime/helpers/slicedToArray');
|
|
7
7
|
require('@babel/runtime/helpers/asyncToGenerator');
|
|
8
8
|
require('@babel/runtime/helpers/classCallCheck');
|
|
@@ -3,11 +3,11 @@ import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
|
|
|
3
3
|
import _createClass from '@babel/runtime/helpers/createClass';
|
|
4
4
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
5
5
|
import _regeneratorRuntime from '@babel/runtime/regenerator';
|
|
6
|
-
import { c as Vector2, V as Vector3, P as PlannerElementData, B as BoundingBox } from './index-
|
|
6
|
+
import { c as Vector2, V as Vector3, P as PlannerElementData, B as BoundingBox } from './index-c75c976d.js';
|
|
7
7
|
import DivaUtils, { DivaError, md5 } from '@crystaldesign/diva-utils';
|
|
8
8
|
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
9
9
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
10
|
-
import { d as dockingPointHandlerInst, h as handler2D } from './PlannerHandler2D-
|
|
10
|
+
import { d as dockingPointHandlerInst, h as handler2D } from './PlannerHandler2D-62b12828.js';
|
|
11
11
|
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
12
12
|
import 'axios';
|
|
13
13
|
import '@crystaldesign/basket-model';
|
|
@@ -4776,6 +4776,7 @@ var BoxPlannerGrid = /*#__PURE__*/function () {
|
|
|
4776
4776
|
var grid = this.generalPlanningState.grids[0].matrix;
|
|
4777
4777
|
var backup = structuredClone(this.generalPlanningState);
|
|
4778
4778
|
var res = this.getCellsInGridByElementId(elementId);
|
|
4779
|
+
if (res.cells.length == 0) return true;
|
|
4779
4780
|
var cell = res.cells[0];
|
|
4780
4781
|
var scpe = this.gridSetupParams.forceSingleCellPerElement;
|
|
4781
4782
|
var origin = {
|
|
@@ -5111,10 +5112,11 @@ var BoxPlannerGrid = /*#__PURE__*/function () {
|
|
|
5111
5112
|
height = height < colHeight ? colHeight : height;
|
|
5112
5113
|
}
|
|
5113
5114
|
}
|
|
5114
|
-
var depth = maxZ - minZ;
|
|
5115
|
-
var width = maxX - minX;
|
|
5115
|
+
var depth = Math.abs(maxZ - minZ);
|
|
5116
|
+
var width = Math.abs(maxX - minX);
|
|
5116
5117
|
if (this.hasActiveBackside) {
|
|
5117
|
-
depth
|
|
5118
|
+
// Backside mirrors the front module, so total depth is doubled front bounding depth.
|
|
5119
|
+
depth *= 2;
|
|
5118
5120
|
}
|
|
5119
5121
|
return {
|
|
5120
5122
|
width: Math.round(width * 1000) / 1000,
|
|
@@ -3,9 +3,9 @@ import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
|
|
|
3
3
|
import _createClass from '@babel/runtime/helpers/createClass';
|
|
4
4
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
5
5
|
import _regeneratorRuntime from '@babel/runtime/regenerator';
|
|
6
|
-
import { V as Vector3, c as Vector2, P as PlannerElementData, B as BoundingBox } from './index-
|
|
6
|
+
import { V as Vector3, c as Vector2, P as PlannerElementData, B as BoundingBox } from './index-c75c976d.js';
|
|
7
7
|
import DivaUtils, { DivaError, md5 } from '@crystaldesign/diva-utils';
|
|
8
|
-
import { d as dockingPointHandlerInst, h as handler2D } from './PlannerHandler2D-
|
|
8
|
+
import { d as dockingPointHandlerInst, h as handler2D } from './PlannerHandler2D-62b12828.js';
|
|
9
9
|
import '@babel/runtime/helpers/slicedToArray';
|
|
10
10
|
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
11
11
|
import '@babel/runtime/helpers/toConsumableArray';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
|
|
2
2
|
import _createClass from '@babel/runtime/helpers/createClass';
|
|
3
3
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
4
|
-
import './index-
|
|
4
|
+
import './index-c75c976d.js';
|
|
5
5
|
import DivaUtils from '@crystaldesign/diva-utils';
|
|
6
6
|
import '@babel/runtime/helpers/slicedToArray';
|
|
7
7
|
import '@babel/runtime/helpers/asyncToGenerator';
|
|
@@ -3,7 +3,7 @@ import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
|
|
|
3
3
|
import _createClass from '@babel/runtime/helpers/createClass';
|
|
4
4
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
5
5
|
import _regeneratorRuntime from '@babel/runtime/regenerator';
|
|
6
|
-
import { R as Rendering, H as HQRenderScript } from './index-
|
|
6
|
+
import { R as Rendering, H as HQRenderScript } from './index-c75c976d.js';
|
|
7
7
|
import DivaUtils, { DivaError } from '@crystaldesign/diva-utils';
|
|
8
8
|
import { HubConnectionBuilder, LogLevel } from '@microsoft/signalr';
|
|
9
9
|
import io from 'socket.io-client';
|