@hmcts/rpx-xui-common-lib 3.2.11 → 3.2.12-pofcc-156

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
@@ -296,6 +296,7 @@ declare enum PersonRole {
296
296
  LEGAL_OPERATIONS = "Legal Ops",
297
297
  ADMIN = "Admin",
298
298
  CTSC = "CTSC",
299
+ ENFORCEMENT = "Enforcement",
299
300
  ALL = "All"
300
301
  }
301
302
  declare enum RoleCategory {
@@ -305,8 +306,11 @@ declare enum RoleCategory {
305
306
  CTSC = "CTSC",
306
307
  PROFESSIONAL = "PROFESSIONAL",
307
308
  CITIZEN = "CITIZEN",
309
+ ENFORCEMENT = "ENFORCEMENT",
308
310
  ALL = "ALL"
309
311
  }
312
+ declare function getRoleCategory(personRole: PersonRole): RoleCategory;
313
+ declare function getPersonRole(roleCategory: string): PersonRole;
310
314
 
311
315
  type FilterFieldType = 'group-title' | 'checkbox' | 'radio' | 'select' | 'find-person' | 'find-location' | 'find-work-type' | 'checkbox-large' | 'find-service' | 'text-input' | 'email-input' | 'group-select' | 'nested-checkbox' | 'find-task-name';
312
316
  type FilterPersistence = 'local' | 'session' | 'memory';
@@ -1524,6 +1528,9 @@ declare class FindAPersonService {
1524
1528
  mapCaseworkers(caseworkers: Caseworker[], roleCategory: string): Person[];
1525
1529
  searchInCaseworkers(caseworkers: Caseworker[], searchOptions: SearchOptions): Person[];
1526
1530
  searchJudicial(value: string, serviceId: string): Observable<JudicialUserModel[]>;
1531
+ findByPersonRole(searchTerm: string, personRole: PersonRole, selectedPersons: Person[], services: string, userIncluded?: boolean, assignedUser?: string | string[]): Observable<Person[]>;
1532
+ private findJudicialOrCTSCPeople;
1533
+ private findCaseworkersOrAdminsOrCtsc;
1527
1534
  static ɵfac: i0.ɵɵFactoryDeclaration<FindAPersonService, never>;
1528
1535
  static ɵprov: i0.ɵɵInjectableDeclaration<FindAPersonService>;
1529
1536
  }
@@ -2078,5 +2085,5 @@ declare function radioGroupValidator(): ValidatorFn;
2078
2085
  declare const windowToken: InjectionToken<unknown>;
2079
2086
  declare function windowProvider(): Window & typeof globalThis;
2080
2087
 
2081
- 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 };
2088
+ 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, getPersonRole, getRoleCategory, radioGroupValidator, windowProvider, windowToken };
2082
2089
  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,10 +1,25 @@
1
1
  {
2
2
  "name": "@hmcts/rpx-xui-common-lib",
3
- "version": "3.2.11",
3
+ "version": "3.2.12-pofcc-156",
4
4
  "peerDependencies": {
5
+ "@angular/animations": "^20.3.18",
6
+ "@angular/cdk": "16.2.0",
7
+ "@angular/common": "^20.3.18",
8
+ "@angular/compiler": "^20.3.18",
9
+ "@angular/core": "^20.3.18",
10
+ "@angular/forms": "^20.3.18",
11
+ "@angular/localize": "^20.3.18",
12
+ "@angular/material": "16.2.0",
13
+ "@angular/platform-browser": "^20.3.18",
14
+ "@angular/platform-browser-dynamic": "^20.3.18",
15
+ "@angular/router": "^20.3.18",
16
+ "@ng-idle/core": "^16.0.0",
17
+ "@ng-idle/keepalive": "^16.0.0",
5
18
  "launchdarkly-js-client-sdk": "^3.3.0",
6
19
  "ngx-pagination": "^3.2.1",
7
- "rpx-xui-translation": "1.2.4"
20
+ "rpx-xui-translation": "1.2.4",
21
+ "rxjs": "^7.8.1",
22
+ "zone.js": "~0.15.1"
8
23
  },
9
24
  "publishConfig": {
10
25
  "access": "public"
@@ -27,6 +42,8 @@
27
42
  }
28
43
  ],
29
44
  "dependencies": {
45
+ "@hmcts/frontend": "0.0.50-alpha",
46
+ "govuk-frontend": "4.9.0",
30
47
  "tslib": "^2.0.0"
31
48
  },
32
49
  "module": "fesm2022/hmcts-rpx-xui-common-lib.mjs",
@@ -44,4 +61,4 @@
44
61
  "scripts": {
45
62
  "prepublishOnly": "node --eval \"console.error('ERROR: Trying to publish a package that has been compiled in full compilation mode. This is not allowed.\\nPlease delete and rebuild the package with partial compilation mode, before attempting to publish.\\n')\" && exit 1"
46
63
  }
47
- }
64
+ }