@hmcts/rpx-xui-common-lib 1.8.1 → 1.8.3-rc1
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 +6 -11
- 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/lib/components/find-person/find-person.component.js +3 -3
- package/esm2015/lib/components/search-judicials/search-judicials.component.js +2 -2
- package/esm2015/lib/components/selected-case/selected-case.component.js +2 -5
- package/esm2015/lib/components/selected-case-list/selected-case-list.component.js +3 -9
- package/esm2015/lib/models/person.model.js +3 -1
- package/esm5/lib/components/find-person/find-person.component.js +3 -3
- package/esm5/lib/components/search-judicials/search-judicials.component.js +2 -2
- package/esm5/lib/components/selected-case/selected-case.component.js +2 -5
- package/esm5/lib/components/selected-case-list/selected-case-list.component.js +3 -9
- package/esm5/lib/models/person.model.js +3 -1
- package/fesm2015/hmcts-rpx-xui-common-lib.js +7 -12
- package/fesm2015/hmcts-rpx-xui-common-lib.js.map +1 -1
- package/fesm5/hmcts-rpx-xui-common-lib.js +7 -12
- package/fesm5/hmcts-rpx-xui-common-lib.js.map +1 -1
- package/hmcts-rpx-xui-common-lib.metadata.json +1 -1
- package/lib/components/selected-case/selected-case.component.d.ts +0 -1
- package/lib/components/selected-case-list/selected-case-list.component.d.ts +0 -1
- package/lib/models/person.model.d.ts +1 -0
- package/package.json +1 -1
|
@@ -2176,10 +2176,7 @@
|
|
|
2176
2176
|
this.shareCases$.subscribe(( /**
|
|
2177
2177
|
* @param {?} shareCases
|
|
2178
2178
|
* @return {?}
|
|
2179
|
-
*/function (shareCases) {
|
|
2180
|
-
_this.shareCases = shareCases;
|
|
2181
|
-
_this.caseCount = _this.shareCases.length;
|
|
2182
|
-
}));
|
|
2179
|
+
*/function (shareCases) { return _this.shareCases = shareCases; }));
|
|
2183
2180
|
};
|
|
2184
2181
|
/**
|
|
2185
2182
|
* @param {?} sharedCase
|
|
@@ -2191,7 +2188,6 @@
|
|
|
2191
2188
|
*/
|
|
2192
2189
|
function (sharedCase) {
|
|
2193
2190
|
this.unselect.emit(sharedCase);
|
|
2194
|
-
this.caseCount = this.shareCases.length;
|
|
2195
2191
|
};
|
|
2196
2192
|
/**
|
|
2197
2193
|
* @param {?} event
|
|
@@ -2218,7 +2214,7 @@
|
|
|
2218
2214
|
SelectedCaseListComponent.decorators = [
|
|
2219
2215
|
{ type: i0.Component, args: [{
|
|
2220
2216
|
selector: 'xuilib-selected-case-list',
|
|
2221
|
-
template: "<ng-container *ngIf=\"!toConfirm\">\n <xuilib-selected-case\n *ngFor=\"let sharedCase of (shareCases$ | async); trackBy: trackByCaseId\"\n [sharedCase]=\"sharedCase\"\n [
|
|
2217
|
+
template: "<ng-container *ngIf=\"!toConfirm\">\n <xuilib-selected-case\n *ngFor=\"let sharedCase of (shareCases$ | async); trackBy: trackByCaseId\"\n [sharedCase]=\"sharedCase\"\n [removeUserFromCaseToggleOn]=\"removeUserFromCaseToggleOn\"\n (unselect)=\"onUnselect($event)\"\n (synchronizeStore)=\"onSynchronizeStore($event)\"\n >\n </xuilib-selected-case>\n</ng-container>\n\n<ng-container *ngIf=\"toConfirm\">\n <xuilib-selected-case-confirm\n *ngFor=\"let sharedCase of (shareCases$ | async); trackBy: trackByCaseId\"\n [sharedCase]=\"sharedCase\"\n [changeLink]=\"changeLink\">\n </xuilib-selected-case-confirm>\n</ng-container>\n",
|
|
2222
2218
|
styles: [""]
|
|
2223
2219
|
}] }
|
|
2224
2220
|
];
|
|
@@ -2632,7 +2628,7 @@
|
|
|
2632
2628
|
SelectedCaseComponent.decorators = [
|
|
2633
2629
|
{ type: i0.Component, args: [{
|
|
2634
2630
|
selector: 'xuilib-selected-case',
|
|
2635
|
-
template: "<div id=\"{{buildElementId('govuk-accordion__section')}}\" class=\"govuk-accordion__section\">\n <div class=\"govuk-grid-row govuk-case-header\">\n <div class=\"govuk-grid-column-three-quarters\">\n <h3 id=\"{{buildElementId('case-title')}}\" class=\"govuk-case-title\">{{ sharedCase.caseTitle }}</h3>\n <h1 id=\"{{buildElementId('case-id')}}\" class=\"govuk-case-sub-title\">{{ sharedCase.caseId }}</h1>\n </div>\n <div class=\"govuk-grid-column-twenty-percent\">\n <button
|
|
2631
|
+
template: "<div id=\"{{buildElementId('govuk-accordion__section')}}\" class=\"govuk-accordion__section\">\n <div class=\"govuk-grid-row govuk-case-header\">\n <div class=\"govuk-grid-column-three-quarters\">\n <h3 id=\"{{buildElementId('case-title')}}\" class=\"govuk-case-title\">{{ sharedCase.caseTitle }}</h3>\n <h1 id=\"{{buildElementId('case-id')}}\" class=\"govuk-case-sub-title\">{{ sharedCase.caseId }}</h1>\n </div>\n <div class=\"govuk-grid-column-twenty-percent\">\n <button id=\"{{buildElementId('btn-deselect-case')}}\" class=\"govuk-button hmcts-button--secondary\" (click)=\"onDeselect(sharedCase)\" title=\"Deselect case\">Deselect case</button>\n </div>\n <div class=\"govuk-accordion__section-header govuk-grid-column-five-percent\">\n <div class=\"govuk-accordion__section-heading\">\n <button type=\"button\" id=\"{{buildElementId('accordion-with-summary-sections-heading')}}\"\n aria-controls=\"accordion-with-summary-sections-content-1\" class=\"govuk-accordion__section-button\"\n aria-describedby=\"accordion-with-summary-sections-summary-1\" aria-expanded=\"false\" title=\"Expand or Collapse\">\n <span class=\"govuk-accordion__icon\" aria-hidden=\"true\"></span></button>\n </div>\n </div>\n </div>\n <div id=\"{{buildElementId('accordion-with-summary-sections-content')}}\" class=\"govuk-accordion__section-content\"\n aria-labelledby=\"buildElementId('accordion-with-summary-sections-heading')\" >\n <div class=\"govuk-grid-row\" *ngIf=\"showNoUsersAccessInfo()\">\n <span id=\"{{buildElementId('access-info-no-user')}}\" class=\"govuk-div-align-left\">No users from your organisation currently have access to this case.</span>\n </div>\n <div class=\"govuk-grid-row\" *ngIf=\"showUserHasAccessInfo()\">\n <span id=\"{{buildElementId('access-info-has-users')}}\" class=\"govuk-div-align-left\">Users from your organisation with access to this case.</span>\n </div>\n <table class=\"govuk-table\" *ngIf=\"showUserAccessTable()\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <th id=\"{{buildElementId('name-heading')}}\" class=\"govuk-table__header govuk-table-column-header\" scope=\"col\">Name</th>\n <th id=\"{{buildElementId('email-heading')}}\" class=\"govuk-table__header govuk-table-column-header\" scope=\"col\">Email address</th>\n <th id=\"{{buildElementId('action-heading')}}\" class=\"govuk-table__header govuk-table-column-actions\" scope=\"col\">Actions</th>\n <th id=\"{{buildElementId('label-heading')}}\" class=\"govuk-table__header govuk-table-column-label\" scope=\"col\"> </th>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <tr class=\"govuk-table__row\" *ngFor=\"let user of combinedSortedShares; index as idx; trackBy: trackByUserId\">\n <td id=\"user-full-name-{{ userIdSetter(canCancel(sharedCase.caseId, user) | async, idx) }}\" class=\"govuk-table__cell\">{{ user.firstName + ' ' + user.lastName }}</td>\n <td id=\"user-email-{{ userIdSetter(canCancel(sharedCase.caseId, user) | async, idx) }}\" class=\"govuk-table__cell\">{{ user.email }}</td>\n <td class=\"govuk-table__cell\">\n <a *ngIf=\"canRemove(sharedCase.caseId, user) | async\" (click)=\"onRemove(user, sharedCase)\" href=\"javascript:void(0);\">Remove <span class=\"govuk-visually-hidden\">{{ user.firstName + ' ' + user.lastName }} from case</span></a>\n <a *ngIf=\"canCancel(sharedCase.caseId, user) | async\" (click)=\"onCancel(user, sharedCase)\" href=\"javascript:void(0);\">Cancel <span class=\"govuk-visually-hidden\">adding {{ user.firstName + ' ' + user.lastName }} to case</span></a>\n </td>\n <td class=\"govuk-table__cell\">\n <span *ngIf=\"isToBeRemoved(sharedCase.caseId, user) | async\" class=\"hmcts-badge hmcts-badge--red\">To be removed</span>\n <span *ngIf=\"isToBeAdded(sharedCase.caseId, user) | async\" class=\"hmcts-badge\">To be added</span>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n</div>\n",
|
|
2636
2632
|
styles: [".govuk-case-header{border-top:1px solid #bfc1c3}.govuk-case-title{font-family:nta,Arial,sans-serif;font-size:24px;color:#005ea5;font-weight:700;padding-left:0}.govuk-case-sub-title{font-family:nta,Arial,sans-serif;font-size:1rem!important;color:#6f777b;font-weight:400;padding-left:0}.govuk-grid-row{margin-left:0;margin-right:0}.govuk-grid-column-three-quarters{padding-top:5px;padding-left:0}.govuk-grid-column-twenty-percent{box-sizing:border-box;padding-top:10px;width:20%;float:left}.govuk-grid-column-five-percent{box-sizing:border-box;padding-top:15px;width:5%;float:left}.govuk-table-column-header{width:40%}.govuk-table-column-actions,.govuk-table-column-label{width:10%}.govuk-div-align-left{font-family:nta,Arial,sans-serif;font-size:1.1875rem!important;line-height:1.31579!important;text-align:left;margin-bottom:20px;padding-left:0;color:#0b0c0c}.govuk-accordion__section-header{border-top:0}.govuk-accordion__section-content{padding-top:0}"]
|
|
2637
2633
|
}] }
|
|
2638
2634
|
];
|
|
@@ -2647,7 +2643,6 @@
|
|
|
2647
2643
|
selectedUser: [{ type: i0.Input }],
|
|
2648
2644
|
opened: [{ type: i0.Input }],
|
|
2649
2645
|
removeUserFromCaseToggleOn: [{ type: i0.Input }],
|
|
2650
|
-
caseCount: [{ type: i0.Input }],
|
|
2651
2646
|
unselect: [{ type: i0.Output }],
|
|
2652
2647
|
synchronizeStore: [{ type: i0.Output }]
|
|
2653
2648
|
};
|
|
@@ -5084,8 +5079,8 @@
|
|
|
5084
5079
|
if (!selectedPerson) {
|
|
5085
5080
|
return '';
|
|
5086
5081
|
}
|
|
5087
|
-
if (selectedPerson.domain === PersonRole.JUDICIAL && selectedPerson.
|
|
5088
|
-
return selectedPerson.
|
|
5082
|
+
if (selectedPerson.domain === PersonRole.JUDICIAL && selectedPerson.fullName) {
|
|
5083
|
+
return selectedPerson.fullName + " (" + selectedPerson.email + ")";
|
|
5089
5084
|
}
|
|
5090
5085
|
return selectedPerson.email ? selectedPerson.name + " (" + selectedPerson.email + ")" : selectedPerson.name;
|
|
5091
5086
|
};
|
|
@@ -5260,7 +5255,7 @@
|
|
|
5260
5255
|
* @param {?} judicial
|
|
5261
5256
|
* @return {?}
|
|
5262
5257
|
*/function (judicial) {
|
|
5263
|
-
if (term === judicial.
|
|
5258
|
+
if (term === judicial.fullName) {
|
|
5264
5259
|
_this.formGroup.controls.selectedFormControl.setValue(judicial);
|
|
5265
5260
|
_this.displayedJudicials = [];
|
|
5266
5261
|
_this.judicialChanged.emit(judicial);
|