@clickview/online 0.2.1-dev.1 → 0.3.0-rc.0
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/dist/en.json +1 -1
- package/dist/online-app.css +23 -7
- package/dist/online-app.js +6 -6
- package/package.json +2 -2
- package/typings/libs/react-table-config.d.ts +139 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@clickview/online",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0-rc.0",
|
|
4
4
|
"description": "Online",
|
|
5
5
|
"main": "dist/online-app.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"@types/yup": "0.26.24"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@clickview/styles": "1.
|
|
30
|
+
"@clickview/styles": "1.3.0-rc.0",
|
|
31
31
|
"intersection-observer": "0.11.0",
|
|
32
32
|
"yup": "0.27.0"
|
|
33
33
|
},
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* In order to add typings for various react-table plugins, the below should be selectively
|
|
3
|
+
* uncommented based on what we are using.
|
|
4
|
+
*
|
|
5
|
+
* Refer: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-table
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import {
|
|
9
|
+
// UseColumnOrderInstanceProps,
|
|
10
|
+
// UseColumnOrderState,
|
|
11
|
+
// UseExpandedHooks,
|
|
12
|
+
// UseExpandedInstanceProps,
|
|
13
|
+
// UseExpandedOptions,
|
|
14
|
+
// UseExpandedRowProps,
|
|
15
|
+
// UseExpandedState,
|
|
16
|
+
UseFiltersColumnOptions,
|
|
17
|
+
UseFiltersColumnProps,
|
|
18
|
+
UseFiltersInstanceProps,
|
|
19
|
+
UseFiltersOptions,
|
|
20
|
+
UseFiltersState,
|
|
21
|
+
UseGlobalFiltersColumnOptions,
|
|
22
|
+
UseGlobalFiltersInstanceProps,
|
|
23
|
+
UseGlobalFiltersOptions,
|
|
24
|
+
UseGlobalFiltersState,
|
|
25
|
+
// UseGroupByCellProps,
|
|
26
|
+
// UseGroupByColumnOptions,
|
|
27
|
+
// UseGroupByColumnProps,
|
|
28
|
+
// UseGroupByHooks,
|
|
29
|
+
// UseGroupByInstanceProps,
|
|
30
|
+
// UseGroupByOptions,
|
|
31
|
+
// UseGroupByRowProps,
|
|
32
|
+
// UseGroupByState,
|
|
33
|
+
// UsePaginationInstanceProps,
|
|
34
|
+
// UsePaginationOptions,
|
|
35
|
+
// UsePaginationState,
|
|
36
|
+
// UseResizeColumnsColumnOptions,
|
|
37
|
+
// UseResizeColumnsColumnProps,
|
|
38
|
+
// UseResizeColumnsOptions,
|
|
39
|
+
// UseResizeColumnsState,
|
|
40
|
+
UseRowSelectHooks,
|
|
41
|
+
UseRowSelectInstanceProps,
|
|
42
|
+
UseRowSelectOptions,
|
|
43
|
+
UseRowSelectRowProps,
|
|
44
|
+
UseRowSelectState,
|
|
45
|
+
// UseRowStateCellProps,
|
|
46
|
+
// UseRowStateInstanceProps,
|
|
47
|
+
// UseRowStateOptions,
|
|
48
|
+
// UseRowStateRowProps,
|
|
49
|
+
// UseRowStateState,
|
|
50
|
+
UseSortByColumnOptions,
|
|
51
|
+
UseSortByColumnProps,
|
|
52
|
+
UseSortByHooks,
|
|
53
|
+
UseSortByInstanceProps,
|
|
54
|
+
UseSortByOptions,
|
|
55
|
+
UseSortByState
|
|
56
|
+
} from 'react-table';
|
|
57
|
+
|
|
58
|
+
declare module 'react-table' {
|
|
59
|
+
// take this file as-is, or comment out the sections that don't apply to your plugin configuration
|
|
60
|
+
|
|
61
|
+
export interface TableOptions<D extends Record<string, unknown>>
|
|
62
|
+
extends UseSortByOptions<D>,
|
|
63
|
+
UseRowSelectOptions<D>,
|
|
64
|
+
UseFiltersOptions<D>,
|
|
65
|
+
UseGlobalFiltersOptions<D>{}
|
|
66
|
+
|
|
67
|
+
// extends UseExpandedOptions<D>,
|
|
68
|
+
// UseGroupByOptions<D>,
|
|
69
|
+
// UsePaginationOptions<D>,
|
|
70
|
+
// UseResizeColumnsOptions<D>,
|
|
71
|
+
// UseRowSelectOptions<D>,
|
|
72
|
+
// UseRowStateOptions<D>,
|
|
73
|
+
// UseSortByOptions<D>,
|
|
74
|
+
// // note that having Record here allows you to add anything to the options, this matches the spirit of the
|
|
75
|
+
// // underlying js library, but might be cleaner if it's replaced by a more specific type that matches your
|
|
76
|
+
// // feature set, this is a safe default.
|
|
77
|
+
// Record<string, any> {}
|
|
78
|
+
|
|
79
|
+
export interface Hooks<D extends Record<string, unknown> = Record<string, unknown>>
|
|
80
|
+
extends UseSortByHooks<D>,
|
|
81
|
+
UseRowSelectHooks {}
|
|
82
|
+
// extends UseExpandedHooks<D>,
|
|
83
|
+
// UseGroupByHooks<D>,
|
|
84
|
+
// UseRowSelectHooks<D>,
|
|
85
|
+
// UseSortByHooks<D> {}
|
|
86
|
+
|
|
87
|
+
export interface TableInstance<D extends Record<string, unknown> = Record<string, unknown>>
|
|
88
|
+
extends UseSortByInstanceProps<D>,
|
|
89
|
+
UseRowSelectInstanceProps<D>,
|
|
90
|
+
UseFiltersInstanceProps<D>,
|
|
91
|
+
UseGlobalFiltersInstanceProps<D>{}
|
|
92
|
+
// extends UseColumnOrderInstanceProps<D>,
|
|
93
|
+
// UseExpandedInstanceProps<D>,
|
|
94
|
+
// UseGroupByInstanceProps<D>,
|
|
95
|
+
// UsePaginationInstanceProps<D>,
|
|
96
|
+
// UseRowSelectInstanceProps<D>,
|
|
97
|
+
// UseRowStateInstanceProps<D>,
|
|
98
|
+
// UseSortByInstanceProps<D> {}
|
|
99
|
+
|
|
100
|
+
export interface TableState<D extends Record<string, unknown> = Record<string, unknown>>
|
|
101
|
+
extends UseSortByState<D>,
|
|
102
|
+
UseRowSelectState<D>,
|
|
103
|
+
UseFiltersState<D>,
|
|
104
|
+
UseGlobalFiltersState<D> {}
|
|
105
|
+
// extends UseColumnOrderState<D>,
|
|
106
|
+
// UseExpandedState<D>,
|
|
107
|
+
// UseGroupByState<D>,
|
|
108
|
+
// UsePaginationState<D>,
|
|
109
|
+
// UseResizeColumnsState<D>,
|
|
110
|
+
// UseRowSelectState<D>,
|
|
111
|
+
// UseRowStateState<D>,
|
|
112
|
+
// UseSortByState<D> {}
|
|
113
|
+
|
|
114
|
+
export interface ColumnInterface<D extends Record<string, unknown> = Record<string, unknown>>
|
|
115
|
+
extends UseSortByColumnOptions<D>,
|
|
116
|
+
UseFiltersColumnOptions<D>,
|
|
117
|
+
UseGlobalFiltersColumnOptions<D> {}
|
|
118
|
+
// UseGroupByColumnOptions<D>,
|
|
119
|
+
// UseResizeColumnsColumnOptions<D>,
|
|
120
|
+
// UseSortByColumnOptions<D> {}
|
|
121
|
+
|
|
122
|
+
export interface ColumnInstance<D extends Record<string, unknown> = Record<string, unknown>>
|
|
123
|
+
extends UseSortByColumnProps<D>,
|
|
124
|
+
UseFiltersColumnProps<D> {}
|
|
125
|
+
// UseGroupByColumnProps<D>,
|
|
126
|
+
// UseResizeColumnsColumnProps<D>,
|
|
127
|
+
// UseSortByColumnProps<D> {}
|
|
128
|
+
|
|
129
|
+
// export interface Cell<D extends Record<string, unknown> = Record<string, unknown>, V = any>
|
|
130
|
+
// extends UseGroupByCellProps<D>,
|
|
131
|
+
// UseRowStateCellProps<D> {}
|
|
132
|
+
|
|
133
|
+
export interface Row<D extends Record<string, unknown> = Record<string, unknown>>
|
|
134
|
+
extends UseRowSelectRowProps<D> {}
|
|
135
|
+
// extends UseExpandedRowProps<D>,
|
|
136
|
+
// UseGroupByRowProps<D>,
|
|
137
|
+
// UseRowSelectRowProps<D>,
|
|
138
|
+
// UseRowStateRowProps<D> {}
|
|
139
|
+
}
|