sigesp 0.8.97-20220614 → 0.8.98-20220615
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/sigesp.umd.js +10 -6
- package/bundles/sigesp.umd.js.map +1 -1
- package/bundles/sigesp.umd.min.js +1 -1
- package/bundles/sigesp.umd.min.js.map +1 -1
- package/esm2015/lib/sigesp.service.js +11 -7
- package/fesm2015/sigesp.js +10 -6
- package/fesm2015/sigesp.js.map +1 -1
- package/lib/sigesp.service.d.ts +7 -5
- package/package.json +1 -1
package/bundles/sigesp.umd.js
CHANGED
|
@@ -6144,6 +6144,7 @@
|
|
|
6144
6144
|
* @author Miguel Ramírez
|
|
6145
6145
|
*/
|
|
6146
6146
|
SigespService.prototype.onlyNumbers = function (event) {
|
|
6147
|
+
// console.log(event);
|
|
6147
6148
|
if (!isNaN(+event.key) && event.keyCode != 32) {
|
|
6148
6149
|
return true;
|
|
6149
6150
|
}
|
|
@@ -7095,13 +7096,16 @@
|
|
|
7095
7096
|
return this.http.get(this.URL + "/dao/sss/derechos_usuario_dao.php?idComponent=" + this.currentComponent.id + "&column=" + column, { headers: this.getHttpHeaders() });
|
|
7096
7097
|
};
|
|
7097
7098
|
/**
|
|
7098
|
-
|
|
7099
|
-
|
|
7100
|
-
|
|
7101
|
-
|
|
7102
|
-
|
|
7099
|
+
* @description Retorna los headers para hacer las peticiones
|
|
7100
|
+
* @params type: Tipo MIME permitido por defecto se toma application/json
|
|
7101
|
+
* @return HttpHeaders
|
|
7102
|
+
* @author Miguel Ramírez
|
|
7103
|
+
* @date-update: 15-06-2022
|
|
7104
|
+
*/
|
|
7105
|
+
SigespService.prototype.getHttpHeaders = function (type) {
|
|
7106
|
+
!type ? type = 'application/json' : '';
|
|
7103
7107
|
var headers = new i1.HttpHeaders({
|
|
7104
|
-
'Content-Type':
|
|
7108
|
+
'Content-Type': type,
|
|
7105
7109
|
'Authorization': "" + this.usuarioActivo.token
|
|
7106
7110
|
});
|
|
7107
7111
|
return headers;
|