@crystaldesign/web-planner-logic 24.11.0-beta.8 → 24.11.0-rc.0
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-ffc9cacc.js → DivaBoxPlanner-a5e169ca.js} +9 -9
- package/build/cjs/{DivaStandardPlanner-032faedf.js → DivaStandardPlanner-d833dda6.js} +81 -25
- package/build/cjs/{DoorPlanner-2c8eabea.js → DoorPlanner-4ad0b55d.js} +1 -1
- package/build/cjs/{Host3DSignalR-ab303488.js → Host3DSignalR-18d5959b.js} +8 -8
- package/build/cjs/{LiviqueWWSHandler-6dd8c925.js → LiviqueWWSHandler-2df9ce37.js} +1 -1
- package/build/cjs/{PfisterWWSHandler-ce1d2c5c.js → PfisterWWSHandler-04557c0d.js} +1 -1
- package/build/cjs/{PlannerHandler2D-acbe78c9.js → PlannerHandler2D-ba17ec51.js} +96 -38
- package/build/cjs/{ProductBasketHandler-6bd0ed7f.js → ProductBasketHandler-a74547b4.js} +1 -1
- package/build/cjs/{SeriousBasketHandler-9d026108.js → SeriousBasketHandler-d7eeeb38.js} +1 -1
- package/build/cjs/{ShelfPlanner-cfc4b586.js → ShelfPlanner-546bdbd7.js} +15 -13
- package/build/cjs/{StandardWWSHandler-b0e4b854.js → StandardWWSHandler-33b00bda.js} +1 -1
- package/build/cjs/{index-985e0a24.js → index-079a47df.js} +599 -489
- package/build/cjs/index.js +1 -1
- package/build/esm/{DivaBoxPlanner-16978433.js → DivaBoxPlanner-a95c530a.js} +9 -9
- package/build/esm/{DivaStandardPlanner-31539e5a.js → DivaStandardPlanner-660cec0e.js} +81 -25
- package/build/esm/{DoorPlanner-6bd46cc6.js → DoorPlanner-9e3b1dff.js} +1 -1
- package/build/esm/{Host3DSignalR-beed9f5c.js → Host3DSignalR-514ab7ea.js} +8 -8
- package/build/esm/{LiviqueWWSHandler-d414cf17.js → LiviqueWWSHandler-5bbc4f4c.js} +1 -1
- package/build/esm/{PfisterWWSHandler-63deaba6.js → PfisterWWSHandler-fea10934.js} +1 -1
- package/build/esm/{PlannerHandler2D-87a9a88d.js → PlannerHandler2D-e204acd1.js} +96 -38
- package/build/esm/{ProductBasketHandler-e6fdce11.js → ProductBasketHandler-ce45363b.js} +1 -1
- package/build/esm/{SeriousBasketHandler-2e80e89c.js → SeriousBasketHandler-41c875f2.js} +1 -1
- package/build/esm/{ShelfPlanner-bba67ad6.js → ShelfPlanner-88da02c7.js} +15 -13
- package/build/esm/{StandardWWSHandler-96d9aeb1.js → StandardWWSHandler-26c6ecb8.js} +1 -1
- package/build/esm/{index-53d1332b.js → index-ae50d2a1.js} +599 -489
- 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/Articles/AccessoireItemType.d.ts +2 -0
- package/build/types/web-planner-logic/src/interface/Articles/AccessoireItemType.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/Articles/CatalogPlannerArticleDataType.d.ts +4 -0
- package/build/types/web-planner-logic/src/interface/Articles/CatalogPlannerArticleDataType.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/Articles/CatalogPlannerArticleViewDataType.d.ts +2 -0
- package/build/types/web-planner-logic/src/interface/Articles/CatalogPlannerArticleViewDataType.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/interface/Planner/DockingPointDataType.d.ts +1 -1
- package/build/types/web-planner-logic/src/interface/Planner/DockingPointDataType.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/Planner/IDivaViewPlannerElement.d.ts +2 -0
- package/build/types/web-planner-logic/src/interface/Planner/IDivaViewPlannerElement.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/Planner/PlannerDataType.d.ts +2 -0
- package/build/types/web-planner-logic/src/interface/Planner/PlannerDataType.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Article/DivaArticle.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Article/DivaArticleHandler.d.ts +10 -0
- package/build/types/web-planner-logic/src/logic/Article/DivaArticleHandler.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/DivaCatalogHandler.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Planner/DivaPlannerHandler.d.ts +4 -1
- package/build/types/web-planner-logic/src/logic/Planner/DivaPlannerHandler.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Planner/DivaStandardPlanner.d.ts +1 -1
- package/build/types/web-planner-logic/src/logic/Planner/DivaStandardPlanner.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Planner/PlannerUtils/DockingPointHandler.d.ts +4 -1
- package/build/types/web-planner-logic/src/logic/Planner/PlannerUtils/DockingPointHandler.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Planner/PlannerUtils/PlannerHandler2D.d.ts +1 -0
- package/build/types/web-planner-logic/src/logic/Planner/PlannerUtils/PlannerHandler2D.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Planner/PlannerUtils/SVGUtils.d.ts +1 -1
- package/build/types/web-planner-logic/src/logic/Planner/PlannerUtils/SVGUtils.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Planner/Rendering/PlannerHandler3D.d.ts +4 -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/Planner/Rendering/Rendering.d.ts +6 -0
- package/build/types/web-planner-logic/src/logic/Planner/Rendering/Rendering.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/Articles/CatalogArticleData.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/Articles/CatalogPlannerArticleData.d.ts +2 -0
- package/build/types/web-planner-logic/src/model/Articles/CatalogPlannerArticleData.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/build/types/web-planner-logic/src/model/Options/CatalogOptionValueData.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/Planner/PlannerElementData.d.ts +4 -0
- package/build/types/web-planner-logic/src/model/Planner/PlannerElementData.d.ts.map +1 -1
- package/package.json +2 -2
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-079a47df.js');
|
|
6
6
|
require('@babel/runtime/helpers/asyncToGenerator');
|
|
7
7
|
require('@babel/runtime/helpers/classCallCheck');
|
|
8
8
|
require('@babel/runtime/helpers/createClass');
|
|
@@ -3,10 +3,10 @@ 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, B as BoundingBox } from './index-
|
|
6
|
+
import { V as Vector3, B as BoundingBox } from './index-ae50d2a1.js';
|
|
7
7
|
import DivaUtils, { DivaError, md5 } from '@crystaldesign/diva-utils';
|
|
8
8
|
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
9
|
-
import { d as dockingPointHandlerInst, P as PlannerElementData, h as handler2D } from './PlannerHandler2D-
|
|
9
|
+
import { d as dockingPointHandlerInst, P as PlannerElementData, h as handler2D } from './PlannerHandler2D-e204acd1.js';
|
|
10
10
|
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
11
11
|
import '@babel/runtime/helpers/slicedToArray';
|
|
12
12
|
import 'axios';
|
|
@@ -2855,7 +2855,7 @@ var ConstructionRulesHandler = /*#__PURE__*/function () {
|
|
|
2855
2855
|
}, {
|
|
2856
2856
|
key: "updateOptionLogicBoxPlanner",
|
|
2857
2857
|
value: function () {
|
|
2858
|
-
var _updateOptionLogicBoxPlanner = _asyncToGenerator(
|
|
2858
|
+
var _updateOptionLogicBoxPlanner = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(boxPlannerGrid, changedOPTs, targetElements, forceResetCornerElements) {
|
|
2859
2859
|
var startTime, resultMessage, optionHandler, allElements, i, j, doChangeRetailArticleNumbers;
|
|
2860
2860
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
2861
2861
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -3852,7 +3852,7 @@ var DivaBoxPlanner = /*#__PURE__*/function () {
|
|
|
3852
3852
|
return _createClass(DivaBoxPlanner, [{
|
|
3853
3853
|
key: "initPlanner",
|
|
3854
3854
|
value: function () {
|
|
3855
|
-
var _initPlanner = _asyncToGenerator(
|
|
3855
|
+
var _initPlanner = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(setPlanData) {
|
|
3856
3856
|
var planData, jsonElements, i, jsonElement, elementID, plannerElement, data, highesElemId, _jsonElement, params;
|
|
3857
3857
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
3858
3858
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -4010,7 +4010,7 @@ var DivaBoxPlanner = /*#__PURE__*/function () {
|
|
|
4010
4010
|
}, {
|
|
4011
4011
|
key: "addPlannerElement",
|
|
4012
4012
|
value: (function () {
|
|
4013
|
-
var _addPlannerElement = _asyncToGenerator(
|
|
4013
|
+
var _addPlannerElement = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2(basketID, params) {
|
|
4014
4014
|
var plannerElement, data;
|
|
4015
4015
|
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
4016
4016
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -4054,7 +4054,7 @@ var DivaBoxPlanner = /*#__PURE__*/function () {
|
|
|
4054
4054
|
}, {
|
|
4055
4055
|
key: "extendPlanner",
|
|
4056
4056
|
value: function () {
|
|
4057
|
-
var _extendPlanner = _asyncToGenerator(
|
|
4057
|
+
var _extendPlanner = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3(setPlanData, globalBoundingBox) {
|
|
4058
4058
|
return _regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
4059
4059
|
while (1) switch (_context3.prev = _context3.next) {
|
|
4060
4060
|
case 0:
|
|
@@ -4078,7 +4078,7 @@ var DivaBoxPlanner = /*#__PURE__*/function () {
|
|
|
4078
4078
|
}, {
|
|
4079
4079
|
key: "copyPlannerElement",
|
|
4080
4080
|
value: (function () {
|
|
4081
|
-
var _copyPlannerElement = _asyncToGenerator(
|
|
4081
|
+
var _copyPlannerElement = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4(articleCopyRelation, copyInfo) {
|
|
4082
4082
|
var _this = this;
|
|
4083
4083
|
var gridIsPrepared, plannerElementsToLoadSVG, that, copyType, i, allDPs;
|
|
4084
4084
|
return _regeneratorRuntime.wrap(function _callee4$(_context4) {
|
|
@@ -4213,7 +4213,7 @@ var DivaBoxPlanner = /*#__PURE__*/function () {
|
|
|
4213
4213
|
}, {
|
|
4214
4214
|
key: "deletePlannerElement",
|
|
4215
4215
|
value: (function () {
|
|
4216
|
-
var _deletePlannerElement = _asyncToGenerator(
|
|
4216
|
+
var _deletePlannerElement = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee5(elementId, autoCorrectAVL_AVR, deletionType) {
|
|
4217
4217
|
var pos, newSelectedPos, newSelectedCol, allElements, allElementsToDelete, i, doUpdateWholeLogic, _this$boxPlannerGrid$;
|
|
4218
4218
|
return _regeneratorRuntime.wrap(function _callee5$(_context5) {
|
|
4219
4219
|
while (1) switch (_context5.prev = _context5.next) {
|
|
@@ -4358,7 +4358,7 @@ var DivaBoxPlanner = /*#__PURE__*/function () {
|
|
|
4358
4358
|
}, {
|
|
4359
4359
|
key: "updatePlanner",
|
|
4360
4360
|
value: (function () {
|
|
4361
|
-
var _updatePlanner = _asyncToGenerator(
|
|
4361
|
+
var _updatePlanner = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee6(changedOPT, targetElements) {
|
|
4362
4362
|
var message, posInGrid, elemToCheck, copyDir, allElementsToCopy, _allElementsToCopy, allElementsToDelete, _allElementsToDelete, _message;
|
|
4363
4363
|
return _regeneratorRuntime.wrap(function _callee6$(_context6) {
|
|
4364
4364
|
while (1) switch (_context6.prev = _context6.next) {
|
|
@@ -3,8 +3,8 @@ 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, B as BoundingBox } from './index-
|
|
7
|
-
import { d as dockingPointHandlerInst, h as handler2D, P as PlannerElementData } from './PlannerHandler2D-
|
|
6
|
+
import { V as Vector3, c as Vector2, B as BoundingBox } from './index-ae50d2a1.js';
|
|
7
|
+
import { d as dockingPointHandlerInst, h as handler2D, P as PlannerElementData } from './PlannerHandler2D-e204acd1.js';
|
|
8
8
|
import DivaUtils, { DivaError, md5 } from '@crystaldesign/diva-utils';
|
|
9
9
|
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
10
10
|
import '@babel/runtime/helpers/slicedToArray';
|
|
@@ -47,9 +47,11 @@ var DivaStandardPlanner = /*#__PURE__*/function () {
|
|
|
47
47
|
_defineProperty(this, "IDM3DCatCodex", '');
|
|
48
48
|
_defineProperty(this, "nextElementId", 1);
|
|
49
49
|
_defineProperty(this, "collisionHandler", void 0);
|
|
50
|
-
_defineProperty(this, "
|
|
50
|
+
_defineProperty(this, "dockToAVUorAVOororAVNorAVSorAVC", function (plannerElement, targetElements) {
|
|
51
51
|
var successfullyDockedAVU = false;
|
|
52
52
|
var successfullyDockedAVO = false;
|
|
53
|
+
var successfullyDockedAVN = false;
|
|
54
|
+
var successfullyDockedAVS = false;
|
|
53
55
|
var successfullyDockedAVC = false;
|
|
54
56
|
if (plannerElement.HasAVU) {
|
|
55
57
|
//Try to dock Element to free AVR
|
|
@@ -63,7 +65,7 @@ var DivaStandardPlanner = /*#__PURE__*/function () {
|
|
|
63
65
|
var newTargetElements = accessories.map(function (item) {
|
|
64
66
|
return _this.plannerElements.get(item.getElementId());
|
|
65
67
|
});
|
|
66
|
-
successfullyDockedAVU = _this.
|
|
68
|
+
successfullyDockedAVU = _this.dockToAVUorAVOororAVNorAVSorAVC(plannerElement, newTargetElements);
|
|
67
69
|
}
|
|
68
70
|
}
|
|
69
71
|
}
|
|
@@ -77,15 +79,33 @@ var DivaStandardPlanner = /*#__PURE__*/function () {
|
|
|
77
79
|
}
|
|
78
80
|
}
|
|
79
81
|
if (!successfullyDockedAVU && !successfullyDockedAVO) {
|
|
80
|
-
if (plannerElement.
|
|
81
|
-
var _successDP2 = dockingPointHandlerInst.tryDockElement(plannerElement, '
|
|
82
|
+
if (plannerElement.HasAVN) {
|
|
83
|
+
var _successDP2 = dockingPointHandlerInst.tryDockElement(plannerElement, 'AVN', targetElements);
|
|
82
84
|
if (_successDP2) {
|
|
83
|
-
|
|
85
|
+
successfullyDockedAVN = true;
|
|
84
86
|
_this.updateWorldPos(plannerElement, _successDP2);
|
|
85
87
|
}
|
|
86
88
|
}
|
|
87
89
|
}
|
|
88
|
-
|
|
90
|
+
if (!successfullyDockedAVU && !successfullyDockedAVO && !successfullyDockedAVN) {
|
|
91
|
+
if (plannerElement.HasAVS) {
|
|
92
|
+
var _successDP3 = dockingPointHandlerInst.tryDockElement(plannerElement, 'AVS', targetElements);
|
|
93
|
+
if (_successDP3) {
|
|
94
|
+
successfullyDockedAVS = true;
|
|
95
|
+
_this.updateWorldPos(plannerElement, _successDP3);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
if (!successfullyDockedAVU && !successfullyDockedAVO && !successfullyDockedAVN && !successfullyDockedAVS) {
|
|
100
|
+
if (plannerElement.HasAVC) {
|
|
101
|
+
var _successDP4 = dockingPointHandlerInst.tryDockElement(plannerElement, 'AVC', targetElements);
|
|
102
|
+
if (_successDP4) {
|
|
103
|
+
successfullyDockedAVC = true;
|
|
104
|
+
_this.updateWorldPos(plannerElement, _successDP4);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
return successfullyDockedAVU || successfullyDockedAVO || successfullyDockedAVN || successfullyDockedAVS || successfullyDockedAVC;
|
|
89
109
|
});
|
|
90
110
|
this.set = set;
|
|
91
111
|
this.plannerID = plannerId;
|
|
@@ -193,6 +213,40 @@ var DivaStandardPlanner = /*#__PURE__*/function () {
|
|
|
193
213
|
}
|
|
194
214
|
}
|
|
195
215
|
}
|
|
216
|
+
if (curElement.HasAVN) {
|
|
217
|
+
var avnDPs = curElement.getDockingDockingPointsByType('AVN');
|
|
218
|
+
avnDPs = avnDPs.sort(function (a, b) {
|
|
219
|
+
return that.plannerElements.get(a.OnElementId).WorldPosCorner.x - that.plannerElements.get(a.OnElementId).WorldPosCorner.x;
|
|
220
|
+
});
|
|
221
|
+
for (var i = 0; i < avnDPs.length; i++) {
|
|
222
|
+
var _refElementId3 = avnDPs[i].OnElementId;
|
|
223
|
+
if (allElementsToUpdate.has(_refElementId3)) {
|
|
224
|
+
var _refElement3 = that.plannerElements.get(_refElementId3);
|
|
225
|
+
_refElement3.PosNr = posNrParent;
|
|
226
|
+
_refElement3.AccessoirePosNr = posNrAcc;
|
|
227
|
+
allElementsToUpdate["delete"](_refElementId3);
|
|
228
|
+
posNrAcc++;
|
|
229
|
+
accElements.push(_refElement3);
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
if (curElement.HasAVS) {
|
|
234
|
+
var avsDPs = curElement.getDockingDockingPointsByType('AVS');
|
|
235
|
+
avsDPs = avsDPs.sort(function (a, b) {
|
|
236
|
+
return that.plannerElements.get(a.OnElementId).WorldPosCorner.x - that.plannerElements.get(a.OnElementId).WorldPosCorner.x;
|
|
237
|
+
});
|
|
238
|
+
for (var i = 0; i < avsDPs.length; i++) {
|
|
239
|
+
var _refElementId4 = avsDPs[i].OnElementId;
|
|
240
|
+
if (allElementsToUpdate.has(_refElementId4)) {
|
|
241
|
+
var _refElement4 = that.plannerElements.get(_refElementId4);
|
|
242
|
+
_refElement4.PosNr = posNrParent;
|
|
243
|
+
_refElement4.AccessoirePosNr = posNrAcc;
|
|
244
|
+
allElementsToUpdate["delete"](_refElementId4);
|
|
245
|
+
posNrAcc++;
|
|
246
|
+
accElements.push(_refElement4);
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
}
|
|
196
250
|
_this2.plannerElements.forEach(function (element) {
|
|
197
251
|
if (element.getIsNotDockedAccessoire() && element.getParentElementId() === curElement.getElementId()) {
|
|
198
252
|
element.PosNr = posNrParent;
|
|
@@ -296,7 +350,7 @@ var DivaStandardPlanner = /*#__PURE__*/function () {
|
|
|
296
350
|
var element = sortedPlannerElementsbyPosNr[i];
|
|
297
351
|
alreadyCorrectedId.push(element.ElementId);
|
|
298
352
|
if (i > firstI) {
|
|
299
|
-
var dockingPoints = element.getDockingDockingPointsByType('AVL').concat(element.getDockingDockingPointsByType('AVR')).concat(element.getDockingDockingPointsByType('AVU')).concat(element.getDockingDockingPointsByType('AVO')).concat(element.getDockingDockingPointsByType('AVC'));
|
|
353
|
+
var dockingPoints = element.getDockingDockingPointsByType('AVL').concat(element.getDockingDockingPointsByType('AVR')).concat(element.getDockingDockingPointsByType('AVU')).concat(element.getDockingDockingPointsByType('AVO')).concat(element.getDockingDockingPointsByType('AVN')).concat(element.getDockingDockingPointsByType('AVS')).concat(element.getDockingDockingPointsByType('AVC'));
|
|
300
354
|
for (var j = 0; j < dockingPoints.length; j++) {
|
|
301
355
|
//Nur wenn er auf ein element schaut das schon gedockt ist korrigieren
|
|
302
356
|
if (alreadyCorrectedId.indexOf(dockingPoints[j].OnElementId) >= 0) {
|
|
@@ -323,7 +377,7 @@ var DivaStandardPlanner = /*#__PURE__*/function () {
|
|
|
323
377
|
}, {
|
|
324
378
|
key: "addElementToWorld",
|
|
325
379
|
value: (function () {
|
|
326
|
-
var _addElementToWorld = _asyncToGenerator(
|
|
380
|
+
var _addElementToWorld = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(plannerElement, dockingPointInfos, suppressDock, globalBoundingBox) {
|
|
327
381
|
var xOffset,
|
|
328
382
|
setToTransform,
|
|
329
383
|
dockingFound,
|
|
@@ -392,7 +446,7 @@ var DivaStandardPlanner = /*#__PURE__*/function () {
|
|
|
392
446
|
success = this.dockToAVLorAVR(plannerElement, [this.plannerElements.get(targetElemIdToDock)]);
|
|
393
447
|
}
|
|
394
448
|
if (!success) {
|
|
395
|
-
success = this.
|
|
449
|
+
success = this.dockToAVUorAVOororAVNorAVSorAVC(plannerElement, [this.plannerElements.get(targetElemIdToDock)]);
|
|
396
450
|
}
|
|
397
451
|
if (success) {
|
|
398
452
|
_context.next = 31;
|
|
@@ -423,7 +477,7 @@ var DivaStandardPlanner = /*#__PURE__*/function () {
|
|
|
423
477
|
if (suppressDock) _success = false;
|
|
424
478
|
if (!_success) {
|
|
425
479
|
//No free AVR or AVL Docking Point
|
|
426
|
-
_success = this.
|
|
480
|
+
_success = this.dockToAVUorAVOororAVNorAVSorAVC(plannerElement, allPlannerElements);
|
|
427
481
|
if (suppressDock) _success = false;
|
|
428
482
|
if (!_success) {
|
|
429
483
|
//This is the center position of the element - This is needed in order to set the static room layout correctly
|
|
@@ -457,7 +511,7 @@ var DivaStandardPlanner = /*#__PURE__*/function () {
|
|
|
457
511
|
}, {
|
|
458
512
|
key: "tryToDockWithDifferentSVGWithFormula",
|
|
459
513
|
value: function () {
|
|
460
|
-
var _tryToDockWithDifferentSVGWithFormula = _asyncToGenerator(
|
|
514
|
+
var _tryToDockWithDifferentSVGWithFormula = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2(plannerElement, targetElemIdToDock) {
|
|
461
515
|
var success, svgsWithFormula, article, origVariantValues, i, elements, variantValues, vv, key, _elements, _variantValues, _key;
|
|
462
516
|
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
463
517
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -540,10 +594,10 @@ var DivaStandardPlanner = /*#__PURE__*/function () {
|
|
|
540
594
|
}
|
|
541
595
|
if (!successfullyDockedAVL) {
|
|
542
596
|
if (plannerElement.HasAVR) {
|
|
543
|
-
var
|
|
544
|
-
if (
|
|
597
|
+
var _successDP5 = dockingPointHandlerInst.tryDockElement(plannerElement, 'AVR', targetElements);
|
|
598
|
+
if (_successDP5) {
|
|
545
599
|
successfullyDockedAVR = true;
|
|
546
|
-
this.updateWorldPos(plannerElement,
|
|
600
|
+
this.updateWorldPos(plannerElement, _successDP5);
|
|
547
601
|
}
|
|
548
602
|
}
|
|
549
603
|
}
|
|
@@ -669,7 +723,9 @@ var DivaStandardPlanner = /*#__PURE__*/function () {
|
|
|
669
723
|
var AVCs = that.getNeighborElements(plannerElementId, 'AVC');
|
|
670
724
|
var AVOs = that.getNeighborElements(plannerElementId, 'AVO');
|
|
671
725
|
var AVUs = that.getNeighborElements(plannerElementId, 'AVU');
|
|
672
|
-
var
|
|
726
|
+
var AVNs = that.getNeighborElements(plannerElementId, 'AVN');
|
|
727
|
+
var AVSs = that.getNeighborElements(plannerElementId, 'AVS');
|
|
728
|
+
var accs = AVCs.concat(AVOs).concat(AVUs).concat(AVNs).concat(AVSs);
|
|
673
729
|
for (var i = 0; i < accs.length; i++) {
|
|
674
730
|
if (visitedElements.indexOf(accs[i]) >= 0) continue;
|
|
675
731
|
listOfAccessoires.push(accs[i]);
|
|
@@ -699,7 +755,7 @@ var DivaStandardPlanner = /*#__PURE__*/function () {
|
|
|
699
755
|
}, {
|
|
700
756
|
key: "updatePlanner",
|
|
701
757
|
value: function () {
|
|
702
|
-
var _updatePlanner = _asyncToGenerator(
|
|
758
|
+
var _updatePlanner = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {
|
|
703
759
|
var allPlannerElements, elemtsWhereSomethingChanged, i, elem, doReload, elementsToDelete, elementsLostDockingRelation;
|
|
704
760
|
return _regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
705
761
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -763,7 +819,7 @@ var DivaStandardPlanner = /*#__PURE__*/function () {
|
|
|
763
819
|
}, {
|
|
764
820
|
key: "extendPlanner",
|
|
765
821
|
value: (function () {
|
|
766
|
-
var _extendPlanner = _asyncToGenerator(
|
|
822
|
+
var _extendPlanner = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4(setPlanData, globalBoundingBox) {
|
|
767
823
|
var planDataString, planData, jsonElements, elementsSortedbyPosNr, accElements, oldElementidMapping, i, jsonElement, plannerElement, data, curElement, DPsInfo, j, dpInfo, sourceDP, targetElement, targetDP;
|
|
768
824
|
return _regeneratorRuntime.wrap(function _callee4$(_context4) {
|
|
769
825
|
while (1) switch (_context4.prev = _context4.next) {
|
|
@@ -869,7 +925,7 @@ var DivaStandardPlanner = /*#__PURE__*/function () {
|
|
|
869
925
|
}, {
|
|
870
926
|
key: "initPlanner",
|
|
871
927
|
value: function () {
|
|
872
|
-
var _initPlanner = _asyncToGenerator(
|
|
928
|
+
var _initPlanner = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee5(setPlanData) {
|
|
873
929
|
var planDataString, planData, jsonElements, elementsSortedbyPosNr, accElements, i, jsonElement, elementID, plannerElement, data, onlyOneBaseElement, element, DPsInfo, j, dpInfo, sourceElement, sourceDP, targetElement, targetDP, _jsonElements, _elementsSortedbyPosNr, _accElements, _jsonElement, basketID, elementId, _plannerElement, _data, centerWorldPos, parentPosNr, accPosNr, _DPsInfo, _dpInfo, _this$plannerElements, targetElementId, dpType, curElement, _targetElement;
|
|
874
930
|
return _regeneratorRuntime.wrap(function _callee5$(_context5) {
|
|
875
931
|
while (1) switch (_context5.prev = _context5.next) {
|
|
@@ -1137,7 +1193,7 @@ var DivaStandardPlanner = /*#__PURE__*/function () {
|
|
|
1137
1193
|
}, {
|
|
1138
1194
|
key: "addPlannerElement",
|
|
1139
1195
|
value: function () {
|
|
1140
|
-
var _addPlannerElement = _asyncToGenerator(
|
|
1196
|
+
var _addPlannerElement = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee6(basketID, params) {
|
|
1141
1197
|
var _params$dockingPointI, _t$, _t$2, _t$3;
|
|
1142
1198
|
var plannerElement, data, t;
|
|
1143
1199
|
return _regeneratorRuntime.wrap(function _callee6$(_context6) {
|
|
@@ -1222,7 +1278,7 @@ var DivaStandardPlanner = /*#__PURE__*/function () {
|
|
|
1222
1278
|
}, {
|
|
1223
1279
|
key: "copyPlannerElement",
|
|
1224
1280
|
value: (function () {
|
|
1225
|
-
var _copyPlannerElement = _asyncToGenerator(
|
|
1281
|
+
var _copyPlannerElement = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee7(articleCopyRelation, copyInfo) {
|
|
1226
1282
|
var articlesToLoad, i;
|
|
1227
1283
|
return _regeneratorRuntime.wrap(function _callee7$(_context7) {
|
|
1228
1284
|
while (1) switch (_context7.prev = _context7.next) {
|
|
@@ -1273,7 +1329,7 @@ var DivaStandardPlanner = /*#__PURE__*/function () {
|
|
|
1273
1329
|
}, {
|
|
1274
1330
|
key: "deletePlannerElement",
|
|
1275
1331
|
value: (function () {
|
|
1276
|
-
var _deletePlannerElement = _asyncToGenerator(
|
|
1332
|
+
var _deletePlannerElement = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee8(elementId, autoCorrectAVL_AVR) {
|
|
1277
1333
|
var plannerElement, parent, prevPosNum, nextPosNum, newSelElemIdPrev, newSelElemIdNext, endForEach, removeDockingRelation, avlVec, avrVec, elementLeft, elementRight, avrElementLeft, avlElementRight, transform;
|
|
1278
1334
|
return _regeneratorRuntime.wrap(function _callee8$(_context8) {
|
|
1279
1335
|
while (1) switch (_context8.prev = _context8.next) {
|
|
@@ -1378,7 +1434,7 @@ var DivaStandardPlanner = /*#__PURE__*/function () {
|
|
|
1378
1434
|
var elementId = notDockedAccessoires[i].getElementId();
|
|
1379
1435
|
var element = this.plannerElements.get(elementId);
|
|
1380
1436
|
if (!element) continue;
|
|
1381
|
-
var success = this.
|
|
1437
|
+
var success = this.dockToAVUorAVOororAVNorAVSorAVC(element, [parent]);
|
|
1382
1438
|
if (success) break;
|
|
1383
1439
|
}
|
|
1384
1440
|
}
|
|
@@ -1479,7 +1535,7 @@ var DivaStandardPlanner = /*#__PURE__*/function () {
|
|
|
1479
1535
|
});
|
|
1480
1536
|
if (plannerElement) {
|
|
1481
1537
|
var dpsToUndock = ['AVR', 'AVL'];
|
|
1482
|
-
if (plannerElement.IsDockedAccessoire) dpsToUndock = dpsToUndock.concat(['AVO', 'AVU', 'AVC']);
|
|
1538
|
+
if (plannerElement.IsDockedAccessoire) dpsToUndock = dpsToUndock.concat(['AVO', 'AVU', 'AVN', 'AVS', 'AVC']);
|
|
1483
1539
|
var undockedElements = dockingPointHandlerInst.removeDockingPointRelationsByType(plannerElement, dpsToUndock);
|
|
1484
1540
|
for (var i = 0; i < undockedElements.length; i++) {
|
|
1485
1541
|
updateConfig = this.set.onDockingChanged(plannerElement.ElementId, undockedElements[i], 'UNDOCK');
|
|
@@ -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-ae50d2a1.js';
|
|
5
5
|
import DivaUtils from '@crystaldesign/diva-utils';
|
|
6
6
|
import '@babel/runtime/helpers/asyncToGenerator';
|
|
7
7
|
import '@babel/runtime/regenerator';
|
|
@@ -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-ae50d2a1.js';
|
|
7
7
|
import DivaUtils, { DivaError } from '@crystaldesign/diva-utils';
|
|
8
8
|
import * as signalR from '@microsoft/signalr';
|
|
9
9
|
import io from 'socket.io-client';
|
|
@@ -147,7 +147,7 @@ var Host3DSignalR = /*#__PURE__*/function () {
|
|
|
147
147
|
return _createClass(Host3DSignalR, [{
|
|
148
148
|
key: "initializeConnection",
|
|
149
149
|
value: (function () {
|
|
150
|
-
var _initializeConnection = _asyncToGenerator(
|
|
150
|
+
var _initializeConnection = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2(divaNr) {
|
|
151
151
|
var _this2 = this;
|
|
152
152
|
var that;
|
|
153
153
|
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
@@ -204,7 +204,7 @@ var Host3DSignalR = /*#__PURE__*/function () {
|
|
|
204
204
|
if (that.reconnectingErrorCount < 5) that.initializeConnection();
|
|
205
205
|
}
|
|
206
206
|
});
|
|
207
|
-
this.signalRConnection.onclose(
|
|
207
|
+
this.signalRConnection.onclose(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
208
208
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
209
209
|
while (1) switch (_context.prev = _context.next) {
|
|
210
210
|
case 0:
|
|
@@ -248,7 +248,7 @@ var Host3DSignalR = /*#__PURE__*/function () {
|
|
|
248
248
|
}, {
|
|
249
249
|
key: "joinDivaNr",
|
|
250
250
|
value: function () {
|
|
251
|
-
var _joinDivaNr = _asyncToGenerator(
|
|
251
|
+
var _joinDivaNr = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3(divaNr) {
|
|
252
252
|
return _regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
253
253
|
while (1) switch (_context3.prev = _context3.next) {
|
|
254
254
|
case 0:
|
|
@@ -279,7 +279,7 @@ var Host3DSignalR = /*#__PURE__*/function () {
|
|
|
279
279
|
}, {
|
|
280
280
|
key: "getViewPointInfo",
|
|
281
281
|
value: function () {
|
|
282
|
-
var _getViewPointInfo = _asyncToGenerator(
|
|
282
|
+
var _getViewPointInfo = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4(vpName, standardWhiteroom) {
|
|
283
283
|
var res;
|
|
284
284
|
return _regeneratorRuntime.wrap(function _callee4$(_context4) {
|
|
285
285
|
while (1) switch (_context4.prev = _context4.next) {
|
|
@@ -315,7 +315,7 @@ var Host3DSignalR = /*#__PURE__*/function () {
|
|
|
315
315
|
}, {
|
|
316
316
|
key: "getStaticRoomListInfo",
|
|
317
317
|
value: function () {
|
|
318
|
-
var _getStaticRoomListInfo = _asyncToGenerator(
|
|
318
|
+
var _getStaticRoomListInfo = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee5(staticRoomList) {
|
|
319
319
|
var that;
|
|
320
320
|
return _regeneratorRuntime.wrap(function _callee5$(_context5) {
|
|
321
321
|
while (1) switch (_context5.prev = _context5.next) {
|
|
@@ -476,7 +476,7 @@ var Host3DSignalR = /*#__PURE__*/function () {
|
|
|
476
476
|
}, {
|
|
477
477
|
key: "login",
|
|
478
478
|
value: (function () {
|
|
479
|
-
var _login = _asyncToGenerator(
|
|
479
|
+
var _login = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee6() {
|
|
480
480
|
var sessionId, that;
|
|
481
481
|
return _regeneratorRuntime.wrap(function _callee6$(_context6) {
|
|
482
482
|
while (1) switch (_context6.prev = _context6.next) {
|
|
@@ -533,7 +533,7 @@ var Host3DSignalR = /*#__PURE__*/function () {
|
|
|
533
533
|
}, {
|
|
534
534
|
key: "join",
|
|
535
535
|
value: (function () {
|
|
536
|
-
var _join = _asyncToGenerator(
|
|
536
|
+
var _join = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee7(divaNr) {
|
|
537
537
|
var that, success;
|
|
538
538
|
return _regeneratorRuntime.wrap(function _callee7$(_context7) {
|
|
539
539
|
while (1) switch (_context7.prev = _context7.next) {
|
|
@@ -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-ae50d2a1.js';
|
|
4
4
|
import '@babel/runtime/helpers/asyncToGenerator';
|
|
5
5
|
import '@babel/runtime/helpers/defineProperty';
|
|
6
6
|
import '@babel/runtime/regenerator';
|
|
@@ -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-ae50d2a1.js';
|
|
4
4
|
import { SAPOrderLineData } from '@crystaldesign/basket-model';
|
|
5
5
|
import DivaUtils, { DivaError } from '@crystaldesign/diva-utils';
|
|
6
6
|
import '@babel/runtime/helpers/asyncToGenerator';
|