@hmcts/ccd-case-ui-toolkit 4.18.4 → 4.18.7-hearings

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.18.7-hearings
4
+ **EUI-5912** Hearing tab is not loading
5
+
3
6
  ### Version 4.17.6-EUI-5736-unassigned-cases-pagination
4
7
  **EUI-5736** unassigned cases pagination
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.18.4
3
+ * @version v4.18.7-hearings
4
4
  * @link undefined
5
5
  * @license MIT
6
6
  */
@@ -24160,9 +24160,10 @@ var CaseFullAccessViewComponent = /** @class */ (function () {
24160
24160
  CaseFullAccessViewComponent.prototype.tabChanged = function (tabChangeEvent) {
24161
24161
  var tab = tabChangeEvent.tab['_viewContainerRef'];
24162
24162
  var id = tab.element.nativeElement.id;
24163
- var tabsLengthBeforeAppended = this.prependedTabs.length + this.caseDetails.tabs.length;
24163
+ // due to some edge case like hidden tab we can't calculate the last index of existing tabs,
24164
+ // so have to hard code the hearings id here
24164
24165
  if ((tabChangeEvent.index <= 1 && this.prependedTabs.length) ||
24165
- (tabChangeEvent.index >= tabsLengthBeforeAppended && this.appendedTabs.length)) {
24166
+ (this.appendedTabs.length && id === 'hearings')) {
24166
24167
  this.router.navigate([id], { relativeTo: this.route });
24167
24168
  }
24168
24169
  else {
@@ -26741,6 +26742,9 @@ var EventStartGuard = /** @class */ (function () {
26741
26742
  }
26742
26743
  };
26743
26744
  EventStartGuard.prototype.checkTaskInEventNotRequired = function (payload, caseId, taskId) {
26745
+ if (!payload || !payload.tasks) {
26746
+ return true;
26747
+ }
26744
26748
  var taskNumber = payload.tasks.length;
26745
26749
  if (taskNumber === 0) {
26746
26750
  // if there are no tasks just carry on
@@ -27517,7 +27521,6 @@ var MarkdownComponent = /** @class */ (function () {
27517
27521
  if (event.target instanceof HTMLAnchorElement === false) {
27518
27522
  return;
27519
27523
  }
27520
- // return this.callUpdateHrefLink((<HTMLAnchorElement>event.target), event);
27521
27524
  return true;
27522
27525
  };
27523
27526
  __decorate([