cat-documents-ng 0.2.60 → 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.
@@ -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: ({
@@ -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 "@angular/common";
5
- import * as i4 from "primeng/table";
6
- import * as i5 from "primeng/button";
7
- import * as i6 from "primeng/ripple";
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 i3.CommonModule, typeof i4.TableModule, typeof i5.ButtonModule, typeof i6.RippleModule], [typeof i1.TablePrimaryComponent, typeof i2.HasPermissionDirective]>;
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
  }