@hmcts/rpx-xui-common-lib 1.6.12-hearing-part2 → 1.6.14-hearing-integration
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/bundles/hmcts-rpx-xui-common-lib.umd.js +280 -26
- package/bundles/hmcts-rpx-xui-common-lib.umd.js.map +1 -1
- package/bundles/hmcts-rpx-xui-common-lib.umd.min.js +1 -1
- package/bundles/hmcts-rpx-xui-common-lib.umd.min.js.map +1 -1
- package/esm2015/hmcts-rpx-xui-common-lib.js +28 -27
- package/esm2015/lib/components/search-judicials/search-judicials.component.js +249 -0
- package/esm2015/lib/exui-common-lib.module.js +3 -1
- package/esm2015/lib/models/person.model.js +27 -1
- package/esm2015/lib/services/find-person/find-person.service.js +9 -1
- package/esm5/hmcts-rpx-xui-common-lib.js +28 -27
- package/esm5/lib/components/search-judicials/search-judicials.component.js +291 -0
- package/esm5/lib/exui-common-lib.module.js +3 -1
- package/esm5/lib/models/person.model.js +27 -1
- package/esm5/lib/services/find-person/find-person.service.js +14 -1
- package/fesm2015/hmcts-rpx-xui-common-lib.js +211 -2
- package/fesm2015/hmcts-rpx-xui-common-lib.js.map +1 -1
- package/fesm5/hmcts-rpx-xui-common-lib.js +257 -2
- package/fesm5/hmcts-rpx-xui-common-lib.js.map +1 -1
- package/hmcts-rpx-xui-common-lib.d.ts +27 -26
- package/hmcts-rpx-xui-common-lib.metadata.json +1 -1
- package/lib/components/search-judicials/search-judicials.component.d.ts +37 -0
- package/lib/exui-common-lib.module.d.ts +2 -1
- package/lib/models/person.model.d.ts +12 -0
- package/lib/services/find-person/find-person.service.d.ts +2 -1
- package/package.json +1 -1
|
@@ -4820,6 +4820,19 @@
|
|
|
4820
4820
|
* @return {?}
|
|
4821
4821
|
*/function (person) { return person && person.id !== _this.userId && person.id !== _this.assignedUser; }));
|
|
4822
4822
|
};
|
|
4823
|
+
/**
|
|
4824
|
+
* @param {?} value
|
|
4825
|
+
* @param {?} serviceId
|
|
4826
|
+
* @return {?}
|
|
4827
|
+
*/
|
|
4828
|
+
FindAPersonService.prototype.searchJudicial = /**
|
|
4829
|
+
* @param {?} value
|
|
4830
|
+
* @param {?} serviceId
|
|
4831
|
+
* @return {?}
|
|
4832
|
+
*/
|
|
4833
|
+
function (value, serviceId) {
|
|
4834
|
+
return this.http.post('api/prd/judicial/getJudicialUsersSearch', { searchString: value, serviceCode: serviceId });
|
|
4835
|
+
};
|
|
4823
4836
|
FindAPersonService.caseworkersKey = 'caseworkers';
|
|
4824
4837
|
FindAPersonService.decorators = [
|
|
4825
4838
|
{ type: i0.Injectable, args: [{
|
|
@@ -5034,6 +5047,245 @@
|
|
|
5034
5047
|
return FindPersonComponent;
|
|
5035
5048
|
}());
|
|
5036
5049
|
|
|
5050
|
+
/**
|
|
5051
|
+
* @fileoverview added by tsickle
|
|
5052
|
+
* Generated from: lib/components/search-judicials/search-judicials.component.ts
|
|
5053
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
5054
|
+
*/
|
|
5055
|
+
var SearchJudicialsComponent = /** @class */ (function () {
|
|
5056
|
+
function SearchJudicialsComponent(judicialService, fb) {
|
|
5057
|
+
this.judicialService = judicialService;
|
|
5058
|
+
this.disabled = null;
|
|
5059
|
+
this.selectedJudicials = [];
|
|
5060
|
+
this.submitted = true;
|
|
5061
|
+
this.placeholderContent = '';
|
|
5062
|
+
this.showAutocomplete = false;
|
|
5063
|
+
this.judicialChanged = new i0.EventEmitter();
|
|
5064
|
+
this.idValue = '';
|
|
5065
|
+
this.errorMessage = 'You must select a name';
|
|
5066
|
+
this.serviceId = '';
|
|
5067
|
+
this.minSearchCharacters = 3;
|
|
5068
|
+
this.keyUpSubject$ = new rxjs.Subject();
|
|
5069
|
+
this.searchInProgress = false;
|
|
5070
|
+
this.formGroup = fb.group({
|
|
5071
|
+
formControl: [null],
|
|
5072
|
+
selectedFormControl: [null]
|
|
5073
|
+
});
|
|
5074
|
+
}
|
|
5075
|
+
/**
|
|
5076
|
+
* @return {?}
|
|
5077
|
+
*/
|
|
5078
|
+
SearchJudicialsComponent.prototype.ngOnInit = /**
|
|
5079
|
+
* @return {?}
|
|
5080
|
+
*/
|
|
5081
|
+
function () {
|
|
5082
|
+
var _this = this;
|
|
5083
|
+
this.displayedJudicials = [];
|
|
5084
|
+
if (this.control) {
|
|
5085
|
+
if (this.formGroup && this.formGroup.controls) {
|
|
5086
|
+
this.formGroup.controls.selectedFormControl = this.control;
|
|
5087
|
+
this.formGroup.controls.formControl.setValue(this.getControlValueDisplayText());
|
|
5088
|
+
}
|
|
5089
|
+
}
|
|
5090
|
+
this.keyUpSubject$.pipe(operators.debounceTime(500)).subscribe(( /**
|
|
5091
|
+
* @param {?} searchValue
|
|
5092
|
+
* @return {?}
|
|
5093
|
+
*/function (searchValue) { return _this.search(( /** @type {?} */(searchValue))); }));
|
|
5094
|
+
};
|
|
5095
|
+
/**
|
|
5096
|
+
* @return {?}
|
|
5097
|
+
*/
|
|
5098
|
+
SearchJudicialsComponent.prototype.onKeyDown = /**
|
|
5099
|
+
* @return {?}
|
|
5100
|
+
*/
|
|
5101
|
+
function () {
|
|
5102
|
+
this.judicialChanged.emit();
|
|
5103
|
+
};
|
|
5104
|
+
/**
|
|
5105
|
+
* @param {?} event
|
|
5106
|
+
* @return {?}
|
|
5107
|
+
*/
|
|
5108
|
+
SearchJudicialsComponent.prototype.onKeyUp = /**
|
|
5109
|
+
* @param {?} event
|
|
5110
|
+
* @return {?}
|
|
5111
|
+
*/
|
|
5112
|
+
function (event) {
|
|
5113
|
+
this.showAutocomplete = false;
|
|
5114
|
+
this.keyUpSubject$.next(event.target.value);
|
|
5115
|
+
};
|
|
5116
|
+
/**
|
|
5117
|
+
* @return {?}
|
|
5118
|
+
*/
|
|
5119
|
+
SearchJudicialsComponent.prototype.onFocus = /**
|
|
5120
|
+
* @return {?}
|
|
5121
|
+
*/
|
|
5122
|
+
function () {
|
|
5123
|
+
this.showAutocomplete = false;
|
|
5124
|
+
};
|
|
5125
|
+
Object.defineProperty(SearchJudicialsComponent.prototype, "displayedJudicialsDuplicationFiltered", {
|
|
5126
|
+
get: /**
|
|
5127
|
+
* @return {?}
|
|
5128
|
+
*/ function () {
|
|
5129
|
+
var _this = this;
|
|
5130
|
+
return this.displayedJudicials.filter(( /**
|
|
5131
|
+
* @param {?} judicial
|
|
5132
|
+
* @return {?}
|
|
5133
|
+
*/function (judicial) {
|
|
5134
|
+
return !_this.selectedJudicials.map(( /**
|
|
5135
|
+
* @param {?} selectedJudicial
|
|
5136
|
+
* @return {?}
|
|
5137
|
+
*/function (selectedJudicial) { return selectedJudicial.idamId; })).includes(judicial.idamId);
|
|
5138
|
+
}));
|
|
5139
|
+
},
|
|
5140
|
+
enumerable: true,
|
|
5141
|
+
configurable: true
|
|
5142
|
+
});
|
|
5143
|
+
/**
|
|
5144
|
+
* @param {?} term
|
|
5145
|
+
* @return {?}
|
|
5146
|
+
*/
|
|
5147
|
+
SearchJudicialsComponent.prototype.filter = /**
|
|
5148
|
+
* @param {?} term
|
|
5149
|
+
* @return {?}
|
|
5150
|
+
*/
|
|
5151
|
+
function (term) {
|
|
5152
|
+
var _this = this;
|
|
5153
|
+
this.searchJudicials(term, this.serviceId).pipe(operators.mergeMap(( /**
|
|
5154
|
+
* @param {?} apiData
|
|
5155
|
+
* @return {?}
|
|
5156
|
+
*/function (apiData) {
|
|
5157
|
+
/** @type {?} */
|
|
5158
|
+
var apiFilter = apiData.filter(( /**
|
|
5159
|
+
* @param {?} apiJudicial
|
|
5160
|
+
* @return {?}
|
|
5161
|
+
*/function (apiJudicial) {
|
|
5162
|
+
return !_this.selectedJudicials.map(( /**
|
|
5163
|
+
* @param {?} selectedJudicial
|
|
5164
|
+
* @return {?}
|
|
5165
|
+
*/function (selectedJudicial) { return selectedJudicial.idamId; })).includes(apiJudicial.idamId);
|
|
5166
|
+
}));
|
|
5167
|
+
_this.displayedJudicials = apiFilter;
|
|
5168
|
+
_this.searchInProgress = false;
|
|
5169
|
+
return apiFilter;
|
|
5170
|
+
}))).subscribe(( /**
|
|
5171
|
+
* @param {?} judicial
|
|
5172
|
+
* @return {?}
|
|
5173
|
+
*/function (judicial) {
|
|
5174
|
+
if (term === judicial.knownAs) {
|
|
5175
|
+
_this.formGroup.controls.selectedFormControl.setValue(judicial);
|
|
5176
|
+
_this.displayedJudicials = [];
|
|
5177
|
+
_this.judicialChanged.emit(judicial);
|
|
5178
|
+
_this.showAutocomplete = false;
|
|
5179
|
+
}
|
|
5180
|
+
_this.searchInProgress = false;
|
|
5181
|
+
}));
|
|
5182
|
+
};
|
|
5183
|
+
/**
|
|
5184
|
+
* @param {?=} selection
|
|
5185
|
+
* @return {?}
|
|
5186
|
+
*/
|
|
5187
|
+
SearchJudicialsComponent.prototype.onSelectionChange = /**
|
|
5188
|
+
* @param {?=} selection
|
|
5189
|
+
* @return {?}
|
|
5190
|
+
*/
|
|
5191
|
+
function (selection) {
|
|
5192
|
+
if (this.formGroup.controls.formControl instanceof forms.FormArray) {
|
|
5193
|
+
(( /** @type {?} */(this.formGroup.controls.selectedFormControl))).push(new forms.FormControl(selection.idamId));
|
|
5194
|
+
}
|
|
5195
|
+
else {
|
|
5196
|
+
this.formGroup.controls.selectedFormControl.setValue(selection);
|
|
5197
|
+
}
|
|
5198
|
+
this.judicialChanged.emit(selection);
|
|
5199
|
+
};
|
|
5200
|
+
/**
|
|
5201
|
+
* @param {?} currentValue
|
|
5202
|
+
* @return {?}
|
|
5203
|
+
*/
|
|
5204
|
+
SearchJudicialsComponent.prototype.search = /**
|
|
5205
|
+
* @param {?} currentValue
|
|
5206
|
+
* @return {?}
|
|
5207
|
+
*/
|
|
5208
|
+
function (currentValue) {
|
|
5209
|
+
this.searchInProgress = true;
|
|
5210
|
+
this.showAutocomplete = !!currentValue && (currentValue.length >= this.minSearchCharacters);
|
|
5211
|
+
if (!!currentValue) {
|
|
5212
|
+
this.formGroup.controls.selectedFormControl.markAsDirty();
|
|
5213
|
+
}
|
|
5214
|
+
else {
|
|
5215
|
+
this.formGroup.controls.selectedFormControl.reset();
|
|
5216
|
+
}
|
|
5217
|
+
if (this.showAutocomplete) {
|
|
5218
|
+
this.filter(currentValue);
|
|
5219
|
+
}
|
|
5220
|
+
else {
|
|
5221
|
+
this.searchInProgress = false;
|
|
5222
|
+
}
|
|
5223
|
+
};
|
|
5224
|
+
/**
|
|
5225
|
+
* @param {?} selectedJudicial
|
|
5226
|
+
* @return {?}
|
|
5227
|
+
*/
|
|
5228
|
+
SearchJudicialsComponent.prototype.getDisplayName = /**
|
|
5229
|
+
* @param {?} selectedJudicial
|
|
5230
|
+
* @return {?}
|
|
5231
|
+
*/
|
|
5232
|
+
function (selectedJudicial) {
|
|
5233
|
+
return selectedJudicial.knownAs + " (" + selectedJudicial.emailId + ")";
|
|
5234
|
+
};
|
|
5235
|
+
/**
|
|
5236
|
+
* @param {?} term
|
|
5237
|
+
* @param {?} serviceId
|
|
5238
|
+
* @return {?}
|
|
5239
|
+
*/
|
|
5240
|
+
SearchJudicialsComponent.prototype.searchJudicials = /**
|
|
5241
|
+
* @param {?} term
|
|
5242
|
+
* @param {?} serviceId
|
|
5243
|
+
* @return {?}
|
|
5244
|
+
*/
|
|
5245
|
+
function (term, serviceId) {
|
|
5246
|
+
return this.judicialService.searchJudicial(term, serviceId);
|
|
5247
|
+
};
|
|
5248
|
+
/**
|
|
5249
|
+
* @return {?}
|
|
5250
|
+
*/
|
|
5251
|
+
SearchJudicialsComponent.prototype.getControlValueDisplayText = /**
|
|
5252
|
+
* @return {?}
|
|
5253
|
+
*/
|
|
5254
|
+
function () {
|
|
5255
|
+
return this.formGroup && this.formGroup.controls && this.formGroup.controls.selectedFormControl.value ?
|
|
5256
|
+
this.getDisplayName(( /** @type {?} */(this.formGroup.controls.selectedFormControl.value))) : '';
|
|
5257
|
+
};
|
|
5258
|
+
SearchJudicialsComponent.decorators = [
|
|
5259
|
+
{ type: i0.Component, args: [{
|
|
5260
|
+
selector: 'xuilib-search-judicials',
|
|
5261
|
+
template: "<div class=\"govuk-form-group\">\n <input id=\"inputSelectPerson{{idValue}}\" [placeholder]=\"placeholderContent\" [formControl]=\"formGroup.controls.formControl\"\n [matAutocomplete]=\"autoComplete\" (keydown)=\"onKeyDown()\" (keyup)=\"onKeyUp($event)\" (focus)=\"onFocus()\"\n class=\"govuk-input\" [attr.disabled]=\"!disabled ? null: disabled\" [value]=\"getControlValueDisplayText()\"\n #inputSelection>\n <mat-autocomplete autoActiveFirstOption #autoComplete=\"matAutocomplete\">\n <mat-option *ngFor=\"let judicial of displayedJudicialsDuplicationFiltered\" class=\"select-option\"\n [value]=\"getDisplayName(judicial)\" (onSelectionChange)=\"onSelectionChange(judicial)\"\n [ngClass]=\"{'hide-autocomplete': !showAutocomplete}\">\n {{ getDisplayName(judicial) }}\n </mat-option>\n <mat-option class=\"select-option\"\n *ngIf=\"!displayedJudicialsDuplicationFiltered?.length && showAutocomplete && !searchInProgress\">\n {{ 'No results found' }}</mat-option>\n </mat-autocomplete>\n</div>\n",
|
|
5262
|
+
styles: [".hide-autocomplete{display:none}.mat-option:hover{background:#2596be}.mat-option.select-option:hover{background:#1d70b8;color:#fff}"]
|
|
5263
|
+
}] }
|
|
5264
|
+
];
|
|
5265
|
+
/** @nocollapse */
|
|
5266
|
+
SearchJudicialsComponent.ctorParameters = function () {
|
|
5267
|
+
return [
|
|
5268
|
+
{ type: FindAPersonService },
|
|
5269
|
+
{ type: forms.FormBuilder }
|
|
5270
|
+
];
|
|
5271
|
+
};
|
|
5272
|
+
SearchJudicialsComponent.propDecorators = {
|
|
5273
|
+
control: [{ type: i0.Input }],
|
|
5274
|
+
disabled: [{ type: i0.Input }],
|
|
5275
|
+
selectedJudicials: [{ type: i0.Input }],
|
|
5276
|
+
submitted: [{ type: i0.Input }],
|
|
5277
|
+
placeholderContent: [{ type: i0.Input }],
|
|
5278
|
+
showAutocomplete: [{ type: i0.Input }],
|
|
5279
|
+
displayedJudicials: [{ type: i0.Input }],
|
|
5280
|
+
judicialChanged: [{ type: i0.Output }],
|
|
5281
|
+
idValue: [{ type: i0.Input }],
|
|
5282
|
+
errorMessage: [{ type: i0.Input }],
|
|
5283
|
+
serviceId: [{ type: i0.Input }],
|
|
5284
|
+
autoCompleteInputBox: [{ type: i0.ViewChild, args: ['inputSelection', { read: i0.ElementRef },] }]
|
|
5285
|
+
};
|
|
5286
|
+
return SearchJudicialsComponent;
|
|
5287
|
+
}());
|
|
5288
|
+
|
|
5037
5289
|
/**
|
|
5038
5290
|
* @fileoverview added by tsickle
|
|
5039
5291
|
* Generated from: lib/components/search-venue/search-venue.component.ts
|
|
@@ -6309,6 +6561,7 @@
|
|
|
6309
6561
|
GenericFilterComponent,
|
|
6310
6562
|
CookieBannerComponent,
|
|
6311
6563
|
FindPersonComponent,
|
|
6564
|
+
SearchJudicialsComponent,
|
|
6312
6565
|
FindLocationComponent,
|
|
6313
6566
|
SearchLocationComponent,
|
|
6314
6567
|
SearchVenueComponent,
|
|
@@ -7429,16 +7682,17 @@
|
|
|
7429
7682
|
exports.ɵbf = CookieBannerComponent;
|
|
7430
7683
|
exports.ɵy = DueDateComponent;
|
|
7431
7684
|
exports.ɵa = ExuiPageWrapperComponent;
|
|
7432
|
-
exports.ɵ
|
|
7685
|
+
exports.ɵbl = FindLocationComponent;
|
|
7433
7686
|
exports.ɵbh = FindPersonComponent;
|
|
7434
7687
|
exports.ɵbd = GenericFilterComponent;
|
|
7435
7688
|
exports.ɵk = HmctsSessionDialogComponent;
|
|
7436
7689
|
exports.ɵo = InviteUserFormComponent;
|
|
7437
7690
|
exports.ɵn = InviteUserPermissionComponent;
|
|
7438
7691
|
exports.ɵbc = LoadingSpinnerComponent;
|
|
7439
|
-
exports.ɵ
|
|
7440
|
-
exports.ɵ
|
|
7441
|
-
exports.ɵ
|
|
7692
|
+
exports.ɵbp = PaginationComponent;
|
|
7693
|
+
exports.ɵbk = SearchJudicialsComponent;
|
|
7694
|
+
exports.ɵbm = SearchLocationComponent;
|
|
7695
|
+
exports.ɵbo = SearchVenueComponent;
|
|
7442
7696
|
exports.ɵv = SelectedCaseConfirmComponent;
|
|
7443
7697
|
exports.ɵt = SelectedCaseListComponent;
|
|
7444
7698
|
exports.ɵu = SelectedCaseComponent;
|
|
@@ -7457,33 +7711,33 @@
|
|
|
7457
7711
|
exports.ɵg = FeatureToggleDirective;
|
|
7458
7712
|
exports.ɵi = LetContext;
|
|
7459
7713
|
exports.ɵj = LetDirective;
|
|
7460
|
-
exports.ɵ
|
|
7461
|
-
exports.ɵ
|
|
7462
|
-
exports.ɵ
|
|
7463
|
-
exports.ɵ
|
|
7464
|
-
exports.ɵ
|
|
7465
|
-
exports.ɵ
|
|
7466
|
-
exports.ɵ
|
|
7467
|
-
exports.ɵ
|
|
7468
|
-
exports.ɵ
|
|
7469
|
-
exports.ɵ
|
|
7470
|
-
exports.ɵ
|
|
7471
|
-
exports.ɵ
|
|
7472
|
-
exports.ɵ
|
|
7473
|
-
exports.ɵ
|
|
7474
|
-
exports.ɵ
|
|
7475
|
-
exports.ɵ
|
|
7476
|
-
exports.ɵ
|
|
7477
|
-
exports.ɵ
|
|
7478
|
-
exports.ɵ
|
|
7479
|
-
exports.ɵ
|
|
7480
|
-
exports.ɵ
|
|
7714
|
+
exports.ɵby = GovUkCheckboxComponent;
|
|
7715
|
+
exports.ɵce = GovUkCheckboxesComponent;
|
|
7716
|
+
exports.ɵcd = GovUkDateComponent;
|
|
7717
|
+
exports.ɵcb = GovUkErrorMessageComponent;
|
|
7718
|
+
exports.ɵcc = GovUkFieldsetComponent;
|
|
7719
|
+
exports.ɵcj = GovUkFileUploadComponent;
|
|
7720
|
+
exports.ɵbz = GovUkFormGroupWrapperComponent;
|
|
7721
|
+
exports.ɵbx = GovUkInputComponent;
|
|
7722
|
+
exports.ɵca = GovUkLabelComponent;
|
|
7723
|
+
exports.ɵcf = GovUkRadioComponent;
|
|
7724
|
+
exports.ɵcg = GovUkRadiosComponent;
|
|
7725
|
+
exports.ɵch = GovUkSelectComponent;
|
|
7726
|
+
exports.ɵbw = GovukTableComponent;
|
|
7727
|
+
exports.ɵci = GovUkTextareaComponent;
|
|
7728
|
+
exports.ɵbv = HmctsBannerComponent;
|
|
7729
|
+
exports.ɵbt = HmctsErrorSummaryComponent;
|
|
7730
|
+
exports.ɵbq = HmctsIdentityBarComponent;
|
|
7731
|
+
exports.ɵbu = HmctsMainWrapperComponent;
|
|
7732
|
+
exports.ɵbs = HmctsPrimaryNavigationComponent;
|
|
7733
|
+
exports.ɵbr = HmctsSubNavigationComponent;
|
|
7734
|
+
exports.ɵck = RemoveHostDirective;
|
|
7481
7735
|
exports.ɵr = CaseSharingStateService;
|
|
7482
7736
|
exports.ɵbg = CookieService;
|
|
7483
7737
|
exports.ɵh = FeatureToggleService;
|
|
7484
7738
|
exports.ɵbe = FilterService;
|
|
7485
7739
|
exports.ɵbi = FindAPersonService;
|
|
7486
|
-
exports.ɵ
|
|
7740
|
+
exports.ɵbn = LocationService;
|
|
7487
7741
|
exports.ɵbj = SessionStorageService;
|
|
7488
7742
|
|
|
7489
7743
|
Object.defineProperty(exports, '__esModule', { value: true });
|