tuain-ng-forms-lib 12.0.74 → 12.0.78
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 +4 -1
- package/bundles/tuain-ng-forms-lib.umd.js.map +1 -1
- package/esm2015/lib/classes/forms/field.js +2 -2
- package/esm2015/lib/classes/forms/table/table.js +4 -1
- package/esm2015/lib/components/elements/tables/table.component.js +1 -1
- package/fesm2015/tuain-ng-forms-lib.js +4 -1
- package/fesm2015/tuain-ng-forms-lib.js.map +1 -1
- package/lib/classes/forms/table/table.d.ts +3 -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
|
@@ -1218,7 +1218,7 @@
|
|
|
1218
1218
|
FieldDescriptor.prototype.setFieldOptions = function (newOptions) {
|
|
1219
1219
|
var _this = this;
|
|
1220
1220
|
var _a;
|
|
1221
|
-
if ((this.
|
|
1221
|
+
if ((!this._formConfig.captureTypesWithOptions.includes(this.captureType))
|
|
1222
1222
|
|| typeof newOptions === UNDEFINED || !newOptions
|
|
1223
1223
|
|| !Array.isArray(newOptions)) {
|
|
1224
1224
|
return;
|
|
@@ -1567,6 +1567,7 @@
|
|
|
1567
1567
|
_this.setAttr('globalSearch', (_f = tableReceived === null || tableReceived === void 0 ? void 0 : tableReceived.simpleFilter) !== null && _f !== void 0 ? _f : false);
|
|
1568
1568
|
_this.setAttr('sorting', { columnName: '', direction: '' });
|
|
1569
1569
|
_this.setAttr('recordsPerPage', formConfig.defaultRecordsPerPage);
|
|
1570
|
+
_this.setAttr('layout', '');
|
|
1570
1571
|
if (tableReceived.fields) {
|
|
1571
1572
|
var columns = [];
|
|
1572
1573
|
try {
|
|
@@ -1660,6 +1661,8 @@
|
|
|
1660
1661
|
enumerable: false,
|
|
1661
1662
|
configurable: true
|
|
1662
1663
|
});
|
|
1664
|
+
RecordTable.prototype.getLayout = function () { return this.layout; };
|
|
1665
|
+
RecordTable.prototype.setLayout = function (layout) { this.setAttr('layout', layout); };
|
|
1663
1666
|
RecordTable.prototype.hasActions = function () { return (this._actions.length > 0); };
|
|
1664
1667
|
RecordTable.prototype.getSelectedRecords = function () { return this.tableRecords.filter(function (rec) { return rec.selected; }).map(function (rec) { return rec.recordId; }); };
|
|
1665
1668
|
RecordTable.prototype.activateGlobalSearch = function () { this.globalSearch = true; };
|