@idsoftsource/initial-process 2.3.9 → 2.4.1

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.
@@ -6975,7 +6975,7 @@ class ProfessionService {
6975
6975
  http = inject(HttpClient);
6976
6976
  baseUrl = 'Profession';
6977
6977
  getProfessions(query = {}) {
6978
- return this.http.get(this.baseUrl, {
6978
+ return this.http.get(this.baseUrl + '/GetProfession', {
6979
6979
  params: this.buildParams(query),
6980
6980
  });
6981
6981
  }
@@ -34711,6 +34711,9 @@ class InitialProcessComponent {
34711
34711
  await this.getUser();
34712
34712
  this.restoreState();
34713
34713
  this.isInitializing = false;
34714
+ setTimeout(() => {
34715
+ this.intializeSignaturePad();
34716
+ }, 500);
34714
34717
  }
34715
34718
  async getUser() {
34716
34719
  this.users = {
@@ -34730,17 +34733,21 @@ class InitialProcessComponent {
34730
34733
  return this.userForm.controls;
34731
34734
  }
34732
34735
  ngAfterViewInit() {
34733
- this.signaturePad = new SignaturePad(this.canvasRef.nativeElement, {
34734
- penColor: 'black',
34735
- backgroundColor: 'transparent',
34736
- });
34737
- this.signaturePad.penColor = 'black';
34738
- this.signaturePad.on();
34739
- this.signaturePad.onEnd = () => {
34740
- this.signatureDirty = true;
34741
- this.emitPoints();
34742
- };
34743
- this.applyPoints();
34736
+ }
34737
+ intializeSignaturePad() {
34738
+ if (this.canvasRef.nativeElement) {
34739
+ this.signaturePad = new SignaturePad(this.canvasRef.nativeElement, {
34740
+ penColor: 'black',
34741
+ backgroundColor: 'transparent',
34742
+ });
34743
+ this.signaturePad.penColor = 'black';
34744
+ this.signaturePad.on();
34745
+ this.signaturePad.onEnd = () => {
34746
+ this.signatureDirty = true;
34747
+ this.emitPoints();
34748
+ };
34749
+ this.applyPoints();
34750
+ }
34744
34751
  }
34745
34752
  clearPad() {
34746
34753
  this.signaturePad.clear();