info-library 2.10.67 → 2.10.69
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/info-library.umd.js +11 -1
- package/bundles/info-library.umd.js.map +1 -1
- package/bundles/info-library.umd.min.js +1 -1
- package/bundles/info-library.umd.min.js.map +1 -1
- package/esm2015/layouts/modal/modal.component.js +9 -1
- package/esm2015/service/translate.service.js +4 -2
- package/fesm2015/info-library.js +11 -1
- package/fesm2015/info-library.js.map +1 -1
- package/package.json +1 -1
|
@@ -763,7 +763,9 @@
|
|
|
763
763
|
/** @type {?} */
|
|
764
764
|
var translation = key;
|
|
765
765
|
if (this._translations[this.currentLang] && this._translations[this.currentLang].Values && this._translations[this.currentLang].Values[key]) {
|
|
766
|
-
|
|
766
|
+
translation = (this._translations[this.currentLang].Values[this._plataforma.Config.dictionary] || {})[key] || this._translations[this.currentLang].Values[key];
|
|
767
|
+
if (typeof translation != 'string')
|
|
768
|
+
translation = key;
|
|
767
769
|
}
|
|
768
770
|
return translation;
|
|
769
771
|
};
|
|
@@ -8022,6 +8024,7 @@
|
|
|
8022
8024
|
* @return {?}
|
|
8023
8025
|
*/
|
|
8024
8026
|
InfoModalComponent.prototype.ngOnInit = function () {
|
|
8027
|
+
var _this = this;
|
|
8025
8028
|
if (this.modaltitle == '' && this.prop != null && this.prop.title != null)
|
|
8026
8029
|
this.modaltitle = this.prop.title;
|
|
8027
8030
|
if (this.api == null && this.prop != null && this.prop.api != null)
|
|
@@ -8030,6 +8033,13 @@
|
|
|
8030
8033
|
this._ref.updateSize(this.width.toString().replace('px', '') + 'px');
|
|
8031
8034
|
if (this.readonly == null && this.prop != null && this.prop.readonly != null)
|
|
8032
8035
|
this.readonly = this.prop.readonly;
|
|
8036
|
+
this._ref.keydownEvents().subscribe(( /**
|
|
8037
|
+
* @param {?} r
|
|
8038
|
+
* @return {?}
|
|
8039
|
+
*/function (r) {
|
|
8040
|
+
if (r.ctrlKey && r.key == "Enter" && !(_this.loading || (_this.form != null && !_this.form.form.valid)) && _this.labelsubmit != '' && !_this.readonly)
|
|
8041
|
+
_this.submit();
|
|
8042
|
+
}));
|
|
8033
8043
|
};
|
|
8034
8044
|
/**
|
|
8035
8045
|
* @return {?}
|