cat-qw-lib 0.43.18 → 0.43.19

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.
@@ -596,9 +596,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.4", ngImpor
596
596
  class FormStateService {
597
597
  formChangesSubject$;
598
598
  isFormNavigating$;
599
+ isShowConfirmation$;
599
600
  constructor() {
600
601
  this.formChangesSubject$ = new BehaviorSubject(false);
601
602
  this.isFormNavigating$ = new BehaviorSubject(false);
603
+ this.isShowConfirmation$ = new BehaviorSubject(false);
602
604
  }
603
605
  setIsFormNavigating(isNavigation) {
604
606
  this.isFormNavigating$.next(isNavigation);
@@ -618,6 +620,12 @@ class FormStateService {
618
620
  selectIsFormSaved() {
619
621
  return this.formChangesSubject$.asObservable();
620
622
  }
623
+ setShowConfirmation(value) {
624
+ return this.isShowConfirmation$.next(value);
625
+ }
626
+ selectShowConfirmation() {
627
+ return this.isShowConfirmation$.asObservable();
628
+ }
621
629
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.4", ngImport: i0, type: FormStateService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
622
630
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.4", ngImport: i0, type: FormStateService, providedIn: 'root' });
623
631
  }
@@ -714,13 +722,13 @@ class BaseControlComponent {
714
722
  const hasChanges = JSON.stringify(this.initialRecord) !== JSON.stringify(this.record);
715
723
  if (this.formStateService && hasChanges) {
716
724
  console.log("5=> false", hasChanges);
717
- this.formStateService.setIsFormSaved(hasChanges);
725
+ this.formStateService.setShowConfirmation(hasChanges);
718
726
  }
719
727
  }
720
728
  else {
721
729
  if (this.formStateService) {
722
730
  console.log("6=> else");
723
- this.formStateService.setIsFormSaved(false);
731
+ this.formStateService.setShowConfirmation(false);
724
732
  }
725
733
  }
726
734
  });