@hmcts/ccd-case-ui-toolkit 4.19.3 → 4.19.4

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,8 +1,5 @@
1
1
  ## RELEASE NOTES
2
2
 
3
- ### Version 4.19.3-hearings
4
- **EUI-5912** Hearing tab is not loading
5
-
6
3
  ### Version 4.12.1-EUI-5682-complex-table-collection-1
7
4
  **EUI-5682** Bug fix for the complex collection table view
8
5
 
@@ -18,6 +15,7 @@
18
15
  ### Version 4.17.6-EUI-5736-unassigned-cases-pagination
19
16
  **EUI-5736** unassigned cases pagination
20
17
 
18
+
21
19
  ### Version 4.14.1-EUI-5305-change-link-accessibility-update
22
20
  **EUI-5305** Accessibility improvement for 'Change' links
23
21
 
@@ -38,6 +36,7 @@ Add refunds functionality
38
36
  ### Version 4.13.8-event-start-task-not-required"
39
37
  **EUI-5569** Task not required for event functionality
40
38
 
39
+
41
40
  ### Version 4.12.16-task-event-completion"
42
41
  **Task event completion and state machine** Task event completion and state machine
43
42
 
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.19.3
3
+ * @version v4.19.4
4
4
  * @link undefined
5
5
  * @license MIT
6
6
  */
@@ -24182,10 +24182,9 @@ var CaseFullAccessViewComponent = /** @class */ (function () {
24182
24182
  CaseFullAccessViewComponent.prototype.tabChanged = function (tabChangeEvent) {
24183
24183
  var tab = tabChangeEvent.tab['_viewContainerRef'];
24184
24184
  var id = tab.element.nativeElement.id;
24185
- // due to some edge case like hidden tab we can't calculate the last index of existing tabs,
24186
- // so have to hard code the hearings id here
24185
+ var tabsLengthBeforeAppended = this.prependedTabs.length + this.caseDetails.tabs.length;
24187
24186
  if ((tabChangeEvent.index <= 1 && this.prependedTabs.length) ||
24188
- (this.appendedTabs.length && id === 'hearings')) {
24187
+ (tabChangeEvent.index >= tabsLengthBeforeAppended && this.appendedTabs.length)) {
24189
24188
  this.router.navigate([id], { relativeTo: this.route });
24190
24189
  }
24191
24190
  else {
@@ -28614,7 +28613,8 @@ var FieldWriteComponent = /** @class */ (function (_super) {
28614
28613
  form_1.FormValidatorsService.addValidators(caseField, control);
28615
28614
  };
28616
28615
  FieldWriteComponent.prototype.ngOnInit = function () {
28617
- var componentClass = this.paletteService.getFieldComponentClass(this.caseField, true);
28616
+ var writeMode = this.caseField.display_context !== 'READONLY';
28617
+ var componentClass = this.paletteService.getFieldComponentClass(this.caseField, writeMode);
28618
28618
  var injector = core_1.Injector.create([], this.fieldContainer.parentInjector);
28619
28619
  var component = this.resolver.resolveComponentFactory(componentClass).create(injector);
28620
28620
  // Only Fixed list use plainToClassFromExist