@hmcts/rpx-xui-common-lib 1.7.16 → 1.7.18-caa-case-share-ui-changes
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 +7 -6
- 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/share-case/share-case.component.js +10 -3
- package/esm2015/lib/models/person.model.js +1 -3
- package/esm2015/lib/services/find-person/find-person.service.js +3 -3
- package/esm5/lib/components/share-case/share-case.component.js +10 -3
- package/esm5/lib/models/person.model.js +1 -3
- package/esm5/lib/services/find-person/find-person.service.js +3 -3
- package/fesm2015/hmcts-rpx-xui-common-lib.js +7 -6
- package/fesm2015/hmcts-rpx-xui-common-lib.js.map +1 -1
- package/fesm5/hmcts-rpx-xui-common-lib.js +7 -6
- package/fesm5/hmcts-rpx-xui-common-lib.js.map +1 -1
- package/hmcts-rpx-xui-common-lib.metadata.json +1 -1
- package/lib/components/share-case/share-case.component.d.ts +2 -0
- package/lib/models/person.model.d.ts +0 -2
- package/package.json +1 -1
|
@@ -2972,6 +2972,7 @@ var ShareCaseComponent = /** @class */ (function () {
|
|
|
2972
2972
|
this.users = []; // users of this organisation the cases can be shared with
|
|
2973
2973
|
// users of this organisation the cases can be shared with
|
|
2974
2974
|
this.confirmLink = '';
|
|
2975
|
+
this.showRemoveUsers = false;
|
|
2975
2976
|
this.unselect = new EventEmitter();
|
|
2976
2977
|
this.synchronizeStore = new EventEmitter();
|
|
2977
2978
|
}
|
|
@@ -3124,8 +3125,8 @@ var ShareCaseComponent = /** @class */ (function () {
|
|
|
3124
3125
|
ShareCaseComponent.decorators = [
|
|
3125
3126
|
{ type: Component, args: [{
|
|
3126
3127
|
selector: 'xuilib-share-case',
|
|
3127
|
-
template: "<div id=\"add-user\">\n <label class=\"govuk-label govuk-!-font-weight-bold\" for=\"add-user-input\">
|
|
3128
|
-
styles: [""]
|
|
3128
|
+
template: "<div id=\"add-user\">\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label govuk-!-font-weight-bold\" for=\"add-user-input\">{{addUserLabel}}</label>\n <span id=\"add-user-hint\" class=\"govuk-hint\">\n Search by name or email address. You can share access with as many people as you need.\n </span>\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-two-thirds\">\n <xuilib-user-select\n id=\"add-user-input\"\n aria-describedby=\"add-user-hint\"\n [users]=\"users\"\n (selected)=\"onSelectedUser($event)\">\n </xuilib-user-select>\n </div>\n <div class=\"govuk-grid-column-one-thirds\">\n <button id=\"btn-add-user\" (click)=\"addUser()\" class=\"govuk-button\" [disabled]=\"isDisabledAdd()\" title=\"Add user to selected cases\">Add</button>\n </div>\n </div>\n <details id=\"add-user-help\" class=\"govuk-details\" data-module=\"govuk-details\">\n <summary class=\"govuk-details__summary\">\n <span id=\"content-why-can-not-find-email\" class=\"govuk-details__summary-text\">\n Can't find an email address?\n </span>\n </summary>\n <div id=\"content-reason-can-not-find-email\" class=\"govuk-details__text\">\n If you can't find your colleague's email address, they will need to complete their registration. Contact your\n administrator for help.\n </div>\n </details>\n </div>\n <div class=\"govuk-form-group\" *ngIf=\"showRemoveUsers\">\n <label class=\"govuk-label govuk-!-font-weight-bold\" for=\"remove-user-input\">Remove a person from all cases</label>\n <span id=\"remove-user-hint\" class=\"govuk-hint\">\n Select a person to remove them from all selected cases.\n </span>\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-two-thirds\">\n <select class=\"govuk-select\" id=\"remove-user-input\" aria-describedby=\"remove-user-hint\">\n <option value=\"{{user}}\" *ngFor=\"let user of users\">{{user.email}}</option>\n </select>\n </div>\n <div class=\"govuk-grid-column-one-thirds\">\n <button id=\"btn-remove-user\" class=\"govuk-button\" title=\"Remove user from selected cases\">Remove</button>\n </div>\n </div>\n </div>\n</div>\n\n<div id=\"cases\">\n <h3 id=\"title-selected-cases\" class=\"govuk-heading-m\">Selected cases</h3>\n <div *ngIf=\"shareCases && shareCases.length > 0\" class=\"govuk-accordion\" data-module=\"govuk-accordion\" id=\"accordion-with-summary-sections\">\n <xuilib-selected-case-list\n [shareCases$]=\"shareCases$\"\n [removeUserFromCaseToggleOn]=\"removeUserFromCaseToggleOn\"\n (unselect)=\"onUnselect($event)\"\n (synchronizeStore)=\"onSynchronizeStore($event)\"\n >\n </xuilib-selected-case-list>\n </div>\n\n <div id=\"noCaseDisplay\" *ngIf=\"shareCases && shareCases.length === 0\" class=\"govuk-hint\">\n No cases to display.\n </div>\n\n</div>\n\n<div id=\"share-case-nav\" class=\"govuk-button-group\">\n <button class=\"govuk-button\" data-module=\"govuk-button\" [disabled]=\"isDisabledContinue()\" title=\"Continue\" [routerLink]=\"confirmLink\">Continue</button>\n <button class=\"govuk-button govuk-button--secondary\" data-module=\"govuk-button\" title=\"Cancel\">Cancel</button>\n</div>\n",
|
|
3129
|
+
styles: ["select{width:100%}"]
|
|
3129
3130
|
}] }
|
|
3130
3131
|
];
|
|
3131
3132
|
/** @nocollapse */
|
|
@@ -3137,6 +3138,8 @@ var ShareCaseComponent = /** @class */ (function () {
|
|
|
3137
3138
|
shareCases$: [{ type: Input }],
|
|
3138
3139
|
users: [{ type: Input }],
|
|
3139
3140
|
confirmLink: [{ type: Input }],
|
|
3141
|
+
addUserLabel: [{ type: Input }],
|
|
3142
|
+
showRemoveUsers: [{ type: Input }],
|
|
3140
3143
|
unselect: [{ type: Output }],
|
|
3141
3144
|
synchronizeStore: [{ type: Output }],
|
|
3142
3145
|
userSelect: [{ type: ViewChild, args: [UserSelectComponent,] }]
|
|
@@ -3738,7 +3741,6 @@ var PersonRole = {
|
|
|
3738
3741
|
JUDICIAL: "Judicial",
|
|
3739
3742
|
CASEWORKER: "Legal Ops",
|
|
3740
3743
|
ADMIN: "Admin",
|
|
3741
|
-
CTSC: "CTSC User",
|
|
3742
3744
|
ALL: "All",
|
|
3743
3745
|
};
|
|
3744
3746
|
/** @enum {string} */
|
|
@@ -3746,7 +3748,6 @@ var RoleCategory = {
|
|
|
3746
3748
|
JUDICIAL: "JUDICIAL",
|
|
3747
3749
|
CASEWORKER: "LEGAL_OPERATIONS",
|
|
3748
3750
|
ADMIN: "ADMIN",
|
|
3749
|
-
CTSC: "CTSC",
|
|
3750
3751
|
ALL: "ALL",
|
|
3751
3752
|
};
|
|
3752
3753
|
|
|
@@ -4782,7 +4783,7 @@ var FindAPersonService = /** @class */ (function () {
|
|
|
4782
4783
|
this.userId = userInfo.id ? userInfo.id : userInfo.uid;
|
|
4783
4784
|
}
|
|
4784
4785
|
this.assignedUser = searchOptions.assignedUser ? searchOptions.assignedUser : null;
|
|
4785
|
-
return this.http.post('/
|
|
4786
|
+
return this.http.post('/workallocation/findPerson', { searchOptions: searchOptions })
|
|
4786
4787
|
.pipe(map((/**
|
|
4787
4788
|
* @param {?} judiciary
|
|
4788
4789
|
* @return {?}
|
|
@@ -4841,7 +4842,7 @@ var FindAPersonService = /** @class */ (function () {
|
|
|
4841
4842
|
return of(this.searchInCaseworkers(storedCaseworkers, searchOptions));
|
|
4842
4843
|
}
|
|
4843
4844
|
// all serviceIds passed in as node layer getting used anyway and caseworkers also stored there
|
|
4844
|
-
return this.http.post('/
|
|
4845
|
+
return this.http.post('/workallocation/retrieveCaseWorkersForServices', { fullServices: fullServices }).pipe(tap((/**
|
|
4845
4846
|
* @param {?} caseworkersByService
|
|
4846
4847
|
* @return {?}
|
|
4847
4848
|
*/
|