ng-inail-common 1.0.385 → 1.0.386
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/ng-inail-common.umd.js +38 -0
- package/bundles/ng-inail-common.umd.js.map +1 -1
- package/bundles/ng-inail-common.umd.min.js +1 -1
- package/bundles/ng-inail-common.umd.min.js.map +1 -1
- package/esm2015/lib/components/ux/paged-table-renderer/paged-table-renderer.component.js +35 -1
- package/esm5/lib/components/ux/paged-table-renderer/paged-table-renderer.component.js +40 -1
- package/fesm2015/ng-inail-common.js +34 -0
- package/fesm2015/ng-inail-common.js.map +1 -1
- package/fesm5/ng-inail-common.js +39 -0
- package/fesm5/ng-inail-common.js.map +1 -1
- package/lib/components/ux/paged-table-renderer/paged-table-renderer.component.d.ts +1 -0
- package/ng-inail-common.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -3061,6 +3061,18 @@
|
|
|
3061
3061
|
&& changes.paginationInfo.currentValue != undefined) {
|
|
3062
3062
|
this.externalPaginationSorting = true;
|
|
3063
3063
|
}
|
|
3064
|
+
// Se nella paginazione esterna viene specificata una proprieta di sorting
|
|
3065
|
+
// modifico il componente thLabel associato
|
|
3066
|
+
if (this.externalPaginationSorting && this.paginationInfo && this.paginationInfo.sortProperty) {
|
|
3067
|
+
if (this.thLabelComponents) {
|
|
3068
|
+
/** @type {?} */
|
|
3069
|
+
var thLabel = this.thLabelComponents.find(( /**
|
|
3070
|
+
* @param {?} item
|
|
3071
|
+
* @return {?}
|
|
3072
|
+
*/function (item) { return item.property == _this.paginationInfo.sortProperty; }));
|
|
3073
|
+
this.setSortDirection(thLabel, ( /** @type {?} */(this.paginationInfo.sortDirection)));
|
|
3074
|
+
}
|
|
3075
|
+
}
|
|
3064
3076
|
// Verifico se e' cambiata la lista degli elementi in input.
|
|
3065
3077
|
// Nel caso in cui si stia effettuando una paginazione interna
|
|
3066
3078
|
// emetto il sottoinsieme inerente la prima pagina
|
|
@@ -3648,6 +3660,32 @@
|
|
|
3648
3660
|
return !this.disabilitaPaginazione
|
|
3649
3661
|
&& (this.elements != undefined || (this.externalPaginationSorting != undefined && this.paginationInfo != undefined));
|
|
3650
3662
|
};
|
|
3663
|
+
/**
|
|
3664
|
+
* @param {?} thLabel
|
|
3665
|
+
* @param {?} direction
|
|
3666
|
+
* @return {?}
|
|
3667
|
+
*/
|
|
3668
|
+
PagedTableRendererComponent.prototype.setSortDirection = /**
|
|
3669
|
+
* @param {?} thLabel
|
|
3670
|
+
* @param {?} direction
|
|
3671
|
+
* @return {?}
|
|
3672
|
+
*/
|
|
3673
|
+
function (thLabel, direction) {
|
|
3674
|
+
if (thLabel) {
|
|
3675
|
+
switch (direction) {
|
|
3676
|
+
case "asc":
|
|
3677
|
+
thLabel.direction = ThLabelComponent.ASC;
|
|
3678
|
+
break;
|
|
3679
|
+
case "desc":
|
|
3680
|
+
thLabel.direction = ThLabelComponent.DESC;
|
|
3681
|
+
break;
|
|
3682
|
+
default:
|
|
3683
|
+
thLabel.direction = ThLabelComponent.UNSORTED;
|
|
3684
|
+
break;
|
|
3685
|
+
}
|
|
3686
|
+
this.modificaTh(thLabel);
|
|
3687
|
+
}
|
|
3688
|
+
};
|
|
3651
3689
|
PagedTableRendererComponent.DEFAULT_TABLE_LENGTH = 10;
|
|
3652
3690
|
PagedTableRendererComponent.decorators = [
|
|
3653
3691
|
{ type: i0.Component, args: [{
|