sigesp 1.0.1-20240419 → 1.0.2-20240419

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.
@@ -13,7 +13,7 @@ import { MatSort, MatSortModule } from '@angular/material/sort';
13
13
  import * as i1 from '@angular/material/dialog';
14
14
  import { MAT_DIALOG_DATA, MatDialogModule } from '@angular/material/dialog';
15
15
  import * as i2 from '@angular/common';
16
- import { CommonModule } from '@angular/common';
16
+ import { formatDate, CommonModule } from '@angular/common';
17
17
  import * as i3 from '@angular/material/icon';
18
18
  import { MatIconModule } from '@angular/material/icon';
19
19
  import * as i4 from '@angular/material/form-field';
@@ -26,7 +26,6 @@ import * as i4$1 from '@angular/material/checkbox';
26
26
  import { MatCheckboxModule } from '@angular/material/checkbox';
27
27
  import * as i9 from '@angular/forms';
28
28
  import { FormsModule } from '@angular/forms';
29
- import * as moment$2 from 'moment';
30
29
  import Swal from 'sweetalert2';
31
30
  import * as CryptoJS from 'crypto-js';
32
31
  import * as i3$2 from 'ngx-toastr';
@@ -2418,7 +2417,7 @@ class MUserDetail extends MBasicModel {
2418
2417
  this.blockDate = '1900-01-01';
2419
2418
  this.passDate = '1900-01-01';
2420
2419
  this.birthday = '1900-01-01';
2421
- this.registrationDate = moment$2().format('YYYY-MM-DD');
2420
+ this.registrationDate = formatDate(new Date(), 'yyyy-MM-dd', 'en-US');
2422
2421
  this.photo = 'default.png';
2423
2422
  this.name = '';
2424
2423
  this.notes = '';
@@ -4788,7 +4787,7 @@ class MDefinicionNomina extends MBasicModel {
4788
4787
  fechaFinalNomina() {
4789
4788
  let i = this.periodosNomina.length - 1;
4790
4789
  let fechaFin = this.periodosNomina[i].fechaHastaperiodo;
4791
- return moment$2(fechaFin).format('DD/MM/YYYY');
4790
+ return formatDate(fechaFin, 'yyyy-MM-dd', 'en-US');
4792
4791
  }
4793
4792
  /**
4794
4793
  * @returns fecha de inicio a fin de la nomina
@@ -4797,7 +4796,7 @@ class MDefinicionNomina extends MBasicModel {
4797
4796
  let i = this.periodosNomina.length - 1;
4798
4797
  let fechaFin = this.periodosNomina[i].fechaHastaperiodo;
4799
4798
  let fechaIni = this.periodosNomina[i].fechaDesdePeriodo;
4800
- return moment$2(fechaIni).format('DD/MM/YYYY') + ' al ' + moment$2(fechaFin).format('DD/MM/YYYY');
4799
+ return formatDate(fechaFin, 'dd-MM-yyyy', 'es-ES') + ' al ' + formatDate(fechaIni, 'dd-MM-yyyy', 'es-ES');
4801
4800
  }
4802
4801
  /**
4803
4802
  *
@@ -14274,7 +14273,6 @@ const Eventos = [
14274
14273
  { value: "DELETE" }
14275
14274
  ];
14276
14275
 
14277
- const moment$1 = require("moment");
14278
14276
  class MSnoLog extends MBasicModel {
14279
14277
  constructor(e) {
14280
14278
  super();
@@ -14321,8 +14319,8 @@ class MSnoLog extends MBasicModel {
14321
14319
  id_auditoria_personal: this.idAuditoriaPersonal.toString(),
14322
14320
  id_registro: this.idRegistro.toString(),
14323
14321
  id_nomina: this.idNomina.toString(),
14324
- fecha: moment$1().format('YYYY-MM-DD'),
14325
- hora: moment$1().format('h:mm:ss a'),
14322
+ fecha: formatDate(new Date(), 'yyyy-MM-dd', 'en-US'),
14323
+ hora: formatDate(new Date(), 'yyyy-MM-dd', 'en-US'),
14326
14324
  campo: this.campoPermitido.find(e => e.denominacion == this.campo).value,
14327
14325
  valor_anterior: this.valorAnterior,
14328
14326
  valor_nuevo: this.evento == 'DELETE' ? '-' : this.valorNuevo,