@hmcts/ccd-case-ui-toolkit 5.0.24-case-file-view-error-message-display → 5.0.24-case-file-view-document-search
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 +341 -293
- 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/case-viewer/case-full-access-view/case-full-access-view.component.js +2 -2
- package/esm2015/lib/shared/components/palette/case-file-view/case-file-view-field.component.js +18 -50
- package/esm2015/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.js +77 -194
- package/esm2015/lib/shared/components/palette/case-file-view/test-data/categories-and-documents-test-data.js +178 -0
- package/esm2015/lib/shared/components/palette/utils/is-compound.pipe.js +2 -2
- package/esm2015/lib/shared/domain/case-file-view/document-tree-node.model.js +6 -2
- package/esm2015/lib/shared/services/case-file-view/case-file-view.service.js +6 -5
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js +313 -268
- 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 +3 -6
- package/lib/shared/components/palette/case-file-view/case-file-view-field.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.d.ts +8 -1
- package/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-file-view/test-data/categories-and-documents-test-data.d.ts +3 -0
- package/lib/shared/components/palette/case-file-view/test-data/categories-and-documents-test-data.d.ts.map +1 -0
- package/lib/shared/domain/case-file-view/document-tree-node.model.d.ts +4 -0
- package/lib/shared/domain/case-file-view/document-tree-node.model.d.ts.map +1 -1
- package/lib/shared/services/case-file-view/case-file-view.service.d.ts +3 -2
- package/lib/shared/services/case-file-view/case-file-view.service.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,21 +1,18 @@
|
|
|
1
|
-
import { AfterViewInit, ElementRef,
|
|
1
|
+
import { AfterViewInit, ElementRef, OnInit } from '@angular/core';
|
|
2
2
|
import { ActivatedRoute } from '@angular/router';
|
|
3
|
-
import { Observable
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
4
|
import { CategoriesAndDocuments } from '../../../domain/case-file-view';
|
|
5
5
|
import { CaseFileViewService } from '../../../services/case-file-view/case-file-view.service';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class CaseFileViewFieldComponent implements OnInit, AfterViewInit
|
|
7
|
+
export declare class CaseFileViewFieldComponent implements OnInit, AfterViewInit {
|
|
8
8
|
private readonly elementRef;
|
|
9
9
|
private readonly route;
|
|
10
10
|
private caseFileViewService;
|
|
11
11
|
static readonly PARAM_CASE_ID = "cid";
|
|
12
12
|
categoriesAndDocuments$: Observable<CategoriesAndDocuments>;
|
|
13
|
-
categoriesAndDocumentsSubscription: Subscription;
|
|
14
|
-
getCategoriesAndDocumentsError: boolean;
|
|
15
13
|
constructor(elementRef: ElementRef, route: ActivatedRoute, caseFileViewService: CaseFileViewService);
|
|
16
14
|
ngOnInit(): void;
|
|
17
15
|
ngAfterViewInit(): void;
|
|
18
|
-
ngOnDestroy(): void;
|
|
19
16
|
static ɵfac: i0.ɵɵFactoryDef<CaseFileViewFieldComponent, never>;
|
|
20
17
|
static ɵcmp: i0.ɵɵComponentDefWithMeta<CaseFileViewFieldComponent, "ccd-case-file-view-field", never, {}, {}, never, never>;
|
|
21
18
|
}
|
package/lib/shared/components/palette/case-file-view/case-file-view-field.component.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"case-file-view-field.component.d.ts","sourceRoot":"","sources":["../../../../../../../projects/ccd-case-ui-toolkit/src/lib/shared/components/palette/case-file-view/case-file-view-field.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAa,UAAU,EAAE,
|
|
1
|
+
{"version":3,"file":"case-file-view-field.component.d.ts","sourceRoot":"","sources":["../../../../../../../projects/ccd-case-ui-toolkit/src/lib/shared/components/palette/case-file-view/case-file-view-field.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAa,UAAU,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC7E,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAa,UAAU,EAAE,MAAM,MAAM,CAAC;AAE7C,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,EAAE,mBAAmB,EAAE,MAAM,yDAAyD,CAAC;;AAE9F,qBAKa,0BAA2B,YAAW,MAAM,EAAE,aAAa;IAK1D,OAAO,CAAC,QAAQ,CAAC,UAAU;IAC3B,OAAO,CAAC,QAAQ,CAAC,KAAK;IACtB,OAAO,CAAC,mBAAmB;IALvC,gBAAuB,aAAa,SAAS;IACtC,uBAAuB,EAAE,UAAU,CAAC,sBAAsB,CAAC,CAAC;gBAEtC,UAAU,EAAE,UAAU,EACtB,KAAK,EAAE,cAAc,EAC9B,mBAAmB,EAAE,mBAAmB;IAGrD,QAAQ,IAAI,IAAI;IAKhB,eAAe,IAAI,IAAI;iCAfnB,0BAA0B;2CAA1B,0BAA0B;CA6CtC"}
|
|
@@ -1,15 +1,22 @@
|
|
|
1
1
|
import { NestedTreeControl } from '@angular/cdk/tree';
|
|
2
2
|
import { OnDestroy, OnInit } from '@angular/core';
|
|
3
|
+
import { FormControl, FormGroup } from '@angular/forms';
|
|
3
4
|
import { Observable, Subscription } from 'rxjs';
|
|
4
5
|
import { CaseFileViewCategory, CaseFileViewDocument, CategoriesAndDocuments, DocumentTreeNode } from '../../../../../domain/case-file-view';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
export declare class CaseFileViewFolderComponent implements OnInit, OnDestroy {
|
|
7
8
|
private static readonly UNCATEGORISED_DOCUMENTS_TITLE;
|
|
9
|
+
private static readonly DOCUMENT_SEARCH_FORM_CONTROL_NAME;
|
|
10
|
+
private static readonly MINIMUM_SEARCH_CHARACTERS;
|
|
8
11
|
categoriesAndDocuments: Observable<CategoriesAndDocuments>;
|
|
9
12
|
nestedTreeControl: NestedTreeControl<DocumentTreeNode>;
|
|
10
13
|
nestedDataSource: DocumentTreeNode[];
|
|
11
14
|
categories: CaseFileViewCategory[];
|
|
12
15
|
categoriesAndDocumentsSubscription: Subscription;
|
|
16
|
+
documentFilterFormGroup: FormGroup;
|
|
17
|
+
documentSearchFormControl: FormControl;
|
|
18
|
+
documentTreeData: DocumentTreeNode[];
|
|
19
|
+
documentFilterSubscription: Subscription;
|
|
13
20
|
private getChildren;
|
|
14
21
|
nestedChildren: (_: number, nodeData: DocumentTreeNode) => DocumentTreeNode[];
|
|
15
22
|
constructor();
|
|
@@ -17,8 +24,8 @@ export declare class CaseFileViewFolderComponent implements OnInit, OnDestroy {
|
|
|
17
24
|
generateTreeData(categories: CaseFileViewCategory[]): DocumentTreeNode[];
|
|
18
25
|
getDocuments(documents: CaseFileViewDocument[]): DocumentTreeNode[];
|
|
19
26
|
getUncategorisedDocuments(uncategorisedDocuments: CaseFileViewDocument[]): DocumentTreeNode;
|
|
27
|
+
filter(searchTerm: string, documentTreeData: DocumentTreeNode[]): Observable<DocumentTreeNode[]>;
|
|
20
28
|
ngOnDestroy(): void;
|
|
21
|
-
loadCategories(): CaseFileViewCategory[];
|
|
22
29
|
static ɵfac: i0.ɵɵFactoryDef<CaseFileViewFolderComponent, never>;
|
|
23
30
|
static ɵcmp: i0.ɵɵComponentDefWithMeta<CaseFileViewFolderComponent, "ccd-case-file-view-folder", never, { "categoriesAndDocuments": "categoriesAndDocuments"; }, {}, never, never>;
|
|
24
31
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"case-file-view-folder.component.d.ts","sourceRoot":"","sources":["../../../../../../../../../projects/ccd-case-ui-toolkit/src/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAoB,SAAS,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACpE,OAAO,EAAE,UAAU,EAAM,YAAY,EAAE,MAAM,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"case-file-view-folder.component.d.ts","sourceRoot":"","sources":["../../../../../../../../../projects/ccd-case-ui-toolkit/src/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAoB,SAAS,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACpE,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAE,UAAU,EAAM,YAAY,EAAE,MAAM,MAAM,CAAC;AAEpD,OAAO,EACL,oBAAoB,EACpB,oBAAoB,EACpB,sBAAsB,EACtB,gBAAgB,EAEjB,MAAM,sCAAsC,CAAC;;AAG9C,qBAKa,2BAA4B,YAAW,MAAM,EAAE,SAAS;IAEnE,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,6BAA6B,CAA6B;IAClF,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,iCAAiC,CAA+B;IACxF,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,yBAAyB,CAAK;IAEtC,sBAAsB,EAAE,UAAU,CAAC,sBAAsB,CAAC,CAAC;IAEpE,iBAAiB,EAAE,iBAAiB,CAAC,gBAAgB,CAAC,CAAC;IACvD,gBAAgB,EAAE,gBAAgB,EAAE,CAAC;IACrC,UAAU,EAAE,oBAAoB,EAAE,CAAM;IACxC,kCAAkC,EAAE,YAAY,CAAC;IACjD,uBAAuB,EAAE,SAAS,CAAC;IACnC,yBAAyB,EAAE,WAAW,CAAC;IACvC,gBAAgB,EAAE,gBAAgB,EAAE,CAAC;IACrC,0BAA0B,EAAE,YAAY,CAAC;IAEhD,OAAO,CAAC,WAAW,CAAiD;IAC7D,cAAc,MAAO,MAAM,YAAY,gBAAgB,wBAAuB;;IAM9E,QAAQ,IAAI,IAAI;IA4BhB,gBAAgB,CAAC,UAAU,EAAE,oBAAoB,EAAE,GAAG,gBAAgB,EAAE;IAaxE,YAAY,CAAC,SAAS,EAAE,oBAAoB,EAAE,GAAG,gBAAgB,EAAE;IAQnE,yBAAyB,CAAC,sBAAsB,EAAE,oBAAoB,EAAE,GAAG,gBAAgB;IAQ3F,MAAM,CAAC,UAAU,EAAE,MAAM,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,GAAG,UAAU,CAAC,gBAAgB,EAAE,CAAC;IAqBhG,WAAW,IAAI,IAAI;iCAtGf,2BAA2B;2CAA3B,2BAA2B;CA8GvC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"categories-and-documents-test-data.d.ts","sourceRoot":"","sources":["../../../../../../../../projects/ccd-case-ui-toolkit/src/lib/shared/components/palette/case-file-view/test-data/categories-and-documents-test-data.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,kEAAkE,CAAC;AAE1G,eAAO,MAAM,sBAAsB,EAAE,sBAgLpC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"document-tree-node.model.d.ts","sourceRoot":"","sources":["../../../../../../projects/ccd-case-ui-toolkit/src/lib/shared/domain/case-file-view/document-tree-node.model.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gBAAgB;IAC/B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,gBAAgB,EAAE,CAAC;CAC/B"}
|
|
1
|
+
{"version":3,"file":"document-tree-node.model.d.ts","sourceRoot":"","sources":["../../../../../../projects/ccd-case-ui-toolkit/src/lib/shared/domain/case-file-view/document-tree-node.model.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gBAAgB;IAC/B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,gBAAgB,EAAE,CAAC;CAC/B;AAED,oBAAY,oBAAoB;IAC9B,MAAM,WAAW;IACjB,QAAQ,aAAa;CACtB"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
2
|
import { AbstractAppConfig } from '../../../app.config';
|
|
3
3
|
import { CategoriesAndDocuments } from '../../domain/case-file-view';
|
|
4
|
-
import { HttpService } from '../http';
|
|
4
|
+
import { HttpErrorService, HttpService } from '../http';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class CaseFileViewService {
|
|
7
7
|
private readonly http;
|
|
8
8
|
private readonly appConfig;
|
|
9
|
-
|
|
9
|
+
private readonly errorService;
|
|
10
|
+
constructor(http: HttpService, appConfig: AbstractAppConfig, errorService: HttpErrorService);
|
|
10
11
|
/**
|
|
11
12
|
* Retrieves the categories and documents for a case.
|
|
12
13
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"case-file-view.service.d.ts","sourceRoot":"","sources":["../../../../../../projects/ccd-case-ui-toolkit/src/lib/shared/services/case-file-view/case-file-view.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAM,MAAM,MAAM,CAAC;AACtC,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;;
|
|
1
|
+
{"version":3,"file":"case-file-view.service.d.ts","sourceRoot":"","sources":["../../../../../../projects/ccd-case-ui-toolkit/src/lib/shared/services/case-file-view/case-file-view.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAM,MAAM,MAAM,CAAC;AACtC,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;;AAExD,qBACa,mBAAmB;IAE5B,OAAO,CAAC,QAAQ,CAAC,IAAI;IACrB,OAAO,CAAC,QAAQ,CAAC,SAAS;IAC1B,OAAO,CAAC,QAAQ,CAAC,YAAY;gBAFZ,IAAI,EAAE,WAAW,EACjB,SAAS,EAAE,iBAAiB,EAC5B,YAAY,EAAE,gBAAgB;IAGjD;;;;;OAKG;IACI,yBAAyB,CAAC,OAAO,EAAE,MAAM,GAAG,UAAU,CAAC,sBAAsB,CAAC;IAY9E,sBAAsB,CAAC,OAAO,EAAE,MAAM,EACf,WAAW,EAAE,MAAM,EACnB,aAAa,EAAE,MAAM,EACrB,UAAU,EAAE,MAAM,GAAG,UAAU,CAAC,sBAAsB,CAAC;iCA5B1E,mBAAmB;qCAAnB,mBAAmB;CA4C/B"}
|