sigesp 0.8.97-20220614 → 0.8.100-20220705
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 +20 -36
- package/bundles/sigesp.umd.js.map +1 -1
- package/bundles/sigesp.umd.min.js +2 -2
- package/bundles/sigesp.umd.min.js.map +1 -1
- package/esm2015/lib/core/models/SNO/MAsignacionCargo.model.js +3 -3
- package/esm2015/lib/core/models/SNO/MNominaSimple.model.js +3 -3
- package/esm2015/lib/shared/components/table-select/table-select.component.js +2 -2
- package/esm2015/lib/sigesp.service.js +16 -32
- package/fesm2015/sigesp.js +20 -36
- package/fesm2015/sigesp.js.map +1 -1
- package/lib/sigesp.service.d.ts +10 -7
- package/package.json +1 -1
- package/sigesp.metadata.json +1 -1
package/bundles/sigesp.umd.js
CHANGED
|
@@ -1248,7 +1248,7 @@
|
|
|
1248
1248
|
TableSelectComponent.decorators = [
|
|
1249
1249
|
{ type: i0.Component, args: [{
|
|
1250
1250
|
selector: 'app-table-select',
|
|
1251
|
-
template: "<div class=\"container\">\r\n <!-- HEADER DE EL COMPONENTE -->\r\n <div class=\"header mainColor\">\r\n <!-- T\u00CDTULO -->\r\n <h2>{{dialogData.title}}</h2>\r\n <!-- BTN CERRAR -->\r\n <div class=\"close\">\r\n <div class=\"btn\" (click)=\"cancelDialog()\">\r\n <icon-m [name]=\"'close'\" [color]=\"'black'\"></icon-m>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <!-- BODY -->\r\n <div class=\"body\">\r\n <!-- FILTER -->\r\n <div class=\"filter\">\r\n <mat-form-field class=\"input\">\r\n <input type=\"text\" matInput placeholder=\"Filtrar\"\r\n (keyup)=\"filterTable($event.target.value)\">\r\n </mat-form-field>\r\n </div>\r\n <!-- TABLA -->\r\n <div class=\"table-container\">\r\n <table mat-table [dataSource]=\"dataSource\" matSort>\r\n\r\n <!-- CHECKS -->\r\n <ng-container matColumnDef=\"select\">\r\n <th mat-header-cell *matHeaderCellDef
|
|
1251
|
+
template: "<div class=\"container\">\r\n <!-- HEADER DE EL COMPONENTE -->\r\n <div class=\"header mainColor\">\r\n <!-- T\u00CDTULO -->\r\n <h2>{{dialogData.title}}</h2>\r\n <!-- BTN CERRAR -->\r\n <div class=\"close\">\r\n <div class=\"btn\" (click)=\"cancelDialog()\">\r\n <icon-m [name]=\"'close'\" [color]=\"'black'\"></icon-m>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <!-- BODY -->\r\n <div class=\"body\">\r\n <!-- FILTER -->\r\n <div class=\"filter\">\r\n <mat-form-field class=\"input\">\r\n <input type=\"text\" matInput placeholder=\"Filtrar\"\r\n (keyup)=\"filterTable($event.target.value)\">\r\n </mat-form-field>\r\n </div>\r\n <!-- TABLA -->\r\n <div class=\"table-container\">\r\n <table mat-table [dataSource]=\"dataSource\" matSort>\r\n\r\n <!-- CHECKS -->\r\n <ng-container matColumnDef=\"select\">\r\n <th mat-header-cell *matHeaderCellDef>\r\n <mat-checkbox (change)=\"$event ? masterToggle() : null\"\r\n [disabled]=\"disableMasterToggle || getFilter()\" color=\"primary\"\r\n [checked]=\"selection.hasValue() && isAllSelected()\" \r\n [indeterminate]=\"selection.hasValue() && !isAllSelected()\"\r\n [aria-label]=\"checkboxLabel()\"\r\n ></mat-checkbox>\r\n </th>\r\n <td mat-cell *matCellDef=\"let row\">\r\n <mat-checkbox (click)=\"$event.stopPropagation()\"\r\n (change)=\"$event ? selection.toggle(row) : null\"\r\n [checked]=\"selection.isSelected(row)\" color=\"primary\"\r\n [aria-label]=\"checkboxLabel(row)\"></mat-checkbox>\r\n </td>\r\n </ng-container>\r\n\r\n <!-- DATA -->\r\n <ng-container *ngFor=\"let column of columnsAux; let i = index\" [matColumnDef]=\"column\">\r\n <th mat-header-cell *matHeaderCellDef mat-sort-header> \r\n {{(names[i] ? names[i] : column) | uppercase}} \r\n </th>\r\n <td mat-cell *matCellDef=\"let row\"> \r\n {{row[column]}} \r\n </td>\r\n </ng-container>\r\n\r\n <tr mat-header-row *matHeaderRowDef=\"columns\"></tr>\r\n <tr mat-row *matRowDef=\"let row; columns: columns;\"\r\n (click)=\"selection.toggle(row)\">\r\n </tr>\r\n </table>\r\n <mat-paginator [pageSizeOptions]=\"[5, 10, 25, 100]\" showFirstLastButtons class=\"paginator\"></mat-paginator>\r\n </div>\r\n\r\n <div class=\"buttons\">\r\n <button mat-raised-button color=\"primary\" \r\n [disabled]=\"selection.selected.length==0\"\r\n (click)=\"closeDialog()\">Aceptar</button>\r\n </div>\r\n </div>\r\n</div>\r\n",
|
|
1252
1252
|
styles: [".container .header{border-radius:5px 5px 0 0;display:grid;grid-template-columns:repeat(10,10%);padding:15px;text-align:center}.container .header h2{grid-column:1/10;margin:0;text-align:left}.container .header .close{align-items:center;display:flex;grid-column:10/11;justify-content:center}.container .header .close .btn{align-items:center;background:#fff;border-radius:50%;cursor:pointer;display:flex;height:30px;justify-content:center;width:30px}.container .header .close .btn Icon{display:flex}.container .body{margin-top:10px;padding:15px}.container .body .filter .input,.container .body .table-container table{width:100%}.container .body .table-container table .row:hover{background:#777;cursor:pointer}.container .body .table-container table .mat-cell{padding-bottom:5px!important;padding-right:5px!important;padding-top:5px!important}.container .body .paginator{margin-top:15px}.container .body .buttons{display:flex;justify-content:flex-end;padding:10px}.container .body .buttons button{font-size:17px}"]
|
|
1253
1253
|
},] }
|
|
1254
1254
|
];
|
|
@@ -4148,8 +4148,8 @@
|
|
|
4148
4148
|
_this.denominacionNomina = e.dennom;
|
|
4149
4149
|
_this.idDtNomina = parseInt(e.id_dt_carnom);
|
|
4150
4150
|
_this.periodoActualNomina = e.peractnom;
|
|
4151
|
-
_this.calculada = e.calculado
|
|
4152
|
-
_this.prenomina = e.prenomina
|
|
4151
|
+
(e.calculado) ? _this.calculada = parseInt(e.calculado) > 0 ? true : false : _this.calculada = false;
|
|
4152
|
+
(e.prenomina) ? _this.prenomina = parseInt(e.prenomina) > 0 ? true : false : _this.prenomina = false;
|
|
4153
4153
|
_this.estatus = _this.calculada ? 'Calculada' :
|
|
4154
4154
|
!_this.calculada && _this.prenomina ? 'Pre-Calculada' : 'Sin Calcular';
|
|
4155
4155
|
_this.editables = (_this.calculada || _this.prenomina) ? false : true;
|
|
@@ -4212,8 +4212,8 @@
|
|
|
4212
4212
|
_this.idPeriodoActual = +e.id_periodoactual;
|
|
4213
4213
|
_this.totalPeriodo = parseFloat(e.totper),
|
|
4214
4214
|
_this.estatusPeriodo = parseInt(e.cerper);
|
|
4215
|
-
_this.calculada = e.calculado
|
|
4216
|
-
_this.prenomina = e.prenomina
|
|
4215
|
+
(e.calculado) ? _this.calculada = parseInt(e.calculado) > 0 ? true : false : _this.calculada = false;
|
|
4216
|
+
(e.prenomina) ? _this.prenomina = parseInt(e.prenomina) > 0 ? true : false : _this.prenomina = false;
|
|
4217
4217
|
_this.estatus = _this.calculada ? 'Calculada' :
|
|
4218
4218
|
!_this.calculada && _this.prenomina ? 'Pre-Calculada' : 'Sin Calcular';
|
|
4219
4219
|
_this.editable = (_this.calculada || _this.prenomina) ? false : true;
|
|
@@ -6105,37 +6105,17 @@
|
|
|
6105
6105
|
return formGroup.get(name);
|
|
6106
6106
|
};
|
|
6107
6107
|
/**
|
|
6108
|
-
* @description
|
|
6108
|
+
* @description Previene que se escriban letras en el input (Usar en keypress)
|
|
6109
6109
|
* @param event Evento del teclado
|
|
6110
6110
|
* @return boolean
|
|
6111
6111
|
* @author Miguel Ramírez
|
|
6112
|
+
* @modificado como onlyNumero para corregir codigo, usar currency-input si quiere usar decimales
|
|
6112
6113
|
*/
|
|
6113
6114
|
SigespService.prototype.onlyDecimal = function (event) {
|
|
6114
|
-
|
|
6115
|
-
|
|
6116
|
-
var number = event.target.value + event.key;
|
|
6117
|
-
// console.log(number);
|
|
6118
|
-
if (this.onlyNumbers(event) || event.key === ',') {
|
|
6119
|
-
for (var i = 0; i < number.length; i++) {
|
|
6120
|
-
if (number.charAt(i) === ',') {
|
|
6121
|
-
contPoint++;
|
|
6122
|
-
}
|
|
6123
|
-
}
|
|
6124
|
-
if (contPoint > 1) {
|
|
6125
|
-
return false;
|
|
6126
|
-
}
|
|
6127
|
-
else {
|
|
6128
|
-
if (number.indexOf(',') !== -1) {
|
|
6129
|
-
if (number.substring(number.indexOf(',') + 1, number.length).length > 2) {
|
|
6130
|
-
return false;
|
|
6131
|
-
}
|
|
6132
|
-
}
|
|
6133
|
-
return true;
|
|
6134
|
-
}
|
|
6135
|
-
}
|
|
6136
|
-
else {
|
|
6137
|
-
return false;
|
|
6115
|
+
if (!isNaN(+event.key) && event.keyCode != 32) {
|
|
6116
|
+
return true;
|
|
6138
6117
|
}
|
|
6118
|
+
return false;
|
|
6139
6119
|
};
|
|
6140
6120
|
/**
|
|
6141
6121
|
* @description Previene que se escriban letras en el input (Usar en keypress)
|
|
@@ -6144,6 +6124,7 @@
|
|
|
6144
6124
|
* @author Miguel Ramírez
|
|
6145
6125
|
*/
|
|
6146
6126
|
SigespService.prototype.onlyNumbers = function (event) {
|
|
6127
|
+
// console.log(event);
|
|
6147
6128
|
if (!isNaN(+event.key) && event.keyCode != 32) {
|
|
6148
6129
|
return true;
|
|
6149
6130
|
}
|
|
@@ -7095,13 +7076,16 @@
|
|
|
7095
7076
|
return this.http.get(this.URL + "/dao/sss/derechos_usuario_dao.php?idComponent=" + this.currentComponent.id + "&column=" + column, { headers: this.getHttpHeaders() });
|
|
7096
7077
|
};
|
|
7097
7078
|
/**
|
|
7098
|
-
|
|
7099
|
-
|
|
7100
|
-
|
|
7101
|
-
|
|
7102
|
-
|
|
7079
|
+
* @description Retorna los headers para hacer las peticiones
|
|
7080
|
+
* @params type: Tipo MIME permitido por defecto se toma application/json
|
|
7081
|
+
* @return HttpHeaders
|
|
7082
|
+
* @author Miguel Ramírez
|
|
7083
|
+
* @date-update: 15-06-2022
|
|
7084
|
+
*/
|
|
7085
|
+
SigespService.prototype.getHttpHeaders = function (type) {
|
|
7086
|
+
!type ? type = 'application/json' : '';
|
|
7103
7087
|
var headers = new i1.HttpHeaders({
|
|
7104
|
-
'Content-Type':
|
|
7088
|
+
'Content-Type': type,
|
|
7105
7089
|
'Authorization': "" + this.usuarioActivo.token
|
|
7106
7090
|
});
|
|
7107
7091
|
return headers;
|