@crystaldesign/web-planner-logic 24.12.1 → 24.12.2-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-303a552b.js → DivaBoxPlanner-1c78ef85.js} +317 -318
- package/build/cjs/{DivaStandardPlanner-2f994125.js → DivaStandardPlanner-eb45e763.js} +82 -82
- package/build/cjs/{DoorPlanner-1faa1593.js → DoorPlanner-3a199423.js} +1 -1
- package/build/cjs/{Host3DSignalR-a9bc4c70.js → Host3DSignalR-c52991a0.js} +43 -43
- package/build/cjs/{LiviqueWWSHandler-e9462b37.js → LiviqueWWSHandler-6607e52f.js} +1 -1
- package/build/cjs/{PfisterWWSHandler-65b5992f.js → PfisterWWSHandler-2ea37e1d.js} +6 -6
- package/build/cjs/{PlannerHandler2D-9ce74b8c.js → PlannerHandler2D-de64a752.js} +189 -189
- package/build/cjs/{SeriousBasketHandler-c0d4f0f5.js → SeriousBasketHandler-03648231.js} +1 -1
- package/build/cjs/{ShelfPlanner-642594d4.js → ShelfPlanner-4402bf3e.js} +86 -86
- package/build/cjs/{StandardWWSHandler-c7833d13.js → StandardWWSHandler-62bc3cc6.js} +1 -1
- package/build/cjs/{index-530d9304.js → index-e86ab943.js} +632 -632
- package/build/cjs/index.js +1 -1
- package/build/esm/{DivaBoxPlanner-0748b14a.js → DivaBoxPlanner-655a32f3.js} +317 -318
- package/build/esm/{DivaStandardPlanner-2c8858b2.js → DivaStandardPlanner-e1faf2c9.js} +82 -82
- package/build/esm/{DoorPlanner-c640fd24.js → DoorPlanner-cfebaef8.js} +1 -1
- package/build/esm/{Host3DSignalR-aa3a4b4d.js → Host3DSignalR-5d924d77.js} +43 -43
- package/build/esm/{LiviqueWWSHandler-8d2570dd.js → LiviqueWWSHandler-62ff852e.js} +1 -1
- package/build/esm/{PfisterWWSHandler-c046e3ee.js → PfisterWWSHandler-1cf1fce6.js} +6 -6
- package/build/esm/{PlannerHandler2D-844fc811.js → PlannerHandler2D-ad96ee8d.js} +189 -189
- package/build/esm/{SeriousBasketHandler-b8e1b0da.js → SeriousBasketHandler-9e031da4.js} +1 -1
- package/build/esm/{ShelfPlanner-f3218c50.js → ShelfPlanner-4f446e61.js} +86 -86
- package/build/esm/{StandardWWSHandler-a3c5246b.js → StandardWWSHandler-e72ecb08.js} +1 -1
- package/build/esm/{index-3870ea62.js → index-84339e2f.js} +632 -632
- package/build/esm/index.js +1 -1
- package/package.json +2 -2
|
@@ -5,10 +5,10 @@ var _classCallCheck = require('@babel/runtime/helpers/classCallCheck');
|
|
|
5
5
|
var _createClass = require('@babel/runtime/helpers/createClass');
|
|
6
6
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
7
7
|
var _regeneratorRuntime = require('@babel/runtime/regenerator');
|
|
8
|
-
var index = require('./index-
|
|
8
|
+
var index = require('./index-e86ab943.js');
|
|
9
9
|
var DivaUtils = require('@crystaldesign/diva-utils');
|
|
10
10
|
var _toConsumableArray = require('@babel/runtime/helpers/toConsumableArray');
|
|
11
|
-
var PlannerHandler2D = require('./PlannerHandler2D-
|
|
11
|
+
var PlannerHandler2D = require('./PlannerHandler2D-de64a752.js');
|
|
12
12
|
require('@babel/runtime/helpers/objectWithoutProperties');
|
|
13
13
|
require('@babel/runtime/helpers/slicedToArray');
|
|
14
14
|
require('axios');
|
|
@@ -434,11 +434,11 @@ var BoxPlannerPartlistHelper = /*#__PURE__*/function () {
|
|
|
434
434
|
}
|
|
435
435
|
}
|
|
436
436
|
|
|
437
|
-
/**
|
|
438
|
-
* This fucntion corrects the left front Senkrechte Rahmen of the element
|
|
439
|
-
* @param curElement
|
|
440
|
-
* @param boxPlannerGrid
|
|
441
|
-
* @param optionHandler
|
|
437
|
+
/**
|
|
438
|
+
* This fucntion corrects the left front Senkrechte Rahmen of the element
|
|
439
|
+
* @param curElement
|
|
440
|
+
* @param boxPlannerGrid
|
|
441
|
+
* @param optionHandler
|
|
442
442
|
*/
|
|
443
443
|
}, {
|
|
444
444
|
key: "correctRahmenVerticalLeftFront",
|
|
@@ -481,11 +481,11 @@ var BoxPlannerPartlistHelper = /*#__PURE__*/function () {
|
|
|
481
481
|
}
|
|
482
482
|
}
|
|
483
483
|
|
|
484
|
-
/**
|
|
485
|
-
* This fucntion corrects the left front Senkrechte Rahmen of the element
|
|
486
|
-
* @param curElement
|
|
487
|
-
* @param boxPlannerGrid
|
|
488
|
-
* @param optionHandler
|
|
484
|
+
/**
|
|
485
|
+
* This fucntion corrects the left front Senkrechte Rahmen of the element
|
|
486
|
+
* @param curElement
|
|
487
|
+
* @param boxPlannerGrid
|
|
488
|
+
* @param optionHandler
|
|
489
489
|
*/
|
|
490
490
|
}, {
|
|
491
491
|
key: "correctRahmenVerticalLeftBack",
|
|
@@ -539,11 +539,11 @@ var BoxPlannerPartlistHelper = /*#__PURE__*/function () {
|
|
|
539
539
|
}
|
|
540
540
|
}
|
|
541
541
|
|
|
542
|
-
/**
|
|
543
|
-
* This fucntion corrects the left front Senkrechte Rahmen of the element
|
|
544
|
-
* @param curElement
|
|
545
|
-
* @param boxPlannerGrid
|
|
546
|
-
* @param optionHandler
|
|
542
|
+
/**
|
|
543
|
+
* This fucntion corrects the left front Senkrechte Rahmen of the element
|
|
544
|
+
* @param curElement
|
|
545
|
+
* @param boxPlannerGrid
|
|
546
|
+
* @param optionHandler
|
|
547
547
|
*/
|
|
548
548
|
}, {
|
|
549
549
|
key: "correctRahmenVerticalRightFront",
|
|
@@ -595,11 +595,11 @@ var BoxPlannerPartlistHelper = /*#__PURE__*/function () {
|
|
|
595
595
|
}
|
|
596
596
|
}
|
|
597
597
|
|
|
598
|
-
/**
|
|
599
|
-
* This fucntion corrects the left front Senkrechte Rahmen of the element
|
|
600
|
-
* @param curElement
|
|
601
|
-
* @param boxPlannerGrid
|
|
602
|
-
* @param optionHandler
|
|
598
|
+
/**
|
|
599
|
+
* This fucntion corrects the left front Senkrechte Rahmen of the element
|
|
600
|
+
* @param curElement
|
|
601
|
+
* @param boxPlannerGrid
|
|
602
|
+
* @param optionHandler
|
|
603
603
|
*/
|
|
604
604
|
}, {
|
|
605
605
|
key: "correctRahmenVerticalRightBack",
|
|
@@ -1437,76 +1437,76 @@ var BoxPlannerPartlistHelper = /*#__PURE__*/function () {
|
|
|
1437
1437
|
}
|
|
1438
1438
|
break;
|
|
1439
1439
|
}
|
|
1440
|
-
/*
|
|
1441
|
-
if (!this.getElementHasBottomPlate(curElement, optionHandler)) {
|
|
1442
|
-
//Element has no ground plate
|
|
1443
|
-
if (!boxPlannerGrid.getElementHasRightElement(curElement.getElementId())) {
|
|
1444
|
-
let opposideElement = boxPlannerGrid.getOppositeElement(curElement.getElementId());
|
|
1445
|
-
if (opposideElement) {
|
|
1446
|
-
if (this.getElementHasBottomPlate(opposideElement, optionHandler)) {
|
|
1447
|
-
//The opposide element has a ground plate
|
|
1448
|
-
this.setOptionValue(
|
|
1449
|
-
curElement.getElementId(),
|
|
1450
|
-
this.constructionRules.knotInfo.knotOPT_RightBottomBack,
|
|
1451
|
-
this.constructionRules.knotInfo.knotOPVs.knot3er_1GT,
|
|
1452
|
-
optionHandler,
|
|
1453
|
-
);
|
|
1454
|
-
} else {
|
|
1455
|
-
//The opposide element has no ground plate
|
|
1456
|
-
this.setOptionValue(
|
|
1457
|
-
curElement.getElementId(),
|
|
1458
|
-
this.constructionRules.knotInfo.knotOPT_RightBottomBack,
|
|
1459
|
-
this.constructionRules.knotInfo.knotOPVs.knot3er_0GT,
|
|
1460
|
-
optionHandler,
|
|
1461
|
-
);
|
|
1462
|
-
}
|
|
1463
|
-
}
|
|
1464
|
-
} else {
|
|
1465
|
-
//Element has neighbor element
|
|
1466
|
-
//Set the Glasteller count depending on the plates of the neighbors
|
|
1467
|
-
switch (this.getGroundPlatesNumOfRightNeighbors(curElement, boxPlannerGrid, optionHandler)) {
|
|
1468
|
-
case 0:
|
|
1469
|
-
this.setOptionValue(
|
|
1470
|
-
curElement.getElementId(),
|
|
1471
|
-
this.constructionRules.knotInfo.knotOPT_RightBottomBack,
|
|
1472
|
-
this.constructionRules.knotInfo.knotOPVs.knot4er_0GT,
|
|
1473
|
-
optionHandler,
|
|
1474
|
-
);
|
|
1475
|
-
break;
|
|
1476
|
-
case 1:
|
|
1477
|
-
this.setOptionValue(
|
|
1478
|
-
curElement.getElementId(),
|
|
1479
|
-
this.constructionRules.knotInfo.knotOPT_RightBottomBack,
|
|
1480
|
-
this.constructionRules.knotInfo.knotOPVs.knot4er_1GT,
|
|
1481
|
-
optionHandler,
|
|
1482
|
-
);
|
|
1483
|
-
break;
|
|
1484
|
-
case 2:
|
|
1485
|
-
this.setOptionValue(
|
|
1486
|
-
curElement.getElementId(),
|
|
1487
|
-
this.constructionRules.knotInfo.knotOPT_RightBottomBack,
|
|
1488
|
-
this.constructionRules.knotInfo.knotOPVs.knot4er_2GT,
|
|
1489
|
-
optionHandler,
|
|
1490
|
-
);
|
|
1491
|
-
break;
|
|
1492
|
-
case 3:
|
|
1493
|
-
this.setOptionValue(
|
|
1494
|
-
curElement.getElementId(),
|
|
1495
|
-
this.constructionRules.knotInfo.knotOPT_RightBottomBack,
|
|
1496
|
-
this.constructionRules.knotInfo.knotOPVs.knot4er_3GT,
|
|
1497
|
-
optionHandler,
|
|
1498
|
-
);
|
|
1499
|
-
break;
|
|
1500
|
-
case 4:
|
|
1501
|
-
this.setOptionValue(
|
|
1502
|
-
curElement.getElementId(),
|
|
1503
|
-
this.constructionRules.knotInfo.knotOPT_RightBottomBack,
|
|
1504
|
-
this.constructionRules.knotInfo.knotOPVs.knot4er_4GT,
|
|
1505
|
-
optionHandler,
|
|
1506
|
-
);
|
|
1507
|
-
break;
|
|
1508
|
-
}
|
|
1509
|
-
}
|
|
1440
|
+
/*
|
|
1441
|
+
if (!this.getElementHasBottomPlate(curElement, optionHandler)) {
|
|
1442
|
+
//Element has no ground plate
|
|
1443
|
+
if (!boxPlannerGrid.getElementHasRightElement(curElement.getElementId())) {
|
|
1444
|
+
let opposideElement = boxPlannerGrid.getOppositeElement(curElement.getElementId());
|
|
1445
|
+
if (opposideElement) {
|
|
1446
|
+
if (this.getElementHasBottomPlate(opposideElement, optionHandler)) {
|
|
1447
|
+
//The opposide element has a ground plate
|
|
1448
|
+
this.setOptionValue(
|
|
1449
|
+
curElement.getElementId(),
|
|
1450
|
+
this.constructionRules.knotInfo.knotOPT_RightBottomBack,
|
|
1451
|
+
this.constructionRules.knotInfo.knotOPVs.knot3er_1GT,
|
|
1452
|
+
optionHandler,
|
|
1453
|
+
);
|
|
1454
|
+
} else {
|
|
1455
|
+
//The opposide element has no ground plate
|
|
1456
|
+
this.setOptionValue(
|
|
1457
|
+
curElement.getElementId(),
|
|
1458
|
+
this.constructionRules.knotInfo.knotOPT_RightBottomBack,
|
|
1459
|
+
this.constructionRules.knotInfo.knotOPVs.knot3er_0GT,
|
|
1460
|
+
optionHandler,
|
|
1461
|
+
);
|
|
1462
|
+
}
|
|
1463
|
+
}
|
|
1464
|
+
} else {
|
|
1465
|
+
//Element has neighbor element
|
|
1466
|
+
//Set the Glasteller count depending on the plates of the neighbors
|
|
1467
|
+
switch (this.getGroundPlatesNumOfRightNeighbors(curElement, boxPlannerGrid, optionHandler)) {
|
|
1468
|
+
case 0:
|
|
1469
|
+
this.setOptionValue(
|
|
1470
|
+
curElement.getElementId(),
|
|
1471
|
+
this.constructionRules.knotInfo.knotOPT_RightBottomBack,
|
|
1472
|
+
this.constructionRules.knotInfo.knotOPVs.knot4er_0GT,
|
|
1473
|
+
optionHandler,
|
|
1474
|
+
);
|
|
1475
|
+
break;
|
|
1476
|
+
case 1:
|
|
1477
|
+
this.setOptionValue(
|
|
1478
|
+
curElement.getElementId(),
|
|
1479
|
+
this.constructionRules.knotInfo.knotOPT_RightBottomBack,
|
|
1480
|
+
this.constructionRules.knotInfo.knotOPVs.knot4er_1GT,
|
|
1481
|
+
optionHandler,
|
|
1482
|
+
);
|
|
1483
|
+
break;
|
|
1484
|
+
case 2:
|
|
1485
|
+
this.setOptionValue(
|
|
1486
|
+
curElement.getElementId(),
|
|
1487
|
+
this.constructionRules.knotInfo.knotOPT_RightBottomBack,
|
|
1488
|
+
this.constructionRules.knotInfo.knotOPVs.knot4er_2GT,
|
|
1489
|
+
optionHandler,
|
|
1490
|
+
);
|
|
1491
|
+
break;
|
|
1492
|
+
case 3:
|
|
1493
|
+
this.setOptionValue(
|
|
1494
|
+
curElement.getElementId(),
|
|
1495
|
+
this.constructionRules.knotInfo.knotOPT_RightBottomBack,
|
|
1496
|
+
this.constructionRules.knotInfo.knotOPVs.knot4er_3GT,
|
|
1497
|
+
optionHandler,
|
|
1498
|
+
);
|
|
1499
|
+
break;
|
|
1500
|
+
case 4:
|
|
1501
|
+
this.setOptionValue(
|
|
1502
|
+
curElement.getElementId(),
|
|
1503
|
+
this.constructionRules.knotInfo.knotOPT_RightBottomBack,
|
|
1504
|
+
this.constructionRules.knotInfo.knotOPVs.knot4er_4GT,
|
|
1505
|
+
optionHandler,
|
|
1506
|
+
);
|
|
1507
|
+
break;
|
|
1508
|
+
}
|
|
1509
|
+
}
|
|
1510
1510
|
}*/
|
|
1511
1511
|
}
|
|
1512
1512
|
if (this.getElementIsCornerElement(curElement, optionHandler)) {
|
|
@@ -1691,19 +1691,19 @@ var ConstructionRulesHandler = /*#__PURE__*/function () {
|
|
|
1691
1691
|
_defineProperty__default["default"](this, "checkArticleHasOption", void 0);
|
|
1692
1692
|
_defineProperty__default["default"](this, "updateCfgValuesByPlanner", void 0);
|
|
1693
1693
|
// private repairPairs: () => void;
|
|
1694
|
-
/**
|
|
1695
|
-
* This object holds all the information for constructing the boxPlanner. If you place for example two elements one after another, so the left element has no right wall. However, the right element has a left wall.
|
|
1696
|
-
* Futhermore, there are options, that are applied only to specific elements.
|
|
1694
|
+
/**
|
|
1695
|
+
* This object holds all the information for constructing the boxPlanner. If you place for example two elements one after another, so the left element has no right wall. However, the right element has a left wall.
|
|
1696
|
+
* Futhermore, there are options, that are applied only to specific elements.
|
|
1697
1697
|
*/
|
|
1698
1698
|
_defineProperty__default["default"](this, "constructionRules", void 0);
|
|
1699
1699
|
_defineProperty__default["default"](this, "constructionRulesLoaded", void 0);
|
|
1700
1700
|
_defineProperty__default["default"](this, "hideOptionsForConstruction", void 0);
|
|
1701
1701
|
//This saves an array of options per elementID that are hidden due to construction rules
|
|
1702
1702
|
_defineProperty__default["default"](this, "partlistHelper", void 0);
|
|
1703
|
-
/**
|
|
1704
|
-
* This function looks what value the option has in the current OptionHandler
|
|
1705
|
-
* @param elementId ElementId
|
|
1706
|
-
* @param opt OptionKey
|
|
1703
|
+
/**
|
|
1704
|
+
* This function looks what value the option has in the current OptionHandler
|
|
1705
|
+
* @param elementId ElementId
|
|
1706
|
+
* @param opt OptionKey
|
|
1707
1707
|
*/
|
|
1708
1708
|
_defineProperty__default["default"](this, "getOptionVal", function (elementId, opt, optionHandler) {
|
|
1709
1709
|
if (optionHandler.has(elementId)) {
|
|
@@ -1715,12 +1715,12 @@ var ConstructionRulesHandler = /*#__PURE__*/function () {
|
|
|
1715
1715
|
var opv = _this.getValueOfOptionOfArticle(elementId, opt);
|
|
1716
1716
|
return opv != undefined ? opv : '';
|
|
1717
1717
|
});
|
|
1718
|
-
/**
|
|
1719
|
-
* this fuction check is an element has an option and retuns a bool
|
|
1720
|
-
* @param elementId ElementId
|
|
1721
|
-
* @param opt OptionKey
|
|
1722
|
-
* @param optionHandler
|
|
1723
|
-
* @returns
|
|
1718
|
+
/**
|
|
1719
|
+
* this fuction check is an element has an option and retuns a bool
|
|
1720
|
+
* @param elementId ElementId
|
|
1721
|
+
* @param opt OptionKey
|
|
1722
|
+
* @param optionHandler
|
|
1723
|
+
* @returns
|
|
1724
1724
|
*/
|
|
1725
1725
|
_defineProperty__default["default"](this, "hasOptionValue", function (elementId, opt, optionHandler) {
|
|
1726
1726
|
if (optionHandler.has(elementId)) {
|
|
@@ -1731,8 +1731,8 @@ var ConstructionRulesHandler = /*#__PURE__*/function () {
|
|
|
1731
1731
|
var opv = _this.getValueOfOptionOfArticle(elementId, opt);
|
|
1732
1732
|
return !!opv;
|
|
1733
1733
|
});
|
|
1734
|
-
/**
|
|
1735
|
-
* This function sets te OptionValue in the optionHandler and hideOptiosnForConstruction Information
|
|
1734
|
+
/**
|
|
1735
|
+
* This function sets te OptionValue in the optionHandler and hideOptiosnForConstruction Information
|
|
1736
1736
|
*/
|
|
1737
1737
|
_defineProperty__default["default"](this, "setOptionValue", function (elementId, option, optionValue, optionHandler) {
|
|
1738
1738
|
var _optionHandler$get;
|
|
@@ -1746,9 +1746,9 @@ var ConstructionRulesHandler = /*#__PURE__*/function () {
|
|
|
1746
1746
|
}
|
|
1747
1747
|
}
|
|
1748
1748
|
});
|
|
1749
|
-
/**
|
|
1750
|
-
* This function returns true, if the element has a bottom Plate. Elements with bottom plate are e.g. Offenes Fach oder Schubladen.
|
|
1751
|
-
* Elements without bottom plate are "Garderobe" or "Offenes Fach ohne Boden"
|
|
1749
|
+
/**
|
|
1750
|
+
* This function returns true, if the element has a bottom Plate. Elements with bottom plate are e.g. Offenes Fach oder Schubladen.
|
|
1751
|
+
* Elements without bottom plate are "Garderobe" or "Offenes Fach ohne Boden"
|
|
1752
1752
|
*/
|
|
1753
1753
|
_defineProperty__default["default"](this, "getElementHasBottomPlate", function (curElement, optionHandler) {
|
|
1754
1754
|
if (_this.constructionRules.knotInfo.elementsWithGroundPlate) {
|
|
@@ -1761,10 +1761,10 @@ var ConstructionRulesHandler = /*#__PURE__*/function () {
|
|
|
1761
1761
|
}
|
|
1762
1762
|
return false;
|
|
1763
1763
|
});
|
|
1764
|
-
/**
|
|
1765
|
-
* This function returns true if the current element is a corner element
|
|
1766
|
-
* @param curElement
|
|
1767
|
-
* @param optionHandler
|
|
1764
|
+
/**
|
|
1765
|
+
* This function returns true if the current element is a corner element
|
|
1766
|
+
* @param curElement
|
|
1767
|
+
* @param optionHandler
|
|
1768
1768
|
*/
|
|
1769
1769
|
_defineProperty__default["default"](this, "getElementIsCornerElement", function (curElement, optionHandler) {
|
|
1770
1770
|
return _this.constructionRules.hasCORNER && _this.arrayContainsValue(_this.constructionRules.knotInfo.cornerElements.onOPVs, _this.getOptionVal(curElement.getElementId(), _this.constructionRules.knotInfo.cornerElements.onOPT, optionHandler));
|
|
@@ -1776,11 +1776,11 @@ var ConstructionRulesHandler = /*#__PURE__*/function () {
|
|
|
1776
1776
|
if (_this.getOptionVal(curElement.getElementId(), 'OPTELEMENT', optionHandler) == 'OPVECK_I') return 'INSIDE';else if (_this.getOptionVal(curElement.getElementId(), 'OPTELEMENT', optionHandler) == 'OPVECK_A') return 'OUTSIDE';
|
|
1777
1777
|
return 'NOCORNER';
|
|
1778
1778
|
});
|
|
1779
|
-
/**
|
|
1780
|
-
* This function returns true, if the element has a top plate. It has a top plate if it has no element on the top or the element on the top has a ground plate.
|
|
1781
|
-
* It has no top plate, if the element on top has no ground plate, like a "Garderobe"
|
|
1782
|
-
* @param curElement
|
|
1783
|
-
* @param optionHandler
|
|
1779
|
+
/**
|
|
1780
|
+
* This function returns true, if the element has a top plate. It has a top plate if it has no element on the top or the element on the top has a ground plate.
|
|
1781
|
+
* It has no top plate, if the element on top has no ground plate, like a "Garderobe"
|
|
1782
|
+
* @param curElement
|
|
1783
|
+
* @param optionHandler
|
|
1784
1784
|
*/
|
|
1785
1785
|
_defineProperty__default["default"](this, "getElementHasTopPlate", function (curElement, boxPlannerGrid, optionHandler) {
|
|
1786
1786
|
if (boxPlannerGrid.getElementHasTopElement(curElement.getElementId())) {
|
|
@@ -1796,11 +1796,11 @@ var ConstructionRulesHandler = /*#__PURE__*/function () {
|
|
|
1796
1796
|
this.partlistHelper = new BoxPlannerPartlistHelper(this.getOptionVal, this.setOptionValue, this.getElementHasBottomPlate, this.getElementIsCornerElement, this.getCornerType, this.getElementHasTopPlate, this.getElementIsGarderobeElement);
|
|
1797
1797
|
}
|
|
1798
1798
|
|
|
1799
|
-
/**
|
|
1800
|
-
* This function returns true if an array contains a specific value.
|
|
1801
|
-
* E.G. All unvalid options are separated using ; . This function now returns true, if a specific option is inside
|
|
1802
|
-
* @param rule
|
|
1803
|
-
* @param opt
|
|
1799
|
+
/**
|
|
1800
|
+
* This function returns true if an array contains a specific value.
|
|
1801
|
+
* E.G. All unvalid options are separated using ; . This function now returns true, if a specific option is inside
|
|
1802
|
+
* @param rule
|
|
1803
|
+
* @param opt
|
|
1804
1804
|
*/
|
|
1805
1805
|
return _createClass__default["default"](ConstructionRulesHandler, [{
|
|
1806
1806
|
key: "arrayContainsValue",
|
|
@@ -1833,11 +1833,11 @@ var ConstructionRulesHandler = /*#__PURE__*/function () {
|
|
|
1833
1833
|
}, {
|
|
1834
1834
|
key: "setOptionDoShow",
|
|
1835
1835
|
value:
|
|
1836
|
-
/**
|
|
1837
|
-
* This function sets a specific Option to be visible.
|
|
1838
|
-
* @param elementId The elementID of the target element
|
|
1839
|
-
* @param option The option that should be set to Visible
|
|
1840
|
-
* @param optionHandler The optionHandler that saves all optionChanges in order to fit the boxplannerLogic
|
|
1836
|
+
/**
|
|
1837
|
+
* This function sets a specific Option to be visible.
|
|
1838
|
+
* @param elementId The elementID of the target element
|
|
1839
|
+
* @param option The option that should be set to Visible
|
|
1840
|
+
* @param optionHandler The optionHandler that saves all optionChanges in order to fit the boxplannerLogic
|
|
1841
1841
|
*/
|
|
1842
1842
|
function setOptionDoShow(elementId, option, optionHandler) {
|
|
1843
1843
|
//DivaUtils.LOG.log("Update Box Planner Logic. SetOptionDoShow: elementID: " + elementId + "; Option: " + option);
|
|
@@ -1863,11 +1863,11 @@ var ConstructionRulesHandler = /*#__PURE__*/function () {
|
|
|
1863
1863
|
}
|
|
1864
1864
|
}
|
|
1865
1865
|
}
|
|
1866
|
-
/**
|
|
1867
|
-
* This function sets a specific Option to be hidden.
|
|
1868
|
-
* @param elementId The elementID of the target element
|
|
1869
|
-
* @param option The option that should be set to hidden
|
|
1870
|
-
* @param optionHandler The optionHandler that saves all optionChanges in order to fit the boxplannerLogic
|
|
1866
|
+
/**
|
|
1867
|
+
* This function sets a specific Option to be hidden.
|
|
1868
|
+
* @param elementId The elementID of the target element
|
|
1869
|
+
* @param option The option that should be set to hidden
|
|
1870
|
+
* @param optionHandler The optionHandler that saves all optionChanges in order to fit the boxplannerLogic
|
|
1871
1871
|
*/
|
|
1872
1872
|
}, {
|
|
1873
1873
|
key: "setOptionDoHide",
|
|
@@ -2122,12 +2122,12 @@ var ConstructionRulesHandler = /*#__PURE__*/function () {
|
|
|
2122
2122
|
return messageForView;
|
|
2123
2123
|
}
|
|
2124
2124
|
|
|
2125
|
-
/**
|
|
2126
|
-
* Eg. height or width changed
|
|
2127
|
-
* @param boxPlannerGrid
|
|
2128
|
-
* @param changedOPTs
|
|
2129
|
-
* @param onSelectionChangedElementId
|
|
2130
|
-
* @param optionHandler
|
|
2125
|
+
/**
|
|
2126
|
+
* Eg. height or width changed
|
|
2127
|
+
* @param boxPlannerGrid
|
|
2128
|
+
* @param changedOPTs
|
|
2129
|
+
* @param onSelectionChangedElementId
|
|
2130
|
+
* @param optionHandler
|
|
2131
2131
|
*/
|
|
2132
2132
|
}, {
|
|
2133
2133
|
key: "doCorrectAffectedElementsByOption",
|
|
@@ -2192,9 +2192,9 @@ var ConstructionRulesHandler = /*#__PURE__*/function () {
|
|
|
2192
2192
|
}
|
|
2193
2193
|
}
|
|
2194
2194
|
|
|
2195
|
-
/*
|
|
2196
|
-
This function handles that only one Opt is visible. For Example if a Element Right is already shown, then the element right is hidden.
|
|
2197
|
-
However, one of both is always visible.
|
|
2195
|
+
/*
|
|
2196
|
+
This function handles that only one Opt is visible. For Example if a Element Right is already shown, then the element right is hidden.
|
|
2197
|
+
However, one of both is always visible.
|
|
2198
2198
|
*/
|
|
2199
2199
|
}, {
|
|
2200
2200
|
key: "handleVisibility_SHOW_HIDE",
|
|
@@ -2211,9 +2211,9 @@ var ConstructionRulesHandler = /*#__PURE__*/function () {
|
|
|
2211
2211
|
}
|
|
2212
2212
|
}
|
|
2213
2213
|
|
|
2214
|
-
/*
|
|
2215
|
-
This function handles that only one Opt is visible when the options depend on a element on the front and backside.
|
|
2216
|
-
This is only called once for the element on the backside
|
|
2214
|
+
/*
|
|
2215
|
+
This function handles that only one Opt is visible when the options depend on a element on the front and backside.
|
|
2216
|
+
This is only called once for the element on the backside
|
|
2217
2217
|
*/
|
|
2218
2218
|
}, {
|
|
2219
2219
|
key: "handleBacksideVisibility_SHOW_HIDE",
|
|
@@ -2235,11 +2235,11 @@ var ConstructionRulesHandler = /*#__PURE__*/function () {
|
|
|
2235
2235
|
}
|
|
2236
2236
|
}
|
|
2237
2237
|
|
|
2238
|
-
/**
|
|
2239
|
-
* This function forces both options to hide IF both options are visible. if only one Option is visible, nothing happens.
|
|
2240
|
-
* @param {*} curArticle
|
|
2241
|
-
* @param {*} neighborArticle
|
|
2242
|
-
* @param {*} rule
|
|
2238
|
+
/**
|
|
2239
|
+
* This function forces both options to hide IF both options are visible. if only one Option is visible, nothing happens.
|
|
2240
|
+
* @param {*} curArticle
|
|
2241
|
+
* @param {*} neighborArticle
|
|
2242
|
+
* @param {*} rule
|
|
2243
2243
|
*/
|
|
2244
2244
|
}, {
|
|
2245
2245
|
key: "handleVisibiliy_HIDE_HIDE",
|
|
@@ -2356,10 +2356,10 @@ var ConstructionRulesHandler = /*#__PURE__*/function () {
|
|
|
2356
2356
|
}
|
|
2357
2357
|
}
|
|
2358
2358
|
|
|
2359
|
-
/**
|
|
2360
|
-
* This function corrects the back after everything is set (Default + force options)
|
|
2361
|
-
* @param boxPlannerGrid
|
|
2362
|
-
* @param curElement
|
|
2359
|
+
/**
|
|
2360
|
+
* This function corrects the back after everything is set (Default + force options)
|
|
2361
|
+
* @param boxPlannerGrid
|
|
2362
|
+
* @param curElement
|
|
2363
2363
|
*/
|
|
2364
2364
|
}, {
|
|
2365
2365
|
key: "correctBack",
|
|
@@ -2664,10 +2664,10 @@ var ConstructionRulesHandler = /*#__PURE__*/function () {
|
|
|
2664
2664
|
var neighbourElement = boxPlannerGrid.getNeighborElement(curElemPos.col, curElemPos.row, tempComplementDir, curElemPos.backside);
|
|
2665
2665
|
if (neighbourElement != undefined) {
|
|
2666
2666
|
//Check complementary option
|
|
2667
|
-
/*
|
|
2668
|
-
if (forceOptValue == "dShow") {
|
|
2669
|
-
//beim aktuellen artikel MUSS es gesetzt werden
|
|
2670
|
-
this.setOptionDoShow(curElementId, optName, optionHandler);
|
|
2667
|
+
/*
|
|
2668
|
+
if (forceOptValue == "dShow") {
|
|
2669
|
+
//beim aktuellen artikel MUSS es gesetzt werden
|
|
2670
|
+
this.setOptionDoShow(curElementId, optName, optionHandler);
|
|
2671
2671
|
}*/
|
|
2672
2672
|
var rulesForNeighborArticle = this.getCurOptionBasedConstructionRules(neighbourElement.ElementId, optionHandler);
|
|
2673
2673
|
var complementOptName = optInfo.complementOPT;
|
|
@@ -2782,17 +2782,17 @@ var ConstructionRulesHandler = /*#__PURE__*/function () {
|
|
|
2782
2782
|
}
|
|
2783
2783
|
}
|
|
2784
2784
|
|
|
2785
|
-
/*
|
|
2786
|
-
"_comment_correctRetailArticleNumberByRule": "Specifies that SAP numbers have to be switched when all Elements (range=global) satisfy the rule",
|
|
2787
|
-
"range": "global",
|
|
2788
|
-
"rule": "OPTFARBE_RAHMEN=OPVCHROM&OPTFARBE=OPVWEISS",
|
|
2789
|
-
"retailArticleRules": [
|
|
2790
|
-
{
|
|
2791
|
-
"origRetailArticleNr": 91194,
|
|
2792
|
-
"origPrefix": "SAP",
|
|
2793
|
-
"newRetailArticleNr": 90771,
|
|
2794
|
-
"newPrefix": "SAP"
|
|
2795
|
-
},
|
|
2785
|
+
/*
|
|
2786
|
+
"_comment_correctRetailArticleNumberByRule": "Specifies that SAP numbers have to be switched when all Elements (range=global) satisfy the rule",
|
|
2787
|
+
"range": "global",
|
|
2788
|
+
"rule": "OPTFARBE_RAHMEN=OPVCHROM&OPTFARBE=OPVWEISS",
|
|
2789
|
+
"retailArticleRules": [
|
|
2790
|
+
{
|
|
2791
|
+
"origRetailArticleNr": 91194,
|
|
2792
|
+
"origPrefix": "SAP",
|
|
2793
|
+
"newRetailArticleNr": 90771,
|
|
2794
|
+
"newPrefix": "SAP"
|
|
2795
|
+
},
|
|
2796
2796
|
*/
|
|
2797
2797
|
}, {
|
|
2798
2798
|
key: "correctNeighborCustomOLTs",
|
|
@@ -2856,15 +2856,14 @@ var ConstructionRulesHandler = /*#__PURE__*/function () {
|
|
|
2856
2856
|
|
|
2857
2857
|
//Die gleiche Option kann sowohl nach rechts als auch nach oben gesetzt werden (Rahmen rechts oben). Wenn das der Fall ist, darf wenn es rechts keinen Nachbarn gibt nicht mit doShow überschrieben werden, wenn es vorher bei TOP versteckt wurde
|
|
2858
2858
|
//Deshalb darf es nicht angeschalten werden, wenn es in der gleichen Runde ausgeschalten wurde
|
|
2859
|
-
/*
|
|
2860
|
-
Diese Funktion korrigiert alle sogenannten Construction Options. Beim Planer dürfen zwei nebeneinanderliegenden Elemente nicht jeweils eine Wand rechts und das daneben eine Wand links haben.
|
|
2861
|
-
Dann würden nämlich zwei Wände nebeneinander liegen.
|
|
2862
|
-
Des Weiteren kümmert sich die Funktion darum, dass Füße nur auf der untersten ebene zu sehen sind.
|
|
2863
|
-
Generell wird hier das constuctionRules Objekt evaluiert und ausgewertet.
|
|
2864
|
-
Das Ergebnis wird direkt in den Optionen der Artikel abgepseichert.
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
*/
|
|
2859
|
+
/*
|
|
2860
|
+
Diese Funktion korrigiert alle sogenannten Construction Options. Beim Planer dürfen zwei nebeneinanderliegenden Elemente nicht jeweils eine Wand rechts und das daneben eine Wand links haben.
|
|
2861
|
+
Dann würden nämlich zwei Wände nebeneinander liegen.
|
|
2862
|
+
Des Weiteren kümmert sich die Funktion darum, dass Füße nur auf der untersten ebene zu sehen sind.
|
|
2863
|
+
Generell wird hier das constuctionRules Objekt evaluiert und ausgewertet.
|
|
2864
|
+
Das Ergebnis wird direkt in den Optionen der Artikel abgepseichert.
|
|
2865
|
+
onSelectionChangedArticle: Das ist der Articel der ausgewählt war, als die Option geändert wurde
|
|
2866
|
+
*/
|
|
2868
2867
|
}, {
|
|
2869
2868
|
key: "updateOptionLogicBoxPlanner",
|
|
2870
2869
|
value: function () {
|
|
@@ -2956,9 +2955,9 @@ var ConstructionRulesHandler = /*#__PURE__*/function () {
|
|
|
2956
2955
|
}
|
|
2957
2956
|
return updateOptionLogicBoxPlanner;
|
|
2958
2957
|
}()
|
|
2959
|
-
/**
|
|
2960
|
-
* This function is called when an element is deleted. It deletes the saved constcutionInformation
|
|
2961
|
-
* @param elementId
|
|
2958
|
+
/**
|
|
2959
|
+
* This function is called when an element is deleted. It deletes the saved constcutionInformation
|
|
2960
|
+
* @param elementId
|
|
2962
2961
|
*/
|
|
2963
2962
|
}, {
|
|
2964
2963
|
key: "onElemDeleted",
|
|
@@ -2968,10 +2967,10 @@ var ConstructionRulesHandler = /*#__PURE__*/function () {
|
|
|
2968
2967
|
}
|
|
2969
2968
|
}
|
|
2970
2969
|
|
|
2971
|
-
/**
|
|
2972
|
-
* This function is called when an element is copied. The hideOptionsForConstruction information is copied from one element to the new one.
|
|
2973
|
-
* @param origElementId
|
|
2974
|
-
* @param newElementId
|
|
2970
|
+
/**
|
|
2971
|
+
* This function is called when an element is copied. The hideOptionsForConstruction information is copied from one element to the new one.
|
|
2972
|
+
* @param origElementId
|
|
2973
|
+
* @param newElementId
|
|
2975
2974
|
*/
|
|
2976
2975
|
}, {
|
|
2977
2976
|
key: "onElementCopy",
|
|
@@ -3009,8 +3008,8 @@ var BoxPlannerGrid = /*#__PURE__*/function () {
|
|
|
3009
3008
|
this.getValueOfOptionOfArticle = getValueOfOptionOfArticle;
|
|
3010
3009
|
}
|
|
3011
3010
|
|
|
3012
|
-
/*
|
|
3013
|
-
* Gibt die Breite einer Spalte im Grid zurück. Die Spalte ist immer so breit wie das breiteste Element darin
|
|
3011
|
+
/*
|
|
3012
|
+
* Gibt die Breite einer Spalte im Grid zurück. Die Spalte ist immer so breit wie das breiteste Element darin
|
|
3014
3013
|
*/
|
|
3015
3014
|
return _createClass__default["default"](BoxPlannerGrid, [{
|
|
3016
3015
|
key: "getGridColumnWidth",
|
|
@@ -3036,8 +3035,8 @@ var BoxPlannerGrid = /*#__PURE__*/function () {
|
|
|
3036
3035
|
}
|
|
3037
3036
|
return height;
|
|
3038
3037
|
}
|
|
3039
|
-
/*
|
|
3040
|
-
Deletes the Element on the specified grid Position. If there is no other element in the column, the whole column is deleted.
|
|
3038
|
+
/*
|
|
3039
|
+
Deletes the Element on the specified grid Position. If there is no other element in the column, the whole column is deleted.
|
|
3041
3040
|
*/
|
|
3042
3041
|
}, {
|
|
3043
3042
|
key: "deleteGridPos",
|
|
@@ -3080,17 +3079,17 @@ var BoxPlannerGrid = /*#__PURE__*/function () {
|
|
|
3080
3079
|
}
|
|
3081
3080
|
}
|
|
3082
3081
|
|
|
3083
|
-
/*
|
|
3084
|
-
private correctWorldPosInGrid(plannerElement: PlannerElementData) {
|
|
3085
|
-
//Braucht es das überhaupt?
|
|
3086
|
-
}
|
|
3082
|
+
/*
|
|
3083
|
+
private correctWorldPosInGrid(plannerElement: PlannerElementData) {
|
|
3084
|
+
//Braucht es das überhaupt?
|
|
3085
|
+
}
|
|
3087
3086
|
*/
|
|
3088
3087
|
|
|
3089
|
-
/**
|
|
3090
|
-
* This function returns the ElementID of the element at a specific GridPosition.
|
|
3091
|
-
* If there is no element at this position, the function returns undefined
|
|
3092
|
-
* @param curXPos
|
|
3093
|
-
* @param curYPos
|
|
3088
|
+
/**
|
|
3089
|
+
* This function returns the ElementID of the element at a specific GridPosition.
|
|
3090
|
+
* If there is no element at this position, the function returns undefined
|
|
3091
|
+
* @param curXPos
|
|
3092
|
+
* @param curYPos
|
|
3094
3093
|
*/
|
|
3095
3094
|
}, {
|
|
3096
3095
|
key: "getPlannerElementAtGridPos",
|
|
@@ -3102,10 +3101,10 @@ var BoxPlannerGrid = /*#__PURE__*/function () {
|
|
|
3102
3101
|
return undefined;
|
|
3103
3102
|
}
|
|
3104
3103
|
|
|
3105
|
-
/**
|
|
3106
|
-
* This function returns the index of an element by elementId in the grid.
|
|
3107
|
-
* It returns the column and row position in the grid and if it is in the front or backgrid
|
|
3108
|
-
* @param elementId
|
|
3104
|
+
/**
|
|
3105
|
+
* This function returns the index of an element by elementId in the grid.
|
|
3106
|
+
* It returns the column and row position in the grid and if it is in the front or backgrid
|
|
3107
|
+
* @param elementId
|
|
3109
3108
|
*/
|
|
3110
3109
|
}, {
|
|
3111
3110
|
key: "getIndexInGridByElementId",
|
|
@@ -3134,8 +3133,8 @@ var BoxPlannerGrid = /*#__PURE__*/function () {
|
|
|
3134
3133
|
backside: false
|
|
3135
3134
|
};
|
|
3136
3135
|
}
|
|
3137
|
-
/**
|
|
3138
|
-
* This function returns all elementIds that are inside the grid
|
|
3136
|
+
/**
|
|
3137
|
+
* This function returns all elementIds that are inside the grid
|
|
3139
3138
|
*/
|
|
3140
3139
|
}, {
|
|
3141
3140
|
key: "getAllElementIdsInGrid",
|
|
@@ -3175,8 +3174,8 @@ var BoxPlannerGrid = /*#__PURE__*/function () {
|
|
|
3175
3174
|
}
|
|
3176
3175
|
return allElements;
|
|
3177
3176
|
}
|
|
3178
|
-
/**
|
|
3179
|
-
* This function returns all elements In grid - from frontside and from backside
|
|
3177
|
+
/**
|
|
3178
|
+
* This function returns all elements In grid - from frontside and from backside
|
|
3180
3179
|
*/
|
|
3181
3180
|
}, {
|
|
3182
3181
|
key: "getAllElementsInGrid",
|
|
@@ -3202,9 +3201,9 @@ var BoxPlannerGrid = /*#__PURE__*/function () {
|
|
|
3202
3201
|
return curElementGrid[pos.col][pos.row];
|
|
3203
3202
|
}
|
|
3204
3203
|
|
|
3205
|
-
/**
|
|
3206
|
-
* Returns true if the element by ElementId is in the bottomLeft corner of the grid
|
|
3207
|
-
* @param elementId
|
|
3204
|
+
/**
|
|
3205
|
+
* Returns true if the element by ElementId is in the bottomLeft corner of the grid
|
|
3206
|
+
* @param elementId
|
|
3208
3207
|
*/
|
|
3209
3208
|
}, {
|
|
3210
3209
|
key: "getElementIsFirstInGrid",
|
|
@@ -3213,9 +3212,9 @@ var BoxPlannerGrid = /*#__PURE__*/function () {
|
|
|
3213
3212
|
return pos.col == 0 && pos.row == 0 && !pos.backside;
|
|
3214
3213
|
}
|
|
3215
3214
|
|
|
3216
|
-
/**
|
|
3217
|
-
* Returns true if the element by ElementId is in the bottomLeft corner of the grid
|
|
3218
|
-
* @param elementId
|
|
3215
|
+
/**
|
|
3216
|
+
* Returns true if the element by ElementId is in the bottomLeft corner of the grid
|
|
3217
|
+
* @param elementId
|
|
3219
3218
|
*/
|
|
3220
3219
|
}, {
|
|
3221
3220
|
key: "getElementIsInLastCol",
|
|
@@ -3225,9 +3224,9 @@ var BoxPlannerGrid = /*#__PURE__*/function () {
|
|
|
3225
3224
|
return pos.col + 1 == curElementGrid.length;
|
|
3226
3225
|
}
|
|
3227
3226
|
|
|
3228
|
-
/**
|
|
3229
|
-
* returns true if the element has another element on top
|
|
3230
|
-
* @param elementId
|
|
3227
|
+
/**
|
|
3228
|
+
* returns true if the element has another element on top
|
|
3229
|
+
* @param elementId
|
|
3231
3230
|
*/
|
|
3232
3231
|
}, {
|
|
3233
3232
|
key: "getElementHasTopElement",
|
|
@@ -3237,9 +3236,9 @@ var BoxPlannerGrid = /*#__PURE__*/function () {
|
|
|
3237
3236
|
if (curElementGrid[pos.col].length > pos.row + 1) return true;
|
|
3238
3237
|
return false;
|
|
3239
3238
|
}
|
|
3240
|
-
/**
|
|
3241
|
-
* returns the element on the top of the current element
|
|
3242
|
-
* @param elementId
|
|
3239
|
+
/**
|
|
3240
|
+
* returns the element on the top of the current element
|
|
3241
|
+
* @param elementId
|
|
3243
3242
|
*/
|
|
3244
3243
|
}, {
|
|
3245
3244
|
key: "getTopElement",
|
|
@@ -3250,9 +3249,9 @@ var BoxPlannerGrid = /*#__PURE__*/function () {
|
|
|
3250
3249
|
return undefined;
|
|
3251
3250
|
}
|
|
3252
3251
|
|
|
3253
|
-
/**
|
|
3254
|
-
* returns the element on the top right of the current element
|
|
3255
|
-
* @param elementId
|
|
3252
|
+
/**
|
|
3253
|
+
* returns the element on the top right of the current element
|
|
3254
|
+
* @param elementId
|
|
3256
3255
|
*/
|
|
3257
3256
|
}, {
|
|
3258
3257
|
key: "getTopRightElement",
|
|
@@ -3263,9 +3262,9 @@ var BoxPlannerGrid = /*#__PURE__*/function () {
|
|
|
3263
3262
|
return undefined;
|
|
3264
3263
|
}
|
|
3265
3264
|
|
|
3266
|
-
/**
|
|
3267
|
-
* returns the element on the top left of the current element
|
|
3268
|
-
* @param elementId
|
|
3265
|
+
/**
|
|
3266
|
+
* returns the element on the top left of the current element
|
|
3267
|
+
* @param elementId
|
|
3269
3268
|
*/
|
|
3270
3269
|
}, {
|
|
3271
3270
|
key: "getTopLeftElement",
|
|
@@ -3275,9 +3274,9 @@ var BoxPlannerGrid = /*#__PURE__*/function () {
|
|
|
3275
3274
|
if (pos.col > 0 && curElementGrid[pos.col - 1][pos.row - 1] != undefined) return curElementGrid[pos.col - 1][pos.row - 1];
|
|
3276
3275
|
return undefined;
|
|
3277
3276
|
}
|
|
3278
|
-
/**
|
|
3279
|
-
* returns true if the element has another element on the bottom
|
|
3280
|
-
* @param elementId
|
|
3277
|
+
/**
|
|
3278
|
+
* returns true if the element has another element on the bottom
|
|
3279
|
+
* @param elementId
|
|
3281
3280
|
*/
|
|
3282
3281
|
}, {
|
|
3283
3282
|
key: "getElementHasBottomElement",
|
|
@@ -3286,9 +3285,9 @@ var BoxPlannerGrid = /*#__PURE__*/function () {
|
|
|
3286
3285
|
if (pos.row - 1 >= 0) return true;
|
|
3287
3286
|
return false;
|
|
3288
3287
|
}
|
|
3289
|
-
/**
|
|
3290
|
-
* returns the element on the bottom of the current element
|
|
3291
|
-
* @param elementId
|
|
3288
|
+
/**
|
|
3289
|
+
* returns the element on the bottom of the current element
|
|
3290
|
+
* @param elementId
|
|
3292
3291
|
*/
|
|
3293
3292
|
}, {
|
|
3294
3293
|
key: "getBottomElement",
|
|
@@ -3298,9 +3297,9 @@ var BoxPlannerGrid = /*#__PURE__*/function () {
|
|
|
3298
3297
|
if (pos.row - 1 >= 0) return curElementGrid[pos.col][pos.row - 1];
|
|
3299
3298
|
return undefined;
|
|
3300
3299
|
}
|
|
3301
|
-
/**
|
|
3302
|
-
* returns true if the element has another element on its right side
|
|
3303
|
-
* @param elementId
|
|
3300
|
+
/**
|
|
3301
|
+
* returns true if the element has another element on its right side
|
|
3302
|
+
* @param elementId
|
|
3304
3303
|
*/
|
|
3305
3304
|
}, {
|
|
3306
3305
|
key: "getElementHasRightElement",
|
|
@@ -3323,9 +3322,9 @@ var BoxPlannerGrid = /*#__PURE__*/function () {
|
|
|
3323
3322
|
return undefined;
|
|
3324
3323
|
}
|
|
3325
3324
|
|
|
3326
|
-
/**
|
|
3327
|
-
* returns true if the element has another element on its left side
|
|
3328
|
-
* @param elementId
|
|
3325
|
+
/**
|
|
3326
|
+
* returns true if the element has another element on its left side
|
|
3327
|
+
* @param elementId
|
|
3329
3328
|
*/
|
|
3330
3329
|
}, {
|
|
3331
3330
|
key: "getElementHasLeftElement",
|
|
@@ -3341,9 +3340,9 @@ var BoxPlannerGrid = /*#__PURE__*/function () {
|
|
|
3341
3340
|
if (pos.col > 0 && this.getPlannerElementAtGridPos(pos.col - 1, pos.row, pos.backside) != undefined) return this.getPlannerElementAtGridPos(pos.col - 1, pos.row, pos.backside);
|
|
3342
3341
|
return undefined;
|
|
3343
3342
|
}
|
|
3344
|
-
/*
|
|
3345
|
-
returns all Elements in the column.
|
|
3346
|
-
index: index of the column in the grid
|
|
3343
|
+
/*
|
|
3344
|
+
returns all Elements in the column.
|
|
3345
|
+
index: index of the column in the grid
|
|
3347
3346
|
*/
|
|
3348
3347
|
}, {
|
|
3349
3348
|
key: "getAllElementsInColumn",
|
|
@@ -3357,8 +3356,8 @@ var BoxPlannerGrid = /*#__PURE__*/function () {
|
|
|
3357
3356
|
return curElementGrid.length > index ? result : undefined;
|
|
3358
3357
|
}
|
|
3359
3358
|
|
|
3360
|
-
/**
|
|
3361
|
-
* This function returns the count of columns in the grid
|
|
3359
|
+
/**
|
|
3360
|
+
* This function returns the count of columns in the grid
|
|
3362
3361
|
*/
|
|
3363
3362
|
}, {
|
|
3364
3363
|
key: "getColumnCount",
|
|
@@ -3366,9 +3365,9 @@ var BoxPlannerGrid = /*#__PURE__*/function () {
|
|
|
3366
3365
|
return this.plannedElementGrid.length;
|
|
3367
3366
|
}
|
|
3368
3367
|
|
|
3369
|
-
/**
|
|
3370
|
-
* This function returns the count of rows in a columns
|
|
3371
|
-
* @param colIndex
|
|
3368
|
+
/**
|
|
3369
|
+
* This function returns the count of rows in a columns
|
|
3370
|
+
* @param colIndex
|
|
3372
3371
|
*/
|
|
3373
3372
|
}, {
|
|
3374
3373
|
key: "getRowCount",
|
|
@@ -3376,9 +3375,9 @@ var BoxPlannerGrid = /*#__PURE__*/function () {
|
|
|
3376
3375
|
return this.plannedElementGrid[colIndex].length;
|
|
3377
3376
|
}
|
|
3378
3377
|
|
|
3379
|
-
/*
|
|
3380
|
-
returns all Elements in the row of the grid.
|
|
3381
|
-
index: index of the row in the grid
|
|
3378
|
+
/*
|
|
3379
|
+
returns all Elements in the row of the grid.
|
|
3380
|
+
index: index of the row in the grid
|
|
3382
3381
|
*/
|
|
3383
3382
|
}, {
|
|
3384
3383
|
key: "getAllElementsInRow",
|
|
@@ -3391,8 +3390,8 @@ var BoxPlannerGrid = /*#__PURE__*/function () {
|
|
|
3391
3390
|
return allElements;
|
|
3392
3391
|
}
|
|
3393
3392
|
|
|
3394
|
-
/**
|
|
3395
|
-
* This function returns the size of the highes row element over all columns
|
|
3393
|
+
/**
|
|
3394
|
+
* This function returns the size of the highes row element over all columns
|
|
3396
3395
|
*/
|
|
3397
3396
|
}, {
|
|
3398
3397
|
key: "getSizeOfHighesRow",
|
|
@@ -3405,11 +3404,11 @@ var BoxPlannerGrid = /*#__PURE__*/function () {
|
|
|
3405
3404
|
return highestRow;
|
|
3406
3405
|
}
|
|
3407
3406
|
|
|
3408
|
-
/**
|
|
3409
|
-
* This function returns the neighbor element in the grid
|
|
3410
|
-
* @param curXPos
|
|
3411
|
-
* @param curYPos
|
|
3412
|
-
* @param dir
|
|
3407
|
+
/**
|
|
3408
|
+
* This function returns the neighbor element in the grid
|
|
3409
|
+
* @param curXPos
|
|
3410
|
+
* @param curYPos
|
|
3411
|
+
* @param dir
|
|
3413
3412
|
*/
|
|
3414
3413
|
}, {
|
|
3415
3414
|
key: "getNeighborElement",
|
|
@@ -3467,9 +3466,9 @@ var BoxPlannerGrid = /*#__PURE__*/function () {
|
|
|
3467
3466
|
return oppositeElements;
|
|
3468
3467
|
}
|
|
3469
3468
|
|
|
3470
|
-
/**
|
|
3471
|
-
* this function returns the size Information of the set.
|
|
3472
|
-
* Because of the fact that the backside is always opposite of the front side - only the front side is used for calculation
|
|
3469
|
+
/**
|
|
3470
|
+
* this function returns the size Information of the set.
|
|
3471
|
+
* Because of the fact that the backside is always opposite of the front side - only the front side is used for calculation
|
|
3473
3472
|
*/
|
|
3474
3473
|
}, {
|
|
3475
3474
|
key: "getSizeOfWholeSet",
|
|
@@ -3496,8 +3495,8 @@ var BoxPlannerGrid = /*#__PURE__*/function () {
|
|
|
3496
3495
|
return new index.Vector3(width, height, depth);
|
|
3497
3496
|
}
|
|
3498
3497
|
|
|
3499
|
-
/**
|
|
3500
|
-
* Returns all Elements that are under the specified element
|
|
3498
|
+
/**
|
|
3499
|
+
* Returns all Elements that are under the specified element
|
|
3501
3500
|
*/
|
|
3502
3501
|
}, {
|
|
3503
3502
|
key: "getAllElementsDown",
|
|
@@ -3623,12 +3622,12 @@ var BoxPlannerGrid = /*#__PURE__*/function () {
|
|
|
3623
3622
|
}
|
|
3624
3623
|
}
|
|
3625
3624
|
|
|
3626
|
-
/**
|
|
3627
|
-
* This function deletes an Element from the grid.
|
|
3628
|
-
* If backsideModule is active, than the oppsite Element is deleted as well
|
|
3629
|
-
* If the boxPlanner_backside switch deletion type is set, do not delete the opposite element
|
|
3630
|
-
* @param elementId
|
|
3631
|
-
* @returns all elements that are deleted - it can happen that multiple elements get deleted
|
|
3625
|
+
/**
|
|
3626
|
+
* This function deletes an Element from the grid.
|
|
3627
|
+
* If backsideModule is active, than the oppsite Element is deleted as well
|
|
3628
|
+
* If the boxPlanner_backside switch deletion type is set, do not delete the opposite element
|
|
3629
|
+
* @param elementId
|
|
3630
|
+
* @returns all elements that are deleted - it can happen that multiple elements get deleted
|
|
3632
3631
|
*/
|
|
3633
3632
|
}, {
|
|
3634
3633
|
key: "deleteElement",
|
|
@@ -3652,9 +3651,9 @@ var BoxPlannerGrid = /*#__PURE__*/function () {
|
|
|
3652
3651
|
return result;
|
|
3653
3652
|
}
|
|
3654
3653
|
|
|
3655
|
-
/**
|
|
3656
|
-
* This function updates the world position of all Elements in the grid.
|
|
3657
|
-
* First the world position of the front grid is computed. If the backside is active, it also computes the posNr of the elements on the backside.
|
|
3654
|
+
/**
|
|
3655
|
+
* This function updates the world position of all Elements in the grid.
|
|
3656
|
+
* First the world position of the front grid is computed. If the backside is active, it also computes the posNr of the elements on the backside.
|
|
3658
3657
|
*/
|
|
3659
3658
|
}, {
|
|
3660
3659
|
key: "updateWorldPosOfElements",
|
|
@@ -3712,9 +3711,9 @@ var BoxPlannerGrid = /*#__PURE__*/function () {
|
|
|
3712
3711
|
}
|
|
3713
3712
|
}
|
|
3714
3713
|
|
|
3715
|
-
/**
|
|
3716
|
-
* This function destroys the box Planner and its grid. It also destroys all plannerElements inside.
|
|
3717
|
-
* If the backside Module is active, also the backside module has to be updated
|
|
3714
|
+
/**
|
|
3715
|
+
* This function destroys the box Planner and its grid. It also destroys all plannerElements inside.
|
|
3716
|
+
* If the backside Module is active, also the backside module has to be updated
|
|
3718
3717
|
*/
|
|
3719
3718
|
}, {
|
|
3720
3719
|
key: "destroyBoxPlannerGrid",
|
|
@@ -3739,8 +3738,8 @@ var BoxPlannerGrid = /*#__PURE__*/function () {
|
|
|
3739
3738
|
this.backModulPlannedElementGrid = [];
|
|
3740
3739
|
}
|
|
3741
3740
|
}
|
|
3742
|
-
/**
|
|
3743
|
-
|
|
3741
|
+
/**
|
|
3742
|
+
|
|
3744
3743
|
*/
|
|
3745
3744
|
}, {
|
|
3746
3745
|
key: "getAllElementsInBacksideModuleGrid",
|
|
@@ -3754,8 +3753,8 @@ var BoxPlannerGrid = /*#__PURE__*/function () {
|
|
|
3754
3753
|
return elementsInGrid;
|
|
3755
3754
|
}
|
|
3756
3755
|
|
|
3757
|
-
/**
|
|
3758
|
-
* Destroys the backside module Grid and returns all Element ids inside the backside grid
|
|
3756
|
+
/**
|
|
3757
|
+
* Destroys the backside module Grid and returns all Element ids inside the backside grid
|
|
3759
3758
|
*/
|
|
3760
3759
|
}, {
|
|
3761
3760
|
key: "destroyBacksideModuleGrid",
|
|
@@ -4015,10 +4014,10 @@ var DivaBoxPlanner = /*#__PURE__*/function () {
|
|
|
4015
4014
|
return saveSet;
|
|
4016
4015
|
}
|
|
4017
4016
|
|
|
4018
|
-
/**
|
|
4019
|
-
* Add a planner Element (CoPY?)
|
|
4020
|
-
* @param basketID
|
|
4021
|
-
* @param params
|
|
4017
|
+
/**
|
|
4018
|
+
* Add a planner Element (CoPY?)
|
|
4019
|
+
* @param basketID
|
|
4020
|
+
* @param params
|
|
4022
4021
|
*/
|
|
4023
4022
|
}, {
|
|
4024
4023
|
key: "addPlannerElement",
|
|
@@ -4083,10 +4082,10 @@ var DivaBoxPlanner = /*#__PURE__*/function () {
|
|
|
4083
4082
|
}
|
|
4084
4083
|
return extendPlanner;
|
|
4085
4084
|
}()
|
|
4086
|
-
/**
|
|
4087
|
-
* Handles copyying the planner Element. it can happen that also other planner elements are influenced
|
|
4088
|
-
* @param articleCopyRelation Holds the relation - which element with elementID is copyed and has a new Article. ElementToCopyID -> BasketID of new Article
|
|
4089
|
-
* @param params
|
|
4085
|
+
/**
|
|
4086
|
+
* Handles copyying the planner Element. it can happen that also other planner elements are influenced
|
|
4087
|
+
* @param articleCopyRelation Holds the relation - which element with elementID is copyed and has a new Article. ElementToCopyID -> BasketID of new Article
|
|
4088
|
+
* @param params
|
|
4090
4089
|
*/
|
|
4091
4090
|
}, {
|
|
4092
4091
|
key: "copyPlannerElement",
|
|
@@ -4176,13 +4175,13 @@ var DivaBoxPlanner = /*#__PURE__*/function () {
|
|
|
4176
4175
|
value: function initIDM3DMeta(IDM3DCatCodex) {
|
|
4177
4176
|
LOG.debug('No IDM3D Planner for BoxPlanner');
|
|
4178
4177
|
}
|
|
4179
|
-
/**
|
|
4180
|
-
* This function returns all elements that are influenced by copying them.
|
|
4181
|
-
* In the box Planner all elements under the Element to copy are copied as well
|
|
4182
|
-
* If the boxPlanner has a backside element, it returns also the elements on the opposide. Depending if current element is on the front or back.
|
|
4183
|
-
* @param elementId
|
|
4184
|
-
* @param params
|
|
4185
|
-
* @returns the list of plannerElements that have to be copied .
|
|
4178
|
+
/**
|
|
4179
|
+
* This function returns all elements that are influenced by copying them.
|
|
4180
|
+
* In the box Planner all elements under the Element to copy are copied as well
|
|
4181
|
+
* If the boxPlanner has a backside element, it returns also the elements on the opposide. Depending if current element is on the front or back.
|
|
4182
|
+
* @param elementId
|
|
4183
|
+
* @param params
|
|
4184
|
+
* @returns the list of plannerElements that have to be copied .
|
|
4186
4185
|
*/
|
|
4187
4186
|
}, {
|
|
4188
4187
|
key: "getPlannerElementsInfluencedByCopy",
|
|
@@ -4217,11 +4216,11 @@ var DivaBoxPlanner = /*#__PURE__*/function () {
|
|
|
4217
4216
|
return allElementsToCopy;
|
|
4218
4217
|
}
|
|
4219
4218
|
|
|
4220
|
-
/**
|
|
4221
|
-
* Delete Box Planner element
|
|
4222
|
-
* If the box planner has an active backside, then it also deletes the opposite element
|
|
4223
|
-
* @param elementId ElementID of the element that should be deleted.
|
|
4224
|
-
* @returns elementId of the next to select element
|
|
4219
|
+
/**
|
|
4220
|
+
* Delete Box Planner element
|
|
4221
|
+
* If the box planner has an active backside, then it also deletes the opposite element
|
|
4222
|
+
* @param elementId ElementID of the element that should be deleted.
|
|
4223
|
+
* @returns elementId of the next to select element
|
|
4225
4224
|
*/
|
|
4226
4225
|
}, {
|
|
4227
4226
|
key: "deletePlannerElement",
|
|
@@ -4296,8 +4295,8 @@ var DivaBoxPlanner = /*#__PURE__*/function () {
|
|
|
4296
4295
|
}
|
|
4297
4296
|
return deletePlannerElement;
|
|
4298
4297
|
}()
|
|
4299
|
-
/**
|
|
4300
|
-
* Get all Planner Elements used for View
|
|
4298
|
+
/**
|
|
4299
|
+
* Get all Planner Elements used for View
|
|
4301
4300
|
*/
|
|
4302
4301
|
)
|
|
4303
4302
|
}, {
|
|
@@ -4336,8 +4335,8 @@ var DivaBoxPlanner = /*#__PURE__*/function () {
|
|
|
4336
4335
|
value: function getDockedGroups() {
|
|
4337
4336
|
return [this.boxPlannerGrid.getAllElementIdsInGrid()];
|
|
4338
4337
|
}
|
|
4339
|
-
/**
|
|
4340
|
-
* Get Bounding Box of 2D Planning
|
|
4338
|
+
/**
|
|
4339
|
+
* Get Bounding Box of 2D Planning
|
|
4341
4340
|
*/
|
|
4342
4341
|
}, {
|
|
4343
4342
|
key: "getBoundingBox",
|
|
@@ -4345,15 +4344,15 @@ var DivaBoxPlanner = /*#__PURE__*/function () {
|
|
|
4345
4344
|
LOG.warn('BoxPlanner - get2DViewPlannerBoundingBox not implemented yet', 'WC_0012');
|
|
4346
4345
|
return new index.BoundingBox();
|
|
4347
4346
|
}
|
|
4348
|
-
/**
|
|
4349
|
-
* This function is called every time the transformation of a planner Element is changed in the view. For example when the user moves the 2D Shape around.
|
|
4350
|
-
* When it is the first action, all AVL and AVR docking Points are removed. When it is the last action "END" then the planner is updated an dockable docking points are searched.
|
|
4351
|
-
*
|
|
4352
|
-
* @param elementId
|
|
4353
|
-
* @param deltaMove
|
|
4354
|
-
* @param deltaAngleDeg
|
|
4355
|
-
* @param transState
|
|
4356
|
-
* @param autoDockingDistance //Gibt an in welchem Radius automatisch gedockt werden muss
|
|
4347
|
+
/**
|
|
4348
|
+
* This function is called every time the transformation of a planner Element is changed in the view. For example when the user moves the 2D Shape around.
|
|
4349
|
+
* When it is the first action, all AVL and AVR docking Points are removed. When it is the last action "END" then the planner is updated an dockable docking points are searched.
|
|
4350
|
+
*
|
|
4351
|
+
* @param elementId
|
|
4352
|
+
* @param deltaMove
|
|
4353
|
+
* @param deltaAngleDeg
|
|
4354
|
+
* @param transState
|
|
4355
|
+
* @param autoDockingDistance //Gibt an in welchem Radius automatisch gedockt werden muss
|
|
4357
4356
|
*/
|
|
4358
4357
|
}, {
|
|
4359
4358
|
key: "updatePlannerTrans",
|
|
@@ -4364,9 +4363,9 @@ var DivaBoxPlanner = /*#__PURE__*/function () {
|
|
|
4364
4363
|
return false;
|
|
4365
4364
|
}
|
|
4366
4365
|
|
|
4367
|
-
/**
|
|
4368
|
-
* This function updates the Planner. It is called after a configuration changed.
|
|
4369
|
-
* @returns it returns all elementIds that should be deleted
|
|
4366
|
+
/**
|
|
4367
|
+
* This function updates the Planner. It is called after a configuration changed.
|
|
4368
|
+
* @returns it returns all elementIds that should be deleted
|
|
4370
4369
|
*/
|
|
4371
4370
|
}, {
|
|
4372
4371
|
key: "updatePlanner",
|
|
@@ -4522,8 +4521,8 @@ var DivaBoxPlanner = /*#__PURE__*/function () {
|
|
|
4522
4521
|
}
|
|
4523
4522
|
return updatePlanner;
|
|
4524
4523
|
}()
|
|
4525
|
-
/*
|
|
4526
|
-
This function returns all informations that are needed to visualize the set in 3D
|
|
4524
|
+
/*
|
|
4525
|
+
This function returns all informations that are needed to visualize the set in 3D
|
|
4527
4526
|
*/
|
|
4528
4527
|
)
|
|
4529
4528
|
}, {
|
|
@@ -4578,8 +4577,8 @@ var DivaBoxPlanner = /*#__PURE__*/function () {
|
|
|
4578
4577
|
return this.plannerID;
|
|
4579
4578
|
}
|
|
4580
4579
|
|
|
4581
|
-
/**
|
|
4582
|
-
* This function returns the position information for each element. The infomration is returned as an object with elementId: posNr.
|
|
4580
|
+
/**
|
|
4581
|
+
* This function returns the position information for each element. The infomration is returned as an object with elementId: posNr.
|
|
4583
4582
|
*/
|
|
4584
4583
|
}, {
|
|
4585
4584
|
key: "getElementPosInfo",
|
|
@@ -4609,8 +4608,8 @@ var DivaBoxPlanner = /*#__PURE__*/function () {
|
|
|
4609
4608
|
// this.plannerBoundingBox.calcPlannerBoundingBox(this.getAllPlannerElements());
|
|
4610
4609
|
}
|
|
4611
4610
|
|
|
4612
|
-
/**
|
|
4613
|
-
* The planning is completed if at least one element is planned
|
|
4611
|
+
/**
|
|
4612
|
+
* The planning is completed if at least one element is planned
|
|
4614
4613
|
*/
|
|
4615
4614
|
}, {
|
|
4616
4615
|
key: "getPlanningIsComplete",
|