@esfaenza/es-table 11.2.33 → 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.
- package/bundles/esfaenza-es-table.umd.js +18 -7
- package/bundles/esfaenza-es-table.umd.js.map +1 -1
- package/bundles/esfaenza-es-table.umd.min.js +1 -1
- package/bundles/esfaenza-es-table.umd.min.js.map +1 -1
- package/esm2015/lib/core/handlers/classes/ColumnMetadataHandler.js +9 -2
- package/fesm2015/esfaenza-es-table.js +8 -1
- package/fesm2015/esfaenza-es-table.js.map +1 -1
- package/package.json +1 -1
|
@@ -1605,8 +1605,19 @@
|
|
|
1605
1605
|
this.est.OrderDirectives.push(order);
|
|
1606
1606
|
}
|
|
1607
1607
|
}
|
|
1608
|
-
else
|
|
1608
|
+
else {
|
|
1609
1609
|
this.est.OrderDirectives = orderings;
|
|
1610
|
+
var _loop_2 = function (i) {
|
|
1611
|
+
var th = ths[i];
|
|
1612
|
+
var thId = this_2.utilities.isEsTh(th) ? th.ID : th.th;
|
|
1613
|
+
if (!this_2.est.OrderDirectives.find(function (o) { return o == thId; }))
|
|
1614
|
+
this_2.est.OrderDirectives.push(thId);
|
|
1615
|
+
};
|
|
1616
|
+
var this_2 = this;
|
|
1617
|
+
for (var i = 0; i < ths.length; i++) {
|
|
1618
|
+
_loop_2(i);
|
|
1619
|
+
}
|
|
1620
|
+
}
|
|
1610
1621
|
};
|
|
1611
1622
|
/**
|
|
1612
1623
|
* Applica l'ordine specificato alle varie colonne
|
|
@@ -1630,19 +1641,19 @@
|
|
|
1630
1641
|
newHeaders.push(heaedrItem);
|
|
1631
1642
|
});
|
|
1632
1643
|
this.est.TMPRowTHs = newHeaders;
|
|
1633
|
-
var
|
|
1634
|
-
var context =
|
|
1644
|
+
var _loop_3 = function (i) {
|
|
1645
|
+
var context = this_3.est.TMPRowTDs[this_3.est.RowContexts[i]];
|
|
1635
1646
|
var newContext = [];
|
|
1636
|
-
|
|
1647
|
+
this_3.est.OrderDirectives.forEach(function (o) {
|
|
1637
1648
|
var contextItem = context.filter(function (t) { return t.ID == o; })[0];
|
|
1638
1649
|
newContext.push(contextItem);
|
|
1639
1650
|
});
|
|
1640
|
-
|
|
1651
|
+
this_3.est.TMPRowTDs[this_3.est.RowContexts[i]] = newContext;
|
|
1641
1652
|
};
|
|
1642
|
-
var
|
|
1653
|
+
var this_3 = this;
|
|
1643
1654
|
// Genero ordinamento per le celle
|
|
1644
1655
|
for (var i = 0; i < this.est.RowContexts.length; i++) {
|
|
1645
|
-
|
|
1656
|
+
_loop_3(i);
|
|
1646
1657
|
}
|
|
1647
1658
|
}
|
|
1648
1659
|
if (this.est.viewMode)
|