taxtank-core 0.33.46 → 0.33.47
Sign up to get free protection for your applications and to get access to all the features.
- package/esm2022/src/lib/collections/chart-accounts/chart-accounts-value.collection.mjs +20 -0
- package/esm2022/src/lib/collections/chart-accounts/index.mjs +2 -0
- package/esm2022/src/lib/collections/chart-accounts.collection.mjs +2 -2
- package/esm2022/src/lib/collections/collection.mjs +2 -2
- package/esm2022/src/lib/collections/index.mjs +2 -1
- package/esm2022/src/lib/collections/transaction/transaction.collection.mjs +3 -3
- package/esm2022/src/lib/db/Enums/{allocation-rule-condition-comparison-operator.enum.mjs → bank/allocation-rule/allocation-rule-condition-comparison-operator.enum.mjs} +1 -1
- package/esm2022/src/lib/db/Enums/{allocation-rule-condition-field.enum.mjs → bank/allocation-rule/allocation-rule-condition-field.enum.mjs} +1 -1
- package/esm2022/src/lib/db/Enums/{allocation-rule-condition-operator.enum.mjs → bank/allocation-rule/allocation-rule-condition-operator.enum.mjs} +1 -1
- package/esm2022/src/lib/db/Enums/bank/allocation-rule/allocation-rule-type.enum.mjs +7 -0
- package/esm2022/src/lib/db/Enums/bank/allocation-rule/index.mjs +5 -0
- package/esm2022/src/lib/db/Enums/bank/index.mjs +2 -1
- package/esm2022/src/lib/db/Enums/chart-accounts/business-chart-accounts.enum.mjs +39 -0
- package/esm2022/src/lib/db/Enums/chart-accounts/chart-accounts-list.enum.mjs +20 -66
- package/esm2022/src/lib/db/Enums/chart-accounts/home-office-chart-accounts.enum.mjs +18 -0
- package/esm2022/src/lib/db/Enums/chart-accounts/index.mjs +3 -3
- package/esm2022/src/lib/db/Enums/home-office/home-office-claim-method.enum.mjs +7 -0
- package/esm2022/src/lib/db/Enums/home-office/index.mjs +2 -0
- package/esm2022/src/lib/db/Enums/index.mjs +2 -6
- package/esm2022/src/lib/db/Models/bank/bank-transaction.mjs +2 -2
- package/esm2022/src/lib/db/Models/depreciation/depreciation.mjs +1 -2
- package/esm2022/src/lib/db/Models/sole/sole-business.mjs +2 -1
- package/esm2022/src/lib/db/Models/sole/sole-details.mjs +2 -1
- package/esm2022/src/lib/db/Models/user/user.mjs +1 -1
- package/esm2022/src/lib/db/Models/vehicle/vehicle-claim.mjs +2 -1
- package/esm2022/src/lib/forms/abstract.form.mjs +34 -2
- package/esm2022/src/lib/forms/address/address.form.mjs +1 -1
- package/esm2022/src/lib/forms/home-office/home-office-claim.form.mjs +47 -0
- package/esm2022/src/lib/forms/home-office/home-office-log.form.mjs +15 -0
- package/esm2022/src/lib/forms/home-office/index.mjs +3 -0
- package/esm2022/src/lib/forms/index.mjs +2 -1
- package/esm2022/src/lib/models/chart-accounts/chart-accounts.mjs +17 -11
- package/esm2022/src/lib/models/endpoint/endpoint.mjs +1 -1
- package/esm2022/src/lib/models/endpoint/endpoints.const.mjs +4 -1
- package/esm2022/src/lib/models/home-office/home-office-claim.interface.mjs +2 -0
- package/esm2022/src/lib/models/home-office/home-office-claim.mjs +26 -0
- package/esm2022/src/lib/models/home-office/home-office-log.interface.mjs +2 -0
- package/esm2022/src/lib/models/home-office/home-office-log.mjs +14 -0
- package/esm2022/src/lib/models/home-office/index.mjs +5 -0
- package/esm2022/src/lib/models/index.mjs +2 -1
- package/esm2022/src/lib/models/report/my-tax/my-tax-business-income-or-losses/business-income-or-losses-categories.const.mjs +14 -14
- package/esm2022/src/lib/models/report/my-tax/my-tax-business-income-or-losses/my-tax-business-income/my-tax-business-income.mjs +18 -18
- package/esm2022/src/lib/models/report/my-tax/my-tax-business-income-or-losses/my-tax-business-losses/my-tax-business-losses.mjs +12 -12
- package/esm2022/src/lib/models/sole/sole-invoice-item.mjs +25 -2
- package/esm2022/src/lib/models/transaction/transaction.mjs +6 -3
- package/esm2022/src/lib/services/http/home-office/home-office-claim-messages.enum.mjs +8 -0
- package/esm2022/src/lib/services/http/home-office/home-office-claim.service.mjs +23 -0
- package/esm2022/src/lib/services/http/home-office/home-office-log-messages.enum.mjs +8 -0
- package/esm2022/src/lib/services/http/home-office/home-office-log.service.mjs +23 -0
- package/esm2022/src/lib/services/http/home-office/index.mjs +5 -0
- package/esm2022/src/lib/services/http/index.mjs +3 -1
- package/esm2022/src/lib/services/http/rest-messages.enum.mjs +7 -0
- package/esm2022/src/lib/services/http/transaction/transaction.service.mjs +9 -5
- package/esm2022/src/lib/services/json/chart-accounts/chart-accounts-value.service.mjs +4 -12
- package/fesm2022/taxtank-core.mjs +368 -161
- package/fesm2022/taxtank-core.mjs.map +1 -1
- package/package.json +1 -1
- package/src/lib/collections/chart-accounts/chart-accounts-value.collection.d.ts +12 -0
- package/src/lib/collections/chart-accounts/index.d.ts +1 -0
- package/src/lib/collections/collection.d.ts +1 -1
- package/src/lib/collections/index.d.ts +1 -0
- package/src/lib/db/Enums/bank/allocation-rule/index.d.ts +4 -0
- package/src/lib/db/Enums/bank/index.d.ts +1 -0
- package/src/lib/db/Enums/chart-accounts/business-chart-accounts.enum.d.ts +37 -0
- package/src/lib/db/Enums/chart-accounts/chart-accounts-list.enum.d.ts +20 -66
- package/src/lib/db/Enums/chart-accounts/home-office-chart-accounts.enum.d.ts +16 -0
- package/src/lib/db/Enums/chart-accounts/index.d.ts +2 -2
- package/src/lib/db/Enums/home-office/home-office-claim-method.enum.d.ts +5 -0
- package/src/lib/db/Enums/home-office/index.d.ts +1 -0
- package/src/lib/db/Enums/index.d.ts +1 -4
- package/src/lib/db/Models/depreciation/depreciation.d.ts +0 -1
- package/src/lib/db/Models/sole/sole-business.d.ts +1 -0
- package/src/lib/db/Models/sole/sole-details.d.ts +1 -0
- package/src/lib/db/Models/user/user.d.ts +1 -1
- package/src/lib/db/Models/vehicle/vehicle-claim.d.ts +1 -0
- package/src/lib/forms/abstract.form.d.ts +10 -0
- package/src/lib/forms/home-office/home-office-claim.form.d.ts +12 -0
- package/src/lib/forms/home-office/home-office-log.form.d.ts +5 -0
- package/src/lib/forms/home-office/index.d.ts +2 -0
- package/src/lib/forms/index.d.ts +1 -0
- package/src/lib/models/chart-accounts/chart-accounts.d.ts +3 -1
- package/src/lib/models/home-office/home-office-claim.d.ts +22 -0
- package/src/lib/models/home-office/home-office-claim.interface.d.ts +17 -0
- package/src/lib/models/home-office/home-office-log.d.ts +11 -0
- package/src/lib/models/home-office/home-office-log.interface.d.ts +9 -0
- package/src/lib/models/home-office/index.d.ts +4 -0
- package/src/lib/models/index.d.ts +1 -0
- package/src/lib/models/sole/sole-invoice-item.d.ts +2 -1
- package/src/lib/models/transaction/transaction.d.ts +1 -0
- package/src/lib/services/http/home-office/home-office-claim-messages.enum.d.ts +6 -0
- package/src/lib/services/http/home-office/home-office-claim.service.d.ts +12 -0
- package/src/lib/services/http/home-office/home-office-log-messages.enum.d.ts +6 -0
- package/src/lib/services/http/home-office/home-office-log.service.d.ts +12 -0
- package/src/lib/services/http/home-office/index.d.ts +4 -0
- package/src/lib/services/http/index.d.ts +2 -0
- package/src/lib/services/http/rest-messages.enum.d.ts +5 -0
- package/src/lib/services/http/transaction/transaction.service.d.ts +1 -0
- package/src/lib/services/json/chart-accounts/chart-accounts-value.service.d.ts +3 -7
- package/esm2022/src/lib/db/Enums/allocation-rule-type.enum.mjs +0 -7
- package/esm2022/src/lib/db/Enums/chart-accounts/chart-accounts-invoice.enum.mjs +0 -25
- package/esm2022/src/lib/db/Enums/chart-accounts/chart-accounts-unallocatable-list.enum.mjs +0 -6
- package/esm2022/src/lib/validators/address-corelogic.validator.mjs +0 -19
- package/src/lib/db/Enums/chart-accounts/chart-accounts-invoice.enum.d.ts +0 -23
- package/src/lib/db/Enums/chart-accounts/chart-accounts-unallocatable-list.enum.d.ts +0 -4
- package/src/lib/validators/address-corelogic.validator.d.ts +0 -6
- /package/src/lib/db/Enums/{allocation-rule-condition-comparison-operator.enum.d.ts → bank/allocation-rule/allocation-rule-condition-comparison-operator.enum.d.ts} +0 -0
- /package/src/lib/db/Enums/{allocation-rule-condition-field.enum.d.ts → bank/allocation-rule/allocation-rule-condition-field.enum.d.ts} +0 -0
- /package/src/lib/db/Enums/{allocation-rule-condition-operator.enum.d.ts → bank/allocation-rule/allocation-rule-condition-operator.enum.d.ts} +0 -0
- /package/src/lib/db/Enums/{allocation-rule-type.enum.d.ts → bank/allocation-rule/allocation-rule-type.enum.d.ts} +0 -0
@@ -0,0 +1,18 @@
|
|
1
|
+
export var HomeOfficeChartAccountsEnum;
|
2
|
+
(function (HomeOfficeChartAccountsEnum) {
|
3
|
+
HomeOfficeChartAccountsEnum[HomeOfficeChartAccountsEnum["MOBILE_PHONE"] = 90] = "MOBILE_PHONE";
|
4
|
+
HomeOfficeChartAccountsEnum[HomeOfficeChartAccountsEnum["INTERNET"] = 94] = "INTERNET";
|
5
|
+
HomeOfficeChartAccountsEnum[HomeOfficeChartAccountsEnum["ELECTRICITY_AND_GAS"] = 234] = "ELECTRICITY_AND_GAS";
|
6
|
+
HomeOfficeChartAccountsEnum[HomeOfficeChartAccountsEnum["TELEPHONE"] = 255] = "TELEPHONE";
|
7
|
+
HomeOfficeChartAccountsEnum[HomeOfficeChartAccountsEnum["HOME_OFFICE_CLEANING"] = 11861] = "HOME_OFFICE_CLEANING";
|
8
|
+
HomeOfficeChartAccountsEnum[HomeOfficeChartAccountsEnum["BUSINESS_ELECTRICITY_AND_GAS"] = 892] = "BUSINESS_ELECTRICITY_AND_GAS";
|
9
|
+
HomeOfficeChartAccountsEnum[HomeOfficeChartAccountsEnum["BUSINESS_HOME_OFFICE_CLEANING"] = 893] = "BUSINESS_HOME_OFFICE_CLEANING";
|
10
|
+
HomeOfficeChartAccountsEnum[HomeOfficeChartAccountsEnum["BUSINESS_INTERNET"] = 705] = "BUSINESS_INTERNET";
|
11
|
+
HomeOfficeChartAccountsEnum[HomeOfficeChartAccountsEnum["BUSINESS_TELEPHONE"] = 11860] = "BUSINESS_TELEPHONE";
|
12
|
+
HomeOfficeChartAccountsEnum[HomeOfficeChartAccountsEnum["BUSINESS_MOBILE_PHONE"] = 719] = "BUSINESS_MOBILE_PHONE";
|
13
|
+
HomeOfficeChartAccountsEnum[HomeOfficeChartAccountsEnum["HOME_OFFICE_RENT"] = 889] = "HOME_OFFICE_RENT";
|
14
|
+
HomeOfficeChartAccountsEnum[HomeOfficeChartAccountsEnum["HOME_OFFICE_LOAN"] = 890] = "HOME_OFFICE_LOAN";
|
15
|
+
HomeOfficeChartAccountsEnum[HomeOfficeChartAccountsEnum["HOME_OFFICE_RATES"] = 891] = "HOME_OFFICE_RATES";
|
16
|
+
HomeOfficeChartAccountsEnum[HomeOfficeChartAccountsEnum["HOME_OFFICE_OTHER"] = 894] = "HOME_OFFICE_OTHER";
|
17
|
+
})(HomeOfficeChartAccountsEnum || (HomeOfficeChartAccountsEnum = {}));
|
18
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaG9tZS1vZmZpY2UtY2hhcnQtYWNjb3VudHMuZW51bS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9kYi9FbnVtcy9jaGFydC1hY2NvdW50cy9ob21lLW9mZmljZS1jaGFydC1hY2NvdW50cy5lbnVtLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE1BQU0sQ0FBTixJQUFZLDJCQWVYO0FBZkQsV0FBWSwyQkFBMkI7SUFDckMsOEZBQWlCLENBQUE7SUFDakIsc0ZBQWEsQ0FBQTtJQUNiLDZHQUF5QixDQUFBO0lBQ3pCLHlGQUFlLENBQUE7SUFDZixpSEFBNEIsQ0FBQTtJQUM1QiwrSEFBa0MsQ0FBQTtJQUNsQyxpSUFBbUMsQ0FBQTtJQUNuQyx5R0FBdUIsQ0FBQTtJQUN2Qiw2R0FBMEIsQ0FBQTtJQUMxQixpSEFBMkIsQ0FBQTtJQUMzQix1R0FBc0IsQ0FBQTtJQUN0Qix1R0FBc0IsQ0FBQTtJQUN0Qix5R0FBdUIsQ0FBQTtJQUN2Qix5R0FBdUIsQ0FBQTtBQUN6QixDQUFDLEVBZlcsMkJBQTJCLEtBQTNCLDJCQUEyQixRQWV0QyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBlbnVtIEhvbWVPZmZpY2VDaGFydEFjY291bnRzRW51bSB7XG4gIE1PQklMRV9QSE9ORSA9IDkwLFxuICBJTlRFUk5FVCA9IDk0LFxuICBFTEVDVFJJQ0lUWV9BTkRfR0FTID0gMjM0LFxuICBURUxFUEhPTkUgPSAyNTUsXG4gIEhPTUVfT0ZGSUNFX0NMRUFOSU5HID0gMTE4NjEsXG4gIEJVU0lORVNTX0VMRUNUUklDSVRZX0FORF9HQVMgPSA4OTIsXG4gIEJVU0lORVNTX0hPTUVfT0ZGSUNFX0NMRUFOSU5HID0gODkzLFxuICBCVVNJTkVTU19JTlRFUk5FVCA9IDcwNSxcbiAgQlVTSU5FU1NfVEVMRVBIT05FID0gMTE4NjAsXG4gIEJVU0lORVNTX01PQklMRV9QSE9ORSA9IDcxOSxcbiAgSE9NRV9PRkZJQ0VfUkVOVCA9IDg4OSxcbiAgSE9NRV9PRkZJQ0VfTE9BTiA9IDg5MCxcbiAgSE9NRV9PRkZJQ0VfUkFURVMgPSA4OTEsXG4gIEhPTUVfT0ZGSUNFX09USEVSID0gODk0LFxufVxuIl19
|
@@ -5,7 +5,7 @@ export * from './chart-accounts-heading-tax-deductible.enum';
|
|
5
5
|
export * from './chart-accounts-heading-taxable.enum';
|
6
6
|
export * from './chart-accounts-heading-vehicle-list.enum';
|
7
7
|
export * from './chart-accounts-list.enum';
|
8
|
-
export * from './chart-accounts
|
8
|
+
export * from './business-chart-accounts.enum';
|
9
9
|
export * from './chart-accounts-meta-field-list.enum';
|
10
10
|
export * from './chart-accounts-meta-field-type.enum';
|
11
11
|
export * from './chart-accounts-salary-adjustments-list.enum';
|
@@ -13,6 +13,6 @@ export * from './chart-accounts-adjustment-included-list.enum';
|
|
13
13
|
export * from './chart-accounts-type.enum';
|
14
14
|
export * from './chart-accounts-keep-sign.enum';
|
15
15
|
export * from './chart-accounts-holding-untaxed-income-list.enum';
|
16
|
-
export * from './chart-accounts-invoice.enum';
|
17
16
|
export * from './chart-accounts-property-adjustments-list.enum';
|
18
|
-
|
17
|
+
export * from './home-office-chart-accounts.enum';
|
18
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvZGIvRW51bXMvY2hhcnQtYWNjb3VudHMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxnQ0FBZ0MsQ0FBQztBQUMvQyxjQUFjLDJCQUEyQixDQUFDO0FBQzFDLGNBQWMsb0NBQW9DLENBQUM7QUFDbkQsY0FBYyw4Q0FBOEMsQ0FBQztBQUM3RCxjQUFjLHVDQUF1QyxDQUFDO0FBQ3RELGNBQWMsNENBQTRDLENBQUM7QUFDM0QsY0FBYyw0QkFBNEIsQ0FBQztBQUMzQyxjQUFjLGdDQUFnQyxDQUFDO0FBQy9DLGNBQWMsdUNBQXVDLENBQUM7QUFDdEQsY0FBYyx1Q0FBdUMsQ0FBQztBQUN0RCxjQUFjLCtDQUErQyxDQUFDO0FBQzlELGNBQWMsZ0RBQWdELENBQUM7QUFDL0QsY0FBYyw0QkFBNEIsQ0FBQztBQUMzQyxjQUFjLGlDQUFpQyxDQUFDO0FBQ2hELGNBQWMsbURBQW1ELENBQUM7QUFDbEUsY0FBYyxpREFBaUQsQ0FBQztBQUNoRSxjQUFjLG1DQUFtQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9jaGFydC1hY2NvdW50cy1jYXRlZ29yeS5lbnVtJztcbmV4cG9ydCAqIGZyb20gJy4vY2hhcnQtYWNjb3VudHMtZXRwLmVudW0nO1xuZXhwb3J0ICogZnJvbSAnLi9jaGFyd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nRzLmVudW0nO1xuIl19
|
@@ -0,0 +1,7 @@
|
|
1
|
+
export var HomeOfficeClaimMethodEnum;
|
2
|
+
(function (HomeOfficeClaimMethodEnum) {
|
3
|
+
HomeOfficeClaimMethodEnum[HomeOfficeClaimMethodEnum["FIXED"] = 1] = "FIXED";
|
4
|
+
HomeOfficeClaimMethodEnum[HomeOfficeClaimMethodEnum["ACTUAL"] = 2] = "ACTUAL";
|
5
|
+
HomeOfficeClaimMethodEnum[HomeOfficeClaimMethodEnum["OCCUPANCY"] = 3] = "OCCUPANCY";
|
6
|
+
})(HomeOfficeClaimMethodEnum || (HomeOfficeClaimMethodEnum = {}));
|
7
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaG9tZS1vZmZpY2UtY2xhaW0tbWV0aG9kLmVudW0uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvZGIvRW51bXMvaG9tZS1vZmZpY2UvaG9tZS1vZmZpY2UtY2xhaW0tbWV0aG9kLmVudW0udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxDQUFOLElBQVkseUJBSVg7QUFKRCxXQUFZLHlCQUF5QjtJQUNwQywyRUFBUyxDQUFBO0lBQ1QsNkVBQVUsQ0FBQTtJQUNWLG1GQUFhLENBQUE7QUFDZCxDQUFDLEVBSlcseUJBQXlCLEtBQXpCLHlCQUF5QixRQUlwQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBlbnVtIEhvbWVPZmZpY2VDbGFpbU1ldGhvZEVudW0ge1xuXHRGSVhFRCA9IDEsXG5cdEFDVFVBTCA9IDIsXG5cdE9DQ1VQQU5DWSA9IDMsXG59XG4iXX0=
|
@@ -0,0 +1,2 @@
|
|
1
|
+
export * from './home-office-claim-method.enum';
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvZGIvRW51bXMvaG9tZS1vZmZpY2UvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxpQ0FBaUMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vaG9tZS1vZmZpY2UtY2xhaW0tbWV0aG9kLmVudW0nO1xuIl19
|
@@ -1,8 +1,3 @@
|
|
1
|
-
// @TODO Artem TT-2308 move everything
|
2
|
-
export * from './allocation-rule-condition-comparison-operator.enum';
|
3
|
-
export * from './allocation-rule-condition-field.enum';
|
4
|
-
export * from './allocation-rule-condition-operator.enum';
|
5
|
-
export * from './allocation-rule-type.enum';
|
6
1
|
export * from './bank';
|
7
2
|
export * from './firm';
|
8
3
|
export * from './client';
|
@@ -14,4 +9,5 @@ export * from './tax-return';
|
|
14
9
|
export * from './subscription';
|
15
10
|
export * from './user';
|
16
11
|
export * from './sole';
|
17
|
-
|
12
|
+
export * from './home-office';
|
13
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvZGIvRW51bXMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxRQUFRLENBQUM7QUFDdkIsY0FBYyxRQUFRLENBQUM7QUFDdkIsY0FBYyxVQUFVLENBQUM7QUFFekIsY0FBYyx5QkFBeUIsQ0FBQztBQUN4QyxjQUFjLGtCQUFrQixDQUFDO0FBQ2pDLGNBQWMsc0JBQXNCLENBQUM7QUFFckMsY0FBYyxXQUFXLENBQUM7QUFDMUIsY0FBYyxjQUFjLENBQUM7QUFFN0IsY0FBYyxnQkFBZ0IsQ0FBQztBQUMvQixjQUFjLFFBQVEsQ0FBQztBQUN2QixjQUFjLFFBQVEsQ0FBQztBQUN2QixjQUFjLGVBQWUsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vYmFuayc7XG5leHBvcnQgKiBmcm9tICcuL2Zpcm0nO1xuZXhwb3J0ICogZnJvbSAnLi9jbGllbnQnO1xuXG5leHBvcnQgKiBmcm9tICcuL2FubnVhbC1mcmVxdWVuY3kuZW51bSc7XG5leHBvcnQgKiBmcm9tICcuL2NoYXJ0LWFjY291bnRzJztcbmV4cG9ydCAqIGZyb20gJy4vZG9jdW1lbnQtdHlwZS5lbnVtJztcblxuZXhwb3J0ICogZnJvbSAnLi9ob2xkaW5nJztcbmV4cG9ydCAqIGZyb20gJy4vdGF4LXJldHVybic7XG5cbmV4cG9ydCAqIGZyb20gJy4vc3Vic2NyaXB0aW9uJztcbmV4cG9ydCAqIGZyb20gJy4vdXNlcic7XG5leHBvcnQgKiBmcm9tICcuL3NvbGUnO1xuZXhwb3J0ICogZnJvbSAnLi9ob21lLW9mZmljZSc7XG4iXX0=
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ObservableModel } from '../observable-model';
|
2
2
|
export class BankTransaction extends ObservableModel {
|
3
|
-
static { this.className = '
|
3
|
+
static { this.className = 'BankConnection'; }
|
4
4
|
}
|
5
|
-
//# sourceMappingURL=data:application/json;base64,
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFuay10cmFuc2FjdGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9kYi9Nb2RlbHMvYmFuay9iYW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YWxsb2NhdGlvbnM/OiBUcmFuc2FjdGlvbkFsbG9jYXRpb25bXTtcbn1cbiJdfQ==
|
@@ -1,5 +1,4 @@
|
|
1
1
|
import { TransactionBase } from '../transaction/transaction-base';
|
2
2
|
export class Depreciation extends TransactionBase {
|
3
|
-
static { this.className = 'Depreciation'; }
|
4
3
|
}
|
5
|
-
//# sourceMappingURL=data:application/json;base64,
|
4
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVwcmVjaWF0aW9uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdHQtY29yZS9zcmMvbGliL2RiL01vZGVscy9kZXByZWNpYXRpb24vZGVwcmVjaWF0aW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQVVBLE9BQU8sRUFBRSxlQUFlLEVBQUUsTUFBTSxpQ0FBaUMsQ0FBQztBQUdsRSxNQUFNLE9BQU8sWUFBYSxTQUFRLGVBQWU7Q0E2QmhEIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgRGVwcmVjaWF0aW9uVHlwZUVudW0gfSBmcm9tICcuLi8uLi9FbnVtcy9kZXByZWNpYXRpb24tdHlwZS5lbnVtJztcbmltcG9ydCB7IERlcHJlY2lhdGlvbkNhbGN1bGF0aW9uRW51bSB9IGZyb20gJy4uLy4uL0VudW1zL2RlcHJlY2lhdGlvbi1jYWxjdWxhdGlvbi5lbnVtJztcbmltcG9ydCB7IERlcHJlY2lhdGlvbkNhbGN1bGF0aW9uUGVyY2VudEVudW0gfSBmcm9tICcuLi8uLi9FbnVtcy9kZXByZWNpYXRpb24tY2FsY3VsYXRpb24tcGVyY2VudC5lbnVtJztcbmltcG9ydCB7IFVzZXIgfSBmcm9tICcuLi91c2VyL3VzZXInO1xuaW1wb3J0IHsgUHJvcGVydHkgfSBmcm9tICcuLi9wcm9wZXJ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9mZk1hbnVhbERhdGU/OiBEYXRlO1xuICB3cml0ZU9mZkRhdGU/OiBEYXRlO1xuICBsb3dWYWx1ZVBvb2xEYXRlPzogRGF0ZTtcbiAgZmluYW5jaWFsWWVhcj86IG51bWJlcjtcbiAgY2xvc2VCYWxhbmNlPzogbnVtYmVyO1xuICBkZWxldGVkQXQ/OiBEYXRlO1xuICB1c2VyPzogVXNlcjtcbiAgcHJvcGVydHk/OiBQcm9wZXJ0eTtcbiAgYmFua1RyYW5zYWN0aW9uPzogQmFua1RyYW5zYWN0aW9uO1xuICBkZXByZWNpYXRpb25DYXBpdGFsUHJvamVjdD86IERlcHJlY2lhdGlvbkNhcGl0YWxQcm9qZWN0O1xuICBjaGFydEFjY291bnRzPzogQ2hhcnRBY2NvdW50cztcbiAgcmVwbGFjZT86IERlcHJlY2lhdGlvbjtcbiAgZm9yZWNhc3RzPzogRGVwcmVjaWF0aW9uRm9yZWNhc3RbXTtcbiAgbG9hbj86IExvYW47XG4gIGNyZWF0ZWRCeT86IFVzZXI7XG4gIHVwZGF0ZWRCeT86IFVzZXI7XG4gIGJ1c2luZXNzPzogU29sZUJ1c2luZXNzO1xuICBpc0dTVD86IGJvb2xlYW47XG59XG4iXX0=
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { ObservableModel } from '../observable-model';
|
2
2
|
export class SoleBusiness extends ObservableModel {
|
3
|
+
static { this.className = 'SoleBusiness'; }
|
3
4
|
}
|
4
|
-
//# sourceMappingURL=data:application/json;base64,
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic29sZS1idXNpbmVzcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9kYi9Nb2RlbHMvc29sZS9zb2xlLWJ1c2luZXNzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJ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wb3J0IHsgT2JzZXJ2YWJsZU1vZGVsIH0gZnJvbSAnLi4vb2JzZXJ2YWJsZS1tb2RlbCc7XG5cbmV4cG9ydCBjbGFzcyBTb2xlQnVzaW5lc3MgZXh0ZW5kcyBPYnNlcnZhYmxlTW9kZWwge1xuICBzdGF0aWMgY2xhc3NOYW1lID0gJ1NvbGVCdXNpbmVzcyc7XG4gIG5hbWU/OiBzdHJpbmc7XG4gIGRlc2NyaXB0aW9uPzogc3RyaW5nO1xuICB3ZWJzaXRlPzogc3RyaW5nO1xuICBsb2dvPzogc3RyaW5nO1xuICBkZWxldGVkQXQ/OiBEYXRlO1xuICB1c2VyPzogVXNlcjtcbiAgYWN0aXZpdHk/OiBTb2xlQnVzaW5lc3NBY3Rpdml0eTtcbiAgaXNQcmltYXJ5UHJvZHVjdGlvbj86IGJvb2xlYW47XG4gIGFsbG9jYXRpb25zPzogU29sZUJ1c2luZXNzQWxsb2NhdGlvbltdO1xuICBsb3NzZXM/OiBTb2xlQnVzaW5lc3NMb3NzW107XG4gIGludm9pY2VzPzogU29sZUludm9pY2VbXTtcbiAgaW52b2ljZVRlbXBsYXRlcz86IFNvbGVJbnZvaWNlVGVtcGxhdGVbXTtcbiAgaW5jb21lU291cmNlPzogSW5jb21lU291cmNlO1xuICB2ZWhpY2xlQ2xhaW1zPzogVmVoaWNsZUNsYWltW107XG4gIHZlaGljbGVMb2dib29rcz86IFZlaGljbGVMb2dib29rW107XG4gIHRyYW5zYWN0aW9ucz86IFRyYW5zYWN0aW9uW107XG4gIGRlcHJlY2lhdGlvbnM/OiBEZXByZWNpYXRpb25bXTtcbiAgZmlsZTogRmlsZTtcbn1cbiJdfQ==
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { ObservableModel } from '../observable-model';
|
2
2
|
export class SoleDetails extends ObservableModel {
|
3
|
+
static { this.className = 'SoleDetails'; }
|
3
4
|
}
|
4
|
-
//# sourceMappingURL=data:application/json;base64,
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic29sZS1kZXRhaWxzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdHQtY29yZS9zcmMvbGliL2RiL01vZGVscy9zb2xlL3NvbGUtZGV0YWlscy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFFQSxPQUFPLEVBQUUsZUFBZSxFQUFFLE1BQU0scUJBQXFCLENBQUM7QUFFdEQsTUFBTSxPQUFPLFdBQVksU0FBUSxlQUFlO2FBQ3ZDLGNBQVMsR0FBRyxhQUFhLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBVc2VyIH0gZnJvbSAnLi4vdXNlci91c2VyJztcbmltcG9ydCB7IEFubnVhbEZyZXF1ZW5jeUVudW0gfSBmcm9tICcuLi8uLi9FbnVtcyc7XG5pbXBvcnQgeyBPYnNlcnZhYmxlTW9kZWwgfSBmcm9tICcuLi9vYnNlcnZhYmxlLW1vZGVsJztcblxuZXhwb3J0IGNsYXNzIFNvbGVEZXRhaWxzIGV4dGVuZHMgT2JzZXJ2YWJsZU1vZGVsIHtcbiAgc3RhdGljIGNsYXNzTmFtZSA9ICdTb2xlRGV0YWlscyc7XG4gIGFibj86IHN0cmluZztcbiAgaXNHU1Q/OiBib29sZWFuO1xuICBjcmVhdGVkQXQ/OiBEYXRlO1xuICB1cGRhdGVkQXQ/OiBEYXRlO1xuICBkZWxldGVkQXQ/OiBEYXRlO1xuICB1c2VyPzogVXNlcjtcbiAgLy8gQFRPRE8gdXNlIGluIGZvcm1cbiAgcmVwb3J0aW5nRnJlcXVlbmN5PzogQW5udWFsRnJlcXVlbmN5RW51bTtcbiAgYXV0b0FsbG9jYXRlPzogYm9vbGVhbjtcbn1cbiJdfQ==
|
@@ -2,4 +2,4 @@ import { ObservableModel } from '../observable-model';
|
|
2
2
|
export class User extends ObservableModel {
|
3
3
|
static { this.className = 'User'; }
|
4
4
|
}
|
5
|
-
//# sourceMappingURL=data:application/json;base64,
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXNlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9kYi9Nb2RlbHMvdXNlci91c2VyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWlCQSxPQUFPLEVBQUUsZUFBZSxFQUFFLE1BQU0scUJBQXFCLENBQUM7QUFJdEQsTUFBTSxPQUFPLElBQUssU0FBUSxlQUFlO2FBQ2hDLGNBQVMsR0FBRyxNQUFNLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBVc2VyVGl0bGVFbnVtIH0gZnJvbSAnLi4vLi4vRW51bXMvdXNlci10aXRsZS5lbnVtJztcbmltcG9ydCB7IFVzZXJTdGF0dXNFbnVtIH0gZnJvbSAnLi4vLi4vRW51bXMvdXNlci1zdGF0dXMuZW51bSc7XG5pbXBvcnQgeyBVc2VyUm9sZXNFbnVtIH0gZnJvbSAndGF4dGFuay1jb3JlL2NvbW1vbic7XG5pbXBvcnQgeyBQcm9wZXJ0eSB9IGZyb20gJy4uL3Byb3BlcnR5L3Byb3BlcnR5JztcbmltcG9ydCB7IFByb3BlcnR5U3Vic2NyaXB0aW9uIH0gZnJvbSAnLi4vcHJvcGVydHkvcHJvcGVydHktc3Vic2NyaXB0aW9uJztcbmltcG9ydCB7IFNlcnZpY2VTdWJzY3JpcHRpb24gfSBmcm9tICcuLi9zdWJzY3JpcHRpb24vc2VydmljZS1zdWJzY3JpcHRpb24nO1xuaW1wb3J0IHsgVXNlckV2ZW50U2V0dGluZyB9IGZyb20gJy4vdXNlci1ldmVudC1zZXR0aW5nJztcbmltcG9ydCB7IEJhbmtDb25uZWN0aW9uI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TtcbiAgY2xpZW50RGV0YWlscz86IENsaWVudERldGFpbHM7XG4gIGVtcGxveWVlRGV0YWlscz86IEVtcGxveWVlRGV0YWlscztcbiAgc29sZURldGFpbHM/OiBTb2xlRGV0YWlscztcbiAgZmlsZTogRmlsZTtcbiAgYmxhY2tsaXN0U2V0dXBJdGVtczogU2V0dXBJdGVtW107XG59XG4iXX0=
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { ObservableModel } from '../observable-model';
|
2
2
|
export class VehicleClaim extends ObservableModel {
|
3
|
+
static { this.className = 'VehicleClaim'; }
|
3
4
|
}
|
4
|
-
//# sourceMappingURL=data:application/json;base64,
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmVoaWNsZS1jbGFpbS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9kYi9Nb2RlbHMvdmVoaWNsZS92ZWhpY2xlLWNsYWltLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUdBLE9BQU8sRUFBRSxlQUFlLEVBQUUsTUFBTSxxQkFBcUIsQ0FBQztBQUV0RCxNQUFNLE9BQU8sWUFBYSxTQUFRLGVBQWU7YUFDeEMsY0FBUyxHQUFHLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IFVzZXIgfSBmcm9tICcuLi91c2VyL3VzZXInO1xuaW1wb3J0IHsgU29sZUJ1c2luZXNzIH0gZnJvbSAnLi4vc29sZS9zb2xlLWJ1c2luZXNzJztcbmltcG9ydCB7IFZlaGljbGVDbGFpbURldGFpbHMgfSBmcm9tICcuL3ZlaGljbGUtY2xhaW0tZGV0YWlscyc7XG5pbXBvcnQgeyBPYnNlcnZhYmxlTW9kZWwgfSBmcm9tICcuLi9vYnNlcnZhYmxlLW1vZGVsJztcblxuZXhwb3J0IGNsYXNzIFZlaGljbGVDbGFpbSBleHRlbmRzIE9ic2VydmFibGVNb2RlbCB7XG4gIHN0YXRpYyBjbGFzc05hbWUgPSAnVmVoaWNsZUNsYWltJztcbiAga2lsb21ldGVycz86IG51bWJlcjtcbiAgd29ya1VzYWdlPzogbnVtYmVyO1xuICBkZXRhaWxzPzogVmVoaWNsZUNsYWltRGV0YWlscztcbiAgdXNlcj86IFVzZXI7XG4gIGJ1c2luZXNzPzogU29sZUJ1c2luZXNzO1xufVxuIl19
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { FormGroup } from '@angular/forms';
|
1
|
+
import { FormGroup, Validators } from '@angular/forms';
|
2
2
|
import { EventEmitter } from '@angular/core';
|
3
3
|
import { plainToClass } from 'class-transformer';
|
4
4
|
import isEqual from 'lodash/isEqual';
|
@@ -112,5 +112,37 @@ export class AbstractForm extends FormGroup {
|
|
112
112
|
fieldChanged(name) {
|
113
113
|
return this.get(name).value !== this.initialValue[name];
|
114
114
|
}
|
115
|
+
addValidators(validators, controls = []) {
|
116
|
+
if (!controls.length) {
|
117
|
+
return super.addValidators(validators);
|
118
|
+
}
|
119
|
+
controls.forEach(control => {
|
120
|
+
control.addValidators(Validators.required);
|
121
|
+
});
|
122
|
+
}
|
123
|
+
removeValidators(validators, controls = []) {
|
124
|
+
if (!controls.length) {
|
125
|
+
return super.removeValidators(validators);
|
126
|
+
}
|
127
|
+
controls.forEach(control => {
|
128
|
+
control.removeValidators(Validators.required);
|
129
|
+
});
|
130
|
+
}
|
131
|
+
disable(opts, controls = []) {
|
132
|
+
if (!controls.length) {
|
133
|
+
return super.disable(opts);
|
134
|
+
}
|
135
|
+
controls.forEach(control => {
|
136
|
+
control.disable(opts);
|
137
|
+
});
|
138
|
+
}
|
139
|
+
enable(opts, controls = []) {
|
140
|
+
if (!controls.length) {
|
141
|
+
return super.enable(opts);
|
142
|
+
}
|
143
|
+
controls.forEach(control => {
|
144
|
+
control.enable(opts);
|
145
|
+
});
|
146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ubGVuZ3RoKSB7XG4gICAgICByZXR1cm4gc3VwZXIuZW5hYmxlKG9wdHMpO1xuICAgIH1cblxuICAgIGNvbnRyb2xzLmZvckVhY2goY29udHJvbCA9PiB7XG4gICAgICBjb250cm9sLmVuYWJsZShvcHRzKTtcbiAgICB9KTtcbiAgfVxufVxuIl19
|
@@ -187,4 +187,4 @@ export class AddressForm extends AbstractForm {
|
|
187
187
|
});
|
188
188
|
}
|
189
189
|
}
|
190
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWRkcmVzcy5mb3JtLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdHQtY29yZS9zcmMvbGliL2Zvcm1zL2FkZHJlc3MvYWRkcmVzcy5mb3JtLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxrQkFBa0IsQ0FBQztBQUNoRCxPQUFPLEVBQVcsbUJBQW1CLEVBQUUsT0FBTyxFQUFFLE1BQU0sY0FBYyxDQUFDO0FBQ3JFLE9BQU8sRUFBRSxrQkFBa0IsRUFBRSxVQUFVLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUNoRSxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBRTdDLE9BQU8sRUFBRSxZQUFZLEVBQUUsb0JBQW9CLEVBQUUsTUFBTSxFQUFFLEdBQUcsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBQ2pGLE9BQU8sRUFBRSxlQUFlLEVBQUUsTUFBTSxrQ0FBa0MsQ0FBQztBQUVuRSxPQUFPLEVBQUUsS0FBSyxFQUFFLE1BQU0sTUFBTSxDQUFDO0FBRTdCOztHQUVHO0FBQ0gsTUFBTSxPQUFPLFdBQVksU0FBUSxZQUFxQjtJQUNwRDs7T0FFRzthQU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gICAgICByZXR1cm47XG4gICAgICB9XG5cbiAgICAgIHRoaXMuZGlzYWJsZUNvcmVsb2dpY0ZpZWxkcygpO1xuICAgIH0pO1xuICB9XG59XG4iXX0=
|
@@ -0,0 +1,47 @@
|
|
1
|
+
import { FormControl, Validators } from '@angular/forms';
|
2
|
+
import { plainToClass } from 'class-transformer';
|
3
|
+
import { AbstractForm } from '../abstract.form';
|
4
|
+
import { HomeOfficeClaim } from '../../models';
|
5
|
+
import { HomeOfficeClaimMethodEnum } from '../../db/Enums';
|
6
|
+
export class HomeOfficeClaimForm extends AbstractForm {
|
7
|
+
constructor(claim = plainToClass(HomeOfficeClaim, {})) {
|
8
|
+
super({
|
9
|
+
method: new FormControl(claim.method, Validators.required),
|
10
|
+
hours: new FormControl(claim.hours, [Validators.required, Validators.min(0), Validators.max(5000)]),
|
11
|
+
electricityAndGas: new FormControl(claim.electricityAndGas, [Validators.required, Validators.min(0), Validators.max(100)]),
|
12
|
+
cleaning: new FormControl(claim.cleaning, [Validators.required, Validators.min(0), Validators.max(100)]),
|
13
|
+
internet: new FormControl(claim.internet, [Validators.required, Validators.min(0), Validators.max(100)]),
|
14
|
+
telephone: new FormControl(claim.telephone, [Validators.required, Validators.min(0), Validators.max(100)]),
|
15
|
+
mobile: new FormControl(claim.mobile, [Validators.required, Validators.min(0), Validators.max(100)]),
|
16
|
+
area: new FormControl(claim.area, [Validators.required, Validators.min(0), Validators.max(100)]),
|
17
|
+
}, claim);
|
18
|
+
this.listenEvents();
|
19
|
+
this.switchMethod(claim.method);
|
20
|
+
}
|
21
|
+
listenEvents() {
|
22
|
+
this.get('method').valueChanges.subscribe(method => {
|
23
|
+
this.switchMethod(method);
|
24
|
+
});
|
25
|
+
}
|
26
|
+
switchMethod(method) {
|
27
|
+
this.disable({}, [...this.occupancyControls, this.controls.hours]);
|
28
|
+
switch (method) {
|
29
|
+
case HomeOfficeClaimMethodEnum.FIXED:
|
30
|
+
this.controls.hours.enable();
|
31
|
+
break;
|
32
|
+
case HomeOfficeClaimMethodEnum.ACTUAL:
|
33
|
+
this.enable({}, this.actualControls);
|
34
|
+
break;
|
35
|
+
case HomeOfficeClaimMethodEnum.OCCUPANCY:
|
36
|
+
this.enable({}, this.occupancyControls);
|
37
|
+
break;
|
38
|
+
}
|
39
|
+
}
|
40
|
+
get actualControls() {
|
41
|
+
return [this.controls.electricityAndGas, this.controls.cleaning, this.controls.internet, this.controls.telephone, this.controls.mobile];
|
42
|
+
}
|
43
|
+
get occupancyControls() {
|
44
|
+
return [...this.actualControls, this.controls.area];
|
45
|
+
}
|
46
|
+
}
|
47
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaG9tZS1vZmZpY2UtY2xhaW0uZm9ybS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9mb3Jtcy9ob21lLW9mZmljZS9ob21lLW9mZmljZS1jbGFpbS5mb3JtLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBbUIsV0FBVyxFQUFFLFVBQVUsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBQzFFLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxtQkFBbUIsQ0FBQztBQUNqRCxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0sa0JBQWtCLENBQUM7QUFDaEQsT0FBTyxFQUFFLGVBQWUsRUFBRSxNQUFNLGNBQWMsQ0FBQztBQUUvQyxPQUFPLEVBQUUseUJBQXlCLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUUzRCxNQUFNLE9BQU8sbUJBQW9CLFNBQVEsWUFBNkI7SUFDcEUsWUFBWSxLQUFLLEdBQUcsWUFBWSxDQUFDLGVBQWUsRUFBRSxFQUFFLENBQUM7UUFDbkQsS0FBSyxDQUFDO1lBQ0osTUF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ICAgY2FzZSBIb21lT2ZmaWNlQ2xhaW1NZXRob2RFbnVtLkZJWEVEOlxuICAgICAgICB0aGlzLmNvbnRyb2xzLmhvdXJzLmVuYWJsZSgpO1xuICAgICAgICBicmVhaztcbiAgICAgIGNhc2UgSG9tZU9mZmljZUNsYWltTWV0aG9kRW51bS5BQ1RVQUw6XG4gICAgICAgIHRoaXMuZW5hYmxlKHt9LCB0aGlzLmFjdHVhbENvbnRyb2xzKTtcbiAgICAgICAgYnJlYWs7XG4gICAgICBjYXNlIEhvbWVPZmZpY2VDbGFpbU1ldGhvZEVudW0uT0NDVVBBTkNZOlxuICAgICAgICB0aGlzLmVuYWJsZSh7fSwgdGhpcy5vY2N1cGFuY3lDb250cm9scyk7XG4gICAgICAgIGJyZWFrO1xuICAgIH1cbiAgfVxuXG4gIGdldCBhY3R1YWxDb250cm9scygpOiBBYnN0cmFjdENvbnRyb2xbXSB7XG4gICAgcmV0dXJuIFt0aGlzLmNvbnRyb2xzLmVsZWN0cmljaXR5QW5kR2FzLCB0aGlzLmNvbnRyb2xzLmNsZWFuaW5nLCB0aGlzLmNvbnRyb2xzLmludGVybmV0LCB0aGlzLmNvbnRyb2xzLnRlbGVwaG9uZSwgdGhpcy5jb250cm9scy5tb2JpbGVdO1xuICB9XG5cbiAgZ2V0IG9jY3VwYW5jeUNvbnRyb2xzKCk6IEFic3RyYWN0Q29udHJvbFtdIHtcbiAgICByZXR1cm4gWy4uLnRoaXMuYWN0dWFsQ29udHJvbHMsIHRoaXMuY29udHJvbHMuYXJlYV07XG4gIH1cbn1cbiJdfQ==
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { FormControl, Validators } from '@angular/forms';
|
2
|
+
import { plainToClass } from 'class-transformer';
|
3
|
+
import { AbstractForm } from '../abstract.form';
|
4
|
+
import { HomeOfficeLog } from '../../models/home-office';
|
5
|
+
import { currentFinYearValidator } from '../../validators';
|
6
|
+
export class HomeOfficeLogForm extends AbstractForm {
|
7
|
+
constructor(log = plainToClass(HomeOfficeLog, {})) {
|
8
|
+
super({
|
9
|
+
date: new FormControl(log.date, [Validators.required, currentFinYearValidator()]),
|
10
|
+
hours: new FormControl(log.hours, [Validators.required, Validators.min(0), Validators.max(5000)]),
|
11
|
+
description: new FormControl(log.description, [Validators.required]),
|
12
|
+
}, log);
|
13
|
+
}
|
14
|
+
}
|
15
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaG9tZS1vZmZpY2UtbG9nLmZvcm0uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvZm9ybXMvaG9tZS1vZmZpY2UvaG9tZS1vZmZpY2UtbG9nLmZvcm0udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFdBQVcsRUFBRSxVQUFVLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUN6RCxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0sbUJBQW1CLENBQUM7QUFDakQsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGtCQUFrQixDQUFDO0FBQ2hELE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSwwQkFBMEIsQ0FBQztBQUN6RCxPQUFPLEVBQUUsdUJBQXVCLEVBQUUsTUFBTSxrQkFBa0IsQ0FBQztBQUUzRCxNQUFNLE9BQU8saUJBQWtCLFNBQVEsWUFBMkI7SUFDaEUsWUFBWSxHQUFHLEdBQUcsWUFBWSxDQUFDLGFBQWEsRUFBRSxFQUFFLENBQUM7UUFDL0MsS0FBSyxDQUFDO1lBQ0osSUFBSSxFQUFFLElBQUksV0FBVyxDQUFDLEdBQUcsQ0FBQyxJQUFJLEVBQUUsQ0FBQyxVQUFVLENBQUMsUUFBUSxFQUFFLHVCQUF1QixFQUFFLENBQUMsQ0FBQztZQUNqRixLQUFLLEVBQUUs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gICAgICBob3VyczogbmV3IEZvcm1Db250cm9sKGxvZy5ob3VycywgW1ZhbGlkYXRvcnMucmVxdWlyZWQsIFZhbGlkYXRvcnMubWluKDApLCBWYWxpZGF0b3JzLm1heCg1MDAwKV0pLFxuICAgICAgZGVzY3JpcHRpb246IG5ldyBGb3JtQ29udHJvbChsb2cuZGVzY3JpcHRpb24sIFtWYWxpZGF0b3JzLnJlcXVpcmVkXSksXG4gICAgfSwgbG9nKTtcbiAgfVxufVxuIl19
|
@@ -0,0 +1,3 @@
|
|
1
|
+
export * from './home-office-claim.form';
|
2
|
+
export * from './home-office-log.form';
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvZm9ybXMvaG9tZS1vZmZpY2UvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYywwQkFBMEIsQ0FBQztBQUN6QyxjQUFjLHdCQUF3QixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9ob21lLW9mZmljZS1jbGFpbS5mb3JtJztcbmV4cG9ydCAqIGZyb20gJy4vaG9tZS1vZmZpY2UtbG9nLmZvcm0nO1xuIl19
|
@@ -27,4 +27,5 @@ export * from './holding';
|
|
27
27
|
export * from './chart-accounts';
|
28
28
|
export * from './tax-review';
|
29
29
|
export * from './chat';
|
30
|
-
|
30
|
+
export * from './home-office';
|
31
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvZm9ybXMvaW5kZXgudHMiXSwibmF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