@fluxhub/fluxhub-lib 1.0.422 → 1.0.424

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.
@@ -8562,17 +8562,37 @@ class MomentDateAdapter extends DateAdapter {
8562
8562
  * @return {?}
8563
8563
  */
8564
8564
  parse(value, parseFormat) {
8565
+ console.log('prima value ', value, 'parseFormat ', parseFormat);
8565
8566
  if (value != null) {
8566
8567
  /** @type {?} */
8567
8568
  let arr = value.split('/');
8569
+ console.log('arr ', arr);
8568
8570
  if (arr.length == 3) {
8571
+ /** @type {?} */
8572
+ let yy = parseInt(arr[2]);
8573
+ if (yy < 100)
8574
+ yy += 2000;
8569
8575
  if (arr[1].length == 1)
8570
8576
  arr[1] = "0" + arr[1];
8571
8577
  if (arr[0].length == 1)
8572
8578
  arr[0] = "0" + arr[0];
8573
- value = arr[0] + "/" + arr[1] + "/" + arr[2];
8579
+ value = arr[0] + "/" + arr[1] + "/" + yy;
8580
+ }
8581
+ arr = value.split('-');
8582
+ console.log('arr ', arr);
8583
+ if (arr.length == 3) {
8584
+ /** @type {?} */
8585
+ let yy = parseInt(arr[2]);
8586
+ if (yy < 100)
8587
+ yy += 2000;
8588
+ if (arr[1].length == 1)
8589
+ arr[1] = "0" + arr[1];
8590
+ if (arr[0].length == 1)
8591
+ arr[0] = "0" + arr[0];
8592
+ value = arr[0] + "/" + arr[1] + "/" + yy;
8574
8593
  }
8575
8594
  }
8595
+ console.log('fine value ', value, 'parseFormat ', parseFormat);
8576
8596
  /** @type {?} */
8577
8597
  let m = moment(value, parseFormat, true);
8578
8598
  if (!m.isValid()) {
@@ -8735,11 +8755,21 @@ class FHDatePickerComponent extends FHValueAccessor {
8735
8755
  checkInput(ob) {
8736
8756
  console.log('ob ', ob);
8737
8757
  console.log('date_sel ', this.date_sel);
8738
- if (ob.key == '-') {
8758
+ /* if(ob.key=='-')
8759
+ {
8739
8760
  ob.preventDefault();
8740
8761
  //this.date_sel+=this.date_sel+'/';
8741
- this.pickerId.nativeElement.value = this.pickerId.nativeElement.value.split('-').join('/');
8742
- }
8762
+ this.pickerId.nativeElement.value=this.pickerId.nativeElement.value.split('-').join('/');
8763
+
8764
+ }
8765
+ let arr: Array<string> = this.pickerId.nativeElement.value.split('-').join('/').split('/');
8766
+ console.log(arr);
8767
+ if (arr.length == 3) {
8768
+ let yy=parseInt(arr[2]);
8769
+
8770
+ if(yy<25 && yy!=20){yy+=2000;
8771
+ this.pickerId.nativeElement.value=arr[0]+'/'+arr[1]+'/'+yy;}
8772
+ }*/
8743
8773
  }
8744
8774
  ;
8745
8775
  /**
@@ -16432,7 +16462,6 @@ class dati_aggiuntivi {
16432
16462
  this.btnApprova_label = 'APPROVA';
16433
16463
  this.btnAssegna_label = "Assegna";
16434
16464
  this.btnRespingi_label = 'RESPINGI';
16435
- this.enabled_form();
16436
16465
  this.app_s.getState().topnavTitle = this.app_info.descrizione_breve + ' - Nuova Richiesta';
16437
16466
  this.reset_form(this.app_info.descrizione_breve + ' - Nuova Richiesta');
16438
16467
  this.reset_counters_int(0, 0);