codexly-ui 0.0.72 → 0.0.74
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/fesm2022/codexly-ui.mjs
CHANGED
|
@@ -13963,6 +13963,9 @@ class ClxToastService {
|
|
|
13963
13963
|
show(options) {
|
|
13964
13964
|
const position = options.position ?? TOAST_DEFAULTS.position;
|
|
13965
13965
|
const container = this._getOrCreateContainer(position);
|
|
13966
|
+
// Move toast pane to end of CDK container so it's always above modals
|
|
13967
|
+
const hostEl = container.overlayRef.hostElement;
|
|
13968
|
+
hostEl.parentElement?.appendChild(hostEl);
|
|
13966
13969
|
const entry = {
|
|
13967
13970
|
id: this._uid(),
|
|
13968
13971
|
type: options.type ?? TOAST_DEFAULTS.type,
|
|
@@ -14006,10 +14009,12 @@ class ClxToastService {
|
|
|
14006
14009
|
return existing;
|
|
14007
14010
|
const overlayRef = this._overlay.create(new OverlayConfig({
|
|
14008
14011
|
hasBackdrop: false,
|
|
14009
|
-
panelClass: 'clx-toast-overlay',
|
|
14010
14012
|
scrollStrategy: this._overlay.scrollStrategies.noop(),
|
|
14011
14013
|
positionStrategy: this._overlay.position().global(),
|
|
14012
14014
|
}));
|
|
14015
|
+
// Force pane above any modal overlay
|
|
14016
|
+
overlayRef.overlayElement.style.zIndex = '99999';
|
|
14017
|
+
overlayRef.hostElement.style.zIndex = '99999';
|
|
14013
14018
|
const portal = new ComponentPortal(ClxToastContainerComponent, null, Injector.create({ parent: this._injector, providers: [] }));
|
|
14014
14019
|
const compRef = overlayRef.attach(portal);
|
|
14015
14020
|
compRef.setInput('position', position);
|