@crystaldesign/web-planner-logic 25.13.0-rc.3 → 25.14.0-beta.2
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-23a3fb0c.js → DivaBoxPlanner-1b90896a.js} +20 -38
- package/build/cjs/{DivaStandardPlanner-26bee5c8.js → DivaStandardPlanner-816f7344.js} +2 -2
- package/build/cjs/{DoorPlanner-de3e0078.js → DoorPlanner-b5c5993b.js} +1 -1
- package/build/cjs/{Host3DSignalR-af461a9b.js → Host3DSignalR-6bbb3036.js} +1 -1
- package/build/cjs/{LiviqueWWSHandler-d7d4b0c1.js → LiviqueWWSHandler-69df31a9.js} +1 -1
- package/build/cjs/{PfisterWWSHandler-21bded29.js → PfisterWWSHandler-c15ee67a.js} +1 -1
- package/build/cjs/{PlannerHandler2D-a11d0809.js → PlannerHandler2D-2f00b260.js} +1 -1
- package/build/cjs/{SeriousBasketHandler-6efd6ef7.js → SeriousBasketHandler-f2a7887a.js} +1 -1
- package/build/cjs/{ShelfPlanner-e684d275.js → ShelfPlanner-613aae50.js} +1 -1
- package/build/cjs/{StandardWWSHandler-a0934b0e.js → StandardWWSHandler-71564218.js} +1 -1
- package/build/cjs/{index-a163d722.js → index-f1a70eb3.js} +9 -9
- package/build/cjs/index.js +1 -1
- package/build/esm/{DivaBoxPlanner-b8295ea8.js → DivaBoxPlanner-c3688dbb.js} +20 -38
- package/build/esm/{DivaStandardPlanner-1dc77e9f.js → DivaStandardPlanner-5908d45b.js} +2 -2
- package/build/esm/{DoorPlanner-fc830db8.js → DoorPlanner-63d43d9b.js} +1 -1
- package/build/esm/{Host3DSignalR-1cf0e485.js → Host3DSignalR-e0fd5c5e.js} +1 -1
- package/build/esm/{LiviqueWWSHandler-3556392d.js → LiviqueWWSHandler-aa489385.js} +1 -1
- package/build/esm/{PfisterWWSHandler-08cfb97d.js → PfisterWWSHandler-88f3bc2f.js} +1 -1
- package/build/esm/{PlannerHandler2D-1b88037c.js → PlannerHandler2D-43910df5.js} +1 -1
- package/build/esm/{SeriousBasketHandler-643b5138.js → SeriousBasketHandler-6a8f0e2d.js} +1 -1
- package/build/esm/{ShelfPlanner-ae6c07bc.js → ShelfPlanner-e548f714.js} +1 -1
- package/build/esm/{StandardWWSHandler-0803942d.js → StandardWWSHandler-f2e16ec1.js} +1 -1
- package/build/esm/{index-8ca3060a.js → index-14f79ee4.js} +9 -9
- package/build/esm/index.js +1 -1
- package/build/types/web-planner-logic/src/logic/Planner/BoxPlanner/BoxPlannerGrid.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -5,10 +5,10 @@ var _classCallCheck = require('@babel/runtime/helpers/classCallCheck');
|
|
|
5
5
|
var _createClass = require('@babel/runtime/helpers/createClass');
|
|
6
6
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
7
7
|
var _regeneratorRuntime = require('@babel/runtime/regenerator');
|
|
8
|
-
var index = require('./index-
|
|
8
|
+
var index = require('./index-f1a70eb3.js');
|
|
9
9
|
var DivaUtils = require('@crystaldesign/diva-utils');
|
|
10
10
|
var _toConsumableArray = require('@babel/runtime/helpers/toConsumableArray');
|
|
11
|
-
var PlannerHandler2D = require('./PlannerHandler2D-
|
|
11
|
+
var PlannerHandler2D = require('./PlannerHandler2D-2f00b260.js');
|
|
12
12
|
require('@babel/runtime/helpers/slicedToArray');
|
|
13
13
|
require('@babel/runtime/helpers/objectWithoutProperties');
|
|
14
14
|
require('axios');
|
|
@@ -4022,41 +4022,23 @@ var BoxPlannerGrid = /*#__PURE__*/function () {
|
|
|
4022
4022
|
}, {
|
|
4023
4023
|
key: "getNeighborElements",
|
|
4024
4024
|
value: function getNeighborElements(elementId, dir) {
|
|
4025
|
-
var _curGrid$area$fromX, _topNeighbour$planned, _curGrid$area$fromX2, _downNeighbour$planne;
|
|
4025
|
+
var _curGrid$area$toX, _curGrid$area$toX2, _curGrid2, _curGrid3, _curGrid$area$fromX, _topNeighbour$planned, _curGrid$area$fromX2, _downNeighbour$planne;
|
|
4026
4026
|
var res = this.getCellsInGridByElementId(elementId);
|
|
4027
4027
|
var curGrid = res.backside ? this.generalPlanningState.grids[1].matrix : this.generalPlanningState.grids[0].matrix;
|
|
4028
4028
|
var result = [];
|
|
4029
4029
|
var plannedElement = res.cells[0].plannedElement;
|
|
4030
4030
|
if (!plannedElement) return result;
|
|
4031
|
-
var currentRow = curGrid[plannedElement.area.fromX];
|
|
4032
|
-
var startHeight = 0;
|
|
4033
|
-
currentRow.forEach(function (cell) {
|
|
4034
|
-
if (cell.index.y < res.startRowIndex) startHeight = Math.round((startHeight + cell.plannedElement.size.height) * 1000);
|
|
4035
|
-
});
|
|
4036
4031
|
switch (dir) {
|
|
4037
4032
|
case 'RIGHT':
|
|
4038
4033
|
// only clean neighbours (for docking) add property if you also need clean ones
|
|
4039
|
-
|
|
4040
|
-
var
|
|
4041
|
-
if (
|
|
4042
|
-
var neighbourSize = 0;
|
|
4043
|
-
var startElement = neighbourRow.find(function (cell) {
|
|
4044
|
-
if (neighbourSize == startHeight) return true;
|
|
4045
|
-
neighbourSize = Math.round((neighbourSize + cell.plannedElement.size.height) * 1000);
|
|
4046
|
-
return false;
|
|
4047
|
-
});
|
|
4048
|
-
if (startElement) result.push(this.plannerElements.get(startElement.plannedElement.elementId));
|
|
4034
|
+
var rLowestNeighbour = (_curGrid$area$toX = curGrid[plannedElement.area.toX]) === null || _curGrid$area$toX === void 0 || (_curGrid$area$toX = _curGrid$area$toX[plannedElement.area.fromY]) === null || _curGrid$area$toX === void 0 || (_curGrid$area$toX = _curGrid$area$toX.plannedElement) === null || _curGrid$area$toX === void 0 ? void 0 : _curGrid$area$toX.elementId;
|
|
4035
|
+
var rHighestNeighbour = (_curGrid$area$toX2 = curGrid[plannedElement.area.toX]) === null || _curGrid$area$toX2 === void 0 || (_curGrid$area$toX2 = _curGrid$area$toX2[plannedElement.area.toY - 1]) === null || _curGrid$area$toX2 === void 0 || (_curGrid$area$toX2 = _curGrid$area$toX2.plannedElement) === null || _curGrid$area$toX2 === void 0 ? void 0 : _curGrid$area$toX2.elementId;
|
|
4036
|
+
if (rLowestNeighbour == rHighestNeighbour && rLowestNeighbour) result.push(this.plannerElements.get(rLowestNeighbour));
|
|
4049
4037
|
break;
|
|
4050
4038
|
case 'LEFT':
|
|
4051
|
-
var
|
|
4052
|
-
|
|
4053
|
-
|
|
4054
|
-
var leftStartElement = leftNeighbourRow.find(function (cell) {
|
|
4055
|
-
if (leftNeighbourSize == startHeight) return true;
|
|
4056
|
-
leftNeighbourSize = Math.round((leftNeighbourSize + cell.plannedElement.size.height) * 1000);
|
|
4057
|
-
return false;
|
|
4058
|
-
});
|
|
4059
|
-
if (leftStartElement) result.push(this.plannerElements.get(leftStartElement.plannedElement.elementId));
|
|
4039
|
+
var lowestNeighbour = (_curGrid2 = curGrid[plannedElement.area.fromX - 1]) === null || _curGrid2 === void 0 || (_curGrid2 = _curGrid2[plannedElement.area.fromY]) === null || _curGrid2 === void 0 || (_curGrid2 = _curGrid2.plannedElement) === null || _curGrid2 === void 0 ? void 0 : _curGrid2.elementId;
|
|
4040
|
+
var highestNeighbour = (_curGrid3 = curGrid[plannedElement.area.fromX - 1]) === null || _curGrid3 === void 0 || (_curGrid3 = _curGrid3[plannedElement.area.toY - 1]) === null || _curGrid3 === void 0 || (_curGrid3 = _curGrid3.plannedElement) === null || _curGrid3 === void 0 ? void 0 : _curGrid3.elementId;
|
|
4041
|
+
if (lowestNeighbour == highestNeighbour && lowestNeighbour) result.push(this.plannerElements.get(lowestNeighbour));
|
|
4060
4042
|
break;
|
|
4061
4043
|
case 'TOP':
|
|
4062
4044
|
var topNeighbour = (_curGrid$area$fromX = curGrid[plannedElement.area.fromX]) === null || _curGrid$area$fromX === void 0 ? void 0 : _curGrid$area$fromX[plannedElement.area.toY];
|
|
@@ -4439,9 +4421,10 @@ var BoxPlannerGrid = /*#__PURE__*/function () {
|
|
|
4439
4421
|
this.deleteElement(elementId, "STD");
|
|
4440
4422
|
var curGrid = this.generalPlanningState.grids[0].matrix;
|
|
4441
4423
|
var cells = undefined;
|
|
4442
|
-
if (absoluteIndex.x < 0
|
|
4424
|
+
if (absoluteIndex.x < 0 || absoluteIndex.y == 0 && deletedCells.endRowIndex >= absoluteIndex.x // moved 0 to 4 so now shift to left
|
|
4425
|
+
) {
|
|
4443
4426
|
var dir = deletedCells.endColIndex >= absoluteIndex.x;
|
|
4444
|
-
if (deletedCells.startColIndex
|
|
4427
|
+
if (deletedCells.startColIndex >= absoluteIndex.x) absoluteIndex.x -= deletedCells.endColIndex - deletedCells.startColIndex;
|
|
4445
4428
|
if (absoluteIndex.x < 0) absoluteIndex.x = 0;
|
|
4446
4429
|
cells = this.createNewCells(elementData, absoluteIndex.x, absoluteIndex.y, false);
|
|
4447
4430
|
var movedGrid = [];
|
|
@@ -4450,8 +4433,10 @@ var BoxPlannerGrid = /*#__PURE__*/function () {
|
|
|
4450
4433
|
_.forEach(function (_, y) {
|
|
4451
4434
|
var newX = x;
|
|
4452
4435
|
var shiftX = 0;
|
|
4453
|
-
|
|
4454
|
-
|
|
4436
|
+
if (y == absoluteIndex.y) {
|
|
4437
|
+
newX += dir ? element.area.toX - element.area.fromX : -(element.area.toX - element.area.fromX);
|
|
4438
|
+
shiftX = dir ? element.area.toX - element.area.fromX : -(element.area.toX - element.area.fromX);
|
|
4439
|
+
}
|
|
4455
4440
|
if (!movedGrid[newX]) movedGrid[newX] = [];
|
|
4456
4441
|
var cellElem = curGrid[x][y].plannedElement;
|
|
4457
4442
|
var newCell = {
|
|
@@ -4473,7 +4458,7 @@ var BoxPlannerGrid = /*#__PURE__*/function () {
|
|
|
4473
4458
|
});
|
|
4474
4459
|
curGrid = movedGrid;
|
|
4475
4460
|
} else {
|
|
4476
|
-
if (
|
|
4461
|
+
if (absoluteIndex.x > deletedCells.startColIndex && absoluteIndex.y == deletedCells.startRowIndex) absoluteIndex.x -= deletedCells.endColIndex - deletedCells.startColIndex;
|
|
4477
4462
|
cells = this.createNewCells(elementData, absoluteIndex.x, absoluteIndex.y, false);
|
|
4478
4463
|
}
|
|
4479
4464
|
for (var i = 0; i < cells.length; i++) {
|
|
@@ -5121,7 +5106,7 @@ var BoxPlannerGrid = /*#__PURE__*/function () {
|
|
|
5121
5106
|
var _ele2, _ele3;
|
|
5122
5107
|
var movables = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
5123
5108
|
var selectedElementId = arguments.length > 1 ? arguments[1] : undefined;
|
|
5124
|
-
if (!movables
|
|
5109
|
+
if (!movables) return this.generalPlanningState;
|
|
5125
5110
|
// fill to equal size
|
|
5126
5111
|
var matrix = this.generalPlanningState.grids[0].matrix;
|
|
5127
5112
|
var matrixWithMovables = [];
|
|
@@ -5168,9 +5153,6 @@ var BoxPlannerGrid = /*#__PURE__*/function () {
|
|
|
5168
5153
|
isSupport = !!matrix.find(function (x, idx) {
|
|
5169
5154
|
return idx >= ele.area.fromX && idx < ele.area.toX && matrix[idx].length > ele.area.toY;
|
|
5170
5155
|
}); // can't move if there is anything above these cells
|
|
5171
|
-
|
|
5172
|
-
// if it has left and right neighbour and is on the bottom
|
|
5173
|
-
if (ele.area.fromX == 0 && this.getNeighborElements(ele.elementId, 'LEFT').length > 0 && this.getNeighborElements(ele.elementId, 'RIGHT').length > 0) isSupport = true;
|
|
5174
5156
|
}
|
|
5175
5157
|
if (isSupport) return this.generalPlanningState;
|
|
5176
5158
|
for (var x = 0; x < maxWidth; x++) {
|
|
@@ -5191,7 +5173,7 @@ var BoxPlannerGrid = /*#__PURE__*/function () {
|
|
|
5191
5173
|
if (x >= from && x < to) return;
|
|
5192
5174
|
var row = matrixWithMovables[x];
|
|
5193
5175
|
var len = row.length;
|
|
5194
|
-
var _x = ele.
|
|
5176
|
+
var _x = ele.fromX == 0 ? x : x - 1;
|
|
5195
5177
|
row[len] = {
|
|
5196
5178
|
index: {
|
|
5197
5179
|
x: _x,
|
|
@@ -5204,7 +5186,7 @@ var BoxPlannerGrid = /*#__PURE__*/function () {
|
|
|
5204
5186
|
var len = matrixWithMovables.length;
|
|
5205
5187
|
if (((_ele2 = ele) === null || _ele2 === void 0 ? void 0 : _ele2.area.toX) != matrix.length) matrixWithMovables[len] = [{
|
|
5206
5188
|
index: {
|
|
5207
|
-
x: ele.
|
|
5189
|
+
x: ele.fromX == 0 ? len : len - 1,
|
|
5208
5190
|
y: 0
|
|
5209
5191
|
}
|
|
5210
5192
|
}];
|
|
@@ -5,9 +5,9 @@ var _classCallCheck = require('@babel/runtime/helpers/classCallCheck');
|
|
|
5
5
|
var _createClass = require('@babel/runtime/helpers/createClass');
|
|
6
6
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
7
7
|
var _regeneratorRuntime = require('@babel/runtime/regenerator');
|
|
8
|
-
var index = require('./index-
|
|
8
|
+
var index = require('./index-f1a70eb3.js');
|
|
9
9
|
var DivaUtils = require('@crystaldesign/diva-utils');
|
|
10
|
-
var PlannerHandler2D = require('./PlannerHandler2D-
|
|
10
|
+
var PlannerHandler2D = require('./PlannerHandler2D-2f00b260.js');
|
|
11
11
|
require('@babel/runtime/helpers/slicedToArray');
|
|
12
12
|
require('@babel/runtime/helpers/objectWithoutProperties');
|
|
13
13
|
require('@babel/runtime/helpers/toConsumableArray');
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _classCallCheck = require('@babel/runtime/helpers/classCallCheck');
|
|
4
4
|
var _createClass = require('@babel/runtime/helpers/createClass');
|
|
5
5
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
6
|
-
require('./index-
|
|
6
|
+
require('./index-f1a70eb3.js');
|
|
7
7
|
var DivaUtils = require('@crystaldesign/diva-utils');
|
|
8
8
|
require('@babel/runtime/helpers/slicedToArray');
|
|
9
9
|
require('@babel/runtime/helpers/asyncToGenerator');
|
|
@@ -5,7 +5,7 @@ var _classCallCheck = require('@babel/runtime/helpers/classCallCheck');
|
|
|
5
5
|
var _createClass = require('@babel/runtime/helpers/createClass');
|
|
6
6
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
7
7
|
var _regeneratorRuntime = require('@babel/runtime/regenerator');
|
|
8
|
-
var index = require('./index-
|
|
8
|
+
var index = require('./index-f1a70eb3.js');
|
|
9
9
|
var DivaUtils = require('@crystaldesign/diva-utils');
|
|
10
10
|
var signalr = require('@microsoft/signalr');
|
|
11
11
|
var io = require('socket.io-client');
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var _classCallCheck = require('@babel/runtime/helpers/classCallCheck');
|
|
4
4
|
var _createClass = require('@babel/runtime/helpers/createClass');
|
|
5
|
-
require('./index-
|
|
5
|
+
require('./index-f1a70eb3.js');
|
|
6
6
|
require('@babel/runtime/helpers/slicedToArray');
|
|
7
7
|
require('@babel/runtime/helpers/asyncToGenerator');
|
|
8
8
|
require('@babel/runtime/helpers/defineProperty');
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var _classCallCheck = require('@babel/runtime/helpers/classCallCheck');
|
|
4
4
|
var _createClass = require('@babel/runtime/helpers/createClass');
|
|
5
|
-
var index = require('./index-
|
|
5
|
+
var index = require('./index-f1a70eb3.js');
|
|
6
6
|
var basketModel = require('@crystaldesign/basket-model');
|
|
7
7
|
var DivaUtils = require('@crystaldesign/diva-utils');
|
|
8
8
|
require('@babel/runtime/helpers/slicedToArray');
|
|
@@ -5,7 +5,7 @@ var _classCallCheck = require('@babel/runtime/helpers/classCallCheck');
|
|
|
5
5
|
var _createClass = require('@babel/runtime/helpers/createClass');
|
|
6
6
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
7
7
|
var _regeneratorRuntime = require('@babel/runtime/regenerator');
|
|
8
|
-
var index = require('./index-
|
|
8
|
+
var index = require('./index-f1a70eb3.js');
|
|
9
9
|
var _toConsumableArray = require('@babel/runtime/helpers/toConsumableArray');
|
|
10
10
|
var fabric = require('fabric');
|
|
11
11
|
var DivaUtils = require('@crystaldesign/diva-utils');
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _classCallCheck = require('@babel/runtime/helpers/classCallCheck');
|
|
4
4
|
var _createClass = require('@babel/runtime/helpers/createClass');
|
|
5
5
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-f1a70eb3.js');
|
|
7
7
|
var DivaUtils = require('@crystaldesign/diva-utils');
|
|
8
8
|
require('@babel/runtime/helpers/slicedToArray');
|
|
9
9
|
require('@babel/runtime/helpers/asyncToGenerator');
|
|
@@ -6,7 +6,7 @@ var _classCallCheck = require('@babel/runtime/helpers/classCallCheck');
|
|
|
6
6
|
var _createClass = require('@babel/runtime/helpers/createClass');
|
|
7
7
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
8
8
|
var _regeneratorRuntime = require('@babel/runtime/regenerator');
|
|
9
|
-
var index = require('./index-
|
|
9
|
+
var index = require('./index-f1a70eb3.js');
|
|
10
10
|
var DivaUtils = require('@crystaldesign/diva-utils');
|
|
11
11
|
require('@babel/runtime/helpers/slicedToArray');
|
|
12
12
|
require('@babel/runtime/helpers/objectWithoutProperties');
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var _classCallCheck = require('@babel/runtime/helpers/classCallCheck');
|
|
4
4
|
var _createClass = require('@babel/runtime/helpers/createClass');
|
|
5
|
-
require('./index-
|
|
5
|
+
require('./index-f1a70eb3.js');
|
|
6
6
|
require('@babel/runtime/helpers/slicedToArray');
|
|
7
7
|
require('@babel/runtime/helpers/asyncToGenerator');
|
|
8
8
|
require('@babel/runtime/helpers/defineProperty');
|
|
@@ -28699,7 +28699,7 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
28699
28699
|
break;
|
|
28700
28700
|
}
|
|
28701
28701
|
_context.next = 4;
|
|
28702
|
-
return Promise.resolve().then(function () { return require('./ShelfPlanner-
|
|
28702
|
+
return Promise.resolve().then(function () { return require('./ShelfPlanner-613aae50.js'); });
|
|
28703
28703
|
case 4:
|
|
28704
28704
|
_yield$import = _context.sent;
|
|
28705
28705
|
ShelfPlanner = _yield$import["default"];
|
|
@@ -33345,7 +33345,7 @@ var DivaSet = /*#__PURE__*/function () {
|
|
|
33345
33345
|
break;
|
|
33346
33346
|
}
|
|
33347
33347
|
_context5.next = 3;
|
|
33348
|
-
return Promise.resolve().then(function () { return require('./DoorPlanner-
|
|
33348
|
+
return Promise.resolve().then(function () { return require('./DoorPlanner-b5c5993b.js'); });
|
|
33349
33349
|
case 3:
|
|
33350
33350
|
_yield$import = _context5.sent;
|
|
33351
33351
|
DoorPlanner = _yield$import["default"];
|
|
@@ -40518,7 +40518,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
40518
40518
|
break;
|
|
40519
40519
|
case 3:
|
|
40520
40520
|
_context12.next = 5;
|
|
40521
|
-
return Promise.resolve().then(function () { return require('./PfisterWWSHandler-
|
|
40521
|
+
return Promise.resolve().then(function () { return require('./PfisterWWSHandler-c15ee67a.js'); });
|
|
40522
40522
|
case 5:
|
|
40523
40523
|
_yield$import = _context12.sent;
|
|
40524
40524
|
PfisterWWSHandler = _yield$import["default"];
|
|
@@ -40526,7 +40526,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
40526
40526
|
return _context12.abrupt("break", 27);
|
|
40527
40527
|
case 9:
|
|
40528
40528
|
_context12.next = 11;
|
|
40529
|
-
return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-
|
|
40529
|
+
return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-69df31a9.js'); });
|
|
40530
40530
|
case 11:
|
|
40531
40531
|
_yield$import2 = _context12.sent;
|
|
40532
40532
|
LiviqueWWSHandler = _yield$import2["default"];
|
|
@@ -40534,7 +40534,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
40534
40534
|
return _context12.abrupt("break", 27);
|
|
40535
40535
|
case 15:
|
|
40536
40536
|
_context12.next = 17;
|
|
40537
|
-
return Promise.resolve().then(function () { return require('./SeriousBasketHandler-
|
|
40537
|
+
return Promise.resolve().then(function () { return require('./SeriousBasketHandler-f2a7887a.js'); });
|
|
40538
40538
|
case 17:
|
|
40539
40539
|
_yield$import3 = _context12.sent;
|
|
40540
40540
|
SeriousWWSHandler = _yield$import3["default"];
|
|
@@ -40542,7 +40542,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
40542
40542
|
return _context12.abrupt("break", 27);
|
|
40543
40543
|
case 21:
|
|
40544
40544
|
_context12.next = 23;
|
|
40545
|
-
return Promise.resolve().then(function () { return require('./StandardWWSHandler-
|
|
40545
|
+
return Promise.resolve().then(function () { return require('./StandardWWSHandler-71564218.js'); });
|
|
40546
40546
|
case 23:
|
|
40547
40547
|
_yield$import4 = _context12.sent;
|
|
40548
40548
|
StandardWWSHandler = _yield$import4["default"];
|
|
@@ -41966,7 +41966,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
41966
41966
|
while (1) switch (_context3.prev = _context3.next) {
|
|
41967
41967
|
case 0:
|
|
41968
41968
|
_context3.next = 2;
|
|
41969
|
-
return Promise.resolve().then(function () { return require('./Host3DSignalR-
|
|
41969
|
+
return Promise.resolve().then(function () { return require('./Host3DSignalR-6bbb3036.js'); });
|
|
41970
41970
|
case 2:
|
|
41971
41971
|
_yield$import = _context3.sent;
|
|
41972
41972
|
Host3DSignalR = _yield$import["default"];
|
|
@@ -43624,7 +43624,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
43624
43624
|
break;
|
|
43625
43625
|
case 8:
|
|
43626
43626
|
_context4.next = 10;
|
|
43627
|
-
return Promise.resolve().then(function () { return require('./DivaStandardPlanner-
|
|
43627
|
+
return Promise.resolve().then(function () { return require('./DivaStandardPlanner-816f7344.js'); });
|
|
43628
43628
|
case 10:
|
|
43629
43629
|
_yield$import = _context4.sent;
|
|
43630
43630
|
DivaStandardPlanner = _yield$import["default"];
|
|
@@ -43635,7 +43635,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
43635
43635
|
return _context4.abrupt("break", 21);
|
|
43636
43636
|
case 15:
|
|
43637
43637
|
_context4.next = 17;
|
|
43638
|
-
return Promise.resolve().then(function () { return require('./DivaBoxPlanner-
|
|
43638
|
+
return Promise.resolve().then(function () { return require('./DivaBoxPlanner-1b90896a.js'); });
|
|
43639
43639
|
case 17:
|
|
43640
43640
|
_yield$import2 = _context4.sent;
|
|
43641
43641
|
DivaBoxPlanner = _yield$import2["default"];
|
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-f1a70eb3.js');
|
|
6
6
|
require('@babel/runtime/helpers/slicedToArray');
|
|
7
7
|
require('@babel/runtime/helpers/asyncToGenerator');
|
|
8
8
|
require('@babel/runtime/helpers/classCallCheck');
|
|
@@ -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 { c as Vector2, V as Vector3, P as PlannerElementData, B as BoundingBox } from './index-
|
|
6
|
+
import { c as Vector2, V as Vector3, P as PlannerElementData, B as BoundingBox } from './index-14f79ee4.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, h as handler2D } from './PlannerHandler2D-
|
|
9
|
+
import { d as dockingPointHandlerInst, h as handler2D } from './PlannerHandler2D-43910df5.js';
|
|
10
10
|
import '@babel/runtime/helpers/slicedToArray';
|
|
11
11
|
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
12
12
|
import 'axios';
|
|
@@ -4010,41 +4010,23 @@ var BoxPlannerGrid = /*#__PURE__*/function () {
|
|
|
4010
4010
|
}, {
|
|
4011
4011
|
key: "getNeighborElements",
|
|
4012
4012
|
value: function getNeighborElements(elementId, dir) {
|
|
4013
|
-
var _curGrid$area$fromX, _topNeighbour$planned, _curGrid$area$fromX2, _downNeighbour$planne;
|
|
4013
|
+
var _curGrid$area$toX, _curGrid$area$toX2, _curGrid2, _curGrid3, _curGrid$area$fromX, _topNeighbour$planned, _curGrid$area$fromX2, _downNeighbour$planne;
|
|
4014
4014
|
var res = this.getCellsInGridByElementId(elementId);
|
|
4015
4015
|
var curGrid = res.backside ? this.generalPlanningState.grids[1].matrix : this.generalPlanningState.grids[0].matrix;
|
|
4016
4016
|
var result = [];
|
|
4017
4017
|
var plannedElement = res.cells[0].plannedElement;
|
|
4018
4018
|
if (!plannedElement) return result;
|
|
4019
|
-
var currentRow = curGrid[plannedElement.area.fromX];
|
|
4020
|
-
var startHeight = 0;
|
|
4021
|
-
currentRow.forEach(function (cell) {
|
|
4022
|
-
if (cell.index.y < res.startRowIndex) startHeight = Math.round((startHeight + cell.plannedElement.size.height) * 1000);
|
|
4023
|
-
});
|
|
4024
4019
|
switch (dir) {
|
|
4025
4020
|
case 'RIGHT':
|
|
4026
4021
|
// only clean neighbours (for docking) add property if you also need clean ones
|
|
4027
|
-
|
|
4028
|
-
var
|
|
4029
|
-
if (
|
|
4030
|
-
var neighbourSize = 0;
|
|
4031
|
-
var startElement = neighbourRow.find(function (cell) {
|
|
4032
|
-
if (neighbourSize == startHeight) return true;
|
|
4033
|
-
neighbourSize = Math.round((neighbourSize + cell.plannedElement.size.height) * 1000);
|
|
4034
|
-
return false;
|
|
4035
|
-
});
|
|
4036
|
-
if (startElement) result.push(this.plannerElements.get(startElement.plannedElement.elementId));
|
|
4022
|
+
var rLowestNeighbour = (_curGrid$area$toX = curGrid[plannedElement.area.toX]) === null || _curGrid$area$toX === void 0 || (_curGrid$area$toX = _curGrid$area$toX[plannedElement.area.fromY]) === null || _curGrid$area$toX === void 0 || (_curGrid$area$toX = _curGrid$area$toX.plannedElement) === null || _curGrid$area$toX === void 0 ? void 0 : _curGrid$area$toX.elementId;
|
|
4023
|
+
var rHighestNeighbour = (_curGrid$area$toX2 = curGrid[plannedElement.area.toX]) === null || _curGrid$area$toX2 === void 0 || (_curGrid$area$toX2 = _curGrid$area$toX2[plannedElement.area.toY - 1]) === null || _curGrid$area$toX2 === void 0 || (_curGrid$area$toX2 = _curGrid$area$toX2.plannedElement) === null || _curGrid$area$toX2 === void 0 ? void 0 : _curGrid$area$toX2.elementId;
|
|
4024
|
+
if (rLowestNeighbour == rHighestNeighbour && rLowestNeighbour) result.push(this.plannerElements.get(rLowestNeighbour));
|
|
4037
4025
|
break;
|
|
4038
4026
|
case 'LEFT':
|
|
4039
|
-
var
|
|
4040
|
-
|
|
4041
|
-
|
|
4042
|
-
var leftStartElement = leftNeighbourRow.find(function (cell) {
|
|
4043
|
-
if (leftNeighbourSize == startHeight) return true;
|
|
4044
|
-
leftNeighbourSize = Math.round((leftNeighbourSize + cell.plannedElement.size.height) * 1000);
|
|
4045
|
-
return false;
|
|
4046
|
-
});
|
|
4047
|
-
if (leftStartElement) result.push(this.plannerElements.get(leftStartElement.plannedElement.elementId));
|
|
4027
|
+
var lowestNeighbour = (_curGrid2 = curGrid[plannedElement.area.fromX - 1]) === null || _curGrid2 === void 0 || (_curGrid2 = _curGrid2[plannedElement.area.fromY]) === null || _curGrid2 === void 0 || (_curGrid2 = _curGrid2.plannedElement) === null || _curGrid2 === void 0 ? void 0 : _curGrid2.elementId;
|
|
4028
|
+
var highestNeighbour = (_curGrid3 = curGrid[plannedElement.area.fromX - 1]) === null || _curGrid3 === void 0 || (_curGrid3 = _curGrid3[plannedElement.area.toY - 1]) === null || _curGrid3 === void 0 || (_curGrid3 = _curGrid3.plannedElement) === null || _curGrid3 === void 0 ? void 0 : _curGrid3.elementId;
|
|
4029
|
+
if (lowestNeighbour == highestNeighbour && lowestNeighbour) result.push(this.plannerElements.get(lowestNeighbour));
|
|
4048
4030
|
break;
|
|
4049
4031
|
case 'TOP':
|
|
4050
4032
|
var topNeighbour = (_curGrid$area$fromX = curGrid[plannedElement.area.fromX]) === null || _curGrid$area$fromX === void 0 ? void 0 : _curGrid$area$fromX[plannedElement.area.toY];
|
|
@@ -4427,9 +4409,10 @@ var BoxPlannerGrid = /*#__PURE__*/function () {
|
|
|
4427
4409
|
this.deleteElement(elementId, "STD");
|
|
4428
4410
|
var curGrid = this.generalPlanningState.grids[0].matrix;
|
|
4429
4411
|
var cells = undefined;
|
|
4430
|
-
if (absoluteIndex.x < 0
|
|
4412
|
+
if (absoluteIndex.x < 0 || absoluteIndex.y == 0 && deletedCells.endRowIndex >= absoluteIndex.x // moved 0 to 4 so now shift to left
|
|
4413
|
+
) {
|
|
4431
4414
|
var dir = deletedCells.endColIndex >= absoluteIndex.x;
|
|
4432
|
-
if (deletedCells.startColIndex
|
|
4415
|
+
if (deletedCells.startColIndex >= absoluteIndex.x) absoluteIndex.x -= deletedCells.endColIndex - deletedCells.startColIndex;
|
|
4433
4416
|
if (absoluteIndex.x < 0) absoluteIndex.x = 0;
|
|
4434
4417
|
cells = this.createNewCells(elementData, absoluteIndex.x, absoluteIndex.y, false);
|
|
4435
4418
|
var movedGrid = [];
|
|
@@ -4438,8 +4421,10 @@ var BoxPlannerGrid = /*#__PURE__*/function () {
|
|
|
4438
4421
|
_.forEach(function (_, y) {
|
|
4439
4422
|
var newX = x;
|
|
4440
4423
|
var shiftX = 0;
|
|
4441
|
-
|
|
4442
|
-
|
|
4424
|
+
if (y == absoluteIndex.y) {
|
|
4425
|
+
newX += dir ? element.area.toX - element.area.fromX : -(element.area.toX - element.area.fromX);
|
|
4426
|
+
shiftX = dir ? element.area.toX - element.area.fromX : -(element.area.toX - element.area.fromX);
|
|
4427
|
+
}
|
|
4443
4428
|
if (!movedGrid[newX]) movedGrid[newX] = [];
|
|
4444
4429
|
var cellElem = curGrid[x][y].plannedElement;
|
|
4445
4430
|
var newCell = {
|
|
@@ -4461,7 +4446,7 @@ var BoxPlannerGrid = /*#__PURE__*/function () {
|
|
|
4461
4446
|
});
|
|
4462
4447
|
curGrid = movedGrid;
|
|
4463
4448
|
} else {
|
|
4464
|
-
if (
|
|
4449
|
+
if (absoluteIndex.x > deletedCells.startColIndex && absoluteIndex.y == deletedCells.startRowIndex) absoluteIndex.x -= deletedCells.endColIndex - deletedCells.startColIndex;
|
|
4465
4450
|
cells = this.createNewCells(elementData, absoluteIndex.x, absoluteIndex.y, false);
|
|
4466
4451
|
}
|
|
4467
4452
|
for (var i = 0; i < cells.length; i++) {
|
|
@@ -5109,7 +5094,7 @@ var BoxPlannerGrid = /*#__PURE__*/function () {
|
|
|
5109
5094
|
var _ele2, _ele3;
|
|
5110
5095
|
var movables = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
5111
5096
|
var selectedElementId = arguments.length > 1 ? arguments[1] : undefined;
|
|
5112
|
-
if (!movables
|
|
5097
|
+
if (!movables) return this.generalPlanningState;
|
|
5113
5098
|
// fill to equal size
|
|
5114
5099
|
var matrix = this.generalPlanningState.grids[0].matrix;
|
|
5115
5100
|
var matrixWithMovables = [];
|
|
@@ -5156,9 +5141,6 @@ var BoxPlannerGrid = /*#__PURE__*/function () {
|
|
|
5156
5141
|
isSupport = !!matrix.find(function (x, idx) {
|
|
5157
5142
|
return idx >= ele.area.fromX && idx < ele.area.toX && matrix[idx].length > ele.area.toY;
|
|
5158
5143
|
}); // can't move if there is anything above these cells
|
|
5159
|
-
|
|
5160
|
-
// if it has left and right neighbour and is on the bottom
|
|
5161
|
-
if (ele.area.fromX == 0 && this.getNeighborElements(ele.elementId, 'LEFT').length > 0 && this.getNeighborElements(ele.elementId, 'RIGHT').length > 0) isSupport = true;
|
|
5162
5144
|
}
|
|
5163
5145
|
if (isSupport) return this.generalPlanningState;
|
|
5164
5146
|
for (var x = 0; x < maxWidth; x++) {
|
|
@@ -5179,7 +5161,7 @@ var BoxPlannerGrid = /*#__PURE__*/function () {
|
|
|
5179
5161
|
if (x >= from && x < to) return;
|
|
5180
5162
|
var row = matrixWithMovables[x];
|
|
5181
5163
|
var len = row.length;
|
|
5182
|
-
var _x = ele.
|
|
5164
|
+
var _x = ele.fromX == 0 ? x : x - 1;
|
|
5183
5165
|
row[len] = {
|
|
5184
5166
|
index: {
|
|
5185
5167
|
x: _x,
|
|
@@ -5192,7 +5174,7 @@ var BoxPlannerGrid = /*#__PURE__*/function () {
|
|
|
5192
5174
|
var len = matrixWithMovables.length;
|
|
5193
5175
|
if (((_ele2 = ele) === null || _ele2 === void 0 ? void 0 : _ele2.area.toX) != matrix.length) matrixWithMovables[len] = [{
|
|
5194
5176
|
index: {
|
|
5195
|
-
x: ele.
|
|
5177
|
+
x: ele.fromX == 0 ? len : len - 1,
|
|
5196
5178
|
y: 0
|
|
5197
5179
|
}
|
|
5198
5180
|
}];
|
|
@@ -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-14f79ee4.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-43910df5.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-
|
|
4
|
+
import './index-14f79ee4.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-14f79ee4.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-14f79ee4.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-14f79ee4.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-14f79ee4.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-14f79ee4.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-14f79ee4.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-14f79ee4.js';
|
|
4
4
|
import '@babel/runtime/helpers/slicedToArray';
|
|
5
5
|
import '@babel/runtime/helpers/asyncToGenerator';
|
|
6
6
|
import '@babel/runtime/helpers/defineProperty';
|
|
@@ -28682,7 +28682,7 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
28682
28682
|
break;
|
|
28683
28683
|
}
|
|
28684
28684
|
_context.next = 4;
|
|
28685
|
-
return import('./ShelfPlanner-
|
|
28685
|
+
return import('./ShelfPlanner-e548f714.js');
|
|
28686
28686
|
case 4:
|
|
28687
28687
|
_yield$import = _context.sent;
|
|
28688
28688
|
ShelfPlanner = _yield$import["default"];
|
|
@@ -33328,7 +33328,7 @@ var DivaSet = /*#__PURE__*/function () {
|
|
|
33328
33328
|
break;
|
|
33329
33329
|
}
|
|
33330
33330
|
_context5.next = 3;
|
|
33331
|
-
return import('./DoorPlanner-
|
|
33331
|
+
return import('./DoorPlanner-63d43d9b.js');
|
|
33332
33332
|
case 3:
|
|
33333
33333
|
_yield$import = _context5.sent;
|
|
33334
33334
|
DoorPlanner = _yield$import["default"];
|
|
@@ -40501,7 +40501,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
40501
40501
|
break;
|
|
40502
40502
|
case 3:
|
|
40503
40503
|
_context12.next = 5;
|
|
40504
|
-
return import('./PfisterWWSHandler-
|
|
40504
|
+
return import('./PfisterWWSHandler-88f3bc2f.js');
|
|
40505
40505
|
case 5:
|
|
40506
40506
|
_yield$import = _context12.sent;
|
|
40507
40507
|
PfisterWWSHandler = _yield$import["default"];
|
|
@@ -40509,7 +40509,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
40509
40509
|
return _context12.abrupt("break", 27);
|
|
40510
40510
|
case 9:
|
|
40511
40511
|
_context12.next = 11;
|
|
40512
|
-
return import('./LiviqueWWSHandler-
|
|
40512
|
+
return import('./LiviqueWWSHandler-aa489385.js');
|
|
40513
40513
|
case 11:
|
|
40514
40514
|
_yield$import2 = _context12.sent;
|
|
40515
40515
|
LiviqueWWSHandler = _yield$import2["default"];
|
|
@@ -40517,7 +40517,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
40517
40517
|
return _context12.abrupt("break", 27);
|
|
40518
40518
|
case 15:
|
|
40519
40519
|
_context12.next = 17;
|
|
40520
|
-
return import('./SeriousBasketHandler-
|
|
40520
|
+
return import('./SeriousBasketHandler-6a8f0e2d.js');
|
|
40521
40521
|
case 17:
|
|
40522
40522
|
_yield$import3 = _context12.sent;
|
|
40523
40523
|
SeriousWWSHandler = _yield$import3["default"];
|
|
@@ -40525,7 +40525,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
40525
40525
|
return _context12.abrupt("break", 27);
|
|
40526
40526
|
case 21:
|
|
40527
40527
|
_context12.next = 23;
|
|
40528
|
-
return import('./StandardWWSHandler-
|
|
40528
|
+
return import('./StandardWWSHandler-f2e16ec1.js');
|
|
40529
40529
|
case 23:
|
|
40530
40530
|
_yield$import4 = _context12.sent;
|
|
40531
40531
|
StandardWWSHandler = _yield$import4["default"];
|
|
@@ -41949,7 +41949,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
41949
41949
|
while (1) switch (_context3.prev = _context3.next) {
|
|
41950
41950
|
case 0:
|
|
41951
41951
|
_context3.next = 2;
|
|
41952
|
-
return import('./Host3DSignalR-
|
|
41952
|
+
return import('./Host3DSignalR-e0fd5c5e.js');
|
|
41953
41953
|
case 2:
|
|
41954
41954
|
_yield$import = _context3.sent;
|
|
41955
41955
|
Host3DSignalR = _yield$import["default"];
|
|
@@ -43607,7 +43607,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
43607
43607
|
break;
|
|
43608
43608
|
case 8:
|
|
43609
43609
|
_context4.next = 10;
|
|
43610
|
-
return import('./DivaStandardPlanner-
|
|
43610
|
+
return import('./DivaStandardPlanner-5908d45b.js');
|
|
43611
43611
|
case 10:
|
|
43612
43612
|
_yield$import = _context4.sent;
|
|
43613
43613
|
DivaStandardPlanner = _yield$import["default"];
|
|
@@ -43618,7 +43618,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
43618
43618
|
return _context4.abrupt("break", 21);
|
|
43619
43619
|
case 15:
|
|
43620
43620
|
_context4.next = 17;
|
|
43621
|
-
return import('./DivaBoxPlanner-
|
|
43621
|
+
return import('./DivaBoxPlanner-c3688dbb.js');
|
|
43622
43622
|
case 17:
|
|
43623
43623
|
_yield$import2 = _context4.sent;
|
|
43624
43624
|
DivaBoxPlanner = _yield$import2["default"];
|
package/build/esm/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { h as CatalogPlannerArticleData, C as Cell, e as DivaArticle, g as DivaBasketHandler, f as DivaCatalogData, D as DockingPoint, G as Grid, O as OptionCatalogData, P as PlannerElementData, R as Rendering, c as Vector2, V as Vector3, i as Vector4, j as creatRenderOrders, d as default, k as getOrigProductId, n as isFullUsageLimits, m as isSimplifiedUsageLimits, l as loadAndRepairBasket } from './index-
|
|
1
|
+
export { h as CatalogPlannerArticleData, C as Cell, e as DivaArticle, g as DivaBasketHandler, f as DivaCatalogData, D as DockingPoint, G as Grid, O as OptionCatalogData, P as PlannerElementData, R as Rendering, c as Vector2, V as Vector3, i as Vector4, j as creatRenderOrders, d as default, k as getOrigProductId, n as isFullUsageLimits, m as isSimplifiedUsageLimits, l as loadAndRepairBasket } from './index-14f79ee4.js';
|
|
2
2
|
import '@babel/runtime/helpers/slicedToArray';
|
|
3
3
|
import '@babel/runtime/helpers/asyncToGenerator';
|
|
4
4
|
import '@babel/runtime/helpers/classCallCheck';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BoxPlannerGrid.d.ts","sourceRoot":"","sources":["../../../../../../../src/logic/Planner/BoxPlanner/BoxPlannerGrid.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,MAAM,2CAA2C,CAAC;AAC3E,OAAO,EAAkB,yBAAyB,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AACnH,OAAO,EAAW,OAAO,EAAE,MAAM,kCAAkC,CAAC;AAEpE,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAEvE,OAAO,EACL,6BAA6B,EAG7B,oBAAoB,EAKrB,MAAM,+CAA+C,CAAC;AACvD,OAAO,eAAe,MAAM,oEAAoE,CAAC;AAIjG,MAAM,CAAC,OAAO,OAAO,cAAc;IACjC,OAAO,CAAC,eAAe,CAAkC;IACzD,OAAO,CAAC,oBAAoB,CAAuB;IACnD,OAAO,CAAC,iBAAiB,CAAU;IAEnC,OAAO,CAAC,yBAAyB,CAAiE;IAElG,OAAO,CAAC,eAAe,CAAkB;gBAE7B,eAAe,EAAE,eAAe,EAAE,yBAAyB,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS;IAWvI;;;;;;OAMG;IACH,OAAO,CAAC,cAAc;IA2DtB,OAAO,CAAC,gBAAgB;IAwBxB;;;;OAIG;IACH,OAAO,CAAC,YAAY;IAQpB,4DAA4D;IAC5D,OAAO,CAAC,qBAAqB;IAc7B,OAAO,CAAC,kBAAkB;IAS1B;;;;OAIG;IACH,OAAO,CAAC,mBAAmB;IAmB3B,OAAO,CAAC,yBAAyB;IA2CjC;;;;;;OAMG;IACI,0BAA0B,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,OAAO,GAAG,kBAAkB,GAAG,SAAS;IAY3H;;;;;;OAMG;IACI,yB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C,EAAE,MAAM,CAAA;KAAE;IAqEnF;;;;;OAKG;IACI,gBAAgB,CAAC,eAAe,EAAE,MAAM,EAAE,UAAU,EAAE,kBAAkB,EAAE,SAAS,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE;IAwB/H;;;;;;OAMG;IACI,aAAa,CAAC,SAAS,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,mBAAmB;IAanE,2BAA2B,CAAC,SAAS,EAAE,MAAM,EAAE,WAAW,EAAE,eAAe,GAAG,SAAS;IAwD9F;;;OAGG;IACI,wBAAwB;IA+D/B;;;OAGG;IACI,qBAAqB;IAc5B;;OAEG;IACI,yBAAyB,IAAI,IAAI;IAUjC,2BAA2B;IAI3B,4BAA4B,IAAI,OAAO;IAIvC,cAAc,IAAI;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE;IA4EzE;;;;OAIG;IACH,OAAO,CAAC,mBAAmB;IA0I3B;;;;;OAKG;IACH,OAAO,CAAC,uBAAuB;IA8J/B,OAAO,CAAC,yBAAyB;IA2C1B,gCAAgC,IAAI,6BAA6B;IA+CjE,uBAAuB,CAAC,QAAQ,GAAE,OAAe,EAAE,iBAAiB,CAAC,EAAE,MAAM,GAAG,oBAAoB;IAsG3G,OAAO,CAAC,WAAW;IAsBnB,OAAO,CAAC,cAAc;IAuBtB,OAAO,CAAC,oBAAoB;CAiC7B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crystaldesign/web-planner-logic",
|
|
3
|
-
"version": "25.
|
|
3
|
+
"version": "25.14.0-beta.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"types": "./build/types/web-planner-logic/src/index.d.ts",
|
|
41
41
|
"module": "build/esm/index.js",
|
|
42
42
|
"main": "build/cjs/index.js",
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "a1f064466cb86193809d9ef267b84c67c67a9011"
|
|
44
44
|
}
|