cat-documents-ng 0.2.58 → 0.2.61
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/Shared/components/confirmation-dialog/confirmation-dialog.component.d.ts +34 -0
- package/Shared/constant/SHARED.d.ts +20 -0
- package/Shared/shared.module.d.ts +7 -5
- package/fesm2022/cat-documents-ng.mjs +345 -114
- package/fesm2022/cat-documents-ng.mjs.map +1 -1
- package/lib/document/components/document-actions/document-actions.component.d.ts +2 -0
- package/lib/document/components/document-list/document-list.component.d.ts +7 -9
- package/lib/document/components/document-upload/document-upload.component.d.ts +7 -0
- package/lib/document/components/document-viewer/document-viewer.component.d.ts +3 -1
- package/lib/document/components/user-list/user-list.component.d.ts +8 -4
- package/lib/document/document.module.d.ts +3 -1
- package/lib/document/services/document-upload-business.service.d.ts +8 -2
- package/lib/document/services/document-upload-form.service.d.ts +8 -0
- package/lib/document/state/document.query.d.ts +5 -0
- package/package.json +1 -1
- package/public-api.d.ts +5 -0
- package/src/assets/config/api.config.json +20 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { ConfirmationService } from 'primeng/api';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export interface ConfirmationOptions {
|
|
4
|
+
message: string;
|
|
5
|
+
header?: string;
|
|
6
|
+
icon?: string;
|
|
7
|
+
acceptLabel?: string;
|
|
8
|
+
rejectLabel?: string;
|
|
9
|
+
acceptIcon?: string;
|
|
10
|
+
rejectIcon?: string;
|
|
11
|
+
acceptButtonClass?: string;
|
|
12
|
+
rejectButtonClass?: string;
|
|
13
|
+
}
|
|
14
|
+
export declare class ConfirmationDialogComponent {
|
|
15
|
+
private confirmationService;
|
|
16
|
+
confirmationOptions: ConfirmationOptions;
|
|
17
|
+
constructor(confirmationService: ConfirmationService);
|
|
18
|
+
/**
|
|
19
|
+
* Shows the confirmation dialog with the specified options
|
|
20
|
+
* @param options - Configuration options for the confirmation dialog
|
|
21
|
+
* @param acceptCallback - Function to execute when user accepts
|
|
22
|
+
* @param rejectCallback - Function to execute when user rejects
|
|
23
|
+
*/
|
|
24
|
+
confirm(options: Partial<ConfirmationOptions>, acceptCallback: () => void, rejectCallback?: () => void): void;
|
|
25
|
+
/**
|
|
26
|
+
* Shows a delete confirmation dialog
|
|
27
|
+
* @param itemName - Name of the item to be deleted
|
|
28
|
+
* @param acceptCallback - Function to execute when user accepts deletion
|
|
29
|
+
* @param rejectCallback - Function to execute when user rejects deletion
|
|
30
|
+
*/
|
|
31
|
+
confirmDelete(itemName: string, acceptCallback: () => void, rejectCallback?: () => void): void;
|
|
32
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmationDialogComponent, never>;
|
|
33
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ConfirmationDialogComponent, "app-confirmation-dialog", never, { "confirmationOptions": { "alias": "confirmationOptions"; "required": false; }; }, {}, never, never, false, never>;
|
|
34
|
+
}
|
|
@@ -226,6 +226,7 @@ export declare class SHARED {
|
|
|
226
226
|
static CATAGORIES: string;
|
|
227
227
|
static DOCUMENTS: string;
|
|
228
228
|
static UPLOAD_FAILED: string;
|
|
229
|
+
static DOCUMENT_DELETED_SUCCESSFULLY: string;
|
|
229
230
|
static Menu: {
|
|
230
231
|
label: string;
|
|
231
232
|
items: ({
|
|
@@ -338,6 +339,25 @@ export declare class SHARED {
|
|
|
338
339
|
static BUTTON_LABEL_REJECTED: string;
|
|
339
340
|
static BUTTON_LABEL_ACCEPT: string;
|
|
340
341
|
static BUTTON_LABEL_ACCEPTED: string;
|
|
342
|
+
static VALIDATION_NO_APPLICANT_SELECTED: string;
|
|
343
|
+
static VALIDATION_NO_APPLICANT_DETAIL: string;
|
|
344
|
+
static VALIDATION_NO_CATEGORY_SELECTED: string;
|
|
345
|
+
static VALIDATION_NO_CATEGORY_DETAIL: string;
|
|
346
|
+
static VALIDATION_NO_DOCUMENT_TYPE_SELECTED: string;
|
|
347
|
+
static VALIDATION_NO_DOCUMENT_TYPE_DETAIL: string;
|
|
348
|
+
static VALIDATION_NO_DOCUMENTS_UPLOADED: string;
|
|
349
|
+
static VALIDATION_NO_DOCUMENTS_DETAIL: string;
|
|
350
|
+
static VALIDATION_FORM_INCOMPLETE: string;
|
|
351
|
+
static VALIDATION_FORM_INCOMPLETE_DETAIL: string;
|
|
352
|
+
static VALIDATION_MISSING_REQUIRED_DATA: string;
|
|
353
|
+
static VALIDATION_SELECT_ASSIGNMENT_TYPE: string;
|
|
354
|
+
static VALIDATION_SELECT_CATEGORY: string;
|
|
355
|
+
static VALIDATION_SELECT_DOCUMENT_TYPE: string;
|
|
356
|
+
static VALIDATION_UPLOAD_AT_LEAST_ONE: string;
|
|
357
|
+
static VALIDATION_WAIT_FOR_UPLOAD: string;
|
|
358
|
+
static VALIDATION_SELECT_APPLICANT: string;
|
|
359
|
+
static VALIDATION_ALL_FIELDS_COMPLETED: string;
|
|
360
|
+
static VALIDATION_OPTIONS_NOT_LOADED: string;
|
|
341
361
|
}
|
|
342
362
|
/**
|
|
343
363
|
* `DUMMYDOCUMENTLIST` is a mock list of document objects used for testing and development purposes.
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./components/table-primary/table-primary.component";
|
|
3
3
|
import * as i2 from "../lib/document/directives/permission.directive";
|
|
4
|
-
import * as i3 from "
|
|
5
|
-
import * as i4 from "
|
|
6
|
-
import * as i5 from "primeng/
|
|
7
|
-
import * as i6 from "primeng/
|
|
4
|
+
import * as i3 from "./components/confirmation-dialog/confirmation-dialog.component";
|
|
5
|
+
import * as i4 from "@angular/common";
|
|
6
|
+
import * as i5 from "primeng/table";
|
|
7
|
+
import * as i6 from "primeng/button";
|
|
8
|
+
import * as i7 from "primeng/ripple";
|
|
9
|
+
import * as i8 from "primeng/confirmdialog";
|
|
8
10
|
export declare class SharedModule {
|
|
9
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<SharedModule, never>;
|
|
10
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SharedModule, [typeof i1.TablePrimaryComponent, typeof i2.HasPermissionDirective], [typeof
|
|
12
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SharedModule, [typeof i1.TablePrimaryComponent, typeof i2.HasPermissionDirective, typeof i3.ConfirmationDialogComponent], [typeof i4.CommonModule, typeof i5.TableModule, typeof i6.ButtonModule, typeof i7.RippleModule, typeof i8.ConfirmDialogModule], [typeof i1.TablePrimaryComponent, typeof i2.HasPermissionDirective, typeof i3.ConfirmationDialogComponent]>;
|
|
11
13
|
static ɵinj: i0.ɵɵInjectorDeclaration<SharedModule>;
|
|
12
14
|
}
|