tuain-ng-forms-lib 12.0.72 → 12.0.76
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 +9 -5
- package/bundles/tuain-ng-forms-lib.umd.js.map +1 -1
- package/esm2015/lib/classes/forms/table/table.js +4 -1
- package/esm2015/lib/components/elements/tables/table.component.js +1 -1
- package/esm2015/lib/components/forms/basic-form.js +7 -6
- package/fesm2015/tuain-ng-forms-lib.js +9 -5
- 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
|
@@ -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 (layout) { 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; };
|
|
@@ -3427,11 +3430,12 @@
|
|
|
3427
3430
|
BasicFormComponent.prototype.subscribeSectionActivation = function () {
|
|
3428
3431
|
var _this = this;
|
|
3429
3432
|
var formSections = this._formStructure.sections;
|
|
3430
|
-
|
|
3431
|
-
|
|
3432
|
-
|
|
3433
|
-
|
|
3434
|
-
});
|
|
3433
|
+
var sectionNames = Object.keys(formSections);
|
|
3434
|
+
for (var index = 0; index < sectionNames.length; index++) {
|
|
3435
|
+
var sectionName = sectionNames[index];
|
|
3436
|
+
var section = formSections[sectionName];
|
|
3437
|
+
section.activation.subscribe(function (code) { return _this.launchSectionActivation(code); });
|
|
3438
|
+
section.inactivation.subscribe(function (code) { return _this.launchSectionInactivation(code); });
|
|
3435
3439
|
}
|
|
3436
3440
|
};
|
|
3437
3441
|
BasicFormComponent.prototype.subscribeFieldsSubjects = function () {
|