@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.
@@ -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 _loop_2 = function (i) {
1634
- var context = this_2.est.TMPRowTDs[this_2.est.RowContexts[i]];
1644
+ var _loop_3 = function (i) {
1645
+ var context = this_3.est.TMPRowTDs[this_3.est.RowContexts[i]];
1635
1646
  var newContext = [];
1636
- this_2.est.OrderDirectives.forEach(function (o) {
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
- this_2.est.TMPRowTDs[this_2.est.RowContexts[i]] = newContext;
1651
+ this_3.est.TMPRowTDs[this_3.est.RowContexts[i]] = newContext;
1641
1652
  };
1642
- var this_2 = this;
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
- _loop_2(i);
1656
+ _loop_3(i);
1646
1657
  }
1647
1658
  }
1648
1659
  if (this.est.viewMode)