@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 +3 -0
- package/dist/index.umd.js +7 -4
- package/dist/index.umd.js.map +1 -1
- package/dist/index.umd.min.js +1 -1
- package/dist/index.umd.min.js.LICENSE.txt +1 -1
- package/dist/index.umd.min.js.map +1 -1
- package/dist/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.js +3 -2
- package/dist/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.js.map +1 -1
- package/dist/shared/components/case-viewer/case-viewer.component.js.map +1 -1
- package/dist/shared/components/event-start/event-guard/event-start.guard.js +3 -0
- package/dist/shared/components/event-start/event-guard/event-start.guard.js.map +1 -1
- package/dist/shared/components/markdown/markdown.component.js +0 -1
- package/dist/shared/components/markdown/markdown.component.js.map +1 -1
- package/package.json +1 -1
package/RELEASE-NOTES.md
CHANGED
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.
|
|
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
|
-
|
|
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
|
-
(
|
|
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([
|