[ADD] AVANCE VALIDACIONES EN REGISTRO DE PASAJES Y DOCUMENTOS

parent 1055001d
......@@ -30,12 +30,15 @@
"@angular/cli": "^18.2.1",
"@angular/compiler-cli": "^18.2.0",
"@types/jasmine": "~5.1.0",
"autoprefixer": "^10.4.20",
"jasmine-core": "~5.2.0",
"karma": "~6.4.0",
"karma-chrome-launcher": "~3.2.0",
"karma-coverage": "~2.2.0",
"karma-jasmine": "~5.1.0",
"karma-jasmine-html-reporter": "~2.1.0",
"postcss": "^8.4.47",
"tailwindcss": "^3.4.11",
"typescript": "~5.5.2"
}
}
......@@ -43,6 +43,11 @@
opacity: 0; /* El objetivo es que la opacidad llegue a 0 (completamente transparente) */
}
.mdc-button__label{
display: flex !important;
align-items: center !important;
}
mat-label {
opacity: 1; /* Por defecto, el label será completamente visible */
}
......
......@@ -17,25 +17,6 @@ export class ConformidadHelper {
}
}
/*async cargarSede(){
const respuesta = await this.ConformidadService.listadoGeneralHorizon({accion: 1});
if(respuesta?.status){
return respuesta.data;
}else{
return [];
}
}
async cargarRequerimientos(json : any){
const respuesta = await this.ConformidadService.listadoRequerimientos(json);
if (respuesta?.status) {
return respuesta.data;
}else{
return [];
}
}*/
async listadoGeneralHorizon(json: any){
const respuesta = await this.ConformidadService.listadoGeneralHorizon(json);
if (respuesta?.status) {
......
import { MatDateFormats } from '@angular/material/core';
export const MY_DATE_FORMATS: MatDateFormats = {
parse: {
dateInput: 'DD/MM/YYYY',
},
display: {
dateInput: 'DD/MM/YYYY',
monthYearLabel: 'MMM YYYY',
dateA11yLabel: 'DD/MM/YYYY',
monthYearA11yLabel: 'MMMM YYYY',
},
};
/*import { SoloNumerosDirective } from './solo-numeros.directive';
describe('SoloNumerosDirective', () => {
it('should create an instance', () => {
const directive = new SoloNumerosDirective();
expect(directive).toBeTruthy();
});
});
*/
import { Directive ,HostListener } from '@angular/core';
@Directive({
selector: '[soloNumeros]',
standalone: true
})
export class SoloNumerosDirective {
//constructor() { }
@HostListener('keypress', ['$event'])
onKeyPress(event: KeyboardEvent) {
const charCode = event.key;
// Permitir solo números (0-9)
if (!/^[0-9]$/.test(charCode)) {
event.preventDefault();
}
}
}
/* You can add global styles to this file, and also import other style files */
@tailwind base;
@tailwind components;
@tailwind utilities;
html, body { height: 100%; }
body { margin: 0; font-family: Roboto, "Helvetica Neue", sans-serif; }
.mat-mdc-form-field .mdc-notched-outline__notch {
border-right: 0px !important;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment