• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

dineeek / ngx-libs-workspace / 24940704470
97%

Build:
DEFAULT BRANCH: main
Ran 25 Apr 2026 09:09PM UTC
Jobs 1
Files 34
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

25 Apr 2026 09:07PM UTC coverage: 96.984% (+0.1%) from 96.875%
24940704470

push

github

web-flow
feat: add ngx-overflow-tooltip (#51)

* feat(ngx-overflow-tooltip): scaffold lib (config only)

Add Nx project scaffold for the next ngx-* lib — a standalone directive
that detects when a host element's text is ellipsized:
- package.json with @angular/common + @angular/core peer deps
  (>=21.0.0 <22.0.0); no @angular/forms — this is a directive, not a
  form-field
- project.json, ng-package.json, tsconfig set, jest + eslint configs
- empty src/index.ts placeholder; the directive lands in the next commit

* feat(ngx-overflow-tooltip): standalone directive with isTruncated signal

Implement OverflowTooltipDirective — a standalone directive that detects
when a host element's text is ellipsized and exposes a reactive
isTruncated signal so consumers can wire any tooltip surface (Angular
Material, custom popover, etc.) to fire only when content actually
overflows.

- modes: auto (default — checks both axes), single (width only), multi
  (height only). Aliased so [ngxOverflowTooltip]="'single'" configures
  the mode inline.
- ResizeObserver re-measures on layout changes; MutationObserver
  re-measures on textContent / DOM-tree mutations — the prototype this
  was extracted from only handled the resize axis.
- rAF coalescing collapses back-to-back observer triggers into one
  measurement.
- Observers run outside the Angular zone; only signal.set re-enters when
  the value flips.
- afterNextRender for setup, DestroyRef for teardown — works under
  zoneless Angular.
- SSR-safe: skips wiring entirely when ResizeObserver is missing.
- exportAs: 'ngxOverflowTooltip' so the template can read the signal via
  a ref (#oft="ngxOverflowTooltip").
- truncatedChange output for code-side consumers.

No Angular Material peer dep — composition pattern with MatTooltip is
documented in the JSDoc.

* test(ngx-overflow-tooltip): directive specs with mocked observers

Cover the directive end-to-end under jsdom (which has no real layout):
- mock ResizeObserver, MutationObserver, ... (continued)

630 of 668 branches covered (94.31%)

Branch coverage included in aggregate %.

44 of 44 new or added lines in 1 file covered. (100.0%)

785 of 791 relevant lines covered (99.24%)

96.82 hits per line

Jobs
ID Job ID Ran Files Coverage
1 24940704470.1 25 Apr 2026 09:09PM UTC 68
97.62
GitHub Action Run
Source Files on build 24940704470
  • Tree
  • List 34
  • Changed 25
  • Source Changed 0
  • Coverage Changed 25
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #24940704470
  • 7c0f8504 on github
  • Prev Build on main (#24940459551)
  • Next Build on main (#24940806061)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc