@ship-ui/core 0.17.9 → 0.17.10

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.
@@ -1050,6 +1050,12 @@
1050
1050
  ],
1051
1051
  "outputs": [],
1052
1052
  "methods": [
1053
+ {
1054
+ "name": "untracked",
1055
+ "parameters": "() => {\n if (this.isOpen()",
1056
+ "returnType": "any",
1057
+ "description": ""
1058
+ },
1053
1059
  {
1054
1060
  "name": "onMouseEnter",
1055
1061
  "parameters": "",
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { InjectionToken, inject, computed, ElementRef, Renderer2, input, ChangeDetectionStrategy, Component, viewChild, effect, HostListener, NgModule, signal, Injectable, DOCUMENT, model, output, ApplicationRef, createComponent, isSignal, OutputEmitterRef, DestroyRef, PLATFORM_ID, ViewChild, contentChild, contentChildren, afterNextRender, Injector, HostBinding, TemplateRef, runInInjectionContext, Directive, ChangeDetectorRef, viewChildren, ViewContainerRef, EnvironmentInjector } from '@angular/core';
2
+ import { InjectionToken, inject, computed, ElementRef, Renderer2, input, ChangeDetectionStrategy, Component, viewChild, effect, HostListener, NgModule, signal, Injectable, DOCUMENT, model, output, ApplicationRef, createComponent, isSignal, OutputEmitterRef, DestroyRef, PLATFORM_ID, ViewChild, contentChild, contentChildren, afterNextRender, Injector, HostBinding, TemplateRef, runInInjectionContext, Directive, ChangeDetectorRef, viewChildren, untracked, ViewContainerRef, EnvironmentInjector } from '@angular/core';
3
3
  import { isPlatformBrowser, JsonPipe, DatePipe, isPlatformServer, NgTemplateOutlet } from '@angular/common';
4
4
  import { NgModel } from '@angular/forms';
5
5
  import { SIGNAL } from '@angular/core/primitives/signals';
@@ -6895,7 +6895,6 @@ class ShipTooltipWrapper {
6895
6895
  this.#selfRef = inject((ElementRef));
6896
6896
  this.#renderer = inject(Renderer2);
6897
6897
  this.#positionAbort = null;
6898
- // readonly BASE_SPACE = 8;
6899
6898
  this.SUPPORTS_ANCHOR = typeof CSS !== 'undefined' && CSS.supports('position-anchor', '--abc');
6900
6899
  this.isBelow = signal(false, ...(ngDevMode ? [{ debugName: "isBelow" }] : []));
6901
6900
  this.openEffect = effect(() => {
@@ -6980,6 +6979,15 @@ let openRef = null;
6980
6979
  class ShipTooltip {
6981
6980
  constructor() {
6982
6981
  this.shTooltip = input.required(...(ngDevMode ? [{ debugName: "shTooltip" }] : []));
6982
+ this.#contentReplacedEffect = effect(() => {
6983
+ this.shTooltip();
6984
+ untracked(() => {
6985
+ if (this.isOpen()) {
6986
+ this.cleanupTooltip();
6987
+ this.showTooltip();
6988
+ }
6989
+ });
6990
+ }, ...(ngDevMode ? [{ debugName: "#contentReplacedEffect" }] : []));
6983
6991
  this.#elementRef = inject((ElementRef));
6984
6992
  this.#viewContainerRef = inject(ViewContainerRef);
6985
6993
  this.#environmentInjector = inject(EnvironmentInjector);
@@ -6989,6 +6997,7 @@ class ShipTooltip {
6989
6997
  this.anchorName = `--${generateUniqueId()}`;
6990
6998
  this.isOpen = signal(false, ...(ngDevMode ? [{ debugName: "isOpen" }] : []));
6991
6999
  }
7000
+ #contentReplacedEffect;
6992
7001
  #elementRef;
6993
7002
  #viewContainerRef;
6994
7003
  #environmentInjector;