rtcpts 0.0.32 → 0.0.35

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.
@@ -1,27 +1,26 @@
1
- import { QInput, QPagination, QSelect, ComponentConstructor } from 'quasar';
2
- import { DefineComponent, ExtractPropTypes, ComputedRef, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
- import { t } from '../../composables/useI18n.ts';
4
- export interface PaginationInfo {
1
+ export type PaginationParameter = Pick<Paginator, 'page' | 'rowsPerPage'>;
2
+ export interface Paginator {
5
3
  page: number;
6
4
  rowsPerPage: number;
7
5
  rowsNumber: number;
8
6
  }
9
- declare const _default: DefineComponent<ExtractPropTypes<{
10
- paginationInfo: {
11
- type: () => PaginationInfo;
12
- default: () => {
13
- page: number;
14
- rowsPerPage: number;
15
- rowsNumber: number;
16
- };
17
- };
18
- }>, {
19
- t: t;
20
- internalInfo: {
21
- totalPage: number;
22
- currentPage: string | number;
23
- page: number;
24
- rowsPerPage: number;
7
+ export type UsePaginationOptions = {
8
+ page?: number;
9
+ rowsPerPage?: number;
10
+ rowsNumber?: number;
11
+ };
12
+ export type UsePaginationReturn = {
13
+ paginationInfo: Paginator;
14
+ getNum: () => number;
15
+ getPaginationParam: () => PaginationParameter;
16
+ setNum: (value?: number) => void;
17
+ setSize: (value?: number) => void;
18
+ setTotal: (value?: number) => void;
19
+ };
20
+ export declare const DEFAULT_ROWS_PER_PAGE = 15;
21
+ export declare const ROWS_PER_PAGE_OPTIONS: number[];
22
+ export declare function usePagination(options?: UsePaginationOptions): UsePaginationReturn;
23
+ rowsPerPage: number;
25
24
  rowsNumber: number;
26
25
  };
27
26
  rowNumbersArr: number[];