@crystaldesign/web-planner-logic 26.4.3-rc.2 → 26.4.3-rc.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/build/cjs/{DivaBoxPlanner-c6dd2e23.js → DivaBoxPlanner-7b7df440.js} +5 -4
  2. package/build/cjs/{DivaStandardPlanner-a39991d8.js → DivaStandardPlanner-0ecbf621.js} +2 -2
  3. package/build/cjs/{DoorPlanner-8ca88521.js → DoorPlanner-c7649bfb.js} +1 -1
  4. package/build/cjs/{Host3DSignalR-42820b73.js → Host3DSignalR-65a20f74.js} +1 -1
  5. package/build/cjs/{LiviqueWWSHandler-b40b2274.js → LiviqueWWSHandler-2e03f234.js} +1 -1
  6. package/build/cjs/{PfisterWWSHandler-0b179395.js → PfisterWWSHandler-db0a295c.js} +1 -1
  7. package/build/cjs/{PlannerHandler2D-2c3c3671.js → PlannerHandler2D-94232ad3.js} +1 -1
  8. package/build/cjs/{SeriousBasketHandler-ed972b51.js → SeriousBasketHandler-0289ebe6.js} +1 -1
  9. package/build/cjs/{ShelfPlanner-aa7431d5.js → ShelfPlanner-2e95b0b6.js} +1 -1
  10. package/build/cjs/{StandardWWSHandler-c7f96af4.js → StandardWWSHandler-fbb14d7d.js} +1 -1
  11. package/build/cjs/{index-36427acd.js → index-528b346a.js} +96 -143
  12. package/build/cjs/index.js +1 -1
  13. package/build/esm/{DivaBoxPlanner-c8f15c63.js → DivaBoxPlanner-a8497be5.js} +5 -4
  14. package/build/esm/{DivaStandardPlanner-aa9fa3aa.js → DivaStandardPlanner-9a310b5f.js} +2 -2
  15. package/build/esm/{DoorPlanner-69ac2d54.js → DoorPlanner-7c1b6fd2.js} +1 -1
  16. package/build/esm/{Host3DSignalR-34fe86cc.js → Host3DSignalR-0e050216.js} +1 -1
  17. package/build/esm/{LiviqueWWSHandler-061b7c74.js → LiviqueWWSHandler-d48f2498.js} +1 -1
  18. package/build/esm/{PfisterWWSHandler-5789b740.js → PfisterWWSHandler-97b0c451.js} +1 -1
  19. package/build/esm/{PlannerHandler2D-baf117cb.js → PlannerHandler2D-b8849349.js} +1 -1
  20. package/build/esm/{SeriousBasketHandler-5ee80d66.js → SeriousBasketHandler-e007b67a.js} +1 -1
  21. package/build/esm/{ShelfPlanner-85592ae0.js → ShelfPlanner-538b37d5.js} +1 -1
  22. package/build/esm/{StandardWWSHandler-343b9518.js → StandardWWSHandler-f7af3d93.js} +1 -1
  23. package/build/esm/{index-fd677042.js → index-d84fe3d2.js} +96 -143
  24. package/build/esm/index.js +1 -1
  25. package/build/types/web-planner-logic/src/logic/Article/Engine/DivaArticleEngine.d.ts +2 -0
  26. package/build/types/web-planner-logic/src/logic/Article/Engine/DivaArticleEngine.d.ts.map +1 -1
  27. package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts.map +1 -1
  28. package/build/types/web-planner-logic/src/logic/Planner/BoxPlanner/BoxPlannerGrid.d.ts.map +1 -1
  29. package/build/types/web-planner-logic/src/logic/Planner/BoxPlanner/DivaBoxPlanner.d.ts.map +1 -1
  30. package/package.json +2 -2
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var index = require('./index-36427acd.js');
5
+ var index = require('./index-528b346a.js');
6
6
  require('@babel/runtime/helpers/slicedToArray');
7
7
  require('@babel/runtime/helpers/asyncToGenerator');
8
8
  require('@babel/runtime/helpers/classCallCheck');
@@ -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 { c as Vector2, V as Vector3, P as PlannerElementData, B as BoundingBox } from './index-fd677042.js';
6
+ import { c as Vector2, V as Vector3, P as PlannerElementData, B as BoundingBox } from './index-d84fe3d2.js';
7
7
  import DivaUtils, { DivaError, md5 } from '@crystaldesign/diva-utils';
8
8
  import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
9
9
  import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
10
- import { d as dockingPointHandlerInst, h as handler2D } from './PlannerHandler2D-baf117cb.js';
10
+ import { d as dockingPointHandlerInst, h as handler2D } from './PlannerHandler2D-b8849349.js';
11
11
  import '@babel/runtime/helpers/objectWithoutProperties';
12
12
  import 'axios';
13
13
  import '@crystaldesign/basket-model';
@@ -4776,6 +4776,7 @@ var BoxPlannerGrid = /*#__PURE__*/function () {
4776
4776
  var grid = this.generalPlanningState.grids[0].matrix;
4777
4777
  var backup = structuredClone(this.generalPlanningState);
4778
4778
  var res = this.getCellsInGridByElementId(elementId);
4779
+ if (res.cells.length == 0) return true;
4779
4780
  var cell = res.cells[0];
4780
4781
  var scpe = this.gridSetupParams.forceSingleCellPerElement;
4781
4782
  var origin = {
@@ -6075,7 +6076,7 @@ var DivaBoxPlanner = /*#__PURE__*/function () {
6075
6076
  allElementsToCopy.push(elementId);
6076
6077
  if (copyInfo) {
6077
6078
  if (copyInfo.copyIndex.x != 0) {
6078
- if (this.constructionRulesHandler.getForceWholePlanningSameHeight()) {
6079
+ if (this.boxPlannerGrid.getForceSingleCellPerElement() || this.constructionRulesHandler.getForceWholePlanningSameHeight()) {
6079
6080
  var result = this.boxPlannerGrid.getAllElementsInSameCol(elementId);
6080
6081
  allElementsToCopy = result.elements;
6081
6082
  result.backside;
@@ -6086,7 +6087,7 @@ var DivaBoxPlanner = /*#__PURE__*/function () {
6086
6087
  }
6087
6088
  }
6088
6089
  if (copyInfo.copyIndex.y != 0) {
6089
- if (this.constructionRulesHandler.getForceWholePlanningSameHeight()) {
6090
+ if (this.boxPlannerGrid.getForceSingleCellPerElement() || this.constructionRulesHandler.getForceWholePlanningSameHeight()) {
6090
6091
  var resultCopyUp = this.boxPlannerGrid.getAllElementsInSameRowByElementId(elementId);
6091
6092
  allElementsToCopy = resultCopyUp.elementIds;
6092
6093
  resultCopyUp.backside;
@@ -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-fd677042.js';
6
+ import { V as Vector3, c as Vector2, P as PlannerElementData, B as BoundingBox } from './index-d84fe3d2.js';
7
7
  import DivaUtils, { DivaError, md5 } from '@crystaldesign/diva-utils';
8
- import { d as dockingPointHandlerInst, h as handler2D } from './PlannerHandler2D-baf117cb.js';
8
+ import { d as dockingPointHandlerInst, h as handler2D } from './PlannerHandler2D-b8849349.js';
9
9
  import '@babel/runtime/helpers/slicedToArray';
10
10
  import '@babel/runtime/helpers/objectWithoutProperties';
11
11
  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 './index-fd677042.js';
4
+ import './index-d84fe3d2.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-fd677042.js';
6
+ import { R as Rendering, H as HQRenderScript } from './index-d84fe3d2.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-fd677042.js';
3
+ import './index-d84fe3d2.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-fd677042.js';
3
+ import { a as articleHandlerInstance } from './index-d84fe3d2.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-fd677042.js';
6
+ import { c as Vector2, D as DockingPoint, V as Vector3 } from './index-d84fe3d2.js';
7
7
  import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
8
8
  import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
9
9
  import { fabric } from 'fabric';
@@ -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-fd677042.js';
4
+ import { s as summaryHandlerInstance } from './index-d84fe3d2.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-fd677042.js';
7
+ import { G as Grid, b as setHandlerInstance, a as articleHandlerInstance } from './index-d84fe3d2.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-fd677042.js';
3
+ import './index-d84fe3d2.js';
4
4
  import '@babel/runtime/helpers/slicedToArray';
5
5
  import '@babel/runtime/helpers/asyncToGenerator';
6
6
  import '@babel/runtime/helpers/defineProperty';