yukit-web 0.11.0 → 0.11.2
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/fesm2022/yukit-web.mjs +74 -35
- package/fesm2022/yukit-web.mjs.map +1 -1
- package/package.json +1 -1
- package/types/yukit-web.d.ts +11 -1
package/package.json
CHANGED
package/types/yukit-web.d.ts
CHANGED
|
@@ -735,8 +735,10 @@ export interface YuwPageRange {
|
|
|
735
735
|
end: number;
|
|
736
736
|
total: number;
|
|
737
737
|
}
|
|
738
|
+
/** `ready` holds every load back until it is `true`: a list whose filters are restored asynchronously waits for them. */
|
|
738
739
|
export interface YuwPagedListOptions<Filters> {
|
|
739
740
|
filters: Signal<Filters>;
|
|
741
|
+
ready?: Signal<boolean>;
|
|
740
742
|
total: Signal<number>;
|
|
741
743
|
load: (query: YuwPageQuery<Filters>) => void;
|
|
742
744
|
pageSize?: number;
|
|
@@ -757,7 +759,8 @@ export interface YuwPagedList<Filters> {
|
|
|
757
759
|
/**
|
|
758
760
|
* State of a list paged at the source and the query derived from it. Changing search, filters,
|
|
759
761
|
* sorting or size returns to the first page within the same query; a total below the current page
|
|
760
|
-
* steps back to the last existing one.
|
|
762
|
+
* steps back to the last existing one. Nothing is requested until `ready` is `true`, so the first query already carries
|
|
763
|
+
* the restored filters. Must be created in an injection context.
|
|
761
764
|
*/
|
|
762
765
|
export declare function createPagedList<Filters>(options: YuwPagedListOptions<Filters>): YuwPagedList<Filters>;
|
|
763
766
|
/**
|
|
@@ -7959,6 +7962,7 @@ export declare class YuwsListPaginationComponent {
|
|
|
7959
7962
|
* Inputs:
|
|
7960
7963
|
* - `backLabel`: Text of the back button, which renders only when set; on small screens only its arrow shows.
|
|
7961
7964
|
* - `description`: Optional subtitle under the title.
|
|
7965
|
+
* - `imageUrl`: Image of the entity, shown before the title, which renders only when set; `title` is its alt text.
|
|
7962
7966
|
* - `primaryDisabled`: Disables the primary action, which stays visible but ignores clicks, e.g. while the list it creates items for is loading.
|
|
7963
7967
|
* - `primaryIcon`: Icon name shown in the primary action.
|
|
7964
7968
|
* - `primaryLabel`: Text of the primary action, which renders only when set.
|
|
@@ -7975,6 +7979,7 @@ export declare class YuwsListPaginationComponent {
|
|
|
7975
7979
|
export declare class YuwsPageHeaderComponent {
|
|
7976
7980
|
readonly backLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
7977
7981
|
readonly description: import("@angular/core").InputSignal<string | undefined>;
|
|
7982
|
+
readonly imageUrl: import("@angular/core").InputSignal<string | undefined>;
|
|
7978
7983
|
readonly primaryDisabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
7979
7984
|
readonly primaryIcon: import("@angular/core").InputSignal<string | undefined>;
|
|
7980
7985
|
readonly primaryLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
@@ -7999,6 +8004,11 @@ export declare class YuwsPageHeaderComponent {
|
|
|
7999
8004
|
"required": false;
|
|
8000
8005
|
"isSignal": true;
|
|
8001
8006
|
};
|
|
8007
|
+
"imageUrl": {
|
|
8008
|
+
"alias": "imageUrl";
|
|
8009
|
+
"required": false;
|
|
8010
|
+
"isSignal": true;
|
|
8011
|
+
};
|
|
8002
8012
|
"primaryDisabled": {
|
|
8003
8013
|
"alias": "primaryDisabled";
|
|
8004
8014
|
"required": false;
|