@crystaldesign/web-planner-logic 24.15.0-beta.2 → 24.15.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-a902a2b5.js → DivaBoxPlanner-8df05a27.js} +2 -2
- package/build/cjs/{DivaStandardPlanner-64e0b280.js → DivaStandardPlanner-4feff250.js} +2 -2
- package/build/cjs/{DoorPlanner-e98cc91c.js → DoorPlanner-f6c4843f.js} +1 -1
- package/build/cjs/{Host3DSignalR-b507198e.js → Host3DSignalR-ceb795ca.js} +1 -1
- package/build/cjs/{LiviqueWWSHandler-e144ed04.js → LiviqueWWSHandler-5976147e.js} +1 -1
- package/build/cjs/{PfisterWWSHandler-4a6d833a.js → PfisterWWSHandler-9c9dd41d.js} +1 -1
- package/build/cjs/{PlannerHandler2D-56454913.js → PlannerHandler2D-9a39a24e.js} +1 -1
- package/build/cjs/{SeriousBasketHandler-8530c15f.js → SeriousBasketHandler-99a76472.js} +15 -4
- package/build/cjs/{ShelfPlanner-ce137022.js → ShelfPlanner-331dca24.js} +1 -1
- package/build/cjs/{StandardWWSHandler-cd08ca46.js → StandardWWSHandler-3def2f67.js} +1 -1
- package/build/cjs/{index-46a915c3.js → index-211be2e6.js} +257 -241
- package/build/cjs/index.js +1 -1
- package/build/esm/{DivaBoxPlanner-d09aeb85.js → DivaBoxPlanner-43123b27.js} +2 -2
- package/build/esm/{DivaStandardPlanner-d510e8d0.js → DivaStandardPlanner-e0b808af.js} +2 -2
- package/build/esm/{DoorPlanner-713539f6.js → DoorPlanner-09c76b89.js} +1 -1
- package/build/esm/{Host3DSignalR-62dcf76f.js → Host3DSignalR-b3db6c59.js} +1 -1
- package/build/esm/{LiviqueWWSHandler-795815ac.js → LiviqueWWSHandler-175196ff.js} +1 -1
- package/build/esm/{PfisterWWSHandler-0f6f7d10.js → PfisterWWSHandler-4417a1f6.js} +1 -1
- package/build/esm/{PlannerHandler2D-4b739952.js → PlannerHandler2D-b64207dc.js} +1 -1
- package/build/esm/{SeriousBasketHandler-05587353.js → SeriousBasketHandler-24b716ac.js} +15 -4
- package/build/esm/{ShelfPlanner-1e73edcf.js → ShelfPlanner-c547d657.js} +1 -1
- package/build/esm/{StandardWWSHandler-69ded749.js → StandardWWSHandler-83775bcd.js} +1 -1
- package/build/esm/{index-032d3dde.js → index-997a3ec9.js} +257 -241
- package/build/esm/index.js +1 -1
- package/build/types/web-planner-logic/src/interface/API/ViewConfigDataType.d.ts +1 -0
- 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/DivaCatalogDataType.d.ts +2 -0
- package/build/types/web-planner-logic/src/interface/DivaCatalogDataType.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Article/ArticleOptionState.d.ts +1 -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/DivaArticleHandler.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/DivaConfigTree.d.ts +3 -16
- 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 +1 -6
- package/build/types/web-planner-logic/src/logic/ConfigTree/DivaConfigTreeHandler.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/DivaApiHandler.d.ts +1 -1
- package/build/types/web-planner-logic/src/logic/DivaApiHandler.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts +3 -2
- package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Planner/Rendering/Rendering.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Set/DivaSet.d.ts +0 -11
- package/build/types/web-planner-logic/src/logic/Set/DivaSet.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/logic/Set/FavoritesHandler.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/Articles/CatalogArticleData.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/DivaCatalogData.d.ts +2 -0
- package/build/types/web-planner-logic/src/model/DivaCatalogData.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/Options/ArticleOptionValueData.d.ts +1 -1
- package/build/types/web-planner-logic/src/model/Options/ArticleOptionValueData.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-211be2e6.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 { V as Vector3, B as BoundingBox } from './index-
|
|
6
|
+
import { V as Vector3, B as BoundingBox } from './index-997a3ec9.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-b64207dc.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-997a3ec9.js';
|
|
7
|
+
import { d as dockingPointHandlerInst, h as handler2D, P as PlannerElementData } from './PlannerHandler2D-b64207dc.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-997a3ec9.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-997a3ec9.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-997a3ec9.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-997a3ec9.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 { V as Vector3, c as Vector2, D as DockingPoint } from './index-
|
|
4
|
+
import { V as Vector3, c as Vector2, D as DockingPoint } from './index-997a3ec9.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-997a3ec9.js';
|
|
5
5
|
import DivaUtils from '@crystaldesign/diva-utils';
|
|
6
6
|
import '@babel/runtime/helpers/slicedToArray';
|
|
7
7
|
import '@babel/runtime/helpers/asyncToGenerator';
|
|
@@ -131,10 +131,21 @@ var StandardWWSHandler = /*#__PURE__*/function () {
|
|
|
131
131
|
var _loop4 = function _loop4() {
|
|
132
132
|
var _article$getArticleOp3, _article$getArticleOp4;
|
|
133
133
|
var partListArticle = group.partlistArticles[_j].article;
|
|
134
|
+
var name = partListArticle.name;
|
|
135
|
+
if (partListArticle.partlistRule) {
|
|
136
|
+
if (partListArticle.partlistRule.includes('OPTMATR_L') && !partListArticle.partlistRule.includes('OPTMATR_R')) {
|
|
137
|
+
var _set$api$getI18n$t, _set$api$getI18n;
|
|
138
|
+
name = name + ' ' + ((_set$api$getI18n$t = (_set$api$getI18n = set.api.getI18n()) === null || _set$api$getI18n === void 0 ? void 0 : _set$api$getI18n.t('cube.left')) !== null && _set$api$getI18n$t !== void 0 ? _set$api$getI18n$t : 'links');
|
|
139
|
+
}
|
|
140
|
+
if (partListArticle.partlistRule.includes('OPTMATR_R') && !partListArticle.partlistRule.includes('OPTMATR_L')) {
|
|
141
|
+
var _set$api$getI18n$t2, _set$api$getI18n2;
|
|
142
|
+
name = name + ' ' + ((_set$api$getI18n$t2 = (_set$api$getI18n2 = set.api.getI18n()) === null || _set$api$getI18n2 === void 0 ? void 0 : _set$api$getI18n2.t('cube.right')) !== null && _set$api$getI18n$t2 !== void 0 ? _set$api$getI18n$t2 : 'rechts');
|
|
143
|
+
}
|
|
144
|
+
}
|
|
134
145
|
var tabGroup = (_article$getArticleOp3 = (_article$getArticleOp4 = article.getArticleOptionState('OPT' + partListArticle.tabGroup)) === null || _article$getArticleOp4 === void 0 ? void 0 : _article$getArticleOp4.optionTabGroup) !== null && _article$getArticleOp3 !== void 0 ? _article$getArticleOp3 : partListArticle.tabGroup;
|
|
135
146
|
var fountEntry = partListOrderLines.find(function (item) {
|
|
136
147
|
var _item$FormattedOption, _item$FormattedOption2, _this$getFormattedOpt;
|
|
137
|
-
return 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, tabGroupPartlistOptionCount, _objectSpread({}, curOptionCount), [], '')) === null || _this$getFormattedOpt === void 0 ? void 0 : _this$getFormattedOpt[0].Title);
|
|
148
|
+
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, tabGroupPartlistOptionCount, _objectSpread({}, curOptionCount), [], '')) === null || _this$getFormattedOpt === void 0 ? void 0 : _this$getFormattedOpt[0].Title);
|
|
138
149
|
});
|
|
139
150
|
if (fountEntry) {
|
|
140
151
|
fountEntry.Quantity = fountEntry.Quantity + partListArticle.quantity;
|
|
@@ -157,7 +168,7 @@ var StandardWWSHandler = /*#__PURE__*/function () {
|
|
|
157
168
|
Price: typeof partListArticle.price === 'number' ? partListArticle.price : parseFloat(partListArticle.price),
|
|
158
169
|
Quantity: partListArticle.quantity,
|
|
159
170
|
TabGroup: tabGroup !== null && tabGroup !== void 0 ? tabGroup : '',
|
|
160
|
-
Name:
|
|
171
|
+
Name: name,
|
|
161
172
|
Size: partListArticle.actSizeText
|
|
162
173
|
});
|
|
163
174
|
} else {
|
|
@@ -171,7 +182,7 @@ var StandardWWSHandler = /*#__PURE__*/function () {
|
|
|
171
182
|
Price: partListArticle.price,
|
|
172
183
|
Quantity: partListArticle.quantity,
|
|
173
184
|
TabGroup: 'SetArtikel',
|
|
174
|
-
Name: (_basket$SetName = basket.SetName) !== null && _basket$SetName !== void 0 ? _basket$SetName :
|
|
185
|
+
Name: (_basket$SetName = basket.SetName) !== null && _basket$SetName !== void 0 ? _basket$SetName : name
|
|
175
186
|
};
|
|
176
187
|
}
|
|
177
188
|
}
|
|
@@ -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-997a3ec9.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-997a3ec9.js';
|
|
4
4
|
import '@babel/runtime/helpers/slicedToArray';
|
|
5
5
|
import '@babel/runtime/helpers/asyncToGenerator';
|
|
6
6
|
import '@babel/runtime/helpers/defineProperty';
|