codexly-ui 0.10.0 → 0.10.1

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.
@@ -2491,17 +2491,32 @@ class ClxTooltipService {
2491
2491
  this._animate.animate(el, { animation: 'fadeIn', duration: 160, trigger: 'manual', fillMode: 'both' });
2492
2492
  }
2493
2493
  /** Hides the bubble, but only if `trigger` is the element that currently owns it — a hover-out
2494
- * from an element that already lost ownership (a newer hover-in interrupted it) is a no-op. */
2494
+ * from an element that already lost ownership (a newer hover-in interrupted it) is a no-op.
2495
+ * Relies on the 'animationend' DOM event to know when the fade-out finished — but that event
2496
+ * can simply never fire (backgrounded tab throttling animations, layout thrashing from a route
2497
+ * change interrupting the transition, etc.), which would leave the promise unresolved forever
2498
+ * and _owner never cleared — since this bubble lives outside any component's lifecycle (a
2499
+ * singleton appended straight to document.body), nothing else would ever hide it again. A hard
2500
+ * fallback timeout guarantees the bubble is actually hidden and ownership released regardless of
2501
+ * whether the CSS event cooperates. */
2495
2502
  hide(trigger) {
2496
2503
  if (!this._isBrowser || this._owner !== trigger || !this._ref)
2497
2504
  return;
2498
2505
  this._hiding = true;
2499
2506
  trigger.removeAttribute('aria-describedby');
2500
2507
  const el = this._ref.location.nativeElement;
2508
+ const settle = () => {
2509
+ if (this._owner !== trigger || !this._hiding)
2510
+ return;
2511
+ el.style.visibility = 'hidden';
2512
+ this._owner = null;
2513
+ this._hiding = false;
2514
+ };
2515
+ const fallback = setTimeout(settle, 400);
2501
2516
  this._animate.animate(el, { animation: 'fadeOut', duration: 120, trigger: 'manual', fillMode: 'forwards' })
2502
2517
  .then(() => {
2503
- if (this._owner === trigger && this._hiding)
2504
- this._owner = null;
2518
+ clearTimeout(fallback);
2519
+ settle();
2505
2520
  });
2506
2521
  }
2507
2522
  /** Synchronous, no fade — used on touchend/click so the bubble can't linger over UI the
@@ -8028,6 +8043,16 @@ class ClxNativeOverlayService {
8028
8043
  _injector = inject(Injector);
8029
8044
  /** Block body scroll like CDK used to */
8030
8045
  _scrollBlocked = 0;
8046
+ // Overlays (modals, drawers, …) mount straight to document.body, outside the router-outlet
8047
+ // tree — a route navigation never tears them down on its own. Tracked here so callers (e.g. an
8048
+ // auth interceptor forcing sign-out on session expiry) can close whatever's open instead of
8049
+ // leaving a modal visually stuck on top of the page the user gets redirected to.
8050
+ _active = new Set();
8051
+ /** Force-closes every currently mounted overlay — no exit animation, immediate DOM removal. */
8052
+ destroyAll() {
8053
+ for (const ref of [...this._active])
8054
+ ref.destroy();
8055
+ }
8031
8056
  mount(component, injector, options) {
8032
8057
  // ── backdrop ────────────────────────────────────────────────────────────
8033
8058
  let backdropEl = null;
@@ -8062,12 +8087,14 @@ class ClxNativeOverlayService {
8062
8087
  backdrop: backdropEl,
8063
8088
  container,
8064
8089
  destroy: () => {
8090
+ this._active.delete(overlayRef);
8065
8091
  compRef.destroy();
8066
8092
  backdropEl?.remove();
8067
8093
  container.remove();
8068
8094
  this._unblockScroll();
8069
8095
  },
8070
8096
  };
8097
+ this._active.add(overlayRef);
8071
8098
  return { compRef, overlayRef };
8072
8099
  }
8073
8100
  _blockScroll() {
@@ -15914,5 +15941,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImpo
15914
15941
  * Generated bundle index. Do not edit.
15915
15942
  */
15916
15943
 
15917
- export { CLX_ADDON_BORDER, CLX_ADDON_TEXT, CLX_ALERT_OPTIONS, CLX_ALERT_RESOLVE, CLX_BG_ADDON, CLX_BG_DISABLED, CLX_BG_ICON_WRAP, CLX_BG_SECTION, CLX_BG_SURFACE, CLX_BORDER_DEFAULT, CLX_BORDER_DISABLED, CLX_BORDER_MEDIUM, CLX_COLOR_HEX, CLX_COLOR_HEX_100, CLX_COLOR_MAP, CLX_FONT_CATALOG, CLX_MODAL_ANIM_CONFIG, CLX_MODAL_DATA, CLX_MODAL_REF, CLX_OPTION_DISABLED, CLX_PLACEHOLDER, CLX_RADIO_GROUP, CLX_RADIUS_MAP, CLX_TEXT_BODY, CLX_TEXT_DISABLED, CLX_TEXT_HEADING, CLX_TEXT_HINT, CLX_TEXT_IDLE, CLX_TEXT_INPUT, CLX_TEXT_LABEL, CLX_TEXT_OPTION, CLX_TEXT_SUBTITLE, CLX_TEXT_TITLE, CLX_THEME_CONFIG, CLX_THEME_DEFAULTS, CLX_TOAST_DEFAULTS, ClxAlertComponent, ClxAlertService, ClxAnimateDirective, ClxAnimateGroupDirective, ClxAnimateService, ClxAppLayoutComponent, ClxAvatarComponent, ClxBadgeComponent, ClxBrandComponent, ClxButtonComponent, ClxButtonGroupComponent, ClxCardBodyDirective, ClxCardComponent, ClxCardFooterDirective, ClxCardHeaderActionsDirective, ClxCardHeaderDirective, ClxCarouselComponent, ClxCarouselDirective, ClxCartComponent, ClxCartSummaryDrawer, ClxCellDirective, ClxCheckboxComponent, ClxColorPickerComponent, ClxColumnDefDirective, ClxDateRangePickerComponent, ClxDatepickerComponent, ClxDrawerComponent, ClxDrawerService, ClxEditorComponent, ClxEditorLinkModalComponent, ClxFabComponent, ClxFilterPanelComponent, ClxHeaderCellDirective, ClxIconComponent, ClxInputComponent, ClxListComponent, ClxListItemComponent, ClxMenuComponent, ClxMenuItemComponent, ClxModalComponent, ClxModalService, ClxNavGroupComponent, ClxNumberComponent, ClxPageEmptyComponent, ClxPageHeaderComponent, ClxPageHeaderTitleDirective, ClxPageNotFoundComponent, ClxPageServerErrorComponent, ClxPageUnauthorizedComponent, ClxPaginationComponent, ClxProductComponent, ClxProductDetailComponent, ClxProfileComponent, ClxProgressBarComponent, ClxRadioComponent, ClxRadioGroupComponent, ClxRatingComponent, ClxSelectComponent, ClxSkeletonComponent, ClxSliderComponent, ClxSpinnerComponent, ClxStatCardComponent, ClxStepComponent, ClxStepperComponent, ClxSwitchComponent, ClxTabDirective, ClxTableComponent, ClxTabsComponent, ClxTagComponent, ClxTextareaComponent, ClxThemeService, ClxTimelineComponent, ClxTimelineItemComponent, ClxTimepickerComponent, ClxToastComponent, ClxToastContainerComponent, ClxToastService, ClxTooltipComponent, ClxTooltipDirective, ClxTreeComponent, ClxUploadComponent, ClxWishlistComponent, ClxWizardComponent, TIMEPICKER_SIZE_MAP, parseColorInput, provideCodexlyTheme, resolveColor, resolveContainerRadius, resolveRadius };
15944
+ export { CLX_ADDON_BORDER, CLX_ADDON_TEXT, CLX_ALERT_OPTIONS, CLX_ALERT_RESOLVE, CLX_BG_ADDON, CLX_BG_DISABLED, CLX_BG_ICON_WRAP, CLX_BG_SECTION, CLX_BG_SURFACE, CLX_BORDER_DEFAULT, CLX_BORDER_DISABLED, CLX_BORDER_MEDIUM, CLX_COLOR_HEX, CLX_COLOR_HEX_100, CLX_COLOR_MAP, CLX_FONT_CATALOG, CLX_MODAL_ANIM_CONFIG, CLX_MODAL_DATA, CLX_MODAL_REF, CLX_OPTION_DISABLED, CLX_PLACEHOLDER, CLX_RADIO_GROUP, CLX_RADIUS_MAP, CLX_TEXT_BODY, CLX_TEXT_DISABLED, CLX_TEXT_HEADING, CLX_TEXT_HINT, CLX_TEXT_IDLE, CLX_TEXT_INPUT, CLX_TEXT_LABEL, CLX_TEXT_OPTION, CLX_TEXT_SUBTITLE, CLX_TEXT_TITLE, CLX_THEME_CONFIG, CLX_THEME_DEFAULTS, CLX_TOAST_DEFAULTS, ClxAlertComponent, ClxAlertService, ClxAnimateDirective, ClxAnimateGroupDirective, ClxAnimateService, ClxAppLayoutComponent, ClxAvatarComponent, ClxBadgeComponent, ClxBrandComponent, ClxButtonComponent, ClxButtonGroupComponent, ClxCardBodyDirective, ClxCardComponent, ClxCardFooterDirective, ClxCardHeaderActionsDirective, ClxCardHeaderDirective, ClxCarouselComponent, ClxCarouselDirective, ClxCartComponent, ClxCartSummaryDrawer, ClxCellDirective, ClxCheckboxComponent, ClxColorPickerComponent, ClxColumnDefDirective, ClxDateRangePickerComponent, ClxDatepickerComponent, ClxDrawerComponent, ClxDrawerService, ClxEditorComponent, ClxEditorLinkModalComponent, ClxFabComponent, ClxFilterPanelComponent, ClxHeaderCellDirective, ClxIconComponent, ClxInputComponent, ClxListComponent, ClxListItemComponent, ClxMenuComponent, ClxMenuItemComponent, ClxModalComponent, ClxModalService, ClxNativeOverlayService, ClxNavGroupComponent, ClxNumberComponent, ClxPageEmptyComponent, ClxPageHeaderComponent, ClxPageHeaderTitleDirective, ClxPageNotFoundComponent, ClxPageServerErrorComponent, ClxPageUnauthorizedComponent, ClxPaginationComponent, ClxProductComponent, ClxProductDetailComponent, ClxProfileComponent, ClxProgressBarComponent, ClxRadioComponent, ClxRadioGroupComponent, ClxRatingComponent, ClxSelectComponent, ClxSkeletonComponent, ClxSliderComponent, ClxSpinnerComponent, ClxStatCardComponent, ClxStepComponent, ClxStepperComponent, ClxSwitchComponent, ClxTabDirective, ClxTableComponent, ClxTabsComponent, ClxTagComponent, ClxTextareaComponent, ClxThemeService, ClxTimelineComponent, ClxTimelineItemComponent, ClxTimepickerComponent, ClxToastComponent, ClxToastContainerComponent, ClxToastService, ClxTooltipComponent, ClxTooltipDirective, ClxTreeComponent, ClxUploadComponent, ClxWishlistComponent, ClxWizardComponent, TIMEPICKER_SIZE_MAP, parseColorInput, provideCodexlyTheme, resolveColor, resolveContainerRadius, resolveRadius };
15918
15945
  //# sourceMappingURL=codexly-ui.mjs.map