mn-angular-lib 1.0.81 → 1.0.82
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
|
@@ -4933,6 +4933,15 @@ type MnTabDataSource = {
|
|
|
4933
4933
|
items: MnTabItem[];
|
|
4934
4934
|
/** Index of the tab that should be active by default. */
|
|
4935
4935
|
defaultActive: number;
|
|
4936
|
+
/** When true, the tab bar renders a loading skeleton instead of the real tabs. */
|
|
4937
|
+
isDataLoading?: boolean;
|
|
4938
|
+
/**
|
|
4939
|
+
* Number of placeholder tabs to render while {@link isDataLoading} is true.
|
|
4940
|
+
* Defaults to the number of known `items`, falling back to 3 when no items are
|
|
4941
|
+
* known yet. Set this only when the real tabs are not yet known at load time
|
|
4942
|
+
* (e.g. tabs that depend on data being fetched) to predict the final count.
|
|
4943
|
+
*/
|
|
4944
|
+
skeletonCount?: number;
|
|
4936
4945
|
};
|
|
4937
4946
|
|
|
4938
4947
|
/**
|
|
@@ -4956,6 +4965,11 @@ declare class MnTabComponent implements OnInit {
|
|
|
4956
4965
|
activeChange: EventEmitter<MnTabItem>;
|
|
4957
4966
|
/** The currently active tab item. */
|
|
4958
4967
|
currentActive?: MnTabItem;
|
|
4968
|
+
/**
|
|
4969
|
+
* Index array sizing the loading skeleton: `skeletonCount` when provided,
|
|
4970
|
+
* otherwise the number of known items, falling back to a default when none.
|
|
4971
|
+
*/
|
|
4972
|
+
get skeletonTabs(): number[];
|
|
4959
4973
|
/** Initializes the default active tab based on the data source configuration. */
|
|
4960
4974
|
ngOnInit(): void;
|
|
4961
4975
|
/**
|