@crystaldesign/web-planner-logic 25.11.0-beta.2 → 25.11.0-beta.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/{DivaBoxPlanner-9b908b19.js → DivaBoxPlanner-022b9e6d.js} +60 -77
- package/build/cjs/{DivaStandardPlanner-fc5b6e71.js → DivaStandardPlanner-cceebe23.js} +3 -3
- package/build/cjs/{DoorPlanner-7d363e3b.js → DoorPlanner-11b462aa.js} +1 -1
- package/build/cjs/{Host3DSignalR-09589f6f.js → Host3DSignalR-e782c432.js} +1 -1
- package/build/cjs/{LiviqueWWSHandler-73899dec.js → LiviqueWWSHandler-35f2e8ed.js} +1 -1
- package/build/cjs/{PfisterWWSHandler-21fc0405.js → PfisterWWSHandler-4414e221.js} +1 -1
- package/build/cjs/{PlannerHandler2D-b6d6d66c.js → PlannerHandler2D-f03be183.js} +1 -1
- package/build/cjs/{SeriousBasketHandler-38942a5b.js → SeriousBasketHandler-3923b9fb.js} +1 -1
- package/build/cjs/{ShelfPlanner-b81aaa3b.js → ShelfPlanner-f84fca39.js} +1 -1
- package/build/cjs/{StandardWWSHandler-678ea32e.js → StandardWWSHandler-a6679920.js} +1 -1
- package/build/cjs/{index-c89f3375.js → index-e5ef9654.js} +460 -432
- package/build/cjs/index.js +1 -1
- package/build/esm/{DivaBoxPlanner-28a692cd.js → DivaBoxPlanner-d1fe2f39.js} +60 -77
- package/build/esm/{DivaStandardPlanner-90620c78.js → DivaStandardPlanner-2977514b.js} +3 -3
- package/build/esm/{DoorPlanner-54471e77.js → DoorPlanner-fd15242e.js} +1 -1
- package/build/esm/{Host3DSignalR-79df2488.js → Host3DSignalR-e075d73c.js} +1 -1
- package/build/esm/{LiviqueWWSHandler-53a5195d.js → LiviqueWWSHandler-e04621da.js} +1 -1
- package/build/esm/{PfisterWWSHandler-a5542a05.js → PfisterWWSHandler-55f4ec64.js} +1 -1
- package/build/esm/{PlannerHandler2D-0c96ec2e.js → PlannerHandler2D-5c595ec6.js} +1 -1
- package/build/esm/{SeriousBasketHandler-fed815e3.js → SeriousBasketHandler-aad3b760.js} +1 -1
- package/build/esm/{ShelfPlanner-d3568028.js → ShelfPlanner-ecbad409.js} +1 -1
- package/build/esm/{StandardWWSHandler-38258f9c.js → StandardWWSHandler-dc2603b4.js} +1 -1
- package/build/esm/{index-9836bc0f.js → index-f0630368.js} +460 -432
- package/build/esm/index.js +1 -1
- package/build/types/web-planner-logic/src/index.d.ts +6 -3
- package/build/types/web-planner-logic/src/index.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/API/ViewConfigDataType.d.ts +5 -1
- package/build/types/web-planner-logic/src/interface/API/ViewConfigDataType.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/Articles/CatalogPlannerArticleViewDataType.d.ts +1 -0
- package/build/types/web-planner-logic/src/interface/Articles/CatalogPlannerArticleViewDataType.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/CoreTypes/index.d.ts +16 -15
- package/build/types/web-planner-logic/src/interface/CoreTypes/index.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/FunctionTypes/index.d.ts +2 -9
- package/build/types/web-planner-logic/src/interface/FunctionTypes/index.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/OptionTypes/CatalogOptionDataTypes.d.ts +2 -0
- package/build/types/web-planner-logic/src/interface/OptionTypes/CatalogOptionDataTypes.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/Summary/SummaryItemType.d.ts +4 -1
- package/build/types/web-planner-logic/src/interface/Summary/SummaryItemType.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/Summary/SummaryPaletteItemType.d.ts +1 -1
- package/build/types/web-planner-logic/src/interface/Summary/SummaryPaletteItemType.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/ViewTypes/index.d.ts +1 -1
- package/build/types/web-planner-logic/src/interface/ViewTypes/index.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Article/ArticleOptionState.d.ts +1 -1
- package/build/types/web-planner-logic/src/logic/Article/ArticleOptionState.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/ConfigTree/DivaConfigTreeHandler.d.ts +1 -0
- 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/ShelfPlannerGrid.d.ts +1 -1
- package/build/types/web-planner-logic/src/logic/ConfigTree/Shelfplanner/ShelfPlannerGrid.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/ConfigTree/SummaryHandler.d.ts +1 -3
- package/build/types/web-planner-logic/src/logic/ConfigTree/SummaryHandler.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts +2 -2
- package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Planner/BoxPlanner/BoxPlannerGrid.d.ts +10 -2
- package/build/types/web-planner-logic/src/logic/Planner/BoxPlanner/BoxPlannerGrid.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Planner/BoxPlanner/ConstructionRulesHandler.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Planner/BoxPlanner/DivaBoxPlanner.d.ts +3 -3
- package/build/types/web-planner-logic/src/logic/Planner/BoxPlanner/DivaBoxPlanner.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Planner/DivaPlannerHandler.d.ts +3 -3
- package/build/types/web-planner-logic/src/logic/Planner/DivaStandardPlanner.d.ts +3 -3
- package/build/types/web-planner-logic/src/logic/Planner/Rendering/types.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Set/DivaSetHandler.d.ts +3 -2
- package/build/types/web-planner-logic/src/logic/Set/DivaSetHandler.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/Articles/Article/DivaCatalogArticle.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/Catalog/DivaCatalogData.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/Options/ArticleOptionData.d.ts +3 -1
- package/build/types/web-planner-logic/src/model/Options/ArticleOptionData.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/Options/CatalogOptionData.d.ts +2 -0
- package/build/types/web-planner-logic/src/model/Options/CatalogOptionData.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/Planner/PlannerElementData.d.ts +1 -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-e5ef9654.js');
|
|
6
6
|
require('@babel/runtime/helpers/slicedToArray');
|
|
7
7
|
require('@babel/runtime/helpers/asyncToGenerator');
|
|
8
8
|
require('@babel/runtime/helpers/classCallCheck');
|
|
@@ -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 { 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-f0630368.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, h as handler2D } from './PlannerHandler2D-
|
|
9
|
+
import { d as dockingPointHandlerInst, h as handler2D } from './PlannerHandler2D-5c595ec6.js';
|
|
10
10
|
import '@babel/runtime/helpers/slicedToArray';
|
|
11
11
|
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
12
12
|
import 'axios';
|
|
@@ -2361,7 +2361,6 @@ var ConstructionRulesHandler = /*#__PURE__*/function () {
|
|
|
2361
2361
|
key: "correctSimpleOpt",
|
|
2362
2362
|
value: function correctSimpleOpt(xIndex, yIndex, boxPlannerGrid, optionHandler, fromBackside) {
|
|
2363
2363
|
var curElement = boxPlannerGrid.getPlannerElementAtGridPos(xIndex, yIndex, fromBackside);
|
|
2364
|
-
|
|
2365
2364
|
//Schauen ob Element top Element hat.
|
|
2366
2365
|
if (this.constructionRules.defaultConstructionRules.TOP) {
|
|
2367
2366
|
var hasTopElement = boxPlannerGrid.getElementHasTopElement(curElement.ElementId);
|
|
@@ -4117,15 +4116,15 @@ var BoxPlannerGrid = /*#__PURE__*/function () {
|
|
|
4117
4116
|
}
|
|
4118
4117
|
}, {
|
|
4119
4118
|
key: "prepareGridForColCopy",
|
|
4120
|
-
value: function prepareGridForColCopy(elementId,
|
|
4121
|
-
if (
|
|
4119
|
+
value: function prepareGridForColCopy(elementId, copyIndex) {
|
|
4120
|
+
if (copyIndex.y > 0) return;
|
|
4122
4121
|
var elementToCopyPos = this.getCellsInGridByElementId(elementId);
|
|
4123
4122
|
this.plannerElements.get(elementId);
|
|
4124
4123
|
//Kopiere das Grid nach rechts abhängig von der Breite des aktuellen Elementes
|
|
4125
4124
|
//now correct all indices in all cells:
|
|
4126
4125
|
|
|
4127
4126
|
var copyStartIndex = 0;
|
|
4128
|
-
if (
|
|
4127
|
+
if (copyIndex.x > 0) copyStartIndex = elementToCopyPos.endColIndex + 1;else if (copyIndex.x < 0) copyStartIndex = elementToCopyPos.startColIndex;
|
|
4129
4128
|
var copyIndexCount = 1 + (elementToCopyPos.endColIndex - elementToCopyPos.startColIndex);
|
|
4130
4129
|
var allUsedCellsFrontGrid = this.getAllUsedCellsInGrid(false);
|
|
4131
4130
|
this.frontGrid = new Array();
|
|
@@ -4202,31 +4201,14 @@ var BoxPlannerGrid = /*#__PURE__*/function () {
|
|
|
4202
4201
|
*/
|
|
4203
4202
|
}, {
|
|
4204
4203
|
key: "addElementAsCopy",
|
|
4205
|
-
value: function addElementAsCopy(
|
|
4206
|
-
var curPos = this.getCellsInGridByElementId(
|
|
4207
|
-
var
|
|
4208
|
-
|
|
4209
|
-
|
|
4210
|
-
|
|
4211
|
-
|
|
4212
|
-
|
|
4213
|
-
startColIndexForCopy = curPos.endColIndex + 1;
|
|
4214
|
-
startRowIndexForCopy = curPos.startRowIndex;
|
|
4215
|
-
break;
|
|
4216
|
-
case 'AVL':
|
|
4217
|
-
startColIndexForCopy = curPos.startColIndex - cellCount.colCount;
|
|
4218
|
-
startRowIndexForCopy = curPos.startRowIndex;
|
|
4219
|
-
break;
|
|
4220
|
-
case 'AVO':
|
|
4221
|
-
startColIndexForCopy = curPos.startColIndex;
|
|
4222
|
-
startRowIndexForCopy = curPos.endRowIndex + 1;
|
|
4223
|
-
break;
|
|
4224
|
-
case 'BACKSIDE':
|
|
4225
|
-
startColIndexForCopy = curPos.startColIndex;
|
|
4226
|
-
startRowIndexForCopy = curPos.startRowIndex;
|
|
4227
|
-
break;
|
|
4228
|
-
}
|
|
4229
|
-
var newCellInfos = this.createNewCells(newElement, startColIndexForCopy, startRowIndexForCopy, backsideForCopy);
|
|
4204
|
+
value: function addElementAsCopy(copiedElementId, newElement, copyIndex) {
|
|
4205
|
+
var curPos = this.getCellsInGridByElementId(copiedElementId);
|
|
4206
|
+
var cellIndex = {
|
|
4207
|
+
x: curPos.endColIndex + copyIndex.x,
|
|
4208
|
+
y: curPos.endRowIndex + copyIndex.y
|
|
4209
|
+
};
|
|
4210
|
+
var backsideForCopy = copyIndex.z == -1 || curPos.backside == true;
|
|
4211
|
+
var newCellInfos = this.createNewCells(newElement, cellIndex.x, cellIndex.y, backsideForCopy);
|
|
4230
4212
|
var curGrid = backsideForCopy ? this.backGrid : this.frontGrid;
|
|
4231
4213
|
for (var i = 0; i < newCellInfos.cells.length; i++) {
|
|
4232
4214
|
if (!curGrid[newCellInfos.cells[i].index.x]) curGrid[newCellInfos.cells[i].index.x] = [];
|
|
@@ -5221,7 +5203,7 @@ var DivaBoxPlanner = /*#__PURE__*/function () {
|
|
|
5221
5203
|
value: (function () {
|
|
5222
5204
|
var _copyPlannerElement = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4(articleCopyRelation, copyInfo) {
|
|
5223
5205
|
var _this = this;
|
|
5224
|
-
var gridIsPrepared, plannerElementsToLoadSVG, that,
|
|
5206
|
+
var gridIsPrepared, plannerElementsToLoadSVG, that, i, cellPos, allDPs, j;
|
|
5225
5207
|
return _regeneratorRuntime.wrap(function _callee4$(_context4) {
|
|
5226
5208
|
while (1) switch (_context4.prev = _context4.next) {
|
|
5227
5209
|
case 0:
|
|
@@ -5235,17 +5217,13 @@ var DivaBoxPlanner = /*#__PURE__*/function () {
|
|
|
5235
5217
|
if (copyInfo.copyType == 'STD') copyInfo.targetElements = [];
|
|
5236
5218
|
plannerElementsToLoadSVG = [];
|
|
5237
5219
|
that = this;
|
|
5238
|
-
copyType = 'AVR';
|
|
5239
|
-
if (copyInfo.copyType == 'BoxPlanner_backside') copyType = 'BACKSIDE';else if (copyInfo.copyType == 'STD' || copyInfo.copyType == 'BoxPlanner_COL') {
|
|
5240
|
-
if (copyInfo.dpType == 'AVR') copyType = 'AVR';else if (copyInfo.dpType == 'AVO') copyType = 'AVO';else if (copyInfo.dpType == 'AVL') copyType = 'AVL';
|
|
5241
|
-
}
|
|
5242
5220
|
articleCopyRelation.forEach(function (basketIDNewArticle, elementToCopyId) {
|
|
5243
5221
|
var _copyInfo$targetEleme;
|
|
5244
5222
|
if (!gridIsPrepared) {
|
|
5245
|
-
if (copyInfo
|
|
5246
|
-
_this.boxPlannerGrid.prepareGridForColCopy(elementToCopyId, copyInfo.dpType);
|
|
5247
|
-
} else if (copyInfo && copyInfo.copyType && copyInfo.copyType == 'BoxPlanner_backside') {
|
|
5223
|
+
if (copyInfo.copyIndex.z == -1) {
|
|
5248
5224
|
if (!_this.boxPlannerGrid.getPlannerHasActiveBackside()) _this.boxPlannerGrid.prepareGridForBackSideCopy();
|
|
5225
|
+
} else {
|
|
5226
|
+
_this.boxPlannerGrid.prepareGridForColCopy(elementToCopyId, copyInfo.copyIndex);
|
|
5249
5227
|
}
|
|
5250
5228
|
}
|
|
5251
5229
|
gridIsPrepared = true;
|
|
@@ -5256,22 +5234,22 @@ var DivaBoxPlanner = /*#__PURE__*/function () {
|
|
|
5256
5234
|
_this.set.setElementId(basketIDNewArticle, plannerElement.ElementId);
|
|
5257
5235
|
var data = _this.set.getPlannerData(plannerElement.ElementId);
|
|
5258
5236
|
plannerElement.updatePlannerData(data);
|
|
5259
|
-
_this.boxPlannerGrid.addElementAsCopy(elementToCopyId, plannerElement,
|
|
5237
|
+
_this.boxPlannerGrid.addElementAsCopy(elementToCopyId, plannerElement, copyInfo.copyIndex);
|
|
5260
5238
|
_this.constructionRulesHandler.onElementCopy(elementToCopyId, plannerElement.getElementId());
|
|
5261
5239
|
plannerElementsToLoadSVG.push(plannerElement);
|
|
5262
5240
|
if (copyInfo.copyType == 'STD') (_copyInfo$targetEleme = copyInfo.targetElements) === null || _copyInfo$targetEleme === void 0 || _copyInfo$targetEleme.push(plannerElement.getElementId());
|
|
5263
5241
|
});
|
|
5264
5242
|
i = 0;
|
|
5265
|
-
case
|
|
5243
|
+
case 8:
|
|
5266
5244
|
if (!(i < plannerElementsToLoadSVG.length)) {
|
|
5267
|
-
_context4.next =
|
|
5245
|
+
_context4.next = 15;
|
|
5268
5246
|
break;
|
|
5269
5247
|
}
|
|
5270
|
-
_context4.next =
|
|
5248
|
+
_context4.next = 11;
|
|
5271
5249
|
return handler2D.loadSVG(plannerElementsToLoadSVG[i], this.set);
|
|
5272
|
-
case
|
|
5250
|
+
case 11:
|
|
5273
5251
|
//Check if we have to prevent to build even higher in this col
|
|
5274
|
-
if (
|
|
5252
|
+
if (copyInfo.copyIndex.y == 1 && this.constructionRulesHandler.getHasMaxElemCountPerColumn()) {
|
|
5275
5253
|
//The max height of col is reached
|
|
5276
5254
|
cellPos = this.boxPlannerGrid.getCellsInGridByElementId(plannerElementsToLoadSVG[i].ElementId);
|
|
5277
5255
|
if (cellPos.endRowIndex + 1 == that.constructionRulesHandler.getMaxElemCountPerColumn()) {
|
|
@@ -5281,15 +5259,15 @@ var DivaBoxPlanner = /*#__PURE__*/function () {
|
|
|
5281
5259
|
}
|
|
5282
5260
|
}
|
|
5283
5261
|
}
|
|
5284
|
-
case
|
|
5262
|
+
case 12:
|
|
5285
5263
|
i++;
|
|
5286
|
-
_context4.next =
|
|
5264
|
+
_context4.next = 8;
|
|
5287
5265
|
break;
|
|
5288
|
-
case
|
|
5266
|
+
case 15:
|
|
5289
5267
|
this.boxPlannerGrid.updateWorldPosOfElements();
|
|
5290
|
-
_context4.next =
|
|
5268
|
+
_context4.next = 18;
|
|
5291
5269
|
return this.constructionRulesHandler.updateOptionLogicBoxPlanner(this.boxPlannerGrid, copyInfo.changedOPT, copyInfo.targetElements);
|
|
5292
|
-
case
|
|
5270
|
+
case 18:
|
|
5293
5271
|
case "end":
|
|
5294
5272
|
return _context4.stop();
|
|
5295
5273
|
}
|
|
@@ -5349,7 +5327,7 @@ var DivaBoxPlanner = /*#__PURE__*/function () {
|
|
|
5349
5327
|
key: "getPlannerElementsInfluencedByCopy",
|
|
5350
5328
|
value: function getPlannerElementsInfluencedByCopy(elementId, copyInfo) {
|
|
5351
5329
|
var allElementsToCopy = [];
|
|
5352
|
-
if (copyInfo &&
|
|
5330
|
+
if (copyInfo && copyInfo.copyIndex.z == -1) {
|
|
5353
5331
|
return this.boxPlannerGrid.getAllElementIdsInGrid();
|
|
5354
5332
|
} else if (copyInfo && copyInfo.copyType == 'BoxPlanner_COL') {
|
|
5355
5333
|
//Copy all col
|
|
@@ -5362,25 +5340,23 @@ var DivaBoxPlanner = /*#__PURE__*/function () {
|
|
|
5362
5340
|
} else {
|
|
5363
5341
|
allElementsToCopy.push(elementId);
|
|
5364
5342
|
if (copyInfo) {
|
|
5365
|
-
|
|
5366
|
-
|
|
5367
|
-
|
|
5368
|
-
|
|
5369
|
-
|
|
5370
|
-
|
|
5371
|
-
|
|
5372
|
-
|
|
5373
|
-
|
|
5374
|
-
|
|
5375
|
-
|
|
5376
|
-
|
|
5377
|
-
|
|
5378
|
-
|
|
5379
|
-
|
|
5380
|
-
|
|
5381
|
-
|
|
5382
|
-
resultCopyUp.backside;
|
|
5383
|
-
}
|
|
5343
|
+
if (copyInfo.copyIndex.x != 0) {
|
|
5344
|
+
if (this.constructionRulesHandler.getForceWholePlanningSameHeight()) {
|
|
5345
|
+
var result = this.boxPlannerGrid.getAllElementsInSameCol(elementId);
|
|
5346
|
+
allElementsToCopy = result.elements;
|
|
5347
|
+
result.backside;
|
|
5348
|
+
} else {
|
|
5349
|
+
var _result = this.boxPlannerGrid.getAllElementsDown(elementId);
|
|
5350
|
+
allElementsToCopy = allElementsToCopy.concat(_result.elements);
|
|
5351
|
+
_result.backside;
|
|
5352
|
+
}
|
|
5353
|
+
}
|
|
5354
|
+
if (copyInfo.copyIndex.y != 0) {
|
|
5355
|
+
if (this.constructionRulesHandler.getForceWholePlanningSameHeight()) {
|
|
5356
|
+
var resultCopyUp = this.boxPlannerGrid.getAllElementsInSameRowByElementId(elementId);
|
|
5357
|
+
allElementsToCopy = resultCopyUp.elementIds;
|
|
5358
|
+
resultCopyUp.backside;
|
|
5359
|
+
}
|
|
5384
5360
|
}
|
|
5385
5361
|
if (this.boxPlannerGrid.getPlannerHasActiveBackside()) {
|
|
5386
5362
|
allElementsToCopy = allElementsToCopy.concat(this.boxPlannerGrid.getOppositeElements(allElementsToCopy).map(function (element) {
|
|
@@ -5543,7 +5519,7 @@ var DivaBoxPlanner = /*#__PURE__*/function () {
|
|
|
5543
5519
|
key: "updatePlanner",
|
|
5544
5520
|
value: (function () {
|
|
5545
5521
|
var _updatePlanner = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee6(changedOPT, targetElements) {
|
|
5546
|
-
var message, cellPos, elemToCheck,
|
|
5522
|
+
var message, cellPos, elemToCheck, copyIndex, allElementsToCopy, _allElementsToCopy, allElementsInBackGrid, _allElementsInBackGrid, _message;
|
|
5547
5523
|
return _regeneratorRuntime.wrap(function _callee6$(_context6) {
|
|
5548
5524
|
while (1) switch (_context6.prev = _context6.next) {
|
|
5549
5525
|
case 0:
|
|
@@ -5586,24 +5562,27 @@ var DivaBoxPlanner = /*#__PURE__*/function () {
|
|
|
5586
5562
|
break;
|
|
5587
5563
|
}
|
|
5588
5564
|
//Someone has changed Eck innen or aussen. If the current eselected Element has no neighbor left or right copy neighbor
|
|
5589
|
-
|
|
5565
|
+
copyIndex = {
|
|
5566
|
+
x: 0,
|
|
5567
|
+
y: 0,
|
|
5568
|
+
z: 0
|
|
5569
|
+
};
|
|
5590
5570
|
if (!this.boxPlannerGrid.getElementHasLeftElement(elemToCheck)) {
|
|
5591
5571
|
//Do copy to left Element
|
|
5592
|
-
|
|
5572
|
+
copyIndex.x = -1;
|
|
5593
5573
|
}
|
|
5594
5574
|
if (!this.boxPlannerGrid.getElementHasRightElement(elemToCheck)) {
|
|
5595
5575
|
//Do copy right element
|
|
5596
|
-
|
|
5576
|
+
copyIndex.x = 1;
|
|
5597
5577
|
}
|
|
5598
5578
|
allElementsToCopy = this.getPlannerElementsInfluencedByCopy(elemToCheck, {
|
|
5599
|
-
|
|
5579
|
+
copyIndex: copyIndex,
|
|
5600
5580
|
copyType: 'BoxPlanner_COL'
|
|
5601
5581
|
});
|
|
5602
5582
|
return _context6.abrupt("return", {
|
|
5603
5583
|
doDeleteBackGrid: false,
|
|
5604
5584
|
elemIdsToDelete: [],
|
|
5605
5585
|
elementIdToCopy: allElementsToCopy,
|
|
5606
|
-
copyDPType: copyDir,
|
|
5607
5586
|
copyType: 'BoxPlanner_COL',
|
|
5608
5587
|
ignoreOptionsToCopy: ['OPTELEMENT'],
|
|
5609
5588
|
changedOPT: changedOPT,
|
|
@@ -5623,7 +5602,11 @@ var DivaBoxPlanner = /*#__PURE__*/function () {
|
|
|
5623
5602
|
break;
|
|
5624
5603
|
}
|
|
5625
5604
|
_allElementsToCopy = this.getPlannerElementsInfluencedByCopy(-1, {
|
|
5626
|
-
|
|
5605
|
+
copyIndex: {
|
|
5606
|
+
x: 0,
|
|
5607
|
+
y: 0,
|
|
5608
|
+
z: -1
|
|
5609
|
+
},
|
|
5627
5610
|
copyType: 'BoxPlanner_backside'
|
|
5628
5611
|
});
|
|
5629
5612
|
return _context6.abrupt("return", {
|
|
@@ -3,9 +3,9 @@ import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
|
|
|
3
3
|
import _createClass from '@babel/runtime/helpers/createClass';
|
|
4
4
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
5
5
|
import _regeneratorRuntime from '@babel/runtime/regenerator';
|
|
6
|
-
import { V as Vector3, c as Vector2, P as PlannerElementData, B as BoundingBox } from './index-
|
|
6
|
+
import { V as Vector3, c as Vector2, P as PlannerElementData, B as BoundingBox } from './index-f0630368.js';
|
|
7
7
|
import DivaUtils, { DivaError, md5 } from '@crystaldesign/diva-utils';
|
|
8
|
-
import { d as dockingPointHandlerInst, h as handler2D } from './PlannerHandler2D-
|
|
8
|
+
import { d as dockingPointHandlerInst, h as handler2D } from './PlannerHandler2D-5c595ec6.js';
|
|
9
9
|
import '@babel/runtime/helpers/slicedToArray';
|
|
10
10
|
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
11
11
|
import '@babel/runtime/helpers/toConsumableArray';
|
|
@@ -1245,7 +1245,7 @@ var DivaStandardPlanner = /*#__PURE__*/function () {
|
|
|
1245
1245
|
case 0:
|
|
1246
1246
|
articlesToLoad = [];
|
|
1247
1247
|
articleCopyRelation.forEach(function (basketIDNewArticle, elementToCopyId) {
|
|
1248
|
-
if (copyInfo == undefined
|
|
1248
|
+
if (copyInfo == undefined) articlesToLoad.push(basketIDNewArticle);
|
|
1249
1249
|
});
|
|
1250
1250
|
i = 0;
|
|
1251
1251
|
case 3:
|
|
@@ -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-f0630368.js';
|
|
5
5
|
import DivaUtils from '@crystaldesign/diva-utils';
|
|
6
6
|
import '@babel/runtime/helpers/slicedToArray';
|
|
7
7
|
import '@babel/runtime/helpers/asyncToGenerator';
|
|
@@ -3,7 +3,7 @@ import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
|
|
|
3
3
|
import _createClass from '@babel/runtime/helpers/createClass';
|
|
4
4
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
5
5
|
import _regeneratorRuntime from '@babel/runtime/regenerator';
|
|
6
|
-
import { R as Rendering, H as HQRenderScript } from './index-
|
|
6
|
+
import { R as Rendering, H as HQRenderScript } from './index-f0630368.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-f0630368.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-f0630368.js';
|
|
4
4
|
import { SAPOrderLineData } from '@crystaldesign/basket-model';
|
|
5
5
|
import DivaUtils, { DivaError } from '@crystaldesign/diva-utils';
|
|
6
6
|
import '@babel/runtime/helpers/slicedToArray';
|
|
@@ -3,7 +3,7 @@ import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
|
|
|
3
3
|
import _createClass from '@babel/runtime/helpers/createClass';
|
|
4
4
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
5
5
|
import _regeneratorRuntime from '@babel/runtime/regenerator';
|
|
6
|
-
import { c as Vector2, D as DockingPoint, V as Vector3 } from './index-
|
|
6
|
+
import { c as Vector2, D as DockingPoint, V as Vector3 } from './index-f0630368.js';
|
|
7
7
|
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
8
8
|
import { fabric } from 'fabric';
|
|
9
9
|
import DivaUtils, { DivaError } from '@crystaldesign/diva-utils';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
|
|
2
2
|
import _createClass from '@babel/runtime/helpers/createClass';
|
|
3
3
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
4
|
-
import { s as summaryHandlerInstance } from './index-
|
|
4
|
+
import { s as summaryHandlerInstance } from './index-f0630368.js';
|
|
5
5
|
import DivaUtils from '@crystaldesign/diva-utils';
|
|
6
6
|
import '@babel/runtime/helpers/slicedToArray';
|
|
7
7
|
import '@babel/runtime/helpers/asyncToGenerator';
|
|
@@ -4,7 +4,7 @@ import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
|
|
|
4
4
|
import _createClass from '@babel/runtime/helpers/createClass';
|
|
5
5
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
6
6
|
import _regeneratorRuntime from '@babel/runtime/regenerator';
|
|
7
|
-
import { G as Grid, b as setHandlerInstance, a as articleHandlerInstance } from './index-
|
|
7
|
+
import { G as Grid, b as setHandlerInstance, a as articleHandlerInstance } from './index-f0630368.js';
|
|
8
8
|
import DivaUtils from '@crystaldesign/diva-utils';
|
|
9
9
|
import '@babel/runtime/helpers/slicedToArray';
|
|
10
10
|
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
|
|
2
2
|
import _createClass from '@babel/runtime/helpers/createClass';
|
|
3
|
-
import './index-
|
|
3
|
+
import './index-f0630368.js';
|
|
4
4
|
import '@babel/runtime/helpers/slicedToArray';
|
|
5
5
|
import '@babel/runtime/helpers/asyncToGenerator';
|
|
6
6
|
import '@babel/runtime/helpers/defineProperty';
|