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.
- package/bundles/taxtank-core.umd.js +44 -0
- package/bundles/taxtank-core.umd.js.map +1 -1
- package/esm2015/lib/models/toast/toast-type.enum.js +8 -0
- package/esm2015/lib/models/toast/toast.js +9 -0
- package/esm2015/lib/services/toast/toast.service.js +26 -0
- package/esm2015/public-api.js +4 -1
- package/fesm2015/taxtank-core.js +41 -1
- package/fesm2015/taxtank-core.js.map +1 -1
- package/lib/models/toast/toast-type.enum.d.ts +6 -0
- package/lib/models/toast/toast.d.ts +10 -0
- package/lib/services/toast/toast.service.d.ts +13 -0
- package/package.json +1 -1
- package/public-api.d.ts +3 -0
|
@@ -7963,6 +7963,24 @@
|
|
|
7963
7963
|
TaxSummaryTypeEnum["FORECASTS"] = "forecasts";
|
|
7964
7964
|
})(exports.TaxSummaryTypeEnum || (exports.TaxSummaryTypeEnum = {}));
|
|
7965
7965
|
|
|
7966
|
+
/**
|
|
7967
|
+
* Common toast message class
|
|
7968
|
+
*/
|
|
7969
|
+
var Toast = /** @class */ (function () {
|
|
7970
|
+
function Toast() {
|
|
7971
|
+
this.duration = 3000;
|
|
7972
|
+
}
|
|
7973
|
+
return Toast;
|
|
7974
|
+
}());
|
|
7975
|
+
|
|
7976
|
+
exports.ToastTypeEnum = void 0;
|
|
7977
|
+
(function (ToastTypeEnum) {
|
|
7978
|
+
ToastTypeEnum[ToastTypeEnum["INFO"] = 0] = "INFO";
|
|
7979
|
+
ToastTypeEnum[ToastTypeEnum["SUCCESS"] = 1] = "SUCCESS";
|
|
7980
|
+
ToastTypeEnum[ToastTypeEnum["WARNING"] = 2] = "WARNING";
|
|
7981
|
+
ToastTypeEnum[ToastTypeEnum["ERROR"] = 3] = "ERROR";
|
|
7982
|
+
})(exports.ToastTypeEnum || (exports.ToastTypeEnum = {}));
|
|
7983
|
+
|
|
7966
7984
|
var MyAccountHistory = /** @class */ (function () {
|
|
7967
7985
|
function MyAccountHistory() {
|
|
7968
7986
|
}
|
|
@@ -11769,6 +11787,30 @@
|
|
|
11769
11787
|
}] }];
|
|
11770
11788
|
} });
|
|
11771
11789
|
|
|
11790
|
+
/**
|
|
11791
|
+
* popup notifications service (toast, snackbar).
|
|
11792
|
+
*/
|
|
11793
|
+
var ToastService = /** @class */ (function () {
|
|
11794
|
+
function ToastService() {
|
|
11795
|
+
this.toast$ = new rxjs.ReplaySubject(1);
|
|
11796
|
+
}
|
|
11797
|
+
ToastService.prototype.get = function () {
|
|
11798
|
+
return this.toast$.asObservable();
|
|
11799
|
+
};
|
|
11800
|
+
ToastService.prototype.add = function (toast) {
|
|
11801
|
+
this.toast$.next(toast);
|
|
11802
|
+
};
|
|
11803
|
+
return ToastService;
|
|
11804
|
+
}());
|
|
11805
|
+
ToastService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ToastService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
11806
|
+
ToastService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ToastService, providedIn: 'root' });
|
|
11807
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ToastService, decorators: [{
|
|
11808
|
+
type: i0.Injectable,
|
|
11809
|
+
args: [{
|
|
11810
|
+
providedIn: 'root'
|
|
11811
|
+
}]
|
|
11812
|
+
}] });
|
|
11813
|
+
|
|
11772
11814
|
function enumToList(data) {
|
|
11773
11815
|
var list = [];
|
|
11774
11816
|
for (var key in data) {
|
|
@@ -13137,6 +13179,8 @@
|
|
|
13137
13179
|
exports.TaxSummary = TaxSummary;
|
|
13138
13180
|
exports.TaxSummarySection = TaxSummarySection;
|
|
13139
13181
|
exports.TaxSummaryService = TaxSummaryService;
|
|
13182
|
+
exports.Toast = Toast;
|
|
13183
|
+
exports.ToastService = ToastService;
|
|
13140
13184
|
exports.Transaction = Transaction;
|
|
13141
13185
|
exports.TransactionAllocation = TransactionAllocation;
|
|
13142
13186
|
exports.TransactionAllocationCollection = TransactionAllocationCollection;
|