@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.
@@ -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);
@@ -7810,10 +7824,11 @@ var CustomFieldsComponent = /** @class */ (function () {
7810
7824
  .pipe(takeUntil(this.ngUsubscribe), finalize(function () {
7811
7825
  _this.formGroup.markAsPristine();
7812
7826
  _this.parentControl.markAsPristine();
7827
+ if (_this.ready$)
7828
+ _this.ready$.next(true);
7813
7829
  }))
7814
7830
  .subscribe(function (response) {
7815
- var _a;
7816
- var _b = __read(response, 2), customFieldsResponse = _b[0], localeOptions = _b[1];
7831
+ var _a = __read(response, 2), customFieldsResponse = _a[0], localeOptions = _a[1];
7817
7832
  var defaults = {};
7818
7833
  defaults[CustomFieldType.String] = {};
7819
7834
  defaults[CustomFieldType.Boolean] = { defaultValue: false };
@@ -7830,7 +7845,7 @@ var CustomFieldsComponent = /** @class */ (function () {
7830
7845
  defaults[CustomFieldType.Any] = {};
7831
7846
  if (!customFieldsResponse || !customFieldsResponse.entity_)
7832
7847
  return;
7833
- var _c = customFieldsResponse.entity_, active = _c.active, fields = _c.fields;
7848
+ var _b = customFieldsResponse.entity_, active = _b.active, fields = _b.fields;
7834
7849
  if (!active)
7835
7850
  return;
7836
7851
  fields
@@ -7865,7 +7880,6 @@ var CustomFieldsComponent = /** @class */ (function () {
7865
7880
  _this.createFieldCustomization(fields);
7866
7881
  _this.formGroup.patchValue(_this.parseValuesForFields(_this.value));
7867
7882
  _this.ready = true;
7868
- (_a = _this.ready$) === null || _a === void 0 ? void 0 : _a.next(true);
7869
7883
  });
7870
7884
  };
7871
7885
  CustomFieldsComponent.prototype.ngOnDestroy = function () {