@crystaldesign/web-planner-logic 24.12.1 → 24.12.2
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-303a552b.js → DivaBoxPlanner-1c78ef85.js} +317 -318
- package/build/cjs/{DivaStandardPlanner-2f994125.js → DivaStandardPlanner-eb45e763.js} +82 -82
- package/build/cjs/{DoorPlanner-1faa1593.js → DoorPlanner-3a199423.js} +1 -1
- package/build/cjs/{Host3DSignalR-a9bc4c70.js → Host3DSignalR-c52991a0.js} +43 -43
- package/build/cjs/{LiviqueWWSHandler-e9462b37.js → LiviqueWWSHandler-6607e52f.js} +1 -1
- package/build/cjs/{PfisterWWSHandler-65b5992f.js → PfisterWWSHandler-2ea37e1d.js} +6 -6
- package/build/cjs/{PlannerHandler2D-9ce74b8c.js → PlannerHandler2D-de64a752.js} +189 -189
- package/build/cjs/{SeriousBasketHandler-c0d4f0f5.js → SeriousBasketHandler-03648231.js} +1 -1
- package/build/cjs/{ShelfPlanner-642594d4.js → ShelfPlanner-4402bf3e.js} +86 -86
- package/build/cjs/{StandardWWSHandler-c7833d13.js → StandardWWSHandler-62bc3cc6.js} +1 -1
- package/build/cjs/{index-530d9304.js → index-e86ab943.js} +632 -632
- package/build/cjs/index.js +1 -1
- package/build/esm/{DivaBoxPlanner-0748b14a.js → DivaBoxPlanner-655a32f3.js} +317 -318
- package/build/esm/{DivaStandardPlanner-2c8858b2.js → DivaStandardPlanner-e1faf2c9.js} +82 -82
- package/build/esm/{DoorPlanner-c640fd24.js → DoorPlanner-cfebaef8.js} +1 -1
- package/build/esm/{Host3DSignalR-aa3a4b4d.js → Host3DSignalR-5d924d77.js} +43 -43
- package/build/esm/{LiviqueWWSHandler-8d2570dd.js → LiviqueWWSHandler-62ff852e.js} +1 -1
- package/build/esm/{PfisterWWSHandler-c046e3ee.js → PfisterWWSHandler-1cf1fce6.js} +6 -6
- package/build/esm/{PlannerHandler2D-844fc811.js → PlannerHandler2D-ad96ee8d.js} +189 -189
- package/build/esm/{SeriousBasketHandler-b8e1b0da.js → SeriousBasketHandler-9e031da4.js} +1 -1
- package/build/esm/{ShelfPlanner-f3218c50.js → ShelfPlanner-4f446e61.js} +86 -86
- package/build/esm/{StandardWWSHandler-a3c5246b.js → StandardWWSHandler-e72ecb08.js} +1 -1
- package/build/esm/{index-3870ea62.js → index-84339e2f.js} +632 -632
- package/build/esm/index.js +1 -1
- package/package.json +2 -2
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _classCallCheck = require('@babel/runtime/helpers/classCallCheck');
|
|
4
4
|
var _createClass = require('@babel/runtime/helpers/createClass');
|
|
5
5
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-e86ab943.js');
|
|
7
7
|
var DivaUtils = require('@crystaldesign/diva-utils');
|
|
8
8
|
require('@babel/runtime/helpers/asyncToGenerator');
|
|
9
9
|
require('@babel/runtime/regenerator');
|
|
@@ -6,7 +6,7 @@ var _classCallCheck = require('@babel/runtime/helpers/classCallCheck');
|
|
|
6
6
|
var _createClass = require('@babel/runtime/helpers/createClass');
|
|
7
7
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
8
8
|
var _regeneratorRuntime = require('@babel/runtime/regenerator');
|
|
9
|
-
var index = require('./index-
|
|
9
|
+
var index = require('./index-e86ab943.js');
|
|
10
10
|
var DivaUtils = require('@crystaldesign/diva-utils');
|
|
11
11
|
require('@babel/runtime/helpers/objectWithoutProperties');
|
|
12
12
|
require('@babel/runtime/helpers/slicedToArray');
|
|
@@ -74,8 +74,8 @@ var ShelfPlanner = /*#__PURE__*/function () {
|
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
-
/**
|
|
78
|
-
* init dictionary of all the accessoires that which can be free in theory
|
|
77
|
+
/**
|
|
78
|
+
* init dictionary of all the accessoires that which can be free in theory
|
|
79
79
|
*/
|
|
80
80
|
return _createClass__default["default"](ShelfPlanner, [{
|
|
81
81
|
key: "initFreeArticles",
|
|
@@ -98,10 +98,10 @@ var ShelfPlanner = /*#__PURE__*/function () {
|
|
|
98
98
|
get: function get() {
|
|
99
99
|
return this.isVisible;
|
|
100
100
|
}
|
|
101
|
-
/**
|
|
102
|
-
* if the shelfplanner step was not visible but is visible again the initAcc get initialized but only if !this.article.shelfPlanData -> the shelfplanner get initialized from basket
|
|
103
|
-
* if the shelfplanner step is no more visible delete all the accessoires
|
|
104
|
-
* @param isVisible new value
|
|
101
|
+
/**
|
|
102
|
+
* if the shelfplanner step was not visible but is visible again the initAcc get initialized but only if !this.article.shelfPlanData -> the shelfplanner get initialized from basket
|
|
103
|
+
* if the shelfplanner step is no more visible delete all the accessoires
|
|
104
|
+
* @param isVisible new value
|
|
105
105
|
*/
|
|
106
106
|
}, {
|
|
107
107
|
key: "setIsVisible",
|
|
@@ -147,8 +147,8 @@ var ShelfPlanner = /*#__PURE__*/function () {
|
|
|
147
147
|
}
|
|
148
148
|
return setIsVisible;
|
|
149
149
|
}()
|
|
150
|
-
/**
|
|
151
|
-
* if the config is changed and the grid gets new height / accessories a new grid gets created
|
|
150
|
+
/**
|
|
151
|
+
* if the config is changed and the grid gets new height / accessories a new grid gets created
|
|
152
152
|
*/
|
|
153
153
|
)
|
|
154
154
|
}, {
|
|
@@ -230,9 +230,9 @@ var ShelfPlanner = /*#__PURE__*/function () {
|
|
|
230
230
|
this.grids[i] = new index.Grid(i, this.article, this.data);
|
|
231
231
|
}
|
|
232
232
|
|
|
233
|
-
/**
|
|
234
|
-
* runs through the InitAccArr and initialized all the accessoires eg: Kleiderstange gets placed
|
|
235
|
-
* if the replaceFromParent == true it removed the same article from the parent shelfplanner if one is found eg: Kleiderstange gets removed from schrank when the T-Sück gets initialized
|
|
233
|
+
/**
|
|
234
|
+
* runs through the InitAccArr and initialized all the accessoires eg: Kleiderstange gets placed
|
|
235
|
+
* if the replaceFromParent == true it removed the same article from the parent shelfplanner if one is found eg: Kleiderstange gets removed from schrank when the T-Sück gets initialized
|
|
236
236
|
*/
|
|
237
237
|
}, {
|
|
238
238
|
key: "initAccList",
|
|
@@ -330,11 +330,11 @@ var ShelfPlanner = /*#__PURE__*/function () {
|
|
|
330
330
|
}
|
|
331
331
|
return initAccList;
|
|
332
332
|
}()
|
|
333
|
-
/**
|
|
334
|
-
* finds all the accessoires of one grid by articleCodex
|
|
335
|
-
* @param shelfId
|
|
336
|
-
* @param articleCodex
|
|
337
|
-
* @returns
|
|
333
|
+
/**
|
|
334
|
+
* finds all the accessoires of one grid by articleCodex
|
|
335
|
+
* @param shelfId
|
|
336
|
+
* @param articleCodex
|
|
337
|
+
* @returns
|
|
338
338
|
*/
|
|
339
339
|
)
|
|
340
340
|
}, {
|
|
@@ -468,13 +468,13 @@ var ShelfPlanner = /*#__PURE__*/function () {
|
|
|
468
468
|
return this.takePlaceOnOtherGrids;
|
|
469
469
|
}
|
|
470
470
|
|
|
471
|
-
/**
|
|
472
|
-
* its checked if the accessoire has place on a specific grid on a specific cell
|
|
473
|
-
* if the accessoire doesTakePlaceOnOtherGrids == true then we must check on the other grids aswell if there is place
|
|
474
|
-
* @param gridIndex specific grid
|
|
475
|
-
* @param cellIndex specific cell
|
|
476
|
-
* @param accessoire
|
|
477
|
-
* @returns
|
|
471
|
+
/**
|
|
472
|
+
* its checked if the accessoire has place on a specific grid on a specific cell
|
|
473
|
+
* if the accessoire doesTakePlaceOnOtherGrids == true then we must check on the other grids aswell if there is place
|
|
474
|
+
* @param gridIndex specific grid
|
|
475
|
+
* @param cellIndex specific cell
|
|
476
|
+
* @param accessoire
|
|
477
|
+
* @returns
|
|
478
478
|
*/
|
|
479
479
|
}, {
|
|
480
480
|
key: "tryFitOnShelfOfGrid",
|
|
@@ -501,12 +501,12 @@ var ShelfPlanner = /*#__PURE__*/function () {
|
|
|
501
501
|
}
|
|
502
502
|
}
|
|
503
503
|
|
|
504
|
-
/**
|
|
505
|
-
*
|
|
506
|
-
* @param gridName
|
|
507
|
-
* @param accessoire
|
|
508
|
-
* @param excludeAccessoireInfluence for the drag and drop usecase we need to calc all the free grids with exluding the moving accessoire
|
|
509
|
-
* @returns
|
|
504
|
+
/**
|
|
505
|
+
*
|
|
506
|
+
* @param gridName
|
|
507
|
+
* @param accessoire
|
|
508
|
+
* @param excludeAccessoireInfluence for the drag and drop usecase we need to calc all the free grids with exluding the moving accessoire
|
|
509
|
+
* @returns
|
|
510
510
|
*/
|
|
511
511
|
}, {
|
|
512
512
|
key: "getFreeSpacesOfAccessoireOfGrids",
|
|
@@ -539,11 +539,11 @@ var ShelfPlanner = /*#__PURE__*/function () {
|
|
|
539
539
|
return ret;
|
|
540
540
|
}
|
|
541
541
|
|
|
542
|
-
/**
|
|
543
|
-
* delete specific accessoire in the grid
|
|
544
|
-
* @param gridIndex
|
|
545
|
-
* @param cellIndex
|
|
546
|
-
* @returns
|
|
542
|
+
/**
|
|
543
|
+
* delete specific accessoire in the grid
|
|
544
|
+
* @param gridIndex
|
|
545
|
+
* @param cellIndex
|
|
546
|
+
* @returns
|
|
547
547
|
*/
|
|
548
548
|
}, {
|
|
549
549
|
key: "deleteAccessoireOfCellInGrid",
|
|
@@ -588,10 +588,10 @@ var ShelfPlanner = /*#__PURE__*/function () {
|
|
|
588
588
|
}
|
|
589
589
|
return deleteAccessoireOfCellInGrid;
|
|
590
590
|
}()
|
|
591
|
-
/**
|
|
592
|
-
* if the deleted accessoire was free (no price) check if another existing one can now become free
|
|
593
|
-
* @param accessoire
|
|
594
|
-
* @param gridIndex
|
|
591
|
+
/**
|
|
592
|
+
* if the deleted accessoire was free (no price) check if another existing one can now become free
|
|
593
|
+
* @param accessoire
|
|
594
|
+
* @param gridIndex
|
|
595
595
|
*/
|
|
596
596
|
)
|
|
597
597
|
}, {
|
|
@@ -609,11 +609,11 @@ var ShelfPlanner = /*#__PURE__*/function () {
|
|
|
609
609
|
}
|
|
610
610
|
}
|
|
611
611
|
}
|
|
612
|
-
/**
|
|
613
|
-
* clears all the placeholders of other grids if the accessorie TakePlaceOnOtherGrids == true
|
|
614
|
-
* @param gridIndex
|
|
615
|
-
* @param cellIndex
|
|
616
|
-
* @param accessoire
|
|
612
|
+
/**
|
|
613
|
+
* clears all the placeholders of other grids if the accessorie TakePlaceOnOtherGrids == true
|
|
614
|
+
* @param gridIndex
|
|
615
|
+
* @param cellIndex
|
|
616
|
+
* @param accessoire
|
|
617
617
|
*/
|
|
618
618
|
}, {
|
|
619
619
|
key: "handleDeleteTakePlaceOnOtherGrids",
|
|
@@ -678,12 +678,12 @@ var ShelfPlanner = /*#__PURE__*/function () {
|
|
|
678
678
|
}
|
|
679
679
|
return handleDeleteTakePlaceOnOtherGrids;
|
|
680
680
|
}()
|
|
681
|
-
/**
|
|
682
|
-
* accessoire gets planned on a grid in a specific cellIndex which was already controlled if it fits there via function tryFitOnShelfOfGrid
|
|
683
|
-
* @param accessoire
|
|
684
|
-
* @param gridIndex
|
|
685
|
-
* @param cellIndex
|
|
686
|
-
* @param type
|
|
681
|
+
/**
|
|
682
|
+
* accessoire gets planned on a grid in a specific cellIndex which was already controlled if it fits there via function tryFitOnShelfOfGrid
|
|
683
|
+
* @param accessoire
|
|
684
|
+
* @param gridIndex
|
|
685
|
+
* @param cellIndex
|
|
686
|
+
* @param type
|
|
687
687
|
*/
|
|
688
688
|
)
|
|
689
689
|
}, {
|
|
@@ -727,9 +727,9 @@ var ShelfPlanner = /*#__PURE__*/function () {
|
|
|
727
727
|
}
|
|
728
728
|
return addAccessoireInCellInGrid;
|
|
729
729
|
}()
|
|
730
|
-
/**
|
|
731
|
-
* check if new accessoire can be free
|
|
732
|
-
* @param accessoire
|
|
730
|
+
/**
|
|
731
|
+
* check if new accessoire can be free
|
|
732
|
+
* @param accessoire
|
|
733
733
|
*/
|
|
734
734
|
)
|
|
735
735
|
}, {
|
|
@@ -743,10 +743,10 @@ var ShelfPlanner = /*#__PURE__*/function () {
|
|
|
743
743
|
}
|
|
744
744
|
}
|
|
745
745
|
}
|
|
746
|
-
/**
|
|
747
|
-
* checks if the accessoire should TakePlaceOnOtherGrids
|
|
748
|
-
* @param takePlaceOnOtherGrids
|
|
749
|
-
* @returns
|
|
746
|
+
/**
|
|
747
|
+
* checks if the accessoire should TakePlaceOnOtherGrids
|
|
748
|
+
* @param takePlaceOnOtherGrids
|
|
749
|
+
* @returns
|
|
750
750
|
*/
|
|
751
751
|
}, {
|
|
752
752
|
key: "doesTakePlaceOnOtherGrids",
|
|
@@ -801,9 +801,9 @@ var ShelfPlanner = /*#__PURE__*/function () {
|
|
|
801
801
|
return somethingChanged;
|
|
802
802
|
}
|
|
803
803
|
|
|
804
|
-
/**
|
|
805
|
-
* values that get saved in the basket to re-initialize the shelf
|
|
806
|
-
* @returns
|
|
804
|
+
/**
|
|
805
|
+
* values that get saved in the basket to re-initialize the shelf
|
|
806
|
+
* @returns
|
|
807
807
|
*/
|
|
808
808
|
}, {
|
|
809
809
|
key: "generateShelfPlandata",
|
|
@@ -839,10 +839,10 @@ var ShelfPlanner = /*#__PURE__*/function () {
|
|
|
839
839
|
};
|
|
840
840
|
}
|
|
841
841
|
|
|
842
|
-
/**
|
|
843
|
-
* collecting all the information that is needed for the 3D exe
|
|
844
|
-
* @param accessoires
|
|
845
|
-
* @returns
|
|
842
|
+
/**
|
|
843
|
+
* collecting all the information that is needed for the 3D exe
|
|
844
|
+
* @param accessoires
|
|
845
|
+
* @returns
|
|
846
846
|
*/
|
|
847
847
|
}, {
|
|
848
848
|
key: "getShelfPlannerAccessoires3DValues",
|
|
@@ -873,9 +873,9 @@ var ShelfPlanner = /*#__PURE__*/function () {
|
|
|
873
873
|
}
|
|
874
874
|
return accessoires;
|
|
875
875
|
}
|
|
876
|
-
/**
|
|
877
|
-
* return specific shelfElementId. works reqursive. Used to identify every grid on their parents and parents-parent etc. for the 3DValues
|
|
878
|
-
* @returns
|
|
876
|
+
/**
|
|
877
|
+
* return specific shelfElementId. works reqursive. Used to identify every grid on their parents and parents-parent etc. for the 3DValues
|
|
878
|
+
* @returns
|
|
879
879
|
*/
|
|
880
880
|
}, {
|
|
881
881
|
key: "getShelfElementId",
|
|
@@ -889,9 +889,9 @@ var ShelfPlanner = /*#__PURE__*/function () {
|
|
|
889
889
|
return this.article.elementId.toString();
|
|
890
890
|
}
|
|
891
891
|
}
|
|
892
|
-
/**
|
|
893
|
-
* return the index of the accessoire on which it is placed in the parent
|
|
894
|
-
* @returns
|
|
892
|
+
/**
|
|
893
|
+
* return the index of the accessoire on which it is placed in the parent
|
|
894
|
+
* @returns
|
|
895
895
|
*/
|
|
896
896
|
}, {
|
|
897
897
|
key: "getRHOnParentArticle",
|
|
@@ -905,10 +905,10 @@ var ShelfPlanner = /*#__PURE__*/function () {
|
|
|
905
905
|
})) === null || _this$article$accesso3 === void 0 ? void 0 : _this$article$accesso3.InUse;
|
|
906
906
|
}
|
|
907
907
|
|
|
908
|
-
/**
|
|
909
|
-
* retrun all the required values of the current selectable accessoires for the view
|
|
910
|
-
* @param configStepKey
|
|
911
|
-
* @returns
|
|
908
|
+
/**
|
|
909
|
+
* retrun all the required values of the current selectable accessoires for the view
|
|
910
|
+
* @param configStepKey
|
|
911
|
+
* @returns
|
|
912
912
|
*/
|
|
913
913
|
}, {
|
|
914
914
|
key: "getShelfPlannerItems",
|
|
@@ -954,9 +954,9 @@ var ShelfPlanner = /*#__PURE__*/function () {
|
|
|
954
954
|
grids: grids
|
|
955
955
|
};
|
|
956
956
|
}
|
|
957
|
-
/**
|
|
958
|
-
* helperfuntion to get the parentshelfId of an shelfPlanner eg: T-Stück
|
|
959
|
-
* @returns
|
|
957
|
+
/**
|
|
958
|
+
* helperfuntion to get the parentshelfId of an shelfPlanner eg: T-Stück
|
|
959
|
+
* @returns
|
|
960
960
|
*/
|
|
961
961
|
}, {
|
|
962
962
|
key: "getShelfParentShelfId",
|
|
@@ -966,9 +966,9 @@ var ShelfPlanner = /*#__PURE__*/function () {
|
|
|
966
966
|
return undefined;
|
|
967
967
|
}
|
|
968
968
|
|
|
969
|
-
/**
|
|
970
|
-
* if the dockingpoints get updated check updateDisabledCells
|
|
971
|
-
* @param dpType
|
|
969
|
+
/**
|
|
970
|
+
* if the dockingpoints get updated check updateDisabledCells
|
|
971
|
+
* @param dpType
|
|
972
972
|
*/
|
|
973
973
|
}, {
|
|
974
974
|
key: "updateOnDockingChanged",
|
|
@@ -976,8 +976,8 @@ var ShelfPlanner = /*#__PURE__*/function () {
|
|
|
976
976
|
if (dpType == 'AVL' && this.disableCellsByElement == 'RH_OVER_AVL' || dpType == 'AVR' && this.disableCellsByElement == 'RH_OVER_AVR') this.updateDisabledCells();
|
|
977
977
|
}
|
|
978
978
|
|
|
979
|
-
/**
|
|
980
|
-
* calls the update/check on itself and the docket article
|
|
979
|
+
/**
|
|
980
|
+
* calls the update/check on itself and the docket article
|
|
981
981
|
*/
|
|
982
982
|
}, {
|
|
983
983
|
key: "updateDisabledCells",
|
|
@@ -1006,10 +1006,10 @@ var ShelfPlanner = /*#__PURE__*/function () {
|
|
|
1006
1006
|
}
|
|
1007
1007
|
}
|
|
1008
1008
|
|
|
1009
|
-
/**
|
|
1010
|
-
* this function checks if cells are still disabled by a neighbour and updates them
|
|
1011
|
-
* @param count
|
|
1012
|
-
* @param fromDockSide
|
|
1009
|
+
/**
|
|
1010
|
+
* this function checks if cells are still disabled by a neighbour and updates them
|
|
1011
|
+
* @param count
|
|
1012
|
+
* @param fromDockSide
|
|
1013
1013
|
*/
|
|
1014
1014
|
}, {
|
|
1015
1015
|
key: "disableCellsByDockedShelfs",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var _classCallCheck = require('@babel/runtime/helpers/classCallCheck');
|
|
4
4
|
var _createClass = require('@babel/runtime/helpers/createClass');
|
|
5
|
-
require('./index-
|
|
5
|
+
require('./index-e86ab943.js');
|
|
6
6
|
require('@babel/runtime/helpers/asyncToGenerator');
|
|
7
7
|
require('@babel/runtime/helpers/defineProperty');
|
|
8
8
|
require('@babel/runtime/regenerator');
|