@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.
- package/bundles/sumaris-net.ngx-components.umd.js +2 -0
- package/bundles/sumaris-net.ngx-components.umd.js.map +1 -1
- package/bundles/sumaris-net.ngx-components.umd.min.js +1 -1
- package/bundles/sumaris-net.ngx-components.umd.min.js.map +1 -1
- package/esm2015/src/app/shared/pipes/date-format.pipe.js +3 -1
- package/fesm2015/sumaris-net.ngx-components.js +2 -0
- package/fesm2015/sumaris-net.ngx-components.js.map +1 -1
- package/package.json +1 -1
- package/sumaris-net.ngx-components.metadata.json +1 -1
|
@@ -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;
|