@seniorsistemas/angular-components 16.5.3 → 16.5.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.
- package/bundles/seniorsistemas-angular-components.umd.js +11 -16
- package/bundles/seniorsistemas-angular-components.umd.js.map +1 -1
- package/bundles/seniorsistemas-angular-components.umd.min.js +1 -1
- package/bundles/seniorsistemas-angular-components.umd.min.js.map +1 -1
- package/components/dynamic-form/components/lookup/lookup.component.d.ts +0 -1
- package/esm2015/components/dynamic-form/components/lookup/lookup.component.js +8 -17
- package/esm5/components/dynamic-form/components/lookup/lookup.component.js +12 -17
- package/fesm2015/seniorsistemas-angular-components.js +7 -16
- package/fesm2015/seniorsistemas-angular-components.js.map +1 -1
- package/fesm5/seniorsistemas-angular-components.js +11 -16
- package/fesm5/seniorsistemas-angular-components.js.map +1 -1
- package/package.json +1 -1
- package/seniorsistemas-angular-components.metadata.json +1 -1
|
@@ -2044,7 +2044,6 @@ var LookupComponent = /** @class */ (function () {
|
|
|
2044
2044
|
this.transitionOptions = "400ms cubic-bezier(0.86, 0, 0.07, 1)";
|
|
2045
2045
|
this.originalFormValues = {};
|
|
2046
2046
|
this.ngUnsubscribe = new Subject();
|
|
2047
|
-
this.defaultFilterLoaded = false;
|
|
2048
2047
|
}
|
|
2049
2048
|
LookupComponent_1 = LookupComponent;
|
|
2050
2049
|
LookupComponent.prototype.ngOnInit = function () {
|
|
@@ -2163,24 +2162,20 @@ var LookupComponent = /** @class */ (function () {
|
|
|
2163
2162
|
};
|
|
2164
2163
|
LookupComponent.prototype.setDefaultFilters = function () {
|
|
2165
2164
|
var _this = this;
|
|
2166
|
-
if (!this.defaultFilter
|
|
2165
|
+
if (!this.defaultFilter)
|
|
2167
2166
|
return;
|
|
2168
|
-
}
|
|
2169
|
-
var defaultFielterValues = {};
|
|
2170
2167
|
this.defaultFilter
|
|
2171
|
-
.filter(function (
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2168
|
+
.filter(function (_a) {
|
|
2169
|
+
var field = _a.field;
|
|
2170
|
+
return _this.formGroupDialog.contains(field) &&
|
|
2171
|
+
!_this.formGroupDialog.get([field]).dirty;
|
|
2172
|
+
})
|
|
2173
|
+
.forEach(function (_a) {
|
|
2174
|
+
var value = _a.value, field = _a.field;
|
|
2175
|
+
_this.formGroupDialog
|
|
2176
|
+
.get([field])
|
|
2177
|
+
.patchValue(value instanceof Function ? value() : value);
|
|
2181
2178
|
});
|
|
2182
|
-
this.formGroupDialog.patchValue(defaultFielterValues);
|
|
2183
|
-
this.defaultFilterLoaded = true;
|
|
2184
2179
|
};
|
|
2185
2180
|
LookupComponent.prototype.showDialog = function () {
|
|
2186
2181
|
this.setDefaultFilters();
|