jb-grid 0.0.4 → 0.1.0
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 +7 -4
- package/react/README.md +4 -1
- package/react/dist/Components/Cell.d.ts +0 -1
- package/react/dist/Components/ExpandRow.d.ts +0 -1
- package/react/dist/Components/JBLoading.d.ts +0 -1
- package/react/dist/Components/Row.d.ts +0 -1
- package/react/dist/Components/content-error/ContentError.d.ts +0 -1
- package/react/dist/Header.d.ts +1 -0
- package/react/dist/JBGrid.cjs.js +1 -1
- package/react/dist/JBGrid.cjs.js.map +1 -1
- package/react/dist/JBGrid.css +728 -0
- package/react/dist/JBGrid.css.map +1 -0
- package/react/dist/JBGrid.d.ts +0 -1
- package/react/dist/JBGrid.js +1 -1
- package/react/dist/JBGrid.js.map +1 -1
- package/react/dist/JBGrid.umd.js +1 -1
- package/react/dist/JBGrid.umd.js.map +1 -1
- package/react/dist/JBGridViewModel.d.ts +2 -2
- package/react/dist/types.d.ts +1 -1
- package/react/lib/Components/Cell.tsx +4 -1
- package/react/lib/Components/ExpandRow.tsx +4 -1
- package/react/lib/Components/JBLoading.tsx +4 -1
- package/react/lib/Components/Row.tsx +4 -1
- package/react/lib/Components/{JBLoading.scss → blob-loading.css} +23 -22
- package/react/lib/Components/{Cell.scss → cell.css} +4 -3
- package/react/lib/Components/content-error/ContentError.tsx +4 -1
- package/react/lib/Components/{ExpandRow.scss → expand-row.css} +7 -6
- package/react/lib/Components/{Row.scss → row.css} +4 -4
- package/react/lib/Footer.tsx +5 -2
- package/react/lib/Header.tsx +24 -18
- package/react/lib/JBGrid.tsx +5 -2
- package/react/lib/JBGridViewModel.ts +6 -6
- package/react/lib/footer.css +114 -0
- package/react/lib/global.d.ts +15 -0
- package/react/lib/header.css +85 -0
- package/react/lib/i18n.ts +2 -1
- package/react/lib/jb-grid.css +168 -0
- package/react/lib/types.ts +1 -1
- package/react/package.json +1 -6
- package/react/tsconfig.json +1 -0
- package/react/lib/JBGrid.scss +0 -350
- package/react/lib/_constants.scss +0 -7
- /package/react/lib/Components/content-error/{content-error.scss → content-error.css} +0 -0
package/package.json
CHANGED
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
"web component",
|
|
14
14
|
"react component"
|
|
15
15
|
],
|
|
16
|
-
"version": "0.0
|
|
17
|
-
"bugs": "https://github.com/javadbat/jb-
|
|
16
|
+
"version": "0.1.0",
|
|
17
|
+
"bugs": "https://github.com/javadbat/jb-grid/issues",
|
|
18
18
|
"license": "MIT",
|
|
19
19
|
"files": [
|
|
20
20
|
"LICENSE",
|
|
@@ -27,9 +27,12 @@
|
|
|
27
27
|
"main": "index.js",
|
|
28
28
|
"repository": {
|
|
29
29
|
"type": "git",
|
|
30
|
-
"url": "git@github.com:javadbat/jb-
|
|
30
|
+
"url": "git@github.com:javadbat/jb-grid.git"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"jb-core":">=0.
|
|
33
|
+
"jb-core":">=0.19.0",
|
|
34
|
+
"mobx":">=6.0.0",
|
|
35
|
+
"mobx-react":">=7.0.0",
|
|
36
|
+
"jb-searchbar":">=2.3.1"
|
|
34
37
|
}
|
|
35
38
|
}
|
package/react/README.md
CHANGED
|
@@ -12,9 +12,11 @@ react mobx table grid with pagination, filtering and sorting functionality.
|
|
|
12
12
|
## instructions
|
|
13
13
|
|
|
14
14
|
### install the package
|
|
15
|
-
|
|
15
|
+
|
|
16
|
+
```sh
|
|
16
17
|
npm i jb-grid
|
|
17
18
|
```
|
|
19
|
+
|
|
18
20
|
### import and use in your component
|
|
19
21
|
```JSX
|
|
20
22
|
import {Cell, Row, JBGrid} from 'jb-grid/react';
|
|
@@ -27,6 +29,7 @@ import {filterConfig} from './my-filter-config';
|
|
|
27
29
|
|
|
28
30
|
<JBGrid config={yourConfig} bridge={JBGridBridge} title="user list" searchbarConfig={vm.filterConfig}></JBGrid>
|
|
29
31
|
```
|
|
32
|
+
|
|
30
33
|
### config
|
|
31
34
|
|
|
32
35
|
config is unique for each data table you want to show and contains information about columns,filters,sort,initData,...
|
package/react/dist/Header.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
2
|
import JBGridViewModel from './JBGridViewModel.js';
|
|
3
3
|
import { JBSearchbarWebComponent } from 'jb-searchbar';
|
|
4
|
+
import 'jb-searchbar/react/lib/module-declaration.js';
|
|
4
5
|
type HeaderProps = {
|
|
5
6
|
vm: JBGridViewModel<any>;
|
|
6
7
|
title: string;
|