rtcpts 0.0.26 → 0.0.27

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,26 +1,27 @@
1
- export type PaginationParameter = Pick<Paginator, 'page' | 'rowsPerPage'>;
2
- export interface Paginator {
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 {
3
5
  page: number;
4
6
  rowsPerPage: number;
5
7
  rowsNumber: number;
6
8
  }
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;
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;
24
25
  rowsNumber: number;
25
26
  };
26
27
  rowNumbersArr: number[];