Skip to content

Commit 78d2c72

Browse files
committed
upgrade version [ci skip]
1 parent 7a3c185 commit 78d2c72

File tree

140 files changed

+4200
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

140 files changed

+4200
-1
lines changed

dist/.npmignore

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
.circleci
2+
.vscode
3+
node_modules
4+
build
5+
cypress
6+
cypress.json
7+
public
8+
src
9+
tsconfig.*json
10+
package.*json
11+
github-azure-*.yml
12+
snapshots.js
13+
.gitignore
14+
test
15+
rollup.*
16+
.babelrc
17+
.eslintrc
18+
stats.html
19+
types/

dist/LICENSE

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2019-2020 Silevis Software Sp. z o.o.
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.
22+

dist/README.md

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# ReactGrid - Spreadsheet experience for your React app
2+
3+
<div align="center">
4+
5+
ReactGrid is an open-source React component for displaying and editing data in a spreadsheet-like way. 🚀
6+
7+
[![MIT license](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/silevis/reactgrid/blob/develop/LICENSE)
8+
[![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)
9+
[![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)
10+
[![npm version](https://badge.fury.io/js/%40silevis%2Freactgrid.svg)](https://badge.fury.io/js/%40silevis%2Freactgrid)
11+
12+
<img alt="Sample app" src="https://reactgrid.com/sample.gif"/>
13+
14+
We've put a lot of effort in this software<br/>
15+
If you like our work, please give this project a star ⭐
16+
17+
</div>
18+
&nbsp;
19+
20+
Prerequisites:
21+
22+
- react": `^16.13.1`
23+
- react-dom: `^16.13.1`
24+
25+
# Docs
26+
27+
- [Demo](https://reactgrid.com/examples/?utm_source=github&utm_medium=readme)
28+
- [Get started](https://reactgrid.com/docs/4.0/1-getting-started/?utm_source=github&utm_medium=readme)
29+
- [Documentation](https://reactgrid.com/docs/4.0/0-introduction/?utm_source=github&utm_medium=readme)
30+
- [API Reference](https://reactgrid.com/docs/4.0/7-api/?utm_source=github&utm_medium=readme)
31+
32+
# Browser support
33+
34+
| [<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 |
35+
| :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
36+
| 80+ | 61+ | 57+ | 13.1+ | 13+ | 9+ | 45+ |
37+
38+
# Licensing
39+
40+
ReactGrid is published under the MIT License (MIT).
41+
42+
(c) 2022 Silevis Software Sp. z o.o.
43+
44+
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:
45+
46+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
47+
48+
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.
49+
50+
# Authors
51+
52+
<div align="center">
53+
<a
54+
href="https://www.silevis.com/?utm_source=github&utm_medium=reactgrdigit&utm_campaign=github"
55+
target="_blank"
56+
rel="noopener noreferrer"
57+
>
58+
<img src="public/silevis.png" alt="Silevis" width="400"/>
59+
</a>
60+
</div>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
$template-checkbox-size: 20px !default;
2+
$template-font-size: 1em !default;
3+
$template-bg-color: transparent !default;
4+
$template-padding: 0 !default;
5+
$template-margin: 0 !default;
6+
$template-content-invalid: rgb(255, 0, 0) !default;

dist/cell-templates.scss

Lines changed: 172 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,172 @@
1+
.rg-celleditor-input {
2+
width: 100%;
3+
height: 100%;
4+
padding: $template-padding;
5+
margin: $template-margin;
6+
background: $template-bg-color;
7+
font-size: $template-font-size;
8+
outline: none;
9+
}
10+
11+
.rg-celleditor {
12+
box-sizing: border-box;
13+
z-index: 5;
14+
background-color: $cell-editor-gb-color;
15+
box-shadow: $cell-editor-shadow $cell-shadow-color;
16+
display: flex;
17+
border-style: solid;
18+
border-color: $cell-editor-border-color;
19+
border-width: $celleditor-border-width;
20+
padding: $cell-padding;
21+
input {
22+
@extend .rg-celleditor-input;
23+
}
24+
}
25+
26+
.rg-number-celleditor input {
27+
text-align: right;
28+
}
29+
30+
.reactgrid-content .rg-pane .rg-cell {
31+
&.rg-number-cell,
32+
.rg-time-cell,
33+
.rg-date-cell {
34+
justify-content: flex-end;
35+
}
36+
&.rg-email-cell.rg-invalid {
37+
color: $template-content-invalid;
38+
}
39+
&.rg-text-cell.placeholder {
40+
color: #999;
41+
font-size: 0.8em;
42+
}
43+
&.rg-checkbox-cell {
44+
align-items: center;
45+
justify-content: center;
46+
padding: $template-padding;
47+
margin: $template-margin;
48+
background: $template-bg-color;
49+
pointer-events: auto;
50+
input {
51+
width: $template-checkbox-size;
52+
height: $template-checkbox-size;
53+
}
54+
}
55+
56+
&.rg-chevron-cell {
57+
.chevron {
58+
pointer-events: auto;
59+
display: flex;
60+
justify-content: center;
61+
align-items: center;
62+
font-weight: bold;
63+
margin-right: $template-font-size * 0.1;
64+
cursor: pointer;
65+
transition: 200ms all ease-in-out;
66+
height: $template-font-size;
67+
width: $template-font-size;
68+
}
69+
.no-child {
70+
width: 0.5em;
71+
}
72+
&.expanded .chevron {
73+
transform: rotate(90deg);
74+
}
75+
&.collapsed .chevron {
76+
transform: rotate(0deg);
77+
}
78+
}
79+
&.rg-checkbox-cell {
80+
justify-content: center;
81+
82+
label {
83+
position: relative;
84+
height: $checkbox-size;
85+
width: $checkbox-size;
86+
cursor: pointer;
87+
-webkit-user-select: none;
88+
-moz-user-select: none;
89+
-ms-user-select: none;
90+
user-select: none;
91+
margin: 0;
92+
}
93+
94+
label input {
95+
position: absolute;
96+
opacity: 0;
97+
cursor: pointer;
98+
margin: 0;
99+
height: $checkbox-size;
100+
width: $checkbox-size;
101+
}
102+
103+
span {
104+
position: absolute;
105+
top: 0;
106+
left: 0;
107+
height: $checkbox-size;
108+
width: $checkbox-size;
109+
background-color: $checkbox-unchecked;
110+
}
111+
112+
label:hover input ~ span {
113+
background-color: $checkbox-hover;
114+
}
115+
116+
label input:checked ~ span {
117+
background-color: $checkbox-checked;
118+
}
119+
120+
span:after {
121+
content: "";
122+
position: absolute;
123+
display: none;
124+
}
125+
126+
label input:checked ~ span:after {
127+
display: block;
128+
}
129+
130+
label span:after {
131+
left: 7px;
132+
top: 2px;
133+
width: 4px;
134+
height: $checkbox-size - 6px;
135+
border: solid $checkbox-mark;
136+
border-width: 0 3px 3px 0;
137+
-webkit-transform: rotate(45deg);
138+
-ms-transform: rotate(45deg);
139+
transform: rotate(45deg);
140+
}
141+
}
142+
&.rg-dropdown-cell {
143+
padding: 0;
144+
overflow: visible;
145+
.rg-dropdown-menu {
146+
top: 100%;
147+
background-color: $dropdown-menu-bg-color;
148+
border-radius: 4px;
149+
box-shadow: 0px 0px 7px rgba(0, 0, 0, 0.5);
150+
margin-bottom: 8px;
151+
margin-top: 2px;
152+
position: absolute;
153+
width: 100%;
154+
z-index: 1;
155+
box-sizing: border-box;
156+
}
157+
.rg-dropdown-option {
158+
padding: 0.3em 0.5em;
159+
min-height: 1.5em;
160+
display: flex;
161+
align-items: center;
162+
&.selected::before {
163+
content: "";
164+
padding-right: 0.2em;
165+
}
166+
&.focused {
167+
color: black;
168+
background-color: $dropdown-focused-item-bg-color;
169+
}
170+
}
171+
}
172+
}

dist/core/handleStateUpdate-3b37f25a.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/core/handleStateUpdate-3b37f25a.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/core/handleStateUpdate-e5136f78.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/core/handleStateUpdate-e5136f78.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/core/index.esm.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)