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/fesm2015/sigesp.js
CHANGED
|
@@ -5647,6 +5647,7 @@ class SigespService {
|
|
|
5647
5647
|
* @author Miguel Ramírez
|
|
5648
5648
|
*/
|
|
5649
5649
|
onlyNumbers(event) {
|
|
5650
|
+
// console.log(event);
|
|
5650
5651
|
if (!isNaN(+event.key) && event.keyCode != 32) {
|
|
5651
5652
|
return true;
|
|
5652
5653
|
}
|
|
@@ -6508,13 +6509,16 @@ class SigespService {
|
|
|
6508
6509
|
return this.http.get(`${this.URL}/dao/sss/derechos_usuario_dao.php?idComponent=${this.currentComponent.id}&column=${column}`, { headers: this.getHttpHeaders() });
|
|
6509
6510
|
}
|
|
6510
6511
|
/**
|
|
6511
|
-
|
|
6512
|
-
|
|
6513
|
-
|
|
6514
|
-
|
|
6515
|
-
|
|
6512
|
+
* @description Retorna los headers para hacer las peticiones
|
|
6513
|
+
* @params type: Tipo MIME permitido por defecto se toma application/json
|
|
6514
|
+
* @return HttpHeaders
|
|
6515
|
+
* @author Miguel Ramírez
|
|
6516
|
+
* @date-update: 15-06-2022
|
|
6517
|
+
*/
|
|
6518
|
+
getHttpHeaders(type) {
|
|
6519
|
+
!type ? type = 'application/json' : '';
|
|
6516
6520
|
const headers = new HttpHeaders({
|
|
6517
|
-
'Content-Type':
|
|
6521
|
+
'Content-Type': type,
|
|
6518
6522
|
'Authorization': `${this.usuarioActivo.token}`
|
|
6519
6523
|
});
|
|
6520
6524
|
return headers;
|