mn-angular-lib 0.0.76 → 0.0.78
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
|
@@ -1826,6 +1826,10 @@ interface TableDataSource<T> {
|
|
|
1826
1826
|
paginationMode?: 'none' | 'load-more' | 'paginated' | 'infinite-scroll';
|
|
1827
1827
|
paginationStrategy?: PaginationStrategy;
|
|
1828
1828
|
loadAdditionalRows?: () => Promise<T[]>;
|
|
1829
|
+
/** Number of rows per page when paginationMode is 'paginated'. Defaults to 10. */
|
|
1830
|
+
pageSize?: number;
|
|
1831
|
+
/** Options for the page-size selector dropdown. Defaults to [5, 10, 25, 50]. */
|
|
1832
|
+
pageSizeOptions?: number[];
|
|
1829
1833
|
defaultSort?: SortState;
|
|
1830
1834
|
selectionMode?: 'none' | 'single' | 'multi';
|
|
1831
1835
|
selectedRows?: BehaviorSubject<T[]>;
|
|
@@ -3029,6 +3033,16 @@ declare class MnWizardBodyComponent implements OnInit, AfterViewInit, OnDestroy
|
|
|
3029
3033
|
complete(): Promise<void>;
|
|
3030
3034
|
/** Collect form data from all form-driven steps, namespaced by step ID */
|
|
3031
3035
|
private getAggregatedData;
|
|
3036
|
+
/**
|
|
3037
|
+
* Maps a footer action's ActionStyle to mnButton data props.
|
|
3038
|
+
* @param action The footer action configuration.
|
|
3039
|
+
*/
|
|
3040
|
+
getFooterActionButtonData(action: ModalFooterAction<any>): any;
|
|
3041
|
+
/**
|
|
3042
|
+
* Handles a custom footer action click.
|
|
3043
|
+
* @param action The footer action configuration.
|
|
3044
|
+
*/
|
|
3045
|
+
handleFooterAction(action: ModalFooterAction<any>): Promise<void>;
|
|
3032
3046
|
private notifyStepChange;
|
|
3033
3047
|
static ɵfac: i0.ɵɵFactoryDeclaration<MnWizardBodyComponent, never>;
|
|
3034
3048
|
static ɵcmp: i0.ɵɵComponentDeclaration<MnWizardBodyComponent, "mn-wizard-body", never, { "config": { "alias": "config"; "required": false; }; "modalRef": { "alias": "modalRef"; "required": false; }; }, {}, never, never, true, never>;
|
|
@@ -3083,10 +3097,13 @@ declare class MnTable<T = any> implements OnInit, OnDestroy, DoCheck {
|
|
|
3083
3097
|
selectionChange: EventEmitter<T[]>;
|
|
3084
3098
|
rowClick: EventEmitter<T>;
|
|
3085
3099
|
filteredItems: T[];
|
|
3100
|
+
paginatedItems: T[];
|
|
3086
3101
|
searchValue: string;
|
|
3087
3102
|
loadingMoreRows: boolean;
|
|
3088
3103
|
currentSort: SortState | null;
|
|
3089
3104
|
selectedIds: Set<string>;
|
|
3105
|
+
currentPage: number;
|
|
3106
|
+
pageSize: number;
|
|
3090
3107
|
/** Per-column filter values keyed by column key. */
|
|
3091
3108
|
columnFilters: ColumnFilterState;
|
|
3092
3109
|
private cdr;
|
|
@@ -3119,6 +3136,13 @@ declare class MnTable<T = any> implements OnInit, OnDestroy, DoCheck {
|
|
|
3119
3136
|
onRowClick(row: T): void;
|
|
3120
3137
|
loadMoreRows(): void;
|
|
3121
3138
|
get showLoadMore(): boolean;
|
|
3139
|
+
get isPaginated(): boolean;
|
|
3140
|
+
get totalPages(): number;
|
|
3141
|
+
get resolvedPageSizeOptions(): number[];
|
|
3142
|
+
goToPage(page: number): void;
|
|
3143
|
+
onPageSizeChange(newSize: number): void;
|
|
3144
|
+
get visiblePages(): number[];
|
|
3145
|
+
private applyPagination;
|
|
3122
3146
|
isTemplateRef(value: any): value is TemplateRef<any>;
|
|
3123
3147
|
getCellValue(column: ColumnDefinition<T>, row: T): string;
|
|
3124
3148
|
trackByID: (_index: number, row: T) => string;
|