@seniorsistemas/angular-components 16.1.0 → 16.2.0

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.
Files changed (25) hide show
  1. package/bundles/seniorsistemas-angular-components.umd.js +18 -3
  2. package/bundles/seniorsistemas-angular-components.umd.js.map +1 -1
  3. package/bundles/seniorsistemas-angular-components.umd.min.js +1 -1
  4. package/bundles/seniorsistemas-angular-components.umd.min.js.map +1 -1
  5. package/components/table/index.d.ts +1 -0
  6. package/components/table/table-paging/index.d.ts +1 -0
  7. package/components/table/table-paging/models/custom-action.interface.d.ts +4 -0
  8. package/components/table/table-paging/models/index.d.ts +1 -0
  9. package/components/table/table-paging/table-paging.component.d.ts +2 -0
  10. package/esm2015/components/table/index.js +1 -1
  11. package/esm2015/components/table/table-paging/index.js +1 -0
  12. package/esm2015/components/table/table-paging/models/custom-action.interface.js +1 -0
  13. package/esm2015/components/table/table-paging/models/index.js +1 -0
  14. package/esm2015/components/table/table-paging/table-paging.component.js +19 -4
  15. package/esm5/components/table/index.js +1 -1
  16. package/esm5/components/table/table-paging/index.js +1 -0
  17. package/esm5/components/table/table-paging/models/custom-action.interface.js +1 -0
  18. package/esm5/components/table/table-paging/models/index.js +1 -0
  19. package/esm5/components/table/table-paging/table-paging.component.js +19 -4
  20. package/fesm2015/seniorsistemas-angular-components.js +18 -3
  21. package/fesm2015/seniorsistemas-angular-components.js.map +1 -1
  22. package/fesm5/seniorsistemas-angular-components.js +18 -3
  23. package/fesm5/seniorsistemas-angular-components.js.map +1 -1
  24. package/package.json +1 -1
  25. package/seniorsistemas-angular-components.metadata.json +1 -1
@@ -4911,9 +4911,12 @@
4911
4911
  this.enableExportSelectedRecords = true;
4912
4912
  }
4913
4913
  TablePagingComponent.prototype.ngOnChanges = function (changes) {
4914
- this.totalRecordsText = this.translate.instant(this.getTranslatePrefix() + "total_records", {
4915
- value: changes.totalRecords.currentValue
4916
- });
4914
+ var _a;
4915
+ if ((_a = changes.totalRecords) === null || _a === void 0 ? void 0 : _a.currentValue) {
4916
+ this.totalRecordsText = this.translate.instant(this.getTranslatePrefix() + "total_records", {
4917
+ value: changes.totalRecords.currentValue
4918
+ });
4919
+ }
4917
4920
  };
4918
4921
  TablePagingComponent.prototype.getTranslatePrefix = function () {
4919
4922
  return this.hostProjectConfigs.domain + "." + this.hostProjectConfigs.service + ".";
@@ -4923,6 +4926,7 @@
4923
4926
  };
4924
4927
  TablePagingComponent.prototype.getActions = function () {
4925
4928
  var _this = this;
4929
+ var _a;
4926
4930
  var actions = [
4927
4931
  {
4928
4932
  id: "exportCurrentPage",
@@ -4944,6 +4948,14 @@
4944
4948
  command: function () { return _this.exportAllRecords(); }
4945
4949
  });
4946
4950
  }
4951
+ if ((_a = this.customActions) === null || _a === void 0 ? void 0 : _a.length) {
4952
+ var customMenus = this.customActions.map(function (p, index) { return ({
4953
+ id: "customAction_" + index,
4954
+ label: p.label,
4955
+ command: p.command
4956
+ }); });
4957
+ actions.push.apply(actions, __spread(customMenus));
4958
+ }
4947
4959
  return actions;
4948
4960
  };
4949
4961
  TablePagingComponent.prototype.validateComponent = function () {
@@ -5090,6 +5102,9 @@
5090
5102
  __decorate([
5091
5103
  core.Input()
5092
5104
  ], TablePagingComponent.prototype, "enableExportSelectedRecords", void 0);
5105
+ __decorate([
5106
+ core.Input()
5107
+ ], TablePagingComponent.prototype, "customActions", void 0);
5093
5108
  __decorate([
5094
5109
  core.Output()
5095
5110
  ], TablePagingComponent.prototype, "totalRecordsText", void 0);