yukit-web 0.10.9 → 0.11.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/fesm2022/yukit-web.mjs +48 -56
- package/fesm2022/yukit-web.mjs.map +1 -1
- package/package.json +1 -1
- package/types/yukit-web.d.ts +12 -9
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
|
/**
|
|
@@ -8367,8 +8370,8 @@ export declare class YuwsFilterContentDirective {
|
|
|
8367
8370
|
* - `searchPlaceholder`: Placeholder of the search field; the search renders only when set.
|
|
8368
8371
|
* - `shareSource`: `YuwTableShareSource`, typically the page's `yuws-list-table`; with `labels.share` it adds a menu that copies, prints or downloads the table as PDF, Excel or CSV.
|
|
8369
8372
|
* - `shareTitle`: Title of what the share menu prints and downloads, and name of its files.
|
|
8370
|
-
* - `
|
|
8371
|
-
*
|
|
8373
|
+
* - `serverSideFormats`: Share formats the consumer's server builds: picking one emits `shareRequested` instead of
|
|
8374
|
+
* building it in the browser. Default is `[]`.
|
|
8372
8375
|
* - `selection`: Two-way (`[(selection)]`) applied filter selection, values keyed by group id. Default is `{}`.
|
|
8373
8376
|
* - `showExport`: Renders the export button. Default is `false`.
|
|
8374
8377
|
* - `viewMode`: Two-way (`[(viewMode)]`) `YuwsViewMode` (`'list'` or `'block'`); the list/block switch renders only when set.
|
|
@@ -8376,7 +8379,7 @@ export declare class YuwsFilterContentDirective {
|
|
|
8376
8379
|
*
|
|
8377
8380
|
* Outputs:
|
|
8378
8381
|
* - `exported`: Emits the `MouseEvent` of the export button click.
|
|
8379
|
-
* - `
|
|
8382
|
+
* - `shareRequested`: Emits the `YuwTableShareFormat` picked when it is one of `serverSideFormats`.
|
|
8380
8383
|
* - `searched`: Emits the current search text on every keystroke and when it is cleared.
|
|
8381
8384
|
*/
|
|
8382
8385
|
export declare class YuwsListToolbarComponent {
|
|
@@ -8392,18 +8395,18 @@ export declare class YuwsListToolbarComponent {
|
|
|
8392
8395
|
readonly search: import("@angular/core").ModelSignal<string>;
|
|
8393
8396
|
readonly searchPlaceholder: import("@angular/core").InputSignal<string | undefined>;
|
|
8394
8397
|
readonly selection: import("@angular/core").ModelSignal<Readonly<Record<string, import("yukit-web").YuwsFilterValue>>>;
|
|
8395
|
-
readonly
|
|
8398
|
+
readonly serverSideFormats: import("@angular/core").InputSignal<readonly YuwTableShareFormat[]>;
|
|
8396
8399
|
readonly shareSource: import("@angular/core").InputSignal<YuwTableShareSource | undefined>;
|
|
8397
8400
|
readonly shareTitle: import("@angular/core").InputSignal<string | undefined>;
|
|
8398
8401
|
readonly showExport: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
8399
8402
|
readonly viewMode: import("@angular/core").ModelSignal<YuwsViewMode | undefined>;
|
|
8400
8403
|
readonly viewModeIcons: import("@angular/core").InputSignal<Partial<Readonly<Record<YuwsViewMode, string>>> | undefined>;
|
|
8401
8404
|
readonly exported: import("@angular/core").OutputEmitterRef<MouseEvent>;
|
|
8402
|
-
readonly printRequested: import("@angular/core").OutputEmitterRef<void>;
|
|
8403
8405
|
readonly searched: import("@angular/core").OutputEmitterRef<string>;
|
|
8404
8406
|
readonly setDeleted: import("@angular/core").OutputEmitterRef<string>;
|
|
8405
8407
|
readonly setRenamed: import("@angular/core").OutputEmitterRef<YuwsFilterSetRenameDto>;
|
|
8406
8408
|
readonly setSaved: import("@angular/core").OutputEmitterRef<YuwsFilterSetSaveDto>;
|
|
8409
|
+
readonly shareRequested: import("@angular/core").OutputEmitterRef<YuwTableShareFormat>;
|
|
8407
8410
|
protected readonly isMobile: import("@angular/core").Signal<boolean>;
|
|
8408
8411
|
static ɵfac: i0.ɵɵFactoryDeclaration<YuwsListToolbarComponent, never>;
|
|
8409
8412
|
static ɵcmp: i0.ɵɵComponentDeclaration<YuwsListToolbarComponent, "yuws-list-toolbar", never, {
|
|
@@ -8462,8 +8465,8 @@ export declare class YuwsListToolbarComponent {
|
|
|
8462
8465
|
"required": false;
|
|
8463
8466
|
"isSignal": true;
|
|
8464
8467
|
};
|
|
8465
|
-
"
|
|
8466
|
-
"alias": "
|
|
8468
|
+
"serverSideFormats": {
|
|
8469
|
+
"alias": "serverSideFormats";
|
|
8467
8470
|
"required": false;
|
|
8468
8471
|
"isSignal": true;
|
|
8469
8472
|
};
|
|
@@ -8498,11 +8501,11 @@ export declare class YuwsListToolbarComponent {
|
|
|
8498
8501
|
"selection": "selectionChange";
|
|
8499
8502
|
"viewMode": "viewModeChange";
|
|
8500
8503
|
"exported": "exported";
|
|
8501
|
-
"printRequested": "printRequested";
|
|
8502
8504
|
"searched": "searched";
|
|
8503
8505
|
"setDeleted": "setDeleted";
|
|
8504
8506
|
"setRenamed": "setRenamed";
|
|
8505
8507
|
"setSaved": "setSaved";
|
|
8508
|
+
"shareRequested": "shareRequested";
|
|
8506
8509
|
}, ["filterContents"], ["*"], true, never>;
|
|
8507
8510
|
}
|
|
8508
8511
|
/**
|