ng-inail-common 1.0.387 → 1.0.388

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.
@@ -8739,6 +8739,10 @@
8739
8739
  this.pagedTableRendererComponent.setSortDirection(thLabel, ( /** @type {?} */(this.paginationInfo.sortDirection)));
8740
8740
  }
8741
8741
  }
8742
+ // In caso di paginazione interna se specificato un ordinamento iniziale
8743
+ if (!this.paginationInfo && this.initialSort) {
8744
+ this.impostaOrdinamentoIniziale();
8745
+ }
8742
8746
  };
8743
8747
  /**
8744
8748
  * @return {?}
@@ -8788,6 +8792,32 @@
8788
8792
  this.pagedTableRendererComponent.setSortDirection(thLabel, ( /** @type {?} */(this.paginationInfo.sortDirection)));
8789
8793
  }
8790
8794
  }
8795
+ // In caso di paginazione interna se specificato un ordinamento iniziale
8796
+ if (!this.paginationInfo && this.initialSort) {
8797
+ this.impostaOrdinamentoIniziale();
8798
+ }
8799
+ };
8800
+ /**
8801
+ * @return {?}
8802
+ */
8803
+ PagedTableComponent.prototype.impostaOrdinamentoIniziale = /**
8804
+ * @return {?}
8805
+ */
8806
+ function () {
8807
+ var _this = this;
8808
+ if (this.thLabelComponents) {
8809
+ this.thLabelComponents.forEach(( /**
8810
+ * @param {?} thLabel
8811
+ * @return {?}
8812
+ */function (thLabel) {
8813
+ if (thLabel.property == _this.initialSort.sortProperty) {
8814
+ _this.pagedTableRendererComponent.setSortDirection(thLabel, ( /** @type {?} */(_this.initialSort.sortDirection)));
8815
+ }
8816
+ else {
8817
+ _this.pagedTableRendererComponent.setSortDirection(thLabel, undefined);
8818
+ }
8819
+ }));
8820
+ }
8791
8821
  };
8792
8822
  /**
8793
8823
  * @param {?} list
@@ -8829,6 +8859,7 @@
8829
8859
  elements: [{ type: i0.Input }],
8830
8860
  subset: [{ type: i0.Input }],
8831
8861
  subsetChange: [{ type: i0.Output }],
8862
+ initialSort: [{ type: i0.Input }],
8832
8863
  paginationInfo: [{ type: i0.Input }],
8833
8864
  doPagination: [{ type: i0.Input }],
8834
8865
  pageSize: [{ type: i0.Input }],