@sumaris-net/ngx-components 1.23.67 → 1.23.68-alpha1

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.
@@ -2323,6 +2323,7 @@
2323
2323
  var pattern = args && args.pattern ||
2324
2324
  (args && args.time ? (args.seconds ? this.dateTimeSecondsPattern : this.dateTimePattern) : this.datePattern);
2325
2325
  // Keep original moment object, if possible (to avoid a conversion)
2326
+ console.debug('DEBUG DATE PATERN TRANSFORM', pattern);
2326
2327
  var date = momentImported.isMoment(value) ? value : this.dateAdapter.parse(value, DATE_ISO_PATTERN);
2327
2328
  return date && this.dateAdapter.format(date, pattern) || '';
2328
2329
  };
@@ -2330,6 +2331,7 @@
2330
2331
  this.datePattern = this._getTranslationValue(translations, 'COMMON.DATE_PATTERN', 'DD/MM/YYYY');
2331
2332
  this.dateTimePattern = this._getTranslationValue(translations, 'COMMON.DATE_TIME_PATTERN', 'DD/MM/YYYY HH:mm');
2332
2333
  this.dateTimeSecondsPattern = this._getTranslationValue(translations, 'COMMON.DATE_TIME_SECONDS_PATTERN', 'DD/MM/YYYY HH:mm:ss');
2334
+ console.debug('DEBUG DATE PATERN UPDATE', this.datePattern);
2333
2335
  };
2334
2336
  AbstractDateFormat.prototype._getTranslationValue = function (translations, key, defaultValue) {
2335
2337
  return (translations[key] !== key) ? translations[key] : defaultValue;