@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
|
@@ -17,11 +17,11 @@ import * as moment from 'moment';
|
|
|
17
17
|
import { __decorate, __metadata } from 'tslib';
|
|
18
18
|
import * as i1$4 from 'ngx-md';
|
|
19
19
|
import { NgxMdModule } from 'ngx-md';
|
|
20
|
-
import * as
|
|
20
|
+
import * as i2 from '@angular/cdk/tree';
|
|
21
21
|
import { NestedTreeControl, CdkTreeModule } from '@angular/cdk/tree';
|
|
22
|
-
import * as i1$
|
|
22
|
+
import * as i1$5 from '@angular/material/dialog';
|
|
23
23
|
import { MatDialogConfig } from '@angular/material/dialog';
|
|
24
|
-
import * as i2 from '@nicky-lenaers/ngx-scroll-to';
|
|
24
|
+
import * as i2$1 from '@nicky-lenaers/ngx-scroll-to';
|
|
25
25
|
import { ScrollToModule } from '@nicky-lenaers/ngx-scroll-to';
|
|
26
26
|
import * as i4 from '@angular-material-components/datetime-picker';
|
|
27
27
|
import { NGX_MAT_DATE_FORMATS, NgxMatDateAdapter, NgxMatDatetimePickerModule, NgxMatTimepickerModule, NgxMatNativeDateModule } from '@angular-material-components/datetime-picker';
|
|
@@ -42,7 +42,7 @@ import { StateMachine } from '@edium/fsm';
|
|
|
42
42
|
import * as i6$2 from '@angular/cdk/portal';
|
|
43
43
|
import { ComponentPortal, PortalModule } from '@angular/cdk/portal';
|
|
44
44
|
import { MatInputModule } from '@angular/material/input';
|
|
45
|
-
import * as i1$
|
|
45
|
+
import * as i1$6 from 'ngx-pagination';
|
|
46
46
|
import { NgxPaginationModule, PaginatePipe } from 'ngx-pagination';
|
|
47
47
|
import * as i10 from '@angular/material/tabs';
|
|
48
48
|
import { MatTabsModule } from '@angular/material/tabs';
|
|
@@ -6207,7 +6207,7 @@ class IsCompoundPipe {
|
|
|
6207
6207
|
}
|
|
6208
6208
|
}
|
|
6209
6209
|
IsCompoundPipe.COMPOUND_TYPES = [
|
|
6210
|
-
'Complex', 'Label', 'AddressGlobal', 'AddressUK', 'AddressGlobalUK', 'CasePaymentHistoryViewer', 'CaseHistoryViewer', 'Organisation', 'WaysToPay'
|
|
6210
|
+
'Complex', 'Label', 'AddressGlobal', 'AddressUK', 'AddressGlobalUK', 'CasePaymentHistoryViewer', 'CaseHistoryViewer', 'Organisation', 'WaysToPay', 'ComponentLauncher'
|
|
6211
6211
|
];
|
|
6212
6212
|
IsCompoundPipe.EXCLUDE = [
|
|
6213
6213
|
'CaseLink', 'JudicialUser'
|
|
@@ -6659,9 +6659,10 @@ WriteAddressFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteAddressFi
|
|
|
6659
6659
|
}] }); })();
|
|
6660
6660
|
|
|
6661
6661
|
class CaseFileViewService {
|
|
6662
|
-
constructor(http, appConfig) {
|
|
6662
|
+
constructor(http, appConfig, errorService) {
|
|
6663
6663
|
this.http = http;
|
|
6664
6664
|
this.appConfig = appConfig;
|
|
6665
|
+
this.errorService = errorService;
|
|
6665
6666
|
}
|
|
6666
6667
|
/**
|
|
6667
6668
|
* Retrieves the categories and documents for a case.
|
|
@@ -6691,17 +6692,214 @@ class CaseFileViewService {
|
|
|
6691
6692
|
return of(null);
|
|
6692
6693
|
}
|
|
6693
6694
|
}
|
|
6694
|
-
CaseFileViewService.ɵfac = function CaseFileViewService_Factory(t) { return new (t || CaseFileViewService)(i0.ɵɵinject(HttpService), i0.ɵɵinject(AbstractAppConfig)); };
|
|
6695
|
+
CaseFileViewService.ɵfac = function CaseFileViewService_Factory(t) { return new (t || CaseFileViewService)(i0.ɵɵinject(HttpService), i0.ɵɵinject(AbstractAppConfig), i0.ɵɵinject(HttpErrorService)); };
|
|
6695
6696
|
CaseFileViewService.ɵprov = i0.ɵɵdefineInjectable({ token: CaseFileViewService, factory: CaseFileViewService.ɵfac });
|
|
6696
6697
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseFileViewService, [{
|
|
6697
6698
|
type: Injectable
|
|
6698
|
-
}], function () { return [{ type: HttpService }, { type: AbstractAppConfig }]; }, null); })();
|
|
6699
|
+
}], function () { return [{ type: HttpService }, { type: AbstractAppConfig }, { type: HttpErrorService }]; }, null); })();
|
|
6699
6700
|
|
|
6700
|
-
|
|
6701
|
-
|
|
6702
|
-
|
|
6703
|
-
|
|
6704
|
-
|
|
6701
|
+
class CaseFileViewCategory {
|
|
6702
|
+
}
|
|
6703
|
+
|
|
6704
|
+
class CaseFileViewDocument {
|
|
6705
|
+
}
|
|
6706
|
+
|
|
6707
|
+
/**
|
|
6708
|
+
* DTO to provide typing of the response from the CCD Data Store API for Categories and Documents data.
|
|
6709
|
+
* @see {@link https://tools.hmcts.net/confluence/x/0KSDX#CaseFileViewDocumentDataendpointLLD-SuccessResponsePayload} for full details
|
|
6710
|
+
*/
|
|
6711
|
+
class CategoriesAndDocuments {
|
|
6712
|
+
}
|
|
6713
|
+
|
|
6714
|
+
var DocumentTreeNodeType;
|
|
6715
|
+
(function (DocumentTreeNodeType) {
|
|
6716
|
+
DocumentTreeNodeType["FOLDER"] = "folder";
|
|
6717
|
+
DocumentTreeNodeType["DOCUMENT"] = "document";
|
|
6718
|
+
})(DocumentTreeNodeType || (DocumentTreeNodeType = {}));
|
|
6719
|
+
|
|
6720
|
+
const categoriesAndDocuments = {
|
|
6721
|
+
case_version: 1,
|
|
6722
|
+
categories: [
|
|
6723
|
+
{
|
|
6724
|
+
category_id: 'Beers',
|
|
6725
|
+
category_name: 'Beers',
|
|
6726
|
+
category_order: 1,
|
|
6727
|
+
documents: [
|
|
6728
|
+
{
|
|
6729
|
+
document_url: '/test',
|
|
6730
|
+
document_filename: 'Beers encyclopedia',
|
|
6731
|
+
document_binary_url: '/test/binary',
|
|
6732
|
+
attribute_path: '',
|
|
6733
|
+
upload_timestamp: ''
|
|
6734
|
+
}
|
|
6735
|
+
],
|
|
6736
|
+
sub_categories: [
|
|
6737
|
+
{
|
|
6738
|
+
category_id: 'BeersBitters',
|
|
6739
|
+
category_name: 'Bitters',
|
|
6740
|
+
category_order: 1,
|
|
6741
|
+
documents: [],
|
|
6742
|
+
sub_categories: []
|
|
6743
|
+
},
|
|
6744
|
+
{
|
|
6745
|
+
category_id: 'BeersAmerican',
|
|
6746
|
+
category_name: 'American',
|
|
6747
|
+
category_order: 2,
|
|
6748
|
+
documents: [],
|
|
6749
|
+
sub_categories: []
|
|
6750
|
+
},
|
|
6751
|
+
{
|
|
6752
|
+
category_id: 'BeersAsian',
|
|
6753
|
+
category_name: 'Asian',
|
|
6754
|
+
category_order: 3,
|
|
6755
|
+
documents: [],
|
|
6756
|
+
sub_categories: []
|
|
6757
|
+
}
|
|
6758
|
+
]
|
|
6759
|
+
},
|
|
6760
|
+
{
|
|
6761
|
+
category_id: 'Wines',
|
|
6762
|
+
category_name: 'Wines',
|
|
6763
|
+
category_order: 2,
|
|
6764
|
+
documents: [],
|
|
6765
|
+
sub_categories: [
|
|
6766
|
+
{
|
|
6767
|
+
category_id: 'WinesFrench',
|
|
6768
|
+
category_name: 'French',
|
|
6769
|
+
category_order: 1,
|
|
6770
|
+
documents: [],
|
|
6771
|
+
sub_categories: []
|
|
6772
|
+
},
|
|
6773
|
+
{
|
|
6774
|
+
category_id: 'WinesItalian',
|
|
6775
|
+
category_name: 'Italian',
|
|
6776
|
+
category_order: 2,
|
|
6777
|
+
documents: [],
|
|
6778
|
+
sub_categories: []
|
|
6779
|
+
}
|
|
6780
|
+
]
|
|
6781
|
+
},
|
|
6782
|
+
{
|
|
6783
|
+
category_id: 'Spirits',
|
|
6784
|
+
category_name: 'Spirits',
|
|
6785
|
+
category_order: 3,
|
|
6786
|
+
documents: [],
|
|
6787
|
+
sub_categories: [
|
|
6788
|
+
{
|
|
6789
|
+
category_id: 'SpiritsWhisky',
|
|
6790
|
+
category_name: 'Scotch whisky',
|
|
6791
|
+
category_order: 1,
|
|
6792
|
+
documents: [],
|
|
6793
|
+
sub_categories: [
|
|
6794
|
+
{
|
|
6795
|
+
category_id: 'WhiskyHighland',
|
|
6796
|
+
category_name: 'Highland',
|
|
6797
|
+
category_order: 1,
|
|
6798
|
+
documents: [],
|
|
6799
|
+
sub_categories: [
|
|
6800
|
+
{
|
|
6801
|
+
category_id: 'WhiskyHighland1',
|
|
6802
|
+
category_name: 'Highland 1',
|
|
6803
|
+
category_order: 1,
|
|
6804
|
+
documents: [],
|
|
6805
|
+
sub_categories: []
|
|
6806
|
+
}
|
|
6807
|
+
]
|
|
6808
|
+
},
|
|
6809
|
+
{
|
|
6810
|
+
category_id: 'WhiskyLowland',
|
|
6811
|
+
category_name: 'Lowland',
|
|
6812
|
+
category_order: 2,
|
|
6813
|
+
documents: [],
|
|
6814
|
+
sub_categories: [
|
|
6815
|
+
{
|
|
6816
|
+
category_id: 'WhiskyLowland1',
|
|
6817
|
+
category_name: 'Lowland 1',
|
|
6818
|
+
category_order: 1,
|
|
6819
|
+
documents: [
|
|
6820
|
+
{
|
|
6821
|
+
document_url: '/test',
|
|
6822
|
+
document_filename: 'Details about Whisky Lowland 1',
|
|
6823
|
+
document_binary_url: '/test/binary',
|
|
6824
|
+
attribute_path: '',
|
|
6825
|
+
upload_timestamp: ''
|
|
6826
|
+
}
|
|
6827
|
+
],
|
|
6828
|
+
sub_categories: []
|
|
6829
|
+
},
|
|
6830
|
+
{
|
|
6831
|
+
category_id: 'WhiskyLowland2',
|
|
6832
|
+
category_name: 'Lowland 2',
|
|
6833
|
+
category_order: 2,
|
|
6834
|
+
documents: [],
|
|
6835
|
+
sub_categories: []
|
|
6836
|
+
}
|
|
6837
|
+
]
|
|
6838
|
+
},
|
|
6839
|
+
{
|
|
6840
|
+
category_id: 'WhiskyIslay',
|
|
6841
|
+
category_name: 'Islay',
|
|
6842
|
+
category_order: 3,
|
|
6843
|
+
documents: [
|
|
6844
|
+
{
|
|
6845
|
+
document_url: '/test',
|
|
6846
|
+
document_filename: 'Details about Whisky Islay',
|
|
6847
|
+
document_binary_url: '/test/binary',
|
|
6848
|
+
attribute_path: '',
|
|
6849
|
+
upload_timestamp: ''
|
|
6850
|
+
},
|
|
6851
|
+
{
|
|
6852
|
+
document_url: '/test',
|
|
6853
|
+
document_filename: 'More information about Whisky Islay',
|
|
6854
|
+
document_binary_url: '/test/binary',
|
|
6855
|
+
attribute_path: '',
|
|
6856
|
+
upload_timestamp: ''
|
|
6857
|
+
}
|
|
6858
|
+
],
|
|
6859
|
+
sub_categories: []
|
|
6860
|
+
},
|
|
6861
|
+
{
|
|
6862
|
+
category_id: 'WhiskySpeyside',
|
|
6863
|
+
category_name: 'Speyside',
|
|
6864
|
+
category_order: 4,
|
|
6865
|
+
documents: [],
|
|
6866
|
+
sub_categories: []
|
|
6867
|
+
},
|
|
6868
|
+
{
|
|
6869
|
+
category_id: 'WhiskyCampbeltown',
|
|
6870
|
+
category_name: 'Campbeltown',
|
|
6871
|
+
category_order: 5,
|
|
6872
|
+
documents: [],
|
|
6873
|
+
sub_categories: []
|
|
6874
|
+
}
|
|
6875
|
+
]
|
|
6876
|
+
}
|
|
6877
|
+
]
|
|
6878
|
+
}
|
|
6879
|
+
],
|
|
6880
|
+
uncategorised_documents: [
|
|
6881
|
+
{
|
|
6882
|
+
document_url: '/uncategorised-document-1',
|
|
6883
|
+
document_filename: 'Uncategorised document 1',
|
|
6884
|
+
document_binary_url: '/test/binary',
|
|
6885
|
+
attribute_path: '',
|
|
6886
|
+
upload_timestamp: ''
|
|
6887
|
+
},
|
|
6888
|
+
{
|
|
6889
|
+
document_url: '/uncategorised-document-2',
|
|
6890
|
+
document_filename: 'Uncategorised document 2',
|
|
6891
|
+
document_binary_url: '/test/binary',
|
|
6892
|
+
attribute_path: '',
|
|
6893
|
+
upload_timestamp: ''
|
|
6894
|
+
}
|
|
6895
|
+
]
|
|
6896
|
+
};
|
|
6897
|
+
|
|
6898
|
+
function CaseFileViewFolderComponent_cdk_nested_tree_node_8_Template(rf, ctx) { if (rf & 1) {
|
|
6899
|
+
i0.ɵɵelementStart(0, "cdk-nested-tree-node", 9);
|
|
6900
|
+
i0.ɵɵelementStart(1, "div", 10);
|
|
6901
|
+
i0.ɵɵelement(2, "button", 11);
|
|
6902
|
+
i0.ɵɵelementStart(3, "span", 12);
|
|
6705
6903
|
i0.ɵɵtext(4);
|
|
6706
6904
|
i0.ɵɵelementEnd();
|
|
6707
6905
|
i0.ɵɵelementEnd();
|
|
@@ -6711,20 +6909,20 @@ function CaseFileViewFolderComponent_cdk_nested_tree_node_6_Template(rf, ctx) {
|
|
|
6711
6909
|
i0.ɵɵadvance(4);
|
|
6712
6910
|
i0.ɵɵtextInterpolate(node_r2.name);
|
|
6713
6911
|
} }
|
|
6714
|
-
function
|
|
6715
|
-
i0.ɵɵelementStart(0, "cdk-nested-tree-node",
|
|
6716
|
-
i0.ɵɵelementStart(1, "div",
|
|
6717
|
-
i0.ɵɵelementStart(2, "button",
|
|
6718
|
-
i0.ɵɵelementStart(3, "span",
|
|
6912
|
+
function CaseFileViewFolderComponent_cdk_nested_tree_node_9_Template(rf, ctx) { if (rf & 1) {
|
|
6913
|
+
i0.ɵɵelementStart(0, "cdk-nested-tree-node", 9);
|
|
6914
|
+
i0.ɵɵelementStart(1, "div", 10);
|
|
6915
|
+
i0.ɵɵelementStart(2, "button", 13);
|
|
6916
|
+
i0.ɵɵelementStart(3, "span", 14);
|
|
6719
6917
|
i0.ɵɵtext(4);
|
|
6720
6918
|
i0.ɵɵelementEnd();
|
|
6721
6919
|
i0.ɵɵelementEnd();
|
|
6722
|
-
i0.ɵɵelementStart(5, "span",
|
|
6920
|
+
i0.ɵɵelementStart(5, "span", 15);
|
|
6723
6921
|
i0.ɵɵtext(6);
|
|
6724
6922
|
i0.ɵɵelementEnd();
|
|
6725
6923
|
i0.ɵɵelementEnd();
|
|
6726
6924
|
i0.ɵɵelementStart(7, "div");
|
|
6727
|
-
i0.ɵɵelementContainer(8,
|
|
6925
|
+
i0.ɵɵelementContainer(8, 16);
|
|
6728
6926
|
i0.ɵɵelementEnd();
|
|
6729
6927
|
i0.ɵɵelementEnd();
|
|
6730
6928
|
} if (rf & 2) {
|
|
@@ -6747,18 +6945,26 @@ class CaseFileViewFolderComponent {
|
|
|
6747
6945
|
this.nestedTreeControl = new NestedTreeControl(this.getChildren);
|
|
6748
6946
|
}
|
|
6749
6947
|
ngOnInit() {
|
|
6750
|
-
this.
|
|
6948
|
+
this.documentFilterFormGroup = new FormGroup({});
|
|
6949
|
+
this.documentSearchFormControl = new FormControl('');
|
|
6950
|
+
this.documentFilterFormGroup.addControl(CaseFileViewFolderComponent.DOCUMENT_SEARCH_FORM_CONTROL_NAME, this.documentSearchFormControl);
|
|
6951
|
+
// Listen to search input and initiate filter documents if at least three characters entered
|
|
6952
|
+
this.documentFilterSubscription = this.documentSearchFormControl.valueChanges.pipe(switchMap((searchTerm) => this.filter(searchTerm.toLowerCase(), this.documentTreeData))).subscribe(documentTreeData => {
|
|
6953
|
+
this.nestedDataSource = documentTreeData;
|
|
6954
|
+
});
|
|
6955
|
+
// Subscribe to the input categories and documents, and generate tree data and initialise cdk tree
|
|
6956
|
+
this.categoriesAndDocumentsSubscription = this.categoriesAndDocuments.subscribe(categoriesAndDocumentsResult => {
|
|
6751
6957
|
// Using the mock data for now as we have to display the documents as well for demo purpose
|
|
6752
|
-
const categories =
|
|
6958
|
+
const categories = categoriesAndDocuments.categories; // categoriesAndDocuments.categories;
|
|
6753
6959
|
// Generate document tree data from categories
|
|
6754
|
-
|
|
6960
|
+
this.documentTreeData = this.generateTreeData(categories);
|
|
6755
6961
|
// Append uncategorised documents
|
|
6756
|
-
if (
|
|
6757
|
-
const uncategorisedDocuments = this.getUncategorisedDocuments(
|
|
6758
|
-
|
|
6962
|
+
if (categoriesAndDocumentsResult.uncategorised_documents && categoriesAndDocumentsResult.uncategorised_documents.length > 0) {
|
|
6963
|
+
const uncategorisedDocuments = this.getUncategorisedDocuments(categoriesAndDocumentsResult.uncategorised_documents);
|
|
6964
|
+
this.documentTreeData.push(uncategorisedDocuments);
|
|
6759
6965
|
}
|
|
6760
6966
|
// Initialise cdk tree with generated data
|
|
6761
|
-
this.nestedDataSource =
|
|
6967
|
+
this.nestedDataSource = this.documentTreeData;
|
|
6762
6968
|
});
|
|
6763
6969
|
}
|
|
6764
6970
|
generateTreeData(categories) {
|
|
@@ -6767,6 +6973,7 @@ class CaseFileViewFolderComponent {
|
|
|
6767
6973
|
...[
|
|
6768
6974
|
{
|
|
6769
6975
|
name: node.category_name,
|
|
6976
|
+
type: DocumentTreeNodeType.FOLDER,
|
|
6770
6977
|
children: [...this.generateTreeData(node.sub_categories), ...this.getDocuments(node.documents)]
|
|
6771
6978
|
},
|
|
6772
6979
|
],
|
|
@@ -6775,204 +6982,73 @@ class CaseFileViewFolderComponent {
|
|
|
6775
6982
|
getDocuments(documents) {
|
|
6776
6983
|
const documentsToReturn = [];
|
|
6777
6984
|
documents.forEach(document => {
|
|
6778
|
-
documentsToReturn.push({ name: document.document_filename });
|
|
6985
|
+
documentsToReturn.push({ name: document.document_filename, type: DocumentTreeNodeType.DOCUMENT });
|
|
6779
6986
|
});
|
|
6780
6987
|
return documentsToReturn;
|
|
6781
6988
|
}
|
|
6782
6989
|
getUncategorisedDocuments(uncategorisedDocuments) {
|
|
6783
6990
|
const documents = [];
|
|
6784
6991
|
uncategorisedDocuments.forEach(document => {
|
|
6785
|
-
documents.push({ name: document.document_filename });
|
|
6992
|
+
documents.push({ name: document.document_filename, type: DocumentTreeNodeType.DOCUMENT });
|
|
6786
6993
|
});
|
|
6787
|
-
return { name: CaseFileViewFolderComponent.UNCATEGORISED_DOCUMENTS_TITLE, children: documents };
|
|
6994
|
+
return { name: CaseFileViewFolderComponent.UNCATEGORISED_DOCUMENTS_TITLE, type: DocumentTreeNodeType.FOLDER, children: documents };
|
|
6995
|
+
}
|
|
6996
|
+
filter(searchTerm, documentTreeData) {
|
|
6997
|
+
// Make a copy of the data so we do not mutate the original
|
|
6998
|
+
function copy(node) {
|
|
6999
|
+
return Object.assign({}, node);
|
|
7000
|
+
}
|
|
7001
|
+
let filteredData = documentTreeData;
|
|
7002
|
+
if (searchTerm && searchTerm.length > 2 && this.documentFilterFormGroup.controls[CaseFileViewFolderComponent.DOCUMENT_SEARCH_FORM_CONTROL_NAME].value.length > 2) {
|
|
7003
|
+
filteredData = documentTreeData.map(copy).filter(function filterTreeData(node) {
|
|
7004
|
+
if (node.name && node.name.toLowerCase().includes(searchTerm) && node.type === DocumentTreeNodeType.DOCUMENT) {
|
|
7005
|
+
return true;
|
|
7006
|
+
}
|
|
7007
|
+
// Call recursively if node has children
|
|
7008
|
+
if (node.children) {
|
|
7009
|
+
return (node.children = node.children.map(copy).filter(filterTreeData)).length;
|
|
7010
|
+
}
|
|
7011
|
+
});
|
|
7012
|
+
}
|
|
7013
|
+
return of(filteredData);
|
|
6788
7014
|
}
|
|
6789
7015
|
ngOnDestroy() {
|
|
6790
7016
|
if (this.categoriesAndDocumentsSubscription) {
|
|
6791
7017
|
this.categoriesAndDocumentsSubscription.unsubscribe();
|
|
6792
7018
|
}
|
|
6793
|
-
|
|
6794
|
-
|
|
6795
|
-
|
|
6796
|
-
{
|
|
6797
|
-
category_id: 'Beers',
|
|
6798
|
-
category_name: 'Beers',
|
|
6799
|
-
category_order: 1,
|
|
6800
|
-
documents: [
|
|
6801
|
-
{
|
|
6802
|
-
document_url: '/test',
|
|
6803
|
-
document_filename: 'Beers encyclopedia',
|
|
6804
|
-
document_binary_url: '/test/binary',
|
|
6805
|
-
attribute_path: '',
|
|
6806
|
-
upload_timestamp: ''
|
|
6807
|
-
}
|
|
6808
|
-
],
|
|
6809
|
-
sub_categories: [
|
|
6810
|
-
{
|
|
6811
|
-
category_id: 'BeersBitters',
|
|
6812
|
-
category_name: 'Bitters',
|
|
6813
|
-
category_order: 1,
|
|
6814
|
-
documents: [],
|
|
6815
|
-
sub_categories: []
|
|
6816
|
-
},
|
|
6817
|
-
{
|
|
6818
|
-
category_id: 'BeersAmerican',
|
|
6819
|
-
category_name: 'American',
|
|
6820
|
-
category_order: 2,
|
|
6821
|
-
documents: [],
|
|
6822
|
-
sub_categories: []
|
|
6823
|
-
},
|
|
6824
|
-
{
|
|
6825
|
-
category_id: 'BeersAsian',
|
|
6826
|
-
category_name: 'Asian',
|
|
6827
|
-
category_order: 3,
|
|
6828
|
-
documents: [],
|
|
6829
|
-
sub_categories: []
|
|
6830
|
-
}
|
|
6831
|
-
]
|
|
6832
|
-
},
|
|
6833
|
-
{
|
|
6834
|
-
category_id: 'Wines',
|
|
6835
|
-
category_name: 'Wines',
|
|
6836
|
-
category_order: 2,
|
|
6837
|
-
documents: [],
|
|
6838
|
-
sub_categories: [
|
|
6839
|
-
{
|
|
6840
|
-
category_id: 'WinesFrench',
|
|
6841
|
-
category_name: 'French',
|
|
6842
|
-
category_order: 1,
|
|
6843
|
-
documents: [],
|
|
6844
|
-
sub_categories: []
|
|
6845
|
-
},
|
|
6846
|
-
{
|
|
6847
|
-
category_id: 'WinesItalian',
|
|
6848
|
-
category_name: 'Italian',
|
|
6849
|
-
category_order: 2,
|
|
6850
|
-
documents: [],
|
|
6851
|
-
sub_categories: []
|
|
6852
|
-
}
|
|
6853
|
-
]
|
|
6854
|
-
},
|
|
6855
|
-
{
|
|
6856
|
-
category_id: 'Spirits',
|
|
6857
|
-
category_name: 'Spirits',
|
|
6858
|
-
category_order: 3,
|
|
6859
|
-
documents: [],
|
|
6860
|
-
sub_categories: [
|
|
6861
|
-
{
|
|
6862
|
-
category_id: 'SpiritsWhisky',
|
|
6863
|
-
category_name: 'Scotch whisky',
|
|
6864
|
-
category_order: 1,
|
|
6865
|
-
documents: [],
|
|
6866
|
-
sub_categories: [
|
|
6867
|
-
{
|
|
6868
|
-
category_id: 'WhiskyHighland',
|
|
6869
|
-
category_name: 'Highland',
|
|
6870
|
-
category_order: 1,
|
|
6871
|
-
documents: [],
|
|
6872
|
-
sub_categories: [
|
|
6873
|
-
{
|
|
6874
|
-
category_id: 'WhiskyHighland1',
|
|
6875
|
-
category_name: 'Highland 1',
|
|
6876
|
-
category_order: 1,
|
|
6877
|
-
documents: [],
|
|
6878
|
-
sub_categories: []
|
|
6879
|
-
}
|
|
6880
|
-
]
|
|
6881
|
-
},
|
|
6882
|
-
{
|
|
6883
|
-
category_id: 'WhiskyLowland',
|
|
6884
|
-
category_name: 'Lowland',
|
|
6885
|
-
category_order: 2,
|
|
6886
|
-
documents: [],
|
|
6887
|
-
sub_categories: [
|
|
6888
|
-
{
|
|
6889
|
-
category_id: 'WhiskyLowland1',
|
|
6890
|
-
category_name: 'Lowland 1',
|
|
6891
|
-
category_order: 1,
|
|
6892
|
-
documents: [
|
|
6893
|
-
{
|
|
6894
|
-
document_url: '/test',
|
|
6895
|
-
document_filename: 'Details about Whisky Lowland 1',
|
|
6896
|
-
document_binary_url: '/test/binary',
|
|
6897
|
-
attribute_path: '',
|
|
6898
|
-
upload_timestamp: ''
|
|
6899
|
-
}
|
|
6900
|
-
],
|
|
6901
|
-
sub_categories: []
|
|
6902
|
-
},
|
|
6903
|
-
{
|
|
6904
|
-
category_id: 'WhiskyLowland2',
|
|
6905
|
-
category_name: 'Lowland 2',
|
|
6906
|
-
category_order: 2,
|
|
6907
|
-
documents: [],
|
|
6908
|
-
sub_categories: []
|
|
6909
|
-
}
|
|
6910
|
-
]
|
|
6911
|
-
},
|
|
6912
|
-
{
|
|
6913
|
-
category_id: 'WhiskyIslay',
|
|
6914
|
-
category_name: 'Islay',
|
|
6915
|
-
category_order: 3,
|
|
6916
|
-
documents: [
|
|
6917
|
-
{
|
|
6918
|
-
document_url: '/test',
|
|
6919
|
-
document_filename: 'Details about Whisky Islay',
|
|
6920
|
-
document_binary_url: '/test/binary',
|
|
6921
|
-
attribute_path: '',
|
|
6922
|
-
upload_timestamp: ''
|
|
6923
|
-
},
|
|
6924
|
-
{
|
|
6925
|
-
document_url: '/test',
|
|
6926
|
-
document_filename: 'More information about Whisky Islay',
|
|
6927
|
-
document_binary_url: '/test/binary',
|
|
6928
|
-
attribute_path: '',
|
|
6929
|
-
upload_timestamp: ''
|
|
6930
|
-
}
|
|
6931
|
-
],
|
|
6932
|
-
sub_categories: []
|
|
6933
|
-
},
|
|
6934
|
-
{
|
|
6935
|
-
category_id: 'WhiskySpeyside',
|
|
6936
|
-
category_name: 'Speyside',
|
|
6937
|
-
category_order: 4,
|
|
6938
|
-
documents: [],
|
|
6939
|
-
sub_categories: []
|
|
6940
|
-
},
|
|
6941
|
-
{
|
|
6942
|
-
category_id: 'WhiskyCampbeltown',
|
|
6943
|
-
category_name: 'Campbeltown',
|
|
6944
|
-
category_order: 5,
|
|
6945
|
-
documents: [],
|
|
6946
|
-
sub_categories: []
|
|
6947
|
-
}
|
|
6948
|
-
]
|
|
6949
|
-
}
|
|
6950
|
-
]
|
|
6951
|
-
}
|
|
6952
|
-
];
|
|
7019
|
+
if (this.documentFilterSubscription) {
|
|
7020
|
+
this.documentFilterSubscription.unsubscribe();
|
|
7021
|
+
}
|
|
6953
7022
|
}
|
|
6954
7023
|
}
|
|
6955
7024
|
CaseFileViewFolderComponent.UNCATEGORISED_DOCUMENTS_TITLE = 'Uncategorised documents';
|
|
7025
|
+
CaseFileViewFolderComponent.DOCUMENT_SEARCH_FORM_CONTROL_NAME = 'documentSearchFormControl';
|
|
7026
|
+
CaseFileViewFolderComponent.MINIMUM_SEARCH_CHARACTERS = 2;
|
|
6956
7027
|
CaseFileViewFolderComponent.ɵfac = function CaseFileViewFolderComponent_Factory(t) { return new (t || CaseFileViewFolderComponent)(); };
|
|
6957
|
-
CaseFileViewFolderComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseFileViewFolderComponent, selectors: [["ccd-case-file-view-folder"]], inputs: { categoriesAndDocuments: "categoriesAndDocuments" }, decls:
|
|
7028
|
+
CaseFileViewFolderComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseFileViewFolderComponent, selectors: [["ccd-case-file-view-folder"]], inputs: { categoriesAndDocuments: "categoriesAndDocuments" }, decls: 10, vars: 4, consts: [[1, "document-filter-container"], [1, "form-group", "document-filter", 3, "formGroup"], ["for", "document-search", 1, "form-label"], ["type", "search", "id", "document-search", "name", "documentSearchFormControl", "formControlName", "documentSearchFormControl", 1, "form-control", "document-search"], [1, "documents-title"], [1, "document-tree-container"], [3, "dataSource", "treeControl"], ["class", "document-tree-node", 4, "cdkTreeNodeDef"], ["class", "document-tree-node", 4, "cdkTreeNodeDef", "cdkTreeNodeDefWhen"], [1, "document-tree-node"], [1, "node"], ["mat-icon-button", "", "disabled", "", 1, "icon", "icon-document"], [1, "node-name", "node-name-document"], ["mat-icon-button", "", "cdkTreeNodeToggle", "", 1, "icon", "icon-folder"], [1, "document-count"], [1, "node-name", "node-name-folder"], ["cdkTreeNodeOutlet", ""]], template: function CaseFileViewFolderComponent_Template(rf, ctx) { if (rf & 1) {
|
|
6958
7029
|
i0.ɵɵelementStart(0, "div", 0);
|
|
6959
|
-
i0.ɵɵ
|
|
6960
|
-
i0.ɵɵ
|
|
6961
|
-
i0.ɵɵ
|
|
7030
|
+
i0.ɵɵelementStart(1, "div", 1);
|
|
7031
|
+
i0.ɵɵelement(2, "label", 2);
|
|
7032
|
+
i0.ɵɵelement(3, "input", 3);
|
|
6962
7033
|
i0.ɵɵelementEnd();
|
|
7034
|
+
i0.ɵɵelementStart(4, "div", 4);
|
|
7035
|
+
i0.ɵɵtext(5, "Documents");
|
|
6963
7036
|
i0.ɵɵelementEnd();
|
|
6964
|
-
i0.ɵɵ
|
|
6965
|
-
i0.ɵɵelementStart(
|
|
6966
|
-
i0.ɵɵ
|
|
6967
|
-
i0.ɵɵtemplate(
|
|
7037
|
+
i0.ɵɵelementEnd();
|
|
7038
|
+
i0.ɵɵelementStart(6, "div", 5);
|
|
7039
|
+
i0.ɵɵelementStart(7, "cdk-tree", 6);
|
|
7040
|
+
i0.ɵɵtemplate(8, CaseFileViewFolderComponent_cdk_nested_tree_node_8_Template, 5, 1, "cdk-nested-tree-node", 7);
|
|
7041
|
+
i0.ɵɵtemplate(9, CaseFileViewFolderComponent_cdk_nested_tree_node_9_Template, 9, 5, "cdk-nested-tree-node", 8);
|
|
6968
7042
|
i0.ɵɵelementEnd();
|
|
6969
7043
|
i0.ɵɵelementEnd();
|
|
6970
7044
|
} if (rf & 2) {
|
|
6971
|
-
i0.ɵɵadvance(
|
|
7045
|
+
i0.ɵɵadvance(1);
|
|
7046
|
+
i0.ɵɵproperty("formGroup", ctx.documentFilterFormGroup);
|
|
7047
|
+
i0.ɵɵadvance(6);
|
|
6972
7048
|
i0.ɵɵproperty("dataSource", ctx.nestedDataSource)("treeControl", ctx.nestedTreeControl);
|
|
6973
7049
|
i0.ɵɵadvance(2);
|
|
6974
7050
|
i0.ɵɵproperty("cdkTreeNodeDefWhen", ctx.nestedChildren);
|
|
6975
|
-
} }, directives: [i1$
|
|
7051
|
+
} }, directives: [i1$3.NgControlStatusGroup, i1$3.FormGroupDirective, i1$3.DefaultValueAccessor, i1$3.NgControlStatus, i1$3.FormControlName, i2.CdkTree, i2.CdkTreeNodeDef, i2.CdkNestedTreeNode, i2.CdkTreeNodeToggle, i2.CdkTreeNodeOutlet], styles: [".document-filter-container[_ngcontent-%COMP%]{border-bottom:2px solid #c9c9c9;padding-bottom:4px}.document-filter-container[_ngcontent-%COMP%] .document-filter[_ngcontent-%COMP%]{height:70%;padding:8px 0 0 8px;margin-bottom:10px}.document-filter-container[_ngcontent-%COMP%] .document-filter[_ngcontent-%COMP%] .document-search[_ngcontent-%COMP%]{background:url(/assets/images/icon-search-black.svg) no-repeat 98% #fff;padding-right:30px;min-width:30%;max-width:340px}.document-filter-container[_ngcontent-%COMP%] .documents-title[_ngcontent-%COMP%]{height:30%;margin-left:8px;font-weight:700}.document-tree-container[_ngcontent-%COMP%]{margin:4px}.document-tree-container[_ngcontent-%COMP%] .document-tree-invisible[_ngcontent-%COMP%]{display:none}.document-tree-container[_ngcontent-%COMP%] .document-tree[_ngcontent-%COMP%] li[_ngcontent-%COMP%], .document-tree-container[_ngcontent-%COMP%] .document-tree[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0;list-style-type:none}.document-tree-container[_ngcontent-%COMP%] .document-tree-node[_ngcontent-%COMP%]{display:block}.document-tree-container[_ngcontent-%COMP%] .document-tree-node[_ngcontent-%COMP%] .document-tree-node[_ngcontent-%COMP%]{padding-left:40px}.document-tree-container[_ngcontent-%COMP%] .node[_ngcontent-%COMP%]{display:flex;padding:4px}.document-tree-container[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{width:36px;height:36px;background-size:100%;border:0;background-color:#faf8f8}.document-tree-container[_ngcontent-%COMP%] .icon-folder[_ngcontent-%COMP%]{background-image:url(/assets/images/folder.png)}.document-tree-container[_ngcontent-%COMP%] .icon-document[_ngcontent-%COMP%]{background-image:url(/assets/images/document.png)}.document-tree-container[_ngcontent-%COMP%] .node-name[_ngcontent-%COMP%]{margin-left:6px}.document-tree-container[_ngcontent-%COMP%] .node-name-document[_ngcontent-%COMP%], .document-tree-container[_ngcontent-%COMP%] .node-name-folder[_ngcontent-%COMP%]{margin-top:4px}.document-tree-container[_ngcontent-%COMP%] .document-count[_ngcontent-%COMP%]{color:#fff}"] });
|
|
6976
7052
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseFileViewFolderComponent, [{
|
|
6977
7053
|
type: Component,
|
|
6978
7054
|
args: [{
|
|
@@ -6984,50 +7060,15 @@ CaseFileViewFolderComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseFileViewF
|
|
|
6984
7060
|
type: Input
|
|
6985
7061
|
}] }); })();
|
|
6986
7062
|
|
|
6987
|
-
function CaseFileViewFieldComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
6988
|
-
i0.ɵɵelementStart(0, "div", 2);
|
|
6989
|
-
i0.ɵɵelementStart(1, "h1", 3);
|
|
6990
|
-
i0.ɵɵtext(2, "Sorry, there is a problem with the service");
|
|
6991
|
-
i0.ɵɵelementEnd();
|
|
6992
|
-
i0.ɵɵelementStart(3, "p", 4);
|
|
6993
|
-
i0.ɵɵtext(4, "Try again later.");
|
|
6994
|
-
i0.ɵɵelementEnd();
|
|
6995
|
-
i0.ɵɵelementEnd();
|
|
6996
|
-
} }
|
|
6997
|
-
function CaseFileViewFieldComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
6998
|
-
i0.ɵɵelementStart(0, "div");
|
|
6999
|
-
i0.ɵɵelementStart(1, "h2", 5);
|
|
7000
|
-
i0.ɵɵtext(2, "Case file");
|
|
7001
|
-
i0.ɵɵelementEnd();
|
|
7002
|
-
i0.ɵɵelementStart(3, "div", 6);
|
|
7003
|
-
i0.ɵɵelementStart(4, "div", 7);
|
|
7004
|
-
i0.ɵɵelement(5, "ccd-case-file-view-folder", 8);
|
|
7005
|
-
i0.ɵɵelementEnd();
|
|
7006
|
-
i0.ɵɵelement(6, "div", 9);
|
|
7007
|
-
i0.ɵɵelementStart(7, "div", 10);
|
|
7008
|
-
i0.ɵɵtext(8, " Media viewer ");
|
|
7009
|
-
i0.ɵɵelementEnd();
|
|
7010
|
-
i0.ɵɵelementEnd();
|
|
7011
|
-
i0.ɵɵelementEnd();
|
|
7012
|
-
} if (rf & 2) {
|
|
7013
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
|
7014
|
-
i0.ɵɵadvance(5);
|
|
7015
|
-
i0.ɵɵproperty("categoriesAndDocuments", ctx_r1.categoriesAndDocuments$);
|
|
7016
|
-
} }
|
|
7017
7063
|
class CaseFileViewFieldComponent {
|
|
7018
7064
|
constructor(elementRef, route, caseFileViewService) {
|
|
7019
7065
|
this.elementRef = elementRef;
|
|
7020
7066
|
this.route = route;
|
|
7021
7067
|
this.caseFileViewService = caseFileViewService;
|
|
7022
|
-
this.getCategoriesAndDocumentsError = false;
|
|
7023
7068
|
}
|
|
7024
7069
|
ngOnInit() {
|
|
7025
7070
|
const cid = this.route.snapshot.paramMap.get(CaseFileViewFieldComponent.PARAM_CASE_ID);
|
|
7026
7071
|
this.categoriesAndDocuments$ = this.caseFileViewService.getCategoriesAndDocuments(cid);
|
|
7027
|
-
this.categoriesAndDocumentsSubscription = this.categoriesAndDocuments$.subscribe({
|
|
7028
|
-
next: _ => { },
|
|
7029
|
-
error: _ => this.getCategoriesAndDocumentsError = true
|
|
7030
|
-
});
|
|
7031
7072
|
}
|
|
7032
7073
|
ngAfterViewInit() {
|
|
7033
7074
|
const slider = this.elementRef.nativeElement.querySelector('.slider');
|
|
@@ -7051,22 +7092,26 @@ class CaseFileViewFieldComponent {
|
|
|
7051
7092
|
documentTreeContainer.setAttribute('style', `width: ${calculatedWidth}%`);
|
|
7052
7093
|
});
|
|
7053
7094
|
}
|
|
7054
|
-
ngOnDestroy() {
|
|
7055
|
-
if (this.categoriesAndDocumentsSubscription) {
|
|
7056
|
-
this.categoriesAndDocumentsSubscription.unsubscribe();
|
|
7057
|
-
}
|
|
7058
|
-
}
|
|
7059
7095
|
}
|
|
7060
7096
|
CaseFileViewFieldComponent.PARAM_CASE_ID = 'cid';
|
|
7061
7097
|
CaseFileViewFieldComponent.ɵfac = function CaseFileViewFieldComponent_Factory(t) { return new (t || CaseFileViewFieldComponent)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(CaseFileViewService)); };
|
|
7062
|
-
CaseFileViewFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseFileViewFieldComponent, selectors: [["ccd-case-file-view-field"]], decls:
|
|
7063
|
-
i0.ɵɵ
|
|
7064
|
-
i0.ɵɵ
|
|
7098
|
+
CaseFileViewFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseFileViewFieldComponent, selectors: [["ccd-case-file-view-field"]], decls: 8, vars: 1, consts: [[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) { if (rf & 1) {
|
|
7099
|
+
i0.ɵɵelementStart(0, "h2", 0);
|
|
7100
|
+
i0.ɵɵtext(1, "Case file");
|
|
7101
|
+
i0.ɵɵelementEnd();
|
|
7102
|
+
i0.ɵɵelementStart(2, "div", 1);
|
|
7103
|
+
i0.ɵɵelementStart(3, "div", 2);
|
|
7104
|
+
i0.ɵɵelement(4, "ccd-case-file-view-folder", 3);
|
|
7105
|
+
i0.ɵɵelementEnd();
|
|
7106
|
+
i0.ɵɵelement(5, "div", 4);
|
|
7107
|
+
i0.ɵɵelementStart(6, "div", 5);
|
|
7108
|
+
i0.ɵɵtext(7, " Media viewer ");
|
|
7109
|
+
i0.ɵɵelementEnd();
|
|
7110
|
+
i0.ɵɵelementEnd();
|
|
7065
7111
|
} if (rf & 2) {
|
|
7066
|
-
i0.ɵɵ
|
|
7067
|
-
i0.ɵɵ
|
|
7068
|
-
|
|
7069
|
-
} }, directives: [i1.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%}"] });
|
|
7112
|
+
i0.ɵɵadvance(4);
|
|
7113
|
+
i0.ɵɵproperty("categoriesAndDocuments", ctx.categoriesAndDocuments$);
|
|
7114
|
+
} }, 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%}"] });
|
|
7070
7115
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseFileViewFieldComponent, [{
|
|
7071
7116
|
type: Component,
|
|
7072
7117
|
args: [{
|
|
@@ -7440,7 +7485,7 @@ class RemoveDialogComponent {
|
|
|
7440
7485
|
this.matDialogRef.close(this.result);
|
|
7441
7486
|
}
|
|
7442
7487
|
}
|
|
7443
|
-
RemoveDialogComponent.ɵfac = function RemoveDialogComponent_Factory(t) { return new (t || RemoveDialogComponent)(i0.ɵɵdirectiveInject(i1$
|
|
7488
|
+
RemoveDialogComponent.ɵfac = function RemoveDialogComponent_Factory(t) { return new (t || RemoveDialogComponent)(i0.ɵɵdirectiveInject(i1$5.MatDialogRef)); };
|
|
7444
7489
|
RemoveDialogComponent.ɵcmp = i0.ɵɵdefineComponent({ type: RemoveDialogComponent, selectors: [["ccd-remove-dialog"]], decls: 15, vars: 0, consts: [[1, "dialog-header"], [1, "heading-h2", "x", 3, "click"], [1, "heading-h2", "dialog-title"], [1, "dialog-info"], [1, "text-info"], ["type", "button", "title", "Remove", 1, "button", "action-button", 3, "click"], ["type", "button", "title", "Cancel", 1, "button", "button-secondary", 3, "click"]], template: function RemoveDialogComponent_Template(rf, ctx) { if (rf & 1) {
|
|
7445
7490
|
i0.ɵɵelementStart(0, "div");
|
|
7446
7491
|
i0.ɵɵelementStart(1, "div", 0);
|
|
@@ -7478,7 +7523,7 @@ RemoveDialogComponent.ɵcmp = i0.ɵɵdefineComponent({ type: RemoveDialogCompone
|
|
|
7478
7523
|
templateUrl: './remove-dialog.component.html',
|
|
7479
7524
|
styleUrls: ['../action-dialog.component.scss']
|
|
7480
7525
|
}]
|
|
7481
|
-
}], function () { return [{ type: i1$
|
|
7526
|
+
}], function () { return [{ type: i1$5.MatDialogRef }]; }, null); })();
|
|
7482
7527
|
|
|
7483
7528
|
const _c0$D = ["collectionItem"];
|
|
7484
7529
|
function WriteCollectionFieldComponent_h2_7_span_1_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -7852,7 +7897,7 @@ class WriteCollectionFieldComponent extends AbstractFieldWriteComponent {
|
|
|
7852
7897
|
return notSimple.indexOf(caseField.field_type.collection_field_type.type) < 0;
|
|
7853
7898
|
}
|
|
7854
7899
|
}
|
|
7855
|
-
WriteCollectionFieldComponent.ɵfac = function WriteCollectionFieldComponent_Factory(t) { return new (t || WriteCollectionFieldComponent)(i0.ɵɵdirectiveInject(i1$
|
|
7900
|
+
WriteCollectionFieldComponent.ɵfac = function WriteCollectionFieldComponent_Factory(t) { return new (t || WriteCollectionFieldComponent)(i0.ɵɵdirectiveInject(i1$5.MatDialog), i0.ɵɵdirectiveInject(i2$1.ScrollToService), i0.ɵɵdirectiveInject(ProfileNotifier)); };
|
|
7856
7901
|
WriteCollectionFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteCollectionFieldComponent, selectors: [["ccd-write-collection-field"]], viewQuery: function WriteCollectionFieldComponent_Query(rf, ctx) { if (rf & 1) {
|
|
7857
7902
|
i0.ɵɵviewQuery(_c0$D, 1);
|
|
7858
7903
|
} if (rf & 2) {
|
|
@@ -7894,7 +7939,7 @@ WriteCollectionFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteCollec
|
|
|
7894
7939
|
templateUrl: './write-collection-field.html',
|
|
7895
7940
|
styleUrls: ['./collection-field.scss']
|
|
7896
7941
|
}]
|
|
7897
|
-
}], function () { return [{ type: i1$
|
|
7942
|
+
}], function () { return [{ type: i1$5.MatDialog }, { type: i2$1.ScrollToService }, { type: ProfileNotifier }]; }, { caseFields: [{
|
|
7898
7943
|
type: Input
|
|
7899
7944
|
}], formGroup: [{
|
|
7900
7945
|
type: Input
|
|
@@ -9396,7 +9441,7 @@ class DocumentDialogComponent {
|
|
|
9396
9441
|
this.matDialogRef.close(this.result);
|
|
9397
9442
|
}
|
|
9398
9443
|
}
|
|
9399
|
-
DocumentDialogComponent.ɵfac = function DocumentDialogComponent_Factory(t) { return new (t || DocumentDialogComponent)(i0.ɵɵdirectiveInject(i1$
|
|
9444
|
+
DocumentDialogComponent.ɵfac = function DocumentDialogComponent_Factory(t) { return new (t || DocumentDialogComponent)(i0.ɵɵdirectiveInject(i1$5.MatDialogRef)); };
|
|
9400
9445
|
DocumentDialogComponent.ɵcmp = i0.ɵɵdefineComponent({ type: DocumentDialogComponent, selectors: [["ccd-document-dialog"]], decls: 15, vars: 0, consts: [[1, "dialog-header"], [1, "heading-h2", "x", 3, "click"], [1, "heading-h2", "dialog-title"], [1, "dialog-info"], [1, "text-info"], ["type", "button", "title", "Replace", 1, "button", "action-button", 3, "click"], ["type", "button", "title", "Cancel", 1, "button", "button-secondary", 3, "click"]], template: function DocumentDialogComponent_Template(rf, ctx) { if (rf & 1) {
|
|
9401
9446
|
i0.ɵɵelementStart(0, "div");
|
|
9402
9447
|
i0.ɵɵelementStart(1, "div", 0);
|
|
@@ -9434,7 +9479,7 @@ DocumentDialogComponent.ɵcmp = i0.ɵɵdefineComponent({ type: DocumentDialogCom
|
|
|
9434
9479
|
templateUrl: './document-dialog.component.html',
|
|
9435
9480
|
styleUrls: ['../action-dialog.component.scss']
|
|
9436
9481
|
}]
|
|
9437
|
-
}], function () { return [{ type: i1$
|
|
9482
|
+
}], function () { return [{ type: i1$5.MatDialogRef }]; }, null); })();
|
|
9438
9483
|
|
|
9439
9484
|
function initDialog() {
|
|
9440
9485
|
const dialogConfig = new MatDialogConfig();
|
|
@@ -9741,7 +9786,7 @@ WriteDocumentFieldComponent.DOCUMENT_HASH = 'document_hash';
|
|
|
9741
9786
|
WriteDocumentFieldComponent.UPLOAD_ERROR_FILE_REQUIRED = 'File required';
|
|
9742
9787
|
WriteDocumentFieldComponent.UPLOAD_ERROR_NOT_AVAILABLE = 'Document upload facility is not available at the moment';
|
|
9743
9788
|
WriteDocumentFieldComponent.UPLOAD_WAITING_FILE_STATUS = 'Uploading...';
|
|
9744
|
-
WriteDocumentFieldComponent.ɵfac = function WriteDocumentFieldComponent_Factory(t) { return new (t || WriteDocumentFieldComponent)(i0.ɵɵdirectiveInject(AbstractAppConfig), i0.ɵɵdirectiveInject(CaseNotifier), i0.ɵɵdirectiveInject(DocumentManagementService), i0.ɵɵdirectiveInject(i1$
|
|
9789
|
+
WriteDocumentFieldComponent.ɵfac = function WriteDocumentFieldComponent_Factory(t) { return new (t || WriteDocumentFieldComponent)(i0.ɵɵdirectiveInject(AbstractAppConfig), i0.ɵɵdirectiveInject(CaseNotifier), i0.ɵɵdirectiveInject(DocumentManagementService), i0.ɵɵdirectiveInject(i1$5.MatDialog), i0.ɵɵdirectiveInject(FileUploadStateService)); };
|
|
9745
9790
|
WriteDocumentFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteDocumentFieldComponent, selectors: [["ccd-write-document-field"]], viewQuery: function WriteDocumentFieldComponent_Query(rf, ctx) { if (rf & 1) {
|
|
9746
9791
|
i0.ɵɵviewQuery(_c0$z, 1);
|
|
9747
9792
|
} if (rf & 2) {
|
|
@@ -9806,7 +9851,7 @@ WriteDocumentFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteDocument
|
|
|
9806
9851
|
selector: 'ccd-write-document-field',
|
|
9807
9852
|
templateUrl: './write-document-field.html'
|
|
9808
9853
|
}]
|
|
9809
|
-
}], function () { return [{ type: AbstractAppConfig }, { type: CaseNotifier }, { type: DocumentManagementService }, { type: i1$
|
|
9854
|
+
}], function () { return [{ type: AbstractAppConfig }, { type: CaseNotifier }, { type: DocumentManagementService }, { type: i1$5.MatDialog }, { type: FileUploadStateService }]; }, { fileInput: [{
|
|
9810
9855
|
type: ViewChild,
|
|
9811
9856
|
args: ['fileInput', { static: false }]
|
|
9812
9857
|
}], clickout: [{
|
|
@@ -14056,7 +14101,7 @@ class SaveOrDiscardDialogComponent {
|
|
|
14056
14101
|
this.matDialogRef.close(this.result);
|
|
14057
14102
|
}
|
|
14058
14103
|
}
|
|
14059
|
-
SaveOrDiscardDialogComponent.ɵfac = function SaveOrDiscardDialogComponent_Factory(t) { return new (t || SaveOrDiscardDialogComponent)(i0.ɵɵdirectiveInject(i1$
|
|
14104
|
+
SaveOrDiscardDialogComponent.ɵfac = function SaveOrDiscardDialogComponent_Factory(t) { return new (t || SaveOrDiscardDialogComponent)(i0.ɵɵdirectiveInject(i1$5.MatDialogRef)); };
|
|
14060
14105
|
SaveOrDiscardDialogComponent.ɵcmp = i0.ɵɵdefineComponent({ type: SaveOrDiscardDialogComponent, selectors: [["ccd-save-or-discard-dialog"]], decls: 15, vars: 0, consts: [[1, "dialog-header"], [1, "heading-h2", "x", 3, "click"], [1, "heading-h2", "dialog-title"], [1, "dialog-info"], [1, "text-info"], ["type", "button", "title", "Save", 1, "button", "action-button", 3, "click"], ["type", "button", "title", "Discard", 1, "button", "button-secondary", 3, "click"]], template: function SaveOrDiscardDialogComponent_Template(rf, ctx) { if (rf & 1) {
|
|
14061
14106
|
i0.ɵɵelementStart(0, "div");
|
|
14062
14107
|
i0.ɵɵelementStart(1, "div", 0);
|
|
@@ -14094,7 +14139,7 @@ SaveOrDiscardDialogComponent.ɵcmp = i0.ɵɵdefineComponent({ type: SaveOrDiscar
|
|
|
14094
14139
|
templateUrl: './save-or-discard-dialog.component.html',
|
|
14095
14140
|
styleUrls: ['../action-dialog.component.scss']
|
|
14096
14141
|
}]
|
|
14097
|
-
}], function () { return [{ type: i1$
|
|
14142
|
+
}], function () { return [{ type: i1$5.MatDialogRef }]; }, null); })();
|
|
14098
14143
|
|
|
14099
14144
|
class PageValidationService {
|
|
14100
14145
|
constructor(caseFieldService) {
|
|
@@ -14906,7 +14951,7 @@ class CaseEditPageComponent {
|
|
|
14906
14951
|
return caseEventData;
|
|
14907
14952
|
}
|
|
14908
14953
|
}
|
|
14909
|
-
CaseEditPageComponent.ɵfac = function CaseEditPageComponent_Factory(t) { return new (t || CaseEditPageComponent)(i0.ɵɵdirectiveInject(CaseEditComponent), i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(FormValueService), i0.ɵɵdirectiveInject(FormErrorService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(PageValidationService), i0.ɵɵdirectiveInject(i1$
|
|
14954
|
+
CaseEditPageComponent.ɵfac = function CaseEditPageComponent_Factory(t) { return new (t || CaseEditPageComponent)(i0.ɵɵdirectiveInject(CaseEditComponent), i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(FormValueService), i0.ɵɵdirectiveInject(FormErrorService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(PageValidationService), i0.ɵɵdirectiveInject(i1$5.MatDialog), i0.ɵɵdirectiveInject(CaseFieldService)); };
|
|
14910
14955
|
CaseEditPageComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseEditPageComponent, selectors: [["ccd-case-edit-page"]], decls: 13, vars: 12, consts: [[4, "ngIf"], [4, "ngIf", "ngIfThen", "ngIfElse"], ["titleBlock", ""], ["idBlock", ""], ["class", "govuk-error-summary", "aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "govuk-error-summary", 4, "ngIf"], ["class", "error-summary", "role", "status", "aria-labelledby", "edit-case-event_error-summary-heading", "tabindex", "-1", 4, "ngIf"], [3, "triggerTextContinue", "triggerTextIgnore", "callbackErrorsSubject", "callbackErrorsContext"], [1, "width-50"], ["class", "form", 3, "formGroup", "submit", 4, "ngIf"], ["class", "govuk-heading-l", 4, "ngIf"], [1, "govuk-heading-l"], [1, "govuk-caption-l"], [3, "content"], ["class", "heading-h2", 4, "ngIf"], [1, "heading-h2"], ["aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "govuk-error-summary", 1, "govuk-error-summary"], ["id", "error-summary-title", 1, "govuk-error-summary__title"], ["class", "govuk-error-summary__body", 4, "ngFor", "ngForOf"], [1, "govuk-error-summary__body"], [1, "govuk-list", "govuk-error-summary__list"], [1, "validation-error", 3, "click"], ["role", "status", "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-3", 1, "heading-h3", "error-summary-heading"], ["class", "error-summary-list", 4, "ngIf"], [1, "error-summary-list"], ["class", "ccd-error-summary-li", 4, "ngFor", "ngForOf"], [1, "ccd-error-summary-li"], [1, "form", 3, "formGroup", "submit"], ["id", "fieldset-case-data"], [2, "display", "none"], ["id", "caseEditForm", 3, "fields", "formGroup", "caseFields", "pageChangeSubject", "valuesChanged", 4, "ngIf"], ["class", "grid-row", 4, "ngIf"], [1, "form-group", "form-group-related"], ["type", "button", 1, "button", "button-secondary", 3, "disabled", "click"], ["type", "submit", 1, "button", 3, "disabled"], [1, "cancel"], ["href", "javascript:void(0)", 3, "click"], ["id", "caseEditForm", 3, "fields", "formGroup", "caseFields", "pageChangeSubject", "valuesChanged"], [1, "grid-row"], [1, "column-two-thirds", "rightBorderSeparator"], ["id", "caseEditForm1", 3, "fields", "formGroup", "caseFields"], [1, "column-one-third"], ["id", "caseEditForm2", 3, "fields", "formGroup", "caseFields"]], template: function CaseEditPageComponent_Template(rf, ctx) { if (rf & 1) {
|
|
14911
14956
|
i0.ɵɵtemplate(0, CaseEditPageComponent_ccd_loading_spinner_0_Template, 1, 0, "ccd-loading-spinner", 0);
|
|
14912
14957
|
i0.ɵɵtemplate(1, CaseEditPageComponent_ng_container_1_Template, 3, 2, "ng-container", 0);
|
|
@@ -14948,7 +14993,7 @@ CaseEditPageComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseEditPageCompone
|
|
|
14948
14993
|
templateUrl: 'case-edit-page.html',
|
|
14949
14994
|
styleUrls: ['./case-edit-page.scss']
|
|
14950
14995
|
}]
|
|
14951
|
-
}], function () { return [{ type: CaseEditComponent }, { type: i1$1.ActivatedRoute }, { type: FormValueService }, { type: FormErrorService }, { type: i0.ChangeDetectorRef }, { type: PageValidationService }, { type: i1$
|
|
14996
|
+
}], function () { return [{ type: CaseEditComponent }, { type: i1$1.ActivatedRoute }, { type: FormValueService }, { type: FormErrorService }, { type: i0.ChangeDetectorRef }, { type: PageValidationService }, { type: i1$5.MatDialog }, { type: CaseFieldService }]; }, null); })();
|
|
14952
14997
|
|
|
14953
14998
|
class Confirmation {
|
|
14954
14999
|
constructor(caseId, status, header, body) {
|
|
@@ -16944,7 +16989,7 @@ PaletteModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
|
|
|
16944
16989
|
MatDatepickerModule,
|
|
16945
16990
|
MatAutocompleteModule,
|
|
16946
16991
|
CdkTreeModule,
|
|
16947
|
-
PaymentLibModule, i2.ScrollToModule], exports: [NgxMatDatetimePickerModule,
|
|
16992
|
+
PaymentLibModule, i2$1.ScrollToModule], exports: [NgxMatDatetimePickerModule,
|
|
16948
16993
|
NgxMatNativeDateModule,
|
|
16949
16994
|
NgxMatTimepickerModule,
|
|
16950
16995
|
TabsModule,
|
|
@@ -17829,7 +17874,7 @@ PaginationComponent.ɵcmp = i0.ɵɵdefineComponent({ type: PaginationComponent,
|
|
|
17829
17874
|
i0.ɵɵproperty("id", ctx.id)("maxSize", ctx.maxSize);
|
|
17830
17875
|
i0.ɵɵadvance(3);
|
|
17831
17876
|
i0.ɵɵproperty("ngIf", !(ctx.autoHide && _r0.pages.length <= 1));
|
|
17832
|
-
} }, directives: [i1$
|
|
17877
|
+
} }, directives: [i1$6.PaginationControlsDirective, i1.NgIf, i1.NgForOf], pipes: [i1.DecimalPipe], styles: [".ngx-pagination[_ngcontent-%COMP%]{margin-left:0;margin-bottom:1rem;padding-top:25px;text-decoration:none;text-align:left;font-size:16px}.ngx-pagination[_ngcontent-%COMP%]:after, .ngx-pagination[_ngcontent-%COMP%]:before{content:\" \";display:table}.ngx-pagination[_ngcontent-%COMP%]:after{clear:both}.ngx-pagination[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;margin-right:.0625rem;border-radius:0;display:inline-block}.ngx-pagination[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .ngx-pagination[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{display:block;padding:.1875rem .625rem;border-radius:0;color:#005da6}.ngx-pagination[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover, .ngx-pagination[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background:#e6e6e6}.ngx-pagination[_ngcontent-%COMP%] .current[_ngcontent-%COMP%]{padding:.1875rem .625rem;background:#fff;color:#4c2c92;cursor:default;font-weight:900}.ngx-pagination[_ngcontent-%COMP%] .disabled[_ngcontent-%COMP%]{display:none}.ngx-pagination[_ngcontent-%COMP%] .disabled[_ngcontent-%COMP%]:hover{background:transparent}.ngx-pagination[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .ngx-pagination[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{cursor:pointer}.ngx-pagination[_ngcontent-%COMP%] .pagination-previous.disabled[_ngcontent-%COMP%]:before, .ngx-pagination[_ngcontent-%COMP%] .pagination-previous[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:before{margin-right:.5rem;border-width:3px 0 0 3px}.ngx-pagination[_ngcontent-%COMP%] .pagination-next.disabled[_ngcontent-%COMP%]:after, .ngx-pagination[_ngcontent-%COMP%] .pagination-next[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:after, .ngx-pagination[_ngcontent-%COMP%] .pagination-previous.disabled[_ngcontent-%COMP%]:before, .ngx-pagination[_ngcontent-%COMP%] .pagination-previous[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:before{display:inline-block;height:10px;width:10px;border-style:solid;color:#0a0a0a;background:transparent;transform:rotate(-45deg);content:\"\"}.ngx-pagination[_ngcontent-%COMP%] .pagination-next.disabled[_ngcontent-%COMP%]:after, .ngx-pagination[_ngcontent-%COMP%] .pagination-next[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:after{margin-left:.5rem;border-width:0 3px 3px 0}.ngx-pagination[_ngcontent-%COMP%] .show-for-sr[_ngcontent-%COMP%]{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.ngx-pagination[_ngcontent-%COMP%] .small-screen[_ngcontent-%COMP%]{display:none}@media screen and (max-width:601px){.ngx-pagination.responsive[_ngcontent-%COMP%] .small-screen[_ngcontent-%COMP%]{display:inline-block}.ngx-pagination.responsive[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:not(.small-screen):not(.pagination-previous):not(.pagination-next){display:none}}"] });
|
|
17833
17878
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PaginationComponent, [{
|
|
17834
17879
|
type: Component,
|
|
17835
17880
|
args: [{
|
|
@@ -18179,7 +18224,7 @@ CaseListComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseListComponent, sele
|
|
|
18179
18224
|
i0.ɵɵproperty("ngForOf", i0.ɵɵpipeBind2(9, 8, ctx.cases, i0.ɵɵpureFunction3(11, _c0$c, ctx.pageSize, ctx.currentPageNo, ctx.totalResultsCount)));
|
|
18180
18225
|
i0.ɵɵadvance(2);
|
|
18181
18226
|
i0.ɵɵproperty("ngIf", ctx.totalResultsCount > ctx.pageSize);
|
|
18182
|
-
} }, directives: [i1.NgIf, i1.NgForOf, i1$1.RouterLinkWithHref, i1.NgSwitch, i1.NgSwitchCase, i1.NgSwitchDefault, PaginationComponent], pipes: [i1$
|
|
18227
|
+
} }, directives: [i1.NgIf, i1.NgForOf, i1$1.RouterLinkWithHref, i1.NgSwitch, i1.NgSwitchCase, i1.NgSwitchDefault, PaginationComponent], pipes: [i1$6.PaginatePipe, i1.CurrencyPipe], styles: [""] });
|
|
18183
18228
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseListComponent, [{
|
|
18184
18229
|
type: Component,
|
|
18185
18230
|
args: [{
|
|
@@ -19868,7 +19913,7 @@ class DeleteOrCancelDialogComponent {
|
|
|
19868
19913
|
this.matDialogRef.close(this.result);
|
|
19869
19914
|
}
|
|
19870
19915
|
}
|
|
19871
|
-
DeleteOrCancelDialogComponent.ɵfac = function DeleteOrCancelDialogComponent_Factory(t) { return new (t || DeleteOrCancelDialogComponent)(i0.ɵɵdirectiveInject(i1$
|
|
19916
|
+
DeleteOrCancelDialogComponent.ɵfac = function DeleteOrCancelDialogComponent_Factory(t) { return new (t || DeleteOrCancelDialogComponent)(i0.ɵɵdirectiveInject(i1$5.MatDialogRef)); };
|
|
19872
19917
|
DeleteOrCancelDialogComponent.ɵcmp = i0.ɵɵdefineComponent({ type: DeleteOrCancelDialogComponent, selectors: [["ccd-delete-or-cancel-dialog"]], decls: 15, vars: 0, consts: [[1, "dialog-header"], [1, "heading-h2", "x", 3, "click"], [1, "heading-h2", "dialog-title"], [1, "dialog-info"], [1, "text-info"], ["type", "button", "title", "Delete", 1, "button", "action-button", 3, "click"], ["type", "button", "title", "Cancel", 1, "button", "button-secondary", 3, "click"]], template: function DeleteOrCancelDialogComponent_Template(rf, ctx) { if (rf & 1) {
|
|
19873
19918
|
i0.ɵɵelementStart(0, "div");
|
|
19874
19919
|
i0.ɵɵelementStart(1, "div", 0);
|
|
@@ -19906,7 +19951,7 @@ DeleteOrCancelDialogComponent.ɵcmp = i0.ɵɵdefineComponent({ type: DeleteOrCan
|
|
|
19906
19951
|
templateUrl: './delete-or-cancel-dialog.component.html',
|
|
19907
19952
|
styleUrls: ['../action-dialog.component.scss']
|
|
19908
19953
|
}]
|
|
19909
|
-
}], function () { return [{ type: i1$
|
|
19954
|
+
}], function () { return [{ type: i1$5.MatDialogRef }]; }, null); })();
|
|
19910
19955
|
|
|
19911
19956
|
function EventTriggerComponent_form_0_option_5_Template(rf, ctx) { if (rf & 1) {
|
|
19912
19957
|
i0.ɵɵelementStart(0, "option", 8);
|
|
@@ -20102,7 +20147,7 @@ function CaseFullAccessViewComponent_ng_container_11_mat_tab_4_ng_template_1_ng_
|
|
|
20102
20147
|
function CaseFullAccessViewComponent_ng_container_11_mat_tab_4_ng_template_1_ng_container_2_tr_4_Template(rf, ctx) { if (rf & 1) {
|
|
20103
20148
|
i0.ɵɵelementStart(0, "tr");
|
|
20104
20149
|
i0.ɵɵtemplate(1, CaseFullAccessViewComponent_ng_container_11_mat_tab_4_ng_template_1_ng_container_2_tr_4_th_1_Template, 3, 1, "th", 31);
|
|
20105
|
-
i0.ɵɵelementStart(2, "
|
|
20150
|
+
i0.ɵɵelementStart(2, "td");
|
|
20106
20151
|
i0.ɵɵelementStart(3, "span", 32);
|
|
20107
20152
|
i0.ɵɵelement(4, "ccd-field-read", 33);
|
|
20108
20153
|
i0.ɵɵelementEnd();
|
|
@@ -20462,7 +20507,7 @@ CaseFullAccessViewComponent.TRIGGER_TEXT_START = 'Go';
|
|
|
20462
20507
|
CaseFullAccessViewComponent.TRIGGER_TEXT_CONTINUE = 'Ignore Warning and Go';
|
|
20463
20508
|
CaseFullAccessViewComponent.UNICODE_SPACE = '%20';
|
|
20464
20509
|
CaseFullAccessViewComponent.EMPTY_SPACE = ' ';
|
|
20465
|
-
CaseFullAccessViewComponent.ɵfac = function CaseFullAccessViewComponent_Factory(t) { return new (t || CaseFullAccessViewComponent)(i0.ɵɵdirectiveInject(i0.NgZone), i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(i1$1.Router), i0.ɵɵdirectiveInject(NavigationNotifierService), i0.ɵɵdirectiveInject(OrderService), i0.ɵɵdirectiveInject(ActivityPollingService), i0.ɵɵdirectiveInject(i1$
|
|
20510
|
+
CaseFullAccessViewComponent.ɵfac = function CaseFullAccessViewComponent_Factory(t) { return new (t || CaseFullAccessViewComponent)(i0.ɵɵdirectiveInject(i0.NgZone), i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(i1$1.Router), i0.ɵɵdirectiveInject(NavigationNotifierService), i0.ɵɵdirectiveInject(OrderService), i0.ɵɵdirectiveInject(ActivityPollingService), i0.ɵɵdirectiveInject(i1$5.MatDialog), i0.ɵɵdirectiveInject(AlertService), i0.ɵɵdirectiveInject(DraftService), i0.ɵɵdirectiveInject(ErrorNotifierService), i0.ɵɵdirectiveInject(ConvertHrefToRouterService), i0.ɵɵdirectiveInject(i1.Location)); };
|
|
20466
20511
|
CaseFullAccessViewComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseFullAccessViewComponent, selectors: [["ccd-case-full-access-view"]], viewQuery: function CaseFullAccessViewComponent_Query(rf, ctx) { if (rf & 1) {
|
|
20467
20512
|
i0.ɵɵviewQuery(_c0$a, 1);
|
|
20468
20513
|
} if (rf & 2) {
|
|
@@ -20511,7 +20556,7 @@ CaseFullAccessViewComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseFullAcces
|
|
|
20511
20556
|
templateUrl: './case-full-access-view.component.html',
|
|
20512
20557
|
styleUrls: ['./case-full-access-view.component.scss']
|
|
20513
20558
|
}]
|
|
20514
|
-
}], function () { return [{ type: i0.NgZone }, { type: i1$1.ActivatedRoute }, { type: i1$1.Router }, { type: NavigationNotifierService }, { type: OrderService }, { type: ActivityPollingService }, { type: i1$
|
|
20559
|
+
}], function () { return [{ type: i0.NgZone }, { type: i1$1.ActivatedRoute }, { type: i1$1.Router }, { type: NavigationNotifierService }, { type: OrderService }, { type: ActivityPollingService }, { type: i1$5.MatDialog }, { type: AlertService }, { type: DraftService }, { type: ErrorNotifierService }, { type: ConvertHrefToRouterService }, { type: i1.Location }]; }, { hasPrint: [{
|
|
20515
20560
|
type: Input
|
|
20516
20561
|
}], hasEventSelector: [{
|
|
20517
20562
|
type: Input
|
|
@@ -24316,7 +24361,7 @@ SearchResultComponent.ɵcmp = i0.ɵɵdefineComponent({ type: SearchResultCompone
|
|
|
24316
24361
|
i0.ɵɵproperty("ngIf", ctx.hasResults());
|
|
24317
24362
|
i0.ɵɵadvance(1);
|
|
24318
24363
|
i0.ɵɵproperty("ngIf", !(ctx.hasResults() || ctx.hasDrafts()));
|
|
24319
|
-
} }, directives: [i1.NgIf, i1.NgForOf, i1$1.RouterLinkWithHref, FieldReadComponent, LabelSubstitutorDirective, ActivityComponent, PaginationComponent], pipes: [i1.DecimalPipe, i1$
|
|
24364
|
+
} }, directives: [i1.NgIf, i1.NgForOf, i1$1.RouterLinkWithHref, FieldReadComponent, LabelSubstitutorDirective, ActivityComponent, PaginationComponent], pipes: [i1.DecimalPipe, i1$6.PaginatePipe, CaseReferencePipe, SortSearchResultPipe], styles: ["table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{vertical-align:top}table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{font-size:16px;word-wrap:break-word}table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{float:left}table[_ngcontent-%COMP%] .caseid-col[_ngcontent-%COMP%]{white-space:nowrap}.notification[_ngcontent-%COMP%]{text-align:center;padding:30px 0;margin-top:75px}a[_ngcontent-%COMP%]:hover{color:#005ea5}.search-result-reset-link[_ngcontent-%COMP%]{padding-right:15px;padding-left:15px}.search-result-column-header[_ngcontent-%COMP%]{width:unset;table-layout:normal}.search-result-column-header[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{display:table-cell;width:auto}@media screen and (max-width:379px){.search-result-column-header[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{display:block;float:right}}.search-result-column-label[_ngcontent-%COMP%]{font-size:16px;font-weight:700;word-wrap:break-word;cursor:pointer;padding-right:15px}.search-result-column-sort[_ngcontent-%COMP%]{font-size:16px}.sort-widget[_ngcontent-%COMP%]{cursor:pointer;text-decoration:none;color:#231f20}span.heading-medium[_ngcontent-%COMP%]{margin-top:-20px}.govuk-table__checkbox[_ngcontent-%COMP%]{vertical-align:middle;padding-left:3px}#search-result-heading__text[_ngcontent-%COMP%]:focus{outline:none}"] });
|
|
24320
24365
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SearchResultComponent, [{
|
|
24321
24366
|
type: Component,
|
|
24322
24367
|
args: [{
|