jb-grid 0.3.2 → 0.3.3
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/package.json +1 -1
- package/react/dist/Components/Cell.d.ts +2 -3
- package/react/dist/Components/ExpandRow.d.ts +2 -3
- package/react/dist/Components/ExpandToggle.d.ts +1 -2
- package/react/dist/Components/Row.d.ts +2 -3
- package/react/dist/JBGrid.cjs.js.map +1 -1
- package/react/dist/JBGrid.d.ts +4 -4
- package/react/dist/JBGrid.js.map +1 -1
- package/react/dist/JBGrid.umd.js.map +1 -1
- package/react/lib/Components/Cell.tsx +2 -2
- package/react/lib/Components/ExpandRow.tsx +2 -2
- package/react/lib/Components/ExpandToggle.tsx +2 -2
- package/react/lib/Components/Row.tsx +2 -2
- package/react/lib/JBGrid.tsx +4 -4
|
@@ -2,12 +2,12 @@ import React, { type ForwardedRef } from 'react';
|
|
|
2
2
|
import type {JBCellAttributes} from './module-declaration.js';
|
|
3
3
|
import type { JBCellWebComponent } from 'jb-grid';
|
|
4
4
|
|
|
5
|
-
type
|
|
5
|
+
export type CellProps = JBCellAttributes & {
|
|
6
6
|
ref?:ForwardedRef<JBCellWebComponent | null>,
|
|
7
7
|
name:string,
|
|
8
8
|
label?:string,
|
|
9
9
|
}
|
|
10
|
-
export function JBCell(props:
|
|
10
|
+
export function JBCell(props:CellProps) {
|
|
11
11
|
const { children, ...otherProps} = props;
|
|
12
12
|
return (
|
|
13
13
|
<jb-cell slot="cell" {...otherProps}>{children}</jb-cell>
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React, { type HTMLAttributes, type PropsWithChildren } from 'react';
|
|
2
2
|
|
|
3
|
-
export function ExpandRow(props:
|
|
3
|
+
export function ExpandRow(props:ExpandRowProps) {
|
|
4
4
|
const {children,...otherProps} = props;
|
|
5
5
|
return (
|
|
6
6
|
<div slot="expand" {...otherProps}>{children}</div>
|
|
7
7
|
);
|
|
8
8
|
}
|
|
9
|
-
type
|
|
9
|
+
export type ExpandRowProps= PropsWithChildren<React.DetailedHTMLProps<HTMLAttributes<HTMLDivElement>,HTMLDivElement>>
|
|
10
10
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import type {JBExpandToggleAttributes} from './module-declaration.js';
|
|
3
3
|
|
|
4
|
-
type ToggleProps = JBExpandToggleAttributes
|
|
4
|
+
export type ToggleProps = JBExpandToggleAttributes
|
|
5
5
|
export function JBExpandToggle(props:ToggleProps) {
|
|
6
6
|
const { children, ...otherProps} = props;
|
|
7
7
|
return (
|
|
@@ -2,9 +2,9 @@ import React, { type ForwardedRef } from 'react';
|
|
|
2
2
|
import type {JBRowAttributes} from './module-declaration.js';
|
|
3
3
|
import type { JBCellWebComponent, RowTemplate } from 'jb-grid';
|
|
4
4
|
|
|
5
|
-
type RowProps = JBRowAttributes & {
|
|
5
|
+
export type RowProps = JBRowAttributes & {
|
|
6
6
|
ref?:ForwardedRef<JBCellWebComponent | null>,
|
|
7
|
-
rowTemplate
|
|
7
|
+
rowTemplate?:RowTemplate,
|
|
8
8
|
isOpen?:boolean
|
|
9
9
|
}
|
|
10
10
|
export function JBRow(props:RowProps) {
|
package/react/lib/JBGrid.tsx
CHANGED
|
@@ -13,10 +13,10 @@ import { useInstance } from 'jb-core/react';
|
|
|
13
13
|
import { injectCss } from 'jb-core';
|
|
14
14
|
|
|
15
15
|
export {JBPagination, type Props as PaginationProps} from './Components/Pagination.js';
|
|
16
|
-
export
|
|
17
|
-
export
|
|
18
|
-
export
|
|
19
|
-
export
|
|
16
|
+
export * from './Components/Row.js';
|
|
17
|
+
export * from './Components/Cell.js';
|
|
18
|
+
export * from './Components/ExpandRow.js';
|
|
19
|
+
export * from './Components/ExpandToggle.js';
|
|
20
20
|
export * from './types.js';
|
|
21
21
|
export type Props<T extends AnyObject> = {
|
|
22
22
|
searchbarConfig?: SearchbarConfig | null | undefined,
|