@sumaris-net/ngx-components 2.9.0-alpha6 → 2.9.0-alpha7
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/esm2022/src/app/shared/material/autocomplete/material.autocomplete.mjs +9 -6
- package/fesm2022/sumaris-net.ngx-components.mjs +8 -5
- package/fesm2022/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/assets/manifest.json +1 -1
- package/src/theme/_ngx-components.scss +1 -6
|
@@ -7095,8 +7095,9 @@ class MatAutocompleteField {
|
|
|
7095
7095
|
this._fixMatSelectPanelPosition(overlayPane);
|
|
7096
7096
|
// Fix overlay, for searchbar
|
|
7097
7097
|
if (this.showSearchBar) {
|
|
7098
|
-
|
|
7099
|
-
|
|
7098
|
+
searchBarSubscription = await this._fixSearchbarOverlay(panelElement, overlayPane);
|
|
7099
|
+
if (searchBarSubscription)
|
|
7100
|
+
this._subscription.add(searchBarSubscription);
|
|
7100
7101
|
}
|
|
7101
7102
|
// Show the panel
|
|
7102
7103
|
this.renderer.removeClass(panelElement, 'cdk-visually-hidden');
|
|
@@ -7104,7 +7105,7 @@ class MatAutocompleteField {
|
|
|
7104
7105
|
}
|
|
7105
7106
|
// ON close
|
|
7106
7107
|
else if (searchBarSubscription) {
|
|
7107
|
-
searchBarSubscription
|
|
7108
|
+
searchBarSubscription.unsubscribe();
|
|
7108
7109
|
this._subscription.remove(searchBarSubscription);
|
|
7109
7110
|
searchBarSubscription = null;
|
|
7110
7111
|
}
|
|
@@ -7154,9 +7155,10 @@ class MatAutocompleteField {
|
|
|
7154
7155
|
const overlayContainer = findParentWithClass(panelElement, 'cdk-overlay-container');
|
|
7155
7156
|
if (!overlayContainer)
|
|
7156
7157
|
return;
|
|
7157
|
-
// DEBUG
|
|
7158
|
-
console.debug(`${this.logPrefix} moving the "cdk-overlay" container from the "body" to the "ion-modal" container`);
|
|
7159
7158
|
const originalParent = overlayContainer.parentElement;
|
|
7159
|
+
// DEBUG
|
|
7160
|
+
//if (this.debug)
|
|
7161
|
+
console.debug(`${this.logPrefix} moving the "cdk-overlay" container from the "${originalParent?.tagName || 'body'}" to the "ion-modal" container`);
|
|
7160
7162
|
this.renderer.appendChild(modalElement, overlayContainer);
|
|
7161
7163
|
const shiftLeft = (this._document.defaultView.innerWidth - modalElement.firstElementChild.getBoundingClientRect().width) / 2;
|
|
7162
7164
|
const shiftTop = (this._document.defaultView.innerHeight - modalElement.firstElementChild.getBoundingClientRect().height) / 2;
|
|
@@ -7165,6 +7167,7 @@ class MatAutocompleteField {
|
|
|
7165
7167
|
// Return the reverse function, to replace the container in body
|
|
7166
7168
|
return new Subscription(() => {
|
|
7167
7169
|
// DEBUG
|
|
7170
|
+
//if (this.debug)
|
|
7168
7171
|
console.debug(`${this.logPrefix} moving the "cdk-overlay" container from the "ion-modal" to the "body" container`);
|
|
7169
7172
|
this.renderer.appendChild(originalParent /*this.document.body*/, overlayContainer);
|
|
7170
7173
|
});
|