@hmcts/ccd-case-ui-toolkit 6.19.11 → 6.19.12-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.
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.js +15 -7
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.js.map +1 -1
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js +1 -1
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js.map +1 -1
- package/esm2015/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.js +4 -2
- package/esm2015/lib/shared/pipes/complex/ccd-read-fields-filter.pipe.js +11 -5
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js +13 -5
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -1
- package/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.d.ts.map +1 -1
- package/lib/shared/pipes/complex/ccd-read-fields-filter.pipe.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -26523,10 +26523,16 @@
|
|
|
26523
26523
|
if (formGroup) {
|
|
26524
26524
|
checkConditionalShowAgainst = formGroup.parent.getRawValue().data;
|
|
26525
26525
|
formGroupAvailable = true;
|
|
26526
|
-
if (idPrefix) {
|
|
26527
|
-
|
|
26528
|
-
|
|
26529
|
-
checkConditionalShowAgainst
|
|
26526
|
+
if (idPrefix !== undefined) {
|
|
26527
|
+
if (idPrefix !== '') {
|
|
26528
|
+
var fieldId = idPrefix.substring(0, idPrefix.indexOf('_'));
|
|
26529
|
+
if (checkConditionalShowAgainst[fieldId]) {
|
|
26530
|
+
checkConditionalShowAgainst = values;
|
|
26531
|
+
formGroupAvailable = false;
|
|
26532
|
+
}
|
|
26533
|
+
}
|
|
26534
|
+
else {
|
|
26535
|
+
checkConditionalShowAgainst = Object.assign(checkConditionalShowAgainst, values);
|
|
26530
26536
|
formGroupAvailable = false;
|
|
26531
26537
|
}
|
|
26532
26538
|
}
|
|
@@ -32395,12 +32401,13 @@
|
|
|
32395
32401
|
};
|
|
32396
32402
|
// Refactored under EXUI-110 to address infinite tab loop to use tabIndexChanged instead
|
|
32397
32403
|
CaseFullAccessViewComponent.prototype.tabChanged = function (tabIndexChanged) {
|
|
32404
|
+
var _a;
|
|
32398
32405
|
var matTab = this.tabGroup._tabs.find(function (tab) { return tab.isActive; });
|
|
32399
32406
|
var tabLabel = matTab.textLabel;
|
|
32400
32407
|
// sortedTabs are fragments
|
|
32401
32408
|
// appended/prepepended tabs use router navigation
|
|
32402
32409
|
if ((tabIndexChanged <= 1 && this.prependedTabs && this.prependedTabs.length) ||
|
|
32403
|
-
(this.appendedTabs
|
|
32410
|
+
(((_a = this.appendedTabs) === null || _a === void 0 ? void 0 : _a.length) && tabLabel === this.HEARINGS_TAB_LABEL)) {
|
|
32404
32411
|
// Hack to get ID from tab as it's not easily achieved through Angular Material Tabs
|
|
32405
32412
|
var tab = matTab['_viewContainerRef'];
|
|
32406
32413
|
var id = tab.element.nativeElement.id;
|
|
@@ -32420,6 +32427,7 @@
|
|
|
32420
32427
|
var targetTabIndex = this.tabGroup._tabs.toArray().findIndex(function (tab) { return tab.textLabel === triggerOutputEventText; });
|
|
32421
32428
|
if (targetTabIndex > -1) {
|
|
32422
32429
|
this.selectedTabIndex = targetTabIndex;
|
|
32430
|
+
this.tabGroup.selectedIndex = targetTabIndex;
|
|
32423
32431
|
}
|
|
32424
32432
|
};
|
|
32425
32433
|
CaseFullAccessViewComponent.prototype.hasActiveCaseFlags = function () {
|
|
@@ -32498,8 +32506,8 @@
|
|
|
32498
32506
|
var value = {};
|
|
32499
32507
|
if (caseFields) {
|
|
32500
32508
|
caseFields.forEach(function (caseField) {
|
|
32501
|
-
var
|
|
32502
|
-
value = Object.assign(Object.assign({}, value), (
|
|
32509
|
+
var _b;
|
|
32510
|
+
value = Object.assign(Object.assign({}, value), (_b = {}, _b[caseField.id] = caseField.value, _b));
|
|
32503
32511
|
});
|
|
32504
32512
|
}
|
|
32505
32513
|
return new i2$1.FormGroup({ data: new i2$1.FormControl(value) });
|