@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.
@@ -9176,17 +9176,37 @@ var MomentDateAdapter = /** @class */ (function (_super) {
9176
9176
  * @return {?}
9177
9177
  */
9178
9178
  function (value, parseFormat) {
9179
+ console.log('prima value ', value, 'parseFormat ', parseFormat);
9179
9180
  if (value != null) {
9180
9181
  /** @type {?} */
9181
9182
  var arr = value.split('/');
9183
+ console.log('arr ', arr);
9182
9184
  if (arr.length == 3) {
9185
+ /** @type {?} */
9186
+ var yy = parseInt(arr[2]);
9187
+ if (yy < 100)
9188
+ yy += 2000;
9183
9189
  if (arr[1].length == 1)
9184
9190
  arr[1] = "0" + arr[1];
9185
9191
  if (arr[0].length == 1)
9186
9192
  arr[0] = "0" + arr[0];
9187
- value = arr[0] + "/" + arr[1] + "/" + arr[2];
9193
+ value = arr[0] + "/" + arr[1] + "/" + yy;
9194
+ }
9195
+ arr = value.split('-');
9196
+ console.log('arr ', arr);
9197
+ if (arr.length == 3) {
9198
+ /** @type {?} */
9199
+ var yy = parseInt(arr[2]);
9200
+ if (yy < 100)
9201
+ yy += 2000;
9202
+ if (arr[1].length == 1)
9203
+ arr[1] = "0" + arr[1];
9204
+ if (arr[0].length == 1)
9205
+ arr[0] = "0" + arr[0];
9206
+ value = arr[0] + "/" + arr[1] + "/" + yy;
9188
9207
  }
9189
9208
  }
9209
+ console.log('fine value ', value, 'parseFormat ', parseFormat);
9190
9210
  /** @type {?} */
9191
9211
  var m = moment(value, parseFormat, true);
9192
9212
  if (!m.isValid()) {
@@ -9407,11 +9427,21 @@ var FHDatePickerComponent = /** @class */ (function (_super) {
9407
9427
  function (ob) {
9408
9428
  console.log('ob ', ob);
9409
9429
  console.log('date_sel ', this.date_sel);
9410
- if (ob.key == '-') {
9430
+ /* if(ob.key=='-')
9431
+ {
9411
9432
  ob.preventDefault();
9412
9433
  //this.date_sel+=this.date_sel+'/';
9413
- this.pickerId.nativeElement.value = this.pickerId.nativeElement.value.split('-').join('/');
9414
- }
9434
+ this.pickerId.nativeElement.value=this.pickerId.nativeElement.value.split('-').join('/');
9435
+
9436
+ }
9437
+ let arr: Array<string> = this.pickerId.nativeElement.value.split('-').join('/').split('/');
9438
+ console.log(arr);
9439
+ if (arr.length == 3) {
9440
+ let yy=parseInt(arr[2]);
9441
+
9442
+ if(yy<25 && yy!=20){yy+=2000;
9443
+ this.pickerId.nativeElement.value=arr[0]+'/'+arr[1]+'/'+yy;}
9444
+ }*/
9415
9445
  };
9416
9446
  /**
9417
9447
  * @param {?} event