@seniorsistemas/angular-components 16.3.1 → 16.3.3
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 +17 -2
- 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 +1 -0
- package/esm2015/components/dynamic-form/components/lookup/lookup.component.js +18 -3
- package/esm5/components/dynamic-form/components/lookup/lookup.component.js +18 -3
- package/fesm2015/seniorsistemas-angular-components.js +17 -2
- package/fesm2015/seniorsistemas-angular-components.js.map +1 -1
- package/fesm5/seniorsistemas-angular-components.js +17 -2
- package/fesm5/seniorsistemas-angular-components.js.map +1 -1
- package/package.json +1 -1
- package/seniorsistemas-angular-components.metadata.json +1 -1
|
@@ -2051,7 +2051,12 @@ var LookupComponent = /** @class */ (function () {
|
|
|
2051
2051
|
this.onSearchRequest.pipe(takeUntil(this.ngUnsubscribe)).subscribe(function () { return (_this.loading = true); });
|
|
2052
2052
|
this.onSelect.pipe(takeUntil(this.ngUnsubscribe)).subscribe(function () { return _this.onChange(_this.value); });
|
|
2053
2053
|
this.onUnselect.pipe(takeUntil(this.ngUnsubscribe)).subscribe(function () { return _this.onChange(_this.value); });
|
|
2054
|
-
this.onClear.pipe(takeUntil(this.ngUnsubscribe)).subscribe(function () {
|
|
2054
|
+
this.onClear.pipe(takeUntil(this.ngUnsubscribe)).subscribe(function () {
|
|
2055
|
+
if (_this.multiple || !_this.value) {
|
|
2056
|
+
return;
|
|
2057
|
+
}
|
|
2058
|
+
_this.onChange(null);
|
|
2059
|
+
});
|
|
2055
2060
|
this.onFocus.pipe(takeUntil(this.ngUnsubscribe)).subscribe(function () {
|
|
2056
2061
|
_this.onTouched();
|
|
2057
2062
|
});
|
|
@@ -2099,8 +2104,10 @@ var LookupComponent = /** @class */ (function () {
|
|
|
2099
2104
|
this.autocomplete.onOverlayAnimationDone = function (event) { };
|
|
2100
2105
|
};
|
|
2101
2106
|
LookupComponent.prototype.ngOnChanges = function (changes) {
|
|
2102
|
-
if (this.dialogVisible && changes.searchGridData)
|
|
2107
|
+
if (this.dialogVisible && changes.searchGridData) {
|
|
2103
2108
|
this.loading = false;
|
|
2109
|
+
}
|
|
2110
|
+
this._setFocusFilter();
|
|
2104
2111
|
};
|
|
2105
2112
|
LookupComponent.prototype.ngOnDestroy = function () {
|
|
2106
2113
|
this.ngUnsubscribe.next();
|
|
@@ -2276,6 +2283,14 @@ var LookupComponent = /** @class */ (function () {
|
|
|
2276
2283
|
this.selected = [rowData];
|
|
2277
2284
|
this.select();
|
|
2278
2285
|
};
|
|
2286
|
+
LookupComponent.prototype._setFocusFilter = function () {
|
|
2287
|
+
if (this.dialogVisible && !this.collapsed) {
|
|
2288
|
+
var input = document.querySelector("s-dynamic-form input");
|
|
2289
|
+
if (input) {
|
|
2290
|
+
input.focus();
|
|
2291
|
+
}
|
|
2292
|
+
}
|
|
2293
|
+
};
|
|
2279
2294
|
var LookupComponent_1;
|
|
2280
2295
|
LookupComponent.nextId = 0;
|
|
2281
2296
|
LookupComponent.ctorParameters = function () { return [
|