@vality/matez 19.0.0 → 19.0.1-60eda61.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.
@@ -3,3 +3,4 @@ export * from './log';
3
3
  export * from './fetch-superclass';
4
4
  export * from './query-params';
5
5
  export * from './url.service';
6
+ export * from './toast';
@@ -0,0 +1 @@
1
+ export * from './toast.service';
@@ -0,0 +1,26 @@
1
+ import { MatSnackBarRef } from '@angular/material/snack-bar';
2
+ import { Observable } from 'rxjs';
3
+ import * as i0 from "@angular/core";
4
+ export declare const DEFAULT_DURATION = 3000;
5
+ export interface ToastData {
6
+ message?: string;
7
+ action?: () => void;
8
+ /** Duration after progress or if not set, duration of the snackbar */
9
+ duration?: number;
10
+ progress$?: Observable<boolean>;
11
+ progressMessage?: string;
12
+ successMessage?: string;
13
+ error$?: Observable<unknown>;
14
+ errorMessage?: string;
15
+ }
16
+ export declare class ToastComponent {
17
+ data: ToastData;
18
+ private snackBarRef;
19
+ message$: Observable<string | undefined>;
20
+ constructor(data: ToastData, snackBarRef: MatSnackBarRef<ToastComponent>);
21
+ dismissWithAction(): void;
22
+ private subscribeProgress;
23
+ private dismissByDuration;
24
+ static ɵfac: i0.ɵɵFactoryDeclaration<ToastComponent, never>;
25
+ static ɵcmp: i0.ɵɵComponentDeclaration<ToastComponent, "v-toast", never, {}, {}, never, never, true, never>;
26
+ }
@@ -0,0 +1,10 @@
1
+ import { MatSnackBar, MatSnackBarConfig } from '@angular/material/snack-bar';
2
+ import { ToastComponent, ToastData } from './toast.component';
3
+ import * as i0 from "@angular/core";
4
+ export declare class ToastService {
5
+ private snackBar;
6
+ constructor(snackBar: MatSnackBar);
7
+ open(data: ToastData, config?: Omit<MatSnackBarConfig<ToastData>, 'data'>): import("@angular/material/snack-bar").MatSnackBarRef<ToastComponent>;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<ToastService, never>;
9
+ static ɵprov: i0.ɵɵInjectableDeclaration<ToastService>;
10
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vality/matez",
3
- "version": "19.0.0",
3
+ "version": "19.0.1-60eda61.0",
4
4
  "exports": {
5
5
  ".": {
6
6
  "sass": "./_index.scss",
@@ -41,4 +41,4 @@
41
41
  },
42
42
  "module": "fesm2022/vality-matez.mjs",
43
43
  "typings": "index.d.ts"
44
- }
44
+ }
@@ -0,0 +1,13 @@
1
+ @use '@angular/material' as mat;
2
+
3
+ :host {
4
+ display: flex;
5
+ justify-content: space-between;
6
+ align-items: center;
7
+
8
+ @include mat.progress-spinner-overrides(
9
+ (
10
+ active-indicator-color: white,
11
+ )
12
+ );
13
+ }