cat-documents-ng 0.5.1 → 0.5.11
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.
|
@@ -30,6 +30,7 @@ export declare class DocumentUploadComponent implements OnInit, OnChanges, OnDes
|
|
|
30
30
|
/** The context ID for the document upload operation */
|
|
31
31
|
contextId: string;
|
|
32
32
|
isDocumentSaveBtnClicked: boolean;
|
|
33
|
+
hasUnsavedChanges: boolean;
|
|
33
34
|
/** Whether to hide the form and show only upload functionality */
|
|
34
35
|
isFormHide: boolean;
|
|
35
36
|
/** Whether to hide the multi-attachment button */
|
|
@@ -43,6 +44,7 @@ export declare class DocumentUploadComponent implements OnInit, OnChanges, OnDes
|
|
|
43
44
|
/** Event emitted when files are uploaded (for form-hidden mode) */
|
|
44
45
|
onFilesUploaded: EventEmitter<UploadedFile[]>;
|
|
45
46
|
isSaveBtnDisabled: EventEmitter<boolean>;
|
|
47
|
+
hasUnsavedChangesChange: EventEmitter<boolean>;
|
|
46
48
|
/** Event emitted when a file is removed (for form-hidden mode) */
|
|
47
49
|
onFileRemoved: EventEmitter<{
|
|
48
50
|
file: File;
|
|
@@ -106,6 +108,7 @@ export declare class DocumentUploadComponent implements OnInit, OnChanges, OnDes
|
|
|
106
108
|
* Resets form selections, loads categories, and handles applicant loading.
|
|
107
109
|
*/
|
|
108
110
|
onAssignmentTypeChange(): void;
|
|
111
|
+
private checkForUnsavedChanges;
|
|
109
112
|
/**
|
|
110
113
|
* Handles changes in category selection.
|
|
111
114
|
* Resets document type and loads available document types if category is selected.
|
|
@@ -311,5 +314,5 @@ export declare class DocumentUploadComponent implements OnInit, OnChanges, OnDes
|
|
|
311
314
|
*/
|
|
312
315
|
ngOnDestroy(): void;
|
|
313
316
|
static ɵfac: i0.ɵɵFactoryDeclaration<DocumentUploadComponent, never>;
|
|
314
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DocumentUploadComponent, "lib-document-upload", never, { "contextId": { "alias": "contextId"; "required": false; }; "isDocumentSaveBtnClicked": { "alias": "isDocumentSaveBtnClicked"; "required": false; }; "isFormHide": { "alias": "isFormHide"; "required": false; }; "isMultiAttachmentHidden": { "alias": "isMultiAttachmentHidden"; "required": false; }; }, { "onFormValidationChange": "onFormValidationChange"; "onUploadSuccess": "onUploadSuccess"; "onFilesUploaded": "onFilesUploaded"; "isSaveBtnDisabled": "isSaveBtnDisabled"; "onFileRemoved": "onFileRemoved"; }, never, never, false, never>;
|
|
317
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DocumentUploadComponent, "lib-document-upload", never, { "contextId": { "alias": "contextId"; "required": false; }; "isDocumentSaveBtnClicked": { "alias": "isDocumentSaveBtnClicked"; "required": false; }; "isFormHide": { "alias": "isFormHide"; "required": false; }; "isMultiAttachmentHidden": { "alias": "isMultiAttachmentHidden"; "required": false; }; }, { "onFormValidationChange": "onFormValidationChange"; "onUploadSuccess": "onUploadSuccess"; "onFilesUploaded": "onFilesUploaded"; "isSaveBtnDisabled": "isSaveBtnDisabled"; "hasUnsavedChangesChange": "hasUnsavedChangesChange"; "onFileRemoved": "onFileRemoved"; }, never, never, false, never>;
|
|
315
318
|
}
|