ets-fe-ng-sdk 19.0.99 → 19.0.101

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.
@@ -8495,7 +8495,7 @@ class InputFormatDirective {
8495
8495
  if (!this.noFormatting) {
8496
8496
  if (this.oType == 'number') {
8497
8497
  this.el.type = 'text';
8498
- this.el.value = this.decimalPipe.transform((this.el.value).replace(/[^\d.-]/g, ''), '1.0-9', this.inputFormatService.locale());
8498
+ this.el.value = this.decimalPipe.transform(this.el.value.replace(/[^\d.-]/g, ''), '1.0-9', this.inputFormatService.locale());
8499
8499
  }
8500
8500
  if (this.oType == 'percentage') {
8501
8501
  this.el.type = 'text';
@@ -8582,23 +8582,25 @@ class InputFormatDirective {
8582
8582
  // debugger
8583
8583
  if (this.isDebug)
8584
8584
  debugger;
8585
+ let nValue;
8585
8586
  if (this.noFormatting && this.oType != 'checkbox')
8586
- this._value = value;
8587
+ nValue = value;
8587
8588
  else if (this.oType == 'text' && !this.noTextFormat)
8588
- this._value = this.formatterService.toTitleCase(value);
8589
+ nValue = this.formatterService.toTitleCase(value);
8589
8590
  else if (this.oType == 'checkbox')
8590
- this._value = this.el?.checked;
8591
+ nValue = this.el?.checked;
8591
8592
  else if (this.oType == 'number')
8592
8593
  if (this.isLastCharacterDecimalSeparator(value))
8593
- this._value = value;
8594
+ nValue = value;
8594
8595
  else
8595
- this._value = this.formatterService.normalise(value);
8596
+ nValue = this.formatterService.normalise(value);
8596
8597
  else if (this.oType == 'percentage')
8597
- this._value = this.formatterService.normalise(String(value)?.replace('%', ''));
8598
+ nValue = this.formatterService.normalise(String(value)?.replace('%', ''));
8598
8599
  else
8599
- this._value = value;
8600
+ nValue = value;
8600
8601
  // here to notify Angular Validators
8601
- this._onChange(this.value);
8602
+ this._value = nValue;
8603
+ this._onChange(nValue);
8602
8604
  }
8603
8605
  /**
8604
8606
  * Apply formatting when the input loses focus
@@ -8692,9 +8694,7 @@ class InputFormatDirective {
8692
8694
  */
8693
8695
  setNumberInput(value) {
8694
8696
  // debugger;
8695
- const val = value
8696
- ?.toString()
8697
- .replace(/[^\d.-]/g, '');
8697
+ const val = value?.toString().replace(/[^\d.-]/g, '');
8698
8698
  // .replace(this.inputFormatService.nfS.isNormal() ? /[^\d.-]/g : /[^\d,-]/g, '');
8699
8699
  if (val === null || val == undefined) {
8700
8700
  this.elementRef.nativeElement.value = '';
@@ -9158,7 +9158,7 @@ class ResponsivenessDirective {
9158
9158
  ngOnDestroy() {
9159
9159
  //Called once, before the instance is destroyed.
9160
9160
  //Add 'implements OnDestroy' to the class.
9161
- this.sub.unsubscribe();
9161
+ this.sub?.unsubscribe();
9162
9162
  }
9163
9163
  /**
9164
9164
  * If viewport is mobile
@@ -9236,7 +9236,7 @@ class MobileClassDirective {
9236
9236
  ngOnDestroy() {
9237
9237
  //Called once, before the instance is destroyed.
9238
9238
  //Add 'implements OnDestroy' to the class.
9239
- this.sub.unsubscribe();
9239
+ this.sub?.unsubscribe();
9240
9240
  }
9241
9241
  /**
9242
9242
  * If viewport is mobile
@@ -9296,7 +9296,7 @@ class DesktopClassDirective {
9296
9296
  ngOnDestroy() {
9297
9297
  //Called once, before the instance is destroyed.
9298
9298
  //Add 'implements OnDestroy' to the class.
9299
- this.sub.unsubscribe();
9299
+ this.sub?.unsubscribe();
9300
9300
  }
9301
9301
  /**
9302
9302
  * If viewport is mobile
@@ -9356,7 +9356,7 @@ class HideMobileDirective {
9356
9356
  ngOnDestroy() {
9357
9357
  //Called once, before the instance is destroyed.
9358
9358
  //Add 'implements OnDestroy' to the class.
9359
- this.sub.unsubscribe();
9359
+ this.sub?.unsubscribe();
9360
9360
  }
9361
9361
  /**
9362
9362
  * If viewport is mobile
@@ -9412,7 +9412,7 @@ class HideDesktopDirective {
9412
9412
  ngOnDestroy() {
9413
9413
  //Called once, before the instance is destroyed.
9414
9414
  //Add 'implements OnDestroy' to the class.
9415
- this.sub.unsubscribe();
9415
+ this.sub?.unsubscribe();
9416
9416
  }
9417
9417
  /**
9418
9418
  * If viewport is mobile
@@ -23247,7 +23247,9 @@ class BaseService {
23247
23247
  * @returns An Observable of the response
23248
23248
  */
23249
23249
  delete(path = '', query) {
23250
- return query ? this.apiS.deleteWithBody(this.formatRoute(this.baseURL + path), query) : this.apiS.delete(this.baseURL + path);
23250
+ return query
23251
+ ? this.apiS.deleteWithBody(this.formatRoute(this.baseURL + path), query)
23252
+ : this.apiS.delete(this.baseURL + path);
23251
23253
  }
23252
23254
  /**
23253
23255
  * Performs a DELETE request with a request body