@seniorsistemas/angular-components 16.10.12 → 16.10.14

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.
@@ -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);
@@ -7978,10 +7992,11 @@
7978
7992
  .pipe(operators.takeUntil(this.ngUsubscribe), operators.finalize(function () {
7979
7993
  _this.formGroup.markAsPristine();
7980
7994
  _this.parentControl.markAsPristine();
7995
+ if (_this.ready$)
7996
+ _this.ready$.next(true);
7981
7997
  }))
7982
7998
  .subscribe(function (response) {
7983
- var _a;
7984
- var _b = __read(response, 2), customFieldsResponse = _b[0], localeOptions = _b[1];
7999
+ var _a = __read(response, 2), customFieldsResponse = _a[0], localeOptions = _a[1];
7985
8000
  var defaults = {};
7986
8001
  defaults[CustomFieldType.String] = {};
7987
8002
  defaults[CustomFieldType.Boolean] = { defaultValue: false };
@@ -7998,7 +8013,7 @@
7998
8013
  defaults[CustomFieldType.Any] = {};
7999
8014
  if (!customFieldsResponse || !customFieldsResponse.entity_)
8000
8015
  return;
8001
- var _c = customFieldsResponse.entity_, active = _c.active, fields = _c.fields;
8016
+ var _b = customFieldsResponse.entity_, active = _b.active, fields = _b.fields;
8002
8017
  if (!active)
8003
8018
  return;
8004
8019
  fields
@@ -8033,7 +8048,6 @@
8033
8048
  _this.createFieldCustomization(fields);
8034
8049
  _this.formGroup.patchValue(_this.parseValuesForFields(_this.value));
8035
8050
  _this.ready = true;
8036
- (_a = _this.ready$) === null || _a === void 0 ? void 0 : _a.next(true);
8037
8051
  });
8038
8052
  };
8039
8053
  CustomFieldsComponent.prototype.ngOnDestroy = function () {