@toolbox-web/grid-angular 1.0.0-rc.1 → 1.0.0-rc.2
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.
|
@@ -1997,7 +1997,7 @@ class GridAdapter {
|
|
|
1997
1997
|
* };
|
|
1998
1998
|
* ```
|
|
1999
1999
|
*/
|
|
2000
|
-
getTypeDefault(type) {
|
|
2000
|
+
getTypeDefault(type, _gridEl) {
|
|
2001
2001
|
if (!this.typeRegistry) {
|
|
2002
2002
|
return undefined;
|
|
2003
2003
|
}
|
|
@@ -3295,6 +3295,13 @@ const OVERLAY_STYLES = /* css */ `
|
|
|
3295
3295
|
overflow: auto;
|
|
3296
3296
|
}
|
|
3297
3297
|
|
|
3298
|
+
/* Hide panels that have not been initialised via initOverlay() yet.
|
|
3299
|
+
Prevents a flash-of-unstyled-content when the subclass defers
|
|
3300
|
+
the initOverlay call (e.g. via setTimeout or afterNextRender). */
|
|
3301
|
+
.tbw-overlay-panel:not([data-anchor-id]) {
|
|
3302
|
+
display: none;
|
|
3303
|
+
}
|
|
3304
|
+
|
|
3298
3305
|
.tbw-overlay-panel:popover-open {
|
|
3299
3306
|
display: block;
|
|
3300
3307
|
}
|
|
@@ -3514,6 +3521,13 @@ class BaseOverlayEditor extends BaseGridEditor {
|
|
|
3514
3521
|
document.addEventListener('pointerdown', (e) => this._onDocumentPointerDown(e), {
|
|
3515
3522
|
signal: this._abortCtrl.signal,
|
|
3516
3523
|
});
|
|
3524
|
+
// If the focus observer already fired before the panel was initialised
|
|
3525
|
+
// (e.g. initOverlay called from a deferred setTimeout), the showOverlay()
|
|
3526
|
+
// call was silently ignored because _panel was still null. Catch up now.
|
|
3527
|
+
if (this._getCell()?.classList.contains('cell-focus')) {
|
|
3528
|
+
this.showOverlay();
|
|
3529
|
+
this.onOverlayOpened();
|
|
3530
|
+
}
|
|
3517
3531
|
}
|
|
3518
3532
|
/**
|
|
3519
3533
|
* Show the overlay panel.
|