fabrikantencore 2.40.3 → 2.40.5

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.
@@ -19457,7 +19457,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImpo
19457
19457
  class SVGService {
19458
19458
  FabrikantenApiClient;
19459
19459
  sanitization;
19460
- Loading = false;
19460
+ LoadingSignal = signal(false, ...(ngDevMode ? [{ debugName: "LoadingSignal" }] : /* istanbul ignore next */ []));
19461
+ get Loading() {
19462
+ return this.LoadingSignal();
19463
+ }
19461
19464
  FabrikantenSVGViewModel;
19462
19465
  SafeURLLoaded = false;
19463
19466
  SafeURL;
@@ -19472,6 +19475,7 @@ class SVGService {
19472
19475
  constructor(FabrikantenApiClient, sanitization) {
19473
19476
  this.FabrikantenApiClient = FabrikantenApiClient;
19474
19477
  this.sanitization = sanitization;
19478
+ this.SafeURL = this.sanitization.bypassSecurityTrustResourceUrl("");
19475
19479
  }
19476
19480
  ClearCache() {
19477
19481
  this.FabrikantenSVGViewModel = null;
@@ -19481,7 +19485,7 @@ class SVGService {
19481
19485
  }
19482
19486
  LoadFabrikantenSVGViewModel(sessionid, ChangeDetectorRef) {
19483
19487
  if (!this.Loading) {
19484
- this.Loading = true;
19488
+ this.LoadingSignal.set(true);
19485
19489
  ChangeDetectorRef.detectChanges();
19486
19490
  var request = new FabrikantenSVGRequestModel();
19487
19491
  request.sessionId = sessionid;
@@ -19495,7 +19499,7 @@ class SVGService {
19495
19499
  this.SafeURL = this.sanitization.bypassSecurityTrustResourceUrl(this.FabrikantenSVGViewModel.svg + "");
19496
19500
  this.SafeURLLoaded = true;
19497
19501
  this.CollectSnedes();
19498
- this.Loading = false;
19502
+ this.LoadingSignal.set(false);
19499
19503
  ChangeDetectorRef.detectChanges();
19500
19504
  if (this.FabrikantenService != null) {
19501
19505
  if (this.FabrikantenSVGViewModel.checksum != this.FabrikantenService.FabrikantenViewModel.checksum) {
@@ -19511,7 +19515,7 @@ class SVGService {
19511
19515
  }
19512
19516
  }, (error) => {
19513
19517
  alert('An unexpected error occured');
19514
- this.Loading = false;
19518
+ this.LoadingSignal.set(false);
19515
19519
  });
19516
19520
  }
19517
19521
  else {
@@ -21010,12 +21014,14 @@ class FabrikantenService {
21010
21014
  if (!this.FabrikantenViewModel.selectedProduct.fabrikantenBCBProductViewModels[0].has3D) {
21011
21015
  this.SelectedTab = "2D";
21012
21016
  this.SelectedTabIndex = 0;
21017
+ console.log("forced SelectedTab to '2D' and SelectedTabIndex to 0: this.FabrikantenViewModel.selectedProduct.fabrikantenBCBProductViewModels[0].has3D: " + this.FabrikantenViewModel.selectedProduct.fabrikantenBCBProductViewModels[0].has3D);
21013
21018
  }
21014
21019
  }
21015
21020
  }
21016
21021
  if (this.SelectedTab == "2D" && !this.Show2D()) {
21017
21022
  this.SelectedTab = "Bestek";
21018
21023
  this.SelectedTabIndex = 0;
21024
+ console.log("forced SelectedTab to 'Bestek' and SelectedTabIndex to 0: this.Show2D(): " + this.Show2D());
21019
21025
  }
21020
21026
  if (array != null && (array.length == 1 || this.FabrikantenSettingsViewModel.alwaysShowVariant)) {
21021
21027
  if (this.SelectedTab == "Bestek" || this.ForceUpdateBestek) {