@crystaldesign/web-planner-logic 26.13.0-beta.11 → 26.13.0-beta.13
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-76112465.js → DivaBoxPlanner-5064ca34.js} +2 -2
- package/build/cjs/{DivaStandardPlanner-2ec3cf66.js → DivaStandardPlanner-6ef85473.js} +2 -2
- package/build/cjs/{DoorPlanner-903b1704.js → DoorPlanner-6c243f25.js} +1 -1
- package/build/cjs/{Host3DSignalR-18443430.js → Host3DSignalR-b67b054f.js} +1 -1
- package/build/cjs/{LiviqueWWSHandler-f8f80ead.js → LiviqueWWSHandler-d1923d69.js} +1 -1
- package/build/cjs/{PfisterWWSHandler-1e2fa7cc.js → PfisterWWSHandler-06401ac4.js} +1 -1
- package/build/cjs/{PlannerHandler2D-2772a96b.js → PlannerHandler2D-6fdc6c14.js} +1 -1
- package/build/cjs/{SeriousBasketHandler-db8488d2.js → SeriousBasketHandler-61cdfc93.js} +1 -1
- package/build/cjs/{ShelfPlanner-87cecae1.js → ShelfPlanner-0a786abd.js} +1 -1
- package/build/cjs/{StandardWWSHandler-537180c7.js → StandardWWSHandler-0bc63ba7.js} +1 -1
- package/build/cjs/{index-0fefa866.js → index-7e845075.js} +16 -12
- package/build/cjs/index.js +1 -1
- package/build/esm/{DivaBoxPlanner-9145f178.js → DivaBoxPlanner-ced0207c.js} +2 -2
- package/build/esm/{DivaStandardPlanner-7331d5ae.js → DivaStandardPlanner-00a9a468.js} +2 -2
- package/build/esm/{DoorPlanner-cc097ffd.js → DoorPlanner-eae7b3c6.js} +1 -1
- package/build/esm/{Host3DSignalR-72ecec93.js → Host3DSignalR-4c979825.js} +1 -1
- package/build/esm/{LiviqueWWSHandler-4d18f0f8.js → LiviqueWWSHandler-24ce43fd.js} +1 -1
- package/build/esm/{PfisterWWSHandler-156c7d93.js → PfisterWWSHandler-3e7a9cac.js} +1 -1
- package/build/esm/{PlannerHandler2D-83b17b7f.js → PlannerHandler2D-56b913f2.js} +1 -1
- package/build/esm/{SeriousBasketHandler-1652bb9b.js → SeriousBasketHandler-ad860f62.js} +1 -1
- package/build/esm/{ShelfPlanner-9f76f2ea.js → ShelfPlanner-29a4116c.js} +1 -1
- package/build/esm/{StandardWWSHandler-649e12c5.js → StandardWWSHandler-deb3d639.js} +1 -1
- package/build/esm/{index-44a2cb08.js → index-c1e29f6c.js} +16 -12
- package/build/esm/index.js +1 -1
- package/build/types/web-planner-logic/src/model/Articles/Article/DivaCatalogArticle.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-7e845075.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-6fdc6c14.js');
|
|
13
13
|
require('@babel/runtime/helpers/objectWithoutProperties');
|
|
14
14
|
require('axios');
|
|
15
15
|
require('@babel/runtime/helpers/typeof');
|
|
@@ -6,10 +6,10 @@ 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-7e845075.js');
|
|
10
10
|
var DivaUtils = require('@crystaldesign/diva-utils');
|
|
11
11
|
var planner2dCore = require('@crystaldesign/planner-2d-core');
|
|
12
|
-
var PlannerHandler2D = require('./PlannerHandler2D-
|
|
12
|
+
var PlannerHandler2D = require('./PlannerHandler2D-6fdc6c14.js');
|
|
13
13
|
require('@babel/runtime/helpers/slicedToArray');
|
|
14
14
|
require('@babel/runtime/helpers/objectWithoutProperties');
|
|
15
15
|
require('axios');
|
|
@@ -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-7e845075.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-7e845075.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-7e845075.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-7e845075.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-7e845075.js');
|
|
9
9
|
var _possibleConstructorReturn = require('@babel/runtime/helpers/possibleConstructorReturn');
|
|
10
10
|
var _getPrototypeOf = require('@babel/runtime/helpers/getPrototypeOf');
|
|
11
11
|
var _get = require('@babel/runtime/helpers/get');
|
|
@@ -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-7e845075.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-7e845075.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-7e845075.js');
|
|
6
6
|
require('@babel/runtime/helpers/slicedToArray');
|
|
7
7
|
require('@babel/runtime/helpers/asyncToGenerator');
|
|
8
8
|
require('@babel/runtime/helpers/defineProperty');
|
|
@@ -19928,9 +19928,11 @@ function addSupplierColors(set, catalogArticleData, allOPVsOfOPT, supplierColors
|
|
|
19928
19928
|
Name: groupName,
|
|
19929
19929
|
IsOPVG: '1'
|
|
19930
19930
|
}, catalog), catalog);
|
|
19931
|
+
// multiselectOptions is a getter that scans every catalog option — evaluate it once, not per supplier color
|
|
19932
|
+
var multiselectOptions = catalog.multiselectOptions;
|
|
19931
19933
|
var articleOPG = new ArticleOptionValueData(getArticleOptionValueType(set, 'OPVSUPPLIER_COLORS', {
|
|
19932
19934
|
RUL: rule
|
|
19933
|
-
}, catalogOPG, catalogArticleData, false, newOPT,
|
|
19935
|
+
}, catalogOPG, catalogArticleData, false, newOPT, multiselectOptions), catalog);
|
|
19934
19936
|
allOPVsOfOPT.set('OPVSUPPLIER_COLORS', articleOPG);
|
|
19935
19937
|
var supplierColorsOpvs = new Map();
|
|
19936
19938
|
for (var i = 0; i < supplierColors.length; i++) {
|
|
@@ -19948,7 +19950,7 @@ function addSupplierColors(set, catalogArticleData, allOPVsOfOPT, supplierColors
|
|
|
19948
19950
|
HexColor: col.HexColor,
|
|
19949
19951
|
GroupName: groupName
|
|
19950
19952
|
}, catalog), catalog);
|
|
19951
|
-
supplierColorsOpvs.set('OPV' + col.OptionValueCodex, new ArticleOptionValueData(getArticleOptionValueType(set, 'OPV' + col.OptionValueCodex, {}, colorCatalogOpv, catalogArticleData, true, articleOPG,
|
|
19953
|
+
supplierColorsOpvs.set('OPV' + col.OptionValueCodex, new ArticleOptionValueData(getArticleOptionValueType(set, 'OPV' + col.OptionValueCodex, {}, colorCatalogOpv, catalogArticleData, true, articleOPG, multiselectOptions), catalog));
|
|
19952
19954
|
}
|
|
19953
19955
|
articleOPG.initOPVsInOPG(supplierColorsOpvs);
|
|
19954
19956
|
}
|
|
@@ -20096,9 +20098,11 @@ function initArticleRelations(articleRelations, catalogArticleData, catalog) {
|
|
|
20096
20098
|
}
|
|
20097
20099
|
function loadArticleOptions(json, catalogArticleData, set) {
|
|
20098
20100
|
var catalogArticle = catalogArticleData.catalogArticle;
|
|
20101
|
+
// multiselectOptions is a getter that scans every catalog option — evaluate it once, not per article option
|
|
20102
|
+
var catalogMultiselectOptions = new Set(set.CatalogData.multiselectOptions);
|
|
20099
20103
|
var multiselectOptions = json.OPT.filter(function (o) {
|
|
20100
20104
|
var _o$OCD;
|
|
20101
|
-
return
|
|
20105
|
+
return catalogMultiselectOptions.has((_o$OCD = o.OCD) !== null && _o$OCD !== void 0 ? _o$OCD : o.Codex);
|
|
20102
20106
|
}).map(function (o) {
|
|
20103
20107
|
return o.Codex;
|
|
20104
20108
|
});
|
|
@@ -32880,7 +32884,7 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
32880
32884
|
break;
|
|
32881
32885
|
}
|
|
32882
32886
|
_context.next = 4;
|
|
32883
|
-
return Promise.resolve().then(function () { return require('./ShelfPlanner-
|
|
32887
|
+
return Promise.resolve().then(function () { return require('./ShelfPlanner-0a786abd.js'); });
|
|
32884
32888
|
case 4:
|
|
32885
32889
|
_yield$import = _context.sent;
|
|
32886
32890
|
ShelfPlanner = _yield$import["default"];
|
|
@@ -41573,7 +41577,7 @@ var DivaSet = /*#__PURE__*/function () {
|
|
|
41573
41577
|
break;
|
|
41574
41578
|
}
|
|
41575
41579
|
_context5.next = 3;
|
|
41576
|
-
return Promise.resolve().then(function () { return require('./DoorPlanner-
|
|
41580
|
+
return Promise.resolve().then(function () { return require('./DoorPlanner-6c243f25.js'); });
|
|
41577
41581
|
case 3:
|
|
41578
41582
|
_yield$import = _context5.sent;
|
|
41579
41583
|
DoorPlanner = _yield$import["default"];
|
|
@@ -49527,7 +49531,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
49527
49531
|
break;
|
|
49528
49532
|
case 3:
|
|
49529
49533
|
_context12.next = 5;
|
|
49530
|
-
return Promise.resolve().then(function () { return require('./PfisterWWSHandler-
|
|
49534
|
+
return Promise.resolve().then(function () { return require('./PfisterWWSHandler-06401ac4.js'); });
|
|
49531
49535
|
case 5:
|
|
49532
49536
|
_yield$import = _context12.sent;
|
|
49533
49537
|
PfisterWWSHandler = _yield$import["default"];
|
|
@@ -49535,7 +49539,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
49535
49539
|
return _context12.abrupt("break", 27);
|
|
49536
49540
|
case 9:
|
|
49537
49541
|
_context12.next = 11;
|
|
49538
|
-
return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-
|
|
49542
|
+
return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-d1923d69.js'); });
|
|
49539
49543
|
case 11:
|
|
49540
49544
|
_yield$import2 = _context12.sent;
|
|
49541
49545
|
LiviqueWWSHandler = _yield$import2["default"];
|
|
@@ -49543,7 +49547,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
49543
49547
|
return _context12.abrupt("break", 27);
|
|
49544
49548
|
case 15:
|
|
49545
49549
|
_context12.next = 17;
|
|
49546
|
-
return Promise.resolve().then(function () { return require('./SeriousBasketHandler-
|
|
49550
|
+
return Promise.resolve().then(function () { return require('./SeriousBasketHandler-61cdfc93.js'); });
|
|
49547
49551
|
case 17:
|
|
49548
49552
|
_yield$import3 = _context12.sent;
|
|
49549
49553
|
SeriousWWSHandler = _yield$import3["default"];
|
|
@@ -49551,7 +49555,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
49551
49555
|
return _context12.abrupt("break", 27);
|
|
49552
49556
|
case 21:
|
|
49553
49557
|
_context12.next = 23;
|
|
49554
|
-
return Promise.resolve().then(function () { return require('./StandardWWSHandler-
|
|
49558
|
+
return Promise.resolve().then(function () { return require('./StandardWWSHandler-0bc63ba7.js'); });
|
|
49555
49559
|
case 23:
|
|
49556
49560
|
_yield$import4 = _context12.sent;
|
|
49557
49561
|
StandardWWSHandler = _yield$import4["default"];
|
|
@@ -50938,7 +50942,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
50938
50942
|
//If we need real time rendering initialize the SignalR and 3D host connection Handler
|
|
50939
50943
|
bootMark('signalr: chunk import start');
|
|
50940
50944
|
_context3.next = 3;
|
|
50941
|
-
return Promise.resolve().then(function () { return require('./Host3DSignalR-
|
|
50945
|
+
return Promise.resolve().then(function () { return require('./Host3DSignalR-b67b054f.js'); });
|
|
50942
50946
|
case 3:
|
|
50943
50947
|
_yield$import = _context3.sent;
|
|
50944
50948
|
Host3DSignalR = _yield$import["default"];
|
|
@@ -52683,7 +52687,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
52683
52687
|
break;
|
|
52684
52688
|
case 8:
|
|
52685
52689
|
_context5.next = 10;
|
|
52686
|
-
return Promise.resolve().then(function () { return require('./DivaStandardPlanner-
|
|
52690
|
+
return Promise.resolve().then(function () { return require('./DivaStandardPlanner-6ef85473.js'); });
|
|
52687
52691
|
case 10:
|
|
52688
52692
|
_yield$import = _context5.sent;
|
|
52689
52693
|
DivaStandardPlanner = _yield$import["default"];
|
|
@@ -52694,7 +52698,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
52694
52698
|
return _context5.abrupt("break", 21);
|
|
52695
52699
|
case 15:
|
|
52696
52700
|
_context5.next = 17;
|
|
52697
|
-
return Promise.resolve().then(function () { return require('./DivaBoxPlanner-
|
|
52701
|
+
return Promise.resolve().then(function () { return require('./DivaBoxPlanner-5064ca34.js'); });
|
|
52698
52702
|
case 17:
|
|
52699
52703
|
_yield$import2 = _context5.sent;
|
|
52700
52704
|
DivaBoxPlanner = _yield$import2["default"];
|
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-7e845075.js');
|
|
6
6
|
var planner2dCore = require('@crystaldesign/planner-2d-core');
|
|
7
7
|
require('@babel/runtime/helpers/slicedToArray');
|
|
8
8
|
require('@babel/runtime/helpers/asyncToGenerator');
|
|
@@ -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-c1e29f6c.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-56b913f2.js';
|
|
11
11
|
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
12
12
|
import 'axios';
|
|
13
13
|
import '@babel/runtime/helpers/typeof';
|
|
@@ -4,10 +4,10 @@ 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 { V as Vector3, P as PlannerElementData, B as BoundingBox } from './index-
|
|
7
|
+
import { V as Vector3, P as PlannerElementData, B as BoundingBox } from './index-c1e29f6c.js';
|
|
8
8
|
import DivaUtils, { DivaError, md5 } from '@crystaldesign/diva-utils';
|
|
9
9
|
import { computeDockedTransform } from '@crystaldesign/planner-2d-core';
|
|
10
|
-
import { d as dockingPointHandlerInst, h as handler2D } from './PlannerHandler2D-
|
|
10
|
+
import { d as dockingPointHandlerInst, h as handler2D } from './PlannerHandler2D-56b913f2.js';
|
|
11
11
|
import '@babel/runtime/helpers/slicedToArray';
|
|
12
12
|
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
13
13
|
import 'axios';
|
|
@@ -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-c1e29f6c.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 { d as bootMark, R as Rendering, H as HQRenderScript } from './index-
|
|
6
|
+
import { d as bootMark, R as Rendering, H as HQRenderScript } from './index-c1e29f6c.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-c1e29f6c.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-c1e29f6c.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, S as SVGUtils } from './index-
|
|
6
|
+
import { c as Vector2, S as SVGUtils } from './index-c1e29f6c.js';
|
|
7
7
|
import _possibleConstructorReturn from '@babel/runtime/helpers/possibleConstructorReturn';
|
|
8
8
|
import _getPrototypeOf from '@babel/runtime/helpers/getPrototypeOf';
|
|
9
9
|
import _get from '@babel/runtime/helpers/get';
|
|
@@ -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-c1e29f6c.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, a as articleHandlerInstance, b as setHandlerInstance } from './index-
|
|
7
|
+
import { G as Grid, a as articleHandlerInstance, b as setHandlerInstance } from './index-c1e29f6c.js';
|
|
8
8
|
import DivaUtils, { DivaError } 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-c1e29f6c.js';
|
|
4
4
|
import '@babel/runtime/helpers/slicedToArray';
|
|
5
5
|
import '@babel/runtime/helpers/asyncToGenerator';
|
|
6
6
|
import '@babel/runtime/helpers/defineProperty';
|
|
@@ -19907,9 +19907,11 @@ function addSupplierColors(set, catalogArticleData, allOPVsOfOPT, supplierColors
|
|
|
19907
19907
|
Name: groupName,
|
|
19908
19908
|
IsOPVG: '1'
|
|
19909
19909
|
}, catalog), catalog);
|
|
19910
|
+
// multiselectOptions is a getter that scans every catalog option — evaluate it once, not per supplier color
|
|
19911
|
+
var multiselectOptions = catalog.multiselectOptions;
|
|
19910
19912
|
var articleOPG = new ArticleOptionValueData(getArticleOptionValueType(set, 'OPVSUPPLIER_COLORS', {
|
|
19911
19913
|
RUL: rule
|
|
19912
|
-
}, catalogOPG, catalogArticleData, false, newOPT,
|
|
19914
|
+
}, catalogOPG, catalogArticleData, false, newOPT, multiselectOptions), catalog);
|
|
19913
19915
|
allOPVsOfOPT.set('OPVSUPPLIER_COLORS', articleOPG);
|
|
19914
19916
|
var supplierColorsOpvs = new Map();
|
|
19915
19917
|
for (var i = 0; i < supplierColors.length; i++) {
|
|
@@ -19927,7 +19929,7 @@ function addSupplierColors(set, catalogArticleData, allOPVsOfOPT, supplierColors
|
|
|
19927
19929
|
HexColor: col.HexColor,
|
|
19928
19930
|
GroupName: groupName
|
|
19929
19931
|
}, catalog), catalog);
|
|
19930
|
-
supplierColorsOpvs.set('OPV' + col.OptionValueCodex, new ArticleOptionValueData(getArticleOptionValueType(set, 'OPV' + col.OptionValueCodex, {}, colorCatalogOpv, catalogArticleData, true, articleOPG,
|
|
19932
|
+
supplierColorsOpvs.set('OPV' + col.OptionValueCodex, new ArticleOptionValueData(getArticleOptionValueType(set, 'OPV' + col.OptionValueCodex, {}, colorCatalogOpv, catalogArticleData, true, articleOPG, multiselectOptions), catalog));
|
|
19931
19933
|
}
|
|
19932
19934
|
articleOPG.initOPVsInOPG(supplierColorsOpvs);
|
|
19933
19935
|
}
|
|
@@ -20075,9 +20077,11 @@ function initArticleRelations(articleRelations, catalogArticleData, catalog) {
|
|
|
20075
20077
|
}
|
|
20076
20078
|
function loadArticleOptions(json, catalogArticleData, set) {
|
|
20077
20079
|
var catalogArticle = catalogArticleData.catalogArticle;
|
|
20080
|
+
// multiselectOptions is a getter that scans every catalog option — evaluate it once, not per article option
|
|
20081
|
+
var catalogMultiselectOptions = new Set(set.CatalogData.multiselectOptions);
|
|
20078
20082
|
var multiselectOptions = json.OPT.filter(function (o) {
|
|
20079
20083
|
var _o$OCD;
|
|
20080
|
-
return
|
|
20084
|
+
return catalogMultiselectOptions.has((_o$OCD = o.OCD) !== null && _o$OCD !== void 0 ? _o$OCD : o.Codex);
|
|
20081
20085
|
}).map(function (o) {
|
|
20082
20086
|
return o.Codex;
|
|
20083
20087
|
});
|
|
@@ -32859,7 +32863,7 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
32859
32863
|
break;
|
|
32860
32864
|
}
|
|
32861
32865
|
_context.next = 4;
|
|
32862
|
-
return import('./ShelfPlanner-
|
|
32866
|
+
return import('./ShelfPlanner-29a4116c.js');
|
|
32863
32867
|
case 4:
|
|
32864
32868
|
_yield$import = _context.sent;
|
|
32865
32869
|
ShelfPlanner = _yield$import["default"];
|
|
@@ -41552,7 +41556,7 @@ var DivaSet = /*#__PURE__*/function () {
|
|
|
41552
41556
|
break;
|
|
41553
41557
|
}
|
|
41554
41558
|
_context5.next = 3;
|
|
41555
|
-
return import('./DoorPlanner-
|
|
41559
|
+
return import('./DoorPlanner-eae7b3c6.js');
|
|
41556
41560
|
case 3:
|
|
41557
41561
|
_yield$import = _context5.sent;
|
|
41558
41562
|
DoorPlanner = _yield$import["default"];
|
|
@@ -49506,7 +49510,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
49506
49510
|
break;
|
|
49507
49511
|
case 3:
|
|
49508
49512
|
_context12.next = 5;
|
|
49509
|
-
return import('./PfisterWWSHandler-
|
|
49513
|
+
return import('./PfisterWWSHandler-3e7a9cac.js');
|
|
49510
49514
|
case 5:
|
|
49511
49515
|
_yield$import = _context12.sent;
|
|
49512
49516
|
PfisterWWSHandler = _yield$import["default"];
|
|
@@ -49514,7 +49518,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
49514
49518
|
return _context12.abrupt("break", 27);
|
|
49515
49519
|
case 9:
|
|
49516
49520
|
_context12.next = 11;
|
|
49517
|
-
return import('./LiviqueWWSHandler-
|
|
49521
|
+
return import('./LiviqueWWSHandler-24ce43fd.js');
|
|
49518
49522
|
case 11:
|
|
49519
49523
|
_yield$import2 = _context12.sent;
|
|
49520
49524
|
LiviqueWWSHandler = _yield$import2["default"];
|
|
@@ -49522,7 +49526,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
49522
49526
|
return _context12.abrupt("break", 27);
|
|
49523
49527
|
case 15:
|
|
49524
49528
|
_context12.next = 17;
|
|
49525
|
-
return import('./SeriousBasketHandler-
|
|
49529
|
+
return import('./SeriousBasketHandler-ad860f62.js');
|
|
49526
49530
|
case 17:
|
|
49527
49531
|
_yield$import3 = _context12.sent;
|
|
49528
49532
|
SeriousWWSHandler = _yield$import3["default"];
|
|
@@ -49530,7 +49534,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
49530
49534
|
return _context12.abrupt("break", 27);
|
|
49531
49535
|
case 21:
|
|
49532
49536
|
_context12.next = 23;
|
|
49533
|
-
return import('./StandardWWSHandler-
|
|
49537
|
+
return import('./StandardWWSHandler-deb3d639.js');
|
|
49534
49538
|
case 23:
|
|
49535
49539
|
_yield$import4 = _context12.sent;
|
|
49536
49540
|
StandardWWSHandler = _yield$import4["default"];
|
|
@@ -50917,7 +50921,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
50917
50921
|
//If we need real time rendering initialize the SignalR and 3D host connection Handler
|
|
50918
50922
|
bootMark('signalr: chunk import start');
|
|
50919
50923
|
_context3.next = 3;
|
|
50920
|
-
return import('./Host3DSignalR-
|
|
50924
|
+
return import('./Host3DSignalR-4c979825.js');
|
|
50921
50925
|
case 3:
|
|
50922
50926
|
_yield$import = _context3.sent;
|
|
50923
50927
|
Host3DSignalR = _yield$import["default"];
|
|
@@ -52662,7 +52666,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
52662
52666
|
break;
|
|
52663
52667
|
case 8:
|
|
52664
52668
|
_context5.next = 10;
|
|
52665
|
-
return import('./DivaStandardPlanner-
|
|
52669
|
+
return import('./DivaStandardPlanner-00a9a468.js');
|
|
52666
52670
|
case 10:
|
|
52667
52671
|
_yield$import = _context5.sent;
|
|
52668
52672
|
DivaStandardPlanner = _yield$import["default"];
|
|
@@ -52673,7 +52677,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
52673
52677
|
return _context5.abrupt("break", 21);
|
|
52674
52678
|
case 15:
|
|
52675
52679
|
_context5.next = 17;
|
|
52676
|
-
return import('./DivaBoxPlanner-
|
|
52680
|
+
return import('./DivaBoxPlanner-ced0207c.js');
|
|
52677
52681
|
case 17:
|
|
52678
52682
|
_yield$import2 = _context5.sent;
|
|
52679
52683
|
DivaBoxPlanner = _yield$import2["default"];
|
package/build/esm/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { I as ArtifactGenerationError, h as CatalogPlannerArticleData, C as Cell, e as DivaArticle, a as DivaArticleHandler, g as DivaBasketHandler, f as DivaCatalogData, b as DivaSetHandler, G as Grid, J as JsonDataCache, O as OptionCatalogData, i as PROPERTY_SCHEMAS, P as PlannerElementData, R as Rendering, c as Vector2, V as Vector3, w as Vector4, d as bootMark, q as bootMarksEnabled, t as bootNetworkMark, u as bootNow, v as bootRequestName, A as collectStructureStepKeys, x as creatRenderOrders, j as decodePropertyValue, D as default, n as editorKindOf, k as encodePropertyValue, y as getOrigProductId, o as getSeriousSetNamePlaceholder, z as headlessSession, l as loadAndRepairBasket, p as propertyEncodingOf, m as propertyValueProblem, r as rawStringOf, E as runHeadlessArtifactPass, F as runHeadlessArtifactPassBatch } from './index-
|
|
1
|
+
export { I as ArtifactGenerationError, h as CatalogPlannerArticleData, C as Cell, e as DivaArticle, a as DivaArticleHandler, g as DivaBasketHandler, f as DivaCatalogData, b as DivaSetHandler, G as Grid, J as JsonDataCache, O as OptionCatalogData, i as PROPERTY_SCHEMAS, P as PlannerElementData, R as Rendering, c as Vector2, V as Vector3, w as Vector4, d as bootMark, q as bootMarksEnabled, t as bootNetworkMark, u as bootNow, v as bootRequestName, A as collectStructureStepKeys, x as creatRenderOrders, j as decodePropertyValue, D as default, n as editorKindOf, k as encodePropertyValue, y as getOrigProductId, o as getSeriousSetNamePlaceholder, z as headlessSession, l as loadAndRepairBasket, p as propertyEncodingOf, m as propertyValueProblem, r as rawStringOf, E as runHeadlessArtifactPass, F as runHeadlessArtifactPassBatch } from './index-c1e29f6c.js';
|
|
2
2
|
export { DockingPoint } from '@crystaldesign/planner-2d-core';
|
|
3
3
|
import '@babel/runtime/helpers/slicedToArray';
|
|
4
4
|
import '@babel/runtime/helpers/asyncToGenerator';
|
package/build/types/web-planner-logic/src/model/Articles/Article/DivaCatalogArticle.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DivaCatalogArticle.d.ts","sourceRoot":"","sources":["../../../../../../../src/model/Articles/Article/DivaCatalogArticle.ts"],"names":[],"mappings":"AACA,OAAO,kBAAkB,MAAM,sBAAsB,CAAC;AACtD,OAAO,sBAAsB,MAAM,sCAAsC,CAAC;AAC1E,OAAO,EAAE,aAAa,EAAE,MAAM,2EAA2E,CAAC;AAC1G,OAAO,eAAe,MAAM,2BAA2B,CAAC;AACxD,OAAO,iBAAiB,MAAM,iCAAiC,CAAC;AAChE,OAAO,sBAAsB,MAAM,sCAAsC,CAAC;AAE1E,OAAO,OAAO,MAAM,oDAAoD,CAAC;AACzE,OAAO,EAAE,qBAAqB,EAAE,0BAA0B,EAAE,MAAM,+EAA+E,CAAC;AAKlJ,wBAAgB,iBAAiB,CAC/B,GAAG,EAAE,OAAO,EACZ,kBAAkB,EAAE,kBAAkB,EACtC,YAAY,EAAE,GAAG,CAAC,MAAM,EAAE,sBAAsB,CAAC,EACjD,cAAc,EAAE,aAAa,EAAE,EAC/B,OAAO,EAAE,eAAe,EACxB,MAAM,EAAE,iBAAiB,EACzB,IAAI,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"DivaCatalogArticle.d.ts","sourceRoot":"","sources":["../../../../../../../src/model/Articles/Article/DivaCatalogArticle.ts"],"names":[],"mappings":"AACA,OAAO,kBAAkB,MAAM,sBAAsB,CAAC;AACtD,OAAO,sBAAsB,MAAM,sCAAsC,CAAC;AAC1E,OAAO,EAAE,aAAa,EAAE,MAAM,2EAA2E,CAAC;AAC1G,OAAO,eAAe,MAAM,2BAA2B,CAAC;AACxD,OAAO,iBAAiB,MAAM,iCAAiC,CAAC;AAChE,OAAO,sBAAsB,MAAM,sCAAsC,CAAC;AAE1E,OAAO,OAAO,MAAM,oDAAoD,CAAC;AACzE,OAAO,EAAE,qBAAqB,EAAE,0BAA0B,EAAE,MAAM,+EAA+E,CAAC;AAKlJ,wBAAgB,iBAAiB,CAC/B,GAAG,EAAE,OAAO,EACZ,kBAAkB,EAAE,kBAAkB,EACtC,YAAY,EAAE,GAAG,CAAC,MAAM,EAAE,sBAAsB,CAAC,EACjD,cAAc,EAAE,aAAa,EAAE,EAC/B,OAAO,EAAE,eAAe,EACxB,MAAM,EAAE,iBAAiB,EACzB,IAAI,CAAC,EAAE,MAAM,QAkDd;AAED,wBAAsB,uBAAuB,CAAC,kBAAkB,EAAE,kBAAkB,EAAE,GAAG,EAAE,OAAO,iBAwEjG;AAwLD,wBAAgB,UAAU,CAAC,IAAI,EAAE,GAAG,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,OAAO,EAAE,eAAe,QAUrG;AAED,wBAAgB,aAAa,CAAC,OAAO,EAAE,eAAe,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,YAAY,CAAC,EAAE,MAAM,EAAE,QAuEtH;AA6BD,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,GAAG,qBAAqB,CAkC1G;AAED,wBAAgB,yBAAyB,CACvC,GAAG,EAAE,OAAO,EACZ,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,GAAG,EACZ,UAAU,EAAE,sBAAsB,EAClC,SAAS,EAAE,kBAAkB,EAC7B,YAAY,EAAE,OAAO,EACrB,MAAM,EAAE,sBAAsB,GAAG,iBAAiB,EAClD,kBAAkB,CAAC,EAAE,MAAM,EAAE,8BA4G9B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crystaldesign/web-planner-logic",
|
|
3
|
-
"version": "26.13.0-beta.
|
|
3
|
+
"version": "26.13.0-beta.13",
|
|
4
4
|
"description": "Headless web planner: session, geometry, render orders and product structure logic.",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"jest-junit": "^16.0.0"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@crystaldesign/planner-2d-core": "26.13.0-beta.
|
|
17
|
+
"@crystaldesign/planner-2d-core": "26.13.0-beta.13",
|
|
18
18
|
"@microsoft/signalr": "^8.0.7",
|
|
19
19
|
"@microsoft/signalr-protocol-msgpack": "^8.0.7",
|
|
20
20
|
"axios": "^1.7.7",
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"types": "./build/types/web-planner-logic/src/index.d.ts",
|
|
41
41
|
"module": "build/esm/index.js",
|
|
42
42
|
"main": "build/cjs/index.js",
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "e998aa2d97ea834849273c48008b971ed2e3059c"
|
|
44
44
|
}
|