taxtank-core 0.17.8 → 0.17.11
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 +48 -28
- package/bundles/taxtank-core.umd.js.map +1 -1
- package/esm2015/lib/models/property/property-equity-chart-data.js +12 -1
- package/esm2015/lib/services/http/user/user.service.js +10 -4
- package/esm2015/lib/validators/index.js +3 -1
- package/esm2015/public-api.js +2 -1
- package/fesm2015/taxtank-core.js +45 -28
- package/fesm2015/taxtank-core.js.map +1 -1
- package/lib/models/property/property-equity-chart-data.d.ts +4 -0
- package/lib/services/http/user/user.service.d.ts +5 -1
- package/lib/validators/index.d.ts +2 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -8134,6 +8134,7 @@
|
|
|
8134
8134
|
this.buildActualItem();
|
|
8135
8135
|
this.buildForecastedItems();
|
|
8136
8136
|
this.checkZeroLoanBalance();
|
|
8137
|
+
this.checkZeroMarketValue();
|
|
8137
8138
|
}
|
|
8138
8139
|
/**
|
|
8139
8140
|
* get items list in chart series format
|
|
@@ -8266,6 +8267,16 @@
|
|
|
8266
8267
|
}
|
|
8267
8268
|
});
|
|
8268
8269
|
};
|
|
8270
|
+
/**
|
|
8271
|
+
* Check if market value is 0 and set it as null (to not to draw point on the chart)
|
|
8272
|
+
*/
|
|
8273
|
+
PropertyEquityChartData.prototype.checkZeroMarketValue = function () {
|
|
8274
|
+
this.list.forEach(function (item) {
|
|
8275
|
+
if (item.marketValue === 0) {
|
|
8276
|
+
item.marketValue = null;
|
|
8277
|
+
}
|
|
8278
|
+
});
|
|
8279
|
+
};
|
|
8269
8280
|
return PropertyEquityChartData;
|
|
8270
8281
|
}());
|
|
8271
8282
|
|
|
@@ -13401,13 +13412,19 @@
|
|
|
13401
13412
|
* Change user password
|
|
13402
13413
|
*/
|
|
13403
13414
|
UserService.prototype.changePassword = function (currentPassword, newPassword) {
|
|
13404
|
-
return this.http.put(this.environment.apiV2 + "/users/
|
|
13415
|
+
return this.http.put(this.environment.apiV2 + "/users/password/change", { currentPassword: currentPassword, newPassword: newPassword });
|
|
13416
|
+
};
|
|
13417
|
+
/**
|
|
13418
|
+
* Recovery user password
|
|
13419
|
+
*/
|
|
13420
|
+
UserService.prototype.recoveryPassword = function (email) {
|
|
13421
|
+
return this.http.put(this.environment.apiV2 + "/users/password/recovery", { email: email });
|
|
13405
13422
|
};
|
|
13406
13423
|
/**
|
|
13407
13424
|
* Reset user password
|
|
13408
13425
|
*/
|
|
13409
|
-
UserService.prototype.resetPassword = function (
|
|
13410
|
-
return this.http.put(this.environment.apiV2 + "/users/reset
|
|
13426
|
+
UserService.prototype.resetPassword = function (newPassword, resetToken) {
|
|
13427
|
+
return this.http.put(this.environment.apiV2 + "/users/password/reset", { newPassword: newPassword, resetToken: resetToken });
|
|
13411
13428
|
};
|
|
13412
13429
|
/**
|
|
13413
13430
|
* Confirm registered user
|
|
@@ -13848,6 +13865,31 @@
|
|
|
13848
13865
|
};
|
|
13849
13866
|
}
|
|
13850
13867
|
|
|
13868
|
+
var passwordPattern = /^(((?=.*[a-z])(?=.*[A-Z]))|((?=.*[a-z])(?=.*[0-9]))|((?=.*[A-Z])(?=.*[0-9])))(?=.{6,})./;
|
|
13869
|
+
function passwordValidator() {
|
|
13870
|
+
return function (control) {
|
|
13871
|
+
return passwordPattern.test(control.value) ? null : { passwordInvalid: true };
|
|
13872
|
+
};
|
|
13873
|
+
}
|
|
13874
|
+
|
|
13875
|
+
function passwordMatchValidator(newPassControlName, confirmPassControlName) {
|
|
13876
|
+
var _this = this;
|
|
13877
|
+
return function (group) {
|
|
13878
|
+
var passwordControl = group.get(newPassControlName);
|
|
13879
|
+
var confirmControl = group.get(confirmPassControlName);
|
|
13880
|
+
if (confirmControl.errors && !confirmControl.hasError('passwordMismatch')) {
|
|
13881
|
+
// return if another validator has already found an error on the confirmControl
|
|
13882
|
+
return _this;
|
|
13883
|
+
}
|
|
13884
|
+
if (passwordControl.value !== confirmControl.value) {
|
|
13885
|
+
confirmControl.setErrors({ passwordMismatch: true });
|
|
13886
|
+
}
|
|
13887
|
+
else {
|
|
13888
|
+
confirmControl.setErrors(null);
|
|
13889
|
+
}
|
|
13890
|
+
};
|
|
13891
|
+
}
|
|
13892
|
+
|
|
13851
13893
|
var ClientIncomeTypesForm = /** @class */ (function (_super) {
|
|
13852
13894
|
__extends(ClientIncomeTypesForm, _super);
|
|
13853
13895
|
function ClientIncomeTypesForm(clientIncomeTypes) {
|
|
@@ -13881,31 +13923,6 @@
|
|
|
13881
13923
|
return LoginForm;
|
|
13882
13924
|
}(AbstractForm));
|
|
13883
13925
|
|
|
13884
|
-
var passwordPattern = /^(((?=.*[a-z])(?=.*[A-Z]))|((?=.*[a-z])(?=.*[0-9]))|((?=.*[A-Z])(?=.*[0-9])))(?=.{6,})./;
|
|
13885
|
-
function passwordValidator() {
|
|
13886
|
-
return function (control) {
|
|
13887
|
-
return passwordPattern.test(control.value) ? null : { passwordInvalid: true };
|
|
13888
|
-
};
|
|
13889
|
-
}
|
|
13890
|
-
|
|
13891
|
-
function passwordMatchValidator(newPassControlName, confirmPassControlName) {
|
|
13892
|
-
var _this = this;
|
|
13893
|
-
return function (group) {
|
|
13894
|
-
var passwordControl = group.get(newPassControlName);
|
|
13895
|
-
var confirmControl = group.get(confirmPassControlName);
|
|
13896
|
-
if (confirmControl.errors && !confirmControl.hasError('passwordMismatch')) {
|
|
13897
|
-
// return if another validator has already found an error on the confirmControl
|
|
13898
|
-
return _this;
|
|
13899
|
-
}
|
|
13900
|
-
if (passwordControl.value !== confirmControl.value) {
|
|
13901
|
-
confirmControl.setErrors({ passwordMismatch: true });
|
|
13902
|
-
}
|
|
13903
|
-
else {
|
|
13904
|
-
confirmControl.setErrors(null);
|
|
13905
|
-
}
|
|
13906
|
-
};
|
|
13907
|
-
}
|
|
13908
|
-
|
|
13909
13926
|
var PasswordForm = /** @class */ (function (_super) {
|
|
13910
13927
|
__extends(PasswordForm, _super);
|
|
13911
13928
|
function PasswordForm() {
|
|
@@ -14353,6 +14370,7 @@
|
|
|
14353
14370
|
exports.VehicleService = VehicleService;
|
|
14354
14371
|
exports.WORK_TANK_LOGBOOK_PURPOSE_OPTIONS = WORK_TANK_LOGBOOK_PURPOSE_OPTIONS;
|
|
14355
14372
|
exports.XlsxService = XlsxService;
|
|
14373
|
+
exports.atLeastOneCheckedValidator = atLeastOneCheckedValidator;
|
|
14356
14374
|
exports.cloneDeep = cloneDeep;
|
|
14357
14375
|
exports.compare = compare;
|
|
14358
14376
|
exports.compareMatOptions = compareMatOptions;
|
|
@@ -14360,6 +14378,8 @@
|
|
|
14360
14378
|
exports.displayMatOptions = displayMatOptions;
|
|
14361
14379
|
exports.enumToList = enumToList;
|
|
14362
14380
|
exports.getDocIcon = getDocIcon;
|
|
14381
|
+
exports.passwordMatchValidator = passwordMatchValidator;
|
|
14382
|
+
exports.passwordValidator = passwordValidator;
|
|
14363
14383
|
exports.replace = replace;
|
|
14364
14384
|
exports.roundTo = roundTo;
|
|
14365
14385
|
exports.sort = sort;
|