tuain-ng-forms-lib 12.0.62 → 12.0.66
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/tuain-ng-forms-lib.umd.js +20 -0
- package/bundles/tuain-ng-forms-lib.umd.js.map +1 -1
- package/esm2015/lib/classes/forms/table/column.js +13 -1
- package/esm2015/lib/classes/forms/table/table.js +6 -1
- package/esm2015/lib/components/elements/tables/table.component.js +4 -1
- package/fesm2015/tuain-ng-forms-lib.js +20 -0
- package/fesm2015/tuain-ng-forms-lib.js.map +1 -1
- package/lib/classes/forms/table/column.d.ts +3 -0
- package/lib/classes/forms/table/table.d.ts +1 -0
- package/lib/components/elements/tables/table.component.d.ts +1 -0
- package/package.json +1 -1
- package/tuain-ng-forms-lib.metadata.json +1 -1
|
@@ -728,6 +728,9 @@
|
|
|
728
728
|
console.log('Error asignando valor a un atributo del objeto');
|
|
729
729
|
}
|
|
730
730
|
};
|
|
731
|
+
LibTableComponent.prototype.filterHasChanged = function (columnName, values) {
|
|
732
|
+
this.table.addColumnFilter(columnName, values);
|
|
733
|
+
};
|
|
731
734
|
return LibTableComponent;
|
|
732
735
|
}());
|
|
733
736
|
LibTableComponent.decorators = [
|
|
@@ -1285,6 +1288,8 @@
|
|
|
1285
1288
|
var RecordTableColumn = /** @class */ (function () {
|
|
1286
1289
|
function RecordTableColumn(recTableColReceived, formConfig) {
|
|
1287
1290
|
var _a, _b, _c;
|
|
1291
|
+
// Filtros
|
|
1292
|
+
this.filterVisible = false;
|
|
1288
1293
|
this._formConfig = formConfig;
|
|
1289
1294
|
this.filterDef = null;
|
|
1290
1295
|
if (recTableColReceived) {
|
|
@@ -1295,6 +1300,7 @@
|
|
|
1295
1300
|
this.fieldAlignment = (recTableColReceived.alignment != null) ? recTableColReceived.alignment.toLowerCase() : defaultTypeAlignment;
|
|
1296
1301
|
this.visible = (_a = recTableColReceived === null || recTableColReceived === void 0 ? void 0 : recTableColReceived.visible) !== null && _a !== void 0 ? _a : true;
|
|
1297
1302
|
this.sortable = (_b = recTableColReceived === null || recTableColReceived === void 0 ? void 0 : recTableColReceived.sortable) !== null && _b !== void 0 ? _b : false;
|
|
1303
|
+
this.sortDirections = (this.sortable) ? ['ascend', 'descend', null] : [null];
|
|
1298
1304
|
this.fieldFormat = recTableColReceived.format || '';
|
|
1299
1305
|
this.customAttributes = (_c = recTableColReceived === null || recTableColReceived === void 0 ? void 0 : recTableColReceived.customAttributes) !== null && _c !== void 0 ? _c : {};
|
|
1300
1306
|
}
|
|
@@ -1341,6 +1347,15 @@
|
|
|
1341
1347
|
enumerable: false,
|
|
1342
1348
|
configurable: true
|
|
1343
1349
|
});
|
|
1350
|
+
RecordTableColumn.prototype.serSortDirections = function (ascend, descend) {
|
|
1351
|
+
this.sortDirections = [null];
|
|
1352
|
+
if (ascend) {
|
|
1353
|
+
this.sortDirections.unshift('ascend');
|
|
1354
|
+
}
|
|
1355
|
+
if (descend) {
|
|
1356
|
+
this.sortDirections.unshift('descend');
|
|
1357
|
+
}
|
|
1358
|
+
};
|
|
1344
1359
|
return RecordTableColumn;
|
|
1345
1360
|
}());
|
|
1346
1361
|
|
|
@@ -1841,6 +1856,11 @@
|
|
|
1841
1856
|
}
|
|
1842
1857
|
return filteredRecords;
|
|
1843
1858
|
};
|
|
1859
|
+
RecordTable.prototype.getColumnFilter = function (columnName) {
|
|
1860
|
+
var _a;
|
|
1861
|
+
var tableColumn = this.columnDefinition(columnName);
|
|
1862
|
+
return (_a = tableColumn === null || tableColumn === void 0 ? void 0 : tableColumn.filter) !== null && _a !== void 0 ? _a : null;
|
|
1863
|
+
};
|
|
1844
1864
|
RecordTable.prototype.addColumnFilter = function (columnName, columnValues, operator) {
|
|
1845
1865
|
if (operator === void 0) { operator = null; }
|
|
1846
1866
|
var _a;
|