@bento-core/paginated-table 1.0.1-icdc.20 → 1.0.1-icdc.21

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.
@@ -1,22 +1,10 @@
1
-
2
- ### 1 Use latest or bento-core/paginated-table package version publish by ICDC
3
- Alternative configuratoin for BLUE button
4
- ```
5
- // 1.0.1-icdc.3
6
- npm i @bento-core/paginated-table@1.0.1-icdc.3
7
-
8
- or in package.json
9
- {
10
- @bento-core/paginated-table: '1.0.1-icdc.3'
11
- }
12
- ```
13
1
  **NOTE: Create a new dashboard page using bento-core components before removing old dashboard page**
14
2
  <br>
15
3
  <span style="color:yellow">
16
4
  Assuming New Dashboard page have Filter component and table component from bento-core
17
5
  </span>.
18
6
 
19
- ### 2 Configure Add_All_Button Or BLUE Button in Dashboard
7
+ ### 1 Configure Add_All_Button Or BLUE Button in Dashboard
20
8
 
21
9
  ```
22
10
  import React, { useCallback } from 'react';
@@ -56,7 +44,7 @@ import { ButtonView, btnTypes, TableContextProvider } from '@bento-core/paginate
56
44
  | activeFilters | TRUE | filtes the case or sample based on the active filters | graphQL query |
57
45
 
58
46
 
59
- ### 3 Configure Add_All_Button Or BLUE Button in Dashboard
47
+ ### 2 Configure Add_All_Button Or BLUE Button in Dashboard
60
48
 
61
49
  ```
62
50
  const customTheme = {
package/README.md CHANGED
@@ -1,7 +1,8 @@
1
1
  # PAGINATED TABLE COMPONENT DESIGN
2
2
 
3
3
  ```diff
4
- - After updating to latest version remove transform: 'rotateX(180deg)) in red
4
+ - After updating to latest version remove transform: 'rotateX(180deg)
5
+ - rotateX(180deg) is copied over from Bento 3.0 table which flips the table. So to correct all the bento project is currently adding rotateX(180deg) to flip back to correct position.
5
6
  ```
6
7
  ### Bento core paginated table design:
7
8
 
@@ -244,7 +245,7 @@ Wrapper component around table compnent.
244
245
  * Configuration display component based on index
245
246
  * CAUTION: If table is in wrapper component provide position of table component
246
247
  */
247
- export const tableLayout = [{
248
+ export const wrapperConfig = [{
248
249
  container: 'buttons',
249
250
  size: 'xl',
250
251
  clsName: 'container_header',
@@ -323,7 +324,7 @@ headerConfig - upper component on the table
323
324
  | tooltipCofig | FALSE | appears on side of the refers button | dashboardTabData/ tooltipContent |
324
325
 
325
326
 
326
- ####
327
+ ####
327
328
 
328
329
  ## 5 Customize Pagination Action:
329
330
  Customize paginated action is provided to add event in addition to update of the table state. It will override default paginated action.
@@ -0,0 +1,30 @@
1
+ ### Row Grouping Configure
2
+ ```
3
+ export const config = {
4
+ title: 'program',
5
+ dataField: 'studiesByProgram',
6
+ // select column for row grouping
7
+ groupBy: 'arm',
8
+
9
+ extendedViewConfig: {
10
+ download: {
11
+ customDownload: false,
12
+ downloadFileName: 'ICDC_ARMS_AND_COHORTS_download',
13
+ downloadCsv: 'Download Table Contents As CSV',
14
+ },
15
+ manageViewColumns: {
16
+ title: 'View Columns',
17
+ },
18
+ },
19
+ columns: [
20
+ {
21
+ dataField: 'arm',
22
+ header: 'Arm',
23
+ display: true,
24
+ tooltipText: 'sort',
25
+ cellType: cellTypes.CUSTOM_ELEM,
26
+ },
27
+ // other columns
28
+ ]
29
+ }
30
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bento-core/paginated-table",
3
- "version": "1.0.1-icdc.20",
3
+ "version": "1.0.1-icdc.21",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -20,10 +20,10 @@
20
20
  "react-dom": "^17.0.0",
21
21
  "react-redux": "^7.2.1",
22
22
  "@bento-core/cart": "^1.0.0",
23
- "@bento-core/table": "1.0.1-icdc.0",
23
+ "@bento-core/table": "^1.0.0",
24
24
  "@bento-core/tool-tip": "^1.0.0",
25
25
  "@bento-core/util": "^1.0.0"
26
26
  },
27
27
  "author": "CTOS Bento Team",
28
28
  "license": "ISC"
29
- }
29
+ }