asksuite-citrus 3.8.0 → 3.9.0

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.
@@ -6,12 +6,14 @@ export declare class ToastComponent implements OnInit, OnDestroy {
6
6
  readonly data: ToastData;
7
7
  private ref;
8
8
  message: string;
9
+ text: string;
9
10
  icon: string;
10
11
  timeoutRef: number;
11
12
  config: ToastConfig;
12
13
  color: string;
13
14
  fontColor: string;
14
15
  isClosing: boolean;
16
+ width: string;
15
17
  private readonly TYPES;
16
18
  constructor(data: ToastData, ref: ToastRef);
17
19
  set type(type: 'success' | 'warning' | 'danger' | 'info' | ToastType);
@@ -4,8 +4,10 @@ export interface ToastData {
4
4
  type: ToastType;
5
5
  message: string;
6
6
  config?: ToastConfig;
7
+ text?: string;
7
8
  }
8
9
  export interface ToastConfig {
9
10
  timeout?: number;
11
+ width?: number;
10
12
  }
11
13
  export declare const ASK_TOAST_CONFIG: InjectionToken<ToastData>;
@@ -12,9 +12,9 @@ export declare class ToastService {
12
12
  constructor(overlay: Overlay, injector: Injector);
13
13
  success(message: string, config?: ToastConfig): void;
14
14
  info(message: string, config?: ToastConfig): void;
15
- danger(message: string, config?: ToastConfig): void;
15
+ danger(message: string, config?: ToastConfig, text?: string): void;
16
16
  warning(message: string, config?: ToastConfig): void;
17
- pop(type: ToastType, message: string, config?: ToastConfig): void;
17
+ pop(type: ToastType, message: string, config?: ToastConfig, text?: string): void;
18
18
  private createInjector;
19
19
  private getPositionStrategy;
20
20
  private getTopOffset;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asksuite-citrus",
3
- "version": "3.8.0",
3
+ "version": "3.9.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.3.7",
6
6
  "@angular/core": "^17.3.7",