jb-grid 0.0.3 → 0.0.4
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.
|
@@ -8,9 +8,7 @@ export type JBGridRowDataDetail = {
|
|
|
8
8
|
export type JBGridRowDetail = {
|
|
9
9
|
jbGridDetail: JBGridRowDataDetail;
|
|
10
10
|
};
|
|
11
|
-
export type AnyObject =
|
|
12
|
-
[key: string]: any;
|
|
13
|
-
};
|
|
11
|
+
export type AnyObject = Record<string, any>;
|
|
14
12
|
export type JBGridStyles = {
|
|
15
13
|
table: {
|
|
16
14
|
generalCols: {
|
package/react/lib/JBGrid.tsx
CHANGED
|
@@ -9,6 +9,7 @@ import Footer from './Footer.js';
|
|
|
9
9
|
import Header from './Header.js';
|
|
10
10
|
import Content from './Content.js';
|
|
11
11
|
import { useInstance } from 'jb-core/react';
|
|
12
|
+
|
|
12
13
|
export { Row } from './Components/Row.js';
|
|
13
14
|
export { Cell } from './Components/Cell.js';
|
|
14
15
|
export { ExpandRow } from './Components/ExpandRow.js';
|
|
@@ -26,8 +27,8 @@ export type Props<T extends AnyObject> = {
|
|
|
26
27
|
contentError?: ReactNode,
|
|
27
28
|
headerEndComponents?: ReactNode[] | ReactNode,
|
|
28
29
|
children?: React.ReactNode | React.ReactNode[]
|
|
29
|
-
|
|
30
30
|
}
|
|
31
|
+
|
|
31
32
|
function JBGridComponent<T extends AnyObject>(props: Props<T>) {
|
|
32
33
|
const vm = useInstance(JBGridViewModel<AnyObject>, [props.onFullscreenChange, props.config, props.bridge]);
|
|
33
34
|
useEffect(() => {
|
package/react/lib/types.ts
CHANGED
|
@@ -17,9 +17,7 @@ export type JBGridRowDataDetail = {
|
|
|
17
17
|
isExpanded: boolean
|
|
18
18
|
}
|
|
19
19
|
export type JBGridRowDetail = { jbGridDetail: JBGridRowDataDetail };
|
|
20
|
-
export type AnyObject =
|
|
21
|
-
[key: string]: any;
|
|
22
|
-
}
|
|
20
|
+
export type AnyObject = Record<string,any>
|
|
23
21
|
export type JBGridStyles = {
|
|
24
22
|
table: {
|
|
25
23
|
generalCols: {
|