-
Notifications
You must be signed in to change notification settings - Fork 137
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
1 parent
7a3c185
commit 78d2c72
Showing
140 changed files
with
4,200 additions
and
1 deletion.
There are no files selected for viewing
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,19 @@ | ||
.circleci | ||
.vscode | ||
node_modules | ||
build | ||
cypress | ||
cypress.json | ||
public | ||
src | ||
tsconfig.*json | ||
package.*json | ||
github-azure-*.yml | ||
snapshots.js | ||
.gitignore | ||
test | ||
rollup.* | ||
.babelrc | ||
.eslintrc | ||
stats.html | ||
types/ |
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,22 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) 2019-2020 Silevis Software Sp. z o.o. | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. | ||
|
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,60 @@ | ||
# ReactGrid - Spreadsheet experience for your React app | ||
|
||
<div align="center"> | ||
|
||
ReactGrid is an open-source React component for displaying and editing data in a spreadsheet-like way. 🚀 | ||
|
||
[![MIT license](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/silevis/reactgrid/blob/develop/LICENSE) | ||
[![Build Status](https://dev.azure.com/Silevis/ReactGrid/_apis/build/status/GitHub-MIT/Upgrade%20version%20and%20publish?branchName=master)](https://dev.azure.com/Silevis/ReactGrid/_build/latest?definitionId=17&branchName=master) | ||
[![reactgrid](https://img.shields.io/endpoint?url=https://dashboard.cypress.io/badge/simple/hwrqiy&style=flat&logo=cypress)](https://dashboard.cypress.io/projects/hwrqiy/runs) | ||
[![npm version](https://badge.fury.io/js/%40silevis%2Freactgrid.svg)](https://badge.fury.io/js/%40silevis%2Freactgrid) | ||
|
||
<img alt="Sample app" src="https://reactgrid.com/sample.gif"/> | ||
|
||
We've put a lot of effort in this software<br/> | ||
If you like our work, please give this project a star ⭐ | ||
|
||
</div> | ||
| ||
|
||
Prerequisites: | ||
|
||
- react": `^16.13.1` | ||
- react-dom: `^16.13.1` | ||
|
||
# Docs | ||
|
||
- [Demo](https://reactgrid.com/examples/?utm_source=github&utm_medium=readme) | ||
- [Get started](https://reactgrid.com/docs/4.0/1-getting-started/?utm_source=github&utm_medium=readme) | ||
- [Documentation](https://reactgrid.com/docs/4.0/0-introduction/?utm_source=github&utm_medium=readme) | ||
- [API Reference](https://reactgrid.com/docs/4.0/7-api/?utm_source=github&utm_medium=readme) | ||
|
||
# Browser support | ||
|
||
| [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/edge/edge_48x48.png" alt="Edge" />](http://godban.github.io/browsers-support-badges/)<br> Edge | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png" alt="Firefox" />](http://godban.github.io/browsers-support-badges/)<br> Firefox | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png" alt="Chrome" />](http://godban.github.io/browsers-support-badges/)<br> Chrome | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/safari/safari_48x48.png" alt="Safari" />](http://godban.github.io/browsers-support-badges/)<br> Safari | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/safari-ios/safari-ios_48x48.png" alt="iOS Safari" />](http://godban.github.io/browsers-support-badges/) <br>iOS/iPadOs Safari | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/samsung-internet/samsung-internet_48x48.png" alt="Samsung"/>](http://godban.github.io/browsers-support-badges/)<br> Samsung internet | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/opera/opera_48x48.png" alt="Opera" />](http://godban.github.io/browsers-support-badges/)<br> Opera | | ||
| :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | | ||
| 80+ | 61+ | 57+ | 13.1+ | 13+ | 9+ | 45+ | | ||
|
||
# Licensing | ||
|
||
ReactGrid is published under the MIT License (MIT). | ||
|
||
(c) 2022 Silevis Software Sp. z o.o. | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
|
||
# Authors | ||
|
||
<div align="center"> | ||
<a | ||
href="https://www.silevis.com/?utm_source=github&utm_medium=reactgrdigit&utm_campaign=github" | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
> | ||
<img src="public/silevis.png" alt="Silevis" width="400"/> | ||
</a> | ||
</div> |
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,6 @@ | ||
$template-checkbox-size: 20px !default; | ||
$template-font-size: 1em !default; | ||
$template-bg-color: transparent !default; | ||
$template-padding: 0 !default; | ||
$template-margin: 0 !default; | ||
$template-content-invalid: rgb(255, 0, 0) !default; |
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,172 @@ | ||
.rg-celleditor-input { | ||
width: 100%; | ||
height: 100%; | ||
padding: $template-padding; | ||
margin: $template-margin; | ||
background: $template-bg-color; | ||
font-size: $template-font-size; | ||
outline: none; | ||
} | ||
|
||
.rg-celleditor { | ||
box-sizing: border-box; | ||
z-index: 5; | ||
background-color: $cell-editor-gb-color; | ||
box-shadow: $cell-editor-shadow $cell-shadow-color; | ||
display: flex; | ||
border-style: solid; | ||
border-color: $cell-editor-border-color; | ||
border-width: $celleditor-border-width; | ||
padding: $cell-padding; | ||
input { | ||
@extend .rg-celleditor-input; | ||
} | ||
} | ||
|
||
.rg-number-celleditor input { | ||
text-align: right; | ||
} | ||
|
||
.reactgrid-content .rg-pane .rg-cell { | ||
&.rg-number-cell, | ||
.rg-time-cell, | ||
.rg-date-cell { | ||
justify-content: flex-end; | ||
} | ||
&.rg-email-cell.rg-invalid { | ||
color: $template-content-invalid; | ||
} | ||
&.rg-text-cell.placeholder { | ||
color: #999; | ||
font-size: 0.8em; | ||
} | ||
&.rg-checkbox-cell { | ||
align-items: center; | ||
justify-content: center; | ||
padding: $template-padding; | ||
margin: $template-margin; | ||
background: $template-bg-color; | ||
pointer-events: auto; | ||
input { | ||
width: $template-checkbox-size; | ||
height: $template-checkbox-size; | ||
} | ||
} | ||
|
||
&.rg-chevron-cell { | ||
.chevron { | ||
pointer-events: auto; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
font-weight: bold; | ||
margin-right: $template-font-size * 0.1; | ||
cursor: pointer; | ||
transition: 200ms all ease-in-out; | ||
height: $template-font-size; | ||
width: $template-font-size; | ||
} | ||
.no-child { | ||
width: 0.5em; | ||
} | ||
&.expanded .chevron { | ||
transform: rotate(90deg); | ||
} | ||
&.collapsed .chevron { | ||
transform: rotate(0deg); | ||
} | ||
} | ||
&.rg-checkbox-cell { | ||
justify-content: center; | ||
|
||
label { | ||
position: relative; | ||
height: $checkbox-size; | ||
width: $checkbox-size; | ||
cursor: pointer; | ||
-webkit-user-select: none; | ||
-moz-user-select: none; | ||
-ms-user-select: none; | ||
user-select: none; | ||
margin: 0; | ||
} | ||
|
||
label input { | ||
position: absolute; | ||
opacity: 0; | ||
cursor: pointer; | ||
margin: 0; | ||
height: $checkbox-size; | ||
width: $checkbox-size; | ||
} | ||
|
||
span { | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
height: $checkbox-size; | ||
width: $checkbox-size; | ||
background-color: $checkbox-unchecked; | ||
} | ||
|
||
label:hover input ~ span { | ||
background-color: $checkbox-hover; | ||
} | ||
|
||
label input:checked ~ span { | ||
background-color: $checkbox-checked; | ||
} | ||
|
||
span:after { | ||
content: ""; | ||
position: absolute; | ||
display: none; | ||
} | ||
|
||
label input:checked ~ span:after { | ||
display: block; | ||
} | ||
|
||
label span:after { | ||
left: 7px; | ||
top: 2px; | ||
width: 4px; | ||
height: $checkbox-size - 6px; | ||
border: solid $checkbox-mark; | ||
border-width: 0 3px 3px 0; | ||
-webkit-transform: rotate(45deg); | ||
-ms-transform: rotate(45deg); | ||
transform: rotate(45deg); | ||
} | ||
} | ||
&.rg-dropdown-cell { | ||
padding: 0; | ||
overflow: visible; | ||
.rg-dropdown-menu { | ||
top: 100%; | ||
background-color: $dropdown-menu-bg-color; | ||
border-radius: 4px; | ||
box-shadow: 0px 0px 7px rgba(0, 0, 0, 0.5); | ||
margin-bottom: 8px; | ||
margin-top: 2px; | ||
position: absolute; | ||
width: 100%; | ||
z-index: 1; | ||
box-sizing: border-box; | ||
} | ||
.rg-dropdown-option { | ||
padding: 0.3em 0.5em; | ||
min-height: 1.5em; | ||
display: flex; | ||
align-items: center; | ||
&.selected::before { | ||
content: "✓"; | ||
padding-right: 0.2em; | ||
} | ||
&.focused { | ||
color: black; | ||
background-color: $dropdown-focused-item-bg-color; | ||
} | ||
} | ||
} | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.