taxtank-core 0.33.5 → 0.33.6
Sign up to get free protection for your applications and to get access to all the features.
- package/esm2022/common/src/common.module.mjs +4 -4
- package/esm2022/common/src/interceptors/interceptors.module.mjs +4 -4
- package/esm2022/common/src/interceptors/jwt-interceptor.mjs +5 -5
- package/esm2022/common/src/services/auth/auth.service.mjs +5 -5
- package/esm2022/common/src/services/auth/jwt.service.mjs +3 -3
- package/esm2022/common/src/services/mixpanel.service.mjs +5 -5
- package/esm2022/src/lib/collections/collection-dictionary.mjs +12 -10
- package/esm2022/src/lib/collections/collection.mjs +5 -5
- package/esm2022/src/lib/collections/property/property.collection.mjs +2 -2
- package/esm2022/src/lib/core.module.mjs +4 -4
- package/esm2022/src/lib/forms/abstract.form.mjs +1 -1
- package/esm2022/src/lib/forms/address/address.form.mjs +1 -1
- package/esm2022/src/lib/forms/firm/client-movement.form.mjs +4 -4
- package/esm2022/src/lib/forms/firm/employee-details.form.mjs +4 -4
- package/esm2022/src/lib/interceptors/basiq-client-id.interceptor.mjs +4 -4
- package/esm2022/src/lib/interceptors/basiq-token.interceptor.mjs +4 -4
- package/esm2022/src/lib/interceptors/corelogic-interceptor.mjs +5 -5
- package/esm2022/src/lib/interceptors/financial-year-interceptor.mjs +5 -5
- package/esm2022/src/lib/interceptors/interceptors.module.mjs +4 -4
- package/esm2022/src/lib/interceptors/preloader.interceptor.mjs +4 -4
- package/esm2022/src/lib/interceptors/rewardful.interceptor.mjs +5 -5
- package/esm2022/src/lib/interceptors/user-switcher-interceptor.mjs +5 -5
- package/esm2022/src/lib/models/depreciation/depreciation.mjs +1 -1
- package/esm2022/src/lib/models/financial-year/financial-year.mjs +1 -1
- package/esm2022/src/lib/models/report/index.mjs +3 -1
- package/esm2022/src/lib/models/report/report.interface.mjs +2 -0
- package/esm2022/src/lib/models/report/reports.const.mjs +73 -0
- package/esm2022/src/lib/models/service-subscription/service-subscription.mjs +2 -2
- package/esm2022/src/lib/models/sole/sole-invoice.mjs +1 -1
- package/esm2022/src/lib/models/transaction/transaction.mjs +1 -1
- package/esm2022/src/lib/models/vehicle/vehicle-claim.mjs +1 -1
- package/esm2022/src/lib/pipes/app-currency.pipe.mjs +3 -3
- package/esm2022/src/lib/pipes/safe-url.pipe.mjs +4 -4
- package/esm2022/src/lib/services/account-setup/account-setup.service.mjs +4 -4
- package/esm2022/src/lib/services/asset/assets.service.mjs +5 -5
- package/esm2022/src/lib/services/bank/bank-account-calculation.service.mjs +3 -3
- package/esm2022/src/lib/services/data.service.mjs +3 -3
- package/esm2022/src/lib/services/event/event-dispatcher.service.mjs +3 -3
- package/esm2022/src/lib/services/event/sse.service.mjs +5 -5
- package/esm2022/src/lib/services/export/export-formatter.service.mjs +4 -4
- package/esm2022/src/lib/services/firm/current-firm-branch.service.mjs +3 -3
- package/esm2022/src/lib/services/header-title/header-title.service.mjs +4 -4
- package/esm2022/src/lib/services/http/address/address.service.mjs +5 -5
- package/esm2022/src/lib/services/http/bank/bank-account/bank-account.service.mjs +5 -5
- package/esm2022/src/lib/services/http/bank/bank-connection/bank-connection.service.mjs +5 -5
- package/esm2022/src/lib/services/http/bank/bank-transaction/bank-transaction.service.mjs +5 -5
- package/esm2022/src/lib/services/http/bank/bank.service.mjs +3 -3
- package/esm2022/src/lib/services/http/bank/basiq/basiq-token.service.mjs +3 -3
- package/esm2022/src/lib/services/http/bank/basiq/basiq.service.mjs +6 -6
- package/esm2022/src/lib/services/http/budget/budget.service.mjs +3 -3
- package/esm2022/src/lib/services/http/chart-accounts/chart-accounts-depreciations/chart-accounts-depreciations.service.mjs +3 -3
- package/esm2022/src/lib/services/http/chart-accounts/chart-accounts.service.mjs +3 -3
- package/esm2022/src/lib/services/http/chat/chat.service.mjs +5 -5
- package/esm2022/src/lib/services/http/chat/message-document.service.mjs +5 -5
- package/esm2022/src/lib/services/http/chat/message.service.mjs +5 -5
- package/esm2022/src/lib/services/http/client/annual-client-details.service.mjs +3 -3
- package/esm2022/src/lib/services/http/client/capital-loss/capital-loss.service.mjs +4 -4
- package/esm2022/src/lib/services/http/client/client-coupon.service.mjs +3 -3
- package/esm2022/src/lib/services/http/client/occupation/occupation.service.mjs +5 -5
- package/esm2022/src/lib/services/http/depreciation/depreciation-capital-project/depreciation-capital-project.service.mjs +3 -3
- package/esm2022/src/lib/services/http/depreciation/depreciation.service.mjs +5 -5
- package/esm2022/src/lib/services/http/document/document-folder/document-folder.service.mjs +3 -3
- package/esm2022/src/lib/services/http/document/document.service.mjs +3 -3
- package/esm2022/src/lib/services/http/facebook/facebook.service.mjs +6 -6
- package/esm2022/src/lib/services/http/file/file.service.mjs +3 -3
- package/esm2022/src/lib/services/http/firm/client-invite/client-invite.service.mjs +5 -5
- package/esm2022/src/lib/services/http/firm/client-movement/client-movement.service.mjs +5 -5
- package/esm2022/src/lib/services/http/firm/employee/employee.service.mjs +3 -3
- package/esm2022/src/lib/services/http/firm/employee-invite/employee-invite.service.mjs +3 -3
- package/esm2022/src/lib/services/http/firm/firm-branch/firm-branch.service.mjs +4 -4
- package/esm2022/src/lib/services/http/firm/firm.service.mjs +5 -5
- package/esm2022/src/lib/services/http/firm/portfolio-report/client-portfolio-report.service.mjs +5 -5
- package/esm2022/src/lib/services/http/google/google.service.mjs +5 -5
- package/esm2022/src/lib/services/http/holding/holding-import/holding-import.service.mjs +4 -4
- package/esm2022/src/lib/services/http/holding/holding-sale.service.mjs +3 -3
- package/esm2022/src/lib/services/http/holding/holding-type.service.mjs +3 -3
- package/esm2022/src/lib/services/http/holding/holding.service.mjs +5 -5
- package/esm2022/src/lib/services/http/income-source/income-source-forecast/income-source-forecast.service.mjs +5 -5
- package/esm2022/src/lib/services/http/income-source/income-source.service.mjs +5 -5
- package/esm2022/src/lib/services/http/income-source/salary-forecast/salary-forecast.service.mjs +5 -5
- package/esm2022/src/lib/services/http/income-source/sole-forecast/sole-forecast.service.mjs +5 -5
- package/esm2022/src/lib/services/http/loan/borrowing-expense/borrowing-expense.service.mjs +5 -5
- package/esm2022/src/lib/services/http/loan/loan.service.mjs +5 -5
- package/esm2022/src/lib/services/http/pdf/pdf.service.mjs +5 -5
- package/esm2022/src/lib/services/http/property/borrowing-report/borrowing-report.service.mjs +3 -3
- package/esm2022/src/lib/services/http/property/property-category/property-category.service.mjs +3 -3
- package/esm2022/src/lib/services/http/property/property-category-movement/property-category-movement.service.mjs +3 -3
- package/esm2022/src/lib/services/http/property/property-document/property-document.service.mjs +3 -3
- package/esm2022/src/lib/services/http/property/property-sale/property-sale.service.mjs +3 -3
- package/esm2022/src/lib/services/http/property/property-share/property-share.service.mjs +5 -5
- package/esm2022/src/lib/services/http/property/property-valuation/property-valuation.service.mjs +3 -3
- package/esm2022/src/lib/services/http/property/property.service.mjs +5 -5
- package/esm2022/src/lib/services/http/rest/rest-old.service.mjs +5 -5
- package/esm2022/src/lib/services/http/rest/rest.service.mjs +5 -5
- package/esm2022/src/lib/services/http/service-notification/service-notification.service.mjs +5 -5
- package/esm2022/src/lib/services/http/setup-item/setup-item.service.mjs +3 -3
- package/esm2022/src/lib/services/http/sole/bas-report/bas-report.service.mjs +3 -3
- package/esm2022/src/lib/services/http/sole/sole-business/sole-business.service.mjs +3 -3
- package/esm2022/src/lib/services/http/sole/sole-business-activity/sole-business-activity.service.mjs +3 -3
- package/esm2022/src/lib/services/http/sole/sole-business-loss/sole-business-loss-rules/sole-business-loss-offset-rule.service.mjs +3 -3
- package/esm2022/src/lib/services/http/sole/sole-business-loss/sole-business-loss.service.mjs +5 -5
- package/esm2022/src/lib/services/http/sole/sole-contact/sole-contact.service.mjs +3 -3
- package/esm2022/src/lib/services/http/sole/sole-depreciation-method/sole-depreciation-method.service.mjs +5 -5
- package/esm2022/src/lib/services/http/sole/sole-details/sole-details.service.mjs +5 -5
- package/esm2022/src/lib/services/http/sole/sole-invoice/sole-invoice.service.mjs +5 -5
- package/esm2022/src/lib/services/http/sole/sole-invoice-template/sole-invoice-template.service.mjs +3 -3
- package/esm2022/src/lib/services/http/subscription/service-payment/service-payment.service.mjs +3 -3
- package/esm2022/src/lib/services/http/subscription/service-payment-method/service-payment-method.service.mjs +5 -5
- package/esm2022/src/lib/services/http/subscription/service-price/service-price.service.mjs +3 -3
- package/esm2022/src/lib/services/http/subscription/service-product/service-product.service.mjs +3 -3
- package/esm2022/src/lib/services/http/subscription/service-subscription/subscription.service.mjs +5 -5
- package/esm2022/src/lib/services/http/tax-review/tax-review-history/tax-review-history.service.mjs +5 -5
- package/esm2022/src/lib/services/http/tax-review/tax-review.service.mjs +5 -5
- package/esm2022/src/lib/services/http/tax-summary/tax-summary.service.mjs +5 -5
- package/esm2022/src/lib/services/http/transaction/transaction-allocation/allocation-rule/allocation-rule.service.mjs +3 -3
- package/esm2022/src/lib/services/http/transaction/transaction-allocation/transaction-allocation.service.mjs +5 -5
- package/esm2022/src/lib/services/http/transaction/transaction.service.mjs +5 -5
- package/esm2022/src/lib/services/http/user/financial-year/financial-year.service.mjs +5 -5
- package/esm2022/src/lib/services/http/user/user-event-setting/user-event-setting.service.mjs +3 -3
- package/esm2022/src/lib/services/http/user/user-event-type/user-event-type.service.mjs +3 -3
- package/esm2022/src/lib/services/http/user/user.service.mjs +5 -5
- package/esm2022/src/lib/services/http/user/users-invite/users-invite.service.mjs +3 -3
- package/esm2022/src/lib/services/http/vehicle/vehicle-claim-details.service.mjs +5 -5
- package/esm2022/src/lib/services/http/vehicle/vehicle-claim.service.mjs +5 -5
- package/esm2022/src/lib/services/http/vehicle/vehicle-logbook/vehicle-logbook.service.mjs +3 -3
- package/esm2022/src/lib/services/http/vehicle/vehicle.service.mjs +4 -4
- package/esm2022/src/lib/services/http/youtube/youtube.service.mjs +6 -6
- package/esm2022/src/lib/services/intercom/intercom.service.mjs +5 -5
- package/esm2022/src/lib/services/json/chart-accounts/chart-accounts-value.service.mjs +4 -4
- package/esm2022/src/lib/services/json/holding/holding-type-exchange.service.mjs +4 -4
- package/esm2022/src/lib/services/json/income-source/income-source-type.service.mjs +4 -4
- package/esm2022/src/lib/services/json/tax-exemption/tax-exemption.service.mjs +4 -4
- package/esm2022/src/lib/services/json/tax-return/tax-return-item.service.mjs +4 -4
- package/esm2022/src/lib/services/pdf/pdf-from-dom-element/pdf-from-dom-element.service.mjs +3 -3
- package/esm2022/src/lib/services/pdf/pdf-from-table/pdf-from-data-table/pdf-from-data-table.service.mjs +4 -4
- package/esm2022/src/lib/services/pdf/pdf-from-table/pdf-from-html-table/pdf-from-html-table.service.mjs +3 -3
- package/esm2022/src/lib/services/pdf/pdf-from-table/pdf-from-table.service.mjs +3 -3
- package/esm2022/src/lib/services/preloader/preloader.service.mjs +4 -4
- package/esm2022/src/lib/services/property/corelogic/corelogic.service.mjs +5 -5
- package/esm2022/src/lib/services/property/equity-position-chart/equity-position-chart.service.mjs +5 -5
- package/esm2022/src/lib/services/property/property-calculation/property-calculation.service.mjs +3 -3
- package/esm2022/src/lib/services/report/property/property-transaction-report.service.mjs +4 -4
- package/esm2022/src/lib/services/toast/toast.service.mjs +3 -3
- package/esm2022/src/lib/services/user/user-switcher.service.mjs +3 -3
- package/esm2022/src/lib/services/xlsx/xlsx.service.mjs +3 -3
- package/esm2022/src/lib/validators/unique-email.validator.mjs +4 -4
- package/fesm2022/taxtank-core-common.mjs +26 -26
- package/fesm2022/taxtank-core.mjs +595 -522
- package/fesm2022/taxtank-core.mjs.map +1 -1
- package/package.json +1 -1
- package/src/lib/collections/collection-dictionary.d.ts +1 -1
- package/src/lib/collections/collection.d.ts +3 -4
- package/src/lib/models/report/index.d.ts +2 -0
- package/src/lib/models/report/report.interface.d.ts +7 -0
- package/src/lib/models/report/reports.const.d.ts +3 -0
@@ -19,13 +19,13 @@ export class CommonModule {
|
|
19
19
|
]
|
20
20
|
};
|
21
21
|
}
|
22
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
23
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
22
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CommonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
23
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.12", ngImport: i0, type: CommonModule, imports: [AngularCommonModule,
|
24
24
|
InterceptorsModule] }); }
|
25
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
25
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CommonModule, imports: [AngularCommonModule,
|
26
26
|
InterceptorsModule] }); }
|
27
27
|
}
|
28
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
28
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CommonModule, decorators: [{
|
29
29
|
type: NgModule,
|
30
30
|
args: [{
|
31
31
|
declarations: [],
|
@@ -3,9 +3,9 @@ import { HTTP_INTERCEPTORS } from '@angular/common/http';
|
|
3
3
|
import { JwtInterceptor } from './jwt-interceptor';
|
4
4
|
import * as i0 from "@angular/core";
|
5
5
|
export class InterceptorsModule {
|
6
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
7
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
8
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
6
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: InterceptorsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
7
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.12", ngImport: i0, type: InterceptorsModule }); }
|
8
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: InterceptorsModule, providers: [
|
9
9
|
{
|
10
10
|
provide: HTTP_INTERCEPTORS,
|
11
11
|
useClass: JwtInterceptor,
|
@@ -13,7 +13,7 @@ export class InterceptorsModule {
|
|
13
13
|
}
|
14
14
|
] }); }
|
15
15
|
}
|
16
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
16
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: InterceptorsModule, decorators: [{
|
17
17
|
type: NgModule,
|
18
18
|
args: [{
|
19
19
|
providers: [
|
@@ -126,13 +126,13 @@ export class JwtInterceptor {
|
|
126
126
|
// });
|
127
127
|
});
|
128
128
|
}
|
129
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
130
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
129
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: JwtInterceptor, deps: [{ token: i1.JwtService }, { token: i1.AuthService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
130
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: JwtInterceptor }); }
|
131
131
|
}
|
132
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
132
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: JwtInterceptor, decorators: [{
|
133
133
|
type: Injectable
|
134
|
-
}], ctorParameters:
|
134
|
+
}], ctorParameters: () => [{ type: i1.JwtService }, { type: i1.AuthService }, { type: undefined, decorators: [{
|
135
135
|
type: Inject,
|
136
136
|
args: ['environment']
|
137
|
-
}] }]
|
137
|
+
}] }] });
|
138
138
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiand0L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lzLnNuYWNrQmFyLm9wZW4oJ1NvbWV0aGluZyB3ZW50IHdyb25nJywgJycsIHtcbiAgICAgIC8vICAgcGFuZWxDbGFzczogJ2Vycm9yJ1xuICAgICAgLy8gfSk7XG5cbiAgICAgIHJldHVybjtcbiAgICB9XG4gICAgZXJyb3JSZXNwb25zZS5lcnJvci52aW9sYXRpb25zLmZvckVhY2goKHZpb2xhdGlvbjogb2JqZWN0KTogdm9pZCA9PiB7XG4gICAgICAvLyB0aGlzLnNuYWNrQmFyLm9wZW4odmlvbGF0aW9uWydtZXNzYWdlJ10sICcnLCB7XG4gICAgICAvLyAgIHBhbmVsQ2xhc3M6ICdlcnJvcidcbiAgICAgIC8vIH0pO1xuICAgIH0pO1xuICB9XG59XG4iXX0=
|
@@ -41,16 +41,16 @@ export class AuthService {
|
|
41
41
|
localStorage.clear();
|
42
42
|
location.replace(url);
|
43
43
|
}
|
44
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
45
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
44
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: AuthService, deps: [{ token: i1.HttpClient }, { token: i2.JwtService }, { token: i3.MixpanelService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
45
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: AuthService, providedIn: 'root' }); }
|
46
46
|
}
|
47
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
47
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: AuthService, decorators: [{
|
48
48
|
type: Injectable,
|
49
49
|
args: [{
|
50
50
|
providedIn: 'root'
|
51
51
|
}]
|
52
|
-
}], ctorParameters:
|
52
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: i2.JwtService }, { type: i3.MixpanelService }, { type: undefined, decorators: [{
|
53
53
|
type: Inject,
|
54
54
|
args: ['environment']
|
55
|
-
}] }]
|
55
|
+
}] }] });
|
56
56
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXV0aC5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdHQtY29yZS9jb21tb24vc3JjL3NlcnZpY2VzL2F1dGgvYXV0aC5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxNQUFNLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ25ELE9BQU8sRUFBYyxpQkFBaUIsRUFBRSxNQUFNLHNCQUFzQixDQUFDO0FBRXJFLE9BQU8sRUFBRSxHQUFHLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQzs7Ozs7QUFRckMsTUFBTSxPQUFPLFdBQVc7SUFDdEIsWUFDVSxJQUFnQixFQUNoQixVQUFzQixFQUN0QixTQUEwQixFQUNILFdBQWdCO1FBSHZDLFNBQUksR0FBSixJQUFJLENBQVk7UUFDaEIsZUFBVSxHQUFWLFVBQVUsQ0FBWTtRQUN0QixjQUFTLEdBQVQsU0FBUyxDQUFpQjtRQUNILGdCQUFXLEdBQVgsV0FBVyxDQUFLO0lBR2pELENBQUM7SUFFRCxPQUFPLENBQUMsUUFBNEI7UUFDbEMsSUFBSSxDQUFDLFVBQVUsQ0FBQyxVQUFVLENBQUMsUUFBUSxDQUFDLENBQUM7SUFDdkMsQ0FBQztJQUVELEtBQUssQ0FBQyxRQUFnQixFQUFFLFFBQWdCLEVBQUUsT0FBc0IsSUFBSTtRQUNsRSxPQUFPLElBQUksQ0FBQyxJQUFJLENBQUMsSUFBSSxDQUFDLEdBQU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HJldHVybiByZXNwb25zZTtcbiAgICAgIH0pXG4gICAgKTtcbiAgfVxuXG4gIHJlZnJlc2gocmVmcmVzaFRva2VuOiBzdHJpbmcpIHtcbiAgICByZXR1cm4gdGhpcy5odHRwLnBvc3QoYCR7dGhpcy5lbnZpcm9ubWVudC5hcGlWMn0vdG9rZW4vcmVmcmVzaGAsIHsgcmVmcmVzaFRva2VuIH0pLnBpcGUoXG4gICAgICBtYXAoKHJlc3BvbnNlOiBhbnkpID0+IHtcbiAgICAgICAgdGhpcy5zZXRBdXRoKHJlc3BvbnNlKTtcblxuICAgICAgICByZXR1cm4gcmVzcG9uc2U7XG4gICAgICB9KVxuICAgICk7XG4gIH1cblxuICBsb2dvdXRGcm9udCh1cmwgPSAnL2xvZ2luJyk6IHZvaWQge1xuICAgIHRoaXMuand0U2VydmljZS5kZXN0cm95VG9rZW5zKCk7XG4gICAgbG9jYWxTdG9yYWdlLmNsZWFyKCk7XG4gICAgbG9jYXRpb24ucmVwbGFjZSh1cmwpO1xuICB9XG59XG4iXX0=
|
@@ -40,10 +40,10 @@ export class JwtService extends JwtHelperService {
|
|
40
40
|
isMe(userId) {
|
41
41
|
return this.decode().id === userId;
|
42
42
|
}
|
43
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
44
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
43
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: JwtService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
44
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: JwtService, providedIn: 'root' }); }
|
45
45
|
}
|
46
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
46
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: JwtService, decorators: [{
|
47
47
|
type: Injectable,
|
48
48
|
args: [{
|
49
49
|
providedIn: 'root'
|
@@ -45,16 +45,16 @@ export class MixpanelService {
|
|
45
45
|
}
|
46
46
|
mixpanel['track_pageview']();
|
47
47
|
}
|
48
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
49
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
48
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: MixpanelService, deps: [{ token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
49
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: MixpanelService, providedIn: 'root' }); }
|
50
50
|
}
|
51
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
51
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: MixpanelService, decorators: [{
|
52
52
|
type: Injectable,
|
53
53
|
args: [{
|
54
54
|
providedIn: 'root'
|
55
55
|
}]
|
56
|
-
}], ctorParameters:
|
56
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
57
57
|
type: Inject,
|
58
58
|
args: ['environment']
|
59
|
-
}] }]
|
59
|
+
}] }] });
|
60
60
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWl4cGFuZWwuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvY29tbW9uL3NyYy9zZXJ2aWNlcy9taXhwYW5lbC5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxNQUFNLEVBQ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fWAsIGV2ZW50KTtcbiAgfVxuXG4gIHRyYWNrUGFnZVZpZXcoKTogdm9pZCB7XG4gICAgaWYgKCF0aGlzLmVudmlyb25tZW50LmVuYWJsZU1peHBhbmVsKSB7XG4gICAgICByZXR1cm47XG4gICAgfVxuXG4gICAgbWl4cGFuZWxbJ3RyYWNrX3BhZ2V2aWV3J10oKTtcbiAgfVxufVxuIl19
|
@@ -94,15 +94,17 @@ export class CollectionDictionary {
|
|
94
94
|
const obj = {};
|
95
95
|
// Group collection items
|
96
96
|
collection.items.forEach((item) => {
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
key
|
101
|
-
|
102
|
-
|
103
|
-
obj[key]
|
104
|
-
|
105
|
-
|
97
|
+
const keys = Array.isArray(get(item, path)) ? get(item, path) : [get(item, path)];
|
98
|
+
keys.forEach(key => {
|
99
|
+
// if object does not have property for grouping it will be grouped as 'other'
|
100
|
+
if (key === undefined) {
|
101
|
+
key = 'other';
|
102
|
+
}
|
103
|
+
if (!obj[key]) {
|
104
|
+
obj[key] = [];
|
105
|
+
}
|
106
|
+
obj[key].push(item);
|
107
|
+
});
|
106
108
|
});
|
107
109
|
// Create collections from groups
|
108
110
|
Object.keys(obj).forEach((key) => {
|
@@ -110,4 +112,4 @@ export class CollectionDictionary {
|
|
110
112
|
});
|
111
113
|
}
|
112
114
|
}
|
113
|
-
//# sourceMappingURL=data:application/json;base64,
|
115
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29sbGVjdGlvbi1kaWN0aW9uYXJ5LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdHQtY29yZS9zcmMvbGliL2NvbGxlY3Rpb25zL2NvbGxlY3Rpb24tZGljdGlvbmFyeS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEdBQUcsTUFBTSxZQUFZLENBQUM7QUF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Bpbml0aWFsIG9iamVjdCBmb3IgZ3JvdXBzXG4gICAgY29uc3Qgb2JqOiB7IFtrZXk6IHN0cmluZ106IEFycmF5PG9iamVjdD4gfSA9IHt9O1xuXG4gICAgLy8gR3JvdXAgY29sbGVjdGlvbiBpdGVtc1xuICAgIGNvbGxlY3Rpb24uaXRlbXMuZm9yRWFjaCgoaXRlbTogb2JqZWN0KTogdm9pZCA9PiB7XG4gICAgICBjb25zdCBrZXlzOiBzdHJpbmdbXSA9IEFycmF5LmlzQXJyYXkoZ2V0KGl0ZW0sIHBhdGgpKSA/IGdldChpdGVtLCBwYXRoKSA6IFtnZXQoaXRlbSwgcGF0aCldO1xuXG4gICAgICBrZXlzLmZvckVhY2goa2V5ID0+IHtcbiAgICAgICAgLy8gaWYgb2JqZWN0IGRvZXMgbm90IGhhdmUgcHJvcGVydHkgZm9yIGdyb3VwaW5nIGl0IHdpbGwgYmUgZ3JvdXBlZCBhcyAnb3RoZXInXG4gICAgICAgIGlmIChrZXkgPT09IHVuZGVmaW5lZCkge1xuICAgICAgICAgIGtleSA9ICdvdGhlcic7XG4gICAgICAgIH1cblxuICAgICAgICBpZiAoIW9ialtrZXldKSB7XG4gICAgICAgICAgb2JqW2tleV0gPSBbXTtcbiAgICAgICAgfVxuXG4gICAgICAgIG9ialtrZXldLnB1c2goaXRlbSk7XG4gICAgICB9KTtcbiAgICB9KTtcblxuICAgIC8vIENyZWF0ZSBjb2xsZWN0aW9ucyBmcm9tIGdyb3Vwc1xuICAgIE9iamVjdC5rZXlzKG9iaikuZm9yRWFjaCgoa2V5OiBzdHJpbmcpOiB2b2lkID0+IHtcbiAgICAgIHRoaXMuaXRlbXNba2V5XSA9IHRoaXMuY3JlYXRlQ29sbGVjdGlvbihvYmpba2V5XSk7XG4gICAgfSk7XG4gIH1cbn1cbiJdfQ==
|
@@ -128,9 +128,9 @@ export class Collection {
|
|
128
128
|
this.items.unshift(...items);
|
129
129
|
return this.create(this.items);
|
130
130
|
}
|
131
|
-
remove(
|
131
|
+
remove(items, path = 'id') {
|
132
132
|
items.forEach((item) => {
|
133
|
-
const index = this.findIndexBy(
|
133
|
+
const index = this.findIndexBy(path, get(item, path));
|
134
134
|
if (index < 0) {
|
135
135
|
return;
|
136
136
|
}
|
@@ -151,8 +151,8 @@ export class Collection {
|
|
151
151
|
}
|
152
152
|
return this.create(this.items);
|
153
153
|
}
|
154
|
-
diff(items) {
|
155
|
-
return this.filter((model) => !items.map((item) => item
|
154
|
+
diff(items, path = 'id') {
|
155
|
+
return this.filter((model) => !items.map((item) => get(item, path)).includes(get(model, path)));
|
156
156
|
}
|
157
157
|
minBy(path) {
|
158
158
|
return this.items.reduce((prev, current) => (get(prev, path) < get(current, path) ? prev : current));
|
@@ -171,4 +171,4 @@ export class Collection {
|
|
171
171
|
return this;
|
172
172
|
}
|
173
173
|
}
|
174
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29sbGVjdGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9jb2xsZWN0aW9ucy9jb2xsZWN0aW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxvQkFBb0IsRUFBRSxNQUFNLHlCQUF5QixDQUFDO0FBQy9ELE9BQU8sS0FBSyxNQUFNLGNBQWMsQ0FBQztBQUNqQyxPQUFPLElBQUksTUFBTSxhQUFhLENBQUM7QUFDL0IsT0FBTyxHQUFHLE1BQU0sWUFBWSxDQUFDO0FBRTdCLE9BQU8sRUFBRSxVQUFVLEVBQUUsYUFBYSxFQUFFLE1BQU0sV0FBVyxDQUFDO0FBQ3RELE9BQU8sT0FBTyxNQUFNLGdCQUFnQixDQUFDO0FBRXJDOztHQUVHO0FBQ0gsTUFBTSxPQUFPLFVBQVU7SUFTckIsWUFBWSxRQUFpQixF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XNjcmlwdFxyXG4gICAqL1xyXG4gIHJlZHVjZShjYWxsYmFjazogKHN1bTogbnVtYmVyLCBpdGVtOiBNb2RlbCkgPT4gbnVtYmVyLCBpbml0ID0gMCk6IG51bWJlciB7XHJcbiAgICByZXR1cm4gK3RoaXMuaXRlbXMucmVkdWNlKGNhbGxiYWNrLCBpbml0KS50b0ZpeGVkKDEwKTtcclxuICB9XHJcblxyXG4gIHNsaWNlKGZyb206IG51bWJlciwgdG86IG51bWJlcik6IHRoaXMge1xyXG4gICAgdGhpcy5pdGVtcyA9IHRoaXMuaXRlbXMuc2xpY2UoZnJvbSwgdG8pO1xyXG5cclxuICAgIHJldHVybiB0aGlzO1xyXG4gIH1cclxufVxyXG4iXX0=
|
@@ -103,11 +103,11 @@ export class PropertyCollection extends Collection {
|
|
103
103
|
propertiesByCategory.set(categoryById.get(key), this.filterBy('id', movementsByCategory.get(key).map(movement => movement.property.id)));
|
104
104
|
});
|
105
105
|
if (allowEmpty) {
|
106
|
-
categories.remove(
|
106
|
+
categories.remove(Array.from(propertiesByCategory.keys())).toArray().forEach(category => {
|
107
107
|
propertiesByCategory.set(category, new PropertyCollection());
|
108
108
|
});
|
109
109
|
}
|
110
110
|
return propertiesByCategory;
|
111
111
|
}
|
112
112
|
}
|
113
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvcGVydHkuY29sbGVjdGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9jb2xsZWN0aW9ucy9wcm9wZXJ0eS9wcm9wZXJ0eS5jb2xsZWN0aW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFFM0MsT0FBTyxNQUFNLE1BQU0sZUFBZSxDQUFDO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c0J5Q2F0ZWdvcnkua2V5cygpKSkudG9BcnJheSgpLmZvckVhY2goY2F0ZWdvcnkgPT4ge1xuICAgICAgICBwcm9wZXJ0aWVzQnlDYXRlZ29yeS5zZXQoY2F0ZWdvcnksIG5ldyBQcm9wZXJ0eUNvbGxlY3Rpb24oKSk7XG4gICAgICB9KTtcbiAgICB9XG5cbiAgICByZXR1cm4gcHJvcGVydGllc0J5Q2F0ZWdvcnk7XG4gIH1cbn1cbiJdfQ==
|
@@ -6,13 +6,13 @@ import * as i0 from "@angular/core";
|
|
6
6
|
* https://angular.io/guide/creating-libraries
|
7
7
|
*/
|
8
8
|
export class CoreModule {
|
9
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
10
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
9
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
10
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.12", ngImport: i0, type: CoreModule, imports: [CommonModule,
|
11
11
|
InterceptorsModule] }); }
|
12
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
12
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CoreModule, imports: [CommonModule,
|
13
13
|
InterceptorsModule] }); }
|
14
14
|
}
|
15
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
15
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CoreModule, decorators: [{
|
16
16
|
type: NgModule,
|
17
17
|
args: [{
|
18
18
|
declarations: [],
|
@@ -113,4 +113,4 @@ export class AbstractForm extends FormGroup {
|
|
113
113
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