@senior-gestao-pessoas/hcm-advanced-filter-general 4.1.3 → 4.2.0-develop-00ecdb10
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/senior-gestao-pessoas-hcm-advanced-filter-general.umd.js +16 -15
- package/bundles/senior-gestao-pessoas-hcm-advanced-filter-general.umd.js.map +1 -1
- package/bundles/senior-gestao-pessoas-hcm-advanced-filter-general.umd.min.js +1 -1
- package/bundles/senior-gestao-pessoas-hcm-advanced-filter-general.umd.min.js.map +1 -1
- package/esm2015/lib/advanced-filter-fields/advanced-filter-fields.component.js +12 -16
- package/esm2015/lib/filter-container/filter-container.component.js +6 -1
- package/esm5/lib/advanced-filter-fields/advanced-filter-fields.component.js +13 -17
- package/esm5/lib/filter-container/filter-container.component.js +6 -1
- package/fesm2015/senior-gestao-pessoas-hcm-advanced-filter-general.js +16 -15
- package/fesm2015/senior-gestao-pessoas-hcm-advanced-filter-general.js.map +1 -1
- package/fesm5/senior-gestao-pessoas-hcm-advanced-filter-general.js +17 -16
- package/fesm5/senior-gestao-pessoas-hcm-advanced-filter-general.js.map +1 -1
- package/lib/filter-container/filter-container.component.d.ts +1 -0
- package/package.json +1 -1
- package/senior-gestao-pessoas-hcm-advanced-filter-general.metadata.json +1 -1
|
@@ -745,17 +745,13 @@
|
|
|
745
745
|
&& entityName !== FilterFieldType.EMPLOYMENT_RELATIONSHIP;
|
|
746
746
|
};
|
|
747
747
|
AdvancedFilterFieldsComponent.prototype.changeDefaultFieldInformation = function (field, name, index, entityName) {
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
field.name = name;
|
|
751
|
-
field.entityName = entityName;
|
|
752
|
-
if (name === "equals") {
|
|
753
|
-
field.multiple = true;
|
|
754
|
-
}
|
|
748
|
+
var modifiedField = __assign(__assign({}, field), { label: "", name: name,
|
|
749
|
+
entityName: entityName, gridClass: ["ui-g-12"], multiple: name === "equals" ? true : field.multiple });
|
|
755
750
|
if (this.fieldListAdvancedFilter[index].filterFormFields) {
|
|
756
|
-
|
|
757
|
-
|
|
751
|
+
modifiedField.searchFields = this.fieldListAdvancedFilter[index].filterFormFields;
|
|
752
|
+
modifiedField.searchGridFields = this.fieldListAdvancedFilter[index].filterFormFields;
|
|
758
753
|
}
|
|
754
|
+
return modifiedField;
|
|
759
755
|
};
|
|
760
756
|
AdvancedFilterFieldsComponent.prototype.createFormAndDynamicFormByList = function () {
|
|
761
757
|
var _this = this;
|
|
@@ -794,12 +790,12 @@
|
|
|
794
790
|
return null;
|
|
795
791
|
}
|
|
796
792
|
var entityName = (_b = this.fieldListAdvancedFilter[index]) === null || _b === void 0 ? void 0 : _b.entityName;
|
|
797
|
-
var
|
|
798
|
-
this.changeDefaultFieldInformation(
|
|
799
|
-
var
|
|
800
|
-
this.changeDefaultFieldInformation(
|
|
801
|
-
var
|
|
802
|
-
this.changeDefaultFieldInformation(
|
|
793
|
+
var equalsField = this.getDynamicFormField(this.fieldListAdvancedFilter[index]);
|
|
794
|
+
var equals = this.changeDefaultFieldInformation(equalsField, "equals", index, entityName);
|
|
795
|
+
var startRangeField = this.getDynamicFormField(this.fieldListAdvancedFilter[index]);
|
|
796
|
+
var startRange = this.changeDefaultFieldInformation(startRangeField, "startRange", index, entityName);
|
|
797
|
+
var endRangeField = this.getDynamicFormField(this.fieldListAdvancedFilter[index]);
|
|
798
|
+
var endRange = this.changeDefaultFieldInformation(endRangeField, "endRange", index, entityName);
|
|
803
799
|
return {
|
|
804
800
|
equals: [equals],
|
|
805
801
|
startRange: [startRange],
|
|
@@ -2434,6 +2430,7 @@
|
|
|
2434
2430
|
this.tokens = [];
|
|
2435
2431
|
this.KEY_STORAGE = "AdvancedFilterComponent";
|
|
2436
2432
|
this.filterTypeChanged = new core.EventEmitter();
|
|
2433
|
+
this.advancedFilterEvent = new core.EventEmitter();
|
|
2437
2434
|
this.loadFilterFieldsOnInit = true;
|
|
2438
2435
|
this.filterOptions = [
|
|
2439
2436
|
{
|
|
@@ -2495,6 +2492,7 @@
|
|
|
2495
2492
|
var advancedFilterControls = this.filterControls.ADVANCED_FILTER;
|
|
2496
2493
|
advancedFilterControls.forEach(function (control) { return _this.formGroup.get(control).setValue(data); });
|
|
2497
2494
|
FormUtils.updateAndValidateControlValues(this.formGroup, false);
|
|
2495
|
+
this.advancedFilterEvent.emit($event);
|
|
2498
2496
|
};
|
|
2499
2497
|
FilterContainerComponent.prototype.setSelectedFilter = function (tokens) {
|
|
2500
2498
|
var _a, _b;
|
|
@@ -2653,6 +2651,9 @@
|
|
|
2653
2651
|
__decorate([
|
|
2654
2652
|
core.Output()
|
|
2655
2653
|
], FilterContainerComponent.prototype, "filterTypeChanged", void 0);
|
|
2654
|
+
__decorate([
|
|
2655
|
+
core.Output()
|
|
2656
|
+
], FilterContainerComponent.prototype, "advancedFilterEvent", void 0);
|
|
2656
2657
|
__decorate([
|
|
2657
2658
|
core.Input()
|
|
2658
2659
|
], FilterContainerComponent.prototype, "filterType", void 0);
|