cat-documents-ng 0.3.4 → 0.3.8
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 +15 -8
- package/Shared/constant/URLS.d.ts +1 -0
- package/Shared/shared.module.d.ts +2 -1
- package/fesm2022/cat-documents-ng.mjs +265 -231
- package/fesm2022/cat-documents-ng.mjs.map +1 -1
- package/lib/document/components/document-actions/document-actions.component.d.ts +3 -3
- package/lib/document/components/sidebar/sidebar.component.d.ts +29 -31
- package/lib/document/models/document-list-response.model.d.ts +1 -0
- package/lib/document/services/document-table-builder.service.d.ts +7 -0
- package/package.json +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ConfirmationService } from 'primeng/api';
|
|
1
2
|
import * as i0 from "@angular/core";
|
|
2
3
|
export interface ConfirmationOptions {
|
|
3
4
|
message: string;
|
|
@@ -11,11 +12,9 @@ export interface ConfirmationOptions {
|
|
|
11
12
|
rejectButtonClass?: string;
|
|
12
13
|
}
|
|
13
14
|
export declare class ConfirmationDialogComponent {
|
|
15
|
+
private confirmationService;
|
|
14
16
|
confirmationOptions: ConfirmationOptions;
|
|
15
|
-
|
|
16
|
-
currentOptions: ConfirmationOptions;
|
|
17
|
-
private acceptCallback?;
|
|
18
|
-
private rejectCallback?;
|
|
17
|
+
constructor(confirmationService: ConfirmationService);
|
|
19
18
|
/**
|
|
20
19
|
* Shows the confirmation dialog with the specified options
|
|
21
20
|
* @param options - Configuration options for the confirmation dialog
|
|
@@ -24,14 +23,22 @@ export declare class ConfirmationDialogComponent {
|
|
|
24
23
|
*/
|
|
25
24
|
confirm(options: Partial<ConfirmationOptions>, acceptCallback: () => void, rejectCallback?: () => void): void;
|
|
26
25
|
/**
|
|
27
|
-
*
|
|
26
|
+
* Static method to show a confirmation dialog (for components that don't want to inject this component)
|
|
27
|
+
* @param confirmationService - The ConfirmationService instance
|
|
28
|
+
* @param options - Configuration options for the confirmation dialog
|
|
29
|
+
* @param acceptCallback - Function to execute when user accepts
|
|
30
|
+
* @param rejectCallback - Function to execute when user rejects
|
|
31
|
+
*/
|
|
32
|
+
static confirm(confirmationService: ConfirmationService, options: Partial<ConfirmationOptions>, acceptCallback: () => void, rejectCallback?: () => void): void;
|
|
33
|
+
/**
|
|
34
|
+
* Static method to show a delete confirmation dialog
|
|
35
|
+
* @param confirmationService - The ConfirmationService instance
|
|
28
36
|
* @param itemName - Name of the item to be deleted
|
|
29
37
|
* @param acceptCallback - Function to execute when user accepts deletion
|
|
30
38
|
* @param rejectCallback - Function to execute when user rejects deletion
|
|
31
39
|
*/
|
|
32
|
-
confirmDelete(itemName: string, acceptCallback: () => void, rejectCallback?: () => void): void;
|
|
33
|
-
onAccept(): void;
|
|
34
|
-
onReject(): void;
|
|
40
|
+
static confirmDelete(confirmationService: ConfirmationService, itemName: string, acceptCallback: () => void, rejectCallback?: () => void): void;
|
|
35
41
|
static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmationDialogComponent, never>;
|
|
36
42
|
static ɵcmp: i0.ɵɵComponentDeclaration<ConfirmationDialogComponent, "app-confirmation-dialog", never, { "confirmationOptions": { "alias": "confirmationOptions"; "required": false; }; }, {}, never, never, false, never>;
|
|
43
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ConfirmationDialogComponent>;
|
|
37
44
|
}
|
|
@@ -53,6 +53,7 @@ export declare class URLS {
|
|
|
53
53
|
* @type {string}
|
|
54
54
|
*/
|
|
55
55
|
static DOCUMENT_TYPES: string;
|
|
56
|
+
static ALIAS_NAME: string;
|
|
56
57
|
/**
|
|
57
58
|
* The URL endpoint for getting categories by source (Applicant/Application).
|
|
58
59
|
* Used to fetch document categories based on the selected source.
|
|
@@ -6,8 +6,9 @@ import * as i4 from "@angular/common";
|
|
|
6
6
|
import * as i5 from "primeng/table";
|
|
7
7
|
import * as i6 from "primeng/button";
|
|
8
8
|
import * as i7 from "primeng/ripple";
|
|
9
|
+
import * as i8 from "primeng/confirmdialog";
|
|
9
10
|
export declare class SharedModule {
|
|
10
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<SharedModule, never>;
|
|
11
|
-
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 i1.TablePrimaryComponent, typeof i2.HasPermissionDirective, typeof i3.ConfirmationDialogComponent]>;
|
|
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, typeof i8.ConfirmDialogModule]>;
|
|
12
13
|
static ɵinj: i0.ɵɵInjectorDeclaration<SharedModule>;
|
|
13
14
|
}
|