tuain-form-manager 1.1.18 → 1.1.19

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 +4 -3
  2. package/package.json +1 -1
package/lib/form.js CHANGED
@@ -218,11 +218,11 @@ class Form {
218
218
 
219
219
  addTableRequest(tableRequest) {
220
220
  const {
221
- tableCode, visible, currentPage, requestedPage,
221
+ tableCode, visible, currentPage, requestedPage, currentFilter,
222
222
  recordsPerPage, sortingColumn, sortingDirection,
223
223
  } = tableRequest;
224
224
  this._requestData.formData.tables[tableCode] = tableRequest;
225
- const constraints = { visible, currentPage, requestedPage, recordsPerPage, sortingColumn, sortingDirection };
225
+ const constraints = { visible, currentPage, requestedPage, recordsPerPage, sortingColumn, sortingDirection, currentFilter };
226
226
  this.setTableConstraints(tableCode, constraints);
227
227
  }
228
228
 
@@ -363,7 +363,7 @@ class Form {
363
363
  const {
364
364
  visible = true, currentPage = 1, requestedPage = 1,
365
365
  recordsPerPage = DEFAULT_RECORDS_PAGE,
366
- sortingColumn, sortingDirection,
366
+ sortingColumn, sortingDirection, currentFilter
367
367
  } = constraints;
368
368
  const tableDef = this.getTableDefinition(tableCode);
369
369
  if (!tableDef) { return; }
@@ -376,6 +376,7 @@ class Form {
376
376
  sortingDirection,
377
377
  totalRecordsNumber: 0,
378
378
  recordsNumber: 0,
379
+ currentFilter,
379
380
  };
380
381
  }
381
382
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tuain-form-manager",
3
- "version": "1.1.18",
3
+ "version": "1.1.19",
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": {