@hmcts/rpx-xui-common-lib 3.2.29 → 3.2.30-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 { MatOptionSelectionChange } from '@angular/material/core';
|
|
11
10
|
import { HttpClient } from '@angular/common/http';
|
|
12
|
-
import * as
|
|
11
|
+
import * as i69 from '@angular/material/autocomplete';
|
|
13
12
|
import { MatAutocompleteSelectedEvent } from '@angular/material/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/tabs';
|
|
15
|
+
import * as i71 from '@angular/material/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
|
|
|
@@ -1077,14 +1077,12 @@ interface ServiceMessages {
|
|
|
1077
1077
|
}
|
|
1078
1078
|
|
|
1079
1079
|
declare class ServiceMessageComponent {
|
|
1080
|
-
private sanitizer;
|
|
1081
1080
|
message_en: string;
|
|
1082
1081
|
message_cy?: string;
|
|
1083
1082
|
key: ServiceMessages;
|
|
1084
1083
|
hideMessage: EventEmitter<ServiceMessages>;
|
|
1085
|
-
constructor(
|
|
1084
|
+
constructor();
|
|
1086
1085
|
onHideMessageEvent(key: ServiceMessages): void;
|
|
1087
|
-
sanitizeHtml(content: string | null | undefined): string;
|
|
1088
1086
|
static ɵfac: i0.ɵɵFactoryDeclaration<ServiceMessageComponent, never>;
|
|
1089
1087
|
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>;
|
|
1090
1088
|
}
|
|
@@ -1219,10 +1217,8 @@ declare class TcDisplayPlainComponent {
|
|
|
1219
1217
|
}
|
|
1220
1218
|
|
|
1221
1219
|
declare class TermsAndConditionsComponent {
|
|
1222
|
-
private readonly sanitizer;
|
|
1223
1220
|
document: TCDocument;
|
|
1224
|
-
constructor(
|
|
1225
|
-
sanitizeHtml(content: string | null | undefined): string;
|
|
1221
|
+
constructor();
|
|
1226
1222
|
static ɵfac: i0.ɵɵFactoryDeclaration<TermsAndConditionsComponent, never>;
|
|
1227
1223
|
static ɵcmp: i0.ɵɵComponentDeclaration<TermsAndConditionsComponent, "xuilib-terms-and-conditions", never, { "document": { "alias": "document"; "required": false; }; }, {}, never, never, false, never>;
|
|
1228
1224
|
}
|
|
@@ -1756,6 +1752,28 @@ declare class LetDirective<T = any> {
|
|
|
1756
1752
|
static ɵdir: i0.ɵɵDirectiveDeclaration<LetDirective<any>, "[xuilibLet]", never, { "xuilibLet": { "alias": "xuilibLet"; "required": false; }; }, {}, never, never, false, never>;
|
|
1757
1753
|
}
|
|
1758
1754
|
|
|
1755
|
+
declare class SafeHtmlDirective implements OnChanges {
|
|
1756
|
+
private readonly elementRef;
|
|
1757
|
+
private readonly renderer;
|
|
1758
|
+
private readonly document;
|
|
1759
|
+
xuilibSafeHtml: string | null | undefined;
|
|
1760
|
+
private readonly allowedAttributes;
|
|
1761
|
+
private readonly allowedTags;
|
|
1762
|
+
constructor(elementRef: ElementRef<HTMLElement>, renderer: Renderer2, document: Document);
|
|
1763
|
+
ngOnChanges(): void;
|
|
1764
|
+
private clearContent;
|
|
1765
|
+
/**
|
|
1766
|
+
* Rebuild the DOM instead of assigning sanitized content to innerHTML.
|
|
1767
|
+
*
|
|
1768
|
+
* DOMPurify performs the security sanitisation. Rebuilding the DOM also
|
|
1769
|
+
* avoids introducing another innerHTML sink that security tooling may flag.
|
|
1770
|
+
*/
|
|
1771
|
+
private createSafeNode;
|
|
1772
|
+
private createSafeFragment;
|
|
1773
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SafeHtmlDirective, never>;
|
|
1774
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SafeHtmlDirective, "[xuilibSafeHtml]", never, { "xuilibSafeHtml": { "alias": "xuilibSafeHtml"; "required": false; }; }, {}, never, never, false, never>;
|
|
1775
|
+
}
|
|
1776
|
+
|
|
1759
1777
|
declare class GovUkErrorMessageComponent {
|
|
1760
1778
|
constructor();
|
|
1761
1779
|
config: GovUiConfigModel;
|
|
@@ -2060,11 +2078,11 @@ declare class CapitalizePipe implements PipeTransform {
|
|
|
2060
2078
|
static ɵpipe: i0.ɵɵPipeDeclaration<CapitalizePipe, "capitalize", false>;
|
|
2061
2079
|
}
|
|
2062
2080
|
|
|
2063
|
-
declare const COMMON_COMPONENTS: (typeof CheckboxListComponent | typeof DueDateComponent | typeof GenericFilterComponent | typeof LoadingSpinnerComponent | typeof SelectedCaseConfirmComponent | typeof SelectedCaseListComponent | typeof SelectedCaseComponent | typeof
|
|
2081
|
+
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)[];
|
|
2064
2082
|
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)[];
|
|
2065
2083
|
declare class ExuiCommonLibModule {
|
|
2066
2084
|
static ɵfac: i0.ɵɵFactoryDeclaration<ExuiCommonLibModule, never>;
|
|
2067
|
-
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
|
|
2085
|
+
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.MatAutocompleteModule, typeof i70.MatTabsModule, typeof i71.MatInputModule, 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]>;
|
|
2068
2086
|
static ɵinj: i0.ɵɵInjectorDeclaration<ExuiCommonLibModule>;
|
|
2069
2087
|
}
|
|
2070
2088
|
|
|
@@ -2083,5 +2101,5 @@ declare function radioGroupValidator(): ValidatorFn;
|
|
|
2083
2101
|
declare const windowToken: InjectionToken<unknown>;
|
|
2084
2102
|
declare function windowProvider(): Window & typeof globalThis;
|
|
2085
2103
|
|
|
2086
|
-
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 };
|
|
2104
|
+
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 };
|
|
2087
2105
|
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.30-innerHtml-update",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/animations": "^20.3.35",
|
|
6
6
|
"@angular/cdk": "^20.2.14",
|
|
@@ -42,6 +42,7 @@
|
|
|
42
42
|
}
|
|
43
43
|
],
|
|
44
44
|
"dependencies": {
|
|
45
|
+
"dompurify": "^3.5.0",
|
|
45
46
|
"govuk-frontend": "5.13.0",
|
|
46
47
|
"tslib": "^2.0.0"
|
|
47
48
|
},
|