@seniorsistemas/angular-components 16.10.13 → 16.10.15

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.
@@ -2778,7 +2778,7 @@ var LookupComponent = /** @class */ (function () {
2778
2778
  var label = this.searchTotalRecords === 1
2779
2779
  ? this.recordsLabel.trim()
2780
2780
  : this.recordsLabel.trim();
2781
- return (this.searchTotalRecordsLabel || this.searchTotalRecords) + " " + label + ";";
2781
+ return (this.searchTotalRecordsLabel || this.searchTotalRecords) + " " + label;
2782
2782
  };
2783
2783
  LookupComponent.prototype._convertToMomentHourFormat = function (hourFormat, format) {
2784
2784
  if (format === "dd/mm/yy") { // valor padrão para o format.
@@ -6055,10 +6055,18 @@ var TablePagingComponent = /** @class */ (function () {
6055
6055
  });
6056
6056
  };
6057
6057
  TablePagingComponent.prototype.getCurrentPageRowsToExport = function (columns) {
6058
- return this.mapColumnsTranslations(columns, this.table.value);
6058
+ var tableData = this.table.value;
6059
+ if (this.loadCurrentPageRecords) {
6060
+ tableData = this.loadCurrentPageRecords();
6061
+ }
6062
+ return this.mapColumnsTranslations(columns, tableData);
6059
6063
  };
6060
6064
  TablePagingComponent.prototype.getSelectedRowsToExport = function (columns) {
6061
- return this.mapColumnsTranslations(columns, this.table.selection);
6065
+ var tableData = this.table.selection;
6066
+ if (this.loadSelectedRecords) {
6067
+ tableData = this.loadSelectedRecords();
6068
+ }
6069
+ return this.mapColumnsTranslations(columns, tableData);
6062
6070
  };
6063
6071
  TablePagingComponent.prototype.getPropertyValue = function (obj, path) {
6064
6072
  return path.split(".").reduce(function (result, prop) { return (result[prop] === undefined ? undefined : result[prop]); }, obj);
@@ -6168,15 +6176,21 @@ var TablePagingComponent = /** @class */ (function () {
6168
6176
  __decorate([
6169
6177
  Input()
6170
6178
  ], TablePagingComponent.prototype, "table", void 0);
6179
+ __decorate([
6180
+ Input()
6181
+ ], TablePagingComponent.prototype, "enableExportSelectedRecords", void 0);
6182
+ __decorate([
6183
+ Input()
6184
+ ], TablePagingComponent.prototype, "customActions", void 0);
6171
6185
  __decorate([
6172
6186
  Input()
6173
6187
  ], TablePagingComponent.prototype, "loadAllRecords", void 0);
6174
6188
  __decorate([
6175
6189
  Input()
6176
- ], TablePagingComponent.prototype, "enableExportSelectedRecords", void 0);
6190
+ ], TablePagingComponent.prototype, "loadCurrentPageRecords", void 0);
6177
6191
  __decorate([
6178
6192
  Input()
6179
- ], TablePagingComponent.prototype, "customActions", void 0);
6193
+ ], TablePagingComponent.prototype, "loadSelectedRecords", void 0);
6180
6194
  __decorate([
6181
6195
  Output()
6182
6196
  ], TablePagingComponent.prototype, "totalRecordsText", void 0);