@crystaldesign/web-planner-logic 24.11.0-beta.4 → 24.11.0-beta.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/{DivaBoxPlanner-fc403f96.js → DivaBoxPlanner-c0491407.js} +9 -9
- package/build/cjs/{DivaStandardPlanner-381861d5.js → DivaStandardPlanner-3a655cd7.js} +81 -25
- package/build/cjs/{DoorPlanner-4534b32f.js → DoorPlanner-497f79a4.js} +1 -1
- package/build/cjs/{Host3DSignalR-e6cae920.js → Host3DSignalR-c8a4f342.js} +8 -8
- package/build/cjs/{LiviqueWWSHandler-9bc80b98.js → LiviqueWWSHandler-9ef41a4b.js} +1 -1
- package/build/cjs/{PfisterWWSHandler-24c470e2.js → PfisterWWSHandler-3832b3db.js} +1 -1
- package/build/cjs/{PlannerHandler2D-fbc28e95.js → PlannerHandler2D-49ee318c.js} +27 -3
- package/build/cjs/{ProductBasketHandler-08dcf24e.js → ProductBasketHandler-bf3f28a6.js} +1 -1
- package/build/cjs/{SeriousBasketHandler-a4647e89.js → SeriousBasketHandler-44108127.js} +1 -1
- package/build/cjs/{ShelfPlanner-561be11e.js → ShelfPlanner-8b2db628.js} +15 -13
- package/build/cjs/{StandardWWSHandler-e211a327.js → StandardWWSHandler-6150a756.js} +1 -1
- package/build/cjs/{index-4d5cef6f.js → index-4d3eb4fa.js} +718 -564
- package/build/cjs/index.js +1 -1
- package/build/esm/{DivaBoxPlanner-8ef0722c.js → DivaBoxPlanner-ad6509af.js} +9 -9
- package/build/esm/{DivaStandardPlanner-19cc5ac0.js → DivaStandardPlanner-251c5b36.js} +81 -25
- package/build/esm/{DoorPlanner-c3fe5ecf.js → DoorPlanner-8063f973.js} +1 -1
- package/build/esm/{Host3DSignalR-5d78c3f5.js → Host3DSignalR-ab1ccbea.js} +8 -8
- package/build/esm/{LiviqueWWSHandler-2f2cc617.js → LiviqueWWSHandler-f13c497c.js} +1 -1
- package/build/esm/{PfisterWWSHandler-701e95ee.js → PfisterWWSHandler-cb6d8996.js} +1 -1
- package/build/esm/{PlannerHandler2D-bf892db2.js → PlannerHandler2D-4ed43b5f.js} +27 -3
- package/build/esm/{ProductBasketHandler-a1dd8bb2.js → ProductBasketHandler-e42fb957.js} +1 -1
- package/build/esm/{SeriousBasketHandler-d5b6a347.js → SeriousBasketHandler-bd8bacf8.js} +1 -1
- package/build/esm/{ShelfPlanner-e3b31a33.js → ShelfPlanner-1a65509e.js} +15 -13
- package/build/esm/{StandardWWSHandler-d2f8cb1c.js → StandardWWSHandler-51626324.js} +1 -1
- package/build/esm/{index-bbda3bc5.js → index-862cadbc.js} +718 -564
- 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 +5 -6
- package/build/types/web-planner-logic/src/logic/Planner/DivaPlannerHandler.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Planner/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.map +1 -1
- package/build/types/web-planner-logic/src/logic/Planner/Rendering/PlannerHandler3D.d.ts +4 -2
- package/build/types/web-planner-logic/src/logic/Planner/Rendering/PlannerHandler3D.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/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/logic/Set/DivaSetHandler.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/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-4d3eb4fa.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-862cadbc.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-4ed43b5f.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-862cadbc.js';
|
|
7
|
+
import { d as dockingPointHandlerInst, h as handler2D, P as PlannerElementData } from './PlannerHandler2D-4ed43b5f.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-862cadbc.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-862cadbc.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-862cadbc.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-862cadbc.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';
|
|
@@ -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 { V as Vector3, c as Vector2, D as DockingPoint } from './index-
|
|
4
|
+
import { V as Vector3, c as Vector2, D as DockingPoint } from './index-862cadbc.js';
|
|
5
5
|
import DivaUtils, { md5, DivaError } from '@crystaldesign/diva-utils';
|
|
6
6
|
import _asyncToGenerator from '@babel/runtime/helpers/asyncToGenerator';
|
|
7
7
|
import _regeneratorRuntime from '@babel/runtime/regenerator';
|
|
@@ -477,6 +477,16 @@ var PlannerElementData = /*#__PURE__*/function () {
|
|
|
477
477
|
get: function get() {
|
|
478
478
|
return this.planElement.plannerData != undefined ? this.planElement.plannerData.countAVC > 0 ? true : false : false;
|
|
479
479
|
}
|
|
480
|
+
}, {
|
|
481
|
+
key: "HasAVN",
|
|
482
|
+
get: function get() {
|
|
483
|
+
return this.planElement.plannerData != undefined ? this.planElement.plannerData.countAVN > 0 ? true : false : false;
|
|
484
|
+
}
|
|
485
|
+
}, {
|
|
486
|
+
key: "HasAVS",
|
|
487
|
+
get: function get() {
|
|
488
|
+
return this.planElement.plannerData != undefined ? this.planElement.plannerData.countAVS > 0 ? true : false : false;
|
|
489
|
+
}
|
|
480
490
|
}, {
|
|
481
491
|
key: "SvgShapeOLF2D",
|
|
482
492
|
get: function get() {
|
|
@@ -694,6 +704,16 @@ var PlannerElementData = /*#__PURE__*/function () {
|
|
|
694
704
|
value: function getHasAVC() {
|
|
695
705
|
return this.planElement.plannerData != undefined ? this.planElement.plannerData.countAVC > 0 ? true : false : false;
|
|
696
706
|
}
|
|
707
|
+
}, {
|
|
708
|
+
key: "getHasAVN",
|
|
709
|
+
value: function getHasAVN() {
|
|
710
|
+
return this.planElement.plannerData != undefined ? this.planElement.plannerData.countAVN > 0 ? true : false : false;
|
|
711
|
+
}
|
|
712
|
+
}, {
|
|
713
|
+
key: "getHasAVS",
|
|
714
|
+
value: function getHasAVS() {
|
|
715
|
+
return this.planElement.plannerData != undefined ? this.planElement.plannerData.countAVS > 0 ? true : false : false;
|
|
716
|
+
}
|
|
697
717
|
}, {
|
|
698
718
|
key: "getFilterAVL",
|
|
699
719
|
value: function getFilterAVL() {
|
|
@@ -866,7 +886,7 @@ var SVGUtils = /*#__PURE__*/function () {
|
|
|
866
886
|
}
|
|
867
887
|
dockingpointsSvgLine.sort(function (a, b) {
|
|
868
888
|
if (a.dockingType === 'AVL') return -1;
|
|
869
|
-
if (a.dockingType === 'AVR' && ['AVR', 'AVC', 'AVU', 'AVO'].includes(b.dockingType)) return -1;
|
|
889
|
+
if (a.dockingType === 'AVR' && ['AVR', 'AVC', 'AVU', 'AVO', 'AVS', 'AVN'].includes(b.dockingType)) return -1;
|
|
870
890
|
return 0;
|
|
871
891
|
});
|
|
872
892
|
return dockingpointsSvgLine;
|
|
@@ -2307,6 +2327,10 @@ var DockingPointHandler = /*#__PURE__*/function () {
|
|
|
2307
2327
|
return 'AVO';
|
|
2308
2328
|
case 'AVC':
|
|
2309
2329
|
return 'AVC';
|
|
2330
|
+
case 'AVS':
|
|
2331
|
+
return 'AVN';
|
|
2332
|
+
case 'AVN':
|
|
2333
|
+
return 'AVS';
|
|
2310
2334
|
}
|
|
2311
2335
|
return '';
|
|
2312
2336
|
}
|
|
@@ -2928,7 +2952,7 @@ var PlannerHandler2D = /*#__PURE__*/function () {
|
|
|
2928
2952
|
}, {
|
|
2929
2953
|
key: "loadSVG",
|
|
2930
2954
|
value: (function () {
|
|
2931
|
-
var _loadSVG = _asyncToGenerator(
|
|
2955
|
+
var _loadSVG = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(plannerElement, set) {
|
|
2932
2956
|
var _this = this;
|
|
2933
2957
|
var svgFile, result, svgContent, svgContentXML, svgNewWidth, svgNewDepth, sizes, correctedContent;
|
|
2934
2958
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
|
|
2
2
|
import _createClass from '@babel/runtime/helpers/createClass';
|
|
3
|
-
import { p as productHandlerInstance } from './index-
|
|
3
|
+
import { p as productHandlerInstance } from './index-862cadbc.js';
|
|
4
4
|
import '@babel/runtime/helpers/asyncToGenerator';
|
|
5
5
|
import '@babel/runtime/helpers/defineProperty';
|
|
6
6
|
import '@babel/runtime/regenerator';
|
|
@@ -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-862cadbc.js';
|
|
5
5
|
import DivaUtils from '@crystaldesign/diva-utils';
|
|
6
6
|
import '@babel/runtime/helpers/asyncToGenerator';
|
|
7
7
|
import '@babel/runtime/regenerator';
|
|
@@ -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 setHandlerInstance, b as articleHandlerInstance } from './index-
|
|
7
|
+
import { G as Grid, a as setHandlerInstance, b as articleHandlerInstance } from './index-862cadbc.js';
|
|
8
8
|
import DivaUtils from '@crystaldesign/diva-utils';
|
|
9
9
|
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
10
10
|
import '@babel/runtime/helpers/slicedToArray';
|
|
@@ -94,7 +94,7 @@ var ShelfPlanner = /*#__PURE__*/function () {
|
|
|
94
94
|
}, {
|
|
95
95
|
key: "setIsVisible",
|
|
96
96
|
value: (function () {
|
|
97
|
-
var _setIsVisible = _asyncToGenerator(
|
|
97
|
+
var _setIsVisible = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(isVisible) {
|
|
98
98
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
99
99
|
while (1) switch (_context.prev = _context.next) {
|
|
100
100
|
case 0:
|
|
@@ -142,7 +142,7 @@ var ShelfPlanner = /*#__PURE__*/function () {
|
|
|
142
142
|
}, {
|
|
143
143
|
key: "onConfigChanged",
|
|
144
144
|
value: (function () {
|
|
145
|
-
var _onConfigChanged = _asyncToGenerator(
|
|
145
|
+
var _onConfigChanged = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
|
|
146
146
|
var newHeightSet, gridsTodos, i, _i, _i2, grid;
|
|
147
147
|
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
148
148
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -225,7 +225,7 @@ var ShelfPlanner = /*#__PURE__*/function () {
|
|
|
225
225
|
}, {
|
|
226
226
|
key: "initAccList",
|
|
227
227
|
value: (function () {
|
|
228
|
-
var _initAccList = _asyncToGenerator(
|
|
228
|
+
var _initAccList = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3(gridIndex) {
|
|
229
229
|
var grids, i, grid, j, initAcc, k, _this$article$accesso, shelfId, accessoires, _accessoireToDelete$s, accessoireToDelete, rh;
|
|
230
230
|
return _regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
231
231
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -342,7 +342,7 @@ var ShelfPlanner = /*#__PURE__*/function () {
|
|
|
342
342
|
}, {
|
|
343
343
|
key: "triggerVisibility",
|
|
344
344
|
value: function () {
|
|
345
|
-
var _triggerVisibility = _asyncToGenerator(
|
|
345
|
+
var _triggerVisibility = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4(gridGroup) {
|
|
346
346
|
var toCleanOptions, toUpdateOptions, i, grid, _i3, option, visitOptionState;
|
|
347
347
|
return _regeneratorRuntime.wrap(function _callee4$(_context4) {
|
|
348
348
|
while (1) switch (_context4.prev = _context4.next) {
|
|
@@ -411,7 +411,7 @@ var ShelfPlanner = /*#__PURE__*/function () {
|
|
|
411
411
|
}, {
|
|
412
412
|
key: "deleteAllAcc",
|
|
413
413
|
value: function () {
|
|
414
|
-
var _deleteAllAcc = _asyncToGenerator(
|
|
414
|
+
var _deleteAllAcc = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee5() {
|
|
415
415
|
var i;
|
|
416
416
|
return _regeneratorRuntime.wrap(function _callee5$(_context5) {
|
|
417
417
|
while (1) switch (_context5.prev = _context5.next) {
|
|
@@ -536,7 +536,7 @@ var ShelfPlanner = /*#__PURE__*/function () {
|
|
|
536
536
|
}, {
|
|
537
537
|
key: "deleteAccessoireOfCellInGrid",
|
|
538
538
|
value: (function () {
|
|
539
|
-
var _deleteAccessoireOfCellInGrid = _asyncToGenerator(
|
|
539
|
+
var _deleteAccessoireOfCellInGrid = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee6(gridIndex, cellIndex) {
|
|
540
540
|
var grid, inUse, deleteIndex, onBoardCell, accessoire;
|
|
541
541
|
return _regeneratorRuntime.wrap(function _callee6$(_context6) {
|
|
542
542
|
while (1) switch (_context6.prev = _context6.next) {
|
|
@@ -606,7 +606,7 @@ var ShelfPlanner = /*#__PURE__*/function () {
|
|
|
606
606
|
}, {
|
|
607
607
|
key: "handleDeleteTakePlaceOnOtherGrids",
|
|
608
608
|
value: (function () {
|
|
609
|
-
var _handleDeleteTakePlaceOnOtherGrids = _asyncToGenerator(
|
|
609
|
+
var _handleDeleteTakePlaceOnOtherGrids = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee7(gridIndex, cellIndex, accessoire) {
|
|
610
610
|
var i, _cell$Article, cell, _i4, _cell$Article2, _cell, _i5;
|
|
611
611
|
return _regeneratorRuntime.wrap(function _callee7$(_context7) {
|
|
612
612
|
while (1) switch (_context7.prev = _context7.next) {
|
|
@@ -677,7 +677,7 @@ var ShelfPlanner = /*#__PURE__*/function () {
|
|
|
677
677
|
}, {
|
|
678
678
|
key: "addAccessoireInCellInGrid",
|
|
679
679
|
value: (function () {
|
|
680
|
-
var _addAccessoireInCellInGrid = _asyncToGenerator(
|
|
680
|
+
var _addAccessoireInCellInGrid = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee8(accessoire, gridIndex, cellIndex, type, params) {
|
|
681
681
|
var grids, i, grid;
|
|
682
682
|
return _regeneratorRuntime.wrap(function _callee8$(_context8) {
|
|
683
683
|
while (1) switch (_context8.prev = _context8.next) {
|
|
@@ -1002,7 +1002,7 @@ var ShelfPlanner = /*#__PURE__*/function () {
|
|
|
1002
1002
|
}, {
|
|
1003
1003
|
key: "disableCellsByDockedShelfs",
|
|
1004
1004
|
value: (function () {
|
|
1005
|
-
var _disableCellsByDockedShelfs = _asyncToGenerator(
|
|
1005
|
+
var _disableCellsByDockedShelfs = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee9(count, fromDockSide) {
|
|
1006
1006
|
var grids, i, grid, j, cell, _j, _cell2;
|
|
1007
1007
|
return _regeneratorRuntime.wrap(function _callee9$(_context9) {
|
|
1008
1008
|
while (1) switch (_context9.prev = _context9.next) {
|
|
@@ -1117,10 +1117,12 @@ var ShelfPlanner = /*#__PURE__*/function () {
|
|
|
1117
1117
|
}
|
|
1118
1118
|
}, {
|
|
1119
1119
|
key: "getRelatedToGridIdByArticleCodex",
|
|
1120
|
-
value: function getRelatedToGridIdByArticleCodex(articleCodex) {
|
|
1120
|
+
value: function getRelatedToGridIdByArticleCodex(articleCodex, gridIndex) {
|
|
1121
|
+
var gridId = this.grids[gridIndex].getGridIdByArticleCodex(articleCodex);
|
|
1122
|
+
if (gridId) return gridId;
|
|
1121
1123
|
for (var i = 0; i < this.grids.length; i++) {
|
|
1122
|
-
var
|
|
1123
|
-
if (
|
|
1124
|
+
var _gridId = this.grids[i].getGridIdByArticleCodex(articleCodex);
|
|
1125
|
+
if (_gridId) return _gridId;
|
|
1124
1126
|
}
|
|
1125
1127
|
return undefined;
|
|
1126
1128
|
}
|
|
@@ -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-862cadbc.js';
|
|
4
4
|
import '@babel/runtime/helpers/asyncToGenerator';
|
|
5
5
|
import '@babel/runtime/helpers/defineProperty';
|
|
6
6
|
import '@babel/runtime/regenerator';
|