@esfaenza/es-table 15.2.26 → 15.2.27
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.
|
@@ -939,7 +939,19 @@ class ColumnMetadataHandler {
|
|
|
939
939
|
let newColset = [];
|
|
940
940
|
if (!this.est.ColumnsList || this.est.ColumnsList.length == 0)
|
|
941
941
|
return;
|
|
942
|
-
let columns =
|
|
942
|
+
let columns = [];
|
|
943
|
+
// Modlaità view ->
|
|
944
|
+
if (this.est.viewMode) {
|
|
945
|
+
// colonne dinamiche -> prendo l'insieme delle colonne e operazioni dinamiche definite
|
|
946
|
+
// standard -> prendo le colonne della view
|
|
947
|
+
if (this.est.DynamicRowColumnsDefinition)
|
|
948
|
+
columns = [...(this.est.DynamicRowColumnsDefinition?.map(t => t.PropertyName) || []), ...(this.est.DynamicOperations?.map(t => t.id) || [])];
|
|
949
|
+
else
|
|
950
|
+
columns = view.columns;
|
|
951
|
+
}
|
|
952
|
+
// Modalità array -> prendo le colonne array
|
|
953
|
+
else
|
|
954
|
+
columns = this.est.arrayColumns;
|
|
943
955
|
this.est.ColumnsList.forEach(c => {
|
|
944
956
|
// Se la colonna è pinnata mi arriva col simoleon, ma anche se è una composizione di più colonne
|
|
945
957
|
let exCl = columns.filter(cc => (cc.startsWith('§') ? cc.substring(1) : cc) == c.id);
|