@hmcts/ccd-case-ui-toolkit 7.4.27 → 7.4.28-exui-3768-tab-order-v2
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/fesm2022/hmcts-ccd-case-ui-toolkit.mjs +126 -104
- package/fesm2022/hmcts-ccd-case-ui-toolkit.mjs.map +1 -1
- package/index.d.ts +13 -2
- package/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -41301,146 +41301,120 @@ function CaseFullAccessViewComponent_div_9_Template(rf, ctx) { if (rf & 1) {
|
|
|
41301
41301
|
i0.ɵɵadvance(2);
|
|
41302
41302
|
i0.ɵɵproperty("notificationBannerConfig", ctx_r1.notificationBannerConfig);
|
|
41303
41303
|
} }
|
|
41304
|
-
function
|
|
41305
|
-
i0.ɵɵ
|
|
41306
|
-
i0.ɵɵelement(1, "exui-tasks-ce");
|
|
41307
|
-
i0.ɵɵelementContainerEnd();
|
|
41304
|
+
function CaseFullAccessViewComponent_ng_container_12_mat_tab_3_ng_template_3_exui_tasks_ce_1_Template(rf, ctx) { if (rf & 1) {
|
|
41305
|
+
i0.ɵɵelement(0, "exui-tasks-ce");
|
|
41308
41306
|
} }
|
|
41309
|
-
function
|
|
41310
|
-
i0.ɵɵ
|
|
41311
|
-
i0.ɵɵelement(1, "exui-roles-and-access-ce");
|
|
41312
|
-
i0.ɵɵelementContainerEnd();
|
|
41307
|
+
function CaseFullAccessViewComponent_ng_container_12_mat_tab_3_ng_template_3_exui_roles_and_access_ce_2_Template(rf, ctx) { if (rf & 1) {
|
|
41308
|
+
i0.ɵɵelement(0, "exui-roles-and-access-ce");
|
|
41313
41309
|
} }
|
|
41314
|
-
function
|
|
41315
|
-
i0.ɵɵ
|
|
41316
|
-
} if (rf & 2) {
|
|
41317
|
-
const tab_r6 = i0.ɵɵnextContext().$implicit;
|
|
41318
|
-
i0.ɵɵproperty("ngIf", tab_r6.id === "tasks");
|
|
41319
|
-
i0.ɵɵadvance();
|
|
41320
|
-
i0.ɵɵproperty("ngIf", tab_r6.id === "roles-and-access");
|
|
41310
|
+
function CaseFullAccessViewComponent_ng_container_12_mat_tab_3_ng_template_3_exui_case_hearings_ce_3_Template(rf, ctx) { if (rf & 1) {
|
|
41311
|
+
i0.ɵɵelement(0, "exui-case-hearings-ce");
|
|
41321
41312
|
} }
|
|
41322
|
-
function
|
|
41323
|
-
i0.ɵɵelementStart(0, "
|
|
41324
|
-
i0.ɵɵpipe(1, "rpxTranslate");
|
|
41325
|
-
i0.ɵɵtemplate(2, CaseFullAccessViewComponent_ng_container_12_mat_tab_3_ng_template_2_Template, 2, 2, "ng-template", 28);
|
|
41326
|
-
i0.ɵɵelementEnd();
|
|
41327
|
-
} if (rf & 2) {
|
|
41328
|
-
const tab_r6 = ctx.$implicit;
|
|
41329
|
-
i0.ɵɵproperty("label", i0.ɵɵpipeBind1(1, 2, tab_r6.label));
|
|
41330
|
-
i0.ɵɵattribute("data-case-tab-id", tab_r6.id);
|
|
41331
|
-
} }
|
|
41332
|
-
function CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_3_ng_container_3_tr_4_th_1_Template(rf, ctx) { if (rf & 1) {
|
|
41333
|
-
i0.ɵɵelementStart(0, "th", 38)(1, "div", 39);
|
|
41313
|
+
function CaseFullAccessViewComponent_ng_container_12_mat_tab_3_ng_template_3_table_4_ng_container_3_tr_4_th_1_Template(rf, ctx) { if (rf & 1) {
|
|
41314
|
+
i0.ɵɵelementStart(0, "th", 37)(1, "div", 38);
|
|
41334
41315
|
i0.ɵɵtext(2);
|
|
41335
41316
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
41336
41317
|
i0.ɵɵelementEnd()();
|
|
41337
41318
|
} if (rf & 2) {
|
|
41338
|
-
const
|
|
41339
|
-
i0.ɵɵproperty("id", "case-viewer-field-label--" +
|
|
41319
|
+
const field_r6 = i0.ɵɵnextContext(2).$implicit;
|
|
41320
|
+
i0.ɵɵproperty("id", "case-viewer-field-label--" + field_r6.id);
|
|
41340
41321
|
i0.ɵɵadvance(2);
|
|
41341
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 2,
|
|
41322
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 2, field_r6.label));
|
|
41342
41323
|
} }
|
|
41343
|
-
function
|
|
41324
|
+
function CaseFullAccessViewComponent_ng_container_12_mat_tab_3_ng_template_3_table_4_ng_container_3_tr_4_Template(rf, ctx) { if (rf & 1) {
|
|
41344
41325
|
i0.ɵɵelementStart(0, "tr");
|
|
41345
|
-
i0.ɵɵtemplate(1,
|
|
41346
|
-
i0.ɵɵelementStart(2, "td",
|
|
41347
|
-
i0.ɵɵelement(4, "ccd-field-read",
|
|
41326
|
+
i0.ɵɵtemplate(1, CaseFullAccessViewComponent_ng_container_12_mat_tab_3_ng_template_3_table_4_ng_container_3_tr_4_th_1_Template, 4, 4, "th", 33);
|
|
41327
|
+
i0.ɵɵelementStart(2, "td", 34)(3, "span", 35);
|
|
41328
|
+
i0.ɵɵelement(4, "ccd-field-read", 36);
|
|
41348
41329
|
i0.ɵɵelementEnd()()();
|
|
41349
41330
|
} if (rf & 2) {
|
|
41350
|
-
const
|
|
41351
|
-
const ctx_r1 = i0.ɵɵnextContext(
|
|
41331
|
+
const field_r6 = i0.ɵɵnextContext().$implicit;
|
|
41332
|
+
const ctx_r1 = i0.ɵɵnextContext(5);
|
|
41352
41333
|
i0.ɵɵadvance();
|
|
41353
|
-
i0.ɵɵproperty("ngIf", !ctx_r1.isFieldToHaveNoLabel(
|
|
41334
|
+
i0.ɵɵproperty("ngIf", !ctx_r1.isFieldToHaveNoLabel(field_r6) && field_r6.label);
|
|
41354
41335
|
i0.ɵɵadvance();
|
|
41355
|
-
i0.ɵɵproperty("id", "case-viewer-field-read--" +
|
|
41336
|
+
i0.ɵɵproperty("id", "case-viewer-field-read--" + field_r6.id);
|
|
41356
41337
|
i0.ɵɵadvance(2);
|
|
41357
|
-
i0.ɵɵproperty("topLevelFormGroup", ctx_r1.formGroup == null ? null : ctx_r1.formGroup.controls["data"])("caseFields", ctx_r1.caseFields)("caseField",
|
|
41338
|
+
i0.ɵɵproperty("topLevelFormGroup", ctx_r1.formGroup == null ? null : ctx_r1.formGroup.controls["data"])("caseFields", ctx_r1.caseFields)("caseField", field_r6)("caseReference", ctx_r1.caseDetails.case_id);
|
|
41358
41339
|
} }
|
|
41359
|
-
function
|
|
41360
|
-
i0.ɵɵelementStart(0, "tr",
|
|
41340
|
+
function CaseFullAccessViewComponent_ng_container_12_mat_tab_3_ng_template_3_table_4_ng_container_3_tr_5_Template(rf, ctx) { if (rf & 1) {
|
|
41341
|
+
i0.ɵɵelementStart(0, "tr", 39)(1, "td", 40);
|
|
41361
41342
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
41362
|
-
i0.ɵɵelementStart(3, "span",
|
|
41363
|
-
i0.ɵɵelement(4, "ccd-field-read",
|
|
41343
|
+
i0.ɵɵelementStart(3, "span", 35);
|
|
41344
|
+
i0.ɵɵelement(4, "ccd-field-read", 36);
|
|
41364
41345
|
i0.ɵɵelementEnd()()();
|
|
41365
41346
|
} if (rf & 2) {
|
|
41366
|
-
const
|
|
41367
|
-
const ctx_r1 = i0.ɵɵnextContext(
|
|
41347
|
+
const field_r6 = i0.ɵɵnextContext().$implicit;
|
|
41348
|
+
const ctx_r1 = i0.ɵɵnextContext(5);
|
|
41368
41349
|
i0.ɵɵadvance();
|
|
41369
|
-
i0.ɵɵproperty("id", "case-viewer-field-read--" +
|
|
41370
|
-
i0.ɵɵattribute("aria-label", i0.ɵɵpipeBind1(2, 6,
|
|
41350
|
+
i0.ɵɵproperty("id", "case-viewer-field-read--" + field_r6.id);
|
|
41351
|
+
i0.ɵɵattribute("aria-label", i0.ɵɵpipeBind1(2, 6, field_r6.label || field_r6.id));
|
|
41371
41352
|
i0.ɵɵadvance(3);
|
|
41372
|
-
i0.ɵɵproperty("topLevelFormGroup", ctx_r1.formGroup.controls["data"])("caseFields", ctx_r1.caseFields)("caseField",
|
|
41353
|
+
i0.ɵɵproperty("topLevelFormGroup", ctx_r1.formGroup.controls["data"])("caseFields", ctx_r1.caseFields)("caseField", field_r6)("caseReference", ctx_r1.caseDetails.case_id);
|
|
41373
41354
|
} }
|
|
41374
|
-
function
|
|
41355
|
+
function CaseFullAccessViewComponent_ng_container_12_mat_tab_3_ng_template_3_table_4_ng_container_3_Template(rf, ctx) { if (rf & 1) {
|
|
41375
41356
|
i0.ɵɵelementContainerStart(0);
|
|
41376
|
-
i0.ɵɵelementStart(1, "div",
|
|
41377
|
-
i0.ɵɵelementContainerStart(2,
|
|
41357
|
+
i0.ɵɵelementStart(1, "div", 31);
|
|
41358
|
+
i0.ɵɵelementContainerStart(2, 28);
|
|
41378
41359
|
i0.ɵɵpipe(3, "ccdIsCompound");
|
|
41379
|
-
i0.ɵɵtemplate(4,
|
|
41360
|
+
i0.ɵɵtemplate(4, CaseFullAccessViewComponent_ng_container_12_mat_tab_3_ng_template_3_table_4_ng_container_3_tr_4_Template, 5, 6, "tr", 29)(5, CaseFullAccessViewComponent_ng_container_12_mat_tab_3_ng_template_3_table_4_ng_container_3_tr_5_Template, 5, 8, "tr", 32);
|
|
41380
41361
|
i0.ɵɵelementContainerEnd();
|
|
41381
41362
|
i0.ɵɵelementEnd();
|
|
41382
41363
|
i0.ɵɵelementContainerEnd();
|
|
41383
41364
|
} if (rf & 2) {
|
|
41384
|
-
const
|
|
41385
|
-
const ctx_r1 = i0.ɵɵnextContext(
|
|
41365
|
+
const field_r6 = ctx.$implicit;
|
|
41366
|
+
const ctx_r1 = i0.ɵɵnextContext(5);
|
|
41386
41367
|
i0.ɵɵadvance();
|
|
41387
|
-
i0.ɵɵproperty("caseField",
|
|
41368
|
+
i0.ɵɵproperty("caseField", field_r6)("contextFields", ctx_r1.caseFields)("hidden", field_r6.hidden);
|
|
41388
41369
|
i0.ɵɵadvance();
|
|
41389
|
-
i0.ɵɵproperty("ngSwitch", !i0.ɵɵpipeBind1(3, 6,
|
|
41370
|
+
i0.ɵɵproperty("ngSwitch", !i0.ɵɵpipeBind1(3, 6, field_r6));
|
|
41390
41371
|
i0.ɵɵadvance(2);
|
|
41391
41372
|
i0.ɵɵproperty("ngSwitchCase", true);
|
|
41392
41373
|
i0.ɵɵadvance();
|
|
41393
41374
|
i0.ɵɵproperty("ngSwitchCase", false);
|
|
41394
41375
|
} }
|
|
41395
|
-
function
|
|
41376
|
+
function CaseFullAccessViewComponent_ng_container_12_mat_tab_3_ng_template_3_table_4_Template(rf, ctx) { if (rf & 1) {
|
|
41396
41377
|
i0.ɵɵelementStart(0, "table");
|
|
41397
41378
|
i0.ɵɵpipe(1, "rpxTranslate");
|
|
41398
41379
|
i0.ɵɵelementStart(2, "tbody");
|
|
41399
|
-
i0.ɵɵtemplate(3,
|
|
41380
|
+
i0.ɵɵtemplate(3, CaseFullAccessViewComponent_ng_container_12_mat_tab_3_ng_template_3_table_4_ng_container_3_Template, 6, 8, "ng-container", 19);
|
|
41400
41381
|
i0.ɵɵpipe(4, "ccdTabFields");
|
|
41401
41382
|
i0.ɵɵpipe(5, "ccdReadFieldsFilter");
|
|
41402
41383
|
i0.ɵɵelementEnd()();
|
|
41403
41384
|
} if (rf & 2) {
|
|
41404
|
-
const
|
|
41385
|
+
const viewerTab_r7 = i0.ɵɵnextContext(2).$implicit;
|
|
41405
41386
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
41406
|
-
i0.ɵɵclassMap(
|
|
41387
|
+
i0.ɵɵclassMap(viewerTab_r7.tab.id);
|
|
41407
41388
|
i0.ɵɵattribute("aria-label", i0.ɵɵpipeBind1(1, 4, "case viewer table"));
|
|
41408
41389
|
i0.ɵɵadvance(3);
|
|
41409
|
-
i0.ɵɵproperty("ngForOf", i0.ɵɵpipeBindV(5, 8, i0.ɵɵpureFunction2(14, _c1$3, i0.ɵɵpipeBind1(4, 6,
|
|
41390
|
+
i0.ɵɵproperty("ngForOf", i0.ɵɵpipeBindV(5, 8, i0.ɵɵpureFunction2(14, _c1$3, i0.ɵɵpipeBind1(4, 6, viewerTab_r7.tab), ctx_r1.formGroup == null ? null : ctx_r1.formGroup.controls["data"])));
|
|
41410
41391
|
} }
|
|
41411
|
-
function
|
|
41412
|
-
i0.ɵɵ
|
|
41413
|
-
i0.ɵɵ
|
|
41414
|
-
i0.ɵɵpipe(2, "rpxTranslate");
|
|
41415
|
-
i0.ɵɵtemplate(3, CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_3_Template, 6, 17, "ng-template", 28);
|
|
41416
|
-
i0.ɵɵelementEnd();
|
|
41417
|
-
} if (rf & 2) {
|
|
41418
|
-
const tab_r8 = ctx.$implicit;
|
|
41419
|
-
const curIdx_r9 = ctx.index;
|
|
41420
|
-
i0.ɵɵproperty("label", i0.ɵɵpipeBind1(1, 3, tab_r8.label));
|
|
41421
|
-
i0.ɵɵariaProperty("aria-label", curIdx_r9 === 0 ? tab_r8.label + ", Please use left and right arrow keys to navigate case tabs" : i0.ɵɵpipeBind1(2, 5, ""));
|
|
41422
|
-
i0.ɵɵattribute("data-case-tab-id", tab_r8.id);
|
|
41423
|
-
} }
|
|
41424
|
-
function CaseFullAccessViewComponent_ng_container_12_mat_tab_5_ng_template_2_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
|
41425
|
-
i0.ɵɵelementContainerStart(0);
|
|
41426
|
-
i0.ɵɵelement(1, "exui-case-hearings-ce");
|
|
41392
|
+
function CaseFullAccessViewComponent_ng_container_12_mat_tab_3_ng_template_3_Template(rf, ctx) { if (rf & 1) {
|
|
41393
|
+
i0.ɵɵelementContainerStart(0, 28);
|
|
41394
|
+
i0.ɵɵtemplate(1, CaseFullAccessViewComponent_ng_container_12_mat_tab_3_ng_template_3_exui_tasks_ce_1_Template, 1, 0, "exui-tasks-ce", 29)(2, CaseFullAccessViewComponent_ng_container_12_mat_tab_3_ng_template_3_exui_roles_and_access_ce_2_Template, 1, 0, "exui-roles-and-access-ce", 29)(3, CaseFullAccessViewComponent_ng_container_12_mat_tab_3_ng_template_3_exui_case_hearings_ce_3_Template, 1, 0, "exui-case-hearings-ce", 29)(4, CaseFullAccessViewComponent_ng_container_12_mat_tab_3_ng_template_3_table_4_Template, 6, 17, "table", 30);
|
|
41427
41395
|
i0.ɵɵelementContainerEnd();
|
|
41428
|
-
} }
|
|
41429
|
-
function CaseFullAccessViewComponent_ng_container_12_mat_tab_5_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
|
41430
|
-
i0.ɵɵtemplate(0, CaseFullAccessViewComponent_ng_container_12_mat_tab_5_ng_template_2_ng_container_0_Template, 2, 0, "ng-container", 11);
|
|
41431
41396
|
} if (rf & 2) {
|
|
41432
|
-
const
|
|
41433
|
-
i0.ɵɵproperty("
|
|
41397
|
+
const viewerTab_r7 = i0.ɵɵnextContext().$implicit;
|
|
41398
|
+
i0.ɵɵproperty("ngSwitch", viewerTab_r7.contentType);
|
|
41399
|
+
i0.ɵɵadvance();
|
|
41400
|
+
i0.ɵɵproperty("ngSwitchCase", "tasks");
|
|
41401
|
+
i0.ɵɵadvance();
|
|
41402
|
+
i0.ɵɵproperty("ngSwitchCase", "roles-and-access");
|
|
41403
|
+
i0.ɵɵadvance();
|
|
41404
|
+
i0.ɵɵproperty("ngSwitchCase", "hearings");
|
|
41434
41405
|
} }
|
|
41435
|
-
function
|
|
41436
|
-
i0.ɵɵelementStart(0, "mat-tab",
|
|
41406
|
+
function CaseFullAccessViewComponent_ng_container_12_mat_tab_3_Template(rf, ctx) { if (rf & 1) {
|
|
41407
|
+
i0.ɵɵelementStart(0, "mat-tab", 26);
|
|
41437
41408
|
i0.ɵɵpipe(1, "rpxTranslate");
|
|
41438
|
-
i0.ɵɵ
|
|
41409
|
+
i0.ɵɵpipe(2, "rpxTranslate");
|
|
41410
|
+
i0.ɵɵtemplate(3, CaseFullAccessViewComponent_ng_container_12_mat_tab_3_ng_template_3_Template, 5, 4, "ng-template", 27);
|
|
41439
41411
|
i0.ɵɵelementEnd();
|
|
41440
41412
|
} if (rf & 2) {
|
|
41441
|
-
const
|
|
41442
|
-
|
|
41443
|
-
i0.ɵɵ
|
|
41413
|
+
const viewerTab_r7 = ctx.$implicit;
|
|
41414
|
+
const curIdx_r8 = ctx.index;
|
|
41415
|
+
i0.ɵɵproperty("label", i0.ɵɵpipeBind1(1, 3, viewerTab_r7.tab.label));
|
|
41416
|
+
i0.ɵɵariaProperty("aria-label", curIdx_r8 === 0 ? viewerTab_r7.tab.label + ", Please use left and right arrow keys to navigate case tabs" : i0.ɵɵpipeBind1(2, 5, ""));
|
|
41417
|
+
i0.ɵɵattribute("data-case-tab-id", viewerTab_r7.tab.id);
|
|
41444
41418
|
} }
|
|
41445
41419
|
function CaseFullAccessViewComponent_ng_container_12_Template(rf, ctx) { if (rf & 1) {
|
|
41446
41420
|
const _r5 = i0.ɵɵgetCurrentView();
|
|
@@ -41448,7 +41422,7 @@ function CaseFullAccessViewComponent_ng_container_12_Template(rf, ctx) { if (rf
|
|
|
41448
41422
|
i0.ɵɵelementStart(1, "mat-tab-group", 24, 0);
|
|
41449
41423
|
i0.ɵɵlistener("selectedIndexChange", function CaseFullAccessViewComponent_ng_container_12_Template_mat_tab_group_selectedIndexChange_1_listener($event) { i0.ɵɵrestoreView(_r5); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.tabChanged($event)); });
|
|
41450
41424
|
i0.ɵɵtwoWayListener("selectedIndexChange", function CaseFullAccessViewComponent_ng_container_12_Template_mat_tab_group_selectedIndexChange_1_listener($event) { i0.ɵɵrestoreView(_r5); const ctx_r1 = i0.ɵɵnextContext(); i0.ɵɵtwoWayBindingSet(ctx_r1.selectedTabIndex, $event) || (ctx_r1.selectedTabIndex = $event); return i0.ɵɵresetView($event); });
|
|
41451
|
-
i0.ɵɵtemplate(3, CaseFullAccessViewComponent_ng_container_12_mat_tab_3_Template,
|
|
41425
|
+
i0.ɵɵtemplate(3, CaseFullAccessViewComponent_ng_container_12_mat_tab_3_Template, 4, 7, "mat-tab", 25);
|
|
41452
41426
|
i0.ɵɵelementEnd();
|
|
41453
41427
|
i0.ɵɵelementContainerEnd();
|
|
41454
41428
|
} if (rf & 2) {
|
|
@@ -41458,11 +41432,7 @@ function CaseFullAccessViewComponent_ng_container_12_Template(rf, ctx) { if (rf
|
|
|
41458
41432
|
i0.ɵɵtwoWayProperty("selectedIndex", ctx_r1.selectedTabIndex);
|
|
41459
41433
|
i0.ɵɵproperty("selectedIndex", ctx_r1.selectedTabIndex);
|
|
41460
41434
|
i0.ɵɵadvance(2);
|
|
41461
|
-
i0.ɵɵproperty("ngForOf", ctx_r1.
|
|
41462
|
-
i0.ɵɵadvance();
|
|
41463
|
-
i0.ɵɵproperty("ngForOf", ctx_r1.sortedTabs);
|
|
41464
|
-
i0.ɵɵadvance();
|
|
41465
|
-
i0.ɵɵproperty("ngForOf", ctx_r1.appendedTabs);
|
|
41435
|
+
i0.ɵɵproperty("ngForOf", ctx_r1.viewerTabs);
|
|
41466
41436
|
} }
|
|
41467
41437
|
class CaseFullAccessViewComponent {
|
|
41468
41438
|
ngZone;
|
|
@@ -41497,6 +41467,7 @@ class CaseFullAccessViewComponent {
|
|
|
41497
41467
|
appendedTabs = [];
|
|
41498
41468
|
BANNER = DisplayMode.BANNER;
|
|
41499
41469
|
sortedTabs;
|
|
41470
|
+
viewerTabs;
|
|
41500
41471
|
caseFields;
|
|
41501
41472
|
formGroup;
|
|
41502
41473
|
error;
|
|
@@ -41572,7 +41543,10 @@ class CaseFullAccessViewComponent {
|
|
|
41572
41543
|
this.caseFlagStateService.resetInitialCaseFlags();
|
|
41573
41544
|
}
|
|
41574
41545
|
ngOnChanges(changes) {
|
|
41575
|
-
|
|
41546
|
+
const caseDetailsChanged = changes?.caseDetails && !changes.caseDetails.firstChange;
|
|
41547
|
+
const prependedTabsChanged = changes?.prependedTabs && !changes.prependedTabs.firstChange;
|
|
41548
|
+
const appendedTabsChanged = changes?.appendedTabs && !changes.appendedTabs.firstChange;
|
|
41549
|
+
if (caseDetailsChanged || prependedTabsChanged || appendedTabsChanged) {
|
|
41576
41550
|
this.init();
|
|
41577
41551
|
this.crf.detectChanges();
|
|
41578
41552
|
this.organiseTabPosition();
|
|
@@ -41688,7 +41662,7 @@ class CaseFullAccessViewComponent {
|
|
|
41688
41662
|
}
|
|
41689
41663
|
}
|
|
41690
41664
|
hasTabsPresent() {
|
|
41691
|
-
return this.
|
|
41665
|
+
return this.viewerTabs.length > 0;
|
|
41692
41666
|
}
|
|
41693
41667
|
callbackErrorsNotify(callbackErrorsContext) {
|
|
41694
41668
|
this.ignoreWarning = callbackErrorsContext.ignoreWarning;
|
|
@@ -41878,11 +41852,52 @@ class CaseFullAccessViewComponent {
|
|
|
41878
41852
|
this.sortedTabs = this.orderService.sort(this.caseDetails?.tabs);
|
|
41879
41853
|
this.caseFields = this.getTabFields();
|
|
41880
41854
|
this.sortedTabs = this.sortTabFieldsAndFilterTabs(this.sortedTabs);
|
|
41855
|
+
this.viewerTabs = this.buildViewerTabs();
|
|
41881
41856
|
this.formGroup = this.buildFormGroup(this.caseFields);
|
|
41882
41857
|
if (this.caseDetails?.triggers && this.error) {
|
|
41883
41858
|
this.resetErrors();
|
|
41884
41859
|
}
|
|
41885
41860
|
}
|
|
41861
|
+
buildViewerTabs() {
|
|
41862
|
+
const suppliedTabIds = new Set((this.caseDetails?.tabs || []).map((tab) => tab.id));
|
|
41863
|
+
const suppliedSpecialTabTypes = new Set((this.caseDetails?.tabs || [])
|
|
41864
|
+
.map((tab) => this.getCcdSpecialTabContentType(tab))
|
|
41865
|
+
.filter((contentType) => !!contentType));
|
|
41866
|
+
const prependedTabs = (this.prependedTabs || [])
|
|
41867
|
+
.filter((tab) => !this.isConfiguredTabSupplied(tab, suppliedTabIds, suppliedSpecialTabTypes))
|
|
41868
|
+
.map((tab) => this.toViewerTab(tab, this.getConfiguredSpecialTabContentType(tab)));
|
|
41869
|
+
const appendedTabs = (this.appendedTabs || [])
|
|
41870
|
+
.filter((tab) => !this.isConfiguredTabSupplied(tab, suppliedTabIds, suppliedSpecialTabTypes))
|
|
41871
|
+
.map((tab) => this.toViewerTab(tab, this.getConfiguredSpecialTabContentType(tab)));
|
|
41872
|
+
const caseTabs = this.sortedTabs.map((tab) => this.toViewerTab(tab));
|
|
41873
|
+
return [...prependedTabs, ...caseTabs, ...appendedTabs];
|
|
41874
|
+
}
|
|
41875
|
+
toViewerTab(tab, fallbackContentType) {
|
|
41876
|
+
const contentType = fallbackContentType || this.getCcdSpecialTabContentType(tab) || 'case';
|
|
41877
|
+
return { tab, contentType };
|
|
41878
|
+
}
|
|
41879
|
+
getConfiguredSpecialTabContentType(tab) {
|
|
41880
|
+
return ['tasks', 'roles-and-access', 'hearings'].includes(tab.id)
|
|
41881
|
+
? tab.id
|
|
41882
|
+
: null;
|
|
41883
|
+
}
|
|
41884
|
+
isConfiguredTabSupplied(tab, suppliedTabIds, suppliedSpecialTabTypes) {
|
|
41885
|
+
const contentType = this.getConfiguredSpecialTabContentType(tab);
|
|
41886
|
+
return contentType ? suppliedSpecialTabTypes.has(contentType) : suppliedTabIds.has(tab.id);
|
|
41887
|
+
}
|
|
41888
|
+
getCcdSpecialTabContentType(tab) {
|
|
41889
|
+
const launcherFieldIds = new Set((tab.fields || []).map((field) => field.id?.toLowerCase()));
|
|
41890
|
+
if (launcherFieldIds.has('tasklauncher')) {
|
|
41891
|
+
return 'tasks';
|
|
41892
|
+
}
|
|
41893
|
+
if (launcherFieldIds.has('roleslauncher')) {
|
|
41894
|
+
return 'roles-and-access';
|
|
41895
|
+
}
|
|
41896
|
+
if (launcherFieldIds.has('hearingslauncher')) {
|
|
41897
|
+
return 'hearings';
|
|
41898
|
+
}
|
|
41899
|
+
return null;
|
|
41900
|
+
}
|
|
41886
41901
|
sortTabFieldsAndFilterTabs(tabs) {
|
|
41887
41902
|
return tabs?.map((tab) => ({
|
|
41888
41903
|
...tab,
|
|
@@ -41924,7 +41939,7 @@ class CaseFullAccessViewComponent {
|
|
|
41924
41939
|
} if (rf & 2) {
|
|
41925
41940
|
let _t;
|
|
41926
41941
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.tabGroup = _t.first);
|
|
41927
|
-
} }, inputs: { hasPrint: "hasPrint", hasEventSelector: "hasEventSelector", caseDetails: "caseDetails", prependedTabs: "prependedTabs", appendedTabs: "appendedTabs" }, standalone: false, features: [i0.ɵɵNgOnChangesFeature], decls: 13, vars: 12, consts: [["tabGroup", ""], ["class", "error-summary", "role", "group", "aria-labelledby", "edit-case-event_error-summary-heading", "tabindex", "-1", 4, "ngIf"], [3, "callbackErrorsContext", "triggerTextContinue", "triggerTextIgnore", "callbackErrorsSubject"], [3, "caseId", "displayMode"], [1, "grid-row"], [1, "column-one-half"], [3, "caseDetails"], ["class", "case-viewer-controls", 4, "ngIf"], ["class", "column-one-half", 4, "ngIf"], ["class", "grid-row", 4, "ngIf"], [1, "column-full"], [4, "ngIf"], ["role", "group", "aria-labelledby", "edit-case-event_error-summary-heading", "tabindex", "-1", 1, "error-summary"], ["id", "edit-case-event_error-summary-heading", 1, "heading-h1", "error-summary-heading"], ["id", "edit-case-event_error-summary-body", 1, "govuk-error-summary__body"], ["href", "get-help", "target", "_blank"], ["id", "edit-case-event_error-summary-heading", 1, "heading-h2", "error-summary-heading"], ["class", "error-summary-list", 4, "ngIf"], [1, "error-summary-list"], [4, "ngFor", "ngForOf"], [1, "case-viewer-controls"], ["id", "case-viewer-control-print", "routerLink", "print", 1, "button", "button-secondary"], [3, "onTriggerChange", "onTriggerSubmit", "isDisabled", "triggers", "triggerText", "eventId"], [3, "linkClicked", "notificationBannerConfig"], ["animationDuration", "0ms", 3, "selectedIndexChange", "disableRipple", "selectedIndex", "selectedIndex"], [3, "label", 4, "ngFor", "ngForOf"], [3, "label", "aria-label",
|
|
41942
|
+
} }, inputs: { hasPrint: "hasPrint", hasEventSelector: "hasEventSelector", caseDetails: "caseDetails", prependedTabs: "prependedTabs", appendedTabs: "appendedTabs" }, standalone: false, features: [i0.ɵɵNgOnChangesFeature], decls: 13, vars: 12, consts: [["tabGroup", ""], ["class", "error-summary", "role", "group", "aria-labelledby", "edit-case-event_error-summary-heading", "tabindex", "-1", 4, "ngIf"], [3, "callbackErrorsContext", "triggerTextContinue", "triggerTextIgnore", "callbackErrorsSubject"], [3, "caseId", "displayMode"], [1, "grid-row"], [1, "column-one-half"], [3, "caseDetails"], ["class", "case-viewer-controls", 4, "ngIf"], ["class", "column-one-half", 4, "ngIf"], ["class", "grid-row", 4, "ngIf"], [1, "column-full"], [4, "ngIf"], ["role", "group", "aria-labelledby", "edit-case-event_error-summary-heading", "tabindex", "-1", 1, "error-summary"], ["id", "edit-case-event_error-summary-heading", 1, "heading-h1", "error-summary-heading"], ["id", "edit-case-event_error-summary-body", 1, "govuk-error-summary__body"], ["href", "get-help", "target", "_blank"], ["id", "edit-case-event_error-summary-heading", 1, "heading-h2", "error-summary-heading"], ["class", "error-summary-list", 4, "ngIf"], [1, "error-summary-list"], [4, "ngFor", "ngForOf"], [1, "case-viewer-controls"], ["id", "case-viewer-control-print", "routerLink", "print", 1, "button", "button-secondary"], [3, "onTriggerChange", "onTriggerSubmit", "isDisabled", "triggers", "triggerText", "eventId"], [3, "linkClicked", "notificationBannerConfig"], ["animationDuration", "0ms", 3, "selectedIndexChange", "disableRipple", "selectedIndex", "selectedIndex"], [3, "label", "aria-label", 4, "ngFor", "ngForOf"], [3, "label", "aria-label"], ["matTabContent", ""], [3, "ngSwitch"], [4, "ngSwitchCase"], [3, "class", 4, "ngSwitchDefault"], ["ccdLabelSubstitutor", "", 3, "caseField", "contextFields", "hidden"], ["class", "compound-field", 4, "ngSwitchCase"], ["scope", "row", 3, "id", 4, "ngIf"], ["scope", "col", 3, "id"], [1, "text-16"], [3, "topLevelFormGroup", "caseFields", "caseField", "caseReference"], ["scope", "row", 3, "id"], [1, "case-viewer-label", "text-16"], [1, "compound-field"], ["role", "rowheader", 3, "id"]], template: function CaseFullAccessViewComponent_Template(rf, ctx) { if (rf & 1) {
|
|
41928
41943
|
i0.ɵɵtemplate(0, CaseFullAccessViewComponent_div_0_Template, 14, 12, "div", 1)(1, CaseFullAccessViewComponent_div_1_Template, 8, 7, "div", 1);
|
|
41929
41944
|
i0.ɵɵelementStart(2, "ccd-callback-errors", 2);
|
|
41930
41945
|
i0.ɵɵlistener("callbackErrorsContext", function CaseFullAccessViewComponent_Template_ccd_callback_errors_callbackErrorsContext_2_listener($event) { return ctx.callbackErrorsNotify($event); });
|
|
@@ -41938,7 +41953,7 @@ class CaseFullAccessViewComponent {
|
|
|
41938
41953
|
i0.ɵɵelementEnd();
|
|
41939
41954
|
i0.ɵɵtemplate(9, CaseFullAccessViewComponent_div_9_Template, 3, 1, "div", 9);
|
|
41940
41955
|
i0.ɵɵelementStart(10, "div", 4)(11, "div", 10);
|
|
41941
|
-
i0.ɵɵtemplate(12, CaseFullAccessViewComponent_ng_container_12_Template,
|
|
41956
|
+
i0.ɵɵtemplate(12, CaseFullAccessViewComponent_ng_container_12_Template, 4, 4, "ng-container", 11);
|
|
41942
41957
|
i0.ɵɵelementEnd()();
|
|
41943
41958
|
} if (rf & 2) {
|
|
41944
41959
|
i0.ɵɵproperty("ngIf", ctx.error && !(ctx.error.callbackErrors || ctx.error.callbackWarnings || ctx.error.details));
|
|
@@ -41962,7 +41977,7 @@ class CaseFullAccessViewComponent {
|
|
|
41962
41977
|
}
|
|
41963
41978
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseFullAccessViewComponent, [{
|
|
41964
41979
|
type: Component,
|
|
41965
|
-
args: [{ selector: 'ccd-case-full-access-view', standalone: false, template: "<!-- Generic error heading and error message to be displayed only if there are no specific callback errors or warnings, or no error details -->\n<div *ngIf=\"error && !(error.callbackErrors || error.callbackWarnings || error.details)\" class=\"error-summary\"\n role=\"group\" aria-labelledby=\"edit-case-event_error-summary-heading\" tabindex=\"-1\">\n <h1 class=\"heading-h1 error-summary-heading\" id=\"edit-case-event_error-summary-heading\">\n {{'Something went wrong' | rpxTranslate}}\n </h1>\n <div class=\"govuk-error-summary__body\" id=\"edit-case-event_error-summary-body\">\n <p>{{\"We're working to fix the problem. Try again shortly.\" | rpxTranslate}}</p>\n <p>\n <a href=\"get-help\" target=\"_blank\">\n {{\"Contact us\" | rpxTranslate}}</a> {{\"if you're still having problems.\" | rpxTranslate}}\n </p>\n </div>\n</div>\n<!-- Callback error heading and error message to be displayed if there are specific error details -->\n<div *ngIf=\"error && error.details\" class=\"error-summary\" role=\"group\"\n aria-labelledby=\"edit-case-event_error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-h2 error-summary-heading\" id=\"edit-case-event_error-summary-heading\">\n {{'The callback data failed validation' | rpxTranslate}}\n </h2>\n <p>{{error.message | rpxTranslate}}</p>\n <ul *ngIf=\"error.details?.field_errors\" class=\"error-summary-list\">\n <li *ngFor=\"let fieldError of error.details.field_errors\">\n {{fieldError.message | rpxTranslate}}\n </li>\n </ul>\n</div>\n<ccd-callback-errors\n [triggerTextContinue]=\"triggerTextStart\"\n [triggerTextIgnore]=\"triggerTextIgnoreWarnings\"\n [callbackErrorsSubject]=\"callbackErrorsSubject\"\n (callbackErrorsContext)=\"callbackErrorsNotify($event)\">\n</ccd-callback-errors>\n<ccd-activity [caseId]=\"caseDetails.case_id\" [displayMode]=\"BANNER\"></ccd-activity>\n<div class=\"grid-row\">\n <div class=\"column-one-half\">\n <ccd-case-header [caseDetails]=\"caseDetails\"></ccd-case-header>\n <div class=\"case-viewer-controls\" *ngIf=\"hasPrint && !isDraft() && isPrintEnabled()\">\n <a id=\"case-viewer-control-print\" routerLink=\"print\" class=\"button button-secondary\">{{'Print' | rpxTranslate}}</a>\n </div>\n </div>\n <div *ngIf=\"hasEventSelector\" class=\"column-one-half\">\n <ccd-event-trigger [isDisabled]=\"isTriggerButtonDisabled()\" [triggers]=\"caseDetails.triggers\"\n [triggerText]=\"triggerText\"\n [eventId]=\"eventId\"\n (onTriggerChange)=\"clearErrorsAndWarnings()\"\n (onTriggerSubmit)=\"applyTrigger($event)\"></ccd-event-trigger>\n </div>\n</div>\n<div class=\"grid-row\" *ngIf=\"activeCaseFlags && !caseFlagsExternalUser\">\n <div class=\"column-full\">\n <ccd-notification-banner [notificationBannerConfig]=\"notificationBannerConfig\" (linkClicked)=\"onLinkClicked($event)\">\n </ccd-notification-banner>\n </div>\n</div>\n<div class=\"grid-row\">\n <div class=\"column-full\">\n <ng-container *ngIf=\"hasTabsPresent()\">\n <!-- Let Material generate header IDs so URL tab fragments do not trigger anchor scrolling. -->\n <mat-tab-group #tabGroup animationDuration=\"0ms\" (selectedIndexChange)=\"tabChanged($event)\" [disableRipple]=\"true\" [(selectedIndex)]=\"selectedTabIndex\"\n [selectedIndex]=\"selectedTabIndex\">\n <mat-tab *ngFor=\"let
|
|
41980
|
+
args: [{ selector: 'ccd-case-full-access-view', standalone: false, template: "<!-- Generic error heading and error message to be displayed only if there are no specific callback errors or warnings, or no error details -->\n<div *ngIf=\"error && !(error.callbackErrors || error.callbackWarnings || error.details)\" class=\"error-summary\"\n role=\"group\" aria-labelledby=\"edit-case-event_error-summary-heading\" tabindex=\"-1\">\n <h1 class=\"heading-h1 error-summary-heading\" id=\"edit-case-event_error-summary-heading\">\n {{'Something went wrong' | rpxTranslate}}\n </h1>\n <div class=\"govuk-error-summary__body\" id=\"edit-case-event_error-summary-body\">\n <p>{{\"We're working to fix the problem. Try again shortly.\" | rpxTranslate}}</p>\n <p>\n <a href=\"get-help\" target=\"_blank\">\n {{\"Contact us\" | rpxTranslate}}</a> {{\"if you're still having problems.\" | rpxTranslate}}\n </p>\n </div>\n</div>\n<!-- Callback error heading and error message to be displayed if there are specific error details -->\n<div *ngIf=\"error && error.details\" class=\"error-summary\" role=\"group\"\n aria-labelledby=\"edit-case-event_error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-h2 error-summary-heading\" id=\"edit-case-event_error-summary-heading\">\n {{'The callback data failed validation' | rpxTranslate}}\n </h2>\n <p>{{error.message | rpxTranslate}}</p>\n <ul *ngIf=\"error.details?.field_errors\" class=\"error-summary-list\">\n <li *ngFor=\"let fieldError of error.details.field_errors\">\n {{fieldError.message | rpxTranslate}}\n </li>\n </ul>\n</div>\n<ccd-callback-errors\n [triggerTextContinue]=\"triggerTextStart\"\n [triggerTextIgnore]=\"triggerTextIgnoreWarnings\"\n [callbackErrorsSubject]=\"callbackErrorsSubject\"\n (callbackErrorsContext)=\"callbackErrorsNotify($event)\">\n</ccd-callback-errors>\n<ccd-activity [caseId]=\"caseDetails.case_id\" [displayMode]=\"BANNER\"></ccd-activity>\n<div class=\"grid-row\">\n <div class=\"column-one-half\">\n <ccd-case-header [caseDetails]=\"caseDetails\"></ccd-case-header>\n <div class=\"case-viewer-controls\" *ngIf=\"hasPrint && !isDraft() && isPrintEnabled()\">\n <a id=\"case-viewer-control-print\" routerLink=\"print\" class=\"button button-secondary\">{{'Print' | rpxTranslate}}</a>\n </div>\n </div>\n <div *ngIf=\"hasEventSelector\" class=\"column-one-half\">\n <ccd-event-trigger [isDisabled]=\"isTriggerButtonDisabled()\" [triggers]=\"caseDetails.triggers\"\n [triggerText]=\"triggerText\"\n [eventId]=\"eventId\"\n (onTriggerChange)=\"clearErrorsAndWarnings()\"\n (onTriggerSubmit)=\"applyTrigger($event)\"></ccd-event-trigger>\n </div>\n</div>\n<div class=\"grid-row\" *ngIf=\"activeCaseFlags && !caseFlagsExternalUser\">\n <div class=\"column-full\">\n <ccd-notification-banner [notificationBannerConfig]=\"notificationBannerConfig\" (linkClicked)=\"onLinkClicked($event)\">\n </ccd-notification-banner>\n </div>\n</div>\n<div class=\"grid-row\">\n <div class=\"column-full\">\n <ng-container *ngIf=\"hasTabsPresent()\">\n <!-- Let Material generate header IDs so URL tab fragments do not trigger anchor scrolling. -->\n <mat-tab-group #tabGroup animationDuration=\"0ms\" (selectedIndexChange)=\"tabChanged($event)\" [disableRipple]=\"true\" [(selectedIndex)]=\"selectedTabIndex\"\n [selectedIndex]=\"selectedTabIndex\">\n <mat-tab *ngFor=\"let viewerTab of viewerTabs; let curIdx=index\" [attr.data-case-tab-id]=\"viewerTab.tab.id\" [label]=\"viewerTab.tab.label | rpxTranslate\" [aria-label]=\"curIdx === 0 ? viewerTab.tab.label + ', Please use left and right arrow keys to navigate case tabs' : '' | rpxTranslate\">\n <ng-template matTabContent>\n <ng-container [ngSwitch]=\"viewerTab.contentType\">\n <exui-tasks-ce *ngSwitchCase=\"'tasks'\"></exui-tasks-ce>\n <exui-roles-and-access-ce *ngSwitchCase=\"'roles-and-access'\"></exui-roles-and-access-ce>\n <exui-case-hearings-ce *ngSwitchCase=\"'hearings'\"></exui-case-hearings-ce>\n <table *ngSwitchDefault [class]=\"viewerTab.tab.id\" [attr.aria-label]=\"'case viewer table' | rpxTranslate\">\n <tbody>\n <ng-container *ngFor=\"let field of viewerTab.tab | ccdTabFields | ccdReadFieldsFilter:false :undefined :true : formGroup?.controls['data']\">\n <div ccdLabelSubstitutor [caseField]=\"field\" [contextFields]=\"caseFields\" [hidden]=\"field.hidden\">\n <ng-container [ngSwitch]=\"!(field | ccdIsCompound)\">\n <tr *ngSwitchCase=\"true\">\n <th [id]=\"'case-viewer-field-label--' + field.id\" scope=\"row\" *ngIf=\"!isFieldToHaveNoLabel(field) && field.label\">\n <div class=\"case-viewer-label text-16\">\n {{field.label | rpxTranslate}}</div>\n </th>\n <td [id]=\"'case-viewer-field-read--' + field.id\" scope=\"col\">\n <span class=\"text-16\">\n <ccd-field-read [topLevelFormGroup]=\"formGroup?.controls['data']\" [caseFields]=\"caseFields\"\n [caseField]=\"field\" [caseReference]=\"caseDetails.case_id\">\n </ccd-field-read>\n </span>\n </td>\n </tr>\n <tr *ngSwitchCase=\"false\" class=\"compound-field\">\n <td role=\"rowheader\" [attr.aria-label]=\"(field.label || field.id) | rpxTranslate\" [id]=\"'case-viewer-field-read--' + field.id\">\n <span class=\"text-16\">\n <ccd-field-read [topLevelFormGroup]=\"formGroup.controls['data']\" [caseFields]=\"caseFields\"\n [caseField]=\"field\" [caseReference]=\"caseDetails.case_id\">\n </ccd-field-read>\n </span>\n </td>\n </tr>\n </ng-container>\n </div>\n </ng-container>\n </tbody>\n </table>\n </ng-container>\n </ng-template>\n </mat-tab>\n </mat-tab-group>\n </ng-container>\n </div>\n</div>\n", styles: ["th,.compound-field>td{width:1%;white-space:nowrap;vertical-align:top}.compound-field th{padding:0}.compound-field>td{padding:0}.case-viewer-controls{margin-top:47px;margin-bottom:20px}ccd-case-header{float:left;margin-right:10px}ccd-event-trigger{float:right}.case-viewer-label{min-width:300px;white-space:normal}.markdown h3{margin-bottom:0}.hide-table-capion{position:absolute;visibility:hidden}\n"] }]
|
|
41966
41981
|
}], () => [{ type: i0.NgZone }, { type: i1$2.ActivatedRoute }, { type: i1$2.Router }, { type: NavigationNotifierService }, { type: OrderService }, { type: ActivityPollingService }, { type: i1$3.MatDialog }, { type: AlertService }, { type: DraftService }, { type: ErrorNotifierService }, { type: ConvertHrefToRouterService }, { type: i5.Location }, { type: i0.ChangeDetectorRef }, { type: SessionStorageService }, { type: i1.RpxTranslatePipe }, { type: LoadingService }, { type: LinkedCasesService }, { type: CaseFlagStateService }, { type: i0.NgZone }], { hasPrint: [{
|
|
41967
41982
|
type: Input
|
|
41968
41983
|
}], hasEventSelector: [{
|
|
@@ -41977,7 +41992,7 @@ class CaseFullAccessViewComponent {
|
|
|
41977
41992
|
type: ViewChild,
|
|
41978
41993
|
args: ['tabGroup', { static: false }]
|
|
41979
41994
|
}] }); })();
|
|
41980
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaseFullAccessViewComponent, { className: "CaseFullAccessViewComponent", filePath: "lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.ts", lineNumber:
|
|
41995
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaseFullAccessViewComponent, { className: "CaseFullAccessViewComponent", filePath: "lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.ts", lineNumber: 56 }); })();
|
|
41981
41996
|
|
|
41982
41997
|
class PrintUrlPipe {
|
|
41983
41998
|
appConfig;
|
|
@@ -42176,9 +42191,9 @@ class CaseViewerComponent {
|
|
|
42176
42191
|
static BASIC_USER_ACCESS_TYPES = 'BASIC';
|
|
42177
42192
|
hasPrint = true;
|
|
42178
42193
|
hasEventSelector = true;
|
|
42194
|
+
caseDetails;
|
|
42179
42195
|
prependedTabs = [];
|
|
42180
42196
|
appendedTabs = [];
|
|
42181
|
-
caseDetails;
|
|
42182
42197
|
caseSubscription;
|
|
42183
42198
|
userAccessType;
|
|
42184
42199
|
accessGranted;
|
|
@@ -42197,7 +42212,12 @@ class CaseViewerComponent {
|
|
|
42197
42212
|
}
|
|
42198
42213
|
}
|
|
42199
42214
|
loadCaseDetails() {
|
|
42200
|
-
if (this.
|
|
42215
|
+
if (this.caseDetails) {
|
|
42216
|
+
this.caseDetails.tabs = this.orderService.sort(this.caseDetails.tabs);
|
|
42217
|
+
this.caseDetails.tabs = this.suffixDuplicateTabs(this.caseDetails.tabs);
|
|
42218
|
+
this.setUserAccessType(this.caseDetails);
|
|
42219
|
+
}
|
|
42220
|
+
else if (this.route.snapshot.data.case) {
|
|
42201
42221
|
this.caseDetails = this.route.snapshot.data.case;
|
|
42202
42222
|
this.caseDetails.tabs = this.orderService.sort(this.caseDetails.tabs);
|
|
42203
42223
|
this.caseDetails.tabs = this.suffixDuplicateTabs(this.caseDetails.tabs);
|
|
@@ -42243,7 +42263,7 @@ class CaseViewerComponent {
|
|
|
42243
42263
|
return tabs;
|
|
42244
42264
|
}
|
|
42245
42265
|
static ɵfac = function CaseViewerComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CaseViewerComponent)(i0.ɵɵdirectiveInject(i1$2.ActivatedRoute), i0.ɵɵdirectiveInject(CaseNotifier), i0.ɵɵdirectiveInject(AbstractAppConfig), i0.ɵɵdirectiveInject(OrderService)); };
|
|
42246
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaseViewerComponent, selectors: [["ccd-case-viewer"]], inputs: { hasPrint: "hasPrint", hasEventSelector: "hasEventSelector", prependedTabs: "prependedTabs", appendedTabs: "appendedTabs" }, standalone: false, decls: 1, vars: 1, consts: [[4, "ngIf"], [3, "accessType", "caseDetails", 4, "ngIf"], [3, "caseDetails", "hasPrint", "hasEventSelector", "prependedTabs", "appendedTabs", 4, "ngIf"], [3, "accessType", "caseDetails"], [3, "caseDetails", "hasPrint", "hasEventSelector", "prependedTabs", "appendedTabs"]], template: function CaseViewerComponent_Template(rf, ctx) { if (rf & 1) {
|
|
42266
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaseViewerComponent, selectors: [["ccd-case-viewer"]], inputs: { hasPrint: "hasPrint", hasEventSelector: "hasEventSelector", caseDetails: "caseDetails", prependedTabs: "prependedTabs", appendedTabs: "appendedTabs" }, standalone: false, decls: 1, vars: 1, consts: [[4, "ngIf"], [3, "accessType", "caseDetails", 4, "ngIf"], [3, "caseDetails", "hasPrint", "hasEventSelector", "prependedTabs", "appendedTabs", 4, "ngIf"], [3, "accessType", "caseDetails"], [3, "caseDetails", "hasPrint", "hasEventSelector", "prependedTabs", "appendedTabs"]], template: function CaseViewerComponent_Template(rf, ctx) { if (rf & 1) {
|
|
42247
42267
|
i0.ɵɵtemplate(0, CaseViewerComponent_div_0_Template, 3, 2, "div", 0);
|
|
42248
42268
|
} if (rf & 2) {
|
|
42249
42269
|
i0.ɵɵproperty("ngIf", ctx.isDataLoaded());
|
|
@@ -42256,6 +42276,8 @@ class CaseViewerComponent {
|
|
|
42256
42276
|
type: Input
|
|
42257
42277
|
}], hasEventSelector: [{
|
|
42258
42278
|
type: Input
|
|
42279
|
+
}], caseDetails: [{
|
|
42280
|
+
type: Input
|
|
42259
42281
|
}], prependedTabs: [{
|
|
42260
42282
|
type: Input
|
|
42261
42283
|
}], appendedTabs: [{
|
|
@@ -44636,7 +44658,7 @@ i0.ɵɵsetComponentScope(CaseEventTriggerComponent, function () { return [i5.NgI
|
|
|
44636
44658
|
i0.ɵɵsetComponentScope(CasePrinterComponent, function () { return [i5.NgForOf, i5.NgIf, CaseHeaderComponent]; }, function () { return [i1.RpxTranslatePipe, PrintUrlPipe]; });
|
|
44637
44659
|
i0.ɵɵsetComponentScope(CaseViewerComponent, function () { return [i5.NgIf, CaseFullAccessViewComponent,
|
|
44638
44660
|
CaseBasicAccessViewComponent]; }, []);
|
|
44639
|
-
i0.ɵɵsetComponentScope(CaseFullAccessViewComponent, function () { return [i5.NgForOf, i5.NgIf, i5.NgSwitch, i5.NgSwitchCase, i1$2.RouterLink, CallbackErrorsComponent, ActivityComponent, CaseHeaderComponent, EventTriggerComponent, FieldReadComponent, i10.MatTabContent, i10.MatTab, i10.MatTabGroup, LabelSubstitutorDirective, NotificationBannerComponent]; }, function () { return [IsCompoundPipe, ReadFieldsFilterPipe, CcdTabFieldsPipe, i1.RpxTranslatePipe]; });
|
|
44661
|
+
i0.ɵɵsetComponentScope(CaseFullAccessViewComponent, function () { return [i5.NgForOf, i5.NgIf, i5.NgSwitch, i5.NgSwitchCase, i5.NgSwitchDefault, i1$2.RouterLink, CallbackErrorsComponent, ActivityComponent, CaseHeaderComponent, EventTriggerComponent, FieldReadComponent, i10.MatTabContent, i10.MatTab, i10.MatTabGroup, LabelSubstitutorDirective, NotificationBannerComponent]; }, function () { return [IsCompoundPipe, ReadFieldsFilterPipe, CcdTabFieldsPipe, i1.RpxTranslatePipe]; });
|
|
44640
44662
|
i0.ɵɵsetComponentScope(CaseViewComponent, function () { return [i5.NgIf, CaseViewerComponent]; }, []);
|
|
44641
44663
|
i0.ɵɵsetComponentScope(CaseChallengedAccessRequestComponent, function () { return [i5.NgClass, i5.NgIf, i4.ɵNgNoValidate, i4.DefaultValueAccessor, i4.RadioControlValueAccessor, i4.NgControlStatus, i4.NgControlStatusGroup, i4.FormGroupDirective, i4.FormControlName, AlertComponent, ErrorMessageComponent]; }, function () { return [i1.RpxTranslatePipe]; });
|
|
44642
44664
|
i0.ɵɵsetComponentScope(CaseSpecificAccessRequestComponent, function () { return [i5.NgClass, i5.NgIf, i4.ɵNgNoValidate, i4.DefaultValueAccessor, i4.NgControlStatus, i4.NgControlStatusGroup, i4.FormGroupDirective, i4.FormControlName, AlertComponent, ErrorMessageComponent]; }, function () { return [i1.RpxTranslatePipe]; });
|