@esfaenza/extensions 15.2.21 → 15.2.23
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.
|
@@ -1026,7 +1026,7 @@ class ExportService {
|
|
|
1026
1026
|
* @param {CsvHeaders} headers Contenitore degli header, verrà riempito da questa funzione
|
|
1027
1027
|
* @param {LocalizationService} loc Servizio di localizzazione che traduce tutti i nomi che può
|
|
1028
1028
|
*/
|
|
1029
|
-
parseList(obj, prop, headers, loc) {
|
|
1029
|
+
parseList(obj, prop, headers, columnsSelection, loc) {
|
|
1030
1030
|
let headernavigator = obj[prop + listCsvHdrPrefix];
|
|
1031
1031
|
let valuenavigator = obj[prop + listCsvValPrefix];
|
|
1032
1032
|
let valueformat = obj[prop + listCsvValFormat];
|
|
@@ -1042,10 +1042,11 @@ class ExportService {
|
|
|
1042
1042
|
jumps = pr.split(".");
|
|
1043
1043
|
tmpRes = JSON.parse(JSON.stringify(listitem));
|
|
1044
1044
|
jumps.forEach(pp => { tmpRes = tmpRes[pp]; });
|
|
1045
|
+
let localized = !!loc ? loc.loc(tmpRes) : tmpRes;
|
|
1045
1046
|
if (!label)
|
|
1046
|
-
label =
|
|
1047
|
+
label = localized;
|
|
1047
1048
|
else
|
|
1048
|
-
label += " " +
|
|
1049
|
+
label += " " + localized;
|
|
1049
1050
|
});
|
|
1050
1051
|
jumps = valuenavigator.split(".");
|
|
1051
1052
|
tmpRes = JSON.parse(JSON.stringify(listitem));
|
|
@@ -1082,7 +1083,7 @@ class ExportService {
|
|
|
1082
1083
|
* @param {CsvHeaders} headers Contenitore degli header, verrà riempito da questa funzione
|
|
1083
1084
|
* @param {LocalizationService} loc Servizio di localizzazione che traduce tutti i nomi che può
|
|
1084
1085
|
*/
|
|
1085
|
-
parseDictionary(obj, prop, headers, loc) {
|
|
1086
|
+
parseDictionary(obj, prop, headers, columnsSelection, loc) {
|
|
1086
1087
|
let headernavigator = obj[prop + dictionaryCsvHdrPrefix];
|
|
1087
1088
|
let valuenavigator = obj[prop + dictionaryCsvValPrefix];
|
|
1088
1089
|
let order = obj[prop + csvOrdPrefix];
|