@crystaldesign/web-planner-logic 24.9.0-beta.8 → 24.9.0-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-d6afcd7f.js → DivaBoxPlanner-195ef8fa.js} +3 -3
- package/build/cjs/{DivaSingleProductPlanner-68105f08.js → DivaSingleProductPlanner-300645d8.js} +2 -2
- package/build/cjs/{DivaStandardPlanner-745db9a1.js → DivaStandardPlanner-c019c200.js} +3 -3
- package/build/cjs/{DockingPointHandler-99f55eb6.js → DockingPointHandler-6c544ce5.js} +1 -1
- package/build/cjs/{DoorPlanner-0a84666c.js → DoorPlanner-cee925df.js} +1 -1
- package/build/cjs/{Host3DSignalR-75f232d8.js → Host3DSignalR-d226d263.js} +1 -1
- package/build/cjs/{LiviqueWWSHandler-25e4a949.js → LiviqueWWSHandler-5a05bb10.js} +1 -1
- package/build/cjs/{PfisterWWSHandler-229c8c62.js → PfisterWWSHandler-12f324d0.js} +1 -1
- package/build/cjs/{PlannerHandler2D-85a905b1.js → PlannerHandler2D-b595d8dc.js} +2 -2
- package/build/cjs/{ProductBasketHandler-0b806039.js → ProductBasketHandler-cdc0c4d5.js} +1 -1
- package/build/cjs/{SeriousBasketHandler-854666a2.js → SeriousBasketHandler-5cc28073.js} +1 -1
- package/build/cjs/{ShelfPlanner-27780a16.js → ShelfPlanner-79be244b.js} +25 -10
- package/build/cjs/{StandardWWSHandler-18fa16cc.js → StandardWWSHandler-43c2c1a0.js} +1 -1
- package/build/cjs/{index-c40fa88f.js → index-e302ec07.js} +427 -344
- package/build/cjs/index.js +1 -1
- package/build/esm/{DivaBoxPlanner-78961298.js → DivaBoxPlanner-dc6b9986.js} +3 -3
- package/build/esm/{DivaSingleProductPlanner-b92c70df.js → DivaSingleProductPlanner-38d5fe25.js} +2 -2
- package/build/esm/{DivaStandardPlanner-cb786656.js → DivaStandardPlanner-28bbaf33.js} +3 -3
- package/build/esm/{DockingPointHandler-6db94e40.js → DockingPointHandler-4c5eb790.js} +1 -1
- package/build/esm/{DoorPlanner-e12b9365.js → DoorPlanner-6750d542.js} +1 -1
- package/build/esm/{Host3DSignalR-77879247.js → Host3DSignalR-dd1cbc2e.js} +1 -1
- package/build/esm/{LiviqueWWSHandler-1a26a92d.js → LiviqueWWSHandler-87d0d00e.js} +1 -1
- package/build/esm/{PfisterWWSHandler-1e923387.js → PfisterWWSHandler-1d782245.js} +1 -1
- package/build/esm/{PlannerHandler2D-60fd65d3.js → PlannerHandler2D-e8d8f429.js} +2 -2
- package/build/esm/{ProductBasketHandler-f30038df.js → ProductBasketHandler-90da988d.js} +1 -1
- package/build/esm/{SeriousBasketHandler-caa5b1c6.js → SeriousBasketHandler-a0be8507.js} +1 -1
- package/build/esm/{ShelfPlanner-a886bdc7.js → ShelfPlanner-173373f0.js} +25 -10
- package/build/esm/{StandardWWSHandler-06779298.js → StandardWWSHandler-4e51bfd3.js} +1 -1
- package/build/esm/{index-5b49712f.js → index-71e8f1c9.js} +427 -344
- package/build/esm/index.js +1 -1
- package/build/types/web-planner-logic/src/index.d.ts +1 -0
- package/build/types/web-planner-logic/src/index.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/API/TemplateConfigType.d.ts +1 -1
- package/build/types/web-planner-logic/src/interface/API/TemplateConfigType.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/AdditionalModelInfos.d.ts +1 -1
- package/build/types/web-planner-logic/src/interface/ArticleOptionStateType.d.ts +1 -3
- package/build/types/web-planner-logic/src/interface/ArticleOptionStateType.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/ConfiguratorStructureDataType.d.ts +1 -0
- package/build/types/web-planner-logic/src/interface/ConfiguratorStructureDataType.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/DivaCatalogDataType.d.ts +4 -0
- package/build/types/web-planner-logic/src/interface/DivaCatalogDataType.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/Rules/NotificationRule.d.ts +61 -0
- package/build/types/web-planner-logic/src/interface/Rules/NotificationRule.d.ts.map +1 -0
- package/build/types/web-planner-logic/src/interface/ShelfPlanner/ShelfAccessoiresView.d.ts +3 -1
- package/build/types/web-planner-logic/src/interface/ShelfPlanner/ShelfAccessoiresView.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/ShelfPlanner/plannerData.d.ts +41 -37
- package/build/types/web-planner-logic/src/interface/ShelfPlanner/plannerData.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Article/ArticleOptionState.d.ts +1 -3
- package/build/types/web-planner-logic/src/logic/Article/ArticleOptionState.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Article/DivaArticle.d.ts +1 -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/DivaArticleHandler.d.ts +8 -2
- package/build/types/web-planner-logic/src/logic/Article/DivaArticleHandler.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/ConfigTree/DivaConfigTree.d.ts +1 -0
- package/build/types/web-planner-logic/src/logic/ConfigTree/DivaConfigTree.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/ConfigTree/DivaConfigTreeHandler.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/ConfigTree/Shelfplanner/ShelfPlanner.d.ts +1 -0
- package/build/types/web-planner-logic/src/logic/ConfigTree/Shelfplanner/ShelfPlanner.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/ConfigTree/Shelfplanner/ShelfPlannerCell.d.ts +2 -2
- package/build/types/web-planner-logic/src/logic/ConfigTree/Shelfplanner/ShelfPlannerCell.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/ConfigTree/Shelfplanner/ShelfPlannerGrid.d.ts +13 -3
- package/build/types/web-planner-logic/src/logic/ConfigTree/Shelfplanner/ShelfPlannerGrid.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts +13 -8
- package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Set/DivaSetHandler.d.ts +5 -1
- package/build/types/web-planner-logic/src/logic/Set/DivaSetHandler.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/DivaCatalogData.d.ts +3 -0
- package/build/types/web-planner-logic/src/model/DivaCatalogData.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/Options/CatalogOptionData.d.ts.map +1 -1
- package/package.json +2 -2
package/build/cjs/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var index = require('./index-
|
|
5
|
+
var index = require('./index-e302ec07.js');
|
|
6
6
|
require('@babel/runtime/helpers/asyncToGenerator');
|
|
7
7
|
require('@babel/runtime/helpers/classCallCheck');
|
|
8
8
|
require('@babel/runtime/helpers/createClass');
|
|
@@ -3,11 +3,11 @@ import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
|
|
|
3
3
|
import _createClass from '@babel/runtime/helpers/createClass';
|
|
4
4
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
5
5
|
import _regeneratorRuntime from '@babel/runtime/regenerator';
|
|
6
|
-
import { V as Vector3, B as BoundingBox } from './index-
|
|
6
|
+
import { V as Vector3, B as BoundingBox } from './index-71e8f1c9.js';
|
|
7
7
|
import DivaUtils, { DivaError, md5 } from '@crystaldesign/diva-utils';
|
|
8
8
|
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
9
|
-
import { d as dockingPointHandlerInst, P as PlannerElementData } from './DockingPointHandler-
|
|
10
|
-
import { h as handler2D } from './PlannerHandler2D-
|
|
9
|
+
import { d as dockingPointHandlerInst, P as PlannerElementData } from './DockingPointHandler-4c5eb790.js';
|
|
10
|
+
import { h as handler2D } from './PlannerHandler2D-e8d8f429.js';
|
|
11
11
|
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
12
12
|
import '@babel/runtime/helpers/slicedToArray';
|
|
13
13
|
import 'axios';
|
package/build/esm/{DivaSingleProductPlanner-b92c70df.js → DivaSingleProductPlanner-38d5fe25.js}
RENAMED
|
@@ -3,8 +3,8 @@ import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
|
|
|
3
3
|
import _createClass from '@babel/runtime/helpers/createClass';
|
|
4
4
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
5
5
|
import _regeneratorRuntime from '@babel/runtime/regenerator';
|
|
6
|
-
import { V as Vector3, c as Vector2, B as BoundingBox } from './index-
|
|
7
|
-
import { d as dockingPointHandlerInst, P as PlannerElementData } from './DockingPointHandler-
|
|
6
|
+
import { V as Vector3, c as Vector2, B as BoundingBox } from './index-71e8f1c9.js';
|
|
7
|
+
import { d as dockingPointHandlerInst, P as PlannerElementData } from './DockingPointHandler-4c5eb790.js';
|
|
8
8
|
import DivaUtils, { DivaError, md5 } from '@crystaldesign/diva-utils';
|
|
9
9
|
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
10
10
|
import '@babel/runtime/helpers/slicedToArray';
|
|
@@ -3,10 +3,10 @@ import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
|
|
|
3
3
|
import _createClass from '@babel/runtime/helpers/createClass';
|
|
4
4
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
5
5
|
import _regeneratorRuntime from '@babel/runtime/regenerator';
|
|
6
|
-
import { V as Vector3, c as Vector2, B as BoundingBox } from './index-
|
|
7
|
-
import { d as dockingPointHandlerInst, P as PlannerElementData } from './DockingPointHandler-
|
|
6
|
+
import { V as Vector3, c as Vector2, B as BoundingBox } from './index-71e8f1c9.js';
|
|
7
|
+
import { d as dockingPointHandlerInst, P as PlannerElementData } from './DockingPointHandler-4c5eb790.js';
|
|
8
8
|
import DivaUtils, { DivaError, md5 } from '@crystaldesign/diva-utils';
|
|
9
|
-
import { h as handler2D } from './PlannerHandler2D-
|
|
9
|
+
import { h as handler2D } from './PlannerHandler2D-e8d8f429.js';
|
|
10
10
|
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
11
11
|
import '@babel/runtime/helpers/slicedToArray';
|
|
12
12
|
import '@babel/runtime/helpers/toConsumableArray';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
|
|
2
2
|
import _createClass from '@babel/runtime/helpers/createClass';
|
|
3
3
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
4
|
-
import { V as Vector3, c as Vector2, D as DockingPoint } from './index-
|
|
4
|
+
import { V as Vector3, c as Vector2, D as DockingPoint } from './index-71e8f1c9.js';
|
|
5
5
|
import DivaUtils, { md5 } from '@crystaldesign/diva-utils';
|
|
6
6
|
|
|
7
7
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
@@ -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-71e8f1c9.js';
|
|
5
5
|
import DivaUtils from '@crystaldesign/diva-utils';
|
|
6
6
|
import '@babel/runtime/helpers/asyncToGenerator';
|
|
7
7
|
import '@babel/runtime/regenerator';
|
|
@@ -3,7 +3,7 @@ import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
|
|
|
3
3
|
import _createClass from '@babel/runtime/helpers/createClass';
|
|
4
4
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
5
5
|
import _regeneratorRuntime from '@babel/runtime/regenerator';
|
|
6
|
-
import { R as Rendering, H as HQRenderScript } from './index-
|
|
6
|
+
import { R as Rendering, H as HQRenderScript } from './index-71e8f1c9.js';
|
|
7
7
|
import DivaUtils, { DivaError } from '@crystaldesign/diva-utils';
|
|
8
8
|
import * as signalR from '@microsoft/signalr';
|
|
9
9
|
import io from 'socket.io-client';
|
|
@@ -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-71e8f1c9.js';
|
|
4
4
|
import '@babel/runtime/helpers/asyncToGenerator';
|
|
5
5
|
import '@babel/runtime/helpers/defineProperty';
|
|
6
6
|
import '@babel/runtime/regenerator';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
|
|
2
2
|
import _createClass from '@babel/runtime/helpers/createClass';
|
|
3
|
-
import './index-
|
|
3
|
+
import './index-71e8f1c9.js';
|
|
4
4
|
import { SAPOrderLineData } from '@crystaldesign/basket-model';
|
|
5
5
|
import DivaUtils, { DivaError } from '@crystaldesign/diva-utils';
|
|
6
6
|
import '@babel/runtime/helpers/asyncToGenerator';
|
|
@@ -3,12 +3,12 @@ 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 } from './index-
|
|
6
|
+
import { c as Vector2 } from './index-71e8f1c9.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';
|
|
10
10
|
import serialize from 'w3c-xmlserializer';
|
|
11
|
-
import { d as dockingPointHandlerInst } from './DockingPointHandler-
|
|
11
|
+
import { d as dockingPointHandlerInst } from './DockingPointHandler-4c5eb790.js';
|
|
12
12
|
|
|
13
13
|
var LOG$1 = DivaUtils.initLog('Planner', 'WEB-PLANNER-LOGIC');
|
|
14
14
|
var SVGUtils = /*#__PURE__*/function () {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
|
|
2
2
|
import _createClass from '@babel/runtime/helpers/createClass';
|
|
3
|
-
import { p as productHandlerInstance } from './index-
|
|
3
|
+
import { p as productHandlerInstance } from './index-71e8f1c9.js';
|
|
4
4
|
import '@babel/runtime/helpers/asyncToGenerator';
|
|
5
5
|
import '@babel/runtime/helpers/defineProperty';
|
|
6
6
|
import '@babel/runtime/regenerator';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
|
|
2
2
|
import _createClass from '@babel/runtime/helpers/createClass';
|
|
3
3
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
4
|
-
import { s as summaryHandlerInstance } from './index-
|
|
4
|
+
import { s as summaryHandlerInstance } from './index-71e8f1c9.js';
|
|
5
5
|
import DivaUtils from '@crystaldesign/diva-utils';
|
|
6
6
|
import '@babel/runtime/helpers/asyncToGenerator';
|
|
7
7
|
import '@babel/runtime/regenerator';
|
|
@@ -4,7 +4,7 @@ import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
|
|
|
4
4
|
import _createClass from '@babel/runtime/helpers/createClass';
|
|
5
5
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
6
6
|
import _regeneratorRuntime from '@babel/runtime/regenerator';
|
|
7
|
-
import { G as Grid, a as setHandlerInstance, b as articleHandlerInstance } from './index-
|
|
7
|
+
import { G as Grid, a as setHandlerInstance, b as articleHandlerInstance } from './index-71e8f1c9.js';
|
|
8
8
|
import DivaUtils from '@crystaldesign/diva-utils';
|
|
9
9
|
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
10
10
|
import '@babel/runtime/helpers/slicedToArray';
|
|
@@ -368,7 +368,7 @@ var ShelfPlanner = /*#__PURE__*/function () {
|
|
|
368
368
|
}
|
|
369
369
|
return _context4.abrupt("continue", 10);
|
|
370
370
|
case 9:
|
|
371
|
-
if (grid.gridGroup == gridGroup) {
|
|
371
|
+
if (gridGroup && (grid.gridGroup == gridGroup || grid.alternativeGridGroups.includes(gridGroup))) {
|
|
372
372
|
toUpdateOptions.push(grid.VisitOption);
|
|
373
373
|
if (toCleanOptions.includes(grid.VisitOption)) toCleanOptions.splice(toCleanOptions.indexOf(grid.VisitOption), 1);
|
|
374
374
|
} else {
|
|
@@ -779,7 +779,7 @@ var ShelfPlanner = /*#__PURE__*/function () {
|
|
|
779
779
|
var grids = this.GridsOrGroupById(gridName);
|
|
780
780
|
for (var i = 0; i < grids.length; i++) {
|
|
781
781
|
var grid = grids[i];
|
|
782
|
-
if (articleCodex && grid.
|
|
782
|
+
if (articleCodex && grid.getArticleRelationsById(gridName).includes(articleCodex)) {
|
|
783
783
|
if (grid.ActAccessoire !== articleCodex) {
|
|
784
784
|
grid.ActAccessoire = articleCodex;
|
|
785
785
|
somethingChanged = true;
|
|
@@ -904,11 +904,14 @@ var ShelfPlanner = /*#__PURE__*/function () {
|
|
|
904
904
|
var accessoires = [];
|
|
905
905
|
var catalogData = this.article.CatalogData;
|
|
906
906
|
var grids = this.GridsOrGroupById(configStepKey);
|
|
907
|
+
|
|
908
|
+
//check for grids that are in array because of articleRelationsForOtherGroups
|
|
909
|
+
|
|
907
910
|
for (var j = 0; j < grids.length; j++) {
|
|
908
|
-
var
|
|
909
|
-
if (
|
|
911
|
+
var articleRelations = grids[j].getArticleRelationsById(configStepKey);
|
|
912
|
+
if (articleRelations !== null && articleRelations !== void 0 && articleRelations.length) {
|
|
910
913
|
var _loop = function _loop() {
|
|
911
|
-
var articleCodex =
|
|
914
|
+
var articleCodex = articleRelations[i];
|
|
912
915
|
if (catalogData.checkIfArticleCodexExists(articleCodex)) {
|
|
913
916
|
var catalogArticle = catalogData.getCatalogArticleByArticleCodex(articleCodex);
|
|
914
917
|
if (!catalogArticle || accessoires.find(function (a) {
|
|
@@ -916,7 +919,7 @@ var ShelfPlanner = /*#__PURE__*/function () {
|
|
|
916
919
|
})) return 1; // continue
|
|
917
920
|
accessoires.push({
|
|
918
921
|
articleCodex: catalogArticle.articleCodex,
|
|
919
|
-
|
|
922
|
+
configStepKeys: [],
|
|
920
923
|
image: catalogArticle.image ? catalogData.getCatImageURL(catalogArticle.image, '') : undefined,
|
|
921
924
|
name: catalogArticle.name,
|
|
922
925
|
price: !catalogData.dontShowBasePrice ? Number(catalogArticle.articlePrice) : 0,
|
|
@@ -929,7 +932,7 @@ var ShelfPlanner = /*#__PURE__*/function () {
|
|
|
929
932
|
});
|
|
930
933
|
}
|
|
931
934
|
};
|
|
932
|
-
for (var i = 0; i <
|
|
935
|
+
for (var i = 0; i < articleRelations.length; i++) {
|
|
933
936
|
if (_loop()) continue;
|
|
934
937
|
}
|
|
935
938
|
}
|
|
@@ -1073,7 +1076,7 @@ var ShelfPlanner = /*#__PURE__*/function () {
|
|
|
1073
1076
|
key: "GridsOrGroupById",
|
|
1074
1077
|
value: function GridsOrGroupById(shelfId) {
|
|
1075
1078
|
return this.activeGrids.filter(function (grid) {
|
|
1076
|
-
return grid.ShelfId == shelfId || grid.group == shelfId;
|
|
1079
|
+
return grid.ShelfId == shelfId || grid.group == shelfId || grid.alternativeGridGroups.includes(shelfId);
|
|
1077
1080
|
});
|
|
1078
1081
|
}
|
|
1079
1082
|
}, {
|
|
@@ -1082,7 +1085,10 @@ var ShelfPlanner = /*#__PURE__*/function () {
|
|
|
1082
1085
|
var _grids$find;
|
|
1083
1086
|
var grids = this.GridsOrGroupById(shelfId);
|
|
1084
1087
|
return (_grids$find = grids.find(function (g) {
|
|
1085
|
-
|
|
1088
|
+
if (g.ActAccessoire && g.getArticleRelationsById(shelfId).includes(g.ActAccessoire)) {
|
|
1089
|
+
return g;
|
|
1090
|
+
}
|
|
1091
|
+
return;
|
|
1086
1092
|
})) === null || _grids$find === void 0 ? void 0 : _grids$find.ActAccessoire;
|
|
1087
1093
|
}
|
|
1088
1094
|
}, {
|
|
@@ -1109,6 +1115,15 @@ var ShelfPlanner = /*#__PURE__*/function () {
|
|
|
1109
1115
|
get: function get() {
|
|
1110
1116
|
return this.montageOptions;
|
|
1111
1117
|
}
|
|
1118
|
+
}, {
|
|
1119
|
+
key: "getRelatedToGridIdByArticleCodex",
|
|
1120
|
+
value: function getRelatedToGridIdByArticleCodex(articleCodex) {
|
|
1121
|
+
for (var i = 0; i < this.grids.length; i++) {
|
|
1122
|
+
var gridId = this.grids[i].getGridIdByArticleCodex(articleCodex);
|
|
1123
|
+
if (gridId) return gridId;
|
|
1124
|
+
}
|
|
1125
|
+
return undefined;
|
|
1126
|
+
}
|
|
1112
1127
|
}]);
|
|
1113
1128
|
}();
|
|
1114
1129
|
|
|
@@ -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-71e8f1c9.js';
|
|
4
4
|
import '@babel/runtime/helpers/asyncToGenerator';
|
|
5
5
|
import '@babel/runtime/helpers/defineProperty';
|
|
6
6
|
import '@babel/runtime/regenerator';
|