@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.
@@ -2946,7 +2946,7 @@
2946
2946
  var label = this.searchTotalRecords === 1
2947
2947
  ? this.recordsLabel.trim()
2948
2948
  : this.recordsLabel.trim();
2949
- return (this.searchTotalRecordsLabel || this.searchTotalRecords) + " " + label + ";";
2949
+ return (this.searchTotalRecordsLabel || this.searchTotalRecords) + " " + label;
2950
2950
  };
2951
2951
  LookupComponent.prototype._convertToMomentHourFormat = function (hourFormat, format) {
2952
2952
  if (format === "dd/mm/yy") { // valor padrão para o format.
@@ -6223,10 +6223,18 @@
6223
6223
  });
6224
6224
  };
6225
6225
  TablePagingComponent.prototype.getCurrentPageRowsToExport = function (columns) {
6226
- return this.mapColumnsTranslations(columns, this.table.value);
6226
+ var tableData = this.table.value;
6227
+ if (this.loadCurrentPageRecords) {
6228
+ tableData = this.loadCurrentPageRecords();
6229
+ }
6230
+ return this.mapColumnsTranslations(columns, tableData);
6227
6231
  };
6228
6232
  TablePagingComponent.prototype.getSelectedRowsToExport = function (columns) {
6229
- return this.mapColumnsTranslations(columns, this.table.selection);
6233
+ var tableData = this.table.selection;
6234
+ if (this.loadSelectedRecords) {
6235
+ tableData = this.loadSelectedRecords();
6236
+ }
6237
+ return this.mapColumnsTranslations(columns, tableData);
6230
6238
  };
6231
6239
  TablePagingComponent.prototype.getPropertyValue = function (obj, path) {
6232
6240
  return path.split(".").reduce(function (result, prop) { return (result[prop] === undefined ? undefined : result[prop]); }, obj);
@@ -6336,15 +6344,21 @@
6336
6344
  __decorate([
6337
6345
  core.Input()
6338
6346
  ], TablePagingComponent.prototype, "table", void 0);
6347
+ __decorate([
6348
+ core.Input()
6349
+ ], TablePagingComponent.prototype, "enableExportSelectedRecords", void 0);
6350
+ __decorate([
6351
+ core.Input()
6352
+ ], TablePagingComponent.prototype, "customActions", void 0);
6339
6353
  __decorate([
6340
6354
  core.Input()
6341
6355
  ], TablePagingComponent.prototype, "loadAllRecords", void 0);
6342
6356
  __decorate([
6343
6357
  core.Input()
6344
- ], TablePagingComponent.prototype, "enableExportSelectedRecords", void 0);
6358
+ ], TablePagingComponent.prototype, "loadCurrentPageRecords", void 0);
6345
6359
  __decorate([
6346
6360
  core.Input()
6347
- ], TablePagingComponent.prototype, "customActions", void 0);
6361
+ ], TablePagingComponent.prototype, "loadSelectedRecords", void 0);
6348
6362
  __decorate([
6349
6363
  core.Output()
6350
6364
  ], TablePagingComponent.prototype, "totalRecordsText", void 0);