@hmcts/ccd-case-ui-toolkit 7.0.21-media-viewer-update → 7.0.21-upload-timestamp
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/esm2020/lib/shared/components/palette/document/write-document-field.component.mjs +14 -1
- package/esm2020/lib/shared/domain/document/document-data.model.mjs +1 -1
- package/fesm2015/hmcts-ccd-case-ui-toolkit.mjs +7 -0
- package/fesm2015/hmcts-ccd-case-ui-toolkit.mjs.map +1 -1
- package/fesm2020/hmcts-ccd-case-ui-toolkit.mjs +13 -0
- package/fesm2020/hmcts-ccd-case-ui-toolkit.mjs.map +1 -1
- package/lib/shared/components/palette/document/write-document-field.component.d.ts +1 -0
- package/lib/shared/components/palette/document/write-document-field.component.d.ts.map +1 -1
- package/lib/shared/domain/document/document-data.model.d.ts +1 -0
- package/lib/shared/domain/document/document-data.model.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -13495,6 +13495,12 @@ class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
|
|
|
13495
13495
|
document_binary_url: new FormControl(document.document_binary_url, Validators.required),
|
|
13496
13496
|
document_filename: new FormControl(document.document_filename, Validators.required)
|
|
13497
13497
|
};
|
|
13498
|
+
if (document.upload_timestamp && (typeof document.upload_timestamp === 'string')) {
|
|
13499
|
+
documentFormGroup = {
|
|
13500
|
+
...documentFormGroup,
|
|
13501
|
+
...{ upload_timestamp: new FormControl(document.upload_timestamp) }
|
|
13502
|
+
};
|
|
13503
|
+
}
|
|
13498
13504
|
documentFormGroup = this.secureModeOn ? {
|
|
13499
13505
|
...documentFormGroup,
|
|
13500
13506
|
...{ document_hash: new FormControl(document.document_hash) }
|
|
@@ -13507,6 +13513,12 @@ class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
|
|
|
13507
13513
|
document_binary_url: new FormControl(document.document_binary_url),
|
|
13508
13514
|
document_filename: new FormControl(document.document_filename)
|
|
13509
13515
|
};
|
|
13516
|
+
if (document.upload_timestamp && (typeof document.upload_timestamp === 'string')) {
|
|
13517
|
+
documentFormGroup = {
|
|
13518
|
+
...documentFormGroup,
|
|
13519
|
+
...{ upload_timestamp: new FormControl(document.upload_timestamp) }
|
|
13520
|
+
};
|
|
13521
|
+
}
|
|
13510
13522
|
documentFormGroup = this.secureModeOn ? {
|
|
13511
13523
|
...documentFormGroup,
|
|
13512
13524
|
...{ document_hash: new FormControl(document.document_hash) }
|
|
@@ -13582,6 +13594,7 @@ WriteDocumentFieldComponent.DOCUMENT_URL = 'document_url';
|
|
|
13582
13594
|
WriteDocumentFieldComponent.DOCUMENT_BINARY_URL = 'document_binary_url';
|
|
13583
13595
|
WriteDocumentFieldComponent.DOCUMENT_FILENAME = 'document_filename';
|
|
13584
13596
|
WriteDocumentFieldComponent.DOCUMENT_HASH = 'document_hash';
|
|
13597
|
+
WriteDocumentFieldComponent.UPLOAD_TIMESTAMP = 'upload_timestamp';
|
|
13585
13598
|
WriteDocumentFieldComponent.UPLOAD_ERROR_FILE_REQUIRED = 'File required';
|
|
13586
13599
|
WriteDocumentFieldComponent.UPLOAD_ERROR_NOT_AVAILABLE = 'Document upload facility is not available at the moment';
|
|
13587
13600
|
WriteDocumentFieldComponent.UPLOAD_WAITING_FILE_STATUS = 'Uploading...';
|