This repository has been archived by the owner on May 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Sugan G
authored and
Sugan G
committed
Mar 1, 2024
1 parent
7c89c85
commit 3a34383
Showing
17 changed files
with
756 additions
and
7 deletions.
There are no files selected for viewing
120 changes: 120 additions & 0 deletions
120
packages/terra-data-grid/tests/jest/__snapshots__/DataGrid.test.jsx.snap
Large diffs are not rendered by default.
Oops, something went wrong.
456 changes: 456 additions & 0 deletions
456
packages/terra-data-grid/tests/jest/__snapshots__/WorklistDataGrid.test.jsx.snap
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
...work-docs/src/terra-dev-site/doc/table/Examples/TableWithoutRowHeader.1.doc.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { Badge } from "terra-table/package.json?dev-site-package"; | ||
import TableWithoutRowHeader from "./TableWithoutRowHeader?dev-site-example"; | ||
|
||
# Default Table without row header | ||
|
||
### Description | ||
|
||
This example demonstrates a basic [Table](/components/cerner-terra-framework-docs/table/about) component implementation without row header. | ||
|
||
<TableWithoutRowHeader /> |
61 changes: 61 additions & 0 deletions
61
...ages/terra-framework-docs/src/terra-dev-site/doc/table/Examples/TableWithoutRowHeader.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
import React from 'react'; | ||
import Table from 'terra-table'; | ||
|
||
const tableData = { | ||
cols: [ | ||
{ id: 'Column-0', displayName: 'Patient' }, | ||
{ id: 'Column-1', displayName: 'Location' }, | ||
{ id: 'Column-2', displayName: 'Illness Severity' }, | ||
{ id: 'Column-3', displayName: 'Visit' }, | ||
{ id: 'Column-4', displayName: 'Allergy' }, | ||
{ id: 'Column-5', displayName: 'Primary Contact' }, | ||
{ id: 'Column-6', displayName: 'Generic Order Counts' }, | ||
{ id: 'Column-7', displayName: 'Patient Age' }, | ||
{ id: 'Column-8', displayName: 'Medication History' }, | ||
{ id: 'Column-9', displayName: 'My Relationship' }, | ||
], | ||
rows: [ | ||
{ | ||
id: '1', | ||
cells: [ | ||
{ content: 'Fleck, Arthur' }, | ||
{ content: '1007-MTN' }, | ||
{ content: 'Unstable' }, | ||
{ content: 'Inpatient, 2 months' }, | ||
{ content: '' }, | ||
{ content: 'Quinzell, Harleen' }, | ||
{ content: '' }, | ||
{ isMasked: true, maskedLabel: 'Age Hidden' }, | ||
{ isMasked: true }, | ||
{ content: 'Admitting Physician' }, | ||
], | ||
}, | ||
{ | ||
id: '2', | ||
cells: [ | ||
{ content: 'Wayne, Bruce' }, | ||
{ content: '1007-MTN-DR' }, | ||
{ content: 'Stable' }, | ||
{ content: 'Outpatient, 2 days' }, | ||
{ content: 'Phytochemicals' }, | ||
{ content: 'Grayson, Richard' }, | ||
{ content: '' }, | ||
{ content: '' }, | ||
{ isMasked: true }, | ||
{ content: 'Admitting Physician' }, | ||
], | ||
}, | ||
], | ||
}; | ||
|
||
const TableWithoutRowHeader = () => ( | ||
<Table | ||
id="table-without-row-header" | ||
overflowColumns={tableData.cols} | ||
rows={tableData.rows} | ||
rowHeaderIndex={-1} | ||
ariaLabel="Table" | ||
/> | ||
); | ||
|
||
export default TableWithoutRowHeader; |
20 changes: 20 additions & 0 deletions
20
packages/terra-framework-docs/src/terra-dev-site/test/table/TableWithoutRowHeader.test.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import React from 'react'; | ||
import Table from 'terra-table'; | ||
import tableData from './mockTableData.json'; | ||
|
||
const TableWithoutRowHeader = () => { | ||
const { cols, rows } = tableData; | ||
|
||
return ( | ||
<Table | ||
id="table-without-row-header" | ||
overflowColumns={cols} | ||
rows={rows} | ||
rowHeaderIndex={-1} | ||
columnHeaderHeight="50px" | ||
ariaLabel="table" | ||
/> | ||
); | ||
}; | ||
|
||
export default TableWithoutRowHeader; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.