tuain-form-manager 1.4.2 → 1.4.4

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.
Files changed (2) hide show
  1. package/lib/form.js +2 -1
  2. package/package.json +1 -1
package/lib/form.js CHANGED
@@ -26,7 +26,7 @@ const FIELD_ASSIGN_ATTRIBUTES = [
26
26
  'defaultEditable', 'defaultValue', 'alignment', 'required', 'errorCode', 'errorMessage', 'errorType',
27
27
  'tooltip', 'info', 'format', 'intrinsicErrorMessage', 'outputOnly', 'captureType', 'title', 'type',
28
28
  'maxLength', 'maxValue', 'minLength', 'minValue', 'validateOnServer', 'serverAction', 'visibleLabel',
29
- 'options', 'editable',
29
+ 'options', 'editable', 'visible',
30
30
  ];
31
31
 
32
32
  const TABLE_CONSTRAINTS = [
@@ -366,6 +366,7 @@ class Form {
366
366
  }
367
367
 
368
368
  getTableDefinition(code) { return this._formDefinition?.tables.find(tbl => tbl.tableCode === code) ?? null; }
369
+ getTableConstraints(tableCode) { return this.getTableDefinition(tableCode)?.constraints ?? null; }
369
370
  onTableRowSelection(code, callback) { this.onTableAction(code, ROWSELECTION, callback); }
370
371
  onTablePopulate(code, callback) { this._tablePopulate[code] = callback; }
371
372
  onTableAction(tableCode, actionCode, callback) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tuain-form-manager",
3
- "version": "1.4.2",
3
+ "version": "1.4.4",
4
4
  "description": "Component library to perform operations on Tuain Development Framework forms to interchange information on web or mobile applications based on the data interchange of abstract forms making trnasformation on the data upon actions required on both sides (front and back)",
5
5
  "main": "index.js",
6
6
  "scripts": {