@hmcts/ccd-case-ui-toolkit 5.0.22-angular11-upgrade → 5.0.24-case-file-view-post-ccd-toolkit-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.
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.js +202 -69
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.js.map +1 -1
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js +1 -1
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js.map +1 -1
- package/esm2015/lib/app.config.js +1 -1
- package/esm2015/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.js +64 -78
- package/esm2015/lib/shared/components/case-viewer/services/case.resolver.js +13 -15
- package/esm2015/lib/shared/components/event-start/event-guard/event-start.guard.js +20 -13
- package/esm2015/lib/shared/components/palette/case-file-view/case-file-view-field.component.js +55 -0
- package/esm2015/lib/shared/components/palette/case-file-view/index.js +2 -0
- package/esm2015/lib/shared/components/palette/index.js +2 -1
- package/esm2015/lib/shared/components/palette/palette.module.js +11 -4
- package/esm2015/lib/shared/components/palette/palette.service.js +18 -1
- package/esm2015/lib/shared/components/palette/utils/utils.module.js +7 -2
- package/esm2015/lib/shared/domain/case-file-view/case-file-view-category.model.js +3 -0
- package/esm2015/lib/shared/domain/case-file-view/case-file-view-document.model.js +3 -0
- package/esm2015/lib/shared/domain/case-file-view/categories-and-documents.model.js +7 -0
- package/esm2015/lib/shared/domain/case-file-view/index.js +4 -0
- package/esm2015/lib/shared/domain/definition/field-type-enum.model.js +1 -1
- package/esm2015/lib/shared/pipes/complex/ccd-read-fields-filter.pipe.js +2 -2
- package/esm2015/lib/shared/services/case-file-view/case-file-view.service.js +47 -0
- package/esm2015/lib/shared/services/case-file-view/index.js +2 -0
- package/esm2015/lib/shared/services/index.js +2 -1
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js +190 -68
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -1
- package/lib/app.config.d.ts +4 -0
- package/lib/app.config.d.ts.map +1 -1
- package/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.d.ts +16 -19
- package/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.d.ts.map +1 -1
- package/lib/shared/components/case-viewer/services/case.resolver.d.ts +2 -1
- package/lib/shared/components/case-viewer/services/case.resolver.d.ts.map +1 -1
- package/lib/shared/components/event-start/event-guard/event-start.guard.d.ts.map +1 -1
- package/lib/shared/components/palette/case-file-view/case-file-view-field.component.d.ts +10 -0
- package/lib/shared/components/palette/case-file-view/case-file-view-field.component.d.ts.map +1 -0
- package/lib/shared/components/palette/case-file-view/index.d.ts +2 -0
- package/lib/shared/components/palette/case-file-view/index.d.ts.map +1 -0
- package/lib/shared/components/palette/index.d.ts +1 -0
- package/lib/shared/components/palette/index.d.ts.map +1 -1
- package/lib/shared/components/palette/palette.module.d.ts +22 -21
- package/lib/shared/components/palette/palette.module.d.ts.map +1 -1
- package/lib/shared/components/palette/palette.service.d.ts +2 -0
- package/lib/shared/components/palette/palette.service.d.ts.map +1 -1
- package/lib/shared/components/palette/utils/utils.module.d.ts.map +1 -1
- package/lib/shared/domain/case-file-view/case-file-view-category.model.d.ts +9 -0
- package/lib/shared/domain/case-file-view/case-file-view-category.model.d.ts.map +1 -0
- package/lib/shared/domain/case-file-view/case-file-view-document.model.d.ts +8 -0
- package/lib/shared/domain/case-file-view/case-file-view-document.model.d.ts.map +1 -0
- package/lib/shared/domain/case-file-view/categories-and-documents.model.d.ts +12 -0
- package/lib/shared/domain/case-file-view/categories-and-documents.model.d.ts.map +1 -0
- package/lib/shared/domain/case-file-view/index.d.ts +4 -0
- package/lib/shared/domain/case-file-view/index.d.ts.map +1 -0
- package/lib/shared/domain/definition/field-type-enum.model.d.ts +1 -1
- package/lib/shared/domain/definition/field-type-enum.model.d.ts.map +1 -1
- package/lib/shared/pipes/complex/ccd-read-fields-filter.pipe.d.ts.map +1 -1
- package/lib/shared/services/case-file-view/case-file-view.service.d.ts +22 -0
- package/lib/shared/services/case-file-view/case-file-view.service.d.ts.map +1 -0
- package/lib/shared/services/case-file-view/index.d.ts +2 -0
- package/lib/shared/services/case-file-view/index.d.ts.map +1 -0
- package/lib/shared/services/index.d.ts +1 -0
- package/lib/shared/services/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -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,
|
|
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
|
|
46
|
+
var i10__namespace = /*#__PURE__*/_interopNamespace(i10);
|
|
47
47
|
|
|
48
48
|
function FooterComponent_div_2_Template(rf, ctx) {
|
|
49
49
|
if (rf & 1) {
|
|
@@ -7784,6 +7784,62 @@
|
|
|
7784
7784
|
}] });
|
|
7785
7785
|
})();
|
|
7786
7786
|
|
|
7787
|
+
var CaseFileViewFieldComponent = /** @class */ (function () {
|
|
7788
|
+
function CaseFileViewFieldComponent(elementRef) {
|
|
7789
|
+
this.elementRef = elementRef;
|
|
7790
|
+
}
|
|
7791
|
+
CaseFileViewFieldComponent.prototype.ngAfterViewInit = function () {
|
|
7792
|
+
var slider = this.elementRef.nativeElement.querySelector('.slider');
|
|
7793
|
+
var documentTreeContainer = this.elementRef.nativeElement.querySelector('.document-tree-container');
|
|
7794
|
+
var mousedown$ = rxjs.fromEvent(slider, 'mousedown');
|
|
7795
|
+
var mousemove$ = rxjs.fromEvent(document, 'mousemove');
|
|
7796
|
+
var mouseup$ = rxjs.fromEvent(document, 'mouseup');
|
|
7797
|
+
var drag$ = mousedown$.pipe(operators.switchMap(function (start) {
|
|
7798
|
+
var x = start.clientX;
|
|
7799
|
+
var documentTreeContainerWidth = documentTreeContainer.getBoundingClientRect().width;
|
|
7800
|
+
return mousemove$.pipe(operators.map(function (move) {
|
|
7801
|
+
move.preventDefault();
|
|
7802
|
+
return {
|
|
7803
|
+
dx: move.clientX - x,
|
|
7804
|
+
documentTreeContainerWidth: documentTreeContainerWidth
|
|
7805
|
+
};
|
|
7806
|
+
}), operators.takeUntil(mouseup$));
|
|
7807
|
+
}));
|
|
7808
|
+
drag$.subscribe(function (pos) {
|
|
7809
|
+
var calculatedWidth = ((pos.documentTreeContainerWidth + pos.dx) * 100) / slider.parentElement.getBoundingClientRect().width;
|
|
7810
|
+
documentTreeContainer.setAttribute('style', "width: " + calculatedWidth + "%");
|
|
7811
|
+
});
|
|
7812
|
+
};
|
|
7813
|
+
return CaseFileViewFieldComponent;
|
|
7814
|
+
}());
|
|
7815
|
+
CaseFileViewFieldComponent.ɵfac = function CaseFileViewFieldComponent_Factory(t) { return new (t || CaseFileViewFieldComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.ElementRef)); };
|
|
7816
|
+
CaseFileViewFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewFieldComponent, selectors: [["ccd-case-file-view-field"]], decls: 8, vars: 0, consts: [[1, "govuk-heading-l"], ["id", "case-file-view", 1, "govuk-form-group"], [1, "document-tree-container"], [1, "slider"], [1, "media-viewer-container"]], template: function CaseFileViewFieldComponent_Template(rf, ctx) {
|
|
7817
|
+
if (rf & 1) {
|
|
7818
|
+
i0__namespace.ɵɵelementStart(0, "h2", 0);
|
|
7819
|
+
i0__namespace.ɵɵtext(1, "Case file");
|
|
7820
|
+
i0__namespace.ɵɵelementEnd();
|
|
7821
|
+
i0__namespace.ɵɵelementStart(2, "div", 1);
|
|
7822
|
+
i0__namespace.ɵɵelementStart(3, "div", 2);
|
|
7823
|
+
i0__namespace.ɵɵtext(4, " Document tree ");
|
|
7824
|
+
i0__namespace.ɵɵelementEnd();
|
|
7825
|
+
i0__namespace.ɵɵelement(5, "div", 3);
|
|
7826
|
+
i0__namespace.ɵɵelementStart(6, "div", 4);
|
|
7827
|
+
i0__namespace.ɵɵtext(7, " Media viewer ");
|
|
7828
|
+
i0__namespace.ɵɵelementEnd();
|
|
7829
|
+
i0__namespace.ɵɵelementEnd();
|
|
7830
|
+
}
|
|
7831
|
+
}, styles: ["#case-file-view[_ngcontent-%COMP%]{display:flex}#case-file-view[_ngcontent-%COMP%] .document-tree-container[_ngcontent-%COMP%]{background-color:#add8e6;width:40%;min-height:400px}#case-file-view[_ngcontent-%COMP%] .slider[_ngcontent-%COMP%]{background-color:#ff4500;width:.2%}#case-file-view[_ngcontent-%COMP%] .slider[_ngcontent-%COMP%]:focus, #case-file-view[_ngcontent-%COMP%] .slider[_ngcontent-%COMP%]:hover{cursor:col-resize}#case-file-view[_ngcontent-%COMP%] .media-viewer-container[_ngcontent-%COMP%]{background-color:#90ee90;flex:1 1 0%}"] });
|
|
7832
|
+
(function () {
|
|
7833
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewFieldComponent, [{
|
|
7834
|
+
type: i0.Component,
|
|
7835
|
+
args: [{
|
|
7836
|
+
selector: 'ccd-case-file-view-field',
|
|
7837
|
+
templateUrl: './case-file-view-field.component.html',
|
|
7838
|
+
styleUrls: ['./case-file-view-field.component.scss']
|
|
7839
|
+
}]
|
|
7840
|
+
}], function () { return [{ type: i0__namespace.ElementRef }]; }, null);
|
|
7841
|
+
})();
|
|
7842
|
+
|
|
7787
7843
|
function ReadCaseLinkFieldComponent_a_0_Template(rf, ctx) {
|
|
7788
7844
|
if (rf & 1) {
|
|
7789
7845
|
i0__namespace.ɵɵelementStart(0, "a", 1);
|
|
@@ -12651,6 +12707,49 @@
|
|
|
12651
12707
|
return PaymentField;
|
|
12652
12708
|
}(AbstractFieldReadComponent));
|
|
12653
12709
|
|
|
12710
|
+
var CaseFileViewService = /** @class */ (function () {
|
|
12711
|
+
function CaseFileViewService(http, appConfig, errorService) {
|
|
12712
|
+
this.http = http;
|
|
12713
|
+
this.appConfig = appConfig;
|
|
12714
|
+
this.errorService = errorService;
|
|
12715
|
+
}
|
|
12716
|
+
/**
|
|
12717
|
+
* Retrieves the categories and documents for a case.
|
|
12718
|
+
*
|
|
12719
|
+
* @param caseRef 16-digit Case Reference number of the case
|
|
12720
|
+
* @returns An `Observable` of the `CategoriesAndDocuments` for the case
|
|
12721
|
+
*/
|
|
12722
|
+
CaseFileViewService.prototype.getCategoriesAndDocuments = function (caseRef) {
|
|
12723
|
+
var url = this.appConfig.getCategoriesAndDocumentsUrl();
|
|
12724
|
+
if (url) {
|
|
12725
|
+
url += "/" + caseRef;
|
|
12726
|
+
return this.http.get(url, { observe: 'body' });
|
|
12727
|
+
}
|
|
12728
|
+
return rxjs.of(null);
|
|
12729
|
+
};
|
|
12730
|
+
CaseFileViewService.prototype.updateDocumentCategory = function (caseRef, caseVersion, attributePath, categoryId) {
|
|
12731
|
+
var url = this.appConfig.getDocumentDataUrl();
|
|
12732
|
+
if (url) {
|
|
12733
|
+
url += "/" + caseRef;
|
|
12734
|
+
var body = {
|
|
12735
|
+
case_version: caseVersion,
|
|
12736
|
+
attribute_path: attributePath,
|
|
12737
|
+
category_id: categoryId
|
|
12738
|
+
};
|
|
12739
|
+
return this.http.put(url, body, { observe: 'body' });
|
|
12740
|
+
}
|
|
12741
|
+
return rxjs.of(null);
|
|
12742
|
+
};
|
|
12743
|
+
return CaseFileViewService;
|
|
12744
|
+
}());
|
|
12745
|
+
CaseFileViewService.ɵfac = function CaseFileViewService_Factory(t) { return new (t || CaseFileViewService)(i0__namespace.ɵɵinject(HttpService), i0__namespace.ɵɵinject(AbstractAppConfig), i0__namespace.ɵɵinject(HttpErrorService)); };
|
|
12746
|
+
CaseFileViewService.ɵprov = i0__namespace.ɵɵdefineInjectable({ token: CaseFileViewService, factory: CaseFileViewService.ɵfac });
|
|
12747
|
+
(function () {
|
|
12748
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewService, [{
|
|
12749
|
+
type: i0.Injectable
|
|
12750
|
+
}], function () { return [{ type: HttpService }, { type: AbstractAppConfig }, { type: HttpErrorService }]; }, null);
|
|
12751
|
+
})();
|
|
12752
|
+
|
|
12654
12753
|
var ErrorNotifierService = /** @class */ (function () {
|
|
12655
12754
|
function ErrorNotifierService() {
|
|
12656
12755
|
this.errorSource = new rxjs.Subject();
|
|
@@ -15706,6 +15805,9 @@
|
|
|
15706
15805
|
|
|
15707
15806
|
var PaletteService = /** @class */ (function () {
|
|
15708
15807
|
function PaletteService() {
|
|
15808
|
+
this.componentLauncherRegistry = {
|
|
15809
|
+
CaseFileView: CaseFileViewFieldComponent
|
|
15810
|
+
};
|
|
15709
15811
|
}
|
|
15710
15812
|
PaletteService.prototype.getFieldComponentClass = function (caseField, write) {
|
|
15711
15813
|
switch (caseField.field_type.type) {
|
|
@@ -15765,10 +15867,21 @@
|
|
|
15765
15867
|
return CaseHistoryViewerFieldComponent;
|
|
15766
15868
|
case 'WaysToPay':
|
|
15767
15869
|
return WaysToPayFieldComponent;
|
|
15870
|
+
case 'ComponentLauncher':
|
|
15871
|
+
return this.getComponentLauncherComponent(caseField);
|
|
15768
15872
|
default:
|
|
15769
15873
|
return UnsupportedFieldComponent;
|
|
15770
15874
|
}
|
|
15771
15875
|
};
|
|
15876
|
+
PaletteService.prototype.getComponentLauncherComponent = function (caseField) {
|
|
15877
|
+
// Extract the value passed for #ARGUMENT(...) in the CaseField display_context_parameter and return the matching
|
|
15878
|
+
// component from the componentLauncherRegistry
|
|
15879
|
+
var argumentValue = caseField.display_context_parameter.match(/#ARGUMENT\((.*?)\)/)[1];
|
|
15880
|
+
if (argumentValue && this.componentLauncherRegistry.hasOwnProperty(argumentValue)) {
|
|
15881
|
+
return this.componentLauncherRegistry[argumentValue];
|
|
15882
|
+
}
|
|
15883
|
+
return UnsupportedFieldComponent;
|
|
15884
|
+
};
|
|
15772
15885
|
return PaletteService;
|
|
15773
15886
|
}());
|
|
15774
15887
|
PaletteService.ɵfac = function PaletteService_Factory(t) { return new (t || PaletteService)(); };
|
|
@@ -18564,7 +18677,9 @@
|
|
|
18564
18677
|
}());
|
|
18565
18678
|
PaletteUtilsModule.ɵfac = function PaletteUtilsModule_Factory(t) { return new (t || PaletteUtilsModule)(); };
|
|
18566
18679
|
PaletteUtilsModule.ɵmod = i0__namespace.ɵɵdefineNgModule({ type: PaletteUtilsModule });
|
|
18567
|
-
PaletteUtilsModule.ɵinj = i0__namespace.ɵɵdefineInjector({
|
|
18680
|
+
PaletteUtilsModule.ɵinj = i0__namespace.ɵɵdefineInjector({ providers: [
|
|
18681
|
+
IsCompoundPipe
|
|
18682
|
+
], imports: [[
|
|
18568
18683
|
i1.CommonModule
|
|
18569
18684
|
]] });
|
|
18570
18685
|
(function () {
|
|
@@ -18610,6 +18725,9 @@
|
|
|
18610
18725
|
IsReadOnlyPipe,
|
|
18611
18726
|
IsReadOnlyAndNotCollectionPipe,
|
|
18612
18727
|
DashPipe
|
|
18728
|
+
],
|
|
18729
|
+
providers: [
|
|
18730
|
+
IsCompoundPipe
|
|
18613
18731
|
]
|
|
18614
18732
|
}]
|
|
18615
18733
|
}], null, null);
|
|
@@ -18815,7 +18933,7 @@
|
|
|
18815
18933
|
'',
|
|
18816
18934
|
{}
|
|
18817
18935
|
];
|
|
18818
|
-
ReadFieldsFilterPipe.ALWAYS_NULL_FIELDS = ['CasePaymentHistoryViewer', 'WaysToPay'];
|
|
18936
|
+
ReadFieldsFilterPipe.ALWAYS_NULL_FIELDS = ['CasePaymentHistoryViewer', 'WaysToPay', 'ComponentLauncher'];
|
|
18819
18937
|
ReadFieldsFilterPipe.NESTED_TYPES = {
|
|
18820
18938
|
Complex: ReadFieldsFilterPipe.isValidComplex,
|
|
18821
18939
|
Collection: ReadFieldsFilterPipe.isValidCollection
|
|
@@ -19162,7 +19280,9 @@
|
|
|
19162
19280
|
WriteFixedListFieldComponent,
|
|
19163
19281
|
WriteFixedRadioListFieldComponent,
|
|
19164
19282
|
WriteCaseLinkFieldComponent,
|
|
19165
|
-
WriteCollectionFieldComponent
|
|
19283
|
+
WriteCollectionFieldComponent,
|
|
19284
|
+
// ComponentLauncher web components
|
|
19285
|
+
CaseFileViewFieldComponent
|
|
19166
19286
|
];
|
|
19167
19287
|
var PaletteModule = /** @class */ (function () {
|
|
19168
19288
|
function PaletteModule() {
|
|
@@ -19283,7 +19403,9 @@
|
|
|
19283
19403
|
WriteFixedListFieldComponent,
|
|
19284
19404
|
WriteFixedRadioListFieldComponent,
|
|
19285
19405
|
WriteCaseLinkFieldComponent,
|
|
19286
|
-
WriteCollectionFieldComponent
|
|
19406
|
+
WriteCollectionFieldComponent,
|
|
19407
|
+
// ComponentLauncher web components
|
|
19408
|
+
CaseFileViewFieldComponent], imports: [i1.CommonModule,
|
|
19287
19409
|
i1$1.RouterModule,
|
|
19288
19410
|
i1$2.FormsModule,
|
|
19289
19411
|
i1$2.ReactiveFormsModule,
|
|
@@ -19377,7 +19499,9 @@
|
|
|
19377
19499
|
WriteFixedListFieldComponent,
|
|
19378
19500
|
WriteFixedRadioListFieldComponent,
|
|
19379
19501
|
WriteCaseLinkFieldComponent,
|
|
19380
|
-
WriteCollectionFieldComponent
|
|
19502
|
+
WriteCollectionFieldComponent,
|
|
19503
|
+
// ComponentLauncher web components
|
|
19504
|
+
CaseFileViewFieldComponent] });
|
|
19381
19505
|
})();
|
|
19382
19506
|
(function () {
|
|
19383
19507
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(PaletteModule, [{
|
|
@@ -22070,10 +22194,6 @@
|
|
|
22070
22194
|
CaseResolver.prototype.checkAuthorizationError = function (error) {
|
|
22071
22195
|
// TODO Should be logged to remote logging infrastructure
|
|
22072
22196
|
console.error(error);
|
|
22073
|
-
if (error.status === 400) {
|
|
22074
|
-
this.router.navigate(['/search/noresults']);
|
|
22075
|
-
return rxjs.of(null);
|
|
22076
|
-
}
|
|
22077
22197
|
if (CaseResolver.EVENT_REGEX.test(this.previousUrl) && error.status === 404) {
|
|
22078
22198
|
this.router.navigate(['/list/case']);
|
|
22079
22199
|
return rxjs.of(null);
|
|
@@ -22842,17 +22962,27 @@
|
|
|
22842
22962
|
i0__namespace.ɵɵproperty("id", tab_r16.id)("label", tab_r16.label);
|
|
22843
22963
|
}
|
|
22844
22964
|
}
|
|
22845
|
-
function
|
|
22965
|
+
function CaseFullAccessViewComponent_ng_container_11_mat_tab_4_ng_template_1_ng_container_2_tr_4_th_1_Template(rf, ctx) {
|
|
22846
22966
|
if (rf & 1) {
|
|
22847
|
-
i0__namespace.ɵɵelementStart(0, "
|
|
22848
|
-
i0__namespace.ɵɵelementStart(1, "
|
|
22849
|
-
i0__namespace.ɵɵ
|
|
22850
|
-
i0__namespace.ɵɵtext(3);
|
|
22967
|
+
i0__namespace.ɵɵelementStart(0, "th", 34);
|
|
22968
|
+
i0__namespace.ɵɵelementStart(1, "div", 35);
|
|
22969
|
+
i0__namespace.ɵɵtext(2);
|
|
22851
22970
|
i0__namespace.ɵɵelementEnd();
|
|
22852
22971
|
i0__namespace.ɵɵelementEnd();
|
|
22853
|
-
|
|
22854
|
-
|
|
22855
|
-
i0__namespace.ɵɵ
|
|
22972
|
+
}
|
|
22973
|
+
if (rf & 2) {
|
|
22974
|
+
var field_r21 = i0__namespace.ɵɵnextContext(2).$implicit;
|
|
22975
|
+
i0__namespace.ɵɵadvance(2);
|
|
22976
|
+
i0__namespace.ɵɵtextInterpolate(field_r21.label);
|
|
22977
|
+
}
|
|
22978
|
+
}
|
|
22979
|
+
function CaseFullAccessViewComponent_ng_container_11_mat_tab_4_ng_template_1_ng_container_2_tr_4_Template(rf, ctx) {
|
|
22980
|
+
if (rf & 1) {
|
|
22981
|
+
i0__namespace.ɵɵelementStart(0, "tr");
|
|
22982
|
+
i0__namespace.ɵɵtemplate(1, CaseFullAccessViewComponent_ng_container_11_mat_tab_4_ng_template_1_ng_container_2_tr_4_th_1_Template, 3, 1, "th", 31);
|
|
22983
|
+
i0__namespace.ɵɵelementStart(2, "td");
|
|
22984
|
+
i0__namespace.ɵɵelementStart(3, "span", 32);
|
|
22985
|
+
i0__namespace.ɵɵelement(4, "ccd-field-read", 33);
|
|
22856
22986
|
i0__namespace.ɵɵelementEnd();
|
|
22857
22987
|
i0__namespace.ɵɵelementEnd();
|
|
22858
22988
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -22860,15 +22990,15 @@
|
|
|
22860
22990
|
if (rf & 2) {
|
|
22861
22991
|
var field_r21 = i0__namespace.ɵɵnextContext().$implicit;
|
|
22862
22992
|
var ctx_r22 = i0__namespace.ɵɵnextContext(4);
|
|
22863
|
-
i0__namespace.ɵɵadvance(
|
|
22864
|
-
i0__namespace.ɵɵ
|
|
22993
|
+
i0__namespace.ɵɵadvance(1);
|
|
22994
|
+
i0__namespace.ɵɵproperty("ngIf", !ctx_r22.isFieldToHaveNoLabel(field_r21));
|
|
22865
22995
|
i0__namespace.ɵɵadvance(3);
|
|
22866
22996
|
i0__namespace.ɵɵproperty("topLevelFormGroup", ctx_r22.formGroup.controls["data"])("caseField", field_r21)("caseReference", ctx_r22.caseDetails.case_id)("markdownUseHrefAsRouterLink", ctx_r22.markdownUseHrefAsRouterLink);
|
|
22867
22997
|
}
|
|
22868
22998
|
}
|
|
22869
22999
|
function CaseFullAccessViewComponent_ng_container_11_mat_tab_4_ng_template_1_ng_container_2_tr_5_Template(rf, ctx) {
|
|
22870
23000
|
if (rf & 1) {
|
|
22871
|
-
i0__namespace.ɵɵelementStart(0, "tr",
|
|
23001
|
+
i0__namespace.ɵɵelementStart(0, "tr", 36);
|
|
22872
23002
|
i0__namespace.ɵɵelementStart(1, "th");
|
|
22873
23003
|
i0__namespace.ɵɵelementStart(2, "span", 32);
|
|
22874
23004
|
i0__namespace.ɵɵelement(3, "ccd-field-read", 33);
|
|
@@ -22889,7 +23019,7 @@
|
|
|
22889
23019
|
i0__namespace.ɵɵelementStart(1, "div", 27);
|
|
22890
23020
|
i0__namespace.ɵɵelementContainerStart(2, 28);
|
|
22891
23021
|
i0__namespace.ɵɵpipe(3, "ccdIsCompound");
|
|
22892
|
-
i0__namespace.ɵɵtemplate(4, CaseFullAccessViewComponent_ng_container_11_mat_tab_4_ng_template_1_ng_container_2_tr_4_Template,
|
|
23022
|
+
i0__namespace.ɵɵtemplate(4, CaseFullAccessViewComponent_ng_container_11_mat_tab_4_ng_template_1_ng_container_2_tr_4_Template, 5, 5, "tr", 29);
|
|
22893
23023
|
i0__namespace.ɵɵtemplate(5, CaseFullAccessViewComponent_ng_container_11_mat_tab_4_ng_template_1_ng_container_2_tr_5_Template, 4, 4, "tr", 30);
|
|
22894
23024
|
i0__namespace.ɵɵelementContainerEnd();
|
|
22895
23025
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -22943,8 +23073,8 @@
|
|
|
22943
23073
|
i0__namespace.ɵɵelement(0, "mat-tab", 24);
|
|
22944
23074
|
}
|
|
22945
23075
|
if (rf & 2) {
|
|
22946
|
-
var
|
|
22947
|
-
i0__namespace.ɵɵproperty("id",
|
|
23076
|
+
var tab_r29 = ctx.$implicit;
|
|
23077
|
+
i0__namespace.ɵɵproperty("id", tab_r29.id)("label", tab_r29.label);
|
|
22948
23078
|
}
|
|
22949
23079
|
}
|
|
22950
23080
|
function CaseFullAccessViewComponent_ng_container_11_router_outlet_6_Template(rf, ctx) {
|
|
@@ -22954,10 +23084,10 @@
|
|
|
22954
23084
|
}
|
|
22955
23085
|
function CaseFullAccessViewComponent_ng_container_11_Template(rf, ctx) {
|
|
22956
23086
|
if (rf & 1) {
|
|
22957
|
-
var
|
|
23087
|
+
var _r31_1 = i0__namespace.ɵɵgetCurrentView();
|
|
22958
23088
|
i0__namespace.ɵɵelementContainerStart(0);
|
|
22959
23089
|
i0__namespace.ɵɵelementStart(1, "mat-tab-group", 21, 22);
|
|
22960
|
-
i0__namespace.ɵɵlistener("selectedTabChange", function CaseFullAccessViewComponent_ng_container_11_Template_mat_tab_group_selectedTabChange_1_listener($event) { i0__namespace.ɵɵrestoreView(
|
|
23090
|
+
i0__namespace.ɵɵlistener("selectedTabChange", function CaseFullAccessViewComponent_ng_container_11_Template_mat_tab_group_selectedTabChange_1_listener($event) { i0__namespace.ɵɵrestoreView(_r31_1); var ctx_r30 = i0__namespace.ɵɵnextContext(); return ctx_r30.tabChanged($event); });
|
|
22961
23091
|
i0__namespace.ɵɵtemplate(3, CaseFullAccessViewComponent_ng_container_11_mat_tab_3_Template, 1, 2, "mat-tab", 23);
|
|
22962
23092
|
i0__namespace.ɵɵtemplate(4, CaseFullAccessViewComponent_ng_container_11_mat_tab_4_Template, 2, 2, "mat-tab", 23);
|
|
22963
23093
|
i0__namespace.ɵɵtemplate(5, CaseFullAccessViewComponent_ng_container_11_mat_tab_5_Template, 1, 2, "mat-tab", 23);
|
|
@@ -22980,7 +23110,7 @@
|
|
|
22980
23110
|
}
|
|
22981
23111
|
}
|
|
22982
23112
|
var CaseFullAccessViewComponent = /** @class */ (function () {
|
|
22983
|
-
function CaseFullAccessViewComponent(ngZone, route, router, navigationNotifierService, orderService, activityPollingService, dialog, alertService, draftService, errorNotifierService, convertHrefToRouterService, location
|
|
23113
|
+
function CaseFullAccessViewComponent(ngZone, route, router, navigationNotifierService, orderService, activityPollingService, dialog, alertService, draftService, errorNotifierService, convertHrefToRouterService, location) {
|
|
22984
23114
|
this.ngZone = ngZone;
|
|
22985
23115
|
this.route = route;
|
|
22986
23116
|
this.router = router;
|
|
@@ -22993,7 +23123,6 @@
|
|
|
22993
23123
|
this.errorNotifierService = errorNotifierService;
|
|
22994
23124
|
this.convertHrefToRouterService = convertHrefToRouterService;
|
|
22995
23125
|
this.location = location;
|
|
22996
|
-
this.crf = crf;
|
|
22997
23126
|
this.hasPrint = true;
|
|
22998
23127
|
this.hasEventSelector = true;
|
|
22999
23128
|
this.prependedTabs = [];
|
|
@@ -23003,15 +23132,8 @@
|
|
|
23003
23132
|
this.triggerTextIgnoreWarnings = CaseFullAccessViewComponent.TRIGGER_TEXT_CONTINUE;
|
|
23004
23133
|
this.triggerText = CaseFullAccessViewComponent.TRIGGER_TEXT_START;
|
|
23005
23134
|
this.ignoreWarning = false;
|
|
23006
|
-
this.callbackErrorsSubject = new
|
|
23135
|
+
this.callbackErrorsSubject = new Subject.Subject();
|
|
23007
23136
|
}
|
|
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
23137
|
CaseFullAccessViewComponent.prototype.ngOnInit = function () {
|
|
23016
23138
|
var _this = this;
|
|
23017
23139
|
initDialog();
|
|
@@ -23121,21 +23243,15 @@
|
|
|
23121
23243
|
&& this.error.details.field_errors.length);
|
|
23122
23244
|
};
|
|
23123
23245
|
CaseFullAccessViewComponent.prototype.ngAfterViewInit = function () {
|
|
23124
|
-
this.organiseTabPosition();
|
|
23125
|
-
};
|
|
23126
|
-
CaseFullAccessViewComponent.prototype.organiseTabPosition = function () {
|
|
23127
23246
|
var _this = this;
|
|
23128
23247
|
var matTab;
|
|
23129
23248
|
var url = this.location.path(true);
|
|
23130
23249
|
var hashValue = url.substring(url.indexOf('#') + 1);
|
|
23131
|
-
if (!url.includes('#')
|
|
23250
|
+
if (!url.includes('#')) {
|
|
23132
23251
|
var paths = url.split('/');
|
|
23133
23252
|
// lastPath can be /caseId, or the tabs /tasks, /hearings etc.
|
|
23134
23253
|
var lastPath_1 = decodeURIComponent(paths[paths.length - 1]);
|
|
23135
23254
|
var foundTab_1 = null;
|
|
23136
|
-
if (!this.prependedTabs) {
|
|
23137
|
-
this.prependedTabs = [];
|
|
23138
|
-
}
|
|
23139
23255
|
var additionalTabs = __spread(this.prependedTabs, this.appendedTabs);
|
|
23140
23256
|
if (additionalTabs && additionalTabs.length) {
|
|
23141
23257
|
foundTab_1 = additionalTabs.find(function (caseTab) { return caseTab.id.toLowerCase() === lastPath_1.toLowerCase(); });
|
|
@@ -23153,7 +23269,7 @@
|
|
|
23153
23269
|
this.caseDetails.tabs.sort(function (aTab, bTab) { return aTab.order > bTab.order ? 1 : (bTab.order > aTab.order ? -1 : 0); });
|
|
23154
23270
|
// preselect the 1st order of CCD predefined tabs
|
|
23155
23271
|
var preSelectTab_1 = this.caseDetails.tabs[0];
|
|
23156
|
-
this.router.navigate(['cases', 'case-details', this.caseDetails.case_id]
|
|
23272
|
+
this.router.navigate(['cases', 'case-details', this.caseDetails.case_id]).then(function () {
|
|
23157
23273
|
matTab = _this.tabGroup._tabs.find(function (x) { return x.textLabel === preSelectTab_1.label; });
|
|
23158
23274
|
_this.tabGroup.selectedIndex = matTab.position;
|
|
23159
23275
|
});
|
|
@@ -23162,9 +23278,6 @@
|
|
|
23162
23278
|
else {
|
|
23163
23279
|
var regExp = new RegExp(CaseFullAccessViewComponent.UNICODE_SPACE, 'g');
|
|
23164
23280
|
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
23281
|
matTab = this.tabGroup._tabs.find(function (x) { return x.textLabel.replace(CaseFullAccessViewComponent.EMPTY_SPACE, '').toLowerCase() ===
|
|
23169
23282
|
hashValue.replace(CaseFullAccessViewComponent.EMPTY_SPACE, '').toLowerCase(); });
|
|
23170
23283
|
if (matTab && matTab.position) {
|
|
@@ -23175,9 +23288,10 @@
|
|
|
23175
23288
|
CaseFullAccessViewComponent.prototype.tabChanged = function (tabChangeEvent) {
|
|
23176
23289
|
var tab = tabChangeEvent.tab['_viewContainerRef'];
|
|
23177
23290
|
var id = tab.element.nativeElement.id;
|
|
23178
|
-
|
|
23291
|
+
// due to some edge case like hidden tab we can't calculate the last index of existing tabs,
|
|
23292
|
+
// so have to hard code the hearings id here
|
|
23179
23293
|
if ((tabChangeEvent.index <= 1 && this.prependedTabs.length) ||
|
|
23180
|
-
(
|
|
23294
|
+
(this.appendedTabs.length && id === 'hearings')) {
|
|
23181
23295
|
this.router.navigate([id], { relativeTo: this.route });
|
|
23182
23296
|
}
|
|
23183
23297
|
else {
|
|
@@ -23187,6 +23301,16 @@
|
|
|
23187
23301
|
});
|
|
23188
23302
|
}
|
|
23189
23303
|
};
|
|
23304
|
+
/**
|
|
23305
|
+
* Indicates that a CaseField is to be displayed without a label, as is expected for all ComponentLauncher-type
|
|
23306
|
+
* fields.
|
|
23307
|
+
* @param caseField The `CaseField` instance to check
|
|
23308
|
+
* @returns `true` if it should not have a label; `false` otherwise
|
|
23309
|
+
*/
|
|
23310
|
+
CaseFullAccessViewComponent.prototype.isFieldToHaveNoLabel = function (caseField) {
|
|
23311
|
+
return caseField.field_type.type === 'ComponentLauncher'
|
|
23312
|
+
&& caseField.display_context_parameter === '#ARGUMENT(CaseFileView)';
|
|
23313
|
+
};
|
|
23190
23314
|
CaseFullAccessViewComponent.prototype.init = function () {
|
|
23191
23315
|
var _this = this;
|
|
23192
23316
|
// Clone and sort tabs array
|
|
@@ -23245,7 +23369,7 @@
|
|
|
23245
23369
|
CaseFullAccessViewComponent.TRIGGER_TEXT_CONTINUE = 'Ignore Warning and Go';
|
|
23246
23370
|
CaseFullAccessViewComponent.UNICODE_SPACE = '%20';
|
|
23247
23371
|
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)
|
|
23372
|
+
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
23373
|
CaseFullAccessViewComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFullAccessViewComponent, selectors: [["ccd-case-full-access-view"]], viewQuery: function CaseFullAccessViewComponent_Query(rf, ctx) {
|
|
23250
23374
|
if (rf & 1) {
|
|
23251
23375
|
i0__namespace.ɵɵviewQuery(_c0$a, 1);
|
|
@@ -23254,7 +23378,7 @@
|
|
|
23254
23378
|
var _t = void 0;
|
|
23255
23379
|
i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.tabGroup = _t.first);
|
|
23256
23380
|
}
|
|
23257
|
-
}, inputs: { hasPrint: "hasPrint", hasEventSelector: "hasEventSelector", caseDetails: "caseDetails", prependedTabs: "prependedTabs", appendedTabs: "appendedTabs" },
|
|
23381
|
+
}, 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"], ["id", "case-viewer-field-label", 4, "ngIf"], [1, "text-16"], [3, "topLevelFormGroup", "caseField", "caseReference", "markdownUseHrefAsRouterLink"], ["id", "case-viewer-field-label"], [1, "case-viewer-label", "text-16"], [1, "compound-field"]], template: function CaseFullAccessViewComponent_Template(rf, ctx) {
|
|
23258
23382
|
if (rf & 1) {
|
|
23259
23383
|
i0__namespace.ɵɵtemplate(0, CaseFullAccessViewComponent_div_0_Template, 10, 0, "div", 0);
|
|
23260
23384
|
i0__namespace.ɵɵtemplate(1, CaseFullAccessViewComponent_div_1_Template, 6, 2, "div", 0);
|
|
@@ -23292,7 +23416,7 @@
|
|
|
23292
23416
|
i0__namespace.ɵɵadvance(3);
|
|
23293
23417
|
i0__namespace.ɵɵproperty("ngIf", ctx.hasTabsPresent());
|
|
23294
23418
|
}
|
|
23295
|
-
}, directives: [i1__namespace.NgIf, CallbackErrorsComponent, ActivityComponent, CaseHeaderComponent, i1__namespace.NgForOf, i1__namespace$1.RouterLinkWithHref, EventTriggerComponent,
|
|
23419
|
+
}, 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
23420
|
(function () {
|
|
23297
23421
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFullAccessViewComponent, [{
|
|
23298
23422
|
type: i0.Component,
|
|
@@ -23301,7 +23425,7 @@
|
|
|
23301
23425
|
templateUrl: './case-full-access-view.component.html',
|
|
23302
23426
|
styleUrls: ['./case-full-access-view.component.scss']
|
|
23303
23427
|
}]
|
|
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 }
|
|
23428
|
+
}], 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
23429
|
type: i0.Input
|
|
23306
23430
|
}], hasEventSelector: [{
|
|
23307
23431
|
type: i0.Input
|
|
@@ -24121,21 +24245,28 @@
|
|
|
24121
24245
|
}
|
|
24122
24246
|
EventStartGuard.prototype.canActivate = function (route) {
|
|
24123
24247
|
var _this = this;
|
|
24124
|
-
|
|
24125
|
-
|
|
24126
|
-
|
|
24127
|
-
|
|
24128
|
-
|
|
24129
|
-
|
|
24130
|
-
|
|
24131
|
-
var
|
|
24132
|
-
if (
|
|
24133
|
-
|
|
24134
|
-
|
|
24248
|
+
// Checks must be performed only for Work Allocation 2
|
|
24249
|
+
if (this.appConfig.getWorkAllocationApiUrl().toLowerCase() === 'workallocation2') {
|
|
24250
|
+
var caseId_1 = route.params['cid'];
|
|
24251
|
+
var eventId_1 = route.params['eid'];
|
|
24252
|
+
var taskId_1 = route.queryParams['tid'];
|
|
24253
|
+
// TODO: NavigationExtras should be used once Angular upgrade changes have been incorporated
|
|
24254
|
+
var isComplete = route.queryParams['isComplete'];
|
|
24255
|
+
var caseInfoStr = this.sessionStorageService.getItem('caseInfo');
|
|
24256
|
+
if (caseInfoStr) {
|
|
24257
|
+
var caseInfo = JSON.parse(caseInfoStr);
|
|
24258
|
+
if (caseInfo && caseInfo.cid === caseId_1) {
|
|
24259
|
+
if (isComplete) {
|
|
24260
|
+
return rxjs.of(true);
|
|
24261
|
+
}
|
|
24262
|
+
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
24263
|
}
|
|
24136
|
-
return this.workAllocationService.getTasksByCaseIdAndEventId(eventId, caseId, caseInfo.caseType, caseInfo.jurisdiction).pipe(operators.switchMap(function (payload) { return _this.checkForTasks(payload, caseId, eventId, taskId); }));
|
|
24137
24264
|
}
|
|
24138
24265
|
}
|
|
24266
|
+
else {
|
|
24267
|
+
// Checks not required, return true by default for Work Allocation 1
|
|
24268
|
+
return rxjs.of(true);
|
|
24269
|
+
}
|
|
24139
24270
|
return rxjs.of(false);
|
|
24140
24271
|
};
|
|
24141
24272
|
EventStartGuard.prototype.checkTaskInEventNotRequired = function (payload, caseId, taskId) {
|
|
@@ -25607,7 +25738,7 @@
|
|
|
25607
25738
|
CaseEditorModule,
|
|
25608
25739
|
ConditionalShowModule,
|
|
25609
25740
|
CaseHistoryModule,
|
|
25610
|
-
|
|
25741
|
+
i10.MatTabsModule,
|
|
25611
25742
|
i1$2.ReactiveFormsModule,
|
|
25612
25743
|
AlertModule,
|
|
25613
25744
|
LabelSubstitutorModule
|
|
@@ -25637,7 +25768,7 @@
|
|
|
25637
25768
|
CaseEditorModule,
|
|
25638
25769
|
ConditionalShowModule,
|
|
25639
25770
|
CaseHistoryModule,
|
|
25640
|
-
|
|
25771
|
+
i10.MatTabsModule,
|
|
25641
25772
|
i1$2.ReactiveFormsModule,
|
|
25642
25773
|
AlertModule,
|
|
25643
25774
|
LabelSubstitutorModule], exports: [CaseViewerComponent,
|
|
@@ -25660,7 +25791,7 @@
|
|
|
25660
25791
|
CaseEditorModule,
|
|
25661
25792
|
ConditionalShowModule,
|
|
25662
25793
|
CaseHistoryModule,
|
|
25663
|
-
|
|
25794
|
+
i10.MatTabsModule,
|
|
25664
25795
|
i1$2.ReactiveFormsModule,
|
|
25665
25796
|
AlertModule,
|
|
25666
25797
|
LabelSubstitutorModule
|
|
@@ -27899,6 +28030,8 @@
|
|
|
27899
28030
|
exports.CaseEventTriggerComponent = CaseEventTriggerComponent;
|
|
27900
28031
|
exports.CaseField = CaseField;
|
|
27901
28032
|
exports.CaseFieldService = CaseFieldService;
|
|
28033
|
+
exports.CaseFileViewFieldComponent = CaseFileViewFieldComponent;
|
|
28034
|
+
exports.CaseFileViewService = CaseFileViewService;
|
|
27902
28035
|
exports.CaseFullAccessViewComponent = CaseFullAccessViewComponent;
|
|
27903
28036
|
exports.CaseHeaderComponent = CaseHeaderComponent;
|
|
27904
28037
|
exports.CaseHeaderModule = CaseHeaderModule;
|