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
|
@@ -1052,6 +1052,7 @@ class RecordTable extends FormElement {
|
|
|
1052
1052
|
this.setAttr('globalSearch', (_f = tableReceived === null || tableReceived === void 0 ? void 0 : tableReceived.simpleFilter) !== null && _f !== void 0 ? _f : false);
|
|
1053
1053
|
this.setAttr('sorting', { columnName: '', direction: '' });
|
|
1054
1054
|
this.setAttr('recordsPerPage', formConfig.defaultRecordsPerPage);
|
|
1055
|
+
this.setAttr('layout', '');
|
|
1055
1056
|
if (tableReceived.fields) {
|
|
1056
1057
|
const columns = [];
|
|
1057
1058
|
for (const columnReceived of tableReceived.fields) {
|
|
@@ -1096,6 +1097,8 @@ class RecordTable extends FormElement {
|
|
|
1096
1097
|
get recordSelectionTrigger() { return this._recordSelectionTrigger; }
|
|
1097
1098
|
get getDataTrigger() { return this._getDataTrigger; }
|
|
1098
1099
|
get attributeChange() { return this._attributeChange; }
|
|
1100
|
+
getLayout(layout) { return this.layout; }
|
|
1101
|
+
setLayout(layout) { this.setAttr('layout', layout); }
|
|
1099
1102
|
hasActions() { return (this._actions.length > 0); }
|
|
1100
1103
|
getSelectedRecords() { return this.tableRecords.filter(rec => rec.selected).map(rec => rec.recordId); }
|
|
1101
1104
|
activateGlobalSearch() { this.globalSearch = true; }
|
|
@@ -2533,11 +2536,12 @@ class BasicFormComponent {
|
|
|
2533
2536
|
}
|
|
2534
2537
|
subscribeSectionActivation() {
|
|
2535
2538
|
const formSections = this._formStructure.sections;
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
2539
|
+
const sectionNames = Object.keys(formSections);
|
|
2540
|
+
for (let index = 0; index < sectionNames.length; index++) {
|
|
2541
|
+
const sectionName = sectionNames[index];
|
|
2542
|
+
const section = formSections[sectionName];
|
|
2543
|
+
section.activation.subscribe(code => this.launchSectionActivation(code));
|
|
2544
|
+
section.inactivation.subscribe(code => this.launchSectionInactivation(code));
|
|
2541
2545
|
}
|
|
2542
2546
|
}
|
|
2543
2547
|
subscribeFieldsSubjects() {
|