@sumaris-net/ngx-components 2.4.18-rc2 → 2.4.18

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.
@@ -6908,10 +6908,7 @@ class MatDateShort {
6908
6908
  // Create the text control
6909
6909
  this.textControl = this.formBuilder.control(null,
6910
6910
  // Important: should copy errors from the model formControl
6911
- () => {
6912
- console.log('TODO validate textControl');
6913
- return this.formControl.errors;
6914
- });
6911
+ () => this.formControl.errors);
6915
6912
  // Get patterns to display date
6916
6913
  this.updatePattern(this.translate.instant('COMMON.DATE_YEAR_PATTERN'));
6917
6914
  this._subscription.add(this.translate.get('COMMON.DATE_YEAR_PATTERN')
@@ -7103,9 +7100,7 @@ class MatDateShort {
7103
7100
  // Set model value
7104
7101
  if (this.formControl.value !== dateStr) {
7105
7102
  // DEBUG
7106
- console.debug('[mat-date-time] Emit new value: ' + dateStr);
7107
- console.debug('[mat-date-time] textControl.valid ?', this.textControl.valid);
7108
- console.debug('[mat-date-time] formControl.valid ?', this.formControl.valid);
7103
+ //console.debug('[mat-date-time] Emit new value: ' + dateStr);
7109
7104
  // Apply to form control. => Will call writeValue()
7110
7105
  // NOT NEED, because a formControl should NOT be used by multiple fields
7111
7106
  //this.formControl.setValue(dateStr, {emitEvent: false});