@hmcts/ccd-case-ui-toolkit 5.0.22-angular11-upgrade → 5.0.24-angular11-upgrade

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.
@@ -2,7 +2,7 @@
2
2
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/router'), require('@angular/forms'), require('rx-polling'), require('rxjs'), require('@angular/common/http'), require('rxjs/operators'), require('class-transformer'), require('underscore'), require('moment'), require('ngx-md'), require('@angular/material/dialog'), require('@nicky-lenaers/ngx-scroll-to'), require('@angular-material-components/datetime-picker'), require('@angular-material-components/moment-adapter'), require('@angular/material/datepicker'), require('@angular/material/form-field'), require('rxjs/Subject'), require('util'), require('@angular/material/autocomplete'), require('@angular/material/core'), require('@hmcts/ccpay-web-component'), require('@edium/fsm'), require('@angular/cdk/portal'), require('@angular/material/input'), require('ngx-pagination'), require('@angular/material/tabs')) :
3
3
  typeof define === 'function' && define.amd ? define('@hmcts/ccd-case-ui-toolkit', ['exports', '@angular/core', '@angular/common', '@angular/router', '@angular/forms', 'rx-polling', 'rxjs', '@angular/common/http', 'rxjs/operators', 'class-transformer', 'underscore', 'moment', 'ngx-md', '@angular/material/dialog', '@nicky-lenaers/ngx-scroll-to', '@angular-material-components/datetime-picker', '@angular-material-components/moment-adapter', '@angular/material/datepicker', '@angular/material/form-field', 'rxjs/Subject', 'util', '@angular/material/autocomplete', '@angular/material/core', '@hmcts/ccpay-web-component', '@edium/fsm', '@angular/cdk/portal', '@angular/material/input', 'ngx-pagination', '@angular/material/tabs'], factory) :
4
4
  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.hmcts = global.hmcts || {}, global.hmcts["ccd-case-ui-toolkit"] = {}), global.ng.core, global.ng.common, global.ng.router, global.ng.forms, global["rx-polling"], global.rxjs, global.ng.common.http, global.rxjs.operators, global["class-transformer"], global.underscore, global.moment, global["ngx-md"], global.ng.material.dialog, global["@nicky-lenaers/ngx-scroll-to"], global["@angular-material-components/datetime-picker"], global["@angular-material-components/moment-adapter"], global.ng.material.datepicker, global.ng.material.formField, global.rxjs.Subject, global.util, global.ng.material.autocomplete, global.ng.material.core, global["@hmcts/ccpay-web-component"], global["@edium/fsm"], global.ng.cdk.portal, global.ng.material.input, global["ngx-pagination"], global.ng.material.tabs));
5
- })(this, (function (exports, i0, i1, i1$1, i1$2, polling, rxjs, i1$3, operators, classTransformer, _, moment, i1$4, i1$5, i2, i4, momentAdapter, i5, i6, Subject, util, i5$1, i6$1, i3, fsm, i6$2, input, i1$6, i15) { 'use strict';
5
+ })(this, (function (exports, i0, i1, i1$1, i1$2, polling, rxjs, i1$3, operators, classTransformer, _, moment, i1$4, i1$5, i2, i4, momentAdapter, i5, i6, Subject, util, i5$1, i6$1, i3, fsm, i6$2, input, i1$6, i10) { 'use strict';
6
6
 
7
7
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
8
 
@@ -43,7 +43,7 @@
43
43
  var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
44
44
  var i6__namespace$2 = /*#__PURE__*/_interopNamespace(i6$2);
45
45
  var i1__namespace$6 = /*#__PURE__*/_interopNamespace(i1$6);
46
- var i15__namespace = /*#__PURE__*/_interopNamespace(i15);
46
+ var i10__namespace = /*#__PURE__*/_interopNamespace(i10);
47
47
 
48
48
  function FooterComponent_div_2_Template(rf, ctx) {
49
49
  if (rf & 1) {
@@ -18564,7 +18564,9 @@
18564
18564
  }());
18565
18565
  PaletteUtilsModule.ɵfac = function PaletteUtilsModule_Factory(t) { return new (t || PaletteUtilsModule)(); };
18566
18566
  PaletteUtilsModule.ɵmod = i0__namespace.ɵɵdefineNgModule({ type: PaletteUtilsModule });
18567
- PaletteUtilsModule.ɵinj = i0__namespace.ɵɵdefineInjector({ imports: [[
18567
+ PaletteUtilsModule.ɵinj = i0__namespace.ɵɵdefineInjector({ providers: [
18568
+ IsCompoundPipe
18569
+ ], imports: [[
18568
18570
  i1.CommonModule
18569
18571
  ]] });
18570
18572
  (function () {
@@ -18610,6 +18612,9 @@
18610
18612
  IsReadOnlyPipe,
18611
18613
  IsReadOnlyAndNotCollectionPipe,
18612
18614
  DashPipe
18615
+ ],
18616
+ providers: [
18617
+ IsCompoundPipe
18613
18618
  ]
18614
18619
  }]
18615
18620
  }], null, null);
@@ -22070,10 +22075,6 @@
22070
22075
  CaseResolver.prototype.checkAuthorizationError = function (error) {
22071
22076
  // TODO Should be logged to remote logging infrastructure
22072
22077
  console.error(error);
22073
- if (error.status === 400) {
22074
- this.router.navigate(['/search/noresults']);
22075
- return rxjs.of(null);
22076
- }
22077
22078
  if (CaseResolver.EVENT_REGEX.test(this.previousUrl) && error.status === 404) {
22078
22079
  this.router.navigate(['/list/case']);
22079
22080
  return rxjs.of(null);
@@ -22980,7 +22981,7 @@
22980
22981
  }
22981
22982
  }
22982
22983
  var CaseFullAccessViewComponent = /** @class */ (function () {
22983
- function CaseFullAccessViewComponent(ngZone, route, router, navigationNotifierService, orderService, activityPollingService, dialog, alertService, draftService, errorNotifierService, convertHrefToRouterService, location, crf) {
22984
+ function CaseFullAccessViewComponent(ngZone, route, router, navigationNotifierService, orderService, activityPollingService, dialog, alertService, draftService, errorNotifierService, convertHrefToRouterService, location) {
22984
22985
  this.ngZone = ngZone;
22985
22986
  this.route = route;
22986
22987
  this.router = router;
@@ -22993,7 +22994,6 @@
22993
22994
  this.errorNotifierService = errorNotifierService;
22994
22995
  this.convertHrefToRouterService = convertHrefToRouterService;
22995
22996
  this.location = location;
22996
- this.crf = crf;
22997
22997
  this.hasPrint = true;
22998
22998
  this.hasEventSelector = true;
22999
22999
  this.prependedTabs = [];
@@ -23003,15 +23003,8 @@
23003
23003
  this.triggerTextIgnoreWarnings = CaseFullAccessViewComponent.TRIGGER_TEXT_CONTINUE;
23004
23004
  this.triggerText = CaseFullAccessViewComponent.TRIGGER_TEXT_START;
23005
23005
  this.ignoreWarning = false;
23006
- this.callbackErrorsSubject = new rxjs.Subject();
23006
+ this.callbackErrorsSubject = new Subject.Subject();
23007
23007
  }
23008
- CaseFullAccessViewComponent.prototype.ngOnChanges = function (changes) {
23009
- if (changes.prependedTabs && !changes.prependedTabs.firstChange) {
23010
- this.init();
23011
- this.crf.detectChanges();
23012
- this.organiseTabPosition();
23013
- }
23014
- };
23015
23008
  CaseFullAccessViewComponent.prototype.ngOnInit = function () {
23016
23009
  var _this = this;
23017
23010
  initDialog();
@@ -23121,21 +23114,15 @@
23121
23114
  && this.error.details.field_errors.length);
23122
23115
  };
23123
23116
  CaseFullAccessViewComponent.prototype.ngAfterViewInit = function () {
23124
- this.organiseTabPosition();
23125
- };
23126
- CaseFullAccessViewComponent.prototype.organiseTabPosition = function () {
23127
23117
  var _this = this;
23128
23118
  var matTab;
23129
23119
  var url = this.location.path(true);
23130
23120
  var hashValue = url.substring(url.indexOf('#') + 1);
23131
- if (!url.includes('#') && !url.includes('roles-and-access') && !url.includes('tasks')) {
23121
+ if (!url.includes('#')) {
23132
23122
  var paths = url.split('/');
23133
23123
  // lastPath can be /caseId, or the tabs /tasks, /hearings etc.
23134
23124
  var lastPath_1 = decodeURIComponent(paths[paths.length - 1]);
23135
23125
  var foundTab_1 = null;
23136
- if (!this.prependedTabs) {
23137
- this.prependedTabs = [];
23138
- }
23139
23126
  var additionalTabs = __spread(this.prependedTabs, this.appendedTabs);
23140
23127
  if (additionalTabs && additionalTabs.length) {
23141
23128
  foundTab_1 = additionalTabs.find(function (caseTab) { return caseTab.id.toLowerCase() === lastPath_1.toLowerCase(); });
@@ -23153,7 +23140,7 @@
23153
23140
  this.caseDetails.tabs.sort(function (aTab, bTab) { return aTab.order > bTab.order ? 1 : (bTab.order > aTab.order ? -1 : 0); });
23154
23141
  // preselect the 1st order of CCD predefined tabs
23155
23142
  var preSelectTab_1 = this.caseDetails.tabs[0];
23156
- this.router.navigate(['cases', 'case-details', this.caseDetails.case_id], { fragment: preSelectTab_1.label }).then(function () {
23143
+ this.router.navigate(['cases', 'case-details', this.caseDetails.case_id]).then(function () {
23157
23144
  matTab = _this.tabGroup._tabs.find(function (x) { return x.textLabel === preSelectTab_1.label; });
23158
23145
  _this.tabGroup.selectedIndex = matTab.position;
23159
23146
  });
@@ -23162,9 +23149,6 @@
23162
23149
  else {
23163
23150
  var regExp = new RegExp(CaseFullAccessViewComponent.UNICODE_SPACE, 'g');
23164
23151
  hashValue = hashValue.replace(regExp, CaseFullAccessViewComponent.EMPTY_SPACE);
23165
- if (hashValue.includes('roles-and-access') || hashValue.includes('tasks')) {
23166
- hashValue = hashValue.includes('roles-and-access') ? 'roles and access' : 'tasks';
23167
- }
23168
23152
  matTab = this.tabGroup._tabs.find(function (x) { return x.textLabel.replace(CaseFullAccessViewComponent.EMPTY_SPACE, '').toLowerCase() ===
23169
23153
  hashValue.replace(CaseFullAccessViewComponent.EMPTY_SPACE, '').toLowerCase(); });
23170
23154
  if (matTab && matTab.position) {
@@ -23175,9 +23159,10 @@
23175
23159
  CaseFullAccessViewComponent.prototype.tabChanged = function (tabChangeEvent) {
23176
23160
  var tab = tabChangeEvent.tab['_viewContainerRef'];
23177
23161
  var id = tab.element.nativeElement.id;
23178
- var tabsLengthBeforeAppended = this.prependedTabs.length + this.caseDetails.tabs.length;
23162
+ // due to some edge case like hidden tab we can't calculate the last index of existing tabs,
23163
+ // so have to hard code the hearings id here
23179
23164
  if ((tabChangeEvent.index <= 1 && this.prependedTabs.length) ||
23180
- (tabChangeEvent.index >= tabsLengthBeforeAppended && this.appendedTabs.length)) {
23165
+ (this.appendedTabs.length && id === 'hearings')) {
23181
23166
  this.router.navigate([id], { relativeTo: this.route });
23182
23167
  }
23183
23168
  else {
@@ -23245,7 +23230,7 @@
23245
23230
  CaseFullAccessViewComponent.TRIGGER_TEXT_CONTINUE = 'Ignore Warning and Go';
23246
23231
  CaseFullAccessViewComponent.UNICODE_SPACE = '%20';
23247
23232
  CaseFullAccessViewComponent.EMPTY_SPACE = ' ';
23248
- CaseFullAccessViewComponent.ɵfac = function CaseFullAccessViewComponent_Factory(t) { return new (t || CaseFullAccessViewComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.NgZone), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.Router), i0__namespace.ɵɵdirectiveInject(NavigationNotifierService), i0__namespace.ɵɵdirectiveInject(OrderService), i0__namespace.ɵɵdirectiveInject(ActivityPollingService), i0__namespace.ɵɵdirectiveInject(i1__namespace$5.MatDialog), i0__namespace.ɵɵdirectiveInject(AlertService), i0__namespace.ɵɵdirectiveInject(DraftService), i0__namespace.ɵɵdirectiveInject(ErrorNotifierService), i0__namespace.ɵɵdirectiveInject(ConvertHrefToRouterService), i0__namespace.ɵɵdirectiveInject(i1__namespace.Location), i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef)); };
23233
+ CaseFullAccessViewComponent.ɵfac = function CaseFullAccessViewComponent_Factory(t) { return new (t || CaseFullAccessViewComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.NgZone), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.Router), i0__namespace.ɵɵdirectiveInject(NavigationNotifierService), i0__namespace.ɵɵdirectiveInject(OrderService), i0__namespace.ɵɵdirectiveInject(ActivityPollingService), i0__namespace.ɵɵdirectiveInject(i1__namespace$5.MatDialog), i0__namespace.ɵɵdirectiveInject(AlertService), i0__namespace.ɵɵdirectiveInject(DraftService), i0__namespace.ɵɵdirectiveInject(ErrorNotifierService), i0__namespace.ɵɵdirectiveInject(ConvertHrefToRouterService), i0__namespace.ɵɵdirectiveInject(i1__namespace.Location)); };
23249
23234
  CaseFullAccessViewComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFullAccessViewComponent, selectors: [["ccd-case-full-access-view"]], viewQuery: function CaseFullAccessViewComponent_Query(rf, ctx) {
23250
23235
  if (rf & 1) {
23251
23236
  i0__namespace.ɵɵviewQuery(_c0$a, 1);
@@ -23254,7 +23239,7 @@
23254
23239
  var _t = void 0;
23255
23240
  i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.tabGroup = _t.first);
23256
23241
  }
23257
- }, inputs: { hasPrint: "hasPrint", hasEventSelector: "hasEventSelector", caseDetails: "caseDetails", prependedTabs: "prependedTabs", appendedTabs: "appendedTabs" }, features: [i0__namespace.ɵɵNgOnChangesFeature], decls: 12, vars: 11, consts: [["class", "error-summary", "role", "group", "aria-labelledby", "edit-case-event_error-summary-heading", "tabindex", "-1", 4, "ngIf"], [3, "triggerTextContinue", "triggerTextIgnore", "callbackErrorsSubject", "callbackErrorsContext"], [3, "caseId", "displayMode"], [1, "grid-row"], [1, "column-one-half"], [3, "caseDetails"], ["class", "case-viewer-controls", 4, "ngIf"], ["class", "column-one-half", 4, "ngIf"], [1, "column-full"], [4, "ngIf"], ["role", "group", "aria-labelledby", "edit-case-event_error-summary-heading", "tabindex", "-1", 1, "error-summary"], ["id", "edit-case-event_error-summary-heading", 1, "heading-h1", "error-summary-heading"], ["id", "edit-case-event_error-summary-body", 1, "govuk-error-summary__body"], ["href", "get-help", "target", "_blank"], ["id", "edit-case-event_error-summary-heading", 1, "heading-h2", "error-summary-heading"], ["class", "error-summary-list", 4, "ngIf"], [1, "error-summary-list"], [4, "ngFor", "ngForOf"], [1, "case-viewer-controls"], ["id", "case-viewer-control-print", "routerLink", "print", 1, "button", "button-secondary"], [3, "isDisabled", "triggers", "triggerText", "onTriggerChange", "onTriggerSubmit"], ["animationDuration", "0ms", 3, "disableRipple", "selectedTabChange"], ["tabGroup", ""], [3, "id", "label", 4, "ngFor", "ngForOf"], [3, "id", "label"], ["matTabContent", ""], ["aria-describedby", "case viewer table"], ["ccdLabelSubstitutor", "", 3, "caseField", "contextFields", "hidden"], [3, "ngSwitch"], [4, "ngSwitchCase"], ["class", "compound-field", 4, "ngSwitchCase"], [1, "case-viewer-label", "text-16"], [1, "text-16"], [3, "topLevelFormGroup", "caseField", "caseReference", "markdownUseHrefAsRouterLink"], [1, "compound-field"]], template: function CaseFullAccessViewComponent_Template(rf, ctx) {
23242
+ }, inputs: { hasPrint: "hasPrint", hasEventSelector: "hasEventSelector", caseDetails: "caseDetails", prependedTabs: "prependedTabs", appendedTabs: "appendedTabs" }, decls: 12, vars: 11, consts: [["class", "error-summary", "role", "group", "aria-labelledby", "edit-case-event_error-summary-heading", "tabindex", "-1", 4, "ngIf"], [3, "triggerTextContinue", "triggerTextIgnore", "callbackErrorsSubject", "callbackErrorsContext"], [3, "caseId", "displayMode"], [1, "grid-row"], [1, "column-one-half"], [3, "caseDetails"], ["class", "case-viewer-controls", 4, "ngIf"], ["class", "column-one-half", 4, "ngIf"], [1, "column-full"], [4, "ngIf"], ["role", "group", "aria-labelledby", "edit-case-event_error-summary-heading", "tabindex", "-1", 1, "error-summary"], ["id", "edit-case-event_error-summary-heading", 1, "heading-h1", "error-summary-heading"], ["id", "edit-case-event_error-summary-body", 1, "govuk-error-summary__body"], ["href", "get-help", "target", "_blank"], ["id", "edit-case-event_error-summary-heading", 1, "heading-h2", "error-summary-heading"], ["class", "error-summary-list", 4, "ngIf"], [1, "error-summary-list"], [4, "ngFor", "ngForOf"], [1, "case-viewer-controls"], ["id", "case-viewer-control-print", "routerLink", "print", 1, "button", "button-secondary"], [3, "isDisabled", "triggers", "triggerText", "onTriggerChange", "onTriggerSubmit"], ["animationDuration", "0ms", 3, "disableRipple", "selectedTabChange"], ["tabGroup", ""], [3, "id", "label", 4, "ngFor", "ngForOf"], [3, "id", "label"], ["matTabContent", ""], ["aria-describedby", "case viewer table"], ["ccdLabelSubstitutor", "", 3, "caseField", "contextFields", "hidden"], [3, "ngSwitch"], [4, "ngSwitchCase"], ["class", "compound-field", 4, "ngSwitchCase"], [1, "case-viewer-label", "text-16"], [1, "text-16"], [3, "topLevelFormGroup", "caseField", "caseReference", "markdownUseHrefAsRouterLink"], [1, "compound-field"]], template: function CaseFullAccessViewComponent_Template(rf, ctx) {
23258
23243
  if (rf & 1) {
23259
23244
  i0__namespace.ɵɵtemplate(0, CaseFullAccessViewComponent_div_0_Template, 10, 0, "div", 0);
23260
23245
  i0__namespace.ɵɵtemplate(1, CaseFullAccessViewComponent_div_1_Template, 6, 2, "div", 0);
@@ -23292,7 +23277,7 @@
23292
23277
  i0__namespace.ɵɵadvance(3);
23293
23278
  i0__namespace.ɵɵproperty("ngIf", ctx.hasTabsPresent());
23294
23279
  }
23295
- }, directives: [i1__namespace.NgIf, CallbackErrorsComponent, ActivityComponent, CaseHeaderComponent, i1__namespace.NgForOf, i1__namespace$1.RouterLinkWithHref, EventTriggerComponent, i15__namespace.MatTabGroup, i15__namespace.MatTab, i15__namespace.MatTabContent, LabelSubstitutorDirective, i1__namespace.NgSwitch, i1__namespace.NgSwitchCase, FieldReadComponent, i1__namespace$1.RouterOutlet], pipes: [ReadFieldsFilterPipe, CcdTabFieldsPipe, IsCompoundPipe], styles: ["th[_ngcontent-%COMP%]{width:1%;white-space:nowrap;vertical-align:top}.compound-field[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:0}.case-viewer-controls[_ngcontent-%COMP%]{margin-top:47px;margin-bottom:20px}ccd-case-header[_ngcontent-%COMP%]{float:left;margin-right:10px}ccd-event-trigger[_ngcontent-%COMP%]{float:right}.case-viewer-label[_ngcontent-%COMP%]{min-width:300px;white-space:normal}.markdown[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin-bottom:0}"] });
23280
+ }, directives: [i1__namespace.NgIf, CallbackErrorsComponent, ActivityComponent, CaseHeaderComponent, i1__namespace.NgForOf, i1__namespace$1.RouterLinkWithHref, EventTriggerComponent, i10__namespace.MatTabGroup, i10__namespace.MatTab, i10__namespace.MatTabContent, LabelSubstitutorDirective, i1__namespace.NgSwitch, i1__namespace.NgSwitchCase, FieldReadComponent, i1__namespace$1.RouterOutlet], pipes: [ReadFieldsFilterPipe, CcdTabFieldsPipe, IsCompoundPipe], styles: ["th[_ngcontent-%COMP%]{width:1%;white-space:nowrap;vertical-align:top}.compound-field[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:0}.case-viewer-controls[_ngcontent-%COMP%]{margin-top:47px;margin-bottom:20px}ccd-case-header[_ngcontent-%COMP%]{float:left;margin-right:10px}ccd-event-trigger[_ngcontent-%COMP%]{float:right}.case-viewer-label[_ngcontent-%COMP%]{min-width:300px;white-space:normal}.markdown[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin-bottom:0}"] });
23296
23281
  (function () {
23297
23282
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFullAccessViewComponent, [{
23298
23283
  type: i0.Component,
@@ -23301,7 +23286,7 @@
23301
23286
  templateUrl: './case-full-access-view.component.html',
23302
23287
  styleUrls: ['./case-full-access-view.component.scss']
23303
23288
  }]
23304
- }], function () { return [{ type: i0__namespace.NgZone }, { type: i1__namespace$1.ActivatedRoute }, { type: i1__namespace$1.Router }, { type: NavigationNotifierService }, { type: OrderService }, { type: ActivityPollingService }, { type: i1__namespace$5.MatDialog }, { type: AlertService }, { type: DraftService }, { type: ErrorNotifierService }, { type: ConvertHrefToRouterService }, { type: i1__namespace.Location }, { type: i0__namespace.ChangeDetectorRef }]; }, { hasPrint: [{
23289
+ }], function () { return [{ type: i0__namespace.NgZone }, { type: i1__namespace$1.ActivatedRoute }, { type: i1__namespace$1.Router }, { type: NavigationNotifierService }, { type: OrderService }, { type: ActivityPollingService }, { type: i1__namespace$5.MatDialog }, { type: AlertService }, { type: DraftService }, { type: ErrorNotifierService }, { type: ConvertHrefToRouterService }, { type: i1__namespace.Location }]; }, { hasPrint: [{
23305
23290
  type: i0.Input
23306
23291
  }], hasEventSelector: [{
23307
23292
  type: i0.Input
@@ -24121,21 +24106,28 @@
24121
24106
  }
24122
24107
  EventStartGuard.prototype.canActivate = function (route) {
24123
24108
  var _this = this;
24124
- var caseId = route.params['cid'];
24125
- var eventId = route.params['eid'];
24126
- var taskId = route.queryParams['tid'];
24127
- // TODO: NavigationExtras should be used once Angular upgrade changes have been incorporated
24128
- var isComplete = route.queryParams['isComplete'];
24129
- var caseInfoStr = this.sessionStorageService.getItem('caseInfo');
24130
- if (caseInfoStr) {
24131
- var caseInfo = JSON.parse(caseInfoStr);
24132
- if (caseInfo && caseInfo.cid === caseId) {
24133
- if (isComplete) {
24134
- return rxjs.of(true);
24109
+ // Checks must be performed only for Work Allocation 2
24110
+ if (this.appConfig.getWorkAllocationApiUrl().toLowerCase() === 'workallocation2') {
24111
+ var caseId_1 = route.params['cid'];
24112
+ var eventId_1 = route.params['eid'];
24113
+ var taskId_1 = route.queryParams['tid'];
24114
+ // TODO: NavigationExtras should be used once Angular upgrade changes have been incorporated
24115
+ var isComplete = route.queryParams['isComplete'];
24116
+ var caseInfoStr = this.sessionStorageService.getItem('caseInfo');
24117
+ if (caseInfoStr) {
24118
+ var caseInfo = JSON.parse(caseInfoStr);
24119
+ if (caseInfo && caseInfo.cid === caseId_1) {
24120
+ if (isComplete) {
24121
+ return rxjs.of(true);
24122
+ }
24123
+ return this.workAllocationService.getTasksByCaseIdAndEventId(eventId_1, caseId_1, caseInfo.caseType, caseInfo.jurisdiction).pipe(operators.switchMap(function (payload) { return _this.checkForTasks(payload, caseId_1, eventId_1, taskId_1); }));
24135
24124
  }
24136
- return this.workAllocationService.getTasksByCaseIdAndEventId(eventId, caseId, caseInfo.caseType, caseInfo.jurisdiction).pipe(operators.switchMap(function (payload) { return _this.checkForTasks(payload, caseId, eventId, taskId); }));
24137
24125
  }
24138
24126
  }
24127
+ else {
24128
+ // Checks not required, return true by default for Work Allocation 1
24129
+ return rxjs.of(true);
24130
+ }
24139
24131
  return rxjs.of(false);
24140
24132
  };
24141
24133
  EventStartGuard.prototype.checkTaskInEventNotRequired = function (payload, caseId, taskId) {
@@ -25607,7 +25599,7 @@
25607
25599
  CaseEditorModule,
25608
25600
  ConditionalShowModule,
25609
25601
  CaseHistoryModule,
25610
- i15.MatTabsModule,
25602
+ i10.MatTabsModule,
25611
25603
  i1$2.ReactiveFormsModule,
25612
25604
  AlertModule,
25613
25605
  LabelSubstitutorModule
@@ -25637,7 +25629,7 @@
25637
25629
  CaseEditorModule,
25638
25630
  ConditionalShowModule,
25639
25631
  CaseHistoryModule,
25640
- i15.MatTabsModule,
25632
+ i10.MatTabsModule,
25641
25633
  i1$2.ReactiveFormsModule,
25642
25634
  AlertModule,
25643
25635
  LabelSubstitutorModule], exports: [CaseViewerComponent,
@@ -25660,7 +25652,7 @@
25660
25652
  CaseEditorModule,
25661
25653
  ConditionalShowModule,
25662
25654
  CaseHistoryModule,
25663
- i15.MatTabsModule,
25655
+ i10.MatTabsModule,
25664
25656
  i1$2.ReactiveFormsModule,
25665
25657
  AlertModule,
25666
25658
  LabelSubstitutorModule