@crystaldesign/web-planner-logic 26.5.0-beta.3 → 26.5.0-beta.31
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-d378bbb7.js → DivaBoxPlanner-6004fce9.js} +7 -5
- package/build/cjs/{DivaStandardPlanner-4bab9fb6.js → DivaStandardPlanner-9c4e8626.js} +2 -2
- package/build/cjs/{DoorPlanner-d492a9d9.js → DoorPlanner-df44d442.js} +1 -1
- package/build/cjs/{Host3DSignalR-e8e59f7a.js → Host3DSignalR-e1aec0e2.js} +1 -1
- package/build/cjs/{LiviqueWWSHandler-9b3939c8.js → LiviqueWWSHandler-f2dea1f8.js} +1 -1
- package/build/cjs/{PfisterWWSHandler-7eb044db.js → PfisterWWSHandler-662cae94.js} +1 -1
- package/build/cjs/{PlannerHandler2D-89255bdd.js → PlannerHandler2D-87f68503.js} +1 -1
- package/build/cjs/{SeriousBasketHandler-bbe6859a.js → SeriousBasketHandler-6310d3be.js} +1 -1
- package/build/cjs/{ShelfPlanner-2a0fb19d.js → ShelfPlanner-d3bdc0de.js} +1 -1
- package/build/cjs/{StandardWWSHandler-3391c7ed.js → StandardWWSHandler-b055f6a4.js} +1 -1
- package/build/cjs/{index-a8cd3c1d.js → index-a90339fa.js} +93 -60
- package/build/cjs/index.js +1 -1
- package/build/esm/{DivaBoxPlanner-21211eeb.js → DivaBoxPlanner-be35d8b5.js} +7 -5
- package/build/esm/{DivaStandardPlanner-95dd670c.js → DivaStandardPlanner-cf15a3c5.js} +2 -2
- package/build/esm/{DoorPlanner-56b674bf.js → DoorPlanner-353867f8.js} +1 -1
- package/build/esm/{Host3DSignalR-0c56c943.js → Host3DSignalR-e9e1e7b5.js} +1 -1
- package/build/esm/{LiviqueWWSHandler-0f7a4bcb.js → LiviqueWWSHandler-6e78c09c.js} +1 -1
- package/build/esm/{PfisterWWSHandler-7a25803c.js → PfisterWWSHandler-142e2ef6.js} +1 -1
- package/build/esm/{PlannerHandler2D-2df72989.js → PlannerHandler2D-bcd064d5.js} +1 -1
- package/build/esm/{SeriousBasketHandler-6c14c04e.js → SeriousBasketHandler-deedf4e8.js} +1 -1
- package/build/esm/{ShelfPlanner-9c7ffe88.js → ShelfPlanner-8b97bd86.js} +1 -1
- package/build/esm/{StandardWWSHandler-3a3026aa.js → StandardWWSHandler-ddbb240d.js} +1 -1
- package/build/esm/{index-79dd365f.js → index-b964d887.js} +93 -60
- package/build/esm/index.js +1 -1
- package/build/types/web-planner-logic/src/index.d.ts +1 -1
- package/build/types/web-planner-logic/src/index.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/API/Checkout.d.ts +27 -1
- package/build/types/web-planner-logic/src/interface/API/Checkout.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/API/ViewConfigDataType.d.ts +2 -0
- package/build/types/web-planner-logic/src/interface/API/ViewConfigDataType.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/Articles/ArticleDataType.d.ts +1 -0
- package/build/types/web-planner-logic/src/interface/Articles/ArticleDataType.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/DivaArticle.d.ts +1 -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.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/DivaApiHandler.d.ts +9 -8
- package/build/types/web-planner-logic/src/logic/DivaApiHandler.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Planner/BoxPlanner/BoxPlannerGrid.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/CatalogOptionValueData.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -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-b964d887.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-bcd064d5.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-b964d887.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-b964d887.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-b964d887.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-b964d887.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-b964d887.js';
|
|
7
7
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
8
8
|
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
9
9
|
import { fabric } from 'fabric';
|
|
@@ -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-b964d887.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-b964d887.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-b964d887.js';
|
|
4
4
|
import '@babel/runtime/helpers/slicedToArray';
|
|
5
5
|
import '@babel/runtime/helpers/asyncToGenerator';
|
|
6
6
|
import '@babel/runtime/helpers/defineProperty';
|
|
@@ -581,10 +581,11 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
581
581
|
value: function getPrintOptions() {
|
|
582
582
|
var _this$divaWebConfigDa11;
|
|
583
583
|
var reportConfig = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : (_this$divaWebConfigDa11 = this.divaWebConfigData) === null || _this$divaWebConfigDa11 === void 0 ? void 0 : _this$divaWebConfigDa11.reportConfig;
|
|
584
|
-
var
|
|
584
|
+
var has3D = arguments.length > 1 ? arguments[1] : undefined;
|
|
585
|
+
var arReady = arguments.length > 2 ? arguments[2] : undefined;
|
|
585
586
|
return {
|
|
586
587
|
Gdpr: !!(reportConfig !== null && reportConfig !== void 0 && reportConfig.printWithGDPR),
|
|
587
|
-
PlanningSketch: !!(reportConfig !== null && reportConfig !== void 0 && reportConfig.printWithPlanningSketch),
|
|
588
|
+
PlanningSketch: !!(reportConfig !== null && reportConfig !== void 0 && reportConfig.printWithPlanningSketch) && has3D,
|
|
588
589
|
Remark: !!(reportConfig !== null && reportConfig !== void 0 && reportConfig.printWithRemark),
|
|
589
590
|
Prices: !!(reportConfig !== null && reportConfig !== void 0 && reportConfig.printWithPrices),
|
|
590
591
|
AllPrices: !!(reportConfig !== null && reportConfig !== void 0 && reportConfig.printWithAllPrices),
|
|
@@ -1086,57 +1087,63 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
1086
1087
|
}
|
|
1087
1088
|
|
|
1088
1089
|
/******************IDM Service CALLs */
|
|
1090
|
+
}, {
|
|
1091
|
+
key: "isSeller",
|
|
1092
|
+
get: function get() {
|
|
1093
|
+
return !this.useEnricherService && !this.useIDMService;
|
|
1094
|
+
}
|
|
1089
1095
|
}, {
|
|
1090
1096
|
key: "idmPrefix",
|
|
1091
1097
|
get: function get() {
|
|
1092
1098
|
if (this.useEnricherService && !this.packageId) throw new Error('packageId as parameter not missing');
|
|
1093
|
-
return this.useEnricherService ? '/wysiwyg/' + this.packageId : this.useIDMService ? '' : '/live';
|
|
1099
|
+
return this.useEnricherService ? '/wysiwyg/' + this.packageId : this.useIDMService ? '' : '/live/' + this.organization._id;
|
|
1094
1100
|
}
|
|
1095
1101
|
}, {
|
|
1096
1102
|
key: "getIDMCatalog",
|
|
1097
1103
|
value: function getIDMCatalog(catalogId) {
|
|
1104
|
+
if (this.isSeller) return this.idmPrefix + '/packages' + (!this.useEnricherService ? '/' + catalogId + '/catalog' : '');
|
|
1098
1105
|
return this.idmPrefix + '/catalogs' + (!this.useEnricherService ? '/' + catalogId : '');
|
|
1099
1106
|
}
|
|
1100
1107
|
}, {
|
|
1101
1108
|
key: "getIDMSerieByNo",
|
|
1102
|
-
value: function getIDMSerieByNo(
|
|
1103
|
-
return this.idmPrefix + '/catalogs/' +
|
|
1109
|
+
value: function getIDMSerieByNo(packageId, serieId, serieNo) {
|
|
1110
|
+
return this.idmPrefix + (this.isSeller ? '/packages/' : '/catalogs/') + packageId + '/series/' + (this.useIDMService ? serieId : serieNo);
|
|
1104
1111
|
}
|
|
1105
1112
|
}, {
|
|
1106
1113
|
key: "getIDMItems",
|
|
1107
|
-
value: function getIDMItems(
|
|
1108
|
-
return this.idmPrefix + '/catalogs/' +
|
|
1114
|
+
value: function getIDMItems(packageId, serieId, serieNo, typeNos) {
|
|
1115
|
+
return this.idmPrefix + (this.isSeller ? '/packages/' : '/catalogs/') + packageId + '/series/' + (this.useIDMService ? serieId : serieNo) + '/items' + (typeNos !== null && typeNos !== void 0 && typeNos.length ? '?filter=' + typeNos.map(function (t) {
|
|
1109
1116
|
return encodeURIComponent('typeNo==' + t);
|
|
1110
1117
|
}).join(' || ') : '?fields=properties;serieNo;featureClassRefNo;priceTypeRef;itemIdentification;catalogPage;weightBrutto;weightNetto;volume;minimumDeliveryTime;widthBasicShapeNominalValue;widthBasicShapeFrom;widthBasicShapeTo;widthBasicShapeStepSize;heightBasicShapeNominalValue;heightBasicShapeFrom;heightBasicShapeTo;heightBasicShapeStepSize;depthBasicShapeNominalValue;depthBasicShapeFrom;depthBasicShapeTo;depthBasicShapeStepSize;typeKey;eClassNo;detailInfoRefs;detailInfos;partListExclusive;partListRef;decisionRefs;typeNo;sequenceNo;edpNumber;eanNumber;shortText;fullText;planningAdvice;salesNumber;avrFilter;avlFilter');
|
|
1111
1118
|
}
|
|
1112
1119
|
}, {
|
|
1113
1120
|
key: "getIDMFeatures",
|
|
1114
|
-
value: function getIDMFeatures(
|
|
1115
|
-
return this.idmPrefix + '/catalogs/' +
|
|
1121
|
+
value: function getIDMFeatures(packageId, features) {
|
|
1122
|
+
return this.idmPrefix + (this.isSeller ? '/packages/' : '/catalogs/') + packageId + '/features' + '?featureNos=' + features.join(';') + (this.smSupplierNr ? '&supplierNo=' + this.smSupplierNr : '');
|
|
1116
1123
|
}
|
|
1117
1124
|
}, {
|
|
1118
1125
|
key: "getIDMDecisions",
|
|
1119
|
-
value: function getIDMDecisions(
|
|
1120
|
-
return this.idmPrefix + '/catalogs/' +
|
|
1126
|
+
value: function getIDMDecisions(packageId, decisions) {
|
|
1127
|
+
return this.idmPrefix + (this.isSeller ? '/packages/' : '/catalogs/') + packageId + '/decisions' + '?decisionNos=' + decisions.join(';') + (this.smSupplierNr ? '&supplierNo=' + this.smSupplierNr : '');
|
|
1121
1128
|
}
|
|
1122
1129
|
}, {
|
|
1123
1130
|
key: "getIDMDetailInfos",
|
|
1124
|
-
value: function getIDMDetailInfos(
|
|
1125
|
-
return this.idmPrefix + '/catalogs/' +
|
|
1131
|
+
value: function getIDMDetailInfos(packageId, detailinfos) {
|
|
1132
|
+
return this.idmPrefix + (this.isSeller ? '/packages/' : '/catalogs/') + packageId + '/detailinfos' + '?filter=' + detailinfos.map(function (d) {
|
|
1126
1133
|
return encodeURIComponent('featureClassNo==' + d);
|
|
1127
1134
|
}).join(' || ');
|
|
1128
1135
|
}
|
|
1129
1136
|
}, {
|
|
1130
1137
|
key: "getIDMFeatureClass",
|
|
1131
|
-
value: function getIDMFeatureClass(
|
|
1132
|
-
return this.idmPrefix + '/catalogs/' +
|
|
1138
|
+
value: function getIDMFeatureClass(packageId, featureclasses) {
|
|
1139
|
+
return this.idmPrefix + (this.isSeller ? '/packages/' : '/catalogs/') + packageId + '/featureclasses' + '?filter=' + featureclasses.map(function (f) {
|
|
1133
1140
|
return encodeURIComponent('featureClassNo==' + f);
|
|
1134
1141
|
}).join(' || ');
|
|
1135
1142
|
}
|
|
1136
1143
|
}, {
|
|
1137
1144
|
key: "getIDMPriceFeatureGroups",
|
|
1138
|
-
value: function getIDMPriceFeatureGroups(
|
|
1139
|
-
return this.idmPrefix + '/catalogs/' +
|
|
1145
|
+
value: function getIDMPriceFeatureGroups(packageId, pricefeaturegroups) {
|
|
1146
|
+
return this.idmPrefix + (this.isSeller ? '/packages/' : '/catalogs/') + packageId + '/pricefeaturegroups' + '?filter=' + pricefeaturegroups.map(function (p) {
|
|
1140
1147
|
return encodeURIComponent('priceFeatureGroupNo==' + p);
|
|
1141
1148
|
}).join(' || ');
|
|
1142
1149
|
}
|
|
@@ -16374,7 +16381,11 @@ var OptionValueCatalogData = /*#__PURE__*/function () {
|
|
|
16374
16381
|
return undefined;
|
|
16375
16382
|
});
|
|
16376
16383
|
this.opv = opv;
|
|
16377
|
-
opv.
|
|
16384
|
+
if (opv.imagePaletteColor) {
|
|
16385
|
+
this.opv.colorGroups = [opv.imagePaletteColor];
|
|
16386
|
+
} else {
|
|
16387
|
+
opv.colorGroups = this.mapRALColorToGroup();
|
|
16388
|
+
}
|
|
16378
16389
|
var metaDatas = setOptionValueProperties(catalogData, this.opv.propertyObj, (_this$opv$property = this.opv.property) !== null && _this$opv$property !== void 0 ? _this$opv$property : []);
|
|
16379
16390
|
this.opv.metaData = metaDatas;
|
|
16380
16391
|
}
|
|
@@ -17879,6 +17890,7 @@ function getCatalogOptionValueDataType(codex, jsonOPV, catalogData) {
|
|
|
17879
17890
|
isOPVG: jsonOPV.IsOPVG && jsonOPV.IsOPVG == '1' ? true : false,
|
|
17880
17891
|
isFreeText: jsonOPV.FreeText && jsonOPV.FreeText == 'True' ? true : false,
|
|
17881
17892
|
rals: jsonOPV.RALs,
|
|
17893
|
+
imagePaletteColor: jsonOPV.ImagePaletteColor,
|
|
17882
17894
|
isCustomAttribute: jsonOPV.IsCustomAttribute,
|
|
17883
17895
|
measureMinimum: jsonOPV.MeasureMinimum,
|
|
17884
17896
|
measureMaximum: jsonOPV.MeasureMaximum,
|
|
@@ -19580,12 +19592,12 @@ function loadMoreFromIDMArticles(_x, _x2) {
|
|
|
19580
19592
|
}
|
|
19581
19593
|
function _loadMoreFromIDMArticles() {
|
|
19582
19594
|
_loadMoreFromIDMArticles = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(catalogArticleDatas, set) {
|
|
19583
|
-
var items, _loop3, i, toLoadDecisionIds, toLoadPFGroups, toLoadFeatureClassRefNo, promises, _yield$Promise$all, _yield$Promise$all2, featureClasses, priceFeatureGroups, decisions, _i4, _i5, _i6, _catalogArticleData$d2, catalogArticleData, toLoadFeatures, features, _loop4, _i7, _loop6, _i8;
|
|
19595
|
+
var items, _loop3, i, toLoadDecisionIds, toLoadPFGroups, toLoadFeatureClassRefNo, promises, _yield$Promise$all, _yield$Promise$all2, featureClasses, priceFeatureGroups, decisions, _i4, _decisions$map, loadedIds, missingIds, _i5, _i6, _catalogArticleData$d2, catalogArticleData, toLoadFeatures, features, _loop4, _i7, _loop6, _i8;
|
|
19584
19596
|
return _regeneratorRuntime.wrap(function _callee$(_context5) {
|
|
19585
19597
|
while (1) switch (_context5.prev = _context5.next) {
|
|
19586
19598
|
case 0:
|
|
19587
19599
|
_context5.next = 2;
|
|
19588
|
-
return set.api.getDataCache(set.api.getIDMItems(set.CatalogData.
|
|
19600
|
+
return set.api.getDataCache(set.api.getIDMItems(set.CatalogData.accountGuid, set.CatalogData.serieId, set.CatalogData.catalogCodex, catalogArticleDatas.map(function (a) {
|
|
19589
19601
|
return a.articleCodex;
|
|
19590
19602
|
})), undefined, undefined, 'enricher');
|
|
19591
19603
|
case 2:
|
|
@@ -19635,7 +19647,7 @@ function _loadMoreFromIDMArticles() {
|
|
|
19635
19647
|
}).map(function (a) {
|
|
19636
19648
|
return a.featureClassRefNo;
|
|
19637
19649
|
})));
|
|
19638
|
-
promises = [set.api.getDataCache(set.api.getIDMFeatureClass(set.CatalogData.
|
|
19650
|
+
promises = [set.api.getDataCache(set.api.getIDMFeatureClass(set.CatalogData.accountGuid, toLoadFeatureClassRefNo), undefined, undefined, 'enricher'), toLoadPFGroups.length ? set.api.getDataCache(set.api.getIDMPriceFeatureGroups(set.CatalogData.accountGuid, toLoadPFGroups), undefined, undefined, 'enricher') : undefined, toLoadDecisionIds.length ? set.api.getDataCache(set.api.getIDMDecisions(set.CatalogData.accountGuid, toLoadDecisionIds), undefined, undefined, 'enricher') : undefined];
|
|
19639
19651
|
_context5.next = 16;
|
|
19640
19652
|
return Promise.all(promises);
|
|
19641
19653
|
case 16:
|
|
@@ -19650,11 +19662,17 @@ function _loadMoreFromIDMArticles() {
|
|
|
19650
19662
|
}
|
|
19651
19663
|
}
|
|
19652
19664
|
if (!(toLoadDecisionIds.length !== 0 && toLoadDecisionIds.length != (decisions === null || decisions === void 0 ? void 0 : decisions.length))) {
|
|
19653
|
-
_context5.next =
|
|
19665
|
+
_context5.next = 26;
|
|
19654
19666
|
break;
|
|
19655
19667
|
}
|
|
19656
|
-
|
|
19657
|
-
|
|
19668
|
+
loadedIds = new Set((_decisions$map = decisions === null || decisions === void 0 ? void 0 : decisions.map(function (d) {
|
|
19669
|
+
return d.decisionNo;
|
|
19670
|
+
})) !== null && _decisions$map !== void 0 ? _decisions$map : []);
|
|
19671
|
+
missingIds = toLoadDecisionIds.filter(function (id) {
|
|
19672
|
+
return !loadedIds.has(id);
|
|
19673
|
+
});
|
|
19674
|
+
throw new Error("loading decisions failed \u2013 missing: [".concat(missingIds.join(', '), "]"));
|
|
19675
|
+
case 26:
|
|
19658
19676
|
if (priceFeatureGroups) {
|
|
19659
19677
|
for (_i5 = 0; _i5 < priceFeatureGroups.length; _i5++) {
|
|
19660
19678
|
set.CatalogData.loadedPriceFeaturegroups.push(initializePriceFeatureGroups(priceFeatureGroups[_i5], set.CatalogData.idmOptionGroups));
|
|
@@ -19671,12 +19689,12 @@ function _loadMoreFromIDMArticles() {
|
|
|
19671
19689
|
});
|
|
19672
19690
|
toLoadFeatures = getFeatures(set, featureClasses);
|
|
19673
19691
|
if (!toLoadFeatures.length) {
|
|
19674
|
-
_context5.next =
|
|
19692
|
+
_context5.next = 41;
|
|
19675
19693
|
break;
|
|
19676
19694
|
}
|
|
19677
|
-
_context5.next =
|
|
19678
|
-
return set.api.getDataCache(set.api.getIDMFeatures(set.CatalogData.
|
|
19679
|
-
case
|
|
19695
|
+
_context5.next = 33;
|
|
19696
|
+
return set.api.getDataCache(set.api.getIDMFeatures(set.CatalogData.accountGuid, toLoadFeatures), undefined, undefined, 'enricher');
|
|
19697
|
+
case 33:
|
|
19680
19698
|
features = _context5.sent;
|
|
19681
19699
|
_loop4 = /*#__PURE__*/_regeneratorRuntime.mark(function _loop4() {
|
|
19682
19700
|
var feature, insertIndex, k, _loop5, j;
|
|
@@ -19758,17 +19776,17 @@ function _loadMoreFromIDMArticles() {
|
|
|
19758
19776
|
}, _loop4);
|
|
19759
19777
|
});
|
|
19760
19778
|
_i7 = 0;
|
|
19761
|
-
case
|
|
19779
|
+
case 36:
|
|
19762
19780
|
if (!(_i7 < features.length)) {
|
|
19763
|
-
_context5.next =
|
|
19781
|
+
_context5.next = 41;
|
|
19764
19782
|
break;
|
|
19765
19783
|
}
|
|
19766
|
-
return _context5.delegateYield(_loop4(), "t1",
|
|
19767
|
-
case
|
|
19784
|
+
return _context5.delegateYield(_loop4(), "t1", 38);
|
|
19785
|
+
case 38:
|
|
19768
19786
|
_i7++;
|
|
19769
|
-
_context5.next =
|
|
19787
|
+
_context5.next = 36;
|
|
19770
19788
|
break;
|
|
19771
|
-
case
|
|
19789
|
+
case 41:
|
|
19772
19790
|
_loop6 = /*#__PURE__*/_regeneratorRuntime.mark(function _loop6() {
|
|
19773
19791
|
var catalogArticleData, featureClass, features, j;
|
|
19774
19792
|
return _regeneratorRuntime.wrap(function _loop6$(_context4) {
|
|
@@ -19795,21 +19813,21 @@ function _loadMoreFromIDMArticles() {
|
|
|
19795
19813
|
}, _loop6);
|
|
19796
19814
|
});
|
|
19797
19815
|
_i8 = 0;
|
|
19798
|
-
case
|
|
19816
|
+
case 43:
|
|
19799
19817
|
if (!(_i8 < catalogArticleDatas.length)) {
|
|
19800
|
-
_context5.next =
|
|
19818
|
+
_context5.next = 48;
|
|
19801
19819
|
break;
|
|
19802
19820
|
}
|
|
19803
|
-
return _context5.delegateYield(_loop6(), "t2",
|
|
19804
|
-
case
|
|
19821
|
+
return _context5.delegateYield(_loop6(), "t2", 45);
|
|
19822
|
+
case 45:
|
|
19805
19823
|
_i8++;
|
|
19806
|
-
_context5.next =
|
|
19824
|
+
_context5.next = 43;
|
|
19807
19825
|
break;
|
|
19808
|
-
case
|
|
19826
|
+
case 48:
|
|
19809
19827
|
catalogArticleDatas.map(function (c) {
|
|
19810
19828
|
return c.areOptionsLoaded = true;
|
|
19811
19829
|
});
|
|
19812
|
-
case
|
|
19830
|
+
case 49:
|
|
19813
19831
|
case "end":
|
|
19814
19832
|
return _context5.stop();
|
|
19815
19833
|
}
|
|
@@ -20193,15 +20211,16 @@ function ownKeys$l(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymb
|
|
|
20193
20211
|
function _objectSpread$l(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$l(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$l(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
20194
20212
|
var LOG$j = DivaUtils.initLog('Planner', 'WEB-PLANNER-LOGIC');
|
|
20195
20213
|
function initIDMCatalogData(serie, orderSet, api) {
|
|
20196
|
-
var _serie$
|
|
20214
|
+
var _serie$decisions, _serie$decisions2;
|
|
20197
20215
|
var catalog = serie.catalogData;
|
|
20198
20216
|
var catalogData = {
|
|
20199
|
-
accountGuid:
|
|
20217
|
+
accountGuid: orderSet.AccountGUID,
|
|
20200
20218
|
serieId: serie._id,
|
|
20201
20219
|
accountName: '',
|
|
20202
20220
|
accountLogo: '',
|
|
20203
20221
|
collectionGuid: serie.catalogId,
|
|
20204
|
-
catalogGuid:
|
|
20222
|
+
catalogGuid: '',
|
|
20223
|
+
//serie.enricherPackageId,
|
|
20205
20224
|
catalogCodex: serie.serieNo.toString(),
|
|
20206
20225
|
catalogName: DivaUtils.getLocals(serie.seriesName, api.getLanguageLowercase()),
|
|
20207
20226
|
// name des Kataloges
|
|
@@ -20258,7 +20277,7 @@ function initIDMArticles(jsonItems, catalogData) {
|
|
|
20258
20277
|
}
|
|
20259
20278
|
}
|
|
20260
20279
|
function getCatalogArticle(article, catalogData) {
|
|
20261
|
-
var _catalogData$catalogM, _ref, _articleMask$name, _article$fullText, _article$fullText2, _article$fullText3, _articleMask$properti, _article$depthBasicSh, _article$depthBasicSh2, _article$depthBasicSh3, _article$widthBasicSh, _article$widthBasicSh2, _article$widthBasicSh3, _article$heightBasicS, _article$heightBasicS2, _article$heightBasicS3, _article$weightNetto, _article$detailInfos, _article$detailInfos2, _article$detailInfos3, _articleMask$groupnam, _articleMask$groupnam2;
|
|
20280
|
+
var _catalogData$catalogM, _article$typeKey, _ref, _articleMask$name, _article$fullText, _article$fullText2, _article$fullText3, _articleMask$properti, _article$depthBasicSh, _article$depthBasicSh2, _article$depthBasicSh3, _article$widthBasicSh, _article$widthBasicSh2, _article$widthBasicSh3, _article$heightBasicS, _article$heightBasicS2, _article$heightBasicS3, _article$weightNetto, _article$detailInfos, _article$detailInfos2, _article$detailInfos3, _articleMask$groupnam, _articleMask$groupnam2;
|
|
20262
20281
|
var articleMask = (_catalogData$catalogM = catalogData.catalogMask) === null || _catalogData$catalogM === void 0 || (_catalogData$catalogM = _catalogData$catalogM.articles) === null || _catalogData$catalogM === void 0 ? void 0 : _catalogData$catalogM[article.typeNo];
|
|
20263
20282
|
var lang = catalogData.api.getLanguageLowercase();
|
|
20264
20283
|
var featureProperties = convertProperties(article.properties, lang, 'featureNos');
|
|
@@ -20269,7 +20288,7 @@ function getCatalogArticle(article, catalogData) {
|
|
|
20269
20288
|
articleCodex: article.typeNo,
|
|
20270
20289
|
articleOptions: {},
|
|
20271
20290
|
partListExclusive: article.partListExclusive,
|
|
20272
|
-
guid: article.typeKey,
|
|
20291
|
+
guid: (_article$typeKey = article.typeKey) === null || _article$typeKey === void 0 ? void 0 : _article$typeKey.toString(),
|
|
20273
20292
|
articleEAN: article.eanNumber,
|
|
20274
20293
|
typeNr: article.eanNumber,
|
|
20275
20294
|
retailArticleNr: article.salesNumber,
|
|
@@ -25629,7 +25648,7 @@ var IDMEngine = /*#__PURE__*/function () {
|
|
|
25629
25648
|
});
|
|
25630
25649
|
var ref = optionSetRef === null || optionSetRef === void 0 ? void 0 : optionSetRef.optionList;
|
|
25631
25650
|
if (optionSetRef && !optionSetRef.optionList) throw new Error('optionSetRef not implemented: ' + JSON.stringify(optionSetRef));
|
|
25632
|
-
var doUseDoc =
|
|
25651
|
+
var doUseDoc = true;
|
|
25633
25652
|
if (doAlsoCheckFeature.length > 0) {
|
|
25634
25653
|
var _loop4 = function _loop4() {
|
|
25635
25654
|
var _combination$projectO2;
|
|
@@ -26798,6 +26817,7 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
26798
26817
|
partlistDecisionNo: initParams.partlistDecisionNo,
|
|
26799
26818
|
partListParentArticle: initParams.parentArticle,
|
|
26800
26819
|
partlistArticleVisibleInTree: initParams.partlistArticleVisibleInTree,
|
|
26820
|
+
dontAddToFinalOrderLine: initParams.dontAddToFinalOrderLine,
|
|
26801
26821
|
partlistArticleStandalone: initParams.partlistArticleStandalone,
|
|
26802
26822
|
partlistGroupPrefix: initParams.partlistGroupPrefix,
|
|
26803
26823
|
hasPartlistArticle: initParams.hasPartlistArticle ? initParams.hasPartlistArticle : false,
|
|
@@ -28628,6 +28648,11 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
28628
28648
|
}
|
|
28629
28649
|
return ret;
|
|
28630
28650
|
}
|
|
28651
|
+
}, {
|
|
28652
|
+
key: "dontAddToFinalOrderLine",
|
|
28653
|
+
get: function get() {
|
|
28654
|
+
return this.article.dontAddToFinalOrderLine;
|
|
28655
|
+
}
|
|
28631
28656
|
}, {
|
|
28632
28657
|
key: "areAllOptionsDefined",
|
|
28633
28658
|
get: function get() {
|
|
@@ -29469,7 +29494,7 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
29469
29494
|
break;
|
|
29470
29495
|
}
|
|
29471
29496
|
_context.next = 4;
|
|
29472
|
-
return import('./ShelfPlanner-
|
|
29497
|
+
return import('./ShelfPlanner-8b97bd86.js');
|
|
29473
29498
|
case 4:
|
|
29474
29499
|
_yield$import = _context.sent;
|
|
29475
29500
|
ShelfPlanner = _yield$import["default"];
|
|
@@ -31202,6 +31227,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
31202
31227
|
supplierOrderCodex: doLoadItem.SupplierOrderCodex,
|
|
31203
31228
|
initDecisions: doLoadItem.initDecisions,
|
|
31204
31229
|
partlistArticleVisibleInTree: doLoadItem.PosInvisibility === 0,
|
|
31230
|
+
dontAddToFinalOrderLine: doLoadItem.PosInvisibility === 1,
|
|
31205
31231
|
partlistArticleStandalone: doLoadItem.ConfigurationMode,
|
|
31206
31232
|
partlistGroupPrefix: doLoadItem.partlistGroupPrefix,
|
|
31207
31233
|
optionsForPrint: doLoadItem.optionsForPrint,
|
|
@@ -31594,6 +31620,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
31594
31620
|
Width: article.width,
|
|
31595
31621
|
Depth: article.depth,
|
|
31596
31622
|
Height: article.height,
|
|
31623
|
+
dontAddToFinalOrderLine: article.dontAddToFinalOrderLine,
|
|
31597
31624
|
CatalogCodex: catalogData.catalogCodex,
|
|
31598
31625
|
CatalogName: catalogData.catalogName,
|
|
31599
31626
|
VKPrice: article.getVkPrice,
|
|
@@ -34862,6 +34889,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
|
|
|
34862
34889
|
var hasSelectionMode2 = [];
|
|
34863
34890
|
var hasSelectionMode3 = [];
|
|
34864
34891
|
var basketIds = [];
|
|
34892
|
+
var breakTabgroup = false;
|
|
34865
34893
|
var _iterator4 = _createForOfIteratorHelper$4(tabGroup.options),
|
|
34866
34894
|
_step4;
|
|
34867
34895
|
try {
|
|
@@ -34869,6 +34897,10 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
|
|
|
34869
34897
|
var _step4$value = _slicedToArray(_step4.value, 2),
|
|
34870
34898
|
_optionCodex2 = _step4$value[0],
|
|
34871
34899
|
_option2 = _step4$value[1];
|
|
34900
|
+
var configSteps = Array.from(_option2.configSteps.values());
|
|
34901
|
+
if (configSteps.find(function (configStep) {
|
|
34902
|
+
return configStep.notDisplayedInMainConfigTree;
|
|
34903
|
+
})) breakTabgroup = true;
|
|
34872
34904
|
switch (_option2.selectionmode) {
|
|
34873
34905
|
case 1:
|
|
34874
34906
|
hasSelectionMode1.push(_optionCodex2);
|
|
@@ -34911,6 +34943,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
|
|
|
34911
34943
|
} finally {
|
|
34912
34944
|
_iterator4.f();
|
|
34913
34945
|
}
|
|
34946
|
+
if (breakTabgroup) continue;
|
|
34914
34947
|
if (hasSelectionMode2.length > 0 && hasSelectionMode3.length > 0 && hasSelectionMode1.length == 0) {
|
|
34915
34948
|
//make the selectionmode 2 options -> selectionmode 3
|
|
34916
34949
|
var _iterator5 = _createForOfIteratorHelper$4(hasSelectionMode2),
|
|
@@ -37397,7 +37430,7 @@ var DivaSet = /*#__PURE__*/function () {
|
|
|
37397
37430
|
break;
|
|
37398
37431
|
}
|
|
37399
37432
|
_context5.next = 3;
|
|
37400
|
-
return import('./DoorPlanner-
|
|
37433
|
+
return import('./DoorPlanner-353867f8.js');
|
|
37401
37434
|
case 3:
|
|
37402
37435
|
_yield$import = _context5.sent;
|
|
37403
37436
|
DoorPlanner = _yield$import["default"];
|
|
@@ -41967,7 +42000,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
41967
42000
|
actBasket.ReturnTo = returnTo;
|
|
41968
42001
|
actBasket.PDFDocumentURL = '';
|
|
41969
42002
|
actBasket.ReportConfigIdentifier = api.getReportConfigIdentifier();
|
|
41970
|
-
actBasket.PrintOptions = api.getPrintOptions(this.reportConfig, !!arReady);
|
|
42003
|
+
actBasket.PrintOptions = api.getPrintOptions(this.reportConfig, !!actBasket.OrderSets[0].SetImage, !!arReady);
|
|
41971
42004
|
actBasket.ClientLanguage = api.getLanguage();
|
|
41972
42005
|
_context11.next = 8;
|
|
41973
42006
|
return DivaUtils.updateBasketOrgInfo(actBasket, this.plannerConfig.currentOrganization, this.plannerConfig.currentUser, (_this$plannerConfig$s10 = this.plannerConfig.settings) === null || _this$plannerConfig$s10 === void 0 ? void 0 : _this$plannerConfig$s10.keepSalesPersonDataInBasket);
|
|
@@ -42161,7 +42194,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
42161
42194
|
break;
|
|
42162
42195
|
case 3:
|
|
42163
42196
|
_context12.next = 5;
|
|
42164
|
-
return import('./PfisterWWSHandler-
|
|
42197
|
+
return import('./PfisterWWSHandler-142e2ef6.js');
|
|
42165
42198
|
case 5:
|
|
42166
42199
|
_yield$import = _context12.sent;
|
|
42167
42200
|
PfisterWWSHandler = _yield$import["default"];
|
|
@@ -42169,7 +42202,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
42169
42202
|
return _context12.abrupt("break", 27);
|
|
42170
42203
|
case 9:
|
|
42171
42204
|
_context12.next = 11;
|
|
42172
|
-
return import('./LiviqueWWSHandler-
|
|
42205
|
+
return import('./LiviqueWWSHandler-6e78c09c.js');
|
|
42173
42206
|
case 11:
|
|
42174
42207
|
_yield$import2 = _context12.sent;
|
|
42175
42208
|
LiviqueWWSHandler = _yield$import2["default"];
|
|
@@ -42177,7 +42210,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
42177
42210
|
return _context12.abrupt("break", 27);
|
|
42178
42211
|
case 15:
|
|
42179
42212
|
_context12.next = 17;
|
|
42180
|
-
return import('./SeriousBasketHandler-
|
|
42213
|
+
return import('./SeriousBasketHandler-deedf4e8.js');
|
|
42181
42214
|
case 17:
|
|
42182
42215
|
_yield$import3 = _context12.sent;
|
|
42183
42216
|
SeriousWWSHandler = _yield$import3["default"];
|
|
@@ -42185,7 +42218,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
42185
42218
|
return _context12.abrupt("break", 27);
|
|
42186
42219
|
case 21:
|
|
42187
42220
|
_context12.next = 23;
|
|
42188
|
-
return import('./StandardWWSHandler-
|
|
42221
|
+
return import('./StandardWWSHandler-ddbb240d.js');
|
|
42189
42222
|
case 23:
|
|
42190
42223
|
_yield$import4 = _context12.sent;
|
|
42191
42224
|
StandardWWSHandler = _yield$import4["default"];
|
|
@@ -43609,7 +43642,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
43609
43642
|
while (1) switch (_context3.prev = _context3.next) {
|
|
43610
43643
|
case 0:
|
|
43611
43644
|
_context3.next = 2;
|
|
43612
|
-
return import('./Host3DSignalR-
|
|
43645
|
+
return import('./Host3DSignalR-e9e1e7b5.js');
|
|
43613
43646
|
case 2:
|
|
43614
43647
|
_yield$import = _context3.sent;
|
|
43615
43648
|
Host3DSignalR = _yield$import["default"];
|
|
@@ -45362,7 +45395,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
45362
45395
|
break;
|
|
45363
45396
|
case 8:
|
|
45364
45397
|
_context4.next = 10;
|
|
45365
|
-
return import('./DivaStandardPlanner-
|
|
45398
|
+
return import('./DivaStandardPlanner-cf15a3c5.js');
|
|
45366
45399
|
case 10:
|
|
45367
45400
|
_yield$import = _context4.sent;
|
|
45368
45401
|
DivaStandardPlanner = _yield$import["default"];
|
|
@@ -45373,7 +45406,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
45373
45406
|
return _context4.abrupt("break", 21);
|
|
45374
45407
|
case 15:
|
|
45375
45408
|
_context4.next = 17;
|
|
45376
|
-
return import('./DivaBoxPlanner-
|
|
45409
|
+
return import('./DivaBoxPlanner-be35d8b5.js');
|
|
45377
45410
|
case 17:
|
|
45378
45411
|
_yield$import2 = _context4.sent;
|
|
45379
45412
|
DivaBoxPlanner = _yield$import2["default"];
|
|
@@ -47292,7 +47325,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
47292
47325
|
value: function () {
|
|
47293
47326
|
var _initializeSets = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee15(loadSuccessful, viewReadyPromise) {
|
|
47294
47327
|
var _this$actions17, _set$getDivaArticles, _catalogData$catalogM, _catalogData$catalogM2;
|
|
47295
|
-
var _this$actions16, _this$actions16$toggl, initSetState, set, oldProductId, _result$customData, _result$customData2, result, _this$actions18, catalogData, initializationId, _this$plannerConfig$a, initializationType;
|
|
47328
|
+
var _this$actions16, _this$actions16$toggl, initSetState, set, oldProductId, _result$customData$SA, _result$customData, _result$customData2, _result$customData$SA2, _result$customData3, _result$customData4, result, _this$actions18, catalogData, initializationId, _this$plannerConfig$a, initializationType;
|
|
47296
47329
|
return _regeneratorRuntime.wrap(function _callee15$(_context15) {
|
|
47297
47330
|
while (1) switch (_context15.prev = _context15.next) {
|
|
47298
47331
|
case 0:
|
|
@@ -47331,8 +47364,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
47331
47364
|
case 21:
|
|
47332
47365
|
result = _context15.sent;
|
|
47333
47366
|
if (result) productHandlerInstance.handleFountMatchingProducts(set, [result], set.setHash);
|
|
47334
|
-
result === null || result === void 0 || (_result$customData = result.customData) === null || _result$customData === void 0 ? void 0 : _result$customData.SAP_MARA_MATKL;
|
|
47335
|
-
result === null || result === void 0 || (_result$
|
|
47367
|
+
(_result$customData$SA = result === null || result === void 0 || (_result$customData = result.customData) === null || _result$customData === void 0 || (_result$customData = _result$customData.SAP) === null || _result$customData === void 0 ? void 0 : _result$customData.SAP_MARA_MATKL) !== null && _result$customData$SA !== void 0 ? _result$customData$SA : result === null || result === void 0 || (_result$customData2 = result.customData) === null || _result$customData2 === void 0 || (_result$customData2 = _result$customData2.SAP_MARA_MATKL) === null || _result$customData2 === void 0 ? void 0 : _result$customData2.value;
|
|
47368
|
+
(_result$customData$SA2 = result === null || result === void 0 || (_result$customData3 = result.customData) === null || _result$customData3 === void 0 || (_result$customData3 = _result$customData3.SAP) === null || _result$customData3 === void 0 ? void 0 : _result$customData3.SAP_MARA_PRDHA) !== null && _result$customData$SA2 !== void 0 ? _result$customData$SA2 : result === null || result === void 0 || (_result$customData4 = result.customData) === null || _result$customData4 === void 0 || (_result$customData4 = _result$customData4.SAP_MARA_PRDHA) === null || _result$customData4 === void 0 ? void 0 : _result$customData4.value;
|
|
47336
47369
|
_context15.next = 28;
|
|
47337
47370
|
break;
|
|
47338
47371
|
case 27:
|
package/build/esm/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { h as CatalogPlannerArticleData, C as Cell, e as DivaArticle, g as DivaBasketHandler, f as DivaCatalogData, b as DivaSetHandler, D as DockingPoint, G as Grid, O as OptionCatalogData, P as PlannerElementData, R as Rendering, c as Vector2, V as Vector3, i as Vector4, j as creatRenderOrders, d as default, k as getOrigProductId, l as loadAndRepairBasket } from './index-
|
|
1
|
+
export { h as CatalogPlannerArticleData, C as Cell, e as DivaArticle, g as DivaBasketHandler, f as DivaCatalogData, b as DivaSetHandler, D as DockingPoint, G as Grid, O as OptionCatalogData, P as PlannerElementData, R as Rendering, c as Vector2, V as Vector3, i as Vector4, j as creatRenderOrders, d as default, k as getOrigProductId, l as loadAndRepairBasket } from './index-b964d887.js';
|
|
2
2
|
import '@babel/runtime/helpers/slicedToArray';
|
|
3
3
|
import '@babel/runtime/helpers/asyncToGenerator';
|
|
4
4
|
import '@babel/runtime/helpers/classCallCheck';
|
|
@@ -17,7 +17,7 @@ export type { Hybrid3DInfo_Camera, Hybrid3DInfo_Focus } from './logic/Planner/Re
|
|
|
17
17
|
export type { GeneralPlanningState } from './model/Planner/PlannerInteractionData';
|
|
18
18
|
export type { CoreHandlers, Actions, State } from './interface/CoreTypes';
|
|
19
19
|
export type { ParamPlanPlannerElementInfo, ViewChangedCause } from './interface/FunctionTypes';
|
|
20
|
-
export type { CheckoutConfig, Icontype, CheckoutButton, Rule, EmailConfig, Share, SaveEmail, SavePDF, EventButton, Appointment, } from './interface/API/Checkout';
|
|
20
|
+
export type { CheckoutConfig, Icontype, CheckoutButton, Rule, EmailConfig, Share, SaveEmail, SavePDF, EventButton, Appointment, QuitModalButton, QuitModalEmailConfig, } from './interface/API/Checkout';
|
|
21
21
|
export type { SummaryItem } from './interface/Summary/SummaryItemType';
|
|
22
22
|
export type { SummaryVariant } from './interface/Summary/SummaryVariant';
|
|
23
23
|
export type { SummaryPaletteItemType } from './interface/Summary/SummaryPaletteItemType';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,wBAAwB,CAAC;AACpD,OAAO,SAAS,MAAM,qCAAqC,CAAC;AAC5D,OAAO,YAAY,MAAM,8BAA8B,CAAC;AACxD,OAAO,mBAAmB,MAAM,sBAAsB,CAAC;AACvD,OAAO,IAAI,MAAM,kDAAkD,CAAC;AACpE,OAAO,IAAI,MAAM,kDAAkD,CAAC;AACpE,OAAO,iBAAiB,MAAM,kCAAkC,CAAC;AACjE,OAAO,yBAAyB,MAAM,4CAA4C,CAAC;AACnF,OAAO,WAAW,MAAM,6BAA6B,CAAC;AACtD,OAAO,kBAAkB,MAAM,oCAAoC,CAAC;AACpE,OAAO,cAAc,MAAM,4B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B,EAAE,QAAQ,EAAE,MAAM,sCAAsC,CAAC;AAC5G,YAAY,EAAE,QAAQ,EAAE,MAAM,sCAAsC,CAAC;AACrE,YAAY,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACxE,YAAY,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AACvE,OAAO,eAAe,MAAM,6BAA6B,CAAC;AAC1D,OAAO,iBAAiB,MAAM,mCAAmC,CAAC;AAClE,YAAY,EAAE,gBAAgB,EAAE,MAAM,gDAAgD,CAAC;AACvF,YAAY,EAAE,QAAQ,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,mDAAmD,CAAC;AAChJ,YAAY,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAClE,YAAY,EAAE,aAAa,EAAE,MAAM,4CAA4C,CAAC;AAChF,YAAY,EAAE,WAAW,EAAE,eAAe,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAE3H,OAAO,EACL,WAAW,EACX,eAAe,EACf,cAAc,EACd,iBAAiB,EACjB,YAAY,EACZ,SAAS,EACT,IAAI,EACJ,IAAI,EACJ,mBAAmB,EACnB,iBAAiB,EACjB,yBAAyB,EACzB,kBAAkB,GACnB,CAAC"}
|
|
@@ -4,7 +4,31 @@ export interface CheckoutConfig {
|
|
|
4
4
|
openOnAddToBasket?: boolean;
|
|
5
5
|
url?: string;
|
|
6
6
|
}
|
|
7
|
-
export type CheckoutButton = EventButton | Share | SaveEmail | Appointment | CloseButton | AiLeadKey | SavePDF;
|
|
7
|
+
export type CheckoutButton = EventButton | Share | SaveEmail | Appointment | CloseButton | AiLeadKey | SavePDF | QuitModalButton;
|
|
8
|
+
/** Hidden checkout row: defines the quit/close confirmation UI (not rendered as a button). */
|
|
9
|
+
export interface QuitModalEmailConfig {
|
|
10
|
+
showDSGVO?: boolean;
|
|
11
|
+
showSubscription?: boolean;
|
|
12
|
+
nameRequired?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export interface QuitModalButton extends BaseProps {
|
|
15
|
+
type: 'QUIT_MODAL';
|
|
16
|
+
title: string;
|
|
17
|
+
text?: string;
|
|
18
|
+
bodyLines?: string[];
|
|
19
|
+
rejectByIcon?: boolean;
|
|
20
|
+
primaryLabel: string;
|
|
21
|
+
secondaryLabel: string;
|
|
22
|
+
primaryIcon?: Icontype;
|
|
23
|
+
/** After successful primary (save/mail/basket), also run the exit path (default false = stay in planner). */
|
|
24
|
+
closeAfterPrimaryAction?: boolean;
|
|
25
|
+
email?: QuitModalEmailConfig;
|
|
26
|
+
submitEvent?: string;
|
|
27
|
+
showDSGVO?: boolean;
|
|
28
|
+
showSubscription?: boolean;
|
|
29
|
+
openPDF?: boolean;
|
|
30
|
+
nameRequired?: boolean;
|
|
31
|
+
}
|
|
8
32
|
export interface EventButton extends BaseProps {
|
|
9
33
|
type: 'EVENT';
|
|
10
34
|
onlyCallEvent?: boolean;
|
|
@@ -36,6 +60,7 @@ export interface SaveEmail extends BaseProps {
|
|
|
36
60
|
hideEmailForm?: boolean;
|
|
37
61
|
hidePdf?: boolean;
|
|
38
62
|
nameRequired?: boolean;
|
|
63
|
+
showLastName?: boolean;
|
|
39
64
|
}
|
|
40
65
|
export interface SavePDF extends BaseProps {
|
|
41
66
|
type: 'SAVE_PDF';
|
|
@@ -75,6 +100,7 @@ export interface BaseProps {
|
|
|
75
100
|
rejectByIcon?: boolean;
|
|
76
101
|
};
|
|
77
102
|
visibleInOverview?: boolean;
|
|
103
|
+
disableNavigateBack?: boolean;
|
|
78
104
|
index?: number;
|
|
79
105
|
}
|
|
80
106
|
export type Rule = boolean | ('MOBILE_P' | 'MOBILE_L' | 'DESKTOP')[];
|