@idsoftsource/initial-process 3.3.8 → 3.4.0

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;
@@ -2245,12 +2306,23 @@ declare class SkillsComponent {
2245
2306
  emailId: any;
2246
2307
  userId: any;
2247
2308
  showAllSkills: boolean;
2248
- professions: any[];
2249
2309
  selectedProfessionId: string | null;
2250
2310
  selectedProfessionValue: string;
2251
- skillDetailList?: ElementRef;
2311
+ selectedUserProfessionId: string | null;
2312
+ selectedUserProfessionName: string;
2313
+ userProfessionOptions: any[];
2314
+ professionGroupOptions: any[];
2315
+ professionTypeOptions: any[];
2316
+ showCustomProfessionForm: boolean;
2317
+ customProfessionName: string;
2318
+ customProfessionGroup: string | null;
2319
+ customProfessionType: string | null;
2320
+ customProfessionStars: number;
2321
+ customProfessionYear: number | null;
2322
+ isSavingCustomProfession: boolean;
2252
2323
  private professionService;
2253
- constructor(skillSetService: SkillSetService, userSkillSetService: UserSkillSetService, userService: UserService, formBuilder: UntypedFormBuilder, utils: UtilsService, roleContextService: RoleContextService, store: CredentialingStore, tokenService: TokenService);
2324
+ skillDetailList?: ElementRef;
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,13 @@ declare class SkillsComponent {
2258
2330
  initialData(): void;
2259
2331
  getYears(): void;
2260
2332
  ngOnInit(): Promise<void>;
2333
+ loadUserProfessionOptions(): void;
2334
+ private loadProfessionTaxonomy;
2335
+ openCustomProfessionForm(): void;
2336
+ setCustomProfessionStars(stars: number): void;
2337
+ cancelCustomProfessionForm(): void;
2338
+ get canSaveCustomProfession(): boolean;
2339
+ saveCustomProfession(): Promise<void>;
2261
2340
  getuserSkillsData(): void;
2262
2341
  cancel(): void;
2263
2342
  backToSkill(accGroup: any): void;
@@ -2275,7 +2354,6 @@ declare class SkillsComponent {
2275
2354
  private scrollToDetailList;
2276
2355
  onSelectedSkillsets(event: Event, skill: SkillSetModel): void;
2277
2356
  createNewSkills(): void;
2278
- loadProfessions(): void;
2279
2357
  onProfessionChange(profession: any): void;
2280
2358
  getSkillSets(): void;
2281
2359
  setDefault(): void;
@@ -2433,6 +2511,7 @@ declare class ProfessionService {
2433
2511
  declare class ToolsComponent {
2434
2512
  private toolService;
2435
2513
  private userToolService;
2514
+ private userProfessionService;
2436
2515
  private formBuilder;
2437
2516
  private userService;
2438
2517
  private utils;
@@ -2485,6 +2564,17 @@ declare class ToolsComponent {
2485
2564
  professions: any[];
2486
2565
  selectedProfessionId: string | null;
2487
2566
  selectedProfessionValue: string;
2567
+ userProfessionOptions: any[];
2568
+ professionGroupOptions: string[];
2569
+ professionTypeOptions: string[];
2570
+ showCustomProfessionForm: boolean;
2571
+ customProfessionName: string;
2572
+ customProfessionGroup: string | null;
2573
+ customProfessionType: string | null;
2574
+ customProfessionStars: number;
2575
+ customProfessionYear: number | null;
2576
+ isSavingCustomProfession: boolean;
2577
+ private customProfessionTargetGroup;
2488
2578
  toolDetailList?: ElementRef;
2489
2579
  toolChipsWrapperRef?: ElementRef<HTMLElement>;
2490
2580
  /** 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 +2583,10 @@ declare class ToolsComponent {
2493
2583
  userdata: any;
2494
2584
  signatureUrl: any;
2495
2585
  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);
2586
+ 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
2587
  ngOnInit(): Promise<void>;
2588
+ loadUserProfessionOptions(): void;
2589
+ onToolProfessionChange(item: any, group: UntypedFormGroup): void;
2498
2590
  createGroup(toolId: string | null | undefined, toolName: string): UntypedFormGroup;
2499
2591
  AddGroup(toolId: null, toolName: string): UntypedFormGroup;
2500
2592
  setDefault(): void;
@@ -2537,6 +2629,12 @@ declare class ToolsComponent {
2537
2629
  cancel(): void;
2538
2630
  goToAddSkillsMode(): void;
2539
2631
  loadProfessions(): void;
2632
+ private recomputeProfessionGroupAndTypeOptions;
2633
+ openCustomProfessionForm(group: UntypedFormGroup): void;
2634
+ setCustomProfessionStars(stars: number): void;
2635
+ cancelCustomProfessionForm(): void;
2636
+ get canSaveCustomProfession(): boolean;
2637
+ saveCustomProfession(): Promise<void>;
2540
2638
  onProfessionChange(profession: any): void;
2541
2639
  getTools(): void;
2542
2640
  onToolContinue(): void;
@@ -2984,6 +3082,86 @@ declare class FirstComponent implements OnInit {
2984
3082
  static ɵcmp: i0.ɵɵComponentDeclaration<FirstComponent, "app-first", never, {}, { "backToParent": "backToParent"; "nextStep": "nextStep"; }, never, never, false, never>;
2985
3083
  }
2986
3084
 
3085
+ declare class ProfessionComponent implements OnInit {
3086
+ store: CredentialingStore;
3087
+ providerId: string;
3088
+ providerName: string;
3089
+ user: any;
3090
+ userId: any;
3091
+ payloadUserName: any;
3092
+ professionTypes: any[];
3093
+ userProfessionOptions: any[];
3094
+ professionSearchQry: string | null;
3095
+ isSavingProfessionsTable: boolean;
3096
+ savedProfessionTypeIds: Set<string>;
3097
+ professionTypeServerIds: Record<string, string>;
3098
+ professionSavedSnapshots: Record<string, {
3099
+ starRating: number;
3100
+ year: number | null;
3101
+ profileVisibility: boolean;
3102
+ notes: string;
3103
+ }>;
3104
+ professionSelections: Record<string, {
3105
+ selected: boolean;
3106
+ starRating: number;
3107
+ year: number | null;
3108
+ profileVisibility: boolean;
3109
+ notes: string;
3110
+ }>;
3111
+ professionGroupOptions: string[];
3112
+ professionTypeOptions: string[];
3113
+ private professionService;
3114
+ private userProfessionService;
3115
+ private userService;
3116
+ private roleContextService;
3117
+ private tokenService;
3118
+ constructor(store: CredentialingStore);
3119
+ ngOnInit(): Promise<void>;
3120
+ private isBlank;
3121
+ loadProfessionTypes(): void;
3122
+ private buildProfessionQuery;
3123
+ refreshUserProfessionOptions(): Promise<void>;
3124
+ private recomputeProfessionGroupAndTypeOptions;
3125
+ private normalizeProfessionTypeId;
3126
+ private resolveProfessionTypeIdFromSavedItem;
3127
+ private getEntityId;
3128
+ private applySavedProfessionsToTable;
3129
+ private isProfessionTypeSaved;
3130
+ isProfessionSaved(id: string): boolean;
3131
+ private hasProfessionRowChanged;
3132
+ get filteredProfessionTypes(): any[];
3133
+ get hasNoProfessionMatches(): boolean;
3134
+ trackByProfessionId(_index: number, p: any): string;
3135
+ isManualProfessionType(id: string): boolean;
3136
+ isManualRowReady(id: string): boolean;
3137
+ setManualProfessionGroup(profession: any, group: string): void;
3138
+ setManualProfessionType(profession: any, type: string): void;
3139
+ get professionSubmitLabel(): string;
3140
+ get selectedProfessionCount(): number;
3141
+ getProfessionSelection(id: string): {
3142
+ selected: boolean;
3143
+ starRating: number;
3144
+ year: number | null;
3145
+ profileVisibility: boolean;
3146
+ notes: string;
3147
+ };
3148
+ onProfessionRowCheck(profession: any, event: Event): void;
3149
+ toggleProfessionRow(profession: any, event?: Event): void;
3150
+ setProfessionRowStars(profession: any, stars: number): void;
3151
+ createManualProfessionRow(): void;
3152
+ private buildProfessionPayload;
3153
+ private buildNewProfessionCreatePayload;
3154
+ private markProfessionSelectionSaved;
3155
+ private getCreatedId;
3156
+ private markProfessionsCreated;
3157
+ submitProfessions(): Promise<void>;
3158
+ back(): void;
3159
+ skip(): void;
3160
+ saveAndContinue(): Promise<void>;
3161
+ static ɵfac: i0.ɵɵFactoryDeclaration<ProfessionComponent, never>;
3162
+ static ɵcmp: i0.ɵɵComponentDeclaration<ProfessionComponent, "app-profession", never, { "providerId": { "alias": "providerId"; "required": false; }; "providerName": { "alias": "providerName"; "required": false; }; }, {}, never, never, false, never>;
3163
+ }
3164
+
2987
3165
  declare class UsMapComponent implements OnChanges, OnInit, AfterViewInit {
2988
3166
  private cdr;
2989
3167
  private usMapService;
@@ -3497,47 +3675,6 @@ interface ProfessionEditorData {
3497
3675
  notes: string;
3498
3676
  }
3499
3677
 
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
3678
  declare class PreviewComponent implements OnDestroy {
3542
3679
  store: CredentialingStore;
3543
3680
  private fileService;
@@ -4363,7 +4500,7 @@ declare class AddressVerifyFieldModule {
4363
4500
 
4364
4501
  declare class InitialProcessModule {
4365
4502
  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]>;
4503
+ 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
4504
  static ɵinj: i0.ɵɵInjectorDeclaration<InitialProcessModule>;
4368
4505
  }
4369
4506
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@idsoftsource/initial-process",
3
- "version": "3.3.8",
3
+ "version": "3.4.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^20.0.0",
6
6
  "@angular/core": "^20.0.0",