@crystaldesign/web-planner-logic 25.13.0-beta.9 → 25.14.0-beta.1
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-9dc63e6c.js → DivaBoxPlanner-1aa00c05.js} +949 -632
- package/build/cjs/{DivaStandardPlanner-edc8adbb.js → DivaStandardPlanner-6f7f29c2.js} +101 -74
- package/build/cjs/{DoorPlanner-4184aa93.js → DoorPlanner-cac35b21.js} +1 -1
- package/build/cjs/{Host3DSignalR-3e4afb1c.js → Host3DSignalR-99bf15f7.js} +19 -1
- package/build/cjs/{LiviqueWWSHandler-566296fe.js → LiviqueWWSHandler-96b45f30.js} +1 -1
- package/build/cjs/{PfisterWWSHandler-c131cf9d.js → PfisterWWSHandler-ca57914a.js} +1 -1
- package/build/cjs/{PlannerHandler2D-cdf785a8.js → PlannerHandler2D-c2f424fb.js} +1 -1
- package/build/cjs/{SeriousBasketHandler-62a42abd.js → SeriousBasketHandler-3da471b1.js} +1 -1
- package/build/cjs/{ShelfPlanner-5d155708.js → ShelfPlanner-0e604bef.js} +1 -1
- package/build/cjs/{StandardWWSHandler-e33be010.js → StandardWWSHandler-7830aef9.js} +1 -1
- package/build/cjs/{index-589e2f4b.js → index-66e9bbd7.js} +2267 -1352
- package/build/cjs/index.js +3 -1
- package/build/esm/{DivaBoxPlanner-091c8b09.js → DivaBoxPlanner-8c163d35.js} +949 -632
- package/build/esm/{DivaStandardPlanner-8c6fe69d.js → DivaStandardPlanner-d89575a9.js} +101 -74
- package/build/esm/{DoorPlanner-b7931e1b.js → DoorPlanner-a5b01dbb.js} +1 -1
- package/build/esm/{Host3DSignalR-f59bbfff.js → Host3DSignalR-45d8f4c4.js} +19 -1
- package/build/esm/{LiviqueWWSHandler-17487162.js → LiviqueWWSHandler-ef620655.js} +1 -1
- package/build/esm/{PfisterWWSHandler-38fd3e0b.js → PfisterWWSHandler-bfd319db.js} +1 -1
- package/build/esm/{PlannerHandler2D-80d37ff1.js → PlannerHandler2D-af50a706.js} +1 -1
- package/build/esm/{SeriousBasketHandler-2843e656.js → SeriousBasketHandler-40a88689.js} +1 -1
- package/build/esm/{ShelfPlanner-d144ac1f.js → ShelfPlanner-e9996b84.js} +1 -1
- package/build/esm/{StandardWWSHandler-c87284af.js → StandardWWSHandler-f6e8e368.js} +1 -1
- package/build/esm/{index-f875e861.js → index-f5485f21.js} +2266 -1353
- package/build/esm/index.js +1 -1
- package/build/types/web-planner-logic/src/index.d.ts +4 -2
- package/build/types/web-planner-logic/src/index.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/API/AiImageResult.d.ts +82 -0
- package/build/types/web-planner-logic/src/interface/API/AiImageResult.d.ts.map +1 -0
- package/build/types/web-planner-logic/src/interface/API/Checkout.d.ts +4 -1
- package/build/types/web-planner-logic/src/interface/API/Checkout.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/API/ViewConfigDataType.d.ts +2 -0
- package/build/types/web-planner-logic/src/interface/API/ViewConfigDataType.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/AdditionalModelInfos.d.ts +19 -0
- package/build/types/web-planner-logic/src/interface/AdditionalModelInfos.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/Articles/AccessoireItemType.d.ts +1 -1
- package/build/types/web-planner-logic/src/interface/Articles/AccessoireItemType.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/Articles/CatalogArticleDataType.d.ts +6 -15
- package/build/types/web-planner-logic/src/interface/Articles/CatalogArticleDataType.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/Articles/CatalogPlannerArticleViewDataType.d.ts +1 -1
- 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 +2 -0
- package/build/types/web-planner-logic/src/interface/CoreTypes/index.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/DivaCatalogDataType.d.ts +2 -1
- package/build/types/web-planner-logic/src/interface/DivaCatalogDataType.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/FunctionTypes/index.d.ts +1 -1
- package/build/types/web-planner-logic/src/interface/FunctionTypes/index.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/OptionTypes/ArticleOptionDataTypes.d.ts +6 -0
- package/build/types/web-planner-logic/src/interface/OptionTypes/ArticleOptionDataTypes.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/OptionTypes/ArticleOptionValueView.d.ts +1 -1
- package/build/types/web-planner-logic/src/interface/OptionTypes/ArticleOptionValueView.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/OptionTypes/CatalogOptionDataTypes.d.ts +26 -20
- package/build/types/web-planner-logic/src/interface/OptionTypes/CatalogOptionDataTypes.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/ShelfPlanner/ShelfAccessoiresView.d.ts +1 -1
- package/build/types/web-planner-logic/src/interface/ShelfPlanner/ShelfAccessoiresView.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/ViewTypes/index.d.ts +9 -0
- package/build/types/web-planner-logic/src/interface/ViewTypes/index.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/webPlannerParams/WebPlannerParamsType.d.ts +5 -0
- package/build/types/web-planner-logic/src/interface/webPlannerParams/WebPlannerParamsType.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Article/DivaArticle.d.ts +2 -0
- package/build/types/web-planner-logic/src/logic/Article/DivaArticle.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Article/Engine/IDMArticleEngine.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/DivaApiHandler.d.ts +32 -0
- package/build/types/web-planner-logic/src/logic/DivaApiHandler.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts +48 -5
- 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 +30 -6
- 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 +3 -0
- 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 +4 -0
- 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 +12 -1
- package/build/types/web-planner-logic/src/logic/Planner/DivaPlannerHandler.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Planner/DivaStandardPlanner.d.ts +1 -0
- package/build/types/web-planner-logic/src/logic/Planner/DivaStandardPlanner.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Planner/Rendering/DivaMediaServiceHandler.d.ts +10 -0
- package/build/types/web-planner-logic/src/logic/Planner/Rendering/DivaMediaServiceHandler.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Planner/Rendering/Host3DSignalR.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Planner/Rendering/PlannerHandler3D.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Planner/Rendering/Rendering.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Set/DivaSet.d.ts +8 -0
- package/build/types/web-planner-logic/src/logic/Set/DivaSet.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Set/DivaSetHandler.d.ts +17 -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/Article/CatalogArticleData.d.ts +3 -13
- package/build/types/web-planner-logic/src/model/Articles/Article/CatalogArticleData.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/Articles/Article/DivaCatalogArticle.d.ts +3 -3
- package/build/types/web-planner-logic/src/model/Articles/Article/DivaCatalogArticle.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/Articles/Article/IDMCatalogArticle.d.ts +3 -3
- package/build/types/web-planner-logic/src/model/Articles/Article/IDMCatalogArticle.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/Catalog/CatalogData.d.ts +3 -1
- package/build/types/web-planner-logic/src/model/Catalog/CatalogData.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/Catalog/DivaCatalogData.d.ts +6 -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 +2 -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/ArticleOptionValueData.d.ts +3 -9
- package/build/types/web-planner-logic/src/model/Options/ArticleOptionValueData.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/Options/CatalogOptionData.d.ts +5 -3
- package/build/types/web-planner-logic/src/model/Options/CatalogOptionData.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/Options/CatalogOptionValueData.d.ts +6 -4
- package/build/types/web-planner-logic/src/model/Options/CatalogOptionValueData.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/Planner/BoxPlannerData.d.ts +2 -1
- package/build/types/web-planner-logic/src/model/Planner/BoxPlannerData.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/Planner/PlannerInteractionData.d.ts +7 -2
- package/build/types/web-planner-logic/src/model/Planner/PlannerInteractionData.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/test/datas/environments/scripts/pfister-prod.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/test/datas/environments/scripts/pfister-quality.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/test/datas/environments/testing/pfister-dev.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/test/datas/environments/testing/retail-dev.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/test/datas/environments/testing/retail-test.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -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-f5485f21.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-af50a706.js';
|
|
9
9
|
import '@babel/runtime/helpers/slicedToArray';
|
|
10
10
|
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
11
11
|
import '@babel/runtime/helpers/toConsumableArray';
|
|
@@ -792,14 +792,14 @@ var DivaStandardPlanner = /*#__PURE__*/function () {
|
|
|
792
792
|
key: "extendPlanner",
|
|
793
793
|
value: (function () {
|
|
794
794
|
var _extendPlanner = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4(setPlanData, globalBoundingBox) {
|
|
795
|
-
var planDataString, planData, jsonElements, elementsSortedbyPosNr, accElements, oldElementidMapping, i, jsonElement, plannerElement, data, curElement, DPsInfo, j, dpInfo, sourceDP, targetElement, targetDP;
|
|
795
|
+
var planDataString, planData, jsonElements, elementsSortedbyPosNr, accElements, oldElementidMapping, i, _jsonElement$Accessoi, jsonElement, catalogArticle, plannerElement, data, curElement, DPsInfo, j, dpInfo, sourceDP, targetElement, targetDP;
|
|
796
796
|
return _regeneratorRuntime.wrap(function _callee4$(_context4) {
|
|
797
797
|
while (1) switch (_context4.prev = _context4.next) {
|
|
798
798
|
case 0:
|
|
799
799
|
planDataString = DivaUtils.decodeBase64(setPlanData);
|
|
800
800
|
planData = JSON.parse(planDataString);
|
|
801
801
|
if (!(planData.v != null && planData.v == 2)) {
|
|
802
|
-
_context4.next =
|
|
802
|
+
_context4.next = 39;
|
|
803
803
|
break;
|
|
804
804
|
}
|
|
805
805
|
jsonElements = planData.set.elements;
|
|
@@ -809,11 +809,18 @@ var DivaStandardPlanner = /*#__PURE__*/function () {
|
|
|
809
809
|
i = 0;
|
|
810
810
|
case 8:
|
|
811
811
|
if (!(i < jsonElements.length)) {
|
|
812
|
-
_context4.next =
|
|
812
|
+
_context4.next = 35;
|
|
813
813
|
break;
|
|
814
814
|
}
|
|
815
815
|
_context4.prev = 9;
|
|
816
816
|
jsonElement = jsonElements[i];
|
|
817
|
+
catalogArticle = this.set.CatalogData.getCatalogArticleByArticleCodex(jsonElement.articleCodex);
|
|
818
|
+
if (!(!catalogArticle && (_jsonElement$Accessoi = jsonElement.AccessoireInitParams) !== null && _jsonElement$Accessoi !== void 0 && _jsonElement$Accessoi.RelatedToBasketID && !this.set.getSetState.onlyRunLogic)) {
|
|
819
|
+
_context4.next = 14;
|
|
820
|
+
break;
|
|
821
|
+
}
|
|
822
|
+
return _context4.abrupt("continue", 32);
|
|
823
|
+
case 14:
|
|
817
824
|
plannerElement = new PlannerElementData(this.set.getSetId(), jsonElement.basketID, this.nextElementId, DivaStandardPlanner.plannerType);
|
|
818
825
|
oldElementidMapping.set(parseInt(jsonElement.elementID), plannerElement);
|
|
819
826
|
this.nextElementId = plannerElement.getElementId() + 1;
|
|
@@ -822,12 +829,12 @@ var DivaStandardPlanner = /*#__PURE__*/function () {
|
|
|
822
829
|
data = this.set.getPlannerData(plannerElement.ElementId);
|
|
823
830
|
plannerElement.updatePlannerData(data);
|
|
824
831
|
if (this.doDisablePlanner2D) {
|
|
825
|
-
_context4.next =
|
|
832
|
+
_context4.next = 24;
|
|
826
833
|
break;
|
|
827
834
|
}
|
|
828
|
-
_context4.next =
|
|
835
|
+
_context4.next = 24;
|
|
829
836
|
return handler2D.loadSVG(plannerElement, this.set);
|
|
830
|
-
case
|
|
837
|
+
case 24:
|
|
831
838
|
plannerElement.WorldPosCenter = new Vector3(globalBoundingBox.WorldPos.x + globalBoundingBox.Size.x + jsonElement.x + 100, globalBoundingBox.WorldPos.y + jsonElement.y, globalBoundingBox.WorldPos.z + jsonElement.z);
|
|
832
839
|
plannerElement.RotDeg = jsonElement.rot;
|
|
833
840
|
if (plannerElement.IsDockedAccessoire) {
|
|
@@ -838,20 +845,20 @@ var DivaStandardPlanner = /*#__PURE__*/function () {
|
|
|
838
845
|
elementsSortedbyPosNr[jsonElement.posNr - 1] = jsonElement;
|
|
839
846
|
plannerElement.PosNr = jsonElement.posNr;
|
|
840
847
|
}
|
|
841
|
-
_context4.next =
|
|
848
|
+
_context4.next = 32;
|
|
842
849
|
break;
|
|
843
|
-
case
|
|
844
|
-
_context4.prev =
|
|
850
|
+
case 29:
|
|
851
|
+
_context4.prev = 29;
|
|
845
852
|
_context4.t0 = _context4["catch"](9);
|
|
846
853
|
LOG.error(new DivaError('Error initializing element nr ' + i + ' in the Standard Web Planner. PlanData V2', {
|
|
847
854
|
cause: _context4.t0,
|
|
848
855
|
code: 'WC_0012'
|
|
849
856
|
}));
|
|
850
|
-
case
|
|
857
|
+
case 32:
|
|
851
858
|
i++;
|
|
852
859
|
_context4.next = 8;
|
|
853
860
|
break;
|
|
854
|
-
case
|
|
861
|
+
case 35:
|
|
855
862
|
elementsSortedbyPosNr = elementsSortedbyPosNr.concat(accElements);
|
|
856
863
|
for (i = 0; i < elementsSortedbyPosNr.length; i++) {
|
|
857
864
|
curElement = oldElementidMapping.get(elementsSortedbyPosNr[i].elementID);
|
|
@@ -873,17 +880,17 @@ var DivaStandardPlanner = /*#__PURE__*/function () {
|
|
|
873
880
|
}
|
|
874
881
|
}
|
|
875
882
|
}
|
|
876
|
-
_context4.next =
|
|
883
|
+
_context4.next = 40;
|
|
877
884
|
break;
|
|
878
|
-
case
|
|
885
|
+
case 39:
|
|
879
886
|
LOG.error(new DivaError('The function extend Planner works only with products that are saved in the configurator 2.0', {
|
|
880
887
|
code: 'WC_0012'
|
|
881
888
|
}));
|
|
882
|
-
case
|
|
889
|
+
case 40:
|
|
883
890
|
case "end":
|
|
884
891
|
return _context4.stop();
|
|
885
892
|
}
|
|
886
|
-
}, _callee4, this, [[9,
|
|
893
|
+
}, _callee4, this, [[9, 29]]);
|
|
887
894
|
}));
|
|
888
895
|
function extendPlanner(_x7, _x8) {
|
|
889
896
|
return _extendPlanner.apply(this, arguments);
|
|
@@ -894,14 +901,14 @@ var DivaStandardPlanner = /*#__PURE__*/function () {
|
|
|
894
901
|
key: "initPlanner",
|
|
895
902
|
value: function () {
|
|
896
903
|
var _initPlanner = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee5(setPlanData) {
|
|
897
|
-
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;
|
|
904
|
+
var planDataString, planData, jsonElements, elementsSortedbyPosNr, accElements, i, _jsonElement$Accessoi2, jsonElement, catalogArticle, elementID, plannerElement, data, onlyOneBaseElement, element, DPsInfo, j, dpInfo, sourceElement, sourceDP, targetElement, targetDP, _jsonElements, _elementsSortedbyPosNr, _accElements, _jsonElement$Accessoi3, _jsonElement, _catalogArticle, basketID, elementId, _plannerElement, _data, centerWorldPos, parentPosNr, accPosNr, _DPsInfo, _dpInfo, _this$plannerElements, targetElementId, dpType, curElement, _targetElement;
|
|
898
905
|
return _regeneratorRuntime.wrap(function _callee5$(_context5) {
|
|
899
906
|
while (1) switch (_context5.prev = _context5.next) {
|
|
900
907
|
case 0:
|
|
901
908
|
planDataString = DivaUtils.decodeBase64(setPlanData);
|
|
902
909
|
planData = JSON.parse(planDataString);
|
|
903
910
|
if (!(planData.v != null && planData.v == 2)) {
|
|
904
|
-
_context5.next =
|
|
911
|
+
_context5.next = 60;
|
|
905
912
|
break;
|
|
906
913
|
}
|
|
907
914
|
LOG.debug('Initialize set Plan Data - V2\n' + planData, 'DivaStandardPlanner initPlanner');
|
|
@@ -918,11 +925,18 @@ var DivaStandardPlanner = /*#__PURE__*/function () {
|
|
|
918
925
|
i = 0;
|
|
919
926
|
case 10:
|
|
920
927
|
if (!(i < jsonElements.length)) {
|
|
921
|
-
_context5.next =
|
|
928
|
+
_context5.next = 37;
|
|
922
929
|
break;
|
|
923
930
|
}
|
|
924
931
|
_context5.prev = 11;
|
|
925
932
|
jsonElement = jsonElements[i];
|
|
933
|
+
catalogArticle = this.set.CatalogData.getCatalogArticleByArticleCodex(jsonElement.articleCodex);
|
|
934
|
+
if (!(!catalogArticle && (_jsonElement$Accessoi2 = jsonElement.AccessoireInitParams) !== null && _jsonElement$Accessoi2 !== void 0 && _jsonElement$Accessoi2.RelatedToBasketID && !this.set.getSetState.onlyRunLogic)) {
|
|
935
|
+
_context5.next = 16;
|
|
936
|
+
break;
|
|
937
|
+
}
|
|
938
|
+
return _context5.abrupt("continue", 34);
|
|
939
|
+
case 16:
|
|
926
940
|
elementID = parseInt(jsonElement.elementID);
|
|
927
941
|
plannerElement = new PlannerElementData(this.set.getSetId(), jsonElement.basketID, elementID, DivaStandardPlanner.plannerType);
|
|
928
942
|
this.nextElementId = elementID + 1;
|
|
@@ -931,12 +945,12 @@ var DivaStandardPlanner = /*#__PURE__*/function () {
|
|
|
931
945
|
data = this.set.getPlannerData(plannerElement.ElementId);
|
|
932
946
|
plannerElement.updatePlannerData(data);
|
|
933
947
|
if (this.doDisablePlanner2D) {
|
|
934
|
-
_context5.next =
|
|
948
|
+
_context5.next = 26;
|
|
935
949
|
break;
|
|
936
950
|
}
|
|
937
|
-
_context5.next =
|
|
951
|
+
_context5.next = 26;
|
|
938
952
|
return handler2D.loadSVG(plannerElement, this.set);
|
|
939
|
-
case
|
|
953
|
+
case 26:
|
|
940
954
|
//Im neuen speichern ist die Position hinten link - nicht mehr im Centrum wie im alten Planer
|
|
941
955
|
//plannerElement.WorldPosCenter = new Vector3(jsonElement.x, jsonElement.y, jsonElement.z);
|
|
942
956
|
plannerElement.WorldPosCenter = new Vector3(this.plannerBoundingBox.WorldPos.x + jsonElement.x, this.plannerBoundingBox.WorldPos.y + jsonElement.y, this.plannerBoundingBox.WorldPos.z + jsonElement.z);
|
|
@@ -949,44 +963,44 @@ var DivaStandardPlanner = /*#__PURE__*/function () {
|
|
|
949
963
|
elementsSortedbyPosNr[jsonElement.posNr - 1] = jsonElement;
|
|
950
964
|
plannerElement.PosNr = jsonElement.posNr;
|
|
951
965
|
}
|
|
952
|
-
_context5.next =
|
|
966
|
+
_context5.next = 34;
|
|
953
967
|
break;
|
|
954
|
-
case
|
|
955
|
-
_context5.prev =
|
|
968
|
+
case 31:
|
|
969
|
+
_context5.prev = 31;
|
|
956
970
|
_context5.t0 = _context5["catch"](11);
|
|
957
971
|
LOG.error(new DivaError('Error initializing element nr ' + i + ' in the Standard Web Planner. PlanData V2', {
|
|
958
972
|
cause: _context5.t0,
|
|
959
973
|
code: 'WC_0012'
|
|
960
974
|
}));
|
|
961
|
-
case
|
|
975
|
+
case 34:
|
|
962
976
|
i++;
|
|
963
977
|
_context5.next = 10;
|
|
964
978
|
break;
|
|
965
|
-
case
|
|
979
|
+
case 37:
|
|
966
980
|
onlyOneBaseElement = elementsSortedbyPosNr.length == 1; //Saves if only one base element is in the planning. All the others are only accessoires
|
|
967
981
|
elementsSortedbyPosNr = elementsSortedbyPosNr.concat(accElements);
|
|
968
982
|
i = 0;
|
|
969
|
-
case
|
|
983
|
+
case 40:
|
|
970
984
|
if (!(i < elementsSortedbyPosNr.length)) {
|
|
971
|
-
_context5.next =
|
|
985
|
+
_context5.next = 58;
|
|
972
986
|
break;
|
|
973
987
|
}
|
|
974
|
-
_context5.prev =
|
|
988
|
+
_context5.prev = 41;
|
|
975
989
|
if (!(i == 0 && onlyOneBaseElement && this.plannerHasStaticBackground)) {
|
|
976
|
-
_context5.next =
|
|
990
|
+
_context5.next = 46;
|
|
977
991
|
break;
|
|
978
992
|
}
|
|
979
993
|
//if the planner has a static background room and there is only one base element (ignore docked ACCs) then it should be forced positioned in the center of the room
|
|
980
994
|
element = this.plannerElements.get(elementsSortedbyPosNr[i].elementID);
|
|
981
995
|
if (element) element.WorldPosCenter = new Vector3(0, element.Height / 2, element.Depth / 2);
|
|
982
|
-
return _context5.abrupt("continue",
|
|
983
|
-
case
|
|
996
|
+
return _context5.abrupt("continue", 55);
|
|
997
|
+
case 46:
|
|
984
998
|
if (!(elementsSortedbyPosNr[i].DP == null || elementsSortedbyPosNr[i].DP.length == 0)) {
|
|
985
|
-
_context5.next =
|
|
999
|
+
_context5.next = 48;
|
|
986
1000
|
break;
|
|
987
1001
|
}
|
|
988
|
-
return _context5.abrupt("continue",
|
|
989
|
-
case
|
|
1002
|
+
return _context5.abrupt("continue", 55);
|
|
1003
|
+
case 48:
|
|
990
1004
|
DPsInfo = elementsSortedbyPosNr[i].DP;
|
|
991
1005
|
for (j = 0; j < DPsInfo.length; j++) {
|
|
992
1006
|
dpInfo = DPsInfo[j];
|
|
@@ -1002,68 +1016,75 @@ var DivaStandardPlanner = /*#__PURE__*/function () {
|
|
|
1002
1016
|
}
|
|
1003
1017
|
}
|
|
1004
1018
|
}
|
|
1005
|
-
_context5.next =
|
|
1019
|
+
_context5.next = 55;
|
|
1006
1020
|
break;
|
|
1007
|
-
case
|
|
1008
|
-
_context5.prev =
|
|
1009
|
-
_context5.t1 = _context5["catch"](
|
|
1021
|
+
case 52:
|
|
1022
|
+
_context5.prev = 52;
|
|
1023
|
+
_context5.t1 = _context5["catch"](41);
|
|
1010
1024
|
LOG.error(new DivaError('Error initializing dockingPoints of element with elementID ' + elementsSortedbyPosNr[i].elementID, {
|
|
1011
1025
|
cause: _context5.t1,
|
|
1012
1026
|
code: 'WC_0012'
|
|
1013
1027
|
}));
|
|
1014
|
-
case
|
|
1028
|
+
case 55:
|
|
1015
1029
|
i++;
|
|
1016
|
-
_context5.next =
|
|
1030
|
+
_context5.next = 40;
|
|
1017
1031
|
break;
|
|
1018
|
-
case
|
|
1019
|
-
_context5.next =
|
|
1032
|
+
case 58:
|
|
1033
|
+
_context5.next = 110;
|
|
1020
1034
|
break;
|
|
1021
|
-
case
|
|
1035
|
+
case 60:
|
|
1022
1036
|
LOG.debug('Initialize set Plan Data - old V1\n' + planData, 'DivaStandardPlanner initPlanner');
|
|
1023
1037
|
if (!(!planData.Sets || planData.Sets.length == 0 || !planData.Sets[0].Elements || planData.Sets[0].Elements.length == 0)) {
|
|
1024
|
-
_context5.next =
|
|
1038
|
+
_context5.next = 63;
|
|
1025
1039
|
break;
|
|
1026
1040
|
}
|
|
1027
1041
|
return _context5.abrupt("return");
|
|
1028
|
-
case
|
|
1042
|
+
case 63:
|
|
1029
1043
|
//Init old Plannings - saved with the old planner
|
|
1030
1044
|
_jsonElements = planData.Sets[0].Elements;
|
|
1031
1045
|
_elementsSortedbyPosNr = [];
|
|
1032
1046
|
_accElements = []; //Zuerst initialisiere alle Elemente
|
|
1033
1047
|
//Dann positioniere sie richtig
|
|
1034
1048
|
i = 0;
|
|
1035
|
-
case
|
|
1049
|
+
case 67:
|
|
1036
1050
|
if (!(i < _jsonElements.length)) {
|
|
1037
|
-
_context5.next =
|
|
1051
|
+
_context5.next = 100;
|
|
1038
1052
|
break;
|
|
1039
1053
|
}
|
|
1040
|
-
_context5.prev =
|
|
1054
|
+
_context5.prev = 68;
|
|
1041
1055
|
_jsonElement = _jsonElements[i];
|
|
1056
|
+
_catalogArticle = this.set.CatalogData.getCatalogArticleByArticleCodex(_jsonElement.articleCodex);
|
|
1057
|
+
if (!(!_catalogArticle && (_jsonElement$Accessoi3 = _jsonElement.AccessoireInitParams) !== null && _jsonElement$Accessoi3 !== void 0 && _jsonElement$Accessoi3.RelatedToBasketID && !this.set.getSetState.onlyRunLogic)) {
|
|
1058
|
+
_context5.next = 73;
|
|
1059
|
+
break;
|
|
1060
|
+
}
|
|
1061
|
+
return _context5.abrupt("continue", 97);
|
|
1062
|
+
case 73:
|
|
1042
1063
|
basketID = _jsonElement.BasketID;
|
|
1043
1064
|
if (this.set.getElementId(basketID) == -1) this.set.setElementId(basketID, Number(_jsonElement.ID));
|
|
1044
1065
|
elementId = this.set.getElementId(basketID);
|
|
1045
1066
|
_jsonElement.elementId = elementId;
|
|
1046
1067
|
if (!(elementId == -1)) {
|
|
1047
|
-
_context5.next =
|
|
1068
|
+
_context5.next = 80;
|
|
1048
1069
|
break;
|
|
1049
1070
|
}
|
|
1050
1071
|
LOG.error(new DivaError('Error when initializing planner. The elementID Was not saved in the article. ', {
|
|
1051
1072
|
code: 'WC_0012'
|
|
1052
1073
|
}));
|
|
1053
|
-
return _context5.abrupt("continue",
|
|
1054
|
-
case
|
|
1074
|
+
return _context5.abrupt("continue", 97);
|
|
1075
|
+
case 80:
|
|
1055
1076
|
_plannerElement = new PlannerElementData(this.set.getSetId(), basketID, elementId, DivaStandardPlanner.plannerType);
|
|
1056
1077
|
this.nextElementId = elementId + 1;
|
|
1057
1078
|
this.plannerElements.set(_plannerElement.ElementId, _plannerElement);
|
|
1058
1079
|
_data = this.set.getPlannerData(_plannerElement.ElementId);
|
|
1059
1080
|
_plannerElement.updatePlannerData(_data);
|
|
1060
1081
|
if (this.doDisablePlanner2D) {
|
|
1061
|
-
_context5.next =
|
|
1082
|
+
_context5.next = 88;
|
|
1062
1083
|
break;
|
|
1063
1084
|
}
|
|
1064
|
-
_context5.next =
|
|
1085
|
+
_context5.next = 88;
|
|
1065
1086
|
return handler2D.loadSVG(_plannerElement, this.set);
|
|
1066
|
-
case
|
|
1087
|
+
case 88:
|
|
1067
1088
|
//Achtung die Pos Infos im alten Planer waren Zentrumskoordinaten!!! Nicht hinten oben.
|
|
1068
1089
|
centerWorldPos = new Vector3(_jsonElement.PosX, _jsonElement.PosZ, _jsonElement.PosY);
|
|
1069
1090
|
_plannerElement.WorldPosCenter = new Vector3(this.plannerBoundingBox.WorldPos.x + centerWorldPos.x, this.plannerBoundingBox.WorldPos.y + centerWorldPos.y, this.plannerBoundingBox.WorldPos.z + centerWorldPos.z);
|
|
@@ -1080,34 +1101,34 @@ var DivaStandardPlanner = /*#__PURE__*/function () {
|
|
|
1080
1101
|
_elementsSortedbyPosNr[_jsonElement.PosNum - 1] = _jsonElement;
|
|
1081
1102
|
_plannerElement.PosNr = _jsonElement.PosNum;
|
|
1082
1103
|
}
|
|
1083
|
-
_context5.next =
|
|
1104
|
+
_context5.next = 97;
|
|
1084
1105
|
break;
|
|
1085
|
-
case
|
|
1086
|
-
_context5.prev =
|
|
1087
|
-
_context5.t2 = _context5["catch"](
|
|
1106
|
+
case 94:
|
|
1107
|
+
_context5.prev = 94;
|
|
1108
|
+
_context5.t2 = _context5["catch"](68);
|
|
1088
1109
|
LOG.error(new DivaError('Error initializing element nr ' + i + ' in the Standard Web Planner - Plan Data old Planner', {
|
|
1089
1110
|
cause: _context5.t2,
|
|
1090
1111
|
code: 'WC_0012'
|
|
1091
1112
|
}));
|
|
1092
|
-
case
|
|
1113
|
+
case 97:
|
|
1093
1114
|
i++;
|
|
1094
|
-
_context5.next =
|
|
1115
|
+
_context5.next = 67;
|
|
1095
1116
|
break;
|
|
1096
|
-
case
|
|
1117
|
+
case 100:
|
|
1097
1118
|
_elementsSortedbyPosNr = _elementsSortedbyPosNr.concat(_accElements);
|
|
1098
1119
|
//Dann werden die DockingPoints durchgegangen und die jeweils richtigen müssen gesucht werden.
|
|
1099
1120
|
i = 0;
|
|
1100
|
-
case
|
|
1121
|
+
case 102:
|
|
1101
1122
|
if (!(i < _elementsSortedbyPosNr.length)) {
|
|
1102
|
-
_context5.next =
|
|
1123
|
+
_context5.next = 110;
|
|
1103
1124
|
break;
|
|
1104
1125
|
}
|
|
1105
1126
|
if (!(_elementsSortedbyPosNr[i].DP == null || _elementsSortedbyPosNr[i].DP.length == 0)) {
|
|
1106
|
-
_context5.next =
|
|
1127
|
+
_context5.next = 105;
|
|
1107
1128
|
break;
|
|
1108
1129
|
}
|
|
1109
|
-
return _context5.abrupt("continue",
|
|
1110
|
-
case
|
|
1130
|
+
return _context5.abrupt("continue", 107);
|
|
1131
|
+
case 105:
|
|
1111
1132
|
_DPsInfo = _elementsSortedbyPosNr[i].DP;
|
|
1112
1133
|
for (j = 0; j < _DPsInfo.length; j++) {
|
|
1113
1134
|
_dpInfo = _DPsInfo[j];
|
|
@@ -1125,18 +1146,18 @@ var DivaStandardPlanner = /*#__PURE__*/function () {
|
|
|
1125
1146
|
}
|
|
1126
1147
|
}
|
|
1127
1148
|
}
|
|
1128
|
-
case
|
|
1149
|
+
case 107:
|
|
1129
1150
|
i++;
|
|
1130
|
-
_context5.next =
|
|
1151
|
+
_context5.next = 102;
|
|
1131
1152
|
break;
|
|
1132
|
-
case
|
|
1153
|
+
case 110:
|
|
1133
1154
|
this.updateAllElementsWorldPos();
|
|
1134
1155
|
this.updatePlannerPosNr();
|
|
1135
|
-
case
|
|
1156
|
+
case 112:
|
|
1136
1157
|
case "end":
|
|
1137
1158
|
return _context5.stop();
|
|
1138
1159
|
}
|
|
1139
|
-
}, _callee5, this, [[11,
|
|
1160
|
+
}, _callee5, this, [[11, 31], [41, 52], [68, 94]]);
|
|
1140
1161
|
}));
|
|
1141
1162
|
function initPlanner(_x9) {
|
|
1142
1163
|
return _initPlanner.apply(this, arguments);
|
|
@@ -1230,6 +1251,12 @@ var DivaStandardPlanner = /*#__PURE__*/function () {
|
|
|
1230
1251
|
}
|
|
1231
1252
|
return addPlannerElement;
|
|
1232
1253
|
}()
|
|
1254
|
+
}, {
|
|
1255
|
+
key: "movePlannerElement",
|
|
1256
|
+
value: function movePlannerElement() {
|
|
1257
|
+
throw Error("move planner not implemented in standard");
|
|
1258
|
+
}
|
|
1259
|
+
|
|
1233
1260
|
/**
|
|
1234
1261
|
* Handles copyying the planner Element. it can happen that also other planner elements are influenced
|
|
1235
1262
|
* @param articleCopyRelation Holds the relation - which element with elementID is copyed and has a new Article. ElementToCopyID -> BasketID of new Article
|
|
@@ -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-f5485f21.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-f5485f21.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';
|
|
@@ -43,6 +43,11 @@ var Host3DSignalR = /*#__PURE__*/function () {
|
|
|
43
43
|
* It is called when The webClient joints to a new DivaNr
|
|
44
44
|
*/
|
|
45
45
|
_defineProperty(this, "openSocketToMediaService", function (divaNr) {
|
|
46
|
+
// Close existing socket connection if it exists
|
|
47
|
+
if (_this.divaMediaServiceSocketIO) {
|
|
48
|
+
_this.divaMediaServiceSocketIO.disconnect();
|
|
49
|
+
_this.divaMediaServiceSocketIO = undefined;
|
|
50
|
+
}
|
|
46
51
|
var socket = new URL(_this.renderSettings.DivaMediaServiceUrl + '/');
|
|
47
52
|
var socketUrl = socket.origin + '?divaNrs=' + divaNr;
|
|
48
53
|
_this.divaMediaServiceSocketIO = io(socketUrl, {
|
|
@@ -57,6 +62,12 @@ var Host3DSignalR = /*#__PURE__*/function () {
|
|
|
57
62
|
_this.divaMediaServiceSocketIO.on('disconnect', function () {
|
|
58
63
|
LOG.debug('Disconnect from DivaMediaService with divaNr: ' + divaNr + ' and mediaServiceUrl: ' + _this.renderSettings.DivaMediaServiceUrl);
|
|
59
64
|
});
|
|
65
|
+
_this.divaMediaServiceSocketIO.on('connect_error', function (error) {
|
|
66
|
+
LOG.debug('Socket CONNECT_ERROR:', error);
|
|
67
|
+
});
|
|
68
|
+
_this.divaMediaServiceSocketIO.on('reconnect', function (attemptNumber) {
|
|
69
|
+
LOG.debug('Socket RECONNECTED, attempt:', attemptNumber);
|
|
70
|
+
});
|
|
60
71
|
|
|
61
72
|
// this.divaMediaServiceSocketIO = require('socket.io')(server);
|
|
62
73
|
_this.divaMediaServiceSocketIO.on('DIVA3D', function (msg) {
|
|
@@ -423,6 +434,13 @@ var Host3DSignalR = /*#__PURE__*/function () {
|
|
|
423
434
|
LOG.debug('SignalRConnection: Close Connection and say byby to Diva3DHost.');
|
|
424
435
|
this.signalRConnection.completeClose();
|
|
425
436
|
}
|
|
437
|
+
|
|
438
|
+
// Also close the socket connection to DivaMediaService
|
|
439
|
+
if (this.divaMediaServiceSocketIO) {
|
|
440
|
+
LOG.debug('Closing DivaMediaService socket connection');
|
|
441
|
+
this.divaMediaServiceSocketIO.disconnect();
|
|
442
|
+
this.divaMediaServiceSocketIO = undefined;
|
|
443
|
+
}
|
|
426
444
|
}
|
|
427
445
|
|
|
428
446
|
/**
|
|
@@ -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-f5485f21.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-f5485f21.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-f5485f21.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-f5485f21.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-f5485f21.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-f5485f21.js';
|
|
4
4
|
import '@babel/runtime/helpers/slicedToArray';
|
|
5
5
|
import '@babel/runtime/helpers/asyncToGenerator';
|
|
6
6
|
import '@babel/runtime/helpers/defineProperty';
|