@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.
@@ -3071,6 +3071,7 @@
3071
3071
  this.users = []; // users of this organisation the cases can be shared with
3072
3072
  // users of this organisation the cases can be shared with
3073
3073
  this.confirmLink = '';
3074
+ this.showRemoveUsers = false;
3074
3075
  this.unselect = new i0.EventEmitter();
3075
3076
  this.synchronizeStore = new i0.EventEmitter();
3076
3077
  }
@@ -3233,8 +3234,8 @@
3233
3234
  ShareCaseComponent.decorators = [
3234
3235
  { type: i0.Component, args: [{
3235
3236
  selector: 'xuilib-share-case',
3236
- template: "<div id=\"add-user\">\n <label class=\"govuk-label govuk-!-font-weight-bold\" for=\"add-user-input\">Enter email address</label>\n <span id=\"add-user-hint\" class=\"govuk-hint\">\n Search by name or email address. You can only add people from your organisation individually - but you can add as many as you like.\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 the case\">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\u2019t 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\u2019t find your colleague\u2019s email address, they will need to complete their registration. Contact your\n administrator for help.\n </div>\n </details>\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\">\n <button class=\"govuk-button\" [disabled]=\"isDisabledContinue()\" title=\"Continue\" [routerLink]=\"confirmLink\">Continue</button>\n</div>\n",
3237
- styles: [""]
3237
+ 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",
3238
+ styles: ["select{width:100%}"]
3238
3239
  }] }
3239
3240
  ];
3240
3241
  /** @nocollapse */
@@ -3248,6 +3249,8 @@
3248
3249
  shareCases$: [{ type: i0.Input }],
3249
3250
  users: [{ type: i0.Input }],
3250
3251
  confirmLink: [{ type: i0.Input }],
3252
+ addUserLabel: [{ type: i0.Input }],
3253
+ showRemoveUsers: [{ type: i0.Input }],
3251
3254
  unselect: [{ type: i0.Output }],
3252
3255
  synchronizeStore: [{ type: i0.Output }],
3253
3256
  userSelect: [{ type: i0.ViewChild, args: [UserSelectComponent,] }]
@@ -3833,7 +3836,6 @@
3833
3836
  JUDICIAL: "Judicial",
3834
3837
  CASEWORKER: "Legal Ops",
3835
3838
  ADMIN: "Admin",
3836
- CTSC: "CTSC User",
3837
3839
  ALL: "All",
3838
3840
  };
3839
3841
  /** @enum {string} */
@@ -3841,7 +3843,6 @@
3841
3843
  JUDICIAL: "JUDICIAL",
3842
3844
  CASEWORKER: "LEGAL_OPERATIONS",
3843
3845
  ADMIN: "ADMIN",
3844
- CTSC: "CTSC",
3845
3846
  ALL: "ALL",
3846
3847
  };
3847
3848
 
@@ -4821,7 +4822,7 @@
4821
4822
  this.userId = userInfo.id ? userInfo.id : userInfo.uid;
4822
4823
  }
4823
4824
  this.assignedUser = searchOptions.assignedUser ? searchOptions.assignedUser : null;
4824
- return this.http.post('/workallocation2/findPerson', { searchOptions: searchOptions })
4825
+ return this.http.post('/workallocation/findPerson', { searchOptions: searchOptions })
4825
4826
  .pipe(operators.map(( /**
4826
4827
  * @param {?} judiciary
4827
4828
  * @return {?}
@@ -4879,7 +4880,7 @@
4879
4880
  return rxjs.of(this.searchInCaseworkers(storedCaseworkers, searchOptions));
4880
4881
  }
4881
4882
  // all serviceIds passed in as node layer getting used anyway and caseworkers also stored there
4882
- return this.http.post('/workallocation2/retrieveCaseWorkersForServices', { fullServices: fullServices }).pipe(operators.tap(( /**
4883
+ return this.http.post('/workallocation/retrieveCaseWorkersForServices', { fullServices: fullServices }).pipe(operators.tap(( /**
4883
4884
  * @param {?} caseworkersByService
4884
4885
  * @return {?}
4885
4886
  */function (caseworkersByService) {