@hmcts/rpx-xui-common-lib 3.2.9-ga-rc1 → 3.2.9-ga-rc2

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.
@@ -7671,7 +7671,7 @@ function UserDetailsComponent_Conditional_1_Conditional_15_Conditional_9_Templat
7671
7671
  i0.ɵɵadvance();
7672
7672
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "Manage fee accounts"));
7673
7673
  } }
7674
- function UserDetailsComponent_Conditional_1_Conditional_15_For_11_Template(rf, ctx) { if (rf & 1) {
7674
+ function UserDetailsComponent_Conditional_1_Conditional_15_Conditional_10_For_1_Template(rf, ctx) { if (rf & 1) {
7675
7675
  i0.ɵɵelementStart(0, "div");
7676
7676
  i0.ɵɵtext(1);
7677
7677
  i0.ɵɵpipe(2, "rpxTranslate");
@@ -7681,7 +7681,13 @@ function UserDetailsComponent_Conditional_1_Conditional_15_For_11_Template(rf, c
7681
7681
  i0.ɵɵadvance();
7682
7682
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, accesstype_r2));
7683
7683
  } }
7684
- function UserDetailsComponent_Conditional_1_Conditional_15_Conditional_12_Template(rf, ctx) { if (rf & 1) {
7684
+ function UserDetailsComponent_Conditional_1_Conditional_15_Conditional_10_Template(rf, ctx) { if (rf & 1) {
7685
+ i0.ɵɵrepeaterCreate(0, UserDetailsComponent_Conditional_1_Conditional_15_Conditional_10_For_1_Template, 3, 3, "div", null, i0.ɵɵrepeaterTrackByIdentity);
7686
+ } if (rf & 2) {
7687
+ const ctx_r0 = i0.ɵɵnextContext(3);
7688
+ i0.ɵɵrepeater(ctx_r0.enabledAccessTypes);
7689
+ } }
7690
+ function UserDetailsComponent_Conditional_1_Conditional_15_Conditional_11_Template(rf, ctx) { if (rf & 1) {
7685
7691
  i0.ɵɵelementStart(0, "dd", 11)(1, "a", 12);
7686
7692
  i0.ɵɵtext(2);
7687
7693
  i0.ɵɵpipe(3, "rpxTranslate");
@@ -7709,14 +7715,14 @@ function UserDetailsComponent_Conditional_1_Conditional_15_Template(rf, ctx) { i
7709
7715
  i0.ɵɵconditionalCreate(7, UserDetailsComponent_Conditional_1_Conditional_15_Conditional_7_Template, 3, 3, "div");
7710
7716
  i0.ɵɵconditionalCreate(8, UserDetailsComponent_Conditional_1_Conditional_15_Conditional_8_Template, 3, 3, "div");
7711
7717
  i0.ɵɵconditionalCreate(9, UserDetailsComponent_Conditional_1_Conditional_15_Conditional_9_Template, 3, 3, "div");
7712
- i0.ɵɵrepeaterCreate(10, UserDetailsComponent_Conditional_1_Conditional_15_For_11_Template, 3, 3, "div", null, i0.ɵɵrepeaterTrackByIdentity);
7718
+ i0.ɵɵconditionalCreate(10, UserDetailsComponent_Conditional_1_Conditional_15_Conditional_10_Template, 2, 0);
7713
7719
  i0.ɵɵelementEnd();
7714
- i0.ɵɵconditionalCreate(12, UserDetailsComponent_Conditional_1_Conditional_15_Conditional_12_Template, 7, 7, "dd", 11);
7720
+ i0.ɵɵconditionalCreate(11, UserDetailsComponent_Conditional_1_Conditional_15_Conditional_11_Template, 7, 7, "dd", 11);
7715
7721
  i0.ɵɵelementEnd();
7716
7722
  } if (rf & 2) {
7717
7723
  const ctx_r0 = i0.ɵɵnextContext(2);
7718
7724
  i0.ɵɵadvance(2);
7719
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 7, "Permissions"));
7725
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 8, "Permissions"));
7720
7726
  i0.ɵɵadvance(3);
7721
7727
  i0.ɵɵconditional(ctx_r0.user.manageOrganisations === "Yes" ? 5 : -1);
7722
7728
  i0.ɵɵadvance();
@@ -7728,9 +7734,9 @@ function UserDetailsComponent_Conditional_1_Conditional_15_Template(rf, ctx) { i
7728
7734
  i0.ɵɵadvance();
7729
7735
  i0.ɵɵconditional(ctx_r0.userHasRole("pui-finance-manager") ? 9 : -1);
7730
7736
  i0.ɵɵadvance();
7731
- i0.ɵɵrepeater(ctx_r0.enabledAccessTypes);
7732
- i0.ɵɵadvance(2);
7733
- i0.ɵɵconditional(ctx_r0.editPermissionRouterLink && ctx_r0.showEditLink ? 12 : -1);
7737
+ i0.ɵɵconditional(ctx_r0.ogdUpdateRefreshUserEnabled ? 10 : -1);
7738
+ i0.ɵɵadvance();
7739
+ i0.ɵɵconditional(ctx_r0.editPermissionRouterLink && ctx_r0.showEditLink ? 11 : -1);
7734
7740
  } }
7735
7741
  function UserDetailsComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
7736
7742
  i0.ɵɵelementStart(0, "dl", 1)(1, "div", 7)(2, "div", 8)(3, "dt", 9);
@@ -7748,7 +7754,7 @@ function UserDetailsComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
7748
7754
  i0.ɵɵelementStart(13, "dd", 10);
7749
7755
  i0.ɵɵtext(14);
7750
7756
  i0.ɵɵelementEnd()();
7751
- i0.ɵɵconditionalCreate(15, UserDetailsComponent_Conditional_1_Conditional_15_Template, 13, 9, "div", 8);
7757
+ i0.ɵɵconditionalCreate(15, UserDetailsComponent_Conditional_1_Conditional_15_Template, 12, 10, "div", 8);
7752
7758
  i0.ɵɵelementEnd()();
7753
7759
  } if (rf & 2) {
7754
7760
  const ctx_r0 = i0.ɵɵnextContext();
@@ -7842,7 +7848,7 @@ class UserDetailsComponent {
7842
7848
  return false;
7843
7849
  }
7844
7850
  static { this.ɵfac = function UserDetailsComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || UserDetailsComponent)(); }; }
7845
- static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UserDetailsComponent, selectors: [["xuilib-user-details"]], inputs: { user: "user", enabledAccessTypes: "enabledAccessTypes", editPermissionRouterLink: "editPermissionRouterLink", warningTitle: "warningTitle", showEditLink: "showEditLink", showHelpLink: "showHelpLink", suspendHelpLink: "suspendHelpLink", showSuspendUserButton: "showSuspendUserButton" }, outputs: { suspendUserEvent: "suspendUserEvent", reinvite: "reinvite" }, standalone: false, decls: 5, vars: 5, consts: [[1, "govuk-warning-text"], ["role", "presentation", 1, "govuk-table"], ["tabindex", "0", 1, "govuk-button", "govuk-button--warning"], [1, "govuk-body"], [1, "govuk-warning-text__icon"], [1, "govuk-visually-hidden"], [1, "govuk-warning-text__text"], [1, "govuk-table__body"], [1, "govuk-table__row"], ["scope", "row", 1, "govuk-table__header"], [1, "govuk-table__cell", "no-border-bottom"], [1, "govuk-table__cell"], ["role", "link", 3, "routerLink"], ["tabindex", "0", 1, "govuk-button", "govuk-button--warning", 3, "click", "keyup.enter"], [1, "govuk-inset-text"], ["tabindex", "0", "id", "resend-invite-button", 1, "govuk-button", 3, "click", "keyup.enter"], ["target", "_blank", 3, "routerLink"]], template: function UserDetailsComponent_Template(rf, ctx) { if (rf & 1) {
7851
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UserDetailsComponent, selectors: [["xuilib-user-details"]], inputs: { user: "user", enabledAccessTypes: "enabledAccessTypes", editPermissionRouterLink: "editPermissionRouterLink", warningTitle: "warningTitle", showEditLink: "showEditLink", showHelpLink: "showHelpLink", suspendHelpLink: "suspendHelpLink", ogdUpdateRefreshUserEnabled: "ogdUpdateRefreshUserEnabled", showSuspendUserButton: "showSuspendUserButton" }, outputs: { suspendUserEvent: "suspendUserEvent", reinvite: "reinvite" }, standalone: false, decls: 5, vars: 5, consts: [[1, "govuk-warning-text"], ["role", "presentation", 1, "govuk-table"], ["tabindex", "0", 1, "govuk-button", "govuk-button--warning"], [1, "govuk-body"], [1, "govuk-warning-text__icon"], [1, "govuk-visually-hidden"], [1, "govuk-warning-text__text"], [1, "govuk-table__body"], [1, "govuk-table__row"], ["scope", "row", 1, "govuk-table__header"], [1, "govuk-table__cell", "no-border-bottom"], [1, "govuk-table__cell"], ["role", "link", 3, "routerLink"], ["tabindex", "0", 1, "govuk-button", "govuk-button--warning", 3, "click", "keyup.enter"], [1, "govuk-inset-text"], ["tabindex", "0", "id", "resend-invite-button", 1, "govuk-button", 3, "click", "keyup.enter"], ["target", "_blank", 3, "routerLink"]], template: function UserDetailsComponent_Template(rf, ctx) { if (rf & 1) {
7846
7852
  i0.ɵɵconditionalCreate(0, UserDetailsComponent_Conditional_0_Template, 8, 3, "div", 0);
7847
7853
  i0.ɵɵconditionalCreate(1, UserDetailsComponent_Conditional_1_Template, 16, 11, "dl", 1);
7848
7854
  i0.ɵɵconditionalCreate(2, UserDetailsComponent_Conditional_2_Template, 3, 3, "button", 2);
@@ -7862,7 +7868,7 @@ class UserDetailsComponent {
7862
7868
  }
7863
7869
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(UserDetailsComponent, [{
7864
7870
  type: Component,
7865
- args: [{ selector: 'xuilib-user-details', standalone: false, template: "@if (warningTitle && warningTitle !== '') {\n <div class=\"govuk-warning-text\">\n <span class=\"govuk-warning-text__icon\">!</span>\n <span class=\"govuk-visually-hidden\">Warning</span>\n <strong class=\"govuk-warning-text__text\">\n {{ warningTitle | rpxTranslate}}\n </strong>\n </div>\n}\n@if (user) {\n <dl class=\"govuk-table\" role=\"presentation\">\n <div class=\"govuk-table__body\">\n <div class=\"govuk-table__row\">\n <dt class=\"govuk-table__header\" scope=\"row\">{{'Name' | rpxTranslate}}</dt>\n <dd class=\"govuk-table__cell no-border-bottom\">{{user.fullName | rpxTranslate}}</dd>\n </div>\n <div class=\"govuk-table__row\">\n <dt class=\"govuk-table__header\" scope=\"row\">{{'Email address' | rpxTranslate}}</dt>\n <dd class=\"govuk-table__cell no-border-bottom\">{{user.email}}</dd>\n </div>\n @if (!user.resendInvite) {\n <div class=\"govuk-table__row\">\n <dt class=\"govuk-table__header\" scope=\"row\">{{'Permissions' | rpxTranslate}}</dt>\n <dd class=\"govuk-table__cell\">\n @if (user.manageOrganisations === 'Yes') {\n <div>{{'Manage organisations' | rpxTranslate}}</div>\n }\n @if (user.manageUsers === 'Yes') {\n <div>{{'Manage users' | rpxTranslate}}</div>\n }\n @if (user.manageCases === 'Yes') {\n <div>{{'Manage cases' | rpxTranslate}}</div>\n }\n @if (userHasRole('pui-caa')) {\n <div>{{'Case access administrator' | rpxTranslate}}</div>\n }\n @if (userHasRole('pui-finance-manager')) {\n <div>{{'Manage fee accounts' | rpxTranslate}}</div>\n }\n @for (accesstype of enabledAccessTypes; track accesstype) {\n <div>{{ accesstype | rpxTranslate}}</div>\n }\n </dd>\n @if (editPermissionRouterLink && showEditLink) {\n <dd class=\"govuk-table__cell\">\n <a role=\"link\" [routerLink]=\"editPermissionRouterLink\">{{'Change' | rpxTranslate}} <span class=\"govuk-visually-hidden\">{{'roles' | rpxTranslate}}</span></a>\n </dd>\n }\n </div>\n }\n </div>\n </dl>\n}\n@if (showSuspendUserButton) {\n <button class=\"govuk-button govuk-button--warning\" tabindex=\"0\" (click)=\"suspendUser(user)\" (keyup.enter)=\"suspendUser(user)\">\n {{'Suspend account' | rpxTranslate}}\n </button>\n}\n@if (user && user.resendInvite) {\n <div>\n <div class=\"govuk-inset-text\">\n <p>{{'This user has already been invited but has not activated their account.' | rpxTranslate}}</p>\n <p>{{'If you resend an invitation, they\\'ll receive an email from HM Courts and Tribunals to finish setting up their account.' | rpxTranslate}}</p>\n <p>{{'You can\\'t invite the same user more than once an hour.' | rpxTranslate}}</p>\n </div>\n <button class=\"govuk-button\" tabindex=\"0\" (click)=\"reinviteClick(user)\" (keyup.enter)=\"reinviteClick(user)\" id=\"resend-invite-button\">\n {{'Resend invitation' | rpxTranslate}}\n </button>\n </div>\n}\n@if (showHelpLink && suspendHelpLink) {\n <p class=\"govuk-body\"><a [routerLink]=\"suspendHelpLink\" target=\"_blank\">{{'Get help' | rpxTranslate}}</a> {{'to reactivate this account.' | rpxTranslate}}</p>\n}\n", styles: [":host{display:block}.no-border-bottom{border-bottom:none}\n"] }]
7871
+ args: [{ selector: 'xuilib-user-details', standalone: false, template: "@if (warningTitle && warningTitle !== '') {\n <div class=\"govuk-warning-text\">\n <span class=\"govuk-warning-text__icon\">!</span>\n <span class=\"govuk-visually-hidden\">Warning</span>\n <strong class=\"govuk-warning-text__text\">\n {{ warningTitle | rpxTranslate}}\n </strong>\n </div>\n}\n@if (user) {\n <dl class=\"govuk-table\" role=\"presentation\">\n <div class=\"govuk-table__body\">\n <div class=\"govuk-table__row\">\n <dt class=\"govuk-table__header\" scope=\"row\">{{'Name' | rpxTranslate}}</dt>\n <dd class=\"govuk-table__cell no-border-bottom\">{{user.fullName | rpxTranslate}}</dd>\n </div>\n <div class=\"govuk-table__row\">\n <dt class=\"govuk-table__header\" scope=\"row\">{{'Email address' | rpxTranslate}}</dt>\n <dd class=\"govuk-table__cell no-border-bottom\">{{user.email}}</dd>\n </div>\n @if (!user.resendInvite) {\n <div class=\"govuk-table__row\">\n <dt class=\"govuk-table__header\" scope=\"row\">{{'Permissions' | rpxTranslate}}</dt>\n <dd class=\"govuk-table__cell\">\n @if (user.manageOrganisations === 'Yes') {\n <div>{{'Manage organisations' | rpxTranslate}}</div>\n }\n @if (user.manageUsers === 'Yes') {\n <div>{{'Manage users' | rpxTranslate}}</div>\n }\n @if (user.manageCases === 'Yes') {\n <div>{{'Manage cases' | rpxTranslate}}</div>\n }\n @if (userHasRole('pui-caa')) {\n <div>{{'Case access administrator' | rpxTranslate}}</div>\n }\n @if (userHasRole('pui-finance-manager')) {\n <div>{{'Manage fee accounts' | rpxTranslate}}</div>\n }\n @if (ogdUpdateRefreshUserEnabled){\n @for (accesstype of enabledAccessTypes; track accesstype) {\n <div>{{ accesstype | rpxTranslate}}</div>\n }\n }\n </dd>\n @if (editPermissionRouterLink && showEditLink) {\n <dd class=\"govuk-table__cell\">\n <a role=\"link\" [routerLink]=\"editPermissionRouterLink\">{{'Change' | rpxTranslate}} <span class=\"govuk-visually-hidden\">{{'roles' | rpxTranslate}}</span></a>\n </dd>\n }\n </div>\n }\n </div>\n </dl>\n}\n@if (showSuspendUserButton) {\n <button class=\"govuk-button govuk-button--warning\" tabindex=\"0\" (click)=\"suspendUser(user)\" (keyup.enter)=\"suspendUser(user)\">\n {{'Suspend account' | rpxTranslate}}\n </button>\n}\n@if (user && user.resendInvite) {\n <div>\n <div class=\"govuk-inset-text\">\n <p>{{'This user has already been invited but has not activated their account.' | rpxTranslate}}</p>\n <p>{{'If you resend an invitation, they\\'ll receive an email from HM Courts and Tribunals to finish setting up their account.' | rpxTranslate}}</p>\n <p>{{'You can\\'t invite the same user more than once an hour.' | rpxTranslate}}</p>\n </div>\n <button class=\"govuk-button\" tabindex=\"0\" (click)=\"reinviteClick(user)\" (keyup.enter)=\"reinviteClick(user)\" id=\"resend-invite-button\">\n {{'Resend invitation' | rpxTranslate}}\n </button>\n </div>\n}\n@if (showHelpLink && suspendHelpLink) {\n <p class=\"govuk-body\"><a [routerLink]=\"suspendHelpLink\" target=\"_blank\">{{'Get help' | rpxTranslate}}</a> {{'to reactivate this account.' | rpxTranslate}}</p>\n}\n", styles: [":host{display:block}.no-border-bottom{border-bottom:none}\n"] }]
7866
7872
  }], null, { user: [{
7867
7873
  type: Input
7868
7874
  }], enabledAccessTypes: [{
@@ -7877,6 +7883,8 @@ class UserDetailsComponent {
7877
7883
  type: Input
7878
7884
  }], suspendHelpLink: [{
7879
7885
  type: Input
7886
+ }], ogdUpdateRefreshUserEnabled: [{
7887
+ type: Input
7880
7888
  }], suspendUserEvent: [{
7881
7889
  type: Output
7882
7890
  }], showSuspendUserButton: [{