tuain-ng-forms-lib 12.0.61 → 12.0.65
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 +27 -0
- package/bundles/tuain-ng-forms-lib.umd.js.map +1 -1
- package/esm2015/lib/classes/forms/table/column.js +21 -1
- package/esm2015/lib/components/elements/tables/table.component.js +4 -1
- package/fesm2015/tuain-ng-forms-lib.js +23 -0
- package/fesm2015/tuain-ng-forms-lib.js.map +1 -1
- package/lib/classes/forms/table/column.d.ts +4 -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,7 +1288,10 @@
|
|
|
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;
|
|
1294
|
+
this.filterDef = null;
|
|
1289
1295
|
if (recTableColReceived) {
|
|
1290
1296
|
this.fieldCode = recTableColReceived.fieldCode;
|
|
1291
1297
|
this.fieldTitle = recTableColReceived.fieldTitle;
|
|
@@ -1294,6 +1300,7 @@
|
|
|
1294
1300
|
this.fieldAlignment = (recTableColReceived.alignment != null) ? recTableColReceived.alignment.toLowerCase() : defaultTypeAlignment;
|
|
1295
1301
|
this.visible = (_a = recTableColReceived === null || recTableColReceived === void 0 ? void 0 : recTableColReceived.visible) !== null && _a !== void 0 ? _a : true;
|
|
1296
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];
|
|
1297
1304
|
this.fieldFormat = recTableColReceived.format || '';
|
|
1298
1305
|
this.customAttributes = (_c = recTableColReceived === null || recTableColReceived === void 0 ? void 0 : recTableColReceived.customAttributes) !== null && _c !== void 0 ? _c : {};
|
|
1299
1306
|
}
|
|
@@ -1329,6 +1336,26 @@
|
|
|
1329
1336
|
RecordTableColumn.prototype.removeFilter = function () {
|
|
1330
1337
|
this.filterSetup = null;
|
|
1331
1338
|
};
|
|
1339
|
+
Object.defineProperty(RecordTableColumn.prototype, "options", {
|
|
1340
|
+
get: function () {
|
|
1341
|
+
var _a, _b, _c, _d;
|
|
1342
|
+
if (((_b = (_a = this.filterDef) === null || _a === void 0 ? void 0 : _a.operators) === null || _b === void 0 ? void 0 : _b.length) === 1 && ((_c = this.filterDef) === null || _c === void 0 ? void 0 : _c.operators[0]) === 'IN') {
|
|
1343
|
+
return (_d = this.filterDef) === null || _d === void 0 ? void 0 : _d.options;
|
|
1344
|
+
}
|
|
1345
|
+
return null;
|
|
1346
|
+
},
|
|
1347
|
+
enumerable: false,
|
|
1348
|
+
configurable: true
|
|
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
|
+
};
|
|
1332
1359
|
return RecordTableColumn;
|
|
1333
1360
|
}());
|
|
1334
1361
|
|