@crystaldesign/web-planner-logic 25.14.0-beta.4 → 25.14.0-beta.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/{DivaBoxPlanner-d49621ee.js → DivaBoxPlanner-590fa04b.js} +619 -315
- package/build/cjs/{DivaStandardPlanner-0b694655.js → DivaStandardPlanner-14f641eb.js} +98 -88
- package/build/cjs/{DoorPlanner-772341ef.js → DoorPlanner-2fd36cbe.js} +1 -1
- package/build/cjs/{Host3DSignalR-b13956a3.js → Host3DSignalR-01d03fbe.js} +1 -1
- package/build/cjs/{LiviqueWWSHandler-1a5e2abb.js → LiviqueWWSHandler-ce234c4d.js} +1 -1
- package/build/cjs/{PfisterWWSHandler-89a523b6.js → PfisterWWSHandler-14763bec.js} +1 -1
- package/build/cjs/{PlannerHandler2D-1da507c8.js → PlannerHandler2D-69bf367e.js} +2 -2
- package/build/cjs/{SeriousBasketHandler-1bd2230c.js → SeriousBasketHandler-3284d8e6.js} +1 -1
- package/build/cjs/{ShelfPlanner-db3521f9.js → ShelfPlanner-fdf5c5ea.js} +1 -1
- package/build/cjs/{StandardWWSHandler-5e6076d4.js → StandardWWSHandler-75b86bd6.js} +1 -1
- package/build/cjs/{index-ea4df511.js → index-d851c847.js} +257 -178
- package/build/cjs/index.js +1 -3
- package/build/esm/{DivaBoxPlanner-556bd49b.js → DivaBoxPlanner-90c95fe0.js} +618 -315
- package/build/esm/{DivaStandardPlanner-39fa4919.js → DivaStandardPlanner-15cc1700.js} +98 -88
- package/build/esm/{DoorPlanner-4feb77a1.js → DoorPlanner-6e3a0841.js} +1 -1
- package/build/esm/{Host3DSignalR-fd7a22e0.js → Host3DSignalR-e8cf0b3e.js} +1 -1
- package/build/esm/{LiviqueWWSHandler-799592fc.js → LiviqueWWSHandler-108cb348.js} +1 -1
- package/build/esm/{PfisterWWSHandler-3c27e9a1.js → PfisterWWSHandler-41c995d8.js} +1 -1
- package/build/esm/{PlannerHandler2D-bfed02e3.js → PlannerHandler2D-67320283.js} +2 -2
- package/build/esm/{SeriousBasketHandler-390bf174.js → SeriousBasketHandler-23209e7b.js} +1 -1
- package/build/esm/{ShelfPlanner-778dd54c.js → ShelfPlanner-ac57278a.js} +1 -1
- package/build/esm/{StandardWWSHandler-eff7c728.js → StandardWWSHandler-6959f79c.js} +1 -1
- package/build/esm/{index-13aa8d15.js → index-8f6efc60.js} +258 -177
- package/build/esm/index.js +1 -1
- package/build/types/web-planner-logic/src/index.d.ts +0 -1
- 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 +0 -2
- package/build/types/web-planner-logic/src/interface/API/AiImageResult.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/API/Checkout.d.ts +1 -0
- 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 +1 -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 +1 -0
- package/build/types/web-planner-logic/src/interface/AdditionalModelInfos.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/Articles/CatalogArticleDataType.d.ts +5 -0
- package/build/types/web-planner-logic/src/interface/Articles/CatalogArticleDataType.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/CoreTypes/index.d.ts +1 -1
- 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 -0
- package/build/types/web-planner-logic/src/interface/DivaCatalogDataType.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/IDM/ArticleApi.d.ts +2 -0
- package/build/types/web-planner-logic/src/interface/IDM/ArticleApi.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/ReturnTypes/index.d.ts +1 -0
- package/build/types/web-planner-logic/src/interface/ReturnTypes/index.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/ViewTypes/index.d.ts +0 -1
- 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 +1 -0
- package/build/types/web-planner-logic/src/interface/webPlannerParams/WebPlannerParamsType.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Basket/DivaBasketHandler.d.ts +2 -1
- package/build/types/web-planner-logic/src/logic/Basket/DivaBasketHandler.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts +4 -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 +4 -4
- 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 +1 -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 -1
- 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 +4 -1
- package/build/types/web-planner-logic/src/logic/Planner/DivaPlannerHandler.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Planner/DivaStandardPlanner.d.ts +4 -1
- package/build/types/web-planner-logic/src/logic/Planner/DivaStandardPlanner.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Planner/Rendering/types.d.ts +1 -1
- 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.map +1 -1
- package/build/types/web-planner-logic/src/model/Articles/Article/CatalogArticleData.d.ts +7 -1
- 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.map +1 -1
- package/build/types/web-planner-logic/src/model/Catalog/CatalogData.d.ts +1 -0
- 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.map +1 -1
- package/build/types/web-planner-logic/src/model/Catalog/IDMCatalogData.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/Options/ArticleOptionData.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/test/scripts/create_renderorder.d.ts +1 -1
- package/build/types/web-planner-logic/src/test/scripts/create_renderorder.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/test/scripts/getOrigProductId.d.ts +1 -1
- package/build/types/web-planner-logic/src/test/scripts/getOrigProductId.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-8f6efc60.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-67320283.js';
|
|
9
9
|
import '@babel/runtime/helpers/slicedToArray';
|
|
10
10
|
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
11
11
|
import '@babel/runtime/helpers/toConsumableArray';
|
|
@@ -770,7 +770,8 @@ var DivaStandardPlanner = /*#__PURE__*/function () {
|
|
|
770
770
|
return _context3.abrupt("return", {
|
|
771
771
|
doDeleteBackGrid: false,
|
|
772
772
|
elemIdsToDelete: elementsToDelete,
|
|
773
|
-
elementIdsToUpdateSelection: elemtsWhereSomethingChanged
|
|
773
|
+
elementIdsToUpdateSelection: elemtsWhereSomethingChanged,
|
|
774
|
+
failed: false
|
|
774
775
|
});
|
|
775
776
|
case 16:
|
|
776
777
|
case "end":
|
|
@@ -799,7 +800,7 @@ var DivaStandardPlanner = /*#__PURE__*/function () {
|
|
|
799
800
|
planDataString = DivaUtils.decodeBase64(setPlanData);
|
|
800
801
|
planData = JSON.parse(planDataString);
|
|
801
802
|
if (!(planData.v != null && planData.v == 2)) {
|
|
802
|
-
_context4.next =
|
|
803
|
+
_context4.next = 40;
|
|
803
804
|
break;
|
|
804
805
|
}
|
|
805
806
|
jsonElements = planData.set.elements;
|
|
@@ -809,18 +810,21 @@ var DivaStandardPlanner = /*#__PURE__*/function () {
|
|
|
809
810
|
i = 0;
|
|
810
811
|
case 8:
|
|
811
812
|
if (!(i < jsonElements.length)) {
|
|
812
|
-
_context4.next =
|
|
813
|
+
_context4.next = 36;
|
|
813
814
|
break;
|
|
814
815
|
}
|
|
815
816
|
_context4.prev = 9;
|
|
816
817
|
jsonElement = jsonElements[i];
|
|
817
|
-
catalogArticle = this.set.CatalogData.getCatalogArticleByArticleCodex(jsonElement.articleCodex);
|
|
818
|
+
catalogArticle = this.set.CatalogData.getCatalogArticleByArticleCodex(jsonElement.articleCodex || jsonElement.Codex);
|
|
818
819
|
if (!(!catalogArticle && (_jsonElement$Accessoi = jsonElement.AccessoireInitParams) !== null && _jsonElement$Accessoi !== void 0 && _jsonElement$Accessoi.RelatedToBasketID && !this.set.getSetState.onlyRunLogic)) {
|
|
819
|
-
_context4.next =
|
|
820
|
+
_context4.next = 15;
|
|
820
821
|
break;
|
|
821
822
|
}
|
|
822
|
-
|
|
823
|
-
|
|
823
|
+
LOG.error(new DivaError('Error initializing element nr ' + i + ' in the Standard Web Planner. PlanData V2', {
|
|
824
|
+
code: 'WC_0012'
|
|
825
|
+
}));
|
|
826
|
+
return _context4.abrupt("continue", 33);
|
|
827
|
+
case 15:
|
|
824
828
|
plannerElement = new PlannerElementData(this.set.getSetId(), jsonElement.basketID, this.nextElementId, DivaStandardPlanner.plannerType);
|
|
825
829
|
oldElementidMapping.set(parseInt(jsonElement.elementID), plannerElement);
|
|
826
830
|
this.nextElementId = plannerElement.getElementId() + 1;
|
|
@@ -829,12 +833,12 @@ var DivaStandardPlanner = /*#__PURE__*/function () {
|
|
|
829
833
|
data = this.set.getPlannerData(plannerElement.ElementId);
|
|
830
834
|
plannerElement.updatePlannerData(data);
|
|
831
835
|
if (this.doDisablePlanner2D) {
|
|
832
|
-
_context4.next =
|
|
836
|
+
_context4.next = 25;
|
|
833
837
|
break;
|
|
834
838
|
}
|
|
835
|
-
_context4.next =
|
|
839
|
+
_context4.next = 25;
|
|
836
840
|
return handler2D.loadSVG(plannerElement, this.set);
|
|
837
|
-
case
|
|
841
|
+
case 25:
|
|
838
842
|
plannerElement.WorldPosCenter = new Vector3(globalBoundingBox.WorldPos.x + globalBoundingBox.Size.x + jsonElement.x + 100, globalBoundingBox.WorldPos.y + jsonElement.y, globalBoundingBox.WorldPos.z + jsonElement.z);
|
|
839
843
|
plannerElement.RotDeg = jsonElement.rot;
|
|
840
844
|
if (plannerElement.IsDockedAccessoire) {
|
|
@@ -845,20 +849,20 @@ var DivaStandardPlanner = /*#__PURE__*/function () {
|
|
|
845
849
|
elementsSortedbyPosNr[jsonElement.posNr - 1] = jsonElement;
|
|
846
850
|
plannerElement.PosNr = jsonElement.posNr;
|
|
847
851
|
}
|
|
848
|
-
_context4.next =
|
|
852
|
+
_context4.next = 33;
|
|
849
853
|
break;
|
|
850
|
-
case
|
|
851
|
-
_context4.prev =
|
|
854
|
+
case 30:
|
|
855
|
+
_context4.prev = 30;
|
|
852
856
|
_context4.t0 = _context4["catch"](9);
|
|
853
857
|
LOG.error(new DivaError('Error initializing element nr ' + i + ' in the Standard Web Planner. PlanData V2', {
|
|
854
858
|
cause: _context4.t0,
|
|
855
859
|
code: 'WC_0012'
|
|
856
860
|
}));
|
|
857
|
-
case
|
|
861
|
+
case 33:
|
|
858
862
|
i++;
|
|
859
863
|
_context4.next = 8;
|
|
860
864
|
break;
|
|
861
|
-
case
|
|
865
|
+
case 36:
|
|
862
866
|
elementsSortedbyPosNr = elementsSortedbyPosNr.concat(accElements);
|
|
863
867
|
for (i = 0; i < elementsSortedbyPosNr.length; i++) {
|
|
864
868
|
curElement = oldElementidMapping.get(elementsSortedbyPosNr[i].elementID);
|
|
@@ -880,17 +884,17 @@ var DivaStandardPlanner = /*#__PURE__*/function () {
|
|
|
880
884
|
}
|
|
881
885
|
}
|
|
882
886
|
}
|
|
883
|
-
_context4.next =
|
|
887
|
+
_context4.next = 41;
|
|
884
888
|
break;
|
|
885
|
-
case
|
|
889
|
+
case 40:
|
|
886
890
|
LOG.error(new DivaError('The function extend Planner works only with products that are saved in the configurator 2.0', {
|
|
887
891
|
code: 'WC_0012'
|
|
888
892
|
}));
|
|
889
|
-
case
|
|
893
|
+
case 41:
|
|
890
894
|
case "end":
|
|
891
895
|
return _context4.stop();
|
|
892
896
|
}
|
|
893
|
-
}, _callee4, this, [[9,
|
|
897
|
+
}, _callee4, this, [[9, 30]]);
|
|
894
898
|
}));
|
|
895
899
|
function extendPlanner(_x7, _x8) {
|
|
896
900
|
return _extendPlanner.apply(this, arguments);
|
|
@@ -908,7 +912,7 @@ var DivaStandardPlanner = /*#__PURE__*/function () {
|
|
|
908
912
|
planDataString = DivaUtils.decodeBase64(setPlanData);
|
|
909
913
|
planData = JSON.parse(planDataString);
|
|
910
914
|
if (!(planData.v != null && planData.v == 2)) {
|
|
911
|
-
_context5.next =
|
|
915
|
+
_context5.next = 61;
|
|
912
916
|
break;
|
|
913
917
|
}
|
|
914
918
|
LOG.debug('Initialize set Plan Data - V2\n' + planData, 'DivaStandardPlanner initPlanner');
|
|
@@ -925,18 +929,21 @@ var DivaStandardPlanner = /*#__PURE__*/function () {
|
|
|
925
929
|
i = 0;
|
|
926
930
|
case 10:
|
|
927
931
|
if (!(i < jsonElements.length)) {
|
|
928
|
-
_context5.next =
|
|
932
|
+
_context5.next = 38;
|
|
929
933
|
break;
|
|
930
934
|
}
|
|
931
935
|
_context5.prev = 11;
|
|
932
936
|
jsonElement = jsonElements[i];
|
|
933
|
-
catalogArticle = this.set.CatalogData.getCatalogArticleByArticleCodex(jsonElement.articleCodex);
|
|
937
|
+
catalogArticle = this.set.CatalogData.getCatalogArticleByArticleCodex(jsonElement.articleCodex || jsonElement.Codex);
|
|
934
938
|
if (!(!catalogArticle && (_jsonElement$Accessoi2 = jsonElement.AccessoireInitParams) !== null && _jsonElement$Accessoi2 !== void 0 && _jsonElement$Accessoi2.RelatedToBasketID && !this.set.getSetState.onlyRunLogic)) {
|
|
935
|
-
_context5.next =
|
|
939
|
+
_context5.next = 17;
|
|
936
940
|
break;
|
|
937
941
|
}
|
|
938
|
-
|
|
939
|
-
|
|
942
|
+
LOG.error(new DivaError('Error initializing element nr ' + i + ' in the Standard Web Planner. PlanData V2', {
|
|
943
|
+
code: 'WC_0012'
|
|
944
|
+
}));
|
|
945
|
+
return _context5.abrupt("continue", 35);
|
|
946
|
+
case 17:
|
|
940
947
|
elementID = parseInt(jsonElement.elementID);
|
|
941
948
|
plannerElement = new PlannerElementData(this.set.getSetId(), jsonElement.basketID, elementID, DivaStandardPlanner.plannerType);
|
|
942
949
|
this.nextElementId = elementID + 1;
|
|
@@ -945,12 +952,12 @@ var DivaStandardPlanner = /*#__PURE__*/function () {
|
|
|
945
952
|
data = this.set.getPlannerData(plannerElement.ElementId);
|
|
946
953
|
plannerElement.updatePlannerData(data);
|
|
947
954
|
if (this.doDisablePlanner2D) {
|
|
948
|
-
_context5.next =
|
|
955
|
+
_context5.next = 27;
|
|
949
956
|
break;
|
|
950
957
|
}
|
|
951
|
-
_context5.next =
|
|
958
|
+
_context5.next = 27;
|
|
952
959
|
return handler2D.loadSVG(plannerElement, this.set);
|
|
953
|
-
case
|
|
960
|
+
case 27:
|
|
954
961
|
//Im neuen speichern ist die Position hinten link - nicht mehr im Centrum wie im alten Planer
|
|
955
962
|
//plannerElement.WorldPosCenter = new Vector3(jsonElement.x, jsonElement.y, jsonElement.z);
|
|
956
963
|
plannerElement.WorldPosCenter = new Vector3(this.plannerBoundingBox.WorldPos.x + jsonElement.x, this.plannerBoundingBox.WorldPos.y + jsonElement.y, this.plannerBoundingBox.WorldPos.z + jsonElement.z);
|
|
@@ -963,44 +970,44 @@ var DivaStandardPlanner = /*#__PURE__*/function () {
|
|
|
963
970
|
elementsSortedbyPosNr[jsonElement.posNr - 1] = jsonElement;
|
|
964
971
|
plannerElement.PosNr = jsonElement.posNr;
|
|
965
972
|
}
|
|
966
|
-
_context5.next =
|
|
973
|
+
_context5.next = 35;
|
|
967
974
|
break;
|
|
968
|
-
case
|
|
969
|
-
_context5.prev =
|
|
975
|
+
case 32:
|
|
976
|
+
_context5.prev = 32;
|
|
970
977
|
_context5.t0 = _context5["catch"](11);
|
|
971
978
|
LOG.error(new DivaError('Error initializing element nr ' + i + ' in the Standard Web Planner. PlanData V2', {
|
|
972
979
|
cause: _context5.t0,
|
|
973
980
|
code: 'WC_0012'
|
|
974
981
|
}));
|
|
975
|
-
case
|
|
982
|
+
case 35:
|
|
976
983
|
i++;
|
|
977
984
|
_context5.next = 10;
|
|
978
985
|
break;
|
|
979
|
-
case
|
|
986
|
+
case 38:
|
|
980
987
|
onlyOneBaseElement = elementsSortedbyPosNr.length == 1; //Saves if only one base element is in the planning. All the others are only accessoires
|
|
981
988
|
elementsSortedbyPosNr = elementsSortedbyPosNr.concat(accElements);
|
|
982
989
|
i = 0;
|
|
983
|
-
case
|
|
990
|
+
case 41:
|
|
984
991
|
if (!(i < elementsSortedbyPosNr.length)) {
|
|
985
|
-
_context5.next =
|
|
992
|
+
_context5.next = 59;
|
|
986
993
|
break;
|
|
987
994
|
}
|
|
988
|
-
_context5.prev =
|
|
995
|
+
_context5.prev = 42;
|
|
989
996
|
if (!(i == 0 && onlyOneBaseElement && this.plannerHasStaticBackground)) {
|
|
990
|
-
_context5.next =
|
|
997
|
+
_context5.next = 47;
|
|
991
998
|
break;
|
|
992
999
|
}
|
|
993
1000
|
//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
|
|
994
1001
|
element = this.plannerElements.get(elementsSortedbyPosNr[i].elementID);
|
|
995
1002
|
if (element) element.WorldPosCenter = new Vector3(0, element.Height / 2, element.Depth / 2);
|
|
996
|
-
return _context5.abrupt("continue",
|
|
997
|
-
case
|
|
1003
|
+
return _context5.abrupt("continue", 56);
|
|
1004
|
+
case 47:
|
|
998
1005
|
if (!(elementsSortedbyPosNr[i].DP == null || elementsSortedbyPosNr[i].DP.length == 0)) {
|
|
999
|
-
_context5.next =
|
|
1006
|
+
_context5.next = 49;
|
|
1000
1007
|
break;
|
|
1001
1008
|
}
|
|
1002
|
-
return _context5.abrupt("continue",
|
|
1003
|
-
case
|
|
1009
|
+
return _context5.abrupt("continue", 56);
|
|
1010
|
+
case 49:
|
|
1004
1011
|
DPsInfo = elementsSortedbyPosNr[i].DP;
|
|
1005
1012
|
for (j = 0; j < DPsInfo.length; j++) {
|
|
1006
1013
|
dpInfo = DPsInfo[j];
|
|
@@ -1016,75 +1023,78 @@ var DivaStandardPlanner = /*#__PURE__*/function () {
|
|
|
1016
1023
|
}
|
|
1017
1024
|
}
|
|
1018
1025
|
}
|
|
1019
|
-
_context5.next =
|
|
1026
|
+
_context5.next = 56;
|
|
1020
1027
|
break;
|
|
1021
|
-
case
|
|
1022
|
-
_context5.prev =
|
|
1023
|
-
_context5.t1 = _context5["catch"](
|
|
1028
|
+
case 53:
|
|
1029
|
+
_context5.prev = 53;
|
|
1030
|
+
_context5.t1 = _context5["catch"](42);
|
|
1024
1031
|
LOG.error(new DivaError('Error initializing dockingPoints of element with elementID ' + elementsSortedbyPosNr[i].elementID, {
|
|
1025
1032
|
cause: _context5.t1,
|
|
1026
1033
|
code: 'WC_0012'
|
|
1027
1034
|
}));
|
|
1028
|
-
case
|
|
1035
|
+
case 56:
|
|
1029
1036
|
i++;
|
|
1030
|
-
_context5.next =
|
|
1037
|
+
_context5.next = 41;
|
|
1031
1038
|
break;
|
|
1032
|
-
case
|
|
1033
|
-
_context5.next =
|
|
1039
|
+
case 59:
|
|
1040
|
+
_context5.next = 112;
|
|
1034
1041
|
break;
|
|
1035
|
-
case
|
|
1042
|
+
case 61:
|
|
1036
1043
|
LOG.debug('Initialize set Plan Data - old V1\n' + planData, 'DivaStandardPlanner initPlanner');
|
|
1037
1044
|
if (!(!planData.Sets || planData.Sets.length == 0 || !planData.Sets[0].Elements || planData.Sets[0].Elements.length == 0)) {
|
|
1038
|
-
_context5.next =
|
|
1045
|
+
_context5.next = 64;
|
|
1039
1046
|
break;
|
|
1040
1047
|
}
|
|
1041
1048
|
return _context5.abrupt("return");
|
|
1042
|
-
case
|
|
1049
|
+
case 64:
|
|
1043
1050
|
//Init old Plannings - saved with the old planner
|
|
1044
1051
|
_jsonElements = planData.Sets[0].Elements;
|
|
1045
1052
|
_elementsSortedbyPosNr = [];
|
|
1046
1053
|
_accElements = []; //Zuerst initialisiere alle Elemente
|
|
1047
1054
|
//Dann positioniere sie richtig
|
|
1048
1055
|
i = 0;
|
|
1049
|
-
case
|
|
1056
|
+
case 68:
|
|
1050
1057
|
if (!(i < _jsonElements.length)) {
|
|
1051
|
-
_context5.next =
|
|
1058
|
+
_context5.next = 102;
|
|
1052
1059
|
break;
|
|
1053
1060
|
}
|
|
1054
|
-
_context5.prev =
|
|
1061
|
+
_context5.prev = 69;
|
|
1055
1062
|
_jsonElement = _jsonElements[i];
|
|
1056
|
-
_catalogArticle = this.set.CatalogData.getCatalogArticleByArticleCodex(_jsonElement.articleCodex);
|
|
1063
|
+
_catalogArticle = this.set.CatalogData.getCatalogArticleByArticleCodex(_jsonElement.articleCodex || _jsonElement.Codex);
|
|
1057
1064
|
if (!(!_catalogArticle && (_jsonElement$Accessoi3 = _jsonElement.AccessoireInitParams) !== null && _jsonElement$Accessoi3 !== void 0 && _jsonElement$Accessoi3.RelatedToBasketID && !this.set.getSetState.onlyRunLogic)) {
|
|
1058
|
-
_context5.next =
|
|
1065
|
+
_context5.next = 75;
|
|
1059
1066
|
break;
|
|
1060
1067
|
}
|
|
1061
|
-
|
|
1062
|
-
|
|
1068
|
+
LOG.error(new DivaError('Error initializing element nr ' + i + ' in the Standard Web Planner. PlanData V2', {
|
|
1069
|
+
code: 'WC_0012'
|
|
1070
|
+
}));
|
|
1071
|
+
return _context5.abrupt("continue", 99);
|
|
1072
|
+
case 75:
|
|
1063
1073
|
basketID = _jsonElement.BasketID;
|
|
1064
1074
|
if (this.set.getElementId(basketID) == -1) this.set.setElementId(basketID, Number(_jsonElement.ID));
|
|
1065
1075
|
elementId = this.set.getElementId(basketID);
|
|
1066
1076
|
_jsonElement.elementId = elementId;
|
|
1067
1077
|
if (!(elementId == -1)) {
|
|
1068
|
-
_context5.next =
|
|
1078
|
+
_context5.next = 82;
|
|
1069
1079
|
break;
|
|
1070
1080
|
}
|
|
1071
1081
|
LOG.error(new DivaError('Error when initializing planner. The elementID Was not saved in the article. ', {
|
|
1072
1082
|
code: 'WC_0012'
|
|
1073
1083
|
}));
|
|
1074
|
-
return _context5.abrupt("continue",
|
|
1075
|
-
case
|
|
1084
|
+
return _context5.abrupt("continue", 99);
|
|
1085
|
+
case 82:
|
|
1076
1086
|
_plannerElement = new PlannerElementData(this.set.getSetId(), basketID, elementId, DivaStandardPlanner.plannerType);
|
|
1077
1087
|
this.nextElementId = elementId + 1;
|
|
1078
1088
|
this.plannerElements.set(_plannerElement.ElementId, _plannerElement);
|
|
1079
1089
|
_data = this.set.getPlannerData(_plannerElement.ElementId);
|
|
1080
1090
|
_plannerElement.updatePlannerData(_data);
|
|
1081
1091
|
if (this.doDisablePlanner2D) {
|
|
1082
|
-
_context5.next =
|
|
1092
|
+
_context5.next = 90;
|
|
1083
1093
|
break;
|
|
1084
1094
|
}
|
|
1085
|
-
_context5.next =
|
|
1095
|
+
_context5.next = 90;
|
|
1086
1096
|
return handler2D.loadSVG(_plannerElement, this.set);
|
|
1087
|
-
case
|
|
1097
|
+
case 90:
|
|
1088
1098
|
//Achtung die Pos Infos im alten Planer waren Zentrumskoordinaten!!! Nicht hinten oben.
|
|
1089
1099
|
centerWorldPos = new Vector3(_jsonElement.PosX, _jsonElement.PosZ, _jsonElement.PosY);
|
|
1090
1100
|
_plannerElement.WorldPosCenter = new Vector3(this.plannerBoundingBox.WorldPos.x + centerWorldPos.x, this.plannerBoundingBox.WorldPos.y + centerWorldPos.y, this.plannerBoundingBox.WorldPos.z + centerWorldPos.z);
|
|
@@ -1101,34 +1111,34 @@ var DivaStandardPlanner = /*#__PURE__*/function () {
|
|
|
1101
1111
|
_elementsSortedbyPosNr[_jsonElement.PosNum - 1] = _jsonElement;
|
|
1102
1112
|
_plannerElement.PosNr = _jsonElement.PosNum;
|
|
1103
1113
|
}
|
|
1104
|
-
_context5.next =
|
|
1114
|
+
_context5.next = 99;
|
|
1105
1115
|
break;
|
|
1106
|
-
case
|
|
1107
|
-
_context5.prev =
|
|
1108
|
-
_context5.t2 = _context5["catch"](
|
|
1116
|
+
case 96:
|
|
1117
|
+
_context5.prev = 96;
|
|
1118
|
+
_context5.t2 = _context5["catch"](69);
|
|
1109
1119
|
LOG.error(new DivaError('Error initializing element nr ' + i + ' in the Standard Web Planner - Plan Data old Planner', {
|
|
1110
1120
|
cause: _context5.t2,
|
|
1111
1121
|
code: 'WC_0012'
|
|
1112
1122
|
}));
|
|
1113
|
-
case
|
|
1123
|
+
case 99:
|
|
1114
1124
|
i++;
|
|
1115
|
-
_context5.next =
|
|
1125
|
+
_context5.next = 68;
|
|
1116
1126
|
break;
|
|
1117
|
-
case
|
|
1127
|
+
case 102:
|
|
1118
1128
|
_elementsSortedbyPosNr = _elementsSortedbyPosNr.concat(_accElements);
|
|
1119
1129
|
//Dann werden die DockingPoints durchgegangen und die jeweils richtigen müssen gesucht werden.
|
|
1120
1130
|
i = 0;
|
|
1121
|
-
case
|
|
1131
|
+
case 104:
|
|
1122
1132
|
if (!(i < _elementsSortedbyPosNr.length)) {
|
|
1123
|
-
_context5.next =
|
|
1133
|
+
_context5.next = 112;
|
|
1124
1134
|
break;
|
|
1125
1135
|
}
|
|
1126
1136
|
if (!(_elementsSortedbyPosNr[i].DP == null || _elementsSortedbyPosNr[i].DP.length == 0)) {
|
|
1127
|
-
_context5.next =
|
|
1137
|
+
_context5.next = 107;
|
|
1128
1138
|
break;
|
|
1129
1139
|
}
|
|
1130
|
-
return _context5.abrupt("continue",
|
|
1131
|
-
case
|
|
1140
|
+
return _context5.abrupt("continue", 109);
|
|
1141
|
+
case 107:
|
|
1132
1142
|
_DPsInfo = _elementsSortedbyPosNr[i].DP;
|
|
1133
1143
|
for (j = 0; j < _DPsInfo.length; j++) {
|
|
1134
1144
|
_dpInfo = _DPsInfo[j];
|
|
@@ -1146,18 +1156,18 @@ var DivaStandardPlanner = /*#__PURE__*/function () {
|
|
|
1146
1156
|
}
|
|
1147
1157
|
}
|
|
1148
1158
|
}
|
|
1149
|
-
case
|
|
1159
|
+
case 109:
|
|
1150
1160
|
i++;
|
|
1151
|
-
_context5.next =
|
|
1161
|
+
_context5.next = 104;
|
|
1152
1162
|
break;
|
|
1153
|
-
case
|
|
1163
|
+
case 112:
|
|
1154
1164
|
this.updateAllElementsWorldPos();
|
|
1155
1165
|
this.updatePlannerPosNr();
|
|
1156
|
-
case
|
|
1166
|
+
case 114:
|
|
1157
1167
|
case "end":
|
|
1158
1168
|
return _context5.stop();
|
|
1159
1169
|
}
|
|
1160
|
-
}, _callee5, this, [[11,
|
|
1170
|
+
}, _callee5, this, [[11, 32], [42, 53], [69, 96]]);
|
|
1161
1171
|
}));
|
|
1162
1172
|
function initPlanner(_x9) {
|
|
1163
1173
|
return _initPlanner.apply(this, arguments);
|
|
@@ -1254,7 +1264,7 @@ var DivaStandardPlanner = /*#__PURE__*/function () {
|
|
|
1254
1264
|
}, {
|
|
1255
1265
|
key: "movePlannerElement",
|
|
1256
1266
|
value: function movePlannerElement() {
|
|
1257
|
-
throw Error(
|
|
1267
|
+
throw Error('move planner not implemented in standard');
|
|
1258
1268
|
}
|
|
1259
1269
|
|
|
1260
1270
|
/**
|
|
@@ -1271,8 +1281,8 @@ var DivaStandardPlanner = /*#__PURE__*/function () {
|
|
|
1271
1281
|
while (1) switch (_context7.prev = _context7.next) {
|
|
1272
1282
|
case 0:
|
|
1273
1283
|
articlesToLoad = [];
|
|
1274
|
-
articleCopyRelation.forEach(function (
|
|
1275
|
-
if (copyInfo == undefined) articlesToLoad.push(
|
|
1284
|
+
articleCopyRelation.forEach(function (rel) {
|
|
1285
|
+
if (copyInfo == undefined) articlesToLoad.push(rel.value);
|
|
1276
1286
|
});
|
|
1277
1287
|
i = 0;
|
|
1278
1288
|
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-8f6efc60.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-8f6efc60.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-8f6efc60.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-8f6efc60.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-8f6efc60.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';
|
|
@@ -2052,7 +2052,7 @@ var PlannerHandler2D = /*#__PURE__*/function () {
|
|
|
2052
2052
|
var svgXmlOLT = this.svgUtils.removeOLFFromSvg(svgXml);
|
|
2053
2053
|
var oltPoints = this.svgUtils.getPointOfPoligonById(svgXml, 'OLT');
|
|
2054
2054
|
if (!(oltPoints !== null && oltPoints !== void 0 && oltPoints.length)) {
|
|
2055
|
-
LOG.
|
|
2055
|
+
LOG.warn('no olt fount in svg for element' + plannerElement.ArticleCodex + ' with id ' + plannerElement.getElementId());
|
|
2056
2056
|
}
|
|
2057
2057
|
plannerElement.OLTPolygon = oltPoints;
|
|
2058
2058
|
var olf = this.svgUtils.getPointOfPoligonById(svgXml, 'OLF');
|
|
@@ -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-8f6efc60.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-8f6efc60.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-8f6efc60.js';
|
|
4
4
|
import '@babel/runtime/helpers/slicedToArray';
|
|
5
5
|
import '@babel/runtime/helpers/asyncToGenerator';
|
|
6
6
|
import '@babel/runtime/helpers/defineProperty';
|