Bundled output for commit 693bce912a0a002624bc33d275ca147965d37449

Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
This commit is contained in:
flarum-bot 2023-11-10 21:38:19 +00:00
parent 693bce912a
commit deb99f0de4
6 changed files with 17 additions and 7 deletions

View File

@ -39,7 +39,11 @@ export interface ApiPayloadPlural {
next?: string;
prev?: string;
};
meta?: MetaInformation;
meta?: MetaInformation & {
total?: number;
page?: number;
perPage?: number;
};
}
export declare type ApiPayload = ApiPayloadSingle | ApiPayloadPlural;
export declare type ApiResponseSingle<M extends Model> = M & {

View File

@ -18,14 +18,20 @@ export interface PaginatedListRequestParams extends Omit<ApiQueryParamsPlural, '
include?: string | string[];
}
export default abstract class PaginatedListState<T extends Model, P extends PaginatedListParams = PaginatedListParams> {
/**
* This value should not be relied upon when preloading an API document.
* In those cases the pageSize should be taken from the meta information of the preloaded
* document. Checkout `DiscussionListState.loadPage` for an example.
*/
static DEFAULT_PAGE_SIZE: number;
protected location: PaginationLocation;
protected pageSize: number;
protected pageSize: number | null;
protected pages: Page<T>[];
protected params: P;
protected initialLoading: boolean;
protected loadingPrev: boolean;
protected loadingNext: boolean;
protected constructor(params?: P, page?: number, pageSize?: number);
protected constructor(params?: P, page?: number, pageSize?: number | null);
abstract get type(): string;
clear(): void;
loadPrev(): Promise<void>;

2
framework/core/js/dist/admin.js generated vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

2
framework/core/js/dist/forum.js generated vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long