diff --git a/src/Spd.Presentation.Licensing/ClientApp/src/app/app-routing.module.ts b/src/Spd.Presentation.Licensing/ClientApp/src/app/app-routing.module.ts index 3c6c2eb2d..af43cb87f 100644 --- a/src/Spd.Presentation.Licensing/ClientApp/src/app/app-routing.module.ts +++ b/src/Spd.Presentation.Licensing/ClientApp/src/app/app-routing.module.ts @@ -1,10 +1,10 @@ import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; import { LandingComponent } from './landing.component'; -import { ControllingMemberCrcRoutes } from './modules/controlling-member-crc/controlling-member-crc-routing.module'; -import { PersonalLicenceApplicationRoutes } from './modules/personal-licence-application/personal-licence-application-routing.module'; -import { AccessDeniedComponent } from './shared/components/access-denied.component'; import { BusinessLicenceApplicationRoutes } from './modules/business-licence-application/business-license-application-routes'; +import { ControllingMemberCrcRoutes } from './modules/controlling-member-crc/controlling-member-crc-routes'; +import { PersonalLicenceApplicationRoutes } from './modules/personal-licence-application/personal-licence-application-routes'; +import { AccessDeniedComponent } from './shared/components/access-denied.component'; export class AppRoutes { public static readonly PERSONAL_LICENCE_APPLICATION = PersonalLicenceApplicationRoutes.MODULE_PATH; diff --git a/src/Spd.Presentation.Licensing/ClientApp/src/app/core/services/application.service.ts b/src/Spd.Presentation.Licensing/ClientApp/src/app/core/services/application.service.ts index ba675f4c8..5bc3c9d93 100644 --- a/src/Spd.Presentation.Licensing/ClientApp/src/app/core/services/application.service.ts +++ b/src/Spd.Presentation.Licensing/ClientApp/src/app/core/services/application.service.ts @@ -5,7 +5,6 @@ import { ApplicationInviteStatusCode, ApplicationPortalStatusCode, ApplicationTypeCode, - BizLicAppResponse, BizProfileResponse, BizTypeCode, IdentityProviderTypeCode, @@ -20,9 +19,7 @@ import { PaymentLinkCreateRequest, PaymentLinkResponse, PaymentMethodCode, - PermitLicenceAppResponse, WorkerCategoryTypeCode, - WorkerLicenceAppResponse, WorkerLicenceTypeCode, } from '@app/api/models'; import { BizMembersService, LicenceAppService, LicenceService, PaymentService } from '@app/api/services'; @@ -30,7 +27,7 @@ import { StrictHttpResponse } from '@app/api/strict-http-response'; import { AppRoutes } from '@app/app-routing.module'; import { SPD_CONSTANTS } from '@app/core/constants/constants'; import { BusinessLicenceApplicationRoutes } from '@app/modules/business-licence-application/business-license-application-routes'; -import { PersonalLicenceApplicationRoutes } from '@app/modules/personal-licence-application/personal-licence-application-routing.module'; +import { PersonalLicenceApplicationRoutes } from '@app/modules/personal-licence-application/personal-licence-application-routes'; import { DialogComponent, DialogOptions } from '@app/shared/components/dialog.component'; import { FormatDatePipe } from '@app/shared/pipes/format-date.pipe'; import { OptionsPipe } from '@app/shared/pipes/options.pipe'; @@ -58,16 +55,12 @@ export interface MainApplicationResponse extends LicenceAppListResponse { isControllingMemberWarning?: boolean; } -export interface MainLicenceResponse extends WorkerLicenceAppResponse, PermitLicenceAppResponse, BizLicAppResponse { +export interface MainLicenceResponse extends LicenceResponse { hasLoginNameChanged: boolean; cardHolderName?: null | string; licenceCategoryCodes?: Array | null; - licenceHolderName?: null | string; licenceExpiryDate?: string; licenceExpiryNumberOfDays?: null | number; - licenceStatusCode?: LicenceStatusCode; - licenceId?: null | string; - licenceNumber?: null | string; licenceReprintFee: null | number; isRenewalPeriod: boolean; isUpdatePeriod: boolean; @@ -398,10 +391,10 @@ export class ApplicationService { const response: Array = []; basicLicenceResps.forEach((basicLicence: LicenceBasicResponse) => { - const matchingLicenceResp = licenceResps?.find( + const matchingLicence = licenceResps?.find( (item: LicenceBasicResponse) => item.licenceId === basicLicence.licenceId ); - const licence = this.getLicence(basicLicence, businessProfile.bizTypeCode!, matchingLicenceResp); + const licence = this.getLicence(basicLicence, businessProfile.bizTypeCode!, matchingLicence); response.push(licence); }); @@ -828,7 +821,7 @@ export class ApplicationService { bizTypeCode: BizTypeCode, matchingLicence?: LicenceResponse | undefined ): MainLicenceResponse { - const licence = { ...basicLicence } as MainLicenceResponse; + const licence = { ...basicLicence, ...matchingLicence } as MainLicenceResponse; const licenceReplacementPeriodPreventionDays = SPD_CONSTANTS.periods.licenceReplacementPeriodPreventionDays; const licenceUpdatePeriodPreventionDays = SPD_CONSTANTS.periods.licenceUpdatePeriodPreventionDays; @@ -842,12 +835,8 @@ export class ApplicationService { const today = moment().startOf('day'); licence.cardHolderName = basicLicence.nameOnCard; - // licence.licenceHolderName = basicLicence.licenceHolderName; - // licence.licenceStatusCode = basicLicence.licenceStatusCode; licence.licenceExpiryDate = basicLicence.expiryDate; licence.licenceExpiryNumberOfDays = moment(licence.licenceExpiryDate).startOf('day').diff(today, 'days'); - // licence.licenceId = basicLicence.licenceId; - // licence.licenceNumber = basicLicence.licenceNumber; licence.hasLoginNameChanged = basicLicence.nameOnCard != licence.licenceHolderName; licence.licenceCategoryCodes = basicLicence.categoryCodes ?? []; diff --git a/src/Spd.Presentation.Licensing/ClientApp/src/app/core/services/auth-process.service.ts b/src/Spd.Presentation.Licensing/ClientApp/src/app/core/services/auth-process.service.ts index 6cee0abe3..f0eef8679 100644 --- a/src/Spd.Presentation.Licensing/ClientApp/src/app/core/services/auth-process.service.ts +++ b/src/Spd.Presentation.Licensing/ClientApp/src/app/core/services/auth-process.service.ts @@ -3,7 +3,7 @@ import { Router } from '@angular/router'; import { IdentityProviderTypeCode } from '@app/api/models'; import { AppRoutes } from '@app/app-routing.module'; import { BusinessLicenceApplicationRoutes } from '@app/modules/business-licence-application/business-license-application-routes'; -import { PersonalLicenceApplicationRoutes } from '@app/modules/personal-licence-application/personal-licence-application-routing.module'; +import { PersonalLicenceApplicationRoutes } from '@app/modules/personal-licence-application/personal-licence-application-routes'; import { OAuthService } from 'angular-oauth2-oidc'; import { BehaviorSubject } from 'rxjs'; import { AuthenticationService } from 'src/app/core/services/authentication.service'; diff --git a/src/Spd.Presentation.Licensing/ClientApp/src/app/core/services/business-application.helper.ts b/src/Spd.Presentation.Licensing/ClientApp/src/app/core/services/business-application.helper.ts index 8f28eda34..9fde317e9 100644 --- a/src/Spd.Presentation.Licensing/ClientApp/src/app/core/services/business-application.helper.ts +++ b/src/Spd.Presentation.Licensing/ClientApp/src/app/core/services/business-application.helper.ts @@ -152,19 +152,22 @@ export abstract class BusinessApplicationHelper extends ApplicationHelper { categorySecurityGuardFormGroup: FormGroup = this.formBuilder.group( { isInclude: new FormControl(false), - isRequestDogAuthorization: new FormControl(''), + useDogs: new FormControl(''), + dogsPurposeFormGroup: new FormGroup({ + isDogsPurposeProtection: new FormControl(false), + isDogsPurposeDetectionDrugs: new FormControl(false), + isDogsPurposeDetectionExplosives: new FormControl(false), + }), attachments: new FormControl([]), }, { validators: [ - FormGroupValidators.conditionalDefaultRequiredValidator( - 'isRequestDogAuthorization', - (form) => form.get('isInclude')?.value - ), + FormGroupValidators.conditionalRequiredValidator('useDogs', (form) => form.get('isInclude')?.value ?? false), FormGroupValidators.conditionalDefaultRequiredValidator( 'attachments', - (form) => form.get('isInclude')?.value && form.get('isRequestDogAuthorization')?.value === BooleanTypeCode.Yes + (form) => form.get('useDogs')?.value == this.booleanTypeCodes.Yes ), + FormGroupValidators.atLeastOneCheckboxWhenReqdValidator('dogsPurposeFormGroup', 'useDogs', BooleanTypeCode.Yes), ], } ); @@ -422,7 +425,7 @@ export abstract class BusinessApplicationHelper extends ApplicationHelper { if (categoryData.SecurityGuard) { const useDogs = this.utilService.booleanTypeToBoolean( - businessModelFormValue.categorySecurityGuardFormGroup.isRequestDogAuthorization + businessModelFormValue.categorySecurityGuardFormGroup.useDogs ); if (useDogs) { if (businessModelFormValue.categorySecurityGuardFormGroup.attachments) { @@ -466,7 +469,7 @@ export abstract class BusinessApplicationHelper extends ApplicationHelper { const bizTypeCode = businessModelFormValue.businessInformationData.bizTypeCode; let privateInvestigatorSwlInfo: SwlContactInfo = {}; - let useDogs: boolean | null = null; + let dogsAuthorizationData = {}; const categoryCodes = this.getSaveBodyCategoryCodes(businessModelFormValue.categoryData); const documentInfos = this.getSaveBodyDocumentInfos(businessModelFormValue); @@ -492,9 +495,18 @@ export abstract class BusinessApplicationHelper extends ApplicationHelper { const categoryData = { ...businessModelFormValue.categoryData }; if (categoryData.SecurityGuard) { - useDogs = this.utilService.booleanTypeToBoolean( - businessModelFormValue.categorySecurityGuardFormGroup.isRequestDogAuthorization - ); + const categorySecurityGuardFormGroup = businessModelFormValue.categorySecurityGuardFormGroup.dogsPurposeFormGroup; + const isDetectionDrugs = categorySecurityGuardFormGroup.isDogsPurposeDetectionDrugs ?? false; + const isDetectionExplosives = categorySecurityGuardFormGroup.isDogsPurposeDetectionExplosives ?? false; + const isProtection = categorySecurityGuardFormGroup.isDogsPurposeProtection ?? false; + const useDogs = this.utilService.booleanTypeToBoolean(categorySecurityGuardFormGroup.useDogs); + + dogsAuthorizationData = { + useDogs, + isDogsPurposeDetectionDrugs: useDogs ? isDetectionDrugs : null, + isDogsPurposeDetectionExplosives: useDogs ? isDetectionExplosives : null, + isDogsPurposeProtection: useDogs ? isProtection : null, + }; } if (categoryData.PrivateInvestigator) { @@ -533,10 +545,10 @@ export abstract class BusinessApplicationHelper extends ApplicationHelper { originalApplicationId: originalLicenceData ? originalLicenceData.originalApplicationId : null, originalLicenceId: originalLicenceData ? originalLicenceData.originalLicenceId : null, //----------------------------------- - categoryCodes: [...categoryCodes], - documentInfos: [...documentInfos], + categoryCodes, + documentInfos, privateInvestigatorSwlInfo, - useDogs, + dogsAuthorizationData, }; console.debug('[getSaveBodyBase] body returned', body); @@ -635,7 +647,7 @@ export abstract class BusinessApplicationHelper extends ApplicationHelper { if (categoryData.SecurityGuard) { const useDogs = this.utilService.booleanTypeToBoolean( - businessModelFormValue.categorySecurityGuardFormGroup.isRequestDogAuthorization + businessModelFormValue.categorySecurityGuardFormGroup.useDogs ); if (useDogs) { if (businessModelFormValue.categorySecurityGuardFormGroup.attachments) { @@ -681,7 +693,7 @@ export abstract class BusinessApplicationHelper extends ApplicationHelper { return applicationTypeCode === ApplicationTypeCode.Update; } - clearPrivateInvestigatorModelData(): void { + private clearPrivateInvestigatorModelData(): void { // clear out any old data this.categoryPrivateInvestigatorFormGroup.patchValue( { diff --git a/src/Spd.Presentation.Licensing/ClientApp/src/app/core/services/business-application.service.ts b/src/Spd.Presentation.Licensing/ClientApp/src/app/core/services/business-application.service.ts index 4104ced90..d6daa367e 100644 --- a/src/Spd.Presentation.Licensing/ClientApp/src/app/core/services/business-application.service.ts +++ b/src/Spd.Presentation.Licensing/ClientApp/src/app/core/services/business-application.service.ts @@ -1633,7 +1633,13 @@ export class BusinessApplicationService extends BusinessApplicationHelper { if (categoryData.SecurityGuard) { categorySecurityGuardFormGroup = { isInclude: true, - isRequestDogAuthorization: this.utilService.booleanToBooleanType(businessLicenceAppl.useDogs), + useDogs: this.utilService.booleanToBooleanType(businessLicenceAppl.useDogs), + dogsPurposeFormGroup: { + isDogsPurposeDetectionDrugs: null, //businessLicenceAppl.isDogsPurposeDetectionDrugs, + isDogsPurposeDetectionExplosives: null, //businessLicenceAppl.isDogsPurposeDetectionExplosives, + isDogsPurposeProtection: null, //businessLicenceAppl.isDogsPurposeProtection, + // TODO populate dog info + }, attachments: dogAuthorizationAttachments, }; } @@ -1850,7 +1856,12 @@ export class BusinessApplicationService extends BusinessApplicationHelper { if (categoryData.SecurityGuard) { categorySecurityGuardFormGroup = { isInclude: true, - isRequestDogAuthorization: null, + useDogs: null, + dogsPurposeFormGroup: { + isDogsPurposeDetectionDrugs: null, + isDogsPurposeDetectionExplosives: null, + isDogsPurposeProtection: null, + }, attachments: [], }; } @@ -1904,7 +1915,12 @@ export class BusinessApplicationService extends BusinessApplicationHelper { if (categoryData.SecurityGuard) { categorySecurityGuardFormGroup = { isInclude: true, - isRequestDogAuthorization: null, + useDogs: null, + dogsPurposeFormGroup: { + isDogsPurposeDetectionDrugs: null, + isDogsPurposeDetectionExplosives: null, + isDogsPurposeProtection: null, + }, attachments: [], }; } diff --git a/src/Spd.Presentation.Licensing/ClientApp/src/app/core/services/permit-application.service.ts b/src/Spd.Presentation.Licensing/ClientApp/src/app/core/services/permit-application.service.ts index b4ddc611c..0a8e53ca2 100644 --- a/src/Spd.Presentation.Licensing/ClientApp/src/app/core/services/permit-application.service.ts +++ b/src/Spd.Presentation.Licensing/ClientApp/src/app/core/services/permit-application.service.ts @@ -26,7 +26,7 @@ import { BooleanTypeCode } from '@app/core/code-types/model-desc.models'; import { AuthenticationService } from '@app/core/services/authentication.service'; import { FileUtilService, SpdFile } from '@app/core/services/file-util.service'; import { FormControlValidators } from '@app/core/validators/form-control.validators'; -import { PersonalLicenceApplicationRoutes } from '@app/modules/personal-licence-application/personal-licence-application-routing.module'; +import { PersonalLicenceApplicationRoutes } from '@app/modules/personal-licence-application/personal-licence-application-routes'; import { OptionsPipe } from '@app/shared/pipes/options.pipe'; import { HotToastService } from '@ngxpert/hot-toast'; import moment from 'moment'; diff --git a/src/Spd.Presentation.Licensing/ClientApp/src/app/core/services/worker-application.helper.ts b/src/Spd.Presentation.Licensing/ClientApp/src/app/core/services/worker-application.helper.ts index 223e6f953..bfb1c5cd6 100644 --- a/src/Spd.Presentation.Licensing/ClientApp/src/app/core/services/worker-application.helper.ts +++ b/src/Spd.Presentation.Licensing/ClientApp/src/app/core/services/worker-application.helper.ts @@ -1221,10 +1221,8 @@ export abstract class WorkerApplicationHelper extends ApplicationHelper { } getSummaryshowPhotographOfYourself(workerLicenceModelData: any): boolean { - return ( - this.getSummaryhasGenderChanged(workerLicenceModelData) && - this.getSummaryphotoOfYourselfAttachments(workerLicenceModelData).length > 0 - ); + const att = this.getSummaryphotoOfYourselfAttachments(workerLicenceModelData); + return this.getSummaryhasGenderChanged(workerLicenceModelData) && !!att && att.length > 0; } getSummaryhasBcscNameChanged(workerLicenceModelData: any): boolean { @@ -1489,14 +1487,14 @@ export abstract class WorkerApplicationHelper extends ApplicationHelper { return workerLicenceModelData.characteristicsData.weightUnitCode ?? ''; } - getSummaryphotoOfYourselfAttachments(workerLicenceModelData: any): File[] { + getSummaryphotoOfYourselfAttachments(workerLicenceModelData: any): File[] | null { const applicationTypeCode = this.getSummaryapplicationTypeCode(workerLicenceModelData); if (applicationTypeCode === ApplicationTypeCode.New) { - return workerLicenceModelData.photographOfYourselfData.attachments ?? []; + return workerLicenceModelData.photographOfYourselfData.attachments ?? null; } else { const updatePhoto = workerLicenceModelData.photographOfYourselfData.updatePhoto === BooleanTypeCode.Yes; - const updateAttachments = workerLicenceModelData.photographOfYourselfData.updateAttachments ?? []; - return updatePhoto ? updateAttachments : []; + const updateAttachments = workerLicenceModelData.photographOfYourselfData.updateAttachments ?? null; + return updatePhoto ? updateAttachments : null; } } diff --git a/src/Spd.Presentation.Licensing/ClientApp/src/app/core/services/worker-application.service.ts b/src/Spd.Presentation.Licensing/ClientApp/src/app/core/services/worker-application.service.ts index f47c23b23..ee63587ae 100644 --- a/src/Spd.Presentation.Licensing/ClientApp/src/app/core/services/worker-application.service.ts +++ b/src/Spd.Presentation.Licensing/ClientApp/src/app/core/services/worker-application.service.ts @@ -26,7 +26,7 @@ import { StrictHttpResponse } from '@app/api/strict-http-response'; import { BooleanTypeCode } from '@app/core/code-types/model-desc.models'; import { SPD_CONSTANTS } from '@app/core/constants/constants'; import { FormControlValidators } from '@app/core/validators/form-control.validators'; -import { PersonalLicenceApplicationRoutes } from '@app/modules/personal-licence-application/personal-licence-application-routing.module'; +import { PersonalLicenceApplicationRoutes } from '@app/modules/personal-licence-application/personal-licence-application-routes'; import { FileUploadComponent } from '@app/shared/components/file-upload.component'; import { FormatDatePipe } from '@app/shared/pipes/format-date.pipe'; import { HotToastService } from '@ngxpert/hot-toast'; diff --git a/src/Spd.Presentation.Licensing/ClientApp/src/app/landing.component.ts b/src/Spd.Presentation.Licensing/ClientApp/src/app/landing.component.ts index 4cd12b851..bf8235312 100644 --- a/src/Spd.Presentation.Licensing/ClientApp/src/app/landing.component.ts +++ b/src/Spd.Presentation.Licensing/ClientApp/src/app/landing.component.ts @@ -1,6 +1,8 @@ import { Component, OnInit } from '@angular/core'; import { MatDialog } from '@angular/material/dialog'; import { Router } from '@angular/router'; +import { BusinessLicenceApplicationRoutes } from '@app/modules/business-licence-application/business-license-application-routes'; +import { PersonalLicenceApplicationRoutes } from '@app/modules/personal-licence-application/personal-licence-application-routes'; import { PermitApplicationService } from '@core/services/permit-application.service'; import { take, tap } from 'rxjs'; import { WorkerLicenceTypeCode } from './api/models'; @@ -8,8 +10,6 @@ import { SPD_CONSTANTS } from './core/constants/constants'; import { ApplicationService } from './core/services/application.service'; import { AuthProcessService } from './core/services/auth-process.service'; import { WorkerApplicationService } from './core/services/worker-application.service'; -import { BusinessLicenceApplicationRoutes } from '@app/modules/business-licence-application/business-license-application-routes'; -import { PersonalLicenceApplicationRoutes } from './modules/personal-licence-application/personal-licence-application-routing.module'; import { DialogComponent, DialogOptions } from './shared/components/dialog.component'; @Component({ diff --git a/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/business-licence-application/business-license-application-routes.ts b/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/business-licence-application/business-license-application-routes.ts index 1b94726b6..460743562 100644 --- a/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/business-licence-application/business-license-application-routes.ts +++ b/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/business-licence-application/business-license-application-routes.ts @@ -1,4 +1,3 @@ - export class BusinessLicenceApplicationRoutes { public static readonly BUSINESS_LICENCE_APPLICATION = 'business-licence'; diff --git a/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/business-licence-application/components/business-category-security-guard.component.ts b/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/business-licence-application/components/business-category-security-guard.component.ts index 67d414044..ca15582f5 100644 --- a/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/business-licence-application/components/business-category-security-guard.component.ts +++ b/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/business-licence-application/components/business-category-security-guard.component.ts @@ -16,7 +16,7 @@ import { FileUploadComponent } from '@app/shared/components/file-upload.componen Do you want to request authorization to use dogs for the purpose of security work?
- +
No Yes @@ -25,35 +25,61 @@ import { FileUploadComponent } from '@app/shared/components/file-upload.componen This is required
-
- +
+ -
Upload your Security Dog Validation Certificate
- - This is required +
+
+
+
Purpose of using dogs
+ Protection + Detection - Drugs + Detection - Explosives +
+ At least one option must be selected +
+
+ +
Upload your Security Dog Validation Certificate
+
+ emergency If you have more than one dog, you must submit + a certificate for each dog +
+ +
+ + This is required +
`, @@ -100,8 +126,8 @@ export class BusinessCategorySecurityGuardComponent implements LicenceChildStepp this.businessApplicationService.hasValueChanged = true; } - get isRequestDogAuthorization(): FormControl { - return this.form.get('isRequestDogAuthorization') as FormControl; + get useDogs(): FormControl { + return this.form.get('useDogs') as FormControl; } get attachments(): FormControl { return this.form.get('attachments') as FormControl; diff --git a/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/business-licence-application/components/business-licence-list-current.component.ts b/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/business-licence-application/components/business-licence-list-current.component.ts index 8208192b5..afedc0784 100644 --- a/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/business-licence-application/components/business-licence-list-current.component.ts +++ b/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/business-licence-application/components/business-licence-list-current.component.ts @@ -22,14 +22,22 @@ import { MainLicenceResponse } from '@app/core/services/application.service';
-
+
Licence Number
-
{{ licence.licenceNumber }}
+
{{ licence.licenceNumber }}
-
+
Licence Term
{{ licence.licenceTermCode | options : 'LicenceTermTypes' }}
+
+
Expiry Date
+
+
+ {{ licence.licenceExpiryDate | formatDate : constants.date.formalDateFormat }} +
+
+
check_circle @@ -40,13 +48,7 @@ import { MainLicenceResponse } from '@app/core/services/application.service';
-
-
Expiry Date
-
- {{ licence.licenceExpiryDate | formatDate : constants.date.formalDateFormat }} -
-
-
+
Licence Categories
    @@ -57,10 +59,10 @@ import { MainLicenceResponse } from '@app/core/services/application.service';
-
+
Dog Authorization
- + Authorized to use dogs Not authorized to use dogs @@ -147,6 +149,11 @@ import { MainLicenceResponse } from '@app/core/services/application.service'; .appl-chip-option-item { vertical-align: text-bottom; } + + .error-color { + font-weight: 600; + color: var(--color-red-dark); + } `, ], }) diff --git a/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/business-licence-application/components/business-licence-wizard-new-swl-sole-proprietor.component.ts b/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/business-licence-application/components/business-licence-wizard-new-swl-sole-proprietor.component.ts index 671662c74..492aef4bd 100644 --- a/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/business-licence-application/components/business-licence-wizard-new-swl-sole-proprietor.component.ts +++ b/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/business-licence-application/components/business-licence-wizard-new-swl-sole-proprietor.component.ts @@ -10,7 +10,7 @@ import { BaseWizardComponent } from '@app/core/components/base-wizard.component' import { ApplicationService } from '@app/core/services/application.service'; import { BusinessApplicationService } from '@app/core/services/business-application.service'; import { BusinessLicenceApplicationRoutes } from '@app/modules/business-licence-application/business-license-application-routes'; -import { PersonalLicenceApplicationRoutes } from '@app/modules/personal-licence-application/personal-licence-application-routing.module'; +import { PersonalLicenceApplicationRoutes } from '@app/modules/personal-licence-application/personal-licence-application-routes'; import { HotToastService } from '@ngxpert/hot-toast'; import { Subscription, distinctUntilChanged } from 'rxjs'; import { StepsBusinessLicenceReviewComponent } from './steps-business-licence-review.component'; diff --git a/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/business-licence-application/components/business-licence-wizard-replacement.component.ts b/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/business-licence-application/components/business-licence-wizard-replacement.component.ts index f7bef1d31..7e4ba6741 100644 --- a/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/business-licence-application/components/business-licence-wizard-replacement.component.ts +++ b/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/business-licence-application/components/business-licence-wizard-replacement.component.ts @@ -20,7 +20,9 @@ import { distinctUntilChanged } from 'rxjs'; > Licence Confirmation - + Licence Confirmation - + `, - styles: [ - ` - .appl-chip-option { - height: 35px; - width: 125px; - } - - .appl-chip-option-item { - vertical-align: text-bottom; - } - `, - ], + styles: [], }) export class BusinessUserApplicationsComponent implements OnInit { constants = SPD_CONSTANTS; diff --git a/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/business-licence-application/components/common-business-licence-summary.component.ts b/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/business-licence-application/components/common-business-licence-summary.component.ts index 202566d24..f5baabe66 100644 --- a/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/business-licence-application/components/common-business-licence-summary.component.ts +++ b/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/business-licence-application/components/common-business-licence-summary.component.ts @@ -152,14 +152,13 @@ import { BooleanTypeCode } from 'src/app/core/code-types/model-desc.models';
Licence Information
-
-
+
Licence Term
{{ licenceTermCode | options : 'LicenceTermTypes' }}
-
+
Fee
{{ licenceFee | currency : 'CAD' : 'symbol-narrow' : '1.0' | default }} @@ -167,18 +166,16 @@ import { BooleanTypeCode } from 'src/app/core/code-types/model-desc.models';
- -
-
- Licence Category #{{ i + 1 }} -
-
- {{ category | options : 'WorkerCategoryTypes' }} -
+
+
Licence Categories
+
+
    + +
  • {{ category | options : 'WorkerCategoryTypes' }}
  • +
    +
- +
@@ -312,7 +309,7 @@ import { BooleanTypeCode } from 'src/app/core/code-types/model-desc.models';
Active Security Worker Licence Holders
- + + +
+
Members
+
+
    + +
  • {{ member.licenceHolderName }} - {{ member.licenceNumber }}
  • +
    +
- +
+ +
None
@@ -330,7 +339,7 @@ import { BooleanTypeCode } from 'src/app/core/code-types/model-desc.models';
Members who require Criminal Record Checks
- + + +
+
Members
+
+
    + +
  • {{ member.licenceHolderName }}
  • +
    +
+
+
None
@@ -534,9 +554,7 @@ export class CommonBusinessLicenceSummaryComponent implements OnInit { } get showSecurityGuard(): boolean { const isInclude = this.businessModelData.categorySecurityGuardData?.isInclude ?? false; - return ( - isInclude && this.businessModelData.categorySecurityGuardData?.isRequestDogAuthorization === BooleanTypeCode.Yes - ); + return isInclude && this.businessModelData.categorySecurityGuardData?.useDogs === BooleanTypeCode.Yes; } get categoryArmouredCarGuardAttachments(): File[] { return this.businessModelData.categoryArmouredCarGuardData.attachments ?? []; diff --git a/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/business-licence-application/components/common-business-profile.component.ts b/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/business-licence-application/components/common-business-profile.component.ts index 22b769c0e..3db71be85 100644 --- a/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/business-licence-application/components/common-business-profile.component.ts +++ b/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/business-licence-application/components/common-business-profile.component.ts @@ -63,11 +63,7 @@ import { BusinessBcBranchesComponent } from './business-bc-branches.component'; visit BCeID.
- +
@@ -89,7 +85,6 @@ import { BusinessBcBranchesComponent } from './business-bc-branches.component';
-
+
@@ -115,7 +110,7 @@ import { BusinessBcBranchesComponent } from './business-bc-branches.component';
diff --git a/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/business-licence-application/components/modal-bc-branch-edit.component.ts b/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/business-licence-application/components/modal-bc-branch-edit.component.ts index 87da73c21..2677d568e 100644 --- a/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/business-licence-application/components/modal-bc-branch-edit.component.ts +++ b/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/business-licence-application/components/modal-bc-branch-edit.component.ts @@ -56,7 +56,7 @@ export interface UserDialogData {
Branch Address
- +
diff --git a/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/business-licence-application/components/step-business-licence-business-address.component.ts b/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/business-licence-application/components/step-business-licence-business-address.component.ts index acae6fdf1..cc782fe7c 100644 --- a/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/business-licence-application/components/step-business-licence-business-address.component.ts +++ b/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/business-licence-application/components/step-business-licence-business-address.component.ts @@ -21,11 +21,7 @@ import { LicenceChildStepperStepComponent } from '@app/core/services/util.servic visit BCeID.
- +
@@ -47,7 +43,6 @@ import { LicenceChildStepperStepComponent } from '@app/core/services/util.servic
@@ -56,7 +51,7 @@ import { LicenceChildStepperStepComponent } from '@app/core/services/util.servic
-
+
@@ -69,7 +64,7 @@ import { LicenceChildStepperStepComponent } from '@app/core/services/util.servic Provide an address in British Columbia for document service - +
diff --git a/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/business-licence-application/components/step-business-licence-category.component.ts b/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/business-licence-application/components/step-business-licence-category.component.ts index 8fb9fa20a..c8fa9b343 100644 --- a/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/business-licence-application/components/step-business-licence-category.component.ts +++ b/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/business-licence-application/components/step-business-licence-category.component.ts @@ -38,14 +38,14 @@ import { FileUploadComponent } from '@app/shared/components/file-upload.componen
- + The Locksmith business licence automatically includes Electronic Locking Device Installer.
- + The Security Alarm Installer business licence automatically includes Security Alarm Sales, Security Alarm Monitor, Security Alarm Response, Closed Circuit Television Installer, and Electronic Locking Device Installer. @@ -53,14 +53,14 @@ import { FileUploadComponent } from '@app/shared/components/file-upload.componen
- + The Security Alarm Response business licence automatically includes Security Alarm Monitor.
- + The Security Guard business licence automatically includes Security Alarm Monitor and Security Alarm Response. diff --git a/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/business-licence-application/components/step-business-licence-confirmation.component.ts b/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/business-licence-application/components/step-business-licence-confirmation.component.ts index 2c39fc353..110f6d422 100644 --- a/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/business-licence-application/components/step-business-licence-confirmation.component.ts +++ b/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/business-licence-application/components/step-business-licence-confirmation.component.ts @@ -20,40 +20,40 @@ import { BusinessApplicationService } from '@app/core/services/business-applicat
-
+
Business Name
{{ businessName }}
-
+
Business Licence Number
{{ originalLicenceNumber }}
-
-
Licence Categories
-
-
    - -
  • {{ catCode | options : 'WorkerCategoryTypes' }}
  • -
    -
-
+
+
Licence Term
+
{{ originalLicenceTermCode | options : 'LicenceTermTypes' }}
-
+
Expiry Date
{{ originalExpiryDate | formatDate : formalDateFormat }}
-
-
Licence Term
-
{{ originalLicenceTermCode | options : 'LicenceTermTypes' }}
-
-
+
{{ applicationTypeCode }} Fee
{{ feeAmount | currency : 'CAD' : 'symbol-narrow' : '1.0' | default }}
+
+
Licence Categories
+
+
    + +
  • {{ catCode | options : 'WorkerCategoryTypes' }}
  • +
    +
+
+
@@ -79,6 +79,7 @@ export class StepBusinessLicenceConfirmationComponent implements OnInit { this.businessLicenceModelData = { ...this.businessApplicationService.businessModelFormGroup.getRawValue() }; // only show fee for Replacement flow + if (this.applicationTypeCode === ApplicationTypeCode.Replacement) { const workerLicenceTypeCode = this.businessLicenceModelData.workerLicenceTypeData?.workerLicenceTypeCode; const originalLicenceData = this.businessLicenceModelData.originalLicenceData; @@ -119,6 +120,6 @@ export class StepBusinessLicenceConfirmationComponent implements OnInit { const selected = workerCategoryTypeCodes.filter((item: string) => { return !!categoryData[item]; }); - return selected ?? []; + return selected.sort() ?? []; } } diff --git a/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/business-licence-application/components/step-business-licence-expired.component.ts b/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/business-licence-application/components/step-business-licence-expired.component.ts index c0e117782..97dcf78d7 100644 --- a/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/business-licence-application/components/step-business-licence-expired.component.ts +++ b/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/business-licence-application/components/step-business-licence-expired.component.ts @@ -7,10 +7,15 @@ import { LicenceChildStepperStepComponent } from '@app/core/services/util.servic @Component({ selector: 'app-step-business-licence-expired', template: ` - + +
+
+ + Processing time will be reduced if you provide info from your past licence + +
+
+ - + - +
- +
+
+ +
+
`, styles: [], diff --git a/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/controlling-member-crc/controlling-member-crc-routes.ts b/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/controlling-member-crc/controlling-member-crc-routes.ts new file mode 100644 index 000000000..25e103ee4 --- /dev/null +++ b/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/controlling-member-crc/controlling-member-crc-routes.ts @@ -0,0 +1,14 @@ +export class ControllingMemberCrcRoutes { + public static readonly CONTROLLING_MEMBER_CRC = 'controlling-member-crc'; + public static readonly CONTROLLING_MEMBER_INVITATION = 'invitation'; + public static readonly CONTROLLING_MEMBER_LOGIN = 'login'; + public static readonly CONTROLLING_MEMBER_NEW = 'new'; + public static readonly CONTROLLING_MEMBER_UPDATE = 'update'; + public static readonly CONTROLLING_MEMBER_SUBMISSION_RECEIVED = 'submission'; + + public static readonly MODULE_PATH = ControllingMemberCrcRoutes.CONTROLLING_MEMBER_CRC; + + public static path(route: string | null = null): string { + return route ? `/${ControllingMemberCrcRoutes.MODULE_PATH}/${route}` : `/${ControllingMemberCrcRoutes.MODULE_PATH}`; + } +} diff --git a/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/controlling-member-crc/controlling-member-crc-routing.module.ts b/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/controlling-member-crc/controlling-member-crc-routing.module.ts index aae5008b3..515871d00 100644 --- a/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/controlling-member-crc/controlling-member-crc-routing.module.ts +++ b/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/controlling-member-crc/controlling-member-crc-routing.module.ts @@ -3,24 +3,10 @@ import { RouterModule, Routes } from '@angular/router'; import { ControllingMemberSubmissionReceivedComponent } from './components/controlling-member-submission-received.component'; import { ControllingMemberWizardNewComponent } from './components/controlling-member-wizard-new.component'; import { ControllingMemberWizardUpdateComponent } from './components/controlling-member-wizard-update.component'; +import { ControllingMemberCrcRoutes } from './controlling-member-crc-routes'; import { ControllingMemberInvitationComponent } from './controlling-member-invitation.component'; import { ControllingMemberLoginComponent } from './controlling-member-login.component'; -export class ControllingMemberCrcRoutes { - public static readonly CONTROLLING_MEMBER_CRC = 'controlling-member-crc'; - public static readonly CONTROLLING_MEMBER_INVITATION = 'invitation'; - public static readonly CONTROLLING_MEMBER_LOGIN = 'login'; - public static readonly CONTROLLING_MEMBER_NEW = 'new'; - public static readonly CONTROLLING_MEMBER_UPDATE = 'update'; - public static readonly CONTROLLING_MEMBER_SUBMISSION_RECEIVED = 'submission'; - - public static readonly MODULE_PATH = ControllingMemberCrcRoutes.CONTROLLING_MEMBER_CRC; - - public static path(route: string | null = null): string { - return route ? `/${ControllingMemberCrcRoutes.MODULE_PATH}/${route}` : `/${ControllingMemberCrcRoutes.MODULE_PATH}`; - } -} - const routes: Routes = [ { path: `${ControllingMemberCrcRoutes.CONTROLLING_MEMBER_INVITATION}/:id`, diff --git a/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/controlling-member-crc/controlling-member-invitation.component.ts b/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/controlling-member-crc/controlling-member-invitation.component.ts index 2f9365090..b18e0819e 100644 --- a/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/controlling-member-crc/controlling-member-invitation.component.ts +++ b/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/controlling-member-crc/controlling-member-invitation.component.ts @@ -4,7 +4,7 @@ import { BizMembersService } from '@app/api/services'; import { StrictHttpResponse } from '@app/api/strict-http-response'; import { SPD_CONSTANTS } from '@app/core/constants/constants'; import { UtilService } from '@app/core/services/util.service'; -import { ControllingMemberCrcRoutes } from './controlling-member-crc-routing.module'; +import { ControllingMemberCrcRoutes } from './controlling-member-crc-routes'; @Component({ selector: 'app-controlling-member-invitation', diff --git a/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/controlling-member-crc/controlling-member-login.component.ts b/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/controlling-member-crc/controlling-member-login.component.ts index 443c706e5..96149cc86 100644 --- a/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/controlling-member-crc/controlling-member-login.component.ts +++ b/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/controlling-member-crc/controlling-member-login.component.ts @@ -13,7 +13,7 @@ import { AuthProcessService } from '@app/core/services/auth-process.service'; import { ControllingMemberCrcService } from '@app/core/services/controlling-member-crc.service'; import { UtilService } from '@app/core/services/util.service'; import { take, takeWhile, tap } from 'rxjs'; -import { ControllingMemberCrcRoutes } from './controlling-member-crc-routing.module'; +import { ControllingMemberCrcRoutes } from './controlling-member-crc-routes'; @Component({ selector: 'app-controlling-member-login', diff --git a/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/anonymous/permit-wizard-anonymous-update.component.ts b/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/anonymous/permit-wizard-anonymous-update.component.ts index 49006892a..626f68884 100644 --- a/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/anonymous/permit-wizard-anonymous-update.component.ts +++ b/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/anonymous/permit-wizard-anonymous-update.component.ts @@ -7,7 +7,7 @@ import { ApplicationTypeCode, PermitAppCommandResponse, WorkerLicenceTypeCode } import { StrictHttpResponse } from '@app/api/strict-http-response'; import { BaseWizardComponent } from '@app/core/components/base-wizard.component'; import { ApplicationService } from '@app/core/services/application.service'; -import { PersonalLicenceApplicationRoutes } from '@app/modules/personal-licence-application/personal-licence-application-routing.module'; +import { PersonalLicenceApplicationRoutes } from '@app/modules/personal-licence-application/personal-licence-application-routes'; import { PermitApplicationService } from '@core/services/permit-application.service'; import { HotToastService } from '@ngxpert/hot-toast'; import { Subscription, distinctUntilChanged } from 'rxjs'; diff --git a/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/anonymous/permit-wizard-step-components/step-permit-access-code.component.ts b/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/anonymous/permit-wizard-step-components/step-permit-access-code.component.ts index 59d676c38..61d8a0835 100644 --- a/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/anonymous/permit-wizard-step-components/step-permit-access-code.component.ts +++ b/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/anonymous/permit-wizard-step-components/step-permit-access-code.component.ts @@ -3,10 +3,10 @@ import { FormGroup } from '@angular/forms'; import { Router } from '@angular/router'; import { ApplicationTypeCode, LicenceResponse, WorkerLicenceTypeCode } from '@app/api/models'; import { SPD_CONSTANTS } from '@app/core/constants/constants'; +import { ApplicationService } from '@app/core/services/application.service'; import { LicenceChildStepperStepComponent } from '@app/core/services/util.service'; import { CommonAccessCodeAnonymousComponent } from '@app/modules/personal-licence-application/components/shared/common-step-components/common-access-code-anonymous.component'; -import { PersonalLicenceApplicationRoutes } from '@app/modules/personal-licence-application/personal-licence-application-routing.module'; -import { ApplicationService } from '@app/core/services/application.service'; +import { PersonalLicenceApplicationRoutes } from '@app/modules/personal-licence-application/personal-licence-application-routes'; import { PermitApplicationService } from '@core/services/permit-application.service'; @Component({ diff --git a/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/anonymous/permit-wizard-step-components/step-permit-employer-information.component.ts b/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/anonymous/permit-wizard-step-components/step-permit-employer-information.component.ts index 2543264f0..5da241cd5 100644 --- a/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/anonymous/permit-wizard-step-components/step-permit-employer-information.component.ts +++ b/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/anonymous/permit-wizard-step-components/step-permit-employer-information.component.ts @@ -72,6 +72,7 @@ import { PermitApplicationService } from '@core/services/permit-application.serv + +
+
+ + Processing time will be reduced if you provide info from your past permit + +
+
+ - +
+
+ +
+
`, styles: [], diff --git a/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/anonymous/permit-wizard-step-components/step-permit-residential-address.component.ts b/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/anonymous/permit-wizard-step-components/step-permit-residential-address.component.ts index 22156aab1..cf700505d 100644 --- a/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/anonymous/permit-wizard-step-components/step-permit-residential-address.component.ts +++ b/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/anonymous/permit-wizard-step-components/step-permit-residential-address.component.ts @@ -8,7 +8,11 @@ import { PermitApplicationService } from '@core/services/permit-application.serv selector: 'app-step-permit-residential-address', template: ` - +
+
+ +
+
`, styles: [], diff --git a/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/anonymous/permit-wizard-step-components/step-permit-type-anonymous.component.ts b/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/anonymous/permit-wizard-step-components/step-permit-type-anonymous.component.ts index 550232f7c..484be7d1d 100644 --- a/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/anonymous/permit-wizard-step-components/step-permit-type-anonymous.component.ts +++ b/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/anonymous/permit-wizard-step-components/step-permit-type-anonymous.component.ts @@ -2,8 +2,8 @@ import { Component, OnInit } from '@angular/core'; import { FormControl, FormGroup } from '@angular/forms'; import { Router } from '@angular/router'; import { ApplicationTypeCode, BizTypeCode, LicenceFeeResponse, WorkerLicenceTypeCode } from '@app/api/models'; -import { PersonalLicenceApplicationRoutes } from '@app/modules/personal-licence-application/personal-licence-application-routing.module'; import { ApplicationService } from '@app/core/services/application.service'; +import { PersonalLicenceApplicationRoutes } from '@app/modules/personal-licence-application/personal-licence-application-routes'; import { PermitApplicationService } from '@core/services/permit-application.service'; @Component({ diff --git a/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/anonymous/worker-licence-application-base-anonymous.component.ts b/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/anonymous/worker-licence-application-base-anonymous.component.ts index f4a341f2f..ae7e2c43d 100644 --- a/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/anonymous/worker-licence-application-base-anonymous.component.ts +++ b/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/anonymous/worker-licence-application-base-anonymous.component.ts @@ -3,8 +3,8 @@ import { Router } from '@angular/router'; import { AppRoutes } from '@app/app-routing.module'; import { AuthProcessService } from '@app/core/services/auth-process.service'; import { WorkerApplicationService } from '@app/core/services/worker-application.service'; +import { PersonalLicenceApplicationRoutes } from '@app/modules/personal-licence-application/personal-licence-application-routes'; import { take, tap } from 'rxjs'; -import { PersonalLicenceApplicationRoutes } from '../../personal-licence-application-routing.module'; @Component({ selector: 'app-worker-licence-application-base-anonymous', diff --git a/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/anonymous/worker-licence-wizard-anonymous-update.component.ts b/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/anonymous/worker-licence-wizard-anonymous-update.component.ts index 0b1d1304e..e4e9b1654 100644 --- a/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/anonymous/worker-licence-wizard-anonymous-update.component.ts +++ b/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/anonymous/worker-licence-wizard-anonymous-update.component.ts @@ -11,7 +11,7 @@ import { ApplicationService } from '@app/core/services/application.service'; import { WorkerApplicationService } from '@app/core/services/worker-application.service'; import { StepsWorkerLicenceBackgroundRenewAndUpdateComponent } from '@app/modules/personal-licence-application/components/shared/worker-licence-wizard-step-components/steps-worker-licence-background-renew-and-update.component'; import { StepsWorkerLicenceSelectionComponent } from '@app/modules/personal-licence-application/components/shared/worker-licence-wizard-step-components/steps-worker-licence-selection.component'; -import { PersonalLicenceApplicationRoutes } from '@app/modules/personal-licence-application/personal-licence-application-routing.module'; +import { PersonalLicenceApplicationRoutes } from '@app/modules/personal-licence-application/personal-licence-application-routes'; import { HotToastService } from '@ngxpert/hot-toast'; import { Subscription, distinctUntilChanged } from 'rxjs'; import { StepsWorkerLicenceIdentificationAnonymousComponent } from './worker-licence-wizard-step-components/steps-worker-licence-identification-anonymous.component'; diff --git a/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/anonymous/worker-licence-wizard-step-components/step-worker-licence-access-code.component.ts b/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/anonymous/worker-licence-wizard-step-components/step-worker-licence-access-code.component.ts index 9b1a400d3..f5e90e2d0 100644 --- a/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/anonymous/worker-licence-wizard-step-components/step-worker-licence-access-code.component.ts +++ b/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/anonymous/worker-licence-wizard-step-components/step-worker-licence-access-code.component.ts @@ -7,7 +7,7 @@ import { ApplicationService } from '@app/core/services/application.service'; import { LicenceChildStepperStepComponent } from '@app/core/services/util.service'; import { WorkerApplicationService } from '@app/core/services/worker-application.service'; import { CommonAccessCodeAnonymousComponent } from '@app/modules/personal-licence-application/components/shared/common-step-components/common-access-code-anonymous.component'; -import { PersonalLicenceApplicationRoutes } from '@app/modules/personal-licence-application/personal-licence-application-routing.module'; +import { PersonalLicenceApplicationRoutes } from '@app/modules/personal-licence-application/personal-licence-application-routes'; @Component({ selector: 'app-step-worker-licence-access-code', diff --git a/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/anonymous/worker-licence-wizard-step-components/step-worker-licence-application-type-anonymous.component.ts b/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/anonymous/worker-licence-wizard-step-components/step-worker-licence-application-type-anonymous.component.ts index f5a9ef78f..6ed5d6cc0 100644 --- a/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/anonymous/worker-licence-wizard-step-components/step-worker-licence-application-type-anonymous.component.ts +++ b/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/anonymous/worker-licence-wizard-step-components/step-worker-licence-application-type-anonymous.component.ts @@ -4,7 +4,7 @@ import { Router } from '@angular/router'; import { ApplicationTypeCode, WorkerLicenceTypeCode } from '@app/api/models'; import { ApplicationService } from '@app/core/services/application.service'; import { WorkerApplicationService } from '@app/core/services/worker-application.service'; -import { PersonalLicenceApplicationRoutes } from '@app/modules/personal-licence-application/personal-licence-application-routing.module'; +import { PersonalLicenceApplicationRoutes } from '@app/modules/personal-licence-application/personal-licence-application-routes'; @Component({ selector: 'app-step-worker-licence-application-type-anonymous', diff --git a/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/anonymous/worker-licence-wizard-step-components/step-worker-licence-confirmation.component.ts b/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/anonymous/worker-licence-wizard-step-components/step-worker-licence-confirmation.component.ts index 7b445e6c9..fd2a85f6a 100644 --- a/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/anonymous/worker-licence-wizard-step-components/step-worker-licence-confirmation.component.ts +++ b/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/anonymous/worker-licence-wizard-step-components/step-worker-licence-confirmation.component.ts @@ -20,40 +20,40 @@ import { WorkerApplicationService } from '@app/core/services/worker-application.
-
+
Licence Holder Name
{{ cardHolderName }}
-
+
Licence Number
{{ originalLicenceNumber }}
-
-
Licence Categories
-
-
    - -
  • {{ category | options : 'WorkerCategoryTypes' }}
  • -
    -
-
+
+
Licence Term
+
{{ originalLicenceTermCode | options : 'LicenceTermTypes' }}
-
+
Expiry Date
{{ originalExpiryDate | formatDate : formalDateFormat }}
-
-
Licence Term
-
{{ originalLicenceTermCode | options : 'LicenceTermTypes' }}
-
-
+
{{ applicationTypeCode }} Fee
{{ feeAmount | currency : 'CAD' : 'symbol-narrow' : '1.0' | default }}
+
+
Licence Categories
+
+
    + +
  • {{ category | options : 'WorkerCategoryTypes' }}
  • +
    +
+
+
diff --git a/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/anonymous/worker-licence-wizard-step-components/step-worker-licence-summary-review-anonymous.component.ts b/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/anonymous/worker-licence-wizard-step-components/step-worker-licence-summary-review-anonymous.component.ts index acc8f36fd..f0f52a1bd 100644 --- a/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/anonymous/worker-licence-wizard-step-components/step-worker-licence-summary-review-anonymous.component.ts +++ b/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/anonymous/worker-licence-wizard-step-components/step-worker-licence-summary-review-anonymous.component.ts @@ -54,27 +54,12 @@ import { WorkerApplicationService } from '@app/core/services/worker-application. {{ applicationTypeCode | options : 'ApplicationTypes' }}
- -
-
Sole Proprietorship Security Business Licence
-
- {{ soleProprietorBizTypeCode | options : 'BizTypes' }} -
-
-
- - -
-
- Licence Category #{{ i + 1 }} -
-
- {{ category | options : 'WorkerCategoryTypes' }} -
+
+
Sole Proprietorship Security Business Licence
+
+ {{ soleProprietorBizTypeCode | options : 'BizTypes' }}
- +
Licence Term
{{ licenceTermCode | options : 'LicenceTermTypes' }}
@@ -85,6 +70,16 @@ import { WorkerApplicationService } from '@app/core/services/worker-application. {{ licenceFee | currency : 'CAD' : 'symbol-narrow' : '1.0' | default }}
+
+
Licence Categories
+
+
    + +
  • {{ category | options : 'WorkerCategoryTypes' }}
  • +
    +
+
+
@@ -1028,7 +1023,7 @@ export class StepWorkerLicenceSummaryReviewAnonymousComponent implements OnInit } get photoOfYourselfAttachments(): File[] { - return this.workerApplicationService.getSummaryphotoOfYourselfAttachments(this.licenceModelData); + return this.workerApplicationService.getSummaryphotoOfYourselfAttachments(this.licenceModelData) ?? []; } get emailAddress(): string { diff --git a/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/authenticated/licence-access-code-authorized.component.ts b/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/authenticated/licence-access-code-authorized.component.ts index a0fefd7a4..f4ea8241f 100644 --- a/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/authenticated/licence-access-code-authorized.component.ts +++ b/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/authenticated/licence-access-code-authorized.component.ts @@ -6,7 +6,7 @@ import { StrictHttpResponse } from '@app/api/strict-http-response'; import { SPD_CONSTANTS } from '@app/core/constants/constants'; import { LicenceChildStepperStepComponent } from '@app/core/services/util.service'; import { WorkerApplicationService } from '@app/core/services/worker-application.service'; -import { PersonalLicenceApplicationRoutes } from '@app/modules/personal-licence-application/personal-licence-application-routing.module'; +import { PersonalLicenceApplicationRoutes } from '@app/modules/personal-licence-application/personal-licence-application-routes'; import { FormErrorStateMatcher } from '@app/shared/directives/form-error-state-matcher.directive'; import { HotToastService } from '@ngxpert/hot-toast'; diff --git a/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/authenticated/licence-application-base-authenticated.component.ts b/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/authenticated/licence-application-base-authenticated.component.ts index 3a9017262..b02cf34f4 100644 --- a/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/authenticated/licence-application-base-authenticated.component.ts +++ b/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/authenticated/licence-application-base-authenticated.component.ts @@ -3,7 +3,7 @@ import { Router } from '@angular/router'; import { AuthProcessService } from '@app/core/services/auth-process.service'; import { AuthUserBcscService } from '@app/core/services/auth-user-bcsc.service'; import { WorkerApplicationService } from '@app/core/services/worker-application.service'; -import { PersonalLicenceApplicationRoutes } from '@app/modules/personal-licence-application/personal-licence-application-routing.module'; +import { PersonalLicenceApplicationRoutes } from '@app/modules/personal-licence-application/personal-licence-application-routes'; import { PermitApplicationService } from '@core/services/permit-application.service'; @Component({ diff --git a/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/authenticated/licence-first-time-user-selection.component.ts b/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/authenticated/licence-first-time-user-selection.component.ts index 2e03a726b..4d0cd4ced 100644 --- a/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/authenticated/licence-first-time-user-selection.component.ts +++ b/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/authenticated/licence-first-time-user-selection.component.ts @@ -5,7 +5,7 @@ import { ApplicantProfileService } from '@app/api/services'; import { SPD_CONSTANTS } from '@app/core/constants/constants'; import { LicenceChildStepperStepComponent, UtilService } from '@app/core/services/util.service'; import { CommonSwlPermitTermsComponent } from '@app/modules/personal-licence-application/components/shared/common-step-components/common-swl-permit-terms.component'; -import { PersonalLicenceApplicationRoutes } from '@app/modules/personal-licence-application/personal-licence-application-routing.module'; +import { PersonalLicenceApplicationRoutes } from '@app/modules/personal-licence-application/personal-licence-application-routes'; @Component({ selector: 'app-licence-first-time-user-selection', diff --git a/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/authenticated/licence-first-time-user-terms-of-use.component.ts b/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/authenticated/licence-first-time-user-terms-of-use.component.ts index 340bb0647..8134c13b7 100644 --- a/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/authenticated/licence-first-time-user-terms-of-use.component.ts +++ b/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/authenticated/licence-first-time-user-terms-of-use.component.ts @@ -6,7 +6,7 @@ import { AuthUserBcscService } from '@app/core/services/auth-user-bcsc.service'; import { LicenceChildStepperStepComponent } from '@app/core/services/util.service'; import { WorkerApplicationService } from '@app/core/services/worker-application.service'; import { CommonSwlPermitTermsComponent } from '@app/modules/personal-licence-application/components/shared/common-step-components/common-swl-permit-terms.component'; -import { PersonalLicenceApplicationRoutes } from '@app/modules/personal-licence-application/personal-licence-application-routing.module'; +import { PersonalLicenceApplicationRoutes } from '@app/modules/personal-licence-application/personal-licence-application-routes'; @Component({ selector: 'app-licence-first-time-user-terms-of-use', diff --git a/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/authenticated/licence-user-applications.component.ts b/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/authenticated/licence-user-applications.component.ts index 8d0528806..1968657ee 100644 --- a/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/authenticated/licence-user-applications.component.ts +++ b/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/authenticated/licence-user-applications.component.ts @@ -12,7 +12,7 @@ import { } from '@app/core/services/application.service'; import { ConfigService } from '@app/core/services/config.service'; import { WorkerApplicationService } from '@app/core/services/worker-application.service'; -import { PersonalLicenceApplicationRoutes } from '@app/modules/personal-licence-application/personal-licence-application-routing.module'; +import { PersonalLicenceApplicationRoutes } from '@app/modules/personal-licence-application/personal-licence-application-routes'; import { PermitApplicationService } from '@core/services/permit-application.service'; import { Observable, forkJoin, take, tap } from 'rxjs'; @@ -158,22 +158,7 @@ import { Observable, forkJoin, take, tap } from 'rxjs';
`, - styles: [ - ` - .appl-chip-option { - height: 35px; - } - - .appl-chip-option-item { - vertical-align: text-bottom; - } - - .error-color { - font-weight: 600; - color: var(--color-red-dark); - } - `, - ], + styles: [], }) export class LicenceUserApplicationsComponent implements OnInit { constants = SPD_CONSTANTS; diff --git a/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/authenticated/permit-wizard-authenticated-new.component.ts b/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/authenticated/permit-wizard-authenticated-new.component.ts index 521c92912..cdc64b59d 100644 --- a/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/authenticated/permit-wizard-authenticated-new.component.ts +++ b/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/authenticated/permit-wizard-authenticated-new.component.ts @@ -9,7 +9,7 @@ import { StrictHttpResponse } from '@app/api/strict-http-response'; import { BaseWizardComponent } from '@app/core/components/base-wizard.component'; import { ApplicationService } from '@app/core/services/application.service'; import { StepsPermitDetailsNewComponent } from '@app/modules/personal-licence-application/components/anonymous/permit-wizard-step-components/steps-permit-details-new.component'; -import { PersonalLicenceApplicationRoutes } from '@app/modules/personal-licence-application/personal-licence-application-routing.module'; +import { PersonalLicenceApplicationRoutes } from '@app/modules/personal-licence-application/personal-licence-application-routes'; import { PermitApplicationService } from '@core/services/permit-application.service'; import { HotToastService } from '@ngxpert/hot-toast'; import { Subscription, distinctUntilChanged } from 'rxjs'; diff --git a/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/authenticated/permit-wizard-authenticated-update.component.ts b/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/authenticated/permit-wizard-authenticated-update.component.ts index 090da6b35..82ec09261 100644 --- a/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/authenticated/permit-wizard-authenticated-update.component.ts +++ b/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/authenticated/permit-wizard-authenticated-update.component.ts @@ -7,7 +7,7 @@ import { ApplicationTypeCode, PermitAppCommandResponse, WorkerLicenceTypeCode } import { StrictHttpResponse } from '@app/api/strict-http-response'; import { BaseWizardComponent } from '@app/core/components/base-wizard.component'; import { ApplicationService } from '@app/core/services/application.service'; -import { PersonalLicenceApplicationRoutes } from '@app/modules/personal-licence-application/personal-licence-application-routing.module'; +import { PersonalLicenceApplicationRoutes } from '@app/modules/personal-licence-application/personal-licence-application-routes'; import { PermitApplicationService } from '@core/services/permit-application.service'; import { HotToastService } from '@ngxpert/hot-toast'; import { Subscription, distinctUntilChanged } from 'rxjs'; diff --git a/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/authenticated/permit-wizard-step-components/step-permit-update-terms-authenticated.component.ts b/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/authenticated/permit-wizard-step-components/step-permit-update-terms-authenticated.component.ts index 8853ed9e0..000543543 100644 --- a/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/authenticated/permit-wizard-step-components/step-permit-update-terms-authenticated.component.ts +++ b/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/authenticated/permit-wizard-step-components/step-permit-update-terms-authenticated.component.ts @@ -2,7 +2,7 @@ import { Component, ViewChild, ViewEncapsulation } from '@angular/core'; import { Router } from '@angular/router'; import { ApplicationTypeCode, WorkerLicenceTypeCode } from '@app/api/models'; import { StepPermitTermsOfUseComponent } from '@app/modules/personal-licence-application/components/anonymous/permit-wizard-step-components/step-permit-terms-of-use.component'; -import { PersonalLicenceApplicationRoutes } from '@app/modules/personal-licence-application/personal-licence-application-routing.module'; +import { PersonalLicenceApplicationRoutes } from '@app/modules/personal-licence-application/personal-licence-application-routes'; import { PermitApplicationService } from '@core/services/permit-application.service'; @Component({ diff --git a/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/authenticated/permit-wizard-step-components/step-permit-user-profile.component.ts b/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/authenticated/permit-wizard-step-components/step-permit-user-profile.component.ts index cef2aeb6a..f956e666a 100644 --- a/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/authenticated/permit-wizard-step-components/step-permit-user-profile.component.ts +++ b/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/authenticated/permit-wizard-step-components/step-permit-user-profile.component.ts @@ -5,7 +5,7 @@ import { ApplicationTypeCode, WorkerLicenceTypeCode } from '@app/api/models'; import { LicenceChildStepperStepComponent, UtilService } from '@app/core/services/util.service'; import { CommonUserProfileLicenceCriminalHistoryComponent } from '@app/modules/personal-licence-application/components/authenticated/user-profile-components/common-user-profile-licence-criminal-history.component'; import { CommonUserProfileComponent } from '@app/modules/personal-licence-application/components/authenticated/user-profile-components/common-user-profile.component'; -import { PersonalLicenceApplicationRoutes } from '@app/modules/personal-licence-application/personal-licence-application-routing.module'; +import { PersonalLicenceApplicationRoutes } from '@app/modules/personal-licence-application/personal-licence-application-routes'; import { PermitApplicationService } from '@core/services/permit-application.service'; @Component({ diff --git a/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/authenticated/user-profile-components/common-user-profile.component.ts b/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/authenticated/user-profile-components/common-user-profile.component.ts index 5f05ae25c..402ced94a 100644 --- a/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/authenticated/user-profile-components/common-user-profile.component.ts +++ b/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/authenticated/user-profile-components/common-user-profile.component.ts @@ -62,11 +62,7 @@ import { FormPersonalInformationComponent } from '@app/shared/components/form-pe
- +
@@ -88,7 +84,6 @@ import { FormPersonalInformationComponent } from '@app/shared/components/form-pe
-
+
Sole Proprietorship Security Business Licence
-
{{ isSoleProprietor }}
-
-
-
- -
-
- Licence Category #{{ i + 1 }} -
-
- {{ category | options : 'WorkerCategoryTypes' }} -
+
+ {{ soleProprietorBizTypeCode | options : 'BizTypes' }}
- +
Licence Term
{{ licenceTermCode | options : 'LicenceTermTypes' }}
@@ -81,6 +69,16 @@ import { WorkerApplicationService } from '@app/core/services/worker-application. {{ licenceFee | currency : 'CAD' : 'symbol-narrow' : '1.0' | default }}
+
+
Licence Categories
+
+
    + +
  • {{ category | options : 'WorkerCategoryTypes' }}
  • +
    +
+
+
@@ -256,10 +254,14 @@ import { WorkerApplicationService } from '@app/core/services/worker-application.
-
-
+
+
Proof of Qualification
+
{{ carryAndUseRestraintsDocument | options : 'RestraintDocumentTypes' }}
+
+
+
Proof of Qualification Documents
    @@ -716,7 +718,7 @@ export class StepWorkerLicenceSummaryReviewAuthenticatedComponent implements OnI return this.workerApplicationService.getSummaryweightUnitCode(this.licenceModelData); } - get photoOfYourselfAttachments(): File[] { + get photoOfYourselfAttachments(): File[] | null { return this.workerApplicationService.getSummaryphotoOfYourselfAttachments(this.licenceModelData); } diff --git a/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/authenticated/worker-licence-wizard-step-components/step-worker-licence-summary-review-update-authenticated.component.ts b/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/authenticated/worker-licence-wizard-step-components/step-worker-licence-summary-review-update-authenticated.component.ts index 3bec82fab..98d8d8daa 100644 --- a/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/authenticated/worker-licence-wizard-step-components/step-worker-licence-summary-review-update-authenticated.component.ts +++ b/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/authenticated/worker-licence-wizard-step-components/step-worker-licence-summary-review-update-authenticated.component.ts @@ -45,6 +45,19 @@ import { WorkerApplicationService } from '@app/core/services/worker-application. {{ originalExpiryDate | formatDate : formalDateFormat }}
+ +
+
Licence Term
+
{{ originalLicenceTermCode | options : 'LicenceTermTypes' }}
+
+
+ +
Reprint Fee
+
+ {{ licenceFee | currency : 'CAD' : 'symbol-narrow' : '1.0' | default }} +
+
+
Licence Categories
@@ -60,14 +73,18 @@ import { WorkerApplicationService } from '@app/core/services/worker-application.
Request to Use Restraints?
- {{ carryAndUseRestraints | options : 'BooleanTypes' }} + {{ carryAndUseRestraints }}
-
+
Proof of Qualification
+
{{ carryAndUseRestraintsDocument | options : 'RestraintDocumentTypes' }}
+
+
+
Proof of Qualification Documents
    @@ -103,23 +120,6 @@ import { WorkerApplicationService } from '@app/core/services/worker-application.
- -
-
Licence Term
-
{{ originalLicenceTermCode | options : 'LicenceTermTypes' }}
-
- -
-
Reprint Licence
-
Yes
-
-
-
Reprint Fee
-
- {{ licenceFee | currency : 'CAD' : 'symbol-narrow' : '1.0' | default }} -
-
-
@@ -271,7 +271,7 @@ export class StepWorkerLicenceSummaryReviewUpdateAuthenticatedComponent implemen } get photoOfYourselfAttachments(): File[] { - return this.workerApplicationService.getSummaryphotoOfYourselfAttachments(this.licenceModelData); + return this.workerApplicationService.getSummaryphotoOfYourselfAttachments(this.licenceModelData) ?? []; } get categoryList(): Array { diff --git a/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/authenticated/worker-licence-wizard-step-components/step-worker-licence-update-terms-authenticated.component.ts b/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/authenticated/worker-licence-wizard-step-components/step-worker-licence-update-terms-authenticated.component.ts index 0d3cc560d..f455185ae 100644 --- a/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/authenticated/worker-licence-wizard-step-components/step-worker-licence-update-terms-authenticated.component.ts +++ b/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/authenticated/worker-licence-wizard-step-components/step-worker-licence-update-terms-authenticated.component.ts @@ -2,7 +2,7 @@ import { Component, ViewChild, ViewEncapsulation } from '@angular/core'; import { Router } from '@angular/router'; import { ApplicationTypeCode } from '@app/api/models'; import { StepWorkerLicenceTermsOfUseComponent } from '@app/modules/personal-licence-application/components/shared/worker-licence-wizard-step-components/step-worker-licence-terms-of-use.component'; -import { PersonalLicenceApplicationRoutes } from '@app/modules/personal-licence-application/personal-licence-application-routing.module'; +import { PersonalLicenceApplicationRoutes } from '@app/modules/personal-licence-application/personal-licence-application-routes'; @Component({ selector: 'app-step-worker-licence-update-terms-authenticated', diff --git a/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/shared/common-step-components/common-access-code-anonymous.component.ts b/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/shared/common-step-components/common-access-code-anonymous.component.ts index e3b39d90d..1f181c057 100644 --- a/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/shared/common-step-components/common-access-code-anonymous.component.ts +++ b/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/shared/common-step-components/common-access-code-anonymous.component.ts @@ -10,7 +10,7 @@ import { } from '@app/api/models'; import { SPD_CONSTANTS } from '@app/core/constants/constants'; import { WorkerApplicationService } from '@app/core/services/worker-application.service'; -import { PersonalLicenceApplicationRoutes } from '@app/modules/personal-licence-application/personal-licence-application-routing.module'; +import { PersonalLicenceApplicationRoutes } from '@app/modules/personal-licence-application/personal-licence-application-routes'; import { FormErrorStateMatcher } from '@app/shared/directives/form-error-state-matcher.directive'; import { OptionsPipe } from '@app/shared/pipes/options.pipe'; import { PermitApplicationService } from '@core/services/permit-application.service'; diff --git a/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/shared/licence-active-swl-permit-licences.component.ts b/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/shared/licence-active-swl-permit-licences.component.ts index 6a497439c..63c602f2f 100644 --- a/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/shared/licence-active-swl-permit-licences.component.ts +++ b/src/Spd.Presentation.Licensing/ClientApp/src/app/modules/personal-licence-application/components/shared/licence-active-swl-permit-licences.component.ts @@ -24,12 +24,18 @@ import { MainLicenceResponse } from '@app/core/services/application.service';
Licence Number
-
{{ licence.licenceNumber }}
+
{{ licence.licenceNumber }}
-
+
Licence Term
{{ licence.licenceTermCode | options : 'LicenceTermTypes' }}
+
+
Expiry Date
+
+ {{ licence.licenceExpiryDate | formatDate : constants.date.formalDateFormat }} +
+
check_circle @@ -46,13 +52,7 @@ import { MainLicenceResponse } from '@app/core/services/application.service'; " >
-
-
Expiry Date
-
- {{ licence.licenceExpiryDate | formatDate : constants.date.formalDateFormat }} -
-
-
+
Licence Categories
    @@ -66,16 +66,16 @@ import { MainLicenceResponse } from '@app/core/services/application.service';
    Dog Authorization
    - + Authorized to use dogs Not authorized to use dogs
    -
    +
    Restraint Authorization
    - + Authorized to use restraints Not authorized to use restraints @@ -125,13 +125,7 @@ import { MainLicenceResponse } from '@app/core/services/application.service';
    -
    -
    Expiry Date
    -
    - {{ licence.licenceExpiryDate | formatDate : constants.date.formalDateFormat }} -
    -
    -
    +
    -
    +
    Country @@ -106,7 +106,8 @@ export class Address { export class AddressAutocompleteComponent implements OnInit { @Output() autocompleteAddress: EventEmitter
    = new EventEmitter
    (); @Output() enterAddressManually: EventEmitter = new EventEmitter(); - @Input() isWizardStep = true; + // @Input() isWizardStep = true; + @Input() isWideView = false; form!: FormGroup; addressAutocompleteFields!: AddressFindResponse[]; diff --git a/src/Spd.Presentation.Licensing/ClientApp/src/app/shared/components/address.component.ts b/src/Spd.Presentation.Licensing/ClientApp/src/app/shared/components/address.component.ts index 32af2d009..2f25294ba 100644 --- a/src/Spd.Presentation.Licensing/ClientApp/src/app/shared/components/address.component.ts +++ b/src/Spd.Presentation.Licensing/ClientApp/src/app/shared/components/address.component.ts @@ -8,88 +8,81 @@ import { Address } from './address-autocomplete.component'; selector: 'app-address', template: ` -
    -
    - - - - This is required - -
    -
    + + + + + This is required + + -
    -
    -
    -
    -
    - -
    Address information
    - - Street Address 1 - - This is required - -
    +
    +
    + +
    + + Street Address 1 + + This is required + +
    -
    - - Street Address 2 (optional) - - -
    -
    - - City - - This is required - -
    -
    - - Postal/Zip Code - - This is required - -
    -
    - - Province/State - - This is required - This must be '{{ provinceOfBC }}' - -
    -
    - - Country - - This is required - This must be 'Canada' - -
    -
    -
    +
    + + Street Address 2 (optional) + + +
    +
    + + City + + This is required + +
    +
    + + Postal/Zip Code + + This is required + +
    +
    + + Province/State + + This is required + This must be '{{ provinceOfBC }}' + +
    +
    + + Country + + This is required + This must be 'Canada' + +
    -
    + `, styles: [], @@ -99,7 +92,7 @@ export class AddressComponent implements OnInit { provinceOfBC = SPD_CONSTANTS.address.provinceBC; @Input() form!: FormGroup; - @Input() isWizardStep = true; + @Input() isWideView = false; @Input() isReadonly = false; ngOnInit(): void { diff --git a/src/Spd.Presentation.Licensing/ClientApp/src/app/shared/components/collection-notice.component.ts b/src/Spd.Presentation.Licensing/ClientApp/src/app/shared/components/collection-notice.component.ts index 793eb28fc..df89a4748 100644 --- a/src/Spd.Presentation.Licensing/ClientApp/src/app/shared/components/collection-notice.component.ts +++ b/src/Spd.Presentation.Licensing/ClientApp/src/app/shared/components/collection-notice.component.ts @@ -3,7 +3,7 @@ import { Component, Input } from '@angular/core'; @Component({ selector: 'app-collection-notice', template: ` - +
    COLLECTION NOTICE
    All information regarding this application is collected under the {{ collectionNoticeActName }} and its Regulation and will be used for that purpose. The use of this information will comply with the