@hmcts/rpx-xui-common-lib 2.1.0-angular-upgrade-11 → 2.1.3-angular-upgrade-11

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.
@@ -4126,164 +4126,6 @@
4126
4126
  { type: i0.ElementRef }
4127
4127
  ]; };
4128
4128
 
4129
- var COMMON_COMPONENTS = [
4130
- ExuiPageWrapperComponent,
4131
- TermsAndConditionsComponent,
4132
- TcDisplayHtmlComponent,
4133
- TcDisplayPlainComponent,
4134
- TcConfirmComponent,
4135
- ContactDetailsComponent,
4136
- FeatureToggleDirective,
4137
- LetDirective,
4138
- HmctsSessionDialogComponent,
4139
- UserListComponent,
4140
- UserDetailsComponent,
4141
- InviteUserPermissionComponent,
4142
- InviteUserFormComponent,
4143
- ShareCaseComponent,
4144
- ShareCaseConfirmComponent,
4145
- SelectedCaseListComponent,
4146
- SelectedCaseComponent,
4147
- SelectedCaseConfirmComponent,
4148
- UserSelectComponent,
4149
- TabComponent,
4150
- AccessibilityComponent,
4151
- DueDateComponent,
4152
- CheckboxListComponent,
4153
- ServiceMessageComponent,
4154
- ServiceMessagesComponent,
4155
- LoadingSpinnerComponent,
4156
- GenericFilterComponent,
4157
- CookieBannerComponent,
4158
- FindPersonComponent,
4159
- SearchJudicialsComponent,
4160
- FindLocationComponent,
4161
- SearchLocationComponent,
4162
- SearchVenueComponent,
4163
- PaginationComponent
4164
- ];
4165
- var GOV_UI_COMPONENTS = [
4166
- HmctsIdentityBarComponent,
4167
- HmctsPaginationComponent,
4168
- HmctsSubNavigationComponent,
4169
- HmctsPrimaryNavigationComponent,
4170
- HmctsErrorSummaryComponent,
4171
- HmctsMainWrapperComponent,
4172
- HmctsBannerComponent,
4173
- GovukTableComponent,
4174
- GovUkInputComponent,
4175
- GovUkCheckboxComponent,
4176
- GovUkFormGroupWrapperComponent,
4177
- GovUkLabelComponent,
4178
- GovUkErrorMessageComponent,
4179
- GovUkFieldsetComponent,
4180
- GovUkDateComponent,
4181
- GovUkCheckboxesComponent,
4182
- GovUkRadioComponent,
4183
- GovUkRadiosComponent,
4184
- GovUkSelectComponent,
4185
- GovUkTextareaComponent,
4186
- GovUkFileUploadComponent,
4187
- RemoveHostDirective
4188
- ];
4189
- var ɵ0 = windowProvider;
4190
- var ExuiCommonLibModule = /** @class */ (function () {
4191
- function ExuiCommonLibModule() {
4192
- }
4193
- return ExuiCommonLibModule;
4194
- }());
4195
- ExuiCommonLibModule.decorators = [
4196
- { type: i0.NgModule, args: [{
4197
- declarations: __spread(COMMON_COMPONENTS, GOV_UI_COMPONENTS),
4198
- imports: [
4199
- i4.CommonModule,
4200
- forms.FormsModule,
4201
- forms.ReactiveFormsModule,
4202
- i1$1.RouterModule.forChild([]),
4203
- autocomplete.MatAutocompleteModule,
4204
- tabs.MatTabsModule,
4205
- input.MatInputModule,
4206
- ngxPagination.NgxPaginationModule
4207
- ],
4208
- providers: [
4209
- { provide: windowToken, useFactory: ɵ0 }
4210
- ],
4211
- exports: __spread(COMMON_COMPONENTS, GOV_UI_COMPONENTS, [
4212
- ngxPagination.PaginatePipe
4213
- ])
4214
- },] }
4215
- ];
4216
-
4217
- var GovUiService = /** @class */ (function () {
4218
- function GovUiService() {
4219
- }
4220
- return GovUiService;
4221
- }());
4222
- GovUiService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function GovUiService_Factory() { return new GovUiService(); }, token: GovUiService, providedIn: "root" });
4223
- GovUiService.decorators = [
4224
- { type: i0.Injectable, args: [{
4225
- providedIn: 'root'
4226
- },] }
4227
- ];
4228
- GovUiService.ctorParameters = function () { return []; };
4229
-
4230
- function checkboxesBeCheckedValidator(minRequired) {
4231
- if (minRequired === void 0) { minRequired = 1; }
4232
- return function validate(formGroup) {
4233
- var checked = 0;
4234
- Object.keys(formGroup.controls).forEach(function (key) {
4235
- var control = formGroup.controls[key];
4236
- if (control.value === true) {
4237
- checked++;
4238
- }
4239
- });
4240
- if (checked < minRequired) {
4241
- return {
4242
- requireOneCheckboxToBeChecked: true,
4243
- };
4244
- }
4245
- return null;
4246
- };
4247
- }
4248
-
4249
- function dateValidator() {
4250
- return function validate(formGroup) {
4251
- var d = new Date(parseInt(formGroup.controls.day.value, 10), parseInt(formGroup.controls.month.value, 10) - 1, parseInt(formGroup.controls.year.value, 10) - 1);
4252
- function isValidDate(val) {
4253
- return val instanceof Date && !isNaN(+d);
4254
- }
4255
- if (!isValidDate(d)) {
4256
- return {
4257
- dateIsInvalid: true,
4258
- };
4259
- }
4260
- return null;
4261
- };
4262
- }
4263
-
4264
- function radioGroupValidator() {
4265
- return function validate(formGroup) {
4266
- if (formGroup.controls) {
4267
- for (var control in formGroup.controls) {
4268
- if (!formGroup.controls[control].valid) {
4269
- return {
4270
- isRadioGroupInvalid: true,
4271
- };
4272
- }
4273
- }
4274
- }
4275
- return null;
4276
- };
4277
- }
4278
-
4279
- /*
4280
- * Public API Surface of gov-ui
4281
- */
4282
-
4283
- /*
4284
- * Public API Surface of gov-ui
4285
- */
4286
-
4287
4129
  var FeatureToggleGuard = /** @class */ (function () {
4288
4130
  function FeatureToggleGuard(featureToggleService, router) {
4289
4131
  this.featureToggleService = featureToggleService;
@@ -4729,6 +4571,178 @@
4729
4571
  * Public API Surface of exui-common-lib
4730
4572
  */
4731
4573
 
4574
+ var COMMON_COMPONENTS = [
4575
+ ExuiPageWrapperComponent,
4576
+ TermsAndConditionsComponent,
4577
+ TcDisplayHtmlComponent,
4578
+ TcDisplayPlainComponent,
4579
+ TcConfirmComponent,
4580
+ ContactDetailsComponent,
4581
+ FeatureToggleDirective,
4582
+ LetDirective,
4583
+ HmctsSessionDialogComponent,
4584
+ UserListComponent,
4585
+ UserDetailsComponent,
4586
+ InviteUserPermissionComponent,
4587
+ InviteUserFormComponent,
4588
+ ShareCaseComponent,
4589
+ ShareCaseConfirmComponent,
4590
+ SelectedCaseListComponent,
4591
+ SelectedCaseComponent,
4592
+ SelectedCaseConfirmComponent,
4593
+ UserSelectComponent,
4594
+ TabComponent,
4595
+ AccessibilityComponent,
4596
+ DueDateComponent,
4597
+ CheckboxListComponent,
4598
+ ServiceMessageComponent,
4599
+ ServiceMessagesComponent,
4600
+ LoadingSpinnerComponent,
4601
+ GenericFilterComponent,
4602
+ CookieBannerComponent,
4603
+ FindPersonComponent,
4604
+ SearchJudicialsComponent,
4605
+ FindLocationComponent,
4606
+ SearchLocationComponent,
4607
+ SearchVenueComponent,
4608
+ PaginationComponent
4609
+ ];
4610
+ var GOV_UI_COMPONENTS = [
4611
+ HmctsIdentityBarComponent,
4612
+ HmctsPaginationComponent,
4613
+ HmctsSubNavigationComponent,
4614
+ HmctsPrimaryNavigationComponent,
4615
+ HmctsErrorSummaryComponent,
4616
+ HmctsMainWrapperComponent,
4617
+ HmctsBannerComponent,
4618
+ GovukTableComponent,
4619
+ GovUkInputComponent,
4620
+ GovUkCheckboxComponent,
4621
+ GovUkFormGroupWrapperComponent,
4622
+ GovUkLabelComponent,
4623
+ GovUkErrorMessageComponent,
4624
+ GovUkFieldsetComponent,
4625
+ GovUkDateComponent,
4626
+ GovUkCheckboxesComponent,
4627
+ GovUkRadioComponent,
4628
+ GovUkRadiosComponent,
4629
+ GovUkSelectComponent,
4630
+ GovUkTextareaComponent,
4631
+ GovUkFileUploadComponent,
4632
+ RemoveHostDirective
4633
+ ];
4634
+ var COMMON_SERVICES = [
4635
+ CaseSharingStateService,
4636
+ CookieService,
4637
+ LaunchDarklyService,
4638
+ FilterService,
4639
+ FindAPersonService,
4640
+ GoogleAnalyticsService,
4641
+ GoogleTagManagerService,
4642
+ LoadingService,
4643
+ LocationService,
4644
+ ManageSessionServices,
4645
+ SessionStorageService,
4646
+ TimeoutNotificationsService
4647
+ ];
4648
+ var ɵ0 = windowProvider;
4649
+ var ExuiCommonLibModule = /** @class */ (function () {
4650
+ function ExuiCommonLibModule() {
4651
+ }
4652
+ return ExuiCommonLibModule;
4653
+ }());
4654
+ ExuiCommonLibModule.decorators = [
4655
+ { type: i0.NgModule, args: [{
4656
+ declarations: __spread(COMMON_COMPONENTS, GOV_UI_COMPONENTS),
4657
+ imports: [
4658
+ i4.CommonModule,
4659
+ forms.FormsModule,
4660
+ forms.ReactiveFormsModule,
4661
+ i1$1.RouterModule.forChild([]),
4662
+ autocomplete.MatAutocompleteModule,
4663
+ tabs.MatTabsModule,
4664
+ input.MatInputModule,
4665
+ ngxPagination.NgxPaginationModule
4666
+ ],
4667
+ providers: __spread(COMMON_SERVICES, [
4668
+ { provide: windowToken, useFactory: ɵ0 }
4669
+ ]),
4670
+ exports: __spread(COMMON_COMPONENTS, GOV_UI_COMPONENTS, [
4671
+ ngxPagination.PaginatePipe
4672
+ ])
4673
+ },] }
4674
+ ];
4675
+
4676
+ var GovUiService = /** @class */ (function () {
4677
+ function GovUiService() {
4678
+ }
4679
+ return GovUiService;
4680
+ }());
4681
+ GovUiService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function GovUiService_Factory() { return new GovUiService(); }, token: GovUiService, providedIn: "root" });
4682
+ GovUiService.decorators = [
4683
+ { type: i0.Injectable, args: [{
4684
+ providedIn: 'root'
4685
+ },] }
4686
+ ];
4687
+ GovUiService.ctorParameters = function () { return []; };
4688
+
4689
+ function checkboxesBeCheckedValidator(minRequired) {
4690
+ if (minRequired === void 0) { minRequired = 1; }
4691
+ return function validate(formGroup) {
4692
+ var checked = 0;
4693
+ Object.keys(formGroup.controls).forEach(function (key) {
4694
+ var control = formGroup.controls[key];
4695
+ if (control.value === true) {
4696
+ checked++;
4697
+ }
4698
+ });
4699
+ if (checked < minRequired) {
4700
+ return {
4701
+ requireOneCheckboxToBeChecked: true,
4702
+ };
4703
+ }
4704
+ return null;
4705
+ };
4706
+ }
4707
+
4708
+ function dateValidator() {
4709
+ return function validate(formGroup) {
4710
+ var d = new Date(parseInt(formGroup.controls.day.value, 10), parseInt(formGroup.controls.month.value, 10) - 1, parseInt(formGroup.controls.year.value, 10) - 1);
4711
+ function isValidDate(val) {
4712
+ return val instanceof Date && !isNaN(+d);
4713
+ }
4714
+ if (!isValidDate(d)) {
4715
+ return {
4716
+ dateIsInvalid: true,
4717
+ };
4718
+ }
4719
+ return null;
4720
+ };
4721
+ }
4722
+
4723
+ function radioGroupValidator() {
4724
+ return function validate(formGroup) {
4725
+ if (formGroup.controls) {
4726
+ for (var control in formGroup.controls) {
4727
+ if (!formGroup.controls[control].valid) {
4728
+ return {
4729
+ isRadioGroupInvalid: true,
4730
+ };
4731
+ }
4732
+ }
4733
+ }
4734
+ return null;
4735
+ };
4736
+ }
4737
+
4738
+ /*
4739
+ * Public API Surface of gov-ui
4740
+ */
4741
+
4742
+ /*
4743
+ * Public API Surface of gov-ui
4744
+ */
4745
+
4732
4746
  /*
4733
4747
  * Public API Surface of exui-common-lib
4734
4748
  */
@@ -4740,6 +4754,8 @@
4740
4754
  exports.AccessibilityComponent = AccessibilityComponent;
4741
4755
  exports.AnonymousFeatureUser = AnonymousFeatureUser;
4742
4756
  exports.COMMON_COMPONENTS = COMMON_COMPONENTS;
4757
+ exports.COMMON_SERVICES = COMMON_SERVICES;
4758
+ exports.CaseSharingStateService = CaseSharingStateService;
4743
4759
  exports.CheckboxListComponent = CheckboxListComponent;
4744
4760
  exports.ContactDetailsComponent = ContactDetailsComponent;
4745
4761
  exports.CookieBannerComponent = CookieBannerComponent;
@@ -4751,6 +4767,7 @@
4751
4767
  exports.FeatureToggleGuard = FeatureToggleGuard;
4752
4768
  exports.FeatureToggleService = FeatureToggleService;
4753
4769
  exports.FilterService = FilterService;
4770
+ exports.FindAPersonService = FindAPersonService;
4754
4771
  exports.FindLocationComponent = FindLocationComponent;
4755
4772
  exports.FindPersonComponent = FindPersonComponent;
4756
4773
  exports.GOV_UI_COMPONENTS = GOV_UI_COMPONENTS;
@@ -4789,6 +4806,7 @@
4789
4806
  exports.LetDirective = LetDirective;
4790
4807
  exports.LoadingService = LoadingService;
4791
4808
  exports.LoadingSpinnerComponent = LoadingSpinnerComponent;
4809
+ exports.LocationService = LocationService;
4792
4810
  exports.LoggedInFeatureUser = LoggedInFeatureUser;
4793
4811
  exports.ManageSessionServices = ManageSessionServices;
4794
4812
  exports.PaginationComponent = PaginationComponent;
@@ -4805,6 +4823,7 @@
4805
4823
  exports.SelectedCaseListComponent = SelectedCaseListComponent;
4806
4824
  exports.ServiceMessageComponent = ServiceMessageComponent;
4807
4825
  exports.ServiceMessagesComponent = ServiceMessagesComponent;
4826
+ exports.SessionStorageService = SessionStorageService;
4808
4827
  exports.ShareCaseComponent = ShareCaseComponent;
4809
4828
  exports.ShareCaseConfirmComponent = ShareCaseConfirmComponent;
4810
4829
  exports.TabComponent = TabComponent;
@@ -4863,6 +4882,18 @@
4863
4882
  exports["ɵcj"] = GovUkTextareaComponent;
4864
4883
  exports["ɵck"] = GovUkFileUploadComponent;
4865
4884
  exports["ɵcl"] = RemoveHostDirective;
4885
+ exports["ɵcm"] = CaseSharingStateService;
4886
+ exports["ɵcn"] = CookieService;
4887
+ exports["ɵco"] = LaunchDarklyService;
4888
+ exports["ɵcp"] = FilterService;
4889
+ exports["ɵcq"] = FindAPersonService;
4890
+ exports["ɵcr"] = GoogleAnalyticsService;
4891
+ exports["ɵcs"] = GoogleTagManagerService;
4892
+ exports["ɵct"] = LoadingService;
4893
+ exports["ɵcu"] = LocationService;
4894
+ exports["ɵcv"] = ManageSessionServices;
4895
+ exports["ɵcw"] = SessionStorageService;
4896
+ exports["ɵcx"] = TimeoutNotificationsService;
4866
4897
  exports["ɵd"] = TcDisplayPlainComponent;
4867
4898
  exports["ɵe"] = TcConfirmComponent;
4868
4899
  exports["ɵf"] = ContactDetailsComponent;