mn-angular-lib 1.0.137 → 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
|
@@ -6856,6 +6856,26 @@ type MnTabDataSource = {
|
|
|
6856
6856
|
declare class MnTabComponent implements DoCheck, AfterViewInit, OnDestroy {
|
|
6857
6857
|
/** The horizontally-scrolling wrapper the edge fade is painted onto. */
|
|
6858
6858
|
private scrollContainer?;
|
|
6859
|
+
/** The tab row; queried for the active tab so the indicator can measure it. */
|
|
6860
|
+
private tabList?;
|
|
6861
|
+
/** The shared underline that slides to the active tab. */
|
|
6862
|
+
private indicator?;
|
|
6863
|
+
/** Pending indicator remeasure, cancelled on destroy so a post-destroy frame can't read a detached ref. */
|
|
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;
|
|
6859
6879
|
/** How far the fade reaches in from each overflowing edge. */
|
|
6860
6880
|
private static readonly FADE;
|
|
6861
6881
|
/** Data source containing tab items and default active index. */
|
|
@@ -6921,6 +6941,26 @@ declare class MnTabComponent implements DoCheck, AfterViewInit, OnDestroy {
|
|
|
6921
6941
|
* @param item - The tab item to activate.
|
|
6922
6942
|
*/
|
|
6923
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;
|
|
6950
|
+
/**
|
|
6951
|
+
* Moves the shared underline to the active tab. When `animate` is false the
|
|
6952
|
+
* move is snapped (no slide) by disabling the transition for one reflow —
|
|
6953
|
+
* used on init, async selection and resize, where a slide would read as jank.
|
|
6954
|
+
* @param animate - Whether the move should slide (true) or snap (false).
|
|
6955
|
+
*/
|
|
6956
|
+
private updateIndicator;
|
|
6957
|
+
/**
|
|
6958
|
+
* Remeasures the indicator on the next animation frame, so the read happens
|
|
6959
|
+
* after layout reflects the latest active-tab classes. Coalesces bursts and
|
|
6960
|
+
* is cancellable on destroy.
|
|
6961
|
+
* @param animate - Whether the resulting move should slide.
|
|
6962
|
+
*/
|
|
6963
|
+
private scheduleIndicator;
|
|
6924
6964
|
/**
|
|
6925
6965
|
* Returns the resolved badge value for a tab item, supporting both plain numbers and Signal<number>.
|
|
6926
6966
|
* @param item - The tab item whose badge to resolve.
|