@fluxhub/fluxhub-lib 1.0.422 → 1.0.423

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.
@@ -9198,17 +9198,37 @@
9198
9198
  * @return {?}
9199
9199
  */
9200
9200
  function (value, parseFormat) {
9201
+ console.log('prima value ', value, 'parseFormat ', parseFormat);
9201
9202
  if (value != null) {
9202
9203
  /** @type {?} */
9203
9204
  var arr = value.split('/');
9205
+ console.log('arr ', arr);
9204
9206
  if (arr.length == 3) {
9207
+ /** @type {?} */
9208
+ var yy = parseInt(arr[2]);
9209
+ if (yy < 100)
9210
+ yy += 2000;
9205
9211
  if (arr[1].length == 1)
9206
9212
  arr[1] = "0" + arr[1];
9207
9213
  if (arr[0].length == 1)
9208
9214
  arr[0] = "0" + arr[0];
9209
- value = arr[0] + "/" + arr[1] + "/" + arr[2];
9215
+ value = arr[0] + "/" + arr[1] + "/" + yy;
9216
+ }
9217
+ arr = value.split('-');
9218
+ console.log('arr ', arr);
9219
+ if (arr.length == 3) {
9220
+ /** @type {?} */
9221
+ var yy = parseInt(arr[2]);
9222
+ if (yy < 100)
9223
+ yy += 2000;
9224
+ if (arr[1].length == 1)
9225
+ arr[1] = "0" + arr[1];
9226
+ if (arr[0].length == 1)
9227
+ arr[0] = "0" + arr[0];
9228
+ value = arr[0] + "/" + arr[1] + "/" + yy;
9210
9229
  }
9211
9230
  }
9231
+ console.log('fine value ', value, 'parseFormat ', parseFormat);
9212
9232
  /** @type {?} */
9213
9233
  var m = moment(value, parseFormat, true);
9214
9234
  if (!m.isValid()) {
@@ -9429,11 +9449,21 @@
9429
9449
  function (ob) {
9430
9450
  console.log('ob ', ob);
9431
9451
  console.log('date_sel ', this.date_sel);
9432
- if (ob.key == '-') {
9452
+ /* if(ob.key=='-')
9453
+ {
9433
9454
  ob.preventDefault();
9434
9455
  //this.date_sel+=this.date_sel+'/';
9435
- this.pickerId.nativeElement.value = this.pickerId.nativeElement.value.split('-').join('/');
9436
- }
9456
+ this.pickerId.nativeElement.value=this.pickerId.nativeElement.value.split('-').join('/');
9457
+
9458
+ }
9459
+ let arr: Array<string> = this.pickerId.nativeElement.value.split('-').join('/').split('/');
9460
+ console.log(arr);
9461
+ if (arr.length == 3) {
9462
+ let yy=parseInt(arr[2]);
9463
+
9464
+ if(yy<25 && yy!=20){yy+=2000;
9465
+ this.pickerId.nativeElement.value=arr[0]+'/'+arr[1]+'/'+yy;}
9466
+ }*/
9437
9467
  };
9438
9468
  /**
9439
9469
  * @param {?} event