@hmcts/rpx-xui-common-lib 3.2.17 → 3.2.18-innerHtml-update
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.ts
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { OnInit, OnChanges, AfterContentChecked, ChangeDetectorRef, EventEmitter, OnDestroy, SimpleChanges, AfterContentInit, ElementRef, ViewContainerRef, TemplateRef, AfterViewInit, PipeTransform, InjectionToken } from '@angular/core';
|
|
3
|
-
import * as
|
|
2
|
+
import { OnInit, OnChanges, AfterContentChecked, ChangeDetectorRef, EventEmitter, OnDestroy, SimpleChanges, AfterContentInit, ElementRef, ViewContainerRef, TemplateRef, Renderer2, AfterViewInit, PipeTransform, InjectionToken } from '@angular/core';
|
|
3
|
+
import * as i67 from '@angular/forms';
|
|
4
4
|
import { FormGroup, FormBuilder, FormControl, AbstractControl, ValidatorFn } from '@angular/forms';
|
|
5
5
|
import * as rxjs from 'rxjs';
|
|
6
6
|
import { Observable, BehaviorSubject, Subscription, Subject } from 'rxjs';
|
|
7
|
-
import
|
|
8
|
-
import * as i67 from '@angular/router';
|
|
7
|
+
import * as i68 from '@angular/router';
|
|
9
8
|
import { Router, ActivatedRouteSnapshot, UrlTree } from '@angular/router';
|
|
10
9
|
import { MatLegacyOptionSelectionChange } from '@angular/material/legacy-core';
|
|
11
10
|
import { HttpClient } from '@angular/common/http';
|
|
12
|
-
import * as
|
|
11
|
+
import * as i69 from '@angular/material/legacy-autocomplete';
|
|
13
12
|
import { MatLegacyAutocompleteSelectedEvent } from '@angular/material/legacy-autocomplete';
|
|
14
|
-
import * as
|
|
15
|
-
import * as
|
|
16
|
-
import * as
|
|
17
|
-
import * as
|
|
18
|
-
import * as
|
|
13
|
+
import * as i66 from '@angular/common';
|
|
14
|
+
import * as i70 from '@angular/material/legacy-tabs';
|
|
15
|
+
import * as i71 from '@angular/material/legacy-input';
|
|
16
|
+
import * as i72 from 'ngx-pagination';
|
|
17
|
+
import * as i73 from 'rpx-xui-translation';
|
|
18
|
+
import { Title } from '@angular/platform-browser';
|
|
19
19
|
import { Idle } from '@ng-idle/core';
|
|
20
20
|
import { Keepalive } from '@ng-idle/keepalive';
|
|
21
21
|
|
|
@@ -1076,14 +1076,12 @@ interface ServiceMessages {
|
|
|
1076
1076
|
}
|
|
1077
1077
|
|
|
1078
1078
|
declare class ServiceMessageComponent {
|
|
1079
|
-
private sanitizer;
|
|
1080
1079
|
message_en: string;
|
|
1081
1080
|
message_cy?: string;
|
|
1082
1081
|
key: ServiceMessages;
|
|
1083
1082
|
hideMessage: EventEmitter<ServiceMessages>;
|
|
1084
|
-
constructor(
|
|
1083
|
+
constructor();
|
|
1085
1084
|
onHideMessageEvent(key: ServiceMessages): void;
|
|
1086
|
-
sanitizeHtml(content: string | null | undefined): string;
|
|
1087
1085
|
static ɵfac: i0.ɵɵFactoryDeclaration<ServiceMessageComponent, never>;
|
|
1088
1086
|
static ɵcmp: i0.ɵɵComponentDeclaration<ServiceMessageComponent, "xuilib-service-message", never, { "message_en": { "alias": "message_en"; "required": false; }; "message_cy": { "alias": "message_cy"; "required": false; }; "key": { "alias": "key"; "required": false; }; }, { "hideMessage": "hideMessage"; }, never, never, false, never>;
|
|
1089
1087
|
}
|
|
@@ -1218,10 +1216,8 @@ declare class TcDisplayPlainComponent {
|
|
|
1218
1216
|
}
|
|
1219
1217
|
|
|
1220
1218
|
declare class TermsAndConditionsComponent {
|
|
1221
|
-
private readonly sanitizer;
|
|
1222
1219
|
document: TCDocument;
|
|
1223
|
-
constructor(
|
|
1224
|
-
sanitizeHtml(content: string | null | undefined): string;
|
|
1220
|
+
constructor();
|
|
1225
1221
|
static ɵfac: i0.ɵɵFactoryDeclaration<TermsAndConditionsComponent, never>;
|
|
1226
1222
|
static ɵcmp: i0.ɵɵComponentDeclaration<TermsAndConditionsComponent, "xuilib-terms-and-conditions", never, { "document": { "alias": "document"; "required": false; }; }, {}, never, never, false, never>;
|
|
1227
1223
|
}
|
|
@@ -1755,6 +1751,28 @@ declare class LetDirective<T = any> {
|
|
|
1755
1751
|
static ɵdir: i0.ɵɵDirectiveDeclaration<LetDirective<any>, "[xuilibLet]", never, { "xuilibLet": { "alias": "xuilibLet"; "required": false; }; }, {}, never, never, false, never>;
|
|
1756
1752
|
}
|
|
1757
1753
|
|
|
1754
|
+
declare class SafeHtmlDirective implements OnChanges {
|
|
1755
|
+
private readonly elementRef;
|
|
1756
|
+
private readonly renderer;
|
|
1757
|
+
private readonly document;
|
|
1758
|
+
xuilibSafeHtml: string | null | undefined;
|
|
1759
|
+
private readonly allowedAttributes;
|
|
1760
|
+
private readonly allowedTags;
|
|
1761
|
+
constructor(elementRef: ElementRef<HTMLElement>, renderer: Renderer2, document: Document);
|
|
1762
|
+
ngOnChanges(): void;
|
|
1763
|
+
private clearContent;
|
|
1764
|
+
/**
|
|
1765
|
+
* Rebuild the DOM instead of assigning sanitized content to innerHTML.
|
|
1766
|
+
*
|
|
1767
|
+
* DOMPurify performs the security sanitisation. Rebuilding the DOM also
|
|
1768
|
+
* avoids introducing another innerHTML sink that security tooling may flag.
|
|
1769
|
+
*/
|
|
1770
|
+
private createSafeNode;
|
|
1771
|
+
private createSafeFragment;
|
|
1772
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SafeHtmlDirective, never>;
|
|
1773
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SafeHtmlDirective, "[xuilibSafeHtml]", never, { "xuilibSafeHtml": { "alias": "xuilibSafeHtml"; "required": false; }; }, {}, never, never, false, never>;
|
|
1774
|
+
}
|
|
1775
|
+
|
|
1758
1776
|
declare class GovUkErrorMessageComponent {
|
|
1759
1777
|
constructor();
|
|
1760
1778
|
config: GovUiConfigModel;
|
|
@@ -2056,11 +2074,11 @@ declare class CapitalizePipe implements PipeTransform {
|
|
|
2056
2074
|
static ɵpipe: i0.ɵɵPipeDeclaration<CapitalizePipe, "capitalize", false>;
|
|
2057
2075
|
}
|
|
2058
2076
|
|
|
2059
|
-
declare const COMMON_COMPONENTS: (typeof CheckboxListComponent | typeof DueDateComponent | typeof GenericFilterComponent | typeof LoadingSpinnerComponent | typeof SelectedCaseConfirmComponent | typeof SelectedCaseListComponent | typeof SelectedCaseComponent | typeof
|
|
2077
|
+
declare const COMMON_COMPONENTS: (typeof CheckboxListComponent | typeof DueDateComponent | typeof GenericFilterComponent | typeof LoadingSpinnerComponent | typeof SelectedCaseConfirmComponent | typeof SelectedCaseListComponent | typeof SelectedCaseComponent | typeof ServiceMessagesComponent | typeof ShareCaseConfirmComponent | typeof ShareCaseComponent | typeof TcDisplayHtmlComponent | typeof CookieBannerComponent | typeof SearchLocationComponent | typeof SearchWorkTypeComponent | typeof SearchVenueComponent | typeof SearchJudicialsComponent | typeof FindPersonComponent | typeof FindTaskNameComponent | typeof WriteAddressFieldComponent | typeof FeatureToggleDirective | typeof LetDirective | typeof SafeHtmlDirective)[];
|
|
2060
2078
|
declare const GOV_UI_COMPONENTS: (typeof GovUkErrorMessageComponent | typeof GovUkFormGroupWrapperComponent | typeof GovUkLabelComponent | typeof GovUkRadioComponent | typeof GovUkRadiosComponent | typeof GovukTableComponent | typeof HmctsBannerComponent | typeof HmctsErrorSummaryComponent | typeof HmctsIdentityBarComponent | typeof HmctsMainWrapperComponent | typeof HmctsPaginationComponent | typeof HmctsPrimaryNavigationComponent | typeof HmctsSubNavigationComponent | typeof RemoveHostDirective)[];
|
|
2061
2079
|
declare class ExuiCommonLibModule {
|
|
2062
2080
|
static ɵfac: i0.ɵɵFactoryDeclaration<ExuiCommonLibModule, never>;
|
|
2063
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ExuiCommonLibModule, [typeof ExuiPageWrapperComponent, typeof TermsAndConditionsComponent, typeof TcDisplayHtmlComponent, typeof TcDisplayPlainComponent, typeof TcConfirmComponent, typeof ContactDetailsComponent, typeof FeatureToggleDirective, typeof LetDirective, typeof HmctsSessionDialogComponent, typeof UserListComponent, typeof UserDetailsComponent, typeof InviteUserPermissionComponent, typeof InviteUserFormComponent, typeof ShareCaseComponent, typeof ShareCaseConfirmComponent, typeof SelectedCaseListComponent, typeof SelectedCaseComponent, typeof SelectedCaseConfirmComponent, typeof UserSelectComponent, typeof TabComponent, typeof AccessibilityComponent, typeof DueDateComponent, typeof CheckboxListComponent, typeof ServiceMessageComponent, typeof ServiceMessagesComponent, typeof LoadingSpinnerComponent, typeof GenericFilterComponent, typeof CookieBannerComponent, typeof FindPersonComponent, typeof SearchJudicialsComponent, typeof FindLocationComponent, typeof FindTaskNameComponent, typeof SearchLocationComponent, typeof FindServiceComponent, typeof SearchServiceComponent, typeof FindWorkTypeComponent, typeof SearchWorkTypeComponent, typeof SearchVenueComponent, typeof PaginationComponent, typeof WriteAddressFieldComponent, typeof WriteAddressInputsComponent, typeof HmctsIdentityBarComponent, typeof HmctsPaginationComponent, typeof HmctsSubNavigationComponent, typeof HmctsPrimaryNavigationComponent, typeof HmctsErrorSummaryComponent, typeof HmctsMainWrapperComponent, typeof HmctsBannerComponent, typeof GovukTableComponent, typeof GovUkInputComponent, typeof GovUkCheckboxComponent, typeof GovUkFormGroupWrapperComponent, typeof GovUkLabelComponent, typeof GovUkErrorMessageComponent, typeof GovUkFieldsetComponent, typeof GovUkDateComponent, typeof GovUkCheckboxesComponent, typeof GovUkRadioComponent, typeof GovUkRadiosComponent, typeof GovUkSelectComponent, typeof GovUkTextareaComponent, typeof GovUkFileUploadComponent, typeof RemoveHostDirective, typeof CapitalizePipe], [typeof
|
|
2081
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ExuiCommonLibModule, [typeof ExuiPageWrapperComponent, typeof TermsAndConditionsComponent, typeof TcDisplayHtmlComponent, typeof TcDisplayPlainComponent, typeof TcConfirmComponent, typeof ContactDetailsComponent, typeof FeatureToggleDirective, typeof LetDirective, typeof SafeHtmlDirective, typeof HmctsSessionDialogComponent, typeof UserListComponent, typeof UserDetailsComponent, typeof InviteUserPermissionComponent, typeof InviteUserFormComponent, typeof ShareCaseComponent, typeof ShareCaseConfirmComponent, typeof SelectedCaseListComponent, typeof SelectedCaseComponent, typeof SelectedCaseConfirmComponent, typeof UserSelectComponent, typeof TabComponent, typeof AccessibilityComponent, typeof DueDateComponent, typeof CheckboxListComponent, typeof ServiceMessageComponent, typeof ServiceMessagesComponent, typeof LoadingSpinnerComponent, typeof GenericFilterComponent, typeof CookieBannerComponent, typeof FindPersonComponent, typeof SearchJudicialsComponent, typeof FindLocationComponent, typeof FindTaskNameComponent, typeof SearchLocationComponent, typeof FindServiceComponent, typeof SearchServiceComponent, typeof FindWorkTypeComponent, typeof SearchWorkTypeComponent, typeof SearchVenueComponent, typeof PaginationComponent, typeof WriteAddressFieldComponent, typeof WriteAddressInputsComponent, typeof HmctsIdentityBarComponent, typeof HmctsPaginationComponent, typeof HmctsSubNavigationComponent, typeof HmctsPrimaryNavigationComponent, typeof HmctsErrorSummaryComponent, typeof HmctsMainWrapperComponent, typeof HmctsBannerComponent, typeof GovukTableComponent, typeof GovUkInputComponent, typeof GovUkCheckboxComponent, typeof GovUkFormGroupWrapperComponent, typeof GovUkLabelComponent, typeof GovUkErrorMessageComponent, typeof GovUkFieldsetComponent, typeof GovUkDateComponent, typeof GovUkCheckboxesComponent, typeof GovUkRadioComponent, typeof GovUkRadiosComponent, typeof GovUkSelectComponent, typeof GovUkTextareaComponent, typeof GovUkFileUploadComponent, typeof RemoveHostDirective, typeof CapitalizePipe], [typeof i66.CommonModule, typeof i67.FormsModule, typeof i67.ReactiveFormsModule, typeof i68.RouterModule, typeof i69.MatLegacyAutocompleteModule, typeof i70.MatLegacyTabsModule, typeof i71.MatLegacyInputModule, typeof i72.NgxPaginationModule, typeof i73.RpxTranslationModule], [typeof ExuiPageWrapperComponent, typeof TermsAndConditionsComponent, typeof TcDisplayHtmlComponent, typeof TcDisplayPlainComponent, typeof TcConfirmComponent, typeof ContactDetailsComponent, typeof FeatureToggleDirective, typeof LetDirective, typeof SafeHtmlDirective, typeof HmctsSessionDialogComponent, typeof UserListComponent, typeof UserDetailsComponent, typeof InviteUserPermissionComponent, typeof InviteUserFormComponent, typeof ShareCaseComponent, typeof ShareCaseConfirmComponent, typeof SelectedCaseListComponent, typeof SelectedCaseComponent, typeof SelectedCaseConfirmComponent, typeof UserSelectComponent, typeof TabComponent, typeof AccessibilityComponent, typeof DueDateComponent, typeof CheckboxListComponent, typeof ServiceMessageComponent, typeof ServiceMessagesComponent, typeof LoadingSpinnerComponent, typeof GenericFilterComponent, typeof CookieBannerComponent, typeof FindPersonComponent, typeof SearchJudicialsComponent, typeof FindLocationComponent, typeof FindTaskNameComponent, typeof SearchLocationComponent, typeof FindServiceComponent, typeof SearchServiceComponent, typeof FindWorkTypeComponent, typeof SearchWorkTypeComponent, typeof SearchVenueComponent, typeof PaginationComponent, typeof WriteAddressFieldComponent, typeof WriteAddressInputsComponent, typeof HmctsIdentityBarComponent, typeof HmctsPaginationComponent, typeof HmctsSubNavigationComponent, typeof HmctsPrimaryNavigationComponent, typeof HmctsErrorSummaryComponent, typeof HmctsMainWrapperComponent, typeof HmctsBannerComponent, typeof GovukTableComponent, typeof GovUkInputComponent, typeof GovUkCheckboxComponent, typeof GovUkFormGroupWrapperComponent, typeof GovUkLabelComponent, typeof GovUkErrorMessageComponent, typeof GovUkFieldsetComponent, typeof GovUkDateComponent, typeof GovUkCheckboxesComponent, typeof GovUkRadioComponent, typeof GovUkRadiosComponent, typeof GovUkSelectComponent, typeof GovUkTextareaComponent, typeof GovUkFileUploadComponent, typeof RemoveHostDirective, typeof i72.PaginatePipe, typeof CapitalizePipe]>;
|
|
2064
2082
|
static ɵinj: i0.ɵɵInjectorDeclaration<ExuiCommonLibModule>;
|
|
2065
2083
|
}
|
|
2066
2084
|
|
|
@@ -2079,5 +2097,5 @@ declare function radioGroupValidator(): ValidatorFn;
|
|
|
2079
2097
|
declare const windowToken: InjectionToken<unknown>;
|
|
2080
2098
|
declare function windowProvider(): Window & typeof globalThis;
|
|
2081
2099
|
|
|
2082
|
-
export { AccessibilityComponent, AddressMessageEnum, AddressModel, AddressOption, AddressService, AnonymousFeatureUser, BadgeColour, BookingCheckType, COMMON_COMPONENTS, CapitalizePipe, CheckboxListComponent, ContactDetailsComponent, CookieBannerComponent, CookieService, DateBadgeColour, DueDateComponent, ExuiCommonLibModule, ExuiPageWrapperComponent, FeatureToggleDirective, FeatureToggleGuard, FeatureToggleService, FilterService, FindLocationComponent, FindPersonComponent, FindServiceComponent, FindTaskNameComponent, FindWorkTypeComponent, GOV_UI_COMPONENTS, GenericFilterComponent, GoogleAnalyticsService, GoogleTagManagerService, GovUiService, GovUkCheckboxComponent, GovUkCheckboxesComponent, GovUkDateComponent, GovUkErrorMessageComponent, GovUkFieldsetComponent, GovUkFileUploadComponent, GovUkFormGroupWrapperComponent, GovUkInputComponent, GovUkLabelComponent, GovUkRadioComponent, GovUkRadiosComponent, GovUkSelectComponent, GovUkTextareaComponent, GovukTableColumnConfig, GovukTableComponent, HasLoadingState, HmctsBannerComponent, HmctsErrorSummaryComponent, HmctsIdentityBarComponent, HmctsMainWrapperComponent, HmctsPaginationComponent, HmctsPrimaryNavigationComponent, HmctsSessionDialogComponent, HmctsSubNavigationComponent, InviteUserFormComponent, InviteUserPermissionComponent, LaunchDarklyService, LetContext, LetDirective, LoadingService, LoadingSpinnerComponent, LocationService, LoggedInFeatureUser, ManageSessionServices, PaginationComponent, PersonRole, RadioFilterFieldConfig, RefDataService, RemoveHostDirective, RoleCategory, RoleGuard, RoleMatching, RoleService, SECONDS_IN_A_DAY, SearchJudicialsComponent, SearchLocationComponent, SearchServiceComponent, SearchVenueComponent, SearchWorkTypeComponent, SelectedCaseComponent, SelectedCaseConfirmComponent, SelectedCaseListComponent, ServiceMessageComponent, ServiceMessagesComponent, ShareCaseComponent, ShareCaseConfirmComponent, SharedCaseErrorMessages, TabComponent, TaskService, TcConfirmComponent, TcDisplayHtmlComponent, TcDisplayPlainComponent, TermsAndConditionsComponent, TimeoutNotificationsService, UserDetailsComponent, UserListComponent, UserSelectComponent, WriteAddressFieldComponent, WriteAddressInputsComponent, checkboxesBeCheckedValidator, dateValidator, radioGroupValidator, windowProvider, windowToken };
|
|
2100
|
+
export { AccessibilityComponent, AddressMessageEnum, AddressModel, AddressOption, AddressService, AnonymousFeatureUser, BadgeColour, BookingCheckType, COMMON_COMPONENTS, CapitalizePipe, CheckboxListComponent, ContactDetailsComponent, CookieBannerComponent, CookieService, DateBadgeColour, DueDateComponent, ExuiCommonLibModule, ExuiPageWrapperComponent, FeatureToggleDirective, FeatureToggleGuard, FeatureToggleService, FilterService, FindLocationComponent, FindPersonComponent, FindServiceComponent, FindTaskNameComponent, FindWorkTypeComponent, GOV_UI_COMPONENTS, GenericFilterComponent, GoogleAnalyticsService, GoogleTagManagerService, GovUiService, GovUkCheckboxComponent, GovUkCheckboxesComponent, GovUkDateComponent, GovUkErrorMessageComponent, GovUkFieldsetComponent, GovUkFileUploadComponent, GovUkFormGroupWrapperComponent, GovUkInputComponent, GovUkLabelComponent, GovUkRadioComponent, GovUkRadiosComponent, GovUkSelectComponent, GovUkTextareaComponent, GovukTableColumnConfig, GovukTableComponent, HasLoadingState, HmctsBannerComponent, HmctsErrorSummaryComponent, HmctsIdentityBarComponent, HmctsMainWrapperComponent, HmctsPaginationComponent, HmctsPrimaryNavigationComponent, HmctsSessionDialogComponent, HmctsSubNavigationComponent, InviteUserFormComponent, InviteUserPermissionComponent, LaunchDarklyService, LetContext, LetDirective, LoadingService, LoadingSpinnerComponent, LocationService, LoggedInFeatureUser, ManageSessionServices, PaginationComponent, PersonRole, RadioFilterFieldConfig, RefDataService, RemoveHostDirective, RoleCategory, RoleGuard, RoleMatching, RoleService, SECONDS_IN_A_DAY, SafeHtmlDirective, SearchJudicialsComponent, SearchLocationComponent, SearchServiceComponent, SearchVenueComponent, SearchWorkTypeComponent, SelectedCaseComponent, SelectedCaseConfirmComponent, SelectedCaseListComponent, ServiceMessageComponent, ServiceMessagesComponent, ShareCaseComponent, ShareCaseConfirmComponent, SharedCaseErrorMessages, TabComponent, TaskService, TcConfirmComponent, TcDisplayHtmlComponent, TcDisplayPlainComponent, TermsAndConditionsComponent, TimeoutNotificationsService, UserDetailsComponent, UserListComponent, UserSelectComponent, WriteAddressFieldComponent, WriteAddressInputsComponent, checkboxesBeCheckedValidator, dateValidator, radioGroupValidator, windowProvider, windowToken };
|
|
2083
2101
|
export type { Caseworker, CaseworkersByService, CheckboxesModel, ContactDetailsDataModel, ErrorMessagesModel, FeatureUser, FilterConfig, FilterConfigOption, FilterError, FilterFieldConfig, FilterFieldOption, FilterFieldType, FilterPersistence, FilterSetting, GovUiConfigModel, GroupOptions, HmctsErrorMessage, IdleConfigModel, JudicialUserModel, LocationByEPIMMSModel, LocationModel, LocationsByService, Pagination, Person, RefDataHMCTSService, RefDataRegion, Role, Roles, SearchOptions, SharedCase, SubNavigation, TCDocument, TabItem, TimeoutNotificationConfig, User, UserAccessType, UserDetails, WorkType };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hmcts/rpx-xui-common-lib",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.18-innerHtml-update",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/animations": "^20.3.18",
|
|
6
6
|
"@angular/cdk": "16.2.0",
|
|
@@ -43,6 +43,7 @@
|
|
|
43
43
|
],
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@hmcts/frontend": "0.0.50-alpha",
|
|
46
|
+
"dompurify": "^3.4.13",
|
|
46
47
|
"govuk-frontend": "4.9.0",
|
|
47
48
|
"tslib": "^2.0.0"
|
|
48
49
|
},
|