@etsoo/react 1.7.37 → 1.7.38
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.
|
@@ -43,6 +43,19 @@ export type GridLoadDataProps = {
|
|
|
43
43
|
*/
|
|
44
44
|
data?: GridData;
|
|
45
45
|
};
|
|
46
|
+
/**
|
|
47
|
+
* Grid data load partial props
|
|
48
|
+
*/
|
|
49
|
+
export type GridLoadDataPartialProps = {
|
|
50
|
+
/**
|
|
51
|
+
* Query paging data
|
|
52
|
+
*/
|
|
53
|
+
queryPaging?: Partial<QueryPagingData>;
|
|
54
|
+
/**
|
|
55
|
+
* Data related
|
|
56
|
+
*/
|
|
57
|
+
data?: GridData;
|
|
58
|
+
};
|
|
46
59
|
/**
|
|
47
60
|
* Grid data loader
|
|
48
61
|
*/
|
|
@@ -81,10 +94,7 @@ export interface GridLoader<T extends object> {
|
|
|
81
94
|
*/
|
|
82
95
|
threshold?: number | undefined;
|
|
83
96
|
}
|
|
84
|
-
|
|
85
|
-
* Grid loader states
|
|
86
|
-
*/
|
|
87
|
-
export type GridLoaderStates<T> = GridLoadDataProps & {
|
|
97
|
+
type GridLoaderProps<T> = {
|
|
88
98
|
/**
|
|
89
99
|
* Auto load data, otherwise call reset
|
|
90
100
|
* @default true
|
|
@@ -119,3 +129,12 @@ export type GridLoaderStates<T> = GridLoadDataProps & {
|
|
|
119
129
|
*/
|
|
120
130
|
idCache: Record<any, null>;
|
|
121
131
|
};
|
|
132
|
+
/**
|
|
133
|
+
* Grid loader states
|
|
134
|
+
*/
|
|
135
|
+
export type GridLoaderStates<T> = GridLoadDataProps & GridLoaderProps<T>;
|
|
136
|
+
/**
|
|
137
|
+
* Grid loader states
|
|
138
|
+
*/
|
|
139
|
+
export type GridLoaderPartialStates<T> = GridLoadDataPartialProps & Partial<GridLoaderProps<T>>;
|
|
140
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Align } from 'react-window';
|
|
2
|
-
import {
|
|
2
|
+
import { GridLoaderPartialStates } from './GridLoader';
|
|
3
3
|
/**
|
|
4
4
|
* Grid method ref
|
|
5
5
|
*/
|
|
@@ -19,7 +19,7 @@ export interface GridMethodRef<T> {
|
|
|
19
19
|
* Reset
|
|
20
20
|
* @param add Additional data
|
|
21
21
|
*/
|
|
22
|
-
reset(add?:
|
|
22
|
+
reset(add?: GridLoaderPartialStates<T>): void;
|
|
23
23
|
/**
|
|
24
24
|
* Scroll to the specified offset (scrollTop or scrollLeft, depending on the direction prop).
|
|
25
25
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@etsoo/react",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.38",
|
|
4
4
|
"description": "TypeScript ReactJs UI Independent Framework",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"@emotion/css": "^11.11.2",
|
|
51
51
|
"@emotion/react": "^11.11.4",
|
|
52
52
|
"@emotion/styled": "^11.11.5",
|
|
53
|
-
"@etsoo/appscript": "^1.4.
|
|
53
|
+
"@etsoo/appscript": "^1.4.86",
|
|
54
54
|
"@etsoo/notificationbase": "^1.1.42",
|
|
55
55
|
"@etsoo/shared": "^1.2.37",
|
|
56
56
|
"react": "^18.3.1",
|
|
@@ -78,6 +78,21 @@ export type GridLoadDataProps = {
|
|
|
78
78
|
data?: GridData;
|
|
79
79
|
};
|
|
80
80
|
|
|
81
|
+
/**
|
|
82
|
+
* Grid data load partial props
|
|
83
|
+
*/
|
|
84
|
+
export type GridLoadDataPartialProps = {
|
|
85
|
+
/**
|
|
86
|
+
* Query paging data
|
|
87
|
+
*/
|
|
88
|
+
queryPaging?: Partial<QueryPagingData>;
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Data related
|
|
92
|
+
*/
|
|
93
|
+
data?: GridData;
|
|
94
|
+
};
|
|
95
|
+
|
|
81
96
|
/**
|
|
82
97
|
* Grid data loader
|
|
83
98
|
*/
|
|
@@ -125,10 +140,7 @@ export interface GridLoader<T extends object> {
|
|
|
125
140
|
threshold?: number | undefined;
|
|
126
141
|
}
|
|
127
142
|
|
|
128
|
-
|
|
129
|
-
* Grid loader states
|
|
130
|
-
*/
|
|
131
|
-
export type GridLoaderStates<T> = GridLoadDataProps & {
|
|
143
|
+
type GridLoaderProps<T> = {
|
|
132
144
|
/**
|
|
133
145
|
* Auto load data, otherwise call reset
|
|
134
146
|
* @default true
|
|
@@ -170,3 +182,14 @@ export type GridLoaderStates<T> = GridLoadDataProps & {
|
|
|
170
182
|
*/
|
|
171
183
|
idCache: Record<any, null>;
|
|
172
184
|
};
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* Grid loader states
|
|
188
|
+
*/
|
|
189
|
+
export type GridLoaderStates<T> = GridLoadDataProps & GridLoaderProps<T>;
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* Grid loader states
|
|
193
|
+
*/
|
|
194
|
+
export type GridLoaderPartialStates<T> = GridLoadDataPartialProps &
|
|
195
|
+
Partial<GridLoaderProps<T>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Align } from 'react-window';
|
|
2
|
-
import {
|
|
2
|
+
import { GridLoaderPartialStates } from './GridLoader';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Grid method ref
|
|
@@ -22,7 +22,7 @@ export interface GridMethodRef<T> {
|
|
|
22
22
|
* Reset
|
|
23
23
|
* @param add Additional data
|
|
24
24
|
*/
|
|
25
|
-
reset(add?:
|
|
25
|
+
reset(add?: GridLoaderPartialStates<T>): void;
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
28
|
* Scroll to the specified offset (scrollTop or scrollLeft, depending on the direction prop).
|