mn-angular-lib 1.0.61 → 1.0.63
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,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { InjectionToken, Provider, TemplateRef, OnInit, OnChanges, EventEmitter, ElementRef, Type, ComponentRef, AfterViewInit, OnDestroy, ChangeDetectorRef, QueryList, ViewContainerRef, DoCheck, SimpleChanges, PipeTransform } from '@angular/core';
|
|
2
|
+
import { InjectionToken, Provider, TemplateRef, OnInit, OnChanges, EventEmitter, ElementRef, Type, ComponentRef, AfterViewInit, OnDestroy, ChangeDetectorRef, QueryList, ViewContainerRef, DoCheck, SimpleChanges, Signal, PipeTransform } from '@angular/core';
|
|
3
3
|
export { TemplateRef, Type } from '@angular/core';
|
|
4
4
|
import * as tailwind_variants from 'tailwind-variants';
|
|
5
5
|
import { VariantProps } from 'tailwind-variants';
|
|
@@ -4556,6 +4556,8 @@ interface MnTabItem {
|
|
|
4556
4556
|
onClick?: () => void;
|
|
4557
4557
|
/** Callback invoked when this tab is deactivated. */
|
|
4558
4558
|
onDeactivate?: () => void;
|
|
4559
|
+
/** Optional notification count shown as a badge on the tab. Accepts a plain number or a Signal<number>. Hidden when 0 or absent. */
|
|
4560
|
+
badge?: number | Signal<number>;
|
|
4559
4561
|
}
|
|
4560
4562
|
/**
|
|
4561
4563
|
* Data source configuration for the mn-tab component.
|
|
@@ -4590,6 +4592,11 @@ declare class MnTabComponent implements OnInit {
|
|
|
4590
4592
|
currentActive?: MnTabItem;
|
|
4591
4593
|
/** Initializes the default active tab based on the data source configuration. */
|
|
4592
4594
|
ngOnInit(): void;
|
|
4595
|
+
/**
|
|
4596
|
+
* Returns the resolved badge value for a tab item, supporting both plain numbers and Signal<number>.
|
|
4597
|
+
* @param item - The tab item whose badge to resolve.
|
|
4598
|
+
*/
|
|
4599
|
+
getBadge(item: MnTabItem): number | undefined;
|
|
4593
4600
|
/**
|
|
4594
4601
|
* Sets the given tab item as active, invoking deactivate/activate callbacks.
|
|
4595
4602
|
* @param item - The tab item to activate.
|