taxtank-core 0.16.3 → 0.16.6
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 +161 -16
- package/bundles/taxtank-core.umd.js.map +1 -1
- package/esm2015/lib/interfaces/table-exportable.interface.js +2 -0
- package/esm2015/lib/models/endpoint/endpoints.const.js +3 -2
- package/esm2015/lib/models/export/export-data-table.js +4 -1
- package/esm2015/lib/models/export/export-row-data-type.enum.js +10 -0
- package/esm2015/lib/models/export/export-row.js +6 -0
- package/esm2015/lib/models/loan/loan-payment.js +24 -2
- package/esm2015/lib/services/data-table/data-table.service.js +47 -0
- package/esm2015/lib/services/http/bank/basiq/basiq.service.js +60 -3
- package/esm2015/lib/services/pdf/pdf.service.js +2 -2
- package/esm2015/public-api.js +3 -1
- package/fesm2015/taxtank-core.js +150 -12
- package/fesm2015/taxtank-core.js.map +1 -1
- package/lib/interfaces/table-exportable.interface.d.ts +7 -0
- package/lib/models/export/export-row-data-type.enum.d.ts +8 -0
- package/lib/models/export/export-row.d.ts +8 -0
- package/lib/models/loan/loan-payment.d.ts +6 -1
- package/lib/services/data-table/data-table.service.d.ts +19 -0
- package/lib/services/http/bank/basiq/basiq.service.d.ts +19 -1
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/common/http'), require('rxjs'), require('rxjs/operators'), require('class-transformer'), require('@auth0/angular-jwt'), require('lodash/get'), require('lodash/flatten'), require('lodash/hasIn'), require('lodash/first'), require('lodash/last'), require('lodash/compact'), require('lodash/uniqBy'), require('lodash/concat'), require('moment'), require('moment-range'), require('lodash/cloneDeep'), require('@angular/forms'), require('lodash/fromPairs'), require('lodash'), require('event-source-polyfill/src/eventsource.min.js'), require('@angular/router'), require('lodash/clone'), require('jspdf'), require('jspdf-autotable'), require('@stripe/stripe-js'), require('xlsx'), require('file-saver')) :
|
|
3
3
|
typeof define === 'function' && define.amd ? define('taxtank-core', ['exports', '@angular/core', '@angular/common', '@angular/common/http', 'rxjs', 'rxjs/operators', 'class-transformer', '@auth0/angular-jwt', 'lodash/get', 'lodash/flatten', 'lodash/hasIn', 'lodash/first', 'lodash/last', 'lodash/compact', 'lodash/uniqBy', 'lodash/concat', 'moment', 'moment-range', 'lodash/cloneDeep', '@angular/forms', 'lodash/fromPairs', 'lodash', 'event-source-polyfill/src/eventsource.min.js', '@angular/router', 'lodash/clone', 'jspdf', 'jspdf-autotable', '@stripe/stripe-js', 'xlsx', 'file-saver'], factory) :
|
|
4
4
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["taxtank-core"] = {}, global.ng.core, global.ng.common, global.ng.common.http, global.rxjs, global.rxjs.operators, global.classTransformer, global.angularJwt, global.get, global.flatten, global.hasIn, global.first, global.last, global.compact, global.uniqBy, global.concat, global.moment, global.momentRange, global.cloneDeep$1, global.ng.forms, global.fromPairs, global._, global.eventsource_min_js, global.ng.router, global.clone, global.jsPDF, global.autoTable, global.stripeJs, global.xlsx, global.FileSaver));
|
|
5
|
-
})(this, (function (exports, i0,
|
|
5
|
+
})(this, (function (exports, i0, i1$1, i1, rxjs, operators, classTransformer, angularJwt, get, flatten, hasIn, first, last, compact, uniqBy, concat, moment, momentRange, cloneDeep$1, forms, fromPairs, _, eventsource_min_js, i1$2, clone, jsPDF, autoTable, stripeJs, xlsx, FileSaver) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
28
|
-
var
|
|
28
|
+
var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$1);
|
|
29
29
|
var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
|
|
30
30
|
var get__default = /*#__PURE__*/_interopDefaultLegacy(get);
|
|
31
31
|
var flatten__default = /*#__PURE__*/_interopDefaultLegacy(flatten);
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
var cloneDeep__default = /*#__PURE__*/_interopDefaultLegacy(cloneDeep$1);
|
|
40
40
|
var fromPairs__default = /*#__PURE__*/_interopDefaultLegacy(fromPairs);
|
|
41
41
|
var ___default = /*#__PURE__*/_interopDefaultLegacy(_);
|
|
42
|
-
var i1__namespace$
|
|
42
|
+
var i1__namespace$2 = /*#__PURE__*/_interopNamespace(i1$2);
|
|
43
43
|
var clone__default = /*#__PURE__*/_interopDefaultLegacy(clone);
|
|
44
44
|
var jsPDF__default = /*#__PURE__*/_interopDefaultLegacy(jsPDF);
|
|
45
45
|
var autoTable__default = /*#__PURE__*/_interopDefaultLegacy(autoTable);
|
|
@@ -831,7 +831,8 @@
|
|
|
831
831
|
BANK_TRANSACTIONS_GET: new Endpoint('GET', '\\/bank-transactions'),
|
|
832
832
|
BANK_TRANSACTIONS_DELETE: new Endpoint('DELETE', '\\/bank-transactions\\/\\d+'),
|
|
833
833
|
BANK_TRANSACTIONS_IMPORT_POST: new Endpoint('POST', '\\/bank-transactions\\/\\d+\\/import'),
|
|
834
|
-
BASIQ_ACCOUNTS_GET: new Endpoint('GET', '\\/basiq
|
|
834
|
+
BASIQ_ACCOUNTS_GET: new Endpoint('GET', '\\/basiq\\/accounts'),
|
|
835
|
+
BASIQ_TOKEN_GET: new Endpoint('GET', '\\/basiq\\/tokens'),
|
|
835
836
|
CHARTS_INCOME_GET: new Endpoint('GET', '\\/charts\\/\\incomes'),
|
|
836
837
|
CHARTS_EXPENSES_GET: new Endpoint('GET', '\\/charts\\/\\expenses'),
|
|
837
838
|
CHART_ACCOUNTS_GET: new Endpoint('GET', '\\/chart-accounts'),
|
|
@@ -1105,10 +1106,10 @@
|
|
|
1105
1106
|
return TtCoreModule;
|
|
1106
1107
|
}());
|
|
1107
1108
|
TtCoreModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TtCoreModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1108
|
-
TtCoreModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TtCoreModule, imports: [
|
|
1109
|
+
TtCoreModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TtCoreModule, imports: [i1$1.CommonModule,
|
|
1109
1110
|
InterceptorsModule] });
|
|
1110
1111
|
TtCoreModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TtCoreModule, imports: [[
|
|
1111
|
-
|
|
1112
|
+
i1$1.CommonModule,
|
|
1112
1113
|
InterceptorsModule
|
|
1113
1114
|
]] });
|
|
1114
1115
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TtCoreModule, decorators: [{
|
|
@@ -1116,7 +1117,7 @@
|
|
|
1116
1117
|
args: [{
|
|
1117
1118
|
declarations: [],
|
|
1118
1119
|
imports: [
|
|
1119
|
-
|
|
1120
|
+
i1$1.CommonModule,
|
|
1120
1121
|
InterceptorsModule
|
|
1121
1122
|
]
|
|
1122
1123
|
}]
|
|
@@ -4569,6 +4570,34 @@
|
|
|
4569
4570
|
LoanVehicleTypeEnum[LoanVehicleTypeEnum["COMMERCIAL_HIRE_PURCHASE"] = 10] = "COMMERCIAL_HIRE_PURCHASE";
|
|
4570
4571
|
})(exports.LoanVehicleTypeEnum || (exports.LoanVehicleTypeEnum = {}));
|
|
4571
4572
|
|
|
4573
|
+
/**
|
|
4574
|
+
* Class with structure of the data-table rows
|
|
4575
|
+
*/
|
|
4576
|
+
var ExportRow = /** @class */ (function () {
|
|
4577
|
+
function ExportRow() {
|
|
4578
|
+
}
|
|
4579
|
+
return ExportRow;
|
|
4580
|
+
}());
|
|
4581
|
+
|
|
4582
|
+
/**
|
|
4583
|
+
* Enum which shows what type (in terms of business logic) of the data-table row item
|
|
4584
|
+
*/
|
|
4585
|
+
var ExportRowDataTypeEnum;
|
|
4586
|
+
(function (ExportRowDataTypeEnum) {
|
|
4587
|
+
ExportRowDataTypeEnum[ExportRowDataTypeEnum["STRING"] = 0] = "STRING";
|
|
4588
|
+
ExportRowDataTypeEnum[ExportRowDataTypeEnum["CURRENCY"] = 1] = "CURRENCY";
|
|
4589
|
+
ExportRowDataTypeEnum[ExportRowDataTypeEnum["DATE"] = 2] = "DATE";
|
|
4590
|
+
})(ExportRowDataTypeEnum || (ExportRowDataTypeEnum = {}));
|
|
4591
|
+
|
|
4592
|
+
var EXPORT_DATA_TABLE_COLUMNS = [
|
|
4593
|
+
'Pmt No.',
|
|
4594
|
+
'Date',
|
|
4595
|
+
'Payment Due',
|
|
4596
|
+
'Interest Accrued',
|
|
4597
|
+
'Principal Paid',
|
|
4598
|
+
'Principal Balance',
|
|
4599
|
+
'Payout'
|
|
4600
|
+
];
|
|
4572
4601
|
// @Todo no base model from backend list
|
|
4573
4602
|
/**
|
|
4574
4603
|
* Loan payment class
|
|
@@ -4576,6 +4605,17 @@
|
|
|
4576
4605
|
var LoanPayment = /** @class */ (function () {
|
|
4577
4606
|
function LoanPayment() {
|
|
4578
4607
|
}
|
|
4608
|
+
LoanPayment.prototype.toDataTableRows = function () {
|
|
4609
|
+
return [
|
|
4610
|
+
classTransformer.plainToClass(ExportRow, { data: this.number, type: ExportRowDataTypeEnum.STRING }),
|
|
4611
|
+
classTransformer.plainToClass(ExportRow, { data: this.date, type: ExportRowDataTypeEnum.DATE }),
|
|
4612
|
+
classTransformer.plainToClass(ExportRow, { data: this.paymentDue, type: ExportRowDataTypeEnum.CURRENCY }),
|
|
4613
|
+
classTransformer.plainToClass(ExportRow, { data: this.interestAccrued, type: ExportRowDataTypeEnum.CURRENCY }),
|
|
4614
|
+
classTransformer.plainToClass(ExportRow, { data: this.principalPaid, type: ExportRowDataTypeEnum.CURRENCY }),
|
|
4615
|
+
classTransformer.plainToClass(ExportRow, { data: this.principalBalance, type: ExportRowDataTypeEnum.CURRENCY }),
|
|
4616
|
+
classTransformer.plainToClass(ExportRow, { data: this.payout, type: ExportRowDataTypeEnum.CURRENCY }),
|
|
4617
|
+
];
|
|
4618
|
+
};
|
|
4579
4619
|
return LoanPayment;
|
|
4580
4620
|
}());
|
|
4581
4621
|
__decorate([
|
|
@@ -7579,6 +7619,7 @@
|
|
|
7579
7619
|
*/
|
|
7580
7620
|
var ExportDataTable = /** @class */ (function () {
|
|
7581
7621
|
function ExportDataTable() {
|
|
7622
|
+
this.footer = [];
|
|
7582
7623
|
}
|
|
7583
7624
|
return ExportDataTable;
|
|
7584
7625
|
}());
|
|
@@ -10421,6 +10462,14 @@
|
|
|
10421
10462
|
}]
|
|
10422
10463
|
}] });
|
|
10423
10464
|
|
|
10465
|
+
/**
|
|
10466
|
+
* Basiq consent UI initial URL. Replace USER_ID and TOKEN by user data + handle action parameter
|
|
10467
|
+
*/
|
|
10468
|
+
var BASIQ_CONSENT_URL = 'https://consent.basiq.io/home?userId=USER_ID&token=TOKEN&action=connect';
|
|
10469
|
+
/**
|
|
10470
|
+
* Event message name we listen to handle basiq UI result
|
|
10471
|
+
*/
|
|
10472
|
+
var FINISH_BASIQ_EVENT = 'finish-basiq';
|
|
10424
10473
|
/**
|
|
10425
10474
|
* basiq is a middleman between bank and user
|
|
10426
10475
|
* service is responsible for fetching bank related information
|
|
@@ -10440,6 +10489,7 @@
|
|
|
10440
10489
|
BasiqService.prototype.listenEvents = function () {
|
|
10441
10490
|
this.listenToBankConnectionAdded();
|
|
10442
10491
|
this.listenNotifications();
|
|
10492
|
+
this.listenBasiqConcentUpdated();
|
|
10443
10493
|
};
|
|
10444
10494
|
/**
|
|
10445
10495
|
* Update user's basiq consents data on backend
|
|
@@ -10448,7 +10498,6 @@
|
|
|
10448
10498
|
var _this = this;
|
|
10449
10499
|
return this.http.put(this.environment.apiV2 + "/basiq/consents", {}).pipe(operators.map(function (isConfirmed) {
|
|
10450
10500
|
_this.eventDispatcherService.dispatch(new AppEvent(exports.AppEventTypeEnum.BASIQ_CONSENT_UPDATED, isConfirmed));
|
|
10451
|
-
return isConfirmed;
|
|
10452
10501
|
}));
|
|
10453
10502
|
};
|
|
10454
10503
|
/**
|
|
@@ -10469,11 +10518,15 @@
|
|
|
10469
10518
|
return new BasiqToken(response['access_token'], new Date(now + response['expires_in'] * 1000));
|
|
10470
10519
|
}))
|
|
10471
10520
|
.subscribe(function (token) {
|
|
10521
|
+
_this.token = token;
|
|
10472
10522
|
_this.tokenSubject.next(token);
|
|
10473
10523
|
});
|
|
10474
10524
|
}
|
|
10475
10525
|
return this.tokenSubject.asObservable();
|
|
10476
10526
|
};
|
|
10527
|
+
/**
|
|
10528
|
+
* Get list of user's bank conections
|
|
10529
|
+
*/
|
|
10477
10530
|
BasiqService.prototype.getConnections = function () {
|
|
10478
10531
|
return this.get().pipe(operators.map(function (bankAccounts) {
|
|
10479
10532
|
// get all connections
|
|
@@ -10484,6 +10537,41 @@
|
|
|
10484
10537
|
return __spreadArray([], __read(new Map(connections.map(function (connection) { return [connection.id, connection]; })).values()));
|
|
10485
10538
|
}));
|
|
10486
10539
|
};
|
|
10540
|
+
/**
|
|
10541
|
+
* Listen response from basiq UI to handle result.
|
|
10542
|
+
* @param isBasiqConsentExist flag from User.ClientDetails - true if user confirmed basiq consent
|
|
10543
|
+
* @param callback function we run after basiq UI work is finished
|
|
10544
|
+
*/
|
|
10545
|
+
BasiqService.prototype.listenBasiqResponse = function (isBasiqConsentExist, callback) {
|
|
10546
|
+
var _this = this;
|
|
10547
|
+
window.addEventListener('message', function (message) {
|
|
10548
|
+
if (message.data !== FINISH_BASIQ_EVENT) {
|
|
10549
|
+
return;
|
|
10550
|
+
}
|
|
10551
|
+
// update user's basiq consent confirmation status for the first basiq ui run
|
|
10552
|
+
if (isBasiqConsentExist) {
|
|
10553
|
+
_this.updateConnections().pipe(operators.take(1)).subscribe();
|
|
10554
|
+
}
|
|
10555
|
+
else {
|
|
10556
|
+
_this.confirmConsents().pipe(operators.take(1)).subscribe();
|
|
10557
|
+
}
|
|
10558
|
+
callback();
|
|
10559
|
+
});
|
|
10560
|
+
};
|
|
10561
|
+
/**
|
|
10562
|
+
* Get URL with filled params to run basiq UI iframe
|
|
10563
|
+
*/
|
|
10564
|
+
BasiqService.prototype.generateBasiqConsentUrl = function (user) {
|
|
10565
|
+
return this.getToken().pipe(operators.map(function (token) {
|
|
10566
|
+
var url = BASIQ_CONSENT_URL;
|
|
10567
|
+
url = url.replace('USER_ID', user.basiqId);
|
|
10568
|
+
url = url.replace('TOKEN', token.value);
|
|
10569
|
+
if (!user.clientDetails.basiqConsentExist) {
|
|
10570
|
+
url = url.split('&action')[0];
|
|
10571
|
+
}
|
|
10572
|
+
return url;
|
|
10573
|
+
}));
|
|
10574
|
+
};
|
|
10487
10575
|
/**
|
|
10488
10576
|
* Listen to EventDispatcherService event related to added Bank connection
|
|
10489
10577
|
*/
|
|
@@ -10508,6 +10596,18 @@
|
|
|
10508
10596
|
}
|
|
10509
10597
|
});
|
|
10510
10598
|
};
|
|
10599
|
+
/**
|
|
10600
|
+
* Update user's basiq connections when user confirmed basiq consent
|
|
10601
|
+
*/
|
|
10602
|
+
BasiqService.prototype.listenBasiqConcentUpdated = function () {
|
|
10603
|
+
var _this = this;
|
|
10604
|
+
this.eventDispatcherService.on(exports.AppEventTypeEnum.BASIQ_CONSENT_UPDATED).subscribe(function (isConfirmed) {
|
|
10605
|
+
if (!isConfirmed) {
|
|
10606
|
+
return;
|
|
10607
|
+
}
|
|
10608
|
+
_this.updateConnections().pipe(operators.take(1)).subscribe();
|
|
10609
|
+
});
|
|
10610
|
+
};
|
|
10511
10611
|
return BasiqService;
|
|
10512
10612
|
}(RestService));
|
|
10513
10613
|
BasiqService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: BasiqService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
@@ -11634,6 +11734,49 @@
|
|
|
11634
11734
|
}] }];
|
|
11635
11735
|
} });
|
|
11636
11736
|
|
|
11737
|
+
/**
|
|
11738
|
+
* Service to handle array-like data table logic
|
|
11739
|
+
*/
|
|
11740
|
+
var DataTableService = /** @class */ (function () {
|
|
11741
|
+
function DataTableService(currencyPipe, datePipe) {
|
|
11742
|
+
this.currencyPipe = currencyPipe;
|
|
11743
|
+
this.datePipe = datePipe;
|
|
11744
|
+
}
|
|
11745
|
+
DataTableService.prototype.initDataTable = function (exportableModels, headerColumns) {
|
|
11746
|
+
return classTransformer.plainToClass(ExportDataTable, {
|
|
11747
|
+
header: headerColumns,
|
|
11748
|
+
rows: this.getDataTableRows(exportableModels),
|
|
11749
|
+
});
|
|
11750
|
+
};
|
|
11751
|
+
/**
|
|
11752
|
+
* Get data for the exporting table rows
|
|
11753
|
+
*/
|
|
11754
|
+
DataTableService.prototype.getDataTableRows = function (exportableModels) {
|
|
11755
|
+
var _this = this;
|
|
11756
|
+
return exportableModels.map(function (model) {
|
|
11757
|
+
return model.toDataTableRows().map(function (row) {
|
|
11758
|
+
switch (row.type) {
|
|
11759
|
+
case ExportRowDataTypeEnum.DATE:
|
|
11760
|
+
return _this.datePipe.transform(row.data, 'dd/MM/YYYY').toString();
|
|
11761
|
+
case ExportRowDataTypeEnum.CURRENCY:
|
|
11762
|
+
return _this.currencyPipe.transform(row.data).toString();
|
|
11763
|
+
default:
|
|
11764
|
+
return row.data.toString();
|
|
11765
|
+
}
|
|
11766
|
+
});
|
|
11767
|
+
});
|
|
11768
|
+
};
|
|
11769
|
+
return DataTableService;
|
|
11770
|
+
}());
|
|
11771
|
+
DataTableService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: DataTableService, deps: [{ token: i1__namespace$1.CurrencyPipe }, { token: i1__namespace$1.DatePipe }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
11772
|
+
DataTableService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: DataTableService, providedIn: 'root' });
|
|
11773
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: DataTableService, decorators: [{
|
|
11774
|
+
type: i0.Injectable,
|
|
11775
|
+
args: [{
|
|
11776
|
+
providedIn: 'root'
|
|
11777
|
+
}]
|
|
11778
|
+
}], ctorParameters: function () { return [{ type: i1__namespace$1.CurrencyPipe }, { type: i1__namespace$1.DatePipe }]; } });
|
|
11779
|
+
|
|
11637
11780
|
var HeaderTitleService = /** @class */ (function () {
|
|
11638
11781
|
function HeaderTitleService(router, activatedRoute) {
|
|
11639
11782
|
this.router = router;
|
|
@@ -11641,7 +11784,7 @@
|
|
|
11641
11784
|
}
|
|
11642
11785
|
HeaderTitleService.prototype.handleTitle = function () {
|
|
11643
11786
|
var _this = this;
|
|
11644
|
-
return this.router.events.pipe(operators.filter(function (event) { return event instanceof i1$
|
|
11787
|
+
return this.router.events.pipe(operators.filter(function (event) { return event instanceof i1$2.NavigationEnd; }), operators.map(function () { return _this.activatedRoute; }), operators.map(function (route) {
|
|
11645
11788
|
while (route.firstChild) {
|
|
11646
11789
|
route = route.firstChild;
|
|
11647
11790
|
}
|
|
@@ -11650,14 +11793,14 @@
|
|
|
11650
11793
|
};
|
|
11651
11794
|
return HeaderTitleService;
|
|
11652
11795
|
}());
|
|
11653
|
-
HeaderTitleService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: HeaderTitleService, deps: [{ token: i1__namespace$
|
|
11796
|
+
HeaderTitleService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: HeaderTitleService, deps: [{ token: i1__namespace$2.Router }, { token: i1__namespace$2.ActivatedRoute }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
11654
11797
|
HeaderTitleService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: HeaderTitleService, providedIn: 'root' });
|
|
11655
11798
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: HeaderTitleService, decorators: [{
|
|
11656
11799
|
type: i0.Injectable,
|
|
11657
11800
|
args: [{
|
|
11658
11801
|
providedIn: 'root'
|
|
11659
11802
|
}]
|
|
11660
|
-
}], ctorParameters: function () { return [{ type: i1__namespace$
|
|
11803
|
+
}], ctorParameters: function () { return [{ type: i1__namespace$2.Router }, { type: i1__namespace$2.ActivatedRoute }]; } });
|
|
11661
11804
|
|
|
11662
11805
|
/**
|
|
11663
11806
|
* Service to work with Other Income Forecasts
|
|
@@ -11948,14 +12091,14 @@
|
|
|
11948
12091
|
};
|
|
11949
12092
|
return KompassifyService;
|
|
11950
12093
|
}());
|
|
11951
|
-
KompassifyService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: KompassifyService, deps: [{ token: i1__namespace$
|
|
12094
|
+
KompassifyService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: KompassifyService, deps: [{ token: i1__namespace$2.Router }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
11952
12095
|
KompassifyService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: KompassifyService, providedIn: 'root' });
|
|
11953
12096
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: KompassifyService, decorators: [{
|
|
11954
12097
|
type: i0.Injectable,
|
|
11955
12098
|
args: [{
|
|
11956
12099
|
providedIn: 'root'
|
|
11957
12100
|
}]
|
|
11958
|
-
}], ctorParameters: function () { return [{ type: i1__namespace$
|
|
12101
|
+
}], ctorParameters: function () { return [{ type: i1__namespace$2.Router }]; } });
|
|
11959
12102
|
|
|
11960
12103
|
/**
|
|
11961
12104
|
* Service that handling loans logic
|
|
@@ -12218,7 +12361,7 @@
|
|
|
12218
12361
|
this.setDocumentTitle(pdf, title);
|
|
12219
12362
|
this.setDocumentLogo(pdf);
|
|
12220
12363
|
dataTables.forEach(function (dataTable) {
|
|
12221
|
-
autoTable__default["default"](pdf, Object.assign({ head: [dataTable.header], body: dataTable.rows, foot: [dataTable.footer] }, _this.setTableOptions(pdf, dataTable.caption)));
|
|
12364
|
+
autoTable__default["default"](pdf, Object.assign({ head: [dataTable.header], body: dataTable.rows, foot: [dataTable.footer || []] }, _this.setTableOptions(pdf, dataTable.caption)));
|
|
12222
12365
|
});
|
|
12223
12366
|
return pdf;
|
|
12224
12367
|
};
|
|
@@ -12512,14 +12655,14 @@
|
|
|
12512
12655
|
};
|
|
12513
12656
|
return PropertyHoldingCostsService;
|
|
12514
12657
|
}());
|
|
12515
|
-
PropertyHoldingCostsService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PropertyHoldingCostsService, deps: [{ token: PdfService }, { token:
|
|
12658
|
+
PropertyHoldingCostsService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PropertyHoldingCostsService, deps: [{ token: PdfService }, { token: i1__namespace$1.CurrencyPipe }, { token: i1__namespace$1.DatePipe }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
12516
12659
|
PropertyHoldingCostsService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PropertyHoldingCostsService, providedIn: 'root' });
|
|
12517
12660
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PropertyHoldingCostsService, decorators: [{
|
|
12518
12661
|
type: i0.Injectable,
|
|
12519
12662
|
args: [{
|
|
12520
12663
|
providedIn: 'root'
|
|
12521
12664
|
}]
|
|
12522
|
-
}], ctorParameters: function () { return [{ type: PdfService }, { type:
|
|
12665
|
+
}], ctorParameters: function () { return [{ type: PdfService }, { type: i1__namespace$1.CurrencyPipe }, { type: i1__namespace$1.DatePipe }]; } });
|
|
12523
12666
|
|
|
12524
12667
|
/**
|
|
12525
12668
|
* Service for work with Property Categories
|
|
@@ -14081,6 +14224,7 @@
|
|
|
14081
14224
|
exports.DEFAULT_VEHICLE_EXPENSE = DEFAULT_VEHICLE_EXPENSE;
|
|
14082
14225
|
exports.DEPRECIATION_GROUPS = DEPRECIATION_GROUPS;
|
|
14083
14226
|
exports.DOCUMENT_FILE_TYPES = DOCUMENT_FILE_TYPES;
|
|
14227
|
+
exports.DataTableService = DataTableService;
|
|
14084
14228
|
exports.Depreciation = Depreciation;
|
|
14085
14229
|
exports.DepreciationCapitalProject = DepreciationCapitalProject;
|
|
14086
14230
|
exports.DepreciationCapitalProjectService = DepreciationCapitalProjectService;
|
|
@@ -14099,6 +14243,7 @@
|
|
|
14099
14243
|
exports.DocumentFolder = DocumentFolder;
|
|
14100
14244
|
exports.DocumentFolderService = DocumentFolderService;
|
|
14101
14245
|
exports.ENDPOINTS = ENDPOINTS;
|
|
14246
|
+
exports.EXPORT_DATA_TABLE_COLUMNS = EXPORT_DATA_TABLE_COLUMNS;
|
|
14102
14247
|
exports.EmployeeCollection = EmployeeCollection;
|
|
14103
14248
|
exports.EmployeeDetails = EmployeeDetails;
|
|
14104
14249
|
exports.EmployeeInvite = EmployeeInvite;
|