@idsoftsource/initial-process 2.4.9 → 2.5.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.
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { InjectionToken, OnInit, ElementRef, EventEmitter, TemplateRef, OnDestroy, AfterViewInit, Injector, OnChanges, ChangeDetectorRef, SimpleChanges, ViewContainerRef, ComponentFactoryResolver, Renderer2, ModuleWithProviders, PipeTransform, NgZone } from '@angular/core';
2
+ import { InjectionToken, OnInit, ElementRef, EventEmitter, TemplateRef, OnDestroy, AfterViewInit, Injector, ChangeDetectorRef, OnChanges, SimpleChanges, ViewContainerRef, ComponentFactoryResolver, Renderer2, ModuleWithProviders, PipeTransform, NgZone } from '@angular/core';
3
3
  import * as _angular_forms from '@angular/forms';
4
4
  import { FormGroup, FormBuilder, AbstractControl, FormControl, FormArray, UntypedFormGroup, UntypedFormBuilder, ControlValueAccessor, NgForm } from '@angular/forms';
5
5
  import * as i18 from '@angular/router';
@@ -1239,6 +1239,14 @@ declare class ClaimProcessComponent implements OnInit {
1239
1239
  showPassword: boolean;
1240
1240
  showConfirmPassword: boolean;
1241
1241
  validatePage: number;
1242
+ userHasExistingDetails: boolean;
1243
+ resetPasswordEnabled: boolean;
1244
+ private pendingUserRole;
1245
+ private rolesLoaded;
1246
+ profileFileName: string;
1247
+ profileFile: File | null;
1248
+ businessLogoName: string;
1249
+ businessLogoFile: File | null;
1242
1250
  model: {
1243
1251
  acceptTerms: boolean;
1244
1252
  privacy: boolean;
@@ -1256,7 +1264,12 @@ declare class ClaimProcessComponent implements OnInit {
1256
1264
  country: string[];
1257
1265
  };
1258
1266
  };
1267
+ /** True when the selected role requires business information. */
1268
+ get isBusinessRole(): boolean;
1269
+ /** Password fields are shown when there are no existing details OR when the reset toggle is on. */
1270
+ get showPasswordFields(): boolean;
1259
1271
  constructor(fb: FormBuilder, route: ActivatedRoute, router: Router, userDetailService: UserDetailService, roleService: RolesService, modalService: BsModalService, libConfig: LibraryConfig);
1272
+ private static readonly SESSION_KEY;
1260
1273
  ngOnInit(): void;
1261
1274
  get f(): {
1262
1275
  [key: string]: AbstractControl<any, any, any>;
@@ -1264,9 +1277,23 @@ declare class ClaimProcessComponent implements OnInit {
1264
1277
  setPrivacyAndTerms(appType: string): void;
1265
1278
  openModal(template: TemplateRef<any>, title: string, event: Event): void;
1266
1279
  closeModal(): void;
1280
+ /** Called when the "I accept" checkbox is toggled directly. */
1281
+ onTermsCheckboxChange(event: Event): void;
1267
1282
  lookupUser(email: string): void;
1268
1283
  getRoles(): void;
1284
+ /**
1285
+ * Matches the user's existing role against the loaded roles list.
1286
+ * If the role is missing from the API result it is injected so the
1287
+ * dropdown still shows the correct value.
1288
+ */
1289
+ private applyUserRole;
1290
+ private updatePasswordValidators;
1291
+ private updateBusinessRoleValidators;
1292
+ toggleResetPassword(): void;
1269
1293
  onAddressChange(address: any): void;
1294
+ onBusinessAddressChange(address: any): void;
1295
+ onProfileFileChange(event: Event): void;
1296
+ onBusinessLogoChange(event: Event): void;
1270
1297
  formatPhone(event: Event): void;
1271
1298
  onSubmit(): void;
1272
1299
  static ɵfac: i0.ɵɵFactoryDeclaration<ClaimProcessComponent, never>;
@@ -2310,6 +2337,7 @@ declare class RoleSelectComponent implements OnInit {
2310
2337
  private roleContextService;
2311
2338
  private providerdetail;
2312
2339
  private fb;
2340
+ private cdr;
2313
2341
  isLoaded: boolean;
2314
2342
  previewUrl: string | null;
2315
2343
  isImageLoading: boolean;
@@ -2386,7 +2414,7 @@ declare class RoleSelectComponent implements OnInit {
2386
2414
  roleId: string;
2387
2415
  })[];
2388
2416
  provider: any;
2389
- constructor(store: CredentialingStore, providerService: ProvidersService, userService: UserService, userDocumentService: UserDocumentService, router: Router, industrydata: IndustryService, userDetailService: UserDetailService, fileService: FileService, tokenService: TokenService, roleContextService: RoleContextService, providerdetail: FrontEndProvidersService, fb: FormBuilder);
2417
+ constructor(store: CredentialingStore, providerService: ProvidersService, userService: UserService, userDocumentService: UserDocumentService, router: Router, industrydata: IndustryService, userDetailService: UserDetailService, fileService: FileService, tokenService: TokenService, roleContextService: RoleContextService, providerdetail: FrontEndProvidersService, fb: FormBuilder, cdr: ChangeDetectorRef);
2390
2418
  cloudfrontUrl: string;
2391
2419
  providerId: any;
2392
2420
  providerName: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@idsoftsource/initial-process",
3
- "version": "2.4.9",
3
+ "version": "2.5.1",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^20.0.0",
6
6
  "@angular/core": "^20.0.0",