@idsoftsource/initial-process 3.3.7 → 3.3.9

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
@@ -2,7 +2,7 @@ import * as i0 from '@angular/core';
2
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
- import * as i18 from '@angular/router';
5
+ import * as i19 from '@angular/router';
6
6
  import { Router, ActivatedRoute, RouterOutlet } from '@angular/router';
7
7
  import { Observable, Subscription } from 'rxjs';
8
8
  import * as i5 from 'ngx-bootstrap/modal';
@@ -13,11 +13,11 @@ import { HttpClient } from '@angular/common/http';
13
13
  import { SafeHtml, DomSanitizer } from '@angular/platform-browser';
14
14
  import * as i2 from '@angular/common';
15
15
  import { ViewportScroller } from '@angular/common';
16
- import * as i20 from '@ng-select/ng-select';
17
- import * as i21 from 'ngx-bootstrap/datepicker';
16
+ import * as i21 from '@ng-select/ng-select';
17
+ import * as i22 from 'ngx-bootstrap/datepicker';
18
18
  import * as i6 from 'ngx-bootstrap/tooltip';
19
- import * as i27 from 'ngx-bootstrap/tabs';
20
- import * as i28 from 'ngx-bootstrap/accordion';
19
+ import * as i28 from 'ngx-bootstrap/tabs';
20
+ import * as i29 from 'ngx-bootstrap/accordion';
21
21
  import * as i7 from '@angular/google-maps';
22
22
 
23
23
  interface MasterModel {
@@ -2065,10 +2065,29 @@ declare class CertificationComponent {
2065
2065
  professions: any[];
2066
2066
  selectedProfessionId: string | null;
2067
2067
  selectedProfessionValue: string;
2068
+ userProfessionOptions: any[];
2069
+ professionGroupOptions: string[];
2070
+ professionTypeOptions: string[];
2071
+ showCustomProfessionForm: boolean;
2072
+ customProfessionName: string;
2073
+ customProfessionGroup: string | null;
2074
+ customProfessionType: string | null;
2075
+ customProfessionStars: number;
2076
+ customProfessionYear: number | null;
2077
+ isSavingCustomProfession: boolean;
2068
2078
  private professionService;
2079
+ private userProfessionService;
2069
2080
  constructor(roleContextService: RoleContextService, userDocumentService: UserDocumentService, userService: UserService, store: CredentialingStore, workStore: CertificationStore, tokenService: TokenService, postalCodeService: PostalCodeServices, fb: FormBuilder, fileService: FileService, http: HttpClient);
2070
2081
  ngOnInit(): Promise<void>;
2071
2082
  loadProfessions(): void;
2083
+ private recomputeProfessionGroupAndTypeOptions;
2084
+ openCustomProfessionForm(): void;
2085
+ setCustomProfessionStars(stars: number): void;
2086
+ cancelCustomProfessionForm(): void;
2087
+ get canSaveCustomProfession(): boolean;
2088
+ saveCustomProfession(): Promise<void>;
2089
+ loadUserProfessionOptions(): void;
2090
+ onCertificationProfessionChange(item: any): void;
2072
2091
  onProfessionChange(profession: any): void;
2073
2092
  loadDocumentTypes(searchText?: string): void;
2074
2093
  loadDocumentTypesDefault(searchText?: string): void;
@@ -2191,9 +2210,51 @@ declare class UtilsService {
2191
2210
  static ɵprov: i0.ɵɵInjectableDeclaration<UtilsService>;
2192
2211
  }
2193
2212
 
2213
+ interface UserProfessionModel extends MasterModel {
2214
+ id?: any;
2215
+ forUser: ForUser;
2216
+ providerId?: string | null;
2217
+ providerName?: string;
2218
+ targetProviderId?: string;
2219
+ targetUserId?: string;
2220
+ userId?: string | null;
2221
+ userName?: string;
2222
+ emailId?: string;
2223
+ phoneNumber?: string;
2224
+ userHeadShotUrl?: string;
2225
+ professionId?: string | null;
2226
+ professionName?: string;
2227
+ professionGroup?: string;
2228
+ residentialCommercial?: string;
2229
+ notes?: string;
2230
+ starRating?: number;
2231
+ year?: number | null;
2232
+ profileVisibility?: boolean | null;
2233
+ status?: RequestedStatus;
2234
+ reviewBy?: string | null;
2235
+ reviewByName?: string;
2236
+ reviewDateTime?: string | null;
2237
+ reviewNotes?: string;
2238
+ isActive?: boolean;
2239
+ isOpen?: boolean;
2240
+ }
2241
+
2242
+ declare class UserProfessionService {
2243
+ private httpClient;
2244
+ constructor(httpClient: HttpClient);
2245
+ createUserProfession(models: UserProfessionModel[]): Observable<any>;
2246
+ updateUserProfession(model: UserProfessionModel): Observable<any>;
2247
+ bulkDelete(ids: string[]): Observable<Result>;
2248
+ getUserProfession(query: GridifyQuery): Observable<any>;
2249
+ private buildParams;
2250
+ static ɵfac: i0.ɵɵFactoryDeclaration<UserProfessionService, never>;
2251
+ static ɵprov: i0.ɵɵInjectableDeclaration<UserProfessionService>;
2252
+ }
2253
+
2194
2254
  declare class SkillsComponent {
2195
2255
  private skillSetService;
2196
2256
  private userSkillSetService;
2257
+ private userProfessionService;
2197
2258
  private userService;
2198
2259
  private formBuilder;
2199
2260
  private utils;
@@ -2248,9 +2309,20 @@ declare class SkillsComponent {
2248
2309
  professions: any[];
2249
2310
  selectedProfessionId: string | null;
2250
2311
  selectedProfessionValue: string;
2312
+ userProfessionOptions: any[];
2313
+ professionGroupOptions: string[];
2314
+ professionTypeOptions: string[];
2315
+ showCustomProfessionForm: boolean;
2316
+ customProfessionName: string;
2317
+ customProfessionGroup: string | null;
2318
+ customProfessionType: string | null;
2319
+ customProfessionStars: number;
2320
+ customProfessionYear: number | null;
2321
+ isSavingCustomProfession: boolean;
2322
+ private customProfessionTargetGroup;
2251
2323
  skillDetailList?: ElementRef;
2252
2324
  private professionService;
2253
- constructor(skillSetService: SkillSetService, userSkillSetService: UserSkillSetService, userService: UserService, formBuilder: UntypedFormBuilder, utils: UtilsService, roleContextService: RoleContextService, store: CredentialingStore, tokenService: TokenService);
2325
+ constructor(skillSetService: SkillSetService, userSkillSetService: UserSkillSetService, userProfessionService: UserProfessionService, userService: UserService, formBuilder: UntypedFormBuilder, utils: UtilsService, roleContextService: RoleContextService, store: CredentialingStore, tokenService: TokenService);
2254
2326
  private markTabPristine;
2255
2327
  goToAddSkillsMode(): void;
2256
2328
  createGroup(skillSetId?: any, skillName?: any): UntypedFormGroup;
@@ -2258,6 +2330,15 @@ declare class SkillsComponent {
2258
2330
  initialData(): void;
2259
2331
  getYears(): void;
2260
2332
  ngOnInit(): Promise<void>;
2333
+ loadUserProfessionOptions(): void;
2334
+ onSkillProfessionChange(item: any, group: UntypedFormGroup): void;
2335
+ private isBlank;
2336
+ private recomputeProfessionGroupAndTypeOptions;
2337
+ openCustomProfessionForm(group: UntypedFormGroup): void;
2338
+ setCustomProfessionStars(stars: number): void;
2339
+ cancelCustomProfessionForm(): void;
2340
+ get canSaveCustomProfession(): boolean;
2341
+ saveCustomProfession(): Promise<void>;
2261
2342
  getuserSkillsData(): void;
2262
2343
  cancel(): void;
2263
2344
  backToSkill(accGroup: any): void;
@@ -2433,6 +2514,7 @@ declare class ProfessionService {
2433
2514
  declare class ToolsComponent {
2434
2515
  private toolService;
2435
2516
  private userToolService;
2517
+ private userProfessionService;
2436
2518
  private formBuilder;
2437
2519
  private userService;
2438
2520
  private utils;
@@ -2485,6 +2567,17 @@ declare class ToolsComponent {
2485
2567
  professions: any[];
2486
2568
  selectedProfessionId: string | null;
2487
2569
  selectedProfessionValue: string;
2570
+ userProfessionOptions: any[];
2571
+ professionGroupOptions: string[];
2572
+ professionTypeOptions: string[];
2573
+ showCustomProfessionForm: boolean;
2574
+ customProfessionName: string;
2575
+ customProfessionGroup: string | null;
2576
+ customProfessionType: string | null;
2577
+ customProfessionStars: number;
2578
+ customProfessionYear: number | null;
2579
+ isSavingCustomProfession: boolean;
2580
+ private customProfessionTargetGroup;
2488
2581
  toolDetailList?: ElementRef;
2489
2582
  toolChipsWrapperRef?: ElementRef<HTMLElement>;
2490
2583
  /** id of the tool chip whose popover doesn't have room to open upward within the scroll container, so it opens downward instead. */
@@ -2493,8 +2586,10 @@ declare class ToolsComponent {
2493
2586
  userdata: any;
2494
2587
  signatureUrl: any;
2495
2588
  signatureFileId: any;
2496
- constructor(toolService: ToolService, userToolService: UserToolService, formBuilder: UntypedFormBuilder, userService: UserService, utils: UtilsService, store: CredentialingStore, tokenService: TokenService, roleContextService: RoleContextService, userDetailService: UserDetailService, professionService: ProfessionService, libConfig: LibraryConfig);
2589
+ constructor(toolService: ToolService, userToolService: UserToolService, userProfessionService: UserProfessionService, formBuilder: UntypedFormBuilder, userService: UserService, utils: UtilsService, store: CredentialingStore, tokenService: TokenService, roleContextService: RoleContextService, userDetailService: UserDetailService, professionService: ProfessionService, libConfig: LibraryConfig);
2497
2590
  ngOnInit(): Promise<void>;
2591
+ loadUserProfessionOptions(): void;
2592
+ onToolProfessionChange(item: any, group: UntypedFormGroup): void;
2498
2593
  createGroup(toolId: string | null | undefined, toolName: string): UntypedFormGroup;
2499
2594
  AddGroup(toolId: null, toolName: string): UntypedFormGroup;
2500
2595
  setDefault(): void;
@@ -2537,6 +2632,12 @@ declare class ToolsComponent {
2537
2632
  cancel(): void;
2538
2633
  goToAddSkillsMode(): void;
2539
2634
  loadProfessions(): void;
2635
+ private recomputeProfessionGroupAndTypeOptions;
2636
+ openCustomProfessionForm(group: UntypedFormGroup): void;
2637
+ setCustomProfessionStars(stars: number): void;
2638
+ cancelCustomProfessionForm(): void;
2639
+ get canSaveCustomProfession(): boolean;
2640
+ saveCustomProfession(): Promise<void>;
2540
2641
  onProfessionChange(profession: any): void;
2541
2642
  getTools(): void;
2542
2643
  onToolContinue(): void;
@@ -2984,6 +3085,86 @@ declare class FirstComponent implements OnInit {
2984
3085
  static ɵcmp: i0.ɵɵComponentDeclaration<FirstComponent, "app-first", never, {}, { "backToParent": "backToParent"; "nextStep": "nextStep"; }, never, never, false, never>;
2985
3086
  }
2986
3087
 
3088
+ declare class ProfessionComponent implements OnInit {
3089
+ store: CredentialingStore;
3090
+ providerId: string;
3091
+ providerName: string;
3092
+ user: any;
3093
+ userId: any;
3094
+ payloadUserName: any;
3095
+ professionTypes: any[];
3096
+ userProfessionOptions: any[];
3097
+ professionSearchQry: string | null;
3098
+ isSavingProfessionsTable: boolean;
3099
+ savedProfessionTypeIds: Set<string>;
3100
+ professionTypeServerIds: Record<string, string>;
3101
+ professionSavedSnapshots: Record<string, {
3102
+ starRating: number;
3103
+ year: number | null;
3104
+ profileVisibility: boolean;
3105
+ notes: string;
3106
+ }>;
3107
+ professionSelections: Record<string, {
3108
+ selected: boolean;
3109
+ starRating: number;
3110
+ year: number | null;
3111
+ profileVisibility: boolean;
3112
+ notes: string;
3113
+ }>;
3114
+ professionGroupOptions: string[];
3115
+ professionTypeOptions: string[];
3116
+ private professionService;
3117
+ private userProfessionService;
3118
+ private userService;
3119
+ private roleContextService;
3120
+ private tokenService;
3121
+ constructor(store: CredentialingStore);
3122
+ ngOnInit(): Promise<void>;
3123
+ private isBlank;
3124
+ loadProfessionTypes(): void;
3125
+ private buildProfessionQuery;
3126
+ refreshUserProfessionOptions(): Promise<void>;
3127
+ private recomputeProfessionGroupAndTypeOptions;
3128
+ private normalizeProfessionTypeId;
3129
+ private resolveProfessionTypeIdFromSavedItem;
3130
+ private getEntityId;
3131
+ private applySavedProfessionsToTable;
3132
+ private isProfessionTypeSaved;
3133
+ isProfessionSaved(id: string): boolean;
3134
+ private hasProfessionRowChanged;
3135
+ get filteredProfessionTypes(): any[];
3136
+ get hasNoProfessionMatches(): boolean;
3137
+ trackByProfessionId(_index: number, p: any): string;
3138
+ isManualProfessionType(id: string): boolean;
3139
+ isManualRowReady(id: string): boolean;
3140
+ setManualProfessionGroup(profession: any, group: string): void;
3141
+ setManualProfessionType(profession: any, type: string): void;
3142
+ get professionSubmitLabel(): string;
3143
+ get selectedProfessionCount(): number;
3144
+ getProfessionSelection(id: string): {
3145
+ selected: boolean;
3146
+ starRating: number;
3147
+ year: number | null;
3148
+ profileVisibility: boolean;
3149
+ notes: string;
3150
+ };
3151
+ onProfessionRowCheck(profession: any, event: Event): void;
3152
+ toggleProfessionRow(profession: any, event?: Event): void;
3153
+ setProfessionRowStars(profession: any, stars: number): void;
3154
+ createManualProfessionRow(): void;
3155
+ private buildProfessionPayload;
3156
+ private buildNewProfessionCreatePayload;
3157
+ private markProfessionSelectionSaved;
3158
+ private getCreatedId;
3159
+ private markProfessionsCreated;
3160
+ submitProfessions(): Promise<void>;
3161
+ back(): void;
3162
+ skip(): void;
3163
+ continue(): void;
3164
+ static ɵfac: i0.ɵɵFactoryDeclaration<ProfessionComponent, never>;
3165
+ static ɵcmp: i0.ɵɵComponentDeclaration<ProfessionComponent, "app-profession", never, { "providerId": { "alias": "providerId"; "required": false; }; "providerName": { "alias": "providerName"; "required": false; }; }, {}, never, never, false, never>;
3166
+ }
3167
+
2987
3168
  declare class UsMapComponent implements OnChanges, OnInit, AfterViewInit {
2988
3169
  private cdr;
2989
3170
  private usMapService;
@@ -3497,47 +3678,6 @@ interface ProfessionEditorData {
3497
3678
  notes: string;
3498
3679
  }
3499
3680
 
3500
- interface UserProfessionModel extends MasterModel {
3501
- id?: any;
3502
- forUser: ForUser;
3503
- providerId?: string | null;
3504
- providerName?: string;
3505
- targetProviderId?: string;
3506
- targetUserId?: string;
3507
- userId?: string | null;
3508
- userName?: string;
3509
- emailId?: string;
3510
- phoneNumber?: string;
3511
- userHeadShotUrl?: string;
3512
- professionId?: string | null;
3513
- professionName?: string;
3514
- professionGroup?: string;
3515
- residentialCommercial?: string;
3516
- notes?: string;
3517
- starRating?: number;
3518
- year?: number | null;
3519
- profileVisibility?: boolean | null;
3520
- status?: RequestedStatus;
3521
- reviewBy?: string | null;
3522
- reviewByName?: string;
3523
- reviewDateTime?: string | null;
3524
- reviewNotes?: string;
3525
- isActive?: boolean;
3526
- isOpen?: boolean;
3527
- }
3528
-
3529
- declare class UserProfessionService {
3530
- private httpClient;
3531
- constructor(httpClient: HttpClient);
3532
- createUserProfession(models: UserProfessionModel[]): Observable<any>;
3533
- updateUserProfession(model: UserProfessionModel): Observable<any>;
3534
- bulkDelete(ids: string[]): Observable<Result>;
3535
- getUserProfession(query: GridifyQuery): Observable<any>;
3536
- private buildParams;
3537
- static ɵfac: i0.ɵɵFactoryDeclaration<UserProfessionService, never>;
3538
- static ɵprov: i0.ɵɵInjectableDeclaration<UserProfessionService>;
3539
- }
3540
-
3541
3681
  declare class PreviewComponent implements OnDestroy {
3542
3682
  store: CredentialingStore;
3543
3683
  private fileService;
@@ -4363,7 +4503,7 @@ declare class AddressVerifyFieldModule {
4363
4503
 
4364
4504
  declare class InitialProcessModule {
4365
4505
  static ɵfac: i0.ɵɵFactoryDeclaration<InitialProcessModule, never>;
4366
- static ɵmod: i0.ɵɵNgModuleDeclaration<InitialProcessModule, [typeof InitialProcessComponent, typeof ClaimProcessComponent, typeof TermsConditionsComponent, typeof PrivacyPolicyComponent, typeof CredentialingComponent, typeof StepperComponent, typeof EducationComponent, typeof CertificationComponent, typeof SkillsComponent, typeof LicensesComponent, typeof ToolsComponent, typeof RoleSelectComponent, typeof Step2CoverageComponent, typeof WorkexperienceComponent, typeof FirstComponent], [typeof i2.CommonModule, typeof _angular_forms.FormsModule, typeof _angular_forms.ReactiveFormsModule, typeof i18.RouterModule, typeof UsMapModule, typeof i20.NgSelectModule, typeof i21.BsDatepickerModule, typeof Ng2LoadingSpinnerModule, typeof LoaderModule, typeof CustomPipesModule, typeof NgxStarsModule, typeof i6.TooltipModule, typeof i27.TabsModule, typeof i28.AccordionModule, typeof GooglePlaceModule, typeof i7.GoogleMapsModule, typeof i5.ModalModule, typeof TextMaskModule, typeof SignaturePadModule, typeof PreviewComponent, typeof CommonPipesModule, typeof AddressVerifyFieldModule], [typeof InitialProcessComponent, typeof TermsConditionsComponent, typeof PrivacyPolicyComponent, typeof ClaimProcessComponent, typeof AddressVerifyFieldModule]>;
4506
+ static ɵmod: i0.ɵɵNgModuleDeclaration<InitialProcessModule, [typeof InitialProcessComponent, typeof ClaimProcessComponent, typeof TermsConditionsComponent, typeof PrivacyPolicyComponent, typeof CredentialingComponent, typeof StepperComponent, typeof EducationComponent, typeof CertificationComponent, typeof SkillsComponent, typeof LicensesComponent, typeof ToolsComponent, typeof RoleSelectComponent, typeof Step2CoverageComponent, typeof WorkexperienceComponent, typeof FirstComponent, typeof ProfessionComponent], [typeof i2.CommonModule, typeof _angular_forms.FormsModule, typeof _angular_forms.ReactiveFormsModule, typeof i19.RouterModule, typeof UsMapModule, typeof i21.NgSelectModule, typeof i22.BsDatepickerModule, typeof Ng2LoadingSpinnerModule, typeof LoaderModule, typeof CustomPipesModule, typeof NgxStarsModule, typeof i6.TooltipModule, typeof i28.TabsModule, typeof i29.AccordionModule, typeof GooglePlaceModule, typeof i7.GoogleMapsModule, typeof i5.ModalModule, typeof TextMaskModule, typeof SignaturePadModule, typeof PreviewComponent, typeof CommonPipesModule, typeof AddressVerifyFieldModule], [typeof InitialProcessComponent, typeof TermsConditionsComponent, typeof PrivacyPolicyComponent, typeof ClaimProcessComponent, typeof AddressVerifyFieldModule]>;
4367
4507
  static ɵinj: i0.ɵɵInjectorDeclaration<InitialProcessModule>;
4368
4508
  }
4369
4509
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@idsoftsource/initial-process",
3
- "version": "3.3.7",
3
+ "version": "3.3.9",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^20.0.0",
6
6
  "@angular/core": "^20.0.0",