@crystaldesign/web-planner-logic 26.12.1 → 26.12.2-rc.1
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-62074399.js → DivaBoxPlanner-5592f179.js} +2 -2
- package/build/cjs/{DivaStandardPlanner-138a1952.js → DivaStandardPlanner-7840ec3b.js} +2 -2
- package/build/cjs/{DoorPlanner-c3725f0f.js → DoorPlanner-65183f28.js} +1 -1
- package/build/cjs/{Host3DSignalR-bc3f0b60.js → Host3DSignalR-0031af15.js} +1 -1
- package/build/cjs/{LiviqueWWSHandler-adf281e4.js → LiviqueWWSHandler-85ee3ddb.js} +1 -1
- package/build/cjs/{PfisterWWSHandler-e152d115.js → PfisterWWSHandler-fdb7d782.js} +1 -1
- package/build/cjs/{PlannerHandler2D-e65dab88.js → PlannerHandler2D-44ef29e9.js} +1 -1
- package/build/cjs/{SeriousBasketHandler-777c6da6.js → SeriousBasketHandler-cc65a789.js} +1 -1
- package/build/cjs/{ShelfPlanner-a0458bc2.js → ShelfPlanner-7df8ae3e.js} +1 -1
- package/build/cjs/{StandardWWSHandler-c43312b1.js → StandardWWSHandler-c246425f.js} +1 -1
- package/build/cjs/{index-d9a17ecd.js → index-b1a8db99.js} +113 -76
- package/build/cjs/index.js +1 -1
- package/build/esm/{DivaBoxPlanner-5c1a4605.js → DivaBoxPlanner-1a633560.js} +2 -2
- package/build/esm/{DivaStandardPlanner-a574665a.js → DivaStandardPlanner-917b4ed5.js} +2 -2
- package/build/esm/{DoorPlanner-3571bb65.js → DoorPlanner-13e3f516.js} +1 -1
- package/build/esm/{Host3DSignalR-80a913b9.js → Host3DSignalR-1436de3c.js} +1 -1
- package/build/esm/{LiviqueWWSHandler-ba85781d.js → LiviqueWWSHandler-75174346.js} +1 -1
- package/build/esm/{PfisterWWSHandler-1047c8f3.js → PfisterWWSHandler-609359bd.js} +1 -1
- package/build/esm/{PlannerHandler2D-95806884.js → PlannerHandler2D-c1aed3c9.js} +1 -1
- package/build/esm/{SeriousBasketHandler-28001030.js → SeriousBasketHandler-99351c80.js} +1 -1
- package/build/esm/{ShelfPlanner-a2271d15.js → ShelfPlanner-452b80f2.js} +1 -1
- package/build/esm/{StandardWWSHandler-ac222da5.js → StandardWWSHandler-346b237a.js} +1 -1
- package/build/esm/{index-2d017864.js → index-14c57a90.js} +113 -76
- package/build/esm/index.js +1 -1
- package/build/types/web-planner-logic/src/interface/Articles/AccessoireItemType.d.ts +6 -2
- package/build/types/web-planner-logic/src/interface/Articles/AccessoireItemType.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/webPlannerParams/WebPlannerParamsType.d.ts +1 -1
- package/build/types/web-planner-logic/src/interface/webPlannerParams/WebPlannerParamsType.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/Article/mandatoryAccessories.d.ts +3 -1
- package/build/types/web-planner-logic/src/logic/Article/mandatoryAccessories.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts +2 -0
- package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Set/DivaSetHandler.d.ts +4 -0
- package/build/types/web-planner-logic/src/logic/Set/DivaSetHandler.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/CatalogData.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -4,10 +4,10 @@ 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 { V as Vector3, P as PlannerElementData, B as BoundingBox } from './index-
|
|
7
|
+
import { V as Vector3, P as PlannerElementData, B as BoundingBox } from './index-14c57a90.js';
|
|
8
8
|
import DivaUtils, { DivaError, md5 } from '@crystaldesign/diva-utils';
|
|
9
9
|
import { computeDockedTransform } from '@crystaldesign/planner-2d-core';
|
|
10
|
-
import { d as dockingPointHandlerInst, h as handler2D } from './PlannerHandler2D-
|
|
10
|
+
import { d as dockingPointHandlerInst, h as handler2D } from './PlannerHandler2D-c1aed3c9.js';
|
|
11
11
|
import '@babel/runtime/helpers/slicedToArray';
|
|
12
12
|
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
13
13
|
import 'axios';
|
|
@@ -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-14c57a90.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 { d as bootMark, R as Rendering, H as HQRenderScript } from './index-
|
|
6
|
+
import { d as bootMark, R as Rendering, H as HQRenderScript } from './index-14c57a90.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-14c57a90.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-14c57a90.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, S as SVGUtils } from './index-
|
|
6
|
+
import { c as Vector2, S as SVGUtils } from './index-14c57a90.js';
|
|
7
7
|
import _possibleConstructorReturn from '@babel/runtime/helpers/possibleConstructorReturn';
|
|
8
8
|
import _getPrototypeOf from '@babel/runtime/helpers/getPrototypeOf';
|
|
9
9
|
import _get from '@babel/runtime/helpers/get';
|
|
@@ -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-14c57a90.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, a as articleHandlerInstance, b as setHandlerInstance } from './index-
|
|
7
|
+
import { G as Grid, a as articleHandlerInstance, b as setHandlerInstance } from './index-14c57a90.js';
|
|
8
8
|
import DivaUtils, { DivaError } 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-14c57a90.js';
|
|
4
4
|
import '@babel/runtime/helpers/slicedToArray';
|
|
5
5
|
import '@babel/runtime/helpers/asyncToGenerator';
|
|
6
6
|
import '@babel/runtime/helpers/defineProperty';
|
|
@@ -20810,26 +20810,26 @@ function _loadMoreFromIDMArticles() {
|
|
|
20810
20810
|
featureClasses,
|
|
20811
20811
|
priceFeatureGroups,
|
|
20812
20812
|
decisions,
|
|
20813
|
-
|
|
20813
|
+
_i6,
|
|
20814
20814
|
_decisions$map,
|
|
20815
20815
|
loadedIds,
|
|
20816
20816
|
missingIds,
|
|
20817
|
-
|
|
20817
|
+
_i7,
|
|
20818
20818
|
_iterator6,
|
|
20819
20819
|
_step6,
|
|
20820
20820
|
_loop7,
|
|
20821
|
-
|
|
20821
|
+
_i8,
|
|
20822
20822
|
_catalogArticleData$d2,
|
|
20823
20823
|
catalogArticleData,
|
|
20824
20824
|
toLoadFeatures,
|
|
20825
20825
|
features,
|
|
20826
20826
|
_loop4,
|
|
20827
|
-
|
|
20827
|
+
_i9,
|
|
20828
20828
|
_iterator7,
|
|
20829
20829
|
_step7,
|
|
20830
20830
|
_loop8,
|
|
20831
20831
|
_loop6,
|
|
20832
|
-
|
|
20832
|
+
_i10,
|
|
20833
20833
|
_args8 = arguments;
|
|
20834
20834
|
return _regeneratorRuntime.wrap(function _callee2$(_context8) {
|
|
20835
20835
|
while (1) switch (_context8.prev = _context8.next) {
|
|
@@ -20904,8 +20904,8 @@ function _loadMoreFromIDMArticles() {
|
|
|
20904
20904
|
priceFeatureGroups = _yield$Promise$all2[1];
|
|
20905
20905
|
decisions = _yield$Promise$all2[2];
|
|
20906
20906
|
if (decisions) {
|
|
20907
|
-
for (
|
|
20908
|
-
catalogData.loadedDecisions.push(initializeDecision(decisions[
|
|
20907
|
+
for (_i6 = 0; _i6 < decisions.length; _i6++) {
|
|
20908
|
+
catalogData.loadedDecisions.push(initializeDecision(decisions[_i6], catalogData.idmOptionGroups));
|
|
20909
20909
|
}
|
|
20910
20910
|
}
|
|
20911
20911
|
if (!(toLoadDecisionIds.length !== 0 && toLoadDecisionIds.length != (decisions === null || decisions === void 0 ? void 0 : decisions.length))) {
|
|
@@ -20924,8 +20924,8 @@ function _loadMoreFromIDMArticles() {
|
|
|
20924
20924
|
return loadDecisionsReferencedByActions(set, catalogData);
|
|
20925
20925
|
case 34:
|
|
20926
20926
|
if (priceFeatureGroups) {
|
|
20927
|
-
for (
|
|
20928
|
-
catalogData.loadedPriceFeaturegroups.push(initializePriceFeatureGroups(priceFeatureGroups[
|
|
20927
|
+
for (_i7 = 0; _i7 < priceFeatureGroups.length; _i7++) {
|
|
20928
|
+
catalogData.loadedPriceFeaturegroups.push(initializePriceFeatureGroups(priceFeatureGroups[_i7], catalogData.idmOptionGroups));
|
|
20929
20929
|
}
|
|
20930
20930
|
}
|
|
20931
20931
|
_iterator6 = _createForOfIteratorHelper$l(toLoadPFGroups);
|
|
@@ -20985,8 +20985,8 @@ function _loadMoreFromIDMArticles() {
|
|
|
20985
20985
|
_iterator6.f();
|
|
20986
20986
|
return _context8.finish(50);
|
|
20987
20987
|
case 53:
|
|
20988
|
-
for (
|
|
20989
|
-
catalogArticleData = catalogArticleDatas[
|
|
20988
|
+
for (_i8 = 0; _i8 < catalogArticleDatas.length; _i8++) {
|
|
20989
|
+
catalogArticleData = catalogArticleDatas[_i8];
|
|
20990
20990
|
catalogArticleData.articleIDMDecisions = sortDecisions(catalogData.getDecisionsByNo(_toConsumableArray(new Set([].concat(_toConsumableArray(catalogData.globalDecisions.map(function (g) {
|
|
20991
20991
|
return g.decisionNo;
|
|
20992
20992
|
})), _toConsumableArray(catalogData.serieDecisionRefs), _toConsumableArray((_catalogArticleData$d2 = catalogArticleData.decisionsRefs) !== null && _catalogArticleData$d2 !== void 0 ? _catalogArticleData$d2 : []))))));
|
|
@@ -21008,7 +21008,7 @@ function _loadMoreFromIDMArticles() {
|
|
|
21008
21008
|
return _regeneratorRuntime.wrap(function _loop4$(_context3) {
|
|
21009
21009
|
while (1) switch (_context3.prev = _context3.next) {
|
|
21010
21010
|
case 0:
|
|
21011
|
-
feature = features[
|
|
21011
|
+
feature = features[_i9];
|
|
21012
21012
|
insertIndex = catalogData.loadedFeatures.length;
|
|
21013
21013
|
k = 0;
|
|
21014
21014
|
case 3:
|
|
@@ -21082,15 +21082,15 @@ function _loadMoreFromIDMArticles() {
|
|
|
21082
21082
|
}
|
|
21083
21083
|
}, _loop4);
|
|
21084
21084
|
});
|
|
21085
|
-
|
|
21085
|
+
_i9 = 0;
|
|
21086
21086
|
case 62:
|
|
21087
|
-
if (!(
|
|
21087
|
+
if (!(_i9 < features.length)) {
|
|
21088
21088
|
_context8.next = 67;
|
|
21089
21089
|
break;
|
|
21090
21090
|
}
|
|
21091
21091
|
return _context8.delegateYield(_loop4(), "t3", 64);
|
|
21092
21092
|
case 64:
|
|
21093
|
-
|
|
21093
|
+
_i9++;
|
|
21094
21094
|
_context8.next = 62;
|
|
21095
21095
|
break;
|
|
21096
21096
|
case 67:
|
|
@@ -21157,7 +21157,7 @@ function _loadMoreFromIDMArticles() {
|
|
|
21157
21157
|
return _regeneratorRuntime.wrap(function _loop6$(_context7) {
|
|
21158
21158
|
while (1) switch (_context7.prev = _context7.next) {
|
|
21159
21159
|
case 0:
|
|
21160
|
-
catalogArticleData = catalogArticleDatas[
|
|
21160
|
+
catalogArticleData = catalogArticleDatas[_i10]; // an item without a feature class has no features of its own to initialize
|
|
21161
21161
|
if (!(catalogArticleData.featureClassRefNo === undefined)) {
|
|
21162
21162
|
_context7.next = 3;
|
|
21163
21163
|
break;
|
|
@@ -21183,9 +21183,9 @@ function _loadMoreFromIDMArticles() {
|
|
|
21183
21183
|
}
|
|
21184
21184
|
}, _loop6);
|
|
21185
21185
|
});
|
|
21186
|
-
|
|
21186
|
+
_i10 = 0;
|
|
21187
21187
|
case 87:
|
|
21188
|
-
if (!(
|
|
21188
|
+
if (!(_i10 < catalogArticleDatas.length)) {
|
|
21189
21189
|
_context8.next = 94;
|
|
21190
21190
|
break;
|
|
21191
21191
|
}
|
|
@@ -21197,7 +21197,7 @@ function _loadMoreFromIDMArticles() {
|
|
|
21197
21197
|
}
|
|
21198
21198
|
return _context8.abrupt("continue", 91);
|
|
21199
21199
|
case 91:
|
|
21200
|
-
|
|
21200
|
+
_i10++;
|
|
21201
21201
|
_context8.next = 87;
|
|
21202
21202
|
break;
|
|
21203
21203
|
case 94:
|
|
@@ -21309,7 +21309,9 @@ function _loadReferencedSerieCatalogs() {
|
|
|
21309
21309
|
_context9.next = 13;
|
|
21310
21310
|
return catalogHandlerInstance.getCatalogData(set.getSetState, _serieNo2, {
|
|
21311
21311
|
AccountGUID: catalogData.accountGuid,
|
|
21312
|
-
AccountSessionGUID: catalogData.accountSessionGuid
|
|
21312
|
+
AccountSessionGUID: catalogData.accountSessionGuid,
|
|
21313
|
+
// a reopened basket starts without the isIDMData param - the other serie must not fall back to API2
|
|
21314
|
+
IsIDMFormat: catalogData.isIDMFormat
|
|
21313
21315
|
});
|
|
21314
21316
|
case 13:
|
|
21315
21317
|
serieCatalogs[_serieNo2] = _context9.sent;
|
|
@@ -21367,27 +21369,35 @@ function initIDMArticleRelations(item, catalogArticleData, catalog) {
|
|
|
21367
21369
|
var _a$accessory$sequence, _b$accessory$sequence;
|
|
21368
21370
|
return ((_a$accessory$sequence = a.accessory.sequenceNo) !== null && _a$accessory$sequence !== void 0 ? _a$accessory$sequence : 0) - ((_b$accessory$sequence = b.accessory.sequenceNo) !== null && _b$accessory$sequence !== void 0 ? _b$accessory$sequence : 0);
|
|
21369
21371
|
});
|
|
21372
|
+
// counted over the offered accessories only: a set whose alternatives are hidden or missing leaves its last one without a choice
|
|
21373
|
+
var mandatorySetSizes = new Map();
|
|
21370
21374
|
for (var _i = 0, _accessories = accessories; _i < _accessories.length; _i++) {
|
|
21371
|
-
var
|
|
21372
|
-
var
|
|
21373
|
-
|
|
21374
|
-
|
|
21375
|
-
|
|
21376
|
-
|
|
21377
|
-
var
|
|
21375
|
+
var _mandatorySetSizes$ge;
|
|
21376
|
+
var _ref2 = _accessories[_i].ref;
|
|
21377
|
+
if (_ref2.mandatorySetNo !== undefined) mandatorySetSizes.set(_ref2.mandatorySetNo, ((_mandatorySetSizes$ge = mandatorySetSizes.get(_ref2.mandatorySetNo)) !== null && _mandatorySetSizes$ge !== void 0 ? _mandatorySetSizes$ge : 0) + 1);
|
|
21378
|
+
}
|
|
21379
|
+
for (var _i2 = 0, _accessories2 = accessories; _i2 < _accessories2.length; _i2++) {
|
|
21380
|
+
var _ref3$mandatoryQuanti, _accessory$catalogPla, _accessory$catalogPla2, _accessory$catalogPla3, _accessory$catalogPla4, _accessory$catalogPla5, _accessory$catalogPla6, _accessory$catalogPla7, _accessory$catalogPla8, _accessory$catalogPla9, _accessory$catalogPla10, _accessory$catalogPla11;
|
|
21381
|
+
var _accessories2$_i = _accessories2[_i2],
|
|
21382
|
+
_ref3 = _accessories2$_i.ref,
|
|
21383
|
+
_accessory = _accessories2$_i.accessory,
|
|
21384
|
+
_refCatalog = _accessories2$_i.refCatalog;
|
|
21385
|
+
// IDM knows no cap: a mandatory item's quantity binds as the minimum, the optional quantity only suggests (IDM OPTIONAL_QUANTITY doc).
|
|
21386
|
+
var bindingQuantity = _ref3.mandatorySetNo !== undefined ? Math.max(1, (_ref3$mandatoryQuanti = _ref3.mandatoryQuantity) !== null && _ref3$mandatoryQuanti !== void 0 ? _ref3$mandatoryQuanti : 1) : 0;
|
|
21378
21387
|
catalogArticle.articleRelations.push({
|
|
21379
21388
|
name: _accessory.name,
|
|
21380
21389
|
actQuantity: 0,
|
|
21381
21390
|
minQuantity: bindingQuantity,
|
|
21382
|
-
|
|
21383
|
-
|
|
21384
|
-
mandatorySetNo:
|
|
21385
|
-
|
|
21391
|
+
maxQuantity: 0,
|
|
21392
|
+
isIDMRelation: true,
|
|
21393
|
+
mandatorySetNo: _ref3.mandatorySetNo,
|
|
21394
|
+
isSoleMandatory: _ref3.mandatorySetNo !== undefined && mandatorySetSizes.get(_ref3.mandatorySetNo) === 1,
|
|
21395
|
+
suggestedQuantity: _ref3.optionalQuantity,
|
|
21386
21396
|
price: !catalog.dontShowBasePrice ? _accessory.articlePrice : 0,
|
|
21387
|
-
articleCodex:
|
|
21388
|
-
catalogCodex:
|
|
21397
|
+
articleCodex: _ref3.typeNo,
|
|
21398
|
+
catalogCodex: _ref3.serieNo,
|
|
21389
21399
|
longDescription: _accessory.longDescription,
|
|
21390
|
-
positionGroupNr:
|
|
21400
|
+
positionGroupNr: _ref3.setNo,
|
|
21391
21401
|
typeNr: _accessory.typeNr,
|
|
21392
21402
|
image: _accessory.image ? _refCatalog.getCatImageURL(_accessory.image, '') : undefined,
|
|
21393
21403
|
//accessoires are only PlannerElements if the have an SVG with dockingpossibilities (AVO/ AVU/ AVC)
|
|
@@ -21507,13 +21517,13 @@ function _fillMissingDockingPointCounts() {
|
|
|
21507
21517
|
};
|
|
21508
21518
|
_context11.next = 11;
|
|
21509
21519
|
return Promise.all(_toConsumableArray(accessories).map(/*#__PURE__*/function () {
|
|
21510
|
-
var
|
|
21520
|
+
var _ref6 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4(_ref5) {
|
|
21511
21521
|
var _accessory$svgs, _accessory$catalogPla12;
|
|
21512
|
-
var
|
|
21522
|
+
var _ref7, accessory, accessoryCatalog, svgs, uncounted, counts, topCounts, paletteView;
|
|
21513
21523
|
return _regeneratorRuntime.wrap(function _callee4$(_context10) {
|
|
21514
21524
|
while (1) switch (_context10.prev = _context10.next) {
|
|
21515
21525
|
case 0:
|
|
21516
|
-
|
|
21526
|
+
_ref7 = _slicedToArray(_ref5, 2), accessory = _ref7[0], accessoryCatalog = _ref7[1];
|
|
21517
21527
|
svgs = (_accessory$svgs = accessory.svgs) !== null && _accessory$svgs !== void 0 ? _accessory$svgs : [];
|
|
21518
21528
|
uncounted = svgs.filter(lacksDockingPointCounts);
|
|
21519
21529
|
if (uncounted.length) {
|
|
@@ -21563,7 +21573,7 @@ function _fillMissingDockingPointCounts() {
|
|
|
21563
21573
|
}, _callee4);
|
|
21564
21574
|
}));
|
|
21565
21575
|
return function (_x11) {
|
|
21566
|
-
return
|
|
21576
|
+
return _ref6.apply(this, arguments);
|
|
21567
21577
|
};
|
|
21568
21578
|
}()));
|
|
21569
21579
|
case 11:
|
|
@@ -21592,7 +21602,7 @@ var fetchDecisions = function fetchDecisions(set, catalogData, decisionNos) {
|
|
|
21592
21602
|
* apply while that action matches. References are followed transitively.
|
|
21593
21603
|
*/
|
|
21594
21604
|
var loadDecisionsReferencedByActions = /*#__PURE__*/function () {
|
|
21595
|
-
var
|
|
21605
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(set, catalogData) {
|
|
21596
21606
|
var round, toLoad, _iterator3, _step3, _decision$optionCombi, decision, _iterator4, _step4, _combination$projectA, _combination$projectA2, _combination$projectA3, _combination$projectA4, combination, refs, _iterator5, _step5, ref, decisionNo, decisions, i, _decisions$length, stillMissing;
|
|
21597
21607
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
21598
21608
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -21671,7 +21681,7 @@ var loadDecisionsReferencedByActions = /*#__PURE__*/function () {
|
|
|
21671
21681
|
}, _callee);
|
|
21672
21682
|
}));
|
|
21673
21683
|
return function loadDecisionsReferencedByActions(_x9, _x10) {
|
|
21674
|
-
return
|
|
21684
|
+
return _ref4.apply(this, arguments);
|
|
21675
21685
|
};
|
|
21676
21686
|
}();
|
|
21677
21687
|
|
|
@@ -21694,10 +21704,10 @@ var getToLoadDecisionIds = function getToLoadDecisionIds(catalogArticleDatas, ca
|
|
|
21694
21704
|
return g.decisionNo;
|
|
21695
21705
|
})), _toConsumableArray(catalogData.serieDecisionRefs), _toConsumableArray(allArticleDecisions))));
|
|
21696
21706
|
var toLoadDecisionIds = [];
|
|
21697
|
-
for (var
|
|
21698
|
-
var found = catalogData.getDecisionByNo(neededDecisionsIds[
|
|
21707
|
+
for (var _i3 = 0; _i3 < neededDecisionsIds.length; _i3++) {
|
|
21708
|
+
var found = catalogData.getDecisionByNo(neededDecisionsIds[_i3]);
|
|
21699
21709
|
if (found) ; else {
|
|
21700
|
-
toLoadDecisionIds.push(neededDecisionsIds[
|
|
21710
|
+
toLoadDecisionIds.push(neededDecisionsIds[_i3]);
|
|
21701
21711
|
}
|
|
21702
21712
|
}
|
|
21703
21713
|
return toLoadDecisionIds;
|
|
@@ -21714,18 +21724,18 @@ var getFeatures = function getFeatures(catalogData, featureClasses) {
|
|
|
21714
21724
|
var alreadyLoadedFeatures = catalogData.loadedFeatures;
|
|
21715
21725
|
var toLoadFeatures = [];
|
|
21716
21726
|
var loadedFeatures = [];
|
|
21717
|
-
var _loop = function _loop(
|
|
21727
|
+
var _loop = function _loop(_i4) {
|
|
21718
21728
|
var found = alreadyLoadedFeatures.find(function (f) {
|
|
21719
|
-
return f.featureNo == neededFeatures[
|
|
21729
|
+
return f.featureNo == neededFeatures[_i4];
|
|
21720
21730
|
});
|
|
21721
21731
|
if (found) {
|
|
21722
21732
|
loadedFeatures.push(found);
|
|
21723
21733
|
} else {
|
|
21724
|
-
toLoadFeatures.push(neededFeatures[
|
|
21734
|
+
toLoadFeatures.push(neededFeatures[_i4]);
|
|
21725
21735
|
}
|
|
21726
21736
|
};
|
|
21727
|
-
for (var
|
|
21728
|
-
_loop(
|
|
21737
|
+
for (var _i4 = 0; _i4 < neededFeatures.length; _i4++) {
|
|
21738
|
+
_loop(_i4);
|
|
21729
21739
|
}
|
|
21730
21740
|
LOG$l.debug('features already loaded dont get again from api: ' + loadedFeatures.length);
|
|
21731
21741
|
return toLoadFeatures;
|
|
@@ -21749,10 +21759,10 @@ var getPriceFeatureGroups = function getPriceFeatureGroups(catalogArticleDatas,
|
|
|
21749
21759
|
}
|
|
21750
21760
|
var toLoadPriceFeatureGroups = [];
|
|
21751
21761
|
neededPriceFeatureGroupNos = _toConsumableArray(new Set(neededPriceFeatureGroupNos));
|
|
21752
|
-
for (var
|
|
21753
|
-
var found = catalogData.getPricefeaturegroup(neededPriceFeatureGroupNos[
|
|
21762
|
+
for (var _i5 = 0; _i5 < neededPriceFeatureGroupNos.length; _i5++) {
|
|
21763
|
+
var found = catalogData.getPricefeaturegroup(neededPriceFeatureGroupNos[_i5]);
|
|
21754
21764
|
if (found) ; else {
|
|
21755
|
-
toLoadPriceFeatureGroups.push(neededPriceFeatureGroupNos[
|
|
21765
|
+
toLoadPriceFeatureGroups.push(neededPriceFeatureGroupNos[_i5]);
|
|
21756
21766
|
}
|
|
21757
21767
|
}
|
|
21758
21768
|
return toLoadPriceFeatureGroups;
|
|
@@ -23717,7 +23727,8 @@ var DivaCatalogData = /*#__PURE__*/function () {
|
|
|
23717
23727
|
if (_this2.catalogProps.diva3dRoom == 'raumatlantis') _this2.catalogProps.diva3dRoom = 'weissraumatlantis';
|
|
23718
23728
|
break;
|
|
23719
23729
|
case 'DIVA3D_RENDERING':
|
|
23720
|
-
|
|
23730
|
+
// String(): the enrichment editor stored flags as native booleans for a while, and a stored false has no toLowerCase
|
|
23731
|
+
diva3DRenderingIsSet = item.Value == '1' || String(item.Value).toLowerCase() == 'true';
|
|
23721
23732
|
if (_this2.isIDMFormat) {
|
|
23722
23733
|
_this2.catalogProps.has3dModels = diva3DRenderingIsSet;
|
|
23723
23734
|
}
|
|
@@ -23750,20 +23761,20 @@ var DivaCatalogData = /*#__PURE__*/function () {
|
|
|
23750
23761
|
_this2.catalogProps.diva3dCompatibleWithImageCache = item.Value == '1';
|
|
23751
23762
|
break;
|
|
23752
23763
|
case 'ENABLE_DO_SHOW_3DDIMENSIONS':
|
|
23753
|
-
_this2.catalogProps.doShow3DDimensionLines = item.Value == '1' || item.Value.toLowerCase() == 'true';
|
|
23764
|
+
_this2.catalogProps.doShow3DDimensionLines = item.Value == '1' || String(item.Value).toLowerCase() == 'true';
|
|
23754
23765
|
break;
|
|
23755
23766
|
case 'DO_SHOW_MAIN_DIMENSIONS':
|
|
23756
|
-
_this2.catalogProps.doShowMainDimensions = item.Value == '1' || item.Value.toLowerCase() == 'true';
|
|
23767
|
+
_this2.catalogProps.doShowMainDimensions = item.Value == '1' || String(item.Value).toLowerCase() == 'true';
|
|
23757
23768
|
break;
|
|
23758
23769
|
case 'DEFAULT_DO_SHOW_3DDIMENSIONS':
|
|
23759
|
-
_this2.catalogProps.defaultDimensionsActive = '1' == item.Value || 'true' == item.Value.toLowerCase();
|
|
23770
|
+
_this2.catalogProps.defaultDimensionsActive = '1' == item.Value || 'true' == String(item.Value).toLowerCase();
|
|
23760
23771
|
break;
|
|
23761
23772
|
case 'DIVA_KI_READY':
|
|
23762
|
-
_this2.catalogProps.divaKiReady = item.Value == '1' || item.Value.toLowerCase() == 'true';
|
|
23773
|
+
_this2.catalogProps.divaKiReady = item.Value == '1' || String(item.Value).toLowerCase() == 'true';
|
|
23763
23774
|
break;
|
|
23764
23775
|
// Planner Topics
|
|
23765
23776
|
case 'IS_IDM3D_CAT':
|
|
23766
|
-
_this2.catalogProps.isIDM3DCat = item.Value == '1' || item.Value.toLowerCase() == 'true';
|
|
23777
|
+
_this2.catalogProps.isIDM3DCat = item.Value == '1' || String(item.Value).toLowerCase() == 'true';
|
|
23767
23778
|
break;
|
|
23768
23779
|
case 'IDM3D_ENVIRONMENT':
|
|
23769
23780
|
_this2.catalogProps.IDM3DEnvironment = (_item$Value = item.Value) !== null && _item$Value !== void 0 ? _item$Value : 'diva.ro';
|
|
@@ -32858,7 +32869,7 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
32858
32869
|
break;
|
|
32859
32870
|
}
|
|
32860
32871
|
_context.next = 4;
|
|
32861
|
-
return import('./ShelfPlanner-
|
|
32872
|
+
return import('./ShelfPlanner-452b80f2.js');
|
|
32862
32873
|
case 4:
|
|
32863
32874
|
_yield$import = _context.sent;
|
|
32864
32875
|
ShelfPlanner = _yield$import["default"];
|
|
@@ -33775,7 +33786,9 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
33775
33786
|
_context3.next = 10;
|
|
33776
33787
|
return catalogHandlerInstance.getCatalogData(set.getSetState, catalogCodex, {
|
|
33777
33788
|
AccountGUID: set.CatalogData.accountGuid,
|
|
33778
|
-
AccountSessionGUID: set.CatalogData.accountSessionGuid
|
|
33789
|
+
AccountSessionGUID: set.CatalogData.accountSessionGuid,
|
|
33790
|
+
// a reopened basket starts without the isIDMData param - another serie of an IDM set must not fall back to API2
|
|
33791
|
+
IsIDMFormat: set.CatalogData.isIDMFormat
|
|
33779
33792
|
});
|
|
33780
33793
|
case 10:
|
|
33781
33794
|
catalog = _context3.sent;
|
|
@@ -41607,7 +41620,7 @@ var DivaSet = /*#__PURE__*/function () {
|
|
|
41607
41620
|
break;
|
|
41608
41621
|
}
|
|
41609
41622
|
_context5.next = 3;
|
|
41610
|
-
return import('./DoorPlanner-
|
|
41623
|
+
return import('./DoorPlanner-13e3f516.js');
|
|
41611
41624
|
case 3:
|
|
41612
41625
|
_yield$import = _context5.sent;
|
|
41613
41626
|
DoorPlanner = _yield$import["default"];
|
|
@@ -43930,8 +43943,15 @@ var ArtifactGenerationError = /*#__PURE__*/function (_Error) {
|
|
|
43930
43943
|
function _createForOfIteratorHelper$6(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$6(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
43931
43944
|
function _unsupportedIterableToArray$6(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$6(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$6(r, a) : void 0; } }
|
|
43932
43945
|
function _arrayLikeToArray$6(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
43933
|
-
/**
|
|
43946
|
+
/** The sole accessory of every IDM mandatory set that is not planned yet (the spec selects it automatically); a set of several waits for the customer's choice. */
|
|
43934
43947
|
function mandatoryAccessoriesToPlan(relations, isPlanned) {
|
|
43948
|
+
return relations.filter(function (relation) {
|
|
43949
|
+
return relation.isSoleMandatory && !isPlanned(relation);
|
|
43950
|
+
});
|
|
43951
|
+
}
|
|
43952
|
+
|
|
43953
|
+
/** True when an IDM mandatory set has no planned accessory - at least one of each set has to be chosen. */
|
|
43954
|
+
function hasMandatorySetWithoutAccessory(relations, isPlanned) {
|
|
43935
43955
|
var bySet = new Map();
|
|
43936
43956
|
var _iterator = _createForOfIteratorHelper$6(relations),
|
|
43937
43957
|
_step;
|
|
@@ -43947,10 +43967,8 @@ function mandatoryAccessoriesToPlan(relations, isPlanned) {
|
|
|
43947
43967
|
} finally {
|
|
43948
43968
|
_iterator.f();
|
|
43949
43969
|
}
|
|
43950
|
-
return _toConsumableArray(bySet.values()).
|
|
43970
|
+
return _toConsumableArray(bySet.values()).some(function (members) {
|
|
43951
43971
|
return !members.some(isPlanned);
|
|
43952
|
-
}).map(function (members) {
|
|
43953
|
-
return members[0];
|
|
43954
43972
|
});
|
|
43955
43973
|
}
|
|
43956
43974
|
|
|
@@ -45148,7 +45166,19 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
45148
45166
|
return _planMandatoryAccessoires.apply(this, arguments);
|
|
45149
45167
|
}
|
|
45150
45168
|
return planMandatoryAccessoires;
|
|
45151
|
-
}()
|
|
45169
|
+
}() /** IDM: true when a main article of the sets has a mandatory Zusatzartikel set without any planned accessory. */
|
|
45170
|
+
}, {
|
|
45171
|
+
key: "hasMissingMandatoryAccessories",
|
|
45172
|
+
value: function hasMissingMandatoryAccessories(sets) {
|
|
45173
|
+
return Object.values(sets).some(function (set) {
|
|
45174
|
+
return Object.values(set.getDivaArticles()).some(function (article) {
|
|
45175
|
+
var _article$catalogArtic2;
|
|
45176
|
+
return !article.relatedToBasketId && hasMandatorySetWithoutAccessory((_article$catalogArtic2 = article.catalogArticle.articleRelations) !== null && _article$catalogArtic2 !== void 0 ? _article$catalogArtic2 : [], function (r) {
|
|
45177
|
+
return article.curQunatityOfAccessoire(r.articleCodex, r.catalogCodex) > 0;
|
|
45178
|
+
});
|
|
45179
|
+
});
|
|
45180
|
+
});
|
|
45181
|
+
}
|
|
45152
45182
|
}, {
|
|
45153
45183
|
key: "updateAccessoireQuantity",
|
|
45154
45184
|
value: function () {
|
|
@@ -46124,7 +46154,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
46124
46154
|
for (var key in divaArticles) {
|
|
46125
46155
|
var article = divaArticles[key];
|
|
46126
46156
|
if (article.plannerData) {
|
|
46127
|
-
var _article$typeNr, _article$imageUrl, _article$
|
|
46157
|
+
var _article$typeNr, _article$imageUrl, _article$catalogArtic3, _article$catalogArtic4, _article$catalogArtic5, _article$actPlannerDa, _article$actPlannerDa2, _article$posNr;
|
|
46128
46158
|
plannedElements.push({
|
|
46129
46159
|
setId: set.getSetId(),
|
|
46130
46160
|
basketId: article.basketId,
|
|
@@ -46136,13 +46166,13 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
46136
46166
|
typeNr: (_article$typeNr = article.typeNr) !== null && _article$typeNr !== void 0 ? _article$typeNr : '',
|
|
46137
46167
|
image: (_article$imageUrl = article.imageUrl) !== null && _article$imageUrl !== void 0 ? _article$imageUrl : '',
|
|
46138
46168
|
price: article.price,
|
|
46139
|
-
contentItemId: (_article$
|
|
46140
|
-
groupContentItemId: (_article$
|
|
46169
|
+
contentItemId: (_article$catalogArtic3 = article.catalogArticle) === null || _article$catalogArtic3 === void 0 ? void 0 : _article$catalogArtic3.contentItemId,
|
|
46170
|
+
groupContentItemId: (_article$catalogArtic4 = article.catalogArticle) === null || _article$catalogArtic4 === void 0 ? void 0 : _article$catalogArtic4.groupContentItemId,
|
|
46141
46171
|
depth: article.depth,
|
|
46142
46172
|
width: article.width,
|
|
46143
46173
|
height: article.height,
|
|
46144
46174
|
sizeInfo: DivaUtils.sizeFormatter(article.catalogArticle, set.i18n, true, ':'),
|
|
46145
|
-
longDescription: (_article$
|
|
46175
|
+
longDescription: (_article$catalogArtic5 = article.catalogArticle) === null || _article$catalogArtic5 === void 0 ? void 0 : _article$catalogArtic5.longDescription,
|
|
46146
46176
|
incomplete: article.incomplete,
|
|
46147
46177
|
isAccessoire: !!article.relatedToBasketId,
|
|
46148
46178
|
avlFilter: (_article$actPlannerDa = article.actPlannerData) === null || _article$actPlannerDa === void 0 ? void 0 : _article$actPlannerDa.AVLFilter,
|
|
@@ -49561,7 +49591,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
49561
49591
|
break;
|
|
49562
49592
|
case 3:
|
|
49563
49593
|
_context12.next = 5;
|
|
49564
|
-
return import('./PfisterWWSHandler-
|
|
49594
|
+
return import('./PfisterWWSHandler-609359bd.js');
|
|
49565
49595
|
case 5:
|
|
49566
49596
|
_yield$import = _context12.sent;
|
|
49567
49597
|
PfisterWWSHandler = _yield$import["default"];
|
|
@@ -49569,7 +49599,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
49569
49599
|
return _context12.abrupt("break", 27);
|
|
49570
49600
|
case 9:
|
|
49571
49601
|
_context12.next = 11;
|
|
49572
|
-
return import('./LiviqueWWSHandler-
|
|
49602
|
+
return import('./LiviqueWWSHandler-75174346.js');
|
|
49573
49603
|
case 11:
|
|
49574
49604
|
_yield$import2 = _context12.sent;
|
|
49575
49605
|
LiviqueWWSHandler = _yield$import2["default"];
|
|
@@ -49577,7 +49607,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
49577
49607
|
return _context12.abrupt("break", 27);
|
|
49578
49608
|
case 15:
|
|
49579
49609
|
_context12.next = 17;
|
|
49580
|
-
return import('./SeriousBasketHandler-
|
|
49610
|
+
return import('./SeriousBasketHandler-99351c80.js');
|
|
49581
49611
|
case 17:
|
|
49582
49612
|
_yield$import3 = _context12.sent;
|
|
49583
49613
|
SeriousWWSHandler = _yield$import3["default"];
|
|
@@ -49585,7 +49615,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
49585
49615
|
return _context12.abrupt("break", 27);
|
|
49586
49616
|
case 21:
|
|
49587
49617
|
_context12.next = 23;
|
|
49588
|
-
return import('./StandardWWSHandler-
|
|
49618
|
+
return import('./StandardWWSHandler-346b237a.js');
|
|
49589
49619
|
case 23:
|
|
49590
49620
|
_yield$import4 = _context12.sent;
|
|
49591
49621
|
StandardWWSHandler = _yield$import4["default"];
|
|
@@ -50972,7 +51002,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
50972
51002
|
//If we need real time rendering initialize the SignalR and 3D host connection Handler
|
|
50973
51003
|
bootMark('signalr: chunk import start');
|
|
50974
51004
|
_context3.next = 3;
|
|
50975
|
-
return import('./Host3DSignalR-
|
|
51005
|
+
return import('./Host3DSignalR-1436de3c.js');
|
|
50976
51006
|
case 3:
|
|
50977
51007
|
_yield$import = _context3.sent;
|
|
50978
51008
|
Host3DSignalR = _yield$import["default"];
|
|
@@ -52717,7 +52747,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
52717
52747
|
break;
|
|
52718
52748
|
case 8:
|
|
52719
52749
|
_context5.next = 10;
|
|
52720
|
-
return import('./DivaStandardPlanner-
|
|
52750
|
+
return import('./DivaStandardPlanner-917b4ed5.js');
|
|
52721
52751
|
case 10:
|
|
52722
52752
|
_yield$import = _context5.sent;
|
|
52723
52753
|
DivaStandardPlanner = _yield$import["default"];
|
|
@@ -52728,7 +52758,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
52728
52758
|
return _context5.abrupt("break", 21);
|
|
52729
52759
|
case 15:
|
|
52730
52760
|
_context5.next = 17;
|
|
52731
|
-
return import('./DivaBoxPlanner-
|
|
52761
|
+
return import('./DivaBoxPlanner-1a633560.js');
|
|
52732
52762
|
case 17:
|
|
52733
52763
|
_yield$import2 = _context5.sent;
|
|
52734
52764
|
DivaBoxPlanner = _yield$import2["default"];
|
|
@@ -56046,6 +56076,13 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
56046
56076
|
value: function checkIfAllOptionsAreDefined() {
|
|
56047
56077
|
return setHandlerInstance.checkIfAllOptionsAreDefined(this.sets);
|
|
56048
56078
|
}
|
|
56079
|
+
|
|
56080
|
+
/** IDM: true when a planned main article has a mandatory Zusatzartikel set without any planned accessory. */
|
|
56081
|
+
}, {
|
|
56082
|
+
key: "hasMissingMandatoryAccessories",
|
|
56083
|
+
value: function hasMissingMandatoryAccessories() {
|
|
56084
|
+
return setHandlerInstance.hasMissingMandatoryAccessories(this.sets);
|
|
56085
|
+
}
|
|
56049
56086
|
}, {
|
|
56050
56087
|
key: "changeOnFavorites",
|
|
56051
56088
|
value: function changeOnFavorites(opt, opvs, targetArticles, remove) {
|
package/build/esm/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { I as ArtifactGenerationError, h as CatalogPlannerArticleData, C as Cell, e as DivaArticle, a as DivaArticleHandler, g as DivaBasketHandler, f as DivaCatalogData, b as DivaSetHandler, G as Grid, J as JsonDataCache, O as OptionCatalogData, i as PROPERTY_SCHEMAS, P as PlannerElementData, R as Rendering, c as Vector2, V as Vector3, w as Vector4, d as bootMark, q as bootMarksEnabled, t as bootNetworkMark, u as bootNow, v as bootRequestName, A as collectStructureStepKeys, x as creatRenderOrders, j as decodePropertyValue, D as default, n as editorKindOf, k as encodePropertyValue, y as getOrigProductId, o as getSeriousSetNamePlaceholder, z as headlessSession, l as loadAndRepairBasket, p as propertyEncodingOf, m as propertyValueProblem, r as rawStringOf, E as runHeadlessArtifactPass, F as runHeadlessArtifactPassBatch } from './index-
|
|
1
|
+
export { I as ArtifactGenerationError, h as CatalogPlannerArticleData, C as Cell, e as DivaArticle, a as DivaArticleHandler, g as DivaBasketHandler, f as DivaCatalogData, b as DivaSetHandler, G as Grid, J as JsonDataCache, O as OptionCatalogData, i as PROPERTY_SCHEMAS, P as PlannerElementData, R as Rendering, c as Vector2, V as Vector3, w as Vector4, d as bootMark, q as bootMarksEnabled, t as bootNetworkMark, u as bootNow, v as bootRequestName, A as collectStructureStepKeys, x as creatRenderOrders, j as decodePropertyValue, D as default, n as editorKindOf, k as encodePropertyValue, y as getOrigProductId, o as getSeriousSetNamePlaceholder, z as headlessSession, l as loadAndRepairBasket, p as propertyEncodingOf, m as propertyValueProblem, r as rawStringOf, E as runHeadlessArtifactPass, F as runHeadlessArtifactPassBatch } from './index-14c57a90.js';
|
|
2
2
|
export { DockingPoint } from '@crystaldesign/planner-2d-core';
|
|
3
3
|
import '@babel/runtime/helpers/slicedToArray';
|
|
4
4
|
import '@babel/runtime/helpers/asyncToGenerator';
|
|
@@ -11,9 +11,13 @@ export interface AccessoireItemType {
|
|
|
11
11
|
minQuantity: number;
|
|
12
12
|
maxQuantity: number;
|
|
13
13
|
positionGroupNr?: number;
|
|
14
|
-
/** IDM: the
|
|
14
|
+
/** IDM: the relation knows no cap - minQuantity is the binding Pflichtanzahl (MANDATORY_QUANTITY), maxQuantity is unused. */
|
|
15
|
+
isIDMRelation?: boolean;
|
|
16
|
+
/** IDM: the mandatory set (SET_NO) the accessory belongs to - at least one accessory per set has to be planned. */
|
|
15
17
|
mandatorySetNo?: number;
|
|
16
|
-
/** IDM: the
|
|
18
|
+
/** IDM: the only accessory of its mandatory set - planned with its main article and never reduced below its Pflichtanzahl. */
|
|
19
|
+
isSoleMandatory?: boolean;
|
|
20
|
+
/** IDM: the non-binding empfohlene Anzahl (OPTIONAL_QUANTITY) - planning more than it only warns. */
|
|
17
21
|
suggestedQuantity?: number;
|
|
18
22
|
isPlannerElement: boolean;
|
|
19
23
|
isVisualized: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccessoireItemType.d.ts","sourceRoot":"","sources":["../../../../../../src/interface/Articles/AccessoireItemType.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEpD,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,
|
|
1
|
+
{"version":3,"file":"AccessoireItemType.d.ts","sourceRoot":"","sources":["../../../../../../src/interface/Articles/AccessoireItemType.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEpD,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,6HAA6H;IAC7H,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,mHAAmH;IACnH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,8HAA8H;IAC9H,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,qGAAqG;IACrG,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,gBAAgB,EAAE,OAAO,CAAC;IAC1B,YAAY,EAAE,OAAO,CAAC;IACtB,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,OAAO,CAAC;IAChB,cAAc,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,EAAE,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAChE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,mBAAmB,CAAC,EAAE;QAAE,OAAO,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC;QAAC,SAAS,EAAE,OAAO,CAAC,OAAO,CAAC,CAAA;KAAE,CAAC;IAC7E,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,EAAE,QAAQ,EAAE,CAAC;CACvB"}
|