tuain-ng-forms-lib 12.0.70 → 12.0.74
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 +13 -6
- package/bundles/tuain-ng-forms-lib.umd.js.map +1 -1
- package/esm2015/lib/classes/forms/table/row-data.js +2 -2
- package/esm2015/lib/classes/forms/table/table.js +7 -1
- package/esm2015/lib/components/forms/basic-form.js +7 -6
- package/fesm2015/tuain-ng-forms-lib.js +13 -6
- package/fesm2015/tuain-ng-forms-lib.js.map +1 -1
- package/package.json +1 -1
|
@@ -1490,7 +1490,7 @@
|
|
|
1490
1490
|
if (operator === operators.LE && fieldValue > values[0]) {
|
|
1491
1491
|
return false;
|
|
1492
1492
|
}
|
|
1493
|
-
if (operator === operators.IN && !values.
|
|
1493
|
+
if (operator === operators.IN && !values.includes(fieldValue)) {
|
|
1494
1494
|
return false;
|
|
1495
1495
|
}
|
|
1496
1496
|
if (operator === operators.EQ) {
|
|
@@ -1842,10 +1842,16 @@
|
|
|
1842
1842
|
};
|
|
1843
1843
|
// Filtros
|
|
1844
1844
|
RecordTable.prototype.setFilterById = function (id) {
|
|
1845
|
+
if (this.restrictedId === id) {
|
|
1846
|
+
return;
|
|
1847
|
+
}
|
|
1845
1848
|
this.restrictedId = id;
|
|
1846
1849
|
this.updateVisibleRecords();
|
|
1847
1850
|
};
|
|
1848
1851
|
RecordTable.prototype.cleanIdFilter = function () {
|
|
1852
|
+
if (this.restrictedId === null) {
|
|
1853
|
+
return;
|
|
1854
|
+
}
|
|
1849
1855
|
this.restrictedId = null;
|
|
1850
1856
|
this.updateVisibleRecords();
|
|
1851
1857
|
};
|
|
@@ -3421,11 +3427,12 @@
|
|
|
3421
3427
|
BasicFormComponent.prototype.subscribeSectionActivation = function () {
|
|
3422
3428
|
var _this = this;
|
|
3423
3429
|
var formSections = this._formStructure.sections;
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
|
|
3428
|
-
});
|
|
3430
|
+
var sectionNames = Object.keys(formSections);
|
|
3431
|
+
for (var index = 0; index < sectionNames.length; index++) {
|
|
3432
|
+
var sectionName = sectionNames[index];
|
|
3433
|
+
var section = formSections[sectionName];
|
|
3434
|
+
section.activation.subscribe(function (code) { return _this.launchSectionActivation(code); });
|
|
3435
|
+
section.inactivation.subscribe(function (code) { return _this.launchSectionInactivation(code); });
|
|
3429
3436
|
}
|
|
3430
3437
|
};
|
|
3431
3438
|
BasicFormComponent.prototype.subscribeFieldsSubjects = function () {
|