@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.
- package/bundles/seniorsistemas-angular-components.umd.js +22 -8
- package/bundles/seniorsistemas-angular-components.umd.js.map +1 -1
- package/bundles/seniorsistemas-angular-components.umd.min.js +1 -1
- package/bundles/seniorsistemas-angular-components.umd.min.js.map +1 -1
- package/components/table/table-paging/table-paging.component.d.ts +3 -1
- package/esm2015/components/custom-fields/custom-fields.component.js +3 -3
- package/esm2015/components/table/table-paging/table-paging.component.js +19 -5
- package/esm5/components/custom-fields/custom-fields.component.js +5 -5
- package/esm5/components/table/table-paging/table-paging.component.js +19 -5
- package/fesm2015/seniorsistemas-angular-components.js +20 -6
- package/fesm2015/seniorsistemas-angular-components.js.map +1 -1
- package/fesm5/seniorsistemas-angular-components.js +22 -8
- package/fesm5/seniorsistemas-angular-components.js.map +1 -1
- package/package.json +1 -1
- package/seniorsistemas-angular-components.metadata.json +1 -1
|
@@ -6055,10 +6055,18 @@ var TablePagingComponent = /** @class */ (function () {
|
|
|
6055
6055
|
});
|
|
6056
6056
|
};
|
|
6057
6057
|
TablePagingComponent.prototype.getCurrentPageRowsToExport = function (columns) {
|
|
6058
|
-
|
|
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
|
-
|
|
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, "
|
|
6190
|
+
], TablePagingComponent.prototype, "loadCurrentPageRecords", void 0);
|
|
6177
6191
|
__decorate([
|
|
6178
6192
|
Input()
|
|
6179
|
-
], TablePagingComponent.prototype, "
|
|
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
|
|
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 () {
|