@hmcts/ccd-case-ui-toolkit 5.0.34-case-file-view-merge-into-angular-11 → 5.0.36-prl-integration-merge-into-angular-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.
Files changed (20) hide show
  1. package/bundles/hmcts-ccd-case-ui-toolkit.umd.js +24 -42
  2. package/bundles/hmcts-ccd-case-ui-toolkit.umd.js.map +1 -1
  3. package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js +1 -1
  4. package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js.map +1 -1
  5. package/esm2015/lib/shared/components/palette/case-link/components/write-linked-cases.component.js +1 -1
  6. package/esm2015/lib/shared/components/palette/case-link/services/linked-cases.service.js +5 -7
  7. package/esm2015/lib/shared/domain/definition/jurisdiction.model.js +1 -1
  8. package/esm2015/lib/shared/services/jurisdiction/jurisdiction.service.js +4 -1
  9. package/fesm2015/hmcts-ccd-case-ui-toolkit.js +24 -39
  10. package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -1
  11. package/lib/shared/components/palette/case-link/components/write-linked-cases.component.d.ts.map +1 -1
  12. package/lib/shared/components/palette/case-link/services/linked-cases.service.d.ts +1 -2
  13. package/lib/shared/components/palette/case-link/services/linked-cases.service.d.ts.map +1 -1
  14. package/lib/shared/domain/definition/jurisdiction.model.d.ts.map +1 -1
  15. package/lib/shared/services/jurisdiction/jurisdiction.service.d.ts +2 -1
  16. package/lib/shared/services/jurisdiction/jurisdiction.service.d.ts.map +1 -1
  17. package/package.json +1 -1
  18. package/esm2015/lib/shared/components/palette/case-link/services/jurisdiction.service.js +0 -22
  19. package/lib/shared/components/palette/case-link/services/jurisdiction.service.d.ts +0 -12
  20. package/lib/shared/components/palette/case-link/services/jurisdiction.service.d.ts.map +0 -1
@@ -7216,12 +7216,15 @@
7216
7216
  }], null, null);
7217
7217
  })();
7218
7218
 
7219
- var JurisdictionService$1 = /** @class */ (function () {
7219
+ var JurisdictionService = /** @class */ (function () {
7220
7220
  function JurisdictionService(httpService) {
7221
7221
  this.httpService = httpService;
7222
7222
  this.selectedJurisdictionSource = new rxjs.Subject();
7223
7223
  this.selectedJurisdiction = this.selectedJurisdictionSource.asObservable();
7224
7224
  }
7225
+ JurisdictionService.prototype.getJurisdictions = function () {
7226
+ return this.httpService.get('/aggregated/caseworkers/:uid/jurisdictions?access=read');
7227
+ };
7225
7228
  JurisdictionService.prototype.announceSelectedJurisdiction = function (jurisdiction) {
7226
7229
  this.selectedJurisdictionSource.next(jurisdiction);
7227
7230
  };
@@ -7233,10 +7236,10 @@
7233
7236
  };
7234
7237
  return JurisdictionService;
7235
7238
  }());
7236
- JurisdictionService$1.ɵfac = function JurisdictionService_Factory(t) { return new (t || JurisdictionService$1)(i0__namespace.ɵɵinject(HttpService)); };
7237
- JurisdictionService$1.ɵprov = i0__namespace.ɵɵdefineInjectable({ token: JurisdictionService$1, factory: JurisdictionService$1.ɵfac });
7239
+ JurisdictionService.ɵfac = function JurisdictionService_Factory(t) { return new (t || JurisdictionService)(i0__namespace.ɵɵinject(HttpService)); };
7240
+ JurisdictionService.ɵprov = i0__namespace.ɵɵdefineInjectable({ token: JurisdictionService, factory: JurisdictionService.ɵfac });
7238
7241
  (function () {
7239
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(JurisdictionService$1, [{
7242
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(JurisdictionService, [{
7240
7243
  type: i0.Injectable
7241
7244
  }], function () { return [{ type: HttpService }]; }, null);
7242
7245
  })();
@@ -11295,27 +11298,6 @@
11295
11298
  }], null, null);
11296
11299
  })();
11297
11300
 
11298
- var JurisdictionService = /** @class */ (function () {
11299
- function JurisdictionService(http) {
11300
- this.http = http;
11301
- }
11302
- JurisdictionService.prototype.getJurisdictions = function () {
11303
- var headers = new i1$2.HttpHeaders({
11304
- 'Content-Type': 'application/json',
11305
- Accept: 'application/json'
11306
- });
11307
- return this.http.get('/aggregated/caseworkers/:uid/jurisdictions?access=read', { headers: headers });
11308
- };
11309
- return JurisdictionService;
11310
- }());
11311
- JurisdictionService.ɵfac = function JurisdictionService_Factory(t) { return new (t || JurisdictionService)(i0__namespace.ɵɵinject(i1__namespace$2.HttpClient)); };
11312
- JurisdictionService.ɵprov = i0__namespace.ɵɵdefineInjectable({ token: JurisdictionService, factory: JurisdictionService.ɵfac });
11313
- (function () {
11314
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(JurisdictionService, [{
11315
- type: i0.Injectable
11316
- }], function () { return [{ type: i1__namespace$2.HttpClient }]; }, null);
11317
- })();
11318
-
11319
11301
  var LinkedCasesService = /** @class */ (function () {
11320
11302
  function LinkedCasesService(jurisdictionService, searchService) {
11321
11303
  var _this = this;
@@ -15608,7 +15590,7 @@
15608
15590
  };
15609
15591
  return ReadJudicialUserFieldComponent;
15610
15592
  }(AbstractFieldReadComponent));
15611
- ReadJudicialUserFieldComponent.ɵfac = function ReadJudicialUserFieldComponent_Factory(t) { return new (t || ReadJudicialUserFieldComponent)(i0__namespace.ɵɵdirectiveInject(JurisdictionService$1)); };
15593
+ ReadJudicialUserFieldComponent.ɵfac = function ReadJudicialUserFieldComponent_Factory(t) { return new (t || ReadJudicialUserFieldComponent)(i0__namespace.ɵɵdirectiveInject(JurisdictionService)); };
15612
15594
  ReadJudicialUserFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: ReadJudicialUserFieldComponent, selectors: [["ccd-read-judicial-user-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: [["class", "text-16", 4, "ngIf"], [1, "text-16"]], template: function ReadJudicialUserFieldComponent_Template(rf, ctx) {
15613
15595
  if (rf & 1) {
15614
15596
  i0__namespace.ɵɵtemplate(0, ReadJudicialUserFieldComponent_span_0_Template, 2, 2, "span", 0);
@@ -15624,7 +15606,7 @@
15624
15606
  selector: 'ccd-read-judicial-user-field',
15625
15607
  templateUrl: './read-judicial-user-field.component.html'
15626
15608
  }]
15627
- }], function () { return [{ type: JurisdictionService$1 }]; }, null);
15609
+ }], function () { return [{ type: JurisdictionService }]; }, null);
15628
15610
  })();
15629
15611
 
15630
15612
  function WriteJudicialUserFieldComponent_span_2_Template(rf, ctx) {
@@ -15717,7 +15699,7 @@
15717
15699
  };
15718
15700
  return WriteJudicialUserFieldComponent;
15719
15701
  }(AbstractFieldWriteComponent));
15720
- WriteJudicialUserFieldComponent.ɵfac = function WriteJudicialUserFieldComponent_Factory(t) { return new (t || WriteJudicialUserFieldComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(JurisdictionService$1)); };
15702
+ WriteJudicialUserFieldComponent.ɵfac = function WriteJudicialUserFieldComponent_Factory(t) { return new (t || WriteJudicialUserFieldComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(JurisdictionService)); };
15721
15703
  WriteJudicialUserFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteJudicialUserFieldComponent, selectors: [["ccd-write-judicial-user-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 9, vars: 9, consts: [[1, "form-group", 3, "formGroup"], [3, "for"], ["class", "form-label", 4, "ngIf"], ["class", "form-hint", 4, "ngIf"], [1, "form-control", "bottom-30", 3, "id", "formControl", "matAutocomplete"], ["autoActiveFirstOption", ""], ["autoComplete", "matAutocomplete"], ["class", "select-option", 3, "ngClass", "value", "onSelectionChange", 4, "ngFor", "ngForOf"], ["class", "select-option", 4, "ngIf"], [1, "form-label"], [1, "form-hint"], [1, "select-option", 3, "ngClass", "value", "onSelectionChange"], [1, "select-option"]], template: function WriteJudicialUserFieldComponent_Template(rf, ctx) {
15722
15704
  if (rf & 1) {
15723
15705
  i0__namespace.ɵɵelementStart(0, "div", 0);
@@ -15757,7 +15739,7 @@
15757
15739
  styleUrls: ['./write-judicial-user-field.component.scss'],
15758
15740
  templateUrl: './write-judicial-user-field.component.html'
15759
15741
  }]
15760
- }], function () { return [{ type: i1__namespace$1.ActivatedRoute }, { type: i0__namespace.ChangeDetectorRef }, { type: JurisdictionService$1 }]; }, null);
15742
+ }], function () { return [{ type: i1__namespace$1.ActivatedRoute }, { type: i0__namespace.ChangeDetectorRef }, { type: JurisdictionService }]; }, null);
15761
15743
  })();
15762
15744
 
15763
15745
  var LabelFieldComponent = /** @class */ (function () {
@@ -25047,7 +25029,7 @@
25047
25029
  WindowService,
25048
25030
  LinkedCasesService,
25049
25031
  CommonDataService,
25050
- JurisdictionService$1,
25032
+ JurisdictionService,
25051
25033
  { provide: i6.MAT_DATE_LOCALE, useValue: 'en-GB' }
25052
25034
  ], imports: [[
25053
25035
  i1.CommonModule,
@@ -25372,7 +25354,7 @@
25372
25354
  WindowService,
25373
25355
  LinkedCasesService,
25374
25356
  CommonDataService,
25375
- JurisdictionService$1,
25357
+ JurisdictionService,
25376
25358
  { provide: i6.MAT_DATE_LOCALE, useValue: 'en-GB' }
25377
25359
  ],
25378
25360
  entryComponents: [CaseFileViewFolderSelectorComponent]
@@ -28246,7 +28228,7 @@
28246
28228
  WorkbasketFiltersComponent.PARAM_JURISDICTION = 'jurisdiction';
28247
28229
  WorkbasketFiltersComponent.PARAM_CASE_TYPE = 'case-type';
28248
28230
  WorkbasketFiltersComponent.PARAM_CASE_STATE = 'case-state';
28249
- WorkbasketFiltersComponent.ɵfac = function WorkbasketFiltersComponent_Factory(t) { return new (t || WorkbasketFiltersComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(WorkbasketInputFilterService), i0__namespace.ɵɵdirectiveInject(OrderService), i0__namespace.ɵɵdirectiveInject(JurisdictionService$1), i0__namespace.ɵɵdirectiveInject(AlertService), i0__namespace.ɵɵdirectiveInject(WindowService)); };
28231
+ WorkbasketFiltersComponent.ɵfac = function WorkbasketFiltersComponent_Factory(t) { return new (t || WorkbasketFiltersComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(WorkbasketInputFilterService), i0__namespace.ɵɵdirectiveInject(OrderService), i0__namespace.ɵɵdirectiveInject(JurisdictionService), i0__namespace.ɵɵdirectiveInject(AlertService), i0__namespace.ɵɵdirectiveInject(WindowService)); };
28250
28232
  WorkbasketFiltersComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WorkbasketFiltersComponent, selectors: [["ccd-workbasket-filters"]], inputs: { jurisdictions: "jurisdictions", defaults: "defaults" }, outputs: { onApply: "onApply", onReset: "onReset" }, decls: 28, vars: 13, consts: [["aria-label", "Filters", 1, "heading-h2"], [1, "global-display"], [1, "form-group"], ["for", "wb-jurisdiction", 1, "form-label"], ["id", "wb-jurisdiction", "name", "jurisdiction", "aria-controls", "search-result", 1, "form-control", "form-control-3-4", "ccd-dropdown", 3, "ngModel", "ngModelChange", "change"], [3, "ngValue", 4, "ngIf"], [3, "ngValue", 4, "ngFor", "ngForOf"], ["for", "wb-case-type", 1, "form-label"], ["id", "wb-case-type", "name", "case-type", "aria-controls", "search-result", 1, "form-control", "form-control-3-4", "ccd-dropdown", 3, "ngModel", "disabled", "ngModelChange", "change"], ["for", "wb-case-state", 1, "form-label"], ["id", "wb-case-state", "name", "state", "aria-controls", "search-result", 1, "form-control", "form-control-3-4", "ccd-dropdown", 3, "ngModel", "disabled", "ngModelChange"], [3, "ngValue"], ["ccdConditionalShowForm", "", 3, "formGroup", "contextFields", 4, "ngIf"], ["type", "button", "title", "Apply filter", "aria-label", "Apply filter", 1, "button", "workbasket-filters-apply", 3, "disabled", "click"], ["type", "button", "title", "Reset filter", "aria-label", "Reset filter", 1, "button", "button-secondary", 3, "click"], ["ccdConditionalShowForm", "", 3, "formGroup", "contextFields"], ["id", "dynamicFilters"], ["class", "form-group", 4, "ngFor", "ngForOf"], [3, "caseField", "formGroup", "isExpanded", "isInSearchBlock", "keyup.enter"]], template: function WorkbasketFiltersComponent_Template(rf, ctx) {
28251
28233
  if (rf & 1) {
28252
28234
  i0__namespace.ɵɵelementStart(0, "h2", 0);
@@ -28330,7 +28312,7 @@
28330
28312
  templateUrl: './workbasket-filters.component.html',
28331
28313
  styleUrls: ['./workbasket-filters.component.scss']
28332
28314
  }]
28333
- }], function () { return [{ type: i1__namespace$1.ActivatedRoute }, { type: WorkbasketInputFilterService }, { type: OrderService }, { type: JurisdictionService$1 }, { type: AlertService }, { type: WindowService }]; }, { jurisdictions: [{
28315
+ }], function () { return [{ type: i1__namespace$1.ActivatedRoute }, { type: WorkbasketInputFilterService }, { type: OrderService }, { type: JurisdictionService }, { type: AlertService }, { type: WindowService }]; }, { jurisdictions: [{
28334
28316
  type: i0.Input
28335
28317
  }], defaults: [{
28336
28318
  type: i0.Input
@@ -28351,7 +28333,7 @@
28351
28333
  WorkbasketFiltersModule.ɵinj = i0__namespace.ɵɵdefineInjector({ providers: [
28352
28334
  WorkbasketInputFilterService,
28353
28335
  OrderService,
28354
- JurisdictionService$1,
28336
+ JurisdictionService,
28355
28337
  AlertService,
28356
28338
  WindowService,
28357
28339
  ], imports: [[
@@ -28388,7 +28370,7 @@
28388
28370
  providers: [
28389
28371
  WorkbasketInputFilterService,
28390
28372
  OrderService,
28391
- JurisdictionService$1,
28373
+ JurisdictionService,
28392
28374
  AlertService,
28393
28375
  WindowService,
28394
28376
  ]
@@ -28471,7 +28453,7 @@
28471
28453
  CaseListFiltersModule.ɵinj = i0__namespace.ɵɵdefineInjector({ providers: [
28472
28454
  WorkbasketInputFilterService,
28473
28455
  OrderService,
28474
- JurisdictionService$1,
28456
+ JurisdictionService,
28475
28457
  AlertService,
28476
28458
  WindowService
28477
28459
  ], imports: [[
@@ -28511,7 +28493,7 @@
28511
28493
  providers: [
28512
28494
  WorkbasketInputFilterService,
28513
28495
  OrderService,
28514
- JurisdictionService$1,
28496
+ JurisdictionService,
28515
28497
  AlertService,
28516
28498
  WindowService
28517
28499
  ]
@@ -33652,7 +33634,7 @@
33652
33634
  };
33653
33635
  return SearchFiltersComponent;
33654
33636
  }());
33655
- SearchFiltersComponent.ɵfac = function SearchFiltersComponent_Factory(t) { return new (t || SearchFiltersComponent)(i0__namespace.ɵɵdirectiveInject(SearchService), i0__namespace.ɵɵdirectiveInject(OrderService), i0__namespace.ɵɵdirectiveInject(JurisdictionService$1), i0__namespace.ɵɵdirectiveInject(WindowService)); };
33637
+ SearchFiltersComponent.ɵfac = function SearchFiltersComponent_Factory(t) { return new (t || SearchFiltersComponent)(i0__namespace.ɵɵdirectiveInject(SearchService), i0__namespace.ɵɵdirectiveInject(OrderService), i0__namespace.ɵɵdirectiveInject(JurisdictionService), i0__namespace.ɵɵdirectiveInject(WindowService)); };
33656
33638
  SearchFiltersComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: SearchFiltersComponent, selectors: [["ccd-search-filters"]], inputs: { jurisdictions: "jurisdictions", autoApply: "autoApply" }, outputs: { onApply: "onApply", onReset: "onReset", onJurisdiction: "onJurisdiction" }, decls: 19, vars: 7, consts: [["aria-label", "Filters", 1, "heading-h2"], [1, "global-display"], [1, "form-group", 2, "margin-top", "13px"], ["for", "s-jurisdiction", 1, "form-label"], ["id", "s-jurisdiction", "name", "jurisdiction", "aria-controls", "search-result", 1, "form-control", "form-control-3-4", "ccd-dropdown", 3, "ngModel", "ngModelChange", "change"], [3, "ngValue", 4, "ngFor", "ngForOf"], [1, "form-group"], ["for", "s-case-type", 1, "form-label"], ["id", "s-case-type", "name", "case-type", "aria-controls", "search-result", 1, "form-control", "form-control-3-4", "ccd-dropdown", 3, "disabled", "ngModel", "ngModelChange", "change"], ["ccdConditionalShowForm", "", 3, "formGroup", "contextFields", 4, "ngIf"], ["type", "button", "title", "Apply filter", "aria-label", "Apply filter", 1, "button", 3, "disabled", "click", "keyup.enter"], ["id", "reset", "type", "button", "title", "Reset filter", "aria-label", "Reset filter", 1, "button", "button-secondary", 3, "click"], [3, "ngValue"], ["ccdConditionalShowForm", "", 3, "formGroup", "contextFields"], ["id", "dynamicFilters"], ["class", "form-group", 4, "ngFor", "ngForOf"], [3, "caseField", "formGroup", "isExpanded", "keyup.enter"]], template: function SearchFiltersComponent_Template(rf, ctx) {
33657
33639
  if (rf & 1) {
33658
33640
  i0__namespace.ɵɵelementStart(0, "h2", 0);
@@ -33711,7 +33693,7 @@
33711
33693
  selector: 'ccd-search-filters',
33712
33694
  templateUrl: './search-filters.component.html',
33713
33695
  }]
33714
- }], function () { return [{ type: SearchService }, { type: OrderService }, { type: JurisdictionService$1 }, { type: WindowService }]; }, { jurisdictions: [{
33696
+ }], function () { return [{ type: SearchService }, { type: OrderService }, { type: JurisdictionService }, { type: WindowService }]; }, { jurisdictions: [{
33715
33697
  type: i0.Input
33716
33698
  }], autoApply: [{
33717
33699
  type: i0.Input
@@ -33800,7 +33782,7 @@
33800
33782
  SearchFiltersModule.ɵinj = i0__namespace.ɵɵdefineInjector({ providers: [
33801
33783
  SearchService,
33802
33784
  OrderService,
33803
- JurisdictionService$1,
33785
+ JurisdictionService,
33804
33786
  DefinitionsService,
33805
33787
  WindowService
33806
33788
  ], imports: [[
@@ -33839,7 +33821,7 @@
33839
33821
  providers: [
33840
33822
  SearchService,
33841
33823
  OrderService,
33842
- JurisdictionService$1,
33824
+ JurisdictionService,
33843
33825
  DefinitionsService,
33844
33826
  WindowService
33845
33827
  ]
@@ -35278,7 +35260,7 @@
35278
35260
  exports.IsReadOnlyPipe = IsReadOnlyPipe;
35279
35261
  exports.JudicialworkerService = JudicialworkerService;
35280
35262
  exports.Jurisdiction = Jurisdiction;
35281
- exports.JurisdictionService = JurisdictionService$1;
35263
+ exports.JurisdictionService = JurisdictionService;
35282
35264
  exports.LabelFieldComponent = LabelFieldComponent;
35283
35265
  exports.LabelSubstitutorDirective = LabelSubstitutorDirective;
35284
35266
  exports.LabelSubstitutorModule = LabelSubstitutorModule;