@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
|
@@ -2215,7 +2215,6 @@
|
|
|
2215
2215
|
this.transitionOptions = "400ms cubic-bezier(0.86, 0, 0.07, 1)";
|
|
2216
2216
|
this.originalFormValues = {};
|
|
2217
2217
|
this.ngUnsubscribe = new rxjs.Subject();
|
|
2218
|
-
this.defaultFilterLoaded = false;
|
|
2219
2218
|
}
|
|
2220
2219
|
LookupComponent_1 = LookupComponent;
|
|
2221
2220
|
LookupComponent.prototype.ngOnInit = function () {
|
|
@@ -2334,24 +2333,20 @@
|
|
|
2334
2333
|
};
|
|
2335
2334
|
LookupComponent.prototype.setDefaultFilters = function () {
|
|
2336
2335
|
var _this = this;
|
|
2337
|
-
if (!this.defaultFilter
|
|
2336
|
+
if (!this.defaultFilter)
|
|
2338
2337
|
return;
|
|
2339
|
-
}
|
|
2340
|
-
var defaultFielterValues = {};
|
|
2341
2338
|
this.defaultFilter
|
|
2342
|
-
.filter(function (
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2339
|
+
.filter(function (_a) {
|
|
2340
|
+
var field = _a.field;
|
|
2341
|
+
return _this.formGroupDialog.contains(field) &&
|
|
2342
|
+
!_this.formGroupDialog.get([field]).dirty;
|
|
2343
|
+
})
|
|
2344
|
+
.forEach(function (_a) {
|
|
2345
|
+
var value = _a.value, field = _a.field;
|
|
2346
|
+
_this.formGroupDialog
|
|
2347
|
+
.get([field])
|
|
2348
|
+
.patchValue(value instanceof Function ? value() : value);
|
|
2352
2349
|
});
|
|
2353
|
-
this.formGroupDialog.patchValue(defaultFielterValues);
|
|
2354
|
-
this.defaultFilterLoaded = true;
|
|
2355
2350
|
};
|
|
2356
2351
|
LookupComponent.prototype.showDialog = function () {
|
|
2357
2352
|
this.setDefaultFilters();
|