mn-angular-lib 1.0.80 → 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
|
@@ -4155,6 +4155,15 @@ type GridLayout = {
|
|
|
4155
4155
|
type GridSkeleton = TemplateRef<unknown> | {
|
|
4156
4156
|
lines: Partial<MnSkeletonProps>[];
|
|
4157
4157
|
};
|
|
4158
|
+
/**
|
|
4159
|
+
* Configures an {@link import('./mn-grid.component').MnGrid}.
|
|
4160
|
+
*
|
|
4161
|
+
* Empty state (inherited from {@link MnCollectionDataSource}): provide **either**
|
|
4162
|
+
* a default text via `emptyMessage` / `emptyMessageKey`, **or** a whole custom
|
|
4163
|
+
* component/markup via `emptyTemplate`. A supplied `emptyTemplate` is rendered
|
|
4164
|
+
* unwrapped — it fully controls its own layout — while the text variant gets the
|
|
4165
|
+
* grid's default centered placeholder.
|
|
4166
|
+
*/
|
|
4158
4167
|
type GridDataSource<T> = MnCollectionDataSource<T> & {
|
|
4159
4168
|
/** Template used to render each card. Receives the item as `$implicit` and `data`. */
|
|
4160
4169
|
cardTemplate: TemplateRef<unknown>;
|
|
@@ -4924,6 +4933,15 @@ type MnTabDataSource = {
|
|
|
4924
4933
|
items: MnTabItem[];
|
|
4925
4934
|
/** Index of the tab that should be active by default. */
|
|
4926
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;
|
|
4927
4945
|
};
|
|
4928
4946
|
|
|
4929
4947
|
/**
|
|
@@ -4947,6 +4965,11 @@ declare class MnTabComponent implements OnInit {
|
|
|
4947
4965
|
activeChange: EventEmitter<MnTabItem>;
|
|
4948
4966
|
/** The currently active tab item. */
|
|
4949
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[];
|
|
4950
4973
|
/** Initializes the default active tab based on the data source configuration. */
|
|
4951
4974
|
ngOnInit(): void;
|
|
4952
4975
|
/**
|