@crystaldesign/web-planner-logic 24.11.0-beta.2 → 24.11.0-beta.21
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-fc403f96.js → DivaBoxPlanner-4f3790ec.js} +2 -2
- package/build/cjs/{DivaStandardPlanner-381861d5.js → DivaStandardPlanner-667e5cf0.js} +2 -2
- package/build/cjs/{DoorPlanner-4534b32f.js → DoorPlanner-697dd3d9.js} +1 -1
- package/build/cjs/{Host3DSignalR-e6cae920.js → Host3DSignalR-ad7cc0de.js} +1 -1
- package/build/cjs/{LiviqueWWSHandler-9bc80b98.js → LiviqueWWSHandler-44e25ef6.js} +1 -1
- package/build/cjs/{PfisterWWSHandler-24c470e2.js → PfisterWWSHandler-0dab97a9.js} +1 -1
- package/build/cjs/{PlannerHandler2D-fbc28e95.js → PlannerHandler2D-c5049cf4.js} +1 -1
- package/build/cjs/{ProductBasketHandler-08dcf24e.js → ProductBasketHandler-fd87c645.js} +1 -1
- package/build/cjs/{SeriousBasketHandler-a4647e89.js → SeriousBasketHandler-82414e54.js} +1 -1
- package/build/cjs/{ShelfPlanner-561be11e.js → ShelfPlanner-def9ee33.js} +6 -4
- package/build/cjs/{StandardWWSHandler-e211a327.js → StandardWWSHandler-7f2bca9a.js} +1 -1
- package/build/cjs/{index-4d5cef6f.js → index-44574518.js} +193 -147
- package/build/cjs/index.js +1 -1
- package/build/esm/{DivaBoxPlanner-8ef0722c.js → DivaBoxPlanner-d6b8ba23.js} +2 -2
- package/build/esm/{DivaStandardPlanner-19cc5ac0.js → DivaStandardPlanner-f96e0baf.js} +2 -2
- package/build/esm/{DoorPlanner-c3fe5ecf.js → DoorPlanner-27ae2306.js} +1 -1
- package/build/esm/{Host3DSignalR-5d78c3f5.js → Host3DSignalR-367240d7.js} +1 -1
- package/build/esm/{LiviqueWWSHandler-2f2cc617.js → LiviqueWWSHandler-aec5991a.js} +1 -1
- package/build/esm/{PfisterWWSHandler-701e95ee.js → PfisterWWSHandler-afd83f13.js} +1 -1
- package/build/esm/{PlannerHandler2D-bf892db2.js → PlannerHandler2D-193e7ebc.js} +1 -1
- package/build/esm/{ProductBasketHandler-a1dd8bb2.js → ProductBasketHandler-46d884fe.js} +1 -1
- package/build/esm/{SeriousBasketHandler-d5b6a347.js → SeriousBasketHandler-82a5da8e.js} +1 -1
- package/build/esm/{ShelfPlanner-e3b31a33.js → ShelfPlanner-3bade33c.js} +6 -4
- package/build/esm/{StandardWWSHandler-d2f8cb1c.js → StandardWWSHandler-86d63e5f.js} +1 -1
- package/build/esm/{index-bbda3bc5.js → index-218c9bd1.js} +193 -147
- package/build/esm/index.js +1 -1
- package/build/types/web-planner-logic/src/interface/API/ViewConfigDataType.d.ts +3 -2
- package/build/types/web-planner-logic/src/interface/API/ViewConfigDataType.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/DivaCatalogDataType.d.ts +0 -1
- package/build/types/web-planner-logic/src/interface/DivaCatalogDataType.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/ConfigTree/Shelfplanner/ShelfPlanner.d.ts +1 -1
- package/build/types/web-planner-logic/src/logic/ConfigTree/Shelfplanner/ShelfPlanner.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Planner/DivaPlannerHandler.d.ts +2 -6
- package/build/types/web-planner-logic/src/logic/Planner/DivaPlannerHandler.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Planner/Rendering/PlannerHandler3D.d.ts +1 -2
- package/build/types/web-planner-logic/src/logic/Planner/Rendering/PlannerHandler3D.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Set/DivaSetHandler.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/DivaCatalogData.d.ts +0 -1
- package/build/types/web-planner-logic/src/model/DivaCatalogData.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -18143,7 +18143,6 @@ var DivaCatalogData = /*#__PURE__*/function () {
|
|
|
18143
18143
|
supplierCatalogName: json.SupplierCatalogName,
|
|
18144
18144
|
additionalCatalogPrice: json.AdditionalCatalogPrice,
|
|
18145
18145
|
additionalCatalogPriceText: json.AdditionalCatalogPriceText,
|
|
18146
|
-
autoSelectFirstValue: true,
|
|
18147
18146
|
rounding: json.Rounding,
|
|
18148
18147
|
digits: json.Digits,
|
|
18149
18148
|
useEkPrices: this.api.useEkPrices,
|
|
@@ -19048,11 +19047,6 @@ var DivaCatalogData = /*#__PURE__*/function () {
|
|
|
19048
19047
|
get: function get() {
|
|
19049
19048
|
return this.catalogData.dontShowAccStep;
|
|
19050
19049
|
}
|
|
19051
|
-
}, {
|
|
19052
|
-
key: "autoSelectFirstValue",
|
|
19053
|
-
value: function autoSelectFirstValue() {
|
|
19054
|
-
return this.catalogData.autoSelectFirstValue;
|
|
19055
|
-
}
|
|
19056
19050
|
|
|
19057
19051
|
//Planner configurations
|
|
19058
19052
|
}, {
|
|
@@ -21343,7 +21337,7 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
21343
21337
|
get: function get() {
|
|
21344
21338
|
var _this$accessoireParen7;
|
|
21345
21339
|
if (this.relatedToShelfGrid !== undefined && (_this$accessoireParen7 = this.accessoireParentArticle) !== null && _this$accessoireParen7 !== void 0 && _this$accessoireParen7.shelfPlanner) {
|
|
21346
|
-
return this.accessoireParentArticle.shelfPlanner.getRelatedToGridIdByArticleCodex(this.articleCodex);
|
|
21340
|
+
return this.accessoireParentArticle.shelfPlanner.getRelatedToGridIdByArticleCodex(this.articleCodex, this.relatedToShelfGrid);
|
|
21347
21341
|
}
|
|
21348
21342
|
return undefined;
|
|
21349
21343
|
}
|
|
@@ -23520,7 +23514,7 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
23520
23514
|
break;
|
|
23521
23515
|
}
|
|
23522
23516
|
_context.next = 4;
|
|
23523
|
-
return import('./ShelfPlanner-
|
|
23517
|
+
return import('./ShelfPlanner-3bade33c.js');
|
|
23524
23518
|
case 4:
|
|
23525
23519
|
_yield$import = _context.sent;
|
|
23526
23520
|
ShelfPlanner = _yield$import["default"];
|
|
@@ -27983,7 +27977,7 @@ var DivaSet = /*#__PURE__*/function () {
|
|
|
27983
27977
|
break;
|
|
27984
27978
|
}
|
|
27985
27979
|
_context4.next = 3;
|
|
27986
|
-
return import('./DoorPlanner-
|
|
27980
|
+
return import('./DoorPlanner-27ae2306.js');
|
|
27987
27981
|
case 3:
|
|
27988
27982
|
_yield$import = _context4.sent;
|
|
27989
27983
|
DoorPlanner = _yield$import["default"];
|
|
@@ -30661,7 +30655,8 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
|
|
|
30661
30655
|
groupedGrids.push({
|
|
30662
30656
|
addToSpecificTabGroup: group.addToTabgroup ? (_configTree$getTabgro = configTree.getTabgroupKeyByOptionCodex('OPT' + group.addToTabgroup)) !== null && _configTree$getTabgro !== void 0 ? _configTree$getTabgro : 'ShelfPlanner' : 'ShelfPlanner',
|
|
30663
30657
|
grids: [grid],
|
|
30664
|
-
groupName: group.Group
|
|
30658
|
+
groupName: group.Group,
|
|
30659
|
+
forOtherGroups: true
|
|
30665
30660
|
});
|
|
30666
30661
|
}
|
|
30667
30662
|
};
|
|
@@ -30685,7 +30680,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
|
|
|
30685
30680
|
var groupId = (_group$groupName = group.groupName) !== null && _group$groupName !== void 0 ? _group$groupName : 'Shelfgroup';
|
|
30686
30681
|
var newConfigStep = this.createConfigStep(set, false, group.groupName, _toConsumableArray(new Set(group.grids.map(function (g) {
|
|
30687
30682
|
return g.basketId;
|
|
30688
|
-
}))), group.groupName, 'BasketId', groupId, configTree, false, group.grids[0].getShelfParentShelfId(), group.grids[0].getRequiredWarning((_set$WebConfig2 = set.WebConfig) === null || _set$WebConfig2 === void 0 ? void 0 : _set$WebConfig2.language), true, set.configAccessoiresInAccessoireStep, undefined, undefined, 'SHELFPLANNER');
|
|
30683
|
+
}))), group.groupName, 'BasketId', groupId, configTree, false, group.grids[0].getShelfParentShelfId(), group.grids[0].getRequiredWarning((_set$WebConfig2 = set.WebConfig) === null || _set$WebConfig2 === void 0 ? void 0 : _set$WebConfig2.language), true, set.configAccessoiresInAccessoireStep, undefined, undefined, group.forOtherGroups ? 'SHELFPLANNER' : undefined);
|
|
30689
30684
|
configTree.addConfigStep(tabgroupKey, group.groupName, group.groupName, newConfigStep);
|
|
30690
30685
|
}
|
|
30691
30686
|
}
|
|
@@ -30698,8 +30693,9 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
|
|
|
30698
30693
|
if (ops && basketId && parentCodex && ((_ops$optionOcd = ops.optionOcd) !== null && _ops$optionOcd !== void 0 ? _ops$optionOcd : ops.optionCodex) !== parentCodex) {
|
|
30699
30694
|
var article = set.getArticleByBasketId(basketId);
|
|
30700
30695
|
if (article) {
|
|
30696
|
+
var _ops$visibleOptionVal;
|
|
30701
30697
|
if (!!article.getArticleOptionState(ops.option.parentOptionCodex).isDifferentOption) return true;
|
|
30702
|
-
var rul = ops.visibleOptionValues[Object.keys(ops.visibleOptionValues)[0]].rul;
|
|
30698
|
+
var rul = (_ops$visibleOptionVal = ops.visibleOptionValues[Object.keys(ops.visibleOptionValues)[0]]) === null || _ops$visibleOptionVal === void 0 ? void 0 : _ops$visibleOptionVal.rul;
|
|
30703
30699
|
if (rul) {
|
|
30704
30700
|
var parentOptions = DivaUtils.getOptionsByRule(rul);
|
|
30705
30701
|
return !!parentOptions.find(function (o) {
|
|
@@ -33914,15 +33910,14 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
33914
33910
|
key: "getSetImage",
|
|
33915
33911
|
value: (function () {
|
|
33916
33912
|
var _getSetImage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee30(set, overwriteLastSavedRendering) {
|
|
33917
|
-
var setImage,
|
|
33913
|
+
var setImage, is3D;
|
|
33918
33914
|
return _regeneratorRuntime.wrap(function _callee30$(_context32) {
|
|
33919
33915
|
while (1) switch (_context32.prev = _context32.next) {
|
|
33920
33916
|
case 0:
|
|
33921
33917
|
setImage = undefined;
|
|
33922
|
-
catalogData = set.CatalogData;
|
|
33923
33918
|
is3D = ['3DImage', 'BoxPlanner', 'RTViewer'].includes(set.getPlannerMode());
|
|
33924
33919
|
if (!is3D) {
|
|
33925
|
-
_context32.next =
|
|
33920
|
+
_context32.next = 10;
|
|
33926
33921
|
break;
|
|
33927
33922
|
}
|
|
33928
33923
|
LOG$8.startTransaction({
|
|
@@ -33930,17 +33925,17 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
33930
33925
|
message: 'render 3D Image',
|
|
33931
33926
|
eventId: 'RENDER_3D_IMAGE'
|
|
33932
33927
|
});
|
|
33933
|
-
_context32.next =
|
|
33934
|
-
return set.plannerHandler.saveSetImage(
|
|
33935
|
-
case
|
|
33936
|
-
_context32.next =
|
|
33928
|
+
_context32.next = 6;
|
|
33929
|
+
return set.plannerHandler.saveSetImage(overwriteLastSavedRendering);
|
|
33930
|
+
case 6:
|
|
33931
|
+
_context32.next = 8;
|
|
33937
33932
|
return set.plannerHandler.getSetImageAsUrl(set.getSetId());
|
|
33938
|
-
case
|
|
33933
|
+
case 8:
|
|
33939
33934
|
setImage = _context32.sent;
|
|
33940
33935
|
LOG$8.successTransaction('RENDER_3D_IMAGE');
|
|
33941
|
-
case
|
|
33936
|
+
case 10:
|
|
33942
33937
|
return _context32.abrupt("return", setImage);
|
|
33943
|
-
case
|
|
33938
|
+
case 11:
|
|
33944
33939
|
case "end":
|
|
33945
33940
|
return _context32.stop();
|
|
33946
33941
|
}
|
|
@@ -35199,7 +35194,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
35199
35194
|
break;
|
|
35200
35195
|
case 3:
|
|
35201
35196
|
_context13.next = 5;
|
|
35202
|
-
return import('./PfisterWWSHandler-
|
|
35197
|
+
return import('./PfisterWWSHandler-afd83f13.js');
|
|
35203
35198
|
case 5:
|
|
35204
35199
|
_yield$import = _context13.sent;
|
|
35205
35200
|
PfisterWWSHandler = _yield$import["default"];
|
|
@@ -35207,7 +35202,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
35207
35202
|
return _context13.abrupt("break", 33);
|
|
35208
35203
|
case 9:
|
|
35209
35204
|
_context13.next = 11;
|
|
35210
|
-
return import('./LiviqueWWSHandler-
|
|
35205
|
+
return import('./LiviqueWWSHandler-aec5991a.js');
|
|
35211
35206
|
case 11:
|
|
35212
35207
|
_yield$import2 = _context13.sent;
|
|
35213
35208
|
LiviqueWWSHandler = _yield$import2["default"];
|
|
@@ -35215,7 +35210,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
35215
35210
|
return _context13.abrupt("break", 33);
|
|
35216
35211
|
case 15:
|
|
35217
35212
|
_context13.next = 17;
|
|
35218
|
-
return import('./SeriousBasketHandler-
|
|
35213
|
+
return import('./SeriousBasketHandler-82a5da8e.js');
|
|
35219
35214
|
case 17:
|
|
35220
35215
|
_yield$import3 = _context13.sent;
|
|
35221
35216
|
SeriousWWSHandler = _yield$import3["default"];
|
|
@@ -35223,7 +35218,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
35223
35218
|
return _context13.abrupt("break", 33);
|
|
35224
35219
|
case 21:
|
|
35225
35220
|
_context13.next = 23;
|
|
35226
|
-
return import('./ProductBasketHandler-
|
|
35221
|
+
return import('./ProductBasketHandler-46d884fe.js');
|
|
35227
35222
|
case 23:
|
|
35228
35223
|
_yield$import4 = _context13.sent;
|
|
35229
35224
|
ProductWWSHandler = _yield$import4["default"];
|
|
@@ -35231,7 +35226,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
35231
35226
|
return _context13.abrupt("break", 33);
|
|
35232
35227
|
case 27:
|
|
35233
35228
|
_context13.next = 29;
|
|
35234
|
-
return import('./StandardWWSHandler-
|
|
35229
|
+
return import('./StandardWWSHandler-86d63e5f.js');
|
|
35235
35230
|
case 29:
|
|
35236
35231
|
_yield$import5 = _context13.sent;
|
|
35237
35232
|
StandardWWSHandler = _yield$import5["default"];
|
|
@@ -36601,7 +36596,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
36601
36596
|
while (1) switch (_context3.prev = _context3.next) {
|
|
36602
36597
|
case 0:
|
|
36603
36598
|
_context3.next = 2;
|
|
36604
|
-
return import('./Host3DSignalR-
|
|
36599
|
+
return import('./Host3DSignalR-367240d7.js');
|
|
36605
36600
|
case 2:
|
|
36606
36601
|
_yield$import = _context3.sent;
|
|
36607
36602
|
Host3DSignalR = _yield$import["default"];
|
|
@@ -36750,7 +36745,9 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
36750
36745
|
|
|
36751
36746
|
//Do not display the rendering if it was saved in real Time mode withough cache - it was only saved when entering the Zusammenfassung for saving it later in the Basket
|
|
36752
36747
|
|
|
36753
|
-
if (
|
|
36748
|
+
if (this.checkRenderingReady(params.hash, waitedRendering) && waitedRendering.MediaServiceSaveMode == 'STREAM') {
|
|
36749
|
+
this.updatePlannerRendering(waitedRendering);
|
|
36750
|
+
}
|
|
36754
36751
|
return;
|
|
36755
36752
|
}
|
|
36756
36753
|
if (params.url) {
|
|
@@ -37191,6 +37188,8 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
37191
37188
|
}
|
|
37192
37189
|
}
|
|
37193
37190
|
case 31:
|
|
37191
|
+
return _context7.abrupt("return", renderHash);
|
|
37192
|
+
case 32:
|
|
37194
37193
|
case "end":
|
|
37195
37194
|
return _context7.stop();
|
|
37196
37195
|
}
|
|
@@ -37364,11 +37363,6 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
37364
37363
|
value: function checkConnectionInitialized() {
|
|
37365
37364
|
return !!this.connectionHandler;
|
|
37366
37365
|
}
|
|
37367
|
-
}, {
|
|
37368
|
-
key: "checkIsWaitingForRendering",
|
|
37369
|
-
value: function checkIsWaitingForRendering() {
|
|
37370
|
-
return this.waitForRenderings.size > 0;
|
|
37371
|
-
}
|
|
37372
37366
|
}, {
|
|
37373
37367
|
key: "checkIsWaitingForHQRenderScript",
|
|
37374
37368
|
value: function checkIsWaitingForHQRenderScript() {
|
|
@@ -38148,7 +38142,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
38148
38142
|
break;
|
|
38149
38143
|
case 8:
|
|
38150
38144
|
_context4.next = 10;
|
|
38151
|
-
return import('./DivaStandardPlanner-
|
|
38145
|
+
return import('./DivaStandardPlanner-f96e0baf.js');
|
|
38152
38146
|
case 10:
|
|
38153
38147
|
_yield$import = _context4.sent;
|
|
38154
38148
|
DivaStandardPlanner = _yield$import["default"];
|
|
@@ -38159,7 +38153,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
38159
38153
|
return _context4.abrupt("break", 21);
|
|
38160
38154
|
case 15:
|
|
38161
38155
|
_context4.next = 17;
|
|
38162
|
-
return import('./DivaBoxPlanner-
|
|
38156
|
+
return import('./DivaBoxPlanner-d6b8ba23.js');
|
|
38163
38157
|
case 17:
|
|
38164
38158
|
_yield$import2 = _context4.sent;
|
|
38165
38159
|
DivaBoxPlanner = _yield$import2["default"];
|
|
@@ -38417,30 +38411,40 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
38417
38411
|
key: "saveSetHQRenderScript",
|
|
38418
38412
|
value: function () {
|
|
38419
38413
|
var _saveSetHQRenderScript = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee9() {
|
|
38420
|
-
var checkingTimes, i;
|
|
38414
|
+
var hash, checkingTimes, i;
|
|
38421
38415
|
return _regeneratorRuntime.wrap(function _callee9$(_context9) {
|
|
38422
38416
|
while (1) switch (_context9.prev = _context9.next) {
|
|
38423
38417
|
case 0:
|
|
38424
38418
|
DivaUtils.startSpanOfApm('DivaPlannerHandler saveSetHQRenderScript');
|
|
38425
|
-
|
|
38426
|
-
|
|
38419
|
+
_context9.next = 3;
|
|
38420
|
+
return this.request3D(false, true);
|
|
38421
|
+
case 3:
|
|
38422
|
+
hash = _context9.sent;
|
|
38423
|
+
if (hash) {
|
|
38424
|
+
_context9.next = 6;
|
|
38425
|
+
break;
|
|
38426
|
+
}
|
|
38427
|
+
return _context9.abrupt("return");
|
|
38428
|
+
case 6:
|
|
38429
|
+
checkingTimes = 200;
|
|
38427
38430
|
i = 0;
|
|
38428
|
-
case
|
|
38429
|
-
if (!(this.handler3D.
|
|
38430
|
-
_context9.next =
|
|
38431
|
+
case 8:
|
|
38432
|
+
if (!(this.handler3D.getWaitForHqRenderScript(hash) && checkingTimes > i)) {
|
|
38433
|
+
_context9.next = 14;
|
|
38431
38434
|
break;
|
|
38432
38435
|
}
|
|
38433
|
-
_context9.next =
|
|
38434
|
-
return DivaUtils.Sleep(
|
|
38435
|
-
case
|
|
38436
|
+
_context9.next = 11;
|
|
38437
|
+
return DivaUtils.Sleep(50);
|
|
38438
|
+
case 11:
|
|
38436
38439
|
i++;
|
|
38437
|
-
_context9.next =
|
|
38440
|
+
_context9.next = 8;
|
|
38438
38441
|
break;
|
|
38439
|
-
case
|
|
38442
|
+
case 14:
|
|
38443
|
+
LOG$2.debug('saving performance: HQ Renderscript recieved after ' + i * checkingTimes + ' ms');
|
|
38440
38444
|
if (this.handler3D.checkIsWaitingForHQRenderScript() && checkingTimes == i) {
|
|
38441
38445
|
LOG$2.error(new DivaError('could not saveSetHQRenderScript'));
|
|
38442
38446
|
}
|
|
38443
|
-
case
|
|
38447
|
+
case 16:
|
|
38444
38448
|
case "end":
|
|
38445
38449
|
return _context9.stop();
|
|
38446
38450
|
}
|
|
@@ -38454,8 +38458,8 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
38454
38458
|
}, {
|
|
38455
38459
|
key: "saveSetImage",
|
|
38456
38460
|
value: function () {
|
|
38457
|
-
var _saveSetImage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee10(
|
|
38458
|
-
var sumWaitingMS, rendering;
|
|
38461
|
+
var _saveSetImage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee10(overwriteLastSavedRendering) {
|
|
38462
|
+
var hash, sumWaitingMS, rendering;
|
|
38459
38463
|
return _regeneratorRuntime.wrap(function _callee10$(_context10) {
|
|
38460
38464
|
while (1) switch (_context10.prev = _context10.next) {
|
|
38461
38465
|
case 0:
|
|
@@ -38463,10 +38467,11 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
38463
38467
|
|
|
38464
38468
|
//Save permanent rendering
|
|
38465
38469
|
if (!(overwriteLastSavedRendering || !this.handler3D.hasLastSavedRendering())) {
|
|
38466
|
-
_context10.next =
|
|
38470
|
+
_context10.next = 15;
|
|
38467
38471
|
break;
|
|
38468
38472
|
}
|
|
38469
|
-
|
|
38473
|
+
_context10.next = 4;
|
|
38474
|
+
return this.request3D(true, false, false, undefined, true, {
|
|
38470
38475
|
width: 100,
|
|
38471
38476
|
height: 100,
|
|
38472
38477
|
isFullscreenRendering: false,
|
|
@@ -38474,39 +38479,49 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
38474
38479
|
mediaServiceSaveMode: 'PERMANENT',
|
|
38475
38480
|
doShow3DDimensionLines: false
|
|
38476
38481
|
});
|
|
38477
|
-
sumWaitingMS = 0;
|
|
38478
38482
|
case 4:
|
|
38479
|
-
|
|
38480
|
-
|
|
38483
|
+
hash = _context10.sent;
|
|
38484
|
+
if (hash) {
|
|
38485
|
+
_context10.next = 7;
|
|
38481
38486
|
break;
|
|
38482
38487
|
}
|
|
38483
|
-
|
|
38484
|
-
|
|
38485
|
-
|
|
38488
|
+
return _context10.abrupt("return", false);
|
|
38489
|
+
case 7:
|
|
38490
|
+
sumWaitingMS = 0;
|
|
38486
38491
|
case 8:
|
|
38487
|
-
|
|
38488
|
-
|
|
38489
|
-
|
|
38492
|
+
if (!(this.handler3D.getWaitForRendering(hash) && sumWaitingMS < RenderSettings.TIMEOUT_WAITFORSAVEDRENDERING_MS)) {
|
|
38493
|
+
_context10.next = 14;
|
|
38494
|
+
break;
|
|
38495
|
+
}
|
|
38496
|
+
sumWaitingMS += 50;
|
|
38490
38497
|
_context10.next = 12;
|
|
38491
|
-
return
|
|
38498
|
+
return DivaUtils.Sleep(50);
|
|
38492
38499
|
case 12:
|
|
38500
|
+
_context10.next = 8;
|
|
38501
|
+
break;
|
|
38502
|
+
case 14:
|
|
38503
|
+
LOG$2.debug('saving performance: 3D Image recieved after ' + sumWaitingMS + ' ms');
|
|
38504
|
+
case 15:
|
|
38505
|
+
_context10.next = 17;
|
|
38506
|
+
return this.handler3D.getLastSavedRendering();
|
|
38507
|
+
case 17:
|
|
38493
38508
|
rendering = _context10.sent;
|
|
38494
38509
|
if (!(!rendering || !rendering.UrlToSavedRendering)) {
|
|
38495
|
-
_context10.next =
|
|
38510
|
+
_context10.next = 21;
|
|
38496
38511
|
break;
|
|
38497
38512
|
}
|
|
38498
38513
|
DivaUtils.endSpanOfApm('DivaPlannerHandler saveSetImage');
|
|
38499
38514
|
return _context10.abrupt("return", false);
|
|
38500
|
-
case
|
|
38515
|
+
case 21:
|
|
38501
38516
|
DivaUtils.endSpanOfApm('DivaPlannerHandler saveSetImage');
|
|
38502
38517
|
return _context10.abrupt("return", true);
|
|
38503
|
-
case
|
|
38518
|
+
case 23:
|
|
38504
38519
|
case "end":
|
|
38505
38520
|
return _context10.stop();
|
|
38506
38521
|
}
|
|
38507
38522
|
}, _callee10, this);
|
|
38508
38523
|
}));
|
|
38509
|
-
function saveSetImage(_x16
|
|
38524
|
+
function saveSetImage(_x16) {
|
|
38510
38525
|
return _saveSetImage.apply(this, arguments);
|
|
38511
38526
|
}
|
|
38512
38527
|
return saveSetImage;
|
|
@@ -38573,7 +38588,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
38573
38588
|
}
|
|
38574
38589
|
}, _callee11, this);
|
|
38575
38590
|
}));
|
|
38576
|
-
function saveAlternateSetImages(
|
|
38591
|
+
function saveAlternateSetImages(_x17, _x18) {
|
|
38577
38592
|
return _saveAlternateSetImages.apply(this, arguments);
|
|
38578
38593
|
}
|
|
38579
38594
|
return saveAlternateSetImages;
|
|
@@ -38601,7 +38616,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
38601
38616
|
}
|
|
38602
38617
|
}, _callee12, this);
|
|
38603
38618
|
}));
|
|
38604
|
-
function saveSet2DImage(
|
|
38619
|
+
function saveSet2DImage(_x19, _x20, _x21, _x22) {
|
|
38605
38620
|
return _saveSet2DImage.apply(this, arguments);
|
|
38606
38621
|
}
|
|
38607
38622
|
return saveSet2DImage;
|
|
@@ -38684,7 +38699,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
38684
38699
|
}
|
|
38685
38700
|
}, _callee13, this);
|
|
38686
38701
|
}));
|
|
38687
|
-
function addPlannerElement(
|
|
38702
|
+
function addPlannerElement(_x23, _x24, _x25) {
|
|
38688
38703
|
return _addPlannerElement.apply(this, arguments);
|
|
38689
38704
|
}
|
|
38690
38705
|
return addPlannerElement;
|
|
@@ -38721,7 +38736,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
38721
38736
|
}
|
|
38722
38737
|
}, _callee14, this);
|
|
38723
38738
|
}));
|
|
38724
|
-
function deletePlannerElement(
|
|
38739
|
+
function deletePlannerElement(_x26, _x27, _x28, _x29) {
|
|
38725
38740
|
return _deletePlannerElement.apply(this, arguments);
|
|
38726
38741
|
}
|
|
38727
38742
|
return deletePlannerElement;
|
|
@@ -38774,7 +38789,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
38774
38789
|
}
|
|
38775
38790
|
}, _callee15, this);
|
|
38776
38791
|
}));
|
|
38777
|
-
function copyPlannerElements(
|
|
38792
|
+
function copyPlannerElements(_x30, _x31, _x32) {
|
|
38778
38793
|
return _copyPlannerElements.apply(this, arguments);
|
|
38779
38794
|
}
|
|
38780
38795
|
return copyPlannerElements;
|
|
@@ -38893,65 +38908,95 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
38893
38908
|
}
|
|
38894
38909
|
}, {
|
|
38895
38910
|
key: "request3D",
|
|
38896
|
-
value: function
|
|
38897
|
-
var
|
|
38898
|
-
|
|
38899
|
-
|
|
38900
|
-
|
|
38901
|
-
|
|
38902
|
-
|
|
38903
|
-
|
|
38904
|
-
|
|
38905
|
-
|
|
38906
|
-
|
|
38907
|
-
|
|
38908
|
-
|
|
38909
|
-
|
|
38910
|
-
|
|
38911
|
-
|
|
38912
|
-
|
|
38913
|
-
|
|
38914
|
-
|
|
38915
|
-
|
|
38916
|
-
|
|
38917
|
-
|
|
38918
|
-
|
|
38919
|
-
|
|
38920
|
-
|
|
38921
|
-
|
|
38922
|
-
|
|
38923
|
-
|
|
38924
|
-
|
|
38925
|
-
|
|
38926
|
-
|
|
38927
|
-
|
|
38928
|
-
|
|
38929
|
-
|
|
38930
|
-
|
|
38931
|
-
|
|
38932
|
-
|
|
38933
|
-
|
|
38934
|
-
|
|
38935
|
-
|
|
38936
|
-
|
|
38937
|
-
|
|
38938
|
-
|
|
38939
|
-
|
|
38940
|
-
|
|
38941
|
-
|
|
38942
|
-
|
|
38943
|
-
|
|
38944
|
-
|
|
38945
|
-
|
|
38946
|
-
|
|
38947
|
-
|
|
38948
|
-
|
|
38949
|
-
|
|
38950
|
-
|
|
38951
|
-
|
|
38911
|
+
value: function () {
|
|
38912
|
+
var _request3D = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee16(doRequestRendering, doRequestHqRenderScript, alternateRenderingsExist, alternateRenderInfo, forceReloadPlanning, renderRequestInfos, viewpoint) {
|
|
38913
|
+
var _this3 = this;
|
|
38914
|
+
var plannerData, loadedCatData, plannerExists, savedSetId;
|
|
38915
|
+
return _regeneratorRuntime.wrap(function _callee16$(_context16) {
|
|
38916
|
+
while (1) switch (_context16.prev = _context16.next) {
|
|
38917
|
+
case 0:
|
|
38918
|
+
if (!doRequestRendering) {
|
|
38919
|
+
_context16.next = 9;
|
|
38920
|
+
break;
|
|
38921
|
+
}
|
|
38922
|
+
if (renderRequestInfos) {
|
|
38923
|
+
_context16.next = 6;
|
|
38924
|
+
break;
|
|
38925
|
+
}
|
|
38926
|
+
LOG$2.error(new DivaError('Error requesting 3D rendering. No renderRequestInfo is set'));
|
|
38927
|
+
return _context16.abrupt("return");
|
|
38928
|
+
case 6:
|
|
38929
|
+
if (!(renderRequestInfos.width <= 0 || isNaN(renderRequestInfos.width) || renderRequestInfos.height <= 0 || isNaN(renderRequestInfos.height))) {
|
|
38930
|
+
_context16.next = 9;
|
|
38931
|
+
break;
|
|
38932
|
+
}
|
|
38933
|
+
LOG$2.error(new DivaError('Error requesting rendering. Not valid width or height request width: ' + renderRequestInfos.width + ' height: ' + renderRequestInfos.height));
|
|
38934
|
+
return _context16.abrupt("return");
|
|
38935
|
+
case 9:
|
|
38936
|
+
plannerData = this.handler3D.initPlannerData(this.plannerHandlerFunctions.doAllowSetPlanner());
|
|
38937
|
+
loadedCatData = [];
|
|
38938
|
+
plannerExists = false;
|
|
38939
|
+
savedSetId = undefined;
|
|
38940
|
+
this.plannerList.forEach(function (planner, setId) {
|
|
38941
|
+
var _renderRequestInfos$d;
|
|
38942
|
+
savedSetId = setId;
|
|
38943
|
+
var config = planner.getSetData(true, _this3.plannerHandlerFunctions.doAllowSetPlanner(), (_renderRequestInfos$d = renderRequestInfos === null || renderRequestInfos === void 0 ? void 0 : renderRequestInfos.doShow3DDimensionLines) !== null && _renderRequestInfos$d !== void 0 ? _renderRequestInfos$d : false, alternateRenderInfo);
|
|
38944
|
+
var setData = config.constructionSet;
|
|
38945
|
+
|
|
38946
|
+
//Add technical Info to setData
|
|
38947
|
+
var bboxInfo2D = _this3.get2DViewPlannerBoundingBox();
|
|
38948
|
+
setData.TechSize = {
|
|
38949
|
+
Width: bboxInfo2D.size.x,
|
|
38950
|
+
Height: bboxInfo2D.size.y,
|
|
38951
|
+
Depth: bboxInfo2D.size.z
|
|
38952
|
+
};
|
|
38953
|
+
plannerData.SCE.ROO[0].SET.push(setData);
|
|
38954
|
+
plannerExists = true;
|
|
38955
|
+
var catalog = planner.getCatalogData();
|
|
38956
|
+
if (renderRequestInfos) renderRequestInfos.plannerMeasureDigits = catalog.PlannerMeasureDigits;
|
|
38957
|
+
loadedCatData.push({
|
|
38958
|
+
catalogCodex: catalog.catalogCodex,
|
|
38959
|
+
catalogGUID: catalog.catalogGuid,
|
|
38960
|
+
lang: catalog.api.getLanguage()
|
|
38961
|
+
});
|
|
38962
|
+
});
|
|
38963
|
+
if (!plannerExists) {
|
|
38964
|
+
_context16.next = 19;
|
|
38965
|
+
break;
|
|
38966
|
+
}
|
|
38967
|
+
// if not in set planner mode overwrite s1 with correct setId
|
|
38968
|
+
if (!this.plannerHandlerFunctions.doAllowSetPlanner()) {
|
|
38969
|
+
plannerData.SCE.ROO[0].SET[0].ID = savedSetId;
|
|
38970
|
+
plannerData.SCE.ROO[0].SelectSet = savedSetId;
|
|
38971
|
+
}
|
|
38972
|
+
_context16.next = 18;
|
|
38973
|
+
return this.handler3D.request3D({
|
|
38974
|
+
doRequestRendering: doRequestRendering,
|
|
38975
|
+
doRequestHqRenderScript: doRequestHqRenderScript,
|
|
38976
|
+
divaNr: this.divaNr,
|
|
38977
|
+
planningData: plannerData,
|
|
38978
|
+
catalogData: loadedCatData[0],
|
|
38979
|
+
renderRequestInfos: renderRequestInfos,
|
|
38980
|
+
forceReloadPlanning: forceReloadPlanning,
|
|
38981
|
+
alternateRenderInfo: alternateRenderInfo,
|
|
38982
|
+
alternateRenderingsExist: alternateRenderingsExist,
|
|
38983
|
+
camera: viewpoint
|
|
38984
|
+
});
|
|
38985
|
+
case 18:
|
|
38986
|
+
return _context16.abrupt("return", _context16.sent);
|
|
38987
|
+
case 19:
|
|
38988
|
+
return _context16.abrupt("return");
|
|
38989
|
+
case 20:
|
|
38990
|
+
case "end":
|
|
38991
|
+
return _context16.stop();
|
|
38992
|
+
}
|
|
38993
|
+
}, _callee16, this);
|
|
38994
|
+
}));
|
|
38995
|
+
function request3D(_x33, _x34, _x35, _x36, _x37, _x38, _x39) {
|
|
38996
|
+
return _request3D.apply(this, arguments);
|
|
38952
38997
|
}
|
|
38953
|
-
|
|
38954
|
-
|
|
38998
|
+
return request3D;
|
|
38999
|
+
}()
|
|
38955
39000
|
/**
|
|
38956
39001
|
* This function returns the Project (JSON) of the planning data of a specific set.
|
|
38957
39002
|
* @param setId Only contains planner Information of this set
|
|
@@ -38984,15 +39029,6 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
38984
39029
|
}
|
|
38985
39030
|
return JSON.stringify(plannerData);
|
|
38986
39031
|
}
|
|
38987
|
-
|
|
38988
|
-
/**
|
|
38989
|
-
* This function indicates if the 3d handler is still waiting for any rendering. It returnes false when no render job is open.
|
|
38990
|
-
*/
|
|
38991
|
-
}, {
|
|
38992
|
-
key: "checkIsWaitingForRendering",
|
|
38993
|
-
value: function checkIsWaitingForRendering() {
|
|
38994
|
-
return this.handler3D.checkIsWaitingForRendering();
|
|
38995
|
-
}
|
|
38996
39032
|
}, {
|
|
38997
39033
|
key: "createPlanningHash",
|
|
38998
39034
|
value:
|
|
@@ -39682,6 +39718,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
39682
39718
|
}());
|
|
39683
39719
|
_defineProperty(this, "fillBaksetforOnWebPlanerConfigChange", /*#__PURE__*/function () {
|
|
39684
39720
|
var _ref12 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee12(myValues, isInit) {
|
|
39721
|
+
var _myValues;
|
|
39685
39722
|
var set, articles, article;
|
|
39686
39723
|
return _regeneratorRuntime.wrap(function _callee12$(_context12) {
|
|
39687
39724
|
while (1) switch (_context12.prev = _context12.next) {
|
|
@@ -39699,22 +39736,31 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
39699
39736
|
}
|
|
39700
39737
|
return _context12.abrupt("return");
|
|
39701
39738
|
case 5:
|
|
39702
|
-
if (
|
|
39703
|
-
|
|
39704
|
-
|
|
39705
|
-
|
|
39706
|
-
|
|
39739
|
+
if (myValues) {
|
|
39740
|
+
_context12.next = 11;
|
|
39741
|
+
break;
|
|
39742
|
+
}
|
|
39743
|
+
//get first option of the first article
|
|
39744
|
+
articles = set.getDivaArticles();
|
|
39745
|
+
article = articles[Object.keys(articles)[0]];
|
|
39746
|
+
if (article) {
|
|
39747
|
+
_context12.next = 10;
|
|
39748
|
+
break;
|
|
39707
39749
|
}
|
|
39750
|
+
return _context12.abrupt("return");
|
|
39751
|
+
case 10:
|
|
39752
|
+
myValues = article === null || article === void 0 ? void 0 : article.VariantValuesWithoutFreetext;
|
|
39753
|
+
case 11:
|
|
39708
39754
|
_context12.t0 = _this.divaBasketHandler;
|
|
39709
39755
|
_context12.t1 = set;
|
|
39710
|
-
_context12.next =
|
|
39756
|
+
_context12.next = 15;
|
|
39711
39757
|
return setHandlerInstance.fillOrderLinesAndOrderSets(_this.sets, _this.divaBasketHandler, true, _this.doAllowSetPlanner(), _this.ReturnTo);
|
|
39712
|
-
case
|
|
39758
|
+
case 15:
|
|
39713
39759
|
_context12.t2 = _context12.sent;
|
|
39714
|
-
_context12.t3 = Object.keys(myValues);
|
|
39760
|
+
_context12.t3 = Object.keys((_myValues = myValues) !== null && _myValues !== void 0 ? _myValues : {});
|
|
39715
39761
|
_context12.t4 = isInit;
|
|
39716
39762
|
return _context12.abrupt("return", _context12.t0.fillBaksetforOnWebPlanerConfigChange.call(_context12.t0, _context12.t1, _context12.t2, _context12.t3, _context12.t4));
|
|
39717
|
-
case
|
|
39763
|
+
case 19:
|
|
39718
39764
|
case "end":
|
|
39719
39765
|
return _context12.stop();
|
|
39720
39766
|
}
|
package/build/esm/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { h as CatalogPlannerArticleData, C as Cell, e as DivaArticle, g as DivaBasketHandler, f as DivaCatalogData, D as DockingPoint, G as Grid, O as OptionCatalogData, P as Product, R as Rendering, c as Vector2, V as Vector3, i as Vector4, j as creatRenderOrders, d as default, k as getOrigProductId, l as loadAndRepairBasket } from './index-
|
|
1
|
+
export { h as CatalogPlannerArticleData, C as Cell, e as DivaArticle, g as DivaBasketHandler, f as DivaCatalogData, D as DockingPoint, G as Grid, O as OptionCatalogData, P as Product, R as Rendering, c as Vector2, V as Vector3, i as Vector4, j as creatRenderOrders, d as default, k as getOrigProductId, l as loadAndRepairBasket } from './index-218c9bd1.js';
|
|
2
2
|
import '@babel/runtime/helpers/asyncToGenerator';
|
|
3
3
|
import '@babel/runtime/helpers/classCallCheck';
|
|
4
4
|
import '@babel/runtime/helpers/createClass';
|
|
@@ -3,8 +3,8 @@ import { SummaryType } from '../Summary/SummaryItemType';
|
|
|
3
3
|
import { ProductsConfig } from './ProductsConfig';
|
|
4
4
|
import { ContentBoxProps } from '@crystaldesign/content-box';
|
|
5
5
|
export interface ViewConfigData {
|
|
6
|
-
tabOrientation: 'horizontal' | 'vertical'
|
|
7
|
-
tabOrientationMobile: 'horizontal' | 'vertical'
|
|
6
|
+
tabOrientation: 'horizontal' | 'vertical';
|
|
7
|
+
tabOrientationMobile: 'horizontal' | 'vertical';
|
|
8
8
|
doShowConfSettingsExpander: boolean;
|
|
9
9
|
hideFirstStepWhenSingleOPVOnly: boolean;
|
|
10
10
|
hideSingleOPVOnlyAlways: boolean;
|
|
@@ -20,6 +20,7 @@ export interface ViewConfigData {
|
|
|
20
20
|
productsConfig?: ProductsConfig;
|
|
21
21
|
hideSummary: boolean;
|
|
22
22
|
hideCloseButton: boolean;
|
|
23
|
+
tabGroupSearchVisible?: boolean;
|
|
23
24
|
hideMobileFolder: boolean;
|
|
24
25
|
dontShowOrbitInMobile: boolean;
|
|
25
26
|
hideWebConfiguratorTitle?: boolean;
|