@hmcts/ccd-case-ui-toolkit 4.14.1 → 4.15.0-hearing

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/RELEASE-NOTES.md CHANGED
@@ -1,5 +1,8 @@
1
1
  ## RELEASE NOTES
2
2
 
3
+ ### Version 4.15.0-hearings
4
+ **EUI-5912** Hearing tab is not loading
5
+
3
6
  ### Version 4.14.1-EUI-5305-change-link-accessibility-update
4
7
  **EUI-5305** Accessibility improvement for 'Change' links
5
8
 
package/dist/index.umd.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @hmcts/ccd-case-ui-toolkit - Case UI Toolkit
3
- * @version v4.14.1
3
+ * @version v4.15.0-hearing
4
4
  * @link undefined
5
5
  * @license MIT
6
6
  */
@@ -24065,9 +24065,10 @@ var CaseFullAccessViewComponent = /** @class */ (function () {
24065
24065
  CaseFullAccessViewComponent.prototype.tabChanged = function (tabChangeEvent) {
24066
24066
  var tab = tabChangeEvent.tab['_viewContainerRef'];
24067
24067
  var id = tab.element.nativeElement.id;
24068
- var tabsLengthBeforeAppended = this.prependedTabs.length + this.caseDetails.tabs.length;
24068
+ // due to some edge case like hidden tab we can't calculate the last index of existing tabs,
24069
+ // so have to hard code the hearings id here
24069
24070
  if ((tabChangeEvent.index <= 1 && this.prependedTabs.length) ||
24070
- (tabChangeEvent.index >= tabsLengthBeforeAppended && this.appendedTabs.length)) {
24071
+ (this.appendedTabs.length && id === 'hearings')) {
24071
24072
  this.router.navigate([id], { relativeTo: this.route });
24072
24073
  }
24073
24074
  else {