cat-documents-ng 0.2.60 → 0.2.62
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 +1 -0
- package/Shared/shared.module.d.ts +7 -5
- package/fesm2022/cat-documents-ng.mjs +198 -44
- 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-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/state/document.query.d.ts +5 -0
- package/package.json +1 -1
- package/public-api.d.ts +5 -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
|
+
}
|
|
@@ -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
|
}
|