taxtank-core 0.33.59 → 0.33.60

Sign up to get free protection for your applications and to get access to all the features.
@@ -37,7 +37,12 @@ export class AbstractForm extends FormGroup {
37
37
  return this.createModelInstance(Object.assign({}, this.model, this.getRawValue()));
38
38
  }
39
39
  toggleEnabledState(control) {
40
- control.enabled ? control.disable() : control.enable();
40
+ if (control) {
41
+ control.enabled ? control.disable() : control.enable();
42
+ }
43
+ else {
44
+ this.enabled ? this.disable() : this.enable();
45
+ }
41
46
  }
42
47
  /**
43
48
  * Check validation and return a new instance of generic model.
@@ -145,4 +150,4 @@ export class AbstractForm extends FormGroup {
145
150
  });
146
151
  }
147
152
  }
148
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWJzdHJhY3QuZm9ybS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9mb3Jtcy9hYnN0cmFjdC5mb3JtLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBMEUsU0FBUyxFQUFlLFVBQVUsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBQzVJLE9BQU8sRUFBRSxZQUFZLEVBQVEsTUFBTSxlQUFlLENBQUM7QUFDbkQsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLG1CQUFtQixDQUFDO0FBQ2pELE9BQU8sT0FBTyxNQUFNLGdCQUFnQixDQUFDO0FBU3JDOzs7OztHQUtHO0FBQ0gsTUFBTSxPQUFnQixZQUE0RSxTQUFRLFNBQW1CO2FBQ3BILG1CQUFjLEdBQUcsRUFBRSxBQUFMLENBQU07SUFtQjNCLFlBQ0UsUUFBa0I7SUFDbEIsdURBQXVEO0lBQ3ZELEtBQWEsRUFDYixlQUE2RSxFQUM3RSxjQUE2RDtRQUU3RCxLQUFLLENBQUMsUUFBUSxFQUFFLGVBQWUsRUFBRSxjQUFj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M6IEFic3RyYWN0Q29udHJvbFtdID0gW10pOiB2b2lkIHtcbiAgICBpZiAoIWNvbnRyb2xzLmxlbmd0aCkge1xuICAgICAgcmV0dXJuIHN1cGVyLmRpc2FibGUob3B0cyk7XG4gICAgfVxuXG4gICAgY29udHJvbHMuZm9yRWFjaChjb250cm9sID0+IHtcbiAgICAgIGNvbnRyb2wuZGlzYWJsZShvcHRzKTtcbiAgICB9KTtcbiAgfVxuXG4gIGVuYWJsZShvcHRzPzogeyBvbmx5U2VsZj86IGJvb2xlYW47IGVtaXRFdmVudD86IGJvb2xlYW47IH0sIGNvbnRyb2xzOiBBYnN0cmFjdENvbnRyb2xbXSA9IFtdKTogdm9pZCB7XG4gICAgaWYgKCFjb250cm9scy5sZW5ndGgpIHtcbiAgICAgIHJldHVybiBzdXBlci5lbmFibGUob3B0cyk7XG4gICAgfVxuXG4gICAgY29udHJvbHMuZm9yRWFjaChjb250cm9sID0+IHtcbiAgICAgIGNvbnRyb2wuZW5hYmxlKG9wdHMpO1xuICAgIH0pO1xuICB9XG59XG4iXX0=
@@ -1,9 +1,8 @@
1
1
  import { UntypedFormArray, UntypedFormControl, UntypedFormGroup, Validators } from '@angular/forms';
2
- import { BankAccountProperty } from '../../../models/bank/bank-account-property';
2
+ import { BankAccountProperty } from '../../../models';
3
3
  import { plainToClass } from 'class-transformer';
4
4
  import { TankTypeEnum } from '../../../db/Enums/tank-type.enum';
5
- import { conditionalValidator } from '../../../validators';
6
- import { fieldsSumValidator } from '../../../validators/fields-sum.validator';
5
+ import { conditionalValidator, fieldsSumValidator } from '../../../validators';
7
6
  /**
8
7
  * Form array with bank account properties
9
8
  * @TODO create AbstractFormArray
@@ -61,4 +60,4 @@ export class BankAccountPropertiesForm extends UntypedFormArray {
61
60
  return currentTotalPercent < 100 ? 100 - currentTotalPercent : 0;
62
61
  }
63
62
  }
64
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFuay1hY2NvdW50LXBy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uICAvKipcbiAgICogUGVyY2VudGFnZSBhdmFpbGFibGUgZm9yIGFkZGluZyBhIG5ldyBiYW5rIGFjY291bnQgcHJvcGVydHkuXG4gICAqIFJlbWFpbmluZyBwZXJjZW50IGNhbid0IGJlIG1vcmUgdGhhbiAxMDAgYW5kIGxlc3MgdGhhbiAwXG4gICAqL1xuICBwcml2YXRlIGdldFJlbWFpbmluZ1BlcmNlbnQoKTogbnVtYmVyIHtcbiAgICBjb25zdCBjdXJyZW50VG90YWxQZXJjZW50OiBudW1iZXIgPSB0aGlzLmNvbnRyb2xzLnJlZHVjZSgoc3VtOiBudW1iZXIsIGNvbnRyb2w6IFVudHlwZWRGb3JtR3JvdXApID0+IHN1bSArIGNvbnRyb2wuZ2V0KCdwZXJjZW50JykudmFsdWUsIDApO1xuXG4gICAgcmV0dXJuIGN1cnJlbnRUb3RhbFBlcmNlbnQgPCAxMDAgPyAxMDAgLSBjdXJyZW50VG90YWxQZXJjZW50IDogMDtcbiAgfVxufVxuIl19
@@ -52,11 +52,7 @@ export class RestService extends DataService {
52
52
  * @TODO: TT-4642 check customHttpErrorMessages fix change to backend errors
53
53
  */
54
54
  this.useBackendError = false;
55
- /**
56
- * messages that can be redefined in other classes to customize httpErrorMessages
57
- */
58
- this.customHttpErrorMessages = {};
59
- this.httpErrorMessages = { ...HTTP_ERROR_MESSAGES, ...this.customHttpErrorMessages };
55
+ this.httpErrorMessages = { ...HTTP_ERROR_MESSAGES, ...this.getCustomHttpErrorMessages() };
60
56
  }
61
57
  get apiUrl() {
62
58
  return `${this.environment.apiV2}/${this.endpointUri}`;
@@ -199,6 +195,12 @@ export class RestService extends DataService {
199
195
  }
200
196
  }), catchError((error) => this.handleError(error)));
201
197
  }
198
+ /**
199
+ * method with messages that can be redefined in other classes to customize httpErrorMessages
200
+ */
201
+ getCustomHttpErrorMessages() {
202
+ return {};
203
+ }
202
204
  /**
203
205
  * Handle response errors - shows error in toast
204
206
  * and throws error further
@@ -327,4 +329,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
327
329
  type: Inject,
328
330
  args: ['environment']
329
331
  }] }] });
330
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVzdC5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdHQtY29yZS9zcmMvbGliL3NlcnZpY2VzL2h0dHAvcmVzdC9yZXN0LnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLE1BQU0sRUFBRSxVQUFVLEVBQUUsTUFBTSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQzNELE9BQU8sRUFBYyxhQUFhLEVBQUUsVUFBVSxFQUFFLE1BQU0sTUFBTSxDQUFDO0FBQzdELE9BQU8sRUFBRSxVQUFVLEVBQUUsS0FBSyxFQUFFLEdBQUcsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBQ3hELE9BQU8sRUFBRSxVQUFVLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSxzQkFBc0IsQ0FBQztBQUNyRSxPQUFPLEVBQUUsc0JBQXNCLEVBQUUsVUFBVSxFQUFFLE1BQU0sYUFBYSxDQUFDO0FBQ2pFLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxtQkFBbUIsQ0FBQztBQUVqRCxPQUFPLEVBQWlCLGVBQWUsRUFBRSxNQUFNLG9CQUFvQixDQUFDO0FBQ3BFLE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUM1QyxPQUFPLEVBQUUsT0FBTyxFQUFFLE1BQU0sMEJBQTBCLENBQUM7QUFHbkQsT0FBTyxFQUFFLFdBQVcsRUFBRSxNQUFNLG9CQUFvQixDQUFDO0FBRWpELE9BQU8sRUFBRSxZQUFZLEVBQUUsTU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HVybiB7IG1ldGhvZCwgbW9kZWwgfTtcbiAgICAgIH0pXG4gICAgKS5zdWJzY3JpYmUoKGNoYW5nZSkgPT4ge1xuICAgICAgdGhpcy5oYW5kbGVSZXNwb25zZShbY2hhbmdlLm1vZGVsXSwgY2hhbmdlLm1ldGhvZClcbiAgICB9KTtcbiAgfVxufVxuIl19
@@ -9,8 +9,10 @@ export class AllocationRuleService extends RestService {
9
9
  this.endpointUri = 'allocation-rules';
10
10
  this.collectionClass = AllocationRuleCollection;
11
11
  this.modelClass = AllocationRule;
12
- // @TODO: TT-4642 check customHttpErrorMessages fix change to backend errors
13
- this.customHttpErrorMessages = { 422: 'You can only have 10 conditions in a rule' };
12
+ }
13
+ // @TODO: TT-4642 check customHttpErrorMessages fix change to backend errors
14
+ getCustomHttpErrorMessages() {
15
+ return { 422: 'You can only have 10 conditions in a rule' };
14
16
  }
15
17
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: AllocationRuleService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
16
18
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: AllocationRuleService, providedIn: 'root' }); }
@@ -21,4 +23,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
21
23
  providedIn: 'root'
22
24
  }]
23
25
  }] });
24
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWxsb2NhdGlvbi1ydWxlLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvc2VydmljZXMvaHR0cC90cmFuc2FjdGlvbi90cmFuc2FjdGlvbi1hbGxvY2F0aW9uL2FsbG9jYXRpb24tcnVsZS9hbGxvY2F0a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IH0gZnJvbSAnLi4vLi4vLi4vLi4vLi4vbW9kZWxzJztcbmltcG9ydCB7IEFsbG9jYXRpb25SdWxlQ29sbGVjdGlvbiB9IGZyb20gJy4uLy4uLy4uLy4uLy4uL2NvbGxlY3Rpb25zJztcblxuQEluamVjdGFibGUoe1xuICBwcm92aWRlZEluOiAncm9vdCdcbn0pXG5leHBvcnQgY2xhc3MgQWxsb2NhdGlvblJ1bGVTZXJ2aWNlIGV4dGVuZHMgUmVzdFNlcnZpY2U8QWxsb2NhdGlvblJ1bGVCYXNlLCBBbGxvY2F0aW9uUnVsZSwgQWxsb2NhdGlvblJ1bGVDb2xsZWN0aW9uPiB7XG4gIHByb3RlY3RlZCBlbmRwb2ludFVyaSA9ICdhbGxvY2F0aW9uLXJ1bGVzJztcbiAgY29sbGVjdGlvbkNsYXNzOiB0eXBlb2YgQWxsb2NhdGlvblJ1bGVDb2xsZWN0aW9uID0gQWxsb2NhdGlvblJ1bGVDb2xsZWN0aW9uO1xuICBtb2RlbENsYXNzOiB0eXBlb2YgQWxsb2NhdGlvblJ1bGUgPSBBbGxvY2F0aW9uUnVsZTtcbiAgLy8gQFRPRE86IFRULTQ2NDIgY2hlY2sgY3VzdG9tSHR0cEVycm9yTWVzc2FnZXMgZml4IGNoYW5nZSB0byBiYWNrZW5kIGVycm9yc1xuICBwcm90ZWN0ZWQgZ2V0Q3VzdG9tSHR0cEVycm9yTWVzc2FnZXMoKTogUmVjb3JkPG51bWJlciwgc3RyaW5nPiB7XG4gICAgcmV0dXJuIHsgNDIyOiAnWW91IGNhbiBvbmx5IGhhdmUgMTAgY29uZGl0aW9ucyBpbiBhIHJ1bGUnIH07XG4gIH1cbn1cbiJdfQ==
@@ -11225,11 +11225,7 @@ let RestService$1 = class RestService extends DataService {
11225
11225
  * @TODO: TT-4642 check customHttpErrorMessages fix change to backend errors
11226
11226
  */
11227
11227
  this.useBackendError = false;
11228
- /**
11229
- * messages that can be redefined in other classes to customize httpErrorMessages
11230
- */
11231
- this.customHttpErrorMessages = {};
11232
- this.httpErrorMessages = { ...HTTP_ERROR_MESSAGES, ...this.customHttpErrorMessages };
11228
+ this.httpErrorMessages = { ...HTTP_ERROR_MESSAGES, ...this.getCustomHttpErrorMessages() };
11233
11229
  }
11234
11230
  get apiUrl() {
11235
11231
  return `${this.environment.apiV2}/${this.endpointUri}`;
@@ -11372,6 +11368,12 @@ let RestService$1 = class RestService extends DataService {
11372
11368
  }
11373
11369
  }), catchError((error) => this.handleError(error)));
11374
11370
  }
11371
+ /**
11372
+ * method with messages that can be redefined in other classes to customize httpErrorMessages
11373
+ */
11374
+ getCustomHttpErrorMessages() {
11375
+ return {};
11376
+ }
11375
11377
  /**
11376
11378
  * Handle response errors - shows error in toast
11377
11379
  * and throws error further
@@ -15268,8 +15270,10 @@ class AllocationRuleService extends RestService$1 {
15268
15270
  this.endpointUri = 'allocation-rules';
15269
15271
  this.collectionClass = AllocationRuleCollection;
15270
15272
  this.modelClass = AllocationRule;
15271
- // @TODO: TT-4642 check customHttpErrorMessages fix change to backend errors
15272
- this.customHttpErrorMessages = { 422: 'You can only have 10 conditions in a rule' };
15273
+ }
15274
+ // @TODO: TT-4642 check customHttpErrorMessages fix change to backend errors
15275
+ getCustomHttpErrorMessages() {
15276
+ return { 422: 'You can only have 10 conditions in a rule' };
15273
15277
  }
15274
15278
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: AllocationRuleService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
15275
15279
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: AllocationRuleService, providedIn: 'root' }); }
@@ -20757,7 +20761,12 @@ class AbstractForm extends FormGroup {
20757
20761
  return this.createModelInstance(Object.assign({}, this.model, this.getRawValue()));
20758
20762
  }
20759
20763
  toggleEnabledState(control) {
20760
- control.enabled ? control.disable() : control.enable();
20764
+ if (control) {
20765
+ control.enabled ? control.disable() : control.enable();
20766
+ }
20767
+ else {
20768
+ this.enabled ? this.disable() : this.enable();
20769
+ }
20761
20770
  }
20762
20771
  /**
20763
20772
  * Check validation and return a new instance of generic model.