@fluxhub/fluxhub-lib 11.0.91 → 11.0.93

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.
@@ -8866,19 +8866,19 @@
8866
8866
  FHDatePickerComponent.prototype.ini_year = function () {
8867
8867
  var dtp = new MomentDateAdapter();
8868
8868
  var dt_v = this.getValue();
8869
- if (dt_v != null) {
8870
- this.date_sel = dtp.createDate(dt_v.getFullYear() + 1, 1, 1);
8871
- this.v_view = this.uti_s.date2String(dt_v);
8872
- }
8869
+ if (!dt_v)
8870
+ dt_v = new Date();
8871
+ this.date_sel = dtp.createDate(dt_v.getFullYear(), 0, 1);
8872
+ this.v_view = this.uti_s.date2String(dt_v);
8873
8873
  this.ch();
8874
8874
  };
8875
8875
  FHDatePickerComponent.prototype.fin_year = function () {
8876
8876
  var dtp = new MomentDateAdapter();
8877
8877
  var dt_v = this.getValue();
8878
- if (dt_v != null) {
8879
- this.date_sel = dtp.createDate(dt_v.getFullYear() + 1, 12, 31);
8880
- this.v_view = this.uti_s.date2String(dt_v);
8881
- }
8878
+ if (!dt_v)
8879
+ dt_v = new Date();
8880
+ this.date_sel = dtp.createDate(dt_v.getFullYear(), 11, 31);
8881
+ this.v_view = this.uti_s.date2String(dt_v);
8882
8882
  this.ch();
8883
8883
  };
8884
8884
  FHDatePickerComponent.prototype.getValue = function () {