fabrikantencore 2.37.2 → 2.38.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/esm2022/src/app/modules/fabrikantencore/components/fab-product/fab-product.component.mjs +2 -9
- package/esm2022/src/app/modules/fabrikantencore/services/fabrikanten.service.mjs +25 -1
- package/fesm2022/fabrikantencore.mjs +25 -8
- package/fesm2022/fabrikantencore.mjs.map +1 -1
- package/package.json +1 -1
- package/src/app/modules/fabrikantencore/services/fabrikanten.service.d.ts +1 -0
|
@@ -19362,6 +19362,16 @@ class FabrikantenService {
|
|
|
19362
19362
|
}
|
|
19363
19363
|
return false;
|
|
19364
19364
|
}
|
|
19365
|
+
Show2D() {
|
|
19366
|
+
if (this.FabrikantenViewModel?.selectedProduct?.fabrikantenBCBProductViewModels != null) {
|
|
19367
|
+
for (var i = 0; i < this.FabrikantenViewModel.selectedProduct.fabrikantenBCBProductViewModels.length; i++) {
|
|
19368
|
+
if (this.FabrikantenViewModel.selectedProduct.fabrikantenBCBProductViewModels[i].snedes != '') {
|
|
19369
|
+
return true;
|
|
19370
|
+
}
|
|
19371
|
+
}
|
|
19372
|
+
}
|
|
19373
|
+
return false;
|
|
19374
|
+
}
|
|
19365
19375
|
IsAProductSelected() {
|
|
19366
19376
|
if (this.FabrikantenViewModel?.selectedProduct != null) {
|
|
19367
19377
|
return true;
|
|
@@ -20317,6 +20327,20 @@ class FabrikantenService {
|
|
|
20317
20327
|
if (this.FabrikantenSettingsViewModel.hideInformationTab && this.SelectedTab == "Informatie") {
|
|
20318
20328
|
this.SelectedTab = "3D";
|
|
20319
20329
|
}
|
|
20330
|
+
if (this.SelectedTab == "3D") {
|
|
20331
|
+
if (this.FabrikantenViewModel?.selectedProduct != undefined &&
|
|
20332
|
+
this.FabrikantenViewModel.selectedProduct.fabrikantenBCBProductViewModels != undefined &&
|
|
20333
|
+
this.FabrikantenViewModel.selectedProduct.fabrikantenBCBProductViewModels.length > 0) {
|
|
20334
|
+
if (!this.FabrikantenViewModel.selectedProduct.fabrikantenBCBProductViewModels[0].has3D) {
|
|
20335
|
+
this.SelectedTab = "2D";
|
|
20336
|
+
this.SelectedTabIndex = 0;
|
|
20337
|
+
}
|
|
20338
|
+
}
|
|
20339
|
+
}
|
|
20340
|
+
if (this.SelectedTab == "2D" && !this.Show2D()) {
|
|
20341
|
+
this.SelectedTab = "Bestek";
|
|
20342
|
+
this.SelectedTabIndex = 0;
|
|
20343
|
+
}
|
|
20320
20344
|
if (array != null && (array.length == 1 || this.FabrikantenSettingsViewModel.alwaysShowVariant)) {
|
|
20321
20345
|
if (this.SelectedTab == "Bestek" || this.ForceUpdateBestek) {
|
|
20322
20346
|
if (this.TranslateService.ShowSpecification()) {
|
|
@@ -27015,14 +27039,7 @@ class FabProductComponent {
|
|
|
27015
27039
|
return false;
|
|
27016
27040
|
}
|
|
27017
27041
|
Show2D() {
|
|
27018
|
-
|
|
27019
|
-
for (var i = 0; i < this.FabrikantenService.FabrikantenViewModel.selectedProduct.fabrikantenBCBProductViewModels.length; i++) {
|
|
27020
|
-
if (this.FabrikantenService.FabrikantenViewModel.selectedProduct.fabrikantenBCBProductViewModels[i].snedes != '') {
|
|
27021
|
-
return true;
|
|
27022
|
-
}
|
|
27023
|
-
}
|
|
27024
|
-
}
|
|
27025
|
-
return false;
|
|
27042
|
+
return this.FabrikantenService.Show2D();
|
|
27026
27043
|
}
|
|
27027
27044
|
ShowSpecification() {
|
|
27028
27045
|
if (this.TranslateService.ShowSpecification()) {
|