mn-angular-lib 1.0.87 → 1.0.89
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
|
@@ -2458,6 +2458,17 @@ declare abstract class MnCollectionBase<T, DS extends MnCollectionDataSource<T>>
|
|
|
2458
2458
|
* `isDataLoading` clears. `0` means no lock.
|
|
2459
2459
|
*/
|
|
2460
2460
|
lockedMinHeight: number;
|
|
2461
|
+
/**
|
|
2462
|
+
* Measured pixel height of one full page, applied as a persistent `min-height` floor
|
|
2463
|
+
* while paginated so a short page (the last page, or after a row is removed/filtered)
|
|
2464
|
+
* can't collapse the body and jump the layout below it. Blank space fills the remainder
|
|
2465
|
+
* at the bottom. Captured once a full page is actually on screen; `0` means unmeasured.
|
|
2466
|
+
* Distinct from the transient {@link lockedMinHeight} reload lock — both combine in
|
|
2467
|
+
* {@link bodyMinHeight} via `Math.max`.
|
|
2468
|
+
*/
|
|
2469
|
+
fullPageHeight: number;
|
|
2470
|
+
/** Write-once guard so {@link fullPageHeight} is measured once per pageSize. */
|
|
2471
|
+
private pageHeightMeasured;
|
|
2461
2472
|
protected readonly cdr: ChangeDetectorRef;
|
|
2462
2473
|
protected readonly lang: MnLanguageService;
|
|
2463
2474
|
/** Prefix used in validation error messages, e.g. `MnList`. Overridden by subclasses. */
|
|
@@ -2468,12 +2479,23 @@ declare abstract class MnCollectionBase<T, DS extends MnCollectionDataSource<T>>
|
|
|
2468
2479
|
private langSubscription?;
|
|
2469
2480
|
/** Tracks the previous toolbar template reference for change detection. */
|
|
2470
2481
|
private previousToolbarTemplate?;
|
|
2482
|
+
constructor();
|
|
2471
2483
|
/** Whether the component delegates search to the consumer (server-side). */
|
|
2472
2484
|
get isServerSearched(): boolean;
|
|
2473
2485
|
get isPaginated(): boolean;
|
|
2474
2486
|
/** Whether the component delegates pagination to the consumer (server-side). */
|
|
2475
2487
|
get isServerPaginated(): boolean;
|
|
2476
2488
|
get showLoadMore(): boolean;
|
|
2489
|
+
/**
|
|
2490
|
+
* The measured full-page {@link fullPageHeight} floor, but only while it should apply:
|
|
2491
|
+
* paginated, not loading, with rows present. Keeps a short page from collapsing the body.
|
|
2492
|
+
*/
|
|
2493
|
+
get reservedPageHeight(): number;
|
|
2494
|
+
/**
|
|
2495
|
+
* `min-height` (px) applied to the body: the larger of the transient reload lock and the
|
|
2496
|
+
* persistent full-page floor, so neither can shrink the body below the other. `null` clears it.
|
|
2497
|
+
*/
|
|
2498
|
+
get bodyMinHeight(): number | null;
|
|
2477
2499
|
/** Total number of items, accounting for server-side pagination. */
|
|
2478
2500
|
get totalItemCount(): number;
|
|
2479
2501
|
get totalPages(): number;
|
|
@@ -2515,6 +2537,11 @@ declare abstract class MnCollectionBase<T, DS extends MnCollectionDataSource<T>>
|
|
|
2515
2537
|
* only locks when rows are present — the first load has nothing to preserve.
|
|
2516
2538
|
*/
|
|
2517
2539
|
protected lockBodyHeight(): void;
|
|
2540
|
+
/**
|
|
2541
|
+
* Drops the cached {@link fullPageHeight} floor so it is re-measured on the next full page.
|
|
2542
|
+
* Must run whenever the page size changes (the old floor is for a different row count).
|
|
2543
|
+
*/
|
|
2544
|
+
protected invalidatePageHeight(): void;
|
|
2518
2545
|
protected applyPagination(): void;
|
|
2519
2546
|
/** Client-side search filtering shared by list and grid. */
|
|
2520
2547
|
protected applySearchFilter(items: T[]): T[];
|
|
@@ -2678,6 +2705,23 @@ declare class MnTable<T = object> extends MnSelectableCollectionBase<T, TableDat
|
|
|
2678
2705
|
getColumnSkeletonData(column: ColumnDefinition<T>): Partial<MnSkeletonProps>;
|
|
2679
2706
|
getSortIcon(column: ColumnDefinition<T>): string;
|
|
2680
2707
|
isSortable(column: ColumnDefinition<T>): boolean;
|
|
2708
|
+
/** Rows shown per page on mobile (< md). Forced regardless of any configured pageSize. */
|
|
2709
|
+
private static readonly MOBILE_PAGE_SIZE;
|
|
2710
|
+
/** Page size to use at/above the `md` breakpoint (consumer's pageSize, or the user's selection). */
|
|
2711
|
+
private desktopPageSize;
|
|
2712
|
+
/** True when the viewport is below the `md` (768px) breakpoint. */
|
|
2713
|
+
private isMobileViewport;
|
|
2714
|
+
/**
|
|
2715
|
+
* Applies the breakpoint-appropriate page size: {@link MOBILE_PAGE_SIZE} below `md`,
|
|
2716
|
+
* the desktop size at/above it. When the size actually changes, client-side tables
|
|
2717
|
+
* re-slice locally and server-side tables ask the consumer to refetch, so the
|
|
2718
|
+
* rendered rows update in every pagination mode (used at init and on window resize).
|
|
2719
|
+
*/
|
|
2720
|
+
private applyResponsivePageSize;
|
|
2721
|
+
/** Re-evaluate the responsive page size when the viewport crosses the breakpoint. */
|
|
2722
|
+
protected onWindowResize(): void;
|
|
2723
|
+
/** Tracks the desktop page size when the user picks one (selector only shows at >= md). */
|
|
2724
|
+
onPageSizeChange(newSize: number): void;
|
|
2681
2725
|
/** Sets sort/filter state seeded from the data source before the first filter pass. */
|
|
2682
2726
|
protected beforeInitialFilter(): void;
|
|
2683
2727
|
getCellValue(column: ColumnDefinition<T>, row: T): string;
|