@bizy/core 19.14.5 → 19.15.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.
@@ -12,6 +12,7 @@ export declare class BizyToastWrapperComponent {
12
12
  title: string;
13
13
  msg: string;
14
14
  id: string;
15
+ duration: number;
15
16
  }, toast: BizyToastService);
16
17
  close(): void;
17
18
  static ɵfac: i0.ɵɵFactoryDeclaration<BizyToastWrapperComponent, never>;
@@ -1,8 +1,8 @@
1
1
  import { BizyToastWrapperComponent } from './toast-wrapper/toast-wrapper.component';
2
- import { Dialog, DialogRef } from '@angular/cdk/dialog';
2
+ import { DialogRef } from '@angular/cdk/dialog';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare enum TOAST {
5
- DEFAULT = "default",
5
+ DEBUG = "debug",
6
6
  SUCCESS = "success",
7
7
  INFO = "info",
8
8
  WARNING = "warning",
@@ -10,36 +10,45 @@ export declare enum TOAST {
10
10
  }
11
11
  export declare class BizyToastService {
12
12
  #private;
13
- private dialog;
14
13
  static toasts: Set<DialogRef<BizyToastWrapperComponent, unknown>>;
15
14
  duration: number;
15
+ defaultDebugTitle: string;
16
+ defaultInfoTitle: string;
16
17
  defaultSuccessTitle: string;
18
+ defaultWarningTitle: string;
17
19
  defaultDangerTitle: string;
18
- constructor(dialog: Dialog);
19
20
  config(data: {
21
+ defaultDebugTitle?: string;
22
+ defaultInfoTitle?: string;
20
23
  defaultSuccessTitle?: string;
24
+ defaultWarningTitle?: string;
21
25
  defaultDangerTitle?: string;
22
26
  duration?: number;
23
27
  }): void;
24
- default(data: string | {
28
+ debug(data: string | {
25
29
  title: string;
26
30
  msg?: string;
31
+ duration?: number;
27
32
  }): void;
28
33
  info(data: string | {
29
34
  title: string;
30
35
  msg?: string;
36
+ duration?: number;
31
37
  }): void;
32
38
  success(data?: string | {
33
39
  title: string;
34
40
  msg?: string;
41
+ duration?: number;
35
42
  }): void;
36
43
  warning(data: string | {
37
44
  title: string;
38
45
  msg?: string;
46
+ duration?: number;
39
47
  }): void;
40
48
  danger(data?: string | {
41
49
  title: string;
42
50
  msg?: string;
51
+ duration?: number;
43
52
  }): void;
44
53
  close: (id: string) => void;
45
54
  static ɵfac: i0.ɵɵFactoryDeclaration<BizyToastService, never>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bizy/core",
3
- "version": "19.14.5",
3
+ "version": "19.15.0",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": "19.2.10",
6
6
  "@angular/cdk": "19.2.16",
@@ -325,9 +325,8 @@
325
325
  --bizy-tag-danger-color: var(--bizy-dark-danger-color);
326
326
  --bizy-tag-padding: 0.1rem 0.3rem;
327
327
 
328
- --bizy-toast-border-left: 0.4rem solid #fff;
329
- --bizy-toast-default-background-color: #fff;
330
- --bizy-toast-default-color: var(--bizy-default-color);
328
+ --bizy-toast-debug-background-color: #fff;
329
+ --bizy-toast-debug-color: var(--bizy-default-color);
331
330
  --bizy-toast-info-background-color: #fff;
332
331
  --bizy-toast-info-color: var(--bizy-info-color);
333
332
  --bizy-toast-success-background-color: #fff;
@@ -338,6 +337,22 @@
338
337
  --bizy-toast-danger-color: var(--bizy-danger-color);
339
338
  --bizy-toast-close-button-color: var(--bizy-default-color);
340
339
  --bizy-toast-close-button-hover-color: var(--bizy-dark-default-color);
340
+ --bizy-toast-progress-bar-height: 0.2rem;
341
+ --bizy-toast-border-top-width: 0.1rem;
342
+ --bizy-toast-border-right-width: 0.1rem;
343
+ --bizy-toast-border-bottom-width: 0.1rem;
344
+ --bizy-toast-border-left-width: 0.1rem;
345
+ --bizy-toast-border-top-style: solid;
346
+ --bizy-toast-border-right-style: solid;
347
+ --bizy-toast-border-bottom-style: solid;
348
+ --bizy-toast-border-left-style: solid;
349
+ --bizy-toast-border-top-left-radius: 0.5rem;
350
+ --bizy-toast-border-top-right-radius: 0;
351
+ --bizy-toast-border-bottom-left-radius: 0;
352
+ --bizy-toast-border-bottom-right-radius: 0;
353
+ --bizy-toast-duration: 3000ms;
354
+ --bizy-toast-scroll-bar-color: var(--bizy-default-color);
355
+ --bizy-toast-scroll-bar-hover-color: #999;
341
356
 
342
357
  --bizy-toggle-color: var(--bizy-danger-color);
343
358
  --bizy-toggle-background-color: #f2d5d7;