ng-prime-tools 1.0.26 → 1.0.27

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.
Files changed (28) hide show
  1. package/README.md +5 -0
  2. package/esm2022/lib/ng-prime-tools.module.mjs +18 -5
  3. package/esm2022/lib/pt-dialog/pt-dialog.component.mjs +15 -28
  4. package/esm2022/lib/pt-dialog/pt-dialog.module.mjs +4 -19
  5. package/esm2022/lib/pt-toast-notifier/index.mjs +2 -0
  6. package/esm2022/lib/pt-toast-notifier/pt-toast-notifier.component.mjs +29 -0
  7. package/esm2022/lib/pt-toast-notifier/pt-toast-notifier.module.mjs +21 -0
  8. package/esm2022/lib/pt-toast-notifier/public-api.mjs +3 -0
  9. package/esm2022/public-api.mjs +3 -1
  10. package/fesm2022/ng-prime-tools.mjs +76 -50
  11. package/fesm2022/ng-prime-tools.mjs.map +1 -1
  12. package/lib/ng-prime-tools.module.d.ts +2 -1
  13. package/lib/ng-prime-tools.module.d.ts.map +1 -1
  14. package/lib/pt-dialog/pt-dialog.component.d.ts +0 -1
  15. package/lib/pt-dialog/pt-dialog.component.d.ts.map +1 -1
  16. package/lib/pt-dialog/pt-dialog.module.d.ts +2 -3
  17. package/lib/pt-dialog/pt-dialog.module.d.ts.map +1 -1
  18. package/lib/pt-toast-notifier/index.d.ts +2 -0
  19. package/lib/pt-toast-notifier/index.d.ts.map +1 -0
  20. package/lib/pt-toast-notifier/pt-toast-notifier.component.d.ts +12 -0
  21. package/lib/pt-toast-notifier/pt-toast-notifier.component.d.ts.map +1 -0
  22. package/lib/pt-toast-notifier/pt-toast-notifier.module.d.ts +10 -0
  23. package/lib/pt-toast-notifier/pt-toast-notifier.module.d.ts.map +1 -0
  24. package/lib/pt-toast-notifier/public-api.d.ts +3 -0
  25. package/lib/pt-toast-notifier/public-api.d.ts.map +1 -0
  26. package/package.json +1 -1
  27. package/public-api.d.ts +1 -0
  28. package/public-api.d.ts.map +1 -1
@@ -47,11 +47,11 @@ import { filter } from 'rxjs/operators';
47
47
  import { BehaviorSubject } from 'rxjs';
48
48
  import * as i3$6 from 'primeng/breadcrumb';
49
49
  import { BreadcrumbModule } from 'primeng/breadcrumb';
50
- import * as i3$7 from 'primeng/toast';
51
- import { ToastModule } from 'primeng/toast';
52
- import * as i4$2 from 'primeng/confirmdialog';
50
+ import * as i3$7 from 'primeng/confirmdialog';
53
51
  import { ConfirmDialogModule } from 'primeng/confirmdialog';
54
52
  import { DialogModule } from 'primeng/dialog';
53
+ import * as i2$2 from 'primeng/toast';
54
+ import { ToastModule } from 'primeng/toast';
55
55
 
56
56
  /**
57
57
  * Calculates the width required for a column based on the header text (column title).
@@ -3575,18 +3575,18 @@ class PTDialogComponent {
3575
3575
  }
3576
3576
  }
3577
3577
  applyDialogStyle() {
3578
- const dialogStyle = this.dialogConfig.dialogStyle || SeverityEnum.INFO; // ✅ Ensure dialogStyle is always defined
3579
- const styleConfig = DIALOG_STYLES[dialogStyle] || {}; // ✅ Get the styles for the selected dialogStyle
3578
+ const dialogStyle = this.dialogConfig.dialogStyle || SeverityEnum.INFO;
3579
+ const styleConfig = DIALOG_STYLES[dialogStyle] || {};
3580
3580
  this.dialogConfig = {
3581
- ...DEFAULT_DIALOG_CONFIG, // ✅ Start with the default values
3582
- ...styleConfig, // ✅ Override with the selected dialogStyle values
3581
+ ...DEFAULT_DIALOG_CONFIG,
3582
+ ...styleConfig,
3583
3583
  confirmButtonConfig: {
3584
- ...DEFAULT_DIALOG_CONFIG.confirmButtonConfig, // ✅ Start with default confirm button styles
3585
- ...styleConfig.confirmButtonConfig, // ✅ Override with the confirm button styles for the selected dialogStyle
3584
+ ...DEFAULT_DIALOG_CONFIG.confirmButtonConfig,
3585
+ ...styleConfig.confirmButtonConfig,
3586
3586
  },
3587
3587
  cancelButtonConfig: {
3588
- ...DEFAULT_DIALOG_CONFIG.cancelButtonConfig, // ✅ Start with default cancel button styles
3589
- ...styleConfig.cancelButtonConfig, // ✅ Override with the cancel button styles for the selected dialogStyle
3588
+ ...DEFAULT_DIALOG_CONFIG.cancelButtonConfig,
3589
+ ...styleConfig.cancelButtonConfig,
3590
3590
  },
3591
3591
  };
3592
3592
  }
@@ -3603,14 +3603,12 @@ class PTDialogComponent {
3603
3603
  accept: () => {
3604
3604
  this.confirm.emit();
3605
3605
  if (this.dialogConfig.toastOnConfirm) {
3606
- this.showToast(this.dialogConfig.toastOnConfirm);
3607
3606
  }
3608
3607
  },
3609
3608
  reject: (type) => {
3610
3609
  this.cancel.emit();
3611
3610
  if (type === ConfirmEventType.REJECT &&
3612
3611
  this.dialogConfig.toastOnCancel) {
3613
- this.showToast(this.dialogConfig.toastOnCancel);
3614
3612
  }
3615
3613
  },
3616
3614
  });
@@ -3623,18 +3621,8 @@ class PTDialogComponent {
3623
3621
  }
3624
3622
  }, 0);
3625
3623
  }
3626
- showToast(toast) {
3627
- if (toast) {
3628
- this.messageService.add({
3629
- severity: toast.severity,
3630
- summary: toast.summary,
3631
- detail: toast.detail,
3632
- life: toast.life || 3000,
3633
- });
3634
- }
3635
- }
3636
3624
  getButtonStyle(buttonConfig, isConfirm = false) {
3637
- let styleClass = buttonConfig?.styleClass ?? 'p-button-sm'; // ✅ Default button size
3625
+ let styleClass = buttonConfig?.styleClass ?? 'p-button-sm';
3638
3626
  // ✅ Apply width dynamically if provided, otherwise default to 100%
3639
3627
  const buttonWidth = buttonConfig?.width ?? '100%';
3640
3628
  // ✅ Set default severity: SUCCESS for confirm, SECONDARY for cancel
@@ -3676,8 +3664,8 @@ class PTDialogComponent {
3676
3664
  }
3677
3665
  getDialogHeaderStyle() {
3678
3666
  const header = this.dialogConfig.header;
3679
- const dialogStyle = this.dialogConfig.dialogStyle ?? SeverityEnum.INFO; // ✅ Ensure dialogStyle is always defined
3680
- const styleHeader = DIALOG_STYLES[dialogStyle]?.header; // ✅ Store the style header separately
3667
+ const dialogStyle = this.dialogConfig.dialogStyle ?? SeverityEnum.INFO;
3668
+ const styleHeader = DIALOG_STYLES[dialogStyle]?.header;
3681
3669
  return typeof header === 'object' && header !== null
3682
3670
  ? {
3683
3671
  color: header.color ||
@@ -3749,11 +3737,11 @@ class PTDialogComponent {
3749
3737
  };
3750
3738
  }
3751
3739
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: PTDialogComponent, deps: [{ token: i1$1.ConfirmationService }, { token: i1$1.MessageService }, { token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
3752
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.11", type: PTDialogComponent, selector: "pt-dialog", inputs: { dialogConfig: "dialogConfig" }, outputs: { confirm: "confirm", cancel: "cancel" }, providers: [ConfirmationService, MessageService], usesOnChanges: true, ngImport: i0, template: "<div class=\"pt-dialog\">\n <p-toast></p-toast>\n <p-confirmDialog>\n <!-- Header with Icon and Title aligned horizontally -->\n <ng-template pTemplate=\"header\">\n <div class=\"popup-header bordered-section\">\n <i [class]=\"getDialogIconClass()\" [ngStyle]=\"getDialogIconStyle()\"></i>\n <span class=\"popup-title\" [ngStyle]=\"getDialogHeaderStyle()\">\n {{ getDialogHeaderText() }}\n </span>\n </div>\n </ng-template>\n\n <!-- Message Content with Divider -->\n <ng-template pTemplate=\"message\" let-message>\n <div\n class=\"popup-content bordered-section\"\n [ngStyle]=\"getDialogContentStyle()\"\n >\n <p>{{ getDialogContentText() }}</p>\n </div>\n </ng-template>\n </p-confirmDialog>\n</div>\n", styles: ["::ng-deep .pt-dialog .p-dialog .p-dialog-header{padding-bottom:0}::ng-deep .pt-dialog .p-dialog .p-dialog-content{padding:0}::ng-deep .pt-dialog .full-width-button{width:100%;display:block;text-align:center}::ng-deep .pt-dialog .p-dialog-footer{display:flex;justify-content:center;gap:10px;width:100%;padding:10px}::ng-deep .pt-dialog .p-confirm-dialog-accept,::ng-deep .pt-dialog .p-confirm-dialog-reject{flex:1;max-width:50%;text-align:center;display:flex;justify-content:center;align-items:center;height:40px}::ng-deep .pt-dialog .p-confirm-dialog-accept i,::ng-deep .pt-dialog .p-confirm-dialog-reject i{margin-right:5px}::ng-deep .pt-dialog .p-confirm-dialog-accept .p-button-label,::ng-deep .pt-dialog .p-confirm-dialog-reject .p-button-label{font-weight:700;flex-grow:1;text-align:center}.pt-dialog .popup-header{display:flex;align-items:center;gap:10px;font-size:1.2rem;font-weight:700;padding-bottom:10px;width:100%}.pt-dialog .popup-title{color:#333;font-size:1.2rem}.pt-dialog .bordered-section{width:100%;border-bottom:1px solid rgba(0,0,0,.2);padding-bottom:10px;margin-bottom:10px}.pt-dialog .popup-content{display:flex;justify-content:center;text-align:center;padding:15px;width:100%}\n"], dependencies: [{ kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i1$1.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "component", type: i3$7.Toast, selector: "p-toast", inputs: ["key", "autoZIndex", "baseZIndex", "life", "style", "styleClass", "position", "preventOpenDuplicates", "preventDuplicates", "showTransformOptions", "hideTransformOptions", "showTransitionOptions", "hideTransitionOptions", "breakpoints"], outputs: ["onClose"] }, { kind: "component", type: i4$2.ConfirmDialog, selector: "p-confirmDialog", inputs: ["header", "icon", "message", "style", "styleClass", "maskStyleClass", "acceptIcon", "acceptLabel", "closeAriaLabel", "acceptAriaLabel", "acceptVisible", "rejectIcon", "rejectLabel", "rejectAriaLabel", "rejectVisible", "acceptButtonStyleClass", "rejectButtonStyleClass", "closeOnEscape", "dismissableMask", "blockScroll", "rtl", "closable", "appendTo", "key", "autoZIndex", "baseZIndex", "transitionOptions", "focusTrap", "defaultFocus", "breakpoints", "visible", "position"], outputs: ["onHide"] }] }); }
3740
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.11", type: PTDialogComponent, selector: "pt-dialog", inputs: { dialogConfig: "dialogConfig" }, outputs: { confirm: "confirm", cancel: "cancel" }, providers: [ConfirmationService, MessageService], usesOnChanges: true, ngImport: i0, template: "<div class=\"pt-dialog\">\n <p-confirmDialog>\n <!-- Header with Icon and Title aligned horizontally -->\n <ng-template pTemplate=\"header\">\n <div class=\"popup-header bordered-section\">\n <i [class]=\"getDialogIconClass()\" [ngStyle]=\"getDialogIconStyle()\"></i>\n <span class=\"popup-title\" [ngStyle]=\"getDialogHeaderStyle()\">\n {{ getDialogHeaderText() }}\n </span>\n </div>\n </ng-template>\n\n <!-- Message Content with Divider -->\n <ng-template pTemplate=\"message\" let-message>\n <div\n class=\"popup-content bordered-section\"\n [ngStyle]=\"getDialogContentStyle()\"\n >\n <p>{{ getDialogContentText() }}</p>\n </div>\n </ng-template>\n </p-confirmDialog>\n</div>\n", styles: ["::ng-deep .pt-dialog .p-dialog .p-dialog-header{padding-bottom:0}::ng-deep .pt-dialog .p-dialog .p-dialog-content{padding:0}::ng-deep .pt-dialog .full-width-button{width:100%;display:block;text-align:center}::ng-deep .pt-dialog .p-dialog-footer{display:flex;justify-content:center;gap:10px;width:100%;padding:10px}::ng-deep .pt-dialog .p-confirm-dialog-accept,::ng-deep .pt-dialog .p-confirm-dialog-reject{flex:1;max-width:50%;text-align:center;display:flex;justify-content:center;align-items:center;height:40px}::ng-deep .pt-dialog .p-confirm-dialog-accept i,::ng-deep .pt-dialog .p-confirm-dialog-reject i{margin-right:5px}::ng-deep .pt-dialog .p-confirm-dialog-accept .p-button-label,::ng-deep .pt-dialog .p-confirm-dialog-reject .p-button-label{font-weight:700;flex-grow:1;text-align:center}.pt-dialog .popup-header{display:flex;align-items:center;gap:10px;font-size:1.2rem;font-weight:700;padding-bottom:10px;width:100%}.pt-dialog .popup-title{color:#333;font-size:1.2rem}.pt-dialog .bordered-section{width:100%;border-bottom:1px solid rgba(0,0,0,.2);padding-bottom:10px;margin-bottom:10px}.pt-dialog .popup-content{display:flex;justify-content:center;text-align:center;padding:15px;width:100%}\n"], dependencies: [{ kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i1$1.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "component", type: i3$7.ConfirmDialog, selector: "p-confirmDialog", inputs: ["header", "icon", "message", "style", "styleClass", "maskStyleClass", "acceptIcon", "acceptLabel", "closeAriaLabel", "acceptAriaLabel", "acceptVisible", "rejectIcon", "rejectLabel", "rejectAriaLabel", "rejectVisible", "acceptButtonStyleClass", "rejectButtonStyleClass", "closeOnEscape", "dismissableMask", "blockScroll", "rtl", "closable", "appendTo", "key", "autoZIndex", "baseZIndex", "transitionOptions", "focusTrap", "defaultFocus", "breakpoints", "visible", "position"], outputs: ["onHide"] }] }); }
3753
3741
  }
3754
3742
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: PTDialogComponent, decorators: [{
3755
3743
  type: Component,
3756
- args: [{ selector: 'pt-dialog', providers: [ConfirmationService, MessageService], template: "<div class=\"pt-dialog\">\n <p-toast></p-toast>\n <p-confirmDialog>\n <!-- Header with Icon and Title aligned horizontally -->\n <ng-template pTemplate=\"header\">\n <div class=\"popup-header bordered-section\">\n <i [class]=\"getDialogIconClass()\" [ngStyle]=\"getDialogIconStyle()\"></i>\n <span class=\"popup-title\" [ngStyle]=\"getDialogHeaderStyle()\">\n {{ getDialogHeaderText() }}\n </span>\n </div>\n </ng-template>\n\n <!-- Message Content with Divider -->\n <ng-template pTemplate=\"message\" let-message>\n <div\n class=\"popup-content bordered-section\"\n [ngStyle]=\"getDialogContentStyle()\"\n >\n <p>{{ getDialogContentText() }}</p>\n </div>\n </ng-template>\n </p-confirmDialog>\n</div>\n", styles: ["::ng-deep .pt-dialog .p-dialog .p-dialog-header{padding-bottom:0}::ng-deep .pt-dialog .p-dialog .p-dialog-content{padding:0}::ng-deep .pt-dialog .full-width-button{width:100%;display:block;text-align:center}::ng-deep .pt-dialog .p-dialog-footer{display:flex;justify-content:center;gap:10px;width:100%;padding:10px}::ng-deep .pt-dialog .p-confirm-dialog-accept,::ng-deep .pt-dialog .p-confirm-dialog-reject{flex:1;max-width:50%;text-align:center;display:flex;justify-content:center;align-items:center;height:40px}::ng-deep .pt-dialog .p-confirm-dialog-accept i,::ng-deep .pt-dialog .p-confirm-dialog-reject i{margin-right:5px}::ng-deep .pt-dialog .p-confirm-dialog-accept .p-button-label,::ng-deep .pt-dialog .p-confirm-dialog-reject .p-button-label{font-weight:700;flex-grow:1;text-align:center}.pt-dialog .popup-header{display:flex;align-items:center;gap:10px;font-size:1.2rem;font-weight:700;padding-bottom:10px;width:100%}.pt-dialog .popup-title{color:#333;font-size:1.2rem}.pt-dialog .bordered-section{width:100%;border-bottom:1px solid rgba(0,0,0,.2);padding-bottom:10px;margin-bottom:10px}.pt-dialog .popup-content{display:flex;justify-content:center;text-align:center;padding:15px;width:100%}\n"] }]
3744
+ args: [{ selector: 'pt-dialog', providers: [ConfirmationService, MessageService], template: "<div class=\"pt-dialog\">\n <p-confirmDialog>\n <!-- Header with Icon and Title aligned horizontally -->\n <ng-template pTemplate=\"header\">\n <div class=\"popup-header bordered-section\">\n <i [class]=\"getDialogIconClass()\" [ngStyle]=\"getDialogIconStyle()\"></i>\n <span class=\"popup-title\" [ngStyle]=\"getDialogHeaderStyle()\">\n {{ getDialogHeaderText() }}\n </span>\n </div>\n </ng-template>\n\n <!-- Message Content with Divider -->\n <ng-template pTemplate=\"message\" let-message>\n <div\n class=\"popup-content bordered-section\"\n [ngStyle]=\"getDialogContentStyle()\"\n >\n <p>{{ getDialogContentText() }}</p>\n </div>\n </ng-template>\n </p-confirmDialog>\n</div>\n", styles: ["::ng-deep .pt-dialog .p-dialog .p-dialog-header{padding-bottom:0}::ng-deep .pt-dialog .p-dialog .p-dialog-content{padding:0}::ng-deep .pt-dialog .full-width-button{width:100%;display:block;text-align:center}::ng-deep .pt-dialog .p-dialog-footer{display:flex;justify-content:center;gap:10px;width:100%;padding:10px}::ng-deep .pt-dialog .p-confirm-dialog-accept,::ng-deep .pt-dialog .p-confirm-dialog-reject{flex:1;max-width:50%;text-align:center;display:flex;justify-content:center;align-items:center;height:40px}::ng-deep .pt-dialog .p-confirm-dialog-accept i,::ng-deep .pt-dialog .p-confirm-dialog-reject i{margin-right:5px}::ng-deep .pt-dialog .p-confirm-dialog-accept .p-button-label,::ng-deep .pt-dialog .p-confirm-dialog-reject .p-button-label{font-weight:700;flex-grow:1;text-align:center}.pt-dialog .popup-header{display:flex;align-items:center;gap:10px;font-size:1.2rem;font-weight:700;padding-bottom:10px;width:100%}.pt-dialog .popup-title{color:#333;font-size:1.2rem}.pt-dialog .bordered-section{width:100%;border-bottom:1px solid rgba(0,0,0,.2);padding-bottom:10px;margin-bottom:10px}.pt-dialog .popup-content{display:flex;justify-content:center;text-align:center;padding:15px;width:100%}\n"] }]
3757
3745
  }], ctorParameters: () => [{ type: i1$1.ConfirmationService }, { type: i1$1.MessageService }, { type: i0.Renderer2 }, { type: i0.ElementRef }], propDecorators: { dialogConfig: [{
3758
3746
  type: Input
3759
3747
  }], confirm: [{
@@ -3764,32 +3752,58 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImpo
3764
3752
 
3765
3753
  class PTDialogModule {
3766
3754
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: PTDialogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
3767
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.11", ngImport: i0, type: PTDialogModule, declarations: [PTDialogComponent], imports: [CommonModule,
3768
- DialogModule,
3769
- PTButtonModule,
3770
- ToastModule,
3771
- ConfirmDialogModule], exports: [PTDialogComponent] }); }
3772
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: PTDialogModule, imports: [CommonModule,
3773
- DialogModule,
3774
- PTButtonModule,
3775
- ToastModule,
3776
- ConfirmDialogModule] }); }
3755
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.11", ngImport: i0, type: PTDialogModule, declarations: [PTDialogComponent], imports: [CommonModule, DialogModule, PTButtonModule, ConfirmDialogModule], exports: [PTDialogComponent] }); }
3756
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: PTDialogModule, imports: [CommonModule, DialogModule, PTButtonModule, ConfirmDialogModule] }); }
3777
3757
  }
3778
3758
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: PTDialogModule, decorators: [{
3779
3759
  type: NgModule,
3780
3760
  args: [{
3781
3761
  declarations: [PTDialogComponent],
3782
- imports: [
3783
- CommonModule,
3784
- DialogModule,
3785
- PTButtonModule,
3786
- ToastModule,
3787
- ConfirmDialogModule,
3788
- ],
3762
+ imports: [CommonModule, DialogModule, PTButtonModule, ConfirmDialogModule],
3789
3763
  exports: [PTDialogComponent],
3790
3764
  }]
3791
3765
  }] });
3792
3766
 
3767
+ class PTToastNotifierComponent {
3768
+ constructor(messageService) {
3769
+ this.messageService = messageService;
3770
+ }
3771
+ show(toast) {
3772
+ if (toast) {
3773
+ this.messageService.add({
3774
+ severity: toast.severity,
3775
+ summary: toast.summary,
3776
+ detail: toast.detail,
3777
+ life: toast.life || 3000,
3778
+ });
3779
+ }
3780
+ }
3781
+ clear() {
3782
+ this.messageService.clear();
3783
+ }
3784
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: PTToastNotifierComponent, deps: [{ token: i1$1.MessageService }], target: i0.ɵɵFactoryTarget.Component }); }
3785
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.11", type: PTToastNotifierComponent, selector: "pt-toast-notifier", ngImport: i0, template: "<p-toast position=\"top-right\"></p-toast>\n", dependencies: [{ kind: "component", type: i2$2.Toast, selector: "p-toast", inputs: ["key", "autoZIndex", "baseZIndex", "life", "style", "styleClass", "position", "preventOpenDuplicates", "preventDuplicates", "showTransformOptions", "hideTransformOptions", "showTransitionOptions", "hideTransitionOptions", "breakpoints"], outputs: ["onClose"] }] }); }
3786
+ }
3787
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: PTToastNotifierComponent, decorators: [{
3788
+ type: Component,
3789
+ args: [{ selector: 'pt-toast-notifier', template: "<p-toast position=\"top-right\"></p-toast>\n" }]
3790
+ }], ctorParameters: () => [{ type: i1$1.MessageService }] });
3791
+
3792
+ class PTToastNotifierModule {
3793
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: PTToastNotifierModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
3794
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.11", ngImport: i0, type: PTToastNotifierModule, declarations: [PTToastNotifierComponent], imports: [CommonModule, ToastModule], exports: [PTToastNotifierComponent] }); }
3795
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: PTToastNotifierModule, providers: [MessageService], imports: [CommonModule, ToastModule] }); }
3796
+ }
3797
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: PTToastNotifierModule, decorators: [{
3798
+ type: NgModule,
3799
+ args: [{
3800
+ declarations: [PTToastNotifierComponent],
3801
+ imports: [CommonModule, ToastModule],
3802
+ exports: [PTToastNotifierComponent],
3803
+ providers: [MessageService],
3804
+ }]
3805
+ }] });
3806
+
3793
3807
  class NgPrimeToolsModule {
3794
3808
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: NgPrimeToolsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
3795
3809
  static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.11", ngImport: i0, type: NgPrimeToolsModule, imports: [CommonModule,
@@ -3829,7 +3843,9 @@ class NgPrimeToolsModule {
3829
3843
  // Button
3830
3844
  PTButtonModule,
3831
3845
  // Dialog
3832
- PTDialogModule], exports: [PTAdvancedPrimeTableModule,
3846
+ PTDialogModule,
3847
+ // Toasts
3848
+ PTToastNotifierModule], exports: [PTAdvancedPrimeTableModule,
3833
3849
  MultiSearchCriteriaModule,
3834
3850
  // Inputs
3835
3851
  PTCheckBoxInputModule,
@@ -3864,7 +3880,9 @@ class NgPrimeToolsModule {
3864
3880
  // Button
3865
3881
  PTButtonModule,
3866
3882
  // Dialog
3867
- PTDialogModule] }); }
3883
+ PTDialogModule,
3884
+ // Toasts
3885
+ PTToastNotifierModule] }); }
3868
3886
  static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: NgPrimeToolsModule, imports: [CommonModule,
3869
3887
  FormsModule,
3870
3888
  PTAdvancedPrimeTableModule,
@@ -3902,7 +3920,9 @@ class NgPrimeToolsModule {
3902
3920
  // Button
3903
3921
  PTButtonModule,
3904
3922
  // Dialog
3905
- PTDialogModule, PTAdvancedPrimeTableModule,
3923
+ PTDialogModule,
3924
+ // Toasts
3925
+ PTToastNotifierModule, PTAdvancedPrimeTableModule,
3906
3926
  MultiSearchCriteriaModule,
3907
3927
  // Inputs
3908
3928
  PTCheckBoxInputModule,
@@ -3937,7 +3957,9 @@ class NgPrimeToolsModule {
3937
3957
  // Button
3938
3958
  PTButtonModule,
3939
3959
  // Dialog
3940
- PTDialogModule] }); }
3960
+ PTDialogModule,
3961
+ // Toasts
3962
+ PTToastNotifierModule] }); }
3941
3963
  }
3942
3964
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: NgPrimeToolsModule, decorators: [{
3943
3965
  type: NgModule,
@@ -3981,6 +4003,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImpo
3981
4003
  PTButtonModule,
3982
4004
  // Dialog
3983
4005
  PTDialogModule,
4006
+ // Toasts
4007
+ PTToastNotifierModule,
3984
4008
  ],
3985
4009
  exports: [
3986
4010
  PTAdvancedPrimeTableModule,
@@ -4019,6 +4043,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImpo
4019
4043
  PTButtonModule,
4020
4044
  // Dialog
4021
4045
  PTDialogModule,
4046
+ // Toasts
4047
+ PTToastNotifierModule,
4022
4048
  ],
4023
4049
  }]
4024
4050
  }] });
@@ -4459,5 +4485,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImpo
4459
4485
  * Generated bundle index. Do not edit.
4460
4486
  */
4461
4487
 
4462
- export { BadgeType, BadgeTypeStyles, ButtonColorEnum, FormInputTypeEnum, InputValidationEnum, MultiSearchCriteriaComponent, MultiSearchCriteriaModule, NgPrimeToolsModule, PTAdvancedPrimeTableComponent, PTAdvancedPrimeTableModule, PTBreadCrumbComponent, PTBreadCrumbModule, PTButtonComponent, PTButtonModule, PTCardComponent, PTCardModule, PTChartComparisonComponent, PTChartComparisonModule, PTChartComponent, PTChartModule, PTCheckBoxInputComponent, PTCheckBoxInputModule, PTDateInputComponent, PTDateInputModule, PTDialogComponent, PTDialogModule, PTDropdownComponent, PTDropdownModule, PTFooterComponent, PTFooterModule, PTFormBuilderComponent, PTFormBuilderModule, PTGroupComponent, PTGroupModule, PTLineChartComponent, PTLineChartModule, PTLoginPageComponent, PTLoginPageModule, PTMenuComponent, PTMenuFancyComponent, PTMenuFancyModule, PTMenuModule, PTMetricCardComponent, PTMetricCardGroupComponent, PTMetricCardGroupModule, PTMetricCardModule, PTMetricPanelComponent, PTMetricPanelModule, PTNavbarMenuComponent, PTNavbarMenuModule, PTNumberInputComponent, PTNumberInputModule, PTPageSkeletonComponent, PTPageSkeletonModule, PTSideBarMenuComponent, PTSideBarMenuModule, PTSwitchInputComponent, PTSwitchInputModule, PTTextAreaInputComponent, PTTextAreaInputModule, PTTextInputComponent, PTTextInputModule, SearchCriteriaTypeEnum, SeverityEnum, TableTypeEnum };
4488
+ export { BadgeType, BadgeTypeStyles, ButtonColorEnum, FormInputTypeEnum, InputValidationEnum, MultiSearchCriteriaComponent, MultiSearchCriteriaModule, NgPrimeToolsModule, PTAdvancedPrimeTableComponent, PTAdvancedPrimeTableModule, PTBreadCrumbComponent, PTBreadCrumbModule, PTButtonComponent, PTButtonModule, PTCardComponent, PTCardModule, PTChartComparisonComponent, PTChartComparisonModule, PTChartComponent, PTChartModule, PTCheckBoxInputComponent, PTCheckBoxInputModule, PTDateInputComponent, PTDateInputModule, PTDialogComponent, PTDialogModule, PTDropdownComponent, PTDropdownModule, PTFooterComponent, PTFooterModule, PTFormBuilderComponent, PTFormBuilderModule, PTGroupComponent, PTGroupModule, PTLineChartComponent, PTLineChartModule, PTLoginPageComponent, PTLoginPageModule, PTMenuComponent, PTMenuFancyComponent, PTMenuFancyModule, PTMenuModule, PTMetricCardComponent, PTMetricCardGroupComponent, PTMetricCardGroupModule, PTMetricCardModule, PTMetricPanelComponent, PTMetricPanelModule, PTNavbarMenuComponent, PTNavbarMenuModule, PTNumberInputComponent, PTNumberInputModule, PTPageSkeletonComponent, PTPageSkeletonModule, PTSideBarMenuComponent, PTSideBarMenuModule, PTSwitchInputComponent, PTSwitchInputModule, PTTextAreaInputComponent, PTTextAreaInputModule, PTTextInputComponent, PTTextInputModule, PTToastNotifierComponent, PTToastNotifierModule, SearchCriteriaTypeEnum, SeverityEnum, TableTypeEnum };
4463
4489
  //# sourceMappingURL=ng-prime-tools.mjs.map