@crystaldesign/web-planner-logic 25.16.0-beta.23 → 25.16.0-beta.25
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-6127be3c.js → DivaBoxPlanner-3df20eef.js} +2 -2
- package/build/cjs/{DivaStandardPlanner-021a5dad.js → DivaStandardPlanner-fd531838.js} +2 -2
- package/build/cjs/{DoorPlanner-1a22cb39.js → DoorPlanner-c6818d77.js} +1 -1
- package/build/cjs/{Host3DSignalR-f0efc5e0.js → Host3DSignalR-b5a27a0d.js} +1 -1
- package/build/cjs/{LiviqueWWSHandler-f0fdf57c.js → LiviqueWWSHandler-fba295d6.js} +1 -1
- package/build/cjs/{PfisterWWSHandler-5591f3bb.js → PfisterWWSHandler-c2116ee5.js} +1 -1
- package/build/cjs/{PlannerHandler2D-e7e0b26a.js → PlannerHandler2D-2defa028.js} +1 -1
- package/build/cjs/{SeriousBasketHandler-7d5f5b68.js → SeriousBasketHandler-c1fb6757.js} +6 -31
- package/build/cjs/{ShelfPlanner-f2e21287.js → ShelfPlanner-0239283e.js} +1 -1
- package/build/cjs/{StandardWWSHandler-05794d7d.js → StandardWWSHandler-46e00568.js} +1 -1
- package/build/cjs/{index-c5f6b0b1.js → index-2b26924b.js} +302 -270
- package/build/cjs/index.js +1 -1
- package/build/esm/{DivaBoxPlanner-997f1fe9.js → DivaBoxPlanner-b1d4462c.js} +2 -2
- package/build/esm/{DivaStandardPlanner-6a3a3e24.js → DivaStandardPlanner-d08e59e5.js} +2 -2
- package/build/esm/{DoorPlanner-f3b00f17.js → DoorPlanner-c6bf6f31.js} +1 -1
- package/build/esm/{Host3DSignalR-55d50416.js → Host3DSignalR-8bb9f2a6.js} +1 -1
- package/build/esm/{LiviqueWWSHandler-ab94c5fe.js → LiviqueWWSHandler-0e81d963.js} +1 -1
- package/build/esm/{PfisterWWSHandler-01b35a05.js → PfisterWWSHandler-f316ecf4.js} +1 -1
- package/build/esm/{PlannerHandler2D-f4e07d72.js → PlannerHandler2D-77f3b391.js} +1 -1
- package/build/esm/{SeriousBasketHandler-d37b6c7f.js → SeriousBasketHandler-47e65dd8.js} +6 -31
- package/build/esm/{ShelfPlanner-3706474c.js → ShelfPlanner-409cfb29.js} +1 -1
- package/build/esm/{StandardWWSHandler-4df74a93.js → StandardWWSHandler-7d2c23e1.js} +1 -1
- package/build/esm/{index-808fb8b3.js → index-a1e9362b.js} +302 -270
- package/build/esm/index.js +1 -1
- package/build/types/web-planner-logic/src/interface/ArticleOptionStateType.d.ts +1 -0
- package/build/types/web-planner-logic/src/interface/ArticleOptionStateType.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/OptionTypes/ArticleOptionDataTypes.d.ts +1 -0
- 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 +1 -0
- package/build/types/web-planner-logic/src/interface/OptionTypes/CatalogOptionDataTypes.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Article/ArticleOptionState.d.ts +2 -1
- 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.map +1 -1
- package/build/types/web-planner-logic/src/logic/Article/Engine/IDMArticleEngine.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Basket/SeriousBasketHandler.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/ConfigTree/SummaryHandler.d.ts +1 -12
- package/build/types/web-planner-logic/src/logic/ConfigTree/SummaryHandler.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/DivaApiHandler.d.ts +3 -3
- package/build/types/web-planner-logic/src/logic/DivaApiHandler.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/model/Articles/Article/DivaCatalogArticle.d.ts +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/Articles/Article/IDMCatalogArticle.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/Options/ArticleOptionData.d.ts +1 -0
- package/build/types/web-planner-logic/src/model/Options/ArticleOptionData.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/Options/CatalogOptionData.d.ts +1 -0
- 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-2b26924b.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-
|
|
6
|
+
import { c as Vector2, V as Vector3, P as PlannerElementData, B as BoundingBox } from './index-a1e9362b.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-
|
|
10
|
+
import { d as dockingPointHandlerInst, h as handler2D } from './PlannerHandler2D-77f3b391.js';
|
|
11
11
|
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
12
12
|
import 'axios';
|
|
13
13
|
import '@crystaldesign/basket-model';
|
|
@@ -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-a1e9362b.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-77f3b391.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-a1e9362b.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-a1e9362b.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-a1e9362b.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-a1e9362b.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-a1e9362b.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-a1e9362b.js';
|
|
5
5
|
import DivaUtils from '@crystaldesign/diva-utils';
|
|
6
6
|
import '@babel/runtime/helpers/slicedToArray';
|
|
7
7
|
import '@babel/runtime/helpers/asyncToGenerator';
|
|
@@ -14,8 +14,6 @@ import '@crystaldesign/basket-handler';
|
|
|
14
14
|
import 'socket.io-client';
|
|
15
15
|
import '@babel/runtime/helpers/typeof';
|
|
16
16
|
|
|
17
|
-
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; }
|
|
18
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
19
17
|
//Der in einem Set gemergte Optionsbaum
|
|
20
18
|
var MAIN_COLOR_OPTIONCODEX = 'OPTBE_BOX'; // this field indicates the the main Color. This main color is used in the PDF
|
|
21
19
|
var StandardWWSHandler = /*#__PURE__*/function () {
|
|
@@ -121,25 +119,13 @@ var StandardWWSHandler = /*#__PURE__*/function () {
|
|
|
121
119
|
var posNrCount = 1;
|
|
122
120
|
|
|
123
121
|
//get count of tabgroupOption - articles within each tabgroup
|
|
124
|
-
|
|
125
|
-
//TODO delete this code in 2024
|
|
126
|
-
var tabGroupPartlistOptionCount = {};
|
|
127
|
-
for (var j = 0; j < group.partlistArticles.length; j++) {
|
|
128
|
-
var _article = group.partlistArticles[j];
|
|
129
|
-
if (_article.tabGroup && _article.article.tabGroupOption) {
|
|
130
|
-
tabGroupPartlistOptionCount[_article.tabGroup] !== undefined ? tabGroupPartlistOptionCount[_article.tabGroup]++ : tabGroupPartlistOptionCount[_article.tabGroup] = 1;
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
//
|
|
134
|
-
|
|
135
|
-
var curOptionCount = {};
|
|
136
122
|
var _loop4 = function _loop4() {
|
|
137
123
|
var _article$getArticleOp3, _article$getArticleOp4;
|
|
138
|
-
var partListArticle = group.partlistArticles[
|
|
124
|
+
var partListArticle = group.partlistArticles[j].article;
|
|
139
125
|
var tabGroup = (_article$getArticleOp3 = (_article$getArticleOp4 = article.getArticleOptionState((!isIDM ? 'OPT' : '') + partListArticle.tabGroup)) === null || _article$getArticleOp4 === void 0 ? void 0 : _article$getArticleOp4.optionTabGroup) !== null && _article$getArticleOp3 !== void 0 ? _article$getArticleOp3 : partListArticle.tabGroup;
|
|
140
126
|
var fountEntry = partListOrderLines.find(function (item) {
|
|
141
127
|
var _item$FormattedOption, _item$FormattedOption2, _this$getFormattedOpt;
|
|
142
|
-
return item.Name == partListArticle.name && item.ArticleNr == partListArticle.configArticleCodex && ((_item$FormattedOption = item.FormattedOptions) === null || _item$FormattedOption === void 0 ? void 0 : _item$FormattedOption[0]) && ((_item$FormattedOption2 = item.FormattedOptions) === null || _item$FormattedOption2 === void 0 ? void 0 : _item$FormattedOption2[0].Title) == ((_this$getFormattedOpt = _this.getFormattedOptions(partListArticle, article,
|
|
128
|
+
return item.Name == partListArticle.name && item.ArticleNr == partListArticle.configArticleCodex && ((_item$FormattedOption = item.FormattedOptions) === null || _item$FormattedOption === void 0 ? void 0 : _item$FormattedOption[0]) && ((_item$FormattedOption2 = item.FormattedOptions) === null || _item$FormattedOption2 === void 0 ? void 0 : _item$FormattedOption2[0].Title) == ((_this$getFormattedOpt = _this.getFormattedOptions(partListArticle, article, [], '')) === null || _this$getFormattedOpt === void 0 ? void 0 : _this$getFormattedOpt[0].Title);
|
|
143
129
|
});
|
|
144
130
|
if (fountEntry) {
|
|
145
131
|
fountEntry.Quantity = fountEntry.Quantity + partListArticle.quantity;
|
|
@@ -152,7 +138,7 @@ var StandardWWSHandler = /*#__PURE__*/function () {
|
|
|
152
138
|
finalPosNr = _this$getFinalPosNr.finalPosNr,
|
|
153
139
|
newPosNrCount = _this$getFinalPosNr.newPosNrCount;
|
|
154
140
|
posNrCount = newPosNrCount;
|
|
155
|
-
var formattedOptions = _this.getFormattedOptions(partListArticle, article,
|
|
141
|
+
var formattedOptions = _this.getFormattedOptions(partListArticle, article, colorCodices, finalPosNr);
|
|
156
142
|
partListOrderLines.push({
|
|
157
143
|
ArticleNr: (_partListArticle$conf = partListArticle.configArticleCodex) !== null && _partListArticle$conf !== void 0 && _partListArticle$conf.startsWith('HIDE_CODEX') ? '' : (_partListArticle$conf2 = partListArticle.configArticleCodex) !== null && _partListArticle$conf2 !== void 0 ? _partListArticle$conf2 : partListArticle.articleCodex,
|
|
158
144
|
ColorCodices: colorCodices,
|
|
@@ -181,7 +167,7 @@ var StandardWWSHandler = /*#__PURE__*/function () {
|
|
|
181
167
|
}
|
|
182
168
|
}
|
|
183
169
|
};
|
|
184
|
-
for (var
|
|
170
|
+
for (var j = 0; j < group.partlistArticles.length; j++) {
|
|
185
171
|
_loop4();
|
|
186
172
|
}
|
|
187
173
|
};
|
|
@@ -275,22 +261,11 @@ var StandardWWSHandler = /*#__PURE__*/function () {
|
|
|
275
261
|
}
|
|
276
262
|
}, {
|
|
277
263
|
key: "getFormattedOptions",
|
|
278
|
-
value: function getFormattedOptions(partListArticle, article,
|
|
264
|
+
value: function getFormattedOptions(partListArticle, article, colorCodices, finalPosNr) {
|
|
279
265
|
var formattedOptions = [];
|
|
280
266
|
if (partListArticle.tabGroup && partListArticle.tabGroupOption) {
|
|
281
267
|
var optionStates = summaryHandlerInstance.getOptionCodexesOfTabGroupForSummary(article, partListArticle);
|
|
282
|
-
|
|
283
|
-
//TODO: delete this code in 2024
|
|
284
|
-
var onlyCheckSpecificIndex = -1;
|
|
285
|
-
if (tabGroupPartlistOptionCount[partListArticle.tabGroup] == optionStates.length) {
|
|
286
|
-
if (!curOptionCount[partListArticle.tabGroup]) curOptionCount[partListArticle.tabGroup] = 0;
|
|
287
|
-
onlyCheckSpecificIndex = curOptionCount[partListArticle.tabGroup];
|
|
288
|
-
curOptionCount[partListArticle.tabGroup]++;
|
|
289
|
-
}
|
|
290
|
-
//
|
|
291
|
-
|
|
292
268
|
for (var i = 0; i < optionStates.length; i++) {
|
|
293
|
-
if (onlyCheckSpecificIndex !== -1 && onlyCheckSpecificIndex !== i) continue;
|
|
294
269
|
var optionState = optionStates[i];
|
|
295
270
|
if (optionState.optionCodex.startsWith('OPTBE_') || optionState.optionCodex.startsWith('OPTAB_') || optionState.option.addToWWS) {
|
|
296
271
|
var _optionState$vCodex;
|
|
@@ -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-a1e9362b.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-a1e9362b.js';
|
|
4
4
|
import '@babel/runtime/helpers/slicedToArray';
|
|
5
5
|
import '@babel/runtime/helpers/asyncToGenerator';
|
|
6
6
|
import '@babel/runtime/helpers/defineProperty';
|