jb-grid 0.0.1 → 0.0.2
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 +5 -2
- package/react/dist/{web-component/jb-grid/react/lib/Components → Components}/Cell.d.ts +10 -10
- package/react/dist/{web-component/jb-grid/react/lib/Components → Components}/ExpandRow.d.ts +11 -11
- package/react/dist/{web-component/jb-grid/react/lib/Components → Components}/JBLoading.d.ts +6 -6
- package/react/dist/{web-component/jb-grid/react/lib/Components → Components}/Row.d.ts +5 -5
- package/react/dist/{web-component/jb-grid/react/lib/Components → Components}/content-error/ContentError.d.ts +10 -10
- package/react/dist/{web-component/jb-grid/react/lib/Content.d.ts → Content.d.ts} +16 -16
- package/react/dist/{web-component/jb-grid/react/lib/Footer.d.ts → Footer.d.ts} +9 -9
- package/react/dist/{web-component/jb-grid/react/lib/Header.d.ts → Header.d.ts} +22 -22
- package/react/dist/JBGrid.cjs.js +2 -17989
- package/react/dist/JBGrid.cjs.js.map +1 -1
- package/react/dist/{web-component/jb-grid/react/lib/JBGrid.d.ts → JBGrid.d.ts} +25 -24
- package/react/dist/JBGrid.js +2 -17983
- package/react/dist/JBGrid.js.map +1 -1
- package/react/dist/JBGrid.umd.js +2 -17989
- package/react/dist/JBGrid.umd.js.map +1 -1
- package/react/dist/{web-component/jb-grid/react/lib/JBGridData.d.ts → JBGridData.d.ts} +16 -16
- package/react/dist/{web-component/jb-grid/react/lib/JBGridViewModel.d.ts → JBGridViewModel.d.ts} +70 -71
- package/react/dist/{web-component/jb-grid/react/lib/Types.d.ts → Types.d.ts} +124 -124
- package/react/dist/{web-component/jb-grid/react/lib/i18n.d.ts → i18n.d.ts} +2 -2
- package/react/lib/Content.tsx +1 -1
- package/react/lib/JBGrid.tsx +6 -6
- package/react/lib/JBGridData.ts +1 -1
- package/react/lib/JBGridViewModel.ts +2 -3
- package/react/lib/i18n.ts +1 -1
- package/react/lib/{Types.ts → types.ts} +1 -1
- package/react/package.json +1 -1
- package/react/tsconfig.json +3 -4
- package/react/dist/common/hooks/use-event.d.ts +0 -3
- package/react/dist/common/hooks/useLazyRef.d.ts +0 -4
- package/react/dist/common/hooks/useMobx.d.ts +0 -4
- package/react/dist/common/scripts/device-detection.d.ts +0 -1
- package/react/dist/common/scripts/persian-helper.d.ts +0 -3
- package/react/dist/web-component/jb-searchbar/types.d.ts +0 -1
package/package.json
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"table",
|
|
13
13
|
"web component"
|
|
14
14
|
],
|
|
15
|
-
"version": "0.0.
|
|
15
|
+
"version": "0.0.2",
|
|
16
16
|
"bugs": "https://github.com/javadbat/jb-button/issues",
|
|
17
17
|
"license": "MIT",
|
|
18
18
|
"files": [
|
|
@@ -24,9 +24,12 @@
|
|
|
24
24
|
"react/dist/"
|
|
25
25
|
],
|
|
26
26
|
"main": "index.js",
|
|
27
|
-
"types": "./dist/
|
|
27
|
+
"types": "./dist/jb-button.d.ts",
|
|
28
28
|
"repository": {
|
|
29
29
|
"type": "git",
|
|
30
30
|
"url": "git@github.com:javadbat/jb-button.git"
|
|
31
|
+
},
|
|
32
|
+
"dependencies": {
|
|
33
|
+
"jb-core":">=0.4.0"
|
|
31
34
|
}
|
|
32
35
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './Cell.scss';
|
|
3
|
-
type CellProps = {
|
|
4
|
-
children?: React.ReactNode | React.ReactNode[];
|
|
5
|
-
label?: string;
|
|
6
|
-
className?: string;
|
|
7
|
-
flex?: boolean;
|
|
8
|
-
};
|
|
9
|
-
declare function Cell(props: CellProps): React.JSX.Element;
|
|
10
|
-
export { Cell };
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './Cell.scss';
|
|
3
|
+
type CellProps = {
|
|
4
|
+
children?: React.ReactNode | React.ReactNode[];
|
|
5
|
+
label?: string;
|
|
6
|
+
className?: string;
|
|
7
|
+
flex?: boolean;
|
|
8
|
+
};
|
|
9
|
+
declare function Cell(props: CellProps): React.JSX.Element;
|
|
10
|
+
export { Cell };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
|
-
import './ExpandRow.scss';
|
|
4
|
-
declare function ExpandRow(props: any): React.JSX.Element;
|
|
5
|
-
declare namespace ExpandRow {
|
|
6
|
-
var propTypes: {
|
|
7
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
8
|
-
show: PropTypes.Requireable<boolean>;
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
export { ExpandRow };
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
import './ExpandRow.scss';
|
|
4
|
+
declare function ExpandRow(props: any): React.JSX.Element;
|
|
5
|
+
declare namespace ExpandRow {
|
|
6
|
+
var propTypes: {
|
|
7
|
+
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
8
|
+
show: PropTypes.Requireable<boolean>;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export { ExpandRow };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './JBLoading.scss';
|
|
3
|
-
declare class JBLoading extends React.Component {
|
|
4
|
-
render(): React.JSX.Element;
|
|
5
|
-
}
|
|
6
|
-
export default JBLoading;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './JBLoading.scss';
|
|
3
|
+
declare class JBLoading extends React.Component {
|
|
4
|
+
render(): React.JSX.Element;
|
|
5
|
+
}
|
|
6
|
+
export default JBLoading;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './Row.scss';
|
|
3
|
-
type RowProps = Omit<React.ComponentPropsWithoutRef<'div'>, "style">;
|
|
4
|
-
declare function Row(props: RowProps): React.JSX.Element;
|
|
5
|
-
export { Row };
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './Row.scss';
|
|
3
|
+
type RowProps = Omit<React.ComponentPropsWithoutRef<'div'>, "style">;
|
|
4
|
+
declare function Row(props: RowProps): React.JSX.Element;
|
|
5
|
+
export { Row };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './content-error.scss';
|
|
3
|
-
type ContentErrorProps = {
|
|
4
|
-
onRefreshBtnClick: () => unknown;
|
|
5
|
-
message?: string;
|
|
6
|
-
title?: string;
|
|
7
|
-
refreshButtonTitle?: string;
|
|
8
|
-
};
|
|
9
|
-
declare function ContentError(props: ContentErrorProps): React.JSX.Element;
|
|
10
|
-
export default ContentError;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './content-error.scss';
|
|
3
|
+
type ContentErrorProps = {
|
|
4
|
+
onRefreshBtnClick: () => unknown;
|
|
5
|
+
message?: string;
|
|
6
|
+
title?: string;
|
|
7
|
+
refreshButtonTitle?: string;
|
|
8
|
+
};
|
|
9
|
+
declare function ContentError(props: ContentErrorProps): React.JSX.Element;
|
|
10
|
+
export default ContentError;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
2
|
-
import { JBGridColumnDef, JBGridConfig, JBGridI18nConfig, JBGridStyles } from './
|
|
3
|
-
export type ContentProps = {
|
|
4
|
-
children: React.ReactNode | React.ReactNode[];
|
|
5
|
-
refreshBtnClick: () => void;
|
|
6
|
-
config: JBGridConfig<any>;
|
|
7
|
-
isErrorOccurred: boolean;
|
|
8
|
-
styles: JBGridStyles;
|
|
9
|
-
isLoading: boolean;
|
|
10
|
-
setSortColumn: (column: JBGridColumnDef) => void;
|
|
11
|
-
i18n: JBGridI18nConfig;
|
|
12
|
-
errorComponent?: ReactNode;
|
|
13
|
-
};
|
|
14
|
-
declare function Content(props: ContentProps): React.JSX.Element;
|
|
15
|
-
declare const _default: typeof Content;
|
|
16
|
-
export default _default;
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
import { JBGridColumnDef, JBGridConfig, JBGridI18nConfig, JBGridStyles } from './types.js';
|
|
3
|
+
export type ContentProps = {
|
|
4
|
+
children: React.ReactNode | React.ReactNode[];
|
|
5
|
+
refreshBtnClick: () => void;
|
|
6
|
+
config: JBGridConfig<any>;
|
|
7
|
+
isErrorOccurred: boolean;
|
|
8
|
+
styles: JBGridStyles;
|
|
9
|
+
isLoading: boolean;
|
|
10
|
+
setSortColumn: (column: JBGridColumnDef) => void;
|
|
11
|
+
i18n: JBGridI18nConfig;
|
|
12
|
+
errorComponent?: ReactNode;
|
|
13
|
+
};
|
|
14
|
+
declare function Content(props: ContentProps): React.JSX.Element;
|
|
15
|
+
declare const _default: typeof Content;
|
|
16
|
+
export default _default;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import JBGridViewModel from './JBGridViewModel.js';
|
|
3
|
-
type FooterProps = {
|
|
4
|
-
vm: JBGridViewModel<any>;
|
|
5
|
-
isFullscreen: boolean;
|
|
6
|
-
};
|
|
7
|
-
declare function Footer(props: FooterProps): React.JSX.Element;
|
|
8
|
-
declare const _default: typeof Footer;
|
|
9
|
-
export default _default;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import JBGridViewModel from './JBGridViewModel.js';
|
|
3
|
+
type FooterProps = {
|
|
4
|
+
vm: JBGridViewModel<any>;
|
|
5
|
+
isFullscreen: boolean;
|
|
6
|
+
};
|
|
7
|
+
declare function Footer(props: FooterProps): React.JSX.Element;
|
|
8
|
+
declare const _default: typeof Footer;
|
|
9
|
+
export default _default;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
2
|
-
import JBGridViewModel from './JBGridViewModel.js';
|
|
3
|
-
import { JBSearchbarWebComponent } from 'jb-searchbar';
|
|
4
|
-
type HeaderProps = {
|
|
5
|
-
vm: JBGridViewModel<any>;
|
|
6
|
-
title: string;
|
|
7
|
-
searchbarConfig: any;
|
|
8
|
-
headerEndComponents?: React.ReactNode[] | ReactNode;
|
|
9
|
-
};
|
|
10
|
-
declare global {
|
|
11
|
-
namespace JSX {
|
|
12
|
-
interface IntrinsicElements {
|
|
13
|
-
'jb-searchbar': JBSearchbarType;
|
|
14
|
-
}
|
|
15
|
-
interface JBSearchbarType extends React.DetailedHTMLProps<React.HTMLAttributes<JBSearchbarWebComponent>, JBSearchbarWebComponent> {
|
|
16
|
-
class?: string;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
declare function Header(props: HeaderProps): React.JSX.Element;
|
|
21
|
-
declare const _default: typeof Header;
|
|
22
|
-
export default _default;
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
import JBGridViewModel from './JBGridViewModel.js';
|
|
3
|
+
import { JBSearchbarWebComponent } from 'jb-searchbar';
|
|
4
|
+
type HeaderProps = {
|
|
5
|
+
vm: JBGridViewModel<any>;
|
|
6
|
+
title: string;
|
|
7
|
+
searchbarConfig: any;
|
|
8
|
+
headerEndComponents?: React.ReactNode[] | ReactNode;
|
|
9
|
+
};
|
|
10
|
+
declare global {
|
|
11
|
+
namespace JSX {
|
|
12
|
+
interface IntrinsicElements {
|
|
13
|
+
'jb-searchbar': JBSearchbarType;
|
|
14
|
+
}
|
|
15
|
+
interface JBSearchbarType extends React.DetailedHTMLProps<React.HTMLAttributes<JBSearchbarWebComponent>, JBSearchbarWebComponent> {
|
|
16
|
+
class?: string;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
declare function Header(props: HeaderProps): React.JSX.Element;
|
|
21
|
+
declare const _default: typeof Header;
|
|
22
|
+
export default _default;
|