taxtank-core 0.8.7 → 0.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.
@@ -0,0 +1,6 @@
1
+ export declare enum ToastTypeEnum {
2
+ INFO = 0,
3
+ SUCCESS = 1,
4
+ WARNING = 2,
5
+ ERROR = 3
6
+ }
@@ -0,0 +1,10 @@
1
+ import { ToastTypeEnum } from './toast-type.enum';
2
+ /**
3
+ * Common toast message class
4
+ */
5
+ export declare class Toast {
6
+ type: ToastTypeEnum;
7
+ title: string;
8
+ message: string;
9
+ duration: number;
10
+ }
@@ -0,0 +1,13 @@
1
+ import { Observable, ReplaySubject } from 'rxjs';
2
+ import { Toast } from '../../models/toast/toast';
3
+ import * as i0 from "@angular/core";
4
+ /**
5
+ * popup notifications service (toast, snackbar).
6
+ */
7
+ export declare class ToastService {
8
+ toast$: ReplaySubject<Toast>;
9
+ get(): Observable<Toast>;
10
+ add(toast: Toast): void;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<ToastService, never>;
12
+ static ɵprov: i0.ɵɵInjectableDeclaration<ToastService>;
13
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taxtank-core",
3
- "version": "0.8.7",
3
+ "version": "0.9.0",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^12.2.3 || ~13.0.0",
package/public-api.d.ts CHANGED
@@ -235,6 +235,8 @@ export * from './lib/models/tax-summary/report-item-details';
235
235
  export * from './lib/models/tax-summary/tax-summary';
236
236
  export * from './lib/models/tax-summary/tax-summary-section';
237
237
  export * from './lib/models/tax-summary/tax-summary-type.enum';
238
+ export * from './lib/models/toast/toast';
239
+ export * from './lib/models/toast/toast-type.enum';
238
240
  export * from './lib/models/transaction/income-amount-type.enum';
239
241
  export * from './lib/models/transaction/transaction';
240
242
  export * from './lib/models/transaction/transaction-allocation';
@@ -308,6 +310,7 @@ export * from './lib/services/http/subscription/subscription.service';
308
310
  export * from './lib/services/http/tax-review/tax-review.service';
309
311
  export * from './lib/services/http/tax-review/tax-review-history/tax-review-history.service';
310
312
  export * from './lib/services/http/tax-summary/tax-summary.service';
313
+ export * from './lib/services/toast/toast.service';
311
314
  export * from './lib/services/http/transaction/transaction.service';
312
315
  export * from './lib/services/http/transaction/transaction-allocation/transaction-allocation.service';
313
316
  export * from './lib/services/transaction/transaction-calculation.service';