@hmcts/ccd-case-ui-toolkit 5.0.24-case-file-view-folder-document-icons-v3 → 5.0.24-case-file-view-error-message-display
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 +56 -20
- 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/shared/components/palette/case-file-view/case-file-view-field.component.js +50 -18
- package/esm2015/lib/shared/services/case-file-view/case-file-view.service.js +5 -6
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js +50 -20
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -1
- package/lib/shared/components/palette/case-file-view/case-file-view-field.component.d.ts +6 -3
- package/lib/shared/components/palette/case-file-view/case-file-view-field.component.d.ts.map +1 -1
- package/lib/shared/services/case-file-view/case-file-view.service.d.ts +2 -3
- package/lib/shared/services/case-file-view/case-file-view.service.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -7786,10 +7786,9 @@
|
|
|
7786
7786
|
})();
|
|
7787
7787
|
|
|
7788
7788
|
var CaseFileViewService = /** @class */ (function () {
|
|
7789
|
-
function CaseFileViewService(http, appConfig
|
|
7789
|
+
function CaseFileViewService(http, appConfig) {
|
|
7790
7790
|
this.http = http;
|
|
7791
7791
|
this.appConfig = appConfig;
|
|
7792
|
-
this.errorService = errorService;
|
|
7793
7792
|
}
|
|
7794
7793
|
/**
|
|
7795
7794
|
* Retrieves the categories and documents for a case.
|
|
@@ -7820,12 +7819,12 @@
|
|
|
7820
7819
|
};
|
|
7821
7820
|
return CaseFileViewService;
|
|
7822
7821
|
}());
|
|
7823
|
-
CaseFileViewService.ɵfac = function CaseFileViewService_Factory(t) { return new (t || CaseFileViewService)(i0__namespace.ɵɵinject(HttpService), i0__namespace.ɵɵinject(AbstractAppConfig)
|
|
7822
|
+
CaseFileViewService.ɵfac = function CaseFileViewService_Factory(t) { return new (t || CaseFileViewService)(i0__namespace.ɵɵinject(HttpService), i0__namespace.ɵɵinject(AbstractAppConfig)); };
|
|
7824
7823
|
CaseFileViewService.ɵprov = i0__namespace.ɵɵdefineInjectable({ token: CaseFileViewService, factory: CaseFileViewService.ɵfac });
|
|
7825
7824
|
(function () {
|
|
7826
7825
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewService, [{
|
|
7827
7826
|
type: i0.Injectable
|
|
7828
|
-
}], function () { return [{ type: HttpService }, { type: AbstractAppConfig }
|
|
7827
|
+
}], function () { return [{ type: HttpService }, { type: AbstractAppConfig }]; }, null);
|
|
7829
7828
|
})();
|
|
7830
7829
|
|
|
7831
7830
|
function CaseFileViewFolderComponent_cdk_nested_tree_node_6_Template(rf, ctx) {
|
|
@@ -8126,15 +8125,56 @@
|
|
|
8126
8125
|
}] });
|
|
8127
8126
|
})();
|
|
8128
8127
|
|
|
8128
|
+
function CaseFileViewFieldComponent_div_0_Template(rf, ctx) {
|
|
8129
|
+
if (rf & 1) {
|
|
8130
|
+
i0__namespace.ɵɵelementStart(0, "div", 2);
|
|
8131
|
+
i0__namespace.ɵɵelementStart(1, "h1", 3);
|
|
8132
|
+
i0__namespace.ɵɵtext(2, "Sorry, there is a problem with the service");
|
|
8133
|
+
i0__namespace.ɵɵelementEnd();
|
|
8134
|
+
i0__namespace.ɵɵelementStart(3, "p", 4);
|
|
8135
|
+
i0__namespace.ɵɵtext(4, "Try again later.");
|
|
8136
|
+
i0__namespace.ɵɵelementEnd();
|
|
8137
|
+
i0__namespace.ɵɵelementEnd();
|
|
8138
|
+
}
|
|
8139
|
+
}
|
|
8140
|
+
function CaseFileViewFieldComponent_div_1_Template(rf, ctx) {
|
|
8141
|
+
if (rf & 1) {
|
|
8142
|
+
i0__namespace.ɵɵelementStart(0, "div");
|
|
8143
|
+
i0__namespace.ɵɵelementStart(1, "h2", 5);
|
|
8144
|
+
i0__namespace.ɵɵtext(2, "Case file");
|
|
8145
|
+
i0__namespace.ɵɵelementEnd();
|
|
8146
|
+
i0__namespace.ɵɵelementStart(3, "div", 6);
|
|
8147
|
+
i0__namespace.ɵɵelementStart(4, "div", 7);
|
|
8148
|
+
i0__namespace.ɵɵelement(5, "ccd-case-file-view-folder", 8);
|
|
8149
|
+
i0__namespace.ɵɵelementEnd();
|
|
8150
|
+
i0__namespace.ɵɵelement(6, "div", 9);
|
|
8151
|
+
i0__namespace.ɵɵelementStart(7, "div", 10);
|
|
8152
|
+
i0__namespace.ɵɵtext(8, " Media viewer ");
|
|
8153
|
+
i0__namespace.ɵɵelementEnd();
|
|
8154
|
+
i0__namespace.ɵɵelementEnd();
|
|
8155
|
+
i0__namespace.ɵɵelementEnd();
|
|
8156
|
+
}
|
|
8157
|
+
if (rf & 2) {
|
|
8158
|
+
var ctx_r1 = i0__namespace.ɵɵnextContext();
|
|
8159
|
+
i0__namespace.ɵɵadvance(5);
|
|
8160
|
+
i0__namespace.ɵɵproperty("categoriesAndDocuments", ctx_r1.categoriesAndDocuments$);
|
|
8161
|
+
}
|
|
8162
|
+
}
|
|
8129
8163
|
var CaseFileViewFieldComponent = /** @class */ (function () {
|
|
8130
8164
|
function CaseFileViewFieldComponent(elementRef, route, caseFileViewService) {
|
|
8131
8165
|
this.elementRef = elementRef;
|
|
8132
8166
|
this.route = route;
|
|
8133
8167
|
this.caseFileViewService = caseFileViewService;
|
|
8168
|
+
this.getCategoriesAndDocumentsError = false;
|
|
8134
8169
|
}
|
|
8135
8170
|
CaseFileViewFieldComponent.prototype.ngOnInit = function () {
|
|
8171
|
+
var _this = this;
|
|
8136
8172
|
var cid = this.route.snapshot.paramMap.get(CaseFileViewFieldComponent.PARAM_CASE_ID);
|
|
8137
8173
|
this.categoriesAndDocuments$ = this.caseFileViewService.getCategoriesAndDocuments(cid);
|
|
8174
|
+
this.categoriesAndDocumentsSubscription = this.categoriesAndDocuments$.subscribe({
|
|
8175
|
+
next: function (_) { },
|
|
8176
|
+
error: function (_) { return _this.getCategoriesAndDocumentsError = true; }
|
|
8177
|
+
});
|
|
8138
8178
|
};
|
|
8139
8179
|
CaseFileViewFieldComponent.prototype.ngAfterViewInit = function () {
|
|
8140
8180
|
var slider = this.elementRef.nativeElement.querySelector('.slider');
|
|
@@ -8158,30 +8198,26 @@
|
|
|
8158
8198
|
documentTreeContainer.setAttribute('style', "width: " + calculatedWidth + "%");
|
|
8159
8199
|
});
|
|
8160
8200
|
};
|
|
8201
|
+
CaseFileViewFieldComponent.prototype.ngOnDestroy = function () {
|
|
8202
|
+
if (this.categoriesAndDocumentsSubscription) {
|
|
8203
|
+
this.categoriesAndDocumentsSubscription.unsubscribe();
|
|
8204
|
+
}
|
|
8205
|
+
};
|
|
8161
8206
|
return CaseFileViewFieldComponent;
|
|
8162
8207
|
}());
|
|
8163
8208
|
CaseFileViewFieldComponent.PARAM_CASE_ID = 'cid';
|
|
8164
8209
|
CaseFileViewFieldComponent.ɵfac = function CaseFileViewFieldComponent_Factory(t) { return new (t || CaseFileViewFieldComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.ElementRef), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(CaseFileViewService)); };
|
|
8165
|
-
CaseFileViewFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewFieldComponent, selectors: [["ccd-case-file-view-field"]], decls:
|
|
8210
|
+
CaseFileViewFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewFieldComponent, selectors: [["ccd-case-file-view-field"]], decls: 2, vars: 2, consts: [["class", "govuk-grid-column-two-thirds", 4, "ngIf"], [4, "ngIf"], [1, "govuk-grid-column-two-thirds"], [1, "govuk-heading-xl"], [1, "govuk-body"], [1, "govuk-heading-l"], ["id", "case-file-view", 1, "govuk-form-group"], [1, "document-tree-container"], [3, "categoriesAndDocuments"], [1, "slider"], [1, "media-viewer-container"]], template: function CaseFileViewFieldComponent_Template(rf, ctx) {
|
|
8166
8211
|
if (rf & 1) {
|
|
8167
|
-
i0__namespace.ɵɵ
|
|
8168
|
-
i0__namespace.ɵɵ
|
|
8169
|
-
i0__namespace.ɵɵelementEnd();
|
|
8170
|
-
i0__namespace.ɵɵelementStart(2, "div", 1);
|
|
8171
|
-
i0__namespace.ɵɵelementStart(3, "div", 2);
|
|
8172
|
-
i0__namespace.ɵɵelement(4, "ccd-case-file-view-folder", 3);
|
|
8173
|
-
i0__namespace.ɵɵelementEnd();
|
|
8174
|
-
i0__namespace.ɵɵelement(5, "div", 4);
|
|
8175
|
-
i0__namespace.ɵɵelementStart(6, "div", 5);
|
|
8176
|
-
i0__namespace.ɵɵtext(7, " Media viewer ");
|
|
8177
|
-
i0__namespace.ɵɵelementEnd();
|
|
8178
|
-
i0__namespace.ɵɵelementEnd();
|
|
8212
|
+
i0__namespace.ɵɵtemplate(0, CaseFileViewFieldComponent_div_0_Template, 5, 0, "div", 0);
|
|
8213
|
+
i0__namespace.ɵɵtemplate(1, CaseFileViewFieldComponent_div_1_Template, 9, 1, "div", 1);
|
|
8179
8214
|
}
|
|
8180
8215
|
if (rf & 2) {
|
|
8181
|
-
i0__namespace.ɵɵ
|
|
8182
|
-
i0__namespace.ɵɵ
|
|
8216
|
+
i0__namespace.ɵɵproperty("ngIf", ctx.getCategoriesAndDocumentsError);
|
|
8217
|
+
i0__namespace.ɵɵadvance(1);
|
|
8218
|
+
i0__namespace.ɵɵproperty("ngIf", !ctx.getCategoriesAndDocumentsError);
|
|
8183
8219
|
}
|
|
8184
|
-
}, directives: [CaseFileViewFolderComponent], styles: ["#case-file-view[_ngcontent-%COMP%]{display:flex;border:2px solid #c9c9c9}#case-file-view[_ngcontent-%COMP%] .document-tree-container[_ngcontent-%COMP%]{background-color:#faf8f8;width:30%;min-height:400px;min-width:10%}#case-file-view[_ngcontent-%COMP%] .slider[_ngcontent-%COMP%]{width:.2%;background-color:#6b6b6b}#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%]{flex:1 1 0%}"] });
|
|
8220
|
+
}, directives: [i1__namespace.NgIf, CaseFileViewFolderComponent], styles: ["#case-file-view[_ngcontent-%COMP%]{display:flex;border:2px solid #c9c9c9}#case-file-view[_ngcontent-%COMP%] .document-tree-container[_ngcontent-%COMP%]{background-color:#faf8f8;width:30%;min-height:400px;min-width:10%}#case-file-view[_ngcontent-%COMP%] .slider[_ngcontent-%COMP%]{width:.2%;background-color:#6b6b6b}#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%]{flex:1 1 0%}"] });
|
|
8185
8221
|
(function () {
|
|
8186
8222
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewFieldComponent, [{
|
|
8187
8223
|
type: i0.Component,
|