@idsoftsource/initial-process 2.4.9 → 2.5.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/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';
@@ -169,6 +169,7 @@ interface PrivacyAndTerms {
169
169
  email?: string | null;
170
170
  websiteurl?: string | null;
171
171
  currentYear?: any | null;
172
+ logoUrl?: any | null;
172
173
  }
173
174
 
174
175
  interface GridResult<TReadModel> {
@@ -1239,6 +1240,16 @@ declare class ClaimProcessComponent implements OnInit {
1239
1240
  showPassword: boolean;
1240
1241
  showConfirmPassword: boolean;
1241
1242
  validatePage: number;
1243
+ userHasExistingDetails: boolean;
1244
+ resetPasswordEnabled: boolean;
1245
+ isAuthenticated: boolean;
1246
+ existingUserData: any;
1247
+ private pendingUserRole;
1248
+ private rolesLoaded;
1249
+ profileFileName: string;
1250
+ profileFile: File | null;
1251
+ businessLogoName: string;
1252
+ businessLogoFile: File | null;
1242
1253
  model: {
1243
1254
  acceptTerms: boolean;
1244
1255
  privacy: boolean;
@@ -1256,7 +1267,12 @@ declare class ClaimProcessComponent implements OnInit {
1256
1267
  country: string[];
1257
1268
  };
1258
1269
  };
1270
+ /** True when the selected role requires business information. */
1271
+ get isBusinessRole(): boolean;
1272
+ /** Password fields are shown when there are no existing details OR when the reset toggle is on. */
1273
+ get showPasswordFields(): boolean;
1259
1274
  constructor(fb: FormBuilder, route: ActivatedRoute, router: Router, userDetailService: UserDetailService, roleService: RolesService, modalService: BsModalService, libConfig: LibraryConfig);
1275
+ private static readonly SESSION_KEY;
1260
1276
  ngOnInit(): void;
1261
1277
  get f(): {
1262
1278
  [key: string]: AbstractControl<any, any, any>;
@@ -1264,9 +1280,24 @@ declare class ClaimProcessComponent implements OnInit {
1264
1280
  setPrivacyAndTerms(appType: string): void;
1265
1281
  openModal(template: TemplateRef<any>, title: string, event: Event): void;
1266
1282
  closeModal(): void;
1283
+ /** Called when the "I accept" checkbox is toggled directly. */
1284
+ onTermsCheckboxChange(event: Event): void;
1267
1285
  lookupUser(email: string): void;
1286
+ getInitials(): string;
1268
1287
  getRoles(): void;
1288
+ /**
1289
+ * Matches the user's existing role against the loaded roles list.
1290
+ * If the role is missing from the API result it is injected so the
1291
+ * dropdown still shows the correct value.
1292
+ */
1293
+ private applyUserRole;
1294
+ private updatePasswordValidators;
1295
+ private updateBusinessRoleValidators;
1296
+ toggleResetPassword(): void;
1269
1297
  onAddressChange(address: any): void;
1298
+ onBusinessAddressChange(address: any): void;
1299
+ onProfileFileChange(event: Event): void;
1300
+ onBusinessLogoChange(event: Event): void;
1270
1301
  formatPhone(event: Event): void;
1271
1302
  onSubmit(): void;
1272
1303
  static ɵfac: i0.ɵɵFactoryDeclaration<ClaimProcessComponent, never>;
@@ -2310,6 +2341,7 @@ declare class RoleSelectComponent implements OnInit {
2310
2341
  private roleContextService;
2311
2342
  private providerdetail;
2312
2343
  private fb;
2344
+ private cdr;
2313
2345
  isLoaded: boolean;
2314
2346
  previewUrl: string | null;
2315
2347
  isImageLoading: boolean;
@@ -2386,7 +2418,7 @@ declare class RoleSelectComponent implements OnInit {
2386
2418
  roleId: string;
2387
2419
  })[];
2388
2420
  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);
2421
+ 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
2422
  cloudfrontUrl: string;
2391
2423
  providerId: any;
2392
2424
  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.2",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^20.0.0",
6
6
  "@angular/core": "^20.0.0",