jb-grid 0.3.1 → 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 +3 -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
- package/web-component/dist/cell/cell.d.ts +9 -0
- package/web-component/dist/cell/cell.d.ts.map +1 -0
- package/web-component/dist/cell/render.d.ts +2 -0
- package/web-component/dist/cell/render.d.ts.map +1 -0
- package/web-component/dist/cell/types.d.ts +2 -0
- package/web-component/dist/cell/types.d.ts.map +1 -0
- package/web-component/dist/index.cjs.js +2 -0
- package/web-component/dist/index.cjs.js.br +0 -0
- package/web-component/dist/index.cjs.js.gz +0 -0
- package/web-component/dist/index.cjs.js.map +1 -0
- package/web-component/dist/index.d.ts +5 -0
- package/web-component/dist/index.d.ts.map +1 -0
- package/web-component/dist/index.js +2 -0
- package/web-component/dist/index.js.br +0 -0
- package/web-component/dist/index.js.gz +0 -0
- package/web-component/dist/index.js.map +1 -0
- package/web-component/dist/index.umd.js +2 -0
- package/web-component/dist/index.umd.js.br +0 -0
- package/web-component/dist/index.umd.js.gz +0 -0
- package/web-component/dist/index.umd.js.map +1 -0
- package/web-component/dist/pagination/pagination.d.ts +13 -0
- package/web-component/dist/pagination/pagination.d.ts.map +1 -0
- package/web-component/dist/pagination/render.d.ts +2 -0
- package/web-component/dist/pagination/render.d.ts.map +1 -0
- package/web-component/dist/pagination/types.d.ts +18 -0
- package/web-component/dist/pagination/types.d.ts.map +1 -0
- package/web-component/dist/row/render.d.ts +2 -0
- package/web-component/dist/row/render.d.ts.map +1 -0
- package/web-component/dist/row/row.d.ts +12 -0
- package/web-component/dist/row/row.d.ts.map +1 -0
- package/web-component/dist/row/types.d.ts +9 -0
- package/web-component/dist/row/types.d.ts.map +1 -0
- package/web-component/dist/row/utils.d.ts +3 -0
- package/web-component/dist/row/utils.d.ts.map +1 -0
- package/web-component/dist/toggle/expand-toggle.d.ts +7 -0
- package/web-component/dist/toggle/expand-toggle.d.ts.map +1 -0
- package/web-component/dist/toggle/render.d.ts +2 -0
- package/web-component/dist/toggle/render.d.ts.map +1 -0
- package/web-component/dist/toggle/types.d.ts +1 -0
- package/web-component/dist/toggle/types.d.ts.map +1 -0
- package/web-component/lib/cell/cell.ts +50 -0
- package/web-component/lib/cell/render.ts +5 -0
- package/web-component/lib/cell/style.css +16 -0
- package/web-component/lib/cell/types.ts +3 -0
- package/web-component/lib/global.d.ts +15 -0
- package/web-component/lib/index.ts +4 -0
- package/web-component/lib/pagination/pagination.ts +211 -0
- package/web-component/lib/pagination/render.ts +22 -0
- package/web-component/lib/pagination/style.css +86 -0
- package/web-component/lib/pagination/types.ts +15 -0
- package/web-component/lib/row/render.ts +12 -0
- package/web-component/lib/row/row.ts +61 -0
- package/web-component/lib/row/style.css +55 -0
- package/web-component/lib/row/types.ts +8 -0
- package/web-component/lib/row/utils.ts +40 -0
- package/web-component/lib/toggle/expand-toggle.ts +53 -0
- package/web-component/lib/toggle/render.ts +13 -0
- package/web-component/lib/toggle/style.css +25 -0
- package/web-component/tsconfig.json +17 -0
package/package.json
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"web component",
|
|
15
15
|
"react component"
|
|
16
16
|
],
|
|
17
|
-
"version": "0.3.
|
|
17
|
+
"version": "0.3.3",
|
|
18
18
|
"bugs": "https://github.com/javadbat/jb-grid/issues",
|
|
19
19
|
"license": "MIT",
|
|
20
20
|
"files": [
|
|
@@ -23,6 +23,8 @@
|
|
|
23
23
|
"lib/",
|
|
24
24
|
"dist/",
|
|
25
25
|
"react/",
|
|
26
|
+
"web-component/",
|
|
27
|
+
"web-component/dist",
|
|
26
28
|
"react/dist/"
|
|
27
29
|
],
|
|
28
30
|
"main": "index.js",
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import React, { type ForwardedRef } from 'react';
|
|
2
2
|
import type { JBCellAttributes } from './module-declaration.js';
|
|
3
3
|
import type { JBCellWebComponent } from 'jb-grid';
|
|
4
|
-
type
|
|
4
|
+
export type CellProps = JBCellAttributes & {
|
|
5
5
|
ref?: ForwardedRef<JBCellWebComponent | null>;
|
|
6
6
|
name: string;
|
|
7
7
|
label?: string;
|
|
8
8
|
};
|
|
9
|
-
export declare function JBCell(props:
|
|
10
|
-
export {};
|
|
9
|
+
export declare function JBCell(props: CellProps): React.JSX.Element;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import React, { type HTMLAttributes, type PropsWithChildren } from 'react';
|
|
2
|
-
export declare function ExpandRow(props:
|
|
3
|
-
type
|
|
4
|
-
export {};
|
|
2
|
+
export declare function ExpandRow(props: ExpandRowProps): React.JSX.Element;
|
|
3
|
+
export type ExpandRowProps = PropsWithChildren<React.DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { JBExpandToggleAttributes } from './module-declaration.js';
|
|
3
|
-
type ToggleProps = JBExpandToggleAttributes;
|
|
3
|
+
export type ToggleProps = JBExpandToggleAttributes;
|
|
4
4
|
export declare function JBExpandToggle(props: ToggleProps): React.JSX.Element;
|
|
5
|
-
export {};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
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
|
-
type RowProps = JBRowAttributes & {
|
|
4
|
+
export type RowProps = JBRowAttributes & {
|
|
5
5
|
ref?: ForwardedRef<JBCellWebComponent | null>;
|
|
6
|
-
rowTemplate
|
|
6
|
+
rowTemplate?: RowTemplate;
|
|
7
7
|
isOpen?: boolean;
|
|
8
8
|
};
|
|
9
9
|
export declare function JBRow(props: RowProps): React.JSX.Element;
|
|
10
|
-
export {};
|