mn-angular-lib 1.0.138 → 1.0.139

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mn-angular-lib",
3
- "version": "1.0.138",
3
+ "version": "1.0.139",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^21.1.3",
6
6
  "@angular/core": "^21.1.3",
@@ -6862,6 +6862,20 @@ declare class MnTabComponent implements DoCheck, AfterViewInit, OnDestroy {
6862
6862
  private indicator?;
6863
6863
  /** Pending indicator remeasure, cancelled on destroy so a post-destroy frame can't read a detached ref. */
6864
6864
  private indicatorFrame?;
6865
+ /**
6866
+ * True while a click-initiated slide is animating. The active tab's
6867
+ * `font-bold` widens the row, which fires {@link resizeObserver}; without
6868
+ * this guard the observer's snap ({@link updateIndicator} with `animate:
6869
+ * false`) would land the indicator at its target the same frame the slide
6870
+ * starts, so the transition never paints. Set synchronously in
6871
+ * {@link setActive} — before the frame runs — so the guard doesn't depend on
6872
+ * rAF-vs-ResizeObserver callback ordering.
6873
+ */
6874
+ private sliding;
6875
+ /** Clears {@link sliding} after the slide finishes; re-armed per click, cancelled on destroy. */
6876
+ private slidingTimer?;
6877
+ /** Slide duration in ms; matches the indicator's `duration-300` transition. */
6878
+ private static readonly SLIDE_MS;
6865
6879
  /** How far the fade reaches in from each overflowing edge. */
6866
6880
  private static readonly FADE;
6867
6881
  /** Data source containing tab items and default active index. */
@@ -6927,6 +6941,12 @@ declare class MnTabComponent implements DoCheck, AfterViewInit, OnDestroy {
6927
6941
  * @param item - The tab item to activate.
6928
6942
  */
6929
6943
  setActive(item: MnTabItem): void;
6944
+ /**
6945
+ * Marks a click-driven slide as in progress and schedules the guard to lift
6946
+ * once the transition has finished. A timeout (not `transitionend`) so the
6947
+ * flag still clears under `motion-reduce`, where no transition event fires.
6948
+ */
6949
+ private beginSlide;
6930
6950
  /**
6931
6951
  * Moves the shared underline to the active tab. When `animate` is false the
6932
6952
  * move is snapped (no slide) by disabling the transition for one reflow —