@datarailsshared/datarailsshared 1.6.322 → 1.6.324

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.
@@ -11,5 +11,5 @@ export declare class DefaultToastrComponent extends Toast implements OnInit {
11
11
  constructor(toastrService: ToastrService, toastPackage: ToastPackage);
12
12
  ngOnInit(): void;
13
13
  static ɵfac: i0.ɵɵFactoryDeclaration<DefaultToastrComponent, never>;
14
- static ɵcmp: i0.ɵɵComponentDeclaration<DefaultToastrComponent, "dr-default-toastr", never, {}, {}, never, never, false, never>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<DefaultToastrComponent, "dr-default-toastr", never, {}, {}, never, never, true, never>;
15
15
  }
@@ -1,9 +1,9 @@
1
1
  import * as i0 from "@angular/core";
2
- import * as i1 from "./default-toastr/default-toastr.component";
3
- import * as i2 from "@angular/common";
2
+ import * as i1 from "@angular/common";
3
+ import * as i2 from "./default-toastr/default-toastr.component";
4
4
  import * as i3 from "ngx-toastr";
5
5
  export declare class DrToastrModule {
6
6
  static ɵfac: i0.ɵɵFactoryDeclaration<DrToastrModule, never>;
7
- static ɵmod: i0.ɵɵNgModuleDeclaration<DrToastrModule, [typeof i1.DefaultToastrComponent], [typeof i2.CommonModule, typeof i3.ToastrModule], [typeof i1.DefaultToastrComponent]>;
7
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DrToastrModule, never, [typeof i1.CommonModule, typeof i2.DefaultToastrComponent, typeof i3.ToastrModule], never>;
8
8
  static ɵinj: i0.ɵɵInjectorDeclaration<DrToastrModule>;
9
9
  }
@@ -1,13 +1,14 @@
1
1
  import { SafeHtml } from '@angular/platform-browser';
2
2
  import { ToastrService } from 'ngx-toastr';
3
+ import { ToastrOptions } from '../models/toastr';
3
4
  import * as i0 from "@angular/core";
4
5
  export declare class DrToastrService {
5
6
  private toastr;
6
7
  constructor(toastr: ToastrService);
7
- info(message: string | SafeHtml, title?: string, isHtmlBody?: boolean, timeOut?: number): number | undefined;
8
- danger(message: string | SafeHtml, title?: string, isHtmlBody?: boolean, timeOut?: number): number | undefined;
9
- success(message: string | SafeHtml, title?: string, isHtmlBody?: boolean, timeOut?: number): number | undefined;
10
- warning(message: string | SafeHtml, title?: string, isHtmlBody?: boolean, timeOut?: number): number | undefined;
8
+ info(message: string | SafeHtml, title?: string, isHtmlBody?: boolean, timeOut?: number, options?: ToastrOptions): number | undefined;
9
+ danger(message: string | SafeHtml, title?: string, isHtmlBody?: boolean, timeOut?: number, options?: ToastrOptions): number | undefined;
10
+ success(message: string | SafeHtml, title?: string, isHtmlBody?: boolean, timeOut?: number, options?: ToastrOptions): number | undefined;
11
+ warning(message: string | SafeHtml, title?: string, isHtmlBody?: boolean, timeOut?: number, options?: ToastrOptions): number | undefined;
11
12
  clear(toastId?: number): void;
12
13
  remove(toastId: number): void;
13
14
  private showToastr;
@@ -1,3 +1,4 @@
1
+ import { ButtonType } from '../dr-inputs/button/button.component';
1
2
  export declare enum ToastrStatus {
2
3
  INFO = "status-info",
3
4
  ERROR = "status-danger",
@@ -10,9 +11,18 @@ export declare const ToastrStatusIcon: {
10
11
  "status-success": string;
11
12
  "status-warning": string;
12
13
  };
14
+ export type ToastrOptions = {
15
+ actions?: Array<{
16
+ label: string;
17
+ theme: ButtonType;
18
+ onAction: () => void;
19
+ }>;
20
+ inlineActions?: boolean;
21
+ };
13
22
  export type DefaultToastrData = {
14
23
  title: string;
15
24
  message: string;
16
25
  status: ToastrStatus;
17
26
  isHtmlBody: boolean;
27
+ options?: ToastrOptions;
18
28
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datarailsshared/datarailsshared",
3
- "version": "1.6.322",
3
+ "version": "1.6.324",
4
4
  "description": "DataRails shared components",
5
5
  "keywords": [
6
6
  "angular",