@crystaldesign/web-planner-logic 25.1.0-beta.44 → 25.1.0-beta.46
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-c16778e5.js → DivaBoxPlanner-af1807d8.js} +1754 -894
- package/build/cjs/{DivaStandardPlanner-98786ac5.js → DivaStandardPlanner-9ee8bca6.js} +14 -3
- package/build/cjs/{DoorPlanner-3946b7e7.js → DoorPlanner-dbd6bc6c.js} +1 -1
- package/build/cjs/{Host3DSignalR-5463d152.js → Host3DSignalR-4a3e70ed.js} +1 -1
- package/build/cjs/{LiviqueWWSHandler-da51bbc2.js → LiviqueWWSHandler-aa95d52a.js} +1 -1
- package/build/cjs/{PfisterWWSHandler-1f069ef9.js → PfisterWWSHandler-a94d4013.js} +1 -1
- package/build/cjs/{PlannerHandler2D-3fd88d44.js → PlannerHandler2D-ddb09d94.js} +1 -1
- package/build/cjs/{SeriousBasketHandler-856e436f.js → SeriousBasketHandler-2bc074bf.js} +17 -13
- package/build/cjs/{ShelfPlanner-56ecc92f.js → ShelfPlanner-3f113cf2.js} +1 -1
- package/build/cjs/{StandardWWSHandler-4ec804f8.js → StandardWWSHandler-4f2cdbee.js} +1 -1
- package/build/cjs/{index-7d055329.js → index-89f4528c.js} +175 -92
- package/build/cjs/index.js +1 -1
- package/build/esm/{DivaBoxPlanner-e8f203eb.js → DivaBoxPlanner-92b98d12.js} +1753 -893
- package/build/esm/{DivaStandardPlanner-ca0b16b0.js → DivaStandardPlanner-48846cb5.js} +14 -3
- package/build/esm/{DoorPlanner-edbec8ca.js → DoorPlanner-dd5895c0.js} +1 -1
- package/build/esm/{Host3DSignalR-6e275423.js → Host3DSignalR-d0af0f1f.js} +1 -1
- package/build/esm/{LiviqueWWSHandler-2c3ca832.js → LiviqueWWSHandler-38e9535f.js} +1 -1
- package/build/esm/{PfisterWWSHandler-55f007a2.js → PfisterWWSHandler-aeca0426.js} +1 -1
- package/build/esm/{PlannerHandler2D-c759f4f7.js → PlannerHandler2D-c9096881.js} +1 -1
- package/build/esm/{SeriousBasketHandler-06e543a0.js → SeriousBasketHandler-3ba6d570.js} +17 -13
- package/build/esm/{ShelfPlanner-38220b17.js → ShelfPlanner-1cccc3a5.js} +1 -1
- package/build/esm/{StandardWWSHandler-6e6867de.js → StandardWWSHandler-0975c1eb.js} +1 -1
- package/build/esm/{index-9c548e2e.js → index-32e677d7.js} +175 -92
- package/build/esm/index.js +1 -1
- package/build/types/web-planner-logic/src/interface/Articles/ArticleDataType.d.ts +3 -1
- package/build/types/web-planner-logic/src/interface/Articles/ArticleDataType.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/Articles/PartListArticleToLoadType.d.ts +3 -1
- package/build/types/web-planner-logic/src/interface/Articles/PartListArticleToLoadType.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/FunctionTypes/index.d.ts +4 -2
- package/build/types/web-planner-logic/src/interface/FunctionTypes/index.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/OptionTypes/DecisionType.d.ts +2 -0
- package/build/types/web-planner-logic/src/interface/OptionTypes/DecisionType.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/Planner/IDivaPlanner.d.ts +3 -1
- package/build/types/web-planner-logic/src/interface/Planner/IDivaPlanner.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/ReturnTypes/index.d.ts +1 -0
- package/build/types/web-planner-logic/src/interface/ReturnTypes/index.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Article/DivaArticle.d.ts +13 -1
- package/build/types/web-planner-logic/src/logic/Article/DivaArticle.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/DivaWebPlanner.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Planner/BoxPlanner/BoxPlannerGrid.d.ts +148 -33
- package/build/types/web-planner-logic/src/logic/Planner/BoxPlanner/BoxPlannerGrid.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Planner/BoxPlanner/BoxPlannerPartlistHelper.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Planner/BoxPlanner/ConstructionRulesHandler.d.ts +2 -2
- package/build/types/web-planner-logic/src/logic/Planner/BoxPlanner/ConstructionRulesHandler.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Planner/BoxPlanner/DivaBoxPlanner.d.ts +3 -1
- package/build/types/web-planner-logic/src/logic/Planner/BoxPlanner/DivaBoxPlanner.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Planner/DivaPlannerHandler.d.ts +3 -1
- package/build/types/web-planner-logic/src/logic/Planner/DivaPlannerHandler.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Planner/DivaStandardPlanner.d.ts +4 -2
- package/build/types/web-planner-logic/src/logic/Planner/DivaStandardPlanner.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Set/DivaSetHandler.d.ts +7 -0
- package/build/types/web-planner-logic/src/logic/Set/DivaSetHandler.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/DivaCatalogData.d.ts +1 -1
- package/build/types/web-planner-logic/src/model/DivaCatalogData.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/Planner/BoxPlannerData.d.ts +28 -0
- package/build/types/web-planner-logic/src/model/Planner/BoxPlannerData.d.ts.map +1 -0
- package/build/types/web-planner-logic/src/model/Planner/PlannerInteractionData.d.ts +29 -0
- package/build/types/web-planner-logic/src/model/Planner/PlannerInteractionData.d.ts.map +1 -0
- package/build/types/web-planner-logic/src/test/datas/idm_text_routine.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/test/datas/pfister_test_routine.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -19207,7 +19207,8 @@ var DivaCatalogData = /*#__PURE__*/function () {
|
|
|
19207
19207
|
}
|
|
19208
19208
|
}, {
|
|
19209
19209
|
key: "repairVariantValues",
|
|
19210
|
-
value: function repairVariantValues(variantValues) {
|
|
19210
|
+
value: function repairVariantValues(variantValues, articleCodex) {
|
|
19211
|
+
if (variantValues['OPTPLANNERSWITCH']) variantValues['OPTPLANNERSWITCH'] = 'OPV' + articleCodex;
|
|
19211
19212
|
if (!this.catalogData.repairVariantValues) return variantValues;
|
|
19212
19213
|
for (var key in variantValues) {
|
|
19213
19214
|
var opt_opv = key + ':' + variantValues[key];
|
|
@@ -20651,8 +20652,6 @@ function ownKeys$e(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymb
|
|
|
20651
20652
|
function _objectSpread$e(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$e(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$e(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
20652
20653
|
var LOG$d = DivaUtils.initLog('Planner', 'WEB-PLANNER-LOGIC');
|
|
20653
20654
|
var DivaArticle = /*#__PURE__*/function () {
|
|
20654
|
-
//Hier steht die aktuelle Konfiguration
|
|
20655
|
-
|
|
20656
20655
|
function DivaArticle(set, _basketId, initParams, articleData, catalogData) {
|
|
20657
20656
|
var _this = this,
|
|
20658
20657
|
_initParams$noPrice,
|
|
@@ -20663,6 +20662,8 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
20663
20662
|
_defineProperty(this, "articleOptionStatesData", void 0);
|
|
20664
20663
|
//Dieses Objekt speichert den aktuellen Werte, Zustand eines Optionsbaumes und Preise
|
|
20665
20664
|
_defineProperty(this, "actPlannerData", void 0);
|
|
20665
|
+
//Hier steht die aktuelle Konfiguration
|
|
20666
|
+
_defineProperty(this, "decisionDebugStacks", []);
|
|
20666
20667
|
_defineProperty(this, "getPreviousPartlistArticle", function (articleCodex) {
|
|
20667
20668
|
var _this$article$previou;
|
|
20668
20669
|
var prevPartlistArticles = (_this$article$previou = _this.article.previousPartlistArticles) !== null && _this$article$previou !== void 0 ? _this$article$previou : {};
|
|
@@ -22975,8 +22976,7 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
22975
22976
|
}, {
|
|
22976
22977
|
key: "setOP",
|
|
22977
22978
|
value: function setOP(OptionCodex, myOPVItem, freeText, doDefine) {
|
|
22978
|
-
var
|
|
22979
|
-
var myArtOPS = myOptionStates[OptionCodex];
|
|
22979
|
+
var myArtOPS = this.getArticleOptionState(OptionCodex);
|
|
22980
22980
|
if (!myArtOPS) {
|
|
22981
22981
|
LOG$d.error(new DivaError('OptionCodex: ' + OptionCodex + ' in articleCodex: ' + this.articleCodex + ' not found!'));
|
|
22982
22982
|
return;
|
|
@@ -23084,13 +23084,13 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
23084
23084
|
if (myPartListPos.ItemRefArticles) {
|
|
23085
23085
|
var decisions = myPartListPos.PartListPosDecisionsAndPosCounts;
|
|
23086
23086
|
if (decisions) {
|
|
23087
|
-
var _decisions$;
|
|
23088
|
-
var relationTypeNone = ((_decisions$ = decisions[0]) === null || _decisions$ === void 0 ? void 0 : _decisions$.RelationType) !== 'PosCount';
|
|
23089
23087
|
var partlistAdded = false;
|
|
23090
23088
|
for (var c = 0; c < decisions.length; c++) {
|
|
23089
|
+
var _decisions$c, _myDecisionVal;
|
|
23090
|
+
var relationTypeNone = ((_decisions$c = decisions[c]) === null || _decisions$c === void 0 ? void 0 : _decisions$c.RelationType) !== 'PosCount';
|
|
23091
23091
|
var myDecisionNumber = decisions[c].DecisionNumber;
|
|
23092
|
-
var myDecisionVal = this.checkDecisionNumber(myDecisionNumber);
|
|
23093
|
-
if (myDecisionVal.isValidDOC || relationTypeNone) {
|
|
23092
|
+
var myDecisionVal = relationTypeNone ? undefined : this.checkDecisionNumber(myDecisionNumber);
|
|
23093
|
+
if ((_myDecisionVal = myDecisionVal) !== null && _myDecisionVal !== void 0 && _myDecisionVal.isValidDOC || relationTypeNone) {
|
|
23094
23094
|
// wenn die Decision gültig, gelten die ItemRefArticles
|
|
23095
23095
|
partlistAdded = true;
|
|
23096
23096
|
partlistArticlesToLoad = this.addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, newConfigValues, myDecisionVal, groupDecisionVal, myDecisionNumber);
|
|
@@ -23114,22 +23114,23 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
23114
23114
|
}, {
|
|
23115
23115
|
key: "addPartilstToPartlistArticlesToLoad",
|
|
23116
23116
|
value: function addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, newConfigValues, myDecisionVal, groupDecisionVal, decisionNumber) {
|
|
23117
|
-
var _myPartListPos$Option
|
|
23117
|
+
var _myPartListPos$Option,
|
|
23118
|
+
_this3 = this;
|
|
23118
23119
|
var allDecisions = this.article.catalogArticle.articleDecisions;
|
|
23119
23120
|
var decisions = myPartListPos.PartListPosDecisionsAndPosCounts;
|
|
23120
23121
|
var optionsForPrint = (_myPartListPos$Option = myPartListPos.OptionsForPrint) === null || _myPartListPos$Option === void 0 ? void 0 : _myPartListPos$Option.split(';').map(function (o) {
|
|
23121
23122
|
return 'OPT' + o;
|
|
23122
23123
|
});
|
|
23123
23124
|
var optionImgForPrint = myPartListPos.OptionImgForPrint ? 'OPT' + myPartListPos.OptionImgForPrint : undefined;
|
|
23124
|
-
|
|
23125
|
+
var _loop = function _loop() {
|
|
23125
23126
|
var myRuleDesc = '';
|
|
23126
23127
|
var myRuleDesc_locales = undefined;
|
|
23127
23128
|
var articleCodex = myPartListPos.ItemRefArticles[d].ArticleCodex;
|
|
23128
23129
|
var catalogCodex = myPartListPos.ItemRefArticles[d].CatalogCodex;
|
|
23129
23130
|
var retailArticleNr = myPartListPos.RetailArticleNr && myPartListPos.RetailArticleNr != '' ? myPartListPos.RetailArticleNr : undefined;
|
|
23130
|
-
if (myDecisionVal && (myDecisionVal.Rule && myDecisionVal.Rule != '' &&
|
|
23131
|
-
myRuleDesc = DivaUtils.getRuleDescription(myDecisionVal.Rule,
|
|
23132
|
-
myRuleDesc_locales = DivaUtils.getRuleDescription_locales(myDecisionVal.Rule,
|
|
23131
|
+
if (myDecisionVal && (myDecisionVal.Rule && myDecisionVal.Rule != '' && _this3.CatalogData.doUseRuleDescForPartListArticles() || myPartListPos.RetailArticleNr == 'CUST')) {
|
|
23132
|
+
myRuleDesc = DivaUtils.getRuleDescription(myDecisionVal.Rule, _this3.articleOptionStates, _this3.set.api.ruleDescSeperator());
|
|
23133
|
+
myRuleDesc_locales = DivaUtils.getRuleDescription_locales(myDecisionVal.Rule, _this3.articleOptionStates, _this3.set.api.ruleDescSeperator());
|
|
23133
23134
|
}
|
|
23134
23135
|
var initDecisions = decisions.filter(function (decision) {
|
|
23135
23136
|
return decision.RelationType !== 'PosCount';
|
|
@@ -23138,8 +23139,19 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
23138
23139
|
return dec.Number == decision.DecisionNumber.toString();
|
|
23139
23140
|
});
|
|
23140
23141
|
});
|
|
23142
|
+
var initDecisionsFiltered = [];
|
|
23143
|
+
var _loop2 = function _loop2(i) {
|
|
23144
|
+
if (initDecisions[i] && !initDecisionsFiltered.find(function (d) {
|
|
23145
|
+
return d.Number == initDecisions[i].Number;
|
|
23146
|
+
})) {
|
|
23147
|
+
initDecisionsFiltered.push(initDecisions[i]);
|
|
23148
|
+
}
|
|
23149
|
+
};
|
|
23150
|
+
for (var i = 0; i < initDecisions.length; i++) {
|
|
23151
|
+
_loop2(i);
|
|
23152
|
+
}
|
|
23141
23153
|
var quanitity = 1;
|
|
23142
|
-
if (
|
|
23154
|
+
if (_this3.CatalogData.useDecisionPosCountValue) {
|
|
23143
23155
|
var _decision$DOC;
|
|
23144
23156
|
// get SetPosCountValue from decsion action if defined and else use myPartListPos.PosCountValue;
|
|
23145
23157
|
var decision = decisionNumber ? allDecisions.find(function (d) {
|
|
@@ -23154,24 +23166,24 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
23154
23166
|
return a.SetPosCountValue !== undefined;
|
|
23155
23167
|
})) === null || _decision$DOC === void 0 ? void 0 : _decision$DOC.SetPosCountValue;
|
|
23156
23168
|
quanitity = setPosCountValue !== undefined ? setPosCountValue : myPartListPos.PosCountValue;
|
|
23157
|
-
} else if (
|
|
23169
|
+
} else if (_this3.CatalogData.usePosCountValue) {
|
|
23158
23170
|
quanitity = myPartListPos.PosCountValue;
|
|
23159
23171
|
}
|
|
23160
|
-
quanitity = quanitity *
|
|
23161
|
-
var previousPartlistArticle =
|
|
23172
|
+
quanitity = quanitity * _this3.quantity;
|
|
23173
|
+
var previousPartlistArticle = _this3.getPreviousPartlistArticle(articleCodex);
|
|
23162
23174
|
if (quanitity >= 1) {
|
|
23163
|
-
var _previousPartlistArti;
|
|
23175
|
+
var _myDecisionVal$Rule, _previousPartlistArti;
|
|
23164
23176
|
partlistArticlesToLoad.push({
|
|
23165
|
-
CatalogCodex: catalogCodex !== null && catalogCodex !== void 0 ? catalogCodex :
|
|
23177
|
+
CatalogCodex: catalogCodex !== null && catalogCodex !== void 0 ? catalogCodex : _this3.catalogCodex,
|
|
23166
23178
|
BasketID: previousPartlistArticle === null || previousPartlistArticle === void 0 ? void 0 : previousPartlistArticle.basketId,
|
|
23167
23179
|
ArticleCodex: articleCodex,
|
|
23168
23180
|
RefLevel: myDecisionVal === null || myDecisionVal === void 0 ? void 0 : myDecisionVal.RefLevel,
|
|
23169
23181
|
RetailArticleNr: retailArticleNr,
|
|
23170
23182
|
RetailPrefix: myPartListPos.RetailPrefix,
|
|
23171
23183
|
Quantity: quanitity,
|
|
23172
|
-
PartlistRule: (groupDecisionVal ? groupDecisionVal.Rule + ' && ' : '') + myDecisionVal ? myDecisionVal === null || myDecisionVal === void 0 ? void 0 : myDecisionVal.Rule : '',
|
|
23184
|
+
PartlistRule: (groupDecisionVal ? groupDecisionVal.Rule + ' && ' : '') + myDecisionVal ? DivaUtils.getOptionValuePairsByRule((_myDecisionVal$Rule = myDecisionVal === null || myDecisionVal === void 0 ? void 0 : myDecisionVal.Rule) !== null && _myDecisionVal$Rule !== void 0 ? _myDecisionVal$Rule : '', _this3.VariantValues) : undefined,
|
|
23173
23185
|
SupplierOrderCodex: myPartListPos.SupplierOrderCodex,
|
|
23174
|
-
initDecisions:
|
|
23186
|
+
initDecisions: initDecisionsFiltered,
|
|
23175
23187
|
RuleDesc: myRuleDesc,
|
|
23176
23188
|
RuleDesc_locales: myRuleDesc_locales,
|
|
23177
23189
|
PosInvisibility: myPartListPos.PosInvisibility,
|
|
@@ -23183,6 +23195,9 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
23183
23195
|
} else {
|
|
23184
23196
|
LOG$d.debug('not loading partlistarticle: ' + articleCodex + ' cause quantity is zero');
|
|
23185
23197
|
}
|
|
23198
|
+
};
|
|
23199
|
+
for (var d = 0; d < myPartListPos.ItemRefArticles.length; d++) {
|
|
23200
|
+
_loop();
|
|
23186
23201
|
}
|
|
23187
23202
|
return partlistArticlesToLoad;
|
|
23188
23203
|
}
|
|
@@ -23243,11 +23258,15 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
23243
23258
|
}, {
|
|
23244
23259
|
key: "evalAllDecisions",
|
|
23245
23260
|
value: function evalAllDecisions() {
|
|
23261
|
+
var _myDecision$DisableHi, _myDecision$DisableHi2, _myDecision$DisableHi3;
|
|
23246
23262
|
var myDecisions = this.article.catalogArticle.articleDecisions;
|
|
23263
|
+
|
|
23247
23264
|
//add the partlist spesific decisions to the normal decisions
|
|
23248
23265
|
if (this.article.initDecisions) myDecisions = myDecisions.concat(this.article.initDecisions);
|
|
23249
23266
|
for (var i = 0; i < myDecisions.length; i++) {
|
|
23250
|
-
myDecisions[i]
|
|
23267
|
+
myDecisions[i].Enabled = true;
|
|
23268
|
+
myDecisions[i].DisableHistory = [];
|
|
23269
|
+
myDecisions[i].ActiveCombination = undefined;
|
|
23251
23270
|
}
|
|
23252
23271
|
for (var key in this.articleOptionStates) {
|
|
23253
23272
|
var myOPS = this.articleOptionStates[key];
|
|
@@ -23255,6 +23274,7 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
23255
23274
|
myOPS.visibleCount = Object.keys(myOPS.option.articleOptionValues).length;
|
|
23256
23275
|
myOPS.definedBySetFeatureFixed = false;
|
|
23257
23276
|
}
|
|
23277
|
+
var decisionDebugStack = [];
|
|
23258
23278
|
for (var m = 0; m < myDecisions.length; m++) {
|
|
23259
23279
|
//Alle Optionen Mit DOC Type 1 ermitten - diese zunächst alle ausblenden, werden dann später über Formeln wieder eingeschaltet
|
|
23260
23280
|
var myDecision = myDecisions[m];
|
|
@@ -23263,16 +23283,43 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
23263
23283
|
case '2':
|
|
23264
23284
|
//Aktionsregel. Wenn das erste JsRule erfüllt ist muss man die restlichen DecisionOptionCombinations nicht mehr kontrollieren.
|
|
23265
23285
|
this.evalType2Decision(myDecision, myDecisions);
|
|
23286
|
+
decisionDebugStack.push({
|
|
23287
|
+
text: myDecision.Number + ' type: 2 ' + ((_myDecision$DisableHi = myDecision.DisableHistory) === null || _myDecision$DisableHi === void 0 ? void 0 : _myDecision$DisableHi.join(',')),
|
|
23288
|
+
nr: myDecision.Number,
|
|
23289
|
+
decision: JSON.parse(JSON.stringify(myDecision))
|
|
23290
|
+
});
|
|
23266
23291
|
break;
|
|
23267
23292
|
case '1':
|
|
23268
23293
|
this.evalType1Decision(myDecision);
|
|
23294
|
+
decisionDebugStack.push({
|
|
23295
|
+
text: myDecision.Number + ' type: 1 ' + ((_myDecision$DisableHi2 = myDecision.DisableHistory) === null || _myDecision$DisableHi2 === void 0 ? void 0 : _myDecision$DisableHi2.join(',')),
|
|
23296
|
+
nr: myDecision.Number,
|
|
23297
|
+
decision: JSON.parse(JSON.stringify(myDecision))
|
|
23298
|
+
});
|
|
23269
23299
|
break;
|
|
23270
23300
|
case '0':
|
|
23271
23301
|
this.evalType0Decision(myDecision);
|
|
23302
|
+
decisionDebugStack.push({
|
|
23303
|
+
text: myDecision.Number + ' type: 0 ' + ((_myDecision$DisableHi3 = myDecision.DisableHistory) === null || _myDecision$DisableHi3 === void 0 ? void 0 : _myDecision$DisableHi3.join(',')),
|
|
23304
|
+
nr: myDecision.Number,
|
|
23305
|
+
decision: JSON.parse(JSON.stringify(myDecision))
|
|
23306
|
+
});
|
|
23272
23307
|
break;
|
|
23273
23308
|
}
|
|
23309
|
+
} else {
|
|
23310
|
+
var _myDecision$DisableHi4;
|
|
23311
|
+
decisionDebugStack.push({
|
|
23312
|
+
text: myDecision.Number + ' ' + ((_myDecision$DisableHi4 = myDecision.DisableHistory) === null || _myDecision$DisableHi4 === void 0 ? void 0 : _myDecision$DisableHi4.join(',')),
|
|
23313
|
+
nr: myDecision.Number,
|
|
23314
|
+
decision: JSON.parse(JSON.stringify(myDecision))
|
|
23315
|
+
});
|
|
23274
23316
|
}
|
|
23275
23317
|
}
|
|
23318
|
+
if (this.decisionDebugStacks.length > 6) this.decisionDebugStacks.shift();
|
|
23319
|
+
this.decisionDebugStacks.push({
|
|
23320
|
+
stack: decisionDebugStack,
|
|
23321
|
+
variantValues: this.VariantValues
|
|
23322
|
+
});
|
|
23276
23323
|
this.evalShowOnlyWhenHasPrice();
|
|
23277
23324
|
this.updateIDMSpecificFeatures();
|
|
23278
23325
|
}
|
|
@@ -23316,6 +23363,9 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
23316
23363
|
for (var i = 0; i < myDoc.DA.length; i++) {
|
|
23317
23364
|
var myDA = myDoc.DA[i];
|
|
23318
23365
|
var myOptionCodex = myDA.OptionCodex ? 'OPT' + myDA.OptionCodex : '';
|
|
23366
|
+
if (!myDoc.JsFormula || myDoc.JsFormula == '' || this.evalRule(myDoc.JsFormula)) {
|
|
23367
|
+
myDecision.ActiveCombination = j;
|
|
23368
|
+
}
|
|
23319
23369
|
if (this.getArticleOptionState(myOptionCodex) || myOptionCodex == '') {
|
|
23320
23370
|
switch (myDA.Type) {
|
|
23321
23371
|
case '0':
|
|
@@ -23370,7 +23420,9 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
23370
23420
|
}
|
|
23371
23421
|
for (var _m = 0; _m < myDecisions.length; _m++) {
|
|
23372
23422
|
if (SearchDecNumber.includes(Number(myDecisions[_m].Number))) {
|
|
23423
|
+
var _myDecisions$_m$Disab;
|
|
23373
23424
|
myDecisions[_m].Enabled = false;
|
|
23425
|
+
(_myDecisions$_m$Disab = myDecisions[_m].DisableHistory) === null || _myDecisions$_m$Disab === void 0 || _myDecisions$_m$Disab.push('disabled By ' + myDecision.Number);
|
|
23374
23426
|
}
|
|
23375
23427
|
}
|
|
23376
23428
|
}
|
|
@@ -23388,7 +23440,9 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
23388
23440
|
}
|
|
23389
23441
|
for (var _m3 = 0; _m3 < myDecisions.length; _m3++) {
|
|
23390
23442
|
if (_SearchDecNumber.includes(Number(myDecisions[_m3].Number))) {
|
|
23443
|
+
var _myDecisions$_m3$Disa;
|
|
23391
23444
|
myDecisions[_m3].Enabled = true;
|
|
23445
|
+
(_myDecisions$_m3$Disa = myDecisions[_m3].DisableHistory) === null || _myDecisions$_m3$Disa === void 0 || _myDecisions$_m3$Disa.push('enabled By ' + myDecision.Number);
|
|
23392
23446
|
}
|
|
23393
23447
|
}
|
|
23394
23448
|
}
|
|
@@ -23457,6 +23511,7 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
23457
23511
|
}
|
|
23458
23512
|
if (doUseDoc) {
|
|
23459
23513
|
var _myDoc$Row2;
|
|
23514
|
+
myDecision.ActiveCombination = j;
|
|
23460
23515
|
if ((_myDoc$Row2 = myDoc.Row) !== null && _myDoc$Row2 !== void 0 && _myDoc$Row2[OPT]) {
|
|
23461
23516
|
var ruleWasValidOnce = false;
|
|
23462
23517
|
for (var m = 0; m < myDoc.Row[OPT].length; m++) {
|
|
@@ -23552,6 +23607,7 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
23552
23607
|
}
|
|
23553
23608
|
}
|
|
23554
23609
|
if (doUseDoc && myDoc.Row) {
|
|
23610
|
+
myDecision.ActiveCombination = j;
|
|
23555
23611
|
if (myDoc.Row[OPT]) {
|
|
23556
23612
|
for (var m = 0; m < myDoc.Row[OPT].length; m++) {
|
|
23557
23613
|
var opvCodex = myDoc.Row[OPT][m];
|
|
@@ -23878,7 +23934,7 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
23878
23934
|
break;
|
|
23879
23935
|
}
|
|
23880
23936
|
_context.next = 4;
|
|
23881
|
-
return import('./ShelfPlanner-
|
|
23937
|
+
return import('./ShelfPlanner-1cccc3a5.js');
|
|
23882
23938
|
case 4:
|
|
23883
23939
|
_yield$import = _context.sent;
|
|
23884
23940
|
ShelfPlanner = _yield$import["default"];
|
|
@@ -23930,7 +23986,7 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
23930
23986
|
}, {
|
|
23931
23987
|
key: "calcConfigPrice",
|
|
23932
23988
|
value: function calcConfigPrice(maxPriceOfGroupCodex, digits) {
|
|
23933
|
-
var
|
|
23989
|
+
var _this4 = this,
|
|
23934
23990
|
_this$catalogArticle$;
|
|
23935
23991
|
//Wenn im Planer für dieses Shape mehere Rules gibt, müssen wir diese jetzt prüfen, ob jetzt ein anderes shape gültig ist.
|
|
23936
23992
|
//wenn ja, hier neues shape übergeben
|
|
@@ -24046,9 +24102,9 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
24046
24102
|
var _myArtOPS = myArtOPSs[_iKey3];
|
|
24047
24103
|
var targetPPGPrefixes = _myArtOPS.targetPPGPrefixes;
|
|
24048
24104
|
if (!targetPPGPrefixes) continue;
|
|
24049
|
-
var
|
|
24105
|
+
var _loop3 = function _loop3() {
|
|
24050
24106
|
var targetPrefix = targetPPGPrefixes[_i5];
|
|
24051
|
-
var priceRef =
|
|
24107
|
+
var priceRef = _this4.article.priceRefs.find(function (item) {
|
|
24052
24108
|
var _item$PPG;
|
|
24053
24109
|
return ((_item$PPG = item.PPG) === null || _item$PPG === void 0 ? void 0 : _item$PPG.split('_')[0]) == targetPrefix;
|
|
24054
24110
|
});
|
|
@@ -24059,21 +24115,21 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
24059
24115
|
}
|
|
24060
24116
|
};
|
|
24061
24117
|
for (var _i5 = 0; _i5 < targetPPGPrefixes.length; _i5++) {
|
|
24062
|
-
|
|
24118
|
+
_loop3();
|
|
24063
24119
|
}
|
|
24064
24120
|
}
|
|
24065
24121
|
for (var _i6 = 0; _i6 < this.article.priceRefs.length; _i6++) {
|
|
24066
24122
|
if (!this.article.priceRefs[_i6].TargetPPGPrefixes) continue;
|
|
24067
24123
|
var basePriceRef = this.article.priceRefs[_i6];
|
|
24068
|
-
var
|
|
24124
|
+
var _loop4 = function _loop4() {
|
|
24069
24125
|
var targetPrefix = basePriceRef.TargetPPGPrefixes[_j];
|
|
24070
24126
|
var myArtOpv;
|
|
24071
|
-
var priceRef =
|
|
24127
|
+
var priceRef = _this4.article.priceRefs.find(function (item) {
|
|
24072
24128
|
return item.PPG && item.PPG.split('_')[0] == targetPrefix;
|
|
24073
24129
|
});
|
|
24074
24130
|
if (!priceRef) {
|
|
24075
|
-
for (var key in
|
|
24076
|
-
var artOPS =
|
|
24131
|
+
for (var key in _this4.articleOptionStates) {
|
|
24132
|
+
var artOPS = _this4.articleOptionStates[key];
|
|
24077
24133
|
if (artOPS.ppg && artOPS.ppg.split('_')[0] == targetPrefix) {
|
|
24078
24134
|
myArtOpv = artOPS;
|
|
24079
24135
|
}
|
|
@@ -24092,7 +24148,7 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
24092
24148
|
}
|
|
24093
24149
|
};
|
|
24094
24150
|
for (var _j = 0; _j < basePriceRef.TargetPPGPrefixes.length; _j++) {
|
|
24095
|
-
|
|
24151
|
+
_loop4();
|
|
24096
24152
|
}
|
|
24097
24153
|
}
|
|
24098
24154
|
for (var _i7 = 0; _i7 < this.article.priceRefs.length; _i7++) {
|
|
@@ -24381,7 +24437,7 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
24381
24437
|
value: function updateArticleSVG() {
|
|
24382
24438
|
var _this$article$catalog2,
|
|
24383
24439
|
_this$article$catalog3,
|
|
24384
|
-
|
|
24440
|
+
_this5 = this;
|
|
24385
24441
|
var newSVGFile = null;
|
|
24386
24442
|
var svgChangedViaSvgTausch = false;
|
|
24387
24443
|
if (!this.hasCatalogPlannerArticle || ((_this$article$catalog2 = this.article.catalogArticle.catalogPlannerArticle) === null || _this$article$catalog2 === void 0 ? void 0 : _this$article$catalog2.topSvg) == undefined && ((_this$article$catalog3 = this.article.catalogArticle.catalogPlannerArticle) === null || _this$article$catalog3 === void 0 ? void 0 : _this$article$catalog3.topSvgsWithFormula) == undefined) {
|
|
@@ -24442,7 +24498,7 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
24442
24498
|
code: 'WC_0011',
|
|
24443
24499
|
custom: {
|
|
24444
24500
|
formulas: (_plannerCatArt$topSvg = plannerCatArt.topSvgsWithFormula) === null || _plannerCatArt$topSvg === void 0 ? void 0 : _plannerCatArt$topSvg.map(function (item) {
|
|
24445
|
-
return DivaUtils.getRuleByFormula(item.JsFormula,
|
|
24501
|
+
return DivaUtils.getRuleByFormula(item.JsFormula, _this5.catalogCodex, _this5.CatalogData.multiselectOptions);
|
|
24446
24502
|
}),
|
|
24447
24503
|
catalogName: this.CatalogData.catalogName,
|
|
24448
24504
|
catalogCodex: this.catalogCodex,
|
|
@@ -28555,7 +28611,7 @@ var DivaSet = /*#__PURE__*/function () {
|
|
|
28555
28611
|
break;
|
|
28556
28612
|
}
|
|
28557
28613
|
_context5.next = 3;
|
|
28558
|
-
return import('./DoorPlanner-
|
|
28614
|
+
return import('./DoorPlanner-dd5895c0.js');
|
|
28559
28615
|
case 3:
|
|
28560
28616
|
_yield$import = _context5.sent;
|
|
28561
28617
|
DoorPlanner = _yield$import["default"];
|
|
@@ -31260,7 +31316,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
31260
31316
|
return _context2.abrupt("return", 1);
|
|
31261
31317
|
case 3:
|
|
31262
31318
|
if (!orderline.IsPartlistArticle) {
|
|
31263
|
-
variantValues = catalogData.repairVariantValues(orderline.getVariantValues());
|
|
31319
|
+
variantValues = catalogData.repairVariantValues(orderline.getVariantValues(), orderline.ArticleCodex);
|
|
31264
31320
|
toLoadArticles.push({
|
|
31265
31321
|
catalogCodex: catalogData.catalogCodex,
|
|
31266
31322
|
articleCodex: orderline.ArticleCodex,
|
|
@@ -32177,7 +32233,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
32177
32233
|
_context16.next = 15;
|
|
32178
32234
|
break;
|
|
32179
32235
|
}
|
|
32180
|
-
allElementsToDelete = set.plannerHandler.getPlannerElementsInfluencedByDeletion(setId, article.elementId);
|
|
32236
|
+
allElementsToDelete = set.plannerHandler.getPlannerElementsInfluencedByDeletion(setId, article.elementId, deletionType);
|
|
32181
32237
|
i = 0;
|
|
32182
32238
|
case 8:
|
|
32183
32239
|
if (!(i < allElementsToDelete.length)) {
|
|
@@ -32186,7 +32242,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
32186
32242
|
}
|
|
32187
32243
|
art = set.getArticleByElementId(allElementsToDelete[i]);
|
|
32188
32244
|
_context16.next = 12;
|
|
32189
|
-
return this.deleteElementFromSet(set, art, undefined,
|
|
32245
|
+
return this.deleteElementFromSet(set, art, undefined, 'STD_DONTUPDATE', true, true);
|
|
32190
32246
|
case 12:
|
|
32191
32247
|
i++;
|
|
32192
32248
|
_context16.next = 8;
|
|
@@ -32626,6 +32682,17 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
32626
32682
|
}
|
|
32627
32683
|
return groupedArticles;
|
|
32628
32684
|
}
|
|
32685
|
+
|
|
32686
|
+
/**
|
|
32687
|
+
* This function returns all planner Interaction informations for a specific set
|
|
32688
|
+
* @param set
|
|
32689
|
+
* @returns
|
|
32690
|
+
*/
|
|
32691
|
+
}, {
|
|
32692
|
+
key: "getPlannerInteractionInformation",
|
|
32693
|
+
value: function getPlannerInteractionInformation(set) {
|
|
32694
|
+
return set.plannerHandler.getPlannerInteractionInformation(set.getSetId());
|
|
32695
|
+
}
|
|
32629
32696
|
}, {
|
|
32630
32697
|
key: "getLastElementInGroup",
|
|
32631
32698
|
value: function getLastElementInGroup(article) {
|
|
@@ -33311,7 +33378,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
33311
33378
|
value: (function () {
|
|
33312
33379
|
var _updateArticlesOptionStatesOfActSet = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee27(set, myValues, targetArticlesWithNewValues, ignorePlanner, from, partlistDiff) {
|
|
33313
33380
|
var _Object$keys, _resultPlannerUpdate;
|
|
33314
|
-
var elementsToDeleteById, targetArticlesToUpdateOnly, retValues, diff, resultPlannerUpdate, targetElementIds, i, articleToDel, index, articleCopyRelation, newArticle;
|
|
33381
|
+
var elementsToDeleteById, targetArticlesToUpdateOnly, retValues, diff, resultPlannerUpdate, targetElementIds, i, articleToDel, index, result, articleCopyRelation, newArticle;
|
|
33315
33382
|
return _regeneratorRuntime.wrap(function _callee27$(_context29) {
|
|
33316
33383
|
while (1) switch (_context29.prev = _context29.next) {
|
|
33317
33384
|
case 0:
|
|
@@ -33361,7 +33428,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
33361
33428
|
|
|
33362
33429
|
//Update Planner - check if planner data changed
|
|
33363
33430
|
if (!(!ignorePlanner && from != 'calcVariant')) {
|
|
33364
|
-
_context29.next =
|
|
33431
|
+
_context29.next = 55;
|
|
33365
33432
|
break;
|
|
33366
33433
|
}
|
|
33367
33434
|
targetElementIds = this.getElementIdsOfArticles(set, targetArticlesWithNewValues);
|
|
@@ -33369,56 +33436,74 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
33369
33436
|
return set.plannerHandler.updatePlanner(set.getSetId(), myValues, targetElementIds);
|
|
33370
33437
|
case 24:
|
|
33371
33438
|
resultPlannerUpdate = _context29.sent;
|
|
33439
|
+
elementsToDeleteById = resultPlannerUpdate.elemIdsToDelete;
|
|
33440
|
+
for (i = 0; i < resultPlannerUpdate.elemIdsToDelete.length; i++) {
|
|
33441
|
+
articleToDel = set.getArticleByElementId(resultPlannerUpdate.elemIdsToDelete[i]);
|
|
33442
|
+
index = targetArticlesWithNewValues.indexOf(articleToDel.basketId, 0);
|
|
33443
|
+
if (index > -1) {
|
|
33444
|
+
targetArticlesWithNewValues.splice(index, 1);
|
|
33445
|
+
}
|
|
33446
|
+
}
|
|
33447
|
+
if (!resultPlannerUpdate.doDeleteBackGrid) {
|
|
33448
|
+
_context29.next = 34;
|
|
33449
|
+
break;
|
|
33450
|
+
}
|
|
33451
|
+
_context29.next = 30;
|
|
33452
|
+
return this.deleteElementFromSetByElemId(set, resultPlannerUpdate.elemIdsToDelete[0], false, resultPlannerUpdate.deletionType);
|
|
33453
|
+
case 30:
|
|
33454
|
+
result = _context29.sent;
|
|
33455
|
+
//Others are deleted recursive
|
|
33456
|
+
if (result.selectElementId) {
|
|
33457
|
+
resultPlannerUpdate.elementIdsToUpdateSelection = [result.selectElementId];
|
|
33458
|
+
}
|
|
33459
|
+
_context29.next = 41;
|
|
33460
|
+
break;
|
|
33461
|
+
case 34:
|
|
33372
33462
|
i = 0;
|
|
33373
|
-
case
|
|
33463
|
+
case 35:
|
|
33374
33464
|
if (!(i < resultPlannerUpdate.elemIdsToDelete.length)) {
|
|
33375
|
-
_context29.next =
|
|
33465
|
+
_context29.next = 41;
|
|
33376
33466
|
break;
|
|
33377
33467
|
}
|
|
33378
|
-
|
|
33379
|
-
index = targetArticlesWithNewValues.indexOf(articleToDel.basketId, 0);
|
|
33380
|
-
if (index > -1) {
|
|
33381
|
-
targetArticlesWithNewValues.splice(index, 1);
|
|
33382
|
-
}
|
|
33383
|
-
_context29.next = 32;
|
|
33468
|
+
_context29.next = 38;
|
|
33384
33469
|
return this.deleteElementFromSetByElemId(set, resultPlannerUpdate.elemIdsToDelete[i], false, resultPlannerUpdate.deletionType);
|
|
33385
|
-
case
|
|
33470
|
+
case 38:
|
|
33386
33471
|
i++;
|
|
33387
|
-
_context29.next =
|
|
33472
|
+
_context29.next = 35;
|
|
33388
33473
|
break;
|
|
33389
|
-
case
|
|
33474
|
+
case 41:
|
|
33390
33475
|
if (!(resultPlannerUpdate.elementIdToCopy && resultPlannerUpdate.elementIdToCopy.length > 0)) {
|
|
33391
|
-
_context29.next =
|
|
33476
|
+
_context29.next = 54;
|
|
33392
33477
|
break;
|
|
33393
33478
|
}
|
|
33394
33479
|
//Todo copy these elements
|
|
33395
33480
|
articleCopyRelation = new Map();
|
|
33396
33481
|
i = 0;
|
|
33397
|
-
case
|
|
33482
|
+
case 44:
|
|
33398
33483
|
if (!(i < resultPlannerUpdate.elementIdToCopy.length)) {
|
|
33399
|
-
_context29.next =
|
|
33484
|
+
_context29.next = 52;
|
|
33400
33485
|
break;
|
|
33401
33486
|
}
|
|
33402
|
-
_context29.next =
|
|
33487
|
+
_context29.next = 47;
|
|
33403
33488
|
return this.copyArticleByElementId(set, resultPlannerUpdate.elementIdToCopy[i], resultPlannerUpdate.ignoreOptionsToCopy);
|
|
33404
|
-
case
|
|
33489
|
+
case 47:
|
|
33405
33490
|
newArticle = _context29.sent;
|
|
33406
33491
|
articleCopyRelation.set(resultPlannerUpdate.elementIdToCopy[i], newArticle.basketId);
|
|
33407
|
-
case
|
|
33492
|
+
case 49:
|
|
33408
33493
|
i++;
|
|
33409
|
-
_context29.next =
|
|
33494
|
+
_context29.next = 44;
|
|
33410
33495
|
break;
|
|
33411
|
-
case
|
|
33412
|
-
_context29.next =
|
|
33496
|
+
case 52:
|
|
33497
|
+
_context29.next = 54;
|
|
33413
33498
|
return set.plannerHandler.copyPlannerElements(set.getSetId(), articleCopyRelation, {
|
|
33414
33499
|
dpType: resultPlannerUpdate.copyDPType ? resultPlannerUpdate.copyDPType : 'NO',
|
|
33415
33500
|
copyType: resultPlannerUpdate.copyType,
|
|
33416
33501
|
changedOPT: resultPlannerUpdate.changedOPT,
|
|
33417
33502
|
targetElements: resultPlannerUpdate.targetElements
|
|
33418
33503
|
});
|
|
33419
|
-
case
|
|
33504
|
+
case 54:
|
|
33420
33505
|
this.updatePosNrOfAccessoiresOfTargetArticles(set, targetArticlesWithNewValues);
|
|
33421
|
-
case
|
|
33506
|
+
case 55:
|
|
33422
33507
|
if (from == 'FromViewClick' && (_Object$keys = Object.keys(myValues)) !== null && _Object$keys !== void 0 && _Object$keys.length) {
|
|
33423
33508
|
this.confirmOptionsInMetric(set, [Object.keys(myValues)[0]]);
|
|
33424
33509
|
}
|
|
@@ -33427,7 +33512,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
33427
33512
|
elementIdsToUpdateSelection: (_resultPlannerUpdate = resultPlannerUpdate) === null || _resultPlannerUpdate === void 0 ? void 0 : _resultPlannerUpdate.elementIdsToUpdateSelection,
|
|
33428
33513
|
setId: set.getSetId()
|
|
33429
33514
|
});
|
|
33430
|
-
case
|
|
33515
|
+
case 57:
|
|
33431
33516
|
case "end":
|
|
33432
33517
|
return _context29.stop();
|
|
33433
33518
|
}
|
|
@@ -35291,7 +35376,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
35291
35376
|
break;
|
|
35292
35377
|
case 3:
|
|
35293
35378
|
_context12.next = 5;
|
|
35294
|
-
return import('./PfisterWWSHandler-
|
|
35379
|
+
return import('./PfisterWWSHandler-aeca0426.js');
|
|
35295
35380
|
case 5:
|
|
35296
35381
|
_yield$import = _context12.sent;
|
|
35297
35382
|
PfisterWWSHandler = _yield$import["default"];
|
|
@@ -35299,7 +35384,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
35299
35384
|
return _context12.abrupt("break", 27);
|
|
35300
35385
|
case 9:
|
|
35301
35386
|
_context12.next = 11;
|
|
35302
|
-
return import('./LiviqueWWSHandler-
|
|
35387
|
+
return import('./LiviqueWWSHandler-38e9535f.js');
|
|
35303
35388
|
case 11:
|
|
35304
35389
|
_yield$import2 = _context12.sent;
|
|
35305
35390
|
LiviqueWWSHandler = _yield$import2["default"];
|
|
@@ -35307,7 +35392,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
35307
35392
|
return _context12.abrupt("break", 27);
|
|
35308
35393
|
case 15:
|
|
35309
35394
|
_context12.next = 17;
|
|
35310
|
-
return import('./SeriousBasketHandler-
|
|
35395
|
+
return import('./SeriousBasketHandler-3ba6d570.js');
|
|
35311
35396
|
case 17:
|
|
35312
35397
|
_yield$import3 = _context12.sent;
|
|
35313
35398
|
SeriousWWSHandler = _yield$import3["default"];
|
|
@@ -35315,7 +35400,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
35315
35400
|
return _context12.abrupt("break", 27);
|
|
35316
35401
|
case 21:
|
|
35317
35402
|
_context12.next = 23;
|
|
35318
|
-
return import('./StandardWWSHandler-
|
|
35403
|
+
return import('./StandardWWSHandler-0975c1eb.js');
|
|
35319
35404
|
case 23:
|
|
35320
35405
|
_yield$import4 = _context12.sent;
|
|
35321
35406
|
StandardWWSHandler = _yield$import4["default"];
|
|
@@ -36758,7 +36843,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
36758
36843
|
while (1) switch (_context3.prev = _context3.next) {
|
|
36759
36844
|
case 0:
|
|
36760
36845
|
_context3.next = 2;
|
|
36761
|
-
return import('./Host3DSignalR-
|
|
36846
|
+
return import('./Host3DSignalR-d0af0f1f.js');
|
|
36762
36847
|
case 2:
|
|
36763
36848
|
_yield$import = _context3.sent;
|
|
36764
36849
|
Host3DSignalR = _yield$import["default"];
|
|
@@ -38200,7 +38285,8 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
38200
38285
|
break;
|
|
38201
38286
|
}
|
|
38202
38287
|
return _context2.abrupt("return", {
|
|
38203
|
-
elemIdsToDelete: []
|
|
38288
|
+
elemIdsToDelete: [],
|
|
38289
|
+
doDeleteBackGrid: false
|
|
38204
38290
|
});
|
|
38205
38291
|
case 2:
|
|
38206
38292
|
//Nothing changes, so do nothing
|
|
@@ -38322,7 +38408,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
38322
38408
|
break;
|
|
38323
38409
|
case 8:
|
|
38324
38410
|
_context4.next = 10;
|
|
38325
|
-
return import('./DivaStandardPlanner-
|
|
38411
|
+
return import('./DivaStandardPlanner-48846cb5.js');
|
|
38326
38412
|
case 10:
|
|
38327
38413
|
_yield$import = _context4.sent;
|
|
38328
38414
|
DivaStandardPlanner = _yield$import["default"];
|
|
@@ -38333,7 +38419,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
38333
38419
|
return _context4.abrupt("break", 21);
|
|
38334
38420
|
case 15:
|
|
38335
38421
|
_context4.next = 17;
|
|
38336
|
-
return import('./DivaBoxPlanner-
|
|
38422
|
+
return import('./DivaBoxPlanner-92b98d12.js');
|
|
38337
38423
|
case 17:
|
|
38338
38424
|
_yield$import2 = _context4.sent;
|
|
38339
38425
|
DivaBoxPlanner = _yield$import2["default"];
|
|
@@ -38956,11 +39042,11 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
38956
39042
|
*/
|
|
38957
39043
|
}, {
|
|
38958
39044
|
key: "getPlannerElementsInfluencedByDeletion",
|
|
38959
|
-
value: function getPlannerElementsInfluencedByDeletion(setId, elementId) {
|
|
39045
|
+
value: function getPlannerElementsInfluencedByDeletion(setId, elementId, deletionType) {
|
|
38960
39046
|
if (!this.plannerList.has(setId)) {
|
|
38961
39047
|
return [];
|
|
38962
39048
|
}
|
|
38963
|
-
return this.plannerList.get(setId).getPlannerElementsInfluencedByDeletion(elementId);
|
|
39049
|
+
return this.plannerList.get(setId).getPlannerElementsInfluencedByDeletion(elementId, deletionType);
|
|
38964
39050
|
}
|
|
38965
39051
|
|
|
38966
39052
|
/**
|
|
@@ -39072,6 +39158,14 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
39072
39158
|
}
|
|
39073
39159
|
return [];
|
|
39074
39160
|
}
|
|
39161
|
+
}, {
|
|
39162
|
+
key: "getPlannerInteractionInformation",
|
|
39163
|
+
value: function getPlannerInteractionInformation(setId) {
|
|
39164
|
+
if (this.plannerList.has(setId)) {
|
|
39165
|
+
return this.plannerList.get(setId).getPlannerInteractionInformation();
|
|
39166
|
+
}
|
|
39167
|
+
return undefined;
|
|
39168
|
+
}
|
|
39075
39169
|
}, {
|
|
39076
39170
|
key: "handle3DVisualizationChanged",
|
|
39077
39171
|
value: function handle3DVisualizationChanged(mode, params, doShow3DDimensionLines, alternateRenderingsExist) {
|
|
@@ -39645,7 +39739,9 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
39645
39739
|
deletionResult = _context4.sent;
|
|
39646
39740
|
(_this$actions7 = _this.actions) === null || _this$actions7 === void 0 || (_this$actions7$toggle = _this$actions7.toggleLoading) === null || _this$actions7$toggle === void 0 || _this$actions7$toggle.call(_this$actions7, 'plannerswitch' + articleCodex, false, true);
|
|
39647
39741
|
initParams.oldPlannerTransform = deletionResult.oldTransform;
|
|
39648
|
-
initParams.variantValues = variantValues
|
|
39742
|
+
initParams.variantValues = _objectSpread$5(_objectSpread$5({}, variantValues), {}, {
|
|
39743
|
+
OPTPLANNERSWITCH: 'OPV' + articleCodex
|
|
39744
|
+
});
|
|
39649
39745
|
_context4.next = 11;
|
|
39650
39746
|
return setHandlerInstance.addPlannerElement(set, articleCodex, initParams);
|
|
39651
39747
|
case 11:
|
|
@@ -39922,7 +40018,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
39922
40018
|
_defineProperty(this, "doConfigure", /*#__PURE__*/function () {
|
|
39923
40019
|
var _ref11 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee11(myValues, targetArticles, dontUpdatePlannerView, dontCallEvents) {
|
|
39924
40020
|
var _this$actions13, _this$actions13$toggl, _this$actions14, _this$actions14$toggl;
|
|
39925
|
-
var set, returnValues, structure, _returnValues$element, _this$updateViewPlann8, _this$updateElementSe4;
|
|
40021
|
+
var set, returnValues, structure, _returnValues$element, _this$updateViewPlann8, _this$updateElementSe4, info;
|
|
39926
40022
|
return _regeneratorRuntime.wrap(function _callee11$(_context11) {
|
|
39927
40023
|
while (1) switch (_context11.prev = _context11.next) {
|
|
39928
40024
|
case 0:
|
|
@@ -39961,7 +40057,9 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
39961
40057
|
return _this.fillBaksetforOnWebPlanerConfigChange(myValues);
|
|
39962
40058
|
case 21:
|
|
39963
40059
|
_this.configuratorChangeLog('onConfiguratorStep', myValues);
|
|
39964
|
-
|
|
40060
|
+
info = setHandlerInstance.getPlannerInteractionInformation(set);
|
|
40061
|
+
if (info) LOG$1.debug(info.boxPlannerInteractionInformationPerElement.keys.length.toString());
|
|
40062
|
+
case 24:
|
|
39965
40063
|
case "end":
|
|
39966
40064
|
return _context11.stop();
|
|
39967
40065
|
}
|
|
@@ -56430,16 +56528,6 @@ var a$9 = [{
|
|
|
56430
56528
|
name: 'System 4',
|
|
56431
56529
|
speciality: 'black border',
|
|
56432
56530
|
url: 'https://cdn.diva-portal.com/media/9408e932-10ca-4a96-84e3-2aba07e52624/MOC/bc44222a-693c-4278-a977-d2899a97b6c5/catQUADRO_V2/DivaNrDIVA-6870908-1-1662105883430.txt'
|
|
56433
|
-
}, {
|
|
56434
|
-
divaNr: 'DIVA-990926-1',
|
|
56435
|
-
name: 'System 4',
|
|
56436
|
-
speciality: 'doppelmodul einfach',
|
|
56437
|
-
url: 'https://cdn.diva-portal.com/media/9408e932-10ca-4a96-84e3-2aba07e52624/MOC/bc44222a-693c-4278-a977-d2899a97b6c5/catQUADRO_V2/DivaNrDIVA-990926-1-1662105885615.txt'
|
|
56438
|
-
}, {
|
|
56439
|
-
divaNr: 'DIVA-5371884-1',
|
|
56440
|
-
name: 'System 4',
|
|
56441
|
-
speciality: 'doppelmodul komplex',
|
|
56442
|
-
url: 'https://cdn.diva-portal.com/media/9408e932-10ca-4a96-84e3-2aba07e52624/MOC/bc44222a-693c-4278-a977-d2899a97b6c5/catQUADRO_V2/DivaNrDIVA-5371884-1-1662105888677.txt'
|
|
56443
56531
|
}];
|
|
56444
56532
|
|
|
56445
56533
|
var a$8 = [{
|
|
@@ -56632,11 +56720,6 @@ var a$8 = [{
|
|
|
56632
56720
|
name: 'Steinpol Poco VME Carolina XC',
|
|
56633
56721
|
speciality: '',
|
|
56634
56722
|
url: 'https://cdn.diva-portal.com/media/874b9f97-66bb-4ba5-9bcd-8044331c33f6/MOC/1fe5397e-9969-4baf-b891-bcb799e8c59d/cat6234/DivaNrDIVA-373156-1.txt'
|
|
56635
|
-
}, {
|
|
56636
|
-
divaNr: 'DIVA-83970-1',
|
|
56637
|
-
name: 'Steinpol Poco VME Limone',
|
|
56638
|
-
speciality: '',
|
|
56639
|
-
url: 'https://cdn.diva-portal.com/media/874b9f97-66bb-4ba5-9bcd-8044331c33f6/MOC/1fe5397e-9969-4baf-b891-bcb799e8c59d/cat5936/DivaNrDIVA-83970-1.txt'
|
|
56640
56723
|
}, {
|
|
56641
56724
|
divaNr: 'DIVA-438941-1',
|
|
56642
56725
|
name: 'Steinpol Poco VME Westpoint ',
|