@fluxhub/fluxhub-lib 1.0.304 → 1.0.306

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.
@@ -6989,20 +6989,13 @@
6989
6989
  * @return {?}
6990
6990
  */
6991
6991
  function (s) {
6992
- console.log('s ', s);
6993
- console.log('this.date_sel prima ', this.date_sel);
6994
6992
  /** @type {?} */
6995
6993
  var arr = s.split('/');
6996
6994
  if (arr.length == 3) {
6997
- console.log('arr[2]) < 3000 ', (parseInt(arr[2]) < 3000));
6998
- console.log('parseInt(arr[0]) > 0 && parseInt(arr[0]) <= 31 ', (parseInt(arr[0]) > 0 && parseInt(arr[0]) <= 31));
6999
- console.log('parseInt(arr[1]) > 0 && parseInt(arr[1]) <= 12 ', (parseInt(arr[1]) > 0 && parseInt(arr[1]) <= 12));
7000
6995
  if (parseInt(arr[2]) < 3000 && parseInt(arr[0]) > 0 && parseInt(arr[0]) <= 31 && parseInt(arr[1]) > 0 && parseInt(arr[1]) <= 12) {
7001
- console.log('data ', arr);
7002
6996
  /** @type {?} */
7003
6997
  var dtp = new MomentDateAdapter();
7004
6998
  this.date_sel = dtp.createDate(parseInt(arr[2]), parseInt(arr[1]) - 1, parseInt(arr[0]));
7005
- console.log('this.date_sel dopo ', this.date_sel);
7006
6999
  }
7007
7000
  else
7008
7001
  console.log('data non valida! ', arr);
@@ -7084,8 +7077,10 @@
7084
7077
  * @return {?}
7085
7078
  */
7086
7079
  function () {
7087
- this.date_sel = new Date(this.date_sel.getFullYear() + 1, this.date_sel.getMonth(), this.date_sel.getDate());
7088
- this.v_view = this.uti_s.date2String(this.date_sel);
7080
+ /** @type {?} */
7081
+ var dtp = new MomentDateAdapter();
7082
+ this.date_sel = dtp.createDate(this.getValue().getFullYear() + 1, this.getValue().getMonth(), this.getValue().getDate());
7083
+ this.v_view = this.uti_s.date2String(this.date_sel.getValue());
7089
7084
  this.ch();
7090
7085
  };
7091
7086
  /**
@@ -7095,8 +7090,10 @@
7095
7090
  * @return {?}
7096
7091
  */
7097
7092
  function () {
7098
- this.date_sel = new Date(this.date_sel.getFullYear() + 1, 1, 1);
7099
- this.v_view = this.uti_s.date2String(this.date_sel);
7093
+ /** @type {?} */
7094
+ var dtp = new MomentDateAdapter();
7095
+ this.date_sel = dtp.createDate(this.getValue().getFullYear() + 1, 1, 1);
7096
+ this.v_view = this.uti_s.date2String(this.date_sel.getValue());
7100
7097
  this.ch();
7101
7098
  };
7102
7099
  /**
@@ -7106,8 +7103,10 @@
7106
7103
  * @return {?}
7107
7104
  */
7108
7105
  function () {
7109
- this.date_sel = new Date(this.date_sel.getFullYear() + 1, 12, 31);
7110
- this.v_view = this.uti_s.date2String(this.date_sel);
7106
+ /** @type {?} */
7107
+ var dtp = new MomentDateAdapter();
7108
+ this.date_sel = dtp.createDate(this.getValue().getFullYear() + 1, 12, 31);
7109
+ this.v_view = this.uti_s.date2String(this.date_sel.getValue());
7111
7110
  this.ch();
7112
7111
  };
7113
7112
  /**
@@ -7119,7 +7118,7 @@
7119
7118
  function () {
7120
7119
  if (this.date_sel == null)
7121
7120
  return null;
7122
- return this.date_sel;
7121
+ return this.date_sel.toDate();
7123
7122
  };
7124
7123
  /**
7125
7124
  * @return {?}
@@ -7173,8 +7172,10 @@
7173
7172
  d = new Date(d.value);
7174
7173
  }
7175
7174
  }
7176
- this.date_sel = new Date(d.getFullYear(), d.getMonth(), d.getDate());
7177
- this.v_view = this.uti_s.date2String(this.date_sel);
7175
+ /** @type {?} */
7176
+ var dtp = new MomentDateAdapter();
7177
+ this.date_sel = dtp.createDate(d.getFullYear(), d.getMonth(), d.getDate());
7178
+ this.v_view = this.uti_s.date2String(this.date_sel.getValue());
7178
7179
  };
7179
7180
  FHDatePickerComponent.decorators = [
7180
7181
  { type: i0.Component, args: [{