@crystaldesign/web-planner-logic 25.3.0-beta.2 → 25.3.0-beta.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.
- package/build/cjs/{DivaBoxPlanner-230a7343.js → DivaBoxPlanner-1a7853f2.js} +2 -2
- package/build/cjs/{DivaStandardPlanner-3b70656f.js → DivaStandardPlanner-ceca3901.js} +2 -2
- package/build/cjs/{DoorPlanner-85f5df3d.js → DoorPlanner-a0385fd8.js} +1 -1
- package/build/cjs/{Host3DSignalR-06a86be8.js → Host3DSignalR-7fab26d7.js} +1 -1
- package/build/cjs/{LiviqueWWSHandler-8e9cc61c.js → LiviqueWWSHandler-62f9e3c6.js} +1 -1
- package/build/cjs/{PfisterWWSHandler-786700cb.js → PfisterWWSHandler-7977e1d8.js} +1 -1
- package/build/cjs/{PlannerHandler2D-d4305a93.js → PlannerHandler2D-ff44402a.js} +1 -1
- package/build/cjs/{SeriousBasketHandler-70977945.js → SeriousBasketHandler-503bc153.js} +1 -1
- package/build/cjs/{ShelfPlanner-89d47e5e.js → ShelfPlanner-3fec6ada.js} +39 -22
- package/build/cjs/{StandardWWSHandler-4e8f472a.js → StandardWWSHandler-3f920d18.js} +1 -1
- package/build/cjs/{index-1df7482f.js → index-bc62cd46.js} +473 -354
- package/build/cjs/index.js +1 -1
- package/build/esm/{DivaBoxPlanner-ef50f3c1.js → DivaBoxPlanner-48803ce3.js} +2 -2
- package/build/esm/{DivaStandardPlanner-50298918.js → DivaStandardPlanner-ce7927f6.js} +2 -2
- package/build/esm/{DoorPlanner-43de473a.js → DoorPlanner-f893f34e.js} +1 -1
- package/build/esm/{Host3DSignalR-b772e3b5.js → Host3DSignalR-b2645aac.js} +1 -1
- package/build/esm/{LiviqueWWSHandler-e63f276f.js → LiviqueWWSHandler-7a582c3d.js} +1 -1
- package/build/esm/{PfisterWWSHandler-7f7996a7.js → PfisterWWSHandler-9f3a0b55.js} +1 -1
- package/build/esm/{PlannerHandler2D-4e72c491.js → PlannerHandler2D-d57ebcdc.js} +1 -1
- package/build/esm/{SeriousBasketHandler-1a4186bd.js → SeriousBasketHandler-19a9ff95.js} +1 -1
- package/build/esm/{ShelfPlanner-152084c3.js → ShelfPlanner-1e795caa.js} +39 -22
- package/build/esm/{StandardWWSHandler-a5d84eb8.js → StandardWWSHandler-454f0faa.js} +1 -1
- package/build/esm/{index-474fc67f.js → index-30e0f4dc.js} +473 -354
- package/build/esm/index.js +1 -1
- package/build/types/web-planner-logic/src/interface/API/ViewConfigDataType.d.ts +1 -1
- package/build/types/web-planner-logic/src/interface/API/ViewConfigDataType.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/Configuration.d.ts +1 -0
- package/build/types/web-planner-logic/src/interface/Configuration.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/FunctionTypes/index.d.ts +1 -7
- package/build/types/web-planner-logic/src/interface/FunctionTypes/index.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/OptionTypes/ArticleOptionDataTypes.d.ts +0 -1
- package/build/types/web-planner-logic/src/interface/OptionTypes/ArticleOptionDataTypes.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/OptionTypes/CatalogOptionDataTypes.d.ts +5 -0
- package/build/types/web-planner-logic/src/interface/OptionTypes/CatalogOptionDataTypes.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/ShelfPlanner/plannerData.d.ts +4 -0
- 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 +5 -0
- 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 +4 -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 +1 -1
- package/build/types/web-planner-logic/src/logic/Article/DivaArticleHandler.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.map +1 -1
- package/build/types/web-planner-logic/src/logic/ConfigTree/Shelfplanner/ShelfPlannerGrid.d.ts +5 -0
- 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 +1 -0
- package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts.map +1 -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/Rendering/PlannerHandler3D.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Planner/Rendering/ViewPointHandler.d.ts +0 -4
- package/build/types/web-planner-logic/src/logic/Planner/Rendering/ViewPointHandler.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/Options/ArticleOptionValueData.d.ts +5 -0
- package/build/types/web-planner-logic/src/model/Options/ArticleOptionValueData.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/Options/CatalogOptionValueData.d.ts +5 -0
- package/build/types/web-planner-logic/src/model/Options/CatalogOptionValueData.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-bc62cd46.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, B as BoundingBox } from './index-
|
|
6
|
+
import { c as Vector2, V as Vector3, B as BoundingBox } from './index-30e0f4dc.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, h as handler2D } from './PlannerHandler2D-
|
|
9
|
+
import { d as dockingPointHandlerInst, P as PlannerElementData, h as handler2D } from './PlannerHandler2D-d57ebcdc.js';
|
|
10
10
|
import '@babel/runtime/helpers/slicedToArray';
|
|
11
11
|
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
12
12
|
import 'axios';
|
|
@@ -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, h as handler2D, P as PlannerElementData } from './PlannerHandler2D-
|
|
6
|
+
import { V as Vector3, c as Vector2, B as BoundingBox } from './index-30e0f4dc.js';
|
|
7
|
+
import { d as dockingPointHandlerInst, h as handler2D, P as PlannerElementData } from './PlannerHandler2D-d57ebcdc.js';
|
|
8
8
|
import DivaUtils, { DivaError, md5 } from '@crystaldesign/diva-utils';
|
|
9
9
|
import '@babel/runtime/helpers/slicedToArray';
|
|
10
10
|
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
@@ -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-30e0f4dc.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-30e0f4dc.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-30e0f4dc.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-30e0f4dc.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';
|
|
@@ -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 { c as Vector2, V as Vector3, D as DockingPoint } from './index-
|
|
4
|
+
import { c as Vector2, V as Vector3, D as DockingPoint } from './index-30e0f4dc.js';
|
|
5
5
|
import DivaUtils, { md5, DivaError } from '@crystaldesign/diva-utils';
|
|
6
6
|
import _asyncToGenerator from '@babel/runtime/helpers/asyncToGenerator';
|
|
7
7
|
import _regeneratorRuntime from '@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-30e0f4dc.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-30e0f4dc.js';
|
|
8
8
|
import DivaUtils from '@crystaldesign/diva-utils';
|
|
9
9
|
import '@babel/runtime/helpers/slicedToArray';
|
|
10
10
|
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
@@ -212,7 +212,7 @@ var ShelfPlanner = /*#__PURE__*/function () {
|
|
|
212
212
|
_grid = grids[_i3];
|
|
213
213
|
if (!((_grid$DisableCellsByM = _grid.DisableCellsByMeasures) !== null && _grid$DisableCellsByM !== void 0 && _grid$DisableCellsByM.options.find(function (o) {
|
|
214
214
|
return Object.keys(variantValues).includes('OPT' + o.opt);
|
|
215
|
-
}))) {
|
|
215
|
+
}) || !!_grid.disableCellsByRules)) {
|
|
216
216
|
_context2.next = 31;
|
|
217
217
|
break;
|
|
218
218
|
}
|
|
@@ -1038,7 +1038,7 @@ var ShelfPlanner = /*#__PURE__*/function () {
|
|
|
1038
1038
|
key: "disableCellsByDockedShelfs",
|
|
1039
1039
|
value: (function () {
|
|
1040
1040
|
var _disableCellsByDockedShelfs = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee9(count) {
|
|
1041
|
-
var grids, i, grid, gridCount, useCount, j,
|
|
1041
|
+
var grids, i, grid, gridCount, toDisableCells, useCount, j, _j, cell, _j2;
|
|
1042
1042
|
return _regeneratorRuntime.wrap(function _callee9$(_context9) {
|
|
1043
1043
|
while (1) switch (_context9.prev = _context9.next) {
|
|
1044
1044
|
case 0:
|
|
@@ -1046,41 +1046,58 @@ var ShelfPlanner = /*#__PURE__*/function () {
|
|
|
1046
1046
|
i = 0;
|
|
1047
1047
|
case 2:
|
|
1048
1048
|
if (!(i < grids.length)) {
|
|
1049
|
-
_context9.next =
|
|
1049
|
+
_context9.next = 29;
|
|
1050
1050
|
break;
|
|
1051
1051
|
}
|
|
1052
1052
|
grid = grids[i];
|
|
1053
1053
|
gridCount = grid.getCellCount();
|
|
1054
|
+
toDisableCells = grid.getDisabledCellsByRule();
|
|
1054
1055
|
useCount = count == undefined || count > gridCount ? gridCount : count;
|
|
1055
|
-
j = useCount;
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1056
|
+
for (j = useCount; j < grid.Cells.length; j++) {
|
|
1057
|
+
toDisableCells.push(j);
|
|
1058
|
+
}
|
|
1059
|
+
_j = 0;
|
|
1060
|
+
case 9:
|
|
1061
|
+
if (!(_j < toDisableCells.length)) {
|
|
1062
|
+
_context9.next = 18;
|
|
1059
1063
|
break;
|
|
1060
1064
|
}
|
|
1061
|
-
cell = grid.Cells[
|
|
1062
|
-
if (!(cell.InUse ==
|
|
1063
|
-
_context9.next =
|
|
1065
|
+
cell = grid.Cells[toDisableCells[_j]];
|
|
1066
|
+
if (!(cell.InUse == toDisableCells[_j])) {
|
|
1067
|
+
_context9.next = 14;
|
|
1064
1068
|
break;
|
|
1065
1069
|
}
|
|
1066
|
-
_context9.next =
|
|
1070
|
+
_context9.next = 14;
|
|
1067
1071
|
return setHandlerInstance.deleteAccessorieOnShelfPlanner(this.article.set, grid.ShelfIndex, cell.InUse, grid.basketId);
|
|
1068
|
-
case
|
|
1072
|
+
case 14:
|
|
1069
1073
|
cell.IsDisabled = true;
|
|
1070
|
-
case
|
|
1071
|
-
|
|
1072
|
-
_context9.next =
|
|
1074
|
+
case 15:
|
|
1075
|
+
_j++;
|
|
1076
|
+
_context9.next = 9;
|
|
1073
1077
|
break;
|
|
1074
|
-
case
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
+
case 18:
|
|
1079
|
+
_j2 = 0;
|
|
1080
|
+
case 19:
|
|
1081
|
+
if (!(_j2 < grid.Cells.length)) {
|
|
1082
|
+
_context9.next = 26;
|
|
1083
|
+
break;
|
|
1084
|
+
}
|
|
1085
|
+
if (!toDisableCells.includes(_j2)) {
|
|
1086
|
+
_context9.next = 22;
|
|
1087
|
+
break;
|
|
1078
1088
|
}
|
|
1079
|
-
|
|
1089
|
+
return _context9.abrupt("continue", 23);
|
|
1090
|
+
case 22:
|
|
1091
|
+
grid.Cells[_j2].IsDisabled = false;
|
|
1092
|
+
case 23:
|
|
1093
|
+
_j2++;
|
|
1094
|
+
_context9.next = 19;
|
|
1095
|
+
break;
|
|
1096
|
+
case 26:
|
|
1080
1097
|
i++;
|
|
1081
1098
|
_context9.next = 2;
|
|
1082
1099
|
break;
|
|
1083
|
-
case
|
|
1100
|
+
case 29:
|
|
1084
1101
|
case "end":
|
|
1085
1102
|
return _context9.stop();
|
|
1086
1103
|
}
|
|
@@ -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-30e0f4dc.js';
|
|
4
4
|
import '@babel/runtime/helpers/slicedToArray';
|
|
5
5
|
import '@babel/runtime/helpers/asyncToGenerator';
|
|
6
6
|
import '@babel/runtime/helpers/defineProperty';
|