@sumaris-net/ngx-components 2.4.20 → 2.4.22
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/esm2020/src/app/core/table/entities-table-datasource.class.mjs +1 -1
- package/esm2020/src/app/shared/material/autocomplete/material.autocomplete.mjs +11 -7
- package/esm2020/src/app/shared/material/datetime/material.datetime.mjs +3 -3
- package/fesm2015/sumaris-net.ngx-components.mjs +12 -8
- package/fesm2015/sumaris-net.ngx-components.mjs.map +1 -1
- package/fesm2020/sumaris-net.ngx-components.mjs +12 -8
- package/fesm2020/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -2492,7 +2492,7 @@ class MatAutocompleteField {
|
|
|
2492
2492
|
return;
|
|
2493
2493
|
// Hide the panel (will be show when ready)
|
|
2494
2494
|
this.matSelect.panelClass = 'cdk-visually-hidden';
|
|
2495
|
-
let
|
|
2495
|
+
let subscription;
|
|
2496
2496
|
this._subscription.add(this.matSelect.openedChange
|
|
2497
2497
|
.subscribe(async (open) => {
|
|
2498
2498
|
if (open) {
|
|
@@ -2503,13 +2503,17 @@ class MatAutocompleteField {
|
|
|
2503
2503
|
this._fixMatSelectPanelPosition(overlayPane);
|
|
2504
2504
|
// Fix overlay, for searchbar
|
|
2505
2505
|
if (this.showSearchBar) {
|
|
2506
|
-
|
|
2506
|
+
subscription = await this._fixSearchbarOverlay(panelElement, overlayPane);
|
|
2507
|
+
this._subscription.add(subscription);
|
|
2507
2508
|
}
|
|
2508
2509
|
// Show the panel
|
|
2509
2510
|
this.renderer.removeClass(panelElement, 'cdk-visually-hidden');
|
|
2510
2511
|
}
|
|
2511
|
-
|
|
2512
|
-
|
|
2512
|
+
// ON close
|
|
2513
|
+
else if (subscription) {
|
|
2514
|
+
subscription.unsubscribe();
|
|
2515
|
+
this._subscription.remove(subscription);
|
|
2516
|
+
subscription = null;
|
|
2513
2517
|
}
|
|
2514
2518
|
}));
|
|
2515
2519
|
}
|
|
@@ -2547,11 +2551,11 @@ class MatAutocompleteField {
|
|
|
2547
2551
|
this.renderer.setStyle(overlayPane, 'margin-top', `-${shiftTop}px`);
|
|
2548
2552
|
this.renderer.setStyle(overlayPane, 'margin-left', `-${shiftLeft}px`);
|
|
2549
2553
|
// Return the reverse function, to replace the container in body
|
|
2550
|
-
return () => {
|
|
2554
|
+
return new Subscription(() => {
|
|
2551
2555
|
// DEBUG
|
|
2552
2556
|
console.debug(`${this.logPrefix} moving the "cdk-overlay" container from the "ion-modal" to the "body" container`);
|
|
2553
2557
|
this.renderer.appendChild(originalParent /*this.document.body*/, overlayContainer);
|
|
2554
|
-
};
|
|
2558
|
+
});
|
|
2555
2559
|
}
|
|
2556
2560
|
}
|
|
2557
2561
|
MatAutocompleteField.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: MatAutocompleteField, deps: [{ token: i0.ChangeDetectorRef }, { token: i1.ModalController }, { token: i0.Renderer2 }, { token: DOCUMENT }, { token: ChangeDetectorRef }, { token: i1$3.FormGroupDirective, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
@@ -6518,9 +6522,9 @@ class MatDateTime {
|
|
|
6518
6522
|
.subscribe((_) => this.onFormChange()));
|
|
6519
6523
|
// Listen status changes (when done outside the component - e.g. when setErrors() is calling on the formControl)
|
|
6520
6524
|
this._subscription.add(this.formControl.statusChanges
|
|
6521
|
-
.pipe(filter((_) => !this.
|
|
6525
|
+
.pipe(filter((_) => !this._readonly && !this._writing && !this._disabling) // Skip
|
|
6522
6526
|
)
|
|
6523
|
-
.subscribe(() => this.markForCheck()));
|
|
6527
|
+
.subscribe((_) => this.markForCheck()));
|
|
6524
6528
|
this._writing = false;
|
|
6525
6529
|
}
|
|
6526
6530
|
ngAfterViewInit() {
|