@esfaenza/extensions 11.2.32 → 11.2.34

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.
@@ -612,8 +612,13 @@
612
612
  if (mydt == null)
613
613
  return "FE: Not a Date";
614
614
  var isZeroTime = mydt.startOf(timepart).valueOf() === mydt.valueOf();
615
- if (!isZeroTime)
615
+ if (!isZeroTime) {
616
+ if (timepart == "day" && mydt.subtract(1, "hour").hour() == mydt.hour()) {
617
+ // Se l'ora precedente è lo stesso orario dell'ora attuale l'istante finale dev'essere mandato avanti di 1
618
+ mydt = mydt.add(1, "hour");
619
+ }
616
620
  return printSeconds ? mydt.format(this.cfg.fulldateDisplay) : mydt.format(this.cfg.fulldateDisplayNoSS);
621
+ }
617
622
  var tmpValue = mydt.subtract(1, timepart);
618
623
  var value = "";
619
624
  // Istante finale delle ore: 05/10/1992 --> 04/10/1992 24:00(:00)
@@ -1048,19 +1053,25 @@
1048
1053
  if (!propsDictionary.hasOwnProperty(propId))
1049
1054
  continue;
1050
1055
  var prop = propsDictionary[propId];
1056
+ var propBase = "";
1051
1057
  var toCall = void 0;
1052
- if (prop.endsWith(listCsvHdrPrefix))
1058
+ if (prop.endsWith(listCsvHdrPrefix)) {
1059
+ propBase = prop.replace(listCsvHdrPrefix, '');
1053
1060
  toCall = this.parseList.bind(this);
1054
- else if (prop.endsWith(dictionaryCsvHdrPrefix))
1061
+ }
1062
+ else if (prop.endsWith(dictionaryCsvHdrPrefix)) {
1055
1063
  toCall = this.parseDictionary.bind(this);
1064
+ propBase = prop.replace(dictionaryCsvHdrPrefix, '');
1065
+ }
1056
1066
  else if (prop.endsWith(csvVisPrefix)) {
1057
- if (typeof obj[prop.replace(csvVisPrefix, '') + csvValueNavigator] !== "undefined")
1067
+ propBase = prop.replace(csvVisPrefix, '');
1068
+ if (typeof obj[propBase + csvValueNavigator] !== "undefined")
1058
1069
  toCall = this.parseObject.bind(this);
1059
1070
  else
1060
1071
  toCall = this.parseProperty.bind(this);
1061
1072
  }
1062
1073
  if (toCall)
1063
- toCall(obj, prop, headers);
1074
+ toCall(obj, propBase, headers);
1064
1075
  }
1065
1076
  return headers;
1066
1077
  };