@hmcts/rpx-xui-common-lib 3.2.18-innerHtml-update → 3.2.19
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,
|
|
3
|
-
import * as
|
|
2
|
+
import { OnInit, OnChanges, AfterContentChecked, ChangeDetectorRef, EventEmitter, OnDestroy, SimpleChanges, AfterContentInit, ElementRef, ViewContainerRef, TemplateRef, AfterViewInit, PipeTransform, InjectionToken } from '@angular/core';
|
|
3
|
+
import * as i66 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
|
|
7
|
+
import { Title, DomSanitizer } from '@angular/platform-browser';
|
|
8
|
+
import * as i67 from '@angular/router';
|
|
8
9
|
import { Router, ActivatedRouteSnapshot, UrlTree } from '@angular/router';
|
|
9
10
|
import { MatLegacyOptionSelectionChange } from '@angular/material/legacy-core';
|
|
10
11
|
import { HttpClient } from '@angular/common/http';
|
|
11
|
-
import * as
|
|
12
|
+
import * as i68 from '@angular/material/legacy-autocomplete';
|
|
12
13
|
import { MatLegacyAutocompleteSelectedEvent } from '@angular/material/legacy-autocomplete';
|
|
13
|
-
import * as
|
|
14
|
-
import * as
|
|
15
|
-
import * as
|
|
16
|
-
import * as
|
|
17
|
-
import * as
|
|
18
|
-
import { Title } from '@angular/platform-browser';
|
|
14
|
+
import * as i65 from '@angular/common';
|
|
15
|
+
import * as i69 from '@angular/material/legacy-tabs';
|
|
16
|
+
import * as i70 from '@angular/material/legacy-input';
|
|
17
|
+
import * as i71 from 'ngx-pagination';
|
|
18
|
+
import * as i72 from 'rpx-xui-translation';
|
|
19
19
|
import { Idle } from '@ng-idle/core';
|
|
20
20
|
import { Keepalive } from '@ng-idle/keepalive';
|
|
21
21
|
|
|
@@ -1076,12 +1076,14 @@ interface ServiceMessages {
|
|
|
1076
1076
|
}
|
|
1077
1077
|
|
|
1078
1078
|
declare class ServiceMessageComponent {
|
|
1079
|
+
private sanitizer;
|
|
1079
1080
|
message_en: string;
|
|
1080
1081
|
message_cy?: string;
|
|
1081
1082
|
key: ServiceMessages;
|
|
1082
1083
|
hideMessage: EventEmitter<ServiceMessages>;
|
|
1083
|
-
constructor();
|
|
1084
|
+
constructor(sanitizer: DomSanitizer);
|
|
1084
1085
|
onHideMessageEvent(key: ServiceMessages): void;
|
|
1086
|
+
sanitizeHtml(content: string | null | undefined): string;
|
|
1085
1087
|
static ɵfac: i0.ɵɵFactoryDeclaration<ServiceMessageComponent, never>;
|
|
1086
1088
|
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>;
|
|
1087
1089
|
}
|
|
@@ -1216,8 +1218,10 @@ declare class TcDisplayPlainComponent {
|
|
|
1216
1218
|
}
|
|
1217
1219
|
|
|
1218
1220
|
declare class TermsAndConditionsComponent {
|
|
1221
|
+
private readonly sanitizer;
|
|
1219
1222
|
document: TCDocument;
|
|
1220
|
-
constructor();
|
|
1223
|
+
constructor(sanitizer: DomSanitizer);
|
|
1224
|
+
sanitizeHtml(content: string | null | undefined): string;
|
|
1221
1225
|
static ɵfac: i0.ɵɵFactoryDeclaration<TermsAndConditionsComponent, never>;
|
|
1222
1226
|
static ɵcmp: i0.ɵɵComponentDeclaration<TermsAndConditionsComponent, "xuilib-terms-and-conditions", never, { "document": { "alias": "document"; "required": false; }; }, {}, never, never, false, never>;
|
|
1223
1227
|
}
|
|
@@ -1751,28 +1755,6 @@ declare class LetDirective<T = any> {
|
|
|
1751
1755
|
static ɵdir: i0.ɵɵDirectiveDeclaration<LetDirective<any>, "[xuilibLet]", never, { "xuilibLet": { "alias": "xuilibLet"; "required": false; }; }, {}, never, never, false, never>;
|
|
1752
1756
|
}
|
|
1753
1757
|
|
|
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
|
-
|
|
1776
1758
|
declare class GovUkErrorMessageComponent {
|
|
1777
1759
|
constructor();
|
|
1778
1760
|
config: GovUiConfigModel;
|
|
@@ -2074,11 +2056,11 @@ declare class CapitalizePipe implements PipeTransform {
|
|
|
2074
2056
|
static ɵpipe: i0.ɵɵPipeDeclaration<CapitalizePipe, "capitalize", false>;
|
|
2075
2057
|
}
|
|
2076
2058
|
|
|
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
|
|
2059
|
+
declare const COMMON_COMPONENTS: (typeof CheckboxListComponent | typeof DueDateComponent | typeof GenericFilterComponent | typeof LoadingSpinnerComponent | typeof SelectedCaseConfirmComponent | typeof SelectedCaseListComponent | typeof SelectedCaseComponent | typeof ServiceMessageComponent | typeof ServiceMessagesComponent | typeof ShareCaseConfirmComponent | typeof ShareCaseComponent | typeof TcDisplayHtmlComponent | typeof TermsAndConditionsComponent | typeof CookieBannerComponent | typeof SearchLocationComponent | typeof SearchWorkTypeComponent | typeof SearchVenueComponent | typeof SearchJudicialsComponent | typeof FindPersonComponent | typeof FindTaskNameComponent | typeof WriteAddressFieldComponent | typeof FeatureToggleDirective | typeof LetDirective)[];
|
|
2078
2060
|
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)[];
|
|
2079
2061
|
declare class ExuiCommonLibModule {
|
|
2080
2062
|
static ɵfac: i0.ɵɵFactoryDeclaration<ExuiCommonLibModule, never>;
|
|
2081
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ExuiCommonLibModule, [typeof ExuiPageWrapperComponent, typeof TermsAndConditionsComponent, typeof TcDisplayHtmlComponent, typeof TcDisplayPlainComponent, typeof TcConfirmComponent, typeof ContactDetailsComponent, typeof FeatureToggleDirective, typeof LetDirective, typeof
|
|
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 i65.CommonModule, typeof i66.FormsModule, typeof i66.ReactiveFormsModule, typeof i67.RouterModule, typeof i68.MatLegacyAutocompleteModule, typeof i69.MatLegacyTabsModule, typeof i70.MatLegacyInputModule, typeof i71.NgxPaginationModule, typeof i72.RpxTranslationModule], [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 i71.PaginatePipe, typeof CapitalizePipe]>;
|
|
2082
2064
|
static ɵinj: i0.ɵɵInjectorDeclaration<ExuiCommonLibModule>;
|
|
2083
2065
|
}
|
|
2084
2066
|
|
|
@@ -2097,5 +2079,5 @@ declare function radioGroupValidator(): ValidatorFn;
|
|
|
2097
2079
|
declare const windowToken: InjectionToken<unknown>;
|
|
2098
2080
|
declare function windowProvider(): Window & typeof globalThis;
|
|
2099
2081
|
|
|
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,
|
|
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 };
|
|
2101
2083
|
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.19",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/animations": "^20.3.18",
|
|
6
6
|
"@angular/cdk": "16.2.0",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"@ng-idle/keepalive": "^16.0.0",
|
|
18
18
|
"launchdarkly-js-client-sdk": "^3.3.0",
|
|
19
19
|
"ngx-pagination": "^3.2.1",
|
|
20
|
-
"rpx-xui-translation": "1.2.
|
|
20
|
+
"rpx-xui-translation": "1.2.14",
|
|
21
21
|
"rxjs": "^7.8.1",
|
|
22
22
|
"zone.js": "~0.15.1"
|
|
23
23
|
},
|
|
@@ -43,8 +43,7 @@
|
|
|
43
43
|
],
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@hmcts/frontend": "0.0.50-alpha",
|
|
46
|
-
"
|
|
47
|
-
"govuk-frontend": "4.9.0",
|
|
46
|
+
"govuk-frontend": "^4.9.0",
|
|
48
47
|
"tslib": "^2.0.0"
|
|
49
48
|
},
|
|
50
49
|
"module": "fesm2022/hmcts-rpx-xui-common-lib.mjs",
|