@underlayerdev/ui 0.16.0 → 0.17.1
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
|
@@ -2405,6 +2405,101 @@ export declare class MenuTriggerComponent {
|
|
|
2405
2405
|
"closed": "closed";
|
|
2406
2406
|
}, never, never, true, never>;
|
|
2407
2407
|
}
|
|
2408
|
+
/**
|
|
2409
|
+
* Footer of any paginated list: asks for the next page when it scrolls near the viewport,
|
|
2410
|
+
* and shows the matching indicator (loading, load more button, retry, end of list).
|
|
2411
|
+
* It knows nothing about what is listed and never fetches: bind `hasMore`/`loading`/`error`
|
|
2412
|
+
* to your store and react to `loadMore` and `retry`.
|
|
2413
|
+
*
|
|
2414
|
+
* On screens below the `sm` breakpoint it loads pages automatically for as long as there are
|
|
2415
|
+
* any. From `sm` up it does so for `autoLoadPages` pages, then waits for the button so the
|
|
2416
|
+
* page footer stays reachable.
|
|
2417
|
+
*
|
|
2418
|
+
* @example
|
|
2419
|
+
* <ul-load-more [hasMore]="hasMore()" [loading]="loading()" [error]="failed()"
|
|
2420
|
+
* (loadMore)="loadMore()" (retry)="retry()">
|
|
2421
|
+
* Load more
|
|
2422
|
+
* <span ulLoadMoreError>Could not load more.</span>
|
|
2423
|
+
* <span ulLoadMoreEnd>You have seen everything.</span>
|
|
2424
|
+
* </ul-load-more>
|
|
2425
|
+
*/
|
|
2426
|
+
export declare class LoadMoreComponent {
|
|
2427
|
+
/** Whether another page exists */
|
|
2428
|
+
readonly hasMore: import("@angular/core").InputSignal<boolean>;
|
|
2429
|
+
/** Whether a page is being fetched */
|
|
2430
|
+
readonly loading: import("@angular/core").InputSignal<boolean>;
|
|
2431
|
+
/** Whether the last fetch failed; shows the retry action and stops automatic loading */
|
|
2432
|
+
readonly error: import("@angular/core").InputSignal<boolean>;
|
|
2433
|
+
/** Pages loaded automatically from `sm` up before the button takes over */
|
|
2434
|
+
readonly autoLoadPages: import("@angular/core").InputSignal<number>;
|
|
2435
|
+
/** Show the end-of-list content once `hasMore` is false. Turn off while the list is empty */
|
|
2436
|
+
readonly showEnd: import("@angular/core").InputSignal<boolean>;
|
|
2437
|
+
/** Distance from the viewport at which the next page is requested early */
|
|
2438
|
+
readonly rootMargin: import("@angular/core").InputSignal<string>;
|
|
2439
|
+
/** Accessible name of the loading indicator */
|
|
2440
|
+
readonly loadingLabel: import("@angular/core").InputSignal<string>;
|
|
2441
|
+
/** Change it when the list is replaced (new filters), to count automatic pages from zero */
|
|
2442
|
+
readonly resetKey: import("@angular/core").InputSignal<unknown>;
|
|
2443
|
+
readonly loadMore: import("@angular/core").OutputEmitterRef<void>;
|
|
2444
|
+
readonly retry: import("@angular/core").OutputEmitterRef<void>;
|
|
2445
|
+
private readonly sentinel;
|
|
2446
|
+
private readonly isBrowser;
|
|
2447
|
+
private readonly destroyRef;
|
|
2448
|
+
private readonly autoLoaded;
|
|
2449
|
+
private readonly isWide;
|
|
2450
|
+
protected readonly isAuto: import("@angular/core").Signal<boolean>;
|
|
2451
|
+
protected readonly showButton: import("@angular/core").Signal<boolean>;
|
|
2452
|
+
protected readonly showEndContent: import("@angular/core").Signal<boolean>;
|
|
2453
|
+
private readonly canObserve;
|
|
2454
|
+
constructor();
|
|
2455
|
+
protected onButtonClick(): void;
|
|
2456
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LoadMoreComponent, never>;
|
|
2457
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LoadMoreComponent, "ul-load-more", never, {
|
|
2458
|
+
"hasMore": {
|
|
2459
|
+
"alias": "hasMore";
|
|
2460
|
+
"required": false;
|
|
2461
|
+
"isSignal": true;
|
|
2462
|
+
};
|
|
2463
|
+
"loading": {
|
|
2464
|
+
"alias": "loading";
|
|
2465
|
+
"required": false;
|
|
2466
|
+
"isSignal": true;
|
|
2467
|
+
};
|
|
2468
|
+
"error": {
|
|
2469
|
+
"alias": "error";
|
|
2470
|
+
"required": false;
|
|
2471
|
+
"isSignal": true;
|
|
2472
|
+
};
|
|
2473
|
+
"autoLoadPages": {
|
|
2474
|
+
"alias": "autoLoadPages";
|
|
2475
|
+
"required": false;
|
|
2476
|
+
"isSignal": true;
|
|
2477
|
+
};
|
|
2478
|
+
"showEnd": {
|
|
2479
|
+
"alias": "showEnd";
|
|
2480
|
+
"required": false;
|
|
2481
|
+
"isSignal": true;
|
|
2482
|
+
};
|
|
2483
|
+
"rootMargin": {
|
|
2484
|
+
"alias": "rootMargin";
|
|
2485
|
+
"required": false;
|
|
2486
|
+
"isSignal": true;
|
|
2487
|
+
};
|
|
2488
|
+
"loadingLabel": {
|
|
2489
|
+
"alias": "loadingLabel";
|
|
2490
|
+
"required": false;
|
|
2491
|
+
"isSignal": true;
|
|
2492
|
+
};
|
|
2493
|
+
"resetKey": {
|
|
2494
|
+
"alias": "resetKey";
|
|
2495
|
+
"required": false;
|
|
2496
|
+
"isSignal": true;
|
|
2497
|
+
};
|
|
2498
|
+
}, {
|
|
2499
|
+
"loadMore": "loadMore";
|
|
2500
|
+
"retry": "retry";
|
|
2501
|
+
}, never, ["[ulLoadMoreError]", "[ulLoadMoreEnd]", "[ulLoadMoreRetry]", "*"], true, never>;
|
|
2502
|
+
}
|
|
2408
2503
|
export type ModalVariant = 'default' | 'success' | 'error' | 'custom' | 'bottom-sheet' | 'confirmation';
|
|
2409
2504
|
export declare class ModalComponent {
|
|
2410
2505
|
/** Whether the modal is open. Supports two-way binding with [(open)]. */
|
|
@@ -3084,7 +3179,7 @@ export declare class StepperComponent {
|
|
|
3084
3179
|
}, {}, never, never, true, never>;
|
|
3085
3180
|
}
|
|
3086
3181
|
export type ToastKind = 'info' | 'success' | 'warning' | 'error';
|
|
3087
|
-
export declare const toastIcon: (kind: ToastKind) => "
|
|
3182
|
+
export declare const toastIcon: (kind: ToastKind) => "alert" | "check_circle" | "cross_circle" | "info";
|
|
3088
3183
|
export interface ToastConfig {
|
|
3089
3184
|
readonly id: string;
|
|
3090
3185
|
readonly message: string;
|