@crystaldesign/web-planner-logic 26.2.0-rc.0 → 26.3.0-beta.2
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-baf0eaba.js → DivaBoxPlanner-60c15c9e.js} +2 -2
- package/build/cjs/{DivaStandardPlanner-8502516f.js → DivaStandardPlanner-4ef1a282.js} +2 -2
- package/build/cjs/{DoorPlanner-3447adc3.js → DoorPlanner-0bd9ff7d.js} +1 -1
- package/build/cjs/{Host3DSignalR-55639e78.js → Host3DSignalR-c1b2845d.js} +1 -1
- package/build/cjs/{LiviqueWWSHandler-bf8a67fa.js → LiviqueWWSHandler-91667eb6.js} +1 -1
- package/build/cjs/{PfisterWWSHandler-98977bab.js → PfisterWWSHandler-41f002bb.js} +1 -1
- package/build/cjs/{PlannerHandler2D-076e87ea.js → PlannerHandler2D-aa10f38d.js} +1 -1
- package/build/cjs/{SeriousBasketHandler-b0ec1211.js → SeriousBasketHandler-2828d981.js} +1 -1
- package/build/cjs/{ShelfPlanner-ea40e9d0.js → ShelfPlanner-fe876b5e.js} +1 -1
- package/build/cjs/{StandardWWSHandler-6525fefc.js → StandardWWSHandler-b275174b.js} +1 -1
- package/build/cjs/{index-27cbc865.js → index-c3717ccf.js} +69 -38
- package/build/cjs/index.js +1 -1
- package/build/esm/{DivaBoxPlanner-7f4b1308.js → DivaBoxPlanner-d2f25c2a.js} +2 -2
- package/build/esm/{DivaStandardPlanner-db1a34a2.js → DivaStandardPlanner-eab1c47a.js} +2 -2
- package/build/esm/{DoorPlanner-972231e9.js → DoorPlanner-f2ad2238.js} +1 -1
- package/build/esm/{Host3DSignalR-c98f678a.js → Host3DSignalR-05a8dfbc.js} +1 -1
- package/build/esm/{LiviqueWWSHandler-f21aaf5d.js → LiviqueWWSHandler-48b69465.js} +1 -1
- package/build/esm/{PfisterWWSHandler-7faf7ebe.js → PfisterWWSHandler-39ec9c16.js} +1 -1
- package/build/esm/{PlannerHandler2D-f2ba300a.js → PlannerHandler2D-98c545f6.js} +1 -1
- package/build/esm/{SeriousBasketHandler-09b55dc8.js → SeriousBasketHandler-46f94655.js} +1 -1
- package/build/esm/{ShelfPlanner-be418bcd.js → ShelfPlanner-a76a48d2.js} +1 -1
- package/build/esm/{StandardWWSHandler-92787951.js → StandardWWSHandler-07da1d66.js} +1 -1
- package/build/esm/{index-ec3c1d18.js → index-9b142052.js} +69 -38
- 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/ConfiguratorStructureDataType.d.ts +4 -1
- package/build/types/web-planner-logic/src/interface/ConfiguratorStructureDataType.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/OptionTypes/CatalogOptionDataTypes.d.ts +6 -2
- package/build/types/web-planner-logic/src/interface/OptionTypes/CatalogOptionDataTypes.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/ViewTypes/index.d.ts +8 -1
- package/build/types/web-planner-logic/src/interface/ViewTypes/index.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Article/ArticleOptionState.d.ts +0 -1
- package/build/types/web-planner-logic/src/logic/Article/ArticleOptionState.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/ConfigTree/DivaConfigTree.d.ts +4 -1
- package/build/types/web-planner-logic/src/logic/ConfigTree/DivaConfigTree.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/ConfigTree/DivaConfigTreeHandler.d.ts +1 -1
- package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts +6 -1
- package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts.map +1 -1
- 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 +11 -4
- package/build/types/web-planner-logic/src/logic/Set/DivaSetHandler.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/Articles/Article/DivaCatalogArticle.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/Options/ArticleOptionData.d.ts +6 -1
- package/build/types/web-planner-logic/src/model/Options/ArticleOptionData.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/Options/CatalogOptionData.d.ts +7 -2
- package/build/types/web-planner-logic/src/model/Options/CatalogOptionData.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -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-c3717ccf.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-aa10f38d.js');
|
|
13
13
|
require('@babel/runtime/helpers/objectWithoutProperties');
|
|
14
14
|
require('axios');
|
|
15
15
|
require('@crystaldesign/basket-model');
|
|
@@ -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-c3717ccf.js');
|
|
9
9
|
var DivaUtils = require('@crystaldesign/diva-utils');
|
|
10
|
-
var PlannerHandler2D = require('./PlannerHandler2D-
|
|
10
|
+
var PlannerHandler2D = require('./PlannerHandler2D-aa10f38d.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-c3717ccf.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-c3717ccf.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-c3717ccf.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-c3717ccf.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-c3717ccf.js');
|
|
9
9
|
var _toConsumableArray = require('@babel/runtime/helpers/toConsumableArray');
|
|
10
10
|
var fabric = require('fabric');
|
|
11
11
|
var DivaUtils = require('@crystaldesign/diva-utils');
|
|
@@ -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-c3717ccf.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-c3717ccf.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-c3717ccf.js');
|
|
6
6
|
require('@babel/runtime/helpers/slicedToArray');
|
|
7
7
|
require('@babel/runtime/helpers/asyncToGenerator');
|
|
8
8
|
require('@babel/runtime/helpers/defineProperty');
|
|
@@ -194,7 +194,7 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
194
194
|
}));
|
|
195
195
|
}
|
|
196
196
|
//if data is paginated iterate and fetch all
|
|
197
|
-
if (!(Array.isArray(data.data) && data.total)) {
|
|
197
|
+
if (!(Array.isArray(data.data) && data.total !== undefined)) {
|
|
198
198
|
_context.next = 35;
|
|
199
199
|
break;
|
|
200
200
|
}
|
|
@@ -2233,11 +2233,6 @@ var OptionCatalogData = /*#__PURE__*/function () {
|
|
|
2233
2233
|
get: function get() {
|
|
2234
2234
|
return this.opt.measureKey;
|
|
2235
2235
|
}
|
|
2236
|
-
}, {
|
|
2237
|
-
key: "pairWithOptionsToGroup",
|
|
2238
|
-
get: function get() {
|
|
2239
|
-
return this.opt.propertyObj.pairWithOptionsToGroup;
|
|
2240
|
-
}
|
|
2241
2236
|
}, {
|
|
2242
2237
|
key: "isDescribingState",
|
|
2243
2238
|
get: function get() {
|
|
@@ -2354,6 +2349,16 @@ var OptionCatalogData = /*#__PURE__*/function () {
|
|
|
2354
2349
|
get: function get() {
|
|
2355
2350
|
return this.opt.propertyObj.contentItemId;
|
|
2356
2351
|
}
|
|
2352
|
+
}, {
|
|
2353
|
+
key: "contentItemTeaser",
|
|
2354
|
+
get: function get() {
|
|
2355
|
+
return this.opt.propertyObj.contentItemTeaser;
|
|
2356
|
+
}
|
|
2357
|
+
}, {
|
|
2358
|
+
key: "partOfGroup",
|
|
2359
|
+
get: function get() {
|
|
2360
|
+
return this.opt.propertyObj.partOfGroup;
|
|
2361
|
+
}
|
|
2357
2362
|
}, {
|
|
2358
2363
|
key: "customDimension",
|
|
2359
2364
|
get: function get() {
|
|
@@ -2397,6 +2402,7 @@ var OptionCatalogData = /*#__PURE__*/function () {
|
|
|
2397
2402
|
}]);
|
|
2398
2403
|
}();
|
|
2399
2404
|
var setOptionsProperties = function setOptionsProperties(catalogData, opt, properties) {
|
|
2405
|
+
var _groupOptions$;
|
|
2400
2406
|
for (var i = 0; i < (properties === null || properties === void 0 ? void 0 : properties.length); i++) {
|
|
2401
2407
|
var prop = properties[i];
|
|
2402
2408
|
var key = prop.Codex;
|
|
@@ -2423,9 +2429,13 @@ var setOptionsProperties = function setOptionsProperties(catalogData, opt, prope
|
|
|
2423
2429
|
case 'DIAMETER':
|
|
2424
2430
|
opt.diameter = !!prop.Value;
|
|
2425
2431
|
break;
|
|
2426
|
-
case '
|
|
2427
|
-
|
|
2428
|
-
|
|
2432
|
+
case 'GROUP_OPTIONS_LEFT_AND_RIGHT':
|
|
2433
|
+
var groupOptions = prop.Value.split(';');
|
|
2434
|
+
var position = (_groupOptions$ = groupOptions[1]) === null || _groupOptions$ === void 0 ? void 0 : _groupOptions$.toLocaleLowerCase();
|
|
2435
|
+
opt.partOfGroup = {
|
|
2436
|
+
groupName: groupOptions[0],
|
|
2437
|
+
position: ['l', 'r'].includes(position) ? position : undefined
|
|
2438
|
+
};
|
|
2429
2439
|
case 'REQUIRES_USER_INPUT':
|
|
2430
2440
|
opt.requiresUserInput = !!prop.Value;
|
|
2431
2441
|
break;
|
|
@@ -2490,10 +2500,13 @@ var setOptionsProperties = function setOptionsProperties(catalogData, opt, prope
|
|
|
2490
2500
|
case 'CONTENT_ITEM':
|
|
2491
2501
|
opt.contentItemId = prop.Value;
|
|
2492
2502
|
break;
|
|
2493
|
-
case
|
|
2503
|
+
case 'CONTENT_ITEM_TEASER':
|
|
2504
|
+
opt.contentItemTeaser = JSON.parse(prop.Value);
|
|
2505
|
+
break;
|
|
2506
|
+
case 'REQUIRED_OPTION':
|
|
2494
2507
|
opt.requiredOption = !!prop.Value;
|
|
2495
2508
|
break;
|
|
2496
|
-
case
|
|
2509
|
+
case 'SUGGESTED_OPTION':
|
|
2497
2510
|
opt.suggestedOption = !!prop.Value;
|
|
2498
2511
|
break;
|
|
2499
2512
|
case 'ADDITIONAL_GROUP_FILTER':
|
|
@@ -18853,10 +18866,10 @@ var ArticleOptionData = /*#__PURE__*/function () {
|
|
|
18853
18866
|
return this.opt.catalogOPT.layout;
|
|
18854
18867
|
}
|
|
18855
18868
|
}, {
|
|
18856
|
-
key: "
|
|
18869
|
+
key: "partOfGroup",
|
|
18857
18870
|
get: function get() {
|
|
18858
|
-
if (this.opt.propertyObj.
|
|
18859
|
-
return this.opt.catalogOPT.
|
|
18871
|
+
if (this.opt.propertyObj.partOfGroup !== undefined) return this.opt.propertyObj.partOfGroup;
|
|
18872
|
+
return this.opt.catalogOPT.partOfGroup;
|
|
18860
18873
|
}
|
|
18861
18874
|
}, {
|
|
18862
18875
|
key: "isDescribingState",
|
|
@@ -18922,6 +18935,12 @@ var ArticleOptionData = /*#__PURE__*/function () {
|
|
|
18922
18935
|
if (this.opt.propertyObj.contentItemId !== undefined) return this.opt.propertyObj.contentItemId;
|
|
18923
18936
|
return this.opt.catalogOPT.contentItemId;
|
|
18924
18937
|
}
|
|
18938
|
+
}, {
|
|
18939
|
+
key: "contentItemTeaser",
|
|
18940
|
+
get: function get() {
|
|
18941
|
+
if (this.opt.propertyObj.contentItemTeaser !== undefined) return this.opt.propertyObj.contentItemTeaser;
|
|
18942
|
+
return this.opt.catalogOPT.contentItemTeaser;
|
|
18943
|
+
}
|
|
18925
18944
|
}, {
|
|
18926
18945
|
key: "customDimension",
|
|
18927
18946
|
get: function get() {
|
|
@@ -19016,6 +19035,12 @@ var ArticleOptionData = /*#__PURE__*/function () {
|
|
|
19016
19035
|
if (this.opt.propertyObj.ignorePgrGroupPosition !== undefined) return this.opt.propertyObj.ignorePgrGroupPosition;
|
|
19017
19036
|
return this.opt.catalogOPT.ignorePgrGroupPosition;
|
|
19018
19037
|
}
|
|
19038
|
+
}, {
|
|
19039
|
+
key: "additionalGroupFilter",
|
|
19040
|
+
get: function get() {
|
|
19041
|
+
if (this.opt.propertyObj.additionalGroupFilter !== undefined) return this.opt.propertyObj.additionalGroupFilter;
|
|
19042
|
+
return this.opt.catalogOPT.additionalGroupFilter;
|
|
19043
|
+
}
|
|
19019
19044
|
}, {
|
|
19020
19045
|
key: "mergeIDMToOPG",
|
|
19021
19046
|
get: function get() {
|
|
@@ -22435,11 +22460,6 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
|
|
|
22435
22460
|
get: function get() {
|
|
22436
22461
|
return this.articleOptionState.option.tabGroup_locales;
|
|
22437
22462
|
}
|
|
22438
|
-
}, {
|
|
22439
|
-
key: "pairWithOptionsToGroup",
|
|
22440
|
-
get: function get() {
|
|
22441
|
-
return this.articleOptionState.option.pairWithOptionsToGroup;
|
|
22442
|
-
}
|
|
22443
22463
|
}, {
|
|
22444
22464
|
key: "isMultiselect",
|
|
22445
22465
|
get: function get() {
|
|
@@ -29177,7 +29197,7 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
29177
29197
|
break;
|
|
29178
29198
|
}
|
|
29179
29199
|
_context.next = 4;
|
|
29180
|
-
return Promise.resolve().then(function () { return require('./ShelfPlanner-
|
|
29200
|
+
return Promise.resolve().then(function () { return require('./ShelfPlanner-fe876b5e.js'); });
|
|
29181
29201
|
case 4:
|
|
29182
29202
|
_yield$import = _context.sent;
|
|
29183
29203
|
ShelfPlanner = _yield$import["default"];
|
|
@@ -32252,7 +32272,7 @@ var DivaConfigTreeData = /*#__PURE__*/function () {
|
|
|
32252
32272
|
if (!steps) throw new Error('Step: ' + configStepKey + ' not found');
|
|
32253
32273
|
return {
|
|
32254
32274
|
optionCodex: steps.optionStep.codex,
|
|
32255
|
-
|
|
32275
|
+
partOfGroup: steps.optionStep.partOfGroup,
|
|
32256
32276
|
isMultiselect: steps.optionStep.isMultiselect,
|
|
32257
32277
|
actStepName: steps.optionStep.title,
|
|
32258
32278
|
groupsDefaultClosed: typeof set.CatalogData.defaultGroupsClosed == 'boolean' ? set.CatalogData.defaultGroupsClosed : set.CatalogData.defaultGroupsClosed.includes(steps.optionStep.codex.substring(3))
|
|
@@ -34147,7 +34167,7 @@ var DivaSet = /*#__PURE__*/function () {
|
|
|
34147
34167
|
break;
|
|
34148
34168
|
}
|
|
34149
34169
|
_context5.next = 3;
|
|
34150
|
-
return Promise.resolve().then(function () { return require('./DoorPlanner-
|
|
34170
|
+
return Promise.resolve().then(function () { return require('./DoorPlanner-0bd9ff7d.js'); });
|
|
34151
34171
|
case 3:
|
|
34152
34172
|
_yield$import = _context5.sent;
|
|
34153
34173
|
DoorPlanner = _yield$import["default"];
|
|
@@ -36169,9 +36189,9 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
|
|
|
36169
36189
|
title: name,
|
|
36170
36190
|
codex: codex,
|
|
36171
36191
|
isMultiselect: !!(optionState !== null && optionState !== void 0 && optionState.isMultiselect),
|
|
36192
|
+
partOfGroup: optionState === null || optionState === void 0 ? void 0 : optionState.option.partOfGroup,
|
|
36172
36193
|
configSteps: new Map(),
|
|
36173
|
-
idmVariantType: optionState === null || optionState === void 0 ? void 0 : optionState.idmVariantenArt
|
|
36174
|
-
pairWithOptionsToGroup: optionState === null || optionState === void 0 ? void 0 : optionState.pairWithOptionsToGroup
|
|
36194
|
+
idmVariantType: optionState === null || optionState === void 0 ? void 0 : optionState.idmVariantenArt
|
|
36175
36195
|
};
|
|
36176
36196
|
return newOptionStep;
|
|
36177
36197
|
}
|
|
@@ -36596,7 +36616,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
|
|
|
36596
36616
|
case 103:
|
|
36597
36617
|
return _context3.abrupt("return", {
|
|
36598
36618
|
configItems: configItems,
|
|
36599
|
-
option: optionCodex ?
|
|
36619
|
+
option: optionCodex ? optionState.option : undefined,
|
|
36600
36620
|
selectedItems: selectedItems.map(function (sel) {
|
|
36601
36621
|
return configItems.find(function (c) {
|
|
36602
36622
|
return c.codex === sel;
|
|
@@ -38880,8 +38900,8 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
38880
38900
|
key: "loadConfigItemsOfActSetByConfigStepKey",
|
|
38881
38901
|
value: function () {
|
|
38882
38902
|
var _loadConfigItemsOfActSetByConfigStepKey = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee23(set, configStepKey, visible, hidePricePreview) {
|
|
38883
|
-
var _configItems$option, _configItems$option2;
|
|
38884
|
-
var configItems, paletteType, filterType, stepInfo, contentItemId;
|
|
38903
|
+
var _configItems$option, _configItems$option2, _configItems$option3;
|
|
38904
|
+
var configItems, paletteType, filterType, stepInfo, contentItemId, contentItemTeaser;
|
|
38885
38905
|
return _regeneratorRuntime__default["default"].wrap(function _callee23$(_context25) {
|
|
38886
38906
|
while (1) switch (_context25.prev = _context25.next) {
|
|
38887
38907
|
case 0:
|
|
@@ -38898,6 +38918,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
38898
38918
|
filterType = set.configTree.getCurFilterType(configStepKey, configItems.configItems);
|
|
38899
38919
|
stepInfo = set.configTree.getStepInfo(configStepKey);
|
|
38900
38920
|
contentItemId = (_configItems$option = configItems.option) === null || _configItems$option === void 0 ? void 0 : _configItems$option.contentItemId;
|
|
38921
|
+
contentItemTeaser = (_configItems$option2 = configItems.option) === null || _configItems$option2 === void 0 ? void 0 : _configItems$option2.contentItemTeaser;
|
|
38901
38922
|
return _context25.abrupt("return", _objectSpread$a(_objectSpread$a(_objectSpread$a({
|
|
38902
38923
|
isRenderedNotInSettingPalette: set.configTree.isRenderedNotInSettingPalette(configStepKey),
|
|
38903
38924
|
isRenderedInAccessorieStep: set.configTree.isRenderedInAccessorieStep(configStepKey),
|
|
@@ -38908,9 +38929,10 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
38908
38929
|
stepInfo: stepInfo
|
|
38909
38930
|
}, set.configTree.getOptionStuff(configStepKey, set)), {}, {
|
|
38910
38931
|
contentItemId: contentItemId,
|
|
38911
|
-
conceptFilter: (_configItems$
|
|
38932
|
+
conceptFilter: (_configItems$option3 = configItems.option) === null || _configItems$option3 === void 0 ? void 0 : _configItems$option3.additionalGroupFilter,
|
|
38933
|
+
contentItemTeaser: contentItemTeaser
|
|
38912
38934
|
}));
|
|
38913
|
-
case
|
|
38935
|
+
case 13:
|
|
38914
38936
|
case "end":
|
|
38915
38937
|
return _context25.stop();
|
|
38916
38938
|
}
|
|
@@ -41463,7 +41485,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
41463
41485
|
flatValues: !!((_ops$val = ops.val) !== null && _ops$val !== void 0 && _ops$val.isPIMFlatValue),
|
|
41464
41486
|
isVariantAttribute: (_ops$val2 = ops.val) === null || _ops$val2 === void 0 ? void 0 : _ops$val2.isVariantAttribute,
|
|
41465
41487
|
sendToPIM: ops.option.sendToPIM,
|
|
41466
|
-
reqirementLevel: ops.reqirementLevel
|
|
41488
|
+
reqirementLevel: ops.isDoShow ? ops.reqirementLevel : undefined
|
|
41467
41489
|
};
|
|
41468
41490
|
});
|
|
41469
41491
|
};
|
|
@@ -41497,7 +41519,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
41497
41519
|
break;
|
|
41498
41520
|
case 3:
|
|
41499
41521
|
_context12.next = 5;
|
|
41500
|
-
return Promise.resolve().then(function () { return require('./PfisterWWSHandler-
|
|
41522
|
+
return Promise.resolve().then(function () { return require('./PfisterWWSHandler-41f002bb.js'); });
|
|
41501
41523
|
case 5:
|
|
41502
41524
|
_yield$import = _context12.sent;
|
|
41503
41525
|
PfisterWWSHandler = _yield$import["default"];
|
|
@@ -41505,7 +41527,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
41505
41527
|
return _context12.abrupt("break", 27);
|
|
41506
41528
|
case 9:
|
|
41507
41529
|
_context12.next = 11;
|
|
41508
|
-
return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-
|
|
41530
|
+
return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-91667eb6.js'); });
|
|
41509
41531
|
case 11:
|
|
41510
41532
|
_yield$import2 = _context12.sent;
|
|
41511
41533
|
LiviqueWWSHandler = _yield$import2["default"];
|
|
@@ -41513,7 +41535,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
41513
41535
|
return _context12.abrupt("break", 27);
|
|
41514
41536
|
case 15:
|
|
41515
41537
|
_context12.next = 17;
|
|
41516
|
-
return Promise.resolve().then(function () { return require('./SeriousBasketHandler-
|
|
41538
|
+
return Promise.resolve().then(function () { return require('./SeriousBasketHandler-2828d981.js'); });
|
|
41517
41539
|
case 17:
|
|
41518
41540
|
_yield$import3 = _context12.sent;
|
|
41519
41541
|
SeriousWWSHandler = _yield$import3["default"];
|
|
@@ -41521,7 +41543,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
41521
41543
|
return _context12.abrupt("break", 27);
|
|
41522
41544
|
case 21:
|
|
41523
41545
|
_context12.next = 23;
|
|
41524
|
-
return Promise.resolve().then(function () { return require('./StandardWWSHandler-
|
|
41546
|
+
return Promise.resolve().then(function () { return require('./StandardWWSHandler-b275174b.js'); });
|
|
41525
41547
|
case 23:
|
|
41526
41548
|
_yield$import4 = _context12.sent;
|
|
41527
41549
|
StandardWWSHandler = _yield$import4["default"];
|
|
@@ -42945,7 +42967,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
42945
42967
|
while (1) switch (_context3.prev = _context3.next) {
|
|
42946
42968
|
case 0:
|
|
42947
42969
|
_context3.next = 2;
|
|
42948
|
-
return Promise.resolve().then(function () { return require('./Host3DSignalR-
|
|
42970
|
+
return Promise.resolve().then(function () { return require('./Host3DSignalR-c1b2845d.js'); });
|
|
42949
42971
|
case 2:
|
|
42950
42972
|
_yield$import = _context3.sent;
|
|
42951
42973
|
Host3DSignalR = _yield$import["default"];
|
|
@@ -43084,6 +43106,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
43084
43106
|
if (params.saveMode == '1' && params.url) {
|
|
43085
43107
|
var rendering = new Rendering('PLACEHOLDER', 'PLACEHOLDER', '', 0, 0, false, false, 0, false, false, 'PERMANENT');
|
|
43086
43108
|
rendering.UrlToSavedRendering = params.url;
|
|
43109
|
+
rendering.addImgAsBlob(Buffer.from(params.buffer), isLayerMask);
|
|
43087
43110
|
this.updatePlannerRenderingInView(rendering, true);
|
|
43088
43111
|
}
|
|
43089
43112
|
LOG$4.warn('Error when handling receive Rendering. Not waiting for new Rendering but also not in cache ' + params.hash + '; saveMode: ' + params.saveMode);
|
|
@@ -44636,7 +44659,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
44636
44659
|
break;
|
|
44637
44660
|
case 8:
|
|
44638
44661
|
_context4.next = 10;
|
|
44639
|
-
return Promise.resolve().then(function () { return require('./DivaStandardPlanner-
|
|
44662
|
+
return Promise.resolve().then(function () { return require('./DivaStandardPlanner-4ef1a282.js'); });
|
|
44640
44663
|
case 10:
|
|
44641
44664
|
_yield$import = _context4.sent;
|
|
44642
44665
|
DivaStandardPlanner = _yield$import["default"];
|
|
@@ -44647,7 +44670,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
44647
44670
|
return _context4.abrupt("break", 21);
|
|
44648
44671
|
case 15:
|
|
44649
44672
|
_context4.next = 17;
|
|
44650
|
-
return Promise.resolve().then(function () { return require('./DivaBoxPlanner-
|
|
44673
|
+
return Promise.resolve().then(function () { return require('./DivaBoxPlanner-60c15c9e.js'); });
|
|
44651
44674
|
case 17:
|
|
44652
44675
|
_yield$import2 = _context4.sent;
|
|
44653
44676
|
DivaBoxPlanner = _yield$import2["default"];
|
|
@@ -45905,7 +45928,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
45905
45928
|
return setHandlerInstance.loadConfigItemsOfActSetByConfigStepKey(_this.actSet(), configStepKey, visible, !!((_this$state2 = _this.state) !== null && _this$state2 !== void 0 && _this$state2.hidePrices || (_this$state3 = _this.state) !== null && _this$state3 !== void 0 && _this$state3.hideConfigPricePreview));
|
|
45906
45929
|
case 2:
|
|
45907
45930
|
retValues = _context.sent;
|
|
45908
|
-
(_this$updateConfigIte = _this.updateConfigItems) === null || _this$updateConfigIte === void 0 || _this$updateConfigIte.call(_this, configStepKey, retValues.configItems, retValues.selectedItems, retValues.actStepName, retValues.paletteType, retValues.filterType, paletteId, isUpdate, retValues.visible, retValues.stepInfo, retValues.isRenderedInAccessorieStep, retValues.isRenderedNotInSettingPalette, retValues.optionCodex, retValues.notTotallyMatichingOPVs, retValues.
|
|
45931
|
+
(_this$updateConfigIte = _this.updateConfigItems) === null || _this$updateConfigIte === void 0 || _this$updateConfigIte.call(_this, configStepKey, retValues.configItems, retValues.selectedItems, retValues.actStepName, retValues.paletteType, retValues.filterType, paletteId, isUpdate, retValues.visible, retValues.stepInfo, retValues.isRenderedInAccessorieStep, retValues.isRenderedNotInSettingPalette, retValues.optionCodex, retValues.notTotallyMatichingOPVs, retValues.isMultiselect, retValues.groupsDefaultClosed, retValues.contentItemId, retValues.conceptFilter, retValues.contentItemTeaser);
|
|
45909
45932
|
case 4:
|
|
45910
45933
|
case "end":
|
|
45911
45934
|
return _context.stop();
|
|
@@ -46514,6 +46537,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
46514
46537
|
loadSuccessful = _context14.sent;
|
|
46515
46538
|
if (this.plannerConfig.configuratorSessionId === undefined && (!this.divaBasketHandler.hasConfiguratorSessionIdGetter || DivaUtils__default["default"].businessMetrics.getConfiguratorSessionId() === undefined)) {
|
|
46516
46539
|
DivaUtils__default["default"].businessMetrics.setConfiguratorSessionId();
|
|
46540
|
+
} else if (this.plannerConfig.configuratorSessionId && DivaUtils__default["default"].businessMetrics.getConfiguratorSessionId() === undefined) {
|
|
46541
|
+
DivaUtils__default["default"].businessMetrics.setConfiguratorSessionId(this.plannerConfig.configuratorSessionId);
|
|
46517
46542
|
}
|
|
46518
46543
|
if (!loadSuccessful) {
|
|
46519
46544
|
_context14.next = 31;
|
|
@@ -48812,6 +48837,12 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
48812
48837
|
var set = this.actSet();
|
|
48813
48838
|
return set ? favoritesHandlerInstance.FavoritesDefined(set) : false;
|
|
48814
48839
|
}
|
|
48840
|
+
}, {
|
|
48841
|
+
key: "getVariantValues",
|
|
48842
|
+
value: function getVariantValues(basketIds) {
|
|
48843
|
+
var set = this.actSet();
|
|
48844
|
+
return set.getGeneralVariantValues(basketIds);
|
|
48845
|
+
}
|
|
48815
48846
|
}, {
|
|
48816
48847
|
key: "getValidVariantsLength",
|
|
48817
48848
|
value: function () {
|
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-c3717ccf.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-9b142052.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-98c545f6.js';
|
|
11
11
|
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
12
12
|
import 'axios';
|
|
13
13
|
import '@crystaldesign/basket-model';
|
|
@@ -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-9b142052.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-98c545f6.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-9b142052.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-9b142052.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';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
|
|
2
2
|
import _createClass from '@babel/runtime/helpers/createClass';
|
|
3
|
-
import './index-
|
|
3
|
+
import './index-9b142052.js';
|
|
4
4
|
import '@babel/runtime/helpers/slicedToArray';
|
|
5
5
|
import '@babel/runtime/helpers/asyncToGenerator';
|
|
6
6
|
import '@babel/runtime/helpers/defineProperty';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
|
|
2
2
|
import _createClass from '@babel/runtime/helpers/createClass';
|
|
3
|
-
import { a as articleHandlerInstance } from './index-
|
|
3
|
+
import { a as articleHandlerInstance } from './index-9b142052.js';
|
|
4
4
|
import { SAPOrderLineData } from '@crystaldesign/basket-model';
|
|
5
5
|
import DivaUtils, { DivaError } from '@crystaldesign/diva-utils';
|
|
6
6
|
import '@babel/runtime/helpers/slicedToArray';
|
|
@@ -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 { c as Vector2, D as DockingPoint, V as Vector3 } from './index-
|
|
6
|
+
import { c as Vector2, D as DockingPoint, V as Vector3 } from './index-9b142052.js';
|
|
7
7
|
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
8
8
|
import { fabric } from 'fabric';
|
|
9
9
|
import DivaUtils, { DivaError } from '@crystaldesign/diva-utils';
|
|
@@ -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 { s as summaryHandlerInstance } from './index-
|
|
4
|
+
import { s as summaryHandlerInstance } from './index-9b142052.js';
|
|
5
5
|
import DivaUtils from '@crystaldesign/diva-utils';
|
|
6
6
|
import '@babel/runtime/helpers/slicedToArray';
|
|
7
7
|
import '@babel/runtime/helpers/asyncToGenerator';
|
|
@@ -4,7 +4,7 @@ import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
|
|
|
4
4
|
import _createClass from '@babel/runtime/helpers/createClass';
|
|
5
5
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
6
6
|
import _regeneratorRuntime from '@babel/runtime/regenerator';
|
|
7
|
-
import { G as Grid, b as setHandlerInstance, a as articleHandlerInstance } from './index-
|
|
7
|
+
import { G as Grid, b as setHandlerInstance, a as articleHandlerInstance } from './index-9b142052.js';
|
|
8
8
|
import DivaUtils from '@crystaldesign/diva-utils';
|
|
9
9
|
import '@babel/runtime/helpers/slicedToArray';
|
|
10
10
|
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
|
|
2
2
|
import _createClass from '@babel/runtime/helpers/createClass';
|
|
3
|
-
import './index-
|
|
3
|
+
import './index-9b142052.js';
|
|
4
4
|
import '@babel/runtime/helpers/slicedToArray';
|
|
5
5
|
import '@babel/runtime/helpers/asyncToGenerator';
|
|
6
6
|
import '@babel/runtime/helpers/defineProperty';
|